@designtools/codesurface 0.1.3 → 0.1.7

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 (59) hide show
  1. package/dist/cli.js +5 -1
  2. package/dist/client/assets/index-1q-WwsbN.css +1 -0
  3. package/dist/client/assets/index-A_L26x1h.js +164 -0
  4. package/dist/client/assets/index-B6jN1q8m.js +221 -0
  5. package/dist/client/assets/index-B7jQZQIh.js +164 -0
  6. package/dist/client/assets/index-BSe1-ayg.js +221 -0
  7. package/dist/client/assets/index-BoqOSsiL.js +164 -0
  8. package/dist/client/assets/index-BrTweOBw.css +1 -0
  9. package/dist/client/assets/index-BvlvZBFo.js +164 -0
  10. package/dist/client/assets/index-C8zdCN9Y.css +1 -0
  11. package/dist/client/assets/index-CNoLX-EE.css +1 -0
  12. package/dist/client/assets/index-Caw3C8nD.js +164 -0
  13. package/dist/client/assets/index-CiJuTDXP.css +1 -0
  14. package/dist/client/assets/index-D4qADRtt.js +221 -0
  15. package/dist/client/assets/index-DOOYG-7t.js +221 -0
  16. package/dist/client/assets/index-DOo00IKO.js +164 -0
  17. package/dist/client/assets/index-Dd5ywdn8.css +1 -0
  18. package/dist/client/assets/index-lOuYsLDH.css +1 -0
  19. package/dist/client/assets/index-s0F6GbJf.js +164 -0
  20. package/dist/client/assets/index-xf9QDxu1.css +1 -0
  21. package/dist/client/index.html +2 -2
  22. package/package.json +3 -1
  23. package/dist/client/assets/index-B5g8qgFW.css +0 -1
  24. package/dist/client/assets/index-BB9cuIlF.js +0 -111
  25. package/dist/client/assets/index-BH-ji2K7.js +0 -150
  26. package/dist/client/assets/index-BH4MtIeE.js +0 -150
  27. package/dist/client/assets/index-BIpQhd8p.js +0 -150
  28. package/dist/client/assets/index-BRJOTqhn.js +0 -130
  29. package/dist/client/assets/index-Bb8QmYLf.css +0 -1
  30. package/dist/client/assets/index-Bbi0p5WW.js +0 -150
  31. package/dist/client/assets/index-BdWkGSfZ.js +0 -130
  32. package/dist/client/assets/index-BnRqJ-Bb.js +0 -150
  33. package/dist/client/assets/index-BneJISnX.js +0 -150
  34. package/dist/client/assets/index-C9_QxP1g.css +0 -1
  35. package/dist/client/assets/index-CBjuhHfq.js +0 -150
  36. package/dist/client/assets/index-CEFmdeB7.css +0 -1
  37. package/dist/client/assets/index-CQpCDasO.js +0 -131
  38. package/dist/client/assets/index-CRUCeIYi.css +0 -1
  39. package/dist/client/assets/index-CUSGVUIj.js +0 -150
  40. package/dist/client/assets/index-CZJQ3vJi.js +0 -150
  41. package/dist/client/assets/index-CdshIoQY.css +0 -1
  42. package/dist/client/assets/index-Cne4pc0S.css +0 -1
  43. package/dist/client/assets/index-Cps9lJoI.css +0 -1
  44. package/dist/client/assets/index-Cs7mKzsY.css +0 -1
  45. package/dist/client/assets/index-D-bUCwC3.css +0 -1
  46. package/dist/client/assets/index-D11nArXR.css +0 -1
  47. package/dist/client/assets/index-D2DhQd-K.js +0 -51
  48. package/dist/client/assets/index-D3ju6tgw.css +0 -1
  49. package/dist/client/assets/index-DG2JRz0f.js +0 -150
  50. package/dist/client/assets/index-DO-UYUx0.js +0 -150
  51. package/dist/client/assets/index-DOb58Ii1.js +0 -111
  52. package/dist/client/assets/index-DVd7DS_W.css +0 -1
  53. package/dist/client/assets/index-DZNHUm4M.js +0 -130
  54. package/dist/client/assets/index-Di7zgczR.css +0 -1
  55. package/dist/client/assets/index-DlUCyHdA.css +0 -1
  56. package/dist/client/assets/index-FTflg87d.js +0 -130
  57. package/dist/client/assets/index-U5_kmGxX.js +0 -150
  58. package/dist/client/assets/index-_4EXPfyt.css +0 -1
  59. package/dist/client/assets/index-gow3pju2.css +0 -1
@@ -0,0 +1,164 @@
1
+ function vg(t,a){for(var o=0;o<a.length;o++){const r=a[o];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in t)){const s=Object.getOwnPropertyDescriptor(r,c);s&&Object.defineProperty(t,c,s.get?s:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const s of c)if(s.type==="childList")for(const d of s.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function o(c){const s={};return c.integrity&&(s.integrity=c.integrity),c.referrerPolicy&&(s.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?s.credentials="include":c.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(c){if(c.ep)return;c.ep=!0;const s=o(c);fetch(c.href,s)}})();function Ap(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var P1={exports:{}},yr={};/**
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 e3;function xg(){if(e3)return yr;e3=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function o(r,c,s){var d=null;if(s!==void 0&&(d=""+s),c.key!==void 0&&(d=""+c.key),"key"in c){s={};for(var h in c)h!=="key"&&(s[h]=c[h])}else s=c;return c=s.ref,{$$typeof:t,type:r,key:d,ref:c!==void 0?c:null,props:s}}return yr.Fragment=a,yr.jsx=o,yr.jsxs=o,yr}var t3;function yg(){return t3||(t3=1,P1.exports=xg()),P1.exports}var u=yg(),q1={exports:{}},br={},G1={exports:{}},Q1={};/**
10
+ * @license React
11
+ * scheduler.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 n3;function bg(){return n3||(n3=1,(function(t){function a(H,D){var K=H.length;H.push(D);e:for(;0<K;){var ae=K-1>>>1,pe=H[ae];if(0<c(pe,D))H[ae]=D,H[K]=pe,K=ae;else break e}}function o(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var D=H[0],K=H.pop();if(K!==D){H[0]=K;e:for(var ae=0,pe=H.length,O=pe>>>1;ae<O;){var X=2*(ae+1)-1,J=H[X],ee=X+1,se=H[ee];if(0>c(J,K))ee<pe&&0>c(se,J)?(H[ae]=se,H[ee]=K,ae=ee):(H[ae]=J,H[X]=K,ae=X);else if(ee<pe&&0>c(se,K))H[ae]=se,H[ee]=K,ae=ee;else break e}}return D}function c(H,D){var K=H.sortIndex-D.sortIndex;return K!==0?K:H.id-D.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var v=[],m=[],y=1,b=null,C=3,w=!1,E=!1,j=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function _(H){for(var D=o(m);D!==null;){if(D.callback===null)r(m);else if(D.startTime<=H)r(m),D.sortIndex=D.expirationTime,a(v,D);else break;D=o(m)}}function k(H){if(j=!1,_(H),!E)if(o(v)!==null)E=!0,U||(U=!0,ie());else{var D=o(m);D!==null&&xe(k,D.startTime-H)}}var U=!1,z=-1,W=5,te=-1;function ue(){return M?!0:!(t.unstable_now()-te<W)}function oe(){if(M=!1,U){var H=t.unstable_now();te=H;var D=!0;try{e:{E=!1,j&&(j=!1,T(z),z=-1),w=!0;var K=C;try{t:{for(_(H),b=o(v);b!==null&&!(b.expirationTime>H&&ue());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,C=b.priorityLevel;var pe=ae(b.expirationTime<=H);if(H=t.unstable_now(),typeof pe=="function"){b.callback=pe,_(H),D=!0;break t}b===o(v)&&r(v),_(H)}else r(v);b=o(v)}if(b!==null)D=!0;else{var O=o(m);O!==null&&xe(k,O.startTime-H),D=!1}}break e}finally{b=null,C=K,w=!1}D=void 0}}finally{D?ie():U=!1}}}var ie;if(typeof N=="function")ie=function(){N(oe)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,fe=ge.port2;ge.port1.onmessage=oe,ie=function(){fe.postMessage(null)}}else ie=function(){R(oe,0)};function xe(H,D){z=R(function(){H(t.unstable_now())},D)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_next=function(H){switch(C){case 1:case 2:case 3:var D=3;break;default:D=C}var K=C;C=D;try{return H()}finally{C=K}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(H,D){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var K=C;C=H;try{return D()}finally{C=K}},t.unstable_scheduleCallback=function(H,D,K){var ae=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ae+K:ae):K=ae,H){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=K+pe,H={id:y++,callback:D,priorityLevel:H,startTime:K,expirationTime:pe,sortIndex:-1},K>ae?(H.sortIndex=K,a(m,H),o(v)===null&&H===o(m)&&(j?(T(z),z=-1):j=!0,xe(k,K-ae))):(H.sortIndex=pe,a(v,H),E||w||(E=!0,U||(U=!0,ie()))),H},t.unstable_shouldYield=ue,t.unstable_wrapCallback=function(H){var D=C;return function(){var K=C;C=D;try{return H.apply(this,arguments)}finally{C=K}}}})(Q1)),Q1}var l3;function Cg(){return l3||(l3=1,G1.exports=bg()),G1.exports}var K1={exports:{}},Ce={};/**
18
+ * @license React
19
+ * react.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 a3;function wg(){if(a3)return Ce;a3=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=C&&O[C]||O["@@iterator"],typeof O=="function"?O:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,M={};function R(O,X,J){this.props=O,this.context=X,this.refs=M,this.updater=J||E}R.prototype.isReactComponent={},R.prototype.setState=function(O,X){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,X,"setState")},R.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function T(){}T.prototype=R.prototype;function N(O,X,J){this.props=O,this.context=X,this.refs=M,this.updater=J||E}var _=N.prototype=new T;_.constructor=N,j(_,R.prototype),_.isPureReactComponent=!0;var k=Array.isArray;function U(){}var z={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function te(O,X,J){var ee=J.ref;return{$$typeof:t,type:O,key:X,ref:ee!==void 0?ee:null,props:J}}function ue(O,X){return te(O.type,X,O.props)}function oe(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function ie(O){var X={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(J){return X[J]})}var ge=/\/+/g;function fe(O,X){return typeof O=="object"&&O!==null&&O.key!=null?ie(""+O.key):X.toString(36)}function xe(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(U,U):(O.status="pending",O.then(function(X){O.status==="pending"&&(O.status="fulfilled",O.value=X)},function(X){O.status==="pending"&&(O.status="rejected",O.reason=X)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function H(O,X,J,ee,se){var I=typeof O;(I==="undefined"||I==="boolean")&&(O=null);var Q=!1;if(O===null)Q=!0;else switch(I){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(O.$$typeof){case t:case a:Q=!0;break;case y:return Q=O._init,H(Q(O._payload),X,J,ee,se)}}if(Q)return se=se(O),Q=ee===""?"."+fe(O,0):ee,k(se)?(J="",Q!=null&&(J=Q.replace(ge,"$&/")+"/"),H(se,X,J,"",function(Ne){return Ne})):se!=null&&(oe(se)&&(se=ue(se,J+(se.key==null||O&&O.key===se.key?"":(""+se.key).replace(ge,"$&/")+"/")+Q)),X.push(se)),1;Q=0;var de=ee===""?".":ee+":";if(k(O))for(var ye=0;ye<O.length;ye++)ee=O[ye],I=de+fe(ee,ye),Q+=H(ee,X,J,I,se);else if(ye=w(O),typeof ye=="function")for(O=ye.call(O),ye=0;!(ee=O.next()).done;)ee=ee.value,I=de+fe(ee,ye++),Q+=H(ee,X,J,I,se);else if(I==="object"){if(typeof O.then=="function")return H(xe(O),X,J,ee,se);throw X=String(O),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Q}function D(O,X,J){if(O==null)return O;var ee=[],se=0;return H(O,ee,"","",function(I){return X.call(J,I,se++)}),ee}function K(O){if(O._status===-1){var X=O._result;X=X(),X.then(function(J){(O._status===0||O._status===-1)&&(O._status=1,O._result=J)},function(J){(O._status===0||O._status===-1)&&(O._status=2,O._result=J)}),O._status===-1&&(O._status=0,O._result=X)}if(O._status===1)return O._result.default;throw O._result}var ae=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},pe={map:D,forEach:function(O,X,J){D(O,function(){X.apply(this,arguments)},J)},count:function(O){var X=0;return D(O,function(){X++}),X},toArray:function(O){return D(O,function(X){return X})||[]},only:function(O){if(!oe(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Ce.Activity=b,Ce.Children=pe,Ce.Component=R,Ce.Fragment=o,Ce.Profiler=c,Ce.PureComponent=N,Ce.StrictMode=r,Ce.Suspense=v,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(O){return z.H.useMemoCache(O)}},Ce.cache=function(O){return function(){return O.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(O,X,J){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ee=j({},O.props),se=O.key;if(X!=null)for(I in X.key!==void 0&&(se=""+X.key),X)!W.call(X,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&X.ref===void 0||(ee[I]=X[I]);var I=arguments.length-2;if(I===1)ee.children=J;else if(1<I){for(var Q=Array(I),de=0;de<I;de++)Q[de]=arguments[de+2];ee.children=Q}return te(O.type,se,ee)},Ce.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:s,_context:O},O},Ce.createElement=function(O,X,J){var ee,se={},I=null;if(X!=null)for(ee in X.key!==void 0&&(I=""+X.key),X)W.call(X,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(se[ee]=X[ee]);var Q=arguments.length-2;if(Q===1)se.children=J;else if(1<Q){for(var de=Array(Q),ye=0;ye<Q;ye++)de[ye]=arguments[ye+2];se.children=de}if(O&&O.defaultProps)for(ee in Q=O.defaultProps,Q)se[ee]===void 0&&(se[ee]=Q[ee]);return te(O,I,se)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(O){return{$$typeof:h,render:O}},Ce.isValidElement=oe,Ce.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:K}},Ce.memo=function(O,X){return{$$typeof:m,type:O,compare:X===void 0?null:X}},Ce.startTransition=function(O){var X=z.T,J={};z.T=J;try{var ee=O(),se=z.S;se!==null&&se(J,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(U,ae)}catch(I){ae(I)}finally{X!==null&&J.types!==null&&(X.types=J.types),z.T=X}},Ce.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Ce.use=function(O){return z.H.use(O)},Ce.useActionState=function(O,X,J){return z.H.useActionState(O,X,J)},Ce.useCallback=function(O,X){return z.H.useCallback(O,X)},Ce.useContext=function(O){return z.H.useContext(O)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(O,X){return z.H.useDeferredValue(O,X)},Ce.useEffect=function(O,X){return z.H.useEffect(O,X)},Ce.useEffectEvent=function(O){return z.H.useEffectEvent(O)},Ce.useId=function(){return z.H.useId()},Ce.useImperativeHandle=function(O,X,J){return z.H.useImperativeHandle(O,X,J)},Ce.useInsertionEffect=function(O,X){return z.H.useInsertionEffect(O,X)},Ce.useLayoutEffect=function(O,X){return z.H.useLayoutEffect(O,X)},Ce.useMemo=function(O,X){return z.H.useMemo(O,X)},Ce.useOptimistic=function(O,X){return z.H.useOptimistic(O,X)},Ce.useReducer=function(O,X,J){return z.H.useReducer(O,X,J)},Ce.useRef=function(O){return z.H.useRef(O)},Ce.useState=function(O){return z.H.useState(O)},Ce.useSyncExternalStore=function(O,X,J){return z.H.useSyncExternalStore(O,X,J)},Ce.useTransition=function(){return z.H.useTransition()},Ce.version="19.2.4",Ce}var o3;function yf(){return o3||(o3=1,K1.exports=wg()),K1.exports}var F1={exports:{}},jt={};/**
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 r3;function Sg(){if(r3)return jt;r3=1;var t=yf();function a(v){var m="https://react.dev/errors/"+v;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+v+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(a(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function s(v,m,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:v,containerInfo:m,implementation:y}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,m){if(v==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,jt.createPortal=function(v,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return s(v,m,null,y)},jt.flushSync=function(v){var m=d.T,y=r.p;try{if(d.T=null,r.p=2,v)return v()}finally{d.T=m,r.p=y,r.d.f()}},jt.preconnect=function(v,m){typeof v=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(v,m))},jt.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},jt.preinit=function(v,m){if(typeof v=="string"&&m&&typeof m.as=="string"){var y=m.as,b=h(y,m.crossOrigin),C=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?r.d.S(v,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:w}):y==="script"&&r.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},jt.preinitModule=function(v,m){if(typeof v=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=h(m.as,m.crossOrigin);r.d.M(v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(v)},jt.preload=function(v,m){if(typeof v=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,b=h(y,m.crossOrigin);r.d.L(v,y,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},jt.preloadModule=function(v,m){if(typeof v=="string")if(m){var y=h(m.as,m.crossOrigin);r.d.m(v,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(v)},jt.requestFormReset=function(v){r.d.r(v)},jt.unstable_batchedUpdates=function(v,m){return v(m)},jt.useFormState=function(v,m,y){return d.H.useFormState(v,m,y)},jt.useFormStatus=function(){return d.H.useHostTransitionStatus()},jt.version="19.2.4",jt}var i3;function zp(){if(i3)return F1.exports;i3=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),F1.exports=Sg(),F1.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 c3;function jg(){if(c3)return br;c3=1;var t=Cg(),a=yf(),o=zp();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function v(e){if(s(e)!==e)throw Error(r(188))}function m(e){var n=e.alternate;if(!n){if(n=s(e),n===null)throw Error(r(188));return n!==e?null:e}for(var l=e,i=n;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(i=f.return,i!==null){l=i;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return v(f),e;if(p===i)return v(f),n;p=p.sibling}throw Error(r(188))}if(l.return!==i.return)l=f,i=p;else{for(var x=!1,S=f.child;S;){if(S===l){x=!0,l=f,i=p;break}if(S===i){x=!0,i=f,l=p;break}S=S.sibling}if(!x){for(S=p.child;S;){if(S===l){x=!0,l=p,i=f;break}if(S===i){x=!0,i=p,l=f;break}S=S.sibling}if(!x)throw Error(r(189))}}if(l.alternate!==i)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),N=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case k:return"Suspense";case U:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case N:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case _:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return n=e.displayName||null,n!==null?n:fe(e.type)||"Memo";case W:n=e._payload,e=e._init;try{return fe(e(n))}catch{}}return null}var xe=Array.isArray,H=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ae=[],pe=-1;function O(e){return{current:e}}function X(e){0>pe||(e.current=ae[pe],ae[pe]=null,pe--)}function J(e,n){pe++,ae[pe]=e.current,e.current=n}var ee=O(null),se=O(null),I=O(null),Q=O(null);function de(e,n){switch(J(I,n),J(se,e),J(ee,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?S5(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=S5(n),e=j5(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(ee),J(ee,e)}function ye(){X(ee),X(se),X(I)}function Ne(e){e.memoizedState!==null&&J(Q,e);var n=ee.current,l=j5(n,e.type);n!==l&&(J(se,e),J(ee,l))}function Re(e){se.current===e&&(X(ee),X(se)),Q.current===e&&(X(Q),gr._currentValue=K)}var Le,ht;function et(e){if(Le===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);Le=n&&n[1]||"",ht=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Le+e+ht}var Bt=!1;function Wt(e,n){if(!e||Bt)return"";Bt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(Y){var Z=Y}Reflect.construct(e,[],G)}else{try{G.call()}catch(Y){Z=Y}e.call(G.prototype)}}else{try{throw Error()}catch(Y){Z=Y}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(Y){if(Y&&Z&&typeof Y.stack=="string")return[Y.stack,Z.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=i.DetermineComponentFrameRoot(),x=p[0],S=p[1];if(x&&S){var L=x.split(`
44
+ `),$=S.split(`
45
+ `);for(f=i=0;i<L.length&&!L[i].includes("DetermineComponentFrameRoot");)i++;for(;f<$.length&&!$[f].includes("DetermineComponentFrameRoot");)f++;if(i===L.length||f===$.length)for(i=L.length-1,f=$.length-1;1<=i&&0<=f&&L[i]!==$[f];)f--;for(;1<=i&&0<=f;i--,f--)if(L[i]!==$[f]){if(i!==1||f!==1)do if(i--,f--,0>f||L[i]!==$[f]){var P=`
46
+ `+L[i].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=i&&0<=f);break}}}finally{Bt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?et(l):""}function On(e,n){switch(e.tag){case 26:case 27:case 5:return et(e.type);case 16:return et("Lazy");case 13:return e.child!==n&&n!==null?et("Suspense Fallback"):et("Suspense");case 19:return et("SuspenseList");case 0:case 15:return Wt(e.type,!1);case 11:return Wt(e.type.render,!1);case 1:return Wt(e.type,!0);case 31:return et("Activity");default:return""}}function ga(e){try{var n="",l=null;do n+=On(e,l),l=e,e=e.return;while(e);return n}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var xn=Object.prototype.hasOwnProperty,Mo=t.unstable_scheduleCallback,ma=t.unstable_cancelCallback,be=t.unstable_shouldYield,_t=t.unstable_requestPaint,ut=t.unstable_now,Eo=t.unstable_getCurrentPriorityLevel,td=t.unstable_ImmediatePriority,nd=t.unstable_UserBlockingPriority,Kr=t.unstable_NormalPriority,W7=t.unstable_LowPriority,ld=t.unstable_IdlePriority,I7=t.log,e8=t.unstable_setDisableYieldValue,To=null,$t=null;function ll(e){if(typeof I7=="function"&&e8(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(To,e)}catch{}}var Zt=Math.clz32?Math.clz32:l8,t8=Math.log,n8=Math.LN2;function l8(e){return e>>>=0,e===0?32:31-(t8(e)/n8|0)|0}var Fr=256,Jr=262144,Wr=4194304;function $l(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ir(e,n,l){var i=e.pendingLanes;if(i===0)return 0;var f=0,p=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~p,i!==0?f=$l(i):(x&=S,x!==0?f=$l(x):l||(l=S&~e,l!==0&&(f=$l(l))))):(S=i&~p,S!==0?f=$l(S):x!==0?f=$l(x):l||(l=i&~e,l!==0&&(f=$l(l)))),f===0?0:n!==0&&n!==f&&(n&p)===0&&(p=f&-f,l=n&-n,p>=l||p===32&&(l&4194048)!==0)?n:f}function Ro(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function a8(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 ad(){var e=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),e}function As(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function _o(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function o8(e,n,l,i,f,p){var x=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,L=e.expirationTimes,$=e.hiddenUpdates;for(l=x&~l;0<l;){var P=31-Zt(l),G=1<<P;S[P]=0,L[P]=-1;var Z=$[P];if(Z!==null)for($[P]=null,P=0;P<Z.length;P++){var Y=Z[P];Y!==null&&(Y.lane&=-536870913)}l&=~G}i!==0&&od(e,i,0),p!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=p&~(x&~n))}function od(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-Zt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function rd(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var i=31-Zt(l),f=1<<i;f&n|e[i]&n&&(e[i]|=n),l&=~f}}function id(e,n){var l=n&-n;return l=(l&42)!==0?1:zs(l),(l&(e.suspendedLanes|n))!==0?0:l}function zs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cd(){var e=D.p;return e!==0?e:(e=window.event,e===void 0?32:G5(e.type))}function sd(e,n){var l=D.p;try{return D.p=e,n()}finally{D.p=l}}var al=Math.random().toString(36).slice(2),xt="__reactFiber$"+al,Nt="__reactProps$"+al,va="__reactContainer$"+al,Vs="__reactEvents$"+al,r8="__reactListeners$"+al,i8="__reactHandles$"+al,ud="__reactResources$"+al,No="__reactMarker$"+al;function ks(e){delete e[xt],delete e[Nt],delete e[Vs],delete e[r8],delete e[i8]}function xa(e){var n=e[xt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[va]||l[xt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=L5(e);e!==null;){if(l=e[xt])return l;e=L5(e)}return n}e=l,l=e.parentNode}return null}function ya(e){if(e=e[xt]||e[va]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Lo(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function ba(e){var n=e[ud];return n||(n=e[ud]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(e){e[No]=!0}var fd=new Set,dd={};function Zl(e,n){Ca(e,n),Ca(e+"Capture",n)}function Ca(e,n){for(dd[e]=n,e=0;e<n.length;e++)fd.add(n[e])}var c8=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]*$"),pd={},hd={};function s8(e){return xn.call(hd,e)?!0:xn.call(pd,e)?!1:c8.test(e)?hd[e]=!0:(pd[e]=!0,!1)}function ei(e,n,l){if(s8(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+l)}}function ti(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+l)}}function An(e,n,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,""+i)}}function It(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gd(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function u8(e,n,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,p=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){l=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ds(e){if(!e._valueTracker){var n=gd(e)?"checked":"value";e._valueTracker=u8(e,n,""+e[n])}}function md(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),i="";return e&&(i=gd(e)?e.checked?"true":"false":e.value),e=i,e!==l?(n.setValue(e),!0):!1}function ni(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var f8=/[\n"\\]/g;function en(e){return e.replace(f8,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Bs(e,n,l,i,f,p,x,S){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+It(n)):e.value!==""+It(n)&&(e.value=""+It(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?$s(e,x,It(n)):l!=null?$s(e,x,It(l)):i!=null&&e.removeAttribute("value"),f==null&&p!=null&&(e.defaultChecked=!!p),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+It(S):e.removeAttribute("name")}function vd(e,n,l,i,f,p,x,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){Ds(e);return}l=l!=null?""+It(l):"",n=n!=null?""+It(n):l,S||n===e.value||(e.value=n),e.defaultValue=n}i=i??f,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Ds(e)}function $s(e,n,l){n==="number"&&ni(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function wa(e,n,l,i){if(e=e.options,n){n={};for(var f=0;f<l.length;f++)n["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=n.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&i&&(e[l].defaultSelected=!0)}else{for(l=""+It(l),n=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,i&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function xd(e,n,l){if(n!=null&&(n=""+It(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+It(l):""}function yd(e,n,l,i){if(n==null){if(i!=null){if(l!=null)throw Error(r(92));if(xe(i)){if(1<i.length)throw Error(r(93));i=i[0]}l=i}l==null&&(l=""),n=l}l=It(n),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Ds(e)}function Sa(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var d8=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 bd(e,n,l){var i=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":i?e.setProperty(n,l):typeof l!="number"||l===0||d8.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function Cd(e,n,l){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var f in n)i=n[f],n.hasOwnProperty(f)&&l[f]!==i&&bd(e,f,i)}else for(var p in n)n.hasOwnProperty(p)&&bd(e,p,n[p])}function Zs(e){if(e.indexOf("-")===-1)return!1;switch(e){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 p8=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"]]),h8=/^[\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 li(e){return h8.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function zn(){}var Us=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ja=null,Ma=null;function wd(e){var n=ya(e);if(n&&(e=n.stateNode)){var l=e[Nt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Bs(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+en(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var i=l[n];if(i!==e&&i.form===e.form){var f=i[Nt]||null;if(!f)throw Error(r(90));Bs(i,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<l.length;n++)i=l[n],i.form===e.form&&md(i)}break e;case"textarea":xd(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&wa(e,!!l.multiple,n,!1)}}}var Xs=!1;function Sd(e,n,l){if(Xs)return e(n,l);Xs=!0;try{var i=e(n);return i}finally{if(Xs=!1,(ja!==null||Ma!==null)&&(Xi(),ja&&(n=ja,e=Ma,Ma=ja=null,wd(n),e)))for(n=0;n<e.length;n++)wd(e[n])}}function Oo(e,n){var l=e.stateNode;if(l===null)return null;var i=l[Nt]||null;if(i===null)return null;l=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,n,typeof l));return l}var Hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ps=!1;if(Hn)try{var Ao={};Object.defineProperty(Ao,"passive",{get:function(){Ps=!0}}),window.addEventListener("test",Ao,Ao),window.removeEventListener("test",Ao,Ao)}catch{Ps=!1}var ol=null,qs=null,ai=null;function jd(){if(ai)return ai;var e,n=qs,l=n.length,i,f="value"in ol?ol.value:ol.textContent,p=f.length;for(e=0;e<l&&n[e]===f[e];e++);var x=l-e;for(i=1;i<=x&&n[l-i]===f[p-i];i++);return ai=f.slice(e,1<i?1-i:void 0)}function oi(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ri(){return!0}function Md(){return!1}function Lt(e){function n(l,i,f,p,x){this._reactName=l,this._targetInst=f,this.type=i,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ri:Md,this.isPropagationStopped=Md,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ri)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ri)},persist:function(){},isPersistent:ri}),n}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ii=Lt(Ul),zo=b({},Ul,{view:0,detail:0}),g8=Lt(zo),Gs,Qs,Ho,ci=b({},zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ho&&(Ho&&e.type==="mousemove"?(Gs=e.screenX-Ho.screenX,Qs=e.screenY-Ho.screenY):Qs=Gs=0,Ho=e),Gs)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),Ed=Lt(ci),m8=b({},ci,{dataTransfer:0}),v8=Lt(m8),x8=b({},zo,{relatedTarget:0}),Ks=Lt(x8),y8=b({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),b8=Lt(y8),C8=b({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w8=Lt(C8),S8=b({},Ul,{data:0}),Td=Lt(S8),j8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M8={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"},E8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T8(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=E8[e])?!!n[e]:!1}function Fs(){return T8}var R8=b({},zo,{key:function(e){if(e.key){var n=j8[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?M8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fs,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_8=Lt(R8),N8=b({},ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rd=Lt(N8),L8=b({},zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fs}),O8=Lt(L8),A8=b({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),z8=Lt(A8),H8=b({},ci,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),V8=Lt(H8),k8=b({},Ul,{newState:0,oldState:0}),D8=Lt(k8),B8=[9,13,27,32],Js=Hn&&"CompositionEvent"in window,Vo=null;Hn&&"documentMode"in document&&(Vo=document.documentMode);var $8=Hn&&"TextEvent"in window&&!Vo,_d=Hn&&(!Js||Vo&&8<Vo&&11>=Vo),Nd=" ",Ld=!1;function Od(e,n){switch(e){case"keyup":return B8.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ea=!1;function Z8(e,n){switch(e){case"compositionend":return Ad(n);case"keypress":return n.which!==32?null:(Ld=!0,Nd);case"textInput":return e=n.data,e===Nd&&Ld?null:e;default:return null}}function U8(e,n){if(Ea)return e==="compositionend"||!Js&&Od(e,n)?(e=jd(),ai=qs=ol=null,Ea=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return _d&&n.locale!=="ko"?null:n.data;default:return null}}var Y8={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 zd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Y8[e.type]:n==="textarea"}function Hd(e,n,l,i){ja?Ma?Ma.push(i):Ma=[i]:ja=i,n=Ji(n,"onChange"),0<n.length&&(l=new ii("onChange","change",null,l,i),e.push({event:l,listeners:n}))}var ko=null,Do=null;function X8(e){v5(e,0)}function si(e){var n=Lo(e);if(md(n))return e}function Vd(e,n){if(e==="change")return n}var kd=!1;if(Hn){var Ws;if(Hn){var Is="oninput"in document;if(!Is){var Dd=document.createElement("div");Dd.setAttribute("oninput","return;"),Is=typeof Dd.oninput=="function"}Ws=Is}else Ws=!1;kd=Ws&&(!document.documentMode||9<document.documentMode)}function Bd(){ko&&(ko.detachEvent("onpropertychange",$d),Do=ko=null)}function $d(e){if(e.propertyName==="value"&&si(Do)){var n=[];Hd(n,Do,e,Ys(e)),Sd(X8,n)}}function P8(e,n,l){e==="focusin"?(Bd(),ko=n,Do=l,ko.attachEvent("onpropertychange",$d)):e==="focusout"&&Bd()}function q8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return si(Do)}function G8(e,n){if(e==="click")return si(n)}function Q8(e,n){if(e==="input"||e==="change")return si(n)}function K8(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ut=typeof Object.is=="function"?Object.is:K8;function Bo(e,n){if(Ut(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),i=Object.keys(n);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var f=l[i];if(!xn.call(n,f)||!Ut(e[f],n[f]))return!1}return!0}function Zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ud(e,n){var l=Zd(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=n&&i>=n)return{node:l,offset:n-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Zd(l)}}function Yd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Yd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Xd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ni(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=ni(e.document)}return n}function eu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var F8=Hn&&"documentMode"in document&&11>=document.documentMode,Ta=null,tu=null,$o=null,nu=!1;function Pd(e,n,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;nu||Ta==null||Ta!==ni(i)||(i=Ta,"selectionStart"in i&&eu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),$o&&Bo($o,i)||($o=i,i=Ji(tu,"onSelect"),0<i.length&&(n=new ii("onSelect","select",null,n,l),e.push({event:n,listeners:i}),n.target=Ta)))}function Yl(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var Ra={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},lu={},qd={};Hn&&(qd=document.createElement("div").style,"AnimationEvent"in window||(delete Ra.animationend.animation,delete Ra.animationiteration.animation,delete Ra.animationstart.animation),"TransitionEvent"in window||delete Ra.transitionend.transition);function Xl(e){if(lu[e])return lu[e];if(!Ra[e])return e;var n=Ra[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in qd)return lu[e]=n[l];return e}var Gd=Xl("animationend"),Qd=Xl("animationiteration"),Kd=Xl("animationstart"),J8=Xl("transitionrun"),W8=Xl("transitionstart"),I8=Xl("transitioncancel"),Fd=Xl("transitionend"),Jd=new Map,au="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(" ");au.push("scrollEnd");function un(e,n){Jd.set(e,n),Zl(n,[e])}var ui=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},tn=[],_a=0,ou=0;function fi(){for(var e=_a,n=ou=_a=0;n<e;){var l=tn[n];tn[n++]=null;var i=tn[n];tn[n++]=null;var f=tn[n];tn[n++]=null;var p=tn[n];if(tn[n++]=null,i!==null&&f!==null){var x=i.pending;x===null?f.next=f:(f.next=x.next,x.next=f),i.pending=f}p!==0&&Wd(l,f,p)}}function di(e,n,l,i){tn[_a++]=e,tn[_a++]=n,tn[_a++]=l,tn[_a++]=i,ou|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function ru(e,n,l,i){return di(e,n,l,i),pi(e)}function Pl(e,n){return di(e,null,null,n),pi(e)}function Wd(e,n,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var f=!1,p=e.return;p!==null;)p.childLanes|=l,i=p.alternate,i!==null&&(i.childLanes|=l),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(f=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,f&&n!==null&&(f=31-Zt(l),e=p.hiddenUpdates,i=e[f],i===null?e[f]=[n]:i.push(n),n.lane=l|536870912),p):null}function pi(e){if(50<cr)throw cr=0,g1=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Na={};function e6(e,n,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,n,l,i){return new e6(e,n,l,i)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vn(e,n){var l=e.alternate;return l===null?(l=Yt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Id(e,n){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function hi(e,n,l,i,f,p){var x=0;if(i=e,typeof e=="function")iu(e)&&(x=1);else if(typeof e=="string")x=og(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Yt(31,l,n,f),e.elementType=te,e.lanes=p,e;case j:return ql(l.children,f,p,n);case M:x=8,f|=24;break;case R:return e=Yt(12,l,n,f|2),e.elementType=R,e.lanes=p,e;case k:return e=Yt(13,l,n,f),e.elementType=k,e.lanes=p,e;case U:return e=Yt(19,l,n,f),e.elementType=U,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:x=10;break e;case T:x=9;break e;case _:x=11;break e;case z:x=14;break e;case W:x=16,i=null;break e}x=29,l=Error(r(130,e===null?"null":typeof e,"")),i=null}return n=Yt(x,l,n,f),n.elementType=e,n.type=i,n.lanes=p,n}function ql(e,n,l,i){return e=Yt(7,e,i,n),e.lanes=l,e}function cu(e,n,l){return e=Yt(6,e,null,n),e.lanes=l,e}function e9(e){var n=Yt(18,null,null,0);return n.stateNode=e,n}function su(e,n,l){return n=Yt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var t9=new WeakMap;function nn(e,n){if(typeof e=="object"&&e!==null){var l=t9.get(e);return l!==void 0?l:(n={value:e,source:n,stack:ga(n)},t9.set(e,n),n)}return{value:e,source:n,stack:ga(n)}}var La=[],Oa=0,gi=null,Zo=0,ln=[],an=0,rl=null,yn=1,bn="";function kn(e,n){La[Oa++]=Zo,La[Oa++]=gi,gi=e,Zo=n}function n9(e,n,l){ln[an++]=yn,ln[an++]=bn,ln[an++]=rl,rl=e;var i=yn;e=bn;var f=32-Zt(i)-1;i&=~(1<<f),l+=1;var p=32-Zt(n)+f;if(30<p){var x=f-f%5;p=(i&(1<<x)-1).toString(32),i>>=x,f-=x,yn=1<<32-Zt(n)+f|l<<f|i,bn=p+e}else yn=1<<p|l<<f|i,bn=e}function uu(e){e.return!==null&&(kn(e,1),n9(e,1,0))}function fu(e){for(;e===gi;)gi=La[--Oa],La[Oa]=null,Zo=La[--Oa],La[Oa]=null;for(;e===rl;)rl=ln[--an],ln[an]=null,bn=ln[--an],ln[an]=null,yn=ln[--an],ln[an]=null}function l9(e,n){ln[an++]=yn,ln[an++]=bn,ln[an++]=rl,yn=n.id,bn=n.overflow,rl=e}var yt=null,Xe=null,_e=!1,il=null,on=!1,du=Error(r(519));function cl(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Uo(nn(n,e)),du}function a9(e){var n=e.stateNode,l=e.type,i=e.memoizedProps;switch(n[xt]=e,n[Nt]=i,l){case"dialog":Me("cancel",n),Me("close",n);break;case"iframe":case"object":case"embed":Me("load",n);break;case"video":case"audio":for(l=0;l<ur.length;l++)Me(ur[l],n);break;case"source":Me("error",n);break;case"img":case"image":case"link":Me("error",n),Me("load",n);break;case"details":Me("toggle",n);break;case"input":Me("invalid",n),vd(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Me("invalid",n);break;case"textarea":Me("invalid",n),yd(n,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||i.suppressHydrationWarning===!0||C5(n.textContent,l)?(i.popover!=null&&(Me("beforetoggle",n),Me("toggle",n)),i.onScroll!=null&&Me("scroll",n),i.onScrollEnd!=null&&Me("scrollend",n),i.onClick!=null&&(n.onclick=zn),n=!0):n=!1,n||cl(e,!0)}function o9(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:yt=yt.return}}function Aa(e){if(e!==yt)return!1;if(!_e)return o9(e),_e=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||N1(e.type,e.memoizedProps)),l=!l),l&&Xe&&cl(e),o9(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Xe=N5(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Xe=N5(e)}else n===27?(n=Xe,wl(e.type)?(e=H1,H1=null,Xe=e):Xe=n):Xe=yt?cn(e.stateNode.nextSibling):null;return!0}function Gl(){Xe=yt=null,_e=!1}function pu(){var e=il;return e!==null&&(Ht===null?Ht=e:Ht.push.apply(Ht,e),il=null),e}function Uo(e){il===null?il=[e]:il.push(e)}var hu=O(null),Ql=null,Dn=null;function sl(e,n,l){J(hu,n._currentValue),n._currentValue=l}function Bn(e){e._currentValue=hu.current,X(hu)}function gu(e,n,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===l)break;e=e.return}}function mu(e,n,l,i){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var p=f.dependencies;if(p!==null){var x=f.child;p=p.firstContext;e:for(;p!==null;){var S=p;p=f;for(var L=0;L<n.length;L++)if(S.context===n[L]){p.lanes|=l,S=p.alternate,S!==null&&(S.lanes|=l),gu(p.return,l,e),i||(x=null);break e}p=S.next}}else if(f.tag===18){if(x=f.return,x===null)throw Error(r(341));x.lanes|=l,p=x.alternate,p!==null&&(p.lanes|=l),gu(x,l,e),x=null}else x=f.child;if(x!==null)x.return=f;else for(x=f;x!==null;){if(x===e){x=null;break}if(f=x.sibling,f!==null){f.return=x.return,x=f;break}x=x.return}f=x}}function za(e,n,l,i){e=null;for(var f=n,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var x=f.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var S=f.type;Ut(f.pendingProps.value,x.value)||(e!==null?e.push(S):e=[S])}}else if(f===Q.current){if(x=f.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(gr):e=[gr])}f=f.return}e!==null&&mu(n,e,l,i),n.flags|=262144}function mi(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){Ql=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return r9(Ql,e)}function vi(e,n){return Ql===null&&Kl(e),r9(e,n)}function r9(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},Dn===null){if(e===null)throw Error(r(308));Dn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Dn=Dn.next=n;return l}var t6=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},n6=t.unstable_scheduleCallback,l6=t.unstable_NormalPriority,at={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vu(){return{controller:new t6,data:new Map,refCount:0}}function Yo(e){e.refCount--,e.refCount===0&&n6(l6,function(){e.controller.abort()})}var Xo=null,xu=0,Ha=0,Va=null;function a6(e,n){if(Xo===null){var l=Xo=[];xu=0,Ha=C1(),Va={status:"pending",value:void 0,then:function(i){l.push(i)}}}return xu++,n.then(i9,i9),n}function i9(){if(--xu===0&&Xo!==null){Va!==null&&(Va.status="fulfilled");var e=Xo;Xo=null,Ha=0,Va=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function o6(e,n){var l=[],i={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return e.then(function(){i.status="fulfilled",i.value=n;for(var f=0;f<l.length;f++)(0,l[f])(n)},function(f){for(i.status="rejected",i.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),i}var c9=H.S;H.S=function(e,n){P2=ut(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&a6(e,n),c9!==null&&c9(e,n)};var Fl=O(null);function yu(){var e=Fl.current;return e!==null?e:Ye.pooledCache}function xi(e,n){n===null?J(Fl,Fl.current):J(Fl,n.pool)}function s9(){var e=yu();return e===null?null:{parent:at._currentValue,pool:e}}var ka=Error(r(460)),bu=Error(r(474)),yi=Error(r(542)),bi={then:function(){}};function u9(e){return e=e.status,e==="fulfilled"||e==="rejected"}function f9(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(zn,zn),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,p9(e),e;default:if(typeof n.status=="string")n.then(zn,zn);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(i){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=i}},function(i){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=i}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,p9(e),e}throw Wl=n,ka}}function Jl(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wl=l,ka):l}}var Wl=null;function d9(){if(Wl===null)throw Error(r(459));var e=Wl;return Wl=null,e}function p9(e){if(e===ka||e===yi)throw Error(r(483))}var Da=null,Po=0;function Ci(e){var n=Po;return Po+=1,Da===null&&(Da=[]),f9(Da,e,n)}function qo(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function wi(e,n){throw n.$$typeof===C?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function h9(e){function n(V,A){if(e){var B=V.deletions;B===null?(V.deletions=[A],V.flags|=16):B.push(A)}}function l(V,A){if(!e)return null;for(;A!==null;)n(V,A),A=A.sibling;return null}function i(V){for(var A=new Map;V!==null;)V.key!==null?A.set(V.key,V):A.set(V.index,V),V=V.sibling;return A}function f(V,A){return V=Vn(V,A),V.index=0,V.sibling=null,V}function p(V,A,B){return V.index=B,e?(B=V.alternate,B!==null?(B=B.index,B<A?(V.flags|=67108866,A):B):(V.flags|=67108866,A)):(V.flags|=1048576,A)}function x(V){return e&&V.alternate===null&&(V.flags|=67108866),V}function S(V,A,B,q){return A===null||A.tag!==6?(A=cu(B,V.mode,q),A.return=V,A):(A=f(A,B),A.return=V,A)}function L(V,A,B,q){var he=B.type;return he===j?P(V,A,B.props.children,q,B.key):A!==null&&(A.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===W&&Jl(he)===A.type)?(A=f(A,B.props),qo(A,B),A.return=V,A):(A=hi(B.type,B.key,B.props,null,V.mode,q),qo(A,B),A.return=V,A)}function $(V,A,B,q){return A===null||A.tag!==4||A.stateNode.containerInfo!==B.containerInfo||A.stateNode.implementation!==B.implementation?(A=su(B,V.mode,q),A.return=V,A):(A=f(A,B.children||[]),A.return=V,A)}function P(V,A,B,q,he){return A===null||A.tag!==7?(A=ql(B,V.mode,q,he),A.return=V,A):(A=f(A,B),A.return=V,A)}function G(V,A,B){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=cu(""+A,V.mode,B),A.return=V,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case w:return B=hi(A.type,A.key,A.props,null,V.mode,B),qo(B,A),B.return=V,B;case E:return A=su(A,V.mode,B),A.return=V,A;case W:return A=Jl(A),G(V,A,B)}if(xe(A)||ie(A))return A=ql(A,V.mode,B,null),A.return=V,A;if(typeof A.then=="function")return G(V,Ci(A),B);if(A.$$typeof===N)return G(V,vi(V,A),B);wi(V,A)}return null}function Z(V,A,B,q){var he=A!==null?A.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return he!==null?null:S(V,A,""+B,q);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case w:return B.key===he?L(V,A,B,q):null;case E:return B.key===he?$(V,A,B,q):null;case W:return B=Jl(B),Z(V,A,B,q)}if(xe(B)||ie(B))return he!==null?null:P(V,A,B,q,null);if(typeof B.then=="function")return Z(V,A,Ci(B),q);if(B.$$typeof===N)return Z(V,A,vi(V,B),q);wi(V,B)}return null}function Y(V,A,B,q,he){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return V=V.get(B)||null,S(A,V,""+q,he);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return V=V.get(q.key===null?B:q.key)||null,L(A,V,q,he);case E:return V=V.get(q.key===null?B:q.key)||null,$(A,V,q,he);case W:return q=Jl(q),Y(V,A,B,q,he)}if(xe(q)||ie(q))return V=V.get(B)||null,P(A,V,q,he,null);if(typeof q.then=="function")return Y(V,A,B,Ci(q),he);if(q.$$typeof===N)return Y(V,A,B,vi(A,q),he);wi(A,q)}return null}function re(V,A,B,q){for(var he=null,Oe=null,ce=A,Se=A=0,Te=null;ce!==null&&Se<B.length;Se++){ce.index>Se?(Te=ce,ce=null):Te=ce.sibling;var Ae=Z(V,ce,B[Se],q);if(Ae===null){ce===null&&(ce=Te);break}e&&ce&&Ae.alternate===null&&n(V,ce),A=p(Ae,A,Se),Oe===null?he=Ae:Oe.sibling=Ae,Oe=Ae,ce=Te}if(Se===B.length)return l(V,ce),_e&&kn(V,Se),he;if(ce===null){for(;Se<B.length;Se++)ce=G(V,B[Se],q),ce!==null&&(A=p(ce,A,Se),Oe===null?he=ce:Oe.sibling=ce,Oe=ce);return _e&&kn(V,Se),he}for(ce=i(ce);Se<B.length;Se++)Te=Y(ce,V,Se,B[Se],q),Te!==null&&(e&&Te.alternate!==null&&ce.delete(Te.key===null?Se:Te.key),A=p(Te,A,Se),Oe===null?he=Te:Oe.sibling=Te,Oe=Te);return e&&ce.forEach(function(Tl){return n(V,Tl)}),_e&&kn(V,Se),he}function me(V,A,B,q){if(B==null)throw Error(r(151));for(var he=null,Oe=null,ce=A,Se=A=0,Te=null,Ae=B.next();ce!==null&&!Ae.done;Se++,Ae=B.next()){ce.index>Se?(Te=ce,ce=null):Te=ce.sibling;var Tl=Z(V,ce,Ae.value,q);if(Tl===null){ce===null&&(ce=Te);break}e&&ce&&Tl.alternate===null&&n(V,ce),A=p(Tl,A,Se),Oe===null?he=Tl:Oe.sibling=Tl,Oe=Tl,ce=Te}if(Ae.done)return l(V,ce),_e&&kn(V,Se),he;if(ce===null){for(;!Ae.done;Se++,Ae=B.next())Ae=G(V,Ae.value,q),Ae!==null&&(A=p(Ae,A,Se),Oe===null?he=Ae:Oe.sibling=Ae,Oe=Ae);return _e&&kn(V,Se),he}for(ce=i(ce);!Ae.done;Se++,Ae=B.next())Ae=Y(ce,V,Se,Ae.value,q),Ae!==null&&(e&&Ae.alternate!==null&&ce.delete(Ae.key===null?Se:Ae.key),A=p(Ae,A,Se),Oe===null?he=Ae:Oe.sibling=Ae,Oe=Ae);return e&&ce.forEach(function(mg){return n(V,mg)}),_e&&kn(V,Se),he}function Ue(V,A,B,q){if(typeof B=="object"&&B!==null&&B.type===j&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case w:e:{for(var he=B.key;A!==null;){if(A.key===he){if(he=B.type,he===j){if(A.tag===7){l(V,A.sibling),q=f(A,B.props.children),q.return=V,V=q;break e}}else if(A.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===W&&Jl(he)===A.type){l(V,A.sibling),q=f(A,B.props),qo(q,B),q.return=V,V=q;break e}l(V,A);break}else n(V,A);A=A.sibling}B.type===j?(q=ql(B.props.children,V.mode,q,B.key),q.return=V,V=q):(q=hi(B.type,B.key,B.props,null,V.mode,q),qo(q,B),q.return=V,V=q)}return x(V);case E:e:{for(he=B.key;A!==null;){if(A.key===he)if(A.tag===4&&A.stateNode.containerInfo===B.containerInfo&&A.stateNode.implementation===B.implementation){l(V,A.sibling),q=f(A,B.children||[]),q.return=V,V=q;break e}else{l(V,A);break}else n(V,A);A=A.sibling}q=su(B,V.mode,q),q.return=V,V=q}return x(V);case W:return B=Jl(B),Ue(V,A,B,q)}if(xe(B))return re(V,A,B,q);if(ie(B)){if(he=ie(B),typeof he!="function")throw Error(r(150));return B=he.call(B),me(V,A,B,q)}if(typeof B.then=="function")return Ue(V,A,Ci(B),q);if(B.$$typeof===N)return Ue(V,A,vi(V,B),q);wi(V,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,A!==null&&A.tag===6?(l(V,A.sibling),q=f(A,B),q.return=V,V=q):(l(V,A),q=cu(B,V.mode,q),q.return=V,V=q),x(V)):l(V,A)}return function(V,A,B,q){try{Po=0;var he=Ue(V,A,B,q);return Da=null,he}catch(ce){if(ce===ka||ce===yi)throw ce;var Oe=Yt(29,ce,null,V.mode);return Oe.lanes=q,Oe.return=V,Oe}finally{}}}var Il=h9(!0),g9=h9(!1),ul=!1;function Cu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function dl(e,n,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ze&2)!==0){var f=i.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),i.pending=n,n=pi(e),Wd(e,null,l),n}return di(e,i,n,l),pi(e)}function Go(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,rd(e,l)}}function Su(e,n){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?f=p=x:p=p.next=x,l=l.next}while(l!==null);p===null?f=p=n:p=p.next=n}else f=p=n;l={baseState:i.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var ju=!1;function Qo(){if(ju){var e=Va;if(e!==null)throw e}}function Ko(e,n,l,i){ju=!1;var f=e.updateQueue;ul=!1;var p=f.firstBaseUpdate,x=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var L=S,$=L.next;L.next=null,x===null?p=$:x.next=$,x=L;var P=e.alternate;P!==null&&(P=P.updateQueue,S=P.lastBaseUpdate,S!==x&&(S===null?P.firstBaseUpdate=$:S.next=$,P.lastBaseUpdate=L))}if(p!==null){var G=f.baseState;x=0,P=$=L=null,S=p;do{var Z=S.lane&-536870913,Y=Z!==S.lane;if(Y?(Ee&Z)===Z:(i&Z)===Z){Z!==0&&Z===Ha&&(ju=!0),P!==null&&(P=P.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var re=e,me=S;Z=n;var Ue=l;switch(me.tag){case 1:if(re=me.payload,typeof re=="function"){G=re.call(Ue,G,Z);break e}G=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=me.payload,Z=typeof re=="function"?re.call(Ue,G,Z):re,Z==null)break e;G=b({},G,Z);break e;case 2:ul=!0}}Z=S.callback,Z!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=f.callbacks,Y===null?f.callbacks=[Z]:Y.push(Z))}else Y={lane:Z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},P===null?($=P=Y,L=G):P=P.next=Y,x|=Z;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;Y=S,S=Y.next,Y.next=null,f.lastBaseUpdate=Y,f.shared.pending=null}}while(!0);P===null&&(L=G),f.baseState=L,f.firstBaseUpdate=$,f.lastBaseUpdate=P,p===null&&(f.shared.lanes=0),vl|=x,e.lanes=x,e.memoizedState=G}}function m9(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function v9(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)m9(l[e],n)}var Ba=O(null),Si=O(0);function x9(e,n){e=Qn,J(Si,e),J(Ba,n),Qn=e|n.baseLanes}function Mu(){J(Si,Qn),J(Ba,Ba.current)}function Eu(){Qn=Si.current,X(Ba),X(Si)}var Xt=O(null),rn=null;function pl(e){var n=e.alternate;J(tt,tt.current&1),J(Xt,e),rn===null&&(n===null||Ba.current!==null||n.memoizedState!==null)&&(rn=e)}function Tu(e){J(tt,tt.current),J(Xt,e),rn===null&&(rn=e)}function y9(e){e.tag===22?(J(tt,tt.current),J(Xt,e),rn===null&&(rn=e)):hl()}function hl(){J(tt,tt.current),J(Xt,Xt.current)}function Pt(e){X(Xt),rn===e&&(rn=null),X(tt)}var tt=O(0);function ji(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||A1(l)||z1(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var $n=0,we=null,$e=null,ot=null,Mi=!1,$a=!1,ea=!1,Ei=0,Fo=0,Za=null,r6=0;function Je(){throw Error(r(321))}function Ru(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!Ut(e[l],n[l]))return!1;return!0}function _u(e,n,l,i,f,p){return $n=p,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,H.H=e===null||e.memoizedState===null?n2:Xu,ea=!1,p=l(i,f),ea=!1,$a&&(p=C9(n,l,i,f)),b9(e),p}function b9(e){H.H=Io;var n=$e!==null&&$e.next!==null;if($n=0,ot=$e=we=null,Mi=!1,Fo=0,Za=null,n)throw Error(r(300));e===null||rt||(e=e.dependencies,e!==null&&mi(e)&&(rt=!0))}function C9(e,n,l,i){we=e;var f=0;do{if($a&&(Za=null),Fo=0,$a=!1,25<=f)throw Error(r(301));if(f+=1,ot=$e=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}H.H=l2,p=n(l,i)}while($a);return p}function i6(){var e=H.H,n=e.useState()[0];return n=typeof n.then=="function"?Jo(n):n,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(we.flags|=1024),n}function Nu(){var e=Ei!==0;return Ei=0,e}function Lu(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function Ou(e){if(Mi){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Mi=!1}$n=0,ot=$e=we=null,$a=!1,Fo=Ei=0,Za=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?we.memoizedState=ot=e:ot=ot.next=e,ot}function nt(){if($e===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var n=ot===null?we.memoizedState:ot.next;if(n!==null)ot=n,$e=e;else{if(e===null)throw we.alternate===null?Error(r(467)):Error(r(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},ot===null?we.memoizedState=ot=e:ot=ot.next=e}return ot}function Ti(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jo(e){var n=Fo;return Fo+=1,Za===null&&(Za=[]),e=f9(Za,e,n),n=we,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,H.H=n===null||n.memoizedState===null?n2:Xu),e}function Ri(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Jo(e);if(e.$$typeof===N)return bt(e)}throw Error(r(438,String(e)))}function Au(e){var n=null,l=we.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var i=we.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(n={data:i.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=Ti(),we.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),i=0;i<e;i++)l[i]=ue;return n.index++,l}function Zn(e,n){return typeof n=="function"?n(e):n}function _i(e){var n=nt();return zu(n,$e,e)}function zu(e,n,l){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=l;var f=e.baseQueue,p=i.pending;if(p!==null){if(f!==null){var x=f.next;f.next=p.next,p.next=x}n.baseQueue=f=p,i.pending=null}if(p=e.baseState,f===null)e.memoizedState=p;else{n=f.next;var S=x=null,L=null,$=n,P=!1;do{var G=$.lane&-536870913;if(G!==$.lane?(Ee&G)===G:($n&G)===G){var Z=$.revertLane;if(Z===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),G===Ha&&(P=!0);else if(($n&Z)===Z){$=$.next,Z===Ha&&(P=!0);continue}else G={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},L===null?(S=L=G,x=p):L=L.next=G,we.lanes|=Z,vl|=Z;G=$.action,ea&&l(p,G),p=$.hasEagerState?$.eagerState:l(p,G)}else Z={lane:G,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},L===null?(S=L=Z,x=p):L=L.next=Z,we.lanes|=G,vl|=G;$=$.next}while($!==null&&$!==n);if(L===null?x=p:L.next=S,!Ut(p,e.memoizedState)&&(rt=!0,P&&(l=Va,l!==null)))throw l;e.memoizedState=p,e.baseState=x,e.baseQueue=L,i.lastRenderedState=p}return f===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Hu(e){var n=nt(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var i=l.dispatch,f=l.pending,p=n.memoizedState;if(f!==null){l.pending=null;var x=f=f.next;do p=e(p,x.action),x=x.next;while(x!==f);Ut(p,n.memoizedState)||(rt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),l.lastRenderedState=p}return[p,i]}function w9(e,n,l){var i=we,f=nt(),p=_e;if(p){if(l===void 0)throw Error(r(407));l=l()}else l=n();var x=!Ut(($e||f).memoizedState,l);if(x&&(f.memoizedState=l,rt=!0),f=f.queue,Du(M9.bind(null,i,f,e),[e]),f.getSnapshot!==n||x||ot!==null&&ot.memoizedState.tag&1){if(i.flags|=2048,Ua(9,{destroy:void 0},j9.bind(null,i,f,l,n),null),Ye===null)throw Error(r(349));p||($n&127)!==0||S9(i,n,l)}return l}function S9(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=we.updateQueue,n===null?(n=Ti(),we.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function j9(e,n,l,i){n.value=l,n.getSnapshot=i,E9(n)&&T9(e)}function M9(e,n,l){return l(function(){E9(n)&&T9(e)})}function E9(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Ut(e,l)}catch{return!0}}function T9(e){var n=Pl(e,2);n!==null&&Vt(n,e,2)}function Vu(e){var n=Et();if(typeof e=="function"){var l=e;if(e=l(),ea){ll(!0);try{l()}finally{ll(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e},n}function R9(e,n,l,i){return e.baseState=l,zu(e,$e,typeof i=="function"?i:Zn)}function c6(e,n,l,i,f){if(Oi(e))throw Error(r(485));if(e=n.action,e!==null){var p={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){p.listeners.push(x)}};H.T!==null?l(!0):p.isTransition=!1,i(p),l=n.pending,l===null?(p.next=n.pending=p,_9(n,p)):(p.next=l.next,n.pending=l.next=p)}}function _9(e,n){var l=n.action,i=n.payload,f=e.state;if(n.isTransition){var p=H.T,x={};H.T=x;try{var S=l(f,i),L=H.S;L!==null&&L(x,S),N9(e,n,S)}catch($){ku(e,n,$)}finally{p!==null&&x.types!==null&&(p.types=x.types),H.T=p}}else try{p=l(f,i),N9(e,n,p)}catch($){ku(e,n,$)}}function N9(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){L9(e,n,i)},function(i){return ku(e,n,i)}):L9(e,n,l)}function L9(e,n,l){n.status="fulfilled",n.value=l,O9(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,_9(e,l)))}function ku(e,n,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=l,O9(n),n=n.next;while(n!==i)}e.action=null}function O9(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function A9(e,n){return n}function z9(e,n){if(_e){var l=Ye.formState;if(l!==null){e:{var i=we;if(_e){if(Xe){t:{for(var f=Xe,p=on;f.nodeType!==8;){if(!p){f=null;break t}if(f=cn(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){Xe=cn(f.nextSibling),i=f.data==="F!";break e}}cl(i)}i=!1}i&&(n=l[0])}}return l=Et(),l.memoizedState=l.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A9,lastRenderedState:n},l.queue=i,l=I9.bind(null,we,i),i.dispatch=l,i=Vu(!1),p=Yu.bind(null,we,!1,i.queue),i=Et(),f={state:n,dispatch:null,action:e,pending:null},i.queue=f,l=c6.bind(null,we,f,p,l),f.dispatch=l,i.memoizedState=e,[n,l,!1]}function H9(e){var n=nt();return V9(n,$e,e)}function V9(e,n,l){if(n=zu(e,n,A9)[0],e=_i(Zn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=Jo(n)}catch(x){throw x===ka?yi:x}else i=n;n=nt();var f=n.queue,p=f.dispatch;return l!==n.memoizedState&&(we.flags|=2048,Ua(9,{destroy:void 0},s6.bind(null,f,l),null)),[i,p,e]}function s6(e,n){e.action=n}function k9(e){var n=nt(),l=$e;if(l!==null)return V9(n,l,e);nt(),n=n.memoizedState,l=nt();var i=l.queue.dispatch;return l.memoizedState=e,[n,i,!1]}function Ua(e,n,l,i){return e={tag:e,create:l,deps:i,inst:n,next:null},n=we.updateQueue,n===null&&(n=Ti(),we.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,n.lastEffect=e),e}function D9(){return nt().memoizedState}function Ni(e,n,l,i){var f=Et();we.flags|=e,f.memoizedState=Ua(1|n,{destroy:void 0},l,i===void 0?null:i)}function Li(e,n,l,i){var f=nt();i=i===void 0?null:i;var p=f.memoizedState.inst;$e!==null&&i!==null&&Ru(i,$e.memoizedState.deps)?f.memoizedState=Ua(n,p,l,i):(we.flags|=e,f.memoizedState=Ua(1|n,p,l,i))}function B9(e,n){Ni(8390656,8,e,n)}function Du(e,n){Li(2048,8,e,n)}function u6(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=Ti(),we.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function $9(e){var n=nt().memoizedState;return u6({ref:n,nextImpl:e}),function(){if((ze&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function Z9(e,n){return Li(4,2,e,n)}function U9(e,n){return Li(4,4,e,n)}function Y9(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function X9(e,n,l){l=l!=null?l.concat([e]):null,Li(4,4,Y9.bind(null,n,e),l)}function Bu(){}function P9(e,n){var l=nt();n=n===void 0?null:n;var i=l.memoizedState;return n!==null&&Ru(n,i[1])?i[0]:(l.memoizedState=[e,n],e)}function q9(e,n){var l=nt();n=n===void 0?null:n;var i=l.memoizedState;if(n!==null&&Ru(n,i[1]))return i[0];if(i=e(),ea){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[i,n],i}function $u(e,n,l){return l===void 0||($n&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=G2(),we.lanes|=e,vl|=e,l)}function G9(e,n,l,i){return Ut(l,n)?l:Ba.current!==null?(e=$u(e,l,i),Ut(e,n)||(rt=!0),e):($n&42)===0||($n&1073741824)!==0&&(Ee&261930)===0?(rt=!0,e.memoizedState=l):(e=G2(),we.lanes|=e,vl|=e,n)}function Q9(e,n,l,i,f){var p=D.p;D.p=p!==0&&8>p?p:8;var x=H.T,S={};H.T=S,Yu(e,!1,n,l);try{var L=f(),$=H.S;if($!==null&&$(S,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var P=o6(L,i);Wo(e,n,P,Qt(e))}else Wo(e,n,i,Qt(e))}catch(G){Wo(e,n,{then:function(){},status:"rejected",reason:G},Qt())}finally{D.p=p,x!==null&&S.types!==null&&(x.types=S.types),H.T=x}}function f6(){}function Zu(e,n,l,i){if(e.tag!==5)throw Error(r(476));var f=K9(e).queue;Q9(e,f,n,K,l===null?f6:function(){return F9(e),l(i)})}function K9(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:K},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function F9(e){var n=K9(e);n.next===null&&(n=e.alternate.memoizedState),Wo(e,n.next.queue,{},Qt())}function Uu(){return bt(gr)}function J9(){return nt().memoizedState}function W9(){return nt().memoizedState}function d6(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=Qt();e=fl(l);var i=dl(n,e,l);i!==null&&(Vt(i,n,l),Go(i,n,l)),n={cache:vu()},e.payload=n;return}n=n.return}}function p6(e,n,l){var i=Qt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Oi(e)?e2(n,l):(l=ru(e,n,l,i),l!==null&&(Vt(l,e,i),t2(l,n,i)))}function I9(e,n,l){var i=Qt();Wo(e,n,l,i)}function Wo(e,n,l,i){var f={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Oi(e))e2(n,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,S=p(x,l);if(f.hasEagerState=!0,f.eagerState=S,Ut(S,x))return di(e,n,f,0),Ye===null&&fi(),!1}catch{}finally{}if(l=ru(e,n,f,i),l!==null)return Vt(l,e,i),t2(l,n,i),!0}return!1}function Yu(e,n,l,i){if(i={lane:2,revertLane:C1(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Oi(e)){if(n)throw Error(r(479))}else n=ru(e,l,i,2),n!==null&&Vt(n,e,2)}function Oi(e){var n=e.alternate;return e===we||n!==null&&n===we}function e2(e,n){$a=Mi=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function t2(e,n,l){if((l&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,rd(e,l)}}var Io={readContext:bt,use:Ri,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};Io.useEffectEvent=Je;var n2={readContext:bt,use:Ri,useCallback:function(e,n){return Et().memoizedState=[e,n===void 0?null:n],e},useContext:bt,useEffect:B9,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,Ni(4194308,4,Y9.bind(null,n,e),l)},useLayoutEffect:function(e,n){return Ni(4194308,4,e,n)},useInsertionEffect:function(e,n){Ni(4,2,e,n)},useMemo:function(e,n){var l=Et();n=n===void 0?null:n;var i=e();if(ea){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[i,n],i},useReducer:function(e,n,l){var i=Et();if(l!==void 0){var f=l(n);if(ea){ll(!0);try{l(n)}finally{ll(!1)}}}else f=n;return i.memoizedState=i.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},i.queue=e,e=e.dispatch=p6.bind(null,we,e),[i.memoizedState,e]},useRef:function(e){var n=Et();return e={current:e},n.memoizedState=e},useState:function(e){e=Vu(e);var n=e.queue,l=I9.bind(null,we,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:Bu,useDeferredValue:function(e,n){var l=Et();return $u(l,e,n)},useTransition:function(){var e=Vu(!1);return e=Q9.bind(null,we,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var i=we,f=Et();if(_e){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),Ye===null)throw Error(r(349));(Ee&127)!==0||S9(i,n,l)}f.memoizedState=l;var p={value:l,getSnapshot:n};return f.queue=p,B9(M9.bind(null,i,p,e),[e]),i.flags|=2048,Ua(9,{destroy:void 0},j9.bind(null,i,p,l,n),null),l},useId:function(){var e=Et(),n=Ye.identifierPrefix;if(_e){var l=bn,i=yn;l=(i&~(1<<32-Zt(i)-1)).toString(32)+l,n="_"+n+"R_"+l,l=Ei++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=r6++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Uu,useFormState:z9,useActionState:z9,useOptimistic:function(e){var n=Et();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=Yu.bind(null,we,!0,l),l.dispatch=n,[e,n]},useMemoCache:Au,useCacheRefresh:function(){return Et().memoizedState=d6.bind(null,we)},useEffectEvent:function(e){var n=Et(),l={impl:e};return n.memoizedState=l,function(){if((ze&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Xu={readContext:bt,use:Ri,useCallback:P9,useContext:bt,useEffect:Du,useImperativeHandle:X9,useInsertionEffect:Z9,useLayoutEffect:U9,useMemo:q9,useReducer:_i,useRef:D9,useState:function(){return _i(Zn)},useDebugValue:Bu,useDeferredValue:function(e,n){var l=nt();return G9(l,$e.memoizedState,e,n)},useTransition:function(){var e=_i(Zn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:Jo(e),n]},useSyncExternalStore:w9,useId:J9,useHostTransitionStatus:Uu,useFormState:H9,useActionState:H9,useOptimistic:function(e,n){var l=nt();return R9(l,$e,e,n)},useMemoCache:Au,useCacheRefresh:W9};Xu.useEffectEvent=$9;var l2={readContext:bt,use:Ri,useCallback:P9,useContext:bt,useEffect:Du,useImperativeHandle:X9,useInsertionEffect:Z9,useLayoutEffect:U9,useMemo:q9,useReducer:Hu,useRef:D9,useState:function(){return Hu(Zn)},useDebugValue:Bu,useDeferredValue:function(e,n){var l=nt();return $e===null?$u(l,e,n):G9(l,$e.memoizedState,e,n)},useTransition:function(){var e=Hu(Zn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:Jo(e),n]},useSyncExternalStore:w9,useId:J9,useHostTransitionStatus:Uu,useFormState:k9,useActionState:k9,useOptimistic:function(e,n){var l=nt();return $e!==null?R9(l,$e,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Au,useCacheRefresh:W9};l2.useEffectEvent=$9;function Pu(e,n,l,i){n=e.memoizedState,l=l(i,n),l=l==null?n:b({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var qu={enqueueSetState:function(e,n,l){e=e._reactInternals;var i=Qt(),f=fl(i);f.payload=n,l!=null&&(f.callback=l),n=dl(e,f,i),n!==null&&(Vt(n,e,i),Go(n,e,i))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var i=Qt(),f=fl(i);f.tag=1,f.payload=n,l!=null&&(f.callback=l),n=dl(e,f,i),n!==null&&(Vt(n,e,i),Go(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Qt(),i=fl(l);i.tag=2,n!=null&&(i.callback=n),n=dl(e,i,l),n!==null&&(Vt(n,e,l),Go(n,e,l))}};function a2(e,n,l,i,f,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,p,x):n.prototype&&n.prototype.isPureReactComponent?!Bo(l,i)||!Bo(f,p):!0}function o2(e,n,l,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,i),n.state!==e&&qu.enqueueReplaceState(n,n.state,null)}function ta(e,n){var l=n;if("ref"in n){l={};for(var i in n)i!=="ref"&&(l[i]=n[i])}if(e=e.defaultProps){l===n&&(l=b({},l));for(var f in e)l[f]===void 0&&(l[f]=e[f])}return l}function r2(e){ui(e)}function i2(e){console.error(e)}function c2(e){ui(e)}function Ai(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function s2(e,n,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Gu(e,n,l){return l=fl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ai(e,n)},l}function u2(e){return e=fl(e),e.tag=3,e}function f2(e,n,l,i){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var p=i.value;e.payload=function(){return f(p)},e.callback=function(){s2(n,l,i)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){s2(n,l,i),typeof f!="function"&&(xl===null?xl=new Set([this]):xl.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function h6(e,n,l,i,f){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=l.alternate,n!==null&&za(n,l,f,!0),l=Xt.current,l!==null){switch(l.tag){case 31:case 13:return rn===null?Pi():l.alternate===null&&We===0&&(We=3),l.flags&=-257,l.flags|=65536,l.lanes=f,i===bi?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([i]):n.add(i),x1(e,i,f)),!1;case 22:return l.flags|=65536,i===bi?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([i]):l.add(i)),x1(e,i,f)),!1}throw Error(r(435,l.tag))}return x1(e,i,f),Pi(),!1}if(_e)return n=Xt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,i!==du&&(e=Error(r(422),{cause:i}),Uo(nn(e,l)))):(i!==du&&(n=Error(r(423),{cause:i}),Uo(nn(n,l))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,i=nn(i,l),f=Gu(e.stateNode,i,f),Su(e,f),We!==4&&(We=2)),!1;var p=Error(r(520),{cause:i});if(p=nn(p,l),ir===null?ir=[p]:ir.push(p),We!==4&&(We=2),n===null)return!0;i=nn(i,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=f&-f,l.lanes|=e,e=Gu(l.stateNode,i,e),Su(l,e),!1;case 1:if(n=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(xl===null||!xl.has(p))))return l.flags|=65536,f&=-f,l.lanes|=f,f=u2(f),f2(f,e,l,i),Su(l,f),!1}l=l.return}while(l!==null);return!1}var Qu=Error(r(461)),rt=!1;function Ct(e,n,l,i){n.child=e===null?g9(n,null,l,i):Il(n,e.child,l,i)}function d2(e,n,l,i,f){l=l.render;var p=n.ref;if("ref"in i){var x={};for(var S in i)S!=="ref"&&(x[S]=i[S])}else x=i;return Kl(n),i=_u(e,n,l,x,p,f),S=Nu(),e!==null&&!rt?(Lu(e,n,f),Un(e,n,f)):(_e&&S&&uu(n),n.flags|=1,Ct(e,n,i,f),n.child)}function p2(e,n,l,i,f){if(e===null){var p=l.type;return typeof p=="function"&&!iu(p)&&p.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=p,h2(e,n,p,i,f)):(e=hi(l.type,null,i,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!n1(e,f)){var x=p.memoizedProps;if(l=l.compare,l=l!==null?l:Bo,l(x,i)&&e.ref===n.ref)return Un(e,n,f)}return n.flags|=1,e=Vn(p,i),e.ref=n.ref,e.return=n,n.child=e}function h2(e,n,l,i,f){if(e!==null){var p=e.memoizedProps;if(Bo(p,i)&&e.ref===n.ref)if(rt=!1,n.pendingProps=i=p,n1(e,f))(e.flags&131072)!==0&&(rt=!0);else return n.lanes=e.lanes,Un(e,n,f)}return Ku(e,n,l,i,f)}function g2(e,n,l,i){var f=i.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,e!==null){for(i=n.child=e.child,f=0;i!==null;)f=f|i.lanes|i.childLanes,i=i.sibling;i=f&~p}else i=0,n.child=null;return m2(e,n,p,l,i)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&xi(n,p!==null?p.cachePool:null),p!==null?x9(n,p):Mu(),y9(n);else return i=n.lanes=536870912,m2(e,n,p!==null?p.baseLanes|l:l,l,i)}else p!==null?(xi(n,p.cachePool),x9(n,p),hl(),n.memoizedState=null):(e!==null&&xi(n,null),Mu(),hl());return Ct(e,n,f,l),n.child}function er(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function m2(e,n,l,i,f){var p=yu();return p=p===null?null:{parent:at._currentValue,pool:p},n.memoizedState={baseLanes:l,cachePool:p},e!==null&&xi(n,null),Mu(),y9(n),e!==null&&za(e,n,i,!0),n.childLanes=f,null}function zi(e,n){return n=Vi({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function v2(e,n,l){return Il(n,e.child,null,l),e=zi(n,n.pendingProps),e.flags|=2,Pt(n),n.memoizedState=null,e}function g6(e,n,l){var i=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(_e){if(i.mode==="hidden")return e=zi(n,i),n.lanes=536870912,er(null,e);if(Tu(n),(e=Xe)?(e=_5(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:rl!==null?{id:yn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},l=e9(e),l.return=n,n.child=l,yt=n,Xe=null)):e=null,e===null)throw cl(n);return n.lanes=536870912,null}return zi(n,i)}var p=e.memoizedState;if(p!==null){var x=p.dehydrated;if(Tu(n),f)if(n.flags&256)n.flags&=-257,n=v2(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(rt||za(e,n,l,!1),f=(l&e.childLanes)!==0,rt||f){if(i=Ye,i!==null&&(x=id(i,l),x!==0&&x!==p.retryLane))throw p.retryLane=x,Pl(e,x),Vt(i,e,x),Qu;Pi(),n=v2(e,n,l)}else e=p.treeContext,Xe=cn(x.nextSibling),yt=n,_e=!0,il=null,on=!1,e!==null&&l9(n,e),n=zi(n,i),n.flags|=4096;return n}return e=Vn(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Hi(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(n.flags|=4194816)}}function Ku(e,n,l,i,f){return Kl(n),l=_u(e,n,l,i,void 0,f),i=Nu(),e!==null&&!rt?(Lu(e,n,f),Un(e,n,f)):(_e&&i&&uu(n),n.flags|=1,Ct(e,n,l,f),n.child)}function x2(e,n,l,i,f,p){return Kl(n),n.updateQueue=null,l=C9(n,i,l,f),b9(e),i=Nu(),e!==null&&!rt?(Lu(e,n,p),Un(e,n,p)):(_e&&i&&uu(n),n.flags|=1,Ct(e,n,l,p),n.child)}function y2(e,n,l,i,f){if(Kl(n),n.stateNode===null){var p=Na,x=l.contextType;typeof x=="object"&&x!==null&&(p=bt(x)),p=new l(i,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=qu,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=i,p.state=n.memoizedState,p.refs={},Cu(n),x=l.contextType,p.context=typeof x=="object"&&x!==null?bt(x):Na,p.state=n.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Pu(n,l,x,i),p.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(x=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),x!==p.state&&qu.enqueueReplaceState(p,p.state,null),Ko(n,i,p,f),Qo(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){p=n.stateNode;var S=n.memoizedProps,L=ta(l,S);p.props=L;var $=p.context,P=l.contextType;x=Na,typeof P=="object"&&P!==null&&(x=bt(P));var G=l.getDerivedStateFromProps;P=typeof G=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,P||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||$!==x)&&o2(n,p,i,x),ul=!1;var Z=n.memoizedState;p.state=Z,Ko(n,i,p,f),Qo(),$=n.memoizedState,S||Z!==$||ul?(typeof G=="function"&&(Pu(n,l,G,i),$=n.memoizedState),(L=ul||a2(n,l,L,i,Z,$,x))?(P||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=$),p.props=i,p.state=$,p.context=x,i=L):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{p=n.stateNode,wu(e,n),x=n.memoizedProps,P=ta(l,x),p.props=P,G=n.pendingProps,Z=p.context,$=l.contextType,L=Na,typeof $=="object"&&$!==null&&(L=bt($)),S=l.getDerivedStateFromProps,($=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x!==G||Z!==L)&&o2(n,p,i,L),ul=!1,Z=n.memoizedState,p.state=Z,Ko(n,i,p,f),Qo();var Y=n.memoizedState;x!==G||Z!==Y||ul||e!==null&&e.dependencies!==null&&mi(e.dependencies)?(typeof S=="function"&&(Pu(n,l,S,i),Y=n.memoizedState),(P=ul||a2(n,l,P,i,Z,Y,L)||e!==null&&e.dependencies!==null&&mi(e.dependencies))?($||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(i,Y,L),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(i,Y,L)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=Y),p.props=i,p.state=Y,p.context=L,i=P):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),i=!1)}return p=i,Hi(e,n),i=(n.flags&128)!==0,p||i?(p=n.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&i?(n.child=Il(n,e.child,null,f),n.child=Il(n,null,l,f)):Ct(e,n,l,f),n.memoizedState=p.state,e=n.child):e=Un(e,n,f),e}function b2(e,n,l,i){return Gl(),n.flags|=256,Ct(e,n,l,i),n.child}var Fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ju(e){return{baseLanes:e,cachePool:s9()}}function Wu(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Gt),e}function C2(e,n,l){var i=n.pendingProps,f=!1,p=(n.flags&128)!==0,x;if((x=p)||(x=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),x&&(f=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(_e){if(f?pl(n):hl(),(e=Xe)?(e=_5(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:rl!==null?{id:yn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},l=e9(e),l.return=n,n.child=l,yt=n,Xe=null)):e=null,e===null)throw cl(n);return z1(e)?n.lanes=32:n.lanes=536870912,null}var S=i.children;return i=i.fallback,f?(hl(),f=n.mode,S=Vi({mode:"hidden",children:S},f),i=ql(i,f,l,null),S.return=n,i.return=n,S.sibling=i,n.child=S,i=n.child,i.memoizedState=Ju(l),i.childLanes=Wu(e,x,l),n.memoizedState=Fu,er(null,i)):(pl(n),Iu(n,S))}var L=e.memoizedState;if(L!==null&&(S=L.dehydrated,S!==null)){if(p)n.flags&256?(pl(n),n.flags&=-257,n=e1(e,n,l)):n.memoizedState!==null?(hl(),n.child=e.child,n.flags|=128,n=null):(hl(),S=i.fallback,f=n.mode,i=Vi({mode:"visible",children:i.children},f),S=ql(S,f,l,null),S.flags|=2,i.return=n,S.return=n,i.sibling=S,n.child=i,Il(n,e.child,null,l),i=n.child,i.memoizedState=Ju(l),i.childLanes=Wu(e,x,l),n.memoizedState=Fu,n=er(null,i));else if(pl(n),z1(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var $=x.dgst;x=$,i=Error(r(419)),i.stack="",i.digest=x,Uo({value:i,source:null,stack:null}),n=e1(e,n,l)}else if(rt||za(e,n,l,!1),x=(l&e.childLanes)!==0,rt||x){if(x=Ye,x!==null&&(i=id(x,l),i!==0&&i!==L.retryLane))throw L.retryLane=i,Pl(e,i),Vt(x,e,i),Qu;A1(S)||Pi(),n=e1(e,n,l)}else A1(S)?(n.flags|=192,n.child=e.child,n=null):(e=L.treeContext,Xe=cn(S.nextSibling),yt=n,_e=!0,il=null,on=!1,e!==null&&l9(n,e),n=Iu(n,i.children),n.flags|=4096);return n}return f?(hl(),S=i.fallback,f=n.mode,L=e.child,$=L.sibling,i=Vn(L,{mode:"hidden",children:i.children}),i.subtreeFlags=L.subtreeFlags&65011712,$!==null?S=Vn($,S):(S=ql(S,f,l,null),S.flags|=2),S.return=n,i.return=n,i.sibling=S,n.child=i,er(null,i),i=n.child,S=e.child.memoizedState,S===null?S=Ju(l):(f=S.cachePool,f!==null?(L=at._currentValue,f=f.parent!==L?{parent:L,pool:L}:f):f=s9(),S={baseLanes:S.baseLanes|l,cachePool:f}),i.memoizedState=S,i.childLanes=Wu(e,x,l),n.memoizedState=Fu,er(e.child,i)):(pl(n),l=e.child,e=l.sibling,l=Vn(l,{mode:"visible",children:i.children}),l.return=n,l.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=l,n.memoizedState=null,l)}function Iu(e,n){return n=Vi({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Vi(e,n){return e=Yt(22,e,null,n),e.lanes=0,e}function e1(e,n,l){return Il(n,e.child,null,l),e=Iu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function w2(e,n,l){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),gu(e.return,n,l)}function t1(e,n,l,i,f,p){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:f,treeForkCount:p}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=i,x.tail=l,x.tailMode=f,x.treeForkCount=p)}function S2(e,n,l){var i=n.pendingProps,f=i.revealOrder,p=i.tail;i=i.children;var x=tt.current,S=(x&2)!==0;if(S?(x=x&1|2,n.flags|=128):x&=1,J(tt,x),Ct(e,n,i,l),i=_e?Zo:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&w2(e,l,n);else if(e.tag===19)w2(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(l=n.child,f=null;l!==null;)e=l.alternate,e!==null&&ji(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),t1(n,!1,f,l,p,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&ji(e)===null){n.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}t1(n,!0,l,null,p,i);break;case"together":t1(n,!1,null,null,void 0,i);break;default:n.memoizedState=null}return n.child}function Un(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),vl|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(za(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,l=Vn(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=Vn(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function n1(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&mi(e)))}function m6(e,n,l){switch(n.tag){case 3:de(n,n.stateNode.containerInfo),sl(n,at,e.memoizedState.cache),Gl();break;case 27:case 5:Ne(n);break;case 4:de(n,n.stateNode.containerInfo);break;case 10:sl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Tu(n),null;break;case 13:var i=n.memoizedState;if(i!==null)return i.dehydrated!==null?(pl(n),n.flags|=128,null):(l&n.child.childLanes)!==0?C2(e,n,l):(pl(n),e=Un(e,n,l),e!==null?e.sibling:null);pl(n);break;case 19:var f=(e.flags&128)!==0;if(i=(l&n.childLanes)!==0,i||(za(e,n,l,!1),i=(l&n.childLanes)!==0),f){if(i)return S2(e,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),J(tt,tt.current),i)break;return null;case 22:return n.lanes=0,g2(e,n,l,n.pendingProps);case 24:sl(n,at,e.memoizedState.cache)}return Un(e,n,l)}function j2(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)rt=!0;else{if(!n1(e,l)&&(n.flags&128)===0)return rt=!1,m6(e,n,l);rt=(e.flags&131072)!==0}else rt=!1,_e&&(n.flags&1048576)!==0&&n9(n,Zo,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=Jl(n.elementType),n.type=e,typeof e=="function")iu(e)?(i=ta(e,i),n.tag=1,n=y2(null,n,e,i,l)):(n.tag=0,n=Ku(null,n,e,i,l));else{if(e!=null){var f=e.$$typeof;if(f===_){n.tag=11,n=d2(null,n,e,i,l);break e}else if(f===z){n.tag=14,n=p2(null,n,e,i,l);break e}}throw n=fe(e)||e,Error(r(306,n,""))}}return n;case 0:return Ku(e,n,n.type,n.pendingProps,l);case 1:return i=n.type,f=ta(i,n.pendingProps),y2(e,n,i,f,l);case 3:e:{if(de(n,n.stateNode.containerInfo),e===null)throw Error(r(387));i=n.pendingProps;var p=n.memoizedState;f=p.element,wu(e,n),Ko(n,i,null,l);var x=n.memoizedState;if(i=x.cache,sl(n,at,i),i!==p.cache&&mu(n,[at],l,!0),Qo(),i=x.element,p.isDehydrated)if(p={element:i,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=b2(e,n,i,l);break e}else if(i!==f){f=nn(Error(r(424)),n),Uo(f),n=b2(e,n,i,l);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Xe=cn(e.firstChild),yt=n,_e=!0,il=null,on=!0,l=g9(n,null,i,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Gl(),i===f){n=Un(e,n,l);break e}Ct(e,n,i,l)}n=n.child}return n;case 26:return Hi(e,n),e===null?(l=H5(n.type,null,n.pendingProps,null))?n.memoizedState=l:_e||(l=n.type,e=n.pendingProps,i=Wi(I.current).createElement(l),i[xt]=n,i[Nt]=e,wt(i,l,e),gt(i),n.stateNode=i):n.memoizedState=H5(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ne(n),e===null&&_e&&(i=n.stateNode=O5(n.type,n.pendingProps,I.current),yt=n,on=!0,f=Xe,wl(n.type)?(H1=f,Xe=cn(i.firstChild)):Xe=f),Ct(e,n,n.pendingProps.children,l),Hi(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&_e&&((f=i=Xe)&&(i=q6(i,n.type,n.pendingProps,on),i!==null?(n.stateNode=i,yt=n,Xe=cn(i.firstChild),on=!1,f=!0):f=!1),f||cl(n)),Ne(n),f=n.type,p=n.pendingProps,x=e!==null?e.memoizedProps:null,i=p.children,N1(f,p)?i=null:x!==null&&N1(f,x)&&(n.flags|=32),n.memoizedState!==null&&(f=_u(e,n,i6,null,null,l),gr._currentValue=f),Hi(e,n),Ct(e,n,i,l),n.child;case 6:return e===null&&_e&&((e=l=Xe)&&(l=G6(l,n.pendingProps,on),l!==null?(n.stateNode=l,yt=n,Xe=null,e=!0):e=!1),e||cl(n)),null;case 13:return C2(e,n,l);case 4:return de(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=Il(n,null,i,l):Ct(e,n,i,l),n.child;case 11:return d2(e,n,n.type,n.pendingProps,l);case 7:return Ct(e,n,n.pendingProps,l),n.child;case 8:return Ct(e,n,n.pendingProps.children,l),n.child;case 12:return Ct(e,n,n.pendingProps.children,l),n.child;case 10:return i=n.pendingProps,sl(n,n.type,i.value),Ct(e,n,i.children,l),n.child;case 9:return f=n.type._context,i=n.pendingProps.children,Kl(n),f=bt(f),i=i(f),n.flags|=1,Ct(e,n,i,l),n.child;case 14:return p2(e,n,n.type,n.pendingProps,l);case 15:return h2(e,n,n.type,n.pendingProps,l);case 19:return S2(e,n,l);case 31:return g6(e,n,l);case 22:return g2(e,n,l,n.pendingProps);case 24:return Kl(n),i=bt(at),e===null?(f=yu(),f===null&&(f=Ye,p=vu(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=l),f=p),n.memoizedState={parent:i,cache:f},Cu(n),sl(n,at,f)):((e.lanes&l)!==0&&(wu(e,n),Ko(n,null,null,l),Qo()),f=e.memoizedState,p=n.memoizedState,f.parent!==i?(f={parent:i,cache:i},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),sl(n,at,i)):(i=p.cache,sl(n,at,i),i!==f.cache&&mu(n,[at],l,!0))),Ct(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function Yn(e){e.flags|=4}function l1(e,n,l,i,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(J2())e.flags|=8192;else throw Wl=bi,bu}else e.flags&=-16777217}function M2(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$5(n))if(J2())e.flags|=8192;else throw Wl=bi,bu}function ki(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ad():536870912,e.lanes|=n,qa|=n)}function tr(e,n){if(!_e)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Pe(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(n)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,i|=f.subtreeFlags&65011712,i|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,i|=f.subtreeFlags,i|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=i,e.childLanes=l,n}function v6(e,n,l){var i=n.pendingProps;switch(fu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(n),null;case 1:return Pe(n),null;case 3:return l=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Bn(at),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Aa(n)?Yn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,pu())),Pe(n),null;case 26:var f=n.type,p=n.memoizedState;return e===null?(Yn(n),p!==null?(Pe(n),M2(n,p)):(Pe(n),l1(n,f,null,i,l))):p?p!==e.memoizedState?(Yn(n),Pe(n),M2(n,p)):(Pe(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&Yn(n),Pe(n),l1(n,f,e,i,l)),null;case 27:if(Re(n),l=I.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&Yn(n);else{if(!i){if(n.stateNode===null)throw Error(r(166));return Pe(n),null}e=ee.current,Aa(n)?a9(n):(e=O5(f,i,l),n.stateNode=e,Yn(n))}return Pe(n),null;case 5:if(Re(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&Yn(n);else{if(!i){if(n.stateNode===null)throw Error(r(166));return Pe(n),null}if(p=ee.current,Aa(n))a9(n);else{var x=Wi(I.current);switch(p){case 1:p=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=x.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof i.is=="string"?x.createElement("select",{is:i.is}):x.createElement("select"),i.multiple?p.multiple=!0:i.size&&(p.size=i.size);break;default:p=typeof i.is=="string"?x.createElement(f,{is:i.is}):x.createElement(f)}}p[xt]=n,p[Nt]=i;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)p.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=p;e:switch(wt(p,f,i),f){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Yn(n)}}return Pe(n),l1(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&Yn(n);else{if(typeof i!="string"&&n.stateNode===null)throw Error(r(166));if(e=I.current,Aa(n)){if(e=n.stateNode,l=n.memoizedProps,i=null,f=yt,f!==null)switch(f.tag){case 27:case 5:i=f.memoizedProps}e[xt]=n,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||C5(e.nodeValue,l)),e||cl(n,!0)}else e=Wi(e).createTextNode(i),e[xt]=n,n.stateNode=e}return Pe(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(i=Aa(n),l!==null){if(e===null){if(!i)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[xt]=n}else Gl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Pe(n),e=!1}else l=pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(Pt(n),n):(Pt(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Pe(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Aa(n),i!==null&&i.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[xt]=n}else Gl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Pe(n),f=!1}else f=pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Pt(n),n):(Pt(n),null)}return Pt(n),(n.flags&128)!==0?(n.lanes=l,n):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=n.child,f=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(f=i.alternate.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==f&&(i.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),ki(n,n.updateQueue),Pe(n),null);case 4:return ye(),e===null&&M1(n.stateNode.containerInfo),Pe(n),null;case 10:return Bn(n.type),Pe(n),null;case 19:if(X(tt),i=n.memoizedState,i===null)return Pe(n),null;if(f=(n.flags&128)!==0,p=i.rendering,p===null)if(f)tr(i,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=ji(e),p!==null){for(n.flags|=128,tr(i,!1),e=p.updateQueue,n.updateQueue=e,ki(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Id(l,e),l=l.sibling;return J(tt,tt.current&1|2),_e&&kn(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&ut()>Ui&&(n.flags|=128,f=!0,tr(i,!1),n.lanes=4194304)}else{if(!f)if(e=ji(p),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,ki(n,e),tr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!p.alternate&&!_e)return Pe(n),null}else 2*ut()-i.renderingStartTime>Ui&&l!==536870912&&(n.flags|=128,f=!0,tr(i,!1),n.lanes=4194304);i.isBackwards?(p.sibling=n.child,n.child=p):(e=i.last,e!==null?e.sibling=p:n.child=p,i.last=p)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ut(),e.sibling=null,l=tt.current,J(tt,f?l&1|2:l&1),_e&&kn(n,i.treeForkCount),e):(Pe(n),null);case 22:case 23:return Pt(n),Eu(),i=n.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?(l&536870912)!==0&&(n.flags&128)===0&&(Pe(n),n.subtreeFlags&6&&(n.flags|=8192)):Pe(n),l=n.updateQueue,l!==null&&ki(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==l&&(n.flags|=2048),e!==null&&X(Fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Bn(at),Pe(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function x6(e,n){switch(fu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Bn(at),ye(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Re(n),null;case 31:if(n.memoizedState!==null){if(Pt(n),n.alternate===null)throw Error(r(340));Gl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Pt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Gl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return X(tt),null;case 4:return ye(),null;case 10:return Bn(n.type),null;case 22:case 23:return Pt(n),Eu(),e!==null&&X(Fl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Bn(at),null;case 25:return null;default:return null}}function E2(e,n){switch(fu(n),n.tag){case 3:Bn(at),ye();break;case 26:case 27:case 5:Re(n);break;case 4:ye();break;case 31:n.memoizedState!==null&&Pt(n);break;case 13:Pt(n);break;case 19:X(tt);break;case 10:Bn(n.type);break;case 22:case 23:Pt(n),Eu(),e!==null&&X(Fl);break;case 24:Bn(at)}}function nr(e,n){try{var l=n.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var f=i.next;l=f;do{if((l.tag&e)===e){i=void 0;var p=l.create,x=l.inst;i=p(),x.destroy=i}l=l.next}while(l!==f)}}catch(S){De(n,n.return,S)}}function gl(e,n,l){try{var i=n.updateQueue,f=i!==null?i.lastEffect:null;if(f!==null){var p=f.next;i=p;do{if((i.tag&e)===e){var x=i.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,f=n;var L=l,$=S;try{$()}catch(P){De(f,L,P)}}}i=i.next}while(i!==p)}}catch(P){De(n,n.return,P)}}function T2(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{v9(n,l)}catch(i){De(e,e.return,i)}}}function R2(e,n,l){l.props=ta(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){De(e,n,i)}}function lr(e,n){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(f){De(e,n,f)}}function Cn(e,n){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(f){De(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){De(e,n,f)}else l.current=null}function _2(e){var n=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(f){De(e,e.return,f)}}function a1(e,n,l){try{var i=e.stateNode;$6(i,e.type,l,n),i[Nt]=n}catch(f){De(e,e.return,f)}}function N2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wl(e.type)||e.tag===4}function o1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||N2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&wl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function r1(e,n,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(e),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=zn));else if(i!==4&&(i===27&&wl(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(r1(e,n,l),e=e.sibling;e!==null;)r1(e,n,l),e=e.sibling}function Di(e,n,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(i!==4&&(i===27&&wl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Di(e,n,l),e=e.sibling;e!==null;)Di(e,n,l),e=e.sibling}function L2(e){var n=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);wt(n,i,l),n[xt]=e,n[Nt]=l}catch(p){De(e,e.return,p)}}var Xn=!1,it=!1,i1=!1,O2=typeof WeakSet=="function"?WeakSet:Set,mt=null;function y6(e,n){if(e=e.containerInfo,R1=oc,e=Xd(e),eu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var f=i.anchorOffset,p=i.focusNode;i=i.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var x=0,S=-1,L=-1,$=0,P=0,G=e,Z=null;t:for(;;){for(var Y;G!==l||f!==0&&G.nodeType!==3||(S=x+f),G!==p||i!==0&&G.nodeType!==3||(L=x+i),G.nodeType===3&&(x+=G.nodeValue.length),(Y=G.firstChild)!==null;)Z=G,G=Y;for(;;){if(G===e)break t;if(Z===l&&++$===f&&(S=x),Z===p&&++P===i&&(L=x),(Y=G.nextSibling)!==null)break;G=Z,Z=G.parentNode}G=Y}l=S===-1||L===-1?null:{start:S,end:L}}else l=null}l=l||{start:0,end:0}}else l=null;for(_1={focusedElem:e,selectionRange:l},oc=!1,mt=n;mt!==null;)if(n=mt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mt=e;else for(;mt!==null;){switch(n=mt,p=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)f=e[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,l=n,f=p.memoizedProps,p=p.memoizedState,i=l.stateNode;try{var re=ta(l.type,f);e=i.getSnapshotBeforeUpdate(re,p),i.__reactInternalSnapshotBeforeUpdate=e}catch(me){De(l,l.return,me)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,l=e.nodeType,l===9)O1(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":O1(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,mt=e;break}mt=n.return}}function A2(e,n,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:qn(e,l),i&4&&nr(5,l);break;case 1:if(qn(e,l),i&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(x){De(l,l.return,x)}else{var f=ta(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){De(l,l.return,x)}}i&64&&T2(l),i&512&&lr(l,l.return);break;case 3:if(qn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{v9(e,n)}catch(x){De(l,l.return,x)}}break;case 27:n===null&&i&4&&L2(l);case 26:case 5:qn(e,l),n===null&&i&4&&_2(l),i&512&&lr(l,l.return);break;case 12:qn(e,l);break;case 31:qn(e,l),i&4&&V2(e,l);break;case 13:qn(e,l),i&4&&k2(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=R6.bind(null,l),Q6(e,l))));break;case 22:if(i=l.memoizedState!==null||Xn,!i){n=n!==null&&n.memoizedState!==null||it,f=Xn;var p=it;Xn=i,(it=n)&&!p?Gn(e,l,(l.subtreeFlags&8772)!==0):qn(e,l),Xn=f,it=p}break;case 30:break;default:qn(e,l)}}function z2(e){var n=e.alternate;n!==null&&(e.alternate=null,z2(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ks(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,Ot=!1;function Pn(e,n,l){for(l=l.child;l!==null;)H2(e,n,l),l=l.sibling}function H2(e,n,l){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(To,l)}catch{}switch(l.tag){case 26:it||Cn(l,n),Pn(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:it||Cn(l,n);var i=Ge,f=Ot;wl(l.type)&&(Ge=l.stateNode,Ot=!1),Pn(e,n,l),dr(l.stateNode),Ge=i,Ot=f;break;case 5:it||Cn(l,n);case 6:if(i=Ge,f=Ot,Ge=null,Pn(e,n,l),Ge=i,Ot=f,Ge!==null)if(Ot)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(l.stateNode)}catch(p){De(l,n,p)}else try{Ge.removeChild(l.stateNode)}catch(p){De(l,n,p)}break;case 18:Ge!==null&&(Ot?(e=Ge,T5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),eo(e)):T5(Ge,l.stateNode));break;case 4:i=Ge,f=Ot,Ge=l.stateNode.containerInfo,Ot=!0,Pn(e,n,l),Ge=i,Ot=f;break;case 0:case 11:case 14:case 15:gl(2,l,n),it||gl(4,l,n),Pn(e,n,l);break;case 1:it||(Cn(l,n),i=l.stateNode,typeof i.componentWillUnmount=="function"&&R2(l,n,i)),Pn(e,n,l);break;case 21:Pn(e,n,l);break;case 22:it=(i=it)||l.memoizedState!==null,Pn(e,n,l),it=i;break;default:Pn(e,n,l)}}function V2(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{eo(e)}catch(l){De(n,n.return,l)}}}function k2(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{eo(e)}catch(l){De(n,n.return,l)}}function b6(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new O2),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new O2),n;default:throw Error(r(435,e.tag))}}function Bi(e,n){var l=b6(e);n.forEach(function(i){if(!l.has(i)){l.add(i);var f=_6.bind(null,e,i);i.then(f,f)}})}function At(e,n){var l=n.deletions;if(l!==null)for(var i=0;i<l.length;i++){var f=l[i],p=e,x=n,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(wl(S.type)){Ge=S.stateNode,Ot=!1;break e}break;case 5:Ge=S.stateNode,Ot=!1;break e;case 3:case 4:Ge=S.stateNode.containerInfo,Ot=!0;break e}S=S.return}if(Ge===null)throw Error(r(160));H2(p,x,f),Ge=null,Ot=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)D2(n,e),n=n.sibling}var fn=null;function D2(e,n){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(n,e),zt(e),i&4&&(gl(3,e,e.return),nr(3,e),gl(5,e,e.return));break;case 1:At(n,e),zt(e),i&512&&(it||l===null||Cn(l,l.return)),i&64&&Xn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var f=fn;if(At(n,e),zt(e),i&512&&(it||l===null||Cn(l,l.return)),i&4){var p=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,f=f.ownerDocument||f;t:switch(i){case"title":p=f.getElementsByTagName("title")[0],(!p||p[No]||p[xt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(i),f.head.insertBefore(p,f.querySelector("head > title"))),wt(p,i,l),p[xt]=e,gt(p),i=p;break e;case"link":var x=D5("link","href",f).get(i+(l.href||""));if(x){for(var S=0;S<x.length;S++)if(p=x[S],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(S,1);break t}}p=f.createElement(i),wt(p,i,l),f.head.appendChild(p);break;case"meta":if(x=D5("meta","content",f).get(i+(l.content||""))){for(S=0;S<x.length;S++)if(p=x[S],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(S,1);break t}}p=f.createElement(i),wt(p,i,l),f.head.appendChild(p);break;default:throw Error(r(468,i))}p[xt]=e,gt(p),i=p}e.stateNode=i}else B5(f,e.type,e.stateNode);else e.stateNode=k5(f,i,e.memoizedProps);else p!==i?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,i===null?B5(f,e.type,e.stateNode):k5(f,i,e.memoizedProps)):i===null&&e.stateNode!==null&&a1(e,e.memoizedProps,l.memoizedProps)}break;case 27:At(n,e),zt(e),i&512&&(it||l===null||Cn(l,l.return)),l!==null&&i&4&&a1(e,e.memoizedProps,l.memoizedProps);break;case 5:if(At(n,e),zt(e),i&512&&(it||l===null||Cn(l,l.return)),e.flags&32){f=e.stateNode;try{Sa(f,"")}catch(re){De(e,e.return,re)}}i&4&&e.stateNode!=null&&(f=e.memoizedProps,a1(e,f,l!==null?l.memoizedProps:f)),i&1024&&(i1=!0);break;case 6:if(At(n,e),zt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(re){De(e,e.return,re)}}break;case 3:if(tc=null,f=fn,fn=Ii(n.containerInfo),At(n,e),fn=f,zt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{eo(n.containerInfo)}catch(re){De(e,e.return,re)}i1&&(i1=!1,B2(e));break;case 4:i=fn,fn=Ii(e.stateNode.containerInfo),At(n,e),zt(e),fn=i;break;case 12:At(n,e),zt(e);break;case 31:At(n,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Bi(e,i)));break;case 13:At(n,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Zi=ut()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Bi(e,i)));break;case 22:f=e.memoizedState!==null;var L=l!==null&&l.memoizedState!==null,$=Xn,P=it;if(Xn=$||f,it=P||L,At(n,e),it=P,Xn=$,zt(e),i&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(l===null||L||Xn||it||na(e)),l=null,n=e;;){if(n.tag===5||n.tag===26){if(l===null){L=l=n;try{if(p=L.stateNode,f)x=p.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=L.stateNode;var G=L.memoizedProps.style,Z=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(re){De(L,L.return,re)}}}else if(n.tag===6){if(l===null){L=n;try{L.stateNode.nodeValue=f?"":L.memoizedProps}catch(re){De(L,L.return,re)}}}else if(n.tag===18){if(l===null){L=n;try{var Y=L.stateNode;f?R5(Y,!0):R5(L.stateNode,!1)}catch(re){De(L,L.return,re)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Bi(e,l))));break;case 19:At(n,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Bi(e,i)));break;case 30:break;case 21:break;default:At(n,e),zt(e)}}function zt(e){var n=e.flags;if(n&2){try{for(var l,i=e.return;i!==null;){if(N2(i)){l=i;break}i=i.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var f=l.stateNode,p=o1(e);Di(e,p,f);break;case 5:var x=l.stateNode;l.flags&32&&(Sa(x,""),l.flags&=-33);var S=o1(e);Di(e,S,x);break;case 3:case 4:var L=l.stateNode.containerInfo,$=o1(e);r1(e,$,L);break;default:throw Error(r(161))}}catch(P){De(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function B2(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;B2(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function qn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)A2(e,n.alternate,n),n=n.sibling}function na(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:gl(4,n,n.return),na(n);break;case 1:Cn(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&R2(n,n.return,l),na(n);break;case 27:dr(n.stateNode);case 26:case 5:Cn(n,n.return),na(n);break;case 22:n.memoizedState===null&&na(n);break;case 30:na(n);break;default:na(n)}e=e.sibling}}function Gn(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var i=n.alternate,f=e,p=n,x=p.flags;switch(p.tag){case 0:case 11:case 15:Gn(f,p,l),nr(4,p);break;case 1:if(Gn(f,p,l),i=p,f=i.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch($){De(i,i.return,$)}if(i=p,f=i.updateQueue,f!==null){var S=i.stateNode;try{var L=f.shared.hiddenCallbacks;if(L!==null)for(f.shared.hiddenCallbacks=null,f=0;f<L.length;f++)m9(L[f],S)}catch($){De(i,i.return,$)}}l&&x&64&&T2(p),lr(p,p.return);break;case 27:L2(p);case 26:case 5:Gn(f,p,l),l&&i===null&&x&4&&_2(p),lr(p,p.return);break;case 12:Gn(f,p,l);break;case 31:Gn(f,p,l),l&&x&4&&V2(f,p);break;case 13:Gn(f,p,l),l&&x&4&&k2(f,p);break;case 22:p.memoizedState===null&&Gn(f,p,l),lr(p,p.return);break;case 30:break;default:Gn(f,p,l)}n=n.sibling}}function c1(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Yo(l))}function s1(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Yo(e))}function dn(e,n,l,i){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)$2(e,n,l,i),n=n.sibling}function $2(e,n,l,i){var f=n.flags;switch(n.tag){case 0:case 11:case 15:dn(e,n,l,i),f&2048&&nr(9,n);break;case 1:dn(e,n,l,i);break;case 3:dn(e,n,l,i),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Yo(e)));break;case 12:if(f&2048){dn(e,n,l,i),e=n.stateNode;try{var p=n.memoizedProps,x=p.id,S=p.onPostCommit;typeof S=="function"&&S(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(L){De(n,n.return,L)}}else dn(e,n,l,i);break;case 31:dn(e,n,l,i);break;case 13:dn(e,n,l,i);break;case 23:break;case 22:p=n.stateNode,x=n.alternate,n.memoizedState!==null?p._visibility&2?dn(e,n,l,i):ar(e,n):p._visibility&2?dn(e,n,l,i):(p._visibility|=2,Ya(e,n,l,i,(n.subtreeFlags&10256)!==0||!1)),f&2048&&c1(x,n);break;case 24:dn(e,n,l,i),f&2048&&s1(n.alternate,n);break;default:dn(e,n,l,i)}}function Ya(e,n,l,i,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,x=n,S=l,L=i,$=x.flags;switch(x.tag){case 0:case 11:case 15:Ya(p,x,S,L,f),nr(8,x);break;case 23:break;case 22:var P=x.stateNode;x.memoizedState!==null?P._visibility&2?Ya(p,x,S,L,f):ar(p,x):(P._visibility|=2,Ya(p,x,S,L,f)),f&&$&2048&&c1(x.alternate,x);break;case 24:Ya(p,x,S,L,f),f&&$&2048&&s1(x.alternate,x);break;default:Ya(p,x,S,L,f)}n=n.sibling}}function ar(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,i=n,f=i.flags;switch(i.tag){case 22:ar(l,i),f&2048&&c1(i.alternate,i);break;case 24:ar(l,i),f&2048&&s1(i.alternate,i);break;default:ar(l,i)}n=n.sibling}}var or=8192;function Xa(e,n,l){if(e.subtreeFlags&or)for(e=e.child;e!==null;)Z2(e,n,l),e=e.sibling}function Z2(e,n,l){switch(e.tag){case 26:Xa(e,n,l),e.flags&or&&e.memoizedState!==null&&rg(l,fn,e.memoizedState,e.memoizedProps);break;case 5:Xa(e,n,l);break;case 3:case 4:var i=fn;fn=Ii(e.stateNode.containerInfo),Xa(e,n,l),fn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=or,or=16777216,Xa(e,n,l),or=i):Xa(e,n,l));break;default:Xa(e,n,l)}}function U2(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function rr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];mt=i,X2(i,e)}U2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Y2(e),e=e.sibling}function Y2(e){switch(e.tag){case 0:case 11:case 15:rr(e),e.flags&2048&&gl(9,e,e.return);break;case 3:rr(e);break;case 12:rr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,$i(e)):rr(e);break;default:rr(e)}}function $i(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];mt=i,X2(i,e)}U2(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:gl(8,n,n.return),$i(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,$i(n));break;default:$i(n)}e=e.sibling}}function X2(e,n){for(;mt!==null;){var l=mt;switch(l.tag){case 0:case 11:case 15:gl(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Yo(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,mt=i;else e:for(l=e;mt!==null;){i=mt;var f=i.sibling,p=i.return;if(z2(i),i===l){mt=null;break e}if(f!==null){f.return=p,mt=f;break e}mt=p}}}var C6={getCacheForType:function(e){var n=bt(at),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return bt(at).controller.signal}},w6=typeof WeakMap=="function"?WeakMap:Map,ze=0,Ye=null,je=null,Ee=0,ke=0,qt=null,ml=!1,Pa=!1,u1=!1,Qn=0,We=0,vl=0,la=0,f1=0,Gt=0,qa=0,ir=null,Ht=null,d1=!1,Zi=0,P2=0,Ui=1/0,Yi=null,xl=null,ft=0,yl=null,Ga=null,Kn=0,p1=0,h1=null,q2=null,cr=0,g1=null;function Qt(){return(ze&2)!==0&&Ee!==0?Ee&-Ee:H.T!==null?C1():cd()}function G2(){if(Gt===0)if((Ee&536870912)===0||_e){var e=Jr;Jr<<=1,(Jr&3932160)===0&&(Jr=262144),Gt=e}else Gt=536870912;return e=Xt.current,e!==null&&(e.flags|=32),Gt}function Vt(e,n,l){(e===Ye&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Qa(e,0),bl(e,Ee,Gt,!1)),_o(e,l),((ze&2)===0||e!==Ye)&&(e===Ye&&((ze&2)===0&&(la|=l),We===4&&bl(e,Ee,Gt,!1)),wn(e))}function Q2(e,n,l){if((ze&6)!==0)throw Error(r(327));var i=!l&&(n&127)===0&&(n&e.expiredLanes)===0||Ro(e,n),f=i?M6(e,n):v1(e,n,!0),p=i;do{if(f===0){Pa&&!i&&bl(e,n,0,!1);break}else{if(l=e.current.alternate,p&&!S6(l)){f=v1(e,n,!1),p=!1;continue}if(f===2){if(p=n,e.errorRecoveryDisabledLanes&p)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var S=e;f=ir;var L=S.current.memoizedState.isDehydrated;if(L&&(Qa(S,x).flags|=256),x=v1(S,x,!1),x!==2){if(u1&&!L){S.errorRecoveryDisabledLanes|=p,la|=p,f=4;break e}p=Ht,Ht=f,p!==null&&(Ht===null?Ht=p:Ht.push.apply(Ht,p))}f=x}if(p=!1,f!==2)continue}}if(f===1){Qa(e,0),bl(e,n,0,!0);break}e:{switch(i=e,p=f,p){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:bl(i,n,Gt,!ml);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(f=Zi+300-ut(),10<f)){if(bl(i,n,Gt,!ml),Ir(i,0,!0)!==0)break e;Kn=n,i.timeoutHandle=M5(K2.bind(null,i,l,Ht,Yi,d1,n,Gt,la,qa,ml,p,"Throttled",-0,0),f);break e}K2(i,l,Ht,Yi,d1,n,Gt,la,qa,ml,p,null,-0,0)}}break}while(!0);wn(e)}function K2(e,n,l,i,f,p,x,S,L,$,P,G,Z,Y){if(e.timeoutHandle=-1,G=n.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zn},Z2(n,p,G);var re=(p&62914560)===p?Zi-ut():(p&4194048)===p?P2-ut():0;if(re=ig(G,re),re!==null){Kn=p,e.cancelPendingCommit=re(l5.bind(null,e,n,p,l,i,f,x,S,L,P,G,null,Z,Y)),bl(e,p,x,!$);return}}l5(e,n,p,l,i,f,x,S,L)}function S6(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var f=l[i],p=f.getSnapshot;f=f.value;try{if(!Ut(p(),f))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function bl(e,n,l,i){n&=~f1,n&=~la,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var f=n;0<f;){var p=31-Zt(f),x=1<<p;i[p]=-1,f&=~x}l!==0&&od(e,l,n)}function Xi(){return(ze&6)===0?(sr(0),!1):!0}function m1(){if(je!==null){if(ke===0)var e=je.return;else e=je,Dn=Ql=null,Ou(e),Da=null,Po=0,e=je;for(;e!==null;)E2(e.alternate,e),e=e.return;je=null}}function Qa(e,n){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Y6(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Kn=0,m1(),Ye=e,je=l=Vn(e.current,null),Ee=n,ke=0,qt=null,ml=!1,Pa=Ro(e,n),u1=!1,qa=Gt=f1=la=vl=We=0,Ht=ir=null,d1=!1,(n&8)!==0&&(n|=n&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=n;0<i;){var f=31-Zt(i),p=1<<f;n|=e[f],i&=~p}return Qn=n,fi(),l}function F2(e,n){we=null,H.H=Io,n===ka||n===yi?(n=d9(),ke=3):n===bu?(n=d9(),ke=4):ke=n===Qu?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,qt=n,je===null&&(We=1,Ai(e,nn(n,e.current)))}function J2(){var e=Xt.current;return e===null?!0:(Ee&4194048)===Ee?rn===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===rn:!1}function W2(){var e=H.H;return H.H=Io,e===null?Io:e}function I2(){var e=H.A;return H.A=C6,e}function Pi(){We=4,ml||(Ee&4194048)!==Ee&&Xt.current!==null||(Pa=!0),(vl&134217727)===0&&(la&134217727)===0||Ye===null||bl(Ye,Ee,Gt,!1)}function v1(e,n,l){var i=ze;ze|=2;var f=W2(),p=I2();(Ye!==e||Ee!==n)&&(Yi=null,Qa(e,n)),n=!1;var x=We;e:do try{if(ke!==0&&je!==null){var S=je,L=qt;switch(ke){case 8:m1(),x=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(n=!0);var $=ke;if(ke=0,qt=null,Ka(e,S,L,$),l&&Pa){x=0;break e}break;default:$=ke,ke=0,qt=null,Ka(e,S,L,$)}}j6(),x=We;break}catch(P){F2(e,P)}while(!0);return n&&e.shellSuspendCounter++,Dn=Ql=null,ze=i,H.H=f,H.A=p,je===null&&(Ye=null,Ee=0,fi()),x}function j6(){for(;je!==null;)e5(je)}function M6(e,n){var l=ze;ze|=2;var i=W2(),f=I2();Ye!==e||Ee!==n?(Yi=null,Ui=ut()+500,Qa(e,n)):Pa=Ro(e,n);e:do try{if(ke!==0&&je!==null){n=je;var p=qt;t:switch(ke){case 1:ke=0,qt=null,Ka(e,n,p,1);break;case 2:case 9:if(u9(p)){ke=0,qt=null,t5(n);break}n=function(){ke!==2&&ke!==9||Ye!==e||(ke=7),wn(e)},p.then(n,n);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:u9(p)?(ke=0,qt=null,t5(n)):(ke=0,qt=null,Ka(e,n,p,7));break;case 5:var x=null;switch(je.tag){case 26:x=je.memoizedState;case 5:case 27:var S=je;if(x?$5(x):S.stateNode.complete){ke=0,qt=null;var L=S.sibling;if(L!==null)je=L;else{var $=S.return;$!==null?(je=$,qi($)):je=null}break t}}ke=0,qt=null,Ka(e,n,p,5);break;case 6:ke=0,qt=null,Ka(e,n,p,6);break;case 8:m1(),We=6;break e;default:throw Error(r(462))}}E6();break}catch(P){F2(e,P)}while(!0);return Dn=Ql=null,H.H=i,H.A=f,ze=l,je!==null?0:(Ye=null,Ee=0,fi(),We)}function E6(){for(;je!==null&&!be();)e5(je)}function e5(e){var n=j2(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,n===null?qi(e):je=n}function t5(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=x2(l,n,n.pendingProps,n.type,void 0,Ee);break;case 11:n=x2(l,n,n.pendingProps,n.type.render,n.ref,Ee);break;case 5:Ou(n);default:E2(l,n),n=je=Id(n,Qn),n=j2(l,n,Qn)}e.memoizedProps=e.pendingProps,n===null?qi(e):je=n}function Ka(e,n,l,i){Dn=Ql=null,Ou(n),Da=null,Po=0;var f=n.return;try{if(h6(e,f,n,l,Ee)){We=1,Ai(e,nn(l,e.current)),je=null;return}}catch(p){if(f!==null)throw je=f,p;We=1,Ai(e,nn(l,e.current)),je=null;return}n.flags&32768?(_e||i===1?e=!0:Pa||(Ee&536870912)!==0?e=!1:(ml=e=!0,(i===2||i===9||i===3||i===6)&&(i=Xt.current,i!==null&&i.tag===13&&(i.flags|=16384))),n5(n,e)):qi(n)}function qi(e){var n=e;do{if((n.flags&32768)!==0){n5(n,ml);return}e=n.return;var l=v6(n.alternate,n,Qn);if(l!==null){je=l;return}if(n=n.sibling,n!==null){je=n;return}je=n=e}while(n!==null);We===0&&(We=5)}function n5(e,n){do{var l=x6(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);We=6,je=null}function l5(e,n,l,i,f,p,x,S,L){e.cancelPendingCommit=null;do Gi();while(ft!==0);if((ze&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(p=n.lanes|n.childLanes,p|=ou,o8(e,l,p,x,S,L),e===Ye&&(je=Ye=null,Ee=0),Ga=n,yl=e,Kn=l,p1=p,h1=f,q2=i,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,N6(Kr,function(){return c5(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=H.T,H.T=null,f=D.p,D.p=2,x=ze,ze|=4;try{y6(e,n,l)}finally{ze=x,D.p=f,H.T=i}}ft=1,a5(),o5(),r5()}}function a5(){if(ft===1){ft=0;var e=yl,n=Ga,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var i=D.p;D.p=2;var f=ze;ze|=4;try{D2(n,e);var p=_1,x=Xd(e.containerInfo),S=p.focusedElem,L=p.selectionRange;if(x!==S&&S&&S.ownerDocument&&Yd(S.ownerDocument.documentElement,S)){if(L!==null&&eu(S)){var $=L.start,P=L.end;if(P===void 0&&(P=$),"selectionStart"in S)S.selectionStart=$,S.selectionEnd=Math.min(P,S.value.length);else{var G=S.ownerDocument||document,Z=G&&G.defaultView||window;if(Z.getSelection){var Y=Z.getSelection(),re=S.textContent.length,me=Math.min(L.start,re),Ue=L.end===void 0?me:Math.min(L.end,re);!Y.extend&&me>Ue&&(x=Ue,Ue=me,me=x);var V=Ud(S,me),A=Ud(S,Ue);if(V&&A&&(Y.rangeCount!==1||Y.anchorNode!==V.node||Y.anchorOffset!==V.offset||Y.focusNode!==A.node||Y.focusOffset!==A.offset)){var B=G.createRange();B.setStart(V.node,V.offset),Y.removeAllRanges(),me>Ue?(Y.addRange(B),Y.extend(A.node,A.offset)):(B.setEnd(A.node,A.offset),Y.addRange(B))}}}}for(G=[],Y=S;Y=Y.parentNode;)Y.nodeType===1&&G.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var q=G[S];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}oc=!!R1,_1=R1=null}finally{ze=f,D.p=i,H.T=l}}e.current=n,ft=2}}function o5(){if(ft===2){ft=0;var e=yl,n=Ga,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=H.T,H.T=null;var i=D.p;D.p=2;var f=ze;ze|=4;try{A2(e,n.alternate,n)}finally{ze=f,D.p=i,H.T=l}}ft=3}}function r5(){if(ft===4||ft===3){ft=0,_t();var e=yl,n=Ga,l=Kn,i=q2;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ft=5:(ft=0,Ga=yl=null,i5(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(xl=null),Hs(l),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(To,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=H.T,f=D.p,D.p=2,H.T=null;try{for(var p=e.onRecoverableError,x=0;x<i.length;x++){var S=i[x];p(S.value,{componentStack:S.stack})}}finally{H.T=n,D.p=f}}(Kn&3)!==0&&Gi(),wn(e),f=e.pendingLanes,(l&261930)!==0&&(f&42)!==0?e===g1?cr++:(cr=0,g1=e):cr=0,sr(0)}}function i5(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Yo(n)))}function Gi(){return a5(),o5(),r5(),c5()}function c5(){if(ft!==5)return!1;var e=yl,n=p1;p1=0;var l=Hs(Kn),i=H.T,f=D.p;try{D.p=32>l?32:l,H.T=null,l=h1,h1=null;var p=yl,x=Kn;if(ft=0,Ga=yl=null,Kn=0,(ze&6)!==0)throw Error(r(331));var S=ze;if(ze|=4,Y2(p.current),$2(p,p.current,x,l),ze=S,sr(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(To,p)}catch{}return!0}finally{D.p=f,H.T=i,i5(e,n)}}function s5(e,n,l){n=nn(l,n),n=Gu(e.stateNode,n,2),e=dl(e,n,2),e!==null&&(_o(e,2),wn(e))}function De(e,n,l){if(e.tag===3)s5(e,e,l);else for(;n!==null;){if(n.tag===3){s5(n,e,l);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(xl===null||!xl.has(i))){e=nn(l,e),l=u2(2),i=dl(n,l,2),i!==null&&(f2(l,i,n,e),_o(i,2),wn(i));break}}n=n.return}}function x1(e,n,l){var i=e.pingCache;if(i===null){i=e.pingCache=new w6;var f=new Set;i.set(n,f)}else f=i.get(n),f===void 0&&(f=new Set,i.set(n,f));f.has(l)||(u1=!0,f.add(l),e=T6.bind(null,e,n,l),n.then(e,e))}function T6(e,n,l){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ye===e&&(Ee&l)===l&&(We===4||We===3&&(Ee&62914560)===Ee&&300>ut()-Zi?(ze&2)===0&&Qa(e,0):f1|=l,qa===Ee&&(qa=0)),wn(e)}function u5(e,n){n===0&&(n=ad()),e=Pl(e,n),e!==null&&(_o(e,n),wn(e))}function R6(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),u5(e,l)}function _6(e,n){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(n),u5(e,l)}function N6(e,n){return Mo(e,n)}var Qi=null,Fa=null,y1=!1,Ki=!1,b1=!1,Cl=0;function wn(e){e!==Fa&&e.next===null&&(Fa===null?Qi=Fa=e:Fa=Fa.next=e),Ki=!0,y1||(y1=!0,O6())}function sr(e,n){if(!b1&&Ki){b1=!0;do for(var l=!1,i=Qi;i!==null;){if(e!==0){var f=i.pendingLanes;if(f===0)var p=0;else{var x=i.suspendedLanes,S=i.pingedLanes;p=(1<<31-Zt(42|e)+1)-1,p&=f&~(x&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,h5(i,p))}else p=Ee,p=Ir(i,i===Ye?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(p&3)===0||Ro(i,p)||(l=!0,h5(i,p));i=i.next}while(l);b1=!1}}function L6(){f5()}function f5(){Ki=y1=!1;var e=0;Cl!==0&&U6()&&(e=Cl);for(var n=ut(),l=null,i=Qi;i!==null;){var f=i.next,p=d5(i,n);p===0?(i.next=null,l===null?Qi=f:l.next=f,f===null&&(Fa=l)):(l=i,(e!==0||(p&3)!==0)&&(Ki=!0)),i=f}ft!==0&&ft!==5||sr(e),Cl!==0&&(Cl=0)}function d5(e,n){for(var l=e.suspendedLanes,i=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var x=31-Zt(p),S=1<<x,L=f[x];L===-1?((S&l)===0||(S&i)!==0)&&(f[x]=a8(S,n)):L<=n&&(e.expiredLanes|=S),p&=~S}if(n=Ye,l=Ee,l=Ir(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===n&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ma(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ro(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(i!==null&&ma(i),Hs(l)){case 2:case 8:l=nd;break;case 32:l=Kr;break;case 268435456:l=ld;break;default:l=Kr}return i=p5.bind(null,e),l=Mo(l,i),e.callbackPriority=n,e.callbackNode=l,n}return i!==null&&i!==null&&ma(i),e.callbackPriority=2,e.callbackNode=null,2}function p5(e,n){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Gi()&&e.callbackNode!==l)return null;var i=Ee;return i=Ir(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Q2(e,i,n),d5(e,ut()),e.callbackNode!=null&&e.callbackNode===l?p5.bind(null,e):null)}function h5(e,n){if(Gi())return null;Q2(e,n,!0)}function O6(){X6(function(){(ze&6)!==0?Mo(td,L6):f5()})}function C1(){if(Cl===0){var e=Ha;e===0&&(e=Fr,Fr<<=1,(Fr&261888)===0&&(Fr=256)),Cl=e}return Cl}function g5(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:li(""+e)}function m5(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function A6(e,n,l,i,f){if(n==="submit"&&l&&l.stateNode===f){var p=g5((f[Nt]||null).action),x=i.submitter;x&&(n=(n=x[Nt]||null)?g5(n.formAction):x.getAttribute("formAction"),n!==null&&(p=n,x=null));var S=new ii("action","action",null,i,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Cl!==0){var L=x?m5(f,x):new FormData(f);Zu(l,{pending:!0,data:L,method:f.method,action:p},null,L)}}else typeof p=="function"&&(S.preventDefault(),L=x?m5(f,x):new FormData(f),Zu(l,{pending:!0,data:L,method:f.method,action:p},p,L))},currentTarget:f}]})}}for(var w1=0;w1<au.length;w1++){var S1=au[w1],z6=S1.toLowerCase(),H6=S1[0].toUpperCase()+S1.slice(1);un(z6,"on"+H6)}un(Gd,"onAnimationEnd"),un(Qd,"onAnimationIteration"),un(Kd,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(J8,"onTransitionRun"),un(W8,"onTransitionStart"),un(I8,"onTransitionCancel"),un(Fd,"onTransitionEnd"),Ca("onMouseEnter",["mouseout","mouseover"]),Ca("onMouseLeave",["mouseout","mouseover"]),Ca("onPointerEnter",["pointerout","pointerover"]),Ca("onPointerLeave",["pointerout","pointerover"]),Zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ur="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(" "),V6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ur));function v5(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],f=i.event;i=i.listeners;e:{var p=void 0;if(n)for(var x=i.length-1;0<=x;x--){var S=i[x],L=S.instance,$=S.currentTarget;if(S=S.listener,L!==p&&f.isPropagationStopped())break e;p=S,f.currentTarget=$;try{p(f)}catch(P){ui(P)}f.currentTarget=null,p=L}else for(x=0;x<i.length;x++){if(S=i[x],L=S.instance,$=S.currentTarget,S=S.listener,L!==p&&f.isPropagationStopped())break e;p=S,f.currentTarget=$;try{p(f)}catch(P){ui(P)}f.currentTarget=null,p=L}}}}function Me(e,n){var l=n[Vs];l===void 0&&(l=n[Vs]=new Set);var i=e+"__bubble";l.has(i)||(x5(n,e,2,!1),l.add(i))}function j1(e,n,l){var i=0;n&&(i|=4),x5(l,e,i,n)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function M1(e){if(!e[Fi]){e[Fi]=!0,fd.forEach(function(l){l!=="selectionchange"&&(V6.has(l)||j1(l,!1,e),j1(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Fi]||(n[Fi]=!0,j1("selectionchange",!1,n))}}function x5(e,n,l,i){switch(G5(n)){case 2:var f=ug;break;case 8:f=fg;break;default:f=$1}l=f.bind(null,n,l,e),f=void 0,!Ps||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),i?f!==void 0?e.addEventListener(n,l,{capture:!0,passive:f}):e.addEventListener(n,l,!0):f!==void 0?e.addEventListener(n,l,{passive:f}):e.addEventListener(n,l,!1)}function E1(e,n,l,i,f){var p=i;if((n&1)===0&&(n&2)===0&&i!==null)e:for(;;){if(i===null)return;var x=i.tag;if(x===3||x===4){var S=i.stateNode.containerInfo;if(S===f)break;if(x===4)for(x=i.return;x!==null;){var L=x.tag;if((L===3||L===4)&&x.stateNode.containerInfo===f)return;x=x.return}for(;S!==null;){if(x=xa(S),x===null)return;if(L=x.tag,L===5||L===6||L===26||L===27){i=p=x;continue e}S=S.parentNode}}i=i.return}Sd(function(){var $=p,P=Ys(l),G=[];e:{var Z=Jd.get(e);if(Z!==void 0){var Y=ii,re=e;switch(e){case"keypress":if(oi(l)===0)break e;case"keydown":case"keyup":Y=_8;break;case"focusin":re="focus",Y=Ks;break;case"focusout":re="blur",Y=Ks;break;case"beforeblur":case"afterblur":Y=Ks;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Ed;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=v8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=O8;break;case Gd:case Qd:case Kd:Y=b8;break;case Fd:Y=z8;break;case"scroll":case"scrollend":Y=g8;break;case"wheel":Y=V8;break;case"copy":case"cut":case"paste":Y=w8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Rd;break;case"toggle":case"beforetoggle":Y=D8}var me=(n&4)!==0,Ue=!me&&(e==="scroll"||e==="scrollend"),V=me?Z!==null?Z+"Capture":null:Z;me=[];for(var A=$,B;A!==null;){var q=A;if(B=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||B===null||V===null||(q=Oo(A,V),q!=null&&me.push(fr(A,q,B))),Ue)break;A=A.return}0<me.length&&(Z=new Y(Z,re,null,l,P),G.push({event:Z,listeners:me}))}}if((n&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",Z&&l!==Us&&(re=l.relatedTarget||l.fromElement)&&(xa(re)||re[va]))break e;if((Y||Z)&&(Z=P.window===P?P:(Z=P.ownerDocument)?Z.defaultView||Z.parentWindow:window,Y?(re=l.relatedTarget||l.toElement,Y=$,re=re?xa(re):null,re!==null&&(Ue=s(re),me=re.tag,re!==Ue||me!==5&&me!==27&&me!==6)&&(re=null)):(Y=null,re=$),Y!==re)){if(me=Ed,q="onMouseLeave",V="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(me=Rd,q="onPointerLeave",V="onPointerEnter",A="pointer"),Ue=Y==null?Z:Lo(Y),B=re==null?Z:Lo(re),Z=new me(q,A+"leave",Y,l,P),Z.target=Ue,Z.relatedTarget=B,q=null,xa(P)===$&&(me=new me(V,A+"enter",re,l,P),me.target=B,me.relatedTarget=Ue,q=me),Ue=q,Y&&re)t:{for(me=k6,V=Y,A=re,B=0,q=V;q;q=me(q))B++;q=0;for(var he=A;he;he=me(he))q++;for(;0<B-q;)V=me(V),B--;for(;0<q-B;)A=me(A),q--;for(;B--;){if(V===A||A!==null&&V===A.alternate){me=V;break t}V=me(V),A=me(A)}me=null}else me=null;Y!==null&&y5(G,Z,Y,me,!1),re!==null&&Ue!==null&&y5(G,Ue,re,me,!0)}}e:{if(Z=$?Lo($):window,Y=Z.nodeName&&Z.nodeName.toLowerCase(),Y==="select"||Y==="input"&&Z.type==="file")var Oe=Vd;else if(zd(Z))if(kd)Oe=Q8;else{Oe=q8;var ce=P8}else Y=Z.nodeName,!Y||Y.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?$&&Zs($.elementType)&&(Oe=Vd):Oe=G8;if(Oe&&(Oe=Oe(e,$))){Hd(G,Oe,l,P);break e}ce&&ce(e,Z,$),e==="focusout"&&$&&Z.type==="number"&&$.memoizedProps.value!=null&&$s(Z,"number",Z.value)}switch(ce=$?Lo($):window,e){case"focusin":(zd(ce)||ce.contentEditable==="true")&&(Ta=ce,tu=$,$o=null);break;case"focusout":$o=tu=Ta=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,Pd(G,l,P);break;case"selectionchange":if(F8)break;case"keydown":case"keyup":Pd(G,l,P)}var Se;if(Js)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Ea?Od(e,l)&&(Te="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Te="onCompositionStart");Te&&(_d&&l.locale!=="ko"&&(Ea||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Ea&&(Se=jd()):(ol=P,qs="value"in ol?ol.value:ol.textContent,Ea=!0)),ce=Ji($,Te),0<ce.length&&(Te=new Td(Te,e,null,l,P),G.push({event:Te,listeners:ce}),Se?Te.data=Se:(Se=Ad(l),Se!==null&&(Te.data=Se)))),(Se=$8?Z8(e,l):U8(e,l))&&(Te=Ji($,"onBeforeInput"),0<Te.length&&(ce=new Td("onBeforeInput","beforeinput",null,l,P),G.push({event:ce,listeners:Te}),ce.data=Se)),A6(G,e,$,l,P)}v5(G,n)})}function fr(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Ji(e,n){for(var l=n+"Capture",i=[];e!==null;){var f=e,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=Oo(e,l),f!=null&&i.unshift(fr(e,f,p)),f=Oo(e,n),f!=null&&i.push(fr(e,f,p))),e.tag===3)return i;e=e.return}return[]}function k6(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function y5(e,n,l,i,f){for(var p=n._reactName,x=[];l!==null&&l!==i;){var S=l,L=S.alternate,$=S.stateNode;if(S=S.tag,L!==null&&L===i)break;S!==5&&S!==26&&S!==27||$===null||(L=$,f?($=Oo(l,p),$!=null&&x.unshift(fr(l,$,L))):f||($=Oo(l,p),$!=null&&x.push(fr(l,$,L)))),l=l.return}x.length!==0&&e.push({event:n,listeners:x})}var D6=/\r\n?/g,B6=/\u0000|\uFFFD/g;function b5(e){return(typeof e=="string"?e:""+e).replace(D6,`
49
+ `).replace(B6,"")}function C5(e,n){return n=b5(n),b5(e)===n}function Ze(e,n,l,i,f,p){switch(l){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||Sa(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&Sa(e,""+i);break;case"className":ti(e,"class",i);break;case"tabIndex":ti(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ti(e,l,i);break;case"style":Cd(e,i,p);break;case"data":if(n!=="object"){ti(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=li(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"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 p=="function"&&(l==="formAction"?(n!=="input"&&Ze(e,n,"name",f.name,f,null),Ze(e,n,"formEncType",f.formEncType,f,null),Ze(e,n,"formMethod",f.formMethod,f,null),Ze(e,n,"formTarget",f.formTarget,f,null)):(Ze(e,n,"encType",f.encType,f,null),Ze(e,n,"method",f.method,f,null),Ze(e,n,"target",f.target,f,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=li(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=zn);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=li(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Me("beforetoggle",e),Me("toggle",e),ei(e,"popover",i);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ei(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=p8.get(l)||l,ei(e,l,i))}}function T1(e,n,l,i,f,p){switch(l){case"style":Cd(e,i,p);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Sa(e,i):(typeof i=="number"||typeof i=="bigint")&&Sa(e,""+i);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dd.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),n=l.slice(2,f?l.length-7:void 0),p=e[Nt]||null,p=p!=null?p[l]:null,typeof p=="function"&&e.removeEventListener(n,p,f),typeof i=="function")){typeof p!="function"&&p!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,i,f);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):ei(e,l,i)}}}function wt(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var i=!1,f=!1,p;for(p in l)if(l.hasOwnProperty(p)){var x=l[p];if(x!=null)switch(p){case"src":i=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:Ze(e,n,p,x,l,null)}}f&&Ze(e,n,"srcSet",l.srcSet,l,null),i&&Ze(e,n,"src",l.src,l,null);return;case"input":Me("invalid",e);var S=p=x=f=null,L=null,$=null;for(i in l)if(l.hasOwnProperty(i)){var P=l[i];if(P!=null)switch(i){case"name":f=P;break;case"type":x=P;break;case"checked":L=P;break;case"defaultChecked":$=P;break;case"value":p=P;break;case"defaultValue":S=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,n));break;default:Ze(e,n,i,P,l,null)}}vd(e,p,S,L,$,x,f,!1);return;case"select":Me("invalid",e),i=x=p=null;for(f in l)if(l.hasOwnProperty(f)&&(S=l[f],S!=null))switch(f){case"value":p=S;break;case"defaultValue":x=S;break;case"multiple":i=S;default:Ze(e,n,f,S,l,null)}n=p,l=x,e.multiple=!!i,n!=null?wa(e,!!i,n,!1):l!=null&&wa(e,!!i,l,!0);return;case"textarea":Me("invalid",e),p=f=i=null;for(x in l)if(l.hasOwnProperty(x)&&(S=l[x],S!=null))switch(x){case"value":i=S;break;case"defaultValue":f=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Ze(e,n,x,S,l,null)}yd(e,i,f,p);return;case"option":for(L in l)if(l.hasOwnProperty(L)&&(i=l[L],i!=null))switch(L){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ze(e,n,L,i,l,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(i=0;i<ur.length;i++)Me(ur[i],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in l)if(l.hasOwnProperty($)&&(i=l[$],i!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:Ze(e,n,$,i,l,null)}return;default:if(Zs(n)){for(P in l)l.hasOwnProperty(P)&&(i=l[P],i!==void 0&&T1(e,n,P,i,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(i=l[S],i!=null&&Ze(e,n,S,i,l,null))}function $6(e,n,l,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,x=null,S=null,L=null,$=null,P=null;for(Y in l){var G=l[Y];if(l.hasOwnProperty(Y)&&G!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":L=G;default:i.hasOwnProperty(Y)||Ze(e,n,Y,null,i,G)}}for(var Z in i){var Y=i[Z];if(G=l[Z],i.hasOwnProperty(Z)&&(Y!=null||G!=null))switch(Z){case"type":p=Y;break;case"name":f=Y;break;case"checked":$=Y;break;case"defaultChecked":P=Y;break;case"value":x=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,n));break;default:Y!==G&&Ze(e,n,Z,Y,i,G)}}Bs(e,x,S,L,$,P,p,f);return;case"select":Y=x=S=Z=null;for(p in l)if(L=l[p],l.hasOwnProperty(p)&&L!=null)switch(p){case"value":break;case"multiple":Y=L;default:i.hasOwnProperty(p)||Ze(e,n,p,null,i,L)}for(f in i)if(p=i[f],L=l[f],i.hasOwnProperty(f)&&(p!=null||L!=null))switch(f){case"value":Z=p;break;case"defaultValue":S=p;break;case"multiple":x=p;default:p!==L&&Ze(e,n,f,p,i,L)}n=S,l=x,i=Y,Z!=null?wa(e,!!l,Z,!1):!!i!=!!l&&(n!=null?wa(e,!!l,n,!0):wa(e,!!l,l?[]:"",!1));return;case"textarea":Y=Z=null;for(S in l)if(f=l[S],l.hasOwnProperty(S)&&f!=null&&!i.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ze(e,n,S,null,i,f)}for(x in i)if(f=i[x],p=l[x],i.hasOwnProperty(x)&&(f!=null||p!=null))switch(x){case"value":Z=f;break;case"defaultValue":Y=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==p&&Ze(e,n,x,f,i,p)}xd(e,Z,Y);return;case"option":for(var re in l)if(Z=l[re],l.hasOwnProperty(re)&&Z!=null&&!i.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Ze(e,n,re,null,i,Z)}for(L in i)if(Z=i[L],Y=l[L],i.hasOwnProperty(L)&&Z!==Y&&(Z!=null||Y!=null))switch(L){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Ze(e,n,L,Z,i,Y)}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 l)Z=l[me],l.hasOwnProperty(me)&&Z!=null&&!i.hasOwnProperty(me)&&Ze(e,n,me,null,i,Z);for($ in i)if(Z=i[$],Y=l[$],i.hasOwnProperty($)&&Z!==Y&&(Z!=null||Y!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(137,n));break;default:Ze(e,n,$,Z,i,Y)}return;default:if(Zs(n)){for(var Ue in l)Z=l[Ue],l.hasOwnProperty(Ue)&&Z!==void 0&&!i.hasOwnProperty(Ue)&&T1(e,n,Ue,void 0,i,Z);for(P in i)Z=i[P],Y=l[P],!i.hasOwnProperty(P)||Z===Y||Z===void 0&&Y===void 0||T1(e,n,P,Z,i,Y);return}}for(var V in l)Z=l[V],l.hasOwnProperty(V)&&Z!=null&&!i.hasOwnProperty(V)&&Ze(e,n,V,null,i,Z);for(G in i)Z=i[G],Y=l[G],!i.hasOwnProperty(G)||Z===Y||Z==null&&Y==null||Ze(e,n,G,Z,i,Y)}function w5(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z6(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var f=l[i],p=f.transferSize,x=f.initiatorType,S=f.duration;if(p&&S&&w5(x)){for(x=0,S=f.responseEnd,i+=1;i<l.length;i++){var L=l[i],$=L.startTime;if($>S)break;var P=L.transferSize,G=L.initiatorType;P&&w5(G)&&(L=L.responseEnd,x+=P*(L<S?1:(S-$)/(L-$)))}if(--i,n+=8*(p+x)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var R1=null,_1=null;function Wi(e){return e.nodeType===9?e:e.ownerDocument}function S5(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j5(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function N1(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var L1=null;function U6(){var e=window.event;return e&&e.type==="popstate"?e===L1?!1:(L1=e,!0):(L1=null,!1)}var M5=typeof setTimeout=="function"?setTimeout:void 0,Y6=typeof clearTimeout=="function"?clearTimeout:void 0,E5=typeof Promise=="function"?Promise:void 0,X6=typeof queueMicrotask=="function"?queueMicrotask:typeof E5<"u"?function(e){return E5.resolve(null).then(e).catch(P6)}:M5;function P6(e){setTimeout(function(){throw e})}function wl(e){return e==="head"}function T5(e,n){var l=n,i=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(f),eo(n);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")dr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,dr(l);for(var p=l.firstChild;p;){var x=p.nextSibling,S=p.nodeName;p[No]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=x}}else l==="body"&&dr(e.ownerDocument.body);l=f}while(l);eo(n)}function R5(e,n){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function O1(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":O1(l),ks(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function q6(e,n,l,i){for(;e.nodeType===1;){var f=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[No])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function G6(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=cn(e.nextSibling),e===null))return null;return e}function _5(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function A1(e){return e.data==="$?"||e.data==="$~"}function z1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Q6(e,n){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||l.readyState!=="loading")n();else{var i=function(){n(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function cn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var H1=null;function N5(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return cn(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function L5(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return e;n--}else l!=="/$"&&l!=="/&"||n++}e=e.previousSibling}return null}function O5(e,n,l){switch(n=Wi(l),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function dr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ks(e)}var sn=new Map,A5=new Set;function Ii(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Fn=D.d;D.d={f:K6,r:F6,D:J6,C:W6,L:I6,m:eg,X:ng,S:tg,M:lg};function K6(){var e=Fn.f(),n=Xi();return e||n}function F6(e){var n=ya(e);n!==null&&n.tag===5&&n.type==="form"?F9(n):Fn.r(e)}var Ja=typeof document>"u"?null:document;function z5(e,n,l){var i=Ja;if(i&&typeof n=="string"&&n){var f=en(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),A5.has(f)||(A5.add(f),e={rel:e,crossOrigin:l,href:n},i.querySelector(f)===null&&(n=i.createElement("link"),wt(n,"link",e),gt(n),i.head.appendChild(n)))}}function J6(e){Fn.D(e),z5("dns-prefetch",e,null)}function W6(e,n){Fn.C(e,n),z5("preconnect",e,n)}function I6(e,n,l){Fn.L(e,n,l);var i=Ja;if(i&&e&&n){var f='link[rel="preload"][as="'+en(n)+'"]';n==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+en(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+en(l.imageSizes)+'"]')):f+='[href="'+en(e)+'"]';var p=f;switch(n){case"style":p=Wa(e);break;case"script":p=Ia(e)}sn.has(p)||(e=b({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),sn.set(p,e),i.querySelector(f)!==null||n==="style"&&i.querySelector(pr(p))||n==="script"&&i.querySelector(hr(p))||(n=i.createElement("link"),wt(n,"link",e),gt(n),i.head.appendChild(n)))}}function eg(e,n){Fn.m(e,n);var l=Ja;if(l&&e){var i=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+en(i)+'"][href="'+en(e)+'"]',p=f;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Ia(e)}if(!sn.has(p)&&(e=b({rel:"modulepreload",href:e},n),sn.set(p,e),l.querySelector(f)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(hr(p)))return}i=l.createElement("link"),wt(i,"link",e),gt(i),l.head.appendChild(i)}}}function tg(e,n,l){Fn.S(e,n,l);var i=Ja;if(i&&e){var f=ba(i).hoistableStyles,p=Wa(e);n=n||"default";var x=f.get(p);if(!x){var S={loading:0,preload:null};if(x=i.querySelector(pr(p)))S.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},l),(l=sn.get(p))&&V1(e,l);var L=x=i.createElement("link");gt(L),wt(L,"link",e),L._p=new Promise(function($,P){L.onload=$,L.onerror=P}),L.addEventListener("load",function(){S.loading|=1}),L.addEventListener("error",function(){S.loading|=2}),S.loading|=4,ec(x,n,i)}x={type:"stylesheet",instance:x,count:1,state:S},f.set(p,x)}}}function ng(e,n){Fn.X(e,n);var l=Ja;if(l&&e){var i=ba(l).hoistableScripts,f=Ia(e),p=i.get(f);p||(p=l.querySelector(hr(f)),p||(e=b({src:e,async:!0},n),(n=sn.get(f))&&k1(e,n),p=l.createElement("script"),gt(p),wt(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},i.set(f,p))}}function lg(e,n){Fn.M(e,n);var l=Ja;if(l&&e){var i=ba(l).hoistableScripts,f=Ia(e),p=i.get(f);p||(p=l.querySelector(hr(f)),p||(e=b({src:e,async:!0,type:"module"},n),(n=sn.get(f))&&k1(e,n),p=l.createElement("script"),gt(p),wt(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},i.set(f,p))}}function H5(e,n,l,i){var f=(f=I.current)?Ii(f):null;if(!f)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=Wa(l.href),l=ba(f).hoistableStyles,i=l.get(n),i||(i={type:"style",instance:null,count:0,state:null},l.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Wa(l.href);var p=ba(f).hoistableStyles,x=p.get(e);if(x||(f=f.ownerDocument||f,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,x),(p=f.querySelector(pr(e)))&&!p._p&&(x.instance=p,x.state.loading=5),sn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},sn.set(e,l),p||ag(f,e,l,x.state))),n&&i===null)throw Error(r(528,""));return x}if(n&&i!==null)throw Error(r(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ia(l),l=ba(f).hoistableScripts,i=l.get(n),i||(i={type:"script",instance:null,count:0,state:null},l.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Wa(e){return'href="'+en(e)+'"'}function pr(e){return'link[rel="stylesheet"]['+e+"]"}function V5(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function ag(e,n,l,i){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?i.loading=1:(n=e.createElement("link"),i.preload=n,n.addEventListener("load",function(){return i.loading|=1}),n.addEventListener("error",function(){return i.loading|=2}),wt(n,"link",l),gt(n),e.head.appendChild(n))}function Ia(e){return'[src="'+en(e)+'"]'}function hr(e){return"script[async]"+e}function k5(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+en(l.href)+'"]');if(i)return n.instance=i,gt(i),i;var f=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),gt(i),wt(i,"style",f),ec(i,l.precedence,e),n.instance=i;case"stylesheet":f=Wa(l.href);var p=e.querySelector(pr(f));if(p)return n.state.loading|=4,n.instance=p,gt(p),p;i=V5(l),(f=sn.get(f))&&V1(i,f),p=(e.ownerDocument||e).createElement("link"),gt(p);var x=p;return x._p=new Promise(function(S,L){x.onload=S,x.onerror=L}),wt(p,"link",i),n.state.loading|=4,ec(p,l.precedence,e),n.instance=p;case"script":return p=Ia(l.src),(f=e.querySelector(hr(p)))?(n.instance=f,gt(f),f):(i=l,(f=sn.get(p))&&(i=b({},l),k1(i,f)),e=e.ownerDocument||e,f=e.createElement("script"),gt(f),wt(f,"link",i),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(i=n.instance,n.state.loading|=4,ec(i,l.precedence,e));return n.instance}function ec(e,n,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=i.length?i[i.length-1]:null,p=f,x=0;x<i.length;x++){var S=i[x];if(S.dataset.precedence===n)p=S;else if(p!==f)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function V1(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function k1(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var tc=null;function D5(e,n,l){if(tc===null){var i=new Map,f=tc=new Map;f.set(l,i)}else f=tc,i=f.get(l),i||(i=new Map,f.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),f=0;f<l.length;f++){var p=l[f];if(!(p[No]||p[xt]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var x=p.getAttribute(n)||"";x=e+x;var S=i.get(x);S?S.push(p):i.set(x,[p])}}return i}function B5(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function og(e,n,l){if(l===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function $5(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function rg(e,n,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=Wa(i.href),p=n.querySelector(pr(f));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=nc.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=p,gt(p);return}p=n.ownerDocument||n,i=V5(i),(f=sn.get(f))&&V1(i,f),p=p.createElement("link"),gt(p);var x=p;x._p=new Promise(function(S,L){x.onload=S,x.onerror=L}),wt(p,"link",i),l.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=nc.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var D1=0;function ig(e,n){return e.stylesheets&&e.count===0&&ac(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&D1===0&&(D1=62500*Z6());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>D1?50:800)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(f)}}:null}function nc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ac(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lc=null;function ac(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lc=new Map,n.forEach(cg,e),lc=null,nc.call(e))}function cg(e,n){if(!(n.state.loading&4)){var l=lc.get(e);if(l)var i=l.get(null);else{l=new Map,lc.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var x=f[p];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),i=x)}i&&l.set(null,i)}f=n.instance,x=f.getAttribute("data-precedence"),p=l.get(x)||i,p===i&&l.set(null,f),l.set(x,f),this.count++,i=nc.bind(this),f.addEventListener("load",i),f.addEventListener("error",i),p?p.parentNode.insertBefore(f,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var gr={$$typeof:N,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function sg(e,n,l,i,f,p,x,S,L){this.tag=1,this.containerInfo=e,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=As(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=As(0),this.hiddenUpdates=As(null),this.identifierPrefix=i,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function Z5(e,n,l,i,f,p,x,S,L,$,P,G){return e=new sg(e,n,l,x,L,$,P,G,S),n=1,p===!0&&(n|=24),p=Yt(3,null,null,n),e.current=p,p.stateNode=e,n=vu(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:i,isDehydrated:l,cache:n},Cu(p),e}function U5(e){return e?(e=Na,e):Na}function Y5(e,n,l,i,f,p){f=U5(f),i.context===null?i.context=f:i.pendingContext=f,i=fl(n),i.payload={element:l},p=p===void 0?null:p,p!==null&&(i.callback=p),l=dl(e,i,n),l!==null&&(Vt(l,e,n),Go(l,e,n))}function X5(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function B1(e,n){X5(e,n),(e=e.alternate)&&X5(e,n)}function P5(e){if(e.tag===13||e.tag===31){var n=Pl(e,67108864);n!==null&&Vt(n,e,67108864),B1(e,67108864)}}function q5(e){if(e.tag===13||e.tag===31){var n=Qt();n=zs(n);var l=Pl(e,n);l!==null&&Vt(l,e,n),B1(e,n)}}var oc=!0;function ug(e,n,l,i){var f=H.T;H.T=null;var p=D.p;try{D.p=2,$1(e,n,l,i)}finally{D.p=p,H.T=f}}function fg(e,n,l,i){var f=H.T;H.T=null;var p=D.p;try{D.p=8,$1(e,n,l,i)}finally{D.p=p,H.T=f}}function $1(e,n,l,i){if(oc){var f=Z1(i);if(f===null)E1(e,n,i,rc,l),Q5(e,i);else if(pg(f,e,n,l,i))i.stopPropagation();else if(Q5(e,i),n&4&&-1<dg.indexOf(e)){for(;f!==null;){var p=ya(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var x=$l(p.pendingLanes);if(x!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var L=1<<31-Zt(x);S.entanglements[1]|=L,x&=~L}wn(p),(ze&6)===0&&(Ui=ut()+500,sr(0))}}break;case 31:case 13:S=Pl(p,2),S!==null&&Vt(S,p,2),Xi(),B1(p,2)}if(p=Z1(i),p===null&&E1(e,n,i,rc,l),p===f)break;f=p}f!==null&&i.stopPropagation()}else E1(e,n,i,null,l)}}function Z1(e){return e=Ys(e),U1(e)}var rc=null;function U1(e){if(rc=null,e=xa(e),e!==null){var n=s(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=d(n),e!==null)return e;e=null}else if(l===31){if(e=h(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return rc=e,null}function G5(e){switch(e){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(Eo()){case td:return 2;case nd:return 8;case Kr:case W7:return 32;case ld:return 268435456;default:return 32}default:return 32}}var Y1=!1,Sl=null,jl=null,Ml=null,mr=new Map,vr=new Map,El=[],dg="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 Q5(e,n){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":mr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":vr.delete(n.pointerId)}}function xr(e,n,l,i,f,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:l,eventSystemFlags:i,nativeEvent:p,targetContainers:[f]},n!==null&&(n=ya(n),n!==null&&P5(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function pg(e,n,l,i,f){switch(n){case"focusin":return Sl=xr(Sl,e,n,l,i,f),!0;case"dragenter":return jl=xr(jl,e,n,l,i,f),!0;case"mouseover":return Ml=xr(Ml,e,n,l,i,f),!0;case"pointerover":var p=f.pointerId;return mr.set(p,xr(mr.get(p)||null,e,n,l,i,f)),!0;case"gotpointercapture":return p=f.pointerId,vr.set(p,xr(vr.get(p)||null,e,n,l,i,f)),!0}return!1}function K5(e){var n=xa(e.target);if(n!==null){var l=s(n);if(l!==null){if(n=l.tag,n===13){if(n=d(l),n!==null){e.blockedOn=n,sd(e.priority,function(){q5(l)});return}}else if(n===31){if(n=h(l),n!==null){e.blockedOn=n,sd(e.priority,function(){q5(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ic(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Z1(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Us=i,l.target.dispatchEvent(i),Us=null}else return n=ya(l),n!==null&&P5(n),e.blockedOn=l,!1;n.shift()}return!0}function F5(e,n,l){ic(e)&&l.delete(n)}function hg(){Y1=!1,Sl!==null&&ic(Sl)&&(Sl=null),jl!==null&&ic(jl)&&(jl=null),Ml!==null&&ic(Ml)&&(Ml=null),mr.forEach(F5),vr.forEach(F5)}function cc(e,n){e.blockedOn===n&&(e.blockedOn=null,Y1||(Y1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hg)))}var sc=null;function J5(e){sc!==e&&(sc=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){sc===e&&(sc=null);for(var n=0;n<e.length;n+=3){var l=e[n],i=e[n+1],f=e[n+2];if(typeof i!="function"){if(U1(i||l)===null)continue;break}var p=ya(l);p!==null&&(e.splice(n,3),n-=3,Zu(p,{pending:!0,data:f,method:l.method,action:i},i,f))}}))}function eo(e){function n(L){return cc(L,e)}Sl!==null&&cc(Sl,e),jl!==null&&cc(jl,e),Ml!==null&&cc(Ml,e),mr.forEach(n),vr.forEach(n);for(var l=0;l<El.length;l++){var i=El[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<El.length&&(l=El[0],l.blockedOn===null);)K5(l),l.blockedOn===null&&El.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var f=l[i],p=l[i+1],x=f[Nt]||null;if(typeof p=="function")x||J5(l);else if(x){var S=null;if(p&&p.hasAttribute("formAction")){if(f=p,x=p[Nt]||null)S=x.formAction;else if(U1(f)!==null)continue}else S=x.action;typeof S=="function"?l[i+1]=S:(l.splice(i,3),i-=3),J5(l)}}}function W5(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(x){return f=x})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function X1(e){this._internalRoot=e}uc.prototype.render=X1.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var l=n.current,i=Qt();Y5(l,i,e,n,null,null)},uc.prototype.unmount=X1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Y5(e.current,2,null,e,null,null),Xi(),n[va]=null}};function uc(e){this._internalRoot=e}uc.prototype.unstable_scheduleHydration=function(e){if(e){var n=cd();e={blockedOn:null,target:e,priority:n};for(var l=0;l<El.length&&n!==0&&n<El[l].priority;l++);El.splice(l,0,e),l===0&&K5(e)}};var I5=a.version;if(I5!=="19.2.4")throw Error(r(527,I5,"19.2.4"));D.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var gg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{To=fc.inject(gg),$t=fc}catch{}}return br.createRoot=function(e,n){if(!c(e))throw Error(r(299));var l=!1,i="",f=r2,p=i2,x=c2;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=Z5(e,1,!1,null,null,l,i,null,f,p,x,W5),e[va]=n.current,M1(e),new X1(n)},br.hydrateRoot=function(e,n,l){if(!c(e))throw Error(r(299));var i=!1,f="",p=r2,x=i2,S=c2,L=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(L=l.formState)),n=Z5(e,1,!0,n,l??null,i,f,L,p,x,S,W5),n.context=U5(null),l=n.current,i=Qt(),i=zs(i),f=fl(i),f.callback=null,dl(l,f,i),l=i,n.current.lanes=l,_o(n,l),wn(n),e[va]=n.current,M1(e),new uc(n)},br.version="19.2.4",br}var s3;function Mg(){if(s3)return q1.exports;s3=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),q1.exports=jg(),q1.exports}var Eg=Mg(),g=yf();const Be=Ap(g),Hp=vg({__proto__:null,default:Be},[g]);function le(t,a){if(t==null)return{};var o={},r=Object.keys(t),c,s;for(s=0;s<r.length;s++)c=r[s],!(a.indexOf(c)>=0)&&(o[c]=t[c]);return o}var Tg=["color"],Vp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Tg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M9 3C9 2.44772 8.55229 2 8 2H7C6.44772 2 6 2.44772 6 3L6 14H1.5C1.22386 14 1 14.2239 1 14.5C1 14.7761 1.22386 15 1.5 15L6 15H9H13.5C13.7761 15 14 14.7761 14 14.5C14 14.2239 13.7761 14 13.5 14H9V3Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Rg=["color"],kp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Rg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M1.99988 6C1.44759 6 0.999877 6.44772 0.999877 7L0.999877 8C0.999877 8.55228 1.44759 9 1.99988 9L6.99988 9L6.99988 13.5C6.99988 13.7761 7.22374 14 7.49988 14C7.77602 14 7.99988 13.7761 7.99988 13.5L7.99988 9L12.9999 9C13.5522 9 13.9999 8.55228 13.9999 8L13.9999 7C13.9999 6.44772 13.5522 6 12.9999 6L7.99988 6L7.99988 1.5C7.99988 1.22386 7.77602 1 7.49988 1C7.22373 1 6.99988 1.22386 6.99988 1.5L6.99988 6L1.99988 6Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_g=["color"],Dp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,_g);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M6.99988 1C6.44759 1 5.99988 1.44772 5.99988 2V7H1.49988C1.22374 7 0.999878 7.22386 0.999878 7.5C0.999878 7.77614 1.22374 8 1.49988 8H5.99988V13C5.99988 13.5523 6.44759 14 6.99988 14H7.99988C8.55216 14 8.99988 13.5523 8.99988 13V8H13.4999C13.776 8 13.9999 7.77614 13.9999 7.5C13.9999 7.22386 13.776 7 13.4999 7H8.99988V2C8.99988 1.44772 8.55216 1 7.99988 1L6.99988 1Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ng=["color"],Bp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Ng);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M0.499995 0.999995C0.223855 0.999995 -5.58458e-07 1.22385 -5.46388e-07 1.49999L-2.18554e-08 13.4999C-9.78492e-09 13.776 0.223855 13.9999 0.499995 13.9999C0.776136 13.9999 0.999991 13.776 0.999991 13.4999L0.999991 8.99993L12 8.99993C12.5523 8.99993 13 8.55222 13 7.99993L13 6.99994C13 6.44766 12.5523 5.99995 12 5.99995L0.999991 5.99995L0.999991 1.49999C0.999991 1.22385 0.776135 0.999995 0.499995 0.999995Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Lg=["color"],$p=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Lg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M14.4999 1C14.2237 1 13.9999 1.22386 13.9999 1.5L13.9999 6L2.99988 6C2.44759 6 1.99988 6.44772 1.99988 7L1.99988 8C1.99988 8.55228 2.44759 9 2.99988 9L13.9999 9L13.9999 13.5C13.9999 13.7761 14.2237 14 14.4999 14C14.776 14 14.9999 13.7761 14.9999 13.5L14.9999 9L14.9999 6L14.9999 1.5C14.9999 1.22386 14.776 1 14.4999 1Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Og=["color"],Zp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Og);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M1.5 0C1.22386 0 1 0.223858 1 0.5C1 0.776142 1.22386 1 1.5 1H6V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V1H13.5C13.7761 1 14 0.776142 14 0.5C14 0.223858 13.7761 0 13.5 0H9H6H1.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ag=["color"],zg=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Ag);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Hg=["color"],Vg=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Hg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),kg=["color"],ro=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,kg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M1 3H14V4H1V3ZM1 6H14V8H1V6ZM14 10.25H1V12.75H14V10.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Dg=["color"],D0=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Dg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M12.5 2H2.5C2.22386 2 2 2.22386 2 2.5V12.5C2 12.7761 2.22386 13 2.5 13H12.5C12.7761 13 13 12.7761 13 12.5V2.5C13 2.22386 12.7761 2 12.5 2ZM2.5 1C1.67157 1 1 1.67157 1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Bg=["color"],$g=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Bg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M1.99998 0.999976C1.44769 0.999976 0.999976 1.44769 0.999976 1.99998V13C0.999976 13.5523 1.44769 14 1.99998 14H13C13.5523 14 14 13.5523 14 13V1.99998C14 1.44769 13.5523 0.999976 13 0.999976H1.99998ZM1.99998 1.99998L13 1.99998V13H1.99998V1.99998ZM4.49996 3.99996C4.22382 3.99996 3.99996 4.22382 3.99996 4.49996V10.5C3.99996 10.7761 4.22382 11 4.49996 11H10.5C10.7761 11 11 10.7761 11 10.5V4.49996C11 4.22382 10.7761 3.99996 10.5 3.99996H4.49996ZM4.99996 9.99996V4.99996H9.99996V9.99996H4.99996Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Zg=["color"],ia=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Zg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ug=["color"],Dt=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Ug);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Yg=["color"],_n=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Yg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Xg=["color"],Pg=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Xg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M9.96424 2.68571C10.0668 2.42931 9.94209 2.13833 9.6857 2.03577C9.4293 1.93322 9.13832 2.05792 9.03576 2.31432L5.03576 12.3143C4.9332 12.5707 5.05791 12.8617 5.3143 12.9642C5.5707 13.0668 5.86168 12.9421 5.96424 12.6857L9.96424 2.68571ZM3.85355 5.14646C4.04882 5.34172 4.04882 5.6583 3.85355 5.85356L2.20711 7.50001L3.85355 9.14646C4.04882 9.34172 4.04882 9.6583 3.85355 9.85356C3.65829 10.0488 3.34171 10.0488 3.14645 9.85356L1.14645 7.85356C0.951184 7.6583 0.951184 7.34172 1.14645 7.14646L3.14645 5.14646C3.34171 4.9512 3.65829 4.9512 3.85355 5.14646ZM11.1464 5.14646C11.3417 4.9512 11.6583 4.9512 11.8536 5.14646L13.8536 7.14646C14.0488 7.34172 14.0488 7.6583 13.8536 7.85356L11.8536 9.85356C11.6583 10.0488 11.3417 10.0488 11.1464 9.85356C10.9512 9.6583 10.9512 9.34172 11.1464 9.14646L12.7929 7.50001L11.1464 5.85356C10.9512 5.6583 10.9512 5.34172 11.1464 5.14646Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qg=["color"],Cr=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,qg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M0.877075 7.49985C0.877075 3.84216 3.84222 0.877014 7.49991 0.877014C11.1576 0.877014 14.1227 3.84216 14.1227 7.49985C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49985ZM3.78135 3.21565C4.68298 2.43239 5.83429 1.92904 7.09998 1.84089V6.53429L3.78135 3.21565ZM3.21567 3.78134C2.43242 4.68298 1.92909 5.83428 1.84095 7.09997H6.5343L3.21567 3.78134ZM6.5343 7.89997H1.84097C1.92916 9.16562 2.43253 10.3169 3.21579 11.2185L6.5343 7.89997ZM3.78149 11.7842C4.6831 12.5673 5.83435 13.0707 7.09998 13.1588V8.46566L3.78149 11.7842ZM7.89998 8.46566V13.1588C9.16559 13.0706 10.3168 12.5673 11.2184 11.7841L7.89998 8.46566ZM11.7841 11.2184C12.5673 10.3168 13.0707 9.16558 13.1588 7.89997H8.46567L11.7841 11.2184ZM8.46567 7.09997H13.1589C13.0707 5.83432 12.5674 4.68305 11.7842 3.78143L8.46567 7.09997ZM11.2185 3.21573C10.3169 2.43246 9.16565 1.92909 7.89998 1.8409V6.53429L11.2185 3.21573Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Gg=["color"],u3=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Gg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M8.00012 1.5C8.00012 1.22386 7.77626 1 7.50012 1C7.22398 1 7.00012 1.22386 7.00012 1.5V13.5C7.00012 13.7761 7.22398 14 7.50012 14C7.77626 14 8.00012 13.7761 8.00012 13.5V1.5ZM3.31812 5.818C3.49386 5.64227 3.49386 5.35734 3.31812 5.18161C3.14239 5.00587 2.85746 5.00587 2.68173 5.18161L0.681729 7.18161C0.505993 7.35734 0.505993 7.64227 0.681729 7.818L2.68173 9.818C2.85746 9.99374 3.14239 9.99374 3.31812 9.818C3.49386 9.64227 3.49386 9.35734 3.31812 9.18161L2.08632 7.9498H5.50017C5.7487 7.9498 5.95017 7.74833 5.95017 7.4998C5.95017 7.25128 5.7487 7.0498 5.50017 7.0498H2.08632L3.31812 5.818ZM12.3181 5.18161C12.1424 5.00587 11.8575 5.00587 11.6817 5.18161C11.506 5.35734 11.506 5.64227 11.6817 5.818L12.9135 7.0498H9.50017C9.25164 7.0498 9.05017 7.25128 9.05017 7.4998C9.05017 7.74833 9.25164 7.9498 9.50017 7.9498H12.9135L11.6817 9.18161C11.506 9.35734 11.506 9.64227 11.6817 9.818C11.8575 9.99374 12.1424 9.99374 12.3181 9.818L14.3181 7.818C14.4939 7.64227 14.4939 7.35734 14.3181 7.18161L12.3181 5.18161Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Qg=["color"],Up=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Qg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2.14998 14V1H0.849976V14H2.14998ZM6.14998 14V1H4.84998V14H6.14998ZM10.15 1V14H8.84998V1H10.15ZM14.15 14V1H12.85V14H14.15Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Kg=["color"],Lr=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Kg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M4.67129 3.14634C4.47603 3.34161 4.47603 3.65819 4.67129 3.85345L7.14616 6.32833C7.34142 6.52359 7.65801 6.52359 7.85327 6.32833L10.3281 3.85345C10.5234 3.65819 10.5234 3.34161 10.3281 3.14634L7.85327 0.671471C7.65801 0.476209 7.34142 0.476209 7.14616 0.671471L4.67129 3.14634ZM7.49971 5.26766L5.73195 3.4999L7.49971 1.73213L9.26748 3.4999L7.49971 5.26766ZM8.67129 7.14634C8.47603 7.34161 8.47603 7.65819 8.67129 7.85345L11.1462 10.3283C11.3414 10.5236 11.658 10.5236 11.8533 10.3283L14.3281 7.85345C14.5234 7.65819 14.5234 7.34161 14.3281 7.14634L11.8533 4.67147C11.658 4.47621 11.3414 4.47621 11.1462 4.67147L8.67129 7.14634ZM11.4997 9.26766L9.73195 7.4999L11.4997 5.73213L13.2675 7.4999L11.4997 9.26766ZM4.67129 11.8535C4.47603 11.6582 4.47603 11.3416 4.67129 11.1463L7.14616 8.67147C7.34142 8.47621 7.65801 8.47621 7.85327 8.67147L10.3281 11.1463C10.5234 11.3416 10.5234 11.6582 10.3281 11.8535L7.85327 14.3283C7.65801 14.5236 7.34142 14.5236 7.14616 14.3283L4.67129 11.8535ZM5.73195 11.4999L7.49971 13.2677L9.26748 11.4999L7.49971 9.73213L5.73195 11.4999ZM0.671288 7.14649C0.476026 7.34175 0.476026 7.65834 0.671288 7.8536L3.14616 10.3285C3.34142 10.5237 3.65801 10.5237 3.85327 10.3285L6.32814 7.8536C6.5234 7.65834 6.5234 7.34175 6.32814 7.14649L3.85327 4.67162C3.65801 4.47636 3.34142 4.47636 3.14616 4.67162L0.671288 7.14649ZM3.49972 9.26781L1.73195 7.50005L3.49972 5.73228L5.26748 7.50005L3.49972 9.26781Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Fg=["color"],Jg=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Fg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M9.87737 12H9.9H11.5C11.7761 12 12 11.7761 12 11.5C12 11.2239 11.7761 11 11.5 11H9.9C8.77164 11 7.95545 10.9996 7.31352 10.9472C6.67744 10.8952 6.25662 10.7946 5.91103 10.6185C5.25247 10.283 4.71703 9.74753 4.38148 9.08897C4.20539 8.74338 4.10481 8.32256 4.05284 7.68648C4.00039 7.04455 4 6.22836 4 5.1V3.5C4 3.22386 3.77614 3 3.5 3C3.22386 3 3 3.22386 3 3.5V5.1V5.12263C3 6.22359 3 7.08052 3.05616 7.76791C3.11318 8.46584 3.23058 9.0329 3.49047 9.54296C3.9219 10.3897 4.61031 11.0781 5.45704 11.5095C5.9671 11.7694 6.53416 11.8868 7.23209 11.9438C7.91948 12 8.77641 12 9.87737 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Wg=["color"],Ig=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Wg);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5.12263 12H5.1H3.5C3.22386 12 3 11.7761 3 11.5C3 11.2239 3.22386 11 3.5 11H5.1C6.22836 11 7.04455 10.9996 7.68648 10.9472C8.32256 10.8952 8.74338 10.7946 9.08897 10.6185C9.74753 10.283 10.283 9.74753 10.6185 9.08897C10.7946 8.74338 10.8952 8.32256 10.9472 7.68648C10.9996 7.04455 11 6.22836 11 5.1V3.5C11 3.22386 11.2239 3 11.5 3C11.7761 3 12 3.22386 12 3.5V5.1V5.12263C12 6.22359 12 7.08052 11.9438 7.76791C11.8868 8.46584 11.7694 9.0329 11.5095 9.54296C11.0781 10.3897 10.3897 11.0781 9.54296 11.5095C9.0329 11.7694 8.46584 11.8868 7.76791 11.9438C7.08052 12 6.22359 12 5.12263 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),em=["color"],tm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,em);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M9.87737 3H9.9H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H9.9C8.77164 4 7.95545 4.00039 7.31352 4.05284C6.67744 4.10481 6.25662 4.20539 5.91103 4.38148C5.25247 4.71703 4.71703 5.25247 4.38148 5.91103C4.20539 6.25662 4.10481 6.67744 4.05284 7.31352C4.00039 7.95545 4 8.77164 4 9.9V11.5C4 11.7761 3.77614 12 3.5 12C3.22386 12 3 11.7761 3 11.5V9.9V9.87737C3 8.77641 3 7.91948 3.05616 7.23209C3.11318 6.53416 3.23058 5.9671 3.49047 5.45704C3.9219 4.61031 4.61031 3.9219 5.45704 3.49047C5.9671 3.23058 6.53416 3.11318 7.23209 3.05616C7.91948 3 8.77641 3 9.87737 3Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),nm=["color"],lm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,nm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5.12263 3H5.1H3.5C3.22386 3 3 3.22386 3 3.5C3 3.77614 3.22386 4 3.5 4H5.1C6.22836 4 7.04455 4.00039 7.68648 4.05284C8.32256 4.10481 8.74338 4.20539 9.08897 4.38148C9.74753 4.71703 10.283 5.25247 10.6185 5.91103C10.7946 6.25662 10.8952 6.67744 10.9472 7.31352C10.9996 7.95545 11 8.77164 11 9.9V11.5C11 11.7761 11.2239 12 11.5 12C11.7761 12 12 11.7761 12 11.5V9.9V9.87737C12 8.77641 12 7.91948 11.9438 7.23209C11.8868 6.53416 11.7694 5.9671 11.5095 5.45704C11.0781 4.61031 10.3897 3.9219 9.54296 3.49047C9.0329 3.23058 8.46584 3.11318 7.76791 3.05616C7.08052 3 6.22359 3 5.12263 3Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),am=["color"],Yp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,am);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5.5 2L4.87935 2C4.47687 1.99999 4.14469 1.99999 3.87409 2.0221C3.59304 2.04506 3.33469 2.09434 3.09202 2.21799C2.7157 2.40973 2.40973 2.7157 2.21799 3.09202C2.09434 3.33469 2.04506 3.59304 2.0221 3.87409C1.99999 4.14468 1.99999 4.47686 2 4.87933V4.87935V5.5C2 5.77614 2.22386 6 2.5 6C2.77614 6 3 5.77614 3 5.5V4.9C3 4.47171 3.00039 4.18056 3.01878 3.95552C3.03669 3.73631 3.06915 3.62421 3.10899 3.54601C3.20487 3.35785 3.35785 3.20487 3.54601 3.10899C3.62421 3.06915 3.73631 3.03669 3.95552 3.01878C4.18056 3.00039 4.47171 3 4.9 3H5.5C5.77614 3 6 2.77614 6 2.5C6 2.22386 5.77614 2 5.5 2ZM13 9.5C13 9.22386 12.7761 9 12.5 9C12.2239 9 12 9.22386 12 9.5V10.1C12 10.5283 11.9996 10.8194 11.9812 11.0445C11.9633 11.2637 11.9309 11.3758 11.891 11.454C11.7951 11.6422 11.6422 11.7951 11.454 11.891C11.3758 11.9309 11.2637 11.9633 11.0445 11.9812C10.8194 11.9996 10.5283 12 10.1 12H9.5C9.22386 12 9 12.2239 9 12.5C9 12.7761 9.22386 13 9.5 13H10.1206C10.5231 13 10.8553 13 11.1259 12.9779C11.407 12.9549 11.6653 12.9057 11.908 12.782C12.2843 12.5903 12.5903 12.2843 12.782 11.908C12.9057 11.6653 12.9549 11.407 12.9779 11.1259C13 10.8553 13 10.5232 13 10.1207V10.1207V10.1207V10.1206V9.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V10.1C3 10.5283 3.00039 10.8194 3.01878 11.0445C3.03669 11.2637 3.06915 11.3758 3.10899 11.454C3.20487 11.6422 3.35785 11.7951 3.54601 11.891C3.62421 11.9309 3.73631 11.9633 3.95552 11.9812C4.18056 11.9996 4.47171 12 4.9 12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H4.87935C4.47687 13 4.14469 13 3.87409 12.9779C3.59304 12.9549 3.33469 12.9057 3.09202 12.782C2.7157 12.5903 2.40973 12.2843 2.21799 11.908C2.09434 11.6653 2.04506 11.407 2.0221 11.1259C1.99999 10.8553 1.99999 10.5231 2 10.1207V10.1206V10.1V9.5C2 9.22386 2.22386 9 2.5 9ZM10.1 3C10.5283 3 10.8194 3.00039 11.0445 3.01878C11.2637 3.03669 11.3758 3.06915 11.454 3.10899C11.6422 3.20487 11.7951 3.35785 11.891 3.54601C11.9309 3.62421 11.9633 3.73631 11.9812 3.95552C11.9996 4.18056 12 4.47171 12 4.9V5.5C12 5.77614 12.2239 6 12.5 6C12.7761 6 13 5.77614 13 5.5V4.87935V4.87934C13 4.47686 13 4.14468 12.9779 3.87409C12.9549 3.59304 12.9057 3.33469 12.782 3.09202C12.5903 2.7157 12.2843 2.40973 11.908 2.21799C11.6653 2.09434 11.407 2.04506 11.1259 2.0221C10.8553 1.99999 10.5231 1.99999 10.1206 2L10.1 2H9.5C9.22386 2 9 2.22386 9 2.5C9 2.77614 9.22386 3 9.5 3H10.1Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),om=["color"],bf=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,om);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),rm=["color"],Xp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,rm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3.29227 0.048984C3.47033 -0.032338 3.67946 -0.00228214 3.8274 0.125891L12.8587 7.95026C13.0134 8.08432 13.0708 8.29916 13.0035 8.49251C12.9362 8.68586 12.7578 8.81866 12.5533 8.82768L9.21887 8.97474L11.1504 13.2187C11.2648 13.47 11.1538 13.7664 10.9026 13.8808L8.75024 14.8613C8.499 14.9758 8.20255 14.8649 8.08802 14.6137L6.15339 10.3703L3.86279 12.7855C3.72196 12.934 3.50487 12.9817 3.31479 12.9059C3.1247 12.8301 3 12.6461 3 12.4414V0.503792C3 0.308048 3.11422 0.130306 3.29227 0.048984ZM4 1.59852V11.1877L5.93799 9.14425C6.05238 9.02363 6.21924 8.96776 6.38319 8.99516C6.54715 9.02256 6.68677 9.12965 6.75573 9.2809L8.79056 13.7441L10.0332 13.178L8.00195 8.71497C7.93313 8.56376 7.94391 8.38824 8.03072 8.24659C8.11753 8.10494 8.26903 8.01566 8.435 8.00834L11.2549 7.88397L4 1.59852Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),im=["color"],J1=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,im);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3.00014 2.73895C3.00014 2.94698 2.76087 3.06401 2.59666 2.93628L1.00386 1.69744C0.875177 1.59735 0.875177 1.40286 1.00386 1.30277L2.59666 0.063928C2.76087 -0.0637944 3.00014 0.0532293 3.00014 0.261266V1.00012H9.00009V0.261296C9.00009 0.0532591 9.23936 -0.0637646 9.40358 0.0639578L10.9964 1.3028C11.1251 1.40289 11.1251 1.59738 10.9964 1.69747L9.40358 2.93631C9.23936 3.06404 9.00009 2.94701 9.00009 2.73898V2.00012H3.00014V2.73895ZM9.50002 4.99998H2.50002C2.22388 4.99998 2.00002 5.22384 2.00002 5.49998V12.5C2.00002 12.7761 2.22388 13 2.50002 13H9.50002C9.77616 13 10 12.7761 10 12.5V5.49998C10 5.22384 9.77616 4.99998 9.50002 4.99998ZM2.50002 3.99998C1.67159 3.99998 1.00002 4.67156 1.00002 5.49998V12.5C1.00002 13.3284 1.67159 14 2.50002 14H9.50002C10.3284 14 11 13.3284 11 12.5V5.49998C11 4.67156 10.3284 3.99998 9.50002 3.99998H2.50002ZM14.7389 6.00001H14V12H14.7389C14.9469 12 15.064 12.2393 14.9362 12.4035L13.6974 13.9963C13.5973 14.125 13.4028 14.125 13.3027 13.9963L12.0639 12.4035C11.9362 12.2393 12.0532 12 12.2612 12H13V6.00001H12.2612C12.0532 6.00001 11.9361 5.76074 12.0639 5.59653L13.3027 4.00373C13.4028 3.87505 13.5973 3.87505 13.6974 4.00374L14.9362 5.59653C15.0639 5.76074 14.9469 6.00001 14.7389 6.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),cm=["color"],f3=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,cm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M14.7649 6.07596C14.9991 6.22231 15.0703 6.53079 14.9239 6.76495C14.4849 7.46743 13.9632 8.10645 13.3702 8.66305L14.5712 9.86406C14.7664 10.0593 14.7664 10.3759 14.5712 10.5712C14.3759 10.7664 14.0593 10.7664 13.8641 10.5712L12.6011 9.30817C11.805 9.90283 10.9089 10.3621 9.93375 10.651L10.383 12.3277C10.4544 12.5944 10.2961 12.8685 10.0294 12.94C9.76267 13.0115 9.4885 12.8532 9.41704 12.5865L8.95917 10.8775C8.48743 10.958 8.00036 10.9999 7.50001 10.9999C6.99965 10.9999 6.51257 10.958 6.04082 10.8775L5.58299 12.5864C5.51153 12.8532 5.23737 13.0115 4.97064 12.94C4.7039 12.8686 4.5456 12.5944 4.61706 12.3277L5.06625 10.651C4.09111 10.3621 3.19503 9.90282 2.3989 9.30815L1.1359 10.5712C0.940638 10.7664 0.624058 10.7664 0.428798 10.5712C0.233537 10.3759 0.233537 10.0593 0.428798 9.86405L1.62982 8.66303C1.03682 8.10643 0.515113 7.46742 0.0760677 6.76495C-0.0702867 6.53079 0.000898544 6.22231 0.235065 6.07596C0.469231 5.9296 0.777703 6.00079 0.924058 6.23496C1.40354 7.00213 1.989 7.68057 2.66233 8.2427C2.67315 8.25096 2.6837 8.25972 2.69397 8.26898C4.00897 9.35527 5.65537 9.99991 7.50001 9.99991C10.3078 9.99991 12.6564 8.5063 14.076 6.23495C14.2223 6.00079 14.5308 5.9296 14.7649 6.07596Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),sm=["color"],um=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,sm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),fm=["color"],dm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,fm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H9.08579C9.21839 2 9.34557 2.05268 9.43934 2.14645L11.8536 4.56066C11.9473 4.65443 12 4.78161 12 4.91421V12.5C12 12.7761 11.7761 13 11.5 13H3.5C3.22386 13 3 12.7761 3 12.5V2.5ZM3.5 1C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V4.91421C13 4.51639 12.842 4.13486 12.5607 3.85355L10.1464 1.43934C9.86514 1.15804 9.48361 1 9.08579 1H3.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5H7.5C7.77614 5 8 4.77614 8 4.5C8 4.22386 7.77614 4 7.5 4H4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H10.5C10.7761 8 11 7.77614 11 7.5C11 7.22386 10.7761 7 10.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H10.5C10.7761 11 11 10.7761 11 10.5C11 10.2239 10.7761 10 10.5 10H4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),pm=["color"],Pp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,pm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5.10505 12C4.70805 12 4.4236 11.912 4.25171 11.736C4.0839 11.5559 4 11.2715 4 10.8827V4.11733C4 3.72033 4.08595 3.43588 4.25784 3.26398C4.43383 3.08799 4.71623 3 5.10505 3C6.42741 3 8.25591 3 9.02852 3C10.1373 3 11.0539 3.98153 11.0539 5.1846C11.0539 6.08501 10.6037 6.81855 9.70327 7.23602C10.8657 7.44851 11.5176 8.62787 11.5176 9.48128C11.5176 10.5125 10.9902 12 9.27734 12C8.77742 12 6.42626 12 5.10505 12ZM8.37891 8.00341H5.8V10.631H8.37891C8.9 10.631 9.6296 10.1211 9.6296 9.29877C9.6296 8.47643 8.9 8.00341 8.37891 8.00341ZM5.8 4.36903V6.69577H8.17969C8.53906 6.69577 9.27734 6.35939 9.27734 5.50002C9.27734 4.64064 8.48047 4.36903 8.17969 4.36903H5.8Z",fill:r}))}),hm=["color"],qp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,hm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2.5 4.5C2.5 3.09886 3.59886 2 5 2H12.499C12.7752 2 13 2.22386 13 2.5C13 2.77614 12.7761 3 12.5 3H8.69244L8.40509 3.85458C8.18869 4.49752 7.89401 5.37197 7.58091 6.29794C7.50259 6.52956 7.42308 6.76453 7.34332 7H8.5C8.77614 7 9 7.22386 9 7.5C9 7.77614 8.77614 8 8.5 8H7.00407C6.56724 9.28543 6.16435 10.4613 5.95799 11.0386C5.63627 11.9386 5.20712 12.4857 4.66741 12.7778C4.16335 13.0507 3.64154 13.0503 3.28378 13.05L3.25 13.05C2.94624 13.05 2.7 12.8037 2.7 12.5C2.7 12.1962 2.94624 11.95 3.25 11.95C3.64182 11.95 3.9035 11.9405 4.14374 11.8105C4.36443 11.691 4.65532 11.4148 4.92217 10.6683C5.10695 10.1514 5.45375 9.14134 5.8422 8H4.5C4.22386 8 4 7.77614 4 7.5C4 7.22386 4.22386 7 4.5 7H6.18187C6.30127 6.64785 6.42132 6.29323 6.53887 5.94559C6.85175 5.02025 7.14627 4.14631 7.36256 3.50368L7.53192 3H5C4.15114 3 3.5 3.65114 3.5 4.5C3.5 4.77614 3.27614 5 3 5C2.72386 5 2.5 4.77614 2.5 4.5Z",fill:r}))}),gm=["color"],Lc=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,gm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2.78233 2.21707C2.70732 2.14206 2.60557 2.09991 2.49949 2.09991C2.3934 2.09991 2.29166 2.14206 2.21664 2.21707L0.216645 4.21707C0.0604351 4.37328 0.0604351 4.62655 0.216645 4.78276C0.372855 4.93897 0.626121 4.93897 0.78233 4.78276L2.09949 3.4656L2.09949 11.5342L0.78233 10.2171C0.62612 10.0609 0.372854 10.0609 0.216645 10.2171C0.0604349 10.3733 0.0604349 10.6265 0.216645 10.7828L2.21664 12.7828C2.29166 12.8578 2.3934 12.8999 2.49949 12.8999C2.60557 12.8999 2.70731 12.8578 2.78233 12.7828L4.78233 10.7828C4.93854 10.6265 4.93854 10.3733 4.78233 10.2171C4.62612 10.0609 4.37285 10.0609 4.21664 10.2171L2.89949 11.5342L2.89949 3.4656L4.21664 4.78276C4.37285 4.93897 4.62612 4.93897 4.78233 4.78276C4.93854 4.62655 4.93854 4.37328 4.78233 4.21707L2.78233 2.21707ZM10.5 2.74997C10.7107 2.74997 10.8988 2.88211 10.9703 3.08036L13.9703 11.3999C14.064 11.6597 13.9293 11.9462 13.6696 12.0399C13.4098 12.1336 13.1233 11.9989 13.0296 11.7392L12.0477 9.016H8.95228L7.97033 11.7392C7.87666 11.9989 7.59013 12.1336 7.33036 12.0399C7.07059 11.9462 6.93595 11.6597 7.02962 11.3999L10.0296 3.08036C10.1011 2.88211 10.2892 2.74997 10.5 2.74997ZM10.5 4.72396L11.7412 8.166H9.25879L10.5 4.72396Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),mm=["color"],vm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,mm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M7.49996 1.80002C4.35194 1.80002 1.79996 4.352 1.79996 7.50002C1.79996 10.648 4.35194 13.2 7.49996 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.352 10.648 1.80002 7.49996 1.80002ZM0.899963 7.50002C0.899963 3.85494 3.85488 0.900024 7.49996 0.900024C11.145 0.900024 14.1 3.85494 14.1 7.50002C14.1 11.1451 11.145 14.1 7.49996 14.1C3.85488 14.1 0.899963 11.1451 0.899963 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{d:"M13.4999 7.89998H1.49994V7.09998H13.4999V7.89998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{d:"M7.09991 13.5V1.5H7.89991V13.5H7.09991zM10.375 7.49998C10.375 5.32724 9.59364 3.17778 8.06183 1.75656L8.53793 1.24341C10.2396 2.82218 11.075 5.17273 11.075 7.49998 11.075 9.82724 10.2396 12.1778 8.53793 13.7566L8.06183 13.2434C9.59364 11.8222 10.375 9.67273 10.375 7.49998zM3.99969 7.5C3.99969 5.17611 4.80786 2.82678 6.45768 1.24719L6.94177 1.75281C5.4582 3.17323 4.69969 5.32389 4.69969 7.5 4.6997 9.67611 5.45822 11.8268 6.94179 13.2472L6.45769 13.7528C4.80788 12.1732 3.9997 9.8239 3.99969 7.5z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{d:"M7.49996 3.95801C9.66928 3.95801 11.8753 4.35915 13.3706 5.19448 13.5394 5.28875 13.5998 5.50197 13.5055 5.67073 13.4113 5.83948 13.198 5.89987 13.0293 5.8056 11.6794 5.05155 9.60799 4.65801 7.49996 4.65801 5.39192 4.65801 3.32052 5.05155 1.97064 5.8056 1.80188 5.89987 1.58866 5.83948 1.49439 5.67073 1.40013 5.50197 1.46051 5.28875 1.62927 5.19448 3.12466 4.35915 5.33063 3.95801 7.49996 3.95801zM7.49996 10.85C9.66928 10.85 11.8753 10.4488 13.3706 9.6135 13.5394 9.51924 13.5998 9.30601 13.5055 9.13726 13.4113 8.9685 13.198 8.90812 13.0293 9.00238 11.6794 9.75643 9.60799 10.15 7.49996 10.15 5.39192 10.15 3.32052 9.75643 1.97064 9.00239 1.80188 8.90812 1.58866 8.9685 1.49439 9.13726 1.40013 9.30601 1.46051 9.51924 1.62927 9.6135 3.12466 10.4488 5.33063 10.85 7.49996 10.85z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),xm=["color"],Gp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,xm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M12.5 2H8V7H13V2.5C13 2.22386 12.7761 2 12.5 2ZM13 8H8V13H12.5C12.7761 13 13 12.7761 13 12.5V8ZM7 7V2H2.5C2.22386 2 2 2.22386 2 2.5V7H7ZM2 8V12.5C2 12.7761 2.22386 13 2.5 13H7V8H2ZM2.5 1C1.67157 1 1 1.67157 1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ym=["color"],W1=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,ym);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M7.1813 1.68179C7.35704 1.50605 7.64196 1.50605 7.8177 1.68179L10.3177 4.18179C10.4934 4.35753 10.4934 4.64245 10.3177 4.81819C10.142 4.99392 9.85704 4.99392 9.6813 4.81819L7.9495 3.08638L7.9495 11.9136L9.6813 10.1818C9.85704 10.0061 10.142 10.0061 10.3177 10.1818C10.4934 10.3575 10.4934 10.6424 10.3177 10.8182L7.8177 13.3182C7.73331 13.4026 7.61885 13.45 7.4995 13.45C7.38015 13.45 7.26569 13.4026 7.1813 13.3182L4.6813 10.8182C4.50557 10.6424 4.50557 10.3575 4.6813 10.1818C4.85704 10.0061 5.14196 10.0061 5.3177 10.1818L7.0495 11.9136L7.0495 3.08638L5.3177 4.81819C5.14196 4.99392 4.85704 4.99392 4.6813 4.81819C4.50557 4.64245 4.50557 4.35753 4.6813 4.18179L7.1813 1.68179Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),bm=["color"],Cm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,bm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),wm=["color"],Er=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,wm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Sm=["color"],jm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Sm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3.68979 2.75C3.89667 2.74979 4.08232 2.87701 4.15679 3.07003L7.36662 11.39C7.46602 11.6477 7.33774 11.9371 7.0801 12.0365C6.82247 12.1359 6.53304 12.0076 6.43365 11.75L5.3825 9.02537H2.01133L0.966992 11.749C0.868128 12.0068 0.578964 12.1357 0.321126 12.0369C0.0632878 11.938 -0.0655864 11.6488 0.0332774 11.391L3.22344 3.07099C3.29751 2.87782 3.4829 2.75021 3.68979 2.75ZM3.69174 4.64284L5.05458 8.17537H2.33724L3.69174 4.64284ZM10.8989 5.20703C9.25818 5.20703 8.00915 6.68569 8.00915 8.60972C8.00915 10.6337 9.35818 12.0124 10.8989 12.0124C11.7214 12.0124 12.5744 11.6692 13.1543 11.0219V11.53C13.1543 11.7785 13.3557 11.98 13.6043 11.98C13.8528 11.98 14.0543 11.7785 14.0543 11.53V5.72C14.0543 5.47147 13.8528 5.27 13.6043 5.27C13.3557 5.27 13.1543 5.47147 13.1543 5.72V6.22317C12.6054 5.60095 11.7924 5.20703 10.8989 5.20703ZM13.1543 9.79823V7.30195C12.7639 6.58101 11.9414 6.05757 11.0868 6.05757C10.1088 6.05757 9.03503 6.96581 9.03503 8.60955C9.03503 10.1533 10.0088 11.1615 11.0868 11.1615C11.9701 11.1615 12.7719 10.4952 13.1543 9.79823Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Mm=["color"],Em=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Mm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3.69899 5.20703C2.05823 5.20703 0.809204 6.68569 0.809204 8.60972C0.809204 10.6337 2.15823 12.0124 3.69899 12.0124C4.52126 12.0124 5.37402 11.6693 5.9539 11.0223V11.53C5.9539 11.7785 6.15537 11.98 6.4039 11.98C6.65243 11.98 6.8539 11.7785 6.8539 11.53V5.72001C6.8539 5.47149 6.65243 5.27001 6.4039 5.27001C6.15537 5.27001 5.9539 5.47149 5.9539 5.72001V6.22269C5.40506 5.60075 4.59218 5.20703 3.69899 5.20703ZM5.9539 9.799V7.30117C5.56339 6.58064 4.74118 6.05757 3.8868 6.05757C2.9089 6.05757 1.83508 6.96581 1.83508 8.60955C1.83508 10.1533 2.80889 11.1615 3.8868 11.1615C4.76984 11.1615 5.57141 10.4957 5.9539 9.799ZM10.799 5.20703C9.15823 5.20703 7.9092 6.68569 7.9092 8.60972C7.9092 10.6337 9.25823 12.0124 10.799 12.0124C11.6215 12.0124 12.4744 11.6692 13.0543 11.0218V11.53C13.0543 11.7785 13.2558 11.98 13.5043 11.98C13.7529 11.98 13.9543 11.7785 13.9543 11.53V5.72C13.9543 5.47147 13.7529 5.27 13.5043 5.27C13.2558 5.27 13.0543 5.47147 13.0543 5.72V6.22318C12.5055 5.60095 11.6924 5.20703 10.799 5.20703ZM13.0543 9.79822V7.30196C12.664 6.58102 11.8415 6.05757 10.9868 6.05757C10.0089 6.05757 8.93508 6.96581 8.93508 8.60955C8.93508 10.1533 9.90889 11.1615 10.9868 11.1615C11.8702 11.1615 12.672 10.4952 13.0543 9.79822Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Tm=["color"],Qp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Tm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3.6255 2.75C3.83478 2.75 4.02192 2.88034 4.09448 3.07664L7.16985 11.3962C7.2656 11.6552 7.13324 11.9428 6.87423 12.0386C6.61522 12.1343 6.32763 12.002 6.23188 11.7429L5.22387 9.01603H2.02712L1.01911 11.7429C0.923362 12.002 0.635774 12.1343 0.376762 12.0386C0.117749 11.9428 -0.0146052 11.6552 0.0811401 11.3962L3.15651 3.07664C3.22908 2.88034 3.41621 2.75 3.6255 2.75ZM3.6255 4.69207L4.90966 8.16603H2.34133L3.6255 4.69207ZM11.3719 2.75C11.5811 2.75 11.7683 2.88034 11.8408 3.07664L14.9162 11.3962C15.012 11.6552 14.8796 11.9428 14.6206 12.0386C14.3616 12.1343 14.074 12.002 13.9782 11.7429L12.9702 9.01603H9.77348L8.76547 11.7429C8.66972 12.002 8.38213 12.1343 8.12312 12.0386C7.86411 11.9428 7.73175 11.6552 7.8275 11.3962L10.9029 3.07664C10.9754 2.88034 11.1626 2.75 11.3719 2.75ZM11.3719 4.69207L12.656 8.16603H10.0877L11.3719 4.69207Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Rm=["color"],Kp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Rm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M4.55293 0.999969C4.75295 0.999969 4.93372 1.11917 5.0125 1.30301L8.01106 8.29982C8.11984 8.55363 8.00226 8.84757 7.74844 8.95635C7.49463 9.06512 7.20069 8.94754 7.09191 8.69373L6.11613 6.41685H2.98973L2.01395 8.69373C1.90517 8.94754 1.61123 9.06512 1.35742 8.95635C1.1036 8.84757 0.986023 8.55363 1.0948 8.29982L4.09336 1.30301C4.17214 1.11917 4.35291 0.999969 4.55293 0.999969ZM4.55293 2.76929L5.75186 5.56685H3.354L4.55293 2.76929ZM11.0562 9.00214C11.2617 9.00214 11.4463 8.87633 11.5215 8.68502L14.2733 1.68299C14.3743 1.42598 14.2478 1.13575 13.9908 1.03475C13.7338 0.933747 13.4436 1.06021 13.3426 1.31722L11.0562 7.13514L8.76973 1.31722C8.66873 1.06021 8.3785 0.933747 8.1215 1.03475C7.86449 1.13575 7.73802 1.42598 7.83902 1.68299L10.5908 8.68502C10.666 8.87633 10.8506 9.00214 11.0562 9.00214ZM14.9537 12.4999C14.9537 12.606 14.9115 12.7077 14.8365 12.7828L12.8365 14.7828C12.6803 14.939 12.4271 14.939 12.2708 14.7828C12.1146 14.6265 12.1146 14.3733 12.2708 14.2171L13.588 12.8999H1.51937L2.83653 14.2171C2.99274 14.3733 2.99274 14.6265 2.83653 14.7828C2.68032 14.939 2.42705 14.939 2.27084 14.7828L0.270843 12.7828C0.195828 12.7077 0.153687 12.606 0.153687 12.4999C0.153687 12.3938 0.195828 12.2921 0.270843 12.2171L2.27084 10.2171C2.42705 10.0609 2.68032 10.0609 2.83653 10.2171C2.99274 10.3733 2.99274 10.6265 2.83653 10.7828L1.51937 12.0999L13.588 12.0999L12.2708 10.7828C12.1146 10.6265 12.1146 10.3733 12.2708 10.2171C12.4271 10.0609 12.6803 10.0609 12.8365 10.2171L14.8365 12.2171C14.9115 12.2921 14.9537 12.3938 14.9537 12.4999Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),_m=["color"],Fp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,_m);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M3.78233 2.21713C3.70732 2.14212 3.60557 2.09998 3.49949 2.09998C3.3934 2.09998 3.29166 2.14212 3.21664 2.21713L1.21664 4.21713C1.06044 4.37334 1.06044 4.62661 1.21664 4.78282C1.37285 4.93903 1.62612 4.93903 1.78233 4.78282L3.09949 3.46566L3.09949 11.5343L1.78233 10.2171C1.62612 10.0609 1.37285 10.0609 1.21664 10.2171C1.06043 10.3733 1.06043 10.6266 1.21664 10.7828L3.21664 12.7828C3.29166 12.8578 3.3934 12.9 3.49949 12.9C3.60557 12.9 3.70731 12.8578 3.78233 12.7828L5.78233 10.7828C5.93854 10.6266 5.93854 10.3733 5.78233 10.2171C5.62612 10.0609 5.37285 10.0609 5.21664 10.2171L3.89949 11.5343L3.89949 3.46566L5.21664 4.78282C5.37285 4.93903 5.62612 4.93903 5.78233 4.78282C5.93854 4.62661 5.93854 4.37334 5.78233 4.21713L3.78233 2.21713ZM8.49998 3.99997C8.22383 3.99997 7.99998 4.22382 7.99998 4.49997C7.99998 4.77611 8.22383 4.99997 8.49998 4.99997H14.5C14.7761 4.99997 15 4.77611 15 4.49997C15 4.22382 14.7761 3.99997 14.5 3.99997H8.49998ZM7.99998 7.49997C7.99998 7.22382 8.22383 6.99997 8.49998 6.99997H14.5C14.7761 6.99997 15 7.22382 15 7.49997C15 7.77611 14.7761 7.99997 14.5 7.99997H8.49998C8.22383 7.99997 7.99998 7.77611 7.99998 7.49997ZM8.49998 9.99997C8.22383 9.99997 7.99998 10.2238 7.99998 10.5C7.99998 10.7761 8.22383 11 8.49998 11H14.5C14.7761 11 15 10.7761 15 10.5C15 10.2238 14.7761 9.99997 14.5 9.99997H8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Nm=["color"],io=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Nm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M1.49988 2.00012C1.77602 2.00012 1.99988 1.77626 1.99988 1.50012C1.99988 1.22398 1.77602 1.00012 1.49988 1.00012C1.22374 1.00012 0.999878 1.22398 0.999878 1.50012C0.999878 1.77626 1.22374 2.00012 1.49988 2.00012ZM4.49988 2.00012C4.77602 2.00012 4.99988 1.77626 4.99988 1.50012C4.99988 1.22398 4.77602 1.00012 4.49988 1.00012C4.22374 1.00012 3.99988 1.22398 3.99988 1.50012C3.99988 1.77626 4.22374 2.00012 4.49988 2.00012ZM7.99988 1.50012C7.99988 1.77626 7.77602 2.00012 7.49988 2.00012C7.22374 2.00012 6.99988 1.77626 6.99988 1.50012C6.99988 1.22398 7.22374 1.00012 7.49988 1.00012C7.77602 1.00012 7.99988 1.22398 7.99988 1.50012ZM10.4999 2.00012C10.776 2.00012 10.9999 1.77626 10.9999 1.50012C10.9999 1.22398 10.776 1.00012 10.4999 1.00012C10.2237 1.00012 9.99988 1.22398 9.99988 1.50012C9.99988 1.77626 10.2237 2.00012 10.4999 2.00012ZM13.9999 1.50012C13.9999 1.77626 13.776 2.00012 13.4999 2.00012C13.2237 2.00012 12.9999 1.77626 12.9999 1.50012C12.9999 1.22398 13.2237 1.00012 13.4999 1.00012C13.776 1.00012 13.9999 1.22398 13.9999 1.50012ZM1.49988 14.0001C1.77602 14.0001 1.99988 13.7763 1.99988 13.5001C1.99988 13.224 1.77602 13.0001 1.49988 13.0001C1.22374 13.0001 0.999878 13.224 0.999878 13.5001C0.999878 13.7763 1.22374 14.0001 1.49988 14.0001ZM1.99988 10.5001C1.99988 10.7763 1.77602 11.0001 1.49988 11.0001C1.22374 11.0001 0.999878 10.7763 0.999878 10.5001C0.999878 10.224 1.22374 10.0001 1.49988 10.0001C1.77602 10.0001 1.99988 10.224 1.99988 10.5001ZM1.49988 8.00012C1.77602 8.00012 1.99988 7.77626 1.99988 7.50012C1.99988 7.22398 1.77602 7.00012 1.49988 7.00012C1.22374 7.00012 0.999878 7.22398 0.999878 7.50012C0.999878 7.77626 1.22374 8.00012 1.49988 8.00012ZM1.99988 4.50012C1.99988 4.77626 1.77602 5.00012 1.49988 5.00012C1.22374 5.00012 0.999878 4.77626 0.999878 4.50012C0.999878 4.22398 1.22374 4.00012 1.49988 4.00012C1.77602 4.00012 1.99988 4.22398 1.99988 4.50012ZM13.4999 11.0001C13.776 11.0001 13.9999 10.7763 13.9999 10.5001C13.9999 10.224 13.776 10.0001 13.4999 10.0001C13.2237 10.0001 12.9999 10.224 12.9999 10.5001C12.9999 10.7763 13.2237 11.0001 13.4999 11.0001ZM13.9999 7.50012C13.9999 7.77626 13.776 8.00012 13.4999 8.00012C13.2237 8.00012 12.9999 7.77626 12.9999 7.50012C12.9999 7.22398 13.2237 7.00012 13.4999 7.00012C13.776 7.00012 13.9999 7.22398 13.9999 7.50012ZM13.4999 5.00012C13.776 5.00012 13.9999 4.77626 13.9999 4.50012C13.9999 4.22398 13.776 4.00012 13.4999 4.00012C13.2237 4.00012 12.9999 4.22398 12.9999 4.50012C12.9999 4.77626 13.2237 5.00012 13.4999 5.00012ZM4.99988 13.5001C4.99988 13.7763 4.77602 14.0001 4.49988 14.0001C4.22374 14.0001 3.99988 13.7763 3.99988 13.5001C3.99988 13.224 4.22374 13.0001 4.49988 13.0001C4.77602 13.0001 4.99988 13.224 4.99988 13.5001ZM7.49988 14.0001C7.77602 14.0001 7.99988 13.7763 7.99988 13.5001C7.99988 13.224 7.77602 13.0001 7.49988 13.0001C7.22374 13.0001 6.99988 13.224 6.99988 13.5001C6.99988 13.7763 7.22374 14.0001 7.49988 14.0001ZM10.9999 13.5001C10.9999 13.7763 10.776 14.0001 10.4999 14.0001C10.2237 14.0001 9.99988 13.7763 9.99988 13.5001C9.99988 13.224 10.2237 13.0001 10.4999 13.0001C10.776 13.0001 10.9999 13.224 10.9999 13.5001ZM13.4999 14.0001C13.776 14.0001 13.9999 13.7763 13.9999 13.5001C13.9999 13.224 13.776 13.0001 13.4999 13.0001C13.2237 13.0001 12.9999 13.224 12.9999 13.5001C12.9999 13.7763 13.2237 14.0001 13.4999 14.0001ZM3.99988 5.00012C3.99988 4.44784 4.44759 4.00012 4.99988 4.00012H9.99988C10.5522 4.00012 10.9999 4.44784 10.9999 5.00012V10.0001C10.9999 10.5524 10.5522 11.0001 9.99988 11.0001H4.99988C4.44759 11.0001 3.99988 10.5524 3.99988 10.0001V5.00012ZM4.99988 5.00012H9.99988V10.0001H4.99988V5.00012Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Lm=["color"],oo=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Lm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Om=["color"],I1=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Om);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5 1.5C5 1.22386 4.77614 1 4.5 1C4.22386 1 4 1.22386 4 1.5L4 7C4 7.01671 4.00082 7.03323 4.00242 7.04952C2.86009 7.28022 2 8.28967 2 9.5C2 10.7103 2.86009 11.7198 4.00242 11.9505C4.00082 11.9668 4 11.9833 4 12V13.5C4 13.7761 4.22386 14 4.5 14C4.77614 14 5 13.7761 5 13.5V12C5 11.9833 4.99918 11.9668 4.99758 11.9505C6.1399 11.7198 7 10.7103 7 9.5C7 8.28967 6.1399 7.28022 4.99758 7.04952C4.99918 7.03323 5 7.01671 5 7L5 1.5ZM11 1.5C11 1.22386 10.7761 1 10.5 1C10.2239 1 10 1.22386 10 1.5V3C10 3.01671 10.0008 3.03323 10.0024 3.04952C8.8601 3.28022 8 4.28967 8 5.5C8 6.71033 8.8601 7.71978 10.0024 7.95048C10.0008 7.96677 10 7.98329 10 8V13.5C10 13.7761 10.2239 14 10.5 14C10.7761 14 11 13.7761 11 13.5V8C11 7.98329 10.9992 7.96677 10.9976 7.95048C12.1399 7.71978 13 6.71033 13 5.5C13 4.28967 12.1399 3.28022 10.9976 3.04952C10.9992 3.03323 11 3.01671 11 3V1.5ZM4.5 8C3.67157 8 3 8.67157 3 9.5C3 10.3284 3.67157 11 4.5 11C5.32843 11 6 10.3284 6 9.5C6 8.67157 5.32843 8 4.5 8ZM9 5.5C9 4.67157 9.67157 4 10.5 4C11.3284 4 12 4.67157 12 5.5C12 6.32843 11.3284 7 10.5 7C9.67157 7 9 6.32843 9 5.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Am=["color"],zm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Am);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Hm=["color"],dc=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Hm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M7.81819 0.93179C7.64245 0.756054 7.35753 0.756054 7.18179 0.93179L5.43179 2.68179C5.25605 2.85753 5.25605 3.14245 5.43179 3.31819C5.60753 3.49392 5.89245 3.49392 6.06819 3.31819L6.99999 2.38638V5.49999C6.99999 5.77613 7.22385 5.99999 7.49999 5.99999C7.77613 5.99999 7.99999 5.77613 7.99999 5.49999V2.38638L8.93179 3.31819C9.10753 3.49392 9.39245 3.49392 9.56819 3.31819C9.74392 3.14245 9.74392 2.85753 9.56819 2.68179L7.81819 0.93179ZM7.99999 9.49999C7.99999 9.22385 7.77613 8.99999 7.49999 8.99999C7.22385 8.99999 6.99999 9.22385 6.99999 9.49999V12.6136L6.06819 11.6818C5.89245 11.5061 5.60753 11.5061 5.43179 11.6818C5.25605 11.8575 5.25605 12.1424 5.43179 12.3182L7.18179 14.0682C7.35753 14.2439 7.64245 14.2439 7.81819 14.0682L9.56819 12.3182C9.74392 12.1424 9.74392 11.8575 9.56819 11.6818C9.39245 11.5061 9.10753 11.5061 8.93179 11.6818L7.99999 12.6136V9.49999ZM8.99999 7.49999C8.99999 7.22385 9.22385 6.99999 9.49999 6.99999H12.6136L11.6818 6.06819C11.5061 5.89245 11.5061 5.60753 11.6818 5.43179C11.8575 5.25605 12.1424 5.25605 12.3182 5.43179L14.0682 7.18179C14.2439 7.35753 14.2439 7.64245 14.0682 7.81819L12.3182 9.56819C12.1424 9.74392 11.8575 9.74392 11.6818 9.56819C11.5061 9.39245 11.5061 9.10753 11.6818 8.93179L12.6136 7.99999H9.49999C9.22385 7.99999 8.99999 7.77613 8.99999 7.49999ZM3.31819 6.06819L2.38638 6.99999H5.49999C5.77613 6.99999 5.99999 7.22385 5.99999 7.49999C5.99999 7.77613 5.77613 7.99999 5.49999 7.99999H2.38638L3.31819 8.93179C3.49392 9.10753 3.49392 9.39245 3.31819 9.56819C3.14245 9.74392 2.85753 9.74392 2.68179 9.56819L0.93179 7.81819C0.756054 7.64245 0.756054 7.35753 0.93179 7.18179L2.68179 5.43179C2.85753 5.25605 3.14245 5.25605 3.31819 5.43179C3.49392 5.60753 3.49392 5.89245 3.31819 6.06819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Vm=["color"],Cf=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Vm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M7.5 1.5C4.5 4.25 3 6.5 3 9C3 11.4853 5.01472 13.5 7.5 13.5C9.98528 13.5 12 11.4853 12 9C12 6.5 10.5 4.25 7.5 1.5ZM11 9C11 7.11203 9.97315 5.27195 7.5 2.87357C5.02686 5.27195 4 7.11203 4 9C4 10.933 5.567 12.5 7.5 12.5C9.433 12.5 11 10.933 11 9Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),km=["color"],oa=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,km);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2.85714 2H12.1429C12.6162 2 13 2.38376 13 2.85714V12.1429C13 12.6162 12.6162 13 12.1429 13H2.85714C2.38376 13 2 12.6162 2 12.1429V2.85714C2 2.38376 2.38376 2 2.85714 2ZM1 2.85714C1 1.83147 1.83147 1 2.85714 1H12.1429C13.1685 1 14 1.83147 14 2.85714V12.1429C14 13.1685 13.1685 14 12.1429 14H2.85714C1.83147 14 1 13.1685 1 12.1429V2.85714ZM7.49988 5.00012C7.77602 5.00012 7.99988 4.77626 7.99988 4.50012C7.99988 4.22398 7.77602 4.00012 7.49988 4.00012C7.22374 4.00012 6.99988 4.22398 6.99988 4.50012C6.99988 4.77626 7.22374 5.00012 7.49988 5.00012ZM4.49988 11.0001C4.77602 11.0001 4.99988 10.7763 4.99988 10.5001C4.99988 10.224 4.77602 10.0001 4.49988 10.0001C4.22374 10.0001 3.99988 10.224 3.99988 10.5001C3.99988 10.7763 4.22374 11.0001 4.49988 11.0001ZM4.99988 7.50012C4.99988 7.77626 4.77602 8.00012 4.49988 8.00012C4.22374 8.00012 3.99988 7.77626 3.99988 7.50012C3.99988 7.22398 4.22374 7.00012 4.49988 7.00012C4.77602 7.00012 4.99988 7.22398 4.99988 7.50012ZM4.49988 5.00012C4.77602 5.00012 4.99988 4.77626 4.99988 4.50012C4.99988 4.22398 4.77602 4.00012 4.49988 4.00012C4.22374 4.00012 3.99988 4.22398 3.99988 4.50012C3.99988 4.77626 4.22374 5.00012 4.49988 5.00012ZM10.9999 10.5001C10.9999 10.7763 10.776 11.0001 10.4999 11.0001C10.2237 11.0001 9.99988 10.7763 9.99988 10.5001C9.99988 10.224 10.2237 10.0001 10.4999 10.0001C10.776 10.0001 10.9999 10.224 10.9999 10.5001ZM10.4999 8.00012C10.776 8.00012 10.9999 7.77626 10.9999 7.50012C10.9999 7.22398 10.776 7.00012 10.4999 7.00012C10.2237 7.00012 9.99988 7.22398 9.99988 7.50012C9.99988 7.77626 10.2237 8.00012 10.4999 8.00012ZM10.9999 4.50012C10.9999 4.77626 10.776 5.00012 10.4999 5.00012C10.2237 5.00012 9.99988 4.77626 9.99988 4.50012C9.99988 4.22398 10.2237 4.00012 10.4999 4.00012C10.776 4.00012 10.9999 4.22398 10.9999 4.50012ZM7.49988 11.0001C7.77602 11.0001 7.99988 10.7763 7.99988 10.5001C7.99988 10.224 7.77602 10.0001 7.49988 10.0001C7.22374 10.0001 6.99988 10.224 6.99988 10.5001C6.99988 10.7763 7.22374 11.0001 7.49988 11.0001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Dm=["color"],Jp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Dm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Bm=["color"],Wc=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Bm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),$m=["color"],e0=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,$m);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M1.84998 7.49998C1.84998 4.66458 4.05979 1.84998 7.49998 1.84998C10.2783 1.84998 11.6515 3.9064 12.2367 5H10.5C10.2239 5 10 5.22386 10 5.5C10 5.77614 10.2239 6 10.5 6H13.5C13.7761 6 14 5.77614 14 5.5V2.5C14 2.22386 13.7761 2 13.5 2C13.2239 2 13 2.22386 13 2.5V4.31318C12.2955 3.07126 10.6659 0.849976 7.49998 0.849976C3.43716 0.849976 0.849976 4.18537 0.849976 7.49998C0.849976 10.8146 3.43716 14.15 7.49998 14.15C9.44382 14.15 11.0622 13.3808 12.2145 12.2084C12.8315 11.5806 13.3133 10.839 13.6418 10.0407C13.7469 9.78536 13.6251 9.49315 13.3698 9.38806C13.1144 9.28296 12.8222 9.40478 12.7171 9.66014C12.4363 10.3425 12.0251 10.9745 11.5013 11.5074C10.5295 12.4963 9.16504 13.15 7.49998 13.15C4.05979 13.15 1.84998 10.3354 1.84998 7.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Zm=["color"],Um=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Zm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M4.85355 2.14645C5.04882 2.34171 5.04882 2.65829 4.85355 2.85355L3.70711 4H9C11.4853 4 13.5 6.01472 13.5 8.5C13.5 10.9853 11.4853 13 9 13H5C4.72386 13 4.5 12.7761 4.5 12.5C4.5 12.2239 4.72386 12 5 12H9C10.933 12 12.5 10.433 12.5 8.5C12.5 6.567 10.933 5 9 5H3.70711L4.85355 6.14645C5.04882 6.34171 5.04882 6.65829 4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355L2.14645 4.85355C1.95118 4.65829 1.95118 4.34171 2.14645 4.14645L4.14645 2.14645C4.34171 1.95118 4.65829 1.95118 4.85355 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ym=["color"],Xm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Ym);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M7.81832 0.68179C7.64258 0.506054 7.35766 0.506054 7.18192 0.68179L5.18192 2.68179C5.00619 2.85753 5.00619 3.14245 5.18192 3.31819C5.35766 3.49392 5.64258 3.49392 5.81832 3.31819L7.05012 2.08638L7.05012 5.50023C7.05012 5.74876 7.25159 5.95023 7.50012 5.95023C7.74865 5.95023 7.95012 5.74876 7.95012 5.50023L7.95012 2.08638L9.18192 3.31819C9.35766 3.49392 9.64258 3.49392 9.81832 3.31819C9.99406 3.14245 9.99406 2.85753 9.81832 2.68179L7.81832 0.68179ZM7.95012 12.9136V9.50023C7.95012 9.2517 7.74865 9.05023 7.50012 9.05023C7.25159 9.05023 7.05012 9.2517 7.05012 9.50023V12.9136L5.81832 11.6818C5.64258 11.5061 5.35766 11.5061 5.18192 11.6818C5.00619 11.8575 5.00619 12.1424 5.18192 12.3182L7.18192 14.3182C7.26632 14.4026 7.38077 14.45 7.50012 14.45C7.61947 14.45 7.73393 14.4026 7.81832 14.3182L9.81832 12.3182C9.99406 12.1424 9.99406 11.8575 9.81832 11.6818C9.64258 11.5061 9.35766 11.5061 9.18192 11.6818L7.95012 12.9136ZM1.49994 7.00017C1.2238 7.00017 0.999939 7.22403 0.999939 7.50017C0.999939 7.77631 1.2238 8.00017 1.49994 8.00017L13.4999 8.00017C13.7761 8.00017 13.9999 7.77631 13.9999 7.50017C13.9999 7.22403 13.7761 7.00017 13.4999 7.00017L1.49994 7.00017Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Pm=["color"],Wp=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Pm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M14 12.85L1 12.85L1 14.15L14 14.15L14 12.85ZM14 8.85002L1 8.85002L1 10.15L14 10.15L14 8.85002ZM1 4.85003L14 4.85003L14 6.15003L1 6.15002L1 4.85003ZM14 0.850025L1 0.850025L1 2.15002L14 2.15002L14 0.850025Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qm=["color"],Ip=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,qm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),g.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Gm=["color"],Qm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Gm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M10.3004 7.49991C10.3004 8.4943 9.49426 9.30041 8.49988 9.30041C7.50549 9.30041 6.69938 8.4943 6.69938 7.49991C6.69938 6.50553 7.50549 5.69942 8.49988 5.69942C9.49426 5.69942 10.3004 6.50553 10.3004 7.49991ZM11.205 8C10.9699 9.28029 9.84816 10.2504 8.49988 10.2504C7.1516 10.2504 6.0299 9.28029 5.79473 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H5.7947C6.0298 5.71962 7.15154 4.74942 8.49988 4.74942C9.84822 4.74942 10.97 5.71962 11.2051 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H11.205Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Km=["color"],Oc=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Km);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M14.4999 0.999994C14.2237 0.999994 13.9999 1.22385 13.9999 1.49999L13.9999 5.99995L9.99992 5.99995C9.44764 5.99995 8.99993 6.44766 8.99993 6.99994L8.99993 7.99994C8.99993 8.55222 9.44764 8.99993 9.99992 8.99993L13.9999 8.99993L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999994 14.4999 0.999994ZM4.99996 5.99995L0.999992 5.99995L0.999992 1.49999C0.999992 1.22385 0.776136 0.999994 0.499996 0.999994C0.223856 0.999994 -9.7852e-09 1.22385 -2.18557e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 8.99993L4.99996 8.99993C5.55224 8.99993 5.99995 8.55222 5.99995 7.99993L5.99995 6.99994C5.99995 6.44766 5.55224 5.99995 4.99996 5.99995Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Fm=["color"],Jm=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Fm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M14.4999 0.999992C14.2237 0.999992 13.9999 1.22385 13.9999 1.49999L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999992 14.4999 0.999992ZM0.499996 0.999992C0.223856 0.999992 -9.78509e-09 1.22385 -2.18556e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 1.49999C0.999992 1.22385 0.776136 0.999992 0.499996 0.999992ZM1.99998 6.99994C1.99998 6.44766 2.44769 5.99995 2.99998 5.99995L5.99995 5.99995C6.55223 5.99995 6.99994 6.44766 6.99994 6.99994L6.99994 7.99993C6.99994 8.55221 6.55223 8.99992 5.99995 8.99992L2.99998 8.99992C2.4477 8.99992 1.99998 8.55221 1.99998 7.99993L1.99998 6.99994ZM8.99993 5.99995C8.44765 5.99995 7.99993 6.44766 7.99993 6.99994L7.99993 7.99993C7.99993 8.55221 8.44765 8.99992 8.99993 8.99992L11.9999 8.99992C12.5522 8.99992 12.9999 8.55221 12.9999 7.99993L12.9999 6.99994C12.9999 6.44766 12.5522 5.99995 11.9999 5.99995L8.99993 5.99995Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Wm=["color"],t0=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Wm);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M1 1H1.5H13.5H14V1.5V13.5V14H13.5H1.5H1V13.5V1.5V1ZM2 2V13H13V2H2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Im=["color"],ev=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,Im);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M14.4999 0.999992C14.2237 0.999992 13.9999 1.22385 13.9999 1.49999L13.9999 5.99995L0.999992 5.99995L0.999992 1.49999C0.999992 1.22385 0.776136 0.999992 0.499996 0.999992C0.223856 0.999992 -9.78509e-09 1.22385 -2.18556e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 8.99992L13.9999 8.99992L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999992 14.4999 0.999992Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),tv=["color"],nv=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,tv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5.00003 3.25C5.00003 2.97386 4.77617 2.75 4.50003 2.75C4.22389 2.75 4.00003 2.97386 4.00003 3.25V7.10003H2.49998C2.27906 7.10003 2.09998 7.27912 2.09998 7.50003C2.09998 7.72094 2.27906 7.90003 2.49998 7.90003H4.00003V8.55C4.00003 10.483 5.56703 12.05 7.50003 12.05C9.43303 12.05 11 10.483 11 8.55V7.90003H12.5C12.7209 7.90003 12.9 7.72094 12.9 7.50003C12.9 7.27912 12.7209 7.10003 12.5 7.10003H11V3.25C11 2.97386 10.7762 2.75 10.5 2.75C10.2239 2.75 10 2.97386 10 3.25V7.10003H5.00003V3.25ZM5.00003 7.90003V8.55C5.00003 9.93071 6.11932 11.05 7.50003 11.05C8.88074 11.05 10 9.93071 10 8.55V7.90003H5.00003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),lv=["color"],av=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,lv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ov=["color"],Tr=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,ov);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H10.5C10.7761 7 11 7.22386 11 7.5C11 7.77614 10.7761 8 10.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM3 10.5C3 10.2239 3.22386 10 3.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H3.5C3.22386 11 3 10.7761 3 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),rv=["color"],e4=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,rv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),iv=["color"],wf=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,iv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H7.5C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H10.5C10.7761 10 11 10.2239 11 10.5C11 10.7761 10.7761 11 10.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),cv=["color"],t4=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,cv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM7 7.5C7 7.22386 7.22386 7 7.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H7.5C7.22386 8 7 7.77614 7 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H4.5C4.22386 11 4 10.7761 4 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),sv=["color"],n4=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,sv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L11.9291 2.36383C11.9159 2.32246 11.897 2.28368 11.8732 2.24845C11.7923 2.12875 11.6554 2.05005 11.5001 2.05005H3.50005C3.29909 2.05005 3.1289 2.18178 3.07111 2.3636C3.05743 2.40665 3.05005 2.45249 3.05005 2.50007V4.50001C3.05005 4.74854 3.25152 4.95001 3.50005 4.95001C3.74858 4.95001 3.95005 4.74854 3.95005 4.50001V2.95005H6.95006V7.34284L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L6.95006 8.75705V12.0501H5.7544C5.50587 12.0501 5.3044 12.2515 5.3044 12.5001C5.3044 12.7486 5.50587 12.9501 5.7544 12.9501H9.2544C9.50293 12.9501 9.7044 12.7486 9.7044 12.5001C9.7044 12.2515 9.50293 12.0501 9.2544 12.0501H8.05006V7.65705L13.3536 2.35355ZM8.05006 6.24284L11.0501 3.24283V2.95005H8.05006V6.24284Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),uv=["color"],fv=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,uv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M4.5 2C3.11929 2 2 3.11929 2 4.5C2 5.88072 3.11929 7 4.5 7C5.88072 7 7 5.88072 7 4.5C7 3.11929 5.88072 2 4.5 2ZM3 4.5C3 3.67157 3.67157 3 4.5 3C5.32843 3 6 3.67157 6 4.5C6 5.32843 5.32843 6 4.5 6C3.67157 6 3 5.32843 3 4.5ZM10.5 2C9.11929 2 8 3.11929 8 4.5C8 5.88072 9.11929 7 10.5 7C11.8807 7 13 5.88072 13 4.5C13 3.11929 11.8807 2 10.5 2ZM9 4.5C9 3.67157 9.67157 3 10.5 3C11.3284 3 12 3.67157 12 4.5C12 5.32843 11.3284 6 10.5 6C9.67157 6 9 5.32843 9 4.5ZM2 10.5C2 9.11929 3.11929 8 4.5 8C5.88072 8 7 9.11929 7 10.5C7 11.8807 5.88072 13 4.5 13C3.11929 13 2 11.8807 2 10.5ZM4.5 9C3.67157 9 3 9.67157 3 10.5C3 11.3284 3.67157 12 4.5 12C5.32843 12 6 11.3284 6 10.5C6 9.67157 5.32843 9 4.5 9ZM10.5 8C9.11929 8 8 9.11929 8 10.5C8 11.8807 9.11929 13 10.5 13C11.8807 13 13 11.8807 13 10.5C13 9.11929 11.8807 8 10.5 8ZM9 10.5C9 9.67157 9.67157 9 10.5 9C11.3284 9 12 9.67157 12 10.5C12 11.3284 11.3284 12 10.5 12C9.67157 12 9 11.3284 9 10.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),dv=["color"],pv=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,dv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M0.849976 1.74998C0.849976 1.25292 1.25292 0.849976 1.74998 0.849976H3.24998C3.74703 0.849976 4.14998 1.25292 4.14998 1.74998V2.04998H10.85V1.74998C10.85 1.25292 11.2529 0.849976 11.75 0.849976H13.25C13.747 0.849976 14.15 1.25292 14.15 1.74998V3.24998C14.15 3.74703 13.747 4.14998 13.25 4.14998H12.95V10.85H13.25C13.747 10.85 14.15 11.2529 14.15 11.75V13.25C14.15 13.747 13.747 14.15 13.25 14.15H11.75C11.2529 14.15 10.85 13.747 10.85 13.25V12.95H4.14998V13.25C4.14998 13.747 3.74703 14.15 3.24998 14.15H1.74998C1.25292 14.15 0.849976 13.747 0.849976 13.25V11.75C0.849976 11.2529 1.25292 10.85 1.74998 10.85H2.04998V4.14998H1.74998C1.25292 4.14998 0.849976 3.74703 0.849976 3.24998V1.74998ZM2.94998 4.14998V10.85H3.24998C3.74703 10.85 4.14998 11.2529 4.14998 11.75V12.05H10.85V11.75C10.85 11.2529 11.2529 10.85 11.75 10.85H12.05V4.14998H11.75C11.2529 4.14998 10.85 3.74703 10.85 3.24998V2.94998H4.14998V3.24998C4.14998 3.74703 3.74703 4.14998 3.24998 4.14998H2.94998ZM2.34998 1.74998H1.74998V2.34998V2.64998V3.24998H2.34998H2.64998H3.24998V2.64998V2.34998V1.74998H2.64998H2.34998ZM5.09998 5.99998C5.09998 5.50292 5.50292 5.09998 5.99998 5.09998H6.99998C7.49703 5.09998 7.89998 5.50292 7.89998 5.99998V6.99998C7.89998 7.03591 7.89787 7.07134 7.89378 7.10618C7.92861 7.10208 7.96405 7.09998 7.99998 7.09998H8.99998C9.49703 7.09998 9.89998 7.50292 9.89998 7.99998V8.99998C9.89998 9.49703 9.49703 9.89998 8.99998 9.89998H7.99998C7.50292 9.89998 7.09998 9.49703 7.09998 8.99998V7.99998C7.09998 7.96405 7.10208 7.92861 7.10618 7.89378C7.07134 7.89787 7.03591 7.89998 6.99998 7.89998H5.99998C5.50292 7.89998 5.09998 7.49703 5.09998 6.99998V5.99998ZM6.09998 5.99998H5.99998V6.09998V6.89998V6.99998H6.09998H6.89998H6.99998V6.89998V6.09998V5.99998H6.89998H6.09998ZM7.99998 7.99998H8.09998H8.89998H8.99998V8.09998V8.89998V8.99998H8.89998H8.09998H7.99998V8.89998V8.09998V7.99998ZM2.64998 11.75H2.34998H1.74998V12.35V12.65V13.25H2.34998H2.64998H3.24998V12.65V12.35V11.75H2.64998ZM11.75 1.74998H12.35H12.65H13.25V2.34998V2.64998V3.24998H12.65H12.35H11.75V2.64998V2.34998V1.74998ZM12.65 11.75H12.35H11.75V12.35V12.65V13.25H12.35H12.65H13.25V12.65V12.35V11.75H12.65Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hv=["color"],l4=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,hv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gv=["color"],a4=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,gv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M5.00001 2.75C5.00001 2.47386 4.77615 2.25 4.50001 2.25C4.22387 2.25 4.00001 2.47386 4.00001 2.75V8.05C4.00001 9.983 5.56702 11.55 7.50001 11.55C9.43301 11.55 11 9.983 11 8.05V2.75C11 2.47386 10.7762 2.25 10.5 2.25C10.2239 2.25 10 2.47386 10 2.75V8.05C10 9.43071 8.88072 10.55 7.50001 10.55C6.1193 10.55 5.00001 9.43071 5.00001 8.05V2.75ZM3.49998 13.1001C3.27906 13.1001 3.09998 13.2791 3.09998 13.5001C3.09998 13.721 3.27906 13.9001 3.49998 13.9001H11.5C11.7209 13.9001 11.9 13.721 11.9 13.5001C11.9 13.2791 11.7209 13.1001 11.5 13.1001H3.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),mv=["color"],Mc=g.forwardRef(function(t,a){var o=t.color,r=o===void 0?"currentColor":o,c=le(t,mv);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),g.createElement("path",{d:"M4.81812 4.68161C4.99386 4.85734 4.99386 5.14227 4.81812 5.318L3.08632 7.0498H11.9135L10.1817 5.318C10.006 5.14227 10.006 4.85734 10.1817 4.68161C10.3575 4.50587 10.6424 4.50587 10.8181 4.68161L13.3181 7.18161C13.4939 7.35734 13.4939 7.64227 13.3181 7.818L10.8181 10.318C10.6424 10.4937 10.3575 10.4937 10.1817 10.318C10.006 10.1423 10.006 9.85734 10.1817 9.68161L11.9135 7.9498H3.08632L4.81812 9.68161C4.99386 9.85734 4.99386 10.1423 4.81812 10.318C4.64239 10.4937 4.35746 10.4937 4.18173 10.318L1.68173 7.818C1.50599 7.64227 1.50599 7.35734 1.68173 7.18161L4.18173 4.68161C4.35746 4.50587 4.64239 4.50587 4.81812 4.68161Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});/**
50
+ * @license lucide-react v0.575.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const o4=(...t)=>t.filter((a,o,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===o).join(" ").trim();/**
55
+ * @license lucide-react v0.575.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const vv=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
60
+ * @license lucide-react v0.575.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const xv=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,r)=>r?r.toUpperCase():o.toLowerCase());/**
65
+ * @license lucide-react v0.575.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const d3=t=>{const a=xv(t);return a.charAt(0).toUpperCase()+a.slice(1)};/**
70
+ * @license lucide-react v0.575.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */var yv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
75
+ * @license lucide-react v0.575.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const bv=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
80
+ * @license lucide-react v0.575.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Cv=g.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:c="",children:s,iconNode:d,...h},v)=>g.createElement("svg",{ref:v,...yv,width:a,height:a,stroke:t,strokeWidth:r?Number(o)*24/Number(a):o,className:o4("lucide",c),...!s&&!bv(h)&&{"aria-hidden":"true"},...h},[...d.map(([m,y])=>g.createElement(m,y)),...Array.isArray(s)?s:[s]]));/**
85
+ * @license lucide-react v0.575.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const kr=(t,a)=>{const o=g.forwardRef(({className:r,...c},s)=>g.createElement(Cv,{ref:s,iconNode:a,className:o4(`lucide-${vv(d3(t))}`,`lucide-${t}`,r),...c}));return o.displayName=d3(t),o};/**
90
+ * @license lucide-react v0.575.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const wv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sv=kr("chevron-down",wv);/**
95
+ * @license lucide-react v0.575.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const jv=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],Mv=kr("chevrons-down-up",jv);/**
100
+ * @license lucide-react v0.575.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const Ev=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Tv=kr("chevrons-up-down",Ev);/**
105
+ * @license lucide-react v0.575.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const Rv=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],_v=kr("monitor",Rv);/**
110
+ * @license lucide-react v0.575.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const Nv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],p3=kr("panel-left",Nv);function Lv(t){if("source"in t)return t;const a=t;return{tag:a.tag,className:a.className,computed:a.computedStyles,parentComputed:a.parentComputedStyles,boundingRect:a.boundingRect,textContent:a.textContent,attributes:a.attributes,domPath:a.domPath||null,source:a.sourceFile!=null?{file:a.sourceFile,line:a.sourceLine,col:a.sourceCol}:null,instanceSource:a.instanceSourceFile!=null?{file:a.instanceSourceFile,line:a.instanceSourceLine,col:a.instanceSourceCol}:null,componentName:a.componentName||null}}function Ov(t,a){var o;(o=t.contentWindow)==null||o.postMessage(a,"*")}function Av(t){const a=o=>{var c;const r=o.data;if((c=r==null?void 0:r.type)!=null&&c.startsWith("tool:")){if(r.type==="tool:elementSelected"&&r.data){t({type:"tool:elementSelected",data:Lv(r.data)});return}t(r)}};return window.addEventListener("message",a),()=>window.removeEventListener("message",a)}function zv(t,a){const o=g.useRef(a);return o.current=a,g.useEffect(()=>Av(c=>{o.current(c)}),[]),{send:g.useCallback(c=>{t.current&&Ov(t.current,c)},[t])}}function He(t,a,{checkForDefaultPrevented:o=!0}={}){return function(c){if(t==null||t(c),o===!1||!c.defaultPrevented)return a==null?void 0:a(c)}}function h3(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function r4(...t){return a=>{let o=!1;const r=t.map(c=>{const s=h3(c,a);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let c=0;c<r.length;c++){const s=r[c];typeof s=="function"?s():h3(t[c],null)}}}}function Ie(...t){return g.useCallback(r4(...t),t)}function Dr(t,a=[]){let o=[];function r(s,d){const h=g.createContext(d),v=o.length;o=[...o,d];const m=b=>{var R;const{scope:C,children:w,...E}=b,j=((R=C==null?void 0:C[t])==null?void 0:R[v])||h,M=g.useMemo(()=>E,Object.values(E));return u.jsx(j.Provider,{value:M,children:w})};m.displayName=s+"Provider";function y(b,C){var j;const w=((j=C==null?void 0:C[t])==null?void 0:j[v])||h,E=g.useContext(w);if(E)return E;if(d!==void 0)return d;throw new Error(`\`${b}\` must be used within \`${s}\``)}return[m,y]}const c=()=>{const s=o.map(d=>g.createContext(d));return function(h){const v=(h==null?void 0:h[t])||s;return g.useMemo(()=>({[`__scope${t}`]:{...h,[t]:v}}),[h,v])}};return c.scopeName=t,[r,Hv(c,...a)]}function Hv(...t){const a=t[0];if(t.length===1)return a;const o=()=>{const r=t.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(s){const d=r.reduce((h,{useScope:v,scopeName:m})=>{const b=v(s)[`__scope${m}`];return{...h,...b}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:d}),[d])}};return o.scopeName=a.scopeName,o}var Br=zp();const Vv=Ap(Br);function Or(t){const a=kv(t),o=g.forwardRef((r,c)=>{const{children:s,...d}=r,h=g.Children.toArray(s),v=h.find(Bv);if(v){const m=v.props.children,y=h.map(b=>b===v?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:b);return u.jsx(a,{...d,ref:c,children:g.isValidElement(m)?g.cloneElement(m,void 0,y):null})}return u.jsx(a,{...d,ref:c,children:s})});return o.displayName=`${t}.Slot`,o}function kv(t){const a=g.forwardRef((o,r)=>{const{children:c,...s}=o;if(g.isValidElement(c)){const d=Zv(c),h=$v(s,c.props);return c.type!==g.Fragment&&(h.ref=r?r4(r,d):d),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var i4=Symbol("radix.slottable");function Dv(t){const a=({children:o})=>u.jsx(u.Fragment,{children:o});return a.displayName=`${t}.Slottable`,a.__radixId=i4,a}function Bv(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===i4}function $v(t,a){const o={...a};for(const r in a){const c=t[r],s=a[r];/^on[A-Z]/.test(r)?c&&s?o[r]=(...h)=>{const v=s(...h);return c(...h),v}:c&&(o[r]=c):r==="style"?o[r]={...c,...s}:r==="className"&&(o[r]=[c,s].filter(Boolean).join(" "))}return{...t,...o}}function Zv(t){var r,c;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?t.ref:(a=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var Uv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=Uv.reduce((t,a)=>{const o=Or(`Primitive.${a}`),r=g.forwardRef((c,s)=>{const{asChild:d,...h}=c,v=d?o:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(v,{...h,ref:s})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function Yv(t,a){t&&Br.flushSync(()=>t.dispatchEvent(a))}function ca(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...o)=>{var r;return(r=a.current)==null?void 0:r.call(a,...o)},[])}function Xv(t,a=globalThis==null?void 0:globalThis.document){const o=ca(t);g.useEffect(()=>{const r=c=>{c.key==="Escape"&&o(c)};return a.addEventListener("keydown",r,{capture:!0}),()=>a.removeEventListener("keydown",r,{capture:!0})},[o,a])}var Pv="DismissableLayer",B0="dismissableLayer.update",qv="dismissableLayer.pointerDownOutside",Gv="dismissableLayer.focusOutside",g3,c4=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ic=g.forwardRef((t,a)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:s,onInteractOutside:d,onDismiss:h,...v}=t,m=g.useContext(c4),[y,b]=g.useState(null),C=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=g.useState({}),E=Ie(a,z=>b(z)),j=Array.from(m.layers),[M]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),R=j.indexOf(M),T=y?j.indexOf(y):-1,N=m.layersWithOutsidePointerEventsDisabled.size>0,_=T>=R,k=Fv(z=>{const W=z.target,te=[...m.branches].some(ue=>ue.contains(W));!_||te||(c==null||c(z),d==null||d(z),z.defaultPrevented||h==null||h())},C),U=Jv(z=>{const W=z.target;[...m.branches].some(ue=>ue.contains(W))||(s==null||s(z),d==null||d(z),z.defaultPrevented||h==null||h())},C);return Xv(z=>{T===m.layers.size-1&&(r==null||r(z),!z.defaultPrevented&&h&&(z.preventDefault(),h()))},C),g.useEffect(()=>{if(y)return o&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(g3=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),m3(),()=>{o&&m.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=g3)}},[y,C,o,m]),g.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),m3())},[y,m]),g.useEffect(()=>{const z=()=>w({});return document.addEventListener(B0,z),()=>document.removeEventListener(B0,z)},[]),u.jsx(Ke.div,{...v,ref:E,style:{pointerEvents:N?_?"auto":"none":void 0,...t.style},onFocusCapture:He(t.onFocusCapture,U.onFocusCapture),onBlurCapture:He(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:He(t.onPointerDownCapture,k.onPointerDownCapture)})});Ic.displayName=Pv;var Qv="DismissableLayerBranch",Kv=g.forwardRef((t,a)=>{const o=g.useContext(c4),r=g.useRef(null),c=Ie(a,r);return g.useEffect(()=>{const s=r.current;if(s)return o.branches.add(s),()=>{o.branches.delete(s)}},[o.branches]),u.jsx(Ke.div,{...t,ref:c})});Kv.displayName=Qv;function Fv(t,a=globalThis==null?void 0:globalThis.document){const o=ca(t),r=g.useRef(!1),c=g.useRef(()=>{});return g.useEffect(()=>{const s=h=>{if(h.target&&!r.current){let v=function(){s4(qv,o,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",c.current),c.current=v,a.addEventListener("click",c.current,{once:!0})):v()}else a.removeEventListener("click",c.current);r.current=!1},d=window.setTimeout(()=>{a.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(d),a.removeEventListener("pointerdown",s),a.removeEventListener("click",c.current)}},[a,o]),{onPointerDownCapture:()=>r.current=!0}}function Jv(t,a=globalThis==null?void 0:globalThis.document){const o=ca(t),r=g.useRef(!1);return g.useEffect(()=>{const c=s=>{s.target&&!r.current&&s4(Gv,o,{originalEvent:s},{discrete:!1})};return a.addEventListener("focusin",c),()=>a.removeEventListener("focusin",c)},[a,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function m3(){const t=new CustomEvent(B0);document.dispatchEvent(t)}function s4(t,a,o,{discrete:r}){const c=o.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:o});a&&c.addEventListener(t,a,{once:!0}),r?Yv(c,s):c.dispatchEvent(s)}var n0=0;function u4(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??v3()),document.body.insertAdjacentElement("beforeend",t[1]??v3()),n0++,()=>{n0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),n0--}},[])}function v3(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var l0="focusScope.autoFocusOnMount",a0="focusScope.autoFocusOnUnmount",x3={bubbles:!1,cancelable:!0},Wv="FocusScope",Sf=g.forwardRef((t,a)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:s,...d}=t,[h,v]=g.useState(null),m=ca(c),y=ca(s),b=g.useRef(null),C=Ie(a,j=>v(j)),w=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let j=function(N){if(w.paused||!h)return;const _=N.target;h.contains(_)?b.current=_:Rl(b.current,{select:!0})},M=function(N){if(w.paused||!h)return;const _=N.relatedTarget;_!==null&&(h.contains(_)||Rl(b.current,{select:!0}))},R=function(N){if(document.activeElement===document.body)for(const k of N)k.removedNodes.length>0&&Rl(h)};document.addEventListener("focusin",j),document.addEventListener("focusout",M);const T=new MutationObserver(R);return h&&T.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",M),T.disconnect()}}},[r,h,w.paused]),g.useEffect(()=>{if(h){b3.add(w);const j=document.activeElement;if(!h.contains(j)){const R=new CustomEvent(l0,x3);h.addEventListener(l0,m),h.dispatchEvent(R),R.defaultPrevented||(Iv(ax(f4(h)),{select:!0}),document.activeElement===j&&Rl(h))}return()=>{h.removeEventListener(l0,m),setTimeout(()=>{const R=new CustomEvent(a0,x3);h.addEventListener(a0,y),h.dispatchEvent(R),R.defaultPrevented||Rl(j??document.body,{select:!0}),h.removeEventListener(a0,y),b3.remove(w)},0)}}},[h,m,y,w]);const E=g.useCallback(j=>{if(!o&&!r||w.paused)return;const M=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,R=document.activeElement;if(M&&R){const T=j.currentTarget,[N,_]=ex(T);N&&_?!j.shiftKey&&R===_?(j.preventDefault(),o&&Rl(N,{select:!0})):j.shiftKey&&R===N&&(j.preventDefault(),o&&Rl(_,{select:!0})):R===T&&j.preventDefault()}},[o,r,w.paused]);return u.jsx(Ke.div,{tabIndex:-1,...d,ref:C,onKeyDown:E})});Sf.displayName=Wv;function Iv(t,{select:a=!1}={}){const o=document.activeElement;for(const r of t)if(Rl(r,{select:a}),document.activeElement!==o)return}function ex(t){const a=f4(t),o=y3(a,t),r=y3(a.reverse(),t);return[o,r]}function f4(t){const a=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)a.push(o.currentNode);return a}function y3(t,a){for(const o of t)if(!tx(o,{upTo:a}))return o}function tx(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function nx(t){return t instanceof HTMLInputElement&&"select"in t}function Rl(t,{select:a=!1}={}){if(t&&t.focus){const o=document.activeElement;t.focus({preventScroll:!0}),t!==o&&nx(t)&&a&&t.select()}}var b3=lx();function lx(){let t=[];return{add(a){const o=t[0];a!==o&&(o==null||o.pause()),t=C3(t,a),t.unshift(a)},remove(a){var o;t=C3(t,a),(o=t[0])==null||o.resume()}}}function C3(t,a){const o=[...t],r=o.indexOf(a);return r!==-1&&o.splice(r,1),o}function ax(t){return t.filter(a=>a.tagName!=="A")}var Mt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},ox=Hp[" useId ".trim().toString()]||(()=>{}),rx=0;function $r(t){const[a,o]=g.useState(ox());return Mt(()=>{o(r=>r??String(rx++))},[t]),t||(a?`radix-${a}`:"")}const ix=["top","right","bottom","left"],Al=Math.min,Kt=Math.max,Ac=Math.round,pc=Math.floor,Tn=t=>({x:t,y:t}),cx={left:"right",right:"left",bottom:"top",top:"bottom"},sx={start:"end",end:"start"};function $0(t,a,o){return Kt(t,Al(a,o))}function Jn(t,a){return typeof t=="function"?t(a):t}function Wn(t){return t.split("-")[0]}function xo(t){return t.split("-")[1]}function jf(t){return t==="x"?"y":"x"}function Mf(t){return t==="y"?"height":"width"}const ux=new Set(["top","bottom"]);function En(t){return ux.has(Wn(t))?"y":"x"}function Ef(t){return jf(En(t))}function fx(t,a,o){o===void 0&&(o=!1);const r=xo(t),c=Ef(t),s=Mf(c);let d=c==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return a.reference[s]>a.floating[s]&&(d=zc(d)),[d,zc(d)]}function dx(t){const a=zc(t);return[Z0(t),a,Z0(a)]}function Z0(t){return t.replace(/start|end/g,a=>sx[a])}const w3=["left","right"],S3=["right","left"],px=["top","bottom"],hx=["bottom","top"];function gx(t,a,o){switch(t){case"top":case"bottom":return o?a?S3:w3:a?w3:S3;case"left":case"right":return a?px:hx;default:return[]}}function mx(t,a,o,r){const c=xo(t);let s=gx(Wn(t),o==="start",r);return c&&(s=s.map(d=>d+"-"+c),a&&(s=s.concat(s.map(Z0)))),s}function zc(t){return t.replace(/left|right|bottom|top/g,a=>cx[a])}function vx(t){return{top:0,right:0,bottom:0,left:0,...t}}function d4(t){return typeof t!="number"?vx(t):{top:t,right:t,bottom:t,left:t}}function Hc(t){const{x:a,y:o,width:r,height:c}=t;return{width:r,height:c,top:o,left:a,right:a+r,bottom:o+c,x:a,y:o}}function j3(t,a,o){let{reference:r,floating:c}=t;const s=En(a),d=Ef(a),h=Mf(d),v=Wn(a),m=s==="y",y=r.x+r.width/2-c.width/2,b=r.y+r.height/2-c.height/2,C=r[h]/2-c[h]/2;let w;switch(v){case"top":w={x:y,y:r.y-c.height};break;case"bottom":w={x:y,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:b};break;case"left":w={x:r.x-c.width,y:b};break;default:w={x:r.x,y:r.y}}switch(xo(a)){case"start":w[d]-=C*(o&&m?-1:1);break;case"end":w[d]+=C*(o&&m?-1:1);break}return w}async function xx(t,a){var o;a===void 0&&(a={});const{x:r,y:c,platform:s,rects:d,elements:h,strategy:v}=t,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:C=!1,padding:w=0}=Jn(a,t),E=d4(w),M=h[C?b==="floating"?"reference":"floating":b],R=Hc(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(M)))==null||o?M:M.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(h.floating)),boundary:m,rootBoundary:y,strategy:v})),T=b==="floating"?{x:r,y:c,width:d.floating.width,height:d.floating.height}:d.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h.floating)),_=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},k=Hc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:T,offsetParent:N,strategy:v}):T);return{top:(R.top-k.top+E.top)/_.y,bottom:(k.bottom-R.bottom+E.bottom)/_.y,left:(R.left-k.left+E.left)/_.x,right:(k.right-R.right+E.right)/_.x}}const yx=async(t,a,o)=>{const{placement:r="bottom",strategy:c="absolute",middleware:s=[],platform:d}=o,h=s.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(a));let m=await d.getElementRects({reference:t,floating:a,strategy:c}),{x:y,y:b}=j3(m,r,v),C=r,w={},E=0;for(let M=0;M<h.length;M++){var j;const{name:R,fn:T}=h[M],{x:N,y:_,data:k,reset:U}=await T({x:y,y:b,initialPlacement:r,placement:C,strategy:c,middlewareData:w,rects:m,platform:{...d,detectOverflow:(j=d.detectOverflow)!=null?j:xx},elements:{reference:t,floating:a}});y=N??y,b=_??b,w={...w,[R]:{...w[R],...k}},U&&E<=50&&(E++,typeof U=="object"&&(U.placement&&(C=U.placement),U.rects&&(m=U.rects===!0?await d.getElementRects({reference:t,floating:a,strategy:c}):U.rects),{x:y,y:b}=j3(m,C,v)),M=-1)}return{x:y,y:b,placement:C,strategy:c,middlewareData:w}},bx=t=>({name:"arrow",options:t,async fn(a){const{x:o,y:r,placement:c,rects:s,platform:d,elements:h,middlewareData:v}=a,{element:m,padding:y=0}=Jn(t,a)||{};if(m==null)return{};const b=d4(y),C={x:o,y:r},w=Ef(c),E=Mf(w),j=await d.getDimensions(m),M=w==="y",R=M?"top":"left",T=M?"bottom":"right",N=M?"clientHeight":"clientWidth",_=s.reference[E]+s.reference[w]-C[w]-s.floating[E],k=C[w]-s.reference[w],U=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m));let z=U?U[N]:0;(!z||!await(d.isElement==null?void 0:d.isElement(U)))&&(z=h.floating[N]||s.floating[E]);const W=_/2-k/2,te=z/2-j[E]/2-1,ue=Al(b[R],te),oe=Al(b[T],te),ie=ue,ge=z-j[E]-oe,fe=z/2-j[E]/2+W,xe=$0(ie,fe,ge),H=!v.arrow&&xo(c)!=null&&fe!==xe&&s.reference[E]/2-(fe<ie?ue:oe)-j[E]/2<0,D=H?fe<ie?fe-ie:fe-ge:0;return{[w]:C[w]+D,data:{[w]:xe,centerOffset:fe-xe-D,...H&&{alignmentOffset:D}},reset:H}}}),Cx=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var o,r;const{placement:c,middlewareData:s,rects:d,initialPlacement:h,platform:v,elements:m}=a,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:j=!0,...M}=Jn(t,a);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const R=Wn(c),T=En(h),N=Wn(h)===h,_=await(v.isRTL==null?void 0:v.isRTL(m.floating)),k=C||(N||!j?[zc(h)]:dx(h)),U=E!=="none";!C&&U&&k.push(...mx(h,j,E,_));const z=[h,...k],W=await v.detectOverflow(a,M),te=[];let ue=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&te.push(W[R]),b){const fe=fx(c,d,_);te.push(W[fe[0]],W[fe[1]])}if(ue=[...ue,{placement:c,overflows:te}],!te.every(fe=>fe<=0)){var oe,ie;const fe=(((oe=s.flip)==null?void 0:oe.index)||0)+1,xe=z[fe];if(xe&&(!(b==="alignment"?T!==En(xe):!1)||ue.every(K=>En(K.placement)===T?K.overflows[0]>0:!0)))return{data:{index:fe,overflows:ue},reset:{placement:xe}};let H=(ie=ue.filter(D=>D.overflows[0]<=0).sort((D,K)=>D.overflows[1]-K.overflows[1])[0])==null?void 0:ie.placement;if(!H)switch(w){case"bestFit":{var ge;const D=(ge=ue.filter(K=>{if(U){const ae=En(K.placement);return ae===T||ae==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ae=>ae>0).reduce((ae,pe)=>ae+pe,0)]).sort((K,ae)=>K[1]-ae[1])[0])==null?void 0:ge[0];D&&(H=D);break}case"initialPlacement":H=h;break}if(c!==H)return{reset:{placement:H}}}return{}}}};function M3(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function E3(t){return ix.some(a=>t[a]>=0)}const wx=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:o,platform:r}=a,{strategy:c="referenceHidden",...s}=Jn(t,a);switch(c){case"referenceHidden":{const d=await r.detectOverflow(a,{...s,elementContext:"reference"}),h=M3(d,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:E3(h)}}}case"escaped":{const d=await r.detectOverflow(a,{...s,altBoundary:!0}),h=M3(d,o.floating);return{data:{escapedOffsets:h,escaped:E3(h)}}}default:return{}}}}},p4=new Set(["left","top"]);async function Sx(t,a){const{placement:o,platform:r,elements:c}=t,s=await(r.isRTL==null?void 0:r.isRTL(c.floating)),d=Wn(o),h=xo(o),v=En(o)==="y",m=p4.has(d)?-1:1,y=s&&v?-1:1,b=Jn(a,t);let{mainAxis:C,crossAxis:w,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof E=="number"&&(w=h==="end"?E*-1:E),v?{x:w*y,y:C*m}:{x:C*m,y:w*y}}const jx=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var o,r;const{x:c,y:s,placement:d,middlewareData:h}=a,v=await Sx(a,t);return d===((o=h.offset)==null?void 0:o.placement)&&(r=h.arrow)!=null&&r.alignmentOffset?{}:{x:c+v.x,y:s+v.y,data:{...v,placement:d}}}}},Mx=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:o,y:r,placement:c,platform:s}=a,{mainAxis:d=!0,crossAxis:h=!1,limiter:v={fn:R=>{let{x:T,y:N}=R;return{x:T,y:N}}},...m}=Jn(t,a),y={x:o,y:r},b=await s.detectOverflow(a,m),C=En(Wn(c)),w=jf(C);let E=y[w],j=y[C];if(d){const R=w==="y"?"top":"left",T=w==="y"?"bottom":"right",N=E+b[R],_=E-b[T];E=$0(N,E,_)}if(h){const R=C==="y"?"top":"left",T=C==="y"?"bottom":"right",N=j+b[R],_=j-b[T];j=$0(N,j,_)}const M=v.fn({...a,[w]:E,[C]:j});return{...M,data:{x:M.x-o,y:M.y-r,enabled:{[w]:d,[C]:h}}}}}},Ex=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:o,y:r,placement:c,rects:s,middlewareData:d}=a,{offset:h=0,mainAxis:v=!0,crossAxis:m=!0}=Jn(t,a),y={x:o,y:r},b=En(c),C=jf(b);let w=y[C],E=y[b];const j=Jn(h,a),M=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(v){const N=C==="y"?"height":"width",_=s.reference[C]-s.floating[N]+M.mainAxis,k=s.reference[C]+s.reference[N]-M.mainAxis;w<_?w=_:w>k&&(w=k)}if(m){var R,T;const N=C==="y"?"width":"height",_=p4.has(Wn(c)),k=s.reference[b]-s.floating[N]+(_&&((R=d.offset)==null?void 0:R[b])||0)+(_?0:M.crossAxis),U=s.reference[b]+s.reference[N]+(_?0:((T=d.offset)==null?void 0:T[b])||0)-(_?M.crossAxis:0);E<k?E=k:E>U&&(E=U)}return{[C]:w,[b]:E}}}},Tx=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var o,r;const{placement:c,rects:s,platform:d,elements:h}=a,{apply:v=()=>{},...m}=Jn(t,a),y=await d.detectOverflow(a,m),b=Wn(c),C=xo(c),w=En(c)==="y",{width:E,height:j}=s.floating;let M,R;b==="top"||b==="bottom"?(M=b,R=C===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(R=b,M=C==="end"?"top":"bottom");const T=j-y.top-y.bottom,N=E-y.left-y.right,_=Al(j-y[M],T),k=Al(E-y[R],N),U=!a.middlewareData.shift;let z=_,W=k;if((o=a.middlewareData.shift)!=null&&o.enabled.x&&(W=N),(r=a.middlewareData.shift)!=null&&r.enabled.y&&(z=T),U&&!C){const ue=Kt(y.left,0),oe=Kt(y.right,0),ie=Kt(y.top,0),ge=Kt(y.bottom,0);w?W=E-2*(ue!==0||oe!==0?ue+oe:Kt(y.left,y.right)):z=j-2*(ie!==0||ge!==0?ie+ge:Kt(y.top,y.bottom))}await v({...a,availableWidth:W,availableHeight:z});const te=await d.getDimensions(h.floating);return E!==te.width||j!==te.height?{reset:{rects:!0}}:{}}}};function es(){return typeof window<"u"}function yo(t){return h4(t)?(t.nodeName||"").toLowerCase():"#document"}function Ft(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Ln(t){var a;return(a=(h4(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function h4(t){return es()?t instanceof Node||t instanceof Ft(t).Node:!1}function gn(t){return es()?t instanceof Element||t instanceof Ft(t).Element:!1}function Nn(t){return es()?t instanceof HTMLElement||t instanceof Ft(t).HTMLElement:!1}function T3(t){return!es()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ft(t).ShadowRoot}const Rx=new Set(["inline","contents"]);function Zr(t){const{overflow:a,overflowX:o,overflowY:r,display:c}=mn(t);return/auto|scroll|overlay|hidden|clip/.test(a+r+o)&&!Rx.has(c)}const _x=new Set(["table","td","th"]);function Nx(t){return _x.has(yo(t))}const Lx=[":popover-open",":modal"];function ts(t){return Lx.some(a=>{try{return t.matches(a)}catch{return!1}})}const Ox=["transform","translate","scale","rotate","perspective"],Ax=["transform","translate","scale","rotate","perspective","filter"],zx=["paint","layout","strict","content"];function Tf(t){const a=Rf(),o=gn(t)?mn(t):t;return Ox.some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!a&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!a&&(o.filter?o.filter!=="none":!1)||Ax.some(r=>(o.willChange||"").includes(r))||zx.some(r=>(o.contain||"").includes(r))}function Hx(t){let a=zl(t);for(;Nn(a)&&!po(a);){if(Tf(a))return a;if(ts(a))return null;a=zl(a)}return null}function Rf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Vx=new Set(["html","body","#document"]);function po(t){return Vx.has(yo(t))}function mn(t){return Ft(t).getComputedStyle(t)}function ns(t){return gn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function zl(t){if(yo(t)==="html")return t;const a=t.assignedSlot||t.parentNode||T3(t)&&t.host||Ln(t);return T3(a)?a.host:a}function g4(t){const a=zl(t);return po(a)?t.ownerDocument?t.ownerDocument.body:t.body:Nn(a)&&Zr(a)?a:g4(a)}function Ar(t,a,o){var r;a===void 0&&(a=[]),o===void 0&&(o=!0);const c=g4(t),s=c===((r=t.ownerDocument)==null?void 0:r.body),d=Ft(c);if(s){const h=U0(d);return a.concat(d,d.visualViewport||[],Zr(c)?c:[],h&&o?Ar(h):[])}return a.concat(c,Ar(c,[],o))}function U0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function m4(t){const a=mn(t);let o=parseFloat(a.width)||0,r=parseFloat(a.height)||0;const c=Nn(t),s=c?t.offsetWidth:o,d=c?t.offsetHeight:r,h=Ac(o)!==s||Ac(r)!==d;return h&&(o=s,r=d),{width:o,height:r,$:h}}function _f(t){return gn(t)?t:t.contextElement}function co(t){const a=_f(t);if(!Nn(a))return Tn(1);const o=a.getBoundingClientRect(),{width:r,height:c,$:s}=m4(a);let d=(s?Ac(o.width):o.width)/r,h=(s?Ac(o.height):o.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const kx=Tn(0);function v4(t){const a=Ft(t);return!Rf()||!a.visualViewport?kx:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function Dx(t,a,o){return a===void 0&&(a=!1),!o||a&&o!==Ft(t)?!1:a}function sa(t,a,o,r){a===void 0&&(a=!1),o===void 0&&(o=!1);const c=t.getBoundingClientRect(),s=_f(t);let d=Tn(1);a&&(r?gn(r)&&(d=co(r)):d=co(t));const h=Dx(s,o,r)?v4(s):Tn(0);let v=(c.left+h.x)/d.x,m=(c.top+h.y)/d.y,y=c.width/d.x,b=c.height/d.y;if(s){const C=Ft(s),w=r&&gn(r)?Ft(r):r;let E=C,j=U0(E);for(;j&&r&&w!==E;){const M=co(j),R=j.getBoundingClientRect(),T=mn(j),N=R.left+(j.clientLeft+parseFloat(T.paddingLeft))*M.x,_=R.top+(j.clientTop+parseFloat(T.paddingTop))*M.y;v*=M.x,m*=M.y,y*=M.x,b*=M.y,v+=N,m+=_,E=Ft(j),j=U0(E)}}return Hc({width:y,height:b,x:v,y:m})}function ls(t,a){const o=ns(t).scrollLeft;return a?a.left+o:sa(Ln(t)).left+o}function x4(t,a){const o=t.getBoundingClientRect(),r=o.left+a.scrollLeft-ls(t,o),c=o.top+a.scrollTop;return{x:r,y:c}}function Bx(t){let{elements:a,rect:o,offsetParent:r,strategy:c}=t;const s=c==="fixed",d=Ln(r),h=a?ts(a.floating):!1;if(r===d||h&&s)return o;let v={scrollLeft:0,scrollTop:0},m=Tn(1);const y=Tn(0),b=Nn(r);if((b||!b&&!s)&&((yo(r)!=="body"||Zr(d))&&(v=ns(r)),Nn(r))){const w=sa(r);m=co(r),y.x=w.x+r.clientLeft,y.y=w.y+r.clientTop}const C=d&&!b&&!s?x4(d,v):Tn(0);return{width:o.width*m.x,height:o.height*m.y,x:o.x*m.x-v.scrollLeft*m.x+y.x+C.x,y:o.y*m.y-v.scrollTop*m.y+y.y+C.y}}function $x(t){return Array.from(t.getClientRects())}function Zx(t){const a=Ln(t),o=ns(t),r=t.ownerDocument.body,c=Kt(a.scrollWidth,a.clientWidth,r.scrollWidth,r.clientWidth),s=Kt(a.scrollHeight,a.clientHeight,r.scrollHeight,r.clientHeight);let d=-o.scrollLeft+ls(t);const h=-o.scrollTop;return mn(r).direction==="rtl"&&(d+=Kt(a.clientWidth,r.clientWidth)-c),{width:c,height:s,x:d,y:h}}const R3=25;function Ux(t,a){const o=Ft(t),r=Ln(t),c=o.visualViewport;let s=r.clientWidth,d=r.clientHeight,h=0,v=0;if(c){s=c.width,d=c.height;const y=Rf();(!y||y&&a==="fixed")&&(h=c.offsetLeft,v=c.offsetTop)}const m=ls(r);if(m<=0){const y=r.ownerDocument,b=y.body,C=getComputedStyle(b),w=y.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(r.clientWidth-b.clientWidth-w);E<=R3&&(s-=E)}else m<=R3&&(s+=m);return{width:s,height:d,x:h,y:v}}const Yx=new Set(["absolute","fixed"]);function Xx(t,a){const o=sa(t,!0,a==="fixed"),r=o.top+t.clientTop,c=o.left+t.clientLeft,s=Nn(t)?co(t):Tn(1),d=t.clientWidth*s.x,h=t.clientHeight*s.y,v=c*s.x,m=r*s.y;return{width:d,height:h,x:v,y:m}}function _3(t,a,o){let r;if(a==="viewport")r=Ux(t,o);else if(a==="document")r=Zx(Ln(t));else if(gn(a))r=Xx(a,o);else{const c=v4(t);r={x:a.x-c.x,y:a.y-c.y,width:a.width,height:a.height}}return Hc(r)}function y4(t,a){const o=zl(t);return o===a||!gn(o)||po(o)?!1:mn(o).position==="fixed"||y4(o,a)}function Px(t,a){const o=a.get(t);if(o)return o;let r=Ar(t,[],!1).filter(h=>gn(h)&&yo(h)!=="body"),c=null;const s=mn(t).position==="fixed";let d=s?zl(t):t;for(;gn(d)&&!po(d);){const h=mn(d),v=Tf(d);!v&&h.position==="fixed"&&(c=null),(s?!v&&!c:!v&&h.position==="static"&&!!c&&Yx.has(c.position)||Zr(d)&&!v&&y4(t,d))?r=r.filter(y=>y!==d):c=h,d=zl(d)}return a.set(t,r),r}function qx(t){let{element:a,boundary:o,rootBoundary:r,strategy:c}=t;const d=[...o==="clippingAncestors"?ts(a)?[]:Px(a,this._c):[].concat(o),r],h=d[0],v=d.reduce((m,y)=>{const b=_3(a,y,c);return m.top=Kt(b.top,m.top),m.right=Al(b.right,m.right),m.bottom=Al(b.bottom,m.bottom),m.left=Kt(b.left,m.left),m},_3(a,h,c));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function Gx(t){const{width:a,height:o}=m4(t);return{width:a,height:o}}function Qx(t,a,o){const r=Nn(a),c=Ln(a),s=o==="fixed",d=sa(t,!0,s,a);let h={scrollLeft:0,scrollTop:0};const v=Tn(0);function m(){v.x=ls(c)}if(r||!r&&!s)if((yo(a)!=="body"||Zr(c))&&(h=ns(a)),r){const w=sa(a,!0,s,a);v.x=w.x+a.clientLeft,v.y=w.y+a.clientTop}else c&&m();s&&!r&&c&&m();const y=c&&!r&&!s?x4(c,h):Tn(0),b=d.left+h.scrollLeft-v.x-y.x,C=d.top+h.scrollTop-v.y-y.y;return{x:b,y:C,width:d.width,height:d.height}}function o0(t){return mn(t).position==="static"}function N3(t,a){if(!Nn(t)||mn(t).position==="fixed")return null;if(a)return a(t);let o=t.offsetParent;return Ln(t)===o&&(o=o.ownerDocument.body),o}function b4(t,a){const o=Ft(t);if(ts(t))return o;if(!Nn(t)){let c=zl(t);for(;c&&!po(c);){if(gn(c)&&!o0(c))return c;c=zl(c)}return o}let r=N3(t,a);for(;r&&Nx(r)&&o0(r);)r=N3(r,a);return r&&po(r)&&o0(r)&&!Tf(r)?o:r||Hx(t)||o}const Kx=async function(t){const a=this.getOffsetParent||b4,o=this.getDimensions,r=await o(t.floating);return{reference:Qx(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fx(t){return mn(t).direction==="rtl"}const Jx={convertOffsetParentRelativeRectToViewportRelativeRect:Bx,getDocumentElement:Ln,getClippingRect:qx,getOffsetParent:b4,getElementRects:Kx,getClientRects:$x,getDimensions:Gx,getScale:co,isElement:gn,isRTL:Fx};function C4(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function Wx(t,a){let o=null,r;const c=Ln(t);function s(){var h;clearTimeout(r),(h=o)==null||h.disconnect(),o=null}function d(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),s();const m=t.getBoundingClientRect(),{left:y,top:b,width:C,height:w}=m;if(h||a(),!C||!w)return;const E=pc(b),j=pc(c.clientWidth-(y+C)),M=pc(c.clientHeight-(b+w)),R=pc(y),N={rootMargin:-E+"px "+-j+"px "+-M+"px "+-R+"px",threshold:Kt(0,Al(1,v))||1};let _=!0;function k(U){const z=U[0].intersectionRatio;if(z!==v){if(!_)return d();z?d(!1,z):r=setTimeout(()=>{d(!1,1e-7)},1e3)}z===1&&!C4(m,t.getBoundingClientRect())&&d(),_=!1}try{o=new IntersectionObserver(k,{...N,root:c.ownerDocument})}catch{o=new IntersectionObserver(k,N)}o.observe(t)}return d(!0),s}function Ix(t,a,o,r){r===void 0&&(r={});const{ancestorScroll:c=!0,ancestorResize:s=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=r,m=_f(t),y=c||s?[...m?Ar(m):[],...Ar(a)]:[];y.forEach(R=>{c&&R.addEventListener("scroll",o,{passive:!0}),s&&R.addEventListener("resize",o)});const b=m&&h?Wx(m,o):null;let C=-1,w=null;d&&(w=new ResizeObserver(R=>{let[T]=R;T&&T.target===m&&w&&(w.unobserve(a),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var N;(N=w)==null||N.observe(a)})),o()}),m&&!v&&w.observe(m),w.observe(a));let E,j=v?sa(t):null;v&&M();function M(){const R=sa(t);j&&!C4(j,R)&&o(),j=R,E=requestAnimationFrame(M)}return o(),()=>{var R;y.forEach(T=>{c&&T.removeEventListener("scroll",o),s&&T.removeEventListener("resize",o)}),b==null||b(),(R=w)==null||R.disconnect(),w=null,v&&cancelAnimationFrame(E)}}const ey=jx,ty=Mx,ny=Cx,ly=Tx,ay=wx,L3=bx,oy=Ex,ry=(t,a,o)=>{const r=new Map,c={platform:Jx,...o},s={...c.platform,_c:r};return yx(t,a,{...c,platform:s})};var iy=typeof document<"u",cy=function(){},Ec=iy?g.useLayoutEffect:cy;function Vc(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let o,r,c;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==a.length)return!1;for(r=o;r--!==0;)if(!Vc(t[r],a[r]))return!1;return!0}if(c=Object.keys(t),o=c.length,o!==Object.keys(a).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(a,c[r]))return!1;for(r=o;r--!==0;){const s=c[r];if(!(s==="_owner"&&t.$$typeof)&&!Vc(t[s],a[s]))return!1}return!0}return t!==t&&a!==a}function w4(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function O3(t,a){const o=w4(t);return Math.round(a*o)/o}function r0(t){const a=g.useRef(t);return Ec(()=>{a.current=t}),a}function sy(t){t===void 0&&(t={});const{placement:a="bottom",strategy:o="absolute",middleware:r=[],platform:c,elements:{reference:s,floating:d}={},transform:h=!0,whileElementsMounted:v,open:m}=t,[y,b]=g.useState({x:0,y:0,strategy:o,placement:a,middlewareData:{},isPositioned:!1}),[C,w]=g.useState(r);Vc(C,r)||w(r);const[E,j]=g.useState(null),[M,R]=g.useState(null),T=g.useCallback(K=>{K!==U.current&&(U.current=K,j(K))},[]),N=g.useCallback(K=>{K!==z.current&&(z.current=K,R(K))},[]),_=s||E,k=d||M,U=g.useRef(null),z=g.useRef(null),W=g.useRef(y),te=v!=null,ue=r0(v),oe=r0(c),ie=r0(m),ge=g.useCallback(()=>{if(!U.current||!z.current)return;const K={placement:a,strategy:o,middleware:C};oe.current&&(K.platform=oe.current),ry(U.current,z.current,K).then(ae=>{const pe={...ae,isPositioned:ie.current!==!1};fe.current&&!Vc(W.current,pe)&&(W.current=pe,Br.flushSync(()=>{b(pe)}))})},[C,a,o,oe,ie]);Ec(()=>{m===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,b(K=>({...K,isPositioned:!1})))},[m]);const fe=g.useRef(!1);Ec(()=>(fe.current=!0,()=>{fe.current=!1}),[]),Ec(()=>{if(_&&(U.current=_),k&&(z.current=k),_&&k){if(ue.current)return ue.current(_,k,ge);ge()}},[_,k,ge,ue,te]);const xe=g.useMemo(()=>({reference:U,floating:z,setReference:T,setFloating:N}),[T,N]),H=g.useMemo(()=>({reference:_,floating:k}),[_,k]),D=g.useMemo(()=>{const K={position:o,left:0,top:0};if(!H.floating)return K;const ae=O3(H.floating,y.x),pe=O3(H.floating,y.y);return h?{...K,transform:"translate("+ae+"px, "+pe+"px)",...w4(H.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:ae,top:pe}},[o,h,H.floating,y.x,y.y]);return g.useMemo(()=>({...y,update:ge,refs:xe,elements:H,floatingStyles:D}),[y,ge,xe,H,D])}const uy=t=>{function a(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:t,fn(o){const{element:r,padding:c}=typeof t=="function"?t(o):t;return r&&a(r)?r.current!=null?L3({element:r.current,padding:c}).fn(o):{}:r?L3({element:r,padding:c}).fn(o):{}}}},fy=(t,a)=>({...ey(t),options:[t,a]}),dy=(t,a)=>({...ty(t),options:[t,a]}),py=(t,a)=>({...oy(t),options:[t,a]}),hy=(t,a)=>({...ny(t),options:[t,a]}),gy=(t,a)=>({...ly(t),options:[t,a]}),my=(t,a)=>({...ay(t),options:[t,a]}),vy=(t,a)=>({...uy(t),options:[t,a]});var xy="Arrow",S4=g.forwardRef((t,a)=>{const{children:o,width:r=10,height:c=5,...s}=t;return u.jsx(Ke.svg,{...s,ref:a,width:r,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});S4.displayName=xy;var yy=S4;function by(t){const[a,o]=g.useState(void 0);return Mt(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const s=c[0];let d,h;if("borderBoxSize"in s){const v=s.borderBoxSize,m=Array.isArray(v)?v[0]:v;d=m.inlineSize,h=m.blockSize}else d=t.offsetWidth,h=t.offsetHeight;o({width:d,height:h})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else o(void 0)},[t]),a}var Nf="Popper",[j4,bo]=Dr(Nf),[Cy,M4]=j4(Nf),E4=t=>{const{__scopePopper:a,children:o}=t,[r,c]=g.useState(null);return u.jsx(Cy,{scope:a,anchor:r,onAnchorChange:c,children:o})};E4.displayName=Nf;var T4="PopperAnchor",R4=g.forwardRef((t,a)=>{const{__scopePopper:o,virtualRef:r,...c}=t,s=M4(T4,o),d=g.useRef(null),h=Ie(a,d),v=g.useRef(null);return g.useEffect(()=>{const m=v.current;v.current=(r==null?void 0:r.current)||d.current,m!==v.current&&s.onAnchorChange(v.current)}),r?null:u.jsx(Ke.div,{...c,ref:h})});R4.displayName=T4;var Lf="PopperContent",[wy,Sy]=j4(Lf),_4=g.forwardRef((t,a)=>{var Q,de,ye,Ne,Re,Le;const{__scopePopper:o,side:r="bottom",sideOffset:c=0,align:s="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:m=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:w="optimized",onPlaced:E,...j}=t,M=M4(Lf,o),[R,T]=g.useState(null),N=Ie(a,ht=>T(ht)),[_,k]=g.useState(null),U=by(_),z=(U==null?void 0:U.width)??0,W=(U==null?void 0:U.height)??0,te=r+(s!=="center"?"-"+s:""),ue=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},oe=Array.isArray(m)?m:[m],ie=oe.length>0,ge={padding:ue,boundary:oe.filter(My),altBoundary:ie},{refs:fe,floatingStyles:xe,placement:H,isPositioned:D,middlewareData:K}=sy({strategy:"fixed",placement:te,whileElementsMounted:(...ht)=>Ix(...ht,{animationFrame:w==="always"}),elements:{reference:M.anchor},middleware:[fy({mainAxis:c+W,alignmentAxis:d}),v&&dy({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?py():void 0,...ge}),v&&hy({...ge}),gy({...ge,apply:({elements:ht,rects:et,availableWidth:Bt,availableHeight:Wt})=>{const{width:On,height:ga}=et.reference,xn=ht.floating.style;xn.setProperty("--radix-popper-available-width",`${Bt}px`),xn.setProperty("--radix-popper-available-height",`${Wt}px`),xn.setProperty("--radix-popper-anchor-width",`${On}px`),xn.setProperty("--radix-popper-anchor-height",`${ga}px`)}}),_&&vy({element:_,padding:h}),Ey({arrowWidth:z,arrowHeight:W}),C&&my({strategy:"referenceHidden",...ge})]}),[ae,pe]=O4(H),O=ca(E);Mt(()=>{D&&(O==null||O())},[D,O]);const X=(Q=K.arrow)==null?void 0:Q.x,J=(de=K.arrow)==null?void 0:de.y,ee=((ye=K.arrow)==null?void 0:ye.centerOffset)!==0,[se,I]=g.useState();return Mt(()=>{R&&I(window.getComputedStyle(R).zIndex)},[R]),u.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...xe,transform:D?xe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(Ne=K.transformOrigin)==null?void 0:Ne.x,(Re=K.transformOrigin)==null?void 0:Re.y].join(" "),...((Le=K.hide)==null?void 0:Le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(wy,{scope:o,placedSide:ae,onArrowChange:k,arrowX:X,arrowY:J,shouldHideArrow:ee,children:u.jsx(Ke.div,{"data-side":ae,"data-align":pe,...j,ref:N,style:{...j.style,animation:D?void 0:"none"}})})})});_4.displayName=Lf;var N4="PopperArrow",jy={top:"bottom",right:"left",bottom:"top",left:"right"},L4=g.forwardRef(function(a,o){const{__scopePopper:r,...c}=a,s=Sy(N4,r),d=jy[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(yy,{...c,ref:o,style:{...c.style,display:"block"}})})});L4.displayName=N4;function My(t){return t!==null}var Ey=t=>({name:"transformOrigin",options:t,fn(a){var M,R,T;const{placement:o,rects:r,middlewareData:c}=a,d=((M=c.arrow)==null?void 0:M.centerOffset)!==0,h=d?0:t.arrowWidth,v=d?0:t.arrowHeight,[m,y]=O4(o),b={start:"0%",center:"50%",end:"100%"}[y],C=(((R=c.arrow)==null?void 0:R.x)??0)+h/2,w=(((T=c.arrow)==null?void 0:T.y)??0)+v/2;let E="",j="";return m==="bottom"?(E=d?b:`${C}px`,j=`${-v}px`):m==="top"?(E=d?b:`${C}px`,j=`${r.floating.height+v}px`):m==="right"?(E=`${-v}px`,j=d?b:`${w}px`):m==="left"&&(E=`${r.floating.width+v}px`,j=d?b:`${w}px`),{data:{x:E,y:j}}}});function O4(t){const[a,o="center"]=t.split("-");return[a,o]}var Of=E4,as=R4,Af=_4,zf=L4,Ty="Portal",os=g.forwardRef((t,a)=>{var h;const{container:o,...r}=t,[c,s]=g.useState(!1);Mt(()=>s(!0),[]);const d=o||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?Vv.createPortal(u.jsx(Ke.div,{...r,ref:a}),d):null});os.displayName=Ty;function Ry(t,a){return g.useReducer((o,r)=>a[o][r]??o,t)}var Ur=t=>{const{present:a,children:o}=t,r=_y(a),c=typeof o=="function"?o({present:r.isPresent}):g.Children.only(o),s=Ie(r.ref,Ny(c));return typeof o=="function"||r.isPresent?g.cloneElement(c,{ref:s}):null};Ur.displayName="Presence";function _y(t){const[a,o]=g.useState(),r=g.useRef(null),c=g.useRef(t),s=g.useRef("none"),d=t?"mounted":"unmounted",[h,v]=Ry(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const m=hc(r.current);s.current=h==="mounted"?m:"none"},[h]),Mt(()=>{const m=r.current,y=c.current;if(y!==t){const C=s.current,w=hc(m);t?v("MOUNT"):w==="none"||(m==null?void 0:m.display)==="none"?v("UNMOUNT"):v(y&&C!==w?"ANIMATION_OUT":"UNMOUNT"),c.current=t}},[t,v]),Mt(()=>{if(a){let m;const y=a.ownerDocument.defaultView??window,b=w=>{const j=hc(r.current).includes(CSS.escape(w.animationName));if(w.target===a&&j&&(v("ANIMATION_END"),!c.current)){const M=a.style.animationFillMode;a.style.animationFillMode="forwards",m=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=M)})}},C=w=>{w.target===a&&(s.current=hc(r.current))};return a.addEventListener("animationstart",C),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{y.clearTimeout(m),a.removeEventListener("animationstart",C),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else v("ANIMATION_END")},[a,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:g.useCallback(m=>{r.current=m?getComputedStyle(m):null,o(m)},[])}}function hc(t){return(t==null?void 0:t.animationName)||"none"}function Ny(t){var r,c;let a=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?t.ref:(a=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var Ly=Hp[" useInsertionEffect ".trim().toString()]||Mt;function kc({prop:t,defaultProp:a,onChange:o=()=>{},caller:r}){const[c,s,d]=Oy({defaultProp:a,onChange:o}),h=t!==void 0,v=h?t:c;{const y=g.useRef(t!==void 0);g.useEffect(()=>{const b=y.current;b!==h&&console.warn(`${r} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,r])}const m=g.useCallback(y=>{var b;if(h){const C=Ay(y)?y(t):y;C!==t&&((b=d.current)==null||b.call(d,C))}else s(y)},[h,t,s,d]);return[v,m]}function Oy({defaultProp:t,onChange:a}){const[o,r]=g.useState(t),c=g.useRef(o),s=g.useRef(a);return Ly(()=>{s.current=a},[a]),g.useEffect(()=>{var d;c.current!==o&&((d=s.current)==null||d.call(s,o),c.current=o)},[o,c]),[o,r,s]}function Ay(t){return typeof t=="function"}var zy=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},to=new WeakMap,gc=new WeakMap,mc={},i0=0,A4=function(t){return t&&(t.host||A4(t.parentNode))},Hy=function(t,a){return a.map(function(o){if(t.contains(o))return o;var r=A4(o);return r&&t.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",t,". Doing nothing"),null)}).filter(function(o){return!!o})},Vy=function(t,a,o,r){var c=Hy(a,Array.isArray(t)?t:[t]);mc[o]||(mc[o]=new WeakMap);var s=mc[o],d=[],h=new Set,v=new Set(c),m=function(b){!b||h.has(b)||(h.add(b),m(b.parentNode))};c.forEach(m);var y=function(b){!b||v.has(b)||Array.prototype.forEach.call(b.children,function(C){if(h.has(C))y(C);else try{var w=C.getAttribute(r),E=w!==null&&w!=="false",j=(to.get(C)||0)+1,M=(s.get(C)||0)+1;to.set(C,j),s.set(C,M),d.push(C),j===1&&E&&gc.set(C,!0),M===1&&C.setAttribute(o,"true"),E||C.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",C,R)}})};return y(a),h.clear(),i0++,function(){d.forEach(function(b){var C=to.get(b)-1,w=s.get(b)-1;to.set(b,C),s.set(b,w),C||(gc.has(b)||b.removeAttribute(r),gc.delete(b)),w||b.removeAttribute(o)}),i0--,i0||(to=new WeakMap,to=new WeakMap,gc=new WeakMap,mc={})}},z4=function(t,a,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),c=zy(t);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),Vy(r,c,o,"aria-hidden")):function(){return null}},jn=function(){return jn=Object.assign||function(a){for(var o,r=1,c=arguments.length;r<c;r++){o=arguments[r];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=o[s])}return a},jn.apply(this,arguments)};function H4(t,a){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&a.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(t);c<r.length;c++)a.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(t,r[c])&&(o[r[c]]=t[r[c]]);return o}function ky(t,a,o){if(o||arguments.length===2)for(var r=0,c=a.length,s;r<c;r++)(s||!(r in a))&&(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return t.concat(s||Array.prototype.slice.call(a))}var Tc="right-scroll-bar-position",Rc="width-before-scroll-bar",Dy="with-scroll-bars-hidden",By="--removed-body-scroll-bar-size";function c0(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function $y(t,a){var o=g.useState(function(){return{value:t,callback:a,facade:{get current(){return o.value},set current(r){var c=o.value;c!==r&&(o.value=r,o.callback(r,c))}}}})[0];return o.callback=a,o.facade}var Zy=typeof window<"u"?g.useLayoutEffect:g.useEffect,A3=new WeakMap;function Uy(t,a){var o=$y(null,function(r){return t.forEach(function(c){return c0(c,r)})});return Zy(function(){var r=A3.get(o);if(r){var c=new Set(r),s=new Set(t),d=o.current;c.forEach(function(h){s.has(h)||c0(h,null)}),s.forEach(function(h){c.has(h)||c0(h,d)})}A3.set(o,t)},[t]),o}function Yy(t){return t}function Xy(t,a){a===void 0&&(a=Yy);var o=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:t},useMedium:function(s){var d=a(s,r);return o.push(d),function(){o=o.filter(function(h){return h!==d})}},assignSyncMedium:function(s){for(r=!0;o.length;){var d=o;o=[],d.forEach(s)}o={push:function(h){return s(h)},filter:function(){return o}}},assignMedium:function(s){r=!0;var d=[];if(o.length){var h=o;o=[],h.forEach(s),d=o}var v=function(){var y=d;d=[],y.forEach(s)},m=function(){return Promise.resolve().then(v)};m(),o={push:function(y){d.push(y),m()},filter:function(y){return d=d.filter(y),o}}}};return c}function Py(t){t===void 0&&(t={});var a=Xy(null);return a.options=jn({async:!0,ssr:!1},t),a}var V4=function(t){var a=t.sideCar,o=H4(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=a.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,jn({},o))};V4.isSideCarExport=!0;function qy(t,a){return t.useMedium(a),V4}var k4=Py(),s0=function(){},rs=g.forwardRef(function(t,a){var o=g.useRef(null),r=g.useState({onScrollCapture:s0,onWheelCapture:s0,onTouchMoveCapture:s0}),c=r[0],s=r[1],d=t.forwardProps,h=t.children,v=t.className,m=t.removeScrollBar,y=t.enabled,b=t.shards,C=t.sideCar,w=t.noRelative,E=t.noIsolation,j=t.inert,M=t.allowPinchZoom,R=t.as,T=R===void 0?"div":R,N=t.gapMode,_=H4(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=C,U=Uy([o,a]),z=jn(jn({},_),c);return g.createElement(g.Fragment,null,y&&g.createElement(k,{sideCar:k4,removeScrollBar:m,shards:b,noRelative:w,noIsolation:E,inert:j,setCallbacks:s,allowPinchZoom:!!M,lockRef:o,gapMode:N}),d?g.cloneElement(g.Children.only(h),jn(jn({},z),{ref:U})):g.createElement(T,jn({},z,{className:v,ref:U}),h))});rs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rs.classNames={fullWidth:Rc,zeroRight:Tc};var Gy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qy(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=Gy();return a&&t.setAttribute("nonce",a),t}function Ky(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function Fy(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var Jy=function(){var t=0,a=null;return{add:function(o){t==0&&(a=Qy())&&(Ky(a,o),Fy(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},Wy=function(){var t=Jy();return function(a,o){g.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&o])}},D4=function(){var t=Wy(),a=function(o){var r=o.styles,c=o.dynamic;return t(r,c),null};return a},Iy={left:0,top:0,right:0,gap:0},u0=function(t){return parseInt(t||"",10)||0},eb=function(t){var a=window.getComputedStyle(document.body),o=a[t==="padding"?"paddingLeft":"marginLeft"],r=a[t==="padding"?"paddingTop":"marginTop"],c=a[t==="padding"?"paddingRight":"marginRight"];return[u0(o),u0(r),u0(c)]},tb=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Iy;var a=eb(t),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,r-o+a[2]-a[0])}},nb=D4(),so="data-scroll-locked",lb=function(t,a,o,r){var c=t.left,s=t.top,d=t.right,h=t.gap;return o===void 0&&(o="margin"),`
115
+ .`.concat(Dy,` {
116
+ overflow: hidden `).concat(r,`;
117
+ padding-right: `).concat(h,"px ").concat(r,`;
118
+ }
119
+ body[`).concat(so,`] {
120
+ overflow: hidden `).concat(r,`;
121
+ overscroll-behavior: contain;
122
+ `).concat([a&&"position: relative ".concat(r,";"),o==="margin"&&`
123
+ padding-left: `.concat(c,`px;
124
+ padding-top: `).concat(s,`px;
125
+ padding-right: `).concat(d,`px;
126
+ margin-left:0;
127
+ margin-top:0;
128
+ margin-right: `).concat(h,"px ").concat(r,`;
129
+ `),o==="padding"&&"padding-right: ".concat(h,"px ").concat(r,";")].filter(Boolean).join(""),`
130
+ }
131
+
132
+ .`).concat(Tc,` {
133
+ right: `).concat(h,"px ").concat(r,`;
134
+ }
135
+
136
+ .`).concat(Rc,` {
137
+ margin-right: `).concat(h,"px ").concat(r,`;
138
+ }
139
+
140
+ .`).concat(Tc," .").concat(Tc,` {
141
+ right: 0 `).concat(r,`;
142
+ }
143
+
144
+ .`).concat(Rc," .").concat(Rc,` {
145
+ margin-right: 0 `).concat(r,`;
146
+ }
147
+
148
+ body[`).concat(so,`] {
149
+ `).concat(By,": ").concat(h,`px;
150
+ }
151
+ `)},z3=function(){var t=parseInt(document.body.getAttribute(so)||"0",10);return isFinite(t)?t:0},ab=function(){g.useEffect(function(){return document.body.setAttribute(so,(z3()+1).toString()),function(){var t=z3()-1;t<=0?document.body.removeAttribute(so):document.body.setAttribute(so,t.toString())}},[])},ob=function(t){var a=t.noRelative,o=t.noImportant,r=t.gapMode,c=r===void 0?"margin":r;ab();var s=g.useMemo(function(){return tb(c)},[c]);return g.createElement(nb,{styles:lb(s,!a,c,o?"":"!important")})},Y0=!1;if(typeof window<"u")try{var vc=Object.defineProperty({},"passive",{get:function(){return Y0=!0,!0}});window.addEventListener("test",vc,vc),window.removeEventListener("test",vc,vc)}catch{Y0=!1}var no=Y0?{passive:!1}:!1,rb=function(t){return t.tagName==="TEXTAREA"},B4=function(t,a){if(!(t instanceof Element))return!1;var o=window.getComputedStyle(t);return o[a]!=="hidden"&&!(o.overflowY===o.overflowX&&!rb(t)&&o[a]==="visible")},ib=function(t){return B4(t,"overflowY")},cb=function(t){return B4(t,"overflowX")},H3=function(t,a){var o=a.ownerDocument,r=a;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=$4(t,r);if(c){var s=Z4(t,r),d=s[1],h=s[2];if(d>h)return!0}r=r.parentNode}while(r&&r!==o.body);return!1},sb=function(t){var a=t.scrollTop,o=t.scrollHeight,r=t.clientHeight;return[a,o,r]},ub=function(t){var a=t.scrollLeft,o=t.scrollWidth,r=t.clientWidth;return[a,o,r]},$4=function(t,a){return t==="v"?ib(a):cb(a)},Z4=function(t,a){return t==="v"?sb(a):ub(a)},fb=function(t,a){return t==="h"&&a==="rtl"?-1:1},db=function(t,a,o,r,c){var s=fb(t,window.getComputedStyle(a).direction),d=s*r,h=o.target,v=a.contains(h),m=!1,y=d>0,b=0,C=0;do{if(!h)break;var w=Z4(t,h),E=w[0],j=w[1],M=w[2],R=j-M-s*E;(E||R)&&$4(t,h)&&(b+=R,C+=E);var T=h.parentNode;h=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!v&&h!==document.body||v&&(a.contains(h)||a===h));return(y&&Math.abs(b)<1||!y&&Math.abs(C)<1)&&(m=!0),m},xc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},V3=function(t){return[t.deltaX,t.deltaY]},k3=function(t){return t&&"current"in t?t.current:t},pb=function(t,a){return t[0]===a[0]&&t[1]===a[1]},hb=function(t){return`
152
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
153
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
154
+ `)},gb=0,lo=[];function mb(t){var a=g.useRef([]),o=g.useRef([0,0]),r=g.useRef(),c=g.useState(gb++)[0],s=g.useState(D4)[0],d=g.useRef(t);g.useEffect(function(){d.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(c));var j=ky([t.lockRef.current],(t.shards||[]).map(k3),!0).filter(Boolean);return j.forEach(function(M){return M.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),j.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(c))})}}},[t.inert,t.lockRef.current,t.shards]);var h=g.useCallback(function(j,M){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!d.current.allowPinchZoom;var R=xc(j),T=o.current,N="deltaX"in j?j.deltaX:T[0]-R[0],_="deltaY"in j?j.deltaY:T[1]-R[1],k,U=j.target,z=Math.abs(N)>Math.abs(_)?"h":"v";if("touches"in j&&z==="h"&&U.type==="range")return!1;var W=window.getSelection(),te=W&&W.anchorNode,ue=te?te===U||te.contains(U):!1;if(ue)return!1;var oe=H3(z,U);if(!oe)return!0;if(oe?k=z:(k=z==="v"?"h":"v",oe=H3(z,U)),!oe)return!1;if(!r.current&&"changedTouches"in j&&(N||_)&&(r.current=k),!k)return!0;var ie=r.current||k;return db(ie,M,j,ie==="h"?N:_)},[]),v=g.useCallback(function(j){var M=j;if(!(!lo.length||lo[lo.length-1]!==s)){var R="deltaY"in M?V3(M):xc(M),T=a.current.filter(function(k){return k.name===M.type&&(k.target===M.target||M.target===k.shadowParent)&&pb(k.delta,R)})[0];if(T&&T.should){M.cancelable&&M.preventDefault();return}if(!T){var N=(d.current.shards||[]).map(k3).filter(Boolean).filter(function(k){return k.contains(M.target)}),_=N.length>0?h(M,N[0]):!d.current.noIsolation;_&&M.cancelable&&M.preventDefault()}}},[]),m=g.useCallback(function(j,M,R,T){var N={name:j,delta:M,target:R,should:T,shadowParent:vb(R)};a.current.push(N),setTimeout(function(){a.current=a.current.filter(function(_){return _!==N})},1)},[]),y=g.useCallback(function(j){o.current=xc(j),r.current=void 0},[]),b=g.useCallback(function(j){m(j.type,V3(j),j.target,h(j,t.lockRef.current))},[]),C=g.useCallback(function(j){m(j.type,xc(j),j.target,h(j,t.lockRef.current))},[]);g.useEffect(function(){return lo.push(s),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",v,no),document.addEventListener("touchmove",v,no),document.addEventListener("touchstart",y,no),function(){lo=lo.filter(function(j){return j!==s}),document.removeEventListener("wheel",v,no),document.removeEventListener("touchmove",v,no),document.removeEventListener("touchstart",y,no)}},[]);var w=t.removeScrollBar,E=t.inert;return g.createElement(g.Fragment,null,E?g.createElement(s,{styles:hb(c)}):null,w?g.createElement(ob,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function vb(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const xb=qy(k4,mb);var Hf=g.forwardRef(function(t,a){return g.createElement(rs,jn({},t,{ref:a,sideCar:xb}))});Hf.classNames=rs.classNames;var is="Popover",[U4]=Dr(is,[bo]),Yr=bo(),[yb,kl]=U4(is),Y4=t=>{const{__scopePopover:a,children:o,open:r,defaultOpen:c,onOpenChange:s,modal:d=!1}=t,h=Yr(a),v=g.useRef(null),[m,y]=g.useState(!1),[b,C]=kc({prop:r,defaultProp:c??!1,onChange:s,caller:is});return u.jsx(Of,{...h,children:u.jsx(yb,{scope:a,contentId:$r(),triggerRef:v,open:b,onOpenChange:C,onOpenToggle:g.useCallback(()=>C(w=>!w),[C]),hasCustomAnchor:m,onCustomAnchorAdd:g.useCallback(()=>y(!0),[]),onCustomAnchorRemove:g.useCallback(()=>y(!1),[]),modal:d,children:o})})};Y4.displayName=is;var X4="PopoverAnchor",P4=g.forwardRef((t,a)=>{const{__scopePopover:o,...r}=t,c=kl(X4,o),s=Yr(o),{onCustomAnchorAdd:d,onCustomAnchorRemove:h}=c;return g.useEffect(()=>(d(),()=>h()),[d,h]),u.jsx(as,{...s,...r,ref:a})});P4.displayName=X4;var q4="PopoverTrigger",G4=g.forwardRef((t,a)=>{const{__scopePopover:o,...r}=t,c=kl(q4,o),s=Yr(o),d=Ie(a,c.triggerRef),h=u.jsx(Ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":W4(c.open),...r,ref:d,onClick:He(t.onClick,c.onOpenToggle)});return c.hasCustomAnchor?h:u.jsx(as,{asChild:!0,...s,children:h})});G4.displayName=q4;var Vf="PopoverPortal",[bb,Cb]=U4(Vf,{forceMount:void 0}),Q4=t=>{const{__scopePopover:a,forceMount:o,children:r,container:c}=t,s=kl(Vf,a);return u.jsx(bb,{scope:a,forceMount:o,children:u.jsx(Ur,{present:o||s.open,children:u.jsx(os,{asChild:!0,container:c,children:r})})})};Q4.displayName=Vf;var ho="PopoverContent",K4=g.forwardRef((t,a)=>{const o=Cb(ho,t.__scopePopover),{forceMount:r=o.forceMount,...c}=t,s=kl(ho,t.__scopePopover);return u.jsx(Ur,{present:r||s.open,children:s.modal?u.jsx(Sb,{...c,ref:a}):u.jsx(jb,{...c,ref:a})})});K4.displayName=ho;var wb=Or("PopoverContent.RemoveScroll"),Sb=g.forwardRef((t,a)=>{const o=kl(ho,t.__scopePopover),r=g.useRef(null),c=Ie(a,r),s=g.useRef(!1);return g.useEffect(()=>{const d=r.current;if(d)return z4(d)},[]),u.jsx(Hf,{as:wb,allowPinchZoom:!0,children:u.jsx(F4,{...t,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:He(t.onCloseAutoFocus,d=>{var h;d.preventDefault(),s.current||(h=o.triggerRef.current)==null||h.focus()}),onPointerDownOutside:He(t.onPointerDownOutside,d=>{const h=d.detail.originalEvent,v=h.button===0&&h.ctrlKey===!0,m=h.button===2||v;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:He(t.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})}),jb=g.forwardRef((t,a)=>{const o=kl(ho,t.__scopePopover),r=g.useRef(!1),c=g.useRef(!1);return u.jsx(F4,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var d,h;(d=t.onCloseAutoFocus)==null||d.call(t,s),s.defaultPrevented||(r.current||(h=o.triggerRef.current)==null||h.focus(),s.preventDefault()),r.current=!1,c.current=!1},onInteractOutside:s=>{var v,m;(v=t.onInteractOutside)==null||v.call(t,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const d=s.target;((m=o.triggerRef.current)==null?void 0:m.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&c.current&&s.preventDefault()}})}),F4=g.forwardRef((t,a)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:s,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:y,...b}=t,C=kl(ho,o),w=Yr(o);return u4(),u.jsx(Sf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:s,children:u.jsx(Ic,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:y,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:m,onDismiss:()=>C.onOpenChange(!1),children:u.jsx(Af,{"data-state":W4(C.open),role:"dialog",id:C.contentId,...w,...b,ref:a,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),J4="PopoverClose",Mb=g.forwardRef((t,a)=>{const{__scopePopover:o,...r}=t,c=kl(J4,o);return u.jsx(Ke.button,{type:"button",...r,ref:a,onClick:He(t.onClick,()=>c.onOpenChange(!1))})});Mb.displayName=J4;var Eb="PopoverArrow",Tb=g.forwardRef((t,a)=>{const{__scopePopover:o,...r}=t,c=Yr(o);return u.jsx(zf,{...c,...r,ref:a})});Tb.displayName=Eb;function W4(t){return t?"open":"closed"}var cs=Y4,I4=P4,eh=G4,ss=Q4,us=K4;function Rb({viewportWidth:t,onViewportWidthChange:a,iframePath:o,targetUrl:r,iframeRef:c}){const s=g.useRef(null),[d,h]=g.useState(!1),v=g.useCallback(y=>{var M;y.preventDefault(),h(!0);const b=y.clientX,C=(M=s.current)==null?void 0:M.getBoundingClientRect();if(!C)return;const w=t==="fill"?C.width:t,E=R=>{const T=R.clientX-b,N=Math.max(320,Math.round(w+T*2));a(N)},j=()=>{h(!1),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",j)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",j)},[t,a]),m=`${r}${o.startsWith("/")?o:"/"+o}`;return u.jsx("div",{className:"flex-1 flex items-start justify-center overflow-auto",ref:s,style:{background:"var(--studio-bg)",padding:16},children:u.jsxs("div",{className:"relative overflow-hidden",style:{width:t==="fill"?"100%":`${t}px`,height:"100%",maxWidth:"100%",transition:d?"none":"width 0.2s ease",borderRadius:4,border:"1px solid var(--studio-border)",boxShadow:"0 4px 24px rgba(0,0,0,0.35)"},children:[u.jsx("iframe",{ref:c,src:m,className:"w-full h-full border-0",style:{background:"white"},title:"Preview"},m),t!=="fill"&&u.jsx("div",{onMouseDown:v,className:"absolute top-0 right-0 w-1.5 h-full cursor-ew-resize",style:{background:d?"var(--studio-accent)":"transparent",opacity:d?.4:1,transition:"background 0.15s"},children:u.jsx("div",{className:"absolute top-1/2 right-0 w-1 h-8 rounded-full -translate-y-1/2",style:{background:d?"var(--studio-accent)":"var(--studio-border)",transition:"background 0.15s"}})})]})})}var th=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_b="VisuallyHidden",nh=g.forwardRef((t,a)=>u.jsx(Ke.span,{...t,ref:a,style:{...th,...t.style}}));nh.displayName=_b;var Nb=nh,[fs]=Dr("Tooltip",[bo]),ds=bo(),lh="TooltipProvider",Lb=700,X0="tooltip.open",[Ob,kf]=fs(lh),ah=t=>{const{__scopeTooltip:a,delayDuration:o=Lb,skipDelayDuration:r=300,disableHoverableContent:c=!1,children:s}=t,d=g.useRef(!0),h=g.useRef(!1),v=g.useRef(0);return g.useEffect(()=>{const m=v.current;return()=>window.clearTimeout(m)},[]),u.jsx(Ob,{scope:a,isOpenDelayedRef:d,delayDuration:o,onOpen:g.useCallback(()=>{window.clearTimeout(v.current),d.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>d.current=!0,r)},[r]),isPointerInTransitRef:h,onPointerInTransitChange:g.useCallback(m=>{h.current=m},[]),disableHoverableContent:c,children:s})};ah.displayName=lh;var zr="Tooltip",[Ab,Xr]=fs(zr),oh=t=>{const{__scopeTooltip:a,children:o,open:r,defaultOpen:c,onOpenChange:s,disableHoverableContent:d,delayDuration:h}=t,v=kf(zr,t.__scopeTooltip),m=ds(a),[y,b]=g.useState(null),C=$r(),w=g.useRef(0),E=d??v.disableHoverableContent,j=h??v.delayDuration,M=g.useRef(!1),[R,T]=kc({prop:r,defaultProp:c??!1,onChange:z=>{z?(v.onOpen(),document.dispatchEvent(new CustomEvent(X0))):v.onClose(),s==null||s(z)},caller:zr}),N=g.useMemo(()=>R?M.current?"delayed-open":"instant-open":"closed",[R]),_=g.useCallback(()=>{window.clearTimeout(w.current),w.current=0,M.current=!1,T(!0)},[T]),k=g.useCallback(()=>{window.clearTimeout(w.current),w.current=0,T(!1)},[T]),U=g.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{M.current=!0,T(!0),w.current=0},j)},[j,T]);return g.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),u.jsx(Of,{...m,children:u.jsx(Ab,{scope:a,contentId:C,open:R,stateAttribute:N,trigger:y,onTriggerChange:b,onTriggerEnter:g.useCallback(()=>{v.isOpenDelayedRef.current?U():_()},[v.isOpenDelayedRef,U,_]),onTriggerLeave:g.useCallback(()=>{E?k():(window.clearTimeout(w.current),w.current=0)},[k,E]),onOpen:_,onClose:k,disableHoverableContent:E,children:o})})};oh.displayName=zr;var P0="TooltipTrigger",rh=g.forwardRef((t,a)=>{const{__scopeTooltip:o,...r}=t,c=Xr(P0,o),s=kf(P0,o),d=ds(o),h=g.useRef(null),v=Ie(a,h,c.onTriggerChange),m=g.useRef(!1),y=g.useRef(!1),b=g.useCallback(()=>m.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),u.jsx(as,{asChild:!0,...d,children:u.jsx(Ke.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...r,ref:v,onPointerMove:He(t.onPointerMove,C=>{C.pointerType!=="touch"&&!y.current&&!s.isPointerInTransitRef.current&&(c.onTriggerEnter(),y.current=!0)}),onPointerLeave:He(t.onPointerLeave,()=>{c.onTriggerLeave(),y.current=!1}),onPointerDown:He(t.onPointerDown,()=>{c.open&&c.onClose(),m.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:He(t.onFocus,()=>{m.current||c.onOpen()}),onBlur:He(t.onBlur,c.onClose),onClick:He(t.onClick,c.onClose)})})});rh.displayName=P0;var Df="TooltipPortal",[zb,Hb]=fs(Df,{forceMount:void 0}),ih=t=>{const{__scopeTooltip:a,forceMount:o,children:r,container:c}=t,s=Xr(Df,a);return u.jsx(zb,{scope:a,forceMount:o,children:u.jsx(Ur,{present:o||s.open,children:u.jsx(os,{asChild:!0,container:c,children:r})})})};ih.displayName=Df;var go="TooltipContent",ch=g.forwardRef((t,a)=>{const o=Hb(go,t.__scopeTooltip),{forceMount:r=o.forceMount,side:c="top",...s}=t,d=Xr(go,t.__scopeTooltip);return u.jsx(Ur,{present:r||d.open,children:d.disableHoverableContent?u.jsx(sh,{side:c,...s,ref:a}):u.jsx(Vb,{side:c,...s,ref:a})})}),Vb=g.forwardRef((t,a)=>{const o=Xr(go,t.__scopeTooltip),r=kf(go,t.__scopeTooltip),c=g.useRef(null),s=Ie(a,c),[d,h]=g.useState(null),{trigger:v,onClose:m}=o,y=c.current,{onPointerInTransitChange:b}=r,C=g.useCallback(()=>{h(null),b(!1)},[b]),w=g.useCallback((E,j)=>{const M=E.currentTarget,R={x:E.clientX,y:E.clientY},T=$b(R,M.getBoundingClientRect()),N=Zb(R,T),_=Ub(j.getBoundingClientRect()),k=Xb([...N,..._]);h(k),b(!0)},[b]);return g.useEffect(()=>()=>C(),[C]),g.useEffect(()=>{if(v&&y){const E=M=>w(M,y),j=M=>w(M,v);return v.addEventListener("pointerleave",E),y.addEventListener("pointerleave",j),()=>{v.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",j)}}},[v,y,w,C]),g.useEffect(()=>{if(d){const E=j=>{const M=j.target,R={x:j.clientX,y:j.clientY},T=(v==null?void 0:v.contains(M))||(y==null?void 0:y.contains(M)),N=!Yb(R,d);T?C():N&&(C(),m())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[v,y,d,m,C]),u.jsx(sh,{...t,ref:s})}),[kb,Db]=fs(zr,{isInside:!1}),Bb=Dv("TooltipContent"),sh=g.forwardRef((t,a)=>{const{__scopeTooltip:o,children:r,"aria-label":c,onEscapeKeyDown:s,onPointerDownOutside:d,...h}=t,v=Xr(go,o),m=ds(o),{onClose:y}=v;return g.useEffect(()=>(document.addEventListener(X0,y),()=>document.removeEventListener(X0,y)),[y]),g.useEffect(()=>{if(v.trigger){const b=C=>{const w=C.target;w!=null&&w.contains(v.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[v.trigger,y]),u.jsx(Ic,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:u.jsxs(Af,{"data-state":v.stateAttribute,...m,...h,ref:a,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(Bb,{children:r}),u.jsx(kb,{scope:o,isInside:!0,children:u.jsx(Nb,{id:v.contentId,role:"tooltip",children:c||r})})]})})});ch.displayName=go;var uh="TooltipArrow",fh=g.forwardRef((t,a)=>{const{__scopeTooltip:o,...r}=t,c=ds(o);return Db(uh,o).isInside?null:u.jsx(zf,{...c,...r,ref:a})});fh.displayName=uh;function $b(t,a){const o=Math.abs(a.top-t.y),r=Math.abs(a.bottom-t.y),c=Math.abs(a.right-t.x),s=Math.abs(a.left-t.x);switch(Math.min(o,r,c,s)){case s:return"left";case c:return"right";case o:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Zb(t,a,o=5){const r=[];switch(a){case"top":r.push({x:t.x-o,y:t.y+o},{x:t.x+o,y:t.y+o});break;case"bottom":r.push({x:t.x-o,y:t.y-o},{x:t.x+o,y:t.y-o});break;case"left":r.push({x:t.x+o,y:t.y-o},{x:t.x+o,y:t.y+o});break;case"right":r.push({x:t.x-o,y:t.y-o},{x:t.x-o,y:t.y+o});break}return r}function Ub(t){const{top:a,right:o,bottom:r,left:c}=t;return[{x:c,y:a},{x:o,y:a},{x:o,y:r},{x:c,y:r}]}function Yb(t,a){const{x:o,y:r}=t;let c=!1;for(let s=0,d=a.length-1;s<a.length;d=s++){const h=a[s],v=a[d],m=h.x,y=h.y,b=v.x,C=v.y;y>r!=C>r&&o<(b-m)*(r-y)/(C-y)+m&&(c=!c)}return c}function Xb(t){const a=t.slice();return a.sort((o,r)=>o.x<r.x?-1:o.x>r.x?1:o.y<r.y?-1:o.y>r.y?1:0),Pb(a)}function Pb(t){if(t.length<=1)return t.slice();const a=[];for(let r=0;r<t.length;r++){const c=t[r];for(;a.length>=2;){const s=a[a.length-1],d=a[a.length-2];if((s.x-d.x)*(c.y-d.y)>=(s.y-d.y)*(c.x-d.x))a.pop();else break}a.push(c)}a.pop();const o=[];for(let r=t.length-1;r>=0;r--){const c=t[r];for(;o.length>=2;){const s=o[o.length-1],d=o[o.length-2];if((s.x-d.x)*(c.y-d.y)>=(s.y-d.y)*(c.x-d.x))o.pop();else break}o.push(c)}return o.pop(),a.length===1&&o.length===1&&a[0].x===o[0].x&&a[0].y===o[0].y?a:a.concat(o)}var qb=ah,Gb=oh,Qb=rh,Kb=ih,Fb=ch,Jb=fh;function Wb({children:t,className:a=""}){return u.jsx("div",{className:`studio-tab-explainer ${a}`,children:u.jsx("span",{className:"text-[12px]",style:{color:"var(--studio-text-dimmed)",lineHeight:1.5},children:t})})}function Ib({children:t}){return u.jsx(qb,{delayDuration:300,skipDelayDuration:100,children:t})}function ct({content:t,children:a,side:o="top",align:r="center",delayDuration:c}){return t?u.jsxs(Gb,{delayDuration:c,children:[u.jsx(Qb,{asChild:!0,children:a}),u.jsx(Kb,{children:u.jsxs(Fb,{className:"studio-tooltip",side:o,align:r,sideOffset:4,children:[t,u.jsx(Jb,{className:"studio-tooltip-arrow"})]})})]}):u.jsx(u.Fragment,{children:a})}const eC=[{label:"375px",value:375},{label:"768px",value:768},{label:"1024px",value:1024},{label:"1280px",value:1280},{label:"Fill",value:"fill"}];function tC({toolName:t,toolIcon:a,editorPanel:o,leftPanel:r,showSelectionMode:c=!0,selectionMode:s,onToggleSelectionMode:d,theme:h,onToggleTheme:v,viewportWidth:m,onViewportWidthChange:y,iframePath:b,onIframePathChange:C,targetUrl:w,iframeRef:E}){const[j,M]=g.useState(b);g.useEffect(()=>{M(b)},[b]);const R=T=>{T.preventDefault(),C(j)};return u.jsxs("div",{className:"flex flex-col h-screen",children:[u.jsxs("div",{className:"flex items-center h-11 px-4 gap-3 border-b shrink-0",style:{background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:[u.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[u.jsx("span",{style:{color:"var(--studio-text-muted)",display:"inline-flex",alignItems:"center"},children:a}),u.jsx("span",{className:"text-[11px] font-semibold tracking-wide",style:{color:"var(--studio-text-muted)"},children:t})]}),u.jsx("div",{className:"flex-1 flex justify-center",children:u.jsxs("form",{onSubmit:R,className:"studio-address-bar",children:[u.jsx("span",{className:"studio-address-icon",children:u.jsx(vm,{})}),u.jsx("input",{type:"text",value:j,onChange:T=>M(T.target.value),className:"studio-address-input",placeholder:"/"}),u.jsx("div",{className:"studio-address-sep"}),u.jsx(nC,{value:m,options:eC,onChange:y})]})}),u.jsxs("div",{className:"studio-toolbar-group shrink-0",children:[c&&u.jsx(ct,{content:s?"Selection mode on":"Selection mode off",side:"bottom",children:u.jsx("button",{onClick:d,className:`studio-toolbar-btn ${s?"active":""}`,children:u.jsx(Xp,{})})}),u.jsx(ct,{content:`Switch to ${h==="light"?"dark":"light"} mode`,side:"bottom",children:u.jsx("button",{onClick:v,className:"studio-toolbar-btn",children:h==="light"?u.jsx(av,{}):u.jsx(zm,{})})})]})]}),u.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[r,u.jsx(Rb,{viewportWidth:m,onViewportWidthChange:y,iframePath:b,targetUrl:w,iframeRef:E}),o]})]})}function nC({value:t,options:a,onChange:o}){const[r,c]=g.useState(!1),s=a.find(h=>h.value===t),d=(s==null?void 0:s.label)??`${t}px`;return u.jsxs(cs,{open:r,onOpenChange:c,children:[u.jsx(eh,{asChild:!0,children:u.jsxs("button",{className:"studio-bp-trigger",type:"button",children:[u.jsx(_v,{size:12,strokeWidth:1.5}),u.jsx("span",{children:d}),u.jsx(Sv,{size:10,strokeWidth:2,style:{opacity:.5}})]})}),u.jsx(ss,{children:u.jsxs(us,{className:"studio-bp-dropdown",align:"end",sideOffset:8,onOpenAutoFocus:h=>h.preventDefault(),children:[a.map(h=>{const v=h.value===t;return u.jsxs("button",{className:`studio-bp-option ${v?"active":""}`,onClick:()=>{o(h.value),c(!1)},type:"button",children:[u.jsx("span",{className:"studio-bp-option-check",children:v&&u.jsx(ia,{})}),h.label]},String(h.value))}),typeof t=="number"&&!a.some(h=>h.value===t)&&u.jsxs("button",{className:"studio-bp-option active",onClick:()=>c(!1),type:"button",children:[u.jsx("span",{className:"studio-bp-option-check",children:u.jsx(ia,{})}),t,"px"]})]})})]})}function D3(t,[a,o]){return Math.min(o,Math.max(a,t))}function lC(t){const a=t+"CollectionProvider",[o,r]=Dr(a),[c,s]=o(a,{collectionRef:{current:null},itemMap:new Map}),d=j=>{const{scope:M,children:R}=j,T=Be.useRef(null),N=Be.useRef(new Map).current;return u.jsx(c,{scope:M,itemMap:N,collectionRef:T,children:R})};d.displayName=a;const h=t+"CollectionSlot",v=Or(h),m=Be.forwardRef((j,M)=>{const{scope:R,children:T}=j,N=s(h,R),_=Ie(M,N.collectionRef);return u.jsx(v,{ref:_,children:T})});m.displayName=h;const y=t+"CollectionItemSlot",b="data-radix-collection-item",C=Or(y),w=Be.forwardRef((j,M)=>{const{scope:R,children:T,...N}=j,_=Be.useRef(null),k=Ie(M,_),U=s(y,R);return Be.useEffect(()=>(U.itemMap.set(_,{ref:_,...N}),()=>void U.itemMap.delete(_))),u.jsx(C,{[b]:"",ref:k,children:T})});w.displayName=y;function E(j){const M=s(t+"CollectionConsumer",j);return Be.useCallback(()=>{const T=M.collectionRef.current;if(!T)return[];const N=Array.from(T.querySelectorAll(`[${b}]`));return Array.from(M.itemMap.values()).sort((U,z)=>N.indexOf(U.ref.current)-N.indexOf(z.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:d,Slot:m,ItemSlot:w},E,r]}var aC=g.createContext(void 0);function oC(t){const a=g.useContext(aC);return t||a||"ltr"}function rC(t){const a=g.useRef({value:t,previous:t});return g.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var iC=[" ","Enter","ArrowUp","ArrowDown"],cC=[" ","Enter"],ua="Select",[ps,hs,sC]=lC(ua),[Co]=Dr(ua,[sC,bo]),gs=bo(),[uC,Dl]=Co(ua),[fC,dC]=Co(ua),dh=t=>{const{__scopeSelect:a,children:o,open:r,defaultOpen:c,onOpenChange:s,value:d,defaultValue:h,onValueChange:v,dir:m,name:y,autoComplete:b,disabled:C,required:w,form:E}=t,j=gs(a),[M,R]=g.useState(null),[T,N]=g.useState(null),[_,k]=g.useState(!1),U=oC(m),[z,W]=kc({prop:r,defaultProp:c??!1,onChange:s,caller:ua}),[te,ue]=kc({prop:d,defaultProp:h,onChange:v,caller:ua}),oe=g.useRef(null),ie=M?E||!!M.closest("form"):!0,[ge,fe]=g.useState(new Set),xe=Array.from(ge).map(H=>H.props.value).join(";");return u.jsx(Of,{...j,children:u.jsxs(uC,{required:w,scope:a,trigger:M,onTriggerChange:R,valueNode:T,onValueNodeChange:N,valueNodeHasChildren:_,onValueNodeHasChildrenChange:k,contentId:$r(),value:te,onValueChange:ue,open:z,onOpenChange:W,dir:U,triggerPointerDownPosRef:oe,disabled:C,children:[u.jsx(ps.Provider,{scope:a,children:u.jsx(fC,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(H=>{fe(D=>new Set(D).add(H))},[]),onNativeOptionRemove:g.useCallback(H=>{fe(D=>{const K=new Set(D);return K.delete(H),K})},[]),children:o})}),ie?u.jsxs(Hh,{"aria-hidden":!0,required:w,tabIndex:-1,name:y,autoComplete:b,value:te,onChange:H=>ue(H.target.value),disabled:C,form:E,children:[te===void 0?u.jsx("option",{value:""}):null,Array.from(ge)]},xe):null]})})};dh.displayName=ua;var ph="SelectTrigger",hh=g.forwardRef((t,a)=>{const{__scopeSelect:o,disabled:r=!1,...c}=t,s=gs(o),d=Dl(ph,o),h=d.disabled||r,v=Ie(a,d.onTriggerChange),m=hs(o),y=g.useRef("touch"),[b,C,w]=kh(j=>{const M=m().filter(N=>!N.disabled),R=M.find(N=>N.value===d.value),T=Dh(M,j,R);T!==void 0&&d.onValueChange(T.value)}),E=j=>{h||(d.onOpenChange(!0),w()),j&&(d.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return u.jsx(as,{asChild:!0,...s,children:u.jsx(Ke.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Vh(d.value)?"":void 0,...c,ref:v,onClick:He(c.onClick,j=>{j.currentTarget.focus(),y.current!=="mouse"&&E(j)}),onPointerDown:He(c.onPointerDown,j=>{y.current=j.pointerType;const M=j.target;M.hasPointerCapture(j.pointerId)&&M.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(E(j),j.preventDefault())}),onKeyDown:He(c.onKeyDown,j=>{const M=b.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&C(j.key),!(M&&j.key===" ")&&iC.includes(j.key)&&(E(),j.preventDefault())})})})});hh.displayName=ph;var gh="SelectValue",mh=g.forwardRef((t,a)=>{const{__scopeSelect:o,className:r,style:c,children:s,placeholder:d="",...h}=t,v=Dl(gh,o),{onValueNodeHasChildrenChange:m}=v,y=s!==void 0,b=Ie(a,v.onValueNodeChange);return Mt(()=>{m(y)},[m,y]),u.jsx(Ke.span,{...h,ref:b,style:{pointerEvents:"none"},children:Vh(v.value)?u.jsx(u.Fragment,{children:d}):s})});mh.displayName=gh;var pC="SelectIcon",vh=g.forwardRef((t,a)=>{const{__scopeSelect:o,children:r,...c}=t;return u.jsx(Ke.span,{"aria-hidden":!0,...c,ref:a,children:r||"▼"})});vh.displayName=pC;var hC="SelectPortal",xh=t=>u.jsx(os,{asChild:!0,...t});xh.displayName=hC;var fa="SelectContent",yh=g.forwardRef((t,a)=>{const o=Dl(fa,t.__scopeSelect),[r,c]=g.useState();if(Mt(()=>{c(new DocumentFragment)},[]),!o.open){const s=r;return s?Br.createPortal(u.jsx(bh,{scope:t.__scopeSelect,children:u.jsx(ps.Slot,{scope:t.__scopeSelect,children:u.jsx("div",{children:t.children})})}),s):null}return u.jsx(Ch,{...t,ref:a})});yh.displayName=fa;var pn=10,[bh,Bl]=Co(fa),gC="SelectContentImpl",mC=Or("SelectContent.RemoveScroll"),Ch=g.forwardRef((t,a)=>{const{__scopeSelect:o,position:r="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:s,onPointerDownOutside:d,side:h,sideOffset:v,align:m,alignOffset:y,arrowPadding:b,collisionBoundary:C,collisionPadding:w,sticky:E,hideWhenDetached:j,avoidCollisions:M,...R}=t,T=Dl(fa,o),[N,_]=g.useState(null),[k,U]=g.useState(null),z=Ie(a,Q=>_(Q)),[W,te]=g.useState(null),[ue,oe]=g.useState(null),ie=hs(o),[ge,fe]=g.useState(!1),xe=g.useRef(!1);g.useEffect(()=>{if(N)return z4(N)},[N]),u4();const H=g.useCallback(Q=>{const[de,...ye]=ie().map(Le=>Le.ref.current),[Ne]=ye.slice(-1),Re=document.activeElement;for(const Le of Q)if(Le===Re||(Le==null||Le.scrollIntoView({block:"nearest"}),Le===de&&k&&(k.scrollTop=0),Le===Ne&&k&&(k.scrollTop=k.scrollHeight),Le==null||Le.focus(),document.activeElement!==Re))return},[ie,k]),D=g.useCallback(()=>H([W,N]),[H,W,N]);g.useEffect(()=>{ge&&D()},[ge,D]);const{onOpenChange:K,triggerPointerDownPosRef:ae}=T;g.useEffect(()=>{if(N){let Q={x:0,y:0};const de=Ne=>{var Re,Le;Q={x:Math.abs(Math.round(Ne.pageX)-(((Re=ae.current)==null?void 0:Re.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Le=ae.current)==null?void 0:Le.y)??0))}},ye=Ne=>{Q.x<=10&&Q.y<=10?Ne.preventDefault():N.contains(Ne.target)||K(!1),document.removeEventListener("pointermove",de),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",de),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",de),document.removeEventListener("pointerup",ye,{capture:!0})}}},[N,K,ae]),g.useEffect(()=>{const Q=()=>K(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[K]);const[pe,O]=kh(Q=>{const de=ie().filter(Re=>!Re.disabled),ye=de.find(Re=>Re.ref.current===document.activeElement),Ne=Dh(de,Q,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),X=g.useCallback((Q,de,ye)=>{const Ne=!xe.current&&!ye;(T.value!==void 0&&T.value===de||Ne)&&(te(Q),Ne&&(xe.current=!0))},[T.value]),J=g.useCallback(()=>N==null?void 0:N.focus(),[N]),ee=g.useCallback((Q,de,ye)=>{const Ne=!xe.current&&!ye;(T.value!==void 0&&T.value===de||Ne)&&oe(Q)},[T.value]),se=r==="popper"?q0:wh,I=se===q0?{side:h,sideOffset:v,align:m,alignOffset:y,arrowPadding:b,collisionBoundary:C,collisionPadding:w,sticky:E,hideWhenDetached:j,avoidCollisions:M}:{};return u.jsx(bh,{scope:o,content:N,viewport:k,onViewportChange:U,itemRefCallback:X,selectedItem:W,onItemLeave:J,itemTextRefCallback:ee,focusSelectedItem:D,selectedItemText:ue,position:r,isPositioned:ge,searchRef:pe,children:u.jsx(Hf,{as:mC,allowPinchZoom:!0,children:u.jsx(Sf,{asChild:!0,trapped:T.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:He(c,Q=>{var de;(de=T.trigger)==null||de.focus({preventScroll:!0}),Q.preventDefault()}),children:u.jsx(Ic,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:u.jsx(se,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:Q=>Q.preventDefault(),...R,...I,onPlaced:()=>fe(!0),ref:z,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:He(R.onKeyDown,Q=>{const de=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!de&&Q.key.length===1&&O(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let Ne=ie().filter(Re=>!Re.disabled).map(Re=>Re.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const Re=Q.target,Le=Ne.indexOf(Re);Ne=Ne.slice(Le+1)}setTimeout(()=>H(Ne)),Q.preventDefault()}})})})})})})});Ch.displayName=gC;var vC="SelectItemAlignedPosition",wh=g.forwardRef((t,a)=>{const{__scopeSelect:o,onPlaced:r,...c}=t,s=Dl(fa,o),d=Bl(fa,o),[h,v]=g.useState(null),[m,y]=g.useState(null),b=Ie(a,z=>y(z)),C=hs(o),w=g.useRef(!1),E=g.useRef(!0),{viewport:j,selectedItem:M,selectedItemText:R,focusSelectedItem:T}=d,N=g.useCallback(()=>{if(s.trigger&&s.valueNode&&h&&m&&j&&M&&R){const z=s.trigger.getBoundingClientRect(),W=m.getBoundingClientRect(),te=s.valueNode.getBoundingClientRect(),ue=R.getBoundingClientRect();if(s.dir!=="rtl"){const Re=ue.left-W.left,Le=te.left-Re,ht=z.left-Le,et=z.width+ht,Bt=Math.max(et,W.width),Wt=window.innerWidth-pn,On=D3(Le,[pn,Math.max(pn,Wt-Bt)]);h.style.minWidth=et+"px",h.style.left=On+"px"}else{const Re=W.right-ue.right,Le=window.innerWidth-te.right-Re,ht=window.innerWidth-z.right-Le,et=z.width+ht,Bt=Math.max(et,W.width),Wt=window.innerWidth-pn,On=D3(Le,[pn,Math.max(pn,Wt-Bt)]);h.style.minWidth=et+"px",h.style.right=On+"px"}const oe=C(),ie=window.innerHeight-pn*2,ge=j.scrollHeight,fe=window.getComputedStyle(m),xe=parseInt(fe.borderTopWidth,10),H=parseInt(fe.paddingTop,10),D=parseInt(fe.borderBottomWidth,10),K=parseInt(fe.paddingBottom,10),ae=xe+H+ge+K+D,pe=Math.min(M.offsetHeight*5,ae),O=window.getComputedStyle(j),X=parseInt(O.paddingTop,10),J=parseInt(O.paddingBottom,10),ee=z.top+z.height/2-pn,se=ie-ee,I=M.offsetHeight/2,Q=M.offsetTop+I,de=xe+H+Q,ye=ae-de;if(de<=ee){const Re=oe.length>0&&M===oe[oe.length-1].ref.current;h.style.bottom="0px";const Le=m.clientHeight-j.offsetTop-j.offsetHeight,ht=Math.max(se,I+(Re?J:0)+Le+D),et=de+ht;h.style.height=et+"px"}else{const Re=oe.length>0&&M===oe[0].ref.current;h.style.top="0px";const ht=Math.max(ee,xe+j.offsetTop+(Re?X:0)+I)+ye;h.style.height=ht+"px",j.scrollTop=de-ee+j.offsetTop}h.style.margin=`${pn}px 0`,h.style.minHeight=pe+"px",h.style.maxHeight=ie+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[C,s.trigger,s.valueNode,h,m,j,M,R,s.dir,r]);Mt(()=>N(),[N]);const[_,k]=g.useState();Mt(()=>{m&&k(window.getComputedStyle(m).zIndex)},[m]);const U=g.useCallback(z=>{z&&E.current===!0&&(N(),T==null||T(),E.current=!1)},[N,T]);return u.jsx(yC,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:w,onScrollButtonChange:U,children:u.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:u.jsx(Ke.div,{...c,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});wh.displayName=vC;var xC="SelectPopperPosition",q0=g.forwardRef((t,a)=>{const{__scopeSelect:o,align:r="start",collisionPadding:c=pn,...s}=t,d=gs(o);return u.jsx(Af,{...d,...s,ref:a,align:r,collisionPadding:c,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});q0.displayName=xC;var[yC,Bf]=Co(fa,{}),G0="SelectViewport",Sh=g.forwardRef((t,a)=>{const{__scopeSelect:o,nonce:r,...c}=t,s=Bl(G0,o),d=Bf(G0,o),h=Ie(a,s.onViewportChange),v=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(ps.Slot,{scope:o,children:u.jsx(Ke.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:He(c.onScroll,m=>{const y=m.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=d;if(C!=null&&C.current&&b){const w=Math.abs(v.current-y.scrollTop);if(w>0){const E=window.innerHeight-pn*2,j=parseFloat(b.style.minHeight),M=parseFloat(b.style.height),R=Math.max(j,M);if(R<E){const T=R+w,N=Math.min(E,T),_=T-N;b.style.height=N+"px",b.style.bottom==="0px"&&(y.scrollTop=_>0?_:0,b.style.justifyContent="flex-end")}}}v.current=y.scrollTop})})})]})});Sh.displayName=G0;var jh="SelectGroup",[bC,CC]=Co(jh),Mh=g.forwardRef((t,a)=>{const{__scopeSelect:o,...r}=t,c=$r();return u.jsx(bC,{scope:o,id:c,children:u.jsx(Ke.div,{role:"group","aria-labelledby":c,...r,ref:a})})});Mh.displayName=jh;var Eh="SelectLabel",Th=g.forwardRef((t,a)=>{const{__scopeSelect:o,...r}=t,c=CC(Eh,o);return u.jsx(Ke.div,{id:c.id,...r,ref:a})});Th.displayName=Eh;var Dc="SelectItem",[wC,Rh]=Co(Dc),_h=g.forwardRef((t,a)=>{const{__scopeSelect:o,value:r,disabled:c=!1,textValue:s,...d}=t,h=Dl(Dc,o),v=Bl(Dc,o),m=h.value===r,[y,b]=g.useState(s??""),[C,w]=g.useState(!1),E=Ie(a,T=>{var N;return(N=v.itemRefCallback)==null?void 0:N.call(v,T,r,c)}),j=$r(),M=g.useRef("touch"),R=()=>{c||(h.onValueChange(r),h.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(wC,{scope:o,value:r,disabled:c,textId:j,isSelected:m,onItemTextChange:g.useCallback(T=>{b(N=>N||((T==null?void 0:T.textContent)??"").trim())},[]),children:u.jsx(ps.ItemSlot,{scope:o,value:r,disabled:c,textValue:y,children:u.jsx(Ke.div,{role:"option","aria-labelledby":j,"data-highlighted":C?"":void 0,"aria-selected":m&&C,"data-state":m?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...d,ref:E,onFocus:He(d.onFocus,()=>w(!0)),onBlur:He(d.onBlur,()=>w(!1)),onClick:He(d.onClick,()=>{M.current!=="mouse"&&R()}),onPointerUp:He(d.onPointerUp,()=>{M.current==="mouse"&&R()}),onPointerDown:He(d.onPointerDown,T=>{M.current=T.pointerType}),onPointerMove:He(d.onPointerMove,T=>{var N;M.current=T.pointerType,c?(N=v.onItemLeave)==null||N.call(v):M.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:He(d.onPointerLeave,T=>{var N;T.currentTarget===document.activeElement&&((N=v.onItemLeave)==null||N.call(v))}),onKeyDown:He(d.onKeyDown,T=>{var _;((_=v.searchRef)==null?void 0:_.current)!==""&&T.key===" "||(cC.includes(T.key)&&R(),T.key===" "&&T.preventDefault())})})})})});_h.displayName=Dc;var jr="SelectItemText",Nh=g.forwardRef((t,a)=>{const{__scopeSelect:o,className:r,style:c,...s}=t,d=Dl(jr,o),h=Bl(jr,o),v=Rh(jr,o),m=dC(jr,o),[y,b]=g.useState(null),C=Ie(a,R=>b(R),v.onItemTextChange,R=>{var T;return(T=h.itemTextRefCallback)==null?void 0:T.call(h,R,v.value,v.disabled)}),w=y==null?void 0:y.textContent,E=g.useMemo(()=>u.jsx("option",{value:v.value,disabled:v.disabled,children:w},v.value),[v.disabled,v.value,w]),{onNativeOptionAdd:j,onNativeOptionRemove:M}=m;return Mt(()=>(j(E),()=>M(E)),[j,M,E]),u.jsxs(u.Fragment,{children:[u.jsx(Ke.span,{id:v.textId,...s,ref:C}),v.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Br.createPortal(s.children,d.valueNode):null]})});Nh.displayName=jr;var Lh="SelectItemIndicator",Oh=g.forwardRef((t,a)=>{const{__scopeSelect:o,...r}=t;return Rh(Lh,o).isSelected?u.jsx(Ke.span,{"aria-hidden":!0,...r,ref:a}):null});Oh.displayName=Lh;var Q0="SelectScrollUpButton",SC=g.forwardRef((t,a)=>{const o=Bl(Q0,t.__scopeSelect),r=Bf(Q0,t.__scopeSelect),[c,s]=g.useState(!1),d=Ie(a,r.onScrollButtonChange);return Mt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const m=v.scrollTop>0;s(m)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?u.jsx(Ah,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});SC.displayName=Q0;var K0="SelectScrollDownButton",jC=g.forwardRef((t,a)=>{const o=Bl(K0,t.__scopeSelect),r=Bf(K0,t.__scopeSelect),[c,s]=g.useState(!1),d=Ie(a,r.onScrollButtonChange);return Mt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const m=v.scrollHeight-v.clientHeight,y=Math.ceil(v.scrollTop)<m;s(y)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?u.jsx(Ah,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});jC.displayName=K0;var Ah=g.forwardRef((t,a)=>{const{__scopeSelect:o,onAutoScroll:r,...c}=t,s=Bl("SelectScrollButton",o),d=g.useRef(null),h=hs(o),v=g.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),Mt(()=>{var y;const m=h().find(b=>b.ref.current===document.activeElement);(y=m==null?void 0:m.ref.current)==null||y.scrollIntoView({block:"nearest"})},[h]),u.jsx(Ke.div,{"aria-hidden":!0,...c,ref:a,style:{flexShrink:0,...c.style},onPointerDown:He(c.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(r,50))}),onPointerMove:He(c.onPointerMove,()=>{var m;(m=s.onItemLeave)==null||m.call(s),d.current===null&&(d.current=window.setInterval(r,50))}),onPointerLeave:He(c.onPointerLeave,()=>{v()})})}),MC="SelectSeparator",zh=g.forwardRef((t,a)=>{const{__scopeSelect:o,...r}=t;return u.jsx(Ke.div,{"aria-hidden":!0,...r,ref:a})});zh.displayName=MC;var F0="SelectArrow",EC=g.forwardRef((t,a)=>{const{__scopeSelect:o,...r}=t,c=gs(o),s=Dl(F0,o),d=Bl(F0,o);return s.open&&d.position==="popper"?u.jsx(zf,{...c,...r,ref:a}):null});EC.displayName=F0;var TC="SelectBubbleInput",Hh=g.forwardRef(({__scopeSelect:t,value:a,...o},r)=>{const c=g.useRef(null),s=Ie(r,c),d=rC(a);return g.useEffect(()=>{const h=c.current;if(!h)return;const v=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(v,"value").set;if(d!==a&&y){const b=new Event("change",{bubbles:!0});y.call(h,a),h.dispatchEvent(b)}},[d,a]),u.jsx(Ke.select,{...o,style:{...th,...o.style},ref:s,defaultValue:a})});Hh.displayName=TC;function Vh(t){return t===""||t===void 0}function kh(t){const a=ca(t),o=g.useRef(""),r=g.useRef(0),c=g.useCallback(d=>{const h=o.current+d;a(h),(function v(m){o.current=m,window.clearTimeout(r.current),m!==""&&(r.current=window.setTimeout(()=>v(""),1e3))})(h)},[a]),s=g.useCallback(()=>{o.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[o,c,s]}function Dh(t,a,o){const c=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=o?t.indexOf(o):-1;let d=RC(t,Math.max(s,0));c.length===1&&(d=d.filter(m=>m!==o));const v=d.find(m=>m.textValue.toLowerCase().startsWith(c.toLowerCase()));return v!==o?v:void 0}function RC(t,a){return t.map((o,r)=>t[(a+r)%t.length])}var Bh=dh,$h=hh,Zh=mh,Uh=vh,Yh=xh,Xh=yh,Ph=Sh,_C=Mh,NC=Th,qh=_h,Gh=Nh,Qh=Oh,Kh=zh;function In({value:t,onChange:a,options:o,groups:r,placeholder:c,className:s}){return u.jsxs(Bh,{value:t,onValueChange:a,children:[u.jsxs($h,{className:s||"studio-select",asChild:!1,children:[u.jsx("span",{className:"studio-prop-select-value",children:u.jsx(Zh,{placeholder:c})}),u.jsx(Uh,{asChild:!0,children:u.jsx(Dt,{style:{width:10,height:10,flexShrink:0}})})]}),u.jsx(Yh,{children:u.jsx(Xh,{className:"studio-prop-select-content",position:"popper",sideOffset:4,collisionPadding:12,children:u.jsxs(Ph,{children:[o==null?void 0:o.map(d=>u.jsx(B3,{value:d.value,children:d.label??d.value},d.value)),r==null?void 0:r.map((d,h)=>u.jsxs(_C,{children:[(h>0||o&&o.length>0)&&u.jsx(Kh,{className:"studio-prop-select-separator"}),u.jsx(NC,{className:"studio-prop-select-group-label",children:d.label}),d.options.map(v=>u.jsx(B3,{value:v.value,children:v.label??v.value},v.value))]},d.label))]})})})]})}function B3({value:t,children:a}){return u.jsxs(qh,{value:t,className:"studio-prop-select-item",children:[u.jsx(Gh,{children:a}),u.jsx(Qh,{className:"studio-prop-select-check",children:u.jsx(ia,{style:{width:10,height:10}})})]})}function Bc(t){const a=t.match(/^(-?[\d.]+)\s*(px|rem|em|%|vh|vw|pt)$/);if(a)return{num:parseFloat(a[1]),unit:a[2]};const o=parseFloat(t);return!isNaN(o)&&String(o)===t.trim()?{num:o,unit:""}:null}function Fh(t){return t==="rem"||t==="em"?.0625:1}function uo({icon:t,label:a,value:o,tooltip:r,onPreview:c,onCommit:s,step:d,min:h,maxDecimals:v}){const[m,y]=g.useState(o),[b,C]=g.useState(!1),[w,E]=g.useState(!1),j=g.useRef(null),M=g.useRef(m);M.current=m;const R=g.useRef(null),T=g.useRef(null);g.useEffect(()=>{!b&&!w&&y(o),T.current!==null&&(T.current=null)},[o,b,w]);const N=b||w?m:T.current||o,_=Bc(N)!==null,k=z=>{const W=Bc(N);if(!W)return;z.preventDefault(),j.current={startX:z.clientX,startVal:W.num,unit:W.unit},E(!0);const te=d??Fh(W.unit),ue=v??4,oe=ge=>{if(!j.current)return;const fe=ge.shiftKey?10:1,xe=Math.round((ge.clientX-j.current.startX)/2);let H=j.current.startVal+xe*te*fe;h!==void 0&&H<h&&(H=h);const D=j.current.unit?`${parseFloat(H.toFixed(ue))}${j.current.unit}`:`${Math.round(H)}`;y(D),M.current=D,c==null||c(D)},ie=()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",ie),j.current&&(T.current=M.current,s(M.current),j.current=null),E(!1)};document.addEventListener("pointermove",oe),document.addEventListener("pointerup",ie)},U=r||a||"";return u.jsxs("div",{className:"studio-scrub-input",children:[t&&u.jsx(ct,{content:U,side:"left",children:u.jsx("div",{className:_?"studio-scrub-icon":"studio-scrub-icon no-scrub",onPointerDown:_?k:void 0,children:u.jsx(t,{style:{width:12,height:12}})})}),!t&&a&&u.jsx(ct,{content:U,side:"left",children:u.jsx("div",{className:_?"studio-scrub-label":"studio-scrub-label no-scrub",onPointerDown:_?k:void 0,children:a})}),u.jsx("input",{ref:R,type:"text",value:N,onChange:z=>{y(z.target.value)},onFocus:()=>{y(o),C(!0)},onBlur:()=>{C(!1);const z=m.trim();z&&z!==o&&(T.current=z,s(z))},onKeyDown:z=>{z.key==="Enter"&&z.target.blur(),z.key==="Escape"&&(y(o),C(!1))},className:"studio-scrub-value"})]})}function hn({options:t,value:a,onChange:o}){const[r,c]=g.useState(a);return g.useEffect(()=>{c(a)},[a]),u.jsx("div",{className:"studio-segmented",style:{width:"100%"},children:t.map(s=>u.jsx(ct,{content:s.tooltip||s.label||s.value,side:"bottom",children:u.jsx("button",{onClick:()=>{c(s.value),o(s.value)},className:r===s.value?"active":"",style:{flex:1,cursor:"pointer"},children:s.icon?u.jsx(s.icon,{style:{width:14,height:14}}):u.jsx("span",{style:{fontSize:10},children:s.label||s.value})})},s.value))})}function J0({value:t,min:a,max:o,step:r=1,unit:c="",icon:s,tooltip:d,onChange:h,onCommit:v}){const[m,y]=g.useState(t),[b,C]=g.useState(!1),w=g.useRef(null);g.useEffect(()=>{y(t)},[t]);const E=U=>Math.min(o,Math.max(a,U)),j=U=>Math.round(U/r)*r,M=(m-a)/(o-a)*100,R=g.useCallback(U=>{var te;const z=(te=w.current)==null?void 0:te.getBoundingClientRect();if(!z)return m;const W=Math.max(0,Math.min(1,(U-z.left)/z.width));return j(E(a+W*(o-a)))},[a,o,r,m]),T=U=>{U.preventDefault(),U.target.setPointerCapture(U.pointerId),C(!0);const z=R(U.clientX);y(z),h(z)},N=U=>{if(!b)return;const z=R(U.clientX);y(z),h(z)},_=()=>{b&&(C(!1),v==null||v(m))},k=U=>{let z=m;if(U.key==="ArrowRight"||U.key==="ArrowUp")z=E(m+r);else if(U.key==="ArrowLeft"||U.key==="ArrowDown")z=E(m-r);else return;U.preventDefault(),y(z),h(z),v==null||v(z)};return u.jsxs("div",{className:"studio-scrub-input",style:{gap:0},children:[s&&u.jsx(ct,{content:d||"",side:"left",children:u.jsx("div",{className:"studio-scrub-icon no-scrub",children:u.jsx(s,{style:{width:12,height:12}})})}),u.jsxs("div",{ref:w,className:"studio-slider-track",style:{"--slider-pct":`${M}%`},onPointerDown:T,onPointerMove:N,onPointerUp:_,onKeyDown:k,tabIndex:0,role:"slider","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":m,children:[u.jsx("div",{className:"studio-slider-fill"}),u.jsx("div",{className:"studio-slider-thumb"})]}),u.jsxs("span",{className:"studio-slider-readout",children:[m,c]})]})}function ms(){return(ms=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t}).apply(this,arguments)}function Jh(t,a){if(t==null)return{};var o,r,c={},s=Object.keys(t);for(r=0;r<s.length;r++)a.indexOf(o=s[r])>=0||(c[o]=t[o]);return c}function W0(t){var a=g.useRef(t),o=g.useRef(function(r){a.current&&a.current(r)});return a.current=t,o.current}var mo=function(t,a,o){return a===void 0&&(a=0),o===void 0&&(o=1),t>o?o:t<a?a:t},Rr=function(t){return"touches"in t},I0=function(t){return t&&t.ownerDocument.defaultView||self},$3=function(t,a,o){var r=t.getBoundingClientRect(),c=Rr(a)?(function(s,d){for(var h=0;h<s.length;h++)if(s[h].identifier===d)return s[h];return s[0]})(a.touches,o):a;return{left:mo((c.pageX-(r.left+I0(t).pageXOffset))/r.width),top:mo((c.pageY-(r.top+I0(t).pageYOffset))/r.height)}},Z3=function(t){!Rr(t)&&t.preventDefault()},$f=Be.memo(function(t){var a=t.onMove,o=t.onKey,r=Jh(t,["onMove","onKey"]),c=g.useRef(null),s=W0(a),d=W0(o),h=g.useRef(null),v=g.useRef(!1),m=g.useMemo(function(){var w=function(M){Z3(M),(Rr(M)?M.touches.length>0:M.buttons>0)&&c.current?s($3(c.current,M,h.current)):j(!1)},E=function(){return j(!1)};function j(M){var R=v.current,T=I0(c.current),N=M?T.addEventListener:T.removeEventListener;N(R?"touchmove":"mousemove",w),N(R?"touchend":"mouseup",E)}return[function(M){var R=M.nativeEvent,T=c.current;if(T&&(Z3(R),!(function(_,k){return k&&!Rr(_)})(R,v.current)&&T)){if(Rr(R)){v.current=!0;var N=R.changedTouches||[];N.length&&(h.current=N[0].identifier)}T.focus(),s($3(T,R,h.current)),j(!0)}},function(M){var R=M.which||M.keyCode;R<37||R>40||(M.preventDefault(),d({left:R===39?.05:R===37?-.05:0,top:R===40?.05:R===38?-.05:0}))},j]},[d,s]),y=m[0],b=m[1],C=m[2];return g.useEffect(function(){return C},[C]),Be.createElement("div",ms({},r,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:c,onKeyDown:b,tabIndex:0,role:"slider"}))}),vs=function(t){return t.filter(Boolean).join(" ")},Zf=function(t){var a=t.color,o=t.left,r=t.top,c=r===void 0?.5:r,s=vs(["react-colorful__pointer",t.className]);return Be.createElement("div",{className:s,style:{top:100*c+"%",left:100*o+"%"}},Be.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:a}}))},Rt=function(t,a,o){return a===void 0&&(a=0),o===void 0&&(o=Math.pow(10,a)),Math.round(o*t)/o},Wh=function(t){var a=t.s,o=t.v,r=t.a,c=(200-a)*o/100;return{h:Rt(t.h),s:Rt(c>0&&c<200?a*o/100/(c<=100?c:200-c)*100:0),l:Rt(c/2),a:Rt(r,2)}},ef=function(t){var a=Wh(t);return"hsl("+a.h+", "+a.s+"%, "+a.l+"%)"},f0=function(t){var a=Wh(t);return"hsla("+a.h+", "+a.s+"%, "+a.l+"%, "+a.a+")"},LC=function(t){var a=t.h,o=t.s,r=t.v,c=t.a;a=a/360*6,o/=100,r/=100;var s=Math.floor(a),d=r*(1-o),h=r*(1-(a-s)*o),v=r*(1-(1-a+s)*o),m=s%6;return{r:Rt(255*[r,h,d,d,v,r][m]),g:Rt(255*[v,r,r,h,d,d][m]),b:Rt(255*[d,d,v,r,r,h][m]),a:Rt(c,2)}},OC=function(t){var a=t.r,o=t.g,r=t.b,c=t.a,s=Math.max(a,o,r),d=s-Math.min(a,o,r),h=d?s===a?(o-r)/d:s===o?2+(r-a)/d:4+(a-o)/d:0;return{h:Rt(60*(h<0?h+6:h)),s:Rt(s?d/s*100:0),v:Rt(s/255*100),a:c}},AC=Be.memo(function(t){var a=t.hue,o=t.onChange,r=vs(["react-colorful__hue",t.className]);return Be.createElement("div",{className:r},Be.createElement($f,{onMove:function(c){o({h:360*c.left})},onKey:function(c){o({h:mo(a+360*c.left,0,360)})},"aria-label":"Hue","aria-valuenow":Rt(a),"aria-valuemax":"360","aria-valuemin":"0"},Be.createElement(Zf,{className:"react-colorful__hue-pointer",left:a/360,color:ef({h:a,s:100,v:100,a:1})})))}),zC=Be.memo(function(t){var a=t.hsva,o=t.onChange,r={backgroundColor:ef({h:a.h,s:100,v:100,a:1})};return Be.createElement("div",{className:"react-colorful__saturation",style:r},Be.createElement($f,{onMove:function(c){o({s:100*c.left,v:100-100*c.top})},onKey:function(c){o({s:mo(a.s+100*c.left,0,100),v:mo(a.v-100*c.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Rt(a.s)+"%, Brightness "+Rt(a.v)+"%"},Be.createElement(Zf,{className:"react-colorful__saturation-pointer",top:1-a.v/100,left:a.s/100,color:ef(a)})))}),Ih=function(t,a){if(t===a)return!0;for(var o in t)if(t[o]!==a[o])return!1;return!0};function HC(t,a,o){var r=W0(o),c=g.useState(function(){return t.toHsva(a)}),s=c[0],d=c[1],h=g.useRef({color:a,hsva:s});g.useEffect(function(){if(!t.equal(a,h.current.color)){var m=t.toHsva(a);h.current={hsva:m,color:a},d(m)}},[a,t]),g.useEffect(function(){var m;Ih(s,h.current.hsva)||t.equal(m=t.fromHsva(s),h.current.color)||(h.current={hsva:s,color:m},r(m))},[s,t,r]);var v=g.useCallback(function(m){d(function(y){return Object.assign({},y,m)})},[]);return[s,v]}var VC=typeof window<"u"?g.useLayoutEffect:g.useEffect,kC=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},U3=new Map,DC=function(t){VC(function(){var a=t.current?t.current.ownerDocument:document;if(a!==void 0&&!U3.has(a)){var o=a.createElement("style");o.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,U3.set(a,o);var r=kC();r&&o.setAttribute("nonce",r),a.head.appendChild(o)}},[])},BC=function(t){var a=t.className,o=t.hsva,r=t.onChange,c={backgroundImage:"linear-gradient(90deg, "+f0(Object.assign({},o,{a:0}))+", "+f0(Object.assign({},o,{a:1}))+")"},s=vs(["react-colorful__alpha",a]),d=Rt(100*o.a);return Be.createElement("div",{className:s},Be.createElement("div",{className:"react-colorful__alpha-gradient",style:c}),Be.createElement($f,{onMove:function(h){r({a:h.left})},onKey:function(h){r({a:mo(o.a+h.left)})},"aria-label":"Alpha","aria-valuetext":d+"%","aria-valuenow":d,"aria-valuemin":"0","aria-valuemax":"100"},Be.createElement(Zf,{className:"react-colorful__alpha-pointer",left:o.a,color:f0(o)})))},$C=function(t){var a=t.className,o=t.colorModel,r=t.color,c=r===void 0?o.defaultColor:r,s=t.onChange,d=Jh(t,["className","colorModel","color","onChange"]),h=g.useRef(null);DC(h);var v=HC(o,c,s),m=v[0],y=v[1],b=vs(["react-colorful",a]);return Be.createElement("div",ms({},d,{ref:h,className:b}),Be.createElement(zC,{hsva:m,onChange:y}),Be.createElement(AC,{hue:m.h,onChange:y}),Be.createElement(BC,{hsva:m,onChange:y,className:"react-colorful__last-control"}))},ZC={defaultColor:{r:0,g:0,b:0,a:1},toHsva:OC,fromHsva:LC,equal:Ih},e7=function(t){return Be.createElement($C,ms({},t,{colorModel:ZC}))};const t7=(t,a)=>{if(typeof t=="number"){if(a===3)return{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|t&240)/255,b:(t&15|t<<4&240)/255};if(a===4)return{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|t&240)/255,alpha:(t&15|t<<4&240)/255};if(a===6)return{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(t&255)/255};if(a===8)return{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(t&255)/255}}},UC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},YC=t=>t7(UC[t.toLowerCase()],6),XC=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,PC=t=>{let a;return(a=t.match(XC))?t7(parseInt(a[1],16),a[1].length):void 0},Nl="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",_r=`${Nl}%`,Uf=`(?:${Nl}%|${Nl})`,qC=`(?:${Nl}(deg|grad|rad|turn)|${Nl})`,vo="\\s*,\\s*",GC=new RegExp(`^rgba?\\(\\s*${Nl}${vo}${Nl}${vo}${Nl}\\s*(?:,\\s*${Uf}\\s*)?\\)$`),QC=new RegExp(`^rgba?\\(\\s*${_r}${vo}${_r}${vo}${_r}\\s*(?:,\\s*${Uf}\\s*)?\\)$`),KC=t=>{let a={mode:"rgb"},o;if(o=t.match(GC))o[1]!==void 0&&(a.r=o[1]/255),o[2]!==void 0&&(a.g=o[2]/255),o[3]!==void 0&&(a.b=o[3]/255);else if(o=t.match(QC))o[1]!==void 0&&(a.r=o[1]/100),o[2]!==void 0&&(a.g=o[2]/100),o[3]!==void 0&&(a.b=o[3]/100);else return;return o[4]!==void 0?a.alpha=Math.max(0,Math.min(1,o[4]/100)):o[5]!==void 0&&(a.alpha=Math.max(0,Math.min(1,+o[5]))),a},FC=(t,a)=>t===void 0?void 0:typeof t!="object"?rw(t):t.mode!==void 0?t:a?{...t,mode:a}:void 0,da=(t="rgb")=>a=>(a=FC(a,t))!==void 0?a.mode===t?a:Mn[a.mode][t]?Mn[a.mode][t](a):t==="rgb"?Mn[a.mode].rgb(a):Mn.rgb[t](Mn[a.mode].rgb(a)):void 0,Mn={},n7={},$c=[],l7={},JC=t=>t,Ve=t=>(Mn[t.mode]={...Mn[t.mode],...t.toMode},Object.keys(t.fromMode||{}).forEach(a=>{Mn[a]||(Mn[a]={}),Mn[a][t.mode]=t.fromMode[a]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(a=>{if(t.ranges[a]===void 0&&(t.ranges[a]=[0,1]),!t.interpolate[a])throw new Error(`Missing interpolator for: ${a}`);typeof t.interpolate[a]=="function"&&(t.interpolate[a]={use:t.interpolate[a]}),t.interpolate[a].fixup||(t.interpolate[a].fixup=JC)}),n7[t.mode]=t,(t.parse||[]).forEach(a=>{IC(a,t.mode)}),da(t.mode)),WC=t=>n7[t],IC=(t,a)=>{if(typeof t=="string"){if(!a)throw new Error("'mode' required when 'parser' is a string");l7[t]=a}else typeof t=="function"&&$c.indexOf(t)<0&&$c.push(t)},tf=/[^\x00-\x7F]|[a-zA-Z_]/,ew=/[^\x00-\x7F]|[-\w]/,F={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let ve=0;function yc(t){let a=t[ve],o=t[ve+1];return a==="-"||a==="+"?/\d/.test(o)||o==="."&&/\d/.test(t[ve+2]):a==="."?/\d/.test(o):/\d/.test(a)}function nf(t){if(ve>=t.length)return!1;let a=t[ve];if(tf.test(a))return!0;if(a==="-"){if(t.length-ve<2)return!1;let o=t[ve+1];return!!(o==="-"||tf.test(o))}return!1}const tw={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function wr(t){let a="";if((t[ve]==="-"||t[ve]==="+")&&(a+=t[ve++]),a+=bc(t),t[ve]==="."&&/\d/.test(t[ve+1])&&(a+=t[ve++]+bc(t)),(t[ve]==="e"||t[ve]==="E")&&((t[ve+1]==="-"||t[ve+1]==="+")&&/\d/.test(t[ve+2])?a+=t[ve++]+t[ve++]+bc(t):/\d/.test(t[ve+1])&&(a+=t[ve++]+bc(t))),nf(t)){let o=Zc(t);return o==="deg"||o==="rad"||o==="turn"||o==="grad"?{type:F.Hue,value:a*tw[o]}:void 0}return t[ve]==="%"?(ve++,{type:F.Percentage,value:+a}):{type:F.Number,value:+a}}function bc(t){let a="";for(;/\d/.test(t[ve]);)a+=t[ve++];return a}function Zc(t){let a="";for(;ve<t.length&&ew.test(t[ve]);)a+=t[ve++];return a}function nw(t){let a=Zc(t);return t[ve]==="("?(ve++,{type:F.Function,value:a}):a==="none"?{type:F.None,value:void 0}:{type:F.Ident,value:a}}function lw(t=""){let a=t.trim(),o=[],r;for(ve=0;ve<a.length;){if(r=a[ve++],r===`
155
+ `||r===" "||r===" "){for(;ve<a.length&&(a[ve]===`
156
+ `||a[ve]===" "||a[ve]===" ");)ve++;continue}if(r===",")return;if(r===")"){o.push({type:F.ParenClose});continue}if(r==="+"){if(ve--,yc(a)){o.push(wr(a));continue}return}if(r==="-"){if(ve--,yc(a)){o.push(wr(a));continue}if(nf(a)){o.push({type:F.Ident,value:Zc(a)});continue}return}if(r==="."){if(ve--,yc(a)){o.push(wr(a));continue}return}if(r==="/"){for(;ve<a.length&&(a[ve]===`
157
+ `||a[ve]===" "||a[ve]===" ");)ve++;let c;if(yc(a)&&(c=wr(a),c.type!==F.Hue)){o.push({type:F.Alpha,value:c});continue}if(nf(a)&&Zc(a)==="none"){o.push({type:F.Alpha,value:{type:F.None,value:void 0}});continue}return}if(/\d/.test(r)){ve--,o.push(wr(a));continue}if(tf.test(r)){ve--,o.push(nw(a));continue}return}return o}function aw(t){t._i=0;let a=t[t._i++];if(!a||a.type!==F.Function||a.value!=="color"||(a=t[t._i++],a.type!==F.Ident))return;const o=l7[a.value];if(!o)return;const r={mode:o},c=a7(t,!1);if(!c)return;const s=WC(o).channels;for(let d=0,h,v;d<s.length;d++)h=c[d],v=s[d],h.type!==F.None&&(r[v]=h.type===F.Number?h.value:h.value/100,v==="alpha"&&(r[v]=Math.max(0,Math.min(1,r[v]))));return r}function a7(t,a){const o=[];let r;for(;t._i<t.length;){if(r=t[t._i++],r.type===F.None||r.type===F.Number||r.type===F.Alpha||r.type===F.Percentage||a&&r.type===F.Hue){o.push(r);continue}if(r.type===F.ParenClose){if(t._i<t.length)return;continue}return}if(!(o.length<3||o.length>4)){if(o.length===4){if(o[3].type!==F.Alpha)return;o[3]=o[3].value}return o.length===3&&o.push({type:F.None,value:void 0}),o.every(c=>c.type!==F.Alpha)?o:void 0}}function ow(t,a){t._i=0;let o=t[t._i++];if(!o||o.type!==F.Function)return;let r=a7(t,a);if(r)return r.unshift(o.value),r}const rw=t=>{if(typeof t!="string")return;const a=lw(t),o=a?ow(a,!0):void 0;let r,c=0,s=$c.length;for(;c<s;)if((r=$c[c++](t,o))!==void 0)return r;return a?aw(a):void 0};function iw(t,a){if(!a||a[0]!=="rgb"&&a[0]!=="rgba")return;const o={mode:"rgb"},[,r,c,s,d]=a;if(!(r.type===F.Hue||c.type===F.Hue||s.type===F.Hue))return r.type!==F.None&&(o.r=r.type===F.Number?r.value/255:r.value/100),c.type!==F.None&&(o.g=c.type===F.Number?c.value/255:c.value/100),s.type!==F.None&&(o.b=s.type===F.Number?s.value/255:s.value/100),d.type!==F.None&&(o.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),o}const cw=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,sw=(t,a,o)=>t+o*(a-t),uw=t=>{let a=[];for(let o=0;o<t.length-1;o++){let r=t[o],c=t[o+1];r===void 0&&c===void 0?a.push(void 0):r!==void 0&&c!==void 0?a.push([r,c]):a.push(r!==void 0?[r,r]:[c,c])}return a},fw=t=>a=>{let o=uw(a);return r=>{let c=r*o.length,s=r>=1?o.length-1:Math.max(Math.floor(c),0),d=o[s];return d===void 0?void 0:t(d[0],d[1],c-s)}},ne=fw(sw),pt=t=>{let a=!1,o=t.map(r=>r!==void 0?(a=!0,r):1);return a?o:t},wo={mode:"rgb",channels:["r","g","b","alpha"],parse:[iw,PC,KC,YC,cw,"srgb"],serialize:"srgb",interpolate:{r:ne,g:ne,b:ne,alpha:{use:ne,fixup:pt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},d0=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Y3=t=>{let a=d0(t.r),o=d0(t.g),r=d0(t.b),c={mode:"xyz65",x:.5766690429101305*a+.1855582379065463*o+.1882286462349947*r,y:.297344975250536*a+.6273635662554661*o+.0752914584939979*r,z:.0270313613864123*a+.0706888525358272*o+.9913375368376386*r};return t.alpha!==void 0&&(c.alpha=t.alpha),c},p0=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),X3=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c={mode:"a98",r:p0(t*2.0415879038107465-a*.5650069742788597-.3447313507783297*o),g:p0(t*-.9692436362808798+a*1.8759675015077206+.0415550574071756*o),b:p0(t*.0134442806320312-a*.1183623922310184+1.0151749943912058*o)};return r!==void 0&&(c.alpha=r),c},h0=(t=0)=>{const a=Math.abs(t);return a<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((a+.055)/1.055,2.4)},So=({r:t,g:a,b:o,alpha:r})=>{let c={mode:"lrgb",r:h0(t),g:h0(a),b:h0(o)};return r!==void 0&&(c.alpha=r),c},pa=t=>{let{r:a,g:o,b:r,alpha:c}=So(t),s={mode:"xyz65",x:.4123907992659593*a+.357584339383878*o+.1804807884018343*r,y:.2126390058715102*a+.715168678767756*o+.0721923153607337*r,z:.0193308187155918*a+.119194779794626*o+.9505321522496607*r};return c!==void 0&&(s.alpha=c),s},g0=(t=0)=>{const a=Math.abs(t);return a>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(a,1/2.4)-.055):t*12.92},jo=({r:t,g:a,b:o,alpha:r},c="rgb")=>{let s={mode:c,r:g0(t),g:g0(a),b:g0(o)};return r!==void 0&&(s.alpha=r),s},ha=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=jo({r:t*3.2409699419045226-a*1.537383177570094-.4986107602930034*o,g:t*-.9692436362808796+a*1.8759675015077204+.0415550574071756*o,b:t*.0556300796969936-a*.2039769588889765+1.0569715142428784*o});return r!==void 0&&(c.alpha=r),c},dw={...wo,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>X3(pa(t)),xyz65:X3},toMode:{rgb:t=>ha(Y3(t)),xyz65:Y3}},St=t=>(t=t%360)<0?t+360:t,pw=(t,a)=>t.map((o,r,c)=>{if(o===void 0)return o;let s=St(o);return r===0||t[r-1]===void 0?s:a(s-St(c[r-1]))}).reduce((o,r)=>!o.length||r===void 0||o[o.length-1]===void 0?(o.push(r),o):(o.push(r+o[o.length-1]),o),[]),el=t=>pw(t,a=>Math.abs(a)<=180?a:a-360*Math.sign(a)),vt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],hw=Math.PI/180,gw=180/Math.PI;let P3=vt[3]*vt[4],q3=vt[1]*vt[4],G3=vt[1]*vt[2]-vt[0]*vt[3];const mw=({r:t,g:a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=(G3*o+t*P3-a*q3)/(G3+P3-q3),s=o-c,d=(vt[4]*(a-c)-vt[2]*s)/vt[3],h={mode:"cubehelix",l:c,s:c===0||c===1?void 0:Math.sqrt(s*s+d*d)/(vt[4]*c*(1-c))};return h.s&&(h.h=Math.atan2(d,s)*gw-120),r!==void 0&&(h.alpha=r),h},vw=({h:t,s:a,l:o,alpha:r})=>{let c={mode:"rgb"};t=(t===void 0?0:t+120)*hw,o===void 0&&(o=0);let s=a===void 0?0:a*o*(1-o),d=Math.cos(t),h=Math.sin(t);return c.r=o+s*(vt[0]*d+vt[1]*h),c.g=o+s*(vt[2]*d+vt[3]*h),c.b=o+s*(vt[4]*d+vt[5]*h),r!==void 0&&(c.alpha=r),c},xs=(t,a)=>{if(t.h===void 0||a.h===void 0||!t.s||!a.s)return 0;let o=St(t.h),r=St(a.h),c=Math.sin((r-o+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*a.s)*c},xw=(t,a)=>{if(t.h===void 0||a.h===void 0)return 0;let o=St(t.h),r=St(a.h);return Math.abs(r-o)>180?o-(r-360*Math.sign(r-o)):r-o},ys=(t,a)=>{if(t.h===void 0||a.h===void 0||!t.c||!a.c)return 0;let o=St(t.h),r=St(a.h),c=Math.sin((r-o+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*a.c)*c},tl=t=>{let a=t.reduce((r,c)=>{if(c!==void 0){let s=c*Math.PI/180;r.sin+=Math.sin(s),r.cos+=Math.cos(s)}return r},{sin:0,cos:0}),o=Math.atan2(a.sin,a.cos)*180/Math.PI;return o<0?360+o:o},yw={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:mw},toMode:{rgb:vw},interpolate:{h:{use:ne,fixup:el},s:ne,l:ne,alpha:{use:ne,fixup:pt}},difference:{h:xs},average:{h:tl}},Hl=({l:t,a,b:o,alpha:r},c="lch")=>{a===void 0&&(a=0),o===void 0&&(o=0);let s=Math.sqrt(a*a+o*o),d={mode:c,l:t,c:s};return s&&(d.h=St(Math.atan2(o,a)*180/Math.PI)),r!==void 0&&(d.alpha=r),d},Vl=({l:t,c:a,h:o,alpha:r},c="lab")=>{o===void 0&&(o=0);let s={mode:c,l:t,a:a?a*Math.cos(o/180*Math.PI):0,b:a?a*Math.sin(o/180*Math.PI):0};return r!==void 0&&(s.alpha=r),s},o7=Math.pow(29,3)/Math.pow(3,3),r7=Math.pow(6,3)/Math.pow(29,3),st={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},fo={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let m0=t=>Math.pow(t,3)>r7?Math.pow(t,3):(116*t-16)/o7;const i7=({l:t,a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=(t+16)/116,s=a/500+c,d=c-o/200,h={mode:"xyz65",x:m0(s)*fo.X,y:m0(c)*fo.Y,z:m0(d)*fo.Z};return r!==void 0&&(h.alpha=r),h},bs=t=>ha(i7(t)),v0=t=>t>r7?Math.cbrt(t):(o7*t+16)/116,c7=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=v0(t/fo.X),s=v0(a/fo.Y),d=v0(o/fo.Z),h={mode:"lab65",l:116*s-16,a:500*(c-s),b:200*(s-d)};return r!==void 0&&(h.alpha=r),h},Cs=t=>{let a=c7(pa(t));return t.r===t.b&&t.b===t.g&&(a.a=a.b=0),a},Uc=1,s7=1,Hr=26/180*Math.PI,Yc=Math.cos(Hr),Xc=Math.sin(Hr),u7=100/Math.log(139/100),lf=({l:t,c:a,h:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c={mode:"lab65",l:(Math.exp(t*Uc/u7)-1)/.0039},s=(Math.exp(.0435*a*s7*Uc)-1)/.075,d=s*Math.cos(o/180*Math.PI-Hr),h=s*Math.sin(o/180*Math.PI-Hr);return c.a=d*Yc-h/.83*Xc,c.b=d*Xc+h/.83*Yc,r!==void 0&&(c.alpha=r),c},af=({l:t,a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=a*Yc+o*Xc,s=.83*(o*Yc-a*Xc),d=Math.sqrt(c*c+s*s),h={mode:"dlch",l:u7/Uc*Math.log(1+.0039*t),c:Math.log(1+.075*d)/(.0435*s7*Uc)};return h.c&&(h.h=St((Math.atan2(s,c)+Hr)/Math.PI*180)),r!==void 0&&(h.alpha=r),h},Q3=t=>lf(Hl(t,"dlch")),K3=t=>Vl(af(t),"dlab"),bw={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Q3,rgb:t=>bs(Q3(t))},fromMode:{lab65:K3,rgb:t=>K3(Cs(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:ne,a:ne,b:ne,alpha:{use:ne,fixup:pt}}},Cw={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:lf,dlab:t=>Vl(t,"dlab"),rgb:t=>bs(lf(t))},fromMode:{lab65:af,dlab:t=>Hl(t,"dlch"),rgb:t=>af(Cs(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:ne,c:ne,h:{use:ne,fixup:el},alpha:{use:ne,fixup:pt}},difference:{h:ys},average:{h:tl}};function ww({h:t,s:a,i:o,alpha:r}){t=St(t!==void 0?t:0),a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.abs(t/60%2-1),s;switch(Math.floor(t/60)){case 0:s={r:o*(1+a*(3/(2-c)-1)),g:o*(1+a*(3*(1-c)/(2-c)-1)),b:o*(1-a)};break;case 1:s={r:o*(1+a*(3*(1-c)/(2-c)-1)),g:o*(1+a*(3/(2-c)-1)),b:o*(1-a)};break;case 2:s={r:o*(1-a),g:o*(1+a*(3/(2-c)-1)),b:o*(1+a*(3*(1-c)/(2-c)-1))};break;case 3:s={r:o*(1-a),g:o*(1+a*(3*(1-c)/(2-c)-1)),b:o*(1+a*(3/(2-c)-1))};break;case 4:s={r:o*(1+a*(3*(1-c)/(2-c)-1)),g:o*(1-a),b:o*(1+a*(3/(2-c)-1))};break;case 5:s={r:o*(1+a*(3/(2-c)-1)),g:o*(1-a),b:o*(1+a*(3*(1-c)/(2-c)-1))};break;default:s={r:o*(1-a),g:o*(1-a),b:o*(1-a)}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function Sw({r:t,g:a,b:o,alpha:r}){t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.max(t,a,o),s=Math.min(t,a,o),d={mode:"hsi",s:t+a+o===0?0:1-3*s/(t+a+o),i:(t+a+o)/3};return c-s!==0&&(d.h=(c===t?(a-o)/(c-s)+(a<o)*6:c===a?(o-t)/(c-s)+2:(t-a)/(c-s)+4)*60),r!==void 0&&(d.alpha=r),d}const jw={mode:"hsi",toMode:{rgb:ww},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Sw},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:ne,fixup:el},s:ne,i:ne,alpha:{use:ne,fixup:pt}},difference:{h:xs},average:{h:tl}};function Mw({h:t,s:a,l:o,alpha:r}){t=St(t!==void 0?t:0),a===void 0&&(a=0),o===void 0&&(o=0);let c=o+a*(o<.5?o:1-o),s=c-(c-o)*2*Math.abs(t/60%2-1),d;switch(Math.floor(t/60)){case 0:d={r:c,g:s,b:2*o-c};break;case 1:d={r:s,g:c,b:2*o-c};break;case 2:d={r:2*o-c,g:c,b:s};break;case 3:d={r:2*o-c,g:s,b:c};break;case 4:d={r:s,g:2*o-c,b:c};break;case 5:d={r:c,g:2*o-c,b:s};break;default:d={r:2*o-c,g:2*o-c,b:2*o-c}}return d.mode="rgb",r!==void 0&&(d.alpha=r),d}function Ew({r:t,g:a,b:o,alpha:r}){t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.max(t,a,o),s=Math.min(t,a,o),d={mode:"hsl",s:c===s?0:(c-s)/(1-Math.abs(c+s-1)),l:.5*(c+s)};return c-s!==0&&(d.h=(c===t?(a-o)/(c-s)+(a<o)*6:c===a?(o-t)/(c-s)+2:(t-a)/(c-s)+4)*60),r!==void 0&&(d.alpha=r),d}const Tw=(t,a)=>{switch(a){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return t*360}},Rw=new RegExp(`^hsla?\\(\\s*${qC}${vo}${_r}${vo}${_r}\\s*(?:,\\s*${Uf}\\s*)?\\)$`),_w=t=>{let a=t.match(Rw);if(!a)return;let o={mode:"hsl"};return a[3]!==void 0?o.h=+a[3]:a[1]!==void 0&&a[2]!==void 0&&(o.h=Tw(a[1],a[2])),a[4]!==void 0&&(o.s=Math.min(Math.max(0,a[4]/100),1)),a[5]!==void 0&&(o.l=Math.min(Math.max(0,a[5]/100),1)),a[6]!==void 0?o.alpha=Math.max(0,Math.min(1,a[6]/100)):a[7]!==void 0&&(o.alpha=Math.max(0,Math.min(1,+a[7]))),o};function Nw(t,a){if(!a||a[0]!=="hsl"&&a[0]!=="hsla")return;const o={mode:"hsl"},[,r,c,s,d]=a;if(r.type!==F.None){if(r.type===F.Percentage)return;o.h=r.value}if(c.type!==F.None){if(c.type===F.Hue)return;o.s=c.value/100}if(s.type!==F.None){if(s.type===F.Hue)return;o.l=s.value/100}return d.type!==F.None&&(o.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),o}const f7={mode:"hsl",toMode:{rgb:Mw},fromMode:{rgb:Ew},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Nw,_w],serialize:t=>`hsl(${t.h!==void 0?t.h:"none"} ${t.s!==void 0?t.s*100+"%":"none"} ${t.l!==void 0?t.l*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:ne,fixup:el},s:ne,l:ne,alpha:{use:ne,fixup:pt}},difference:{h:xs},average:{h:tl}};function d7({h:t,s:a,v:o,alpha:r}){t=St(t!==void 0?t:0),a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.abs(t/60%2-1),s;switch(Math.floor(t/60)){case 0:s={r:o,g:o*(1-a*c),b:o*(1-a)};break;case 1:s={r:o*(1-a*c),g:o,b:o*(1-a)};break;case 2:s={r:o*(1-a),g:o,b:o*(1-a*c)};break;case 3:s={r:o*(1-a),g:o*(1-a*c),b:o};break;case 4:s={r:o*(1-a*c),g:o*(1-a),b:o};break;case 5:s={r:o,g:o*(1-a),b:o*(1-a*c)};break;default:s={r:o*(1-a),g:o*(1-a),b:o*(1-a)}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function p7({r:t,g:a,b:o,alpha:r}){t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.max(t,a,o),s=Math.min(t,a,o),d={mode:"hsv",s:c===0?0:1-s/c,v:c};return c-s!==0&&(d.h=(c===t?(a-o)/(c-s)+(a<o)*6:c===a?(o-t)/(c-s)+2:(t-a)/(c-s)+4)*60),r!==void 0&&(d.alpha=r),d}const h7={mode:"hsv",toMode:{rgb:d7},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:p7},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:ne,fixup:el},s:ne,v:ne,alpha:{use:ne,fixup:pt}},difference:{h:xs},average:{h:tl}};function Lw({h:t,w:a,b:o,alpha:r}){if(a===void 0&&(a=0),o===void 0&&(o=0),a+o>1){let c=a+o;a/=c,o/=c}return d7({h:t,s:o===1?1:1-a/(1-o),v:1-o,alpha:r})}function Ow(t){let a=p7(t);if(a===void 0)return;let o=a.s!==void 0?a.s:0,r=a.v!==void 0?a.v:0,c={mode:"hwb",w:(1-o)*r,b:1-r};return a.h!==void 0&&(c.h=a.h),a.alpha!==void 0&&(c.alpha=a.alpha),c}function Aw(t,a){if(!a||a[0]!=="hwb")return;const o={mode:"hwb"},[,r,c,s,d]=a;if(r.type!==F.None){if(r.type===F.Percentage)return;o.h=r.value}if(c.type!==F.None){if(c.type===F.Hue)return;o.w=c.value/100}if(s.type!==F.None){if(s.type===F.Hue)return;o.b=s.value/100}return d.type!==F.None&&(o.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),o}const zw={mode:"hwb",toMode:{rgb:Lw},fromMode:{rgb:Ow},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Aw],serialize:t=>`hwb(${t.h!==void 0?t.h:"none"} ${t.w!==void 0?t.w*100+"%":"none"} ${t.b!==void 0?t.b*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:ne,fixup:el},w:ne,b:ne,alpha:{use:ne,fixup:pt}},difference:{h:xw},average:{h:tl}},g7=203,ws=.1593017578125,m7=78.84375,Ss=.8359375,js=18.8515625,Ms=18.6875;function x0(t){if(t<0)return 0;const a=Math.pow(t,1/m7);return 1e4*Math.pow(Math.max(0,a-Ss)/(js-Ms*a),1/ws)}function y0(t){if(t<0)return 0;const a=Math.pow(t/1e4,ws);return Math.pow((Ss+js*a)/(1+Ms*a),m7)}const b0=t=>Math.max(t/g7,0),F3=({i:t,t:a,p:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);const c=x0(t+.008609037037932761*a+.11102962500302593*o),s=x0(t-.00860903703793275*a-.11102962500302599*o),d=x0(t+.5600313357106791*a-.32062717498731885*o),h={mode:"xyz65",x:b0(2.070152218389422*c-1.3263473389671556*s+.2066510476294051*d),y:b0(.3647385209748074*c+.680566024947227*s-.0453045459220346*d),z:b0(-.049747207535812*c-.0492609666966138*s+1.1880659249923042*d)};return r!==void 0&&(h.alpha=r),h},C0=(t=0)=>Math.max(t*g7,0),J3=({x:t,y:a,z:o,alpha:r})=>{const c=C0(t),s=C0(a),d=C0(o),h=y0(.3592832590121217*c+.6976051147779502*s-.0358915932320289*d),v=y0(-.1920808463704995*c+1.1004767970374323*s+.0753748658519118*d),m=y0(.0070797844607477*c+.0748396662186366*s+.8433265453898765*d),y=.5*h+.5*v,b=1.61376953125*h-3.323486328125*v+1.709716796875*m,C=4.378173828125*h-4.24560546875*v-.132568359375*m,w={mode:"itp",i:y,t:b,p:C};return r!==void 0&&(w.alpha=r),w},Hw={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:F3,rgb:t=>ha(F3(t))},fromMode:{xyz65:J3,rgb:t=>J3(pa(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:ne,t:ne,p:ne,alpha:{use:ne,fixup:pt}}},Vw=134.03437499999998,kw=16295499532821565e-27,w0=t=>{if(t<0)return 0;let a=Math.pow(t/1e4,ws);return Math.pow((Ss+js*a)/(1+Ms*a),Vw)},S0=(t=0)=>Math.max(t*203,0),v7=({x:t,y:a,z:o,alpha:r})=>{t=S0(t),a=S0(a),o=S0(o);let c=1.15*t-.15*o,s=.66*a+.34*t,d=w0(.41478972*c+.579999*s+.014648*o),h=w0(-.20151*c+1.120649*s+.0531008*o),v=w0(-.0166008*c+.2648*s+.6684799*o),m=(d+h)/2,y={mode:"jab",j:.44*m/(1-.56*m)-kw,a:3.524*d-4.066708*h+.542708*v,b:.199076*d+1.096799*h-1.295875*v};return r!==void 0&&(y.alpha=r),y},Dw=134.03437499999998,W3=16295499532821565e-27,j0=t=>{if(t<0)return 0;let a=Math.pow(t,1/Dw);return 1e4*Math.pow((Ss-a)/(Ms*a-js),1/ws)},M0=t=>t/203,x7=({j:t,a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=(t+W3)/(.44+.56*(t+W3)),s=j0(c+.13860504*a+.058047316*o),d=j0(c-.13860504*a-.058047316*o),h=j0(c-.096019242*a-.8118919*o),v={mode:"xyz65",x:M0(1.661373024652174*s-.914523081304348*d+.23136208173913045*h),y:M0(-.3250758611844533*s+1.571847026732543*d-.21825383453227928*h),z:M0(-.090982811*s-.31272829*d+1.5227666*h)};return r!==void 0&&(v.alpha=r),v},y7=t=>{let a=v7(pa(t));return t.r===t.b&&t.b===t.g&&(a.a=a.b=0),a},b7=t=>ha(x7(t)),Bw={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:y7,xyz65:v7},toMode:{rgb:b7,xyz65:x7},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:ne,a:ne,b:ne,alpha:{use:ne,fixup:pt}}},I3=({j:t,a,b:o,alpha:r})=>{a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.sqrt(a*a+o*o),s={mode:"jch",j:t,c};return c&&(s.h=St(Math.atan2(o,a)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},ep=({j:t,c:a,h:o,alpha:r})=>{o===void 0&&(o=0);let c={mode:"jab",j:t,a:a?a*Math.cos(o/180*Math.PI):0,b:a?a*Math.sin(o/180*Math.PI):0};return r!==void 0&&(c.alpha=r),c},$w={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:ep,rgb:t=>b7(ep(t))},fromMode:{rgb:t=>I3(y7(t)),jab:I3},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:ne,fixup:el},c:ne,j:ne,alpha:{use:ne,fixup:pt}},difference:{h:ys},average:{h:tl}},Es=Math.pow(29,3)/Math.pow(3,3),Yf=Math.pow(6,3)/Math.pow(29,3);let E0=t=>Math.pow(t,3)>Yf?Math.pow(t,3):(116*t-16)/Es;const Xf=({l:t,a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=(t+16)/116,s=a/500+c,d=c-o/200,h={mode:"xyz50",x:E0(s)*st.X,y:E0(c)*st.Y,z:E0(d)*st.Z};return r!==void 0&&(h.alpha=r),h},Pr=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=jo({r:t*3.1341359569958707-a*1.6173863321612538-.4906619460083532*o,g:t*-.978795502912089+a*1.916254567259524+.03344273116131949*o,b:t*.07195537988411677-a*.2289768264158322+1.405386058324125*o});return r!==void 0&&(c.alpha=r),c},C7=t=>Pr(Xf(t)),qr=t=>{let{r:a,g:o,b:r,alpha:c}=So(t),s={mode:"xyz50",x:.436065742824811*a+.3851514688337912*o+.14307845442264197*r,y:.22249319175623702*a+.7168870538238823*o+.06061979053616537*r,z:.013923904500943465*a+.09708128566574634*o+.7140993584005155*r};return c!==void 0&&(s.alpha=c),s},T0=t=>t>Yf?Math.cbrt(t):(Es*t+16)/116,Pf=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=T0(t/st.X),s=T0(a/st.Y),d=T0(o/st.Z),h={mode:"lab",l:116*s-16,a:500*(c-s),b:200*(s-d)};return r!==void 0&&(h.alpha=r),h},w7=t=>{let a=Pf(qr(t));return t.r===t.b&&t.b===t.g&&(a.a=a.b=0),a};function Zw(t,a){if(!a||a[0]!=="lab")return;const o={mode:"lab"},[,r,c,s,d]=a;if(!(r.type===F.Hue||c.type===F.Hue||s.type===F.Hue))return r.type!==F.None&&(o.l=Math.min(Math.max(0,r.value),100)),c.type!==F.None&&(o.a=c.type===F.Number?c.value:c.value*125/100),s.type!==F.None&&(o.b=s.type===F.Number?s.value:s.value*125/100),d.type!==F.None&&(o.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),o}const qf={mode:"lab",toMode:{xyz50:Xf,rgb:C7},fromMode:{xyz50:Pf,rgb:w7},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Zw],serialize:t=>`lab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:ne,a:ne,b:ne,alpha:{use:ne,fixup:pt}}},Uw={...qf,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:i7,rgb:bs},fromMode:{xyz65:c7,rgb:Cs},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};function Yw(t,a){if(!a||a[0]!=="lch")return;const o={mode:"lch"},[,r,c,s,d]=a;if(r.type!==F.None){if(r.type===F.Hue)return;o.l=Math.min(Math.max(0,r.value),100)}if(c.type!==F.None&&(o.c=Math.max(0,c.type===F.Number?c.value:c.value*150/100)),s.type!==F.None){if(s.type===F.Percentage)return;o.h=s.value}return d.type!==F.None&&(o.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),o}const Gf={mode:"lch",toMode:{lab:Vl,rgb:t=>C7(Vl(t))},fromMode:{rgb:t=>Hl(w7(t)),lab:Hl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Yw],serialize:t=>`lch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:ne,fixup:el},c:ne,l:ne,alpha:{use:ne,fixup:pt}},difference:{h:ys},average:{h:tl}},Xw={...Gf,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Vl(t,"lab65"),rgb:t=>bs(Vl(t,"lab65"))},fromMode:{rgb:t=>Hl(Cs(t),"lch65"),lab65:t=>Hl(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},S7=({l:t,u:a,v:o,alpha:r})=>{a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.sqrt(a*a+o*o),s={mode:"lchuv",l:t,c};return c&&(s.h=St(Math.atan2(o,a)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},j7=({l:t,c:a,h:o,alpha:r})=>{o===void 0&&(o=0);let c={mode:"luv",l:t,u:a?a*Math.cos(o/180*Math.PI):0,v:a?a*Math.sin(o/180*Math.PI):0};return r!==void 0&&(c.alpha=r),c},M7=(t,a,o)=>4*t/(t+15*a+3*o),E7=(t,a,o)=>9*a/(t+15*a+3*o),Pw=M7(st.X,st.Y,st.Z),qw=E7(st.X,st.Y,st.Z),Gw=t=>t<=Yf?Es*t:116*Math.cbrt(t)-16,of=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=Gw(a/st.Y),s=M7(t,a,o),d=E7(t,a,o);!isFinite(s)||!isFinite(d)?c=s=d=0:(s=13*c*(s-Pw),d=13*c*(d-qw));let h={mode:"luv",l:c,u:s,v:d};return r!==void 0&&(h.alpha=r),h},Qw=(t,a,o)=>4*t/(t+15*a+3*o),Kw=(t,a,o)=>9*a/(t+15*a+3*o),Fw=Qw(st.X,st.Y,st.Z),Jw=Kw(st.X,st.Y,st.Z),rf=({l:t,u:a,v:o,alpha:r})=>{if(t===void 0&&(t=0),t===0)return{mode:"xyz50",x:0,y:0,z:0};a===void 0&&(a=0),o===void 0&&(o=0);let c=a/(13*t)+Fw,s=o/(13*t)+Jw,d=st.Y*(t<=8?t/Es:Math.pow((t+16)/116,3)),h=d*(9*c)/(4*s),v=d*(12-3*c-20*s)/(4*s),m={mode:"xyz50",x:h,y:d,z:v};return r!==void 0&&(m.alpha=r),m},Ww=t=>S7(of(qr(t))),Iw=t=>Pr(rf(j7(t))),eS={mode:"lchuv",toMode:{luv:j7,rgb:Iw},fromMode:{rgb:Ww,luv:S7},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:ne,fixup:el},c:ne,l:ne,alpha:{use:ne,fixup:pt}},difference:{h:ys},average:{h:tl}},tS={...wo,mode:"lrgb",toMode:{rgb:jo},fromMode:{rgb:So},parse:["srgb-linear"],serialize:"srgb-linear"},nS={mode:"luv",toMode:{xyz50:rf,rgb:t=>Pr(rf(t))},fromMode:{xyz50:of,rgb:t=>of(qr(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:ne,u:ne,v:ne,alpha:{use:ne,fixup:pt}}},T7=({r:t,g:a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.cbrt(.412221469470763*t+.5363325372617348*a+.0514459932675022*o),s=Math.cbrt(.2119034958178252*t+.6806995506452344*a+.1073969535369406*o),d=Math.cbrt(.0883024591900564*t+.2817188391361215*a+.6299787016738222*o),h={mode:"oklab",l:.210454268309314*c+.7936177747023054*s-.0040720430116193*d,a:1.9779985324311684*c-2.42859224204858*s+.450593709617411*d,b:.0259040424655478*c+.7827717124575296*s-.8086757549230774*d};return r!==void 0&&(h.alpha=r),h},Ts=t=>{let a=T7(So(t));return t.r===t.b&&t.b===t.g&&(a.a=a.b=0),a},Gr=({l:t,a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=Math.pow(t+.3963377773761749*a+.2158037573099136*o,3),s=Math.pow(t-.1055613458156586*a-.0638541728258133*o,3),d=Math.pow(t-.0894841775298119*a-1.2914855480194092*o,3),h={mode:"lrgb",r:4.076741636075957*c-3.3077115392580616*s+.2309699031821044*d,g:-1.2684379732850317*c+2.6097573492876887*s-.3413193760026573*d,b:-.0041960761386756*c-.7034186179359362*s+1.7076146940746117*d};return r!==void 0&&(h.alpha=r),h},Rs=t=>jo(Gr(t));function cf(t){const r=1.170873786407767;return .5*(r*t-.206+Math.sqrt((r*t-.206)*(r*t-.206)+4*.03*r*t))}function Pc(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function lS(t,a){let o,r,c,s,d,h,v,m;-1.88170328*t-.80936493*a>1?(o=1.19086277,r=1.76576728,c=.59662641,s=.75515197,d=.56771245,h=4.0767416621,v=-3.3077115913,m=.2309699292):1.81444104*t-1.19445276*a>1?(o=.73956515,r=-.45954404,c=.08285427,s=.1254107,d=.14503204,h=-1.2684380046,v=2.6097574011,m=-.3413193965):(o=1.35733652,r=-.00915799,c=-1.1513021,s=-.50559606,d=.00692167,h=-.0041960863,v=-.7034186147,m=1.707614701);let y=o+r*t+c*a+s*t*t+d*t*a,b=.3963377774*t+.2158037573*a,C=-.1055613458*t-.0638541728*a,w=-.0894841775*t-1.291485548*a;{let E=1+y*b,j=1+y*C,M=1+y*w,R=E*E*E,T=j*j*j,N=M*M*M,_=3*b*E*E,k=3*C*j*j,U=3*w*M*M,z=6*b*b*E,W=6*C*C*j,te=6*w*w*M,ue=h*R+v*T+m*N,oe=h*_+v*k+m*U,ie=h*z+v*W+m*te;y=y-ue*oe/(oe*oe-.5*ue*ie)}return y}function Qf(t,a){let o=lS(t,a),r=Gr({l:1,a:o*t,b:o*a}),c=Math.cbrt(1/Math.max(r.r,r.g,r.b)),s=c*o;return[c,s]}function aS(t,a,o,r,c,s=null){s||(s=Qf(t,a));let d;if((o-c)*s[1]-(s[0]-c)*r<=0)d=s[1]*c/(r*s[0]+s[1]*(c-o));else{d=s[1]*(c-1)/(r*(s[0]-1)+s[1]*(c-o));{let h=o-c,v=r,m=.3963377774*t+.2158037573*a,y=-.1055613458*t-.0638541728*a,b=-.0894841775*t-1.291485548*a,C=h+v*m,w=h+v*y,E=h+v*b;{let j=c*(1-d)+d*o,M=d*r,R=j+M*m,T=j+M*y,N=j+M*b,_=R*R*R,k=T*T*T,U=N*N*N,z=3*C*R*R,W=3*w*T*T,te=3*E*N*N,ue=6*C*C*R,oe=6*w*w*T,ie=6*E*E*N,ge=4.0767416621*_-3.3077115913*k+.2309699292*U-1,fe=4.0767416621*z-3.3077115913*W+.2309699292*te,xe=4.0767416621*ue-3.3077115913*oe+.2309699292*ie,H=fe/(fe*fe-.5*ge*xe),D=-ge*H,K=-1.2684380046*_+2.6097574011*k-.3413193965*U-1,ae=-1.2684380046*z+2.6097574011*W-.3413193965*te,pe=-1.2684380046*ue+2.6097574011*oe-.3413193965*ie,O=ae/(ae*ae-.5*K*pe),X=-K*O,J=-.0041960863*_-.7034186147*k+1.707614701*U-1,ee=-.0041960863*z-.7034186147*W+1.707614701*te,se=-.0041960863*ue-.7034186147*oe+1.707614701*ie,I=ee/(ee*ee-.5*J*se),Q=-J*I;D=H>=0?D:1e6,X=O>=0?X:1e6,Q=I>=0?Q:1e6,d+=Math.min(D,Math.min(X,Q))}}}return d}function Kf(t,a,o=null){o||(o=Qf(t,a));let r=o[0],c=o[1];return[c/r,c/(1-r)]}function R7(t,a,o){let r=Qf(a,o),c=aS(a,o,t,1,t,r),s=Kf(a,o,r),d=.11516993+1/(7.4477897+4.1590124*o+a*(-2.19557347+1.75198401*o+a*(-2.13704948-10.02301043*o+a*(-4.24894561+5.38770819*o+4.69891013*a)))),h=.11239642+1/(1.6132032-.68124379*o+a*(.40370612+.90148123*o+a*(-.27087943+.6122399*o+a*(.00299215-.45399568*o-.14661872*a)))),v=c/Math.min(t*s[0],(1-t)*s[1]),m=t*d,y=(1-t)*h,b=.9*v*Math.sqrt(Math.sqrt(1/(1/(m*m*m*m)+1/(y*y*y*y))));return m=t*.4,y=(1-t)*.8,[Math.sqrt(1/(1/(m*m)+1/(y*y))),b,c]}function tp(t){const a=t.l!==void 0?t.l:0,o=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,c={mode:"okhsl",l:cf(a)};t.alpha!==void 0&&(c.alpha=t.alpha);let s=Math.sqrt(o*o+r*r);if(!s)return c.s=0,c;let[d,h,v]=R7(a,o/s,r/s),m;if(s<h){let y=0,b=.8*d,C=1-b/h;m=(s-y)/(b+C*(s-y))*.8}else{let y=h,b=.2*h*h*1.25*1.25/d,C=1-b/(v-h);m=.8+.2*((s-y)/(b+C*(s-y)))}return m&&(c.s=m,c.h=St(Math.atan2(r,o)*180/Math.PI)),c}function np(t){let a=t.h!==void 0?t.h:0,o=t.s!==void 0?t.s:0,r=t.l!==void 0?t.l:0;const c={mode:"oklab",l:Pc(r)};if(t.alpha!==void 0&&(c.alpha=t.alpha),!o||r===1)return c.a=c.b=0,c;let s=Math.cos(a/180*Math.PI),d=Math.sin(a/180*Math.PI),[h,v,m]=R7(c.l,s,d),y,b,C,w;o<.8?(y=1.25*o,b=0,C=.8*h,w=1-C/v):(y=5*(o-.8),b=v,C=.2*v*v*1.25*1.25/h,w=1-C/(m-v));let E=b+y*C/(1-w*y);return c.a=E*s,c.b=E*d,c}const oS={...f7,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:tp,rgb:t=>tp(Ts(t))},toMode:{oklab:np,rgb:t=>Rs(np(t))}};function lp(t){let a=t.l!==void 0?t.l:0,o=t.a!==void 0?t.a:0,r=t.b!==void 0?t.b:0,c=Math.sqrt(o*o+r*r),s=c?o/c:1,d=c?r/c:1,[h,v]=Kf(s,d),m=.5,y=1-m/h,b=v/(c+a*v),C=b*a,w=b*c,E=Pc(C),j=w*E/C,M=Gr({l:E,a:s*j,b:d*j}),R=Math.cbrt(1/Math.max(M.r,M.g,M.b,0));a=a/R,c=c/R*cf(a)/a,a=cf(a);const T={mode:"okhsv",s:c?(m+v)*w/(v*m+v*y*w):0,v:a?a/C:0};return T.s&&(T.h=St(Math.atan2(r,o)*180/Math.PI)),t.alpha!==void 0&&(T.alpha=t.alpha),T}function ap(t){const a={mode:"oklab"};t.alpha!==void 0&&(a.alpha=t.alpha);const o=t.h!==void 0?t.h:0,r=t.s!==void 0?t.s:0,c=t.v!==void 0?t.v:0,s=Math.cos(o/180*Math.PI),d=Math.sin(o/180*Math.PI),[h,v]=Kf(s,d),m=.5,y=1-m/h,b=1-r*m/(m+v-v*y*r),C=r*v*m/(m+v-v*y*r),w=Pc(b),E=C*w/b,j=Gr({l:w,a:s*E,b:d*E}),M=Math.cbrt(1/Math.max(j.r,j.g,j.b,0)),R=Pc(c*b),T=C*R/b;return a.l=R*M,a.a=T*s*M,a.b=T*d*M,a}const rS={...h7,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:lp,rgb:t=>lp(Ts(t))},toMode:{oklab:ap,rgb:t=>Rs(ap(t))}};function iS(t,a){if(!a||a[0]!=="oklab")return;const o={mode:"oklab"},[,r,c,s,d]=a;if(!(r.type===F.Hue||c.type===F.Hue||s.type===F.Hue))return r.type!==F.None&&(o.l=Math.min(Math.max(0,r.type===F.Number?r.value:r.value/100),1)),c.type!==F.None&&(o.a=c.type===F.Number?c.value:c.value*.4/100),s.type!==F.None&&(o.b=s.type===F.Number?s.value:s.value*.4/100),d.type!==F.None&&(o.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),o}const cS={...qf,mode:"oklab",toMode:{lrgb:Gr,rgb:Rs},fromMode:{lrgb:T7,rgb:Ts},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[iS],serialize:t=>`oklab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`};function sS(t,a){if(!a||a[0]!=="oklch")return;const o={mode:"oklch"},[,r,c,s,d]=a;if(r.type!==F.None){if(r.type===F.Hue)return;o.l=Math.min(Math.max(0,r.type===F.Number?r.value:r.value/100),1)}if(c.type!==F.None&&(o.c=Math.max(0,c.type===F.Number?c.value:c.value*.4/100)),s.type!==F.None){if(s.type===F.Percentage)return;o.h=s.value}return d.type!==F.None&&(o.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),o}const uS={...Gf,mode:"oklch",toMode:{oklab:t=>Vl(t,"oklab"),rgb:t=>Rs(Vl(t,"oklab"))},fromMode:{rgb:t=>Hl(Ts(t),"oklch"),oklab:t=>Hl(t,"oklch")},parse:[sS],serialize:t=>`oklch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},op=t=>{let{r:a,g:o,b:r,alpha:c}=So(t),s={mode:"xyz65",x:.486570948648216*a+.265667693169093*o+.1982172852343625*r,y:.2289745640697487*a+.6917385218365062*o+.079286914093745*r,z:0*a+.0451133818589026*o+1.043944368900976*r};return c!==void 0&&(s.alpha=c),s},rp=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c=jo({r:t*2.4934969119414263-a*.9313836179191242-.402710784450717*o,g:t*-.8294889695615749+a*1.7626640603183465+.0236246858419436*o,b:t*.0358458302437845-a*.0761723892680418+.9568845240076871*o},"p3");return r!==void 0&&(c.alpha=r),c},fS={...wo,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>rp(pa(t)),xyz65:rp},toMode:{rgb:t=>ha(op(t)),xyz65:op}},R0=t=>{let a=Math.abs(t);return a>=1/512?Math.sign(t)*Math.pow(a,1/1.8):16*t},ip=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c={mode:"prophoto",r:R0(t*1.3457868816471585-a*.2555720873797946-.0511018649755453*o),g:R0(t*-.5446307051249019+a*1.5082477428451466+.0205274474364214*o),b:R0(t*0+a*0+1.2119675456389452*o)};return r!==void 0&&(c.alpha=r),c},_0=(t=0)=>{let a=Math.abs(t);return a>=16/512?Math.sign(t)*Math.pow(a,1.8):t/16},cp=t=>{let a=_0(t.r),o=_0(t.g),r=_0(t.b),c={mode:"xyz50",x:.7977666449006423*a+.1351812974005331*o+.0313477341283922*r,y:.2880748288194013*a+.7118352342418731*o+899369387256e-16*r,z:0*a+0*o+.8251046025104602*r};return t.alpha!==void 0&&(c.alpha=t.alpha),c},dS={...wo,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:ip,rgb:t=>ip(qr(t))},toMode:{xyz50:cp,rgb:t=>Pr(cp(t))}},sp=1.09929682680944,pS=.018053968510807,N0=t=>{const a=Math.abs(t);return a>pS?(Math.sign(t)||1)*(sp*Math.pow(a,.45)-(sp-1)):4.5*t},up=({x:t,y:a,z:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);let c={mode:"rec2020",r:N0(t*1.7166511879712683-a*.3556707837763925-.2533662813736599*o),g:N0(t*-.6666843518324893+a*1.6164812366349395+.0157685458139111*o),b:N0(t*.0176398574453108-a*.0427706132578085+.9421031212354739*o)};return r!==void 0&&(c.alpha=r),c},fp=1.09929682680944,hS=.018053968510807,L0=(t=0)=>{let a=Math.abs(t);return a<hS*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((a+fp-1)/fp,1/.45)},dp=t=>{let a=L0(t.r),o=L0(t.g),r=L0(t.b),c={mode:"xyz65",x:.6369580483012911*a+.1446169035862083*o+.1688809751641721*r,y:.262700212011267*a+.6779980715188708*o+.059301716469862*r,z:0*a+.0280726930490874*o+1.0609850577107909*r};return t.alpha!==void 0&&(c.alpha=t.alpha),c},gS={...wo,mode:"rec2020",fromMode:{xyz65:up,rgb:t=>up(pa(t))},toMode:{xyz65:dp,rgb:t=>ha(dp(t))},parse:["rec2020"],serialize:"rec2020"},ra=.0037930732552754493,_7=Math.cbrt(ra),O0=t=>Math.cbrt(t)-_7,mS=t=>{const{r:a,g:o,b:r,alpha:c}=So(t),s=O0(.3*a+.622*o+.078*r+ra),d=O0(.23*a+.692*o+.078*r+ra),h=O0(.2434226892454782*a+.2047674442449682*o+.5518098665095535*r+ra),v={mode:"xyb",x:(s-d)/2,y:(s+d)/2,b:h-(s+d)/2};return c!==void 0&&(v.alpha=c),v},A0=t=>Math.pow(t+_7,3),vS=({x:t,y:a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);const c=A0(t+a)-ra,s=A0(a-t)-ra,d=A0(o+a)-ra,h=jo({r:11.031566904639861*c-9.866943908131562*s-.16462299650829934*d,g:-3.2541473810744237*c+4.418770377582723*s-.16462299650829934*d,b:-3.6588512867136815*c+2.7129230459360922*s+1.9459282407775895*d});return r!==void 0&&(h.alpha=r),h},xS={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:vS},fromMode:{rgb:mS},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:ne,y:ne,b:ne,alpha:{use:ne,fixup:pt}}},yS={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Pr,lab:Pf},fromMode:{rgb:qr,lab:Xf},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:ne,y:ne,z:ne,alpha:{use:ne,fixup:pt}}},bS=t=>{let{x:a,y:o,z:r,alpha:c}=t;a===void 0&&(a=0),o===void 0&&(o=0),r===void 0&&(r=0);let s={mode:"xyz50",x:1.0479298208405488*a+.0229467933410191*o-.0501922295431356*r,y:.0296278156881593*a+.990434484573249*o-.0170738250293851*r,z:-.0092430581525912*a+.0150551448965779*o+.7518742899580008*r};return c!==void 0&&(s.alpha=c),s},CS=t=>{let{x:a,y:o,z:r,alpha:c}=t;a===void 0&&(a=0),o===void 0&&(o=0),r===void 0&&(r=0);let s={mode:"xyz65",x:.9554734527042182*a-.0230985368742614*o+.0632593086610217*r,y:-.0283697069632081*a+1.0099954580058226*o+.021041398966943*r,z:.0123140016883199*a-.0205076964334779*o+1.3303659366080753*r};return c!==void 0&&(s.alpha=c),s},wS={mode:"xyz65",toMode:{rgb:ha,xyz50:bS},fromMode:{rgb:pa,xyz50:CS},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:ne,y:ne,z:ne,alpha:{use:ne,fixup:pt}}},SS=({r:t,g:a,b:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);const c={mode:"yiq",y:.29889531*t+.58662247*a+.11448223*o,i:.59597799*t-.2741761*a-.32180189*o,q:.21147017*t-.52261711*a+.31114694*o};return r!==void 0&&(c.alpha=r),c},jS=({y:t,i:a,q:o,alpha:r})=>{t===void 0&&(t=0),a===void 0&&(a=0),o===void 0&&(o=0);const c={mode:"rgb",r:t+.95608445*a+.6208885*o,g:t-.27137664*a-.6486059*o,b:t-1.10561724*a+1.70250126*o};return r!==void 0&&(c.alpha=r),c},MS={mode:"yiq",toMode:{rgb:jS},fromMode:{rgb:SS},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:ne,i:ne,q:ne,alpha:{use:ne,fixup:pt}}},ES=t=>Math.max(0,Math.min(1,t||0)),z0=t=>Math.round(ES(t)*255),TS=da("rgb"),RS=t=>{if(t===void 0)return;let a=z0(t.r),o=z0(t.g),r=z0(t.b);return"#"+(1<<24|a<<16|o<<8|r).toString(16).slice(1)},_S=t=>RS(TS(t));Ve(dw);Ve(yw);Ve(bw);Ve(Cw);Ve(jw);Ve(f7);Ve(h7);Ve(zw);Ve(Hw);Ve(Bw);Ve($w);Ve(qf);Ve(Uw);Ve(Gf);Ve(Xw);Ve(eS);Ve(tS);Ve(nS);Ve(oS);Ve(rS);Ve(cS);Ve(uS);Ve(fS);Ve(dS);Ve(gS);Ve(wo);Ve(xS);Ve(yS);Ve(wS);Ve(MS);const NS=[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"},{value:"hsl",label:"HSL"},{value:"oklch",label:"OKLCH"}],_c=da("rgb"),LS=da("hsl"),OS=da("oklch");function qe(t,a,o){return Math.min(o,Math.max(a,t))}function AS(t){const a=t.match(/rgba?\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*(?:\/\s*([\d.]+%?))?\s*\)/);if(a){const c=a[4]?a[4].endsWith("%")?parseFloat(a[4])/100:parseFloat(a[4]):1;return{r:qe(Math.round(parseFloat(a[1])),0,255),g:qe(Math.round(parseFloat(a[2])),0,255),b:qe(Math.round(parseFloat(a[3])),0,255),a:qe(c,0,1)}}const o=t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+))?\s*\)/);if(o)return{r:qe(Math.round(parseFloat(o[1])),0,255),g:qe(Math.round(parseFloat(o[2])),0,255),b:qe(Math.round(parseFloat(o[3])),0,255),a:qe(parseFloat(o[4]??"1"),0,1)};const r=_c(t);return r?{r:Math.round((r.r??0)*255),g:Math.round((r.g??0)*255),b:Math.round((r.b??0)*255),a:r.alpha??1}:{r:0,g:0,b:0,a:1}}function zS(t){if(t.a>=1)return`rgb(${t.r} ${t.g} ${t.b})`;const a=Math.round(t.a*100)/100;return`rgb(${t.r} ${t.g} ${t.b} / ${a})`}function N7(t){return{mode:"rgb",r:t.r/255,g:t.g/255,b:t.b/255,alpha:t.a}}function pp(t){return _S(N7(t))??"#000000"}function Sn({label:t,value:a,onChange:o,min:r=0,max:c=255,suffix:s}){return u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,flex:1,minWidth:0},children:[u.jsx("label",{style:{fontSize:9,fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",color:"var(--studio-text-dimmed)",marginBottom:4},children:t}),u.jsxs("div",{style:{position:"relative"},children:[u.jsx("input",{type:"text",inputMode:"decimal",value:a,onChange:d=>o(d.target.value),onBlur:d=>{const h=parseFloat(d.target.value);isNaN(h)||o(String(qe(h,r,c)))},className:"studio-input",style:{width:"100%",fontSize:10,paddingRight:s?16:void 0}}),s&&u.jsx("span",{style:{position:"absolute",right:5,top:"50%",transform:"translateY(-50%)",fontSize:9,color:"var(--studio-text-dimmed)",fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",pointerEvents:"none"},children:s})]})]})}function Cc({color:t,onChange:a}){return u.jsx(Sn,{label:"A",value:String(Math.round(t.a*100)),onChange:o=>{const r=parseInt(o);isNaN(r)||a({...t,a:qe(r,0,100)/100})},max:100,suffix:"%"})}function L7({color:t,onChange:a,mode:o}){const[r,c]=g.useState(pp(t).replace("#",""));g.useEffect(()=>{c(pp(t).replace("#",""))},[t.r,t.g,t.b]);const s=N7(t),d=C=>{const w=C.replace(/[^0-9a-fA-F]/g,"").slice(0,6);if(c(w),w.length===6||w.length===3){const E=_c(`#${w}`);E&&a({r:Math.round((E.r??0)*255),g:Math.round((E.g??0)*255),b:Math.round((E.b??0)*255),a:t.a})}};if(o==="hex")return u.jsxs("div",{style:{display:"flex",gap:6,alignItems:"flex-end"},children:[u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,flex:1,minWidth:0},children:[u.jsx("label",{style:{fontSize:9,fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",color:"var(--studio-text-dimmed)",marginBottom:4},children:"Hex"}),u.jsxs("div",{style:{position:"relative"},children:[u.jsx("span",{style:{position:"absolute",left:6,top:"50%",transform:"translateY(-50%)",fontSize:10,color:"var(--studio-text-dimmed)",fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",pointerEvents:"none"},children:"#"}),u.jsx("input",{type:"text",value:r,onChange:C=>d(C.target.value),onBlur:()=>d(r),className:"studio-input",style:{width:"100%",fontSize:10,paddingLeft:14,textTransform:"uppercase"},maxLength:6})]})]}),u.jsx(Cc,{color:t,onChange:a})]});if(o==="rgb")return u.jsxs("div",{style:{display:"flex",gap:6},children:[u.jsx(Sn,{label:"R",value:String(t.r),max:255,onChange:C=>{const w=parseInt(C);isNaN(w)||a({...t,r:qe(w,0,255)})}}),u.jsx(Sn,{label:"G",value:String(t.g),max:255,onChange:C=>{const w=parseInt(C);isNaN(w)||a({...t,g:qe(w,0,255)})}}),u.jsx(Sn,{label:"B",value:String(t.b),max:255,onChange:C=>{const w=parseInt(C);isNaN(w)||a({...t,b:qe(w,0,255)})}}),u.jsx(Cc,{color:t,onChange:a})]});if(o==="hsl"){const C=LS(s),w=Math.round((C==null?void 0:C.h)??0),E=Math.round(((C==null?void 0:C.s)??0)*100),j=Math.round(((C==null?void 0:C.l)??0)*100),M=(R,T)=>{const N=parseFloat(T);if(isNaN(N))return;const _=R==="h"?qe(N,0,360):(C==null?void 0:C.h)??0,k=R==="s"?qe(N,0,100)/100:(C==null?void 0:C.s)??0,U=R==="l"?qe(N,0,100)/100:(C==null?void 0:C.l)??0,z=_c({mode:"hsl",h:_,s:k,l:U});z&&a({r:Math.round((z.r??0)*255),g:Math.round((z.g??0)*255),b:Math.round((z.b??0)*255),a:t.a})};return u.jsxs("div",{style:{display:"flex",gap:6},children:[u.jsx(Sn,{label:"H",value:String(w),max:360,suffix:"°",onChange:R=>M("h",R)}),u.jsx(Sn,{label:"S",value:String(E),max:100,suffix:"%",onChange:R=>M("s",R)}),u.jsx(Sn,{label:"L",value:String(j),max:100,suffix:"%",onChange:R=>M("l",R)}),u.jsx(Cc,{color:t,onChange:a})]})}const h=OS(s),v=Math.round(((h==null?void 0:h.l)??0)*100),m=(h==null?void 0:h.c)??0,y=Math.round((h==null?void 0:h.h)??0),b=(C,w)=>{const E=parseFloat(w);if(isNaN(E))return;const j=C==="l"?qe(E,0,100)/100:(h==null?void 0:h.l)??0,M=C==="c"?qe(E,0,.4):(h==null?void 0:h.c)??0,R=C==="h"?qe(E,0,360):(h==null?void 0:h.h)??0,T=_c({mode:"oklch",l:j,c:M,h:R});T&&a({r:qe(Math.round((T.r??0)*255),0,255),g:qe(Math.round((T.g??0)*255),0,255),b:qe(Math.round((T.b??0)*255),0,255),a:t.a})};return u.jsxs("div",{style:{display:"flex",gap:6},children:[u.jsx(Sn,{label:"L",value:String(v),max:100,suffix:"%",onChange:C=>b("l",C)}),u.jsx(Sn,{label:"C",value:m.toFixed(3),min:0,max:.4,step:.001,onChange:C=>b("c",C)}),u.jsx(Sn,{label:"H",value:String(y),max:360,suffix:"°",onChange:C=>b("h",C)}),u.jsx(Cc,{color:t,onChange:a})]})}function O7({mode:t,onChange:a}){return u.jsx("div",{style:{display:"flex",borderRadius:4,background:"var(--studio-input-bg)",padding:2},children:NS.map(o=>u.jsx("button",{type:"button",onClick:()=>a(o.value),style:{flex:1,padding:"2px 4px",fontSize:9,fontWeight:500,borderRadius:3,border:"none",cursor:"pointer",transition:"background 0.1s, color 0.1s",background:t===o.value?"var(--studio-surface-hover)":"transparent",color:t===o.value?"var(--studio-text)":"var(--studio-text-dimmed)",boxShadow:t===o.value?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:o.label},o.value))})}function qc({color:t,onChange:a,variant:o="labeled"}){const[r,c]=g.useState("hex"),s=AS(t),d=g.useCallback(m=>{a(zS(m))},[a]),h=o==="swatch"?u.jsx("button",{type:"button",style:{width:24,height:24,borderRadius:4,border:"1px solid var(--studio-border-subtle)",background:t,cursor:"pointer",padding:0,flexShrink:0}}):u.jsxs("button",{type:"button",className:"studio-color-trigger",style:{fontSize:10},children:[u.jsx("div",{className:"studio-swatch",style:{width:14,height:14,borderRadius:3,"--swatch-color":t}}),u.jsx("span",{style:{fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",fontSize:10},children:t})]}),v=u.jsxs(cs,{children:[u.jsx(eh,{asChild:!0,children:h}),u.jsx(ss,{children:u.jsxs(us,{side:"left",sideOffset:8,collisionPadding:12,style:{width:232,padding:12,background:"var(--studio-surface)",border:"1px solid var(--studio-border)",borderRadius:8,boxShadow:"0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3)",zIndex:1e4,display:"flex",flexDirection:"column",gap:10},children:[u.jsx("div",{className:"studio-color-picker",children:u.jsx(e7,{color:s,onChange:d})}),u.jsx(O7,{mode:r,onChange:c}),u.jsx(L7,{color:s,onChange:d,mode:r})]})})]});return o==="swatch"?v:u.jsxs("div",{className:"mt-1.5",children:[u.jsx("div",{className:"text-[9px] font-medium mb-1",style:{color:"var(--studio-text-dimmed)"},children:"Color"}),v]})}function hp(t){const a=new Map;for(const o of t.tokens)a.set(o.name,o);return{...t,byName:a}}function gp(t){const a=new Map;for(const o of t.components)a.set(o.dataSlot,o);return{...t,byDataSlot:a}}function HS(){let t={framework:null,tokens:null,components:null,shadows:null,borders:null,gradients:null,styling:null,usages:null};const a=new Set;function o(){for(const h of a)h()}function r(){return t}function c(h){return a.add(h),()=>a.delete(h)}function s(h){t={framework:h.framework,tokens:hp(h.tokens),components:gp(h.components),shadows:h.shadows,borders:h.borders,gradients:h.gradients,styling:h.styling,usages:h.usages},o()}function d(h,v){h==="tokens"?t={...t,tokens:hp(v)}:h==="components"?t={...t,components:gp(v)}:t={...t,[h]:v},o()}return{getSnapshot:r,subscribe:c,setAll:s,patch:d}}const vn=HS();async function _s(t){return(await fetch(`/scan/${t}`)).json()}async function Ns(t,a){return(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json()}async function sf(t,a,o,r){try{const c=await Ns("/api/tokens",{filePath:t,token:a,value:o,selector:r});if(!c.ok){console.error("Token save failed:",c.error);return}c.tokens&&vn.patch("tokens",c.tokens)}catch(c){console.error("Token save error:",c);try{const s=await _s("tokens");vn.patch("tokens",s)}catch{}}}async function mp(t,a){try{const o=await Ns(t,a);if(!o.ok){console.error("Shadow save failed:",o.error);return}o.shadows&&vn.patch("shadows",o.shadows)}catch(o){console.error("Shadow save error:",o);try{const r=await _s("shadows");vn.patch("shadows",r)}catch{}}}async function vp(t,a){try{const o=await Ns(t,a);if(!o.ok){console.error("Gradient save failed:",o.error);return}o.gradients&&vn.patch("gradients",o.gradients)}catch(o){console.error("Gradient save error:",o);try{const r=await _s("gradients");vn.patch("gradients",r)}catch{}}}async function A7(t,a){try{const o=await Ns(t,a);if(!o.ok){console.error("Border save failed:",o.error);return}o.borders&&vn.patch("borders",o.borders)}catch(o){console.error("Border save error:",o);try{const r=await _s("borders");vn.patch("borders",r)}catch{}}}const VS=da("rgb"),xp=da("oklch");function kS({currentValue:t,availableTokens:a,tokenValues:o,onSelect:r}){const c=t.split("/")[0],s=o[c]||"";return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"studio-popover-swatch",style:{"--swatch-color":s}}),u.jsx("div",{className:"studio-popover-list",children:a.map(d=>u.jsxs("button",{className:`studio-popover-item ${d===t?"active":""}`,onClick:()=>r(d),children:[u.jsx("div",{className:"studio-swatch",style:{"--swatch-color":o[d.split("/")[0]]||""}}),u.jsx("span",{className:"truncate",children:d})]},d))})]})}function z7({anchorRef:t,currentValue:a,availableTokens:o,tokenValues:r,onSelect:c,onClose:s}){return u.jsxs(cs,{open:!0,onOpenChange:d=>{d||s()},children:[u.jsx(I4,{virtualRef:t}),u.jsx(ss,{children:u.jsx(us,{side:"bottom",sideOffset:4,collisionPadding:12,className:"studio-popover",children:u.jsx(kS,{currentValue:a,availableTokens:o,tokenValues:r,onSelect:c})})})]})}function uf(t){const a=t.match(/oklch\(\s*([\d.]+)(%?)\s+([\d.]+)\s+([\d.]+)\s*\)/);return a?{l:a[2]==="%"?parseFloat(a[1])/100:parseFloat(a[1]),c:parseFloat(a[3]),h:parseFloat(a[4])}:{l:.5,c:.1,h:250}}function wc(t){return`oklch(${t.l.toFixed(3)} ${t.c.toFixed(3)} ${t.h.toFixed(1)})`}function DS(t,a){try{const o=uf(t).l,r=uf(a).l,c=Math.max(o,r),s=Math.min(o,r);return(c+.05)/(s+.05)}catch{return null}}function BS({anchorRef:t,token:a,theme:o,cssFilePath:r,contrastToken:c,onPreview:s,onClearPreview:d,onClose:h}){const[v,m]=g.useState(()=>uf(a.resolvedValue)),[y,b]=g.useState("oklch"),C=g.useRef(null),w=(()=>{if(C.current)return C.current;const _=VS({mode:"oklch",l:v.l,c:v.c,h:v.h});return _?{r:qe(Math.round((_.r??0)*255),0,255),g:qe(Math.round((_.g??0)*255),0,255),b:qe(Math.round((_.b??0)*255),0,255),a:1}:{r:0,g:0,b:0,a:1}})(),E=g.useCallback(_=>{C.current=_;const k=xp({mode:"rgb",r:_.r/255,g:_.g/255,b:_.b/255});if(k){const U={l:k.l??.5,c:k.c??.1,h:k.h??0};m(U),s(a.name,wc(U))}},[s,a.name]),j=g.useCallback(_=>{C.current=null;const k=xp({mode:"rgb",r:_.r/255,g:_.g/255,b:_.b/255});if(k){const U={l:k.l??.5,c:k.c??.1,h:k.h??0};m(U),s(a.name,wc(U))}},[s,a.name]),M=g.useRef(!1),R=async()=>{M.current=!0;const _=o==="dark"?".dark":":root";await sf(r,a.name,wc(v),_),d(),h()},T=g.useCallback(()=>{M.current||d(),h()},[h,d]),N=c?DS(c.resolvedValue,wc(v)):null;return u.jsxs(cs,{open:!0,onOpenChange:_=>{_||T()},children:[u.jsx(I4,{virtualRef:t}),u.jsx(ss,{children:u.jsxs(us,{side:"bottom",sideOffset:4,collisionPadding:12,className:"studio-popover",style:{width:260},children:[u.jsxs("div",{className:"flex items-center justify-between px-1 mb-1.5",children:[u.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:a.name.replace(/^--/,"")}),N!==null&&u.jsxs("span",{className:"text-[9px] font-mono px-1.5 py-0.5 rounded",style:{color:N>=7?"var(--studio-success)":N>=4.5?"var(--studio-warning)":"var(--studio-danger)",background:"var(--studio-input-bg)"},children:[N.toFixed(1),":1"]})]}),u.jsx("div",{className:"studio-color-picker",style:{marginBottom:8},children:u.jsx(e7,{color:w,onChange:E})}),u.jsx("div",{style:{marginBottom:8},children:u.jsx(O7,{mode:y,onChange:b})}),u.jsx("div",{style:{marginBottom:8},children:u.jsx(L7,{color:w,onChange:j,mode:y})}),u.jsx("button",{onClick:R,className:"w-full py-1.5 rounded text-[11px] font-medium cursor-pointer",style:{background:"var(--studio-accent)",color:"white",border:"none"},children:"Save"})]})})]})}function Qe({label:t,inherited:a}){return u.jsxs("div",{className:"text-[10px] font-medium mb-1.5",style:{color:"var(--studio-text-dimmed)",letterSpacing:"0.03em"},children:[t,a&&u.jsx("span",{className:"ml-1 text-[10px] italic",style:{color:"var(--studio-text-dimmed)"},children:"inherited"})]})}function Gc({label:t}){return u.jsx("div",{className:"text-[11px] font-medium tracking-wider mt-1 mb-1",style:{color:"var(--studio-text-dimmed)"},children:t})}const $S={width:Mc,height:W1,"min-width":Mc,"min-height":W1,"max-width":Mc,"max-height":W1,"padding-top":oa,"padding-right":oa,"padding-bottom":oa,"padding-left":oa,"margin-top":io,"margin-right":io,"margin-bottom":io,"margin-left":io,gap:u3,"row-gap":Xm,"column-gap":u3,"font-family":qp,"font-size":Lc,"font-weight":Pp,"line-height":Fp,"letter-spacing":Kp,"text-align":wf,"text-decoration":a4,"text-transform":Qp,"border-top-width":ro,"border-right-width":ro,"border-bottom-width":ro,"border-left-width":ro,"border-top-left-radius":tm,"border-top-right-radius":lm,"border-bottom-left-radius":Jg,"border-bottom-right-radius":Ig,opacity:Cf,"box-shadow":Ip,"z-index":Er,top:dc,right:dc,bottom:dc,left:dc};function H0(t){return $S[t]}const ZS={"font-size":{"12px":"text-xs","0.75rem":"text-xs","14px":"text-sm","0.875rem":"text-sm","16px":"text-base","1rem":"text-base","18px":"text-lg","1.125rem":"text-lg","20px":"text-xl","1.25rem":"text-xl","24px":"text-2xl","1.5rem":"text-2xl","30px":"text-3xl","1.875rem":"text-3xl","36px":"text-4xl","2.25rem":"text-4xl","48px":"text-5xl","3rem":"text-5xl","60px":"text-6xl","3.75rem":"text-6xl","72px":"text-7xl","4.5rem":"text-7xl","96px":"text-8xl","6rem":"text-8xl","128px":"text-9xl","8rem":"text-9xl"},"font-weight":{100:"font-thin",200:"font-extralight",300:"font-light",400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold",800:"font-extrabold",900:"font-black"},"line-height":{1:"leading-none","1.25":"leading-tight","1.375":"leading-snug","1.5":"leading-normal","1.625":"leading-relaxed",2:"leading-loose"},"letter-spacing":{"-0.05em":"tracking-tighter","-0.025em":"tracking-tight","0em":"tracking-normal","0px":"tracking-normal","0.025em":"tracking-wide","0.05em":"tracking-wider","0.1em":"tracking-widest"},"text-align":{left:"text-left",start:"text-left",center:"text-center",right:"text-right",end:"text-right",justify:"text-justify"},"text-transform":{uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",none:"normal-case"},display:{block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",none:"hidden"},position:{static:"static",relative:"relative",absolute:"absolute",fixed:"fixed",sticky:"sticky"},"flex-direction":{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},"flex-wrap":{wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"},"justify-content":{"flex-start":"justify-start",start:"justify-start","flex-end":"justify-end",end:"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},"align-items":{"flex-start":"items-start",start:"items-start","flex-end":"items-end",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},"align-self":{auto:"self-auto","flex-start":"self-start",start:"self-start","flex-end":"self-end",end:"self-end",center:"self-center",stretch:"self-stretch"},overflow:{visible:"overflow-visible",hidden:"overflow-hidden",scroll:"overflow-scroll",auto:"overflow-auto"},opacity:{0:"opacity-0","0.05":"opacity-5","0.1":"opacity-10","0.15":"opacity-15","0.2":"opacity-20","0.25":"opacity-25","0.3":"opacity-30","0.35":"opacity-35","0.4":"opacity-40","0.45":"opacity-45","0.5":"opacity-50","0.55":"opacity-55","0.6":"opacity-60","0.65":"opacity-65","0.7":"opacity-70","0.75":"opacity-75","0.8":"opacity-80","0.85":"opacity-85","0.9":"opacity-90","0.95":"opacity-95",1:"opacity-100"}},Qc={"0px":"0","1px":"px","2px":"0.5","4px":"1","6px":"1.5","8px":"2","10px":"2.5","12px":"3","14px":"3.5","16px":"4","20px":"5","24px":"6","28px":"7","32px":"8","36px":"9","40px":"10","44px":"11","48px":"12","56px":"14","64px":"16","80px":"20","96px":"24","112px":"28","128px":"32","144px":"36","160px":"40","176px":"44","192px":"48","208px":"52","224px":"56","240px":"60","256px":"64","288px":"72","320px":"80","384px":"96"},US={"0px":"rounded-none","2px":"rounded-sm","0.125rem":"rounded-sm","4px":"rounded","0.25rem":"rounded","6px":"rounded-md","0.375rem":"rounded-md","8px":"rounded-lg","0.5rem":"rounded-lg","12px":"rounded-xl","0.75rem":"rounded-xl","16px":"rounded-2xl","1rem":"rounded-2xl","24px":"rounded-3xl","1.5rem":"rounded-3xl","9999px":"rounded-full"},Sc={"padding-top":"pt","padding-right":"pr","padding-bottom":"pb","padding-left":"pl","margin-top":"mt","margin-right":"mr","margin-bottom":"mb","margin-left":"ml",gap:"gap","row-gap":"gap-y","column-gap":"gap-x",width:"w",height:"h","min-width":"min-w","min-height":"min-h","max-width":"max-w","max-height":"max-h",top:"top",right:"right",bottom:"bottom",left:"left","border-top-width":"border-t","border-right-width":"border-r","border-bottom-width":"border-b","border-left-width":"border-l","border-top-left-radius":"rounded-tl","border-top-right-radius":"rounded-tr","border-bottom-right-radius":"rounded-br","border-bottom-left-radius":"rounded-bl","font-size":"text","font-weight":"font","line-height":"leading","letter-spacing":"tracking",opacity:"opacity",color:"text","background-color":"bg","border-color":"border"},YS=new Set(["padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","gap","row-gap","column-gap","top","right","bottom","left","width","height","min-width","min-height","max-width","max-height"]),XS=new Set(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"]);function Rn(t,a){const o=ZS[t];if(o!=null&&o[a])return{tailwindClass:o[a],exact:!0};if(YS.has(t)){const c=Qc[a],s=Sc[t];if(c&&s)return{tailwindClass:`${s}-${c}`,exact:!0};if(s&&a!=="auto"&&a!=="none")return{tailwindClass:`${s}-[${a}]`,exact:!1}}if(XS.has(t)){const c=US[a];if(c){const d=Sc[t];if(d){const h=c.replace("rounded","");return{tailwindClass:`${d}${h||""}`,exact:!0}}return{tailwindClass:c,exact:!0}}const s=Sc[t];if(s&&a!=="0px")return{tailwindClass:`${s}-[${a}]`,exact:!1}}const r=Sc[t];return r?{tailwindClass:`${r}-[${a}]`,exact:!1}:null}function yp(t,a){const o=t==="padding"?"p":"m",r=Qc[a];return r?{tailwindClass:`${o}-${r}`,exact:!0}:a!=="0px"&&a!=="auto"?{tailwindClass:`${o}-[${a}]`,exact:!1}:null}function bp(t,a,o){const r=t==="padding"?"px":"mx",c=t==="padding"?"py":"my",s=Qc[a],d=Qc[o];return{xClass:s?{tailwindClass:`${r}-${s}`,exact:!0}:a!=="0px"?{tailwindClass:`${r}-[${a}]`,exact:!1}:null,yClass:d?{tailwindClass:`${c}-${d}`,exact:!0}:o!=="0px"?{tailwindClass:`${c}-[${o}]`,exact:!1}:null}}const PS={"font-size":"typography","font-weight":"typography","line-height":"typography","letter-spacing":"typography","padding-top":"spacing","padding-right":"spacing","padding-bottom":"spacing","padding-left":"spacing","margin-top":"spacing","margin-right":"spacing","margin-bottom":"spacing","margin-left":"spacing",gap:"spacing","row-gap":"spacing","column-gap":"spacing",width:"spacing",height:"spacing","border-top-left-radius":"radius","border-top-right-radius":"radius","border-bottom-right-radius":"radius","border-bottom-left-radius":"radius",color:"color","background-color":"color","border-color":"color","box-shadow":"shadow"};function qS(t,a,o){if(!a||a==="none"||a==="auto")return null;const r=PS[t];if(!r)return null;if(r==="color"){const s=wp(a);if(!s)return null;for(const[,d]of Object.entries(o))for(const h of d)if(h.category==="color"){const v=wp(h.lightValue||"");if(v&&v===s){const m=d.filter(y=>y.category==="color").map(y=>({name:y.name.replace(/^--/,""),value:y.lightValue||""}));return{tokenName:h.name.replace(/^--/,""),tokenVar:h.name,category:"color",groupTokens:m}}}return null}const c=Cp(a);for(const[,s]of Object.entries(o))for(const d of s)if(d.category===r){const h=Cp(d.lightValue||"");if(h&&h===c){const v=s.filter(m=>m.category===r).map(m=>({name:m.name.replace(/^--/,""),value:m.lightValue||""}));return{tokenName:d.name.replace(/^--/,""),tokenVar:d.name,category:r,groupTokens:v}}}return null}function Cp(t){return t?t.trim().toLowerCase():null}function wp(t){if(!t||t==="transparent"||t==="rgba(0, 0, 0, 0)")return null;const a=t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+))?\s*\)/);if(a){const[,o,r,c,s]=a;return s!==void 0&&parseFloat(s)!==1?`rgba(${o},${r},${c},${s})`:`rgb(${o},${r},${c})`}return t.trim().toLowerCase()}function GS(t){switch(t){case"display":return["block","inline-block","inline","flex","inline-flex","grid","inline-grid","none"];case"position":return["static","relative","absolute","fixed","sticky"];case"flex-direction":return["row","row-reverse","column","column-reverse"];case"flex-wrap":return["nowrap","wrap","wrap-reverse"];case"justify-content":return["flex-start","flex-end","center","space-between","space-around","space-evenly"];case"align-items":return["flex-start","flex-end","center","baseline","stretch"];case"align-self":return["auto","flex-start","flex-end","center","stretch"];case"overflow":return["visible","hidden","scroll","auto"];case"text-align":return["left","center","right","justify"];case"text-transform":return["none","uppercase","lowercase","capitalize"];case"text-decoration":return["none","underline","overline","line-through"];case"white-space":return["normal","nowrap","pre","pre-wrap","pre-line"];default:return[]}}function ff({prop:t,onPreviewInlineStyle:a,onCommitClass:o}){const r=GS(t.cssProperty);return r.length===0?u.jsx("div",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.computedValue}):u.jsx(In,{value:t.computedValue,onChange:c=>{a(t.cssProperty,c);const s=Rn(t.cssProperty,c);s&&o(s.tailwindClass)},className:"studio-select w-full",options:[...r.includes(t.computedValue)?[]:[{value:t.computedValue}],...r.map(c=>({value:c}))]})}const QS=[{regex:/^bg-([\w-]+(?:\/\d+)?)$/,category:"color",property:"backgroundColor",label:"Background",extractValue:t=>t[1]},{regex:/^text-([\w-]+(?:\/\d+)?)$/,category:"color",property:"textColor",label:"Text",extractValue:t=>t[1]},{regex:/^border-([\w-]+(?:\/\d+)?)$/,category:"color",property:"borderColor",label:"Border",extractValue:t=>t[1]},{regex:/^ring-([\w-]+(?:\/\d+)?)$/,category:"color",property:"ringColor",label:"Ring",extractValue:t=>t[1]},{regex:/^outline-([\w-]+(?:\/\d+)?)$/,category:"color",property:"outlineColor",label:"Outline",extractValue:t=>t[1]},{regex:/^p-([\d.]+|px)$/,category:"spacing",property:"padding",label:"Padding",extractValue:t=>t[1]},{regex:/^px-([\d.]+|px)$/,category:"spacing",property:"paddingX",label:"Padding X",extractValue:t=>t[1]},{regex:/^py-([\d.]+|px)$/,category:"spacing",property:"paddingY",label:"Padding Y",extractValue:t=>t[1]},{regex:/^pt-([\d.]+|px)$/,category:"spacing",property:"paddingTop",label:"Padding Top",extractValue:t=>t[1]},{regex:/^pr-([\d.]+|px)$/,category:"spacing",property:"paddingRight",label:"Padding Right",extractValue:t=>t[1]},{regex:/^pb-([\d.]+|px)$/,category:"spacing",property:"paddingBottom",label:"Padding Bottom",extractValue:t=>t[1]},{regex:/^pl-([\d.]+|px)$/,category:"spacing",property:"paddingLeft",label:"Padding Left",extractValue:t=>t[1]},{regex:/^m-([\d.]+|px|auto)$/,category:"spacing",property:"margin",label:"Margin",extractValue:t=>t[1]},{regex:/^mx-([\d.]+|px|auto)$/,category:"spacing",property:"marginX",label:"Margin X",extractValue:t=>t[1]},{regex:/^my-([\d.]+|px|auto)$/,category:"spacing",property:"marginY",label:"Margin Y",extractValue:t=>t[1]},{regex:/^mt-([\d.]+|px|auto)$/,category:"spacing",property:"marginTop",label:"Margin Top",extractValue:t=>t[1]},{regex:/^mr-([\d.]+|px|auto)$/,category:"spacing",property:"marginRight",label:"Margin Right",extractValue:t=>t[1]},{regex:/^mb-([\d.]+|px|auto)$/,category:"spacing",property:"marginBottom",label:"Margin Bottom",extractValue:t=>t[1]},{regex:/^ml-([\d.]+|px|auto)$/,category:"spacing",property:"marginLeft",label:"Margin Left",extractValue:t=>t[1]},{regex:/^gap-([\d.]+|px)$/,category:"spacing",property:"gap",label:"Gap",extractValue:t=>t[1]},{regex:/^gap-x-([\d.]+|px)$/,category:"spacing",property:"gapX",label:"Gap X",extractValue:t=>t[1]},{regex:/^gap-y-([\d.]+|px)$/,category:"spacing",property:"gapY",label:"Gap Y",extractValue:t=>t[1]},{regex:/^space-x-([\d.]+)$/,category:"spacing",property:"spaceX",label:"Space X",extractValue:t=>t[1]},{regex:/^space-y-([\d.]+)$/,category:"spacing",property:"spaceY",label:"Space Y",extractValue:t=>t[1]},{regex:/^rounded$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:()=>"DEFAULT"},{regex:/^rounded-(none|sm|md|lg|xl|2xl|3xl|full)$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:t=>t[1]},{regex:/^border$/,category:"shape",property:"borderWidth",label:"Border Width",extractValue:()=>"1"},{regex:/^border-(0|2|4|8)$/,category:"shape",property:"borderWidth",label:"Border Width",extractValue:t=>t[1]},{regex:/^text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/,category:"typography",property:"fontSize",label:"Font Size",extractValue:t=>t[1]},{regex:/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)$/,category:"typography",property:"fontWeight",label:"Font Weight",extractValue:t=>t[1]},{regex:/^leading-(none|tight|snug|normal|relaxed|loose)$/,category:"typography",property:"lineHeight",label:"Line Height",extractValue:t=>t[1]},{regex:/^tracking-(tighter|tight|normal|wide|wider|widest)$/,category:"typography",property:"letterSpacing",label:"Letter Spacing",extractValue:t=>t[1]},{regex:/^font-(sans|serif|mono)$/,category:"typography",property:"fontFamily",label:"Font Family",extractValue:t=>t[1]},{regex:/^text-(left|center|right|justify)$/,category:"typography",property:"textAlign",label:"Text Align",extractValue:t=>t[1]},{regex:/^(uppercase|lowercase|capitalize|normal-case)$/,category:"typography",property:"textTransform",label:"Text Transform",extractValue:t=>t[1]},{regex:/^(underline|overline|line-through|no-underline)$/,category:"typography",property:"textDecoration",label:"Text Decoration",extractValue:t=>t[1]},{regex:/^(truncate|whitespace-nowrap|whitespace-normal)$/,category:"typography",property:"overflow",label:"Overflow",extractValue:t=>t[1]},{regex:/^(flex|inline-flex|grid|inline-grid|block|inline-block|inline|hidden)$/,category:"layout",property:"display",label:"Display",extractValue:t=>t[1]},{regex:/^(flex-row|flex-col|flex-row-reverse|flex-col-reverse)$/,category:"layout",property:"flexDirection",label:"Direction",extractValue:t=>t[1]},{regex:/^(flex-wrap|flex-nowrap|flex-wrap-reverse)$/,category:"layout",property:"flexWrap",label:"Wrap",extractValue:t=>t[1]},{regex:/^items-(start|end|center|baseline|stretch)$/,category:"layout",property:"alignItems",label:"Align Items",extractValue:t=>t[1]},{regex:/^justify-(start|end|center|between|around|evenly)$/,category:"layout",property:"justifyContent",label:"Justify",extractValue:t=>t[1]},{regex:/^(self-auto|self-start|self-end|self-center|self-stretch)$/,category:"layout",property:"alignSelf",label:"Align Self",extractValue:t=>t[1]},{regex:/^grid-cols-(\d+|none)$/,category:"layout",property:"gridCols",label:"Grid Columns",extractValue:t=>t[1]},{regex:/^grid-rows-(\d+|none)$/,category:"layout",property:"gridRows",label:"Grid Rows",extractValue:t=>t[1]},{regex:/^col-span-(\d+|full)$/,category:"layout",property:"colSpan",label:"Column Span",extractValue:t=>t[1]},{regex:/^row-span-(\d+)$/,category:"layout",property:"rowSpan",label:"Row Span",extractValue:t=>t[1]},{regex:/^(relative|absolute|fixed|sticky)$/,category:"layout",property:"position",label:"Position",extractValue:t=>t[1]},{regex:/^(overflow-hidden|overflow-auto|overflow-scroll|overflow-visible)$/,category:"layout",property:"overflow",label:"Overflow",extractValue:t=>t[1]},{regex:/^w-([\d.]+|full|screen|auto|min|max|fit|px)$/,category:"size",property:"width",label:"Width",extractValue:t=>t[1]},{regex:/^h-([\d.]+|full|screen|auto|min|max|fit|px)$/,category:"size",property:"height",label:"Height",extractValue:t=>t[1]},{regex:/^min-w-([\d.]+|full|min|max|fit|0)$/,category:"size",property:"minWidth",label:"Min Width",extractValue:t=>t[1]},{regex:/^min-h-([\d.]+|full|screen|min|max|fit|0)$/,category:"size",property:"minHeight",label:"Min Height",extractValue:t=>t[1]},{regex:/^max-w-([\w.]+)$/,category:"size",property:"maxWidth",label:"Max Width",extractValue:t=>t[1]},{regex:/^max-h-([\w.]+)$/,category:"size",property:"maxHeight",label:"Max Height",extractValue:t=>t[1]},{regex:/^size-([\d.]+|full|auto|px)$/,category:"size",property:"size",label:"Size",extractValue:t=>t[1]},{regex:/^(flex-1|flex-auto|flex-initial|flex-none)$/,category:"size",property:"flex",label:"Flex",extractValue:t=>t[1]},{regex:/^(grow|grow-0|shrink|shrink-0)$/,category:"size",property:"flexGrowShrink",label:"Grow/Shrink",extractValue:t=>t[1]},{regex:/^text-\[(-?[\w.%]+)\]$/,category:"typography",property:"fontSize",label:"Font Size",extractValue:t=>`[${t[1]}]`},{regex:/^leading-\[(-?[\w.%]+)\]$/,category:"typography",property:"lineHeight",label:"Line Height",extractValue:t=>`[${t[1]}]`},{regex:/^tracking-\[(-?[\w.%]+)\]$/,category:"typography",property:"letterSpacing",label:"Letter Spacing",extractValue:t=>`[${t[1]}]`},{regex:/^font-\[(-?[\w.%]+)\]$/,category:"typography",property:"fontWeight",label:"Font Weight",extractValue:t=>`[${t[1]}]`},{regex:/^p-\[(-?[\w.%]+)\]$/,category:"spacing",property:"padding",label:"Padding",extractValue:t=>`[${t[1]}]`},{regex:/^px-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingX",label:"Padding X",extractValue:t=>`[${t[1]}]`},{regex:/^py-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingY",label:"Padding Y",extractValue:t=>`[${t[1]}]`},{regex:/^pt-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingTop",label:"Padding Top",extractValue:t=>`[${t[1]}]`},{regex:/^pr-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingRight",label:"Padding Right",extractValue:t=>`[${t[1]}]`},{regex:/^pb-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingBottom",label:"Padding Bottom",extractValue:t=>`[${t[1]}]`},{regex:/^pl-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingLeft",label:"Padding Left",extractValue:t=>`[${t[1]}]`},{regex:/^m-\[(-?[\w.%]+)\]$/,category:"spacing",property:"margin",label:"Margin",extractValue:t=>`[${t[1]}]`},{regex:/^mx-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginX",label:"Margin X",extractValue:t=>`[${t[1]}]`},{regex:/^my-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginY",label:"Margin Y",extractValue:t=>`[${t[1]}]`},{regex:/^mt-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginTop",label:"Margin Top",extractValue:t=>`[${t[1]}]`},{regex:/^mr-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginRight",label:"Margin Right",extractValue:t=>`[${t[1]}]`},{regex:/^mb-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginBottom",label:"Margin Bottom",extractValue:t=>`[${t[1]}]`},{regex:/^ml-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginLeft",label:"Margin Left",extractValue:t=>`[${t[1]}]`},{regex:/^gap-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gap",label:"Gap",extractValue:t=>`[${t[1]}]`},{regex:/^gap-x-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gapX",label:"Gap X",extractValue:t=>`[${t[1]}]`},{regex:/^gap-y-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gapY",label:"Gap Y",extractValue:t=>`[${t[1]}]`},{regex:/^w-\[(-?[\w.%]+)\]$/,category:"size",property:"width",label:"Width",extractValue:t=>`[${t[1]}]`},{regex:/^h-\[(-?[\w.%]+)\]$/,category:"size",property:"height",label:"Height",extractValue:t=>`[${t[1]}]`},{regex:/^min-w-\[(-?[\w.%]+)\]$/,category:"size",property:"minWidth",label:"Min Width",extractValue:t=>`[${t[1]}]`},{regex:/^min-h-\[(-?[\w.%]+)\]$/,category:"size",property:"minHeight",label:"Min Height",extractValue:t=>`[${t[1]}]`},{regex:/^max-w-\[(-?[\w.%]+)\]$/,category:"size",property:"maxWidth",label:"Max Width",extractValue:t=>`[${t[1]}]`},{regex:/^max-h-\[(-?[\w.%]+)\]$/,category:"size",property:"maxHeight",label:"Max Height",extractValue:t=>`[${t[1]}]`},{regex:/^rounded-\[(-?[\w.%]+)\]$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:t=>`[${t[1]}]`}];function KS(t){const a=t.split(":");if(a.length===1)return{prefix:void 0,core:t};const o=a.pop();return{prefix:a.join(":")+":",core:o}}function H7(t){const a={color:[],spacing:[],shape:[],typography:[],layout:[],size:[],other:[]},o=t.split(/\s+/).filter(Boolean);for(const r of o){const{prefix:c,core:s}=KS(r);let d=!1;for(const h of QS){const v=s.match(h.regex);if(v){if(h.property==="textColor"&&(["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(v[1])||["left","center","right","justify"].includes(v[1]))||h.property==="borderColor"&&["0","2","4","8"].includes(v[1]))continue;a[h.category].push({category:h.category,property:h.property,label:h.label,value:h.extractValue(v),fullClass:r,prefix:c}),d=!0;break}}d||a.other.push({category:"other",property:"unknown",label:r,value:r,fullClass:r,prefix:c})}return a}function Ll(t,a,o){const c={backgroundColor:d=>`bg-${d}`,textColor:d=>`text-${d}`,borderColor:d=>`border-${d}`,ringColor:d=>`ring-${d}`,padding:d=>`p-${d}`,paddingX:d=>`px-${d}`,paddingY:d=>`py-${d}`,paddingTop:d=>`pt-${d}`,paddingRight:d=>`pr-${d}`,paddingBottom:d=>`pb-${d}`,paddingLeft:d=>`pl-${d}`,margin:d=>`m-${d}`,marginX:d=>`mx-${d}`,marginY:d=>`my-${d}`,marginTop:d=>`mt-${d}`,marginRight:d=>`mr-${d}`,marginBottom:d=>`mb-${d}`,marginLeft:d=>`ml-${d}`,gap:d=>`gap-${d}`,gapX:d=>`gap-x-${d}`,gapY:d=>`gap-y-${d}`,borderRadius:d=>d==="DEFAULT"?"rounded":`rounded-${d}`,borderWidth:d=>d==="1"?"border":`border-${d}`,fontSize:d=>`text-${d}`,fontWeight:d=>`font-${d}`,lineHeight:d=>`leading-${d}`,letterSpacing:d=>`tracking-${d}`,fontFamily:d=>`font-${d}`,textAlign:d=>`text-${d}`,display:d=>d,flexDirection:d=>d,alignItems:d=>`items-${d}`,justifyContent:d=>`justify-${d}`,gridCols:d=>`grid-cols-${d}`,gridRows:d=>`grid-rows-${d}`,width:d=>`w-${d}`,height:d=>`h-${d}`,size:d=>`size-${d}`}[t];if(!c)return a;const s=c(a);return o?`${o}${s}`:s}function Ls(t){return t.startsWith("[")&&t.endsWith("]")}function V7(t){return Ls(t)?t.slice(1,-1):t}function k7(t){return Ls(t)?t:`[${t}]`}const lt=["0","px","0.5","1","1.5","2","2.5","3","3.5","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],D7=["none","sm","DEFAULT","md","lg","xl","2xl","3xl","full"],Ff=["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"],Jf=["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],B7=["none","tight","snug","normal","relaxed","loose"],$7=["tighter","tight","normal","wide","wider","widest"],FS=["0","1","2","4","8"],JS=["0","5","10","15","20","25","30","35","40","45","50","55","60","65","70","75","80","85","90","95","100"],WS={"font-size":"text","font-weight":"font","font-family":"font","line-height":"leading","letter-spacing":"tracking","padding-top":"pt","padding-right":"pr","padding-bottom":"pb","padding-left":"pl","margin-top":"mt","margin-right":"mr","margin-bottom":"mb","margin-left":"ml",gap:"gap","row-gap":"gap-y","column-gap":"gap-x",width:"w",height:"h","border-top-left-radius":"rounded-tl","border-top-right-radius":"rounded-tr","border-bottom-right-radius":"rounded-br","border-bottom-left-radius":"rounded-bl",color:"text","background-color":"bg","border-color":"border"},IS={"font-size":{scale:Ff,prefix:"text"},"font-weight":{scale:Jf,prefix:"font"},"line-height":{scale:B7,prefix:"leading"},"letter-spacing":{scale:$7,prefix:"tracking"},gap:{scale:lt,prefix:"gap"},"row-gap":{scale:lt,prefix:"gap-y"},"column-gap":{scale:lt,prefix:"gap-x"},"padding-top":{scale:lt,prefix:"pt"},"padding-right":{scale:lt,prefix:"pr"},"padding-bottom":{scale:lt,prefix:"pb"},"padding-left":{scale:lt,prefix:"pl"},"margin-top":{scale:lt,prefix:"mt"},"margin-right":{scale:lt,prefix:"mr"},"margin-bottom":{scale:lt,prefix:"mb"},"margin-left":{scale:lt,prefix:"ml"},width:{scale:lt,prefix:"w"},height:{scale:lt,prefix:"h"}};function Z7({prop:t,onPreviewInlineStyle:a,onCommitClass:o}){const r=t.tokenMatch,c=WS[t.cssProperty]||"";return u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx(ct,{content:"Design token",side:"left",children:u.jsx("div",{className:"shrink-0 w-1.5 h-4 rounded-sm",style:{background:"var(--studio-accent)"}})}),u.jsx(In,{value:r.tokenName,onChange:s=>{const d=r.groupTokens.find(h=>h.name===s);d&&a(t.cssProperty,d.value),c&&o(`${c}-${s}`)},className:"studio-select w-full",options:r.groupTokens.map(s=>({value:s.name,label:`${s.name} (${s.value})`}))})]})}function df({prop:t,tokenGroups:a,onPreviewInlineStyle:o,onCommitClass:r}){const[c,s]=g.useState(!1),d=g.useRef(null),h=[],v={};for(const[,b]of Object.entries(a))for(const C of b)if(C.category==="color"){const w=C.name.replace(/^--/,"");h.includes(w)||h.push(w),v[w]||(v[w]=C.lightValue||"")}const m=t.cssProperty==="color"?"text":t.cssProperty==="background-color"?"bg":"border",y=!!t.tokenMatch;return u.jsxs("div",{children:[u.jsx(Qe,{label:t.label,inherited:t.inherited}),u.jsxs("button",{ref:d,onClick:()=>s(!0),className:"studio-color-trigger",style:{cursor:"pointer"},children:[u.jsx(ct,{content:y?"Design token":void 0,side:"left",children:u.jsx("div",{className:"studio-swatch",style:{"--swatch-color":t.computedValue,...y?{boxShadow:"0 0 0 2px var(--studio-accent)"}:{}}})}),u.jsx("span",{className:"flex-1 truncate text-left font-mono text-[11px]",children:y?t.tokenMatch.tokenName:t.tailwindValue||t.computedValue}),u.jsx(Dt,{})]}),c&&u.jsx(z7,{anchorRef:d,currentValue:y?t.tokenMatch.tokenName:"",availableTokens:h,tokenValues:v,onSelect:b=>{r(`${m}-${b}`),s(!1)},onClose:()=>s(!1)})]})}const V0=["none","2xs","xs","sm","","md","lg","xl","2xl"];function pf({prop:t,shadows:a,elementClassName:o,onPreviewInlineStyle:r,onCommitClass:c}){const s=t.computedValue,d=!s||s==="none",h=(()=>{if(t.tailwindValue)return{name:t.tailwindValue,cls:t.fullClass||void 0};if(d)return{name:"none",cls:void 0};const b=o.split(/\s+/).filter(Boolean);for(const C of b){const w=C.match(/^shadow-\[var\((--[\w-]+)\)\]$/);if(w){const j=w[1],M=a==null?void 0:a.find(R=>R.cssVariable===j);if(M)return{name:M.name,cls:C}}const E=C.match(/^shadow(?:-(2xs|xs|sm|md|lg|xl|2xl|none))?$/);if(E)return{name:E[1]||"",cls:C}}return null})(),v=(h==null?void 0:h.name)??null,m=h==null?void 0:h.cls,y=b=>{const C=m||t.fullClass||void 0;if(b==="none"){r("box-shadow","none"),c("shadow-none",C);return}if(V0.includes(b)){const E=b===""?"shadow":`shadow-${b}`,j=a==null?void 0:a.find(M=>M.name===`shadow-${b}`||M.name===b);j&&r("box-shadow",j.value),c(E,C);return}const w=a==null?void 0:a.find(E=>E.name===b);if(w)if(r("box-shadow",w.value),w.cssVariable)c(`shadow-[var(${w.cssVariable})]`,C);else{const E=b.startsWith("shadow-")?b:`shadow-${b}`;c(E,C)}};return u.jsxs("div",{className:"studio-scrub-input",children:[u.jsx(ct,{content:"box-shadow",side:"left",children:u.jsx("div",{className:"studio-scale-icon",children:u.jsx(Ip,{style:{width:12,height:12}})})}),u.jsx(In,{value:v===null?"__current__":v||"__default__",onChange:b=>y(b==="__default__"?"":b),options:[...v===null?[{value:"__current__",label:s.length>30?s.slice(0,30)+"...":s}]:[],{value:"none"}],groups:[{label:"Scale",options:V0.filter(b=>b!=="none").map(b=>({value:b||"__default__",label:b===""?"shadow (default)":b}))},...a&&a.length>0?[{label:"Project Shadows",options:a.filter(b=>!V0.includes(b.name.replace(/^shadow-?/,""))).map(b=>({value:b.name}))}]:[]]})]})}function Kc({prop:t,gradients:a,elementClassName:o,onPreviewInlineStyle:r,onCommitClass:c}){const s=(t==null?void 0:t.computedValue)||"none",d=s!=="none"&&s.includes("gradient"),h=(()=>{if(t!=null&&t.fullClass)return{name:null,cls:t.fullClass};const b=o.split(/\s+/).filter(Boolean);for(const C of b){const w=C.match(/^bg-\[(?:image:)?var\((--[\w-]+)\)\]$/);if(w){const E=w[1],j=a==null?void 0:a.find(M=>M.cssVariable===E);if(j)return{name:j.name,cls:C}}}return null})(),v=(h==null?void 0:h.cls)||(t==null?void 0:t.fullClass)||void 0,m=h==null?void 0:h.name,y=b=>{if(b==="none"){r("background-image","none"),c("bg-none",v);return}const C=a==null?void 0:a.find(w=>w.name===b);C&&(r("background-image",C.value),c(`bg-[image:var(${C.cssVariable})]`,v))};return u.jsxs("div",{className:"studio-scrub-input",children:[u.jsx(ct,{content:"background-image (gradient)",side:"left",children:u.jsx("div",{className:"studio-scale-icon",children:u.jsx("div",{style:{width:12,height:12,borderRadius:2,background:d?s:"linear-gradient(135deg, var(--studio-accent), transparent)",opacity:d?1:.5}})})}),u.jsx(In,{value:m||(d?"__current__":"none"),onChange:y,options:[{value:"none"},...d&&!m?[{value:"__current__",label:s.length>30?s.slice(0,30)+"...":s}]:[]],groups:a&&a.length>0?[{label:"Project Gradients",options:a.map(b=>({value:b.name}))}]:void 0})]})}function kt({icon:t,label:a,value:o,computedValue:r,currentClass:c,scale:s,prefix:d,cssProp:h,onPreview:v,onCommitClass:m,onCommitValue:y}){const b=o.startsWith(d+"-")?o.slice(d.length+1):o,C=s.includes(b),w=b==="—"||b==="",[E,j]=g.useState(!C&&!w&&b!=="0"&&b!=="0px"),[M,R]=g.useState(E?r:b),[T,N]=g.useState(!1),_=g.useRef(c),k=g.useRef(null);g.useEffect(()=>{_.current=c},[c]),g.useEffect(()=>{k.current!==null&&(k.current=null)},[r]),g.useEffect(()=>{T||R(E?r:b)},[b,r,T,E]);const U=()=>_.current||c||void 0,z=H=>{if(H==="__custom__"){j(!0),R(r);return}const D=`${d}-${H}`,K=U();m(D,K),_.current=D},W=H=>{const D=H.trim();if(!D)return;const K=U();if(k.current=D,s.includes(D)){const O=`${d}-${D}`;m(O,K),_.current=O;return}const ae=Rn(h,D);if(ae&&ae.exact){m(ae.tailwindClass,K),_.current=ae.tailwindClass;return}const pe=ae?ae.tailwindClass:`${d}-[${D}]`;m(pe,K),_.current=pe},te=g.useRef(null),[ue,oe]=g.useState(!1),ie=g.useRef(M);ie.current=M;const ge=E?T?M:k.current||r:null,fe=E&&ge!==null&&Bc(ge)!==null,xe=H=>{if(!ge)return;const D=Bc(ge);if(!D)return;H.preventDefault(),te.current={startX:H.clientX,startVal:D.num,unit:D.unit},oe(!0);const K=Fh(D.unit),ae=O=>{if(!te.current)return;const X=O.shiftKey?10:1,J=Math.round((O.clientX-te.current.startX)/2),ee=te.current.startVal+J*K*X,se=te.current.unit?`${parseFloat(ee.toFixed(4))}${te.current.unit}`:`${Math.round(ee)}`;R(se),ie.current=se,v&&v(se)},pe=()=>{if(document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",pe),te.current){const O=ie.current;y?y(O):W(O),te.current=null}oe(!1)};document.addEventListener("pointermove",ae),document.addEventListener("pointerup",pe)};return u.jsxs("div",{className:"studio-scale-input",style:E?{borderLeft:"2px solid var(--studio-accent)"}:void 0,children:[t&&u.jsx(ct,{content:a||h,side:"left",children:u.jsx("div",{className:fe?"studio-scrub-icon":"studio-scale-icon",onPointerDown:fe?xe:void 0,children:u.jsx(t,{style:{width:12,height:12}})})}),!t&&a&&u.jsx(ct,{content:h,side:"left",children:u.jsx("div",{className:fe?"studio-scrub-label":"studio-scale-label",onPointerDown:fe?xe:void 0,children:a})}),E?u.jsx("input",{type:"text",value:T||ue?M:k.current||r,placeholder:"e.g. 16px",onChange:H=>{R(H.target.value)},onFocus:()=>{R(r),N(!0)},onBlur:()=>{N(!1);const H=M.trim();H&&H!==r&&(y?y(H):W(H))},onKeyDown:H=>{H.key==="Enter"&&H.target.blur(),H.key==="Escape"&&(R(r),N(!1))},style:{flex:1,minWidth:0,background:"transparent",border:"none",color:"var(--studio-text)",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:"11px",padding:"6px 8px",outline:"none"}}):u.jsx(In,{value:C?b:"__custom__",onChange:z,options:[...C?[]:[{value:"__custom__",label:b||"—"}],...s.map(H=>({value:H}))]}),u.jsx(ct,{content:E?"Custom CSS value — click to use token scale":"Token scale — click to enter custom CSS value",side:"bottom",children:u.jsx("button",{onClick:()=>{j(!E),E||R(r)},className:`studio-scale-toggle${E?" active":""}`,children:E?u.jsx(Pg,{style:{width:12,height:12}}):u.jsx(fv,{style:{width:12,height:12}})})})]})}function Wf({value:t,onPreview:a,onCommitClass:o}){const r=s=>{const d=parseFloat(s);return isNaN(d)?100:d<=1&&s!=="100"?Math.round(d*100):Math.round(d)},c=s=>{const d=JS.reduce((h,v)=>Math.abs(parseInt(v)-s)<Math.abs(parseInt(h)-s)?v:h);o(`opacity-${d}`)};return u.jsx(J0,{value:r(t),min:0,max:100,step:5,icon:Cf,tooltip:"Opacity",unit:"%",onChange:s=>a(`${s/100}`),onCommit:c})}const ej=[{property:"display",label:"Display",category:"layout",controlType:"keyword",alwaysShow:!0},{property:"position",label:"Position",category:"layout",controlType:"keyword"},{property:"top",label:"Top",category:"layout",controlType:"length"},{property:"right",label:"Right",category:"layout",controlType:"length"},{property:"bottom",label:"Bottom",category:"layout",controlType:"length"},{property:"left",label:"Left",category:"layout",controlType:"length"},{property:"z-index",label:"Z-Index",category:"layout",controlType:"text"},{property:"overflow",label:"Overflow",category:"layout",controlType:"keyword"},{property:"flex-direction",label:"Direction",category:"layout",controlType:"keyword"},{property:"flex-wrap",label:"Wrap",category:"layout",controlType:"keyword"},{property:"justify-content",label:"Justify",category:"layout",controlType:"keyword"},{property:"align-items",label:"Align Items",category:"layout",controlType:"keyword"},{property:"align-self",label:"Align Self",category:"layout",controlType:"keyword"},{property:"gap",label:"Gap",category:"layout",controlType:"length"},{property:"row-gap",label:"Row Gap",category:"layout",controlType:"length"},{property:"column-gap",label:"Column Gap",category:"layout",controlType:"length"},{property:"width",label:"Width",category:"size",controlType:"length"},{property:"height",label:"Height",category:"size",controlType:"length"},{property:"min-width",label:"Min W",category:"size",controlType:"length"},{property:"min-height",label:"Min H",category:"size",controlType:"length"},{property:"max-width",label:"Max W",category:"size",controlType:"length"},{property:"max-height",label:"Max H",category:"size",controlType:"length"},{property:"padding-top",label:"Top",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-right",label:"Right",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-bottom",label:"Bottom",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-left",label:"Left",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-top",label:"Top",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-right",label:"Right",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-bottom",label:"Bottom",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-left",label:"Left",category:"spacing",controlType:"length",alwaysShow:!0},{property:"font-family",label:"Font",category:"typography",controlType:"text",alwaysShow:!0},{property:"font-size",label:"Size",category:"typography",controlType:"length",alwaysShow:!0},{property:"font-weight",label:"Weight",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"line-height",label:"Leading",category:"typography",controlType:"length",alwaysShow:!0},{property:"letter-spacing",label:"Tracking",category:"typography",controlType:"length",alwaysShow:!0},{property:"text-align",label:"Align",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"text-decoration",label:"Decoration",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"text-transform",label:"Transform",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"color",label:"Text",category:"color",controlType:"color",alwaysShow:!0},{property:"background-color",label:"Background",category:"color",controlType:"color",alwaysShow:!0},{property:"border-top-width",label:"Top",category:"border",controlType:"length"},{property:"border-right-width",label:"Right",category:"border",controlType:"length"},{property:"border-bottom-width",label:"Bottom",category:"border",controlType:"length"},{property:"border-left-width",label:"Left",category:"border",controlType:"length"},{property:"border-color",label:"Color",category:"border",controlType:"color",alwaysShow:!0},{property:"border-top-left-radius",label:"TL",category:"border",controlType:"length",alwaysShow:!0},{property:"border-top-right-radius",label:"TR",category:"border",controlType:"length",alwaysShow:!0},{property:"border-bottom-right-radius",label:"BR",category:"border",controlType:"length",alwaysShow:!0},{property:"border-bottom-left-radius",label:"BL",category:"border",controlType:"length",alwaysShow:!0},{property:"opacity",label:"Opacity",category:"effects",controlType:"text",alwaysShow:!0},{property:"box-shadow",label:"Shadow",category:"effects",controlType:"text",alwaysShow:!0},{property:"background-image",label:"Gradient",category:"effects",controlType:"text"},{property:"transform",label:"Transform",category:"effects",controlType:"readonly"}],tj={top:["auto"],right:["auto"],bottom:["auto"],left:["auto"],"z-index":["auto"],position:["static"],overflow:["visible"],"padding-top":["0px"],"padding-right":["0px"],"padding-bottom":["0px"],"padding-left":["0px"],"margin-top":["0px"],"margin-right":["0px"],"margin-bottom":["0px"],"margin-left":["0px"],"min-width":["0px"],"min-height":["0px"],"max-width":["none"],"max-height":["none"],"border-top-width":["0px"],"border-right-width":["0px"],"border-bottom-width":["0px"],"border-left-width":["0px"],"background-image":["none"],transform:["none"],"align-self":["auto"]},nj=new Set(["color","font-family","font-size","font-weight","line-height","letter-spacing","text-align","text-transform","white-space","text-decoration"]),lj=new Set(["flex-direction","flex-wrap","justify-content","align-items","gap","row-gap","column-gap"]);function aj(t,a){const o=tj[t];return o?o.some(r=>a===r||a.startsWith(r)):!1}const oj={display:"block","font-family":"sans-serif","font-size":"16px","font-weight":"400","line-height":"normal","letter-spacing":"normal","text-align":"left","text-decoration":"none","text-transform":"none",color:"rgb(0, 0, 0)","background-color":"transparent","border-color":"rgb(0, 0, 0)","border-top-left-radius":"0px","border-top-right-radius":"0px","border-bottom-right-radius":"0px","border-bottom-left-radius":"0px",opacity:"1","padding-top":"0px","padding-right":"0px","padding-bottom":"0px","padding-left":"0px","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};function rj(t){return oj[t]||""}function hf(t,a){let o,r,c,s;return a==="border-width"?(o=t["border-top-width"]||"0px",r=t["border-right-width"]||"0px",c=t["border-bottom-width"]||"0px",s=t["border-left-width"]||"0px"):a==="border-radius"?(o=t["border-top-left-radius"]||"0px",r=t["border-top-right-radius"]||"0px",c=t["border-bottom-right-radius"]||"0px",s=t["border-bottom-left-radius"]||"0px"):(o=t[`${a}-top`]||"0px",r=t[`${a}-right`]||"0px",c=t[`${a}-bottom`]||"0px",s=t[`${a}-left`]||"0px"),o===r&&r===c&&c===s?o:null}function ij(t,a){const o=t[`${a}-top`]||"0px",r=t[`${a}-right`]||"0px",c=t[`${a}-bottom`]||"0px",s=t[`${a}-left`]||"0px";return o===c&&s===r?{x:s,y:o}:null}const cj={backgroundColor:"background-color",textColor:"color",borderColor:"border-color",ringColor:"outline-color",outlineColor:"outline-color",paddingTop:"padding-top",paddingRight:"padding-right",paddingBottom:"padding-bottom",paddingLeft:"padding-left",marginTop:"margin-top",marginRight:"margin-right",marginBottom:"margin-bottom",marginLeft:"margin-left",padding:["padding-top","padding-right","padding-bottom","padding-left"],paddingX:["padding-left","padding-right"],paddingY:["padding-top","padding-bottom"],margin:["margin-top","margin-right","margin-bottom","margin-left"],marginX:["margin-left","margin-right"],marginY:["margin-top","margin-bottom"],gap:"gap",gapX:"column-gap",gapY:"row-gap",borderRadius:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],borderWidth:["border-top-width","border-right-width","border-bottom-width","border-left-width"],fontSize:"font-size",fontWeight:"font-weight",lineHeight:"line-height",letterSpacing:"letter-spacing",fontFamily:"font-family",textAlign:"text-align",textTransform:"text-transform",textDecoration:"text-decoration",display:"display",position:"position",flexDirection:"flex-direction",flexWrap:"flex-wrap",alignItems:"align-items",justifyContent:"justify-content",alignSelf:"align-self",overflow:"overflow",boxShadow:"box-shadow",backgroundImage:"background-image",width:"width",height:"height",minWidth:"min-width",minHeight:"min-height",maxWidth:"max-width",maxHeight:"max-height"},Sp=new Set(["h1","h2","h3","h4","h5","h6","p","span","a","label","strong","em","b","i","small","blockquote","li","dt","dd","figcaption","caption","th","td","legend","summary"]),sj=new Set(["div","section","article","aside","nav","header","footer","main","form","fieldset","figure","details","dialog","ul","ol"]),uj=new Set(["font-size","font-weight","line-height","letter-spacing","text-align","color"]),jp=new Set(["padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-bottom","width","height","background-color"]);function fj(t,a){return!!(Sp.has(t)&&uj.has(a)||sj.has(t)&&jp.has(a)||Sp.has(t)&&jp.has(a))}function dj(t,a,o,r,c){const s={layout:[],spacing:[],size:[],typography:[],color:[],border:[],effects:[]},d=H7(a||""),h=new Map,v=[...d.color,...d.spacing,...d.shape,...d.typography,...d.layout,...d.size,...d.other];for(const m of v){const y=cj[m.property];if(y)if(Array.isArray(y))for(const b of y)h.has(b)||h.set(b,m);else h.has(y)||h.set(y,m)}for(const m of ej){const y=lj.has(m.property),b=h.get(m.property),C=o[m.property]||"",w=!C||aj(m.property,C),E=nj.has(m.property)&&!!r[m.property]&&r[m.property]===C,j=C?qS(m.property,C,c):null,M=m.category==="size",R=h.get("display"),T=R&&(R.value.includes("flex")||R.value.includes("grid")),N=m.category==="layout";let _;if(b)_={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:"class",tailwindValue:b.value,fullClass:b.fullClass,computedValue:C,inherited:E,tokenMatch:j,hasValue:!0,flexGridOnly:y};else{if(M)continue;if(N&&!m.alwaysShow)if(T&&y)_={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:"none",tailwindValue:null,fullClass:null,computedValue:C,inherited:!1,tokenMatch:null,hasValue:!1,flexGridOnly:!0};else continue;else if(m.alwaysShow){const k=C||rj(m.property),U=k?Rn(m.property,k):null,z=k==="0px"||k==="0"||k==="0%";_={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:C?"computed":"none",tailwindValue:U!=null&&U.exact&&!z?U.tailwindClass:null,fullClass:null,computedValue:k,inherited:E,tokenMatch:j,hasValue:!0,flexGridOnly:y}}else if(w)if(fj(t,m.property))_={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:"none",tailwindValue:null,fullClass:null,computedValue:C,inherited:!1,tokenMatch:null,hasValue:!1,flexGridOnly:y};else continue;else{if(!C)continue;const k=Rn(m.property,C);_={cssProperty:m.property,label:m.label,category:m.category,controlType:m.controlType,source:"computed",tailwindValue:k!=null&&k.exact?k.tailwindClass:null,fullClass:null,computedValue:C,inherited:E,tokenMatch:j,hasValue:!0,flexGridOnly:y}}}s[m.category].push(_)}return s}const pj=["top","right","bottom","left"];function Fc({box:t,icon:a,activeProps:o,allProperties:r,computedStyles:c,onPreviewInlineStyle:s,onCommitClass:d}){var M,R;const[h,v]=g.useState(!1),m=t==="padding"?"p":"m",y=hf(c,t),b=y?null:ij(c,t),C=T=>{const N=T.computedValue;return!T.tailwindValue&&(N==="0px"||N==="0")?"—":N},w=y?null:b?`${b.y} ${b.x}`:o.length>0?o.map(C).join(" "):null,E=T=>r.find(N=>N.cssProperty===T),j=t.charAt(0).toUpperCase()+t.slice(1);return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Gc,{label:j}),u.jsx("button",{onClick:()=>v(!h),style:{background:"none",border:"none",cursor:"pointer",color:"var(--studio-text-dimmed)",padding:"2px",display:"flex",alignItems:"center"},children:u.jsx(ct,{content:h?"Collapse to shorthand":"Expand individual sides",children:u.jsx($g,{style:{width:12,height:12,opacity:h?1:.5}})})})]}),h?u.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:pj.map(T=>{const N=`${t}-${T}`,_=E(N),k=T[0].toUpperCase(),U=`${m}${T[0]}`,z=(_==null?void 0:_.computedValue)||"0";return u.jsx(kt,{label:k,value:(_==null?void 0:_.tailwindValue)||(z==="0px"||z==="0"?"—":z),computedValue:z,currentClass:(_==null?void 0:_.fullClass)||null,scale:lt,prefix:U,cssProp:N,onPreview:W=>s(N,W),onCommitClass:d},N)})}):y?u.jsx(kt,{icon:a,value:((M=o[0])==null?void 0:M.tailwindValue)||(y==="0px"||y==="0"?"—":y),computedValue:y||"0",currentClass:((R=o[0])==null?void 0:R.fullClass)||null,scale:lt,prefix:m,cssProp:t,onPreview:T=>s(t,T),onCommitClass:d,onCommitValue:T=>{const N=yp(t,T);if(N)d(N.tailwindClass);else{const _=Rn(t,T);d(_?_.tailwindClass:`${m}-[${T.trim()}]`)}}}):b?u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[u.jsx(kt,{icon:a,label:"X",value:b.x,computedValue:b.x,currentClass:null,scale:lt,prefix:`${m}x`,cssProp:`${t}-left`,onPreview:T=>{s(`${t}-left`,T),s(`${t}-right`,T)},onCommitClass:d,onCommitValue:T=>{const{xClass:N}=bp(t,T,b.y);if(N)d(N.tailwindClass);else{const _=Rn(`${t}-left`,T);d(_?_.tailwindClass:`${m}x-[${T.trim()}]`)}}}),u.jsx(kt,{icon:a,label:"Y",value:b.y,computedValue:b.y,currentClass:null,scale:lt,prefix:`${m}y`,cssProp:`${t}-top`,onPreview:T=>{s(`${t}-top`,T),s(`${t}-bottom`,T)},onCommitClass:d,onCommitValue:T=>{const{yClass:N}=bp(t,b.x,T);if(N)d(N.tailwindClass);else{const _=Rn(`${t}-top`,T);d(_?_.tailwindClass:`${m}y-[${T.trim()}]`)}}})]}):u.jsx(uo,{icon:a,value:w||"mixed",tooltip:t,onPreview:T=>s(t,T),onCommit:T=>{const N=yp(t,T);N&&d(N.tailwindClass)}})]})}function Vr({token:t,theme:a,onPreview:o,onClearPreview:r,cssFilePath:c,allTokens:s}){const[d,h]=g.useState(!1),[v,m]=g.useState(!1),y=g.useRef(null),b=a==="dark"&&t.darkValue?t.darkValue:t.lightValue,C=t.name.endsWith("-foreground")?t.name.replace("-foreground",""):`${t.name}-foreground`,w=s.find(j=>j.name===C),E=w?a==="dark"&&w.darkValue?w.darkValue:w.lightValue:null;return u.jsxs(u.Fragment,{children:[u.jsxs("button",{ref:y,onClick:()=>h(!d),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),className:"studio-scrub-input w-full",style:{cursor:"pointer",overflow:"hidden",background:v||d?"var(--studio-surface-hover)":void 0,borderColor:d?"var(--studio-accent)":v?"var(--studio-border-hover, var(--studio-border))":void 0},children:[u.jsx("div",{style:{width:28,alignSelf:"stretch",flexShrink:0,background:b||"transparent",backgroundImage:b?`linear-gradient(${b}, ${b}), linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%)`:void 0,backgroundSize:b?"cover, 6px 6px, 6px 6px, 6px 6px, 6px 6px":void 0,backgroundPosition:b?"0 0, 0 0, 0 3px, 3px -3px, -3px 0":void 0}}),u.jsx("span",{className:"studio-scrub-value",style:{color:"var(--studio-text)",userSelect:"none",textAlign:"left"},children:t.name.replace(/^--/,"")})]}),d&&u.jsx(BS,{anchorRef:y,token:{name:t.name,value:b,resolvedValue:b},theme:a,cssFilePath:c,contrastToken:E?{name:C,resolvedValue:E}:null,onPreview:o,onClearPreview:r,onClose:()=>h(!1)})]})}function hj({shadow:t,onPreview:a,onSave:o}){const[r,c]=g.useState(()=>t.layers.length>0?t.layers:[{offsetX:"0",offsetY:"4px",blur:"6px",spread:"-1px",color:"rgb(0 0 0 / 0.1)",inset:!1}]),s=g.useCallback(m=>m.length===0?"none":m.map(y=>{const b=[];return y.inset&&b.push("inset"),b.push(y.offsetX,y.offsetY,y.blur,y.spread,y.color),b.join(" ")}).join(", "),[]),d=g.useCallback((m,y)=>{const b=r.map((C,w)=>w===m?{...C,...y}:C);c(b),a(s(b))},[r,a,s]),h=()=>{const m=[...r,{offsetX:"0",offsetY:"4px",blur:"8px",spread:"0",color:"rgb(0 0 0 / 0.1)",inset:!1}];c(m),a(s(m))},v=m=>{const y=r.filter((b,C)=>C!==m);c(y),a(s(y))};return u.jsxs("div",{className:"flex flex-col gap-3",children:[u.jsx("div",{className:"flex items-center justify-center p-6 rounded-lg",style:{background:"rgb(240, 244, 250)"},children:u.jsx("div",{className:"w-20 h-20 rounded-lg",style:{background:"white",boxShadow:s(r)}})}),r.map((m,y)=>u.jsx(gj,{layer:m,index:y,total:r.length,onChange:b=>d(y,b),onRemove:()=>v(y)},y)),u.jsxs("button",{onClick:h,className:"flex items-center justify-center gap-1 py-1.5 rounded text-[11px] cursor-pointer",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)",color:"var(--studio-text-muted)"},children:[u.jsx(Wc,{style:{width:12,height:12}}),"Add Layer"]}),u.jsx("button",{onClick:()=>o(s(r)),className:"w-full py-1.5 rounded text-[11px] font-medium cursor-pointer",style:{background:"var(--studio-accent)",color:"white",border:"none"},children:"Save to File"})]})}function gj({layer:t,index:a,total:o,onChange:r,onRemove:c}){const s=d=>parseFloat(d)||0;return u.jsxs("div",{className:"rounded-lg p-2.5",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsxs("span",{className:"text-[9px] font-semibold tracking-wide",style:{color:"var(--studio-text-dimmed)"},children:["Layer ",a+1]}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("button",{onClick:()=>r({inset:!t.inset}),className:`studio-bp-btn ${t.inset?"active":""}`,style:{fontSize:9,padding:"1px 5px"},children:"inset"}),o>1&&u.jsx("button",{onClick:c,className:"studio-icon-btn",style:{width:20,height:20},children:u.jsx(l4,{style:{width:10,height:10}})})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1.5",children:[u.jsx(jc,{label:"X Offset",value:s(t.offsetX),min:-50,max:50,unit:"px",onChange:d=>r({offsetX:`${d}px`})}),u.jsx(jc,{label:"Y Offset",value:s(t.offsetY),min:-50,max:50,unit:"px",onChange:d=>r({offsetY:`${d}px`})}),u.jsx(jc,{label:"Blur",value:s(t.blur),min:0,max:100,unit:"px",onChange:d=>r({blur:`${d}px`})}),u.jsx(jc,{label:"Spread",value:s(t.spread),min:-50,max:50,unit:"px",onChange:d=>r({spread:`${d}px`})})]}),u.jsx(qc,{color:t.color,onChange:d=>r({color:d})})]})}function jc({label:t,value:a,min:o,max:r,unit:c,onChange:s}){return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-[9px] font-medium",style:{color:"var(--studio-text-dimmed)"},children:t}),u.jsxs("span",{className:"text-[9px] font-mono",style:{color:"var(--studio-text-muted)"},children:[a,c]})]}),u.jsx("input",{type:"range",min:o,max:r,value:a,onChange:d=>s(parseInt(d.target.value,10)),className:"w-full"})]})}function U7({value:t,size:a=32,shape:o="rounded",background:r="white",showBorder:c=!1,borderColor:s="#e0e0e0"}){const d=o==="circle"?"50%":o==="rounded"?"4px":"0";return u.jsx("div",{className:"shrink-0",style:{width:a,height:a,borderRadius:d,background:r,boxShadow:t,border:c?`1px solid ${s}`:"none"}})}function mj({shadows:t,cssFilePath:a,stylingType:o,onPreviewShadow:r}){const[c,s]=g.useState(null),[d,h]=g.useState({});return u.jsxs("div",{children:[t.map(v=>u.jsx(vj,{shadow:v,isExpanded:c===v.name,onToggle:()=>s(c===v.name?null:v.name),mode:d[v.name]||"custom",onModeChange:m=>h({...d,[v.name]:m}),cssFilePath:a,stylingType:o,onPreviewShadow:r},v.name)),t.length===0&&u.jsx("div",{className:"px-4 py-6 text-center text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"No shadows found. Add shadow CSS variables to your global CSS file."})]})}function vj({shadow:t,isExpanded:a,onToggle:o,mode:r,onModeChange:c,cssFilePath:s,stylingType:d,onPreviewShadow:h}){const[v,m]=g.useState(!1),[y,b]=g.useState(t.value),C=async w=>{b(w),m(!0);try{if(t.source==="design-token"&&t.tokenFilePath&&t.tokenPath)await mp("/api/shadows/design-token",{filePath:t.tokenFilePath,tokenPath:t.tokenPath,value:w});else{const E=t.sassVariable||t.cssVariable||`--${t.name}`;let j,M=s;d==="tailwind-v4"?j="@theme":d==="bootstrap"&&t.sassVariable?(j="scss",M=t.filePath||s):j=":root";const R=t.isOverridden?"/api/shadows":"/api/shadows/create";await mp(R,{filePath:M,variableName:E,value:w,selector:j})}}catch(E){console.error("Shadow save error:",E)}setTimeout(()=>m(!1),1e3)};return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:o,className:"studio-section-hdr",style:{gap:8},children:[a?u.jsx(Dt,{}):u.jsx(_n,{}),u.jsx(U7,{value:y,size:24}),u.jsx("span",{className:"flex-1 text-[11px] font-mono truncate text-left",style:{color:"var(--studio-text)",fontWeight:500,textTransform:"none",letterSpacing:0},children:t.name}),t.source==="framework-preset"&&!t.isOverridden&&u.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:"preset"}),t.source==="design-token"&&u.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:"token"}),v&&u.jsx("span",{className:"flex items-center gap-0.5 text-[10px]",style:{color:"var(--studio-success)"},children:u.jsx(ia,{style:{width:10,height:10}})})]}),a&&u.jsxs("div",{className:"px-4 pb-3",children:[u.jsxs("div",{className:"studio-segmented mb-3",style:{width:"100%"},children:[u.jsxs("button",{onClick:()=>c("custom"),className:r==="custom"?"active":"",style:{flex:1},children:[u.jsx(Jp,{style:{width:12,height:12}}),"Custom"]}),u.jsxs("button",{onClick:()=>c("preset"),className:r==="preset"?"active":"",style:{flex:1},children:[u.jsx(Vg,{style:{width:12,height:12}}),"Use Preset"]})]}),r==="custom"?u.jsx(hj,{shadow:{...t,value:y},onPreview:w=>{const E=t.cssVariable||`--${t.name}`;h(E,w,t.name)},onSave:C}):u.jsx(xj,{currentValue:y,onSelect:w=>{const E=t.cssVariable||`--${t.name}`;h(E,w,t.name),C(w)}})]})]})}function xj({currentValue:t,onSelect:a}){const o=[{name:"Crisp 2L",value:"0px 0.3px 0.7px 0px rgb(0 0 0 / 0.1), 0px 0.7px 2.1px 0px rgb(0 0 0 / 0.07)",desc:"Subtle"},{name:"Crisp 2L +",value:"0px 0.5px 1px 0px rgb(0 0 0 / 0.1), 0px 1px 3px 0px rgb(0 0 0 / 0.07), 0px 2px 6px 0px rgb(0 0 0 / 0.07)",desc:"Elevated"},{name:"Crisp 3L",value:"0px 1px 1px 0px rgb(0 0 0 / 0.08), 0px 2px 2px 0px rgb(0 0 0 / 0.08), 0px 4px 4px 0px rgb(0 0 0 / 0.08)",desc:"Card"},{name:"Crisp 3L +",value:"0px 1px 1px 0px rgb(0 0 0 / 0.08), 0px 2px 2px 0px rgb(0 0 0 / 0.08), 0px 4px 4px 0px rgb(0 0 0 / 0.08), 0px 8px 8px 0px rgb(0 0 0 / 0.08)",desc:"Elevated"},{name:"Crisp Tight",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.09), 0px 1px 1.5px 0px rgb(0 0 0 / 0.07), 0px 3px 3px 0px rgb(0 0 0 / 0.06)",desc:"Card"},{name:"Crisp Tight +",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.09), 0px 1px 1.5px 0px rgb(0 0 0 / 0.07), 0px 3px 3px 0px rgb(0 0 0 / 0.06), 0px 6px 6px 0px rgb(0 0 0 / 0.06)",desc:"Elevated"},{name:"Crisp 4L",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.07), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.06)",desc:"Card"},{name:"Crisp 4L +",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.07), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.06), 0px 8px 8px 0px rgb(0 0 0 / 0.06)",desc:"Elevated"},{name:"Edge 4L",value:"0px 0px 0.5px -0.5px rgb(0 0 0 / 0.12), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.05)",desc:"Card"},{name:"Edge 4L +",value:"0px 0px 0.5px -0.5px rgb(0 0 0 / 0.12), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.05), 0px 8px 8px 0px rgb(0 0 0 / 0.05)",desc:"Elevated"},{name:"Soft",value:"0px 1px 2px 0px rgb(0 0 0 / 0.04), 0px 2px 4px 0px rgb(0 0 0 / 0.04), 0px 4px 8px 0px rgb(0 0 0 / 0.04)",desc:"Diffuse"},{name:"Soft +",value:"0px 1px 2px 0px rgb(0 0 0 / 0.04), 0px 2px 4px 0px rgb(0 0 0 / 0.04), 0px 4px 8px 0px rgb(0 0 0 / 0.04), 0px 8px 16px 0px rgb(0 0 0 / 0.04)",desc:"Elevated"},{name:"Chunky",value:"3px 3px 0px 0px rgb(0 0 0 / 0.25)",desc:"Hard"},{name:"None",value:"none",desc:"Remove"}];return u.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:o.map(r=>{const c=t===r.value;return u.jsxs("button",{onClick:()=>a(r.value),className:"flex flex-col items-center gap-1.5 p-3 rounded-lg cursor-pointer",style:{background:c?"var(--studio-accent-muted)":"transparent",border:"1px solid",borderColor:c?"var(--studio-accent)":"var(--studio-border-subtle)"},children:[u.jsx("div",{className:"flex items-center justify-center rounded-lg w-full",style:{background:"rgb(240, 244, 250)",height:72},children:u.jsx(U7,{value:r.value,size:48,background:"white"})}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-[10px] font-medium",style:{color:"var(--studio-text-muted)"},children:r.name}),r.desc&&u.jsx("div",{className:"text-[9px]",style:{color:"var(--studio-text-dimmed)"},children:r.desc})]})]},r.name)})})}function nl(t){return g.useSyncExternalStore(vn.subscribe,g.useCallback(()=>t(vn.getSnapshot()),[t]))}const yj=t=>t.tokens,bj=t=>t.components,Cj=t=>t.shadows,wj=t=>t.borders,Sj=t=>t.gradients,jj=t=>t.styling,Mj=t=>t.usages,Ej=t=>t.framework,Tj=t=>t.framework!==null&&t.tokens!==null&&t.components!==null&&t.shadows!==null&&t.borders!==null&&t.gradients!==null&&t.styling!==null;function Qr(){return nl(yj)}function If(){return nl(bj)}function ed(){return nl(Cj)}function Rj(){return nl(wj)}function Y7(){return nl(Sj)}function X7(){return nl(jj)}function _j(){return nl(Mj)}function Nj(){return nl(Ej)}function Lj(){return nl(Tj)}function Mp({tokenRefs:t,theme:a,onPreviewToken:o,onClearTokenPreview:r,onPreviewShadow:c}){var N,_,k,U;const s=Qr(),d=ed(),h=Rj(),v=Y7(),m=X7();if(!s)return u.jsx("div",{className:"px-4 py-3 text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Loading tokens..."});const y=s.tokens,b=s.cssFilePath,C=y.filter(z=>t.includes(z.name)),w=Object.entries(s.groups).filter(([z,W])=>W.some(te=>te.category==="color")).slice(0,8),E=y.filter(z=>z.category==="spacing"),j=y.filter(z=>z.category==="color"&&["--border","--input","--ring"].includes(z.name)),M=((N=h==null?void 0:h.borders)==null?void 0:N.filter(z=>z.kind==="radius"))||[],R=((_=h==null?void 0:h.borders)==null?void 0:_.filter(z=>z.kind==="width"))||[],T=(m==null?void 0:m.type)||"";return u.jsxs("div",{className:"",children:[C.length>0&&u.jsx(aa,{title:"Used by element",count:C.length,defaultCollapsed:!0,children:u.jsx("div",{className:"flex flex-col gap-1.5 px-4 pb-2",children:C.map(z=>u.jsx(Vr,{token:z,theme:a,onPreview:o,onClearPreview:r,cssFilePath:b,allTokens:y},z.name))})}),u.jsx(aa,{title:"Colors",count:w.reduce((z,[W,te])=>z+te.filter(ue=>ue.category==="color").length,0),defaultCollapsed:!0,children:w.length>0?u.jsx("div",{className:"studio-tree",children:w.map(([z,W])=>u.jsx(Oj,{title:z,count:W.filter(te=>te.category==="color").length,children:u.jsx("div",{className:"flex flex-col gap-1.5 pb-1",children:W.filter(te=>te.category==="color").map(te=>u.jsx(Vr,{token:te,theme:a,onPreview:o,onClearPreview:r,cssFilePath:b,allTokens:y},te.name))})},z))}):u.jsx(Nr,{message:"No color tokens found in your CSS."})}),u.jsx(aa,{title:"Spacing",count:E.length,defaultCollapsed:!0,children:E.length>0?u.jsx(Hj,{spacingTokens:E,cssFilePath:b,theme:a}):u.jsx(Nr,{message:"No spacing tokens found in your CSS."})}),u.jsx(aa,{title:"Shadows",count:((k=d==null?void 0:d.shadows)==null?void 0:k.length)||0,defaultCollapsed:!0,children:d&&d.shadows.length>0?u.jsx(mj,{shadows:d.shadows,cssFilePath:d.cssFilePath,stylingType:d.stylingType,onPreviewShadow:c}):u.jsx(Nr,{message:"No shadows found. Add shadow CSS variables to your global CSS file."})}),u.jsx(aa,{title:"Radii",count:M.length,defaultCollapsed:!0,children:u.jsx(Vj,{borders:M,theme:a,cssFilePath:(h==null?void 0:h.cssFilePath)||b,stylingType:(h==null?void 0:h.stylingType)||T})}),u.jsx(aa,{title:"Borders",count:R.length+j.length,defaultCollapsed:!0,children:u.jsx(kj,{widthBorders:R,borderColorTokens:j,theme:a,cssFilePath:(h==null?void 0:h.cssFilePath)||b,stylingType:(h==null?void 0:h.stylingType)||T,allTokens:y,onPreviewToken:o,onClearPreview:r})}),u.jsx(aa,{title:"Gradients",count:((U=v==null?void 0:v.gradients)==null?void 0:U.length)||0,defaultCollapsed:!0,children:u.jsx(Zj,{gradients:(v==null?void 0:v.gradients)||[],cssFilePath:(v==null?void 0:v.cssFilePath)||b,stylingType:(v==null?void 0:v.stylingType)||T})})]})}function aa({title:t,count:a,children:o,defaultCollapsed:r=!0}){const[c,s]=g.useState(r);return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:()=>s(!c),className:"studio-section-hdr",children:[c?u.jsx(_n,{}):u.jsx(Dt,{}),t,a!==void 0&&u.jsx("span",{className:"count",children:a})]}),!c&&u.jsx("div",{className:"pb-2",children:o})]})}function Oj({title:t,count:a,children:o}){const[r,c]=g.useState(!0);return u.jsxs("div",{className:"studio-tree-node",children:[u.jsxs("button",{onClick:()=>c(!r),className:"studio-section-hdr",style:{fontSize:10},children:[r?u.jsx(_n,{}):u.jsx(Dt,{}),u.jsx("span",{style:{color:"var(--studio-text)",fontWeight:600},children:t}),a!==void 0&&u.jsx("span",{className:"count",children:a})]}),!r&&u.jsx("div",{className:"studio-tree-content",children:o})]})}function Aj({label:t}){return u.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider mb-2",style:{color:"var(--studio-text-dimmed)"},children:t})}function Nr({message:t}){return u.jsx("div",{className:"px-4 py-4 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:t})}function Jc({token:t,theme:a,icon:o,onSave:r,step:c,min:s,maxDecimals:d}){const h=t.value??(a==="dark"&&t.darkValue?t.darkValue:t.lightValue)??"",v=(t.name||"").replace(/^--/,"");return u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] font-mono truncate mb-0.5",style:{color:"var(--studio-text-dimmed)"},children:v}),u.jsx(uo,{icon:o,value:h,onCommit:r,step:c,min:s,maxDecimals:d})]})}lt.filter(t=>t!=="px"&&t!=="0").map(Number).filter(t=>!isNaN(t));function zj(t){const a=t.match(/^([\d.]+)(rem|px|em)$/);return a?{num:parseFloat(a[1]),unit:a[2]}:null}function Hj({spacingTokens:t,cssFilePath:a,theme:o}){const r=t.find(m=>m.name==="--spacing"),c=t.filter(m=>m.name!=="--spacing"),s=r?o==="dark"&&r.darkValue?r.darkValue:r.lightValue:null,d=s?zj(s):null,h=[.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],v=d?16*d.num:4;return u.jsxs("div",{className:"pb-2",children:[r&&u.jsx("div",{className:"px-4 mb-2",children:u.jsx(Jc,{token:r,theme:o,icon:Oc,onSave:m=>sf(a,r.name,m,o==="dark"?".dark":":root")})}),c.length>0&&u.jsx("div",{className:"px-4 mb-2 grid grid-cols-2 gap-1.5",children:c.map(m=>u.jsx(Jc,{token:m,theme:o,icon:Oc,onSave:y=>sf(a,m.name,y,o==="dark"?".dark":":root")},m.name))}),d&&u.jsx("div",{className:"px-4",children:u.jsxs("div",{className:"rounded-md overflow-hidden",style:{border:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("div",{className:"grid text-[9px] font-semibold uppercase tracking-wider",style:{gridTemplateColumns:"42px 56px 1fr",color:"var(--studio-text-dimmed)",borderBottom:"1px solid var(--studio-border-subtle)",background:"var(--studio-input-bg)",padding:"4px 8px"},children:[u.jsx("span",{children:"Name"}),u.jsx("span",{children:"Size"}),u.jsx("span",{})]}),u.jsxs("div",{className:"grid items-center",style:{gridTemplateColumns:"42px 56px 1fr",borderBottom:"1px solid var(--studio-border-subtle)",padding:"3px 8px"},children:[u.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--studio-text)"},children:"px"}),u.jsx("span",{className:"text-[10px] font-mono",style:{color:"var(--studio-text-muted)"},children:"1px"}),u.jsx("div",{style:{height:6,borderRadius:2,background:"var(--studio-accent)",opacity:.25,width:"1px",minWidth:1}})]}),h.map((m,y)=>{const b=m*d.num,C=`${parseFloat(b.toFixed(4))}${d.unit}`,w=Math.min(b/v,1);return u.jsxs("div",{className:"grid items-center",style:{gridTemplateColumns:"42px 56px 1fr",borderBottom:y<h.length-1?"1px solid var(--studio-border-subtle)":"none",padding:"3px 8px"},children:[u.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--studio-text)"},children:m}),u.jsx("span",{className:"text-[10px] font-mono",style:{color:"var(--studio-text-muted)"},children:C}),u.jsx("div",{style:{height:6,borderRadius:2,background:"var(--studio-accent)",opacity:.4,width:`${Math.max(w*100,1)}%`}})]},m)})]})})]})}function Vj({borders:t,theme:a,cssFilePath:o,stylingType:r}){if(t.length===0)return u.jsx(Nr,{message:"No radius tokens found."});const c=r==="tailwind-v4"?"@theme":a==="dark"?".dark":":root",s=async(d,h)=>{const v=d.cssVariable||`--${d.name}`,y=d.source==="framework-preset"&&!d.isOverridden?"/api/gradients/create":"/api/gradients";await A7(y,{filePath:o,variableName:v,value:h,selector:c})};return u.jsx("div",{className:"px-4 pb-2",children:u.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:t.map(d=>u.jsx(Jc,{token:d,theme:a,icon:Yp,onSave:h=>s(d,h),step:.025,min:0,maxDecimals:3},d.name))})})}function kj({widthBorders:t,borderColorTokens:a,theme:o,cssFilePath:r,stylingType:c,allTokens:s,onPreviewToken:d,onClearPreview:h}){if(!(t.length>0||a.length>0))return u.jsx(Nr,{message:"No border tokens found."});const m=c==="tailwind-v4"?"@theme":o==="dark"?".dark":":root",y=async(b,C)=>{const w=b.cssVariable||`--${b.name}`,j=b.source==="framework-preset"&&!b.isOverridden?"/api/gradients/create":"/api/gradients";await A7(j,{filePath:r,variableName:w,value:C,selector:m})};return u.jsxs("div",{className:"flex flex-col gap-3 pb-2",children:[t.length>0&&u.jsx("div",{className:"px-4",children:u.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:t.map(b=>u.jsx(Jc,{token:b,theme:o,icon:ro,onSave:C=>y(b,C),min:0},b.name))})}),a.length>0&&u.jsxs("div",{className:"px-4",children:[u.jsx(Aj,{label:"Color"}),u.jsx("div",{className:"flex flex-col gap-1.5",children:a.map(b=>u.jsx(Vr,{token:b,theme:o,onPreview:d,onClearPreview:h,cssFilePath:r,allTokens:s},b.name))})]})]})}const Dj=[{value:"to right",label:"→"},{value:"to bottom right",label:"↘"},{value:"to bottom",label:"↓"},{value:"to bottom left",label:"↙"},{value:"to left",label:"←"},{value:"to top left",label:"↖"},{value:"to top",label:"↑"},{value:"to top right",label:"↗"}];function Bj(t,a){const r=[...a].sort((c,s)=>c.position-s.position).map(c=>`${c.color} ${c.position}%`);return`linear-gradient(${t}, ${r.join(", ")})`}function $j(t){const a=t.match(/linear-gradient\(([^,]+),\s*(.*)\)$/);if(!a)return null;const o=a[1].trim(),r=a[2],c=[];let s=0,d="";for(const h of r)if(h==="("&&s++,h===")"&&s--,h===","&&s===0){const v=Ep(d.trim());v&&c.push(v),d=""}else d+=h;if(d.trim()){const h=Ep(d.trim());h&&c.push(h)}return{direction:o,stops:c}}function Ep(t){const a=t.match(/\s+(\d+)%$/);return a?{color:t.slice(0,a.index).trim(),position:parseInt(a[1])}:{color:t.trim(),position:0}}function Zj({gradients:t,cssFilePath:a,stylingType:o}){const[r,c]=g.useState(null),[s,d]=g.useState(!1),h=o==="tailwind-v4"?"@theme":":root",v=async(y,b,C)=>{await vp(C?"/api/gradients/create":"/api/gradients",{filePath:a,variableName:y,value:b,selector:h})},m=async y=>{await vp("/api/gradients/delete",{filePath:a,variableName:y,selector:h})};return u.jsxs("div",{className:"px-4 pb-2",children:[t.length>0&&u.jsx("div",{className:"flex flex-col gap-2 mb-3",children:t.map(y=>u.jsx(Uj,{gradient:y,isEditing:r===y.cssVariable,onEdit:()=>c(r===y.cssVariable?null:y.cssVariable),onSave:b=>{v(y.cssVariable,b,!1),c(null)},onDelete:()=>{m(y.cssVariable),c(null)},onCancel:()=>c(null)},y.cssVariable))}),s?u.jsx(Yj,{onSave:(y,b)=>{v(`--${y}`,b,!0),d(!1)},onCancel:()=>d(!1)}):u.jsxs("button",{onClick:()=>d(!0),className:"studio-addable-row w-full",style:{justifyContent:"center",gap:6},children:[u.jsx(Wc,{style:{width:12,height:12}}),u.jsx("span",{className:"text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Add gradient"})]}),t.length===0&&!s&&u.jsx("div",{className:"text-[10px] leading-relaxed text-center mt-2",style:{color:"var(--studio-text-dimmed)"},children:"No gradient tokens yet. Add one to store a reusable gradient as a CSS custom property."})]})}function Uj({gradient:t,isEditing:a,onEdit:o,onSave:r,onDelete:c,onCancel:s}){return u.jsxs("div",{children:[u.jsxs("button",{onClick:o,className:"flex items-center gap-2 w-full text-left p-0",style:{background:"none",border:"none",cursor:"pointer"},children:[u.jsx("div",{className:"studio-gradient-swatch",style:{background:t.value,width:32,height:24,flexShrink:0}}),u.jsx("span",{className:"flex-1 text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.name}),u.jsx(Jp,{style:{width:10,height:10,color:"var(--studio-text-dimmed)"}})]}),a&&u.jsx("div",{className:"mt-2",children:u.jsx(P7,{initialValue:t.value,onSave:r,onDelete:c,onCancel:s})})]})}function Yj({onSave:t,onCancel:a}){const[o,r]=g.useState("gradient-1"),c=s=>{const d=o.replace(/^--/,"").replace(/[^a-z0-9-]/g,"-");t(d,s)};return u.jsxs("div",{className:"rounded-lg p-3",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx("label",{className:"text-[10px] shrink-0",style:{color:"var(--studio-text-dimmed)"},children:"Name"}),u.jsx("input",{type:"text",value:o,onChange:s=>r(s.target.value),className:"studio-input-sm flex-1",placeholder:"gradient-name"})]}),u.jsx(P7,{initialValue:"linear-gradient(to right, #3b82f6 0%, #8b5cf6 100%)",onSave:c,onDelete:void 0,onCancel:a})]})}function P7({initialValue:t,onSave:a,onDelete:o,onCancel:r}){var w;const c=$j(t),[s,d]=g.useState((c==null?void 0:c.direction)||"to right"),[h,v]=g.useState((w=c==null?void 0:c.stops)!=null&&w.length?c.stops:[{color:"#3b82f6",position:0},{color:"#8b5cf6",position:100}]),m=Bj(s,h),y=(E,j)=>{v(M=>M.map((R,T)=>T===E?{...R,...j}:R))},b=()=>{const E=[...h].sort((T,N)=>T.position-N.position),j=E[E.length-1],M=E.length>1?E[E.length-2]:{position:0},R=Math.round((j.position+M.position)/2);v([...h,{color:"#6366f1",position:R}])},C=E=>{h.length<=2||v(h.filter((j,M)=>M!==E))};return u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("div",{className:"w-full rounded-md",style:{background:m,height:32,border:"1px solid var(--studio-border-subtle)"}}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("label",{className:"text-[10px] shrink-0",style:{color:"var(--studio-text-dimmed)"},children:"Dir"}),u.jsx("div",{className:"studio-segmented",style:{flex:1},children:Dj.map(E=>u.jsx("button",{onClick:()=>d(E.value),className:s===E.value?"active":"",title:E.value,style:{flex:1,padding:"3px 2px",fontSize:11},children:E.label},E.value))})]}),u.jsx("div",{className:"flex flex-col gap-1.5",children:h.map((E,j)=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(qc,{variant:"swatch",color:E.color,onChange:M=>y(j,{color:M})}),u.jsx("input",{type:"text",value:E.color,onChange:M=>y(j,{color:M.target.value}),className:"studio-input-sm flex-1",style:{fontSize:10}}),u.jsx("input",{type:"number",min:0,max:100,value:E.position,onChange:M=>y(j,{position:parseInt(M.target.value)||0}),className:"studio-input-sm",style:{width:48,textAlign:"right",fontSize:10}}),u.jsx("span",{className:"text-[9px]",style:{color:"var(--studio-text-dimmed)"},children:"%"}),h.length>2&&u.jsx("button",{onClick:()=>C(j),style:{background:"none",border:"none",cursor:"pointer",color:"var(--studio-text-dimmed)",padding:2,display:"flex"},children:u.jsx(bf,{style:{width:10,height:10}})})]},j))}),u.jsxs("button",{onClick:b,className:"studio-addable-row",style:{justifyContent:"center",gap:4,padding:"3px 8px"},children:[u.jsx(Wc,{style:{width:10,height:10}}),u.jsx("span",{className:"text-[10px]",style:{color:"var(--studio-text-dimmed)"},children:"Add stop"})]}),u.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[u.jsxs("button",{onClick:()=>a(m),className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px] font-medium",style:{background:"var(--studio-accent)",color:"white",border:"none",cursor:"pointer"},children:[u.jsx(ia,{style:{width:10,height:10}}),"Save"]}),u.jsx("button",{onClick:r,className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px]",style:{background:"transparent",color:"var(--studio-text-dimmed)",border:"1px solid var(--studio-border-subtle)",cursor:"pointer"},children:"Cancel"}),o&&u.jsxs("button",{onClick:o,className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px] ml-auto",style:{background:"transparent",color:"var(--studio-danger)",border:"1px solid var(--studio-border-subtle)",cursor:"pointer"},children:[u.jsx(l4,{style:{width:10,height:10}}),"Delete"]})]})]})}function Xj({classes:t,onClassChange:a,tokenGroups:o,flat:r=!1}){const c=H7(t),d=[{key:"layout",label:"Layout"},{key:"color",label:"Color"},{key:"spacing",label:"Spacing"},{key:"size",label:"Size"},{key:"typography",label:"Type"},{key:"shape",label:"Shape"}].filter(h=>c[h.key].length>0);return d.length===0?u.jsx("div",{className:"text-[11px] px-4 py-3",style:{color:"var(--studio-text-dimmed)"},children:"No editable properties"}):r?u.jsx("div",{className:"flex flex-col gap-2",children:d.map(h=>u.jsx(q7,{category:h.key,properties:c[h.key],onClassChange:a,tokenGroups:o},h.key))}):u.jsxs("div",{children:[d.map(h=>u.jsx(Pj,{category:h.key,label:h.label,properties:c[h.key],onClassChange:a,tokenGroups:o},h.key)),c.other.length>0&&u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("div",{className:"studio-section-hdr",style:{cursor:"default"},children:["Other",u.jsx("span",{className:"count",children:c.other.length})]}),u.jsx("div",{className:"flex flex-wrap gap-1 px-4 pb-3",children:c.other.map(h=>u.jsx("span",{className:"px-1.5 py-0.5 text-[10px] font-mono rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:h.fullClass},h.fullClass))})]})]})}function q7({category:t,properties:a,onClassChange:o,tokenGroups:r}){return u.jsx(u.Fragment,{children:t==="layout"?u.jsx(Kj,{properties:a,onClassChange:o}):t==="color"?u.jsx(Fj,{properties:a,onClassChange:o,tokenGroups:r||{}}):t==="spacing"?u.jsx(Wj,{properties:a,onClassChange:o}):u.jsx(Ij,{properties:a,category:t,onClassChange:o})})}function Pj({category:t,label:a,properties:o,onClassChange:r,tokenGroups:c}){const[s,d]=g.useState(!0);return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:()=>d(!s),className:"studio-section-hdr",children:[s?u.jsx(_n,{}):u.jsx(Dt,{}),a,u.jsx("span",{className:"count",children:o.length})]}),!s&&u.jsx("div",{className:"flex flex-col gap-2 pb-2 px-4",children:u.jsx(q7,{category:t,properties:o,onClassChange:r,tokenGroups:c})})]})}function Ol({label:t,prefix:a}){return u.jsxs("div",{className:"text-[10px] font-medium mb-1",style:{color:"var(--studio-text-dimmed)",letterSpacing:"0.03em"},children:[a&&u.jsxs("span",{style:{color:"var(--studio-accent)"},children:[a.replace(/:$/,"")," "]}),t]})}const qj=[{value:"flex",icon:Wp,label:"Flex"},{value:"grid",icon:Gp,label:"Grid"},{value:"block",icon:Up,label:"Block"},{value:"hidden",icon:void 0,label:"None"}],Gj=[{value:"start",icon:Zp,label:"Start"},{value:"center",icon:Dp,label:"Center"},{value:"end",icon:Vp,label:"End"},{value:"stretch",icon:void 0,label:"Stretch"}],Qj=[{value:"start",icon:Bp,label:"Start"},{value:"center",icon:kp,label:"Center"},{value:"end",icon:$p,label:"End"},{value:"between",icon:Oc,label:"Between"},{value:"evenly",icon:Jm,label:"Evenly"}];function Kj({properties:t,onClassChange:a}){const o=t.find(d=>d.property==="display"),r=t.find(d=>d.property==="alignItems"),c=t.find(d=>d.property==="justifyContent"),s=t.filter(d=>!["display","alignItems","justifyContent"].includes(d.property));return u.jsxs(u.Fragment,{children:[o&&u.jsxs("div",{children:[u.jsx(Ol,{label:"Display",prefix:o.prefix}),u.jsx(hn,{options:qj,value:o.value,onChange:d=>{const h=Ll(o.property,d,o.prefix);a(o.fullClass,h)}})]}),r&&u.jsxs("div",{children:[u.jsx(Ol,{label:"Alignment",prefix:r.prefix}),u.jsx(hn,{options:Gj,value:r.value,onChange:d=>{const h=Ll(r.property,d,r.prefix);a(r.fullClass,h)}})]}),c&&u.jsxs("div",{children:[u.jsx(Ol,{label:"Justify",prefix:c.prefix}),u.jsx(hn,{options:Qj,value:c.value,onChange:d=>{const h=Ll(c.property,d,c.prefix);a(c.fullClass,h)}})]}),s.map(d=>u.jsx(_l,{property:d,category:"layout",onClassChange:a},d.fullClass))]})}function Fj({properties:t,onClassChange:a,tokenGroups:o}){const r=[],c={};for(const[h,v]of Object.entries(o))for(const m of v)if(m.category==="color"){const y=m.name.replace(/^--/,"");r.includes(y)||r.push(y),c[y]||(c[y]=m.lightValue||"")}const[s,d]=g.useState(null);return u.jsx(u.Fragment,{children:t.map(h=>u.jsx(Jj,{prop:h,colorTokens:r,tokenValues:c,isOpen:s===h.fullClass,onOpen:()=>d(h.fullClass),onClose:()=>d(null),onClassChange:a},h.fullClass))})}function Jj({prop:t,colorTokens:a,tokenValues:o,isOpen:r,onOpen:c,onClose:s,onClassChange:d}){const h=g.useRef(null),v=o[t.value.split("/")[0]]||"";return u.jsxs("div",{children:[u.jsx(Ol,{label:t.label,prefix:t.prefix}),u.jsxs("button",{ref:h,onClick:c,className:"studio-color-trigger",children:[u.jsx("div",{className:"studio-swatch",style:{"--swatch-color":v}}),u.jsx("span",{className:"flex-1 truncate text-left",children:t.value}),u.jsx(Dt,{})]}),r&&u.jsx(z7,{anchorRef:h,currentValue:t.value,availableTokens:a,tokenValues:o,onSelect:m=>{const y=Ll(t.property,m,t.prefix);d(t.fullClass,y),s()},onClose:s})]})}function Wj({properties:t,onClassChange:a}){const o=t.find(v=>v.label==="PX"||v.label==="Pad X"||v.label==="Padding X"),r=t.find(v=>v.label==="PY"||v.label==="Pad Y"||v.label==="Padding Y"),c=t.find(v=>v.label==="MX"||v.label==="Margin X"),s=t.find(v=>v.label==="MY"||v.label==="Margin Y"),d=t.find(v=>v.label==="Gap"),h=t.filter(v=>v!==o&&v!==r&&v!==c&&v!==s&&v!==d);return u.jsxs(u.Fragment,{children:[(o||r)&&u.jsxs("div",{className:"studio-two-col",children:[o&&u.jsx(ao,{label:"Padding X",prefix:o.prefix,prop:o,onClassChange:a}),r&&u.jsx(ao,{label:"Padding Y",prefix:r.prefix,prop:r,onClassChange:a})]}),(c||s)&&u.jsxs("div",{className:"studio-two-col",children:[c&&u.jsx(ao,{label:"Margin X",prefix:c.prefix,prop:c,onClassChange:a}),s&&u.jsx(ao,{label:"Margin Y",prefix:s.prefix,prop:s,onClassChange:a})]}),d&&u.jsx(ao,{label:"Gap",prefix:d.prefix,prop:d,onClassChange:a}),h.map(v=>u.jsx(ao,{label:v.label,prefix:v.prefix,prop:v,onClassChange:a},v.fullClass))]})}function ao({label:t,prefix:a,prop:o,onClassChange:r}){return Ls(o.value)?u.jsxs("div",{children:[u.jsx(Ol,{label:t,prefix:a}),u.jsx(G7,{value:V7(o.value),onCommit:s=>{const d=Ll(o.property,k7(s),o.prefix);r(o.fullClass,d)}})]}):u.jsxs("div",{children:[u.jsx(Ol,{label:t,prefix:a}),u.jsx(In,{value:o.value,onChange:s=>{const d=Ll(o.property,s,o.prefix);r(o.fullClass,d)},className:"studio-select w-full",options:[...lt.includes(o.value)?[]:[{value:o.value}],...lt.map(s=>({value:s}))]})]})}function Ij({properties:t,category:a,onClassChange:o}){if(a==="typography"){const r=t.find(d=>d.property==="fontSize"),c=t.find(d=>d.property==="fontWeight"),s=t.filter(d=>d!==r&&d!==c);return u.jsxs(u.Fragment,{children:[s.map(d=>u.jsx(_l,{property:d,category:a,onClassChange:o},d.fullClass)),(r||c)&&u.jsxs("div",{className:"studio-two-col",children:[r&&u.jsx(_l,{property:r,category:a,onClassChange:o}),c&&u.jsx(_l,{property:c,category:a,onClassChange:o})]})]})}if(a==="size"){const r=t.find(d=>d.label==="Width"||d.label==="Max Width"||d.label==="Min Width"),c=t.find(d=>d.label==="Height"||d.label==="Max Height"||d.label==="Min Height"),s=t.filter(d=>d!==r&&d!==c);if(r&&c)return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"studio-two-col",children:[u.jsx(_l,{property:r,category:a,onClassChange:o}),u.jsx(_l,{property:c,category:a,onClassChange:o})]}),s.map(d=>u.jsx(_l,{property:d,category:a,onClassChange:o},d.fullClass))]})}return u.jsx(u.Fragment,{children:t.map(r=>u.jsx(_l,{property:r,category:a,onClassChange:o},r.fullClass))})}function G7({value:t,onCommit:a}){const[o,r]=g.useState(t),[c,s]=g.useState(!1),d=c?o:t;return u.jsx("input",{type:"text",value:d,onChange:h=>r(h.target.value),onFocus:()=>{r(t),s(!0)},onBlur:()=>{s(!1);const h=o.trim();h&&h!==t&&a(h)},onKeyDown:h=>{h.key==="Enter"&&h.target.blur()},className:"studio-select w-full font-mono",style:{fontSize:11}})}function _l({property:t,category:a,onClassChange:o}){const c=(()=>{switch(a){case"spacing":return lt;case"shape":return t.property==="borderRadius"?D7:["0","1","2","4","8"];case"typography":return t.property==="fontSize"?Ff:t.property==="fontWeight"?Jf:[];case"layout":return t.property==="display"?["flex","inline-flex","grid","block","inline-block","hidden"]:t.property==="alignItems"?["start","end","center","baseline","stretch"]:t.property==="justifyContent"?["start","end","center","between","around","evenly"]:t.property==="gridCols"?["1","2","3","4","5","6","none"]:[];case"size":return[];default:return[]}})();return Ls(t.value)?u.jsxs("div",{children:[u.jsx(Ol,{label:t.label,prefix:t.prefix}),u.jsx(G7,{value:V7(t.value),onCommit:d=>{const h=Ll(t.property,k7(d),t.prefix);o(t.fullClass,h)}})]}):u.jsxs("div",{children:[u.jsx(Ol,{label:t.label,prefix:t.prefix}),c.length>0?u.jsx(In,{value:t.value,onChange:d=>{const h=Ll(t.property,d,t.prefix);o(t.fullClass,h)},className:"studio-select w-full",options:[...c.includes(t.value)?[]:[{value:t.value}],...c.map(d=>({value:d}))]}):u.jsx("div",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.value})]})}function k0({tag:t,className:a,computedStyles:o,parentComputedStyles:r,onPreviewInlineStyle:c,onRevertInlineStyles:s,onCommitClass:d}){const h=Qr(),v=ed(),m=Y7(),y=(h==null?void 0:h.groups)||{},b=v==null?void 0:v.shadows,C=m==null?void 0:m.gradients,w=dj(t,a,o,r,y),j=[{key:"layout",label:"Layout"},{key:"size",label:"Size"},{key:"spacing",label:"Spacing"},{key:"typography",label:"Typography"},{key:"color",label:"Color"},{key:"border",label:"Border"},{key:"effects",label:"Effects"}].filter(R=>w[R.key].length>0);if(j.length===0)return u.jsx("div",{className:"text-[11px] px-4 py-3",style:{color:"var(--studio-text-dimmed)"},children:"No styles to display"});const M=o.display||"block";return u.jsx("div",{children:j.map(R=>u.jsx(eM,{category:R.key,label:R.label,properties:w[R.key],computedStyles:o,tokenGroups:y,shadows:b,gradients:C,displayValue:M,elementClassName:a,onPreviewInlineStyle:c,onRevertInlineStyles:s,onCommitClass:d},R.key))})}function eM({category:t,label:a,properties:o,computedStyles:r,tokenGroups:c,shadows:s,gradients:d,displayValue:h,elementClassName:v,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b}){const[C,w]=g.useState(!0),E=o.filter(R=>R.hasValue),j=o.filter(R=>!R.hasValue),M=E.length;return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:()=>w(!C),className:"studio-section-hdr",children:[C?u.jsx(_n,{}):u.jsx(Dt,{}),a,M>0&&u.jsx("span",{className:"count",children:M})]}),!C&&u.jsxs("div",{className:"flex flex-col gap-4 pb-4 px-4",children:[t==="layout"?u.jsx(aM,{properties:o,displayValue:h,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b}):t==="spacing"?u.jsx(rM,{properties:o,computedStyles:r,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b}):t==="border"?u.jsx(dM,{properties:o,computedStyles:r,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b}):t==="size"?u.jsx(oM,{properties:o,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b}):t==="typography"?u.jsx(fM,{properties:o,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b}):t==="effects"?u.jsx(pM,{properties:o,tokenGroups:c,shadows:s,gradients:d,elementClassName:v,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b}):E.map(R=>u.jsx(Jt,{prop:R,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b},R.cssProperty)),!["layout","spacing","border","size","typography","effects"].includes(t)&&j.length>0&&u.jsx(Os,{properties:j,tokenGroups:c,onPreviewInlineStyle:m,onRevertInlineStyles:y,onCommitClass:b})]})]})}const tM=[{value:"flex",icon:Wp,label:"Flex",tooltip:"Flex — arrange children in a row or column"},{value:"grid",icon:Gp,label:"Grid",tooltip:"Grid — arrange children in a 2D grid"},{value:"block",icon:Up,label:"Block",tooltip:"Block — stack vertically, full width"},{value:"none",icon:um,label:"None",tooltip:"Hidden — remove from layout"}],nM=[{value:"flex-start",icon:Zp,label:"Start",tooltip:"Start — align to start of cross axis"},{value:"center",icon:Dp,label:"Center",tooltip:"Center — center on cross axis"},{value:"flex-end",icon:Vp,label:"End",tooltip:"End — align to end of cross axis"},{value:"stretch",icon:ev,label:"Stretch",tooltip:"Stretch — fill cross axis"}],lM=[{value:"flex-start",icon:Bp,label:"Start",tooltip:"Start — pack to start of main axis"},{value:"center",icon:kp,label:"Center",tooltip:"Center — center on main axis"},{value:"flex-end",icon:$p,label:"End",tooltip:"End — pack to end of main axis"},{value:"space-between",icon:Oc,label:"Between",tooltip:"Between — equal space between items"}];function aM({properties:t,displayValue:a,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s}){const d=t.find(E=>E.cssProperty==="display"),h=t.find(E=>E.cssProperty==="align-items"),v=t.find(E=>E.cssProperty==="justify-content"),m=t.filter(E=>!["display","align-items","justify-content"].includes(E.cssProperty)&&E.hasValue&&!E.flexGridOnly),y=t.filter(E=>!["display","align-items","justify-content"].includes(E.cssProperty)&&E.hasValue&&E.flexGridOnly),b=t.filter(E=>!["display","align-items","justify-content"].includes(E.cssProperty)&&!E.hasValue&&E.flexGridOnly),C=a.includes("flex")||a.includes("grid"),w=(E,j)=>{r(E,j);const M=Rn(E,j);if(M){const R=t.find(N=>N.cssProperty===E),T=(R==null?void 0:R.fullClass)||void 0;s(M.tailwindClass,T)}};return u.jsxs(u.Fragment,{children:[d&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Display",inherited:d.inherited}),u.jsx(hn,{options:tM,value:d.computedValue,onChange:E=>w("display",E)})]}),C&&h&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Align Items",inherited:h.inherited}),u.jsx(hn,{options:nM,value:h.computedValue,onChange:E=>w("align-items",E)})]}),C&&v&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Justify",inherited:v.inherited}),u.jsx(hn,{options:lM,value:v.computedValue,onChange:E=>w("justify-content",E)})]}),C&&y.map(E=>u.jsx(Jt,{prop:E,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},E.cssProperty)),C&&b.length>0&&u.jsx(Os,{properties:b,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s}),m.map(E=>u.jsx(Jt,{prop:E,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},E.cssProperty))]})}function oM({properties:t,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}){const s=t.filter(m=>m.hasValue),d=s.find(m=>m.cssProperty==="width"),h=s.find(m=>m.cssProperty==="height"),v=s.filter(m=>m.cssProperty!=="width"&&m.cssProperty!=="height");return u.jsxs(u.Fragment,{children:[(d||h)&&u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[d&&u.jsx(Jt,{prop:d,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}),h&&u.jsx(Jt,{prop:h,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c})]}),v.map(m=>u.jsx(Jt,{prop:m,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c},m.cssProperty))]})}function rM({properties:t,computedStyles:a,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s}){const d=t.filter(y=>y.hasValue),h=d.filter(y=>y.cssProperty.startsWith("padding-")),v=d.filter(y=>y.cssProperty.startsWith("margin-")),m=t.filter(y=>!y.hasValue);return u.jsxs(u.Fragment,{children:[h.length>0&&u.jsx(Fc,{box:"padding",icon:oa,activeProps:h,allProperties:t,computedStyles:a,onPreviewInlineStyle:r,onCommitClass:s}),v.length>0&&u.jsx(Fc,{box:"margin",icon:io,activeProps:v,allProperties:t,computedStyles:a,onPreviewInlineStyle:r,onCommitClass:s}),m.length>0&&u.jsx(Os,{properties:m,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s})]})}const iM=[{value:"left",icon:wf,label:"Left",tooltip:"Left — align text to left"},{value:"center",icon:Tr,label:"Center",tooltip:"Center — center text"},{value:"right",icon:t4,label:"Right",tooltip:"Right — align text to right"},{value:"justify",icon:e4,label:"Justify",tooltip:"Justify — stretch to fill width"}],cM=[{value:"none",icon:n4,label:"None",tooltip:"None — no decoration"},{value:"underline",icon:a4,label:"Underline",tooltip:"Underline — line below text"},{value:"line-through",icon:nv,label:"Strikethrough",tooltip:"Strikethrough — line through text"}],sM=[{value:"none",icon:n4,label:"None",tooltip:"None — no transform"},{value:"uppercase",icon:Qp,label:"Uppercase",tooltip:"Uppercase — ALL CAPS"},{value:"lowercase",icon:Em,label:"Lowercase",tooltip:"Lowercase — all lowercase"},{value:"capitalize",icon:jm,label:"Capitalize",tooltip:"Capitalize — First Letter"}],uM=["sans","serif","mono"];function fM({properties:t,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}){const s=T=>t.find(N=>N.cssProperty===T),d=s("font-family"),h=s("font-size"),v=s("font-weight"),m=s("line-height"),y=s("letter-spacing"),b=s("text-align"),C=s("text-decoration"),w=s("text-transform"),E=(T,N)=>{o(T,N);const _=Rn(T,N);if(_){const k=s(T),U=(k==null?void 0:k.fullClass)||void 0;c(_.tailwindClass,U)}},j=["font-family","font-size","font-weight","line-height","letter-spacing","text-align","text-decoration","text-transform"],M=t.filter(T=>T.hasValue&&!j.includes(T.cssProperty)),R=t.filter(T=>!T.hasValue&&!j.includes(T.cssProperty));return u.jsxs(u.Fragment,{children:[d&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Font Family",inherited:d.inherited}),u.jsx(kt,{icon:qp,value:d.tailwindValue||d.computedValue,computedValue:d.computedValue,currentClass:d.fullClass,scale:uM,prefix:"font",cssProp:"font-family",onPreview:T=>o("font-family",T),onCommitClass:c})]}),(h||v)&&u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[h&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Size",inherited:h.inherited}),u.jsx(kt,{icon:Lc,value:h.tailwindValue||h.computedValue,computedValue:h.computedValue,currentClass:h.fullClass,scale:Ff,prefix:"text",cssProp:"font-size",onPreview:T=>o("font-size",T),onCommitClass:c})]}),v&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Weight",inherited:v.inherited}),u.jsx(kt,{icon:Pp,value:v.tailwindValue||v.computedValue,computedValue:v.computedValue,currentClass:v.fullClass,scale:Jf,prefix:"font",cssProp:"font-weight",onPreview:T=>o("font-weight",T),onCommitClass:c})]})]}),(m||y)&&u.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[m&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Leading",inherited:m.inherited}),u.jsx(kt,{icon:Fp,value:m.tailwindValue||m.computedValue,computedValue:m.computedValue,currentClass:m.fullClass,scale:B7,prefix:"leading",cssProp:"line-height",onPreview:T=>o("line-height",T),onCommitClass:c})]}),y&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Tracking",inherited:y.inherited}),u.jsx(kt,{icon:Kp,value:y.tailwindValue||y.computedValue,computedValue:y.computedValue,currentClass:y.fullClass,scale:$7,prefix:"tracking",cssProp:"letter-spacing",onPreview:T=>o("letter-spacing",T),onCommitClass:c})]})]}),b&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Text Align",inherited:b.inherited}),u.jsx(hn,{options:iM,value:b.computedValue,onChange:T=>E("text-align",T)})]}),C&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Decoration",inherited:C.inherited}),u.jsx(hn,{options:cM,value:C.computedValue,onChange:T=>E("text-decoration",T)})]}),w&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Transform",inherited:w.inherited}),u.jsx(hn,{options:sM,value:w.computedValue,onChange:T=>E("text-transform",T)})]}),M.map(T=>u.jsx(Jt,{prop:T,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c},T.cssProperty)),R.length>0&&u.jsx(Os,{properties:R,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c})]})}function dM({properties:t,computedStyles:a,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s}){var C,w,E,j;const d=t.filter(M=>M.hasValue),h=d.filter(M=>M.cssProperty.includes("radius")),v=d.filter(M=>M.cssProperty.includes("width")),m=d.filter(M=>!M.cssProperty.includes("radius")&&!M.cssProperty.includes("width")),y=hf(a,"border-radius"),b=hf(a,"border-width");return u.jsxs(u.Fragment,{children:[h.length>0&&u.jsxs(u.Fragment,{children:[u.jsx(Gc,{label:"Radius"}),y?u.jsx(kt,{icon:Yp,value:((C=h[0])==null?void 0:C.tailwindValue)||(y==="0px"||y==="0"?"—":y),computedValue:y||"0",currentClass:((w=h[0])==null?void 0:w.fullClass)||null,scale:D7,prefix:"rounded",cssProp:"border-radius",onPreview:M=>r("border-radius",M),onCommitClass:s}):u.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:h.map(M=>u.jsx(Jt,{prop:M,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},M.cssProperty))})]}),u.jsx(Gc,{label:"Width"}),b||v.length===0?u.jsx(kt,{icon:ro,value:((E=v[0])==null?void 0:E.tailwindValue)||(!b||b==="0px"||b==="0"?"—":b),computedValue:b||"0px",currentClass:((j=v[0])==null?void 0:j.fullClass)||null,scale:FS,prefix:"border",cssProp:"border-width",onPreview:M=>r("border-width",M),onCommitClass:(M,R)=>{s(M==="border-1"?"border":M,R)}}):v.map(M=>u.jsx(Jt,{prop:M,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},M.cssProperty)),m.map(M=>u.jsx(Jt,{prop:M,tokenGroups:o,onPreviewInlineStyle:r,onRevertInlineStyles:c,onCommitClass:s},M.cssProperty))]})}function pM({properties:t,tokenGroups:a,shadows:o,gradients:r,elementClassName:c,onPreviewInlineStyle:s,onRevertInlineStyles:d,onCommitClass:h}){const v=t.find(w=>w.cssProperty==="opacity"),m=t.find(w=>w.cssProperty==="box-shadow"),y=t.find(w=>w.cssProperty==="background-image"),b=t.find(w=>w.cssProperty==="transform"),C=t.filter(w=>!["opacity","box-shadow","background-image","transform"].includes(w.cssProperty)&&w.hasValue);return u.jsxs(u.Fragment,{children:[v&&u.jsxs("div",{children:[u.jsx(Qe,{label:v.label,inherited:v.inherited}),u.jsx(Wf,{value:v.computedValue,onPreview:w=>s("opacity",w),onCommitClass:h})]}),m&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Shadow",inherited:m.inherited}),u.jsx(pf,{prop:m,shadows:o,elementClassName:c,onPreviewInlineStyle:s,onCommitClass:h})]}),y&&y.hasValue&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Gradient",inherited:y.inherited}),u.jsx(Kc,{prop:y,gradients:r,elementClassName:c,onPreviewInlineStyle:s,onCommitClass:h})]}),!y&&r&&r.length>0&&u.jsxs("div",{children:[u.jsx(Qe,{label:"Gradient",inherited:!1}),u.jsx(Kc,{prop:null,gradients:r,elementClassName:c,onPreviewInlineStyle:s,onCommitClass:h})]}),b&&b.hasValue&&u.jsx(Jt,{prop:b,tokenGroups:a,onPreviewInlineStyle:s,onRevertInlineStyles:d,onCommitClass:h}),C.map(w=>u.jsx(Jt,{prop:w,tokenGroups:a,onPreviewInlineStyle:s,onRevertInlineStyles:d,onCommitClass:h},w.cssProperty))]})}function Os({properties:t,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}){const[s,d]=g.useState(new Set);return u.jsx(u.Fragment,{children:t.map(h=>s.has(h.cssProperty)?u.jsx(Jt,{prop:{...h,hasValue:!0},tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c},h.cssProperty):u.jsxs("button",{onClick:()=>d(v=>new Set(v).add(h.cssProperty)),className:"studio-addable-row",children:[u.jsx("span",{className:"studio-addable-label",children:h.label}),u.jsx(Wc,{style:{width:12,height:12,flexShrink:0}})]},h.cssProperty))})}function Jt({prop:t,tokenGroups:a,onPreviewInlineStyle:o,onRevertInlineStyles:r,onCommitClass:c}){if(t.controlType==="color")return u.jsx(df,{prop:t,tokenGroups:a,onPreviewInlineStyle:o,onCommitClass:c});if(t.controlType==="readonly"){const d=H0(t.cssProperty);return u.jsxs("div",{children:[u.jsx(Qe,{label:t.label,inherited:t.inherited}),u.jsxs("div",{className:"studio-scrub-input",children:[d&&u.jsx(ct,{content:t.cssProperty,side:"left",children:u.jsx("div",{className:"studio-scale-icon",children:u.jsx(d,{style:{width:12,height:12}})})}),u.jsx(ct,{content:t.computedValue,side:"bottom",children:u.jsx("div",{className:"studio-scrub-value",style:{color:"var(--studio-text)",cursor:"default"},children:t.computedValue})})]})]})}if(t.tokenMatch)return u.jsxs("div",{children:[u.jsx(Qe,{label:t.label,inherited:t.inherited}),u.jsx(Z7,{prop:t,onPreviewInlineStyle:o,onCommitClass:c})]});if(t.cssProperty==="opacity")return u.jsxs("div",{children:[u.jsx(Qe,{label:t.label,inherited:t.inherited}),u.jsx(Wf,{value:t.computedValue,onPreview:d=>o("opacity",d),onCommitClass:c})]});const s=IS[t.cssProperty];if(s){const h=!t.tailwindValue&&(t.computedValue==="0px"||t.computedValue==="0")?"—":t.tailwindValue||t.computedValue;return u.jsxs("div",{children:[u.jsx(Qe,{label:t.label,inherited:t.inherited}),u.jsx(kt,{icon:H0(t.cssProperty),value:h,computedValue:t.computedValue,currentClass:t.fullClass,scale:s.scale,prefix:s.prefix,cssProp:t.cssProperty,onPreview:v=>o(t.cssProperty,v),onCommitClass:c})]})}return t.controlType==="keyword"?u.jsxs("div",{children:[u.jsx(Qe,{label:t.label,inherited:t.inherited}),u.jsx(ff,{prop:t,onPreviewInlineStyle:o,onCommitClass:c})]}):u.jsxs("div",{children:[u.jsx(Qe,{label:t.label,inherited:t.inherited}),u.jsx(uo,{icon:H0(t.cssProperty),value:t.computedValue,tooltip:t.cssProperty,onPreview:d=>o(t.cssProperty,d),onCommit:d=>{const h=Rn(t.cssProperty,d);h&&c(h.tailwindClass)}})]})}function Tt({title:t,children:a}){return u.jsxs("div",{style:{marginBottom:24},children:[u.jsx("div",{style:{fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--studio-text-dimmed)",marginBottom:8,borderBottom:"1px solid var(--studio-border-subtle)",paddingBottom:4},children:t}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:a})]})}function Fe({label:t,children:a}){return u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[u.jsx("span",{style:{fontSize:9,color:"var(--studio-text-dimmed)",width:80,flexShrink:0,fontFamily:"'SF Mono', 'Fira Code', monospace"},children:t}),u.jsx("div",{style:{flex:1,minWidth:0},children:a})]})}function dt(t){return{cssProperty:"display",label:"Display",category:"layout",controlType:"keyword",source:"class",tailwindValue:null,fullClass:null,computedValue:"block",inherited:!1,tokenMatch:null,hasValue:!0,flexGridOnly:!1,...t}}function hM(){const[t,a]=g.useState("flex"),[o,r]=g.useState("sm"),[c,s]=g.useState("16px"),[d,h]=g.useState("1.5rem"),[v,m]=g.useState("left"),[y,b]=g.useState(50),[C,w]=g.useState(4),[E,j]=g.useState("rgb(59 130 246)"),[M,R]=g.useState("#8b5cf6"),[T,N]=g.useState("flex"),_=()=>{};return u.jsxs("div",{style:{padding:16,background:"var(--studio-surface)",color:"var(--studio-text)",fontFamily:"system-ui, sans-serif",maxWidth:340,overflow:"auto"},children:[u.jsx("div",{style:{fontSize:13,fontWeight:700,marginBottom:16,color:"var(--studio-text)"},children:"Controls Gallery"}),u.jsxs(Tt,{title:"Labels",children:[u.jsx(Qe,{label:"Font Size"}),u.jsx(Qe,{label:"Color",inherited:!0}),u.jsx(Gc,{label:"Padding"})]}),u.jsxs(Tt,{title:"StudioSelect",children:[u.jsx(Fe,{label:"flat options",children:u.jsx(In,{value:t,onChange:a,options:[{value:"block",label:"block"},{value:"flex",label:"flex"},{value:"grid",label:"grid"},{value:"inline",label:"inline"},{value:"none",label:"none"}]})}),u.jsx(Fe,{label:"grouped",children:u.jsx(In,{value:o,onChange:r,groups:[{label:"Small",options:[{value:"xs",label:"xs"},{value:"sm",label:"sm"}]},{label:"Large",options:[{value:"lg",label:"lg"},{value:"xl",label:"xl"},{value:"2xl",label:"2xl"}]}]})})]}),u.jsxs(Tt,{title:"ScrubInput",children:[u.jsx(Fe,{label:"with icon",children:u.jsx(uo,{icon:Mc,value:c,tooltip:"Width",onCommit:s})}),u.jsx(Fe,{label:"rem value",children:u.jsx(uo,{icon:Lc,value:d,tooltip:"Font size",onCommit:h})}),u.jsx(Fe,{label:"label only",children:u.jsx(uo,{label:"H",value:"200px",onCommit:_})})]}),u.jsxs(Tt,{title:"ScaleInput",children:[u.jsx(Fe,{label:"spacing",children:u.jsx(kt,{icon:oa,value:"4",computedValue:"16px",currentClass:"p-4",scale:["0","0.5","1","1.5","2","2.5","3","3.5","4","5","6","8","10","12"],prefix:"p",cssProp:"padding",onCommitClass:_})}),u.jsx(Fe,{label:"font size",children:u.jsx(kt,{icon:Lc,value:"lg",computedValue:"18px",currentClass:"text-lg",scale:["xs","sm","base","lg","xl","2xl","3xl"],prefix:"text",cssProp:"font-size",onCommitClass:_})})]}),u.jsxs(Tt,{title:"SegmentedIcons",children:[u.jsx(Fe,{label:"icons",children:u.jsx(hn,{value:v,onChange:m,options:[{value:"left",icon:wf,tooltip:"Left"},{value:"center",icon:Tr,tooltip:"Center"},{value:"right",icon:t4,tooltip:"Right"},{value:"justify",icon:e4,tooltip:"Justify"}]})}),u.jsx(Fe,{label:"labels",children:u.jsx(hn,{value:"auto",onChange:_,options:[{value:"auto",label:"auto"},{value:"fixed",label:"fixed"},{value:"scroll",label:"scroll"}]})})]}),u.jsxs(Tt,{title:"SliderInput",children:[u.jsx(Fe,{label:"with icon",children:u.jsx(J0,{icon:Cf,tooltip:"Opacity",value:y,min:0,max:100,unit:"%",onChange:b})}),u.jsx(Fe,{label:"no icon",children:u.jsx(J0,{value:C,min:0,max:50,unit:"px",onChange:w})})]}),u.jsx(Tt,{title:"OpacitySlider",children:u.jsx(Fe,{label:"opacity",children:u.jsx(Wf,{value:"0.75",onPreview:_,onCommitClass:_})})}),u.jsxs(Tt,{title:"KeywordControl",children:[u.jsx(Fe,{label:"display",children:u.jsx(ff,{prop:dt({cssProperty:"display",computedValue:T,controlType:"keyword"}),onPreviewInlineStyle:(k,U)=>N(U),onCommitClass:_})}),u.jsx(Fe,{label:"position",children:u.jsx(ff,{prop:dt({cssProperty:"position",computedValue:"relative",controlType:"keyword"}),onPreviewInlineStyle:_,onCommitClass:_})})]}),u.jsxs(Tt,{title:"ColorPicker",children:[u.jsx(Fe,{label:"labeled",children:u.jsx(qc,{color:E,onChange:j})}),u.jsx(Fe,{label:"swatch",children:u.jsx(qc,{variant:"swatch",color:M,onChange:R})})]}),u.jsxs(Tt,{title:"TokenColorRow",children:[u.jsx(Vr,{token:{name:"--primary",lightValue:"oklch(0.637 0.237 25.331)",darkValue:"oklch(0.637 0.237 25.331)"},theme:"dark",onPreview:_,onClearPreview:_,cssFilePath:"/app/globals.css",allTokens:[{name:"--primary",lightValue:"oklch(0.637 0.237 25.331)"},{name:"--primary-foreground",lightValue:"oklch(0.982 0.016 73.684)"}]}),u.jsx(Vr,{token:{name:"--accent",lightValue:"oklch(0.551 0.135 264.695)"},theme:"light",onPreview:_,onClearPreview:_,cssFilePath:"/app/globals.css",allTokens:[]})]}),u.jsxs(Tt,{title:"ColorControl",children:[u.jsx(Fe,{label:"with token",children:u.jsx(df,{prop:dt({cssProperty:"color",label:"Color",computedValue:"rgb(59 130 246)",controlType:"color",tokenMatch:{tokenName:"primary",tokenVar:"--primary",category:"color",groupTokens:[{name:"primary",value:"oklch(0.637 0.237 25.331)"},{name:"secondary",value:"oklch(0.551 0.135 264.695)"},{name:"accent",value:"oklch(0.7 0.17 142)"}]}}),tokenGroups:{base:[{name:"--primary",category:"color",lightValue:"oklch(0.637 0.237 25.331)"},{name:"--secondary",category:"color",lightValue:"oklch(0.551 0.135 264.695)"},{name:"--accent",category:"color",lightValue:"oklch(0.7 0.17 142)"}]},onPreviewInlineStyle:_,onCommitClass:_})}),u.jsx(Fe,{label:"no token",children:u.jsx(df,{prop:dt({cssProperty:"background-color",label:"Background",computedValue:"#8b5cf6",controlType:"color",tokenMatch:null}),tokenGroups:{base:[{name:"--primary",category:"color",lightValue:"oklch(0.637 0.237 25.331)"}]},onPreviewInlineStyle:_,onCommitClass:_})})]}),u.jsx(Tt,{title:"TokenPickerControl",children:u.jsx(Fe,{label:"spacing token",children:u.jsx(Z7,{prop:dt({cssProperty:"padding",label:"Padding",computedValue:"16px",tokenMatch:{tokenName:"spacing-4",tokenVar:"--spacing-4",category:"spacing",groupTokens:[{name:"spacing-1",value:"0.25rem"},{name:"spacing-2",value:"0.5rem"},{name:"spacing-4",value:"1rem"},{name:"spacing-8",value:"2rem"}]}}),onPreviewInlineStyle:_,onCommitClass:_})})}),u.jsxs(Tt,{title:"ShadowPicker",children:[u.jsx(Fe,{label:"scale value",children:u.jsx(pf,{prop:dt({cssProperty:"box-shadow",label:"Box Shadow",computedValue:"0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1)",tailwindValue:"md",fullClass:"shadow-md",controlType:"text"}),shadows:[{name:"drop-glow",value:"0 0 12px rgba(59,130,246,0.5)",cssVariable:"--shadow-glow"}],elementClassName:"shadow-md rounded-lg",onPreviewInlineStyle:_,onCommitClass:_})}),u.jsx(Fe,{label:"none",children:u.jsx(pf,{prop:dt({cssProperty:"box-shadow",label:"Box Shadow",computedValue:"none",tailwindValue:null,fullClass:null,controlType:"text"}),elementClassName:"",onPreviewInlineStyle:_,onCommitClass:_})})]}),u.jsxs(Tt,{title:"GradientPicker",children:[u.jsx(Fe,{label:"with gradient",children:u.jsx(Kc,{prop:dt({cssProperty:"background-image",label:"Gradient",computedValue:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",controlType:"text"}),gradients:[{name:"hero-gradient",value:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",cssVariable:"--gradient-hero"},{name:"sunset",value:"linear-gradient(to right, #f12711, #f5af19)",cssVariable:"--gradient-sunset"}],elementClassName:"bg-[image:var(--gradient-hero)]",onPreviewInlineStyle:_,onCommitClass:_})}),u.jsx(Fe,{label:"none",children:u.jsx(Kc,{prop:null,gradients:[{name:"hero-gradient",value:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",cssVariable:"--gradient-hero"}],elementClassName:"",onPreviewInlineStyle:_,onCommitClass:_})})]}),u.jsxs(Tt,{title:"BoxSpacingControl",children:[u.jsx(Fc,{box:"padding",icon:oa,activeProps:[dt({cssProperty:"padding",computedValue:"16px",tailwindValue:"4",fullClass:"p-4"})],allProperties:[dt({cssProperty:"padding-top",computedValue:"16px",tailwindValue:"4"}),dt({cssProperty:"padding-right",computedValue:"16px",tailwindValue:"4"}),dt({cssProperty:"padding-bottom",computedValue:"16px",tailwindValue:"4"}),dt({cssProperty:"padding-left",computedValue:"16px",tailwindValue:"4"})],computedStyles:{"padding-top":"16px","padding-right":"16px","padding-bottom":"16px","padding-left":"16px"},onPreviewInlineStyle:_,onCommitClass:_}),u.jsx("div",{style:{height:8}}),u.jsx(Fc,{box:"margin",icon:io,activeProps:[dt({cssProperty:"margin-top",computedValue:"8px",tailwindValue:"2"}),dt({cssProperty:"margin-bottom",computedValue:"24px",tailwindValue:"6"})],allProperties:[dt({cssProperty:"margin-top",computedValue:"8px",tailwindValue:"2"}),dt({cssProperty:"margin-right",computedValue:"0px"}),dt({cssProperty:"margin-bottom",computedValue:"24px",tailwindValue:"6"}),dt({cssProperty:"margin-left",computedValue:"0px"})],computedStyles:{"margin-top":"8px","margin-right":"0px","margin-bottom":"24px","margin-left":"0px"},onPreviewInlineStyle:_,onCommitClass:_})]})]})}function gM(t,a,o){const r=new URLSearchParams({file:t});a!=null&&r.set("line",String(a)),o!=null&&r.set("col",String(o)),fetch(`/api/open-file?${r}`).catch(console.error)}function mM({element:t,theme:a,iframePath:o,onPreviewToken:r,onClearTokenPreview:c,onPreviewShadow:s,onPreviewInlineStyle:d,onRevertInlineStyles:h,onClose:v,onReselectElement:m,onToggleUsagePanel:y,onIsolate:b}){var ae,pe,O,X,J,ee,se;const C=Qr(),w=If(),E=((ae=t==null?void 0:t.attributes)==null?void 0:ae["data-slot"])||null,j=!!E,M=E?(w==null?void 0:w.byDataSlot.get(E))??null:null,R=j?["token","component","instance"]:["token","instance"],[T,N]=g.useState("token");g.useEffect(()=>{t&&N(j?"component":"instance")},[(pe=t==null?void 0:t.source)==null?void 0:pe.file,(O=t==null?void 0:t.source)==null?void 0:O.line,(X=t==null?void 0:t.source)==null?void 0:X.col]);const[_,k]=g.useState("props"),[U,z]=g.useState("props"),[W,te]=g.useState(!1),ue=g.useRef(Promise.resolve()),oe=t?j?(M==null?void 0:M.name)||E:`<${t.tag}>`:null,ie=SM((t==null?void 0:t.className)||"",C),[ge,fe]=g.useState(null),[xe,H]=g.useState(0);g.useEffect(()=>{if(!j||!(t!=null&&t.instanceSource)||!(t!=null&&t.componentName)){fe(null);return}const I=t.instanceSource,Q=new URLSearchParams({file:I.file,line:String(I.line),componentName:t.componentName});I.col!=null&&Q.set("col",String(I.col)),fetch(`/api/write-element/instance-props?${Q}`).then(de=>de.json()).then(de=>fe(de.props??null)).catch(()=>fe(null))},[(J=t==null?void 0:t.instanceSource)==null?void 0:J.file,(ee=t==null?void 0:t.instanceSource)==null?void 0:ee.line,(se=t==null?void 0:t.instanceSource)==null?void 0:se.col,t==null?void 0:t.componentName,j,xe]);const D=async I=>{const Q=ue.current.then(async()=>{te(!0);try{await I(),setTimeout(()=>{m(),h()},500)}catch(de){console.error("Write error:",de)}finally{setTimeout(()=>te(!1),1200)}});return ue.current=Q,Q},K={token:{icon:oo,label:"Tokens"},component:{icon:Lr,label:"Component"},instance:{icon:j?Xp:D0,label:j?"Instance":"Element"}};return u.jsxs("div",{className:"flex flex-col border-l studio-scrollbar overflow-y-auto",style:{width:350,minWidth:350,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:[t&&u.jsxs("div",{className:"border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[u.jsxs("div",{className:"flex items-center gap-2 px-4 pt-3 pb-1",children:[u.jsx("div",{className:"w-5 h-5 rounded flex items-center justify-center shrink-0",style:{background:"var(--studio-accent-muted)"},children:j?u.jsx(Lr,{style:{width:12,height:12,color:"var(--studio-accent)"}}):u.jsx(D0,{style:{width:12,height:12,color:"var(--studio-accent)"}})}),u.jsx("span",{className:"text-[12px] font-semibold truncate flex-1 min-w-0",style:{color:"var(--studio-text)"},children:oe}),W&&u.jsxs("span",{className:"flex items-center gap-0.5 text-[10px] shrink-0",style:{color:"var(--studio-success)"},children:[u.jsx(ia,{style:{width:10,height:10}}),"Saved"]}),u.jsxs("div",{className:"flex items-center shrink-0",style:{gap:2},children:[j&&y&&u.jsx(ct,{content:"View usage across pages",children:u.jsx("button",{onClick:y,className:"studio-icon-btn",style:{width:24,height:24},children:u.jsx(Er,{})})}),j&&b&&M&&u.jsx(ct,{content:"Isolate component",children:u.jsx("button",{onClick:()=>b(M),className:"studio-icon-btn",style:{width:24,height:24},children:u.jsx(pv,{})})}),j&&t.instanceSource&&t.componentName&&u.jsx(ct,{content:"Reset instance overrides",children:u.jsx("button",{onClick:()=>{!t.instanceSource||!t.componentName||D(async()=>{await wM(t.instanceSource,t.componentName)})},className:"studio-icon-btn",style:{width:24,height:24},children:u.jsx(Um,{})})}),u.jsx("button",{onClick:v,className:"studio-icon-btn",style:{width:24,height:24},children:u.jsx(bf,{})})]})]}),t.source&&u.jsx("div",{className:"px-4 pb-2.5 pt-0.5",children:u.jsxs("button",{onClick:()=>gM(t.source.file,t.source.line,t.source.col),className:"text-[10px] font-mono truncate block text-left w-full",style:{color:"var(--studio-text-dimmed)",background:"none",border:"none",padding:0,cursor:"pointer"},onMouseEnter:I=>I.currentTarget.style.textDecoration="underline",onMouseLeave:I=>I.currentTarget.style.textDecoration="none",title:"Open in editor",children:[t.source.file,":",t.source.line,":",t.source.col]})})]}),!t&&typeof window<"u"&&new URLSearchParams(window.location.search).has("gallery")?u.jsx("div",{className:"flex-1 overflow-y-auto studio-scrollbar",children:u.jsx(hM,{})}):t?null:u.jsx(xM,{}),t&&u.jsx("div",{className:"px-4 py-2.5 shrink-0",style:{borderColor:"var(--studio-border)"},children:u.jsx("div",{className:"studio-segmented",style:{width:"100%"},children:R.map(I=>{const Q=K[I];return u.jsxs("button",{onClick:()=>N(I),className:T===I?"active":"",style:{flex:1},children:[u.jsx(Q.icon,{style:{width:12,height:12}}),Q.label]},I)})})}),u.jsxs("div",{className:"flex-1 overflow-y-auto studio-scrollbar",children:[!t&&u.jsxs("div",{children:[u.jsxs("div",{className:"px-4 pt-3 pb-3",children:[u.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wide mb-1",style:{color:"var(--studio-text-muted)"},children:"Design Tokens"}),u.jsx("p",{className:"text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Global design tokens defined in your project. Edit values here to update every usage at once."})]}),u.jsx(Mp,{tokenRefs:ie,theme:a,onPreviewToken:r,onClearTokenPreview:c,onPreviewShadow:s})]}),T==="token"&&t&&u.jsx(Mp,{tokenRefs:ie,theme:a,onPreviewToken:r,onClearTokenPreview:c,onPreviewShadow:s}),T==="component"&&t&&j&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"px-4 py-2 border-t",style:{borderColor:"var(--studio-border)"},children:u.jsxs("div",{className:"studio-segmented",style:{width:"100%"},children:[u.jsx("button",{onClick:()=>k("props"),className:_==="props"?"active":"",style:{flex:1},children:"Props"}),u.jsx("button",{onClick:()=>k("styles"),className:_==="styles"?"active":"",style:{flex:1},children:"Styles"})]})}),_==="styles"&&u.jsx("div",{className:"",children:u.jsx(k0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:d,onRevertInlineStyles:h,onCommitClass:(I,Q)=>{if(Q&&I===Q)return;if(M&&M.variants.length>0){if(Q)D(async()=>{await Tp(M.filePath,Q,I)});else if(t.source){const ye=t.source;D(async()=>{await Sr(ye,"addClass",I)})}}else if(t.source){const ye=t.source;D(Q?async()=>{await Sr(ye,"replaceClass",I,Q)}:async()=>{await Sr(ye,"addClass",I)})}}})}),_==="props"&&M&&M.variants.length>0&&u.jsx("div",{className:"",children:M.variants.map(I=>u.jsx(vM,{dim:I,componentEntry:M,onClassChange:(Q,de,ye)=>{D(async()=>{await Tp(M.filePath,Q,de,ye)})}},I.name))}),_==="props"&&(!M||M.variants.length===0)&&u.jsx("div",{className:"px-4 py-3",children:u.jsx(Wb,{children:'This component has no predefined style props. Edit its styles directly in the "Styles" tab.'})})]}),T==="instance"&&!t&&u.jsx("div",{className:"px-4 py-8 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:"Select an element in the preview to edit its styles."}),T==="instance"&&t&&u.jsx(u.Fragment,{children:j&&M&&M.variants.length>0?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"px-4 py-2 border-t",style:{borderColor:"var(--studio-border)"},children:u.jsxs("div",{className:"studio-segmented",style:{width:"100%"},children:[u.jsx("button",{onClick:()=>z("props"),className:U==="props"?"active":"",style:{flex:1},children:"Props"}),u.jsx("button",{onClick:()=>z("styles"),className:U==="styles"?"active":"",style:{flex:1},children:"Styles"})]})}),U==="props"&&u.jsx("div",{className:"",children:M.variants.map(I=>u.jsx(yM,{dim:I,currentValue:(ge==null?void 0:ge[I.name])??I.default??null,onSelect:Q=>{!t.instanceSource||!t.componentName||D(async()=>{await CM(t.instanceSource,t.componentName,I.name,Q),H(de=>de+1)})}},I.name))}),U==="styles"&&u.jsx("div",{className:"",children:u.jsx(k0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:d,onRevertInlineStyles:h,onCommitClass:(I,Q)=>{Q&&I===Q||t.instanceSource&&t.componentName&&D(async()=>{await bM(t.instanceSource,t.componentName,I,Q||void 0)})}})})]}):u.jsx("div",{className:"",children:u.jsx(k0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:d,onRevertInlineStyles:h,onCommitClass:(I,Q)=>{if(!(Q&&I===Q)&&t.source){const de=t.source;D(Q?async()=>{await Sr(de,"replaceClass",I,Q)}:async()=>{await Sr(de,"addClass",I)})}}})})})]})]})}function vM({dim:t,componentEntry:a,onClassChange:o}){const r=Qr(),[c,s]=g.useState(!0),[d,h]=g.useState(new Set),v=m=>{const y=new Set(d);y.has(m)?y.delete(m):y.add(m),h(y)};return u.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsxs("button",{onClick:()=>s(!c),className:"studio-section-hdr",children:[c?u.jsx(_n,{}):u.jsx(Dt,{}),t.name,u.jsx("span",{className:"count",children:t.options.length})]}),!c&&u.jsx("div",{className:"studio-tree",children:t.options.map(m=>u.jsxs("div",{className:"studio-tree-node",children:[u.jsxs("button",{onClick:()=>v(m),className:"studio-section-hdr",style:{fontSize:10},children:[d.has(m)?u.jsx(Dt,{}):u.jsx(_n,{}),u.jsx("span",{style:{color:"var(--studio-text)",fontWeight:600},children:m}),m===t.default&&u.jsx("span",{className:"text-[9px] font-normal",style:{color:"var(--studio-text-dimmed)"},children:"default"})]}),d.has(m)&&t.classes[m]&&u.jsx("div",{className:"studio-tree-content",children:u.jsx(Xj,{classes:t.classes[m],onClassChange:(y,b)=>{o(y,b,m)},tokenGroups:(r==null?void 0:r.groups)||{},flat:!0})})]},m))})]})}function xM(){const t="var(--studio-accent)",o=({style:r})=>u.jsx("div",{className:"absolute",style:{width:8,height:8,background:t,border:`1.5px solid ${t}`,borderRadius:1,opacity:.8,...r}});return u.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-8",style:{borderBottom:"1px solid var(--studio-border)"},children:[u.jsxs("div",{className:"relative",style:{width:190,height:88},children:[u.jsx("div",{className:"absolute inset-0",style:{border:`1.5px solid ${t}`,background:"color-mix(in srgb, var(--studio-accent) 10%, transparent)"}}),u.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:u.jsx("span",{className:"text-[12px] text-center select-none leading-snug",style:{color:"var(--studio-text-muted)",opacity:1},children:"Select an element to edit"})}),u.jsx(o,{style:{top:-3.2,left:-3.2}}),u.jsx(o,{style:{top:-3.2,right:-3.2}}),u.jsx(o,{style:{bottom:-3.2,left:-3.2}}),u.jsx(o,{style:{bottom:-3.2,right:-3.2}}),u.jsx("div",{className:"absolute",style:{bottom:10,right:10,color:t,opacity:.8,animation:"cursor-drift 3s ease-in-out infinite"},children:u.jsx("svg",{width:"22",height:"22",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2 2L2 10.5L4.5 8L6.5 12L8 11.5L6 7.5L9.5 7L2 2Z",fill:"currentColor"})})})]}),u.jsx("style",{children:`
158
+ @keyframes cursor-drift {
159
+ 0%, 100% { transform: translate(0, 0); }
160
+ 40% { transform: translate(4px, 3px); }
161
+ 70% { transform: translate(-2px, 4px); }
162
+ }
163
+ `})]})}function yM({dim:t,currentValue:a,onSelect:o}){return u.jsxs("div",{className:"px-4 py-2",style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[u.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wide mb-2",style:{color:"var(--studio-text-muted)"},children:t.name}),u.jsx("div",{className:"studio-segmented wrap",style:{width:"100%"},children:t.options.map(r=>{const c=a===r||!a&&r===t.default;return u.jsx("button",{onClick:()=>o(r),className:c?"active":"",style:{flex:1},children:r},r)})})]})}async function Sr(t,a,o,r){try{const s=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:t,type:a,newClass:o,oldClass:r||void 0})})).json();s.ok||console.error("Element write failed:",s.error)}catch(c){console.error("Element write error:",c)}}async function bM(t,a,o,r){try{const s=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"instanceOverride",source:t,componentName:a,newClass:o,oldClass:r||void 0})})).json();s.ok||console.error("Instance override failed:",s.error)}catch(c){console.error("Instance override error:",c)}}async function CM(t,a,o,r){try{const s=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"prop",source:t,componentName:a,propName:o,propValue:r})})).json();s.ok||console.error("Prop write failed:",s.error)}catch(c){console.error("Prop write error:",c)}}async function wM(t,a){try{const r=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"resetInstanceClassName",source:t,componentName:a})})).json();r.ok||console.error("Reset instance className failed:",r.error)}catch(o){console.error("Reset instance className error:",o)}}async function Tp(t,a,o,r){try{const s=await(await fetch("/api/component",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:t,oldClass:a,newClass:o,variantContext:r})})).json();s.ok||console.error("Component write failed:",s.error)}catch(c){console.error("Component write error:",c)}}function SM(t,a){if(!a||!t)return[];const o=new Set,r=t.split(/\s+/);for(const c of r){const s=c.match(/(?:bg|text|border|ring|outline|shadow)-([a-z][\w-]*)/);if(s){const h=`--${s[1].split("/")[0]}`;a.byName.has(h)&&o.add(h)}}return Array.from(o)}function jM(){const t=Nj(),a=X7(),o=Qr(),r=ed(),c=If(),[s,d]=g.useState(0),[h,v]=g.useState(0),[m,y]=g.useState([]),[b,C]=g.useState(!1),w=[{label:"Detecting framework",duration:130},{label:"Detecting styling system",duration:323},{label:"Parsing components with AST",duration:365},{label:"Scanning design tokens",duration:235},{label:"Instrumenting JSX source locations",duration:562}];function E(M){var R,T,N,_;switch(M){case 0:return t!=null&&t.name?`→ ${t.name}`:"→ Next.js + React";case 1:{const k=(a==null?void 0:a.type)||"tailwind-v4";return`→ ${{"tailwind-v4":"Tailwind CSS v4","tailwind-v3":"Tailwind CSS v3",bootstrap:"Bootstrap 5","css-variables":"CSS Custom Properties","plain-css":"Plain CSS"}[k]||k}`}case 2:{const k=((R=c==null?void 0:c.components)==null?void 0:R.length)??0,U=((T=c==null?void 0:c.components)==null?void 0:T.reduce((z,W)=>{var te;return z+(((te=W.variants)==null?void 0:te.length)??0)},0))??0;return`→ ${k} component${k!==1?"s":""}, ${U} variant prop${U!==1?"s":""} extracted`}case 3:{const k=((N=o==null?void 0:o.tokens)==null?void 0:N.length)??0,U=((_=r==null?void 0:r.shadows)==null?void 0:_.length)??0,z=k+U,W=o!=null&&o.groups?Object.keys(o.groups).length:0;return`→ ${z} token${z!==1?"s":""} across ${W} group${W!==1?"s":""}`}case 4:return"→ Babel transform · file:line:col mapped to JSX";default:return""}}g.useEffect(()=>{if(b||s>=w.length)return;const M=w[s],R=50,T=Math.ceil(M.duration/R);let N=0;const _=setInterval(()=>{if(N++,v(Math.min(N/T,1)),N>=T){clearInterval(_);const k=E(s);y(U=>[...U,{label:M.label,detail:k,elapsed:M.duration}]),v(0),s+1>=w.length?C(!0):d(U=>U+1)}},R);return()=>clearInterval(_)},[s,b,t,a,o,r,c]);const j=!b&&s<w.length?w[s]:null;return{completedSteps:m,activeStep:j,stepProgress:h,done:b,totalSteps:w.length}}const Rp=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"];function MM(){const[t,a]=g.useState(0);return g.useEffect(()=>{const o=setInterval(()=>a(r=>(r+1)%Rp.length),80);return()=>clearInterval(o)},[]),u.jsx("span",{style:{color:"var(--studio-accent)"},children:Rp[t]})}function EM({progress:t,width:a=24}){const o=Math.round(t*a),r=a-o;return u.jsxs("span",{style:{color:"var(--studio-text-dimmed)"},children:["[",u.jsx("span",{style:{color:"var(--studio-accent)"},children:"█".repeat(o)}),u.jsx("span",{style:{opacity:.3},children:"░".repeat(r)}),"]"]})}const TM=[" _ __ "," ___ ___ __| | ___ ___ _ _ _ __ / _| __ _ ___ ___ "," / __/ _ \\ / _` |/ _ \\ / __| | | | '__| |_ / _` |/ __/ _ \\"," | (_| (_) | (_| | __/ \\__ \\ |_| | | | _| (_| | (_| __/"," \\___\\___/ \\__,_|\\___| |___/\\__,_|_| |_| \\__,_|\\___\\___|"].join(`
164
+ `);function RM({onContinue:t}){const{completedSteps:a,activeStep:o,stepProgress:r,done:c}=jM(),[s,d]=g.useState(!0);g.useEffect(()=>{const v=setInterval(()=>d(m=>!m),530);return()=>clearInterval(v)},[]);const h=g.useCallback(v=>{c&&(v.key==="Enter"||v.key===" ")&&t()},[c,t]);return g.useEffect(()=>(window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)),[h]),u.jsxs("div",{style:{position:"fixed",inset:0,zIndex:9999,background:"var(--studio-bg)",color:"var(--studio-text)",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:13,lineHeight:1.7,WebkitFontSmoothing:"antialiased"},children:[u.jsx("div",{style:{position:"absolute",inset:0,background:"repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px)",pointerEvents:"none"}}),u.jsxs("div",{style:{position:"relative",border:"1px solid var(--studio-border)",borderRadius:8,background:"var(--studio-surface)",padding:"32px 40px",width:560,height:500,display:"flex",flexDirection:"column",boxShadow:"0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03)"},children:[u.jsx("pre",{style:{color:"var(--studio-accent)",fontSize:11,lineHeight:1.3,textAlign:"center",margin:"0 0 8px 0",userSelect:"none"},children:TM}),u.jsx("div",{style:{textAlign:"center",fontSize:10,color:"var(--studio-text-dimmed)",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:24},children:"code-first design layer · v0.1.0"}),u.jsx("div",{style:{borderTop:"1px solid var(--studio-border-subtle)",margin:"0 -40px 20px -40px"}}),u.jsxs("div",{style:{flex:1,minHeight:0},children:[a.map((v,m)=>u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"baseline"},children:[u.jsx("span",{style:{color:"var(--studio-success)",flexShrink:0},children:"✓"}),u.jsx("span",{style:{color:"var(--studio-text-muted)"},children:v.label}),u.jsxs("span",{style:{marginLeft:"auto",color:"var(--studio-text-dimmed)",fontSize:10,flexShrink:0},children:[v.elapsed,"ms"]})]}),v.detail&&u.jsx("div",{style:{color:"var(--studio-text-dimmed)",fontSize:11,paddingLeft:22,marginTop:-2,opacity:.7},children:v.detail})]},m)),o&&u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"baseline"},children:[u.jsx(MM,{}),u.jsx("span",{children:o.label}),u.jsx("span",{style:{marginLeft:"auto",flexShrink:0},children:u.jsx(EM,{progress:r,width:16})})]})]}),u.jsx("div",{style:{borderTop:"1px solid var(--studio-border-subtle)",margin:"20px -40px 30px -40px"}}),u.jsx("div",{style:{textAlign:"center"},children:c?u.jsxs("button",{onClick:t,style:{background:"var(--studio-accent)",color:"#fff",border:"none",borderRadius:6,padding:"8px 28px",fontFamily:"inherit",fontSize:12,fontWeight:500,cursor:"pointer",letterSpacing:"0.02em",transition:"background 0.15s"},onMouseOver:v=>v.currentTarget.style.background="var(--studio-accent-hover)",onMouseOut:v=>v.currentTarget.style.background="var(--studio-accent)",children:["Open Editor"," ",u.jsx("span",{style:{opacity:.6,fontSize:11},children:"↵"})]}):u.jsxs("span",{style:{color:"var(--studio-text-dimmed)",fontSize:11},children:["scanning project",u.jsx("span",{style:{opacity:s?1:0},children:"▌"})]})})]})]})}function _M({componentName:t,currentPath:a,onNavigate:o,onClose:r}){const c=_j();if(!t)return null;const s=(c==null?void 0:c.usages[t])||[];if(s.length===0)return u.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[u.jsx(_p,{componentName:t,count:0,onClose:r}),u.jsx("div",{className:"px-4 py-6 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:"No page usages found for this component."})]});const d=OM(s);return u.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[u.jsx(_p,{componentName:t,count:s.length,onClose:r}),u.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden studio-scrollbar py-1",children:u.jsx(NM,{node:d,currentPath:a,onNavigate:o,depth:0})})]})}function _p({componentName:t,count:a,onClose:o}){return u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[u.jsxs("span",{className:"text-[10px] font-semibold uppercase tracking-wide flex-1 truncate",style:{color:"var(--studio-text-muted)"},children:["Pages using ",t]}),a>0&&u.jsx("span",{className:"text-[9px] font-medium px-1.5 py-0.5 rounded shrink-0",style:{color:"var(--studio-accent)",background:"var(--studio-accent-muted)"},children:a}),u.jsx("button",{onClick:o,className:"studio-icon-btn",style:{width:20,height:20},children:u.jsx(bf,{})})]})}function NM({node:t,currentPath:a,onNavigate:o,depth:r}){if(r===0){const c=t.fullRoute!==null;return u.jsxs(u.Fragment,{children:[c&&u.jsx(gf,{route:"/",label:"/",file:t.file,isActive:a==="/",isDynamic:!1,onNavigate:o,depth:0}),Array.from(t.children.entries()).sort(([s],[d])=>s.localeCompare(d)).map(([s,d])=>u.jsx(Q7,{node:d,currentPath:a,onNavigate:o,depth:0},s))]})}return null}function Q7({node:t,currentPath:a,onNavigate:o,depth:r}){const[c,s]=g.useState(!0),d=t.children.size>0,h=t.fullRoute!==null,v=h&&a===t.fullRoute;return h&&!d?u.jsx(gf,{route:t.fullRoute,label:t.segment,file:t.file,isActive:v,isDynamic:t.isDynamic,onNavigate:o,depth:r}):u.jsxs("div",{children:[h?u.jsx(gf,{route:t.fullRoute,label:t.segment,file:t.file,isActive:v,isDynamic:t.isDynamic,onNavigate:o,depth:r,hasChildren:d,expanded:c,onToggle:()=>s(!c)}):u.jsxs("div",{className:"flex items-center gap-1 w-full text-left",style:{padding:`4px 8px 4px ${8+r*12}px`,fontSize:11,color:"var(--studio-text-dimmed)",background:"none",border:"none",cursor:"pointer",transition:"color 0.1s"},onMouseEnter:m=>{m.currentTarget.style.color="var(--studio-text)"},onMouseLeave:m=>{m.currentTarget.style.color="var(--studio-text-dimmed)"},children:[d&&u.jsx("span",{onClick:m=>{m.stopPropagation(),s(!c)},style:{display:"inline-flex",flexShrink:0,cursor:"pointer"},children:c?u.jsx(Dt,{style:{width:10,height:10}}):u.jsx(_n,{style:{width:10,height:10}})}),u.jsxs("span",{onClick:()=>o(t.path),style:{cursor:"pointer"},children:[t.segment,"/"]})]}),c&&Array.from(t.children.entries()).sort(([m],[y])=>m.localeCompare(y)).map(([m,y])=>u.jsx(Q7,{node:y,currentPath:a,onNavigate:o,depth:r+1},m))]})}function gf({route:t,label:a,file:o,isActive:r,isDynamic:c,onNavigate:s,depth:d,hasChildren:h,expanded:v,onToggle:m}){const y=t.replace(/\/\[.*$/,"")||"/",b=c?`Dynamic route — navigate to ${y} to find a real page`:null,C=u.jsxs("div",{onClick:c?void 0:()=>s(t),className:"flex items-center gap-1.5 w-full text-left group",style:{padding:`5px 8px 5px ${8+d*12}px`,fontSize:11,fontWeight:r?600:400,fontStyle:c?"italic":void 0,color:c?"var(--studio-text-dimmed)":r?"var(--studio-accent)":"var(--studio-text)",background:r?"var(--studio-accent-muted)":"transparent",border:"none",borderRadius:4,margin:"0 4px",cursor:c?"default":"pointer",transition:"background 0.1s",opacity:c?.7:1},onMouseEnter:w=>{!r&&!c&&(w.currentTarget.style.background="var(--studio-surface-hover)")},onMouseLeave:w=>{!r&&!c&&(w.currentTarget.style.background="transparent")},title:c?void 0:o||t,children:[h&&m?u.jsx("span",{onClick:w=>{w.stopPropagation(),m()},style:{display:"inline-flex",flexShrink:0,cursor:"pointer"},children:v?u.jsx(Dt,{style:{width:10,height:10}}):u.jsx(_n,{style:{width:10,height:10}})}):u.jsx(dm,{style:{width:11,height:11,flexShrink:0,opacity:c?.3:.5}}),u.jsx("span",{className:"truncate",children:a})]});return c?u.jsx(ct,{content:b,side:"right",children:C}):C}function LM(t){return t.startsWith("[")&&t.endsWith("]")}function OM(t){const a={segment:"",path:"/",fullRoute:null,file:null,isDynamic:!1,children:new Map};for(const{route:o,file:r}of t){if(o==="/"){a.fullRoute="/",a.file=r;continue}const c=o.replace(/^\//,"").split("/");let s=a,d=!1;for(let h=0;h<c.length;h++){const v=c[h];LM(v)&&(d=!0);const m="/"+c.slice(0,h+1).join("/");s.children.has(v)||s.children.set(v,{segment:v,path:m,fullRoute:null,file:null,isDynamic:d,children:new Map}),s=s.children.get(v)}s.fullRoute=o,s.file=r}return a}function AM({tree:t,selectedId:a,onSelect:o,onHover:r,onHoverEnd:c}){const[s,d]=g.useState(""),[h,v]=g.useState(new Set),[m,y]=g.useState(!1),[b,C]=g.useState(!0),w=g.useRef(null),{layoutNodes:E,pageNodes:j}=zM(s?vf(t,s.toLowerCase()):t),M=E.length>0&&j.length>0;g.useEffect(()=>{if(!a||t.length===0)return;const k=F7(t,a);k.length>0&&(v(U=>{const z=new Set(U);for(const W of k)z.add(W);return z}),M&&(mf(E,a)?y(!0):mf(j,a)&&C(!0)))},[a,t]),g.useEffect(()=>{w.current&&w.current.scrollIntoView({block:"nearest",behavior:"smooth"})},[a]);const R=g.useCallback(k=>{v(U=>{const z=new Set(U);return z.has(k)?z.delete(k):z.add(k),z})},[]);g.useEffect(()=>{if(t.length>0&&h.size===0){const k=new Set;xf(M?j:t,k),v(k)}},[t.length>0]);const T=M?[]:s?vf(t,s.toLowerCase()):t,N={selectedId:a,selectedRef:w,expandedIds:h,onToggle:R,onSelect:o,onHover:r,onHoverEnd:c},_=t.length===0||s&&E.length===0&&j.length===0&&T.length===0;return u.jsx("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:u.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:_?u.jsx("div",{className:"px-4 py-6 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:s?"No matching components.":"No components found on this page."}):M?u.jsxs(u.Fragment,{children:[E.length>0&&u.jsx(Np,{label:"Layout",expanded:m,onToggle:()=>y(!m),children:E.map(k=>u.jsx(Nc,{node:k,depth:0,...N},k.id))}),j.length>0&&u.jsx(Np,{label:"Page",expanded:b,onToggle:()=>C(!b),flex:!0,children:j.map(k=>u.jsx(Nc,{node:k,depth:0,...N},k.id))})]}):u.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden studio-scrollbar py-1",children:T.map(k=>u.jsx(Nc,{node:k,depth:0,...N},k.id))})})})}function Np({label:t,expanded:a,onToggle:o,alwaysExpanded:r,explainer:c,flex:s,children:d}){const h=r||a;return u.jsxs("div",{className:"flex flex-col",style:{borderBottom:"1px solid var(--studio-border)",flex:s&&h?"1 1 0":"0 0 auto",minHeight:0},children:[u.jsxs("div",{className:"flex justify-between items-center gap-1.5 px-3 py-3 select-none shrink-0",style:{cursor:r?"default":"pointer",borderBottom:h?"1px solid var(--studio-border-subtle)":""},onClick:r?void 0:o,children:[u.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wide",style:{color:"var(--studio-text-muted)"},children:t}),!r&&u.jsx("button",{className:"studio-icon-btn",style:{width:20,height:20,borderRadius:3},children:h?u.jsx(Mv,{style:{width:13,height:13}}):u.jsx(Tv,{style:{width:13,height:13}})})]}),h&&c&&u.jsxs("div",{className:"studio-tab-explainer shrink-0",style:{margin:"6px 8px",padding:"8px 10px"},children:[u.jsx(Cm,{}),u.jsx("span",{children:c})]}),h&&u.jsx("div",{className:"overflow-y-auto overflow-x-hidden studio-scrollbar py-2",style:{flex:1,minHeight:0},children:d})]})}function Nc({node:t,depth:a,selectedId:o,selectedRef:r,expandedIds:c,onToggle:s,onSelect:d,onHover:h,onHoverEnd:v}){const m=o===t.id,y=c.has(t.id),b=t.children.length>0,C=t.dataSlot!==null;return u.jsxs("div",{children:[u.jsxs("div",{ref:m?r:void 0,className:"flex items-center gap-1 w-full group overflow-hidden",style:{padding:`3px 8px 3px ${8+a*14}px`,fontSize:11,fontWeight:C?500:400,color:m?"var(--studio-accent)":C?"var(--studio-text)":"var(--studio-text-muted)",background:m?"var(--studio-accent-muted)":"transparent",borderRadius:0,cursor:"pointer",transition:"background 0.1s"},onClick:()=>d(t.id),onMouseEnter:w=>{m||(w.currentTarget.style.background="var(--studio-surface-hover)"),h(t.id)},onMouseLeave:w=>{m||(w.currentTarget.style.background="transparent"),v()},children:[b?u.jsx("button",{onClick:w=>{w.stopPropagation(),s(t.id)},className:"studio-icon-btn",style:{width:16,height:16,borderRadius:3},children:y?u.jsx(Dt,{style:{width:10,height:10}}):u.jsx(_n,{style:{width:10,height:10}})}):u.jsx("span",{style:{width:16,flexShrink:0}}),t.type==="component"?u.jsx(Lr,{style:{width:11,height:11,flexShrink:0,opacity:C?1:.5,color:C?"var(--studio-accent)":void 0}}):u.jsx(D0,{style:{width:11,height:11,flexShrink:0,opacity:.4}}),u.jsx("span",{className:"truncate",children:t.name}),t.textContent&&u.jsx("span",{className:"truncate ml-1",style:{color:"var(--studio-text-dimmed)",fontSize:10,fontWeight:400},children:t.textContent})]}),y&&b&&t.children.map(w=>u.jsx(Nc,{node:w,depth:a+1,selectedId:o,selectedRef:r,expandedIds:c,onToggle:s,onSelect:d,onHover:h,onHoverEnd:v},w.id))]})}function zM(t){const a=[],o=[];for(const r of t)K7(r,a,o);return{layoutNodes:a,pageNodes:o}}function K7(t,a,o){const r=t.scope;if(r==="page"){o.push(t);return}if(r==="layout"){if(!t.children.some(v=>Mr(v,"page"))){a.push(t);return}const h=[];for(const v of t.children)Mr(v,"page")?o.push(v):h.push(v);h.length>0&&a.push({...t,children:h});return}const c=t.children.some(d=>Mr(d,"layout")),s=t.children.some(d=>Mr(d,"page"));if(c&&s)for(const d of t.children)K7(d,a,o);else c?a.push(t):o.push(t)}function Mr(t,a){return t.scope===a?!0:t.children.some(o=>Mr(o,a))}function F7(t,a,o=[]){for(const r of t){if(r.id===a)return[...o,r.id];if(r.children.length>0){const c=F7(r.children,a,[...o,r.id]);if(c.length>0)return c}}return[]}function mf(t,a){for(const o of t)if(o.id===a||mf(o.children,a))return!0;return!1}function vf(t,a){const o=[];for(const r of t){const c=r.name.toLowerCase().includes(a),s=r.textContent.toLowerCase().includes(a),d=vf(r.children,a);(c||s||d.length>0)&&o.push({...r,children:d})}return o}function xf(t,a){for(const o of t)a.add(o.id),o.children.length>0&&xf(o.children,a)}const Lp={variant:oo,intent:oo,appearance:oo,type:oo,kind:oo,size:J1,scale:J1,sizing:J1,color:Cr,theme:Cr,palette:Cr,colorScheme:Cr,scheme:Cr,disabled:f3,hidden:f3,loading:e0,status:e0,state:e0,shape:t0,rounded:t0,radius:t0,align:Tr,alignment:Tr,justify:Tr,orientation:I1,direction:I1,layout:I1,layer:Er,level:Er,elevation:Er};function HM(t){return Lp[t]??Lp[t.toLowerCase()]??Qm}function VM(t,a){if(t.length===0)return[{label:"Default",props:{}}];const o=t.filter(d=>a[d.name]==="all"),r={};for(const d of t){const h=a[d.name];r[d.name]=h==="all"?d.default:h}if(o.length===0)return[{label:"Instance",props:{...r}}];const c=[];for(const d of o)for(const h of d.options)c.push({label:`${d.name}: ${h}`,props:{...r,[d.name]:h}});const s=new Set;return c.filter(d=>{const h=JSON.stringify(d.props);return s.has(h)?!1:(s.add(h),!0)})}function kM(t,a){if(t.length===0)return[{label:"Default",props:{}}];const o={};for(const s of t)o[s.name]=s.default;const r=[];for(const s of t)for(const d of s.options)r.push({label:`${s.name}: ${d}`,props:{...o,[s.name]:d}});const c=new Set;return r.filter(s=>{const d=JSON.stringify(s.props);return c.has(d)?!1:(c.add(d),!0)})}function DM({component:t,onBack:a,onCombinationsChange:o}){const[r,c]=g.useState(()=>Object.fromEntries(t.variants.map(y=>[y.name,"all"]))),s=g.useMemo(()=>VM(t.variants,r),[t.variants,r]),d=g.useMemo(()=>({current:""}),[]),h=JSON.stringify(s);d.current!==h&&(d.current=h,setTimeout(()=>o(s),0));const v=g.useCallback((y,b)=>{c(C=>({...C,[y]:b}))},[]),m=Object.values(r).filter(y=>y==="all").length;return u.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[u.jsx("button",{onClick:a,className:"studio-icon-btn shrink-0",style:{width:22,height:22},title:"Back to page",children:u.jsx(zg,{style:{width:12,height:12}})}),u.jsx(Lr,{style:{width:12,height:12,color:"var(--studio-accent)",flexShrink:0}}),u.jsx("span",{className:"text-[11px] font-semibold truncate flex-1",style:{color:"var(--studio-text)"},children:t.name}),u.jsxs("span",{className:"text-[10px]",style:{color:"var(--studio-text-dimmed)"},children:[s.length," ",s.length===1?"combo":"combos"]})]}),t.variants.length>0?u.jsx("div",{className:"flex flex-col gap-1.5 px-3 py-3 overflow-y-auto",children:t.variants.map(y=>{const b=HM(y.name),C=r[y.name];return u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(b,{style:{width:11,height:11,color:C!=="all"?"var(--studio-accent)":"var(--studio-text-dimmed)",flexShrink:0}}),u.jsx("span",{className:"text-[10px] font-mono shrink-0 truncate",style:{color:C!=="all"?"var(--studio-text)":"var(--studio-text-dimmed)",width:64},title:y.name,children:y.name}),u.jsx(BM,{value:C,options:y.options,onValueChange:w=>v(y.name,w)})]},y.name)})}):u.jsx("div",{className:"px-3 py-4 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:"No variant props detected."}),t.variants.length>0&&m>0&&u.jsxs("div",{className:"px-3 py-2 text-[10px] border-t mt-auto shrink-0",style:{color:"var(--studio-text-dimmed)",borderColor:"var(--studio-border-subtle)"},children:[m," prop",m!==1?"s":""," expanding the grid"]})]})}function BM({value:t,options:a,onValueChange:o}){return u.jsxs(Bh,{value:t,onValueChange:o,children:[u.jsxs($h,{className:"studio-prop-select-trigger",asChild:!1,children:[u.jsx("span",{className:"studio-prop-select-value",children:u.jsx(Zh,{})}),u.jsx(Uh,{asChild:!0,children:u.jsx(Dt,{style:{width:10,height:10,flexShrink:0}})})]}),u.jsx(Yh,{children:u.jsx(Xh,{className:"studio-prop-select-content",position:"popper",sideOffset:4,collisionPadding:12,children:u.jsxs(Ph,{children:[u.jsx(Op,{value:"all",current:t,children:u.jsx("span",{style:{color:"var(--studio-text-dimmed)",fontStyle:"italic"},children:"All"})}),u.jsx(Kh,{className:"studio-prop-select-separator"}),a.map(r=>u.jsx(Op,{value:r,current:t,children:r},r))]})})})]})}function Op({value:t,current:a,children:o}){return u.jsxs(qh,{value:t,className:"studio-prop-select-item",children:[u.jsx(Gh,{children:o}),u.jsx(Qh,{className:"studio-prop-select-check",children:u.jsx(ia,{style:{width:10,height:10}})})]})}function $M(t,a){return a.domPath?J7(t,a.domPath):null}function J7(t,a){for(const o of t){if(o.id===a)return o.id;const r=J7(o.children,a);if(r)return r}return null}function ZM(){var ma;const t=g.useRef(null),[a,o]=g.useState(""),[r,c]=g.useState(""),[s,d]=g.useState(""),[h,v]=g.useState(null),[m,y]=g.useState(!1),[b,C]=g.useState("light"),[w,E]=g.useState("fill"),[j,M]=g.useState("/"),[R,T]=g.useState(!1),[N,_]=g.useState(!0),[k,U]=g.useState([]),[z,W]=g.useState(!1),[te,ue]=g.useState(!1),[oe,ie]=g.useState(null),[ge,fe]=g.useState("/");Lj();const xe=If();g.useEffect(()=>{fetch("/api/config").then(be=>be.json()).then(be=>{o(be.targetUrl),c(be.stylingType||""),be.projectRoot&&d(be.projectRoot.split("/").filter(Boolean).pop()??"")}).catch(console.error)},[]),g.useEffect(()=>{fetch("/scan/all").then(be=>be.json()).then(be=>{vn.setAll(be)}).catch(console.error)},[]);const H=g.useCallback(be=>{var _t,ut,Eo;switch(be.type){case"tool:injectedReady":T(!0),t.current&&((_t=t.current.contentWindow)==null||_t.postMessage({type:"tool:enterSelectionMode"},"*"),(ut=t.current.contentWindow)==null||ut.postMessage({type:"tool:requestComponentTree"},"*"),y(!0));break;case"tool:elementSelected":v(be.data);break;case"tool:pathChanged":M(be.path),t.current&&((Eo=t.current.contentWindow)==null||Eo.postMessage({type:"tool:requestComponentTree"},"*"));break;case"tool:componentTree":U(be.tree);break}},[]),{send:D}=zv(t,H),K=g.useCallback(()=>{const be=!m;y(be),D(be?{type:"tool:enterSelectionMode"}:{type:"tool:exitSelectionMode"})},[m,D]),ae=g.useCallback(()=>{const be=b==="light"?"dark":"light";C(be),D({type:"tool:setTheme",theme:be})},[b,D]),pe=g.useCallback((be,_t)=>{D({type:"tool:previewInlineStyle",property:be,value:_t})},[D]),O=g.useCallback(()=>{D({type:"tool:revertInlineStyles"})},[D]),X=g.useCallback(()=>{D({type:"tool:reselectElement"})},[D]),J=g.useCallback((be,_t)=>{D({type:"tool:previewTokenValue",property:be,value:_t})},[D]),ee=g.useCallback(()=>{D({type:"tool:revertTokenValues"})},[D]),se=g.useCallback((be,_t,ut)=>{D({type:"tool:previewTokenValue",property:be,value:_t})},[D]),I=g.useCallback(()=>{v(null),W(!1)},[]),Q=g.useCallback(be=>{M(be)},[]),de=g.useCallback(be=>{D({type:"tool:selectByTreeId",id:be})},[D]),ye=g.useCallback(be=>{D({type:"tool:highlightByTreeId",id:be})},[D]),Ne=g.useCallback(()=>{D({type:"tool:clearHighlight"})},[D]),Re=g.useCallback(be=>{if(!a)return;fe(j),ie(be),M("/designtools-preview");const _t=kM(be.variants),ut=be.filePath.replace(/\.(tsx|ts|jsx|js)$/,"");setTimeout(()=>{D({type:"tool:renderPreview",dataSlot:be.dataSlot,componentPath:ut,exportName:be.exportName,combinations:_t,defaultChildren:be.name})},1500)},[a,j,D]),Le=g.useCallback(()=>{ie(null),M(ge)},[ge]),ht=g.useCallback(be=>{if(!oe)return;const _t=oe.filePath.replace(/\.(tsx|ts|jsx|js)$/,"");D({type:"tool:renderPreview",dataSlot:oe.dataSlot,componentPath:_t,exportName:oe.exportName,combinations:be,defaultChildren:oe.name})},[oe,D]);if(!a)return u.jsx("div",{className:"flex items-center justify-center h-screen",style:{background:"var(--studio-bg)",color:"var(--studio-text-dimmed)"},children:"Loading..."});if(!N)return u.jsx(RM,{onContinue:()=>_(!0)});const et=((ma=h==null?void 0:h.attributes)==null?void 0:ma["data-slot"])||null,Bt=et?(xe==null?void 0:xe.byDataSlot.get(et))??null:null,Wt=(Bt==null?void 0:Bt.name)||null,On=h?$M(k,h):null,ga=z&&Wt,xn=oe?u.jsx("div",{className:"flex flex-col border-r h-full",style:{width:250,minWidth:250,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:u.jsx(DM,{component:oe,onBack:Le,onCombinationsChange:ht})}):te?u.jsx("div",{className:"flex flex-col border-r h-full shrink-0",style:{width:36,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:u.jsx("button",{onClick:()=>ue(!1),className:"studio-icon-btn",style:{width:36,height:36},title:"Expand panel",children:u.jsx(p3,{strokeWidth:1.5,size:16})})}):u.jsx("div",{className:"flex flex-col border-r h-full",style:{width:250,minWidth:250,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:u.jsxs("div",{className:"flex-1 overflow-hidden flex flex-col",children:[u.jsxs("div",{className:"flex items-center pl-2 pr-2.5 py-1.5 shrink-0",style:{borderBottom:"1px solid var(--studio-border-subtle)"},children:[u.jsx("span",{className:"flex-1 text-[10px] font-semibold uppercase tracking-wide pl-1",style:{color:"var(--studio-text-muted)"},children:s||"Explorer"}),u.jsx("button",{onClick:()=>ue(!0),className:"studio-icon-btn shrink-0",style:{width:24,height:24},title:"Collapse panel",children:u.jsx(p3,{strokeWidth:1.5,size:14})})]}),ga&&u.jsx("div",{className:"flex flex-col shrink-0 border-b",style:{borderColor:"var(--studio-border)",maxHeight:"40%"},children:u.jsx(_M,{componentName:Wt,currentPath:j,onNavigate:Q,onClose:()=>W(!1)})}),u.jsx(AM,{tree:k,selectedId:On,onSelect:de,onHover:ye,onHoverEnd:Ne})]})}),Mo=u.jsx(mM,{element:h,theme:b,iframePath:j,onPreviewToken:J,onClearTokenPreview:ee,onPreviewShadow:se,onPreviewInlineStyle:pe,onRevertInlineStyles:O,onClose:I,onReselectElement:X,onToggleUsagePanel:()=>{W(be=>!be),ue(!1)},onIsolate:Re});return u.jsx(Ib,{children:u.jsx(tC,{toolName:"CodeSurface",toolIcon:u.jsx(Lr,{}),selectionMode:m,onToggleSelectionMode:K,theme:b,onToggleTheme:ae,viewportWidth:w,onViewportWidthChange:E,iframePath:j,onIframePathChange:M,targetUrl:a,iframeRef:t,editorPanel:Mo,leftPanel:xn})})}Eg.createRoot(document.getElementById("root")).render(u.jsx(ZM,{}));