@l10nmonster/server 3.0.0-alpha.11 → 3.0.0-alpha.13

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.
Files changed (47) hide show
  1. package/CLAUDE.md +81 -13
  2. package/index.js +19 -2
  3. package/package.json +1 -1
  4. package/routes/dispatcher.js +17 -7
  5. package/routes/info.js +17 -16
  6. package/routes/providers.js +7 -9
  7. package/routes/sources.js +47 -9
  8. package/routes/status.js +12 -11
  9. package/routes/tm.js +89 -26
  10. package/ui/dist/assets/Cart-B_Zkvuz_.js +1 -0
  11. package/ui/dist/assets/Job-B2D10u5q.js +1 -0
  12. package/ui/dist/assets/Providers-UAlXnJQI.js +1 -0
  13. package/ui/dist/assets/Sources-DcwZBkaA.js +1 -0
  14. package/ui/dist/assets/SourcesDetail-11v96V44.js +1 -0
  15. package/ui/dist/assets/SourcesResource-CPGv3HQ8.js +1 -0
  16. package/ui/dist/assets/Status-C_qyyf2l.js +1 -0
  17. package/ui/dist/assets/StatusDetail-CXE95RTb.js +1 -0
  18. package/ui/dist/assets/TM-DIDYSCIe.js +1 -0
  19. package/ui/dist/assets/TMDetail-BmHvlsJe.js +1 -0
  20. package/ui/dist/assets/Welcome-Bd1y86xQ.js +1 -0
  21. package/ui/dist/assets/index-Dl1WS_Lc.js +1 -0
  22. package/ui/dist/assets/index-HzbF4bPY.js +2 -0
  23. package/ui/dist/assets/vendor-BVSmEsOp.js +75 -0
  24. package/ui/dist/index.html +3 -1
  25. package/ui/dist/assets/Cart-jHOAGjwC.js +0 -1
  26. package/ui/dist/assets/Job-vnJpBXcp.js +0 -1
  27. package/ui/dist/assets/Providers-DUp_y6mi.js +0 -1
  28. package/ui/dist/assets/Sources-CC5dBiir.js +0 -1
  29. package/ui/dist/assets/Status-SRPm28Cg.js +0 -1
  30. package/ui/dist/assets/StatusDetail-DqXzi16U.js +0 -1
  31. package/ui/dist/assets/TM-CUqywRKC.js +0 -1
  32. package/ui/dist/assets/TMDetail-Bl4xHL_X.js +0 -1
  33. package/ui/dist/assets/Welcome-D33rOKBc.js +0 -1
  34. package/ui/dist/assets/api-CQ_emPlI.js +0 -1
  35. package/ui/dist/assets/badge-D0XxOmqE.js +0 -1
  36. package/ui/dist/assets/grid-c9ySqPWI.js +0 -1
  37. package/ui/dist/assets/index-BHll-Wur.js +0 -1
  38. package/ui/dist/assets/index-CE6JgXwC.js +0 -76
  39. package/ui/dist/assets/input-C_b-hL0i.js +0 -1
  40. package/ui/dist/assets/link-BJrTt4Ej.js +0 -1
  41. package/ui/dist/assets/namespace-DqVzlNZ0.js +0 -1
  42. package/ui/dist/assets/select-B7OxVhQ5.js +0 -1
  43. package/ui/dist/assets/tooltip-DsbPmc5I.js +0 -1
  44. package/ui/dist/assets/use-field-context-DPgnX2eS.js +0 -1
  45. package/ui/dist/assets/use-presence-context-w7qGDwCc.js +0 -1
  46. package/ui/dist/assets/useQuery-DJATtsyt.js +0 -1
  47. package/ui/dist/assets/v-stack-BLV93Nj6.js +0 -1
@@ -0,0 +1,75 @@
1
+ function LR(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(a,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ph={exports:{}},ks={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ky;function BR(){if(Ky)return ks;Ky=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,s,c){var u=null;if(c!==void 0&&(u=""+c),s.key!==void 0&&(u=""+s.key),"key"in s){c={};for(var f in s)f!=="key"&&(c[f]=s[f])}else c=s;return s=c.ref,{$$typeof:e,type:a,key:u,ref:s!==void 0?s:null,props:c}}return ks.Fragment=t,ks.jsx=r,ks.jsxs=r,ks}var Qy;function FR(){return Qy||(Qy=1,Ph.exports=BR()),Ph.exports}var z=FR(),Ah={exports:{}},Ee={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Zy;function HR(){if(Zy)return Ee;Zy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function v(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function w(P,X,re){this.props=P,this.context=X,this.refs=C,this.updater=re||x}w.prototype.isReactComponent={},w.prototype.setState=function(P,X){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,X,"setState")},w.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function T(){}T.prototype=w.prototype;function R(P,X,re){this.props=P,this.context=X,this.refs=C,this.updater=re||x}var N=R.prototype=new T;N.constructor=R,E(N,w.prototype),N.isPureReactComponent=!0;var L=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},U=Object.prototype.hasOwnProperty;function q(P,X,re,ne,de,Oe){return re=Oe.ref,{$$typeof:e,type:P,key:X,ref:re!==void 0?re:null,props:Oe}}function _(P,X){return q(P.type,X,void 0,void 0,void 0,P.props)}function $(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function G(P){var X={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(re){return X[re]})}var Y=/\/+/g;function K(P,X){return typeof P=="object"&&P!==null&&P.key!=null?G(""+P.key):X.toString(36)}function he(){}function ue(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(he,he):(P.status="pending",P.then(function(X){P.status==="pending"&&(P.status="fulfilled",P.value=X)},function(X){P.status==="pending"&&(P.status="rejected",P.reason=X)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function se(P,X,re,ne,de){var Oe=typeof P;(Oe==="undefined"||Oe==="boolean")&&(P=null);var Se=!1;if(P===null)Se=!0;else switch(Oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(P.$$typeof){case e:case t:Se=!0;break;case m:return Se=P._init,se(Se(P._payload),X,re,ne,de)}}if(Se)return de=de(P),Se=ne===""?"."+K(P,0):ne,L(de)?(re="",Se!=null&&(re=Se.replace(Y,"$&/")+"/"),se(de,X,re,"",function(te){return te})):de!=null&&($(de)&&(de=_(de,re+(de.key==null||P&&P.key===de.key?"":(""+de.key).replace(Y,"$&/")+"/")+Se)),X.push(de)),1;Se=0;var Dt=ne===""?".":ne+":";if(L(P))for(var Z=0;Z<P.length;Z++)ne=P[Z],Oe=Dt+K(ne,Z),Se+=se(ne,X,re,Oe,de);else if(Z=v(P),typeof Z=="function")for(P=Z.call(P),Z=0;!(ne=P.next()).done;)ne=ne.value,Oe=Dt+K(ne,Z++),Se+=se(ne,X,re,Oe,de);else if(Oe==="object"){if(typeof P.then=="function")return se(ue(P),X,re,ne,de);throw X=String(P),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function F(P,X,re){if(P==null)return P;var ne=[],de=0;return se(P,ne,"","",function(Oe){return X.call(re,Oe,de++)}),ne}function ee(P){if(P._status===-1){var X=P._result;X=X(),X.then(function(re){(P._status===0||P._status===-1)&&(P._status=1,P._result=re)},function(re){(P._status===0||P._status===-1)&&(P._status=2,P._result=re)}),P._status===-1&&(P._status=0,P._result=X)}if(P._status===1)return P._result.default;throw P._result}var oe=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function ie(){}return Ee.Children={map:F,forEach:function(P,X,re){F(P,function(){X.apply(this,arguments)},re)},count:function(P){var X=0;return F(P,function(){X++}),X},toArray:function(P){return F(P,function(X){return X})||[]},only:function(P){if(!$(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ee.Component=w,Ee.Fragment=r,Ee.Profiler=s,Ee.PureComponent=R,Ee.StrictMode=a,Ee.Suspense=g,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(P){return A.H.useMemoCache(P)}},Ee.cache=function(P){return function(){return P.apply(null,arguments)}},Ee.cloneElement=function(P,X,re){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var ne=E({},P.props),de=P.key,Oe=void 0;if(X!=null)for(Se in X.ref!==void 0&&(Oe=void 0),X.key!==void 0&&(de=""+X.key),X)!U.call(X,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&X.ref===void 0||(ne[Se]=X[Se]);var Se=arguments.length-2;if(Se===1)ne.children=re;else if(1<Se){for(var Dt=Array(Se),Z=0;Z<Se;Z++)Dt[Z]=arguments[Z+2];ne.children=Dt}return q(P.type,de,void 0,void 0,Oe,ne)},Ee.createContext=function(P){return P={$$typeof:u,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:c,_context:P},P},Ee.createElement=function(P,X,re){var ne,de={},Oe=null;if(X!=null)for(ne in X.key!==void 0&&(Oe=""+X.key),X)U.call(X,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(de[ne]=X[ne]);var Se=arguments.length-2;if(Se===1)de.children=re;else if(1<Se){for(var Dt=Array(Se),Z=0;Z<Se;Z++)Dt[Z]=arguments[Z+2];de.children=Dt}if(P&&P.defaultProps)for(ne in Se=P.defaultProps,Se)de[ne]===void 0&&(de[ne]=Se[ne]);return q(P,Oe,void 0,void 0,null,de)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(P){return{$$typeof:f,render:P}},Ee.isValidElement=$,Ee.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:ee}},Ee.memo=function(P,X){return{$$typeof:p,type:P,compare:X===void 0?null:X}},Ee.startTransition=function(P){var X=A.T,re={};A.T=re;try{var ne=P(),de=A.S;de!==null&&de(re,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(ie,oe)}catch(Oe){oe(Oe)}finally{A.T=X}},Ee.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Ee.use=function(P){return A.H.use(P)},Ee.useActionState=function(P,X,re){return A.H.useActionState(P,X,re)},Ee.useCallback=function(P,X){return A.H.useCallback(P,X)},Ee.useContext=function(P){return A.H.useContext(P)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(P,X){return A.H.useDeferredValue(P,X)},Ee.useEffect=function(P,X,re){var ne=A.H;if(typeof re=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(P,X)},Ee.useId=function(){return A.H.useId()},Ee.useImperativeHandle=function(P,X,re){return A.H.useImperativeHandle(P,X,re)},Ee.useInsertionEffect=function(P,X){return A.H.useInsertionEffect(P,X)},Ee.useLayoutEffect=function(P,X){return A.H.useLayoutEffect(P,X)},Ee.useMemo=function(P,X){return A.H.useMemo(P,X)},Ee.useOptimistic=function(P,X){return A.H.useOptimistic(P,X)},Ee.useReducer=function(P,X,re){return A.H.useReducer(P,X,re)},Ee.useRef=function(P){return A.H.useRef(P)},Ee.useState=function(P){return A.H.useState(P)},Ee.useSyncExternalStore=function(P,X,re){return A.H.useSyncExternalStore(P,X,re)},Ee.useTransition=function(){return A.H.useTransition()},Ee.version="19.1.1",Ee}var Jy;function tp(){return Jy||(Jy=1,Ah.exports=HR()),Ah.exports}var O=tp();const $R=ep(O),e0=LR({__proto__:null,default:$R},[O]);var Ih={exports:{}},Ns={},_h={exports:{}},Vh={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var t0;function UR(){return t0||(t0=1,(function(e){function t(F,ee){var oe=F.length;F.push(ee);e:for(;0<oe;){var ie=oe-1>>>1,P=F[ie];if(0<s(P,ee))F[ie]=ee,F[oe]=P,oe=ie;else break e}}function r(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var ee=F[0],oe=F.pop();if(oe!==ee){F[0]=oe;e:for(var ie=0,P=F.length,X=P>>>1;ie<X;){var re=2*(ie+1)-1,ne=F[re],de=re+1,Oe=F[de];if(0>s(ne,oe))de<P&&0>s(Oe,ne)?(F[ie]=Oe,F[de]=oe,ie=de):(F[ie]=ne,F[re]=oe,ie=re);else if(de<P&&0>s(Oe,oe))F[ie]=Oe,F[de]=oe,ie=de;else break e}}return ee}function s(F,ee){var oe=F.sortIndex-ee.sortIndex;return oe!==0?oe:F.id-ee.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 g=[],p=[],m=1,y=null,v=3,x=!1,E=!1,C=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function L(F){for(var ee=r(p);ee!==null;){if(ee.callback===null)a(p);else if(ee.startTime<=F)a(p),ee.sortIndex=ee.expirationTime,t(g,ee);else break;ee=r(p)}}function A(F){if(C=!1,L(F),!E)if(r(g)!==null)E=!0,U||(U=!0,K());else{var ee=r(p);ee!==null&&se(A,ee.startTime-F)}}var U=!1,q=-1,_=5,$=-1;function G(){return w?!0:!(e.unstable_now()-$<_)}function Y(){if(w=!1,U){var F=e.unstable_now();$=F;var ee=!0;try{e:{E=!1,C&&(C=!1,R(q),q=-1),x=!0;var oe=v;try{t:{for(L(F),y=r(g);y!==null&&!(y.expirationTime>F&&G());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,v=y.priorityLevel;var P=ie(y.expirationTime<=F);if(F=e.unstable_now(),typeof P=="function"){y.callback=P,L(F),ee=!0;break t}y===r(g)&&a(g),L(F)}else a(g);y=r(g)}if(y!==null)ee=!0;else{var X=r(p);X!==null&&se(A,X.startTime-F),ee=!1}}break e}finally{y=null,v=oe,x=!1}ee=void 0}}finally{ee?K():U=!1}}}var K;if(typeof N=="function")K=function(){N(Y)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ue=he.port2;he.port1.onmessage=Y,K=function(){ue.postMessage(null)}}else K=function(){T(Y,0)};function se(F,ee){q=T(function(){F(e.unstable_now())},ee)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(F){switch(v){case 1:case 2:case 3:var ee=3;break;default:ee=v}var oe=v;v=ee;try{return F()}finally{v=oe}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(F,ee){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var oe=v;v=F;try{return ee()}finally{v=oe}},e.unstable_scheduleCallback=function(F,ee,oe){var ie=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ie+oe:ie):oe=ie,F){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=oe+P,F={id:m++,callback:ee,priorityLevel:F,startTime:oe,expirationTime:P,sortIndex:-1},oe>ie?(F.sortIndex=oe,t(p,F),r(g)===null&&F===r(p)&&(C?(R(q),q=-1):C=!0,se(A,oe-ie))):(F.sortIndex=P,t(g,F),E||x||(E=!0,U||(U=!0,K()))),F},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(F){var ee=v;return function(){var oe=v;v=ee;try{return F.apply(this,arguments)}finally{v=oe}}}})(Vh)),Vh}var n0;function jR(){return n0||(n0=1,_h.exports=UR()),_h.exports}var Dh={exports:{}},It={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var r0;function GR(){if(r0)return It;r0=1;var e=tp();function t(g){var p="https://react.dev/errors/"+g;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 #"+g+"; 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},s=Symbol.for("react.portal");function c(g,p,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:g,containerInfo:p,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,It.createPortal=function(g,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(g,p,null,m)},It.flushSync=function(g){var p=u.T,m=a.p;try{if(u.T=null,a.p=2,g)return g()}finally{u.T=p,a.p=m,a.d.f()}},It.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(g,p))},It.prefetchDNS=function(g){typeof g=="string"&&a.d.D(g)},It.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var m=p.as,y=f(m,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?a.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:x}):m==="script"&&a.d.X(g,{crossOrigin:y,integrity:v,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},It.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=f(p.as,p.crossOrigin);a.d.M(g,{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(g)},It.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,y=f(m,p.crossOrigin);a.d.L(g,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})}},It.preloadModule=function(g,p){if(typeof g=="string")if(p){var m=f(p.as,p.crossOrigin);a.d.m(g,{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(g)},It.requestFormReset=function(g){a.d.r(g)},It.unstable_batchedUpdates=function(g,p){return g(p)},It.useFormState=function(g,p,m){return u.H.useFormState(g,p,m)},It.useFormStatus=function(){return u.H.useHostTransitionStatus()},It.version="19.1.1",It}var i0;function xS(){if(i0)return Dh.exports;i0=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(),Dh.exports=GR(),Dh.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var a0;function WR(){if(a0)return Ns;a0=1;var e=jR(),t=tp(),r=xS();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 s(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 g(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,l=i;;){var d=o.return;if(d===null)break;var h=d.alternate;if(h===null){if(l=d.return,l!==null){o=l;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===o)return f(d),n;if(h===l)return f(d),i;h=h.sibling}throw Error(a(188))}if(o.return!==l.return)o=d,l=h;else{for(var b=!1,S=d.child;S;){if(S===o){b=!0,o=d,l=h;break}if(S===l){b=!0,l=d,o=h;break}S=S.sibling}if(!b){for(S=h.child;S;){if(S===o){b=!0,o=h,l=d;break}if(S===l){b=!0,l=h,o=d;break}S=S.sibling}if(!b)throw Error(a(189))}}if(o.alternate!==l)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"),v=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),N=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function K(n){return n===null||typeof n!="object"?null:(n=Y&&n[Y]||n["@@iterator"],typeof n=="function"?n:null)}var he=Symbol.for("react.client.reference");function ue(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===he?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case A:return"Suspense";case U:return"SuspenseList";case $:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case x:return"Portal";case N:return(n.displayName||"Context")+".Provider";case R:return(n._context.displayName||"Context")+".Consumer";case L:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case q:return i=n.displayName||null,i!==null?i:ue(n.type)||"Memo";case _:i=n._payload,n=n._init;try{return ue(n(i))}catch{}}return null}var se=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ie=[],P=-1;function X(n){return{current:n}}function re(n){0>P||(n.current=ie[P],ie[P]=null,P--)}function ne(n,i){P++,ie[P]=n.current,n.current=i}var de=X(null),Oe=X(null),Se=X(null),Dt=X(null);function Z(n,i){switch(ne(Se,i),ne(Oe,n),ne(de,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Oy(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Oy(i),n=wy(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}re(de),ne(de,n)}function te(){re(de),re(Oe),re(Se)}function Te(n){n.memoizedState!==null&&ne(Dt,n);var i=de.current,o=wy(i,n.type);i!==o&&(ne(Oe,n),ne(de,o))}function ze(n){Oe.current===n&&(re(de),re(Oe)),Dt.current===n&&(re(Dt),Es._currentValue=oe)}var Ke=Object.prototype.hasOwnProperty,nt=e.unstable_scheduleCallback,Kt=e.unstable_cancelCallback,la=e.unstable_shouldYield,No=e.unstable_requestPaint,pn=e.unstable_now,vd=e.unstable_getCurrentPriorityLevel,Po=e.unstable_ImmediatePriority,kl=e.unstable_UserBlockingPriority,Ci=e.unstable_NormalPriority,Nl=e.unstable_LowPriority,ca=e.unstable_IdlePriority,xw=e.log,Sw=e.unstable_setDisableYieldValue,Ao=null,Qt=null;function Dr(n){if(typeof xw=="function"&&Sw(n),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(Ao,n)}catch{}}var Zt=Math.clz32?Math.clz32:Ow,Cw=Math.log,Ew=Math.LN2;function Ow(n){return n>>>=0,n===0?32:31-(Cw(n)/Ew|0)|0}var Pl=256,Al=4194304;function Ei(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 Il(n,i,o){var l=n.pendingLanes;if(l===0)return 0;var d=0,h=n.suspendedLanes,b=n.pingedLanes;n=n.warmLanes;var S=l&134217727;return S!==0?(l=S&~h,l!==0?d=Ei(l):(b&=S,b!==0?d=Ei(b):o||(o=S&~n,o!==0&&(d=Ei(o))))):(S=l&~h,S!==0?d=Ei(S):b!==0?d=Ei(b):o||(o=l&~n,o!==0&&(d=Ei(o)))),d===0?0:i!==0&&i!==d&&(i&h)===0&&(h=d&-d,o=i&-i,h>=o||h===32&&(o&4194048)!==0)?i:d}function Io(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function ww(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 sm(){var n=Pl;return Pl<<=1,(Pl&4194048)===0&&(Pl=256),n}function lm(){var n=Al;return Al<<=1,(Al&62914560)===0&&(Al=4194304),n}function bd(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function _o(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Tw(n,i,o,l,d,h){var b=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,k=n.expirationTimes,M=n.hiddenUpdates;for(o=b&~o;0<o;){var j=31-Zt(o),Q=1<<j;S[j]=0,k[j]=-1;var B=M[j];if(B!==null)for(M[j]=null,j=0;j<B.length;j++){var H=B[j];H!==null&&(H.lane&=-536870913)}o&=~Q}l!==0&&cm(n,l,0),h!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=h&~(b&~i))}function cm(n,i,o){n.pendingLanes|=i,n.suspendedLanes&=~i;var l=31-Zt(i);n.entangledLanes|=i,n.entanglements[l]=n.entanglements[l]|1073741824|o&4194090}function um(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var l=31-Zt(o),d=1<<l;d&i|n[l]&i&&(n[l]|=i),o&=~d}}function yd(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 xd(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function dm(){var n=ee.p;return n!==0?n:(n=window.event,n===void 0?32:jy(n.type))}function Rw(n,i){var o=ee.p;try{return ee.p=n,i()}finally{ee.p=o}}var zr=Math.random().toString(36).slice(2),Pt="__reactFiber$"+zr,Bt="__reactProps$"+zr,ua="__reactContainer$"+zr,Sd="__reactEvents$"+zr,kw="__reactListeners$"+zr,Nw="__reactHandles$"+zr,fm="__reactResources$"+zr,Vo="__reactMarker$"+zr;function Cd(n){delete n[Pt],delete n[Bt],delete n[Sd],delete n[kw],delete n[Nw]}function da(n){var i=n[Pt];if(i)return i;for(var o=n.parentNode;o;){if(i=o[ua]||o[Pt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=Ny(n);n!==null;){if(o=n[Pt])return o;n=Ny(n)}return i}n=o,o=n.parentNode}return null}function fa(n){if(n=n[Pt]||n[ua]){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 ha(n){var i=n[fm];return i||(i=n[fm]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function mt(n){n[Vo]=!0}var hm=new Set,gm={};function Oi(n,i){ga(n,i),ga(n+"Capture",i)}function ga(n,i){for(gm[n]=i,n=0;n<i.length;n++)hm.add(i[n])}var Pw=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 Aw(n){return Ke.call(mm,n)?!0:Ke.call(pm,n)?!1:Pw.test(n)?mm[n]=!0:(pm[n]=!0,!1)}function _l(n,i,o){if(Aw(i))if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+o)}}function Vl(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 lr(n,i,o,l){if(l===null)n.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(i,o,""+l)}}var Ed,vm;function pa(n){if(Ed===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Ed=i&&i[1]||"",vm=-1<o.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ed+n+vm}var Od=!1;function wd(n,i){if(!n||Od)return"";Od=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(H){var B=H}Reflect.construct(n,[],Q)}else{try{Q.call()}catch(H){B=H}n.call(Q.prototype)}}else{try{throw Error()}catch(H){B=H}(Q=n())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(H){if(H&&B&&typeof H.stack=="string")return[H.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),b=h[0],S=h[1];if(b&&S){var k=b.split(`
44
+ `),M=S.split(`
45
+ `);for(d=l=0;l<k.length&&!k[l].includes("DetermineComponentFrameRoot");)l++;for(;d<M.length&&!M[d].includes("DetermineComponentFrameRoot");)d++;if(l===k.length||d===M.length)for(l=k.length-1,d=M.length-1;1<=l&&0<=d&&k[l]!==M[d];)d--;for(;1<=l&&0<=d;l--,d--)if(k[l]!==M[d]){if(l!==1||d!==1)do if(l--,d--,0>d||k[l]!==M[d]){var j=`
46
+ `+k[l].replace(" at new "," at ");return n.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",n.displayName)),j}while(1<=l&&0<=d);break}}}finally{Od=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?pa(o):""}function Iw(n){switch(n.tag){case 26:case 27:case 5:return pa(n.type);case 16:return pa("Lazy");case 13:return pa("Suspense");case 19:return pa("SuspenseList");case 0:case 15:return wd(n.type,!1);case 11:return wd(n.type.render,!1);case 1:return wd(n.type,!0);case 31:return pa("Activity");default:return""}}function bm(n){try{var i="";do i+=Iw(n),n=n.return;while(n);return i}catch(o){return`
47
+ Error generating stack: `+o.message+`
48
+ `+o.stack}}function mn(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 _w(n){var i=ym(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),l=""+n[i];if(!n.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,h=o.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(b){l=""+b,h.call(this,b)}}),Object.defineProperty(n,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Dl(n){n._valueTracker||(n._valueTracker=_w(n))}function xm(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),l="";return n&&(l=ym(n)?n.checked?"true":"false":n.value),n=l,n!==o?(i.setValue(n),!0):!1}function zl(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 Vw=/[\n"\\]/g;function vn(n){return n.replace(Vw,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Td(n,i,o,l,d,h,b,S){n.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?n.type=b:n.removeAttribute("type"),i!=null?b==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+mn(i)):n.value!==""+mn(i)&&(n.value=""+mn(i)):b!=="submit"&&b!=="reset"||n.removeAttribute("value"),i!=null?Rd(n,b,mn(i)):o!=null?Rd(n,b,mn(o)):l!=null&&n.removeAttribute("value"),d==null&&h!=null&&(n.defaultChecked=!!h),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+mn(S):n.removeAttribute("name")}function Sm(n,i,o,l,d,h,b,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),i!=null||o!=null){if(!(h!=="submit"&&h!=="reset"||i!=null))return;o=o!=null?""+mn(o):"",i=i!=null?""+mn(i):o,S||i===n.value||(n.value=i),n.defaultValue=i}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=S?n.checked:!!l,n.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.name=b)}function Rd(n,i,o){i==="number"&&zl(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function ma(n,i,o,l){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&&l&&(n[o].defaultSelected=!0)}else{for(o=""+mn(o),i=null,d=0;d<n.length;d++){if(n[d].value===o){n[d].selected=!0,l&&(n[d].defaultSelected=!0);return}i!==null||n[d].disabled||(i=n[d])}i!==null&&(i.selected=!0)}}function Cm(n,i,o){if(i!=null&&(i=""+mn(i),i!==n.value&&(n.value=i),o==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=o!=null?""+mn(o):""}function Em(n,i,o,l){if(i==null){if(l!=null){if(o!=null)throw Error(a(92));if(se(l)){if(1<l.length)throw Error(a(93));l=l[0]}o=l}o==null&&(o=""),i=o}o=mn(i),n.defaultValue=o,l=n.textContent,l===o&&l!==""&&l!==null&&(n.value=l)}function va(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var Dw=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 Om(n,i,o){var l=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?l?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":l?n.setProperty(i,o):typeof o!="number"||o===0||Dw.has(i)?i==="float"?n.cssFloat=o:n[i]=(""+o).trim():n[i]=o+"px"}function wm(n,i,o){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,o!=null){for(var l in o)!o.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var d in i)l=i[d],i.hasOwnProperty(d)&&o[d]!==l&&Om(n,d,l)}else for(var h in i)i.hasOwnProperty(h)&&Om(n,h,i[h])}function kd(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 zw=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"]]),Mw=/^[\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 Ml(n){return Mw.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Nd=null;function Pd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ba=null,ya=null;function Tm(n){var i=fa(n);if(i&&(n=i.stateNode)){var o=n[Bt]||null;e:switch(n=i.stateNode,i.type){case"input":if(Td(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="'+vn(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var l=o[i];if(l!==n&&l.form===n.form){var d=l[Bt]||null;if(!d)throw Error(a(90));Td(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<o.length;i++)l=o[i],l.form===n.form&&xm(l)}break e;case"textarea":Cm(n,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&ma(n,!!o.multiple,i,!1)}}}var Ad=!1;function Rm(n,i,o){if(Ad)return n(i,o);Ad=!0;try{var l=n(i);return l}finally{if(Ad=!1,(ba!==null||ya!==null)&&(Cc(),ba&&(i=ba,n=ya,ya=ba=null,Tm(i),n)))for(i=0;i<n.length;i++)Tm(n[i])}}function zo(n,i){var o=n.stateNode;if(o===null)return null;var l=o[Bt]||null;if(l===null)return null;o=l[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":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(a(231,i,typeof o));return o}var cr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Id=!1;if(cr)try{var Mo={};Object.defineProperty(Mo,"passive",{get:function(){Id=!0}}),window.addEventListener("test",Mo,Mo),window.removeEventListener("test",Mo,Mo)}catch{Id=!1}var Mr=null,_d=null,Ll=null;function km(){if(Ll)return Ll;var n,i=_d,o=i.length,l,d="value"in Mr?Mr.value:Mr.textContent,h=d.length;for(n=0;n<o&&i[n]===d[n];n++);var b=o-n;for(l=1;l<=b&&i[o-l]===d[h-l];l++);return Ll=d.slice(n,1<l?1-l:void 0)}function Bl(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 Fl(){return!0}function Nm(){return!1}function Ft(n){function i(o,l,d,h,b){this._reactName=o,this._targetInst=d,this.type=l,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(o=n[S],this[S]=o?o(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Fl: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=Fl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Fl)},persist:function(){},isPersistent:Fl}),i}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hl=Ft(wi),Lo=m({},wi,{view:0,detail:0}),Lw=Ft(Lo),Vd,Dd,Bo,$l=m({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Md,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!==Bo&&(Bo&&n.type==="mousemove"?(Vd=n.screenX-Bo.screenX,Dd=n.screenY-Bo.screenY):Dd=Vd=0,Bo=n),Vd)},movementY:function(n){return"movementY"in n?n.movementY:Dd}}),Pm=Ft($l),Bw=m({},$l,{dataTransfer:0}),Fw=Ft(Bw),Hw=m({},Lo,{relatedTarget:0}),zd=Ft(Hw),$w=m({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),Uw=Ft($w),jw=m({},wi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Gw=Ft(jw),Ww=m({},wi,{data:0}),Am=Ft(Ww),qw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yw={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"},Xw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kw(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=Xw[n])?!!i[n]:!1}function Md(){return Kw}var Qw=m({},Lo,{key:function(n){if(n.key){var i=qw[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Bl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Yw[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Md,charCode:function(n){return n.type==="keypress"?Bl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Bl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Zw=Ft(Qw),Jw=m({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Im=Ft(Jw),eT=m({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Md}),tT=Ft(eT),nT=m({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),rT=Ft(nT),iT=m({},$l,{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}),aT=Ft(iT),oT=m({},wi,{newState:0,oldState:0}),sT=Ft(oT),lT=[9,13,27,32],Ld=cr&&"CompositionEvent"in window,Fo=null;cr&&"documentMode"in document&&(Fo=document.documentMode);var cT=cr&&"TextEvent"in window&&!Fo,_m=cr&&(!Ld||Fo&&8<Fo&&11>=Fo),Vm=" ",Dm=!1;function zm(n,i){switch(n){case"keyup":return lT.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 xa=!1;function uT(n,i){switch(n){case"compositionend":return Mm(i);case"keypress":return i.which!==32?null:(Dm=!0,Vm);case"textInput":return n=i.data,n===Vm&&Dm?null:n;default:return null}}function dT(n,i){if(xa)return n==="compositionend"||!Ld&&zm(n,i)?(n=km(),Ll=_d=Mr=null,xa=!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 _m&&i.locale!=="ko"?null:i.data;default:return null}}var fT={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"?!!fT[n.type]:i==="textarea"}function Bm(n,i,o,l){ba?ya?ya.push(l):ya=[l]:ba=l,i=kc(i,"onChange"),0<i.length&&(o=new Hl("onChange","change",null,o,l),n.push({event:o,listeners:i}))}var Ho=null,$o=null;function hT(n){yy(n,0)}function Ul(n){var i=Do(n);if(xm(i))return n}function Fm(n,i){if(n==="change")return i}var Hm=!1;if(cr){var Bd;if(cr){var Fd="oninput"in document;if(!Fd){var $m=document.createElement("div");$m.setAttribute("oninput","return;"),Fd=typeof $m.oninput=="function"}Bd=Fd}else Bd=!1;Hm=Bd&&(!document.documentMode||9<document.documentMode)}function Um(){Ho&&(Ho.detachEvent("onpropertychange",jm),$o=Ho=null)}function jm(n){if(n.propertyName==="value"&&Ul($o)){var i=[];Bm(i,$o,n,Pd(n)),Rm(hT,i)}}function gT(n,i,o){n==="focusin"?(Um(),Ho=i,$o=o,Ho.attachEvent("onpropertychange",jm)):n==="focusout"&&Um()}function pT(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ul($o)}function mT(n,i){if(n==="click")return Ul(i)}function vT(n,i){if(n==="input"||n==="change")return Ul(i)}function bT(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Jt=typeof Object.is=="function"?Object.is:bT;function Uo(n,i){if(Jt(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),l=Object.keys(i);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var d=o[l];if(!Ke.call(i,d)||!Jt(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 l;o;){if(o.nodeType===3){if(l=n+o.textContent.length,n<=i&&l>=i)return{node:o,offset:i-n};n=l}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=zl(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=zl(n.document)}return i}function Hd(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 yT=cr&&"documentMode"in document&&11>=document.documentMode,Sa=null,$d=null,jo=null,Ud=!1;function Xm(n,i,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ud||Sa==null||Sa!==zl(l)||(l=Sa,"selectionStart"in l&&Hd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),jo&&Uo(jo,l)||(jo=l,l=kc($d,"onSelect"),0<l.length&&(i=new Hl("onSelect","select",null,i,o),n.push({event:i,listeners:l}),i.target=Sa)))}function Ti(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var Ca={animationend:Ti("Animation","AnimationEnd"),animationiteration:Ti("Animation","AnimationIteration"),animationstart:Ti("Animation","AnimationStart"),transitionrun:Ti("Transition","TransitionRun"),transitionstart:Ti("Transition","TransitionStart"),transitioncancel:Ti("Transition","TransitionCancel"),transitionend:Ti("Transition","TransitionEnd")},jd={},Km={};cr&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete Ca.animationend.animation,delete Ca.animationiteration.animation,delete Ca.animationstart.animation),"TransitionEvent"in window||delete Ca.transitionend.transition);function Ri(n){if(jd[n])return jd[n];if(!Ca[n])return n;var i=Ca[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in Km)return jd[n]=i[o];return n}var Qm=Ri("animationend"),Zm=Ri("animationiteration"),Jm=Ri("animationstart"),xT=Ri("transitionrun"),ST=Ri("transitionstart"),CT=Ri("transitioncancel"),ev=Ri("transitionend"),tv=new Map,Gd="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(" ");Gd.push("scrollEnd");function Nn(n,i){tv.set(n,i),Oi(i,[n])}var nv=new WeakMap;function bn(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 yn=[],Ea=0,Wd=0;function jl(){for(var n=Ea,i=Wd=Ea=0;i<n;){var o=yn[i];yn[i++]=null;var l=yn[i];yn[i++]=null;var d=yn[i];yn[i++]=null;var h=yn[i];if(yn[i++]=null,l!==null&&d!==null){var b=l.pending;b===null?d.next=d:(d.next=b.next,b.next=d),l.pending=d}h!==0&&rv(o,d,h)}}function Gl(n,i,o,l){yn[Ea++]=n,yn[Ea++]=i,yn[Ea++]=o,yn[Ea++]=l,Wd|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function qd(n,i,o,l){return Gl(n,i,o,l),Wl(n)}function Oa(n,i){return Gl(n,null,null,i),Wl(n)}function rv(n,i,o){n.lanes|=o;var l=n.alternate;l!==null&&(l.lanes|=o);for(var d=!1,h=n.return;h!==null;)h.childLanes|=o,l=h.alternate,l!==null&&(l.childLanes|=o),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(d=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,d&&i!==null&&(d=31-Zt(o),n=h.hiddenUpdates,l=n[d],l===null?n[d]=[i]:l.push(i),i.lane=o|536870912),h):null}function Wl(n){if(50<ps)throw ps=0,eh=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var wa={};function ET(n,i,o,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(n,i,o,l){return new ET(n,i,o,l)}function Yd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ur(n,i){var o=n.alternate;return o===null?(o=en(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 ql(n,i,o,l,d,h){var b=0;if(l=n,typeof n=="function")Yd(n)&&(b=1);else if(typeof n=="string")b=wR(n,o,de.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case $:return n=en(31,o,i,d),n.elementType=$,n.lanes=h,n;case E:return ki(o.children,d,h,i);case C:b=8,d|=24;break;case w:return n=en(12,o,i,d|2),n.elementType=w,n.lanes=h,n;case A:return n=en(13,o,i,d),n.elementType=A,n.lanes=h,n;case U:return n=en(19,o,i,d),n.elementType=U,n.lanes=h,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case T:case N:b=10;break e;case R:b=9;break e;case L:b=11;break e;case q:b=14;break e;case _:b=16,l=null;break e}b=29,o=Error(a(130,n===null?"null":typeof n,"")),l=null}return i=en(b,o,i,d),i.elementType=n,i.type=l,i.lanes=h,i}function ki(n,i,o,l){return n=en(7,n,l,i),n.lanes=o,n}function Xd(n,i,o){return n=en(6,n,null,i),n.lanes=o,n}function Kd(n,i,o){return i=en(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Ta=[],Ra=0,Yl=null,Xl=0,xn=[],Sn=0,Ni=null,dr=1,fr="";function Pi(n,i){Ta[Ra++]=Xl,Ta[Ra++]=Yl,Yl=n,Xl=i}function av(n,i,o){xn[Sn++]=dr,xn[Sn++]=fr,xn[Sn++]=Ni,Ni=n;var l=dr;n=fr;var d=32-Zt(l)-1;l&=~(1<<d),o+=1;var h=32-Zt(i)+d;if(30<h){var b=d-d%5;h=(l&(1<<b)-1).toString(32),l>>=b,d-=b,dr=1<<32-Zt(i)+d|o<<d|l,fr=h+n}else dr=1<<h|o<<d|l,fr=n}function Qd(n){n.return!==null&&(Pi(n,1),av(n,1,0))}function Zd(n){for(;n===Yl;)Yl=Ta[--Ra],Ta[Ra]=null,Xl=Ta[--Ra],Ta[Ra]=null;for(;n===Ni;)Ni=xn[--Sn],xn[Sn]=null,fr=xn[--Sn],xn[Sn]=null,dr=xn[--Sn],xn[Sn]=null}var zt=null,et=null,Ie=!1,Ai=null,Ln=!1,Jd=Error(a(519));function Ii(n){var i=Error(a(418,""));throw qo(bn(i,n)),Jd}function ov(n){var i=n.stateNode,o=n.type,l=n.memoizedProps;switch(i[Pt]=n,i[Bt]=l,o){case"dialog":Ne("cancel",i),Ne("close",i);break;case"iframe":case"object":case"embed":Ne("load",i);break;case"video":case"audio":for(o=0;o<vs.length;o++)Ne(vs[o],i);break;case"source":Ne("error",i);break;case"img":case"image":case"link":Ne("error",i),Ne("load",i);break;case"details":Ne("toggle",i);break;case"input":Ne("invalid",i),Sm(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Dl(i);break;case"select":Ne("invalid",i);break;case"textarea":Ne("invalid",i),Em(i,l.value,l.defaultValue,l.children),Dl(i)}o=l.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||l.suppressHydrationWarning===!0||Ey(i.textContent,o)?(l.popover!=null&&(Ne("beforetoggle",i),Ne("toggle",i)),l.onScroll!=null&&Ne("scroll",i),l.onScrollEnd!=null&&Ne("scrollend",i),l.onClick!=null&&(i.onclick=Nc),i=!0):i=!1,i||Ii(n)}function sv(n){for(zt=n.return;zt;)switch(zt.tag){case 5:case 13:Ln=!1;return;case 27:case 3:Ln=!0;return;default:zt=zt.return}}function Go(n){if(n!==zt)return!1;if(!Ie)return sv(n),Ie=!0,!1;var i=n.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||mh(n.type,n.memoizedProps)),o=!o),o&&et&&Ii(n),sv(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){et=An(n.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++;n=n.nextSibling}et=null}}else i===27?(i=et,Jr(n.type)?(n=xh,xh=null,et=n):et=i):et=zt?An(n.stateNode.nextSibling):null;return!0}function Wo(){et=zt=null,Ie=!1}function lv(){var n=Ai;return n!==null&&(Ut===null?Ut=n:Ut.push.apply(Ut,n),Ai=null),n}function qo(n){Ai===null?Ai=[n]:Ai.push(n)}var ef=X(null),_i=null,hr=null;function Lr(n,i,o){ne(ef,i._currentValue),i._currentValue=o}function gr(n){n._currentValue=ef.current,re(ef)}function tf(n,i,o){for(;n!==null;){var l=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),n===o)break;n=n.return}}function nf(n,i,o,l){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var h=d.dependencies;if(h!==null){var b=d.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=d;for(var k=0;k<i.length;k++)if(S.context===i[k]){h.lanes|=o,S=h.alternate,S!==null&&(S.lanes|=o),tf(h.return,o,n),l||(b=null);break e}h=S.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(a(341));b.lanes|=o,h=b.alternate,h!==null&&(h.lanes|=o),tf(b,o,n),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===n){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Yo(n,i,o,l){n=null;for(var d=i,h=!1;d!==null;){if(!h){if((d.flags&524288)!==0)h=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var S=d.type;Jt(d.pendingProps.value,b.value)||(n!==null?n.push(S):n=[S])}}else if(d===Dt.current){if(b=d.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Es):n=[Es])}d=d.return}n!==null&&nf(i,n,o,l),i.flags|=262144}function Kl(n){for(n=n.firstContext;n!==null;){if(!Jt(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Vi(n){_i=n,hr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function At(n){return cv(_i,n)}function Ql(n,i){return _i===null&&Vi(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 OT=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(o,l){n.push(l)}};this.abort=function(){i.aborted=!0,n.forEach(function(o){return o()})}},wT=e.unstable_scheduleCallback,TT=e.unstable_NormalPriority,ft={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rf(){return{controller:new OT,data:new Map,refCount:0}}function Xo(n){n.refCount--,n.refCount===0&&wT(TT,function(){n.controller.abort()})}var Ko=null,af=0,ka=0,Na=null;function RT(n,i){if(Ko===null){var o=Ko=[];af=0,ka=sh(),Na={status:"pending",value:void 0,then:function(l){o.push(l)}}}return af++,i.then(uv,uv),i}function uv(){if(--af===0&&Ko!==null){Na!==null&&(Na.status="fulfilled");var n=Ko;Ko=null,ka=0,Na=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function kT(n,i){var o=[],l={status:"pending",value:null,reason:null,then:function(d){o.push(d)}};return n.then(function(){l.status="fulfilled",l.value=i;for(var d=0;d<o.length;d++)(0,o[d])(i)},function(d){for(l.status="rejected",l.reason=d,d=0;d<o.length;d++)(0,o[d])(void 0)}),l}var dv=F.S;F.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&RT(n,i),dv!==null&&dv(n,i)};var Di=X(null);function of(){var n=Di.current;return n!==null?n:We.pooledCache}function Zl(n,i){i===null?ne(Di,Di.current):ne(Di,i.pool)}function fv(){var n=of();return n===null?null:{parent:ft._currentValue,pool:n}}var Qo=Error(a(460)),hv=Error(a(474)),Jl=Error(a(542)),sf={then:function(){}};function gv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function ec(){}function pv(n,i,o){switch(o=n[o],o===void 0?n.push(i):o!==i&&(i.then(ec,ec),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(ec,ec);else{if(n=We,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=i,n.status="pending",n.then(function(l){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=l}},function(l){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,vv(n),n}throw Zo=i,Qo}}var Zo=null;function mv(){if(Zo===null)throw Error(a(459));var n=Zo;return Zo=null,n}function vv(n){if(n===Qo||n===Jl)throw Error(a(483))}var Br=!1;function lf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cf(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 Fr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Hr(n,i,o){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Le&2)!==0){var d=l.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),l.pending=i,i=Wl(n),rv(n,null,o),i}return Gl(n,l,i,o),Wl(n)}function Jo(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var l=i.lanes;l&=n.pendingLanes,o|=l,i.lanes=o,um(n,o)}}function uf(n,i){var o=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var d=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var b={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};h===null?d=h=b:h=h.next=b,o=o.next}while(o!==null);h===null?d=h=i:h=h.next=i}else d=h=i;o={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}var df=!1;function es(){if(df){var n=Na;if(n!==null)throw n}}function ts(n,i,o,l){df=!1;var d=n.updateQueue;Br=!1;var h=d.firstBaseUpdate,b=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var k=S,M=k.next;k.next=null,b===null?h=M:b.next=M,b=k;var j=n.alternate;j!==null&&(j=j.updateQueue,S=j.lastBaseUpdate,S!==b&&(S===null?j.firstBaseUpdate=M:S.next=M,j.lastBaseUpdate=k))}if(h!==null){var Q=d.baseState;b=0,j=M=k=null,S=h;do{var B=S.lane&-536870913,H=B!==S.lane;if(H?(Pe&B)===B:(l&B)===B){B!==0&&B===ka&&(df=!0),j!==null&&(j=j.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Ce=n,me=S;B=i;var $e=o;switch(me.tag){case 1:if(Ce=me.payload,typeof Ce=="function"){Q=Ce.call($e,Q,B);break e}Q=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=me.payload,B=typeof Ce=="function"?Ce.call($e,Q,B):Ce,B==null)break e;Q=m({},Q,B);break e;case 2:Br=!0}}B=S.callback,B!==null&&(n.flags|=64,H&&(n.flags|=8192),H=d.callbacks,H===null?d.callbacks=[B]:H.push(B))}else H={lane:B,tag:S.tag,payload:S.payload,callback:S.callback,next:null},j===null?(M=j=H,k=Q):j=j.next=H,b|=B;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;H=S,S=H.next,H.next=null,d.lastBaseUpdate=H,d.shared.pending=null}}while(!0);j===null&&(k=Q),d.baseState=k,d.firstBaseUpdate=M,d.lastBaseUpdate=j,h===null&&(d.shared.lanes=0),Xr|=b,n.lanes=b,n.memoizedState=Q}}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 Pa=X(null),tc=X(0);function xv(n,i){n=Sr,ne(tc,n),ne(Pa,i),Sr=n|i.baseLanes}function ff(){ne(tc,Sr),ne(Pa,Pa.current)}function hf(){Sr=tc.current,re(Pa),re(tc)}var $r=0,we=null,Fe=null,ot=null,nc=!1,Aa=!1,zi=!1,rc=0,ns=0,Ia=null,NT=0;function rt(){throw Error(a(321))}function gf(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!Jt(n[o],i[o]))return!1;return!0}function pf(n,i,o,l,d,h){return $r=h,we=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,F.H=n===null||n.memoizedState===null?rb:ib,zi=!1,h=o(l,d),zi=!1,Aa&&(h=Cv(i,o,l,d)),Sv(n),h}function Sv(n){F.H=cc;var i=Fe!==null&&Fe.next!==null;if($r=0,ot=Fe=we=null,nc=!1,ns=0,Ia=null,i)throw Error(a(300));n===null||vt||(n=n.dependencies,n!==null&&Kl(n)&&(vt=!0))}function Cv(n,i,o,l){we=n;var d=0;do{if(Aa&&(Ia=null),ns=0,Aa=!1,25<=d)throw Error(a(301));if(d+=1,ot=Fe=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}F.H=zT,h=i(o,l)}while(Aa);return h}function PT(){var n=F.H,i=n.useState()[0];return i=typeof i.then=="function"?rs(i):i,n=n.useState()[0],(Fe!==null?Fe.memoizedState:null)!==n&&(we.flags|=1024),i}function mf(){var n=rc!==0;return rc=0,n}function vf(n,i,o){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~o}function bf(n){if(nc){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}nc=!1}$r=0,ot=Fe=we=null,Aa=!1,ns=rc=0,Ia=null}function Ht(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?we.memoizedState=ot=n:ot=ot.next=n,ot}function st(){if(Fe===null){var n=we.alternate;n=n!==null?n.memoizedState:null}else n=Fe.next;var i=ot===null?we.memoizedState:ot.next;if(i!==null)ot=i,Fe=n;else{if(n===null)throw we.alternate===null?Error(a(467)):Error(a(310));Fe=n,n={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},ot===null?we.memoizedState=ot=n:ot=ot.next=n}return ot}function yf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(n){var i=ns;return ns+=1,Ia===null&&(Ia=[]),n=pv(Ia,n,i),i=we,(ot===null?i.memoizedState:ot.next)===null&&(i=i.alternate,F.H=i===null||i.memoizedState===null?rb:ib),n}function ic(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return rs(n);if(n.$$typeof===N)return At(n)}throw Error(a(438,String(n)))}function xf(n){var i=null,o=we.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var l=we.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=yf(),we.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(n),l=0;l<n;l++)o[l]=G;return i.index++,o}function pr(n,i){return typeof i=="function"?i(n):i}function ac(n){var i=st();return Sf(i,Fe,n)}function Sf(n,i,o){var l=n.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=o;var d=n.baseQueue,h=l.pending;if(h!==null){if(d!==null){var b=d.next;d.next=h.next,h.next=b}i.baseQueue=d=h,l.pending=null}if(h=n.baseState,d===null)n.memoizedState=h;else{i=d.next;var S=b=null,k=null,M=i,j=!1;do{var Q=M.lane&-536870913;if(Q!==M.lane?(Pe&Q)===Q:($r&Q)===Q){var B=M.revertLane;if(B===0)k!==null&&(k=k.next={lane:0,revertLane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Q===ka&&(j=!0);else if(($r&B)===B){M=M.next,B===ka&&(j=!0);continue}else Q={lane:0,revertLane:M.revertLane,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},k===null?(S=k=Q,b=h):k=k.next=Q,we.lanes|=B,Xr|=B;Q=M.action,zi&&o(h,Q),h=M.hasEagerState?M.eagerState:o(h,Q)}else B={lane:Q,revertLane:M.revertLane,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},k===null?(S=k=B,b=h):k=k.next=B,we.lanes|=Q,Xr|=Q;M=M.next}while(M!==null&&M!==i);if(k===null?b=h:k.next=S,!Jt(h,n.memoizedState)&&(vt=!0,j&&(o=Na,o!==null)))throw o;n.memoizedState=h,n.baseState=b,n.baseQueue=k,l.lastRenderedState=h}return d===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Cf(n){var i=st(),o=i.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=n;var l=o.dispatch,d=o.pending,h=i.memoizedState;if(d!==null){o.pending=null;var b=d=d.next;do h=n(h,b.action),b=b.next;while(b!==d);Jt(h,i.memoizedState)||(vt=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),o.lastRenderedState=h}return[h,l]}function Ev(n,i,o){var l=we,d=st(),h=Ie;if(h){if(o===void 0)throw Error(a(407));o=o()}else o=i();var b=!Jt((Fe||d).memoizedState,o);b&&(d.memoizedState=o,vt=!0),d=d.queue;var S=Tv.bind(null,l,d,n);if(is(2048,8,S,[n]),d.getSnapshot!==i||b||ot!==null&&ot.memoizedState.tag&1){if(l.flags|=2048,_a(9,oc(),wv.bind(null,l,d,o,i),null),We===null)throw Error(a(349));h||($r&124)!==0||Ov(l,i,o)}return o}function Ov(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=we.updateQueue,i===null?(i=yf(),we.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function wv(n,i,o,l){i.value=o,i.getSnapshot=l,Rv(i)&&kv(n)}function Tv(n,i,o){return o(function(){Rv(i)&&kv(n)})}function Rv(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!Jt(n,o)}catch{return!0}}function kv(n){var i=Oa(n,2);i!==null&&on(i,n,2)}function Ef(n){var i=Ht();if(typeof n=="function"){var o=n;if(n=o(),zi){Dr(!0);try{o()}finally{Dr(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,lastRenderedState:n},i}function Nv(n,i,o,l){return n.baseState=o,Sf(n,Fe,typeof l=="function"?l:pr)}function AT(n,i,o,l,d){if(lc(n))throw Error(a(485));if(n=i.action,n!==null){var h={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};F.T!==null?o(!0):h.isTransition=!1,l(h),o=i.pending,o===null?(h.next=i.pending=h,Pv(i,h)):(h.next=o.next,i.pending=o.next=h)}}function Pv(n,i){var o=i.action,l=i.payload,d=n.state;if(i.isTransition){var h=F.T,b={};F.T=b;try{var S=o(d,l),k=F.S;k!==null&&k(b,S),Av(n,i,S)}catch(M){Of(n,i,M)}finally{F.T=h}}else try{h=o(d,l),Av(n,i,h)}catch(M){Of(n,i,M)}}function Av(n,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(l){Iv(n,i,l)},function(l){return Of(n,i,l)}):Iv(n,i,o)}function Iv(n,i,o){i.status="fulfilled",i.value=o,_v(i),n.state=o,i=n.pending,i!==null&&(o=i.next,o===i?n.pending=null:(o=o.next,i.next=o,Pv(n,o)))}function Of(n,i,o){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=o,_v(i),i=i.next;while(i!==l)}n.action=null}function _v(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Vv(n,i){return i}function Dv(n,i){if(Ie){var o=We.formState;if(o!==null){e:{var l=we;if(Ie){if(et){t:{for(var d=et,h=Ln;d.nodeType!==8;){if(!h){d=null;break t}if(d=An(d.nextSibling),d===null){d=null;break t}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){et=An(d.nextSibling),l=d.data==="F!";break e}}Ii(l)}l=!1}l&&(i=o[0])}}return o=Ht(),o.memoizedState=o.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vv,lastRenderedState:i},o.queue=l,o=eb.bind(null,we,l),l.dispatch=o,l=Ef(!1),h=Nf.bind(null,we,!1,l.queue),l=Ht(),d={state:i,dispatch:null,action:n,pending:null},l.queue=d,o=AT.bind(null,we,d,h,o),d.dispatch=o,l.memoizedState=n,[i,o,!1]}function zv(n){var i=st();return Mv(i,Fe,n)}function Mv(n,i,o){if(i=Sf(n,i,Vv)[0],n=ac(pr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var l=rs(i)}catch(b){throw b===Qo?Jl:b}else l=i;i=st();var d=i.queue,h=d.dispatch;return o!==i.memoizedState&&(we.flags|=2048,_a(9,oc(),IT.bind(null,d,o),null)),[l,h,n]}function IT(n,i){n.action=i}function Lv(n){var i=st(),o=Fe;if(o!==null)return Mv(i,o,n);st(),i=i.memoizedState,o=st();var l=o.queue.dispatch;return o.memoizedState=n,[i,l,!1]}function _a(n,i,o,l){return n={tag:n,create:o,deps:l,inst:i,next:null},i=we.updateQueue,i===null&&(i=yf(),we.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=n.next=n:(l=o.next,o.next=n,n.next=l,i.lastEffect=n),n}function oc(){return{destroy:void 0,resource:void 0}}function Bv(){return st().memoizedState}function sc(n,i,o,l){var d=Ht();l=l===void 0?null:l,we.flags|=n,d.memoizedState=_a(1|i,oc(),o,l)}function is(n,i,o,l){var d=st();l=l===void 0?null:l;var h=d.memoizedState.inst;Fe!==null&&l!==null&&gf(l,Fe.memoizedState.deps)?d.memoizedState=_a(i,h,o,l):(we.flags|=n,d.memoizedState=_a(1|i,h,o,l))}function Fv(n,i){sc(8390656,8,n,i)}function Hv(n,i){is(2048,8,n,i)}function $v(n,i){return is(4,2,n,i)}function Uv(n,i){return is(4,4,n,i)}function jv(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,is(4,4,jv.bind(null,i,n),o)}function wf(){}function Wv(n,i){var o=st();i=i===void 0?null:i;var l=o.memoizedState;return i!==null&&gf(i,l[1])?l[0]:(o.memoizedState=[n,i],n)}function qv(n,i){var o=st();i=i===void 0?null:i;var l=o.memoizedState;if(i!==null&&gf(i,l[1]))return l[0];if(l=n(),zi){Dr(!0);try{n()}finally{Dr(!1)}}return o.memoizedState=[l,i],l}function Tf(n,i,o){return o===void 0||($r&1073741824)!==0?n.memoizedState=i:(n.memoizedState=o,n=Kb(),we.lanes|=n,Xr|=n,o)}function Yv(n,i,o,l){return Jt(o,i)?o:Pa.current!==null?(n=Tf(n,o,l),Jt(n,i)||(vt=!0),n):($r&42)===0?(vt=!0,n.memoizedState=o):(n=Kb(),we.lanes|=n,Xr|=n,i)}function Xv(n,i,o,l,d){var h=ee.p;ee.p=h!==0&&8>h?h:8;var b=F.T,S={};F.T=S,Nf(n,!1,i,o);try{var k=d(),M=F.S;if(M!==null&&M(S,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var j=kT(k,l);as(n,i,j,an(n))}else as(n,i,l,an(n))}catch(Q){as(n,i,{then:function(){},status:"rejected",reason:Q},an())}finally{ee.p=h,F.T=b}}function _T(){}function Rf(n,i,o,l){if(n.tag!==5)throw Error(a(476));var d=Kv(n).queue;Xv(n,d,i,oe,o===null?_T:function(){return Qv(n),o(l)})}function Kv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,lastRenderedState:oe},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pr,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;as(n,i,{},an())}function kf(){return At(Es)}function Zv(){return st().memoizedState}function Jv(){return st().memoizedState}function VT(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var o=an();n=Fr(o);var l=Hr(i,n,o);l!==null&&(on(l,i,o),Jo(l,i,o)),i={cache:rf()},n.payload=i;return}i=i.return}}function DT(n,i,o){var l=an();o={lane:l,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},lc(n)?tb(i,o):(o=qd(n,i,o,l),o!==null&&(on(o,n,l),nb(o,i,l)))}function eb(n,i,o){var l=an();as(n,i,o,l)}function as(n,i,o,l){var d={lane:l,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(lc(n))tb(i,d);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var b=i.lastRenderedState,S=h(b,o);if(d.hasEagerState=!0,d.eagerState=S,Jt(S,b))return Gl(n,i,d,0),We===null&&jl(),!1}catch{}finally{}if(o=qd(n,i,d,l),o!==null)return on(o,n,l),nb(o,i,l),!0}return!1}function Nf(n,i,o,l){if(l={lane:2,revertLane:sh(),action:l,hasEagerState:!1,eagerState:null,next:null},lc(n)){if(i)throw Error(a(479))}else i=qd(n,o,l,2),i!==null&&on(i,n,2)}function lc(n){var i=n.alternate;return n===we||i!==null&&i===we}function tb(n,i){Aa=nc=!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 l=i.lanes;l&=n.pendingLanes,o|=l,i.lanes=o,um(n,o)}}var cc={readContext:At,use:ic,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt},rb={readContext:At,use:ic,useCallback:function(n,i){return Ht().memoizedState=[n,i===void 0?null:i],n},useContext:At,useEffect:Fv,useImperativeHandle:function(n,i,o){o=o!=null?o.concat([n]):null,sc(4194308,4,jv.bind(null,i,n),o)},useLayoutEffect:function(n,i){return sc(4194308,4,n,i)},useInsertionEffect:function(n,i){sc(4,2,n,i)},useMemo:function(n,i){var o=Ht();i=i===void 0?null:i;var l=n();if(zi){Dr(!0);try{n()}finally{Dr(!1)}}return o.memoizedState=[l,i],l},useReducer:function(n,i,o){var l=Ht();if(o!==void 0){var d=o(i);if(zi){Dr(!0);try{o(i)}finally{Dr(!1)}}}else d=i;return l.memoizedState=l.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},l.queue=n,n=n.dispatch=DT.bind(null,we,n),[l.memoizedState,n]},useRef:function(n){var i=Ht();return n={current:n},i.memoizedState=n},useState:function(n){n=Ef(n);var i=n.queue,o=eb.bind(null,we,i);return i.dispatch=o,[n.memoizedState,o]},useDebugValue:wf,useDeferredValue:function(n,i){var o=Ht();return Tf(o,n,i)},useTransition:function(){var n=Ef(!1);return n=Xv.bind(null,we,n.queue,!0,!1),Ht().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,o){var l=we,d=Ht();if(Ie){if(o===void 0)throw Error(a(407));o=o()}else{if(o=i(),We===null)throw Error(a(349));(Pe&124)!==0||Ov(l,i,o)}d.memoizedState=o;var h={value:o,getSnapshot:i};return d.queue=h,Fv(Tv.bind(null,l,h,n),[n]),l.flags|=2048,_a(9,oc(),wv.bind(null,l,h,o,i),null),o},useId:function(){var n=Ht(),i=We.identifierPrefix;if(Ie){var o=fr,l=dr;o=(l&~(1<<32-Zt(l)-1)).toString(32)+o,i="«"+i+"R"+o,o=rc++,0<o&&(i+="H"+o.toString(32)),i+="»"}else o=NT++,i="«"+i+"r"+o.toString(32)+"»";return n.memoizedState=i},useHostTransitionStatus:kf,useFormState:Dv,useActionState:Dv,useOptimistic:function(n){var i=Ht();i.memoizedState=i.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=Nf.bind(null,we,!0,o),o.dispatch=i,[n,i]},useMemoCache:xf,useCacheRefresh:function(){return Ht().memoizedState=VT.bind(null,we)}},ib={readContext:At,use:ic,useCallback:Wv,useContext:At,useEffect:Hv,useImperativeHandle:Gv,useInsertionEffect:$v,useLayoutEffect:Uv,useMemo:qv,useReducer:ac,useRef:Bv,useState:function(){return ac(pr)},useDebugValue:wf,useDeferredValue:function(n,i){var o=st();return Yv(o,Fe.memoizedState,n,i)},useTransition:function(){var n=ac(pr)[0],i=st().memoizedState;return[typeof n=="boolean"?n:rs(n),i]},useSyncExternalStore:Ev,useId:Zv,useHostTransitionStatus:kf,useFormState:zv,useActionState:zv,useOptimistic:function(n,i){var o=st();return Nv(o,Fe,n,i)},useMemoCache:xf,useCacheRefresh:Jv},zT={readContext:At,use:ic,useCallback:Wv,useContext:At,useEffect:Hv,useImperativeHandle:Gv,useInsertionEffect:$v,useLayoutEffect:Uv,useMemo:qv,useReducer:Cf,useRef:Bv,useState:function(){return Cf(pr)},useDebugValue:wf,useDeferredValue:function(n,i){var o=st();return Fe===null?Tf(o,n,i):Yv(o,Fe.memoizedState,n,i)},useTransition:function(){var n=Cf(pr)[0],i=st().memoizedState;return[typeof n=="boolean"?n:rs(n),i]},useSyncExternalStore:Ev,useId:Zv,useHostTransitionStatus:kf,useFormState:Lv,useActionState:Lv,useOptimistic:function(n,i){var o=st();return Fe!==null?Nv(o,Fe,n,i):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:xf,useCacheRefresh:Jv},Va=null,os=0;function uc(n){var i=os;return os+=1,Va===null&&(Va=[]),pv(Va,n,i)}function ss(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function dc(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(V,I){if(n){var D=V.deletions;D===null?(V.deletions=[I],V.flags|=16):D.push(I)}}function o(V,I){if(!n)return null;for(;I!==null;)i(V,I),I=I.sibling;return null}function l(V){for(var I=new Map;V!==null;)V.key!==null?I.set(V.key,V):I.set(V.index,V),V=V.sibling;return I}function d(V,I){return V=ur(V,I),V.index=0,V.sibling=null,V}function h(V,I,D){return V.index=D,n?(D=V.alternate,D!==null?(D=D.index,D<I?(V.flags|=67108866,I):D):(V.flags|=67108866,I)):(V.flags|=1048576,I)}function b(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function S(V,I,D,W){return I===null||I.tag!==6?(I=Xd(D,V.mode,W),I.return=V,I):(I=d(I,D),I.return=V,I)}function k(V,I,D,W){var le=D.type;return le===E?j(V,I,D.props.children,W,D.key):I!==null&&(I.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===_&&ab(le)===I.type)?(I=d(I,D.props),ss(I,D),I.return=V,I):(I=ql(D.type,D.key,D.props,null,V.mode,W),ss(I,D),I.return=V,I)}function M(V,I,D,W){return I===null||I.tag!==4||I.stateNode.containerInfo!==D.containerInfo||I.stateNode.implementation!==D.implementation?(I=Kd(D,V.mode,W),I.return=V,I):(I=d(I,D.children||[]),I.return=V,I)}function j(V,I,D,W,le){return I===null||I.tag!==7?(I=ki(D,V.mode,W,le),I.return=V,I):(I=d(I,D),I.return=V,I)}function Q(V,I,D){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Xd(""+I,V.mode,D),I.return=V,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case v:return D=ql(I.type,I.key,I.props,null,V.mode,D),ss(D,I),D.return=V,D;case x:return I=Kd(I,V.mode,D),I.return=V,I;case _:var W=I._init;return I=W(I._payload),Q(V,I,D)}if(se(I)||K(I))return I=ki(I,V.mode,D,null),I.return=V,I;if(typeof I.then=="function")return Q(V,uc(I),D);if(I.$$typeof===N)return Q(V,Ql(V,I),D);dc(V,I)}return null}function B(V,I,D,W){var le=I!==null?I.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return le!==null?null:S(V,I,""+D,W);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case v:return D.key===le?k(V,I,D,W):null;case x:return D.key===le?M(V,I,D,W):null;case _:return le=D._init,D=le(D._payload),B(V,I,D,W)}if(se(D)||K(D))return le!==null?null:j(V,I,D,W,null);if(typeof D.then=="function")return B(V,I,uc(D),W);if(D.$$typeof===N)return B(V,I,Ql(V,D),W);dc(V,D)}return null}function H(V,I,D,W,le){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return V=V.get(D)||null,S(I,V,""+W,le);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case v:return V=V.get(W.key===null?D:W.key)||null,k(I,V,W,le);case x:return V=V.get(W.key===null?D:W.key)||null,M(I,V,W,le);case _:var Re=W._init;return W=Re(W._payload),H(V,I,D,W,le)}if(se(W)||K(W))return V=V.get(D)||null,j(I,V,W,le,null);if(typeof W.then=="function")return H(V,I,D,uc(W),le);if(W.$$typeof===N)return H(V,I,D,Ql(I,W),le);dc(I,W)}return null}function Ce(V,I,D,W){for(var le=null,Re=null,fe=I,be=I=0,yt=null;fe!==null&&be<D.length;be++){fe.index>be?(yt=fe,fe=null):yt=fe.sibling;var Ae=B(V,fe,D[be],W);if(Ae===null){fe===null&&(fe=yt);break}n&&fe&&Ae.alternate===null&&i(V,fe),I=h(Ae,I,be),Re===null?le=Ae:Re.sibling=Ae,Re=Ae,fe=yt}if(be===D.length)return o(V,fe),Ie&&Pi(V,be),le;if(fe===null){for(;be<D.length;be++)fe=Q(V,D[be],W),fe!==null&&(I=h(fe,I,be),Re===null?le=fe:Re.sibling=fe,Re=fe);return Ie&&Pi(V,be),le}for(fe=l(fe);be<D.length;be++)yt=H(fe,V,be,D[be],W),yt!==null&&(n&&yt.alternate!==null&&fe.delete(yt.key===null?be:yt.key),I=h(yt,I,be),Re===null?le=yt:Re.sibling=yt,Re=yt);return n&&fe.forEach(function(ii){return i(V,ii)}),Ie&&Pi(V,be),le}function me(V,I,D,W){if(D==null)throw Error(a(151));for(var le=null,Re=null,fe=I,be=I=0,yt=null,Ae=D.next();fe!==null&&!Ae.done;be++,Ae=D.next()){fe.index>be?(yt=fe,fe=null):yt=fe.sibling;var ii=B(V,fe,Ae.value,W);if(ii===null){fe===null&&(fe=yt);break}n&&fe&&ii.alternate===null&&i(V,fe),I=h(ii,I,be),Re===null?le=ii:Re.sibling=ii,Re=ii,fe=yt}if(Ae.done)return o(V,fe),Ie&&Pi(V,be),le;if(fe===null){for(;!Ae.done;be++,Ae=D.next())Ae=Q(V,Ae.value,W),Ae!==null&&(I=h(Ae,I,be),Re===null?le=Ae:Re.sibling=Ae,Re=Ae);return Ie&&Pi(V,be),le}for(fe=l(fe);!Ae.done;be++,Ae=D.next())Ae=H(fe,V,be,Ae.value,W),Ae!==null&&(n&&Ae.alternate!==null&&fe.delete(Ae.key===null?be:Ae.key),I=h(Ae,I,be),Re===null?le=Ae:Re.sibling=Ae,Re=Ae);return n&&fe.forEach(function(MR){return i(V,MR)}),Ie&&Pi(V,be),le}function $e(V,I,D,W){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case v:e:{for(var le=D.key;I!==null;){if(I.key===le){if(le=D.type,le===E){if(I.tag===7){o(V,I.sibling),W=d(I,D.props.children),W.return=V,V=W;break e}}else if(I.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===_&&ab(le)===I.type){o(V,I.sibling),W=d(I,D.props),ss(W,D),W.return=V,V=W;break e}o(V,I);break}else i(V,I);I=I.sibling}D.type===E?(W=ki(D.props.children,V.mode,W,D.key),W.return=V,V=W):(W=ql(D.type,D.key,D.props,null,V.mode,W),ss(W,D),W.return=V,V=W)}return b(V);case x:e:{for(le=D.key;I!==null;){if(I.key===le)if(I.tag===4&&I.stateNode.containerInfo===D.containerInfo&&I.stateNode.implementation===D.implementation){o(V,I.sibling),W=d(I,D.children||[]),W.return=V,V=W;break e}else{o(V,I);break}else i(V,I);I=I.sibling}W=Kd(D,V.mode,W),W.return=V,V=W}return b(V);case _:return le=D._init,D=le(D._payload),$e(V,I,D,W)}if(se(D))return Ce(V,I,D,W);if(K(D)){if(le=K(D),typeof le!="function")throw Error(a(150));return D=le.call(D),me(V,I,D,W)}if(typeof D.then=="function")return $e(V,I,uc(D),W);if(D.$$typeof===N)return $e(V,I,Ql(V,D),W);dc(V,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,I!==null&&I.tag===6?(o(V,I.sibling),W=d(I,D),W.return=V,V=W):(o(V,I),W=Xd(D,V.mode,W),W.return=V,V=W),b(V)):o(V,I)}return function(V,I,D,W){try{os=0;var le=$e(V,I,D,W);return Va=null,le}catch(fe){if(fe===Qo||fe===Jl)throw fe;var Re=en(29,fe,null,V.mode);return Re.lanes=W,Re.return=V,Re}finally{}}}var Da=ob(!0),sb=ob(!1),Cn=X(null),Bn=null;function Ur(n){var i=n.alternate;ne(ht,ht.current&1),ne(Cn,n),Bn===null&&(i===null||Pa.current!==null||i.memoizedState!==null)&&(Bn=n)}function lb(n){if(n.tag===22){if(ne(ht,ht.current),ne(Cn,n),Bn===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Bn=n)}}else jr()}function jr(){ne(ht,ht.current),ne(Cn,Cn.current)}function mr(n){re(Cn),Bn===n&&(Bn=null),re(ht)}var ht=X(0);function fc(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==="$?"||yh(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 Pf(n,i,o,l){i=n.memoizedState,o=o(l,i),o=o==null?i:m({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Af={enqueueSetState:function(n,i,o){n=n._reactInternals;var l=an(),d=Fr(l);d.payload=i,o!=null&&(d.callback=o),i=Hr(n,d,l),i!==null&&(on(i,n,l),Jo(i,n,l))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var l=an(),d=Fr(l);d.tag=1,d.payload=i,o!=null&&(d.callback=o),i=Hr(n,d,l),i!==null&&(on(i,n,l),Jo(i,n,l))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=an(),l=Fr(o);l.tag=2,i!=null&&(l.callback=i),i=Hr(n,l,o),i!==null&&(on(i,n,o),Jo(i,n,o))}};function cb(n,i,o,l,d,h,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,h,b):i.prototype&&i.prototype.isPureReactComponent?!Uo(o,l)||!Uo(d,h):!0}function ub(n,i,o,l){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,l),i.state!==n&&Af.enqueueReplaceState(i,i.state,null)}function Mi(n,i){var o=i;if("ref"in i){o={};for(var l in i)l!=="ref"&&(o[l]=i[l])}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 hc=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){hc(n)}function fb(n){console.error(n)}function hb(n){hc(n)}function gc(n,i){try{var o=n.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function gb(n,i,o){try{var l=n.onCaughtError;l(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function If(n,i,o){return o=Fr(o),o.tag=3,o.payload={element:null},o.callback=function(){gc(n,i)},o}function pb(n){return n=Fr(n),n.tag=3,n}function mb(n,i,o,l){var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var h=l.value;n.payload=function(){return d(h)},n.callback=function(){gb(i,o,l)}}var b=o.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(n.callback=function(){gb(i,o,l),typeof d!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function MT(n,i,o,l,d){if(o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=o.alternate,i!==null&&Yo(i,o,d,!0),o=Cn.current,o!==null){switch(o.tag){case 13:return Bn===null?nh():o.alternate===null&&tt===0&&(tt=3),o.flags&=-257,o.flags|=65536,o.lanes=d,l===sf?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([l]):i.add(l),ih(n,l,d)),!1;case 22:return o.flags|=65536,l===sf?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([l]):o.add(l)),ih(n,l,d)),!1}throw Error(a(435,o.tag))}return ih(n,l,d),nh(),!1}if(Ie)return i=Cn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,l!==Jd&&(n=Error(a(422),{cause:l}),qo(bn(n,o)))):(l!==Jd&&(i=Error(a(423),{cause:l}),qo(bn(i,o))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,l=bn(l,o),d=If(n.stateNode,l,d),uf(n,d),tt!==4&&(tt=2)),!1;var h=Error(a(520),{cause:l});if(h=bn(h,o),gs===null?gs=[h]:gs.push(h),tt!==4&&(tt=2),i===null)return!0;l=bn(l,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,n=d&-d,o.lanes|=n,n=If(o.stateNode,l,n),uf(o,n),!1;case 1:if(i=o.type,h=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Kr===null||!Kr.has(h))))return o.flags|=65536,d&=-d,o.lanes|=d,d=pb(d),mb(d,n,o,l),uf(o,d),!1}o=o.return}while(o!==null);return!1}var vb=Error(a(461)),vt=!1;function Ct(n,i,o,l){i.child=n===null?sb(i,null,o,l):Da(i,n.child,o,l)}function bb(n,i,o,l,d){o=o.render;var h=i.ref;if("ref"in l){var b={};for(var S in l)S!=="ref"&&(b[S]=l[S])}else b=l;return Vi(i),l=pf(n,i,o,b,h,d),S=mf(),n!==null&&!vt?(vf(n,i,d),vr(n,i,d)):(Ie&&S&&Qd(i),i.flags|=1,Ct(n,i,l,d),i.child)}function yb(n,i,o,l,d){if(n===null){var h=o.type;return typeof h=="function"&&!Yd(h)&&h.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=h,xb(n,i,h,l,d)):(n=ql(o.type,null,l,i,i.mode,d),n.ref=i.ref,n.return=i,i.child=n)}if(h=n.child,!Ff(n,d)){var b=h.memoizedProps;if(o=o.compare,o=o!==null?o:Uo,o(b,l)&&n.ref===i.ref)return vr(n,i,d)}return i.flags|=1,n=ur(h,l),n.ref=i.ref,n.return=i,i.child=n}function xb(n,i,o,l,d){if(n!==null){var h=n.memoizedProps;if(Uo(h,l)&&n.ref===i.ref)if(vt=!1,i.pendingProps=l=h,Ff(n,d))(n.flags&131072)!==0&&(vt=!0);else return i.lanes=n.lanes,vr(n,i,d)}return _f(n,i,o,l,d)}function Sb(n,i,o){var l=i.pendingProps,d=l.children,h=n!==null?n.memoizedState:null;if(l.mode==="hidden"){if((i.flags&128)!==0){if(l=h!==null?h.baseLanes|o:o,n!==null){for(d=i.child=n.child,h=0;d!==null;)h=h|d.lanes|d.childLanes,d=d.sibling;i.childLanes=h&~l}else i.childLanes=0,i.child=null;return Cb(n,i,l,o)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Zl(i,h!==null?h.cachePool:null),h!==null?xv(i,h):ff(),lb(i);else return i.lanes=i.childLanes=536870912,Cb(n,i,h!==null?h.baseLanes|o:o,o)}else h!==null?(Zl(i,h.cachePool),xv(i,h),jr(),i.memoizedState=null):(n!==null&&Zl(i,null),ff(),jr());return Ct(n,i,d,o),i.child}function Cb(n,i,o,l){var d=of();return d=d===null?null:{parent:ft._currentValue,pool:d},i.memoizedState={baseLanes:o,cachePool:d},n!==null&&Zl(i,null),ff(),lb(i),n!==null&&Yo(n,i,l,!0),null}function pc(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 _f(n,i,o,l,d){return Vi(i),o=pf(n,i,o,l,void 0,d),l=mf(),n!==null&&!vt?(vf(n,i,d),vr(n,i,d)):(Ie&&l&&Qd(i),i.flags|=1,Ct(n,i,o,d),i.child)}function Eb(n,i,o,l,d,h){return Vi(i),i.updateQueue=null,o=Cv(i,l,o,d),Sv(n),l=mf(),n!==null&&!vt?(vf(n,i,h),vr(n,i,h)):(Ie&&l&&Qd(i),i.flags|=1,Ct(n,i,o,h),i.child)}function Ob(n,i,o,l,d){if(Vi(i),i.stateNode===null){var h=wa,b=o.contextType;typeof b=="object"&&b!==null&&(h=At(b)),h=new o(l,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Af,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=l,h.state=i.memoizedState,h.refs={},lf(i),b=o.contextType,h.context=typeof b=="object"&&b!==null?At(b):wa,h.state=i.memoizedState,b=o.getDerivedStateFromProps,typeof b=="function"&&(Pf(i,o,b,l),h.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Af.enqueueReplaceState(h,h.state,null),ts(i,l,h,d),es(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(n===null){h=i.stateNode;var S=i.memoizedProps,k=Mi(o,S);h.props=k;var M=h.context,j=o.contextType;b=wa,typeof j=="object"&&j!==null&&(b=At(j));var Q=o.getDerivedStateFromProps;j=typeof Q=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=i.pendingProps!==S,j||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||M!==b)&&ub(i,h,l,b),Br=!1;var B=i.memoizedState;h.state=B,ts(i,l,h,d),es(),M=i.memoizedState,S||B!==M||Br?(typeof Q=="function"&&(Pf(i,o,Q,l),M=i.memoizedState),(k=Br||cb(i,o,k,l,B,M,b))?(j||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(i.flags|=4194308)):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=M),h.props=l,h.state=M,h.context=b,l=k):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{h=i.stateNode,cf(n,i),b=i.memoizedProps,j=Mi(o,b),h.props=j,Q=i.pendingProps,B=h.context,M=o.contextType,k=wa,typeof M=="object"&&M!==null&&(k=At(M)),S=o.getDerivedStateFromProps,(M=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==Q||B!==k)&&ub(i,h,l,k),Br=!1,B=i.memoizedState,h.state=B,ts(i,l,h,d),es();var H=i.memoizedState;b!==Q||B!==H||Br||n!==null&&n.dependencies!==null&&Kl(n.dependencies)?(typeof S=="function"&&(Pf(i,o,S,l),H=i.memoizedState),(j=Br||cb(i,o,j,l,B,H,k)||n!==null&&n.dependencies!==null&&Kl(n.dependencies))?(M||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,H,k),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,H,k)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===n.memoizedProps&&B===n.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&B===n.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=H),h.props=l,h.state=H,h.context=k,l=j):(typeof h.componentDidUpdate!="function"||b===n.memoizedProps&&B===n.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&B===n.memoizedState||(i.flags|=1024),l=!1)}return h=l,pc(n,i),l=(i.flags&128)!==0,h||l?(h=i.stateNode,o=l&&typeof o.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,n!==null&&l?(i.child=Da(i,n.child,null,d),i.child=Da(i,null,o,d)):Ct(n,i,o,d),i.memoizedState=h.state,n=i.child):n=vr(n,i,d),n}function wb(n,i,o,l){return Wo(),i.flags|=256,Ct(n,i,o,l),i.child}var Vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Df(n){return{baseLanes:n,cachePool:fv()}}function zf(n,i,o){return n=n!==null?n.childLanes&~o:0,i&&(n|=En),n}function Tb(n,i,o){var l=i.pendingProps,d=!1,h=(i.flags&128)!==0,b;if((b=h)||(b=n!==null&&n.memoizedState===null?!1:(ht.current&2)!==0),b&&(d=!0,i.flags&=-129),b=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ie){if(d?Ur(i):jr(),Ie){var S=et,k;if(k=S){e:{for(k=S,S=Ln;k.nodeType!==8;){if(!S){S=null;break e}if(k=An(k.nextSibling),k===null){S=null;break e}}S=k}S!==null?(i.memoizedState={dehydrated:S,treeContext:Ni!==null?{id:dr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},k=en(18,null,null,0),k.stateNode=S,k.return=i,i.child=k,zt=i,et=null,k=!0):k=!1}k||Ii(i)}if(S=i.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return yh(S)?i.lanes=32:i.lanes=536870912,null;mr(i)}return S=l.children,l=l.fallback,d?(jr(),d=i.mode,S=mc({mode:"hidden",children:S},d),l=ki(l,d,o,null),S.return=i,l.return=i,S.sibling=l,i.child=S,d=i.child,d.memoizedState=Df(o),d.childLanes=zf(n,b,o),i.memoizedState=Vf,l):(Ur(i),Mf(i,S))}if(k=n.memoizedState,k!==null&&(S=k.dehydrated,S!==null)){if(h)i.flags&256?(Ur(i),i.flags&=-257,i=Lf(n,i,o)):i.memoizedState!==null?(jr(),i.child=n.child,i.flags|=128,i=null):(jr(),d=l.fallback,S=i.mode,l=mc({mode:"visible",children:l.children},S),d=ki(d,S,o,null),d.flags|=2,l.return=i,d.return=i,l.sibling=d,i.child=l,Da(i,n.child,null,o),l=i.child,l.memoizedState=Df(o),l.childLanes=zf(n,b,o),i.memoizedState=Vf,i=d);else if(Ur(i),yh(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var M=b.dgst;b=M,l=Error(a(419)),l.stack="",l.digest=b,qo({value:l,source:null,stack:null}),i=Lf(n,i,o)}else if(vt||Yo(n,i,o,!1),b=(o&n.childLanes)!==0,vt||b){if(b=We,b!==null&&(l=o&-o,l=(l&42)!==0?1:yd(l),l=(l&(b.suspendedLanes|o))!==0?0:l,l!==0&&l!==k.retryLane))throw k.retryLane=l,Oa(n,l),on(b,n,l),vb;S.data==="$?"||nh(),i=Lf(n,i,o)}else S.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=k.treeContext,et=An(S.nextSibling),zt=i,Ie=!0,Ai=null,Ln=!1,n!==null&&(xn[Sn++]=dr,xn[Sn++]=fr,xn[Sn++]=Ni,dr=n.id,fr=n.overflow,Ni=i),i=Mf(i,l.children),i.flags|=4096);return i}return d?(jr(),d=l.fallback,S=i.mode,k=n.child,M=k.sibling,l=ur(k,{mode:"hidden",children:l.children}),l.subtreeFlags=k.subtreeFlags&65011712,M!==null?d=ur(M,d):(d=ki(d,S,o,null),d.flags|=2),d.return=i,l.return=i,l.sibling=d,i.child=l,l=d,d=i.child,S=n.child.memoizedState,S===null?S=Df(o):(k=S.cachePool,k!==null?(M=ft._currentValue,k=k.parent!==M?{parent:M,pool:M}:k):k=fv(),S={baseLanes:S.baseLanes|o,cachePool:k}),d.memoizedState=S,d.childLanes=zf(n,b,o),i.memoizedState=Vf,l):(Ur(i),o=n.child,n=o.sibling,o=ur(o,{mode:"visible",children:l.children}),o.return=i,o.sibling=null,n!==null&&(b=i.deletions,b===null?(i.deletions=[n],i.flags|=16):b.push(n)),i.child=o,i.memoizedState=null,o)}function Mf(n,i){return i=mc({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function mc(n,i){return n=en(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Lf(n,i,o){return Da(i,n.child,null,o),n=Mf(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Rb(n,i,o){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i),tf(n.return,i,o)}function Bf(n,i,o,l,d){var h=n.memoizedState;h===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:d}:(h.isBackwards=i,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=o,h.tailMode=d)}function kb(n,i,o){var l=i.pendingProps,d=l.revealOrder,h=l.tail;if(Ct(n,i,l.children,o),l=ht.current,(l&2)!==0)l=l&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&&Rb(n,o,i);else if(n.tag===19)Rb(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}l&=1}switch(ne(ht,l),d){case"forwards":for(o=i.child,d=null;o!==null;)n=o.alternate,n!==null&&fc(n)===null&&(d=o),o=o.sibling;o=d,o===null?(d=i.child,i.child=null):(d=o.sibling,o.sibling=null),Bf(i,!1,d,o,h);break;case"backwards":for(o=null,d=i.child,i.child=null;d!==null;){if(n=d.alternate,n!==null&&fc(n)===null){i.child=d;break}n=d.sibling,d.sibling=o,o=d,d=n}Bf(i,!0,o,null,h);break;case"together":Bf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function vr(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),Xr|=i.lanes,(o&i.childLanes)===0)if(n!==null){if(Yo(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=ur(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=ur(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function Ff(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Kl(n)))}function LT(n,i,o){switch(i.tag){case 3:Z(i,i.stateNode.containerInfo),Lr(i,ft,n.memoizedState.cache),Wo();break;case 27:case 5:Te(i);break;case 4:Z(i,i.stateNode.containerInfo);break;case 10:Lr(i,i.type,i.memoizedProps.value);break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(Ur(i),i.flags|=128,null):(o&i.child.childLanes)!==0?Tb(n,i,o):(Ur(i),n=vr(n,i,o),n!==null?n.sibling:null);Ur(i);break;case 19:var d=(n.flags&128)!==0;if(l=(o&i.childLanes)!==0,l||(Yo(n,i,o,!1),l=(o&i.childLanes)!==0),d){if(l)return kb(n,i,o);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ne(ht,ht.current),l)break;return null;case 22:case 23:return i.lanes=0,Sb(n,i,o);case 24:Lr(i,ft,n.memoizedState.cache)}return vr(n,i,o)}function Nb(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps)vt=!0;else{if(!Ff(n,o)&&(i.flags&128)===0)return vt=!1,LT(n,i,o);vt=(n.flags&131072)!==0}else vt=!1,Ie&&(i.flags&1048576)!==0&&av(i,Xl,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var l=i.elementType,d=l._init;if(l=d(l._payload),i.type=l,typeof l=="function")Yd(l)?(n=Mi(l,n),i.tag=1,i=Ob(null,i,l,n,o)):(i.tag=0,i=_f(null,i,l,n,o));else{if(l!=null){if(d=l.$$typeof,d===L){i.tag=11,i=bb(null,i,l,n,o);break e}else if(d===q){i.tag=14,i=yb(null,i,l,n,o);break e}}throw i=ue(l)||l,Error(a(306,i,""))}}return i;case 0:return _f(n,i,i.type,i.pendingProps,o);case 1:return l=i.type,d=Mi(l,i.pendingProps),Ob(n,i,l,d,o);case 3:e:{if(Z(i,i.stateNode.containerInfo),n===null)throw Error(a(387));l=i.pendingProps;var h=i.memoizedState;d=h.element,cf(n,i),ts(i,l,null,o);var b=i.memoizedState;if(l=b.cache,Lr(i,ft,l),l!==h.cache&&nf(i,[ft],o,!0),es(),l=b.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:b.cache},i.updateQueue.baseState=h,i.memoizedState=h,i.flags&256){i=wb(n,i,l,o);break e}else if(l!==d){d=bn(Error(a(424)),i),qo(d),i=wb(n,i,l,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(et=An(n.firstChild),zt=i,Ie=!0,Ai=null,Ln=!0,o=sb(i,null,l,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Wo(),l===d){i=vr(n,i,o);break e}Ct(n,i,l,o)}i=i.child}return i;case 26:return pc(n,i),n===null?(o=_y(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ie||(o=i.type,n=i.pendingProps,l=Pc(Se.current).createElement(o),l[Pt]=i,l[Bt]=n,Ot(l,o,n),mt(l),i.stateNode=l):i.memoizedState=_y(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Te(i),n===null&&Ie&&(l=i.stateNode=Py(i.type,i.pendingProps,Se.current),zt=i,Ln=!0,d=et,Jr(i.type)?(xh=d,et=An(l.firstChild)):et=d),Ct(n,i,i.pendingProps.children,o),pc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ie&&((d=l=et)&&(l=fR(l,i.type,i.pendingProps,Ln),l!==null?(i.stateNode=l,zt=i,et=An(l.firstChild),Ln=!1,d=!0):d=!1),d||Ii(i)),Te(i),d=i.type,h=i.pendingProps,b=n!==null?n.memoizedProps:null,l=h.children,mh(d,h)?l=null:b!==null&&mh(d,b)&&(i.flags|=32),i.memoizedState!==null&&(d=pf(n,i,PT,null,null,o),Es._currentValue=d),pc(n,i),Ct(n,i,l,o),i.child;case 6:return n===null&&Ie&&((n=o=et)&&(o=hR(o,i.pendingProps,Ln),o!==null?(i.stateNode=o,zt=i,et=null,n=!0):n=!1),n||Ii(i)),null;case 13:return Tb(n,i,o);case 4:return Z(i,i.stateNode.containerInfo),l=i.pendingProps,n===null?i.child=Da(i,null,l,o):Ct(n,i,l,o),i.child;case 11:return bb(n,i,i.type,i.pendingProps,o);case 7:return Ct(n,i,i.pendingProps,o),i.child;case 8:return Ct(n,i,i.pendingProps.children,o),i.child;case 12:return Ct(n,i,i.pendingProps.children,o),i.child;case 10:return l=i.pendingProps,Lr(i,i.type,l.value),Ct(n,i,l.children,o),i.child;case 9:return d=i.type._context,l=i.pendingProps.children,Vi(i),d=At(d),l=l(d),i.flags|=1,Ct(n,i,l,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 kb(n,i,o);case 31:return l=i.pendingProps,o=i.mode,l={mode:l.mode,children:l.children},n===null?(o=mc(l,o),o.ref=i.ref,i.child=o,o.return=i,i=o):(o=ur(n.child,l),o.ref=i.ref,i.child=o,o.return=i,i=o),i;case 22:return Sb(n,i,o);case 24:return Vi(i),l=At(ft),n===null?(d=of(),d===null&&(d=We,h=rf(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=o),d=h),i.memoizedState={parent:l,cache:d},lf(i),Lr(i,ft,d)):((n.lanes&o)!==0&&(cf(n,i),ts(i,null,null,o),es()),d=n.memoizedState,h=i.memoizedState,d.parent!==l?(d={parent:l,cache:l},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),Lr(i,ft,l)):(l=h.cache,Lr(i,ft,l),l!==d.cache&&nf(i,[ft],o,!0))),Ct(n,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function br(n){n.flags|=4}function Pb(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Ly(i)){if(i=Cn.current,i!==null&&((Pe&4194048)===Pe?Bn!==null:(Pe&62914560)!==Pe&&(Pe&536870912)===0||i!==Bn))throw Zo=sf,hv;n.flags|=8192}}function vc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?lm():536870912,n.lanes|=i,Ba|=i)}function ls(n,i){if(!Ie)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 l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Qe(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,l=0;if(i)for(var d=n.child;d!==null;)o|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)o|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=l,n.childLanes=o,i}function BT(n,i,o){var l=i.pendingProps;switch(Zd(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(i),null;case 1:return Qe(i),null;case 3:return o=i.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),gr(ft),te(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Go(i)?br(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,lv())),Qe(i),null;case 26:return o=i.memoizedState,n===null?(br(i),o!==null?(Qe(i),Pb(i,o)):(Qe(i),i.flags&=-16777217)):o?o!==n.memoizedState?(br(i),Qe(i),Pb(i,o)):(Qe(i),i.flags&=-16777217):(n.memoizedProps!==l&&br(i),Qe(i),i.flags&=-16777217),null;case 27:ze(i),o=Se.current;var d=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==l&&br(i);else{if(!l){if(i.stateNode===null)throw Error(a(166));return Qe(i),null}n=de.current,Go(i)?ov(i):(n=Py(d,l,o),i.stateNode=n,br(i))}return Qe(i),null;case 5:if(ze(i),o=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==l&&br(i);else{if(!l){if(i.stateNode===null)throw Error(a(166));return Qe(i),null}if(n=de.current,Go(i))ov(i);else{switch(d=Pc(Se.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 l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?n.multiple=!0:l.size&&(n.size=l.size);break;default:n=typeof l.is=="string"?d.createElement(o,{is:l.is}):d.createElement(o)}}n[Pt]=i,n[Bt]=l;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(Ot(n,o,l),o){case"button":case"input":case"select":case"textarea":n=!!l.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&br(i)}}return Qe(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==l&&br(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(a(166));if(n=Se.current,Go(i)){if(n=i.stateNode,o=i.memoizedProps,l=null,d=zt,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}n[Pt]=i,n=!!(n.nodeValue===o||l!==null&&l.suppressHydrationWarning===!0||Ey(n.nodeValue,o)),n||Ii(i)}else n=Pc(n).createTextNode(l),n[Pt]=i,i.stateNode=n}return Qe(i),null;case 13:if(l=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Go(i),l!==null&&l.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[Pt]=i}else Wo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Qe(i),d=!1}else d=lv(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(mr(i),i):(mr(i),null)}if(mr(i),(i.flags&128)!==0)return i.lanes=o,i;if(o=l!==null,n=n!==null&&n.memoizedState!==null,o){l=i.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool);var h=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048)}return o!==n&&o&&(i.child.flags|=8192),vc(i,i.updateQueue),Qe(i),null;case 4:return te(),n===null&&dh(i.stateNode.containerInfo),Qe(i),null;case 10:return gr(i.type),Qe(i),null;case 19:if(re(ht),d=i.memoizedState,d===null)return Qe(i),null;if(l=(i.flags&128)!==0,h=d.rendering,h===null)if(l)ls(d,!1);else{if(tt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(h=fc(n),h!==null){for(i.flags|=128,ls(d,!1),n=h.updateQueue,i.updateQueue=n,vc(i,n),i.subtreeFlags=0,n=o,o=i.child;o!==null;)iv(o,n),o=o.sibling;return ne(ht,ht.current&1|2),i.child}n=n.sibling}d.tail!==null&&pn()>xc&&(i.flags|=128,l=!0,ls(d,!1),i.lanes=4194304)}else{if(!l)if(n=fc(h),n!==null){if(i.flags|=128,l=!0,n=n.updateQueue,i.updateQueue=n,vc(i,n),ls(d,!0),d.tail===null&&d.tailMode==="hidden"&&!h.alternate&&!Ie)return Qe(i),null}else 2*pn()-d.renderingStartTime>xc&&o!==536870912&&(i.flags|=128,l=!0,ls(d,!1),i.lanes=4194304);d.isBackwards?(h.sibling=i.child,i.child=h):(n=d.last,n!==null?n.sibling=h:i.child=h,d.last=h)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=pn(),i.sibling=null,n=ht.current,ne(ht,l?n&1|2:n&1),i):(Qe(i),null);case 22:case 23:return mr(i),hf(),l=i.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(o&536870912)!==0&&(i.flags&128)===0&&(Qe(i),i.subtreeFlags&6&&(i.flags|=8192)):Qe(i),o=i.updateQueue,o!==null&&vc(i,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==o&&(i.flags|=2048),n!==null&&re(Di),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),gr(ft),Qe(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function FT(n,i){switch(Zd(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return gr(ft),te(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return ze(i),null;case 13:if(mr(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Wo()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return re(ht),null;case 4:return te(),null;case 10:return gr(i.type),null;case 22:case 23:return mr(i),hf(),n!==null&&re(Di),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return gr(ft),null;case 25:return null;default:return null}}function Ab(n,i){switch(Zd(i),i.tag){case 3:gr(ft),te();break;case 26:case 27:case 5:ze(i);break;case 4:te();break;case 13:mr(i);break;case 19:re(ht);break;case 10:gr(i.type);break;case 22:case 23:mr(i),hf(),n!==null&&re(Di);break;case 24:gr(ft)}}function cs(n,i){try{var o=i.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var d=l.next;o=d;do{if((o.tag&n)===n){l=void 0;var h=o.create,b=o.inst;l=h(),b.destroy=l}o=o.next}while(o!==d)}}catch(S){Ue(i,i.return,S)}}function Gr(n,i,o){try{var l=i.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var h=d.next;l=h;do{if((l.tag&n)===n){var b=l.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,d=i;var k=o,M=S;try{M()}catch(j){Ue(d,k,j)}}}l=l.next}while(l!==h)}}catch(j){Ue(i,i.return,j)}}function Ib(n){var i=n.updateQueue;if(i!==null){var o=n.stateNode;try{yv(i,o)}catch(l){Ue(n,n.return,l)}}}function _b(n,i,o){o.props=Mi(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(l){Ue(n,i,l)}}function us(n,i){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof o=="function"?n.refCleanup=o(l):o.current=l}}catch(d){Ue(n,i,d)}}function Fn(n,i){var o=n.ref,l=n.refCleanup;if(o!==null)if(typeof l=="function")try{l()}catch(d){Ue(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){Ue(n,i,d)}else o.current=null}function Vb(n){var i=n.type,o=n.memoizedProps,l=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&l.focus();break e;case"img":o.src?l.src=o.src:o.srcSet&&(l.srcset=o.srcSet)}}catch(d){Ue(n,n.return,d)}}function Hf(n,i,o){try{var l=n.stateNode;sR(l,n.type,o,i),l[Bt]=i}catch(d){Ue(n,n.return,d)}}function Db(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Jr(n.type)||n.tag===4}function $f(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Db(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&&Jr(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 Uf(n,i,o){var l=n.tag;if(l===5||l===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=Nc));else if(l!==4&&(l===27&&Jr(n.type)&&(o=n.stateNode,i=null),n=n.child,n!==null))for(Uf(n,i,o),n=n.sibling;n!==null;)Uf(n,i,o),n=n.sibling}function bc(n,i,o){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(l!==4&&(l===27&&Jr(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(bc(n,i,o),n=n.sibling;n!==null;)bc(n,i,o),n=n.sibling}function zb(n){var i=n.stateNode,o=n.memoizedProps;try{for(var l=n.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);Ot(i,l,o),i[Pt]=n,i[Bt]=o}catch(h){Ue(n,n.return,h)}}var yr=!1,it=!1,jf=!1,Mb=typeof WeakSet=="function"?WeakSet:Set,bt=null;function HT(n,i){if(n=n.containerInfo,gh=zc,n=Ym(n),Hd(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var d=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var b=0,S=-1,k=-1,M=0,j=0,Q=n,B=null;t:for(;;){for(var H;Q!==o||d!==0&&Q.nodeType!==3||(S=b+d),Q!==h||l!==0&&Q.nodeType!==3||(k=b+l),Q.nodeType===3&&(b+=Q.nodeValue.length),(H=Q.firstChild)!==null;)B=Q,Q=H;for(;;){if(Q===n)break t;if(B===o&&++M===d&&(S=b),B===h&&++j===l&&(k=b),(H=Q.nextSibling)!==null)break;Q=B,B=Q.parentNode}Q=H}o=S===-1||k===-1?null:{start:S,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(ph={focusedElem:n,selectionRange:o},zc=!1,bt=i;bt!==null;)if(i=bt,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,bt=n;else for(;bt!==null;){switch(i=bt,h=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,o=i,d=h.memoizedProps,h=h.memoizedState,l=o.stateNode;try{var Ce=Mi(o.type,d,o.elementType===o.type);n=l.getSnapshotBeforeUpdate(Ce,h),l.__reactInternalSnapshotBeforeUpdate=n}catch(me){Ue(o,o.return,me)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,o=n.nodeType,o===9)bh(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":bh(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,bt=n;break}bt=i.return}}function Lb(n,i,o){var l=o.flags;switch(o.tag){case 0:case 11:case 15:Wr(n,o),l&4&&cs(5,o);break;case 1:if(Wr(n,o),l&4)if(n=o.stateNode,i===null)try{n.componentDidMount()}catch(b){Ue(o,o.return,b)}else{var d=Mi(o.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(d,i,n.__reactInternalSnapshotBeforeUpdate)}catch(b){Ue(o,o.return,b)}}l&64&&Ib(o),l&512&&us(o,o.return);break;case 3:if(Wr(n,o),l&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(b){Ue(o,o.return,b)}}break;case 27:i===null&&l&4&&zb(o);case 26:case 5:Wr(n,o),i===null&&l&4&&Vb(o),l&512&&us(o,o.return);break;case 12:Wr(n,o);break;case 13:Wr(n,o),l&4&&Hb(n,o),l&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=KT.bind(null,o),gR(n,o))));break;case 22:if(l=o.memoizedState!==null||yr,!l){i=i!==null&&i.memoizedState!==null||it,d=yr;var h=it;yr=l,(it=i)&&!h?qr(n,o,(o.subtreeFlags&8772)!==0):Wr(n,o),yr=d,it=h}break;case 30:break;default:Wr(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&&Cd(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 Ye=null,$t=!1;function xr(n,i,o){for(o=o.child;o!==null;)Fb(n,i,o),o=o.sibling}function Fb(n,i,o){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Ao,o)}catch{}switch(o.tag){case 26:it||Fn(o,i),xr(n,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:it||Fn(o,i);var l=Ye,d=$t;Jr(o.type)&&(Ye=o.stateNode,$t=!1),xr(n,i,o),ys(o.stateNode),Ye=l,$t=d;break;case 5:it||Fn(o,i);case 6:if(l=Ye,d=$t,Ye=null,xr(n,i,o),Ye=l,$t=d,Ye!==null)if($t)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(o.stateNode)}catch(h){Ue(o,i,h)}else try{Ye.removeChild(o.stateNode)}catch(h){Ue(o,i,h)}break;case 18:Ye!==null&&($t?(n=Ye,ky(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Rs(n)):ky(Ye,o.stateNode));break;case 4:l=Ye,d=$t,Ye=o.stateNode.containerInfo,$t=!0,xr(n,i,o),Ye=l,$t=d;break;case 0:case 11:case 14:case 15:it||Gr(2,o,i),it||Gr(4,o,i),xr(n,i,o);break;case 1:it||(Fn(o,i),l=o.stateNode,typeof l.componentWillUnmount=="function"&&_b(o,i,l)),xr(n,i,o);break;case 21:xr(n,i,o);break;case 22:it=(l=it)||o.memoizedState!==null,xr(n,i,o),it=l;break;default:xr(n,i,o)}}function Hb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Rs(n)}catch(o){Ue(i,i.return,o)}}function $T(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 Gf(n,i){var o=$T(n);i.forEach(function(l){var d=QT.bind(null,n,l);o.has(l)||(o.add(l),l.then(d,d))})}function tn(n,i){var o=i.deletions;if(o!==null)for(var l=0;l<o.length;l++){var d=o[l],h=n,b=i,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(Jr(S.type)){Ye=S.stateNode,$t=!1;break e}break;case 5:Ye=S.stateNode,$t=!1;break e;case 3:case 4:Ye=S.stateNode.containerInfo,$t=!0;break e}S=S.return}if(Ye===null)throw Error(a(160));Fb(h,b,d),Ye=null,$t=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)$b(i,n),i=i.sibling}var Pn=null;function $b(n,i){var o=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:tn(i,n),nn(n),l&4&&(Gr(3,n,n.return),cs(3,n),Gr(5,n,n.return));break;case 1:tn(i,n),nn(n),l&512&&(it||o===null||Fn(o,o.return)),l&64&&yr&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?l:o.concat(l))));break;case 26:var d=Pn;if(tn(i,n),nn(n),l&512&&(it||o===null||Fn(o,o.return)),l&4){var h=o!==null?o.memoizedState:null;if(l=n.memoizedState,o===null)if(l===null)if(n.stateNode===null){e:{l=n.type,o=n.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":h=d.getElementsByTagName("title")[0],(!h||h[Vo]||h[Pt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(l),d.head.insertBefore(h,d.querySelector("head > title"))),Ot(h,l,o),h[Pt]=n,mt(h),l=h;break e;case"link":var b=zy("link","href",d).get(l+(o.href||""));if(b){for(var S=0;S<b.length;S++)if(h=b[S],h.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&h.getAttribute("rel")===(o.rel==null?null:o.rel)&&h.getAttribute("title")===(o.title==null?null:o.title)&&h.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){b.splice(S,1);break t}}h=d.createElement(l),Ot(h,l,o),d.head.appendChild(h);break;case"meta":if(b=zy("meta","content",d).get(l+(o.content||""))){for(S=0;S<b.length;S++)if(h=b[S],h.getAttribute("content")===(o.content==null?null:""+o.content)&&h.getAttribute("name")===(o.name==null?null:o.name)&&h.getAttribute("property")===(o.property==null?null:o.property)&&h.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&h.getAttribute("charset")===(o.charSet==null?null:o.charSet)){b.splice(S,1);break t}}h=d.createElement(l),Ot(h,l,o),d.head.appendChild(h);break;default:throw Error(a(468,l))}h[Pt]=n,mt(h),l=h}n.stateNode=l}else My(d,n.type,n.stateNode);else n.stateNode=Dy(d,l,n.memoizedProps);else h!==l?(h===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):h.count--,l===null?My(d,n.type,n.stateNode):Dy(d,l,n.memoizedProps)):l===null&&n.stateNode!==null&&Hf(n,n.memoizedProps,o.memoizedProps)}break;case 27:tn(i,n),nn(n),l&512&&(it||o===null||Fn(o,o.return)),o!==null&&l&4&&Hf(n,n.memoizedProps,o.memoizedProps);break;case 5:if(tn(i,n),nn(n),l&512&&(it||o===null||Fn(o,o.return)),n.flags&32){d=n.stateNode;try{va(d,"")}catch(H){Ue(n,n.return,H)}}l&4&&n.stateNode!=null&&(d=n.memoizedProps,Hf(n,d,o!==null?o.memoizedProps:d)),l&1024&&(jf=!0);break;case 6:if(tn(i,n),nn(n),l&4){if(n.stateNode===null)throw Error(a(162));l=n.memoizedProps,o=n.stateNode;try{o.nodeValue=l}catch(H){Ue(n,n.return,H)}}break;case 3:if(_c=null,d=Pn,Pn=Ac(i.containerInfo),tn(i,n),Pn=d,nn(n),l&4&&o!==null&&o.memoizedState.isDehydrated)try{Rs(i.containerInfo)}catch(H){Ue(n,n.return,H)}jf&&(jf=!1,Ub(n));break;case 4:l=Pn,Pn=Ac(n.stateNode.containerInfo),tn(i,n),nn(n),Pn=l;break;case 12:tn(i,n),nn(n);break;case 13:tn(i,n),nn(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Qf=pn()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Gf(n,l)));break;case 22:d=n.memoizedState!==null;var k=o!==null&&o.memoizedState!==null,M=yr,j=it;if(yr=M||d,it=j||k,tn(i,n),it=j,yr=M,nn(n),l&8192)e:for(i=n.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(o===null||k||yr||it||Li(n)),o=null,i=n;;){if(i.tag===5||i.tag===26){if(o===null){k=o=i;try{if(h=k.stateNode,d)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=k.stateNode;var Q=k.memoizedProps.style,B=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;S.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(H){Ue(k,k.return,H)}}}else if(i.tag===6){if(o===null){k=i;try{k.stateNode.nodeValue=d?"":k.memoizedProps}catch(H){Ue(k,k.return,H)}}}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}l&4&&(l=n.updateQueue,l!==null&&(o=l.retryQueue,o!==null&&(l.retryQueue=null,Gf(n,o))));break;case 19:tn(i,n),nn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Gf(n,l)));break;case 30:break;case 21:break;default:tn(i,n),nn(n)}}function nn(n){var i=n.flags;if(i&2){try{for(var o,l=n.return;l!==null;){if(Db(l)){o=l;break}l=l.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var d=o.stateNode,h=$f(n);bc(n,h,d);break;case 5:var b=o.stateNode;o.flags&32&&(va(b,""),o.flags&=-33);var S=$f(n);bc(n,S,b);break;case 3:case 4:var k=o.stateNode.containerInfo,M=$f(n);Uf(n,M,k);break;default:throw Error(a(161))}}catch(j){Ue(n,n.return,j)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Ub(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Ub(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Wr(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Lb(n,i.alternate,i),i=i.sibling}function Li(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Gr(4,i,i.return),Li(i);break;case 1:Fn(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&_b(i,i.return,o),Li(i);break;case 27:ys(i.stateNode);case 26:case 5:Fn(i,i.return),Li(i);break;case 22:i.memoizedState===null&&Li(i);break;case 30:Li(i);break;default:Li(i)}n=n.sibling}}function qr(n,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,d=n,h=i,b=h.flags;switch(h.tag){case 0:case 11:case 15:qr(d,h,o),cs(4,h);break;case 1:if(qr(d,h,o),l=h,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(M){Ue(l,l.return,M)}if(l=h,d=l.updateQueue,d!==null){var S=l.stateNode;try{var k=d.shared.hiddenCallbacks;if(k!==null)for(d.shared.hiddenCallbacks=null,d=0;d<k.length;d++)bv(k[d],S)}catch(M){Ue(l,l.return,M)}}o&&b&64&&Ib(h),us(h,h.return);break;case 27:zb(h);case 26:case 5:qr(d,h,o),o&&l===null&&b&4&&Vb(h),us(h,h.return);break;case 12:qr(d,h,o);break;case 13:qr(d,h,o),o&&b&4&&Hb(d,h);break;case 22:h.memoizedState===null&&qr(d,h,o),us(h,h.return);break;case 30:break;default:qr(d,h,o)}i=i.sibling}}function Wf(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&&Xo(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&&Xo(n))}function Hn(n,i,o,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)jb(n,i,o,l),i=i.sibling}function jb(n,i,o,l){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Hn(n,i,o,l),d&2048&&cs(9,i);break;case 1:Hn(n,i,o,l);break;case 3:Hn(n,i,o,l),d&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Xo(n)));break;case 12:if(d&2048){Hn(n,i,o,l),n=i.stateNode;try{var h=i.memoizedProps,b=h.id,S=h.onPostCommit;typeof S=="function"&&S(b,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(k){Ue(i,i.return,k)}}else Hn(n,i,o,l);break;case 13:Hn(n,i,o,l);break;case 23:break;case 22:h=i.stateNode,b=i.alternate,i.memoizedState!==null?h._visibility&2?Hn(n,i,o,l):ds(n,i):h._visibility&2?Hn(n,i,o,l):(h._visibility|=2,za(n,i,o,l,(i.subtreeFlags&10256)!==0)),d&2048&&Wf(b,i);break;case 24:Hn(n,i,o,l),d&2048&&qf(i.alternate,i);break;default:Hn(n,i,o,l)}}function za(n,i,o,l,d){for(d=d&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var h=n,b=i,S=o,k=l,M=b.flags;switch(b.tag){case 0:case 11:case 15:za(h,b,S,k,d),cs(8,b);break;case 23:break;case 22:var j=b.stateNode;b.memoizedState!==null?j._visibility&2?za(h,b,S,k,d):ds(h,b):(j._visibility|=2,za(h,b,S,k,d)),d&&M&2048&&Wf(b.alternate,b);break;case 24:za(h,b,S,k,d),d&&M&2048&&qf(b.alternate,b);break;default:za(h,b,S,k,d)}i=i.sibling}}function ds(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=n,l=i,d=l.flags;switch(l.tag){case 22:ds(o,l),d&2048&&Wf(l.alternate,l);break;case 24:ds(o,l),d&2048&&qf(l.alternate,l);break;default:ds(o,l)}i=i.sibling}}var fs=8192;function Ma(n){if(n.subtreeFlags&fs)for(n=n.child;n!==null;)Gb(n),n=n.sibling}function Gb(n){switch(n.tag){case 26:Ma(n),n.flags&fs&&n.memoizedState!==null&&RR(Pn,n.memoizedState,n.memoizedProps);break;case 5:Ma(n);break;case 3:case 4:var i=Pn;Pn=Ac(n.stateNode.containerInfo),Ma(n),Pn=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=fs,fs=16777216,Ma(n),fs=i):Ma(n));break;default:Ma(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 hs(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var l=i[o];bt=l,Yb(l,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:hs(n),n.flags&2048&&Gr(9,n,n.return);break;case 3:hs(n);break;case 12:hs(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,yc(n)):hs(n);break;default:hs(n)}}function yc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var l=i[o];bt=l,Yb(l,n)}Wb(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Gr(8,i,i.return),yc(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,yc(i));break;default:yc(i)}n=n.sibling}}function Yb(n,i){for(;bt!==null;){var o=bt;switch(o.tag){case 0:case 11:case 15:Gr(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var l=o.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Xo(o.memoizedState.cache)}if(l=o.child,l!==null)l.return=o,bt=l;else e:for(o=n;bt!==null;){l=bt;var d=l.sibling,h=l.return;if(Bb(l),l===o){bt=null;break e}if(d!==null){d.return=h,bt=d;break e}bt=h}}}var UT={getCacheForType:function(n){var i=At(ft),o=i.data.get(n);return o===void 0&&(o=n(),i.data.set(n,o)),o}},jT=typeof WeakMap=="function"?WeakMap:Map,Le=0,We=null,ke=null,Pe=0,Be=0,rn=null,Yr=!1,La=!1,Yf=!1,Sr=0,tt=0,Xr=0,Bi=0,Xf=0,En=0,Ba=0,gs=null,Ut=null,Kf=!1,Qf=0,xc=1/0,Sc=null,Kr=null,Et=0,Qr=null,Fa=null,Ha=0,Zf=0,Jf=null,Xb=null,ps=0,eh=null;function an(){if((Le&2)!==0&&Pe!==0)return Pe&-Pe;if(F.T!==null){var n=ka;return n!==0?n:sh()}return dm()}function Kb(){En===0&&(En=(Pe&536870912)===0||Ie?sm():536870912);var n=Cn.current;return n!==null&&(n.flags|=32),En}function on(n,i,o){(n===We&&(Be===2||Be===9)||n.cancelPendingCommit!==null)&&($a(n,0),Zr(n,Pe,En,!1)),_o(n,o),((Le&2)===0||n!==We)&&(n===We&&((Le&2)===0&&(Bi|=o),tt===4&&Zr(n,Pe,En,!1)),$n(n))}function Qb(n,i,o){if((Le&6)!==0)throw Error(a(327));var l=!o&&(i&124)===0&&(i&n.expiredLanes)===0||Io(n,i),d=l?qT(n,i):rh(n,i,!0),h=l;do{if(d===0){La&&!l&&Zr(n,i,0,!1);break}else{if(o=n.current.alternate,h&&!GT(o)){d=rh(n,i,!1),h=!1;continue}if(d===2){if(h=i,n.errorRecoveryDisabledLanes&h)var b=0;else b=n.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){i=b;e:{var S=n;d=gs;var k=S.current.memoizedState.isDehydrated;if(k&&($a(S,b).flags|=256),b=rh(S,b,!1),b!==2){if(Yf&&!k){S.errorRecoveryDisabledLanes|=h,Bi|=h,d=4;break e}h=Ut,Ut=d,h!==null&&(Ut===null?Ut=h:Ut.push.apply(Ut,h))}d=b}if(h=!1,d!==2)continue}}if(d===1){$a(n,0),Zr(n,i,0,!0);break}e:{switch(l=n,h=d,h){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Zr(l,i,En,!Yr);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(d=Qf+300-pn(),10<d)){if(Zr(l,i,En,!Yr),Il(l,0,!0)!==0)break e;l.timeoutHandle=Ty(Zb.bind(null,l,o,Ut,Sc,Kf,i,En,Bi,Ba,Yr,h,2,-0,0),d);break e}Zb(l,o,Ut,Sc,Kf,i,En,Bi,Ba,Yr,h,0,-0,0)}}break}while(!0);$n(n)}function Zb(n,i,o,l,d,h,b,S,k,M,j,Q,B,H){if(n.timeoutHandle=-1,Q=i.subtreeFlags,(Q&8192||(Q&16785408)===16785408)&&(Cs={stylesheets:null,count:0,unsuspend:TR},Gb(i),Q=kR(),Q!==null)){n.cancelPendingCommit=Q(ay.bind(null,n,i,h,o,l,d,b,S,k,j,1,B,H)),Zr(n,h,b,!M);return}ay(n,i,h,o,l,d,b,S,k)}function GT(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 l=0;l<o.length;l++){var d=o[l],h=d.getSnapshot;d=d.value;try{if(!Jt(h(),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 Zr(n,i,o,l){i&=~Xf,i&=~Bi,n.suspendedLanes|=i,n.pingedLanes&=~i,l&&(n.warmLanes|=i),l=n.expirationTimes;for(var d=i;0<d;){var h=31-Zt(d),b=1<<h;l[h]=-1,d&=~b}o!==0&&cm(n,o,i)}function Cc(){return(Le&6)===0?(ms(0),!1):!0}function th(){if(ke!==null){if(Be===0)var n=ke.return;else n=ke,hr=_i=null,bf(n),Va=null,os=0,n=ke;for(;n!==null;)Ab(n.alternate,n),n=n.return;ke=null}}function $a(n,i){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,cR(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),th(),We=n,ke=o=ur(n.current,null),Pe=i,Be=0,rn=null,Yr=!1,La=Io(n,i),Yf=!1,Ba=En=Xf=Bi=Xr=tt=0,Ut=gs=null,Kf=!1,(i&8)!==0&&(i|=i&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=i;0<l;){var d=31-Zt(l),h=1<<d;i|=n[d],l&=~h}return Sr=i,jl(),o}function Jb(n,i){we=null,F.H=cc,i===Qo||i===Jl?(i=mv(),Be=3):i===hv?(i=mv(),Be=4):Be=i===vb?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,rn=i,ke===null&&(tt=1,gc(n,bn(i,n.current)))}function ey(){var n=F.H;return F.H=cc,n===null?cc:n}function ty(){var n=F.A;return F.A=UT,n}function nh(){tt=4,Yr||(Pe&4194048)!==Pe&&Cn.current!==null||(La=!0),(Xr&134217727)===0&&(Bi&134217727)===0||We===null||Zr(We,Pe,En,!1)}function rh(n,i,o){var l=Le;Le|=2;var d=ey(),h=ty();(We!==n||Pe!==i)&&(Sc=null,$a(n,i)),i=!1;var b=tt;e:do try{if(Be!==0&&ke!==null){var S=ke,k=rn;switch(Be){case 8:th(),b=6;break e;case 3:case 2:case 9:case 6:Cn.current===null&&(i=!0);var M=Be;if(Be=0,rn=null,Ua(n,S,k,M),o&&La){b=0;break e}break;default:M=Be,Be=0,rn=null,Ua(n,S,k,M)}}WT(),b=tt;break}catch(j){Jb(n,j)}while(!0);return i&&n.shellSuspendCounter++,hr=_i=null,Le=l,F.H=d,F.A=h,ke===null&&(We=null,Pe=0,jl()),b}function WT(){for(;ke!==null;)ny(ke)}function qT(n,i){var o=Le;Le|=2;var l=ey(),d=ty();We!==n||Pe!==i?(Sc=null,xc=pn()+500,$a(n,i)):La=Io(n,i);e:do try{if(Be!==0&&ke!==null){i=ke;var h=rn;t:switch(Be){case 1:Be=0,rn=null,Ua(n,i,h,1);break;case 2:case 9:if(gv(h)){Be=0,rn=null,ry(i);break}i=function(){Be!==2&&Be!==9||We!==n||(Be=7),$n(n)},h.then(i,i);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:gv(h)?(Be=0,rn=null,ry(i)):(Be=0,rn=null,Ua(n,i,h,7));break;case 5:var b=null;switch(ke.tag){case 26:b=ke.memoizedState;case 5:case 27:var S=ke;if(!b||Ly(b)){Be=0,rn=null;var k=S.sibling;if(k!==null)ke=k;else{var M=S.return;M!==null?(ke=M,Ec(M)):ke=null}break t}}Be=0,rn=null,Ua(n,i,h,5);break;case 6:Be=0,rn=null,Ua(n,i,h,6);break;case 8:th(),tt=6;break e;default:throw Error(a(462))}}YT();break}catch(j){Jb(n,j)}while(!0);return hr=_i=null,F.H=l,F.A=d,Le=o,ke!==null?0:(We=null,Pe=0,jl(),tt)}function YT(){for(;ke!==null&&!la();)ny(ke)}function ny(n){var i=Nb(n.alternate,n,Sr);n.memoizedProps=n.pendingProps,i===null?Ec(n):ke=i}function ry(n){var i=n,o=i.alternate;switch(i.tag){case 15:case 0:i=Eb(o,i,i.pendingProps,i.type,void 0,Pe);break;case 11:i=Eb(o,i,i.pendingProps,i.type.render,i.ref,Pe);break;case 5:bf(i);default:Ab(o,i),i=ke=iv(i,Sr),i=Nb(o,i,Sr)}n.memoizedProps=n.pendingProps,i===null?Ec(n):ke=i}function Ua(n,i,o,l){hr=_i=null,bf(i),Va=null,os=0;var d=i.return;try{if(MT(n,d,i,o,Pe)){tt=1,gc(n,bn(o,n.current)),ke=null;return}}catch(h){if(d!==null)throw ke=d,h;tt=1,gc(n,bn(o,n.current)),ke=null;return}i.flags&32768?(Ie||l===1?n=!0:La||(Pe&536870912)!==0?n=!1:(Yr=n=!0,(l===2||l===9||l===3||l===6)&&(l=Cn.current,l!==null&&l.tag===13&&(l.flags|=16384))),iy(i,n)):Ec(i)}function Ec(n){var i=n;do{if((i.flags&32768)!==0){iy(i,Yr);return}n=i.return;var o=BT(i.alternate,i,Sr);if(o!==null){ke=o;return}if(i=i.sibling,i!==null){ke=i;return}ke=i=n}while(i!==null);tt===0&&(tt=5)}function iy(n,i){do{var o=FT(n.alternate,n);if(o!==null){o.flags&=32767,ke=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(n=n.sibling,n!==null)){ke=n;return}ke=n=o}while(n!==null);tt=6,ke=null}function ay(n,i,o,l,d,h,b,S,k){n.cancelPendingCommit=null;do Oc();while(Et!==0);if((Le&6)!==0)throw Error(a(327));if(i!==null){if(i===n.current)throw Error(a(177));if(h=i.lanes|i.childLanes,h|=Wd,Tw(n,o,h,b,S,k),n===We&&(ke=We=null,Pe=0),Fa=i,Qr=n,Ha=o,Zf=h,Jf=d,Xb=l,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,ZT(Ci,function(){return uy(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||l){l=F.T,F.T=null,d=ee.p,ee.p=2,b=Le,Le|=4;try{HT(n,i,o)}finally{Le=b,ee.p=d,F.T=l}}Et=1,oy(),sy(),ly()}}function oy(){if(Et===1){Et=0;var n=Qr,i=Fa,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=F.T,F.T=null;var l=ee.p;ee.p=2;var d=Le;Le|=4;try{$b(i,n);var h=ph,b=Ym(n.containerInfo),S=h.focusedElem,k=h.selectionRange;if(b!==S&&S&&S.ownerDocument&&qm(S.ownerDocument.documentElement,S)){if(k!==null&&Hd(S)){var M=k.start,j=k.end;if(j===void 0&&(j=M),"selectionStart"in S)S.selectionStart=M,S.selectionEnd=Math.min(j,S.value.length);else{var Q=S.ownerDocument||document,B=Q&&Q.defaultView||window;if(B.getSelection){var H=B.getSelection(),Ce=S.textContent.length,me=Math.min(k.start,Ce),$e=k.end===void 0?me:Math.min(k.end,Ce);!H.extend&&me>$e&&(b=$e,$e=me,me=b);var V=Wm(S,me),I=Wm(S,$e);if(V&&I&&(H.rangeCount!==1||H.anchorNode!==V.node||H.anchorOffset!==V.offset||H.focusNode!==I.node||H.focusOffset!==I.offset)){var D=Q.createRange();D.setStart(V.node,V.offset),H.removeAllRanges(),me>$e?(H.addRange(D),H.extend(I.node,I.offset)):(D.setEnd(I.node,I.offset),H.addRange(D))}}}}for(Q=[],H=S;H=H.parentNode;)H.nodeType===1&&Q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Q.length;S++){var W=Q[S];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}zc=!!gh,ph=gh=null}finally{Le=d,ee.p=l,F.T=o}}n.current=i,Et=2}}function sy(){if(Et===2){Et=0;var n=Qr,i=Fa,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=F.T,F.T=null;var l=ee.p;ee.p=2;var d=Le;Le|=4;try{Lb(n,i.alternate,i)}finally{Le=d,ee.p=l,F.T=o}}Et=3}}function ly(){if(Et===4||Et===3){Et=0,No();var n=Qr,i=Fa,o=Ha,l=Xb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Et=5:(Et=0,Fa=Qr=null,cy(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Kr=null),xd(o),i=i.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Ao,i,void 0,(i.current.flags&128)===128)}catch{}if(l!==null){i=F.T,d=ee.p,ee.p=2,F.T=null;try{for(var h=n.onRecoverableError,b=0;b<l.length;b++){var S=l[b];h(S.value,{componentStack:S.stack})}}finally{F.T=i,ee.p=d}}(Ha&3)!==0&&Oc(),$n(n),d=n.pendingLanes,(o&4194090)!==0&&(d&42)!==0?n===eh?ps++:(ps=0,eh=n):ps=0,ms(0)}}function cy(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Xo(i)))}function Oc(n){return oy(),sy(),ly(),uy()}function uy(){if(Et!==5)return!1;var n=Qr,i=Zf;Zf=0;var o=xd(Ha),l=F.T,d=ee.p;try{ee.p=32>o?32:o,F.T=null,o=Jf,Jf=null;var h=Qr,b=Ha;if(Et=0,Fa=Qr=null,Ha=0,(Le&6)!==0)throw Error(a(331));var S=Le;if(Le|=4,qb(h.current),jb(h,h.current,b,o),Le=S,ms(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Ao,h)}catch{}return!0}finally{ee.p=d,F.T=l,cy(n,i)}}function dy(n,i,o){i=bn(o,i),i=If(n.stateNode,i,2),n=Hr(n,i,2),n!==null&&(_o(n,2),$n(n))}function Ue(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 l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Kr===null||!Kr.has(l))){n=bn(o,n),o=pb(2),l=Hr(i,o,2),l!==null&&(mb(o,l,i,n),_o(l,2),$n(l));break}}i=i.return}}function ih(n,i,o){var l=n.pingCache;if(l===null){l=n.pingCache=new jT;var d=new Set;l.set(i,d)}else d=l.get(i),d===void 0&&(d=new Set,l.set(i,d));d.has(o)||(Yf=!0,d.add(o),n=XT.bind(null,n,i,o),i.then(n,n))}function XT(n,i,o){var l=n.pingCache;l!==null&&l.delete(i),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,We===n&&(Pe&o)===o&&(tt===4||tt===3&&(Pe&62914560)===Pe&&300>pn()-Qf?(Le&2)===0&&$a(n,0):Xf|=o,Ba===Pe&&(Ba=0)),$n(n)}function fy(n,i){i===0&&(i=lm()),n=Oa(n,i),n!==null&&(_o(n,i),$n(n))}function KT(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),fy(n,o)}function QT(n,i){var o=0;switch(n.tag){case 13:var l=n.stateNode,d=n.memoizedState;d!==null&&(o=d.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(a(314))}l!==null&&l.delete(i),fy(n,o)}function ZT(n,i){return nt(n,i)}var wc=null,ja=null,ah=!1,Tc=!1,oh=!1,Fi=0;function $n(n){n!==ja&&n.next===null&&(ja===null?wc=ja=n:ja=ja.next=n),Tc=!0,ah||(ah=!0,eR())}function ms(n,i){if(!oh&&Tc){oh=!0;do for(var o=!1,l=wc;l!==null;){if(n!==0){var d=l.pendingLanes;if(d===0)var h=0;else{var b=l.suspendedLanes,S=l.pingedLanes;h=(1<<31-Zt(42|n)+1)-1,h&=d&~(b&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(o=!0,my(l,h))}else h=Pe,h=Il(l,l===We?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||Io(l,h)||(o=!0,my(l,h));l=l.next}while(o);oh=!1}}function JT(){hy()}function hy(){Tc=ah=!1;var n=0;Fi!==0&&(lR()&&(n=Fi),Fi=0);for(var i=pn(),o=null,l=wc;l!==null;){var d=l.next,h=gy(l,i);h===0?(l.next=null,o===null?wc=d:o.next=d,d===null&&(ja=o)):(o=l,(n!==0||(h&3)!==0)&&(Tc=!0)),l=d}ms(n)}function gy(n,i){for(var o=n.suspendedLanes,l=n.pingedLanes,d=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var b=31-Zt(h),S=1<<b,k=d[b];k===-1?((S&o)===0||(S&l)!==0)&&(d[b]=ww(S,i)):k<=i&&(n.expiredLanes|=S),h&=~S}if(i=We,o=Pe,o=Il(n,n===i?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,o===0||n===i&&(Be===2||Be===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Kt(l),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||Io(n,o)){if(i=o&-o,i===n.callbackPriority)return i;switch(l!==null&&Kt(l),xd(o)){case 2:case 8:o=kl;break;case 32:o=Ci;break;case 268435456:o=ca;break;default:o=Ci}return l=py.bind(null,n),o=nt(o,l),n.callbackPriority=i,n.callbackNode=o,i}return l!==null&&l!==null&&Kt(l),n.callbackPriority=2,n.callbackNode=null,2}function py(n,i){if(Et!==0&&Et!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Oc()&&n.callbackNode!==o)return null;var l=Pe;return l=Il(n,n===We?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(Qb(n,l,i),gy(n,pn()),n.callbackNode!=null&&n.callbackNode===o?py.bind(null,n):null)}function my(n,i){if(Oc())return null;Qb(n,i,!0)}function eR(){uR(function(){(Le&6)!==0?nt(Po,JT):hy()})}function sh(){return Fi===0&&(Fi=sm()),Fi}function vy(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Ml(""+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 tR(n,i,o,l,d){if(i==="submit"&&o&&o.stateNode===d){var h=vy((d[Bt]||null).action),b=l.submitter;b&&(i=(i=b[Bt]||null)?vy(i.formAction):b.getAttribute("formAction"),i!==null&&(h=i,b=null));var S=new Hl("action","action",null,l,d);n.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Fi!==0){var k=b?by(d,b):new FormData(d);Rf(o,{pending:!0,data:k,method:d.method,action:h},null,k)}}else typeof h=="function"&&(S.preventDefault(),k=b?by(d,b):new FormData(d),Rf(o,{pending:!0,data:k,method:d.method,action:h},h,k))},currentTarget:d}]})}}for(var lh=0;lh<Gd.length;lh++){var ch=Gd[lh],nR=ch.toLowerCase(),rR=ch[0].toUpperCase()+ch.slice(1);Nn(nR,"on"+rR)}Nn(Qm,"onAnimationEnd"),Nn(Zm,"onAnimationIteration"),Nn(Jm,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(xT,"onTransitionRun"),Nn(ST,"onTransitionStart"),Nn(CT,"onTransitionCancel"),Nn(ev,"onTransitionEnd"),ga("onMouseEnter",["mouseout","mouseover"]),ga("onMouseLeave",["mouseout","mouseover"]),ga("onPointerEnter",["pointerout","pointerover"]),ga("onPointerLeave",["pointerout","pointerover"]),Oi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Oi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Oi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Oi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Oi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Oi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="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(" "),iR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vs));function yy(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var l=n[o],d=l.event;l=l.listeners;e:{var h=void 0;if(i)for(var b=l.length-1;0<=b;b--){var S=l[b],k=S.instance,M=S.currentTarget;if(S=S.listener,k!==h&&d.isPropagationStopped())break e;h=S,d.currentTarget=M;try{h(d)}catch(j){hc(j)}d.currentTarget=null,h=k}else for(b=0;b<l.length;b++){if(S=l[b],k=S.instance,M=S.currentTarget,S=S.listener,k!==h&&d.isPropagationStopped())break e;h=S,d.currentTarget=M;try{h(d)}catch(j){hc(j)}d.currentTarget=null,h=k}}}}function Ne(n,i){var o=i[Sd];o===void 0&&(o=i[Sd]=new Set);var l=n+"__bubble";o.has(l)||(xy(i,n,2,!1),o.add(l))}function uh(n,i,o){var l=0;i&&(l|=4),xy(o,n,l,i)}var Rc="_reactListening"+Math.random().toString(36).slice(2);function dh(n){if(!n[Rc]){n[Rc]=!0,hm.forEach(function(o){o!=="selectionchange"&&(iR.has(o)||uh(o,!1,n),uh(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Rc]||(i[Rc]=!0,uh("selectionchange",!1,i))}}function xy(n,i,o,l){switch(jy(i)){case 2:var d=AR;break;case 8:d=IR;break;default:d=wh}o=d.bind(null,i,o,n),d=void 0,!Id||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),l?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 fh(n,i,o,l,d){var h=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var S=l.stateNode.containerInfo;if(S===d)break;if(b===4)for(b=l.return;b!==null;){var k=b.tag;if((k===3||k===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;S!==null;){if(b=da(S),b===null)return;if(k=b.tag,k===5||k===6||k===26||k===27){l=h=b;continue e}S=S.parentNode}}l=l.return}Rm(function(){var M=h,j=Pd(o),Q=[];e:{var B=tv.get(n);if(B!==void 0){var H=Hl,Ce=n;switch(n){case"keypress":if(Bl(o)===0)break e;case"keydown":case"keyup":H=Zw;break;case"focusin":Ce="focus",H=zd;break;case"focusout":Ce="blur",H=zd;break;case"beforeblur":case"afterblur":H=zd;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":H=Pm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Fw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=tT;break;case Qm:case Zm:case Jm:H=Uw;break;case ev:H=rT;break;case"scroll":case"scrollend":H=Lw;break;case"wheel":H=aT;break;case"copy":case"cut":case"paste":H=Gw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Im;break;case"toggle":case"beforetoggle":H=sT}var me=(i&4)!==0,$e=!me&&(n==="scroll"||n==="scrollend"),V=me?B!==null?B+"Capture":null:B;me=[];for(var I=M,D;I!==null;){var W=I;if(D=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||D===null||V===null||(W=zo(I,V),W!=null&&me.push(bs(I,W,D))),$e)break;I=I.return}0<me.length&&(B=new H(B,Ce,null,o,j),Q.push({event:B,listeners:me}))}}if((i&7)===0){e:{if(B=n==="mouseover"||n==="pointerover",H=n==="mouseout"||n==="pointerout",B&&o!==Nd&&(Ce=o.relatedTarget||o.fromElement)&&(da(Ce)||Ce[ua]))break e;if((H||B)&&(B=j.window===j?j:(B=j.ownerDocument)?B.defaultView||B.parentWindow:window,H?(Ce=o.relatedTarget||o.toElement,H=M,Ce=Ce?da(Ce):null,Ce!==null&&($e=c(Ce),me=Ce.tag,Ce!==$e||me!==5&&me!==27&&me!==6)&&(Ce=null)):(H=null,Ce=M),H!==Ce)){if(me=Pm,W="onMouseLeave",V="onMouseEnter",I="mouse",(n==="pointerout"||n==="pointerover")&&(me=Im,W="onPointerLeave",V="onPointerEnter",I="pointer"),$e=H==null?B:Do(H),D=Ce==null?B:Do(Ce),B=new me(W,I+"leave",H,o,j),B.target=$e,B.relatedTarget=D,W=null,da(j)===M&&(me=new me(V,I+"enter",Ce,o,j),me.target=D,me.relatedTarget=$e,W=me),$e=W,H&&Ce)t:{for(me=H,V=Ce,I=0,D=me;D;D=Ga(D))I++;for(D=0,W=V;W;W=Ga(W))D++;for(;0<I-D;)me=Ga(me),I--;for(;0<D-I;)V=Ga(V),D--;for(;I--;){if(me===V||V!==null&&me===V.alternate)break t;me=Ga(me),V=Ga(V)}me=null}else me=null;H!==null&&Sy(Q,B,H,me,!1),Ce!==null&&$e!==null&&Sy(Q,$e,Ce,me,!0)}}e:{if(B=M?Do(M):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var le=Fm;else if(Lm(B))if(Hm)le=vT;else{le=pT;var Re=gT}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?M&&kd(M.elementType)&&(le=Fm):le=mT;if(le&&(le=le(n,M))){Bm(Q,le,o,j);break e}Re&&Re(n,B,M),n==="focusout"&&M&&B.type==="number"&&M.memoizedProps.value!=null&&Rd(B,"number",B.value)}switch(Re=M?Do(M):window,n){case"focusin":(Lm(Re)||Re.contentEditable==="true")&&(Sa=Re,$d=M,jo=null);break;case"focusout":jo=$d=Sa=null;break;case"mousedown":Ud=!0;break;case"contextmenu":case"mouseup":case"dragend":Ud=!1,Xm(Q,o,j);break;case"selectionchange":if(yT)break;case"keydown":case"keyup":Xm(Q,o,j)}var fe;if(Ld)e:{switch(n){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else xa?zm(n,o)&&(be="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(be="onCompositionStart");be&&(_m&&o.locale!=="ko"&&(xa||be!=="onCompositionStart"?be==="onCompositionEnd"&&xa&&(fe=km()):(Mr=j,_d="value"in Mr?Mr.value:Mr.textContent,xa=!0)),Re=kc(M,be),0<Re.length&&(be=new Am(be,n,null,o,j),Q.push({event:be,listeners:Re}),fe?be.data=fe:(fe=Mm(o),fe!==null&&(be.data=fe)))),(fe=cT?uT(n,o):dT(n,o))&&(be=kc(M,"onBeforeInput"),0<be.length&&(Re=new Am("onBeforeInput","beforeinput",null,o,j),Q.push({event:Re,listeners:be}),Re.data=fe)),tR(Q,n,M,o,j)}yy(Q,i)})}function bs(n,i,o){return{instance:n,listener:i,currentTarget:o}}function kc(n,i){for(var o=i+"Capture",l=[];n!==null;){var d=n,h=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=zo(n,o),d!=null&&l.unshift(bs(n,d,h)),d=zo(n,i),d!=null&&l.push(bs(n,d,h))),n.tag===3)return l;n=n.return}return[]}function Ga(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,l,d){for(var h=i._reactName,b=[];o!==null&&o!==l;){var S=o,k=S.alternate,M=S.stateNode;if(S=S.tag,k!==null&&k===l)break;S!==5&&S!==26&&S!==27||M===null||(k=M,d?(M=zo(o,h),M!=null&&b.unshift(bs(o,M,k))):d||(M=zo(o,h),M!=null&&b.push(bs(o,M,k)))),o=o.return}b.length!==0&&n.push({event:i,listeners:b})}var aR=/\r\n?/g,oR=/\u0000|\uFFFD/g;function Cy(n){return(typeof n=="string"?n:""+n).replace(aR,`
49
+ `).replace(oR,"")}function Ey(n,i){return i=Cy(i),Cy(n)===i}function Nc(){}function He(n,i,o,l,d,h){switch(o){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||va(n,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&va(n,""+l);break;case"className":Vl(n,"class",l);break;case"tabIndex":Vl(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Vl(n,o,l);break;case"style":wm(n,l,h);break;case"data":if(i!=="object"){Vl(n,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||o!=="href")){n.removeAttribute(o);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(o);break}l=Ml(""+l),n.setAttribute(o,l);break;case"action":case"formAction":if(typeof l=="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 h=="function"&&(o==="formAction"?(i!=="input"&&He(n,i,"name",d.name,d,null),He(n,i,"formEncType",d.formEncType,d,null),He(n,i,"formMethod",d.formMethod,d,null),He(n,i,"formTarget",d.formTarget,d,null)):(He(n,i,"encType",d.encType,d,null),He(n,i,"method",d.method,d,null),He(n,i,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(o);break}l=Ml(""+l),n.setAttribute(o,l);break;case"onClick":l!=null&&(n.onclick=Nc);break;case"onScroll":l!=null&&Ne("scroll",n);break;case"onScrollEnd":l!=null&&Ne("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(a(61));if(o=l.__html,o!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}o=Ml(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":l===!0?n.setAttribute(o,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,l):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(o,l):n.removeAttribute(o);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(o):n.setAttribute(o,l);break;case"popover":Ne("beforetoggle",n),Ne("toggle",n),_l(n,"popover",l);break;case"xlinkActuate":lr(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":lr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":lr(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":lr(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":lr(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":lr(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":lr(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":lr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":lr(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_l(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=zw.get(o)||o,_l(n,o,l))}}function hh(n,i,o,l,d,h){switch(o){case"style":wm(n,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(a(61));if(o=l.__html,o!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"children":typeof l=="string"?va(n,l):(typeof l=="number"||typeof l=="bigint")&&va(n,""+l);break;case"onScroll":l!=null&&Ne("scroll",n);break;case"onScrollEnd":l!=null&&Ne("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Nc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gm.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(d=o.endsWith("Capture"),i=o.slice(2,d?o.length-7:void 0),h=n[Bt]||null,h=h!=null?h[o]:null,typeof h=="function"&&n.removeEventListener(i,h,d),typeof l=="function")){typeof h!="function"&&h!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(i,l,d);break e}o in n?n[o]=l:l===!0?n.setAttribute(o,""):_l(n,o,l)}}}function Ot(n,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",n),Ne("load",n);var l=!1,d=!1,h;for(h in o)if(o.hasOwnProperty(h)){var b=o[h];if(b!=null)switch(h){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:He(n,i,h,b,o,null)}}d&&He(n,i,"srcSet",o.srcSet,o,null),l&&He(n,i,"src",o.src,o,null);return;case"input":Ne("invalid",n);var S=h=b=d=null,k=null,M=null;for(l in o)if(o.hasOwnProperty(l)){var j=o[l];if(j!=null)switch(l){case"name":d=j;break;case"type":b=j;break;case"checked":k=j;break;case"defaultChecked":M=j;break;case"value":h=j;break;case"defaultValue":S=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(a(137,i));break;default:He(n,i,l,j,o,null)}}Sm(n,h,S,k,M,b,d,!1),Dl(n);return;case"select":Ne("invalid",n),l=b=h=null;for(d in o)if(o.hasOwnProperty(d)&&(S=o[d],S!=null))switch(d){case"value":h=S;break;case"defaultValue":b=S;break;case"multiple":l=S;default:He(n,i,d,S,o,null)}i=h,o=b,n.multiple=!!l,i!=null?ma(n,!!l,i,!1):o!=null&&ma(n,!!l,o,!0);return;case"textarea":Ne("invalid",n),h=d=l=null;for(b in o)if(o.hasOwnProperty(b)&&(S=o[b],S!=null))switch(b){case"value":l=S;break;case"defaultValue":d=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:He(n,i,b,S,o,null)}Em(n,l,d,h),Dl(n);return;case"option":for(k in o)if(o.hasOwnProperty(k)&&(l=o[k],l!=null))switch(k){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:He(n,i,k,l,o,null)}return;case"dialog":Ne("beforetoggle",n),Ne("toggle",n),Ne("cancel",n),Ne("close",n);break;case"iframe":case"object":Ne("load",n);break;case"video":case"audio":for(l=0;l<vs.length;l++)Ne(vs[l],n);break;case"image":Ne("error",n),Ne("load",n);break;case"details":Ne("toggle",n);break;case"embed":case"source":case"link":Ne("error",n),Ne("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)&&(l=o[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:He(n,i,M,l,o,null)}return;default:if(kd(i)){for(j in o)o.hasOwnProperty(j)&&(l=o[j],l!==void 0&&hh(n,i,j,l,o,void 0));return}}for(S in o)o.hasOwnProperty(S)&&(l=o[S],l!=null&&He(n,i,S,l,o,null))}function sR(n,i,o,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,h=null,b=null,S=null,k=null,M=null,j=null;for(H in o){var Q=o[H];if(o.hasOwnProperty(H)&&Q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":k=Q;default:l.hasOwnProperty(H)||He(n,i,H,null,l,Q)}}for(var B in l){var H=l[B];if(Q=o[B],l.hasOwnProperty(B)&&(H!=null||Q!=null))switch(B){case"type":h=H;break;case"name":d=H;break;case"checked":M=H;break;case"defaultChecked":j=H;break;case"value":b=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,i));break;default:H!==Q&&He(n,i,B,H,l,Q)}}Td(n,b,S,k,M,j,h,d);return;case"select":H=b=S=B=null;for(h in o)if(k=o[h],o.hasOwnProperty(h)&&k!=null)switch(h){case"value":break;case"multiple":H=k;default:l.hasOwnProperty(h)||He(n,i,h,null,l,k)}for(d in l)if(h=l[d],k=o[d],l.hasOwnProperty(d)&&(h!=null||k!=null))switch(d){case"value":B=h;break;case"defaultValue":S=h;break;case"multiple":b=h;default:h!==k&&He(n,i,d,h,l,k)}i=S,o=b,l=H,B!=null?ma(n,!!o,B,!1):!!l!=!!o&&(i!=null?ma(n,!!o,i,!0):ma(n,!!o,o?[]:"",!1));return;case"textarea":H=B=null;for(S in o)if(d=o[S],o.hasOwnProperty(S)&&d!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:He(n,i,S,null,l,d)}for(b in l)if(d=l[b],h=o[b],l.hasOwnProperty(b)&&(d!=null||h!=null))switch(b){case"value":B=d;break;case"defaultValue":H=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==h&&He(n,i,b,d,l,h)}Cm(n,B,H);return;case"option":for(var Ce in o)if(B=o[Ce],o.hasOwnProperty(Ce)&&B!=null&&!l.hasOwnProperty(Ce))switch(Ce){case"selected":n.selected=!1;break;default:He(n,i,Ce,null,l,B)}for(k in l)if(B=l[k],H=o[k],l.hasOwnProperty(k)&&B!==H&&(B!=null||H!=null))switch(k){case"selected":n.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:He(n,i,k,B,l,H)}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 me in o)B=o[me],o.hasOwnProperty(me)&&B!=null&&!l.hasOwnProperty(me)&&He(n,i,me,null,l,B);for(M in l)if(B=l[M],H=o[M],l.hasOwnProperty(M)&&B!==H&&(B!=null||H!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(a(137,i));break;default:He(n,i,M,B,l,H)}return;default:if(kd(i)){for(var $e in o)B=o[$e],o.hasOwnProperty($e)&&B!==void 0&&!l.hasOwnProperty($e)&&hh(n,i,$e,void 0,l,B);for(j in l)B=l[j],H=o[j],!l.hasOwnProperty(j)||B===H||B===void 0&&H===void 0||hh(n,i,j,B,l,H);return}}for(var V in o)B=o[V],o.hasOwnProperty(V)&&B!=null&&!l.hasOwnProperty(V)&&He(n,i,V,null,l,B);for(Q in l)B=l[Q],H=o[Q],!l.hasOwnProperty(Q)||B===H||B==null&&H==null||He(n,i,Q,B,l,H)}var gh=null,ph=null;function Pc(n){return n.nodeType===9?n:n.ownerDocument}function Oy(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 wy(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 mh(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 vh=null;function lR(){var n=window.event;return n&&n.type==="popstate"?n===vh?!1:(vh=n,!0):(vh=null,!1)}var Ty=typeof setTimeout=="function"?setTimeout:void 0,cR=typeof clearTimeout=="function"?clearTimeout:void 0,Ry=typeof Promise=="function"?Promise:void 0,uR=typeof queueMicrotask=="function"?queueMicrotask:typeof Ry<"u"?function(n){return Ry.resolve(null).then(n).catch(dR)}:Ty;function dR(n){setTimeout(function(){throw n})}function Jr(n){return n==="head"}function ky(n,i){var o=i,l=0,d=0;do{var h=o.nextSibling;if(n.removeChild(o),h&&h.nodeType===8)if(o=h.data,o==="/$"){if(0<l&&8>l){o=l;var b=n.ownerDocument;if(o&1&&ys(b.documentElement),o&2&&ys(b.body),o&4)for(o=b.head,ys(o),b=o.firstChild;b;){var S=b.nextSibling,k=b.nodeName;b[Vo]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&b.rel.toLowerCase()==="stylesheet"||o.removeChild(b),b=S}}if(d===0){n.removeChild(h),Rs(i);return}d--}else o==="$"||o==="$?"||o==="$!"?d++:l=o.charCodeAt(0)-48;else l=0;o=h}while(o);Rs(i)}function bh(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":bh(o),Cd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function fR(n,i,o,l){for(;n.nodeType===1;){var d=o;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Vo])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==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(h=n.getAttribute("src"),(h!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=An(n.nextSibling),n===null)break}return null}function hR(n,i,o){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=An(n.nextSibling),n===null))return null;return n}function yh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function gR(n,i){var o=n.ownerDocument;if(n.data!=="$?"||o.readyState==="complete")i();else{var l=function(){i(),o.removeEventListener("DOMContentLoaded",l)};o.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function An(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 xh=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 Py(n,i,o){switch(i=Pc(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 ys(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Cd(n)}var On=new Map,Ay=new Set;function Ac(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Cr=ee.d;ee.d={f:pR,r:mR,D:vR,C:bR,L:yR,m:xR,X:CR,S:SR,M:ER};function pR(){var n=Cr.f(),i=Cc();return n||i}function mR(n){var i=fa(n);i!==null&&i.tag===5&&i.type==="form"?Qv(i):Cr.r(n)}var Wa=typeof document>"u"?null:document;function Iy(n,i,o){var l=Wa;if(l&&typeof i=="string"&&i){var d=vn(i);d='link[rel="'+n+'"][href="'+d+'"]',typeof o=="string"&&(d+='[crossorigin="'+o+'"]'),Ay.has(d)||(Ay.add(d),n={rel:n,crossOrigin:o,href:i},l.querySelector(d)===null&&(i=l.createElement("link"),Ot(i,"link",n),mt(i),l.head.appendChild(i)))}}function vR(n){Cr.D(n),Iy("dns-prefetch",n,null)}function bR(n,i){Cr.C(n,i),Iy("preconnect",n,i)}function yR(n,i,o){Cr.L(n,i,o);var l=Wa;if(l&&n&&i){var d='link[rel="preload"][as="'+vn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(d+='[imagesrcset="'+vn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(d+='[imagesizes="'+vn(o.imageSizes)+'"]')):d+='[href="'+vn(n)+'"]';var h=d;switch(i){case"style":h=qa(n);break;case"script":h=Ya(n)}On.has(h)||(n=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:n,as:i},o),On.set(h,n),l.querySelector(d)!==null||i==="style"&&l.querySelector(xs(h))||i==="script"&&l.querySelector(Ss(h))||(i=l.createElement("link"),Ot(i,"link",n),mt(i),l.head.appendChild(i)))}}function xR(n,i){Cr.m(n,i);var o=Wa;if(o&&n){var l=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+vn(l)+'"][href="'+vn(n)+'"]',h=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ya(n)}if(!On.has(h)&&(n=m({rel:"modulepreload",href:n},i),On.set(h,n),o.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ss(h)))return}l=o.createElement("link"),Ot(l,"link",n),mt(l),o.head.appendChild(l)}}}function SR(n,i,o){Cr.S(n,i,o);var l=Wa;if(l&&n){var d=ha(l).hoistableStyles,h=qa(n);i=i||"default";var b=d.get(h);if(!b){var S={loading:0,preload:null};if(b=l.querySelector(xs(h)))S.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},o),(o=On.get(h))&&Sh(n,o);var k=b=l.createElement("link");mt(k),Ot(k,"link",n),k._p=new Promise(function(M,j){k.onload=M,k.onerror=j}),k.addEventListener("load",function(){S.loading|=1}),k.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ic(b,i,l)}b={type:"stylesheet",instance:b,count:1,state:S},d.set(h,b)}}}function CR(n,i){Cr.X(n,i);var o=Wa;if(o&&n){var l=ha(o).hoistableScripts,d=Ya(n),h=l.get(d);h||(h=o.querySelector(Ss(d)),h||(n=m({src:n,async:!0},i),(i=On.get(d))&&Ch(n,i),h=o.createElement("script"),mt(h),Ot(h,"link",n),o.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function ER(n,i){Cr.M(n,i);var o=Wa;if(o&&n){var l=ha(o).hoistableScripts,d=Ya(n),h=l.get(d);h||(h=o.querySelector(Ss(d)),h||(n=m({src:n,async:!0,type:"module"},i),(i=On.get(d))&&Ch(n,i),h=o.createElement("script"),mt(h),Ot(h,"link",n),o.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function _y(n,i,o,l){var d=(d=Se.current)?Ac(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=qa(o.href),o=ha(d).hoistableStyles,l=o.get(i),l||(l={type:"style",instance:null,count:0,state:null},o.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=qa(o.href);var h=ha(d).hoistableStyles,b=h.get(n);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,b),(h=d.querySelector(xs(n)))&&!h._p&&(b.instance=h,b.state.loading=5),On.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},On.set(n,o),h||OR(d,n,o,b.state))),i&&l===null)throw Error(a(528,""));return b}if(i&&l!==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=Ya(o),o=ha(d).hoistableScripts,l=o.get(i),l||(l={type:"script",instance:null,count:0,state:null},o.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function qa(n){return'href="'+vn(n)+'"'}function xs(n){return'link[rel="stylesheet"]['+n+"]"}function Vy(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function OR(n,i,o,l){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=n.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Ot(i,"link",o),mt(i),n.head.appendChild(i))}function Ya(n){return'[src="'+vn(n)+'"]'}function Ss(n){return"script[async]"+n}function Dy(n,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var l=n.querySelector('style[data-href~="'+vn(o.href)+'"]');if(l)return i.instance=l,mt(l),l;var d=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),mt(l),Ot(l,"style",d),Ic(l,o.precedence,n),i.instance=l;case"stylesheet":d=qa(o.href);var h=n.querySelector(xs(d));if(h)return i.state.loading|=4,i.instance=h,mt(h),h;l=Vy(o),(d=On.get(d))&&Sh(l,d),h=(n.ownerDocument||n).createElement("link"),mt(h);var b=h;return b._p=new Promise(function(S,k){b.onload=S,b.onerror=k}),Ot(h,"link",l),i.state.loading|=4,Ic(h,o.precedence,n),i.instance=h;case"script":return h=Ya(o.src),(d=n.querySelector(Ss(h)))?(i.instance=d,mt(d),d):(l=o,(d=On.get(h))&&(l=m({},o),Ch(l,d)),n=n.ownerDocument||n,d=n.createElement("script"),mt(d),Ot(d,"link",l),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&&(l=i.instance,i.state.loading|=4,Ic(l,o.precedence,n));return i.instance}function Ic(n,i,o){for(var l=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,h=d,b=0;b<l.length;b++){var S=l[b];if(S.dataset.precedence===i)h=S;else if(h!==d)break}h?h.parentNode.insertBefore(n,h.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(n,i.firstChild))}function Sh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Ch(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var _c=null;function zy(n,i,o){if(_c===null){var l=new Map,d=_c=new Map;d.set(o,l)}else d=_c,l=d.get(o),l||(l=new Map,d.set(o,l));if(l.has(n))return l;for(l.set(n,null),o=o.getElementsByTagName(n),d=0;d<o.length;d++){var h=o[d];if(!(h[Vo]||h[Pt]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(i)||"";b=n+b;var S=l.get(b);S?S.push(h):l.set(b,[h])}}return l}function My(n,i,o){n=n.ownerDocument||n,n.head.insertBefore(o,i==="title"?n.querySelector("head > title"):null)}function wR(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 Cs=null;function TR(){}function RR(n,i,o){if(Cs===null)throw Error(a(475));var l=Cs;if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=qa(o.href),h=n.querySelector(xs(d));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(l.count++,l=Vc.bind(l),n.then(l,l)),i.state.loading|=4,i.instance=h,mt(h);return}h=n.ownerDocument||n,o=Vy(o),(d=On.get(d))&&Sh(o,d),h=h.createElement("link"),mt(h);var b=h;b._p=new Promise(function(S,k){b.onload=S,b.onerror=k}),Ot(h,"link",o),i.instance=h}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(l.count++,i=Vc.bind(l),n.addEventListener("load",i),n.addEventListener("error",i))}}function kR(){if(Cs===null)throw Error(a(475));var n=Cs;return n.stylesheets&&n.count===0&&Eh(n,n.stylesheets),0<n.count?function(i){var o=setTimeout(function(){if(n.stylesheets&&Eh(n,n.stylesheets),n.unsuspend){var l=n.unsuspend;n.unsuspend=null,l()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(o)}}:null}function Vc(){if(this.count--,this.count===0){if(this.stylesheets)Eh(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Dc=null;function Eh(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Dc=new Map,i.forEach(NR,n),Dc=null,Vc.call(n))}function NR(n,i){if(!(i.state.loading&4)){var o=Dc.get(n);if(o)var l=o.get(null);else{o=new Map,Dc.set(n,o);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var b=d[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(o.set(b.dataset.precedence,b),l=b)}l&&o.set(null,l)}d=i.instance,b=d.getAttribute("data-precedence"),h=o.get(b)||l,h===l&&o.set(null,d),o.set(b,d),this.count++,l=Vc.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),h?h.parentNode.insertBefore(d,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),i.state.loading|=4}}var Es={$$typeof:N,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function PR(n,i,o,l,d,h,b,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=bd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bd(0),this.hiddenUpdates=bd(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function By(n,i,o,l,d,h,b,S,k,M,j,Q){return n=new PR(n,i,o,b,S,k,M,Q),i=1,h===!0&&(i|=24),h=en(3,null,null,i),n.current=h,h.stateNode=n,i=rf(),i.refCount++,n.pooledCache=i,i.refCount++,h.memoizedState={element:l,isDehydrated:o,cache:i},lf(h),n}function Fy(n){return n?(n=wa,n):wa}function Hy(n,i,o,l,d,h){d=Fy(d),l.context===null?l.context=d:l.pendingContext=d,l=Fr(i),l.payload={element:o},h=h===void 0?null:h,h!==null&&(l.callback=h),o=Hr(n,l,i),o!==null&&(on(o,n,i),Jo(o,n,i))}function $y(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function Oh(n,i){$y(n,i),(n=n.alternate)&&$y(n,i)}function Uy(n){if(n.tag===13){var i=Oa(n,67108864);i!==null&&on(i,n,67108864),Oh(n,67108864)}}var zc=!0;function AR(n,i,o,l){var d=F.T;F.T=null;var h=ee.p;try{ee.p=2,wh(n,i,o,l)}finally{ee.p=h,F.T=d}}function IR(n,i,o,l){var d=F.T;F.T=null;var h=ee.p;try{ee.p=8,wh(n,i,o,l)}finally{ee.p=h,F.T=d}}function wh(n,i,o,l){if(zc){var d=Th(l);if(d===null)fh(n,i,l,Mc,o),Gy(n,l);else if(VR(d,n,i,o,l))l.stopPropagation();else if(Gy(n,l),i&4&&-1<_R.indexOf(n)){for(;d!==null;){var h=fa(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Ei(h.pendingLanes);if(b!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var k=1<<31-Zt(b);S.entanglements[1]|=k,b&=~k}$n(h),(Le&6)===0&&(xc=pn()+500,ms(0))}}break;case 13:S=Oa(h,2),S!==null&&on(S,h,2),Cc(),Oh(h,2)}if(h=Th(l),h===null&&fh(n,i,l,Mc,o),h===d)break;d=h}d!==null&&l.stopPropagation()}else fh(n,i,l,null,o)}}function Th(n){return n=Pd(n),Rh(n)}var Mc=null;function Rh(n){if(Mc=null,n=da(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 Mc=n,null}function jy(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(vd()){case Po:return 2;case kl:return 8;case Ci:case Nl:return 32;case ca:return 268435456;default:return 32}default:return 32}}var kh=!1,ei=null,ti=null,ni=null,Os=new Map,ws=new Map,ri=[],_R="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":ei=null;break;case"dragenter":case"dragleave":ti=null;break;case"mouseover":case"mouseout":ni=null;break;case"pointerover":case"pointerout":Os.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ws.delete(i.pointerId)}}function Ts(n,i,o,l,d,h){return n===null||n.nativeEvent!==h?(n={blockedOn:i,domEventName:o,eventSystemFlags:l,nativeEvent:h,targetContainers:[d]},i!==null&&(i=fa(i),i!==null&&Uy(i)),n):(n.eventSystemFlags|=l,i=n.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),n)}function VR(n,i,o,l,d){switch(i){case"focusin":return ei=Ts(ei,n,i,o,l,d),!0;case"dragenter":return ti=Ts(ti,n,i,o,l,d),!0;case"mouseover":return ni=Ts(ni,n,i,o,l,d),!0;case"pointerover":var h=d.pointerId;return Os.set(h,Ts(Os.get(h)||null,n,i,o,l,d)),!0;case"gotpointercapture":return h=d.pointerId,ws.set(h,Ts(ws.get(h)||null,n,i,o,l,d)),!0}return!1}function Wy(n){var i=da(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,Rw(n.priority,function(){if(o.tag===13){var l=an();l=yd(l);var d=Oa(o,l);d!==null&&on(d,o,l),Oh(o,l)}});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Lc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=Th(n.nativeEvent);if(o===null){o=n.nativeEvent;var l=new o.constructor(o.type,o);Nd=l,o.target.dispatchEvent(l),Nd=null}else return i=fa(o),i!==null&&Uy(i),n.blockedOn=o,!1;i.shift()}return!0}function qy(n,i,o){Lc(n)&&o.delete(i)}function DR(){kh=!1,ei!==null&&Lc(ei)&&(ei=null),ti!==null&&Lc(ti)&&(ti=null),ni!==null&&Lc(ni)&&(ni=null),Os.forEach(qy),ws.forEach(qy)}function Bc(n,i){n.blockedOn===i&&(n.blockedOn=null,kh||(kh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,DR)))}var Fc=null;function Yy(n){Fc!==n&&(Fc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Fc===n&&(Fc=null);for(var i=0;i<n.length;i+=3){var o=n[i],l=n[i+1],d=n[i+2];if(typeof l!="function"){if(Rh(l||o)===null)continue;break}var h=fa(o);h!==null&&(n.splice(i,3),i-=3,Rf(h,{pending:!0,data:d,method:o.method,action:l},l,d))}}))}function Rs(n){function i(k){return Bc(k,n)}ei!==null&&Bc(ei,n),ti!==null&&Bc(ti,n),ni!==null&&Bc(ni,n),Os.forEach(i),ws.forEach(i);for(var o=0;o<ri.length;o++){var l=ri[o];l.blockedOn===n&&(l.blockedOn=null)}for(;0<ri.length&&(o=ri[0],o.blockedOn===null);)Wy(o),o.blockedOn===null&&ri.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(l=0;l<o.length;l+=3){var d=o[l],h=o[l+1],b=d[Bt]||null;if(typeof h=="function")b||Yy(o);else if(b){var S=null;if(h&&h.hasAttribute("formAction")){if(d=h,b=h[Bt]||null)S=b.formAction;else if(Rh(d)!==null)continue}else S=b.action;typeof S=="function"?o[l+1]=S:(o.splice(l,3),l-=3),Yy(o)}}}function Nh(n){this._internalRoot=n}Hc.prototype.render=Nh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var o=i.current,l=an();Hy(o,l,n,i,null,null)},Hc.prototype.unmount=Nh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Hy(n.current,2,null,n,null,null),Cc(),i[ua]=null}};function Hc(n){this._internalRoot=n}Hc.prototype.unstable_scheduleHydration=function(n){if(n){var i=dm();n={blockedOn:null,target:n,priority:i};for(var o=0;o<ri.length&&i!==0&&i<ri[o].priority;o++);ri.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"));ee.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=g(i),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var zR={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$c.isDisabled&&$c.supportsFiber)try{Ao=$c.inject(zR),Qt=$c}catch{}}return Ns.createRoot=function(n,i){if(!s(n))throw Error(a(299));var o=!1,l="",d=db,h=fb,b=hb,S=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(S=i.unstable_transitionCallbacks)),i=By(n,1,!1,null,null,o,l,d,h,b,S,null),n[ua]=i.current,dh(n),new Nh(i)},Ns.hydrateRoot=function(n,i,o){if(!s(n))throw Error(a(299));var l=!1,d="",h=db,b=fb,S=hb,k=null,M=null;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(h=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(k=o.unstable_transitionCallbacks),o.formState!==void 0&&(M=o.formState)),i=By(n,1,!0,i,o??null,l,d,h,b,S,k,M),i.context=Fy(null),o=i.current,l=an(),l=yd(l),d=Fr(l),d.callback=null,Hr(o,d,l),o=l,i.current.lanes=o,_o(i,o),$n(i),n[ua]=i.current,dh(n),new Hc(i)},Ns.version="19.1.1",Ns}var o0;function qR(){if(o0)return Ih.exports;o0=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(),Ih.exports=WR(),Ih.exports}var YR=qR();const Y6=ep(YR);function SS(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var XR=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,KR=SS(function(e){return XR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function QR(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 ZR(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 JR=(function(){function e(r){var a=this;this._insertTag=function(s){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(s,c),a.tags.push(s)},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(ZR(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var c=QR(s);try{c.insertRule(a,c.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var s;return(s=a.parentNode)==null?void 0:s.removeChild(a)}),this.tags=[],this.ctr=0},e})(),_t="-ms-",Ru="-moz-",_e="-webkit-",CS="comm",np="rule",rp="decl",ek="@import",ES="@keyframes",tk="@layer",nk=Math.abs,ju=String.fromCharCode,rk=Object.assign;function ik(e,t){return Rt(e,0)^45?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function OS(e){return e.trim()}function ak(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,r){return e.replace(t,r)}function ug(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function Qs(e,t,r){return e.slice(t,r)}function Gn(e){return e.length}function ip(e){return e.length}function Uc(e,t){return t.push(e),e}function ok(e,t){return e.map(t).join("")}var Gu=1,mo=1,wS=0,qt=0,ct=0,xo="";function Wu(e,t,r,a,s,c,u){return{value:e,root:t,parent:r,type:a,props:s,children:c,line:Gu,column:mo,length:u,return:""}}function Ps(e,t){return rk(Wu("",null,null,"",null,null,0),e,{length:-e.length},t)}function sk(){return ct}function lk(){return ct=qt>0?Rt(xo,--qt):0,mo--,ct===10&&(mo=1,Gu--),ct}function un(){return ct=qt<wS?Rt(xo,qt++):0,mo++,ct===10&&(mo=1,Gu++),ct}function Yn(){return Rt(xo,qt)}function uu(){return qt}function ul(e,t){return Qs(xo,e,t)}function Zs(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 TS(e){return Gu=mo=1,wS=Gn(xo=e),qt=0,[]}function RS(e){return xo="",e}function du(e){return OS(ul(qt-1,dg(e===91?e+2:e===40?e+1:e)))}function ck(e){for(;(ct=Yn())&&ct<33;)un();return Zs(e)>2||Zs(ct)>3?"":" "}function uk(e,t){for(;--t&&un()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return ul(e,uu()+(t<6&&Yn()==32&&un()==32))}function dg(e){for(;un();)switch(ct){case e:return qt;case 34:case 39:e!==34&&e!==39&&dg(ct);break;case 40:e===41&&dg(e);break;case 92:un();break}return qt}function dk(e,t){for(;un()&&e+ct!==57;)if(e+ct===84&&Yn()===47)break;return"/*"+ul(t,qt-1)+"*"+ju(e===47?e:un())}function fk(e){for(;!Zs(Yn());)un();return ul(e,qt)}function hk(e){return RS(fu("",null,null,null,[""],e=TS(e),0,[0],e))}function fu(e,t,r,a,s,c,u,f,g){for(var p=0,m=0,y=u,v=0,x=0,E=0,C=1,w=1,T=1,R=0,N="",L=s,A=c,U=a,q=N;w;)switch(E=R,R=un()){case 40:if(E!=108&&Rt(q,y-1)==58){ug(q+=Ve(du(R),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:q+=du(R);break;case 9:case 10:case 13:case 32:q+=ck(E);break;case 92:q+=uk(uu()-1,7);continue;case 47:switch(Yn()){case 42:case 47:Uc(gk(dk(un(),uu()),t,r),g);break;default:q+="/"}break;case 123*C:f[p++]=Gn(q)*T;case 125*C:case 59:case 0:switch(R){case 0:case 125:w=0;case 59+m:T==-1&&(q=Ve(q,/\f/g,"")),x>0&&Gn(q)-y&&Uc(x>32?l0(q+";",a,r,y-1):l0(Ve(q," ","")+";",a,r,y-2),g);break;case 59:q+=";";default:if(Uc(U=s0(q,t,r,p,m,s,f,N,L=[],A=[],y),c),R===123)if(m===0)fu(q,t,U,U,L,c,y,f,A);else switch(v===99&&Rt(q,3)===110?100:v){case 100:case 108:case 109:case 115:fu(e,U,U,a&&Uc(s0(e,U,U,0,0,s,f,N,s,L=[],y),A),s,A,y,f,a?L:A);break;default:fu(q,U,U,U,[""],A,0,f,A)}}p=m=x=0,C=T=1,N=q="",y=u;break;case 58:y=1+Gn(q),x=E;default:if(C<1){if(R==123)--C;else if(R==125&&C++==0&&lk()==125)continue}switch(q+=ju(R),R*C){case 38:T=m>0?1:(q+="\f",-1);break;case 44:f[p++]=(Gn(q)-1)*T,T=1;break;case 64:Yn()===45&&(q+=du(un())),v=Yn(),m=y=Gn(N=q+=fk(uu())),R++;break;case 45:E===45&&Gn(q)==2&&(C=0)}}return c}function s0(e,t,r,a,s,c,u,f,g,p,m){for(var y=s-1,v=s===0?c:[""],x=ip(v),E=0,C=0,w=0;E<a;++E)for(var T=0,R=Qs(e,y+1,y=nk(C=u[E])),N=e;T<x;++T)(N=OS(C>0?v[T]+" "+R:Ve(R,/&\f/g,v[T])))&&(g[w++]=N);return Wu(e,t,r,s===0?np:f,g,p,m)}function gk(e,t,r){return Wu(e,t,r,CS,ju(sk()),Qs(e,2,-2),0)}function l0(e,t,r,a){return Wu(e,t,r,rp,Qs(e,0,a),Qs(e,a+1,-1),a)}function uo(e,t){for(var r="",a=ip(e),s=0;s<a;s++)r+=t(e[s],s,e,t)||"";return r}function pk(e,t,r,a){switch(e.type){case tk:if(e.children.length)break;case ek:case rp:return e.return=e.return||e.value;case CS:return"";case ES:return e.return=e.value+"{"+uo(e.children,a)+"}";case np:e.value=e.props.join(",")}return Gn(r=uo(e.children,a))?e.return=e.value+"{"+r+"}":""}function mk(e){var t=ip(e);return function(r,a,s,c){for(var u="",f=0;f<t;f++)u+=e[f](r,a,s,c)||"";return u}}function vk(e){return function(t){t.root||(t=t.return)&&e(t)}}var bk=function(t,r,a){for(var s=0,c=0;s=c,c=Yn(),s===38&&c===12&&(r[a]=1),!Zs(c);)un();return ul(t,qt)},yk=function(t,r){var a=-1,s=44;do switch(Zs(s)){case 0:s===38&&Yn()===12&&(r[a]=1),t[a]+=bk(qt-1,r,a);break;case 2:t[a]+=du(s);break;case 4:if(s===44){t[++a]=Yn()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=ju(s)}while(s=un());return t},xk=function(t,r){return RS(yk(TS(t),r))},c0=new WeakMap,Sk=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,s=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))&&!s){c0.set(t,!0);for(var c=[],u=xk(r,c),f=a.props,g=0,p=0;g<u.length;g++)for(var m=0;m<f.length;m++,p++)t.props[p]=c[g]?u[g].replace(/&\f/g,f[m]):f[m]+" "+u[g]}}},Ck=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function kS(e,t){switch(ik(e,t)){case 5103:return _e+"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 _e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _e+e+Ru+e+_t+e+e;case 6828:case 4268:return _e+e+_t+e+e;case 6165:return _e+e+_t+"flex-"+e+e;case 5187:return _e+e+Ve(e,/(\w+).+(:[^]+)/,_e+"box-$1$2"+_t+"flex-$1$2")+e;case 5443:return _e+e+_t+"flex-item-"+Ve(e,/flex-|-self/,"")+e;case 4675:return _e+e+_t+"flex-line-pack"+Ve(e,/align-content|flex-|-self/,"")+e;case 5548:return _e+e+_t+Ve(e,"shrink","negative")+e;case 5292:return _e+e+_t+Ve(e,"basis","preferred-size")+e;case 6060:return _e+"box-"+Ve(e,"-grow","")+_e+e+_t+Ve(e,"grow","positive")+e;case 4554:return _e+Ve(e,/([^-])(transform)/g,"$1"+_e+"$2")+e;case 6187:return Ve(Ve(Ve(e,/(zoom-|grab)/,_e+"$1"),/(image-set)/,_e+"$1"),e,"")+e;case 5495:case 3959:return Ve(e,/(image-set\([^]*)/,_e+"$1$`$1");case 4968:return Ve(Ve(e,/(.+:)(flex-)?(.*)/,_e+"box-pack:$3"+_t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_e+e+e;case 4095:case 3583:case 4068:case 2532:return Ve(e,/(.+)-inline(.+)/,_e+"$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(Gn(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(Rt(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+_e+"$2-$3$1"+Ru+(Rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ug(e,"stretch")?kS(Ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rt(e,t+1)!==115)break;case 6444:switch(Rt(e,Gn(e)-3-(~ug(e,"!important")&&10))){case 107:return Ve(e,":",":"+_e)+e;case 101:return Ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_e+(Rt(e,14)===45?"inline-":"")+"box$3$1"+_e+"$2$3$1"+_t+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return _e+e+_t+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _e+e+_t+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _e+e+_t+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _e+e+_t+e+e}return e}var Ek=function(t,r,a,s){if(t.length>-1&&!t.return)switch(t.type){case rp:t.return=kS(t.value,t.length);break;case ES:return uo([Ps(t,{value:Ve(t.value,"@","@"+_e)})],s);case np:if(t.length)return ok(t.props,function(c){switch(ak(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return uo([Ps(t,{props:[Ve(c,/:(read-\w+)/,":"+Ru+"$1")]})],s);case"::placeholder":return uo([Ps(t,{props:[Ve(c,/:(plac\w+)/,":"+_e+"input-$1")]}),Ps(t,{props:[Ve(c,/:(plac\w+)/,":"+Ru+"$1")]}),Ps(t,{props:[Ve(c,/:(plac\w+)/,_t+"input-$1")]})],s)}return""})}},Ok=[Ek],wk=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 w=C.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var s=t.stylisPlugins||Ok,c={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(C){for(var w=C.getAttribute("data-emotion").split(" "),T=1;T<w.length;T++)c[w[T]]=!0;f.push(C)});var g,p=[Sk,Ck];{var m,y=[pk,vk(function(C){m.insert(C)})],v=mk(p.concat(s,y)),x=function(w){return uo(hk(w),v)};g=function(w,T,R,N){m=R,x(w?w+"{"+T.styles+"}":T.styles),N&&(E.inserted[T.name]=!0)}}var E={key:r,sheet:new JR({key:r,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:g};return E.sheet.hydrate(f),E},zh={exports:{}},Me={};/** @license React v16.13.1
50
+ * react-is.production.min.js
51
+ *
52
+ * Copyright (c) Facebook, Inc. and its affiliates.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */var u0;function Tk(){if(u0)return Me;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,s=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,g=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,v=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,w=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function N(A){if(typeof A=="object"&&A!==null){var U=A.$$typeof;switch(U){case t:switch(A=A.type,A){case g:case p:case a:case c:case s: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 U}}case r:return U}}}function L(A){return N(A)===p}return Me.AsyncMode=g,Me.ConcurrentMode=p,Me.ContextConsumer=f,Me.ContextProvider=u,Me.Element=t,Me.ForwardRef=m,Me.Fragment=a,Me.Lazy=E,Me.Memo=x,Me.Portal=r,Me.Profiler=c,Me.StrictMode=s,Me.Suspense=y,Me.isAsyncMode=function(A){return L(A)||N(A)===g},Me.isConcurrentMode=L,Me.isContextConsumer=function(A){return N(A)===f},Me.isContextProvider=function(A){return N(A)===u},Me.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},Me.isForwardRef=function(A){return N(A)===m},Me.isFragment=function(A){return N(A)===a},Me.isLazy=function(A){return N(A)===E},Me.isMemo=function(A){return N(A)===x},Me.isPortal=function(A){return N(A)===r},Me.isProfiler=function(A){return N(A)===c},Me.isStrictMode=function(A){return N(A)===s},Me.isSuspense=function(A){return N(A)===y},Me.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===p||A===c||A===s||A===y||A===v||typeof A=="object"&&A!==null&&(A.$$typeof===E||A.$$typeof===x||A.$$typeof===u||A.$$typeof===f||A.$$typeof===m||A.$$typeof===w||A.$$typeof===T||A.$$typeof===R||A.$$typeof===C)},Me.typeOf=N,Me}var d0;function Rk(){return d0||(d0=1,zh.exports=Tk()),zh.exports}var Mh,f0;function kk(){if(f0)return Mh;f0=1;var e=Rk(),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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[e.ForwardRef]=a,c[e.Memo]=s;function u(E){return e.isMemo(E)?s:c[E.$$typeof]||t}var f=Object.defineProperty,g=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function x(E,C,w){if(typeof C!="string"){if(v){var T=y(C);T&&T!==v&&x(E,T,w)}var R=g(C);p&&(R=R.concat(p(C)));for(var N=u(E),L=u(C),A=0;A<R.length;++A){var U=R[A];if(!r[U]&&!(w&&w[U])&&!(L&&L[U])&&!(N&&N[U])){var q=m(C,U);try{f(E,U,q)}catch{}}}}return E}return Mh=x,Mh}kk();var Nk=!0;function NS(e,t,r){var a="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(a+=s+" ")}),a}var ap=function(t,r,a){var s=t.key+"-"+r.name;(a===!1||Nk===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},op=function(t,r,a){ap(t,r,a);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var c=r;do t.insert(r===c?"."+s:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function Pk(e){for(var t=0,r,a=0,s=e.length;s>=4;++a,s-=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(s){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 Ak={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},Ik=/[A-Z]|^ms/g,_k=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PS=function(t){return t.charCodeAt(1)===45},h0=function(t){return t!=null&&typeof t!="boolean"},Lh=SS(function(e){return PS(e)?e:e.replace(Ik,"-$&").toLowerCase()}),g0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(_k,function(a,s,c){return Wn={name:s,styles:c,next:Wn},s})}return Ak[t]!==1&&!PS(t)&&typeof r=="number"&&r!==0?r+"px":r};function Js(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 s=r;if(s.anim===1)return Wn={name:s.name,styles:s.styles,next:Wn},s.name;var c=r;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)Wn={name:u.name,styles:u.styles,next:Wn},u=u.next;var f=c.styles+";";return f}return Vk(e,t,r)}case"function":{if(e!==void 0){var g=Wn,p=r(e);return Wn=g,Js(e,t,p)}break}}var m=r;if(t==null)return m;var y=t[m];return y!==void 0?y:m}function Vk(e,t,r){var a="";if(Array.isArray(r))for(var s=0;s<r.length;s++)a+=Js(e,t,r[s])+";";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]+"}":h0(f)&&(a+=Lh(c)+":"+g0(c,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var g=0;g<u.length;g++)h0(u[g])&&(a+=Lh(c)+":"+g0(c,u[g])+";");else{var p=Js(e,t,u);switch(c){case"animation":case"animationName":{a+=Lh(c)+":"+p+";";break}default:a+=c+"{"+p+"}"}}}return a}var p0=/label:\s*([^\s;{]+)\s*(;|$)/g,Wn;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,s="";Wn=void 0;var c=e[0];if(c==null||c.raw===void 0)a=!1,s+=Js(r,t,c);else{var u=c;s+=u[0]}for(var f=1;f<e.length;f++)if(s+=Js(r,t,e[f]),a){var g=c;s+=g[f]}p0.lastIndex=0;for(var p="",m;(m=p0.exec(s))!==null;)p+="-"+m[1];var y=Pk(s)+p;return{name:y,styles:s,next:Wn}}var Dk=function(t){return t()},AS=e0.useInsertionEffect?e0.useInsertionEffect:!1,IS=AS||Dk,m0=AS||O.useLayoutEffect,_S=O.createContext(typeof HTMLElement<"u"?wk({key:"css"}):null);_S.Provider;var lp=function(t){return O.forwardRef(function(r,a){var s=O.useContext(_S);return t(r,s,a)})},cp=O.createContext({}),up={}.hasOwnProperty,fg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",zk=function(t,r){var a={};for(var s in r)up.call(r,s)&&(a[s]=r[s]);return a[fg]=t,a},Mk=function(t){var r=t.cache,a=t.serialized,s=t.isStringTag;return ap(r,a,s),IS(function(){return op(r,a,s)}),null},Lk=lp(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var s=e[fg],c=[a],u="";typeof e.className=="string"?u=NS(t.registered,c,e.className):e.className!=null&&(u=e.className+" ");var f=sp(c,void 0,O.useContext(cp));u+=t.key+"-"+f.name;var g={};for(var p in e)up.call(e,p)&&p!=="css"&&p!==fg&&(g[p]=e[p]);return g.className=u,r&&(g.ref=r),O.createElement(O.Fragment,null,O.createElement(Mk,{cache:t,serialized:f,isStringTag:typeof s=="string"}),O.createElement(s,g))}),Bk=Lk,v0=function(t,r){var a=arguments;if(r==null||!up.call(r,"css"))return O.createElement.apply(void 0,a);var s=a.length,c=new Array(s);c[0]=Bk,c[1]=zk(t,r);for(var u=2;u<s;u++)c[u]=a[u];return O.createElement.apply(null,c)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(v0||(v0={}));var b0=lp(function(e,t){var r=e.styles,a=sp([r],void 0,O.useContext(cp)),s=O.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,g=document.querySelector('style[data-emotion="'+c+" "+a.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),g!==null&&(f=!0,g.setAttribute("data-emotion",c),u.hydrate([g])),s.current=[u,f],function(){u.flush()}},[t]),m0(function(){var c=s.current,u=c[0],f=c[1];if(f){c[1]=!1;return}if(a.next!==void 0&&op(t,a.next,!0),u.tags.length){var g=u.tags[u.tags.length-1].nextElementSibling;u.before=g,u.flush()}t.insert("",a,u,!1)},[t,a.name]),null});function Fk(...e){return function(...r){e.forEach(a=>a?.(...r))}}const Hk=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),$k=/^on[A-Z]/;function el(...e){let t={};for(let r of e){for(let a in t){if($k.test(a)&&typeof t[a]=="function"&&typeof r[a]=="function"){t[a]=Fk(t[a],r[a]);continue}if(a==="className"||a==="class"){t[a]=Hk(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 Uk(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 jk(...e){return t=>{e.forEach(r=>{Uk(r,t)})}}function dl(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}const _n=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function Gk(e){return e.default||e}const Gt=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Kn=e=>typeof e=="string",dp=e=>typeof e=="function";function Wk(e){const t=O.version;return!Kn(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const VS=(...e)=>{const t=e.reduce((r,a)=>(a?.forEach(s=>r.add(s)),r),new Set([]));return Array.from(t)};function qk(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function fo(e={}){const{name:t,strict:r=!0,hookName:a="useContext",providerName:s="Provider",errorMessage:c,defaultValue:u}=e,f=O.createContext(u);f.displayName=t;function g(){const p=O.useContext(f);if(!p&&r){const m=new Error(c??qk(a,s));throw m.name="ContextError",Error.captureStackTrace?.(m,g),m}return p}return[f.Provider,g,f]}const[Yk,fl]=fo({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function X6(e){const{value:t,children:r}=e;return z.jsxs(Yk,{value:t,children:[!t._config.disableLayers&&z.jsx(b0,{styles:t.layers.atRule}),z.jsx(b0,{styles:t._global}),r]})}const Xk=(e,t)=>{const r={},a={},s=Object.keys(e);for(const c of s)t(c)?a[c]=e[c]:r[c]=e[c];return[a,r]},ho=(e,t)=>{const r=dp(t)?t:a=>t.includes(a);return Xk(e,r)},Kk=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Qk(e){return typeof e=="string"&&Kk.has(e)}function Zk(e,t,r){const{css:a,isValidProperty:s}=fl(),{children:c,...u}=e,f=O.useMemo(()=>{const[v,x]=ho(u,R=>r(R,t.variantKeys)),[E,C]=ho(x,t.variantKeys),[w,T]=ho(C,s);return{forwardedProps:v,variantProps:E,styleProps:w,elementProps:T}},[t.variantKeys,r,u,s]),{css:g,...p}=f.styleProps,m=O.useMemo(()=>{const v={...f.variantProps};return t.variantKeys.includes("colorPalette")||(v.colorPalette=u.colorPalette),t.variantKeys.includes("orientation")||(v.orientation=u.orientation),t(v)},[t,f.variantProps,u.colorPalette,u.orientation]);return{styles:O.useMemo(()=>a(m,...Jk(g),p),[a,m,g,p]),props:{...f.forwardedProps,...f.elementProps,children:c}}}const Jk=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),eN=Gk(KR),tN=eN,nN=e=>e!=="theme",rN=(e,t,r)=>{let a;if(t){const s=t.shouldForwardProp;a=e.__emotion_forwardProp&&s?c=>e.__emotion_forwardProp(c)&&s(c):s}return typeof a!="function"&&r&&(a=e.__emotion_forwardProp),a};let iN=typeof document<"u";const y0=({cache:e,serialized:t,isStringTag:r})=>{ap(e,t,r);const a=IS(()=>op(e,t,r));if(!iN&&a!==void 0){let s=t.name,c=t.next;for(;c!==void 0;)s=_n(s,c.name),c=c.next;return z.jsx("style",{"data-emotion":_n(e.key,s),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"]},aN=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),oN=(e,t={},r={})=>{if(aN(x0,e)){r.forwardProps||(r.forwardProps=[]);const p=x0[e];r.forwardProps=VS([...r.forwardProps,...p])}const a=e.__emotion_real===e,s=a&&e.__emotion_base||e;let c,u;r!==void 0&&(c=r.label,u=r.target);let f=[];const g=lp((p,m,y)=>{const{cva:v,isValidProperty:x}=fl(),E=t.__cva__?t:v(t),C=lN(e.__emotion_cva,E),w=se=>(F,ee)=>se.includes(F)?!0:!ee?.includes(F)&&!x(F);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=w(r.forwardProps));const T=(se,F)=>{const ee=typeof e=="string"&&e.charCodeAt(0)>96?tN:nN,oe=!F?.includes(se)&&!x(se);return ee(se)&&oe},R=rN(e,r,a)||T,N=O.useMemo(()=>Object.assign({},r.defaultProps,dl(p)),[p]),{props:L,styles:A}=Zk(N,C,R);let U="",q=[A],_=L;if(L.theme==null){_={};for(let se in L)_[se]=L[se];_.theme=O.useContext(cp)}typeof L.className=="string"?U=NS(m.registered,q,L.className):L.className!=null&&(U=_n(U,L.className));const $=sp(f.concat(q),m.registered,_);$.styles&&(U=_n(U,`${m.key}-${$.name}`)),u!==void 0&&(U=_n(U,u));const G=!R("as");let Y=G&&L.as||s,K={};for(let se in L)if(!(G&&se==="as")){if(Qk(se)){const F=se.replace("html","").toLowerCase();K[F]=L[se];continue}R(se)&&(K[se]=L[se])}let he=U.trim();he?K.className=he:Reflect.deleteProperty(K,"className"),K.ref=y;const ue=r.forwardAsChild||r.forwardProps?.includes("asChild");if(L.asChild&&!ue){const se=O.isValidElement(L.children)?O.Children.only(L.children):O.Children.toArray(L.children).find(O.isValidElement);if(!se)throw new Error("[chakra-ui > factory] No valid child found");Y=se.type,K.children=null,Reflect.deleteProperty(K,"asChild"),K=el(K,se.props),K.ref=jk(y,Wk(se))}return K.as&&ue?(K.as=void 0,z.jsxs(O.Fragment,{children:[z.jsx(y0,{cache:m,serialized:$,isStringTag:typeof Y=="string"}),z.jsx(Y,{asChild:!0,...K,children:z.jsx(L.as,{children:K.children})})]})):z.jsxs(O.Fragment,{children:[z.jsx(y0,{cache:m,serialized:$,isStringTag:typeof Y=="string"}),z.jsx(Y,{...K})]})});return g.displayName=c!==void 0?c:`chakra(${typeof s=="string"?s:s.displayName||s.name||"Component"})`,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_forwardProp=r.shouldForwardProp,g.__emotion_cva=t,Object.defineProperty(g,"toString",{value(){return`.${u}`}}),g},Bh=oN.bind(),Fh=new Map,sN=new Proxy(Bh,{apply(e,t,r){return Bh(...r)},get(e,t){return Fh.has(t)||Fh.set(t,Bh(t)),Fh.get(t)}}),Xe=sN,lN=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),cN=Xe("div");cN.displayName="Box";const DS=Object.freeze({}),uN=Object.freeze({});function zS(e){const{key:t,recipe:r}=e,a=fl();return O.useMemo(()=>{const s=r||(t!=null?a.getRecipe(t):{});return a.cva(structuredClone(s))},[t,r,a])}const dN=e=>e.charAt(0).toUpperCase()+e.slice(1);function Ir(e){const{key:t,recipe:r}=e,a=dN(t||r.className||"Component"),[s,c]=fo({strict:!1,name:`${a}PropsContext`,providerName:`${a}PropsContext`});function u(p){const{unstyled:m,...y}=p,v=zS({key:t,recipe:y.recipe||r}),[x,E]=O.useMemo(()=>v.splitVariantProps(y),[v,y]);return{styles:m?DS:v(x),className:v.className,props:E}}const f=(p,m)=>{const y=Xe(p,{},m),v=O.forwardRef((x,E)=>{const C=c(),w=O.useMemo(()=>el(C,x),[x,C]),{styles:T,className:R,props:N}=u(w);return z.jsx(y,{...N,ref:E,css:[T,w.css],className:_n(R,w.className)})});return v.displayName=p.displayName||p.name,v};function g(){return s}return{withContext:f,PropsProvider:s,withPropsProvider:g,usePropsContext:c,useRecipeResult:u}}const fN=O.forwardRef(function(t,r){const{templateAreas:a,column:s,row:c,autoFlow:u,autoRows:f,templateRows:g,autoColumns:p,templateColumns:m,inline:y,...v}=t;return z.jsx(Xe.div,{...v,ref:r,css:[{display:y?"inline-grid":"grid",gridTemplateAreas:a,gridAutoColumns:p,gridColumn:s,gridRow:c,gridAutoFlow:u,gridAutoRows:f,gridTemplateRows:g,gridTemplateColumns:m},t.css]})});function hu(e){return e==null?[]:Array.isArray(e)?e:[e]}var go=e=>e[0],qu=e=>e[e.length-1],hN=(e,t)=>e.indexOf(t)!==-1,qi=(e,...t)=>e.concat(t),Zi=(e,...t)=>e.filter(r=>!t.includes(r)),ao=e=>Array.from(new Set(e)),Hh=(e,t)=>{const r=new Set(t);return e.filter(a=>!r.has(a))},vo=(e,t)=>hN(e,t)?Zi(e,t):qi(e,t);function MS(e,t,r={}){const{step:a=1,loop:s=!0}=r,c=t+a,u=e.length,f=u-1;return t===-1?a>0?0:f:c<0?s?f:0:c>=u?s?0:t>u?u:t:c}function gN(e,t,r={}){return e[MS(e,t,r)]}function pN(e,t,r={}){const{step:a=1,loop:s=!0}=r;return MS(e,t,{step:-a,loop:s})}function mN(e,t,r={}){return e[pN(e,t,r)]}function S0(e,t){return e.reduce(([r,a],s)=>(t(s)?r.push(s):a.push(s),[r,a]),[[],[]])}var C0=e=>e?.constructor.name==="Array",vN=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Vn(e[r],t[r]))return!1;return!0},Vn=(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(C0(e)&&C0(t))return vN(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 s=0;s<a;s++)if(!Reflect.has(e,r[s]))return!1;for(let s=0;s<a;s++){const c=r[s];if(!Vn(e[c],t[c]))return!1}return!0},Us=e=>Array.isArray(e),bN=e=>e===!0||e===!1,LS=e=>e!=null&&typeof e=="object",Yi=e=>LS(e)&&!Us(e),gu=e=>typeof e=="string",Xi=e=>typeof e=="function",yN=e=>e==null,ci=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),xN=e=>Object.prototype.toString.call(e),BS=Function.prototype.toString,SN=BS.call(Object),CN=e=>{if(!LS(e)||xN(e)!="[object Object]"||wN(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=ci(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&BS.call(r)==SN},EN=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,ON=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,wN=e=>EN(e)||ON(e),TN=e=>e(),RN=()=>{},ku=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})};function Or(e,t,...r){if(e in t){const s=t[e];return Xi(s)?s(...r):s}const a=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(a,Or),a}var FS=(e,t)=>{try{return e()}catch(r){return r instanceof Error&&Error.captureStackTrace?.(r,FS),t?.()}},{floor:HS,abs:E0,round:Yu,min:kN,max:NN,pow:PN,sign:AN}=Math,hg=e=>Number.isNaN(e),gi=e=>hg(e)?0:e,$S=(e,t)=>(e%t+t)%t,IN=(e,t)=>(e%t+t)%t,_N=(e,t)=>gi(e)>=t,VN=(e,t)=>gi(e)<=t,DN=(e,t,r)=>{const a=gi(e),s=t==null||a>=t,c=r==null||a<=r;return s&&c},zN=(e,t,r)=>Yu((gi(e)-t)/r)*r+t,Wt=(e,t,r)=>kN(NN(gi(e),t),r),MN=(e,t,r)=>(gi(e)-t)/(r-t),LN=(e,t,r,a)=>Wt(zN(e*(r-t)+t,t,a),t,r),O0=(e,t)=>{let r=e,a=t.toString(),s=a.indexOf("."),c=s>=0?a.length-s:0;if(c>0){let u=PN(10,c);r=Yu(r*u)/u}return r},$h=(e,t)=>typeof t=="number"?HS(e*t+.5)/t:Yu(e),w0=(e,t,r,a)=>{const s=t!=null?Number(t):0,c=Number(r),u=(e-s)%a;let f=E0(u)*2>=a?e+AN(u)*(a-E0(u)):e-u;if(f=O0(f,a),!hg(s)&&f<s)f=s;else if(!hg(c)&&f>c){const g=HS((c-s)/a),p=s+g*a;f=g<=0||p<s?c:p}return O0(f,a)},qe=(e,t=0,r=10)=>{const a=Math.pow(r,t);return Yu(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},US=(e,t,r)=>{let a=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const s=10**Math.max(T0(e),T0(r));e=Math.round(e*s),r=Math.round(r*s),a=t==="+"?e+r:e-r,a/=s}return a},BN=(e,t)=>US(gi(e),"+",t),FN=(e,t)=>US(gi(e),"-",t);function fp(e){if(!CN(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(a=>typeof a=="string"),r={};for(const a of t){const s=e[a];s!==void 0&&(r[a]=fp(s))}return r}function HN(e,t=Object.is){let r={...e};const a=new Set,s=m=>(a.add(m),()=>a.delete(m)),c=()=>{a.forEach(m=>m())};return{subscribe:s,get:m=>r[m],set:(m,y)=>{t(r[m],y)||(r[m]=y,c())},update:m=>{let y=!1;for(const v in m){const x=m[v];x!==void 0&&!t(r[v],x)&&(r[v]=x,y=!0)}y&&c()},snapshot:()=>({...r})}}function Nu(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function hp(e,t){if(e==null)throw new Error(t())}function $N(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function kt(e={}){const{name:t,strict:r=!0,hookName:a="useContext",providerName:s="Provider",errorMessage:c,defaultValue:u}=e,f=O.createContext(u);f.displayName=t;function g(){const p=O.useContext(f);if(!p&&r){const m=new Error(c??$N(a,s));throw m.name="ContextError",Error.captureStackTrace?.(m,g),m}return p}return[f.Provider,g,f]}const[K6,pi]=kt({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function UN(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 R0=e=>Math.max(0,Math.min(1,e)),jN=(e,t)=>e.map((r,a)=>e[(Math.max(t,0)+a)%e.length]),Uh=(...e)=>t=>e.reduce((r,a)=>a(r),t),oo=()=>{},Xu=e=>typeof e=="object"&&e!==null,GN=2147483647,ye=e=>e?"":void 0,WN=e=>e?"true":void 0,qN=1,YN=9,XN=11,Vt=e=>Xu(e)&&e.nodeType===qN&&typeof e.nodeName=="string",gp=e=>Xu(e)&&e.nodeType===YN,KN=e=>Xu(e)&&e===e.window,jS=e=>Vt(e)?e.localName||"":"#document";function QN(e){return["html","body","#document"].includes(jS(e))}var ZN=e=>Xu(e)&&e.nodeType!==void 0,tl=e=>ZN(e)&&e.nodeType===XN&&"host"in e,JN=e=>Vt(e)&&e.localName==="input",e2=e=>!!e?.matches("a[href]"),t2=e=>Vt(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,n2=/(textarea|select)/;function pp(e){if(e==null||!Vt(e))return!1;try{return JN(e)&&e.selectionStart!=null||n2.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Rr(e,t){if(!e||!t||!Vt(e)||!Vt(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&tl(r)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function Yt(e){return gp(e)?e:KN(e)?e.document:e?.ownerDocument??document}function r2(e){return Yt(e).documentElement}function at(e){return tl(e)?at(e.host):gp(e)?e.defaultView??window:Vt(e)?e.ownerDocument?.defaultView??window:window}function GS(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function i2(e){if(jS(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tl(e)&&e.host||r2(e);return tl(t)?t.host:t}var jh=new WeakMap;function bo(e){return jh.has(e)||jh.set(e,at(e).getComputedStyle(e)),jh.get(e)}var Ku=()=>typeof document<"u";function a2(){return navigator.userAgentData?.platform??navigator.platform}function o2(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var mp=e=>Ku()&&e.test(a2()),WS=e=>Ku()&&e.test(o2()),s2=e=>Ku()&&e.test(navigator.vendor),k0=()=>Ku()&&!!navigator.maxTouchPoints,l2=()=>mp(/^iPhone/i),c2=()=>mp(/^iPad/i)||hl()&&navigator.maxTouchPoints>1,Qu=()=>l2()||c2(),u2=()=>hl()||Qu(),hl=()=>mp(/^Mac/i),gl=()=>u2()&&s2(/apple/i),d2=()=>WS(/Firefox/i),f2=()=>WS(/Android/i);function h2(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function ut(e){return h2(e)?.[0]??e.target}var qS=e=>Rr(e.currentTarget,ut(e));function g2(e){const t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const a=e.button===1,s=p2(e);return a||s}function YS(e){return x2(e).isComposing||e.keyCode===229}function p2(e){return hl()?e.metaKey:e.ctrlKey}function m2(e){return e.pointerType===""&&e.isTrusted?!0:f2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var XS=e=>e.button===0,v2=e=>e.button===2||hl()&&e.ctrlKey&&e.button===0,b2=e=>"touches"in e&&e.touches.length>0,y2={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},N0={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function gg(e,t={}){const{dir:r="ltr",orientation:a="horizontal"}=t;let s=e.key;return s=y2[s]??s,r==="rtl"&&a==="horizontal"&&s in N0&&(s=N0[s]),s}function x2(e){return e.nativeEvent??e}function KS(e,t="client"){const r=b2(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var De=(e,t,r,a)=>{const s=typeof e=="function"?e():e;return s?.addEventListener(t,r,a),()=>{s?.removeEventListener(t,r,a)}};function QS(e,t){const{type:r="HTMLInputElement",property:a="value"}=t,s=at(e)[r].prototype;return Object.getOwnPropertyDescriptor(s,a)??{}}function S2(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Zu(e,t,r="value"){if(!e)return;const a=S2(e);a&&QS(e,{type:a,property:r}).set?.call(e,t),e.setAttribute(r,t)}function vp(e,t){if(!e)return;QS(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function C2(e,t){const{value:r,bubbles:a=!0}=t;if(!e)return;const s=at(e);e instanceof s.HTMLInputElement&&(Zu(e,`${r}`),e.dispatchEvent(new s.Event("input",{bubbles:a})))}function ZS(e,t){const{checked:r,bubbles:a=!0}=t;if(!e)return;const s=at(e);e instanceof s.HTMLInputElement&&(vp(e,r),e.dispatchEvent(new s.Event("click",{bubbles:a})))}function E2(e){return O2(e)?e.form:e.closest("form")}function O2(e){return e.matches("textarea, input, select, button")}function w2(e,t){if(!e)return;const r=E2(e),a=s=>{s.defaultPrevented||t()};return r?.addEventListener("reset",a,{passive:!0}),()=>r?.removeEventListener("reset",a)}function T2(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const a=at(r),s=new a.MutationObserver(()=>t(r.disabled));return s.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>s.disconnect()}function pl(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:a}=t,s=[w2(e,a),T2(e,r)];return()=>s.forEach(c=>c?.())}var JS=e=>Vt(e)&&e.tagName==="IFRAME",R2=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),k2=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",yp=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(bp));(t==!0||t=="if-empty"&&r.length===0)&&Vt(e)&&ui(e)&&r.unshift(e);const s=r.filter(ui);return s.forEach((c,u)=>{if(JS(c)&&c.contentDocument){const f=c.contentDocument.body;s.splice(u,1,...yp(f))}}),s};function ui(e){return!e||e.closest("[inert]")?!1:e.matches(bp)&&t2(e)}function ml(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(bp)),a=r.filter(li);return t&&li(e)&&a.unshift(e),a.forEach((s,c)=>{if(JS(s)&&s.contentDocument){const u=s.contentDocument.body,f=ml(u);a.splice(c,1,...f)}}),!a.length&&t?r:a}function li(e){return e!=null&&e.tabIndex>0?!0:ui(e)&&!k2(e)}function eC(e,t){const r=ml(e,t),a=r[0]||null,s=r[r.length-1]||null;return[a,s]}function N2(e,t){const r=ml(e),a=e?.ownerDocument||document,s=t??a.activeElement;if(!s)return null;const c=r.indexOf(s);return r[c+1]||null}function As(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||pp(e))&&!R2(e)?0:e.tabIndex}function nl(e){const{root:t,getInitialEl:r,filter:a,enabled:s=!0}=e;if(!s)return;let c=null;if(c||(c=typeof r=="function"?r():r),c||(c=t?.querySelector("[data-autofocus],[autofocus]")),!c){const u=ml(t);c=a?u.filter(a)[0]:u[0]}return c||t||void 0}function P2(e){const t=e.currentTarget;if(!t)return!1;const[r,a]=eC(t),s=t.ownerDocument||document;return!(s.activeElement===r&&e.shiftKey||s.activeElement===a&&!e.shiftKey||!r&&!a)}function vl(e){const t=new Set;function r(a){const s=globalThis.requestAnimationFrame(a);t.add(()=>globalThis.cancelAnimationFrame(s))}return r(()=>r(e)),function(){t.forEach(s=>s())}}function ve(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t?.()}}function A2(e,t,r){const a=ve(()=>{e.removeEventListener(t,s,!0),r()}),s=()=>{a(),r()};return e.addEventListener(t,s,{once:!0,capture:!0}),a}function I2(e,t){if(!e)return;const{attributes:r,callback:a}=t,s=e.ownerDocument.defaultView||window,c=new s.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 Ju(e,t){const{defer:r}=t,a=r?ve:c=>c(),s=[];return s.push(a(()=>{const c=typeof e=="function"?e():e;s.push(I2(c,t))})),()=>{s.forEach(c=>c?.())}}function xp(e){const t=()=>{const r=at(e);e.dispatchEvent(new r.MouseEvent("click"))};d2()?A2(e,"keyup",t):queueMicrotask(t)}function Pu(e){const t=i2(e);return QN(t)?Yt(t).body:Vt(t)&&Sp(t)?t:Pu(t)}function tC(e,t=[]){const r=Pu(e),a=r===e.ownerDocument.body,s=at(r);return a?t.concat(s,s.visualViewport||[],Sp(r)?r:[]):t.concat(r,tC(r,[]))}var _2=/auto|scroll|overlay|hidden|clip/,V2=new Set(["inline","contents"]);function Sp(e){const t=at(e),{overflow:r,overflowX:a,overflowY:s,display:c}=t.getComputedStyle(e);return _2.test(r+s+a)&&!V2.has(c)}function D2(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Au(e,t){const{rootEl:r,...a}=t||{};!e||!r||!Sp(r)||!D2(r)||e.scrollIntoView(a)}function nC(e,t){const{left:r,top:a,width:s,height:c}=t.getBoundingClientRect(),u={x:e.x-r,y:e.y-a},f={x:R0(u.x/s),y:R0(u.y/c)};function g(p={}){const{dir:m="ltr",orientation:y="horizontal",inverted:v}=p,x=typeof v=="object"?v.x:v,E=typeof v=="object"?v.y:v;return y==="horizontal"?m==="rtl"||x?1-f.x:f.x:E?1-f.y:f.y}return{offset:u,percent:f,getPercentValue:g}}function z2(e,t){const r=e.body,a="pointerLockElement"in e||"mozPointerLockElement"in e,s=()=>!!e.pointerLockElement;function c(){}function u(g){s(),console.error("PointerLock error occurred:",g),e.exitPointerLock()}if(!a)return;try{r.requestPointerLock()}catch{}const f=[De(e,"pointerlockchange",c,!1),De(e,"pointerlockerror",u,!1)];return()=>{f.forEach(g=>g()),e.exitPointerLock()}}var so="default",pg="",pu=new WeakMap;function M2(e={}){const{target:t,doc:r}=e,a=r??document,s=a.documentElement;return Qu()?(so==="default"&&(pg=s.style.webkitUserSelect,s.style.webkitUserSelect="none"),so="disabled"):t&&(pu.set(t,t.style.userSelect),t.style.userSelect="none"),()=>L2({target:t,doc:a})}function L2(e={}){const{target:t,doc:r}=e,s=(r??document).documentElement;if(Qu()){if(so!=="disabled")return;so="restoring",setTimeout(()=>{vl(()=>{so==="restoring"&&(s.style.webkitUserSelect==="none"&&(s.style.webkitUserSelect=pg||""),pg="",so="default")})},300)}else if(t&&pu.has(t)){const c=pu.get(t);t.style.userSelect==="none"&&(t.style.userSelect=c??""),t.getAttribute("style")===""&&t.removeAttribute("style"),pu.delete(t)}}function rC(e={}){const{defer:t,target:r,...a}=e,s=t?ve:u=>u(),c=[];return c.push(s(()=>{const u=typeof r=="function"?r():r;c.push(M2({...a,target:u}))})),()=>{c.forEach(u=>u?.())}}function B2(e,t){const{onPointerMove:r,onPointerUp:a}=t,c=[De(e,"pointermove",u=>{const f=KS(u),g=Math.sqrt(f.x**2+f.y**2),p=u.pointerType==="touch"?10:5;if(!(g<p)){if(u.pointerType==="mouse"&&u.button===0){a();return}r({point:f,event:u})}},!1),De(e,"pointerup",a,!1),De(e,"pointercancel",a,!1),De(e,"contextmenu",a,!1),rC({doc:e})];return()=>{c.forEach(u=>u())}}function iC(e){const{pointerNode:t,keyboardNode:r=t,onPress:a,onPressStart:s,onPressEnd:c,isValidKey:u=N=>N.key==="Enter"}=e;if(!t)return oo;const f=at(t),g=Yt(t);let p=oo,m=oo,y=oo;const v=N=>({point:KS(N),event:N});function x(N){s?.(v(N))}function E(N){c?.(v(N))}const w=De(t,"pointerdown",N=>{m();const A=De(f,"pointerup",q=>{const _=ut(q);Rr(t,_)?a?.(v(q)):c?.(v(q))},{passive:!a,once:!0}),U=De(f,"pointercancel",E,{passive:!c,once:!0});m=Uh(A,U),g.activeElement===r&&N.pointerType==="mouse"&&N.preventDefault(),x(N)},{passive:!s}),T=De(r,"focus",R);p=Uh(w,T);function R(){const N=q=>{if(!u(q))return;const _=G=>{if(!u(G))return;const Y=new f.PointerEvent("pointerup"),K=v(Y);a?.(K),c?.(K)};m(),m=De(r,"keyup",_);const $=new f.PointerEvent("pointerdown");x($)},L=()=>{const q=new f.PointerEvent("pointercancel");E(q)},A=De(r,"keydown",N),U=De(r,"blur",L);y=Uh(A,U)}return()=>{p(),m(),y()}}function F2(e,t={}){const{triggerElement:r,onFocus:a,onFocusEnter:s}=t,c=e?.ownerDocument||document,u=c.body;function f(g){if(g.key!=="Tab")return;let p=null;const[m,y]=eC(e,!0),v=N2(u,r),x=!m&&!y;g.shiftKey&&v===c.activeElement?(s?.(),p=y):g.shiftKey&&(c.activeElement===m||x)?p=r:!g.shiftKey&&c.activeElement===r?(s?.(),p=m):!g.shiftKey&&(c.activeElement===y||x)&&(p=v),p&&(g.preventDefault(),typeof a=="function"?a(p):p.focus())}return De(c,"keydown",f,!0)}function H2(e,t){const{defer:r,triggerElement:a,...s}=t,c=r?ve:f=>f(),u=[];return u.push(c(()=>{const f=typeof e=="function"?e():e,g=typeof a=="function"?a():a;u.push(F2(f,{triggerElement:g,...s}))})),()=>{u.forEach(f=>f?.())}}function rl(e,t){return Array.from(e?.querySelectorAll(t)??[])}function $2(e,t){return e?.querySelector(t)??null}var Cp=e=>e.id;function aC(e,t,r=Cp){return e.find(a=>r(a)===t)}function Ep(e,t,r=Cp){const a=aC(e,t,r);return a?e.indexOf(a):-1}function oC(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 sC(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])}function U2(e,t){const{onEntry:r,measure:a,box:s="border-box"}=t,c=(Array.isArray(e)?e:[e]).filter(Vt),u=at(c[0]),f=p=>{const m=c.map(y=>a(y));r({rects:m,entries:p})};f([]);const g=new u.ResizeObserver(f);return c.forEach(p=>g.observe(p,{box:s})),()=>g.disconnect()}var j2=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(),G2=e=>j2(e.dataset?.valuetext??e.textContent??""),W2=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function q2(e,t,r,a=Cp){const s=r?Ep(e,r,a):-1;let c=r?jN(e,s):e;return t.length===1&&(c=c.filter(f=>a(f)!==r)),c.find(f=>W2(G2(f),t))}function il(e,t){if(!e)return oo;const r=Object.keys(t).reduce((a,s)=>(a[s]=e.style.getPropertyValue(s),a),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function Y2(e,t,r){if(!e)return oo;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 X2(e,t){const{state:r,activeId:a,key:s,timeout:c=350,itemToId:u}=t,f=r.keysSoFar+s,p=f.length>1&&Array.from(f).every(E=>E===f[0])?f[0]:f;let m=e.slice();const y=q2(m,p,a,u);function v(){clearTimeout(r.timer),r.timer=-1}function x(E){r.keysSoFar=E,v(),E!==""&&(r.timer=+setTimeout(()=>{x(""),v()},c))}return x(f),y}var ea=Object.assign(X2,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:K2});function K2(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Op={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function Q2(e,t,r){const{signal:a}=t;return[new Promise((u,f)=>{const g=setTimeout(()=>{f(new Error(`Timeout of ${r}ms exceeded`))},r);a.addEventListener("abort",()=>{clearTimeout(g),f(new Error("Promise aborted"))}),e.then(p=>{a.aborted||(clearTimeout(g),u(p))}).catch(p=>{a.aborted||(clearTimeout(g),f(p))})}),()=>t.abort()]}function Z2(e,t){const{timeout:r,rootNode:a}=t,s=at(a),c=Yt(a),u=new s.AbortController;return Q2(new Promise(f=>{const g=e();if(g){f(g);return}const p=new s.MutationObserver(()=>{const m=e();m&&m.isConnected&&(p.disconnect(),f(m))});p.observe(c.body,{childList:!0,subtree:!0})}),u,r)}var J2=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),eP=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,P0=e=>{const t={};let r;for(;r=eP.exec(e);)t[r[1]]=r[2];return t},tP=(e,t)=>{if(gu(e)){if(gu(t))return`${e};${t}`;e=P0(e)}else gu(t)&&(t=P0(t));return Object.assign({},e??{},t??{})};function ae(...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]=ku(r[a],t[a]);continue}if(a==="className"||a==="class"){t[a]=J2(t[a],r[a]);continue}if(a==="style"){t[a]=tP(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=[],s;return c=>{const u=e(c);return(u.length!==a.length||u.some((g,p)=>!Vn(a[p],g)))&&(a=u,s=t(...u)),s}}function Jn(){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 wp(){return{guards:Jn(),createMachine:e=>e,choose:e=>function({choose:r}){return r(e)?.actions}}}var to=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(to||{}),Gh="__init__";function nP(e){const t=()=>e.getRootNode?.()??document,r=()=>Yt(t()),a=()=>r().defaultView??window,s=()=>GS(t());return{...e,getRootNode:t,getDoc:r,getWin:a,getActiveElement:s,isActiveElement:f=>f===s(),getById:f=>t().getElementById(f)}}function mi(...e){return t=>{const r=[];for(const a of e)if(typeof a=="function"){const s=a(t);typeof s=="function"&&r.push(s)}else a&&(a.current=t);if(r.length)return()=>{for(const a of r)a()}}}function rP(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 Wh=e=>{const t=O.memo(O.forwardRef((r,a)=>{const{asChild:s,children:c,...u}=r;if(!s)return O.createElement(e,{...u,ref:a},c);if(!O.isValidElement(c))return null;const f=O.Children.only(c),g=rP(f);return O.cloneElement(f,{...ae(u,f.props),ref:a?mi(a,g):g})}));return t.displayName=e.displayName||e.name,t},iP=()=>{const e=new Map;return new Proxy(Wh,{apply(t,r,a){return Wh(a[0])},get(t,r){const a=r;return e.has(a)||e.set(a,Wh(a)),e.get(a)}})},ce=iP(),[Q6,vi]=kt({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),{withContext:aP}=Ir({key:"heading"}),Z6=aP("h2"),Nt=()=>(e,t)=>t.reduce((r,a)=>{const[s,c]=r,u=a;return c[u]!==void 0&&(s[u]=c[u]),delete c[u],[s,c]},[{},{...e}]),bi=e=>Nt()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function oP(e){return new Proxy({},{get(t,r){return r==="style"?a=>e({style:a}).style:e}})}var ge=()=>e=>Array.from(new Set(e));function sP(e,t){const{state:r,send:a,context:s}=e,c=r.matches("mounted","unmountSuspended");return{skip:!s.get("initial"),present:c,setNode(u){u&&a({type:"NODE.SET",node:u})},unmount(){a({type:"UNMOUNT"})}}}var lP={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",bo(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:r,prop:a})=>{const s=a("present");if(s)return r({type:"MOUNT",src:"presence.changed"});const c=t.get("node");if(!s&&c?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});ve(()=>{const u=jc(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})=>{ve(()=>{e.set("prevAnimationName",jc(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 s=f=>{(f.composedPath?.()?.[0]??f.target)===a&&e.set("prevAnimationName",jc(t.get("styles")))},c=f=>{const g=jc(t.get("styles"));ut(f)===a&&g===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};a.addEventListener("animationstart",s),a.addEventListener("animationcancel",c),a.addEventListener("animationend",c);const u=il(a,{animationFillMode:"forwards"});return()=>{a.removeEventListener("animationstart",s),a.removeEventListener("animationcancel",c),a.removeEventListener("animationend",c),vl(()=>u())}}}}};function jc(e){return e?.animationName||"none"}ge()(["onExitComplete","present","immediate"]);var Tp=xS(),lC=typeof globalThis.document<"u"?O.useLayoutEffect:O.useEffect;function Iu(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[a]=O.useState(t),[s,c]=O.useState(a),u=e().value!==void 0,f=O.useRef(s);f.current=u?e().value:s;const g=O.useRef(f.current);lC(()=>{g.current=f.current},[s,e().value]);const p=y=>{const v=g.current,x=Xi(y)?y(v):y;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:x,prev:v}),u||c(x),r(x,v)||e().onChange?.(x,v)};function m(){return u?e().value:s}return{initial:a,ref:f,get:m,set(y){(e().sync?Tp.flushSync:TN)(()=>p(y))},invoke(y,v){e().onChange?.(y,v)},hash(y){return e().hash?.(y)??String(y)}}}Iu.cleanup=e=>{O.useEffect(()=>e,[])};Iu.ref=e=>{const t=O.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function cP(e){const t=O.useRef(e);return{get(r){return t.current[r]},set(r,a){t.current[r]=a}}}var uP=(e,t)=>{const r=O.useRef(!1),a=O.useRef(!1);O.useEffect(()=>{if(r.current&&a.current)return t();a.current=!0},[...(e??[]).map(s=>typeof s=="function"?s():s)]),O.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function _r(e,t={}){const r=O.useMemo(()=>{const{id:Y,ids:K,getRootNode:he}=t;return nP({id:Y,ids:K,getRootNode:he})},[t]),a=(...Y)=>{e.debug&&console.log(...Y)},s=e.props?.({props:fp(t),scope:r})??t,c=dP(s),u=e.context?.({prop:c,bindable:Iu,scope:r,flush:I0,getContext(){return g},getComputed(){return A},getRefs(){return C},getEvent(){return x()}}),f=cC(u),g={get(Y){return f.current?.[Y].ref.current},set(Y,K){f.current?.[Y].set(K)},initial(Y){return f.current?.[Y].initial},hash(Y){const K=f.current?.[Y].get();return f.current?.[Y].hash(K)}},p=O.useRef(new Map),m=O.useRef(null),y=O.useRef(null),v=O.useRef({type:""}),x=()=>({...v.current,current(){return v.current},previous(){return y.current}}),E=()=>({...U,matches(...Y){return Y.includes(U.ref.current)},hasTag(Y){return!!e.states[U.ref.current]?.tags?.includes(Y)}}),C=cP(e.refs?.({prop:c,context:g})??{}),w=()=>({state:E(),context:g,event:x(),prop:c,send:G,action:T,guard:R,track:uP,refs:C,computed:A,flush:I0,scope:r,choose:L}),T=Y=>{const K=Xi(Y)?Y(w()):Y;if(!K)return;const he=K.map(ue=>{const se=e.implementations?.actions?.[ue];return se||Nu(`[zag-js] No implementation found for action "${JSON.stringify(ue)}"`),se});for(const ue of he)ue?.(w())},R=Y=>Xi(Y)?Y(w()):e.implementations?.guards?.[Y](w()),N=Y=>{const K=Xi(Y)?Y(w()):Y;if(!K)return;const he=K.map(se=>{const F=e.implementations?.effects?.[se];return F||Nu(`[zag-js] No implementation found for effect "${JSON.stringify(se)}"`),F}),ue=[];for(const se of he){const F=se?.(w());F&&ue.push(F)}return()=>ue.forEach(se=>se?.())},L=Y=>hu(Y).find(K=>{let he=!K.guard;return gu(K.guard)?he=!!R(K.guard):Xi(K.guard)&&(he=K.guard(w())),he}),A=Y=>{hp(e.computed,()=>"[zag-js] No computed object found on machine");const K=e.computed[Y];return K({context:g,event:x(),prop:c,refs:C,scope:r,computed:A})},U=Iu(()=>({defaultValue:e.initialState({prop:c}),onChange(Y,K){K&&(p.current.get(K)?.(),p.current.delete(K)),K&&T(e.states[K]?.exit),T(m.current?.actions);const he=N(e.states[Y]?.effects);if(he&&p.current.set(Y,he),K===Gh){T(e.entry);const ue=N(e.effects);ue&&p.current.set(Gh,ue)}T(e.states[Y]?.entry)}})),q=O.useRef(void 0),_=O.useRef(to.NotStarted);lC(()=>{queueMicrotask(()=>{const he=_.current===to.Started;_.current=to.Started,a(he?"rehydrating...":"initializing...");const ue=q.current??U.initial;U.invoke(ue,he?U.get():Gh)});const Y=p.current,K=U.ref.current;return()=>{a("unmounting..."),q.current=K,_.current=to.Stopped,Y.forEach(he=>he?.()),p.current=new Map,m.current=null,queueMicrotask(()=>{T(e.exit)})}},[]);const $=()=>"ref"in U?U.ref.current:U.get(),G=Y=>{queueMicrotask(()=>{if(_.current!==to.Started)return;y.current=v.current,v.current=Y;let K=$();const he=e.states[K].on?.[Y.type]??e.on?.[Y.type],ue=L(he);if(!ue)return;m.current=ue;const se=ue.target??K;a("transition",Y.type,ue.target||K,`(${ue.actions})`);const F=se!==K;F?Tp.flushSync(()=>U.set(se)):ue.reenter&&!F?U.invoke(K,K):T(ue.actions??[])})};return e.watch?.(w()),{state:E(),send:G,context:g,prop:c,scope:r,refs:C,computed:A,event:x(),getStatus:()=>_.current}}function cC(e){const t=O.useRef(e);return t.current=e,t}function dP(e){const t=cC(e);return function(a){return t.current[a]}}function I0(e){queueMicrotask(()=>{Tp.flushSync(()=>e())})}var yi=oP(e=>e);function uC(e,t={}){const{sync:r=!1}=t,a=fP(e);return O.useCallback((...s)=>r?queueMicrotask(()=>a.current?.(...s)):a.current?.(...s),[r,a])}function fP(e){const t=O.useRef(e);return t.current=e,t}const er=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:a,skipAnimationOnMount:s=!1,...c}=e,u=O.useRef(!1),f={...c,present:a,onExitComplete:uC(e.onExitComplete)},g=_r(lP,f),p=sP(g);p.present&&(u.current=!0);const m=!p.present&&!u.current&&t||r&&!p.present&&u.current,y=()=>({"data-state":p.skip&&s?void 0:a?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:y,present:p.present,unmounted:m}},[Vr,tr]=kt({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Gc=Xe("span"),{withContext:hP}=Ir({key:"text"}),J6=hP("p"),gP=e=>Nt()(e,["defaultOpen","disabled","id","ids","lazyMount","onExitComplete","onOpenChange","open","unmountOnExit"]);var pe=(e,t=[])=>({parts:(...r)=>{if(pP(t))return pe(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>pe(e,[...t,...r]),omit:(...r)=>pe(e,t.filter(a=>!r.includes(a))),rename:r=>pe(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,a)=>Object.assign(r,{[a]:{selector:[`&[data-scope="${Xa(e)}"][data-part="${Xa(a)}"]`,`& [data-scope="${Xa(e)}"][data-part="${Xa(a)}"]`].join(", "),attrs:{"data-scope":Xa(e),"data-part":Xa(a)}}}),{})}),Xa=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),pP=e=>e.length===0,dC=pe("collapsible").parts("root","trigger","content","indicator"),Wc=dC.build(),mP=e=>e.ids?.root??`collapsible:${e.id}`,mg=e=>e.ids?.content??`collapsible:${e.id}:content`,vP=e=>e.ids?.trigger??`collapsible:${e.id}:trigger`,qc=e=>e.getById(mg(e));function bP(e,t){const{state:r,send:a,context:s,scope:c,prop:u}=e,f=r.matches("open")||r.matches("closing"),g=r.matches("open"),{width:p,height:m}=s.get("size"),y=!!u("disabled"),v=!s.get("initial")&&g,x="ltr";return{disabled:y,visible:f,open:g,measureSize(){a({type:"size.measure"})},setOpen(E){r.matches("open")!==E&&a({type:E?"open":"close"})},getRootProps(){return t.element({...Wc.root.attrs,"data-state":g?"open":"closed",dir:x,id:mP(c)})},getContentProps(){return t.element({...Wc.content.attrs,"data-collapsible":"","data-state":v?void 0:g?"open":"closed",id:mg(c),"data-disabled":ye(y),hidden:!f,style:{"--height":m!=null?`${m}px`:void 0,"--width":p!=null?`${p}px`:void 0}})},getTriggerProps(){return t.element({...Wc.trigger.attrs,id:vP(c),dir:x,type:"button","data-state":g?"open":"closed","data-disabled":ye(y),"aria-controls":mg(c),"aria-expanded":f||!1,onClick(E){E.defaultPrevented||y||a({type:g?"close":"open"})}})},getIndicatorProps(){return t.element({...Wc.indicator.attrs,dir:x,"data-state":g?"open":"closed","data-disabled":ye(y)})}}}var yP={initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}},refs(){return{cleanup:void 0,stylesRef:void 0}},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["setInitial","computeSize","toggleVisibility"])})},exit:["clearInitial","cleanupNode"],states:{closed:{on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackEnterAnimation:({send:e,scope:t})=>{let r;const a=ve(()=>{const s=qc(t);if(!s)return;const c=bo(s).animationName;if(!c||c==="none"){e({type:"animation.end"});return}const f=g=>{ut(g)===s&&e({type:"animation.end"})};s.addEventListener("animationend",f),r=()=>{s.removeEventListener("animationend",f)}});return()=>{a(),r?.()}},trackExitAnimation:({send:e,scope:t})=>{let r;const a=ve(()=>{const s=qc(t);if(!s)return;const c=bo(s).animationName;if(!c||c==="none"){e({type:"animation.end"});return}const f=p=>{ut(p)===s&&e({type:"animation.end"})};s.addEventListener("animationend",f);const g=il(s,{animationFillMode:"forwards"});r=()=>{s.removeEventListener("animationend",f),vl(()=>g())}});return()=>{a(),r?.()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{const r=qc(t);if(!r)return;const{height:a,width:s}=r.getBoundingClientRect();e.set("size",{height:a,width:s})},computeSize:({refs:e,scope:t,context:r})=>{e.get("cleanup")?.();const a=ve(()=>{const s=qc(t);if(!s)return;const c=s.hidden;s.style.animationName="none",s.style.animationDuration="0s",s.hidden=!1;const u=s.getBoundingClientRect();r.set("size",{height:u.height,width:u.width}),r.get("initial")&&(s.style.animationName="",s.style.animationDuration=""),s.hidden=c});e.set("cleanup",a)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}};ge()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);const xP=(e={})=>{const{lazyMount:t,unmountOnExit:r,...a}=e,s=O.useId(),c=O.useRef(!1),{dir:u}=vi(),{getRootNode:f}=pi(),g={id:s,dir:u,getRootNode:f,...a},p=_r(yP,g),m=bP(p,yi);m.visible&&(c.current=!0);const y=!m.visible&&!c.current&&t||r&&!m.visible&&c.current;return{...m,isUnmounted:y}},[fC,hC]=kt({name:"CollapsibleContext",hookName:"useCollapsibleContext",providerName:"<CollapsibleProvider />"}),gC=O.forwardRef((e,t)=>{const[r,a]=gP(e),s=xP(r),c=ae(s.getRootProps(),a);return z.jsx(fC,{value:s,children:z.jsx(ce.div,{...c,ref:t})})});gC.displayName="CollapsibleRoot";var SP=Object.defineProperty,CP=(e,t,r)=>t in e?SP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rp=(e,t,r)=>CP(e,t+"",r),EP=(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},kp=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:s}=this.getChannelRange(e);return MN(r,a,s)}getChannelPercentValue(e,t){const{minValue:r,maxValue:a,step:s}=this.getChannelRange(e),c=LN(t,r,a,s);return w0(c,r,a,s)}withChannelValue(e,t){const{minValue:r,maxValue:a}=this.getChannelRange(e);if(e in this){let s=this.clone();return s[e]=Wt(t,r,a),s}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,a=t||this.getChannels().find(u=>u!==r),s=r||this.getChannels().find(u=>u!==a),c=this.getChannels().find(u=>u!==a&&u!==s);return{xChannel:a,yChannel:s,zChannel:c}}incrementChannel(e,t){const{minValue:r,maxValue:a,step:s}=this.getChannelRange(e),c=w0(Wt(this.getChannelValue(e)+t,r,a),r,a,s);return this.withChannelValue(e,c)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return EP(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},OP=/^#[\da-f]+$/i,wP=/^rgba?\((.*)\)$/,TP=/[^#]/gi,pC=class mu extends kp{constructor(t,r,a,s){super(),this.red=t,this.green=r,this.blue=a,this.alpha=s}static parse(t){let r=[];if(OP.test(t)&&[4,5,7,9].includes(t.length)){const s=(t.length<6?t.replace(TP,"$&$&"):t).slice(1).split("");for(;s.length>0;)r.push(parseInt(s.splice(0,2).join(""),16));r[3]=r[3]!==void 0?r[3]/255:void 0}const a=t.match(wP);return a?.[1]&&(r=a[1].split(",").map(s=>Number(s.trim())).map((s,c)=>Wt(s,0,c<3?255:1))),r.length<3?void 0:new mu(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,s=Math.min(t,r,a),c=Math.max(t,r,a),u=c-s,f=c===0?0:u/c;let g=0;if(u!==0){switch(c){case t:g=(r-a)/u+(r<a?6:0);break;case r:g=(a-t)/u+2;break;case a:g=(t-r)/u+4;break}g/=6}return new Ap(qe(g*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,s=Math.min(t,r,a),c=Math.max(t,r,a),u=(c+s)/2,f=c-s;let g=-1,p=-1;if(f===0)g=p=0;else{switch(p=f/(u<.5?c+s:2-c-s),c){case t:g=(r-a)/f+(r<a?6:0);break;case r:g=(a-t)/f+2;break;case a:g=(t-r)/f+4;break}g/=6}return new Pp(qe(g*360,2),qe(p*100,2),qe(u*100,2),qe(this.alpha,2))}clone(){return new mu(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),s=this.getChannelValue(t);return new Intl.NumberFormat(r,a).format(s)}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 mu.colorChannels}};Rp(pC,"colorChannels",["red","green","blue"]);var Np=pC,RP=/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+)?)\)/,mC=class vu extends kp{constructor(t,r,a,s){super(),this.hue=t,this.saturation=r,this.lightness=a,this.alpha=s}static parse(t){let r;if(r=t.match(RP)){const[a,s,c,u]=(r[1]??r[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new vu($S(a,360),Wt(s,0,100),Wt(c,0,100),Wt(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 Ap(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,s=r*Math.min(a,1-a),c=(u,f=(u+t/30)%12)=>a-s*Math.max(Math.min(f-3,9-f,1),-1);return new Np(Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255),qe(this.alpha,2))}clone(){return new vu(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),s=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(s/=100),new Intl.NumberFormat(r,a).format(s)}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 vu.colorChannels}};Rp(mC,"colorChannels",["hue","saturation","lightness"]);var Pp=mC,kP=/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+)?)\)/,vC=class bu extends kp{constructor(t,r,a,s){super(),this.hue=t,this.saturation=r,this.brightness=a,this.alpha=s}static parse(t){let r;if(r=t.match(kP)){const[a,s,c,u]=(r[1]??r[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new bu($S(a,360),Wt(s,0,100),Wt(c,0,100),Wt(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 Pp(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,s=(c,u=(c+t/60)%6)=>a-r*a*Math.max(Math.min(u,4-u,1),0);return new Np(Math.round(s(5)*255),Math.round(s(3)*255),Math.round(s(1)*255),qe(this.alpha,2))}clone(){return new bu(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),s=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(s/=100),new Intl.NumberFormat(r,a).format(s)}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 bu.colorChannels}};Rp(vC,"colorChannels",["hue","saturation","brightness"]);var Ap=vC,NP="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",PP=e=>{const t=new Map,r=e.split(",");for(let a=0;a<r.length;a++){const[s,c]=r[a].split(":");t.set(s,`#${c}`),s.includes("gray")&&t.set(s.replace("gray","grey"),`#${c}`)}return t},_0=PP(NP),_u=e=>{if(_0.has(e))return _u(_0.get(e));const t=Np.parse(e)||Ap.parse(e)||Pp.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(r,_u),r}return t};const AP=["top","right","bottom","left"],fi=Math.min,cn=Math.max,Vu=Math.round,Yc=Math.floor,Xn=e=>({x:e,y:e}),IP={left:"right",right:"left",bottom:"top",top:"bottom"},_P={start:"end",end:"start"};function vg(e,t,r){return cn(e,fi(t,r))}function Nr(e,t){return typeof e=="function"?e(t):e}function Pr(e){return e.split("-")[0]}function So(e){return e.split("-")[1]}function Ip(e){return e==="x"?"y":"x"}function _p(e){return e==="y"?"height":"width"}const VP=new Set(["top","bottom"]);function qn(e){return VP.has(Pr(e))?"y":"x"}function Vp(e){return Ip(qn(e))}function DP(e,t,r){r===void 0&&(r=!1);const a=So(e),s=Vp(e),c=_p(s);let u=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=Du(u)),[u,Du(u)]}function zP(e){const t=Du(e);return[bg(e),t,bg(t)]}function bg(e){return e.replace(/start|end/g,t=>_P[t])}const V0=["left","right"],D0=["right","left"],MP=["top","bottom"],LP=["bottom","top"];function BP(e,t,r){switch(e){case"top":case"bottom":return r?t?D0:V0:t?V0:D0;case"left":case"right":return t?MP:LP;default:return[]}}function FP(e,t,r,a){const s=So(e);let c=BP(Pr(e),r==="start",a);return s&&(c=c.map(u=>u+"-"+s),t&&(c=c.concat(c.map(bg)))),c}function Du(e){return e.replace(/left|right|bottom|top/g,t=>IP[t])}function HP(e){return{top:0,right:0,bottom:0,left:0,...e}}function bC(e){return typeof e!="number"?HP(e):{top:e,right:e,bottom:e,left:e}}function zu(e){const{x:t,y:r,width:a,height:s}=e;return{width:a,height:s,top:r,left:t,right:t+a,bottom:r+s,x:t,y:r}}function z0(e,t,r){let{reference:a,floating:s}=e;const c=qn(t),u=Vp(t),f=_p(u),g=Pr(t),p=c==="y",m=a.x+a.width/2-s.width/2,y=a.y+a.height/2-s.height/2,v=a[f]/2-s[f]/2;let x;switch(g){case"top":x={x:m,y:a.y-s.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-s.width,y};break;default:x={x:a.x,y:a.y}}switch(So(t)){case"start":x[u]-=v*(r&&p?-1:1);break;case"end":x[u]+=v*(r&&p?-1:1);break}return x}const $P=async(e,t,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:c=[],platform:u}=r,f=c.filter(Boolean),g=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:m,y}=z0(p,a,g),v=a,x={},E=0;for(let C=0;C<f.length;C++){const{name:w,fn:T}=f[C],{x:R,y:N,data:L,reset:A}=await T({x:m,y,initialPlacement:a,placement:v,strategy:s,middlewareData:x,rects:p,platform:u,elements:{reference:e,floating:t}});m=R??m,y=N??y,x={...x,[w]:{...x[w],...L}},A&&E<=50&&(E++,typeof A=="object"&&(A.placement&&(v=A.placement),A.rects&&(p=A.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):A.rects),{x:m,y}=z0(p,v,g)),C=-1)}return{x:m,y,placement:v,strategy:s,middlewareData:x}};async function al(e,t){var r;t===void 0&&(t={});const{x:a,y:s,platform:c,rects:u,elements:f,strategy:g}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:v=!1,padding:x=0}=Nr(t,e),E=bC(x),w=f[v?y==="floating"?"reference":"floating":y],T=zu(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(w)))==null||r?w:w.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:p,rootBoundary:m,strategy:g})),R=y==="floating"?{x:a,y:s,width:u.floating.width,height:u.floating.height}:u.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),L=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=zu(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:R,offsetParent:N,strategy:g}):R);return{top:(T.top-A.top+E.top)/L.y,bottom:(A.bottom-T.bottom+E.bottom)/L.y,left:(T.left-A.left+E.left)/L.x,right:(A.right-T.right+E.right)/L.x}}const UP=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:s,rects:c,platform:u,elements:f,middlewareData:g}=t,{element:p,padding:m=0}=Nr(e,t)||{};if(p==null)return{};const y=bC(m),v={x:r,y:a},x=Vp(s),E=_p(x),C=await u.getDimensions(p),w=x==="y",T=w?"top":"left",R=w?"bottom":"right",N=w?"clientHeight":"clientWidth",L=c.reference[E]+c.reference[x]-v[x]-c.floating[E],A=v[x]-c.reference[x],U=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let q=U?U[N]:0;(!q||!await(u.isElement==null?void 0:u.isElement(U)))&&(q=f.floating[N]||c.floating[E]);const _=L/2-A/2,$=q/2-C[E]/2-1,G=fi(y[T],$),Y=fi(y[R],$),K=G,he=q-C[E]-Y,ue=q/2-C[E]/2+_,se=vg(K,ue,he),F=!g.arrow&&So(s)!=null&&ue!==se&&c.reference[E]/2-(ue<K?G:Y)-C[E]/2<0,ee=F?ue<K?ue-K:ue-he:0;return{[x]:v[x]+ee,data:{[x]:se,centerOffset:ue-se-ee,...F&&{alignmentOffset:ee}},reset:F}}}),jP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:s,middlewareData:c,rects:u,initialPlacement:f,platform:g,elements:p}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...w}=Nr(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const T=Pr(s),R=qn(f),N=Pr(f)===f,L=await(g.isRTL==null?void 0:g.isRTL(p.floating)),A=v||(N||!C?[Du(f)]:zP(f)),U=E!=="none";!v&&U&&A.push(...FP(f,C,E,L));const q=[f,...A],_=await al(t,w),$=[];let G=((a=c.flip)==null?void 0:a.overflows)||[];if(m&&$.push(_[T]),y){const ue=DP(s,u,L);$.push(_[ue[0]],_[ue[1]])}if(G=[...G,{placement:s,overflows:$}],!$.every(ue=>ue<=0)){var Y,K;const ue=(((Y=c.flip)==null?void 0:Y.index)||0)+1,se=q[ue];if(se&&(!(y==="alignment"?R!==qn(se):!1)||G.every(oe=>qn(oe.placement)===R?oe.overflows[0]>0:!0)))return{data:{index:ue,overflows:G},reset:{placement:se}};let F=(K=G.filter(ee=>ee.overflows[0]<=0).sort((ee,oe)=>ee.overflows[1]-oe.overflows[1])[0])==null?void 0:K.placement;if(!F)switch(x){case"bestFit":{var he;const ee=(he=G.filter(oe=>{if(U){const ie=qn(oe.placement);return ie===R||ie==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(ie=>ie>0).reduce((ie,P)=>ie+P,0)]).sort((oe,ie)=>oe[1]-ie[1])[0])==null?void 0:he[0];ee&&(F=ee);break}case"initialPlacement":F=f;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function M0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L0(e){return AP.some(t=>e[t]>=0)}const GP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:a="referenceHidden",...s}=Nr(e,t);switch(a){case"referenceHidden":{const c=await al(t,{...s,elementContext:"reference"}),u=M0(c,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:L0(u)}}}case"escaped":{const c=await al(t,{...s,altBoundary:!0}),u=M0(c,r.floating);return{data:{escapedOffsets:u,escaped:L0(u)}}}default:return{}}}}},yC=new Set(["left","top"]);async function WP(e,t){const{placement:r,platform:a,elements:s}=e,c=await(a.isRTL==null?void 0:a.isRTL(s.floating)),u=Pr(r),f=So(r),g=qn(r)==="y",p=yC.has(u)?-1:1,m=c&&g?-1:1,y=Nr(t,e);let{mainAxis:v,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),g?{x:x*m,y:v*p}:{x:v*p,y:x*m}}const qP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:s,y:c,placement:u,middlewareData:f}=t,g=await WP(t,e);return u===((r=f.offset)==null?void 0:r.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:s+g.x,y:c+g.y,data:{...g,placement:u}}}}},YP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:s}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:w=>{let{x:T,y:R}=w;return{x:T,y:R}}},...g}=Nr(e,t),p={x:r,y:a},m=await al(t,g),y=qn(Pr(s)),v=Ip(y);let x=p[v],E=p[y];if(c){const w=v==="y"?"top":"left",T=v==="y"?"bottom":"right",R=x+m[w],N=x-m[T];x=vg(R,x,N)}if(u){const w=y==="y"?"top":"left",T=y==="y"?"bottom":"right",R=E+m[w],N=E-m[T];E=vg(R,E,N)}const C=f.fn({...t,[v]:x,[y]:E});return{...C,data:{x:C.x-r,y:C.y-a,enabled:{[v]:c,[y]:u}}}}}},XP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:s,rects:c,middlewareData:u}=t,{offset:f=0,mainAxis:g=!0,crossAxis:p=!0}=Nr(e,t),m={x:r,y:a},y=qn(s),v=Ip(y);let x=m[v],E=m[y];const C=Nr(f,t),w=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(g){const N=v==="y"?"height":"width",L=c.reference[v]-c.floating[N]+w.mainAxis,A=c.reference[v]+c.reference[N]-w.mainAxis;x<L?x=L:x>A&&(x=A)}if(p){var T,R;const N=v==="y"?"width":"height",L=yC.has(Pr(s)),A=c.reference[y]-c.floating[N]+(L&&((T=u.offset)==null?void 0:T[y])||0)+(L?0:w.crossAxis),U=c.reference[y]+c.reference[N]+(L?0:((R=u.offset)==null?void 0:R[y])||0)-(L?w.crossAxis:0);E<A?E=A:E>U&&(E=U)}return{[v]:x,[y]:E}}}},KP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:s,rects:c,platform:u,elements:f}=t,{apply:g=()=>{},...p}=Nr(e,t),m=await al(t,p),y=Pr(s),v=So(s),x=qn(s)==="y",{width:E,height:C}=c.floating;let w,T;y==="top"||y==="bottom"?(w=y,T=v===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(T=y,w=v==="end"?"top":"bottom");const R=C-m.top-m.bottom,N=E-m.left-m.right,L=fi(C-m[w],R),A=fi(E-m[T],N),U=!t.middlewareData.shift;let q=L,_=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=N),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(q=R),U&&!v){const G=cn(m.left,0),Y=cn(m.right,0),K=cn(m.top,0),he=cn(m.bottom,0);x?_=E-2*(G!==0||Y!==0?G+Y:cn(m.left,m.right)):q=C-2*(K!==0||he!==0?K+he:cn(m.top,m.bottom))}await g({...t,availableWidth:_,availableHeight:q});const $=await u.getDimensions(f.floating);return E!==$.width||C!==$.height?{reset:{rects:!0}}:{}}}};function ed(){return typeof window<"u"}function Co(e){return xC(e)?(e.nodeName||"").toLowerCase():"#document"}function dn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nr(e){var t;return(t=(xC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xC(e){return ed()?e instanceof Node||e instanceof dn(e).Node:!1}function Dn(e){return ed()?e instanceof Element||e instanceof dn(e).Element:!1}function Qn(e){return ed()?e instanceof HTMLElement||e instanceof dn(e).HTMLElement:!1}function B0(e){return!ed()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dn(e).ShadowRoot}const QP=new Set(["inline","contents"]);function bl(e){const{overflow:t,overflowX:r,overflowY:a,display:s}=zn(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!QP.has(s)}const ZP=new Set(["table","td","th"]);function JP(e){return ZP.has(Co(e))}const eA=[":popover-open",":modal"];function td(e){return eA.some(t=>{try{return e.matches(t)}catch{return!1}})}const tA=["transform","translate","scale","rotate","perspective"],nA=["transform","translate","scale","rotate","perspective","filter"],rA=["paint","layout","strict","content"];function Dp(e){const t=zp(),r=Dn(e)?zn(e):e;return tA.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)||nA.some(a=>(r.willChange||"").includes(a))||rA.some(a=>(r.contain||"").includes(a))}function iA(e){let t=hi(e);for(;Qn(t)&&!yo(t);){if(Dp(t))return t;if(td(t))return null;t=hi(t)}return null}function zp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aA=new Set(["html","body","#document"]);function yo(e){return aA.has(Co(e))}function zn(e){return dn(e).getComputedStyle(e)}function nd(e){return Dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hi(e){if(Co(e)==="html")return e;const t=e.assignedSlot||e.parentNode||B0(e)&&e.host||nr(e);return B0(t)?t.host:t}function SC(e){const t=hi(e);return yo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qn(t)&&bl(t)?t:SC(t)}function ol(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=SC(e),c=s===((a=e.ownerDocument)==null?void 0:a.body),u=dn(s);if(c){const f=yg(u);return t.concat(u,u.visualViewport||[],bl(s)?s:[],f&&r?ol(f):[])}return t.concat(s,ol(s,[],r))}function yg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CC(e){const t=zn(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=Qn(e),c=s?e.offsetWidth:r,u=s?e.offsetHeight:a,f=Vu(r)!==c||Vu(a)!==u;return f&&(r=c,a=u),{width:r,height:a,$:f}}function Mp(e){return Dn(e)?e:e.contextElement}function po(e){const t=Mp(e);if(!Qn(t))return Xn(1);const r=t.getBoundingClientRect(),{width:a,height:s,$:c}=CC(t);let u=(c?Vu(r.width):r.width)/a,f=(c?Vu(r.height):r.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const oA=Xn(0);function EC(e){const t=dn(e);return!zp()||!t.visualViewport?oA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sA(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==dn(e)?!1:t}function ta(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),c=Mp(e);let u=Xn(1);t&&(a?Dn(a)&&(u=po(a)):u=po(e));const f=sA(c,r,a)?EC(c):Xn(0);let g=(s.left+f.x)/u.x,p=(s.top+f.y)/u.y,m=s.width/u.x,y=s.height/u.y;if(c){const v=dn(c),x=a&&Dn(a)?dn(a):a;let E=v,C=yg(E);for(;C&&a&&x!==E;){const w=po(C),T=C.getBoundingClientRect(),R=zn(C),N=T.left+(C.clientLeft+parseFloat(R.paddingLeft))*w.x,L=T.top+(C.clientTop+parseFloat(R.paddingTop))*w.y;g*=w.x,p*=w.y,m*=w.x,y*=w.y,g+=N,p+=L,E=dn(C),C=yg(E)}}return zu({width:m,height:y,x:g,y:p})}function rd(e,t){const r=nd(e).scrollLeft;return t?t.left+r:ta(nr(e)).left+r}function OC(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-rd(e,r),s=r.top+t.scrollTop;return{x:a,y:s}}function lA(e){let{elements:t,rect:r,offsetParent:a,strategy:s}=e;const c=s==="fixed",u=nr(a),f=t?td(t.floating):!1;if(a===u||f&&c)return r;let g={scrollLeft:0,scrollTop:0},p=Xn(1);const m=Xn(0),y=Qn(a);if((y||!y&&!c)&&((Co(a)!=="body"||bl(u))&&(g=nd(a)),Qn(a))){const x=ta(a);p=po(a),m.x=x.x+a.clientLeft,m.y=x.y+a.clientTop}const v=u&&!y&&!c?OC(u,g):Xn(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-g.scrollLeft*p.x+m.x+v.x,y:r.y*p.y-g.scrollTop*p.y+m.y+v.y}}function cA(e){return Array.from(e.getClientRects())}function uA(e){const t=nr(e),r=nd(e),a=e.ownerDocument.body,s=cn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),c=cn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let u=-r.scrollLeft+rd(e);const f=-r.scrollTop;return zn(a).direction==="rtl"&&(u+=cn(t.clientWidth,a.clientWidth)-s),{width:s,height:c,x:u,y:f}}const F0=25;function dA(e,t){const r=dn(e),a=nr(e),s=r.visualViewport;let c=a.clientWidth,u=a.clientHeight,f=0,g=0;if(s){c=s.width,u=s.height;const m=zp();(!m||m&&t==="fixed")&&(f=s.offsetLeft,g=s.offsetTop)}const p=rd(a);if(p<=0){const m=a.ownerDocument,y=m.body,v=getComputedStyle(y),x=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(a.clientWidth-y.clientWidth-x);E<=F0&&(c-=E)}else p<=F0&&(c+=p);return{width:c,height:u,x:f,y:g}}const fA=new Set(["absolute","fixed"]);function hA(e,t){const r=ta(e,!0,t==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,c=Qn(e)?po(e):Xn(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,g=s*c.x,p=a*c.y;return{width:u,height:f,x:g,y:p}}function H0(e,t,r){let a;if(t==="viewport")a=dA(e,r);else if(t==="document")a=uA(nr(e));else if(Dn(t))a=hA(t,r);else{const s=EC(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return zu(a)}function wC(e,t){const r=hi(e);return r===t||!Dn(r)||yo(r)?!1:zn(r).position==="fixed"||wC(r,t)}function gA(e,t){const r=t.get(e);if(r)return r;let a=ol(e,[],!1).filter(f=>Dn(f)&&Co(f)!=="body"),s=null;const c=zn(e).position==="fixed";let u=c?hi(e):e;for(;Dn(u)&&!yo(u);){const f=zn(u),g=Dp(u);!g&&f.position==="fixed"&&(s=null),(c?!g&&!s:!g&&f.position==="static"&&!!s&&fA.has(s.position)||bl(u)&&!g&&wC(e,u))?a=a.filter(m=>m!==u):s=f,u=hi(u)}return t.set(e,a),a}function pA(e){let{element:t,boundary:r,rootBoundary:a,strategy:s}=e;const u=[...r==="clippingAncestors"?td(t)?[]:gA(t,this._c):[].concat(r),a],f=u[0],g=u.reduce((p,m)=>{const y=H0(t,m,s);return p.top=cn(y.top,p.top),p.right=fi(y.right,p.right),p.bottom=fi(y.bottom,p.bottom),p.left=cn(y.left,p.left),p},H0(t,f,s));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function mA(e){const{width:t,height:r}=CC(e);return{width:t,height:r}}function vA(e,t,r){const a=Qn(t),s=nr(t),c=r==="fixed",u=ta(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const g=Xn(0);function p(){g.x=rd(s)}if(a||!a&&!c)if((Co(t)!=="body"||bl(s))&&(f=nd(t)),a){const x=ta(t,!0,c,t);g.x=x.x+t.clientLeft,g.y=x.y+t.clientTop}else s&&p();c&&!a&&s&&p();const m=s&&!a&&!c?OC(s,f):Xn(0),y=u.left+f.scrollLeft-g.x-m.x,v=u.top+f.scrollTop-g.y-m.y;return{x:y,y:v,width:u.width,height:u.height}}function qh(e){return zn(e).position==="static"}function $0(e,t){if(!Qn(e)||zn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return nr(e)===r&&(r=r.ownerDocument.body),r}function TC(e,t){const r=dn(e);if(td(e))return r;if(!Qn(e)){let s=hi(e);for(;s&&!yo(s);){if(Dn(s)&&!qh(s))return s;s=hi(s)}return r}let a=$0(e,t);for(;a&&JP(a)&&qh(a);)a=$0(a,t);return a&&yo(a)&&qh(a)&&!Dp(a)?r:a||iA(e)||r}const bA=async function(e){const t=this.getOffsetParent||TC,r=this.getDimensions,a=await r(e.floating);return{reference:vA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function yA(e){return zn(e).direction==="rtl"}const xA={convertOffsetParentRelativeRectToViewportRelativeRect:lA,getDocumentElement:nr,getClippingRect:pA,getOffsetParent:TC,getElementRects:bA,getClientRects:cA,getDimensions:mA,getScale:po,isElement:Dn,isRTL:yA};function RC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SA(e,t){let r=null,a;const s=nr(e);function c(){var f;clearTimeout(a),(f=r)==null||f.disconnect(),r=null}function u(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),c();const p=e.getBoundingClientRect(),{left:m,top:y,width:v,height:x}=p;if(f||t(),!v||!x)return;const E=Yc(y),C=Yc(s.clientWidth-(m+v)),w=Yc(s.clientHeight-(y+x)),T=Yc(m),N={rootMargin:-E+"px "+-C+"px "+-w+"px "+-T+"px",threshold:cn(0,fi(1,g))||1};let L=!0;function A(U){const q=U[0].intersectionRatio;if(q!==g){if(!L)return u();q?u(!1,q):a=setTimeout(()=>{u(!1,1e-7)},1e3)}q===1&&!RC(p,e.getBoundingClientRect())&&u(),L=!1}try{r=new IntersectionObserver(A,{...N,root:s.ownerDocument})}catch{r=new IntersectionObserver(A,N)}r.observe(e)}return u(!0),c}function CA(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:g=!1}=a,p=Mp(e),m=s||c?[...p?ol(p):[],...ol(t)]:[];m.forEach(T=>{s&&T.addEventListener("scroll",r,{passive:!0}),c&&T.addEventListener("resize",r)});const y=p&&f?SA(p,r):null;let v=-1,x=null;u&&(x=new ResizeObserver(T=>{let[R]=T;R&&R.target===p&&x&&(x.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var N;(N=x)==null||N.observe(t)})),r()}),p&&!g&&x.observe(p),x.observe(t));let E,C=g?ta(e):null;g&&w();function w(){const T=ta(e);C&&!RC(C,T)&&r(),C=T,E=requestAnimationFrame(w)}return r(),()=>{var T;m.forEach(R=>{s&&R.removeEventListener("scroll",r),c&&R.removeEventListener("resize",r)}),y?.(),(T=x)==null||T.disconnect(),x=null,g&&cancelAnimationFrame(E)}}const EA=qP,OA=YP,wA=jP,TA=KP,RA=GP,kA=UP,NA=XP,PA=(e,t,r)=>{const a=new Map,s={platform:xA,...r},c={...s.platform,_c:a};return $P(e,t,{...s,platform:c})};function U0(e=0,t=0,r=0,a=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,a);const s={x:e,y:t,width:r,height:a,top:t,right:e+r,bottom:t+a,left:e};return{...s,toJSON:()=>s}}function AA(e){if(!e)return U0();const{x:t,y:r,width:a,height:s}=e;return U0(t,r,a,s)}function IA(e,t){return{contextElement:Vt(e)?e:void 0,getBoundingClientRect:()=>{const r=e,a=t?.(r);return a||!r?AA(a):r.getBoundingClientRect()}}}var Is=e=>({variable:e,reference:`var(${e})`}),wr={arrowSize:Is("--arrow-size"),arrowSizeHalf:Is("--arrow-size-half"),arrowBg:Is("--arrow-background"),transformOrigin:Is("--transform-origin"),arrowOffset:Is("--arrow-offset")},_A=e=>e==="top"||e==="bottom"?"y":"x";function VA(e,t){return{name:"transformOrigin",fn(r){const{elements:a,middlewareData:s,placement:c,rects:u,y:f}=r,g=c.split("-")[0],p=_A(g),m=s.arrow?.x||0,y=s.arrow?.y||0,v=t?.clientWidth||0,x=t?.clientHeight||0,E=m+v/2,C=y+x/2,w=Math.abs(s.shift?.y||0),T=u.reference.height/2,R=x/2,N=e.offset?.mainAxis??e.gutter,L=typeof N=="number"?N+R:N??R,A=w>L,U={top:`${E}px calc(100% + ${L}px)`,bottom:`${E}px ${-L}px`,left:`calc(100% + ${L}px) ${C}px`,right:`${-L}px ${C}px`}[g],q=`${E}px ${u.reference.y+T-f}px`,_=!!e.overlap&&p==="y"&&A;return a.floating.style.setProperty(wr.transformOrigin.variable,_?q:U),{data:{transformOrigin:_?q:U}}}}}var DA={name:"rects",fn({rects:e}){return{data:e}}},zA=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:a,y:s}=r.arrow,c=t.split("-")[0];return Object.assign(e.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[c]:`calc(100% + ${wr.arrowOffset.reference})`}),{}}}};function MA(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function LA(e){return e.split("-")[0]}var BA={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 Lp(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function FA(e,t,r){const a=e||t.createElement("div");return kA({element:a,padding:r.arrowPadding})}function HA(e,t){if(!yN(t.offset??t.gutter))return EA(({placement:r})=>{const a=(e?.clientHeight||0)/2,s=t.offset?.mainAxis??t.gutter,c=typeof s=="number"?s+a:s??a,{hasAlign:u}=MA(r),f=u?void 0:t.shift,g=t.offset?.crossAxis??f;return fp({crossAxis:g,mainAxis:c,alignmentAxis:t.shift})})}function $A(e){if(!e.flip)return;const t=Lp(e.boundary);return wA({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function UA(e){if(!e.slide&&!e.overlap)return;const t=Lp(e.boundary);return OA({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:NA()})}function jA(e){return TA({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:a,availableWidth:s}){const c=t.floating,u=Math.round(r.reference.width),f=Math.round(r.reference.height);s=Math.floor(s),a=Math.floor(a),c.style.setProperty("--reference-width",`${u}px`),c.style.setProperty("--reference-height",`${f}px`),c.style.setProperty("--available-width",`${s}px`),c.style.setProperty("--available-height",`${a}px`)}})}function GA(e){if(e.hideWhenDetached)return RA({strategy:"referenceHidden",boundary:Lp(e.boundary)??"clippingAncestors"})}function WA(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function qA(e,t,r={}){const a=IA(e,r.getAnchorRect);if(!t||!a)return;const s=Object.assign({},BA,r),c=t.querySelector("[data-part=arrow]"),u=[HA(c,s),$A(s),UA(s),FA(c,t.ownerDocument,s),zA(c),VA({gutter:s.gutter,offset:s.offset,overlap:s.overlap},c),jA(s),GA(s),DA],{placement:f,strategy:g,onComplete:p,onPositioned:m}=s,y=async()=>{if(!a||!t)return;const C=await PA(a,t,{placement:f,middleware:u,strategy:g});p?.(C),m?.({placed:!0});const w=at(t),T=j0(w,C.x),R=j0(w,C.y);t.style.setProperty("--x",`${T}px`),t.style.setProperty("--y",`${R}px`),s.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 L=bo(N);t.style.setProperty("--z-index",L.zIndex)}},v=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:y,floatingElement:t}),m?.({placed:!0})):await y()},x=WA(s.listeners),E=s.listeners?CA(a,t,v,x):RN;return v(),()=>{E?.(),m?.({placed:!1})}}function fn(e,t,r={}){const{defer:a,...s}=r,c=a?ve:f=>f(),u=[];return u.push(c(()=>{const f=typeof e=="function"?e():e,g=typeof t=="function"?t():t;u.push(qA(f,g,s))})),()=>{u.forEach(f=>f?.())}}var YA={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Bp(e={}){const{placement:t,sameWidth:r,fitViewport:a,strategy:s="absolute"}=e;return{arrow:{position:"absolute",width:wr.arrowSize.reference,height:wr.arrowSize.reference,[wr.arrowSizeHalf.variable]:`calc(${wr.arrowSize.reference} / 2)`,[wr.arrowOffset.variable]:`calc(${wr.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?YA[t.split("-")[0]]:void 0,background:wr.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:s,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 XA(e){const t={each(r){for(let a=0;a<e.frames?.length;a+=1){const s=e.frames[a];s&&r(s)}},addEventListener(r,a,s){return t.each(c=>{try{c.document.addEventListener(r,a,s)}catch{}}),()=>{try{t.removeEventListener(r,a,s)}catch{}}},removeEventListener(r,a,s){t.each(c=>{try{c.document.removeEventListener(r,a,s)}catch{}})}};return t}function KA(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,a,s)=>{try{t?.addEventListener(r,a,s)}catch{}return()=>{try{t?.removeEventListener(r,a,s)}catch{}}},removeEventListener:(r,a,s)=>{try{t?.removeEventListener(r,a,s)}catch{}}}}var G0="pointerdown.outside",W0="focus.outside";function QA(e){for(const t of e)if(Vt(t)&&ui(t))return!0;return!1}var kC=e=>"clientY"in e;function ZA(e,t){if(!kC(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 JA(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function q0(e,t){if(!t||!kC(e))return!1;const r=t.scrollHeight>t.clientHeight,a=r&&e.clientX>t.offsetLeft+t.clientWidth,s=t.scrollWidth>t.clientWidth,c=s&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(s?16:0)},f={x:e.clientX,y:e.clientY};return JA(u,f)?a||c:!1}function eI(e,t){const{exclude:r,onFocusOutside:a,onPointerDownOutside:s,onInteractOutside:c,defer:u}=t;if(!e)return;const f=Yt(e),g=at(e),p=XA(g),m=KA(g);function y(R,N){if(!Vt(N)||!N.isConnected||Rr(e,N)||ZA(e,R))return!1;const L=f.querySelector(`[aria-controls="${e.id}"]`);if(L){const U=Pu(L);if(q0(R,U))return!1}const A=Pu(e);return q0(R,A)?!1:!r?.(N)}const v=new Set,x=tl(e?.getRootNode());function E(R){function N(L){const A=u&&!k0()?ve:_=>_(),U=L??R,q=U?.composedPath?.()??[U?.target];A(()=>{const _=x?q[0]:ut(R);if(!(!e||!y(R,_))){if(s||c){const $=ku(s,c);e.addEventListener(G0,$,{once:!0})}Y0(e,G0,{bubbles:!1,cancelable:!0,detail:{originalEvent:U,contextmenu:v2(U),focusable:QA(q),target:_}})}})}R.pointerType==="touch"?(v.forEach(L=>L()),v.add(De(f,"click",N,{once:!0})),v.add(m.addEventListener("click",N,{once:!0})),v.add(p.addEventListener("click",N,{once:!0}))):N()}const C=new Set,w=setTimeout(()=>{C.add(De(f,"pointerdown",E,!0)),C.add(m.addEventListener("pointerdown",E,!0)),C.add(p.addEventListener("pointerdown",E,!0))},0);function T(R){(u?ve:L=>L())(()=>{const L=ut(R);if(!(!e||!y(R,L))){if(a||c){const A=ku(a,c);e.addEventListener(W0,A,{once:!0})}Y0(e,W0,{bubbles:!1,cancelable:!0,detail:{originalEvent:R,contextmenu:!1,focusable:ui(L),target:L}})}})}return k0()||(C.add(De(f,"focusin",T,!0)),C.add(m.addEventListener("focusin",T,!0)),C.add(p.addEventListener("focusin",T,!0))),()=>{clearTimeout(w),v.forEach(R=>R()),C.forEach(R=>R())}}function tI(e,t){const{defer:r}=t,a=r?ve:c=>c(),s=[];return s.push(a(()=>{const c=typeof e=="function"?e():e;s.push(eI(c,t))})),()=>{s.forEach(c=>c?.())}}function Y0(e,t,r){const a=e.ownerDocument.defaultView||window,s=new a.CustomEvent(t,r);return e.dispatchEvent(s)}function nI(e,t){const r=a=>{a.key==="Escape"&&(a.isComposing||t?.(a))};return De(Yt(e),"keydown",r,{capture:!0})}var X0="layer:request-dismiss",Tn={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=>Rr(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Rr(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=>Tn.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];iI(e,X0,s=>{a.requestDismiss?.(s),s.defaultPrevented||a?.dismiss()}),rI(e,X0,{originalLayer:e,targetLayer:t,originalIndex:r,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function rI(e,t,r){const a=e.ownerDocument.defaultView||window,s=new a.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});return e.dispatchEvent(s)}function iI(e,t,r){e.addEventListener(t,r,{once:!0})}var K0;function Q0(){Tn.layers.forEach(({node:e})=>{e.style.pointerEvents=Tn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function aI(e){e.style.pointerEvents=""}function oI(e,t){const r=Yt(e),a=[];return Tn.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(K0=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(s=>{const[c,u]=Z2(()=>{const f=s();return Vt(f)?f:null},{timeout:1e3});c.then(f=>a.push(il(f,{pointerEvents:"auto"}))),a.push(u)}),()=>{Tn.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=K0,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),a.forEach(s=>s()))}}function sI(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){Nu("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:a,onRequestDismiss:s,pointerBlocking:c,exclude:u,debug:f}=t,g={dismiss:a,node:e,pointerBlocking:c,requestDismiss:s};Tn.add(g),Q0();function p(E){const C=ut(E.detail.originalEvent);Tn.isBelowPointerBlockingLayer(e)||Tn.isInBranch(C)||(t.onPointerDownOutside?.(E),t.onInteractOutside?.(E),!E.defaultPrevented&&(f&&console.log("onPointerDownOutside:",E.detail.originalEvent),a?.()))}function m(E){const C=ut(E.detail.originalEvent);Tn.isInBranch(C)||(t.onFocusOutside?.(E),t.onInteractOutside?.(E),!E.defaultPrevented&&(f&&console.log("onFocusOutside:",E.detail.originalEvent),a?.()))}function y(E){Tn.isTopMost(e)&&(t.onEscapeKeyDown?.(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))}function v(E){if(!e)return!1;const C=typeof u=="function"?u():u,w=Array.isArray(C)?C:[C],T=t.persistentElements?.map(R=>R()).filter(Vt);return T&&w.push(...T),w.some(R=>Rr(R,E))||Tn.isInNestedLayer(e,E)}const x=[c?oI(e,t.persistentElements):void 0,nI(e,y),tI(e,{exclude:v,onFocusOutside:m,onPointerDownOutside:p,defer:t.defer})];return()=>{Tn.remove(e),Q0(),aI(e),x.forEach(E=>E?.())}}function aa(e,t){const{defer:r}=t,a=r?ve:c=>c(),s=[];return s.push(a(()=>{const c=Xi(e)?e():e;s.push(sI(c,t))})),()=>{s.forEach(c=>c?.())}}var NC=pe("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"]);NC.build();var lI=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,cI=e=>e.ids?.control??`color-picker:${e.id}:control`,uI=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,dI=e=>e.ids?.content??`color-picker:${e.id}:content`,fI=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,hI=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,gI=e=>e.ids?.area??`color-picker:${e.id}:area`,pI=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,mI=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,vI=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,yu=e=>e.getById(dI(e)),bI=e=>e.getById(pI(e)),yI=(e,t)=>e.getById(vI(e,t)),xI=e=>e.getById(hI(e)),Z0=e=>e.getById(lI(e)),SI=e=>e.getById(gI(e)),CI=(e,t,r)=>{const a=SI(e);if(!a)return;const{getPercentValue:s}=nC(t,a);return{x:s({dir:r,orientation:"horizontal"}),y:s({orientation:"vertical"})}},EI=e=>e.getById(cI(e)),Yh=e=>e.getById(uI(e)),OI=e=>e.getById(fI(e)),wI=(e,t)=>e.getById(mI(e,t)),TI=(e,t,r,a)=>{const s=wI(e,r);if(!s)return;const{getPercentValue:c}=nC(t,s);return{x:c({dir:a,orientation:"horizontal"}),y:c({orientation:"vertical"})}},RI=e=>[...rl(yu(e),"input[data-channel]"),...rl(EI(e),"input[data-channel]")];function kI(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 J0=e=>_u(e),NI=/^[0-9a-fA-F]{3,8}$/;function PI(e){return NI.test(e)}function AI(e){return e.startsWith("#")?e:PI(e)?`#${e}`:e}var{and:II}=Jn();II("isOpenControlled","closeOnSelect");function ex(e,t,r){const a=RI(e);ve(()=>{a.forEach(s=>{const c=s.dataset.channel;Zu(s,kI(r||t,c))})})}function _I(e,t){const r=xI(e);r&&ve(()=>Zu(r,t))}ge()(["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"]);ge()(["xChannel","yChannel"]);ge()(["channel","orientation"]);ge()(["value","disabled"]);ge()(["value","respectAlpha"]);ge()(["size"]);const[id,PC]=kt({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),ad=e=>Nt()(e,["lazyMount","unmountOnExit"]),AC=O.forwardRef((e,t)=>{const r=hC();if(r.isUnmounted)return null;const a=ae(r.getContentProps(),e);return z.jsx(ce.div,{...a,ref:t})});AC.displayName="CollapsibleContent";var IC=pe("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");IC.build();var _C=e=>e.ids?.root??`accordion:${e.id}`,VC=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,VI=e=>e.getById(_C(e)),od=e=>{const r=`[aria-controls][data-ownedby='${CSS.escape(_C(e))}']:not([disabled])`;return rl(VI(e),r)},DI=e=>go(od(e)),zI=e=>qu(od(e)),MI=(e,t)=>oC(od(e),VC(e,t)),LI=(e,t)=>sC(od(e),VC(e,t)),{and:BI,not:FI}=Jn();BI("isExpanded","canToggle"),FI("isExpanded");ge()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);ge()(["value","disabled"]);var js=(e,t)=>({x:e,y:t});function HI(e){const{x:t,y:r,width:a,height:s}=e,c=t+a/2,u=r+s/2;return{x:t,y:r,width:a,height:s,minX:t,minY:r,maxX:t+a,maxY:r+s,midX:c,midY:u,center:js(c,u)}}function $I(e){const t=js(e.minX,e.minY),r=js(e.maxX,e.minY),a=js(e.maxX,e.maxY),s=js(e.minX,e.maxY);return{top:t,right:r,bottom:a,left:s}}function UI(e,t){const r=HI(e),{top:a,right:s,left:c,bottom:u}=$I(r),[f]=t.split("-");return{top:[c,a,s,u],right:[a,s,u,c],bottom:[a,c,u,s],left:[s,a,c,u]}[f]}function jI(e,t){const{x:r,y:a}=t;let s=!1;for(let c=0,u=e.length-1;c<e.length;u=c++){const f=e[c].x,g=e[c].y,p=e[u].x,m=e[u].y;g>a!=m>a&&r<(p-f)*(a-g)/(m-g)+f&&(s=!s)}return s}var DC=pe("avatar").parts("root","image","fallback");DC.build();ge()(["dir","id","ids","onStatusChange","getRootNode"]);const[zC,sd]=kt({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),MC=O.forwardRef((e,t)=>{const r=sd(),a=ae(r.getControlProps(),e);return z.jsx(ce.div,{...a,ref:t})});MC.displayName="CheckboxControl";function GI(e){return!(e.metaKey||!hl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var WI=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qI(e,t,r){const a=r?ut(r):null,s=at(a);return e=e||a instanceof s.HTMLInputElement&&!WI.has(a?.type)||a instanceof s.HTMLTextAreaElement||a instanceof s.HTMLElement&&a.isContentEditable,!(e&&t==="keyboard"&&r instanceof s.KeyboardEvent&&!Reflect.has(YI,r.key))}var oa=null,xg=new Set,Ys=new Map,na=!1,Sg=!1,YI={Tab:!0,Escape:!0};function ld(e,t){for(let r of xg)r(e,t)}function Mu(e){na=!0,GI(e)&&(oa="keyboard",ld("keyboard",e))}function kn(e){oa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(na=!0,ld("pointer",e))}function LC(e){m2(e)&&(na=!0,oa="virtual")}function BC(e){const t=ut(e);t===at(t)||t===Yt(t)||(!na&&!Sg&&(oa="virtual",ld("virtual",e)),na=!1,Sg=!1)}function FC(){na=!1,Sg=!0}function XI(e){if(typeof window>"u"||Ys.get(at(e)))return;const t=at(e),r=Yt(e);let a=t.HTMLElement.prototype.focus;function s(){oa="virtual",ld("virtual",null),na=!0,a.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:s}),r.addEventListener("keydown",Mu,!0),r.addEventListener("keyup",Mu,!0),r.addEventListener("click",LC,!0),t.addEventListener("focus",BC,!0),t.addEventListener("blur",FC,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",kn,!0),r.addEventListener("pointermove",kn,!0),r.addEventListener("pointerup",kn,!0)):(r.addEventListener("mousedown",kn,!0),r.addEventListener("mousemove",kn,!0),r.addEventListener("mouseup",kn,!0)),t.addEventListener("beforeunload",()=>{KI(e)},{once:!0}),Ys.set(t,{focus:a})}var KI=(e,t)=>{const r=at(e),a=Yt(e);Ys.has(r)&&(r.HTMLElement.prototype.focus=Ys.get(r).focus,a.removeEventListener("keydown",Mu,!0),a.removeEventListener("keyup",Mu,!0),a.removeEventListener("click",LC,!0),r.removeEventListener("focus",BC,!0),r.removeEventListener("blur",FC,!1),typeof r.PointerEvent<"u"?(a.removeEventListener("pointerdown",kn,!0),a.removeEventListener("pointermove",kn,!0),a.removeEventListener("pointerup",kn,!0)):(a.removeEventListener("mousedown",kn,!0),a.removeEventListener("mousemove",kn,!0),a.removeEventListener("mouseup",kn,!0)),Ys.delete(r))};function sl(){return oa==="keyboard"}function Fp(e={}){const{isTextInput:t,autoFocus:r,onChange:a,root:s}=e;XI(s),a?.({isFocusVisible:r||sl(),modality:oa});const c=(u,f)=>{qI(!!t,u,f)&&a?.({isFocusVisible:sl(),modality:u})};return xg.add(c),()=>{xg.delete(c)}}var HC=pe("checkbox").parts("root","label","control","indicator"),Xc=HC.build(),$C=e=>e.ids?.root??`checkbox:${e.id}`,tx=e=>e.ids?.label??`checkbox:${e.id}:label`,QI=e=>e.ids?.control??`checkbox:${e.id}:control`,Cg=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,ZI=e=>e.getById($C(e)),Gs=e=>e.getById(Cg(e));function JI(e,t){const{send:r,context:a,prop:s,computed:c,scope:u}=e,f=s("disabled"),g=s("readOnly"),p=s("invalid"),m=!f&&a.get("focused"),y=!f&&a.get("focusVisible"),v=c("checked"),x=c("indeterminate"),E={"data-active":ye(a.get("active")),"data-focus":ye(m),"data-focus-visible":ye(y),"data-readonly":ye(g),"data-hover":ye(a.get("hovered")),"data-disabled":ye(f),"data-state":x?"indeterminate":v?"checked":"unchecked","data-invalid":ye(p)};return{checked:v,disabled:f,indeterminate:x,focused:m,checkedState:v,setChecked(C){r({type:"CHECKED.SET",checked:C,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:v,isTrusted:!1})},getRootProps(){return t.label({...Xc.root.attrs,...E,dir:s("dir"),id:$C(u),htmlFor:Cg(u),onPointerMove(){f||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){f||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(C){ut(C)===Gs(u)&&C.stopPropagation()}})},getLabelProps(){return t.element({...Xc.label.attrs,...E,dir:s("dir"),id:tx(u)})},getControlProps(){return t.element({...Xc.control.attrs,...E,dir:s("dir"),id:QI(u),"aria-hidden":!0})},getIndicatorProps(){return t.element({...Xc.indicator.attrs,...E,dir:s("dir"),hidden:!x&&!v})},getHiddenInputProps(){return t.input({id:Cg(u),type:"checkbox",required:s("required"),defaultChecked:v,disabled:f,"aria-labelledby":tx(u),"aria-invalid":p,name:s("name"),form:s("form"),value:s("value"),style:Op,onFocus(){const C=sl();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:C}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(C){if(g){C.preventDefault();return}const w=C.currentTarget.checked;r({type:"CHECKED.SET",checked:w,isTrusted:!0})}})}}}var{not:nx}=Jn(),e_={props({props:e}){return{value:"on",...e,defaultChecked:!!e.defaultChecked}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(r){e("onCheckedChange")?.({checked:r})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,prop:r,action:a}){e([()=>r("disabled")],()=>{a(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{a(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:nx("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:nx("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>xu(e.get("checked")),checked:({context:e})=>t_(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:r}){if(!t("disabled"))return iC({pointerNode:ZI(r),keyboardNode:Gs(r),isValidKey:a=>a.key===" ",onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return Fp({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return pl(Gs(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,computed:t,scope:r}){const a=Gs(r);a&&(vp(a,t("checked")),a.indeterminate=xu(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const r=xu(t("checked"))?!0:!t("checked");e.set("checked",r)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const r=Gs(t);ZS(r,{checked:e("checked")})})}}}};function xu(e){return e==="indeterminate"}function t_(e){return xu(e)?!1:!!e}ge()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const UC=HC.extendWith("group");function n_(e){const{value:t,onChange:r,defaultValue:a}=e,[s,c]=O.useState(a),u=t!==void 0,f=u?t:s,g=O.useCallback(p=>(u||c(p),r?.(p)),[u,r]);return[f,g]}function r_(e={}){const{defaultValue:t,value:r,onValueChange:a,disabled:s,readOnly:c,name:u,invalid:f}=e,g=!(s||c),p=uC(a,{sync:!0}),[m,y]=n_({value:r,defaultValue:t||[],onChange:p}),v=T=>m.some(R=>String(R)===String(T)),x=T=>{v(T)?C(T):E(T)},E=T=>{g&&(v(T)||y(m.concat(T)))},C=T=>{g&&y(m.filter(R=>String(R)!==String(T)))};return{isChecked:v,value:m,name:u,disabled:!!s,readOnly:!!c,invalid:!!f,setValue:y,addValue:E,toggleValue:x,getItemProps:T=>({checked:T.value!=null?v(T.value):void 0,onCheckedChange(){T.value!=null&&x(T.value)},name:u,disabled:s,readOnly:c,invalid:f})}}const[i_,a_]=kt({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),jC=O.forwardRef((e,t)=>{const[r,a]=Nt()(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),s=r_(r);return z.jsx(i_,{value:s,children:z.jsx(ce.div,{ref:t,role:"group",...a,...UC.build().group.attrs})})});jC.displayName="CheckboxGroup";const[eB,sa]=kt({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),GC=O.forwardRef((e,t)=>{const r=sd(),a=ae(r.getHiddenInputProps(),e),s=sa();return z.jsx(ce.input,{"aria-describedby":s?.ariaDescribedby,...a,ref:t})});GC.displayName="CheckboxHiddenInput";const WC=O.forwardRef((e,t)=>{const r=sd(),a=ae(r.getLabelProps(),e);return z.jsx(ce.span,{...a,ref:t})});WC.displayName="CheckboxLabel";const o_=(e={})=>{const t=a_(),r=sa(),a=O.useMemo(()=>ae(e,t?.getItemProps({value:e.value})??{}),[e,t]),s=O.useId(),{getRootNode:c}=pi(),{dir:u}=vi(),f={id:s,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:u,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:c,...a},g=_r(e_,f);return JI(g,yi)},qC=O.forwardRef((e,t)=>{const[r,a]=Nt()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),s=o_(r),c=ae(s.getRootProps(),a);return z.jsx(zC,{value:s,children:z.jsx(ce.label,{...c,ref:t})})});qC.displayName="CheckboxRoot";const YC=O.forwardRef((e,t)=>{const[{value:r},a]=Nt()(e,["value"]),s=ae(r.getRootProps(),a);return z.jsx(zC,{value:r,children:z.jsx(ce.label,{...s,ref:t})})});YC.displayName="CheckboxRootProvider";var XC=pe("clipboard").parts("root","control","trigger","indicator","input","label");XC.build();ge()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);ge()(["copied"]);const KC=O.forwardRef((e,t)=>{const[{value:r},a]=Nt()(e,["value"]),s=ae(r.getRootProps(),a);return z.jsx(fC,{value:r,children:z.jsx(ce.div,{...s,ref:t})})});KC.displayName="CollapsibleRootProvider";const QC=O.forwardRef((e,t)=>{const r=hC(),a=ae(r.getTriggerProps(),e);return z.jsx(ce.button,{...a,ref:t})});QC.displayName="CollapsibleTrigger";const s_=NC.extendWith("view");var l_=Object.defineProperty,c_=(e,t,r)=>t in e?l_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t,r)=>c_(e,typeof t!="symbol"?t+"":t,r),Su={itemToValue(e){return typeof e=="string"?e:Yi(e)&&ci(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Yi(e)&&ci(e,"label")?e.label:Su.itemToValue(e)},isItemDisabled(e){return Yi(e)&&ci(e,"disabled")?!!e.disabled:!1}},cd=class ZC{constructor(t){this.options=t,J(this,"items"),J(this,"indexMap",null),J(this,"copy",r=>new ZC({...this.options,items:r??[...this.items]})),J(this,"isEqual",r=>Vn(this.items,r.items)),J(this,"setItems",r=>this.copy(r)),J(this,"getValues",(r=this.items)=>{const a=[];for(const s of r){const c=this.getItemValue(s);c!=null&&a.push(c)}return a}),J(this,"find",r=>{if(r==null)return null;const a=this.indexOf(r);return a!==-1?this.at(a):null}),J(this,"findMany",r=>{const a=[];for(const s of r){const c=this.find(s);c!=null&&a.push(c)}return a}),J(this,"at",r=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[r]??null;let a=0;const s=this.group();for(const[,c]of s)for(const u of c){if(a===r)return u;a++}return null}),J(this,"sortFn",(r,a)=>{const s=this.indexOf(r),c=this.indexOf(a);return(s??0)-(c??0)}),J(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),J(this,"getItemValue",r=>r==null?null:this.options.itemToValue?.(r)??Su.itemToValue(r)),J(this,"getItemDisabled",r=>r==null?!1:this.options.isItemDisabled?.(r)??Su.isItemDisabled(r)),J(this,"stringifyItem",r=>r==null?null:this.options.itemToString?.(r)??Su.itemToString(r)),J(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),J(this,"stringifyItems",(r,a=", ")=>{const s=[];for(const c of r){const u=this.stringifyItem(c);u!=null&&s.push(u)}return s.join(a)}),J(this,"stringifyMany",(r,a)=>this.stringifyItems(this.findMany(r),a)),J(this,"has",r=>this.indexOf(r)!==-1),J(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),J(this,"group",()=>{const{groupBy:r,groupSort:a}=this.options;if(!r)return[["",[...this.items]]];const s=new Map;this.items.forEach((u,f)=>{const g=r(u,f);s.has(g)||s.set(g,[]),s.get(g).push(u)});let c=Array.from(s.entries());return a&&c.sort(([u],[f])=>{if(typeof a=="function")return a(u,f);if(Array.isArray(a)){const g=a.indexOf(u),p=a.indexOf(f);return g===-1?1:p===-1?-1:g-p}return a==="asc"?u.localeCompare(f):a==="desc"?f.localeCompare(u):0}),c}),J(this,"getNextValue",(r,a=1,s=!1)=>{let c=this.indexOf(r);if(c===-1)return null;for(c=s?Math.min(c+a,this.size-1):c+a;c<=this.size&&this.getItemDisabled(this.at(c));)c++;return this.getItemValue(this.at(c))}),J(this,"getPreviousValue",(r,a=1,s=!1)=>{let c=this.indexOf(r);if(c===-1)return null;for(c=s?Math.max(c-a,0):c-a;c>=0&&this.getItemDisabled(this.at(c));)c--;return this.getItemValue(this.at(c))}),J(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 s=this.group();for(const[,c]of s)for(const u of c){const f=this.getItemValue(u);f!=null&&this.indexMap.set(f,a),a++}}return this.indexMap.get(r)??-1}),J(this,"getByText",(r,a)=>{const s=a!=null?this.indexOf(a):-1,c=r.length===1;for(let u=0;u<this.items.length;u++){const f=this.items[(s+u+1)%this.items.length];if(!(c&&this.getItemValue(f)===a)&&!this.getItemDisabled(f)&&u_(this.stringifyItem(f),r))return f}}),J(this,"search",(r,a)=>{const{state:s,currentValue:c,timeout:u=350}=a,f=s.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 v(){clearTimeout(s.timer),s.timer=-1}function x(E){s.keysSoFar=E,v(),E!==""&&(s.timer=+setTimeout(()=>{x(""),v()},u))}return x(f),y}),J(this,"update",(r,a)=>{let s=this.indexOf(r);return s===-1?this:this.copy([...this.items.slice(0,s),a,...this.items.slice(s+1)])}),J(this,"upsert",(r,a,s="append")=>{let c=this.indexOf(r);return c===-1?(s==="append"?this.append:this.prepend)(a):this.copy([...this.items.slice(0,c),a,...this.items.slice(c+1)])}),J(this,"insert",(r,...a)=>this.copy(_s(this.items,r,...a))),J(this,"insertBefore",(r,...a)=>{let s=this.indexOf(r);if(s===-1)if(this.items.length===0)s=0;else return this;return this.copy(_s(this.items,s,...a))}),J(this,"insertAfter",(r,...a)=>{let s=this.indexOf(r);if(s===-1)if(this.items.length===0)s=0;else return this;return this.copy(_s(this.items,s+1,...a))}),J(this,"prepend",(...r)=>this.copy(_s(this.items,0,...r))),J(this,"append",(...r)=>this.copy(_s(this.items,this.items.length,...r))),J(this,"filter",r=>{const a=this.items.filter((s,c)=>r(this.stringifyItem(s),c,s));return this.copy(a)}),J(this,"remove",(...r)=>{const a=r.map(s=>typeof s=="string"?s:this.getItemValue(s));return this.copy(this.items.filter(s=>{const c=this.getItemValue(s);return c==null?!1:!a.includes(c)}))}),J(this,"move",(r,a)=>{const s=this.indexOf(r);return s===-1?this:this.copy(Kc(this.items,[s],a))}),J(this,"moveBefore",(r,...a)=>{let s=this.items.findIndex(u=>this.getItemValue(u)===r);if(s===-1)return this;let c=a.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(Kc(this.items,c,s))}),J(this,"moveAfter",(r,...a)=>{let s=this.items.findIndex(u=>this.getItemValue(u)===r);if(s===-1)return this;let c=a.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(Kc(this.items,c,s+1))}),J(this,"reorder",(r,a)=>this.copy(Kc(this.items,[r],a))),J(this,"compareValue",(r,a)=>{const s=this.indexOf(r),c=this.indexOf(a);return s<c?-1:s>c?1:0}),J(this,"range",(r,a)=>{let s=[],c=r;for(;c!=null;){if(this.find(c)&&s.push(c),c===a)return s;c=this.getNextValue(c)}return[]}),J(this,"getValueRange",(r,a)=>r&&a?this.compareValue(r,a)<=0?this.range(r,a):this.range(a,r):[]),J(this,"toString",()=>{let r="";for(const a of this.items){const s=this.getItemValue(a),c=this.stringifyItem(a),u=this.getItemDisabled(a),f=[s,c,u].filter(Boolean).join(":");r+=f+","}return r}),J(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}},u_=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function _s(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function Kc(e,t,r){t=[...t].sort((s,c)=>s-c);const a=t.map(s=>e[s]);for(let s=t.length-1;s>=0;s--)e=[...e.slice(0,t[s]),...e.slice(t[s]+1)];return r=Math.max(0,r-t.filter(s=>s<r).length),[...e.slice(0,r),...a,...e.slice(r)]}function JC(e,t,r){for(let a=0;a<t.length;a++)e=r.getChildren(e,t.slice(a+1))[t[a]];return e}function d_(e){const t=f_(e),r=[],a=new Set;for(const s of t){const c=s.join();a.has(c)||(a.add(c),r.push(s))}return r}function e1(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 f_(e){return e.sort(e1)}function h_(e,t){let r;return ln(e,{...t,onEnter:(a,s)=>{if(t.predicate(a,s))return r=a,"stop"}}),r}function g_(e,t){const r=[];return ln(e,{onEnter:(a,s)=>{t.predicate(a,s)&&r.push(a)},getChildren:t.getChildren}),r}function rx(e,t){let r;return ln(e,{onEnter:(a,s)=>{if(t.predicate(a,s))return r=[...s],"stop"},getChildren:t.getChildren}),r}function p_(e,t){let r=t.initialResult;return ln(e,{...t,onEnter:(a,s)=>{r=t.nextResult(r,a,s)}}),r}function m_(e,t){return p_(e,{...t,initialResult:[],nextResult:(r,a,s)=>(r.push(...t.transform(a,s)),r)})}function v_(e,t){const{predicate:r,create:a,getChildren:s}=t,c=(u,f)=>{const g=s(u,f),p=[];g.forEach((x,E)=>{const C=[...f,E],w=c(x,C);w&&p.push(w)});const m=f.length===0,y=r(u,f),v=p.length>0;return m||y||v?a(u,p,f):null};return c(e,[])||a(e,[],[])}function b_(e,t){const r=[];let a=0;const s=new Map,c=new Map;return ln(e,{getChildren:t.getChildren,onEnter:(u,f)=>{s.has(u)||s.set(u,a++);const g=t.getChildren(u,f);g.forEach(x=>{c.has(x)||c.set(x,u),s.has(x)||s.set(x,a++)});const p=g.length>0?g.map(x=>s.get(x)):void 0,m=c.get(u),y=m?s.get(m):void 0,v=s.get(u);r.push({...u,_children:p,_parent:y,_index:v})}}),r}function y_(e,t){return{type:"insert",index:e,nodes:t}}function x_(e){return{type:"remove",indexes:e}}function Hp(){return{type:"replace"}}function t1(e){return[e.slice(0,-1),e[e.length-1]]}function n1(e,t,r=new Map){const[a,s]=t1(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,Hp())}const c=r.get(a.join());switch(c?.type){case"remove":r.set(a.join(),{type:"removeThenInsert",removeIndexes:c.indexes,insertIndex:s,insertNodes:t});break;default:r.set(a.join(),y_(s,t))}return r}function r1(e){const t=new Map,r=new Map;for(const a of e){const s=a.slice(0,-1).join(),c=r.get(s)??[];c.push(a[a.length-1]),r.set(s,c.sort((u,f)=>u-f))}for(const a of e)for(let s=a.length-2;s>=0;s--){const c=a.slice(0,s).join();t.has(c)||t.set(c,Hp())}for(const[a,s]of r)t.set(a,x_(s));return t}function S_(e,t){const r=new Map,[a,s]=t1(e);for(let c=a.length-1;c>=0;c--){const u=a.slice(0,c).join();r.set(u,Hp())}return r.set(a.join(),{type:"removeThenInsert",removeIndexes:[s],insertIndex:s,insertNodes:[t]}),r}function ud(e,t,r){return C_(e,{...r,getChildren:(a,s)=>{const c=s.join();switch(t.get(c)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(a,s);default:return[]}},transform:(a,s,c)=>{const u=c.join(),f=t.get(u);switch(f?.type){case"remove":return r.create(a,s.filter((m,y)=>!f.indexes.includes(y)),c);case"removeThenInsert":const g=s.filter((m,y)=>!f.removeIndexes.includes(y)),p=f.removeIndexes.reduce((m,y)=>y<m?m-1:m,f.insertIndex);return r.create(a,ix(g,p,0,...f.insertNodes),c);case"insert":return r.create(a,ix(s,f.index,0,...f.nodes),c);case"replace":return r.create(a,s,c);default:return a}}})}function ix(e,t,r,...a){return[...e.slice(0,t),...a,...e.slice(t+r)]}function C_(e,t){const r={};return ln(e,{...t,onLeave:(a,s)=>{const c=[0,...s],u=c.join(),f=t.transform(a,r[u]??[],s),g=c.slice(0,-1).join(),p=r[g]??[];p.push(f),r[g]=p}}),r[""][0]}function E_(e,t){const{nodes:r,at:a}=t;if(a.length===0)throw new Error("Can't insert nodes at the root");const s=n1(a,r);return ud(e,s,t)}function O_(e,t){if(t.at.length===0)return t.node;const r=S_(t.at,t.node);return ud(e,r,t)}function w_(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=r1(t.indexPaths);return ud(e,r,t)}function T_(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=d_(t.indexPaths),a=r.map(c=>JC(e,c,t)),s=n1(t.to,a,r1(r));return ud(e,s,t)}function ln(e,t){const{onEnter:r,onLeave:a,getChildren:s}=t;let c=[],u=[{node:e}];const f=t.reuseIndexPath?()=>c:()=>c.slice();for(;u.length>0;){let g=u[u.length-1];if(g.state===void 0){const m=r?.(g.node,f());if(m==="stop")return;g.state=m==="skip"?-1:0}const p=g.children||s(g.node,f());if(g.children||(g.children=p),g.state!==-1){if(g.state<p.length){let y=g.state;c.push(y),u.push({node:p[y]}),g.state=y+1;continue}if(a?.(g.node,f())==="stop")return}c.pop(),u.pop()}}var i1=class a1{constructor(t){this.options=t,J(this,"rootNode"),J(this,"isEqual",r=>Vn(this.rootNode,r.rootNode)),J(this,"getNodeChildren",r=>this.options.nodeToChildren?.(r)??no.nodeToChildren(r)??[]),J(this,"resolveIndexPath",r=>typeof r=="string"?this.getIndexPath(r):r),J(this,"resolveNode",r=>{const a=this.resolveIndexPath(r);return a?this.at(a):void 0}),J(this,"getNodeChildrenCount",r=>this.options.nodeToChildrenCount?.(r)??no.nodeToChildrenCount(r)),J(this,"getNodeValue",r=>this.options.nodeToValue?.(r)??no.nodeToValue(r)),J(this,"getNodeDisabled",r=>this.options.isNodeDisabled?.(r)??no.isNodeDisabled(r)),J(this,"stringify",r=>{const a=this.findNode(r);return a?this.stringifyNode(a):null}),J(this,"stringifyNode",r=>this.options.nodeToString?.(r)??no.nodeToString(r)),J(this,"getFirstNode",(r=this.rootNode)=>{let a;return ln(r,{getChildren:this.getNodeChildren,onEnter:(s,c)=>{if(!a&&c.length>0&&!this.getNodeDisabled(s))return a=s,"stop"}}),a}),J(this,"getLastNode",(r=this.rootNode,a={})=>{let s;return ln(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)&&(s=c)}}}),s}),J(this,"at",r=>JC(this.rootNode,r,{getChildren:this.getNodeChildren})),J(this,"findNode",(r,a=this.rootNode)=>h_(a,{getChildren:this.getNodeChildren,predicate:s=>this.getNodeValue(s)===r})),J(this,"findNodes",(r,a=this.rootNode)=>{const s=new Set(r.filter(c=>c!=null));return g_(a,{getChildren:this.getNodeChildren,predicate:c=>s.has(this.getNodeValue(c))})}),J(this,"sort",r=>r.reduce((a,s)=>{const c=this.getIndexPath(s);return c&&a.push({value:s,indexPath:c}),a},[]).sort((a,s)=>e1(a.indexPath,s.indexPath)).map(({value:a})=>a)),J(this,"getIndexPath",r=>rx(this.rootNode,{getChildren:this.getNodeChildren,predicate:a=>this.getNodeValue(a)===r})),J(this,"getValue",r=>{const a=this.at(r);return a?this.getNodeValue(a):void 0}),J(this,"getValuePath",r=>{if(!r)return[];const a=[];let s=[...r];for(;s.length>0;){const c=this.at(s);c&&a.unshift(this.getNodeValue(c)),s.pop()}return a}),J(this,"getDepth",r=>rx(this.rootNode,{getChildren:this.getNodeChildren,predicate:s=>this.getNodeValue(s)===r})?.length??0),J(this,"isSameNode",(r,a)=>this.getNodeValue(r)===this.getNodeValue(a)),J(this,"isRootNode",r=>this.isSameNode(r,this.rootNode)),J(this,"contains",(r,a)=>!r||!a?!1:a.slice(0,r.length).every((s,c)=>r[c]===a[c])),J(this,"getNextNode",(r,a={})=>{let s=!1,c;return ln(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(a.skip?.({value:g,node:u,indexPath:f}))return g===r&&(s=!0),"skip";if(s&&!this.getNodeDisabled(u))return c=u,"stop";g===r&&(s=!0)}}),c}),J(this,"getPreviousNode",(r,a={})=>{let s,c=!1;return ln(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(a.skip?.({value:g,node:u,indexPath:f}))return"skip";if(g===r)return c=!0,"stop";this.getNodeDisabled(u)||(s=u)}}),c?s:void 0}),J(this,"getParentNodes",r=>{const a=this.resolveIndexPath(r)?.slice();if(!a)return[];const s=[];for(;a.length>0;){a.pop();const c=this.at(a);c&&!this.isRootNode(c)&&s.unshift(c)}return s}),J(this,"getDescendantNodes",(r,a)=>{const s=this.resolveNode(r);if(!s)return[];const c=[];return ln(s,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{f.length!==0&&(!a?.withBranch&&this.isBranchNode(u)||c.push(u))}}),c}),J(this,"getDescendantValues",(r,a)=>this.getDescendantNodes(r,a).map(c=>this.getNodeValue(c))),J(this,"getParentIndexPath",r=>r.slice(0,-1)),J(this,"getParentNode",r=>{const a=this.resolveIndexPath(r);return a?this.at(this.getParentIndexPath(a)):void 0}),J(this,"visit",r=>{const{skip:a,...s}=r;ln(this.rootNode,{...s,getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(!this.isRootNode(c))return a?.({value:this.getNodeValue(c),node:c,indexPath:u})?"skip":s.onEnter?.(c,u)}})}),J(this,"getPreviousSibling",r=>{const a=this.getParentNode(r);if(!a)return;const s=this.getNodeChildren(a);let c=r[r.length-1];for(;--c>=0;){const u=s[c];if(!this.getNodeDisabled(u))return u}}),J(this,"getNextSibling",r=>{const a=this.getParentNode(r);if(!a)return;const s=this.getNodeChildren(a);let c=r[r.length-1];for(;++c<s.length;){const u=s[c];if(!this.getNodeDisabled(u))return u}}),J(this,"getSiblingNodes",r=>{const a=this.getParentNode(r);return a?this.getNodeChildren(a):[]}),J(this,"getValues",(r=this.rootNode)=>m_(r,{getChildren:this.getNodeChildren,transform:s=>[this.getNodeValue(s)]}).slice(1)),J(this,"isValidDepth",(r,a)=>a==null?!0:typeof a=="function"?a(r.length):r.length===a),J(this,"isBranchNode",r=>this.getNodeChildren(r).length>0||this.getNodeChildrenCount(r)!=null),J(this,"getBranchValues",(r=this.rootNode,a={})=>{let s=[];return ln(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)&&s.push(this.getNodeValue(c))}}),s}),J(this,"flatten",(r=this.rootNode)=>b_(r,{getChildren:this.getNodeChildren})),J(this,"_create",(r,a)=>this.getNodeChildren(r).length>0||a.length>0?{...r,children:a}:{...r}),J(this,"_insert",(r,a,s)=>this.copy(E_(r,{at:a,nodes:s,getChildren:this.getNodeChildren,create:this._create}))),J(this,"copy",r=>new a1({...this.options,rootNode:r})),J(this,"_replace",(r,a,s)=>this.copy(O_(r,{at:a,node:s,getChildren:this.getNodeChildren,create:this._create}))),J(this,"_move",(r,a,s)=>this.copy(T_(r,{indexPaths:a,to:s,getChildren:this.getNodeChildren,create:this._create}))),J(this,"_remove",(r,a)=>this.copy(w_(r,{indexPaths:a,getChildren:this.getNodeChildren,create:this._create}))),J(this,"replace",(r,a)=>this._replace(this.rootNode,r,a)),J(this,"remove",r=>this._remove(this.rootNode,r)),J(this,"insertBefore",(r,a)=>this.getParentNode(r)?this._insert(this.rootNode,r,a):void 0),J(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)}),J(this,"move",(r,a)=>this._move(this.rootNode,r,a)),J(this,"filter",r=>{const a=v_(this.rootNode,{predicate:r,getChildren:this.getNodeChildren,create:this._create});return this.copy(a)}),J(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},no={nodeToValue(e){return typeof e=="string"?e:Yi(e)&&ci(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Yi(e)&&ci(e,"label")?e.label:no.nodeToValue(e)},isNodeDisabled(e){return Yi(e)&&ci(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Yi(e)&&ci(e,"childrenCount"))return e.childrenCount}},Ka=new WeakMap,Qc=new WeakMap,Zc={},Xh=0,o1=e=>e&&(e.host||o1(e.parentNode)),R_=(e,t)=>t.map(r=>{if(e.contains(r))return r;const a=o1(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),k_=new Set(["script","output","status","next-route-announcer"]),N_=e=>k_.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),P_=(e,t)=>{const{parentNode:r,markerName:a,controlAttribute:s}=t,c=R_(r,Array.isArray(e)?e:[e]);Zc[a]||(Zc[a]=new WeakMap);const u=Zc[a],f=[],g=new Set,p=new Set(c),m=v=>{!v||g.has(v)||(g.add(v),m(v.parentNode))};c.forEach(m);const y=v=>{!v||p.has(v)||Array.prototype.forEach.call(v.children,x=>{if(g.has(x))y(x);else try{if(N_(x))return;const C=x.getAttribute(s)==="true",w=(Ka.get(x)||0)+1,T=(u.get(x)||0)+1;Ka.set(x,w),u.set(x,T),f.push(x),w===1&&C&&Qc.set(x,!0),T===1&&x.setAttribute(a,""),C||x.setAttribute(s,"true")}catch(E){console.error("[zag-js > ariaHidden] cannot operate on ",x,E)}})};return y(r),g.clear(),Xh++,()=>{f.forEach(v=>{const x=Ka.get(v)-1,E=u.get(v)-1;Ka.set(v,x),u.set(v,E),x||(Qc.has(v)||v.removeAttribute(s),Qc.delete(v)),E||v.removeAttribute(a)}),Xh--,Xh||(Ka=new WeakMap,Ka=new WeakMap,Qc=new WeakMap,Zc={})}},A_=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,I_=(e,t=A_(e),r="data-aria-hidden")=>{if(t)return P_(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},__=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function $p(e,t={}){const{defer:r=!0}=t,a=r?__:c=>c(),s=[];return s.push(a(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&s.push(I_(u))})),()=>{s.forEach(c=>c?.())}}var s1=pe("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");s1.build();var l1=e=>new cd(e);l1.empty=()=>new cd({items:[]});var V_=e=>e.ids?.control??`combobox:${e.id}:control`,D_=e=>e.ids?.input??`combobox:${e.id}:input`,z_=e=>e.ids?.content??`combobox:${e.id}:content`,M_=e=>e.ids?.positioner??`combobox:${e.id}:popper`,L_=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,B_=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,oi=e=>e.getById(z_(e)),ro=e=>e.getById(D_(e)),ax=e=>e.getById(M_(e)),ox=e=>e.getById(V_(e)),Ws=e=>e.getById(L_(e)),sx=e=>e.getById(B_(e)),Vs=(e,t)=>{if(t==null)return null;const r=`[role=option][data-value="${CSS.escape(t)}"]`;return $2(oi(e),r)},lx=e=>{const t=ro(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},F_=e=>{const t=Ws(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:H_,createMachine:$_,choose:U_}=wp(),{and:xt,not:sn}=H_;$_({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}){xp(t)},collection:l1.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:Vn,hash(s){return s.join(",")},onChange(s){const c=r(),u=c.get("selectedItems"),f=e("collection"),g=s.map(p=>u.find(y=>f.getItemValue(y)===p)||f.find(p));c.set("selectedItems",g),e("onValueChange")?.({value:s,items:g})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(s){const c=e("collection").find(s);e("onHighlightChange")?.({highlightedValue:s,highlightedItem:c})}})),inputValue:t(()=>{let s=e("inputValue")||e("defaultInputValue")||"";const c=e("defaultValue")||e("value")||[];if(!s.trim()&&!e("multiple")){const u=e("collection").stringifyMany(c);s=Or(e("selectionBehavior"),{preserve:s||u,replace:u,clear:""})}return{defaultValue:s,value:e("inputValue"),onChange(u){const f=a(),g=(f.previousEvent||f).src;e("onInputValueChange")?.({inputValue:u,reason:g})}}}),highlightedItem:t(()=>{const s=e("highlightedValue");return{defaultValue:e("collection").find(s)}}),selectedItems:t(()=>{const s=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(s)}})}},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:s}){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()],()=>{s({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:U_([{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:xt("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:xt("isCustomValue",sn("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:xt("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:xt("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:xt("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:xt("isOpenControlled","isCustomValue",sn("hasHighlightedItem"),sn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xt("isCustomValue",sn("hasHighlightedItem"),sn("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:xt("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:xt("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:xt("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:xt("isOpenControlled","isCustomValue",sn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xt("isCustomValue",sn("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:xt("isOpenControlled","isCustomValue",sn("hasHighlightedItem"),sn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xt("isCustomValue",sn("hasHighlightedItem"),sn("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:xt("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:xt("isOpenControlled","isCustomValue",sn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xt("isCustomValue",sn("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:xt("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 bN(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:aa(()=>oi(r),{defer:!0,exclude:()=>[ro(r),Ws(r),sx(r)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(s){s.preventDefault(),s.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return $p([ro(e),oi(e),Ws(e),sx(e)])},trackPlacement({context:e,prop:t,scope:r}){const a=()=>ox(r)||Ws(r),s=()=>ax(r);return e.set("currentPlacement",t("positioning").placement),fn(a,s,{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:a}){const s=ro(r);let c=[];const u=p=>{const m=a.current().type.includes("POINTER"),y=e.get("highlightedValue");if(m||!y)return;const v=oi(r),x=t("scrollToIndexFn");if(x){const w=t("collection").indexOf(y);x({index:w,immediate:p,getElement:()=>Vs(r,y)});return}const E=Vs(r,y),C=ve(()=>{Au(E,{rootEl:v,block:"nearest"})});c.push(C)},f=ve(()=>u(!0));c.push(f);const g=Ju(s,{attributes:["aria-activedescendant"],callback:()=>u(!1)});return c.push(g),()=>{c.forEach(p=>p())}}},actions:{reposition({context:e,prop:t,scope:r,event:a}){fn(()=>ox(r),()=>ax(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"),s=t.get("highlightedValue");if(!s||!a.has(s))return;const c=r("multiple")?vo(t.get("value"),s):[s];r("onSelect")?.({value:c,itemValue:s}),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}){vl(()=>{const a=e.get("highlightedValue");if(a==null)return;const s=Vs(r,a),c=oi(r),u=t("scrollToIndexFn");if(u){const f=t("collection").indexOf(a);u({index:f,immediate:!0,getElement:()=>Vs(r,a)});return}Au(s,{rootEl:c,block:"nearest"})})},selectItem(e){const{context:t,event:r,flush:a,prop:s}=e;r.value!=null&&a(()=>{const c=s("multiple")?vo(t.get("value"),r.value):[r.value];s("onSelect")?.({value:c,itemValue:r.value}),t.set("value",c);const u=Or(s("selectionBehavior"),{preserve:t.get("inputValue"),replace:s("collection").stringifyMany(c),clear:""});t.set("inputValue",u)})},clearItem(e){const{context:t,event:r,flush:a,prop:s}=e;r.value!=null&&a(()=>{const c=Zi(t.get("value"),r.value);t.set("value",c);const u=Or(s("selectionBehavior"),{preserve:t.get("inputValue"),replace:s("collection").stringifyMany(c),clear:""});t.set("inputValue",u)})},setInitialFocus({scope:e}){ve(()=>{lx(e)})},setFinalFocus({scope:e}){ve(()=>{Ws(e)?.dataset.focusable==null?lx(e):F_(e)})},syncInputValue({context:e,scope:t,event:r}){const a=ro(t);a&&(a.value=e.get("inputValue"),queueMicrotask(()=>{r.current().type!=="INPUT.CHANGE"&&UN(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"),s=Or(a,{replace:r("hasSelectedItems")?r("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",s)},setValue(e){const{context:t,flush:r,event:a,prop:s}=e;r(()=>{t.set("value",a.value);const c=Or(s("selectionBehavior"),{preserve:t.get("inputValue"),replace:s("collection").stringifyMany(a.value),clear:""});t.set("inputValue",c)})},clearSelectedItems(e){const{context:t,flush:r,prop:a}=e;r(()=>{t.set("value",[]);const s=Or(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany([]),clear:""});t.set("inputValue",s)})},scrollContentToTop({prop:e,scope:t}){const r=e("scrollToIndexFn");if(r){const a=e("collection").firstValue;r({index:0,immediate:!0,getElement:()=>Vs(t,a)})}else{const a=oi(t);if(!a)return;a.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const r=cx(t);e("onOpenChange")?.({open:!0,reason:r})},invokeOnClose({prop:e,event:t}){const r=cx(t);e("onOpenChange")?.({open:!1,reason:r})},highlightFirstItem({context:e,prop:t,scope:r}){(oi(r)?queueMicrotask:ve)(()=>{const s=t("collection").firstValue;s&&e.set("highlightedValue",s)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:r}){(oi(r)?queueMicrotask:ve)(()=>{const s=t("collection").lastValue;s&&e.set("highlightedValue",s)})},highlightNextItem({context:e,prop:t}){let r=null;const a=e.get("highlightedValue"),s=t("collection");a?(r=s.getNextValue(a),!r&&t("loopFocus")&&(r=s.firstValue)):r=s.firstValue,r&&e.set("highlightedValue",r)},highlightPrevItem({context:e,prop:t}){let r=null;const a=e.get("highlightedValue"),s=t("collection");a?(r=s.getPreviousValue(a),!r&&t("loopFocus")&&(r=s.lastValue)):r=s.lastValue,r&&e.set("highlightedValue",r)},highlightFirstSelectedItem({context:e,prop:t}){ve(()=>{const[r]=t("collection").sort(e.get("value"));r&&e.set("highlightedValue",r)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:r}){ve(()=>{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}){ve(()=>{const a=t("collection");let s=null;r("hasSelectedItems")?s=a.sort(e.get("value"))[0]:s=a.lastValue,s&&e.set("highlightedValue",s)})},autofillInputValue({context:e,computed:t,prop:r,event:a,scope:s}){const c=ro(s),u=r("collection");if(!t("autoComplete")||!c||!a.keypress)return;const f=u.stringify(e.get("highlightedValue"));ve(()=>{c.value=f||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:r}=e,a=r("collection"),s=t.get("value"),c=s.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(s),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 cx(e){return(e.previousEvent||e).src}ge()(["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"]);ge()(["htmlFor"]);ge()(["id"]);ge()(["item","persistFocus"]);const j_=s1.extendWith("empty"),[c1,xi]=kt({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),u1=O.forwardRef((e,t)=>{const r=xi(),a=PC(),s=er({...a,present:r.open}),c=ae(r.getBackdropProps(),s.getPresenceProps(),e);return s.unmounted?null:z.jsx(ce.div,{...c,ref:mi(s.ref,t)})});u1.displayName="DialogBackdrop";const d1=O.forwardRef((e,t)=>{const r=xi(),a=ae(r.getCloseTriggerProps(),e);return z.jsx(ce.button,{...a,ref:t})});d1.displayName="DialogCloseTrigger";const f1=O.forwardRef((e,t)=>{const r=xi(),a=tr(),s=ae(r.getContentProps(),a.getPresenceProps(),e);return a.unmounted?null:z.jsx(ce.div,{...s,ref:mi(a.ref,t)})});f1.displayName="DialogContent";const h1=O.forwardRef((e,t)=>{const r=xi(),a=ae(r.getDescriptionProps(),e);return z.jsx(ce.div,{...a,ref:t})});h1.displayName="DialogDescription";const g1=O.forwardRef((e,t)=>{const r=xi(),a=ae(r.getPositionerProps(),e);return tr().unmounted?null:z.jsx(ce.div,{...a,ref:t})});g1.displayName="DialogPositioner";var G_=Object.defineProperty,W_=(e,t,r)=>t in e?G_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t,r)=>W_(e,typeof t!="symbol"?t+"":t,r),ux={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()}},q_=[],Y_=class{constructor(e,t){Ze(this,"trapStack"),Ze(this,"config"),Ze(this,"doc"),Ze(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),Ze(this,"listenerCleanups",[]),Ze(this,"handleFocus",a=>{const s=ut(a),c=this.findContainerIndex(s,a)>=0;if(c||gp(s))c&&(this.state.mostRecentlyFocusedNode=s);else{a.stopImmediatePropagation();let u,f=!0;if(this.state.mostRecentlyFocusedNode)if(As(this.state.mostRecentlyFocusedNode)>0){const g=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[g];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(g=>g.tabbableNodes.some(p=>As(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}),Ze(this,"handlePointerDown",a=>{const s=ut(a);if(!(this.findContainerIndex(s,a)>=0)){if(zs(this.config.clickOutsideDeactivates,a)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}zs(this.config.allowOutsideClick,a)||a.preventDefault()}}),Ze(this,"handleClick",a=>{const s=ut(a);this.findContainerIndex(s,a)>=0||zs(this.config.clickOutsideDeactivates,a)||zs(this.config.allowOutsideClick,a)||(a.preventDefault(),a.stopImmediatePropagation())}),Ze(this,"handleTabKey",a=>{if(this.config.isKeyForward(a)||this.config.isKeyBackward(a)){this.state.recentNavEvent=a;const s=this.config.isKeyBackward(a),c=this.findNextNavNode({event:a,isBackward:s});if(!c)return;Ds(a)&&a.preventDefault(),this.tryFocus(c)}}),Ze(this,"handleEscapeKey",a=>{X_(a)&&zs(this.config.escapeDeactivates,a)!==!1&&(a.preventDefault(),this.deactivate())}),Ze(this,"_mutationObserver"),Ze(this,"setupMutationObserver",()=>{const a=this.doc.defaultView||window;this._mutationObserver=new a.MutationObserver(s=>{s.some(u=>Array.from(u.removedNodes).some(g=>g===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),Ze(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(a=>{this._mutationObserver?.observe(a,{subtree:!0,childList:!0})})}),Ze(this,"getInitialFocusNode",()=>{let a=this.getNodeForOption("initialFocus",{hasFallback:!0});if(a===!1)return!1;if(a===void 0||a&&!ui(a))if(this.findContainerIndex(this.doc.activeElement)>=0)a=this.doc.activeElement;else{const s=this.state.tabbableGroups[0];a=s&&s.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}),Ze(this,"tryFocus",a=>{if(a!==!1&&a!==GS(this.doc)){if(!a||!a.focus){this.tryFocus(this.getInitialFocusNode());return}a.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=a,K_(a)&&a.select()}}),Ze(this,"deactivate",a=>{if(!this.state.active)return this;const s={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(),ux.deactivateTrap(this.trapStack,this);const c=this.getOption(s,"onDeactivate"),u=this.getOption(s,"onPostDeactivate"),f=this.getOption(s,"checkCanReturnFocus"),g=this.getOption(s,"returnFocus","returnFocusOnDeactivate");c?.();const p=()=>{dx(()=>{if(g){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(m)}u?.()})};if(g&&f){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return f(m).then(p,p),this}return p(),this}),Ze(this,"pause",a=>{if(this.state.paused||!this.state.active)return this;const s=this.getOption(a,"onPause"),c=this.getOption(a,"onPostPause");return this.state.paused=!0,s?.(),this.removeListeners(),this.updateObservedNodes(),c?.(),this}),Ze(this,"unpause",a=>{if(!this.state.paused||!this.state.active)return this;const s=this.getOption(a,"onUnpause"),c=this.getOption(a,"onPostUnpause");return this.state.paused=!1,s?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),c?.(),this}),Ze(this,"updateContainerElements",a=>(this.state.containers=Array.isArray(a)?a.filter(Boolean):[a].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),Ze(this,"getReturnFocusNode",a=>{const s=this.getNodeForOption("setReturnFocus",{params:[a]});return s||(s===!1?!1:a)}),Ze(this,"getOption",(a,s,c)=>a&&a[s]!==void 0?a[s]:this.config[c||s]),Ze(this,"getNodeForOption",(a,{hasFallback:s=!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(g){throw new Error(`\`${a}\` appears to be an invalid selector; error="${g.message}"`)}if(!f&&!s)throw new Error(`\`${a}\` as selector refers to no known node`)}return f}),Ze(this,"findNextNavNode",a=>{const{event:s,isBackward:c=!1}=a,u=a.target||ut(s);this.updateTabbableNodes();let f=null;if(this.state.tabbableGroups.length>0){const g=this.findContainerIndex(u,s),p=g>=0?this.state.containerGroups[g]:void 0;if(g<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||ui(u)&&!li(u)&&!p?.nextTabbableNode(u,!1))&&(m=g),m>=0){const y=m===0?this.state.tabbableGroups.length-1:m-1,v=this.state.tabbableGroups[y];f=As(u)>=0?v.lastTabbableNode:v.lastDomTabbableNode}else Ds(s)||(f=p?.nextTabbableNode(u,!1))}else{let m=this.state.tabbableGroups.findIndex(({lastTabbableNode:y})=>u===y);if(m<0&&(p?.container===u||ui(u)&&!li(u)&&!p?.nextTabbableNode(u))&&(m=g),m>=0){const y=m===this.state.tabbableGroups.length-1?0:m+1,v=this.state.tabbableGroups[y];f=As(u)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else Ds(s)||(f=p?.nextTabbableNode(u))}}else f=this.getNodeForOption("fallbackFocus");return f}),this.trapStack=t.trapStack||q_;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(a){return Ds(a)&&!a.shiftKey},isKeyBackward(a){return Ds(a)&&a.shiftKey},...t};this.doc=r.document||Yt(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:s})=>a.contains(e)||r?.includes(a)||s.find(c=>c===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=ml(e),r=yp(e),a=t.length>0?t[0]:void 0,s=t.length>0?t[t.length-1]:void 0,c=r.find(p=>li(p)),u=r.slice().reverse().find(p=>li(p)),f=!!t.find(p=>As(p)>0);function g(p,m=!0){const y=t.indexOf(p);return y<0?m?r.slice(r.indexOf(p)+1).find(v=>li(v)):r.slice(0,r.indexOf(p)).reverse().find(v=>li(v)):t[y+(m?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:f,firstTabbableNode:a,lastTabbableNode:s,firstDomTabbableNode:c,lastDomTabbableNode:u,nextTabbableNode:g}}),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 ux.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?dx(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(De(this.doc,"focusin",this.handleFocus,!0),De(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),De(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),De(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),De(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),De(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 s=()=>{a&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return a?(a(this.state.containers.concat()).then(s,s),this):(s(),this)}},Ds=e=>e.key==="Tab",zs=(e,...t)=>typeof e=="function"?e(...t):e,X_=e=>!e.isComposing&&e.key==="Escape",dx=e=>setTimeout(e,0),K_=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function p1(e,t={}){let r;const a=ve(()=>{const s=typeof e=="function"?e():e;if(s){r=new Y_(s,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:s,...t,document:Yt(s)});try{r.activate()}catch{}}});return function(){r?.deactivate(),a()}}var Kh="data-scroll-lock";function Q_(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function m1(e){const t=e??document,r=t.defaultView??window,{documentElement:a,body:s}=t;if(s.hasAttribute(Kh))return;const u=r.innerWidth-a.clientWidth;s.setAttribute(Kh,"");const f=()=>Y2(a,"--scrollbar-width",`${u}px`),g=Q_(a),p=()=>il(s,{overflow:"hidden",[g]:`${u}px`}),m=()=>{const{scrollX:v,scrollY:x,visualViewport:E}=r,C=E?.offsetLeft??0,w=E?.offsetTop??0,T=il(s,{position:"fixed",overflow:"hidden",top:`${-(x-Math.floor(w))}px`,left:`${-(v-Math.floor(C))}px`,right:"0",[g]:`${u}px`});return()=>{T?.(),r.scrollTo({left:v,top:x,behavior:"instant"})}},y=[f(),Qu()?m():p()];return()=>{y.forEach(v=>v?.()),s.removeAttribute(Kh)}}var Up=pe("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Hi=Up.build(),v1=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,b1=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Eg=e=>e.ids?.content??`dialog:${e.id}:content`,y1=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Og=e=>e.ids?.title??`dialog:${e.id}:title`,wg=e=>e.ids?.description??`dialog:${e.id}:description`,x1=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Jc=e=>e.getById(Eg(e)),Z_=e=>e.getById(v1(e)),J_=e=>e.getById(b1(e)),eV=e=>e.getById(y1(e)),tV=e=>e.getById(Og(e)),nV=e=>e.getById(wg(e)),rV=e=>e.getById(x1(e));function iV(e,t){const{state:r,send:a,context:s,prop:c,scope:u}=e,f=c("aria-label"),g=r.matches("open");return{open:g,setOpen(p){r.matches("open")!==p&&a({type:p?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...Hi.trigger.attrs,dir:c("dir"),id:y1(u),"aria-haspopup":"dialog",type:"button","aria-expanded":g,"data-state":g?"open":"closed","aria-controls":Eg(u),onClick(p){p.defaultPrevented||a({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...Hi.backdrop.attrs,dir:c("dir"),hidden:!g,id:b1(u),"data-state":g?"open":"closed"})},getPositionerProps(){return t.element({...Hi.positioner.attrs,dir:c("dir"),id:v1(u),style:{pointerEvents:g?void 0:"none"}})},getContentProps(){const p=s.get("rendered");return t.element({...Hi.content.attrs,dir:c("dir"),role:c("role"),hidden:!g,id:Eg(u),tabIndex:-1,"data-state":g?"open":"closed","aria-modal":!0,"aria-label":f||void 0,"aria-labelledby":f||!p.title?void 0:Og(u),"aria-describedby":p.description?wg(u):void 0})},getTitleProps(){return t.element({...Hi.title.attrs,dir:c("dir"),id:Og(u)})},getDescriptionProps(){return t.element({...Hi.description.attrs,dir:c("dir"),id:wg(u)})},getCloseTriggerProps(){return t.button({...Hi.closeTrigger.attrs,dir:c("dir"),id:x1(u),type:"button",onClick(p){p.defaultPrevented||(p.stopPropagation(),a({type:"CLOSE"}))}})}}}var aV={props({props:e,scope:t}){const r=e.role==="alertdialog",a=r?()=>rV(t):void 0,s=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:s,trapFocus:s,preventScroll:s,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:a,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return aa(()=>Jc(e),{defer:!0,pointerBlocking:r("modal"),exclude:[eV(e)],onInteractOutside(s){r("onInteractOutside")?.(s),r("closeOnInteractOutside")||s.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(s){r("onEscapeKeyDown")?.(s),r("closeOnEscape")||s.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return m1(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?p1(()=>Jc(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:a=>t("finalFocusEl")?.()??a}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?$p(()=>[Jc(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){ve(()=>{e.set("rendered",{title:!!tV(t),description:!!nV(t)})})},syncZIndex({scope:e}){ve(()=>{const t=Jc(e);if(!t)return;const r=bo(t);[Z_(e),J_(e)].forEach(s=>{s?.style.setProperty("--z-index",r.zIndex),s?.style.setProperty("--layer-index",r.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};ge()(["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"]);const oV=e=>{const t=O.useId(),{getRootNode:r}=pi(),{dir:a}=vi(),s={id:t,getRootNode:r,dir:a,...e},c=_r(aV,s);return iV(c,yi)},sV=e=>{const[t,{children:r,...a}]=bi(e),[s]=ad(t),c=oV(a),u=er(ae({present:c.open},t));return z.jsx(c1,{value:c,children:z.jsx(id,{value:s,children:z.jsx(Vr,{value:u,children:r})})})},lV=e=>{const[t,{value:r,children:a}]=bi(e),[s]=ad(t),c=er(ae({present:r.open},t));return z.jsx(c1,{value:r,children:z.jsx(id,{value:s,children:z.jsx(Vr,{value:c,children:a})})})},S1=O.forwardRef((e,t)=>{const r=xi(),a=ae(r.getTitleProps(),e);return z.jsx(ce.h2,{...a,ref:t})});S1.displayName="DialogTitle";const C1=O.forwardRef((e,t)=>{const r=xi(),a=tr(),s=ae({...r.getTriggerProps(),"aria-controls":a.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return z.jsx(ce.button,{...s,ref:t})});C1.displayName="DialogTrigger";var E1=pe("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");E1.build();ge()(["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 O1=O.forwardRef((e,t)=>{const r=sa(),a=ae(r?.getInputProps(),e);return z.jsx(ce.input,{...a,ref:t})});O1.displayName="FieldInput";const w1=pe("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");w1.build();var cV=e=>{if(!e)return;const t=bo(e),r=at(e),a=Yt(e),s=()=>{requestAnimationFrame(()=>{e.style.height="auto";let p;t.boxSizing==="content-box"?p=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):p=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&p>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),p=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${p}px`})};e.addEventListener("input",s),e.form?.addEventListener("reset",s);const c=Object.getPrototypeOf(e),u=Object.getOwnPropertyDescriptor(c,"value");Object.defineProperty(e,"value",{...u,set(){u?.set?.apply(this,arguments),s()}});const f=new r.ResizeObserver(()=>{requestAnimationFrame(()=>s())});f.observe(e);const g=new r.MutationObserver(()=>s());return g.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),a.fonts?.addEventListener("loadingdone",s),()=>{e.removeEventListener("input",s),e.form?.removeEventListener("reset",s),a.fonts?.removeEventListener("loadingdone",s),f.disconnect(),g.disconnect()}};const T1=O.forwardRef((e,t)=>{const{autoresize:r,...a}=e,s=O.useRef(null),c=sa(),u=ae(c?.getTextareaProps(),{style:{resize:r?"none":void 0}},a);return O.useEffect(()=>{if(r)return cV(s.current)},[r]),z.jsx(ce.textarea,{...u,ref:mi(t,s)})});T1.displayName="FieldTextarea";const R1=pe("fieldset").parts("root","errorText","helperText","legend");R1.build();var k1=pe("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");k1.build();ge()(["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"]);ge()(["file"]);var N1=pe("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");N1.build();var uV=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,dV=e=>e.ids?.content??`hover-card:${e.id}:content`,fV=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Qh=e=>e.getById(uV(e)),hV=e=>e.getById(dV(e)),fx=e=>e.getById(fV(e)),{not:eu,and:hx}=Jn();hx("isOpenControlled",eu("isPointer")),eu("isPointer"),hx("isOpenControlled",eu("isPointer")),eu("isPointer");ge()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var P1=pe("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");P1.build();var A1=e=>new i1(e);A1.empty=()=>new i1({rootNode:{children:[]}});var gV=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,$i=(e,t)=>{t!=null&&e.getById(gV(e,t))?.focus()};function pV(e,t,r){const a=e.getDescendantValues(t),s=a.every(c=>r.includes(c));return ao(s?Zi(r,...a):qi(r,...a))}function tu(e,t){const{context:r,prop:a,refs:s}=e;if(!a("loadChildren")){r.set("expandedValue",C=>ao(qi(C,...t)));return}const c=r.get("loadingStatus"),[u,f]=S0(t,C=>c[C]==="loaded");if(u.length>0&&r.set("expandedValue",C=>ao(qi(C,...u))),f.length===0)return;const g=a("collection"),[p,m]=S0(f,C=>{const w=g.findNode(C);return g.getNodeChildren(w).length>0});if(p.length>0&&r.set("expandedValue",C=>ao(qi(C,...p))),m.length===0)return;r.set("loadingStatus",C=>({...C,...m.reduce((w,T)=>({...w,[T]:"loading"}),{})}));const y=m.map(C=>{const w=g.getIndexPath(C),T=g.getValuePath(w),R=g.findNode(C);return{id:C,indexPath:w,valuePath:T,node:R}}),v=s.get("pendingAborts"),x=a("loadChildren");hp(x,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const E=y.map(({id:C,indexPath:w,valuePath:T,node:R})=>{const N=v.get(C);N&&(N.abort(),v.delete(C));const L=new AbortController;return v.set(C,L),x({valuePath:T,indexPath:w,node:R,signal:L.signal})});Promise.allSettled(E).then(C=>{const w=[],T=[],R=r.get("loadingStatus");let N=a("collection");C.forEach((L,A)=>{const{id:U,indexPath:q,node:_,valuePath:$}=y[A];L.status==="fulfilled"?(R[U]="loaded",w.push(U),N=N.replace(q,{..._,children:L.value})):(v.delete(U),Reflect.deleteProperty(R,U),T.push({node:_,error:L.reason,indexPath:q,valuePath:$}))}),r.set("loadingStatus",R),w.length&&(r.set("expandedValue",L=>ao(qi(L,...w))),a("onLoadChildrenComplete")?.({collection:N})),T.length&&a("onLoadChildrenError")?.({nodes:T})})}function ai(e){const{prop:t,context:r}=e;return function({indexPath:s}){return t("collection").getValuePath(s).slice(0,-1).some(u=>!r.get("expandedValue").includes(u))}}var{and:Un}=Jn();Un("isMultipleSelection","moveFocus"),Un("isShiftKey","isMultipleSelection"),Un("isShiftKey","isMultipleSelection"),Un("isBranchFocused","isBranchExpanded"),Un("isShiftKey","isMultipleSelection"),Un("isShiftKey","isMultipleSelection"),Un("isCtrlKey","isMultipleSelection"),Un("isShiftKey","isMultipleSelection"),Un("isCtrlKey","isMultipleSelection"),Un("isShiftKey","isMultipleSelection");ge()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]);ge()(["node","indexPath"]);var I1=pe("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");I1.build();ge()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);ge()(["item","highlightOnHover"]);ge()(["id"]);ge()(["htmlFor"]);const mV=I1.extendWith("empty");var _1=pe("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");_1.build();var V1=e=>e.ids?.trigger??`menu:${e.id}:trigger`,vV=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,D1=e=>e.ids?.content??`menu:${e.id}:content`,bV=e=>e.ids?.positioner??`menu:${e.id}:popper`,Tg=(e,t)=>`${e.id}/${t}`,Ui=e=>e?.dataset.value??null,si=e=>e.getById(D1(e)),gx=e=>e.getById(bV(e)),nu=e=>e.getById(V1(e)),yV=(e,t)=>t?e.getById(Tg(e,t)):null,Zh=e=>e.getById(vV(e)),yl=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(D1(e))}]:not([data-disabled])`;return rl(si(e),r)},xV=e=>go(yl(e)),SV=e=>qu(yl(e)),jp=(e,t)=>t?e.id===t||e.dataset.value===t:!1,CV=(e,t)=>{const r=yl(e),a=r.findIndex(s=>jp(s,t.value));return gN(r,a,{loop:t.loop??t.loopFocus})},EV=(e,t)=>{const r=yl(e),a=r.findIndex(s=>jp(s,t.value));return mN(r,a,{loop:t.loop??t.loopFocus})},OV=(e,t)=>{const r=yl(e),a=r.find(s=>jp(s,t.value));return ea(r,{state:t.typeaheadState,key:t.key,activeId:a?.id??null})},wV=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),TV="menu:select";function RV(e,t){if(!e)return;const r=at(e),a=new r.CustomEvent(TV,{detail:{value:t}});e.dispatchEvent(a)}var{not:wn,and:Qa,or:kV}=Jn();wn("isSubmenu"),kV("isOpenAutoFocusEvent","isArrowDownEvent"),Qa(wn("isTriggerItem"),"isOpenControlled"),wn("isTriggerItem"),Qa("isSubmenu","isOpenControlled"),wn("isPointerSuspended"),Qa(wn("isPointerSuspended"),wn("isTriggerItem")),Qa(wn("isTriggerItemHighlighted"),wn("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Qa(wn("isTriggerItemHighlighted"),wn("isHighlightedItemEditable"),"closeOnSelect"),Qa(wn("isTriggerItemHighlighted"),wn("isHighlightedItemEditable"));function px(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function NV(e,t){return e?jI(e,t):!1}function PV(e,t,r){const a=Object.keys(e).length>0;if(!t)return null;if(!a)return Tg(r,t);for(const s in e){const c=e[s],u=V1(c.scope);if(u===t)return u}return Tg(r,t)}ge()(["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"]);ge()(["closeOnSelect","disabled","value","valueText"]);ge()(["htmlFor"]);ge()(["id"]);ge()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let Jh=new Map,Rg=!1;try{Rg=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Lu=!1;try{Lu=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const z1={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class AV{format(t){let r="";if(!Rg&&this.options.signDisplay!=null?r=_V(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Lu){var a;let{unit:s,unitDisplay:c="short",locale:u}=this.resolvedOptions();if(!s)return r;let f=(a=z1[s])===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),s=this.numberFormatter.formatToParts(r);return[...a.map(c=>({...c,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(c=>({...c,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Rg&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Lu&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=IV(t,r),this.options=r}}function IV(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Lu){var a;let{unit:u,unitDisplay:f="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!(!((a=z1[u])===null||a===void 0)&&a[f]))throw new Error(`Unsupported unit ${u} with unitDisplay = ${f}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort((u,f)=>u[0]<f[0]?-1:1).join():"");if(Jh.has(s))return Jh.get(s);let c=new Intl.NumberFormat(e,t);return Jh.set(s,c),c}function _V(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 s=e.format(-r),c=e.format(r),u=s.replace(c,"").replace(/\u200e|\u061C/,"");return[...u].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(c,"!!!").replace(u,"+").replace("!!!",c)}else return e.format(r)}}const VV=new RegExp("^.*\\(.*\\).*$"),DV=["latn","arab","hanidec","deva","beng","fullwide"];class M1{parse(t){return eg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,a){return eg(this.locale,this.options,t).isValidPartialNumber(t,r,a)}getNumberingSystem(t){return eg(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const mx=new Map;function eg(e,t,r){let a=vx(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(r)){for(let s of DV)if(s!==a.options.numberingSystem){let c=vx(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(c.isValidPartialNumber(r))return c}}return a}function vx(e,t){let r=e+(t?Object.entries(t).sort((s,c)=>s[0]<c[0]?-1:1).join():""),a=mx.get(r);return a||(a=new zV(e,t),mx.set(r,a)),a}class zV{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=Ms(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 s,c;let u={...this.options,style:"decimal",minimumFractionDigits:Math.min(((s=this.options.minimumFractionDigits)!==null&&s!==void 0?s:0)+2,20),maximumFractionDigits:Math.min(((c=this.options.maximumFractionDigits)!==null&&c!==void 0?c:0)+2,20)};return new M1(this.locale,u).parse(new AV(this.locale,u).format(a))}return this.options.currencySign==="accounting"&&VV.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=Ms(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Ms(t," ",this.symbols.group),t=Ms(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=Ms(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=LV(t,this.formatter,this.options,r);var a,s;this.options.style==="percent"&&(((a=this.options.minimumFractionDigits)!==null&&a!==void 0?a:0)>18||((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const bx=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),MV=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function LV(e,t,r,a){var s,c,u,f;let g=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),p=g.formatToParts(-10000.111),m=g.formatToParts(10000.111),y=MV.map(G=>g.formatToParts(G));var v;let x=(v=(s=p.find(G=>G.type==="minusSign"))===null||s===void 0?void 0:s.value)!==null&&v!==void 0?v:"-",E=(c=m.find(G=>G.type==="plusSign"))===null||c===void 0?void 0:c.value;!E&&(a?.signDisplay==="exceptZero"||a?.signDisplay==="always")&&(E="+");let w=(u=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(G=>G.type==="decimal"))===null||u===void 0?void 0:u.value,T=(f=p.find(G=>G.type==="group"))===null||f===void 0?void 0:f.value,R=p.filter(G=>!bx.has(G.type)).map(G=>yx(G.value)),N=y.flatMap(G=>G.filter(Y=>!bx.has(Y.type)).map(Y=>yx(Y.value))),L=[...new Set([...R,...N])].sort((G,Y)=>Y.length-G.length),A=L.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${L.join("|")}|[\\p{White_Space}]`,"gu"),U=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),q=new Map(U.map((G,Y)=>[G,Y])),_=new RegExp(`[${U.join("")}]`,"g");return{minusSign:x,plusSign:E,decimal:w,group:T,literals:A,numeral:_,index:G=>String(q.get(G))}}function Ms(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function yx(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var L1=pe("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");L1.build();var BV=e=>e.ids?.input??`number-input:${e.id}:input`,FV=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,HV=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,B1=e=>`number-input:${e.id}:cursor`,ru=e=>e.getById(BV(e)),$V=e=>e.getById(FV(e)),UV=e=>e.getById(HV(e)),F1=e=>e.getDoc().getElementById(B1(e)),jV=(e,t)=>{let r=null;return t==="increment"&&(r=$V(e)),t==="decrement"&&(r=UV(e)),r},GV=(e,t)=>{if(!gl())return YV(e,t),()=>{F1(e)?.remove()}},WV=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")}},qV=(e,t)=>{const{point:r,isRtl:a,event:s}=t,c=e.getWin(),u=$h(s.movementX,c.devicePixelRatio),f=$h(s.movementY,c.devicePixelRatio);let g=u>0?"increment":u<0?"decrement":null;a&&g==="increment"&&(g="decrement"),a&&g==="decrement"&&(g="increment");const p={x:r.x+u,y:r.y+f},m=c.innerWidth,y=$h(7.5,c.devicePixelRatio);return p.x=IN(p.x+y,m)-y,{hint:g,point:p}},YV=(e,t)=>{const r=e.getDoc(),a=r.createElement("div");a.className="scrubber--cursor",a.id=B1(e),Object.assign(a.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:GN,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),a.innerHTML=`
57
+ <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);">
58
+ <g transform="translate(2 3)">
59
+ <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>
60
+ <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>
61
+ </g>
62
+ </svg>`,r.body.appendChild(a)};function XV(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:r,value:a}=e,s=a.substring(0,t),c=a.substring(r);return{start:t,end:r,value:a,beforeTxt:s,afterTxt:c}}catch{}}function KV(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:s="",start:c}=t;let u=r.length;if(r.endsWith(s))u=r.length-s.length;else if(r.startsWith(a))u=a.length;else if(c!=null){const f=a[c-1],g=r.indexOf(f,c-1);g!==-1&&(u=g+1)}e.setSelectionRange(u,u)}catch{}}}var QV=(e,t={})=>new Intl.NumberFormat(e,t),ZV=(e,t={})=>new M1(e,t),tg=(e,t)=>{const{prop:r,computed:a}=t;return r("formatOptions")?e===""?Number.NaN:a("parser").parse(e):parseFloat(e)},ji=(e,t)=>{const{prop:r,computed:a}=t;return Number.isNaN(e)?"":r("formatOptions")?a("formatter").format(e):e.toString()},JV=(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:eD,guards:tD,createMachine:nD}=wp(),{not:xx,and:Sx}=tD;nD({props({props:e}){const t=JV(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 s=r(),c=tg(a,{computed:s,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})=>tg(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>ji(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>VN(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>_N(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!DN(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)=>QV(e,t)),parser:A0(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ZV(e,t))},watch({track:e,action:t,context:r,computed:a,prop:s}){e([()=>r.get("value"),()=>s("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:Sx("clampValueOnBlur",xx("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:xx("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:eD([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Sx("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=ru(t);return pl(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 GV(t,r)},preventTextSelection({scope:e}){return WV(e)},trackButtonDisabled({context:e,scope:t,send:r}){const a=e.get("hint"),s=jV(t,a);return Ju(s,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){const a=ru(e);if(!a||!e.isActiveElement(a)||!r("allowMouseWheel"))return;function s(c){c.preventDefault();const u=Math.sign(c.deltaY)*-1;u===1?t({type:"VALUE.INCREMENT"}):u===-1&&t({type:"VALUE.DECREMENT"})}return De(a,"wheel",s,{passive:!1})},activatePointerLock({scope:e}){if(!gl())return z2(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:a}){const s=e.getDoc();function c(f){const g=r.get("scrubberCursorPoint"),p=a("isRtl"),m=qV(e,{point:g,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 ku(De(s,"mousemove",c,!1),De(s,"mouseup",u,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=ru(e);e.isActiveElement(r)||ve(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:a}){let s=BN(a("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(s=Wt(s,r("min"),r("max"))),e.set("value",ji(s,{computed:a,prop:r}))},decrement({context:e,event:t,prop:r,computed:a}){let s=FN(a("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(s=Wt(s,r("min"),r("max"))),e.set("value",ji(s,{computed:a,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const a=Wt(r("valueAsNumber"),t("min"),t("max"));e.set("value",ji(a,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:a}){let s=tg(t.value,{computed:a,prop:r});r("allowOverflow")||(s=Wt(s,r("min"),r("max"))),e.set("value",ji(s,{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=ji(t("max"),{computed:r,prop:t});e.set("value",a)},decrementToMin({context:e,prop:t,computed:r}){const a=ji(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 s=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),c=ru(a),u=XV(c);ve(()=>{Zu(c,s),KV(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=F1(t),a=e.get("scrubberCursorPoint");!r||!a||(r.style.transform=`translate3d(${a.x}px, ${a.y}px, 0px)`)}}}});ge()(["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 H1=pe("pinInput").parts("root","label","input","control");H1.build();ge()(["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[$1,rr]=kt({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),U1=O.forwardRef((e,t)=>{const r=rr(),a=ae(r.getAnchorProps(),e);return z.jsx(ce.div,{...a,ref:t})});U1.displayName="PopoverAnchor";const j1=O.forwardRef((e,t)=>{const r=rr(),a=ae(r.getArrowProps(),e);return z.jsx(ce.div,{...a,ref:t})});j1.displayName="PopoverArrow";const G1=O.forwardRef((e,t)=>{const r=rr(),a=ae(r.getArrowTipProps(),e);return z.jsx(ce.div,{...a,ref:t})});G1.displayName="PopoverArrowTip";const W1=O.forwardRef((e,t)=>{const r=rr(),a=ae(r.getCloseTriggerProps(),e);return z.jsx(ce.button,{...a,ref:t})});W1.displayName="PopoverCloseTrigger";const q1=O.forwardRef((e,t)=>{const r=rr(),a=tr(),s=ae(r.getContentProps(),a.getPresenceProps(),e);return a.unmounted?null:z.jsx(ce.div,{...s,ref:mi(a.ref,t)})});q1.displayName="PopoverContent";const Y1=O.forwardRef((e,t)=>{const r=rr(),a=ae(r.getDescriptionProps(),e);return z.jsx(ce.div,{...a,ref:t})});Y1.displayName="PopoverDescription";const X1=O.forwardRef((e,t)=>{const r=rr(),a=ae(r.getIndicatorProps(),e);return z.jsx(ce.div,{...a,ref:t})});X1.displayName="PopoverIndicator";const K1=O.forwardRef((e,t)=>{const r=rr(),a=tr(),s=ae(r.getPositionerProps(),e);return a.unmounted?null:z.jsx(ce.div,{...s,ref:t})});K1.displayName="PopoverPositioner";var Q1=pe("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),jn=Q1.build(),Z1=e=>e.ids?.anchor??`popover:${e.id}:anchor`,J1=e=>e.ids?.trigger??`popover:${e.id}:trigger`,kg=e=>e.ids?.content??`popover:${e.id}:content`,eE=e=>e.ids?.positioner??`popover:${e.id}:popper`,rD=e=>e.ids?.arrow??`popover:${e.id}:arrow`,Ng=e=>e.ids?.title??`popover:${e.id}:title`,Pg=e=>e.ids?.description??`popover:${e.id}:desc`,iD=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,Cx=e=>e.getById(Z1(e)),Za=e=>e.getById(J1(e)),Ja=e=>e.getById(kg(e)),Ex=e=>e.getById(eE(e)),aD=e=>e.getById(Ng(e)),oD=e=>e.getById(Pg(e));function sD(e,t){const{state:r,context:a,send:s,computed:c,prop:u,scope:f}=e,g=r.matches("open"),p=a.get("currentPlacement"),m=c("currentPortalled"),y=a.get("renderedElements"),v=Bp({...u("positioning"),placement:p});return{portalled:m,open:g,setOpen(x){r.matches("open")!==x&&s({type:x?"OPEN":"CLOSE"})},reposition(x={}){s({type:"POSITIONING.SET",options:x})},getArrowProps(){return t.element({id:rD(f),...jn.arrow.attrs,dir:u("dir"),style:v.arrow})},getArrowTipProps(){return t.element({...jn.arrowTip.attrs,dir:u("dir"),style:v.arrowTip})},getAnchorProps(){return t.element({...jn.anchor.attrs,dir:u("dir"),id:Z1(f)})},getTriggerProps(){return t.button({...jn.trigger.attrs,dir:u("dir"),type:"button","data-placement":p,id:J1(f),"aria-haspopup":"dialog","aria-expanded":g,"data-state":g?"open":"closed","aria-controls":kg(f),onPointerDown(x){XS(x)&&gl()&&x.currentTarget.focus()},onClick(x){x.defaultPrevented||s({type:"TOGGLE"})},onBlur(x){s({type:"TRIGGER_BLUR",target:x.relatedTarget})}})},getIndicatorProps(){return t.element({...jn.indicator.attrs,dir:u("dir"),"data-state":g?"open":"closed"})},getPositionerProps(){return t.element({id:eE(f),...jn.positioner.attrs,dir:u("dir"),style:v.floating})},getContentProps(){return t.element({...jn.content.attrs,dir:u("dir"),id:kg(f),tabIndex:-1,role:"dialog",hidden:!g,"data-state":g?"open":"closed","data-expanded":ye(g),"aria-labelledby":y.title?Ng(f):void 0,"aria-describedby":y.description?Pg(f):void 0,"data-placement":p})},getTitleProps(){return t.element({...jn.title.attrs,id:Ng(f),dir:u("dir")})},getDescriptionProps(){return t.element({...jn.description.attrs,id:Pg(f),dir:u("dir")})},getCloseTriggerProps(){return t.button({...jn.closeTrigger.attrs,dir:u("dir"),id:iD(f),type:"button","aria-label":"close",onClick(x){x.defaultPrevented||(x.stopPropagation(),s({type:"CLOSE"}))}})}}}var lD={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=Cx(r)??Za(r);return fn(a,()=>Ex(r),{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},trackDismissableElement({send:e,prop:t,scope:r}){const a=()=>Ja(r);let s=!0;return aa(a,{pointerBlocking:t("modal"),exclude:Za(r),defer:!0,onEscapeKeyDown(c){t("onEscapeKeyDown")?.(c),!t("closeOnEscape")&&c.preventDefault()},onInteractOutside(c){t("onInteractOutside")?.(c),!c.defaultPrevented&&(s=!(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:s})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:H2(()=>Ja(t),{triggerElement:Za(t),defer:!0,onFocus(a){a.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?$p(()=>[Ja(t),Za(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return m1(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?p1(()=>Ja(t),{initialFocus:()=>nl({root:Ja(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})}):void 0}},actions:{reposition({event:e,prop:t,scope:r,context:a}){const s=Cx(r)??Za(r);fn(s,()=>Ex(r),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(u){a.set("currentPlacement",u.placement)}})},checkRenderedElements({context:e,scope:t}){ve(()=>{Object.assign(e.get("renderedElements"),{title:!!aD(t),description:!!oD(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||ve(()=>{nl({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||ve(()=>{Za(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})}}}};ge()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const cD=e=>{const t=O.useId(),{getRootNode:r}=pi(),{dir:a}=vi(),s={id:t,dir:a,getRootNode:r,...e},c=_r(lD,s);return sD(c,yi)},uD=e=>{const[t,{children:r,...a}]=bi(e),s=cD(a),c=er(ae({present:s.open},t));return z.jsx($1,{value:s,children:z.jsx(Vr,{value:c,children:r})})},dD=e=>{const[t,{value:r,children:a}]=bi(e),s=er(ae({present:r.open},t));return z.jsx($1,{value:r,children:z.jsx(Vr,{value:s,children:a})})},tE=O.forwardRef((e,t)=>{const r=rr(),a=ae(r.getTitleProps(),e);return z.jsx(ce.div,{...a,ref:t})});tE.displayName="PopoverTitle";const nE=O.forwardRef((e,t)=>{const r=rr(),a=tr(),s=ae({...r.getTriggerProps(),"aria-controls":a.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return z.jsx(ce.button,{...s,ref:t})});nE.displayName="PopoverTrigger";var Gp=pe("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Gp.build();ge()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var rE=pe("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");rE.build();ge()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Wp=pe("radio-group").parts("root","label","item","itemText","itemControl","indicator");Wp.build();ge()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);ge()(["value","disabled","invalid"]);var iE=pe("rating-group").parts("root","label","item","control");iE.build();ge()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);ge()(["index"]);var aE=pe("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");aE.build();ge()(["dir","getRootNode","ids","id"]);const oE=Wp.rename("segment-group");oE.build();const[sE,hn]=kt({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),lE=O.forwardRef((e,t)=>{const r=hn(),a=ae(r.getClearTriggerProps(),e);return z.jsx(ce.button,{...a,ref:t})});lE.displayName="SelectClearTrigger";const cE=O.forwardRef((e,t)=>{const r=hn(),a=tr(),s=ae(r.getContentProps(),a.getPresenceProps(),e);return a.unmounted?null:z.jsx(ce.div,{...s,ref:mi(a.ref,t)})});cE.displayName="SelectContent";const uE=O.forwardRef((e,t)=>{const r=hn(),a=ae(r.getControlProps(),e);return z.jsx(ce.div,{...a,ref:t})});uE.displayName="SelectControl";const dE=O.forwardRef((e,t)=>{const r=hn(),a=ae(r.getIndicatorProps(),e);return z.jsx(ce.div,{...a,ref:t})});dE.displayName="SelectIndicator";const[fD,tB]=kt({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[hD,fE]=kt({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),hE=O.forwardRef((e,t)=>{const[r,a]=Nt()(e,["item","persistFocus"]),s=hn(),c=ae(s.getItemProps(r),a),u=s.getItemState(r);return z.jsx(hD,{value:r,children:z.jsx(fD,{value:u,children:z.jsx(ce.div,{...c,ref:t})})})});hE.displayName="SelectItem";const[gD,pD]=kt({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),gE=O.forwardRef((e,t)=>{const r=O.useId(),[a,s]=Nt()(e,["id"]),c={id:r,...a},u=hn(),f=ae(u.getItemGroupProps(c),s);return z.jsx(gD,{value:c,children:z.jsx(ce.div,{...f,ref:t})})});gE.displayName="SelectItemGroup";const pE=O.forwardRef((e,t)=>{const r=hn(),a=pD(),s=ae(r.getItemGroupLabelProps({htmlFor:a.id}),e);return z.jsx(ce.div,{...s,ref:t})});pE.displayName="SelectItemGroupLabel";const mE=O.forwardRef((e,t)=>{const r=hn(),a=fE(),s=ae(r.getItemIndicatorProps(a),e);return z.jsx(ce.div,{...s,ref:t})});mE.displayName="SelectItemIndicator";const vE=O.forwardRef((e,t)=>{const r=hn(),a=fE(),s=ae(r.getItemTextProps(a),e);return z.jsx(ce.span,{...s,ref:t})});vE.displayName="SelectItemText";const bE=O.forwardRef((e,t)=>{const r=hn(),a=ae(r.getLabelProps(),e);return z.jsx(ce.label,{...a,ref:t})});bE.displayName="SelectLabel";const yE=O.forwardRef((e,t)=>{const r=hn(),a=ae(r.getPositionerProps(),e);return tr().unmounted?null:z.jsx(ce.div,{...a,ref:t})});yE.displayName="SelectPositioner";var xE=pe("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"),Mt=xE.build(),SE=e=>new cd(e);SE.empty=()=>new cd({items:[]});var mD=e=>e.ids?.root??`select:${e.id}`,Ag=e=>e.ids?.content??`select:${e.id}:content`,Ig=e=>e.ids?.trigger??`select:${e.id}:trigger`,CE=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,iu=e=>e.ids?.label??`select:${e.id}:label`,vD=e=>e.ids?.control??`select:${e.id}:control`,_g=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Vg=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,EE=e=>e.ids?.positioner??`select:${e.id}:positioner`,bD=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,Ox=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,ng=e=>e.getById(Vg(e)),Ls=e=>e.getById(Ag(e)),Ki=e=>e.getById(Ig(e)),yD=e=>e.getById(CE(e)),wx=e=>e.getById(EE(e)),rg=(e,t)=>t==null?null:e.getById(_g(e,t));function xD(e,t){const{context:r,prop:a,scope:s,state:c,computed:u,send:f}=e,g=a("disabled")||r.get("fieldsetDisabled"),p=a("invalid"),m=a("readOnly"),y=a("composite"),v=a("collection"),x=c.hasTag("open"),E=c.matches("focused"),C=r.get("highlightedValue"),w=r.get("highlightedItem"),T=r.get("selectedItems"),R=r.get("currentPlacement"),N=u("isTypingAhead"),L=u("isInteractive"),A=C?_g(s,C):void 0;function U(_){const $=v.getItemDisabled(_.item),G=v.getItemValue(_.item);return hp(G,()=>`[zag-js] No value found for item ${JSON.stringify(_.item)}`),{value:G,disabled:!!(g||$),highlighted:C===G,selected:r.get("value").includes(G)}}const q=Bp({...a("positioning"),placement:R});return{open:x,focused:E,empty:r.get("value").length===0,highlightedItem:w,highlightedValue:C,selectedItems:T,hasSelectedItems:u("hasSelectedItems"),value:r.get("value"),valueAsString:u("valueAsString"),collection:v,multiple:!!a("multiple"),disabled:!!g,reposition(_={}){f({type:"POSITIONING.SET",options:_})},focus(){Ki(s)?.focus({preventScroll:!0})},setOpen(_){c.hasTag("open")!==_&&f({type:_?"OPEN":"CLOSE"})},selectValue(_){f({type:"ITEM.SELECT",value:_})},setValue(_){f({type:"VALUE.SET",value:_})},selectAll(){f({type:"VALUE.SET",value:v.getValues()})},setHighlightValue(_){f({type:"HIGHLIGHTED_VALUE.SET",value:_})},clearHighlightValue(){f({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(_){f(_?{type:"ITEM.CLEAR",value:_}:{type:"VALUE.CLEAR"})},getItemState:U,getRootProps(){return t.element({...Mt.root.attrs,dir:a("dir"),id:mD(s),"data-invalid":ye(p),"data-readonly":ye(m)})},getLabelProps(){return t.label({dir:a("dir"),id:iu(s),...Mt.label.attrs,"data-disabled":ye(g),"data-invalid":ye(p),"data-readonly":ye(m),htmlFor:Vg(s),onClick(_){_.defaultPrevented||g||Ki(s)?.focus({preventScroll:!0})}})},getControlProps(){return t.element({...Mt.control.attrs,dir:a("dir"),id:vD(s),"data-state":x?"open":"closed","data-focus":ye(E),"data-disabled":ye(g),"data-invalid":ye(p)})},getValueTextProps(){return t.element({...Mt.valueText.attrs,dir:a("dir"),"data-disabled":ye(g),"data-invalid":ye(p),"data-focus":ye(E)})},getTriggerProps(){return t.button({id:Ig(s),disabled:g,dir:a("dir"),type:"button",role:"combobox","aria-controls":Ag(s),"aria-expanded":x,"aria-haspopup":"listbox","data-state":x?"open":"closed","aria-invalid":p,"aria-labelledby":iu(s),...Mt.trigger.attrs,"data-disabled":ye(g),"data-invalid":ye(p),"data-readonly":ye(m),"data-placement":R,"data-placeholder-shown":ye(!u("hasSelectedItems")),onClick(_){L&&(_.defaultPrevented||f({type:"TRIGGER.CLICK"}))},onFocus(){f({type:"TRIGGER.FOCUS"})},onBlur(){f({type:"TRIGGER.BLUR"})},onKeyDown(_){if(_.defaultPrevented||!L)return;const G={ArrowUp(){f({type:"TRIGGER.ARROW_UP"})},ArrowDown(Y){f({type:Y.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){f({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){f({type:"TRIGGER.ARROW_RIGHT"})},Home(){f({type:"TRIGGER.HOME"})},End(){f({type:"TRIGGER.END"})},Enter(){f({type:"TRIGGER.ENTER"})},Space(Y){f(N?{type:"TRIGGER.TYPEAHEAD",key:Y.key}:{type:"TRIGGER.ENTER"})}}[gg(_,{dir:a("dir"),orientation:"vertical"})];if(G){G(_),_.preventDefault();return}ea.isValidEvent(_)&&(f({type:"TRIGGER.TYPEAHEAD",key:_.key}),_.preventDefault())}})},getIndicatorProps(){return t.element({...Mt.indicator.attrs,dir:a("dir"),"aria-hidden":!0,"data-state":x?"open":"closed","data-disabled":ye(g),"data-invalid":ye(p),"data-readonly":ye(m)})},getItemProps(_){const $=U(_);return t.element({id:_g(s,$.value),role:"option",...Mt.item.attrs,dir:a("dir"),"data-value":$.value,"aria-selected":$.selected,"data-state":$.selected?"checked":"unchecked","data-highlighted":ye($.highlighted),"data-disabled":ye($.disabled),"aria-disabled":WN($.disabled),onPointerMove(G){$.disabled||G.pointerType!=="mouse"||$.value!==C&&f({type:"ITEM.POINTER_MOVE",value:$.value})},onClick(G){G.defaultPrevented||$.disabled||f({type:"ITEM.CLICK",src:"pointerup",value:$.value})},onPointerLeave(G){$.disabled||_.persistFocus||G.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER")||f({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(_){const $=U(_);return t.element({...Mt.itemText.attrs,"data-state":$.selected?"checked":"unchecked","data-disabled":ye($.disabled),"data-highlighted":ye($.highlighted)})},getItemIndicatorProps(_){const $=U(_);return t.element({"aria-hidden":!0,...Mt.itemIndicator.attrs,"data-state":$.selected?"checked":"unchecked",hidden:!$.selected})},getItemGroupLabelProps(_){const{htmlFor:$}=_;return t.element({...Mt.itemGroupLabel.attrs,id:Ox(s,$),dir:a("dir"),role:"presentation"})},getItemGroupProps(_){const{id:$}=_;return t.element({...Mt.itemGroup.attrs,"data-disabled":ye(g),id:bD(s,$),"aria-labelledby":Ox(s,$),role:"group",dir:a("dir")})},getClearTriggerProps(){return t.button({...Mt.clearTrigger.attrs,id:CE(s),type:"button","aria-label":"Clear value","data-invalid":ye(p),disabled:g,hidden:!u("hasSelectedItems"),dir:a("dir"),onClick(_){_.defaultPrevented||f({type:"CLEAR.CLICK"})}})},getHiddenSelectProps(){const _=r.get("value"),$=a("multiple")?_:_?.[0];return t.select({name:a("name"),form:a("form"),disabled:g,multiple:a("multiple"),required:a("required"),"aria-hidden":!0,id:Vg(s),defaultValue:$,style:Op,tabIndex:-1,onFocus(){Ki(s)?.focus({preventScroll:!0})},"aria-labelledby":iu(s)})},getPositionerProps(){return t.element({...Mt.positioner.attrs,dir:a("dir"),id:EE(s),style:q.floating})},getContentProps(){return t.element({hidden:!x,dir:a("dir"),id:Ag(s),role:y?"listbox":"dialog",...Mt.content.attrs,"data-state":x?"open":"closed","data-placement":R,"data-activedescendant":A,"aria-activedescendant":y?A:void 0,"aria-multiselectable":a("multiple")&&y?!0:void 0,"aria-labelledby":iu(s),tabIndex:0,onKeyDown(_){if(!L||!qS(_))return;if(_.key==="Tab"&&!P2(_)){_.preventDefault();return}const $={ArrowUp(){f({type:"CONTENT.ARROW_UP"})},ArrowDown(){f({type:"CONTENT.ARROW_DOWN"})},Home(){f({type:"CONTENT.HOME"})},End(){f({type:"CONTENT.END"})},Enter(){f({type:"ITEM.CLICK",src:"keydown.enter"})},Space(K){N?f({type:"CONTENT.TYPEAHEAD",key:K.key}):$.Enter?.(K)}},G=$[gg(_)];if(G){G(_),_.preventDefault();return}const Y=ut(_);pp(Y)||ea.isValidEvent(_)&&(f({type:"CONTENT.TYPEAHEAD",key:_.key}),_.preventDefault())}})},getListProps(){return t.element({...Mt.list.attrs,tabIndex:0,role:y?void 0:"listbox","aria-labelledby":Ig(s),"aria-activedescendant":y?void 0:A,"aria-multiselectable":!y&&a("multiple")?!0:void 0})}}}var{and:Bs,not:Gi,or:SD}=Jn(),CD={props({props:e}){return{loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??SE.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Vn,onChange(r){const a=e("collection").findMany(r);return e("onValueChange")?.({value:r,items:a})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(r){e("onHighlightChange")?.({highlightedValue:r,highlightedItem:e("collection").find(r),highlightedIndex:e("collection").indexOf(r)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const r=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(r)}})}},refs(){return{typeahead:{...ea.defaultOptions}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},entry:["syncSelectElement"],watch({context:e,prop:t,track:r,action:a}){r([()=>e.get("value").toString()],()=>{a(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),r([()=>t("open")],()=>{a(["toggleVisibility"])}),r([()=>e.get("highlightedValue")],()=>{a(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{a(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:SD("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:Bs(Gi("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:Gi("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:Bs(Gi("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:Gi("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:Gi("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:Gi("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:Gi("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:Bs("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:Bs("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:Bs("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>Tx(e),isOpenControlled:({prop:e})=>e("open")!==void 0,isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState({context:e,scope:t}){return pl(ng(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){const r=e.initial("value");e.set("value",r)}})},trackDismissableElement({scope:e,send:t,prop:r}){const a=()=>Ls(e);let s=!0;return aa(a,{defer:!0,exclude:[Ki(e),yD(e)],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(c){r("onInteractOutside")?.(c),s=!(c.detail.focusable||c.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:s})}})},computePlacement({context:e,prop:t,scope:r}){const a=t("positioning");return e.set("currentPlacement",a.placement),fn(()=>Ki(r),()=>wx(r),{defer:!0,...a,onComplete(u){e.set("currentPlacement",u.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:a}){const s=u=>{const f=e.get("highlightedValue");if(f==null||a.current().type.includes("POINTER"))return;const g=Ls(r),p=t("scrollToIndexFn");if(p){const y=t("collection").indexOf(f);p?.({index:y,immediate:u,getElement:()=>rg(r,f)});return}const m=rg(r,f);Au(m,{rootEl:g,block:"nearest"})};return ve(()=>s(!0)),Ju(()=>Ls(r),{defer:!0,attributes:["data-activedescendant"],callback(){s(!1)}})}},actions:{reposition({context:e,prop:t,scope:r,event:a}){const s=()=>wx(r);fn(Ki(r),s,{...t("positioning"),...a.options,defer:!0,listeners:!1,onComplete(c){e.set("currentPlacement",c.placement)}})},toggleVisibility({send:e,prop:t,event:r}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})},highlightPreviousItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const a=t("collection").getPreviousValue(r,1,t("loopFocus"));a!=null&&e.set("highlightedValue",a)},highlightNextItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const a=t("collection").getNextValue(r,1,t("loopFocus"));a!=null&&e.set("highlightedValue",a)},highlightFirstItem({context:e,prop:t}){const r=t("collection").firstValue;e.set("highlightedValue",r)},highlightLastItem({context:e,prop:t}){const r=t("collection").lastValue;e.set("highlightedValue",r)},setInitialFocus({scope:e}){ve(()=>{nl({root:Ls(e)})?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){Tx(e)&&ve(()=>{Ki(t)?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:r}){let a=r.value??e.get("highlightedValue");if(a==null||!t("collection").has(a))return;t("onSelect")?.({value:a}),a=t("deselectable")&&!t("multiple")&&e.get("value").includes(a)?null:a,e.set("value",c=>a==null?[]:t("multiple")?vo(c,a):[a])},highlightComputedFirstItem({context:e,prop:t,computed:r}){const a=t("collection"),s=r("hasSelectedItems")?a.sort(e.get("value"))[0]:a.firstValue;e.set("highlightedValue",s)},highlightComputedLastItem({context:e,prop:t,computed:r}){const a=t("collection"),s=r("hasSelectedItems")?a.sort(e.get("value"))[0]:a.lastValue;e.set("highlightedValue",s)},highlightFirstSelectedItem({context:e,prop:t,computed:r}){if(!r("hasSelectedItems"))return;const a=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",a)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:a}){const s=t("collection").search(r.key,{state:a.get("typeahead"),currentValue:e.get("highlightedValue")});s!=null&&e.set("highlightedValue",s)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r}){t("onSelect")?.({value:r.value});const s=t("deselectable")&&!t("multiple")&&e.get("value").includes(r.value)?null:r.value;e.set("value",c=>s==null?[]:t("multiple")?vo(c,s):[s])},clearItem({context:e,event:t}){e.set("value",r=>r.filter(a=>a!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[r]=e.get("value"),a=t("collection").getPreviousValue(r);a&&e.set("value",[a])},selectNextItem({context:e,prop:t}){const[r]=e.get("value"),a=t("collection").getNextValue(r);a&&e.set("value",[a])},selectFirstItem({context:e,prop:t}){const r=t("collection").firstValue;r&&e.set("value",[r])},selectLastItem({context:e,prop:t}){const r=t("collection").lastValue;r&&e.set("value",[r])},selectMatchingItem({context:e,prop:t,event:r,refs:a}){const s=t("collection").search(r.key,{state:a.get("typeahead"),currentValue:e.get("value")[0]});s!=null&&e.set("value",[s])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){const r=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>rg(t,r)})}else Ls(t)?.scrollTo(0,0)},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},syncSelectElement({context:e,prop:t,scope:r}){const a=ng(r);if(a){if(e.get("value").length===0&&!t("multiple")){a.selectedIndex=-1;return}for(const s of a.options)s.selected=e.get("value").includes(s.value)}},syncCollection({context:e,prop:t}){const r=t("collection"),a=r.find(e.get("highlightedValue"));a&&e.set("highlightedItem",a);const s=r.findMany(e.get("value"));e.set("selectedItems",s)},syncSelectedItems({context:e,prop:t}){const r=t("collection"),a=e.get("selectedItems"),c=e.get("value").map(u=>a.find(g=>r.getItemValue(g)===u)||r.find(u));e.set("selectedItems",c)},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),a=e.get("highlightedValue"),s=a?r.find(a):null;e.set("highlightedItem",s)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{const t=ng(e);if(!t)return;const r=e.getWin(),a=new r.Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(a)})}}}};function Tx(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}ge()(["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"]);ge()(["item","persistFocus"]);ge()(["id"]);ge()(["htmlFor"]);const ED=e=>{const t=O.useId(),{dir:r}=vi(),{getRootNode:a}=pi(),s=sa(),c={id:t,ids:{label:s?.ids.label,hiddenSelect:s?.ids.control},disabled:s?.disabled,readOnly:s?.readOnly,invalid:s?.invalid,required:s?.required,dir:r,getRootNode:a,...e},u=_r(CD,c);return xD(u,yi)},OD=(e,t)=>{const[r,a]=bi(e),[s,c]=Nt()(a,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),u=ED(s),f=er(ae({present:u.open},r)),g=ae(u.getRootProps(),c);return z.jsx(sE,{value:u,children:z.jsx(Vr,{value:f,children:z.jsx(ce.div,{...g,ref:t})})})},wD=O.forwardRef(OD),TD=(e,t)=>{const[r,a]=bi(e),[{value:s},c]=Nt()(a,["value"]),u=er(ae({present:s.open},r)),f=ae(s.getRootProps(),c);return z.jsx(sE,{value:s,children:z.jsx(Vr,{value:u,children:z.jsx(ce.div,{...f,ref:t})})})},RD=O.forwardRef(TD),OE=O.forwardRef((e,t)=>{const r=hn(),a=ae(r.getTriggerProps(),e);return z.jsx(ce.button,{...a,ref:t})});OE.displayName="SelectTrigger";const wE=O.forwardRef((e,t)=>{const{children:r,placeholder:a,...s}=e,c=hn(),u=ae(c.getValueTextProps(),s);return z.jsx(ce.span,{...u,ref:t,children:r||c.valueAsString||a})});wE.displayName="SelectValueText";var TE=pe("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");TE.build();ge()(["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"]);ge()(["index","name"]);const[RE,Eo]=kt({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),kE=O.forwardRef((e,t)=>{const r=Eo(),a=ae(r.getControlProps(),e);return z.jsx(ce.span,{...a,ref:t})});kE.displayName="SwitchControl";const NE=O.forwardRef((e,t)=>{const r=Eo(),a=ae(r.getHiddenInputProps(),e),s=sa();return z.jsx(ce.input,{"aria-describedby":s?.ariaDescribedby,...a,ref:t})});NE.displayName="SwitchHiddenInput";const PE=O.forwardRef((e,t)=>{const r=Eo(),a=ae(r.getLabelProps(),e);return z.jsx(ce.span,{...a,ref:t})});PE.displayName="SwitchLabel";var AE=pe("switch").parts("root","label","control","thumb"),au=AE.build(),IE=e=>e.ids?.root??`switch:${e.id}`,Rx=e=>e.ids?.label??`switch:${e.id}:label`,kD=e=>e.ids?.thumb??`switch:${e.id}:thumb`,ND=e=>e.ids?.control??`switch:${e.id}:control`,Dg=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,PD=e=>e.getById(IE(e)),lo=e=>e.getById(Dg(e));function AD(e,t){const{context:r,send:a,prop:s,scope:c}=e,u=s("disabled"),f=s("readOnly"),g=!!r.get("checked"),p=!u&&r.get("focused"),m=!u&&r.get("focusVisible"),y={"data-active":ye(r.get("active")),"data-focus":ye(p),"data-focus-visible":ye(m),"data-readonly":ye(f),"data-hover":ye(r.get("hovered")),"data-disabled":ye(u),"data-state":g?"checked":"unchecked","data-invalid":ye(s("invalid"))};return{checked:g,disabled:u,focused:p,setChecked(v){a({type:"CHECKED.SET",checked:v,isTrusted:!1})},toggleChecked(){a({type:"CHECKED.TOGGLE",checked:g,isTrusted:!1})},getRootProps(){return t.label({...au.root.attrs,...y,dir:s("dir"),id:IE(c),htmlFor:Dg(c),onPointerMove(){u||a({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){u||a({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(v){if(u)return;ut(v)===lo(c)&&v.stopPropagation(),gl()&&lo(c)?.focus()}})},getLabelProps(){return t.element({...au.label.attrs,...y,dir:s("dir"),id:Rx(c)})},getThumbProps(){return t.element({...au.thumb.attrs,...y,dir:s("dir"),id:kD(c),"aria-hidden":!0})},getControlProps(){return t.element({...au.control.attrs,...y,dir:s("dir"),id:ND(c),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:Dg(c),type:"checkbox",required:s("required"),defaultChecked:g,disabled:u,"aria-labelledby":Rx(c),"aria-invalid":s("invalid"),name:s("name"),form:s("form"),value:s("value"),style:Op,onFocus(){const v=sl();a({type:"CONTEXT.SET",context:{focused:!0,focusVisible:v}})},onBlur(){a({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(v){if(f){v.preventDefault();return}const x=v.currentTarget.checked;a({type:"CHECKED.SET",checked:x,isTrusted:!0})}})}}}var{not:kx}=Jn(),ID={props({props:e}){return{defaultChecked:!1,label:"switch",value:"on",...e}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(r){e("onCheckedChange")?.({checked:r})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:r,action:a}){e([()=>t("disabled")],()=>{a(["removeFocusIfNeeded"])}),e([()=>r.get("checked")],()=>{a(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:kx("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:kx("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:r}){if(!e("isDisabled"))return iC({pointerNode:PD(t),keyboardNode:lo(t),isValidKey:a=>a.key===" ",onPress:()=>r.set("active",!1),onPressStart:()=>r.set("active",!0),onPressEnd:()=>r.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return Fp({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:r}){return pl(lo(r),{onFieldsetDisabledChange(a){e.set("fieldsetDisabled",a)},onFormReset(){const a=e.initial("checked");t({type:"CHECKED.SET",checked:!!a,src:"form-reset"})}})}},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,scope:t}){const r=lo(t);r&&vp(r,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){const r=lo(t);ZS(r,{checked:e.get("checked")})}}}};ge()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const _D=e=>{const t=O.useId(),{getRootNode:r}=pi(),{dir:a}=vi(),s=sa(),c={id:t,ids:{label:s?.ids.label,hiddenInput:s?.ids.control},dir:a,disabled:s?.disabled,readOnly:s?.readOnly,invalid:s?.invalid,required:s?.required,getRootNode:r,...e},u=_r(ID,c);return AD(u,yi)},_E=O.forwardRef((e,t)=>{const[r,a]=Nt()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),s=_D(r),c=ae(s.getRootProps(),a);return z.jsx(RE,{value:s,children:z.jsx(ce.label,{...c,ref:t})})});_E.displayName="SwitchRoot";const VE=O.forwardRef((e,t)=>{const[{value:r},a]=Nt()(e,["value"]),s=ae(r.getRootProps(),a);return z.jsx(RE,{value:r,children:z.jsx(ce.label,{...s,ref:t})})});VE.displayName="SwitchRootProvider";const DE=O.forwardRef((e,t)=>{const r=Eo(),a=ae(r.getThumbProps(),e);return z.jsx(ce.span,{...a,ref:t})});DE.displayName="SwitchThumb";const[zE,dd]=kt({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),ME=O.forwardRef((e,t)=>{const[r,a]=Nt()(e,["value"]),s=dd(),c=PC(),u=er({...c,present:s.value===e.value,immediate:!0}),f=ae(s.getContentProps(r),u.getPresenceProps(),a);return z.jsx(Vr,{value:u,children:u.unmounted?null:z.jsx(ce.div,{...f,ref:mi(u.ref,t)})})});ME.displayName="TabContent";const LE=O.forwardRef((e,t)=>{const r=dd(),a=ae(r.getIndicatorProps(),e);return z.jsx(ce.div,{...a,ref:t})});LE.displayName="TabIndicator";const BE=O.forwardRef((e,t)=>{const r=dd(),a=ae(r.getListProps(),e);return z.jsx(ce.div,{...a,ref:t})});BE.displayName="TabList";const FE=O.forwardRef((e,t)=>{const[r,a]=Nt()(e,["disabled","value"]),s=dd(),c=ae(s.getTriggerProps(r),a);return z.jsx(ce.button,{...c,ref:t})});FE.displayName="TabTrigger";var VD=pe("tabs").parts("root","list","trigger","content","indicator"),Fs=VD.build(),DD=e=>e.ids?.root??`tabs:${e.id}`,Xs=e=>e.ids?.list??`tabs:${e.id}:list`,zg=(e,t)=>e.ids?.content??`tabs:${e.id}:content-${t}`,Ji=(e,t)=>e.ids?.trigger??`tabs:${e.id}:trigger-${t}`,HE=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,zD=e=>e.getById(Xs(e)),MD=(e,t)=>e.getById(zg(e,t)),Cu=(e,t)=>e.getById(Ji(e,t)),Nx=e=>e.getById(HE(e)),xl=e=>{const r=`[role=tab][data-ownedby='${CSS.escape(Xs(e))}']:not([disabled])`;return rl(zD(e),r)},LD=e=>go(xl(e)),BD=e=>qu(xl(e)),FD=(e,t)=>oC(xl(e),Ji(e,t.value),t.loopFocus),HD=(e,t)=>sC(xl(e),Ji(e,t.value),t.loopFocus),$E=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),$D=(e,t)=>{const r=aC(xl(e),Ji(e,t));return UE($E(r))},UE=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`});function UD(e,t){const{state:r,send:a,context:s,prop:c,scope:u}=e,f=c("translations"),g=r.matches("focused"),p=c("orientation")==="vertical",m=c("orientation")==="horizontal",y=c("composite");function v(x){return{selected:s.get("value")===x.value,focused:s.get("focusedValue")===x.value,disabled:!!x.disabled}}return{value:s.get("value"),focusedValue:s.get("focusedValue"),setValue(x){a({type:"SET_VALUE",value:x})},clearValue(){a({type:"CLEAR_VALUE"})},setIndicatorRect(x){const E=Ji(u,x);a({type:"SET_INDICATOR_RECT",id:E})},syncTabIndex(){a({type:"SYNC_TAB_INDEX"})},selectNext(x){a({type:"TAB_FOCUS",value:x,src:"selectNext"}),a({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(x){a({type:"TAB_FOCUS",value:x,src:"selectPrev"}),a({type:"ARROW_PREV",src:"selectPrev"})},focus(){const x=s.get("value");x&&Cu(u,x)?.focus()},getRootProps(){return t.element({...Fs.root.attrs,id:DD(u),"data-orientation":c("orientation"),"data-focus":ye(g),dir:c("dir")})},getListProps(){return t.element({...Fs.list.attrs,id:Xs(u),role:"tablist",dir:c("dir"),"data-focus":ye(g),"aria-orientation":c("orientation"),"data-orientation":c("orientation"),"aria-label":f?.listLabel,onKeyDown(x){if(x.defaultPrevented||!qS(x)||YS(x))return;const E={ArrowDown(){m||a({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){m||a({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){p||a({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){p||a({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){a({type:"HOME"})},End(){a({type:"END"})}};let C=gg(x,{dir:c("dir"),orientation:c("orientation")});const w=E[C];if(w){x.preventDefault(),w(x);return}}})},getTriggerState:v,getTriggerProps(x){const{value:E,disabled:C}=x,w=v(x);return t.button({...Fs.trigger.attrs,role:"tab",type:"button",disabled:C,dir:c("dir"),"data-orientation":c("orientation"),"data-disabled":ye(C),"aria-disabled":C,"data-value":E,"aria-selected":w.selected,"data-selected":ye(w.selected),"data-focus":ye(w.focused),"aria-controls":w.selected?zg(u,E):void 0,"data-ownedby":Xs(u),"data-ssr":ye(s.get("ssr")),id:Ji(u,E),tabIndex:w.selected&&y?0:-1,onFocus(){a({type:"TAB_FOCUS",value:E})},onBlur(T){T.relatedTarget?.getAttribute("role")!=="tab"&&a({type:"TAB_BLUR"})},onClick(T){T.defaultPrevented||g2(T)||C||(gl()&&T.currentTarget.focus(),a({type:"TAB_CLICK",value:E}))}})},getContentProps(x){const{value:E}=x,C=s.get("value")===E;return t.element({...Fs.content.attrs,dir:c("dir"),id:zg(u,E),tabIndex:y?0:-1,"aria-labelledby":Ji(u,E),role:"tabpanel","data-ownedby":Xs(u),"data-selected":ye(C),"data-orientation":c("orientation"),hidden:!C})},getIndicatorProps(){const x=s.get("indicatorRect"),E=s.get("indicatorTransition");return t.element({id:HE(u),...Fs.indicator.attrs,dir:c("dir"),"data-orientation":c("orientation"),style:{"--transition-property":"left, right, top, bottom, width, height","--left":x.left,"--top":x.top,"--width":x.width,"--height":x.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:E?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[m?"left":"top"]:m?"var(--left)":"var(--top)"}})}}}var{createMachine:jD}=wp(),GD=jD({props({props:e}){return{dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(t){xp(t.node)},defaultValue:null,...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){e("onValueChange")?.({value:r})}})),focusedValue:t(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(r){e("onFocusChange")?.({focusedValue:r})}})),ssr:t(()=>({defaultValue:!0})),indicatorTransition:t(()=>({defaultValue:!1})),indicatorRect:t(()=>({defaultValue:{left:"0px",top:"0px",width:"0px",height:"0px"}}))}},watch({context:e,prop:t,track:r,action:a}){r([()=>e.get("value")],()=>{a(["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),r([()=>t("dir"),()=>t("orientation")],()=>{a(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e("activationMode")==="automatic"},actions:{selectFocusedTab({context:e,prop:t}){ve(()=>{const r=e.get("focusedValue");if(!r)return;const s=t("deselectable")&&e.get("value")===r?null:r;e.set("value",s)})},setFocusedValue({context:e,event:t,flush:r}){t.value!=null&&r(()=>{e.set("focusedValue",t.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t,prop:r}){const a=r("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",a?null:t.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){ve(()=>{LD(e)?.focus()})},focusLastTab({scope:e}){ve(()=>{BD(e)?.focus()})},focusNextTab({context:e,prop:t,scope:r,event:a}){const s=a.value??e.get("focusedValue");if(!s)return;const c=FD(r,{value:s,loopFocus:t("loopFocus")});ve(()=>{t("composite")?c?.focus():c?.dataset.value!=null&&e.set("focusedValue",c.dataset.value)})},focusPrevTab({context:e,prop:t,scope:r,event:a}){const s=a.value??e.get("focusedValue");if(!s)return;const c=HD(r,{value:s,loopFocus:t("loopFocus")});ve(()=>{t("composite")?c?.focus():c?.dataset.value!=null&&e.set("focusedValue",c.dataset.value)})},syncTabIndex({context:e,scope:t}){ve(()=>{const r=e.get("value");if(!r)return;const a=MD(t,r);if(!a)return;yp(a).length>0?a.removeAttribute("tabindex"):a.setAttribute("tabindex","0")})},cleanupObserver({refs:e}){const t=e.get("indicatorCleanup");t&&t()},allowIndicatorTransition({context:e}){e.set("indicatorTransition",!0)},setIndicatorRect({context:e,event:t,scope:r}){const a=t.id??e.get("value");if(!Nx(r))return;if(!a){e.set("indicatorTransition",!1);return}Cu(r,a)&&(e.set("indicatorRect",$D(r,a)),vl(()=>{e.set("indicatorTransition",!1)}))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:t,scope:r}){const a=t.get("indicatorCleanup");a&&a();const s=e.get("value");if(!s){e.set("indicatorTransition",!1);return}const c=Cu(r,s),u=Nx(r);if(!c||!u)return;const f=U2([c],{measure(g){return $E(g)},onEntry({rects:g}){const[p]=g;e.set("indicatorRect",UE(p))}});t.set("indicatorCleanup",f)},navigateIfNeeded({context:e,prop:t,scope:r}){const a=e.get("value");if(!a)return;const s=Cu(r,a);e2(s)&&t("navigate")?.({value:a,node:s,href:s.href})}}}});ge()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);ge()(["disabled","value"]);ge()(["value"]);const WD=e=>{const t=O.useId(),{getRootNode:r}=pi(),{dir:a}=vi(),s={id:t,dir:a,getRootNode:r,...e},c=_r(GD,s);return UD(c,yi)},jE=O.forwardRef((e,t)=>{const[r,a]=ad(e),[s,c]=Nt()(a,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),u=WD(s),f=ae(u.getRootProps(),c);return z.jsx(zE,{value:u,children:z.jsx(id,{value:r,children:z.jsx(ce.div,{...f,ref:t})})})});jE.displayName="TabsRoot";const GE=O.forwardRef((e,t)=>{const[r,a]=ad(e),[{value:s},c]=Nt()(a,["value"]),u=ae(s.getRootProps(),c);return z.jsx(zE,{value:s,children:z.jsx(id,{value:r,children:z.jsx(ce.div,{...u,ref:t})})})});GE.displayName="TabsRootProvider";const[WE,Sl]=kt({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),qE=O.forwardRef((e,t)=>{const r=Sl(),a=ae(r.getArrowProps(),e);return z.jsx(ce.div,{...a,ref:t})});qE.displayName="TooltipArrow";const YE=O.forwardRef((e,t)=>{const r=Sl(),a=ae(r.getArrowTipProps(),e);return z.jsx(ce.div,{...a,ref:t})});YE.displayName="TooltipArrowTip";const XE=O.forwardRef((e,t)=>{const r=Sl(),a=tr(),s=ae(r.getContentProps(),a.getPresenceProps(),e);return a.unmounted?null:z.jsx(ce.div,{...s,ref:mi(a.ref,t)})});XE.displayName="TooltipContent";const KE=O.forwardRef((e,t)=>{const r=Sl(),a=ae(r.getPositionerProps(),e);return tr().unmounted?null:z.jsx(ce.div,{...a,ref:t})});KE.displayName="TooltipPositioner";var QE=pe("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),Hs=QE.build(),ZE=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,qD=e=>e.ids?.content??`tooltip:${e.id}:content`,YD=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,JE=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,ig=e=>e.getById(ZE(e)),Px=e=>e.getById(JE(e)),Tr=HN({id:null});function XD(e,t){const{state:r,context:a,send:s,scope:c,prop:u,event:f}=e,g=u("id"),p=!!u("aria-label"),m=r.matches("open","closing"),y=ZE(c),v=qD(c),x=u("disabled"),E=Bp({...u("positioning"),placement:a.get("currentPlacement")});return{open:m,setOpen(C){r.matches("open","closing")!==C&&s({type:C?"open":"close"})},reposition(C={}){s({type:"positioning.set",options:C})},getTriggerProps(){return t.button({...Hs.trigger.attrs,id:y,dir:u("dir"),"data-expanded":ye(m),"data-state":m?"open":"closed","aria-describedby":m?v:void 0,onClick(C){C.defaultPrevented||x||u("closeOnClick")&&s({type:"close",src:"trigger.click"})},onFocus(C){queueMicrotask(()=>{C.defaultPrevented||x||f.src!=="trigger.pointerdown"&&sl()&&s({type:"open",src:"trigger.focus"})})},onBlur(C){C.defaultPrevented||x||g===Tr.get("id")&&s({type:"close",src:"trigger.blur"})},onPointerDown(C){C.defaultPrevented||x||XS(C)&&u("closeOnPointerDown")&&g===Tr.get("id")&&s({type:"close",src:"trigger.pointerdown"})},onPointerMove(C){C.defaultPrevented||x||C.pointerType!=="touch"&&s({type:"pointer.move"})},onPointerLeave(){x||s({type:"pointer.leave"})},onPointerCancel(){x||s({type:"pointer.leave"})}})},getArrowProps(){return t.element({id:YD(c),...Hs.arrow.attrs,dir:u("dir"),style:E.arrow})},getArrowTipProps(){return t.element({...Hs.arrowTip.attrs,dir:u("dir"),style:E.arrowTip})},getPositionerProps(){return t.element({id:JE(c),...Hs.positioner.attrs,dir:u("dir"),style:E.floating})},getContentProps(){return t.element({...Hs.content.attrs,dir:u("dir"),hidden:!m,"data-state":m?"open":"closed",role:p?void 0:"tooltip",id:p?void 0:v,"data-placement":a.get("currentPlacement"),onPointerEnter(){s({type:"content.pointer.move"})},onPointerLeave(){s({type:"content.pointer.leave"})},style:{pointerEvents:u("interactive")?"auto":"none"}})}}}var{and:KD,not:Ax}=Jn(),QD={initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){const t=e.closeOnClick??!0,r=e.closeOnPointerDown??t;return{id:"x",openDelay:1e3,closeDelay:500,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:r,closeOnClick:t,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:r}){e([()=>r("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:KD("noVisibleTooltip",Ax("hasPointerMoveOpened")),target:"opening"},{guard:Ax("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>Tr.get("id")===null,isVisible:({prop:e})=>e("id")===Tr.get("id"),isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>e("open")!==void 0},actions:{setGlobalId:({prop:e})=>{Tr.set("id",e("id"))},clearGlobalId:({prop:e})=>{e("id")===Tr.get("id")&&Tr.set("id",null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:r,scope:a})=>{if(t.type!=="positioning.set")return;const s=()=>Px(a);return fn(ig(a),s,{...r("positioning"),...t.options,defer:!0,listeners:!1,onComplete(c){e.set("currentPlacement",c.placement)}})},toggleVisibility:({prop:e,event:t,send:r})=>{queueMicrotask(()=>{r({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>Fp({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:r})=>{e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const a=()=>Px(r);return fn(ig(r),a,{...t("positioning"),defer:!0,onComplete(s){e.set("currentPlacement",s.placement)}})},trackPointerlockChange:({send:e,scope:t})=>{const r=t.getDoc();return De(r,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:r})=>{if(!t("closeOnScroll"))return;const a=ig(r);if(!a)return;const c=tC(a).map(u=>De(u,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{c.forEach(u=>u?.())}},trackStore:({prop:e,send:t})=>{let r;return queueMicrotask(()=>{r=Tr.subscribe(()=>{Tr.get("id")!==e("id")&&t({type:"close",src:"id.change"})})}),()=>r?.()},trackEscapeKey:({send:e,prop:t})=>t("closeOnEscape")?De(document,"keydown",a=>{YS(a)||a.key==="Escape"&&(a.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0):void 0,waitForOpenDelay:({send:e,prop:t})=>{const r=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(r)},waitForCloseDelay:({send:e,prop:t})=>{const r=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(r)}}}};ge()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const ZD=e=>{const t=O.useId(),{getRootNode:r}=pi(),{dir:a}=vi(),s={id:t,dir:a,getRootNode:r,...e},c=_r(QD,s);return XD(c,yi)},JD=e=>{const[t,{children:r,...a}]=bi(e),s=ZD(a),c=er(ae({present:s.open},t));return z.jsx(WE,{value:s,children:z.jsx(Vr,{value:c,children:r})})},ez=e=>{const[t,{value:r,children:a}]=bi(e),s=er(ae({present:r.open},t));return z.jsx(WE,{value:r,children:z.jsx(Vr,{value:s,children:a})})},eO=O.forwardRef((e,t)=>{const r=Sl(),a=ae(r.getTriggerProps(),e);return z.jsx(ce.button,{...a,ref:t})});eO.displayName="TooltipTrigger";function tO(e,t=[]){const r=Object.assign({},e);for(const a of t)a in r&&delete r[a];return r}const tz=(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 s=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=s??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 s="--mix-"+e;return{[s]:a.value,[e]:`var(${s}, ${a.color})`}};function Mg(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Mg(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Mg(e[r]);return t}function Lg(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!Gt(e[r])&&Gt(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Gt(t[r]))Lg(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let a=0;for(;a<t[r].length;a++)Gt(e[r][a])&&Gt(t[r][a])?Lg(e[r][a],t[r][a]):e[r][a]=t[r][a]}else Object.assign(e,{[r]:t[r]});return e}function Oo(e,...t){for(const r of t)Lg(e,r);return e}const Bg=e=>e!=null;function Zn(e,t,r={}){const{stop:a,getKey:s}=r;function c(u,f=[]){if(Gt(u)||Array.isArray(u)){const g={};for(const[p,m]of Object.entries(u)){const y=s?.(p,m)??p,v=[...f,y];if(a?.(u,v))return t(u,f);const x=c(m,v);Bg(x)&&(g[y]=x)}return g}return t(u,f)}return c(e)}function fd(e,t){return Array.isArray(e)?e.map(r=>Bg(r)?t(r):r):Gt(e)?Zn(e,r=>t(r)):Bg(e)?t(e):e}const ou=["value","type","description"],nz=e=>e&&typeof e=="object"&&!Array.isArray(e),nO=(...e)=>{const t=Oo({},...e.map(Mg));return t.theme?.tokens&&Zn(t.theme.tokens,r=>{const c=Object.keys(r).filter(f=>!ou.includes(f)).length>0,u=ou.some(f=>r[f]!=null);return c&&u&&(r.DEFAULT||(r.DEFAULT={}),ou.forEach(f=>{var g;r[f]!=null&&((g=r.DEFAULT)[f]||(g[f]=r[f]),delete r[f])})),r},{stop(r){return nz(r)&&Object.keys(r).some(a=>ou.includes(a)||a!==a.toLowerCase()&&a!==a.toUpperCase())}}),t},rz=e=>e,pt=e=>e,xe=e=>e,iz=e=>e,az=e=>e,wo=e=>e,oz=e=>e,sz=e=>e,lz=e=>e;function rO(){const e=t=>t;return new Proxy(e,{get(){return e}})}const dt=rO(),qp=rO(),iO=e=>e,cz=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function uz(e){return`${e}`.replace(cz,t=>`\\${t}`)}const dz=/[A-Z]/g;function fz(e){return e.replace(dz,t=>`-${t.toLowerCase()}`)}function aO(e,t={}){const{fallback:r="",prefix:a=""}=t,s=fz(["-",a,uz(e)].filter(Boolean).join("-"));return{var:s,ref:`var(${s}${r?`, ${r}`:""})`}}const hz=e=>/^var\(--.+\)$/.test(e),St=(e,t)=>t!=null?`${e}(${t})`:t,Wi=e=>{if(hz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},Ix=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]??{}}}),gz=Ge("borderColor"),Er=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),pz=rz({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"}),co=aO("bg-currentcolor"),_x=e=>e===co.ref||e==="currentBg",je=e=>({...e("colors"),currentBg:co}),mz=iO({conditions:pz,utilities:{background:{values:je,shorthand:["bg"],transform(e,t){if(_x(t.raw))return{background:co.ref};const r=Ge("background")(e,t);return{...r,[co.var]:r?.background}}},backgroundColor:{values:je,shorthand:["bgColor"],transform(e,t){if(_x(t.raw))return{backgroundColor:co.ref};const r=Ge("backgroundColor")(e,t);return{...r,[co.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:je,transform:Ge("--gradient-from")},gradientTo:{values:je,transform:Ge("--gradient-to")},gradientVia:{values:je,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:je,transform:Ge("borderColor")},borderTopColor:{values:je,transform:Ge("borderTopColor")},borderBlockStartColor:{values:je,transform:Ge("borderBlockStartColor")},borderBottomColor:{values:je,transform:Ge("borderBottomColor")},borderBlockEndColor:{values:je,transform:Ge("borderBlockEndColor")},borderLeftColor:{values:je,transform:Ge("borderLeftColor")},borderInlineStartColor:{values:je,shorthand:["borderStartColor"],transform:Ge("borderInlineStartColor")},borderRightColor:{values:je,transform:Ge("borderRightColor")},borderInlineEndColor:{values:je,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:je,transform:Ge("color")},fill:{values:je,transform:Ge("fill")},stroke:{values:je,transform:Ge("stroke")},accentColor:{values:je,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:je,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":gz(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:je,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":St("blur",e)})},brightness:{transform:e=>({"--brightness":St("brightness",e)})},contrast:{transform:e=>({"--contrast":St("contrast",e)})},grayscale:{transform:e=>({"--grayscale":St("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":St("hue-rotate",Wi(e))})},invert:{transform:e=>({"--invert":St("invert",e)})},saturate:{transform:e=>({"--saturate":St("saturate",e)})},sepia:{transform:e=>({"--sepia":St("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":St("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":St("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":St("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":St("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":St("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":St("hue-rotate",Wi(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":St("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":St("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":St("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":St("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:je,transform:Ge("outlineColor")},focusRing:Ix("&:is(:focus, [data-focus])"),focusVisibleRing:Ix("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:je,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:je,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:je,transform:Ge("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:je,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:je,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":Wi(e)})},skewY:{transform:e=>({"--skew-y":Wi(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:Wi(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Wi(e)}}},rotateY:{transform(e){return{"--rotate-y":Wi(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 Er("all");case"position":return Er("left, right, top, bottom, inset-inline, inset-block");case"colors":return Er("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Er("opacity");case"shadow":return Er("box-shadow");case"transform":return Er("transform");case"size":return Er("width, height");case"backgrounds":return Er("background, background-color, background-image, background-position");case"common":return Er("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 vz[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:je,transform:Ge("caretColor")},cursor:{values:"cursor"}}}),vz={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 bz="",yz=bz.split(","),xz="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",Sz=xz.split(",").concat(yz),Cz=new Map(Sz.map(e=>[e,!0]));function Ez(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var Oz=/&|@/,wz=Ez(e=>Cz.has(e)||e.startsWith("--")||Oz.test(e));function oO(e,t){const r={};return Zn(e,(a,s)=>{a&&(r[s.join(".")]=a.value)},{stop:t}),r}var ag,Vx;function Tz(){if(Vx)return ag;Vx=1,ag=c,c.default=c,c.stable=p,c.stableStringify=p;var e="[...]",t="[Circular]",r=[],a=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function c(v,x,E,C){typeof C>"u"&&(C=s()),f(v,"",0,[],void 0,0,C);var w;try{a.length===0?w=JSON.stringify(v,x,E):w=JSON.stringify(v,y(x),E)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var T=r.pop();T.length===4?Object.defineProperty(T[0],T[1],T[3]):T[0][T[1]]=T[2]}}return w}function u(v,x,E,C){var w=Object.getOwnPropertyDescriptor(C,E);w.get!==void 0?w.configurable?(Object.defineProperty(C,E,{value:v}),r.push([C,E,x,w])):a.push([x,E,v]):(C[E]=v,r.push([C,E,x]))}function f(v,x,E,C,w,T,R){T+=1;var N;if(typeof v=="object"&&v!==null){for(N=0;N<C.length;N++)if(C[N]===v){u(t,v,x,w);return}if(typeof R.depthLimit<"u"&&T>R.depthLimit){u(e,v,x,w);return}if(typeof R.edgesLimit<"u"&&E+1>R.edgesLimit){u(e,v,x,w);return}if(C.push(v),Array.isArray(v))for(N=0;N<v.length;N++)f(v[N],N,N,C,v,T,R);else{var L=Object.keys(v);for(N=0;N<L.length;N++){var A=L[N];f(v[A],A,N,C,v,T,R)}}C.pop()}}function g(v,x){return v<x?-1:v>x?1:0}function p(v,x,E,C){typeof C>"u"&&(C=s());var w=m(v,"",0,[],void 0,0,C)||v,T;try{a.length===0?T=JSON.stringify(w,x,E):T=JSON.stringify(w,y(x),E)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var R=r.pop();R.length===4?Object.defineProperty(R[0],R[1],R[3]):R[0][R[1]]=R[2]}}return T}function m(v,x,E,C,w,T,R){T+=1;var N;if(typeof v=="object"&&v!==null){for(N=0;N<C.length;N++)if(C[N]===v){u(t,v,x,w);return}try{if(typeof v.toJSON=="function")return}catch{return}if(typeof R.depthLimit<"u"&&T>R.depthLimit){u(e,v,x,w);return}if(typeof R.edgesLimit<"u"&&E+1>R.edgesLimit){u(e,v,x,w);return}if(C.push(v),Array.isArray(v))for(N=0;N<v.length;N++)m(v[N],N,N,C,v,T,R);else{var L={},A=Object.keys(v).sort(g);for(N=0;N<A.length;N++){var U=A[N];m(v[U],U,N,C,v,T,R),L[U]=v[U]}if(typeof w<"u")r.push([w,x,v]),w[x]=L;else return L}C.pop()}}function y(v){return v=typeof v<"u"?v:function(x,E){return E},function(x,E){if(a.length>0)for(var C=0;C<a.length;C++){var w=a[C];if(w[1]===x&&w[0]===E){E=w[2],a.splice(C,1);break}}return v.call(this,x,E)}}return ag}var Rz=Tz();const kz=ep(Rz),In=e=>{const t=Object.create(null);function r(...a){const s=a.map(c=>kz(c)).join("|");return t[s]===void 0&&(t[s]=e(...a)),t[s]}return r},sO=16,Bu="px",Yp="em",Ks="rem";function lO(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Bu}|${Yp}|${Ks}`);return e.match(new RegExp(`${t.source}(${r.source})`))?.[1]}function cO(e=""){if(typeof e=="number")return`${e}px`;const t=lO(e);if(!t||t===Bu)return e;if(t===Yp||t===Ks)return`${parseFloat(e)*sO}${Bu}`}function uO(e=""){const t=lO(e);if(!t||t===Ks)return e;if(t===Yp)return`${parseFloat(e)}${Ks}`;if(t===Bu)return`${parseFloat(e)/sO}${Ks}`}const Nz=e=>e.charAt(0).toUpperCase()+e.slice(1);function Pz(e){const t=Az(e),r=Object.fromEntries(t);function a(v){return r[v]}function s(v){return eo(a(v))}function c(){const v=Object.keys(r),x=Iz(v),E=v.flatMap(C=>{const w=a(C),T=[`${C}Down`,eo({max:Eu(w.min)})],R=[C,eo({min:w.min})],N=[`${C}Only`,s(C)];return[R,N,T]}).filter(([,C])=>C!=="").concat(x.map(([C,w])=>{const T=a(C),R=a(w);return[`${C}To${Nz(w)}`,eo({min:T.min,max:Eu(R.min)})]}));return Object.fromEntries(E)}function u(){const v=c();return Object.fromEntries(Object.entries(v))}const f=u(),g=v=>f[v];function p(){return["base",...Object.keys(r)]}function m(v){return eo({min:a(v).min})}function y(v){return eo({max:Eu(a(v).min)})}return{values:Object.values(r),only:s,keys:p,conditions:f,getCondition:g,up:m,down:y}}function Eu(e){const t=parseFloat(cO(e)??"")-.04;return uO(`${t}px`)}function Az(e){return Object.entries(e).sort(([,r],[,a])=>parseInt(r,10)<parseInt(a,10)?-1:1).map(([r,a],s,c)=>{let u=null;return s<=c.length-1&&(u=c[s+1]?.[1]),u!=null&&(u=Eu(u)),[r,{name:r,min:uO(a),max:u}]})}function Iz(e){const t=[];return e.forEach((r,a)=>{let s=a;s++;let c=e[s];for(;c;)t.push([r,c]),s++,c=e[s]}),t}function eo({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const _z=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,a])=>t(r,a))),Vz=e=>{const{breakpoints:t,conditions:r={}}=e,a=_z(r,(m,y)=>[`_${m}`,y]),s=Object.assign({},a,t.conditions);function c(){return Object.keys(s)}function u(m){return c().includes(m)||/^@|&|&$/.test(m)||m.startsWith("_")}function f(m){return m.filter(y=>y!=="base").sort((y,v)=>{const x=u(y),E=u(v);return x&&!E?1:!x&&E?-1:0})}function g(m){return m.startsWith("@breakpoint")?t.getCondition(m.replace("@breakpoint ","")):m}function p(m){return Reflect.get(s,m)||m}return{keys:c,sort:f,has:u,resolve:p,breakpoints:t.keys(),expandAtRule:g}},dO=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
63
+ )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
64
+ )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),Dz=dO("width"),zz=dO("height"),fO=e=>({isMin:Fx(e.minMax,e.maxMin,e.min),isMax:Fx(e.maxMin,e.minMax,e.max)}),{isMin:Fg,isMax:Dx}=fO(Dz),{isMin:Hg,isMax:zx}=fO(zz),Mx=/print/i,Lx=/^print$/i,Mz=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Lz=/(\d)/,qs=Number.MAX_VALUE,Bz={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Bx(e){const t=Mz.exec(e)||(Fg(e)||Hg(e)?Lz.exec(e):null);if(!t)return qs;if(t[0]==="0")return 0;const r=parseFloat(t[1]),a=t[2];return r*(Bz[a]||1)}function Fx(e,t,r){return a=>e.test(a)||!t.test(a)&&r.test(a)}function Fz(e,t){const r=Mx.test(e),a=Lx.test(e),s=Mx.test(t),c=Lx.test(t);return r&&s?!a&&c?1:a&&!c?-1:e.localeCompare(t):r?1:s?-1:null}const Hz=In((e,t)=>{const r=Fz(e,t);if(r!==null)return r;const a=Fg(e)||Hg(e),s=Dx(e)||zx(e),c=Fg(t)||Hg(t),u=Dx(t)||zx(t);if(a&&u)return-1;if(s&&c)return 1;const f=Bx(e),g=Bx(t);return f===qs&&g===qs?e.localeCompare(t):f===qs?1:g===qs?-1:f!==g?f>g?s?-1:1:s?1:-1:e.localeCompare(t)});function Hx(e){return e.sort(([t],[r])=>Hz(t,r))}function hO(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]):Gt(f)?a[u]=hO(f):a[u]=f;const s=Hx(t),c=Hx(r);return{...a,...Object.fromEntries(s),...Object.fromEntries(c)}}const gO=/\s*!(important)?/i,$z=e=>Kn(e)?gO.test(e):!1,Uz=e=>Kn(e)?e.replace(gO,"").trim():e;function pO(e){const{transform:t,conditions:r,normalize:a}=e,s=Wz(e);return In(function(...u){const f=s(...u),g=a(f),p=Object.create(null);return Zn(g,(m,y)=>{const v=$z(m);if(m==null)return;const[x,...E]=r.sort(y).map(r.resolve);v&&(m=Uz(m));let C=t(x,m)??Object.create(null);C=Zn(C,w=>Kn(w)&&v?`${w} !important`:w,{getKey:w=>r.expandAtRule(w)}),jz(p,E.flat(),C)}),hO(p)})}function jz(e,t,r){let a=e;for(const s of t)s&&(a[s]||(a[s]=Object.create(null)),a=a[s]);Oo(a,r)}function Gz(...e){return e.filter(t=>Gt(t)&&Object.keys(dl(t)).length>0)}function Wz(e){function t(r){const a=Gz(...r);return a.length===1?a:a.map(s=>e.normalize(s))}return In(function(...a){return Oo({},...t(a))})}const mO=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function qz(e){const{css:t,conditions:r,normalize:a,layers:s}=e;function c(f={}){const{base:g,variants:p,defaultVariants:m,compoundVariants:y}=mO(f),v=pO({conditions:r,normalize:a,transform(R,N){return p[R]?.[N]}}),x=(R={})=>{const N=a({...m,...dl(R)});let L={...g};Oo(L,v(N));const A=u(y,N);return s.wrap("recipes",t(L,A))},E=Object.keys(p),C=R=>{const N=tO(R,["recipe"]),[L,A]=ho(N,E);return E.includes("colorPalette")||(L.colorPalette=R.colorPalette||m.colorPalette),E.includes("orientation")&&(A.orientation=R.orientation),[L,A]},w=Object.fromEntries(Object.entries(p).map(([R,N])=>[R,Object.keys(N)]));return Object.assign(R=>t(x(R)),{className:f.className,__cva__:!0,variantMap:w,variantKeys:E,raw:x,config:f,splitVariantProps:C,merge(R){return c(Yz(e)(this,R))}})}function u(f,g){let p={};return f.forEach(m=>{Object.entries(m).every(([v,x])=>v==="css"?!0:(Array.isArray(x)?x:[x]).some(C=>g[v]===C))&&(p=t(p,m.css))}),p}return c}function Yz(e){const{css:t}=e;return function(a,s){const c=mO(s.config),u=VS(a.variantKeys,Object.keys(s.variants)),f=t(a.base,c.base),g=Object.fromEntries(u.map(v=>[v,t(a.config.variants[v],c.variants[v])])),p=Oo(a.config.defaultVariants,c.defaultVariants),m=[...a.compoundVariants,...c.compoundVariants];return{className:_n(a.className,s.className),base:f,variants:g,defaultVariants:p,compoundVariants:m}}}const Xz={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},$x={reset:0,base:1,tokens:2,recipes:3};function Kz(e){const t=e.layers??Xz,a=Object.values(t).sort((s,c)=>$x[s]-$x[c]);return{names:a,atRule:`@layer ${a.join(", ")};`,wrap(s,c){return e.disableLayers?c:{[`@layer ${t[s]}`]:c}}}}function Qz(e){const{utility:t,normalize:r}=e,{hasShorthand:a,resolveShorthand:s}=t;return function(c){return Zn(c,r,{stop:u=>Array.isArray(u),getKey:a?s:void 0})}}function Zz(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:a="parent"}=Gt(t)?t:{};let s="";r&&a==="parent"?s=`${r} `:r&&a==="element"&&(s=`&${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((g,[p,m])=>(g[p]={[s]:m},g),{});Object.assign(u,f)}else s?u[s]=c:Object.assign(u,c);return u}function Jz(e){const{conditions:t,isValidProperty:r}=e;return function(s){return Zn(s,c=>c,{getKey:(c,u)=>Gt(u)&&!t.has(c)&&!r(c)?e5(c).map(f=>"&"+f).join(", "):c})}}function e5(e){const t=[];let r=0,a="",s=!1;for(let c=0;c<e.length;c++){const u=e[c];if(u==="\\"&&!s){s=!0,a+=u;continue}if(s){s=!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 t5=(e={})=>{const t=s=>({base:e.base?.[s]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?n5(e.compoundVariants,s):[]}),a=(e.slots??[]).map(s=>[s,t(s)]);for(const[s,c]of Object.entries(e.variants??{}))for(const[u,f]of Object.entries(c))a.forEach(([g,p])=>{var m;(m=p.variants)[s]??(m[s]={}),p.variants[s][u]=f[g]??{}});return Object.fromEntries(a)},n5=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function r5(e){const{cva:t}=e;return function(a={}){const s=Object.entries(t5(a)).map(([y,v])=>[y,t(v)]);function c(y){const v=s.map(([x,E])=>[x,E(y)]);return Object.fromEntries(v)}const u=a.variants??{},f=Object.keys(u);function g(y){const v=tO(y,["recipe"]),[x,E]=ho(v,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,v])=>[y,Object.keys(v)]));let m={};return a.className&&(m=Object.fromEntries(a.slots.map(y=>[y,`${a.className}__${y}`]))),Object.assign(c,{variantMap:p,variantKeys:f,splitVariantProps:g,classNameMap:m})}}const i5=()=>e=>Array.from(new Set(e)),a5=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,o5=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},vO=e=>(e+"").replace(a5,o5),bO=(e,t)=>{let r="",a=0,s="char",c="",u="";const f=[];for(;a<e.length;){const g=e[a];if(g==="{"){const m=e.indexOf("}",a);if(m===-1)break;const y=e.slice(a+1,m),v=t(y);r+=v??y,a=m+1;continue}if(s==="token"&&g===","){e[a]===""&&a++,s="fallback",f.push(s);const m=t(c);m?.endsWith(")")&&(r+=m.slice(0,-1)),c="",u="";continue}if(s==="fallback"&&u+g===", var("){const v=s5(e.slice(a+1))+a+1,x=e.slice(a+1,v);if(v===-1)break;r+=", var("+x+")",a=v+1,s=f.pop()??s,u="";continue}if(s==="token"||s==="fallback"){if(a++,g===")"){s=f.pop()??s??"char",u+=g;const m=c&&(t(c)??vO(c));if(u){if(u=u.slice(1).trim(),!u.startsWith("token(")&&u.endsWith(")")&&(u=u.slice(0,-1)),u.includes("token(")){const v=bO(u,t);v&&(u=v.slice(0,-1))}else if(u){const v=t(u);v&&(u=v)}}const y=r.at(-1);u?y?.trim()?r+=m.slice(0,-1)+(", "+u+")"):r+=u:r+=m||")",c="",u="",s="char";continue}s==="token"&&(c+=g),s==="fallback"&&(u+=g);continue}const p=e.indexOf("token(",a);if(p!==-1){const m=p+6;r+=e.slice(a,p),a=m,s="token",f.push(s);continue}r+=g,a++}return r},s5=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 yO(e){const t={};return e.forEach((r,a)=>{r instanceof Map?t[a]=Object.fromEntries(r):t[a]=r}),t}const xO=/({([^}]*)})/g,l5=/[{}]/g,c5=/\w+\.\w+/,SO=e=>{if(!Kn(e))return[];const t=e.match(xO);return t?t.map(r=>r.replace(l5,"")).map(r=>r.trim()):[]},u5=e=>xO.test(e);function CO(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 s=t[a];if(s.extensions.conditions)return r;const c=CO(s);return r.replace(`{${a}}`,c)},e.value),delete e.extensions.references,e.value}function EO(e){return Gt(e)&&e.reference?e.reference:String(e)}const hd=(e,...t)=>t.map(EO).join(` ${e} `).replace(/calc/g,""),Ux=(...e)=>`calc(${hd("+",...e)})`,jx=(...e)=>`calc(${hd("-",...e)})`,$g=(...e)=>`calc(${hd("*",...e)})`,Gx=(...e)=>`calc(${hd("/",...e)})`,Wx=e=>{const t=EO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:$g(t,-1)},io=Object.assign(e=>({add:(...t)=>io(Ux(e,...t)),subtract:(...t)=>io(jx(e,...t)),multiply:(...t)=>io($g(e,...t)),divide:(...t)=>io(Gx(e,...t)),negate:()=>io(Wx(e)),toString:()=>e.toString()}),{add:Ux,subtract:jx,multiply:$g,divide:Gx,negate:Wx}),d5={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:a,formatTokenName:s,registerToken:c}=e;r.filter(({extensions:f})=>f.category==="spacing").forEach(f=>{const g=f.path.slice(),p=a(g,t);if(Kn(f.value)&&f.value==="0rem")return;const m=structuredClone(f);Object.assign(m.extensions,{negative:!0,prop:`-${f.extensions.prop}`,originalPath:g}),m.value=io.negate(p.ref);const y=m.path[m.path.length-1];y!=null&&(m.path[m.path.length-1]=`-${y}`),m.path&&(m.name=s(m.path)),c(m)})}},f5=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),h5={enforce:"post",transform(e){e.allTokens.filter(r=>f5.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:cO(r.value)})})}},g5={enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:a}=e,s=t.filter(({extensions:f})=>f.category==="colors"),c=new Map,u=new Map;s.forEach(f=>{const{colorPalette:g}=f.extensions;g&&(g.keys.forEach(p=>{c.set(a(p),p)}),g.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 v=g.keys[0]?.filter(Boolean);if(!v.length)return;const x=p.concat(v);c.set(a(x),[])}}))}),c.forEach(f=>{const g=["colors","colorPalette",...f].filter(Boolean),p=a(g),m=a(g.slice(1));r({name:p,value:p,originalValue:p,path:g,extensions:{condition:"base",originalPath:g,category:"colors",prop:m,virtual:!0}},"pre")})}},p5={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},m5=[d5,g5,h5,p5],v5={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:a}=t,{negative:s,originalPath:c}=e.extensions,u=s?c:e.path;return{cssVar:a(u.filter(Boolean),r)}}},b5={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:a}=t,s=SO(e.value);return s.length&&s.forEach(c=>{const u=a(c.split("."),r);e.value=e.value.replace(`{${u.ref}}`,u)}),e.value}},y5={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,g,p,m)=>{const y=m.slice(0,p+1);return f.push(y),f},[]),s=r[0],c=t.formatTokenName(r),u=e.path.slice(e.path.indexOf(s)+1).reduce((f,g,p,m)=>(f.push(m.slice(p)),f),[]);return u.length===0&&u.push([""]),{colorPalette:{value:c,roots:a,keys:u}}}},x5=[v5,b5,y5],qx=e=>Gt(e)&&Object.prototype.hasOwnProperty.call(e,"value");function S5(e){return e?{breakpoints:fd(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,r])=>[`breakpoint-${t}`,{value:r}]))}:{breakpoints:{},sizes:{}}}function C5(e){const{prefix:t="",tokens:r={},semanticTokens:a={},breakpoints:s={}}=e,c=Z=>Z.join("."),u=(Z,te)=>aO(Z.join("-"),{prefix:te}),f=[],g=new Map,p=new Map,m=new Map,y=new Map,v=new Map,x=new Map,E=new Map,C=new Map,w=[];function T(Z,te){f.push(Z),g.set(Z.name,Z),te&&C.forEach(Te=>{Te.enforce===te&&P(Te,Z)})}const R=S5(s),N=dl({...r,breakpoints:R.breakpoints,sizes:{...r.sizes,...R.sizes}});function L(){Zn(N,(Z,te)=>{const Te=te.includes("DEFAULT");te=Yx(te);const ze=te[0],Ke=c(te),nt=Kn(Z)?{value:Z}:Z,Kt={value:nt.value,originalValue:nt.value,name:Ke,path:te,extensions:{condition:"base",originalPath:te,category:ze,prop:c(te.slice(1))}};Te&&(Kt.extensions.default=!0),T(Kt)},{stop:qx}),Zn(a,(Z,te)=>{const Te=te.includes("DEFAULT");te=OO(Yx(te));const ze=te[0],Ke=c(te),nt=Kn(Z.value)?{value:{base:Z.value}}:Z,Kt={value:nt.value.base||"",originalValue:nt.value.base||"",name:Ke,path:te,extensions:{originalPath:te,category:ze,conditions:nt.value,condition:"base",prop:c(te.slice(1))}};Te&&(Kt.extensions.default=!0),T(Kt)},{stop:qx})}function A(Z){return g.get(Z)}function U(Z){const{condition:te}=Z.extensions;te&&(p.has(te)||p.set(te,new Set),p.get(te).add(Z))}function q(Z){const{category:te,prop:Te}=Z.extensions;te&&(E.has(te)||E.set(te,new Map),E.get(te).set(Te,Z))}function _(Z){const{condition:te,negative:Te,virtual:ze,cssVar:Ke}=Z.extensions;Te||ze||!te||!Ke||(m.has(te)||m.set(te,new Map),m.get(te).set(Ke.var,Z.value))}function $(Z){const{category:te,prop:Te,cssVar:ze,negative:Ke}=Z.extensions;if(!te)return;x.has(te)||x.set(te,new Map);const nt=Ke?Z.extensions.conditions?Z.originalValue:Z.value:ze.ref;x.get(te).set(Te,nt),v.set([te,Te].join("."),nt)}function G(Z){const{colorPalette:te,virtual:Te,default:ze}=Z.extensions;!te||Te||te.roots.forEach(Ke=>{const nt=c(Ke);y.has(nt)||y.set(nt,new Map);const Kt=O5([...Z.path],[...Ke]),la=c(Kt),No=A(la);if(!No||!No.extensions.cssVar)return;const{var:pn}=No.extensions.cssVar;if(y.get(nt).set(pn,Z.extensions.cssVar.ref),ze&&Ke.length===1){const vd=c(["colors","colorPalette"]),Po=A(vd);if(!Po)return;const kl=c(Z.path),Ci=A(kl);if(!Ci)return;const Nl=te.keys[0]?.filter(Boolean);if(!Nl.length)return;const ca=c(Ke.concat(Nl));y.has(ca)||y.set(ca,new Map),y.get(ca).set(Po.extensions.cssVar.var,Ci.extensions.cssVar.ref)}})}let Y={};function K(){f.forEach(Z=>{U(Z),q(Z),_(Z),$(Z),G(Z)}),Y=yO(x)}const he=(Z,te)=>{if(!Z||typeof Z!="string")return{invalid:!0,value:Z};const[Te,ze]=Z.split("/");if(!Te||!ze)return{invalid:!0,value:Te};const Ke=te(Te),nt=A(`opacity.${ze}`)?.value;if(!nt&&isNaN(Number(ze)))return{invalid:!0,value:Te};const Kt=nt?Number(nt)*100+"%":`${ze}%`,la=Ke??Te;return{invalid:!1,color:la,value:`color-mix(in srgb, ${la} ${Kt}, transparent)`}},ue=In((Z,te)=>v.get(Z)??te),se=In(Z=>Y[Z]||null),F=In(Z=>bO(Z,te=>{if(!te)return;if(te.includes("/")){const ze=he(te,Ke=>ue(Ke));if(ze.invalid)throw new Error("Invalid color mix at "+te+": "+ze.value);return ze.value}const Te=ue(te);return Te||(c5.test(te)?vO(te):te)})),ee={prefix:t,allTokens:f,tokenMap:g,registerToken:T,getByName:A,formatTokenName:c,formatCssVar:u,flatMap:v,cssVarMap:m,categoryMap:E,colorPaletteMap:y,getVar:ue,getCategoryValues:se,expandReferenceInValue:F};function oe(...Z){Z.forEach(te=>{C.set(te.name,te)})}function ie(...Z){w.push(...Z)}function P(Z,te){if(te.extensions.references||dp(Z.match)&&!Z.match(te))return;const ze=(Ke=>Z.transform(Ke,ee))(te);switch(!0){case Z.type==="extensions":Object.assign(te.extensions,ze);break;case Z.type==="value":te.value=ze;break;default:te[Z.type]=ze;break}}function X(Z){w.forEach(te=>{te.enforce===Z&&te.transform(ee)})}function re(Z){C.forEach(te=>{te.enforce===Z&&f.forEach(Te=>{P(te,Te)})})}function ne(){f.forEach(Z=>{const te=E5(Z);!te||te.length===0||te.forEach(Te=>{T(Te)})})}function de(Z){return SO(Z).map(Te=>A(Te)).filter(Boolean)}function Oe(){f.forEach(Z=>{if(!u5(Z.value))return;const te=de(Z.value);Z.extensions.references=te.reduce((Te,ze)=>(Te[ze.name]=ze,Te),{})})}function Se(){f.forEach(Z=>{CO(Z)})}function Dt(){X("pre"),re("pre"),ne(),Oe(),Se(),X("post"),re("post"),K()}return L(),oe(...x5),ie(...m5),Dt(),ee}function Yx(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function OO(e){return e.filter(t=>t!=="base")}function E5(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return Zn(t,(a,s)=>{const c=OO(s);if(!c.length)return;const u=structuredClone(e);u.value=a,u.extensions.condition=c.join(":"),r.push(u)}),r}function O5(e,t){const r=e.findIndex((a,s)=>t.every((c,u)=>e[s+u]===c));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}i5()(["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 w5(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,r]))}function T5(e){const t=w5(e.config),r=e.tokens,a=new Map,s=new Map;function c(_,$){t[_]=$,u(_,$)}const u=(_,$)=>{const G=C($);G&&(s.set(_,G),y(_,$))},f=()=>{for(const[_,$]of Object.entries(t))$&&u(_,$)},g=()=>{for(const[_,$]of Object.entries(t)){const{shorthand:G}=$??{};if(!G)continue;(Array.isArray(G)?G:[G]).forEach(K=>a.set(K,_))}},p=()=>{const _=yO(r.colorPaletteMap);c("colorPalette",{values:Object.keys(_),transform:In($=>_[$])})},m=new Map,y=(_,$)=>{if(!$)return;const G=C($,K=>`type:Tokens["${K}"]`);if(typeof G=="object"&&G.type){m.set(_,new Set([`type:${G.type}`]));return}if(G){const K=new Set(Object.keys(G));m.set(_,K)}const Y=m.get(_)??new Set;$.property&&m.set(_,Y.add(`CssProperties["${$.property}"]`))},v=()=>{for(const[_,$]of Object.entries(t))$&&y(_,$)},x=(_,$)=>{const G=m.get(_)??new Set;m.set(_,new Set([...G,...$]))},E=()=>{const _=new Map;for(const[$,G]of m.entries()){if(G.size===0){_.set($,["string"]);continue}const Y=Array.from(G).map(K=>K.startsWith("CssProperties")?K:K.startsWith("type:")?K.replace("type:",""):JSON.stringify(K));_.set($,Y)}return _},C=(_,$)=>{const{values:G}=_,Y=K=>{const he=$?.(K);return he?{[he]:he}:void 0};return Kn(G)?Y?.(G)??r.getCategoryValues(G)??{}:Array.isArray(G)?G.reduce((K,he)=>(K[he]=he,K),{}):dp(G)?G($?Y:r.getCategoryValues):G},w=In((_,$)=>({[_]:_.startsWith("--")?r.getVar($,$):$})),T=Object.assign(r.getVar,{raw:_=>r.getByName(_)}),R=In((_,$)=>{const G=A(_);Kn($)&&!$.includes("_EMO_")&&($=r.expandReferenceInValue($));const Y=t[G];if(!Y)return w(G,$);const K=s.get(G)?.[$];if(!Y.transform)return w(_,K??$);const he=ue=>tz(ue,T);return Y.transform(K??$,{raw:$,token:T,utils:{colorMix:he}})});function N(){g(),p(),f(),v()}N();const L=a.size>0,A=In(_=>a.get(_)??_);return{keys:()=>[...Array.from(a.keys()),...Object.keys(t)],hasShorthand:L,transform:R,shorthands:a,resolveShorthand:A,register:c,getTypes:E,addPropertyType:x}}const jt={};function R5(...e){const t=nO(...e),{theme:r={},utilities:a={},globalCss:s={},cssVarsRoot:c=":where(:root, :host)",cssVarsPrefix:u="chakra",preflight:f}=t,g=Kz(t),p=C5({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:u}),m=Pz(r.breakpoints??jt),y=Vz({conditions:t.conditions??jt,breakpoints:m}),v=T5({config:a,tokens:p});function x(){const{textStyles:ie,layerStyles:P,animationStyles:X}=r,re=dl({textStyle:ie,layerStyle:P,animationStyle:X});for(const[ne,de]of Object.entries(re)){const Oe=oO(de??jt,wO);v.register(ne,{values:Object.keys(Oe),transform(Se){return N(Oe[Se])}})}}x(),v.addPropertyType("animationName",Object.keys(r.keyframes??jt));const E=new Set(["css",...v.keys(),...y.keys()]),C=In(ie=>E.has(ie)||wz(ie)),w=ie=>Array.isArray(ie)?ie.reduce((P,X,re)=>{const ne=y.breakpoints[re];return X!=null&&(P[ne]=X),P},{}):ie,T=Qz({utility:v,normalize:w}),R=Jz({conditions:y,isValidProperty:C}),N=pO({transform:v.transform,conditions:y,normalize:T}),L=qz({css:N,conditions:y,normalize:T,layers:g}),A=r5({cva:L});function U(){const ie={};for(const[P,X]of p.cssVarMap.entries()){const re=Object.fromEntries(X);if(Object.keys(re).length===0)continue;const ne=P==="base"?c:y.resolve(P),de=ne.startsWith("@"),Oe=N(R({[ne]:de?{[c]:re}:re}));Oo(ie,Oe)}return g.wrap("tokens",ie)}function q(){const ie=Object.fromEntries(Object.entries(r.keyframes??jt).map(([X,re])=>[`@keyframes ${X}`,re])),P=Object.assign({},ie,N(R(s)));return g.wrap("base",P)}function _(ie){return ho(ie,C)}function $(){const ie=Zz({preflight:f});return g.wrap("reset",ie)}const G=k5(p),Y=(ie,P)=>G.get(ie)?.value||P;Y.var=(ie,P)=>G.get(ie)?.variable||P;function K(ie,P){return r.recipes?.[ie]??P}function he(ie,P){return r.slotRecipes?.[ie]??P}function ue(ie){return Object.hasOwnProperty.call(r.recipes??jt,ie)}function se(ie){return Object.hasOwnProperty.call(r.slotRecipes??jt,ie)}function F(ie){return ue(ie)||se(ie)}const ee=[$(),q(),U()],oe={layerStyles:og(r.layerStyles??jt),textStyles:og(r.textStyles??jt),animationStyles:og(r.animationStyles??jt),tokens:Xx(p,Object.keys(r.tokens??jt),(ie,P)=>!ie.extensions.conditions&&!P.includes("colorPalette")),semanticTokens:Xx(p,Object.keys(r.semanticTokens??jt),ie=>!!ie.extensions.conditions),keyframes:Kx(r.keyframes??jt),breakpoints:Kx(r.breakpoints??jt)};return{$$chakra:!0,_config:t,_global:ee,breakpoints:m,tokens:p,conditions:y,utility:v,token:Y,properties:E,layers:g,isValidProperty:C,splitCssProps:_,normalizeValue:w,getTokenCss:U,getGlobalCss:q,getPreflightCss:$,css:N,cva:L,sva:A,getRecipe:K,getSlotRecipe:he,hasRecipe:F,isRecipe:ue,isSlotRecipe:se,query:oe}}function k5(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:a,virtual:s,conditions:c}=r.extensions,u=c||s?a.ref:r.value;t.set(r.name,{value:u,variable:a.ref})}),t}const wO=e=>Gt(e)&&"value"in e,og=e=>({list(){return Object.keys(oO(e,wO))},search(t){return this.list().filter(r=>r.includes(t))}}),Xx=(e,t,r)=>({categoryKeys:t,list(a){return Array.from(e.categoryMap.get(a)?.entries()??[]).reduce((s,[c,u])=>(r(u,c)&&s.push(c),s),[])},search(a,s){return this.list(a).filter(c=>c.includes(s))}}),Kx=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(r=>r.includes(t))}}),N5={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},sg="var(--chakra-empty,/*!*/ /*!*/)",P5=az({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":sg,"--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}`,sg])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,sg])),"--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"}}),A5=lz({"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:{}}}),I5=sz({"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"}}}),Xp=pt({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"}}),_5=pt({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"}}),wt=pt({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:V5,defaultVariants:D5}=Xp,z5=pt({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:V5,defaultVariants:D5}),TO=pt({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"}}),M5=pt({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"}}}}),L5=pt({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"}}),B5=pt({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"}}),lt=pt({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"}}),F5=pt({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:lt.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"}}),H5=pt({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"}}),$5=pt({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"}}),U5=pt({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:{}}}}),Tt=pt({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"}}),j5=pt({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"}}),G5=pt({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}}),W5=pt({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"}}}),q5=pt({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"}}),Y5=pt({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"}}),X5={badge:Xp,button:_5,code:z5,container:M5,heading:L5,input:lt,inputAddon:F5,kbd:H5,link:$5,mark:U5,separator:j5,skeleton:G5,skipNavLink:W5,spinner:q5,textarea:Y5,icon:B5,checkmark:wt,radiomark:Tt,colorSwatch:TO},K5=qp.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}"}}}}),Q5=qp.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Z5=qp.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}"}}}),J5=IC.extendWith("itemBody"),eM=pe("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),tM=pe("alert").parts("title","description","root","indicator","content"),nM=pe("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),rM=pe("blockquote").parts("root","icon","content","caption"),iM=pe("card").parts("root","header","body","footer","title","description"),aM=pe("checkbox-card",["root","control","label","description","addon","indicator","content"]),oM=pe("data-list").parts("root","item","itemLabel","itemValue"),sM=Up.extendWith("header","body","footer","backdrop"),lM=Up.extendWith("header","body","footer","backdrop"),cM=E1.extendWith("textarea"),uM=pe("empty-state",["root","content","indicator","title","description"]),dM=w1.extendWith("requiredIndicator"),fM=R1.extendWith("content"),hM=k1.extendWith("itemContent","dropzoneContent","fileText"),gM=pe("list").parts("root","item","indicator"),pM=_1.extendWith("itemCommand"),mM=pe("select").parts("root","field","indicator"),vM=Q1.extendWith("header","body","footer"),RO=Wp.extendWith("itemAddon","itemIndicator"),bM=RO.extendWith("itemContent","itemDescription"),yM=iE.extendWith("itemIndicator"),xM=xE.extendWith("indicatorGroup"),SM=j_.extendWith("indicatorGroup","empty"),CM=TE.extendWith("markerIndicator"),EM=pe("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),OM=pe("status").parts("root","indicator"),wM=pe("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),TM=AE.extendWith("indicator"),RM=pe("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),kM=pe("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),NM=pe("tabs").parts("root","trigger","list","content","contentGroup","indicator"),PM=pe("tag").parts("root","label","closeTrigger","startElement","endElement"),AM=pe("timeline").parts("root","item","content","separator","indicator","connector","title","description"),IM=s_.extendWith("channelText"),_M=pe("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);XC.extendWith("valueText");const VM=mV,DM=xe({className:"chakra-accordion",slots:J5.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"}}),zM=xe({className:"chakra-action-bar",slots:eM.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"}}}),MM=xe({slots:tM.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}}),LM=xe({slots:DC.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"}}),BM=xe({className:"chakra-blockquote",slots:rM.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"}}),FM=xe({className:"chakra-breadcrumb",slots:nM.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"}}),HM=xe({className:"chakra-card",slots:iM.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"}}),$M=xe({slots:UC.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:wt.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:wt.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:wt.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:wt.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:wt.variants?.size?.lg}},variant:{outline:{control:wt.variants?.variant?.outline},solid:{control:wt.variants?.variant?.solid},subtle:{control:wt.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),UM=xe({slots:aM.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:wt.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:wt.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:wt.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:wt.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:wt.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:wt.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:wt.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:wt.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"}}),jM=xe({slots:_M.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"}}),GM=xe({slots:dC.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),WM=xe({className:"colorPicker",slots:IM.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:{...TO.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:{...lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:lt.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),qM=xe({className:"chakra-combobox",slots:SM.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"}}),YM=xe({slots:oM.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"}}),XM=xe({slots:sM.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"}}),KM=xe({slots:lM.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"}}),Qx=wo({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),QM=xe({slots:cM.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Qx,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Qx,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"}}),ZM=xe({slots:uM.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"}}),JM=xe({className:"chakra-field",slots:dM.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"}}),eL=xe({className:"fieldset",slots:fM.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"}}),tL=xe({className:"chakra-file-upload",slots:hM.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:{}}),nL=xe({className:"chakra-hover-card",slots:N1.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"}}),rL=xe({className:"chakra-list",slots:gM.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"}}),iL=xe({className:"chakra-listbox",slots:VM.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"}}),aL=xe({className:"chakra-menu",slots:pM.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"}}),Ou=xe({className:"chakra-select",slots:xM.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"}}),oL=xe({className:"chakra-native-select",slots:mM.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:Ou.variants?.variant.outline.trigger},subtle:{field:Ou.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:Ou.defaultVariants});function Ug(e,t){const r={};for(const a in e){const s=t(a,e[a]);r[s[0]]=s[1]}return r}const Zx=wo({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"}}),sL=xe({className:"chakra-number-input",slots:L1.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...lt.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:{...Zx,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Zx,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:lt.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:lt.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:lt.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:lt.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Ug(lt.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Jx,defaultVariants:lL}=lt,cL=xe({className:"chakra-pin-input",slots:H1.keys(),base:{input:{...lt.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Ug(Jx.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Ug(Jx.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:lL}),uL=xe({className:"chakra-popover",slots:vM.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"}}),dL=xe({slots:Gp.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"}}),fL=xe({className:"chakra-progress-circle",slots:Gp.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"}}),hL=xe({slots:rE.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"}}),gL=xe({className:"chakra-radio-card",slots:bM.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:Tt.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:Tt.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Tt.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Tt.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Tt.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Tt.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Tt.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Tt.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"}}),pL=xe({className:"chakra-radio-group",slots:RO.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Tt.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Tt.variants?.variant?.outline},subtle:{itemControl:Tt.variants?.variant?.subtle},solid:{itemControl:Tt.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Tt.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Tt.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Tt.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Tt.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),mL=xe({className:"chakra-rating-group",slots:yM.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"}}),vL=xe({className:"chakra-scroll-area",slots:aE.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"}}),bL=xe({className:"chakra-segment-group",slots:oE.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"}}),yL=xe({className:"chakra-slider",slots:CM.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"}}),xL=xe({className:"chakra-stat",slots:EM.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"}}),SL=xe({className:"chakra-status",slots:OM.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"}}),CL=xe({className:"chakra-steps",slots:wM.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"}}),EL=xe({slots:TM.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"}}),OL=xe({className:"chakra-table",slots:RM.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"}}),wL=xe({slots:NM.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"}}),su=Xp.variants?.variant,TL=xe({slots:PM.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:su?.subtle},solid:{root:su?.solid},outline:{root:su?.outline},surface:{root:su?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),RL=xe({slots:AM.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"}}),kL=xe({slots:kM.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"}}}}),NL=xe({slots:QE.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)"}}}),eS=wo({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"}}),tS=wo({flex:"1"}),nS=wo({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),rS=wo({_selected:{layerStyle:"fill.solid"}}),PL=xe({slots:P1.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:eS,item:eS,itemText:tS,branchText:tS,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:nS,item:nS},solid:{branchControl:rS,item:rS}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),AL={accordion:DM,actionBar:zM,alert:MM,avatar:LM,blockquote:BM,breadcrumb:FM,card:HM,checkbox:$M,checkboxCard:UM,codeBlock:jM,collapsible:GM,dataList:YM,dialog:XM,drawer:KM,editable:QM,emptyState:ZM,field:JM,fieldset:eL,fileUpload:tL,hoverCard:nL,list:rL,listbox:iL,menu:aL,nativeSelect:oL,numberInput:sL,pinInput:cL,popover:uL,progress:dL,progressCircle:fL,radioCard:gL,radioGroup:pL,ratingGroup:mL,scrollArea:vL,segmentGroup:bL,select:Ou,combobox:qM,slider:yL,stat:xL,steps:CL,switch:EL,table:OL,tabs:wL,tag:TL,toast:kL,tooltip:NL,status:SL,timeline:RL,colorPicker:WM,qrCode:hL,treeView:PL},IL=oz({"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"}}}),_L=dt.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"}}),VL=dt.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"}}),DL=dt.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),zL=dt.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),ML=dt.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"}}}),LL=dt.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"}}),BL=dt.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),FL=dt.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)"}}),HL=dt.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"}}),$L=dt.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"}}),iS='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',UL=dt.fonts({heading:{value:`Inter, ${iS}`},body:{value:`Inter, ${iS}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),jL=iz({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"}}}),GL=dt.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),WL=dt.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),qL=dt.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"}}),kO=dt.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"}}),YL=dt.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"}}),XL=dt.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"}}),KL=dt.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%"}}),QL=dt.sizes({...YL,...kO,...KL,...XL}),ZL=dt.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}}),JL={aspectRatios:VL,animations:_L,blurs:DL,borders:zL,colors:ML,durations:BL,easings:FL,fonts:UL,fontSizes:HL,fontWeights:$L,letterSpacings:GL,lineHeights:WL,radii:qL,spacing:kO,sizes:QL,zIndex:ZL,cursor:LL},e3={colors:K5,shadows:Z5,radii:Q5},t3="chakra",n3=":where(html, .chakra-theme)",r3=iO({preflight:!0,cssVarsPrefix:t3,cssVarsRoot:n3,globalCss:P5,theme:{breakpoints:N5,keyframes:jL,tokens:JL,semanticTokens:e3,recipes:X5,slotRecipes:AL,textStyles:IL,layerStyles:A5,animationStyles:I5}}),i3=nO(mz,r3),nB=R5(i3);function a3(e){const{key:t,recipe:r}=e,a=fl();return O.useMemo(()=>{const s=r||(t!=null?a.getSlotRecipe(t):{});return a.sva(structuredClone(s))},[t,r,a])}const o3=e=>e.charAt(0).toUpperCase()+e.slice(1),ir=e=>{const{key:t,recipe:r}=e,a=o3(t||r.className||"Component"),[s,c]=fo({name:`${a}StylesContext`,errorMessage:`use${a}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${a}.Root />" `}),[u,f]=fo({name:`${a}ClassNameContext`,errorMessage:`use${a}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${a}.Root />" `,strict:!1}),[g,p]=fo({strict:!1,name:`${a}PropsContext`,providerName:`${a}PropsContext`,defaultValue:{}});function m(E){const{unstyled:C,...w}=E,T=a3({key:t,recipe:w.recipe||r}),[R,N]=O.useMemo(()=>T.splitVariantProps(w),[w,T]);return{styles:O.useMemo(()=>C?uN:T(R),[C,R,T]),classNames:T.classNameMap,props:N}}function y(E,C={}){const{defaultProps:w}=C,T=R=>{const N=p(),L=O.useMemo(()=>el(w,N,R),[N,R]),{styles:A,classNames:U,props:q}=m(L);return z.jsx(s,{value:A,children:z.jsx(u,{value:U,children:z.jsx(E,{...q})})})};return T.displayName=E.displayName||E.name,T}return{StylesProvider:s,ClassNamesProvider:u,PropsProvider:g,usePropsContext:p,useRecipeResult:m,withProvider:(E,C,w)=>{const{defaultProps:T,...R}=w??{},N=Xe(E,{},R),L=O.forwardRef((A,U)=>{const q=p(),_=O.useMemo(()=>el(T??{},q,A),[q,A]),{styles:$,props:G,classNames:Y}=m(_),K=Y[C],he=z.jsx(s,{value:$,children:z.jsx(u,{value:Y,children:z.jsx(N,{ref:U,...G,css:[$[C],_.css],className:_n(_.className,K)})})});return w?.wrapElement?.(he,_)??he});return L.displayName=E.displayName||E.name,L},withContext:(E,C,w)=>{const T=Xe(E,{},w),R=O.forwardRef((N,L)=>{const{unstyled:A,...U}=N,q=c(),$=f()?.[C];return z.jsx(T,{...U,css:[!A&&C?q[C]:void 0,N.css],ref:L,className:_n(N.className,$)})});return R.displayName=E.displayName||E.name,R},withRootProvider:y,useStyles:c,useClassNames:f}},NO=Xe("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"}});NO.displayName="AbsoluteCenter";const s3=e=>z.jsx(Xe.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:z.jsx("path",{d:"M20 6 9 17l-5-5"})}),l3=e=>z.jsx(Xe.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:z.jsx("path",{d:"m6 9 6 6 6-6"})}),c3=e=>z.jsx(Xe.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:z.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"})}),aS=e=>z.jsx(Xe.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:z.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"})}),oS=e=>z.jsx(Xe.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:z.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 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),u3=e=>z.jsx(Xe.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:z.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"})}),[d3,f3]=fo({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:h3,withContext:Kp,useStyles:g3,PropsProvider:p3}=ir({key:"alert"}),m3=h3("div","root",{forwardAsChild:!0,wrapElement(e,t){return z.jsx(d3,{value:{status:t.status||"info"},children:e})}}),v3=p3,b3=Kp("div","title"),y3=Kp("div","description"),x3=Kp("div","content"),S3={info:oS,warning:aS,success:c3,error:aS,neutral:oS},C3=O.forwardRef(function(t,r){const a=f3(),s=g3(),c=typeof a.status=="string"?S3[a.status]:O.Fragment,{children:u=z.jsx(c,{}),...f}=t;return z.jsx(Xe.span,{ref:r,...f,css:[s.indicator,t.css],children:u})}),rB=Object.freeze(Object.defineProperty({__proto__:null,Content:x3,Description:y3,Indicator:C3,Root:m3,RootPropsProvider:v3,Title:b3},Symbol.toStringTag,{value:"Module"})),gd=e=>e?"":void 0,{withContext:E3}=Ir({key:"badge"}),iB=E3("span"),{withContext:O3}=Ir({key:"spinner"}),w3=O3("span"),T3=O.forwardRef(function(t,r){const{spinner:a=z.jsx(w3,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:s="start",children:c,text:u,visible:f=!0,...g}=t;return f?u?z.jsxs(Gc,{ref:r,display:"contents",...g,children:[s==="start"&&a,u,s==="end"&&a]}):a?z.jsxs(Gc,{ref:r,display:"contents",...g,children:[z.jsx(NO,{display:"inline-flex",children:a}),z.jsx(Gc,{visibility:"hidden",display:"contents",children:c})]}):z.jsx(Gc,{ref:r,display:"contents",...g,children:c}):c}),{useRecipeResult:R3,usePropsContext:k3}=Ir({key:"button"}),N3=O.forwardRef(function(t,r){const a=k3(),s=O.useMemo(()=>el(a,t),[a,t]),c=R3(s),{loading:u,loadingText:f,children:g,spinner:p,spinnerPlacement:m,...y}=c.props;return z.jsx(Xe.button,{type:"button",ref:r,...y,"data-loading":gd(u),disabled:u||y.disabled,className:_n(c.className,s.className),css:[c.styles,s.css],children:!s.asChild&&u?z.jsx(T3,{spinner:p,text:f,spinnerPlacement:m,children:g}):g})}),aB=O.forwardRef(function(t,r){return z.jsx(N3,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:r,...t})}),{withProvider:P3,withContext:Cl}=ir({key:"card"}),oB=P3("div","root"),sB=Cl("div","body");Cl("div","header");Cl("div","footer");Cl("h3","title");Cl("p","description");const A3=O.forwardRef(function(t,r){const a=zS({key:"checkmark",recipe:t.recipe}),[s,c]=a.splitVariantProps(t),{checked:u,indeterminate:f,disabled:g,unstyled:p,children:m,...y}=c,v=p?DS:a(s);return z.jsx(Xe.svg,{ref:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":f?"indeterminate":u?"checked":"unchecked","data-disabled":gd(g),css:[v,t.css],...y,children:f?z.jsx("path",{d:"M5 12h14"}):u?z.jsx("polyline",{points:"20 6 9 17 4 12"}):null})}),{withProvider:PO,withContext:AO,useStyles:I3}=ir({key:"checkbox"});PO(YC,"root",{forwardAsChild:!0});const lB=PO(qC,"root",{forwardAsChild:!0});AO(WC,"label",{forwardAsChild:!0});const _3=O.forwardRef(function(t,r){const{checked:a,indeterminate:s,...c}=t,u=sd(),f=I3();return a&&u.checked?z.jsx(Xe.svg,{ref:r,asChild:!0,...c,css:[f.indicator,t.css],children:a}):s&&u.indeterminate?z.jsx(Xe.svg,{ref:r,asChild:!0,...c,css:[f.indicator,t.css],children:s}):z.jsx(A3,{ref:r,checked:u.checked,indeterminate:u.indeterminate,disabled:u.disabled,unstyled:!0,...c,css:[f.indicator,t.css]})}),cB=AO(MC,"control",{forwardAsChild:!0,defaultProps:{children:z.jsx(_3,{})}});Xe(jC,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});const uB=GC,{withProvider:IO,withContext:_O}=ir({key:"collapsible"});IO(KC,"root",{forwardAsChild:!0});const dB=IO(gC,"root",{forwardAsChild:!0}),fB=_O(QC,"trigger",{forwardAsChild:!0}),hB=_O(AC,"content",{forwardAsChild:!0});function V3(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{"&":fd(r,s=>a[s])}}function D3(e){return O.Children.toArray(e).filter(t=>O.isValidElement(t))}const VO=O.forwardRef(function(t,r){const{direction:a="column",align:s,justify:c,gap:u="0.5rem",wrap:f,children:g,separator:p,className:m,...y}=t,v=O.useMemo(()=>V3({gap:u,direction:a}),[u,a]),x=O.useMemo(()=>O.isValidElement(p)?D3(g).map((E,C,w)=>{const T=typeof E.key<"u"?E.key:C,R=p,N=O.cloneElement(R,{css:[v,R.props.css]});return z.jsxs(O.Fragment,{children:[E,C===w.length-1?null:N]},T)}):g,[g,p,v]);return z.jsx(Xe.div,{ref:r,display:"flex",alignItems:s,justifyContent:c,flexDirection:a,flexWrap:f,gap:p?void 0:u,className:_n("chakra-stack",m),...y,children:x})}),{withContext:z3}=Ir({key:"container"}),gB=z3("div"),{withRootProvider:DO,withContext:ar}=ir({key:"dialog"});DO(lV,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const pB=DO(sV,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});ar(C1,"trigger",{forwardAsChild:!0});const mB=ar(g1,"positioner",{forwardAsChild:!0}),vB=ar(f1,"content",{forwardAsChild:!0});ar(h1,"description",{forwardAsChild:!0});const bB=ar(S1,"title",{forwardAsChild:!0}),yB=ar(d1,"closeTrigger",{forwardAsChild:!0});O.forwardRef(function(t,r){const a=xi();return z.jsx(Xe.button,{...t,ref:r,onClick:()=>a.setOpen(!1)})});const xB=ar(u1,"backdrop",{forwardAsChild:!0}),SB=ar("div","body");ar("div","footer");const CB=ar("div","header"),EB=O.forwardRef(function(t,r){const{direction:a,align:s,justify:c,wrap:u,basis:f,grow:g,shrink:p,inline:m,...y}=t;return z.jsx(Xe.div,{ref:r,...y,css:{display:m?"inline-flex":"flex",flexDirection:a,alignItems:s,justifyContent:c,flexWrap:u,flexBasis:f,flexGrow:g,flexShrink:p,...t.css}})}),{withContext:M3}=Ir({key:"input"}),OB=M3(O1),{withContext:L3}=Ir({key:"link"}),wB=L3("a"),{withRootProvider:zO,withContext:gn}=ir({key:"popover"});zO(dD);const TB=zO(uD),RB=gn(nE,"trigger",{forwardAsChild:!0}),kB=gn(K1,"positioner",{forwardAsChild:!0}),NB=gn(q1,"content",{forwardAsChild:!0}),B3=gn(G1,"arrowTip",{forwardAsChild:!0}),PB=gn(j1,"arrow",{forwardAsChild:!0,defaultProps:{children:z.jsx(B3,{})}});gn(W1,"closeTrigger",{forwardAsChild:!0});gn(X1,"indicator",{forwardAsChild:!0});gn(tE,"title",{forwardAsChild:!0});gn(Y1,"description",{forwardAsChild:!0});gn("footer","footer");const AB=gn("header","header"),IB=gn("div","body");gn(U1,void 0,{forwardAsChild:!0});const{withProvider:MO,withContext:Xt}=ir({key:"select"});MO(RD,"root",{forwardAsChild:!0});const _B=MO(wD,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),VB=Xt(OE,"trigger",{forwardAsChild:!0}),DB=Xt(yE,"positioner",{forwardAsChild:!0}),zB=Xt(cE,"content",{forwardAsChild:!0});Xt(wE,"valueText",{forwardAsChild:!0});Xt(lE,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:z.jsx(u3,{boxSize:"1em"})}});Xt(gE,"itemGroup",{forwardAsChild:!0});Xt(pE,"itemGroupLabel",{forwardAsChild:!0});const MB=Xt(hE,"item",{forwardAsChild:!0}),LB=Xt(vE,"itemText",{forwardAsChild:!0}),BB=Xt(mE,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:z.jsx(s3,{})}});Xt("div","indicatorGroup");const FB=Xt(dE,"indicator",{forwardAsChild:!0,defaultProps:{children:z.jsx(l3,{})}});Xt(uE,"control",{forwardAsChild:!0});Xt(bE,"label",{forwardAsChild:!0});const HB=O.forwardRef(function(t,r){const{columns:a,minChildWidth:s,...c}=t,u=fl(),f=s?H3(s,u):$3(a);return z.jsx(fN,{ref:r,templateColumns:f,...c})});function F3(e){return typeof e=="number"?`${e}px`:e}function H3(e,t){return fd(e,r=>{const a=t.tokens.getVar(`sizes.${r}`,F3(r));return r===null?null:`repeat(auto-fit, minmax(${a}, 1fr))`})}function $3(e){return fd(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const $B=O.forwardRef(function(t,r){return z.jsx(VO,{align:"center",...t,direction:"row",ref:r})}),UB=O.forwardRef(function(t,r){return z.jsx(VO,{align:"center",...t,direction:"column",ref:r})}),{withProvider:LO,withContext:Qp,useStyles:U3}=ir({key:"switch"});LO(VE,"root",{forwardAsChild:!0});const jB=LO(_E,"root",{forwardAsChild:!0}),GB=Qp(PE,"label",{forwardAsChild:!0}),j3=Qp(DE,"thumb",{forwardAsChild:!0}),WB=Qp(kE,"control",{forwardAsChild:!0,defaultProps:{children:z.jsx(j3,{})}});O.forwardRef(function(t,r){const a=Eo(),s=U3(),{fallback:c,children:u,unstyled:f,...g}=t;return z.jsx(Xe.span,{ref:r,"data-checked":gd(a.checked),...g,css:[f?void 0:s.indicator,t.css],children:a.checked?u:c})});O.forwardRef(function(t,r){const a=Eo(),{fallback:s,children:c,...u}=t;return z.jsx(Xe.span,{ref:r,"data-checked":gd(a.checked),...u,children:a.checked?c:s})});const qB=NE,{withProvider:BO,withContext:El}=ir({key:"tabs"});BO(GE,"root",{forwardAsChild:!0});const YB=BO(jE,"root",{forwardAsChild:!0}),XB=El(FE,"trigger",{forwardAsChild:!0}),KB=El(ME,"content",{forwardAsChild:!0});El("div","contentGroup");const QB=El(BE,"list",{forwardAsChild:!0});El(LE,"indicator",{forwardAsChild:!0});const{withContext:G3}=Ir({key:"textarea"}),ZB=G3(T1),{withRootProvider:FO,withContext:Ol}=ir({key:"tooltip"});FO(ez);const JB=FO(JD,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),eF=Ol(eO,"trigger",{forwardAsChild:!0}),tF=Ol(KE,"positioner",{forwardAsChild:!0}),nF=Ol(XE,"content",{forwardAsChild:!0}),W3=Ol(YE,"arrowTip",{forwardAsChild:!0}),rF=Ol(qE,"arrow",{forwardAsChild:!0,defaultProps:{children:z.jsx(W3,{})}});/**
65
+ * react-router v7.8.2
66
+ *
67
+ * Copyright (c) Remix Software Inc.
68
+ *
69
+ * This source code is licensed under the MIT license found in the
70
+ * LICENSE.md file in the root directory of this source tree.
71
+ *
72
+ * @license MIT
73
+ */var sS="popstate";function q3(e={}){function t(a,s){let{pathname:c,search:u,hash:f}=a.location;return jg("",{pathname:c,search:u,hash:f},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(a,s){return typeof s=="string"?s:ll(s)}return X3(t,r,null,e)}function Je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Y3(){return Math.random().toString(36).substring(2,10)}function lS(e,t){return{usr:e.state,key:e.key,idx:t}}function jg(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||Y3()}}function ll({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 X3(e,t,r,a={}){let{window:s=document.defaultView,v5Compat:c=!1}=a,u=s.history,f="POP",g=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 w=m(),T=w==null?null:w-p;p=w,g&&g({action:f,location:C.location,delta:T})}function v(w,T){f="PUSH";let R=jg(C.location,w,T);p=m()+1;let N=lS(R,p),L=C.createHref(R);try{u.pushState(N,"",L)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(L)}c&&g&&g({action:f,location:C.location,delta:1})}function x(w,T){f="REPLACE";let R=jg(C.location,w,T);p=m();let N=lS(R,p),L=C.createHref(R);u.replaceState(N,"",L),c&&g&&g({action:f,location:C.location,delta:0})}function E(w){return K3(w)}let C={get action(){return f},get location(){return e(s,u)},listen(w){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(sS,y),g=w,()=>{s.removeEventListener(sS,y),g=null}},createHref(w){return t(s,w)},createURL:E,encodeLocation(w){let T=E(w);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:v,replace:x,go(w){return u.go(w)}};return C}function K3(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Je(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:ll(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function HO(e,t,r="/"){return Q3(e,t,r,!1)}function Q3(e,t,r,a){let s=typeof t=="string"?To(t):t,c=Ar(s.pathname||"/",r);if(c==null)return null;let u=$O(e);Z3(u);let f=null;for(let g=0;f==null&&g<u.length;++g){let p=c4(c);f=s4(u[g],p,a)}return f}function $O(e,t=[],r=[],a="",s=!1){let c=(u,f,g=s,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)&&g)return;Je(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=kr([a,m.relativePath]),v=r.concat(m);u.children&&u.children.length>0&&(Je(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),$O(u.children,t,v,y,g)),!(u.path==null&&!u.index)&&t.push({path:y,score:a4(y,u.index),routesMeta:v})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))c(u,f);else for(let g of UO(u.path))c(u,f,!0,g)}),t}function UO(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(a.length===0)return s?[c,""]:[c];let u=UO(a.join("/")),f=[];return f.push(...u.map(g=>g===""?c:[c,g].join("/"))),s&&f.push(...u),f.map(g=>e.startsWith("/")&&g===""?"/":g)}function Z3(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:o4(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var J3=/^:[\w-]+$/,e4=3,t4=2,n4=1,r4=10,i4=-2,cS=e=>e==="*";function a4(e,t){let r=e.split("/"),a=r.length;return r.some(cS)&&(a+=i4),t&&(a+=t4),r.filter(s=>!cS(s)).reduce((s,c)=>s+(J3.test(c)?e4:c===""?n4:r4),a)}function o4(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function s4(e,t,r=!1){let{routesMeta:a}=e,s={},c="/",u=[];for(let f=0;f<a.length;++f){let g=a[f],p=f===a.length-1,m=c==="/"?t:t.slice(c.length)||"/",y=Fu({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},m),v=g.route;if(!y&&p&&r&&!a[a.length-1].route.index&&(y=Fu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},m)),!y)return null;Object.assign(s,y.params),u.push({params:s,pathname:kr([c,y.pathname]),pathnameBase:h4(kr([c,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(c=kr([c,y.pathnameBase]))}return u}function Fu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=l4(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let c=s[0],u=c.replace(/(.)\/+$/,"$1"),f=s.slice(1);return{params:a.reduce((p,{paramName:m,isOptional:y},v)=>{if(m==="*"){let E=f[v]||"";u=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const x=f[v];return y&&!x?p[m]=void 0:p[m]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:e}}function l4(e,t=!1,r=!0){Mn(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,g)=>(a.push({paramName:f,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function c4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mn(!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 Ar(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 u4(e,t="/"){let{pathname:r,search:a="",hash:s=""}=typeof e=="string"?To(e):e;return{pathname:r?r.startsWith("/")?r:d4(r,t):t,search:g4(a),hash:p4(s)}}function d4(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function lg(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 f4(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function jO(e){let t=f4(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function GO(e,t,r,a=!1){let s;typeof e=="string"?s=To(e):(s={...e},Je(!s.pathname||!s.pathname.includes("?"),lg("?","pathname","search",s)),Je(!s.pathname||!s.pathname.includes("#"),lg("#","pathname","hash",s)),Je(!s.search||!s.search.includes("#"),lg("#","search","hash",s)));let c=e===""||s.pathname==="",u=c?"/":s.pathname,f;if(u==null)f=r;else{let y=t.length-1;if(!a&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),y-=1;s.pathname=v.join("/")}f=y>=0?t[y]:"/"}let g=u4(s,f),p=u&&u!=="/"&&u.endsWith("/"),m=(c||u===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||m)&&(g.pathname+="/"),g}var kr=e=>e.join("/").replace(/\/\/+/g,"/"),h4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),g4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,p4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function m4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var WO=["POST","PUT","PATCH","DELETE"];new Set(WO);var v4=["GET",...WO];new Set(v4);var Ro=O.createContext(null);Ro.displayName="DataRouter";var pd=O.createContext(null);pd.displayName="DataRouterState";O.createContext(!1);var qO=O.createContext({isTransitioning:!1});qO.displayName="ViewTransition";var b4=O.createContext(new Map);b4.displayName="Fetchers";var y4=O.createContext(null);y4.displayName="Await";var or=O.createContext(null);or.displayName="Navigation";var wl=O.createContext(null);wl.displayName="Location";var sr=O.createContext({outlet:null,matches:[],isDataRoute:!1});sr.displayName="Route";var Zp=O.createContext(null);Zp.displayName="RouteError";function x4(e,{relative:t}={}){Je(Tl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=O.useContext(or),{hash:s,pathname:c,search:u}=Rl(e,{relative:t}),f=c;return r!=="/"&&(f=c==="/"?r:kr([r,c])),a.createHref({pathname:f,search:u,hash:s})}function Tl(){return O.useContext(wl)!=null}function Si(){return Je(Tl(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(wl).location}var YO="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function XO(e){O.useContext(or).static||O.useLayoutEffect(e)}function KO(){let{isDataRoute:e}=O.useContext(sr);return e?_4():S4()}function S4(){Je(Tl(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(Ro),{basename:t,navigator:r}=O.useContext(or),{matches:a}=O.useContext(sr),{pathname:s}=Si(),c=JSON.stringify(jO(a)),u=O.useRef(!1);return XO(()=>{u.current=!0}),O.useCallback((g,p={})=>{if(Mn(u.current,YO),!u.current)return;if(typeof g=="number"){r.go(g);return}let m=GO(g,JSON.parse(c),s,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:kr([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,c,s,e])}O.createContext(null);function iF(){let{matches:e}=O.useContext(sr),t=e[e.length-1];return t?t.params:{}}function Rl(e,{relative:t}={}){let{matches:r}=O.useContext(sr),{pathname:a}=Si(),s=JSON.stringify(jO(r));return O.useMemo(()=>GO(e,JSON.parse(s),a,t==="path"),[e,s,a,t])}function C4(e,t){return QO(e,t)}function QO(e,t,r,a,s){Je(Tl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=O.useContext(or),{matches:u}=O.useContext(sr),f=u[u.length-1],g=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let R=y&&y.path||"";ZO(p,!y||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) 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.
74
+
75
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let v=Si(),x;if(t){let R=typeof t=="string"?To(t):t;Je(m==="/"||R.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 "${R.pathname}" was given in the \`location\` prop.`),x=R}else x=v;let E=x.pathname||"/",C=E;if(m!=="/"){let R=m.replace(/^\//,"").split("/");C="/"+E.replace(/^\//,"").split("/").slice(R.length).join("/")}let w=HO(e,{pathname:C});Mn(y||w!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Mn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.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 T=R4(w&&w.map(R=>Object.assign({},R,{params:Object.assign({},g,R.params),pathname:kr([m,c.encodeLocation?c.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?m:kr([m,c.encodeLocation?c.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),u,r,a,s);return t&&T?O.createElement(wl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},T):T}function E4(){let e=I4(),t=m4(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)",s={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=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:c},"ErrorBoundary")," or"," ",O.createElement("code",{style:c},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),r?O.createElement("pre",{style:s},r):null,u)}var O4=O.createElement(E4,null),w4=class extends O.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?O.createElement(sr.Provider,{value:this.props.routeContext},O.createElement(Zp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function T4({routeContext:e,match:t,children:r}){let a=O.useContext(Ro);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(sr.Provider,{value:e},r)}function R4(e,t=[],r=null,a=null,s=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);Je(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,g=-1;if(r)for(let p=0;p<c.length;p++){let m=c[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(g=p),m.route.id){let{loaderData:y,errors:v}=r,x=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||x){f=!0,g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}return c.reduceRight((p,m,y)=>{let v,x=!1,E=null,C=null;r&&(v=u&&m.route.id?u[m.route.id]:void 0,E=m.route.errorElement||O4,f&&(g<0&&y===0?(ZO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,C=null):g===y&&(x=!0,C=m.route.hydrateFallbackElement||null)));let w=t.concat(c.slice(0,y+1)),T=()=>{let R;return v?R=E:x?R=C:m.route.Component?R=O.createElement(m.route.Component,null):m.route.element?R=m.route.element:R=p,O.createElement(T4,{match:m,routeContext:{outlet:p,matches:w,isDataRoute:r!=null},children:R})};return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?O.createElement(w4,{location:r.location,revalidation:r.revalidation,component:E,error:v,children:T(),routeContext:{outlet:null,matches:w,isDataRoute:!0},unstable_onError:a}):T()},null)}function Jp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function k4(e){let t=O.useContext(Ro);return Je(t,Jp(e)),t}function N4(e){let t=O.useContext(pd);return Je(t,Jp(e)),t}function P4(e){let t=O.useContext(sr);return Je(t,Jp(e)),t}function em(e){let t=P4(e),r=t.matches[t.matches.length-1];return Je(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function A4(){return em("useRouteId")}function I4(){let e=O.useContext(Zp),t=N4("useRouteError"),r=em("useRouteError");return e!==void 0?e:t.errors?.[r]}function _4(){let{router:e}=k4("useNavigate"),t=em("useNavigate"),r=O.useRef(!1);return XO(()=>{r.current=!0}),O.useCallback(async(s,c={})=>{Mn(r.current,YO),r.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...c}))},[e,t])}var uS={};function ZO(e,t,r){!t&&!uS[e]&&(uS[e]=!0,Mn(!1,r))}O.memo(V4);function V4({routes:e,future:t,state:r,unstable_onError:a}){return QO(e,void 0,r,a,t)}function D4(e){Je(!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 z4({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:s,static:c=!1}){Je(!Tl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=O.useMemo(()=>({basename:u,navigator:s,static:c,future:{}}),[u,s,c]);typeof r=="string"&&(r=To(r));let{pathname:g="/",search:p="",hash:m="",state:y=null,key:v="default"}=r,x=O.useMemo(()=>{let E=Ar(g,u);return E==null?null:{location:{pathname:E,search:p,hash:m,state:y,key:v},navigationType:a}},[u,g,p,m,y,v,a]);return Mn(x!=null,`<Router basename="${u}"> is not able to match the URL "${g}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:O.createElement(or.Provider,{value:f},O.createElement(wl.Provider,{children:t,value:x}))}function aF({children:e,location:t}){return C4(Gg(e),t)}function Gg(e,t=[]){let r=[];return O.Children.forEach(e,(a,s)=>{if(!O.isValidElement(a))return;let c=[...t,s];if(a.type===O.Fragment){r.push.apply(r,Gg(a.props.children,c));return}Je(a.type===D4,`[${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>`),Je(!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=Gg(a.props.children,c)),r.push(u)}),r}var wu="get",Tu="application/x-www-form-urlencoded";function md(e){return e!=null&&typeof e.tagName=="string"}function M4(e){return md(e)&&e.tagName.toLowerCase()==="button"}function L4(e){return md(e)&&e.tagName.toLowerCase()==="form"}function B4(e){return md(e)&&e.tagName.toLowerCase()==="input"}function F4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function H4(e,t){return e.button===0&&(!t||t==="_self")&&!F4(e)}function Wg(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let a=e[r];return t.concat(Array.isArray(a)?a.map(s=>[r,s]):[[r,a]])},[]))}function $4(e,t){let r=Wg(e);return t&&t.forEach((a,s)=>{r.has(s)||t.getAll(s).forEach(c=>{r.append(s,c)})}),r}var lu=null;function U4(){if(lu===null)try{new FormData(document.createElement("form"),0),lu=!1}catch{lu=!0}return lu}var j4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cg(e){return e!=null&&!j4.has(e)?(Mn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tu}"`),null):e}function G4(e,t){let r,a,s,c,u;if(L4(e)){let f=e.getAttribute("action");a=f?Ar(f,t):null,r=e.getAttribute("method")||wu,s=cg(e.getAttribute("enctype"))||Tu,c=new FormData(e)}else if(M4(e)||B4(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 g=e.getAttribute("formaction")||f.getAttribute("action");if(a=g?Ar(g,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||wu,s=cg(e.getAttribute("formenctype"))||cg(f.getAttribute("enctype"))||Tu,c=new FormData(f,e),!U4()){let{name:p,type:m,value:y}=e;if(m==="image"){let v=p?`${p}.`:"";c.append(`${v}x`,"0"),c.append(`${v}y`,"0")}else p&&c.append(p,y)}}else{if(md(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=wu,a=null,s=Tu,u=e}return c&&s==="text/plain"&&(u=c,c=void 0),{action:a,method:r.toLowerCase(),encType:s,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function W4(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&&Ar(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function q4(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 Y4(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 X4(e,t,r){let a=await Promise.all(e.map(async s=>{let c=t.routes[s.route.id];if(c){let u=await q4(c,r);return u.links?u.links():[]}return[]}));return J4(a.flat(1).filter(Y4).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function dS(e,t,r,a,s,c){let u=(g,p)=>r[p]?g.route.id!==r[p].route.id:!0,f=(g,p)=>r[p].pathname!==g.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==g.params["*"];return c==="assets"?t.filter((g,p)=>u(g,p)||f(g,p)):c==="data"?t.filter((g,p)=>{let m=a.routes[g.route.id];if(!m||!m.hasLoader)return!1;if(u(g,p)||f(g,p))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function K4(e,t,{includeHydrateFallback:r}={}){return Q4(e.map(a=>{let s=t.routes[a.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function Q4(e){return[...new Set(e)]}function Z4(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function J4(e,t){let r=new Set;return new Set(t),e.reduce((a,s)=>{let c=JSON.stringify(Z4(s));return r.has(c)||(r.add(c),a.push({key:c,link:s})),a},[])}function JO(){let e=O.useContext(Ro);return tm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function e6(){let e=O.useContext(pd);return tm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var nm=O.createContext(void 0);nm.displayName="FrameworkContext";function ew(){let e=O.useContext(nm);return tm(e,"You must render this element inside a <HydratedRouter> element"),e}function t6(e,t){let r=O.useContext(nm),[a,s]=O.useState(!1),[c,u]=O.useState(!1),{onFocus:f,onBlur:g,onMouseEnter:p,onMouseLeave:m,onTouchStart:y}=t,v=O.useRef(null);O.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let C=T=>{T.forEach(R=>{u(R.isIntersecting)})},w=new IntersectionObserver(C,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),O.useEffect(()=>{if(a){let C=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(C)}}},[a]);let x=()=>{s(!0)},E=()=>{s(!1),u(!1)};return r?e!=="intent"?[c,v,{}]:[c,v,{onFocus:$s(f,x),onBlur:$s(g,E),onMouseEnter:$s(p,x),onMouseLeave:$s(m,E),onTouchStart:$s(y,x)}]:[!1,v,{}]}function $s(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function n6({page:e,...t}){let{router:r}=JO(),a=O.useMemo(()=>HO(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?O.createElement(i6,{page:e,matches:a,...t}):null}function r6(e){let{manifest:t,routeModules:r}=ew(),[a,s]=O.useState([]);return O.useEffect(()=>{let c=!1;return X4(e,t,r).then(u=>{c||s(u)}),()=>{c=!0}},[e,t,r]),a}function i6({page:e,matches:t,...r}){let a=Si(),{manifest:s,routeModules:c}=ew(),{basename:u}=JO(),{loaderData:f,matches:g}=e6(),p=O.useMemo(()=>dS(e,t,g,s,a,"data"),[e,t,g,s,a]),m=O.useMemo(()=>dS(e,t,g,s,a,"assets"),[e,t,g,s,a]),y=O.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let E=new Set,C=!1;if(t.forEach(T=>{let R=s.routes[T.route.id];!R||!R.hasLoader||(!p.some(N=>N.route.id===T.route.id)&&T.route.id in f&&c[T.route.id]?.shouldRevalidate||R.hasClientLoader?C=!0:E.add(T.route.id))}),E.size===0)return[];let w=W4(e,u,"data");return C&&E.size>0&&w.searchParams.set("_routes",t.filter(T=>E.has(T.route.id)).map(T=>T.route.id).join(",")),[w.pathname+w.search]},[u,f,a,s,p,t,e,c]),v=O.useMemo(()=>K4(m,s),[m,s]),x=r6(m);return O.createElement(O.Fragment,null,y.map(E=>O.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),v.map(E=>O.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),x.map(({key:E,link:C})=>O.createElement("link",{key:E,nonce:r.nonce,...C})))}function a6(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var tw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tw&&(window.__reactRouterVersion="7.8.2")}catch{}function oF({basename:e,children:t,window:r}){let a=O.useRef();a.current==null&&(a.current=q3({window:r,v5Compat:!0}));let s=a.current,[c,u]=O.useState({action:s.action,location:s.location}),f=O.useCallback(g=>{O.startTransition(()=>u(g))},[u]);return O.useLayoutEffect(()=>s.listen(f),[s,f]),O.createElement(z4,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:s})}var nw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rw=O.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:s,reloadDocument:c,replace:u,state:f,target:g,to:p,preventScrollReset:m,viewTransition:y,...v},x){let{basename:E}=O.useContext(or),C=typeof p=="string"&&nw.test(p),w,T=!1;if(typeof p=="string"&&C&&(w=p,tw))try{let $=new URL(window.location.href),G=p.startsWith("//")?new URL($.protocol+p):new URL(p),Y=Ar(G.pathname,E);G.origin===$.origin&&Y!=null?p=Y+G.search+G.hash:T=!0}catch{Mn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=x4(p,{relative:s}),[N,L,A]=t6(a,v),U=c6(p,{replace:u,state:f,target:g,preventScrollReset:m,relative:s,viewTransition:y});function q($){t&&t($),$.defaultPrevented||U($)}let _=O.createElement("a",{...v,...A,href:w||R,onClick:T||c?t:q,ref:a6(x,L),target:g,"data-discover":!C&&r==="render"?"true":void 0});return N&&!C?O.createElement(O.Fragment,null,_,O.createElement(n6,{page:R})):_});rw.displayName="Link";var o6=O.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:s=!1,style:c,to:u,viewTransition:f,children:g,...p},m){let y=Rl(u,{relative:p.relative}),v=Si(),x=O.useContext(pd),{navigator:E,basename:C}=O.useContext(or),w=x!=null&&g6(y)&&f===!0,T=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,R=v.pathname,N=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(R=R.toLowerCase(),N=N?N.toLowerCase():null,T=T.toLowerCase()),N&&C&&(N=Ar(N,C)||N);const L=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let A=R===T||!s&&R.startsWith(T)&&R.charAt(L)==="/",U=N!=null&&(N===T||!s&&N.startsWith(T)&&N.charAt(T.length)==="/"),q={isActive:A,isPending:U,isTransitioning:w},_=A?t:void 0,$;typeof a=="function"?$=a(q):$=[a,A?"active":null,U?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let G=typeof c=="function"?c(q):c;return O.createElement(rw,{...p,"aria-current":_,className:$,ref:m,style:G,to:u,viewTransition:f},typeof g=="function"?g(q):g)});o6.displayName="NavLink";var s6=O.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:s,state:c,method:u=wu,action:f,onSubmit:g,relative:p,preventScrollReset:m,viewTransition:y,...v},x)=>{let E=f6(),C=h6(f,{relative:p}),w=u.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&nw.test(f),R=N=>{if(g&&g(N),N.defaultPrevented)return;N.preventDefault();let L=N.nativeEvent.submitter,A=L?.getAttribute("formmethod")||u;E(L||N.currentTarget,{fetcherKey:t,method:A,navigate:r,replace:s,state:c,relative:p,preventScrollReset:m,viewTransition:y})};return O.createElement("form",{ref:x,method:w,action:C,onSubmit:a?g:R,...v,"data-discover":!T&&e==="render"?"true":void 0})});s6.displayName="Form";function l6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function iw(e){let t=O.useContext(Ro);return Je(t,l6(e)),t}function c6(e,{target:t,replace:r,state:a,preventScrollReset:s,relative:c,viewTransition:u}={}){let f=KO(),g=Si(),p=Rl(e,{relative:c});return O.useCallback(m=>{if(H4(m,t)){m.preventDefault();let y=r!==void 0?r:ll(g)===ll(p);f(e,{replace:y,state:a,preventScrollReset:s,relative:c,viewTransition:u})}},[g,f,p,r,a,t,e,s,c,u])}function sF(e){Mn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=O.useRef(Wg(e)),r=O.useRef(!1),a=Si(),s=O.useMemo(()=>$4(a.search,r.current?null:t.current),[a.search]),c=KO(),u=O.useCallback((f,g)=>{const p=Wg(typeof f=="function"?f(new URLSearchParams(s)):f);r.current=!0,c("?"+p,g)},[c,s]);return[s,u]}var u6=0,d6=()=>`__${String(++u6)}__`;function f6(){let{router:e}=iw("useSubmit"),{basename:t}=O.useContext(or),r=A4();return O.useCallback(async(a,s={})=>{let{action:c,method:u,encType:f,formData:g,body:p}=G4(a,t);if(s.navigate===!1){let m=s.fetcherKey||d6();await e.fetch(m,r,s.action||c,{preventScrollReset:s.preventScrollReset,formData:g,body:p,formMethod:s.method||u,formEncType:s.encType||f,flushSync:s.flushSync})}else await e.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:g,body:p,formMethod:s.method||u,formEncType:s.encType||f,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,r])}function h6(e,{relative:t}={}){let{basename:r}=O.useContext(or),a=O.useContext(sr);Je(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),c={...Rl(e||".",{relative:t})},u=Si();if(e==null){c.search=u.search;let f=new URLSearchParams(c.search),g=f.getAll("index");if(g.some(m=>m==="")){f.delete("index"),g.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();c.search=m?`?${m}`:""}}return(!e||e===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:kr([r,c.pathname])),ll(c)}function g6(e,{relative:t}={}){let r=O.useContext(qO);Je(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=iw("useViewTransitionState"),s=Rl(e,{relative:t});if(!r.isTransitioning)return!1;let c=Ar(r.currentLocation.pathname,a)||r.currentLocation.pathname,u=Ar(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Fu(s.pathname,u)!=null||Fu(s.pathname,c)!=null}var ko=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},p6={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},m6=class{#e=p6;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Qi=new m6;function v6(e){setTimeout(e,0)}var ra=typeof window>"u"||"Deno"in globalThis;function Lt(){}function b6(e,t){return typeof e=="function"?e(t):e}function qg(e){return typeof e=="number"&&e>=0&&e!==1/0}function aw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function di(e,t){return typeof e=="function"?e(t):e}function Rn(e,t){return typeof e=="function"?e(t):e}function fS(e,t){const{type:r="all",exact:a,fetchStatus:s,predicate:c,queryKey:u,stale:f}=e;if(u){if(a){if(t.queryHash!==rm(u,t.options))return!1}else if(!cl(t.queryKey,u))return!1}if(r!=="all"){const g=t.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||c&&!c(t))}function hS(e,t){const{exact:r,status:a,predicate:s,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(r){if(ia(t.options.mutationKey)!==ia(c))return!1}else if(!cl(t.options.mutationKey,c))return!1}return!(a&&t.state.status!==a||s&&!s(t))}function rm(e,t){return(t?.queryKeyHashFn||ia)(e)}function ia(e){return JSON.stringify(e,(t,r)=>Yg(r)?Object.keys(r).sort().reduce((a,s)=>(a[s]=r[s],a),{}):r)}function cl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>cl(e[r],t[r])):!1}var y6=Object.prototype.hasOwnProperty;function ow(e,t){if(e===t)return e;const r=gS(e)&&gS(t);if(!r&&!(Yg(e)&&Yg(t)))return t;const s=(r?e:Object.keys(e)).length,c=r?t:Object.keys(t),u=c.length,f=r?new Array(u):{};let g=0;for(let p=0;p<u;p++){const m=r?p:c[p],y=e[m],v=t[m];if(y===v){f[m]=y,(r?p<s:y6.call(e,m))&&g++;continue}if(y===null||v===null||typeof y!="object"||typeof v!="object"){f[m]=v;continue}const x=ow(y,v);f[m]=x,x===y&&g++}return s===u&&g===s?e:f}function Hu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function gS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yg(e){if(!pS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!pS(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pS(e){return Object.prototype.toString.call(e)==="[object Object]"}function x6(e){return new Promise(t=>{Qi.setTimeout(t,e)})}function Xg(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?ow(e,t):t}function S6(e,t,r=0){const a=[...e,t];return r&&a.length>r?a.slice(1):a}function C6(e,t,r=0){const a=[t,...e];return r&&a.length>r?a.slice(0,-1):a}var im=Symbol();function sw(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===im?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function lw(e,t){return typeof e=="function"?e(...t):!!e}var E6=class extends ko{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!ra&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},am=new E6;function Kg(){let e,t;const r=new Promise((s,c)=>{e=s,t=c});r.status="pending",r.catch(()=>{});function a(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{a({status:"fulfilled",value:s}),e(s)},r.reject=s=>{a({status:"rejected",reason:s}),t(s)},r}var O6=v6;function w6(){let e=[],t=0,r=f=>{f()},a=f=>{f()},s=O6;const c=f=>{t?e.push(f):s(()=>{r(f)})},u=()=>{const f=e;e=[],f.length&&s(()=>{a(()=>{f.forEach(g=>{r(g)})})})};return{batch:f=>{let g;t++;try{g=f()}finally{t--,t||u()}return g},batchCalls:f=>(...g)=>{c(()=>{f(...g)})},schedule:c,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{a=f},setScheduler:f=>{s=f}}}var gt=w6(),T6=class extends ko{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!ra&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},$u=new T6;function R6(e){return Math.min(1e3*2**e,3e4)}function cw(e){return(e??"online")==="online"?$u.isOnline():!0}var Qg=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function uw(e){let t=!1,r=0,a;const s=Kg(),c=()=>s.status!=="pending",u=C=>{if(!c()){const w=new Qg(C);v(w),e.onCancel?.(w)}},f=()=>{t=!0},g=()=>{t=!1},p=()=>am.isFocused()&&(e.networkMode==="always"||$u.isOnline())&&e.canRun(),m=()=>cw(e.networkMode)&&e.canRun(),y=C=>{c()||(a?.(),s.resolve(C))},v=C=>{c()||(a?.(),s.reject(C))},x=()=>new Promise(C=>{a=w=>{(c()||p())&&C(w)},e.onPause?.()}).then(()=>{a=void 0,c()||e.onContinue?.()}),E=()=>{if(c())return;let C;const w=r===0?e.initialPromise:void 0;try{C=w??e.fn()}catch(T){C=Promise.reject(T)}Promise.resolve(C).then(y).catch(T=>{if(c())return;const R=e.retry??(ra?0:3),N=e.retryDelay??R6,L=typeof N=="function"?N(r,T):N,A=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,T);if(t||!A){v(T);return}r++,e.onFail?.(r,T),x6(L).then(()=>p()?void 0:x()).then(()=>{t?v(T):E()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(a?.(),s),cancelRetry:f,continueRetry:g,canStart:m,start:()=>(m()?E():x().then(E),s)}}var dw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qg(this.gcTime)&&(this.#e=Qi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ra?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Qi.clearTimeout(this.#e),this.#e=void 0)}},k6=class extends dw{#e;#t;#n;#r;#i;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=mS(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=mS(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=Xg(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(Lt).catch(Lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Rn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===im||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>di(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!aw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#s?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(g=>g.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},s=()=>{const f=sw(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return a(m),m})();return this.#s=!1,this.options.persister?this.options.persister(f,p,this):f(p)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:s};return a(f),f})();this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#a({type:"fetch",meta:u.fetchOptions?.meta}),this.#i=uw({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof Qg&&f.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(f,g)=>{this.#a({type:"failed",failureCount:f,error:g})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#i.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Qg){if(f.silent)return this.#i.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#a({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#a(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...fw(r.data,this.options),fetchMeta:e.meta??null};case"success":const a={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?a:void 0,a;case"error":const s=e.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),gt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function fw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,a=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var hw=class extends ko{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=Kg(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#s;#a;#p;#f;#h;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),vS(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zg(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zg(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Rn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!Hu(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&bS(this.#t,r,this.options,t)&&this.#d(),this.updateResult(),a&&(this.#t!==r||Rn(this.options.enabled,this.#t)!==Rn(t.enabled,this.#t)||di(this.options.staleTime,this.#t)!==di(t.staleTime,this.#t))&&this.#m();const s=this.#v();a&&(this.#t!==r||Rn(this.options.enabled,this.#t)!==Rn(t.enabled,this.#t)||s!==this.#l)&&this.#b(s)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return P6(this,r)&&(this.#r=r,this.#o=this.options,this.#i=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(r,a)=>(this.trackProp(a),t?.(a),a==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,a))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Lt)),t}#m(){this.#x();const e=di(this.options.staleTime,this.#t);if(ra||this.#r.isStale||!qg(e))return;const r=aw(this.#r.dataUpdatedAt,e)+1;this.#c=Qi.setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#l=e,!(ra||Rn(this.options.enabled,this.#t)===!1||!qg(this.#l)||this.#l===0)&&(this.#u=Qi.setInterval(()=>{(this.options.refetchIntervalInBackground||am.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(Qi.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(Qi.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const r=this.#t,a=this.options,s=this.#r,c=this.#i,u=this.#o,g=e!==r?e.state:this.#n,{state:p}=e;let m={...p},y=!1,v;if(t._optimisticResults){const _=this.hasListeners(),$=!_&&vS(e,t),G=_&&bS(e,r,t,a);($||G)&&(m={...m,...fw(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:E,status:C}=m;v=m.data;let w=!1;if(t.placeholderData!==void 0&&v===void 0&&C==="pending"){let _;s?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(_=s.data,w=!0):_=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,_!==void 0&&(C="success",v=Xg(s?.data,_,t),y=!0)}if(t.select&&v!==void 0&&!w)if(s&&v===c?.data&&t.select===this.#p)v=this.#f;else try{this.#p=t.select,v=t.select(v),v=Xg(s?.data,v,t),this.#f=v,this.#a=null}catch(_){this.#a=_}this.#a&&(x=this.#a,v=this.#f,E=Date.now(),C="error");const T=m.fetchStatus==="fetching",R=C==="pending",N=C==="error",L=R&&T,A=v!==void 0,q={status:C,fetchStatus:m.fetchStatus,isPending:R,isSuccess:C==="success",isError:N,isInitialLoading:L,isLoading:L,data:v,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:E,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>g.dataUpdateCount||m.errorUpdateCount>g.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:N&&!A,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:N&&A,isStale:om(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Rn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const _=Y=>{q.status==="error"?Y.reject(q.error):q.data!==void 0&&Y.resolve(q.data)},$=()=>{const Y=this.#s=q.promise=Kg();_(Y)},G=this.#s;switch(G.status){case"pending":e.queryHash===r.queryHash&&_(G);break;case"fulfilled":(q.status==="error"||q.data!==G.value)&&$();break;case"rejected":(q.status!=="error"||q.error!==G.reason)&&$();break}}return q}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#h=this.#t),Hu(t,e))return;this.#r=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!this.#g.size)return!0;const c=new Set(s??this.#g);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(u=>{const f=u;return this.#r[f]!==e[f]&&c.has(f)})};this.#E({listeners:r()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){gt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function N6(e,t){return Rn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function vS(e,t){return N6(e,t)||e.state.data!==void 0&&Zg(e,t,t.refetchOnMount)}function Zg(e,t,r){if(Rn(t.enabled,e)!==!1&&di(t.staleTime,e)!=="static"){const a=typeof r=="function"?r(e):r;return a==="always"||a!==!1&&om(e,t)}return!1}function bS(e,t,r,a){return(e!==t||Rn(a.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&om(e,r)}function om(e,t){return Rn(t.enabled,e)!==!1&&e.isStaleByTime(di(t.staleTime,e))}function P6(e,t){return!Hu(e.getCurrentResult(),t)}function Uu(e){return{onFetch:(t,r)=>{const a=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},g=0;const p=async()=>{let m=!1;const y=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=sw(t.options,t.fetchOptions),x=async(E,C,w)=>{if(m)return Promise.reject();if(C==null&&E.pages.length)return Promise.resolve(E);const R=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:C,direction:w?"backward":"forward",meta:t.options.meta};return y(U),U})(),N=await v(R),{maxPages:L}=t.options,A=w?C6:S6;return{pages:A(E.pages,N,L),pageParams:A(E.pageParams,C,L)}};if(s&&c.length){const E=s==="backward",C=E?gw:Jg,w={pages:c,pageParams:u},T=C(a,w);f=await x(w,T,E)}else{const E=e??c.length;do{const C=g===0?u[0]??a.initialPageParam:Jg(a,f);if(g>0&&C==null)break;f=await x(f,C),g++}while(g<E)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function Jg(e,{pages:t,pageParams:r}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,r[a],r):void 0}function gw(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function A6(e,t){return t?Jg(e,t)!=null:!1}function I6(e,t){return!t||!e.getPreviousPageParam?!1:gw(e,t)!=null}var _6=class extends hw{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Uu()})}getOptimisticResult(e){return e.behavior=Uu(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,a=super.createResult(e,t),{isFetching:s,isRefetching:c,isError:u,isRefetchError:f}=a,g=r.fetchMeta?.fetchMore?.direction,p=u&&g==="forward",m=s&&g==="forward",y=u&&g==="backward",v=s&&g==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:A6(t,r.data),hasPreviousPage:I6(t,r.data),isFetchNextPageError:p,isFetchingNextPage:m,isFetchPreviousPageError:y,isFetchingPreviousPage:v,isRefetchError:f&&!p&&!y,isRefetching:c&&!m&&!v}}},V6=class extends dw{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||pw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=uw({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",a=!this.#n.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#t.config.onMutate?.(e,this);const c=await this.options.onMutate?.(e);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:a})}const s=await this.#n.start();return await this.#t.config.onSuccess?.(s,e,this.state.context,this),await this.options.onSuccess?.(s,e,this.state.context),await this.#t.config.onSettled?.(s,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(s,null,e,this.state.context),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#t.config.onError?.(s,e,this.state.context,this),await this.options.onError?.(s,e,this.state.context),await this.#t.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,s,e,this.state.context),s}finally{this.#r({type:"error",error:s})}}finally{this.#t.runNext(this)}}#r(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),gt.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function pw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var D6=class extends ko{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,r){const a=new V6({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(a),a}add(e){this.#e.add(e);const t=cu(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=cu(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const a=r.indexOf(e);a!==-1&&r.splice(a,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=cu(e);if(typeof t=="string"){const a=this.#t.get(t)?.find(s=>s.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=cu(e);return typeof t=="string"?this.#t.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){gt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>hS(t,r))}findAll(e={}){return this.getAll().filter(t=>hS(e,t))}notify(e){gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return gt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Lt))))}};function cu(e){return e.options.scope?.id}var z6=class extends ko{#e;#t=void 0;#n;#r;constructor(t,r){super(),this.#e=t,this.setOptions(r),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#e.defaultMutationOptions(t),Hu(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&ia(r.mutationKey)!==ia(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,r){return this.#r=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??pw();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){gt.batch(()=>{if(this.#r&&this.hasListeners()){const r=this.#t.variables,a=this.#t.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,r,a),this.#r.onSettled?.(t.data,null,r,a)):t?.type==="error"&&(this.#r.onError?.(t.error,r,a),this.#r.onSettled?.(void 0,t.error,r,a))}this.listeners.forEach(r=>{r(this.#t)})})}},M6=class extends ko{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const a=t.queryKey,s=t.queryHash??rm(a,t);let c=this.get(s);return c||(c=new k6({client:e,queryKey:a,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(a)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){gt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>fS(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>fS(e,r)):t}notify(e){gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},cF=class{#e;#t;#n;#r;#i;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new M6,this.#t=e.mutationCache||new D6,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=am.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=$u.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),a=r.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(di(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const a=r.data;return[t,a]})}setQueryData(e,t,r){const a=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(a.queryHash)?.state.data,u=b6(t,c);if(u!==void 0)return this.#e.build(this,a).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return gt.batch(()=>this.#e.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;gt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return gt.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},a=gt.batch(()=>this.#e.findAll(e).map(s=>s.cancel(r)));return Promise.all(a).then(Lt).catch(Lt)}invalidateQueries(e,t={}){return gt.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},a=gt.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let c=s.fetch(void 0,r);return r.throwOnError||(c=c.catch(Lt)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(a).then(Lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(di(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Lt).catch(Lt)}fetchInfiniteQuery(e){return e.behavior=Uu(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lt).catch(Lt)}ensureInfiniteQueryData(e){return e.behavior=Uu(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $u.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ia(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(a=>{cl(e,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(e,t){this.#i.set(ia(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],r={};return t.forEach(a=>{cl(e,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===im&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},mw=O.createContext(void 0),vw=e=>{const t=O.useContext(mw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},uF=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),z.jsx(mw.Provider,{value:e,children:t})),bw=O.createContext(!1),L6=()=>O.useContext(bw);bw.Provider;function B6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var F6=O.createContext(B6()),H6=()=>O.useContext(F6),$6=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},U6=e=>{O.useEffect(()=>{e.clearReset()},[e])},j6=({result:e,errorResetBoundary:t,throwOnError:r,query:a,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(s&&e.data===void 0||lw(r,[e.error,a])),G6=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...s)=>r(a(...s)):r(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},W6=(e,t)=>e.isLoading&&e.isFetching&&!t,q6=(e,t)=>e?.suspense&&t.isPending,yS=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function yw(e,t,r){const a=L6(),s=H6(),c=vw(),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=a?"isRestoring":"optimistic",G6(u),$6(u,s),U6(s);const f=!c.getQueryCache().get(u.queryHash),[g]=O.useState(()=>new t(c,u)),p=g.getOptimisticResult(u),m=!a&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(y=>{const v=m?g.subscribe(gt.batchCalls(y)):Lt;return g.updateResult(),v},[g,m]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),O.useEffect(()=>{g.setOptions(u)},[u,g]),q6(u,p))throw yS(u,g,s);if(j6({result:p,errorResetBoundary:s,throwOnError:u.throwOnError,query:c.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!ra&&W6(p,a)&&(f?yS(u,g,s):c.getQueryCache().get(u.queryHash)?.promise)?.catch(Lt).finally(()=>{g.updateResult()}),u.notifyOnChangeProps?p:g.trackResult(p)}function dF(e,t){return yw(e,hw)}function fF(e,t){const r=vw(),[a]=O.useState(()=>new z6(r,e));O.useEffect(()=>{a.setOptions(e)},[a,e]);const s=O.useSyncExternalStore(O.useCallback(u=>a.subscribe(gt.batchCalls(u)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=O.useCallback((u,f)=>{a.mutate(u,f).catch(Lt)},[a]);if(s.error&&lw(a.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function hF(e,t){return yw(e,_6)}export{$B as $,rB as A,cN as B,oB as C,pB as D,bB as E,EB as F,fN as G,yB as H,aB as I,SB as J,ZB as K,wB as L,gB as M,uF as N,oF as O,D4 as P,cF as Q,aF as R,w3 as S,J6 as T,Si as U,UB as V,Z6 as W,Y6 as X,$R as Y,X6 as Z,nB as _,sB as a,sF as a0,jB as a1,qB as a2,WB as a3,j3 as a4,GB as a5,dB as a6,hB as a7,iF as a8,lB as a9,uB as aa,cB as ab,OB as ac,hF as ad,YB as ae,QB as af,XB as ag,KB as ah,fB as ai,HB as aj,TB as ak,RB as al,kB as am,NB as an,PB as ao,AB as ap,IB as aq,JB as b,eF as c,tF as d,nF as e,rF as f,iB as g,rw as h,dF as i,z as j,fF as k,_B as l,VB as m,FB as n,DB as o,zB as p,MB as q,O as r,LB as s,BB as t,KO as u,N3 as v,xB as w,mB as x,vB as y,CB as z};