@senitix/ui 0.4.0

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 (206) hide show
  1. package/dist/avatar-C0aVNCG9.cjs +2 -0
  2. package/dist/avatar-C0aVNCG9.cjs.map +1 -0
  3. package/dist/avatar-CN6wcrqY.js +288 -0
  4. package/dist/avatar-CN6wcrqY.js.map +1 -0
  5. package/dist/calendar-BFWc4IB7.js +1182 -0
  6. package/dist/calendar-BFWc4IB7.js.map +1 -0
  7. package/dist/calendar-BUm7YrNf.cjs +2 -0
  8. package/dist/calendar-BUm7YrNf.cjs.map +1 -0
  9. package/dist/calendar-ChJkFXXr.js +11 -0
  10. package/dist/calendar-ChJkFXXr.js.map +1 -0
  11. package/dist/calendar-SwL5isYC.cjs +2 -0
  12. package/dist/calendar-SwL5isYC.cjs.map +1 -0
  13. package/dist/card-K4fxyYwE.js +51 -0
  14. package/dist/card-K4fxyYwE.js.map +1 -0
  15. package/dist/card-tMkUxpmW.cjs +2 -0
  16. package/dist/card-tMkUxpmW.cjs.map +1 -0
  17. package/dist/checkbox-CpOq5hkT.js +289 -0
  18. package/dist/checkbox-CpOq5hkT.js.map +1 -0
  19. package/dist/checkbox-D7-LQyCl.cjs +2 -0
  20. package/dist/checkbox-D7-LQyCl.cjs.map +1 -0
  21. package/dist/chevron-down-DHdXqOqK.cjs +2 -0
  22. package/dist/chevron-down-DHdXqOqK.cjs.map +1 -0
  23. package/dist/chevron-down-DJ1_YIFu.js +8 -0
  24. package/dist/chevron-down-DJ1_YIFu.js.map +1 -0
  25. package/dist/chevron-right-B3bovvh0.js +8 -0
  26. package/dist/chevron-right-B3bovvh0.js.map +1 -0
  27. package/dist/chevron-right-Dvyd11q0.cjs +2 -0
  28. package/dist/chevron-right-Dvyd11q0.cjs.map +1 -0
  29. package/dist/chevron-up-B9fuiZhc.cjs +2 -0
  30. package/dist/chevron-up-B9fuiZhc.cjs.map +1 -0
  31. package/dist/chevron-up-CGtXOr51.js +6 -0
  32. package/dist/chevron-up-CGtXOr51.js.map +1 -0
  33. package/dist/components/charts/index.cjs.js +2 -0
  34. package/dist/components/charts/index.cjs.js.map +1 -0
  35. package/dist/components/charts/index.es.js +12 -0
  36. package/dist/components/charts/index.es.js.map +1 -0
  37. package/dist/components/data-display/index.cjs.js +2 -0
  38. package/dist/components/data-display/index.cjs.js.map +1 -0
  39. package/dist/components/data-display/index.es.js +25 -0
  40. package/dist/components/data-display/index.es.js.map +1 -0
  41. package/dist/components/dnd/index.cjs.js +2 -0
  42. package/dist/components/dnd/index.cjs.js.map +1 -0
  43. package/dist/components/dnd/index.es.js +9 -0
  44. package/dist/components/dnd/index.es.js.map +1 -0
  45. package/dist/components/feedback/index.cjs.js +2 -0
  46. package/dist/components/feedback/index.cjs.js.map +1 -0
  47. package/dist/components/feedback/index.es.js +16 -0
  48. package/dist/components/feedback/index.es.js.map +1 -0
  49. package/dist/components/forms/index.cjs.js +2 -0
  50. package/dist/components/forms/index.cjs.js.map +1 -0
  51. package/dist/components/forms/index.es.js +27 -0
  52. package/dist/components/forms/index.es.js.map +1 -0
  53. package/dist/components/layouts/index.cjs.js +2 -0
  54. package/dist/components/layouts/index.cjs.js.map +1 -0
  55. package/dist/components/layouts/index.es.js +25 -0
  56. package/dist/components/layouts/index.es.js.map +1 -0
  57. package/dist/components/navigation/index.cjs.js +2 -0
  58. package/dist/components/navigation/index.cjs.js.map +1 -0
  59. package/dist/components/navigation/index.es.js +42 -0
  60. package/dist/components/navigation/index.es.js.map +1 -0
  61. package/dist/components/ui/index.cjs.js +2 -0
  62. package/dist/components/ui/index.cjs.js.map +1 -0
  63. package/dist/components/ui/index.es.js +165 -0
  64. package/dist/components/ui/index.es.js.map +1 -0
  65. package/dist/createLucideIcon-BbeNo6vq.js +56 -0
  66. package/dist/createLucideIcon-BbeNo6vq.js.map +1 -0
  67. package/dist/createLucideIcon-i5GEhNMV.cjs +2 -0
  68. package/dist/createLucideIcon-i5GEhNMV.cjs.map +1 -0
  69. package/dist/ellipsis-BW2gWki8.cjs +2 -0
  70. package/dist/ellipsis-BW2gWki8.cjs.map +1 -0
  71. package/dist/ellipsis-CiKEaUNP.js +10 -0
  72. package/dist/ellipsis-CiKEaUNP.js.map +1 -0
  73. package/dist/file-V_hhCUhr.cjs +2 -0
  74. package/dist/file-V_hhCUhr.cjs.map +1 -0
  75. package/dist/file-wzTXnWqz.js +9 -0
  76. package/dist/file-wzTXnWqz.js.map +1 -0
  77. package/dist/filter-tags-DjUaNXHR.cjs +5 -0
  78. package/dist/filter-tags-DjUaNXHR.cjs.map +1 -0
  79. package/dist/filter-tags-i_I8qV1N.js +2658 -0
  80. package/dist/filter-tags-i_I8qV1N.js.map +1 -0
  81. package/dist/full-calendar-7ac2FFU6.js +3518 -0
  82. package/dist/full-calendar-7ac2FFU6.js.map +1 -0
  83. package/dist/full-calendar-Cpeh5xMP.cjs +8 -0
  84. package/dist/full-calendar-Cpeh5xMP.cjs.map +1 -0
  85. package/dist/global-search-UNXjoFlI.cjs +2 -0
  86. package/dist/global-search-UNXjoFlI.cjs.map +1 -0
  87. package/dist/global-search-h1rVbP2q.js +1188 -0
  88. package/dist/global-search-h1rVbP2q.js.map +1 -0
  89. package/dist/hooks/index.cjs.js +2 -0
  90. package/dist/hooks/index.cjs.js.map +1 -0
  91. package/dist/hooks/index.es.js +13 -0
  92. package/dist/hooks/index.es.js.map +1 -0
  93. package/dist/index-Co9o9StL.js +33 -0
  94. package/dist/index-Co9o9StL.js.map +1 -0
  95. package/dist/index-CwJPJKOE.js +2278 -0
  96. package/dist/index-CwJPJKOE.js.map +1 -0
  97. package/dist/index-CzVK9Zyb.cjs +6 -0
  98. package/dist/index-CzVK9Zyb.cjs.map +1 -0
  99. package/dist/index-l828OqQN.js +288 -0
  100. package/dist/index-l828OqQN.js.map +1 -0
  101. package/dist/index-lGzB9daF.cjs +2 -0
  102. package/dist/index-lGzB9daF.cjs.map +1 -0
  103. package/dist/index-lT9bLt9X.cjs +2 -0
  104. package/dist/index-lT9bLt9X.cjs.map +1 -0
  105. package/dist/index.cjs.js +2 -0
  106. package/dist/index.cjs.js.map +1 -0
  107. package/dist/index.es.js +332 -0
  108. package/dist/index.es.js.map +1 -0
  109. package/dist/input-CZrckPLk.cjs +42 -0
  110. package/dist/input-CZrckPLk.cjs.map +1 -0
  111. package/dist/input-D4AoiWxo.js +3629 -0
  112. package/dist/input-D4AoiWxo.js.map +1 -0
  113. package/dist/locale-provider-DHMwuneF.cjs +2 -0
  114. package/dist/locale-provider-DHMwuneF.cjs.map +1 -0
  115. package/dist/locale-provider-DanG6RRG.js +1012 -0
  116. package/dist/locale-provider-DanG6RRG.js.map +1 -0
  117. package/dist/locale-selector-Ppe0KTi-.cjs +2 -0
  118. package/dist/locale-selector-Ppe0KTi-.cjs.map +1 -0
  119. package/dist/locale-selector-xn2GpdP9.js +1745 -0
  120. package/dist/locale-selector-xn2GpdP9.js.map +1 -0
  121. package/dist/minus-BXBFZSZs.cjs +2 -0
  122. package/dist/minus-BXBFZSZs.cjs.map +1 -0
  123. package/dist/minus-DvlYtl96.js +6 -0
  124. package/dist/minus-DvlYtl96.js.map +1 -0
  125. package/dist/multi-container-C2UpSw5f.js +731 -0
  126. package/dist/multi-container-C2UpSw5f.js.map +1 -0
  127. package/dist/multi-container-DMKL8c9B.cjs +2 -0
  128. package/dist/multi-container-DMKL8c9B.cjs.map +1 -0
  129. package/dist/pipeline-By5_8AFg.cjs +2 -0
  130. package/dist/pipeline-By5_8AFg.cjs.map +1 -0
  131. package/dist/pipeline-D-QNSU0U.js +1036 -0
  132. package/dist/pipeline-D-QNSU0U.js.map +1 -0
  133. package/dist/plus-8wKRkVu-.cjs +2 -0
  134. package/dist/plus-8wKRkVu-.cjs.map +1 -0
  135. package/dist/plus-CJD68KQD.js +9 -0
  136. package/dist/plus-CJD68KQD.js.map +1 -0
  137. package/dist/popover-4V4sGe1U.js +765 -0
  138. package/dist/popover-4V4sGe1U.js.map +1 -0
  139. package/dist/popover-ivh-plLc.cjs +2 -0
  140. package/dist/popover-ivh-plLc.cjs.map +1 -0
  141. package/dist/progress-CFnuLqnS.cjs +7 -0
  142. package/dist/progress-CFnuLqnS.cjs.map +1 -0
  143. package/dist/progress-D5AsrWa6.js +222 -0
  144. package/dist/progress-D5AsrWa6.js.map +1 -0
  145. package/dist/providers/index.cjs.js +2 -0
  146. package/dist/providers/index.cjs.js.map +1 -0
  147. package/dist/providers/index.es.js +9 -0
  148. package/dist/providers/index.es.js.map +1 -0
  149. package/dist/scroll-area-DQeqDp3Y.js +952 -0
  150. package/dist/scroll-area-DQeqDp3Y.js.map +1 -0
  151. package/dist/scroll-area-DYOiJMXh.cjs +2 -0
  152. package/dist/scroll-area-DYOiJMXh.cjs.map +1 -0
  153. package/dist/select-C1rNBi6c.js +974 -0
  154. package/dist/select-C1rNBi6c.js.map +1 -0
  155. package/dist/select-m-Mqwxu3.cjs +2 -0
  156. package/dist/select-m-Mqwxu3.cjs.map +1 -0
  157. package/dist/separator-DBUivkHq.cjs +2 -0
  158. package/dist/separator-DBUivkHq.cjs.map +1 -0
  159. package/dist/separator-DsfoJx-2.js +395 -0
  160. package/dist/separator-DsfoJx-2.js.map +1 -0
  161. package/dist/sheet-BVWCpq7E.js +84 -0
  162. package/dist/sheet-BVWCpq7E.js.map +1 -0
  163. package/dist/sheet-mKiFLVnK.cjs +2 -0
  164. package/dist/sheet-mKiFLVnK.cjs.map +1 -0
  165. package/dist/skeleton-BSwwYaQU.cjs +2 -0
  166. package/dist/skeleton-BSwwYaQU.cjs.map +1 -0
  167. package/dist/skeleton-BmGbfJw3.js +9 -0
  168. package/dist/skeleton-BmGbfJw3.js.map +1 -0
  169. package/dist/sortable.esm-Blhf_jh1.js +3391 -0
  170. package/dist/sortable.esm-Blhf_jh1.js.map +1 -0
  171. package/dist/sortable.esm-DcQYlXi3.cjs +6 -0
  172. package/dist/sortable.esm-DcQYlXi3.cjs.map +1 -0
  173. package/dist/sparkline-chart-Da-ehDGv.js +21082 -0
  174. package/dist/sparkline-chart-Da-ehDGv.js.map +1 -0
  175. package/dist/sparkline-chart-ca3uTzVK.cjs +68 -0
  176. package/dist/sparkline-chart-ca3uTzVK.cjs.map +1 -0
  177. package/dist/trending-up-D3Nfrhi3.cjs +2 -0
  178. package/dist/trending-up-D3Nfrhi3.cjs.map +1 -0
  179. package/dist/trending-up-DPwlYzQb.js +9 -0
  180. package/dist/trending-up-DPwlYzQb.js.map +1 -0
  181. package/dist/ui.css +1 -0
  182. package/dist/use-formatters-d97RVcmg.cjs +2 -0
  183. package/dist/use-formatters-d97RVcmg.cjs.map +1 -0
  184. package/dist/use-formatters-l1_2c8z0.js +6682 -0
  185. package/dist/use-formatters-l1_2c8z0.js.map +1 -0
  186. package/dist/use-local-storage-BjlrKzE-.js +42 -0
  187. package/dist/use-local-storage-BjlrKzE-.js.map +1 -0
  188. package/dist/use-local-storage-q-1odzIu.cjs +2 -0
  189. package/dist/use-local-storage-q-1odzIu.cjs.map +1 -0
  190. package/dist/use-mobile-C-LMK4T8.js +15 -0
  191. package/dist/use-mobile-C-LMK4T8.js.map +1 -0
  192. package/dist/use-mobile-DY7TJ5lx.cjs +2 -0
  193. package/dist/use-mobile-DY7TJ5lx.cjs.map +1 -0
  194. package/dist/use-toast-DG2qdYhl.js +97 -0
  195. package/dist/use-toast-DG2qdYhl.js.map +1 -0
  196. package/dist/use-toast-DxZJ8uUm.cjs +2 -0
  197. package/dist/use-toast-DxZJ8uUm.cjs.map +1 -0
  198. package/dist/utils/index.cjs.js +2 -0
  199. package/dist/utils/index.cjs.js.map +1 -0
  200. package/dist/utils/index.es.js +5 -0
  201. package/dist/utils/index.es.js.map +1 -0
  202. package/dist/welcome-card-CPolYl1D.cjs +2 -0
  203. package/dist/welcome-card-CPolYl1D.cjs.map +1 -0
  204. package/dist/welcome-card-CxMJZ8bv.js +963 -0
  205. package/dist/welcome-card-CxMJZ8bv.js.map +1 -0
  206. package/package.json +179 -0
@@ -0,0 +1,332 @@
1
+ import { A as s, c as o, a as r, b as t, a9 as i, d as l, f as n, g as d, p, q as u, k as S, o as c, m, l as b, i as C, h as g, n as D, j as T, e as h, O as A, P, a2 as f, B as M, a4 as F, C as L, t as x, s as B, N as I, a8 as k, a5 as w, X as v, a3 as y, I as H, U as G, a6 as V, R, u as E, W as j, V as K, Z as N, $ as W, Y as O, a0 as Q, _ as U, a1 as q, v as z, S as _, Q as J, w as X, T as Y, z as Z, x as $, y as aa, D as ea, G as sa, L as oa, K as ra, J as ta, E as ia, H as la, F as na, M as da, a7 as pa, aa as ua, r as Sa } from "./full-calendar-7ac2FFU6.js";
2
+ import { A as ma, b as ba, a as Ca } from "./avatar-CN6wcrqY.js";
3
+ import { B as Da, a as Ta, S as ha, d as Aa, b as Pa, c as fa } from "./scroll-area-DQeqDp3Y.js";
4
+ import { C as Fa, e as La, d as xa, b as Ba, a as Ia, c as ka } from "./card-K4fxyYwE.js";
5
+ import { C as va, c as ya } from "./checkbox-CpOq5hkT.js";
6
+ import { C as Ga, a as Va, d as Ra, e as Ea, b as ja, f as Ka, c as Na, h as Wa, g as Oa, D as Qa, k as Ua, m as qa, q as za, o as _a, n as Ja, j as Xa, i as Ya, p as Za, l as $a, P as ae, s as ee, r as se } from "./popover-4V4sGe1U.js";
7
+ import { D as re, d as te, b as ie, i as le, c as ne, f as de, j as pe, n as ue, e as Se, g as ce, h as me, k as be, l as Ce, m as ge, a as De, I as Te } from "./input-D4AoiWxo.js";
8
+ import { C as Ae, L as Pe } from "./calendar-BFWc4IB7.js";
9
+ import { P as Me } from "./progress-D5AsrWa6.js";
10
+ import { S as Le, d as xe, a as Be, f as Ie, e as ke, i as we, h as ve, g as ye, c as He, b as Ge } from "./select-C1rNBi6c.js";
11
+ import { S as Re, T as Ee, b as je, c as Ke, a as Ne } from "./separator-DsfoJx-2.js";
12
+ import { S as Oe, d as Qe, e as Ue, i as qe, g as ze, f as _e, b as Je, a as Xe, h as Ye, c as Ze } from "./sheet-BVWCpq7E.js";
13
+ import { S as as } from "./skeleton-BmGbfJw3.js";
14
+ import { j as ss, C as os, l as rs, k as ts, D as is, g as ls, h as ns, F as ds, c as ps, d as us, f as Ss, a as cs, b as ms, e as bs, m as Cs, L as gs, M as Ds, N as Ts, P as hs, S as As, T as Ps, i as fs, u as Ms } from "./locale-selector-xn2GpdP9.js";
15
+ import { B as Ls, D as xs, y as Bs, z as Is, x as ks, A as ws, C as vs, G as ys, H as Hs, M as Gs, E as Vs, Q as Rs, S as Es, a as js, b as Ks, c as Ns, d as Ws, e as Os, f as Qs, g as Us, h as qs, i as zs, j as _s, k as Js, l as Xs, m as Ys, n as Zs, o as $s, p as ao, q as eo, r as so, s as oo, t as ro, u as to, v as io, F as lo, T as no, w as po } from "./global-search-h1rVbP2q.js";
16
+ import { A as So, c as co, a as mo, b as bo, e as Co, h as go, f as Do, D as To, g as ho, d as Ao, P as Po, j as fo, l as Mo, k as Fo, m as Lo, n as xo, q as Bo, o as Io, p as ko, u as wo, i as vo } from "./pipeline-D-QNSU0U.js";
17
+ import { A as Ho, B as Go, C as Vo, D as Ro, E as Eo, F as jo, K as Ko, P as No, Q as Wo, S as Oo, T as Qo, b as Uo, g as qo, f as zo, c as _o, d as Jo, a as Xo, e as Yo, j as Zo, i as $o, h as ar } from "./filter-tags-i_I8qV1N.js";
18
+ import { A as sr, B as or, C as rr, D as tr, F as ir, L as lr, P as nr, S as dr } from "./sparkline-chart-Da-ehDGv.js";
19
+ import { A as ur, b as Sr, d as cr, C as mr, D as br, F as Cr, L as gr, P as Dr, a as Tr, S as hr, W as Ar, c as Pr } from "./welcome-card-CxMJZ8bv.js";
20
+ import { K as Mr, M as Fr, S as Lr, a as xr, T as Br } from "./multi-container-C2UpSw5f.js";
21
+ import { a as kr, L as wr, c as vr, i as yr, d as Hr, b as Gr, f as Vr, e as Rr, n as Er, g as jr, h as Kr, j as Nr, m as Wr, o as Or, k as Qr, p as Ur, l as qr, t as zr, u as _r } from "./locale-provider-DanG6RRG.js";
22
+ import { u as Xr } from "./use-mobile-C-LMK4T8.js";
23
+ import { u as Zr, a as $r } from "./use-local-storage-BjlrKzE-.js";
24
+ import { t as et, u as st } from "./use-toast-DG2qdYhl.js";
25
+ import { u as rt } from "./use-formatters-l1_2c8z0.js";
26
+ import { c as it } from "./index-CwJPJKOE.js";
27
+ export {
28
+ ur as AISummaryCard,
29
+ s as Accordion,
30
+ o as AccordionContent,
31
+ r as AccordionItem,
32
+ t as AccordionTrigger,
33
+ Ho as ActivityFeed,
34
+ i as AgendaView,
35
+ l as Alert,
36
+ Sr as AlertBanner,
37
+ n as AlertDescription,
38
+ d as AlertDialog,
39
+ p as AlertDialogAction,
40
+ u as AlertDialogCancel,
41
+ S as AlertDialogContent,
42
+ c as AlertDialogDescription,
43
+ m as AlertDialogFooter,
44
+ b as AlertDialogHeader,
45
+ C as AlertDialogOverlay,
46
+ g as AlertDialogPortal,
47
+ D as AlertDialogTitle,
48
+ T as AlertDialogTrigger,
49
+ h as AlertTitle,
50
+ So as AppShell,
51
+ co as AppShellFooter,
52
+ mo as AppShellHeader,
53
+ bo as AppShellMain,
54
+ sr as AreaChart,
55
+ ma as Avatar,
56
+ ba as AvatarFallback,
57
+ A as AvatarGroup,
58
+ Ca as AvatarImage,
59
+ P as AvatarWithStatus,
60
+ Da as Badge,
61
+ or as BarChart,
62
+ f as BetaBadge,
63
+ Ls as Breadcrumb,
64
+ xs as BreadcrumbEllipsis,
65
+ Bs as BreadcrumbItem,
66
+ Is as BreadcrumbLink,
67
+ ks as BreadcrumbList,
68
+ ws as BreadcrumbPage,
69
+ vs as BreadcrumbSeparator,
70
+ Go as BulkActionsToolbar,
71
+ Ta as Button,
72
+ M as ButtonWithBadge,
73
+ cr as CRMActivityItem,
74
+ Ae as Calendar,
75
+ F as CalendarHeader,
76
+ Fa as Card,
77
+ La as CardContent,
78
+ xa as CardDescription,
79
+ Ba as CardFooter,
80
+ Ia as CardHeader,
81
+ ka as CardTitle,
82
+ rr as ChartContainer,
83
+ va as Checkbox,
84
+ L as Collapsible,
85
+ x as CollapsibleContent,
86
+ B as CollapsibleTrigger,
87
+ ss as ColorPicker,
88
+ Vo as ColumnVisibility,
89
+ os as Combobox,
90
+ Ga as Command,
91
+ Va as CommandDialog,
92
+ Ra as CommandEmpty,
93
+ Ea as CommandGroup,
94
+ ja as CommandInput,
95
+ Ka as CommandItem,
96
+ Na as CommandList,
97
+ ys as CommandPalette,
98
+ Wa as CommandSeparator,
99
+ Oa as CommandShortcut,
100
+ I as ConfirmationDialog,
101
+ mr as ContactCard,
102
+ rs as CurrencySelector,
103
+ ts as DEFAULT_COUNTRIES,
104
+ Co as DashboardContent,
105
+ go as DashboardFooter,
106
+ Do as DashboardHeader,
107
+ To as DashboardLayout,
108
+ ho as DashboardMain,
109
+ Ao as DashboardSidebar,
110
+ Ro as DataTable,
111
+ is as DatePicker,
112
+ ls as DateRangePicker,
113
+ k as DayView,
114
+ br as DealCard,
115
+ Qa as Dialog,
116
+ Ua as DialogClose,
117
+ qa as DialogContent,
118
+ za as DialogDescription,
119
+ _a as DialogFooter,
120
+ Ja as DialogHeader,
121
+ Xa as DialogOverlay,
122
+ Ya as DialogPortal,
123
+ Za as DialogTitle,
124
+ $a as DialogTrigger,
125
+ tr as DonutChart,
126
+ re as DropdownMenu,
127
+ te as DropdownMenuCheckboxItem,
128
+ ie as DropdownMenuContent,
129
+ le as DropdownMenuGroup,
130
+ ne as DropdownMenuItem,
131
+ de as DropdownMenuLabel,
132
+ pe as DropdownMenuPortal,
133
+ ue as DropdownMenuRadioGroup,
134
+ Se as DropdownMenuRadioItem,
135
+ ce as DropdownMenuSeparator,
136
+ me as DropdownMenuShortcut,
137
+ be as DropdownMenuSub,
138
+ Ce as DropdownMenuSubContent,
139
+ ge as DropdownMenuSubTrigger,
140
+ De as DropdownMenuTrigger,
141
+ Eo as EmptyState,
142
+ w as EventItem,
143
+ v as ExportButton,
144
+ Cr as FeatureHighlightCard,
145
+ ns as FileUpload,
146
+ jo as FilterTags,
147
+ ds as Form,
148
+ ps as FormControl,
149
+ us as FormDescription,
150
+ Ss as FormField,
151
+ cs as FormItem,
152
+ ms as FormLabel,
153
+ bs as FormMessage,
154
+ y as FullCalendar,
155
+ ir as FunnelChart,
156
+ Hs as GlobalSearch,
157
+ H as IconButton,
158
+ Te as Input,
159
+ Ko as KPICard,
160
+ Mr as KanbanBoard,
161
+ Pe as Label,
162
+ gr as LeadScoreIndicator,
163
+ lr as LineChart,
164
+ kr as LocaleContext,
165
+ wr as LocaleProvider,
166
+ Cs as LocaleSelector,
167
+ gs as LookupField,
168
+ Gs as MegaMenu,
169
+ G as MiniCalendar,
170
+ V as MonthView,
171
+ Fr as MultiContainer,
172
+ Vs as MultiLevelDropdown,
173
+ Ds as MultiSelect,
174
+ Ts as NumberInput,
175
+ Po as PageHeader,
176
+ No as PerPageSelector,
177
+ hs as PhoneInput,
178
+ nr as PieChart,
179
+ fo as Pipeline,
180
+ Dr as PipelineBoard,
181
+ Mo as PipelineContent,
182
+ Fo as PipelineHeader,
183
+ Lo as PipelineKanban,
184
+ xo as PipelineList,
185
+ Bo as PipelineSummary,
186
+ Io as PipelineTable,
187
+ ko as PipelineTimeline,
188
+ ae as Popover,
189
+ ee as PopoverContent,
190
+ se as PopoverTrigger,
191
+ Me as Progress,
192
+ Tr as ProgressTracker,
193
+ Rs as QuickCreateMenu,
194
+ Wo as QuickFilters,
195
+ R as RadioGroup,
196
+ E as RadioGroupItem,
197
+ ha as ScrollArea,
198
+ Aa as ScrollBar,
199
+ As as SearchInput,
200
+ Le as Select,
201
+ xe as SelectContent,
202
+ Be as SelectGroup,
203
+ Ie as SelectItem,
204
+ ke as SelectLabel,
205
+ we as SelectScrollDownButton,
206
+ ve as SelectScrollUpButton,
207
+ ye as SelectSeparator,
208
+ He as SelectTrigger,
209
+ Ge as SelectValue,
210
+ Re as Separator,
211
+ j as SettingsRow,
212
+ K as SettingsSection,
213
+ Oe as Sheet,
214
+ Qe as SheetClose,
215
+ Ue as SheetContent,
216
+ qe as SheetDescription,
217
+ ze as SheetFooter,
218
+ _e as SheetHeader,
219
+ Je as SheetOverlay,
220
+ Xe as SheetPortal,
221
+ Ye as SheetTitle,
222
+ Ze as SheetTrigger,
223
+ Es as Sidebar,
224
+ js as SidebarContent,
225
+ Ks as SidebarFooter,
226
+ Ns as SidebarGroup,
227
+ Ws as SidebarGroupAction,
228
+ Os as SidebarGroupContent,
229
+ Qs as SidebarGroupLabel,
230
+ Us as SidebarHeader,
231
+ qs as SidebarInput,
232
+ zs as SidebarInset,
233
+ _s as SidebarMenu,
234
+ Js as SidebarMenuAction,
235
+ Xs as SidebarMenuBadge,
236
+ Ys as SidebarMenuButton,
237
+ Zs as SidebarMenuItem,
238
+ $s as SidebarMenuSkeleton,
239
+ ao as SidebarMenuSub,
240
+ eo as SidebarMenuSubButton,
241
+ so as SidebarMenuSubItem,
242
+ oo as SidebarProvider,
243
+ ro as SidebarRail,
244
+ to as SidebarSeparator,
245
+ io as SidebarTrigger,
246
+ as as Skeleton,
247
+ N as SkeletonCard,
248
+ W as SkeletonList,
249
+ O as SkeletonLoader,
250
+ Q as SkeletonProfile,
251
+ U as SkeletonTable,
252
+ q as SkeletonText,
253
+ z as Slider,
254
+ Lr as SortableItem,
255
+ xr as SortableList,
256
+ dr as SparklineChart,
257
+ _ as SplitButton,
258
+ Oo as StatCard,
259
+ hr as StatusBadge,
260
+ J as Stepper,
261
+ X as Switch,
262
+ lo as TabNavigation,
263
+ Qo as Table,
264
+ Uo as TableBody,
265
+ qo as TableCaption,
266
+ zo as TableCell,
267
+ _o as TableFooter,
268
+ Jo as TableHead,
269
+ Xo as TableHeader,
270
+ Yo as TableRow,
271
+ Y as Tabs,
272
+ Z as TabsContent,
273
+ $ as TabsList,
274
+ aa as TabsTrigger,
275
+ Ps as TagInput,
276
+ ea as Textarea,
277
+ fs as TimePicker,
278
+ Zo as Timeline,
279
+ sa as Toast,
280
+ oa as ToastAction,
281
+ ra as ToastClose,
282
+ ta as ToastDescription,
283
+ ia as ToastProvider,
284
+ la as ToastTitle,
285
+ na as ToastViewport,
286
+ da as Toaster,
287
+ Ee as Tooltip,
288
+ je as TooltipContent,
289
+ Ke as TooltipProvider,
290
+ Ne as TooltipTrigger,
291
+ no as TopNav,
292
+ Br as TreeView,
293
+ pa as WeekView,
294
+ Ar as WelcomeCard,
295
+ Pr as alertBannerVariants,
296
+ Pa as badgeVariants,
297
+ fa as buttonVariants,
298
+ ua as categoryColors,
299
+ ya as checkboxVariants,
300
+ it as cn,
301
+ $o as createActionsCell,
302
+ ar as createSortableHeader,
303
+ vr as currencies,
304
+ yr as dateFormats,
305
+ Hr as defaultLocaleConfigs,
306
+ Gr as defaultTranslations,
307
+ Vr as formatCurrency,
308
+ Rr as getAllCurrencies,
309
+ Er as getAllLocales,
310
+ jr as getCurrency,
311
+ Kr as getCurrencyCodes,
312
+ Nr as getDateFormat,
313
+ Wr as getLocaleInfo,
314
+ Or as getSupportedLocaleCodes,
315
+ Qr as getTimeFormat,
316
+ Sa as iconButtonVariants,
317
+ Ur as isRTLLocale,
318
+ qr as locales,
319
+ zr as timeFormats,
320
+ et as toast,
321
+ wo as useDashboardLayout,
322
+ Zr as useDebounce,
323
+ Ms as useFormField,
324
+ rt as useFormatters,
325
+ Xr as useIsMobile,
326
+ $r as useLocalStorage,
327
+ _r as useLocale,
328
+ vo as usePipeline,
329
+ po as useSidebar,
330
+ st as useToast
331
+ };
332
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,42 @@
1
+ "use strict";const g=require("react/jsx-runtime"),Y=require("react"),x=require("./scroll-area-DYOiJMXh.cjs"),vn=require("react-dom"),J=require("./index-lGzB9daF.cjs"),Sr=require("./createLucideIcon-i5GEhNMV.cjs"),Rr=require("./chevron-right-Dvyd11q0.cjs");function gn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=gn(Y),Mr=gn(vn);function Kt(e){const t=Pr(e),n=c.forwardRef((o,r)=>{const{children:s,...a}=o,i=c.Children.toArray(s),f=i.find(Or);if(f){const d=f.props.children,u=i.map(l=>l===f?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:l);return g.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,u):null})}return g.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Pr(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const a=Ir(r),i=Dr(s,r.props);return r.type!==c.Fragment&&(i.ref=o?x.composeRefs(o,a):a),c.cloneElement(r,i)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ar=Symbol("radix.slottable");function Or(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ar}function Dr(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const f=s(...i);return r(...i),f}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Ir(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function bt(e){const t=e+"CollectionProvider",[n,o]=x.createContextScope(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:v,children:y}=p,E=Y.useRef(null),b=Y.useRef(new Map).current;return g.jsx(r,{scope:v,itemMap:b,collectionRef:E,children:y})};a.displayName=t;const i=e+"CollectionSlot",f=Kt(i),d=Y.forwardRef((p,v)=>{const{scope:y,children:E}=p,b=s(i,y),C=x.useComposedRefs(v,b.collectionRef);return g.jsx(f,{ref:C,children:E})});d.displayName=i;const u=e+"CollectionItemSlot",l="data-radix-collection-item",m=Kt(u),h=Y.forwardRef((p,v)=>{const{scope:y,children:E,...b}=p,C=Y.useRef(null),S=x.useComposedRefs(v,C),P=s(u,y);return Y.useEffect(()=>(P.itemMap.set(C,{ref:C,...b}),()=>{P.itemMap.delete(C)})),g.jsx(m,{[l]:"",ref:S,children:E})});h.displayName=u;function w(p){const v=s(e+"CollectionConsumer",p);return Y.useCallback(()=>{const E=v.collectionRef.current;if(!E)return[];const b=Array.from(E.querySelectorAll(`[${l}]`));return Array.from(v.itemMap.values()).sort((P,R)=>b.indexOf(P.ref.current)-b.indexOf(R.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:d,ItemSlot:h},w,o]}var _r=c[" useInsertionEffect ".trim().toString()]||x.useLayoutEffect2;function Xe({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=Tr({defaultProp:t,onChange:n}),i=e!==void 0,f=i?e:r;{const u=c.useRef(e!==void 0);c.useEffect(()=>{const l=u.current;l!==i&&console.warn(`${o} is changing from ${l?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=i},[i,o])}const d=c.useCallback(u=>{if(i){const l=Nr(u)?u(e):u;l!==e&&a.current?.(l)}else s(u)},[i,e,s,a]);return[f,d]}function Tr({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return _r(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function Nr(e){return typeof e=="function"}var Lr=c[" useId ".trim().toString()]||(()=>{}),kr=0;function ve(e){const[t,n]=c.useState(Lr());return x.useLayoutEffect2(()=>{n(o=>o??String(kr++))},[e]),e||(t?`radix-${t}`:"")}const wn=Sr.createLucideIcon("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function Fr(e,t=globalThis?.document){const n=x.useCallbackRef(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var jr="DismissableLayer",mt="dismissableLayer.update",$r="dismissableLayer.pointerDownOutside",Hr="dismissableLayer.focusOutside",Vt,yn=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qe=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...f}=e,d=c.useContext(yn),[u,l]=c.useState(null),m=u?.ownerDocument??globalThis?.document,[,h]=c.useState({}),w=x.useComposedRefs(t,R=>l(R)),p=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),E=u?p.indexOf(u):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,C=E>=y,S=Wr(R=>{const A=R.target,_=[...d.branches].some(D=>D.contains(A));!C||_||(r?.(R),a?.(R),R.defaultPrevented||i?.())},m),P=Gr(R=>{const A=R.target;[...d.branches].some(D=>D.contains(A))||(s?.(R),a?.(R),R.defaultPrevented||i?.())},m);return Fr(R=>{E===d.layers.size-1&&(o?.(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},m),c.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Vt=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Ut(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Vt)}},[u,m,n,d]),c.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Ut())},[u,d]),c.useEffect(()=>{const R=()=>h({});return document.addEventListener(mt,R),()=>document.removeEventListener(mt,R)},[]),g.jsx(x.Primitive.div,{...f,ref:w,style:{pointerEvents:b?C?"auto":"none":void 0,...e.style},onFocusCapture:x.composeEventHandlers(e.onFocusCapture,P.onFocusCapture),onBlurCapture:x.composeEventHandlers(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:x.composeEventHandlers(e.onPointerDownCapture,S.onPointerDownCapture)})});qe.displayName=jr;var Br="DismissableLayerBranch",xn=c.forwardRef((e,t)=>{const n=c.useContext(yn),o=c.useRef(null),r=x.useComposedRefs(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(x.Primitive.div,{...e,ref:r})});xn.displayName=Br;function Wr(e,t=globalThis?.document){const n=x.useCallbackRef(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=i=>{if(i.target&&!o.current){let f=function(){bn($r,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Gr(e,t=globalThis?.document){const n=x.useCallbackRef(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&bn(Hr,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ut(){const e=new CustomEvent(mt);document.dispatchEvent(e)}function bn(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?x.dispatchDiscreteCustomEvent(r,s):r.dispatchEvent(s)}var Kr=qe,Vr=xn,rt="focusScope.autoFocusOnMount",st="focusScope.autoFocusOnUnmount",zt={bubbles:!1,cancelable:!0},Ur="FocusScope",Ct=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[i,f]=c.useState(null),d=x.useCallbackRef(r),u=x.useCallbackRef(s),l=c.useRef(null),m=x.useComposedRefs(t,p=>f(p)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let p=function(b){if(h.paused||!i)return;const C=b.target;i.contains(C)?l.current=C:oe(l.current,{select:!0})},v=function(b){if(h.paused||!i)return;const C=b.relatedTarget;C!==null&&(i.contains(C)||oe(l.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&oe(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const E=new MutationObserver(y);return i&&E.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),E.disconnect()}}},[o,i,h.paused]),c.useEffect(()=>{if(i){Xt.add(h);const p=document.activeElement;if(!i.contains(p)){const y=new CustomEvent(rt,zt);i.addEventListener(rt,d),i.dispatchEvent(y),y.defaultPrevented||(zr(Qr(Cn(i)),{select:!0}),document.activeElement===p&&oe(i))}return()=>{i.removeEventListener(rt,d),setTimeout(()=>{const y=new CustomEvent(st,zt);i.addEventListener(st,u),i.dispatchEvent(y),y.defaultPrevented||oe(p??document.body,{select:!0}),i.removeEventListener(st,u),Xt.remove(h)},0)}}},[i,d,u,h]);const w=c.useCallback(p=>{if(!n&&!o||h.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const E=p.currentTarget,[b,C]=Yr(E);b&&C?!p.shiftKey&&y===C?(p.preventDefault(),n&&oe(b,{select:!0})):p.shiftKey&&y===b&&(p.preventDefault(),n&&oe(C,{select:!0})):y===E&&p.preventDefault()}},[n,o,h.paused]);return g.jsx(x.Primitive.div,{tabIndex:-1,...a,ref:m,onKeyDown:w})});Ct.displayName=Ur;function zr(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(oe(o,{select:t}),document.activeElement!==n)return}function Yr(e){const t=Cn(e),n=Yt(t,e),o=Yt(t.reverse(),e);return[n,o]}function Cn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yt(e,t){for(const n of e)if(!Xr(n,{upTo:t}))return n}function Xr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function qr(e){return e instanceof HTMLInputElement&&"select"in e}function oe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qr(e)&&t&&e.select()}}var Xt=Zr();function Zr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qt(e,t),e.unshift(t)},remove(t){e=qt(e,t),e[0]?.resume()}}}function qt(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Qr(e){return e.filter(t=>t.tagName!=="A")}var Jr="Portal",Et=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);x.useLayoutEffect2(()=>s(!0),[]);const a=n||r&&globalThis?.document?.body;return a?vn.createPortal(g.jsx(x.Primitive.div,{...o,ref:t}),a):null});Et.displayName=Jr;var it=0;function En(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Zt()),document.body.insertAdjacentElement("beforeend",e[1]??Zt()),it++,()=>{it===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),it--}},[])}function Zt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var X=function(){return X=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},X.apply(this,arguments)};function Sn(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function es(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var He="right-scroll-bar-position",Be="width-before-scroll-bar",ts="with-scroll-bars-hidden",ns="--removed-body-scroll-bar-size";function at(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function os(e,t){var n=Y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var rs=typeof window<"u"?c.useLayoutEffect:c.useEffect,Qt=new WeakMap;function ss(e,t){var n=os(null,function(o){return e.forEach(function(r){return at(r,o)})});return rs(function(){var o=Qt.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(i){s.has(i)||at(i,null)}),s.forEach(function(i){r.has(i)||at(i,a)})}Qt.set(n,e)},[e]),n}function is(e){return e}function as(e,t){t===void 0&&(t=is);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var f=function(){var u=a;a=[],u.forEach(s)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(u){a.push(u),d()},filter:function(u){return a=a.filter(u),n}}}};return r}function cs(e){e===void 0&&(e={});var t=as(null);return t.options=X({async:!0,ssr:!1},e),t}var Rn=function(e){var t=e.sideCar,n=Sn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,X({},n))};Rn.isSideCarExport=!0;function ls(e,t){return e.useMedium(t),Rn}var Mn=cs(),ct=function(){},Ze=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:ct,onWheelCapture:ct,onTouchMoveCapture:ct}),r=o[0],s=o[1],a=e.forwardProps,i=e.children,f=e.className,d=e.removeScrollBar,u=e.enabled,l=e.shards,m=e.sideCar,h=e.noRelative,w=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,E=y===void 0?"div":y,b=e.gapMode,C=Sn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,P=ss([n,t]),R=X(X({},C),r);return c.createElement(c.Fragment,null,u&&c.createElement(S,{sideCar:Mn,removeScrollBar:d,shards:l,noRelative:h,noIsolation:w,inert:p,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:b}),a?c.cloneElement(c.Children.only(i),X(X({},R),{ref:P})):c.createElement(E,X({},R,{className:f,ref:P}),i))});Ze.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ze.classNames={fullWidth:Be,zeroRight:He};var us=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ds(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=us();return t&&e.setAttribute("nonce",t),e}function fs(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ps(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ms=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ds())&&(fs(t,n),ps(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hs=function(){var e=ms();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Pn=function(){var e=hs(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},vs={left:0,top:0,right:0,gap:0},lt=function(e){return parseInt(e||"",10)||0},gs=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[lt(n),lt(o),lt(r)]},ws=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vs;var t=gs(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},ys=Pn(),me="data-scroll-locked",xs=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(ts,` {
3
+ overflow: hidden `).concat(o,`;
4
+ padding-right: `).concat(i,"px ").concat(o,`;
5
+ }
6
+ body[`).concat(me,`] {
7
+ overflow: hidden `).concat(o,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
10
+ padding-left: `.concat(r,`px;
11
+ padding-top: `).concat(s,`px;
12
+ padding-right: `).concat(a,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(i,"px ").concat(o,`;
16
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(He,` {
20
+ right: `).concat(i,"px ").concat(o,`;
21
+ }
22
+
23
+ .`).concat(Be,` {
24
+ margin-right: `).concat(i,"px ").concat(o,`;
25
+ }
26
+
27
+ .`).concat(He," .").concat(He,` {
28
+ right: 0 `).concat(o,`;
29
+ }
30
+
31
+ .`).concat(Be," .").concat(Be,` {
32
+ margin-right: 0 `).concat(o,`;
33
+ }
34
+
35
+ body[`).concat(me,`] {
36
+ `).concat(ns,": ").concat(i,`px;
37
+ }
38
+ `)},Jt=function(){var e=parseInt(document.body.getAttribute(me)||"0",10);return isFinite(e)?e:0},bs=function(){c.useEffect(function(){return document.body.setAttribute(me,(Jt()+1).toString()),function(){var e=Jt()-1;e<=0?document.body.removeAttribute(me):document.body.setAttribute(me,e.toString())}},[])},Cs=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;bs();var s=c.useMemo(function(){return ws(r)},[r]);return c.createElement(ys,{styles:xs(s,!t,r,n?"":"!important")})},ht=!1;if(typeof window<"u")try{var Le=Object.defineProperty({},"passive",{get:function(){return ht=!0,!0}});window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch{ht=!1}var de=ht?{passive:!1}:!1,Es=function(e){return e.tagName==="TEXTAREA"},An=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Es(e)&&n[t]==="visible")},Ss=function(e){return An(e,"overflowY")},Rs=function(e){return An(e,"overflowX")},en=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=On(e,o);if(r){var s=Dn(e,o),a=s[1],i=s[2];if(a>i)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Ms=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Ps=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},On=function(e,t){return e==="v"?Ss(t):Rs(t)},Dn=function(e,t){return e==="v"?Ms(t):Ps(t)},As=function(e,t){return e==="h"&&t==="rtl"?-1:1},Os=function(e,t,n,o,r){var s=As(e,window.getComputedStyle(t).direction),a=s*o,i=n.target,f=t.contains(i),d=!1,u=a>0,l=0,m=0;do{if(!i)break;var h=Dn(e,i),w=h[0],p=h[1],v=h[2],y=p-v-s*w;(w||y)&&On(e,i)&&(l+=y,m+=w);var E=i.parentNode;i=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!f&&i!==document.body||f&&(t.contains(i)||t===i));return(u&&Math.abs(l)<1||!u&&Math.abs(m)<1)&&(d=!0),d},ke=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tn=function(e){return[e.deltaX,e.deltaY]},nn=function(e){return e&&"current"in e?e.current:e},Ds=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Is=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},_s=0,fe=[];function Ts(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(_s++)[0],s=c.useState(Pn)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=es([e.lockRef.current],(e.shards||[]).map(nn),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var y=ke(p),E=n.current,b="deltaX"in p?p.deltaX:E[0]-y[0],C="deltaY"in p?p.deltaY:E[1]-y[1],S,P=p.target,R=Math.abs(b)>Math.abs(C)?"h":"v";if("touches"in p&&R==="h"&&P.type==="range")return!1;var A=window.getSelection(),_=A&&A.anchorNode,D=_?_===P||_.contains(P):!1;if(D)return!1;var T=en(R,P);if(!T)return!0;if(T?S=R:(S=R==="v"?"h":"v",T=en(R,P)),!T)return!1;if(!o.current&&"changedTouches"in p&&(b||C)&&(o.current=S),!S)return!0;var L=o.current||S;return Os(L,v,p,L==="h"?b:C)},[]),f=c.useCallback(function(p){var v=p;if(!(!fe.length||fe[fe.length-1]!==s)){var y="deltaY"in v?tn(v):ke(v),E=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&Ds(S.delta,y)})[0];if(E&&E.should){v.cancelable&&v.preventDefault();return}if(!E){var b=(a.current.shards||[]).map(nn).filter(Boolean).filter(function(S){return S.contains(v.target)}),C=b.length>0?i(v,b[0]):!a.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),d=c.useCallback(function(p,v,y,E){var b={name:p,delta:v,target:y,should:E,shadowParent:Ns(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(C){return C!==b})},1)},[]),u=c.useCallback(function(p){n.current=ke(p),o.current=void 0},[]),l=c.useCallback(function(p){d(p.type,tn(p),p.target,i(p,e.lockRef.current))},[]),m=c.useCallback(function(p){d(p.type,ke(p),p.target,i(p,e.lockRef.current))},[]);c.useEffect(function(){return fe.push(s),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:m}),document.addEventListener("wheel",f,de),document.addEventListener("touchmove",f,de),document.addEventListener("touchstart",u,de),function(){fe=fe.filter(function(p){return p!==s}),document.removeEventListener("wheel",f,de),document.removeEventListener("touchmove",f,de),document.removeEventListener("touchstart",u,de)}},[]);var h=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(s,{styles:Is(r)}):null,h?c.createElement(Cs,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ns(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ls=ls(Mn,Ts);var St=c.forwardRef(function(e,t){return c.createElement(Ze,X({},e,{ref:t,sideCar:Ls}))});St.classNames=Ze.classNames;var ks=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pe=new WeakMap,Fe=new WeakMap,je={},ut=0,In=function(e){return e&&(e.host||In(e.parentNode))},Fs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=In(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},js=function(e,t,n,o){var r=Fs(t,Array.isArray(e)?e:[e]);je[n]||(je[n]=new WeakMap);var s=je[n],a=[],i=new Set,f=new Set(r),d=function(l){!l||i.has(l)||(i.add(l),d(l.parentNode))};r.forEach(d);var u=function(l){!l||f.has(l)||Array.prototype.forEach.call(l.children,function(m){if(i.has(m))u(m);else try{var h=m.getAttribute(o),w=h!==null&&h!=="false",p=(pe.get(m)||0)+1,v=(s.get(m)||0)+1;pe.set(m,p),s.set(m,v),a.push(m),p===1&&w&&Fe.set(m,!0),v===1&&m.setAttribute(n,"true"),w||m.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return u(t),i.clear(),ut++,function(){a.forEach(function(l){var m=pe.get(l)-1,h=s.get(l)-1;pe.set(l,m),s.set(l,h),m||(Fe.has(l)||l.removeAttribute(o),Fe.delete(l)),h||l.removeAttribute(n)}),ut--,ut||(pe=new WeakMap,pe=new WeakMap,Fe=new WeakMap,je={})}},_n=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=ks(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),js(o,r,n,"aria-hidden")):function(){return null}};const $s=["top","right","bottom","left"],re=Math.min,W=Math.max,Ge=Math.round,$e=Math.floor,Z=e=>({x:e,y:e}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},Bs={start:"end",end:"start"};function vt(e,t,n){return W(e,re(t,n))}function te(e,t){return typeof e=="function"?e(t):e}function ne(e){return e.split("-")[0]}function we(e){return e.split("-")[1]}function Rt(e){return e==="x"?"y":"x"}function Mt(e){return e==="y"?"height":"width"}const Ws=new Set(["top","bottom"]);function q(e){return Ws.has(ne(e))?"y":"x"}function Pt(e){return Rt(q(e))}function Gs(e,t,n){n===void 0&&(n=!1);const o=we(e),r=Pt(e),s=Mt(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ke(a)),[a,Ke(a)]}function Ks(e){const t=Ke(e);return[gt(e),t,gt(t)]}function gt(e){return e.replace(/start|end/g,t=>Bs[t])}const on=["left","right"],rn=["right","left"],Vs=["top","bottom"],Us=["bottom","top"];function zs(e,t,n){switch(e){case"top":case"bottom":return n?t?rn:on:t?on:rn;case"left":case"right":return t?Vs:Us;default:return[]}}function Ys(e,t,n,o){const r=we(e);let s=zs(ne(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(gt)))),s}function Ke(e){return e.replace(/left|right|bottom|top/g,t=>Hs[t])}function Xs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tn(e){return typeof e!="number"?Xs(e):{top:e,right:e,bottom:e,left:e}}function Ve(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function sn(e,t,n){let{reference:o,floating:r}=e;const s=q(t),a=Pt(t),i=Mt(a),f=ne(t),d=s==="y",u=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,m=o[i]/2-r[i]/2;let h;switch(f){case"top":h={x:u,y:o.y-r.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:l};break;case"left":h={x:o.x-r.width,y:l};break;default:h={x:o.x,y:o.y}}switch(we(t)){case"start":h[a]-=m*(n&&d?-1:1);break;case"end":h[a]+=m*(n&&d?-1:1);break}return h}const qs=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),f=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:l}=sn(d,o,f),m=o,h={},w=0;for(let p=0;p<i.length;p++){const{name:v,fn:y}=i[p],{x:E,y:b,data:C,reset:S}=await y({x:u,y:l,initialPlacement:o,placement:m,strategy:r,middlewareData:h,rects:d,platform:a,elements:{reference:e,floating:t}});u=E??u,l=b??l,h={...h,[v]:{...h[v],...C}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(d=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:u,y:l}=sn(d,m,f)),p=-1)}return{x:u,y:l,placement:m,strategy:r,middlewareData:h}};async function Se(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:i,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:l="floating",altBoundary:m=!1,padding:h=0}=te(t,e),w=Tn(h),v=i[m?l==="floating"?"reference":"floating":l],y=Ve(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:u,strategy:f})),E=l==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),C=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Ve(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:E,offsetParent:b,strategy:f}):E);return{top:(y.top-S.top+w.top)/C.y,bottom:(S.bottom-y.bottom+w.bottom)/C.y,left:(y.left-S.left+w.left)/C.x,right:(S.right-y.right+w.right)/C.x}}const Zs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:i,middlewareData:f}=t,{element:d,padding:u=0}=te(e,t)||{};if(d==null)return{};const l=Tn(u),m={x:n,y:o},h=Pt(r),w=Mt(h),p=await a.getDimensions(d),v=h==="y",y=v?"top":"left",E=v?"bottom":"right",b=v?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[h]-m[h]-s.floating[w],S=m[h]-s.reference[h],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=P?P[b]:0;(!R||!await(a.isElement==null?void 0:a.isElement(P)))&&(R=i.floating[b]||s.floating[w]);const A=C/2-S/2,_=R/2-p[w]/2-1,D=re(l[y],_),T=re(l[E],_),L=D,k=R-p[w]-T,N=R/2-p[w]/2+A,$=vt(L,N,k),I=!f.arrow&&we(r)!=null&&N!==$&&s.reference[w]/2-(N<L?D:T)-p[w]/2<0,F=I?N<L?N-L:N-k:0;return{[h]:m[h]+F,data:{[h]:$,centerOffset:N-$-F,...I&&{alignmentOffset:F}},reset:I}}}),Qs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:i,platform:f,elements:d}=t,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...v}=te(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ne(r),E=q(i),b=ne(i)===i,C=await(f.isRTL==null?void 0:f.isRTL(d.floating)),S=m||(b||!p?[Ke(i)]:Ks(i)),P=w!=="none";!m&&P&&S.push(...Ys(i,p,w,C));const R=[i,...S],A=await Se(t,v),_=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&_.push(A[y]),l){const N=Gs(r,a,C);_.push(A[N[0]],A[N[1]])}if(D=[...D,{placement:r,overflows:_}],!_.every(N=>N<=0)){var T,L;const N=(((T=s.flip)==null?void 0:T.index)||0)+1,$=R[N];if($&&(!(l==="alignment"?E!==q($):!1)||D.every(O=>q(O.placement)===E?O.overflows[0]>0:!0)))return{data:{index:N,overflows:D},reset:{placement:$}};let I=(L=D.filter(F=>F.overflows[0]<=0).sort((F,O)=>F.overflows[1]-O.overflows[1])[0])==null?void 0:L.placement;if(!I)switch(h){case"bestFit":{var k;const F=(k=D.filter(O=>{if(P){const M=q(O.placement);return M===E||M==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(M=>M>0).reduce((M,H)=>M+H,0)]).sort((O,M)=>O[1]-M[1])[0])==null?void 0:k[0];F&&(I=F);break}case"initialPlacement":I=i;break}if(r!==I)return{reset:{placement:I}}}return{}}}};function an(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cn(e){return $s.some(t=>e[t]>=0)}const Js=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=te(e,t);switch(o){case"referenceHidden":{const s=await Se(t,{...r,elementContext:"reference"}),a=an(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:cn(a)}}}case"escaped":{const s=await Se(t,{...r,altBoundary:!0}),a=an(s,n.floating);return{data:{escapedOffsets:a,escaped:cn(a)}}}default:return{}}}}},Nn=new Set(["left","top"]);async function ei(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=ne(n),i=we(n),f=q(n)==="y",d=Nn.has(a)?-1:1,u=s&&f?-1:1,l=te(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:w}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return i&&typeof w=="number"&&(h=i==="end"?w*-1:w),f?{x:h*u,y:m*d}:{x:m*d,y:h*u}}const ti=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:i}=t,f=await ei(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+f.x,y:s+f.y,data:{...f,placement:a}}}}},ni=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:v=>{let{x:y,y:E}=v;return{x:y,y:E}}},...f}=te(e,t),d={x:n,y:o},u=await Se(t,f),l=q(ne(r)),m=Rt(l);let h=d[m],w=d[l];if(s){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",E=h+u[v],b=h-u[y];h=vt(E,h,b)}if(a){const v=l==="y"?"top":"left",y=l==="y"?"bottom":"right",E=w+u[v],b=w-u[y];w=vt(E,w,b)}const p=i.fn({...t,[m]:h,[l]:w});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[m]:s,[l]:a}}}}}},oi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:f=!0,crossAxis:d=!0}=te(e,t),u={x:n,y:o},l=q(r),m=Rt(l);let h=u[m],w=u[l];const p=te(i,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(f){const b=m==="y"?"height":"width",C=s.reference[m]-s.floating[b]+v.mainAxis,S=s.reference[m]+s.reference[b]-v.mainAxis;h<C?h=C:h>S&&(h=S)}if(d){var y,E;const b=m==="y"?"width":"height",C=Nn.has(ne(r)),S=s.reference[l]-s.floating[b]+(C&&((y=a.offset)==null?void 0:y[l])||0)+(C?0:v.crossAxis),P=s.reference[l]+s.reference[b]+(C?0:((E=a.offset)==null?void 0:E[l])||0)-(C?v.crossAxis:0);w<S?w=S:w>P&&(w=P)}return{[m]:h,[l]:w}}}},ri=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:i}=t,{apply:f=()=>{},...d}=te(e,t),u=await Se(t,d),l=ne(r),m=we(r),h=q(r)==="y",{width:w,height:p}=s.floating;let v,y;l==="top"||l==="bottom"?(v=l,y=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=l,v=m==="end"?"top":"bottom");const E=p-u.top-u.bottom,b=w-u.left-u.right,C=re(p-u[v],E),S=re(w-u[y],b),P=!t.middlewareData.shift;let R=C,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(R=E),P&&!m){const D=W(u.left,0),T=W(u.right,0),L=W(u.top,0),k=W(u.bottom,0);h?A=w-2*(D!==0||T!==0?D+T:W(u.left,u.right)):R=p-2*(L!==0||k!==0?L+k:W(u.top,u.bottom))}await f({...t,availableWidth:A,availableHeight:R});const _=await a.getDimensions(i.floating);return w!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}};function Qe(){return typeof window<"u"}function ye(e){return Ln(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(Ln(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ln(e){return Qe()?e instanceof Node||e instanceof G(e).Node:!1}function V(e){return Qe()?e instanceof Element||e instanceof G(e).Element:!1}function Q(e){return Qe()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function ln(e){return!Qe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}const si=new Set(["inline","contents"]);function Ae(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!si.has(r)}const ii=new Set(["table","td","th"]);function ai(e){return ii.has(ye(e))}const ci=[":popover-open",":modal"];function Je(e){return ci.some(t=>{try{return e.matches(t)}catch{return!1}})}const li=["transform","translate","scale","rotate","perspective"],ui=["transform","translate","scale","rotate","perspective","filter"],di=["paint","layout","strict","content"];function At(e){const t=Ot(),n=V(e)?U(e):e;return li.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ui.some(o=>(n.willChange||"").includes(o))||di.some(o=>(n.contain||"").includes(o))}function fi(e){let t=se(e);for(;Q(t)&&!ge(t);){if(At(t))return t;if(Je(t))return null;t=se(t)}return null}function Ot(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pi=new Set(["html","body","#document"]);function ge(e){return pi.has(ye(e))}function U(e){return G(e).getComputedStyle(e)}function et(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function se(e){if(ye(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ln(e)&&e.host||ee(e);return ln(t)?t.host:t}function kn(e){const t=se(e);return ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q(t)&&Ae(t)?t:kn(t)}function Re(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=kn(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=G(r);if(s){const i=wt(a);return t.concat(a,a.visualViewport||[],Ae(r)?r:[],i&&n?Re(i):[])}return t.concat(r,Re(r,[],n))}function wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fn(e){const t=U(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Q(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,i=Ge(n)!==s||Ge(o)!==a;return i&&(n=s,o=a),{width:n,height:o,$:i}}function Dt(e){return V(e)?e:e.contextElement}function he(e){const t=Dt(e);if(!Q(t))return Z(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Fn(t);let a=(s?Ge(n.width):n.width)/o,i=(s?Ge(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const mi=Z(0);function jn(e){const t=G(e);return!Ot()||!t.visualViewport?mi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==G(e)?!1:t}function le(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Dt(e);let a=Z(1);t&&(o?V(o)&&(a=he(o)):a=he(e));const i=hi(s,n,o)?jn(s):Z(0);let f=(r.left+i.x)/a.x,d=(r.top+i.y)/a.y,u=r.width/a.x,l=r.height/a.y;if(s){const m=G(s),h=o&&V(o)?G(o):o;let w=m,p=wt(w);for(;p&&o&&h!==w;){const v=he(p),y=p.getBoundingClientRect(),E=U(p),b=y.left+(p.clientLeft+parseFloat(E.paddingLeft))*v.x,C=y.top+(p.clientTop+parseFloat(E.paddingTop))*v.y;f*=v.x,d*=v.y,u*=v.x,l*=v.y,f+=b,d+=C,w=G(p),p=wt(w)}}return Ve({width:u,height:l,x:f,y:d})}function tt(e,t){const n=et(e).scrollLeft;return t?t.left+n:le(ee(e)).left+n}function $n(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-tt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function vi(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=ee(o),i=t?Je(t.floating):!1;if(o===a||i&&s)return n;let f={scrollLeft:0,scrollTop:0},d=Z(1);const u=Z(0),l=Q(o);if((l||!l&&!s)&&((ye(o)!=="body"||Ae(a))&&(f=et(o)),Q(o))){const h=le(o);d=he(o),u.x=h.x+o.clientLeft,u.y=h.y+o.clientTop}const m=a&&!l&&!s?$n(a,f):Z(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+u.x+m.x,y:n.y*d.y-f.scrollTop*d.y+u.y+m.y}}function gi(e){return Array.from(e.getClientRects())}function wi(e){const t=ee(e),n=et(e),o=e.ownerDocument.body,r=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+tt(e);const i=-n.scrollTop;return U(o).direction==="rtl"&&(a+=W(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:i}}const un=25;function yi(e,t){const n=G(e),o=ee(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,i=0,f=0;if(r){s=r.width,a=r.height;const u=Ot();(!u||u&&t==="fixed")&&(i=r.offsetLeft,f=r.offsetTop)}const d=tt(o);if(d<=0){const u=o.ownerDocument,l=u.body,m=getComputedStyle(l),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(o.clientWidth-l.clientWidth-h);w<=un&&(s-=w)}else d<=un&&(s+=d);return{width:s,height:a,x:i,y:f}}const xi=new Set(["absolute","fixed"]);function bi(e,t){const n=le(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Q(e)?he(e):Z(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,f=r*s.x,d=o*s.y;return{width:a,height:i,x:f,y:d}}function dn(e,t,n){let o;if(t==="viewport")o=yi(e,n);else if(t==="document")o=wi(ee(e));else if(V(t))o=bi(t,n);else{const r=jn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ve(o)}function Hn(e,t){const n=se(e);return n===t||!V(n)||ge(n)?!1:U(n).position==="fixed"||Hn(n,t)}function Ci(e,t){const n=t.get(e);if(n)return n;let o=Re(e,[],!1).filter(i=>V(i)&&ye(i)!=="body"),r=null;const s=U(e).position==="fixed";let a=s?se(e):e;for(;V(a)&&!ge(a);){const i=U(a),f=At(a);!f&&i.position==="fixed"&&(r=null),(s?!f&&!r:!f&&i.position==="static"&&!!r&&xi.has(r.position)||Ae(a)&&!f&&Hn(e,a))?o=o.filter(u=>u!==a):r=i,a=se(a)}return t.set(e,o),o}function Ei(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Je(t)?[]:Ci(t,this._c):[].concat(n),o],i=a[0],f=a.reduce((d,u)=>{const l=dn(t,u,r);return d.top=W(l.top,d.top),d.right=re(l.right,d.right),d.bottom=re(l.bottom,d.bottom),d.left=W(l.left,d.left),d},dn(t,i,r));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Si(e){const{width:t,height:n}=Fn(e);return{width:t,height:n}}function Ri(e,t,n){const o=Q(t),r=ee(t),s=n==="fixed",a=le(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const f=Z(0);function d(){f.x=tt(r)}if(o||!o&&!s)if((ye(t)!=="body"||Ae(r))&&(i=et(t)),o){const h=le(t,!0,s,t);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else r&&d();s&&!o&&r&&d();const u=r&&!o&&!s?$n(r,i):Z(0),l=a.left+i.scrollLeft-f.x-u.x,m=a.top+i.scrollTop-f.y-u.y;return{x:l,y:m,width:a.width,height:a.height}}function dt(e){return U(e).position==="static"}function fn(e,t){if(!Q(e)||U(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function Bn(e,t){const n=G(e);if(Je(e))return n;if(!Q(e)){let r=se(e);for(;r&&!ge(r);){if(V(r)&&!dt(r))return r;r=se(r)}return n}let o=fn(e,t);for(;o&&ai(o)&&dt(o);)o=fn(o,t);return o&&ge(o)&&dt(o)&&!At(o)?n:o||fi(e)||n}const Mi=async function(e){const t=this.getOffsetParent||Bn,n=this.getDimensions,o=await n(e.floating);return{reference:Ri(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pi(e){return U(e).direction==="rtl"}const Ai={convertOffsetParentRelativeRectToViewportRelativeRect:vi,getDocumentElement:ee,getClippingRect:Ei,getOffsetParent:Bn,getElementRects:Mi,getClientRects:gi,getDimensions:Si,getScale:he,isElement:V,isRTL:Pi};function Wn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Oi(e,t){let n=null,o;const r=ee(e);function s(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function a(i,f){i===void 0&&(i=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:u,top:l,width:m,height:h}=d;if(i||t(),!m||!h)return;const w=$e(l),p=$e(r.clientWidth-(u+m)),v=$e(r.clientHeight-(l+h)),y=$e(u),b={rootMargin:-w+"px "+-p+"px "+-v+"px "+-y+"px",threshold:W(0,re(1,f))||1};let C=!0;function S(P){const R=P[0].intersectionRatio;if(R!==f){if(!C)return a();R?a(!1,R):o=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!Wn(d,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(S,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return a(!0),s}function Di(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,d=Dt(e),u=r||s?[...d?Re(d):[],...Re(t)]:[];u.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const l=d&&i?Oi(d,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(y=>{let[E]=y;E&&E.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),d&&!f&&h.observe(d),h.observe(t));let w,p=f?le(e):null;f&&v();function v(){const y=le(e);p&&!Wn(p,y)&&n(),p=y,w=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(E=>{r&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),l?.(),(y=h)==null||y.disconnect(),h=null,f&&cancelAnimationFrame(w)}}const Ii=ti,_i=ni,Ti=Qs,Ni=ri,Li=Js,pn=Zs,ki=oi,Fi=(e,t,n)=>{const o=new Map,r={platform:Ai,...n},s={...r.platform,_c:o};return qs(e,t,{...r,platform:s})};var ji=typeof document<"u",$i=function(){},We=ji?Y.useLayoutEffect:$i;function Ue(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ue(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Ue(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Gn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mn(e,t){const n=Gn(e);return Math.round(t*n)/n}function ft(e){const t=c.useRef(e);return We(()=>{t.current=e}),t}function Hi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:f,open:d}=e,[u,l]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(o);Ue(m,o)||h(o);const[w,p]=c.useState(null),[v,y]=c.useState(null),E=c.useCallback(O=>{O!==P.current&&(P.current=O,p(O))},[]),b=c.useCallback(O=>{O!==R.current&&(R.current=O,y(O))},[]),C=s||w,S=a||v,P=c.useRef(null),R=c.useRef(null),A=c.useRef(u),_=f!=null,D=ft(f),T=ft(r),L=ft(d),k=c.useCallback(()=>{if(!P.current||!R.current)return;const O={placement:t,strategy:n,middleware:m};T.current&&(O.platform=T.current),Fi(P.current,R.current,O).then(M=>{const H={...M,isPositioned:L.current!==!1};N.current&&!Ue(A.current,H)&&(A.current=H,Mr.flushSync(()=>{l(H)}))})},[m,t,n,T,L]);We(()=>{d===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,l(O=>({...O,isPositioned:!1})))},[d]);const N=c.useRef(!1);We(()=>(N.current=!0,()=>{N.current=!1}),[]),We(()=>{if(C&&(P.current=C),S&&(R.current=S),C&&S){if(D.current)return D.current(C,S,k);k()}},[C,S,k,D,_]);const $=c.useMemo(()=>({reference:P,floating:R,setReference:E,setFloating:b}),[E,b]),I=c.useMemo(()=>({reference:C,floating:S}),[C,S]),F=c.useMemo(()=>{const O={position:n,left:0,top:0};if(!I.floating)return O;const M=mn(I.floating,u.x),H=mn(I.floating,u.y);return i?{...O,transform:"translate("+M+"px, "+H+"px)",...Gn(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:H}},[n,i,I.floating,u.x,u.y]);return c.useMemo(()=>({...u,update:k,refs:$,elements:I,floatingStyles:F}),[u,k,$,I,F])}const Bi=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?pn({element:o.current,padding:r}).fn(n):{}:o?pn({element:o,padding:r}).fn(n):{}}}},Wi=(e,t)=>({...Ii(e),options:[e,t]}),Gi=(e,t)=>({..._i(e),options:[e,t]}),Ki=(e,t)=>({...ki(e),options:[e,t]}),Vi=(e,t)=>({...Ti(e),options:[e,t]}),Ui=(e,t)=>({...Ni(e),options:[e,t]}),zi=(e,t)=>({...Li(e),options:[e,t]}),Yi=(e,t)=>({...Bi(e),options:[e,t]});var Xi="Arrow",Kn=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return g.jsx(x.Primitive.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Kn.displayName=Xi;var qi=Kn;function Vn(e){const[t,n]=c.useState(void 0);return x.useLayoutEffect2(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,i;if("borderBoxSize"in s){const f=s.borderBoxSize,d=Array.isArray(f)?f[0]:f;a=d.inlineSize,i=d.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var It="Popper",[Un,_t]=x.createContextScope(It),[Zi,zn]=Un(It),Yn=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return g.jsx(Zi,{scope:t,anchor:o,onAnchorChange:r,children:n})};Yn.displayName=It;var Xn="PopperAnchor",qn=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=zn(Xn,n),a=c.useRef(null),i=x.useComposedRefs(t,a),f=c.useRef(null);return c.useEffect(()=>{const d=f.current;f.current=o?.current||a.current,d!==f.current&&s.onAnchorChange(f.current)}),o?null:g.jsx(x.Primitive.div,{...r,ref:i})});qn.displayName=Xn;var Tt="PopperContent",[Qi,Ji]=Un(Tt),Zn=c.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:l="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:w,...p}=e,v=zn(Tt,n),[y,E]=c.useState(null),b=x.useComposedRefs(t,j=>E(j)),[C,S]=c.useState(null),P=Vn(C),R=P?.width??0,A=P?.height??0,_=o+(s!=="center"?"-"+s:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},T=Array.isArray(d)?d:[d],L=T.length>0,k={padding:D,boundary:T.filter(ta),altBoundary:L},{refs:N,floatingStyles:$,placement:I,isPositioned:F,middlewareData:O}=Hi({strategy:"fixed",placement:_,whileElementsMounted:(...j)=>Di(...j,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[Wi({mainAxis:r+A,alignmentAxis:a}),f&&Gi({mainAxis:!0,crossAxis:!1,limiter:l==="partial"?Ki():void 0,...k}),f&&Vi({...k}),Ui({...k,apply:({elements:j,rects:Ce,availableWidth:xr,availableHeight:br})=>{const{width:Cr,height:Er}=Ce.reference,Ne=j.floating.style;Ne.setProperty("--radix-popper-available-width",`${xr}px`),Ne.setProperty("--radix-popper-available-height",`${br}px`),Ne.setProperty("--radix-popper-anchor-width",`${Cr}px`),Ne.setProperty("--radix-popper-anchor-height",`${Er}px`)}}),C&&Yi({element:C,padding:i}),na({arrowWidth:R,arrowHeight:A}),m&&zi({strategy:"referenceHidden",...k})]}),[M,H]=eo(I),z=x.useCallbackRef(w);x.useLayoutEffect2(()=>{F&&z?.()},[F,z]);const ae=O.arrow?.x,xe=O.arrow?.y,be=O.arrow?.centerOffset!==0,[Te,ce]=c.useState();return x.useLayoutEffect2(()=>{y&&ce(window.getComputedStyle(y).zIndex)},[y]),g.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:F?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(Qi,{scope:n,placedSide:M,onArrowChange:S,arrowX:ae,arrowY:xe,shouldHideArrow:be,children:g.jsx(x.Primitive.div,{"data-side":M,"data-align":H,...p,ref:b,style:{...p.style,animation:F?void 0:"none"}})})})});Zn.displayName=Tt;var Qn="PopperArrow",ea={top:"bottom",right:"left",bottom:"top",left:"right"},Jn=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=Ji(Qn,o),a=ea[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(qi,{...r,ref:n,style:{...r.style,display:"block"}})})});Jn.displayName=Qn;function ta(e){return e!==null}var na=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,a=r.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,f=a?0:e.arrowHeight,[d,u]=eo(n),l={start:"0%",center:"50%",end:"100%"}[u],m=(r.arrow?.x??0)+i/2,h=(r.arrow?.y??0)+f/2;let w="",p="";return d==="bottom"?(w=a?l:`${m}px`,p=`${-f}px`):d==="top"?(w=a?l:`${m}px`,p=`${o.floating.height+f}px`):d==="right"?(w=`${-f}px`,p=a?l:`${h}px`):d==="left"&&(w=`${o.floating.width+f}px`,p=a?l:`${h}px`),{data:{x:w,y:p}}}});function eo(e){const[t,n="center"]=e.split("-");return[t,n]}var Nt=Yn,to=qn,no=Zn,oo=Jn,pt="rovingFocusGroup.onEntryFocus",oa={bubbles:!1,cancelable:!0},Oe="RovingFocusGroup",[yt,ro,ra]=bt(Oe),[sa,Lt]=x.createContextScope(Oe,[ra]),[ia,aa]=sa(Oe),so=c.forwardRef((e,t)=>g.jsx(yt.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(yt.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(ca,{...e,ref:t})})}));so.displayName=Oe;var ca=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...l}=e,m=c.useRef(null),h=x.useComposedRefs(t,m),w=x.useDirection(s),[p,v]=Xe({prop:a,defaultProp:i??null,onChange:f,caller:Oe}),[y,E]=c.useState(!1),b=x.useCallbackRef(d),C=ro(n),S=c.useRef(!1),[P,R]=c.useState(0);return c.useEffect(()=>{const A=m.current;if(A)return A.addEventListener(pt,b),()=>A.removeEventListener(pt,b)},[b]),g.jsx(ia,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:p,onItemFocus:c.useCallback(A=>v(A),[v]),onItemShiftTab:c.useCallback(()=>E(!0),[]),onFocusableItemAdd:c.useCallback(()=>R(A=>A+1),[]),onFocusableItemRemove:c.useCallback(()=>R(A=>A-1),[]),children:g.jsx(x.Primitive.div,{tabIndex:y||P===0?-1:0,"data-orientation":o,...l,ref:h,style:{outline:"none",...e.style},onMouseDown:x.composeEventHandlers(e.onMouseDown,()=>{S.current=!0}),onFocus:x.composeEventHandlers(e.onFocus,A=>{const _=!S.current;if(A.target===A.currentTarget&&_&&!y){const D=new CustomEvent(pt,oa);if(A.currentTarget.dispatchEvent(D),!D.defaultPrevented){const T=C().filter(I=>I.focusable),L=T.find(I=>I.active),k=T.find(I=>I.id===p),$=[L,k,...T].filter(Boolean).map(I=>I.ref.current);co($,u)}}S.current=!1}),onBlur:x.composeEventHandlers(e.onBlur,()=>E(!1))})})}),io="RovingFocusGroupItem",ao=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:a,...i}=e,f=ve(),d=s||f,u=aa(io,n),l=u.currentTabStopId===d,m=ro(n),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:p}=u;return c.useEffect(()=>{if(o)return h(),()=>w()},[o,h,w]),g.jsx(yt.ItemSlot,{scope:n,id:d,focusable:o,active:r,children:g.jsx(x.Primitive.span,{tabIndex:l?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:x.composeEventHandlers(e.onMouseDown,v=>{o?u.onItemFocus(d):v.preventDefault()}),onFocus:x.composeEventHandlers(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:x.composeEventHandlers(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=da(v,u.orientation,u.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=m().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const C=b.indexOf(v.currentTarget);b=u.loop?fa(b,C+1):b.slice(C+1)}setTimeout(()=>co(b))}}),children:typeof a=="function"?a({isCurrentTabStop:l,hasTabStop:p!=null}):a})})});ao.displayName=io;var la={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ua(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function da(e,t,n){const o=ua(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return la[o]}function co(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function fa(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var lo=so,uo=ao;function pa(e){const t=ma(e),n=c.forwardRef((o,r)=>{const{children:s,...a}=o,i=c.Children.toArray(s),f=i.find(va);if(f){const d=f.props.children,u=i.map(l=>l===f?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:l);return g.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,u):null})}return g.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function ma(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const a=wa(r),i=ga(s,r.props);return r.type!==c.Fragment&&(i.ref=o?x.composeRefs(o,a):a),c.cloneElement(r,i)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ha=Symbol("radix.slottable");function va(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ha}function ga(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const f=s(...i);return r(...i),f}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function wa(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xt=["Enter"," "],ya=["ArrowDown","PageUp","Home"],fo=["ArrowUp","PageDown","End"],xa=[...ya,...fo],ba={ltr:[...xt,"ArrowRight"],rtl:[...xt,"ArrowLeft"]},Ca={ltr:["ArrowLeft"],rtl:["ArrowRight"]},De="Menu",[Me,Ea,Sa]=bt(De),[ue,po]=x.createContextScope(De,[Sa,_t,Lt]),Ie=_t(),mo=Lt(),[ho,ie]=ue(De),[Ra,_e]=ue(De),vo=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:a=!0}=e,i=Ie(t),[f,d]=c.useState(null),u=c.useRef(!1),l=x.useCallbackRef(s),m=x.useDirection(r);return c.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),g.jsx(Nt,{...i,children:g.jsx(ho,{scope:t,open:n,onOpenChange:l,content:f,onContentChange:d,children:g.jsx(Ra,{scope:t,onClose:c.useCallback(()=>l(!1),[l]),isUsingKeyboardRef:u,dir:m,modal:a,children:o})})})};vo.displayName=De;var Ma="MenuAnchor",kt=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Ie(n);return g.jsx(to,{...r,...o,ref:t})});kt.displayName=Ma;var Ft="MenuPortal",[Pa,go]=ue(Ft,{forceMount:void 0}),wo=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=ie(Ft,t);return g.jsx(Pa,{scope:t,forceMount:n,children:g.jsx(x.Presence,{present:n||s.open,children:g.jsx(Et,{asChild:!0,container:r,children:o})})})};wo.displayName=Ft;var K="MenuContent",[Aa,jt]=ue(K),yo=c.forwardRef((e,t)=>{const n=go(K,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=ie(K,e.__scopeMenu),a=_e(K,e.__scopeMenu);return g.jsx(Me.Provider,{scope:e.__scopeMenu,children:g.jsx(x.Presence,{present:o||s.open,children:g.jsx(Me.Slot,{scope:e.__scopeMenu,children:a.modal?g.jsx(Oa,{...r,ref:t}):g.jsx(Da,{...r,ref:t})})})})}),Oa=c.forwardRef((e,t)=>{const n=ie(K,e.__scopeMenu),o=c.useRef(null),r=x.useComposedRefs(t,o);return c.useEffect(()=>{const s=o.current;if(s)return _n(s)},[]),g.jsx($t,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:x.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Da=c.forwardRef((e,t)=>{const n=ie(K,e.__scopeMenu);return g.jsx($t,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Ia=pa("MenuContent.ScrollLock"),$t=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:m,onDismiss:h,disableOutsideScroll:w,...p}=e,v=ie(K,n),y=_e(K,n),E=Ie(n),b=mo(n),C=Ea(n),[S,P]=c.useState(null),R=c.useRef(null),A=x.useComposedRefs(t,R,v.onContentChange),_=c.useRef(0),D=c.useRef(""),T=c.useRef(0),L=c.useRef(null),k=c.useRef("right"),N=c.useRef(0),$=w?St:c.Fragment,I=w?{as:Ia,allowPinchZoom:!0}:void 0,F=M=>{const H=D.current+M,z=C().filter(j=>!j.disabled),ae=document.activeElement,xe=z.find(j=>j.ref.current===ae)?.textValue,be=z.map(j=>j.textValue),Te=Ga(be,H,xe),ce=z.find(j=>j.textValue===Te)?.ref.current;(function j(Ce){D.current=Ce,window.clearTimeout(_.current),Ce!==""&&(_.current=window.setTimeout(()=>j(""),1e3))})(H),ce&&setTimeout(()=>ce.focus())};c.useEffect(()=>()=>window.clearTimeout(_.current),[]),En();const O=c.useCallback(M=>k.current===L.current?.side&&Va(M,L.current?.area),[]);return g.jsx(Aa,{scope:n,searchRef:D,onItemEnter:c.useCallback(M=>{O(M)&&M.preventDefault()},[O]),onItemLeave:c.useCallback(M=>{O(M)||(R.current?.focus(),P(null))},[O]),onTriggerLeave:c.useCallback(M=>{O(M)&&M.preventDefault()},[O]),pointerGraceTimerRef:T,onPointerGraceIntentChange:c.useCallback(M=>{L.current=M},[]),children:g.jsx($,{...I,children:g.jsx(Ct,{asChild:!0,trapped:r,onMountAutoFocus:x.composeEventHandlers(s,M=>{M.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:g.jsx(qe,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:m,onDismiss:h,children:g.jsx(lo,{asChild:!0,...b,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:P,onEntryFocus:x.composeEventHandlers(f,M=>{y.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(no,{role:"menu","aria-orientation":"vertical","data-state":ko(v.open),"data-radix-menu-content":"",dir:y.dir,...E,...p,ref:A,style:{outline:"none",...p.style},onKeyDown:x.composeEventHandlers(p.onKeyDown,M=>{const z=M.target.closest("[data-radix-menu-content]")===M.currentTarget,ae=M.ctrlKey||M.altKey||M.metaKey,xe=M.key.length===1;z&&(M.key==="Tab"&&M.preventDefault(),!ae&&xe&&F(M.key));const be=R.current;if(M.target!==be||!xa.includes(M.key))return;M.preventDefault();const ce=C().filter(j=>!j.disabled).map(j=>j.ref.current);fo.includes(M.key)&&ce.reverse(),Ba(ce)}),onBlur:x.composeEventHandlers(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(_.current),D.current="")}),onPointerMove:x.composeEventHandlers(e.onPointerMove,Pe(M=>{const H=M.target,z=N.current!==M.clientX;if(M.currentTarget.contains(H)&&z){const ae=M.clientX>N.current?"right":"left";k.current=ae,N.current=M.clientX}}))})})})})})})});yo.displayName=K;var _a="MenuGroup",Ht=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return g.jsx(x.Primitive.div,{role:"group",...o,ref:t})});Ht.displayName=_a;var Ta="MenuLabel",xo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return g.jsx(x.Primitive.div,{...o,ref:t})});xo.displayName=Ta;var ze="MenuItem",hn="menu.itemSelect",nt=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=c.useRef(null),a=_e(ze,e.__scopeMenu),i=jt(ze,e.__scopeMenu),f=x.useComposedRefs(t,s),d=c.useRef(!1),u=()=>{const l=s.current;if(!n&&l){const m=new CustomEvent(hn,{bubbles:!0,cancelable:!0});l.addEventListener(hn,h=>o?.(h),{once:!0}),x.dispatchDiscreteCustomEvent(l,m),m.defaultPrevented?d.current=!1:a.onClose()}};return g.jsx(bo,{...r,ref:f,disabled:n,onClick:x.composeEventHandlers(e.onClick,u),onPointerDown:l=>{e.onPointerDown?.(l),d.current=!0},onPointerUp:x.composeEventHandlers(e.onPointerUp,l=>{d.current||l.currentTarget?.click()}),onKeyDown:x.composeEventHandlers(e.onKeyDown,l=>{const m=i.searchRef.current!=="";n||m&&l.key===" "||xt.includes(l.key)&&(l.currentTarget.click(),l.preventDefault())})})});nt.displayName=ze;var bo=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,a=jt(ze,n),i=mo(n),f=c.useRef(null),d=x.useComposedRefs(t,f),[u,l]=c.useState(!1),[m,h]=c.useState("");return c.useEffect(()=>{const w=f.current;w&&h((w.textContent??"").trim())},[s.children]),g.jsx(Me.ItemSlot,{scope:n,disabled:o,textValue:r??m,children:g.jsx(uo,{asChild:!0,...i,focusable:!o,children:g.jsx(x.Primitive.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:x.composeEventHandlers(e.onPointerMove,Pe(w=>{o?a.onItemLeave(w):(a.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:x.composeEventHandlers(e.onPointerLeave,Pe(w=>a.onItemLeave(w))),onFocus:x.composeEventHandlers(e.onFocus,()=>l(!0)),onBlur:x.composeEventHandlers(e.onBlur,()=>l(!1))})})})}),Na="MenuCheckboxItem",Co=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return g.jsx(Po,{scope:e.__scopeMenu,checked:n,children:g.jsx(nt,{role:"menuitemcheckbox","aria-checked":Ye(n)?"mixed":n,...r,ref:t,"data-state":Gt(n),onSelect:x.composeEventHandlers(r.onSelect,()=>o?.(Ye(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Co.displayName=Na;var Eo="MenuRadioGroup",[La,ka]=ue(Eo,{value:void 0,onValueChange:()=>{}}),So=c.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=x.useCallbackRef(o);return g.jsx(La,{scope:e.__scopeMenu,value:n,onValueChange:s,children:g.jsx(Ht,{...r,ref:t})})});So.displayName=Eo;var Ro="MenuRadioItem",Mo=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=ka(Ro,e.__scopeMenu),s=n===r.value;return g.jsx(Po,{scope:e.__scopeMenu,checked:s,children:g.jsx(nt,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Gt(s),onSelect:x.composeEventHandlers(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Mo.displayName=Ro;var Bt="MenuItemIndicator",[Po,Fa]=ue(Bt,{checked:!1}),Ao=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Fa(Bt,n);return g.jsx(x.Presence,{present:o||Ye(s.checked)||s.checked===!0,children:g.jsx(x.Primitive.span,{...r,ref:t,"data-state":Gt(s.checked)})})});Ao.displayName=Bt;var ja="MenuSeparator",Oo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return g.jsx(x.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Oo.displayName=ja;var $a="MenuArrow",Do=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Ie(n);return g.jsx(oo,{...r,...o,ref:t})});Do.displayName=$a;var Wt="MenuSub",[Ha,Io]=ue(Wt),_o=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=ie(Wt,t),a=Ie(t),[i,f]=c.useState(null),[d,u]=c.useState(null),l=x.useCallbackRef(r);return c.useEffect(()=>(s.open===!1&&l(!1),()=>l(!1)),[s.open,l]),g.jsx(Nt,{...a,children:g.jsx(ho,{scope:t,open:o,onOpenChange:l,content:d,onContentChange:u,children:g.jsx(Ha,{scope:t,contentId:ve(),triggerId:ve(),trigger:i,onTriggerChange:f,children:n})})})};_o.displayName=Wt;var Ee="MenuSubTrigger",To=c.forwardRef((e,t)=>{const n=ie(Ee,e.__scopeMenu),o=_e(Ee,e.__scopeMenu),r=Io(Ee,e.__scopeMenu),s=jt(Ee,e.__scopeMenu),a=c.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:f}=s,d={__scopeMenu:e.__scopeMenu},u=c.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return c.useEffect(()=>u,[u]),c.useEffect(()=>{const l=i.current;return()=>{window.clearTimeout(l),f(null)}},[i,f]),g.jsx(kt,{asChild:!0,...d,children:g.jsx(bo,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ko(n.open),...e,ref:x.composeRefs(t,r.onTriggerChange),onClick:l=>{e.onClick?.(l),!(e.disabled||l.defaultPrevented)&&(l.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:x.composeEventHandlers(e.onPointerMove,Pe(l=>{s.onItemEnter(l),!l.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:x.composeEventHandlers(e.onPointerLeave,Pe(l=>{u();const m=n.content?.getBoundingClientRect();if(m){const h=n.content?.dataset.side,w=h==="right",p=w?-5:5,v=m[w?"left":"right"],y=m[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:l.clientX+p,y:l.clientY},{x:v,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:v,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(l),l.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:x.composeEventHandlers(e.onKeyDown,l=>{const m=s.searchRef.current!=="";e.disabled||m&&l.key===" "||ba[o.dir].includes(l.key)&&(n.onOpenChange(!0),n.content?.focus(),l.preventDefault())})})})});To.displayName=Ee;var No="MenuSubContent",Lo=c.forwardRef((e,t)=>{const n=go(K,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=ie(K,e.__scopeMenu),a=_e(K,e.__scopeMenu),i=Io(No,e.__scopeMenu),f=c.useRef(null),d=x.useComposedRefs(t,f);return g.jsx(Me.Provider,{scope:e.__scopeMenu,children:g.jsx(x.Presence,{present:o||s.open,children:g.jsx(Me.Slot,{scope:e.__scopeMenu,children:g.jsx($t,{id:i.contentId,"aria-labelledby":i.triggerId,...r,ref:d,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{a.isUsingKeyboardRef.current&&f.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:x.composeEventHandlers(e.onFocusOutside,u=>{u.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:x.composeEventHandlers(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:x.composeEventHandlers(e.onKeyDown,u=>{const l=u.currentTarget.contains(u.target),m=Ca[a.dir].includes(u.key);l&&m&&(s.onOpenChange(!1),i.trigger?.focus(),u.preventDefault())})})})})})});Lo.displayName=No;function ko(e){return e?"open":"closed"}function Ye(e){return e==="indeterminate"}function Gt(e){return Ye(e)?"indeterminate":e?"checked":"unchecked"}function Ba(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Wa(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Ga(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Wa(e,Math.max(s,0));r.length===1&&(a=a.filter(d=>d!==n));const f=a.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return f!==n?f:void 0}function Ka(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],f=t[a],d=i.x,u=i.y,l=f.x,m=f.y;u>o!=m>o&&n<(l-d)*(o-u)/(m-u)+d&&(r=!r)}return r}function Va(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ka(n,t)}function Pe(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ua=vo,za=kt,Ya=wo,Xa=yo,qa=Ht,Za=xo,Qa=nt,Ja=Co,ec=So,tc=Mo,nc=Ao,oc=Oo,rc=Do,sc=_o,ic=To,ac=Lo,ot="DropdownMenu",[cc]=x.createContextScope(ot,[po]),B=po(),[lc,Fo]=cc(ot),jo=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,f=B(t),d=c.useRef(null),[u,l]=Xe({prop:r,defaultProp:s??!1,onChange:a,caller:ot});return g.jsx(lc,{scope:t,triggerId:ve(),triggerRef:d,contentId:ve(),open:u,onOpenChange:l,onOpenToggle:c.useCallback(()=>l(m=>!m),[l]),modal:i,children:g.jsx(Ua,{...f,open:u,onOpenChange:l,dir:o,modal:i,children:n})})};jo.displayName=ot;var $o="DropdownMenuTrigger",Ho=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=Fo($o,n),a=B(n);return g.jsx(za,{asChild:!0,...a,children:g.jsx(x.Primitive.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:x.composeRefs(t,s.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,i=>{!o&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,i=>{o||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ho.displayName=$o;var uc="DropdownMenuPortal",Bo=e=>{const{__scopeDropdownMenu:t,...n}=e,o=B(t);return g.jsx(Ya,{...o,...n})};Bo.displayName=uc;var Wo="DropdownMenuContent",Go=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Fo(Wo,n),s=B(n),a=c.useRef(!1);return g.jsx(Xa,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,i=>{a.current||r.triggerRef.current?.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,i=>{const f=i.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,u=f.button===2||d;(!r.modal||u)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Go.displayName=Wo;var dc="DropdownMenuGroup",Ko=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(qa,{...r,...o,ref:t})});Ko.displayName=dc;var fc="DropdownMenuLabel",Vo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(Za,{...r,...o,ref:t})});Vo.displayName=fc;var pc="DropdownMenuItem",Uo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(Qa,{...r,...o,ref:t})});Uo.displayName=pc;var mc="DropdownMenuCheckboxItem",zo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(Ja,{...r,...o,ref:t})});zo.displayName=mc;var hc="DropdownMenuRadioGroup",Yo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(ec,{...r,...o,ref:t})});Yo.displayName=hc;var vc="DropdownMenuRadioItem",Xo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(tc,{...r,...o,ref:t})});Xo.displayName=vc;var gc="DropdownMenuItemIndicator",qo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(nc,{...r,...o,ref:t})});qo.displayName=gc;var wc="DropdownMenuSeparator",Zo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(oc,{...r,...o,ref:t})});Zo.displayName=wc;var yc="DropdownMenuArrow",xc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(rc,{...r,...o,ref:t})});xc.displayName=yc;var bc=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,a=B(t),[i,f]=Xe({prop:o,defaultProp:s??!1,onChange:r,caller:"DropdownMenuSub"});return g.jsx(sc,{...a,open:i,onOpenChange:f,children:n})},Cc="DropdownMenuSubTrigger",Qo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(ic,{...r,...o,ref:t})});Qo.displayName=Cc;var Ec="DropdownMenuSubContent",Jo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=B(n);return g.jsx(ac,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jo.displayName=Ec;var Sc=jo,Rc=Ho,er=Bo,tr=Go,Mc=Ko,nr=Vo,or=Uo,rr=zo,Pc=Yo,sr=Xo,ir=qo,ar=Zo,Ac=bc,cr=Qo,lr=Jo;const Oc=Sc,Dc=Rc,Ic=Mc,_c=er,Tc=Ac,Nc=Pc,ur=c.forwardRef(({className:e,inset:t,children:n,...o},r)=>g.jsxs(cr,{ref:r,className:J.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[n,g.jsx(Rr.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ur.displayName=cr.displayName;const dr=c.forwardRef(({className:e,...t},n)=>g.jsx(lr,{ref:n,className:J.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));dr.displayName=lr.displayName;const fr=c.forwardRef(({className:e,sideOffset:t=4,...n},o)=>g.jsx(er,{children:g.jsx(tr,{ref:o,sideOffset:t,className:J.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));fr.displayName=tr.displayName;const pr=c.forwardRef(({className:e,inset:t,...n},o)=>g.jsx(or,{ref:o,className:J.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));pr.displayName=or.displayName;const mr=c.forwardRef(({className:e,children:t,checked:n,...o},r)=>g.jsxs(rr,{ref:r,className:J.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(ir,{children:g.jsx(x.Check,{className:"h-4 w-4"})})}),t]}));mr.displayName=rr.displayName;const hr=c.forwardRef(({className:e,children:t,...n},o)=>g.jsxs(sr,{ref:o,className:J.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(ir,{children:g.jsx(wn,{className:"h-2 w-2 fill-current"})})}),t]}));hr.displayName=sr.displayName;const vr=c.forwardRef(({className:e,inset:t,...n},o)=>g.jsx(nr,{ref:o,className:J.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));vr.displayName=nr.displayName;const gr=c.forwardRef(({className:e,...t},n)=>g.jsx(ar,{ref:n,className:J.cn("-mx-1 my-1 h-px bg-muted",e),...t}));gr.displayName=ar.displayName;const wr=({className:e,...t})=>g.jsx("span",{className:J.cn("ml-auto text-xs tracking-widest opacity-60",e),...t});wr.displayName="DropdownMenuShortcut";const yr=c.forwardRef(({className:e,type:t,...n},o)=>g.jsx("input",{type:t,className:J.cn("flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground hover:border-muted-foreground/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...n}));yr.displayName="Input";exports.Anchor=to;exports.Arrow=oo;exports.Branch=Vr;exports.Circle=wn;exports.Content=no;exports.DismissableLayer=qe;exports.DropdownMenu=Oc;exports.DropdownMenuCheckboxItem=mr;exports.DropdownMenuContent=fr;exports.DropdownMenuGroup=Ic;exports.DropdownMenuItem=pr;exports.DropdownMenuLabel=vr;exports.DropdownMenuPortal=_c;exports.DropdownMenuRadioGroup=Nc;exports.DropdownMenuRadioItem=hr;exports.DropdownMenuSeparator=gr;exports.DropdownMenuShortcut=wr;exports.DropdownMenuSub=Tc;exports.DropdownMenuSubContent=dr;exports.DropdownMenuSubTrigger=ur;exports.DropdownMenuTrigger=Dc;exports.FocusScope=Ct;exports.Input=yr;exports.Item=uo;exports.Portal=Et;exports.ReactRemoveScroll=St;exports.Root=lo;exports.Root$1=Kr;exports.Root2=Nt;exports.createCollection=bt;exports.createPopperScope=_t;exports.createRovingFocusGroupScope=Lt;exports.hideOthers=_n;exports.useControllableState=Xe;exports.useFocusGuards=En;exports.useId=ve;exports.useSize=Vn;
42
+ //# sourceMappingURL=input-CZrckPLk.cjs.map