@gv-tech/ui-web 2.9.1 → 2.12.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 (214) hide show
  1. package/dist/accordion.cjs.js +1 -0
  2. package/dist/accordion.d.ts +18 -0
  3. package/dist/accordion.es.js +259 -0
  4. package/dist/alert-dialog.cjs.js +7 -0
  5. package/dist/alert-dialog.d.ts +43 -0
  6. package/dist/alert-dialog.es.js +171 -0
  7. package/dist/alert.cjs.js +1 -0
  8. package/dist/alert.d.ts +18 -0
  9. package/dist/alert.es.js +32 -0
  10. package/dist/aspect-ratio.cjs.js +1 -0
  11. package/dist/aspect-ratio.d.ts +10 -0
  12. package/dist/aspect-ratio.es.js +43 -0
  13. package/dist/avatar.cjs.js +1 -0
  14. package/dist/avatar.d.ts +15 -0
  15. package/dist/avatar.es.js +205 -0
  16. package/dist/badge.cjs.js +1 -0
  17. package/dist/badge.d.ts +16 -0
  18. package/dist/badge.es.js +26 -0
  19. package/dist/breadcrumb.cjs.js +1 -0
  20. package/dist/breadcrumb.d.ts +35 -0
  21. package/dist/breadcrumb.es.js +69 -0
  22. package/dist/button.cjs.js +1 -0
  23. package/dist/button.d.ts +17 -0
  24. package/dist/button.es.js +40 -0
  25. package/dist/calendar.cjs.js +1 -0
  26. package/dist/calendar.d.ts +29 -0
  27. package/dist/calendar.es.js +2976 -0
  28. package/dist/card.cjs.js +1 -0
  29. package/dist/card.d.ts +19 -0
  30. package/dist/card.es.js +33 -0
  31. package/dist/carousel.cjs.js +1 -0
  32. package/dist/carousel.d.ts +50 -0
  33. package/dist/carousel.es.js +1403 -0
  34. package/dist/chart.cjs.js +16 -0
  35. package/dist/chart.d.ts +60 -0
  36. package/dist/chart.es.js +4402 -0
  37. package/dist/checkbox.cjs.js +1 -0
  38. package/dist/checkbox.d.ts +10 -0
  39. package/dist/checkbox.es.js +258 -0
  40. package/dist/collapsible.cjs.js +1 -0
  41. package/dist/collapsible.d.ts +20 -0
  42. package/dist/collapsible.es.js +7 -0
  43. package/dist/command.cjs.js +1 -0
  44. package/dist/command.d.ts +115 -0
  45. package/dist/command.es.js +396 -0
  46. package/dist/context-menu.cjs.js +1 -0
  47. package/dist/context-menu.d.ts +80 -0
  48. package/dist/context-menu.es.js +328 -0
  49. package/dist/dialog.cjs.js +1 -0
  50. package/dist/dialog.d.ts +31 -0
  51. package/dist/dialog.es.js +66 -0
  52. package/dist/drawer.cjs.js +3 -0
  53. package/dist/drawer.d.ts +65 -0
  54. package/dist/drawer.es.js +1085 -0
  55. package/dist/dropdown-menu.cjs.js +1 -0
  56. package/dist/dropdown-menu.d.ts +80 -0
  57. package/dist/dropdown-menu.es.js +316 -0
  58. package/dist/form.cjs.js +1 -0
  59. package/dist/form.d.ts +53 -0
  60. package/dist/form.es.js +355 -0
  61. package/dist/hover-card.cjs.js +1 -0
  62. package/dist/hover-card.d.ts +19 -0
  63. package/dist/hover-card.es.js +188 -0
  64. package/dist/index-0ioNhtNM.mjs +10 -0
  65. package/dist/index-3j-XAIXT.mjs +55 -0
  66. package/dist/index-B2XtpfGY.js +1 -0
  67. package/dist/index-B39Lzq0v.js +1 -0
  68. package/dist/index-B7n6fy75.js +1 -0
  69. package/dist/index-B8dxbSWX.js +41 -0
  70. package/dist/index-BGIK9FQF.js +1 -0
  71. package/dist/index-BZPx6jYI.mjs +8 -0
  72. package/dist/index-BoNjHhm4.js +1 -0
  73. package/dist/index-BtZvtDmp.js +1 -0
  74. package/dist/index-Bv7qrYW6.mjs +180 -0
  75. package/dist/index-ByiPJW53.js +5 -0
  76. package/dist/index-C0dlIQIi.js +1 -0
  77. package/dist/index-C1qb0595.mjs +27 -0
  78. package/dist/index-C7HEunrh.mjs +15 -0
  79. package/dist/index-C8ni3LLa.js +1 -0
  80. package/dist/index-CCKe-Mpx.mjs +6 -0
  81. package/dist/index-CD6_IrA-.mjs +10 -0
  82. package/dist/index-CRyCZJLa.mjs +677 -0
  83. package/dist/index-CVx1AgNG.mjs +615 -0
  84. package/dist/index-Ce5TOFAK.js +1 -0
  85. package/dist/index-CeSLNJ60.mjs +32 -0
  86. package/dist/index-CefEQe_4.js +1 -0
  87. package/dist/index-Cj5hzyBi.js +1 -0
  88. package/dist/index-Cjj_rUPu.js +1 -0
  89. package/dist/index-Cl3G0jzM.js +1 -0
  90. package/dist/index-CsjrqSSN.js +1 -0
  91. package/dist/index-CwfE56Ep.mjs +1545 -0
  92. package/dist/index-CwyAfCwY.js +1 -0
  93. package/dist/index-CzY-WZXL.js +1 -0
  94. package/dist/index-D2HnlO3y.js +1 -0
  95. package/dist/index-DAWHN3cH.mjs +85 -0
  96. package/dist/index-DFdF7K7v.mjs +50 -0
  97. package/dist/index-DIsg7zU7.js +1 -0
  98. package/dist/index-DKN_vhyX.mjs +32 -0
  99. package/dist/index-DLcqcWxM.mjs +29 -0
  100. package/dist/index-DSxf1gN6.mjs +118 -0
  101. package/dist/index-DYxWvftI.js +1 -0
  102. package/dist/index-DaILh3TV.mjs +32 -0
  103. package/dist/index-Dfzl8TxY.mjs +136 -0
  104. package/dist/index-Dko2XdTk.js +1 -0
  105. package/dist/index-DlY82G31.mjs +245 -0
  106. package/dist/index-DnFcfnA9.mjs +13 -0
  107. package/dist/index-IZ2gq03c.mjs +68 -0
  108. package/dist/index-K9FzbxYw.mjs +93 -0
  109. package/dist/index-Le8p9oP4.mjs +60 -0
  110. package/dist/index-MQ0c3ZX_.js +1 -0
  111. package/dist/index-_XxjJPRD.js +1 -0
  112. package/dist/index-_wdrnYim.js +1 -0
  113. package/dist/index-jv3B4mTd.js +1 -0
  114. package/dist/index-kaM0u2Q1.js +1 -0
  115. package/dist/index-p6xVFRb4.mjs +52 -0
  116. package/dist/index-rKs9bXHr.mjs +6 -0
  117. package/dist/index-vuPgkS0V.mjs +70 -0
  118. package/dist/index.cjs.js +1 -0
  119. package/dist/index.d.ts +1288 -0
  120. package/dist/index.es.js +289 -0
  121. package/dist/input.cjs.js +1 -0
  122. package/dist/input.d.ts +9 -0
  123. package/dist/input.es.js +19 -0
  124. package/dist/jsx-runtime-nZSsnGb7.js +6 -0
  125. package/dist/jsx-runtime-tc70JA_2.mjs +264 -0
  126. package/dist/label.cjs.js +1 -0
  127. package/dist/label.d.ts +11 -0
  128. package/dist/label.es.js +22 -0
  129. package/dist/menubar.cjs.js +1 -0
  130. package/dist/menubar.d.ts +79 -0
  131. package/dist/menubar.es.js +473 -0
  132. package/dist/navigation-menu.cjs.js +1 -0
  133. package/dist/navigation-menu.d.ts +47 -0
  134. package/dist/navigation-menu.es.js +673 -0
  135. package/dist/pagination.cjs.js +1 -0
  136. package/dist/pagination.d.ts +68 -0
  137. package/dist/pagination.es.js +68 -0
  138. package/dist/popover.cjs.js +1 -0
  139. package/dist/popover.d.ts +24 -0
  140. package/dist/popover.es.js +242 -0
  141. package/dist/progress.cjs.js +6 -0
  142. package/dist/progress.d.ts +9 -0
  143. package/dist/progress.es.js +99 -0
  144. package/dist/radio-group.cjs.js +1 -0
  145. package/dist/radio-group.d.ts +16 -0
  146. package/dist/radio-group.es.js +253 -0
  147. package/dist/resizable.cjs.js +1 -0
  148. package/dist/resizable.d.ts +22 -0
  149. package/dist/resizable.es.js +1990 -0
  150. package/dist/scroll-area.cjs.js +1 -0
  151. package/dist/scroll-area.d.ts +14 -0
  152. package/dist/scroll-area.es.js +546 -0
  153. package/dist/search.cjs.js +1 -0
  154. package/dist/search.d.ts +15 -0
  155. package/dist/search.es.js +51 -0
  156. package/dist/select.cjs.js +1 -0
  157. package/dist/select.d.ts +54 -0
  158. package/dist/select.es.js +908 -0
  159. package/dist/separator.cjs.js +1 -0
  160. package/dist/separator.d.ts +9 -0
  161. package/dist/separator.es.js +35 -0
  162. package/dist/sheet.cjs.js +1 -0
  163. package/dist/sheet.d.ts +68 -0
  164. package/dist/sheet.es.js +66 -0
  165. package/dist/skeleton.cjs.js +1 -0
  166. package/dist/skeleton.d.ts +9 -0
  167. package/dist/skeleton.es.js +8 -0
  168. package/dist/slider.cjs.js +1 -0
  169. package/dist/slider.d.ts +9 -0
  170. package/dist/slider.es.js +442 -0
  171. package/dist/sonner.cjs.js +1 -0
  172. package/dist/sonner.d.ts +10 -0
  173. package/dist/sonner.es.js +764 -0
  174. package/dist/switch.cjs.js +1 -0
  175. package/dist/switch.d.ts +9 -0
  176. package/dist/switch.es.js +149 -0
  177. package/dist/table.cjs.js +1 -0
  178. package/dist/table.d.ts +43 -0
  179. package/dist/table.es.js +57 -0
  180. package/dist/tabs.cjs.js +1 -0
  181. package/dist/tabs.d.ts +24 -0
  182. package/dist/tabs.es.js +195 -0
  183. package/dist/text.cjs.js +1 -0
  184. package/dist/text.d.ts +17 -0
  185. package/dist/text.es.js +42 -0
  186. package/dist/textarea.cjs.js +1 -0
  187. package/dist/textarea.d.ts +9 -0
  188. package/dist/textarea.es.js +18 -0
  189. package/dist/theme-provider.cjs.js +1 -0
  190. package/dist/theme-provider.d.ts +9 -0
  191. package/dist/theme-provider.es.js +8 -0
  192. package/dist/theme-toggle.cjs.js +1 -0
  193. package/dist/theme-toggle.d.ts +8 -0
  194. package/dist/theme-toggle.es.js +78 -0
  195. package/dist/toast.cjs.js +1 -0
  196. package/dist/toast.d.ts +26 -0
  197. package/dist/toast.es.js +494 -0
  198. package/dist/toaster-CIpfms4W.js +1 -0
  199. package/dist/toaster-jBYXAPRk.mjs +118 -0
  200. package/dist/toaster.cjs.js +1 -0
  201. package/dist/toaster.d.ts +6 -0
  202. package/dist/toaster.es.js +6 -0
  203. package/dist/toggle-group.cjs.js +1 -0
  204. package/dist/toggle-group.d.ts +18 -0
  205. package/dist/toggle-group.es.js +170 -0
  206. package/dist/toggle.cjs.js +1 -0
  207. package/dist/toggle.d.ts +14 -0
  208. package/dist/toggle.es.js +14 -0
  209. package/dist/tooltip.cjs.js +1 -0
  210. package/dist/tooltip.d.ts +25 -0
  211. package/dist/tooltip.es.js +342 -0
  212. package/dist/utils-B6yFEsav.mjs +8 -0
  213. package/dist/utils-IjLH3w2e.js +1 -0
  214. package/package.json +1 -1
@@ -0,0 +1,245 @@
1
+ import * as i from "react";
2
+ import { P as p, c as g, a as B } from "./index-K9FzbxYw.mjs";
3
+ import { u as R } from "./index-DLcqcWxM.mjs";
4
+ import { a as H, c as V } from "./index-IZ2gq03c.mjs";
5
+ import { u as C } from "./index-DnFcfnA9.mjs";
6
+ import { u as q } from "./index-p6xVFRb4.mjs";
7
+ import { D as K } from "./index-Dfzl8TxY.mjs";
8
+ import { R as U, h as Y, u as Z, F as z } from "./index-CRyCZJLa.mjs";
9
+ import { P as J } from "./index-C7HEunrh.mjs";
10
+ import { P as _ } from "./index-vuPgkS0V.mjs";
11
+ import { j as s } from "./jsx-runtime-tc70JA_2.mjs";
12
+ var D = "Dialog", [y, ve] = V(D), [Q, u] = y(D), N = (e) => {
13
+ const {
14
+ __scopeDialog: t,
15
+ children: n,
16
+ open: a,
17
+ defaultOpen: r,
18
+ onOpenChange: o,
19
+ modal: l = !0
20
+ } = e, c = i.useRef(null), f = i.useRef(null), [v, x] = q({
21
+ prop: a,
22
+ defaultProp: r ?? !1,
23
+ onChange: o,
24
+ caller: D
25
+ });
26
+ return /* @__PURE__ */ s.jsx(
27
+ Q,
28
+ {
29
+ scope: t,
30
+ triggerRef: c,
31
+ contentRef: f,
32
+ contentId: C(),
33
+ titleId: C(),
34
+ descriptionId: C(),
35
+ open: v,
36
+ onOpenChange: x,
37
+ onOpenToggle: i.useCallback(() => x(($) => !$), [x]),
38
+ modal: l,
39
+ children: n
40
+ }
41
+ );
42
+ };
43
+ N.displayName = D;
44
+ var O = "DialogTrigger", I = i.forwardRef(
45
+ (e, t) => {
46
+ const { __scopeDialog: n, ...a } = e, r = u(O, n), o = R(t, r.triggerRef);
47
+ return /* @__PURE__ */ s.jsx(
48
+ p.button,
49
+ {
50
+ type: "button",
51
+ "aria-haspopup": "dialog",
52
+ "aria-expanded": r.open,
53
+ "aria-controls": r.contentId,
54
+ "data-state": P(r.open),
55
+ ...a,
56
+ ref: o,
57
+ onClick: g(e.onClick, r.onOpenToggle)
58
+ }
59
+ );
60
+ }
61
+ );
62
+ I.displayName = O;
63
+ var h = "DialogPortal", [X, A] = y(h, {
64
+ forceMount: void 0
65
+ }), T = (e) => {
66
+ const { __scopeDialog: t, forceMount: n, children: a, container: r } = e, o = u(h, t);
67
+ return /* @__PURE__ */ s.jsx(X, { scope: t, forceMount: n, children: i.Children.map(a, (l) => /* @__PURE__ */ s.jsx(_, { present: n || o.open, children: /* @__PURE__ */ s.jsx(J, { asChild: !0, container: r, children: l }) })) });
68
+ };
69
+ T.displayName = h;
70
+ var m = "DialogOverlay", j = i.forwardRef(
71
+ (e, t) => {
72
+ const n = A(m, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(m, e.__scopeDialog);
73
+ return o.modal ? /* @__PURE__ */ s.jsx(_, { present: a || o.open, children: /* @__PURE__ */ s.jsx(oe, { ...r, ref: t }) }) : null;
74
+ }
75
+ );
76
+ j.displayName = m;
77
+ var ee = B("DialogOverlay.RemoveScroll"), oe = i.forwardRef(
78
+ (e, t) => {
79
+ const { __scopeDialog: n, ...a } = e, r = u(m, n);
80
+ return (
81
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
82
+ // ie. when `Overlay` and `Content` are siblings
83
+ /* @__PURE__ */ s.jsx(U, { as: ee, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ s.jsx(
84
+ p.div,
85
+ {
86
+ "data-state": P(r.open),
87
+ ...a,
88
+ ref: t,
89
+ style: { pointerEvents: "auto", ...a.style }
90
+ }
91
+ ) })
92
+ );
93
+ }
94
+ ), d = "DialogContent", b = i.forwardRef(
95
+ (e, t) => {
96
+ const n = A(d, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(d, e.__scopeDialog);
97
+ return /* @__PURE__ */ s.jsx(_, { present: a || o.open, children: o.modal ? /* @__PURE__ */ s.jsx(te, { ...r, ref: t }) : /* @__PURE__ */ s.jsx(re, { ...r, ref: t }) });
98
+ }
99
+ );
100
+ b.displayName = d;
101
+ var te = i.forwardRef(
102
+ (e, t) => {
103
+ const n = u(d, e.__scopeDialog), a = i.useRef(null), r = R(t, n.contentRef, a);
104
+ return i.useEffect(() => {
105
+ const o = a.current;
106
+ if (o) return Y(o);
107
+ }, []), /* @__PURE__ */ s.jsx(
108
+ M,
109
+ {
110
+ ...e,
111
+ ref: r,
112
+ trapFocus: n.open,
113
+ disableOutsidePointerEvents: !0,
114
+ onCloseAutoFocus: g(e.onCloseAutoFocus, (o) => {
115
+ o.preventDefault(), n.triggerRef.current?.focus();
116
+ }),
117
+ onPointerDownOutside: g(e.onPointerDownOutside, (o) => {
118
+ const l = o.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0;
119
+ (l.button === 2 || c) && o.preventDefault();
120
+ }),
121
+ onFocusOutside: g(
122
+ e.onFocusOutside,
123
+ (o) => o.preventDefault()
124
+ )
125
+ }
126
+ );
127
+ }
128
+ ), re = i.forwardRef(
129
+ (e, t) => {
130
+ const n = u(d, e.__scopeDialog), a = i.useRef(!1), r = i.useRef(!1);
131
+ return /* @__PURE__ */ s.jsx(
132
+ M,
133
+ {
134
+ ...e,
135
+ ref: t,
136
+ trapFocus: !1,
137
+ disableOutsidePointerEvents: !1,
138
+ onCloseAutoFocus: (o) => {
139
+ e.onCloseAutoFocus?.(o), o.defaultPrevented || (a.current || n.triggerRef.current?.focus(), o.preventDefault()), a.current = !1, r.current = !1;
140
+ },
141
+ onInteractOutside: (o) => {
142
+ e.onInteractOutside?.(o), o.defaultPrevented || (a.current = !0, o.detail.originalEvent.type === "pointerdown" && (r.current = !0));
143
+ const l = o.target;
144
+ n.triggerRef.current?.contains(l) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && r.current && o.preventDefault();
145
+ }
146
+ }
147
+ );
148
+ }
149
+ ), M = i.forwardRef(
150
+ (e, t) => {
151
+ const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: o, ...l } = e, c = u(d, n), f = i.useRef(null), v = R(t, f);
152
+ return Z(), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
153
+ /* @__PURE__ */ s.jsx(
154
+ z,
155
+ {
156
+ asChild: !0,
157
+ loop: !0,
158
+ trapped: a,
159
+ onMountAutoFocus: r,
160
+ onUnmountAutoFocus: o,
161
+ children: /* @__PURE__ */ s.jsx(
162
+ K,
163
+ {
164
+ role: "dialog",
165
+ id: c.contentId,
166
+ "aria-describedby": c.descriptionId,
167
+ "aria-labelledby": c.titleId,
168
+ "data-state": P(c.open),
169
+ ...l,
170
+ ref: v,
171
+ onDismiss: () => c.onOpenChange(!1)
172
+ }
173
+ )
174
+ }
175
+ ),
176
+ /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
177
+ /* @__PURE__ */ s.jsx(ne, { titleId: c.titleId }),
178
+ /* @__PURE__ */ s.jsx(se, { contentRef: f, descriptionId: c.descriptionId })
179
+ ] })
180
+ ] });
181
+ }
182
+ ), E = "DialogTitle", F = i.forwardRef(
183
+ (e, t) => {
184
+ const { __scopeDialog: n, ...a } = e, r = u(E, n);
185
+ return /* @__PURE__ */ s.jsx(p.h2, { id: r.titleId, ...a, ref: t });
186
+ }
187
+ );
188
+ F.displayName = E;
189
+ var w = "DialogDescription", S = i.forwardRef(
190
+ (e, t) => {
191
+ const { __scopeDialog: n, ...a } = e, r = u(w, n);
192
+ return /* @__PURE__ */ s.jsx(p.p, { id: r.descriptionId, ...a, ref: t });
193
+ }
194
+ );
195
+ S.displayName = w;
196
+ var W = "DialogClose", k = i.forwardRef(
197
+ (e, t) => {
198
+ const { __scopeDialog: n, ...a } = e, r = u(W, n);
199
+ return /* @__PURE__ */ s.jsx(
200
+ p.button,
201
+ {
202
+ type: "button",
203
+ ...a,
204
+ ref: t,
205
+ onClick: g(e.onClick, () => r.onOpenChange(!1))
206
+ }
207
+ );
208
+ }
209
+ );
210
+ k.displayName = W;
211
+ function P(e) {
212
+ return e ? "open" : "closed";
213
+ }
214
+ var G = "DialogTitleWarning", [xe, L] = H(G, {
215
+ contentName: d,
216
+ titleName: E,
217
+ docsSlug: "dialog"
218
+ }), ne = ({ titleId: e }) => {
219
+ const t = L(G), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
220
+
221
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
222
+
223
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
224
+ return i.useEffect(() => {
225
+ e && (document.getElementById(e) || console.error(n));
226
+ }, [n, e]), null;
227
+ }, ae = "DialogDescriptionWarning", se = ({ contentRef: e, descriptionId: t }) => {
228
+ const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${L(ae).contentName}}.`;
229
+ return i.useEffect(() => {
230
+ const r = e.current?.getAttribute("aria-describedby");
231
+ t && r && (document.getElementById(t) || console.warn(a));
232
+ }, [a, e, t]), null;
233
+ }, Ce = N, Re = I, _e = T, he = j, Ee = b, Pe = F, ye = S, Ne = k;
234
+ export {
235
+ Ee as C,
236
+ ye as D,
237
+ he as O,
238
+ _e as P,
239
+ Ce as R,
240
+ Pe as T,
241
+ xe as W,
242
+ Ne as a,
243
+ Re as b,
244
+ ve as c
245
+ };
@@ -0,0 +1,13 @@
1
+ import * as r from "react";
2
+ import { u as a } from "./index-CCKe-Mpx.mjs";
3
+ var s = r[" useId ".trim().toString()] || (() => {
4
+ }), i = 0;
5
+ function n(e) {
6
+ const [t, o] = r.useState(s());
7
+ return a(() => {
8
+ o((u) => u ?? String(i++));
9
+ }, [e]), t ? `radix-${t}` : "";
10
+ }
11
+ export {
12
+ n as u
13
+ };
@@ -0,0 +1,68 @@
1
+ import * as u from "react";
2
+ import { j as C } from "./jsx-runtime-tc70JA_2.mjs";
3
+ function $(t, c) {
4
+ const n = u.createContext(c), p = (r) => {
5
+ const { children: e, ...o } = r, s = u.useMemo(() => o, Object.values(o));
6
+ return /* @__PURE__ */ C.jsx(n.Provider, { value: s, children: e });
7
+ };
8
+ p.displayName = t + "Provider";
9
+ function i(r) {
10
+ const e = u.useContext(n);
11
+ if (e) return e;
12
+ if (c !== void 0) return c;
13
+ throw new Error(`\`${r}\` must be used within \`${t}\``);
14
+ }
15
+ return [p, i];
16
+ }
17
+ function j(t, c = []) {
18
+ let n = [];
19
+ function p(r, e) {
20
+ const o = u.createContext(e), s = n.length;
21
+ n = [...n, e];
22
+ const m = (x) => {
23
+ const { scope: d, children: v, ...a } = x, S = d?.[t]?.[s] || o, h = u.useMemo(() => a, Object.values(a));
24
+ return /* @__PURE__ */ C.jsx(S.Provider, { value: h, children: v });
25
+ };
26
+ m.displayName = r + "Provider";
27
+ function f(x, d) {
28
+ const v = d?.[t]?.[s] || o, a = u.useContext(v);
29
+ if (a) return a;
30
+ if (e !== void 0) return e;
31
+ throw new Error(`\`${x}\` must be used within \`${r}\``);
32
+ }
33
+ return [m, f];
34
+ }
35
+ const i = () => {
36
+ const r = n.map((e) => u.createContext(e));
37
+ return function(o) {
38
+ const s = o?.[t] || r;
39
+ return u.useMemo(
40
+ () => ({ [`__scope${t}`]: { ...o, [t]: s } }),
41
+ [o, s]
42
+ );
43
+ };
44
+ };
45
+ return i.scopeName = t, [p, P(i, ...c)];
46
+ }
47
+ function P(...t) {
48
+ const c = t[0];
49
+ if (t.length === 1) return c;
50
+ const n = () => {
51
+ const p = t.map((i) => ({
52
+ useScope: i(),
53
+ scopeName: i.scopeName
54
+ }));
55
+ return function(r) {
56
+ const e = p.reduce((o, { useScope: s, scopeName: m }) => {
57
+ const x = s(r)[`__scope${m}`];
58
+ return { ...o, ...x };
59
+ }, {});
60
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
61
+ };
62
+ };
63
+ return n.scopeName = c.scopeName, n;
64
+ }
65
+ export {
66
+ $ as a,
67
+ j as c
68
+ };
@@ -0,0 +1,93 @@
1
+ import * as i from "react";
2
+ import * as y from "react-dom";
3
+ import { c as E } from "./index-DLcqcWxM.mjs";
4
+ import { j as u } from "./jsx-runtime-tc70JA_2.mjs";
5
+ // @__NO_SIDE_EFFECTS__
6
+ function S(t) {
7
+ const e = /* @__PURE__ */ h(t), n = i.forwardRef((o, r) => {
8
+ const { children: s, ...a } = o, l = i.Children.toArray(s), c = l.find(v);
9
+ if (c) {
10
+ const f = c.props.children, m = l.map((p) => p === c ? i.Children.count(f) > 1 ? i.Children.only(null) : i.isValidElement(f) ? f.props.children : null : p);
11
+ return /* @__PURE__ */ u.jsx(e, { ...a, ref: r, children: i.isValidElement(f) ? i.cloneElement(f, void 0, m) : null });
12
+ }
13
+ return /* @__PURE__ */ u.jsx(e, { ...a, ref: r, children: s });
14
+ });
15
+ return n.displayName = `${t}.Slot`, n;
16
+ }
17
+ // @__NO_SIDE_EFFECTS__
18
+ function h(t) {
19
+ const e = i.forwardRef((n, o) => {
20
+ const { children: r, ...s } = n;
21
+ if (i.isValidElement(r)) {
22
+ const a = g(r), l = b(s, r.props);
23
+ return r.type !== i.Fragment && (l.ref = o ? E(o, a) : a), i.cloneElement(r, l);
24
+ }
25
+ return i.Children.count(r) > 1 ? i.Children.only(null) : null;
26
+ });
27
+ return e.displayName = `${t}.SlotClone`, e;
28
+ }
29
+ var d = /* @__PURE__ */ Symbol("radix.slottable");
30
+ // @__NO_SIDE_EFFECTS__
31
+ function P(t) {
32
+ const e = ({ children: n }) => /* @__PURE__ */ u.jsx(u.Fragment, { children: n });
33
+ return e.displayName = `${t}.Slottable`, e.__radixId = d, e;
34
+ }
35
+ function v(t) {
36
+ return i.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === d;
37
+ }
38
+ function b(t, e) {
39
+ const n = { ...e };
40
+ for (const o in e) {
41
+ const r = t[o], s = e[o];
42
+ /^on[A-Z]/.test(o) ? r && s ? n[o] = (...l) => {
43
+ const c = s(...l);
44
+ return r(...l), c;
45
+ } : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...s } : o === "className" && (n[o] = [r, s].filter(Boolean).join(" "));
46
+ }
47
+ return { ...t, ...n };
48
+ }
49
+ function g(t) {
50
+ let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, n = e && "isReactWarning" in e && e.isReactWarning;
51
+ return n ? t.ref : (e = Object.getOwnPropertyDescriptor(t, "ref")?.get, n = e && "isReactWarning" in e && e.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
52
+ }
53
+ function j(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
54
+ return function(r) {
55
+ if (t?.(r), n === !1 || !r.defaultPrevented)
56
+ return e?.(r);
57
+ };
58
+ }
59
+ var C = [
60
+ "a",
61
+ "button",
62
+ "div",
63
+ "form",
64
+ "h2",
65
+ "h3",
66
+ "img",
67
+ "input",
68
+ "label",
69
+ "li",
70
+ "nav",
71
+ "ol",
72
+ "p",
73
+ "select",
74
+ "span",
75
+ "svg",
76
+ "ul"
77
+ ], w = C.reduce((t, e) => {
78
+ const n = /* @__PURE__ */ S(`Primitive.${e}`), o = i.forwardRef((r, s) => {
79
+ const { asChild: a, ...l } = r, c = a ? n : e;
80
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(c, { ...l, ref: s });
81
+ });
82
+ return o.displayName = `Primitive.${e}`, { ...t, [e]: o };
83
+ }, {});
84
+ function N(t, e) {
85
+ t && y.flushSync(() => t.dispatchEvent(e));
86
+ }
87
+ export {
88
+ w as P,
89
+ S as a,
90
+ P as b,
91
+ j as c,
92
+ N as d
93
+ };
@@ -0,0 +1,60 @@
1
+ import * as e from "react";
2
+ import { c as S } from "./index-DLcqcWxM.mjs";
3
+ import { j as y } from "./jsx-runtime-tc70JA_2.mjs";
4
+ var E = /* @__PURE__ */ Symbol.for("react.lazy"), p = e[" use ".trim().toString()];
5
+ function g(t) {
6
+ return typeof t == "object" && t !== null && "then" in t;
7
+ }
8
+ function d(t) {
9
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === E && "_payload" in t && g(t._payload);
10
+ }
11
+ // @__NO_SIDE_EFFECTS__
12
+ function C(t) {
13
+ const n = /* @__PURE__ */ R(t), o = e.forwardRef((i, r) => {
14
+ let { children: l, ...a } = i;
15
+ d(l) && typeof p == "function" && (l = p(l._payload));
16
+ const s = e.Children.toArray(l), f = s.find(b);
17
+ if (f) {
18
+ const c = f.props.children, m = s.map((u) => u === f ? e.Children.count(c) > 1 ? e.Children.only(null) : e.isValidElement(c) ? c.props.children : null : u);
19
+ return /* @__PURE__ */ y.jsx(n, { ...a, ref: r, children: e.isValidElement(c) ? e.cloneElement(c, void 0, m) : null });
20
+ }
21
+ return /* @__PURE__ */ y.jsx(n, { ...a, ref: r, children: l });
22
+ });
23
+ return o.displayName = `${t}.Slot`, o;
24
+ }
25
+ var A = /* @__PURE__ */ C("Slot");
26
+ // @__NO_SIDE_EFFECTS__
27
+ function R(t) {
28
+ const n = e.forwardRef((o, i) => {
29
+ let { children: r, ...l } = o;
30
+ if (d(r) && typeof p == "function" && (r = p(r._payload)), e.isValidElement(r)) {
31
+ const a = j(r), s = h(l, r.props);
32
+ return r.type !== e.Fragment && (s.ref = i ? S(i, a) : a), e.cloneElement(r, s);
33
+ }
34
+ return e.Children.count(r) > 1 ? e.Children.only(null) : null;
35
+ });
36
+ return n.displayName = `${t}.SlotClone`, n;
37
+ }
38
+ var _ = /* @__PURE__ */ Symbol("radix.slottable");
39
+ function b(t) {
40
+ return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === _;
41
+ }
42
+ function h(t, n) {
43
+ const o = { ...n };
44
+ for (const i in n) {
45
+ const r = t[i], l = n[i];
46
+ /^on[A-Z]/.test(i) ? r && l ? o[i] = (...s) => {
47
+ const f = l(...s);
48
+ return r(...s), f;
49
+ } : r && (o[i] = r) : i === "style" ? o[i] = { ...r, ...l } : i === "className" && (o[i] = [r, l].filter(Boolean).join(" "));
50
+ }
51
+ return { ...t, ...o };
52
+ }
53
+ function j(t) {
54
+ let n = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning;
55
+ return o ? t.ref : (n = Object.getOwnPropertyDescriptor(t, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? t.props.ref : t.props.ref || t.ref);
56
+ }
57
+ export {
58
+ A as S,
59
+ C as c
60
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react");function u(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const a=u(r);var n=globalThis?.document?a.useLayoutEffect:()=>{};exports.useLayoutEffect2=n;
@@ -0,0 +1 @@
1
+ "use strict";const f=require("react");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=l(f);function s(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function r(...e){return t=>{let n=!1;const c=e.map(o=>{const u=s(o,t);return!n&&typeof u=="function"&&(n=!0),u});if(n)return()=>{for(let o=0;o<c.length;o++){const u=c[o];typeof u=="function"?u():s(e[o],null)}}}}function a(...e){return i.useCallback(r(...e),e)}exports.composeRefs=r;exports.useComposedRefs=a;
@@ -0,0 +1 @@
1
+ "use strict";const b=require("react"),_=require("./jsx-runtime-nZSsnGb7.js");function j(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const p=j(b);function g(e,o=[]){let t=[];function u(r,n){const c=p.createContext(n);c.displayName=r+"Context";const s=t.length;t=[...t,n];const f=a=>{const{scope:l,children:d,...x}=a,S=l?.[e]?.[s]||c,C=p.useMemo(()=>x,Object.values(x));return _.jsxRuntimeExports.jsx(S.Provider,{value:C,children:d})};f.displayName=r+"Provider";function m(a,l){const d=l?.[e]?.[s]||c,x=p.useContext(d);if(x)return x;if(n!==void 0)return n;throw new Error(`\`${a}\` must be used within \`${r}\``)}return[f,m]}const i=()=>{const r=t.map(n=>p.createContext(n));return function(c){const s=c?.[e]||r;return p.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return i.scopeName=e,[u,v(i,...o)]}function v(...e){const o=e[0];if(e.length===1)return o;const t=()=>{const u=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const n=u.reduce((c,{useScope:s,scopeName:f})=>{const a=s(r)[`__scope${f}`];return{...c,...a}},{});return p.useMemo(()=>({[`__scope${o.scopeName}`]:n}),[n])}};return t.scopeName=o.scopeName,t}exports.createContextScope=g;
@@ -0,0 +1 @@
1
+ "use strict";const It=require("react"),Re=require("react-dom"),bt=require("./index-BtZvtDmp.js"),X=require("./jsx-runtime-nZSsnGb7.js"),qt=require("./index-_XxjJPRD.js"),Oe=require("./index-D2HnlO3y.js"),Pe=require("./index-CzY-WZXL.js"),Tt=require("./index-MQ0c3ZX_.js"),Ce=require("./index-Cjj_rUPu.js");function Xt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const O=Xt(It),Se=Xt(Re),Ee=["top","right","bottom","left"],Z=Math.min,_=Math.max,lt=Math.round,st=Math.floor,z=t=>({x:t,y:t}),De={left:"right",right:"left",bottom:"top",top:"bottom"},Le={start:"end",end:"start"};function xt(t,e,n){return _(t,Z(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}const Me=new Set(["top","bottom"]);function V(t){return Me.has(U(t))?"y":"x"}function Ot(t){return At(V(t))}function Te(t,e,n){n===void 0&&(n=!1);const o=tt(t),r=Ot(t),i=Rt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=at(s)),[s,at(s)]}function $e(t){const e=at(t);return[yt(t),e,yt(e)]}function yt(t){return t.replace(/start|end/g,e=>Le[e])}const $t=["left","right"],kt=["right","left"],ke=["top","bottom"],Fe=["bottom","top"];function Ne(t,e,n){switch(t){case"top":case"bottom":return n?e?kt:$t:e?$t:kt;case"left":case"right":return e?ke:Fe;default:return[]}}function _e(t,e,n,o){const r=tt(t);let i=Ne(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(yt)))),i}function at(t){return t.replace(/left|right|bottom|top/g,e=>De[e])}function je(t){return{top:0,right:0,bottom:0,left:0,...t}}function Yt(t){return typeof t!="number"?je(t):{top:t,right:t,bottom:t,left:t}}function ft(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Ft(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Ot(e),c=Rt(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}async function We(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=Y(e,t),p=Yt(d),w=c[m?u==="floating"?"reference":"floating":u],g=ft(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),v=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},A=ft(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-A.top+p.top)/x.y,bottom:(A.bottom-g.bottom+p.bottom)/x.y,left:(g.left-A.left+p.left)/x.x,right:(A.right-g.right+p.right)/x.x}}const He=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Ft(a,o,l),m=o,d={},p=0;for(let w=0;w<c.length;w++){var h;const{name:g,fn:v}=c[w],{x:y,y:x,data:A,reset:R}=await v({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:{...s,detectOverflow:(h=s.detectOverflow)!=null?h:We},elements:{reference:t,floating:e}});f=y??f,u=x??u,d={...d,[g]:{...d[g],...A}},R&&p<=50&&(p++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(a=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):R.rects),{x:f,y:u}=Ft(a,m,l)),w=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}},Be=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=Y(t,e)||{};if(a==null)return{};const u=Yt(f),m={x:n,y:o},d=Ot(r),p=Rt(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",v=w?"bottom":"right",y=w?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[d]-m[d]-i.floating[p],A=m[d]-i.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=R?R[y]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=c.floating[y]||i.floating[p]);const M=x/2-A/2,F=P/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[v],F),k=L,S=P-h[p]-$,C=P/2-h[p]/2+M,N=xt(k,C,S),E=!l.arrow&&tt(r)!=null&&C!==N&&i.reference[p]/2-(C<k?L:$)-h[p]/2<0,D=E?C<k?C-k:C-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:C-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Ve=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=Y(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),v=V(c),y=U(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),A=m||(y||!h?[at(c)]:$e(c)),R=p!=="none";!m&&R&&A.push(..._e(c,h,p,x));const P=[c,...A],M=await l.detectOverflow(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=Te(r,s,x);F.push(M[C[0]],M[C[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=P[C];if(N&&(!(u==="alignment"?v!==V(N):!1)||L.every(b=>V(b.placement)===v?b.overflows[0]>0:!0)))return{data:{index:C,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,b)=>D.overflows[1]-b.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(b=>{if(R){const T=V(b.placement);return T===v||T==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(T=>T>0).reduce((T,B)=>T+B,0)]).sort((b,T)=>b[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function _t(t){return Ee.some(e=>t[e]>=0)}const ze=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...i}=Y(t,e);switch(r){case"referenceHidden":{const s=await o.detectOverflow(e,{...i,elementContext:"reference"}),c=Nt(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:_t(c)}}}case"escaped":{const s=await o.detectOverflow(e,{...i,altBoundary:!0}),c=Nt(s,n.floating);return{data:{escapedOffsets:c,escaped:_t(c)}}}default:return{}}}}},Ut=new Set(["left","top"]);async function Ie(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=tt(n),l=V(n)==="y",a=Ut.has(s)?-1:1,f=i&&l?-1:1,u=Y(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const qe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ie(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Xe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:g=>{let{x:v,y}=g;return{x:v,y}}},...a}=Y(t,e),f={x:n,y:o},u=await i.detectOverflow(e,a),m=V(U(r)),d=At(m);let p=f[d],h=f[m];if(s){const g=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=p+u[g],x=p-u[v];p=xt(y,p,x)}if(c){const g=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=h+u[g],x=h-u[v];h=xt(y,h,x)}const w=l.fn({...e,[d]:p,[m]:h});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[d]:s,[m]:c}}}}}},Ye=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=Y(t,e),f={x:n,y:o},u=V(r),m=At(u);let d=f[m],p=f[u];const h=Y(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const y=m==="y"?"height":"width",x=i.reference[m]-i.floating[y]+w.mainAxis,A=i.reference[m]+i.reference[y]-w.mainAxis;d<x?d=x:d>A&&(d=A)}if(a){var g,v;const y=m==="y"?"width":"height",x=Ut.has(U(r)),A=i.reference[u]-i.floating[y]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),R=i.reference[u]+i.reference[y]+(x?0:((v=s.offset)==null?void 0:v[u])||0)-(x?w.crossAxis:0);p<A?p=A:p>R&&(p=R)}return{[m]:d,[u]:p}}}},Ue=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=Y(t,e),f=await s.detectOverflow(e,a),u=U(r),m=tt(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const v=h-f.top-f.bottom,y=p-f.left-f.right,x=Z(h-f[w],v),A=Z(p-f[g],y),R=!e.middlewareData.shift;let P=x,M=A;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(P=v),R&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):P=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:P});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function dt(){return typeof window<"u"}function et(t){return Zt(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Zt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zt(t){return dt()?t instanceof Node||t instanceof j(t).Node:!1}function W(t){return dt()?t instanceof Element||t instanceof j(t).Element:!1}function I(t){return dt()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function jt(t){return!dt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}const Ze=new Set(["inline","contents"]);function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ze.has(r)}const Ke=new Set(["table","td","th"]);function Ge(t){return Ke.has(et(t))}const Je=[":popover-open",":modal"];function pt(t){return Je.some(e=>{try{return t.matches(e)}catch{return!1}})}const Qe=["transform","translate","scale","rotate","perspective"],tn=["transform","translate","scale","rotate","perspective","filter"],en=["paint","layout","strict","content"];function Pt(t){const e=Ct(),n=W(t)?H(t):t;return Qe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||tn.some(o=>(n.willChange||"").includes(o))||en.some(o=>(n.contain||"").includes(o))}function nn(t){let e=K(t);for(;I(e)&&!Q(e);){if(Pt(e))return e;if(pt(e))return null;e=K(e)}return null}function Ct(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const on=new Set(["html","body","#document"]);function Q(t){return on.has(et(t))}function H(t){return j(t).getComputedStyle(t)}function mt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jt(t)&&t.host||q(t);return jt(e)?e.host:e}function Kt(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Kt(e)}function ot(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Kt(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=j(r);if(i){const c=vt(s);return e.concat(s,s.visualViewport||[],rt(r)?r:[],c&&n?ot(c):[])}return e.concat(r,ot(r,[],n))}function vt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Gt(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=lt(n)!==i||lt(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function St(t){return W(t)?t:t.contextElement}function J(t){const e=St(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Gt(e);let s=(i?lt(n.width):n.width)/o,c=(i?lt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const rn=z(0);function Jt(t){const e=j(t);return!Ct()||!e.visualViewport?rn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==j(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=St(t);let s=z(1);e&&(o?W(o)&&(s=J(o)):s=J(t));const c=sn(i,n,o)?Jt(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=j(i),d=o&&W(o)?j(o):o;let p=m,h=vt(p);for(;h&&o&&d!==p;){const w=J(h),g=h.getBoundingClientRect(),v=H(h),y=g.left+(h.clientLeft+parseFloat(v.paddingLeft))*w.x,x=g.top+(h.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=y,a+=x,p=j(h),h=vt(p)}}return ft({width:f,height:u,x:l,y:a})}function ht(t,e){const n=mt(t).scrollLeft;return e?e.left+n:G(q(t)).left+n}function Qt(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-ht(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function cn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=q(o),c=e?pt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((et(o)!=="body"||rt(s))&&(l=mt(o)),I(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?Qt(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function ln(t){return Array.from(t.getClientRects())}function an(t){const e=q(t),n=mt(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ht(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Wt=25;function fn(t,e){const n=j(t),o=q(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=Ct();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=ht(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Wt&&(i-=p)}else a<=Wt&&(i+=a);return{width:i,height:s,x:c,y:l}}const un=new Set(["absolute","fixed"]);function dn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?J(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Ht(t,e,n){let o;if(e==="viewport")o=fn(t,n);else if(e==="document")o=an(q(t));else if(W(e))o=dn(e,n);else{const r=Jt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ft(o)}function te(t,e){const n=K(t);return n===e||!W(n)||Q(n)?!1:H(n).position==="fixed"||te(n,e)}function pn(t,e){const n=e.get(t);if(n)return n;let o=ot(t,[],!1).filter(c=>W(c)&&et(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?K(t):t;for(;W(s)&&!Q(s);){const c=H(s),l=Pt(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&un.has(r.position)||rt(s)&&!l&&te(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function mn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?pt(e)?[]:pn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Ht(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Ht(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hn(t){const{width:e,height:n}=Gt(t);return{width:e,height:n}}function gn(t,e,n){const o=I(e),r=q(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=ht(r)}if(o||!o&&!i)if((et(e)!=="body"||rt(r))&&(c=mt(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?Qt(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function gt(t){return H(t).position==="static"}function Bt(t,e){if(!I(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function ee(t,e){const n=j(t);if(pt(t))return n;if(!I(t)){let r=K(t);for(;r&&!Q(r);){if(W(r)&&!gt(r))return r;r=K(r)}return n}let o=Bt(t,e);for(;o&&Ge(o)&&gt(o);)o=Bt(o,e);return o&&Q(o)&&gt(o)&&!Pt(o)?n:o||nn(t)||n}const wn=async function(t){const e=this.getOffsetParent||ee,n=this.getDimensions,o=await n(t.floating);return{reference:gn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xn(t){return H(t).direction==="rtl"}const yn={convertOffsetParentRelativeRectToViewportRelativeRect:cn,getDocumentElement:q,getClippingRect:mn,getOffsetParent:ee,getElementRects:wn,getClientRects:ln,getDimensions:hn,getScale:J,isElement:W,isRTL:xn};function ne(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function vn(t,e){let n=null,o;const r=q(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=st(u),h=st(r.clientWidth-(f+m)),w=st(r.clientHeight-(u+d)),g=st(f),y={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let x=!0;function A(R){const P=R[0].intersectionRatio;if(P!==l){if(!x)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!ne(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(A,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,y)}n.observe(t)}return s(!0),i}function bn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=St(t),f=r||i?[...a?ot(a):[],...ot(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?vn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[v]=g;v&&v.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!ne(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const An=qe,Rn=Xe,On=Ve,Pn=Ue,Cn=ze,Vt=Be,Sn=Ye,En=(t,e,n)=>{const o=new Map,r={platform:yn,...n},i={...r.platform,_c:o};return He(t,e,{...r,platform:i})};var Dn=typeof document<"u",Ln=function(){},ct=Dn?It.useLayoutEffect:Ln;function ut(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!ut(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!ut(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function oe(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function zt(t,e){const n=oe(t);return Math.round(e*n)/n}function wt(t){const e=O.useRef(t);return ct(()=>{e.current=t}),e}function Mn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=O.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=O.useState(o);ut(m,o)||d(o);const[p,h]=O.useState(null),[w,g]=O.useState(null),v=O.useCallback(b=>{b!==R.current&&(R.current=b,h(b))},[]),y=O.useCallback(b=>{b!==P.current&&(P.current=b,g(b))},[]),x=i||p,A=s||w,R=O.useRef(null),P=O.useRef(null),M=O.useRef(f),F=l!=null,L=wt(l),$=wt(r),k=wt(a),S=O.useCallback(()=>{if(!R.current||!P.current)return;const b={placement:e,strategy:n,middleware:m};$.current&&(b.platform=$.current),En(R.current,P.current,b).then(T=>{const B={...T,isPositioned:k.current!==!1};C.current&&!ut(M.current,B)&&(M.current=B,Se.flushSync(()=>{u(B)}))})},[m,e,n,$,k]);ct(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(b=>({...b,isPositioned:!1})))},[a]);const C=O.useRef(!1);ct(()=>(C.current=!0,()=>{C.current=!1}),[]),ct(()=>{if(x&&(R.current=x),A&&(P.current=A),x&&A){if(L.current)return L.current(x,A,S);S()}},[x,A,S,L,F]);const N=O.useMemo(()=>({reference:R,floating:P,setReference:v,setFloating:y}),[v,y]),E=O.useMemo(()=>({reference:x,floating:A}),[x,A]),D=O.useMemo(()=>{const b={position:n,left:0,top:0};if(!E.floating)return b;const T=zt(E.floating,f.x),B=zt(E.floating,f.y);return c?{...b,transform:"translate("+T+"px, "+B+"px)",...oe(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:B}},[n,c,E.floating,f.x,f.y]);return O.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Tn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Vt({element:o.current,padding:r}).fn(n):{}:o?Vt({element:o,padding:r}).fn(n):{}}}},$n=(t,e)=>({...An(t),options:[t,e]}),kn=(t,e)=>({...Rn(t),options:[t,e]}),Fn=(t,e)=>({...Sn(t),options:[t,e]}),Nn=(t,e)=>({...On(t),options:[t,e]}),_n=(t,e)=>({...Pn(t),options:[t,e]}),jn=(t,e)=>({...Cn(t),options:[t,e]}),Wn=(t,e)=>({...Tn(t),options:[t,e]});var Hn="Arrow",re=O.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return X.jsxRuntimeExports.jsx(bt.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:X.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});re.displayName=Hn;var Bn=re,Et="Popper",[ie,Vn]=Oe.createContextScope(Et),[zn,se]=ie(Et),ce=t=>{const{__scopePopper:e,children:n}=t,[o,r]=O.useState(null);return X.jsxRuntimeExports.jsx(zn,{scope:e,anchor:o,onAnchorChange:r,children:n})};ce.displayName=Et;var le="PopperAnchor",ae=O.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=se(le,n),s=O.useRef(null),c=qt.useComposedRefs(e,s),l=O.useRef(null);return O.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:X.jsxRuntimeExports.jsx(bt.Primitive.div,{...r,ref:c})});ae.displayName=le;var Dt="PopperContent",[In,qn]=ie(Dt),fe=O.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=se(Dt,n),[g,v]=O.useState(null),y=qt.useComposedRefs(e,nt=>v(nt)),[x,A]=O.useState(null),R=Ce.useSize(x),P=R?.width??0,M=R?.height??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Yn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:D,middlewareData:b}=Mn({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>bn(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[$n({mainAxis:r+M,alignmentAxis:s}),l&&kn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Fn():void 0,...S}),l&&Nn({...S}),_n({...S,apply:({elements:nt,rects:Mt,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=Mt.reference,it=nt.floating.style;it.setProperty("--radix-popper-available-width",`${ye}px`),it.setProperty("--radix-popper-available-height",`${ve}px`),it.setProperty("--radix-popper-anchor-width",`${be}px`),it.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),x&&Wn({element:x,padding:c}),Un({arrowWidth:P,arrowHeight:M}),m&&jn({strategy:"referenceHidden",...S})]}),[T,B]=pe(E),Lt=Pe.useCallbackRef(p);Tt.useLayoutEffect2(()=>{D&&Lt?.()},[D,Lt]);const me=b.arrow?.x,he=b.arrow?.y,ge=b.arrow?.centerOffset!==0,[we,xe]=O.useState();return Tt.useLayoutEffect2(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),X.jsxRuntimeExports.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[b.transformOrigin?.x,b.transformOrigin?.y].join(" "),...b.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:X.jsxRuntimeExports.jsx(In,{scope:n,placedSide:T,onArrowChange:A,arrowX:me,arrowY:he,shouldHideArrow:ge,children:X.jsxRuntimeExports.jsx(bt.Primitive.div,{"data-side":T,"data-align":B,...h,ref:y,style:{...h.style,animation:D?void 0:"none"}})})})});fe.displayName=Dt;var ue="PopperArrow",Xn={top:"bottom",right:"left",bottom:"top",left:"right"},de=O.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=qn(ue,o),s=Xn[i.placedSide];return X.jsxRuntimeExports.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:X.jsxRuntimeExports.jsx(Bn,{...r,ref:n,style:{...r.style,display:"block"}})})});de.displayName=ue;function Yn(t){return t!==null}var Un=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var Zn=ce,Kn=ae,Gn=fe,Jn=de;exports.Anchor=Kn;exports.Arrow=Jn;exports.Content=Gn;exports.Root2=Zn;exports.createPopperScope=Vn;
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react"),a=require("./index-BtZvtDmp.js"),f=require("./index-Ce5TOFAK.js"),b=require("./jsx-runtime-nZSsnGb7.js");function g(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const p=g(u);var i="Toggle",n=p.forwardRef((e,r)=>{const{pressed:t,defaultPressed:o,onPressedChange:d,...l}=e,[s,c]=f.useControllableState({prop:t,onChange:d,defaultProp:o??!1,caller:i});return b.jsxRuntimeExports.jsx(a.Primitive.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:r,onClick:a.composeEventHandlers(e.onClick,()=>{e.disabled||c(!s)})})});n.displayName=i;var m=n;exports.Root=m;exports.Toggle=n;
@@ -0,0 +1,52 @@
1
+ import * as t from "react";
2
+ import { u as m } from "./index-CCKe-Mpx.mjs";
3
+ var v = t[" useInsertionEffect ".trim().toString()] || m;
4
+ function w({
5
+ prop: e,
6
+ defaultProp: s,
7
+ onChange: o = () => {
8
+ },
9
+ caller: f
10
+ }) {
11
+ const [u, c, i] = R({
12
+ defaultProp: s,
13
+ onChange: o
14
+ }), n = e !== void 0, a = n ? e : u;
15
+ {
16
+ const r = t.useRef(e !== void 0);
17
+ t.useEffect(() => {
18
+ const l = r.current;
19
+ l !== n && console.warn(
20
+ `${f} is changing from ${l ? "controlled" : "uncontrolled"} to ${n ? "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.`
21
+ ), r.current = n;
22
+ }, [n, f]);
23
+ }
24
+ const d = t.useCallback(
25
+ (r) => {
26
+ if (n) {
27
+ const l = C(r) ? r(e) : r;
28
+ l !== e && i.current?.(l);
29
+ } else
30
+ c(r);
31
+ },
32
+ [n, e, c, i]
33
+ );
34
+ return [a, d];
35
+ }
36
+ function R({
37
+ defaultProp: e,
38
+ onChange: s
39
+ }) {
40
+ const [o, f] = t.useState(e), u = t.useRef(o), c = t.useRef(s);
41
+ return v(() => {
42
+ c.current = s;
43
+ }, [s]), t.useEffect(() => {
44
+ u.current !== o && (c.current?.(o), u.current = o);
45
+ }, [o, u]), [o, f, c];
46
+ }
47
+ function C(e) {
48
+ return typeof e == "function";
49
+ }
50
+ export {
51
+ w as u
52
+ };
@@ -0,0 +1,6 @@
1
+ function c(a, [t, n]) {
2
+ return Math.min(n, Math.max(t, a));
3
+ }
4
+ export {
5
+ c
6
+ };