@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,3629 @@
1
+ import { jsx as w, jsxs as Mt } from "react/jsx-runtime";
2
+ import * as c from "react";
3
+ import fe, { useState as po, useLayoutEffect as mo } from "react";
4
+ import { f as et, g as Ie, h as U, i as ye, k as J, P as G, j as O, q as gn, u as wn, m as tt, C as ho } from "./scroll-area-DQeqDp3Y.js";
5
+ import * as vo from "react-dom";
6
+ import go from "react-dom";
7
+ import { c as te } from "./index-CwJPJKOE.js";
8
+ import { c as wo } from "./createLucideIcon-BbeNo6vq.js";
9
+ import { C as yo } from "./chevron-right-B3bovvh0.js";
10
+ // @__NO_SIDE_EFFECTS__
11
+ function Ut(e) {
12
+ const t = /* @__PURE__ */ bo(e), n = c.forwardRef((r, o) => {
13
+ const { children: i, ...a } = r, s = c.Children.toArray(i), d = s.find(xo);
14
+ if (d) {
15
+ const f = d.props.children, u = s.map((l) => l === d ? c.Children.count(f) > 1 ? c.Children.only(null) : c.isValidElement(f) ? f.props.children : null : l);
16
+ return /* @__PURE__ */ w(t, { ...a, ref: o, children: c.isValidElement(f) ? c.cloneElement(f, void 0, u) : null });
17
+ }
18
+ return /* @__PURE__ */ w(t, { ...a, ref: o, children: i });
19
+ });
20
+ return n.displayName = `${e}.Slot`, n;
21
+ }
22
+ // @__NO_SIDE_EFFECTS__
23
+ function bo(e) {
24
+ const t = c.forwardRef((n, r) => {
25
+ const { children: o, ...i } = n;
26
+ if (c.isValidElement(o)) {
27
+ const a = So(o), s = Eo(i, o.props);
28
+ return o.type !== c.Fragment && (s.ref = r ? et(r, a) : a), c.cloneElement(o, s);
29
+ }
30
+ return c.Children.count(o) > 1 ? c.Children.only(null) : null;
31
+ });
32
+ return t.displayName = `${e}.SlotClone`, t;
33
+ }
34
+ var Co = /* @__PURE__ */ Symbol("radix.slottable");
35
+ function xo(e) {
36
+ return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Co;
37
+ }
38
+ function Eo(e, t) {
39
+ const n = { ...t };
40
+ for (const r in t) {
41
+ const o = e[r], i = t[r];
42
+ /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
43
+ const d = i(...s);
44
+ return o(...s), d;
45
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
46
+ }
47
+ return { ...e, ...n };
48
+ }
49
+ function So(e) {
50
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
51
+ 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);
52
+ }
53
+ function yn(e) {
54
+ const t = e + "CollectionProvider", [n, r] = Ie(t), [o, i] = n(
55
+ t,
56
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
57
+ ), a = (p) => {
58
+ const { scope: v, children: y } = p, x = fe.useRef(null), b = fe.useRef(/* @__PURE__ */ new Map()).current;
59
+ return /* @__PURE__ */ w(o, { scope: v, itemMap: b, collectionRef: x, children: y });
60
+ };
61
+ a.displayName = t;
62
+ const s = e + "CollectionSlot", d = /* @__PURE__ */ Ut(s), f = fe.forwardRef(
63
+ (p, v) => {
64
+ const { scope: y, children: x } = p, b = i(s, y), C = U(v, b.collectionRef);
65
+ return /* @__PURE__ */ w(d, { ref: C, children: x });
66
+ }
67
+ );
68
+ f.displayName = s;
69
+ const u = e + "CollectionItemSlot", l = "data-radix-collection-item", m = /* @__PURE__ */ Ut(u), h = fe.forwardRef(
70
+ (p, v) => {
71
+ const { scope: y, children: x, ...b } = p, C = fe.useRef(null), E = U(v, C), M = i(u, y);
72
+ return fe.useEffect(() => (M.itemMap.set(C, { ref: C, ...b }), () => {
73
+ M.itemMap.delete(C);
74
+ })), /* @__PURE__ */ w(m, { [l]: "", ref: E, children: x });
75
+ }
76
+ );
77
+ h.displayName = u;
78
+ function g(p) {
79
+ const v = i(e + "CollectionConsumer", p);
80
+ return fe.useCallback(() => {
81
+ const x = v.collectionRef.current;
82
+ if (!x) return [];
83
+ const b = Array.from(x.querySelectorAll(`[${l}]`));
84
+ return Array.from(v.itemMap.values()).sort(
85
+ (M, S) => b.indexOf(M.ref.current) - b.indexOf(S.ref.current)
86
+ );
87
+ }, [v.collectionRef, v.itemMap]);
88
+ }
89
+ return [
90
+ { Provider: a, Slot: f, ItemSlot: h },
91
+ g,
92
+ r
93
+ ];
94
+ }
95
+ var Ro = c[" useInsertionEffect ".trim().toString()] || ye;
96
+ function Pt({
97
+ prop: e,
98
+ defaultProp: t,
99
+ onChange: n = () => {
100
+ },
101
+ caller: r
102
+ }) {
103
+ const [o, i, a] = Mo({
104
+ defaultProp: t,
105
+ onChange: n
106
+ }), s = e !== void 0, d = s ? e : o;
107
+ {
108
+ const u = c.useRef(e !== void 0);
109
+ c.useEffect(() => {
110
+ const l = u.current;
111
+ l !== s && console.warn(
112
+ `${r} is changing from ${l ? "controlled" : "uncontrolled"} to ${s ? "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.`
113
+ ), u.current = s;
114
+ }, [s, r]);
115
+ }
116
+ const f = c.useCallback(
117
+ (u) => {
118
+ if (s) {
119
+ const l = Po(u) ? u(e) : u;
120
+ l !== e && a.current?.(l);
121
+ } else
122
+ i(u);
123
+ },
124
+ [s, e, i, a]
125
+ );
126
+ return [d, f];
127
+ }
128
+ function Mo({
129
+ defaultProp: e,
130
+ onChange: t
131
+ }) {
132
+ const [n, r] = c.useState(e), o = c.useRef(n), i = c.useRef(t);
133
+ return Ro(() => {
134
+ i.current = t;
135
+ }, [t]), c.useEffect(() => {
136
+ o.current !== n && (i.current?.(n), o.current = n);
137
+ }, [n, o]), [n, r, i];
138
+ }
139
+ function Po(e) {
140
+ return typeof e == "function";
141
+ }
142
+ var Ao = c[" useId ".trim().toString()] || (() => {
143
+ }), Oo = 0;
144
+ function Pe(e) {
145
+ const [t, n] = c.useState(Ao());
146
+ return ye(() => {
147
+ n((r) => r ?? String(Oo++));
148
+ }, [e]), e || (t ? `radix-${t}` : "");
149
+ }
150
+ const Do = wo("Circle", [
151
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
152
+ ]);
153
+ function _o(e, t = globalThis?.document) {
154
+ const n = J(e);
155
+ c.useEffect(() => {
156
+ const r = (o) => {
157
+ o.key === "Escape" && n(o);
158
+ };
159
+ return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
160
+ }, [n, t]);
161
+ }
162
+ var Io = "DismissableLayer", yt = "dismissableLayer.update", To = "dismissableLayer.pointerDownOutside", No = "dismissableLayer.focusOutside", zt, bn = c.createContext({
163
+ layers: /* @__PURE__ */ new Set(),
164
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
165
+ branches: /* @__PURE__ */ new Set()
166
+ }), At = c.forwardRef(
167
+ (e, t) => {
168
+ const {
169
+ disableOutsidePointerEvents: n = !1,
170
+ onEscapeKeyDown: r,
171
+ onPointerDownOutside: o,
172
+ onFocusOutside: i,
173
+ onInteractOutside: a,
174
+ onDismiss: s,
175
+ ...d
176
+ } = e, f = c.useContext(bn), [u, l] = c.useState(null), m = u?.ownerDocument ?? globalThis?.document, [, h] = c.useState({}), g = U(t, (S) => l(S)), p = Array.from(f.layers), [v] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(v), x = u ? p.indexOf(u) : -1, b = f.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= y, E = Fo((S) => {
177
+ const P = S.target, I = [...f.branches].some((D) => D.contains(P));
178
+ !C || I || (o?.(S), a?.(S), S.defaultPrevented || s?.());
179
+ }, m), M = ko((S) => {
180
+ const P = S.target;
181
+ [...f.branches].some((D) => D.contains(P)) || (i?.(S), a?.(S), S.defaultPrevented || s?.());
182
+ }, m);
183
+ return _o((S) => {
184
+ x === f.layers.size - 1 && (r?.(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
185
+ }, m), c.useEffect(() => {
186
+ if (u)
187
+ return n && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (zt = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(u)), f.layers.add(u), jt(), () => {
188
+ n && f.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = zt);
189
+ };
190
+ }, [u, m, n, f]), c.useEffect(() => () => {
191
+ u && (f.layers.delete(u), f.layersWithOutsidePointerEventsDisabled.delete(u), jt());
192
+ }, [u, f]), c.useEffect(() => {
193
+ const S = () => h({});
194
+ return document.addEventListener(yt, S), () => document.removeEventListener(yt, S);
195
+ }, []), /* @__PURE__ */ w(
196
+ G.div,
197
+ {
198
+ ...d,
199
+ ref: g,
200
+ style: {
201
+ pointerEvents: b ? C ? "auto" : "none" : void 0,
202
+ ...e.style
203
+ },
204
+ onFocusCapture: O(e.onFocusCapture, M.onFocusCapture),
205
+ onBlurCapture: O(e.onBlurCapture, M.onBlurCapture),
206
+ onPointerDownCapture: O(
207
+ e.onPointerDownCapture,
208
+ E.onPointerDownCapture
209
+ )
210
+ }
211
+ );
212
+ }
213
+ );
214
+ At.displayName = Io;
215
+ var Lo = "DismissableLayerBranch", Cn = c.forwardRef((e, t) => {
216
+ const n = c.useContext(bn), r = c.useRef(null), o = U(t, r);
217
+ return c.useEffect(() => {
218
+ const i = r.current;
219
+ if (i)
220
+ return n.branches.add(i), () => {
221
+ n.branches.delete(i);
222
+ };
223
+ }, [n.branches]), /* @__PURE__ */ w(G.div, { ...e, ref: o });
224
+ });
225
+ Cn.displayName = Lo;
226
+ function Fo(e, t = globalThis?.document) {
227
+ const n = J(e), r = c.useRef(!1), o = c.useRef(() => {
228
+ });
229
+ return c.useEffect(() => {
230
+ const i = (s) => {
231
+ if (s.target && !r.current) {
232
+ let d = function() {
233
+ xn(
234
+ To,
235
+ n,
236
+ f,
237
+ { discrete: !0 }
238
+ );
239
+ };
240
+ const f = { originalEvent: s };
241
+ s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = d, t.addEventListener("click", o.current, { once: !0 })) : d();
242
+ } else
243
+ t.removeEventListener("click", o.current);
244
+ r.current = !1;
245
+ }, a = window.setTimeout(() => {
246
+ t.addEventListener("pointerdown", i);
247
+ }, 0);
248
+ return () => {
249
+ window.clearTimeout(a), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
250
+ };
251
+ }, [t, n]), {
252
+ // ensures we check React component tree (not just DOM tree)
253
+ onPointerDownCapture: () => r.current = !0
254
+ };
255
+ }
256
+ function ko(e, t = globalThis?.document) {
257
+ const n = J(e), r = c.useRef(!1);
258
+ return c.useEffect(() => {
259
+ const o = (i) => {
260
+ i.target && !r.current && xn(No, n, { originalEvent: i }, {
261
+ discrete: !1
262
+ });
263
+ };
264
+ return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
265
+ }, [t, n]), {
266
+ onFocusCapture: () => r.current = !0,
267
+ onBlurCapture: () => r.current = !1
268
+ };
269
+ }
270
+ function jt() {
271
+ const e = new CustomEvent(yt);
272
+ document.dispatchEvent(e);
273
+ }
274
+ function xn(e, t, n, { discrete: r }) {
275
+ const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
276
+ t && o.addEventListener(e, t, { once: !0 }), r ? gn(o, i) : o.dispatchEvent(i);
277
+ }
278
+ var zc = At, jc = Cn, lt = "focusScope.autoFocusOnMount", ut = "focusScope.autoFocusOnUnmount", Yt = { bubbles: !1, cancelable: !0 }, $o = "FocusScope", En = c.forwardRef((e, t) => {
279
+ const {
280
+ loop: n = !1,
281
+ trapped: r = !1,
282
+ onMountAutoFocus: o,
283
+ onUnmountAutoFocus: i,
284
+ ...a
285
+ } = e, [s, d] = c.useState(null), f = J(o), u = J(i), l = c.useRef(null), m = U(t, (p) => d(p)), h = c.useRef({
286
+ paused: !1,
287
+ pause() {
288
+ this.paused = !0;
289
+ },
290
+ resume() {
291
+ this.paused = !1;
292
+ }
293
+ }).current;
294
+ c.useEffect(() => {
295
+ if (r) {
296
+ let p = function(b) {
297
+ if (h.paused || !s) return;
298
+ const C = b.target;
299
+ s.contains(C) ? l.current = C : ie(l.current, { select: !0 });
300
+ }, v = function(b) {
301
+ if (h.paused || !s) return;
302
+ const C = b.relatedTarget;
303
+ C !== null && (s.contains(C) || ie(l.current, { select: !0 }));
304
+ }, y = function(b) {
305
+ if (document.activeElement === document.body)
306
+ for (const E of b)
307
+ E.removedNodes.length > 0 && ie(s);
308
+ };
309
+ document.addEventListener("focusin", p), document.addEventListener("focusout", v);
310
+ const x = new MutationObserver(y);
311
+ return s && x.observe(s, { childList: !0, subtree: !0 }), () => {
312
+ document.removeEventListener("focusin", p), document.removeEventListener("focusout", v), x.disconnect();
313
+ };
314
+ }
315
+ }, [r, s, h.paused]), c.useEffect(() => {
316
+ if (s) {
317
+ qt.add(h);
318
+ const p = document.activeElement;
319
+ if (!s.contains(p)) {
320
+ const y = new CustomEvent(lt, Yt);
321
+ s.addEventListener(lt, f), s.dispatchEvent(y), y.defaultPrevented || (Bo(Ho(Sn(s)), { select: !0 }), document.activeElement === p && ie(s));
322
+ }
323
+ return () => {
324
+ s.removeEventListener(lt, f), setTimeout(() => {
325
+ const y = new CustomEvent(ut, Yt);
326
+ s.addEventListener(ut, u), s.dispatchEvent(y), y.defaultPrevented || ie(p ?? document.body, { select: !0 }), s.removeEventListener(ut, u), qt.remove(h);
327
+ }, 0);
328
+ };
329
+ }
330
+ }, [s, f, u, h]);
331
+ const g = c.useCallback(
332
+ (p) => {
333
+ if (!n && !r || h.paused) return;
334
+ const v = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
335
+ if (v && y) {
336
+ const x = p.currentTarget, [b, C] = Wo(x);
337
+ b && C ? !p.shiftKey && y === C ? (p.preventDefault(), n && ie(b, { select: !0 })) : p.shiftKey && y === b && (p.preventDefault(), n && ie(C, { select: !0 })) : y === x && p.preventDefault();
338
+ }
339
+ },
340
+ [n, r, h.paused]
341
+ );
342
+ return /* @__PURE__ */ w(G.div, { tabIndex: -1, ...a, ref: m, onKeyDown: g });
343
+ });
344
+ En.displayName = $o;
345
+ function Bo(e, { select: t = !1 } = {}) {
346
+ const n = document.activeElement;
347
+ for (const r of e)
348
+ if (ie(r, { select: t }), document.activeElement !== n) return;
349
+ }
350
+ function Wo(e) {
351
+ const t = Sn(e), n = Xt(t, e), r = Xt(t.reverse(), e);
352
+ return [n, r];
353
+ }
354
+ function Sn(e) {
355
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
356
+ acceptNode: (r) => {
357
+ const o = r.tagName === "INPUT" && r.type === "hidden";
358
+ return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
359
+ }
360
+ });
361
+ for (; n.nextNode(); ) t.push(n.currentNode);
362
+ return t;
363
+ }
364
+ function Xt(e, t) {
365
+ for (const n of e)
366
+ if (!Ko(n, { upTo: t })) return n;
367
+ }
368
+ function Ko(e, { upTo: t }) {
369
+ if (getComputedStyle(e).visibility === "hidden") return !0;
370
+ for (; e; ) {
371
+ if (t !== void 0 && e === t) return !1;
372
+ if (getComputedStyle(e).display === "none") return !0;
373
+ e = e.parentElement;
374
+ }
375
+ return !1;
376
+ }
377
+ function Go(e) {
378
+ return e instanceof HTMLInputElement && "select" in e;
379
+ }
380
+ function ie(e, { select: t = !1 } = {}) {
381
+ if (e && e.focus) {
382
+ const n = document.activeElement;
383
+ e.focus({ preventScroll: !0 }), e !== n && Go(e) && t && e.select();
384
+ }
385
+ }
386
+ var qt = Vo();
387
+ function Vo() {
388
+ let e = [];
389
+ return {
390
+ add(t) {
391
+ const n = e[0];
392
+ t !== n && n?.pause(), e = Zt(e, t), e.unshift(t);
393
+ },
394
+ remove(t) {
395
+ e = Zt(e, t), e[0]?.resume();
396
+ }
397
+ };
398
+ }
399
+ function Zt(e, t) {
400
+ const n = [...e], r = n.indexOf(t);
401
+ return r !== -1 && n.splice(r, 1), n;
402
+ }
403
+ function Ho(e) {
404
+ return e.filter((t) => t.tagName !== "A");
405
+ }
406
+ var Uo = "Portal", Rn = c.forwardRef((e, t) => {
407
+ const { container: n, ...r } = e, [o, i] = c.useState(!1);
408
+ ye(() => i(!0), []);
409
+ const a = n || o && globalThis?.document?.body;
410
+ return a ? go.createPortal(/* @__PURE__ */ w(G.div, { ...r, ref: t }), a) : null;
411
+ });
412
+ Rn.displayName = Uo;
413
+ var ft = 0;
414
+ function zo() {
415
+ c.useEffect(() => {
416
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
417
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Qt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Qt()), ft++, () => {
418
+ ft === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ft--;
419
+ };
420
+ }, []);
421
+ }
422
+ function Qt() {
423
+ const e = document.createElement("span");
424
+ 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;
425
+ }
426
+ var q = function() {
427
+ return q = Object.assign || function(t) {
428
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
429
+ n = arguments[r];
430
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
431
+ }
432
+ return t;
433
+ }, q.apply(this, arguments);
434
+ };
435
+ function Mn(e, t) {
436
+ var n = {};
437
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
438
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
439
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
440
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
441
+ return n;
442
+ }
443
+ function jo(e, t, n) {
444
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
445
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
446
+ return e.concat(i || Array.prototype.slice.call(t));
447
+ }
448
+ var Ue = "right-scroll-bar-position", ze = "width-before-scroll-bar", Yo = "with-scroll-bars-hidden", Xo = "--removed-body-scroll-bar-size";
449
+ function dt(e, t) {
450
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
451
+ }
452
+ function qo(e, t) {
453
+ var n = po(function() {
454
+ return {
455
+ // value
456
+ value: e,
457
+ // last callback
458
+ callback: t,
459
+ // "memoized" public interface
460
+ facade: {
461
+ get current() {
462
+ return n.value;
463
+ },
464
+ set current(r) {
465
+ var o = n.value;
466
+ o !== r && (n.value = r, n.callback(r, o));
467
+ }
468
+ }
469
+ };
470
+ })[0];
471
+ return n.callback = t, n.facade;
472
+ }
473
+ var Zo = typeof window < "u" ? c.useLayoutEffect : c.useEffect, Jt = /* @__PURE__ */ new WeakMap();
474
+ function Qo(e, t) {
475
+ var n = qo(null, function(r) {
476
+ return e.forEach(function(o) {
477
+ return dt(o, r);
478
+ });
479
+ });
480
+ return Zo(function() {
481
+ var r = Jt.get(n);
482
+ if (r) {
483
+ var o = new Set(r), i = new Set(e), a = n.current;
484
+ o.forEach(function(s) {
485
+ i.has(s) || dt(s, null);
486
+ }), i.forEach(function(s) {
487
+ o.has(s) || dt(s, a);
488
+ });
489
+ }
490
+ Jt.set(n, e);
491
+ }, [e]), n;
492
+ }
493
+ function Jo(e) {
494
+ return e;
495
+ }
496
+ function ei(e, t) {
497
+ t === void 0 && (t = Jo);
498
+ var n = [], r = !1, o = {
499
+ read: function() {
500
+ if (r)
501
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
502
+ return n.length ? n[n.length - 1] : e;
503
+ },
504
+ useMedium: function(i) {
505
+ var a = t(i, r);
506
+ return n.push(a), function() {
507
+ n = n.filter(function(s) {
508
+ return s !== a;
509
+ });
510
+ };
511
+ },
512
+ assignSyncMedium: function(i) {
513
+ for (r = !0; n.length; ) {
514
+ var a = n;
515
+ n = [], a.forEach(i);
516
+ }
517
+ n = {
518
+ push: function(s) {
519
+ return i(s);
520
+ },
521
+ filter: function() {
522
+ return n;
523
+ }
524
+ };
525
+ },
526
+ assignMedium: function(i) {
527
+ r = !0;
528
+ var a = [];
529
+ if (n.length) {
530
+ var s = n;
531
+ n = [], s.forEach(i), a = n;
532
+ }
533
+ var d = function() {
534
+ var u = a;
535
+ a = [], u.forEach(i);
536
+ }, f = function() {
537
+ return Promise.resolve().then(d);
538
+ };
539
+ f(), n = {
540
+ push: function(u) {
541
+ a.push(u), f();
542
+ },
543
+ filter: function(u) {
544
+ return a = a.filter(u), n;
545
+ }
546
+ };
547
+ }
548
+ };
549
+ return o;
550
+ }
551
+ function ti(e) {
552
+ e === void 0 && (e = {});
553
+ var t = ei(null);
554
+ return t.options = q({ async: !0, ssr: !1 }, e), t;
555
+ }
556
+ var Pn = function(e) {
557
+ var t = e.sideCar, n = Mn(e, ["sideCar"]);
558
+ if (!t)
559
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
560
+ var r = t.read();
561
+ if (!r)
562
+ throw new Error("Sidecar medium not found");
563
+ return c.createElement(r, q({}, n));
564
+ };
565
+ Pn.isSideCarExport = !0;
566
+ function ni(e, t) {
567
+ return e.useMedium(t), Pn;
568
+ }
569
+ var An = ti(), pt = function() {
570
+ }, nt = c.forwardRef(function(e, t) {
571
+ var n = c.useRef(null), r = c.useState({
572
+ onScrollCapture: pt,
573
+ onWheelCapture: pt,
574
+ onTouchMoveCapture: pt
575
+ }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, d = e.className, f = e.removeScrollBar, u = e.enabled, l = e.shards, m = e.sideCar, h = e.noRelative, g = e.noIsolation, p = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, C = Mn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = m, M = Qo([n, t]), S = q(q({}, C), o);
576
+ return c.createElement(
577
+ c.Fragment,
578
+ null,
579
+ u && c.createElement(E, { sideCar: An, removeScrollBar: f, shards: l, noRelative: h, noIsolation: g, inert: p, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
580
+ a ? c.cloneElement(c.Children.only(s), q(q({}, S), { ref: M })) : c.createElement(x, q({}, S, { className: d, ref: M }), s)
581
+ );
582
+ });
583
+ nt.defaultProps = {
584
+ enabled: !0,
585
+ removeScrollBar: !0,
586
+ inert: !1
587
+ };
588
+ nt.classNames = {
589
+ fullWidth: ze,
590
+ zeroRight: Ue
591
+ };
592
+ var ri = function() {
593
+ if (typeof __webpack_nonce__ < "u")
594
+ return __webpack_nonce__;
595
+ };
596
+ function oi() {
597
+ if (!document)
598
+ return null;
599
+ var e = document.createElement("style");
600
+ e.type = "text/css";
601
+ var t = ri();
602
+ return t && e.setAttribute("nonce", t), e;
603
+ }
604
+ function ii(e, t) {
605
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
606
+ }
607
+ function si(e) {
608
+ var t = document.head || document.getElementsByTagName("head")[0];
609
+ t.appendChild(e);
610
+ }
611
+ var ai = function() {
612
+ var e = 0, t = null;
613
+ return {
614
+ add: function(n) {
615
+ e == 0 && (t = oi()) && (ii(t, n), si(t)), e++;
616
+ },
617
+ remove: function() {
618
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
619
+ }
620
+ };
621
+ }, ci = function() {
622
+ var e = ai();
623
+ return function(t, n) {
624
+ c.useEffect(function() {
625
+ return e.add(t), function() {
626
+ e.remove();
627
+ };
628
+ }, [t && n]);
629
+ };
630
+ }, On = function() {
631
+ var e = ci(), t = function(n) {
632
+ var r = n.styles, o = n.dynamic;
633
+ return e(r, o), null;
634
+ };
635
+ return t;
636
+ }, li = {
637
+ left: 0,
638
+ top: 0,
639
+ right: 0,
640
+ gap: 0
641
+ }, mt = function(e) {
642
+ return parseInt(e || "", 10) || 0;
643
+ }, ui = function(e) {
644
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
645
+ return [mt(n), mt(r), mt(o)];
646
+ }, fi = function(e) {
647
+ if (e === void 0 && (e = "margin"), typeof window > "u")
648
+ return li;
649
+ var t = ui(e), n = document.documentElement.clientWidth, r = window.innerWidth;
650
+ return {
651
+ left: t[0],
652
+ top: t[1],
653
+ right: t[2],
654
+ gap: Math.max(0, r - n + t[2] - t[0])
655
+ };
656
+ }, di = On(), ge = "data-scroll-locked", pi = function(e, t, n, r) {
657
+ var o = e.left, i = e.top, a = e.right, s = e.gap;
658
+ return n === void 0 && (n = "margin"), `
659
+ .`.concat(Yo, ` {
660
+ overflow: hidden `).concat(r, `;
661
+ padding-right: `).concat(s, "px ").concat(r, `;
662
+ }
663
+ body[`).concat(ge, `] {
664
+ overflow: hidden `).concat(r, `;
665
+ overscroll-behavior: contain;
666
+ `).concat([
667
+ t && "position: relative ".concat(r, ";"),
668
+ n === "margin" && `
669
+ padding-left: `.concat(o, `px;
670
+ padding-top: `).concat(i, `px;
671
+ padding-right: `).concat(a, `px;
672
+ margin-left:0;
673
+ margin-top:0;
674
+ margin-right: `).concat(s, "px ").concat(r, `;
675
+ `),
676
+ n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
677
+ ].filter(Boolean).join(""), `
678
+ }
679
+
680
+ .`).concat(Ue, ` {
681
+ right: `).concat(s, "px ").concat(r, `;
682
+ }
683
+
684
+ .`).concat(ze, ` {
685
+ margin-right: `).concat(s, "px ").concat(r, `;
686
+ }
687
+
688
+ .`).concat(Ue, " .").concat(Ue, ` {
689
+ right: 0 `).concat(r, `;
690
+ }
691
+
692
+ .`).concat(ze, " .").concat(ze, ` {
693
+ margin-right: 0 `).concat(r, `;
694
+ }
695
+
696
+ body[`).concat(ge, `] {
697
+ `).concat(Xo, ": ").concat(s, `px;
698
+ }
699
+ `);
700
+ }, en = function() {
701
+ var e = parseInt(document.body.getAttribute(ge) || "0", 10);
702
+ return isFinite(e) ? e : 0;
703
+ }, mi = function() {
704
+ c.useEffect(function() {
705
+ return document.body.setAttribute(ge, (en() + 1).toString()), function() {
706
+ var e = en() - 1;
707
+ e <= 0 ? document.body.removeAttribute(ge) : document.body.setAttribute(ge, e.toString());
708
+ };
709
+ }, []);
710
+ }, hi = function(e) {
711
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
712
+ mi();
713
+ var i = c.useMemo(function() {
714
+ return fi(o);
715
+ }, [o]);
716
+ return c.createElement(di, { styles: pi(i, !t, o, n ? "" : "!important") });
717
+ }, bt = !1;
718
+ if (typeof window < "u")
719
+ try {
720
+ var We = Object.defineProperty({}, "passive", {
721
+ get: function() {
722
+ return bt = !0, !0;
723
+ }
724
+ });
725
+ window.addEventListener("test", We, We), window.removeEventListener("test", We, We);
726
+ } catch {
727
+ bt = !1;
728
+ }
729
+ var me = bt ? { passive: !1 } : !1, vi = function(e) {
730
+ return e.tagName === "TEXTAREA";
731
+ }, Dn = function(e, t) {
732
+ if (!(e instanceof Element))
733
+ return !1;
734
+ var n = window.getComputedStyle(e);
735
+ return (
736
+ // not-not-scrollable
737
+ n[t] !== "hidden" && // contains scroll inside self
738
+ !(n.overflowY === n.overflowX && !vi(e) && n[t] === "visible")
739
+ );
740
+ }, gi = function(e) {
741
+ return Dn(e, "overflowY");
742
+ }, wi = function(e) {
743
+ return Dn(e, "overflowX");
744
+ }, tn = function(e, t) {
745
+ var n = t.ownerDocument, r = t;
746
+ do {
747
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
748
+ var o = _n(e, r);
749
+ if (o) {
750
+ var i = In(e, r), a = i[1], s = i[2];
751
+ if (a > s)
752
+ return !0;
753
+ }
754
+ r = r.parentNode;
755
+ } while (r && r !== n.body);
756
+ return !1;
757
+ }, yi = function(e) {
758
+ var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
759
+ return [
760
+ t,
761
+ n,
762
+ r
763
+ ];
764
+ }, bi = function(e) {
765
+ var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
766
+ return [
767
+ t,
768
+ n,
769
+ r
770
+ ];
771
+ }, _n = function(e, t) {
772
+ return e === "v" ? gi(t) : wi(t);
773
+ }, In = function(e, t) {
774
+ return e === "v" ? yi(t) : bi(t);
775
+ }, Ci = function(e, t) {
776
+ return e === "h" && t === "rtl" ? -1 : 1;
777
+ }, xi = function(e, t, n, r, o) {
778
+ var i = Ci(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, d = t.contains(s), f = !1, u = a > 0, l = 0, m = 0;
779
+ do {
780
+ if (!s)
781
+ break;
782
+ var h = In(e, s), g = h[0], p = h[1], v = h[2], y = p - v - i * g;
783
+ (g || y) && _n(e, s) && (l += y, m += g);
784
+ var x = s.parentNode;
785
+ s = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
786
+ } while (
787
+ // portaled content
788
+ !d && s !== document.body || // self content
789
+ d && (t.contains(s) || t === s)
790
+ );
791
+ return (u && Math.abs(l) < 1 || !u && Math.abs(m) < 1) && (f = !0), f;
792
+ }, Ke = function(e) {
793
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
794
+ }, nn = function(e) {
795
+ return [e.deltaX, e.deltaY];
796
+ }, rn = function(e) {
797
+ return e && "current" in e ? e.current : e;
798
+ }, Ei = function(e, t) {
799
+ return e[0] === t[0] && e[1] === t[1];
800
+ }, Si = function(e) {
801
+ return `
802
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
803
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
804
+ `);
805
+ }, Ri = 0, he = [];
806
+ function Mi(e) {
807
+ var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(Ri++)[0], i = c.useState(On)[0], a = c.useRef(e);
808
+ c.useEffect(function() {
809
+ a.current = e;
810
+ }, [e]), c.useEffect(function() {
811
+ if (e.inert) {
812
+ document.body.classList.add("block-interactivity-".concat(o));
813
+ var p = jo([e.lockRef.current], (e.shards || []).map(rn), !0).filter(Boolean);
814
+ return p.forEach(function(v) {
815
+ return v.classList.add("allow-interactivity-".concat(o));
816
+ }), function() {
817
+ document.body.classList.remove("block-interactivity-".concat(o)), p.forEach(function(v) {
818
+ return v.classList.remove("allow-interactivity-".concat(o));
819
+ });
820
+ };
821
+ }
822
+ }, [e.inert, e.lockRef.current, e.shards]);
823
+ var s = c.useCallback(function(p, v) {
824
+ if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
825
+ return !a.current.allowPinchZoom;
826
+ var y = Ke(p), x = n.current, b = "deltaX" in p ? p.deltaX : x[0] - y[0], C = "deltaY" in p ? p.deltaY : x[1] - y[1], E, M = p.target, S = Math.abs(b) > Math.abs(C) ? "h" : "v";
827
+ if ("touches" in p && S === "h" && M.type === "range")
828
+ return !1;
829
+ var P = window.getSelection(), I = P && P.anchorNode, D = I ? I === M || I.contains(M) : !1;
830
+ if (D)
831
+ return !1;
832
+ var T = tn(S, M);
833
+ if (!T)
834
+ return !0;
835
+ if (T ? E = S : (E = S === "v" ? "h" : "v", T = tn(S, M)), !T)
836
+ return !1;
837
+ if (!r.current && "changedTouches" in p && (b || C) && (r.current = E), !E)
838
+ return !0;
839
+ var L = r.current || E;
840
+ return xi(L, v, p, L === "h" ? b : C);
841
+ }, []), d = c.useCallback(function(p) {
842
+ var v = p;
843
+ if (!(!he.length || he[he.length - 1] !== i)) {
844
+ var y = "deltaY" in v ? nn(v) : Ke(v), x = t.current.filter(function(E) {
845
+ return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Ei(E.delta, y);
846
+ })[0];
847
+ if (x && x.should) {
848
+ v.cancelable && v.preventDefault();
849
+ return;
850
+ }
851
+ if (!x) {
852
+ var b = (a.current.shards || []).map(rn).filter(Boolean).filter(function(E) {
853
+ return E.contains(v.target);
854
+ }), C = b.length > 0 ? s(v, b[0]) : !a.current.noIsolation;
855
+ C && v.cancelable && v.preventDefault();
856
+ }
857
+ }
858
+ }, []), f = c.useCallback(function(p, v, y, x) {
859
+ var b = { name: p, delta: v, target: y, should: x, shadowParent: Pi(y) };
860
+ t.current.push(b), setTimeout(function() {
861
+ t.current = t.current.filter(function(C) {
862
+ return C !== b;
863
+ });
864
+ }, 1);
865
+ }, []), u = c.useCallback(function(p) {
866
+ n.current = Ke(p), r.current = void 0;
867
+ }, []), l = c.useCallback(function(p) {
868
+ f(p.type, nn(p), p.target, s(p, e.lockRef.current));
869
+ }, []), m = c.useCallback(function(p) {
870
+ f(p.type, Ke(p), p.target, s(p, e.lockRef.current));
871
+ }, []);
872
+ c.useEffect(function() {
873
+ return he.push(i), e.setCallbacks({
874
+ onScrollCapture: l,
875
+ onWheelCapture: l,
876
+ onTouchMoveCapture: m
877
+ }), document.addEventListener("wheel", d, me), document.addEventListener("touchmove", d, me), document.addEventListener("touchstart", u, me), function() {
878
+ he = he.filter(function(p) {
879
+ return p !== i;
880
+ }), document.removeEventListener("wheel", d, me), document.removeEventListener("touchmove", d, me), document.removeEventListener("touchstart", u, me);
881
+ };
882
+ }, []);
883
+ var h = e.removeScrollBar, g = e.inert;
884
+ return c.createElement(
885
+ c.Fragment,
886
+ null,
887
+ g ? c.createElement(i, { styles: Si(o) }) : null,
888
+ h ? c.createElement(hi, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
889
+ );
890
+ }
891
+ function Pi(e) {
892
+ for (var t = null; e !== null; )
893
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
894
+ return t;
895
+ }
896
+ const Ai = ni(An, Mi);
897
+ var Tn = c.forwardRef(function(e, t) {
898
+ return c.createElement(nt, q({}, e, { ref: t, sideCar: Ai }));
899
+ });
900
+ Tn.classNames = nt.classNames;
901
+ var Oi = function(e) {
902
+ if (typeof document > "u")
903
+ return null;
904
+ var t = Array.isArray(e) ? e[0] : e;
905
+ return t.ownerDocument.body;
906
+ }, ve = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ve = {}, ht = 0, Nn = function(e) {
907
+ return e && (e.host || Nn(e.parentNode));
908
+ }, Di = function(e, t) {
909
+ return t.map(function(n) {
910
+ if (e.contains(n))
911
+ return n;
912
+ var r = Nn(n);
913
+ return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
914
+ }).filter(function(n) {
915
+ return !!n;
916
+ });
917
+ }, _i = function(e, t, n, r) {
918
+ var o = Di(t, Array.isArray(e) ? e : [e]);
919
+ Ve[n] || (Ve[n] = /* @__PURE__ */ new WeakMap());
920
+ var i = Ve[n], a = [], s = /* @__PURE__ */ new Set(), d = new Set(o), f = function(l) {
921
+ !l || s.has(l) || (s.add(l), f(l.parentNode));
922
+ };
923
+ o.forEach(f);
924
+ var u = function(l) {
925
+ !l || d.has(l) || Array.prototype.forEach.call(l.children, function(m) {
926
+ if (s.has(m))
927
+ u(m);
928
+ else
929
+ try {
930
+ var h = m.getAttribute(r), g = h !== null && h !== "false", p = (ve.get(m) || 0) + 1, v = (i.get(m) || 0) + 1;
931
+ ve.set(m, p), i.set(m, v), a.push(m), p === 1 && g && Ge.set(m, !0), v === 1 && m.setAttribute(n, "true"), g || m.setAttribute(r, "true");
932
+ } catch (y) {
933
+ console.error("aria-hidden: cannot operate on ", m, y);
934
+ }
935
+ });
936
+ };
937
+ return u(t), s.clear(), ht++, function() {
938
+ a.forEach(function(l) {
939
+ var m = ve.get(l) - 1, h = i.get(l) - 1;
940
+ ve.set(l, m), i.set(l, h), m || (Ge.has(l) || l.removeAttribute(r), Ge.delete(l)), h || l.removeAttribute(n);
941
+ }), ht--, ht || (ve = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ve = {});
942
+ };
943
+ }, Ii = function(e, t, n) {
944
+ n === void 0 && (n = "data-aria-hidden");
945
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Oi(e);
946
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), _i(r, o, n, "aria-hidden")) : function() {
947
+ return null;
948
+ };
949
+ };
950
+ const Ti = ["top", "right", "bottom", "left"], se = Math.min, V = Math.max, Ye = Math.round, He = Math.floor, Q = (e) => ({
951
+ x: e,
952
+ y: e
953
+ }), Ni = {
954
+ left: "right",
955
+ right: "left",
956
+ bottom: "top",
957
+ top: "bottom"
958
+ }, Li = {
959
+ start: "end",
960
+ end: "start"
961
+ };
962
+ function Ct(e, t, n) {
963
+ return V(e, se(t, n));
964
+ }
965
+ function re(e, t) {
966
+ return typeof e == "function" ? e(t) : e;
967
+ }
968
+ function oe(e) {
969
+ return e.split("-")[0];
970
+ }
971
+ function Ce(e) {
972
+ return e.split("-")[1];
973
+ }
974
+ function Ot(e) {
975
+ return e === "x" ? "y" : "x";
976
+ }
977
+ function Dt(e) {
978
+ return e === "y" ? "height" : "width";
979
+ }
980
+ const Fi = /* @__PURE__ */ new Set(["top", "bottom"]);
981
+ function Z(e) {
982
+ return Fi.has(oe(e)) ? "y" : "x";
983
+ }
984
+ function _t(e) {
985
+ return Ot(Z(e));
986
+ }
987
+ function ki(e, t, n) {
988
+ n === void 0 && (n = !1);
989
+ const r = Ce(e), o = _t(e), i = Dt(o);
990
+ let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
991
+ return t.reference[i] > t.floating[i] && (a = Xe(a)), [a, Xe(a)];
992
+ }
993
+ function $i(e) {
994
+ const t = Xe(e);
995
+ return [xt(e), t, xt(t)];
996
+ }
997
+ function xt(e) {
998
+ return e.replace(/start|end/g, (t) => Li[t]);
999
+ }
1000
+ const on = ["left", "right"], sn = ["right", "left"], Bi = ["top", "bottom"], Wi = ["bottom", "top"];
1001
+ function Ki(e, t, n) {
1002
+ switch (e) {
1003
+ case "top":
1004
+ case "bottom":
1005
+ return n ? t ? sn : on : t ? on : sn;
1006
+ case "left":
1007
+ case "right":
1008
+ return t ? Bi : Wi;
1009
+ default:
1010
+ return [];
1011
+ }
1012
+ }
1013
+ function Gi(e, t, n, r) {
1014
+ const o = Ce(e);
1015
+ let i = Ki(oe(e), n === "start", r);
1016
+ return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(xt)))), i;
1017
+ }
1018
+ function Xe(e) {
1019
+ return e.replace(/left|right|bottom|top/g, (t) => Ni[t]);
1020
+ }
1021
+ function Vi(e) {
1022
+ return {
1023
+ top: 0,
1024
+ right: 0,
1025
+ bottom: 0,
1026
+ left: 0,
1027
+ ...e
1028
+ };
1029
+ }
1030
+ function Ln(e) {
1031
+ return typeof e != "number" ? Vi(e) : {
1032
+ top: e,
1033
+ right: e,
1034
+ bottom: e,
1035
+ left: e
1036
+ };
1037
+ }
1038
+ function qe(e) {
1039
+ const {
1040
+ x: t,
1041
+ y: n,
1042
+ width: r,
1043
+ height: o
1044
+ } = e;
1045
+ return {
1046
+ width: r,
1047
+ height: o,
1048
+ top: n,
1049
+ left: t,
1050
+ right: t + r,
1051
+ bottom: n + o,
1052
+ x: t,
1053
+ y: n
1054
+ };
1055
+ }
1056
+ function an(e, t, n) {
1057
+ let {
1058
+ reference: r,
1059
+ floating: o
1060
+ } = e;
1061
+ const i = Z(t), a = _t(t), s = Dt(a), d = oe(t), f = i === "y", u = r.x + r.width / 2 - o.width / 2, l = r.y + r.height / 2 - o.height / 2, m = r[s] / 2 - o[s] / 2;
1062
+ let h;
1063
+ switch (d) {
1064
+ case "top":
1065
+ h = {
1066
+ x: u,
1067
+ y: r.y - o.height
1068
+ };
1069
+ break;
1070
+ case "bottom":
1071
+ h = {
1072
+ x: u,
1073
+ y: r.y + r.height
1074
+ };
1075
+ break;
1076
+ case "right":
1077
+ h = {
1078
+ x: r.x + r.width,
1079
+ y: l
1080
+ };
1081
+ break;
1082
+ case "left":
1083
+ h = {
1084
+ x: r.x - o.width,
1085
+ y: l
1086
+ };
1087
+ break;
1088
+ default:
1089
+ h = {
1090
+ x: r.x,
1091
+ y: r.y
1092
+ };
1093
+ }
1094
+ switch (Ce(t)) {
1095
+ case "start":
1096
+ h[a] -= m * (n && f ? -1 : 1);
1097
+ break;
1098
+ case "end":
1099
+ h[a] += m * (n && f ? -1 : 1);
1100
+ break;
1101
+ }
1102
+ return h;
1103
+ }
1104
+ const Hi = async (e, t, n) => {
1105
+ const {
1106
+ placement: r = "bottom",
1107
+ strategy: o = "absolute",
1108
+ middleware: i = [],
1109
+ platform: a
1110
+ } = n, s = i.filter(Boolean), d = await (a.isRTL == null ? void 0 : a.isRTL(t));
1111
+ let f = await a.getElementRects({
1112
+ reference: e,
1113
+ floating: t,
1114
+ strategy: o
1115
+ }), {
1116
+ x: u,
1117
+ y: l
1118
+ } = an(f, r, d), m = r, h = {}, g = 0;
1119
+ for (let p = 0; p < s.length; p++) {
1120
+ const {
1121
+ name: v,
1122
+ fn: y
1123
+ } = s[p], {
1124
+ x,
1125
+ y: b,
1126
+ data: C,
1127
+ reset: E
1128
+ } = await y({
1129
+ x: u,
1130
+ y: l,
1131
+ initialPlacement: r,
1132
+ placement: m,
1133
+ strategy: o,
1134
+ middlewareData: h,
1135
+ rects: f,
1136
+ platform: a,
1137
+ elements: {
1138
+ reference: e,
1139
+ floating: t
1140
+ }
1141
+ });
1142
+ u = x ?? u, l = b ?? l, h = {
1143
+ ...h,
1144
+ [v]: {
1145
+ ...h[v],
1146
+ ...C
1147
+ }
1148
+ }, E && g <= 50 && (g++, typeof E == "object" && (E.placement && (m = E.placement), E.rects && (f = E.rects === !0 ? await a.getElementRects({
1149
+ reference: e,
1150
+ floating: t,
1151
+ strategy: o
1152
+ }) : E.rects), {
1153
+ x: u,
1154
+ y: l
1155
+ } = an(f, m, d)), p = -1);
1156
+ }
1157
+ return {
1158
+ x: u,
1159
+ y: l,
1160
+ placement: m,
1161
+ strategy: o,
1162
+ middlewareData: h
1163
+ };
1164
+ };
1165
+ async function Ae(e, t) {
1166
+ var n;
1167
+ t === void 0 && (t = {});
1168
+ const {
1169
+ x: r,
1170
+ y: o,
1171
+ platform: i,
1172
+ rects: a,
1173
+ elements: s,
1174
+ strategy: d
1175
+ } = e, {
1176
+ boundary: f = "clippingAncestors",
1177
+ rootBoundary: u = "viewport",
1178
+ elementContext: l = "floating",
1179
+ altBoundary: m = !1,
1180
+ padding: h = 0
1181
+ } = re(t, e), g = Ln(h), v = s[m ? l === "floating" ? "reference" : "floating" : l], y = qe(await i.getClippingRect({
1182
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1183
+ boundary: f,
1184
+ rootBoundary: u,
1185
+ strategy: d
1186
+ })), x = l === "floating" ? {
1187
+ x: r,
1188
+ y: o,
1189
+ width: a.floating.width,
1190
+ height: a.floating.height
1191
+ } : a.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), C = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
1192
+ x: 1,
1193
+ y: 1
1194
+ } : {
1195
+ x: 1,
1196
+ y: 1
1197
+ }, E = qe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1198
+ elements: s,
1199
+ rect: x,
1200
+ offsetParent: b,
1201
+ strategy: d
1202
+ }) : x);
1203
+ return {
1204
+ top: (y.top - E.top + g.top) / C.y,
1205
+ bottom: (E.bottom - y.bottom + g.bottom) / C.y,
1206
+ left: (y.left - E.left + g.left) / C.x,
1207
+ right: (E.right - y.right + g.right) / C.x
1208
+ };
1209
+ }
1210
+ const Ui = (e) => ({
1211
+ name: "arrow",
1212
+ options: e,
1213
+ async fn(t) {
1214
+ const {
1215
+ x: n,
1216
+ y: r,
1217
+ placement: o,
1218
+ rects: i,
1219
+ platform: a,
1220
+ elements: s,
1221
+ middlewareData: d
1222
+ } = t, {
1223
+ element: f,
1224
+ padding: u = 0
1225
+ } = re(e, t) || {};
1226
+ if (f == null)
1227
+ return {};
1228
+ const l = Ln(u), m = {
1229
+ x: n,
1230
+ y: r
1231
+ }, h = _t(o), g = Dt(h), p = await a.getDimensions(f), v = h === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = i.reference[g] + i.reference[h] - m[h] - i.floating[g], E = m[h] - i.reference[h], M = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(f));
1232
+ let S = M ? M[b] : 0;
1233
+ (!S || !await (a.isElement == null ? void 0 : a.isElement(M))) && (S = s.floating[b] || i.floating[g]);
1234
+ const P = C / 2 - E / 2, I = S / 2 - p[g] / 2 - 1, D = se(l[y], I), T = se(l[x], I), L = D, F = S - p[g] - T, N = S / 2 - p[g] / 2 + P, B = Ct(L, N, F), _ = !d.arrow && Ce(o) != null && N !== B && i.reference[g] / 2 - (N < L ? D : T) - p[g] / 2 < 0, k = _ ? N < L ? N - L : N - F : 0;
1235
+ return {
1236
+ [h]: m[h] + k,
1237
+ data: {
1238
+ [h]: B,
1239
+ centerOffset: N - B - k,
1240
+ ..._ && {
1241
+ alignmentOffset: k
1242
+ }
1243
+ },
1244
+ reset: _
1245
+ };
1246
+ }
1247
+ }), zi = function(e) {
1248
+ return e === void 0 && (e = {}), {
1249
+ name: "flip",
1250
+ options: e,
1251
+ async fn(t) {
1252
+ var n, r;
1253
+ const {
1254
+ placement: o,
1255
+ middlewareData: i,
1256
+ rects: a,
1257
+ initialPlacement: s,
1258
+ platform: d,
1259
+ elements: f
1260
+ } = t, {
1261
+ mainAxis: u = !0,
1262
+ crossAxis: l = !0,
1263
+ fallbackPlacements: m,
1264
+ fallbackStrategy: h = "bestFit",
1265
+ fallbackAxisSideDirection: g = "none",
1266
+ flipAlignment: p = !0,
1267
+ ...v
1268
+ } = re(e, t);
1269
+ if ((n = i.arrow) != null && n.alignmentOffset)
1270
+ return {};
1271
+ const y = oe(o), x = Z(s), b = oe(s) === s, C = await (d.isRTL == null ? void 0 : d.isRTL(f.floating)), E = m || (b || !p ? [Xe(s)] : $i(s)), M = g !== "none";
1272
+ !m && M && E.push(...Gi(s, p, g, C));
1273
+ const S = [s, ...E], P = await Ae(t, v), I = [];
1274
+ let D = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1275
+ if (u && I.push(P[y]), l) {
1276
+ const N = ki(o, a, C);
1277
+ I.push(P[N[0]], P[N[1]]);
1278
+ }
1279
+ if (D = [...D, {
1280
+ placement: o,
1281
+ overflows: I
1282
+ }], !I.every((N) => N <= 0)) {
1283
+ var T, L;
1284
+ const N = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, B = S[N];
1285
+ if (B && (!(l === "alignment" ? x !== Z(B) : !1) || // We leave the current main axis only if every placement on that axis
1286
+ // overflows the main axis.
1287
+ D.every((A) => Z(A.placement) === x ? A.overflows[0] > 0 : !0)))
1288
+ return {
1289
+ data: {
1290
+ index: N,
1291
+ overflows: D
1292
+ },
1293
+ reset: {
1294
+ placement: B
1295
+ }
1296
+ };
1297
+ let _ = (L = D.filter((k) => k.overflows[0] <= 0).sort((k, A) => k.overflows[1] - A.overflows[1])[0]) == null ? void 0 : L.placement;
1298
+ if (!_)
1299
+ switch (h) {
1300
+ case "bestFit": {
1301
+ var F;
1302
+ const k = (F = D.filter((A) => {
1303
+ if (M) {
1304
+ const R = Z(A.placement);
1305
+ return R === x || // Create a bias to the `y` side axis due to horizontal
1306
+ // reading directions favoring greater width.
1307
+ R === "y";
1308
+ }
1309
+ return !0;
1310
+ }).map((A) => [A.placement, A.overflows.filter((R) => R > 0).reduce((R, W) => R + W, 0)]).sort((A, R) => A[1] - R[1])[0]) == null ? void 0 : F[0];
1311
+ k && (_ = k);
1312
+ break;
1313
+ }
1314
+ case "initialPlacement":
1315
+ _ = s;
1316
+ break;
1317
+ }
1318
+ if (o !== _)
1319
+ return {
1320
+ reset: {
1321
+ placement: _
1322
+ }
1323
+ };
1324
+ }
1325
+ return {};
1326
+ }
1327
+ };
1328
+ };
1329
+ function cn(e, t) {
1330
+ return {
1331
+ top: e.top - t.height,
1332
+ right: e.right - t.width,
1333
+ bottom: e.bottom - t.height,
1334
+ left: e.left - t.width
1335
+ };
1336
+ }
1337
+ function ln(e) {
1338
+ return Ti.some((t) => e[t] >= 0);
1339
+ }
1340
+ const ji = function(e) {
1341
+ return e === void 0 && (e = {}), {
1342
+ name: "hide",
1343
+ options: e,
1344
+ async fn(t) {
1345
+ const {
1346
+ rects: n
1347
+ } = t, {
1348
+ strategy: r = "referenceHidden",
1349
+ ...o
1350
+ } = re(e, t);
1351
+ switch (r) {
1352
+ case "referenceHidden": {
1353
+ const i = await Ae(t, {
1354
+ ...o,
1355
+ elementContext: "reference"
1356
+ }), a = cn(i, n.reference);
1357
+ return {
1358
+ data: {
1359
+ referenceHiddenOffsets: a,
1360
+ referenceHidden: ln(a)
1361
+ }
1362
+ };
1363
+ }
1364
+ case "escaped": {
1365
+ const i = await Ae(t, {
1366
+ ...o,
1367
+ altBoundary: !0
1368
+ }), a = cn(i, n.floating);
1369
+ return {
1370
+ data: {
1371
+ escapedOffsets: a,
1372
+ escaped: ln(a)
1373
+ }
1374
+ };
1375
+ }
1376
+ default:
1377
+ return {};
1378
+ }
1379
+ }
1380
+ };
1381
+ }, Fn = /* @__PURE__ */ new Set(["left", "top"]);
1382
+ async function Yi(e, t) {
1383
+ const {
1384
+ placement: n,
1385
+ platform: r,
1386
+ elements: o
1387
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = oe(n), s = Ce(n), d = Z(n) === "y", f = Fn.has(a) ? -1 : 1, u = i && d ? -1 : 1, l = re(t, e);
1388
+ let {
1389
+ mainAxis: m,
1390
+ crossAxis: h,
1391
+ alignmentAxis: g
1392
+ } = typeof l == "number" ? {
1393
+ mainAxis: l,
1394
+ crossAxis: 0,
1395
+ alignmentAxis: null
1396
+ } : {
1397
+ mainAxis: l.mainAxis || 0,
1398
+ crossAxis: l.crossAxis || 0,
1399
+ alignmentAxis: l.alignmentAxis
1400
+ };
1401
+ return s && typeof g == "number" && (h = s === "end" ? g * -1 : g), d ? {
1402
+ x: h * u,
1403
+ y: m * f
1404
+ } : {
1405
+ x: m * f,
1406
+ y: h * u
1407
+ };
1408
+ }
1409
+ const Xi = function(e) {
1410
+ return e === void 0 && (e = 0), {
1411
+ name: "offset",
1412
+ options: e,
1413
+ async fn(t) {
1414
+ var n, r;
1415
+ const {
1416
+ x: o,
1417
+ y: i,
1418
+ placement: a,
1419
+ middlewareData: s
1420
+ } = t, d = await Yi(t, e);
1421
+ return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
1422
+ x: o + d.x,
1423
+ y: i + d.y,
1424
+ data: {
1425
+ ...d,
1426
+ placement: a
1427
+ }
1428
+ };
1429
+ }
1430
+ };
1431
+ }, qi = function(e) {
1432
+ return e === void 0 && (e = {}), {
1433
+ name: "shift",
1434
+ options: e,
1435
+ async fn(t) {
1436
+ const {
1437
+ x: n,
1438
+ y: r,
1439
+ placement: o
1440
+ } = t, {
1441
+ mainAxis: i = !0,
1442
+ crossAxis: a = !1,
1443
+ limiter: s = {
1444
+ fn: (v) => {
1445
+ let {
1446
+ x: y,
1447
+ y: x
1448
+ } = v;
1449
+ return {
1450
+ x: y,
1451
+ y: x
1452
+ };
1453
+ }
1454
+ },
1455
+ ...d
1456
+ } = re(e, t), f = {
1457
+ x: n,
1458
+ y: r
1459
+ }, u = await Ae(t, d), l = Z(oe(o)), m = Ot(l);
1460
+ let h = f[m], g = f[l];
1461
+ if (i) {
1462
+ const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", x = h + u[v], b = h - u[y];
1463
+ h = Ct(x, h, b);
1464
+ }
1465
+ if (a) {
1466
+ const v = l === "y" ? "top" : "left", y = l === "y" ? "bottom" : "right", x = g + u[v], b = g - u[y];
1467
+ g = Ct(x, g, b);
1468
+ }
1469
+ const p = s.fn({
1470
+ ...t,
1471
+ [m]: h,
1472
+ [l]: g
1473
+ });
1474
+ return {
1475
+ ...p,
1476
+ data: {
1477
+ x: p.x - n,
1478
+ y: p.y - r,
1479
+ enabled: {
1480
+ [m]: i,
1481
+ [l]: a
1482
+ }
1483
+ }
1484
+ };
1485
+ }
1486
+ };
1487
+ }, Zi = function(e) {
1488
+ return e === void 0 && (e = {}), {
1489
+ options: e,
1490
+ fn(t) {
1491
+ const {
1492
+ x: n,
1493
+ y: r,
1494
+ placement: o,
1495
+ rects: i,
1496
+ middlewareData: a
1497
+ } = t, {
1498
+ offset: s = 0,
1499
+ mainAxis: d = !0,
1500
+ crossAxis: f = !0
1501
+ } = re(e, t), u = {
1502
+ x: n,
1503
+ y: r
1504
+ }, l = Z(o), m = Ot(l);
1505
+ let h = u[m], g = u[l];
1506
+ const p = re(s, t), v = typeof p == "number" ? {
1507
+ mainAxis: p,
1508
+ crossAxis: 0
1509
+ } : {
1510
+ mainAxis: 0,
1511
+ crossAxis: 0,
1512
+ ...p
1513
+ };
1514
+ if (d) {
1515
+ const b = m === "y" ? "height" : "width", C = i.reference[m] - i.floating[b] + v.mainAxis, E = i.reference[m] + i.reference[b] - v.mainAxis;
1516
+ h < C ? h = C : h > E && (h = E);
1517
+ }
1518
+ if (f) {
1519
+ var y, x;
1520
+ const b = m === "y" ? "width" : "height", C = Fn.has(oe(o)), E = i.reference[l] - i.floating[b] + (C && ((y = a.offset) == null ? void 0 : y[l]) || 0) + (C ? 0 : v.crossAxis), M = i.reference[l] + i.reference[b] + (C ? 0 : ((x = a.offset) == null ? void 0 : x[l]) || 0) - (C ? v.crossAxis : 0);
1521
+ g < E ? g = E : g > M && (g = M);
1522
+ }
1523
+ return {
1524
+ [m]: h,
1525
+ [l]: g
1526
+ };
1527
+ }
1528
+ };
1529
+ }, Qi = function(e) {
1530
+ return e === void 0 && (e = {}), {
1531
+ name: "size",
1532
+ options: e,
1533
+ async fn(t) {
1534
+ var n, r;
1535
+ const {
1536
+ placement: o,
1537
+ rects: i,
1538
+ platform: a,
1539
+ elements: s
1540
+ } = t, {
1541
+ apply: d = () => {
1542
+ },
1543
+ ...f
1544
+ } = re(e, t), u = await Ae(t, f), l = oe(o), m = Ce(o), h = Z(o) === "y", {
1545
+ width: g,
1546
+ height: p
1547
+ } = i.floating;
1548
+ let v, y;
1549
+ l === "top" || l === "bottom" ? (v = l, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = l, v = m === "end" ? "top" : "bottom");
1550
+ const x = p - u.top - u.bottom, b = g - u.left - u.right, C = se(p - u[v], x), E = se(g - u[y], b), M = !t.middlewareData.shift;
1551
+ let S = C, P = E;
1552
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = b), (r = t.middlewareData.shift) != null && r.enabled.y && (S = x), M && !m) {
1553
+ const D = V(u.left, 0), T = V(u.right, 0), L = V(u.top, 0), F = V(u.bottom, 0);
1554
+ h ? P = g - 2 * (D !== 0 || T !== 0 ? D + T : V(u.left, u.right)) : S = p - 2 * (L !== 0 || F !== 0 ? L + F : V(u.top, u.bottom));
1555
+ }
1556
+ await d({
1557
+ ...t,
1558
+ availableWidth: P,
1559
+ availableHeight: S
1560
+ });
1561
+ const I = await a.getDimensions(s.floating);
1562
+ return g !== I.width || p !== I.height ? {
1563
+ reset: {
1564
+ rects: !0
1565
+ }
1566
+ } : {};
1567
+ }
1568
+ };
1569
+ };
1570
+ function rt() {
1571
+ return typeof window < "u";
1572
+ }
1573
+ function xe(e) {
1574
+ return kn(e) ? (e.nodeName || "").toLowerCase() : "#document";
1575
+ }
1576
+ function H(e) {
1577
+ var t;
1578
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1579
+ }
1580
+ function ne(e) {
1581
+ var t;
1582
+ return (t = (kn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1583
+ }
1584
+ function kn(e) {
1585
+ return rt() ? e instanceof Node || e instanceof H(e).Node : !1;
1586
+ }
1587
+ function j(e) {
1588
+ return rt() ? e instanceof Element || e instanceof H(e).Element : !1;
1589
+ }
1590
+ function ee(e) {
1591
+ return rt() ? e instanceof HTMLElement || e instanceof H(e).HTMLElement : !1;
1592
+ }
1593
+ function un(e) {
1594
+ return !rt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof H(e).ShadowRoot;
1595
+ }
1596
+ const Ji = /* @__PURE__ */ new Set(["inline", "contents"]);
1597
+ function Te(e) {
1598
+ const {
1599
+ overflow: t,
1600
+ overflowX: n,
1601
+ overflowY: r,
1602
+ display: o
1603
+ } = Y(e);
1604
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Ji.has(o);
1605
+ }
1606
+ const es = /* @__PURE__ */ new Set(["table", "td", "th"]);
1607
+ function ts(e) {
1608
+ return es.has(xe(e));
1609
+ }
1610
+ const ns = [":popover-open", ":modal"];
1611
+ function ot(e) {
1612
+ return ns.some((t) => {
1613
+ try {
1614
+ return e.matches(t);
1615
+ } catch {
1616
+ return !1;
1617
+ }
1618
+ });
1619
+ }
1620
+ const rs = ["transform", "translate", "scale", "rotate", "perspective"], os = ["transform", "translate", "scale", "rotate", "perspective", "filter"], is = ["paint", "layout", "strict", "content"];
1621
+ function It(e) {
1622
+ const t = Tt(), n = j(e) ? Y(e) : e;
1623
+ return rs.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || os.some((r) => (n.willChange || "").includes(r)) || is.some((r) => (n.contain || "").includes(r));
1624
+ }
1625
+ function ss(e) {
1626
+ let t = ae(e);
1627
+ for (; ee(t) && !be(t); ) {
1628
+ if (It(t))
1629
+ return t;
1630
+ if (ot(t))
1631
+ return null;
1632
+ t = ae(t);
1633
+ }
1634
+ return null;
1635
+ }
1636
+ function Tt() {
1637
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1638
+ }
1639
+ const as = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1640
+ function be(e) {
1641
+ return as.has(xe(e));
1642
+ }
1643
+ function Y(e) {
1644
+ return H(e).getComputedStyle(e);
1645
+ }
1646
+ function it(e) {
1647
+ return j(e) ? {
1648
+ scrollLeft: e.scrollLeft,
1649
+ scrollTop: e.scrollTop
1650
+ } : {
1651
+ scrollLeft: e.scrollX,
1652
+ scrollTop: e.scrollY
1653
+ };
1654
+ }
1655
+ function ae(e) {
1656
+ if (xe(e) === "html")
1657
+ return e;
1658
+ const t = (
1659
+ // Step into the shadow DOM of the parent of a slotted node.
1660
+ e.assignedSlot || // DOM Element detected.
1661
+ e.parentNode || // ShadowRoot detected.
1662
+ un(e) && e.host || // Fallback.
1663
+ ne(e)
1664
+ );
1665
+ return un(t) ? t.host : t;
1666
+ }
1667
+ function $n(e) {
1668
+ const t = ae(e);
1669
+ return be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ee(t) && Te(t) ? t : $n(t);
1670
+ }
1671
+ function Oe(e, t, n) {
1672
+ var r;
1673
+ t === void 0 && (t = []), n === void 0 && (n = !0);
1674
+ const o = $n(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = H(o);
1675
+ if (i) {
1676
+ const s = Et(a);
1677
+ return t.concat(a, a.visualViewport || [], Te(o) ? o : [], s && n ? Oe(s) : []);
1678
+ }
1679
+ return t.concat(o, Oe(o, [], n));
1680
+ }
1681
+ function Et(e) {
1682
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1683
+ }
1684
+ function Bn(e) {
1685
+ const t = Y(e);
1686
+ let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1687
+ const o = ee(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = Ye(n) !== i || Ye(r) !== a;
1688
+ return s && (n = i, r = a), {
1689
+ width: n,
1690
+ height: r,
1691
+ $: s
1692
+ };
1693
+ }
1694
+ function Nt(e) {
1695
+ return j(e) ? e : e.contextElement;
1696
+ }
1697
+ function we(e) {
1698
+ const t = Nt(e);
1699
+ if (!ee(t))
1700
+ return Q(1);
1701
+ const n = t.getBoundingClientRect(), {
1702
+ width: r,
1703
+ height: o,
1704
+ $: i
1705
+ } = Bn(t);
1706
+ let a = (i ? Ye(n.width) : n.width) / r, s = (i ? Ye(n.height) : n.height) / o;
1707
+ return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1708
+ x: a,
1709
+ y: s
1710
+ };
1711
+ }
1712
+ const cs = /* @__PURE__ */ Q(0);
1713
+ function Wn(e) {
1714
+ const t = H(e);
1715
+ return !Tt() || !t.visualViewport ? cs : {
1716
+ x: t.visualViewport.offsetLeft,
1717
+ y: t.visualViewport.offsetTop
1718
+ };
1719
+ }
1720
+ function ls(e, t, n) {
1721
+ return t === void 0 && (t = !1), !n || t && n !== H(e) ? !1 : t;
1722
+ }
1723
+ function de(e, t, n, r) {
1724
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
1725
+ const o = e.getBoundingClientRect(), i = Nt(e);
1726
+ let a = Q(1);
1727
+ t && (r ? j(r) && (a = we(r)) : a = we(e));
1728
+ const s = ls(i, n, r) ? Wn(i) : Q(0);
1729
+ let d = (o.left + s.x) / a.x, f = (o.top + s.y) / a.y, u = o.width / a.x, l = o.height / a.y;
1730
+ if (i) {
1731
+ const m = H(i), h = r && j(r) ? H(r) : r;
1732
+ let g = m, p = Et(g);
1733
+ for (; p && r && h !== g; ) {
1734
+ const v = we(p), y = p.getBoundingClientRect(), x = Y(p), b = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, C = y.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
1735
+ d *= v.x, f *= v.y, u *= v.x, l *= v.y, d += b, f += C, g = H(p), p = Et(g);
1736
+ }
1737
+ }
1738
+ return qe({
1739
+ width: u,
1740
+ height: l,
1741
+ x: d,
1742
+ y: f
1743
+ });
1744
+ }
1745
+ function st(e, t) {
1746
+ const n = it(e).scrollLeft;
1747
+ return t ? t.left + n : de(ne(e)).left + n;
1748
+ }
1749
+ function Kn(e, t) {
1750
+ const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - st(e, n), o = n.top + t.scrollTop;
1751
+ return {
1752
+ x: r,
1753
+ y: o
1754
+ };
1755
+ }
1756
+ function us(e) {
1757
+ let {
1758
+ elements: t,
1759
+ rect: n,
1760
+ offsetParent: r,
1761
+ strategy: o
1762
+ } = e;
1763
+ const i = o === "fixed", a = ne(r), s = t ? ot(t.floating) : !1;
1764
+ if (r === a || s && i)
1765
+ return n;
1766
+ let d = {
1767
+ scrollLeft: 0,
1768
+ scrollTop: 0
1769
+ }, f = Q(1);
1770
+ const u = Q(0), l = ee(r);
1771
+ if ((l || !l && !i) && ((xe(r) !== "body" || Te(a)) && (d = it(r)), ee(r))) {
1772
+ const h = de(r);
1773
+ f = we(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
1774
+ }
1775
+ const m = a && !l && !i ? Kn(a, d) : Q(0);
1776
+ return {
1777
+ width: n.width * f.x,
1778
+ height: n.height * f.y,
1779
+ x: n.x * f.x - d.scrollLeft * f.x + u.x + m.x,
1780
+ y: n.y * f.y - d.scrollTop * f.y + u.y + m.y
1781
+ };
1782
+ }
1783
+ function fs(e) {
1784
+ return Array.from(e.getClientRects());
1785
+ }
1786
+ function ds(e) {
1787
+ const t = ne(e), n = it(e), r = e.ownerDocument.body, o = V(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = V(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1788
+ let a = -n.scrollLeft + st(e);
1789
+ const s = -n.scrollTop;
1790
+ return Y(r).direction === "rtl" && (a += V(t.clientWidth, r.clientWidth) - o), {
1791
+ width: o,
1792
+ height: i,
1793
+ x: a,
1794
+ y: s
1795
+ };
1796
+ }
1797
+ const fn = 25;
1798
+ function ps(e, t) {
1799
+ const n = H(e), r = ne(e), o = n.visualViewport;
1800
+ let i = r.clientWidth, a = r.clientHeight, s = 0, d = 0;
1801
+ if (o) {
1802
+ i = o.width, a = o.height;
1803
+ const u = Tt();
1804
+ (!u || u && t === "fixed") && (s = o.offsetLeft, d = o.offsetTop);
1805
+ }
1806
+ const f = st(r);
1807
+ if (f <= 0) {
1808
+ const u = r.ownerDocument, l = u.body, m = getComputedStyle(l), h = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(r.clientWidth - l.clientWidth - h);
1809
+ g <= fn && (i -= g);
1810
+ } else f <= fn && (i += f);
1811
+ return {
1812
+ width: i,
1813
+ height: a,
1814
+ x: s,
1815
+ y: d
1816
+ };
1817
+ }
1818
+ const ms = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1819
+ function hs(e, t) {
1820
+ const n = de(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = ee(e) ? we(e) : Q(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, d = o * i.x, f = r * i.y;
1821
+ return {
1822
+ width: a,
1823
+ height: s,
1824
+ x: d,
1825
+ y: f
1826
+ };
1827
+ }
1828
+ function dn(e, t, n) {
1829
+ let r;
1830
+ if (t === "viewport")
1831
+ r = ps(e, n);
1832
+ else if (t === "document")
1833
+ r = ds(ne(e));
1834
+ else if (j(t))
1835
+ r = hs(t, n);
1836
+ else {
1837
+ const o = Wn(e);
1838
+ r = {
1839
+ x: t.x - o.x,
1840
+ y: t.y - o.y,
1841
+ width: t.width,
1842
+ height: t.height
1843
+ };
1844
+ }
1845
+ return qe(r);
1846
+ }
1847
+ function Gn(e, t) {
1848
+ const n = ae(e);
1849
+ return n === t || !j(n) || be(n) ? !1 : Y(n).position === "fixed" || Gn(n, t);
1850
+ }
1851
+ function vs(e, t) {
1852
+ const n = t.get(e);
1853
+ if (n)
1854
+ return n;
1855
+ let r = Oe(e, [], !1).filter((s) => j(s) && xe(s) !== "body"), o = null;
1856
+ const i = Y(e).position === "fixed";
1857
+ let a = i ? ae(e) : e;
1858
+ for (; j(a) && !be(a); ) {
1859
+ const s = Y(a), d = It(a);
1860
+ !d && s.position === "fixed" && (o = null), (i ? !d && !o : !d && s.position === "static" && !!o && ms.has(o.position) || Te(a) && !d && Gn(e, a)) ? r = r.filter((u) => u !== a) : o = s, a = ae(a);
1861
+ }
1862
+ return t.set(e, r), r;
1863
+ }
1864
+ function gs(e) {
1865
+ let {
1866
+ element: t,
1867
+ boundary: n,
1868
+ rootBoundary: r,
1869
+ strategy: o
1870
+ } = e;
1871
+ const a = [...n === "clippingAncestors" ? ot(t) ? [] : vs(t, this._c) : [].concat(n), r], s = a[0], d = a.reduce((f, u) => {
1872
+ const l = dn(t, u, o);
1873
+ return f.top = V(l.top, f.top), f.right = se(l.right, f.right), f.bottom = se(l.bottom, f.bottom), f.left = V(l.left, f.left), f;
1874
+ }, dn(t, s, o));
1875
+ return {
1876
+ width: d.right - d.left,
1877
+ height: d.bottom - d.top,
1878
+ x: d.left,
1879
+ y: d.top
1880
+ };
1881
+ }
1882
+ function ws(e) {
1883
+ const {
1884
+ width: t,
1885
+ height: n
1886
+ } = Bn(e);
1887
+ return {
1888
+ width: t,
1889
+ height: n
1890
+ };
1891
+ }
1892
+ function ys(e, t, n) {
1893
+ const r = ee(t), o = ne(t), i = n === "fixed", a = de(e, !0, i, t);
1894
+ let s = {
1895
+ scrollLeft: 0,
1896
+ scrollTop: 0
1897
+ };
1898
+ const d = Q(0);
1899
+ function f() {
1900
+ d.x = st(o);
1901
+ }
1902
+ if (r || !r && !i)
1903
+ if ((xe(t) !== "body" || Te(o)) && (s = it(t)), r) {
1904
+ const h = de(t, !0, i, t);
1905
+ d.x = h.x + t.clientLeft, d.y = h.y + t.clientTop;
1906
+ } else o && f();
1907
+ i && !r && o && f();
1908
+ const u = o && !r && !i ? Kn(o, s) : Q(0), l = a.left + s.scrollLeft - d.x - u.x, m = a.top + s.scrollTop - d.y - u.y;
1909
+ return {
1910
+ x: l,
1911
+ y: m,
1912
+ width: a.width,
1913
+ height: a.height
1914
+ };
1915
+ }
1916
+ function vt(e) {
1917
+ return Y(e).position === "static";
1918
+ }
1919
+ function pn(e, t) {
1920
+ if (!ee(e) || Y(e).position === "fixed")
1921
+ return null;
1922
+ if (t)
1923
+ return t(e);
1924
+ let n = e.offsetParent;
1925
+ return ne(e) === n && (n = n.ownerDocument.body), n;
1926
+ }
1927
+ function Vn(e, t) {
1928
+ const n = H(e);
1929
+ if (ot(e))
1930
+ return n;
1931
+ if (!ee(e)) {
1932
+ let o = ae(e);
1933
+ for (; o && !be(o); ) {
1934
+ if (j(o) && !vt(o))
1935
+ return o;
1936
+ o = ae(o);
1937
+ }
1938
+ return n;
1939
+ }
1940
+ let r = pn(e, t);
1941
+ for (; r && ts(r) && vt(r); )
1942
+ r = pn(r, t);
1943
+ return r && be(r) && vt(r) && !It(r) ? n : r || ss(e) || n;
1944
+ }
1945
+ const bs = async function(e) {
1946
+ const t = this.getOffsetParent || Vn, n = this.getDimensions, r = await n(e.floating);
1947
+ return {
1948
+ reference: ys(e.reference, await t(e.floating), e.strategy),
1949
+ floating: {
1950
+ x: 0,
1951
+ y: 0,
1952
+ width: r.width,
1953
+ height: r.height
1954
+ }
1955
+ };
1956
+ };
1957
+ function Cs(e) {
1958
+ return Y(e).direction === "rtl";
1959
+ }
1960
+ const xs = {
1961
+ convertOffsetParentRelativeRectToViewportRelativeRect: us,
1962
+ getDocumentElement: ne,
1963
+ getClippingRect: gs,
1964
+ getOffsetParent: Vn,
1965
+ getElementRects: bs,
1966
+ getClientRects: fs,
1967
+ getDimensions: ws,
1968
+ getScale: we,
1969
+ isElement: j,
1970
+ isRTL: Cs
1971
+ };
1972
+ function Hn(e, t) {
1973
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1974
+ }
1975
+ function Es(e, t) {
1976
+ let n = null, r;
1977
+ const o = ne(e);
1978
+ function i() {
1979
+ var s;
1980
+ clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
1981
+ }
1982
+ function a(s, d) {
1983
+ s === void 0 && (s = !1), d === void 0 && (d = 1), i();
1984
+ const f = e.getBoundingClientRect(), {
1985
+ left: u,
1986
+ top: l,
1987
+ width: m,
1988
+ height: h
1989
+ } = f;
1990
+ if (s || t(), !m || !h)
1991
+ return;
1992
+ const g = He(l), p = He(o.clientWidth - (u + m)), v = He(o.clientHeight - (l + h)), y = He(u), b = {
1993
+ rootMargin: -g + "px " + -p + "px " + -v + "px " + -y + "px",
1994
+ threshold: V(0, se(1, d)) || 1
1995
+ };
1996
+ let C = !0;
1997
+ function E(M) {
1998
+ const S = M[0].intersectionRatio;
1999
+ if (S !== d) {
2000
+ if (!C)
2001
+ return a();
2002
+ S ? a(!1, S) : r = setTimeout(() => {
2003
+ a(!1, 1e-7);
2004
+ }, 1e3);
2005
+ }
2006
+ S === 1 && !Hn(f, e.getBoundingClientRect()) && a(), C = !1;
2007
+ }
2008
+ try {
2009
+ n = new IntersectionObserver(E, {
2010
+ ...b,
2011
+ // Handle <iframe>s
2012
+ root: o.ownerDocument
2013
+ });
2014
+ } catch {
2015
+ n = new IntersectionObserver(E, b);
2016
+ }
2017
+ n.observe(e);
2018
+ }
2019
+ return a(!0), i;
2020
+ }
2021
+ function Ss(e, t, n, r) {
2022
+ r === void 0 && (r = {});
2023
+ const {
2024
+ ancestorScroll: o = !0,
2025
+ ancestorResize: i = !0,
2026
+ elementResize: a = typeof ResizeObserver == "function",
2027
+ layoutShift: s = typeof IntersectionObserver == "function",
2028
+ animationFrame: d = !1
2029
+ } = r, f = Nt(e), u = o || i ? [...f ? Oe(f) : [], ...Oe(t)] : [];
2030
+ u.forEach((y) => {
2031
+ o && y.addEventListener("scroll", n, {
2032
+ passive: !0
2033
+ }), i && y.addEventListener("resize", n);
2034
+ });
2035
+ const l = f && s ? Es(f, n) : null;
2036
+ let m = -1, h = null;
2037
+ a && (h = new ResizeObserver((y) => {
2038
+ let [x] = y;
2039
+ x && x.target === f && h && (h.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
2040
+ var b;
2041
+ (b = h) == null || b.observe(t);
2042
+ })), n();
2043
+ }), f && !d && h.observe(f), h.observe(t));
2044
+ let g, p = d ? de(e) : null;
2045
+ d && v();
2046
+ function v() {
2047
+ const y = de(e);
2048
+ p && !Hn(p, y) && n(), p = y, g = requestAnimationFrame(v);
2049
+ }
2050
+ return n(), () => {
2051
+ var y;
2052
+ u.forEach((x) => {
2053
+ o && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
2054
+ }), l?.(), (y = h) == null || y.disconnect(), h = null, d && cancelAnimationFrame(g);
2055
+ };
2056
+ }
2057
+ const Rs = Xi, Ms = qi, Ps = zi, As = Qi, Os = ji, mn = Ui, Ds = Zi, _s = (e, t, n) => {
2058
+ const r = /* @__PURE__ */ new Map(), o = {
2059
+ platform: xs,
2060
+ ...n
2061
+ }, i = {
2062
+ ...o.platform,
2063
+ _c: r
2064
+ };
2065
+ return Hi(e, t, {
2066
+ ...o,
2067
+ platform: i
2068
+ });
2069
+ };
2070
+ var Is = typeof document < "u", Ts = function() {
2071
+ }, je = Is ? mo : Ts;
2072
+ function Ze(e, t) {
2073
+ if (e === t)
2074
+ return !0;
2075
+ if (typeof e != typeof t)
2076
+ return !1;
2077
+ if (typeof e == "function" && e.toString() === t.toString())
2078
+ return !0;
2079
+ let n, r, o;
2080
+ if (e && t && typeof e == "object") {
2081
+ if (Array.isArray(e)) {
2082
+ if (n = e.length, n !== t.length) return !1;
2083
+ for (r = n; r-- !== 0; )
2084
+ if (!Ze(e[r], t[r]))
2085
+ return !1;
2086
+ return !0;
2087
+ }
2088
+ if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
2089
+ return !1;
2090
+ for (r = n; r-- !== 0; )
2091
+ if (!{}.hasOwnProperty.call(t, o[r]))
2092
+ return !1;
2093
+ for (r = n; r-- !== 0; ) {
2094
+ const i = o[r];
2095
+ if (!(i === "_owner" && e.$$typeof) && !Ze(e[i], t[i]))
2096
+ return !1;
2097
+ }
2098
+ return !0;
2099
+ }
2100
+ return e !== e && t !== t;
2101
+ }
2102
+ function Un(e) {
2103
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2104
+ }
2105
+ function hn(e, t) {
2106
+ const n = Un(e);
2107
+ return Math.round(t * n) / n;
2108
+ }
2109
+ function gt(e) {
2110
+ const t = c.useRef(e);
2111
+ return je(() => {
2112
+ t.current = e;
2113
+ }), t;
2114
+ }
2115
+ function Ns(e) {
2116
+ e === void 0 && (e = {});
2117
+ const {
2118
+ placement: t = "bottom",
2119
+ strategy: n = "absolute",
2120
+ middleware: r = [],
2121
+ platform: o,
2122
+ elements: {
2123
+ reference: i,
2124
+ floating: a
2125
+ } = {},
2126
+ transform: s = !0,
2127
+ whileElementsMounted: d,
2128
+ open: f
2129
+ } = e, [u, l] = c.useState({
2130
+ x: 0,
2131
+ y: 0,
2132
+ strategy: n,
2133
+ placement: t,
2134
+ middlewareData: {},
2135
+ isPositioned: !1
2136
+ }), [m, h] = c.useState(r);
2137
+ Ze(m, r) || h(r);
2138
+ const [g, p] = c.useState(null), [v, y] = c.useState(null), x = c.useCallback((A) => {
2139
+ A !== M.current && (M.current = A, p(A));
2140
+ }, []), b = c.useCallback((A) => {
2141
+ A !== S.current && (S.current = A, y(A));
2142
+ }, []), C = i || g, E = a || v, M = c.useRef(null), S = c.useRef(null), P = c.useRef(u), I = d != null, D = gt(d), T = gt(o), L = gt(f), F = c.useCallback(() => {
2143
+ if (!M.current || !S.current)
2144
+ return;
2145
+ const A = {
2146
+ placement: t,
2147
+ strategy: n,
2148
+ middleware: m
2149
+ };
2150
+ T.current && (A.platform = T.current), _s(M.current, S.current, A).then((R) => {
2151
+ const W = {
2152
+ ...R,
2153
+ // The floating element's position may be recomputed while it's closed
2154
+ // but still mounted (such as when transitioning out). To ensure
2155
+ // `isPositioned` will be `false` initially on the next open, avoid
2156
+ // setting it to `true` when `open === false` (must be specified).
2157
+ isPositioned: L.current !== !1
2158
+ };
2159
+ N.current && !Ze(P.current, W) && (P.current = W, vo.flushSync(() => {
2160
+ l(W);
2161
+ }));
2162
+ });
2163
+ }, [m, t, n, T, L]);
2164
+ je(() => {
2165
+ f === !1 && P.current.isPositioned && (P.current.isPositioned = !1, l((A) => ({
2166
+ ...A,
2167
+ isPositioned: !1
2168
+ })));
2169
+ }, [f]);
2170
+ const N = c.useRef(!1);
2171
+ je(() => (N.current = !0, () => {
2172
+ N.current = !1;
2173
+ }), []), je(() => {
2174
+ if (C && (M.current = C), E && (S.current = E), C && E) {
2175
+ if (D.current)
2176
+ return D.current(C, E, F);
2177
+ F();
2178
+ }
2179
+ }, [C, E, F, D, I]);
2180
+ const B = c.useMemo(() => ({
2181
+ reference: M,
2182
+ floating: S,
2183
+ setReference: x,
2184
+ setFloating: b
2185
+ }), [x, b]), _ = c.useMemo(() => ({
2186
+ reference: C,
2187
+ floating: E
2188
+ }), [C, E]), k = c.useMemo(() => {
2189
+ const A = {
2190
+ position: n,
2191
+ left: 0,
2192
+ top: 0
2193
+ };
2194
+ if (!_.floating)
2195
+ return A;
2196
+ const R = hn(_.floating, u.x), W = hn(_.floating, u.y);
2197
+ return s ? {
2198
+ ...A,
2199
+ transform: "translate(" + R + "px, " + W + "px)",
2200
+ ...Un(_.floating) >= 1.5 && {
2201
+ willChange: "transform"
2202
+ }
2203
+ } : {
2204
+ position: n,
2205
+ left: R,
2206
+ top: W
2207
+ };
2208
+ }, [n, s, _.floating, u.x, u.y]);
2209
+ return c.useMemo(() => ({
2210
+ ...u,
2211
+ update: F,
2212
+ refs: B,
2213
+ elements: _,
2214
+ floatingStyles: k
2215
+ }), [u, F, B, _, k]);
2216
+ }
2217
+ const Ls = (e) => {
2218
+ function t(n) {
2219
+ return {}.hasOwnProperty.call(n, "current");
2220
+ }
2221
+ return {
2222
+ name: "arrow",
2223
+ options: e,
2224
+ fn(n) {
2225
+ const {
2226
+ element: r,
2227
+ padding: o
2228
+ } = typeof e == "function" ? e(n) : e;
2229
+ return r && t(r) ? r.current != null ? mn({
2230
+ element: r.current,
2231
+ padding: o
2232
+ }).fn(n) : {} : r ? mn({
2233
+ element: r,
2234
+ padding: o
2235
+ }).fn(n) : {};
2236
+ }
2237
+ };
2238
+ }, Fs = (e, t) => ({
2239
+ ...Rs(e),
2240
+ options: [e, t]
2241
+ }), ks = (e, t) => ({
2242
+ ...Ms(e),
2243
+ options: [e, t]
2244
+ }), $s = (e, t) => ({
2245
+ ...Ds(e),
2246
+ options: [e, t]
2247
+ }), Bs = (e, t) => ({
2248
+ ...Ps(e),
2249
+ options: [e, t]
2250
+ }), Ws = (e, t) => ({
2251
+ ...As(e),
2252
+ options: [e, t]
2253
+ }), Ks = (e, t) => ({
2254
+ ...Os(e),
2255
+ options: [e, t]
2256
+ }), Gs = (e, t) => ({
2257
+ ...Ls(e),
2258
+ options: [e, t]
2259
+ });
2260
+ var Vs = "Arrow", zn = c.forwardRef((e, t) => {
2261
+ const { children: n, width: r = 10, height: o = 5, ...i } = e;
2262
+ return /* @__PURE__ */ w(
2263
+ G.svg,
2264
+ {
2265
+ ...i,
2266
+ ref: t,
2267
+ width: r,
2268
+ height: o,
2269
+ viewBox: "0 0 30 10",
2270
+ preserveAspectRatio: "none",
2271
+ children: e.asChild ? n : /* @__PURE__ */ w("polygon", { points: "0,0 30,0 15,10" })
2272
+ }
2273
+ );
2274
+ });
2275
+ zn.displayName = Vs;
2276
+ var Hs = zn;
2277
+ function Us(e) {
2278
+ const [t, n] = c.useState(void 0);
2279
+ return ye(() => {
2280
+ if (e) {
2281
+ n({ width: e.offsetWidth, height: e.offsetHeight });
2282
+ const r = new ResizeObserver((o) => {
2283
+ if (!Array.isArray(o) || !o.length)
2284
+ return;
2285
+ const i = o[0];
2286
+ let a, s;
2287
+ if ("borderBoxSize" in i) {
2288
+ const d = i.borderBoxSize, f = Array.isArray(d) ? d[0] : d;
2289
+ a = f.inlineSize, s = f.blockSize;
2290
+ } else
2291
+ a = e.offsetWidth, s = e.offsetHeight;
2292
+ n({ width: a, height: s });
2293
+ });
2294
+ return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
2295
+ } else
2296
+ n(void 0);
2297
+ }, [e]), t;
2298
+ }
2299
+ var Lt = "Popper", [jn, Yn] = Ie(Lt), [zs, Xn] = jn(Lt), qn = (e) => {
2300
+ const { __scopePopper: t, children: n } = e, [r, o] = c.useState(null);
2301
+ return /* @__PURE__ */ w(zs, { scope: t, anchor: r, onAnchorChange: o, children: n });
2302
+ };
2303
+ qn.displayName = Lt;
2304
+ var Zn = "PopperAnchor", Qn = c.forwardRef(
2305
+ (e, t) => {
2306
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = Xn(Zn, n), a = c.useRef(null), s = U(t, a), d = c.useRef(null);
2307
+ return c.useEffect(() => {
2308
+ const f = d.current;
2309
+ d.current = r?.current || a.current, f !== d.current && i.onAnchorChange(d.current);
2310
+ }), r ? null : /* @__PURE__ */ w(G.div, { ...o, ref: s });
2311
+ }
2312
+ );
2313
+ Qn.displayName = Zn;
2314
+ var Ft = "PopperContent", [js, Ys] = jn(Ft), Jn = c.forwardRef(
2315
+ (e, t) => {
2316
+ const {
2317
+ __scopePopper: n,
2318
+ side: r = "bottom",
2319
+ sideOffset: o = 0,
2320
+ align: i = "center",
2321
+ alignOffset: a = 0,
2322
+ arrowPadding: s = 0,
2323
+ avoidCollisions: d = !0,
2324
+ collisionBoundary: f = [],
2325
+ collisionPadding: u = 0,
2326
+ sticky: l = "partial",
2327
+ hideWhenDetached: m = !1,
2328
+ updatePositionStrategy: h = "optimized",
2329
+ onPlaced: g,
2330
+ ...p
2331
+ } = e, v = Xn(Ft, n), [y, x] = c.useState(null), b = U(t, ($) => x($)), [C, E] = c.useState(null), M = Us(C), S = M?.width ?? 0, P = M?.height ?? 0, I = r + (i !== "center" ? "-" + i : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, T = Array.isArray(f) ? f : [f], L = T.length > 0, F = {
2332
+ padding: D,
2333
+ boundary: T.filter(qs),
2334
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2335
+ altBoundary: L
2336
+ }, { refs: N, floatingStyles: B, placement: _, isPositioned: k, middlewareData: A } = Ns({
2337
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2338
+ strategy: "fixed",
2339
+ placement: I,
2340
+ whileElementsMounted: (...$) => Ss(...$, {
2341
+ animationFrame: h === "always"
2342
+ }),
2343
+ elements: {
2344
+ reference: v.anchor
2345
+ },
2346
+ middleware: [
2347
+ Fs({ mainAxis: o + P, alignmentAxis: a }),
2348
+ d && ks({
2349
+ mainAxis: !0,
2350
+ crossAxis: !1,
2351
+ limiter: l === "partial" ? $s() : void 0,
2352
+ ...F
2353
+ }),
2354
+ d && Bs({ ...F }),
2355
+ Ws({
2356
+ ...F,
2357
+ apply: ({ elements: $, rects: Re, availableWidth: co, availableHeight: lo }) => {
2358
+ const { width: uo, height: fo } = Re.reference, Be = $.floating.style;
2359
+ Be.setProperty("--radix-popper-available-width", `${co}px`), Be.setProperty("--radix-popper-available-height", `${lo}px`), Be.setProperty("--radix-popper-anchor-width", `${uo}px`), Be.setProperty("--radix-popper-anchor-height", `${fo}px`);
2360
+ }
2361
+ }),
2362
+ C && Gs({ element: C, padding: s }),
2363
+ Zs({ arrowWidth: S, arrowHeight: P }),
2364
+ m && Ks({ strategy: "referenceHidden", ...F })
2365
+ ]
2366
+ }), [R, W] = nr(_), X = J(g);
2367
+ ye(() => {
2368
+ k && X?.();
2369
+ }, [k, X]);
2370
+ const le = A.arrow?.x, Ee = A.arrow?.y, Se = A.arrow?.centerOffset !== 0, [$e, ue] = c.useState();
2371
+ return ye(() => {
2372
+ y && ue(window.getComputedStyle(y).zIndex);
2373
+ }, [y]), /* @__PURE__ */ w(
2374
+ "div",
2375
+ {
2376
+ ref: N.setFloating,
2377
+ "data-radix-popper-content-wrapper": "",
2378
+ style: {
2379
+ ...B,
2380
+ transform: k ? B.transform : "translate(0, -200%)",
2381
+ // keep off the page when measuring
2382
+ minWidth: "max-content",
2383
+ zIndex: $e,
2384
+ "--radix-popper-transform-origin": [
2385
+ A.transformOrigin?.x,
2386
+ A.transformOrigin?.y
2387
+ ].join(" "),
2388
+ // hide the content if using the hide middleware and should be hidden
2389
+ // set visibility to hidden and disable pointer events so the UI behaves
2390
+ // as if the PopperContent isn't there at all
2391
+ ...A.hide?.referenceHidden && {
2392
+ visibility: "hidden",
2393
+ pointerEvents: "none"
2394
+ }
2395
+ },
2396
+ dir: e.dir,
2397
+ children: /* @__PURE__ */ w(
2398
+ js,
2399
+ {
2400
+ scope: n,
2401
+ placedSide: R,
2402
+ onArrowChange: E,
2403
+ arrowX: le,
2404
+ arrowY: Ee,
2405
+ shouldHideArrow: Se,
2406
+ children: /* @__PURE__ */ w(
2407
+ G.div,
2408
+ {
2409
+ "data-side": R,
2410
+ "data-align": W,
2411
+ ...p,
2412
+ ref: b,
2413
+ style: {
2414
+ ...p.style,
2415
+ // if the PopperContent hasn't been placed yet (not all measurements done)
2416
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
2417
+ animation: k ? void 0 : "none"
2418
+ }
2419
+ }
2420
+ )
2421
+ }
2422
+ )
2423
+ }
2424
+ );
2425
+ }
2426
+ );
2427
+ Jn.displayName = Ft;
2428
+ var er = "PopperArrow", Xs = {
2429
+ top: "bottom",
2430
+ right: "left",
2431
+ bottom: "top",
2432
+ left: "right"
2433
+ }, tr = c.forwardRef(function(t, n) {
2434
+ const { __scopePopper: r, ...o } = t, i = Ys(er, r), a = Xs[i.placedSide];
2435
+ return (
2436
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2437
+ // doesn't report size as we'd expect on SVG elements.
2438
+ // it reports their bounding box which is effectively the largest path inside the SVG.
2439
+ /* @__PURE__ */ w(
2440
+ "span",
2441
+ {
2442
+ ref: i.onArrowChange,
2443
+ style: {
2444
+ position: "absolute",
2445
+ left: i.arrowX,
2446
+ top: i.arrowY,
2447
+ [a]: 0,
2448
+ transformOrigin: {
2449
+ top: "",
2450
+ right: "0 0",
2451
+ bottom: "center 0",
2452
+ left: "100% 0"
2453
+ }[i.placedSide],
2454
+ transform: {
2455
+ top: "translateY(100%)",
2456
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
2457
+ bottom: "rotate(180deg)",
2458
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
2459
+ }[i.placedSide],
2460
+ visibility: i.shouldHideArrow ? "hidden" : void 0
2461
+ },
2462
+ children: /* @__PURE__ */ w(
2463
+ Hs,
2464
+ {
2465
+ ...o,
2466
+ ref: n,
2467
+ style: {
2468
+ ...o.style,
2469
+ // ensures the element can be measured correctly (mostly for if SVG)
2470
+ display: "block"
2471
+ }
2472
+ }
2473
+ )
2474
+ }
2475
+ )
2476
+ );
2477
+ });
2478
+ tr.displayName = er;
2479
+ function qs(e) {
2480
+ return e !== null;
2481
+ }
2482
+ var Zs = (e) => ({
2483
+ name: "transformOrigin",
2484
+ options: e,
2485
+ fn(t) {
2486
+ const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, s = a ? 0 : e.arrowWidth, d = a ? 0 : e.arrowHeight, [f, u] = nr(n), l = { start: "0%", center: "50%", end: "100%" }[u], m = (o.arrow?.x ?? 0) + s / 2, h = (o.arrow?.y ?? 0) + d / 2;
2487
+ let g = "", p = "";
2488
+ return f === "bottom" ? (g = a ? l : `${m}px`, p = `${-d}px`) : f === "top" ? (g = a ? l : `${m}px`, p = `${r.floating.height + d}px`) : f === "right" ? (g = `${-d}px`, p = a ? l : `${h}px`) : f === "left" && (g = `${r.floating.width + d}px`, p = a ? l : `${h}px`), { data: { x: g, y: p } };
2489
+ }
2490
+ });
2491
+ function nr(e) {
2492
+ const [t, n = "center"] = e.split("-");
2493
+ return [t, n];
2494
+ }
2495
+ var rr = qn, Qs = Qn, Js = Jn, ea = tr, wt = "rovingFocusGroup.onEntryFocus", ta = { bubbles: !1, cancelable: !0 }, Ne = "RovingFocusGroup", [St, or, na] = yn(Ne), [ra, ir] = Ie(
2496
+ Ne,
2497
+ [na]
2498
+ ), [oa, ia] = ra(Ne), sr = c.forwardRef(
2499
+ (e, t) => /* @__PURE__ */ w(St.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ w(St.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ w(sa, { ...e, ref: t }) }) })
2500
+ );
2501
+ sr.displayName = Ne;
2502
+ var sa = c.forwardRef((e, t) => {
2503
+ const {
2504
+ __scopeRovingFocusGroup: n,
2505
+ orientation: r,
2506
+ loop: o = !1,
2507
+ dir: i,
2508
+ currentTabStopId: a,
2509
+ defaultCurrentTabStopId: s,
2510
+ onCurrentTabStopIdChange: d,
2511
+ onEntryFocus: f,
2512
+ preventScrollOnEntryFocus: u = !1,
2513
+ ...l
2514
+ } = e, m = c.useRef(null), h = U(t, m), g = wn(i), [p, v] = Pt({
2515
+ prop: a,
2516
+ defaultProp: s ?? null,
2517
+ onChange: d,
2518
+ caller: Ne
2519
+ }), [y, x] = c.useState(!1), b = J(f), C = or(n), E = c.useRef(!1), [M, S] = c.useState(0);
2520
+ return c.useEffect(() => {
2521
+ const P = m.current;
2522
+ if (P)
2523
+ return P.addEventListener(wt, b), () => P.removeEventListener(wt, b);
2524
+ }, [b]), /* @__PURE__ */ w(
2525
+ oa,
2526
+ {
2527
+ scope: n,
2528
+ orientation: r,
2529
+ dir: g,
2530
+ loop: o,
2531
+ currentTabStopId: p,
2532
+ onItemFocus: c.useCallback(
2533
+ (P) => v(P),
2534
+ [v]
2535
+ ),
2536
+ onItemShiftTab: c.useCallback(() => x(!0), []),
2537
+ onFocusableItemAdd: c.useCallback(
2538
+ () => S((P) => P + 1),
2539
+ []
2540
+ ),
2541
+ onFocusableItemRemove: c.useCallback(
2542
+ () => S((P) => P - 1),
2543
+ []
2544
+ ),
2545
+ children: /* @__PURE__ */ w(
2546
+ G.div,
2547
+ {
2548
+ tabIndex: y || M === 0 ? -1 : 0,
2549
+ "data-orientation": r,
2550
+ ...l,
2551
+ ref: h,
2552
+ style: { outline: "none", ...e.style },
2553
+ onMouseDown: O(e.onMouseDown, () => {
2554
+ E.current = !0;
2555
+ }),
2556
+ onFocus: O(e.onFocus, (P) => {
2557
+ const I = !E.current;
2558
+ if (P.target === P.currentTarget && I && !y) {
2559
+ const D = new CustomEvent(wt, ta);
2560
+ if (P.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
2561
+ const T = C().filter((_) => _.focusable), L = T.find((_) => _.active), F = T.find((_) => _.id === p), B = [L, F, ...T].filter(
2562
+ Boolean
2563
+ ).map((_) => _.ref.current);
2564
+ lr(B, u);
2565
+ }
2566
+ }
2567
+ E.current = !1;
2568
+ }),
2569
+ onBlur: O(e.onBlur, () => x(!1))
2570
+ }
2571
+ )
2572
+ }
2573
+ );
2574
+ }), ar = "RovingFocusGroupItem", cr = c.forwardRef(
2575
+ (e, t) => {
2576
+ const {
2577
+ __scopeRovingFocusGroup: n,
2578
+ focusable: r = !0,
2579
+ active: o = !1,
2580
+ tabStopId: i,
2581
+ children: a,
2582
+ ...s
2583
+ } = e, d = Pe(), f = i || d, u = ia(ar, n), l = u.currentTabStopId === f, m = or(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: p } = u;
2584
+ return c.useEffect(() => {
2585
+ if (r)
2586
+ return h(), () => g();
2587
+ }, [r, h, g]), /* @__PURE__ */ w(
2588
+ St.ItemSlot,
2589
+ {
2590
+ scope: n,
2591
+ id: f,
2592
+ focusable: r,
2593
+ active: o,
2594
+ children: /* @__PURE__ */ w(
2595
+ G.span,
2596
+ {
2597
+ tabIndex: l ? 0 : -1,
2598
+ "data-orientation": u.orientation,
2599
+ ...s,
2600
+ ref: t,
2601
+ onMouseDown: O(e.onMouseDown, (v) => {
2602
+ r ? u.onItemFocus(f) : v.preventDefault();
2603
+ }),
2604
+ onFocus: O(e.onFocus, () => u.onItemFocus(f)),
2605
+ onKeyDown: O(e.onKeyDown, (v) => {
2606
+ if (v.key === "Tab" && v.shiftKey) {
2607
+ u.onItemShiftTab();
2608
+ return;
2609
+ }
2610
+ if (v.target !== v.currentTarget) return;
2611
+ const y = la(v, u.orientation, u.dir);
2612
+ if (y !== void 0) {
2613
+ if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
2614
+ v.preventDefault();
2615
+ let b = m().filter((C) => C.focusable).map((C) => C.ref.current);
2616
+ if (y === "last") b.reverse();
2617
+ else if (y === "prev" || y === "next") {
2618
+ y === "prev" && b.reverse();
2619
+ const C = b.indexOf(v.currentTarget);
2620
+ b = u.loop ? ua(b, C + 1) : b.slice(C + 1);
2621
+ }
2622
+ setTimeout(() => lr(b));
2623
+ }
2624
+ }),
2625
+ children: typeof a == "function" ? a({ isCurrentTabStop: l, hasTabStop: p != null }) : a
2626
+ }
2627
+ )
2628
+ }
2629
+ );
2630
+ }
2631
+ );
2632
+ cr.displayName = ar;
2633
+ var aa = {
2634
+ ArrowLeft: "prev",
2635
+ ArrowUp: "prev",
2636
+ ArrowRight: "next",
2637
+ ArrowDown: "next",
2638
+ PageUp: "first",
2639
+ Home: "first",
2640
+ PageDown: "last",
2641
+ End: "last"
2642
+ };
2643
+ function ca(e, t) {
2644
+ return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
2645
+ }
2646
+ function la(e, t, n) {
2647
+ const r = ca(e.key, n);
2648
+ if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
2649
+ return aa[r];
2650
+ }
2651
+ function lr(e, t = !1) {
2652
+ const n = document.activeElement;
2653
+ for (const r of e)
2654
+ if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
2655
+ }
2656
+ function ua(e, t) {
2657
+ return e.map((n, r) => e[(t + r) % e.length]);
2658
+ }
2659
+ var fa = sr, da = cr;
2660
+ // @__NO_SIDE_EFFECTS__
2661
+ function pa(e) {
2662
+ const t = /* @__PURE__ */ ma(e), n = c.forwardRef((r, o) => {
2663
+ const { children: i, ...a } = r, s = c.Children.toArray(i), d = s.find(va);
2664
+ if (d) {
2665
+ const f = d.props.children, u = s.map((l) => l === d ? c.Children.count(f) > 1 ? c.Children.only(null) : c.isValidElement(f) ? f.props.children : null : l);
2666
+ return /* @__PURE__ */ w(t, { ...a, ref: o, children: c.isValidElement(f) ? c.cloneElement(f, void 0, u) : null });
2667
+ }
2668
+ return /* @__PURE__ */ w(t, { ...a, ref: o, children: i });
2669
+ });
2670
+ return n.displayName = `${e}.Slot`, n;
2671
+ }
2672
+ // @__NO_SIDE_EFFECTS__
2673
+ function ma(e) {
2674
+ const t = c.forwardRef((n, r) => {
2675
+ const { children: o, ...i } = n;
2676
+ if (c.isValidElement(o)) {
2677
+ const a = wa(o), s = ga(i, o.props);
2678
+ return o.type !== c.Fragment && (s.ref = r ? et(r, a) : a), c.cloneElement(o, s);
2679
+ }
2680
+ return c.Children.count(o) > 1 ? c.Children.only(null) : null;
2681
+ });
2682
+ return t.displayName = `${e}.SlotClone`, t;
2683
+ }
2684
+ var ha = /* @__PURE__ */ Symbol("radix.slottable");
2685
+ function va(e) {
2686
+ return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ha;
2687
+ }
2688
+ function ga(e, t) {
2689
+ const n = { ...t };
2690
+ for (const r in t) {
2691
+ const o = e[r], i = t[r];
2692
+ /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
2693
+ const d = i(...s);
2694
+ return o(...s), d;
2695
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
2696
+ }
2697
+ return { ...e, ...n };
2698
+ }
2699
+ function wa(e) {
2700
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
2701
+ 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);
2702
+ }
2703
+ var Rt = ["Enter", " "], ya = ["ArrowDown", "PageUp", "Home"], ur = ["ArrowUp", "PageDown", "End"], ba = [...ya, ...ur], Ca = {
2704
+ ltr: [...Rt, "ArrowRight"],
2705
+ rtl: [...Rt, "ArrowLeft"]
2706
+ }, xa = {
2707
+ ltr: ["ArrowLeft"],
2708
+ rtl: ["ArrowRight"]
2709
+ }, Le = "Menu", [De, Ea, Sa] = yn(Le), [pe, fr] = Ie(Le, [
2710
+ Sa,
2711
+ Yn,
2712
+ ir
2713
+ ]), Fe = Yn(), dr = ir(), [pr, ce] = pe(Le), [Ra, ke] = pe(Le), mr = (e) => {
2714
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: i, modal: a = !0 } = e, s = Fe(t), [d, f] = c.useState(null), u = c.useRef(!1), l = J(i), m = wn(o);
2715
+ return c.useEffect(() => {
2716
+ const h = () => {
2717
+ u.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
2718
+ }, g = () => u.current = !1;
2719
+ return document.addEventListener("keydown", h, { capture: !0 }), () => {
2720
+ document.removeEventListener("keydown", h, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
2721
+ };
2722
+ }, []), /* @__PURE__ */ w(rr, { ...s, children: /* @__PURE__ */ w(
2723
+ pr,
2724
+ {
2725
+ scope: t,
2726
+ open: n,
2727
+ onOpenChange: l,
2728
+ content: d,
2729
+ onContentChange: f,
2730
+ children: /* @__PURE__ */ w(
2731
+ Ra,
2732
+ {
2733
+ scope: t,
2734
+ onClose: c.useCallback(() => l(!1), [l]),
2735
+ isUsingKeyboardRef: u,
2736
+ dir: m,
2737
+ modal: a,
2738
+ children: r
2739
+ }
2740
+ )
2741
+ }
2742
+ ) });
2743
+ };
2744
+ mr.displayName = Le;
2745
+ var Ma = "MenuAnchor", kt = c.forwardRef(
2746
+ (e, t) => {
2747
+ const { __scopeMenu: n, ...r } = e, o = Fe(n);
2748
+ return /* @__PURE__ */ w(Qs, { ...o, ...r, ref: t });
2749
+ }
2750
+ );
2751
+ kt.displayName = Ma;
2752
+ var $t = "MenuPortal", [Pa, hr] = pe($t, {
2753
+ forceMount: void 0
2754
+ }), vr = (e) => {
2755
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, i = ce($t, t);
2756
+ return /* @__PURE__ */ w(Pa, { scope: t, forceMount: n, children: /* @__PURE__ */ w(tt, { present: n || i.open, children: /* @__PURE__ */ w(Rn, { asChild: !0, container: o, children: r }) }) });
2757
+ };
2758
+ vr.displayName = $t;
2759
+ var z = "MenuContent", [Aa, Bt] = pe(z), gr = c.forwardRef(
2760
+ (e, t) => {
2761
+ const n = hr(z, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, i = ce(z, e.__scopeMenu), a = ke(z, e.__scopeMenu);
2762
+ return /* @__PURE__ */ w(De.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(tt, { present: r || i.open, children: /* @__PURE__ */ w(De.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ w(Oa, { ...o, ref: t }) : /* @__PURE__ */ w(Da, { ...o, ref: t }) }) }) });
2763
+ }
2764
+ ), Oa = c.forwardRef(
2765
+ (e, t) => {
2766
+ const n = ce(z, e.__scopeMenu), r = c.useRef(null), o = U(t, r);
2767
+ return c.useEffect(() => {
2768
+ const i = r.current;
2769
+ if (i) return Ii(i);
2770
+ }, []), /* @__PURE__ */ w(
2771
+ Wt,
2772
+ {
2773
+ ...e,
2774
+ ref: o,
2775
+ trapFocus: n.open,
2776
+ disableOutsidePointerEvents: n.open,
2777
+ disableOutsideScroll: !0,
2778
+ onFocusOutside: O(
2779
+ e.onFocusOutside,
2780
+ (i) => i.preventDefault(),
2781
+ { checkForDefaultPrevented: !1 }
2782
+ ),
2783
+ onDismiss: () => n.onOpenChange(!1)
2784
+ }
2785
+ );
2786
+ }
2787
+ ), Da = c.forwardRef((e, t) => {
2788
+ const n = ce(z, e.__scopeMenu);
2789
+ return /* @__PURE__ */ w(
2790
+ Wt,
2791
+ {
2792
+ ...e,
2793
+ ref: t,
2794
+ trapFocus: !1,
2795
+ disableOutsidePointerEvents: !1,
2796
+ disableOutsideScroll: !1,
2797
+ onDismiss: () => n.onOpenChange(!1)
2798
+ }
2799
+ );
2800
+ }), _a = /* @__PURE__ */ pa("MenuContent.ScrollLock"), Wt = c.forwardRef(
2801
+ (e, t) => {
2802
+ const {
2803
+ __scopeMenu: n,
2804
+ loop: r = !1,
2805
+ trapFocus: o,
2806
+ onOpenAutoFocus: i,
2807
+ onCloseAutoFocus: a,
2808
+ disableOutsidePointerEvents: s,
2809
+ onEntryFocus: d,
2810
+ onEscapeKeyDown: f,
2811
+ onPointerDownOutside: u,
2812
+ onFocusOutside: l,
2813
+ onInteractOutside: m,
2814
+ onDismiss: h,
2815
+ disableOutsideScroll: g,
2816
+ ...p
2817
+ } = e, v = ce(z, n), y = ke(z, n), x = Fe(n), b = dr(n), C = Ea(n), [E, M] = c.useState(null), S = c.useRef(null), P = U(t, S, v.onContentChange), I = c.useRef(0), D = c.useRef(""), T = c.useRef(0), L = c.useRef(null), F = c.useRef("right"), N = c.useRef(0), B = g ? Tn : c.Fragment, _ = g ? { as: _a, allowPinchZoom: !0 } : void 0, k = (R) => {
2818
+ const W = D.current + R, X = C().filter(($) => !$.disabled), le = document.activeElement, Ee = X.find(($) => $.ref.current === le)?.textValue, Se = X.map(($) => $.textValue), $e = Va(Se, W, Ee), ue = X.find(($) => $.textValue === $e)?.ref.current;
2819
+ (function $(Re) {
2820
+ D.current = Re, window.clearTimeout(I.current), Re !== "" && (I.current = window.setTimeout(() => $(""), 1e3));
2821
+ })(W), ue && setTimeout(() => ue.focus());
2822
+ };
2823
+ c.useEffect(() => () => window.clearTimeout(I.current), []), zo();
2824
+ const A = c.useCallback((R) => F.current === L.current?.side && Ua(R, L.current?.area), []);
2825
+ return /* @__PURE__ */ w(
2826
+ Aa,
2827
+ {
2828
+ scope: n,
2829
+ searchRef: D,
2830
+ onItemEnter: c.useCallback(
2831
+ (R) => {
2832
+ A(R) && R.preventDefault();
2833
+ },
2834
+ [A]
2835
+ ),
2836
+ onItemLeave: c.useCallback(
2837
+ (R) => {
2838
+ A(R) || (S.current?.focus(), M(null));
2839
+ },
2840
+ [A]
2841
+ ),
2842
+ onTriggerLeave: c.useCallback(
2843
+ (R) => {
2844
+ A(R) && R.preventDefault();
2845
+ },
2846
+ [A]
2847
+ ),
2848
+ pointerGraceTimerRef: T,
2849
+ onPointerGraceIntentChange: c.useCallback((R) => {
2850
+ L.current = R;
2851
+ }, []),
2852
+ children: /* @__PURE__ */ w(B, { ..._, children: /* @__PURE__ */ w(
2853
+ En,
2854
+ {
2855
+ asChild: !0,
2856
+ trapped: o,
2857
+ onMountAutoFocus: O(i, (R) => {
2858
+ R.preventDefault(), S.current?.focus({ preventScroll: !0 });
2859
+ }),
2860
+ onUnmountAutoFocus: a,
2861
+ children: /* @__PURE__ */ w(
2862
+ At,
2863
+ {
2864
+ asChild: !0,
2865
+ disableOutsidePointerEvents: s,
2866
+ onEscapeKeyDown: f,
2867
+ onPointerDownOutside: u,
2868
+ onFocusOutside: l,
2869
+ onInteractOutside: m,
2870
+ onDismiss: h,
2871
+ children: /* @__PURE__ */ w(
2872
+ fa,
2873
+ {
2874
+ asChild: !0,
2875
+ ...b,
2876
+ dir: y.dir,
2877
+ orientation: "vertical",
2878
+ loop: r,
2879
+ currentTabStopId: E,
2880
+ onCurrentTabStopIdChange: M,
2881
+ onEntryFocus: O(d, (R) => {
2882
+ y.isUsingKeyboardRef.current || R.preventDefault();
2883
+ }),
2884
+ preventScrollOnEntryFocus: !0,
2885
+ children: /* @__PURE__ */ w(
2886
+ Js,
2887
+ {
2888
+ role: "menu",
2889
+ "aria-orientation": "vertical",
2890
+ "data-state": Nr(v.open),
2891
+ "data-radix-menu-content": "",
2892
+ dir: y.dir,
2893
+ ...x,
2894
+ ...p,
2895
+ ref: P,
2896
+ style: { outline: "none", ...p.style },
2897
+ onKeyDown: O(p.onKeyDown, (R) => {
2898
+ const X = R.target.closest("[data-radix-menu-content]") === R.currentTarget, le = R.ctrlKey || R.altKey || R.metaKey, Ee = R.key.length === 1;
2899
+ X && (R.key === "Tab" && R.preventDefault(), !le && Ee && k(R.key));
2900
+ const Se = S.current;
2901
+ if (R.target !== Se || !ba.includes(R.key)) return;
2902
+ R.preventDefault();
2903
+ const ue = C().filter(($) => !$.disabled).map(($) => $.ref.current);
2904
+ ur.includes(R.key) && ue.reverse(), Ka(ue);
2905
+ }),
2906
+ onBlur: O(e.onBlur, (R) => {
2907
+ R.currentTarget.contains(R.target) || (window.clearTimeout(I.current), D.current = "");
2908
+ }),
2909
+ onPointerMove: O(
2910
+ e.onPointerMove,
2911
+ _e((R) => {
2912
+ const W = R.target, X = N.current !== R.clientX;
2913
+ if (R.currentTarget.contains(W) && X) {
2914
+ const le = R.clientX > N.current ? "right" : "left";
2915
+ F.current = le, N.current = R.clientX;
2916
+ }
2917
+ })
2918
+ )
2919
+ }
2920
+ )
2921
+ }
2922
+ )
2923
+ }
2924
+ )
2925
+ }
2926
+ ) })
2927
+ }
2928
+ );
2929
+ }
2930
+ );
2931
+ gr.displayName = z;
2932
+ var Ia = "MenuGroup", Kt = c.forwardRef(
2933
+ (e, t) => {
2934
+ const { __scopeMenu: n, ...r } = e;
2935
+ return /* @__PURE__ */ w(G.div, { role: "group", ...r, ref: t });
2936
+ }
2937
+ );
2938
+ Kt.displayName = Ia;
2939
+ var Ta = "MenuLabel", wr = c.forwardRef(
2940
+ (e, t) => {
2941
+ const { __scopeMenu: n, ...r } = e;
2942
+ return /* @__PURE__ */ w(G.div, { ...r, ref: t });
2943
+ }
2944
+ );
2945
+ wr.displayName = Ta;
2946
+ var Qe = "MenuItem", vn = "menu.itemSelect", at = c.forwardRef(
2947
+ (e, t) => {
2948
+ const { disabled: n = !1, onSelect: r, ...o } = e, i = c.useRef(null), a = ke(Qe, e.__scopeMenu), s = Bt(Qe, e.__scopeMenu), d = U(t, i), f = c.useRef(!1), u = () => {
2949
+ const l = i.current;
2950
+ if (!n && l) {
2951
+ const m = new CustomEvent(vn, { bubbles: !0, cancelable: !0 });
2952
+ l.addEventListener(vn, (h) => r?.(h), { once: !0 }), gn(l, m), m.defaultPrevented ? f.current = !1 : a.onClose();
2953
+ }
2954
+ };
2955
+ return /* @__PURE__ */ w(
2956
+ yr,
2957
+ {
2958
+ ...o,
2959
+ ref: d,
2960
+ disabled: n,
2961
+ onClick: O(e.onClick, u),
2962
+ onPointerDown: (l) => {
2963
+ e.onPointerDown?.(l), f.current = !0;
2964
+ },
2965
+ onPointerUp: O(e.onPointerUp, (l) => {
2966
+ f.current || l.currentTarget?.click();
2967
+ }),
2968
+ onKeyDown: O(e.onKeyDown, (l) => {
2969
+ const m = s.searchRef.current !== "";
2970
+ n || m && l.key === " " || Rt.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
2971
+ })
2972
+ }
2973
+ );
2974
+ }
2975
+ );
2976
+ at.displayName = Qe;
2977
+ var yr = c.forwardRef(
2978
+ (e, t) => {
2979
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...i } = e, a = Bt(Qe, n), s = dr(n), d = c.useRef(null), f = U(t, d), [u, l] = c.useState(!1), [m, h] = c.useState("");
2980
+ return c.useEffect(() => {
2981
+ const g = d.current;
2982
+ g && h((g.textContent ?? "").trim());
2983
+ }, [i.children]), /* @__PURE__ */ w(
2984
+ De.ItemSlot,
2985
+ {
2986
+ scope: n,
2987
+ disabled: r,
2988
+ textValue: o ?? m,
2989
+ children: /* @__PURE__ */ w(da, { asChild: !0, ...s, focusable: !r, children: /* @__PURE__ */ w(
2990
+ G.div,
2991
+ {
2992
+ role: "menuitem",
2993
+ "data-highlighted": u ? "" : void 0,
2994
+ "aria-disabled": r || void 0,
2995
+ "data-disabled": r ? "" : void 0,
2996
+ ...i,
2997
+ ref: f,
2998
+ onPointerMove: O(
2999
+ e.onPointerMove,
3000
+ _e((g) => {
3001
+ r ? a.onItemLeave(g) : (a.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
3002
+ })
3003
+ ),
3004
+ onPointerLeave: O(
3005
+ e.onPointerLeave,
3006
+ _e((g) => a.onItemLeave(g))
3007
+ ),
3008
+ onFocus: O(e.onFocus, () => l(!0)),
3009
+ onBlur: O(e.onBlur, () => l(!1))
3010
+ }
3011
+ ) })
3012
+ }
3013
+ );
3014
+ }
3015
+ ), Na = "MenuCheckboxItem", br = c.forwardRef(
3016
+ (e, t) => {
3017
+ const { checked: n = !1, onCheckedChange: r, ...o } = e;
3018
+ return /* @__PURE__ */ w(Rr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ w(
3019
+ at,
3020
+ {
3021
+ role: "menuitemcheckbox",
3022
+ "aria-checked": Je(n) ? "mixed" : n,
3023
+ ...o,
3024
+ ref: t,
3025
+ "data-state": Ht(n),
3026
+ onSelect: O(
3027
+ o.onSelect,
3028
+ () => r?.(Je(n) ? !0 : !n),
3029
+ { checkForDefaultPrevented: !1 }
3030
+ )
3031
+ }
3032
+ ) });
3033
+ }
3034
+ );
3035
+ br.displayName = Na;
3036
+ var Cr = "MenuRadioGroup", [La, Fa] = pe(
3037
+ Cr,
3038
+ { value: void 0, onValueChange: () => {
3039
+ } }
3040
+ ), xr = c.forwardRef(
3041
+ (e, t) => {
3042
+ const { value: n, onValueChange: r, ...o } = e, i = J(r);
3043
+ return /* @__PURE__ */ w(La, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ w(Kt, { ...o, ref: t }) });
3044
+ }
3045
+ );
3046
+ xr.displayName = Cr;
3047
+ var Er = "MenuRadioItem", Sr = c.forwardRef(
3048
+ (e, t) => {
3049
+ const { value: n, ...r } = e, o = Fa(Er, e.__scopeMenu), i = n === o.value;
3050
+ return /* @__PURE__ */ w(Rr, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ w(
3051
+ at,
3052
+ {
3053
+ role: "menuitemradio",
3054
+ "aria-checked": i,
3055
+ ...r,
3056
+ ref: t,
3057
+ "data-state": Ht(i),
3058
+ onSelect: O(
3059
+ r.onSelect,
3060
+ () => o.onValueChange?.(n),
3061
+ { checkForDefaultPrevented: !1 }
3062
+ )
3063
+ }
3064
+ ) });
3065
+ }
3066
+ );
3067
+ Sr.displayName = Er;
3068
+ var Gt = "MenuItemIndicator", [Rr, ka] = pe(
3069
+ Gt,
3070
+ { checked: !1 }
3071
+ ), Mr = c.forwardRef(
3072
+ (e, t) => {
3073
+ const { __scopeMenu: n, forceMount: r, ...o } = e, i = ka(Gt, n);
3074
+ return /* @__PURE__ */ w(
3075
+ tt,
3076
+ {
3077
+ present: r || Je(i.checked) || i.checked === !0,
3078
+ children: /* @__PURE__ */ w(
3079
+ G.span,
3080
+ {
3081
+ ...o,
3082
+ ref: t,
3083
+ "data-state": Ht(i.checked)
3084
+ }
3085
+ )
3086
+ }
3087
+ );
3088
+ }
3089
+ );
3090
+ Mr.displayName = Gt;
3091
+ var $a = "MenuSeparator", Pr = c.forwardRef(
3092
+ (e, t) => {
3093
+ const { __scopeMenu: n, ...r } = e;
3094
+ return /* @__PURE__ */ w(
3095
+ G.div,
3096
+ {
3097
+ role: "separator",
3098
+ "aria-orientation": "horizontal",
3099
+ ...r,
3100
+ ref: t
3101
+ }
3102
+ );
3103
+ }
3104
+ );
3105
+ Pr.displayName = $a;
3106
+ var Ba = "MenuArrow", Ar = c.forwardRef(
3107
+ (e, t) => {
3108
+ const { __scopeMenu: n, ...r } = e, o = Fe(n);
3109
+ return /* @__PURE__ */ w(ea, { ...o, ...r, ref: t });
3110
+ }
3111
+ );
3112
+ Ar.displayName = Ba;
3113
+ var Vt = "MenuSub", [Wa, Or] = pe(Vt), Dr = (e) => {
3114
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, i = ce(Vt, t), a = Fe(t), [s, d] = c.useState(null), [f, u] = c.useState(null), l = J(o);
3115
+ return c.useEffect(() => (i.open === !1 && l(!1), () => l(!1)), [i.open, l]), /* @__PURE__ */ w(rr, { ...a, children: /* @__PURE__ */ w(
3116
+ pr,
3117
+ {
3118
+ scope: t,
3119
+ open: r,
3120
+ onOpenChange: l,
3121
+ content: f,
3122
+ onContentChange: u,
3123
+ children: /* @__PURE__ */ w(
3124
+ Wa,
3125
+ {
3126
+ scope: t,
3127
+ contentId: Pe(),
3128
+ triggerId: Pe(),
3129
+ trigger: s,
3130
+ onTriggerChange: d,
3131
+ children: n
3132
+ }
3133
+ )
3134
+ }
3135
+ ) });
3136
+ };
3137
+ Dr.displayName = Vt;
3138
+ var Me = "MenuSubTrigger", _r = c.forwardRef(
3139
+ (e, t) => {
3140
+ const n = ce(Me, e.__scopeMenu), r = ke(Me, e.__scopeMenu), o = Or(Me, e.__scopeMenu), i = Bt(Me, e.__scopeMenu), a = c.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: d } = i, f = { __scopeMenu: e.__scopeMenu }, u = c.useCallback(() => {
3141
+ a.current && window.clearTimeout(a.current), a.current = null;
3142
+ }, []);
3143
+ return c.useEffect(() => u, [u]), c.useEffect(() => {
3144
+ const l = s.current;
3145
+ return () => {
3146
+ window.clearTimeout(l), d(null);
3147
+ };
3148
+ }, [s, d]), /* @__PURE__ */ w(kt, { asChild: !0, ...f, children: /* @__PURE__ */ w(
3149
+ yr,
3150
+ {
3151
+ id: o.triggerId,
3152
+ "aria-haspopup": "menu",
3153
+ "aria-expanded": n.open,
3154
+ "aria-controls": o.contentId,
3155
+ "data-state": Nr(n.open),
3156
+ ...e,
3157
+ ref: et(t, o.onTriggerChange),
3158
+ onClick: (l) => {
3159
+ e.onClick?.(l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
3160
+ },
3161
+ onPointerMove: O(
3162
+ e.onPointerMove,
3163
+ _e((l) => {
3164
+ i.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !a.current && (i.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
3165
+ n.onOpenChange(!0), u();
3166
+ }, 100));
3167
+ })
3168
+ ),
3169
+ onPointerLeave: O(
3170
+ e.onPointerLeave,
3171
+ _e((l) => {
3172
+ u();
3173
+ const m = n.content?.getBoundingClientRect();
3174
+ if (m) {
3175
+ const h = n.content?.dataset.side, g = h === "right", p = g ? -5 : 5, v = m[g ? "left" : "right"], y = m[g ? "right" : "left"];
3176
+ i.onPointerGraceIntentChange({
3177
+ area: [
3178
+ // Apply a bleed on clientX to ensure that our exit point is
3179
+ // consistently within polygon bounds
3180
+ { x: l.clientX + p, y: l.clientY },
3181
+ { x: v, y: m.top },
3182
+ { x: y, y: m.top },
3183
+ { x: y, y: m.bottom },
3184
+ { x: v, y: m.bottom }
3185
+ ],
3186
+ side: h
3187
+ }), window.clearTimeout(s.current), s.current = window.setTimeout(
3188
+ () => i.onPointerGraceIntentChange(null),
3189
+ 300
3190
+ );
3191
+ } else {
3192
+ if (i.onTriggerLeave(l), l.defaultPrevented) return;
3193
+ i.onPointerGraceIntentChange(null);
3194
+ }
3195
+ })
3196
+ ),
3197
+ onKeyDown: O(e.onKeyDown, (l) => {
3198
+ const m = i.searchRef.current !== "";
3199
+ e.disabled || m && l.key === " " || Ca[r.dir].includes(l.key) && (n.onOpenChange(!0), n.content?.focus(), l.preventDefault());
3200
+ })
3201
+ }
3202
+ ) });
3203
+ }
3204
+ );
3205
+ _r.displayName = Me;
3206
+ var Ir = "MenuSubContent", Tr = c.forwardRef(
3207
+ (e, t) => {
3208
+ const n = hr(z, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, i = ce(z, e.__scopeMenu), a = ke(z, e.__scopeMenu), s = Or(Ir, e.__scopeMenu), d = c.useRef(null), f = U(t, d);
3209
+ return /* @__PURE__ */ w(De.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(tt, { present: r || i.open, children: /* @__PURE__ */ w(De.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ w(
3210
+ Wt,
3211
+ {
3212
+ id: s.contentId,
3213
+ "aria-labelledby": s.triggerId,
3214
+ ...o,
3215
+ ref: f,
3216
+ align: "start",
3217
+ side: a.dir === "rtl" ? "left" : "right",
3218
+ disableOutsidePointerEvents: !1,
3219
+ disableOutsideScroll: !1,
3220
+ trapFocus: !1,
3221
+ onOpenAutoFocus: (u) => {
3222
+ a.isUsingKeyboardRef.current && d.current?.focus(), u.preventDefault();
3223
+ },
3224
+ onCloseAutoFocus: (u) => u.preventDefault(),
3225
+ onFocusOutside: O(e.onFocusOutside, (u) => {
3226
+ u.target !== s.trigger && i.onOpenChange(!1);
3227
+ }),
3228
+ onEscapeKeyDown: O(e.onEscapeKeyDown, (u) => {
3229
+ a.onClose(), u.preventDefault();
3230
+ }),
3231
+ onKeyDown: O(e.onKeyDown, (u) => {
3232
+ const l = u.currentTarget.contains(u.target), m = xa[a.dir].includes(u.key);
3233
+ l && m && (i.onOpenChange(!1), s.trigger?.focus(), u.preventDefault());
3234
+ })
3235
+ }
3236
+ ) }) }) });
3237
+ }
3238
+ );
3239
+ Tr.displayName = Ir;
3240
+ function Nr(e) {
3241
+ return e ? "open" : "closed";
3242
+ }
3243
+ function Je(e) {
3244
+ return e === "indeterminate";
3245
+ }
3246
+ function Ht(e) {
3247
+ return Je(e) ? "indeterminate" : e ? "checked" : "unchecked";
3248
+ }
3249
+ function Ka(e) {
3250
+ const t = document.activeElement;
3251
+ for (const n of e)
3252
+ if (n === t || (n.focus(), document.activeElement !== t)) return;
3253
+ }
3254
+ function Ga(e, t) {
3255
+ return e.map((n, r) => e[(t + r) % e.length]);
3256
+ }
3257
+ function Va(e, t, n) {
3258
+ const o = t.length > 1 && Array.from(t).every((f) => f === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
3259
+ let a = Ga(e, Math.max(i, 0));
3260
+ o.length === 1 && (a = a.filter((f) => f !== n));
3261
+ const d = a.find(
3262
+ (f) => f.toLowerCase().startsWith(o.toLowerCase())
3263
+ );
3264
+ return d !== n ? d : void 0;
3265
+ }
3266
+ function Ha(e, t) {
3267
+ const { x: n, y: r } = e;
3268
+ let o = !1;
3269
+ for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
3270
+ const s = t[i], d = t[a], f = s.x, u = s.y, l = d.x, m = d.y;
3271
+ u > r != m > r && n < (l - f) * (r - u) / (m - u) + f && (o = !o);
3272
+ }
3273
+ return o;
3274
+ }
3275
+ function Ua(e, t) {
3276
+ if (!t) return !1;
3277
+ const n = { x: e.clientX, y: e.clientY };
3278
+ return Ha(n, t);
3279
+ }
3280
+ function _e(e) {
3281
+ return (t) => t.pointerType === "mouse" ? e(t) : void 0;
3282
+ }
3283
+ var za = mr, ja = kt, Ya = vr, Xa = gr, qa = Kt, Za = wr, Qa = at, Ja = br, ec = xr, tc = Sr, nc = Mr, rc = Pr, oc = Ar, ic = Dr, sc = _r, ac = Tr, ct = "DropdownMenu", [cc] = Ie(
3284
+ ct,
3285
+ [fr]
3286
+ ), K = fr(), [lc, Lr] = cc(ct), Fr = (e) => {
3287
+ const {
3288
+ __scopeDropdownMenu: t,
3289
+ children: n,
3290
+ dir: r,
3291
+ open: o,
3292
+ defaultOpen: i,
3293
+ onOpenChange: a,
3294
+ modal: s = !0
3295
+ } = e, d = K(t), f = c.useRef(null), [u, l] = Pt({
3296
+ prop: o,
3297
+ defaultProp: i ?? !1,
3298
+ onChange: a,
3299
+ caller: ct
3300
+ });
3301
+ return /* @__PURE__ */ w(
3302
+ lc,
3303
+ {
3304
+ scope: t,
3305
+ triggerId: Pe(),
3306
+ triggerRef: f,
3307
+ contentId: Pe(),
3308
+ open: u,
3309
+ onOpenChange: l,
3310
+ onOpenToggle: c.useCallback(() => l((m) => !m), [l]),
3311
+ modal: s,
3312
+ children: /* @__PURE__ */ w(za, { ...d, open: u, onOpenChange: l, dir: r, modal: s, children: n })
3313
+ }
3314
+ );
3315
+ };
3316
+ Fr.displayName = ct;
3317
+ var kr = "DropdownMenuTrigger", $r = c.forwardRef(
3318
+ (e, t) => {
3319
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, i = Lr(kr, n), a = K(n);
3320
+ return /* @__PURE__ */ w(ja, { asChild: !0, ...a, children: /* @__PURE__ */ w(
3321
+ G.button,
3322
+ {
3323
+ type: "button",
3324
+ id: i.triggerId,
3325
+ "aria-haspopup": "menu",
3326
+ "aria-expanded": i.open,
3327
+ "aria-controls": i.open ? i.contentId : void 0,
3328
+ "data-state": i.open ? "open" : "closed",
3329
+ "data-disabled": r ? "" : void 0,
3330
+ disabled: r,
3331
+ ...o,
3332
+ ref: et(t, i.triggerRef),
3333
+ onPointerDown: O(e.onPointerDown, (s) => {
3334
+ !r && s.button === 0 && s.ctrlKey === !1 && (i.onOpenToggle(), i.open || s.preventDefault());
3335
+ }),
3336
+ onKeyDown: O(e.onKeyDown, (s) => {
3337
+ r || (["Enter", " "].includes(s.key) && i.onOpenToggle(), s.key === "ArrowDown" && i.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(s.key) && s.preventDefault());
3338
+ })
3339
+ }
3340
+ ) });
3341
+ }
3342
+ );
3343
+ $r.displayName = kr;
3344
+ var uc = "DropdownMenuPortal", Br = (e) => {
3345
+ const { __scopeDropdownMenu: t, ...n } = e, r = K(t);
3346
+ return /* @__PURE__ */ w(Ya, { ...r, ...n });
3347
+ };
3348
+ Br.displayName = uc;
3349
+ var Wr = "DropdownMenuContent", Kr = c.forwardRef(
3350
+ (e, t) => {
3351
+ const { __scopeDropdownMenu: n, ...r } = e, o = Lr(Wr, n), i = K(n), a = c.useRef(!1);
3352
+ return /* @__PURE__ */ w(
3353
+ Xa,
3354
+ {
3355
+ id: o.contentId,
3356
+ "aria-labelledby": o.triggerId,
3357
+ ...i,
3358
+ ...r,
3359
+ ref: t,
3360
+ onCloseAutoFocus: O(e.onCloseAutoFocus, (s) => {
3361
+ a.current || o.triggerRef.current?.focus(), a.current = !1, s.preventDefault();
3362
+ }),
3363
+ onInteractOutside: O(e.onInteractOutside, (s) => {
3364
+ const d = s.detail.originalEvent, f = d.button === 0 && d.ctrlKey === !0, u = d.button === 2 || f;
3365
+ (!o.modal || u) && (a.current = !0);
3366
+ }),
3367
+ style: {
3368
+ ...e.style,
3369
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
3370
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
3371
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
3372
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
3373
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
3374
+ }
3375
+ }
3376
+ );
3377
+ }
3378
+ );
3379
+ Kr.displayName = Wr;
3380
+ var fc = "DropdownMenuGroup", Gr = c.forwardRef(
3381
+ (e, t) => {
3382
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3383
+ return /* @__PURE__ */ w(qa, { ...o, ...r, ref: t });
3384
+ }
3385
+ );
3386
+ Gr.displayName = fc;
3387
+ var dc = "DropdownMenuLabel", Vr = c.forwardRef(
3388
+ (e, t) => {
3389
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3390
+ return /* @__PURE__ */ w(Za, { ...o, ...r, ref: t });
3391
+ }
3392
+ );
3393
+ Vr.displayName = dc;
3394
+ var pc = "DropdownMenuItem", Hr = c.forwardRef(
3395
+ (e, t) => {
3396
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3397
+ return /* @__PURE__ */ w(Qa, { ...o, ...r, ref: t });
3398
+ }
3399
+ );
3400
+ Hr.displayName = pc;
3401
+ var mc = "DropdownMenuCheckboxItem", Ur = c.forwardRef((e, t) => {
3402
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3403
+ return /* @__PURE__ */ w(Ja, { ...o, ...r, ref: t });
3404
+ });
3405
+ Ur.displayName = mc;
3406
+ var hc = "DropdownMenuRadioGroup", zr = c.forwardRef((e, t) => {
3407
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3408
+ return /* @__PURE__ */ w(ec, { ...o, ...r, ref: t });
3409
+ });
3410
+ zr.displayName = hc;
3411
+ var vc = "DropdownMenuRadioItem", jr = c.forwardRef((e, t) => {
3412
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3413
+ return /* @__PURE__ */ w(tc, { ...o, ...r, ref: t });
3414
+ });
3415
+ jr.displayName = vc;
3416
+ var gc = "DropdownMenuItemIndicator", Yr = c.forwardRef((e, t) => {
3417
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3418
+ return /* @__PURE__ */ w(nc, { ...o, ...r, ref: t });
3419
+ });
3420
+ Yr.displayName = gc;
3421
+ var wc = "DropdownMenuSeparator", Xr = c.forwardRef((e, t) => {
3422
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3423
+ return /* @__PURE__ */ w(rc, { ...o, ...r, ref: t });
3424
+ });
3425
+ Xr.displayName = wc;
3426
+ var yc = "DropdownMenuArrow", bc = c.forwardRef(
3427
+ (e, t) => {
3428
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3429
+ return /* @__PURE__ */ w(oc, { ...o, ...r, ref: t });
3430
+ }
3431
+ );
3432
+ bc.displayName = yc;
3433
+ var Cc = (e) => {
3434
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: i } = e, a = K(t), [s, d] = Pt({
3435
+ prop: r,
3436
+ defaultProp: i ?? !1,
3437
+ onChange: o,
3438
+ caller: "DropdownMenuSub"
3439
+ });
3440
+ return /* @__PURE__ */ w(ic, { ...a, open: s, onOpenChange: d, children: n });
3441
+ }, xc = "DropdownMenuSubTrigger", qr = c.forwardRef((e, t) => {
3442
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3443
+ return /* @__PURE__ */ w(sc, { ...o, ...r, ref: t });
3444
+ });
3445
+ qr.displayName = xc;
3446
+ var Ec = "DropdownMenuSubContent", Zr = c.forwardRef((e, t) => {
3447
+ const { __scopeDropdownMenu: n, ...r } = e, o = K(n);
3448
+ return /* @__PURE__ */ w(
3449
+ ac,
3450
+ {
3451
+ ...o,
3452
+ ...r,
3453
+ ref: t,
3454
+ style: {
3455
+ ...e.style,
3456
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
3457
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
3458
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
3459
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
3460
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
3461
+ }
3462
+ }
3463
+ );
3464
+ });
3465
+ Zr.displayName = Ec;
3466
+ var Sc = Fr, Rc = $r, Qr = Br, Jr = Kr, Mc = Gr, eo = Vr, to = Hr, no = Ur, Pc = zr, ro = jr, oo = Yr, io = Xr, Ac = Cc, so = qr, ao = Zr;
3467
+ const Yc = Sc, Xc = Rc, qc = Mc, Zc = Qr, Qc = Ac, Jc = Pc, Oc = c.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ Mt(
3468
+ so,
3469
+ {
3470
+ ref: o,
3471
+ className: te(
3472
+ "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",
3473
+ t && "pl-8",
3474
+ e
3475
+ ),
3476
+ ...r,
3477
+ children: [
3478
+ n,
3479
+ /* @__PURE__ */ w(yo, { className: "ml-auto h-4 w-4" })
3480
+ ]
3481
+ }
3482
+ ));
3483
+ Oc.displayName = so.displayName;
3484
+ const Dc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
3485
+ ao,
3486
+ {
3487
+ ref: n,
3488
+ className: te(
3489
+ "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",
3490
+ e
3491
+ ),
3492
+ ...t
3493
+ }
3494
+ ));
3495
+ Dc.displayName = ao.displayName;
3496
+ const _c = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ w(Qr, { children: /* @__PURE__ */ w(
3497
+ Jr,
3498
+ {
3499
+ ref: r,
3500
+ sideOffset: t,
3501
+ className: te(
3502
+ "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",
3503
+ e
3504
+ ),
3505
+ ...n
3506
+ }
3507
+ ) }));
3508
+ _c.displayName = Jr.displayName;
3509
+ const Ic = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ w(
3510
+ to,
3511
+ {
3512
+ ref: r,
3513
+ className: te(
3514
+ "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",
3515
+ t && "pl-8",
3516
+ e
3517
+ ),
3518
+ ...n
3519
+ }
3520
+ ));
3521
+ Ic.displayName = to.displayName;
3522
+ const Tc = c.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ Mt(
3523
+ no,
3524
+ {
3525
+ ref: o,
3526
+ className: te(
3527
+ "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",
3528
+ e
3529
+ ),
3530
+ checked: n,
3531
+ ...r,
3532
+ children: [
3533
+ /* @__PURE__ */ w("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ w(oo, { children: /* @__PURE__ */ w(ho, { className: "h-4 w-4" }) }) }),
3534
+ t
3535
+ ]
3536
+ }
3537
+ ));
3538
+ Tc.displayName = no.displayName;
3539
+ const Nc = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ Mt(
3540
+ ro,
3541
+ {
3542
+ ref: r,
3543
+ className: te(
3544
+ "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",
3545
+ e
3546
+ ),
3547
+ ...n,
3548
+ children: [
3549
+ /* @__PURE__ */ w("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ w(oo, { children: /* @__PURE__ */ w(Do, { className: "h-2 w-2 fill-current" }) }) }),
3550
+ t
3551
+ ]
3552
+ }
3553
+ ));
3554
+ Nc.displayName = ro.displayName;
3555
+ const Lc = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ w(
3556
+ eo,
3557
+ {
3558
+ ref: r,
3559
+ className: te("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
3560
+ ...n
3561
+ }
3562
+ ));
3563
+ Lc.displayName = eo.displayName;
3564
+ const Fc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
3565
+ io,
3566
+ {
3567
+ ref: n,
3568
+ className: te("-mx-1 my-1 h-px bg-muted", e),
3569
+ ...t
3570
+ }
3571
+ ));
3572
+ Fc.displayName = io.displayName;
3573
+ const kc = ({ className: e, ...t }) => /* @__PURE__ */ w("span", { className: te("ml-auto text-xs tracking-widest opacity-60", e), ...t });
3574
+ kc.displayName = "DropdownMenuShortcut";
3575
+ const $c = c.forwardRef(
3576
+ ({ className: e, type: t, ...n }, r) => /* @__PURE__ */ w(
3577
+ "input",
3578
+ {
3579
+ type: t,
3580
+ className: te(
3581
+ "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",
3582
+ e
3583
+ ),
3584
+ ref: r,
3585
+ ...n
3586
+ }
3587
+ )
3588
+ );
3589
+ $c.displayName = "Input";
3590
+ export {
3591
+ Qs as A,
3592
+ da as B,
3593
+ Js as C,
3594
+ Yc as D,
3595
+ Do as E,
3596
+ En as F,
3597
+ jc as G,
3598
+ zc as H,
3599
+ $c as I,
3600
+ Rn as P,
3601
+ rr as R,
3602
+ Xc as a,
3603
+ _c as b,
3604
+ Ic as c,
3605
+ Tc as d,
3606
+ Nc as e,
3607
+ Lc as f,
3608
+ Fc as g,
3609
+ kc as h,
3610
+ qc as i,
3611
+ Zc as j,
3612
+ Qc as k,
3613
+ Dc as l,
3614
+ Oc as m,
3615
+ Jc as n,
3616
+ Yn as o,
3617
+ Pe as p,
3618
+ yn as q,
3619
+ Ii as r,
3620
+ zo as s,
3621
+ Tn as t,
3622
+ Pt as u,
3623
+ At as v,
3624
+ ea as w,
3625
+ Us as x,
3626
+ ir as y,
3627
+ fa as z
3628
+ };
3629
+ //# sourceMappingURL=input-D4AoiWxo.js.map