@motiadev/ui 0.13.0-beta.162-850424 → 0.13.0-beta.162-080298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +93 -21
- package/dist/components/ui/background-effect.d.ts +4 -7
- package/dist/components/ui/background-effect.d.ts.map +1 -1
- package/dist/components/ui/background-effect.stories.d.ts +12 -0
- package/dist/components/ui/background-effect.stories.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +8 -11
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.stories.d.ts +19 -0
- package/dist/components/ui/badge.stories.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +20 -24
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.stories.d.ts +21 -0
- package/dist/components/ui/breadcrumb.stories.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +9 -14
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.stories.d.ts +25 -0
- package/dist/components/ui/button.stories.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +3 -7
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.stories.d.ts +25 -0
- package/dist/components/ui/checkbox.stories.d.ts.map +1 -0
- package/dist/components/ui/collapsible-panel.d.ts +13 -17
- package/dist/components/ui/collapsible-panel.d.ts.map +1 -1
- package/dist/components/ui/collapsible-panel.stories.d.ts +12 -0
- package/dist/components/ui/collapsible-panel.stories.d.ts.map +1 -0
- package/dist/components/ui/container.d.ts +13 -17
- package/dist/components/ui/container.d.ts.map +1 -1
- package/dist/components/ui/container.stories.d.ts +10 -0
- package/dist/components/ui/container.stories.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +21 -23
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.stories.d.ts +18 -0
- package/dist/components/ui/dropdown-menu.stories.d.ts.map +1 -0
- package/dist/components/ui/empty.d.ts +10 -34
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +8 -12
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.stories.d.ts +23 -0
- package/dist/components/ui/input.stories.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +3 -7
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.stories.d.ts +17 -0
- package/dist/components/ui/label.stories.d.ts.map +1 -0
- package/dist/components/ui/level-dot.d.ts +3 -7
- package/dist/components/ui/level-dot.d.ts.map +1 -1
- package/dist/components/ui/level-dot.stories.d.ts +19 -0
- package/dist/components/ui/level-dot.stories.d.ts.map +1 -0
- package/dist/components/ui/panel.d.ts +28 -32
- package/dist/components/ui/panel.d.ts.map +1 -1
- package/dist/components/ui/panel.stories.d.ts +24 -0
- package/dist/components/ui/panel.stories.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +13 -11
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.stories.d.ts +18 -0
- package/dist/components/ui/select.stories.d.ts.map +1 -0
- package/dist/components/ui/side-panel-detail.d.ts +5 -8
- package/dist/components/ui/side-panel-detail.d.ts.map +1 -1
- package/dist/components/ui/side-panel-detail.stories.d.ts +12 -0
- package/dist/components/ui/side-panel-detail.stories.d.ts.map +1 -0
- package/dist/components/ui/side-panel.d.ts +18 -18
- package/dist/components/ui/side-panel.d.ts.map +1 -1
- package/dist/components/ui/side-panel.stories.d.ts +13 -0
- package/dist/components/ui/side-panel.stories.d.ts.map +1 -0
- package/dist/components/ui/sidebar.d.ts +8 -12
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.stories.d.ts +14 -0
- package/dist/components/ui/sidebar.stories.d.ts.map +1 -0
- package/dist/components/ui/table.d.ts +4 -5
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.stories.d.ts +18 -0
- package/dist/components/ui/table.stories.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +6 -10
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.stories.d.ts +16 -0
- package/dist/components/ui/tabs.stories.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +2 -6
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.stories.d.ts +21 -0
- package/dist/components/ui/textarea.stories.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +5 -10
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.stories.d.ts +21 -0
- package/dist/components/ui/tooltip.stories.d.ts.map +1 -0
- package/dist/index.cjs +122 -0
- package/dist/index.d.ts +24 -24
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11031 -25
- package/dist/lib/utils.d.ts +2 -6
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/stores/use-theme-store.d.ts +17 -22
- package/dist/stores/use-theme-store.d.ts.map +1 -1
- package/dist/ui.css +1 -0
- package/package.json +15 -13
- package/dist/components/ui/background-effect.js +0 -31
- package/dist/components/ui/background-effect.js.map +0 -1
- package/dist/components/ui/badge.js +0 -57
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/components/ui/breadcrumb.js +0 -168
- package/dist/components/ui/breadcrumb.js.map +0 -1
- package/dist/components/ui/button.js +0 -88
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/checkbox.js +0 -53
- package/dist/components/ui/checkbox.js.map +0 -1
- package/dist/components/ui/collapsible-panel.js +0 -252
- package/dist/components/ui/collapsible-panel.js.map +0 -1
- package/dist/components/ui/container.js +0 -143
- package/dist/components/ui/container.js.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -430
- package/dist/components/ui/dropdown-menu.js.map +0 -1
- package/dist/components/ui/empty.js +0 -219
- package/dist/components/ui/empty.js.map +0 -1
- package/dist/components/ui/input.js +0 -66
- package/dist/components/ui/input.js.map +0 -1
- package/dist/components/ui/label.js +0 -43
- package/dist/components/ui/label.js.map +0 -1
- package/dist/components/ui/level-dot.js +0 -35
- package/dist/components/ui/level-dot.js.map +0 -1
- package/dist/components/ui/panel.js +0 -284
- package/dist/components/ui/panel.js.map +0 -1
- package/dist/components/ui/select.js +0 -341
- package/dist/components/ui/select.js.map +0 -1
- package/dist/components/ui/side-panel-detail.js +0 -54
- package/dist/components/ui/side-panel-detail.js.map +0 -1
- package/dist/components/ui/side-panel.js +0 -138
- package/dist/components/ui/side-panel.js.map +0 -1
- package/dist/components/ui/sidebar.js +0 -153
- package/dist/components/ui/sidebar.js.map +0 -1
- package/dist/components/ui/table.js +0 -285
- package/dist/components/ui/table.js.map +0 -1
- package/dist/components/ui/tabs.js +0 -142
- package/dist/components/ui/tabs.js.map +0 -1
- package/dist/components/ui/textarea.js +0 -42
- package/dist/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/tooltip.js +0 -54
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/lib/utils.js +0 -11
- package/dist/lib/utils.js.map +0 -1
- package/dist/stores/use-theme-store.js +0 -30
- package/dist/stores/use-theme-store.js.map +0 -1
- package/dist/styles.css +0 -2647
- package/dist/styles.css.map +0 -1
- package/dist/styles.js +0 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
(function(z,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],T):(z=typeof globalThis<"u"?globalThis:z||self,T(z.MotiaUI={},z.React,z.ReactDOM))})(this,function(z,T,Gn){"use strict";function xo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=xo(T),Xt=xo(Gn);var qt={exports:{}},Tt={};/**
|
|
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 yo;function fc(){if(yo)return Tt;yo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return Tt.Fragment=t,Tt.jsx=n,Tt.jsxs=n,Tt}var Nt={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.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 wo;function pc(){return wo||(wo=1,process.env.NODE_ENV!=="production"&&function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===Y?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case h:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case k:return"Suspense";case M:return"SuspenseList";case K:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case g:return"Portal";case w:return(P.displayName||"Context")+".Provider";case y:return(P._context.displayName||"Context")+".Consumer";case S:var H=P.render;return P=P.displayName,P||(P=H.displayName||H.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case E:return H=P.displayName||null,H!==null?H:e(P.type)||"Memo";case R:H=P._payload,P=P._init;try{return e(P(H))}catch{}}return null}function t(P){return""+P}function n(P){try{t(P);var H=!1}catch{H=!0}if(H){H=console;var re=H.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return re.call(H,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(P)}}function r(P){if(P===h)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===R)return"<...>";try{var H=e(P);return H?"<"+H+">":"<...>"}catch{return"<...>"}}function o(){var P=Z.A;return P===null?null:P.getOwner()}function s(){return Error("react-stack-top-frame")}function a(P){if(W.call(P,"key")){var H=Object.getOwnPropertyDescriptor(P,"key").get;if(H&&H.isReactWarning)return!1}return P.key!==void 0}function i(P,H){function re(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",H))}re.isReactWarning=!0,Object.defineProperty(P,"key",{get:re,configurable:!0})}function l(){var P=e(this.type);return j[P]||(j[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function c(P,H,re,_,A,F,O,C){return re=F.ref,P={$$typeof:v,type:P,key:H,props:F,_owner:A},(re!==void 0?re:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:l}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:O}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function f(P,H,re,_,A,F,O,C){var I=H.children;if(I!==void 0)if(_)if(te(I)){for(_=0;_<I.length;_++)d(I[_]);Object.freeze&&Object.freeze(I)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(I);if(W.call(H,"key")){I=e(P);var $=Object.keys(H).filter(function(J){return J!=="key"});_=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",D[I+_]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,_,I,$,I),D[I+_]=!0)}if(I=null,re!==void 0&&(n(re),I=""+re),a(H)&&(n(H.key),I=""+H.key),"key"in H){re={};for(var L in H)L!=="key"&&(re[L]=H[L])}else re=H;return I&&i(re,typeof P=="function"?P.displayName||P.name||"Unknown":P),c(P,I,F,A,o(),re,O,C)}function d(P){typeof P=="object"&&P!==null&&P.$$typeof===v&&P._store&&(P._store.validated=1)}var m=T,v=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),Z=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,te=Array.isArray,G=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(P){return P()}};var q,j={},Q=m.react_stack_bottom_frame.bind(m,s)(),N=G(r(s)),D={};Nt.Fragment=h,Nt.jsx=function(P,H,re,_,A){var F=1e4>Z.recentlyCreatedOwnerStacks++;return f(P,H,re,!1,_,A,F?Error("react-stack-top-frame"):Q,F?G(r(P)):N)},Nt.jsxs=function(P,H,re,_,A){var F=1e4>Z.recentlyCreatedOwnerStacks++;return f(P,H,re,!0,_,A,F?Error("react-stack-top-frame"):Q,F?G(r(P)):N)}}()),Nt}var Co;function mc(){return Co||(Co=1,process.env.NODE_ENV==="production"?qt.exports=fc():qt.exports=pc()),qt.exports}var p=mc();const hc={subtle:{width:"100%",height:"100%"}},Un=({patternType:e="subtle"})=>{const t=hc[e];return p.jsx("div",{"aria-hidden":"true",className:"absolute top-0 h-full w-full inset-x-0 -z-10 transform-gpu overflow-hidden pointer-events-none",children:p.jsx("div",{style:t,className:"relative -z-10 aspect-1155/678 bg-linear-to-br from-white/60 to-[#050505] opacity-10 pointer-events-none"})})};function So(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=So(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=So(e))&&(r&&(r+=" "),r+=t);return r}const Po=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ro=Eo,it=(e,t)=>n=>{var r;if(t?.variants==null)return Ro(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(c=>{const f=n?.[c],d=s?.[c];if(f===null)return null;const m=Po(f)||Po(d);return o[c][m]}),i=n&&Object.entries(n).reduce((c,f)=>{let[d,m]=f;return m===void 0||(c[d]=m),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:d,className:m,...v}=f;return Object.entries(v).every(g=>{let[h,b]=g;return Array.isArray(b)?b.includes({...s,...i}[h]):{...s,...i}[h]===b})?[...c,d,m]:c},[]);return Ro(e,a,l,n?.class,n?.className)},Kn="-",gc=e=>{const t=bc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(Kn);return i[0]===""&&i.length!==1&&i.shift(),ko(i,t)||vc(a)},getConflictingClassGroupIds:(a,i)=>{const l=n[a]||[];return i&&r[a]?[...l,...r[a]]:l}}},ko=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ko(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Kn);return t.validators.find(({validator:a})=>a(s))?.classGroupId},To=/^\[(.+)\]$/,vc=e=>{if(To.test(e)){const t=To.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},bc=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Yn(n[o],r,o,t);return r},Yn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:No(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(xc(o)){Yn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{Yn(a,No(t,s),n,r)})})},No=(e,t)=>{let n=e;return t.split(Kn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},xc=e=>e.isThemeGetter,yc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Xn="!",qn=":",wc=qn.length,Cc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,c;for(let g=0;g<o.length;g++){let h=o[g];if(a===0&&i===0){if(h===qn){s.push(o.slice(l,g)),l=g+wc;continue}if(h==="/"){c=g;continue}}h==="["?a++:h==="]"?a--:h==="("?i++:h===")"&&i--}const f=s.length===0?o:o.substring(l),d=Sc(f),m=d!==f,v=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:v}};if(t){const o=t+qn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Sc=e=>e.endsWith(Xn)?e.substring(0,e.length-1):e.startsWith(Xn)?e.substring(1):e,Ec=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},Pc=e=>({cache:yc(e.cacheSize),parseClassName:Cc(e),sortModifiers:Ec(e),...gc(e)}),Rc=/\s+/,kc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Rc);let l="";for(let c=i.length-1;c>=0;c-=1){const f=i[c],{isExternal:d,modifiers:m,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:h}=n(f);if(d){l=f+(l.length>0?" "+l:l);continue}let b=!!h,x=r(b?g.substring(0,h):g);if(!x){if(!b){l=f+(l.length>0?" "+l:l);continue}if(x=r(g),!x){l=f+(l.length>0?" "+l:l);continue}b=!1}const y=s(m).join(":"),w=v?y+Xn:y,S=w+x;if(a.includes(S))continue;a.push(S);const k=o(x,b);for(let M=0;M<k.length;++M){const E=k[M];a.push(w+E)}l=f+(l.length>0?" "+l:l)}return l};function Tc(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_o(t))&&(r&&(r+=" "),r+=n);return r}const _o=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_o(e[r]))&&(n&&(n+=" "),n+=t);return n};function Nc(e,...t){let n,r,o,s=a;function a(l){const c=t.reduce((f,d)=>d(f),e());return n=Pc(c),r=n.cache.get,o=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const f=kc(l,n);return o(l,f),f}return function(){return s(Tc.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Io=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_c=/^\d+\/\d+$/,Ic=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ac=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lt=e=>_c.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),ze=e=>!!e&&Number.isInteger(Number(e)),Zn=e=>e.endsWith("%")&&se(e.slice(0,-1)),Ie=e=>Ic.test(e),jc=()=>!0,Lc=e=>Mc.test(e)&&!Ac.test(e),Ao=()=>!1,zc=e=>Dc.test(e),$c=e=>Oc.test(e),Fc=e=>!B(e)&&!V(e),Hc=e=>ct(e,zo,Ao),B=e=>Io.test(e),Ze=e=>ct(e,$o,Lc),Jn=e=>ct(e,Uc,se),Do=e=>ct(e,jo,Ao),Bc=e=>ct(e,Lo,$c),Zt=e=>ct(e,Fo,zc),V=e=>Mo.test(e),_t=e=>ut(e,$o),Vc=e=>ut(e,Kc),Oo=e=>ut(e,jo),Wc=e=>ut(e,zo),Gc=e=>ut(e,Lo),Jt=e=>ut(e,Fo,!0),ct=(e,t,n)=>{const r=Io.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ut=(e,t,n=!1)=>{const r=Mo.exec(e);return r?r[1]?t(r[1]):n:!1},jo=e=>e==="position"||e==="percentage",Lo=e=>e==="image"||e==="url",zo=e=>e==="length"||e==="size"||e==="bg-size",$o=e=>e==="length",Uc=e=>e==="number",Kc=e=>e==="family-name",Fo=e=>e==="shadow",Yc=Nc(()=>{const e=pe("color"),t=pe("font"),n=pe("text"),r=pe("font-weight"),o=pe("tracking"),s=pe("leading"),a=pe("breakpoint"),i=pe("container"),l=pe("spacing"),c=pe("radius"),f=pe("shadow"),d=pe("inset-shadow"),m=pe("text-shadow"),v=pe("drop-shadow"),g=pe("blur"),h=pe("perspective"),b=pe("aspect"),x=pe("ease"),y=pe("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),V,B],M=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],R=()=>[V,B,l],K=()=>[lt,"full","auto",...R()],Y=()=>[ze,"none","subgrid",V,B],Z=()=>["auto",{span:["full",ze,V,B]},ze,V,B],W=()=>[ze,"auto",V,B],te=()=>["auto","min","max","fr",V,B],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...R()],Q=()=>[lt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],N=()=>[e,V,B],D=()=>[...S(),Oo,Do,{position:[V,B]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",Wc,Hc,{size:[V,B]}],re=()=>[Zn,_t,Ze],_=()=>["","none","full",c,V,B],A=()=>["",se,_t,Ze],F=()=>["solid","dashed","dotted","double"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[se,Zn,Oo,Do],I=()=>["","none",g,V,B],$=()=>["none",se,V,B],L=()=>["none",se,V,B],J=()=>[se,V,B],ee=()=>[lt,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ie],breakpoint:[Ie],color:[jc],container:[Ie],"drop-shadow":[Ie],ease:["in","out","in-out"],font:[Fc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ie],shadow:[Ie],spacing:["px",se],text:[Ie],"text-shadow":[Ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lt,B,V,b]}],container:["container"],columns:[{columns:[se,B,V,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{start:K()}],end:[{end:K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[ze,"auto",V,B]}],basis:[{basis:[lt,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,lt,"auto","initial","none",B]}],grow:[{grow:["",se,V,B]}],shrink:[{shrink:["",se,V,B]}],order:[{order:[ze,"first","last","none",V,B]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[i,"screen",...Q()]}],"min-w":[{"min-w":[i,"screen","none",...Q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,_t,Ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,V,Jn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zn,B]}],"font-family":[{font:[Vc,B,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,V,B]}],"line-clamp":[{"line-clamp":[se,"none",V,Jn]}],leading:[{leading:[s,...R()]}],"list-image":[{"list-image":["none",V,B]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",V,B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",V,Ze]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[se,"auto",V,B]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V,B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V,B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ze,V,B],radial:["",V,B],conic:[ze,V,B]},Gc,Bc]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,V,B]}],"outline-w":[{outline:["",se,_t,Ze]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,Jt,Zt]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,Jt,Zt]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[se,Ze]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",m,Jt,Zt]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[se,V,B]}],"mix-blend":[{"mix-blend":[...O(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":O()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[V,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",V,B]}],filter:[{filter:["","none",V,B]}],blur:[{blur:I()}],brightness:[{brightness:[se,V,B]}],contrast:[{contrast:[se,V,B]}],"drop-shadow":[{"drop-shadow":["","none",v,Jt,Zt]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",se,V,B]}],"hue-rotate":[{"hue-rotate":[se,V,B]}],invert:[{invert:["",se,V,B]}],saturate:[{saturate:[se,V,B]}],sepia:[{sepia:["",se,V,B]}],"backdrop-filter":[{"backdrop-filter":["","none",V,B]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[se,V,B]}],"backdrop-contrast":[{"backdrop-contrast":[se,V,B]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,V,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,V,B]}],"backdrop-invert":[{"backdrop-invert":["",se,V,B]}],"backdrop-opacity":[{"backdrop-opacity":[se,V,B]}],"backdrop-saturate":[{"backdrop-saturate":[se,V,B]}],"backdrop-sepia":[{"backdrop-sepia":["",se,V,B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",V,B]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",V,B]}],ease:[{ease:["linear","initial",x,V,B]}],delay:[{delay:[se,V,B]}],animate:[{animate:["none",y,V,B]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,V,B]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:J()}],"skew-x":[{"skew-x":J()}],"skew-y":[{"skew-y":J()}],transform:[{transform:[V,B,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V,B]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V,B]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[se,_t,Ze,Jn]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function X(...e){return Yc(Eo(e))}const Xc=it("inline-flex items-center rounded-full px-4 py-1 text-xs font-bold transition-colors",{variants:{variant:{info:"dark:bg-accent-100 dark:text-accent-1000 bg-accent-200 text-accent-900 capitalize",success:"bg-accent-1000 text-white",error:"bg-destructive/10 text-destructive capitalize",default:"dark:bg-gray-800/30 dark:text-gray-500 bg-gray-100 text-gray-800",outline:"border border-gray-200 dark:border-gray-700",warning:"border-transparent bg-amber-300 text-amber-950 hover:bg-amber/80"}},defaultVariants:{variant:"default"}}),Ho=({className:e,variant:t,...n})=>p.jsx("div",{className:X(Xc({variant:t}),e),...n});Ho.displayName="Badge";/**
|
|
23
|
+
* @license lucide-react v0.548.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/const qc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Bo=e=>{const t=Zc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Vo=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Jc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
28
|
+
* @license lucide-react v0.548.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/var Qc={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"};/**
|
|
33
|
+
* @license lucide-react v0.548.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/const eu=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>T.createElement("svg",{ref:l,...Qc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Vo("lucide",o),...!s&&!Jc(i)&&{"aria-hidden":"true"},...i},[...a.map(([c,f])=>T.createElement(c,f)),...Array.isArray(s)?s:[s]]));/**
|
|
38
|
+
* @license lucide-react v0.548.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/const $e=(e,t)=>{const n=T.forwardRef(({className:r,...o},s)=>T.createElement(eu,{ref:s,iconNode:t,className:Vo(`lucide-${qc(Bo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Bo(e),n};/**
|
|
43
|
+
* @license lucide-react v0.548.0 - ISC
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the ISC license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/const Qn=$e("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
48
|
+
* @license lucide-react v0.548.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/const er=$e("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
53
|
+
* @license lucide-react v0.548.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/const tu=$e("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
58
|
+
* @license lucide-react v0.548.0 - ISC
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the ISC license.
|
|
61
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/const nu=$e("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
63
|
+
* @license lucide-react v0.548.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/const ru=$e("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
68
|
+
* @license lucide-react v0.548.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const ou=$e("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
73
|
+
* @license lucide-react v0.548.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const Wo=$e("equal",[["line",{x1:"5",x2:"19",y1:"9",y2:"9",key:"1nwqeh"}],["line",{x1:"5",x2:"19",y1:"15",y2:"15",key:"g8yjpy"}]]);/**
|
|
78
|
+
* @license lucide-react v0.548.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const su=$e("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Go(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Go(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Go(e[o],null)}}}}function le(...e){return u.useCallback(Qt(...e),e)}function dt(e){const t=iu(e),n=u.forwardRef((r,o)=>{const{children:s,...a}=r,i=u.Children.toArray(s),l=i.find(cu);if(l){const c=l.props.children,f=i.map(d=>d===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:d);return p.jsx(t,{...a,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var au=dt("Slot");function iu(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const a=du(o),i=uu(s,o.props);return o.type!==u.Fragment&&(i.ref=r?Qt(r,a):a),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uo=Symbol("radix.slottable");function lu(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Uo,t}function cu(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uo}function uu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function du(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const fu=it("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md font-semibold transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-input text-foreground hover:bg-border active:bg-card",accent:"bg-accent text-accent-foreground hover:bg-accent/90 active:bg-accent/80",light:"bg-background text-foreground border border-border hover:bg-muted active:bg-muted/80",secondary:"bg-secondary text-foreground shadow-sm hover:opacity-90 active:opacity-80",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:opacity-90 active:opacity-80",outline:"border border-border bg-transparent hover:bg-muted hover:text-muted-foreground text-foreground",ghost:"hover:bg-muted-foreground/20 text-foreground",link:"text-primary underline-offset-4 hover:underline text-primary-foreground",icon:"hover:bg-muted-foreground/20 text-foreground rounded-full bg-muted-foreground/10"},size:{sm:"h-6 px-3 text-xs [&_svg]:size-3",default:"h-9 px-4 text-sm [&_svg]:size-4",md:"h-9 px-4 text-sm [&_svg]:size-4",lg:"h-11 px-6 text-base [&_svg]:size-5",icon:"h-4 w-4 [&_svg]:size-4"}},defaultVariants:{variant:"default",size:"default"}}),Me=T.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?au:"button";return p.jsx(a,{className:X(fu({variant:t,size:n}),e),ref:s,...o})});Me.displayName="Button";function U(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Ae(e,t=[]){let n=[];function r(s,a){const i=u.createContext(a),l=n.length;n=[...n,a];const c=d=>{const{scope:m,children:v,...g}=d,h=m?.[e]?.[l]||i,b=u.useMemo(()=>g,Object.values(g));return p.jsx(h.Provider,{value:b,children:v})};c.displayName=s+"Provider";function f(d,m){const v=m?.[e]?.[l]||i,g=u.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[c,f]}const o=()=>{const s=n.map(a=>u.createContext(a));return function(i){const l=i?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,pu(o,...t)]}function pu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...i,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var he=globalThis?.document?u.useLayoutEffect:()=>{},mu=u[" useInsertionEffect ".trim().toString()]||he;function Fe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=hu({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const d=f.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"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.`),f.current=i},[i,r])}const c=u.useCallback(f=>{if(i){const d=gu(f)?f(e):f;d!==e&&a.current?.(d)}else s(f)},[i,e,s,a]);return[l,c]}function hu({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return mu(()=>{s.current=t},[t]),u.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function gu(e){return typeof e=="function"}var vu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ae=vu.reduce((e,t)=>{const n=dt(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ko(e,t){e&&Xt.flushSync(()=>e.dispatchEvent(t))}function tr(e){const t=e+"CollectionProvider",[n,r]=Ae(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:b,children:x}=h,y=T.useRef(null),w=T.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:w,collectionRef:y,children:x})};a.displayName=t;const i=e+"CollectionSlot",l=dt(i),c=T.forwardRef((h,b)=>{const{scope:x,children:y}=h,w=s(i,x),S=le(b,w.collectionRef);return p.jsx(l,{ref:S,children:y})});c.displayName=i;const f=e+"CollectionItemSlot",d="data-radix-collection-item",m=dt(f),v=T.forwardRef((h,b)=>{const{scope:x,children:y,...w}=h,S=T.useRef(null),k=le(b,S),M=s(f,x);return T.useEffect(()=>(M.itemMap.set(S,{ref:S,...w}),()=>void M.itemMap.delete(S))),p.jsx(m,{[d]:"",ref:k,children:y})});v.displayName=f;function g(h){const b=s(e+"CollectionConsumer",h);return T.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((M,E)=>w.indexOf(M.ref.current)-w.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:c,ItemSlot:v},g,r]}var bu=u.createContext(void 0);function en(e){const t=u.useContext(bu);return e||t||"ltr"}function we(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>t.current?.(...n),[])}function xu(e,t=globalThis?.document){const n=we(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yu="DismissableLayer",nr="dismissableLayer.update",wu="dismissableLayer.pointerDownOutside",Cu="dismissableLayer.focusOutside",Yo,Xo=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tn=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,c=u.useContext(Xo),[f,d]=u.useState(null),m=f?.ownerDocument??globalThis?.document,[,v]=u.useState({}),g=le(t,E=>d(E)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(b),y=f?h.indexOf(f):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,k=Pu(E=>{const R=E.target,K=[...c.branches].some(Y=>Y.contains(R));!S||K||(o?.(E),a?.(E),E.defaultPrevented||i?.())},m),M=Ru(E=>{const R=E.target;[...c.branches].some(Y=>Y.contains(R))||(s?.(E),a?.(E),E.defaultPrevented||i?.())},m);return xu(E=>{y===c.layers.size-1&&(r?.(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},m),u.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Yo=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),qo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Yo)}},[f,m,n,c]),u.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),qo())},[f,c]),u.useEffect(()=>{const E=()=>v({});return document.addEventListener(nr,E),()=>document.removeEventListener(nr,E)},[]),p.jsx(ae.div,{...l,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,M.onFocusCapture),onBlurCapture:U(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,k.onPointerDownCapture)})});tn.displayName=yu;var Su="DismissableLayerBranch",Eu=u.forwardRef((e,t)=>{const n=u.useContext(Xo),r=u.useRef(null),o=le(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(ae.div,{...e,ref:o})});Eu.displayName=Su;function Pu(e,t=globalThis?.document){const n=we(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){Zo(wu,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ru(e,t=globalThis?.document){const n=we(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Zo(Cu,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qo(){const e=new CustomEvent(nr);document.dispatchEvent(e)}function Zo(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ko(o,s):o.dispatchEvent(s)}var rr=0;function Jo(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qo()),document.body.insertAdjacentElement("beforeend",e[1]??Qo()),rr++,()=>{rr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rr--}},[])}function Qo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var or="focusScope.autoFocusOnMount",sr="focusScope.autoFocusOnUnmount",es={bubbles:!1,cancelable:!0},ku="FocusScope",ar=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=u.useState(null),c=we(o),f=we(s),d=u.useRef(null),m=le(t,h=>l(h)),v=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let h=function(w){if(v.paused||!i)return;const S=w.target;i.contains(S)?d.current=S:He(d.current,{select:!0})},b=function(w){if(v.paused||!i)return;const S=w.relatedTarget;S!==null&&(i.contains(S)||He(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&He(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const y=new MutationObserver(x);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),y.disconnect()}}},[r,i,v.paused]),u.useEffect(()=>{if(i){rs.add(v);const h=document.activeElement;if(!i.contains(h)){const x=new CustomEvent(or,es);i.addEventListener(or,c),i.dispatchEvent(x),x.defaultPrevented||(Tu(Au(ts(i)),{select:!0}),document.activeElement===h&&He(i))}return()=>{i.removeEventListener(or,c),setTimeout(()=>{const x=new CustomEvent(sr,es);i.addEventListener(sr,f),i.dispatchEvent(x),x.defaultPrevented||He(h??document.body,{select:!0}),i.removeEventListener(sr,f),rs.remove(v)},0)}}},[i,c,f,v]);const g=u.useCallback(h=>{if(!n&&!r||v.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(b&&x){const y=h.currentTarget,[w,S]=Nu(y);w&&S?!h.shiftKey&&x===S?(h.preventDefault(),n&&He(w,{select:!0})):h.shiftKey&&x===w&&(h.preventDefault(),n&&He(S,{select:!0})):x===y&&h.preventDefault()}},[n,r,v.paused]);return p.jsx(ae.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});ar.displayName=ku;function Tu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(He(r,{select:t}),document.activeElement!==n)return}function Nu(e){const t=ts(e),n=ns(t,e),r=ns(t.reverse(),e);return[n,r]}function ts(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ns(e,t){for(const n of e)if(!_u(n,{upTo:t}))return n}function _u(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Iu(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Iu(e)&&t&&e.select()}}var rs=Mu();function Mu(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=os(e,t),e.unshift(t)},remove(t){e=os(e,t),e[0]?.resume()}}}function os(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Au(e){return e.filter(t=>t.tagName!=="A")}var Du=u[" useId ".trim().toString()]||(()=>{}),Ou=0;function Re(e){const[t,n]=u.useState(Du());return he(()=>{n(r=>r??String(Ou++))},[e]),t?`radix-${t}`:""}const ju=["top","right","bottom","left"],Be=Math.min,ve=Math.max,nn=Math.round,rn=Math.floor,ke=e=>({x:e,y:e}),Lu={left:"right",right:"left",bottom:"top",top:"bottom"},zu={start:"end",end:"start"};function ir(e,t,n){return ve(e,Be(t,n))}function De(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function ft(e){return e.split("-")[1]}function lr(e){return e==="x"?"y":"x"}function cr(e){return e==="y"?"height":"width"}function Ve(e){return["top","bottom"].includes(Oe(e))?"y":"x"}function ur(e){return lr(Ve(e))}function $u(e,t,n){n===void 0&&(n=!1);const r=ft(e),o=ur(e),s=cr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=on(a)),[a,on(a)]}function Fu(e){const t=on(e);return[dr(e),t,dr(t)]}function dr(e){return e.replace(/start|end/g,t=>zu[t])}function Hu(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Bu(e,t,n,r){const o=ft(e);let s=Hu(Oe(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(dr)))),s}function on(e){return e.replace(/left|right|bottom|top/g,t=>Lu[t])}function Vu(e){return{top:0,right:0,bottom:0,left:0,...e}}function ss(e){return typeof e!="number"?Vu(e):{top:e,right:e,bottom:e,left:e}}function sn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function as(e,t,n){let{reference:r,floating:o}=e;const s=Ve(t),a=ur(t),i=cr(a),l=Oe(t),c=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let v;switch(l){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-o.width,y:d};break;default:v={x:r.x,y:r.y}}switch(ft(t)){case"start":v[a]-=m*(n&&c?-1:1);break;case"end":v[a]+=m*(n&&c?-1:1);break}return v}const Wu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=as(c,r,l),m=r,v={},g=0;for(let h=0;h<i.length;h++){const{name:b,fn:x}=i[h],{x:y,y:w,data:S,reset:k}=await x({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});f=y??f,d=w??d,v={...v,[b]:{...v[b],...S}},k&&g<=50&&(g++,typeof k=="object"&&(k.placement&&(m=k.placement),k.rects&&(c=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:d}=as(c,m,l)),h=-1)}return{x:f,y:d,placement:m,strategy:o,middlewareData:v}};async function It(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:v=0}=De(t,e),g=ss(v),b=i[m?d==="floating"?"reference":"floating":d],x=sn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:f,strategy:l})),y=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},k=sn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:l}):y);return{top:(x.top-k.top+g.top)/S.y,bottom:(k.bottom-x.bottom+g.bottom)/S.y,left:(x.left-k.left+g.left)/S.x,right:(k.right-x.right+g.right)/S.x}}const Gu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:c,padding:f=0}=De(e,t)||{};if(c==null)return{};const d=ss(f),m={x:n,y:r},v=ur(o),g=cr(v),h=await a.getDimensions(c),b=v==="y",x=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[v]-m[v]-s.floating[g],k=m[v]-s.reference[v],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let E=M?M[w]:0;(!E||!await(a.isElement==null?void 0:a.isElement(M)))&&(E=i.floating[w]||s.floating[g]);const R=S/2-k/2,K=E/2-h[g]/2-1,Y=Be(d[x],K),Z=Be(d[y],K),W=Y,te=E-h[g]-Z,G=E/2-h[g]/2+R,q=ir(W,G,te),j=!l.arrow&&ft(o)!=null&&G!==q&&s.reference[g]/2-(G<W?Y:Z)-h[g]/2<0,Q=j?G<W?G-W:G-te:0;return{[v]:m[v]+Q,data:{[v]:q,centerOffset:G-q-Q,...j&&{alignmentOffset:Q}},reset:j}}}),Uu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=De(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Oe(o),y=Ve(i),w=Oe(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=m||(w||!h?[on(i)]:Fu(i)),M=g!=="none";!m&&M&&k.push(...Bu(i,h,g,S));const E=[i,...k],R=await It(t,b),K=[];let Y=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&K.push(R[x]),d){const G=$u(o,a,S);K.push(R[G[0]],R[G[1]])}if(Y=[...Y,{placement:o,overflows:K}],!K.every(G=>G<=0)){var Z,W;const G=(((Z=s.flip)==null?void 0:Z.index)||0)+1,q=E[G];if(q)return{data:{index:G,overflows:Y},reset:{placement:q}};let j=(W=Y.filter(Q=>Q.overflows[0]<=0).sort((Q,N)=>Q.overflows[1]-N.overflows[1])[0])==null?void 0:W.placement;if(!j)switch(v){case"bestFit":{var te;const Q=(te=Y.filter(N=>{if(M){const D=Ve(N.placement);return D===y||D==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(D=>D>0).reduce((D,P)=>D+P,0)]).sort((N,D)=>N[1]-D[1])[0])==null?void 0:te[0];Q&&(j=Q);break}case"initialPlacement":j=i;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function is(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ls(e){return ju.some(t=>e[t]>=0)}const Ku=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=De(e,t);switch(r){case"referenceHidden":{const s=await It(t,{...o,elementContext:"reference"}),a=is(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ls(a)}}}case"escaped":{const s=await It(t,{...o,altBoundary:!0}),a=is(s,n.floating);return{data:{escapedOffsets:a,escaped:ls(a)}}}default:return{}}}}};async function Yu(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Oe(n),i=ft(n),l=Ve(n)==="y",c=["left","top"].includes(a)?-1:1,f=s&&l?-1:1,d=De(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof g=="number"&&(v=i==="end"?g*-1:g),l?{x:v*f,y:m*c}:{x:m*c,y:v*f}}const Xu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await Yu(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},qu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:b=>{let{x,y}=b;return{x,y}}},...l}=De(e,t),c={x:n,y:r},f=await It(t,l),d=Ve(Oe(o)),m=lr(d);let v=c[m],g=c[d];if(s){const b=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=v+f[b],w=v-f[x];v=ir(y,v,w)}if(a){const b=d==="y"?"top":"left",x=d==="y"?"bottom":"right",y=g+f[b],w=g-f[x];g=ir(y,g,w)}const h=i.fn({...t,[m]:v,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[d]:a}}}}}},Zu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=De(e,t),f={x:n,y:r},d=Ve(o),m=lr(d);let v=f[m],g=f[d];const h=De(i,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const w=m==="y"?"height":"width",S=s.reference[m]-s.floating[w]+b.mainAxis,k=s.reference[m]+s.reference[w]-b.mainAxis;v<S?v=S:v>k&&(v=k)}if(c){var x,y;const w=m==="y"?"width":"height",S=["top","left"].includes(Oe(o)),k=s.reference[d]-s.floating[w]+(S&&((x=a.offset)==null?void 0:x[d])||0)+(S?0:b.crossAxis),M=s.reference[d]+s.reference[w]+(S?0:((y=a.offset)==null?void 0:y[d])||0)-(S?b.crossAxis:0);g<k?g=k:g>M&&(g=M)}return{[m]:v,[d]:g}}}},Ju=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...c}=De(e,t),f=await It(t,c),d=Oe(o),m=ft(o),v=Ve(o)==="y",{width:g,height:h}=s.floating;let b,x;d==="top"||d==="bottom"?(b=d,x=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(x=d,b=m==="end"?"top":"bottom");const y=h-f.top-f.bottom,w=g-f.left-f.right,S=Be(h-f[b],y),k=Be(g-f[x],w),M=!t.middlewareData.shift;let E=S,R=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=y),M&&!m){const Y=ve(f.left,0),Z=ve(f.right,0),W=ve(f.top,0),te=ve(f.bottom,0);v?R=g-2*(Y!==0||Z!==0?Y+Z:ve(f.left,f.right)):E=h-2*(W!==0||te!==0?W+te:ve(f.top,f.bottom))}await l({...t,availableWidth:R,availableHeight:E});const K=await a.getDimensions(i.floating);return g!==K.width||h!==K.height?{reset:{rects:!0}}:{}}}};function an(){return typeof window<"u"}function pt(e){return cs(e)?(e.nodeName||"").toLowerCase():"#document"}function be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Te(e){var t;return(t=(cs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cs(e){return an()?e instanceof Node||e instanceof be(e).Node:!1}function Ce(e){return an()?e instanceof Element||e instanceof be(e).Element:!1}function Ne(e){return an()?e instanceof HTMLElement||e instanceof be(e).HTMLElement:!1}function us(e){return!an()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof be(e).ShadowRoot}function Mt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qu(e){return["table","td","th"].includes(pt(e))}function ln(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function fr(e){const t=pr(),n=Ce(e)?Se(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ed(e){let t=We(e);for(;Ne(t)&&!mt(t);){if(fr(t))return t;if(ln(t))return null;t=We(t)}return null}function pr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mt(e){return["html","body","#document"].includes(pt(e))}function Se(e){return be(e).getComputedStyle(e)}function cn(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function We(e){if(pt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||us(e)&&e.host||Te(e);return us(t)?t.host:t}function ds(e){const t=We(e);return mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&Mt(t)?t:ds(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ds(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=be(o);if(s){const i=mr(a);return t.concat(a,a.visualViewport||[],Mt(o)?o:[],i&&n?At(i):[])}return t.concat(o,At(o,[],n))}function mr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fs(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=nn(n)!==s||nn(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function hr(e){return Ce(e)?e:e.contextElement}function ht(e){const t=hr(e);if(!Ne(t))return ke(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=fs(t);let a=(s?nn(n.width):n.width)/r,i=(s?nn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const td=ke(0);function ps(e){const t=be(e);return!pr()||!t.visualViewport?td:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==be(e)?!1:t}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=hr(e);let a=ke(1);t&&(r?Ce(r)&&(a=ht(r)):a=ht(e));const i=nd(s,n,r)?ps(s):ke(0);let l=(o.left+i.x)/a.x,c=(o.top+i.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(s){const m=be(s),v=r&&Ce(r)?be(r):r;let g=m,h=mr(g);for(;h&&r&&v!==g;){const b=ht(h),x=h.getBoundingClientRect(),y=Se(h),w=x.left+(h.clientLeft+parseFloat(y.paddingLeft))*b.x,S=x.top+(h.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,c*=b.y,f*=b.x,d*=b.y,l+=w,c+=S,g=be(h),h=mr(g)}}return sn({width:f,height:d,x:l,y:c})}function gr(e,t){const n=cn(e).scrollLeft;return t?t.left+n:Je(Te(e)).left+n}function ms(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:gr(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function rd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Te(r),i=t?ln(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},c=ke(1);const f=ke(0),d=Ne(r);if((d||!d&&!s)&&((pt(r)!=="body"||Mt(a))&&(l=cn(r)),Ne(r))){const v=Je(r);c=ht(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const m=a&&!d&&!s?ms(a,l,!0):ke(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+m.x,y:n.y*c.y-l.scrollTop*c.y+f.y+m.y}}function od(e){return Array.from(e.getClientRects())}function sd(e){const t=Te(e),n=cn(e),r=e.ownerDocument.body,o=ve(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ve(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+gr(e);const i=-n.scrollTop;return Se(r).direction==="rtl"&&(a+=ve(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function ad(e,t){const n=be(e),r=Te(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const c=pr();(!c||c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:i,y:l}}function id(e,t){const n=Je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ne(e)?ht(e):ke(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:a,height:i,x:l,y:c}}function hs(e,t,n){let r;if(t==="viewport")r=ad(e,n);else if(t==="document")r=sd(Te(e));else if(Ce(t))r=id(t,n);else{const o=ps(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return sn(r)}function gs(e,t){const n=We(e);return n===t||!Ce(n)||mt(n)?!1:Se(n).position==="fixed"||gs(n,t)}function ld(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(i=>Ce(i)&&pt(i)!=="body"),o=null;const s=Se(e).position==="fixed";let a=s?We(e):e;for(;Ce(a)&&!mt(a);){const i=Se(a),l=fr(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Mt(a)&&!l&&gs(e,a))?r=r.filter(f=>f!==a):o=i,a=We(a)}return t.set(e,r),r}function cd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ln(t)?[]:ld(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((c,f)=>{const d=hs(t,f,o);return c.top=ve(d.top,c.top),c.right=Be(d.right,c.right),c.bottom=Be(d.bottom,c.bottom),c.left=ve(d.left,c.left),c},hs(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ud(e){const{width:t,height:n}=fs(e);return{width:t,height:n}}function dd(e,t,n){const r=Ne(t),o=Te(t),s=n==="fixed",a=Je(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=ke(0);if(r||!r&&!s)if((pt(t)!=="body"||Mt(o))&&(i=cn(t)),r){const m=Je(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&(l.x=gr(o));const c=o&&!r&&!s?ms(o,i):ke(0),f=a.left+i.scrollLeft-l.x-c.x,d=a.top+i.scrollTop-l.y-c.y;return{x:f,y:d,width:a.width,height:a.height}}function vr(e){return Se(e).position==="static"}function vs(e,t){if(!Ne(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Te(e)===n&&(n=n.ownerDocument.body),n}function bs(e,t){const n=be(e);if(ln(e))return n;if(!Ne(e)){let o=We(e);for(;o&&!mt(o);){if(Ce(o)&&!vr(o))return o;o=We(o)}return n}let r=vs(e,t);for(;r&&Qu(r)&&vr(r);)r=vs(r,t);return r&&mt(r)&&vr(r)&&!fr(r)?n:r||ed(e)||n}const fd=async function(e){const t=this.getOffsetParent||bs,n=this.getDimensions,r=await n(e.floating);return{reference:dd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pd(e){return Se(e).direction==="rtl"}const md={convertOffsetParentRelativeRectToViewportRelativeRect:rd,getDocumentElement:Te,getClippingRect:cd,getOffsetParent:bs,getElementRects:fd,getClientRects:od,getDimensions:ud,getScale:ht,isElement:Ce,isRTL:pd};function xs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hd(e,t){let n=null,r;const o=Te(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:f,top:d,width:m,height:v}=c;if(i||t(),!m||!v)return;const g=rn(d),h=rn(o.clientWidth-(f+m)),b=rn(o.clientHeight-(d+v)),x=rn(f),w={rootMargin:-g+"px "+-h+"px "+-b+"px "+-x+"px",threshold:ve(0,Be(1,l))||1};let S=!0;function k(M){const E=M[0].intersectionRatio;if(E!==l){if(!S)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!xs(c,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return a(!0),s}function gd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=hr(e),f=o||s?[...c?At(c):[],...At(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const d=c&&i?hd(c,n):null;let m=-1,v=null;a&&(v=new ResizeObserver(x=>{let[y]=x;y&&y.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),c&&!l&&v.observe(c),v.observe(t));let g,h=l?Je(e):null;l&&b();function b(){const x=Je(e);h&&!xs(h,x)&&n(),h=x,g=requestAnimationFrame(b)}return n(),()=>{var x;f.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d?.(),(x=v)==null||x.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const vd=Xu,bd=qu,xd=Uu,yd=Ju,wd=Ku,ys=Gu,Cd=Zu,Sd=(e,t,n)=>{const r=new Map,o={platform:md,...n},s={...o.platform,_c:r};return Wu(e,t,{...o,platform:s})};var un=typeof document<"u"?T.useLayoutEffect:T.useEffect;function dn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!dn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ws(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cs(e,t){const n=ws(e);return Math.round(t*n)/n}function br(e){const t=u.useRef(e);return un(()=>{t.current=e}),t}function Ed(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[f,d]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=u.useState(r);dn(m,r)||v(r);const[g,h]=u.useState(null),[b,x]=u.useState(null),y=u.useCallback(N=>{N!==M.current&&(M.current=N,h(N))},[]),w=u.useCallback(N=>{N!==E.current&&(E.current=N,x(N))},[]),S=s||g,k=a||b,M=u.useRef(null),E=u.useRef(null),R=u.useRef(f),K=l!=null,Y=br(l),Z=br(o),W=br(c),te=u.useCallback(()=>{if(!M.current||!E.current)return;const N={placement:t,strategy:n,middleware:m};Z.current&&(N.platform=Z.current),Sd(M.current,E.current,N).then(D=>{const P={...D,isPositioned:W.current!==!1};G.current&&!dn(R.current,P)&&(R.current=P,Xt.flushSync(()=>{d(P)}))})},[m,t,n,Z,W]);un(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[c]);const G=u.useRef(!1);un(()=>(G.current=!0,()=>{G.current=!1}),[]),un(()=>{if(S&&(M.current=S),k&&(E.current=k),S&&k){if(Y.current)return Y.current(S,k,te);te()}},[S,k,te,Y,K]);const q=u.useMemo(()=>({reference:M,floating:E,setReference:y,setFloating:w}),[y,w]),j=u.useMemo(()=>({reference:S,floating:k}),[S,k]),Q=u.useMemo(()=>{const N={position:n,left:0,top:0};if(!j.floating)return N;const D=Cs(j.floating,f.x),P=Cs(j.floating,f.y);return i?{...N,transform:"translate("+D+"px, "+P+"px)",...ws(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:P}},[n,i,j.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:te,refs:q,elements:j,floatingStyles:Q}),[f,te,q,j,Q])}const Pd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ys({element:r.current,padding:o}).fn(n):{}:r?ys({element:r,padding:o}).fn(n):{}}}},Rd=(e,t)=>({...vd(e),options:[e,t]}),kd=(e,t)=>({...bd(e),options:[e,t]}),Td=(e,t)=>({...Cd(e),options:[e,t]}),Nd=(e,t)=>({...xd(e),options:[e,t]}),_d=(e,t)=>({...yd(e),options:[e,t]}),Id=(e,t)=>({...wd(e),options:[e,t]}),Md=(e,t)=>({...Pd(e),options:[e,t]});var Ad="Arrow",Ss=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(ae.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ss.displayName=Ad;var Dd=Ss;function Es(e){const[t,n]=u.useState(void 0);return he(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,i=c.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var xr="Popper",[Ps,gt]=Ae(xr),[Od,Rs]=Ps(xr),ks=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return p.jsx(Od,{scope:t,anchor:r,onAnchorChange:o,children:n})};ks.displayName=xr;var Ts="PopperAnchor",Ns=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Rs(Ts,n),a=u.useRef(null),i=le(t,a),l=u.useRef(null);return u.useEffect(()=>{const c=l.current;l.current=r?.current||a.current,c!==l.current&&s.onAnchorChange(l.current)}),r?null:p.jsx(ae.div,{...o,ref:i})});Ns.displayName=Ts;var yr="PopperContent",[jd,Ld]=Ps(yr),_s=u.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:g,...h}=e,b=Rs(yr,n),[x,y]=u.useState(null),w=le(t,C=>y(C)),[S,k]=u.useState(null),M=Es(S),E=M?.width??0,R=M?.height??0,K=r+(s!=="center"?"-"+s:""),Y=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Z=Array.isArray(c)?c:[c],W=Z.length>0,te={padding:Y,boundary:Z.filter($d),altBoundary:W},{refs:G,floatingStyles:q,placement:j,isPositioned:Q,middlewareData:N}=Ed({strategy:"fixed",placement:K,whileElementsMounted:(...C)=>gd(...C,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[Rd({mainAxis:o+R,alignmentAxis:a}),l&&kd({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Td():void 0,...te}),l&&Nd({...te}),_d({...te,apply:({elements:C,rects:I,availableWidth:$,availableHeight:L})=>{const{width:J,height:ee}=I.reference,ne=C.floating.style;ne.setProperty("--radix-popper-available-width",`${$}px`),ne.setProperty("--radix-popper-available-height",`${L}px`),ne.setProperty("--radix-popper-anchor-width",`${J}px`),ne.setProperty("--radix-popper-anchor-height",`${ee}px`)}}),S&&Md({element:S,padding:i}),Fd({arrowWidth:E,arrowHeight:R}),m&&Id({strategy:"referenceHidden",...te})]}),[D,P]=As(j),H=we(g);he(()=>{Q&&H?.()},[Q,H]);const re=N.arrow?.x,_=N.arrow?.y,A=N.arrow?.centerOffset!==0,[F,O]=u.useState();return he(()=>{x&&O(window.getComputedStyle(x).zIndex)},[x]),p.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:Q?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(jd,{scope:n,placedSide:D,onArrowChange:k,arrowX:re,arrowY:_,shouldHideArrow:A,children:p.jsx(ae.div,{"data-side":D,"data-align":P,...h,ref:w,style:{...h.style,animation:Q?void 0:"none"}})})})});_s.displayName=yr;var Is="PopperArrow",zd={top:"bottom",right:"left",bottom:"top",left:"right"},Ms=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ld(Is,r),a=zd[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]: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:p.jsx(Dd,{...o,ref:n,style:{...o.style,display:"block"}})})});Ms.displayName=Is;function $d(e){return e!==null}var Fd=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,f]=As(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+i/2,v=(o.arrow?.y??0)+l/2;let g="",h="";return c==="bottom"?(g=a?d:`${m}px`,h=`${-l}px`):c==="top"?(g=a?d:`${m}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=a?d:`${v}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=a?d:`${v}px`),{data:{x:g,y:h}}}});function As(e){const[t,n="center"]=e.split("-");return[t,n]}var fn=ks,wr=Ns,Cr=_s,Sr=Ms,Hd="Portal",pn=u.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=u.useState(!1);he(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Gn.createPortal(p.jsx(ae.div,{...r,ref:t}),a):null});pn.displayName=Hd;function Bd(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var je=e=>{const{present:t,children:n}=e,r=Vd(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=le(r.ref,Wd(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};je.displayName="Presence";function Vd(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),a=e?"mounted":"unmounted",[i,l]=Bd(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=mn(r.current);s.current=i==="mounted"?c:"none"},[i]),he(()=>{const c=r.current,f=o.current;if(f!==e){const m=s.current,v=mn(c);e?l("MOUNT"):v==="none"||c?.display==="none"?l("UNMOUNT"):l(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),he(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,d=v=>{const h=mn(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=v=>{v.target===t&&(s.current=mn(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function mn(e){return e?.animationName||"none"}function Wd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Er="rovingFocusGroup.onEntryFocus",Gd={bubbles:!1,cancelable:!0},Dt="RovingFocusGroup",[Pr,Ds,Ud]=tr(Dt),[Kd,hn]=Ae(Dt,[Ud]),[Yd,Xd]=Kd(Dt),Os=u.forwardRef((e,t)=>p.jsx(Pr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Pr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(qd,{...e,ref:t})})}));Os.displayName=Dt;var qd=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...d}=e,m=u.useRef(null),v=le(t,m),g=en(s),[h,b]=Fe({prop:a,defaultProp:i??null,onChange:l,caller:Dt}),[x,y]=u.useState(!1),w=we(c),S=Ds(n),k=u.useRef(!1),[M,E]=u.useState(0);return u.useEffect(()=>{const R=m.current;if(R)return R.addEventListener(Er,w),()=>R.removeEventListener(Er,w)},[w]),p.jsx(Yd,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:u.useCallback(R=>b(R),[b]),onItemShiftTab:u.useCallback(()=>y(!0),[]),onFocusableItemAdd:u.useCallback(()=>E(R=>R+1),[]),onFocusableItemRemove:u.useCallback(()=>E(R=>R-1),[]),children:p.jsx(ae.div,{tabIndex:x||M===0?-1:0,"data-orientation":r,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{k.current=!0}),onFocus:U(e.onFocus,R=>{const K=!k.current;if(R.target===R.currentTarget&&K&&!x){const Y=new CustomEvent(Er,Gd);if(R.currentTarget.dispatchEvent(Y),!Y.defaultPrevented){const Z=S().filter(j=>j.focusable),W=Z.find(j=>j.active),te=Z.find(j=>j.id===h),q=[W,te,...Z].filter(Boolean).map(j=>j.ref.current);zs(q,f)}}k.current=!1}),onBlur:U(e.onBlur,()=>y(!1))})})}),js="RovingFocusGroupItem",Ls=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,l=Re(),c=s||l,f=Xd(js,n),d=f.currentTabStopId===c,m=Ds(n),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:h}=f;return u.useEffect(()=>{if(r)return v(),()=>g()},[r,v,g]),p.jsx(Pr.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:p.jsx(ae.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:U(e.onMouseDown,b=>{r?f.onItemFocus(c):b.preventDefault()}),onFocus:U(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:U(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=Qd(b,f.orientation,f.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let w=m().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const S=w.indexOf(b.currentTarget);w=f.loop?ef(w,S+1):w.slice(S+1)}setTimeout(()=>zs(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:h!=null}):a})})});Ls.displayName=js;var Zd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Jd(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Qd(e,t,n){const r=Jd(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Zd[r]}function zs(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ef(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $s=Os,Fs=Ls,tf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,gn=new WeakMap,vn={},Rr=0,Hs=function(e){return e&&(e.host||Hs(e.parentNode))},nf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hs(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},rf=function(e,t,n,r){var o=nf(t,Array.isArray(e)?e:[e]);vn[n]||(vn[n]=new WeakMap);var s=vn[n],a=[],i=new Set,l=new Set(o),c=function(d){!d||i.has(d)||(i.add(d),c(d.parentNode))};o.forEach(c);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(m){if(i.has(m))f(m);else try{var v=m.getAttribute(r),g=v!==null&&v!=="false",h=(vt.get(m)||0)+1,b=(s.get(m)||0)+1;vt.set(m,h),s.set(m,b),a.push(m),h===1&&g&&gn.set(m,!0),b===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return f(t),i.clear(),Rr++,function(){a.forEach(function(d){var m=vt.get(d)-1,v=s.get(d)-1;vt.set(d,m),s.set(d,v),m||(gn.has(d)||d.removeAttribute(r),gn.delete(d)),v||d.removeAttribute(n)}),Rr--,Rr||(vt=new WeakMap,vt=new WeakMap,gn=new WeakMap,vn={})}},Bs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=tf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),rf(r,o,n,"aria-hidden")):function(){return null}},_e=function(){return _e=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},_e.apply(this,arguments)};function Vs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function of(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var bn="right-scroll-bar-position",xn="width-before-scroll-bar",sf="with-scroll-bars-hidden",af="--removed-body-scroll-bar-size";function kr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lf(e,t){var n=T.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var cf=typeof window<"u"?u.useLayoutEffect:u.useEffect,Ws=new WeakMap;function uf(e,t){var n=lf(null,function(r){return e.forEach(function(o){return kr(o,r)})});return cf(function(){var r=Ws.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||kr(i,null)}),s.forEach(function(i){o.has(i)||kr(i,a)})}Ws.set(n,e)},[e]),n}function df(e){return e}function ff(e,t){t===void 0&&(t=df);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(f){a.push(f),c()},filter:function(f){return a=a.filter(f),n}}}};return o}function pf(e){e===void 0&&(e={});var t=ff(null);return t.options=_e({async:!0,ssr:!1},e),t}var Gs=function(e){var t=e.sideCar,n=Vs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,_e({},n))};Gs.isSideCarExport=!0;function mf(e,t){return e.useMedium(t),Gs}var Us=pf(),Tr=function(){},yn=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Tr,onWheelCapture:Tr,onTouchMoveCapture:Tr}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,v=e.noIsolation,g=e.inert,h=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,y=e.gapMode,w=Vs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,k=uf([n,t]),M=_e(_e({},w),o);return u.createElement(u.Fragment,null,f&&u.createElement(S,{sideCar:Us,removeScrollBar:c,shards:d,noIsolation:v,inert:g,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:y}),a?u.cloneElement(u.Children.only(i),_e(_e({},M),{ref:k})):u.createElement(x,_e({},M,{className:l,ref:k}),i))});yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yn.classNames={fullWidth:xn,zeroRight:bn};var hf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hf();return t&&e.setAttribute("nonce",t),e}function vf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gf())&&(vf(t,n),bf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yf=function(){var e=xf();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ks=function(){var e=yf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},wf={left:0,top:0,right:0,gap:0},Nr=function(e){return parseInt(e||"",10)||0},Cf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nr(n),Nr(r),Nr(o)]},Sf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wf;var t=Cf(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ef=Ks(),bt="data-scroll-locked",Pf=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
83
|
+
.`.concat(sf,` {
|
|
84
|
+
overflow: hidden `).concat(r,`;
|
|
85
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
86
|
+
}
|
|
87
|
+
body[`).concat(bt,`] {
|
|
88
|
+
overflow: hidden `).concat(r,`;
|
|
89
|
+
overscroll-behavior: contain;
|
|
90
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
91
|
+
padding-left: `.concat(o,`px;
|
|
92
|
+
padding-top: `).concat(s,`px;
|
|
93
|
+
padding-right: `).concat(a,`px;
|
|
94
|
+
margin-left:0;
|
|
95
|
+
margin-top:0;
|
|
96
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
97
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.`).concat(bn,` {
|
|
101
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.`).concat(xn,` {
|
|
105
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.`).concat(bn," .").concat(bn,` {
|
|
109
|
+
right: 0 `).concat(r,`;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.`).concat(xn," .").concat(xn,` {
|
|
113
|
+
margin-right: 0 `).concat(r,`;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
body[`).concat(bt,`] {
|
|
117
|
+
`).concat(af,": ").concat(i,`px;
|
|
118
|
+
}
|
|
119
|
+
`)},Ys=function(){var e=parseInt(document.body.getAttribute(bt)||"0",10);return isFinite(e)?e:0},Rf=function(){u.useEffect(function(){return document.body.setAttribute(bt,(Ys()+1).toString()),function(){var e=Ys()-1;e<=0?document.body.removeAttribute(bt):document.body.setAttribute(bt,e.toString())}},[])},kf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Rf();var s=u.useMemo(function(){return Sf(o)},[o]);return u.createElement(Ef,{styles:Pf(s,!t,o,n?"":"!important")})},_r=!1;if(typeof window<"u")try{var wn=Object.defineProperty({},"passive",{get:function(){return _r=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{_r=!1}var xt=_r?{passive:!1}:!1,Tf=function(e){return e.tagName==="TEXTAREA"},Xs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Tf(e)&&n[t]==="visible")},Nf=function(e){return Xs(e,"overflowY")},_f=function(e){return Xs(e,"overflowX")},qs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Zs(e,r);if(o){var s=Js(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},If=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Mf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Zs=function(e,t){return e==="v"?Nf(t):_f(t)},Js=function(e,t){return e==="v"?If(t):Mf(t)},Af=function(e,t){return e==="h"&&t==="rtl"?-1:1},Df=function(e,t,n,r,o){var s=Af(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,l=t.contains(i),c=!1,f=a>0,d=0,m=0;do{var v=Js(e,i),g=v[0],h=v[1],b=v[2],x=h-b-s*g;(g||x)&&Zs(e,i)&&(d+=x,m+=g),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(d)<1||!f&&Math.abs(m)<1)&&(c=!0),c},Cn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qs=function(e){return[e.deltaX,e.deltaY]},ea=function(e){return e&&"current"in e?e.current:e},Of=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jf=function(e){return`
|
|
120
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
121
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
122
|
+
`)},Lf=0,yt=[];function zf(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Lf++)[0],s=u.useState(Ks)[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=of([e.lockRef.current],(e.shards||[]).map(ea),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var x=Cn(h),y=n.current,w="deltaX"in h?h.deltaX:y[0]-x[0],S="deltaY"in h?h.deltaY:y[1]-x[1],k,M=h.target,E=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in h&&E==="h"&&M.type==="range")return!1;var R=qs(E,M);if(!R)return!0;if(R?k=E:(k=E==="v"?"h":"v",R=qs(E,M)),!R)return!1;if(!r.current&&"changedTouches"in h&&(w||S)&&(r.current=k),!k)return!0;var K=r.current||k;return Df(K,b,h,K==="h"?w:S)},[]),l=u.useCallback(function(h){var b=h;if(!(!yt.length||yt[yt.length-1]!==s)){var x="deltaY"in b?Qs(b):Cn(b),y=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&Of(k.delta,x)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var w=(a.current.shards||[]).map(ea).filter(Boolean).filter(function(k){return k.contains(b.target)}),S=w.length>0?i(b,w[0]):!a.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=u.useCallback(function(h,b,x,y){var w={name:h,delta:b,target:x,should:y,shadowParent:$f(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),f=u.useCallback(function(h){n.current=Cn(h),r.current=void 0},[]),d=u.useCallback(function(h){c(h.type,Qs(h),h.target,i(h,e.lockRef.current))},[]),m=u.useCallback(function(h){c(h.type,Cn(h),h.target,i(h,e.lockRef.current))},[]);u.useEffect(function(){return yt.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,xt),document.addEventListener("touchmove",l,xt),document.addEventListener("touchstart",f,xt),function(){yt=yt.filter(function(h){return h!==s}),document.removeEventListener("wheel",l,xt),document.removeEventListener("touchmove",l,xt),document.removeEventListener("touchstart",f,xt)}},[]);var v=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(s,{styles:jf(o)}):null,v?u.createElement(kf,{gapMode:e.gapMode}):null)}function $f(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ff=mf(Us,zf);var Ir=u.forwardRef(function(e,t){return u.createElement(yn,_e({},e,{ref:t,sideCar:Ff}))});Ir.classNames=yn.classNames;var Mr=["Enter"," "],Hf=["ArrowDown","PageUp","Home"],ta=["ArrowUp","PageDown","End"],Bf=[...Hf,...ta],Vf={ltr:[...Mr,"ArrowRight"],rtl:[...Mr,"ArrowLeft"]},Wf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ot="Menu",[jt,Gf,Uf]=tr(Ot),[Qe,na]=Ae(Ot,[Uf,gt,hn]),Lt=gt(),ra=hn(),[oa,Ge]=Qe(Ot),[Kf,zt]=Qe(Ot),sa=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=Lt(t),[l,c]=u.useState(null),f=u.useRef(!1),d=we(s),m=en(o);return u.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),p.jsx(fn,{...i,children:p.jsx(oa,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:p.jsx(Kf,{scope:t,onClose:u.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:m,modal:a,children:r})})})};sa.displayName=Ot;var Yf="MenuAnchor",Ar=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lt(n);return p.jsx(wr,{...o,...r,ref:t})});Ar.displayName=Yf;var Dr="MenuPortal",[Xf,aa]=Qe(Dr,{forceMount:void 0}),ia=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Ge(Dr,t);return p.jsx(Xf,{scope:t,forceMount:n,children:p.jsx(je,{present:n||s.open,children:p.jsx(pn,{asChild:!0,container:o,children:r})})})};ia.displayName=Dr;var ye="MenuContent",[qf,Or]=Qe(ye),la=u.forwardRef((e,t)=>{const n=aa(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Ge(ye,e.__scopeMenu),a=zt(ye,e.__scopeMenu);return p.jsx(jt.Provider,{scope:e.__scopeMenu,children:p.jsx(je,{present:r||s.open,children:p.jsx(jt.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(Zf,{...o,ref:t}):p.jsx(Jf,{...o,ref:t})})})})}),Zf=u.forwardRef((e,t)=>{const n=Ge(ye,e.__scopeMenu),r=u.useRef(null),o=le(t,r);return u.useEffect(()=>{const s=r.current;if(s)return Bs(s)},[]),p.jsx(jr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Jf=u.forwardRef((e,t)=>{const n=Ge(ye,e.__scopeMenu);return p.jsx(jr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Qf=dt("MenuContent.ScrollLock"),jr=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:v,disableOutsideScroll:g,...h}=e,b=Ge(ye,n),x=zt(ye,n),y=Lt(n),w=ra(n),S=Gf(n),[k,M]=u.useState(null),E=u.useRef(null),R=le(t,E,b.onContentChange),K=u.useRef(0),Y=u.useRef(""),Z=u.useRef(0),W=u.useRef(null),te=u.useRef("right"),G=u.useRef(0),q=g?Ir:u.Fragment,j=g?{as:Qf,allowPinchZoom:!0}:void 0,Q=D=>{const P=Y.current+D,H=S().filter(C=>!C.disabled),re=document.activeElement,_=H.find(C=>C.ref.current===re)?.textValue,A=H.map(C=>C.textValue),F=dp(A,P,_),O=H.find(C=>C.textValue===F)?.ref.current;(function C(I){Y.current=I,window.clearTimeout(K.current),I!==""&&(K.current=window.setTimeout(()=>C(""),1e3))})(P),O&&setTimeout(()=>O.focus())};u.useEffect(()=>()=>window.clearTimeout(K.current),[]),Jo();const N=u.useCallback(D=>te.current===W.current?.side&&pp(D,W.current?.area),[]);return p.jsx(qf,{scope:n,searchRef:Y,onItemEnter:u.useCallback(D=>{N(D)&&D.preventDefault()},[N]),onItemLeave:u.useCallback(D=>{N(D)||(E.current?.focus(),M(null))},[N]),onTriggerLeave:u.useCallback(D=>{N(D)&&D.preventDefault()},[N]),pointerGraceTimerRef:Z,onPointerGraceIntentChange:u.useCallback(D=>{W.current=D},[]),children:p.jsx(q,{...j,children:p.jsx(ar,{asChild:!0,trapped:o,onMountAutoFocus:U(s,D=>{D.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(tn,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:m,onDismiss:v,children:p.jsx($s,{asChild:!0,...w,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:M,onEntryFocus:U(l,D=>{x.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Cr,{role:"menu","aria-orientation":"vertical","data-state":Ra(b.open),"data-radix-menu-content":"",dir:x.dir,...y,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:U(h.onKeyDown,D=>{const H=D.target.closest("[data-radix-menu-content]")===D.currentTarget,re=D.ctrlKey||D.altKey||D.metaKey,_=D.key.length===1;H&&(D.key==="Tab"&&D.preventDefault(),!re&&_&&Q(D.key));const A=E.current;if(D.target!==A||!Bf.includes(D.key))return;D.preventDefault();const O=S().filter(C=>!C.disabled).map(C=>C.ref.current);ta.includes(D.key)&&O.reverse(),cp(O)}),onBlur:U(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(K.current),Y.current="")}),onPointerMove:U(e.onPointerMove,Ft(D=>{const P=D.target,H=G.current!==D.clientX;if(D.currentTarget.contains(P)&&H){const re=D.clientX>G.current?"right":"left";te.current=re,G.current=D.clientX}}))})})})})})})});la.displayName=ye;var ep="MenuGroup",Lr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ae.div,{role:"group",...r,ref:t})});Lr.displayName=ep;var tp="MenuLabel",ca=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ae.div,{...r,ref:t})});ca.displayName=tp;var Sn="MenuItem",ua="menu.itemSelect",En=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=u.useRef(null),a=zt(Sn,e.__scopeMenu),i=Or(Sn,e.__scopeMenu),l=le(t,s),c=u.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(ua,{bubbles:!0,cancelable:!0});d.addEventListener(ua,v=>r?.(v),{once:!0}),Ko(d,m),m.defaultPrevented?c.current=!1:a.onClose()}};return p.jsx(da,{...o,ref:l,disabled:n,onClick:U(e.onClick,f),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:U(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:U(e.onKeyDown,d=>{const m=i.searchRef.current!=="";n||m&&d.key===" "||Mr.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});En.displayName=Sn;var da=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=Or(Sn,n),i=ra(n),l=u.useRef(null),c=le(t,l),[f,d]=u.useState(!1),[m,v]=u.useState("");return u.useEffect(()=>{const g=l.current;g&&v((g.textContent??"").trim())},[s.children]),p.jsx(jt.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(Fs,{asChild:!0,...i,focusable:!r,children:p.jsx(ae.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:c,onPointerMove:U(e.onPointerMove,Ft(g=>{r?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,Ft(g=>a.onItemLeave(g))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),np="MenuCheckboxItem",fa=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(va,{scope:e.__scopeMenu,checked:n,children:p.jsx(En,{role:"menuitemcheckbox","aria-checked":Pn(n)?"mixed":n,...o,ref:t,"data-state":Fr(n),onSelect:U(o.onSelect,()=>r?.(Pn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});fa.displayName=np;var pa="MenuRadioGroup",[rp,op]=Qe(pa,{value:void 0,onValueChange:()=>{}}),ma=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=we(r);return p.jsx(rp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Lr,{...o,ref:t})})});ma.displayName=pa;var ha="MenuRadioItem",ga=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=op(ha,e.__scopeMenu),s=n===o.value;return p.jsx(va,{scope:e.__scopeMenu,checked:s,children:p.jsx(En,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Fr(s),onSelect:U(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ga.displayName=ha;var zr="MenuItemIndicator",[va,sp]=Qe(zr,{checked:!1}),ba=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=sp(zr,n);return p.jsx(je,{present:r||Pn(s.checked)||s.checked===!0,children:p.jsx(ae.span,{...o,ref:t,"data-state":Fr(s.checked)})})});ba.displayName=zr;var ap="MenuSeparator",xa=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ae.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});xa.displayName=ap;var ip="MenuArrow",ya=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lt(n);return p.jsx(Sr,{...o,...r,ref:t})});ya.displayName=ip;var $r="MenuSub",[lp,wa]=Qe($r),Ca=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=Ge($r,t),a=Lt(t),[i,l]=u.useState(null),[c,f]=u.useState(null),d=we(o);return u.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),p.jsx(fn,{...a,children:p.jsx(oa,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(lp,{scope:t,contentId:Re(),triggerId:Re(),trigger:i,onTriggerChange:l,children:n})})})};Ca.displayName=$r;var $t="MenuSubTrigger",Sa=u.forwardRef((e,t)=>{const n=Ge($t,e.__scopeMenu),r=zt($t,e.__scopeMenu),o=wa($t,e.__scopeMenu),s=Or($t,e.__scopeMenu),a=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const d=i.current;return()=>{window.clearTimeout(d),l(null)}},[i,l]),p.jsx(Ar,{asChild:!0,...c,children:p.jsx(da,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ra(n.open),...e,ref:Qt(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:U(e.onPointerMove,Ft(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:U(e.onPointerLeave,Ft(d=>{f();const m=n.content?.getBoundingClientRect();if(m){const v=n.content?.dataset.side,g=v==="right",h=g?-5:5,b=m[g?"left":"right"],x=m[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:b,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:b,y:m.bottom}],side:v}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:U(e.onKeyDown,d=>{const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||Vf[r.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});Sa.displayName=$t;var Ea="MenuSubContent",Pa=u.forwardRef((e,t)=>{const n=aa(ye,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Ge(ye,e.__scopeMenu),a=zt(ye,e.__scopeMenu),i=wa(Ea,e.__scopeMenu),l=u.useRef(null),c=le(t,l);return p.jsx(jt.Provider,{scope:e.__scopeMenu,children:p.jsx(je,{present:r||s.open,children:p.jsx(jt.Slot,{scope:e.__scopeMenu,children:p.jsx(jr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{a.isUsingKeyboardRef.current&&l.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:U(e.onFocusOutside,f=>{f.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:U(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:U(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),m=Wf[a.dir].includes(f.key);d&&m&&(s.onOpenChange(!1),i.trigger?.focus(),f.preventDefault())})})})})})});Pa.displayName=Ea;function Ra(e){return e?"open":"closed"}function Pn(e){return e==="indeterminate"}function Fr(e){return Pn(e)?"indeterminate":e?"checked":"unchecked"}function cp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function up(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function dp(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=up(e,Math.max(s,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function fp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],c=i.x,f=i.y,d=l.x,m=l.y;f>r!=m>r&&n<(d-c)*(r-f)/(m-f)+c&&(o=!o)}return o}function pp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return fp(n,t)}function Ft(e){return t=>t.pointerType==="mouse"?e(t):void 0}var mp=sa,hp=Ar,gp=ia,vp=la,bp=Lr,xp=ca,yp=En,wp=fa,Cp=ma,Sp=ga,Ep=ba,Pp=xa,Rp=ya,kp=Ca,Tp=Sa,Np=Pa,Rn="DropdownMenu",[_p]=Ae(Rn,[na]),ge=na(),[Ip,ka]=_p(Rn),Ta=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,l=ge(t),c=u.useRef(null),[f,d]=Fe({prop:o,defaultProp:s??!1,onChange:a,caller:Rn});return p.jsx(Ip,{scope:t,triggerId:Re(),triggerRef:c,contentId:Re(),open:f,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(m=>!m),[d]),modal:i,children:p.jsx(mp,{...l,open:f,onOpenChange:d,dir:r,modal:i,children:n})})};Ta.displayName=Rn;var Na="DropdownMenuTrigger",_a=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ka(Na,n),a=ge(n);return p.jsx(hp,{asChild:!0,...a,children:p.jsx(ae.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Qt(t,s.triggerRef),onPointerDown:U(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:U(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});_a.displayName=Na;var Mp="DropdownMenuPortal",Ia=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ge(t);return p.jsx(gp,{...r,...n})};Ia.displayName=Mp;var Ma="DropdownMenuContent",Aa=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ka(Ma,n),s=ge(n),a=u.useRef(!1);return p.jsx(vp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:U(e.onCloseAutoFocus,i=>{a.current||o.triggerRef.current?.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:U(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,f=l.button===2||c;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Aa.displayName=Ma;var Ap="DropdownMenuGroup",Da=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(bp,{...o,...r,ref:t})});Da.displayName=Ap;var Dp="DropdownMenuLabel",Oa=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(xp,{...o,...r,ref:t})});Oa.displayName=Dp;var Op="DropdownMenuItem",ja=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(yp,{...o,...r,ref:t})});ja.displayName=Op;var jp="DropdownMenuCheckboxItem",La=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(wp,{...o,...r,ref:t})});La.displayName=jp;var Lp="DropdownMenuRadioGroup",za=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(Cp,{...o,...r,ref:t})});za.displayName=Lp;var zp="DropdownMenuRadioItem",$a=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(Sp,{...o,...r,ref:t})});$a.displayName=zp;var $p="DropdownMenuItemIndicator",Fa=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(Ep,{...o,...r,ref:t})});Fa.displayName=$p;var Fp="DropdownMenuSeparator",Ha=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(Pp,{...o,...r,ref:t})});Ha.displayName=Fp;var Hp="DropdownMenuArrow",Bp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(Rp,{...o,...r,ref:t})});Bp.displayName=Hp;var Vp=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,a=ge(t),[i,l]=Fe({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(kp,{...a,open:i,onOpenChange:l,children:n})},Wp="DropdownMenuSubTrigger",Ba=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(Tp,{...o,...r,ref:t})});Ba.displayName=Wp;var Gp="DropdownMenuSubContent",Va=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ge(n);return p.jsx(Np,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Va.displayName=Gp;var Up=Ta,Kp=_a,Yp=Ia,Xp=Aa,qp=Da,Zp=Oa,Jp=ja,Qp=La,em=za,tm=$a,Wa=Fa,nm=Ha,rm=Vp,om=Ba,sm=Va;const Ga=({...e})=>p.jsx(Up,{"data-slot":"dropdown-menu",...e}),Ua=({...e})=>p.jsx(Kp,{"data-slot":"dropdown-menu-trigger",...e}),Ka=({className:e,sideOffset:t=4,...n})=>p.jsx(Yp,{children:p.jsx(Xp,{"data-slot":"dropdown-menu-content",sideOffset:t,className:X("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})}),am=({...e})=>p.jsx(qp,{"data-slot":"dropdown-menu-group",...e}),Ya=({className:e,inset:t,variant:n="default",...r})=>p.jsx(Jp,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:X("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r}),im=({className:e,children:t,checked:n,...r})=>p.jsxs(Qp,{"data-slot":"dropdown-menu-checkbox-item",className:X("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[p.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:p.jsx(Wa,{children:p.jsx(Qn,{className:"size-4"})})}),t]}),lm=({...e})=>p.jsx(em,{"data-slot":"dropdown-menu-radio-group",...e}),cm=({className:e,children:t,...n})=>p.jsxs(tm,{"data-slot":"dropdown-menu-radio-item",className:X("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[p.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:p.jsx(Wa,{children:p.jsx(ou,{className:"size-2 fill-current"})})}),t]}),um=({className:e,inset:t,...n})=>p.jsx(Zp,{"data-slot":"dropdown-menu-label","data-inset":t,className:X("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n}),dm=({className:e,...t})=>p.jsx(nm,{"data-slot":"dropdown-menu-separator",className:X("bg-border -mx-1 my-1 h-px",e),...t}),fm=({...e})=>p.jsx(rm,{"data-slot":"dropdown-menu-sub",...e}),pm=({className:e,inset:t,children:n,...r})=>p.jsxs(om,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:X("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...r,children:[n,p.jsx(tu,{className:"ml-auto size-4"})]}),mm=({className:e,...t})=>p.jsx(sm,{"data-slot":"dropdown-menu-sub-content",className:X("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t}),Hr=({label:e,onClick:t,isLast:n,dropdownItems:r,icon:o})=>r?.length?p.jsxs(Ga,{children:[p.jsx(Ua,{asChild:!0,children:p.jsxs(Me,{variant:"ghost",size:"sm",className:"p-1 gap-2",children:[o,e," ",p.jsx(ru,{className:"size-4"})]})}),p.jsx(Ka,{className:"bg-background text-foreground",children:r.map(s=>p.jsxs(Ya,{className:"cursor-pointer gap-2",onClick:s.onClick,children:[s.icon,s.label]},`dropdown-${s.label}`))})]}):n?p.jsx(Me,{variant:"ghost",size:"sm",className:"cursor-default hover:bg-transparent hover:text-muted-transparent p-1",asChild:!0,children:p.jsxs("div",{className:"flex items-center gap-2",children:[o,e]})}):p.jsxs(Me,{onClick:t,variant:"ghost",size:"sm",className:"p-1 gap-2",children:[o,e]});Hr.displayName="BreadcrumbItem";const Xa=({className:e,items:t,...n})=>{const r=t.length-1;return p.jsx("div",{className:X("flex items-center",e),...n,children:t.map((o,s)=>p.jsxs(u.Fragment,{children:[s!==0&&p.jsx("span",{className:"mx-1.5 text-muted-foreground",children:"/"},`${o.label}-separator`),p.jsx(Hr,{label:o.label,icon:o.icon,isLast:s===r,dropdownItems:o.dropdownItems},`${o.label}-item`)]},`${o.label}-fragment`))})};Xa.displayName="Breadcrumb";function qa(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var kn="Checkbox",[hm]=Ae(kn),[gm,Br]=hm(kn);function vm(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:a,name:i,onCheckedChange:l,required:c,value:f="on",internal_do_not_use_render:d}=e,[m,v]=Fe({prop:n,defaultProp:o??!1,onChange:l,caller:kn}),[g,h]=u.useState(null),[b,x]=u.useState(null),y=u.useRef(!1),w=g?!!a||!!g.closest("form"):!0,S={checked:m,disabled:s,setChecked:v,control:g,setControl:h,name:i,form:a,value:f,hasConsumerStoppedPropagationRef:y,required:c,defaultChecked:Ue(o)?!1:o,isFormControl:w,bubbleInput:b,setBubbleInput:x};return p.jsx(gm,{scope:t,...S,children:bm(d)?d(S):r})}var Za="CheckboxTrigger",Ja=u.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:a,disabled:i,checked:l,required:c,setControl:f,setChecked:d,hasConsumerStoppedPropagationRef:m,isFormControl:v,bubbleInput:g}=Br(Za,e),h=le(o,f),b=u.useRef(l);return u.useEffect(()=>{const x=s?.form;if(x){const y=()=>d(b.current);return x.addEventListener("reset",y),()=>x.removeEventListener("reset",y)}},[s,d]),p.jsx(ae.button,{type:"button",role:"checkbox","aria-checked":Ue(l)?"mixed":l,"aria-required":c,"data-state":oi(l),"data-disabled":i?"":void 0,disabled:i,value:a,...r,ref:h,onKeyDown:U(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:U(n,x=>{d(y=>Ue(y)?!0:!y),g&&v&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})})});Ja.displayName=Za;var Qa=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:a,disabled:i,value:l,onCheckedChange:c,form:f,...d}=e;return p.jsx(vm,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:i,required:a,onCheckedChange:c,name:r,form:f,value:l,internal_do_not_use_render:({isFormControl:m})=>p.jsxs(p.Fragment,{children:[p.jsx(Ja,{...d,ref:t,__scopeCheckbox:n}),m&&p.jsx(ri,{__scopeCheckbox:n})]})})});Qa.displayName=kn;var ei="CheckboxIndicator",ti=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=Br(ei,n);return p.jsx(je,{present:r||Ue(s.checked)||s.checked===!0,children:p.jsx(ae.span,{"data-state":oi(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ti.displayName=ei;var ni="CheckboxBubbleInput",ri=u.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:a,required:i,disabled:l,name:c,value:f,form:d,bubbleInput:m,setBubbleInput:v}=Br(ni,e),g=le(n,v),h=qa(s),b=Es(r);u.useEffect(()=>{const y=m;if(!y)return;const w=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(w,"checked").set,M=!o.current;if(h!==s&&k){const E=new Event("click",{bubbles:M});y.indeterminate=Ue(s),k.call(y,Ue(s)?!1:s),y.dispatchEvent(E)}},[m,h,s,o]);const x=u.useRef(Ue(s)?!1:s);return p.jsx(ae.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??x.current,required:i,disabled:l,name:c,value:f,form:d,...t,tabIndex:-1,ref:g,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ri.displayName=ni;function bm(e){return typeof e=="function"}function Ue(e){return e==="indeterminate"}function oi(e){return Ue(e)?"indeterminate":e?"checked":"unchecked"}const xm=({className:e,...t})=>p.jsx(Qa,{"data-slot":"checkbox",className:X("cursor-pointer peer border-border dark:bg-input data-[state=checked]:bg-primary data-[state=checked]:text-white dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:p.jsx(ti,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:p.jsx(Qn,{className:"size-3.5"})})}),Tn=T.createContext(null);Tn.displayName="PanelGroupContext";const de={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Vr=10,et=T.useLayoutEffect,si=u.useId,ym=typeof si=="function"?si:()=>null;let wm=0;function Wr(e=null){const t=ym(),n=T.useRef(e||t||null);return n.current===null&&(n.current=""+wm++),e??n.current}function ai({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:s,id:a,maxSize:i,minSize:l,onCollapse:c,onExpand:f,onResize:d,order:m,style:v,tagName:g="div",...h}){const b=T.useContext(Tn);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:x,expandPanel:y,getPanelSize:w,getPanelStyle:S,groupId:k,isPanelCollapsed:M,reevaluatePanelConstraints:E,registerPanel:R,resizePanel:K,unregisterPanel:Y}=b,Z=Wr(a),W=T.useRef({callbacks:{onCollapse:c,onExpand:f,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:i,minSize:l},id:Z,idIsFromProps:a!==void 0,order:m});T.useRef({didLogMissingDefaultSizeWarning:!1}),et(()=>{const{callbacks:G,constraints:q}=W.current,j={...q};W.current.id=Z,W.current.idIsFromProps=a!==void 0,W.current.order=m,G.onCollapse=c,G.onExpand=f,G.onResize=d,q.collapsedSize=n,q.collapsible=r,q.defaultSize=o,q.maxSize=i,q.minSize=l,(j.collapsedSize!==q.collapsedSize||j.collapsible!==q.collapsible||j.maxSize!==q.maxSize||j.minSize!==q.minSize)&&E(W.current,j)}),et(()=>{const G=W.current;return R(G),()=>{Y(G)}},[m,Z,R,Y]),T.useImperativeHandle(s,()=>({collapse:()=>{x(W.current)},expand:G=>{y(W.current,G)},getId(){return Z},getSize(){return w(W.current)},isCollapsed(){return M(W.current)},isExpanded(){return!M(W.current)},resize:G=>{K(W.current,G)}}),[x,y,w,M,Z,K]);const te=S(W.current,o);return T.createElement(g,{...h,children:e,className:t,id:Z,style:{...te,...v},[de.groupId]:k,[de.panel]:"",[de.panelCollapsible]:r||void 0,[de.panelId]:Z,[de.panelSize]:parseFloat(""+te.flexGrow).toFixed(1)})}const ii=T.forwardRef((e,t)=>T.createElement(ai,{...e,forwardedRef:t}));ai.displayName="Panel",ii.displayName="forwardRef(Panel)";let Gr=null,Nn=-1,Ke=null;function Cm(e,t,n){const r=(t&hi)!==0,o=(t&gi)!==0,s=(t&vi)!==0,a=(t&bi)!==0;if(t){if(r)return s?"se-resize":a?"ne-resize":"e-resize";if(o)return s?"sw-resize":a?"nw-resize":"w-resize";if(s)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Sm(){Ke!==null&&(document.head.removeChild(Ke),Gr=null,Ke=null,Nn=-1)}function Ur(e,t,n){var r,o;const s=Cm(e,t);if(Gr!==s){if(Gr=s,Ke===null&&(Ke=document.createElement("style"),document.head.appendChild(Ke)),Nn>=0){var a;(a=Ke.sheet)===null||a===void 0||a.removeRule(Nn)}Nn=(r=(o=Ke.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${s} !important;}`))!==null&&r!==void 0?r:-1}}function li(e){return e.type==="keydown"}function ci(e){return e.type.startsWith("pointer")}function ui(e){return e.type.startsWith("mouse")}function _n(e){if(ci(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(ui(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Em(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Pm(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Rm(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:pi(e),b:pi(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;oe(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:fi(di(n.a)),b:fi(di(n.b))};if(o.a===o.b){const s=r.childNodes,a={a:n.a.at(-1),b:n.b.at(-1)};let i=s.length;for(;i--;){const l=s[i];if(l===a.a)return 1;if(l===a.b)return-1}}return Math.sign(o.a-o.b)}const km=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Tm(e){var t;const n=getComputedStyle((t=mi(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function Nm(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Tm(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||km.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function di(e){let t=e.length;for(;t--;){const n=e[t];if(oe(n,"Missing node"),Nm(n))return n}return null}function fi(e){return e&&Number(getComputedStyle(e).zIndex)||0}function pi(e){const t=[];for(;e;)t.push(e),e=mi(e);return t}function mi(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const hi=1,gi=2,vi=4,bi=8,_m=Em()==="coarse";let Ee=[],wt=!1,Ye=new Map,In=new Map;const Ht=new Set;function Im(e,t,n,r,o){var s;const{ownerDocument:a}=t,i={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=(s=Ye.get(a))!==null&&s!==void 0?s:0;return Ye.set(a,l+1),Ht.add(i),An(),function(){var f;In.delete(e),Ht.delete(i);const d=(f=Ye.get(a))!==null&&f!==void 0?f:1;if(Ye.set(a,d-1),An(),d===1&&Ye.delete(a),Ee.includes(i)){const m=Ee.indexOf(i);m>=0&&Ee.splice(m,1),Mn(),o("up",!0,null)}}}function Mm(e){const{target:t}=e,{x:n,y:r}=_n(e);wt=!0,Xr({target:t,x:n,y:r}),An(),Ee.length>0&&(Dn("down",e),Mn(),e.preventDefault(),xi(t)||e.stopImmediatePropagation())}function Kr(e){const{x:t,y:n}=_n(e);if(wt&&e.type!=="pointerleave"&&e.buttons===0&&(wt=!1,Dn("up",e)),!wt){const{target:r}=e;Xr({target:r,x:t,y:n})}Dn("move",e),Mn(),Ee.length>0&&e.preventDefault()}function Yr(e){const{target:t}=e,{x:n,y:r}=_n(e);In.clear(),wt=!1,Ee.length>0&&(e.preventDefault(),xi(t)||e.stopImmediatePropagation()),Dn("up",e),Xr({target:t,x:n,y:r}),Mn(),An()}function xi(e){let t=e;for(;t;){if(t.hasAttribute(de.resizeHandle))return!0;t=t.parentElement}return!1}function Xr({target:e,x:t,y:n}){Ee.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Ht.forEach(o=>{const{element:s,hitAreaMargins:a}=o,i=s.getBoundingClientRect(),{bottom:l,left:c,right:f,top:d}=i,m=_m?a.coarse:a.fine;if(t>=c-m&&t<=f+m&&n>=d-m&&n<=l+m){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&Rm(r,s)>0){let g=r,h=!1;for(;g&&!g.contains(s);){if(Pm(g.getBoundingClientRect(),i)){h=!0;break}g=g.parentElement}if(h)return}Ee.push(o)}})}function qr(e,t){In.set(e,t)}function Mn(){let e=!1,t=!1;Ee.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:t=!0});let n=0;In.forEach(r=>{n|=r}),e&&t?Ur("intersection",n):e?Ur("horizontal",n):t?Ur("vertical",n):Sm()}let Zr;function An(){var e;(e=Zr)===null||e===void 0||e.abort(),Zr=new AbortController;const t={capture:!0,signal:Zr.signal};Ht.size&&(wt?(Ee.length>0&&Ye.forEach((n,r)=>{const{body:o}=r;n>0&&(o.addEventListener("contextmenu",Yr,t),o.addEventListener("pointerleave",Kr,t),o.addEventListener("pointermove",Kr,t))}),Ye.forEach((n,r)=>{const{body:o}=r;o.addEventListener("pointerup",Yr,t),o.addEventListener("pointercancel",Yr,t)})):Ye.forEach((n,r)=>{const{body:o}=r;n>0&&(o.addEventListener("pointerdown",Mm,t),o.addEventListener("pointermove",Kr,t))}))}function Dn(e,t){Ht.forEach(n=>{const{setResizeHandlerState:r}=n,o=Ee.includes(n);r(e,o,t)})}function Am(){const[e,t]=T.useState(0);return T.useCallback(()=>t(n=>n+1),[])}function oe(e,t){if(!e)throw console.error(t),Error(t)}function tt(e,t,n=Vr){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Le(e,t,n=Vr){return tt(e,t,n)===0}function xe(e,t,n){return tt(e,t,n)===0}function Dm(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],s=t[r];if(!xe(o,s,n))return!1}return!0}function Ct({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];oe(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:s,maxSize:a=100,minSize:i=0}=r;if(tt(n,i)<0)if(s){const l=(o+i)/2;tt(n,l)<0?n=o:n=i}else n=i;return n=Math.min(a,n),n=parseFloat(n.toFixed(Vr)),n}function Bt({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:s}){if(xe(e,0))return t;const a=[...t],[i,l]=r;oe(i!=null,"Invalid first pivot index"),oe(l!=null,"Invalid second pivot index");let c=0;if(s==="keyboard"){{const d=e<0?l:i,m=n[d];oe(m,`Panel constraints not found for index ${d}`);const{collapsedSize:v=0,collapsible:g,minSize:h=0}=m;if(g){const b=t[d];if(oe(b!=null,`Previous layout not found for panel index ${d}`),xe(b,v)){const x=h-b;tt(x,Math.abs(e))>0&&(e=e<0?0-x:x)}}}{const d=e<0?i:l,m=n[d];oe(m,`No panel constraints found for index ${d}`);const{collapsedSize:v=0,collapsible:g,minSize:h=0}=m;if(g){const b=t[d];if(oe(b!=null,`Previous layout not found for panel index ${d}`),xe(b,h)){const x=b-v;tt(x,Math.abs(e))>0&&(e=e<0?0-x:x)}}}}{const d=e<0?1:-1;let m=e<0?l:i,v=0;for(;;){const h=t[m];oe(h!=null,`Previous layout not found for panel index ${m}`);const x=Ct({panelConstraints:n,panelIndex:m,size:100})-h;if(v+=x,m+=d,m<0||m>=n.length)break}const g=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-g:g}{let m=e<0?i:l;for(;m>=0&&m<n.length;){const v=Math.abs(e)-Math.abs(c),g=t[m];oe(g!=null,`Previous layout not found for panel index ${m}`);const h=g-v,b=Ct({panelConstraints:n,panelIndex:m,size:h});if(!xe(g,b)&&(c+=g-b,a[m]=b,c.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(Dm(o,a))return o;{const d=e<0?l:i,m=t[d];oe(m!=null,`Previous layout not found for panel index ${d}`);const v=m+c,g=Ct({panelConstraints:n,panelIndex:d,size:v});if(a[d]=g,!xe(g,v)){let h=v-g,x=e<0?l:i;for(;x>=0&&x<n.length;){const y=a[x];oe(y!=null,`Previous layout not found for panel index ${x}`);const w=y+h,S=Ct({panelConstraints:n,panelIndex:x,size:w});if(xe(y,S)||(h-=S-y,a[x]=S),xe(h,0))break;e>0?x--:x++}}}const f=a.reduce((d,m)=>m+d,0);return xe(f,100)?a:o}function Om({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,s=0,a=0;const i=n[0];oe(i!=null,"No pivot index found"),t.forEach((d,m)=>{const{constraints:v}=d,{maxSize:g=100,minSize:h=0}=v;m===i?(r=h,o=g):(s+=h,a+=g)});const l=Math.min(o,100-s),c=Math.max(r,100-a),f=e[i];return{valueMax:l,valueMin:c,valueNow:f}}function Vt(e,t=document){return Array.from(t.querySelectorAll(`[${de.resizeHandleId}][data-panel-group-id="${e}"]`))}function yi(e,t,n=document){const o=Vt(e,n).findIndex(s=>s.getAttribute(de.resizeHandleId)===t);return o??null}function wi(e,t,n){const r=yi(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function jm(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function Ci(e,t=document){if(jm(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function On(e,t=document){const n=t.querySelector(`[${de.resizeHandleId}="${e}"]`);return n||null}function Lm(e,t,n,r=document){var o,s,a,i;const l=On(t,r),c=Vt(e,r),f=l?c.indexOf(l):-1,d=(o=(s=n[f])===null||s===void 0?void 0:s.id)!==null&&o!==void 0?o:null,m=(a=(i=n[f+1])===null||i===void 0?void 0:i.id)!==null&&a!==void 0?a:null;return[d,m]}function zm({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:s,setLayout:a}){T.useRef({didWarnAboutMissingResizeHandle:!1}),et(()=>{if(!s)return;const i=Vt(n,s);for(let l=0;l<o.length-1;l++){const{valueMax:c,valueMin:f,valueNow:d}=Om({layout:r,panelsArray:o,pivotIndices:[l,l+1]}),m=i[l];if(m!=null){const v=o[l];oe(v,`No panel data found for index "${l}"`),m.setAttribute("aria-controls",v.id),m.setAttribute("aria-valuemax",""+Math.round(c)),m.setAttribute("aria-valuemin",""+Math.round(f)),m.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{i.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,o,s]),T.useEffect(()=>{if(!s)return;const i=t.current;oe(i,"Eager values not found");const{panelDataArray:l}=i,c=Ci(n,s);oe(c!=null,`No group found for id "${n}"`);const f=Vt(n,s);oe(f,`No resize handles found for group id "${n}"`);const d=f.map(m=>{const v=m.getAttribute(de.resizeHandleId);oe(v,"Resize handle element has no handle id attribute");const[g,h]=Lm(n,v,l,s);if(g==null||h==null)return()=>{};const b=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const y=l.findIndex(w=>w.id===g);if(y>=0){const w=l[y];oe(w,`No panel data found for index ${y}`);const S=r[y],{collapsedSize:k=0,collapsible:M,minSize:E=0}=w.constraints;if(S!=null&&M){const R=Bt({delta:xe(S,k)?E-k:k-S,initialLayout:r,panelConstraints:l.map(K=>K.constraints),pivotIndices:wi(n,v,s),prevLayout:r,trigger:"keyboard"});r!==R&&a(R)}}break}}};return m.addEventListener("keydown",b),()=>{m.removeEventListener("keydown",b)}});return()=>{d.forEach(m=>m())}},[s,e,t,n,r,o,a])}function Si(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ei(e,t){const n=e==="horizontal",{x:r,y:o}=_n(t);return n?r:o}function $m(e,t,n,r,o){const s=n==="horizontal",a=On(t,o);oe(a,`No resize handle element found for id "${t}"`);const i=a.getAttribute(de.groupId);oe(i,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=Ei(n,e),f=Ci(i,o);oe(f,`No group element found for id "${i}"`);const d=f.getBoundingClientRect(),m=s?d.width:d.height;return(c-l)/m*100}function Fm(e,t,n,r,o,s){if(li(e)){const a=n==="horizontal";let i=0;e.shiftKey?i=100:o!=null?i=o:i=10;let l=0;switch(e.key){case"ArrowDown":l=a?0:i;break;case"ArrowLeft":l=a?-i:0;break;case"ArrowRight":l=a?i:0;break;case"ArrowUp":l=a?0:-i;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:$m(e,t,n,r,s)}function Hm({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let r=0,o=100;for(let s=0;s<e.length;s++){const a=n[s];oe(a,`Panel constraints not found for index ${s}`);const{defaultSize:i}=a;i!=null&&(r++,t[s]=i,o-=i)}for(let s=0;s<e.length;s++){const a=n[s];oe(a,`Panel constraints not found for index ${s}`);const{defaultSize:i}=a;if(i!=null)continue;const l=e.length-r,c=o/l;r++,t[s]=c,o-=c}return t}function St(e,t,n){t.forEach((r,o)=>{const s=e[o];oe(s,`Panel data not found for index ${o}`);const{callbacks:a,constraints:i,id:l}=s,{collapsedSize:c=0,collapsible:f}=i,d=n[l];if(d==null||r!==d){n[l]=r;const{onCollapse:m,onExpand:v,onResize:g}=a;g&&g(r,d),f&&(m||v)&&(v&&(d==null||Le(d,c))&&!Le(r,c)&&v(),m&&(d==null||!Le(d,c))&&Le(r,c)&&m())}})}function jn(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function Bm({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:s=3}){const a=n[o];let i;return a==null?i=e!=null?e.toFixed(s):"1":r.length===1?i="1":i=a.toFixed(s),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Vm(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function Pi(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Ri(e){return`react-resizable-panels:${e}`}function ki(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:s}=t;return o?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function Ti(e,t){try{const n=Ri(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function Wm(e,t,n){var r,o;const s=(r=Ti(e,n))!==null&&r!==void 0?r:{},a=ki(t);return(o=s[a])!==null&&o!==void 0?o:null}function Gm(e,t,n,r,o){var s;const a=Ri(e),i=ki(t),l=(s=Ti(e,o))!==null&&s!==void 0?s:{};l[i]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(a,JSON.stringify(l))}catch(c){console.error(c)}}function Ni({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((s,a)=>s+a,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!xe(r,100)&&n.length>0)for(let s=0;s<t.length;s++){const a=n[s];oe(a!=null,`No layout data found for index ${s}`);const i=100/r*a;n[s]=i}let o=0;for(let s=0;s<t.length;s++){const a=n[s];oe(a!=null,`No layout data found for index ${s}`);const i=Ct({panelConstraints:t,panelIndex:s,size:a});a!=i&&(o+=a-i,n[s]=i)}if(!xe(o,0))for(let s=0;s<t.length;s++){const a=n[s];oe(a!=null,`No layout data found for index ${s}`);const i=a+o,l=Ct({panelConstraints:t,panelIndex:s,size:i});if(a!==l&&(o-=l-a,n[s]=l,xe(o,0)))break}return n}const Um=100,Wt={getItem:e=>(Pi(Wt),Wt.getItem(e)),setItem:(e,t)=>{Pi(Wt),Wt.setItem(e,t)}},_i={};function Ii({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:s=null,onLayout:a=null,keyboardResizeBy:i=null,storage:l=Wt,style:c,tagName:f="div",...d}){const m=Wr(s),v=T.useRef(null),[g,h]=T.useState(null),[b,x]=T.useState([]),y=Am(),w=T.useRef({}),S=T.useRef(new Map),k=T.useRef(0),M=T.useRef({autoSaveId:e,direction:r,dragState:g,id:m,keyboardResizeBy:i,onLayout:a,storage:l}),E=T.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});T.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),T.useImperativeHandle(o,()=>({getId:()=>M.current.id,getLayout:()=>{const{layout:_}=E.current;return _},setLayout:_=>{const{onLayout:A}=M.current,{layout:F,panelDataArray:O}=E.current,C=Ni({layout:_,panelConstraints:O.map(I=>I.constraints)});Si(F,C)||(x(C),E.current.layout=C,A&&A(C),St(O,C,w.current))}}),[]),et(()=>{M.current.autoSaveId=e,M.current.direction=r,M.current.dragState=g,M.current.id=m,M.current.onLayout=a,M.current.storage=l}),zm({committedValuesRef:M,eagerValuesRef:E,groupId:m,layout:b,panelDataArray:E.current.panelDataArray,setLayout:x,panelGroupElement:v.current}),T.useEffect(()=>{const{panelDataArray:_}=E.current;if(e){if(b.length===0||b.length!==_.length)return;let A=_i[e];A==null&&(A=Vm(Gm,Um),_i[e]=A);const F=[..._],O=new Map(S.current);A(e,F,O,b,l)}},[e,b,l]),T.useEffect(()=>{});const R=T.useCallback(_=>{const{onLayout:A}=M.current,{layout:F,panelDataArray:O}=E.current;if(_.constraints.collapsible){const C=O.map(J=>J.constraints),{collapsedSize:I=0,panelSize:$,pivotIndices:L}=nt(O,_,F);if(oe($!=null,`Panel size not found for panel "${_.id}"`),!Le($,I)){S.current.set(_.id,$);const ee=Et(O,_)===O.length-1?$-I:I-$,ne=Bt({delta:ee,initialLayout:F,panelConstraints:C,pivotIndices:L,prevLayout:F,trigger:"imperative-api"});jn(F,ne)||(x(ne),E.current.layout=ne,A&&A(ne),St(O,ne,w.current))}}},[]),K=T.useCallback((_,A)=>{const{onLayout:F}=M.current,{layout:O,panelDataArray:C}=E.current;if(_.constraints.collapsible){const I=C.map(ie=>ie.constraints),{collapsedSize:$=0,panelSize:L=0,minSize:J=0,pivotIndices:ee}=nt(C,_,O),ne=A??J;if(Le(L,$)){const ie=S.current.get(_.id),fe=ie!=null&&ie>=ne?ie:ne,ue=Et(C,_)===C.length-1?L-fe:fe-L,me=Bt({delta:ue,initialLayout:O,panelConstraints:I,pivotIndices:ee,prevLayout:O,trigger:"imperative-api"});jn(O,me)||(x(me),E.current.layout=me,F&&F(me),St(C,me,w.current))}}},[]),Y=T.useCallback(_=>{const{layout:A,panelDataArray:F}=E.current,{panelSize:O}=nt(F,_,A);return oe(O!=null,`Panel size not found for panel "${_.id}"`),O},[]),Z=T.useCallback((_,A)=>{const{panelDataArray:F}=E.current,O=Et(F,_);return Bm({defaultSize:A,dragState:g,layout:b,panelData:F,panelIndex:O})},[g,b]),W=T.useCallback(_=>{const{layout:A,panelDataArray:F}=E.current,{collapsedSize:O=0,collapsible:C,panelSize:I}=nt(F,_,A);return oe(I!=null,`Panel size not found for panel "${_.id}"`),C===!0&&Le(I,O)},[]),te=T.useCallback(_=>{const{layout:A,panelDataArray:F}=E.current,{collapsedSize:O=0,collapsible:C,panelSize:I}=nt(F,_,A);return oe(I!=null,`Panel size not found for panel "${_.id}"`),!C||tt(I,O)>0},[]),G=T.useCallback(_=>{const{panelDataArray:A}=E.current;A.push(_),A.sort((F,O)=>{const C=F.order,I=O.order;return C==null&&I==null?0:C==null?-1:I==null?1:C-I}),E.current.panelDataArrayChanged=!0,y()},[y]);et(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:_,onLayout:A,storage:F}=M.current,{layout:O,panelDataArray:C}=E.current;let I=null;if(_){const L=Wm(_,C,F);L&&(S.current=new Map(Object.entries(L.expandToSizes)),I=L.layout)}I==null&&(I=Hm({panelDataArray:C}));const $=Ni({layout:I,panelConstraints:C.map(L=>L.constraints)});Si(O,$)||(x($),E.current.layout=$,A&&A($),St(C,$,w.current))}}),et(()=>{const _=E.current;return()=>{_.layout=[]}},[]);const q=T.useCallback(_=>{let A=!1;const F=v.current;return F&&window.getComputedStyle(F,null).getPropertyValue("direction")==="rtl"&&(A=!0),function(C){C.preventDefault();const I=v.current;if(!I)return()=>null;const{direction:$,dragState:L,id:J,keyboardResizeBy:ee,onLayout:ne}=M.current,{layout:ie,panelDataArray:fe}=E.current,{initialLayout:ce}=L??{},ue=wi(J,_,I);let me=Fm(C,_,$,L,ee,I);const kt=$==="horizontal";kt&&A&&(me=-me);const Yt=fe.map(Ig=>Ig.constraints),at=Bt({delta:me,initialLayout:ce??ie,panelConstraints:Yt,pivotIndices:ue,prevLayout:ie,trigger:li(C)?"keyboard":"mouse-or-touch"}),dc=!jn(ie,at);(ci(C)||ui(C))&&k.current!=me&&(k.current=me,!dc&&me!==0?kt?qr(_,me<0?hi:gi):qr(_,me<0?vi:bi):qr(_,0)),dc&&(x(at),E.current.layout=at,ne&&ne(at),St(fe,at,w.current))}},[]),j=T.useCallback((_,A)=>{const{onLayout:F}=M.current,{layout:O,panelDataArray:C}=E.current,I=C.map(ie=>ie.constraints),{panelSize:$,pivotIndices:L}=nt(C,_,O);oe($!=null,`Panel size not found for panel "${_.id}"`);const ee=Et(C,_)===C.length-1?$-A:A-$,ne=Bt({delta:ee,initialLayout:O,panelConstraints:I,pivotIndices:L,prevLayout:O,trigger:"imperative-api"});jn(O,ne)||(x(ne),E.current.layout=ne,F&&F(ne),St(C,ne,w.current))},[]),Q=T.useCallback((_,A)=>{const{layout:F,panelDataArray:O}=E.current,{collapsedSize:C=0,collapsible:I}=A,{collapsedSize:$=0,collapsible:L,maxSize:J=100,minSize:ee=0}=_.constraints,{panelSize:ne}=nt(O,_,F);ne!=null&&(I&&L&&Le(ne,C)?Le(C,$)||j(_,$):ne<ee?j(_,ee):ne>J&&j(_,J))},[j]),N=T.useCallback((_,A)=>{const{direction:F}=M.current,{layout:O}=E.current;if(!v.current)return;const C=On(_,v.current);oe(C,`Drag handle element not found for id "${_}"`);const I=Ei(F,A);h({dragHandleId:_,dragHandleRect:C.getBoundingClientRect(),initialCursorPosition:I,initialLayout:O})},[]),D=T.useCallback(()=>{h(null)},[]),P=T.useCallback(_=>{const{panelDataArray:A}=E.current,F=Et(A,_);F>=0&&(A.splice(F,1),delete w.current[_.id],E.current.panelDataArrayChanged=!0,y())},[y]),H=T.useMemo(()=>({collapsePanel:R,direction:r,dragState:g,expandPanel:K,getPanelSize:Y,getPanelStyle:Z,groupId:m,isPanelCollapsed:W,isPanelExpanded:te,reevaluatePanelConstraints:Q,registerPanel:G,registerResizeHandle:q,resizePanel:j,startDragging:N,stopDragging:D,unregisterPanel:P,panelGroupElement:v.current}),[R,g,r,K,Y,Z,m,W,te,Q,G,q,j,N,D,P]),re={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return T.createElement(Tn.Provider,{value:H},T.createElement(f,{...d,children:t,className:n,id:s,ref:v,style:{...re,...c},[de.group]:"",[de.groupDirection]:r,[de.groupId]:m}))}const Mi=T.forwardRef((e,t)=>T.createElement(Ii,{...e,forwardedRef:t}));Ii.displayName="PanelGroup",Mi.displayName="forwardRef(PanelGroup)";function Et(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function nt(e,t,n){const r=Et(e,t),s=r===e.length-1?[r-1,r]:[r,r+1],a=n[r];return{...t.constraints,panelSize:a,pivotIndices:s}}function Km({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){T.useEffect(()=>{if(e||n==null||r==null)return;const o=On(t,r);if(o==null)return;const s=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{a.preventDefault(),n(a);break}case"F6":{a.preventDefault();const i=o.getAttribute(de.groupId);oe(i,`No group element found for id "${i}"`);const l=Vt(i,r),c=yi(i,t,r);oe(c!==null,`No resize element found for id "${t}"`);const f=a.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[f].focus();break}}};return o.addEventListener("keydown",s),()=>{o.removeEventListener("keydown",s)}},[r,e,t,n])}function Ai({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:s,onClick:a,onDragging:i,onFocus:l,onPointerDown:c,onPointerUp:f,style:d={},tabIndex:m=0,tagName:v="div",...g}){var h,b;const x=T.useRef(null),y=T.useRef({onClick:a,onDragging:i,onPointerDown:c,onPointerUp:f});T.useEffect(()=>{y.current.onClick=a,y.current.onDragging=i,y.current.onPointerDown=c,y.current.onPointerUp=f});const w=T.useContext(Tn);if(w===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:S,groupId:k,registerResizeHandle:M,startDragging:E,stopDragging:R,panelGroupElement:K}=w,Y=Wr(o),[Z,W]=T.useState("inactive"),[te,G]=T.useState(!1),[q,j]=T.useState(null),Q=T.useRef({state:Z});et(()=>{Q.current.state=Z}),T.useEffect(()=>{if(n)j(null);else{const H=M(Y);j(()=>H)}},[n,Y,M]);const N=(h=r?.coarse)!==null&&h!==void 0?h:15,D=(b=r?.fine)!==null&&b!==void 0?b:5;T.useEffect(()=>{if(n||q==null)return;const H=x.current;oe(H,"Element ref not attached");let re=!1;return Im(Y,H,S,{coarse:N,fine:D},(A,F,O)=>{if(!F){W("inactive");return}switch(A){case"down":{W("drag"),re=!1,oe(O,'Expected event to be defined for "down" action'),E(Y,O);const{onDragging:C,onPointerDown:I}=y.current;C?.(!0),I?.();break}case"move":{const{state:C}=Q.current;re=!0,C!=="drag"&&W("hover"),oe(O,'Expected event to be defined for "move" action'),q(O);break}case"up":{W("hover"),R();const{onClick:C,onDragging:I,onPointerUp:$}=y.current;I?.(!1),$?.(),re||C?.();break}}})},[N,S,n,D,M,Y,q,E,R]),Km({disabled:n,handleId:Y,resizeHandler:q,panelGroupElement:K});const P={touchAction:"none",userSelect:"none"};return T.createElement(v,{...g,children:e,className:t,id:o,onBlur:()=>{G(!1),s?.()},onFocus:()=>{G(!0),l?.()},ref:x,role:"separator",style:{...P,...d},tabIndex:m,[de.groupDirection]:S,[de.groupId]:k,[de.resizeHandle]:"",[de.resizeHandleActive]:Z==="drag"?"pointer":te?"keyboard":void 0,[de.resizeHandleEnabled]:!n,[de.resizeHandleId]:Y,[de.resizeHandleState]:Z})}Ai.displayName="PanelResizeHandle";const Jr=T.forwardRef(({className:e,children:t,...n},r)=>p.jsx("div",{ref:r,className:X("relative border border-border text-foreground rounded-lg overflow-hidden flex flex-col h-full",e),...n,children:t}));Jr.displayName="Container";const Ym=it("isolate w-full bg-card flex min-h-10 items-center",{variants:{variant:{default:"px-5 py-2 items-center",tabs:"p-0"}},defaultVariants:{variant:"default"}}),Qr=T.forwardRef(({className:e,variant:t,children:n,...r},o)=>p.jsxs("div",{ref:o,className:X(Ym({variant:t,className:e})),...r,children:[p.jsx(Un,{}),n]}));Qr.displayName="ContainerHeader";const eo=T.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:X("flex-1 overflow-auto bg-default border-border border-t",e),...t}));eo.displayName="ContainerContent";var Ln="Tabs",[Xm]=Ae(Ln,[hn]),Di=hn(),[qm,to]=Xm(Ln),Oi=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:i,activationMode:l="automatic",...c}=e,f=en(i),[d,m]=Fe({prop:r,onChange:o,defaultProp:s??"",caller:Ln});return p.jsx(qm,{scope:n,baseId:Re(),value:d,onValueChange:m,orientation:a,dir:f,activationMode:l,children:p.jsx(ae.div,{dir:f,"data-orientation":a,...c,ref:t})})});Oi.displayName=Ln;var ji="TabsList",Li=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=to(ji,n),a=Di(n);return p.jsx($s,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:p.jsx(ae.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Li.displayName=ji;var zi="TabsTrigger",$i=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,a=to(zi,n),i=Di(n),l=Bi(a.baseId,r),c=Vi(a.baseId,r),f=r===a.value;return p.jsx(Fs,{asChild:!0,...i,focusable:!o,active:f,children:p.jsx(ae.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:U(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?a.onValueChange(r):d.preventDefault()}),onKeyDown:U(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(r)}),onFocus:U(e.onFocus,()=>{const d=a.activationMode!=="manual";!f&&!o&&d&&a.onValueChange(r)})})})});$i.displayName=zi;var Fi="TabsContent",Hi=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...a}=e,i=to(Fi,n),l=Bi(i.baseId,r),c=Vi(i.baseId,r),f=r===i.value,d=u.useRef(f);return u.useEffect(()=>{const m=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(m)},[]),p.jsx(je,{present:o||f,children:({present:m})=>p.jsx(ae.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:m&&s})})});Hi.displayName=Fi;function Bi(e,t){return`${e}-trigger-${t}`}function Vi(e,t){return`${e}-content-${t}`}var Zm=Oi,Jm=Li,Qm=$i,eh=Hi;const zn=({className:e,...t})=>p.jsx(Zm,{"data-slot":"tabs",className:X("flex flex-col h-full",e),...t});zn.displayName="Tabs";const no=({className:e,...t})=>p.jsx(Jm,{"data-slot":"tabs-list",className:X("inline-flex rounded-none bg-transparent p-0 min-h-10",e),...t});no.displayName="TabsList";const ro=({className:e,...t})=>p.jsx(Qm,{"data-slot":"tabs-trigger",className:X("inline-flex items-center justify-center whitespace-nowrap rounded-none px-4 py-2 text-sm font-medium text-muted-foreground ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 relative data-[state=active]:after:absolute data-[state=active]:after:bottom-0 data-[state=active]:after:left-1/2 data-[state=active]:after:-translate-x-1/2 data-[state=active]:after:h-0.5 data-[state=active]:after:w-[calc(100%-2.5rem)] data-[state=active]:after:bg-foreground data-[state=active]:after:rounded-full",e),...t});ro.displayName="TabsTrigger";const oo=({className:e,...t})=>p.jsx(eh,{"data-slot":"tabs-content",className:X("flex-1 outline-none text-foreground",e),...t});oo.displayName="TabsContent";const th=({header:e,isCollapsed:t,onToggle:n,variant:r="default"})=>p.jsxs(Qr,{variant:r,children:[e,p.jsx("div",{className:"flex-1"}),n&&p.jsx(Me,{variant:"default",onClick:n,"aria-label":t?"Expand panel":"Collapse panel",className:X("h-8 px-3 [&_svg]:size-5",{"mr-5":r==="tabs"}),children:p.jsx(er,{className:X("transition-transform",{"-rotate-180":!t})})})]}),nh=()=>p.jsx("div",{className:"relative",children:p.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:p.jsx(Ai,{className:"group relative",children:p.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-background border border-border",children:p.jsx(Wo,{className:"h-4 w-4 text-muted-foreground"})})})})}),rh=({id:e,header:t,children:n,withResizeHandle:r,className:o,variant:s,defaultTab:a,onTabChange:i})=>{const[l,c]=T.useState(!1),f=T.useRef(null),d=T.useCallback(()=>{const h=f.current;if(h)try{h.isCollapsed()?h.expand():h.collapse()}catch(b){console.warn("Failed to toggle panel:",b)}},[]),m=T.useCallback(()=>c(!0),[]),v=T.useCallback(()=>c(!1),[]),g=T.useMemo(()=>{const h=p.jsxs(Jr,{className:"h-full",children:[p.jsx(th,{header:t,isCollapsed:l,variant:s,onToggle:d}),p.jsx(eo,{children:n})]});return s=="tabs"?p.jsx(zn,{className:"h-full",defaultValue:a,onValueChange:i,children:h}):h},[s,l,t,n,a,d,i]);return p.jsxs(p.Fragment,{children:[p.jsx(ii,{id:e,collapsible:!0,ref:f,className:X("min-h-[42px]",o),onCollapse:m,onExpand:v,children:g}),r&&p.jsx(nh,{})]})},oh=({children:e,...t})=>{const[n,r]=T.useState(0);return p.jsx(Mi,{onLayout:o=>{r(o.length)},...t,children:T.Children.map(e,(o,s)=>{if(T.isValidElement(o)){const a=n-1===s,i=n>1;return T.cloneElement(o,{withResizeHandle:i&&!a})}return o})})};function sh({className:e,...t}){return p.jsx("div",{"data-slot":"empty",className:X("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",e),...t})}function ah({className:e,...t}){return p.jsx("div",{"data-slot":"empty-header",className:X("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}const ih=it("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-dark-50 dark:bg-light-50 text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function lh({className:e,variant:t="default",...n}){return p.jsx("div",{"data-slot":"empty-icon","data-variant":t,className:X(ih({variant:t,className:e})),...n})}function ch({className:e,...t}){return p.jsx("div",{"data-slot":"empty-title",className:X("text-lg font-medium tracking-tight",e),...t})}function uh({className:e,...t}){return p.jsx("div",{"data-slot":"empty-description",className:X("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...t})}function dh({className:e,...t}){return p.jsx("div",{"data-slot":"empty-content",className:X("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",e),...t})}const fh=it(X("flex w-full rounded-md px-3 py-2 text-base transition-colors outline-none resize-none","field-sizing-content","aria-invalid:border-destructive","disabled:cursor-not-allowed disabled:opacity-50","text-sm font-medium leading-[1.3] tracking-[-0.01em]"),{variants:{variant:{default:"bg-input border border-border hover:border-border focus-visible:border-ring text-foreground placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring/20",shade:"bg-muted-foreground/10 text-muted-foreground hover:bg-muted-foreground/12 focus:bg-muted-foreground/15",outline:"focus-visible:border-border focus-visible:bg-card hover:border-border hover:bg-card bg-transparent text-foreground border border-transparent",outlineReadonly:"bg-transparent text-foreground border border-transparent"}},defaultVariants:{variant:"default"}}),Wi=T.forwardRef(({className:e,type:t,variant:n,...r},o)=>p.jsx("input",{type:t,className:fh({variant:n,className:e}),ref:o,...r}));Wi.displayName="Input";var ph="Label",Gi=u.forwardRef((e,t)=>p.jsx(ae.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Gi.displayName=ph;var Ui=Gi;const Ki=({className:e,...t})=>p.jsx(Ui,{"data-slot":"label",className:X("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t});Ki.displayName=Ui.displayName;const mh=it("text-xs font-medium tracking-wide rounded-full h-[6px] w-[6px] m-[4px] outline-[2px]",{variants:{variant:{info:"bg-[#2862FE] outline-[#2862FE]/20",trace:"bg-[#2862FE] outline-[#2862FE]/20",debug:"bg-[#2862FE] outline-[#2862FE]/20",error:"bg-[#E22A6D] outline-[#E22A6D]/20",fatal:"bg-[#E22A6D] outline-[#E22A6D]/20",warn:"bg-[#F59F0B] outline-[#F59F0B]/20"}}}),hh=({level:e})=>p.jsx("div",{className:mh({variant:e})}),gh={default:"bg-transparent border border-border",outlined:"bg-transparent border border-border",filled:"bg-muted border border-transparent",ghost:"bg-transparent border-transparent shadow-none"},Yi=({label:e,value:t,highlighted:n})=>p.jsxs("div",{className:"flex gap-4 items-start",children:[p.jsx("div",{className:"flex items-center h-8 shrink-0",children:p.jsx("span",{className:"text-sm font-medium text-foreground tracking-[-0.25px] w-24 truncate",children:e})}),p.jsx("div",{className:X("flex-1 rounded-lg px-2 py-1 min-h-6",n&&"bg-secondary"),children:p.jsx("div",{className:"flex items-center min-h-6",children:typeof t=="string"?p.jsx("span",{className:"text-sm font-medium text-muted-foreground tracking-[-0.25px] leading-tight",children:t}):t})})]}),so=({"data-testid":e,title:t,subtitle:n,details:r,actions:o,className:s,children:a,size:i,variant:l="default",contentClassName:c,tabs:f})=>{const d=f&&f.length>0,m=T.useMemo(()=>{const v=p.jsxs(p.Fragment,{children:[d&&p.jsx(no,{className:X("bg-card border-b border-border px-1 pt-5",{"bg-transparent":l==="ghost"}),children:f?.map(g=>p.jsx(ro,{value:g.label,"data-testid":g["data-testid"],className:"cursor-pointer",children:g.labelComponent||g.label},g.label))}),p.jsxs("div",{className:X("flex flex-col gap-2 p-4 h-full",c),children:[r?.map((g,h)=>p.jsx(Yi,{...g},h)),d&&f.map(g=>p.jsx(oo,{value:g.label,children:g.content},g.label)),a]})]});return d?p.jsx(zn,{defaultValue:f?.[0]?.label,children:v}):v},[f,l,i,t,n,r,o,c,a,d]);return p.jsxs("div",{className:X("relative isolate size-full backdrop-blur-[48px] backdrop-filter","text-foreground","rounded-lg overflow-hidden",gh[l],s),"data-testid":e,children:[p.jsx(Un,{}),p.jsxs("div",{className:"flex flex-col size-full",children:[p.jsx("div",{className:X("relative shrink-0 w-full border-b border-border bg-card",{"bg-transparent":l==="ghost","border-b-0":d}),children:t&&p.jsxs("div",{className:X("flex flex-col gap-1 px-5 py-4",{"px-4 py-3":i==="sm","px-5 py-4":i==="md","pb-0":d}),children:[p.jsxs("div",{className:"flex items-center w-full",children:[p.jsx("div",{className:X("font-semibold text-foreground tracking-[-0.25px] leading-tight flex-1",i==="sm"?"text-xs":"text-base"),children:t}),o&&o.length>0&&p.jsx("div",{className:"flex items-center gap-1",children:o.map((v,g)=>p.jsx(Me,{onClick:v.onClick,variant:"ghost",className:X(v.active&&"bg-muted-foreground/20 hover:bg-muted-foreground/30"),size:"icon","aria-label":v.label,"data-testid":"close-panel",children:v.icon},g))})]}),n&&p.jsx("p",{className:"text-sm font-medium text-muted-foreground tracking-[-0.25px] leading-tight",children:n})]})}),p.jsx("div",{className:"flex-1 overflow-auto",children:m})]})]})};so.displayName="Panel";function Xi(e,[t,n]){return Math.min(n,Math.max(t,e))}var qi=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"}),vh="VisuallyHidden",Zi=u.forwardRef((e,t)=>p.jsx(ae.span,{...e,ref:t,style:{...qi,...e.style}}));Zi.displayName=vh;var bh=Zi,xh=[" ","Enter","ArrowUp","ArrowDown"],yh=[" ","Enter"],rt="Select",[$n,Fn,wh]=tr(rt),[Pt]=Ae(rt,[wh,gt]),Hn=gt(),[Ch,Xe]=Pt(rt),[Sh,Eh]=Pt(rt),Ji=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:l,dir:c,name:f,autoComplete:d,disabled:m,required:v,form:g}=e,h=Hn(t),[b,x]=u.useState(null),[y,w]=u.useState(null),[S,k]=u.useState(!1),M=en(c),[E,R]=Fe({prop:r,defaultProp:o??!1,onChange:s,caller:rt}),[K,Y]=Fe({prop:a,defaultProp:i,onChange:l,caller:rt}),Z=u.useRef(null),W=b?g||!!b.closest("form"):!0,[te,G]=u.useState(new Set),q=Array.from(te).map(j=>j.props.value).join(";");return p.jsx(fn,{...h,children:p.jsxs(Ch,{required:v,scope:t,trigger:b,onTriggerChange:x,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:Re(),value:K,onValueChange:Y,open:E,onOpenChange:R,dir:M,triggerPointerDownPosRef:Z,disabled:m,children:[p.jsx($n.Provider,{scope:t,children:p.jsx(Sh,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(j=>{G(Q=>new Set(Q).add(j))},[]),onNativeOptionRemove:u.useCallback(j=>{G(Q=>{const N=new Set(Q);return N.delete(j),N})},[]),children:n})}),W?p.jsxs(Cl,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:d,value:K,onChange:j=>Y(j.target.value),disabled:m,form:g,children:[K===void 0?p.jsx("option",{value:""}):null,Array.from(te)]},q):null]})})};Ji.displayName=rt;var Qi="SelectTrigger",el=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Hn(n),a=Xe(Qi,n),i=a.disabled||r,l=le(t,a.onTriggerChange),c=Fn(n),f=u.useRef("touch"),[d,m,v]=El(h=>{const b=c().filter(w=>!w.disabled),x=b.find(w=>w.value===a.value),y=Pl(b,h,x);y!==void 0&&a.onValueChange(y.value)}),g=h=>{i||(a.onOpenChange(!0),v()),h&&(a.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return p.jsx(wr,{asChild:!0,...s,children:p.jsx(ae.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Sl(a.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&g(h)}),onPointerDown:U(o.onPointerDown,h=>{f.current=h.pointerType;const b=h.target;b.hasPointerCapture(h.pointerId)&&b.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:U(o.onKeyDown,h=>{const b=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(b&&h.key===" ")&&xh.includes(h.key)&&(g(),h.preventDefault())})})})});el.displayName=Qi;var tl="SelectValue",nl=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...i}=e,l=Xe(tl,n),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,d=le(t,l.onValueNodeChange);return he(()=>{c(f)},[c,f]),p.jsx(ae.span,{...i,ref:d,style:{pointerEvents:"none"},children:Sl(l.value)?p.jsx(p.Fragment,{children:a}):s})});nl.displayName=tl;var Ph="SelectIcon",rl=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(ae.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});rl.displayName=Ph;var Rh="SelectPortal",ol=e=>p.jsx(pn,{asChild:!0,...e});ol.displayName=Rh;var ot="SelectContent",sl=u.forwardRef((e,t)=>{const n=Xe(ot,e.__scopeSelect),[r,o]=u.useState();if(he(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Xt.createPortal(p.jsx(al,{scope:e.__scopeSelect,children:p.jsx($n.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(il,{...e,ref:t})});sl.displayName=ot;var Pe=10,[al,qe]=Pt(ot),kh="SelectContentImpl",Th=dt("SelectContent.RemoveScroll"),il=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:h,avoidCollisions:b,...x}=e,y=Xe(ot,n),[w,S]=u.useState(null),[k,M]=u.useState(null),E=le(t,C=>S(C)),[R,K]=u.useState(null),[Y,Z]=u.useState(null),W=Fn(n),[te,G]=u.useState(!1),q=u.useRef(!1);u.useEffect(()=>{if(w)return Bs(w)},[w]),Jo();const j=u.useCallback(C=>{const[I,...$]=W().map(ee=>ee.ref.current),[L]=$.slice(-1),J=document.activeElement;for(const ee of C)if(ee===J||(ee?.scrollIntoView({block:"nearest"}),ee===I&&k&&(k.scrollTop=0),ee===L&&k&&(k.scrollTop=k.scrollHeight),ee?.focus(),document.activeElement!==J))return},[W,k]),Q=u.useCallback(()=>j([R,w]),[j,R,w]);u.useEffect(()=>{te&&Q()},[te,Q]);const{onOpenChange:N,triggerPointerDownPosRef:D}=y;u.useEffect(()=>{if(w){let C={x:0,y:0};const I=L=>{C={x:Math.abs(Math.round(L.pageX)-(D.current?.x??0)),y:Math.abs(Math.round(L.pageY)-(D.current?.y??0))}},$=L=>{C.x<=10&&C.y<=10?L.preventDefault():w.contains(L.target)||N(!1),document.removeEventListener("pointermove",I),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",$,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",$,{capture:!0})}}},[w,N,D]),u.useEffect(()=>{const C=()=>N(!1);return window.addEventListener("blur",C),window.addEventListener("resize",C),()=>{window.removeEventListener("blur",C),window.removeEventListener("resize",C)}},[N]);const[P,H]=El(C=>{const I=W().filter(J=>!J.disabled),$=I.find(J=>J.ref.current===document.activeElement),L=Pl(I,C,$);L&&setTimeout(()=>L.ref.current.focus())}),re=u.useCallback((C,I,$)=>{const L=!q.current&&!$;(y.value!==void 0&&y.value===I||L)&&(K(C),L&&(q.current=!0))},[y.value]),_=u.useCallback(()=>w?.focus(),[w]),A=u.useCallback((C,I,$)=>{const L=!q.current&&!$;(y.value!==void 0&&y.value===I||L)&&Z(C)},[y.value]),F=r==="popper"?ao:ll,O=F===ao?{side:i,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:h,avoidCollisions:b}:{};return p.jsx(al,{scope:n,content:w,viewport:k,onViewportChange:M,itemRefCallback:re,selectedItem:R,onItemLeave:_,itemTextRefCallback:A,focusSelectedItem:Q,selectedItemText:Y,position:r,isPositioned:te,searchRef:P,children:p.jsx(Ir,{as:Th,allowPinchZoom:!0,children:p.jsx(ar,{asChild:!0,trapped:y.open,onMountAutoFocus:C=>{C.preventDefault()},onUnmountAutoFocus:U(o,C=>{y.trigger?.focus({preventScroll:!0}),C.preventDefault()}),children:p.jsx(tn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:C=>C.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:p.jsx(F,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:C=>C.preventDefault(),...x,...O,onPlaced:()=>G(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:U(x.onKeyDown,C=>{const I=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!I&&C.key.length===1&&H(C.key),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let L=W().filter(J=>!J.disabled).map(J=>J.ref.current);if(["ArrowUp","End"].includes(C.key)&&(L=L.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const J=C.target,ee=L.indexOf(J);L=L.slice(ee+1)}setTimeout(()=>j(L)),C.preventDefault()}})})})})})})});il.displayName=kh;var Nh="SelectItemAlignedPosition",ll=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Xe(ot,n),a=qe(ot,n),[i,l]=u.useState(null),[c,f]=u.useState(null),d=le(t,E=>f(E)),m=Fn(n),v=u.useRef(!1),g=u.useRef(!0),{viewport:h,selectedItem:b,selectedItemText:x,focusSelectedItem:y}=a,w=u.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&c&&h&&b&&x){const E=s.trigger.getBoundingClientRect(),R=c.getBoundingClientRect(),K=s.valueNode.getBoundingClientRect(),Y=x.getBoundingClientRect();if(s.dir!=="rtl"){const J=Y.left-R.left,ee=K.left-J,ne=E.left-ee,ie=E.width+ne,fe=Math.max(ie,R.width),ce=window.innerWidth-Pe,ue=Xi(ee,[Pe,Math.max(Pe,ce-fe)]);i.style.minWidth=ie+"px",i.style.left=ue+"px"}else{const J=R.right-Y.right,ee=window.innerWidth-K.right-J,ne=window.innerWidth-E.right-ee,ie=E.width+ne,fe=Math.max(ie,R.width),ce=window.innerWidth-Pe,ue=Xi(ee,[Pe,Math.max(Pe,ce-fe)]);i.style.minWidth=ie+"px",i.style.right=ue+"px"}const Z=m(),W=window.innerHeight-Pe*2,te=h.scrollHeight,G=window.getComputedStyle(c),q=parseInt(G.borderTopWidth,10),j=parseInt(G.paddingTop,10),Q=parseInt(G.borderBottomWidth,10),N=parseInt(G.paddingBottom,10),D=q+j+te+N+Q,P=Math.min(b.offsetHeight*5,D),H=window.getComputedStyle(h),re=parseInt(H.paddingTop,10),_=parseInt(H.paddingBottom,10),A=E.top+E.height/2-Pe,F=W-A,O=b.offsetHeight/2,C=b.offsetTop+O,I=q+j+C,$=D-I;if(I<=A){const J=Z.length>0&&b===Z[Z.length-1].ref.current;i.style.bottom="0px";const ee=c.clientHeight-h.offsetTop-h.offsetHeight,ne=Math.max(F,O+(J?_:0)+ee+Q),ie=I+ne;i.style.height=ie+"px"}else{const J=Z.length>0&&b===Z[0].ref.current;i.style.top="0px";const ne=Math.max(A,q+h.offsetTop+(J?re:0)+O)+$;i.style.height=ne+"px",h.scrollTop=I-A+h.offsetTop}i.style.margin=`${Pe}px 0`,i.style.minHeight=P+"px",i.style.maxHeight=W+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[m,s.trigger,s.valueNode,i,c,h,b,x,s.dir,r]);he(()=>w(),[w]);const[S,k]=u.useState();he(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);const M=u.useCallback(E=>{E&&g.current===!0&&(w(),y?.(),g.current=!1)},[w,y]);return p.jsx(Ih,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:v,onScrollButtonChange:M,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:p.jsx(ae.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ll.displayName=Nh;var _h="SelectPopperPosition",ao=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Pe,...s}=e,a=Hn(n);return p.jsx(Cr,{...a,...s,ref:t,align:r,collisionPadding:o,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)"}})});ao.displayName=_h;var[Ih,io]=Pt(ot,{}),lo="SelectViewport",cl=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=qe(lo,n),a=io(lo,n),i=le(t,s.onViewportChange),l=u.useRef(0);return p.jsxs(p.Fragment,{children:[p.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}),p.jsx($n.Slot,{scope:n,children:p.jsx(ae.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:U(o.onScroll,c=>{const f=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:m}=a;if(m?.current&&d){const v=Math.abs(l.current-f.scrollTop);if(v>0){const g=window.innerHeight-Pe*2,h=parseFloat(d.style.minHeight),b=parseFloat(d.style.height),x=Math.max(h,b);if(x<g){const y=x+v,w=Math.min(g,y),S=y-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});cl.displayName=lo;var ul="SelectGroup",[Mh,Ah]=Pt(ul),Dh=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Re();return p.jsx(Mh,{scope:n,id:o,children:p.jsx(ae.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Dh.displayName=ul;var dl="SelectLabel",fl=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ah(dl,n);return p.jsx(ae.div,{id:o.id,...r,ref:t})});fl.displayName=dl;var Bn="SelectItem",[Oh,pl]=Pt(Bn),ml=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,i=Xe(Bn,n),l=qe(Bn,n),c=i.value===r,[f,d]=u.useState(s??""),[m,v]=u.useState(!1),g=le(t,y=>l.itemRefCallback?.(y,r,o)),h=Re(),b=u.useRef("touch"),x=()=>{o||(i.onValueChange(r),i.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 p.jsx(Oh,{scope:n,value:r,disabled:o,textId:h,isSelected:c,onItemTextChange:u.useCallback(y=>{d(w=>w||(y?.textContent??"").trim())},[]),children:p.jsx($n.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:p.jsx(ae.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:U(a.onFocus,()=>v(!0)),onBlur:U(a.onBlur,()=>v(!1)),onClick:U(a.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:U(a.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:U(a.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:U(a.onPointerMove,y=>{b.current=y.pointerType,o?l.onItemLeave?.():b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(a.onPointerLeave,y=>{y.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:U(a.onKeyDown,y=>{l.searchRef?.current!==""&&y.key===" "||(yh.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});ml.displayName=Bn;var Gt="SelectItemText",hl=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Xe(Gt,n),i=qe(Gt,n),l=pl(Gt,n),c=Eh(Gt,n),[f,d]=u.useState(null),m=le(t,x=>d(x),l.onItemTextChange,x=>i.itemTextRefCallback?.(x,l.value,l.disabled)),v=f?.textContent,g=u.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:h,onNativeOptionRemove:b}=c;return he(()=>(h(g),()=>b(g)),[h,b,g]),p.jsxs(p.Fragment,{children:[p.jsx(ae.span,{id:l.textId,...s,ref:m}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Xt.createPortal(s.children,a.valueNode):null]})});hl.displayName=Gt;var gl="SelectItemIndicator",vl=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return pl(gl,n).isSelected?p.jsx(ae.span,{"aria-hidden":!0,...r,ref:t}):null});vl.displayName=gl;var co="SelectScrollUpButton",bl=u.forwardRef((e,t)=>{const n=qe(co,e.__scopeSelect),r=io(co,e.__scopeSelect),[o,s]=u.useState(!1),a=le(t,r.onScrollButtonChange);return he(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(yl,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});bl.displayName=co;var uo="SelectScrollDownButton",xl=u.forwardRef((e,t)=>{const n=qe(uo,e.__scopeSelect),r=io(uo,e.__scopeSelect),[o,s]=u.useState(!1),a=le(t,r.onScrollButtonChange);return he(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<c;s(f)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(yl,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});xl.displayName=uo;var yl=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=qe("SelectScrollButton",n),a=u.useRef(null),i=Fn(n),l=u.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return u.useEffect(()=>()=>l(),[l]),he(()=>{i().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),p.jsx(ae.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:U(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:U(o.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:U(o.onPointerLeave,()=>{l()})})}),jh="SelectSeparator",wl=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(ae.div,{"aria-hidden":!0,...r,ref:t})});wl.displayName=jh;var fo="SelectArrow",Lh=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Hn(n),s=Xe(fo,n),a=qe(fo,n);return s.open&&a.position==="popper"?p.jsx(Sr,{...o,...r,ref:t}):null});Lh.displayName=fo;var zh="SelectBubbleInput",Cl=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),s=le(r,o),a=qa(t);return u.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&f){const d=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(d)}},[a,t]),p.jsx(ae.select,{...n,style:{...qi,...n.style},ref:s,defaultValue:t})});Cl.displayName=zh;function Sl(e){return e===""||e===void 0}function El(e){const t=we(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(a=>{const i=n.current+a;t(i),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Pl(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=$h(e,Math.max(s,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function $h(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Fh=Ji,Rl=el,Hh=nl,Bh=rl,Vh=ol,kl=sl,Wh=cl,Tl=fl,Nl=ml,Gh=hl,Uh=vl,_l=bl,Il=xl,Ml=wl;const Kh=Fh,Yh=Hh,Al=u.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Rl,{ref:r,className:X("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(Bh,{asChild:!0,children:p.jsx(er,{className:"h-4 w-4 opacity-50"})})]}));Al.displayName=Rl.displayName;const Dl=u.forwardRef(({className:e,...t},n)=>p.jsx(_l,{ref:n,className:X("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(nu,{className:"h-4 w-4"})}));Dl.displayName=_l.displayName;const Ol=u.forwardRef(({className:e,...t},n)=>p.jsx(Il,{ref:n,className:X("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(er,{className:"h-4 w-4"})}));Ol.displayName=Il.displayName;const jl=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(Vh,{children:p.jsxs(kl,{ref:o,className:X("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] backdrop-blur-2xl overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(Dl,{}),p.jsx(Wh,{className:X("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(Ol,{})]})}));jl.displayName=kl.displayName;const Xh=u.forwardRef(({className:e,...t},n)=>p.jsx(Tl,{ref:n,className:X("px-2 py-1.5 text-sm font-semibold",e),...t}));Xh.displayName=Tl.displayName;const Ll=u.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Nl,{ref:r,className:X("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(Uh,{children:p.jsx(Qn,{className:"h-4 w-4"})})}),p.jsx(Gh,{children:t})]}));Ll.displayName=Nl.displayName;const qh=u.forwardRef(({className:e,...t},n)=>p.jsx(Ml,{ref:n,className:X("-mx-1 my-1 h-px bg-muted",e),...t}));qh.displayName=Ml.displayName;const zl=({title:e,subtitle:t,actions:n,className:r,children:o,onClose:s})=>p.jsx("div",{className:X("bg-muted-foreground/5 text-foreground border-l border-border overflow-hidden w-1/3",r),children:p.jsxs("div",{className:"flex flex-col size-full",children:[p.jsx("div",{className:"relative shrink-0 w-full border-b border-border",children:p.jsxs("div",{className:"flex flex-col gap-0 p-4",children:[p.jsxs("div",{className:"flex items-center justify-between w-full",children:[p.jsx("div",{className:"text-lg font-semibold text-foreground tracking-[-0.25px] leading-tight",children:e}),p.jsxs("div",{className:"flex items-center gap-1",children:[n?.map((a,i)=>p.jsx(Me,{onClick:a.onClick,variant:"ghost",size:"icon","aria-label":a.label,children:a.icon},i)),p.jsx(Me,{onClick:s,variant:"ghost",size:"icon","aria-label":"Close",children:p.jsx(su,{className:"w-4 h-4 text-muted-foreground"})})]})]}),t&&p.jsx("div",{className:"text-md font-medium text-muted-foreground tracking-[-0.25px] leading-tight",children:t})]})}),p.jsx("div",{className:"flex-1 overflow-auto",children:p.jsx("div",{className:"flex flex-col gap-2 p-4",children:o})})]})});zl.displayName="SidePanel";const $l=({children:e})=>p.jsx("table",{className:"w-full",children:e}),Fl=({title:e,children:t})=>p.jsxs("tr",{children:[p.jsx("td",{className:"text-md min-w-[100px] font-medium",children:e}),p.jsx("td",{className:"py-2 text-muted-foreground font-medium",children:t})]});$l.displayName="SidePanelDetail",Fl.displayName="SidePanelDetailItem";var st={},Hl;function Zh(){if(Hl)return st;Hl=1;var e=st&&st.__assign||function(){return e=Object.assign||function(a){for(var i,l=1,c=arguments.length;l<c;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(a[f]=i[f])}return a},e.apply(this,arguments)};Object.defineProperty(st,"__esModule",{value:!0}),st.useResizable=void 0;var t=T,n;(function(a){a.MouseMove="mousemove",a.TouchMove="touchmove"})(n||(n={}));var r;(function(a){a.MouseUp="mouseup",a.TouchEnd="touchend"})(r||(r={}));var o={interval:1,initialHeight:100,initialWidth:100,lockHorizontal:!1,lockVertical:!1},s=function(a){var i=e(e({},o),a),l=(0,t.useRef)(null),c=function(){var d=i.initialHeight,m=i.initialWidth;return{ref:l,style:{height:d,width:m}}},f=function(d){d||(d={});var m=e(e({},i),d),v=m.parent,g=v===void 0?l:v,h=m.interval,b=h===void 0?1:h,x=m.maxHeight,y=x===void 0?Number.MAX_SAFE_INTEGER:x,w=m.maxWidth,S=w===void 0?Number.MAX_SAFE_INTEGER:w,k=m.reverse,M=m.lockHorizontal,E=m.lockVertical,R=m.onResize,K=m.onDragEnd,Y=m.onDragStart,Z=m.minHeight,W=Z===void 0?0:Z,te=m.minWidth,G=te===void 0?0:te,q=m.disabled,j=q===void 0?!1:q,Q=m.maintainAspectRatio,N=Q===void 0?!1:Q,D=function(O,C,I,$,L,J){var ee,ne;if(!j){var ie=((ee=g?.current)===null||ee===void 0?void 0:ee.clientWidth)||0,fe=((ne=g?.current)===null||ne===void 0?void 0:ne.clientHeight)||0,ce=fe,ue=ie;if(!E){var me=C+(O-I)*(k?-1:1);ce=Math.round(me/b)*b,ce<=0&&(ce=b),ce>=y&&(ce=y),ce<=W&&(ce=W),g?.current&&(g.current.style.height="".concat(ce,"px"))}if(!M){var kt=L+($-J)*(k?-1:1);ue=Math.round(kt/b)*b,ue<=0&&(ue=b),ue>=S&&(ue=S),ue<=G&&(ue=G),g?.current&&(g.current.style.width="".concat(ue,"px"))}if(N){var Yt=ie/fe,at=ue/ce;at>Yt?(ue=ce*Yt,g?.current&&(g.current.style.width="".concat(ue,"px"))):(ce=ue/Yt,g?.current&&(g.current.style.height="".concat(ce,"px")))}R&&R({newHeight:ce,heightDiff:ce-fe,newWidth:ue,widthDiff:ue-ie})}},P=function(O,C,I,$){return function(L){L instanceof MouseEvent&&D(L.clientY,O,C,L.clientX,I,$)}},H=function(O,C,I,$){return function(L){L.preventDefault(),L instanceof TouchEvent&&D(L.touches[0].clientY,O,C,L.touches[0].clientX,I,$)}},re=function(O,C,I,$,L){function J(){var ee,ne;if(document.removeEventListener(C,O),document.removeEventListener(I,J),K){var ie=((ee=g?.current)===null||ee===void 0?void 0:ee.clientWidth)||0,fe=((ne=g?.current)===null||ne===void 0?void 0:ne.clientHeight)||0;K({newHeight:fe,heightDiff:fe-$,newWidth:ie,widthDiff:ie-L})}}return J},_=function(O){var C,I;if(!j){var $=((C=g?.current)===null||C===void 0?void 0:C.clientHeight)||0,L=((I=g?.current)===null||I===void 0?void 0:I.clientWidth)||0,J=null,ee=null,ne=null;if(O.type==="mousedown"){var ie=O,fe=ie.clientY,ce=ie.clientX;J=P($,fe,L,ce),ee=n.MouseMove,ne=r.MouseUp}else if(O.type==="touchstart"){var ue=O.touches,me=ue[0],fe=me.clientY,ce=me.clientX;J=H($,fe,L,ce),ee=n.TouchMove,ne=r.TouchEnd}if(!(!J||!ee||!ne)){Y&&Y({newHeight:$,heightDiff:0,newWidth:L,widthDiff:0});var kt=re(J,ee,ne,$,L);document.addEventListener(ee,J,{passive:!1}),document.addEventListener(ne,kt)}}},A;j?A="not-allowed":M&&E?A="default":M?A="row-resize":E?A="col-resize":A="nwse-resize";var F={cursor:A};return{onMouseDown:_,onTouchStart:_,style:F}};return{rootRef:l,getRootProps:c,getHandleProps:f}};return st.useResizable=s,st}var Jh=Zh();const Bl="app-sidebar-container",po="close-previous-sidebar",Qh=({initialWidth:e,onClose:t,containerId:n,...r})=>{const o=T.useMemo(()=>Symbol(),[]),{getRootProps:s,getHandleProps:a}=Jh.useResizable({lockVertical:!0,initialWidth:e??400,initialHeight:"100%",onDragStart:()=>{document.body.style.userSelect="none"},onDragEnd:()=>{document.body.style.userSelect=""}});return T.useEffect(()=>{const i=new CustomEvent(po,{detail:{sidebarId:o}});window.dispatchEvent(i);const l=c=>{c.detail.sidebarId!==o&&t()};return window.addEventListener(po,l),()=>{window.removeEventListener(po,l)}},[o,t]),Gn.createPortal(p.jsxs("div",{...s(),className:"pr-2 py-2 relative",children:[p.jsx("div",{...a({reverse:!0}),className:"flex h-6 w-6 items-center justify-center rounded-full bg-background border border-border absolute top-1/2 -translate-y-1/2 -left-4 z-20",children:p.jsx(Wo,{className:"rotate-90 w-4 h-4 text-muted-foreground"})}),p.jsx(so,{...r,variant:"outlined",className:"max-h-[calc(100vh-80px)] h-full","data-testid":"sidebar-panel"})]}),document.querySelector(`#${n??Bl}`))},Vl=T.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:"relative w-full overflow-auto",children:p.jsx("table",{ref:n,className:X("w-full caption-bottom text-sm",e),...t})}));Vl.displayName="Table";const Wl=T.forwardRef(({className:e,...t},n)=>p.jsx("thead",{ref:n,className:X("[&_tr]:border-b",e),...t}));Wl.displayName="TableHeader";const Gl=T.forwardRef(({className:e,...t},n)=>p.jsx("tbody",{ref:n,className:X("[&_tr:last-child]:border-0",e),...t}));Gl.displayName="TableBody";const eg=T.forwardRef(({className:e,...t},n)=>p.jsx("tfoot",{ref:n,className:X("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));eg.displayName="TableFooter";const Ul=T.forwardRef(({className:e,...t},n)=>p.jsx("tr",{ref:n,className:X("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Ul.displayName="TableRow";const Kl=T.forwardRef(({className:e,...t},n)=>p.jsx("th",{ref:n,className:X("h-10 px-2 text-left align-middle text-md font-medium bg-muted text-muted-foreground font-bold [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Kl.displayName="TableHead";const Yl=T.forwardRef(({className:e,...t},n)=>p.jsx("td",{ref:n,className:X("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Yl.displayName="TableCell";const tg=T.forwardRef(({className:e,...t},n)=>p.jsx("caption",{ref:n,className:X("mt-4 text-sm text-muted-foreground",e),...t}));tg.displayName="TableCaption";const Xl=({className:e,...t})=>p.jsx("textarea",{"data-slot":"textarea",className:X("flex w-full rounded-md px-3 py-2 text-base transition-colors outline-none resize-none","min-h-[80px] field-sizing-content","bg-input","border border-border","text-foreground placeholder:text-muted-foreground","hover:border-border","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/20","aria-invalid:border-destructive","disabled:cursor-not-allowed disabled:opacity-50","text-sm font-medium leading-[1.3] tracking-[-0.01em]",e),...t});Xl.displayName="Textarea";var[Vn]=Ae("Tooltip",[gt]),Wn=gt(),ql="TooltipProvider",ng=700,mo="tooltip.open",[rg,ho]=Vn(ql),Zl=e=>{const{__scopeTooltip:t,delayDuration:n=ng,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),p.jsx(rg,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:s})};Zl.displayName=ql;var Ut="Tooltip",[og,Kt]=Vn(Ut),Jl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=ho(Ut,e.__scopeTooltip),c=Wn(t),[f,d]=u.useState(null),m=Re(),v=u.useRef(0),g=a??l.disableHoverableContent,h=i??l.delayDuration,b=u.useRef(!1),[x,y]=Fe({prop:r,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(mo))):l.onClose(),s?.(E)},caller:Ut}),w=u.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),S=u.useCallback(()=>{window.clearTimeout(v.current),v.current=0,b.current=!1,y(!0)},[y]),k=u.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y(!1)},[y]),M=u.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{b.current=!0,y(!0),v.current=0},h)},[h,y]);return u.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),p.jsx(fn,{...c,children:p.jsx(og,{scope:t,contentId:m,open:x,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?M():S()},[l.isOpenDelayedRef,M,S]),onTriggerLeave:u.useCallback(()=>{g?k():(window.clearTimeout(v.current),v.current=0)},[k,g]),onOpen:S,onClose:k,disableHoverableContent:g,children:n})})};Jl.displayName=Ut;var go="TooltipTrigger",Ql=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Kt(go,n),s=ho(go,n),a=Wn(n),i=u.useRef(null),l=le(t,i,o.onTriggerChange),c=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>c.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(wr,{asChild:!0,...a,children:p.jsx(ae.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:U(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:U(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:U(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});Ql.displayName=go;var vo="TooltipPortal",[sg,ag]=Vn(vo,{forceMount:void 0}),ec=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Kt(vo,t);return p.jsx(sg,{scope:t,forceMount:n,children:p.jsx(je,{present:n||s.open,children:p.jsx(pn,{asChild:!0,container:o,children:r})})})};ec.displayName=vo;var Rt="TooltipContent",tc=u.forwardRef((e,t)=>{const n=ag(Rt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Kt(Rt,e.__scopeTooltip);return p.jsx(je,{present:r||a.open,children:a.disableHoverableContent?p.jsx(nc,{side:o,...s,ref:t}):p.jsx(ig,{side:o,...s,ref:t})})}),ig=u.forwardRef((e,t)=>{const n=Kt(Rt,e.__scopeTooltip),r=ho(Rt,e.__scopeTooltip),o=u.useRef(null),s=le(t,o),[a,i]=u.useState(null),{trigger:l,onClose:c}=n,f=o.current,{onPointerInTransitChange:d}=r,m=u.useCallback(()=>{i(null),d(!1)},[d]),v=u.useCallback((g,h)=>{const b=g.currentTarget,x={x:g.clientX,y:g.clientY},y=fg(x,b.getBoundingClientRect()),w=pg(x,y),S=mg(h.getBoundingClientRect()),k=gg([...w,...S]);i(k),d(!0)},[d]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&f){const g=b=>v(b,f),h=b=>v(b,l);return l.addEventListener("pointerleave",g),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",h)}}},[l,f,v,m]),u.useEffect(()=>{if(a){const g=h=>{const b=h.target,x={x:h.clientX,y:h.clientY},y=l?.contains(b)||f?.contains(b),w=!hg(x,a);y?m():w&&(m(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,f,a,c,m]),p.jsx(nc,{...e,ref:s})}),[lg,cg]=Vn(Ut,{isInside:!1}),ug=lu("TooltipContent"),nc=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=Kt(Rt,n),c=Wn(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(mo,f),()=>document.removeEventListener(mo,f)),[f]),u.useEffect(()=>{if(l.trigger){const d=m=>{m.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),p.jsx(tn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:p.jsxs(Cr,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.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:[p.jsx(ug,{children:r}),p.jsx(lg,{scope:n,isInside:!0,children:p.jsx(bh,{id:l.contentId,role:"tooltip",children:o||r})})]})})});tc.displayName=Rt;var rc="TooltipArrow",dg=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wn(n);return cg(rc,n).isInside?null:p.jsx(Sr,{...o,...r,ref:t})});dg.displayName=rc;function fg(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function pg(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function mg(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function hg(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],c=i.x,f=i.y,d=l.x,m=l.y;f>r!=m>r&&n<(d-c)*(r-f)/(m-f)+c&&(o=!o)}return o}function gg(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),vg(t)}function vg(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var bg=Zl,xg=Jl,yg=Ql,wg=ec,oc=tc;const Cg=bg,Sg=xg,Eg=yg,sc=T.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(wg,{children:p.jsx(oc,{ref:r,sideOffset:t,className:X("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));sc.displayName=oc.displayName;const ac=e=>{let t;const n=new Set,r=(c,f)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const m=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(v=>v(t,m))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,o,i);return i},Pg=e=>e?ac(e):ac,Rg=e=>e;function kg(e,t=Rg){const n=T.useSyncExternalStore(e.subscribe,T.useCallback(()=>t(e.getState()),[e,t]),T.useCallback(()=>t(e.getInitialState()),[e,t]));return T.useDebugValue(n),n}const Tg=e=>{const t=Pg(e),n=r=>kg(t,r);return Object.assign(n,t),n},Ng=e=>Tg;function ic(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var s;const a=l=>l===null?null:JSON.parse(l,void 0),i=(s=n.getItem(o))!=null?s:null;return i instanceof Promise?i.then(a):a(i)},setItem:(o,s)=>n.setItem(o,JSON.stringify(s,void 0)),removeItem:o=>n.removeItem(o)}}const bo=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return bo(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return bo(r)(n)}}}},_g=(e,t)=>(n,r,o)=>{let s={storage:ic(()=>localStorage),partialize:h=>h,version:0,merge:(h,b)=>({...b,...h}),...t},a=!1;const i=new Set,l=new Set;let c=s.storage;if(!c)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...h)},r,o);const f=()=>{const h=s.partialize({...r()});return c.setItem(s.name,{state:h,version:s.version})},d=o.setState;o.setState=(h,b)=>(d(h,b),f());const m=e((...h)=>(n(...h),f()),r,o);o.getInitialState=()=>m;let v;const g=()=>{var h,b;if(!c)return;a=!1,i.forEach(y=>{var w;return y((w=r())!=null?w:m)});const x=((b=s.onRehydrateStorage)==null?void 0:b.call(s,(h=r())!=null?h:m))||void 0;return bo(c.getItem.bind(c))(s.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==s.version){if(s.migrate){const w=s.migrate(y.state,y.version);return w instanceof Promise?w.then(S=>[!0,S]):[!0,w]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var w;const[S,k]=y;if(v=s.merge(k,(w=r())!=null?w:m),n(v,!0),S)return f()}).then(()=>{x?.(v,void 0),v=r(),a=!0,l.forEach(y=>y(v))}).catch(y=>{x?.(void 0,y)})};return o.persist={setOptions:h=>{s={...s,...h},h.storage&&(c=h.storage)},clearStorage:()=>{c?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:h=>(i.add(h),()=>{i.delete(h)}),onFinishHydration:h=>(l.add(h),()=>{l.delete(h)})},s.skipHydration||g(),v||m},lc=e=>{const t=window.document.body;if(t.classList.remove("light","dark"),e==="system"){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";t.classList.add(n);return}t.classList.add(e)},cc=Ng()(_g(e=>({theme:"dark",setTheme:t=>{lc(t),e({theme:t})}}),{name:"motia-theme-storage",storage:ic(()=>localStorage)})),{theme:uc}=cc.getState();uc&&lc(uc),z.APP_SIDEBAR_CONTAINER_ID=Bl,z.BackgroundEffect=Un,z.Badge=Ho,z.Breadcrumb=Xa,z.BreadcrumbItem=Hr,z.Button=Me,z.Checkbox=xm,z.CollapsiblePanel=rh,z.CollapsiblePanelGroup=oh,z.Container=Jr,z.ContainerContent=eo,z.ContainerHeader=Qr,z.DropdownMenu=Ga,z.DropdownMenuCheckboxItem=im,z.DropdownMenuContent=Ka,z.DropdownMenuGroup=am,z.DropdownMenuItem=Ya,z.DropdownMenuLabel=um,z.DropdownMenuRadioGroup=lm,z.DropdownMenuRadioItem=cm,z.DropdownMenuSeparator=dm,z.DropdownMenuSub=fm,z.DropdownMenuSubContent=mm,z.DropdownMenuSubTrigger=pm,z.DropdownMenuTrigger=Ua,z.Empty=sh,z.EmptyContent=dh,z.EmptyDescription=uh,z.EmptyHeader=ah,z.EmptyMedia=lh,z.EmptyTitle=ch,z.Input=Wi,z.Label=Ki,z.LevelDot=hh,z.Panel=so,z.PanelDetailItem=Yi,z.Select=Kh,z.SelectContent=jl,z.SelectItem=Ll,z.SelectTrigger=Al,z.SelectValue=Yh,z.SidePanel=zl,z.SidePanelDetail=$l,z.SidePanelDetailItem=Fl,z.Sidebar=Qh,z.Table=Vl,z.TableBody=Gl,z.TableCell=Yl,z.TableHead=Kl,z.TableHeader=Wl,z.TableRow=Ul,z.Tabs=zn,z.TabsContent=oo,z.TabsList=no,z.TabsTrigger=ro,z.Textarea=Xl,z.Tooltip=Sg,z.TooltipContent=sc,z.TooltipProvider=Cg,z.TooltipTrigger=Eg,z.cn=X,z.useThemeStore=cc,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
|