@editora/ui-react 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/dist/AppHeader-49a8d3e0.mjs +98 -0
  2. package/dist/AppHeader-5c427700.js +33 -0
  3. package/dist/AppHeader.cjs.js +1 -0
  4. package/dist/AppHeader.d.ts +3 -0
  5. package/dist/AppHeader.d.ts.map +1 -0
  6. package/dist/AppHeader.esm.js +5 -0
  7. package/dist/Breadcrumb.cjs.js +1 -0
  8. package/dist/Breadcrumb.d.ts +3 -0
  9. package/dist/Breadcrumb.d.ts.map +1 -0
  10. package/dist/Breadcrumb.esm.js +80 -0
  11. package/dist/Card.cjs.js +34 -0
  12. package/dist/Card.d.ts +3 -0
  13. package/dist/Card.d.ts.map +1 -0
  14. package/dist/Card.esm.js +67 -0
  15. package/dist/Collapsible.cjs.js +1 -0
  16. package/dist/Collapsible.d.ts +3 -0
  17. package/dist/Collapsible.d.ts.map +1 -0
  18. package/dist/Collapsible.esm.js +113 -0
  19. package/dist/Combobox.cjs.js +1 -0
  20. package/dist/Combobox.d.ts +3 -0
  21. package/dist/Combobox.d.ts.map +1 -0
  22. package/dist/Combobox.esm.js +118 -0
  23. package/dist/Command-93c3b761.mjs +62 -0
  24. package/dist/Command-da77cea8.js +1 -0
  25. package/dist/Command.cjs.js +1 -0
  26. package/dist/Command.d.ts +3 -0
  27. package/dist/Command.d.ts.map +1 -0
  28. package/dist/Command.esm.js +7 -0
  29. package/dist/CommandPalette-136d08a9.mjs +68 -0
  30. package/dist/CommandPalette-e827844c.js +1 -0
  31. package/dist/CommandPalette.cjs.js +1 -0
  32. package/dist/CommandPalette.d.ts +3 -0
  33. package/dist/CommandPalette.d.ts.map +1 -0
  34. package/dist/CommandPalette.esm.js +7 -0
  35. package/dist/Drawer.cjs.js +1 -0
  36. package/dist/Drawer.d.ts +3 -0
  37. package/dist/Drawer.d.ts.map +1 -0
  38. package/dist/Drawer.esm.js +124 -0
  39. package/dist/FloatingToolbar.cjs.js +1 -0
  40. package/dist/FloatingToolbar.d.ts +3 -0
  41. package/dist/FloatingToolbar.d.ts.map +1 -0
  42. package/dist/FloatingToolbar.esm.js +100 -0
  43. package/dist/Form.cjs.js +1 -0
  44. package/dist/Form.d.ts +3 -0
  45. package/dist/Form.d.ts.map +1 -0
  46. package/dist/Form.esm.js +98 -0
  47. package/dist/HoverCard.cjs.js +1 -0
  48. package/dist/HoverCard.d.ts +3 -0
  49. package/dist/HoverCard.d.ts.map +1 -0
  50. package/dist/HoverCard.esm.js +61 -0
  51. package/dist/Input.cjs.js +1 -0
  52. package/dist/Input.d.ts +3 -0
  53. package/dist/Input.d.ts.map +1 -0
  54. package/dist/Input.esm.js +126 -0
  55. package/dist/Label.cjs.js +1 -0
  56. package/dist/Label.d.ts +3 -0
  57. package/dist/Label.d.ts.map +1 -0
  58. package/dist/Label.esm.js +46 -0
  59. package/dist/Layout.cjs.js +1 -0
  60. package/dist/Layout.d.ts +3 -0
  61. package/dist/Layout.d.ts.map +1 -0
  62. package/dist/Layout.esm.js +69 -0
  63. package/dist/Menu-010405cb.js +1 -0
  64. package/dist/Menu-43e67281.mjs +142 -0
  65. package/dist/Menu.cjs.js +1 -0
  66. package/dist/Menu.d.ts +3 -0
  67. package/dist/Menu.d.ts.map +1 -0
  68. package/dist/Menu.esm.js +6 -0
  69. package/dist/Menubar.cjs.js +1 -0
  70. package/dist/Menubar.d.ts +3 -0
  71. package/dist/Menubar.d.ts.map +1 -0
  72. package/dist/Menubar.esm.js +75 -0
  73. package/dist/Popover.cjs.js +1 -0
  74. package/dist/Popover.d.ts +3 -0
  75. package/dist/Popover.d.ts.map +1 -0
  76. package/dist/Popover.esm.js +68 -0
  77. package/dist/QuickActions.cjs.js +1 -0
  78. package/dist/QuickActions.d.ts +3 -0
  79. package/dist/QuickActions.d.ts.map +1 -0
  80. package/dist/QuickActions.esm.js +68 -0
  81. package/dist/Rating.cjs.js +1 -0
  82. package/dist/Rating.d.ts +2 -0
  83. package/dist/Rating.d.ts.map +1 -0
  84. package/dist/Rating.esm.js +81 -0
  85. package/dist/Select.cjs.js +1 -0
  86. package/dist/Select.d.ts +3 -0
  87. package/dist/Select.d.ts.map +1 -0
  88. package/dist/Select.esm.js +143 -0
  89. package/dist/SelectionPopup.cjs.js +1 -0
  90. package/dist/SelectionPopup.d.ts +3 -0
  91. package/dist/SelectionPopup.d.ts.map +1 -0
  92. package/dist/SelectionPopup.esm.js +85 -0
  93. package/dist/Sidebar.cjs.js +105 -0
  94. package/dist/Sidebar.d.ts +3 -0
  95. package/dist/Sidebar.d.ts.map +1 -0
  96. package/dist/Sidebar.esm.js +10161 -0
  97. package/dist/Switch.cjs.js +1 -0
  98. package/dist/Switch.d.ts +3 -0
  99. package/dist/Switch.d.ts.map +1 -0
  100. package/dist/Switch.esm.js +67 -0
  101. package/dist/Tabs.cjs.js +1 -0
  102. package/dist/Tabs.d.ts +3 -0
  103. package/dist/Tabs.d.ts.map +1 -0
  104. package/dist/Tabs.esm.js +78 -0
  105. package/dist/Textarea.cjs.js +1 -0
  106. package/dist/Textarea.d.ts +3 -0
  107. package/dist/Textarea.d.ts.map +1 -0
  108. package/dist/Textarea.esm.js +125 -0
  109. package/dist/ToggleGroup-4e0917a9.js +1 -0
  110. package/dist/ToggleGroup-5ef6a876.mjs +118 -0
  111. package/dist/ToggleGroup.cjs.js +1 -0
  112. package/dist/ToggleGroup.d.ts +3 -0
  113. package/dist/ToggleGroup.d.ts.map +1 -0
  114. package/dist/ToggleGroup.esm.js +5 -0
  115. package/dist/Tree.cjs.js +1 -0
  116. package/dist/Tree.d.ts +3 -0
  117. package/dist/Tree.d.ts.map +1 -0
  118. package/dist/Tree.esm.js +44 -0
  119. package/dist/Wizard.cjs.js +1 -0
  120. package/dist/Wizard.d.ts +3 -0
  121. package/dist/Wizard.d.ts.map +1 -0
  122. package/dist/Wizard.esm.js +172 -0
  123. package/dist/__tests__/RatingDemo.d.ts +4 -0
  124. package/dist/__tests__/RatingDemo.d.ts.map +1 -0
  125. package/dist/_internals-b9f3e909.js +1 -0
  126. package/dist/_internals-f8fb69a8.mjs +23 -0
  127. package/dist/components/Accordion.d.ts +6 -1
  128. package/dist/components/Accordion.d.ts.map +1 -1
  129. package/dist/components/Alert.d.ts +14 -2
  130. package/dist/components/Alert.d.ts.map +1 -1
  131. package/dist/components/AlertDialog.d.ts +19 -2
  132. package/dist/components/AlertDialog.d.ts.map +1 -1
  133. package/dist/components/AlertDialogProvider.d.ts +3 -2
  134. package/dist/components/AlertDialogProvider.d.ts.map +1 -1
  135. package/dist/components/Anchor.d.ts +9 -0
  136. package/dist/components/Anchor.d.ts.map +1 -0
  137. package/dist/components/AppHeader.cjs.js +1 -0
  138. package/dist/components/AppHeader.d.ts +40 -3
  139. package/dist/components/AppHeader.d.ts.map +1 -1
  140. package/dist/components/AppHeader.esm.js +5 -0
  141. package/dist/components/AspectRatio.d.ts +6 -0
  142. package/dist/components/AspectRatio.d.ts.map +1 -1
  143. package/dist/components/Avatar.d.ts +4 -3
  144. package/dist/components/Avatar.d.ts.map +1 -1
  145. package/dist/components/Badge.d.ts +3 -2
  146. package/dist/components/Badge.d.ts.map +1 -1
  147. package/dist/components/BlockControls.d.ts +4 -2
  148. package/dist/components/BlockControls.d.ts.map +1 -1
  149. package/dist/components/Box.d.ts +1 -1
  150. package/dist/components/Box.d.ts.map +1 -1
  151. package/dist/components/Breadcrumb.cjs.js +1 -0
  152. package/dist/components/Breadcrumb.d.ts +27 -6
  153. package/dist/components/Breadcrumb.d.ts.map +1 -1
  154. package/dist/components/Breadcrumb.esm.js +7 -0
  155. package/dist/components/Button.d.ts +3 -0
  156. package/dist/components/Button.d.ts.map +1 -1
  157. package/dist/components/Card.cjs.js +1 -0
  158. package/dist/components/Card.d.ts +41 -0
  159. package/dist/components/Card.d.ts.map +1 -0
  160. package/dist/components/Card.esm.js +6 -0
  161. package/dist/components/Chart.d.ts +39 -17
  162. package/dist/components/Chart.d.ts.map +1 -1
  163. package/dist/components/Collapsible.cjs.js +1 -0
  164. package/dist/components/Collapsible.d.ts +29 -5
  165. package/dist/components/Collapsible.d.ts.map +1 -1
  166. package/dist/components/Collapsible.esm.js +7 -0
  167. package/dist/components/Collection.d.ts +20 -0
  168. package/dist/components/Collection.d.ts.map +1 -0
  169. package/dist/components/Combobox.cjs.js +1 -0
  170. package/dist/components/Combobox.d.ts +15 -2
  171. package/dist/components/Combobox.d.ts.map +1 -1
  172. package/dist/components/Combobox.esm.js +6 -0
  173. package/dist/components/Command.cjs.js +1 -0
  174. package/dist/components/Command.d.ts +29 -0
  175. package/dist/components/Command.d.ts.map +1 -0
  176. package/dist/components/Command.esm.js +7 -0
  177. package/dist/components/CommandPalette.cjs.js +1 -0
  178. package/dist/components/CommandPalette.d.ts +45 -270
  179. package/dist/components/CommandPalette.d.ts.map +1 -1
  180. package/dist/components/CommandPalette.esm.js +7 -0
  181. package/dist/components/ContextMenu.d.ts +7 -3
  182. package/dist/components/ContextMenu.d.ts.map +1 -1
  183. package/dist/components/DataTable.d.ts +1 -1
  184. package/dist/components/DateField.d.ts +44 -0
  185. package/dist/components/DateField.d.ts.map +1 -0
  186. package/dist/components/DismissableLayer.d.ts +41 -0
  187. package/dist/components/DismissableLayer.d.ts.map +1 -0
  188. package/dist/components/Drawer.cjs.js +1 -0
  189. package/dist/components/Drawer.d.ts +19 -10
  190. package/dist/components/Drawer.d.ts.map +1 -1
  191. package/dist/components/Drawer.esm.js +6 -0
  192. package/dist/components/Dropdown.d.ts +58 -8
  193. package/dist/components/Dropdown.d.ts.map +1 -1
  194. package/dist/components/FieldSemantics.d.ts +77 -0
  195. package/dist/components/FieldSemantics.d.ts.map +1 -0
  196. package/dist/components/FileUpload.d.ts +76 -0
  197. package/dist/components/FileUpload.d.ts.map +1 -0
  198. package/dist/components/FloatingToolbar.cjs.js +1 -0
  199. package/dist/components/FloatingToolbar.d.ts +7 -275
  200. package/dist/components/FloatingToolbar.d.ts.map +1 -1
  201. package/dist/components/FloatingToolbar.esm.js +7 -0
  202. package/dist/components/FocusScope.d.ts +29 -0
  203. package/dist/components/FocusScope.d.ts.map +1 -0
  204. package/dist/components/Form.cjs.js +1 -0
  205. package/dist/components/Form.d.ts +13 -30
  206. package/dist/components/Form.d.ts.map +1 -1
  207. package/dist/components/Form.esm.js +6 -0
  208. package/dist/components/HoverCard.cjs.js +1 -0
  209. package/dist/components/HoverCard.d.ts +8 -3
  210. package/dist/components/HoverCard.d.ts.map +1 -1
  211. package/dist/components/HoverCard.esm.js +6 -0
  212. package/dist/components/InlineEdit.d.ts +43 -0
  213. package/dist/components/InlineEdit.d.ts.map +1 -0
  214. package/dist/components/Input.cjs.js +1 -0
  215. package/dist/components/Input.d.ts +10 -3
  216. package/dist/components/Input.d.ts.map +1 -1
  217. package/dist/components/Input.esm.js +6 -0
  218. package/dist/components/Label.cjs.js +1 -0
  219. package/dist/components/Label.d.ts +6 -1
  220. package/dist/components/Label.d.ts.map +1 -1
  221. package/dist/components/Label.esm.js +6 -0
  222. package/dist/components/Layout.cjs.js +1 -0
  223. package/dist/components/Layout.d.ts +23 -5
  224. package/dist/components/Layout.d.ts.map +1 -1
  225. package/dist/components/Layout.esm.js +6 -0
  226. package/dist/components/Listbox.d.ts +21 -0
  227. package/dist/components/Listbox.d.ts.map +1 -0
  228. package/dist/components/Menu.cjs.js +1 -0
  229. package/dist/components/Menu.d.ts +61 -10
  230. package/dist/components/Menu.d.ts.map +1 -1
  231. package/dist/components/Menu.esm.js +6 -0
  232. package/dist/components/Menubar.cjs.js +1 -0
  233. package/dist/components/Menubar.d.ts +15 -268
  234. package/dist/components/Menubar.d.ts.map +1 -1
  235. package/dist/components/Menubar.esm.js +6 -0
  236. package/dist/components/Meter.d.ts +30 -0
  237. package/dist/components/Meter.d.ts.map +1 -0
  238. package/dist/components/MultiSelect.d.ts +47 -0
  239. package/dist/components/MultiSelect.d.ts.map +1 -0
  240. package/dist/components/NavigationMenu.d.ts +33 -1
  241. package/dist/components/NavigationMenu.d.ts.map +1 -1
  242. package/dist/components/NumberField.d.ts +37 -0
  243. package/dist/components/NumberField.d.ts.map +1 -0
  244. package/dist/components/Pagination.d.ts +45 -1
  245. package/dist/components/Pagination.d.ts.map +1 -1
  246. package/dist/components/PanelGroup.d.ts +31 -0
  247. package/dist/components/PanelGroup.d.ts.map +1 -0
  248. package/dist/components/PasswordField.d.ts +97 -0
  249. package/dist/components/PasswordField.d.ts.map +1 -0
  250. package/dist/components/PinInput.d.ts +66 -0
  251. package/dist/components/PinInput.d.ts.map +1 -0
  252. package/dist/components/PluginPanel.d.ts +31 -271
  253. package/dist/components/PluginPanel.d.ts.map +1 -1
  254. package/dist/components/Popover.cjs.js +1 -0
  255. package/dist/components/Popover.d.ts +37 -4
  256. package/dist/components/Popover.d.ts.map +1 -1
  257. package/dist/components/Popover.esm.js +7 -0
  258. package/dist/components/Positioner.d.ts +42 -0
  259. package/dist/components/Positioner.d.ts.map +1 -0
  260. package/dist/components/QuickActions.cjs.js +1 -0
  261. package/dist/components/QuickActions.d.ts +4 -1
  262. package/dist/components/QuickActions.d.ts.map +1 -1
  263. package/dist/components/QuickActions.esm.js +6 -0
  264. package/dist/components/Rating.cjs.js +1 -0
  265. package/dist/components/Rating.d.ts +52 -0
  266. package/dist/components/Rating.d.ts.map +1 -0
  267. package/dist/components/Rating.esm.js +5 -0
  268. package/dist/components/RovingFocusGroup.d.ts +22 -0
  269. package/dist/components/RovingFocusGroup.d.ts.map +1 -0
  270. package/dist/components/Select.cjs.js +1 -0
  271. package/dist/components/Select.d.ts +22 -1
  272. package/dist/components/Select.d.ts.map +1 -1
  273. package/dist/components/Select.esm.js +6 -0
  274. package/dist/components/SelectionPopup.cjs.js +1 -0
  275. package/dist/components/SelectionPopup.d.ts +21 -269
  276. package/dist/components/SelectionPopup.d.ts.map +1 -1
  277. package/dist/components/SelectionPopup.esm.js +7 -0
  278. package/dist/components/Sidebar.cjs.js +1 -0
  279. package/dist/components/Sidebar.d.ts +123 -5
  280. package/dist/components/Sidebar.d.ts.map +1 -1
  281. package/dist/components/Sidebar.esm.js +6 -0
  282. package/dist/components/SplitButton.d.ts +49 -0
  283. package/dist/components/SplitButton.d.ts.map +1 -0
  284. package/dist/components/Switch.cjs.js +1 -0
  285. package/dist/components/Switch.d.ts +4 -1
  286. package/dist/components/Switch.d.ts.map +1 -1
  287. package/dist/components/Switch.esm.js +6 -0
  288. package/dist/components/Tabs.cjs.js +1 -0
  289. package/dist/components/Tabs.d.ts +14 -1
  290. package/dist/components/Tabs.d.ts.map +1 -1
  291. package/dist/components/Tabs.esm.js +6 -0
  292. package/dist/components/TagsInput.d.ts +51 -0
  293. package/dist/components/TagsInput.d.ts.map +1 -0
  294. package/dist/components/Textarea.cjs.js +1 -0
  295. package/dist/components/Textarea.d.ts +8 -1
  296. package/dist/components/Textarea.d.ts.map +1 -1
  297. package/dist/components/Textarea.esm.js +6 -0
  298. package/dist/components/ThemeProvider.d.ts.map +1 -1
  299. package/dist/components/ToastAPI.d.ts +8 -0
  300. package/dist/components/ToastAPI.d.ts.map +1 -1
  301. package/dist/components/ToggleGroup.cjs.js +1 -0
  302. package/dist/components/ToggleGroup.d.ts +32 -1
  303. package/dist/components/ToggleGroup.d.ts.map +1 -1
  304. package/dist/components/ToggleGroup.esm.js +5 -0
  305. package/dist/components/TransferList.d.ts +41 -0
  306. package/dist/components/TransferList.d.ts.map +1 -0
  307. package/dist/components/Tree.cjs.js +1 -0
  308. package/dist/components/Tree.d.ts +44 -0
  309. package/dist/components/Tree.d.ts.map +1 -0
  310. package/dist/components/Tree.esm.js +5 -0
  311. package/dist/components/Wizard.cjs.js +1 -0
  312. package/dist/components/Wizard.d.ts +39 -7
  313. package/dist/components/Wizard.d.ts.map +1 -1
  314. package/dist/components/Wizard.esm.js +5 -0
  315. package/dist/components/index.d.ts +39 -7
  316. package/dist/components/index.d.ts.map +1 -1
  317. package/dist/index.cjs.js +1 -1
  318. package/dist/index.d.ts +40 -11
  319. package/dist/index.d.ts.map +1 -1
  320. package/dist/index.esm.js +3853 -4033
  321. package/package.json +177 -3
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),oe=require("@editora/ui-core"),ee=require("@editora/toast"),Ct=g=>g&&g.__esModule?g:{default:g};function er(g){if(g&&g.__esModule)return g;const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(g){for(const e in g)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(g,e);Object.defineProperty(u,e,s.get?s:{enumerable:!0,get:()=>g[e]})}}return u.default=g,Object.freeze(u)}const P=er(c),tr=Ct(ee);function ue(g,u){if(typeof window>"u"||typeof customElements>"u"||customElements.get(g))return;const e=`__editora_warned_${g}`,s=window;s[e]||(s[e]=!0,console.warn(`[ui-react/${u}] ${g} is not registered. Import/register the matching web component before using this wrapper.`))}function be(g){if(!g)return null;if(typeof g=="string")return g;try{return JSON.stringify(g)}catch{return null}}function ge(g,u,e){if(e==null||!e){g.removeAttribute(u);return}g.setAttribute(u,"")}function ne(g,u,e){if(!e){g.removeAttribute(u);return}g.setAttribute(u,e)}const Ie=P.default.forwardRef(function({children:u,onClick:e,variant:s,size:t,icon:a,startIcon:v,endIcon:i,loading:n,loadingLabel:l,state:b,tone:d,block:w,headless:p,disabled:h,animation:r,theme:E,type:L,ariaLabel:y,...A},o){const f=c.useRef(null),R=typeof window<"u"?P.default.useLayoutEffect:P.default.useEffect;c.useImperativeHandle(o,()=>f.current),c.useEffect(()=>{ue("ui-button","Button")},[]),c.useEffect(()=>{const N=f.current;if(!N||!e)return;const I=$=>e($);return N.addEventListener("click",I),()=>N.removeEventListener("click",I)},[e]),R(()=>{const N=f.current;if(!N)return;ne(N,"variant",s),t&&t!=="md"?ne(N,"size",t):N.removeAttribute("size"),ne(N,"icon",a);const I=b||(n?"loading":"idle");I==="idle"?N.removeAttribute("state"):ne(N,"state",I),ge(N,"loading",!!n),ge(N,"block",!!w),ge(N,"headless",!!p),ge(N,"disabled",!!h),ne(N,"animation",r),E&&E!=="default"?ne(N,"theme",E):N.removeAttribute("theme"),ne(N,"tone",d),L&&L!=="button"?ne(N,"type",L):N.removeAttribute("type"),l!==void 0&&ne(N,"loading-label",l),y!==void 0&&ne(N,"aria-label",y)},[s,t,a,n,b,w,p,h,r,E,d,L,l,y]);const k={ref:f,...A,variant:s,size:t&&t!=="md"?t:void 0,icon:a,animation:r,tone:d,type:L&&L!=="button"?L:void 0,loading:n?"":void 0,block:w?"":void 0,headless:p?"":void 0,disabled:h?"":void 0,theme:E&&E!=="default"?E:void 0,state:b&&b!=="idle"?b:void 0,"loading-label":l,"aria-label":y},H=v==null?null:P.default.createElement("span",{slot:"prefix","aria-hidden":"true"},v),S=i==null?null:P.default.createElement("span",{slot:"suffix","aria-hidden":"true"},i);return P.default.createElement("ui-button",k,H,u,S)});Ie.displayName="Button";const rr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Fe=P.default.forwardRef(function({children:u,text:e,placement:s,open:t,disabled:a,headless:v,variant:i,size:n,tone:l,delay:b,closeDelay:d,trigger:w,offset:p,interactive:h,arrow:r,onOpen:E,onClose:L,onOpenChange:y,...A},o){const f=c.useRef(null);return c.useImperativeHandle(o,()=>f.current),c.useEffect(()=>{const R=f.current;if(!R)return;const k=()=>{E==null||E()},H=()=>{L==null||L()},S=N=>{const I=N.detail;I&&typeof I.open=="boolean"&&(y==null||y(I.open))};return R.addEventListener("open",k),R.addEventListener("close",H),R.addEventListener("change",S),()=>{R.removeEventListener("open",k),R.removeEventListener("close",H),R.removeEventListener("change",S)}},[E,L,y]),rr(()=>{const R=f.current;if(!R)return;const k=(S,N)=>{const I=R.getAttribute(S);if(N==null){I!=null&&R.removeAttribute(S);return}I!==N&&R.setAttribute(S,N)},H=(S,N)=>{N?k(S,""):k(S,null)};k("text",e||null),k("placement",s||null),H("open",t),H("disabled",a),H("headless",v),k("variant",i&&i!=="default"?i:null),k("size",n&&n!=="md"?n:null),k("tone",l&&l!=="default"?l:null),k("delay",typeof b=="number"&&Number.isFinite(b)?String(b):null),k("close-delay",typeof d=="number"&&Number.isFinite(d)?String(d):null),k("trigger",w||null),k("offset",typeof p=="number"&&Number.isFinite(p)?String(p):null),H("interactive",h),typeof r=="boolean"?k("arrow",r?"true":"false"):k("arrow",null)},[e,s,t,a,v,i,n,l,b,d,w,p,h,r]),P.default.createElement("ui-tooltip",{ref:f,...A},u)});Fe.displayName="Tooltip";const ir=typeof window<"u"?c.useLayoutEffect:c.useEffect;function ur(g){const{title:u,description:e,tone:s,variant:t,layout:a,dismissible:v,open:i,headless:n,onClose:l,children:b,...d}=g,w=c.useRef(null);return c.useEffect(()=>{const p=w.current;if(!p)return;const h=()=>l==null?void 0:l();return p.addEventListener("close",h),()=>p.removeEventListener("close",h)},[l]),ir(()=>{const p=w.current;p&&(u?p.setAttribute("title",u):p.removeAttribute("title"),e?p.setAttribute("description",e):p.removeAttribute("description"),s?p.setAttribute("tone",s):p.removeAttribute("tone"),t?p.setAttribute("variant",t):p.removeAttribute("variant"),a?p.setAttribute("layout",a):p.removeAttribute("layout"),v?p.setAttribute("dismissible",""):p.removeAttribute("dismissible"),n?p.setAttribute("headless",""):p.removeAttribute("headless"),typeof i=="boolean"?i?p.removeAttribute("hidden"):p.setAttribute("hidden",""):p.removeAttribute("hidden"))},[u,e,s,t,a,v,i,n]),P.default.createElement("ui-alert",{ref:w,...d},b)}const le=typeof window<"u"?c.useLayoutEffect:c.useEffect,Be=P.default.forwardRef(function({children:u,open:e,placement:s,variant:t,density:a,shape:v,elevation:i,tone:n,closeOnSelect:l,typeahead:b,onOpen:d,onClose:w,onChange:p,onChangeDetail:h,onRequestClose:r,onSelect:E,...L},y){const A=c.useRef(null);return P.default.useImperativeHandle(y,()=>A.current),c.useEffect(()=>{const o=A.current;if(!o)return;const f=()=>d==null?void 0:d(),R=()=>w==null?void 0:w(),k=N=>{const I=N.detail||{},$=I==null?void 0:I.open;typeof $=="boolean"&&(p==null||p($)),typeof $=="boolean"&&(h==null||h({open:$,reason:I.reason}))},H=N=>{const I=N.detail||{};typeof I.reason=="string"&&(r==null||r({reason:I.reason}))},S=N=>{E==null||E(N.detail||{})};return o.addEventListener("open",f),o.addEventListener("close",R),o.addEventListener("change",k),o.addEventListener("request-close",H),o.addEventListener("select",S),()=>{o.removeEventListener("open",f),o.removeEventListener("close",R),o.removeEventListener("change",k),o.removeEventListener("request-close",H),o.removeEventListener("select",S)}},[d,w,p,h,r,E]),le(()=>{const o=A.current;!o||e==null||(e?o.setAttribute("open",""):o.removeAttribute("open"))},[e]),le(()=>{const o=A.current;o&&(s?o.setAttribute("placement",s):o.removeAttribute("placement"))},[s]),le(()=>{const o=A.current;o&&(t&&t!=="default"?o.setAttribute("variant",t):o.removeAttribute("variant"))},[t]),le(()=>{const o=A.current;o&&(a&&a!=="default"?o.setAttribute("density",a):o.removeAttribute("density"))},[a]),le(()=>{const o=A.current;o&&(v&&v!=="default"?o.setAttribute("shape",v):o.removeAttribute("shape"))},[v]),le(()=>{const o=A.current;o&&(i&&i!=="default"?o.setAttribute("elevation",i):o.removeAttribute("elevation"))},[i]),le(()=>{const o=A.current;o&&(n&&n!=="default"&&n!=="brand"?o.setAttribute("tone",n):o.removeAttribute("tone"))},[n]),le(()=>{const o=A.current;if(o){if(l==null){o.removeAttribute("close-on-select");return}o.setAttribute("close-on-select",l?"true":"false")}},[l]),le(()=>{const o=A.current;if(o){if(b==null){o.removeAttribute("typeahead");return}o.setAttribute("typeahead",b?"true":"false")}},[b]),P.default.createElement("ui-dropdown",{ref:A,...L},u)});Be.displayName="Dropdown";const nr=typeof window<"u"?c.useLayoutEffect:c.useEffect,je=P.default.forwardRef(function(u,e){const{value:s,onChange:t,onInput:a,onDebouncedInput:v,onClear:i,clearable:n,debounce:l,validation:b,size:d,minlength:w,maxlength:p,readOnly:h,autofocus:r,disabled:E,counter:L,floatingLabel:y,type:A,name:o,required:f,pattern:R,inputMode:k,autoComplete:H,min:S,max:N,step:I,spellCheck:$,placeholder:m,headless:B,variant:M,tone:T,density:G,shape:q,color:J,radius:x,label:j,description:_,children:z,...U}=u,D=c.useRef(null);return c.useImperativeHandle(e,()=>D.current),c.useEffect(()=>{const F=D.current;if(!F)return;const O=K=>{const W=K.detail;typeof(W==null?void 0:W.value)=="string"&&(a==null||a(W.value))},Y=K=>{const W=K.detail;typeof(W==null?void 0:W.value)=="string"&&(t==null||t(W.value))},Q=K=>{const W=K.detail;typeof(W==null?void 0:W.value)=="string"&&(v==null||v(W.value))},Z=()=>{i==null||i()};return F.addEventListener("input",O),F.addEventListener("change",Y),F.addEventListener("debounced-input",Q),F.addEventListener("clear",Z),()=>{F.removeEventListener("input",O),F.removeEventListener("change",Y),F.removeEventListener("debounced-input",Q),F.removeEventListener("clear",Z)}},[t,a,v,i]),nr(()=>{const F=D.current;F&&(n?F.setAttribute("clearable",""):F.removeAttribute("clearable"),typeof l=="number"&&Number.isFinite(l)?F.setAttribute("debounce",String(l)):F.removeAttribute("debounce"),b&&b!=="none"?F.setAttribute("validation",b):F.removeAttribute("validation"),d&&d!=="md"&&d!=="2"?F.setAttribute("size",String(d)):F.removeAttribute("size"),typeof w=="number"?F.setAttribute("minlength",String(w)):F.removeAttribute("minlength"),typeof p=="number"?F.setAttribute("maxlength",String(p)):F.removeAttribute("maxlength"),h?F.setAttribute("readonly",""):F.removeAttribute("readonly"),r?F.setAttribute("autofocus",""):F.removeAttribute("autofocus"),E?F.setAttribute("disabled",""):F.removeAttribute("disabled"),L?F.setAttribute("counter",""):F.removeAttribute("counter"),y?F.setAttribute("floating-label",""):F.removeAttribute("floating-label"),A?F.setAttribute("type",A):F.removeAttribute("type"),o?F.setAttribute("name",o):F.removeAttribute("name"),f?F.setAttribute("required",""):F.removeAttribute("required"),R?F.setAttribute("pattern",R):F.removeAttribute("pattern"),k?F.setAttribute("inputmode",k):F.removeAttribute("inputmode"),H?F.setAttribute("autocomplete",H):F.removeAttribute("autocomplete"),S!=null&&S!==""?F.setAttribute("min",String(S)):F.removeAttribute("min"),N!=null&&N!==""?F.setAttribute("max",String(N)):F.removeAttribute("max"),I!=null&&I!==""?F.setAttribute("step",String(I)):F.removeAttribute("step"),typeof $=="boolean"?F.setAttribute("spellcheck",$?"true":"false"):F.removeAttribute("spellcheck"),m?F.setAttribute("placeholder",m):F.removeAttribute("placeholder"),B?F.setAttribute("headless",""):F.removeAttribute("headless"),M&&M!=="classic"?F.setAttribute("variant",M):F.removeAttribute("variant"),T&&T!=="default"?F.setAttribute("tone",T):F.removeAttribute("tone"),G&&G!=="default"?F.setAttribute("density",G):F.removeAttribute("density"),q&&q!=="default"?F.setAttribute("shape",q):F.removeAttribute("shape"),J?F.setAttribute("color",J):F.removeAttribute("color"),x?F.setAttribute("radius",String(x)):F.removeAttribute("radius"),j?F.setAttribute("label",j):F.removeAttribute("label"),_?F.setAttribute("description",_):F.removeAttribute("description"))},[n,l,b,d,w,p,h,r,E,L,y,A,o,f,R,k,H,S,N,I,$,m,B,M,T,G,q,J,x,j,_]),P.default.createElement("ui-input",{ref:D,value:s??void 0,...U},z)});je.displayName="Input";const lr=typeof window<"u"?c.useLayoutEffect:c.useEffect,qe=P.default.forwardRef(function({value:u,onChange:e,onInput:s,onDebouncedInput:t,onClear:a,clearable:v,debounce:i,validation:n,size:l,minlength:b,maxlength:d,rows:w,readOnly:p,autofocus:h,disabled:r,name:E,required:L,placeholder:y,resize:A,variant:o,color:f,radius:R,label:k,description:H,autosize:S,maxRows:N,showCount:I,density:$,tone:m,headless:B,children:M,...T},G){const q=c.useRef(null);return c.useImperativeHandle(G,()=>q.current),c.useEffect(()=>{const J=q.current;if(!J)return;const x=U=>{const D=U.detail;D&&(s==null||s(D.value))},j=U=>{const D=U.detail;D&&(e==null||e(D.value))},_=U=>{const D=U.detail;D&&(t==null||t(D.value))},z=()=>a==null?void 0:a();return J.addEventListener("input",x),J.addEventListener("change",j),J.addEventListener("debounced-input",_),J.addEventListener("clear",z),()=>{J.removeEventListener("input",x),J.removeEventListener("change",j),J.removeEventListener("debounced-input",_),J.removeEventListener("clear",z)}},[e,s,t,a]),lr(()=>{const J=q.current;if(!J)return;const x=(_,z)=>{const U=J.getAttribute(_);if(z==null){U!=null&&J.removeAttribute(_);return}U!==z&&J.setAttribute(_,z)},j=(_,z)=>{z?x(_,""):x(_,null)};x("value",u!=null?String(u):null),j("clearable",v),j("readonly",p),j("autofocus",h),j("disabled",r),j("required",L),j("autosize",S),j("show-count",I),j("headless",B),x("debounce",typeof i=="number"&&Number.isFinite(i)?String(i):null),x("validation",n&&n!=="none"?n:null),x("size",l&&l!=="md"&&l!=="2"?String(l):null),x("minlength",typeof b=="number"?String(b):null),x("maxlength",typeof d=="number"?String(d):null),x("rows",typeof w=="number"?String(w):null),x("name",E||null),x("placeholder",y||null),x("resize",A||null),x("variant",o&&o!=="classic"?o:null),x("color",f||null),x("radius",R?String(R):null),x("label",k||null),x("description",H||null),x("max-rows",typeof N=="number"?String(N):null),x("density",$&&$!=="default"?$:null),x("tone",m&&m!=="brand"?m:null)},[u,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f,R,k,H,S,N,I,$,m,B]),P.default.createElement("ui-textarea",{ref:q,...T},M)});qe.displayName="Textarea";const sr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function or(g){const{children:u,label:e,description:s,error:t,htmlFor:a,required:v,invalid:i,orientation:n,variant:l,tone:b,density:d,shape:w,shell:p,labelWidth:h,headless:r,...E}=g,L=c.useRef(null);return sr(()=>{const y=L.current;y&&(e!=null&&e!==""?y.setAttribute("label",e):y.removeAttribute("label"),s!=null&&s!==""?y.setAttribute("description",s):y.removeAttribute("description"),t!=null&&t!==""?y.setAttribute("error",t):y.removeAttribute("error"),a?y.setAttribute("for",a):y.removeAttribute("for"),v?y.setAttribute("required",""):y.removeAttribute("required"),i?y.setAttribute("invalid",""):y.removeAttribute("invalid"),n&&n!=="vertical"?y.setAttribute("orientation",n):y.removeAttribute("orientation"),l&&l!=="default"?y.setAttribute("variant",l):y.removeAttribute("variant"),b&&b!=="default"?y.setAttribute("tone",b):y.removeAttribute("tone"),d&&d!=="default"?y.setAttribute("density",d):y.removeAttribute("density"),w&&w!=="default"?y.setAttribute("shape",w):y.removeAttribute("shape"),p&&p!=="none"?y.setAttribute("shell",p):y.removeAttribute("shell"),h?y.setAttribute("label-width",h):y.removeAttribute("label-width"),r?y.setAttribute("headless",""):y.removeAttribute("headless"))},[e,s,t,a,v,i,n,l,b,d,w,p,h,r]),P.default.createElement("ui-field",{ref:L,...E},u)}const fr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function cr(g){const{value:u,open:e,state:s,stateText:t,onChange:a,onInput:v,onDebouncedInput:i,onSelect:n,onOpenDetail:l,onCloseDetail:b,onOpen:d,onClose:w,onClear:p,clearable:h,debounce:r,validation:E,size:L,maxlength:y,readOnly:A,autofocus:o,disabled:f,name:R,required:k,placeholder:H,variant:S,radius:N,label:I,description:$,emptyText:m,noFilter:B,allowCustom:M,children:T,...G}=g,q=c.useRef(null);c.useEffect(()=>{const x=q.current;if(!x)return;const j=Y=>{var Z;const Q=(Z=Y.detail)==null?void 0:Z.query;typeof Q=="string"&&(v==null||v(Q))},_=Y=>{var Z;const Q=(Z=Y.detail)==null?void 0:Z.value;typeof Q=="string"&&(a==null||a(Q))},z=Y=>{var Z;const Q=(Z=Y.detail)==null?void 0:Z.query;typeof Q=="string"&&(i==null||i(Q))},U=Y=>{const Q=Y.detail;typeof(Q==null?void 0:Q.value)=="string"&&(n==null||n(Q.value,Q.label||Q.value))},D=Y=>{const Q=Y.detail;d==null||d(),Q&&(l==null||l(Q))},F=Y=>{const Q=Y.detail;w==null||w(),Q&&(b==null||b(Q))},O=()=>p==null?void 0:p();return x.addEventListener("input",j),x.addEventListener("change",_),x.addEventListener("debounced-input",z),x.addEventListener("select",U),x.addEventListener("open",D),x.addEventListener("close",F),x.addEventListener("clear",O),()=>{x.removeEventListener("input",j),x.removeEventListener("change",_),x.removeEventListener("debounced-input",z),x.removeEventListener("select",U),x.removeEventListener("open",D),x.removeEventListener("close",F),x.removeEventListener("clear",O)}},[a,v,i,n,d,w,l,b,p]),fr(()=>{const x=q.current;x&&(h?x.setAttribute("clearable",""):x.removeAttribute("clearable"),typeof r=="number"&&Number.isFinite(r)?x.setAttribute("debounce",String(r)):x.removeAttribute("debounce"),E&&E!=="none"?x.setAttribute("validation",E):x.removeAttribute("validation"),s&&s!=="idle"?x.setAttribute("state",s):x.removeAttribute("state"),t?x.setAttribute("state-text",t):x.removeAttribute("state-text"),L&&L!=="md"&&L!=="2"?x.setAttribute("size",String(L)):x.removeAttribute("size"),typeof y=="number"?x.setAttribute("maxlength",String(y)):x.removeAttribute("maxlength"),A?x.setAttribute("readonly",""):x.removeAttribute("readonly"),o?x.setAttribute("autofocus",""):x.removeAttribute("autofocus"),f?x.setAttribute("disabled",""):x.removeAttribute("disabled"),R?x.setAttribute("name",R):x.removeAttribute("name"),k?x.setAttribute("required",""):x.removeAttribute("required"),H?x.setAttribute("placeholder",H):x.removeAttribute("placeholder"),S?x.setAttribute("variant",S):x.removeAttribute("variant"),N?x.setAttribute("radius",String(N)):x.removeAttribute("radius"),I?x.setAttribute("label",I):x.removeAttribute("label"),$?x.setAttribute("description",$):x.removeAttribute("description"),m?x.setAttribute("empty-text",m):x.removeAttribute("empty-text"),B?x.setAttribute("no-filter",""):x.removeAttribute("no-filter"),M?x.setAttribute("allow-custom",""):x.removeAttribute("allow-custom"),typeof e=="boolean"&&(e?x.setAttribute("open",""):x.removeAttribute("open")))},[e,s,t,h,r,E,L,y,A,o,f,R,k,H,S,N,I,$,m,B,M]);const J={ref:q,...G};return u!=null&&(J.value=u),typeof e=="boolean"&&e&&(J.open=""),s&&s!=="idle"&&(J.state=s),t&&(J["state-text"]=t),P.default.createElement("ui-combobox",J,T)}const dr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function ar(g){const{text:u,tone:e,variant:s,size:t,radius:a,state:v,pill:i,dot:n,interactive:l,truncate:b,maxWidth:d,removable:w,autoRemove:p,iconOnly:h,disabled:r,onRemove:E,children:L,...y}=g,A=c.useRef(null);return c.useEffect(()=>{const o=A.current;if(!o)return;const f=R=>E==null?void 0:E(R.detail);return o.addEventListener("remove",f),()=>o.removeEventListener("remove",f)},[E]),dr(()=>{const o=A.current;o&&(u?o.setAttribute("text",u):o.removeAttribute("text"),e?o.setAttribute("tone",e):o.removeAttribute("tone"),s?o.setAttribute("variant",s):o.removeAttribute("variant"),t&&t!=="md"&&t!=="2"?o.setAttribute("size",t):o.removeAttribute("size"),a?o.setAttribute("radius",String(a)):o.removeAttribute("radius"),v&&v!=="idle"?o.setAttribute("state",v):o.removeAttribute("state"),i?o.setAttribute("pill",""):o.removeAttribute("pill"),n?o.setAttribute("dot",""):o.removeAttribute("dot"),l?o.setAttribute("interactive",""):o.removeAttribute("interactive"),b?o.setAttribute("truncate",""):o.removeAttribute("truncate"),d?o.setAttribute("max-width",d):o.removeAttribute("max-width"),w?o.setAttribute("removable",""):o.removeAttribute("removable"),p?o.setAttribute("auto-remove",""):o.removeAttribute("auto-remove"),h?o.setAttribute("icon-only",""):o.removeAttribute("icon-only"),r?o.setAttribute("disabled",""):o.removeAttribute("disabled"))},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r]),P.default.createElement("ui-badge",{ref:A,...y},L)}const br=typeof window<"u"?c.useLayoutEffect:c.useEffect;function mr(g){const{title:u,description:e,actionLabel:s,tone:t,compact:a,headless:v,onAction:i,children:n,...l}=g,b=c.useRef(null);return c.useEffect(()=>{const d=b.current;if(!d)return;const w=()=>i==null?void 0:i();return d.addEventListener("action",w),()=>d.removeEventListener("action",w)},[i]),br(()=>{const d=b.current;d&&(u?d.setAttribute("title",u):d.removeAttribute("title"),e?d.setAttribute("description",e):d.removeAttribute("description"),s?d.setAttribute("action-label",s):d.removeAttribute("action-label"),t?d.setAttribute("tone",t):d.removeAttribute("tone"),a?d.setAttribute("compact",""):d.removeAttribute("compact"),v?d.setAttribute("headless",""):d.removeAttribute("headless"))},[u,e,s,t,a,v]),P.default.createElement("ui-empty-state",{ref:b,...l},n)}function vr(g){const{sortable:u,selectable:e,multiSelect:s,striped:t,hover:a,compact:v,bordered:i,stickyHeader:n,loading:l,headless:b,emptyText:d,onSortChange:w,onRowSelect:p,children:h,...r}=g,E=c.useRef(null);return c.useEffect(()=>{const L=E.current;if(!L)return;const y=o=>{const f=o.detail;f&&(w==null||w(f))},A=o=>{const f=o.detail;f&&(p==null||p(f))};return L.addEventListener("sort-change",y),L.addEventListener("row-select",A),()=>{L.removeEventListener("sort-change",y),L.removeEventListener("row-select",A)}},[w,p]),P.default.createElement("ui-table",{ref:E,...r,...u?{sortable:""}:{},...e?{selectable:""}:{},...s?{"multi-select":""}:{},...t?{striped:""}:{},...a?{hover:""}:{},...v?{compact:""}:{},...i?{bordered:""}:{},...n?{"sticky-header":""}:{},...l?{loading:""}:{},...b?{headless:""}:{},...d?{"empty-text":d}:{}},h)}function Ar(g){const{sortable:u,selectable:e,multiSelect:s,shape:t,variant:a,elevation:v,striped:i,hover:n,compact:l,bordered:b,stickyHeader:d,stickyFooter:w,loading:p,state:h,stateText:r,headless:E,hideSummary:L,emptyText:y,page:A,pageSize:o,paginationId:f,filterQuery:R,filterColumn:k,filterRules:H,columnOrder:S,pinColumns:N,draggableColumns:I,resizableColumns:$,bulkActionsLabel:m,bulkClearLabel:B,virtualize:M,rowHeight:T,overscan:G,onSortChange:q,onRowSelect:J,onPageChange:x,onFilterChange:j,onColumnResize:_,onVirtualRangeChange:z,onColumnOrderChange:U,onBulkClear:D,children:F,...O}=g,Y=c.useRef(null);c.useEffect(()=>{const K=Y.current;if(!K)return;const W=re=>{const V=re.detail;V&&(q==null||q(V))},te=re=>{const V=re.detail;V&&(J==null||J(V))},Ae=re=>{const V=re.detail;V&&(x==null||x(V))},pe=re=>{const V=re.detail;V&&(j==null||j(V))},Ee=re=>{const V=re.detail;V&&(_==null||_(V))},ye=re=>{const V=re.detail;V&&(z==null||z(V))},Le=re=>{const V=re.detail;V&&(U==null||U(V))},we=re=>{const V=re.detail;V&&(D==null||D(V))};return K.addEventListener("sort-change",W),K.addEventListener("row-select",te),K.addEventListener("page-change",Ae),K.addEventListener("filter-change",pe),K.addEventListener("column-resize",Ee),K.addEventListener("virtual-range-change",ye),K.addEventListener("column-order-change",Le),K.addEventListener("bulk-clear",we),()=>{K.removeEventListener("sort-change",W),K.removeEventListener("row-select",te),K.removeEventListener("page-change",Ae),K.removeEventListener("filter-change",pe),K.removeEventListener("column-resize",Ee),K.removeEventListener("virtual-range-change",ye),K.removeEventListener("column-order-change",Le),K.removeEventListener("bulk-clear",we)}},[q,J,x,j,_,z,U,D]);const Q=H&&H.length?(()=>{try{return JSON.stringify(H)}catch{return}})():void 0,Z=typeof N=="string"?N.trim()||void 0:N&&typeof N=="object"?(()=>{try{return JSON.stringify(N)}catch{return}})():void 0;return P.default.createElement("ui-data-table",{ref:Y,...O,...u?{sortable:""}:{},...e?{selectable:""}:{},...s?{"multi-select":""}:{},...t&&t!=="default"?{shape:t}:{},...a&&a!=="default"?{variant:a}:{},...v&&v!=="default"?{elevation:v}:{},...i?{striped:""}:{},...n?{hover:""}:{},...l?{compact:""}:{},...b?{bordered:""}:{},...d?{"sticky-header":""}:{},...w?{"sticky-footer":""}:{},...p?{loading:""}:{},...h&&h!=="idle"?{state:h}:{},...r?{"state-text":r}:{},...E?{headless:""}:{},...L?{"hide-summary":""}:{},...y?{"empty-text":y}:{},...typeof A=="number"&&Number.isFinite(A)?{page:String(A)}:{},...typeof o=="number"&&Number.isFinite(o)?{"page-size":String(o)}:{},...f?{"pagination-id":f}:{},...typeof R=="string"?{"filter-query":R}:{},...typeof k=="number"&&Number.isFinite(k)?{"filter-column":String(k)}:typeof k=="string"&&k.trim()?{"filter-column":k}:{},...Q?{filters:Q}:{},...S?{"column-order":S}:{},...Z?{"pin-columns":Z}:{},...I?{"draggable-columns":""}:{},...$?{"resizable-columns":""}:{},...m?{"bulk-actions-label":m}:{},...B?{"bulk-clear-label":B}:{},...M?{virtualize:""}:{},...typeof T=="number"&&Number.isFinite(T)?{"row-height":String(T)}:{},...typeof G=="number"&&Number.isFinite(G)?{overscan:String(G)}:{}},F)}const pr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Je=P.default.forwardRef(function({data:u,values:e,labels:s,type:t,variant:a,title:v,subtitle:i,state:n,disabled:l,interactive:b,showLegend:d,showSummary:w,headless:p,ariaLabel:h,onPointSelect:r,children:E,...L},y){const A=c.useRef(null);return c.useImperativeHandle(y,()=>A.current),c.useEffect(()=>{ue("ui-chart","Chart")},[]),c.useEffect(()=>{const o=A.current;if(!o||!r)return;const f=R=>{const k=R.detail;k&&r(k)};return o.addEventListener("ui-point-select",f),()=>{o.removeEventListener("ui-point-select",f)}},[r]),pr(()=>{const o=A.current;if(!o)return;const f=(k,H)=>{const S=o.getAttribute(k);if(H==null){S!=null&&o.removeAttribute(k);return}S!==H&&o.setAttribute(k,H)},R=(k,H)=>{H?f(k,""):f(k,null)};if(u&&u.length)try{f("data",JSON.stringify(u))}catch{f("data",null)}else f("data",null);e&&e.length?f("values",e.join(",")):f("values",null),s&&s.length?f("labels",s.join(",")):f("labels",null),f("type",t&&t!=="line"?t:null),f("variant",a&&a!=="default"?a:null),f("title",v||null),f("subtitle",i||null),f("state",n&&n!=="idle"?n:null),f("interactive",b===!1?"false":null),f("show-legend",typeof d=="boolean"?d?"true":"false":null),f("show-summary",typeof w=="boolean"?w?"true":"false":null),f("aria-label",h||null),R("disabled",l),R("headless",p)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h]),P.default.createElement("ui-chart",{ref:A,...L},E)});Je.displayName="Chart";const Er=typeof window<"u"?c.useLayoutEffect:c.useEffect,Ge=P.default.forwardRef(function({items:u,variant:e,headless:s,children:t,...a},v){const i=c.useRef(null);return c.useImperativeHandle(v,()=>i.current),Er(()=>{const n=i.current;if(!n)return;const l=(d,w)=>{const p=n.getAttribute(d);if(w==null){p!=null&&n.removeAttribute(d);return}p!==w&&n.setAttribute(d,w)},b=(d,w)=>{w?l(d,""):l(d,null)};if(u&&u.length)try{l("items",JSON.stringify(u))}catch{l("items",null)}else l("items",null);l("variant",e&&e!=="default"?e:null),b("headless",s)},[u,e,s]),P.default.createElement("ui-timeline",{ref:i,...a},t)});Ge.displayName="Timeline";const yr=typeof window<"u"?c.useLayoutEffect:c.useEffect,_e=P.default.forwardRef(function({year:u,month:e,value:s,events:t,variant:a,selection:v,min:i,max:n,disabled:l,readOnly:b,locale:d,translations:w,weekStart:p,outsideClick:h,eventsMax:r,eventsDisplay:E,maxSelections:L,size:y,bare:A,tone:o,state:f,headless:R,hideToday:k,showToday:H,ariaLabel:S,onSelect:N,onChange:I,onCalendarChange:$,onMonthChange:m,onValueChange:B,children:M,...T},G){const q=c.useRef(null);return c.useImperativeHandle(G,()=>q.current),c.useEffect(()=>{ue("ui-calendar","Calendar")},[]),c.useEffect(()=>{const J=q.current;if(!J)return;const x=z=>{const U=z.detail;U&&(N==null||N(U),I==null||I(U),B==null||B(U.value))},j=z=>{const U=z.detail;U&&($==null||$(U))},_=z=>{const U=z.detail;U&&(m==null||m(U))};return J.addEventListener("ui-select",x),J.addEventListener("ui-change",j),J.addEventListener("ui-month-change",_),()=>{J.removeEventListener("ui-select",x),J.removeEventListener("ui-change",j),J.removeEventListener("ui-month-change",_)}},[N,I,$,m,B]),yr(()=>{const J=q.current;if(!J)return;const x=(_,z)=>{const U=J.getAttribute(_);if(z==null){U!=null&&J.removeAttribute(_);return}U!==z&&J.setAttribute(_,z)},j=(_,z)=>{z?J.hasAttribute(_)||J.setAttribute(_,""):J.hasAttribute(_)&&J.removeAttribute(_)};if(typeof u=="number"&&Number.isFinite(u)?x("year",String(u)):x("year",null),typeof e=="number"&&Number.isFinite(e)?x("month",String(e)):x("month",null),x("value",s||null),x("selection",v&&v!=="single"?v:null),x("min",i||null),x("max",n||null),x("locale",d||null),x("translations",be(w)),x("week-start",typeof p=="number"?String(p):null),x("outside-click",h&&h!=="navigate"?h:null),x("events-max",typeof r=="number"&&Number.isFinite(r)?String(r):null),x("events-display",E&&E!=="dots"?E:null),x("max-selections",typeof L=="number"&&Number.isFinite(L)?String(L):null),x("size",y&&y!=="md"?y:null),j("bare",A),x("tone",o||null),x("state",f&&f!=="idle"?f:null),x("show-today",typeof H=="boolean"?H?"true":"false":null),x("aria-label",S||null),j("disabled",l),j("readonly",b),j("hide-today",k),j("headless",R),t&&t.length)try{x("events",JSON.stringify(t))}catch{x("events",null)}else x("events",null);x("variant",a&&a!=="default"?a:null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f,R,k,H,S]),P.default.createElement("ui-calendar",{ref:q,...T},M)});_e.displayName="Calendar";const Lr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Me=P.default.forwardRef(function({value:u,format:e,alpha:s,disabled:t,readOnly:a,size:v,variant:i,state:n,tone:l,mode:b,open:d,closeOnEscape:w,placeholder:p,presets:h,recent:r,maxRecent:E,persist:L,onInput:y,onChange:A,onValueChange:o,onOpen:f,onClose:R,onOpenDetail:k,onCloseDetail:H,onInvalid:S,children:N,...I},$){const m=c.useRef(null);c.useImperativeHandle($,()=>m.current),c.useEffect(()=>{const M=m.current;if(!M)return;const T=j=>{const _=j.detail;_&&(y==null||y(_))},G=j=>{const _=j.detail;_&&(A==null||A(_),o==null||o(_.value))},q=j=>{const _=j.detail;_&&(S==null||S(_))},J=j=>{const _=j.detail;f==null||f(),_&&(k==null||k(_))},x=j=>{const _=j.detail;R==null||R(),_&&(H==null||H(_))};return M.addEventListener("input",T),M.addEventListener("change",G),M.addEventListener("open",J),M.addEventListener("close",x),M.addEventListener("invalid",q),()=>{M.removeEventListener("input",T),M.removeEventListener("change",G),M.removeEventListener("open",J),M.removeEventListener("close",x),M.removeEventListener("invalid",q)}},[y,A,o,f,R,k,H,S]),Lr(()=>{const M=m.current;if(!M)return;const T=(q,J)=>{const x=M.getAttribute(q);J==null?x!=null&&M.removeAttribute(q):x!==J&&M.setAttribute(q,J)},G=(q,J)=>{J?T(q,""):T(q,null)};if(T("value",u??null),T("format",e&&e!=="hex"?e:null),G("alpha",s),G("disabled",t),G("readonly",a),T("size",v&&v!=="md"?v:null),T("variant",i&&i!=="default"?i:null),T("state",n&&n!=="idle"?n:null),T("tone",l&&l!=="brand"?l:null),T("mode",b&&b!=="inline"?b:null),typeof d=="boolean"?G("open",d):T("open",null),T("close-on-escape",typeof w=="boolean"?w?"true":"false":null),T("placeholder",p??null),G("recent",r),T("max-recent",typeof E=="number"?String(E):null),G("persist",L),h&&h.length>0)try{T("presets",JSON.stringify(h))}catch{T("presets",null)}else T("presets",null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L]);const B={ref:m,...I};if(b&&b!=="inline"&&(B.mode=b),typeof d=="boolean"&&d&&(B.open=""),u!=null&&(B.value=u),e&&e!=="hex"&&(B.format=e),s&&(B.alpha=""),t&&(B.disabled=""),a&&(B.readonly=""),v&&v!=="md"&&(B.size=v),i&&i!=="default"&&(B.variant=i),n&&n!=="idle"&&(B.state=n),l&&l!=="brand"&&(B.tone=l),p&&(B.placeholder=p),typeof w=="boolean"&&(B["close-on-escape"]=w?"true":"false"),r&&(B.recent=""),typeof E=="number"&&(B["max-recent"]=String(E)),L&&(B.persist=""),h&&h.length>0)try{B.presets=JSON.stringify(h)}catch{}return P.default.createElement("ui-color-picker",B,N)});Me.displayName="ColorPicker";const wr=typeof window<"u"?c.useLayoutEffect:c.useEffect,ze=P.default.forwardRef(function({value:u,defaultValue:e,open:s,defaultOpen:t,min:a,max:v,locale:i,translations:n,weekStart:l,size:b,shape:d,bare:w,variant:p,state:h,placeholder:r,label:E,hint:L,error:y,clearable:A,allowInput:o,closeOnSelect:f,outsideClick:R,disabled:k,readOnly:H,required:S,name:N,mode:I,showFooter:$,events:m,eventsMax:B,eventsDisplay:M,format:T,displayFormat:G,onInput:q,onChange:J,onValueChange:x,onOpen:j,onClose:_,onInvalid:z,children:U,...D},F){const O=c.useRef(null);return c.useImperativeHandle(F,()=>O.current),c.useEffect(()=>{const Y=O.current;if(!Y)return;const Q=W=>{const te=W.detail;te&&(q==null||q(te))},Z=W=>{const te=W.detail;te&&(J==null||J(te),x==null||x(te.value))},K=W=>{const te=W.detail;te&&(z==null||z(te))};return Y.addEventListener("input",Q),Y.addEventListener("change",Z),Y.addEventListener("open",j),Y.addEventListener("close",_),Y.addEventListener("invalid",K),()=>{Y.removeEventListener("input",Q),Y.removeEventListener("change",Z),Y.removeEventListener("open",j),Y.removeEventListener("close",_),Y.removeEventListener("invalid",K)}},[q,J,x,j,_,z]),wr(()=>{const Y=O.current;if(!Y)return;const Q=(K,W)=>{const te=Y.getAttribute(K);W==null?te!=null&&Y.removeAttribute(K):te!==W&&Y.setAttribute(K,W)},Z=(K,W)=>{W?Q(K,""):Q(K,null)};if(Q("value",u??null),Q("default-value",e??null),typeof s=="boolean"?Z("open",s):Q("open",null),Z("default-open",t),Q("min",a??null),Q("max",v??null),Q("locale",i??null),Q("translations",be(n)),Q("week-start",typeof l=="number"?String(l):null),Q("size",b&&b!=="md"?b:null),Q("shape",d&&d!=="default"?d:null),Z("bare",w),Q("variant",p&&p!=="default"?p:null),Q("state",h&&h!=="idle"?h:null),Q("placeholder",r??null),Q("label",E??null),Q("hint",L??null),Q("error",y??null),Z("clearable",A),Z("allow-input",o),Z("close-on-select",f),Q("outside-click",R&&R!=="navigate"?R:null),Z("disabled",k),Z("readonly",H),Z("required",S),Q("name",N??null),Q("mode",I&&I!=="popover"?I:null),Q("show-footer",typeof $=="boolean"?String($):null),Q("events-max",typeof B=="number"?String(B):null),Q("events-display",M&&M!=="dots"?M:null),Q("format",T&&T!=="locale"?T:null),Q("display-format",G??null),m!=null&&m.length)try{Q("events",JSON.stringify(m))}catch{Q("events",null)}else Q("events",null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f,R,k,H,S,N,I,$,m,B,M,T,G]),P.default.createElement("ui-date-picker",{ref:O,...D},U)});ze.displayName="DatePicker";const gr=typeof window<"u"?c.useLayoutEffect:c.useEffect,De=P.default.forwardRef(function({value:u,defaultValue:e,open:s,defaultOpen:t,min:a,max:v,locale:i,translations:n,weekStart:l,size:b,shape:d,bare:w,variant:p,state:h,rangeVariant:r,label:E,hint:L,error:y,allowSameDay:A,allowPartial:o,closeOnSelect:f,clearable:R,disabled:k,readOnly:H,required:S,name:N,nameStart:I,nameEnd:$,mode:m,showFooter:B,onInput:M,onChange:T,onValueChange:G,onOpen:q,onClose:J,onInvalid:x,children:j,..._},z){const U=c.useRef(null);return c.useImperativeHandle(z,()=>U.current),c.useEffect(()=>{const D=U.current;if(!D)return;const F=Q=>{const Z=Q.detail;Z&&(M==null||M(Z))},O=Q=>{const Z=Q.detail;Z&&(T==null||T(Z),G==null||G(Z.value?JSON.stringify(Z.value):null))},Y=Q=>{const Z=Q.detail;Z&&(x==null||x(Z))};return D.addEventListener("input",F),D.addEventListener("change",O),D.addEventListener("open",q),D.addEventListener("close",J),D.addEventListener("invalid",Y),()=>{D.removeEventListener("input",F),D.removeEventListener("change",O),D.removeEventListener("open",q),D.removeEventListener("close",J),D.removeEventListener("invalid",Y)}},[M,T,G,q,J,x]),gr(()=>{const D=U.current;if(!D)return;const F=(Y,Q)=>{const Z=D.getAttribute(Y);Q==null?Z!=null&&D.removeAttribute(Y):Z!==Q&&D.setAttribute(Y,Q)},O=(Y,Q)=>{Q?F(Y,""):F(Y,null)};F("value",u??null),F("default-value",e??null),typeof s=="boolean"?O("open",s):F("open",null),O("default-open",t),F("min",a??null),F("max",v??null),F("locale",i??null),F("translations",be(n)),F("week-start",typeof l=="number"?String(l):null),F("size",b&&b!=="md"?b:null),F("shape",d&&d!=="default"?d:null),O("bare",w),F("variant",p&&p!=="default"?p:null),F("state",h&&h!=="idle"?h:null),F("range-variant",r&&r!=="two-fields"?r:null),F("label",E??null),F("hint",L??null),F("error",y??null),O("allow-same-day",A),O("allow-partial",o),O("close-on-select",f),O("clearable",R),O("disabled",k),O("readonly",H),O("required",S),F("name",N??null),F("name-start",I??null),F("name-end",$??null),F("mode",m&&m!=="popover"?m:null),F("show-footer",typeof B=="boolean"?String(B):null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f,R,k,H,S,N,I,$,m,B]),P.default.createElement("ui-date-range-picker",{ref:U,..._},j)});De.displayName="DateRangePicker";const hr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Qe=P.default.forwardRef(function({value:u,defaultValue:e,open:s,defaultOpen:t,format:a,step:v,seconds:i,stepSeconds:n,min:l,max:b,disabled:d,readOnly:w,required:p,name:h,clearable:r,allowInput:E,mode:L,label:y,hint:A,error:o,locale:f,translations:R,variant:k,onInput:H,onChange:S,onValueChange:N,onOpen:I,onClose:$,onInvalid:m,children:B,...M},T){const G=c.useRef(null);return c.useImperativeHandle(T,()=>G.current),c.useEffect(()=>{const q=G.current;if(!q)return;const J=_=>{const z=_.detail;z&&(H==null||H(z))},x=_=>{const z=_.detail;z&&(S==null||S(z),N==null||N(z.value))},j=_=>{const z=_.detail;z&&(m==null||m(z))};return q.addEventListener("input",J),q.addEventListener("change",x),q.addEventListener("open",I),q.addEventListener("close",$),q.addEventListener("invalid",j),()=>{q.removeEventListener("input",J),q.removeEventListener("change",x),q.removeEventListener("open",I),q.removeEventListener("close",$),q.removeEventListener("invalid",j)}},[H,S,N,I,$,m]),hr(()=>{const q=G.current;if(!q)return;const J=(j,_)=>{const z=q.getAttribute(j);_==null?z!=null&&q.removeAttribute(j):z!==_&&q.setAttribute(j,_)},x=(j,_)=>{_?J(j,""):J(j,null)};J("value",u??null),J("default-value",e??null),typeof s=="boolean"?x("open",s):J("open",null),x("default-open",t),J("format",a&&a!=="24h"?a:null),J("step",typeof v=="number"?String(v):null),x("seconds",i),J("step-seconds",typeof n=="number"?String(n):null),J("min",l??null),J("max",b??null),x("disabled",d),x("readonly",w),x("required",p),J("name",h??null),x("clearable",r),x("allow-input",E),J("mode",L&&L!=="popover"?L:null),J("label",y??null),J("hint",A??null),J("error",o??null),J("locale",f??null),J("translations",be(R)),J("variant",k&&k!=="default"?k:null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f,R,k]),P.default.createElement("ui-time-picker",{ref:G,...M},B)});Qe.displayName="TimePicker";const Rr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Ue=P.default.forwardRef(function({value:u,defaultValue:e,open:s,defaultOpen:t,min:a,max:v,locale:i,translations:n,weekStart:l,size:b,bare:d,variant:w,step:p,format:h,disabled:r,readOnly:E,required:L,name:y,closeOnSelect:A,clearable:o,allowInput:f,mode:R,showFooter:k,label:H,hint:S,error:N,onInput:I,onChange:$,onValueChange:m,onOpen:B,onClose:M,onInvalid:T,children:G,...q},J){const x=c.useRef(null);return c.useImperativeHandle(J,()=>x.current),c.useEffect(()=>{const j=x.current;if(!j)return;const _=D=>{const F=D.detail;F&&(I==null||I(F))},z=D=>{const F=D.detail;F&&($==null||$(F),m==null||m(F.value))},U=D=>{const F=D.detail;F&&(T==null||T(F))};return j.addEventListener("input",_),j.addEventListener("change",z),j.addEventListener("open",B),j.addEventListener("close",M),j.addEventListener("invalid",U),()=>{j.removeEventListener("input",_),j.removeEventListener("change",z),j.removeEventListener("open",B),j.removeEventListener("close",M),j.removeEventListener("invalid",U)}},[I,$,m,B,M,T]),Rr(()=>{const j=x.current;if(!j)return;const _=(U,D)=>{const F=j.getAttribute(U);D==null?F!=null&&j.removeAttribute(U):F!==D&&j.setAttribute(U,D)},z=(U,D)=>{D?_(U,""):_(U,null)};_("value",u??null),_("default-value",e??null),typeof s=="boolean"?z("open",s):_("open",null),z("default-open",t),_("min",a??null),_("max",v??null),_("locale",i??null),_("translations",be(n)),_("week-start",typeof l=="number"?String(l):null),_("size",b&&b!=="md"?b:null),z("bare",d),_("variant",w&&w!=="default"?w:null),_("step",typeof p=="number"?String(p):null),_("format",h&&h!=="24h"?h:null),z("disabled",r),z("readonly",E),z("required",L),_("name",y??null),z("close-on-select",A),z("clearable",o),z("allow-input",f),_("mode",R&&R!=="popover"?R:null),_("show-footer",typeof k=="boolean"?String(k):null),_("label",H??null),_("hint",S??null),_("error",N??null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f,R,k,H,S,N]),P.default.createElement("ui-date-time-picker",{ref:x,...q},G)});Ue.displayName="DateTimePicker";const Hr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Xe=P.default.forwardRef(function({value:u,defaultValue:e,open:s,defaultOpen:t,min:a,max:v,locale:i,translations:n,weekStart:l,size:b,bare:d,variant:w,step:p,autoNormalize:h,allowPartial:r,disabled:E,readOnly:L,required:y,name:A,closeOnSelect:o,clearable:f,mode:R,showFooter:k,label:H,hint:S,error:N,onInput:I,onChange:$,onValueChange:m,onOpen:B,onClose:M,onInvalid:T,children:G,...q},J){const x=c.useRef(null);return c.useImperativeHandle(J,()=>x.current),c.useEffect(()=>{const j=x.current;if(!j)return;const _=D=>{const F=D.detail;F&&(I==null||I(F))},z=D=>{const F=D.detail;F&&($==null||$(F),m==null||m(F.value?JSON.stringify(F.value):null))},U=D=>{const F=D.detail;F&&(T==null||T(F))};return j.addEventListener("input",_),j.addEventListener("change",z),j.addEventListener("open",B),j.addEventListener("close",M),j.addEventListener("invalid",U),()=>{j.removeEventListener("input",_),j.removeEventListener("change",z),j.removeEventListener("open",B),j.removeEventListener("close",M),j.removeEventListener("invalid",U)}},[I,$,m,B,M,T]),Hr(()=>{const j=x.current;if(!j)return;const _=(U,D)=>{const F=j.getAttribute(U);D==null?F!=null&&j.removeAttribute(U):F!==D&&j.setAttribute(U,D)},z=(U,D)=>{D?_(U,""):_(U,null)};_("value",u??null),_("default-value",e??null),typeof s=="boolean"?z("open",s):_("open",null),z("default-open",t),_("min",a??null),_("max",v??null),_("locale",i??null),_("translations",be(n)),_("week-start",typeof l=="number"?String(l):null),_("size",b&&b!=="md"?b:null),z("bare",d),_("variant",w&&w!=="default"?w:null),_("step",typeof p=="number"?String(p):null),z("auto-normalize",h),z("allow-partial",r),z("disabled",E),z("readonly",L),z("required",y),_("name",A??null),z("close-on-select",o),z("clearable",f),_("mode",R&&R!=="popover"?R:null),_("show-footer",typeof k=="boolean"?String(k):null),_("label",H??null),_("hint",S??null),_("error",N??null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f,R,k,H,S,N]),P.default.createElement("ui-date-range-time-picker",{ref:x,...q},G)});Xe.displayName="DateRangeTimePicker";const Nr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Ye=P.default.forwardRef(function({tasks:u,variant:e,headless:s,children:t,...a},v){const i=c.useRef(null);return c.useImperativeHandle(v,()=>i.current),Nr(()=>{const n=i.current;if(!n)return;const l=(d,w)=>{const p=n.getAttribute(d);if(w==null){p!=null&&n.removeAttribute(d);return}p!==w&&n.setAttribute(d,w)},b=(d,w)=>{w?l(d,""):l(d,null)};if(u&&u.length)try{l("tasks",JSON.stringify(u))}catch{l("tasks",null)}else l("tasks",null);l("variant",e&&e!=="default"?e:null),b("headless",s)},[u,e,s]),P.default.createElement("ui-gantt",{ref:i,...a},t)});Ye.displayName="Gantt";const Sr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Ze=P.default.forwardRef(function({steps:u,value:e,orientation:s,variant:t,size:a,clickable:v,linear:i,headless:n,onChange:l,onSelect:b,children:d,...w},p){const h=c.useRef(null);return c.useImperativeHandle(p,()=>h.current),c.useEffect(()=>{const r=h.current;if(!r)return;const E=y=>{const A=y.detail;A&&(l==null||l(A))},L=y=>{const A=y.detail;A&&(b==null||b(A))};return r.addEventListener("change",E),r.addEventListener("select",L),()=>{r.removeEventListener("change",E),r.removeEventListener("select",L)}},[l,b]),Sr(()=>{const r=h.current;if(!r)return;const E=(y,A)=>{const o=r.getAttribute(y);if(A==null){o!=null&&r.removeAttribute(y);return}o!==A&&r.setAttribute(y,A)},L=(y,A)=>{A?E(y,""):E(y,null)};if(u&&u.length)try{E("steps",JSON.stringify(u))}catch{E("steps",null)}else E("steps",null);E("value",e||null),E("orientation",s&&s!=="horizontal"?s:null),E("variant",t&&t!=="default"?t:null),E("size",a&&a!=="md"?a:null),L("clickable",v),L("linear",i),L("headless",n)},[u,e,s,t,a,v,i,n]),P.default.createElement("ui-stepper",{ref:h,...w},d)});Ze.displayName="Stepper";const kr=typeof window<"u"?c.useLayoutEffect:c.useEffect,Ke=P.default.forwardRef(function({value:u,linear:e,showStepper:s,stepperPosition:t,hideControls:a,keepMounted:v,variant:i,orientation:n,density:l,shape:b,showProgress:d,busy:w,headless:p,title:h,description:r,emptyLabel:E,nextLabel:L,prevLabel:y,finishLabel:A,onBeforeChange:o,onChange:f,onStepChange:R,onComplete:k,children:H,...S},N){const I=c.useRef(null);return c.useImperativeHandle(N,()=>I.current),c.useEffect(()=>{const $=I.current;if(!$)return;const m=G=>{if(!o)return;const q=G.detail;o(q)===!1&&G.preventDefault()},B=G=>{const q=G.detail;q&&(f==null||f(q))},M=G=>{const q=G.detail;q&&(R==null||R(q))},T=G=>{const q=G.detail;q&&(k==null||k(q))};return $.addEventListener("before-change",m),$.addEventListener("change",B),$.addEventListener("step-change",M),$.addEventListener("complete",T),()=>{$.removeEventListener("before-change",m),$.removeEventListener("change",B),$.removeEventListener("step-change",M),$.removeEventListener("complete",T)}},[o,f,R,k]),kr(()=>{const $=I.current;if(!$)return;const m=(M,T)=>{const G=$.getAttribute(M);if(T==null){G!=null&&$.removeAttribute(M);return}G!==T&&$.setAttribute(M,T)},B=(M,T,G)=>{if(typeof T=="boolean"){T?m(M,""):m(M,null);return}G!==void 0&&(G?m(M,""):m(M,null))};m("value",u||null),B("linear",e),typeof s=="boolean"?m("show-stepper",s?"true":"false"):m("show-stepper",null),m("stepper-position",t&&t!=="top"?t:null),B("hide-controls",a),B("keep-mounted",v),m("variant",i&&i!=="default"?i:null),m("orientation",n&&n!=="horizontal"?n:null),m("density",l&&l!=="default"?l:null),m("shape",b&&b!=="rounded"?b:null),typeof d=="boolean"?m("show-progress",d?"true":"false"):m("show-progress",null),B("busy",w),B("headless",p),m("title",h||null),m("description",r||null),m("empty-label",E||null),m("next-label",L||null),m("prev-label",y||null),m("finish-label",A||null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A]),P.default.createElement("ui-wizard",{ref:I,...S},H)});Ke.displayName="Wizard";const Pr=typeof window<"u"?c.useLayoutEffect:c.useEffect,We=P.default.forwardRef(function({open:u,mode:e,orientation:s,variant:t,floating:a,placement:v,collapsible:i,label:n,headless:l,onSelect:b,onOpenChange:d,onToggle:w,children:p,...h},r){const E=c.useRef(null);return c.useImperativeHandle(r,()=>E.current),c.useEffect(()=>{const L=E.current;if(!L)return;const y=f=>{const R=f.detail;R&&(b==null||b(R))},A=f=>{var k;const R=(k=f.detail)==null?void 0:k.open;typeof R=="boolean"&&(d==null||d(R))},o=f=>{var k;const R=(k=f.detail)==null?void 0:k.open;typeof R=="boolean"&&(w==null||w(R))};return L.addEventListener("select",y),L.addEventListener("change",A),L.addEventListener("toggle",o),()=>{L.removeEventListener("select",y),L.removeEventListener("change",A),L.removeEventListener("toggle",o)}},[b,d,w]),Pr(()=>{const L=E.current;if(!L)return;const y=(o,f)=>{const R=L.getAttribute(o);if(f==null){R!=null&&L.removeAttribute(o);return}R!==f&&L.setAttribute(o,f)},A=(o,f)=>{f?y(o,""):y(o,null)};typeof u=="boolean"?A("open",u):y("open",null),y("mode",e&&e!=="bar"?e:null),y("orientation",s&&s!=="horizontal"?s:null),y("variant",t&&t!=="default"?t:null),A("floating",a),y("placement",v&&v!=="bottom-right"?v:null),A("collapsible",i),y("label",n||null),A("headless",l)},[u,e,s,t,a,v,i,n,l]),P.default.createElement("ui-quick-actions",{ref:E,...h},p)});We.displayName="QuickActions";const $r=typeof window<"u"?c.useLayoutEffect:c.useEffect;function xr(g){const{selected:u,orientation:e,activation:s,loop:t,collapsible:a,headless:v,onChange:i,onSelect:n,children:l,...b}=g,d=c.useRef(null);return c.useEffect(()=>{const w=d.current;if(!w)return;const p=h=>{const r=h.detail;r&&(i==null||i(r),n==null||n(r.selected))};return w.addEventListener("change",p),()=>w.removeEventListener("change",p)},[i,n]),$r(()=>{const w=d.current;w&&(typeof u=="number"?w.setAttribute("selected",String(u)):w.removeAttribute("selected"),e?w.setAttribute("orientation",e):w.removeAttribute("orientation"),s?w.setAttribute("activation",s):w.removeAttribute("activation"),typeof t=="boolean"?w.setAttribute("loop",String(t)):w.removeAttribute("loop"),a?w.setAttribute("collapsible",""):w.removeAttribute("collapsible"),v?w.setAttribute("headless",""):w.removeAttribute("headless"))},[u,e,s,t,a,v]),P.default.createElement("ui-navigation-menu",{ref:d,...b},l)}const Tr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Ir(g){const{selected:u,open:e,loop:s,headless:t,orientation:a,placement:v,variant:i,density:n,shape:l,elevation:b,tone:d,closeOnSelect:w,typeahead:p,onChange:h,onOpen:r,onClose:E,onSelect:L,children:y,...A}=g,o=c.useRef(null);return c.useEffect(()=>{const f=o.current;if(!f)return;const R=N=>{const I=N.detail;I&&(h==null||h(I))},k=N=>{const I=N.detail;typeof(I==null?void 0:I.selected)=="number"?r==null||r(I.selected):r==null||r(-1)},H=()=>E==null?void 0:E(),S=N=>{const I=N.detail;I&&(L==null||L(I))};return f.addEventListener("change",R),f.addEventListener("open",k),f.addEventListener("close",H),f.addEventListener("select",S),()=>{f.removeEventListener("change",R),f.removeEventListener("open",k),f.removeEventListener("close",H),f.removeEventListener("select",S)}},[h,r,E,L]),Tr(()=>{const f=o.current;f&&(typeof u=="number"?f.setAttribute("selected",String(u)):f.removeAttribute("selected"),typeof e=="boolean"&&e?f.setAttribute("open",""):f.removeAttribute("open"),typeof s=="boolean"?f.setAttribute("loop",String(s)):f.removeAttribute("loop"),t?f.setAttribute("headless",""):f.removeAttribute("headless"),a&&a!=="horizontal"?f.setAttribute("orientation",a):f.removeAttribute("orientation"),v?f.setAttribute("placement",v):f.removeAttribute("placement"),i&&i!=="default"?f.setAttribute("variant",i):f.removeAttribute("variant"),n&&n!=="default"?f.setAttribute("density",n):f.removeAttribute("density"),l&&l!=="default"?f.setAttribute("shape",l):f.removeAttribute("shape"),b&&b!=="default"?f.setAttribute("elevation",b):f.removeAttribute("elevation"),d&&d!=="default"&&d!=="brand"?f.setAttribute("tone",d):f.removeAttribute("tone"),w==null?f.removeAttribute("close-on-select"):f.setAttribute("close-on-select",w?"true":"false"),p==null?f.removeAttribute("typeahead"):f.setAttribute("typeahead",p?"true":"false"))},[u,e,s,t,a,v,i,n,l,b,d,w,p]),P.default.createElement("ui-menubar",{ref:o,...A},y)}const Fr=typeof window<"u"?P.default.useLayoutEffect:P.default.useEffect,Oe=P.default.forwardRef(function(u,e){const{open:s,title:t,description:a,closable:v,dismissible:i,closeOnOverlay:n,closeOnEsc:l,lockWhileLoading:b,roleType:d,size:w,state:p,initialFocus:h,submitText:r,cancelText:E,loadingText:L,dialogId:y,config:A,headless:o,onOpen:f,onClose:R,onRequestClose:k,onDialogOpen:H,onDialogSubmit:S,onDialogCancel:N,onDialogDismiss:I,onDialogClose:$,children:m,...B}=u,M=c.useRef(null);return P.default.useImperativeHandle(e,()=>M.current),c.useEffect(()=>{const T=M.current;if(!T)return;const G=()=>f==null?void 0:f(),q=()=>R==null?void 0:R(),J=D=>{const F=D.detail;F&&(k==null||k(F))},x=D=>H==null?void 0:H(D.detail),j=D=>S==null?void 0:S(D.detail),_=D=>N==null?void 0:N(D.detail),z=D=>I==null?void 0:I(D.detail),U=D=>$==null?void 0:$(D.detail);return T.addEventListener("open",G),T.addEventListener("close",q),T.addEventListener("request-close",J),T.addEventListener("ui-open",x),T.addEventListener("ui-submit",j),T.addEventListener("ui-cancel",_),T.addEventListener("ui-dismiss",z),T.addEventListener("ui-close",U),()=>{T.removeEventListener("open",G),T.removeEventListener("close",q),T.removeEventListener("request-close",J),T.removeEventListener("ui-open",x),T.removeEventListener("ui-submit",j),T.removeEventListener("ui-cancel",_),T.removeEventListener("ui-dismiss",z),T.removeEventListener("ui-close",U)}},[f,R,k,H,S,N,I,$]),Fr(()=>{const T=M.current;if(!T)return;typeof s=="boolean"&&(s?T.setAttribute("open",""):T.removeAttribute("open")),t?T.setAttribute("title",t):T.removeAttribute("title"),a?T.setAttribute("description",a):T.removeAttribute("description");const G=typeof i=="boolean"?i:v;typeof G=="boolean"?(T.setAttribute("dismissible",String(G)),T.setAttribute("closable",String(G))):(T.removeAttribute("dismissible"),T.removeAttribute("closable")),typeof n=="boolean"?(T.setAttribute("close-on-overlay",String(n)),T.setAttribute("close-on-backdrop",String(n))):(T.removeAttribute("close-on-overlay"),T.removeAttribute("close-on-backdrop")),typeof l=="boolean"?T.setAttribute("close-on-esc",String(l)):T.removeAttribute("close-on-esc"),typeof b=="boolean"?T.setAttribute("lock-while-loading",String(b)):T.removeAttribute("lock-while-loading"),d?T.setAttribute("role",d):T.removeAttribute("role"),w&&w!=="md"&&w!=="2"?T.setAttribute("size",w):T.removeAttribute("size"),p&&p!=="idle"?T.setAttribute("state",p):T.removeAttribute("state"),h?T.setAttribute("initial-focus",h):T.removeAttribute("initial-focus"),r?T.setAttribute("submit-text",r):T.removeAttribute("submit-text"),E?T.setAttribute("cancel-text",E):T.removeAttribute("cancel-text"),L?T.setAttribute("loading-text",L):T.removeAttribute("loading-text"),y&&(T.dialogId=y),A&&(T.config=A),o?T.setAttribute("headless",""):T.removeAttribute("headless")},[s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o]),P.default.createElement("ui-dialog",{ref:M,...B},m)});Oe.displayName="Dialog";const Ve=c.createContext(null),me="data-ui-dialog-react-host-refcount";function Br({children:g,hostId:u="ui-dialog-react-host"}){const e=c.useRef(null);e.current||(e.current=oe.createDialogManager()),c.useEffect(()=>{var i;if(typeof document>"u")return;let t=document.getElementById(u);const a=!t;t||(t=document.createElement("div"),t.id=u,t.setAttribute("data-ui-dialog-react-host","true"),document.body.appendChild(t));const v=Number(t.getAttribute(me)||"0");return t.setAttribute(me,String(Math.max(0,v)+1)),(i=e.current)==null||i.setContainer(t),()=>{var b,d;if((b=e.current)==null||b.destroy("unmount"),e.current=null,!t||!t.isConnected)return;const n=Number(t.getAttribute(me)||"1"),l=Math.max(0,n-1);l===0?(t.removeAttribute(me),a&&((d=t.parentElement)==null||d.removeChild(t))):t.setAttribute(me,String(l))}},[u]);const s=c.useMemo(()=>({open:(t={})=>{var a;return((a=e.current)==null?void 0:a.open(t))??Promise.resolve({id:"",action:"dismiss"})},confirm:(t={})=>{var a;return((a=e.current)==null?void 0:a.confirm(t))??Promise.resolve({id:"",action:"dismiss"})}}),[]);return P.default.createElement(Ve.Provider,{value:s},g)}function jr(){const g=c.useContext(Ve);if(!g)throw new Error("useDialog must be used within <DialogProvider>.");return g}const Ce=P.default.forwardRef(function({children:u,onOpen:e,onClose:s,...t},a){const v=c.useRef(null);return P.default.useImperativeHandle(a,()=>v.current),c.useEffect(()=>{const i=v.current;if(!i)return;const n=()=>e==null?void 0:e(),l=()=>s==null?void 0:s();return i.addEventListener("open",n),i.addEventListener("close",l),()=>{i.removeEventListener("open",n),i.removeEventListener("close",l)}},[e,s]),P.default.createElement("ui-popover",{ref:v,...t},u)});Ce.displayName="Popover";const qr=typeof window<"u"?c.useLayoutEffect:c.useEffect,et=P.default.forwardRef(function({children:u,selected:e,value:s,orientation:t,activation:a,variant:v,size:i,density:n,tone:l,stretched:b,shape:d,elevation:w,loop:p,bare:h,headless:r,onChange:E,onTabChange:L,...y},A){const o=c.useRef(null);return c.useImperativeHandle(A,()=>o.current),c.useEffect(()=>{const f=o.current;if(!f)return;const R=k=>{const H=k.detail;H&&(E==null||E(H.index),L==null||L(H))};return f.addEventListener("change",R),()=>{f.removeEventListener("change",R)}},[E,L]),qr(()=>{const f=o.current;if(!f)return;const R=(H,S)=>{const N=f.getAttribute(H);if(S==null){N!=null&&f.removeAttribute(H);return}N!==S&&f.setAttribute(H,S)},k=(H,S)=>{S?R(H,""):R(H,null)};R("selected",e!=null?String(e):null),R("value",s||null),R("orientation",t&&t!=="horizontal"?t:null),R("activation",a&&a!=="auto"?a:null),R("variant",v&&v!=="default"?v:null),R("size",i&&i!=="md"?i:null),R("density",n&&n!=="default"?n:null),R("tone",l&&l!=="brand"?l:null),R("shape",d&&d!=="rounded"?d:null),R("elevation",w&&w!=="low"?w:null),R("loop",p===!1?"false":p===!0?"":null),k("stretched",b),k("bare",h),k("headless",r)},[e,s,t,a,v,i,n,l,b,d,w,p,h,r]),P.default.createElement("ui-tabs",{ref:o,...y},u)});et.displayName="Tabs";const se=typeof window<"u"?c.useLayoutEffect:c.useEffect,tt=P.default.forwardRef(function({children:u,open:e,placement:s,variant:t,density:a,shape:v,elevation:i,tone:n,closeOnSelect:l,typeahead:b,onOpen:d,onClose:w,onChange:p,onSelect:h,onSelectDetail:r,...E},L){const y=c.useRef(null);return P.default.useImperativeHandle(L,()=>y.current),c.useEffect(()=>{const A=y.current;if(!A)return;const o=()=>d==null?void 0:d(),f=()=>w==null?void 0:w(),R=H=>{var N;const S=(N=H.detail)==null?void 0:N.open;typeof S=="boolean"&&(p==null||p(S))},k=H=>{const S=H.detail||{};r==null||r(S),typeof S.index=="number"&&(h==null||h(S.index))};return A.addEventListener("open",o),A.addEventListener("close",f),A.addEventListener("change",R),A.addEventListener("select",k),()=>{A.removeEventListener("open",o),A.removeEventListener("close",f),A.removeEventListener("change",R),A.removeEventListener("select",k)}},[d,w,p,h,r]),se(()=>{const A=y.current;!A||e==null||(e?A.setAttribute("open",""):A.removeAttribute("open"))},[e]),se(()=>{const A=y.current;A&&(s?A.setAttribute("placement",s):A.removeAttribute("placement"))},[s]),se(()=>{const A=y.current;A&&(t&&t!=="default"?A.setAttribute("variant",t):A.removeAttribute("variant"))},[t]),se(()=>{const A=y.current;A&&(a&&a!=="default"?A.setAttribute("density",a):A.removeAttribute("density"))},[a]),se(()=>{const A=y.current;A&&(v&&v!=="default"?A.setAttribute("shape",v):A.removeAttribute("shape"))},[v]),se(()=>{const A=y.current;A&&(i&&i!=="default"?A.setAttribute("elevation",i):A.removeAttribute("elevation"))},[i]),se(()=>{const A=y.current;A&&(n&&n!=="default"&&n!=="brand"?A.setAttribute("tone",n):A.removeAttribute("tone"))},[n]),se(()=>{const A=y.current;if(A){if(l==null){A.removeAttribute("close-on-select");return}A.setAttribute("close-on-select",l?"true":"false")}},[l]),se(()=>{const A=y.current;if(A){if(b==null){A.removeAttribute("typeahead");return}A.setAttribute("typeahead",b?"true":"false")}},[b]),P.default.createElement("ui-menu",{ref:y,...E},u)});tt.displayName="Menu";const Jr=typeof window<"u"?c.useLayoutEffect:c.useEffect,rt=P.default.forwardRef(function({children:u,name:e,iconVariant:s,size:t,color:a,secondaryColor:v,variant:i,tone:n,shape:l,spin:b,pulse:d,badge:w,label:p,decorative:h,strokeWidth:r,absoluteStrokeWidth:E,strokeLinecap:L,strokeLinejoin:y,rotate:A,flip:o,rtl:f,...R},k){const H=c.useRef(null);return c.useImperativeHandle(k,()=>H.current),Jr(()=>{const S=H.current;S&&(e?S.setAttribute("name",e):S.removeAttribute("name"),s?S.setAttribute("icon-variant",s):S.removeAttribute("icon-variant"),t!=null&&t!==""?S.setAttribute("size",String(t)):S.removeAttribute("size"),a?S.setAttribute("color",a):S.removeAttribute("color"),v?S.setAttribute("secondary-color",v):S.removeAttribute("secondary-color"),i&&i!=="default"?S.setAttribute("variant",i):S.removeAttribute("variant"),n&&n!=="default"?S.setAttribute("tone",n):S.removeAttribute("tone"),l&&l!=="default"?S.setAttribute("shape",l):S.removeAttribute("shape"),b?S.setAttribute("spin",""):S.removeAttribute("spin"),d?S.setAttribute("pulse",""):S.removeAttribute("pulse"),w?S.setAttribute("badge",""):S.removeAttribute("badge"),p?S.setAttribute("label",p):S.removeAttribute("label"),h?S.setAttribute("decorative",""):S.removeAttribute("decorative"),r!=null&&r!==""?S.setAttribute("stroke-width",String(r)):S.removeAttribute("stroke-width"),E?S.setAttribute("absolute-stroke-width",""):S.removeAttribute("absolute-stroke-width"),L?S.setAttribute("stroke-linecap",L):S.removeAttribute("stroke-linecap"),y?S.setAttribute("stroke-linejoin",y):S.removeAttribute("stroke-linejoin"),A!=null&&Number.isFinite(A)?S.setAttribute("rotate",String(A)):S.removeAttribute("rotate"),o?S.setAttribute("flip",o):S.removeAttribute("flip"),f?S.setAttribute("rtl",""):S.removeAttribute("rtl"))},[e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f]),P.default.createElement("ui-icon",{ref:H,...R},u)});rt.displayName="Icon";function ce(g){if(!g)return{};const u={...g};return u.type!=null&&u.level==null&&(u.level=u.type),delete u.type,u}function Gr(g,u={}){return ee.toastAdvanced.show({message:g,level:"info",...ce(u)})}const _r={show(g,u={}){return ee.toastAdvanced.show({message:g,...ce(u)})},success(g,u={}){return ee.toastAdvanced.success(g,ce(u))},error(g,u={}){return ee.toastAdvanced.error(g,ce(u))},warning(g,u={}){return ee.toastAdvanced.warning(g,ce(u))},info(g,u={}){return ee.toastAdvanced.info(g,ce(u))},loading(g,u={}){return ee.toastAdvanced.loading(g,ce(u))},dismiss(g){return ee.toastAdvanced.dismiss(String(g))},clear(){return ee.toastAdvanced.clear()},configure(g){return ee.toastAdvanced.configure(g)}};function Mr({config:g}={}){return c.useEffect(()=>{g&&ee.toastAdvanced.configure(g)},[g]),null}const zr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Dr(g){if(!g)return{};const u={...g};return u.type!=null&&u.level==null&&(u.level=u.type),delete u.type,u}const it=P.default.forwardRef(function({children:u,position:e,maxVisible:s,theme:t,config:a,headless:v,onShow:i,onHide:n,...l},b){const d=c.useRef(i),w=c.useRef(n);return c.useEffect(()=>{d.current=i},[i]),c.useEffect(()=>{w.current=n},[n]),c.useImperativeHandle(b,()=>({show(p,h){let r="";const E=Dr(h),L=E.onShow,y=E.onHide;return r=ee.toastAdvanced.show({message:p,...E,onShow:()=>{var o;L==null||L(),(o=d.current)==null||o.call(d,{id:r,message:p})},onHide:()=>{var o;y==null||y(),(o=w.current)==null||o.call(w,{id:r})}}).id,r},hide(p){ee.toastAdvanced.dismiss(String(p))},clear(){ee.toastAdvanced.clear()},configure(p){ee.toastAdvanced.configure(p)}}),[]),zr(()=>{const p={...a||{}};e&&(p.position=e),t&&(p.theme=t),typeof s=="number"&&Number.isFinite(s)&&(p.maxVisible=Math.max(1,Math.trunc(s))),Object.keys(p).length>0&&ee.toastAdvanced.configure(p)},[e,s,t,a]),u==null&&Object.keys(l).length===0?null:P.default.createElement("div",{...l},u)});it.displayName="Toast";const Qr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Ur(g){const{children:u,anchorId:e,open:s,placement:t,align:a,offset:v,variant:i,density:n,shape:l,elevation:b,tone:d,closeOnOutside:w,closeOnEscape:p,onOpen:h,onClose:r,onOpenChange:E,onRequestClose:L,...y}=g,A=c.useRef(null);return c.useEffect(()=>{ue("ui-floating-toolbar","FloatingToolbar")},[]),c.useEffect(()=>{const o=A.current;if(!o)return;const f=()=>{h==null||h(),E==null||E(!0)},R=H=>{const S=H.detail||{};r==null||r(S),E==null||E(!1,S)},k=H=>{const S=H.detail||{};typeof S.reason=="string"&&(L==null||L({reason:S.reason}))};return o.addEventListener("open",f),o.addEventListener("close",R),o.addEventListener("request-close",k),()=>{o.removeEventListener("open",f),o.removeEventListener("close",R),o.removeEventListener("request-close",k)}},[h,r,E,L]),Qr(()=>{var k,H,S;const o=A.current;if(!o)return;const f=(N,I)=>{const $=o.getAttribute(N);if(I==null){$!=null&&o.removeAttribute(N);return}$!==I&&o.setAttribute(N,I)},R=(N,I,$=void 0)=>{if(I==null){$!==void 0&&f(N,$?null:"false");return}f(N,I?"":"false")};if(f("anchor-id",e??null),f("placement",t&&t!=="auto"?t:null),f("align",a&&a!=="center"?a:null),f("offset",typeof v=="number"&&Number.isFinite(v)?String(v):null),f("variant",i&&i!=="default"?i:null),f("density",n&&n!=="default"?n:null),f("shape",l&&l!=="default"?l:null),f("elevation",b&&b!=="default"?b:null),f("tone",d&&d!=="default"&&d!=="brand"?d:null),R("close-on-outside",w,!0),R("close-on-escape",p,!0),s&&e){(k=o.showForAnchorId)==null||k.call(o,e);return}if(s){(H=o.openToolbar)==null||H.call(o);return}if(s===!1){(S=o.closeToolbar)==null||S.call(o,"programmatic");return}o.removeAttribute("open")},[s,e,t,a,v,i,n,l,b,d,w,p]),P.default.createElement("ui-floating-toolbar",{ref:A,...y},u)}const Xr=typeof window<"u"?P.useLayoutEffect:P.useEffect,ut=P.forwardRef(function({children:u,orientation:e,variant:s,tone:t,state:a,elevation:v,density:i,wrap:n,loop:l,disabled:b,activeIndex:d,ariaLabel:w,onNavigate:p,...h},r){const E=P.useRef(null);return P.useImperativeHandle(r,()=>E.current),P.useEffect(()=>{ue("ui-block-controls","BlockControls")},[]),P.useEffect(()=>{const L=E.current;if(!L||!p)return;const y=A=>p(A.detail);return L.addEventListener("ui-navigate",y),()=>L.removeEventListener("ui-navigate",y)},[p]),Xr(()=>{const L=E.current;L&&(e?L.setAttribute("orientation",e):L.removeAttribute("orientation"),s&&s!=="floating"?L.setAttribute("variant",s):L.removeAttribute("variant"),t&&t!=="neutral"?L.setAttribute("tone",t):L.removeAttribute("tone"),a&&a!=="idle"?L.setAttribute("state",a):L.removeAttribute("state"),v&&v!=="md"?L.setAttribute("elevation",v):L.removeAttribute("elevation"),i?L.setAttribute("density",i):L.removeAttribute("density"),n==null?L.removeAttribute("wrap"):n?L.setAttribute("wrap",""):L.removeAttribute("wrap"),l==null?(L.removeAttribute("loop"),L.removeAttribute("no-loop")):l?(L.setAttribute("loop",""),L.removeAttribute("no-loop")):(L.removeAttribute("loop"),L.setAttribute("no-loop","")),b==null?L.removeAttribute("disabled"):b?L.setAttribute("disabled",""):L.removeAttribute("disabled"),typeof d=="number"&&Number.isFinite(d)?L.setAttribute("active-index",String(d)):L.removeAttribute("active-index"),w?L.setAttribute("aria-label",w):L.removeAttribute("aria-label"))},[e,s,t,a,v,i,n,l,b,d,w]),P.createElement("ui-block-controls",{ref:E,...h},u)});ut.displayName="BlockControls";const Yr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Zr(g){const{children:u,open:e,onSelect:s,...t}=g,a=c.useRef(null);return c.useEffect(()=>{ue("ui-command-palette","CommandPalette")},[]),c.useEffect(()=>{const v=a.current;if(!v)return;const i=n=>{var b;const l=(b=n.detail)==null?void 0:b.index;typeof l=="number"&&(s==null||s(l))};return v.addEventListener("select",i),()=>v.removeEventListener("select",i)},[s]),Yr(()=>{const v=a.current;v&&(e?v.setAttribute("open",""):v.removeAttribute("open"))},[e]),P.default.createElement("ui-command-palette",{ref:a,...t},u)}function Kr(g){const{items:u,anchorId:e,anchorPoint:s,open:t,disabled:a,state:v,stateText:i,variant:n,density:l,shape:b,elevation:d,tone:w,closeOnSelect:p,closeOnEscape:h,typeahead:r,children:E,onOpenDetail:L,onCloseDetail:y,onOpen:A,onClose:o,onChange:f,onSelect:R,...k}=g,H=c.useRef(null);c.useEffect(()=>{const $=H.current;if(!$)return;const m=G=>{const q=G.detail;A==null||A(),q&&(L==null||L(q))},B=G=>{const q=G.detail;o==null||o(),q&&(y==null||y(q))},M=G=>{var J;const q=(J=G.detail)==null?void 0:J.open;typeof q=="boolean"&&(f==null||f(q))},T=G=>{R==null||R(G.detail)};return $.addEventListener("open",m),$.addEventListener("close",B),$.addEventListener("change",M),$.addEventListener("select",T),()=>{$.removeEventListener("open",m),$.removeEventListener("close",B),$.removeEventListener("change",M),$.removeEventListener("select",T)}},[A,o,L,y,f,R]),c.useEffect(()=>{const $=H.current;if(!(!$||t==null)){if(!t){$.close?$.close():$.open=!1;return}if(s&&$.openAt){$.openAt(s);return}if(e){if($.openForAnchorId){$.openForAnchorId(e);return}if($.showForAnchorId){$.showForAnchorId(e);return}}$.open=!0}},[t,e,s]);const S=$=>$?$.map((m,B)=>{if(m.separator)return P.default.createElement("div",{key:B,className:"separator",role:"separator"});let M=null;m.icon&&(M=P.default.createElement("span",{className:"icon"},m.icon));let T=null;return m.submenu&&(T=P.default.createElement("div",{className:"submenu"},S(m.submenu))),P.default.createElement("div",{key:B,className:"menuitem",role:"menuitem",tabIndex:m.disabled?-1:0,"aria-disabled":m.disabled?"true":void 0,"data-value":m.value,onClick:m.disabled?void 0:m.onClick},M,P.default.createElement("span",{className:"label"},P.default.createElement("span",{className:"text"},m.label),m.description?P.default.createElement("span",{className:"caption"},m.description):null),m.shortcut?P.default.createElement("span",{className:"shortcut"},m.shortcut):null,m.submenu&&P.default.createElement("span",{className:"submenu-arrow"},"▶"),T)}):null,N=P.default.Children.count(E)>0,I=!!t&&!s&&!e;return P.default.createElement("ui-context-menu",{ref:H,...k,...I?{open:""}:{},...n&&n!=="default"?{variant:n}:{},...l&&l!=="default"?{density:l}:{},...b&&b!=="default"?{shape:b}:{},...d&&d!=="default"?{elevation:d}:{},...w&&w!=="default"&&w!=="brand"?{tone:w}:{},...a?{disabled:""}:{},...v&&v!=="idle"?{state:v}:{},...i?{"state-text":i}:{},...p==null?{}:{"close-on-select":p?"true":"false"},...h==null?{}:{"close-on-escape":h?"true":"false"},...r==null?{}:{typeahead:r?"true":"false"}},N?E:P.default.createElement("div",{slot:"menu"},S(u)))}const Wr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Or(g){const{children:u,anchorId:e,open:s,placement:t,offset:a,strategy:v,arrow:i,variant:n,tone:l,radius:b,size:d,closeOnOutside:w,closeOnEscape:p,onOpen:h,onClose:r,onOpenChange:E,...L}=g,y=c.useRef(null);return c.useEffect(()=>{ue("ui-selection-popup","SelectionPopup")},[]),c.useEffect(()=>{const A=y.current;if(!A)return;const o=()=>{h==null||h(),E==null||E(!0)},f=()=>{r==null||r(),E==null||E(!1)};return A.addEventListener("open",o),A.addEventListener("close",f),()=>{A.removeEventListener("open",o),A.removeEventListener("close",f)}},[h,r,E]),Wr(()=>{var R,k;const A=y.current;if(!A)return;const o=(H,S)=>{const N=A.getAttribute(H);if(S==null){N!=null&&A.removeAttribute(H);return}N!==S&&A.setAttribute(H,S)},f=(H,S,N=void 0)=>{if(S==null){N!==void 0&&o(H,N?null:"false");return}S?o(H,""):o(H,"false")};o("anchor-id",e??null),o("placement",t&&t!=="top"?t:null),o("offset",typeof a=="number"&&Number.isFinite(a)?String(a):null),o("strategy",v&&v!=="fixed"?v:null),o("variant",n&&n!=="default"?n:null),o("tone",l&&l!=="brand"?l:null),o("radius",b?String(b):null),o("size",d&&d!=="md"?d:null),f("arrow",i),f("close-on-outside",w,!0),f("close-on-escape",p,!0),s&&e?(R=A.openFor)==null||R.call(A,e):s?A.setAttribute("open",""):s===!1?(k=A.close)==null||k.call(A):A.removeAttribute("open")},[s,e,t,a,v,i,n,l,b,d,w,p]),P.default.createElement("ui-selection-popup",{ref:y,...L},u)}const Vr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Cr(g){const{children:u,open:e,position:s,...t}=g,a=c.useRef(null);return c.useEffect(()=>{ue("ui-plugin-panel","PluginPanel")},[]),Vr(()=>{const v=a.current;v&&(e?v.setAttribute("open",""):v.removeAttribute("open"),s&&v.setAttribute("position",s))},[e,s]),P.default.createElement("ui-plugin-panel",{ref:a,...t},u)}const ei=typeof window<"u"?c.useLayoutEffect:c.useEffect,nt=P.default.forwardRef(function(u,e){const{children:s,onSubmit:t,onInvalid:a,onValidate:v,onAutosave:i,onDirtyChange:n,novalidate:l,autosave:b,autosaveDelay:d,guardUnsaved:w,heading:p,description:h,state:r,stateText:E,loadingText:L,variant:y,tone:A,density:o,shape:f,elevation:R,gap:k,headless:H,loading:S,disabled:N,...I}=u,$=c.useRef(null);return c.useImperativeHandle(e,()=>$.current),c.useEffect(()=>{const m=$.current;if(!m)return;const B=J=>{const x=J.detail||{};t==null||t(x.values||{})},M=J=>{const x=J.detail||{};a==null||a(x.errors||{},x.values||{})},T=J=>{const x=J.detail||{};v==null||v({valid:!!x.valid,errors:x.errors||{}})},G=J=>{const x=J.detail||{};i==null||i(x.values||{})},q=J=>{const x=J.detail||{};n==null||n(!!x.dirty,x.values||{})};return m.addEventListener("submit",B),m.addEventListener("invalid",M),m.addEventListener("validate",T),m.addEventListener("autosave",G),m.addEventListener("dirty-change",q),()=>{m.removeEventListener("submit",B),m.removeEventListener("invalid",M),m.removeEventListener("validate",T),m.removeEventListener("autosave",G),m.removeEventListener("dirty-change",q)}},[t,a,v,i,n]),ei(()=>{const m=$.current;m&&(l?m.setAttribute("novalidate",""):m.removeAttribute("novalidate"),b?m.setAttribute("autosave",""):m.removeAttribute("autosave"),typeof d=="number"&&Number.isFinite(d)?m.setAttribute("autosave-delay",String(d)):m.removeAttribute("autosave-delay"),w?m.setAttribute("guard-unsaved",""):m.removeAttribute("guard-unsaved"),p!=null&&p!==""?m.setAttribute("heading",p):m.removeAttribute("heading"),h!=null&&h!==""?m.setAttribute("description",h):m.removeAttribute("description"),r&&r!=="default"?m.setAttribute("state",r):m.removeAttribute("state"),E!=null&&E!==""?m.setAttribute("state-text",E):m.removeAttribute("state-text"),L!=null&&L!==""?m.setAttribute("loading-text",L):m.removeAttribute("loading-text"),y&&y!=="default"?m.setAttribute("variant",y):m.removeAttribute("variant"),A&&A!=="default"?m.setAttribute("tone",A):m.removeAttribute("tone"),o&&o!=="default"?m.setAttribute("density",o):m.removeAttribute("density"),f&&f!=="default"?m.setAttribute("shape",f):m.removeAttribute("shape"),R&&R!=="default"?m.setAttribute("elevation",R):m.removeAttribute("elevation"),k?m.setAttribute("gap",k):m.removeAttribute("gap"),H?m.setAttribute("headless",""):m.removeAttribute("headless"),S?m.setAttribute("loading",""):m.removeAttribute("loading"),N?m.setAttribute("disabled",""):m.removeAttribute("disabled"))},[l,b,d,w,p,h,r,E,L,y,A,o,f,R,k,H,S,N]),P.default.createElement("ui-form",{ref:$,...I},s)});nt.displayName="Form";function ti(){const g=c.useRef(null),u=c.useCallback(async()=>{const i=g.current;return i?await i.submit():!1},[]),e=c.useCallback(async()=>{const i=g.current;return i?await i.validate():{valid:!0,errors:{}}},[]),s=c.useCallback(()=>{var n;const i=g.current;return i?(n=i.getValues)==null?void 0:n.call(i):{}},[]),t=c.useCallback(i=>{var l;const n=g.current;return(l=n==null?void 0:n.reset)==null?void 0:l.call(n,i)},[]),a=c.useCallback(()=>{var n;const i=g.current;return i?typeof i.isDirty=="function"?!!i.isDirty():((n=i.hasAttribute)==null?void 0:n.call(i,"dirty"))||!1:!1},[]),v=c.useCallback(i=>{var l;const n=g.current;return(l=n==null?void 0:n.markClean)==null?void 0:l.call(n,i)},[]);return{ref:g,submit:u,validate:e,getValues:s,reset:t,isDirty:a,markClean:v}}function Ne(g,u){if(g){if(typeof g=="function"){g(u);return}g.current=u}}function ri(g){const{placement:u="bottom",offset:e=8,open:s,onOpen:t,onClose:a,role:v="menu"}=g||{},i=c.useRef(null),n=c.useRef(null),l=c.useRef(null),b=c.useRef(`floating-${Math.random().toString(36).slice(2,9)}`),[d,w]=c.useState({top:0,left:0,placement:u}),p=typeof s<"u",[h,r]=c.useState(!!s),E=p?!!s:h,L=c.useCallback(()=>{const T=i.current,G=n.current;if(!T||!G)return;const q=oe.computePosition(T,G,{placement:u,offset:e});w({top:Math.round(q.top),left:Math.round(q.left),placement:q.placement,arrow:q.x||q.y?{x:q.x,y:q.y}:void 0})},[u,e]),y=c.useCallback(T=>{p||r(T),T?t==null||t():a==null||a()},[p,t,a]),A=c.useCallback(()=>y(!E),[E,y]),o=c.useCallback(()=>y(!0),[y]),f=c.useCallback(()=>y(!1),[y]);c.useEffect(()=>{if(!E)return;const T=i.current,G=n.current;if(!T||!G)return;L();const q=()=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>L())},J=()=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>L())};window.addEventListener("scroll",q,!0),window.addEventListener("resize",J);let x=null,j=null;try{typeof ResizeObserver<"u"&&(x=new ResizeObserver(J),j=new ResizeObserver(J),x.observe(T),j.observe(G))}catch{x=j=null}return()=>{window.removeEventListener("scroll",q,!0),window.removeEventListener("resize",J),x==null||x.disconnect(),j==null||j.disconnect(),l.current&&cancelAnimationFrame(l.current),l.current=null}},[E,L]);const R=c.useCallback(T=>{i.current=T},[]),k=c.useCallback(T=>{n.current=T},[]),H=()=>n.current?Array.from(n.current.querySelectorAll('[role="menuitem"], .item, [data-menu-item]')).filter(Boolean):[],S=T=>{const G=H();if(!G.length)return;const q=Math.max(0,Math.min(G.length-1,T));try{G[q].focus()}catch{}},N=()=>S(0),I=()=>{const T=H();T.length&&S(T.length-1)},$=()=>{const T=H(),G=T.findIndex(q=>q===document.activeElement);S(G<0?0:(G+1)%T.length)},m=()=>{const T=H(),G=T.findIndex(q=>q===document.activeElement);S(G<=0?T.length-1:G-1)};return{referenceRef:R,floatingRef:k,coords:d,update:L,open:E,setOpen:y,toggle:A,openPopup:o,closePopup:f,getReferenceProps:(T={})=>{const{onClick:G,onKeyDown:q,ref:J,...x}=T;return{...x,ref:j=>{R(j),Ne(J,j)},"aria-haspopup":v,"aria-controls":b.current,"aria-expanded":E?"true":"false",onClick:j=>{G==null||G(j),!j.defaultPrevented&&A()},onKeyDown:j=>{q==null||q(j),!j.defaultPrevented&&j.key==="ArrowDown"&&(j.preventDefault(),o(),setTimeout(()=>N(),0))}}},getFloatingProps:(T={})=>{const{onKeyDown:G,style:q,ref:J,...x}=T;return{...x,id:b.current,ref:j=>{k(j),Ne(J,j)},role:v,tabIndex:-1,style:{...q||{},position:"absolute",top:`${d.top}px`,left:`${d.left}px`},hidden:!E,onKeyDown:j=>{G==null||G(j),!j.defaultPrevented&&(j.key==="Escape"?(j.preventDefault(),f()):j.key==="ArrowDown"?(j.preventDefault(),$()):j.key==="ArrowUp"?(j.preventDefault(),m()):j.key==="Home"?(j.preventDefault(),N()):j.key==="End"&&(j.preventDefault(),I()))}}},focusFirstItem:N,focusLastItem:I,focusNext:$,focusPrev:m}}function X(g){if(g!=null){if(typeof g=="object")try{return JSON.stringify(g)}catch{return}return String(g)}}function ii(g){const{children:u,className:e,variant:s,tone:t,state:a,elevation:v,radius:i,interactive:n,disabled:l,headless:b,p:d,px:w,py:p,pt:h,pr:r,pb:E,pl:L,m:y,mx:A,my:o,mt:f,mr:R,mb:k,ml:H,width:S,w:N,minWidth:I,minW:$,maxWidth:m,maxW:B,height:M,h:T,minHeight:G,minH:q,maxHeight:J,maxH:x,display:j,position:_,inset:z,top:U,right:D,bottom:F,left:O,justify:Y,alignSelf:Q,alignContent:Z,gap:K,rowGap:W,columnGap:te,flexBasis:Ae,flexGrow:pe,flexShrink:Ee,gridArea:ye,gridColumn:Le,gridColumnStart:we,gridColumnEnd:re,gridRow:V,gridRowStart:Mt,gridRowEnd:zt,align:Dt,bg:Qt,color:Ut,opacity:Xt,overflow:Yt,overflowX:Zt,overflowY:Kt,zIndex:Wt,...Ot}=g,Vt={className:e,...Ot,p:X(d),px:X(w),py:X(p),pt:X(h),pr:X(r),pb:X(E),pl:X(L),m:X(y),mx:X(A),my:X(o),mt:X(f),mr:X(R),mb:X(k),ml:X(H),width:X(S),w:X(N),minwidth:X(I??$),maxwidth:X(m??B),height:X(M),h:X(T),minheight:X(G??q),maxheight:X(J??x),display:X(j),position:X(_),inset:X(z),top:X(U),right:X(D),bottom:X(F),left:X(O),justify:X(Y),flexbasis:X(Ae),flexgrow:X(pe),flexshrink:X(Ee),alignself:X(Q),aligncontent:X(Z),gap:X(K),rowgap:X(W),columngap:X(te),gridarea:X(ye),gridcolumn:X(Le),gridcolumnstart:X(we),gridcolumnend:X(re),gridrow:X(V),gridrowstart:X(Mt),gridrowend:X(zt),align:X(Dt),bg:X(Qt),color:X(Ut),opacity:X(Xt),overflow:X(Yt),overflowx:X(Zt),overflowy:X(Kt),zindex:X(Wt),variant:s&&s!=="default"?s:void 0,tone:t&&t!=="default"?t:void 0,state:a&&a!=="idle"?a:void 0,elevation:v&&v!=="default"?v:void 0,radius:i&&i!=="default"?i:void 0,interactive:n?"":void 0,disabled:l?"":void 0,headless:b?"":void 0};return P.default.createElement("ui-box",Vt,u)}function fe(g){if(g!=null){if(typeof g=="object")try{return JSON.stringify(g)}catch{return}return String(g)}}function ui(g){const{children:u,className:e,direction:s,align:t,justify:a,wrap:v,gap:i,rowGap:n,columnGap:l,display:b,headless:d,...w}=g,p={className:e,...w,direction:fe(s),align:fe(t),justify:fe(a),wrap:fe(v),gap:fe(i),rowgap:fe(n),columngap:fe(l),display:fe(b),headless:d?"":void 0};return P.default.createElement("ui-flex",p,u)}function ie(g){if(g!=null){if(typeof g=="object")try{return JSON.stringify(g)}catch{return}return String(g)}}function ni(g){const{children:u,className:e,columns:s,rows:t,gap:a,rowGap:v,columnGap:i,autoFlow:n,autoRows:l,autoColumns:b,align:d,justify:w,place:p,alignContent:h,justifyContent:r,placeContent:E,display:L,headless:y,...A}=g,o={className:e,...A,columns:ie(s),rows:ie(t),gap:ie(a),rowgap:ie(v),columngap:ie(i),autoflow:ie(n),autorows:ie(l),autocolumns:ie(b),align:ie(d),justify:ie(w),place:ie(p),aligncontent:ie(h),justifycontent:ie(r),placecontent:ie(E),display:ie(L),headless:y?"":void 0};return P.default.createElement("ui-grid",o,u)}const li=typeof window<"u"?c.useLayoutEffect:c.useEffect,lt=P.default.forwardRef(function({size:u="medium",variant:e="default",tone:s="neutral",radius:t="md",density:a="comfortable",inset:v,children:i,...n},l){const b=c.useRef(null);return P.default.useImperativeHandle(l,()=>b.current),li(()=>{const d=b.current;if(!d)return;const w=(h,r)=>{const E=d.getAttribute(h);if(r==null){E!=null&&d.removeAttribute(h);return}E!==r&&d.setAttribute(h,r)},p=(h,r)=>{r?d.hasAttribute(h)||d.setAttribute(h,""):d.hasAttribute(h)&&d.removeAttribute(h)};w("size",u!=="medium"?u:null),w("variant",e!=="default"?e:null),w("tone",s!=="neutral"?s:null),w("radius",t!=="md"?t:null),w("density",a!=="comfortable"?a:null),p("inset",v)},[u,e,s,t,a,v]),P.default.createElement("ui-section",{ref:b,...n},i)});lt.displayName="Section";function si(g){const{children:u,size:e="md",...s}=g;return P.default.createElement("ui-container",{size:e,...s},u)}const oi=typeof window<"u"?c.useLayoutEffect:c.useEffect,st=P.default.forwardRef(function({children:u,collapsed:e,collapsible:s,rail:t,position:a,value:v,items:i,variant:n,size:l,density:b,tone:d,showIcons:w,showBadges:p,headless:h,onSelect:r,onChange:E,onToggle:L,onCollapseChange:y,...A},o){const f=c.useRef(null);return c.useImperativeHandle(o,()=>f.current),c.useEffect(()=>{const R=f.current;if(!R)return;const k=I=>{const $=I.detail;$&&(r==null||r($))},H=I=>{const $=I.detail;$&&(E==null||E($))},S=I=>{var m;const $=(m=I.detail)==null?void 0:m.collapsed;typeof $=="boolean"&&(L==null||L($))},N=I=>{var m;const $=(m=I.detail)==null?void 0:m.collapsed;typeof $=="boolean"&&(y==null||y($))};return R.addEventListener("select",k),R.addEventListener("change",H),R.addEventListener("toggle",S),R.addEventListener("collapse-change",N),()=>{R.removeEventListener("select",k),R.removeEventListener("change",H),R.removeEventListener("toggle",S),R.removeEventListener("collapse-change",N)}},[r,E,L,y]),oi(()=>{const R=f.current;if(!R)return;const k=(S,N)=>{const I=R.getAttribute(S);if(N==null){I!=null&&R.removeAttribute(S);return}I!==N&&R.setAttribute(S,N)},H=(S,N,I)=>{if(N==null){I!==void 0&&I===!1&&k(S,null);return}N?k(S,""):k(S,null)};if(H("collapsed",e),H("collapsible",s),H("rail",t),H("headless",h),k("position",a&&a!=="left"?a:null),k("value",v!=null&&v!==""?String(v):null),i&&i.length)try{k("items",JSON.stringify(i))}catch{k("items",null)}else k("items",null);k("variant",n&&n!=="surface"?n:null),k("size",l&&l!=="md"?l:null),k("density",b&&b!=="default"?b:null),k("tone",d&&d!=="default"?d:null),typeof w=="boolean"?k("show-icons",w?"true":"false"):k("show-icons",null),typeof p=="boolean"?k("show-badges",p?"true":"false"):k("show-badges",null)},[e,s,t,h,a,v,i,n,l,b,d,w,p]),P.default.createElement("ui-sidebar",{ref:f,...A},u)});st.displayName="Sidebar";const he=typeof window<"u"?c.useLayoutEffect:c.useEffect,ot=P.default.forwardRef(function({children:u,separator:e,maxItems:s,currentIndex:t,size:a,variant:v,tone:i,state:n,disabled:l,ariaLabel:b,onSelect:d,...w},p){const h=c.useRef(null);return c.useImperativeHandle(p,()=>h.current),c.useEffect(()=>{ue("ui-breadcrumb","Breadcrumb")},[]),c.useEffect(()=>{const r=h.current;if(!r||!d)return;const E=L=>{const y=L.detail;y&&d(y)};return r.addEventListener("ui-select",E),()=>r.removeEventListener("ui-select",E)},[d]),he(()=>{const r=h.current;r&&(e!=null&&e!==""?r.setAttribute("separator",e):r.removeAttribute("separator"))},[e]),he(()=>{const r=h.current;r&&(typeof s=="number"&&Number.isFinite(s)?r.setAttribute("max-items",String(s)):r.removeAttribute("max-items"))},[s]),he(()=>{const r=h.current;r&&(typeof t=="number"&&Number.isFinite(t)?r.setAttribute("current-index",String(t)):r.removeAttribute("current-index"))},[t]),he(()=>{const r=h.current;r&&(a&&a!=="md"?r.setAttribute("size",a):r.removeAttribute("size"),v&&v!=="default"?r.setAttribute("variant",v):r.removeAttribute("variant"),i?r.setAttribute("tone",i):r.removeAttribute("tone"),n&&n!=="idle"?r.setAttribute("state",n):r.removeAttribute("state"),l==null?r.removeAttribute("disabled"):l?r.setAttribute("disabled",""):r.removeAttribute("disabled"),b?r.setAttribute("aria-label",b):r.removeAttribute("aria-label"))},[a,v,i,n,l,b]),P.default.createElement("ui-breadcrumb",{ref:h,...w},u)});ot.displayName="Breadcrumb";const Re=typeof window<"u"?c.useLayoutEffect:c.useEffect,ft=P.default.forwardRef(function({children:u,sticky:e,bordered:s,dense:t,showMenuButton:a,onMenuTrigger:v,...i},n){const l=c.useRef(null);return c.useImperativeHandle(n,()=>l.current),c.useEffect(()=>{const b=l.current;if(!b||!v)return;const d=()=>v();return b.addEventListener("menu-trigger",d),()=>b.removeEventListener("menu-trigger",d)},[v]),Re(()=>{const b=l.current;b&&(e?b.setAttribute("sticky",""):b.removeAttribute("sticky"))},[e]),Re(()=>{const b=l.current;b&&(s?b.setAttribute("bordered",""):b.removeAttribute("bordered"))},[s]),Re(()=>{const b=l.current;b&&(t?b.setAttribute("dense",""):b.removeAttribute("dense"))},[t]),Re(()=>{const b=l.current;b&&(a?b.setAttribute("show-menu-button",""):b.removeAttribute("show-menu-button"))},[a]),P.default.createElement("ui-app-header",{ref:l,...i},u)});ft.displayName="AppHeader";const C=typeof window<"u"?c.useLayoutEffect:c.useEffect,ct=P.default.forwardRef(function({children:u,open:e,side:s,variant:t,density:a,shape:v,elevation:i,tone:n,size:l,state:b,inset:d,dismissible:w,closeOnOverlay:p,closeOnEsc:h,lockWhileLoading:r,showClose:E,initialFocus:L,title:y,description:A,ariaLabel:o,ariaLabelledBy:f,ariaDescribedBy:R,onOpen:k,onClose:H,onChange:S,...N},I){const $=c.useRef(null);return c.useImperativeHandle(I,()=>$.current),c.useEffect(()=>{const m=$.current;if(!m)return;const B=()=>k==null?void 0:k(),M=()=>H==null?void 0:H(),T=G=>{var J;const q=(J=G.detail)==null?void 0:J.open;typeof q=="boolean"&&(S==null||S(q))};return m.addEventListener("open",B),m.addEventListener("close",M),m.addEventListener("change",T),()=>{m.removeEventListener("open",B),m.removeEventListener("close",M),m.removeEventListener("change",T)}},[k,H,S]),C(()=>{const m=$.current;m&&(e?m.setAttribute("open",""):m.removeAttribute("open"))},[e]),C(()=>{const m=$.current;m&&(s?m.setAttribute("side",s):m.removeAttribute("side"))},[s]),C(()=>{const m=$.current;m&&(w?m.setAttribute("dismissible",""):m.removeAttribute("dismissible"))},[w]),C(()=>{const m=$.current;m&&(t&&t!=="default"?m.setAttribute("variant",t):m.removeAttribute("variant"))},[t]),C(()=>{const m=$.current;m&&(a&&a!=="default"?m.setAttribute("density",a):m.removeAttribute("density"))},[a]),C(()=>{const m=$.current;m&&(v&&v!=="default"?m.setAttribute("shape",v):m.removeAttribute("shape"))},[v]),C(()=>{const m=$.current;m&&(i&&i!=="default"?m.setAttribute("elevation",i):m.removeAttribute("elevation"))},[i]),C(()=>{const m=$.current;m&&(n&&n!=="default"&&n!=="brand"?m.setAttribute("tone",n):m.removeAttribute("tone"))},[n]),C(()=>{const m=$.current;m&&(l&&l!=="default"?m.setAttribute("size",l):m.removeAttribute("size"))},[l]),C(()=>{const m=$.current;m&&(b&&b!=="idle"?m.setAttribute("state",b):m.removeAttribute("state"))},[b]),C(()=>{const m=$.current;m&&(d?m.setAttribute("inset",""):m.removeAttribute("inset"))},[d]),C(()=>{const m=$.current;m&&(typeof p=="boolean"?m.setAttribute("close-on-overlay",String(p)):m.removeAttribute("close-on-overlay"))},[p]),C(()=>{const m=$.current;m&&(typeof h=="boolean"?m.setAttribute("close-on-esc",String(h)):m.removeAttribute("close-on-esc"))},[h]),C(()=>{const m=$.current;m&&(typeof r=="boolean"?m.setAttribute("lock-while-loading",String(r)):m.removeAttribute("lock-while-loading"))},[r]),C(()=>{const m=$.current;m&&(typeof E=="boolean"?m.setAttribute("show-close",String(E)):m.removeAttribute("show-close"))},[E]),C(()=>{const m=$.current;m&&(L?m.setAttribute("initial-focus",L):m.removeAttribute("initial-focus"))},[L]),C(()=>{const m=$.current;m&&(y?m.setAttribute("title",y):m.removeAttribute("title"))},[y]),C(()=>{const m=$.current;m&&(A?m.setAttribute("description",A):m.removeAttribute("description"))},[A]),C(()=>{const m=$.current;m&&(o?m.setAttribute("aria-label",o):m.removeAttribute("aria-label"))},[o]),C(()=>{const m=$.current;m&&(f?m.setAttribute("aria-labelledby",f):m.removeAttribute("aria-labelledby"))},[f]),C(()=>{const m=$.current;m&&(R?m.setAttribute("aria-describedby",R):m.removeAttribute("aria-describedby"))},[R]),P.default.createElement("ui-drawer",{ref:$,...N},u)});ct.displayName="Drawer";const fi=typeof window<"u"?c.useLayoutEffect:c.useEffect,dt=P.default.forwardRef(function({children:u,mode:e,variant:s,density:t,maxWidth:a,sidebarSide:v,collapsed:i,headless:n,sidebarWidth:l,asideWidth:b,onLayoutChange:d,...w},p){const h=c.useRef(null);return P.default.useImperativeHandle(p,()=>h.current),c.useEffect(()=>{const r=h.current;if(!r)return;const E=()=>d==null?void 0:d();return r.addEventListener("layoutchange",E),()=>r.removeEventListener("layoutchange",E)},[d]),fi(()=>{const r=h.current;r&&(e&&e!=="dashboard"?r.setAttribute("mode",e):r.removeAttribute("mode"),s&&s!=="default"?r.setAttribute("variant",s):r.removeAttribute("variant"),t&&t!=="default"?r.setAttribute("density",t):r.removeAttribute("density"),a?r.setAttribute("max-width",a):r.removeAttribute("max-width"),v&&v!=="start"?r.setAttribute("sidebar-side",v):r.removeAttribute("sidebar-side"),i?r.setAttribute("collapsed",""):r.removeAttribute("collapsed"),n?r.setAttribute("headless",""):r.removeAttribute("headless"),l?r.setAttribute("sidebar-width",l):r.removeAttribute("sidebar-width"),b?r.setAttribute("aside-width",b):r.removeAttribute("aside-width"))},[e,s,t,a,v,i,n,l,b]),P.default.createElement("ui-layout",{ref:h,...w},u)});dt.displayName="Layout";const at=c.createContext(null),ci=typeof window<"u"?c.useLayoutEffect:c.useEffect;function ae(g,u){var e,s;return u?{...g,...u,colors:{...g.colors,...u.colors||{}},shadows:{...g.shadows||{},...u.shadows||{}},spacing:{...g.spacing||{},...u.spacing||{}},typography:{...g.typography||{},...u.typography||{},size:{...((e=g.typography)==null?void 0:e.size)||{},...((s=u.typography)==null?void 0:s.size)||{}}},motion:{...g.motion||{},...u.motion||{}},zIndex:{...g.zIndex||{},...u.zIndex||{}},breakpoints:{...g.breakpoints||{},...u.breakpoints||{}}}:g}function di(){try{const g=getComputedStyle(document.documentElement),u=g.getPropertyValue("--ui-color-primary").trim();return u?{colors:{primary:u||void 0,text:g.getPropertyValue("--ui-color-text").trim()||void 0,background:g.getPropertyValue("--ui-color-background").trim()||void 0}}:{}}catch{return{}}}function ai(g,u){const e=typeof u=="function"?u(g):u;return ae(g,e)}function bi({tokens:g,children:u,storageKey:e="editora.theme.tokens"}){const s=()=>{if(typeof window<"u"&&e)try{const i=localStorage.getItem(e);if(i){const n=JSON.parse(i);return ae(oe.defaultTokens,n)}}catch{}if(g&&Object.keys(g).length)return ae(oe.defaultTokens,g);if(typeof window<"u"){const i=di();if(i.colors&&i.colors.primary)return ae(oe.defaultTokens,i)}return ae(oe.defaultTokens,g||{})},[t,a]=c.useState(()=>s());c.useEffect(()=>{!g||!Object.keys(g).length||a(i=>ae(i,g))},[g]),ci(()=>{oe.applyTheme(t);try{oe.registerThemeHost(document.documentElement)}catch{}},[t]),c.useEffect(()=>{if(typeof window>"u"||!e)return;const i=JSON.stringify(t);let n;const l=()=>{try{localStorage.setItem(e,i)}catch{}};return window.requestIdleCallback?n=window.requestIdleCallback(l,{timeout:1e3}):n=window.setTimeout(l,250),()=>{try{window.cancelIdleCallback&&n?window.cancelIdleCallback(n):n&&clearTimeout(n)}catch{}}},[t,e]);const v=c.useMemo(()=>({tokens:t,setTokens:i=>{a(n=>ai(n,i))}}),[t]);return P.default.createElement(at.Provider,{value:v},u)}function mi(){const g=c.useContext(at);if(!g)throw new Error("useTheme must be used within ThemeProvider");return g}function de(g,u,e){if(e==null){g.removeAttribute(u);return}e?g.setAttribute(u,""):g.removeAttribute(u)}function Se(g,u,e,s){const t=e&&e!==s?e:void 0;if(!t){g.removeAttribute(u);return}g.setAttribute(u,t)}const bt=P.forwardRef(function({checked:u,disabled:e,indeterminate:s,loading:t,headless:a,invalid:v,density:i,preset:n,onCheckedChange:l,onChange:b,onInput:d,children:w,...p},h){const r=P.useRef(null);P.useImperativeHandle(h,()=>r.current);const E=typeof window<"u"?P.useLayoutEffect:P.useEffect;P.useEffect(()=>{ue("ui-checkbox","Checkbox")},[]),E(()=>{const y=r.current;y&&(de(y,"checked",u),de(y,"disabled",e),de(y,"indeterminate",s),de(y,"loading",t),de(y,"headless",a),de(y,"invalid",v),Se(y,"density",i,"default"),Se(y,"preset",n,"default"))},[u,e,s,t,a,v,i,n]),P.useEffect(()=>{const y=r.current;if(!y||!l&&!b&&!d)return;const A=f=>{var k;const R=f;d==null||d(R),typeof((k=R.detail)==null?void 0:k.checked)=="boolean"&&(l==null||l(R.detail.checked,R.detail))},o=f=>{const R=f;b==null||b(R)};return y.addEventListener("input",A),y.addEventListener("change",o),()=>{y.removeEventListener("input",A),y.removeEventListener("change",o)}},[l,b,d]);const L={ref:r,...p,checked:u?"":void 0,disabled:e?"":void 0,indeterminate:s?"":void 0,loading:t?"":void 0,headless:a?"":void 0,invalid:v?"":void 0,density:i&&i!=="default"?i:void 0,preset:n&&n!=="default"?n:void 0};return P.createElement("ui-checkbox",L,w)});bt.displayName="Checkbox";const vi=typeof window<"u"?c.useLayoutEffect:c.useEffect,mt=P.default.forwardRef(function({value:u,disabled:e,required:s,name:t,orientation:a,variant:v,size:i,tone:n,options:l,onValueChange:b,children:d,...w},p){const h=c.useRef(null);return P.default.useImperativeHandle(p,()=>h.current),c.useEffect(()=>{const r=h.current;if(!r)return;const E=L=>{const y=L.detail;y&&(b==null||b(y))};return r.addEventListener("change",E),()=>r.removeEventListener("change",E)},[b]),vi(()=>{const r=h.current;if(!r)return;const E=(y,A)=>{const o=r.getAttribute(y);if(A==null){o!=null&&r.removeAttribute(y);return}o!==A&&r.setAttribute(y,A)},L=(y,A)=>{A?r.hasAttribute(y)||r.setAttribute(y,""):r.hasAttribute(y)&&r.removeAttribute(y)};E("value",u??null),L("disabled",e),L("required",s),E("name",t||null),E("orientation",a&&a!=="vertical"?a:null),E("variant",v&&v!=="default"?v:null),E("size",i&&i!=="md"?i:null),E("tone",n&&n!=="brand"?n:null),l&&l.length?E("options",JSON.stringify(l)):E("options",null)},[u,e,s,t,a,v,i,n,l]),P.default.createElement("ui-radio-group",{ref:h,...w},d)});mt.displayName="RadioGroup";const Ai=typeof window<"u"?c.useLayoutEffect:c.useEffect,vt=P.default.forwardRef(function({children:u,checked:e,disabled:s,headless:t,loading:a,size:v,variant:i,tone:n,shape:l,elevation:b,label:d,description:w,name:p,value:h,required:r,onInput:E,onChange:L,...y},A){const o=c.useRef(null);return c.useImperativeHandle(A,()=>o.current),c.useEffect(()=>{const f=o.current;if(!f)return;const R=H=>{const S=H.detail;S&&(E==null||E(S))},k=H=>{const S=H.detail;S&&(L==null||L(S))};return f.addEventListener("input",R),f.addEventListener("change",k),()=>{f.removeEventListener("input",R),f.removeEventListener("change",k)}},[E,L]),Ai(()=>{const f=o.current;if(!f)return;const R=(H,S)=>{const N=f.getAttribute(H);if(S==null){N!=null&&f.removeAttribute(H);return}N!==S&&f.setAttribute(H,S)},k=(H,S)=>{S?R(H,""):R(H,null)};k("checked",e),k("disabled",s),k("headless",t),k("loading",a),k("required",r),R("size",v&&v!=="md"?v:null),R("variant",i&&i!=="default"?i:null),R("tone",n&&n!=="brand"?n:null),R("label",d||null),R("description",w||null),R("name",p||null),R("value",h||null),R("shape",l&&l!=="pill"?l:null),R("elevation",b&&b!=="low"?b:null)},[e,s,t,a,r,v,i,n,l,b,d,w,p,h]),P.default.createElement("ui-switch",{ref:o,...y},u)});vt.displayName="Switch";const pi=typeof window<"u"?c.useLayoutEffect:c.useEffect,At=P.default.forwardRef(function({children:u,pressed:e,disabled:s,loading:t,headless:a,size:v,variant:i,tone:n,shape:l,elevation:b,name:d,value:w,required:p,iconOn:h,iconOff:r,onInput:E,onChange:L,...y},A){const o=c.useRef(null);return c.useImperativeHandle(A,()=>o.current),c.useEffect(()=>{const f=o.current;if(!f)return;const R=H=>{const S=H.detail;S&&(E==null||E(S))},k=H=>{const S=H.detail;S&&(L==null||L(S))};return f.addEventListener("input",R),f.addEventListener("change",k),()=>{f.removeEventListener("input",R),f.removeEventListener("change",k)}},[E,L]),pi(()=>{const f=o.current;if(!f)return;const R=(H,S)=>{const N=f.getAttribute(H);if(S==null){N!=null&&f.removeAttribute(H);return}N!==S&&f.setAttribute(H,S)},k=(H,S)=>{S?R(H,""):R(H,null)};k("pressed",e),k("disabled",s),k("loading",t),k("headless",a),k("required",p),R("size",v&&v!=="md"?v:null),R("variant",i&&i!=="default"?i:null),R("tone",n&&n!=="brand"?n:null),R("shape",l&&l!=="default"?l:null),R("elevation",b&&b!=="default"?b:null),R("name",d||null),R("value",w||null),R("icon-on",h||null),R("icon-off",r||null)},[e,s,t,a,p,v,i,n,l,b,d,w,h,r]),P.default.createElement("ui-toggle",{ref:o,...y},u)});At.displayName="Toggle";const Ei=typeof window<"u"?c.useLayoutEffect:c.useEffect,pt=P.default.forwardRef(function({children:u,value:e,multiple:s,disabled:t,headless:a,orientation:v,variant:i,size:n,density:l,shape:b,elevation:d,allowEmpty:w,required:p,activation:h,onInput:r,onChange:E,onValueChange:L,...y},A){const o=c.useRef(null);return c.useImperativeHandle(A,()=>o.current),c.useEffect(()=>{const f=o.current;if(!f)return;const R=H=>{const S=H.detail;S&&(r==null||r(S),L==null||L(S))},k=H=>{const S=H.detail;S&&(E==null||E(S),L==null||L(S))};return f.addEventListener("input",R),f.addEventListener("change",k),()=>{f.removeEventListener("input",R),f.removeEventListener("change",k)}},[r,E,L]),Ei(()=>{const f=o.current;if(!f)return;const R=(H,S)=>{const N=f.getAttribute(H);if(S==null){N!=null&&f.removeAttribute(H);return}N!==S&&f.setAttribute(H,S)},k=(H,S)=>{S?R(H,""):R(H,null)};k("multiple",s),k("disabled",t),k("headless",a),k("allow-empty",w),k("required",p),e==null?R("value",null):Array.isArray(e)?R("value",JSON.stringify(e)):R("value",String(e)),R("orientation",v&&v!=="horizontal"?v:null),R("variant",i&&i!=="default"?i:null),R("size",n&&n!=="md"?n:null),R("density",l&&l!=="default"?l:null),R("shape",b&&b!=="default"?b:null),R("elevation",d&&d!=="default"?d:null),R("activation",h&&h!=="auto"?h:null)},[e,s,t,a,w,p,v,i,n,l,b,d,h]),P.default.createElement("ui-toggle-group",{ref:o,...y},u)});pt.displayName="ToggleGroup";const yi=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Li(g){if(g!=null){if(typeof g=="string")return g;if(!(!Number.isFinite(g)||g<=0))return Math.abs(g-16/9)<.01?"16/9":Math.abs(g-4/3)<.01?"4/3":Math.abs(g-1)<.01?"1/1":`${g}/1`}}const Et=P.forwardRef(function({ratio:u,fit:e,tone:s,interactive:t,showRatioBadge:a,children:v,...i},n){const l=P.useRef(null);return P.useImperativeHandle(n,()=>l.current),P.useEffect(()=>{ue("ui-aspect-ratio","AspectRatio")},[]),yi(()=>{const b=l.current;if(!b)return;const d=Li(u);d?b.setAttribute("ratio",d):b.removeAttribute("ratio"),e?b.setAttribute("fit",e):b.removeAttribute("fit"),s&&s!=="neutral"?b.setAttribute("tone",s):b.removeAttribute("tone"),t?b.setAttribute("interactive",""):b.removeAttribute("interactive"),a?b.setAttribute("show-ratio-badge",""):b.removeAttribute("show-ratio-badge")},[u,e,s,t,a]),P.createElement("ui-aspect-ratio",{ref:l,...i},v)});Et.displayName="AspectRatio";const wi=typeof window<"u"?P.useLayoutEffect:P.useEffect;function ke(g){const u=g.trim().split(/\s+/).filter(Boolean);return u.length===0?"?":u.length===1?u[0].slice(0,2).toUpperCase():`${u[0][0]||""}${u[1][0]||""}`.toUpperCase()}function gi(g){if(g!=null)return g==="lazy"||g==="eager"?g:g?"eager":"lazy"}function hi(g,u,e){return g&&g.trim()?g.trim().slice(0,2).toUpperCase():u&&u.trim()?ke(u):typeof e=="string"&&e.trim()?ke(e):"?"}const yt=P.forwardRef(function({src:u,alt:e,initials:s,size:t,bg:a,color:v,radius:i,fontWeight:n,shape:l,tone:b,variant:d,status:w,state:p,badge:h,ring:r,interactive:E,disabled:L,loading:y,onAvatarLoad:A,onAvatarError:o,children:f,...R},k){const H=P.useRef(null),S=P.useMemo(()=>hi(s,e,f),[s,e,f]);return P.useImperativeHandle(k,()=>H.current),P.useEffect(()=>{ue("ui-avatar","Avatar")},[]),P.useEffect(()=>{const N=H.current;if(!N||!A&&!o)return;const I=m=>A==null?void 0:A(m.detail),$=m=>o==null?void 0:o(m.detail);return N.addEventListener("avatar-load",I),N.addEventListener("avatar-error",$),()=>{N.removeEventListener("avatar-load",I),N.removeEventListener("avatar-error",$)}},[A,o]),wi(()=>{const N=H.current;if(!N)return;u?N.setAttribute("src",u):N.removeAttribute("src"),e?N.setAttribute("alt",e):N.removeAttribute("alt"),s?N.setAttribute("initials",s):N.removeAttribute("initials"),t!=null?N.setAttribute("size",String(t)):N.removeAttribute("size"),a?N.setAttribute("bg",a):N.removeAttribute("bg"),v?N.setAttribute("color",v):N.removeAttribute("color"),i?N.setAttribute("radius",i):N.removeAttribute("radius"),n!=null?N.setAttribute("fontweight",String(n)):N.removeAttribute("fontweight"),l?N.setAttribute("shape",l):N.removeAttribute("shape"),b&&b!=="neutral"?N.setAttribute("tone",b):N.removeAttribute("tone"),d&&d!=="soft"?N.setAttribute("variant",d):N.removeAttribute("variant"),w?N.setAttribute("status",w):N.removeAttribute("status"),p&&p!=="idle"?N.setAttribute("state",p):N.removeAttribute("state"),h?N.setAttribute("badge",h):N.removeAttribute("badge"),r==null?N.removeAttribute("ring"):r?N.setAttribute("ring",""):N.removeAttribute("ring"),E==null?N.removeAttribute("interactive"):E?N.setAttribute("interactive",""):N.removeAttribute("interactive"),L==null?N.removeAttribute("disabled"):L?N.setAttribute("disabled",""):N.removeAttribute("disabled");const I=gi(y);I?N.setAttribute("loading",I):N.removeAttribute("loading")},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y]),P.createElement("ui-avatar",{ref:H,...R},S)});yt.displayName="Avatar";const Ri=typeof window<"u"?c.useLayoutEffect:c.useEffect,Lt=P.default.forwardRef(function({present:u,headless:e,mode:s,size:t,variant:a,keepMounted:v,lazy:i,enterDuration:n,exitDuration:l,delay:b,onBeforeEnter:d,onEnter:w,onAfterEnter:p,onBeforeExit:h,onExit:r,onAfterExit:E,children:L,...y},A){const o=c.useRef(null);return P.default.useImperativeHandle(A,()=>o.current),c.useEffect(()=>{const f=o.current;if(!f)return;const R=m=>{const B=m.detail;return(B==null?void 0:B.state)||"hidden"},k=m=>d==null?void 0:d(R(m)),H=m=>w==null?void 0:w(R(m)),S=m=>p==null?void 0:p(R(m)),N=m=>h==null?void 0:h(R(m)),I=m=>r==null?void 0:r(R(m)),$=m=>E==null?void 0:E(R(m));return f.addEventListener("before-enter",k),f.addEventListener("enter",H),f.addEventListener("after-enter",S),f.addEventListener("before-exit",N),f.addEventListener("exit",I),f.addEventListener("after-exit",$),()=>{f.removeEventListener("before-enter",k),f.removeEventListener("enter",H),f.removeEventListener("after-enter",S),f.removeEventListener("before-exit",N),f.removeEventListener("exit",I),f.removeEventListener("after-exit",$)}},[d,w,p,h,r,E]),Ri(()=>{const f=o.current;f&&(u?f.setAttribute("present",""):f.removeAttribute("present"),e?f.setAttribute("headless",""):f.removeAttribute("headless"),s&&s!=="fade"?f.setAttribute("mode",s):f.removeAttribute("mode"),t&&t!=="md"?f.setAttribute("size",t):f.removeAttribute("size"),a&&a!=="default"?f.setAttribute("variant",a):f.removeAttribute("variant"),v?f.setAttribute("keep-mounted",""):f.removeAttribute("keep-mounted"),i?f.setAttribute("lazy",""):f.removeAttribute("lazy"),typeof n=="number"?f.setAttribute("enter-duration",String(n)):f.removeAttribute("enter-duration"),typeof l=="number"?f.setAttribute("exit-duration",String(l)):f.removeAttribute("exit-duration"),typeof b=="number"?f.setAttribute("delay",String(b)):f.removeAttribute("delay"))},[u,e,s,t,a,v,i,n,l,b]),P.default.createElement("ui-presence",{ref:o,...y},L)});Lt.displayName="Presence";const Hi=typeof window<"u"?c.useLayoutEffect:c.useEffect,wt=P.default.forwardRef(function({value:u,buffer:e,max:s,min:t,indeterminate:a,striped:v,animated:i,showLabel:n,label:l,format:b,precision:d,size:w,variant:p,tone:h,shape:r,mode:E,onValueChange:L,onComplete:y,children:A,...o},f){const R=c.useRef(null);return P.default.useImperativeHandle(f,()=>R.current),c.useEffect(()=>{const k=R.current;if(!k)return;const H=N=>{const I=N.detail;I&&(L==null||L(I))},S=N=>{const I=N.detail;I&&(y==null||y(I))};return k.addEventListener("change",H),k.addEventListener("complete",S),()=>{k.removeEventListener("change",H),k.removeEventListener("complete",S)}},[L,y]),Hi(()=>{const k=R.current;if(!k)return;const H=(N,I)=>{const $=k.getAttribute(N);if(I==null){$!=null&&k.removeAttribute(N);return}$!==I&&k.setAttribute(N,I)},S=(N,I)=>{I?k.hasAttribute(N)||k.setAttribute(N,""):k.hasAttribute(N)&&k.removeAttribute(N)};H("value",u!=null?String(u):null),H("buffer",e!=null?String(e):null),H("max",s!=null?String(s):null),H("min",t!=null?String(t):null),S("indeterminate",a),S("striped",v),S("animated",i),S("show-label",n),H("label",l!=null&&l!==""?l:null),H("format",b!=null&&b!=="percent"?b:null),H("precision",d!=null?String(d):null),H("size",w&&w!=="md"?w:null),H("variant",p&&p!=="default"?p:null),H("tone",h&&h!=="brand"?h:null),H("shape",r&&r!=="pill"?r:null),H("mode",E&&E!=="line"?E:null)},[u,e,s,t,a,v,i,n,l,b,d,w,p,h,r,E]),P.default.createElement("ui-progress",{ref:R,...o},A)});wt.displayName="Progress";const Ni=typeof window<"u"?c.useLayoutEffect:c.useEffect,gt=P.default.forwardRef(function({target:u,headless:e,disabled:s,strategy:t,onMount:a,onUnmount:v,onSync:i,onTargetMissing:n,children:l,...b},d){const w=c.useRef(null);return P.default.useImperativeHandle(d,()=>w.current),c.useEffect(()=>{const p=w.current;if(!p)return;const h=y=>a==null?void 0:a(y.detail||{count:0}),r=y=>v==null?void 0:v(y.detail||{count:0}),E=y=>i==null?void 0:i(y.detail||{count:0}),L=y=>{const A=y.detail;A&&(n==null||n(A))};return p.addEventListener("mount",h),p.addEventListener("unmount",r),p.addEventListener("sync",E),p.addEventListener("target-missing",L),()=>{p.removeEventListener("mount",h),p.removeEventListener("unmount",r),p.removeEventListener("sync",E),p.removeEventListener("target-missing",L)}},[a,v,i,n]),Ni(()=>{const p=w.current;p&&(u?p.setAttribute("target",u):p.removeAttribute("target"),t&&t!=="append"?p.setAttribute("strategy",t):p.removeAttribute("strategy"),e?p.setAttribute("headless",""):p.removeAttribute("headless"),s?p.setAttribute("disabled",""):p.removeAttribute("disabled"))},[u,t,e,s]),P.default.createElement("ui-portal",{ref:w,...b},l)});gt.displayName="Portal";const Si=typeof window<"u"?c.useLayoutEffect:c.useEffect,ht=P.default.forwardRef(function({orientation:u,size:e,variant:s,tone:t,autoHide:a,shadows:v,onScrollChange:i,onReachStart:n,onReachEnd:l,children:b,...d},w){const p=c.useRef(null);return P.default.useImperativeHandle(w,()=>p.current),c.useEffect(()=>{const h=p.current;if(!h)return;const r=y=>{const A=y.detail;A&&(i==null||i(A))},E=()=>n==null?void 0:n(),L=()=>l==null?void 0:l();return h.addEventListener("scroll",r),h.addEventListener("reach-start",E),h.addEventListener("reach-end",L),()=>{h.removeEventListener("scroll",r),h.removeEventListener("reach-start",E),h.removeEventListener("reach-end",L)}},[i,n,l]),Si(()=>{const h=p.current;if(!h)return;const r=(L,y)=>{const A=h.getAttribute(L);if(y==null){A!=null&&h.removeAttribute(L);return}A!==y&&h.setAttribute(L,y)},E=(L,y)=>{const A=h.getAttribute(L);if(y==null){A!=null&&h.removeAttribute(L);return}const o=y?"true":"false";A!==o&&h.setAttribute(L,o)};r("orientation",u&&u!=="vertical"?u:null),r("size",e&&e!=="md"?e:null),r("variant",s&&s!=="default"?s:null),r("tone",t&&t!=="neutral"?t:null),E("auto-hide",a),E("shadows",v)},[u,e,s,t,a,v]),P.default.createElement("ui-scroll-area",{ref:p,...d},b)});ht.displayName="ScrollArea";const Rt=P.forwardRef((g,u)=>P.createElement("ui-separator",{ref:u,...g}));Rt.displayName="Separator";const ki=typeof window<"u"?c.useLayoutEffect:c.useEffect,Ht=P.default.forwardRef(function({children:u,name:e,fallback:s,required:t,inline:a,align:v,size:i,variant:n,tone:l,headless:b,onSlotChange:d,onMissing:w,onResolved:p,...h},r){const E=c.useRef(null);return c.useImperativeHandle(r,()=>E.current),c.useEffect(()=>{const L=E.current;if(!L)return;const y=f=>{const R=f.detail;R&&(d==null||d(R))},A=()=>w==null?void 0:w(),o=()=>p==null?void 0:p();return L.addEventListener("slotchange",y),L.addEventListener("missing",A),L.addEventListener("resolved",o),()=>{L.removeEventListener("slotchange",y),L.removeEventListener("missing",A),L.removeEventListener("resolved",o)}},[d,w,p]),ki(()=>{const L=E.current;if(!L)return;const y=(o,f)=>{const R=L.getAttribute(o);if(f==null){R!=null&&L.removeAttribute(o);return}R!==f&&L.setAttribute(o,f)},A=(o,f)=>{f?y(o,""):y(o,null)};y("name",e||null),y("fallback",s||null),A("required",t),typeof a=="boolean"?y("inline",a?"true":"false"):y("inline",null),y("align",v&&v!=="start"?v:null),y("size",i&&i!=="md"?i:null),y("variant",n&&n!=="plain"?n:null),y("tone",l&&l!=="brand"?l:null),A("headless",b)},[e,s,t,a,v,i,n,l,b]),P.default.createElement("ui-slot",{ref:E,...h},u)});Ht.displayName="Slot";const Pi=typeof window<"u"?c.useLayoutEffect:c.useEffect,Nt=P.default.forwardRef(function({children:u,orientation:e,variant:s,size:t,density:a,wrap:v,loop:i,headless:n,...l},b){const d=c.useRef(null);return c.useImperativeHandle(b,()=>d.current),Pi(()=>{const w=d.current;if(!w)return;const p=(r,E)=>{const L=w.getAttribute(r);if(E==null){L!=null&&w.removeAttribute(r);return}L!==E&&w.setAttribute(r,E)},h=(r,E)=>{E?p(r,""):p(r,null)};p("orientation",e&&e!=="horizontal"?e:null),p("variant",s&&s!=="default"?s:null),p("size",t&&t!=="md"?t:null),p("density",a&&a!=="default"?a:null),h("wrap",v),typeof i=="boolean"?h("loop",i):p("loop",null),h("headless",n)},[e,s,t,a,v,i,n]),P.default.createElement("ui-toolbar",{ref:d,...l},u)});Nt.displayName="Toolbar";const St=P.forwardRef((g,u)=>P.createElement("ui-visually-hidden",{ref:u,...g}));St.displayName="VisuallyHidden";const $i=typeof window<"u"?P.useLayoutEffect:P.useEffect;function He(g,u,e){if(e==null){g.removeAttribute(u);return}e?g.setAttribute(u,""):g.removeAttribute(u)}function Pe(g){return g.detail}const kt=P.forwardRef(function({header:u,caption:e,meta:s,open:t,headless:a,disabled:v,readOnly:i,state:n,size:l,variant:b,tone:d,iconPosition:w,closeOnEscape:p,onToggle:h,onChangeOpen:r,onToggleDetail:E,onChangeDetail:L,children:y,...A},o){const f=P.useRef(null);P.useImperativeHandle(o,()=>f.current),P.useEffect(()=>{ue("ui-collapsible","Collapsible")},[]),$i(()=>{const N=f.current;if(!N)return;He(N,"open",t),He(N,"headless",a),He(N,"disabled",v),He(N,"readonly",i);const I=($,m)=>{const B=N.getAttribute($);if(m==null){B!=null&&N.removeAttribute($);return}B!==m&&N.setAttribute($,m)};I("state",n&&n!=="idle"?n:null),I("size",l&&l!=="md"?l:null),I("variant",b&&b!=="default"?b:null),I("tone",d&&d!=="neutral"?d:null),I("icon-position",w&&w!=="right"?w:null),I("close-on-escape",typeof p=="boolean"?p?"true":"false":null)},[t,a,v,i,n,l,b,d,w,p]),P.useEffect(()=>{const N=f.current;if(!N||!h&&!r&&!E&&!L)return;const I=m=>{const B=Pe(m);B&&(h==null||h(B.open),E==null||E(B))},$=m=>{const B=Pe(m);B&&(r==null||r(B.open),L==null||L(B))};return N.addEventListener("toggle",I),N.addEventListener("change",$),()=>{N.removeEventListener("toggle",I),N.removeEventListener("change",$)}},[h,r,E,L]);let R=null,k=null,H=null;const S=(N,I)=>N==null?null:typeof N=="string"||typeof N=="number"?P.createElement("span",{slot:I},N):P.isValidElement(N)?P.cloneElement(N,{slot:I}):P.createElement("span",{slot:I},N);return R=S(u,"header"),k=S(e,"caption"),H=S(s,"meta"),P.createElement("ui-collapsible",{ref:f,...A},R,k,H,y)});kt.displayName="Collapsible";const Pt=P.forwardRef((g,u)=>P.createElement("ui-pagination",{ref:u,...g}));Pt.displayName="Pagination";const xi=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Ti(g,u,e){if(e==null){g.removeAttribute(u);return}e?g.setAttribute(u,""):g.removeAttribute(u)}function $e(g,u,e){const s=g.getAttribute(u);if(e==null||e===""){s!=null&&g.removeAttribute(u);return}s!==e&&g.setAttribute(u,e)}function xe(g){var u;return(u=g.detail)==null?void 0:u.open}const $t=P.forwardRef(function({multiple:u,collapsible:e,open:s,shape:t,elevation:a,onToggle:v,onChangeOpen:i,children:n,...l},b){const d=P.useRef(null);return P.useImperativeHandle(b,()=>d.current),P.useEffect(()=>{ue("ui-accordion","Accordion")},[]),xi(()=>{const w=d.current;w&&(Ti(w,"multiple",u),e==null?w.removeAttribute("collapsible"):w.setAttribute("collapsible",String(!!e)),s==null?w.removeAttribute("open"):w.setAttribute("open",Array.isArray(s)?JSON.stringify(s):String(s)),$e(w,"shape",t&&t!=="default"?t:null),$e(w,"elevation",a&&a!=="default"?a:null))},[u,e,s,t,a]),P.useEffect(()=>{const w=d.current;if(!w||!v&&!i)return;const p=r=>{const E=xe(r);E!=null&&(v==null||v(E))},h=r=>{const E=xe(r);E!=null&&(i==null||i(E))};return w.addEventListener("toggle",p),w.addEventListener("change",h),()=>{w.removeEventListener("toggle",p),w.removeEventListener("change",h)}},[v,i]),P.createElement("ui-accordion",{ref:d,...l},n)});$t.displayName="Accordion";const xt=P.forwardRef(function({disabled:u,description:e,badge:s,children:t,...a},v){const i={ref:v,"data-ui-accordion-item":"",...a};return u&&(i.disabled=!0),e!=null&&(i["data-description"]=String(e)),s!=null&&(i["data-badge"]=String(s)),P.createElement("div",i,t)});xt.displayName="AccordionItem";const Tt=P.forwardRef(function({type:u,children:e,...s},t){return P.createElement("button",{ref:t,type:u||"button","data-ui-accordion-trigger":"",...s},e)});Tt.displayName="AccordionTrigger";const It=P.forwardRef(function({children:u,...e},s){return P.createElement("div",{ref:s,"data-ui-accordion-panel":"",...e},u)});It.displayName="AccordionPanel";const Ft=P.forwardRef((g,u)=>P.createElement("ui-direction-provider",{ref:u,...g}));Ft.displayName="DirectionProvider";const Te=typeof window<"u"?c.useLayoutEffect:c.useEffect,Bt=P.default.forwardRef(function({children:u,open:e,delay:s,closeDelay:t,placement:a,offset:v,variant:i,tone:n,density:l,shape:b,elevation:d,headless:w,onOpen:p,onClose:h,onChange:r,...E},L){const y=c.useRef(null);return c.useImperativeHandle(L,()=>y.current),c.useEffect(()=>{const A=y.current;if(!A)return;const o=()=>p==null?void 0:p(),f=()=>h==null?void 0:h(),R=k=>{var S;const H=(S=k.detail)==null?void 0:S.open;typeof H=="boolean"&&(r==null||r(H))};return A.addEventListener("open",o),A.addEventListener("close",f),A.addEventListener("change",R),()=>{A.removeEventListener("open",o),A.removeEventListener("close",f),A.removeEventListener("change",R)}},[p,h,r]),Te(()=>{const A=y.current;!A||e==null||(e?A.setAttribute("open",""):A.removeAttribute("open"))},[e]),Te(()=>{const A=y.current;A&&(typeof s=="number"?A.setAttribute("delay",String(s)):A.removeAttribute("delay"),typeof t=="number"?A.setAttribute("close-delay",String(t)):A.removeAttribute("close-delay"),a?A.setAttribute("placement",a):A.removeAttribute("placement"),typeof v=="number"?A.setAttribute("offset",String(v)):A.removeAttribute("offset"),i&&i!=="default"?A.setAttribute("variant",i):A.removeAttribute("variant"),n&&n!=="default"?A.setAttribute("tone",n):A.removeAttribute("tone"),l&&l!=="default"?A.setAttribute("density",l):A.removeAttribute("density"),b&&b!=="default"?A.setAttribute("shape",b):A.removeAttribute("shape"),d&&d!=="default"?A.setAttribute("elevation",d):A.removeAttribute("elevation"),w?A.setAttribute("headless",""):A.removeAttribute("headless"))},[s,t,a,v,i,n,l,b,d,w]),P.default.createElement("ui-hover-card",{ref:y,...E},u)});Bt.displayName="HoverCard";const Ii=typeof window<"u"?c.useLayoutEffect:c.useEffect,jt=P.default.forwardRef(function({children:u,htmlFor:e,for:s,required:t,description:a,variant:v,tone:i,size:n,density:l,shape:b,disabled:d,headless:w,...p},h){const r=c.useRef(null);return c.useImperativeHandle(h,()=>r.current),Ii(()=>{const E=r.current;if(!E)return;const L=e||s;L?E.setAttribute("for",L):E.removeAttribute("for"),t?E.setAttribute("required",""):E.removeAttribute("required"),a?E.setAttribute("description",a):E.removeAttribute("description"),v&&v!=="default"?E.setAttribute("variant",v):E.removeAttribute("variant"),i&&i!=="default"?E.setAttribute("tone",i):E.removeAttribute("tone"),n&&n!=="md"&&n!=="2"?E.setAttribute("size",n):E.removeAttribute("size"),l&&l!=="default"?E.setAttribute("density",l):E.removeAttribute("density"),b&&b!=="default"?E.setAttribute("shape",b):E.removeAttribute("shape"),d?E.setAttribute("disabled",""):E.removeAttribute("disabled"),w?E.setAttribute("headless",""):E.removeAttribute("headless")},[e,s,t,a,v,i,n,l,b,d,w]),P.default.createElement("ui-label",{ref:r,...p},u)});jt.displayName="Label";const Fi=typeof window<"u"?P.default.useLayoutEffect:P.default.useEffect,qt=P.default.forwardRef(function({children:u,open:e,headless:s,dismissible:t,closeOnEsc:a,closeOnBackdrop:v,lockWhileLoading:i,roleType:n,tone:l,size:b,state:d,initialFocus:w,dialogId:p,config:h,onOpen:r,onConfirm:E,onCancel:L,onDismiss:y,onClose:A,onChange:o,...f},R){const k=c.useRef(null);return P.default.useImperativeHandle(R,()=>k.current),c.useEffect(()=>{const H=k.current;if(!H)return;const S=M=>r==null?void 0:r(M.detail),N=M=>E==null?void 0:E(M.detail),I=M=>L==null?void 0:L(M.detail),$=M=>y==null?void 0:y(M.detail),m=M=>A==null?void 0:A(M.detail),B=M=>o==null?void 0:o(M.detail);return H.addEventListener("ui-open",S),H.addEventListener("ui-confirm",N),H.addEventListener("ui-cancel",I),H.addEventListener("ui-dismiss",$),H.addEventListener("ui-close",m),H.addEventListener("ui-change",B),()=>{H.removeEventListener("ui-open",S),H.removeEventListener("ui-confirm",N),H.removeEventListener("ui-cancel",I),H.removeEventListener("ui-dismiss",$),H.removeEventListener("ui-close",m),H.removeEventListener("ui-change",B)}},[r,E,L,y,A,o]),Fi(()=>{const H=k.current;H&&(typeof e=="boolean"&&e?H.setAttribute("open",""):H.removeAttribute("open"),s?H.setAttribute("headless",""):H.removeAttribute("headless"),typeof t=="boolean"?H.setAttribute("dismissible",String(t)):H.removeAttribute("dismissible"),typeof a=="boolean"?H.setAttribute("close-on-esc",String(a)):H.removeAttribute("close-on-esc"),typeof v=="boolean"?H.setAttribute("close-on-backdrop",String(v)):H.removeAttribute("close-on-backdrop"),typeof i=="boolean"?H.setAttribute("lock-while-loading",String(i)):H.removeAttribute("lock-while-loading"),n?H.setAttribute("role",n):H.removeAttribute("role"),l&&l!=="neutral"?H.setAttribute("tone",l):H.removeAttribute("tone"),b&&b!=="md"?H.setAttribute("size",b):H.removeAttribute("size"),d&&d!=="idle"?H.setAttribute("state",d):H.removeAttribute("state"),w?H.setAttribute("initial-focus",w):H.removeAttribute("initial-focus"),p&&(H.dialogId=p),h?H.config=h:H.config={})},[e,s,t,a,v,i,n,l,b,d,w,p,h]),P.default.createElement("ui-alert-dialog",{ref:k,...f},u)});qt.displayName="AlertDialog";const Jt=c.createContext(null),ve="data-ui-alert-dialog-react-host-refcount";function Bi({children:g,hostId:u="ui-alert-dialog-react-host"}){const e=c.useRef(null);e.current||(e.current=oe.createAlertDialogManager()),c.useEffect(()=>{var i;if(typeof document>"u")return;let t=document.getElementById(u);const a=!t;t||(t=document.createElement("div"),t.id=u,t.setAttribute("data-ui-alert-dialog-react-host","true"),document.body.appendChild(t));const v=Number(t.getAttribute(ve)||"0");return t.setAttribute(ve,String(Math.max(0,v)+1)),(i=e.current)==null||i.setContainer(t),()=>{var b,d;if((b=e.current)==null||b.destroy("unmount"),e.current=null,!t||!t.isConnected)return;const n=Number(t.getAttribute(ve)||"1"),l=Math.max(0,n-1);l===0?(t.removeAttribute(ve),a&&((d=t.parentElement)==null||d.removeChild(t))):t.setAttribute(ve,String(l))}},[u]);const s=c.useMemo(()=>({alert:(t={})=>{var a;return((a=e.current)==null?void 0:a.alert(t))??Promise.resolve({id:"",action:"dismiss"})},confirm:(t={})=>{var a;return((a=e.current)==null?void 0:a.confirm(t))??Promise.resolve({id:"",action:"dismiss"})},prompt:(t={})=>{var a;return((a=e.current)==null?void 0:a.prompt(t))??Promise.resolve({id:"",action:"dismiss",value:""})}}),[]);return P.default.createElement(Jt.Provider,{value:s},g)}function ji(){const g=c.useContext(Jt);if(!g)throw new Error("useAlertDialog must be used within <AlertDialogProvider>.");return g}const qi=typeof window<"u"?c.useLayoutEffect:c.useEffect,Gt=P.default.forwardRef(function({children:u,value:e,disabled:s,loading:t,required:a,invalid:v,headless:i,placeholder:n,name:l,label:b,description:d,error:w,size:p,variant:h,tone:r,density:E,shape:L,elevation:y,radius:A,validation:o,onChange:f,onInput:R,onValueChange:k,...H},S){const N=c.useRef(null);return c.useImperativeHandle(S,()=>N.current),c.useEffect(()=>{const I=N.current;if(!I)return;const $=M=>{var T,G;return((T=M.detail)==null?void 0:T.value)??((G=M.target)==null?void 0:G.value)??""},m=M=>{R==null||R($(M))},B=M=>{const T=$(M);f==null||f(T),k==null||k(T)};return I.addEventListener("input",m),I.addEventListener("change",B),()=>{I.removeEventListener("input",m),I.removeEventListener("change",B)}},[f,R,k]),qi(()=>{const I=N.current;if(!I)return;const $=(B,M)=>{const T=I.getAttribute(B);if(M==null){T!=null&&I.removeAttribute(B);return}T!==M&&I.setAttribute(B,M)},m=(B,M)=>{M?I.hasAttribute(B)||I.setAttribute(B,""):I.hasAttribute(B)&&I.removeAttribute(B)};$("value",e!=null?String(e):null),m("disabled",s),m("loading",t),m("required",a),m("headless",i),m("invalid",v),$("placeholder",n||null),$("name",l||null),$("label",b||null),$("description",d||null),$("error",w||null),$("size",p&&p!=="md"&&p!=="2"?p:null),$("variant",h&&h!=="classic"?h:null),$("tone",r&&r!=="default"?r:null),$("density",E&&E!=="default"?E:null),$("shape",L&&L!=="rounded"?L:null),$("elevation",y&&y!=="low"?y:null),$("radius",A?String(A):null),$("validation",o&&o!=="none"?o:null)},[e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o]),P.default.createElement("ui-select",{ref:N,...H},u)});Gt.displayName="Select";const Ji=typeof window<"u"?c.useLayoutEffect:c.useEffect,_t=P.default.forwardRef(function({children:u,value:e,valueStart:s,valueEnd:t,min:a,max:v,step:i,range:n,disabled:l,headless:b,orientation:d,size:w,variant:p,tone:h,showValue:r,format:E,label:L,description:y,marks:A,name:o,nameStart:f,nameEnd:R,onInput:k,onChange:H,onValueChange:S,...N},I){const $=c.useRef(null);return c.useImperativeHandle(I,()=>$.current),c.useEffect(()=>{const m=$.current;if(!m)return;const B=T=>{const G=T.detail;G&&(k==null||k(Number(G.value)),S==null||S(G))},M=T=>{const G=T.detail;G&&(H==null||H(Number(G.value)),S==null||S(G))};return m.addEventListener("input",B),m.addEventListener("change",M),()=>{m.removeEventListener("input",B),m.removeEventListener("change",M)}},[k,H,S]),Ji(()=>{const m=$.current;if(!m)return;const B=(T,G)=>{const q=m.getAttribute(T);if(G==null){q!=null&&m.removeAttribute(T);return}q!==G&&m.setAttribute(T,G)},M=(T,G,q)=>{if(G==null){q!==void 0&&q===!1&&B(T,null);return}G?B(T,""):B(T,null)};if(B("value",typeof e=="number"&&Number.isFinite(e)?String(e):null),B("value-start",typeof s=="number"&&Number.isFinite(s)?String(s):null),B("value-end",typeof t=="number"&&Number.isFinite(t)?String(t):null),B("min",typeof a=="number"&&Number.isFinite(a)?String(a):null),B("max",typeof v=="number"&&Number.isFinite(v)?String(v):null),B("step",typeof i=="number"&&Number.isFinite(i)?String(i):null),M("range",n),M("disabled",l),M("headless",b),B("orientation",d&&d!=="horizontal"?d:null),B("size",w&&w!=="md"?w:null),B("variant",p&&p!=="default"?p:null),B("tone",h&&h!=="brand"?h:null),typeof r=="boolean"?B("show-value",r?"true":"false"):B("show-value",null),B("format",E||null),B("label",L||null),B("description",y||null),B("name",o||null),B("name-start",f||null),B("name-end",R||null),A&&A.length)try{B("marks",JSON.stringify(A))}catch{B("marks",null)}else B("marks",null)},[e,s,t,a,v,i,n,l,b,d,w,p,h,r,E,L,y,A,o,f,R]),P.default.createElement("ui-slider",{ref:$,...N},u)});_t.displayName="Slider";const Gi=typeof window<"u"?c.useLayoutEffect:c.useEffect;function _i(g){const{count:u,width:e,height:s,radius:t,gap:a,duration:v,variant:i,animation:n,density:l,tone:b,animated:d,headless:w,...p}=g,h=c.useRef(null);return Gi(()=>{const r=h.current;r&&(typeof u=="number"&&Number.isFinite(u)?r.setAttribute("count",String(u)):r.removeAttribute("count"),e?r.setAttribute("width",e):r.removeAttribute("width"),s?r.setAttribute("height",s):r.removeAttribute("height"),t?r.setAttribute("radius",t):r.removeAttribute("radius"),a?r.setAttribute("gap",a):r.removeAttribute("gap"),v?r.setAttribute("duration",v):r.removeAttribute("duration"),i?r.setAttribute("variant",i):r.removeAttribute("variant"),n&&n!=="none"?r.setAttribute("animation",n):n==="none"?r.setAttribute("animation","none"):r.removeAttribute("animation"),l&&l!=="default"?r.setAttribute("density",l):r.removeAttribute("density"),b&&b!=="default"?r.setAttribute("tone",b):r.removeAttribute("tone"),d?r.setAttribute("animated",""):r.removeAttribute("animated"),w?r.setAttribute("headless",""):r.removeAttribute("headless"))},[u,e,s,t,a,v,i,n,l,b,d,w]),P.default.createElement("ui-skeleton",{ref:h,...p})}Object.defineProperty(exports,"toastAdvanced",{enumerable:!0,get:()=>ee.toastAdvanced});Object.defineProperty(exports,"toastLegacy",{enumerable:!0,get:()=>tr.default});Object.defineProperty(exports,"toastPro",{enumerable:!0,get:()=>ee.toastPro});exports.Accordion=$t;exports.AccordionItem=xt;exports.AccordionPanel=It;exports.AccordionTrigger=Tt;exports.Alert=ur;exports.AlertDialog=qt;exports.AlertDialogProvider=Bi;exports.AppHeader=ft;exports.AspectRatio=Et;exports.Avatar=yt;exports.Badge=ar;exports.BlockControls=ut;exports.Box=ii;exports.Breadcrumb=ot;exports.Button=Ie;exports.Calendar=_e;exports.Chart=Je;exports.Checkbox=bt;exports.Collapsible=kt;exports.ColorPicker=Me;exports.Combobox=cr;exports.CommandPalette=Zr;exports.Container=si;exports.ContextMenu=Kr;exports.DataTable=Ar;exports.DatePicker=ze;exports.DateRangePicker=De;exports.DateRangeTimePicker=Xe;exports.DateTimePicker=Ue;exports.Dialog=Oe;exports.DialogProvider=Br;exports.DirectionProvider=Ft;exports.Drawer=ct;exports.Dropdown=Be;exports.EmptyState=mr;exports.Field=or;exports.Flex=ui;exports.FloatingToolbar=Ur;exports.Form=nt;exports.Gantt=Ye;exports.Grid=ni;exports.HoverCard=Bt;exports.Icon=rt;exports.Input=je;exports.Label=jt;exports.Layout=dt;exports.Menu=tt;exports.Menubar=Ir;exports.NavigationMenu=xr;exports.Pagination=Pt;exports.PluginPanel=Cr;exports.Popover=Ce;exports.Portal=gt;exports.Presence=Lt;exports.Progress=wt;exports.QuickActions=We;exports.RadioGroup=mt;exports.ScrollArea=ht;exports.Section=lt;exports.Select=Gt;exports.SelectionPopup=Or;exports.Separator=Rt;exports.Sidebar=st;exports.Skeleton=_i;exports.Slider=_t;exports.Slot=Ht;exports.Stepper=Ze;exports.Switch=vt;exports.Table=vr;exports.Tabs=et;exports.Textarea=qe;exports.ThemeProvider=bi;exports.TimePicker=Qe;exports.Timeline=Ge;exports.Toast=it;exports.ToastAPI=Mr;exports.Toggle=At;exports.ToggleGroup=pt;exports.Toolbar=Nt;exports.Tooltip=Fe;exports.VisuallyHidden=St;exports.Wizard=Ke;exports.toast=Gr;exports.toastApi=_r;exports.useAlertDialog=ji;exports.useDialog=jr;exports.useFloating=ri;exports.useForm=ti;exports.useTheme=mi;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react"),ne=require("./_internals-b9f3e909.js"),Hr=require("./Input.cjs.js"),Ir=require("./Textarea.cjs.js"),Pr=require("./Combobox.cjs.js"),kr=require("./Wizard.cjs.js"),Tr=require("./Rating.cjs.js"),Dr=require("./QuickActions.cjs.js"),Fr=require("./Menubar.cjs.js"),se=require("@editora/ui-core"),$r=require("./Popover.cjs.js"),xr=require("./Tabs.cjs.js"),we=require("./Menu-010405cb.js"),te=require("@editora/toast"),Mr=require("./FloatingToolbar.cjs.js"),Ge=require("./Command-da77cea8.js"),Je=require("./CommandPalette-e827844c.js"),qr=require("react-dom"),Br=require("./SelectionPopup.cjs.js"),jr=require("./Form.cjs.js"),Gr=require("./Sidebar.cjs.js"),Jr=require("./Tree.cjs.js"),_r=require("./Breadcrumb.cjs.js"),pe=require("./AppHeader-5c427700.js"),Ur=require("./Drawer.cjs.js"),Qr=require("./Layout.cjs.js"),Wr=require("./Switch.cjs.js"),_e=require("./ToggleGroup-4e0917a9.js"),Xr=require("./Collapsible.cjs.js"),Yr=require("./HoverCard.cjs.js"),zr=require("./Card.cjs.js"),Kr=require("./Label.cjs.js"),Zr=require("./Select.cjs.js"),Or=f=>f&&f.__esModule?f:{default:f};function Vr(f){if(f&&f.__esModule)return f;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(f){for(const t in f)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(f,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>f[t]})}}return e.default=f,Object.freeze(e)}const y=Vr(m),Cr=Or(te);function ge(f,e,t){if(t==null||!t){f.removeAttribute(e);return}f.setAttribute(e,"")}function ue(f,e,t){if(!t){f.removeAttribute(e);return}f.setAttribute(e,t)}const Ue=y.default.forwardRef(function({children:e,onClick:t,variant:i,size:r,recipe:l,radius:d,scale:c,icon:s,startIcon:o,endIcon:p,loading:u,loadingLabel:b,state:E,tone:L,block:A,headless:v,disabled:n,animation:a,theme:w,type:h,ariaLabel:g,...R},N){const S=m.useRef(null),I=typeof window<"u"?y.default.useLayoutEffect:y.default.useEffect;m.useImperativeHandle(N,()=>S.current),m.useEffect(()=>{ne.warnIfElementNotRegistered("ui-button","Button")},[]),m.useEffect(()=>{const $=S.current;if(!$||!t)return;const M=J=>t(J);return $.addEventListener("click",M),()=>$.removeEventListener("click",M)},[t]),I(()=>{const $=S.current;if(!$)return;ue($,"variant",i),r&&r!=="md"?ue($,"size",r):$.removeAttribute("size"),ue($,"icon",s);const M=E||(u?"loading":"idle");M==="idle"?$.removeAttribute("state"):ue($,"state",M),ge($,"loading",!!u),ge($,"block",!!A),ge($,"headless",!!v),ge($,"disabled",!!n),ue($,"animation",a),w&&w!=="default"?ue($,"theme",w):$.removeAttribute("theme"),ue($,"tone",L),h&&h!=="button"?ue($,"type",h):$.removeAttribute("type"),b!==void 0&&ue($,"loading-label",b),g!==void 0&&ue($,"aria-label",g),ue($,"recipe",l),ue($,"radius",d!=null?String(d):void 0),ue($,"scale",c)},[i,r,l,d,c,s,u,E,A,v,n,a,w,L,h,b,g]);const B={ref:S,...R,variant:i,size:r&&r!=="md"?r:void 0,recipe:l,radius:d!=null?String(d):void 0,scale:c,icon:s,animation:a,tone:L,type:h&&h!=="button"?h:void 0,loading:u?"":void 0,block:A?"":void 0,headless:v?"":void 0,disabled:n?"":void 0,theme:w&&w!=="default"?w:void 0,state:E&&E!=="idle"?E:void 0,"loading-label":b,"aria-label":g},T=o==null?null:y.default.createElement("span",{slot:"prefix","aria-hidden":"true"},o),D=p==null?null:y.default.createElement("span",{slot:"suffix","aria-hidden":"true"},p);return y.default.createElement("ui-button",B,T,e,D)});Ue.displayName="Button";const ei=typeof window<"u"?m.useLayoutEffect:m.useEffect,Qe=y.default.forwardRef(function({children:e,text:t,placement:i,open:r,disabled:l,headless:d,variant:c,size:s,tone:o,delay:p,closeDelay:u,trigger:b,offset:E,interactive:L,arrow:A,onOpen:v,onClose:n,onOpenChange:a,...w},h){const g=m.useRef(null);return m.useImperativeHandle(h,()=>g.current),m.useEffect(()=>{const R=g.current;if(!R)return;const N=()=>{v==null||v()},S=()=>{n==null||n()},I=B=>{const T=B.detail;T&&typeof T.open=="boolean"&&(a==null||a(T.open))};return R.addEventListener("open",N),R.addEventListener("close",S),R.addEventListener("change",I),()=>{R.removeEventListener("open",N),R.removeEventListener("close",S),R.removeEventListener("change",I)}},[v,n,a]),ei(()=>{const R=g.current;if(!R)return;const N=(I,B)=>{const T=R.getAttribute(I);if(B==null){T!=null&&R.removeAttribute(I);return}T!==B&&R.setAttribute(I,B)},S=(I,B)=>{B?N(I,""):N(I,null)};N("text",t||null),N("placement",i||null),S("open",r),S("disabled",l),S("headless",d),N("variant",c&&c!=="default"?c:null),N("size",s&&s!=="md"?s:null),N("tone",o&&o!=="default"?o:null),N("delay",typeof p=="number"&&Number.isFinite(p)?String(p):null),N("close-delay",typeof u=="number"&&Number.isFinite(u)?String(u):null),N("trigger",b||null),N("offset",typeof E=="number"&&Number.isFinite(E)?String(E):null),S("interactive",L),typeof A=="boolean"?N("arrow",A?"true":"false"):N("arrow",null)},[t,i,r,l,d,c,s,o,p,u,b,E,L,A]),y.default.createElement("ui-tooltip",{ref:g,...w},e)});Qe.displayName="Tooltip";const ti=typeof window<"u"?m.useLayoutEffect:m.useEffect;function ri(f){const{title:e,description:t,tone:i,variant:r,layout:l,size:d,radius:c,elevation:s,indicator:o,dismissible:p,open:u,headless:b,onClose:E,children:L,...A}=f,v=m.useRef(null);return m.useEffect(()=>{const n=v.current;if(!n)return;const a=()=>E==null?void 0:E();return n.addEventListener("close",a),()=>n.removeEventListener("close",a)},[E]),ti(()=>{const n=v.current;n&&(e?n.setAttribute("title",e):n.removeAttribute("title"),t?n.setAttribute("description",t):n.removeAttribute("description"),i?n.setAttribute("tone",i):n.removeAttribute("tone"),r?n.setAttribute("variant",r):n.removeAttribute("variant"),l?n.setAttribute("layout",l):n.removeAttribute("layout"),d&&d!=="md"?n.setAttribute("size",d):n.removeAttribute("size"),c!=null?n.setAttribute("radius",String(c)):n.removeAttribute("radius"),s&&s!=="low"?n.setAttribute("elevation",s):n.removeAttribute("elevation"),o&&o!=="line"?n.setAttribute("indicator",o):n.removeAttribute("indicator"),p?n.setAttribute("dismissible",""):n.removeAttribute("dismissible"),b?n.setAttribute("headless",""):n.removeAttribute("headless"),typeof u=="boolean"?u?n.removeAttribute("hidden"):n.setAttribute("hidden",""):n.removeAttribute("hidden"))},[e,t,i,r,l,d,c,s,o,p,u,b]),y.default.createElement("ui-alert",{ref:v,...A},L)}function he(f,e,t,i){const r=y.default.forwardRef(function({as:d,children:c,style:s,...o},p){const u=d||f,b={ref:p,...o};return t&&(b.slot=t),i&&(b[i]=""),s&&(b.style=s),y.default.createElement(u,b,c)});return r.displayName=e,r}const ii=he("span","AlertIcon","icon","data-ui-alert-icon"),ni=he("div","AlertTitle","title","data-ui-alert-title"),ui=he("div","AlertDescription",void 0,"data-ui-alert-description"),li=he("div","AlertActions","actions","data-ui-alert-actions"),si=typeof window<"u"?m.useLayoutEffect:m.useEffect,We=y.default.forwardRef(function({children:e,open:t,placement:i,variant:r,size:l,density:d,radius:c,shape:s,elevation:o,tone:p,closeOnSelect:u,typeahead:b,onOpen:E,onClose:L,onChange:A,onChangeDetail:v,onRequestClose:n,onSelect:a,...w},h){const g=m.useRef(null);return m.useImperativeHandle(h,()=>g.current),m.useEffect(()=>{const R=g.current;if(!R)return;const N=()=>E==null?void 0:E(),S=()=>L==null?void 0:L(),I=D=>{const $=D.detail||{};typeof $.open=="boolean"&&(A==null||A($.open)),typeof $.open=="boolean"&&(v==null||v({open:$.open,reason:$.reason}))},B=D=>{const $=D.detail||{};typeof $.reason=="string"&&(n==null||n({reason:$.reason}))},T=D=>{a==null||a(D.detail||{})};return R.addEventListener("open",N),R.addEventListener("close",S),R.addEventListener("change",I),R.addEventListener("request-close",B),R.addEventListener("select",T),()=>{R.removeEventListener("open",N),R.removeEventListener("close",S),R.removeEventListener("change",I),R.removeEventListener("request-close",B),R.removeEventListener("select",T)}},[E,L,A,v,n,a]),si(()=>{const R=g.current;if(!R)return;const N=(I,B)=>{const T=R.getAttribute(I);if(B==null){T!=null&&R.removeAttribute(I);return}T!==B&&R.setAttribute(I,B)},S=(I,B,T="presence")=>{if(T==="presence"){B?R.hasAttribute(I)||R.setAttribute(I,""):R.hasAttribute(I)&&R.removeAttribute(I);return}if(B==null){R.hasAttribute(I)&&R.removeAttribute(I);return}const D=B?"true":"false";R.getAttribute(I)!==D&&R.setAttribute(I,D)};S("open",t),N("placement",i||null),N("variant",r&&r!=="default"&&r!=="surface"?r:null),N("size",l&&l!=="md"&&l!=="2"?l:null),N("density",d&&d!=="default"?d:null),N("radius",c==null||c===""||c==="default"?null:String(c)),N("shape",s&&s!=="default"&&s!=="rounded"?s:null),N("elevation",o&&o!=="default"?o:null),N("tone",p&&p!=="default"&&p!=="brand"?p:null),S("close-on-select",u,"value"),S("typeahead",b,"value")},[t,i,r,l,d,c,s,o,p,u,b]),y.default.createElement("ui-dropdown",{ref:g,...w},e)});We.displayName="Dropdown";const Ie=y.default.forwardRef(function(e,t){return y.default.createElement("button",{...e,ref:t,slot:"trigger"})});Ie.displayName="Dropdown.Trigger";const Pe=y.default.forwardRef(function({as:e="div",...t},i){return y.default.createElement(e,{...t,ref:i,slot:"content"})});Pe.displayName="Dropdown.Content";const ke=y.default.forwardRef(function({children:e,icon:t,shortcut:i,caption:r,tone:l,role:d="menuitem",checked:c,className:s,value:o,label:p,"aria-label":u,...b},E){const L=["item",s].filter(Boolean).join(" "),A=d==="menuitemcheckbox"||d==="menuitemradio"?y.default.createElement("span",{className:"selection-icon","aria-hidden":"true"}):null;return y.default.createElement("div",{...b,ref:E,role:d,tabIndex:b.tabIndex??-1,className:L,"data-tone":l,"data-value":o,"aria-label":p??u,"aria-checked":d==="menuitemcheckbox"||d==="menuitemradio"?c?"true":"false":void 0,"data-menu-item":"true"},A,t?y.default.createElement("span",{className:"icon","aria-hidden":"true"},t):null,y.default.createElement("span",{className:"label"},y.default.createElement("span",{className:"text"},e),r?y.default.createElement("span",{className:"caption"},r):null),i?y.default.createElement("span",{className:"shortcut"},i):null)});ke.displayName="Dropdown.Item";const Te=y.default.forwardRef(function({className:e,...t},i){const r=["separator",e].filter(Boolean).join(" ");return y.default.createElement("div",{...t,ref:i,role:"separator",className:r})});Te.displayName="Dropdown.Separator";const De=y.default.forwardRef(function({children:e,className:t,...i},r){const l=["section-label",t].filter(Boolean).join(" ");return y.default.createElement("div",{...i,ref:r,className:l},e)});De.displayName="Dropdown.SectionLabel";const oi=Object.assign(We,{Trigger:Ie,Content:Pe,Item:ke,Separator:Te,SectionLabel:De}),ci=typeof window<"u"?m.useLayoutEffect:m.useEffect,Xe=y.default.forwardRef(function(e,t){const{value:i,onChange:r,onInput:l,onDebouncedInput:d,onClear:c,onVisibilityChange:s,onStrengthChange:o,clearable:p,debounce:u,validation:b,size:E,minlength:L,maxlength:A,readOnly:v,autofocus:n,disabled:a,counter:w,floatingLabel:h,name:g,required:R,pattern:N,autoComplete:S,spellCheck:I,placeholder:B,variant:T,tone:D,density:$,shape:M,color:J,radius:P,label:F,description:j,error:x,showStrength:H,revealable:k,strengthEvaluator:q,children:_,...W}=e,U=m.useRef(null);return m.useImperativeHandle(t,()=>U.current),m.useEffect(()=>{const G=U.current;if(!G)return;const Q=O=>{const V=O.detail;typeof(V==null?void 0:V.value)=="string"&&(l==null||l(V.value))},z=O=>{const V=O.detail;typeof(V==null?void 0:V.value)=="string"&&(r==null||r(V.value))},X=O=>{const V=O.detail;typeof(V==null?void 0:V.value)=="string"&&(d==null||d(V.value))},K=()=>c==null?void 0:c(),Z=O=>{const V=O.detail;s==null||s(!!(V!=null&&V.revealed))},ee=O=>{const V=O.detail;V&&(o==null||o(V))};return G.addEventListener("input",Q),G.addEventListener("change",z),G.addEventListener("debounced-input",X),G.addEventListener("clear",K),G.addEventListener("visibility-change",Z),G.addEventListener("strength-change",ee),()=>{G.removeEventListener("input",Q),G.removeEventListener("change",z),G.removeEventListener("debounced-input",X),G.removeEventListener("clear",K),G.removeEventListener("visibility-change",Z),G.removeEventListener("strength-change",ee)}},[r,c,d,l,o,s]),ci(()=>{const G=U.current;if(!G)return;const Q=(X,K)=>{const Z=G.getAttribute(X);if(K==null){Z!=null&&G.removeAttribute(X);return}Z!==K&&G.setAttribute(X,K)},z=(X,K)=>{K?G.hasAttribute(X)||G.setAttribute(X,""):G.hasAttribute(X)&&G.removeAttribute(X)};i!==void 0&&Q("value",i??null),Q("debounce",typeof u=="number"&&Number.isFinite(u)?String(u):null),Q("validation",b&&b!=="none"?b:null),Q("size",E&&E!=="md"&&E!=="2"?String(E):null),Q("minlength",typeof L=="number"?String(L):null),Q("maxlength",typeof A=="number"?String(A):null),Q("pattern",N??null),Q("autocomplete",S??null),Q("spellcheck",typeof I=="boolean"?String(I):null),Q("placeholder",B??null),Q("variant",T&&T!=="classic"?T:null),Q("tone",D&&D!=="default"?D:null),Q("density",$&&$!=="default"?$:null),Q("shape",M&&M!=="default"?M:null),Q("color",J??null),Q("radius",P?String(P):null),Q("label",F??null),Q("description",j??null),Q("data-error",x??null),Q("name",g??null),z("clearable",p),z("readonly",v),z("autofocus",n),z("disabled",a),z("counter",w),z("floating-label",h),z("required",R),z("show-strength",H),typeof k=="boolean"?Q("revealable",String(k)):G.removeAttribute("revealable"),G.strengthEvaluator=q??null},[S,n,p,J,w,u,$,j,a,x,h,F,A,L,g,N,B,P,v,R,k,H,M,E,I,q,D,b,i,T]),y.default.createElement("ui-password-field",{ref:U,...W},_)});Xe.displayName="PasswordField";const fi=typeof window<"u"?m.useLayoutEffect:m.useEffect;function ai(f){return f==null?null:Array.isArray(f)?JSON.stringify(f):f}const Ye=y.default.forwardRef(function({value:e,name:t,label:i,description:r,placeholder:l,required:d,disabled:c,readOnly:s,counter:o,maxTags:p,allowDuplicates:u,addOnBlur:b,onChange:E,onTagAdd:L,onTagRemove:A,children:v,...n},a){const w=m.useRef(null);return m.useImperativeHandle(a,()=>w.current),m.useEffect(()=>{const h=w.current;if(!h)return;const g=S=>{const I=S.detail;Array.isArray(I==null?void 0:I.value)&&(E==null||E(I.value))},R=S=>{const I=S.detail;I&&(L==null||L(I))},N=S=>{const I=S.detail;I&&(A==null||A(I))};return h.addEventListener("change",g),h.addEventListener("tag-add",R),h.addEventListener("tag-remove",N),()=>{h.removeEventListener("change",g),h.removeEventListener("tag-add",R),h.removeEventListener("tag-remove",N)}},[E,L,A]),fi(()=>{const h=w.current;if(!h)return;const g=(N,S)=>{const I=h.getAttribute(N);if(S==null){I!=null&&h.removeAttribute(N);return}I!==S&&h.setAttribute(N,S)},R=(N,S)=>{S?h.hasAttribute(N)||h.setAttribute(N,""):h.hasAttribute(N)&&h.removeAttribute(N)};g("value",ai(e)),g("name",t??null),g("label",i??null),g("description",r??null),g("placeholder",l??null),R("required",d),R("disabled",c),R("readonly",s),R("counter",o),R("allow-duplicates",u),R("add-on-blur",b),g("max-tags",typeof p=="number"?String(p):null)},[e,t,i,r,l,d,c,s,o,u,b,p]),y.default.createElement("ui-tags-input",{ref:w,...n},v)});Ye.displayName="TagsInput";const di=typeof window<"u"?m.useLayoutEffect:m.useEffect,Fe=y.default.forwardRef(function({value:e,onChange:t,onComplete:i,length:r,name:l,label:d,description:c,error:s,mode:o,mask:p,required:u,disabled:b,readOnly:E,placeholderChar:L,size:A,density:v,shape:n,invalid:a,children:w,...h},g){const R=m.useRef(null);return m.useImperativeHandle(g,()=>R.current),m.useEffect(()=>{const N=R.current;if(!N)return;const S=B=>{t==null||t(B.detail.value||"")},I=B=>{i==null||i(B.detail.value||"")};return N.addEventListener("change",S),N.addEventListener("complete",I),()=>{N.removeEventListener("change",S),N.removeEventListener("complete",I)}},[t,i]),di(()=>{const N=R.current;N&&(e!=null&&e!==""?N.setAttribute("value",e):N.removeAttribute("value"),typeof r=="number"&&Number.isFinite(r)?N.setAttribute("length",String(r)):N.removeAttribute("length"),l?N.setAttribute("name",l):N.removeAttribute("name"),d?N.setAttribute("label",d):N.removeAttribute("label"),c?N.setAttribute("description",c):N.removeAttribute("description"),s?N.setAttribute("error",s):N.removeAttribute("error"),o&&o!=="numeric"?N.setAttribute("mode",o):N.removeAttribute("mode"),p?N.setAttribute("mask",""):N.removeAttribute("mask"),u?N.setAttribute("required",""):N.removeAttribute("required"),b?N.setAttribute("disabled",""):N.removeAttribute("disabled"),E?N.setAttribute("readonly",""):N.removeAttribute("readonly"),L?N.setAttribute("placeholder-char",L):N.removeAttribute("placeholder-char"),A&&A!=="md"&&A!=="2"?N.setAttribute("size",A):N.removeAttribute("size"),v&&v!=="default"?N.setAttribute("density",v):N.removeAttribute("density"),n&&n!=="default"?N.setAttribute("shape",n):N.removeAttribute("shape"),a?N.setAttribute("invalid",""):N.removeAttribute("invalid"))},[e,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a]),y.default.createElement("ui-pin-input",{ref:R,...h},w)});Fe.displayName="PinInput";const mi=Fe,bi=typeof window<"u"?m.useLayoutEffect:m.useEffect;function ze(f,{onChange:e,onReject:t,onUploadStart:i,onUploadProgress:r,onUploadSuccess:l,onUploadError:d,onUploadCancel:c,onUploadComplete:s}){m.useEffect(()=>{const o=f.current;if(!o)return;const p=w=>{const h=w.detail;Array.isArray(h==null?void 0:h.files)&&(e==null||e(h.files))},u=w=>{const h=w.detail;Array.isArray(h==null?void 0:h.rejected)&&(t==null||t(h.rejected))},b=w=>h=>{w==null||w(h.detail||{})},E=b(i),L=b(r),A=b(l),v=b(d),n=b(c),a=b(s);return o.addEventListener("change",p),o.addEventListener("reject",u),o.addEventListener("upload-start",E),o.addEventListener("upload-progress",L),o.addEventListener("upload-success",A),o.addEventListener("upload-error",v),o.addEventListener("upload-cancel",n),o.addEventListener("upload-complete",a),()=>{o.removeEventListener("change",p),o.removeEventListener("reject",u),o.removeEventListener("upload-start",E),o.removeEventListener("upload-progress",L),o.removeEventListener("upload-success",A),o.removeEventListener("upload-error",v),o.removeEventListener("upload-cancel",n),o.removeEventListener("upload-complete",a)}},[e,t,c,s,d,r,i,l,f])}function Ke(f,{name:e,label:t,description:i,accept:r,multiple:l,disabled:d,required:c,maxFiles:s,maxSize:o,buttonText:p,dropLabel:u,showPreviews:b,progress:E,uploadOnSelect:L,uploadButtonText:A,onUploadRequest:v}){bi(()=>{const n=f.current;if(!n)return;const a=(h,g)=>{const R=n.getAttribute(h);if(g==null){R!=null&&n.removeAttribute(h);return}R!==g&&n.setAttribute(h,g)},w=(h,g)=>{g?n.hasAttribute(h)||n.setAttribute(h,""):n.hasAttribute(h)&&n.removeAttribute(h)};a("name",e??null),a("label",t??null),a("description",i??null),a("accept",r??null),w("multiple",l),w("disabled",d),w("required",c),a("max-files",typeof s=="number"?String(s):null),a("max-size",typeof o=="number"?String(o):null),a("button-text",p??null),a("drop-label",u??null),w("show-previews",b),w("upload-on-select",L),a("upload-button-text",A??null),a("progress",E?JSON.stringify(E):null),n.uploadRequest=v??null},[r,p,i,d,u,t,s,o,l,e,f,c,b,E,L,A,v])}const Ze=y.default.forwardRef(function({onChange:e,onReject:t,children:i,...r},l){const d=m.useRef(null);return m.useImperativeHandle(l,()=>d.current),ze(d,{onChange:e,onReject:t,...r}),Ke(d,r),y.default.createElement("ui-file-upload",{ref:d,...r},i)}),Oe=y.default.forwardRef(function({onChange:e,onReject:t,children:i,...r},l){const d=m.useRef(null);return m.useImperativeHandle(l,()=>d.current),ze(d,{onChange:e,onReject:t,...r}),Ke(d,r),y.default.createElement("ui-dropzone",{ref:d,...r},i)});Ze.displayName="FileUpload";Oe.displayName="Dropzone";const vi=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Ai(f){const{children:e,label:t,description:i,error:r,htmlFor:l,required:d,invalid:c,orientation:s,variant:o,tone:p,density:u,shape:b,shell:E,labelWidth:L,headless:A,...v}=f,n=m.useRef(null);return vi(()=>{const a=n.current;a&&(t!=null&&t!==""?a.setAttribute("label",t):a.removeAttribute("label"),i!=null&&i!==""?a.setAttribute("description",i):a.removeAttribute("description"),r!=null&&r!==""?a.setAttribute("error",r):a.removeAttribute("error"),l?a.setAttribute("for",l):a.removeAttribute("for"),d?a.setAttribute("required",""):a.removeAttribute("required"),c?a.setAttribute("invalid",""):a.removeAttribute("invalid"),s&&s!=="vertical"?a.setAttribute("orientation",s):a.removeAttribute("orientation"),o&&o!=="default"?a.setAttribute("variant",o):a.removeAttribute("variant"),p&&p!=="default"?a.setAttribute("tone",p):a.removeAttribute("tone"),u&&u!=="default"?a.setAttribute("density",u):a.removeAttribute("density"),b&&b!=="default"?a.setAttribute("shape",b):a.removeAttribute("shape"),E&&E!=="none"?a.setAttribute("shell",E):a.removeAttribute("shell"),L?a.setAttribute("label-width",L):a.removeAttribute("label-width"),A?a.setAttribute("headless",""):a.removeAttribute("headless"))},[t,i,r,l,d,c,s,o,p,u,b,E,L,A]),y.default.createElement("ui-field",{ref:n,...v},e)}const Ne=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ve=y.default.forwardRef(function({children:e,htmlFor:t,for:i,tone:r,size:l,variant:d,hidden:c,...s},o){const p=m.useRef(null);return m.useImperativeHandle(o,()=>p.current),Ne(()=>{const u=p.current;if(!u)return;const b=t||i;b?u.setAttribute("for",b):u.removeAttribute("for"),r&&r!=="default"?u.setAttribute("tone",r):u.removeAttribute("tone"),l&&l!=="md"&&l!=="2"?u.setAttribute("size",l):u.removeAttribute("size"),d&&d!=="default"?u.setAttribute("variant",d):u.removeAttribute("variant"),c?u.setAttribute("hidden",""):u.removeAttribute("hidden")},[t,i,r,l,d,c]),y.default.createElement("ui-description",{ref:p,...s},e)});Ve.displayName="Description";const Ce=y.default.forwardRef(function({children:e,htmlFor:t,for:i,active:r,size:l,variant:d,hidden:c,...s},o){const p=m.useRef(null);return m.useImperativeHandle(o,()=>p.current),Ne(()=>{const u=p.current;if(!u)return;const b=t||i;b?u.setAttribute("for",b):u.removeAttribute("for"),r?u.setAttribute("active",""):u.removeAttribute("active"),l&&l!=="md"&&l!=="2"?u.setAttribute("size",l):u.removeAttribute("size"),d&&d!=="default"?u.setAttribute("variant",d):u.removeAttribute("variant"),c?u.setAttribute("hidden",""):u.removeAttribute("hidden")},[t,i,r,l,d,c]),y.default.createElement("ui-field-error",{ref:p,...s},e)});Ce.displayName="FieldError";const et=y.default.forwardRef(function({children:e,label:t,orientation:i,variant:r,density:l,hidden:d,...c},s){const o=m.useRef(null);return m.useImperativeHandle(s,()=>o.current),Ne(()=>{const p=o.current;p&&(t?p.setAttribute("label",t):p.removeAttribute("label"),i&&i!=="vertical"?p.setAttribute("orientation",i):p.removeAttribute("orientation"),r&&r!=="default"?p.setAttribute("variant",r):p.removeAttribute("variant"),l&&l!=="default"?p.setAttribute("density",l):p.removeAttribute("density"),d?p.setAttribute("hidden",""):p.removeAttribute("hidden"))},[t,i,r,l,d]),y.default.createElement("ui-control-group",{ref:o,...c},e)});et.displayName="ControlGroup";const tt=y.default.forwardRef(function({children:e,legend:t,description:i,error:r,required:l,invalid:d,orientation:c,variant:s,tone:o,density:p,shape:u,headless:b,...E},L){const A=m.useRef(null);return m.useImperativeHandle(L,()=>A.current),Ne(()=>{const v=A.current;v&&(t!=null&&t!==""?v.setAttribute("legend",t):v.removeAttribute("legend"),i!=null&&i!==""?v.setAttribute("description",i):v.removeAttribute("description"),r!=null&&r!==""?v.setAttribute("error",r):v.removeAttribute("error"),l?v.setAttribute("required",""):v.removeAttribute("required"),d?v.setAttribute("invalid",""):v.removeAttribute("invalid"),c&&c!=="vertical"?v.setAttribute("orientation",c):v.removeAttribute("orientation"),s&&s!=="default"?v.setAttribute("variant",s):v.removeAttribute("variant"),o&&o!=="default"?v.setAttribute("tone",o):v.removeAttribute("tone"),p&&p!=="default"?v.setAttribute("density",p):v.removeAttribute("density"),u&&u!=="default"?v.setAttribute("shape",u):v.removeAttribute("shape"),b?v.setAttribute("headless",""):v.removeAttribute("headless"))},[t,i,r,l,d,c,s,o,p,u,b]),y.default.createElement("ui-fieldset",{ref:A,...E},e)});tt.displayName="Fieldset";const pi=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Ei(f){const{text:e,tone:t,variant:i,size:r,radius:l,elevation:d,state:c,pill:s,dot:o,interactive:p,truncate:u,maxWidth:b,removable:E,autoRemove:L,iconOnly:A,disabled:v,onRemove:n,children:a,...w}=f,h=m.useRef(null);return m.useEffect(()=>{const g=h.current;if(!g)return;const R=N=>n==null?void 0:n(N.detail);return g.addEventListener("remove",R),()=>g.removeEventListener("remove",R)},[n]),pi(()=>{const g=h.current;g&&(e?g.setAttribute("text",e):g.removeAttribute("text"),t?g.setAttribute("tone",t):g.removeAttribute("tone"),i&&i!=="surface"?g.setAttribute("variant",i):g.removeAttribute("variant"),r&&r!=="md"&&r!=="2"?g.setAttribute("size",r):g.removeAttribute("size"),l!=null?g.setAttribute("radius",String(l)):g.removeAttribute("radius"),d&&d!=="none"?g.setAttribute("elevation",d):g.removeAttribute("elevation"),c&&c!=="idle"?g.setAttribute("state",c):g.removeAttribute("state"),s?g.setAttribute("pill",""):g.removeAttribute("pill"),o?g.setAttribute("dot",""):g.removeAttribute("dot"),p?g.setAttribute("interactive",""):g.removeAttribute("interactive"),u?g.setAttribute("truncate",""):g.removeAttribute("truncate"),b?g.setAttribute("max-width",b):g.removeAttribute("max-width"),E?g.setAttribute("removable",""):g.removeAttribute("removable"),L?g.setAttribute("auto-remove",""):g.removeAttribute("auto-remove"),A?g.setAttribute("icon-only",""):g.removeAttribute("icon-only"),v?g.setAttribute("disabled",""):g.removeAttribute("disabled"))},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v]),y.default.createElement("ui-badge",{ref:h,...w},a)}const yi=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Li(f){const{title:e,description:t,actionLabel:i,tone:r,compact:l,headless:d,onAction:c,children:s,...o}=f,p=m.useRef(null);return m.useEffect(()=>{const u=p.current;if(!u)return;const b=()=>c==null?void 0:c();return u.addEventListener("action",b),()=>u.removeEventListener("action",b)},[c]),yi(()=>{const u=p.current;u&&(e?u.setAttribute("title",e):u.removeAttribute("title"),t?u.setAttribute("description",t):u.removeAttribute("description"),i?u.setAttribute("action-label",i):u.removeAttribute("action-label"),r?u.setAttribute("tone",r):u.removeAttribute("tone"),l?u.setAttribute("compact",""):u.removeAttribute("compact"),d?u.setAttribute("headless",""):u.removeAttribute("headless"))},[e,t,i,r,l,d]),y.default.createElement("ui-empty-state",{ref:p,...o},s)}function gi(f){const{sortable:e,selectable:t,multiSelect:i,striped:r,hover:l,compact:d,bordered:c,stickyHeader:s,loading:o,headless:p,emptyText:u,onSortChange:b,onRowSelect:E,children:L,...A}=f,v=m.useRef(null);return m.useEffect(()=>{const n=v.current;if(!n)return;const a=h=>{const g=h.detail;g&&(b==null||b(g))},w=h=>{const g=h.detail;g&&(E==null||E(g))};return n.addEventListener("sort-change",a),n.addEventListener("row-select",w),()=>{n.removeEventListener("sort-change",a),n.removeEventListener("row-select",w)}},[b,E]),y.default.createElement("ui-table",{ref:v,...A,...e?{sortable:""}:{},...t?{selectable:""}:{},...i?{"multi-select":""}:{},...r?{striped:""}:{},...l?{hover:""}:{},...d?{compact:""}:{},...c?{bordered:""}:{},...s?{"sticky-header":""}:{},...o?{loading:""}:{},...p?{headless:""}:{},...u?{"empty-text":u}:{}},L)}function wi(f){const{sortable:e,selectable:t,multiSelect:i,shape:r,variant:l,elevation:d,striped:c,hover:s,compact:o,bordered:p,stickyHeader:u,stickyFooter:b,loading:E,state:L,stateText:A,headless:v,hideSummary:n,emptyText:a,page:w,pageSize:h,paginationId:g,filterQuery:R,filterColumn:N,filterRules:S,columnOrder:I,pinColumns:B,draggableColumns:T,resizableColumns:D,bulkActionsLabel:$,bulkClearLabel:M,virtualize:J,rowHeight:P,overscan:F,onSortChange:j,onRowSelect:x,onPageChange:H,onFilterChange:k,onColumnResize:q,onVirtualRangeChange:_,onColumnOrderChange:W,onBulkClear:U,children:G,...Q}=f,z=m.useRef(null);m.useEffect(()=>{const Z=z.current;if(!Z)return;const ee=re=>{const C=re.detail;C&&(j==null||j(C))},O=re=>{const C=re.detail;C&&(x==null||x(C))},V=re=>{const C=re.detail;C&&(H==null||H(C))},oe=re=>{const C=re.detail;C&&(k==null||k(C))},ce=re=>{const C=re.detail;C&&(q==null||q(C))},fe=re=>{const C=re.detail;C&&(_==null||_(C))},ae=re=>{const C=re.detail;C&&(W==null||W(C))},de=re=>{const C=re.detail;C&&(U==null||U(C))};return Z.addEventListener("sort-change",ee),Z.addEventListener("row-select",O),Z.addEventListener("page-change",V),Z.addEventListener("filter-change",oe),Z.addEventListener("column-resize",ce),Z.addEventListener("virtual-range-change",fe),Z.addEventListener("column-order-change",ae),Z.addEventListener("bulk-clear",de),()=>{Z.removeEventListener("sort-change",ee),Z.removeEventListener("row-select",O),Z.removeEventListener("page-change",V),Z.removeEventListener("filter-change",oe),Z.removeEventListener("column-resize",ce),Z.removeEventListener("virtual-range-change",fe),Z.removeEventListener("column-order-change",ae),Z.removeEventListener("bulk-clear",de)}},[j,x,H,k,q,_,W,U]);const X=S&&S.length?(()=>{try{return JSON.stringify(S)}catch{return}})():void 0,K=typeof B=="string"?B.trim()||void 0:B&&typeof B=="object"?(()=>{try{return JSON.stringify(B)}catch{return}})():void 0;return y.default.createElement("ui-data-table",{ref:z,...Q,...e?{sortable:""}:{},...t?{selectable:""}:{},...i?{"multi-select":""}:{},...r&&r!=="default"?{shape:r}:{},...l&&l!=="default"?{variant:l}:{},...d&&d!=="default"?{elevation:d}:{},...c?{striped:""}:{},...s?{hover:""}:{},...o?{compact:""}:{},...p?{bordered:""}:{},...u?{"sticky-header":""}:{},...b?{"sticky-footer":""}:{},...E?{loading:""}:{},...L&&L!=="idle"?{state:L}:{},...A?{"state-text":A}:{},...v?{headless:""}:{},...n?{"hide-summary":""}:{},...a?{"empty-text":a}:{},...typeof w=="number"&&Number.isFinite(w)?{page:String(w)}:{},...typeof h=="number"&&Number.isFinite(h)?{"page-size":String(h)}:{},...g?{"pagination-id":g}:{},...typeof R=="string"?{"filter-query":R}:{},...typeof N=="number"&&Number.isFinite(N)?{"filter-column":String(N)}:typeof N=="string"&&N.trim()?{"filter-column":N}:{},...X?{filters:X}:{},...I?{"column-order":I}:{},...K?{"pin-columns":K}:{},...T?{"draggable-columns":""}:{},...D?{"resizable-columns":""}:{},...$?{"bulk-actions-label":$}:{},...M?{"bulk-clear-label":M}:{},...J?{virtualize:""}:{},...typeof P=="number"&&Number.isFinite(P)?{"row-height":String(P)}:{},...typeof F=="number"&&Number.isFinite(F)?{overscan:String(F)}:{}},G)}const hi=typeof window<"u"?m.useLayoutEffect:m.useEffect,Se=y.default.forwardRef(function({data:e,series:t,values:i,labels:r,type:l,variant:d,title:c,subtitle:s,state:o,disabled:p,interactive:u,showLegend:b,showSummary:E,headless:L,valuePrefix:A,valueSuffix:v,ariaLabel:n,onPointSelect:a,children:w,...h},g){const R=m.useRef(null);return m.useImperativeHandle(g,()=>R.current),m.useEffect(()=>{ne.warnIfElementNotRegistered("ui-chart","Chart")},[]),m.useEffect(()=>{const N=R.current;if(!N||!a)return;const S=I=>{const B=I.detail;B&&a(B)};return N.addEventListener("ui-point-select",S),()=>{N.removeEventListener("ui-point-select",S)}},[a]),hi(()=>{const N=R.current;if(!N)return;const S=(B,T)=>{const D=N.getAttribute(B);if(T==null){D!=null&&N.removeAttribute(B);return}D!==T&&N.setAttribute(B,T)},I=(B,T)=>{T?S(B,""):S(B,null)};if(e&&e.length)try{S("data",JSON.stringify(e))}catch{S("data",null)}else S("data",null);if(t&&t.length)try{S("series",JSON.stringify(t))}catch{S("series",null)}else S("series",null);i&&i.length?S("values",i.join(",")):S("values",null),r&&r.length?S("labels",r.join(",")):S("labels",null),S("type",l&&l!=="line"?l:null),S("variant",d&&d!=="default"?d:null),S("title",c||null),S("subtitle",s||null),S("state",o&&o!=="idle"?o:null),S("interactive",u===!1?"false":null),S("show-legend",typeof b=="boolean"?b?"true":"false":null),S("show-summary",typeof E=="boolean"?E?"true":"false":null),S("value-prefix",A||null),S("value-suffix",v||null),S("aria-label",n||null),I("disabled",p),I("headless",L)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n]),y.default.createElement("ui-chart",{ref:R,...h},w)});Se.displayName="Chart";const rt=y.default.forwardRef(function({children:e,...t},i){return y.default.createElement("div",{ref:i,slot:"header",...t},e)});rt.displayName="ChartHeader";const it=y.default.forwardRef(function({children:e,...t},i){return y.default.createElement("h3",{ref:i,slot:"title",...t},e)});it.displayName="ChartTitle";const nt=y.default.forwardRef(function({children:e,...t},i){return y.default.createElement("p",{ref:i,slot:"subtitle",...t},e)});nt.displayName="ChartSubtitle";const Ni=Object.assign(Se,{Root:Se,Header:rt,Title:it,Subtitle:nt}),Ri=typeof window<"u"?m.useLayoutEffect:m.useEffect,ut=y.default.forwardRef(function({items:e,variant:t,headless:i,children:r,...l},d){const c=m.useRef(null);return m.useImperativeHandle(d,()=>c.current),Ri(()=>{const s=c.current;if(!s)return;const o=(u,b)=>{const E=s.getAttribute(u);if(b==null){E!=null&&s.removeAttribute(u);return}E!==b&&s.setAttribute(u,b)},p=(u,b)=>{b?o(u,""):o(u,null)};if(e&&e.length)try{o("items",JSON.stringify(e))}catch{o("items",null)}else o("items",null);o("variant",t&&t!=="default"?t:null),p("headless",i)},[e,t,i]),y.default.createElement("ui-timeline",{ref:c,...l},r)});ut.displayName="Timeline";const Si=typeof window<"u"?m.useLayoutEffect:m.useEffect,lt=y.default.forwardRef(function({year:e,month:t,value:i,events:r,variant:l,selection:d,min:c,max:s,disabled:o,readOnly:p,locale:u,translations:b,weekStart:E,outsideClick:L,eventsMax:A,eventsDisplay:v,maxSelections:n,size:a,bare:w,tone:h,state:g,headless:R,hideToday:N,showToday:S,ariaLabel:I,onSelect:B,onChange:T,onCalendarChange:D,onMonthChange:$,onValueChange:M,children:J,...P},F){const j=m.useRef(null);return m.useImperativeHandle(F,()=>j.current),m.useEffect(()=>{ne.warnIfElementNotRegistered("ui-calendar","Calendar")},[]),m.useEffect(()=>{const x=j.current;if(!x)return;const H=_=>{const W=_.detail;W&&(B==null||B(W),T==null||T(W),M==null||M(W.value))},k=_=>{const W=_.detail;W&&(D==null||D(W))},q=_=>{const W=_.detail;W&&($==null||$(W))};return x.addEventListener("ui-select",H),x.addEventListener("ui-change",k),x.addEventListener("ui-month-change",q),()=>{x.removeEventListener("ui-select",H),x.removeEventListener("ui-change",k),x.removeEventListener("ui-month-change",q)}},[B,T,D,$,M]),Si(()=>{const x=j.current;if(!x)return;const H=(q,_)=>{const W=x.getAttribute(q);if(_==null){W!=null&&x.removeAttribute(q);return}W!==_&&x.setAttribute(q,_)},k=(q,_)=>{_?x.hasAttribute(q)||x.setAttribute(q,""):x.hasAttribute(q)&&x.removeAttribute(q)};if(typeof e=="number"&&Number.isFinite(e)?H("year",String(e)):H("year",null),typeof t=="number"&&Number.isFinite(t)?H("month",String(t)):H("month",null),H("value",i||null),H("selection",d&&d!=="single"?d:null),H("min",c||null),H("max",s||null),H("locale",u||null),H("translations",ne.serializeTranslations(b)),H("week-start",typeof E=="number"?String(E):null),H("outside-click",L&&L!=="navigate"?L:null),H("events-max",typeof A=="number"&&Number.isFinite(A)?String(A):null),H("events-display",v&&v!=="dots"?v:null),H("max-selections",typeof n=="number"&&Number.isFinite(n)?String(n):null),H("size",a&&a!=="md"?a:null),k("bare",w),H("tone",h||null),H("state",g&&g!=="idle"?g:null),H("show-today",typeof S=="boolean"?S?"true":"false":null),H("aria-label",I||null),k("disabled",o),k("readonly",p),k("hide-today",N),k("headless",R),r&&r.length)try{H("events",JSON.stringify(r))}catch{H("events",null)}else H("events",null);H("variant",l&&l!=="default"?l:null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R,N,S,I]),y.default.createElement("ui-calendar",{ref:j,...P},J)});lt.displayName="Calendar";const Hi=typeof window<"u"?m.useLayoutEffect:m.useEffect,st=y.default.forwardRef(function({value:e,format:t,alpha:i,disabled:r,readOnly:l,size:d,variant:c,state:s,tone:o,mode:p,open:u,closeOnEscape:b,placeholder:E,presets:L,recent:A,maxRecent:v,persist:n,onInput:a,onChange:w,onValueChange:h,onOpen:g,onClose:R,onOpenDetail:N,onCloseDetail:S,onInvalid:I,children:B,...T},D){const $=m.useRef(null);m.useImperativeHandle(D,()=>$.current),m.useEffect(()=>{const J=$.current;if(!J)return;const P=k=>{const q=k.detail;q&&(a==null||a(q))},F=k=>{const q=k.detail;q&&(w==null||w(q),h==null||h(q.value))},j=k=>{const q=k.detail;q&&(I==null||I(q))},x=k=>{const q=k.detail;g==null||g(),q&&(N==null||N(q))},H=k=>{const q=k.detail;R==null||R(),q&&(S==null||S(q))};return J.addEventListener("input",P),J.addEventListener("change",F),J.addEventListener("open",x),J.addEventListener("close",H),J.addEventListener("invalid",j),()=>{J.removeEventListener("input",P),J.removeEventListener("change",F),J.removeEventListener("open",x),J.removeEventListener("close",H),J.removeEventListener("invalid",j)}},[a,w,h,g,R,N,S,I]),Hi(()=>{const J=$.current;if(!J)return;const P=(j,x)=>{const H=J.getAttribute(j);x==null?H!=null&&J.removeAttribute(j):H!==x&&J.setAttribute(j,x)},F=(j,x)=>{x?P(j,""):P(j,null)};if(P("value",e??null),P("format",t&&t!=="hex"?t:null),F("alpha",i),F("disabled",r),F("readonly",l),P("size",d&&d!=="md"?d:null),P("variant",c&&c!=="default"?c:null),P("state",s&&s!=="idle"?s:null),P("tone",o&&o!=="brand"?o:null),P("mode",p&&p!=="inline"?p:null),typeof u=="boolean"?F("open",u):P("open",null),P("close-on-escape",typeof b=="boolean"?b?"true":"false":null),P("placeholder",E??null),F("recent",A),P("max-recent",typeof v=="number"?String(v):null),F("persist",n),L&&L.length>0)try{P("presets",JSON.stringify(L))}catch{P("presets",null)}else P("presets",null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n]);const M={ref:$,...T};if(p&&p!=="inline"&&(M.mode=p),typeof u=="boolean"&&u&&(M.open=""),e!=null&&(M.value=e),t&&t!=="hex"&&(M.format=t),i&&(M.alpha=""),r&&(M.disabled=""),l&&(M.readonly=""),d&&d!=="md"&&(M.size=d),c&&c!=="default"&&(M.variant=c),s&&s!=="idle"&&(M.state=s),o&&o!=="brand"&&(M.tone=o),E&&(M.placeholder=E),typeof b=="boolean"&&(M["close-on-escape"]=b?"true":"false"),A&&(M.recent=""),typeof v=="number"&&(M["max-recent"]=String(v)),n&&(M.persist=""),L&&L.length>0)try{M.presets=JSON.stringify(L)}catch{}return y.default.createElement("ui-color-picker",M,B)});st.displayName="ColorPicker";const Ii=typeof window<"u"?m.useLayoutEffect:m.useEffect,ot=y.default.forwardRef(function({value:e,defaultValue:t,open:i,defaultOpen:r,min:l,max:d,locale:c,translations:s,weekStart:o,size:p,shape:u,bare:b,variant:E,state:L,placeholder:A,label:v,hint:n,error:a,clearable:w,allowInput:h,closeOnSelect:g,outsideClick:R,disabled:N,readOnly:S,required:I,name:B,mode:T,showFooter:D,events:$,eventsMax:M,eventsDisplay:J,format:P,displayFormat:F,onInput:j,onChange:x,onValueChange:H,onOpen:k,onClose:q,onInvalid:_,children:W,...U},G){const Q=m.useRef(null);return m.useImperativeHandle(G,()=>Q.current),m.useEffect(()=>{const z=Q.current;if(!z)return;const X=ee=>{const O=ee.detail;O&&(j==null||j(O))},K=ee=>{const O=ee.detail;O&&(x==null||x(O),H==null||H(O.value))},Z=ee=>{const O=ee.detail;O&&(_==null||_(O))};return z.addEventListener("input",X),z.addEventListener("change",K),z.addEventListener("open",k),z.addEventListener("close",q),z.addEventListener("invalid",Z),()=>{z.removeEventListener("input",X),z.removeEventListener("change",K),z.removeEventListener("open",k),z.removeEventListener("close",q),z.removeEventListener("invalid",Z)}},[j,x,H,k,q,_]),Ii(()=>{const z=Q.current;if(!z)return;const X=(Z,ee)=>{const O=z.getAttribute(Z);ee==null?O!=null&&z.removeAttribute(Z):O!==ee&&z.setAttribute(Z,ee)},K=(Z,ee)=>{ee?X(Z,""):X(Z,null)};if(X("value",e??null),X("default-value",t??null),typeof i=="boolean"?K("open",i):X("open",null),K("default-open",r),X("min",l??null),X("max",d??null),X("locale",c??null),X("translations",ne.serializeTranslations(s)),X("week-start",typeof o=="number"?String(o):null),X("size",p&&p!=="md"?p:null),X("shape",u&&u!=="default"?u:null),K("bare",b),X("variant",E&&E!=="default"?E:null),X("state",L&&L!=="idle"?L:null),X("placeholder",A??null),X("label",v??null),X("hint",n??null),X("error",a??null),K("clearable",w),K("allow-input",h),K("close-on-select",g),X("outside-click",R&&R!=="navigate"?R:null),K("disabled",N),K("readonly",S),K("required",I),X("name",B??null),X("mode",T&&T!=="popover"?T:null),X("show-footer",typeof D=="boolean"?String(D):null),X("events-max",typeof M=="number"?String(M):null),X("events-display",J&&J!=="dots"?J:null),X("format",P&&P!=="locale"?P:null),X("display-format",F??null),$!=null&&$.length)try{X("events",JSON.stringify($))}catch{X("events",null)}else X("events",null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R,N,S,I,B,T,D,$,M,J,P,F]),y.default.createElement("ui-date-picker",{ref:Q,...U},W)});ot.displayName="DatePicker";const Pi=typeof window<"u"?m.useLayoutEffect:m.useEffect,ct=y.default.forwardRef(function({value:e,defaultValue:t,open:i,defaultOpen:r,min:l,max:d,locale:c,translations:s,weekStart:o,size:p,shape:u,bare:b,variant:E,state:L,rangeVariant:A,label:v,hint:n,error:a,allowSameDay:w,allowPartial:h,closeOnSelect:g,clearable:R,disabled:N,readOnly:S,required:I,name:B,nameStart:T,nameEnd:D,mode:$,showFooter:M,onInput:J,onChange:P,onValueChange:F,onOpen:j,onClose:x,onInvalid:H,children:k,...q},_){const W=m.useRef(null);return m.useImperativeHandle(_,()=>W.current),m.useEffect(()=>{const U=W.current;if(!U)return;const G=X=>{const K=X.detail;K&&(J==null||J(K))},Q=X=>{const K=X.detail;K&&(P==null||P(K),F==null||F(K.value?JSON.stringify(K.value):null))},z=X=>{const K=X.detail;K&&(H==null||H(K))};return U.addEventListener("input",G),U.addEventListener("change",Q),U.addEventListener("open",j),U.addEventListener("close",x),U.addEventListener("invalid",z),()=>{U.removeEventListener("input",G),U.removeEventListener("change",Q),U.removeEventListener("open",j),U.removeEventListener("close",x),U.removeEventListener("invalid",z)}},[J,P,F,j,x,H]),Pi(()=>{const U=W.current;if(!U)return;const G=(z,X)=>{const K=U.getAttribute(z);X==null?K!=null&&U.removeAttribute(z):K!==X&&U.setAttribute(z,X)},Q=(z,X)=>{X?G(z,""):G(z,null)};G("value",e??null),G("default-value",t??null),typeof i=="boolean"?Q("open",i):G("open",null),Q("default-open",r),G("min",l??null),G("max",d??null),G("locale",c??null),G("translations",ne.serializeTranslations(s)),G("week-start",typeof o=="number"?String(o):null),G("size",p&&p!=="md"?p:null),G("shape",u&&u!=="default"?u:null),Q("bare",b),G("variant",E&&E!=="default"?E:null),G("state",L&&L!=="idle"?L:null),G("range-variant",A&&A!=="two-fields"?A:null),G("label",v??null),G("hint",n??null),G("error",a??null),Q("allow-same-day",w),Q("allow-partial",h),Q("close-on-select",g),Q("clearable",R),Q("disabled",N),Q("readonly",S),Q("required",I),G("name",B??null),G("name-start",T??null),G("name-end",D??null),G("mode",$&&$!=="popover"?$:null),G("show-footer",typeof M=="boolean"?String(M):null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R,N,S,I,B,T,D,$,M]),y.default.createElement("ui-date-range-picker",{ref:W,...q},k)});ct.displayName="DateRangePicker";const ft=typeof window<"u"?m.useLayoutEffect:m.useEffect;function at(f,e,t){m.useEffect(()=>{const i=f.current;if(!i)return;const r=l=>{const d=l.detail;d&&(e==null||e(d),t==null||t(d.value))};return i.addEventListener("change",r),()=>{i.removeEventListener("change",r)}},[e,t,f])}const dt=y.default.forwardRef(function({value:e,min:t,max:i,locale:r,label:l,description:d,error:c,name:s,required:o,disabled:p,readOnly:u,onChange:b,onValueChange:E,children:L,...A},v){const n=m.useRef(null);return m.useImperativeHandle(v,()=>n.current),at(n,b,E),ft(()=>{const a=n.current;if(!a)return;const w=(g,R)=>{const N=a.getAttribute(g);if(R==null){N!=null&&a.removeAttribute(g);return}N!==R&&a.setAttribute(g,R)},h=(g,R)=>{R?a.hasAttribute(g)||a.setAttribute(g,""):a.hasAttribute(g)&&a.removeAttribute(g)};w("value",e??null),w("min",t??null),w("max",i??null),w("locale",r??null),w("label",l??null),w("description",d??null),w("data-error",c??null),w("name",s??null),h("required",o),h("disabled",p),h("readonly",u)},[e,t,i,r,l,d,c,s,o,p,u]),y.default.createElement("ui-date-field",{ref:n,...A},L)}),mt=y.default.forwardRef(function({value:e,min:t,max:i,locale:r,label:l,description:d,error:c,name:s,required:o,disabled:p,readOnly:u,format:b,seconds:E,onChange:L,onValueChange:A,children:v,...n},a){const w=m.useRef(null);return m.useImperativeHandle(a,()=>w.current),at(w,L,A),ft(()=>{const h=w.current;if(!h)return;const g=(N,S)=>{const I=h.getAttribute(N);if(S==null){I!=null&&h.removeAttribute(N);return}I!==S&&h.setAttribute(N,S)},R=(N,S)=>{S?h.hasAttribute(N)||h.setAttribute(N,""):h.hasAttribute(N)&&h.removeAttribute(N)};g("value",e??null),g("min",t??null),g("max",i??null),g("locale",r??null),g("label",l??null),g("description",d??null),g("data-error",c??null),g("name",s??null),g("format",b&&b!=="24h"?b:null),R("seconds",E),R("required",o),R("disabled",p),R("readonly",u)},[e,t,i,r,l,d,c,s,o,p,u,b,E]),y.default.createElement("ui-time-field",{ref:w,...n},v)});dt.displayName="DateField";mt.displayName="TimeField";const ki=typeof window<"u"?m.useLayoutEffect:m.useEffect,bt=y.default.forwardRef(function({value:e,min:t,max:i,step:r,precision:l,locale:d,format:c,placeholder:s,label:o,description:p,error:u,name:b,required:E,disabled:L,readOnly:A,allowWheel:v,showSteppers:n,clampOnBlur:a,autoComplete:w,inputMode:h,invalid:g,prefix:R,suffix:N,incrementTrigger:S,decrementTrigger:I,children:B,onValueChange:T,onInvalidValue:D,...$},M){const J=m.useRef(null);return m.useImperativeHandle(M,()=>J.current),m.useEffect(()=>{const P=J.current;if(!P)return;const F=x=>{const H=x.detail;H&&(T==null||T(H))},j=x=>{const H=x.detail;H!=null&&H.reason&&(D==null||D(H.reason))};return P.addEventListener("value-change",F),P.addEventListener("invalid",j),()=>{P.removeEventListener("value-change",F),P.removeEventListener("invalid",j)}},[D,T]),ki(()=>{const P=J.current;if(!P)return;const F=(x,H)=>{const k=P.getAttribute(x);if(H==null){k!=null&&P.removeAttribute(x);return}k!==H&&P.setAttribute(x,H)},j=(x,H)=>{H?P.hasAttribute(x)||P.setAttribute(x,""):P.hasAttribute(x)&&P.removeAttribute(x)};F("value",e!=null&&e!==""?String(e):null),F("min",t!=null?String(t):null),F("max",i!=null?String(i):null),F("step",r!=null?String(r):null),F("precision",l!=null?String(l):null),F("locale",d??null),F("format",c&&c!=="grouped"?c:null),F("placeholder",s??null),F("label",o??null),F("description",p??null),F("data-error",u??null),F("name",b??null),F("autocomplete",w??null),F("inputmode",h??null),j("required",E),j("disabled",L),j("readonly",A),j("allow-wheel",v),j("show-steppers",n),j("clamp-on-blur",a),j("invalid",g)},[w,v,a,p,L,u,c,h,g,o,d,i,t,b,s,l,A,E,n,r,e]),y.default.createElement("ui-number-field",{ref:J,...$},R!=null?y.default.createElement("span",{slot:"prefix"},R):null,N!=null?y.default.createElement("span",{slot:"suffix"},N):null,I!=null?y.default.createElement("span",{slot:"decrement-trigger"},I):null,S!=null?y.default.createElement("span",{slot:"increment-trigger"},S):null,B)});bt.displayName="NumberField";const Ti=typeof window<"u"?m.useLayoutEffect:m.useEffect,vt=y.default.forwardRef(function({options:e,value:t,placeholder:i,label:r,description:l,error:d,name:c,required:s,disabled:o,readOnly:p,loading:u,loadingText:b,clearable:E,maxSelections:L,renderLimit:A,selectionIndicator:v,optionBorder:n,variant:a,tone:w,density:h,shape:g,radius:R,optionRadius:N,elevation:S,size:I,onChange:B,onValueChange:T,children:D,...$},M){const J=m.useRef(null);return m.useImperativeHandle(M,()=>J.current),m.useEffect(()=>{const P=J.current;if(!P)return;const F=j=>{const x=j.detail;x&&(B==null||B(x),T==null||T(x.value))};return P.addEventListener("change",F),()=>{P.removeEventListener("change",F)}},[B,T]),Ti(()=>{const P=J.current;if(!P)return;const F=(x,H)=>{const k=P.getAttribute(x);if(H==null){k!=null&&P.removeAttribute(x);return}k!==H&&P.setAttribute(x,H)},j=(x,H)=>{H?P.hasAttribute(x)||P.setAttribute(x,""):P.hasAttribute(x)&&P.removeAttribute(x)};F("options",JSON.stringify(e||[])),F("value",t!=null&&t.length?JSON.stringify(t):null),F("placeholder",i??null),F("label",r??null),F("description",l??null),F("data-error",d??null),F("name",c??null),F("max-selections",typeof L=="number"?String(L):null),F("render-limit",typeof A=="number"?String(A):null),F("loading-text",b??null),F("selection-indicator",v??null),j("option-border",n),F("variant",a&&a!=="default"?a:null),F("tone",w&&w!=="default"?w:null),F("density",h&&h!=="default"?h:null),F("shape",g&&g!=="default"?g:null),F("radius",R!=null?String(R):null),F("option-radius",N!=null?String(N):null),F("elevation",S&&S!=="low"?S:null),F("size",I&&I!=="md"&&I!=="2"?I:null),j("required",s),j("disabled",o),j("readonly",p),j("loading",u),j("clearable",E)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R,N,S,I]),y.default.createElement("ui-multi-select",{ref:J,...$},D)});vt.displayName="MultiSelect";const Di=typeof window<"u"?m.useLayoutEffect:m.useEffect,At=y.default.forwardRef(function({children:e,label:t,menuLabel:i,menuHeading:r,menuDescription:l,variant:d,density:c,menuDensity:s,menuShape:o,disabled:p,items:u,onPrimaryAction:b,onSelect:E,...L},A){const v=m.useRef(null);m.useImperativeHandle(A,()=>v.current),m.useEffect(()=>{const a=v.current;if(!a)return;const w=()=>b==null?void 0:b(),h=g=>E==null?void 0:E(g.detail);return a.addEventListener("primary-action",w),a.addEventListener("select",h),()=>{a.removeEventListener("primary-action",w),a.removeEventListener("select",h)}},[b,E]),Di(()=>{const a=v.current;a&&(t?a.setAttribute("label",t):a.removeAttribute("label"),i?a.setAttribute("menu-label",i):a.removeAttribute("menu-label"),r?a.setAttribute("menu-heading",r):a.removeAttribute("menu-heading"),l?a.setAttribute("menu-description",l):a.removeAttribute("menu-description"),d&&d!=="primary"?a.setAttribute("variant",d):a.removeAttribute("variant"),c&&c!=="default"?a.setAttribute("density",c):a.removeAttribute("density"),s&&s!=="default"?a.setAttribute("menu-density",s):a.removeAttribute("menu-density"),o&&o!=="default"?a.setAttribute("menu-shape",o):a.removeAttribute("menu-shape"),p?a.setAttribute("disabled",""):a.removeAttribute("disabled"))},[t,i,r,l,d,c,s,o,p]);const n=(u==null?void 0:u.map(a=>y.default.createElement("button",{key:a.value,slot:"menuitem",type:"button","data-value":a.value,"data-label":a.label,"data-tone":a.tone||"default",disabled:a.disabled},y.default.createElement("span",{"data-menu-text":"true"},y.default.createElement("span",{"data-menu-label":"true"},a.label),a.description?y.default.createElement("span",{"data-menu-description":"true"},a.description):null),a.shortcut?y.default.createElement("span",{"data-menu-shortcut":"true"},a.shortcut):null)))||null;return y.default.createElement("ui-split-button",{ref:v,...L},n,e)});At.displayName="SplitButton";const Fi=typeof window<"u"?m.useLayoutEffect:m.useEffect,pt=y.default.forwardRef(function({options:e,value:t,label:i,description:r,error:l,name:d,disabled:c,onChange:s,onValueChange:o,children:p,...u},b){const E=m.useRef(null);return m.useImperativeHandle(b,()=>E.current),m.useEffect(()=>{const L=E.current;if(!L)return;const A=v=>{const n=v.detail;s==null||s(n),o==null||o(n.value)};return L.addEventListener("change",A),()=>L.removeEventListener("change",A)},[s,o]),Fi(()=>{const L=E.current;if(!L)return;const A=(v,n)=>{n==null?L.removeAttribute(v):L.setAttribute(v,n)};A("options",JSON.stringify(e||[])),A("value",t!=null&&t.length?JSON.stringify(t):null),A("label",i??null),A("description",r??null),A("error",l??null),A("name",d??null),c?L.setAttribute("disabled",""):L.removeAttribute("disabled")},[e,t,i,r,l,d,c]),y.default.createElement("ui-transfer-list",{ref:E,...u},p)});pt.displayName="TransferList";const $i=typeof window<"u"?m.useLayoutEffect:m.useEffect,Et=y.default.forwardRef(function({value:e,placeholder:t,editing:i,multiline:r,disabled:l,readOnly:d,name:c,onChange:s,onValueChange:o,onSave:p,onCancel:u,children:b,...E},L){const A=m.useRef(null);return m.useImperativeHandle(L,()=>A.current),m.useEffect(()=>{const v=A.current;if(!v)return;const n=h=>{const g=h.detail;s==null||s(g),o==null||o(g.value)},a=h=>p==null?void 0:p(h.detail),w=h=>u==null?void 0:u(h.detail.value);return v.addEventListener("change",n),v.addEventListener("save",a),v.addEventListener("cancel",w),()=>{v.removeEventListener("change",n),v.removeEventListener("save",a),v.removeEventListener("cancel",w)}},[s,o,p,u]),$i(()=>{const v=A.current;if(!v)return;const n=(a,w)=>{w==null?v.removeAttribute(a):v.setAttribute(a,w)};n("value",e??null),n("placeholder",t??null),n("name",c??null),i?v.setAttribute("editing",""):v.removeAttribute("editing"),r?v.setAttribute("multiline",""):v.removeAttribute("multiline"),l?v.setAttribute("disabled",""):v.removeAttribute("disabled"),d?v.setAttribute("readonly",""):v.removeAttribute("readonly")},[e,t,c,i,r,l,d]),y.default.createElement("ui-inline-edit",{ref:A,...E},b)});Et.displayName="InlineEdit";const xi=typeof window<"u"?m.useLayoutEffect:m.useEffect,yt=y.default.forwardRef(function({value:e,defaultValue:t,open:i,defaultOpen:r,format:l,step:d,seconds:c,stepSeconds:s,min:o,max:p,disabled:u,readOnly:b,required:E,name:L,clearable:A,allowInput:v,mode:n,label:a,hint:w,error:h,locale:g,translations:R,variant:N,onInput:S,onChange:I,onValueChange:B,onOpen:T,onClose:D,onInvalid:$,children:M,...J},P){const F=m.useRef(null);return m.useImperativeHandle(P,()=>F.current),m.useEffect(()=>{const j=F.current;if(!j)return;const x=q=>{const _=q.detail;_&&(S==null||S(_))},H=q=>{const _=q.detail;_&&(I==null||I(_),B==null||B(_.value))},k=q=>{const _=q.detail;_&&($==null||$(_))};return j.addEventListener("input",x),j.addEventListener("change",H),j.addEventListener("open",T),j.addEventListener("close",D),j.addEventListener("invalid",k),()=>{j.removeEventListener("input",x),j.removeEventListener("change",H),j.removeEventListener("open",T),j.removeEventListener("close",D),j.removeEventListener("invalid",k)}},[S,I,B,T,D,$]),xi(()=>{const j=F.current;if(!j)return;const x=(k,q)=>{const _=j.getAttribute(k);q==null?_!=null&&j.removeAttribute(k):_!==q&&j.setAttribute(k,q)},H=(k,q)=>{q?x(k,""):x(k,null)};x("value",e??null),x("default-value",t??null),typeof i=="boolean"?H("open",i):x("open",null),H("default-open",r),x("format",l&&l!=="24h"?l:null),x("step",typeof d=="number"?String(d):null),H("seconds",c),x("step-seconds",typeof s=="number"?String(s):null),x("min",o??null),x("max",p??null),H("disabled",u),H("readonly",b),H("required",E),x("name",L??null),H("clearable",A),H("allow-input",v),x("mode",n&&n!=="popover"?n:null),x("label",a??null),x("hint",w??null),x("error",h??null),x("locale",g??null),x("translations",ne.serializeTranslations(R)),x("variant",N&&N!=="default"?N:null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R,N]),y.default.createElement("ui-time-picker",{ref:F,...J},M)});yt.displayName="TimePicker";const Mi=typeof window<"u"?m.useLayoutEffect:m.useEffect,Lt=y.default.forwardRef(function({value:e,defaultValue:t,open:i,defaultOpen:r,min:l,max:d,locale:c,translations:s,weekStart:o,size:p,bare:u,variant:b,step:E,format:L,disabled:A,readOnly:v,required:n,name:a,closeOnSelect:w,clearable:h,allowInput:g,mode:R,showFooter:N,label:S,hint:I,error:B,onInput:T,onChange:D,onValueChange:$,onOpen:M,onClose:J,onInvalid:P,children:F,...j},x){const H=m.useRef(null);return m.useImperativeHandle(x,()=>H.current),m.useEffect(()=>{const k=H.current;if(!k)return;const q=U=>{const G=U.detail;G&&(T==null||T(G))},_=U=>{const G=U.detail;G&&(D==null||D(G),$==null||$(G.value))},W=U=>{const G=U.detail;G&&(P==null||P(G))};return k.addEventListener("input",q),k.addEventListener("change",_),k.addEventListener("open",M),k.addEventListener("close",J),k.addEventListener("invalid",W),()=>{k.removeEventListener("input",q),k.removeEventListener("change",_),k.removeEventListener("open",M),k.removeEventListener("close",J),k.removeEventListener("invalid",W)}},[T,D,$,M,J,P]),Mi(()=>{const k=H.current;if(!k)return;const q=(W,U)=>{const G=k.getAttribute(W);U==null?G!=null&&k.removeAttribute(W):G!==U&&k.setAttribute(W,U)},_=(W,U)=>{U?q(W,""):q(W,null)};q("value",e??null),q("default-value",t??null),typeof i=="boolean"?_("open",i):q("open",null),_("default-open",r),q("min",l??null),q("max",d??null),q("locale",c??null),q("translations",ne.serializeTranslations(s)),q("week-start",typeof o=="number"?String(o):null),q("size",p&&p!=="md"?p:null),_("bare",u),q("variant",b&&b!=="default"?b:null),q("step",typeof E=="number"?String(E):null),q("format",L&&L!=="24h"?L:null),_("disabled",A),_("readonly",v),_("required",n),q("name",a??null),_("close-on-select",w),_("clearable",h),_("allow-input",g),q("mode",R&&R!=="popover"?R:null),q("show-footer",typeof N=="boolean"?String(N):null),q("label",S??null),q("hint",I??null),q("error",B??null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R,N,S,I,B]),y.default.createElement("ui-date-time-picker",{ref:H,...j},F)});Lt.displayName="DateTimePicker";const qi=typeof window<"u"?m.useLayoutEffect:m.useEffect,gt=y.default.forwardRef(function({value:e,defaultValue:t,open:i,defaultOpen:r,min:l,max:d,locale:c,translations:s,weekStart:o,size:p,bare:u,variant:b,step:E,autoNormalize:L,allowPartial:A,disabled:v,readOnly:n,required:a,name:w,closeOnSelect:h,clearable:g,mode:R,showFooter:N,label:S,hint:I,error:B,onInput:T,onChange:D,onValueChange:$,onOpen:M,onClose:J,onInvalid:P,children:F,...j},x){const H=m.useRef(null);return m.useImperativeHandle(x,()=>H.current),m.useEffect(()=>{const k=H.current;if(!k)return;const q=U=>{const G=U.detail;G&&(T==null||T(G))},_=U=>{const G=U.detail;G&&(D==null||D(G),$==null||$(G.value?JSON.stringify(G.value):null))},W=U=>{const G=U.detail;G&&(P==null||P(G))};return k.addEventListener("input",q),k.addEventListener("change",_),k.addEventListener("open",M),k.addEventListener("close",J),k.addEventListener("invalid",W),()=>{k.removeEventListener("input",q),k.removeEventListener("change",_),k.removeEventListener("open",M),k.removeEventListener("close",J),k.removeEventListener("invalid",W)}},[T,D,$,M,J,P]),qi(()=>{const k=H.current;if(!k)return;const q=(W,U)=>{const G=k.getAttribute(W);U==null?G!=null&&k.removeAttribute(W):G!==U&&k.setAttribute(W,U)},_=(W,U)=>{U?q(W,""):q(W,null)};q("value",e??null),q("default-value",t??null),typeof i=="boolean"?_("open",i):q("open",null),_("default-open",r),q("min",l??null),q("max",d??null),q("locale",c??null),q("translations",ne.serializeTranslations(s)),q("week-start",typeof o=="number"?String(o):null),q("size",p&&p!=="md"?p:null),_("bare",u),q("variant",b&&b!=="default"?b:null),q("step",typeof E=="number"?String(E):null),_("auto-normalize",L),_("allow-partial",A),_("disabled",v),_("readonly",n),_("required",a),q("name",w??null),_("close-on-select",h),_("clearable",g),q("mode",R&&R!=="popover"?R:null),q("show-footer",typeof N=="boolean"?String(N):null),q("label",S??null),q("hint",I??null),q("error",B??null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R,N,S,I,B]),y.default.createElement("ui-date-range-time-picker",{ref:H,...j},F)});gt.displayName="DateRangeTimePicker";const Bi=typeof window<"u"?m.useLayoutEffect:m.useEffect,wt=y.default.forwardRef(function({tasks:e,variant:t,headless:i,children:r,...l},d){const c=m.useRef(null);return m.useImperativeHandle(d,()=>c.current),Bi(()=>{const s=c.current;if(!s)return;const o=(u,b)=>{const E=s.getAttribute(u);if(b==null){E!=null&&s.removeAttribute(u);return}E!==b&&s.setAttribute(u,b)},p=(u,b)=>{b?o(u,""):o(u,null)};if(e&&e.length)try{o("tasks",JSON.stringify(e))}catch{o("tasks",null)}else o("tasks",null);o("variant",t&&t!=="default"?t:null),p("headless",i)},[e,t,i]),y.default.createElement("ui-gantt",{ref:c,...l},r)});wt.displayName="Gantt";const ji=typeof window<"u"?m.useLayoutEffect:m.useEffect,ht=y.default.forwardRef(function({steps:e,value:t,orientation:i,variant:r,size:l,clickable:d,linear:c,headless:s,onChange:o,onSelect:p,children:u,...b},E){const L=m.useRef(null);return m.useImperativeHandle(E,()=>L.current),m.useEffect(()=>{const A=L.current;if(!A)return;const v=a=>{const w=a.detail;w&&(o==null||o(w))},n=a=>{const w=a.detail;w&&(p==null||p(w))};return A.addEventListener("change",v),A.addEventListener("select",n),()=>{A.removeEventListener("change",v),A.removeEventListener("select",n)}},[o,p]),ji(()=>{const A=L.current;if(!A)return;const v=(a,w)=>{const h=A.getAttribute(a);if(w==null){h!=null&&A.removeAttribute(a);return}h!==w&&A.setAttribute(a,w)},n=(a,w)=>{w?v(a,""):v(a,null)};if(e&&e.length)try{v("steps",JSON.stringify(e))}catch{v("steps",null)}else v("steps",null);v("value",t||null),v("orientation",i&&i!=="horizontal"?i:null),v("variant",r&&r!=="default"?r:null),v("size",l&&l!=="md"?l:null),n("clickable",d),n("linear",c),n("headless",s)},[e,t,i,r,l,d,c,s]),y.default.createElement("ui-stepper",{ref:L,...b},u)});ht.displayName="Stepper";const Gi=typeof window<"u"?m.useLayoutEffect:m.useEffect,Re=y.default.createContext(null);function He(f){const{selected:e,orientation:t,activation:i,variant:r,size:l,radius:d,elevation:c,tone:s,loop:o,collapsible:p,headless:u,onChange:b,onSelect:E,children:L,...A}=f,v=m.useRef(null);return m.useEffect(()=>{const n=v.current;if(!n)return;const a=w=>{const h=w.detail;h&&(b==null||b(h),E==null||E(h.selected))};return n.addEventListener("change",a),()=>n.removeEventListener("change",a)},[b,E]),Gi(()=>{const n=v.current;n&&(typeof e=="number"?n.setAttribute("selected",String(e)):n.removeAttribute("selected"),t?n.setAttribute("orientation",t):n.removeAttribute("orientation"),i?n.setAttribute("activation",i):n.removeAttribute("activation"),r&&r!=="surface"?n.setAttribute("variant",r):n.removeAttribute("variant"),l&&l!=="md"&&l!=="2"?n.setAttribute("size",l):n.removeAttribute("size"),d==null||d===""||d==="default"?n.removeAttribute("radius"):n.setAttribute("radius",String(d)),c&&c!=="low"?n.setAttribute("elevation",c):n.removeAttribute("elevation"),s&&s!=="default"?n.setAttribute("tone",s):n.removeAttribute("tone"),typeof o=="boolean"?n.setAttribute("loop",String(o)):n.removeAttribute("loop"),p?n.setAttribute("collapsible",""):n.removeAttribute("collapsible"),u?n.setAttribute("headless",""):n.removeAttribute("headless"))},[e,t,i,r,l,d,c,s,o,p,u]),y.default.createElement("ui-navigation-menu",{ref:v,...A},L)}function Nt({children:f}){return y.default.createElement(y.default.Fragment,null,f)}function Rt({children:f}){const e=m.useRef(`ui-nav-item-${Math.random().toString(36).slice(2,10)}`),[t,i]=m.useState(!1);return y.default.createElement(Re.Provider,{value:{itemKey:e.current,hasContent:t,setHasContent:i}},f)}function St({children:f,...e}){const t=y.default.useContext(Re),i=m.useRef(null),[r,l]=m.useState(!1);return m.useEffect(()=>{const d=i.current;if(!d)return;const c=()=>{l(d.getAttribute("aria-expanded")==="true")};c();const s=new MutationObserver(c);return s.observe(d,{attributes:!0,attributeFilter:["aria-expanded"]}),()=>s.disconnect()},[]),y.default.createElement("button",{type:"button",ref:i,slot:"item","data-nav-key":(t==null?void 0:t.itemKey)??void 0,...e},f,t!=null&&t.hasContent?y.default.createElement("span",{"aria-hidden":"true",style:{marginLeft:6,display:"inline-flex",alignItems:"center",lineHeight:1}},y.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",transform:r?"rotate(180deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.2, 0.9, 0.24, 1)"}},y.default.createElement("path",{d:"M3 4.75L6 7.25L9 4.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):null)}function Ht({children:f,...e}){const t=y.default.useContext(Re);return y.default.createElement("a",{slot:"item","data-nav-key":(t==null?void 0:t.itemKey)??void 0,...e},f)}function It({children:f,...e}){const t=y.default.useContext(Re);return m.useEffect(()=>{if(t)return t.setHasContent(!0),()=>t.setHasContent(!1)},[t]),y.default.createElement("section",{slot:"panel","data-nav-panel-for":(t==null?void 0:t.itemKey)??void 0,...e},f)}function Pt(){return null}function kt(){return null}const Ji=Object.assign(He,{Root:He,List:Nt,Item:Rt,Trigger:St,Link:Ht,Content:It,Indicator:Pt,Viewport:kt}),_i=typeof window<"u"?y.default.useLayoutEffect:y.default.useEffect,Tt=y.default.forwardRef(function(e,t){const{open:i,title:r,description:l,closable:d,dismissible:c,closeOnOverlay:s,closeOnEsc:o,lockWhileLoading:p,roleType:u,size:b,state:E,initialFocus:L,submitText:A,cancelText:v,loadingText:n,dialogId:a,config:w,headless:h,onOpen:g,onClose:R,onRequestClose:N,onDialogOpen:S,onDialogSubmit:I,onDialogCancel:B,onDialogDismiss:T,onDialogClose:D,children:$,...M}=e,J=m.useRef(null);return y.default.useImperativeHandle(t,()=>J.current),m.useEffect(()=>{const P=J.current;if(!P)return;const F=()=>g==null?void 0:g(),j=()=>R==null?void 0:R(),x=U=>{const G=U.detail;G&&(N==null||N(G))},H=U=>S==null?void 0:S(U.detail),k=U=>I==null?void 0:I(U.detail),q=U=>B==null?void 0:B(U.detail),_=U=>T==null?void 0:T(U.detail),W=U=>D==null?void 0:D(U.detail);return P.addEventListener("open",F),P.addEventListener("close",j),P.addEventListener("request-close",x),P.addEventListener("ui-open",H),P.addEventListener("ui-submit",k),P.addEventListener("ui-cancel",q),P.addEventListener("ui-dismiss",_),P.addEventListener("ui-close",W),()=>{P.removeEventListener("open",F),P.removeEventListener("close",j),P.removeEventListener("request-close",x),P.removeEventListener("ui-open",H),P.removeEventListener("ui-submit",k),P.removeEventListener("ui-cancel",q),P.removeEventListener("ui-dismiss",_),P.removeEventListener("ui-close",W)}},[g,R,N,S,I,B,T,D]),_i(()=>{const P=J.current;if(!P)return;typeof i=="boolean"&&(i?P.setAttribute("open",""):P.removeAttribute("open")),r?P.setAttribute("title",r):P.removeAttribute("title"),l?P.setAttribute("description",l):P.removeAttribute("description");const F=typeof c=="boolean"?c:d;typeof F=="boolean"?(P.setAttribute("dismissible",String(F)),P.setAttribute("closable",String(F))):(P.removeAttribute("dismissible"),P.removeAttribute("closable")),typeof s=="boolean"?(P.setAttribute("close-on-overlay",String(s)),P.setAttribute("close-on-backdrop",String(s))):(P.removeAttribute("close-on-overlay"),P.removeAttribute("close-on-backdrop")),typeof o=="boolean"?P.setAttribute("close-on-esc",String(o)):P.removeAttribute("close-on-esc"),typeof p=="boolean"?P.setAttribute("lock-while-loading",String(p)):P.removeAttribute("lock-while-loading"),u?P.setAttribute("role",u):P.removeAttribute("role"),b&&b!=="md"&&b!=="2"?P.setAttribute("size",b):P.removeAttribute("size"),E&&E!=="idle"?P.setAttribute("state",E):P.removeAttribute("state"),L?P.setAttribute("initial-focus",L):P.removeAttribute("initial-focus"),A?P.setAttribute("submit-text",A):P.removeAttribute("submit-text"),v?P.setAttribute("cancel-text",v):P.removeAttribute("cancel-text"),n?P.setAttribute("loading-text",n):P.removeAttribute("loading-text"),a&&(P.dialogId=a),w&&(P.config=w),h?P.setAttribute("headless",""):P.removeAttribute("headless")},[i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h]),y.default.createElement("ui-dialog",{ref:J,...M},$)});Tt.displayName="Dialog";const Dt=m.createContext(null),Ee="data-ui-dialog-react-host-refcount";function Ui({children:f,hostId:e="ui-dialog-react-host"}){const t=m.useRef(null);t.current||(t.current=se.createDialogManager()),m.useEffect(()=>{var c;if(typeof document>"u")return;let r=document.getElementById(e);const l=!r;r||(r=document.createElement("div"),r.id=e,r.setAttribute("data-ui-dialog-react-host","true"),document.body.appendChild(r));const d=Number(r.getAttribute(Ee)||"0");return r.setAttribute(Ee,String(Math.max(0,d)+1)),(c=t.current)==null||c.setContainer(r),()=>{var p,u;if((p=t.current)==null||p.destroy("unmount"),t.current=null,!r||!r.isConnected)return;const s=Number(r.getAttribute(Ee)||"1"),o=Math.max(0,s-1);o===0?(r.removeAttribute(Ee),l&&((u=r.parentElement)==null||u.removeChild(r))):r.setAttribute(Ee,String(o))}},[e]);const i=m.useMemo(()=>({open:(r={})=>{var l;return((l=t.current)==null?void 0:l.open(r))??Promise.resolve({id:"",action:"dismiss"})},confirm:(r={})=>{var l;return((l=t.current)==null?void 0:l.confirm(r))??Promise.resolve({id:"",action:"dismiss"})}}),[]);return y.default.createElement(Dt.Provider,{value:i},f)}function Qi(){const f=m.useContext(Dt);if(!f)throw new Error("useDialog must be used within <DialogProvider>.");return f}const Wi=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ft=y.default.forwardRef(function({children:e,name:t,iconVariant:i,size:r,color:l,secondaryColor:d,variant:c,tone:s,shape:o,spin:p,pulse:u,badge:b,label:E,decorative:L,strokeWidth:A,absoluteStrokeWidth:v,strokeLinecap:n,strokeLinejoin:a,rotate:w,flip:h,rtl:g,...R},N){const S=m.useRef(null);return m.useImperativeHandle(N,()=>S.current),Wi(()=>{const I=S.current;I&&(t?I.setAttribute("name",t):I.removeAttribute("name"),i?I.setAttribute("icon-variant",i):I.removeAttribute("icon-variant"),r!=null&&r!==""?I.setAttribute("size",String(r)):I.removeAttribute("size"),l?I.setAttribute("color",l):I.removeAttribute("color"),d?I.setAttribute("secondary-color",d):I.removeAttribute("secondary-color"),c&&c!=="default"?I.setAttribute("variant",c):I.removeAttribute("variant"),s&&s!=="default"?I.setAttribute("tone",s):I.removeAttribute("tone"),o&&o!=="default"?I.setAttribute("shape",o):I.removeAttribute("shape"),p?I.setAttribute("spin",""):I.removeAttribute("spin"),u?I.setAttribute("pulse",""):I.removeAttribute("pulse"),b?I.setAttribute("badge",""):I.removeAttribute("badge"),E?I.setAttribute("label",E):I.removeAttribute("label"),L?I.setAttribute("decorative",""):I.removeAttribute("decorative"),A!=null&&A!==""?I.setAttribute("stroke-width",String(A)):I.removeAttribute("stroke-width"),v?I.setAttribute("absolute-stroke-width",""):I.removeAttribute("absolute-stroke-width"),n?I.setAttribute("stroke-linecap",n):I.removeAttribute("stroke-linecap"),a?I.setAttribute("stroke-linejoin",a):I.removeAttribute("stroke-linejoin"),w!=null&&Number.isFinite(w)?I.setAttribute("rotate",String(w)):I.removeAttribute("rotate"),h?I.setAttribute("flip",h):I.removeAttribute("flip"),g?I.setAttribute("rtl",""):I.removeAttribute("rtl"))},[t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g]),y.default.createElement("ui-icon",{ref:S,...R},e)});Ft.displayName="Icon";function be(f){if(!f)return{};const e={...f};return e.type!=null&&e.level==null&&(e.level=e.type),delete e.type,e}function Xi(f,e={}){return te.toastAdvanced.show({message:f,level:"info",...be(e)})}const $e={show(f,e={}){return te.toastAdvanced.show({message:f,...be(e)})},success(f,e={}){return te.toastAdvanced.success(f,be(e))},error(f,e={}){return te.toastAdvanced.error(f,be(e))},warning(f,e={}){return te.toastAdvanced.warning(f,be(e))},info(f,e={}){return te.toastAdvanced.info(f,be(e))},loading(f,e={}){return te.toastAdvanced.loading(f,be(e))},dismiss(f){return te.toastAdvanced.dismiss(String(f))},clear(){return te.toastAdvanced.clear()},configure(f){return te.toastAdvanced.configure(f)}},$t=m.createContext(null);function Yi({config:f}={}){return m.useEffect(()=>{f&&te.toastAdvanced.configure(f)},[f]),null}function zi({children:f,config:e}){m.useEffect(()=>{e&&te.toastAdvanced.configure(e)},[e]);const t=m.useMemo(()=>$e,[]);return y.default.createElement($t.Provider,{value:t},f)}function Ki(){const f=m.useContext($t);return f||$e}const Zi=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Oi(f){if(!f)return{};const e={...f};return e.type!=null&&e.level==null&&(e.level=e.type),delete e.type,e}const xt=y.default.forwardRef(function({children:e,position:t,maxVisible:i,theme:r,config:l,headless:d,onShow:c,onHide:s,...o},p){const u=m.useRef(c),b=m.useRef(s);return m.useEffect(()=>{u.current=c},[c]),m.useEffect(()=>{b.current=s},[s]),m.useImperativeHandle(p,()=>({show(E,L){let A="";const v=Oi(L),n=v.onShow,a=v.onHide;return A=te.toastAdvanced.show({message:E,...v,onShow:()=>{var h;n==null||n(),(h=u.current)==null||h.call(u,{id:A,message:E})},onHide:()=>{var h;a==null||a(),(h=b.current)==null||h.call(b,{id:A})}}).id,A},hide(E){te.toastAdvanced.dismiss(String(E))},clear(){te.toastAdvanced.clear()},configure(E){te.toastAdvanced.configure(E)}}),[]),Zi(()=>{const E={...l||{}};t&&(E.position=t),r&&(E.theme=r),typeof i=="number"&&Number.isFinite(i)&&(E.maxVisible=Math.max(1,Math.trunc(i))),Object.keys(E).length>0&&te.toastAdvanced.configure(E)},[t,i,r,l]),e==null&&Object.keys(o).length===0?null:y.default.createElement("div",{...o},e)});xt.displayName="Toast";const Vi=typeof window<"u"?y.useLayoutEffect:y.useEffect,Mt=y.forwardRef(function({children:e,orientation:t,variant:i,tone:r,state:l,elevation:d,size:c,radius:s,density:o,wrap:p,loop:u,disabled:b,activeIndex:E,ariaLabel:L,onNavigate:A,...v},n){const a=y.useRef(null);return y.useImperativeHandle(n,()=>a.current),y.useEffect(()=>{ne.warnIfElementNotRegistered("ui-block-controls","BlockControls")},[]),y.useEffect(()=>{const w=a.current;if(!w||!A)return;const h=g=>A(g.detail);return w.addEventListener("ui-navigate",h),()=>w.removeEventListener("ui-navigate",h)},[A]),Vi(()=>{const w=a.current;w&&(t?w.setAttribute("orientation",t):w.removeAttribute("orientation"),i&&i!=="surface"&&i!=="floating"?w.setAttribute("variant",i):w.removeAttribute("variant"),r&&r!=="neutral"?w.setAttribute("tone",r):w.removeAttribute("tone"),l&&l!=="idle"?w.setAttribute("state",l):w.removeAttribute("state"),d&&d!=="low"&&d!=="md"?w.setAttribute("elevation",d):w.removeAttribute("elevation"),c&&c!=="md"&&c!=="2"?w.setAttribute("size",c):w.removeAttribute("size"),s!=null?w.setAttribute("radius",String(s)):w.removeAttribute("radius"),o?w.setAttribute("density",o):w.removeAttribute("density"),p==null?w.removeAttribute("wrap"):p?w.setAttribute("wrap",""):w.removeAttribute("wrap"),u==null?(w.removeAttribute("loop"),w.removeAttribute("no-loop")):u?(w.setAttribute("loop",""),w.removeAttribute("no-loop")):(w.removeAttribute("loop"),w.setAttribute("no-loop","")),b==null?w.removeAttribute("disabled"):b?w.setAttribute("disabled",""):w.removeAttribute("disabled"),typeof E=="number"&&Number.isFinite(E)?w.setAttribute("active-index",String(E)):w.removeAttribute("active-index"),L?w.setAttribute("aria-label",L):w.removeAttribute("aria-label"))},[t,i,r,l,d,c,s,o,p,u,b,E,L]),y.createElement("ui-block-controls",{ref:a,...v},e)});Mt.displayName="BlockControls";function Ci(f){const{items:e,anchorId:t,anchorEl:i,anchorPoint:r,open:l,disabled:d,state:c,stateText:s,variant:o,size:p,radius:u,density:b,shape:E,elevation:L,tone:A,closeOnSelect:v,closeOnEscape:n,typeahead:a,children:w,onOpenDetail:h,onCloseDetail:g,onOpen:R,onClose:N,onChange:S,onSelect:I,...B}=f,T=m.useRef(null),D=m.useRef(""),[$,M]=m.useState(null),J=H=>{queueMicrotask(()=>{var k;M(((k=H.getPortalContentHost)==null?void 0:k.call(H))||null)}),requestAnimationFrame(()=>{var k;M(((k=H.getPortalContentHost)==null?void 0:k.call(H))||null)}),window.setTimeout(()=>{var k;M(((k=H.getPortalContentHost)==null?void 0:k.call(H))||null)},0)};m.useEffect(()=>{const H=T.current;if(!H)return;const k=U=>{var Q;const G=U.detail;M(((Q=H.getPortalContentHost)==null?void 0:Q.call(H))||null),R==null||R(),G&&(h==null||h(G))},q=U=>{const G=U.detail;M(null),N==null||N(),G&&(g==null||g(G))},_=U=>{var Q;const G=(Q=U.detail)==null?void 0:Q.open;typeof G=="boolean"&&(S==null||S(G))},W=U=>{const G=U.detail;I==null||I(G)};return H.addEventListener("open",k),H.addEventListener("close",q),H.addEventListener("change",_),H.addEventListener("select",W),()=>{H.removeEventListener("open",k),H.removeEventListener("close",q),H.removeEventListener("change",_),H.removeEventListener("select",W)}},[R,N,h,g,S,I]),m.useEffect(()=>{var k,q,_,W,U,G;const H=T.current;if(!(!H||l==null)){if(!l){D.current="closed",M(null),H.close?H.close():H.open=!1;return}if(r&&H.openAt){const Q=`point:${r.x}:${r.y}`;(D.current!==Q||!H.open)&&(H.openAt(r),D.current=Q),M(((k=H.getPortalContentHost)==null?void 0:k.call(H))||null),J(H);return}if(i){const Q="anchor:element";if(H.openForAnchor){(D.current!==Q||!H.open)&&(H.openForAnchor(i),D.current=Q),M(((q=H.getPortalContentHost)==null?void 0:q.call(H))||null),J(H);return}if(H.openFor){(D.current!==Q||!H.open)&&(H.openFor(i),D.current=Q),M(((_=H.getPortalContentHost)==null?void 0:_.call(H))||null),J(H);return}}if(t){const Q=`anchor:${t}`;if(H.openForAnchorId){(D.current!==Q||!H.open)&&(H.openForAnchorId(t),D.current=Q),M(((W=H.getPortalContentHost)==null?void 0:W.call(H))||null),J(H);return}if(H.showForAnchorId){(D.current!==Q||!H.open)&&(H.showForAnchorId(t),D.current=Q),M(((U=H.getPortalContentHost)==null?void 0:U.call(H))||null),J(H);return}}H.open||(H.open=!0),D.current="open",M(((G=H.getPortalContentHost)==null?void 0:G.call(H))||null),J(H)}},[l,t,i,r]),m.useEffect(()=>{var k;const H=T.current;!$||!H||!l||(k=H.refreshLayout)==null||k.call(H)},[w,e,l,$]);const P=H=>H?H.map((k,q)=>{if(k.separator)return y.default.createElement("div",{key:q,className:"separator",role:"separator"});let _=null;k.icon&&(_=y.default.createElement("span",{className:"icon"},k.icon));let W=null;return k.submenu&&(W=y.default.createElement("div",{className:"submenu"},P(k.submenu))),y.default.createElement("div",{key:q,className:"menuitem",role:"menuitem",tabIndex:k.disabled?-1:0,"aria-disabled":k.disabled?"true":void 0,"data-value":k.value,"data-tone":k.tone&&k.tone!=="default"?k.tone:void 0,onClick:k.disabled?void 0:k.onClick},_,y.default.createElement("span",{className:"label"},y.default.createElement("span",{className:"text"},k.label),k.description?y.default.createElement("span",{className:"caption"},k.description):null),k.shortcut?y.default.createElement("span",{className:"shortcut"},k.shortcut):null,k.submenu&&y.default.createElement("span",{className:"submenu-arrow"},"▶"),W)}):null,F=y.default.Children.count(w)>0,j=!!l&&!r&&!t,x=F?w:P(e);return y.default.createElement(y.default.Fragment,null,y.default.createElement("ui-context-menu",{ref:T,...B,...j?{open:""}:{},...o&&o!=="default"&&o!=="surface"?{variant:o}:{},...p&&p!=="md"&&p!=="2"?{size:p}:{},...u!=null&&u!==""&&u!=="md"?{radius:String(u)}:{},...!p&&b&&b!=="default"?{density:b}:{},...!u&&E&&E!=="default"?{shape:E}:{},...L&&L!=="default"?{elevation:L}:{},...A&&A!=="default"&&A!=="brand"?{tone:A}:{},...d?{disabled:""}:{},...c&&c!=="idle"?{state:c}:{},...s?{"state-text":s}:{},...v==null?{}:{"close-on-select":v?"true":"false"},...n==null?{}:{"close-on-escape":n?"true":"false"},...a==null?{}:{typeahead:a?"true":"false"}}),$?qr.createPortal(y.default.createElement("div",{slot:"menu"},x),$):null)}const en=typeof window<"u"?y.useLayoutEffect:y.useEffect,qt=y.forwardRef(function({children:e,open:t,position:i,size:r,title:l,description:d,headless:c,dismissible:s,onOpen:o,onClose:p,onOpenChange:u,...b},E){const L=y.useRef(null);return y.useImperativeHandle(E,()=>L.current),y.useEffect(()=>{ne.warnIfElementNotRegistered("ui-plugin-panel","PluginPanel")},[]),y.useEffect(()=>{const A=L.current;if(!A)return;const v=()=>o==null?void 0:o(),n=()=>p==null?void 0:p(),a=w=>{const h=w.detail;h&&(u==null||u(h))};return A.addEventListener("open",v),A.addEventListener("close",n),A.addEventListener("open-change",a),()=>{A.removeEventListener("open",v),A.removeEventListener("close",n),A.removeEventListener("open-change",a)}},[p,o,u]),en(()=>{const A=L.current;if(!A)return;const v=(n,a,w=!0)=>{if(!w)return;const h=A.getAttribute(n);if(a==null){h!=null&&A.removeAttribute(n);return}h!==a&&A.setAttribute(n,a)};typeof t=="boolean"&&v("open",t?"":null),v("position",i??null,i!==void 0),v("size",r&&r!=="md"?r:null,r!==void 0),v("title",l??null,l!==void 0),v("description",d??null,d!==void 0),typeof c=="boolean"&&v("headless",c?"":null),typeof s=="boolean"&&v("dismissible",s?"":null)},[t,i,r,l,d,c,s]),y.createElement("ui-plugin-panel",{ref:L,...b},e)});qt.displayName="PluginPanel";function tn(){const f=m.useRef(null),e=m.useCallback(async()=>{const c=f.current;return c?await c.submit():!1},[]),t=m.useCallback(async()=>{const c=f.current;return c?await c.validate():{valid:!0,errors:{}}},[]),i=m.useCallback(()=>{var s;const c=f.current;return c?(s=c.getValues)==null?void 0:s.call(c):{}},[]),r=m.useCallback(c=>{var o;const s=f.current;return(o=s==null?void 0:s.reset)==null?void 0:o.call(s,c)},[]),l=m.useCallback(()=>{var s;const c=f.current;return c?typeof c.isDirty=="function"?!!c.isDirty():((s=c.hasAttribute)==null?void 0:s.call(c,"dirty"))||!1:!1},[]),d=m.useCallback(c=>{var o;const s=f.current;return(o=s==null?void 0:s.markClean)==null?void 0:o.call(s,c)},[]);return{ref:f,submit:e,validate:t,getValues:i,reset:r,isDirty:l,markClean:d}}function Me(f,e){if(f){if(typeof f=="function"){f(e);return}f.current=e}}function rn(f){const{placement:e="bottom",offset:t=8,open:i,onOpen:r,onClose:l,role:d="menu"}=f||{},c=m.useRef(null),s=m.useRef(null),o=m.useRef(null),p=m.useRef(`floating-${Math.random().toString(36).slice(2,9)}`),[u,b]=m.useState({top:0,left:0,placement:e}),E=typeof i<"u",[L,A]=m.useState(!!i),v=E?!!i:L,n=m.useCallback(()=>{const P=c.current,F=s.current;if(!P||!F)return;const j=se.computePosition(P,F,{placement:e,offset:t});b({top:Math.round(j.top),left:Math.round(j.left),placement:j.placement,arrow:j.x||j.y?{x:j.x,y:j.y}:void 0})},[e,t]),a=m.useCallback(P=>{E||A(P),P?r==null||r():l==null||l()},[E,r,l]),w=m.useCallback(()=>a(!v),[v,a]),h=m.useCallback(()=>a(!0),[a]),g=m.useCallback(()=>a(!1),[a]);m.useEffect(()=>{if(!v)return;const P=c.current,F=s.current;if(!P||!F)return;n();const j=()=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>n())},x=()=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>n())};window.addEventListener("scroll",j,!0),window.addEventListener("resize",x);let H=null,k=null;try{typeof ResizeObserver<"u"&&(H=new ResizeObserver(x),k=new ResizeObserver(x),H.observe(P),k.observe(F))}catch{H=k=null}return()=>{window.removeEventListener("scroll",j,!0),window.removeEventListener("resize",x),H==null||H.disconnect(),k==null||k.disconnect(),o.current&&cancelAnimationFrame(o.current),o.current=null}},[v,n]);const R=m.useCallback(P=>{c.current=P},[]),N=m.useCallback(P=>{s.current=P},[]),S=()=>s.current?Array.from(s.current.querySelectorAll('[role="menuitem"], .item, [data-menu-item]')).filter(Boolean):[],I=P=>{const F=S();if(!F.length)return;const j=Math.max(0,Math.min(F.length-1,P));try{F[j].focus()}catch{}},B=()=>I(0),T=()=>{const P=S();P.length&&I(P.length-1)},D=()=>{const P=S(),F=P.findIndex(j=>j===document.activeElement);I(F<0?0:(F+1)%P.length)},$=()=>{const P=S(),F=P.findIndex(j=>j===document.activeElement);I(F<=0?P.length-1:F-1)};return{referenceRef:R,floatingRef:N,coords:u,update:n,open:v,setOpen:a,toggle:w,openPopup:h,closePopup:g,getReferenceProps:(P={})=>{const{onClick:F,onKeyDown:j,ref:x,...H}=P;return{...H,ref:k=>{R(k),Me(x,k)},"aria-haspopup":d,"aria-controls":p.current,"aria-expanded":v?"true":"false",onClick:k=>{F==null||F(k),!k.defaultPrevented&&w()},onKeyDown:k=>{j==null||j(k),!k.defaultPrevented&&k.key==="ArrowDown"&&(k.preventDefault(),h(),setTimeout(()=>B(),0))}}},getFloatingProps:(P={})=>{const{onKeyDown:F,style:j,ref:x,...H}=P;return{...H,id:p.current,ref:k=>{N(k),Me(x,k)},role:d,tabIndex:-1,style:{...j||{},position:"absolute",top:`${u.top}px`,left:`${u.left}px`},hidden:!v,onKeyDown:k=>{F==null||F(k),!k.defaultPrevented&&(k.key==="Escape"?(k.preventDefault(),g()):k.key==="ArrowDown"?(k.preventDefault(),D()):k.key==="ArrowUp"?(k.preventDefault(),$()):k.key==="Home"?(k.preventDefault(),B()):k.key==="End"&&(k.preventDefault(),T()))}}},focusFirstItem:B,focusLastItem:T,focusNext:D,focusPrev:$}}function Y(f){if(f!=null){if(typeof f=="object")try{return JSON.stringify(f)}catch{return}return String(f)}}function nn(f){const{children:e,className:t,variant:i,tone:r,state:l,elevation:d,radius:c,interactive:s,disabled:o,headless:p,p:u,px:b,py:E,pt:L,pr:A,pb:v,pl:n,m:a,mx:w,my:h,mt:g,mr:R,mb:N,ml:S,width:I,w:B,minWidth:T,minW:D,maxWidth:$,maxW:M,height:J,h:P,minHeight:F,minH:j,maxHeight:x,maxH:H,display:k,position:q,inset:_,top:W,right:U,bottom:G,left:Q,justify:z,alignSelf:X,alignContent:K,gap:Z,rowGap:ee,columnGap:O,flexBasis:V,flexGrow:oe,flexShrink:ce,gridArea:fe,gridColumn:ae,gridColumnStart:de,gridColumnEnd:re,gridRow:C,gridRowStart:vr,gridRowEnd:Ar,align:pr,bg:Er,color:yr,opacity:Lr,overflow:gr,overflowX:wr,overflowY:hr,zIndex:Nr,...Rr}=f,Sr={className:t,...Rr,p:Y(u),px:Y(b),py:Y(E),pt:Y(L),pr:Y(A),pb:Y(v),pl:Y(n),m:Y(a),mx:Y(w),my:Y(h),mt:Y(g),mr:Y(R),mb:Y(N),ml:Y(S),width:Y(I),w:Y(B),minwidth:Y(T??D),maxwidth:Y($??M),height:Y(J),h:Y(P),minheight:Y(F??j),maxheight:Y(x??H),display:Y(k),position:Y(q),inset:Y(_),top:Y(W),right:Y(U),bottom:Y(G),left:Y(Q),justify:Y(z),flexbasis:Y(V),flexgrow:Y(oe),flexshrink:Y(ce),alignself:Y(X),aligncontent:Y(K),gap:Y(Z),rowgap:Y(ee),columngap:Y(O),gridarea:Y(fe),gridcolumn:Y(ae),gridcolumnstart:Y(de),gridcolumnend:Y(re),gridrow:Y(C),gridrowstart:Y(vr),gridrowend:Y(Ar),align:Y(pr),bg:Y(Er),color:Y(yr),opacity:Y(Lr),overflow:Y(gr),overflowx:Y(wr),overflowy:Y(hr),zindex:Y(Nr),variant:i&&i!=="default"?i:void 0,tone:r&&r!=="default"?r:void 0,state:l&&l!=="idle"?l:void 0,elevation:d&&d!=="default"?d:void 0,radius:c&&c!=="default"?c:void 0,interactive:s?"":void 0,disabled:o?"":void 0,headless:p?"":void 0};return y.default.createElement("ui-box",Sr,e)}function le(f){if(f!=null){if(typeof f=="object")try{return JSON.stringify(f)}catch{return}return String(f)}}function un(f){const{children:e,className:t,direction:i,align:r,justify:l,wrap:d,gap:c,rowGap:s,columnGap:o,display:p,headless:u,...b}=f,E={className:t,...b,direction:le(i),align:le(r),justify:le(l),wrap:le(d),gap:le(c),rowgap:le(s),columngap:le(o),display:le(p),headless:u?"":void 0};return y.default.createElement("ui-flex",E,e)}function ie(f){if(f!=null){if(typeof f=="object")try{return JSON.stringify(f)}catch{return}return String(f)}}function ln(f){const{children:e,className:t,columns:i,rows:r,gap:l,rowGap:d,columnGap:c,autoFlow:s,autoRows:o,autoColumns:p,align:u,justify:b,place:E,alignContent:L,justifyContent:A,placeContent:v,display:n,headless:a,...w}=f,h={className:t,...w,columns:ie(i),rows:ie(r),gap:ie(l),rowgap:ie(d),columngap:ie(c),autoflow:ie(s),autorows:ie(o),autocolumns:ie(p),align:ie(u),justify:ie(b),place:ie(E),aligncontent:ie(L),justifycontent:ie(A),placecontent:ie(v),display:ie(n),headless:a?"":void 0};return y.default.createElement("ui-grid",h,e)}const sn=typeof window<"u"?m.useLayoutEffect:m.useEffect,Bt=y.default.forwardRef(function({size:e="medium",variant:t="default",tone:i="neutral",radius:r="md",density:l="comfortable",inset:d,children:c,...s},o){const p=m.useRef(null);return y.default.useImperativeHandle(o,()=>p.current),sn(()=>{const u=p.current;if(!u)return;const b=(L,A)=>{const v=u.getAttribute(L);if(A==null){v!=null&&u.removeAttribute(L);return}v!==A&&u.setAttribute(L,A)},E=(L,A)=>{A?u.hasAttribute(L)||u.setAttribute(L,""):u.hasAttribute(L)&&u.removeAttribute(L)};b("size",e!=="medium"?e:null),b("variant",t!=="default"?t:null),b("tone",i!=="neutral"?i:null),b("radius",r!=="md"?r:null),b("density",l!=="comfortable"?l:null),E("inset",d)},[e,t,i,r,l,d]),y.default.createElement("ui-section",{ref:p,...s},c)});Bt.displayName="Section";function on(f){const{children:e,size:t="md",...i}=f;return y.default.createElement("ui-container",{size:t,...i},e)}const xe=typeof window<"u"?m.useLayoutEffect:m.useEffect,jt=y.default.forwardRef(function({orientation:e,storageKey:t,autoSave:i,children:r,onLayoutChange:l,onResizeStart:d,onResize:c,onResizeEnd:s,...o},p){const u=m.useRef(null);return m.useImperativeHandle(p,()=>u.current),m.useEffect(()=>{const b=u.current;if(!b)return;const E=n=>l==null?void 0:l(n.detail),L=n=>d==null?void 0:d(n.detail),A=n=>c==null?void 0:c(n.detail),v=n=>s==null?void 0:s(n.detail);return b.addEventListener("layout-change",E),b.addEventListener("resize-start",L),b.addEventListener("resize",A),b.addEventListener("resize-end",v),()=>{b.removeEventListener("layout-change",E),b.removeEventListener("resize-start",L),b.removeEventListener("resize",A),b.removeEventListener("resize-end",v)}},[l,c,s,d]),xe(()=>{const b=u.current;b&&(e&&e!=="horizontal"?b.setAttribute("orientation",e):b.removeAttribute("orientation"),t?b.setAttribute("storage-key",t):b.removeAttribute("storage-key"),i?b.setAttribute("auto-save",""):b.removeAttribute("auto-save"))},[e,t,i]),y.default.createElement("ui-panel-group",{ref:u,...o},r)}),Gt=y.default.forwardRef(function({size:e,minSize:t,maxSize:i,collapsedSize:r,collapsed:l,children:d,...c},s){const o=m.useRef(null);return m.useImperativeHandle(s,()=>o.current),xe(()=>{const p=o.current;if(!p)return;const u=(b,E)=>{const L=p.getAttribute(b);if(E==null){L!=null&&p.removeAttribute(b);return}L!==E&&p.setAttribute(b,E)};l?p.setAttribute("collapsed",""):p.removeAttribute("collapsed"),u("size",e!=null?String(e):null),u("min-size",t!=null?String(t):null),u("max-size",i!=null?String(i):null),u("collapsed-size",r!=null?String(r):null)},[l,r,i,t,e]),y.default.createElement("ui-panel",{ref:o,...c},d)}),Jt=y.default.forwardRef(function({disabled:e,orientation:t,ariaLabel:i,children:r,...l},d){const c=m.useRef(null);return m.useImperativeHandle(d,()=>c.current),xe(()=>{const s=c.current;s&&(e?s.setAttribute("disabled",""):s.removeAttribute("disabled"),t?s.setAttribute("orientation",t):s.removeAttribute("orientation"),i?s.setAttribute("aria-label",i):s.removeAttribute("aria-label"))},[i,e,t]),y.default.createElement("ui-splitter",{ref:c,...l},r)});jt.displayName="PanelGroup";Gt.displayName="Panel";Jt.displayName="Splitter";const _t=m.createContext(null),cn=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Ae(f,e){var t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R,N,S,I,B,T,D,$,M,J,P,F,j,x,H,k,q,_,W,U,G,Q,z,X,K,Z,ee,O,V,oe,ce,fe,ae,de;return e?{...f,...e,colors:{...f.colors,...e.colors||{}},palette:{...f.palette||{},...e.palette||{},gray:{...((t=f.palette)==null?void 0:t.gray)||{},...((i=e.palette)==null?void 0:i.gray)||{}},grayAlpha:{...((r=f.palette)==null?void 0:r.grayAlpha)||{},...((l=e.palette)==null?void 0:l.grayAlpha)||{}},blackAlpha:{...((d=f.palette)==null?void 0:d.blackAlpha)||{},...((c=e.palette)==null?void 0:c.blackAlpha)||{}},whiteAlpha:{...((s=f.palette)==null?void 0:s.whiteAlpha)||{},...((o=e.palette)==null?void 0:o.whiteAlpha)||{}},accent:{...((p=f.palette)==null?void 0:p.accent)||{},...((u=e.palette)==null?void 0:u.accent)||{}},accentAlpha:{...((b=f.palette)==null?void 0:b.accentAlpha)||{},...((E=e.palette)==null?void 0:E.accentAlpha)||{}}},surfaces:{...f.surfaces||{},...e.surfaces||{}},shadows:{...f.shadows||{},...e.shadows||{}},spacing:{...f.spacing||{},...e.spacing||{}},spaceScale:{...f.spaceScale||{},...e.spaceScale||{}},radiusScale:{...f.radiusScale||{},...e.radiusScale||{}},typography:{...f.typography||{},...e.typography||{},size:{...((L=f.typography)==null?void 0:L.size)||{},...((A=e.typography)==null?void 0:A.size)||{}},fontScale:{...((v=f.typography)==null?void 0:v.fontScale)||{},...((n=e.typography)==null?void 0:n.fontScale)||{}},lineHeight:{...((a=f.typography)==null?void 0:a.lineHeight)||{},...((w=e.typography)==null?void 0:w.lineHeight)||{}},letterSpacing:{...((h=f.typography)==null?void 0:h.letterSpacing)||{},...((g=e.typography)==null?void 0:g.letterSpacing)||{}}},motion:{...f.motion||{},...e.motion||{}},effects:{...f.effects||{},...e.effects||{}},components:{...f.components||{},...e.components||{},button:{...((R=f.components)==null?void 0:R.button)||{},...((N=e.components)==null?void 0:N.button)||{}},badge:{...((S=f.components)==null?void 0:S.badge)||{},...((I=e.components)==null?void 0:I.badge)||{}},sidebar:{...((B=f.components)==null?void 0:B.sidebar)||{},...((T=e.components)==null?void 0:T.sidebar)||{}},blockControls:{...((D=f.components)==null?void 0:D.blockControls)||{},...(($=e.components)==null?void 0:$.blockControls)||{}},box:{...((M=f.components)==null?void 0:M.box)||{},...((J=e.components)==null?void 0:J.box)||{}},breadcrumb:{...((P=f.components)==null?void 0:P.breadcrumb)||{},...((F=e.components)==null?void 0:F.breadcrumb)||{}},card:{...((j=f.components)==null?void 0:j.card)||{},...((x=e.components)==null?void 0:x.card)||{}},contextMenu:{...((H=f.components)==null?void 0:H.contextMenu)||{},...((k=e.components)==null?void 0:k.contextMenu)||{}},alert:{...((q=f.components)==null?void 0:q.alert)||{},...((_=e.components)==null?void 0:_.alert)||{}},alertDialog:{...((W=f.components)==null?void 0:W.alertDialog)||{},...((U=e.components)==null?void 0:U.alertDialog)||{}},appHeader:{...((G=f.components)==null?void 0:G.appHeader)||{},...((Q=e.components)==null?void 0:Q.appHeader)||{}},aspectRatio:{...((z=f.components)==null?void 0:z.aspectRatio)||{},...((X=e.components)==null?void 0:X.aspectRatio)||{}},avatar:{...((K=f.components)==null?void 0:K.avatar)||{},...((Z=e.components)==null?void 0:Z.avatar)||{}},menu:{...((ee=f.components)==null?void 0:ee.menu)||{},...((O=e.components)==null?void 0:O.menu)||{}},multiSelect:{...((V=f.components)==null?void 0:V.multiSelect)||{},...((oe=e.components)==null?void 0:oe.multiSelect)||{}},panel:{...((ce=f.components)==null?void 0:ce.panel)||{},...((fe=e.components)==null?void 0:fe.panel)||{}},input:{...((ae=f.components)==null?void 0:ae.input)||{},...((de=e.components)==null?void 0:de.input)||{}}},zIndex:{...f.zIndex||{},...e.zIndex||{}},breakpoints:{...f.breakpoints||{},...e.breakpoints||{}}}:f}function fn(){try{const f=getComputedStyle(document.documentElement),e=f.getPropertyValue("--ui-color-primary").trim();return e?{colors:{primary:e||void 0,text:f.getPropertyValue("--ui-color-text").trim()||void 0,background:f.getPropertyValue("--ui-color-background").trim()||void 0}}:{}}catch{return{}}}function an(f,e){const t=typeof e=="function"?e(f):e;return Ae(f,t)}function dn({tokens:f,children:e,storageKey:t="editora.theme.tokens"}){const i=m.useRef(null),r=()=>{if(typeof window<"u"&&t)try{const s=localStorage.getItem(t);if(s){const o=JSON.parse(s);return Ae(se.defaultTokens,o)}}catch{}if(f&&Object.keys(f).length)return Ae(se.defaultTokens,f);if(typeof window<"u"){const s=fn();if(s.colors&&s.colors.primary)return Ae(se.defaultTokens,s)}return Ae(se.defaultTokens,f||{})},[l,d]=m.useState(()=>r());m.useEffect(()=>{!f||!Object.keys(f).length||d(s=>Ae(s,f))},[f]),cn(()=>{const s=i.current;s&&se.applyTheme(l,s)},[l]),m.useEffect(()=>{if(typeof window>"u"||!t)return;const s=JSON.stringify(l);let o;const p=()=>{try{localStorage.setItem(t,s)}catch{}};return window.requestIdleCallback?o=window.requestIdleCallback(p,{timeout:1e3}):o=window.setTimeout(p,250),()=>{try{window.cancelIdleCallback&&o?window.cancelIdleCallback(o):o&&clearTimeout(o)}catch{}}},[l,t]);const c=m.useMemo(()=>({tokens:l,setTokens:s=>{d(o=>an(o,s))}}),[l]);return y.default.createElement(_t.Provider,{value:c},y.default.createElement("div",{ref:i,style:{display:"contents"}},e))}function mn(){const f=m.useContext(_t);if(!f)throw new Error("useTheme must be used within ThemeProvider");return f}const bn=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ut=y.default.forwardRef(function({children:e,itemSelector:t,directItemSelector:i,itemRole:r,container:l,items:d,onCollectionChange:c,...s},o){const p=m.useRef(null);return m.useImperativeHandle(o,()=>p.current),m.useEffect(()=>{const u=p.current;if(!u)return;const b=()=>c==null?void 0:c();return u.addEventListener("collection-change",b),()=>{u.removeEventListener("collection-change",b)}},[c]),bn(()=>{const u=p.current;u&&(t?u.setAttribute("item-selector",t):u.removeAttribute("item-selector"),i?u.setAttribute("direct-item-selector",i):u.removeAttribute("direct-item-selector"),r?u.setAttribute("item-role",r):u.removeAttribute("item-role"),u.container=l??null,u.items=d??null)},[l,i,r,t,d]),y.default.createElement("ui-collection",{ref:p,...s},e)});Ut.displayName="Collection";const vn=typeof window<"u"?m.useLayoutEffect:m.useEffect,Qt=y.default.forwardRef(function({children:e,itemSelector:t,directItemSelector:i,itemRole:r,activeAttribute:l,container:d,items:c,onCollectionChange:s,...o},p){const u=m.useRef(null);return m.useImperativeHandle(p,()=>u.current),m.useEffect(()=>{const b=u.current;if(!b)return;const E=()=>s==null?void 0:s();return b.addEventListener("collection-change",E),()=>{b.removeEventListener("collection-change",E)}},[s]),vn(()=>{const b=u.current;b&&(t?b.setAttribute("item-selector",t):b.removeAttribute("item-selector"),i?b.setAttribute("direct-item-selector",i):b.removeAttribute("direct-item-selector"),r?b.setAttribute("item-role",r):b.removeAttribute("item-role"),l?b.setAttribute("active-attribute",l):b.removeAttribute("active-attribute"),b.container=d??null,b.items=c??null)},[l,d,i,r,t,c]),y.default.createElement("ui-listbox",{ref:u,...o},e)});Qt.displayName="Listbox";const An=typeof window<"u"?m.useLayoutEffect:m.useEffect,Wt=y.default.forwardRef(function({children:e,itemSelector:t,directItemSelector:i,activeAttribute:r,loop:l,container:d,onActiveItemChange:c,...s},o){const p=m.useRef(null);return m.useImperativeHandle(o,()=>p.current),m.useEffect(()=>{const u=p.current;if(!u)return;const b=E=>{const L=E.detail;L&&(c==null||c(L))};return u.addEventListener("active-item-change",b),()=>{u.removeEventListener("active-item-change",b)}},[c]),An(()=>{const u=p.current;u&&(t?u.setAttribute("item-selector",t):u.removeAttribute("item-selector"),i?u.setAttribute("direct-item-selector",i):u.removeAttribute("direct-item-selector"),r===null?u.setAttribute("active-attribute",""):r?u.setAttribute("active-attribute",r):u.removeAttribute("active-attribute"),l===!1?u.setAttribute("loop","false"):u.removeAttribute("loop"),u.container=d??null)},[r,d,i,t,l]),y.default.createElement("ui-roving-focus-group",{ref:p,...s},e)});Wt.displayName="RovingFocusGroup";const pn=typeof window<"u"?m.useLayoutEffect:m.useEffect,Xt=y.default.forwardRef(function({children:e,open:t,modal:i,closeOnEscape:r,closeOnPointerOutside:l,closeOnFocusOutside:d,disableOutsidePointerEvents:c,headless:s,onBeforeClose:o,onClose:p,onInteractOutside:u,onEscapeKeyDown:b,...E},L){const A=m.useRef(null);return m.useImperativeHandle(L,()=>A.current),m.useEffect(()=>{const v=A.current;if(!v)return;const n=g=>o==null?void 0:o(g.detail),a=g=>p==null?void 0:p(g.detail),w=g=>u==null?void 0:u(g.detail||{}),h=g=>b==null?void 0:b(g.detail||{});return v.addEventListener("before-close",n),v.addEventListener("close",a),v.addEventListener("interact-outside",w),v.addEventListener("escape-key-down",h),()=>{v.removeEventListener("before-close",n),v.removeEventListener("close",a),v.removeEventListener("interact-outside",w),v.removeEventListener("escape-key-down",h)}},[o,p,b,u]),pn(()=>{const v=A.current;v&&(t?v.setAttribute("open",""):v.removeAttribute("open"),i?v.setAttribute("modal",""):v.removeAttribute("modal"),r===!1?v.setAttribute("close-on-escape","false"):r?v.setAttribute("close-on-escape",""):v.removeAttribute("close-on-escape"),l===!1?v.setAttribute("close-on-pointer-outside","false"):l?v.setAttribute("close-on-pointer-outside",""):v.removeAttribute("close-on-pointer-outside"),d?v.setAttribute("close-on-focus-outside",""):v.removeAttribute("close-on-focus-outside"),c?v.setAttribute("disable-outside-pointer-events",""):v.removeAttribute("disable-outside-pointer-events"),s?v.setAttribute("headless",""):v.removeAttribute("headless"))},[r,d,l,c,s,i,t]),y.default.createElement("ui-dismissable-layer",{ref:A,...E},e)});Xt.displayName="DismissableLayer";const En=typeof window<"u"?m.useLayoutEffect:m.useEffect,Yt=y.default.forwardRef(function({children:e,active:t,trapped:i,loop:r,restoreFocus:l,autoFocus:d,inertOthers:c,headless:s,onEscape:o,onFocusScopeMount:p,...u},b){const E=m.useRef(null);return m.useImperativeHandle(b,()=>E.current),m.useEffect(()=>{const L=E.current;if(!L)return;const A=n=>o==null?void 0:o(n.detail||{}),v=()=>p==null?void 0:p();return L.addEventListener("escape",A),L.addEventListener("focus-scope-mount",v),()=>{L.removeEventListener("escape",A),L.removeEventListener("focus-scope-mount",v)}},[o,p]),En(()=>{const L=E.current;L&&(t?L.setAttribute("active",""):L.removeAttribute("active"),i===!1?L.setAttribute("trapped","false"):i?L.setAttribute("trapped",""):L.removeAttribute("trapped"),r===!1?L.setAttribute("loop","false"):r?L.setAttribute("loop",""):L.removeAttribute("loop"),l===!1?L.setAttribute("restore-focus","false"):l?L.setAttribute("restore-focus",""):L.removeAttribute("restore-focus"),d?L.setAttribute("auto-focus",d):L.removeAttribute("auto-focus"),c?L.setAttribute("inert-others",""):L.removeAttribute("inert-others"),s?L.setAttribute("headless",""):L.removeAttribute("headless"))},[t,d,s,c,r,l,i]),y.default.createElement("ui-focus-scope",{ref:E,...u},e)});Yt.displayName="FocusScope";const yn=typeof window<"u"?m.useLayoutEffect:m.useEffect,zt=y.default.forwardRef(function({children:e,open:t,placement:i,strategy:r,offset:l,crossOffset:d,flip:c,shift:s,matchWidth:o,fitViewport:p,anchor:u,headless:b,onPositionChange:E,...L},A){const v=m.useRef(null);return m.useImperativeHandle(A,()=>v.current),m.useEffect(()=>{const n=v.current;if(!n)return;const a=w=>E==null?void 0:E(w.detail);return n.addEventListener("position-change",a),()=>{n.removeEventListener("position-change",a)}},[E]),yn(()=>{const n=v.current;n&&(t?n.setAttribute("open",""):n.removeAttribute("open"),i?n.setAttribute("placement",i):n.removeAttribute("placement"),r&&r!=="fixed"?n.setAttribute("strategy",r):n.removeAttribute("strategy"),l!=null?n.setAttribute("offset",String(l)):n.removeAttribute("offset"),d!=null?n.setAttribute("cross-offset",String(d)):n.removeAttribute("cross-offset"),c===!1?n.setAttribute("flip","false"):c?n.setAttribute("flip",""):n.removeAttribute("flip"),s===!1?n.setAttribute("shift","false"):s?n.setAttribute("shift",""):n.removeAttribute("shift"),o?n.setAttribute("match-width",""):n.removeAttribute("match-width"),p?n.setAttribute("fit-viewport",""):n.removeAttribute("fit-viewport"),u?n.setAttribute("anchor",u):n.removeAttribute("anchor"),b?n.setAttribute("headless",""):n.removeAttribute("headless"))},[u,d,p,c,b,o,l,t,i,s,r]),y.default.createElement("ui-positioner",{ref:v,...L},e)});zt.displayName="Positioner";const Kt=y.default.forwardRef(function({children:e,...t},i){const r=m.useRef(null);return m.useImperativeHandle(i,()=>r.current),y.default.createElement("ui-anchor",{ref:r,...t},e)});Kt.displayName="Anchor";function ve(f,e,t){if(t==null){f.removeAttribute(e);return}t?f.setAttribute(e,""):f.removeAttribute(e)}function qe(f,e,t,i){const r=t&&t!==i?t:void 0;if(!r){f.removeAttribute(e);return}f.setAttribute(e,r)}const Zt=y.forwardRef(function({checked:e,disabled:t,indeterminate:i,loading:r,headless:l,invalid:d,density:c,preset:s,onCheckedChange:o,onChange:p,onInput:u,children:b,...E},L){const A=y.useRef(null);y.useImperativeHandle(L,()=>A.current);const v=typeof window<"u"?y.useLayoutEffect:y.useEffect;y.useEffect(()=>{ne.warnIfElementNotRegistered("ui-checkbox","Checkbox")},[]),v(()=>{const a=A.current;a&&(ve(a,"checked",e),ve(a,"disabled",t),ve(a,"indeterminate",i),ve(a,"loading",r),ve(a,"headless",l),ve(a,"invalid",d),qe(a,"density",c,"default"),qe(a,"preset",s,"default"))},[e,t,i,r,l,d,c,s]),y.useEffect(()=>{const a=A.current;if(!a||!o&&!p&&!u)return;const w=g=>{var N;const R=g;u==null||u(R),typeof((N=R.detail)==null?void 0:N.checked)=="boolean"&&(o==null||o(R.detail.checked,R.detail))},h=g=>{const R=g;p==null||p(R)};return a.addEventListener("input",w),a.addEventListener("change",h),()=>{a.removeEventListener("input",w),a.removeEventListener("change",h)}},[o,p,u]);const n={ref:A,...E,checked:e?"":void 0,disabled:t?"":void 0,indeterminate:i?"":void 0,loading:r?"":void 0,headless:l?"":void 0,invalid:d?"":void 0,density:c&&c!=="default"?c:void 0,preset:s&&s!=="default"?s:void 0};return y.createElement("ui-checkbox",n,b)});Zt.displayName="Checkbox";const Ln=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ot=y.default.forwardRef(function({value:e,disabled:t,required:i,name:r,orientation:l,variant:d,size:c,tone:s,options:o,onValueChange:p,children:u,...b},E){const L=m.useRef(null);return y.default.useImperativeHandle(E,()=>L.current),m.useEffect(()=>{const A=L.current;if(!A)return;const v=n=>{const a=n.detail;a&&(p==null||p(a))};return A.addEventListener("change",v),()=>A.removeEventListener("change",v)},[p]),Ln(()=>{const A=L.current;if(!A)return;const v=(a,w)=>{const h=A.getAttribute(a);if(w==null){h!=null&&A.removeAttribute(a);return}h!==w&&A.setAttribute(a,w)},n=(a,w)=>{w?A.hasAttribute(a)||A.setAttribute(a,""):A.hasAttribute(a)&&A.removeAttribute(a)};v("value",e??null),n("disabled",t),n("required",i),v("name",r||null),v("orientation",l&&l!=="vertical"?l:null),v("variant",d&&d!=="default"?d:null),v("size",c&&c!=="md"?c:null),v("tone",s&&s!=="brand"?s:null),o&&o.length?v("options",JSON.stringify(o)):v("options",null)},[e,t,i,r,l,d,c,s,o]),y.default.createElement("ui-radio-group",{ref:L,...b},u)});Ot.displayName="RadioGroup";const gn=typeof window<"u"?y.useLayoutEffect:y.useEffect;function wn(f){if(f!=null){if(typeof f=="string")return f;if(!(!Number.isFinite(f)||f<=0))return Math.abs(f-16/9)<.01?"16/9":Math.abs(f-4/3)<.01?"4/3":Math.abs(f-1)<.01?"1/1":`${f}/1`}}const Vt=y.forwardRef(function({ratio:e,fit:t,tone:i,variant:r,size:l,radius:d,elevation:c,interactive:s,showRatioBadge:o,headless:p,children:u,...b},E){const L=y.useRef(null);return y.useImperativeHandle(E,()=>L.current),y.useEffect(()=>{ne.warnIfElementNotRegistered("ui-aspect-ratio","AspectRatio")},[]),gn(()=>{const A=L.current;if(!A)return;const v=wn(e);v?A.setAttribute("ratio",v):A.removeAttribute("ratio"),t?A.setAttribute("fit",t):A.removeAttribute("fit"),i&&i!=="neutral"?A.setAttribute("tone",i):A.removeAttribute("tone"),r&&r!=="surface"?A.setAttribute("variant",r):A.removeAttribute("variant"),l&&l!=="md"?A.setAttribute("size",l):A.removeAttribute("size"),d!=null?A.setAttribute("radius",String(d)):A.removeAttribute("radius"),c&&c!=="none"?A.setAttribute("elevation",c):A.removeAttribute("elevation"),s?A.setAttribute("interactive",""):A.removeAttribute("interactive"),o?A.setAttribute("show-ratio-badge",""):A.removeAttribute("show-ratio-badge"),p?A.setAttribute("headless",""):A.removeAttribute("headless")},[e,t,i,r,l,d,c,s,o,p]),y.createElement("ui-aspect-ratio",{ref:L,...b},u)});Vt.displayName="AspectRatio";const hn=typeof window<"u"?y.useLayoutEffect:y.useEffect;function Be(f){const e=f.trim().split(/\s+/).filter(Boolean);return e.length===0?"?":e.length===1?e[0].slice(0,2).toUpperCase():`${e[0][0]||""}${e[1][0]||""}`.toUpperCase()}function Nn(f){if(f!=null)return f==="lazy"||f==="eager"?f:f?"eager":"lazy"}function Rn(f,e,t){return f&&f.trim()?f.trim().slice(0,2).toUpperCase():e&&e.trim()?Be(e):typeof t=="string"&&t.trim()?Be(t):"?"}const Ct=y.forwardRef(function({src:e,alt:t,initials:i,size:r,bg:l,color:d,radius:c,fontWeight:s,shape:o,tone:p,variant:u,elevation:b,status:E,state:L,badge:A,ring:v,interactive:n,disabled:a,loading:w,onAvatarLoad:h,onAvatarError:g,children:R,...N},S){const I=y.useRef(null),B=y.useMemo(()=>Rn(i,t,R),[i,t,R]);return y.useImperativeHandle(S,()=>I.current),y.useEffect(()=>{ne.warnIfElementNotRegistered("ui-avatar","Avatar")},[]),y.useEffect(()=>{const T=I.current;if(!T||!h&&!g)return;const D=M=>h==null?void 0:h(M.detail),$=M=>g==null?void 0:g(M.detail);return T.addEventListener("avatar-load",D),T.addEventListener("avatar-error",$),()=>{T.removeEventListener("avatar-load",D),T.removeEventListener("avatar-error",$)}},[h,g]),hn(()=>{const T=I.current;if(!T)return;e?T.setAttribute("src",e):T.removeAttribute("src"),t?T.setAttribute("alt",t):T.removeAttribute("alt"),i?T.setAttribute("initials",i):T.removeAttribute("initials"),r!=null?T.setAttribute("size",String(r)):T.removeAttribute("size"),l?T.setAttribute("bg",l):T.removeAttribute("bg"),d?T.setAttribute("color",d):T.removeAttribute("color"),c!=null?T.setAttribute("radius",String(c)):T.removeAttribute("radius"),s!=null?T.setAttribute("fontweight",String(s)):T.removeAttribute("fontweight"),o?T.setAttribute("shape",o):T.removeAttribute("shape"),p&&p!=="neutral"?T.setAttribute("tone",p):T.removeAttribute("tone"),u&&u!=="surface"?T.setAttribute("variant",u):T.removeAttribute("variant"),b&&b!=="low"?T.setAttribute("elevation",b):T.removeAttribute("elevation"),E?T.setAttribute("status",E):T.removeAttribute("status"),L&&L!=="idle"?T.setAttribute("state",L):T.removeAttribute("state"),A?T.setAttribute("badge",A):T.removeAttribute("badge"),v==null?T.removeAttribute("ring"):v?T.setAttribute("ring",""):T.removeAttribute("ring"),n==null?T.removeAttribute("interactive"):n?T.setAttribute("interactive",""):T.removeAttribute("interactive"),a==null?T.removeAttribute("disabled"):a?T.setAttribute("disabled",""):T.removeAttribute("disabled");const D=Nn(w);D?T.setAttribute("loading",D):T.removeAttribute("loading")},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w]),y.createElement("ui-avatar",{ref:I,...N},B)});Ct.displayName="Avatar";const Sn=typeof window<"u"?m.useLayoutEffect:m.useEffect,er=y.default.forwardRef(function({present:e,headless:t,mode:i,size:r,variant:l,keepMounted:d,lazy:c,enterDuration:s,exitDuration:o,delay:p,onBeforeEnter:u,onEnter:b,onAfterEnter:E,onBeforeExit:L,onExit:A,onAfterExit:v,children:n,...a},w){const h=m.useRef(null);return y.default.useImperativeHandle(w,()=>h.current),m.useEffect(()=>{const g=h.current;if(!g)return;const R=$=>{const M=$.detail;return(M==null?void 0:M.state)||"hidden"},N=$=>u==null?void 0:u(R($)),S=$=>b==null?void 0:b(R($)),I=$=>E==null?void 0:E(R($)),B=$=>L==null?void 0:L(R($)),T=$=>A==null?void 0:A(R($)),D=$=>v==null?void 0:v(R($));return g.addEventListener("before-enter",N),g.addEventListener("enter",S),g.addEventListener("after-enter",I),g.addEventListener("before-exit",B),g.addEventListener("exit",T),g.addEventListener("after-exit",D),()=>{g.removeEventListener("before-enter",N),g.removeEventListener("enter",S),g.removeEventListener("after-enter",I),g.removeEventListener("before-exit",B),g.removeEventListener("exit",T),g.removeEventListener("after-exit",D)}},[u,b,E,L,A,v]),Sn(()=>{const g=h.current;g&&(e?g.setAttribute("present",""):g.removeAttribute("present"),t?g.setAttribute("headless",""):g.removeAttribute("headless"),i&&i!=="fade"?g.setAttribute("mode",i):g.removeAttribute("mode"),r&&r!=="md"?g.setAttribute("size",r):g.removeAttribute("size"),l&&l!=="default"?g.setAttribute("variant",l):g.removeAttribute("variant"),d?g.setAttribute("keep-mounted",""):g.removeAttribute("keep-mounted"),c?g.setAttribute("lazy",""):g.removeAttribute("lazy"),typeof s=="number"?g.setAttribute("enter-duration",String(s)):g.removeAttribute("enter-duration"),typeof o=="number"?g.setAttribute("exit-duration",String(o)):g.removeAttribute("exit-duration"),typeof p=="number"?g.setAttribute("delay",String(p)):g.removeAttribute("delay"))},[e,t,i,r,l,d,c,s,o,p]),y.default.createElement("ui-presence",{ref:h,...a},n)});er.displayName="Presence";const Hn=typeof window<"u"?m.useLayoutEffect:m.useEffect,tr=y.default.forwardRef(function({value:e,buffer:t,max:i,min:r,indeterminate:l,striped:d,animated:c,showLabel:s,label:o,format:p,precision:u,size:b,variant:E,tone:L,shape:A,mode:v,onValueChange:n,onComplete:a,children:w,...h},g){const R=m.useRef(null);return y.default.useImperativeHandle(g,()=>R.current),m.useEffect(()=>{const N=R.current;if(!N)return;const S=B=>{const T=B.detail;T&&(n==null||n(T))},I=B=>{const T=B.detail;T&&(a==null||a(T))};return N.addEventListener("change",S),N.addEventListener("complete",I),()=>{N.removeEventListener("change",S),N.removeEventListener("complete",I)}},[n,a]),Hn(()=>{const N=R.current;if(!N)return;const S=(B,T)=>{const D=N.getAttribute(B);if(T==null){D!=null&&N.removeAttribute(B);return}D!==T&&N.setAttribute(B,T)},I=(B,T)=>{T?N.hasAttribute(B)||N.setAttribute(B,""):N.hasAttribute(B)&&N.removeAttribute(B)};S("value",e!=null?String(e):null),S("buffer",t!=null?String(t):null),S("max",i!=null?String(i):null),S("min",r!=null?String(r):null),I("indeterminate",l),I("striped",d),I("animated",c),I("show-label",s),S("label",o!=null&&o!==""?o:null),S("format",p!=null&&p!=="percent"?p:null),S("precision",u!=null?String(u):null),S("size",b&&b!=="md"?b:null),S("variant",E&&E!=="default"?E:null),S("tone",L&&L!=="brand"?L:null),S("shape",A&&A!=="pill"?A:null),S("mode",v&&v!=="line"?v:null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A,v]),y.default.createElement("ui-progress",{ref:R,...h},w)});tr.displayName="Progress";const In=typeof window<"u"?m.useLayoutEffect:m.useEffect,rr=y.default.forwardRef(function({value:e,min:t,max:i,low:r,high:l,optimum:d,label:c,showLabel:s,format:o,precision:p,size:u,variant:b,tone:E,shape:L,mode:A,onValueChange:v,children:n,...a},w){const h=m.useRef(null);return y.default.useImperativeHandle(w,()=>h.current),m.useEffect(()=>{const g=h.current;if(!g)return;const R=N=>{const S=N.detail;S&&(v==null||v(S))};return g.addEventListener("change",R),()=>{g.removeEventListener("change",R)}},[v]),In(()=>{const g=h.current;if(!g)return;const R=(S,I)=>{const B=g.getAttribute(S);if(I==null){B!=null&&g.removeAttribute(S);return}B!==I&&g.setAttribute(S,I)},N=(S,I)=>{I?g.hasAttribute(S)||g.setAttribute(S,""):g.hasAttribute(S)&&g.removeAttribute(S)};R("value",e!=null?String(e):null),R("min",t!=null?String(t):null),R("max",i!=null?String(i):null),R("low",r!=null?String(r):null),R("high",l!=null?String(l):null),R("optimum",d!=null?String(d):null),R("label",c!=null&&c!==""?c:null),N("show-label",s),R("format",o!=null&&o!=="value"?o:null),R("precision",p!=null?String(p):null),R("size",u&&u!=="md"?u:null),R("variant",b&&b!=="default"?b:null),R("tone",E&&E!=="auto"?E:null),R("shape",L&&L!=="pill"?L:null),R("mode",A&&A!=="line"?A:null)},[e,t,i,r,l,d,c,s,o,p,u,b,E,L,A]),y.default.createElement("ui-meter",{ref:h,...a},n)});rr.displayName="Meter";const Pn=typeof window<"u"?m.useLayoutEffect:m.useEffect,ir=y.default.forwardRef(function({target:e,headless:t,disabled:i,strategy:r,onMount:l,onUnmount:d,onSync:c,onTargetMissing:s,children:o,...p},u){const b=m.useRef(null);return y.default.useImperativeHandle(u,()=>b.current),m.useEffect(()=>{const E=b.current;if(!E)return;const L=a=>l==null?void 0:l(a.detail||{count:0}),A=a=>d==null?void 0:d(a.detail||{count:0}),v=a=>c==null?void 0:c(a.detail||{count:0}),n=a=>{const w=a.detail;w&&(s==null||s(w))};return E.addEventListener("mount",L),E.addEventListener("unmount",A),E.addEventListener("sync",v),E.addEventListener("target-missing",n),()=>{E.removeEventListener("mount",L),E.removeEventListener("unmount",A),E.removeEventListener("sync",v),E.removeEventListener("target-missing",n)}},[l,d,c,s]),Pn(()=>{const E=b.current;E&&(e?E.setAttribute("target",e):E.removeAttribute("target"),r&&r!=="append"?E.setAttribute("strategy",r):E.removeAttribute("strategy"),t?E.setAttribute("headless",""):E.removeAttribute("headless"),i?E.setAttribute("disabled",""):E.removeAttribute("disabled"))},[e,r,t,i]),y.default.createElement("ui-portal",{ref:b,...p},o)});ir.displayName="Portal";const kn=typeof window<"u"?m.useLayoutEffect:m.useEffect,nr=y.default.forwardRef(function({orientation:e,size:t,variant:i,tone:r,autoHide:l,shadows:d,onScrollChange:c,onReachStart:s,onReachEnd:o,children:p,...u},b){const E=m.useRef(null);return y.default.useImperativeHandle(b,()=>E.current),m.useEffect(()=>{const L=E.current;if(!L)return;const A=a=>{const w=a.detail;w&&(c==null||c(w))},v=()=>s==null?void 0:s(),n=()=>o==null?void 0:o();return L.addEventListener("scroll",A),L.addEventListener("reach-start",v),L.addEventListener("reach-end",n),()=>{L.removeEventListener("scroll",A),L.removeEventListener("reach-start",v),L.removeEventListener("reach-end",n)}},[c,s,o]),kn(()=>{const L=E.current;if(!L)return;const A=(n,a)=>{const w=L.getAttribute(n);if(a==null){w!=null&&L.removeAttribute(n);return}w!==a&&L.setAttribute(n,a)},v=(n,a)=>{const w=L.getAttribute(n);if(a==null){w!=null&&L.removeAttribute(n);return}const h=a?"true":"false";w!==h&&L.setAttribute(n,h)};A("orientation",e&&e!=="vertical"?e:null),A("size",t&&t!=="md"?t:null),A("variant",i&&i!=="default"?i:null),A("tone",r&&r!=="neutral"?r:null),v("auto-hide",l),v("shadows",d)},[e,t,i,r,l,d]),y.default.createElement("ui-scroll-area",{ref:E,...u},p)});nr.displayName="ScrollArea";const ur=y.forwardRef((f,e)=>y.createElement("ui-separator",{ref:e,...f}));ur.displayName="Separator";const Tn=typeof window<"u"?m.useLayoutEffect:m.useEffect,lr=y.default.forwardRef(function({children:e,name:t,fallback:i,required:r,inline:l,align:d,size:c,variant:s,tone:o,headless:p,onSlotChange:u,onMissing:b,onResolved:E,...L},A){const v=m.useRef(null);return m.useImperativeHandle(A,()=>v.current),m.useEffect(()=>{const n=v.current;if(!n)return;const a=g=>{const R=g.detail;R&&(u==null||u(R))},w=()=>b==null?void 0:b(),h=()=>E==null?void 0:E();return n.addEventListener("slotchange",a),n.addEventListener("missing",w),n.addEventListener("resolved",h),()=>{n.removeEventListener("slotchange",a),n.removeEventListener("missing",w),n.removeEventListener("resolved",h)}},[u,b,E]),Tn(()=>{const n=v.current;if(!n)return;const a=(h,g)=>{const R=n.getAttribute(h);if(g==null){R!=null&&n.removeAttribute(h);return}R!==g&&n.setAttribute(h,g)},w=(h,g)=>{g?a(h,""):a(h,null)};a("name",t||null),a("fallback",i||null),w("required",r),typeof l=="boolean"?a("inline",l?"true":"false"):a("inline",null),a("align",d&&d!=="start"?d:null),a("size",c&&c!=="md"?c:null),a("variant",s&&s!=="plain"?s:null),a("tone",o&&o!=="brand"?o:null),w("headless",p)},[t,i,r,l,d,c,s,o,p]),y.default.createElement("ui-slot",{ref:v,...L},e)});lr.displayName="Slot";const Dn=typeof window<"u"?m.useLayoutEffect:m.useEffect,sr=y.default.forwardRef(function({children:e,orientation:t,variant:i,size:r,density:l,wrap:d,loop:c,headless:s,...o},p){const u=m.useRef(null);return m.useImperativeHandle(p,()=>u.current),Dn(()=>{const b=u.current;if(!b)return;const E=(A,v)=>{const n=b.getAttribute(A);if(v==null){n!=null&&b.removeAttribute(A);return}n!==v&&b.setAttribute(A,v)},L=(A,v)=>{v?E(A,""):E(A,null)};E("orientation",t&&t!=="horizontal"?t:null),E("variant",i&&i!=="default"?i:null),E("size",r&&r!=="md"?r:null),E("density",l&&l!=="default"?l:null),L("wrap",d),typeof c=="boolean"?L("loop",c):E("loop",null),L("headless",s)},[t,i,r,l,d,c,s]),y.default.createElement("ui-toolbar",{ref:u,...o},e)});sr.displayName="Toolbar";const or=y.forwardRef((f,e)=>y.createElement("ui-visually-hidden",{ref:e,...f}));or.displayName="VisuallyHidden";const Fn=typeof window<"u"?y.useLayoutEffect:y.useEffect,cr=y.forwardRef(function({page:e,count:t,size:i,variant:r,headless:l,ariaLabel:d,onPageChange:c,onChange:s,onFirst:o,onPrev:p,onNext:u,onLast:b,children:E,...L},A){const v=y.useRef(null);return y.useImperativeHandle(A,()=>v.current),y.useEffect(()=>{const n=v.current;if(!n)return;const a=N=>{const S=N.detail;S&&(c==null||c(S),s==null||s(S))},w=N=>{const S=N.detail;S&&(o==null||o(S))},h=N=>{const S=N.detail;S&&(p==null||p(S))},g=N=>{const S=N.detail;S&&(u==null||u(S))},R=N=>{const S=N.detail;S&&(b==null||b(S))};return n.addEventListener("change",a),n.addEventListener("first",w),n.addEventListener("prev",h),n.addEventListener("next",g),n.addEventListener("last",R),()=>{n.removeEventListener("change",a),n.removeEventListener("first",w),n.removeEventListener("prev",h),n.removeEventListener("next",g),n.removeEventListener("last",R)}},[c,s,o,p,u,b]),Fn(()=>{const n=v.current;if(!n)return;const a=(h,g)=>{const R=n.getAttribute(h);if(g==null){R!=null&&n.removeAttribute(h);return}R!==g&&n.setAttribute(h,g)},w=(h,g)=>{g?n.hasAttribute(h)||n.setAttribute(h,""):n.hasAttribute(h)&&n.removeAttribute(h)};a("page",typeof e=="number"&&Number.isFinite(e)?String(e):null),a("count",typeof t=="number"&&Number.isFinite(t)?String(t):null),a("size",i&&i!=="md"?i:null),a("variant",r&&r!=="default"?r:null),a("aria-label",d??null),w("headless",l)},[e,t,i,r,d,l]),y.createElement("ui-pagination",{ref:v,...L},E)});cr.displayName="Pagination";const $n=typeof window<"u"?y.useLayoutEffect:y.useEffect;function xn(f,e,t){if(t==null){f.removeAttribute(e);return}t?f.setAttribute(e,""):f.removeAttribute(e)}function me(f,e,t){const i=f.getAttribute(e);if(t==null||t===""){i!=null&&f.removeAttribute(e);return}i!==t&&f.setAttribute(e,t)}function je(f){var e;return(e=f.detail)==null?void 0:e.open}const fr=y.forwardRef(function({multiple:e,collapsible:t,open:i,variant:r,size:l,radius:d,tone:c,indicator:s,shape:o,elevation:p,onToggle:u,onChangeOpen:b,children:E,...L},A){const v=y.useRef(null);return y.useImperativeHandle(A,()=>v.current),y.useEffect(()=>{ne.warnIfElementNotRegistered("ui-accordion","Accordion")},[]),$n(()=>{const n=v.current;n&&(xn(n,"multiple",e),t==null?n.removeAttribute("collapsible"):n.setAttribute("collapsible",String(!!t)),i==null?n.removeAttribute("open"):n.setAttribute("open",Array.isArray(i)?JSON.stringify(i):String(i)),me(n,"variant",r&&r!=="surface"?r:null),me(n,"size",l&&l!=="md"?l:null),me(n,"radius",d!=null?String(d):null),me(n,"tone",c&&c!=="neutral"?c:null),me(n,"indicator",s&&s!=="line"?s:null),me(n,"shape",o&&o!=="default"?o:null),me(n,"elevation",p&&p!=="default"?p:null))},[e,t,i,r,l,d,c,s,o,p]),y.useEffect(()=>{const n=v.current;if(!n||!u&&!b)return;const a=h=>{const g=je(h);g!=null&&(u==null||u(g))},w=h=>{const g=je(h);g!=null&&(b==null||b(g))};return n.addEventListener("toggle",a),n.addEventListener("change",w),()=>{n.removeEventListener("toggle",a),n.removeEventListener("change",w)}},[u,b]),y.createElement("ui-accordion",{ref:v,...L},E)});fr.displayName="Accordion";const Mn=y.forwardRef(function({disabled:e,description:t,badge:i,children:r,...l},d){const c={ref:d,"data-ui-accordion-item":"",...l};return e&&(c.disabled=!0),t!=null&&(c["data-description"]=String(t)),i!=null&&(c["data-badge"]=String(i)),y.createElement("div",c,r)});Mn.displayName="AccordionItem";const qn=y.forwardRef(function({type:e,children:t,...i},r){return y.createElement("button",{ref:r,type:e||"button","data-ui-accordion-trigger":"",...i},t)});qn.displayName="AccordionTrigger";const Bn=y.forwardRef(function({children:e,...t},i){return y.createElement("div",{ref:i,"data-ui-accordion-panel":"",...t},e)});Bn.displayName="AccordionPanel";const ar=y.forwardRef((f,e)=>y.createElement("ui-direction-provider",{ref:e,...f}));ar.displayName="DirectionProvider";const jn=typeof window<"u"?y.default.useLayoutEffect:y.default.useEffect,dr=y.default.forwardRef(function({children:e,open:t,headless:i,dismissible:r,closeOnEsc:l,closeOnBackdrop:d,lockWhileLoading:c,roleType:s,tone:o,variant:p,size:u,radius:b,elevation:E,indicator:L,state:A,initialFocus:v,dialogId:n,config:a,onOpen:w,onConfirm:h,onCancel:g,onDismiss:R,onClose:N,onChange:S,...I},B){const T=m.useRef(null);return y.default.useImperativeHandle(B,()=>T.current),m.useEffect(()=>{const D=T.current;if(!D)return;const $=x=>w==null?void 0:w(x.detail),M=x=>h==null?void 0:h(x.detail),J=x=>g==null?void 0:g(x.detail),P=x=>R==null?void 0:R(x.detail),F=x=>N==null?void 0:N(x.detail),j=x=>S==null?void 0:S(x.detail);return D.addEventListener("ui-open",$),D.addEventListener("ui-confirm",M),D.addEventListener("ui-cancel",J),D.addEventListener("ui-dismiss",P),D.addEventListener("ui-close",F),D.addEventListener("ui-change",j),()=>{D.removeEventListener("ui-open",$),D.removeEventListener("ui-confirm",M),D.removeEventListener("ui-cancel",J),D.removeEventListener("ui-dismiss",P),D.removeEventListener("ui-close",F),D.removeEventListener("ui-change",j)}},[w,h,g,R,N,S]),jn(()=>{const D=T.current;D&&(i?D.setAttribute("headless",""):D.removeAttribute("headless"),typeof t=="boolean"&&t?D.setAttribute("open",""):D.removeAttribute("open"),typeof r=="boolean"?D.setAttribute("dismissible",String(r)):D.removeAttribute("dismissible"),typeof l=="boolean"?D.setAttribute("close-on-esc",String(l)):D.removeAttribute("close-on-esc"),typeof d=="boolean"?D.setAttribute("close-on-backdrop",String(d)):D.removeAttribute("close-on-backdrop"),typeof c=="boolean"?D.setAttribute("lock-while-loading",String(c)):D.removeAttribute("lock-while-loading"),s?D.setAttribute("role",s):D.removeAttribute("role"),o&&o!=="neutral"?D.setAttribute("tone",o):D.removeAttribute("tone"),p&&p!=="surface"?D.setAttribute("variant",p):D.removeAttribute("variant"),u&&u!=="md"&&u!=="2"?D.setAttribute("size",u):D.removeAttribute("size"),b!=null?D.setAttribute("radius",String(b)):D.removeAttribute("radius"),E&&E!=="low"?D.setAttribute("elevation",E):D.removeAttribute("elevation"),L&&L!=="line"?D.setAttribute("indicator",L):D.removeAttribute("indicator"),A&&A!=="idle"?D.setAttribute("state",A):D.removeAttribute("state"),v?D.setAttribute("initial-focus",v):D.removeAttribute("initial-focus"),n&&(D.dialogId=n),a?D.config=a:D.config={})},[t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a]),y.default.createElement("ui-alert-dialog",{ref:T,...I},e)});dr.displayName="AlertDialog";function Le(f,e,t,i){const r=y.default.forwardRef(function({as:d,children:c,style:s,...o},p){const u=d||f,b={ref:p,...o};return t&&(b.slot=t),i&&(b[i]=""),s&&(b.style=s),y.default.createElement(u,b,c)});return r.displayName=e,r}const Gn=Le("span","AlertDialogIcon","icon","data-ui-alert-dialog-icon"),Jn=Le("div","AlertDialogTitle","title","data-ui-alert-dialog-title"),_n=Le("div","AlertDialogDescription","description","data-ui-alert-dialog-description"),Un=Le("div","AlertDialogContent","content","data-ui-alert-dialog-content"),Qn=Le("div","AlertDialogActions","footer","data-ui-alert-dialog-actions"),mr=m.createContext(null),ye="data-ui-alert-dialog-react-host-refcount";function Wn({children:f,hostId:e="ui-alert-dialog-react-host",defaults:t}){const i=m.useRef(null);i.current||(i.current=se.createAlertDialogManager()),m.useEffect(()=>{var l;(l=i.current)==null||l.setDefaults(t||null)},[t]),m.useEffect(()=>{var s;if(typeof document>"u")return;let l=document.getElementById(e);const d=!l;l||(l=document.createElement("div"),l.id=e,l.setAttribute("data-ui-alert-dialog-react-host","true"),document.body.appendChild(l));const c=Number(l.getAttribute(ye)||"0");return l.setAttribute(ye,String(Math.max(0,c)+1)),(s=i.current)==null||s.setContainer(l),()=>{var u,b;if((u=i.current)==null||u.destroy("unmount"),i.current=null,!l||!l.isConnected)return;const o=Number(l.getAttribute(ye)||"1"),p=Math.max(0,o-1);p===0?(l.removeAttribute(ye),d&&((b=l.parentElement)==null||b.removeChild(l))):l.setAttribute(ye,String(p))}},[e]);const r=m.useMemo(()=>({alert:(l={})=>{var d;return((d=i.current)==null?void 0:d.alert(l))??Promise.resolve({id:"",action:"dismiss"})},confirm:(l={})=>{var d;return((d=i.current)==null?void 0:d.confirm(l))??Promise.resolve({id:"",action:"dismiss"})},prompt:(l={})=>{var d;return((d=i.current)==null?void 0:d.prompt(l))??Promise.resolve({id:"",action:"dismiss",value:""})}}),[]);return y.default.createElement(mr.Provider,{value:r},f)}function Xn(){const f=m.useContext(mr);if(!f)throw new Error("useAlertDialog must be used within <AlertDialogProvider>.");return f}const Yn=typeof window<"u"?m.useLayoutEffect:m.useEffect,br=y.default.forwardRef(function({children:e,value:t,valueStart:i,valueEnd:r,min:l,max:d,step:c,range:s,disabled:o,headless:p,orientation:u,size:b,variant:E,tone:L,showValue:A,format:v,label:n,description:a,marks:w,name:h,nameStart:g,nameEnd:R,onInput:N,onChange:S,onValueChange:I,...B},T){const D=m.useRef(null);return m.useImperativeHandle(T,()=>D.current),m.useEffect(()=>{const $=D.current;if(!$)return;const M=P=>{const F=P.detail;F&&(N==null||N(Number(F.value)),I==null||I(F))},J=P=>{const F=P.detail;F&&(S==null||S(Number(F.value)),I==null||I(F))};return $.addEventListener("input",M),$.addEventListener("change",J),()=>{$.removeEventListener("input",M),$.removeEventListener("change",J)}},[N,S,I]),Yn(()=>{const $=D.current;if(!$)return;const M=(P,F)=>{const j=$.getAttribute(P);if(F==null){j!=null&&$.removeAttribute(P);return}j!==F&&$.setAttribute(P,F)},J=(P,F,j)=>{if(F==null){j!==void 0&&j===!1&&M(P,null);return}F?M(P,""):M(P,null)};if(M("value",typeof t=="number"&&Number.isFinite(t)?String(t):null),M("value-start",typeof i=="number"&&Number.isFinite(i)?String(i):null),M("value-end",typeof r=="number"&&Number.isFinite(r)?String(r):null),M("min",typeof l=="number"&&Number.isFinite(l)?String(l):null),M("max",typeof d=="number"&&Number.isFinite(d)?String(d):null),M("step",typeof c=="number"&&Number.isFinite(c)?String(c):null),J("range",s),J("disabled",o),J("headless",p),M("orientation",u&&u!=="horizontal"?u:null),M("size",b&&b!=="md"?b:null),M("variant",E&&E!=="default"?E:null),M("tone",L&&L!=="brand"?L:null),typeof A=="boolean"?M("show-value",A?"true":"false"):M("show-value",null),M("format",v||null),M("label",n||null),M("description",a||null),M("name",h||null),M("name-start",g||null),M("name-end",R||null),w&&w.length)try{M("marks",JSON.stringify(w))}catch{M("marks",null)}else M("marks",null)},[t,i,r,l,d,c,s,o,p,u,b,E,L,A,v,n,a,w,h,g,R]),y.default.createElement("ui-slider",{ref:D,...B},e)});br.displayName="Slider";const zn=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Kn(f){const{count:e,width:t,height:i,radius:r,gap:l,duration:d,variant:c,animation:s,density:o,tone:p,animated:u,headless:b,...E}=f,L=m.useRef(null);return zn(()=>{const A=L.current;A&&(typeof e=="number"&&Number.isFinite(e)?A.setAttribute("count",String(e)):A.removeAttribute("count"),t?A.setAttribute("width",t):A.removeAttribute("width"),i?A.setAttribute("height",i):A.removeAttribute("height"),r?A.setAttribute("radius",r):A.removeAttribute("radius"),l?A.setAttribute("gap",l):A.removeAttribute("gap"),d?A.setAttribute("duration",d):A.removeAttribute("duration"),c?A.setAttribute("variant",c):A.removeAttribute("variant"),s&&s!=="none"?A.setAttribute("animation",s):s==="none"?A.setAttribute("animation","none"):A.removeAttribute("animation"),o&&o!=="default"?A.setAttribute("density",o):A.removeAttribute("density"),p&&p!=="default"?A.setAttribute("tone",p):A.removeAttribute("tone"),u?A.setAttribute("animated",""):A.removeAttribute("animated"),b?A.setAttribute("headless",""):A.removeAttribute("headless"))},[e,t,i,r,l,d,c,s,o,p,u,b]),y.default.createElement("ui-skeleton",{ref:L,...E})}exports.Input=Hr.Input;exports.Textarea=Ir.Textarea;exports.Combobox=Pr.Combobox;exports.Wizard=kr.Wizard;exports.Rating=Tr.Rating;exports.QuickActions=Dr.QuickActions;exports.Menubar=Fr.Menubar;exports.Popover=$r.Popover;exports.Tabs=xr.Tabs;exports.Menu=we.Menu;exports.MenuItem=we.MenuItem;exports.MenuSectionLabel=we.MenuSectionLabel;exports.MenuSeparator=we.MenuSeparator;Object.defineProperty(exports,"toastAdvanced",{enumerable:!0,get:()=>te.toastAdvanced});Object.defineProperty(exports,"toastLegacy",{enumerable:!0,get:()=>Cr.default});Object.defineProperty(exports,"toastPro",{enumerable:!0,get:()=>te.toastPro});exports.FloatingToolbar=Mr.FloatingToolbar;exports.Command=Ge.Command;exports.CommandItem=Ge.CommandItem;exports.CommandPalette=Je.CommandPalette;exports.CommandPaletteItem=Je.CommandPaletteItem;exports.SelectionPopup=Br.SelectionPopup;exports.Form=jr.Form;exports.Sidebar=Gr.Sidebar;exports.Tree=Jr.Tree;exports.Breadcrumb=_r.Breadcrumb;exports.AppHeader=pe.ComposedAppHeader;exports.AppHeaderCenter=pe.AppHeaderCenter;exports.AppHeaderEnd=pe.AppHeaderEnd;exports.AppHeaderStart=pe.AppHeaderStart;exports.AppHeaderSubtitle=pe.AppHeaderSubtitle;exports.AppHeaderTitle=pe.AppHeaderTitle;exports.Drawer=Ur.Drawer;exports.Layout=Qr.Layout;exports.Switch=Wr.Switch;exports.Toggle=_e.Toggle;exports.ToggleGroup=_e.ToggleGroup;exports.Collapsible=Xr.Collapsible;exports.HoverCard=Yr.HoverCard;exports.Card=zr.Card;exports.Label=Kr.Label;exports.Select=Zr.Select;exports.Accordion=fr;exports.Alert=ri;exports.AlertActions=li;exports.AlertDescription=ui;exports.AlertDialog=dr;exports.AlertDialogActions=Qn;exports.AlertDialogContent=Un;exports.AlertDialogDescription=_n;exports.AlertDialogIcon=Gn;exports.AlertDialogProvider=Wn;exports.AlertDialogTitle=Jn;exports.AlertIcon=ii;exports.AlertTitle=ni;exports.Anchor=Kt;exports.AspectRatio=Vt;exports.Avatar=Ct;exports.Badge=Ei;exports.BlockControls=Mt;exports.Box=nn;exports.Button=Ue;exports.Calendar=lt;exports.Chart=Ni;exports.Checkbox=Zt;exports.Collection=Ut;exports.ColorPicker=st;exports.Container=on;exports.ContextMenu=Ci;exports.ControlGroup=et;exports.DataTable=wi;exports.DateField=dt;exports.DatePicker=ot;exports.DateRangePicker=ct;exports.DateRangeTimePicker=gt;exports.DateTimePicker=Lt;exports.Description=Ve;exports.Dialog=Tt;exports.DialogProvider=Ui;exports.DirectionProvider=ar;exports.DismissableLayer=Xt;exports.Dropdown=oi;exports.DropdownContent=Pe;exports.DropdownItem=ke;exports.DropdownSectionLabel=De;exports.DropdownSeparator=Te;exports.DropdownTrigger=Ie;exports.Dropzone=Oe;exports.EmptyState=Li;exports.Field=Ai;exports.FieldError=Ce;exports.Fieldset=tt;exports.FileUpload=Ze;exports.Flex=un;exports.FocusScope=Yt;exports.Gantt=wt;exports.Grid=ln;exports.Icon=Ft;exports.InlineEdit=Et;exports.Listbox=Qt;exports.Meter=rr;exports.MultiSelect=vt;exports.NavigationMenu=Ji;exports.NavigationMenuContent=It;exports.NavigationMenuIndicator=Pt;exports.NavigationMenuItem=Rt;exports.NavigationMenuLink=Ht;exports.NavigationMenuList=Nt;exports.NavigationMenuRoot=He;exports.NavigationMenuTrigger=St;exports.NavigationMenuViewport=kt;exports.NumberField=bt;exports.OTPInput=mi;exports.Pagination=cr;exports.Panel=Gt;exports.PanelGroup=jt;exports.PasswordField=Xe;exports.PinInput=Fe;exports.PluginPanel=qt;exports.Portal=ir;exports.Positioner=zt;exports.Presence=er;exports.Progress=tr;exports.RadioGroup=Ot;exports.RovingFocusGroup=Wt;exports.ScrollArea=nr;exports.Section=Bt;exports.Separator=ur;exports.Skeleton=Kn;exports.Slider=br;exports.Slot=lr;exports.SplitButton=At;exports.Splitter=Jt;exports.Stepper=ht;exports.Table=gi;exports.TagsInput=Ye;exports.ThemeProvider=dn;exports.TimeField=mt;exports.TimePicker=yt;exports.Timeline=ut;exports.Toast=xt;exports.ToastAPI=Yi;exports.ToastProvider=zi;exports.Toolbar=sr;exports.Tooltip=Qe;exports.TransferList=pt;exports.VisuallyHidden=or;exports.toast=Xi;exports.toastApi=$e;exports.useAlertDialog=Xn;exports.useDialog=Qi;exports.useFloating=rn;exports.useForm=tn;exports.useTheme=mn;exports.useToast=Ki;