@stacksjs/components 0.2.27 → 0.2.53

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 (237) hide show
  1. package/dist/Accordion-19x8q4rj.stx +88 -0
  2. package/dist/{Audio-vdmg1258.stx → Audio-hjywk3qc.stx} +4 -4
  3. package/dist/{Avatar-365cvrh4.stx → Avatar-h3jmwcq0.stx} +23 -34
  4. package/dist/{Badge-8m3qete4.stx → Badge-k8dy3d53.stx} +11 -19
  5. package/dist/{Button-3tt4vsqt.stx → Button-1vknasy3.stx} +18 -33
  6. package/dist/Calendar-reny0et7.stx +189 -0
  7. package/dist/{Card-6wdbexqr.stx → Card-c1g1fd1w.stx} +27 -33
  8. package/dist/{Checkbox-p3q3e3nf.stx → Checkbox-zgdmy3p5.stx} +36 -44
  9. package/dist/{Checkout-e4037tyy.stx → Checkout-agt0ngpw.stx} +8 -16
  10. package/dist/Combobox-fdkr6cdq.stx +96 -0
  11. package/dist/{ComboboxButton-8gxwkhdx.stx → ComboboxButton-g76stp1e.stx} +14 -2
  12. package/dist/{ComboboxInput-mk99z65n.stx → ComboboxInput-z1293bbh.stx} +12 -5
  13. package/dist/ComboboxOption-hmxt3gte.stx +49 -0
  14. package/dist/{ListboxOptions-8kqvfp7z.stx → ComboboxOptions-sq5360ae.stx} +2 -2
  15. package/dist/CommandPalette-36mxf05w.stx +81 -0
  16. package/dist/CommandPaletteItem-mvk6q7a2.stx +27 -0
  17. package/dist/Dialog-hczpexs4.stx +37 -0
  18. package/dist/{Drawer-p7m351bn.stx → Drawer-xhevp5cw.stx} +29 -49
  19. package/dist/Dropdown-vvhemtc0.stx +82 -0
  20. package/dist/{DropdownButton-9w8zkfwj.stx → DropdownButton-wcz67dxy.stx} +12 -6
  21. package/dist/DropdownItem-c7rz08e5.stx +35 -0
  22. package/dist/{DropdownItems-aygjpxkx.stx → DropdownItems-1sxnd5qn.stx} +2 -2
  23. package/dist/EmailInput-vak3kkmk.stx +30 -0
  24. package/dist/Form-mas630hy.stx +95 -0
  25. package/dist/{Image-jhkm6w1f.stx → Image-yhxcvgzs.stx} +68 -100
  26. package/dist/Listbox-q49tnr90.stx +101 -0
  27. package/dist/{ListboxButton-spwx7513.stx → ListboxButton-keb8gm0q.stx} +12 -1
  28. package/dist/ListboxOption-e0dtv1gc.stx +49 -0
  29. package/dist/{ComboboxOptions-6b5ywc5x.stx → ListboxOptions-ejkatcfg.stx} +7 -3
  30. package/dist/{Login-rx9gyqhx.stx → Login-gepemsth.stx} +17 -19
  31. package/dist/Navigator-rk2a5wvk.stx +113 -0
  32. package/dist/Notification-tb9b525s.stx +78 -0
  33. package/dist/{NumberInput-nzpkx1ry.stx → NumberInput-drnvtqej.stx} +40 -53
  34. package/dist/{Pagination-h61eq390.stx → Pagination-n3d31cns.stx} +73 -108
  35. package/dist/PasswordInput-n02x6053.stx +142 -0
  36. package/dist/{PaymentMethods-j42jsk5x.stx → PaymentMethods-x4vrx9yb.stx} +21 -30
  37. package/dist/Popover-et2q44m7.stx +60 -0
  38. package/dist/{PopoverButton-fnaqc77g.stx → PopoverButton-mffzc9pr.stx} +12 -6
  39. package/dist/{PopoverPanel-y0vtf5w9.stx → PopoverPanel-054yh38h.stx} +6 -6
  40. package/dist/{Portal-s2q37yp0.stx → Portal-1vf14s4x.stx} +20 -37
  41. package/dist/{Progress-vmdkm06p.stx → Progress-yxcntr4x.stx} +36 -48
  42. package/dist/{Radio-04bs3d21.stx → Radio-cgjv2hb2.stx} +29 -34
  43. package/dist/RadioGroup-qxmnm3xm.stx +60 -0
  44. package/dist/RadioGroupOption-s1d6r221.stx +58 -0
  45. package/dist/SearchInput-pdx7agn0.stx +44 -0
  46. package/dist/{Select-g4mmvfv8.stx → Select-28y0pg83.stx} +23 -31
  47. package/dist/Sidebar-73vc78as.stx +236 -0
  48. package/dist/SidebarFooter-zsfsgcxb.stx +109 -0
  49. package/dist/SidebarHeader-7v174a9c.stx +122 -0
  50. package/dist/SidebarItem-3y3e8g2t.stx +92 -0
  51. package/dist/SidebarSection-z5ey6awe.stx +113 -0
  52. package/dist/{Signup-c4dyv6f3.stx → Signup-hxm5hwkr.stx} +26 -28
  53. package/dist/{StepperStep-en4r00zv.stx → StepperStep-wxgembat.stx} +9 -5
  54. package/dist/{SubscriptionCheckout-gawjzf3q.stx → SubscriptionCheckout-zy2ycrmw.stx} +99 -129
  55. package/dist/Switch-r5t5w04w.stx +70 -0
  56. package/dist/{TableHeader-ydys9rzz.stx → TableHeader-0eyzbqpz.stx} +10 -3
  57. package/dist/Tabs-bzvvn4ke.stx +126 -0
  58. package/dist/Teleport-tsx4bt4n.stx +65 -0
  59. package/dist/{TextInput-k2kfkgy1.stx → TextInput-kf084763.stx} +42 -59
  60. package/dist/{Textarea-szad57dz.stx → Textarea-xg4rr2xz.stx} +42 -54
  61. package/dist/{Tooltip-em7t551n.stx → Tooltip-m0tqd72e.stx} +34 -40
  62. package/dist/Transition-7smenaz8.stx +102 -0
  63. package/dist/{TwoFactorChallenge-an9yvxvq.stx → TwoFactorChallenge-y5m3nk79.stx} +49 -63
  64. package/dist/{Video-crxva65p.stx → Video-84j4pv6h.stx} +4 -4
  65. package/dist/VirtualList-fa7v5a3h.stx +67 -0
  66. package/dist/VirtualTable-f9crbfjr.stx +103 -0
  67. package/dist/components/CodeBlock.stx +1 -6
  68. package/dist/index.js +13 -13
  69. package/dist/ui/accordion/Accordion.stx +1 -3
  70. package/dist/ui/auth/Login.stx +0 -1
  71. package/dist/ui/auth/Signup.stx +0 -1
  72. package/dist/ui/auth/TwoFactorChallenge.stx +1 -3
  73. package/dist/ui/avatar/Avatar.stx +0 -2
  74. package/dist/ui/badge/Badge.stx +0 -1
  75. package/dist/ui/button/Button.stx +1 -2
  76. package/dist/ui/calendar/Calendar.stx +12 -2
  77. package/dist/ui/card/Card.stx +0 -2
  78. package/dist/ui/checkbox/Checkbox.stx +2 -2
  79. package/dist/ui/combobox/Combobox.stx +2 -1
  80. package/dist/ui/combobox/ComboboxButton.stx +1 -0
  81. package/dist/ui/combobox/ComboboxInput.stx +1 -4
  82. package/dist/ui/combobox/ComboboxOption.stx +2 -9
  83. package/dist/ui/combobox/ComboboxOptions.stx +1 -1
  84. package/dist/ui/command-palette/CommandPalette.stx +3 -6
  85. package/dist/ui/command-palette/CommandPaletteItem.stx +2 -7
  86. package/dist/ui/dialog/Dialog.stx +1 -3
  87. package/dist/ui/drawer/Drawer.stx +1 -3
  88. package/dist/ui/dropdown/Dropdown.stx +2 -5
  89. package/dist/ui/dropdown/DropdownButton.stx +1 -3
  90. package/dist/ui/dropdown/DropdownItem.stx +2 -7
  91. package/dist/ui/dropdown/DropdownItems.stx +1 -1
  92. package/dist/ui/form/Form.stx +0 -5
  93. package/dist/ui/image/Image.stx +1 -6
  94. package/dist/ui/input/EmailInput.stx +1 -1
  95. package/dist/ui/input/NumberInput.stx +0 -1
  96. package/dist/ui/input/PasswordInput.stx +1 -4
  97. package/dist/ui/input/SearchInput.stx +2 -2
  98. package/dist/ui/input/TextInput.stx +1 -2
  99. package/dist/ui/listbox/Listbox.stx +2 -1
  100. package/dist/ui/listbox/ListboxButton.stx +1 -0
  101. package/dist/ui/listbox/ListboxOption.stx +2 -9
  102. package/dist/ui/listbox/ListboxOptions.stx +1 -1
  103. package/dist/ui/navigator/Navigator.stx +4 -4
  104. package/dist/ui/notification/Notification.stx +1 -5
  105. package/dist/ui/pagination/Pagination.stx +1 -2
  106. package/dist/ui/payment/Checkout.stx +0 -4
  107. package/dist/ui/payment/PaymentMethods.stx +15 -2
  108. package/dist/ui/payment/SubscriptionCheckout.stx +3 -184
  109. package/dist/ui/popover/Popover.stx +2 -5
  110. package/dist/ui/popover/PopoverButton.stx +1 -3
  111. package/dist/ui/popover/PopoverPanel.stx +1 -1
  112. package/dist/ui/portal/Portal.stx +1 -0
  113. package/dist/ui/progress/Progress.stx +6 -1
  114. package/dist/ui/radio/Radio.stx +1 -1
  115. package/dist/ui/radio-group/RadioGroup.stx +2 -1
  116. package/dist/ui/radio-group/RadioGroupOption.stx +2 -9
  117. package/dist/ui/select/Select.stx +1 -1
  118. package/dist/ui/sidebar/Sidebar.stx +9 -26
  119. package/dist/ui/sidebar/SidebarFooter.stx +6 -21
  120. package/dist/ui/sidebar/SidebarHeader.stx +7 -18
  121. package/dist/ui/sidebar/SidebarItem.stx +4 -20
  122. package/dist/ui/sidebar/SidebarSection.stx +5 -18
  123. package/dist/ui/sidebar/index.d.ts +13 -1
  124. package/dist/ui/stepper/StepperStep.stx +1 -5
  125. package/dist/ui/switch/Switch.stx +4 -10
  126. package/dist/ui/table/TableHeader.stx +1 -1
  127. package/dist/ui/tabs/Tabs.stx +0 -1
  128. package/dist/ui/teleport/Teleport.stx +1 -0
  129. package/dist/ui/textarea/Textarea.stx +1 -1
  130. package/dist/ui/tooltip/Tooltip.stx +1 -2
  131. package/dist/ui/transition/Transition.stx +9 -16
  132. package/dist/ui/virtual-list/VirtualList.stx +2 -4
  133. package/dist/ui/virtual-table/VirtualTable.stx +1 -1
  134. package/package.json +3 -3
  135. package/src/components/CodeBlock.stx +26 -29
  136. package/src/components/Footer.stx +1 -1
  137. package/src/components/Hero.stx +1 -1
  138. package/src/components/Installation.stx +5 -7
  139. package/src/ui/accordion/Accordion.stx +48 -68
  140. package/src/ui/audio/Audio.stx +4 -4
  141. package/src/ui/auth/Login.stx +17 -19
  142. package/src/ui/auth/Signup.stx +26 -28
  143. package/src/ui/auth/TwoFactorChallenge.stx +49 -63
  144. package/src/ui/avatar/Avatar.stx +23 -34
  145. package/src/ui/badge/Badge.stx +11 -19
  146. package/src/ui/button/Button.stx +18 -33
  147. package/src/ui/calendar/Calendar.stx +93 -136
  148. package/src/ui/card/Card.stx +27 -33
  149. package/src/ui/checkbox/Checkbox.stx +36 -44
  150. package/src/ui/combobox/Combobox.stx +87 -4
  151. package/src/ui/combobox/ComboboxButton.stx +14 -2
  152. package/src/ui/combobox/ComboboxInput.stx +12 -5
  153. package/src/ui/combobox/ComboboxOption.stx +29 -32
  154. package/src/ui/combobox/ComboboxOptions.stx +7 -3
  155. package/src/ui/command-palette/CommandPalette.stx +70 -28
  156. package/src/ui/command-palette/CommandPaletteItem.stx +15 -20
  157. package/src/ui/dialog/Dialog.stx +28 -10
  158. package/src/ui/drawer/Drawer.stx +29 -49
  159. package/src/ui/dropdown/Dropdown.stx +69 -11
  160. package/src/ui/dropdown/DropdownButton.stx +12 -6
  161. package/src/ui/dropdown/DropdownItem.stx +18 -26
  162. package/src/ui/dropdown/DropdownItems.stx +2 -2
  163. package/src/ui/form/Form.stx +50 -164
  164. package/src/ui/heatmap/Heatmap.stx +16 -37
  165. package/src/ui/image/Image.stx +68 -100
  166. package/src/ui/input/EmailInput.stx +16 -27
  167. package/src/ui/input/NumberInput.stx +40 -53
  168. package/src/ui/input/PasswordInput.stx +64 -77
  169. package/src/ui/input/SearchInput.stx +27 -46
  170. package/src/ui/input/TextInput.stx +42 -59
  171. package/src/ui/listbox/Listbox.stx +91 -4
  172. package/src/ui/listbox/ListboxButton.stx +12 -1
  173. package/src/ui/listbox/ListboxOption.stx +30 -38
  174. package/src/ui/listbox/ListboxOptions.stx +2 -2
  175. package/src/ui/navigator/Navigator.stx +52 -77
  176. package/src/ui/notification/Notification.stx +46 -39
  177. package/src/ui/pagination/Pagination.stx +73 -108
  178. package/src/ui/payment/Checkout.stx +8 -16
  179. package/src/ui/payment/PaymentMethods.stx +21 -30
  180. package/src/ui/payment/SubscriptionCheckout.stx +99 -129
  181. package/src/ui/popover/Popover.stx +50 -14
  182. package/src/ui/popover/PopoverButton.stx +12 -6
  183. package/src/ui/popover/PopoverPanel.stx +6 -6
  184. package/src/ui/portal/Portal.stx +20 -37
  185. package/src/ui/progress/Progress.stx +36 -48
  186. package/src/ui/radio/Radio.stx +29 -34
  187. package/src/ui/radio-group/RadioGroup.stx +51 -4
  188. package/src/ui/radio-group/RadioGroupOption.stx +37 -30
  189. package/src/ui/select/Select.stx +23 -31
  190. package/src/ui/sidebar/Sidebar.stx +136 -188
  191. package/src/ui/sidebar/SidebarFooter.stx +49 -35
  192. package/src/ui/sidebar/SidebarHeader.stx +52 -30
  193. package/src/ui/sidebar/SidebarItem.stx +52 -78
  194. package/src/ui/sidebar/SidebarSection.stx +56 -51
  195. package/src/ui/sidebar/index.ts +21 -1
  196. package/src/ui/stepper/StepperStep.stx +9 -5
  197. package/src/ui/switch/Switch.stx +38 -42
  198. package/src/ui/table/TableHeader.stx +10 -3
  199. package/src/ui/tabs/Tabs.stx +68 -87
  200. package/src/ui/teleport/Teleport.stx +23 -59
  201. package/src/ui/textarea/Textarea.stx +42 -54
  202. package/src/ui/tooltip/Tooltip.stx +34 -40
  203. package/src/ui/transition/Transition.stx +76 -148
  204. package/src/ui/video/Video.stx +4 -4
  205. package/src/ui/virtual-list/VirtualList.stx +45 -61
  206. package/src/ui/virtual-table/VirtualTable.stx +62 -72
  207. package/dist/Accordion-sbfra0mz.stx +0 -108
  208. package/dist/Calendar-58nnkdh8.stx +0 -232
  209. package/dist/Combobox-th5ebw62.stx +0 -13
  210. package/dist/ComboboxOption-an9zyan6.stx +0 -52
  211. package/dist/CommandPalette-kwmdf2np.stx +0 -39
  212. package/dist/CommandPaletteItem-zx2fbpts.stx +0 -32
  213. package/dist/Dialog-rgmj8q2j.stx +0 -19
  214. package/dist/Dropdown-jz4jy0n3.stx +0 -24
  215. package/dist/DropdownItem-wagdspb8.stx +0 -43
  216. package/dist/EmailInput-ajsp9vw6.stx +0 -41
  217. package/dist/Form-1mdmx9b6.stx +0 -209
  218. package/dist/Listbox-pqqh72g8.stx +0 -14
  219. package/dist/ListboxOption-7nxzaexq.stx +0 -57
  220. package/dist/Navigator-aay8bjab.stx +0 -138
  221. package/dist/Notification-gk33gv7b.stx +0 -71
  222. package/dist/PasswordInput-zv4hm43j.stx +0 -155
  223. package/dist/Popover-469gbt6r.stx +0 -24
  224. package/dist/RadioGroup-bvb1mrhd.stx +0 -13
  225. package/dist/RadioGroupOption-cpdwgnhw.stx +0 -51
  226. package/dist/SearchInput-2521m475.stx +0 -63
  227. package/dist/Sidebar-40ckbzh8.stx +0 -288
  228. package/dist/SidebarFooter-hnth56mg.stx +0 -95
  229. package/dist/SidebarHeader-3wrte2p2.stx +0 -100
  230. package/dist/SidebarItem-zqtvvzpc.stx +0 -118
  231. package/dist/SidebarSection-3etwnbjr.stx +0 -108
  232. package/dist/Switch-036j9vm1.stx +0 -74
  233. package/dist/Tabs-svh721m0.stx +0 -145
  234. package/dist/Teleport-qfch3w0b.stx +0 -101
  235. package/dist/Transition-0hmr6zxb.stx +0 -174
  236. package/dist/VirtualList-cndhjejh.stx +0 -83
  237. package/dist/VirtualTable-ng0b48yp.stx +0 -113
@@ -0,0 +1,67 @@
1
+ <script server>
2
+ export const items = $props.items || []
3
+ export const itemHeight = $props.itemHeight || 50
4
+ export const height = $props.height || 400
5
+ export const overscan = $props.overscan || 3
6
+ export const className = $props.className || ''
7
+
8
+ export const totalHeight = items.length * itemHeight
9
+ export const containerClasses = `overflow-auto ${className}`.trim()
10
+ </script>
11
+
12
+ <script client>
13
+ const items = {{ items }}
14
+ const itemHeight = {{ itemHeight }}
15
+ const height = {{ height }}
16
+ const overscan = {{ overscan }}
17
+
18
+ const scrollTop = state(0)
19
+
20
+ const visibleRange = derived(() => {
21
+ const top = scrollTop()
22
+ const startIndex = Math.max(0, Math.floor(top / itemHeight) - overscan)
23
+ const endIndex = Math.min(items.length - 1, Math.floor((top + height) / itemHeight) + overscan)
24
+ return { startIndex, endIndex }
25
+ })
26
+
27
+ const visibleItems = derived(() => {
28
+ const { startIndex, endIndex } = visibleRange()
29
+ return items.slice(startIndex, endIndex + 1).map((item, i) => ({
30
+ item,
31
+ index: startIndex + i,
32
+ top: (startIndex + i) * itemHeight,
33
+ }))
34
+ })
35
+
36
+ let ticking = false
37
+ function onScroll(event) {
38
+ const target = event.target
39
+ if (!ticking) {
40
+ requestAnimationFrame(() => {
41
+ scrollTop.set(target.scrollTop)
42
+ ticking = false
43
+ })
44
+ ticking = true
45
+ }
46
+ }
47
+
48
+ defineExpose({ scrollTop, scrollTo: (top) => scrollTop.set(top) })
49
+ </script>
50
+
51
+ <div
52
+ class="{{ containerClasses }}"
53
+ style="height: {{ height }}px"
54
+ @scroll="onScroll($event)"
55
+ >
56
+ <div class="relative" style="height: {{ totalHeight }}px">
57
+ <div
58
+ :for="entry in visibleItems()"
59
+ :key="entry.index"
60
+ class="absolute left-0 right-0"
61
+ :style="`top: ${entry.top}px; height: {{ itemHeight }}px`"
62
+ :data-index="entry.index"
63
+ >
64
+ <slot :item="entry.item" :index="entry.index" />
65
+ </div>
66
+ </div>
67
+ </div>
@@ -0,0 +1,103 @@
1
+ <script server>
2
+ export const columns = $props.columns || []
3
+ export const data = $props.data || []
4
+ export const rowHeight = $props.rowHeight || 48
5
+ export const height = $props.height || 600
6
+ export const headerHeight = $props.headerHeight || 56
7
+ export const overscan = $props.overscan || 5
8
+ export const striped = $props.striped || false
9
+ export const hoverable = $props.hoverable ?? true
10
+ export const className = $props.className || ''
11
+
12
+ export const totalHeight = data.length * rowHeight
13
+ export const containerClasses = `border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden ${className}`.trim()
14
+ export const headerClasses = `bg-gray-50 dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 flex`.trim()
15
+ export const headerCellClasses = `px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider`.trim()
16
+ export const bodyClasses = `overflow-auto bg-white dark:bg-gray-900`.trim()
17
+ export const rowClasses = `absolute left-0 right-0 flex border-b border-gray-200 dark:border-gray-700 ${hoverable ? 'hover:bg-gray-50 dark:hover:bg-gray-800' : ''}`.trim()
18
+ export const cellClasses = `px-6 py-4 text-sm text-gray-900 dark:text-gray-100`.trim()
19
+ </script>
20
+
21
+ <script client>
22
+ const data = {{ data }}
23
+ const columns = {{ columns }}
24
+ const rowHeight = {{ rowHeight }}
25
+ const height = {{ height }}
26
+ const headerHeight = {{ headerHeight }}
27
+ const overscan = {{ overscan }}
28
+ const striped = {{ striped }}
29
+
30
+ const scrollTop = state(0)
31
+
32
+ const visibleRows = derived(() => {
33
+ const top = scrollTop()
34
+ const startIndex = Math.max(0, Math.floor(top / rowHeight) - overscan)
35
+ const endIndex = Math.min(data.length - 1, Math.floor((top + height - headerHeight) / rowHeight) + overscan)
36
+ const out = []
37
+ for (let i = startIndex; i <= endIndex; i++) {
38
+ out.push({
39
+ row: data[i],
40
+ index: i,
41
+ top: i * rowHeight,
42
+ striped: striped && (i % 2 === 1),
43
+ })
44
+ }
45
+ return out
46
+ })
47
+
48
+ function getCellValue(row, column) {
49
+ if (column.render) return column.render(row[column.key], row)
50
+ return row[column.key]
51
+ }
52
+
53
+ let ticking = false
54
+ function onScroll(event) {
55
+ const target = event.target
56
+ if (!ticking) {
57
+ requestAnimationFrame(() => {
58
+ scrollTop.set(target.scrollTop)
59
+ ticking = false
60
+ })
61
+ ticking = true
62
+ }
63
+ }
64
+
65
+ defineExpose({ scrollTop })
66
+ </script>
67
+
68
+ <div class="{{ containerClasses }}">
69
+ <div class="{{ headerClasses }}" style="height: {{ headerHeight }}px">
70
+ @foreach(column in columns)
71
+ <div
72
+ class="{{ headerCellClasses }}"
73
+ style="flex: {{ column.width || 1 }}; min-width: {{ column.minWidth || 'auto' }}"
74
+ >
75
+ {{ column.label || column.key }}
76
+ </div>
77
+ @endforeach
78
+ </div>
79
+
80
+ <div
81
+ class="{{ bodyClasses }}"
82
+ style="height: {{ height - headerHeight }}px"
83
+ @scroll="onScroll($event)"
84
+ >
85
+ <div class="relative" style="height: {{ totalHeight }}px">
86
+ <div
87
+ :for="entry in visibleRows()"
88
+ :key="entry.index"
89
+ :class="entry.striped ? '{{ rowClasses }} bg-gray-50 dark:bg-gray-800' : '{{ rowClasses }}'"
90
+ :style="`top: ${entry.top}px; height: {{ rowHeight }}px`"
91
+ :data-index="entry.index"
92
+ >
93
+ <div
94
+ :for="column in columns"
95
+ :key="column.key"
96
+ class="{{ cellClasses }}"
97
+ :style="`flex: ${column.width || 1}; min-width: ${column.minWidth || 'auto'}`"
98
+ x-html="getCellValue(entry.row, column)"
99
+ ></div>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
@@ -1,12 +1,7 @@
1
- export declare function copyToClipboard(): Promise<void>;
2
1
  export declare const code: unknown;
3
2
  export declare const language: unknown;
4
3
  export declare const theme: unknown;
5
4
  export declare const lineNumbers: unknown;
6
5
  export declare const copyable: unknown;
7
6
  export declare const className: unknown;
8
- /** @defaultValue '' */
9
- export declare let highlightedCode: string;
10
- /** @defaultValue false */
11
- export declare let copied: boolean;
12
- declare class AnonymousClass {}
7
+ export declare const highlightedCode: () => unknown;
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  // @bun
2
- function fa(e){let{code:s,onSuccess:t,onError:r,timeout:a=2000}=e,o=!1,i=null;return{copied:o,copy:async()=>{try{if(!navigator.clipboard)throw Error("Clipboard API not available");await navigator.clipboard.writeText(s),o=!0,t?.(),i=setTimeout(()=>{o=!1,i=null},a)}catch(c){let u=c instanceof Error?c:Error("Failed to copy code");r?.(u),console.error("Failed to copy code:",u)}},reset:()=>{if(o=!1,i)clearTimeout(i),i=null}}}async function ba(e){try{return await navigator.clipboard.writeText(e),!0}catch(s){return console.error("Failed to copy to clipboard:",s),!1}}function le(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function X(e){return e==="system"?le():e}function ma(e={}){let{storageKey:s="theme",defaultTheme:t="system"}=e,r=t;if(typeof window<"u"&&typeof localStorage<"u"){let d=localStorage.getItem(s);if(d)r=d}let a=X(r)==="dark",o=(d)=>{let c=X(d);if(typeof document<"u")if(c==="dark")document.documentElement.classList.add("dark");else document.documentElement.classList.remove("dark");if(typeof localStorage<"u")localStorage.setItem(s,d)},i=(d)=>{r=d,o(d)},n=()=>{let c=X(r)==="dark"?"light":"dark";i(c)};if(o(r),typeof window<"u"&&r==="system")window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(d)=>{if(r==="system")o("system")});return{isDark:a,theme:r,toggle:n,setTheme:i}}function de(e,s){if(typeof document>"u")return;document.title=s?s.replace("%s",e):e}function S(e,s,t=!1){if(typeof document>"u")return;let r=t?"property":"name",a=document.querySelector(`meta[${r}="${e}"]`);if(!a)a=document.createElement("meta"),a.setAttribute(r,e),document.head.appendChild(a);a.setAttribute("content",s)}function ce(e,s){if(typeof document>"u")return;let t=document.querySelector(`link[rel="${e}"]`);if(!t)t=document.createElement("link"),t.setAttribute("rel",e),document.head.appendChild(t);t.setAttribute("href",s)}function va(e){let{title:s,description:t,author:r,keywords:a,ogImage:o,ogImageWidth:i,ogImageHeight:n,twitterCard:d="summary_large_image",twitterSite:c,twitterCreator:u,canonical:p}=e;if(s)de(s),S("og:title",s,!0),S("twitter:title",s);if(t)S("description",t),S("og:description",t,!0),S("twitter:description",t);if(r)S("author",r);if(a&&a.length>0)S("keywords",a.join(", "));if(o)S("og:image",o,!0),S("twitter:image",o);if(i)S("og:image:width",i,!0);if(n)S("og:image:height",n,!0);if(S("twitter:card",d),c)S("twitter:site",c);if(u)S("twitter:creator",u);if(p)ce("canonical",p);if(S("og:type","website",!0),typeof window<"u")S("og:url",window.location.href,!0)}function Ca(e){let s=[],{title:t,description:r,author:a,keywords:o,ogImage:i,ogImageWidth:n,ogImageHeight:d,twitterCard:c="summary_large_image",twitterSite:u,twitterCreator:p,canonical:x}=e;if(t)s.push(`<title>${N(t)}</title>`),s.push(`<meta property="og:title" content="${N(t)}" />`),s.push(`<meta name="twitter:title" content="${N(t)}" />`);if(r)s.push(`<meta name="description" content="${N(r)}" />`),s.push(`<meta property="og:description" content="${N(r)}" />`),s.push(`<meta name="twitter:description" content="${N(r)}" />`);if(a)s.push(`<meta name="author" content="${N(a)}" />`);if(o&&o.length>0)s.push(`<meta name="keywords" content="${N(o.join(", "))}" />`);if(i)s.push(`<meta property="og:image" content="${N(i)}" />`),s.push(`<meta name="twitter:image" content="${N(i)}" />`);if(n)s.push(`<meta property="og:image:width" content="${N(n)}" />`);if(d)s.push(`<meta property="og:image:height" content="${N(d)}" />`);if(s.push(`<meta name="twitter:card" content="${N(c)}" />`),u)s.push(`<meta name="twitter:site" content="${N(u)}" />`);if(p)s.push(`<meta name="twitter:creator" content="${N(p)}" />`);if(x)s.push(`<link rel="canonical" href="${N(x)}" />`);return s.push('<meta property="og:type" content="website" />'),s.join(`
3
- `)}function N(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function wa(e,s,t={}){let{enabled:r=!0,ignore:a=[]}=t,o=(i)=>{if(!r||!e)return;let n=i.target;if(!e.contains(n)){if(!a.some((c)=>{let u=document.querySelectorAll(c);return Array.from(u).some((p)=>p.contains(n))}))s(i)}};if(typeof document<"u")document.addEventListener("mousedown",o),document.addEventListener("touchstart",o);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}}function ka(e,s={}){let{enabled:t=!0,initialFocus:r=null,returnFocus:a=!0,fallbackFocus:o=null}=s,i=null,n=!1;function d(){if(!e)return[];let f=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(f))}function c(f){if(!t||!n||!e)return;let C=d();if(C.length===0){f.preventDefault();return}let v=C[0],k=C[C.length-1];if(f.shiftKey){if(document.activeElement===v||document.activeElement===e)f.preventDefault(),k.focus()}else if(document.activeElement===k)f.preventDefault(),v.focus()}function u(f){if(f.key==="Escape"&&t&&n)x()}function p(){if(!t||!e||n)return;if(i=document.activeElement,r)r.focus();else{let f=d();if(f.length>0)f[0].focus();else if(o)o.focus();else e.focus()}document.addEventListener("keydown",c),document.addEventListener("keydown",u),n=!0}function x(){if(!n)return;if(document.removeEventListener("keydown",c),document.removeEventListener("keydown",u),a&&i)i.focus();n=!1}return{activate:p,deactivate:x}}function Na(e,s={}){let{enabled:t=!0,preventDefault:r=!0,stopPropagation:a=!1,target:o=typeof document<"u"?document:null}=s,i=Array.isArray(e)?e:[e],n=(d)=>{if(!t)return;i.forEach((c)=>{if(!(Array.isArray(c.key)?c.key:[c.key]).some((x)=>x.toLowerCase()===d.key.toLowerCase()))return;if(c.ctrl!==void 0&&c.ctrl!==d.ctrlKey)return;if(c.shift!==void 0&&c.shift!==d.shiftKey)return;if(c.alt!==void 0&&c.alt!==d.altKey)return;if(c.meta!==void 0&&c.meta!==d.metaKey)return;if(r)d.preventDefault();if(a)d.stopPropagation();c.handler(d)})};if(o)o.addEventListener("keydown",n);return()=>{if(o)o.removeEventListener("keydown",n)}}var za={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function La(e,s,t={}){let{serializer:r=JSON.stringify,deserializer:a=JSON.parse,onError:o=console.error}=t,i=s;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)i=a(p)}}catch(p){o(p)}let n=i,d=new Set;function c(p){try{let x=typeof p==="function"?p(n):p;if(n=x,typeof window<"u")window.localStorage.setItem(e,r(x));d.forEach((f)=>f(x))}catch(x){o(x)}}function u(){try{if(n=s,typeof window<"u")window.localStorage.removeItem(e);d.forEach((p)=>p(s))}catch(p){o(p)}}if(typeof window<"u"){let p=(x)=>{if(x.key===e&&x.newValue!==null)try{let f=a(x.newValue);n=f,d.forEach((C)=>C(f))}catch(f){o(f)}else if(x.key===e&&x.newValue===null)n=s,d.forEach((f)=>f(s))};window.addEventListener("storage",p)}return{value:n,setValue:c,removeValue:u}}function j(e,s={}){let{defaultValue:t=!1}=s,r=t,a=null;if(typeof window<"u"&&"matchMedia"in window){a=window.matchMedia(e),r=a.matches;let i=(n)=>{r=n.matches};if(a.addEventListener)a.addEventListener("change",i);else a.addListener(i)}function o(){if(a)r=a.matches}return{matches:r,updateMatches:o}}var q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function Ia(e){return j(q[e])}function Ta(){return j(q.mobile)}function Pa(){return j(q.desktop)}function Ba(){return j(q.dark)}function ja(){return j(q.reducedMotion)}var ge="./Accordion-sbfra0mz.stx";var fe="./Audio-vdmg1258.stx";var xe="./Login-rx9gyqhx.stx";var he="./Signup-c4dyv6f3.stx";var Ce="./TwoFactorChallenge-an9yvxvq.stx";var we="./Avatar-365cvrh4.stx";var ke="./Badge-8m3qete4.stx";var Ne="./Breadcrumb-7f7s4d02.stx";import R from"process";var ze="https://stacksjs.com/components";class z extends Error{component;context;constructor(e,s,t={}){let r=z.formatMessage(e,s,t);super(r);if(this.name="ComponentError",this.component=e,this.context={component:e,...t},Error.captureStackTrace)Error.captureStackTrace(this,z)}static formatMessage(e,s,t){let r=`[${e}] ${s}`;if(t.prop)r+=`
4
- Prop: "${t.prop}"`;if(t.received!==void 0)r+=`
5
- Received: ${JSON.stringify(t.received)}`;if(t.expected!==void 0){let a=Array.isArray(t.expected)?t.expected.map((o)=>JSON.stringify(o)).join(", "):JSON.stringify(t.expected);r+=`
6
- Expected: ${a}`}if(t.details)r+=`
7
- Details: ${t.details}`;if(t.docsUrl)r+=`
8
- Documentation: ${t.docsUrl}`;else if(e)r+=`
9
- Documentation: ${ze}/${e.toLowerCase()}`;return r}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var B={invalidProp(e,s,t,r){return new z(e,`Invalid prop value for "${s}"`,{prop:s,received:t,expected:r,details:Array.isArray(r)?`The "${s}" prop must be one of the allowed values`:`The "${s}" prop does not match the expected type`})},requiredProp(e,s){return new z(e,`Required prop "${s}" is missing`,{prop:s,details:`The "${s}" prop is required for ${e} to function correctly`})},invalidType(e,s,t,r){return new z(e,`Invalid type for prop "${s}"`,{prop:s,received:typeof t,expected:r,details:`Expected "${s}" to be of type ${r}, but received ${typeof t}`})},componentNotFound(e){return new z("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,s,t){return new z(e,"Invalid children",{received:typeof s,expected:t,details:`${e} expects ${t} as children`})},stateUpdate(e,s,t){return new z(e,`Failed to update state "${s}"`,{details:t.message})},eventHandler(e,s,t){return new z(e,`Error in "${s}" event handler`,{details:t.message})},render(e,s){return new z(e,"Failed to render component",{details:s.message})}},A=null;function io(e){A=e}function no(){A=null}function O(e,s={}){let{throwError:t=!0,logError:r=!0}=s;if(r&&R.env.NODE_ENV!=="production"){if(console.error("Component Error:",e),e instanceof z)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(A)try{A(e)}catch(a){console.error("Error in error handler:",a)}if(t)throw e}function re(e,s,t){return(...r)=>{try{let a=e(...r);if(a instanceof Promise)return a.catch((o)=>{let i=B.eventHandler(s,t,o);throw O(i,{throwError:!1}),i});return a}catch(a){let o=B.eventHandler(s,t,a);throw O(o,{throwError:!1}),o}}}function De(e,s){if(!e)throw s}function Le(e,s,t={}){if(R.env.NODE_ENV==="production")return;let r=z.formatMessage(e,s,t);console.warn(`\u26A0\uFE0F ${r}`)}function lo(e,s){if(R.env.NODE_ENV==="production")return;De(e,s)}function co(e){let s=typeof R<"u"&&R.env.DEBUG==="true";return{log(...t){if(s)console.log(`[${e}]`,...t)},warn(t,r){Le(e,t,r)},error(t,r){let a=new z(e,t,r);O(a,{throwError:!1})}}}function po(e,s,t){try{return s()}catch(r){let a=B.render(e,r);return O(a,{throwError:!1}),t}}import Me from"process";var F=Me.env.NODE_ENV!=="production";class ${validate;message;isRequired;constructor(e,s,t=!1){this.validate=e;this.message=s;this.isRequired=t}get required(){return new $(this.validate,this.message,!0)}}var l={string:new $((e)=>typeof e==="string",(e,s,t)=>`Invalid prop \`${s}\` of type \`${typeof e}\` supplied to \`${t}\`, expected \`string\`.`),number:new $((e)=>typeof e==="number"&&!Number.isNaN(e),(e,s,t)=>`Invalid prop \`${s}\` of type \`${typeof e}\` supplied to \`${t}\`, expected \`number\`.`),boolean:new $((e)=>typeof e==="boolean",(e,s,t)=>`Invalid prop \`${s}\` of type \`${typeof e}\` supplied to \`${t}\`, expected \`boolean\`.`),func:new $((e)=>typeof e==="function",(e,s,t)=>`Invalid prop \`${s}\` of type \`${typeof e}\` supplied to \`${t}\`, expected \`function\`.`),object:new $((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,s,t)=>`Invalid prop \`${s}\` of type \`${typeof e}\` supplied to \`${t}\`, expected \`object\`.`),array:new $((e)=>Array.isArray(e),(e,s,t)=>`Invalid prop \`${s}\` of type \`${typeof e}\` supplied to \`${t}\`, expected \`array\`.`),any:new $(()=>!0,()=>""),oneOf(e){return new $((s)=>e.includes(s),(s,t,r)=>`Invalid prop \`${t}\` of value \`${s}\` supplied to \`${r}\`, expected one of [${e.map((a)=>JSON.stringify(a)).join(", ")}].`)},oneOfType(e){return new $((s,t,r)=>e.some((a)=>a.validate(s,t,r)),(s,t,r)=>`Invalid prop \`${t}\` supplied to \`${r}\`, expected one of the specified types.`)},arrayOf(e){return new $((s,t,r)=>{if(!Array.isArray(s))return!1;return s.every((a,o)=>e.validate(a,`${t}[${o}]`,r))},(s,t,r)=>`Invalid prop \`${t}\` supplied to \`${r}\`, expected array of specified type.`)},shape(e){return new $((s,t,r)=>{if(typeof s!=="object"||s===null||Array.isArray(s))return!1;for(let[a,o]of Object.entries(e)){if(o.isRequired&&!(a in s))return!1;if(a in s&&!o.validate(s[a],`${t}.${a}`,r))return!1}return!0},(s,t,r)=>`Invalid prop \`${t}\` supplied to \`${r}\`, expected object matching specified shape.`)},instanceOf(e){return new $((s)=>s instanceof e,(s,t,r)=>`Invalid prop \`${t}\` supplied to \`${r}\`, expected instance of \`${e.name}\`.`)},custom(e,s){return new $(e,typeof s==="string"?()=>s:s)},min(e){return new $((s)=>typeof s==="number"&&s>=e,(s,t,r)=>`Invalid prop \`${t}\` of value \`${s}\` supplied to \`${r}\`, expected value >= ${e}.`)},max(e){return new $((s)=>typeof s==="number"&&s<=e,(s,t,r)=>`Invalid prop \`${t}\` of value \`${s}\` supplied to \`${r}\`, expected value <= ${e}.`)},range(e,s){return new $((t)=>typeof t==="number"&&t>=e&&t<=s,(t,r,a)=>`Invalid prop \`${r}\` of value \`${t}\` supplied to \`${a}\`, expected value between ${e} and ${s}.`)},pattern(e){return new $((s)=>typeof s==="string"&&e.test(s),(s,t,r)=>`Invalid prop \`${t}\` of value \`${s}\` supplied to \`${r}\`, expected value matching pattern ${e}.`)},email:new $((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,s,t)=>`Invalid prop \`${s}\` of value \`${e}\` supplied to \`${t}\`, expected valid email address.`),url:new $((e)=>{if(typeof e!=="string")return!1;try{let s=new URL(e);return!0}catch{return!1}},(e,s,t)=>`Invalid prop \`${s}\` of value \`${e}\` supplied to \`${t}\`, expected valid URL.`)};function Ie(e,s,t,r={}){let{throwOnError:a=!1,logWarnings:o=F}=r,i=[];if(!F)return{valid:!0,errors:[]};for(let[n,d]of Object.entries(t)){let c=s[n],u=c===void 0;if(d.isRequired&&u){let p=`Required prop \`${n}\` was not specified in \`${e}\`.`;i.push(p);continue}if(u)continue;if(!d.validate(c,n,e)){let p=d.message(c,n,e);i.push(p)}}if(i.length>0){if(o)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),i.forEach((n)=>console.warn(n)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
2
+ function bo(e){let{code:t,onSuccess:s,onError:r,timeout:o=2000}=e,a=!1,i=null;return{copied:a,copy:async()=>{try{if(!navigator.clipboard)throw Error("Clipboard API not available");await navigator.clipboard.writeText(t),a=!0,s?.(),i=setTimeout(()=>{a=!1,i=null},o)}catch(c){let u=c instanceof Error?c:Error("Failed to copy code");r?.(u),console.error("Failed to copy code:",u)}},reset:()=>{if(a=!1,i)clearTimeout(i),i=null}}}async function fo(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Failed to copy to clipboard:",t),!1}}function le(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Z(e){return e==="system"?le():e}function vo(e={}){let{storageKey:t="theme",defaultTheme:s="system"}=e,r=s;if(typeof window<"u"&&typeof localStorage<"u"){let d=localStorage.getItem(t);if(d)r=d}let o=Z(r)==="dark",a=(d)=>{let c=Z(d);if(typeof document<"u")if(c==="dark")document.documentElement.classList.add("dark");else document.documentElement.classList.remove("dark");if(typeof localStorage<"u")localStorage.setItem(t,d)},i=(d)=>{r=d,a(d)},n=()=>{let c=Z(r)==="dark"?"light":"dark";i(c)};if(a(r),typeof window<"u"&&r==="system")window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(d)=>{if(r==="system")a("system")});return{isDark:o,theme:r,toggle:n,setTheme:i}}function de(e,t){if(typeof document>"u")return;document.title=t?t.replace("%s",e):e}function S(e,t,s=!1){if(typeof document>"u")return;let r=s?"property":"name",o=document.querySelector(`meta[${r}="${e}"]`);if(!o)o=document.createElement("meta"),o.setAttribute(r,e),document.head.appendChild(o);o.setAttribute("content",t)}function ce(e,t){if(typeof document>"u")return;let s=document.querySelector(`link[rel="${e}"]`);if(!s)s=document.createElement("link"),s.setAttribute("rel",e),document.head.appendChild(s);s.setAttribute("href",t)}function yo(e){let{title:t,description:s,author:r,keywords:o,ogImage:a,ogImageWidth:i,ogImageHeight:n,twitterCard:d="summary_large_image",twitterSite:c,twitterCreator:u,canonical:p}=e;if(t)de(t),S("og:title",t,!0),S("twitter:title",t);if(s)S("description",s),S("og:description",s,!0),S("twitter:description",s);if(r)S("author",r);if(o&&o.length>0)S("keywords",o.join(", "));if(a)S("og:image",a,!0),S("twitter:image",a);if(i)S("og:image:width",i,!0);if(n)S("og:image:height",n,!0);if(S("twitter:card",d),c)S("twitter:site",c);if(u)S("twitter:creator",u);if(p)ce("canonical",p);if(S("og:type","website",!0),typeof window<"u")S("og:url",window.location.href,!0)}function wo(e){let t=[],{title:s,description:r,author:o,keywords:a,ogImage:i,ogImageWidth:n,ogImageHeight:d,twitterCard:c="summary_large_image",twitterSite:u,twitterCreator:p,canonical:f}=e;if(s)t.push(`<title>${z(s)}</title>`),t.push(`<meta property="og:title" content="${z(s)}" />`),t.push(`<meta name="twitter:title" content="${z(s)}" />`);if(r)t.push(`<meta name="description" content="${z(r)}" />`),t.push(`<meta property="og:description" content="${z(r)}" />`),t.push(`<meta name="twitter:description" content="${z(r)}" />`);if(o)t.push(`<meta name="author" content="${z(o)}" />`);if(a&&a.length>0)t.push(`<meta name="keywords" content="${z(a.join(", "))}" />`);if(i)t.push(`<meta property="og:image" content="${z(i)}" />`),t.push(`<meta name="twitter:image" content="${z(i)}" />`);if(n)t.push(`<meta property="og:image:width" content="${z(n)}" />`);if(d)t.push(`<meta property="og:image:height" content="${z(d)}" />`);if(t.push(`<meta name="twitter:card" content="${z(c)}" />`),u)t.push(`<meta name="twitter:site" content="${z(u)}" />`);if(p)t.push(`<meta name="twitter:creator" content="${z(p)}" />`);if(f)t.push(`<link rel="canonical" href="${z(f)}" />`);return t.push('<meta property="og:type" content="website" />'),t.join(`
3
+ `)}function z(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function $o(e,t,s={}){let{enabled:r=!0,ignore:o=[]}=s,a=(i)=>{if(!r||!e)return;let n=i.target;if(!e.contains(n)){if(!o.some((c)=>{let u=document.querySelectorAll(c);return Array.from(u).some((p)=>p.contains(n))}))t(i)}};if(typeof document<"u")document.addEventListener("mousedown",a),document.addEventListener("touchstart",a);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",a),document.removeEventListener("touchstart",a)}}function So(e,t={}){let{enabled:s=!0,initialFocus:r=null,returnFocus:o=!0,fallbackFocus:a=null}=t,i=null,n=!1;function d(){if(!e)return[];let x=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(x))}function c(x){if(!s||!n||!e)return;let y=d();if(y.length===0){x.preventDefault();return}let h=y[0],k=y[y.length-1];if(x.shiftKey){if(document.activeElement===h||document.activeElement===e)x.preventDefault(),k.focus()}else if(document.activeElement===k)x.preventDefault(),h.focus()}function u(x){if(x.key==="Escape"&&s&&n)f()}function p(){if(!s||!e||n)return;if(i=document.activeElement,r)r.focus();else{let x=d();if(x.length>0)x[0].focus();else if(a)a.focus();else e.focus()}document.addEventListener("keydown",c),document.addEventListener("keydown",u),n=!0}function f(){if(!n)return;if(document.removeEventListener("keydown",c),document.removeEventListener("keydown",u),o&&i)i.focus();n=!1}return{activate:p,deactivate:f}}function No(e,t={}){let{enabled:s=!0,preventDefault:r=!0,stopPropagation:o=!1,target:a=typeof document<"u"?document:null}=t,i=Array.isArray(e)?e:[e],n=(d)=>{if(!s)return;i.forEach((c)=>{if(!(Array.isArray(c.key)?c.key:[c.key]).some((f)=>f.toLowerCase()===d.key.toLowerCase()))return;if(c.ctrl!==void 0&&c.ctrl!==d.ctrlKey)return;if(c.shift!==void 0&&c.shift!==d.shiftKey)return;if(c.alt!==void 0&&c.alt!==d.altKey)return;if(c.meta!==void 0&&c.meta!==d.metaKey)return;if(r)d.preventDefault();if(o)d.stopPropagation();c.handler(d)})};if(a)a.addEventListener("keydown",n);return()=>{if(a)a.removeEventListener("keydown",n)}}var Io={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function Lo(e,t,s={}){let{serializer:r=JSON.stringify,deserializer:o=JSON.parse,onError:a=console.error}=s,i=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)i=o(p)}}catch(p){a(p)}let n=i,d=new Set;function c(p){try{let f=typeof p==="function"?p(n):p;if(n=f,typeof window<"u")window.localStorage.setItem(e,r(f));d.forEach((x)=>x(f))}catch(f){a(f)}}function u(){try{if(n=t,typeof window<"u")window.localStorage.removeItem(e);d.forEach((p)=>p(t))}catch(p){a(p)}}if(typeof window<"u"){let p=(f)=>{if(f.key===e&&f.newValue!==null)try{let x=o(f.newValue);n=x,d.forEach((y)=>y(x))}catch(x){a(x)}else if(f.key===e&&f.newValue===null)n=t,d.forEach((x)=>x(t))};window.addEventListener("storage",p)}return{value:n,setValue:c,removeValue:u}}function O(e,t={}){let{defaultValue:s=!1}=t,r=s,o=null;if(typeof window<"u"&&"matchMedia"in window){o=window.matchMedia(e),r=o.matches;let i=(n)=>{r=n.matches};if(o.addEventListener)o.addEventListener("change",i);else o.addListener(i)}function a(){if(o)r=o.matches}return{matches:r,updateMatches:a}}var q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function Eo(e){return O(q[e])}function To(){return O(q.mobile)}function Mo(){return O(q.desktop)}function Oo(){return O(q.dark)}function qo(){return O(q.reducedMotion)}var ge="./Accordion-19x8q4rj.stx";var xe="./Audio-hjywk3qc.stx";var fe="./Login-gepemsth.stx";var ve="./Signup-hxm5hwkr.stx";var ye="./TwoFactorChallenge-y5m3nk79.stx";var Ce="./Avatar-h3jmwcq0.stx";var ke="./Badge-k8dy3d53.stx";var ze="./Breadcrumb-7f7s4d02.stx";import B from"process";var Ne="https://stacksjs.com/components";class N extends Error{component;context;constructor(e,t,s={}){let r=N.formatMessage(e,t,s);super(r);if(this.name="ComponentError",this.component=e,this.context={component:e,...s},Error.captureStackTrace)Error.captureStackTrace(this,N)}static formatMessage(e,t,s){let r=`[${e}] ${t}`;if(s.prop)r+=`
4
+ Prop: "${s.prop}"`;if(s.received!==void 0)r+=`
5
+ Received: ${JSON.stringify(s.received)}`;if(s.expected!==void 0){let o=Array.isArray(s.expected)?s.expected.map((a)=>JSON.stringify(a)).join(", "):JSON.stringify(s.expected);r+=`
6
+ Expected: ${o}`}if(s.details)r+=`
7
+ Details: ${s.details}`;if(s.docsUrl)r+=`
8
+ Documentation: ${s.docsUrl}`;else if(e)r+=`
9
+ Documentation: ${Ne}/${e.toLowerCase()}`;return r}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var M={invalidProp(e,t,s,r){return new N(e,`Invalid prop value for "${t}"`,{prop:t,received:s,expected:r,details:Array.isArray(r)?`The "${t}" prop must be one of the allowed values`:`The "${t}" prop does not match the expected type`})},requiredProp(e,t){return new N(e,`Required prop "${t}" is missing`,{prop:t,details:`The "${t}" prop is required for ${e} to function correctly`})},invalidType(e,t,s,r){return new N(e,`Invalid type for prop "${t}"`,{prop:t,received:typeof s,expected:r,details:`Expected "${t}" to be of type ${r}, but received ${typeof s}`})},componentNotFound(e){return new N("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new N(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new N(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new N(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new N(e,"Failed to render component",{details:t.message})}},A=null;function na(e){A=e}function la(){A=null}function V(e,t={}){let{throwError:s=!0,logError:r=!0}=t;if(r&&B.env.NODE_ENV!=="production"){if(console.error("Component Error:",e),e instanceof N)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(A)try{A(e)}catch(o){console.error("Error in error handler:",o)}if(s)throw e}function re(e,t,s){return(...r)=>{try{let o=e(...r);if(o instanceof Promise)return o.catch((a)=>{let i=M.eventHandler(t,s,a);throw V(i,{throwError:!1}),i});return o}catch(o){let a=M.eventHandler(t,s,o);throw V(a,{throwError:!1}),a}}}function Ie(e,t){if(!e)throw t}function De(e,t,s={}){if(B.env.NODE_ENV==="production")return;let r=N.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${r}`)}function da(e,t){if(B.env.NODE_ENV==="production")return;Ie(e,t)}function ca(e){let t=typeof B<"u"&&B.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,r){De(e,s,r)},error(s,r){let o=new N(e,s,r);V(o,{throwError:!1})}}}function pa(e,t,s){try{return t()}catch(r){let o=M.render(e,r);return V(o,{throwError:!1}),s}}import Le from"process";var R=Le.env.NODE_ENV!=="production";class ${validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new $(this.validate,this.message,!0)}}var l={string:new $((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new $((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new $((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new $((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new $((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`object\`.`),array:new $((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new $(()=>!0,()=>""),oneOf(e){return new $((t)=>e.includes(t),(t,s,r)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${r}\`, expected one of [${e.map((o)=>JSON.stringify(o)).join(", ")}].`)},oneOfType(e){return new $((t,s,r)=>e.some((o)=>o.validate(t,s,r)),(t,s,r)=>`Invalid prop \`${s}\` supplied to \`${r}\`, expected one of the specified types.`)},arrayOf(e){return new $((t,s,r)=>{if(!Array.isArray(t))return!1;return t.every((o,a)=>e.validate(o,`${s}[${a}]`,r))},(t,s,r)=>`Invalid prop \`${s}\` supplied to \`${r}\`, expected array of specified type.`)},shape(e){return new $((t,s,r)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[o,a]of Object.entries(e)){if(a.isRequired&&!(o in t))return!1;if(o in t&&!a.validate(t[o],`${s}.${o}`,r))return!1}return!0},(t,s,r)=>`Invalid prop \`${s}\` supplied to \`${r}\`, expected object matching specified shape.`)},instanceOf(e){return new $((t)=>t instanceof e,(t,s,r)=>`Invalid prop \`${s}\` supplied to \`${r}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new $(e,typeof t==="string"?()=>t:t)},min(e){return new $((t)=>typeof t==="number"&&t>=e,(t,s,r)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${r}\`, expected value >= ${e}.`)},max(e){return new $((t)=>typeof t==="number"&&t<=e,(t,s,r)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${r}\`, expected value <= ${e}.`)},range(e,t){return new $((s)=>typeof s==="number"&&s>=e&&s<=t,(s,r,o)=>`Invalid prop \`${r}\` of value \`${s}\` supplied to \`${o}\`, expected value between ${e} and ${t}.`)},pattern(e){return new $((t)=>typeof t==="string"&&e.test(t),(t,s,r)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${r}\`, expected value matching pattern ${e}.`)},email:new $((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid email address.`),url:new $((e)=>{if(typeof e!=="string")return!1;try{let t=new URL(e);return!0}catch{return!1}},(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid URL.`)};function Pe(e,t,s,r={}){let{throwOnError:o=!1,logWarnings:a=R}=r,i=[];if(!R)return{valid:!0,errors:[]};for(let[n,d]of Object.entries(s)){let c=t[n],u=c===void 0;if(d.isRequired&&u){let p=`Required prop \`${n}\` was not specified in \`${e}\`.`;i.push(p);continue}if(u)continue;if(!d.validate(c,n,e)){let p=d.message(c,n,e);i.push(p)}}if(i.length>0){if(a)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),i.forEach((n)=>console.warn(n)),console.groupEnd();if(o)throw Error(`Prop validation failed for \`${e}\`:
10
10
  ${i.join(`
11
- `)}`)}return{valid:i.length===0,errors:i}}function M(e,s,t){return(r)=>Ie(e,r,s,t)}function fo(e,s,t="value"){if(!F)return;if(!s.validate(e,t,"assertion"))throw Error(s.message(e,t,"assertion"))}function bo(e,s,t="value"){if(!F)return;if(!s.validate(e,t,"warning"))console.warn(s.message(e,t,"warning"))}var Pe="./Button-3tt4vsqt.stx";var Be={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Co=M("Button",Be);function yo(e){return re(e,"Button","onClick")}function wo(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw B.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function $o(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw B.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var qe="./Calendar-58nnkdh8.stx";var He="./Card-6wdbexqr.stx";var Ae="./Checkbox-p3q3e3nf.stx";var Fe="./Combobox-th5ebw62.stx";var Ue="./ComboboxButton-8gxwkhdx.stx";var Ye="./ComboboxInput-mk99z65n.stx";var Ve="./ComboboxOption-an9zyan6.stx";var Xe="./ComboboxOptions-6b5ywc5x.stx";var Ke="./CommandPalette-kwmdf2np.stx";var es="./CommandPaletteItem-zx2fbpts.stx";var ts="./Dialog-rgmj8q2j.stx";var as="./DialogBackdrop-rxax3sec.stx";var is="./DialogDescription-76prd1m2.stx";var ls="./DialogPanel-44d8jeqy.stx";var cs="./DialogTitle-x0r6k8x9.stx";var gs="./Drawer-p7m351bn.stx";var fs="./Dropdown-jz4jy0n3.stx";var xs="./DropdownButton-9w8zkfwj.stx";var hs="./DropdownItem-wagdspb8.stx";var Cs="./DropdownItems-aygjpxkx.stx";var ws="./Form-1mdmx9b6.stx";var $s={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},wi=M("Form",$s);var Ss="./Image-jhkm6w1f.stx";var zs="./EmailInput-ajsp9vw6.stx";var Ls="./NumberInput-nzpkx1ry.stx";var Is="./PasswordInput-zv4hm43j.stx";var Ps="./SearchInput-2521m475.stx";var js="./TextInput-k2kfkgy1.stx";var qs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},Rs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},Hs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},Es={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},As={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},Bi=M("TextInput",Rs),ji=M("EmailInput",qs),qi=M("PasswordInput",Es),Ri=M("NumberInput",Hs),Hi=M("SearchInput",As);var Fs="./Listbox-pqqh72g8.stx";var Us="./ListboxButton-spwx7513.stx";var Ys="./ListboxLabel-7mymt1b8.stx";var Vs="./ListboxOption-7nxzaexq.stx";var Xs="./ListboxOptions-8kqvfp7z.stx";var Ks="./Navigator-aay8bjab.stx";var et="./Notification-gk33gv7b.stx";var tt="./Pagination-h61eq390.stx";var at="./Checkout-e4037tyy.stx";var it="./DefaultPaymentMethod-shhf6aap.stx";var lt="./PaymentMethods-j42jsk5x.stx";var ct="./SubscriptionCheckout-gawjzf3q.stx";var gt="./Popover-469gbt6r.stx";var ft="./PopoverButton-fnaqc77g.stx";var xt="./PopoverPanel-y0vtf5w9.stx";var ht="./Portal-s2q37yp0.stx";var Ct="./Progress-vmdkm06p.stx";var wt="./Radio-04bs3d21.stx";var kt="./RadioGroup-bvb1mrhd.stx";var Nt="./RadioGroupDescription-yej78fak.stx";var Dt="./RadioGroupLabel-7mymt1b8.stx";var Mt="./RadioGroupOption-cpdwgnhw.stx";var Tt="./Select-g4mmvfv8.stx";var Bt="./Sidebar-40ckbzh8.stx";var qt="./SidebarSection-3etwnbjr.stx";var Ht="./SidebarItem-zqtvvzpc.stx";var At="./SidebarHeader-3wrte2p2.stx";var Ft="./SidebarFooter-hnth56mg.stx";var Ut="./Skeleton-v1pwa8nr.stx";var Yt="./Spinner-7dahavkd.stx";var Vt="./Stepper-rgbk76hd.stx";var Xt="./StepperStep-en4r00zv.stx";class G{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",s=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=s,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let s=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,t=this.watchers.get(s);if(t){let r=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;t.forEach((o)=>o(a,r,s))}}encrypt(e){let s="";for(let t=0;t<e.length;t++)s+=String.fromCharCode(e.charCodeAt(t)^this.encryptionKey.charCodeAt(t%this.encryptionKey.length));return btoa(s)}decrypt(e){try{let s=atob(e),t="";for(let r=0;r<s.length;r++)t+=String.fromCharCode(s.charCodeAt(r)^this.encryptionKey.charCodeAt(r%this.encryptionKey.length));return t}catch{return e}}compress(e){if(e.length<100)return e;let s={},t=256,r=[],a="";for(let o=0;o<e.length;o++){let i=e.charAt(o),n=a+i;if(s[n]!==void 0)a=n;else r.push(a.length>1?s[a]:a.charCodeAt(0)),s[n]=t++,a=i}if(a!=="")r.push(a.length>1?s[a]:a.charCodeAt(0));return JSON.stringify(r)}decompress(e){try{let s=JSON.parse(e);if(!Array.isArray(s))return e;let t={},r=256,a=String.fromCharCode(s[0]),o=a;for(let i=1;i<s.length;i++){let n=s[i],d;if(t[n]!==void 0)d=t[n];else if(n===r)d=a+a.charAt(0);else return e;o+=d,t[r++]=a+d.charAt(0),a=d}return o}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,s,t){let r=this.getKey(e),a=this.get(e),o={value:s,timestamp:Date.now(),expire:t?.expire,encrypted:t?.encrypt||!1,compressed:t?.compress||!1};try{let i=JSON.stringify(o);if(t?.compress)i=this.compress(i);if(t?.encrypt)i=this.encrypt(i);this.storage.setItem(r,i),this.notifyWatchers(e,s,a)}catch(i){console.error("Storage set error:",i)}}get(e){let s=this.getKey(e);try{let t=this.storage.getItem(s);if(!t)return null;if(t.match(/^[A-Z0-9+/]+=*$/i))try{t=this.decrypt(t)}catch{}if(t.startsWith("["))try{t=this.decompress(t)}catch{}let r=JSON.parse(t);if(r.expire&&Date.now()-r.timestamp>r.expire)return this.remove(e),null;return r.value}catch(t){return console.error("Storage get error:",t),null}}watch(e,s){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(s),()=>{let t=this.watchers.get(e);if(t){if(t.delete(s),t.size===0)this.watchers.delete(e)}}}notifyWatchers(e,s,t){let r=this.watchers.get(e);if(r)r.forEach((a)=>a(s,t,e))}remove(e){let s=this.getKey(e),t=this.get(e);this.storage.removeItem(s),this.notifyWatchers(e,null,t)}clear(){if(this.namespace)this.keys().forEach((s)=>this.remove(s));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let s=`${this.namespace}:`;return e.filter((t)=>t.startsWith(s)).map((t)=>t.slice(s.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let t=0;t<this.storage.length;t++){let r=this.storage.key(t);if(r){let a=this.storage.getItem(r)||"";e+=r.length+a.length}}let s=5242880;return{usage:e*2,quota:s,percentage:e*2/s*100}}catch{return null}}setMany(e,s){Object.entries(e).forEach(([t,r])=>{this.set(t,r,s)})}getMany(e){let s={};return e.forEach((t)=>{s[t]=this.get(t)}),s}removeMany(e){e.forEach((s)=>this.remove(s))}}var ml={local:new G("local"),session:new G("session")};function hl(e="local",s){return new G(e,s)}var Kt="./Switch-036j9vm1.stx";var er="./Table-6cx8az9h.stx";var tr="./TableBody-wf6t13j9.stx";var ar="./TableCell-ntx0edbn.stx";var ir="./TableHead-3k4hnm2k.stx";var lr="./TableHeader-ydys9rzz.stx";var cr="./TableRow-z09p2ebf.stx";var gr="./Tabs-svh721m0.stx";var fr="./Teleport-qfch3w0b.stx";var xr="./Textarea-szad57dz.stx";var hr="./Tooltip-em7t551n.stx";var Cr="./Transition-0hmr6zxb.stx";var wr="./Video-crxva65p.stx";var kr="./VirtualList-cndhjejh.stx";var Nr="./VirtualTable-ng0b48yp.stx";var zr=0;function ae(e="a11y"){return`${e}-${++zr}-${Date.now()}`}function id(e,s,t={}){let{visible:r=!1,id:a=ae("label")}=t,o=document.createElement(r?"label":"span");if(o.id=a,o.textContent=e,!r)Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(s)if(s.setAttribute("aria-labelledby",a),s.parentElement)s.parentElement.insertBefore(o,s);else document.body.appendChild(o);return a}function nd(e,s){let t=ae("desc"),r=document.createElement("span");if(r.id=t,r.textContent=e,Object.assign(r.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),s)if(s.setAttribute("aria-describedby",t),s.parentElement)s.parentElement.insertBefore(r,s);else document.body.appendChild(r);return t}function ld(e,s="polite"){let t=document.createElement("div");t.setAttribute("role","status"),t.setAttribute("aria-live",s),t.setAttribute("aria-atomic","true"),Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(t),setTimeout(()=>{t.textContent=e},100),setTimeout(()=>{document.body.removeChild(t)},1000)}function J(e){let s=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(s)).filter((t)=>t.offsetParent!==null)}function dd(e,s={}){let{initialFocus:t,returnFocus:r,escapeDeactivates:a=!0,clickOutsideDeactivates:o=!0,allowOutsideClick:i=!1,onActivate:n,onDeactivate:d}=s,c=!1,u=!1,p=null,x=(h)=>{if(u)return;if(a&&h.key==="Escape"){h.preventDefault(),v();return}if(h.key==="Tab"){let w=J(e);if(w.length===0){h.preventDefault();return}let D=w[0],T=w[w.length-1];if(h.shiftKey){if(document.activeElement===D)h.preventDefault(),T.focus()}else if(document.activeElement===T)h.preventDefault(),D.focus()}},f=(h)=>{if(u)return;if(!e.contains(h.target)){if(typeof i==="function"){if(!i(h)&&o)v()}else if(!i&&o)v()}};function C(){if(c)return;c=!0,p=document.activeElement;let h=t||J(e)[0];if(h&&typeof h.focus==="function")h.focus();document.addEventListener("keydown",x),document.addEventListener("click",f),n?.()}function v(){if(!c)return;c=!1;let h=r||p;if(h&&typeof h.focus==="function")h.focus();document.removeEventListener("keydown",x),document.removeEventListener("click",f),d?.()}function k(){u=!0}function m(){u=!1}return{activate:C,deactivate:v,pause:k,unpause:m}}function cd(e,s={}){let{selector:t='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:r=0,orientation:a="both",loop:o=!0,onFocusChange:i}=s,n=r,d=()=>{return Array.from(e.querySelectorAll(t))},c=(p)=>{let x=d();if(p<0||p>=x.length)return;x.forEach((f,C)=>{if(C===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),n=p,i?.(p,x[p])},u=(p)=>{let f=d().length-1,C=!1,v=n;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(v=n+1,v>f)v=o?0:f;C=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(v=n-1,v<0)v=o?f:0;C=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(v=n+1,v>f)v=o?0:f;C=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(v=n-1,v<0)v=o?f:0;C=!0}break;case"Home":v=0,C=!0;break;case"End":v=f,C=!0;break}if(C)p.preventDefault(),c(v)};return c(r),e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}var pd={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function gd(e){return document.activeElement===e}function ud(e,s){let t=s||document.activeElement,r=J(document.body),a=r.indexOf(t);if(a===-1)return;let o=e==="next"?a+1:a-1,i=r[o];if(i)i.focus()}function fd(e){if(e.getAttribute("aria-hidden")==="true")return!1;let s=window.getComputedStyle(e);if(s.display==="none"||s.visibility==="hidden")return!1;return!0}var bd={setExpanded(e,s){e.setAttribute("aria-expanded",String(s))},setSelected(e,s){e.setAttribute("aria-selected",String(s))},setChecked(e,s){e.setAttribute("aria-checked",String(s))},setDisabled(e,s){if(e.setAttribute("aria-disabled",String(s)),s)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,s){if(s)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,s){e.setAttribute("aria-pressed",String(s))},setInvalid(e,s){e.setAttribute("aria-invalid",String(s))},setRequired(e,s){e.setAttribute("aria-required",String(s))},setLive(e,s){e.setAttribute("aria-live",s)},setBusy(e,s){e.setAttribute("aria-busy",String(s))}};function xd(e){let s=document.createElement("span");return s.textContent=e,s.className="sr-only",Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),s}function md(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function hd(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function vd(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function Cd(e,s="Skip to main content"){let t=document.createElement("a");return t.href=`#${e}`,t.textContent=s,t.className="skip-link",Object.assign(t.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),t.addEventListener("focus",()=>{t.style.top="0"}),t.addEventListener("blur",()=>{t.style.top="-40px"}),t}function yd(e){let s=[],t=(r)=>{let a=e.getAttribute(r);if(a){let o=a.split(" ");for(let i of o)if(!document.getElementById(i))s.push(`${r} references non-existent ID: ${i}`)}};return t("aria-labelledby"),t("aria-describedby"),t("aria-controls"),t("aria-owns"),t("aria-activedescendant"),s}var Dr=(e,s,t,r)=>{return t*e/r+s},Lr=(e,s,t,r)=>{return e/=r,t*e*e+s},Mr=(e,s,t,r)=>{return e/=r,-t*e*(e-2)+s},Ir=(e,s,t,r)=>{if(e/=r/2,e<1)return t/2*e*e+s;return e--,-t/2*(e*(e-2)-1)+s},Tr=(e,s,t,r)=>{return e/=r,t*e*e*e+s},Pr=(e,s,t,r)=>{return e/=r,e--,t*(e*e*e+1)+s},Br=(e,s,t,r)=>{if(e/=r/2,e<1)return t/2*e*e*e+s;return e-=2,t/2*(e*e*e+2)+s},jr=(e,s,t,r)=>{return e/=r,t*e*e*e*e+s},qr=(e,s,t,r)=>{return e/=r,e--,-t*(e*e*e*e-1)+s},Rr=(e,s,t,r)=>{if(e/=r/2,e<1)return t/2*e*e*e*e+s;return e-=2,-t/2*(e*e*e*e-2)+s},Hr=(e,s,t,r)=>{return e/=r,t*e*e*e*e*e+s},Er=(e,s,t,r)=>{return e/=r,e--,t*(e*e*e*e*e+1)+s},Ar=(e,s,t,r)=>{if(e/=r/2,e<1)return t/2*e*e*e*e*e+s;return e-=2,t/2*(e*e*e*e*e+2)+s},Or=(e,s,t,r)=>{return-t*Math.cos(e/r*(Math.PI/2))+t+s},Fr=(e,s,t,r)=>{return t*Math.sin(e/r*(Math.PI/2))+s},Gr=(e,s,t,r)=>{return-t/2*(Math.cos(Math.PI*e/r)-1)+s},Ur=(e,s,t,r)=>{return e===0?s:t*2**(10*(e/r-1))+s},Wr=(e,s,t,r)=>{return e===r?s+t:t*(-(2**(-10*e/r))+1)+s},Yr=(e,s,t,r)=>{if(e===0)return s;if(e===r)return s+t;if(e/=r/2,e<1)return t/2*2**(10*(e-1))+s;return e--,t/2*(-(2**(-10*e))+2)+s},_r=(e,s,t,r)=>{return e/=r,-t*(Math.sqrt(1-e*e)-1)+s},Vr=(e,s,t,r)=>{return e/=r,e--,t*Math.sqrt(1-e*e)+s},Zr=(e,s,t,r)=>{if(e/=r/2,e<1)return-t/2*(Math.sqrt(1-e*e)-1)+s;return e-=2,t/2*(Math.sqrt(1-e*e)+1)+s},Xr=(e,s,t,r)=>{let a=1.70158,o=0,i=t;if(e===0)return s;if(e/=r,e===1)return s+t;if(!o)o=r*0.3;if(i<Math.abs(t))i=t,a=o/4;else a=o/(2*Math.PI)*Math.asin(t/i);return e-=1,-(i*2**(10*e)*Math.sin((e*r-a)*(2*Math.PI)/o))+s},Jr=(e,s,t,r)=>{let a=1.70158,o=0,i=t;if(e===0)return s;if(e/=r,e===1)return s+t;if(!o)o=r*0.3;if(i<Math.abs(t))i=t,a=o/4;else a=o/(2*Math.PI)*Math.asin(t/i);return i*2**(-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+t+s},Kr=(e,s,t,r)=>{let a=1.70158,o=0,i=t;if(e===0)return s;if(e/=r/2,e===2)return s+t;if(!o)o=r*0.44999999999999996;if(i<Math.abs(t))i=t,a=o/4;else a=o/(2*Math.PI)*Math.asin(t/i);if(e<1)return e-=1,-0.5*(i*2**(10*e)*Math.sin((e*r-a)*(2*Math.PI)/o))+s;return e-=1,i*2**(-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)*0.5+t+s},Qr=(e,s,t,r)=>{return e/=r,t*e*e*(2.70158*e-1.70158)+s},ea=(e,s,t,r)=>{return e/=r,e--,t*(e*e*(2.70158*e+1.70158)+1)+s},sa=(e,s,t,r)=>{let a=1.70158;if(e/=r/2,e<1)return a*=1.525,t/2*(e*e*((a+1)*e-a))+s;return e-=2,a*=1.525,t/2*(e*e*((a+1)*e+a)+2)+s},K=(e,s,t,r)=>{if(e/=r,e<0.36363636363636365)return t*(7.5625*e*e)+s;else if(e<0.7272727272727273)return e-=0.5454545454545454,t*(7.5625*e*e+0.75)+s;else if(e<0.9090909090909091)return e-=0.8181818181818182,t*(7.5625*e*e+0.9375)+s;else return e-=0.9545454545454546,t*(7.5625*e*e+0.984375)+s},oe=(e,s,t,r)=>{return t-K(r-e,0,t,r)+s},ta=(e,s,t,r)=>{if(e<r/2)return oe(e*2,0,t,r)*0.5+s;return K(e*2-r,0,t,r)*0.5+t*0.5+s},$d={linear:Dr,easeInQuad:Lr,easeOutQuad:Mr,easeInOutQuad:Ir,easeInCubic:Tr,easeOutCubic:Pr,easeInOutCubic:Br,easeInQuart:jr,easeOutQuart:qr,easeInOutQuart:Rr,easeInQuint:Hr,easeOutQuint:Er,easeInOutQuint:Ar,easeInSine:Or,easeOutSine:Fr,easeInOutSine:Gr,easeInExpo:Ur,easeOutExpo:Wr,easeInOutExpo:Yr,easeInCirc:_r,easeOutCirc:Vr,easeInOutCirc:Zr,easeInElastic:Xr,easeOutElastic:Jr,easeInOutElastic:Kr,easeInBack:Qr,easeOutBack:ea,easeInOutBack:sa,easeInBounce:oe,easeOutBounce:K,easeInOutBounce:ta};function ra(e,s={}){let{duration:t="1s",timing:r="ease",delay:a="0s",iteration:o="1",direction:i="normal",fill:n="both",playState:d="running"}=s;return`${e} ${t} ${r} ${a} ${o} ${i} ${n} ${d}`}function ie(e,s,t={}){e.style.animation=ra(s,t)}function Sd(e){e.style.animation=""}function aa(e){return new Promise((s)=>{let t=()=>{e.removeEventListener("animationend",t),s()};e.addEventListener("animationend",t)})}function Nd(e,s,t={}){let{stagger:r=100,...a}=t;e.forEach((o,i)=>{let n=`${i*r}ms`;ie(o,s,{...a,delay:n})})}async function zd(e,s){for(let t of s)ie(e,t.name,t.options),await aa(e)}var Dd={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function Ld(e,s,t=1000){return new Promise((r)=>{e.classList.add(s),setTimeout(()=>{e.classList.remove(s),r()},t)})}function Md(e,s){let t=`
11
+ `)}`)}return{valid:i.length===0,errors:i}}function L(e,t,s){return(r)=>Pe(e,r,t,s)}function xa(e,t,s="value"){if(!R)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function ba(e,t,s="value"){if(!R)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Te="./Button-1vknasy3.stx";var Me={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},ya=L("Button",Me);function wa(e){return re(e,"Button","onClick")}function Ca(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw M.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function $a(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw M.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var qe="./Calendar-reny0et7.stx";var je="./Card-c1g1fd1w.stx";var Ae="./Checkbox-zgdmy3p5.stx";var Re="./Combobox-fdkr6cdq.stx";var Fe="./ComboboxButton-g76stp1e.stx";var _e="./ComboboxInput-z1293bbh.stx";var Ge="./ComboboxOption-hmxt3gte.stx";var Ze="./ComboboxOptions-sq5360ae.stx";var Ke="./CommandPalette-36mxf05w.stx";var et="./CommandPaletteItem-mvk6q7a2.stx";var st="./Dialog-hczpexs4.stx";var ot="./DialogBackdrop-rxax3sec.stx";var it="./DialogDescription-76prd1m2.stx";var lt="./DialogPanel-44d8jeqy.stx";var ct="./DialogTitle-x0r6k8x9.stx";var gt="./Drawer-xhevp5cw.stx";var xt="./Dropdown-vvhemtc0.stx";var ft="./DropdownButton-wcz67dxy.stx";var vt="./DropdownItem-c7rz08e5.stx";var yt="./DropdownItems-1sxnd5qn.stx";var Ct="./Form-mas630hy.stx";var $t={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Ci=L("Form",$t);var St="./Image-yhxcvgzs.stx";var Nt="./EmailInput-vak3kkmk.stx";var Dt="./NumberInput-drnvtqej.stx";var Pt="./PasswordInput-n02x6053.stx";var Tt="./SearchInput-pdx7agn0.stx";var Ot="./TextInput-kf084763.stx";var qt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},Bt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},jt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},Ht={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},At={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},Mi=L("TextInput",Bt),Oi=L("EmailInput",qt),qi=L("PasswordInput",Ht),Bi=L("NumberInput",jt),ji=L("SearchInput",At);var Rt="./Listbox-q49tnr90.stx";var Ft="./ListboxButton-keb8gm0q.stx";var _t="./ListboxLabel-7mymt1b8.stx";var Gt="./ListboxOption-e0dtv1gc.stx";var Zt="./ListboxOptions-ejkatcfg.stx";var Kt="./Navigator-rk2a5wvk.stx";var es="./Notification-tb9b525s.stx";var ss="./Pagination-n3d31cns.stx";var os="./Checkout-agt0ngpw.stx";var is="./DefaultPaymentMethod-shhf6aap.stx";var ls="./PaymentMethods-x4vrx9yb.stx";var cs="./SubscriptionCheckout-zy2ycrmw.stx";var gs="./Popover-et2q44m7.stx";var xs="./PopoverButton-mffzc9pr.stx";var fs="./PopoverPanel-054yh38h.stx";var vs="./Portal-1vf14s4x.stx";var ys="./Progress-yxcntr4x.stx";var Cs="./Radio-cgjv2hb2.stx";var ks="./RadioGroup-qxmnm3xm.stx";var zs="./RadioGroupDescription-yej78fak.stx";var Is="./RadioGroupLabel-7mymt1b8.stx";var Ls="./RadioGroupOption-s1d6r221.stx";var Es="./Select-28y0pg83.stx";var Ms="./Sidebar-73vc78as.stx";var qs="./SidebarSection-z5ey6awe.stx";var js="./SidebarItem-3y3e8g2t.stx";var As="./SidebarHeader-7v174a9c.stx";var Rs="./SidebarFooter-zsfsgcxb.stx";var Fs="./Skeleton-v1pwa8nr.stx";var _s="./Spinner-7dahavkd.stx";var Gs="./Stepper-rgbk76hd.stx";var Zs="./StepperStep-wxgembat.stx";class W{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let r=e.oldValue?JSON.parse(e.oldValue).value:null,o=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((a)=>a(o,r,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let r=0;r<t.length;r++)s+=String.fromCharCode(t.charCodeAt(r)^this.encryptionKey.charCodeAt(r%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,r=[],o="";for(let a=0;a<e.length;a++){let i=e.charAt(a),n=o+i;if(t[n]!==void 0)o=n;else r.push(o.length>1?t[o]:o.charCodeAt(0)),t[n]=s++,o=i}if(o!=="")r.push(o.length>1?t[o]:o.charCodeAt(0));return JSON.stringify(r)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},r=256,o=String.fromCharCode(t[0]),a=o;for(let i=1;i<t.length;i++){let n=t[i],d;if(s[n]!==void 0)d=s[n];else if(n===r)d=o+o.charAt(0);else return e;a+=d,s[r++]=o+d.charAt(0),o=d}return a}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let r=this.getKey(e),o=this.get(e),a={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let i=JSON.stringify(a);if(s?.compress)i=this.compress(i);if(s?.encrypt)i=this.encrypt(i);this.storage.setItem(r,i),this.notifyWatchers(e,t,o)}catch(i){console.error("Storage set error:",i)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let r=JSON.parse(s);if(r.expire&&Date.now()-r.timestamp>r.expire)return this.remove(e),null;return r.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let r=this.watchers.get(e);if(r)r.forEach((o)=>o(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let r=this.storage.key(s);if(r){let o=this.storage.getItem(r)||"";e+=r.length+o.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,r])=>{this.set(s,r,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var ml={local:new W("local"),session:new W("session")};function vl(e="local",t){return new W(e,t)}var Ks="./Switch-r5t5w04w.stx";var er="./Table-6cx8az9h.stx";var sr="./TableBody-wf6t13j9.stx";var or="./TableCell-ntx0edbn.stx";var ir="./TableHead-3k4hnm2k.stx";var lr="./TableHeader-0eyzbqpz.stx";var cr="./TableRow-z09p2ebf.stx";var gr="./Tabs-bzvvn4ke.stx";var xr="./Teleport-tsx4bt4n.stx";var fr="./Textarea-xg4rr2xz.stx";var vr="./Tooltip-m0tqd72e.stx";var yr="./Transition-7smenaz8.stx";var Cr="./Video-84j4pv6h.stx";var kr="./VirtualList-fa7v5a3h.stx";var zr="./VirtualTable-f9crbfjr.stx";var Nr=0;function oe(e="a11y"){return`${e}-${++Nr}-${Date.now()}`}function id(e,t,s={}){let{visible:r=!1,id:o=oe("label")}=s,a=document.createElement(r?"label":"span");if(a.id=o,a.textContent=e,!r)Object.assign(a.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",o),t.parentElement)t.parentElement.insertBefore(a,t);else document.body.appendChild(a);return o}function nd(e,t){let s=oe("desc"),r=document.createElement("span");if(r.id=s,r.textContent=e,Object.assign(r.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(r,t);else document.body.appendChild(r);return s}function ld(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{document.body.removeChild(s)},1000)}function X(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function dd(e,t={}){let{initialFocus:s,returnFocus:r,escapeDeactivates:o=!0,clickOutsideDeactivates:a=!0,allowOutsideClick:i=!1,onActivate:n,onDeactivate:d}=t,c=!1,u=!1,p=null,f=(v)=>{if(u)return;if(o&&v.key==="Escape"){v.preventDefault(),h();return}if(v.key==="Tab"){let C=X(e);if(C.length===0){v.preventDefault();return}let I=C[0],E=C[C.length-1];if(v.shiftKey){if(document.activeElement===I)v.preventDefault(),E.focus()}else if(document.activeElement===E)v.preventDefault(),I.focus()}},x=(v)=>{if(u)return;if(!e.contains(v.target)){if(typeof i==="function"){if(!i(v)&&a)h()}else if(!i&&a)h()}};function y(){if(c)return;c=!0,p=document.activeElement;let v=s||X(e)[0];if(v&&typeof v.focus==="function")v.focus();document.addEventListener("keydown",f),document.addEventListener("click",x),n?.()}function h(){if(!c)return;c=!1;let v=r||p;if(v&&typeof v.focus==="function")v.focus();document.removeEventListener("keydown",f),document.removeEventListener("click",x),d?.()}function k(){u=!0}function m(){u=!1}return{activate:y,deactivate:h,pause:k,unpause:m}}function cd(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:r=0,orientation:o="both",loop:a=!0,onFocusChange:i}=t,n=r,d=()=>{return Array.from(e.querySelectorAll(s))},c=(p)=>{let f=d();if(p<0||p>=f.length)return;f.forEach((x,y)=>{if(y===p){if(x.setAttribute("tabindex","0"),typeof x.focus==="function")x.focus()}else x.setAttribute("tabindex","-1")}),n=p,i?.(p,f[p])},u=(p)=>{let x=d().length-1,y=!1,h=n;switch(p.key){case"ArrowRight":if(o==="horizontal"||o==="both"){if(h=n+1,h>x)h=a?0:x;y=!0}break;case"ArrowLeft":if(o==="horizontal"||o==="both"){if(h=n-1,h<0)h=a?x:0;y=!0}break;case"ArrowDown":if(o==="vertical"||o==="both"){if(h=n+1,h>x)h=a?0:x;y=!0}break;case"ArrowUp":if(o==="vertical"||o==="both"){if(h=n-1,h<0)h=a?x:0;y=!0}break;case"Home":h=0,y=!0;break;case"End":h=x,y=!0;break}if(y)p.preventDefault(),c(h)};return c(r),e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}var pd={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function gd(e){return document.activeElement===e}function ud(e,t){let s=t||document.activeElement,r=X(document.body),o=r.indexOf(s);if(o===-1)return;let a=e==="next"?o+1:o-1,i=r[a];if(i)i.focus()}function xd(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var bd={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function fd(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function md(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function vd(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function hd(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function yd(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function wd(e){let t=[],s=(r)=>{let o=e.getAttribute(r);if(o){let a=o.split(" ");for(let i of a)if(!document.getElementById(i))t.push(`${r} references non-existent ID: ${i}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Ir=(e,t,s,r)=>{return s*e/r+t},Dr=(e,t,s,r)=>{return e/=r,s*e*e+t},Lr=(e,t,s,r)=>{return e/=r,-s*e*(e-2)+t},Pr=(e,t,s,r)=>{if(e/=r/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},Er=(e,t,s,r)=>{return e/=r,s*e*e*e+t},Tr=(e,t,s,r)=>{return e/=r,e--,s*(e*e*e+1)+t},Mr=(e,t,s,r)=>{if(e/=r/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Or=(e,t,s,r)=>{return e/=r,s*e*e*e*e+t},qr=(e,t,s,r)=>{return e/=r,e--,-s*(e*e*e*e-1)+t},Br=(e,t,s,r)=>{if(e/=r/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},jr=(e,t,s,r)=>{return e/=r,s*e*e*e*e*e+t},Hr=(e,t,s,r)=>{return e/=r,e--,s*(e*e*e*e*e+1)+t},Ar=(e,t,s,r)=>{if(e/=r/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},Vr=(e,t,s,r)=>{return-s*Math.cos(e/r*(Math.PI/2))+s+t},Rr=(e,t,s,r)=>{return s*Math.sin(e/r*(Math.PI/2))+t},Wr=(e,t,s,r)=>{return-s/2*(Math.cos(Math.PI*e/r)-1)+t},Fr=(e,t,s,r)=>{return e===0?t:s*2**(10*(e/r-1))+t},Ur=(e,t,s,r)=>{return e===r?t+s:s*(-(2**(-10*e/r))+1)+t},_r=(e,t,s,r)=>{if(e===0)return t;if(e===r)return t+s;if(e/=r/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},Yr=(e,t,s,r)=>{return e/=r,-s*(Math.sqrt(1-e*e)-1)+t},Gr=(e,t,s,r)=>{return e/=r,e--,s*Math.sqrt(1-e*e)+t},Jr=(e,t,s,r)=>{if(e/=r/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},Zr=(e,t,s,r)=>{let o=1.70158,a=0,i=s;if(e===0)return t;if(e/=r,e===1)return t+s;if(!a)a=r*0.3;if(i<Math.abs(s))i=s,o=a/4;else o=a/(2*Math.PI)*Math.asin(s/i);return e-=1,-(i*2**(10*e)*Math.sin((e*r-o)*(2*Math.PI)/a))+t},Xr=(e,t,s,r)=>{let o=1.70158,a=0,i=s;if(e===0)return t;if(e/=r,e===1)return t+s;if(!a)a=r*0.3;if(i<Math.abs(s))i=s,o=a/4;else o=a/(2*Math.PI)*Math.asin(s/i);return i*2**(-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+s+t},Kr=(e,t,s,r)=>{let o=1.70158,a=0,i=s;if(e===0)return t;if(e/=r/2,e===2)return t+s;if(!a)a=r*0.44999999999999996;if(i<Math.abs(s))i=s,o=a/4;else o=a/(2*Math.PI)*Math.asin(s/i);if(e<1)return e-=1,-0.5*(i*2**(10*e)*Math.sin((e*r-o)*(2*Math.PI)/a))+t;return e-=1,i*2**(-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)*0.5+s+t},Qr=(e,t,s,r)=>{return e/=r,s*e*e*(2.70158*e-1.70158)+t},eo=(e,t,s,r)=>{return e/=r,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},to=(e,t,s,r)=>{let o=1.70158;if(e/=r/2,e<1)return o*=1.525,s/2*(e*e*((o+1)*e-o))+t;return e-=2,o*=1.525,s/2*(e*e*((o+1)*e+o)+2)+t},K=(e,t,s,r)=>{if(e/=r,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ae=(e,t,s,r)=>{return s-K(r-e,0,s,r)+t},so=(e,t,s,r)=>{if(e<r/2)return ae(e*2,0,s,r)*0.5+t;return K(e*2-r,0,s,r)*0.5+s*0.5+t},$d={linear:Ir,easeInQuad:Dr,easeOutQuad:Lr,easeInOutQuad:Pr,easeInCubic:Er,easeOutCubic:Tr,easeInOutCubic:Mr,easeInQuart:Or,easeOutQuart:qr,easeInOutQuart:Br,easeInQuint:jr,easeOutQuint:Hr,easeInOutQuint:Ar,easeInSine:Vr,easeOutSine:Rr,easeInOutSine:Wr,easeInExpo:Fr,easeOutExpo:Ur,easeInOutExpo:_r,easeInCirc:Yr,easeOutCirc:Gr,easeInOutCirc:Jr,easeInElastic:Zr,easeOutElastic:Xr,easeInOutElastic:Kr,easeInBack:Qr,easeOutBack:eo,easeInOutBack:to,easeInBounce:ae,easeOutBounce:K,easeInOutBounce:so};function ro(e,t={}){let{duration:s="1s",timing:r="ease",delay:o="0s",iteration:a="1",direction:i="normal",fill:n="both",playState:d="running"}=t;return`${e} ${s} ${r} ${o} ${a} ${i} ${n} ${d}`}function ie(e,t,s={}){e.style.animation=ro(t,s)}function Sd(e){e.style.animation=""}function oo(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function zd(e,t,s={}){let{stagger:r=100,...o}=s;e.forEach((a,i)=>{let n=`${i*r}ms`;ie(a,t,{...o,delay:n})})}async function Nd(e,t){for(let s of t)ie(e,s.name,s.options),await oo(e)}var Id={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function Dd(e,t,s=1000){return new Promise((r)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),r()},s)})}function Ld(e,t){let s=`
12
12
  @keyframes ${e} {
13
- ${Object.entries(s).map(([a,o])=>{let i=Object.entries(o).map(([n,d])=>`${n}: ${d};`).join(" ");return`${a} { ${i} }`}).join(`
13
+ ${Object.entries(t).map(([o,a])=>{let i=Object.entries(a).map(([n,d])=>`${n}: ${d};`).join(" ");return`${o} { ${i} }`}).join(`
14
14
  `)}
15
15
  }
16
- `,r=document.createElement("style");r.textContent=t,document.head.appendChild(r)}function oa(e,s,t={}){if(typeof e.animate!=="function")return console.warn("Web Animations API not supported"),null;let{duration:r=1000,easing:a="ease",delay:o=0,iterations:i=1,direction:n="normal",fill:d="both"}=t;return e.animate([...s],{duration:r,easing:a,delay:o,iterations:i,direction:n,fill:d})}var ia={fadeIn:[{offset:0,opacity:0},{offset:1,opacity:1}],fadeOut:[{offset:0,opacity:1},{offset:1,opacity:0}],slideInUp:[{offset:0,transform:"translateY(100%)",opacity:0},{offset:1,transform:"translateY(0)",opacity:1}],slideInDown:[{offset:0,transform:"translateY(-100%)",opacity:0},{offset:1,transform:"translateY(0)",opacity:1}],slideInLeft:[{offset:0,transform:"translateX(-100%)",opacity:0},{offset:1,transform:"translateX(0)",opacity:1}],slideInRight:[{offset:0,transform:"translateX(100%)",opacity:0},{offset:1,transform:"translateX(0)",opacity:1}],slideOutUp:[{offset:0,transform:"translateY(0)",opacity:1},{offset:1,transform:"translateY(-100%)",opacity:0}],slideOutDown:[{offset:0,transform:"translateY(0)",opacity:1},{offset:1,transform:"translateY(100%)",opacity:0}],slideOutLeft:[{offset:0,transform:"translateX(0)",opacity:1},{offset:1,transform:"translateX(-100%)",opacity:0}],slideOutRight:[{offset:0,transform:"translateX(0)",opacity:1},{offset:1,transform:"translateX(100%)",opacity:0}],zoomIn:[{offset:0,transform:"scale(0)",opacity:0},{offset:0.5,opacity:1},{offset:1,transform:"scale(1)"}],zoomOut:[{offset:0,transform:"scale(1)",opacity:1},{offset:0.5,opacity:1},{offset:1,transform:"scale(0)",opacity:0}],rotate:[{offset:0,transform:"rotate(0deg)"},{offset:1,transform:"rotate(360deg)"}],bounce:[{offset:0,transform:"translateY(0)"},{offset:0.2,transform:"translateY(0)"},{offset:0.4,transform:"translateY(-30px)"},{offset:0.43,transform:"translateY(-30px)"},{offset:0.53,transform:"translateY(0)"},{offset:0.7,transform:"translateY(-15px)"},{offset:0.8,transform:"translateY(0)"},{offset:0.9,transform:"translateY(-4px)"},{offset:1,transform:"translateY(0)"}],pulse:[{offset:0,transform:"scale(1)"},{offset:0.5,transform:"scale(1.05)"},{offset:1,transform:"scale(1)"}],shake:[{offset:0,transform:"translateX(0)"},{offset:0.1,transform:"translateX(-10px)"},{offset:0.2,transform:"translateX(10px)"},{offset:0.3,transform:"translateX(-10px)"},{offset:0.4,transform:"translateX(10px)"},{offset:0.5,transform:"translateX(-10px)"},{offset:0.6,transform:"translateX(10px)"},{offset:0.7,transform:"translateX(-10px)"},{offset:0.8,transform:"translateX(10px)"},{offset:0.9,transform:"translateX(-10px)"},{offset:1,transform:"translateX(0)"}],swing:[{offset:0,transform:"rotate(0deg)"},{offset:0.2,transform:"rotate(15deg)"},{offset:0.4,transform:"rotate(-10deg)"},{offset:0.6,transform:"rotate(5deg)"},{offset:0.8,transform:"rotate(-5deg)"},{offset:1,transform:"rotate(0deg)"}],flip:[{offset:0,transform:"perspective(400px) rotateY(0)",animationTimingFunction:"ease-out"},{offset:0.4,transform:"perspective(400px) translateZ(150px) rotateY(170deg)",animationTimingFunction:"ease-out"},{offset:0.5,transform:"perspective(400px) translateZ(150px) rotateY(190deg)",animationTimingFunction:"ease-in"},{offset:0.8,transform:"perspective(400px) rotateY(360deg)",animationTimingFunction:"ease-in"},{offset:1,transform:"perspective(400px)",animationTimingFunction:"ease-in"}],rubberBand:[{offset:0,transform:"scale(1)"},{offset:0.3,transform:"scaleX(1.25) scaleY(0.75)"},{offset:0.4,transform:"scaleX(0.75) scaleY(1.25)"},{offset:0.5,transform:"scaleX(1.15) scaleY(0.85)"},{offset:0.65,transform:"scaleX(0.95) scaleY(1.05)"},{offset:0.75,transform:"scaleX(1.05) scaleY(0.95)"},{offset:1,transform:"scale(1)"}],heartbeat:[{offset:0,transform:"scale(1)"},{offset:0.14,transform:"scale(1.3)"},{offset:0.28,transform:"scale(1)"},{offset:0.42,transform:"scale(1.3)"},{offset:0.7,transform:"scale(1)"}]};function Td(e,s,t={}){return oa(e,ia[s],t)}import{createHighlighter as na}from"ts-syntax-highlighter";var Q=null;async function la(){if(!Q)Q=await na({theme:"github-light"});return Q}async function jd(e,s={}){let{theme:t="auto",language:r="typescript",lineNumbers:a=!1,wrapLines:o=!0}=s,i=await la(),n=t==="auto"?globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches?"github-dark":"github-light":t==="dark"?"github-dark":"github-light",d=await i.highlight(e,r);return{html:typeof d==="string"?d:String(d),language:r,theme:n}}function qd(e){if(e.includes("<!DOCTYPE")||e.includes("<html"))return"html";if(e.includes("<?php"))return"php";if(e.includes("import")&&e.includes("from"))return"typescript";if(e.includes("function")||e.includes("const"))return"javascript";if(e.includes("{")&&e.includes("}"))return"json";if(e.includes("$")&&e.includes("|"))return"bash";if(e.includes("#")&&e.includes("##"))return"markdown";return"typescript"}function Rd(e,s){return`<div class="${s?`rounded-md overflow-auto text-sm leading-relaxed font-mono ${s}`:"rounded-md overflow-auto text-sm leading-relaxed font-mono"}">${e}</div>`}var I=null,da=(e)=>{return e===1?0:1};function U(e,s){return s.split(".").reduce((t,r)=>t?.[r],e)}function ee(e,s={}){return e.replace(/\{(\w+)\}/g,(t,r)=>{return s[r]!==void 0?String(s[r]):t})}function Ed(e){let{locale:s,fallbackLocale:t="en",messages:r,pluralRules:a={},dateTimeFormats:o={},numberFormats:i={},missing:n,warnMissing:d=!0}=e;function c(m,h={}){let w=U(r[s],m);if(w===void 0&&t)w=U(r[t],m);if(w===void 0){if(n){let D=n(s,m);if(D)return ee(D,h)}if(d&&typeof console<"u")console.warn(`[i18n] Missing translation for key "${m}" in locale "${s}"`);return m}if(typeof w==="string")return ee(w,h);return String(w)}function u(m,h,w={}){let D=c(m,{...w,count:h});if(D.includes("|")){let T=D.split("|").map((Z)=>Z.trim()),_=(a[s]||da)(h,s),V=T[_]||T[T.length-1];return ee(V,{...w,count:h})}return D}function p(m,h="default"){let w=typeof m==="number"?new Date(m):m,D=o[h]||o.default||{};return new Intl.DateTimeFormat(s,D).format(w)}function x(m,h="default"){let w=i[h]||i.default||{};return new Intl.NumberFormat(s,w).format(m)}function f(m){if(U(r[s],m)!==void 0)return!0;if(t)return U(r[t],m)!==void 0;return!1}function C(m){if(!r[m]){console.warn(`[i18n] Locale "${m}" not found. Available locales: ${Object.keys(r).join(", ")}`);return}s=m}function v(m,h){if(!r[m])r[m]={};r[m]={...r[m],...h}}function k(m){delete r[m]}return{get locale(){return s},get availableLocales(){return Object.keys(r)},setLocale:C,t:c,tc:u,d:p,n:x,te:f,addMessages:v,removeLocale:k}}function Ad(e){I=e}function Od(){return I}function Fd(e,s){if(!I)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return I.t(e,s)}function Gd(e,s,t){if(!I)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return I.tc(e,s,t)}function Ud(e,s){if(!I)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return I.d(e,s)}function Wd(e,s){if(!I)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return I.n(e,s)}var Yd={en:(e)=>e===1?0:1,de:(e)=>e===1?0:1,nl:(e)=>e===1?0:1,sv:(e)=>e===1?0:1,fr:(e)=>e===0||e===1?0:1,pt_BR:(e)=>e===0||e===1?0:1,ru:(e)=>{if(e%10===1&&e%100!==11)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},pl:(e)=>{if(e===1)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},cs:(e)=>{if(e===1)return 0;if(e>=2&&e<=4)return 1;return 2},ar:(e)=>{if(e===0)return 0;if(e===1)return 1;if(e===2)return 2;if(e%100>=3&&e%100<=10)return 3;if(e%100>=11)return 4;return 5},ja:()=>0,ko:()=>0,zh:()=>0,th:()=>0,vi:()=>0},_d={short:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}},Vd={decimal:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2},currency:{style:"currency",currency:"USD"},percent:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2},compact:{notation:"compact"}};function Zd(e){let s=["ar","he","fa","ur","yi"],t=e.split("-")[0].toLowerCase();return s.includes(t)}async function Xd(e,s){try{return await s()}catch(t){return console.error(`[i18n] Failed to load messages for locale "${e}":`,t),{}}}var Jd={en:{common:{loading:"Loading...",error:"Error",retry:"Retry",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",search:"Search",clear:"Clear",submit:"Submit",reset:"Reset"},form:{required:"This field is required",invalid:"Invalid value",tooShort:"Value is too short (minimum {min} characters)",tooLong:"Value is too long (maximum {max} characters)",invalidEmail:"Invalid email address",invalidUrl:"Invalid URL"},pagination:{previous:"Previous",next:"Next",page:"Page {page}",of:"of {total}"}},es:{common:{loading:"Cargando...",error:"Error",retry:"Reintentar",cancel:"Cancelar",confirm:"Confirmar",close:"Cerrar",save:"Guardar",delete:"Eliminar",edit:"Editar",search:"Buscar",clear:"Limpiar",submit:"Enviar",reset:"Restablecer"},form:{required:"Este campo es obligatorio",invalid:"Valor inv\xE1lido",tooShort:"El valor es demasiado corto (m\xEDnimo {min} caracteres)",tooLong:"El valor es demasiado largo (m\xE1ximo {max} caracteres)",invalidEmail:"Direcci\xF3n de correo electr\xF3nico inv\xE1lida",invalidUrl:"URL inv\xE1lida"},pagination:{previous:"Anterior",next:"Siguiente",page:"P\xE1gina {page}",of:"de {total}"}},fr:{common:{loading:"Chargement...",error:"Erreur",retry:"R\xE9essayer",cancel:"Annuler",confirm:"Confirmer",close:"Fermer",save:"Enregistrer",delete:"Supprimer",edit:"Modifier",search:"Rechercher",clear:"Effacer",submit:"Soumettre",reset:"R\xE9initialiser"},form:{required:"Ce champ est obligatoire",invalid:"Valeur invalide",tooShort:"La valeur est trop courte (minimum {min} caract\xE8res)",tooLong:"La valeur est trop longue (maximum {max} caract\xE8res)",invalidEmail:"Adresse e-mail invalide",invalidUrl:"URL invalide"},pagination:{previous:"Pr\xE9c\xE9dent",next:"Suivant",page:"Page {page}",of:"sur {total}"}}};function Qd(e={}){let{max:s=10,ttl:t=0,include:r,exclude:a,hooks:o,debug:i=!1}=e,n=new Map,d=0,c=0;function u(...g){if(i)console.log("[KeepAlive]",...g)}function p(g){if(a){if(a instanceof RegExp&&a.test(g))return!1;if(Array.isArray(a)&&a.includes(g))return!1}if(r){if(r instanceof RegExp&&!r.test(g))return!1;if(Array.isArray(r)&&!r.includes(g))return!1}return!0}function x(g){if(!t||!g.expiresAt)return!1;return Date.now()>g.expiresAt}function f(g){let b=n.get(g);if(b)b.lastAccessedAt=Date.now(),b.accessCount++,b.instance.lastAccessedAt=b.lastAccessedAt,n.delete(g),n.set(g,b),u(`Touched: ${g} (access count: ${b.accessCount})`)}function C(){if(n.size===0)return!1;let g=n.keys().next().value;if(!g)return!1;let b=n.get(g);if(b){u(`Evicting LRU: ${g}`);let y=b.instance.hooks;if(y?.onDeactivate)y.onDeactivate(b.instance);if(o?.onDeactivate)o.onDeactivate(b.instance);return n.delete(g),!0}return!1}function v(g,b,y){if(!p(b.type))return u(`Type not cacheable: ${b.type}`),b;if(n.size>=s)C();let L=Date.now(),E={instance:{...b,hooks:y||b.hooks,createdAt:b.createdAt||L,lastAccessedAt:L},accessCount:0,createdAt:L,lastAccessedAt:L,expiresAt:t?L+t:void 0};if(n.set(g,E),u(`Cached: ${g} (size: ${n.size}/${s})`),y?.onMount)y.onMount(E.instance);if(o?.onMount)o.onMount(E.instance);return E.instance}function k(g){let b=n.get(g);if(!b)return c++,u(`Miss: ${g}`),null;if(x(b))return u(`Expired: ${g}`),n.delete(g),c++,null;return d++,f(g),u(`Hit: ${g}`),b.instance}function m(g){let b=n.get(g);if(!b)return!1;if(x(b))return n.delete(g),!1;return!0}function h(g){let b=n.get(g);if(!b)return!1;u(`Removing: ${g}`);let y=b.instance.hooks;if(y?.onUnmount)y.onUnmount(b.instance);if(o?.onUnmount)o.onUnmount(b.instance);return n.delete(g)}function w(){u("Clearing cache"),n.forEach((g)=>{let b=g.instance.hooks;if(b?.onUnmount)b.onUnmount(g.instance);if(o?.onUnmount)o.onUnmount(g.instance)}),n.clear(),d=0,c=0}function D(){let g=0,b=Date.now();for(let[y,L]of n.entries())if(x(L))u(`Pruning expired: ${y}`),h(y),g++;while(n.size>s)if(C())g++;else break;if(g>0)u(`Pruned ${g} entries`);return g}function T(g){let b=k(g);if(!b)return null;u(`Activating: ${g}`);let y=b.hooks;if(y?.onActivate)y.onActivate(b);if(o?.onActivate)o.onActivate(b);if(b.state&&y?.onRestore)y.onRestore(b,b.state);return b}function te(g){let b=n.get(g);if(!b)return!1;u(`Deactivating: ${g}`);let y=b.instance,L=y.hooks;if(L?.onSave)y.state=L.onSave(y);if(L?.onDeactivate)L.onDeactivate(y);if(o?.onDeactivate)o.onDeactivate(y);return!0}function _(){let g=d+c;return{hits:d,misses:c,size:n.size,max:s,hitRate:g>0?d/g:0,keys:Array.from(n.keys())}}function V(){return Array.from(n.keys())}function Z(){return n.size}return{cache:v,get:k,has:m,remove:h,clear:w,prune:D,activate:T,deactivate:te,getStats:_,keys:V,size:Z}}function ec(e){let s=new Map;return{set(t,r){if(s.has(t))s.delete(t);if(s.set(t,r),s.size>e){let a=s.keys().next().value;if(a)s.delete(a)}},get(t){if(!s.has(t))return;let r=s.get(t);return s.delete(t),s.set(t,r),r},has(t){return s.has(t)},delete(t){return s.delete(t)},clear(){s.clear()},get size(){return s.size},keys(){return Array.from(s.keys())},values(){return Array.from(s.values())},forEach(t){s.forEach(t)}}}function sc(){let e=new Map;return{save(s,t){e.set(s,JSON.parse(JSON.stringify(t)))},restore(s){let t=e.get(s);return t?JSON.parse(JSON.stringify(t)):null},has(s){return e.has(s)},remove(s){return e.delete(s)},clear(){e.clear()},keys(){return Array.from(e.keys())},get size(){return e.size}}}function tc(e,s={}){let{maxSize:t=100,reset:r}=s,a=[];return{acquire(){if(a.length>0)return a.pop();return e()},release(o){if(a.length<t){if(r)r(o);a.push(o)}},clear(){a.length=0},get size(){return a.length},get maxSize(){return t}}}var P=new Map;async function W(e,s){let t=s||e.toString();if(P.has(t))return P.get(t);let r=e();P.set(t,r);try{return await r}catch(a){throw P.delete(t),a}}function ac(e,s={}){let{retryAttempts:t=3,retryDelay:r=1000,onLoading:a,onLoaded:o,onError:i}=s,n="idle",d,c,u=async(p=0)=>{try{if(n==="loading"||n==="loaded"){if(d)return d}n="loading",a?.();let x=await W(e);return d=x,n="loaded",o?.(x),x}catch(x){let f=x;if(p<t)return await new Promise((C)=>setTimeout(C,r*(p+1))),u(p+1);throw n="error",c=f,i?.(f),f}};return{get state(){return n},get module(){return d},get error(){return c},load:()=>u(),preload:()=>u()}}function ca(e,s,t={}){if(!e)return console.warn("lazyLoad: element is null"),()=>{};let{root:r=null,rootMargin:a="0px",threshold:o=0.01,placeholder:i,errorContent:n,onLoading:d,onLoaded:c,onError:u}=t,p=!1,x=null;if(i)if(typeof i==="string")e.innerHTML=i;else e.innerHTML="",e.appendChild(i);return x=new IntersectionObserver(async(C)=>{for(let v of C)if(v.isIntersecting&&!p){p=!0,x?.disconnect();try{d?.();let k=await W(s);if(c?.(k),k&&typeof k.default?.render==="function"){let m=await k.default.render();e.innerHTML=m}}catch(k){let m=k;if(u?.(m),n)if(typeof n==="string")e.innerHTML=n;else e.innerHTML="",e.appendChild(n);else e.innerHTML=`<div style="color: red;">Failed to load component: ${m.message}</div>`}}},{root:r,rootMargin:a,threshold:o}),x.observe(e),()=>{x?.disconnect(),x=null}}function oc(e,s,t={}){let r=[],a=Array.from(e);for(let o of a){let i=typeof s==="function"&&s.length>0?()=>s(o):s,n=ca(o,i,t);r.push(n)}return()=>{r.forEach((o)=>o())}}function pa(e){return W(e)}function ic(e){return Promise.all(e.map((s)=>pa(s)))}function nc(e){if(e)P.delete(e);else P.clear()}function lc(){return{size:P.size,keys:Array.from(P.keys())}}function dc(e){return{async load(s){let t=e[s];if(!t)throw Error(`No route found for path: ${s}`);return W(t,`route:${s}`)},async preload(s){return this.load(s)},async preloadRoutes(s){return Promise.all(s.map((t)=>this.preload(t)))}}}function ga(e,s,t={}){if(!e)return()=>{};let{root:r=null,rootMargin:a="50px",threshold:o=0.01,placeholder:i,onLoading:n,onLoaded:d,onError:c}=t;if(i&&typeof i==="string")e.src=i;let u=!1,p=null;return p=new IntersectionObserver((f)=>{for(let C of f)if(C.isIntersecting&&!u)u=!0,p?.disconnect(),n?.(),e.src=s,e.addEventListener("load",()=>{d?.(e),e.classList.add("loaded")},{once:!0}),e.addEventListener("error",(v)=>{let k=Error(`Failed to load image: ${s}`);c?.(k),e.classList.add("error")},{once:!0})},{root:r,rootMargin:a,threshold:o}),p.observe(e),()=>{p?.disconnect(),p=null}}function cc(e=document,s={}){let t=e.querySelectorAll("img[data-lazy-src]"),r=[];return t.forEach((a)=>{let o=a.getAttribute("data-lazy-src");if(o){let i=ga(a,o,s);r.push(i)}}),()=>{r.forEach((a)=>a())}}var se={colors:{primary:"#3b82f6",secondary:"#8b5cf6",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#06b6d4",gray:"#6b7280",white:"#ffffff",black:"#000000"},typography:{fontFamily:{sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.75"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",full:"9999px"},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},components:{button:{borderRadius:"0.375rem",padding:"0.5rem 1rem",fontSize:"0.875rem",fontWeight:"500"},input:{borderRadius:"0.375rem",padding:"0.5rem 0.75rem",fontSize:"0.875rem",borderWidth:"1px"},card:{borderRadius:"0.5rem",padding:"1.5rem",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"}}};function ne(e,s){let t={...e};for(let r in s)if(s[r]instanceof Object&&r in e)t[r]=ne(e[r],s[r]);else t[r]=s[r];return t}function H(e){return ne(se,e)}var Y=se;function gc(){return Y}function ua(e){let s=[];if(e.colors)Object.entries(e.colors).forEach(([t,r])=>{if(r)s.push(`--color-${t}: ${r};`)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([t,r])=>{if(r)s.push(`--font-${t}: ${r};`)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([t,r])=>{if(r)s.push(`--text-${t}: ${r};`)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([t,r])=>{if(r)s.push(`--font-weight-${t}: ${r};`)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([t,r])=>{if(r)s.push(`--leading-${t}: ${r};`)});if(e.spacing)Object.entries(e.spacing).forEach(([t,r])=>{if(r)s.push(`--spacing-${t}: ${r};`)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([t,r])=>{if(r)s.push(`--radius-${t}: ${r};`)});if(e.shadows)Object.entries(e.shadows).forEach(([t,r])=>{if(r)s.push(`--shadow-${t}: ${r};`)});if(e.components?.button)Object.entries(e.components.button).forEach(([t,r])=>{if(r)s.push(`--button-${t.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r};`)});if(e.components?.input)Object.entries(e.components.input).forEach(([t,r])=>{if(r)s.push(`--input-${t.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r};`)});if(e.components?.card)Object.entries(e.components.card).forEach(([t,r])=>{if(r)s.push(`--card-${t.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r};`)});return`:root {
17
- ${s.join(`
16
+ `,r=document.createElement("style");r.textContent=s,document.head.appendChild(r)}function ao(e,t,s={}){if(typeof e.animate!=="function")return console.warn("Web Animations API not supported"),null;let{duration:r=1000,easing:o="ease",delay:a=0,iterations:i=1,direction:n="normal",fill:d="both"}=s;return e.animate([...t],{duration:r,easing:o,delay:a,iterations:i,direction:n,fill:d})}var io={fadeIn:[{offset:0,opacity:0},{offset:1,opacity:1}],fadeOut:[{offset:0,opacity:1},{offset:1,opacity:0}],slideInUp:[{offset:0,transform:"translateY(100%)",opacity:0},{offset:1,transform:"translateY(0)",opacity:1}],slideInDown:[{offset:0,transform:"translateY(-100%)",opacity:0},{offset:1,transform:"translateY(0)",opacity:1}],slideInLeft:[{offset:0,transform:"translateX(-100%)",opacity:0},{offset:1,transform:"translateX(0)",opacity:1}],slideInRight:[{offset:0,transform:"translateX(100%)",opacity:0},{offset:1,transform:"translateX(0)",opacity:1}],slideOutUp:[{offset:0,transform:"translateY(0)",opacity:1},{offset:1,transform:"translateY(-100%)",opacity:0}],slideOutDown:[{offset:0,transform:"translateY(0)",opacity:1},{offset:1,transform:"translateY(100%)",opacity:0}],slideOutLeft:[{offset:0,transform:"translateX(0)",opacity:1},{offset:1,transform:"translateX(-100%)",opacity:0}],slideOutRight:[{offset:0,transform:"translateX(0)",opacity:1},{offset:1,transform:"translateX(100%)",opacity:0}],zoomIn:[{offset:0,transform:"scale(0)",opacity:0},{offset:0.5,opacity:1},{offset:1,transform:"scale(1)"}],zoomOut:[{offset:0,transform:"scale(1)",opacity:1},{offset:0.5,opacity:1},{offset:1,transform:"scale(0)",opacity:0}],rotate:[{offset:0,transform:"rotate(0deg)"},{offset:1,transform:"rotate(360deg)"}],bounce:[{offset:0,transform:"translateY(0)"},{offset:0.2,transform:"translateY(0)"},{offset:0.4,transform:"translateY(-30px)"},{offset:0.43,transform:"translateY(-30px)"},{offset:0.53,transform:"translateY(0)"},{offset:0.7,transform:"translateY(-15px)"},{offset:0.8,transform:"translateY(0)"},{offset:0.9,transform:"translateY(-4px)"},{offset:1,transform:"translateY(0)"}],pulse:[{offset:0,transform:"scale(1)"},{offset:0.5,transform:"scale(1.05)"},{offset:1,transform:"scale(1)"}],shake:[{offset:0,transform:"translateX(0)"},{offset:0.1,transform:"translateX(-10px)"},{offset:0.2,transform:"translateX(10px)"},{offset:0.3,transform:"translateX(-10px)"},{offset:0.4,transform:"translateX(10px)"},{offset:0.5,transform:"translateX(-10px)"},{offset:0.6,transform:"translateX(10px)"},{offset:0.7,transform:"translateX(-10px)"},{offset:0.8,transform:"translateX(10px)"},{offset:0.9,transform:"translateX(-10px)"},{offset:1,transform:"translateX(0)"}],swing:[{offset:0,transform:"rotate(0deg)"},{offset:0.2,transform:"rotate(15deg)"},{offset:0.4,transform:"rotate(-10deg)"},{offset:0.6,transform:"rotate(5deg)"},{offset:0.8,transform:"rotate(-5deg)"},{offset:1,transform:"rotate(0deg)"}],flip:[{offset:0,transform:"perspective(400px) rotateY(0)",animationTimingFunction:"ease-out"},{offset:0.4,transform:"perspective(400px) translateZ(150px) rotateY(170deg)",animationTimingFunction:"ease-out"},{offset:0.5,transform:"perspective(400px) translateZ(150px) rotateY(190deg)",animationTimingFunction:"ease-in"},{offset:0.8,transform:"perspective(400px) rotateY(360deg)",animationTimingFunction:"ease-in"},{offset:1,transform:"perspective(400px)",animationTimingFunction:"ease-in"}],rubberBand:[{offset:0,transform:"scale(1)"},{offset:0.3,transform:"scaleX(1.25) scaleY(0.75)"},{offset:0.4,transform:"scaleX(0.75) scaleY(1.25)"},{offset:0.5,transform:"scaleX(1.15) scaleY(0.85)"},{offset:0.65,transform:"scaleX(0.95) scaleY(1.05)"},{offset:0.75,transform:"scaleX(1.05) scaleY(0.95)"},{offset:1,transform:"scale(1)"}],heartbeat:[{offset:0,transform:"scale(1)"},{offset:0.14,transform:"scale(1.3)"},{offset:0.28,transform:"scale(1)"},{offset:0.42,transform:"scale(1.3)"},{offset:0.7,transform:"scale(1)"}]};function Ed(e,t,s={}){return ao(e,io[t],s)}import{createHighlighter as no}from"ts-syntax-highlighter";var Q=null;async function lo(){if(!Q)Q=await no({theme:"github-light"});return Q}async function Od(e,t={}){let{theme:s="auto",language:r="typescript",lineNumbers:o=!1,wrapLines:a=!0}=t,i=await lo(),n=s==="auto"?globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches?"github-dark":"github-light":s==="dark"?"github-dark":"github-light",d=await i.highlight(e,r);return{html:typeof d==="string"?d:String(d),language:r,theme:n}}function qd(e){if(e.includes("<!DOCTYPE")||e.includes("<html"))return"html";if(e.includes("<?php"))return"php";if(e.includes("import")&&e.includes("from"))return"typescript";if(e.includes("function")||e.includes("const"))return"javascript";if(e.includes("{")&&e.includes("}"))return"json";if(e.includes("$")&&e.includes("|"))return"bash";if(e.includes("#")&&e.includes("##"))return"markdown";return"typescript"}function Bd(e,t){return`<div class="${t?`rounded-md overflow-auto text-sm leading-relaxed font-mono ${t}`:"rounded-md overflow-auto text-sm leading-relaxed font-mono"}">${e}</div>`}var P=null,co=(e)=>{return e===1?0:1};function F(e,t){return t.split(".").reduce((s,r)=>s?.[r],e)}function ee(e,t={}){return e.replace(/\{(\w+)\}/g,(s,r)=>{return t[r]!==void 0?String(t[r]):s})}function Hd(e){let{locale:t,fallbackLocale:s="en",messages:r,pluralRules:o={},dateTimeFormats:a={},numberFormats:i={},missing:n,warnMissing:d=!0}=e;function c(m,v={}){let C=F(r[t],m);if(C===void 0&&s)C=F(r[s],m);if(C===void 0){if(n){let I=n(t,m);if(I)return ee(I,v)}if(d&&typeof console<"u")console.warn(`[i18n] Missing translation for key "${m}" in locale "${t}"`);return m}if(typeof C==="string")return ee(C,v);return String(C)}function u(m,v,C={}){let I=c(m,{...C,count:v});if(I.includes("|")){let E=I.split("|").map((J)=>J.trim()),Y=(o[t]||co)(v,t),G=E[Y]||E[E.length-1];return ee(G,{...C,count:v})}return I}function p(m,v="default"){let C=typeof m==="number"?new Date(m):m,I=a[v]||a.default||{};return new Intl.DateTimeFormat(t,I).format(C)}function f(m,v="default"){let C=i[v]||i.default||{};return new Intl.NumberFormat(t,C).format(m)}function x(m){if(F(r[t],m)!==void 0)return!0;if(s)return F(r[s],m)!==void 0;return!1}function y(m){if(!r[m]){console.warn(`[i18n] Locale "${m}" not found. Available locales: ${Object.keys(r).join(", ")}`);return}t=m}function h(m,v){if(!r[m])r[m]={};r[m]={...r[m],...v}}function k(m){delete r[m]}return{get locale(){return t},get availableLocales(){return Object.keys(r)},setLocale:y,t:c,tc:u,d:p,n:f,te:x,addMessages:h,removeLocale:k}}function Ad(e){P=e}function Vd(){return P}function Rd(e,t){if(!P)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return P.t(e,t)}function Wd(e,t,s){if(!P)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return P.tc(e,t,s)}function Fd(e,t){if(!P)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return P.d(e,t)}function Ud(e,t){if(!P)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return P.n(e,t)}var _d={en:(e)=>e===1?0:1,de:(e)=>e===1?0:1,nl:(e)=>e===1?0:1,sv:(e)=>e===1?0:1,fr:(e)=>e===0||e===1?0:1,pt_BR:(e)=>e===0||e===1?0:1,ru:(e)=>{if(e%10===1&&e%100!==11)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},pl:(e)=>{if(e===1)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},cs:(e)=>{if(e===1)return 0;if(e>=2&&e<=4)return 1;return 2},ar:(e)=>{if(e===0)return 0;if(e===1)return 1;if(e===2)return 2;if(e%100>=3&&e%100<=10)return 3;if(e%100>=11)return 4;return 5},ja:()=>0,ko:()=>0,zh:()=>0,th:()=>0,vi:()=>0},Yd={short:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}},Gd={decimal:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2},currency:{style:"currency",currency:"USD"},percent:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2},compact:{notation:"compact"}};function Jd(e){let t=["ar","he","fa","ur","yi"],s=e.split("-")[0].toLowerCase();return t.includes(s)}async function Zd(e,t){try{return await t()}catch(s){return console.error(`[i18n] Failed to load messages for locale "${e}":`,s),{}}}var Xd={en:{common:{loading:"Loading...",error:"Error",retry:"Retry",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",search:"Search",clear:"Clear",submit:"Submit",reset:"Reset"},form:{required:"This field is required",invalid:"Invalid value",tooShort:"Value is too short (minimum {min} characters)",tooLong:"Value is too long (maximum {max} characters)",invalidEmail:"Invalid email address",invalidUrl:"Invalid URL"},pagination:{previous:"Previous",next:"Next",page:"Page {page}",of:"of {total}"}},es:{common:{loading:"Cargando...",error:"Error",retry:"Reintentar",cancel:"Cancelar",confirm:"Confirmar",close:"Cerrar",save:"Guardar",delete:"Eliminar",edit:"Editar",search:"Buscar",clear:"Limpiar",submit:"Enviar",reset:"Restablecer"},form:{required:"Este campo es obligatorio",invalid:"Valor inv\xE1lido",tooShort:"El valor es demasiado corto (m\xEDnimo {min} caracteres)",tooLong:"El valor es demasiado largo (m\xE1ximo {max} caracteres)",invalidEmail:"Direcci\xF3n de correo electr\xF3nico inv\xE1lida",invalidUrl:"URL inv\xE1lida"},pagination:{previous:"Anterior",next:"Siguiente",page:"P\xE1gina {page}",of:"de {total}"}},fr:{common:{loading:"Chargement...",error:"Erreur",retry:"R\xE9essayer",cancel:"Annuler",confirm:"Confirmer",close:"Fermer",save:"Enregistrer",delete:"Supprimer",edit:"Modifier",search:"Rechercher",clear:"Effacer",submit:"Soumettre",reset:"R\xE9initialiser"},form:{required:"Ce champ est obligatoire",invalid:"Valeur invalide",tooShort:"La valeur est trop courte (minimum {min} caract\xE8res)",tooLong:"La valeur est trop longue (maximum {max} caract\xE8res)",invalidEmail:"Adresse e-mail invalide",invalidUrl:"URL invalide"},pagination:{previous:"Pr\xE9c\xE9dent",next:"Suivant",page:"Page {page}",of:"sur {total}"}}};function Qd(e={}){let{max:t=10,ttl:s=0,include:r,exclude:o,hooks:a,debug:i=!1}=e,n=new Map,d=0,c=0;function u(...g){if(i)console.log("[KeepAlive]",...g)}function p(g){if(o){if(o instanceof RegExp&&o.test(g))return!1;if(Array.isArray(o)&&o.includes(g))return!1}if(r){if(r instanceof RegExp&&!r.test(g))return!1;if(Array.isArray(r)&&!r.includes(g))return!1}return!0}function f(g){if(!s||!g.expiresAt)return!1;return Date.now()>g.expiresAt}function x(g){let b=n.get(g);if(b)b.lastAccessedAt=Date.now(),b.accessCount++,b.instance.lastAccessedAt=b.lastAccessedAt,n.delete(g),n.set(g,b),u(`Touched: ${g} (access count: ${b.accessCount})`)}function y(){if(n.size===0)return!1;let g=n.keys().next().value;if(!g)return!1;let b=n.get(g);if(b){u(`Evicting LRU: ${g}`);let w=b.instance.hooks;if(w?.onDeactivate)w.onDeactivate(b.instance);if(a?.onDeactivate)a.onDeactivate(b.instance);return n.delete(g),!0}return!1}function h(g,b,w){if(!p(b.type))return u(`Type not cacheable: ${b.type}`),b;if(n.size>=t)y();let D=Date.now(),H={instance:{...b,hooks:w||b.hooks,createdAt:b.createdAt||D,lastAccessedAt:D},accessCount:0,createdAt:D,lastAccessedAt:D,expiresAt:s?D+s:void 0};if(n.set(g,H),u(`Cached: ${g} (size: ${n.size}/${t})`),w?.onMount)w.onMount(H.instance);if(a?.onMount)a.onMount(H.instance);return H.instance}function k(g){let b=n.get(g);if(!b)return c++,u(`Miss: ${g}`),null;if(f(b))return u(`Expired: ${g}`),n.delete(g),c++,null;return d++,x(g),u(`Hit: ${g}`),b.instance}function m(g){let b=n.get(g);if(!b)return!1;if(f(b))return n.delete(g),!1;return!0}function v(g){let b=n.get(g);if(!b)return!1;u(`Removing: ${g}`);let w=b.instance.hooks;if(w?.onUnmount)w.onUnmount(b.instance);if(a?.onUnmount)a.onUnmount(b.instance);return n.delete(g)}function C(){u("Clearing cache"),n.forEach((g)=>{let b=g.instance.hooks;if(b?.onUnmount)b.onUnmount(g.instance);if(a?.onUnmount)a.onUnmount(g.instance)}),n.clear(),d=0,c=0}function I(){let g=0,b=Date.now();for(let[w,D]of n.entries())if(f(D))u(`Pruning expired: ${w}`),v(w),g++;while(n.size>t)if(y())g++;else break;if(g>0)u(`Pruned ${g} entries`);return g}function E(g){let b=k(g);if(!b)return null;u(`Activating: ${g}`);let w=b.hooks;if(w?.onActivate)w.onActivate(b);if(a?.onActivate)a.onActivate(b);if(b.state&&w?.onRestore)w.onRestore(b,b.state);return b}function se(g){let b=n.get(g);if(!b)return!1;u(`Deactivating: ${g}`);let w=b.instance,D=w.hooks;if(D?.onSave)w.state=D.onSave(w);if(D?.onDeactivate)D.onDeactivate(w);if(a?.onDeactivate)a.onDeactivate(w);return!0}function Y(){let g=d+c;return{hits:d,misses:c,size:n.size,max:t,hitRate:g>0?d/g:0,keys:Array.from(n.keys())}}function G(){return Array.from(n.keys())}function J(){return n.size}return{cache:h,get:k,has:m,remove:v,clear:C,prune:I,activate:E,deactivate:se,getStats:Y,keys:G,size:J}}function ec(e){let t=new Map;return{set(s,r){if(t.has(s))t.delete(s);if(t.set(s,r),t.size>e){let o=t.keys().next().value;if(o)t.delete(o)}},get(s){if(!t.has(s))return;let r=t.get(s);return t.delete(s),t.set(s,r),r},has(s){return t.has(s)},delete(s){return t.delete(s)},clear(){t.clear()},get size(){return t.size},keys(){return Array.from(t.keys())},values(){return Array.from(t.values())},forEach(s){t.forEach(s)}}}function tc(){let e=new Map;return{save(t,s){e.set(t,JSON.parse(JSON.stringify(s)))},restore(t){let s=e.get(t);return s?JSON.parse(JSON.stringify(s)):null},has(t){return e.has(t)},remove(t){return e.delete(t)},clear(){e.clear()},keys(){return Array.from(e.keys())},get size(){return e.size}}}function sc(e,t={}){let{maxSize:s=100,reset:r}=t,o=[];return{acquire(){if(o.length>0)return o.pop();return e()},release(a){if(o.length<s){if(r)r(a);o.push(a)}},clear(){o.length=0},get size(){return o.length},get maxSize(){return s}}}var T=new Map;async function U(e,t){let s=t||e.toString();if(T.has(s))return T.get(s);let r=e();T.set(s,r);try{return await r}catch(o){throw T.delete(s),o}}function oc(e,t={}){let{retryAttempts:s=3,retryDelay:r=1000,onLoading:o,onLoaded:a,onError:i}=t,n="idle",d,c,u=async(p=0)=>{try{if(n==="loading"||n==="loaded"){if(d)return d}n="loading",o?.();let f=await U(e);return d=f,n="loaded",a?.(f),f}catch(f){let x=f;if(p<s)return await new Promise((y)=>setTimeout(y,r*(p+1))),u(p+1);throw n="error",c=x,i?.(x),x}};return{get state(){return n},get module(){return d},get error(){return c},load:()=>u(),preload:()=>u()}}function po(e,t,s={}){if(!e)return console.warn("lazyLoad: element is null"),()=>{};let{root:r=null,rootMargin:o="0px",threshold:a=0.01,placeholder:i,errorContent:n,onLoading:d,onLoaded:c,onError:u}=s,p=!1,f=null;if(i)if(typeof i==="string")e.innerHTML=i;else e.innerHTML="",e.appendChild(i);return f=new IntersectionObserver(async(y)=>{for(let h of y)if(h.isIntersecting&&!p){p=!0,f?.disconnect();try{d?.();let k=await U(t);if(c?.(k),k&&typeof k.default?.render==="function"){let m=await k.default.render();e.innerHTML=m}}catch(k){let m=k;if(u?.(m),n)if(typeof n==="string")e.innerHTML=n;else e.innerHTML="",e.appendChild(n);else e.innerHTML=`<div style="color: red;">Failed to load component: ${m.message}</div>`}}},{root:r,rootMargin:o,threshold:a}),f.observe(e),()=>{f?.disconnect(),f=null}}function ac(e,t,s={}){let r=[],o=Array.from(e);for(let a of o){let i=typeof t==="function"&&t.length>0?()=>t(a):t,n=po(a,i,s);r.push(n)}return()=>{r.forEach((a)=>a())}}function go(e){return U(e)}function ic(e){return Promise.all(e.map((t)=>go(t)))}function nc(e){if(e)T.delete(e);else T.clear()}function lc(){return{size:T.size,keys:Array.from(T.keys())}}function dc(e){return{async load(t){let s=e[t];if(!s)throw Error(`No route found for path: ${t}`);return U(s,`route:${t}`)},async preload(t){return this.load(t)},async preloadRoutes(t){return Promise.all(t.map((s)=>this.preload(s)))}}}function uo(e,t,s={}){if(!e)return()=>{};let{root:r=null,rootMargin:o="50px",threshold:a=0.01,placeholder:i,onLoading:n,onLoaded:d,onError:c}=s;if(i&&typeof i==="string")e.src=i;let u=!1,p=null;return p=new IntersectionObserver((x)=>{for(let y of x)if(y.isIntersecting&&!u)u=!0,p?.disconnect(),n?.(),e.src=t,e.addEventListener("load",()=>{d?.(e),e.classList.add("loaded")},{once:!0}),e.addEventListener("error",(h)=>{let k=Error(`Failed to load image: ${t}`);c?.(k),e.classList.add("error")},{once:!0})},{root:r,rootMargin:o,threshold:a}),p.observe(e),()=>{p?.disconnect(),p=null}}function cc(e=document,t={}){let s=e.querySelectorAll("img[data-lazy-src]"),r=[];return s.forEach((o)=>{let a=o.getAttribute("data-lazy-src");if(a){let i=uo(o,a,t);r.push(i)}}),()=>{r.forEach((o)=>o())}}var te={colors:{primary:"#3b82f6",secondary:"#8b5cf6",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#06b6d4",gray:"#6b7280",white:"#ffffff",black:"#000000"},typography:{fontFamily:{sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.75"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",full:"9999px"},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},components:{button:{borderRadius:"0.375rem",padding:"0.5rem 1rem",fontSize:"0.875rem",fontWeight:"500"},input:{borderRadius:"0.375rem",padding:"0.5rem 0.75rem",fontSize:"0.875rem",borderWidth:"1px"},card:{borderRadius:"0.5rem",padding:"1.5rem",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"}}};function ne(e,t){let s={...e};for(let r in t)if(t[r]instanceof Object&&r in e)s[r]=ne(e[r],t[r]);else s[r]=t[r];return s}function j(e){return ne(te,e)}var _=te;function gc(){return _}function xo(e){let t=[];if(e.colors)Object.entries(e.colors).forEach(([s,r])=>{if(r)t.push(`--color-${s}: ${r};`)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([s,r])=>{if(r)t.push(`--font-${s}: ${r};`)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([s,r])=>{if(r)t.push(`--text-${s}: ${r};`)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([s,r])=>{if(r)t.push(`--font-weight-${s}: ${r};`)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([s,r])=>{if(r)t.push(`--leading-${s}: ${r};`)});if(e.spacing)Object.entries(e.spacing).forEach(([s,r])=>{if(r)t.push(`--spacing-${s}: ${r};`)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([s,r])=>{if(r)t.push(`--radius-${s}: ${r};`)});if(e.shadows)Object.entries(e.shadows).forEach(([s,r])=>{if(r)t.push(`--shadow-${s}: ${r};`)});if(e.components?.button)Object.entries(e.components.button).forEach(([s,r])=>{if(r)t.push(`--button-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r};`)});if(e.components?.input)Object.entries(e.components.input).forEach(([s,r])=>{if(r)t.push(`--input-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r};`)});if(e.components?.card)Object.entries(e.components.card).forEach(([s,r])=>{if(r)t.push(`--card-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r};`)});return`:root {
17
+ ${t.join(`
18
18
  `)}
19
- }`}function uc(e,s){if(Y=e,typeof document>"u")return;let t=s||document.documentElement;if(e.colors)Object.entries(e.colors).forEach(([r,a])=>{if(a)t.style.setProperty(`--color-${r}`,a)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([r,a])=>{if(a)t.style.setProperty(`--font-${r}`,a)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([r,a])=>{if(a)t.style.setProperty(`--text-${r}`,a)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([r,a])=>{if(a)t.style.setProperty(`--font-weight-${r}`,a)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([r,a])=>{if(a)t.style.setProperty(`--leading-${r}`,a)});if(e.spacing)Object.entries(e.spacing).forEach(([r,a])=>{if(a)t.style.setProperty(`--spacing-${r}`,a)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([r,a])=>{if(a)t.style.setProperty(`--radius-${r}`,a)});if(e.shadows)Object.entries(e.shadows).forEach(([r,a])=>{if(a)t.style.setProperty(`--shadow-${r}`,a)});if(e.components?.button)Object.entries(e.components.button).forEach(([r,a])=>{if(a)t.style.setProperty(`--button-${r.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.input)Object.entries(e.components.input).forEach(([r,a])=>{if(a)t.style.setProperty(`--input-${r.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.card)Object.entries(e.components.card).forEach(([r,a])=>{if(a)t.style.setProperty(`--card-${r.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)})}function fc(){return Y}function bc(e){let s=e.split("."),t=Y;for(let r of s)if(t&&typeof t==="object"&&r in t)t=t[r];else return;return t}var xc={default:se,purple:H({colors:{primary:"#8b5cf6",secondary:"#a78bfa"}}),green:H({colors:{primary:"#10b981",secondary:"#34d399"}}),orange:H({colors:{primary:"#f97316",secondary:"#fb923c"}}),dark:H({colors:{primary:"#60a5fa",secondary:"#a78bfa",gray:"#9ca3af",white:"#1f2937",black:"#f9fafb"}}),minimal:H({borderRadius:{none:"0",sm:"0",md:"0.125rem",lg:"0.25rem",full:"0.25rem"},shadows:{sm:"none",md:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",lg:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",xl:"0 4px 6px -1px rgba(0, 0, 0, 0.1)","2xl":"0 10px 15px -3px rgba(0, 0, 0, 0.1)",none:"none"}})};function mc(e){return ua(e)}export{re as wrapErrorHandler,bo as warnProp,Le as warn,aa as waitForAnimation,wo as validateVariant,Bi as validateTextInputProps,$o as validateSize,Hi as validateSearchInputProps,Ie as validateProps,qi as validatePasswordInputProps,Ri as validateNumberInputProps,wi as validateFormProps,ji as validateEmailInputProps,Co as validateButtonProps,yd as validateAriaRelationships,fc as useTheme,va as useSEO,ja as usePrefersReducedMotion,j as useMediaQuery,La as useLocalStorage,Na as useKeyboard,Ta as useIsMobile,Pa as useIsDesktop,Ba as useIsDarkMode,ka as useFocusTrap,ma as useDarkMode,fa as useCopyCode,wa as useClickOutside,Ia as useBreakpoint,ua as themeToCSSProperties,xc as themePresets,Rs as textInputPropSchema,Gd as tc,Fd as t,ml as storage,Nd as staggerAnimation,de as setTitle,S as setMeta,ce as setLink,Ad as setI18n,io as setErrorHandler,zd as sequenceAnimations,Sd as removeAnimation,ic as preloadModules,pa as preloadModule,md as prefersReducedMotion,hd as prefersHighContrast,Yd as pluralRules,Hs as numberInputPropSchema,Vd as numberFormats,Wd as n,ud as moveFocus,Xd as loadLocaleMessages,Dr as linear,W as lazyLoadModule,cc as lazyLoadImages,ga as lazyLoadImage,ac as lazyLoadComponent,oc as lazyLoadAll,ca as lazyLoad,fd as isVisibleToScreenReader,Zd as isRTL,jd as highlight,gd as hasFocus,O as handleError,bc as getThemeValue,gc as getTheme,le as getSystemTheme,Od as getI18n,la as getHighlighter,J as getFocusableElements,X as getEffectiveTheme,vd as getColorSchemePreference,lc as getCacheStats,mc as generateThemeCSS,Ca as generateSEOTags,ae as generateId,$s as formPropSchema,po as errorBoundary,Fr as easeOutSine,Er as easeOutQuint,qr as easeOutQuart,Mr as easeOutQuad,Wr as easeOutExpo,Jr as easeOutElastic,Pr as easeOutCubic,Vr as easeOutCirc,K as easeOutBounce,ea as easeOutBack,Or as easeInSine,Hr as easeInQuint,jr as easeInQuart,Lr as easeInQuad,Gr as easeInOutSine,Ar as easeInOutQuint,Rr as easeInOutQuart,Ir as easeInOutQuad,Yr as easeInOutExpo,Kr as easeInOutElastic,Br as easeInOutCubic,Zr as easeInOutCirc,ta as easeInOutBounce,sa as easeInOutBack,Ur as easeInExpo,Xr as easeInElastic,Tr as easeInCubic,_r as easeInCirc,oe as easeInBounce,Qr as easeInBack,lo as devAssert,qd as detectLanguage,se as defaultTheme,_d as dateTimeFormats,Ud as d,ra as cssAnimation,H as createTheme,hl as createStorage,sc as createStateManager,Cd as createSkipLink,xd as createScreenReaderText,yo as createSafeClickHandler,cd as createRovingTabindex,dc as createRouteLoader,M as createPropValidator,ec as createLRUCache,Md as createKeyframes,oa as createKeyframeAnimation,Qd as createKeepAlive,Ed as createI18n,dd as createFocusTrap,co as createDebugger,tc as createComponentPool,id as createAriaLabel,nd as createAriaDescription,ba as copyToClipboard,Jd as componentMessages,nc as clearModuleCache,no as clearErrorHandler,Be as buttonPropSchema,fo as assertProp,De as assert,bd as aria,uc as applyTheme,Rd as applyHeadwindClasses,ie as applyAnimation,ld as announceToScreenReader,Ld as animateWithClass,Td as animate,Nr as VirtualTable,kr as VirtualList,wr as Video,Ce as TwoFactorChallenge,Cr as Transition,hr as Tooltip,xr as Textarea,js as TextInput,fr as Teleport,gr as Tabs,cr as TableRow,lr as TableHeader,ir as TableHead,ar as TableCell,tr as TableBody,er as Table,Kt as Switch,ct as SubscriptionCheckout,G as StorageManager,Xt as StepperStep,Vt as Stepper,Yt as Spinner,Ut as Skeleton,he as Signup,qt as SidebarSection,Ht as SidebarItem,At as SidebarHeader,Ft as SidebarFooter,Bt as Sidebar,Tt as Select,Ps as SearchInput,Mt as RadioGroupOption,Dt as RadioGroupLabel,Nt as RadioGroupDescription,kt as RadioGroup,wt as Radio,l as PropTypes,Ct as Progress,ht as Portal,xt as PopoverPanel,ft as PopoverButton,gt as Popover,lt as PaymentMethods,Is as PasswordInput,tt as Pagination,Ls as NumberInput,et as Notification,Ks as Navigator,xe as Login,Xs as ListboxOptions,Vs as ListboxOption,Ys as ListboxLabel,Us as ListboxButton,Fs as Listbox,ia as KeyframeAnimations,za as KeyboardShortcuts,pd as KeyboardKeys,zc as Installation,Ss as Image,Sc as Hero,ws as Form,$c as Footer,B as ErrorTypes,zs as EmailInput,$d as Easing,Cs as DropdownItems,hs as DropdownItem,xs as DropdownButton,fs as Dropdown,gs as Drawer,cs as DialogTitle,ls as DialogPanel,is as DialogDescription,as as DialogBackdrop,ts as Dialog,it as DefaultPaymentMethod,z as ComponentError,es as CommandPaletteItem,Ke as CommandPalette,Xe as ComboboxOptions,Ve as ComboboxOption,Ye as ComboboxInput,Ue as ComboboxButton,Fe as Combobox,yc as CodeBlock,at as Checkout,Ae as Checkbox,He as Card,qe as Calendar,Pe as Button,q as Breakpoints,Ne as Breadcrumb,ke as Badge,we as Avatar,fe as Audio,Dd as AnimationClasses,ge as Accordion};
19
+ }`}function uc(e,t){if(_=e,typeof document>"u")return;let s=t||document.documentElement;if(e.colors)Object.entries(e.colors).forEach(([r,o])=>{if(o)s.style.setProperty(`--color-${r}`,o)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([r,o])=>{if(o)s.style.setProperty(`--font-${r}`,o)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([r,o])=>{if(o)s.style.setProperty(`--text-${r}`,o)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([r,o])=>{if(o)s.style.setProperty(`--font-weight-${r}`,o)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([r,o])=>{if(o)s.style.setProperty(`--leading-${r}`,o)});if(e.spacing)Object.entries(e.spacing).forEach(([r,o])=>{if(o)s.style.setProperty(`--spacing-${r}`,o)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([r,o])=>{if(o)s.style.setProperty(`--radius-${r}`,o)});if(e.shadows)Object.entries(e.shadows).forEach(([r,o])=>{if(o)s.style.setProperty(`--shadow-${r}`,o)});if(e.components?.button)Object.entries(e.components.button).forEach(([r,o])=>{if(o)s.style.setProperty(`--button-${r.replace(/([A-Z])/g,"-$1").toLowerCase()}`,o)});if(e.components?.input)Object.entries(e.components.input).forEach(([r,o])=>{if(o)s.style.setProperty(`--input-${r.replace(/([A-Z])/g,"-$1").toLowerCase()}`,o)});if(e.components?.card)Object.entries(e.components.card).forEach(([r,o])=>{if(o)s.style.setProperty(`--card-${r.replace(/([A-Z])/g,"-$1").toLowerCase()}`,o)})}function xc(){return _}function bc(e){let t=e.split("."),s=_;for(let r of t)if(s&&typeof s==="object"&&r in s)s=s[r];else return;return s}var fc={default:te,purple:j({colors:{primary:"#8b5cf6",secondary:"#a78bfa"}}),green:j({colors:{primary:"#10b981",secondary:"#34d399"}}),orange:j({colors:{primary:"#f97316",secondary:"#fb923c"}}),dark:j({colors:{primary:"#60a5fa",secondary:"#a78bfa",gray:"#9ca3af",white:"#1f2937",black:"#f9fafb"}}),minimal:j({borderRadius:{none:"0",sm:"0",md:"0.125rem",lg:"0.25rem",full:"0.25rem"},shadows:{sm:"none",md:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",lg:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",xl:"0 4px 6px -1px rgba(0, 0, 0, 0.1)","2xl":"0 10px 15px -3px rgba(0, 0, 0, 0.1)",none:"none"}})};function mc(e){return xo(e)}export{re as wrapErrorHandler,ba as warnProp,De as warn,oo as waitForAnimation,Ca as validateVariant,Mi as validateTextInputProps,$a as validateSize,ji as validateSearchInputProps,Pe as validateProps,qi as validatePasswordInputProps,Bi as validateNumberInputProps,Ci as validateFormProps,Oi as validateEmailInputProps,ya as validateButtonProps,wd as validateAriaRelationships,xc as useTheme,yo as useSEO,qo as usePrefersReducedMotion,O as useMediaQuery,Lo as useLocalStorage,No as useKeyboard,To as useIsMobile,Mo as useIsDesktop,Oo as useIsDarkMode,So as useFocusTrap,vo as useDarkMode,bo as useCopyCode,$o as useClickOutside,Eo as useBreakpoint,xo as themeToCSSProperties,fc as themePresets,Bt as textInputPropSchema,Wd as tc,Rd as t,ml as storage,zd as staggerAnimation,de as setTitle,S as setMeta,ce as setLink,Ad as setI18n,na as setErrorHandler,Nd as sequenceAnimations,Sd as removeAnimation,ic as preloadModules,go as preloadModule,md as prefersReducedMotion,vd as prefersHighContrast,_d as pluralRules,jt as numberInputPropSchema,Gd as numberFormats,Ud as n,ud as moveFocus,Zd as loadLocaleMessages,Ir as linear,U as lazyLoadModule,cc as lazyLoadImages,uo as lazyLoadImage,oc as lazyLoadComponent,ac as lazyLoadAll,po as lazyLoad,xd as isVisibleToScreenReader,Jd as isRTL,Od as highlight,gd as hasFocus,V as handleError,bc as getThemeValue,gc as getTheme,le as getSystemTheme,Vd as getI18n,lo as getHighlighter,X as getFocusableElements,Z as getEffectiveTheme,hd as getColorSchemePreference,lc as getCacheStats,mc as generateThemeCSS,wo as generateSEOTags,oe as generateId,$t as formPropSchema,pa as errorBoundary,Rr as easeOutSine,Hr as easeOutQuint,qr as easeOutQuart,Lr as easeOutQuad,Ur as easeOutExpo,Xr as easeOutElastic,Tr as easeOutCubic,Gr as easeOutCirc,K as easeOutBounce,eo as easeOutBack,Vr as easeInSine,jr as easeInQuint,Or as easeInQuart,Dr as easeInQuad,Wr as easeInOutSine,Ar as easeInOutQuint,Br as easeInOutQuart,Pr as easeInOutQuad,_r as easeInOutExpo,Kr as easeInOutElastic,Mr as easeInOutCubic,Jr as easeInOutCirc,so as easeInOutBounce,to as easeInOutBack,Fr as easeInExpo,Zr as easeInElastic,Er as easeInCubic,Yr as easeInCirc,ae as easeInBounce,Qr as easeInBack,da as devAssert,qd as detectLanguage,te as defaultTheme,Yd as dateTimeFormats,Fd as d,ro as cssAnimation,j as createTheme,vl as createStorage,tc as createStateManager,yd as createSkipLink,fd as createScreenReaderText,wa as createSafeClickHandler,cd as createRovingTabindex,dc as createRouteLoader,L as createPropValidator,ec as createLRUCache,Ld as createKeyframes,ao as createKeyframeAnimation,Qd as createKeepAlive,Hd as createI18n,dd as createFocusTrap,ca as createDebugger,sc as createComponentPool,id as createAriaLabel,nd as createAriaDescription,fo as copyToClipboard,Xd as componentMessages,nc as clearModuleCache,la as clearErrorHandler,Me as buttonPropSchema,xa as assertProp,Ie as assert,bd as aria,uc as applyTheme,Bd as applyHeadwindClasses,ie as applyAnimation,ld as announceToScreenReader,Dd as animateWithClass,Ed as animate,zr as VirtualTable,kr as VirtualList,Cr as Video,ye as TwoFactorChallenge,yr as Transition,vr as Tooltip,fr as Textarea,Ot as TextInput,xr as Teleport,gr as Tabs,cr as TableRow,lr as TableHeader,ir as TableHead,or as TableCell,sr as TableBody,er as Table,Ks as Switch,cs as SubscriptionCheckout,W as StorageManager,Zs as StepperStep,Gs as Stepper,_s as Spinner,Fs as Skeleton,ve as Signup,qs as SidebarSection,js as SidebarItem,As as SidebarHeader,Rs as SidebarFooter,Ms as Sidebar,Es as Select,Tt as SearchInput,Ls as RadioGroupOption,Is as RadioGroupLabel,zs as RadioGroupDescription,ks as RadioGroup,Cs as Radio,l as PropTypes,ys as Progress,vs as Portal,fs as PopoverPanel,xs as PopoverButton,gs as Popover,ls as PaymentMethods,Pt as PasswordInput,ss as Pagination,Dt as NumberInput,es as Notification,Kt as Navigator,fe as Login,Zt as ListboxOptions,Gt as ListboxOption,_t as ListboxLabel,Ft as ListboxButton,Rt as Listbox,io as KeyframeAnimations,Io as KeyboardShortcuts,pd as KeyboardKeys,Nc as Installation,St as Image,Sc as Hero,Ct as Form,$c as Footer,M as ErrorTypes,Nt as EmailInput,$d as Easing,yt as DropdownItems,vt as DropdownItem,ft as DropdownButton,xt as Dropdown,gt as Drawer,ct as DialogTitle,lt as DialogPanel,it as DialogDescription,ot as DialogBackdrop,st as Dialog,is as DefaultPaymentMethod,N as ComponentError,et as CommandPaletteItem,Ke as CommandPalette,Ze as ComboboxOptions,Ge as ComboboxOption,_e as ComboboxInput,Fe as ComboboxButton,Re as Combobox,wc as CodeBlock,os as Checkout,Ae as Checkbox,je as Card,qe as Calendar,Te as Button,q as Breakpoints,ze as Breadcrumb,ke as Badge,Ce as Avatar,xe as Audio,Id as AnimationClasses,ge as Accordion};
@@ -2,9 +2,7 @@ export declare const items: unknown;
2
2
  export declare const allowMultiple: unknown;
3
3
  export declare const defaultOpen: unknown;
4
4
  export declare const className: unknown;
5
- export declare const onChange: unknown;
6
5
  export declare const accordionClasses: unknown;
7
- export declare const itemClasses: unknown;
8
6
  export declare const headerClasses: unknown;
9
7
  export declare const iconClasses: unknown;
10
- export declare const contentClasses: (...args: any[]) => any;
8
+ export declare const contentClasses: () => unknown;
@@ -5,6 +5,5 @@ export declare const showRememberMe: unknown;
5
5
  export declare const showForgotPassword: unknown;
6
6
  export declare const showSignup: unknown;
7
7
  export declare const signupText: unknown;
8
- export declare const onSubmit: () => unknown;
9
8
  export declare const className: unknown;
10
9
  export declare const containerClasses: () => unknown;
@@ -1,5 +1,4 @@
1
1
  export declare const headingText: unknown;
2
2
  export declare const showSocialSignup: unknown;
3
- export declare const onSubmit: () => unknown;
4
3
  export declare const className: unknown;
5
4
  export declare const containerClasses: () => unknown;
@@ -2,8 +2,6 @@ export declare const headingText: unknown;
2
2
  export declare const labelText: unknown;
3
3
  export declare const instructionText: unknown;
4
4
  export declare const codeLength: unknown;
5
- export declare const onSubmit: () => unknown;
6
- export declare const onUseRecoveryCode: unknown;
5
+ export declare const showRecoveryCode: unknown;
7
6
  export declare const className: unknown;
8
7
  export declare const containerClasses: unknown;
9
- export declare const codes: unknown;