@stackable-labs/embeddables 1.57.0 → 1.57.1

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.
package/dist/react.js CHANGED
@@ -5,7 +5,7 @@ import * as Sn from "react-dom";
5
5
  import ds from "react-dom";
6
6
  const Yl = () => {
7
7
  try {
8
- return "56bdfaeb-11c6-46ad-aa01-a99fedca2493";
8
+ return "d146bb68-688a-44e7-aa94-f295dcb56cd2";
9
9
  } catch {
10
10
  return "dev";
11
11
  }
@@ -526,39 +526,34 @@ const ec = (e) => {
526
526
  fallback: r = null,
527
527
  render: s
528
528
  }) => {
529
- const { extensions: a, components: i, ready: l } = nc(), [d, u] = le({}), c = We(""), m = fn(
530
- () => a.filter((v) => v.enabled && v.manifest.targets.includes(e)),
531
- // eslint-disable-next-line react-hooks/exhaustive-deps
532
- [a.map((v) => v.id).join(","), e]
533
- ), g = fn(
534
- () => rc(i, { surfaceId: e, logPrefix: "[ExtensionSlot]" }),
535
- [e, i]
536
- );
529
+ const { extensions: a, components: i, ready: l } = nc(), [d, u] = le({}), c = We(""), m = fn(() => a.filter((v) => v.enabled && v.manifest.targets.includes(e)), [a.map((v) => v.id).join(","), e]), g = fn(() => rc(i, { surfaceId: e, logPrefix: "[ExtensionSlot]" }), [e, i]);
537
530
  if (ce(() => {
538
531
  const v = m.map((w) => w.id).join(",");
539
- if (c.current !== v && (c.current = v, u({})), !l || m.length === 0) return;
532
+ if (c.current !== v && (c.current = v, u({})), !l || m.length === 0)
533
+ return;
540
534
  const y = (w) => {
541
535
  const x = w.data;
542
536
  if (!(!x || typeof x != "object" || !m.some((N) => {
543
- const k = Ct(N.id);
544
- return k && w.source === k.iframe.contentWindow;
537
+ const R = Ct(N.id);
538
+ return R && w.source === R.iframe.contentWindow;
545
539
  }))) {
546
540
  if (x.type === "surface-update" && x.surfaceId === e) {
547
541
  const N = m.find((E) => {
548
- const R = Ct(E.id);
549
- return R && w.source === R.iframe.contentWindow;
542
+ const k = Ct(E.id);
543
+ return k && w.source === k.iframe.contentWindow;
550
544
  });
551
- if (!N) return;
552
- const k = g(x.tree, w.source ?? null);
545
+ if (!N)
546
+ return;
547
+ const R = g(x.tree, w.source ?? null);
553
548
  u((E) => ({
554
549
  ...E,
555
- [N.id]: k
550
+ [N.id]: R
556
551
  }));
557
552
  }
558
553
  x.type === "surface-ready" && x.surfaceId === e && t && m.forEach((N) => {
559
554
  var E;
560
- const k = Ct(N.id);
561
- (E = k == null ? void 0 : k.iframe.contentWindow) == null || E.postMessage(
555
+ const R = Ct(N.id);
556
+ (E = R == null ? void 0 : R.iframe.contentWindow) == null || E.postMessage(
562
557
  { type: "context-update", surfaceId: e, context: t },
563
558
  "*"
564
559
  );
@@ -588,14 +583,14 @@ const ec = (e) => {
588
583
  }) : /* @__PURE__ */ p(_.Fragment, { children: v.children }, v.id), C = /* @__PURE__ */ p(_.Fragment, { children: x }, `extension:${v.id}`);
589
584
  if (y === 0 || !o)
590
585
  return [C];
591
- const N = w[y - 1], k = typeof o == "function" ? o({
586
+ const N = w[y - 1], R = typeof o == "function" ? o({
592
587
  index: y,
593
588
  total: w.length,
594
589
  previousExtensionId: N.id,
595
590
  extensionId: v.id
596
591
  }) : o;
597
592
  return [
598
- /* @__PURE__ */ p(_.Fragment, { children: k }, `separator:${N.id}:${v.id}:${y}`),
593
+ /* @__PURE__ */ p(_.Fragment, { children: R }, `separator:${N.id}:${v.id}:${y}`),
599
594
  C
600
595
  ];
601
596
  }) : r;
@@ -889,19 +884,19 @@ function Ac(e) {
889
884
  }
890
885
  const _c = (e) => {
891
886
  var t, n, o, r, s, a, i, l, d;
892
- const { invert: u, toast: c, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: N, closeButton: k, style: E, cancelButtonStyle: R, actionButtonStyle: M, className: z = "", descriptionClassName: B = "", duration: U, position: j, gap: K, expandByDefault: I, classNames: S, icons: T, closeButtonAriaLabel: A = "Close toast" } = e, [O, P] = _.useState(null), [Q, ie] = _.useState(null), [G, Z] = _.useState(!1), [Y, X] = _.useState(!1), [F, H] = _.useState(!1), [J, se] = _.useState(!1), [oe, te] = _.useState(!1), [ue, fe] = _.useState(0), [st, qe] = _.useState(0), Ne = _.useRef(c.duration || U || hr), Yt = _.useRef(null), be = _.useRef(null), Ol = y === 0, Ll = y + 1 <= h, xe = c.type, gt = c.dismissible !== !1, Dl = c.className || "", zl = c.descriptionClassName || "", qt = _.useMemo(() => v.findIndex((ee) => ee.toastId === c.id) || 0, [
887
+ const { invert: u, toast: c, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: N, closeButton: R, style: E, cancelButtonStyle: k, actionButtonStyle: O, className: L = "", descriptionClassName: B = "", duration: j, position: U, gap: K, expandByDefault: I, classNames: S, icons: T, closeButtonAriaLabel: A = "Close toast" } = e, [M, P] = _.useState(null), [Q, ie] = _.useState(null), [G, Z] = _.useState(!1), [Y, X] = _.useState(!1), [F, H] = _.useState(!1), [J, se] = _.useState(!1), [oe, te] = _.useState(!1), [ue, fe] = _.useState(0), [st, qe] = _.useState(0), Ne = _.useRef(c.duration || j || hr), Yt = _.useRef(null), be = _.useRef(null), Ol = y === 0, Ll = y + 1 <= h, xe = c.type, gt = c.dismissible !== !1, Dl = c.className || "", zl = c.descriptionClassName || "", qt = _.useMemo(() => v.findIndex((ee) => ee.toastId === c.id) || 0, [
893
888
  v,
894
889
  c.id
895
890
  ]), $l = _.useMemo(() => {
896
891
  var ee;
897
- return (ee = c.closeButton) != null ? ee : k;
892
+ return (ee = c.closeButton) != null ? ee : R;
898
893
  }, [
899
894
  c.closeButton,
900
- k
901
- ]), ir = _.useMemo(() => c.duration || U || hr, [
895
+ R
896
+ ]), ir = _.useMemo(() => c.duration || j || hr, [
902
897
  c.duration,
903
- U
904
- ]), Gn = _.useRef(0), vt = _.useRef(0), lr = _.useRef(0), bt = _.useRef(null), [Fl, Bl] = j.split("-"), cr = _.useMemo(() => v.reduce((ee, me, ge) => ge >= qt ? ee : ee + me.height, 0), [
898
+ j
899
+ ]), Gn = _.useRef(0), vt = _.useRef(0), lr = _.useRef(0), bt = _.useRef(null), [Fl, Bl] = U.split("-"), cr = _.useMemo(() => v.reduce((ee, me, ge) => ge >= qt ? ee : ee + me.height, 0), [
905
900
  v,
906
901
  qt
907
902
  ]), dr = gc(), Hl = c.invert || u, Yn = xe === "loading";
@@ -1012,7 +1007,7 @@ const _c = (e) => {
1012
1007
  return /* @__PURE__ */ _.createElement("li", {
1013
1008
  tabIndex: 0,
1014
1009
  ref: be,
1015
- className: Le(z, Dl, S == null ? void 0 : S.toast, c == null || (t = c.classNames) == null ? void 0 : t.toast, S == null ? void 0 : S.default, S == null ? void 0 : S[xe], c == null || (n = c.classNames) == null ? void 0 : n[xe]),
1010
+ className: Le(L, Dl, S == null ? void 0 : S.toast, c == null || (t = c.classNames) == null ? void 0 : t.toast, S == null ? void 0 : S.default, S == null ? void 0 : S[xe], c == null || (n = c.classNames) == null ? void 0 : n[xe]),
1016
1011
  "data-sonner-toast": "",
1017
1012
  "data-rich-colors": (ur = c.richColors) != null ? ur : N,
1018
1013
  "data-styled": !(c.jsx || c.unstyled || m),
@@ -1055,9 +1050,9 @@ const _c = (e) => {
1055
1050
  var ee, me, ge;
1056
1051
  if (J || !gt) return;
1057
1052
  bt.current = null;
1058
- const Se = Number(((ee = be.current) == null ? void 0 : ee.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Kt = Number(((me = be.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = Yt.current) == null ? void 0 : ge.getTime()), Ee = O === "x" ? Se : Kt, Xt = Math.abs(Ee) / he;
1053
+ const Se = Number(((ee = be.current) == null ? void 0 : ee.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Kt = Number(((me = be.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = Yt.current) == null ? void 0 : ge.getTime()), Ee = M === "x" ? Se : Kt, Xt = Math.abs(Ee) / he;
1059
1054
  if (Math.abs(Ee) >= Tc || Xt > 0.11) {
1060
- fe(vt.current), c.onDismiss == null || c.onDismiss.call(c, c), ie(O === "x" ? Se > 0 ? "right" : "left" : Kt > 0 ? "down" : "up"), Ke(), se(!0);
1055
+ fe(vt.current), c.onDismiss == null || c.onDismiss.call(c, c), ie(M === "x" ? Se > 0 ? "right" : "left" : Kt > 0 ? "down" : "up"), Ke(), se(!0);
1061
1056
  return;
1062
1057
  } else {
1063
1058
  var Te, Pe;
@@ -1070,14 +1065,14 @@ const _c = (e) => {
1070
1065
  if (!bt.current || !gt || ((me = window.getSelection()) == null ? void 0 : me.toString().length) > 0) return;
1071
1066
  const he = ee.clientY - bt.current.y, Ee = ee.clientX - bt.current.x;
1072
1067
  var Xt;
1073
- const Te = (Xt = e.swipeDirections) != null ? Xt : Ac(j);
1074
- !O && (Math.abs(Ee) > 1 || Math.abs(he) > 1) && P(Math.abs(Ee) > Math.abs(he) ? "x" : "y");
1068
+ const Te = (Xt = e.swipeDirections) != null ? Xt : Ac(U);
1069
+ !M && (Math.abs(Ee) > 1 || Math.abs(he) > 1) && P(Math.abs(Ee) > Math.abs(he) ? "x" : "y");
1075
1070
  let Pe = {
1076
1071
  x: 0,
1077
1072
  y: 0
1078
1073
  };
1079
1074
  const pr = (at) => 1 / (1.5 + Math.abs(at) / 20);
1080
- if (O === "y") {
1075
+ if (M === "y") {
1081
1076
  if (Te.includes("top") || Te.includes("bottom"))
1082
1077
  if (Te.includes("top") && he < 0 || Te.includes("bottom") && he > 0)
1083
1078
  Pe.y = he;
@@ -1085,7 +1080,7 @@ const _c = (e) => {
1085
1080
  const at = he * pr(he);
1086
1081
  Pe.y = Math.abs(at) < Math.abs(he) ? at : he;
1087
1082
  }
1088
- } else if (O === "x" && (Te.includes("left") || Te.includes("right")))
1083
+ } else if (M === "x" && (Te.includes("left") || Te.includes("right")))
1089
1084
  if (Te.includes("left") && Ee < 0 || Te.includes("right") && Ee > 0)
1090
1085
  Pe.x = Ee;
1091
1086
  else {
@@ -1118,7 +1113,7 @@ const _c = (e) => {
1118
1113
  }, typeof c.description == "function" ? c.description() : c.description) : null), /* @__PURE__ */ _.isValidElement(c.cancel) ? c.cancel : c.cancel && Jt(c.cancel) ? /* @__PURE__ */ _.createElement("button", {
1119
1114
  "data-button": !0,
1120
1115
  "data-cancel": !0,
1121
- style: c.cancelButtonStyle || R,
1116
+ style: c.cancelButtonStyle || k,
1122
1117
  onClick: (ee) => {
1123
1118
  Jt(c.cancel) && gt && (c.cancel.onClick == null || c.cancel.onClick.call(c.cancel, ee), Ke());
1124
1119
  },
@@ -1126,7 +1121,7 @@ const _c = (e) => {
1126
1121
  }, c.cancel.label) : null, /* @__PURE__ */ _.isValidElement(c.action) ? c.action : c.action && Jt(c.action) ? /* @__PURE__ */ _.createElement("button", {
1127
1122
  "data-button": !0,
1128
1123
  "data-action": !0,
1129
- style: c.actionButtonStyle || M,
1124
+ style: c.actionButtonStyle || O,
1130
1125
  onClick: (ee) => {
1131
1126
  Jt(c.action) && (c.action.onClick == null || c.action.onClick.call(c.action, ee), !ee.defaultPrevented && Ke());
1132
1127
  },
@@ -1169,15 +1164,15 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1169
1164
  const { id: o, invert: r, position: s = "bottom-right", hotkey: a = [
1170
1165
  "altKey",
1171
1166
  "KeyT"
1172
- ], expand: i, closeButton: l, className: d, offset: u, mobileOffset: c, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = Cc, toastOptions: y, dir: w = gr(), gap: x = Nc, icons: C, containerAriaLabel: N = "Notifications" } = t, [k, E] = _.useState([]), R = _.useMemo(() => o ? k.filter((G) => G.toasterId === o) : k.filter((G) => !G.toasterId), [
1173
- k,
1167
+ ], expand: i, closeButton: l, className: d, offset: u, mobileOffset: c, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = Cc, toastOptions: y, dir: w = gr(), gap: x = Nc, icons: C, containerAriaLabel: N = "Notifications" } = t, [R, E] = _.useState([]), k = _.useMemo(() => o ? R.filter((G) => G.toasterId === o) : R.filter((G) => !G.toasterId), [
1168
+ R,
1174
1169
  o
1175
- ]), M = _.useMemo(() => Array.from(new Set([
1170
+ ]), O = _.useMemo(() => Array.from(new Set([
1176
1171
  s
1177
- ].concat(R.filter((G) => G.position).map((G) => G.position)))), [
1178
- R,
1172
+ ].concat(k.filter((G) => G.position).map((G) => G.position)))), [
1173
+ k,
1179
1174
  s
1180
- ]), [z, B] = _.useState([]), [U, j] = _.useState(!1), [K, I] = _.useState(!1), [S, T] = _.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = _.useRef(null), O = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = _.useRef(null), Q = _.useRef(!1), ie = _.useCallback((G) => {
1175
+ ]), [L, B] = _.useState([]), [j, U] = _.useState(!1), [K, I] = _.useState(!1), [S, T] = _.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = _.useRef(null), M = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = _.useRef(null), Q = _.useRef(!1), ie = _.useCallback((G) => {
1181
1176
  E((Z) => {
1182
1177
  var Y;
1183
1178
  return (Y = Z.find((X) => X.id === G.id)) != null && Y.delete || ye.dismiss(G.id), Z.filter(({ id: X }) => X !== G.id);
@@ -1212,7 +1207,7 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1212
1207
  });
1213
1208
  });
1214
1209
  }), [
1215
- k
1210
+ R
1216
1211
  ]), _.useEffect(() => {
1217
1212
  if (m !== "system") {
1218
1213
  T(m);
@@ -1236,17 +1231,17 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1236
1231
  }, [
1237
1232
  m
1238
1233
  ]), _.useEffect(() => {
1239
- k.length <= 1 && j(!1);
1234
+ R.length <= 1 && U(!1);
1240
1235
  }, [
1241
- k
1236
+ R
1242
1237
  ]), _.useEffect(() => {
1243
1238
  const G = (Z) => {
1244
1239
  var Y;
1245
1240
  if (a.every((H) => Z[H] || Z.code === H)) {
1246
1241
  var F;
1247
- j(!0), (F = A.current) == null || F.focus();
1242
+ U(!0), (F = A.current) == null || F.focus();
1248
1243
  }
1249
- Z.code === "Escape" && (document.activeElement === A.current || (Y = A.current) != null && Y.contains(document.activeElement)) && j(!1);
1244
+ Z.code === "Escape" && (document.activeElement === A.current || (Y = A.current) != null && Y.contains(document.activeElement)) && U(!1);
1250
1245
  };
1251
1246
  return document.addEventListener("keydown", G), () => document.removeEventListener("keydown", G);
1252
1247
  }, [
@@ -1263,16 +1258,16 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1263
1258
  ]), // Remove item from normal navigation flow, only available via hotkey
1264
1259
  /* @__PURE__ */ _.createElement("section", {
1265
1260
  ref: n,
1266
- "aria-label": `${N} ${O}`,
1261
+ "aria-label": `${N} ${M}`,
1267
1262
  tabIndex: -1,
1268
1263
  "aria-live": "polite",
1269
1264
  "aria-relevant": "additions text",
1270
1265
  "aria-atomic": "false",
1271
1266
  suppressHydrationWarning: !0
1272
- }, M.map((G, Z) => {
1267
+ }, O.map((G, Z) => {
1273
1268
  var Y;
1274
1269
  const [X, F] = G.split("-");
1275
- return R.length ? /* @__PURE__ */ _.createElement("ol", {
1270
+ return k.length ? /* @__PURE__ */ _.createElement("ol", {
1276
1271
  key: G,
1277
1272
  dir: w === "auto" ? gr() : w,
1278
1273
  tabIndex: -1,
@@ -1283,7 +1278,7 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1283
1278
  "data-y-position": X,
1284
1279
  "data-x-position": F,
1285
1280
  style: {
1286
- "--front-toast-height": `${((Y = z[0]) == null ? void 0 : Y.height) || 0}px`,
1281
+ "--front-toast-height": `${((Y = L[0]) == null ? void 0 : Y.height) || 0}px`,
1287
1282
  "--width": `${Rc}px`,
1288
1283
  "--gap": `${x}px`,
1289
1284
  ...h,
@@ -1297,17 +1292,17 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1297
1292
  onFocus: (H) => {
1298
1293
  H.target instanceof HTMLElement && H.target.dataset.dismissible === "false" || Q.current || (Q.current = !0, P.current = H.relatedTarget);
1299
1294
  },
1300
- onMouseEnter: () => j(!0),
1301
- onMouseMove: () => j(!0),
1295
+ onMouseEnter: () => U(!0),
1296
+ onMouseMove: () => U(!0),
1302
1297
  onMouseLeave: () => {
1303
- K || j(!1);
1298
+ K || U(!1);
1304
1299
  },
1305
- onDragEnd: () => j(!1),
1300
+ onDragEnd: () => U(!1),
1306
1301
  onPointerDown: (H) => {
1307
1302
  H.target instanceof HTMLElement && H.target.dataset.dismissible === "false" || I(!0);
1308
1303
  },
1309
1304
  onPointerUp: () => I(!1)
1310
- }, R.filter((H) => !H.position && Z === 0 || H.position === G).map((H, J) => {
1305
+ }, k.filter((H) => !H.position && Z === 0 || H.position === G).map((H, J) => {
1311
1306
  var se, oe;
1312
1307
  return /* @__PURE__ */ _.createElement(_c, {
1313
1308
  key: H.id,
@@ -1330,12 +1325,12 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1330
1325
  actionButtonStyle: y == null ? void 0 : y.actionButtonStyle,
1331
1326
  closeButtonAriaLabel: y == null ? void 0 : y.closeButtonAriaLabel,
1332
1327
  removeToast: ie,
1333
- toasts: R.filter((te) => te.position == H.position),
1334
- heights: z.filter((te) => te.position == H.position),
1328
+ toasts: k.filter((te) => te.position == H.position),
1329
+ heights: L.filter((te) => te.position == H.position),
1335
1330
  setHeights: B,
1336
1331
  expandByDefault: i,
1337
1332
  gap: x,
1338
- expanded: U,
1333
+ expanded: j,
1339
1334
  swipeDirections: t.swipeDirections
1340
1335
  });
1341
1336
  })) : null;
@@ -2165,8 +2160,8 @@ const Wd = (e, t) => {
2165
2160
  continue;
2166
2161
  a.push(C);
2167
2162
  const N = r(y, v);
2168
- for (let k = 0; k < N.length; ++k) {
2169
- const E = N[k];
2163
+ for (let R = 0; R < N.length; ++R) {
2164
+ const E = N[R];
2170
2165
  a.push(x + E);
2171
2166
  }
2172
2167
  l = u + (l.length > 0 ? " " + l : l);
@@ -2205,7 +2200,7 @@ const Wd = (e, t) => {
2205
2200
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2206
2201
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2207
2202
  pu.test(e) && !mu.test(e)
2208
- ), Lo = () => !1, bu = (e) => hu.test(e), yu = (e) => gu.test(e), wu = (e) => !L(e) && !D(e), xu = (e) => nt(e, Ms, Lo), L = (e) => Ts.test(e), it = (e) => nt(e, Os, vu), Cr = (e) => nt(e, Pu, ne), Su = (e) => nt(e, Ds, As), Cu = (e) => nt(e, Ls, Lo), kr = (e) => nt(e, _s, Lo), ku = (e) => nt(e, Is, yu), Qt = (e) => nt(e, zs, bu), D = (e) => Ps.test(e), Ot = (e) => mt(e, Os), Eu = (e) => mt(e, Ls), Er = (e) => mt(e, _s), Ru = (e) => mt(e, Ms), Nu = (e) => mt(e, Is), en = (e) => mt(e, zs, !0), Tu = (e) => mt(e, Ds, !0), nt = (e, t, n) => {
2203
+ ), Lo = () => !1, bu = (e) => hu.test(e), yu = (e) => gu.test(e), wu = (e) => !D(e) && !z(e), xu = (e) => nt(e, Ms, Lo), D = (e) => Ts.test(e), it = (e) => nt(e, Os, vu), Cr = (e) => nt(e, Pu, ne), Su = (e) => nt(e, Ds, As), Cu = (e) => nt(e, Ls, Lo), kr = (e) => nt(e, _s, Lo), ku = (e) => nt(e, Is, yu), Qt = (e) => nt(e, zs, bu), z = (e) => Ps.test(e), Ot = (e) => mt(e, Os), Eu = (e) => mt(e, Ls), Er = (e) => mt(e, _s), Ru = (e) => mt(e, Ms), Nu = (e) => mt(e, Is), en = (e) => mt(e, zs, !0), Tu = (e) => mt(e, Ds, !0), nt = (e, t, n) => {
2209
2204
  const o = Ts.exec(e);
2210
2205
  return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
2211
2206
  }, mt = (e, t, n = !1) => {
@@ -2230,30 +2225,30 @@ const Wd = (e, t) => {
2230
2225
  "bottom-left",
2231
2226
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
2232
2227
  "left-bottom"
2233
- ], N = () => [...C(), D, L], k = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], R = () => [D, L, l], M = () => [Xe, "full", "auto", ...R()], z = () => [Ze, "none", "subgrid", D, L], B = () => ["auto", {
2234
- span: ["full", Ze, D, L]
2235
- }, Ze, D, L], U = () => [Ze, "auto", D, L], j = () => ["auto", "min", "max", "fr", D, L], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...R()], T = () => [Xe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], A = () => [Xe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], O = () => [Xe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], P = () => [e, D, L], Q = () => [...C(), Er, kr, {
2236
- position: [D, L]
2228
+ ], N = () => [...C(), z, D], R = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], k = () => [z, D, l], O = () => [Xe, "full", "auto", ...k()], L = () => [Ze, "none", "subgrid", z, D], B = () => ["auto", {
2229
+ span: ["full", Ze, z, D]
2230
+ }, Ze, z, D], j = () => [Ze, "auto", z, D], U = () => ["auto", "min", "max", "fr", z, D], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...k()], T = () => [Xe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], A = () => [Xe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], M = () => [Xe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], P = () => [e, z, D], Q = () => [...C(), Er, kr, {
2231
+ position: [z, D]
2237
2232
  }], ie = () => ["no-repeat", {
2238
2233
  repeat: ["", "x", "y", "space", "round"]
2239
2234
  }], G = () => ["auto", "cover", "contain", Ru, xu, {
2240
- size: [D, L]
2235
+ size: [z, D]
2241
2236
  }], Z = () => [qn, Ot, it], Y = () => [
2242
2237
  // Deprecated since Tailwind CSS v4.0.0
2243
2238
  "",
2244
2239
  "none",
2245
2240
  "full",
2246
2241
  d,
2247
- D,
2248
- L
2242
+ z,
2243
+ D
2249
2244
  ], X = () => ["", ne, Ot, it], F = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => [ne, qn, Er, kr], se = () => [
2250
2245
  // Deprecated since Tailwind CSS v4.0.0
2251
2246
  "",
2252
2247
  "none",
2253
2248
  b,
2254
- D,
2255
- L
2256
- ], oe = () => ["none", ne, D, L], te = () => ["none", ne, D, L], ue = () => [ne, D, L], fe = () => [Xe, "full", ...R()];
2249
+ z,
2250
+ D
2251
+ ], oe = () => ["none", ne, z, D], te = () => ["none", ne, z, D], ue = () => [ne, z, D], fe = () => [Xe, "full", ...k()];
2257
2252
  return {
2258
2253
  cacheSize: 500,
2259
2254
  theme: {
@@ -2286,7 +2281,7 @@ const Wd = (e, t) => {
2286
2281
  * @see https://tailwindcss.com/docs/aspect-ratio
2287
2282
  */
2288
2283
  aspect: [{
2289
- aspect: ["auto", "square", Xe, L, D, v]
2284
+ aspect: ["auto", "square", Xe, D, z, v]
2290
2285
  }],
2291
2286
  /**
2292
2287
  * Container
@@ -2299,7 +2294,7 @@ const Wd = (e, t) => {
2299
2294
  * @see https://tailwindcss.com/docs/columns
2300
2295
  */
2301
2296
  columns: [{
2302
- columns: [ne, L, D, i]
2297
+ columns: [ne, D, z, i]
2303
2298
  }],
2304
2299
  /**
2305
2300
  * Break After
@@ -2384,21 +2379,21 @@ const Wd = (e, t) => {
2384
2379
  * @see https://tailwindcss.com/docs/overflow
2385
2380
  */
2386
2381
  overflow: [{
2387
- overflow: k()
2382
+ overflow: R()
2388
2383
  }],
2389
2384
  /**
2390
2385
  * Overflow X
2391
2386
  * @see https://tailwindcss.com/docs/overflow
2392
2387
  */
2393
2388
  "overflow-x": [{
2394
- "overflow-x": k()
2389
+ "overflow-x": R()
2395
2390
  }],
2396
2391
  /**
2397
2392
  * Overflow Y
2398
2393
  * @see https://tailwindcss.com/docs/overflow
2399
2394
  */
2400
2395
  "overflow-y": [{
2401
- "overflow-y": k()
2396
+ "overflow-y": R()
2402
2397
  }],
2403
2398
  /**
2404
2399
  * Overscroll Behavior
@@ -2431,21 +2426,21 @@ const Wd = (e, t) => {
2431
2426
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2432
2427
  */
2433
2428
  inset: [{
2434
- inset: M()
2429
+ inset: O()
2435
2430
  }],
2436
2431
  /**
2437
2432
  * Inset Inline
2438
2433
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2439
2434
  */
2440
2435
  "inset-x": [{
2441
- "inset-x": M()
2436
+ "inset-x": O()
2442
2437
  }],
2443
2438
  /**
2444
2439
  * Inset Block
2445
2440
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2446
2441
  */
2447
2442
  "inset-y": [{
2448
- "inset-y": M()
2443
+ "inset-y": O()
2449
2444
  }],
2450
2445
  /**
2451
2446
  * Inset Inline Start
@@ -2453,12 +2448,12 @@ const Wd = (e, t) => {
2453
2448
  * @todo class group will be renamed to `inset-s` in next major release
2454
2449
  */
2455
2450
  start: [{
2456
- "inset-s": M(),
2451
+ "inset-s": O(),
2457
2452
  /**
2458
2453
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
2459
2454
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
2460
2455
  */
2461
- start: M()
2456
+ start: O()
2462
2457
  }],
2463
2458
  /**
2464
2459
  * Inset Inline End
@@ -2466,54 +2461,54 @@ const Wd = (e, t) => {
2466
2461
  * @todo class group will be renamed to `inset-e` in next major release
2467
2462
  */
2468
2463
  end: [{
2469
- "inset-e": M(),
2464
+ "inset-e": O(),
2470
2465
  /**
2471
2466
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
2472
2467
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
2473
2468
  */
2474
- end: M()
2469
+ end: O()
2475
2470
  }],
2476
2471
  /**
2477
2472
  * Inset Block Start
2478
2473
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2479
2474
  */
2480
2475
  "inset-bs": [{
2481
- "inset-bs": M()
2476
+ "inset-bs": O()
2482
2477
  }],
2483
2478
  /**
2484
2479
  * Inset Block End
2485
2480
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2486
2481
  */
2487
2482
  "inset-be": [{
2488
- "inset-be": M()
2483
+ "inset-be": O()
2489
2484
  }],
2490
2485
  /**
2491
2486
  * Top
2492
2487
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2493
2488
  */
2494
2489
  top: [{
2495
- top: M()
2490
+ top: O()
2496
2491
  }],
2497
2492
  /**
2498
2493
  * Right
2499
2494
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2500
2495
  */
2501
2496
  right: [{
2502
- right: M()
2497
+ right: O()
2503
2498
  }],
2504
2499
  /**
2505
2500
  * Bottom
2506
2501
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2507
2502
  */
2508
2503
  bottom: [{
2509
- bottom: M()
2504
+ bottom: O()
2510
2505
  }],
2511
2506
  /**
2512
2507
  * Left
2513
2508
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2514
2509
  */
2515
2510
  left: [{
2516
- left: M()
2511
+ left: O()
2517
2512
  }],
2518
2513
  /**
2519
2514
  * Visibility
@@ -2525,7 +2520,7 @@ const Wd = (e, t) => {
2525
2520
  * @see https://tailwindcss.com/docs/z-index
2526
2521
  */
2527
2522
  z: [{
2528
- z: [Ze, "auto", D, L]
2523
+ z: [Ze, "auto", z, D]
2529
2524
  }],
2530
2525
  // ------------------------
2531
2526
  // --- Flexbox and Grid ---
@@ -2535,7 +2530,7 @@ const Wd = (e, t) => {
2535
2530
  * @see https://tailwindcss.com/docs/flex-basis
2536
2531
  */
2537
2532
  basis: [{
2538
- basis: [Xe, "full", "auto", i, ...R()]
2533
+ basis: [Xe, "full", "auto", i, ...k()]
2539
2534
  }],
2540
2535
  /**
2541
2536
  * Flex Direction
@@ -2556,35 +2551,35 @@ const Wd = (e, t) => {
2556
2551
  * @see https://tailwindcss.com/docs/flex
2557
2552
  */
2558
2553
  flex: [{
2559
- flex: [ne, Xe, "auto", "initial", "none", L]
2554
+ flex: [ne, Xe, "auto", "initial", "none", D]
2560
2555
  }],
2561
2556
  /**
2562
2557
  * Flex Grow
2563
2558
  * @see https://tailwindcss.com/docs/flex-grow
2564
2559
  */
2565
2560
  grow: [{
2566
- grow: ["", ne, D, L]
2561
+ grow: ["", ne, z, D]
2567
2562
  }],
2568
2563
  /**
2569
2564
  * Flex Shrink
2570
2565
  * @see https://tailwindcss.com/docs/flex-shrink
2571
2566
  */
2572
2567
  shrink: [{
2573
- shrink: ["", ne, D, L]
2568
+ shrink: ["", ne, z, D]
2574
2569
  }],
2575
2570
  /**
2576
2571
  * Order
2577
2572
  * @see https://tailwindcss.com/docs/order
2578
2573
  */
2579
2574
  order: [{
2580
- order: [Ze, "first", "last", "none", D, L]
2575
+ order: [Ze, "first", "last", "none", z, D]
2581
2576
  }],
2582
2577
  /**
2583
2578
  * Grid Template Columns
2584
2579
  * @see https://tailwindcss.com/docs/grid-template-columns
2585
2580
  */
2586
2581
  "grid-cols": [{
2587
- "grid-cols": z()
2582
+ "grid-cols": L()
2588
2583
  }],
2589
2584
  /**
2590
2585
  * Grid Column Start / End
@@ -2598,21 +2593,21 @@ const Wd = (e, t) => {
2598
2593
  * @see https://tailwindcss.com/docs/grid-column
2599
2594
  */
2600
2595
  "col-start": [{
2601
- "col-start": U()
2596
+ "col-start": j()
2602
2597
  }],
2603
2598
  /**
2604
2599
  * Grid Column End
2605
2600
  * @see https://tailwindcss.com/docs/grid-column
2606
2601
  */
2607
2602
  "col-end": [{
2608
- "col-end": U()
2603
+ "col-end": j()
2609
2604
  }],
2610
2605
  /**
2611
2606
  * Grid Template Rows
2612
2607
  * @see https://tailwindcss.com/docs/grid-template-rows
2613
2608
  */
2614
2609
  "grid-rows": [{
2615
- "grid-rows": z()
2610
+ "grid-rows": L()
2616
2611
  }],
2617
2612
  /**
2618
2613
  * Grid Row Start / End
@@ -2626,14 +2621,14 @@ const Wd = (e, t) => {
2626
2621
  * @see https://tailwindcss.com/docs/grid-row
2627
2622
  */
2628
2623
  "row-start": [{
2629
- "row-start": U()
2624
+ "row-start": j()
2630
2625
  }],
2631
2626
  /**
2632
2627
  * Grid Row End
2633
2628
  * @see https://tailwindcss.com/docs/grid-row
2634
2629
  */
2635
2630
  "row-end": [{
2636
- "row-end": U()
2631
+ "row-end": j()
2637
2632
  }],
2638
2633
  /**
2639
2634
  * Grid Auto Flow
@@ -2647,35 +2642,35 @@ const Wd = (e, t) => {
2647
2642
  * @see https://tailwindcss.com/docs/grid-auto-columns
2648
2643
  */
2649
2644
  "auto-cols": [{
2650
- "auto-cols": j()
2645
+ "auto-cols": U()
2651
2646
  }],
2652
2647
  /**
2653
2648
  * Grid Auto Rows
2654
2649
  * @see https://tailwindcss.com/docs/grid-auto-rows
2655
2650
  */
2656
2651
  "auto-rows": [{
2657
- "auto-rows": j()
2652
+ "auto-rows": U()
2658
2653
  }],
2659
2654
  /**
2660
2655
  * Gap
2661
2656
  * @see https://tailwindcss.com/docs/gap
2662
2657
  */
2663
2658
  gap: [{
2664
- gap: R()
2659
+ gap: k()
2665
2660
  }],
2666
2661
  /**
2667
2662
  * Gap X
2668
2663
  * @see https://tailwindcss.com/docs/gap
2669
2664
  */
2670
2665
  "gap-x": [{
2671
- "gap-x": R()
2666
+ "gap-x": k()
2672
2667
  }],
2673
2668
  /**
2674
2669
  * Gap Y
2675
2670
  * @see https://tailwindcss.com/docs/gap
2676
2671
  */
2677
2672
  "gap-y": [{
2678
- "gap-y": R()
2673
+ "gap-y": k()
2679
2674
  }],
2680
2675
  /**
2681
2676
  * Justify Content
@@ -2750,77 +2745,77 @@ const Wd = (e, t) => {
2750
2745
  * @see https://tailwindcss.com/docs/padding
2751
2746
  */
2752
2747
  p: [{
2753
- p: R()
2748
+ p: k()
2754
2749
  }],
2755
2750
  /**
2756
2751
  * Padding Inline
2757
2752
  * @see https://tailwindcss.com/docs/padding
2758
2753
  */
2759
2754
  px: [{
2760
- px: R()
2755
+ px: k()
2761
2756
  }],
2762
2757
  /**
2763
2758
  * Padding Block
2764
2759
  * @see https://tailwindcss.com/docs/padding
2765
2760
  */
2766
2761
  py: [{
2767
- py: R()
2762
+ py: k()
2768
2763
  }],
2769
2764
  /**
2770
2765
  * Padding Inline Start
2771
2766
  * @see https://tailwindcss.com/docs/padding
2772
2767
  */
2773
2768
  ps: [{
2774
- ps: R()
2769
+ ps: k()
2775
2770
  }],
2776
2771
  /**
2777
2772
  * Padding Inline End
2778
2773
  * @see https://tailwindcss.com/docs/padding
2779
2774
  */
2780
2775
  pe: [{
2781
- pe: R()
2776
+ pe: k()
2782
2777
  }],
2783
2778
  /**
2784
2779
  * Padding Block Start
2785
2780
  * @see https://tailwindcss.com/docs/padding
2786
2781
  */
2787
2782
  pbs: [{
2788
- pbs: R()
2783
+ pbs: k()
2789
2784
  }],
2790
2785
  /**
2791
2786
  * Padding Block End
2792
2787
  * @see https://tailwindcss.com/docs/padding
2793
2788
  */
2794
2789
  pbe: [{
2795
- pbe: R()
2790
+ pbe: k()
2796
2791
  }],
2797
2792
  /**
2798
2793
  * Padding Top
2799
2794
  * @see https://tailwindcss.com/docs/padding
2800
2795
  */
2801
2796
  pt: [{
2802
- pt: R()
2797
+ pt: k()
2803
2798
  }],
2804
2799
  /**
2805
2800
  * Padding Right
2806
2801
  * @see https://tailwindcss.com/docs/padding
2807
2802
  */
2808
2803
  pr: [{
2809
- pr: R()
2804
+ pr: k()
2810
2805
  }],
2811
2806
  /**
2812
2807
  * Padding Bottom
2813
2808
  * @see https://tailwindcss.com/docs/padding
2814
2809
  */
2815
2810
  pb: [{
2816
- pb: R()
2811
+ pb: k()
2817
2812
  }],
2818
2813
  /**
2819
2814
  * Padding Left
2820
2815
  * @see https://tailwindcss.com/docs/padding
2821
2816
  */
2822
2817
  pl: [{
2823
- pl: R()
2818
+ pl: k()
2824
2819
  }],
2825
2820
  /**
2826
2821
  * Margin
@@ -2904,7 +2899,7 @@ const Wd = (e, t) => {
2904
2899
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2905
2900
  */
2906
2901
  "space-x": [{
2907
- "space-x": R()
2902
+ "space-x": k()
2908
2903
  }],
2909
2904
  /**
2910
2905
  * Space Between X Reverse
@@ -2916,7 +2911,7 @@ const Wd = (e, t) => {
2916
2911
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2917
2912
  */
2918
2913
  "space-y": [{
2919
- "space-y": R()
2914
+ "space-y": k()
2920
2915
  }],
2921
2916
  /**
2922
2917
  * Space Between Y Reverse
@@ -2959,21 +2954,21 @@ const Wd = (e, t) => {
2959
2954
  * @see https://tailwindcss.com/docs/height
2960
2955
  */
2961
2956
  "block-size": [{
2962
- block: ["auto", ...O()]
2957
+ block: ["auto", ...M()]
2963
2958
  }],
2964
2959
  /**
2965
2960
  * Min-Block Size
2966
2961
  * @see https://tailwindcss.com/docs/min-height
2967
2962
  */
2968
2963
  "min-block-size": [{
2969
- "min-block": ["auto", ...O()]
2964
+ "min-block": ["auto", ...M()]
2970
2965
  }],
2971
2966
  /**
2972
2967
  * Max-Block Size
2973
2968
  * @see https://tailwindcss.com/docs/max-height
2974
2969
  */
2975
2970
  "max-block-size": [{
2976
- "max-block": ["none", ...O()]
2971
+ "max-block": ["none", ...M()]
2977
2972
  }],
2978
2973
  /**
2979
2974
  * Width
@@ -3066,7 +3061,7 @@ const Wd = (e, t) => {
3066
3061
  * @see https://tailwindcss.com/docs/font-stretch
3067
3062
  */
3068
3063
  "font-stretch": [{
3069
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", qn, L]
3064
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", qn, D]
3070
3065
  }],
3071
3066
  /**
3072
3067
  * Font Family
@@ -3080,7 +3075,7 @@ const Wd = (e, t) => {
3080
3075
  * @see https://tailwindcss.com/docs/font-feature-settings
3081
3076
  */
3082
3077
  "font-features": [{
3083
- "font-features": [L]
3078
+ "font-features": [D]
3084
3079
  }],
3085
3080
  /**
3086
3081
  * Font Variant Numeric
@@ -3117,14 +3112,14 @@ const Wd = (e, t) => {
3117
3112
  * @see https://tailwindcss.com/docs/letter-spacing
3118
3113
  */
3119
3114
  tracking: [{
3120
- tracking: [r, D, L]
3115
+ tracking: [r, z, D]
3121
3116
  }],
3122
3117
  /**
3123
3118
  * Line Clamp
3124
3119
  * @see https://tailwindcss.com/docs/line-clamp
3125
3120
  */
3126
3121
  "line-clamp": [{
3127
- "line-clamp": [ne, "none", D, Cr]
3122
+ "line-clamp": [ne, "none", z, Cr]
3128
3123
  }],
3129
3124
  /**
3130
3125
  * Line Height
@@ -3134,7 +3129,7 @@ const Wd = (e, t) => {
3134
3129
  leading: [
3135
3130
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
3136
3131
  s,
3137
- ...R()
3132
+ ...k()
3138
3133
  ]
3139
3134
  }],
3140
3135
  /**
@@ -3142,7 +3137,7 @@ const Wd = (e, t) => {
3142
3137
  * @see https://tailwindcss.com/docs/list-style-image
3143
3138
  */
3144
3139
  "list-image": [{
3145
- "list-image": ["none", D, L]
3140
+ "list-image": ["none", z, D]
3146
3141
  }],
3147
3142
  /**
3148
3143
  * List Style Position
@@ -3156,7 +3151,7 @@ const Wd = (e, t) => {
3156
3151
  * @see https://tailwindcss.com/docs/list-style-type
3157
3152
  */
3158
3153
  "list-style-type": [{
3159
- list: ["disc", "decimal", "none", D, L]
3154
+ list: ["disc", "decimal", "none", z, D]
3160
3155
  }],
3161
3156
  /**
3162
3157
  * Text Alignment
@@ -3197,7 +3192,7 @@ const Wd = (e, t) => {
3197
3192
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3198
3193
  */
3199
3194
  "text-decoration-thickness": [{
3200
- decoration: [ne, "from-font", "auto", D, it]
3195
+ decoration: [ne, "from-font", "auto", z, it]
3201
3196
  }],
3202
3197
  /**
3203
3198
  * Text Decoration Color
@@ -3211,7 +3206,7 @@ const Wd = (e, t) => {
3211
3206
  * @see https://tailwindcss.com/docs/text-underline-offset
3212
3207
  */
3213
3208
  "underline-offset": [{
3214
- "underline-offset": [ne, "auto", D, L]
3209
+ "underline-offset": [ne, "auto", z, D]
3215
3210
  }],
3216
3211
  /**
3217
3212
  * Text Transform
@@ -3235,14 +3230,14 @@ const Wd = (e, t) => {
3235
3230
  * @see https://tailwindcss.com/docs/text-indent
3236
3231
  */
3237
3232
  indent: [{
3238
- indent: R()
3233
+ indent: k()
3239
3234
  }],
3240
3235
  /**
3241
3236
  * Vertical Alignment
3242
3237
  * @see https://tailwindcss.com/docs/vertical-align
3243
3238
  */
3244
3239
  "vertical-align": [{
3245
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", D, L]
3240
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", z, D]
3246
3241
  }],
3247
3242
  /**
3248
3243
  * Whitespace
@@ -3277,7 +3272,7 @@ const Wd = (e, t) => {
3277
3272
  * @see https://tailwindcss.com/docs/content
3278
3273
  */
3279
3274
  content: [{
3280
- content: ["none", D, L]
3275
+ content: ["none", z, D]
3281
3276
  }],
3282
3277
  // -------------------
3283
3278
  // --- Backgrounds ---
@@ -3332,9 +3327,9 @@ const Wd = (e, t) => {
3332
3327
  bg: ["none", {
3333
3328
  linear: [{
3334
3329
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3335
- }, Ze, D, L],
3336
- radial: ["", D, L],
3337
- conic: [Ze, D, L]
3330
+ }, Ze, z, D],
3331
+ radial: ["", z, D],
3332
+ conic: [Ze, z, D]
3338
3333
  }, Nu, ku]
3339
3334
  }],
3340
3335
  /**
@@ -3705,7 +3700,7 @@ const Wd = (e, t) => {
3705
3700
  * @see https://tailwindcss.com/docs/outline-offset
3706
3701
  */
3707
3702
  "outline-offset": [{
3708
- "outline-offset": [ne, D, L]
3703
+ "outline-offset": [ne, z, D]
3709
3704
  }],
3710
3705
  /**
3711
3706
  * Outline Width
@@ -3831,7 +3826,7 @@ const Wd = (e, t) => {
3831
3826
  * @see https://tailwindcss.com/docs/opacity
3832
3827
  */
3833
3828
  opacity: [{
3834
- opacity: [ne, D, L]
3829
+ opacity: [ne, z, D]
3835
3830
  }],
3836
3831
  /**
3837
3832
  * Mix Blend Mode
@@ -3953,7 +3948,7 @@ const Wd = (e, t) => {
3953
3948
  "mask-y-to": P()
3954
3949
  }],
3955
3950
  "mask-image-radial": [{
3956
- "mask-radial": [D, L]
3951
+ "mask-radial": [z, D]
3957
3952
  }],
3958
3953
  "mask-image-radial-from-pos": [{
3959
3954
  "mask-radial-from": J()
@@ -4041,7 +4036,7 @@ const Wd = (e, t) => {
4041
4036
  * @see https://tailwindcss.com/docs/mask-image
4042
4037
  */
4043
4038
  "mask-image": [{
4044
- mask: ["none", D, L]
4039
+ mask: ["none", z, D]
4045
4040
  }],
4046
4041
  // ---------------
4047
4042
  // --- Filters ---
@@ -4055,8 +4050,8 @@ const Wd = (e, t) => {
4055
4050
  // Deprecated since Tailwind CSS v3.0.0
4056
4051
  "",
4057
4052
  "none",
4058
- D,
4059
- L
4053
+ z,
4054
+ D
4060
4055
  ]
4061
4056
  }],
4062
4057
  /**
@@ -4071,14 +4066,14 @@ const Wd = (e, t) => {
4071
4066
  * @see https://tailwindcss.com/docs/brightness
4072
4067
  */
4073
4068
  brightness: [{
4074
- brightness: [ne, D, L]
4069
+ brightness: [ne, z, D]
4075
4070
  }],
4076
4071
  /**
4077
4072
  * Contrast
4078
4073
  * @see https://tailwindcss.com/docs/contrast
4079
4074
  */
4080
4075
  contrast: [{
4081
- contrast: [ne, D, L]
4076
+ contrast: [ne, z, D]
4082
4077
  }],
4083
4078
  /**
4084
4079
  * Drop Shadow
@@ -4106,35 +4101,35 @@ const Wd = (e, t) => {
4106
4101
  * @see https://tailwindcss.com/docs/grayscale
4107
4102
  */
4108
4103
  grayscale: [{
4109
- grayscale: ["", ne, D, L]
4104
+ grayscale: ["", ne, z, D]
4110
4105
  }],
4111
4106
  /**
4112
4107
  * Hue Rotate
4113
4108
  * @see https://tailwindcss.com/docs/hue-rotate
4114
4109
  */
4115
4110
  "hue-rotate": [{
4116
- "hue-rotate": [ne, D, L]
4111
+ "hue-rotate": [ne, z, D]
4117
4112
  }],
4118
4113
  /**
4119
4114
  * Invert
4120
4115
  * @see https://tailwindcss.com/docs/invert
4121
4116
  */
4122
4117
  invert: [{
4123
- invert: ["", ne, D, L]
4118
+ invert: ["", ne, z, D]
4124
4119
  }],
4125
4120
  /**
4126
4121
  * Saturate
4127
4122
  * @see https://tailwindcss.com/docs/saturate
4128
4123
  */
4129
4124
  saturate: [{
4130
- saturate: [ne, D, L]
4125
+ saturate: [ne, z, D]
4131
4126
  }],
4132
4127
  /**
4133
4128
  * Sepia
4134
4129
  * @see https://tailwindcss.com/docs/sepia
4135
4130
  */
4136
4131
  sepia: [{
4137
- sepia: ["", ne, D, L]
4132
+ sepia: ["", ne, z, D]
4138
4133
  }],
4139
4134
  /**
4140
4135
  * Backdrop Filter
@@ -4145,8 +4140,8 @@ const Wd = (e, t) => {
4145
4140
  // Deprecated since Tailwind CSS v3.0.0
4146
4141
  "",
4147
4142
  "none",
4148
- D,
4149
- L
4143
+ z,
4144
+ D
4150
4145
  ]
4151
4146
  }],
4152
4147
  /**
@@ -4161,56 +4156,56 @@ const Wd = (e, t) => {
4161
4156
  * @see https://tailwindcss.com/docs/backdrop-brightness
4162
4157
  */
4163
4158
  "backdrop-brightness": [{
4164
- "backdrop-brightness": [ne, D, L]
4159
+ "backdrop-brightness": [ne, z, D]
4165
4160
  }],
4166
4161
  /**
4167
4162
  * Backdrop Contrast
4168
4163
  * @see https://tailwindcss.com/docs/backdrop-contrast
4169
4164
  */
4170
4165
  "backdrop-contrast": [{
4171
- "backdrop-contrast": [ne, D, L]
4166
+ "backdrop-contrast": [ne, z, D]
4172
4167
  }],
4173
4168
  /**
4174
4169
  * Backdrop Grayscale
4175
4170
  * @see https://tailwindcss.com/docs/backdrop-grayscale
4176
4171
  */
4177
4172
  "backdrop-grayscale": [{
4178
- "backdrop-grayscale": ["", ne, D, L]
4173
+ "backdrop-grayscale": ["", ne, z, D]
4179
4174
  }],
4180
4175
  /**
4181
4176
  * Backdrop Hue Rotate
4182
4177
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
4183
4178
  */
4184
4179
  "backdrop-hue-rotate": [{
4185
- "backdrop-hue-rotate": [ne, D, L]
4180
+ "backdrop-hue-rotate": [ne, z, D]
4186
4181
  }],
4187
4182
  /**
4188
4183
  * Backdrop Invert
4189
4184
  * @see https://tailwindcss.com/docs/backdrop-invert
4190
4185
  */
4191
4186
  "backdrop-invert": [{
4192
- "backdrop-invert": ["", ne, D, L]
4187
+ "backdrop-invert": ["", ne, z, D]
4193
4188
  }],
4194
4189
  /**
4195
4190
  * Backdrop Opacity
4196
4191
  * @see https://tailwindcss.com/docs/backdrop-opacity
4197
4192
  */
4198
4193
  "backdrop-opacity": [{
4199
- "backdrop-opacity": [ne, D, L]
4194
+ "backdrop-opacity": [ne, z, D]
4200
4195
  }],
4201
4196
  /**
4202
4197
  * Backdrop Saturate
4203
4198
  * @see https://tailwindcss.com/docs/backdrop-saturate
4204
4199
  */
4205
4200
  "backdrop-saturate": [{
4206
- "backdrop-saturate": [ne, D, L]
4201
+ "backdrop-saturate": [ne, z, D]
4207
4202
  }],
4208
4203
  /**
4209
4204
  * Backdrop Sepia
4210
4205
  * @see https://tailwindcss.com/docs/backdrop-sepia
4211
4206
  */
4212
4207
  "backdrop-sepia": [{
4213
- "backdrop-sepia": ["", ne, D, L]
4208
+ "backdrop-sepia": ["", ne, z, D]
4214
4209
  }],
4215
4210
  // --------------
4216
4211
  // --- Tables ---
@@ -4227,21 +4222,21 @@ const Wd = (e, t) => {
4227
4222
  * @see https://tailwindcss.com/docs/border-spacing
4228
4223
  */
4229
4224
  "border-spacing": [{
4230
- "border-spacing": R()
4225
+ "border-spacing": k()
4231
4226
  }],
4232
4227
  /**
4233
4228
  * Border Spacing X
4234
4229
  * @see https://tailwindcss.com/docs/border-spacing
4235
4230
  */
4236
4231
  "border-spacing-x": [{
4237
- "border-spacing-x": R()
4232
+ "border-spacing-x": k()
4238
4233
  }],
4239
4234
  /**
4240
4235
  * Border Spacing Y
4241
4236
  * @see https://tailwindcss.com/docs/border-spacing
4242
4237
  */
4243
4238
  "border-spacing-y": [{
4244
- "border-spacing-y": R()
4239
+ "border-spacing-y": k()
4245
4240
  }],
4246
4241
  /**
4247
4242
  * Table Layout
@@ -4265,7 +4260,7 @@ const Wd = (e, t) => {
4265
4260
  * @see https://tailwindcss.com/docs/transition-property
4266
4261
  */
4267
4262
  transition: [{
4268
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", D, L]
4263
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", z, D]
4269
4264
  }],
4270
4265
  /**
4271
4266
  * Transition Behavior
@@ -4279,28 +4274,28 @@ const Wd = (e, t) => {
4279
4274
  * @see https://tailwindcss.com/docs/transition-duration
4280
4275
  */
4281
4276
  duration: [{
4282
- duration: [ne, "initial", D, L]
4277
+ duration: [ne, "initial", z, D]
4283
4278
  }],
4284
4279
  /**
4285
4280
  * Transition Timing Function
4286
4281
  * @see https://tailwindcss.com/docs/transition-timing-function
4287
4282
  */
4288
4283
  ease: [{
4289
- ease: ["linear", "initial", y, D, L]
4284
+ ease: ["linear", "initial", y, z, D]
4290
4285
  }],
4291
4286
  /**
4292
4287
  * Transition Delay
4293
4288
  * @see https://tailwindcss.com/docs/transition-delay
4294
4289
  */
4295
4290
  delay: [{
4296
- delay: [ne, D, L]
4291
+ delay: [ne, z, D]
4297
4292
  }],
4298
4293
  /**
4299
4294
  * Animation
4300
4295
  * @see https://tailwindcss.com/docs/animation
4301
4296
  */
4302
4297
  animate: [{
4303
- animate: ["none", w, D, L]
4298
+ animate: ["none", w, z, D]
4304
4299
  }],
4305
4300
  // ------------------
4306
4301
  // --- Transforms ---
@@ -4317,7 +4312,7 @@ const Wd = (e, t) => {
4317
4312
  * @see https://tailwindcss.com/docs/perspective
4318
4313
  */
4319
4314
  perspective: [{
4320
- perspective: [h, D, L]
4315
+ perspective: [h, z, D]
4321
4316
  }],
4322
4317
  /**
4323
4318
  * Perspective Origin
@@ -4413,7 +4408,7 @@ const Wd = (e, t) => {
4413
4408
  * @see https://tailwindcss.com/docs/transform
4414
4409
  */
4415
4410
  transform: [{
4416
- transform: [D, L, "", "none", "gpu", "cpu"]
4411
+ transform: [z, D, "", "none", "gpu", "cpu"]
4417
4412
  }],
4418
4413
  /**
4419
4414
  * Transform Origin
@@ -4498,7 +4493,7 @@ const Wd = (e, t) => {
4498
4493
  * @see https://tailwindcss.com/docs/cursor
4499
4494
  */
4500
4495
  cursor: [{
4501
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", D, L]
4496
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", z, D]
4502
4497
  }],
4503
4498
  /**
4504
4499
  * Field Sizing
@@ -4533,154 +4528,154 @@ const Wd = (e, t) => {
4533
4528
  * @see https://tailwindcss.com/docs/scroll-margin
4534
4529
  */
4535
4530
  "scroll-m": [{
4536
- "scroll-m": R()
4531
+ "scroll-m": k()
4537
4532
  }],
4538
4533
  /**
4539
4534
  * Scroll Margin Inline
4540
4535
  * @see https://tailwindcss.com/docs/scroll-margin
4541
4536
  */
4542
4537
  "scroll-mx": [{
4543
- "scroll-mx": R()
4538
+ "scroll-mx": k()
4544
4539
  }],
4545
4540
  /**
4546
4541
  * Scroll Margin Block
4547
4542
  * @see https://tailwindcss.com/docs/scroll-margin
4548
4543
  */
4549
4544
  "scroll-my": [{
4550
- "scroll-my": R()
4545
+ "scroll-my": k()
4551
4546
  }],
4552
4547
  /**
4553
4548
  * Scroll Margin Inline Start
4554
4549
  * @see https://tailwindcss.com/docs/scroll-margin
4555
4550
  */
4556
4551
  "scroll-ms": [{
4557
- "scroll-ms": R()
4552
+ "scroll-ms": k()
4558
4553
  }],
4559
4554
  /**
4560
4555
  * Scroll Margin Inline End
4561
4556
  * @see https://tailwindcss.com/docs/scroll-margin
4562
4557
  */
4563
4558
  "scroll-me": [{
4564
- "scroll-me": R()
4559
+ "scroll-me": k()
4565
4560
  }],
4566
4561
  /**
4567
4562
  * Scroll Margin Block Start
4568
4563
  * @see https://tailwindcss.com/docs/scroll-margin
4569
4564
  */
4570
4565
  "scroll-mbs": [{
4571
- "scroll-mbs": R()
4566
+ "scroll-mbs": k()
4572
4567
  }],
4573
4568
  /**
4574
4569
  * Scroll Margin Block End
4575
4570
  * @see https://tailwindcss.com/docs/scroll-margin
4576
4571
  */
4577
4572
  "scroll-mbe": [{
4578
- "scroll-mbe": R()
4573
+ "scroll-mbe": k()
4579
4574
  }],
4580
4575
  /**
4581
4576
  * Scroll Margin Top
4582
4577
  * @see https://tailwindcss.com/docs/scroll-margin
4583
4578
  */
4584
4579
  "scroll-mt": [{
4585
- "scroll-mt": R()
4580
+ "scroll-mt": k()
4586
4581
  }],
4587
4582
  /**
4588
4583
  * Scroll Margin Right
4589
4584
  * @see https://tailwindcss.com/docs/scroll-margin
4590
4585
  */
4591
4586
  "scroll-mr": [{
4592
- "scroll-mr": R()
4587
+ "scroll-mr": k()
4593
4588
  }],
4594
4589
  /**
4595
4590
  * Scroll Margin Bottom
4596
4591
  * @see https://tailwindcss.com/docs/scroll-margin
4597
4592
  */
4598
4593
  "scroll-mb": [{
4599
- "scroll-mb": R()
4594
+ "scroll-mb": k()
4600
4595
  }],
4601
4596
  /**
4602
4597
  * Scroll Margin Left
4603
4598
  * @see https://tailwindcss.com/docs/scroll-margin
4604
4599
  */
4605
4600
  "scroll-ml": [{
4606
- "scroll-ml": R()
4601
+ "scroll-ml": k()
4607
4602
  }],
4608
4603
  /**
4609
4604
  * Scroll Padding
4610
4605
  * @see https://tailwindcss.com/docs/scroll-padding
4611
4606
  */
4612
4607
  "scroll-p": [{
4613
- "scroll-p": R()
4608
+ "scroll-p": k()
4614
4609
  }],
4615
4610
  /**
4616
4611
  * Scroll Padding Inline
4617
4612
  * @see https://tailwindcss.com/docs/scroll-padding
4618
4613
  */
4619
4614
  "scroll-px": [{
4620
- "scroll-px": R()
4615
+ "scroll-px": k()
4621
4616
  }],
4622
4617
  /**
4623
4618
  * Scroll Padding Block
4624
4619
  * @see https://tailwindcss.com/docs/scroll-padding
4625
4620
  */
4626
4621
  "scroll-py": [{
4627
- "scroll-py": R()
4622
+ "scroll-py": k()
4628
4623
  }],
4629
4624
  /**
4630
4625
  * Scroll Padding Inline Start
4631
4626
  * @see https://tailwindcss.com/docs/scroll-padding
4632
4627
  */
4633
4628
  "scroll-ps": [{
4634
- "scroll-ps": R()
4629
+ "scroll-ps": k()
4635
4630
  }],
4636
4631
  /**
4637
4632
  * Scroll Padding Inline End
4638
4633
  * @see https://tailwindcss.com/docs/scroll-padding
4639
4634
  */
4640
4635
  "scroll-pe": [{
4641
- "scroll-pe": R()
4636
+ "scroll-pe": k()
4642
4637
  }],
4643
4638
  /**
4644
4639
  * Scroll Padding Block Start
4645
4640
  * @see https://tailwindcss.com/docs/scroll-padding
4646
4641
  */
4647
4642
  "scroll-pbs": [{
4648
- "scroll-pbs": R()
4643
+ "scroll-pbs": k()
4649
4644
  }],
4650
4645
  /**
4651
4646
  * Scroll Padding Block End
4652
4647
  * @see https://tailwindcss.com/docs/scroll-padding
4653
4648
  */
4654
4649
  "scroll-pbe": [{
4655
- "scroll-pbe": R()
4650
+ "scroll-pbe": k()
4656
4651
  }],
4657
4652
  /**
4658
4653
  * Scroll Padding Top
4659
4654
  * @see https://tailwindcss.com/docs/scroll-padding
4660
4655
  */
4661
4656
  "scroll-pt": [{
4662
- "scroll-pt": R()
4657
+ "scroll-pt": k()
4663
4658
  }],
4664
4659
  /**
4665
4660
  * Scroll Padding Right
4666
4661
  * @see https://tailwindcss.com/docs/scroll-padding
4667
4662
  */
4668
4663
  "scroll-pr": [{
4669
- "scroll-pr": R()
4664
+ "scroll-pr": k()
4670
4665
  }],
4671
4666
  /**
4672
4667
  * Scroll Padding Bottom
4673
4668
  * @see https://tailwindcss.com/docs/scroll-padding
4674
4669
  */
4675
4670
  "scroll-pb": [{
4676
- "scroll-pb": R()
4671
+ "scroll-pb": k()
4677
4672
  }],
4678
4673
  /**
4679
4674
  * Scroll Padding Left
4680
4675
  * @see https://tailwindcss.com/docs/scroll-padding
4681
4676
  */
4682
4677
  "scroll-pl": [{
4683
- "scroll-pl": R()
4678
+ "scroll-pl": k()
4684
4679
  }],
4685
4680
  /**
4686
4681
  * Scroll Snap Align
@@ -4748,7 +4743,7 @@ const Wd = (e, t) => {
4748
4743
  * @see https://tailwindcss.com/docs/will-change
4749
4744
  */
4750
4745
  "will-change": [{
4751
- "will-change": ["auto", "scroll", "contents", "transform", D, L]
4746
+ "will-change": ["auto", "scroll", "contents", "transform", z, D]
4752
4747
  }],
4753
4748
  // -----------
4754
4749
  // --- SVG ---
@@ -5101,8 +5096,8 @@ function Ws(e) {
5101
5096
  d.displayName = i;
5102
5097
  const u = e + "CollectionItemSlot", c = "data-radix-collection-item", m = /* @__PURE__ */ Ft(u), g = _.forwardRef(
5103
5098
  (h, v) => {
5104
- const { scope: y, children: w, ...x } = h, C = _.useRef(null), N = re(v, C), k = s(u, y);
5105
- return _.useEffect(() => (k.itemMap.set(C, { ref: C, ...x }), () => void k.itemMap.delete(C))), /* @__PURE__ */ p(m, { [c]: "", ref: N, children: w });
5099
+ const { scope: y, children: w, ...x } = h, C = _.useRef(null), N = re(v, C), R = s(u, y);
5100
+ return _.useEffect(() => (R.itemMap.set(C, { ref: C, ...x }), () => void R.itemMap.delete(C))), /* @__PURE__ */ p(m, { [c]: "", ref: N, children: w });
5106
5101
  }
5107
5102
  );
5108
5103
  g.displayName = u;
@@ -5113,7 +5108,7 @@ function Ws(e) {
5113
5108
  if (!w) return [];
5114
5109
  const x = Array.from(w.querySelectorAll(`[${c}]`));
5115
5110
  return Array.from(v.itemMap.values()).sort(
5116
- (k, E) => x.indexOf(k.ref.current) - x.indexOf(E.ref.current)
5111
+ (R, E) => x.indexOf(R.ref.current) - x.indexOf(E.ref.current)
5117
5112
  );
5118
5113
  }, [v.collectionRef, v.itemMap]);
5119
5114
  }
@@ -5390,11 +5385,11 @@ var of = "DismissableLayer", ho = "dismissableLayer.update", rf = "dismissableLa
5390
5385
  onDismiss: i,
5391
5386
  ...l
5392
5387
  } = e, d = f.useContext(qs), [u, c] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), b = re(t, (E) => c(E)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = u ? h.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= y, N = cf((E) => {
5393
- const R = E.target, M = [...d.branches].some((z) => z.contains(R));
5394
- !C || M || (r == null || r(E), a == null || a(E), E.defaultPrevented || i == null || i());
5395
- }, m), k = df((E) => {
5396
- const R = E.target;
5397
- [...d.branches].some((z) => z.contains(R)) || (s == null || s(E), a == null || a(E), E.defaultPrevented || i == null || i());
5388
+ const k = E.target, O = [...d.branches].some((L) => L.contains(k));
5389
+ !C || O || (r == null || r(E), a == null || a(E), E.defaultPrevented || i == null || i());
5390
+ }, m), R = df((E) => {
5391
+ const k = E.target;
5392
+ [...d.branches].some((L) => L.contains(k)) || (s == null || s(E), a == null || a(E), E.defaultPrevented || i == null || i());
5398
5393
  }, m);
5399
5394
  return nf((E) => {
5400
5395
  w === d.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
@@ -5417,8 +5412,8 @@ var of = "DismissableLayer", ho = "dismissableLayer.update", rf = "dismissableLa
5417
5412
  pointerEvents: x ? C ? "auto" : "none" : void 0,
5418
5413
  ...e.style
5419
5414
  },
5420
- onFocusCapture: q(e.onFocusCapture, k.onFocusCapture),
5421
- onBlurCapture: q(e.onBlurCapture, k.onBlurCapture),
5415
+ onFocusCapture: q(e.onFocusCapture, R.onFocusCapture),
5416
+ onBlurCapture: q(e.onBlurCapture, R.onBlurCapture),
5422
5417
  onPointerDownCapture: q(
5423
5418
  e.onPointerDownCapture,
5424
5419
  N.onPointerDownCapture
@@ -5790,12 +5785,12 @@ var ea = Tf(), Qn = function() {
5790
5785
  onScrollCapture: Qn,
5791
5786
  onWheelCapture: Qn,
5792
5787
  onTouchMoveCapture: Qn
5793
- }), r = o[0], s = o[1], a = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, u = e.enabled, c = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = Js(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, k = Ef([n, t]), E = De(De({}, C), r);
5788
+ }), r = o[0], s = o[1], a = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, u = e.enabled, c = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = Js(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, R = Ef([n, t]), E = De(De({}, C), r);
5794
5789
  return f.createElement(
5795
5790
  f.Fragment,
5796
5791
  null,
5797
5792
  u && f.createElement(N, { sideCar: ea, removeScrollBar: d, shards: c, noRelative: g, noIsolation: b, inert: h, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
5798
- a ? f.cloneElement(f.Children.only(i), De(De({}, E), { ref: k })) : f.createElement(w, De({}, E, { className: l, ref: k }), i)
5793
+ a ? f.cloneElement(f.Children.only(i), De(De({}, E), { ref: R })) : f.createElement(w, De({}, E, { className: l, ref: R }), i)
5799
5794
  );
5800
5795
  });
5801
5796
  Rn.defaultProps = {
@@ -6041,21 +6036,21 @@ function Qf(e) {
6041
6036
  var i = f.useCallback(function(h, v) {
6042
6037
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
6043
6038
  return !a.current.allowPinchZoom;
6044
- var y = on(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], C = "deltaY" in h ? h.deltaY : w[1] - y[1], N, k = h.target, E = Math.abs(x) > Math.abs(C) ? "h" : "v";
6045
- if ("touches" in h && E === "h" && k.type === "range")
6039
+ var y = on(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], C = "deltaY" in h ? h.deltaY : w[1] - y[1], N, R = h.target, E = Math.abs(x) > Math.abs(C) ? "h" : "v";
6040
+ if ("touches" in h && E === "h" && R.type === "range")
6046
6041
  return !1;
6047
- var R = window.getSelection(), M = R && R.anchorNode, z = M ? M === k || M.contains(k) : !1;
6048
- if (z)
6042
+ var k = window.getSelection(), O = k && k.anchorNode, L = O ? O === R || O.contains(R) : !1;
6043
+ if (L)
6049
6044
  return !1;
6050
- var B = $r(E, k);
6045
+ var B = $r(E, R);
6051
6046
  if (!B)
6052
6047
  return !0;
6053
- if (B ? N = E : (N = E === "v" ? "h" : "v", B = $r(E, k)), !B)
6048
+ if (B ? N = E : (N = E === "v" ? "h" : "v", B = $r(E, R)), !B)
6054
6049
  return !1;
6055
6050
  if (!o.current && "changedTouches" in h && (x || C) && (o.current = N), !N)
6056
6051
  return !0;
6057
- var U = o.current || N;
6058
- return Kf(U, v, h, U === "h" ? x : C);
6052
+ var j = o.current || N;
6053
+ return Kf(j, v, h, j === "h" ? x : C);
6059
6054
  }, []), l = f.useCallback(function(h) {
6060
6055
  var v = h;
6061
6056
  if (!(!xt.length || xt[xt.length - 1] !== s)) {
@@ -6499,9 +6494,9 @@ var ba = "CheckboxBubbleInput", ya = f.forwardRef(
6499
6494
  const x = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
6500
6495
  x,
6501
6496
  "checked"
6502
- ).set, k = !r.current;
6497
+ ).set, R = !r.current;
6503
6498
  if (h !== s && N) {
6504
- const E = new Event("click", { bubbles: k });
6499
+ const E = new Event("click", { bubbles: R });
6505
6500
  w.indeterminate = Qe(s), N.call(w, Qe(s) ? !1 : s), w.dispatchEvent(E);
6506
6501
  }
6507
6502
  }, [m, h, s, r]);
@@ -6773,7 +6768,7 @@ const _p = 50, Ip = async (e, t, n) => {
6773
6768
  x,
6774
6769
  y: C,
6775
6770
  data: N,
6776
- reset: k
6771
+ reset: R
6777
6772
  } = await w({
6778
6773
  x: u,
6779
6774
  y: c,
@@ -6791,11 +6786,11 @@ const _p = 50, Ip = async (e, t, n) => {
6791
6786
  u = x ?? u, c = C ?? c, b[y] = {
6792
6787
  ...b[y],
6793
6788
  ...N
6794
- }, k && g < _p && (g++, typeof k == "object" && (k.placement && (m = k.placement), k.rects && (d = k.rects === !0 ? await a.getElementRects({
6789
+ }, R && g < _p && (g++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (d = R.rects === !0 ? await a.getElementRects({
6795
6790
  reference: e,
6796
6791
  floating: t,
6797
6792
  strategy: r
6798
- }) : k.rects), {
6793
+ }) : R.rects), {
6799
6794
  x: u,
6800
6795
  y: c
6801
6796
  } = Gr(d, m, l)), h = -1);
@@ -6828,10 +6823,10 @@ const _p = 50, Ip = async (e, t, n) => {
6828
6823
  const c = xa(u), m = {
6829
6824
  x: n,
6830
6825
  y: o
6831
- }, g = jo(r), b = Uo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[g] - m[g] - s.floating[b], N = m[g] - s.reference[g], k = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
6832
- let E = k ? k[x] : 0;
6833
- (!E || !await (a.isElement == null ? void 0 : a.isElement(k))) && (E = i.floating[x] || s.floating[b]);
6834
- const R = C / 2 - N / 2, M = E / 2 - h[b] / 2 - 1, z = et(c[y], M), B = et(c[w], M), U = z, j = E - h[b] - B, K = E / 2 - h[b] / 2 + R, I = vo(U, K, j), S = !l.arrow && At(r) != null && K !== I && s.reference[b] / 2 - (K < U ? z : B) - h[b] / 2 < 0, T = S ? K < U ? K - U : K - j : 0;
6826
+ }, g = jo(r), b = Uo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[g] - m[g] - s.floating[b], N = m[g] - s.reference[g], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
6827
+ let E = R ? R[x] : 0;
6828
+ (!E || !await (a.isElement == null ? void 0 : a.isElement(R))) && (E = i.floating[x] || s.floating[b]);
6829
+ const k = C / 2 - N / 2, O = E / 2 - h[b] / 2 - 1, L = et(c[y], O), B = et(c[w], O), j = L, U = E - h[b] - B, K = E / 2 - h[b] / 2 + k, I = vo(j, K, U), S = !l.arrow && At(r) != null && K !== I && s.reference[b] / 2 - (K < j ? L : B) - h[b] / 2 < 0, T = S ? K < j ? K - j : K - U : 0;
6835
6830
  return {
6836
6831
  [g]: m[g] + T,
6837
6832
  data: {
@@ -6868,46 +6863,46 @@ const _p = 50, Ip = async (e, t, n) => {
6868
6863
  } = je(e, t);
6869
6864
  if ((n = s.arrow) != null && n.alignmentOffset)
6870
6865
  return {};
6871
- const y = Ge(r), w = ze(i), x = Ge(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), N = m || (x || !h ? [hn(i)] : kp(i)), k = b !== "none";
6872
- !m && k && N.push(...Tp(i, h, b, C));
6873
- const E = [i, ...N], R = await l.detectOverflow(t, v), M = [];
6874
- let z = ((o = s.flip) == null ? void 0 : o.overflows) || [];
6875
- if (u && M.push(R[y]), c) {
6866
+ const y = Ge(r), w = ze(i), x = Ge(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), N = m || (x || !h ? [hn(i)] : kp(i)), R = b !== "none";
6867
+ !m && R && N.push(...Tp(i, h, b, C));
6868
+ const E = [i, ...N], k = await l.detectOverflow(t, v), O = [];
6869
+ let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
6870
+ if (u && O.push(k[y]), c) {
6876
6871
  const K = Cp(r, a, C);
6877
- M.push(R[K[0]], R[K[1]]);
6872
+ O.push(k[K[0]], k[K[1]]);
6878
6873
  }
6879
- if (z = [...z, {
6874
+ if (L = [...L, {
6880
6875
  placement: r,
6881
- overflows: M
6882
- }], !M.every((K) => K <= 0)) {
6883
- var B, U;
6876
+ overflows: O
6877
+ }], !O.every((K) => K <= 0)) {
6878
+ var B, j;
6884
6879
  const K = (((B = s.flip) == null ? void 0 : B.index) || 0) + 1, I = E[K];
6885
6880
  if (I && (!(c === "alignment" ? w !== ze(I) : !1) || // We leave the current main axis only if every placement on that axis
6886
6881
  // overflows the main axis.
6887
- z.every((A) => ze(A.placement) === w ? A.overflows[0] > 0 : !0)))
6882
+ L.every((A) => ze(A.placement) === w ? A.overflows[0] > 0 : !0)))
6888
6883
  return {
6889
6884
  data: {
6890
6885
  index: K,
6891
- overflows: z
6886
+ overflows: L
6892
6887
  },
6893
6888
  reset: {
6894
6889
  placement: I
6895
6890
  }
6896
6891
  };
6897
- let S = (U = z.filter((T) => T.overflows[0] <= 0).sort((T, A) => T.overflows[1] - A.overflows[1])[0]) == null ? void 0 : U.placement;
6892
+ let S = (j = L.filter((T) => T.overflows[0] <= 0).sort((T, A) => T.overflows[1] - A.overflows[1])[0]) == null ? void 0 : j.placement;
6898
6893
  if (!S)
6899
6894
  switch (g) {
6900
6895
  case "bestFit": {
6901
- var j;
6902
- const T = (j = z.filter((A) => {
6903
- if (k) {
6904
- const O = ze(A.placement);
6905
- return O === w || // Create a bias to the `y` side axis due to horizontal
6896
+ var U;
6897
+ const T = (U = L.filter((A) => {
6898
+ if (R) {
6899
+ const M = ze(A.placement);
6900
+ return M === w || // Create a bias to the `y` side axis due to horizontal
6906
6901
  // reading directions favoring greater width.
6907
- O === "y";
6902
+ M === "y";
6908
6903
  }
6909
6904
  return !0;
6910
- }).map((A) => [A.placement, A.overflows.filter((O) => O > 0).reduce((O, P) => O + P, 0)]).sort((A, O) => A[1] - O[1])[0]) == null ? void 0 : j[0];
6905
+ }).map((A) => [A.placement, A.overflows.filter((M) => M > 0).reduce((M, P) => M + P, 0)]).sort((A, M) => A[1] - M[1])[0]) == null ? void 0 : U[0];
6911
6906
  T && (S = T);
6912
6907
  break;
6913
6908
  }
@@ -7119,8 +7114,8 @@ const zp = function(e) {
7119
7114
  }
7120
7115
  if (d) {
7121
7116
  var y, w;
7122
- const x = m === "y" ? "width" : "height", C = Sa.has(Ge(r)), N = s.reference[c] - s.floating[x] + (C && ((y = a.offset) == null ? void 0 : y[c]) || 0) + (C ? 0 : v.crossAxis), k = s.reference[c] + s.reference[x] + (C ? 0 : ((w = a.offset) == null ? void 0 : w[c]) || 0) - (C ? v.crossAxis : 0);
7123
- b < N ? b = N : b > k && (b = k);
7117
+ const x = m === "y" ? "width" : "height", C = Sa.has(Ge(r)), N = s.reference[c] - s.floating[x] + (C && ((y = a.offset) == null ? void 0 : y[c]) || 0) + (C ? 0 : v.crossAxis), R = s.reference[c] + s.reference[x] + (C ? 0 : ((w = a.offset) == null ? void 0 : w[c]) || 0) - (C ? v.crossAxis : 0);
7118
+ b < N ? b = N : b > R && (b = R);
7124
7119
  }
7125
7120
  return {
7126
7121
  [m]: g,
@@ -7149,19 +7144,19 @@ const zp = function(e) {
7149
7144
  } = s.floating;
7150
7145
  let v, y;
7151
7146
  c === "top" || c === "bottom" ? (v = c, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = c, v = m === "end" ? "top" : "bottom");
7152
- const w = h - u.top - u.bottom, x = b - u.left - u.right, C = et(h - u[v], w), N = et(b - u[y], x), k = !t.middlewareData.shift;
7153
- let E = C, R = N;
7154
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = x), (o = t.middlewareData.shift) != null && o.enabled.y && (E = w), k && !m) {
7155
- const z = Ce(u.left, 0), B = Ce(u.right, 0), U = Ce(u.top, 0), j = Ce(u.bottom, 0);
7156
- g ? R = b - 2 * (z !== 0 || B !== 0 ? z + B : Ce(u.left, u.right)) : E = h - 2 * (U !== 0 || j !== 0 ? U + j : Ce(u.top, u.bottom));
7147
+ const w = h - u.top - u.bottom, x = b - u.left - u.right, C = et(h - u[v], w), N = et(b - u[y], x), R = !t.middlewareData.shift;
7148
+ let E = C, k = N;
7149
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = x), (o = t.middlewareData.shift) != null && o.enabled.y && (E = w), R && !m) {
7150
+ const L = Ce(u.left, 0), B = Ce(u.right, 0), j = Ce(u.top, 0), U = Ce(u.bottom, 0);
7151
+ g ? k = b - 2 * (L !== 0 || B !== 0 ? L + B : Ce(u.left, u.right)) : E = h - 2 * (j !== 0 || U !== 0 ? j + U : Ce(u.top, u.bottom));
7157
7152
  }
7158
7153
  await l({
7159
7154
  ...t,
7160
- availableWidth: R,
7155
+ availableWidth: k,
7161
7156
  availableHeight: E
7162
7157
  });
7163
- const M = await a.getDimensions(i.floating);
7164
- return b !== M.width || h !== M.height ? {
7158
+ const O = await a.getDimensions(i.floating);
7159
+ return b !== O.width || h !== O.height ? {
7165
7160
  reset: {
7166
7161
  rects: !0
7167
7162
  }
@@ -7597,8 +7592,8 @@ function sm(e, t) {
7597
7592
  threshold: Ce(0, et(1, l)) || 1
7598
7593
  };
7599
7594
  let C = !0;
7600
- function N(k) {
7601
- const E = k[0].intersectionRatio;
7595
+ function N(R) {
7596
+ const E = R[0].intersectionRatio;
7602
7597
  if (E !== l) {
7603
7598
  if (!C)
7604
7599
  return a();
@@ -7739,33 +7734,33 @@ function gm(e) {
7739
7734
  }), [m, g] = f.useState(o);
7740
7735
  vn(m, o) || g(o);
7741
7736
  const [b, h] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((A) => {
7742
- A !== k.current && (k.current = A, h(A));
7737
+ A !== R.current && (R.current = A, h(A));
7743
7738
  }, []), x = f.useCallback((A) => {
7744
7739
  A !== E.current && (E.current = A, y(A));
7745
- }, []), C = s || b, N = a || v, k = f.useRef(null), E = f.useRef(null), R = f.useRef(u), M = l != null, z = ao(l), B = ao(r), U = ao(d), j = f.useCallback(() => {
7746
- if (!k.current || !E.current)
7740
+ }, []), C = s || b, N = a || v, R = f.useRef(null), E = f.useRef(null), k = f.useRef(u), O = l != null, L = ao(l), B = ao(r), j = ao(d), U = f.useCallback(() => {
7741
+ if (!R.current || !E.current)
7747
7742
  return;
7748
7743
  const A = {
7749
7744
  placement: t,
7750
7745
  strategy: n,
7751
7746
  middleware: m
7752
7747
  };
7753
- B.current && (A.platform = B.current), pm(k.current, E.current, A).then((O) => {
7748
+ B.current && (A.platform = B.current), pm(R.current, E.current, A).then((M) => {
7754
7749
  const P = {
7755
- ...O,
7750
+ ...M,
7756
7751
  // The floating element's position may be recomputed while it's closed
7757
7752
  // but still mounted (such as when transitioning out). To ensure
7758
7753
  // `isPositioned` will be `false` initially on the next open, avoid
7759
7754
  // setting it to `true` when `open === false` (must be specified).
7760
- isPositioned: U.current !== !1
7755
+ isPositioned: j.current !== !1
7761
7756
  };
7762
- K.current && !vn(R.current, P) && (R.current = P, Sn.flushSync(() => {
7757
+ K.current && !vn(k.current, P) && (k.current = P, Sn.flushSync(() => {
7763
7758
  c(P);
7764
7759
  }));
7765
7760
  });
7766
- }, [m, t, n, B, U]);
7761
+ }, [m, t, n, B, j]);
7767
7762
  dn(() => {
7768
- d === !1 && R.current.isPositioned && (R.current.isPositioned = !1, c((A) => ({
7763
+ d === !1 && k.current.isPositioned && (k.current.isPositioned = !1, c((A) => ({
7769
7764
  ...A,
7770
7765
  isPositioned: !1
7771
7766
  })));
@@ -7774,14 +7769,14 @@ function gm(e) {
7774
7769
  dn(() => (K.current = !0, () => {
7775
7770
  K.current = !1;
7776
7771
  }), []), dn(() => {
7777
- if (C && (k.current = C), N && (E.current = N), C && N) {
7778
- if (z.current)
7779
- return z.current(C, N, j);
7780
- j();
7772
+ if (C && (R.current = C), N && (E.current = N), C && N) {
7773
+ if (L.current)
7774
+ return L.current(C, N, U);
7775
+ U();
7781
7776
  }
7782
- }, [C, N, j, z, M]);
7777
+ }, [C, N, U, L, O]);
7783
7778
  const I = f.useMemo(() => ({
7784
- reference: k,
7779
+ reference: R,
7785
7780
  floating: E,
7786
7781
  setReference: w,
7787
7782
  setFloating: x
@@ -7796,26 +7791,26 @@ function gm(e) {
7796
7791
  };
7797
7792
  if (!S.floating)
7798
7793
  return A;
7799
- const O = es(S.floating, u.x), P = es(S.floating, u.y);
7794
+ const M = es(S.floating, u.x), P = es(S.floating, u.y);
7800
7795
  return i ? {
7801
7796
  ...A,
7802
- transform: "translate(" + O + "px, " + P + "px)",
7797
+ transform: "translate(" + M + "px, " + P + "px)",
7803
7798
  ..._a(S.floating) >= 1.5 && {
7804
7799
  willChange: "transform"
7805
7800
  }
7806
7801
  } : {
7807
7802
  position: n,
7808
- left: O,
7803
+ left: M,
7809
7804
  top: P
7810
7805
  };
7811
7806
  }, [n, i, S.floating, u.x, u.y]);
7812
7807
  return f.useMemo(() => ({
7813
7808
  ...u,
7814
- update: j,
7809
+ update: U,
7815
7810
  refs: I,
7816
7811
  elements: S,
7817
7812
  floatingStyles: T
7818
- }), [u, j, I, S, T]);
7813
+ }), [u, U, I, S, T]);
7819
7814
  }
7820
7815
  const vm = (e) => {
7821
7816
  function t(n) {
@@ -7933,15 +7928,15 @@ var Xo = "PopperContent", [Tm, Pm] = Ma(Xo), $a = f.forwardRef(
7933
7928
  updatePositionStrategy: g = "optimized",
7934
7929
  onPlaced: b,
7935
7930
  ...h
7936
- } = e, v = Oa(Xo, n), [y, w] = f.useState(null), x = re(t, (ue) => w(ue)), [C, N] = f.useState(null), k = Tn(C), E = (k == null ? void 0 : k.width) ?? 0, R = (k == null ? void 0 : k.height) ?? 0, M = o + (s !== "center" ? "-" + s : ""), z = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, B = Array.isArray(d) ? d : [d], U = B.length > 0, j = {
7937
- padding: z,
7931
+ } = e, v = Oa(Xo, n), [y, w] = f.useState(null), x = re(t, (ue) => w(ue)), [C, N] = f.useState(null), R = Tn(C), E = (R == null ? void 0 : R.width) ?? 0, k = (R == null ? void 0 : R.height) ?? 0, O = o + (s !== "center" ? "-" + s : ""), L = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, B = Array.isArray(d) ? d : [d], j = B.length > 0, U = {
7932
+ padding: L,
7938
7933
  boundary: B.filter(_m),
7939
7934
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
7940
- altBoundary: U
7935
+ altBoundary: j
7941
7936
  }, { refs: K, floatingStyles: I, placement: S, isPositioned: T, middlewareData: A } = gm({
7942
7937
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
7943
7938
  strategy: "fixed",
7944
- placement: M,
7939
+ placement: O,
7945
7940
  whileElementsMounted: (...ue) => am(...ue, {
7946
7941
  animationFrame: g === "always"
7947
7942
  }),
@@ -7949,26 +7944,26 @@ var Xo = "PopperContent", [Tm, Pm] = Ma(Xo), $a = f.forwardRef(
7949
7944
  reference: v.anchor
7950
7945
  },
7951
7946
  middleware: [
7952
- bm({ mainAxis: r + R, alignmentAxis: a }),
7947
+ bm({ mainAxis: r + k, alignmentAxis: a }),
7953
7948
  l && ym({
7954
7949
  mainAxis: !0,
7955
7950
  crossAxis: !1,
7956
7951
  limiter: c === "partial" ? wm() : void 0,
7957
- ...j
7952
+ ...U
7958
7953
  }),
7959
- l && xm({ ...j }),
7954
+ l && xm({ ...U }),
7960
7955
  Sm({
7961
- ...j,
7956
+ ...U,
7962
7957
  apply: ({ elements: ue, rects: fe, availableWidth: st, availableHeight: qe }) => {
7963
7958
  const { width: Ne, height: Yt } = fe.reference, be = ue.floating.style;
7964
7959
  be.setProperty("--radix-popper-available-width", `${st}px`), be.setProperty("--radix-popper-available-height", `${qe}px`), be.setProperty("--radix-popper-anchor-width", `${Ne}px`), be.setProperty("--radix-popper-anchor-height", `${Yt}px`);
7965
7960
  }
7966
7961
  }),
7967
7962
  C && km({ element: C, padding: i }),
7968
- Im({ arrowWidth: E, arrowHeight: R }),
7969
- m && Cm({ strategy: "referenceHidden", ...j })
7963
+ Im({ arrowWidth: E, arrowHeight: k }),
7964
+ m && Cm({ strategy: "referenceHidden", ...U })
7970
7965
  ]
7971
- }), [O, P] = Ha(S), Q = ve(b);
7966
+ }), [M, P] = Ha(S), Q = ve(b);
7972
7967
  de(() => {
7973
7968
  T && (Q == null || Q());
7974
7969
  }, [T, Q]);
@@ -8003,7 +7998,7 @@ var Xo = "PopperContent", [Tm, Pm] = Ma(Xo), $a = f.forwardRef(
8003
7998
  Tm,
8004
7999
  {
8005
8000
  scope: n,
8006
- placedSide: O,
8001
+ placedSide: M,
8007
8002
  onArrowChange: N,
8008
8003
  arrowX: ie,
8009
8004
  arrowY: G,
@@ -8011,7 +8006,7 @@ var Xo = "PopperContent", [Tm, Pm] = Ma(Xo), $a = f.forwardRef(
8011
8006
  children: /* @__PURE__ */ p(
8012
8007
  W.div,
8013
8008
  {
8014
- "data-side": O,
8009
+ "data-side": M,
8015
8010
  "data-align": P,
8016
8011
  ...h,
8017
8012
  ref: x,
@@ -8122,11 +8117,11 @@ var $m = f.forwardRef((e, t) => {
8122
8117
  defaultProp: i ?? null,
8123
8118
  onChange: l,
8124
8119
  caller: jt
8125
- }), [y, w] = f.useState(!1), x = ve(d), C = Ga(n), N = f.useRef(!1), [k, E] = f.useState(0);
8120
+ }), [y, w] = f.useState(!1), x = ve(d), C = Ga(n), N = f.useRef(!1), [R, E] = f.useState(0);
8126
8121
  return f.useEffect(() => {
8127
- const R = m.current;
8128
- if (R)
8129
- return R.addEventListener(io, x), () => R.removeEventListener(io, x);
8122
+ const k = m.current;
8123
+ if (k)
8124
+ return k.addEventListener(io, x), () => k.removeEventListener(io, x);
8130
8125
  }, [x]), /* @__PURE__ */ p(
8131
8126
  Dm,
8132
8127
  {
@@ -8136,22 +8131,22 @@ var $m = f.forwardRef((e, t) => {
8136
8131
  loop: r,
8137
8132
  currentTabStopId: h,
8138
8133
  onItemFocus: f.useCallback(
8139
- (R) => v(R),
8134
+ (k) => v(k),
8140
8135
  [v]
8141
8136
  ),
8142
8137
  onItemShiftTab: f.useCallback(() => w(!0), []),
8143
8138
  onFocusableItemAdd: f.useCallback(
8144
- () => E((R) => R + 1),
8139
+ () => E((k) => k + 1),
8145
8140
  []
8146
8141
  ),
8147
8142
  onFocusableItemRemove: f.useCallback(
8148
- () => E((R) => R - 1),
8143
+ () => E((k) => k - 1),
8149
8144
  []
8150
8145
  ),
8151
8146
  children: /* @__PURE__ */ p(
8152
8147
  W.div,
8153
8148
  {
8154
- tabIndex: y || k === 0 ? -1 : 0,
8149
+ tabIndex: y || R === 0 ? -1 : 0,
8155
8150
  "data-orientation": o,
8156
8151
  ...c,
8157
8152
  ref: g,
@@ -8159,12 +8154,12 @@ var $m = f.forwardRef((e, t) => {
8159
8154
  onMouseDown: q(e.onMouseDown, () => {
8160
8155
  N.current = !0;
8161
8156
  }),
8162
- onFocus: q(e.onFocus, (R) => {
8163
- const M = !N.current;
8164
- if (R.target === R.currentTarget && M && !y) {
8165
- const z = new CustomEvent(io, Mm);
8166
- if (R.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
8167
- const B = C().filter((S) => S.focusable), U = B.find((S) => S.active), j = B.find((S) => S.id === h), I = [U, j, ...B].filter(
8157
+ onFocus: q(e.onFocus, (k) => {
8158
+ const O = !N.current;
8159
+ if (k.target === k.currentTarget && O && !y) {
8160
+ const L = new CustomEvent(io, Mm);
8161
+ if (k.currentTarget.dispatchEvent(L), !L.defaultPrevented) {
8162
+ const B = C().filter((S) => S.focusable), j = B.find((S) => S.active), U = B.find((S) => S.id === h), I = [j, U, ...B].filter(
8168
8163
  Boolean
8169
8164
  ).map((S) => S.ref.current);
8170
8165
  Xa(I, u);
@@ -8580,13 +8575,13 @@ var er = "ScrollArea", [gi] = we(er), [fh, Re] = gi(er), vi = f.forwardRef(
8580
8575
  dir: r,
8581
8576
  scrollHideDelay: s = 600,
8582
8577
  ...a
8583
- } = e, [i, l] = f.useState(null), [d, u] = f.useState(null), [c, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, C] = f.useState(0), [N, k] = f.useState(!1), [E, R] = f.useState(!1), M = re(t, (B) => l(B)), z = Wt(r);
8578
+ } = e, [i, l] = f.useState(null), [d, u] = f.useState(null), [c, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, C] = f.useState(0), [N, R] = f.useState(!1), [E, k] = f.useState(!1), O = re(t, (B) => l(B)), L = Wt(r);
8584
8579
  return /* @__PURE__ */ p(
8585
8580
  fh,
8586
8581
  {
8587
8582
  scope: n,
8588
8583
  type: o,
8589
- dir: z,
8584
+ dir: L,
8590
8585
  scrollHideDelay: s,
8591
8586
  scrollArea: i,
8592
8587
  viewport: d,
@@ -8596,19 +8591,19 @@ var er = "ScrollArea", [gi] = we(er), [fh, Re] = gi(er), vi = f.forwardRef(
8596
8591
  scrollbarX: g,
8597
8592
  onScrollbarXChange: b,
8598
8593
  scrollbarXEnabled: N,
8599
- onScrollbarXEnabledChange: k,
8594
+ onScrollbarXEnabledChange: R,
8600
8595
  scrollbarY: h,
8601
8596
  onScrollbarYChange: v,
8602
8597
  scrollbarYEnabled: E,
8603
- onScrollbarYEnabledChange: R,
8598
+ onScrollbarYEnabledChange: k,
8604
8599
  onCornerWidthChange: w,
8605
8600
  onCornerHeightChange: C,
8606
8601
  children: /* @__PURE__ */ p(
8607
8602
  W.div,
8608
8603
  {
8609
- dir: z,
8604
+ dir: L,
8610
8605
  ...a,
8611
- ref: M,
8606
+ ref: O,
8612
8607
  style: {
8613
8608
  position: "relative",
8614
8609
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
@@ -8902,20 +8897,20 @@ var ph = f.forwardRef((e, t) => {
8902
8897
  onWheelScroll: u,
8903
8898
  onResize: c,
8904
8899
  ...m
8905
- } = e, g = Re(He, n), [b, h] = f.useState(null), v = re(t, (M) => h(M)), y = f.useRef(null), w = f.useRef(""), x = g.viewport, C = o.content - o.viewport, N = ve(u), k = ve(l), E = $n(c, 10);
8906
- function R(M) {
8900
+ } = e, g = Re(He, n), [b, h] = f.useState(null), v = re(t, (O) => h(O)), y = f.useRef(null), w = f.useRef(""), x = g.viewport, C = o.content - o.viewport, N = ve(u), R = ve(l), E = $n(c, 10);
8901
+ function k(O) {
8907
8902
  if (y.current) {
8908
- const z = M.clientX - y.current.left, B = M.clientY - y.current.top;
8909
- d({ x: z, y: B });
8903
+ const L = O.clientX - y.current.left, B = O.clientY - y.current.top;
8904
+ d({ x: L, y: B });
8910
8905
  }
8911
8906
  }
8912
8907
  return f.useEffect(() => {
8913
- const M = (z) => {
8914
- const B = z.target;
8915
- (b == null ? void 0 : b.contains(B)) && N(z, C);
8908
+ const O = (L) => {
8909
+ const B = L.target;
8910
+ (b == null ? void 0 : b.contains(B)) && N(L, C);
8916
8911
  };
8917
- return document.addEventListener("wheel", M, { passive: !1 }), () => document.removeEventListener("wheel", M, { passive: !1 });
8918
- }, [x, b, C, N]), f.useEffect(k, [o, k]), Tt(b, E), Tt(g.content, E), /* @__PURE__ */ p(
8912
+ return document.addEventListener("wheel", O, { passive: !1 }), () => document.removeEventListener("wheel", O, { passive: !1 });
8913
+ }, [x, b, C, N]), f.useEffect(R, [o, R]), Tt(b, E), Tt(g.content, E), /* @__PURE__ */ p(
8919
8914
  vh,
8920
8915
  {
8921
8916
  scope: n,
@@ -8923,7 +8918,7 @@ var ph = f.forwardRef((e, t) => {
8923
8918
  hasThumb: r,
8924
8919
  onThumbChange: ve(s),
8925
8920
  onThumbPointerUp: ve(a),
8926
- onThumbPositionChange: k,
8921
+ onThumbPositionChange: R,
8927
8922
  onThumbPointerDown: ve(i),
8928
8923
  children: /* @__PURE__ */ p(
8929
8924
  W.div,
@@ -8931,13 +8926,13 @@ var ph = f.forwardRef((e, t) => {
8931
8926
  ...m,
8932
8927
  ref: v,
8933
8928
  style: { position: "absolute", ...m.style },
8934
- onPointerDown: q(e.onPointerDown, (M) => {
8935
- M.button === 0 && (M.target.setPointerCapture(M.pointerId), y.current = b.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), R(M));
8929
+ onPointerDown: q(e.onPointerDown, (O) => {
8930
+ O.button === 0 && (O.target.setPointerCapture(O.pointerId), y.current = b.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), k(O));
8936
8931
  }),
8937
- onPointerMove: q(e.onPointerMove, R),
8938
- onPointerUp: q(e.onPointerUp, (M) => {
8939
- const z = M.target;
8940
- z.hasPointerCapture(M.pointerId) && z.releasePointerCapture(M.pointerId), document.body.style.webkitUserSelect = w.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
8932
+ onPointerMove: q(e.onPointerMove, k),
8933
+ onPointerUp: q(e.onPointerUp, (O) => {
8934
+ const L = O.target;
8935
+ L.hasPointerCapture(O.pointerId) && L.releasePointerCapture(O.pointerId), document.body.style.webkitUserSelect = w.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
8941
8936
  })
8942
8937
  }
8943
8938
  )
@@ -9098,17 +9093,17 @@ var Sh = vi, Ch = yi, kh = Ei, Eh = [" ", "Enter", "ArrowUp", "ArrowDown"], Rh =
9098
9093
  disabled: m,
9099
9094
  required: g,
9100
9095
  form: b
9101
- } = e, h = Hn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [C, N] = f.useState(!1), k = Wt(d), [E, R] = Ue({
9096
+ } = e, h = Hn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [C, N] = f.useState(!1), R = Wt(d), [E, k] = Ue({
9102
9097
  prop: o,
9103
9098
  defaultProp: r ?? !1,
9104
9099
  onChange: s,
9105
9100
  caller: ft
9106
- }), [M, z] = Ue({
9101
+ }), [O, L] = Ue({
9107
9102
  prop: a,
9108
9103
  defaultProp: i,
9109
9104
  onChange: l,
9110
9105
  caller: ft
9111
- }), B = f.useRef(null), U = v ? b || !!v.closest("form") : !0, [j, K] = f.useState(/* @__PURE__ */ new Set()), I = Array.from(j).map((S) => S.props.value).join(";");
9106
+ }), B = f.useRef(null), j = v ? b || !!v.closest("form") : !0, [U, K] = f.useState(/* @__PURE__ */ new Set()), I = Array.from(U).map((S) => S.props.value).join(";");
9112
9107
  return /* @__PURE__ */ p(Va, { ...h, children: /* @__PURE__ */ $(
9113
9108
  Th,
9114
9109
  {
@@ -9121,11 +9116,11 @@ var Sh = vi, Ch = yi, kh = Ei, Eh = [" ", "Enter", "ArrowUp", "ArrowDown"], Rh =
9121
9116
  valueNodeHasChildren: C,
9122
9117
  onValueNodeHasChildrenChange: N,
9123
9118
  contentId: ht(),
9124
- value: M,
9125
- onValueChange: z,
9119
+ value: O,
9120
+ onValueChange: L,
9126
9121
  open: E,
9127
- onOpenChange: R,
9128
- dir: k,
9122
+ onOpenChange: k,
9123
+ dir: R,
9129
9124
  triggerPointerDownPosRef: B,
9130
9125
  disabled: m,
9131
9126
  children: [
@@ -9145,7 +9140,7 @@ var Sh = vi, Ch = yi, kh = Ei, Eh = [" ", "Enter", "ArrowUp", "ArrowDown"], Rh =
9145
9140
  children: n
9146
9141
  }
9147
9142
  ) }),
9148
- U ? /* @__PURE__ */ $(
9143
+ j ? /* @__PURE__ */ $(
9149
9144
  Zi,
9150
9145
  {
9151
9146
  "aria-hidden": !0,
@@ -9153,13 +9148,13 @@ var Sh = vi, Ch = yi, kh = Ei, Eh = [" ", "Enter", "ArrowUp", "ArrowDown"], Rh =
9153
9148
  tabIndex: -1,
9154
9149
  name: u,
9155
9150
  autoComplete: c,
9156
- value: M,
9157
- onChange: (S) => z(S.target.value),
9151
+ value: O,
9152
+ onChange: (S) => L(S.target.value),
9158
9153
  disabled: m,
9159
9154
  form: b,
9160
9155
  children: [
9161
- M === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
9162
- Array.from(j)
9156
+ O === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
9157
+ Array.from(U)
9163
9158
  ]
9164
9159
  },
9165
9160
  I
@@ -9277,56 +9272,56 @@ var Ae = 10, [zi, rt] = It(pt), Mh = "SelectContentImpl", Oh = /* @__PURE__ */ F
9277
9272
  avoidCollisions: v,
9278
9273
  //
9279
9274
  ...y
9280
- } = e, w = ot(pt, n), [x, C] = f.useState(null), [N, k] = f.useState(null), E = re(t, (F) => C(F)), [R, M] = f.useState(null), [z, B] = f.useState(
9275
+ } = e, w = ot(pt, n), [x, C] = f.useState(null), [N, R] = f.useState(null), E = re(t, (F) => C(F)), [k, O] = f.useState(null), [L, B] = f.useState(
9281
9276
  null
9282
- ), U = Bn(n), [j, K] = f.useState(!1), I = f.useRef(!1);
9277
+ ), j = Bn(n), [U, K] = f.useState(!1), I = f.useRef(!1);
9283
9278
  f.useEffect(() => {
9284
9279
  if (x) return sp(x);
9285
9280
  }, [x]), yf();
9286
9281
  const S = f.useCallback(
9287
9282
  (F) => {
9288
- const [H, ...J] = U().map((te) => te.ref.current), [se] = J.slice(-1), oe = document.activeElement;
9283
+ const [H, ...J] = j().map((te) => te.ref.current), [se] = J.slice(-1), oe = document.activeElement;
9289
9284
  for (const te of F)
9290
9285
  if (te === oe || (te == null || te.scrollIntoView({ block: "nearest" }), te === H && N && (N.scrollTop = 0), te === se && N && (N.scrollTop = N.scrollHeight), te == null || te.focus(), document.activeElement !== oe)) return;
9291
9286
  },
9292
- [U, N]
9287
+ [j, N]
9293
9288
  ), T = f.useCallback(
9294
- () => S([R, x]),
9295
- [S, R, x]
9289
+ () => S([k, x]),
9290
+ [S, k, x]
9296
9291
  );
9297
9292
  f.useEffect(() => {
9298
- j && T();
9299
- }, [j, T]);
9300
- const { onOpenChange: A, triggerPointerDownPosRef: O } = w;
9293
+ U && T();
9294
+ }, [U, T]);
9295
+ const { onOpenChange: A, triggerPointerDownPosRef: M } = w;
9301
9296
  f.useEffect(() => {
9302
9297
  if (x) {
9303
9298
  let F = { x: 0, y: 0 };
9304
9299
  const H = (se) => {
9305
9300
  var oe, te;
9306
9301
  F = {
9307
- x: Math.abs(Math.round(se.pageX) - (((oe = O.current) == null ? void 0 : oe.x) ?? 0)),
9308
- y: Math.abs(Math.round(se.pageY) - (((te = O.current) == null ? void 0 : te.y) ?? 0))
9302
+ x: Math.abs(Math.round(se.pageX) - (((oe = M.current) == null ? void 0 : oe.x) ?? 0)),
9303
+ y: Math.abs(Math.round(se.pageY) - (((te = M.current) == null ? void 0 : te.y) ?? 0))
9309
9304
  };
9310
9305
  }, J = (se) => {
9311
- F.x <= 10 && F.y <= 10 ? se.preventDefault() : x.contains(se.target) || A(!1), document.removeEventListener("pointermove", H), O.current = null;
9306
+ F.x <= 10 && F.y <= 10 ? se.preventDefault() : x.contains(se.target) || A(!1), document.removeEventListener("pointermove", H), M.current = null;
9312
9307
  };
9313
- return O.current !== null && (document.addEventListener("pointermove", H), document.addEventListener("pointerup", J, { capture: !0, once: !0 })), () => {
9308
+ return M.current !== null && (document.addEventListener("pointermove", H), document.addEventListener("pointerup", J, { capture: !0, once: !0 })), () => {
9314
9309
  document.removeEventListener("pointermove", H), document.removeEventListener("pointerup", J, { capture: !0 });
9315
9310
  };
9316
9311
  }
9317
- }, [x, A, O]), f.useEffect(() => {
9312
+ }, [x, A, M]), f.useEffect(() => {
9318
9313
  const F = () => A(!1);
9319
9314
  return window.addEventListener("blur", F), window.addEventListener("resize", F), () => {
9320
9315
  window.removeEventListener("blur", F), window.removeEventListener("resize", F);
9321
9316
  };
9322
9317
  }, [A]);
9323
9318
  const [P, Q] = Qi((F) => {
9324
- const H = U().filter((oe) => !oe.disabled), J = H.find((oe) => oe.ref.current === document.activeElement), se = el(H, F, J);
9319
+ const H = j().filter((oe) => !oe.disabled), J = H.find((oe) => oe.ref.current === document.activeElement), se = el(H, F, J);
9325
9320
  se && setTimeout(() => se.ref.current.focus());
9326
9321
  }), ie = f.useCallback(
9327
9322
  (F, H, J) => {
9328
9323
  const se = !I.current && !J;
9329
- (w.value !== void 0 && w.value === H || se) && (M(F), se && (I.current = !0));
9324
+ (w.value !== void 0 && w.value === H || se) && (O(F), se && (I.current = !0));
9330
9325
  },
9331
9326
  [w.value]
9332
9327
  ), G = f.useCallback(() => x == null ? void 0 : x.focus(), [x]), Z = f.useCallback(
@@ -9353,15 +9348,15 @@ var Ae = 10, [zi, rt] = It(pt), Mh = "SelectContentImpl", Oh = /* @__PURE__ */ F
9353
9348
  scope: n,
9354
9349
  content: x,
9355
9350
  viewport: N,
9356
- onViewportChange: k,
9351
+ onViewportChange: R,
9357
9352
  itemRefCallback: ie,
9358
- selectedItem: R,
9353
+ selectedItem: k,
9359
9354
  onItemLeave: G,
9360
9355
  itemTextRefCallback: Z,
9361
9356
  focusSelectedItem: T,
9362
- selectedItemText: z,
9357
+ selectedItemText: L,
9363
9358
  position: o,
9364
- isPositioned: j,
9359
+ isPositioned: U,
9365
9360
  searchRef: P,
9366
9361
  children: /* @__PURE__ */ p(sa, { as: Oh, allowPinchZoom: !0, children: /* @__PURE__ */ p(
9367
9362
  Xs,
@@ -9407,7 +9402,7 @@ var Ae = 10, [zi, rt] = It(pt), Mh = "SelectContentImpl", Oh = /* @__PURE__ */ F
9407
9402
  onKeyDown: q(y.onKeyDown, (F) => {
9408
9403
  const H = F.ctrlKey || F.altKey || F.metaKey;
9409
9404
  if (F.key === "Tab" && F.preventDefault(), !H && F.key.length === 1 && Q(F.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(F.key)) {
9410
- let se = U().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
9405
+ let se = j().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
9411
9406
  if (["ArrowUp", "End"].includes(F.key) && (se = se.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(F.key)) {
9412
9407
  const oe = F.target, te = se.indexOf(oe);
9413
9408
  se = se.slice(te + 1);
@@ -9429,9 +9424,9 @@ $i.displayName = Mh;
9429
9424
  var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9430
9425
  const { __scopeSelect: n, onPlaced: o, ...r } = e, s = ot(pt, n), a = rt(pt, n), [i, l] = f.useState(null), [d, u] = f.useState(null), c = re(t, (E) => u(E)), m = Bn(n), g = f.useRef(!1), b = f.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = a, x = f.useCallback(() => {
9431
9426
  if (s.trigger && s.valueNode && i && d && h && v && y) {
9432
- const E = s.trigger.getBoundingClientRect(), R = d.getBoundingClientRect(), M = s.valueNode.getBoundingClientRect(), z = y.getBoundingClientRect();
9427
+ const E = s.trigger.getBoundingClientRect(), k = d.getBoundingClientRect(), O = s.valueNode.getBoundingClientRect(), L = y.getBoundingClientRect();
9433
9428
  if (s.dir !== "rtl") {
9434
- const oe = z.left - R.left, te = M.left - oe, ue = E.left - te, fe = E.width + ue, st = Math.max(fe, R.width), qe = window.innerWidth - Ae, Ne = xo(te, [
9429
+ const oe = L.left - k.left, te = O.left - oe, ue = E.left - te, fe = E.width + ue, st = Math.max(fe, k.width), qe = window.innerWidth - Ae, Ne = xo(te, [
9435
9430
  Ae,
9436
9431
  // Prevents the content from going off the starting edge of the
9437
9432
  // viewport. It may still go off the ending edge, but this can be
@@ -9442,13 +9437,13 @@ var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9442
9437
  ]);
9443
9438
  i.style.minWidth = fe + "px", i.style.left = Ne + "px";
9444
9439
  } else {
9445
- const oe = R.right - z.right, te = window.innerWidth - M.right - oe, ue = window.innerWidth - E.right - te, fe = E.width + ue, st = Math.max(fe, R.width), qe = window.innerWidth - Ae, Ne = xo(te, [
9440
+ const oe = k.right - L.right, te = window.innerWidth - O.right - oe, ue = window.innerWidth - E.right - te, fe = E.width + ue, st = Math.max(fe, k.width), qe = window.innerWidth - Ae, Ne = xo(te, [
9446
9441
  Ae,
9447
9442
  Math.max(Ae, qe - st)
9448
9443
  ]);
9449
9444
  i.style.minWidth = fe + "px", i.style.right = Ne + "px";
9450
9445
  }
9451
- const B = m(), U = window.innerHeight - Ae * 2, j = h.scrollHeight, K = window.getComputedStyle(d), I = parseInt(K.borderTopWidth, 10), S = parseInt(K.paddingTop, 10), T = parseInt(K.borderBottomWidth, 10), A = parseInt(K.paddingBottom, 10), O = I + S + j + A + T, P = Math.min(v.offsetHeight * 5, O), Q = window.getComputedStyle(h), ie = parseInt(Q.paddingTop, 10), G = parseInt(Q.paddingBottom, 10), Z = E.top + E.height / 2 - Ae, Y = U - Z, X = v.offsetHeight / 2, F = v.offsetTop + X, H = I + S + F, J = O - H;
9446
+ const B = m(), j = window.innerHeight - Ae * 2, U = h.scrollHeight, K = window.getComputedStyle(d), I = parseInt(K.borderTopWidth, 10), S = parseInt(K.paddingTop, 10), T = parseInt(K.borderBottomWidth, 10), A = parseInt(K.paddingBottom, 10), M = I + S + U + A + T, P = Math.min(v.offsetHeight * 5, M), Q = window.getComputedStyle(h), ie = parseInt(Q.paddingTop, 10), G = parseInt(Q.paddingBottom, 10), Z = E.top + E.height / 2 - Ae, Y = j - Z, X = v.offsetHeight / 2, F = v.offsetTop + X, H = I + S + F, J = M - H;
9452
9447
  if (H <= Z) {
9453
9448
  const oe = B.length > 0 && v === B[B.length - 1].ref.current;
9454
9449
  i.style.bottom = "0px";
@@ -9468,7 +9463,7 @@ var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9468
9463
  ) + J;
9469
9464
  i.style.height = ue + "px", h.scrollTop = H - Z + h.offsetTop;
9470
9465
  }
9471
- i.style.margin = `${Ae}px 0`, i.style.minHeight = P + "px", i.style.maxHeight = U + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
9466
+ i.style.margin = `${Ae}px 0`, i.style.minHeight = P + "px", i.style.maxHeight = j + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
9472
9467
  }
9473
9468
  }, [
9474
9469
  m,
@@ -9487,7 +9482,7 @@ var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9487
9482
  de(() => {
9488
9483
  d && N(window.getComputedStyle(d).zIndex);
9489
9484
  }, [d]);
9490
- const k = f.useCallback(
9485
+ const R = f.useCallback(
9491
9486
  (E) => {
9492
9487
  E && b.current === !0 && (x(), w == null || w(), b.current = !1);
9493
9488
  },
@@ -9499,7 +9494,7 @@ var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9499
9494
  scope: n,
9500
9495
  contentWrapper: i,
9501
9496
  shouldExpandOnScrollRef: g,
9502
- onScrollButtonChange: k,
9497
+ onScrollButtonChange: R,
9503
9498
  children: /* @__PURE__ */ p(
9504
9499
  "div",
9505
9500
  {
@@ -10215,7 +10210,7 @@ var Ht = "Tooltip", [kg, Gt] = Un(Ht), yl = (e) => {
10215
10210
  window.clearTimeout(g.current), g.current = 0, v.current = !1, w(!0);
10216
10211
  }, [w]), N = f.useCallback(() => {
10217
10212
  window.clearTimeout(g.current), g.current = 0, w(!1);
10218
- }, [w]), k = f.useCallback(() => {
10213
+ }, [w]), R = f.useCallback(() => {
10219
10214
  window.clearTimeout(g.current), g.current = window.setTimeout(() => {
10220
10215
  v.current = !0, w(!0), g.current = 0;
10221
10216
  }, h);
@@ -10232,8 +10227,8 @@ var Ht = "Tooltip", [kg, Gt] = Un(Ht), yl = (e) => {
10232
10227
  trigger: u,
10233
10228
  onTriggerChange: c,
10234
10229
  onTriggerEnter: f.useCallback(() => {
10235
- l.isOpenDelayedRef.current ? k() : C();
10236
- }, [l.isOpenDelayedRef, k, C]),
10230
+ l.isOpenDelayedRef.current ? R() : C();
10231
+ }, [l.isOpenDelayedRef, R, C]),
10237
10232
  onTriggerLeave: f.useCallback(() => {
10238
10233
  b ? N() : (window.clearTimeout(g.current), g.current = 0);
10239
10234
  }, [N, b]),
@@ -11749,15 +11744,15 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11749
11744
  ), { tokens: r, errors: s };
11750
11745
  }, yb = (e) => typeof e == "object" && e !== null && e.encrypted === !0 && Array.isArray(e.data), $b = ({
11751
11746
  instanceId: e,
11752
- apiBase: t,
11753
- hostBase: n,
11747
+ queryApiBase: t,
11748
+ apiBase: n,
11754
11749
  appId: o,
11755
11750
  children: r,
11756
11751
  customerId: s,
11757
11752
  customerEmail: a,
11758
11753
  customerName: i
11759
11754
  }) => {
11760
- const [l, d] = le([]), [u, c] = le([]), [m, g] = le(/* @__PURE__ */ new Map()), [b, h] = le(/* @__PURE__ */ new Map()), [v, y] = le(!1), [w, x] = le({ authenticated: !1, user: null }), C = We(null), N = We(/* @__PURE__ */ new Set()), k = fn(() => l.filter((I) => I.manifest.permissions.includes("identity:extend")).map((I) => I.id), [l]);
11755
+ const [l, d] = le([]), [u, c] = le([]), [m, g] = le(/* @__PURE__ */ new Map()), [b, h] = le(/* @__PURE__ */ new Map()), [v, y] = le(!1), [w, x] = le({ authenticated: !1, user: null }), C = We(null), N = We(/* @__PURE__ */ new Set()), R = fn(() => l.filter((I) => I.manifest.permissions.includes("identity:extend")).map((I) => I.id), [l]);
11761
11756
  ce(() => {
11762
11757
  (async () => {
11763
11758
  const S = e;
@@ -11766,31 +11761,31 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11766
11761
  console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), d([]), y(!0);
11767
11762
  return;
11768
11763
  }
11769
- if (!t || !o) {
11764
+ if (!n || !o) {
11770
11765
  console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), d([]), y(!0);
11771
11766
  return;
11772
11767
  }
11773
- const T = await fetch(Dt(t, `/instances/${o}/${S}`));
11768
+ const T = await fetch(Dt(n, `/instances/${o}/${S}`));
11774
11769
  if (!T.ok) {
11775
11770
  console.warn(`[ExtensionSetup] Instance not found or failed to load: ${S}`), d([]), y(!0);
11776
11771
  return;
11777
11772
  }
11778
- const A = await T.json(), O = ms(typeof window < "u" ? window.location.search : ""), P = await zc(A, O), { tokens: Q, errors: ie } = await bb(P, t, o, O);
11779
- d(P), c(O), g(new Map(Q)), h(ie);
11773
+ const A = await T.json(), M = ms(typeof window < "u" ? window.location.search : ""), P = await zc(A, M), { tokens: Q, errors: ie } = await bb(P, n, o, M);
11774
+ d(P), c(M), g(new Map(Q)), h(ie);
11780
11775
  } catch (T) {
11781
11776
  console.error("Failed to load extensions:", T);
11782
11777
  } finally {
11783
11778
  y(!0);
11784
11779
  }
11785
11780
  })();
11786
- }, [e, o, t]), ce(() => {
11787
- if (!t || !o || l.length === 0)
11781
+ }, [e, o, n]), ce(() => {
11782
+ if (!n || !o || l.length === 0)
11788
11783
  return;
11789
11784
  const S = setInterval(async () => {
11790
11785
  const T = [];
11791
11786
  await Promise.all(
11792
11787
  l.filter((A) => A.manifest.permissions.includes("data:fetch")).map(async (A) => {
11793
- const O = u.find((Z) => Z.extensionId === A.id), P = O == null ? void 0 : O.token, Q = O == null ? void 0 : O.mode, ie = Dt(t, "/proxy-token"), G = await fetch(ie, {
11788
+ const M = u.find((Z) => Z.extensionId === A.id), P = M == null ? void 0 : M.token, Q = M == null ? void 0 : M.mode, ie = Dt(n, "/proxy-token"), G = await fetch(ie, {
11794
11789
  method: "POST",
11795
11790
  headers: { "Content-Type": "application/json" },
11796
11791
  body: JSON.stringify({
@@ -11807,25 +11802,25 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11807
11802
  console.warn(`[embeddables] Proxy token refresh failed for extension ${A.id} (${G.status}) — using stale token`);
11808
11803
  })
11809
11804
  ), T.length > 0 && g((A) => {
11810
- const O = new Map(A);
11805
+ const M = new Map(A);
11811
11806
  for (const [P, Q] of T)
11812
- O.set(P, Q);
11813
- return O;
11807
+ M.set(P, Q);
11808
+ return M;
11814
11809
  });
11815
11810
  }, 3300 * 1e3);
11816
11811
  return () => clearInterval(S);
11817
- }, [l, u, t, o]), ce(() => {
11812
+ }, [l, u, n, o]), ce(() => {
11818
11813
  if (m.size === 0)
11819
11814
  return;
11820
11815
  const I = (S) => {
11821
11816
  const T = S.data;
11822
11817
  if ((T == null ? void 0 : T.type) !== "extension-ready")
11823
11818
  return;
11824
- const A = T.extensionId, O = l.find((ie) => ie.id === A);
11825
- if (!(O != null && O.bundleUrl))
11819
+ const A = T.extensionId, M = l.find((ie) => ie.id === A);
11820
+ if (!(M != null && M.bundleUrl))
11826
11821
  return;
11827
11822
  const P = u.find((ie) => ie.extensionId === A);
11828
- if (Oc(O.bundleUrl) && (P == null ? void 0 : P.mode) !== "staging")
11823
+ if (Oc(M.bundleUrl) && (P == null ? void 0 : P.mode) !== "staging")
11829
11824
  return;
11830
11825
  const Q = m.get(A);
11831
11826
  Q && ct(A, { type: "extension-encryption-key", encryptionKey: Q.encryptionKey });
@@ -11834,24 +11829,24 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11834
11829
  }, [l, u, m]);
11835
11830
  const E = _e((I, S) => {
11836
11831
  const T = uo();
11837
- for (const [A, O] of T)
11838
- O.manifest.permissions.includes("identity:subscribe") && ct(A, {
11832
+ for (const [A, M] of T)
11833
+ M.manifest.permissions.includes("identity:subscribe") && ct(A, {
11839
11834
  type: "extension-event",
11840
11835
  eventType: I,
11841
11836
  payload: { type: I, state: S, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
11842
11837
  });
11843
- }, []), R = _e(async (I) => {
11838
+ }, []), k = _e(async (I) => {
11844
11839
  const S = uo(), T = [];
11845
- for (const [O, P] of S) {
11840
+ for (const [M, P] of S) {
11846
11841
  if (!P.manifest.permissions.includes("identity:extend")) continue;
11847
11842
  const Q = new Promise((ie) => {
11848
- const G = `enrich_${O}_${Date.now()}`, Z = (Y) => {
11843
+ const G = `enrich_${M}_${Date.now()}`, Z = (Y) => {
11849
11844
  const X = Y.data;
11850
11845
  (X == null ? void 0 : X.type) !== "identity-extend-response" || X.id !== G || (window.removeEventListener("message", Z), X.additionalClaims ? ie(X.additionalClaims) : ie({}));
11851
11846
  };
11852
11847
  window.addEventListener("message", Z), setTimeout(() => {
11853
11848
  window.removeEventListener("message", Z), ie({});
11854
- }, 5e3), ct(O, {
11849
+ }, 5e3), ct(M, {
11855
11850
  type: "identity-extend-request",
11856
11851
  id: G,
11857
11852
  claims: I
@@ -11863,10 +11858,10 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11863
11858
  return {};
11864
11859
  const A = await Promise.all(T);
11865
11860
  return Object.assign({}, ...A);
11866
- }, []), M = _e(async (I) => {
11867
- if (!t || !o || !e)
11868
- return console.warn("[embeddables] signIdentity skipped — missing:", { apiBase: !!t, appId: !!o, instanceId: !!e }), null;
11869
- const S = Dt(t, `/instances/${o}/${e}/identity`);
11861
+ }, []), O = _e(async (I) => {
11862
+ if (!n || !o || !e)
11863
+ return console.warn("[embeddables] signIdentity skipped — missing:", { apiBase: !!n, appId: !!o, instanceId: !!e }), null;
11864
+ const S = Dt(n, `/instances/${o}/${e}/identity`);
11870
11865
  console.log("[embeddables] Calling identity sign:", { url: S, claims: Object.keys(I) });
11871
11866
  try {
11872
11867
  const T = await fetch(S, {
@@ -11881,7 +11876,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11881
11876
  } catch (T) {
11882
11877
  return console.warn("[embeddables] Identity sign request failed:", T), null;
11883
11878
  }
11884
- }, [t, o, e]), z = _e((I) => {
11879
+ }, [n, o, e]), L = _e((I) => {
11885
11880
  const S = window.zE;
11886
11881
  S && S("messenger", "loginUser", async (T) => {
11887
11882
  T(I);
@@ -11889,33 +11884,33 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11889
11884
  }, []), B = _e(() => {
11890
11885
  const I = window.zE;
11891
11886
  I && I("messenger", "logoutUser");
11892
- }, []), U = _e((I) => {
11887
+ }, []), j = _e((I) => {
11893
11888
  console.log("[embeddables] Running sign lifecycle for user:", I.id);
11894
11889
  const { email: S, name: T } = I, A = { external_id: String(I.id) };
11895
11890
  (async () => {
11896
- const O = await R({ ...A, email: S, name: T });
11897
- console.log("[embeddables] Enriched claims:", O);
11898
- const P = await M({
11891
+ const M = await k({ ...A, email: S, name: T });
11892
+ console.log("[embeddables] Enriched claims:", M);
11893
+ const P = await O({
11899
11894
  ...A,
11900
- ...O,
11895
+ ...M,
11901
11896
  email: S,
11902
11897
  name: T
11903
11898
  });
11904
- console.log("[embeddables] Sign result:", { hasToken: !!P }), P && z(P);
11899
+ console.log("[embeddables] Sign result:", { hasToken: !!P }), P && L(P);
11905
11900
  })();
11906
- }, [R, M, z]), j = _e((I) => {
11907
- if (k.length > 0 && N.current.size < k.length) {
11908
- console.log(`[embeddables] Deferring sign lifecycle — waiting for identity:extend extensions: ${N.current.size}/${k.length} ready`), C.current = I;
11901
+ }, [k, O, L]), U = _e((I) => {
11902
+ if (R.length > 0 && N.current.size < R.length) {
11903
+ console.log(`[embeddables] Deferring sign lifecycle — waiting for identity:extend extensions: ${N.current.size}/${R.length} ready`), C.current = I;
11909
11904
  return;
11910
11905
  }
11911
- console.log("[embeddables] No identity:extend extensions (or all ready) — signing immediately"), U(I);
11912
- }, [k, U]);
11906
+ console.log("[embeddables] No identity:extend extensions (or all ready) — signing immediately"), j(I);
11907
+ }, [R, j]);
11913
11908
  ce(() => {
11914
11909
  if (!v) {
11915
11910
  console.log("[embeddables] Identity effect skipped — extensions not loaded yet");
11916
11911
  return;
11917
11912
  }
11918
- if (console.log("[embeddables] Identity effect running", { initialized: v, customerId: !!s, extendExtensions: k.length }), s) {
11913
+ if (console.log("[embeddables] Identity effect running", { initialized: v, customerId: !!s, extendExtensions: R.length }), s) {
11919
11914
  console.log("[embeddables] Identity from props:", { customerId: s, customerEmail: a, customerName: i });
11920
11915
  const I = {
11921
11916
  authenticated: !0,
@@ -11928,21 +11923,21 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11928
11923
  };
11929
11924
  x((S) => {
11930
11925
  var T, A;
11931
- return S.authenticated && ((T = S.user) == null ? void 0 : T.id) === ((A = I.user) == null ? void 0 : A.id) ? S : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), j(I.user), E("identity.login", I), I);
11926
+ return S.authenticated && ((T = S.user) == null ? void 0 : T.id) === ((A = I.user) == null ? void 0 : A.id) ? S : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), U(I.user), E("identity.login", I), I);
11932
11927
  });
11933
11928
  } else {
11934
11929
  if (s === void 0)
11935
11930
  return;
11936
11931
  x((I) => I.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), B(), E("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : I);
11937
11932
  }
11938
- }, [v, s, a, i, k, j, E, B]), ce(() => {
11933
+ }, [v, s, a, i, R, U, E, B]), ce(() => {
11939
11934
  if (!v || s !== void 0)
11940
11935
  return;
11941
11936
  const I = () => {
11942
11937
  const T = document.getElementById("stackable-identity");
11943
11938
  if (T)
11944
11939
  try {
11945
- const A = JSON.parse(T.textContent ?? "{}"), O = {
11940
+ const A = JSON.parse(T.textContent ?? "{}"), M = {
11946
11941
  authenticated: !0,
11947
11942
  user: {
11948
11943
  id: String(A.customerId ?? ""),
@@ -11953,7 +11948,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11953
11948
  };
11954
11949
  x((P) => {
11955
11950
  var Q, ie;
11956
- return P.authenticated && ((Q = P.user) == null ? void 0 : Q.id) === ((ie = O.user) == null ? void 0 : ie.id) ? P : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), j(O.user), E("identity.login", O), O);
11951
+ return P.authenticated && ((Q = P.user) == null ? void 0 : Q.id) === ((ie = M.user) == null ? void 0 : ie.id) ? P : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), U(M.user), E("identity.login", M), M);
11957
11952
  });
11958
11953
  } catch {
11959
11954
  console.warn("[embeddables] Failed to parse #stackable-identity JSON");
@@ -11964,15 +11959,15 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11964
11959
  I();
11965
11960
  const S = new MutationObserver(I);
11966
11961
  return S.observe(document.head, { childList: !0, subtree: !0 }), S.observe(document.body, { childList: !0, subtree: !0 }), () => S.disconnect();
11967
- }, [v, s, j, E, B]), ce(() => {
11962
+ }, [v, s, U, E, B]), ce(() => {
11968
11963
  if (!w.authenticated)
11969
11964
  return;
11970
11965
  const I = (S) => {
11971
11966
  const T = S.data;
11972
11967
  if ((T == null ? void 0 : T.type) !== "extension-ready")
11973
11968
  return;
11974
- const A = T.extensionId, O = l.find((P) => P.id === A);
11975
- O != null && O.manifest.permissions.includes("identity:subscribe") && ct(A, {
11969
+ const A = T.extensionId, M = l.find((P) => P.id === A);
11970
+ M != null && M.manifest.permissions.includes("identity:subscribe") && ct(A, {
11976
11971
  type: "extension-event",
11977
11972
  eventType: "identity.login",
11978
11973
  payload: { type: "identity.login", state: w, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
@@ -11980,35 +11975,35 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11980
11975
  };
11981
11976
  return window.addEventListener("message", I), () => window.removeEventListener("message", I);
11982
11977
  }, [w, l]), ce(() => {
11983
- if (k.length === 0)
11978
+ if (R.length === 0)
11984
11979
  return;
11985
11980
  const I = (T) => {
11986
11981
  const A = T.data;
11987
11982
  if ((A == null ? void 0 : A.type) !== "extension-ready")
11988
11983
  return;
11989
- const O = A.extensionId;
11990
- if (k.includes(O) && (N.current.add(O), console.log(`[embeddables] identity:extend extension ready: ${O} (${N.current.size}/${k.length})`), N.current.size >= k.length && C.current)) {
11984
+ const M = A.extensionId;
11985
+ if (R.includes(M) && (N.current.add(M), console.log(`[embeddables] identity:extend extension ready: ${M} (${N.current.size}/${R.length})`), N.current.size >= R.length && C.current)) {
11991
11986
  console.log("[embeddables] All identity:extend extensions ready, running deferred sign lifecycle");
11992
11987
  const P = C.current;
11993
- C.current = null, U(P);
11988
+ C.current = null, j(P);
11994
11989
  }
11995
11990
  };
11996
11991
  window.addEventListener("message", I);
11997
11992
  const S = setTimeout(() => {
11998
11993
  if (C.current) {
11999
- console.warn(`[embeddables] identity:extend timeout (5s) — signing with ${N.current.size}/${k.length} extensions ready`);
11994
+ console.warn(`[embeddables] identity:extend timeout (5s) — signing with ${N.current.size}/${R.length} extensions ready`);
12000
11995
  const T = C.current;
12001
- C.current = null, U(T);
11996
+ C.current = null, j(T);
12002
11997
  }
12003
11998
  }, 5e3);
12004
11999
  return () => {
12005
12000
  window.removeEventListener("message", I), clearTimeout(S);
12006
12001
  };
12007
- }, [k, U]);
12002
+ }, [R, j]);
12008
12003
  const K = fn(
12009
12004
  () => ({
12010
12005
  // TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
12011
- "data.query": async (I) => Al(I, n),
12006
+ "data.query": async (I) => Al(I, t),
12012
12007
  "data.fetch": async (I, S) => {
12013
12008
  const T = m.get(I);
12014
12009
  if (!T)
@@ -12024,7 +12019,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
12024
12019
  method: S.method ?? "GET",
12025
12020
  headers: S.headers ?? {},
12026
12021
  body: S.body ?? null
12027
- }, O = Dt(t, "/proxy"), P = await fetch(O, {
12022
+ }, M = Dt(n, "/proxy"), P = await fetch(M, {
12028
12023
  method: "POST",
12029
12024
  headers: {
12030
12025
  "Content-Type": "application/json",
@@ -12049,11 +12044,11 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
12049
12044
  ...S.closeButton != null && { closeButton: S.closeButton }
12050
12045
  };
12051
12046
  if (S.fetch) {
12052
- const A = (P) => new Promise((Q) => setTimeout(Q, P)), O = Promise.all([
12047
+ const A = (P) => new Promise((Q) => setTimeout(Q, P)), M = Promise.all([
12053
12048
  K["data.fetch"](I, S.fetch),
12054
12049
  A(vb)
12055
12050
  ]).then(([P]) => P);
12056
- yt.promise(O, {
12051
+ yt.promise(M, {
12057
12052
  loading: S.loading ?? S.message,
12058
12053
  success: S.success ?? S.message,
12059
12054
  error: S.error ?? "Something went wrong",
@@ -12090,7 +12085,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
12090
12085
  }),
12091
12086
  "identity.read": async () => w
12092
12087
  }),
12093
- [t, o, n, s, a, i, m, w]
12088
+ [n, o, t, s, a, i, m, w]
12094
12089
  );
12095
12090
  return v ? /* @__PURE__ */ $(Fe, { children: [
12096
12091
  /* @__PURE__ */ p(tc, { extensions: l, capabilityHandlers: K, components: ub(), children: r }),
@@ -12210,7 +12205,7 @@ const kb = ({ ...e }) => {
12210
12205
  }
12211
12206
  })();
12212
12207
  }, [e, t]), { customer: n, loading: r, error: a };
12213
- }, Pb = ({ customerId: e, customerEmail: t, hostBase: n, children: o }) => {
12208
+ }, Pb = ({ customerId: e, customerEmail: t, queryApiBase: n, children: o }) => {
12214
12209
  var l, d;
12215
12210
  const { customer: r, loading: s, error: a } = Tb(e, n);
12216
12211
  if (s)
@@ -12311,7 +12306,8 @@ const kb = ({ ...e }) => {
12311
12306
  }, lo = 25, co = 75, Hb = ({
12312
12307
  header: e,
12313
12308
  buttons: t,
12314
- hostBase: n,
12309
+ queryApiBase: n,
12310
+ // TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
12315
12311
  customerId: o = "",
12316
12312
  customerEmail: r = "",
12317
12313
  primaryPercent: s = 50
@@ -12319,7 +12315,7 @@ const kb = ({ ...e }) => {
12319
12315
  const a = Math.max(
12320
12316
  lo,
12321
12317
  Math.min(co, s)
12322
- ), [i, l] = le("account"), [d, u] = le(a), [c, m] = le(!1), [g, b] = le(!1), [h, v] = le(!1), y = We(null), w = _e(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
12318
+ ), [i, l] = le("account"), [d, u] = le(a), [c, m] = le(!1), [g, b] = le(null), [, h] = le(!1), [v, y] = le(!1), w = We(null), x = _e(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
12323
12319
  mode: "embedded",
12324
12320
  conversationList: { targetElement: "#widget_conversations" },
12325
12321
  messageLog: { targetElement: "#widget_messages" }
@@ -12329,67 +12325,67 @@ const kb = ({ ...e }) => {
12329
12325
  messageLog: { hideHeader: !0 }
12330
12326
  }), !0), []);
12331
12327
  ce(() => {
12332
- if (w()) {
12333
- b(!0);
12328
+ if (x()) {
12329
+ h(!0);
12334
12330
  return;
12335
12331
  }
12336
- const k = setInterval(() => {
12337
- w() && (b(!0), clearInterval(k));
12338
- }, 100), E = setTimeout(() => {
12339
- clearInterval(k), console.warn("Zendesk widget failed to load after 10 seconds");
12332
+ const E = setInterval(() => {
12333
+ x() && (h(!0), clearInterval(E));
12334
+ }, 100), k = setTimeout(() => {
12335
+ clearInterval(E), b("Zendesk Messenger could not be loaded. Check that a valid Snippet Key is configured."), console.warn("Zendesk widget failed to load after 10 seconds");
12340
12336
  }, 1e4);
12341
12337
  return () => {
12342
- clearInterval(k), clearTimeout(E);
12338
+ clearInterval(E), clearTimeout(k);
12343
12339
  };
12344
- }, [w]);
12345
- const x = _e((k) => {
12346
- const { detail: E } = k;
12347
- !window.zE || !(E != null && E.payload) || window.zE("messenger:ui", "newConversation", E.payload);
12340
+ }, [x]);
12341
+ const C = _e((E) => {
12342
+ const { detail: k } = E;
12343
+ !window.zE || !(k != null && k.payload) || window.zE("messenger:ui", "newConversation", k.payload);
12348
12344
  }, []);
12349
- ce(() => (window.addEventListener("ext-action-newConversation", x), () => {
12350
- window.removeEventListener("ext-action-newConversation", x);
12351
- }), [x]), ce(() => {
12352
- if (!h) return;
12353
- const k = (R) => {
12354
- if (!y.current) return;
12355
- const M = y.current.getBoundingClientRect();
12356
- if ((c ? M.width : M.height) === 0) return;
12357
- const B = c ? (R.clientX - M.left) / M.width * 100 : (R.clientY - M.top) / M.height * 100, U = Math.max(
12345
+ ce(() => (window.addEventListener("ext-action-newConversation", C), () => {
12346
+ window.removeEventListener("ext-action-newConversation", C);
12347
+ }), [C]), ce(() => {
12348
+ if (!v) return;
12349
+ const E = (O) => {
12350
+ if (!w.current) return;
12351
+ const L = w.current.getBoundingClientRect();
12352
+ if ((c ? L.width : L.height) === 0) return;
12353
+ const j = c ? (O.clientX - L.left) / L.width * 100 : (O.clientY - L.top) / L.height * 100, U = Math.max(
12358
12354
  lo,
12359
- Math.min(co, B)
12355
+ Math.min(co, j)
12360
12356
  );
12361
12357
  u(U);
12362
- }, E = () => {
12363
- v(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
12358
+ }, k = () => {
12359
+ y(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
12364
12360
  };
12365
- return document.body.style.cursor = c ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", k), window.addEventListener("mouseup", E), window.addEventListener("blur", E), () => {
12366
- window.removeEventListener("mousemove", k), window.removeEventListener("mouseup", E), window.removeEventListener("blur", E), document.body.style.cursor = "", document.body.style.userSelect = "";
12361
+ return document.body.style.cursor = c ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", E), window.addEventListener("mouseup", k), window.addEventListener("blur", k), () => {
12362
+ window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", k), window.removeEventListener("blur", k), document.body.style.cursor = "", document.body.style.userSelect = "";
12367
12363
  };
12368
- }, [h, c]), ce(() => {
12369
- if (!y.current) return;
12370
- const k = y.current, E = () => {
12371
- const M = getComputedStyle(k).flexDirection === "row";
12372
- m(M);
12364
+ }, [v, c]), ce(() => {
12365
+ if (!w.current) return;
12366
+ const E = w.current, k = () => {
12367
+ const L = getComputedStyle(E).flexDirection === "row";
12368
+ m(L);
12373
12369
  };
12374
- E();
12375
- const R = new ResizeObserver(E);
12376
- return R.observe(k), () => {
12377
- R.disconnect();
12370
+ k();
12371
+ const O = new ResizeObserver(k);
12372
+ return O.observe(E), () => {
12373
+ O.disconnect();
12378
12374
  };
12379
12375
  }, []);
12380
- const C = _e((k) => {
12381
- if (k.detail === 2) {
12376
+ const N = _e((E) => {
12377
+ if (E.detail === 2) {
12382
12378
  u(a);
12383
12379
  return;
12384
12380
  }
12385
- k.preventDefault(), v(!0);
12386
- }, [a]), N = { customerId: o, customerEmail: r };
12381
+ E.preventDefault(), y(!0);
12382
+ }, [a]), R = { customerId: o, customerEmail: r };
12387
12383
  return /* @__PURE__ */ $("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
12388
12384
  /* @__PURE__ */ p("style", {
12389
12385
  // eslint-disable-next-line @stylistic/quotes
12390
12386
  children: '@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'
12391
12387
  }),
12392
- /* @__PURE__ */ $("div", { ref: y, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
12388
+ /* @__PURE__ */ $("div", { ref: w, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
12393
12389
  /* @__PURE__ */ $(
12394
12390
  "div",
12395
12391
  {
@@ -12434,11 +12430,11 @@ const kb = ({ ...e }) => {
12434
12430
  ] }),
12435
12431
  /* @__PURE__ */ $("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
12436
12432
  /* @__PURE__ */ $("div", { className: V("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
12437
- /* @__PURE__ */ p(Pb, { customerId: o, customerEmail: r, hostBase: n, children: /* @__PURE__ */ p(
12433
+ /* @__PURE__ */ p(Pb, { customerId: o, customerEmail: r, queryApiBase: n, children: /* @__PURE__ */ p(
12438
12434
  Zt,
12439
12435
  {
12440
12436
  target: "slot.header",
12441
- context: N,
12437
+ context: R,
12442
12438
  className: "flex-none"
12443
12439
  }
12444
12440
  ) }),
@@ -12446,7 +12442,7 @@ const kb = ({ ...e }) => {
12446
12442
  Zt,
12447
12443
  {
12448
12444
  target: "slot.content",
12449
- context: N,
12445
+ context: R,
12450
12446
  className: "flex flex-col gap-2"
12451
12447
  }
12452
12448
  )
@@ -12466,13 +12462,13 @@ const kb = ({ ...e }) => {
12466
12462
  className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
12467
12463
  style: { flexBasis: `${100 - d}%` },
12468
12464
  children: [
12469
- /* @__PURE__ */ p("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ p(_b, {}) }),
12465
+ /* @__PURE__ */ p("div", { className: "flex-1 overflow-hidden", children: g ? /* @__PURE__ */ p("div", { className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground", children: /* @__PURE__ */ p("p", { children: g }) }) : /* @__PURE__ */ p(_b, {}) }),
12470
12466
  /* @__PURE__ */ $("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
12471
12467
  /* @__PURE__ */ p(
12472
12468
  Zt,
12473
12469
  {
12474
12470
  target: "slot.footer",
12475
- context: N,
12471
+ context: R,
12476
12472
  className: "flex items-center gap-1",
12477
12473
  fallback: /* @__PURE__ */ $(Fe, { children: [
12478
12474
  /* @__PURE__ */ p("div", { children: "powered by" }),
@@ -12484,12 +12480,12 @@ const kb = ({ ...e }) => {
12484
12480
  Zt,
12485
12481
  {
12486
12482
  target: "slot.footer-links",
12487
- context: N,
12483
+ context: R,
12488
12484
  className: "flex items-center gap-1",
12489
12485
  separator: /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "/" }),
12490
- render: ({ children: k, index: E }) => /* @__PURE__ */ $(Fe, { children: [
12491
- E === 0 && /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "+" }),
12492
- k
12486
+ render: ({ children: E, index: k }) => /* @__PURE__ */ $(Fe, { children: [
12487
+ k === 0 && /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "+" }),
12488
+ E
12493
12489
  ] })
12494
12490
  }
12495
12491
  )
@@ -12505,7 +12501,7 @@ const kb = ({ ...e }) => {
12505
12501
  c ? "top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize" : "w-full h-3 -mt-2.5 cursor-row-resize"
12506
12502
  ),
12507
12503
  style: c ? { left: `${d}%` } : { top: `${d}%` },
12508
- onMouseDown: C,
12504
+ onMouseDown: N,
12509
12505
  role: "separator",
12510
12506
  "aria-label": "Resize panels",
12511
12507
  "aria-orientation": c ? "vertical" : "horizontal",
@@ -12518,17 +12514,17 @@ const kb = ({ ...e }) => {
12518
12514
  className: V(
12519
12515
  "rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",
12520
12516
  c ? "h-20 w-0.5" : "h-0.5 w-20",
12521
- h ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
12517
+ v ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
12522
12518
  )
12523
12519
  }
12524
12520
  )
12525
12521
  }
12526
12522
  ),
12527
- h && /* @__PURE__ */ p(
12523
+ v && /* @__PURE__ */ p(
12528
12524
  "div",
12529
12525
  {
12530
12526
  className: V("absolute inset-0 z-40", c ? "cursor-col-resize" : "cursor-row-resize"),
12531
- onMouseUp: () => v(!1)
12527
+ onMouseUp: () => y(!1)
12532
12528
  }
12533
12529
  )
12534
12530
  ] })