@q1travel/design-system 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as w, jsx as n, Fragment as ge } from "react/jsx-runtime";
2
2
  import { forwardRef as It, createElement as Yt, useState as H, useRef as T, useEffect as te, useCallback as ce, useLayoutEffect as me, useMemo as Ne, useContext as Dt, createContext as Mt, useId as fe, useSyncExternalStore as on, isValidElement as Xt, Fragment as nt, cloneElement as jn, useReducer as Yn, useImperativeHandle as Xn } from "react";
3
3
  import { createPortal as it, flushSync as Gn } from "react-dom";
4
- const Br = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Jn = (...e) => e.filter((t, r, o) => !!t && t.trim() !== "" && o.indexOf(t) === r).join(" ").trim();
4
+ const Br = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Zn = (...e) => e.filter((t, r, o) => !!t && t.trim() !== "" && o.indexOf(t) === r).join(" ").trim();
5
5
  var Kr = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: 24,
@@ -32,7 +32,7 @@ const Wr = It(
32
32
  height: t,
33
33
  stroke: e,
34
34
  strokeWidth: o ? Number(r) * 24 / Number(t) : r,
35
- className: Jn("lucide", i),
35
+ className: Zn("lucide", i),
36
36
  ...l
37
37
  },
38
38
  [
@@ -46,7 +46,7 @@ const be = (e, t) => {
46
46
  ({ className: o, ...i }, s) => Yt(Wr, {
47
47
  ref: s,
48
48
  iconNode: t,
49
- className: Jn(`lucide-${Br(e)}`, o),
49
+ className: Zn(`lucide-${Br(e)}`, o),
50
50
  ...i
51
51
  })
52
52
  );
@@ -67,7 +67,7 @@ const Vr = be("Calendar", [
67
67
  ["path", { d: "M3 10h18", key: "8toen8" }]
68
68
  ]);
69
69
  const De = be("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
70
- const qe = be("ChevronDown", [
70
+ const Re = be("ChevronDown", [
71
71
  ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
72
72
  ]);
73
73
  const at = be("ChevronLeft", [
@@ -76,7 +76,7 @@ const at = be("ChevronLeft", [
76
76
  const Ee = be("ChevronRight", [
77
77
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
78
78
  ]);
79
- const Zn = be("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
79
+ const Jn = be("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
80
80
  const st = be("CircleAlert", [
81
81
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
82
82
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
@@ -156,7 +156,7 @@ const Gr = be("FolderOpen", [
156
156
  }
157
157
  ]
158
158
  ]);
159
- const Jr = be("Folder", [
159
+ const Zr = be("Folder", [
160
160
  [
161
161
  "path",
162
162
  {
@@ -171,7 +171,7 @@ const Qr = be("Frown", [
171
171
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
172
172
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
173
173
  ]);
174
- const Zr = be("Heart", [
174
+ const Jr = be("Heart", [
175
175
  [
176
176
  "path",
177
177
  {
@@ -425,7 +425,7 @@ function ar(e, t = Oe()) {
425
425
  function _t(e = Oe()) {
426
426
  return e ? Pe(e).blockingCount : 0;
427
427
  }
428
- function is(e = Oe()) {
428
+ function ss(e = Oe()) {
429
429
  if (!e) return null;
430
430
  const t = Pe(e);
431
431
  return t.coordinator || (t.coordinator = {
@@ -457,13 +457,13 @@ function No() {
457
457
  throw new Error("useToast 必须在 ToastProvider 内使用");
458
458
  return e;
459
459
  }
460
- function Jt(e) {
460
+ function Zt(e) {
461
461
  if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return 0;
462
462
  const t = getComputedStyle(document.documentElement).getPropertyValue(e).trim(), r = Number.parseFloat(t);
463
463
  return Number.isNaN(r) ? 0 : t.endsWith("ms") ? r : r * 1e3;
464
464
  }
465
465
  function ko() {
466
- return Jt("--q1-duration-fast");
466
+ return Zt("--q1-duration-fast");
467
467
  }
468
468
  function xo(e) {
469
469
  const t = getComputedStyle(e), r = Number.parseFloat(t.paddingTop) + Number.parseFloat(t.paddingBottom), o = Math.max(
@@ -472,7 +472,7 @@ function xo(e) {
472
472
  );
473
473
  return Math.round(o + r);
474
474
  }
475
- function as({ children: e }) {
475
+ function cs({ children: e }) {
476
476
  const [t, r] = H([]), [o, i] = H(() => _t()), s = T(0), a = T(/* @__PURE__ */ new Map()), l = T(
477
477
  new Set(typeof document < "u" && document.hidden ? ["hidden"] : [])
478
478
  ), u = T(null), p = T(null), d = T(0), f = T(null), [_, x] = H(!1);
@@ -487,7 +487,7 @@ function as({ children: e }) {
487
487
  h && (window.clearTimeout(h.handle), a.current.delete(I));
488
488
  const C = u.current, M = document.activeElement instanceof HTMLElement ? document.activeElement : null, L = C?.querySelector(`.q1-toast[data-toast-id="${I}"]`);
489
489
  if (M && L?.contains(M)) {
490
- const k = [...C?.querySelectorAll('.q1-toast[data-visible="true"]:not([data-removed="true"])') ?? []].reverse().find((R) => R !== L && !R.inert)?.querySelector("button:not(:disabled), a[href]"), N = f.current;
490
+ const k = [...C?.querySelectorAll('.q1-toast[data-visible="true"]:not([data-removed="true"])') ?? []].reverse().find((q) => q !== L && !q.inert)?.querySelector("button:not(:disabled), a[href]"), N = f.current;
491
491
  k ? k.focus() : N?.isConnected && !N.closest("[inert]") && N.focus();
492
492
  }
493
493
  r((E) => E.map((k) => k.id === I ? { ...k, removed: !0 } : k)), window.setTimeout(() => {
@@ -536,16 +536,16 @@ function as({ children: e }) {
536
536
  (N) => N.dataset.removed !== "true"
537
537
  ), C = h.filter((N) => Number(N.dataset.toastId ?? 0) > d.current);
538
538
  if (C.length > 0 && p.current) {
539
- const N = C.map((R) => {
540
- const P = R.querySelector(".q1-toast__title")?.textContent?.trim() ?? "", z = R.querySelector(".q1-toast__description")?.textContent?.trim() ?? "", V = P && z && !/[。!?.!?]$/u.test(P) ? "。" : " ";
539
+ const N = C.map((q) => {
540
+ const P = q.querySelector(".q1-toast__title")?.textContent?.trim() ?? "", z = q.querySelector(".q1-toast__description")?.textContent?.trim() ?? "", V = P && z && !/[。!?.!?]$/u.test(P) ? "。" : " ";
541
541
  return `${P}${z ? `${V}${z}` : ""}`;
542
542
  });
543
543
  p.current.replaceChildren(document.createTextNode(N.join(";"))), d.current = Number(C.at(-1)?.dataset.toastId ?? d.current);
544
544
  } else h.length === 0 && p.current?.replaceChildren();
545
545
  let M = 0, L = 0;
546
546
  for (let N = h.length - 1; N >= 0; N -= 1) {
547
- const R = h[N], P = h.length - 1 - N, z = xo(R);
548
- P === 0 && (L = z), R.style.setProperty("--depth", String(P)), R.style.setProperty("--h", `${z}px`), R.style.setProperty("--y", `${-M}px`), R.style.zIndex = String(100 + N), R.dataset.front = String(P === 0), R.dataset.visible = String(P < Ot), M += z + yn;
547
+ const q = h[N], P = h.length - 1 - N, z = xo(q);
548
+ P === 0 && (L = z), q.style.setProperty("--depth", String(P)), q.style.setProperty("--h", `${z}px`), q.style.setProperty("--y", `${-M}px`), q.style.zIndex = String(100 + N), q.dataset.front = String(P === 0), q.dataset.visible = String(P < Ot), M += z + yn;
549
549
  }
550
550
  I.style.setProperty("--front-h", `${L}px`);
551
551
  const E = L + Math.min(h.length - 1, Ot - 1) * wo, k = h.length === 0 ? 0 : _ ? Math.max(M - yn, 0) : E;
@@ -606,17 +606,17 @@ function as({ children: e }) {
606
606
  }
607
607
  function Po({ toast: e, interactionInert: t, controlsDisabled: r, onDismiss: o }) {
608
608
  const i = T(null), [s, a] = H(!1), [l, u] = H(!0), [p, d] = H(!1), [f, _] = H(!1), [x, g] = H(null), c = T(null), b = T(null), m = T({ x: 0, y: 0 }), v = T(null), D = T(null);
609
- te(() => (a(!0), v.current = window.setTimeout(() => u(!1), Jt("--q1-duration-base")), () => {
609
+ te(() => (a(!0), v.current = window.setTimeout(() => u(!1), Zt("--q1-duration-base")), () => {
610
610
  v.current !== null && window.clearTimeout(v.current), D.current !== null && window.clearTimeout(D.current);
611
611
  }), []);
612
612
  const I = e.tone === "default" ? null : yo[e.tone];
613
- function h(N, R = !0) {
613
+ function h(N, q = !0) {
614
614
  const P = b.current;
615
615
  c.current = null, b.current = null, m.current = { x: 0, y: 0 };
616
616
  const z = N?.currentTarget ?? i.current;
617
- z && P !== null && z.hasPointerCapture(P) && z.releasePointerCapture(P), d(!1), _(R), D.current !== null && window.clearTimeout(D.current), R && !window.matchMedia("(prefers-reduced-motion: reduce)").matches ? D.current = window.setTimeout(
617
+ z && P !== null && z.hasPointerCapture(P) && z.releasePointerCapture(P), d(!1), _(q), D.current !== null && window.clearTimeout(D.current), q && !window.matchMedia("(prefers-reduced-motion: reduce)").matches ? D.current = window.setTimeout(
618
618
  () => _(!1),
619
- Jt("--q1-duration-fast")
619
+ Zt("--q1-duration-fast")
620
620
  ) : _(!1);
621
621
  const V = i.current;
622
622
  V?.style.removeProperty("--swipe-x"), V?.style.removeProperty("--swipe-y"), V?.style.removeProperty("opacity");
@@ -635,17 +635,17 @@ function Po({ toast: e, interactionInert: t, controlsDisabled: r, onDismiss: o }
635
635
  }
636
636
  function M(N) {
637
637
  if (!c.current || b.current !== N.pointerId) return;
638
- const R = N.clientX - c.current.x, P = N.clientY - c.current.y, z = (Y) => Math.sign(Y) * Math.log1p(Math.abs(Y)) * 2;
639
- m.current = { x: R > 0 ? R : z(R), y: P > 0 ? P : z(P) }, !p && (Math.abs(R) > 2 || Math.abs(P) > 2) && d(!0);
638
+ const q = N.clientX - c.current.x, P = N.clientY - c.current.y, z = (Y) => Math.sign(Y) * Math.log1p(Math.abs(Y)) * 2;
639
+ m.current = { x: q > 0 ? q : z(q), y: P > 0 ? P : z(P) }, !p && (Math.abs(q) > 2 || Math.abs(P) > 2) && d(!0);
640
640
  const V = i.current;
641
641
  if (!V) return;
642
642
  V.style.setProperty("--swipe-x", `${m.current.x}px`), V.style.setProperty("--swipe-y", `${m.current.y}px`);
643
- const B = Math.max(0, Math.abs(R) >= Math.abs(P) ? R : P), $ = 1 - 0.35 * Math.min(B / wn, 1);
643
+ const B = Math.max(0, Math.abs(q) >= Math.abs(P) ? q : P), $ = 1 - 0.35 * Math.min(B / wn, 1);
644
644
  V.style.opacity = String($);
645
645
  }
646
646
  function L(N) {
647
647
  if (!c.current || b.current !== N.pointerId) return;
648
- const { x: R, y: P } = m.current, z = Math.max(1, Date.now() - c.current.time), V = Math.abs(R) >= Math.abs(P) ? "x" : "y", B = V === "x" ? R : P;
648
+ const { x: q, y: P } = m.current, z = Math.max(1, Date.now() - c.current.time), V = Math.abs(q) >= Math.abs(P) ? "x" : "y", B = V === "x" ? q : P;
649
649
  if (B > 0 && (B >= wn || B / z > vo)) {
650
650
  h(N, !1), g(V === "x" ? "right" : "down"), o(e.id);
651
651
  return;
@@ -936,7 +936,7 @@ function ot(e) {
936
936
  ariaKeyshortcuts: E,
937
937
  "aria-keyshortcuts": k,
938
938
  "aria-describedby": N,
939
- "aria-disabled": R,
939
+ "aria-disabled": q,
940
940
  "aria-pressed": P,
941
941
  tabIndex: z,
942
942
  onFocus: V,
@@ -972,7 +972,7 @@ function ot(e) {
972
972
  type: b,
973
973
  className: O,
974
974
  disabled: c || x || void 0,
975
- "aria-disabled": A ? !0 : R,
975
+ "aria-disabled": A ? !0 : q,
976
976
  "aria-busy": x || void 0,
977
977
  "aria-pressed": d === void 0 ? P : d,
978
978
  tabIndex: A ? 0 : z,
@@ -1024,7 +1024,7 @@ function Eo(e) {
1024
1024
  ariaLabel: E,
1025
1025
  ariaKeyshortcuts: k,
1026
1026
  "aria-keyshortcuts": N,
1027
- "aria-describedby": R,
1027
+ "aria-describedby": q,
1028
1028
  "aria-disabled": P,
1029
1029
  "aria-busy": z,
1030
1030
  tabIndex: V,
@@ -1050,12 +1050,12 @@ function Eo(e) {
1050
1050
  }),
1051
1051
  "button-link",
1052
1052
  t === "pointer" ? "button-link--busy-motion-pointer" : ""
1053
- ), q = b || s || l, j = L ?? E, Z = N ?? k;
1053
+ ), R = b || s || l, j = L ?? E, J = N ?? k;
1054
1054
  Q && !j?.trim() && console.warn("ButtonLink: 缺少 aria-label,纯图标按钮必须提供可访问名称。"), te(() => {
1055
1055
  y ? A && t === "pointer" ? o.current = !0 : !o.current && t === "pointer" && r(void 0) : (o.current = !1, t === "pointer" && r(void 0));
1056
1056
  }, [t, A, y]);
1057
1057
  const ne = (U) => {
1058
- if (q) {
1058
+ if (R) {
1059
1059
  U.preventDefault();
1060
1060
  return;
1061
1061
  }
@@ -1070,13 +1070,13 @@ function Eo(e) {
1070
1070
  ...X,
1071
1071
  ref: O,
1072
1072
  className: S,
1073
- href: q ? void 0 : i,
1074
- "aria-disabled": q ? !0 : P,
1073
+ href: R ? void 0 : i,
1074
+ "aria-disabled": R ? !0 : P,
1075
1075
  "aria-busy": l ? !0 : z,
1076
1076
  tabIndex: b || l ? -1 : s ? 0 : V,
1077
1077
  "aria-label": j,
1078
- "aria-keyshortcuts": Z,
1079
- "aria-describedby": R,
1078
+ "aria-keyshortcuts": J,
1079
+ "aria-describedby": q,
1080
1080
  onClick: ne,
1081
1081
  onFocus: B,
1082
1082
  onBlur: $,
@@ -1097,7 +1097,7 @@ function So(e) {
1097
1097
  )
1098
1098
  );
1099
1099
  }
1100
- function ss({ href: e, tone: t = "default", external: r, className: o, children: i, ref: s, ...a }) {
1100
+ function ls({ href: e, tone: t = "default", external: r, className: o, children: i, ref: s, ...a }) {
1101
1101
  const l = ie("q1-link", t !== "default" ? `q1-link--${t}` : "", o ?? "");
1102
1102
  return e ? /* @__PURE__ */ w(
1103
1103
  "a",
@@ -1114,7 +1114,7 @@ function ss({ href: e, tone: t = "default", external: r, className: o, children:
1114
1114
  }
1115
1115
  ) : /* @__PURE__ */ n("span", { ...So(a), className: ie(l, "q1-link--static"), children: i });
1116
1116
  }
1117
- const Ro = [
1117
+ const qo = [
1118
1118
  "button",
1119
1119
  "a[href]",
1120
1120
  "input",
@@ -1128,11 +1128,11 @@ const Ro = [
1128
1128
  '[role="combobox"]',
1129
1129
  '[role="slider"]',
1130
1130
  '[role="spinbutton"]'
1131
- ].join(", "), qo = /* @__PURE__ */ new Set(["button", "checkbox", "image", "reset", "submit"]);
1131
+ ].join(", "), Ro = /* @__PURE__ */ new Set(["button", "checkbox", "image", "reset", "submit"]);
1132
1132
  function $o(e) {
1133
- return e.tagName === "INPUT" ? !qo.has(e.type) : e.tagName === "SELECT" || e.tagName === "TEXTAREA" || e.isContentEditable ? !0 : ["combobox", "radio", "slider", "spinbutton"].includes(e.getAttribute("role") ?? "");
1133
+ return e.tagName === "INPUT" ? !Ro.has(e.type) : e.tagName === "SELECT" || e.tagName === "TEXTAREA" || e.isContentEditable ? !0 : ["combobox", "radio", "slider", "spinbutton"].includes(e.getAttribute("role") ?? "");
1134
1134
  }
1135
- function cs({
1135
+ function us({
1136
1136
  "aria-label": e,
1137
1137
  orientation: t = "horizontal",
1138
1138
  children: r,
@@ -1141,7 +1141,7 @@ function cs({
1141
1141
  const i = T(null), s = T(null), a = T(0), l = T(!1), u = ce(
1142
1142
  () => {
1143
1143
  const g = i.current;
1144
- return g ? Array.from(g.querySelectorAll(Ro)).filter(
1144
+ return g ? Array.from(g.querySelectorAll(qo)).filter(
1145
1145
  (c) => !c.matches(":disabled") && !(c.tagName === "INPUT" && c.type === "hidden") && c.closest('[role="toolbar"]') === g && !c.closest('[hidden], [inert], [aria-hidden="true"]')
1146
1146
  ) : [];
1147
1147
  },
@@ -1285,7 +1285,7 @@ const pr = Mt(!1);
1285
1285
  function Fe(e, t) {
1286
1286
  return `${e}-${t ? "message" : "description"}`;
1287
1287
  }
1288
- function Rt({
1288
+ function qt({
1289
1289
  controlId: e,
1290
1290
  label: t,
1291
1291
  description: r,
@@ -1335,7 +1335,7 @@ function Ye(...e) {
1335
1335
  };
1336
1336
  };
1337
1337
  }
1338
- function qt(e, t, r) {
1338
+ function Rt(e, t, r) {
1339
1339
  te(() => {
1340
1340
  }, [t, e, r]);
1341
1341
  }
@@ -1363,9 +1363,9 @@ function Ao({
1363
1363
  disabled: I,
1364
1364
  ...h
1365
1365
  }) {
1366
- const C = fe(), M = e ?? C, L = t === void 0, E = T(null), k = T(null), N = Ne(() => Ye(E, a), [a]), [R, P] = H(!1), [z, V] = H(null), [B, $] = H(!1), Y = b ?? R, G = (q) => {
1366
+ const C = fe(), M = e ?? C, L = t === void 0, E = T(null), k = T(null), N = Ne(() => Ye(E, a), [a]), [q, P] = H(!1), [z, V] = H(null), [B, $] = H(!1), Y = b ?? q, G = (R) => {
1367
1367
  const j = !Y;
1368
- V(q ? j : null), b === void 0 && P(j), m?.(j);
1368
+ V(R ? j : null), b === void 0 && P(j), m?.(j);
1369
1369
  }, F = z === Y;
1370
1370
  te(() => {
1371
1371
  if (z === null) return;
@@ -1373,21 +1373,21 @@ function Ao({
1373
1373
  V(null);
1374
1374
  return;
1375
1375
  }
1376
- let q = !1;
1376
+ let R = !1;
1377
1377
  const j = window.requestAnimationFrame(() => {
1378
- const Z = Array.from(
1378
+ const J = Array.from(
1379
1379
  k.current?.querySelectorAll(".input-control__reveal-icon") ?? []
1380
1380
  ).flatMap((ne) => ne.getAnimations());
1381
- if (Z.length === 0) {
1381
+ if (J.length === 0) {
1382
1382
  V((ne) => ne === z ? null : ne);
1383
1383
  return;
1384
1384
  }
1385
- Promise.allSettled(Z.map((ne) => ne.finished)).then(() => {
1386
- q || V((ne) => ne === z ? null : ne);
1385
+ Promise.allSettled(J.map((ne) => ne.finished)).then(() => {
1386
+ R || V((ne) => ne === z ? null : ne);
1387
1387
  });
1388
1388
  });
1389
1389
  return () => {
1390
- q = !0, window.cancelAnimationFrame(j);
1390
+ R = !0, window.cancelAnimationFrame(j);
1391
1391
  };
1392
1392
  }, [Y, z]);
1393
1393
  const O = c ? /* @__PURE__ */ n(
@@ -1398,24 +1398,24 @@ function Ao({
1398
1398
  size: x === "xs" ? "sm" : x,
1399
1399
  "aria-label": Y ? D : v,
1400
1400
  disabled: I,
1401
- onPointerDown: (q) => {
1402
- q.button === 0 && $(!0);
1401
+ onPointerDown: (R) => {
1402
+ R.button === 0 && $(!0);
1403
1403
  },
1404
1404
  onPointerUp: () => $(!1),
1405
1405
  onPointerLeave: () => $(!1),
1406
1406
  onPointerCancel: () => $(!1),
1407
1407
  onBlur: () => $(!1),
1408
- onKeyDown: (q) => {
1409
- q.key !== "Enter" && q.key !== " " || ($(!1), q.currentTarget.getAnimations().forEach((j) => j.cancel()));
1408
+ onKeyDown: (R) => {
1409
+ R.key !== "Enter" && R.key !== " " || ($(!1), R.currentTarget.getAnimations().forEach((j) => j.cancel()));
1410
1410
  },
1411
- onClick: (q) => G(q.detail > 0),
1411
+ onClick: (R) => G(R.detail > 0),
1412
1412
  children: /* @__PURE__ */ w(
1413
1413
  "span",
1414
1414
  {
1415
1415
  className: "input-control__reveal-icons",
1416
1416
  "aria-hidden": "true",
1417
- onTransitionEnd: (q) => {
1418
- q.propertyName === "opacity" && V(null);
1417
+ onTransitionEnd: (R) => {
1418
+ R.propertyName === "opacity" && V(null);
1419
1419
  },
1420
1420
  children: [
1421
1421
  /* @__PURE__ */ n(
@@ -1437,7 +1437,7 @@ function Ao({
1437
1437
  )
1438
1438
  }
1439
1439
  ) : null;
1440
- qt("Input", L, E);
1440
+ Rt("Input", L, E);
1441
1441
  const X = r || o ? Fe(M, !!o) : void 0, Q = ie(
1442
1442
  "form-control",
1443
1443
  "form-control--input",
@@ -1459,8 +1459,8 @@ function Ao({
1459
1459
  "span",
1460
1460
  {
1461
1461
  className: y,
1462
- onPointerDown: (q) => {
1463
- (q.target instanceof Element ? q.target : null)?.closest(".form-control, .input-control__action") || E.current?.matches(":disabled") || (q.preventDefault(), E.current?.focus());
1462
+ onPointerDown: (R) => {
1463
+ (R.target instanceof Element ? R.target : null)?.closest(".form-control, .input-control__action") || E.current?.matches(":disabled") || (R.preventDefault(), E.current?.focus());
1464
1464
  },
1465
1465
  children: [
1466
1466
  l ? /* @__PURE__ */ n(
@@ -1493,9 +1493,9 @@ function Ao({
1493
1493
  ]
1494
1494
  }
1495
1495
  ) : A;
1496
- return L ? S : /* @__PURE__ */ n(Rt, { controlId: M, label: t, description: r, error: o, wide: _, children: S });
1496
+ return L ? S : /* @__PURE__ */ n(qt, { controlId: M, label: t, description: r, error: o, wide: _, children: S });
1497
1497
  }
1498
- function ls({
1498
+ function ds({
1499
1499
  id: e,
1500
1500
  name: t,
1501
1501
  value: r,
@@ -1516,7 +1516,7 @@ function ls({
1516
1516
  }) {
1517
1517
  if (typeof r != "string" || !/^[0-9]{0,6}$/.test(r))
1518
1518
  throw new Error("VerificationCodeInput value must be a string of up to six ASCII digits.");
1519
- const m = fe(), v = e ?? m, D = T(null), I = Ne(() => Ye(D, d), [d]), [h, C] = H({ start: 0, end: 0, backward: !1 }), [M, L] = H(null), [E, k] = H(""), N = T(""), R = T(null), P = T(!1), z = T(null), V = T(null), B = M ?? r, $ = `${v}-format`, Y = E || x, G = f !== void 0 && (_ || Y) ? Fe(v, !!Y) : void 0, F = (y) => {
1519
+ const m = fe(), v = e ?? m, D = T(null), I = Ne(() => Ye(D, d), [d]), [h, C] = H({ start: 0, end: 0, backward: !1 }), [M, L] = H(null), [E, k] = H(""), N = T(""), q = T(null), P = T(!1), z = T(null), V = T(null), B = M ?? r, $ = `${v}-format`, Y = E || x, G = f !== void 0 && (_ || Y) ? Fe(v, !!Y) : void 0, F = (y) => {
1520
1520
  C({ start: y.selectionStart ?? 0, end: y.selectionEnd ?? 0, backward: y.selectionDirection === "backward" });
1521
1521
  };
1522
1522
  me(() => {
@@ -1531,8 +1531,8 @@ function ls({
1531
1531
  }
1532
1532
  k(""), V.current = { value: y, cursor: A }, y !== r ? o(y) : D.current && D.current.setSelectionRange(A, A), C({ start: A, end: A, backward: !1 });
1533
1533
  }, X = (y, A) => {
1534
- const S = y.parentElement?.querySelectorAll("[data-code-slot]"), q = Array.from(S ?? []).findIndex((j) => A <= j.getBoundingClientRect().right);
1535
- return Math.min(q < 0 ? 6 : q, r.length);
1534
+ const S = y.parentElement?.querySelectorAll("[data-code-slot]"), R = Array.from(S ?? []).findIndex((j) => A <= j.getBoundingClientRect().right);
1535
+ return Math.min(R < 0 ? 6 : R, r.length);
1536
1536
  }, Q = /* @__PURE__ */ w(ge, { children: [
1537
1537
  /* @__PURE__ */ w("div", { className: `q1-verification-code q1-verification-code--${p}`, children: [
1538
1538
  /* @__PURE__ */ n("div", { className: "q1-verification-code__slots", "aria-hidden": "true", children: Array.from({ length: 7 }, (y, A) => {
@@ -1579,10 +1579,10 @@ function ls({
1579
1579
  const A = y.currentTarget;
1580
1580
  A.focus();
1581
1581
  const S = X(A, y.clientX);
1582
- R.current = S, A.setPointerCapture(y.pointerId), A.setSelectionRange(S, Math.min(S + 1, r.length)), F(A);
1582
+ q.current = S, A.setPointerCapture(y.pointerId), A.setSelectionRange(S, Math.min(S + 1, r.length)), F(A);
1583
1583
  },
1584
1584
  onPointerMove: (y) => {
1585
- const A = R.current;
1585
+ const A = q.current;
1586
1586
  if (A === null) return;
1587
1587
  const S = X(y.currentTarget, y.clientX);
1588
1588
  y.currentTarget.setSelectionRange(Math.min(A, S), Math.min(Math.max(A, S) + 1, r.length), S < A ? "backward" : "forward"), F(y.currentTarget);
@@ -1597,10 +1597,10 @@ function ls({
1597
1597
  P.current || (y.currentTarget.select(), F(y.currentTarget));
1598
1598
  },
1599
1599
  onPointerUp: () => {
1600
- R.current = null;
1600
+ q.current = null;
1601
1601
  },
1602
1602
  onPointerCancel: () => {
1603
- R.current = null;
1603
+ q.current = null;
1604
1604
  },
1605
1605
  onCompositionStart: (y) => {
1606
1606
  P.current = !0, L(y.currentTarget.value);
@@ -1629,15 +1629,15 @@ function ls({
1629
1629
  k("请粘贴 6 位数字验证码。");
1630
1630
  return;
1631
1631
  }
1632
- const q = y.currentTarget.selectionStart ?? r.length, j = y.currentTarget.selectionEnd ?? q, Z = S.length === 6 ? S : r.slice(0, q) + S + r.slice(j);
1633
- O(Z, S.length === 6 ? 6 : q + S.length);
1632
+ const R = y.currentTarget.selectionStart ?? r.length, j = y.currentTarget.selectionEnd ?? R, J = S.length === 6 ? S : r.slice(0, R) + S + r.slice(j);
1633
+ O(J, S.length === 6 ? 6 : R + S.length);
1634
1634
  }
1635
1635
  }
1636
1636
  )
1637
1637
  ] }),
1638
1638
  f === void 0 && /* @__PURE__ */ n("span", { id: $, className: E ? "form-field__message" : "q1-sr-only", role: "status", "aria-atomic": "true", children: E })
1639
1639
  ] });
1640
- return f === void 0 ? Q : /* @__PURE__ */ n(pr, { value: !0, children: /* @__PURE__ */ n(Rt, { controlId: v, label: f, description: _, error: Y, children: Q }) });
1640
+ return f === void 0 ? Q : /* @__PURE__ */ n(pr, { value: !0, children: /* @__PURE__ */ n(qt, { controlId: v, label: f, description: _, error: Y, children: Q }) });
1641
1641
  }
1642
1642
  function mr({
1643
1643
  value: e,
@@ -1659,7 +1659,7 @@ function mr({
1659
1659
  _.key === "Escape" && u && (_.preventDefault(), d());
1660
1660
  } };
1661
1661
  }
1662
- function us({
1662
+ function fs({
1663
1663
  id: e,
1664
1664
  placeholder: t,
1665
1665
  value: r,
@@ -1759,7 +1759,7 @@ function vn({
1759
1759
  s
1760
1760
  ] });
1761
1761
  }
1762
- function ds({
1762
+ function ps({
1763
1763
  id: e,
1764
1764
  ariaLabel: t,
1765
1765
  value: r,
@@ -1783,7 +1783,7 @@ function ds({
1783
1783
  onValueChange: i,
1784
1784
  preventComposingEscapeDefault: !0
1785
1785
  }), h = Ne(() => Ye(v, u), [u]);
1786
- qt("SearchInput", !0, v);
1786
+ Rt("SearchInput", !0, v);
1787
1787
  const C = (L) => {
1788
1788
  g?.(L), !L.defaultPrevented && !f && I(L);
1789
1789
  }, M = a === !0 ? /* @__PURE__ */ w(ge, { children: [
@@ -1817,7 +1817,7 @@ function ds({
1817
1817
  /* @__PURE__ */ n("span", { className: "q1-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: s ? "正在搜索…" : "" })
1818
1818
  ] });
1819
1819
  }
1820
- function fs({
1820
+ function ms({
1821
1821
  id: e,
1822
1822
  label: t,
1823
1823
  description: r,
@@ -1833,7 +1833,7 @@ function fs({
1833
1833
  ..._
1834
1834
  }) {
1835
1835
  const x = fe(), g = e ?? x, c = t === void 0, b = T(null), m = Ne(() => Ye(b, a), [a]);
1836
- qt("Textarea", c, b);
1836
+ Rt("Textarea", c, b);
1837
1837
  const [v, D] = H(
1838
1838
  () => typeof _.defaultValue == "string" ? _.defaultValue.length : 0
1839
1839
  ), I = typeof _.value == "string" ? _.value.length : v, h = d !== void 0, C = !c && (r || o) ? Fe(g, !!o) : void 0, M = ie(
@@ -1863,13 +1863,13 @@ function fs({
1863
1863
  d
1864
1864
  ] })
1865
1865
  ] }) : L;
1866
- return c ? E : /* @__PURE__ */ n(Rt, { controlId: g, label: t, description: r, error: o, wide: l, children: E });
1866
+ return c ? E : /* @__PURE__ */ n(qt, { controlId: g, label: t, description: r, error: o, wide: l, children: E });
1867
1867
  }
1868
1868
  function Ko(...e) {
1869
1869
  const t = e.flatMap((o) => o?.trim().split(/\s+/).filter(Boolean) ?? []);
1870
1870
  return [...new Set(t)].join(" ") || void 0;
1871
1871
  }
1872
- function ps({
1872
+ function hs({
1873
1873
  id: e,
1874
1874
  label: t,
1875
1875
  description: r,
@@ -1899,7 +1899,7 @@ function ps({
1899
1899
  l ? "select-control--prefixed" : "",
1900
1900
  u ? "select-control--suffixed" : ""
1901
1901
  );
1902
- return /* @__PURE__ */ n(Rt, { controlId: e, label: t, description: r, error: o, wide: s, children: /* @__PURE__ */ w("span", { className: D, children: [
1902
+ return /* @__PURE__ */ n(qt, { controlId: e, label: t, description: r, error: o, wide: s, children: /* @__PURE__ */ w("span", { className: D, children: [
1903
1903
  l ? /* @__PURE__ */ n("span", { className: "select-control__prefix", "aria-hidden": "true", children: l }) : null,
1904
1904
  /* @__PURE__ */ n(
1905
1905
  "select",
@@ -1916,7 +1916,7 @@ function ps({
1916
1916
  }
1917
1917
  ),
1918
1918
  u ? /* @__PURE__ */ n("span", { className: "select-control__suffix", "aria-hidden": "true", children: u }) : null,
1919
- /* @__PURE__ */ n("span", { className: "select-control__chevron", "aria-hidden": "true", children: /* @__PURE__ */ n(qe, { size: a === "xs" ? 12 : 16, strokeWidth: 1.8 }) })
1919
+ /* @__PURE__ */ n("span", { className: "select-control__chevron", "aria-hidden": "true", children: /* @__PURE__ */ n(Re, { size: a === "xs" ? 12 : 16, strokeWidth: 1.8 }) })
1920
1920
  ] }) });
1921
1921
  }
1922
1922
  function Wo(...e) {
@@ -1941,10 +1941,10 @@ function hr({
1941
1941
  const x = fe(), g = e ?? x, c = t === void 0, b = a === "radio", m = c ? void 0 : `${g}-label`, v = !c && (r || o) ? Fe(g, !!o) : void 0, D = Wo(l, v), I = o ? !0 : u, h = b ? "control-option__visual control-option__visual--radio" : "control-option__visual", C = T(null), M = T(!!i);
1942
1942
  M.current = !!i;
1943
1943
  const [L, E] = H(!1), k = T(null), N = Ne(() => Ye(C, s), [s]);
1944
- qt(b ? "Radio" : "Checkbox", c, C), te(() => {
1944
+ Rt(b ? "Radio" : "Checkbox", c, C), te(() => {
1945
1945
  C.current && (C.current.indeterminate = !b && !!i);
1946
1946
  }, [i, b]);
1947
- function R(B) {
1947
+ function q(B) {
1948
1948
  f?.(B);
1949
1949
  const $ = C.current;
1950
1950
  !b && $ && queueMicrotask(() => {
@@ -1967,7 +1967,7 @@ function hr({
1967
1967
  "aria-invalid": I,
1968
1968
  "aria-label": p,
1969
1969
  "aria-labelledby": d ?? (p ? void 0 : m),
1970
- onClick: R,
1970
+ onClick: q,
1971
1971
  ..._
1972
1972
  }
1973
1973
  );
@@ -2008,17 +2008,17 @@ function hr({
2008
2008
  }
2009
2009
  );
2010
2010
  }
2011
- function ms({
2011
+ function bs({
2012
2012
  ...e
2013
2013
  }) {
2014
2014
  return /* @__PURE__ */ n(hr, { type: "checkbox", ...e });
2015
2015
  }
2016
- function hs({
2016
+ function gs({
2017
2017
  ...e
2018
2018
  }) {
2019
2019
  return /* @__PURE__ */ n(hr, { type: "radio", ...e });
2020
2020
  }
2021
- function bs({ id: e, ...t }) {
2021
+ function _s({ id: e, ...t }) {
2022
2022
  return {
2023
2023
  component: /* @__PURE__ */ n("input", { id: e, type: "radio", ...t })
2024
2024
  };
@@ -2027,7 +2027,7 @@ function zo(...e) {
2027
2027
  const t = Array.from(new Set(e.flatMap((r) => r?.trim().split(/\s+/).filter(Boolean) ?? [])));
2028
2028
  return t.length > 0 ? t.join(" ") : void 0;
2029
2029
  }
2030
- function gs({
2030
+ function ys({
2031
2031
  type: e,
2032
2032
  label: t,
2033
2033
  description: r,
@@ -2201,8 +2201,8 @@ function Be({
2201
2201
  return;
2202
2202
  }
2203
2203
  if (A.key !== "Escape" || !Ie(B, Y.id) || Y.getContainer()?.contains(B.activeElement)) return;
2204
- const q = I.current;
2205
- (q ? q.busy || C.current : !Y.escape) || (A.preventDefault(), k(B, Y));
2204
+ const R = I.current;
2205
+ (R ? R.busy || C.current : !Y.escape) || (A.preventDefault(), k(B, Y));
2206
2206
  }
2207
2207
  function X(A) {
2208
2208
  E.current || (E.current = { pointerId: A.pointerId, target: A.target });
@@ -2210,8 +2210,8 @@ function Be({
2210
2210
  function Q(A) {
2211
2211
  const S = E.current;
2212
2212
  if (!S || S.pointerId !== A.pointerId || (E.current = null, !Ie(B, Y.id) || !Y.outsidePointer)) return;
2213
- const q = Y.getContainer(), j = F(S.target, q), Z = F(A.target, q);
2214
- j && Z && Ft(B, Y, "outside-pointer");
2213
+ const R = Y.getContainer(), j = F(S.target, R), J = F(A.target, R);
2214
+ j && J && Ft(B, Y, "outside-pointer");
2215
2215
  }
2216
2216
  function y(A) {
2217
2217
  E.current?.pointerId === A.pointerId && (E.current = null);
@@ -2219,10 +2219,10 @@ function Be({
2219
2219
  return B.addEventListener("keydown", O), B.addEventListener("pointerdown", X, !0), B.addEventListener("pointerup", Q, !0), B.addEventListener("pointercancel", y, !0), () => {
2220
2220
  const A = h.current && Ie(B, Y.id);
2221
2221
  B.removeEventListener("keydown", O), B.removeEventListener("pointerdown", X, !0), B.removeEventListener("pointerup", Q, !0), B.removeEventListener("pointercancel", y, !0), E.current = null, G(), L.current = null;
2222
- const S = M.current, q = Kt.get(B) ?? [];
2223
- if (h.current && S && (q.push(S), Kt.set(B, q), queueMicrotask(() => Kt.delete(B))), A) {
2224
- const Z = [B.activeElement instanceof HTMLElement && B.activeElement !== B.body && !a.current?.contains(B.activeElement) ? B.activeElement : null, S, ...q, ..._?.() ?? []].find($t);
2225
- Z && Z.focus(), (!Z || B.activeElement !== Z) && !_o(B) && Uo(B);
2222
+ const S = M.current, R = Kt.get(B) ?? [];
2223
+ if (h.current && S && (R.push(S), Kt.set(B, R), queueMicrotask(() => Kt.delete(B))), A) {
2224
+ const J = [B.activeElement instanceof HTMLElement && B.activeElement !== B.body && !a.current?.contains(B.activeElement) ? B.activeElement : null, S, ...R, ..._?.() ?? []].find($t);
2225
+ J && J.focus(), (!J || B.activeElement !== J) && !_o(B) && Uo(B);
2226
2226
  }
2227
2227
  M.current = null;
2228
2228
  };
@@ -2246,7 +2246,7 @@ function Be({
2246
2246
  const B = window.setTimeout(() => Wt(a.current, l), 0);
2247
2247
  return () => window.clearTimeout(B);
2248
2248
  }, [a, d, l, u, e, m]);
2249
- const R = ce((B) => {
2249
+ const q = ce((B) => {
2250
2250
  const $ = L.current;
2251
2251
  if (!(!$ || typeof document > "u")) {
2252
2252
  if (B.key === "Escape") {
@@ -2272,7 +2272,7 @@ function Be({
2272
2272
  (B) => m ? it(B, m) : f ? null : B,
2273
2273
  [f, m]
2274
2274
  );
2275
- return { focusInitialIfTopMost: z, onKeyDown: R, portal: V, portalRoot: m, requestClose: P };
2275
+ return { focusInitialIfTopMost: z, onKeyDown: q, portal: V, portalRoot: m, requestClose: P };
2276
2276
  }
2277
2277
  function Xe(e, t, r, o, i = {}) {
2278
2278
  const {
@@ -2308,13 +2308,13 @@ function Xe(e, t, r, o, i = {}) {
2308
2308
  _.current();
2309
2309
  return;
2310
2310
  }
2311
- const R = b.getBoundingClientRect(), P = Number.parseFloat(v.getComputedStyle(b).getPropertyValue(l)) || 0;
2311
+ const q = b.getBoundingClientRect(), P = Number.parseFloat(v.getComputedStyle(b).getPropertyValue(l)) || 0;
2312
2312
  s === "content" ? (m.style.width = "max-content", m.style.maxWidth = `${Math.min(
2313
2313
  Number.isFinite(I) ? I : 1 / 0,
2314
2314
  v.innerWidth - 2 * P
2315
- )}px`) : m.style.width = `${R.width}px`;
2316
- const z = m.getBoundingClientRect().width, V = a === "end" ? R.right - z : R.left, B = a === "end" ? R.left : R.right - z, $ = V >= P && V + z <= v.innerWidth - P, Y = (q) => Math.max(0, P - q) + Math.max(0, q + z + P - v.innerWidth), G = s === "content" && !$ && Y(B) < Y(V) ? a === "end" ? "start" : "end" : a, F = G === "end" ? R.right - z : R.left, O = s === "content" ? P : 0, X = v.innerHeight - R.bottom - P - O, Q = R.top - P - O, y = Math.min(m.scrollHeight, Number.isFinite(D) ? D : 1 / 0), A = X < y && Q > X, S = Math.max(0, A ? Q : X);
2317
- m.style.position = "fixed", m.style.left = `${Math.max(P, Math.min(F, v.innerWidth - z - P))}px`, m.style.right = "auto", m.style.top = A ? "auto" : `${R.bottom + P}px`, m.style.bottom = A ? `${v.innerHeight - R.top + P}px` : "auto", m.style.maxHeight = `${Math.min(y, S)}px`, s === "content" && (m.style.overflowY = "auto"), m.style.visibility = "visible", f((q) => q.align === G && q.side === (A ? "top" : "bottom") ? q : { align: G, side: A ? "top" : "bottom" });
2315
+ )}px`) : m.style.width = `${q.width}px`;
2316
+ const z = m.getBoundingClientRect().width, V = a === "end" ? q.right - z : q.left, B = a === "end" ? q.left : q.right - z, $ = V >= P && V + z <= v.innerWidth - P, Y = (R) => Math.max(0, P - R) + Math.max(0, R + z + P - v.innerWidth), G = s === "content" && !$ && Y(B) < Y(V) ? a === "end" ? "start" : "end" : a, F = G === "end" ? q.right - z : q.left, O = s === "content" ? P : 0, X = v.innerHeight - q.bottom - P - O, Q = q.top - P - O, y = Math.min(m.scrollHeight, Number.isFinite(D) ? D : 1 / 0), A = X < y && Q > X, S = Math.max(0, A ? Q : X);
2317
+ m.style.position = "fixed", m.style.left = `${Math.max(P, Math.min(F, v.innerWidth - z - P))}px`, m.style.right = "auto", m.style.top = A ? "auto" : `${q.bottom + P}px`, m.style.bottom = A ? `${v.innerHeight - q.top + P}px` : "auto", m.style.maxHeight = `${Math.min(y, S)}px`, s === "content" && (m.style.overflowY = "auto"), m.style.visibility = "visible", f((R) => R.align === G && R.side === (A ? "top" : "bottom") ? R : { align: G, side: A ? "top" : "bottom" });
2318
2318
  }
2319
2319
  let C = 0, M = 0;
2320
2320
  const L = v.performance.now() + 1e3;
@@ -2331,7 +2331,7 @@ function Xe(e, t, r, o, i = {}) {
2331
2331
  };
2332
2332
  }, [a, l, e, r, c, t, s]), { portalPopup: (b) => g(b), placement: d, onOverlayKeyDown: x };
2333
2333
  }
2334
- function _s({
2334
+ function ws({
2335
2335
  options: e,
2336
2336
  value: t,
2337
2337
  onChange: r,
@@ -2356,19 +2356,19 @@ function _s({
2356
2356
  ref: h,
2357
2357
  ...C
2358
2358
  }) {
2359
- const [M, L] = H(""), [E, k] = H(!1), [N, R] = H(0), P = T(null), z = T(null), V = T(null), B = fe(), $ = `${B}-list`, Y = `${B}-err`, G = t ?? "", F = G === "" ? void 0 : e.find((ee) => ee.value === G), O = !l && !u, X = E && O, { pressedIndex: Q, beginPress: y, cancelPress: A } = Vo({
2359
+ const [M, L] = H(""), [E, k] = H(!1), [N, q] = H(0), P = T(null), z = T(null), V = T(null), B = fe(), $ = `${B}-list`, Y = `${B}-err`, G = t ?? "", F = G === "" ? void 0 : e.find((ee) => ee.value === G), O = !l && !u, X = E && O, { pressedIndex: Q, beginPress: y, cancelPress: A } = Vo({
2360
2360
  interactive: O,
2361
2361
  isExpanded: X,
2362
2362
  isLoading: i
2363
- }), { portalPopup: S } = Xe(X, P, V, () => k(!1)), q = o || M === "" ? e : e.filter((ee) => ee.label.toLowerCase().includes(M.toLowerCase())), j = X && !i && q[N] ? `${B}-opt-${N}` : void 0, Z = !!f, ne = !!p || Z, W = [d, Z ? Y : null].filter(Boolean).join(" ") || void 0, U = {};
2364
- for (const [ee, J] of Object.entries(C))
2365
- ee.startsWith("data-") && (U[ee] = J);
2363
+ }), { portalPopup: S } = Xe(X, P, V, () => k(!1)), R = o || M === "" ? e : e.filter((ee) => ee.label.toLowerCase().includes(M.toLowerCase())), j = X && !i && R[N] ? `${B}-opt-${N}` : void 0, J = !!f, ne = !!p || J, W = [d, J ? Y : null].filter(Boolean).join(" ") || void 0, U = {};
2364
+ for (const [ee, Z] of Object.entries(C))
2365
+ ee.startsWith("data-") && (U[ee] = Z);
2366
2366
  const re = ce(
2367
2367
  (ee) => {
2368
2368
  z.current = ee;
2369
- const J = typeof h == "function" ? h(ee) : void 0;
2369
+ const Z = typeof h == "function" ? h(ee) : void 0;
2370
2370
  return h && typeof h != "function" && (h.current = ee), () => {
2371
- z.current = null, typeof J == "function" ? J() : typeof h == "function" ? h(null) : h && (h.current = null);
2371
+ z.current = null, typeof Z == "function" ? Z() : typeof h == "function" ? h(null) : h && (h.current = null);
2372
2372
  };
2373
2373
  },
2374
2374
  [h]
@@ -2376,38 +2376,38 @@ function _s({
2376
2376
  te(() => {
2377
2377
  }, [D, I]), te(() => {
2378
2378
  if (!E) return;
2379
- function ee(J) {
2380
- P.current && !P.current.contains(J.target) && !V.current?.contains(J.target) && k(!1);
2379
+ function ee(Z) {
2380
+ P.current && !P.current.contains(Z.target) && !V.current?.contains(Z.target) && k(!1);
2381
2381
  }
2382
2382
  return document.addEventListener("mousedown", ee), () => document.removeEventListener("mousedown", ee);
2383
2383
  }, [E]), te(() => {
2384
2384
  O || k(!1);
2385
2385
  }, [O]), me(() => {
2386
2386
  if (!j) return;
2387
- const ee = V.current, J = document.getElementById(j);
2388
- if (!ee || !J) return;
2389
- const oe = ee.getBoundingClientRect(), se = J.getBoundingClientRect(), ve = oe.top + ee.clientTop, le = ve + ee.clientHeight;
2387
+ const ee = V.current, Z = document.getElementById(j);
2388
+ if (!ee || !Z) return;
2389
+ const oe = ee.getBoundingClientRect(), se = Z.getBoundingClientRect(), ve = oe.top + ee.clientTop, le = ve + ee.clientHeight;
2390
2390
  se.top < ve ? ee.scrollTop += se.top - ve : se.bottom > le && (ee.scrollTop += se.bottom - le);
2391
2391
  }, [j]);
2392
- function ae(ee, J = 0) {
2392
+ function ae(ee, Z = 0) {
2393
2393
  const oe = ee.findIndex((se) => !se.disabled);
2394
- return oe === -1 ? J : oe;
2394
+ return oe === -1 ? Z : oe;
2395
2395
  }
2396
- function de(ee, J = 0) {
2396
+ function de(ee, Z = 0) {
2397
2397
  for (let oe = ee.length - 1; oe >= 0; oe--)
2398
2398
  if (!ee[oe].disabled) return oe;
2399
- return J;
2399
+ return Z;
2400
2400
  }
2401
- function K(ee, J) {
2402
- if (q.length === 0) return 0;
2401
+ function K(ee, Z) {
2402
+ if (R.length === 0) return 0;
2403
2403
  let oe = ee;
2404
- for (let se = 0; se < q.length; se++)
2405
- if (oe = (oe + J + q.length) % q.length, !q[oe].disabled) return oe;
2404
+ for (let se = 0; se < R.length; se++)
2405
+ if (oe = (oe + Z + R.length) % R.length, !R[oe].disabled) return oe;
2406
2406
  return ee;
2407
2407
  }
2408
2408
  function ue() {
2409
- const ee = G === "" ? -1 : e.findIndex((J) => J.value === G);
2410
- L(""), R(ee === -1 ? ae(e) : ee), k(!0);
2409
+ const ee = G === "" ? -1 : e.findIndex((Z) => Z.value === G);
2410
+ L(""), q(ee === -1 ? ae(e) : ee), k(!0);
2411
2411
  }
2412
2412
  function _e(ee) {
2413
2413
  !O || ee.disabled || i || (r?.(ee.value, ee), k(!1), z.current?.focus());
@@ -2426,22 +2426,22 @@ function _s({
2426
2426
  return;
2427
2427
  }
2428
2428
  if (ee.key === "ArrowDown")
2429
- ee.preventDefault(), R((J) => K(J, 1));
2429
+ ee.preventDefault(), q((Z) => K(Z, 1));
2430
2430
  else if (ee.key === "ArrowUp")
2431
- ee.preventDefault(), R((J) => K(J, -1));
2431
+ ee.preventDefault(), q((Z) => K(Z, -1));
2432
2432
  else if (ee.key === "Home")
2433
- ee.preventDefault(), R((J) => ae(q, J));
2433
+ ee.preventDefault(), q((Z) => ae(R, Z));
2434
2434
  else if (ee.key === "End")
2435
- ee.preventDefault(), R((J) => de(q, J));
2435
+ ee.preventDefault(), q((Z) => de(R, Z));
2436
2436
  else if (ee.key === "Enter")
2437
- ee.preventDefault(), q[N] && _e(q[N]);
2437
+ ee.preventDefault(), R[N] && _e(R[N]);
2438
2438
  else if (ee.key === "Escape")
2439
2439
  ee.preventDefault(), ee.stopPropagation(), k(!1);
2440
2440
  else if (ee.key === "Tab") {
2441
- const J = V.current?.querySelector(
2441
+ const Z = V.current?.querySelector(
2442
2442
  '.combobox__empty a[href], .combobox__empty button:not([disabled]), .combobox__empty input:not([disabled]), .combobox__empty select:not([disabled]), .combobox__empty textarea:not([disabled]), .combobox__empty [tabindex]:not([tabindex="-1"])'
2443
2443
  );
2444
- J && !ee.shiftKey ? (ee.preventDefault(), J.focus()) : k(!1);
2444
+ Z && !ee.shiftKey ? (ee.preventDefault(), Z.focus()) : k(!1);
2445
2445
  }
2446
2446
  }
2447
2447
  }
@@ -2493,8 +2493,8 @@ function _s({
2493
2493
  "aria-describedby": W,
2494
2494
  onChange: (ee) => {
2495
2495
  if (!O) return;
2496
- const J = ee.target.value, oe = o || J === "" ? e : e.filter((se) => se.label.toLowerCase().includes(J.toLowerCase()));
2497
- o?.(J), L(J), R(ae(oe)), k(!0);
2496
+ const Z = ee.target.value, oe = o || Z === "" ? e : e.filter((se) => se.label.toLowerCase().includes(Z.toLowerCase()));
2497
+ o?.(Z), L(Z), q(ae(oe)), k(!0);
2498
2498
  },
2499
2499
  onFocus: () => O && !E && ue(),
2500
2500
  onMouseDown: () => O && !E && ue(),
@@ -2523,30 +2523,30 @@ function _s({
2523
2523
  role: "listbox",
2524
2524
  "aria-label": s,
2525
2525
  "aria-busy": i || void 0,
2526
- children: i ? /* @__PURE__ */ n("li", { className: "combobox__loading", role: "status", "aria-live": "polite", children: "加载中…" }) : q.map((ee, J) => {
2526
+ children: i ? /* @__PURE__ */ n("li", { className: "combobox__loading", role: "status", "aria-live": "polite", children: "加载中…" }) : R.map((ee, Z) => {
2527
2527
  const oe = G !== "" && ee.value === G;
2528
2528
  return /* @__PURE__ */ w(
2529
2529
  "li",
2530
2530
  {
2531
- id: `${B}-opt-${J}`,
2531
+ id: `${B}-opt-${Z}`,
2532
2532
  role: "option",
2533
2533
  "aria-selected": oe,
2534
2534
  "aria-disabled": ee.disabled || void 0,
2535
- "data-pressed": Q === J || void 0,
2535
+ "data-pressed": Q === Z || void 0,
2536
2536
  className: ie(
2537
2537
  "combobox__option",
2538
- J === N && "combobox__option--active",
2538
+ Z === N && "combobox__option--active",
2539
2539
  ee.disabled && "combobox__option--disabled"
2540
2540
  ),
2541
- onMouseEnter: () => !ee.disabled && R(J),
2541
+ onMouseEnter: () => !ee.disabled && q(Z),
2542
2542
  onMouseDown: (se) => {
2543
2543
  se.preventDefault();
2544
2544
  },
2545
- onPointerDown: (se) => y(se, J, ee.disabled),
2546
- onPointerUp: () => A(J),
2547
- onPointerCancel: () => A(J),
2548
- onPointerLeave: () => A(J),
2549
- onLostPointerCapture: () => A(J),
2545
+ onPointerDown: (se) => y(se, Z, ee.disabled),
2546
+ onPointerUp: () => A(Z),
2547
+ onPointerCancel: () => A(Z),
2548
+ onPointerLeave: () => A(Z),
2549
+ onLostPointerCapture: () => A(Z),
2550
2550
  onClick: () => _e(ee),
2551
2551
  children: [
2552
2552
  ee.prefix ? /* @__PURE__ */ n("span", { className: "combobox__option-prefix", "aria-hidden": "true", children: ee.prefix }) : null,
@@ -2560,12 +2560,12 @@ function _s({
2560
2560
  })
2561
2561
  }
2562
2562
  ),
2563
- !i && q.length === 0 ? /* @__PURE__ */ n("div", { className: "combobox__empty", role: "status", "aria-live": "polite", children: _ }) : null
2563
+ !i && R.length === 0 ? /* @__PURE__ */ n("div", { className: "combobox__empty", role: "status", "aria-live": "polite", children: _ }) : null
2564
2564
  ]
2565
2565
  }
2566
2566
  )
2567
2567
  ) : null,
2568
- Z ? /* @__PURE__ */ n("p", { className: "combobox__error-text", id: Y, children: f }) : null
2568
+ J ? /* @__PURE__ */ n("p", { className: "combobox__error-text", id: Y, children: f }) : null
2569
2569
  ]
2570
2570
  }
2571
2571
  );
@@ -2621,7 +2621,7 @@ function Go(e, t) {
2621
2621
  i(), o && St(e), r.openOwners = r.openOwners.filter((s) => s.id !== t.id), xt(e, r);
2622
2622
  };
2623
2623
  }
2624
- function Jo(e, t) {
2624
+ function Zo(e, t) {
2625
2625
  const r = kt(e);
2626
2626
  return r.pendingOwners.add(t), xt(e, r), () => {
2627
2627
  r.pendingOwners.delete(t), xt(e, r);
@@ -2642,38 +2642,38 @@ function _r({
2642
2642
  left: 0,
2643
2643
  top: 0,
2644
2644
  caret: 0
2645
- }), x = T(null), g = T(null), c = T(null), b = T(null), m = T(!1), v = T(!1), D = T(!1), I = T(!1), h = T(!1), C = T(!1), M = T(!1), L = T(!1), [E, k] = H(!0), [N, R] = H(null), P = T(null), z = T(null), V = fe(), B = T({
2645
+ }), x = T(null), g = T(null), c = T(null), b = T(null), m = T(!1), v = T(!1), D = T(!1), I = T(!1), h = T(!1), C = T(!1), M = T(!1), L = T(!1), [E, k] = H(!0), [N, q] = H(null), P = T(null), z = T(null), V = fe(), B = T({
2646
2646
  id: `q1-tooltip-${V}`,
2647
2647
  dismiss: () => !1,
2648
2648
  cancelPending: () => {
2649
2649
  },
2650
2650
  getContainer: () => null,
2651
2651
  getPortalRoot: () => null
2652
- }), $ = N?.ownerDocument ?? null, Y = ce((J) => {
2653
- if (P.current = J, !J) return;
2654
- const oe = J.closest('[data-q1-portal="overlay"]') ?? J.ownerDocument.body;
2655
- R((se) => se === oe ? se : oe);
2652
+ }), $ = N?.ownerDocument ?? null, Y = ce((Z) => {
2653
+ if (P.current = Z, !Z) return;
2654
+ const oe = Z.closest('[data-q1-portal="overlay"]') ?? Z.ownerDocument.body;
2655
+ q((se) => se === oe ? se : oe);
2656
2656
  }, []), G = ce(() => {
2657
- const J = P.current, oe = z.current;
2658
- if (!J || !oe) return;
2659
- const se = 8, ve = 8, le = J.getBoundingClientRect(), ye = oe.offsetWidth, Te = oe.offsetHeight, pn = J.ownerDocument, Lt = pn.documentElement.clientWidth, At = pn.documentElement.clientHeight, mn = le.left + le.width / 2, hn = le.top + le.height / 2;
2657
+ const Z = P.current, oe = z.current;
2658
+ if (!Z || !oe) return;
2659
+ const se = 8, ve = 8, le = Z.getBoundingClientRect(), ye = oe.offsetWidth, Te = oe.offsetHeight, pn = Z.ownerDocument, Lt = pn.documentElement.clientWidth, At = pn.documentElement.clientHeight, mn = le.left + le.width / 2, hn = le.top + le.height / 2;
2660
2660
  let Ce = t;
2661
2661
  t === "top" && le.top - ve - Te < se && le.bottom + ve + Te <= At - se ? Ce = "bottom" : t === "bottom" && le.bottom + ve + Te > At - se && le.top - ve - Te >= se ? Ce = "top" : t === "left" && le.left - ve - ye < se && le.right + ve + ye <= Lt - se ? Ce = "right" : t === "right" && le.right + ve + ye > Lt - se && le.left - ve - ye >= se && (Ce = "left");
2662
2662
  let Ve, He;
2663
2663
  Ce === "top" || Ce === "bottom" ? (Ve = s === "start" ? le.left : s === "end" ? le.right - ye : mn - ye / 2, He = Ce === "top" ? le.top - ve - Te : le.bottom + ve) : (He = s === "start" ? le.top : s === "end" ? le.bottom - Te : hn - Te / 2, Ve = Ce === "left" ? le.left - ve - ye : le.right + ve), Ve = Math.max(se, Math.min(Ve, Lt - se - ye)), He = Math.max(se, Math.min(He, At - se - Te));
2664
2664
  const Or = Ce === "top" || Ce === "bottom" ? Math.max(12, Math.min(ye - 12, mn - Ve)) : Math.max(12, Math.min(Te - 12, hn - He));
2665
2665
  _({ p: Ce, left: Ve, top: He, caret: Or });
2666
- }, [t, s]), F = ce((J) => {
2667
- z.current = J, J && L.current && G();
2666
+ }, [t, s]), F = ce((Z) => {
2667
+ z.current = Z, Z && L.current && G();
2668
2668
  }, [G]);
2669
2669
  me(() => {
2670
2670
  if (!p) return;
2671
- const J = P.current?.ownerDocument.defaultView;
2672
- if (!J) return;
2671
+ const Z = P.current?.ownerDocument.defaultView;
2672
+ if (!Z) return;
2673
2673
  G();
2674
- const oe = typeof J.ResizeObserver == "function" ? new J.ResizeObserver(G) : null;
2675
- return P.current && oe?.observe(P.current), z.current && oe?.observe(z.current), J.addEventListener("scroll", G, !0), J.addEventListener("resize", G), () => {
2676
- oe?.disconnect(), J.removeEventListener("scroll", G, !0), J.removeEventListener("resize", G);
2674
+ const oe = typeof Z.ResizeObserver == "function" ? new Z.ResizeObserver(G) : null;
2675
+ return P.current && oe?.observe(P.current), z.current && oe?.observe(z.current), Z.addEventListener("scroll", G, !0), Z.addEventListener("resize", G), () => {
2676
+ oe?.disconnect(), Z.removeEventListener("scroll", G, !0), Z.removeEventListener("resize", G);
2677
2677
  };
2678
2678
  }, [p, N, G]);
2679
2679
  function O() {
@@ -2697,55 +2697,55 @@ function _r({
2697
2697
  function y() {
2698
2698
  return m.current || v.current || D.current || I.current;
2699
2699
  }
2700
- function A(J, oe) {
2701
- O(), !h.current && (M.current = oe, L.current = !0, k(J), d(!0));
2700
+ function A(Z, oe) {
2701
+ O(), !h.current && (M.current = oe, L.current = !0, k(Z), d(!0));
2702
2702
  }
2703
- function S({ clearWarm: J = !1 } = {}) {
2703
+ function S({ clearWarm: Z = !1 } = {}) {
2704
2704
  O();
2705
2705
  const oe = P.current?.ownerDocument;
2706
2706
  if (oe) {
2707
2707
  const se = kt(oe);
2708
- J ? se.warmUntil = 0 : L.current && M.current && (se.warmUntil = Date.now() + Xo);
2708
+ Z ? se.warmUntil = 0 : L.current && M.current && (se.warmUntil = Date.now() + Xo);
2709
2709
  }
2710
2710
  L.current = !1, M.current = !1, d(!1);
2711
2711
  }
2712
2712
  me(() => {
2713
2713
  u && (X(), S({ clearWarm: !0 }));
2714
2714
  }, [u]);
2715
- function q() {
2715
+ function R() {
2716
2716
  y() || (h.current = !1);
2717
2717
  }
2718
2718
  function j() {
2719
- y() || (S(), q());
2719
+ y() || (S(), R());
2720
2720
  }
2721
- function Z() {
2721
+ function J() {
2722
2722
  if (u) return;
2723
- const J = P.current?.ownerDocument, oe = J?.defaultView;
2724
- if (!J || !oe?.matchMedia("(hover: hover) and (pointer: fine)").matches || (O(), h.current || L.current)) return;
2725
- if (kt(J).warmUntil > Date.now()) {
2723
+ const Z = P.current?.ownerDocument, oe = Z?.defaultView;
2724
+ if (!Z || !oe?.matchMedia("(hover: hover) and (pointer: fine)").matches || (O(), h.current || L.current)) return;
2725
+ if (kt(Z).warmUntil > Date.now()) {
2726
2726
  A(!0, !0);
2727
2727
  return;
2728
2728
  }
2729
- g.current = Jo(J, B.current), x.current = setTimeout(() => {
2729
+ g.current = Zo(Z, B.current), x.current = setTimeout(() => {
2730
2730
  O(), m.current && !h.current && A(!1, !0);
2731
2731
  }, r);
2732
2732
  }
2733
- function ne(J) {
2734
- const oe = J.target;
2735
- !oe || typeof oe.nodeType != "number" || !P.current?.contains(oe) || (y() || (h.current = !1), m.current = !0, X(), Z());
2733
+ function ne(Z) {
2734
+ const oe = Z.target;
2735
+ !oe || typeof oe.nodeType != "number" || !P.current?.contains(oe) || (y() || (h.current = !1), m.current = !0, X(), J());
2736
2736
  }
2737
- function W(J, oe, se) {
2738
- return oe >= J.left && oe <= J.right && se >= J.top && se <= J.bottom;
2737
+ function W(Z, oe, se) {
2738
+ return oe >= Z.left && oe <= Z.right && se >= Z.top && se <= Z.bottom;
2739
2739
  }
2740
- function U(J, oe) {
2740
+ function U(Z, oe) {
2741
2741
  const se = P.current, ve = z.current;
2742
2742
  if (!se || !ve) return !1;
2743
2743
  const le = se.getBoundingClientRect(), ye = ve.getBoundingClientRect();
2744
- return W(le, J, oe) || W(ye, J, oe) ? !0 : ye.bottom <= le.top ? J >= Math.min(le.left, ye.left) && J <= Math.max(le.right, ye.right) && oe >= ye.bottom && oe <= le.top : ye.top >= le.bottom ? J >= Math.min(le.left, ye.left) && J <= Math.max(le.right, ye.right) && oe >= le.bottom && oe <= ye.top : ye.right <= le.left ? oe >= Math.min(le.top, ye.top) && oe <= Math.max(le.bottom, ye.bottom) && J >= ye.right && J <= le.left : ye.left >= le.right ? oe >= Math.min(le.top, ye.top) && oe <= Math.max(le.bottom, ye.bottom) && J >= le.right && J <= ye.left : !1;
2744
+ return W(le, Z, oe) || W(ye, Z, oe) ? !0 : ye.bottom <= le.top ? Z >= Math.min(le.left, ye.left) && Z <= Math.max(le.right, ye.right) && oe >= ye.bottom && oe <= le.top : ye.top >= le.bottom ? Z >= Math.min(le.left, ye.left) && Z <= Math.max(le.right, ye.right) && oe >= le.bottom && oe <= ye.top : ye.right <= le.left ? oe >= Math.min(le.top, ye.top) && oe <= Math.max(le.bottom, ye.bottom) && Z >= ye.right && Z <= le.left : ye.left >= le.right ? oe >= Math.min(le.top, ye.top) && oe <= Math.max(le.bottom, ye.bottom) && Z >= le.right && Z <= ye.left : !1;
2745
2745
  }
2746
- function re(J, oe) {
2746
+ function re(Z, oe) {
2747
2747
  const se = P.current?.ownerDocument;
2748
- if (!se || !L.current || !U(J, oe)) return !1;
2748
+ if (!se || !L.current || !U(Z, oe)) return !1;
2749
2749
  X(), I.current = !0;
2750
2750
  const ve = (le) => {
2751
2751
  if (le.pointerType && le.pointerType !== "mouse") {
@@ -2761,9 +2761,9 @@ function _r({
2761
2761
  };
2762
2762
  return se.addEventListener("pointermove", ve, { passive: !0 }), b.current = () => se.removeEventListener("pointermove", ve), !0;
2763
2763
  }
2764
- function ae(J) {
2765
- const oe = J.target;
2766
- !oe || typeof oe.nodeType != "number" || !P.current?.contains(oe) || (m.current = !1, re(J.clientX, J.clientY) || j());
2764
+ function ae(Z) {
2765
+ const oe = Z.target;
2766
+ !oe || typeof oe.nodeType != "number" || !P.current?.contains(oe) || (m.current = !1, re(Z.clientX, Z.clientY) || j());
2767
2767
  }
2768
2768
  function de() {
2769
2769
  u || (y() || (h.current = !1), v.current = !0, C.current || A(!0, !1));
@@ -2777,14 +2777,14 @@ function _r({
2777
2777
  function _e() {
2778
2778
  D.current = !1, j();
2779
2779
  }
2780
- function pe(J) {
2780
+ function pe(Z) {
2781
2781
  C.current = !0;
2782
2782
  const oe = P.current?.ownerDocument.defaultView;
2783
2783
  if (Q(), !oe) return;
2784
2784
  const se = oe.setTimeout(() => {
2785
2785
  C.current = !1, c.current = null;
2786
2786
  }, 0);
2787
- c.current = { view: oe, id: se }, J.pointerType !== "mouse" && S({ clearWarm: !0 });
2787
+ c.current = { view: oe, id: se }, Z.pointerType !== "mouse" && S({ clearWarm: !0 });
2788
2788
  }
2789
2789
  B.current.dismiss = () => L.current ? (h.current = !0, X(), S({ clearWarm: !0 }), !0) : !1, B.current.cancelPending = O, B.current.getContainer = () => z.current, B.current.getPortalRoot = () => N;
2790
2790
  const we = {
@@ -2806,14 +2806,14 @@ function _r({
2806
2806
  "aria-describedby": Array.from(
2807
2807
  /* @__PURE__ */ new Set([...i.props["aria-describedby"]?.match(/\S+/g) ?? [], V])
2808
2808
  ).join(" "),
2809
- onFocus: (J) => {
2810
- i.props.onFocus?.(J), de();
2809
+ onFocus: (Z) => {
2810
+ i.props.onFocus?.(Z), de();
2811
2811
  },
2812
- onBlur: (J) => {
2813
- i.props.onBlur?.(J), K();
2812
+ onBlur: (Z) => {
2813
+ i.props.onBlur?.(Z), K();
2814
2814
  },
2815
- onKeyDown: (J) => {
2816
- i.props.onKeyDown?.(J);
2815
+ onKeyDown: (Z) => {
2816
+ i.props.onKeyDown?.(Z);
2817
2817
  }
2818
2818
  }) : /* @__PURE__ */ n(
2819
2819
  "button",
@@ -2857,10 +2857,10 @@ function _r({
2857
2857
  ] });
2858
2858
  }
2859
2859
  const Qo = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"]);
2860
- function Zo(e, t) {
2860
+ function Jo(e, t) {
2861
2861
  return e.find((r) => r.value === t)?.value ?? e.find((r) => !r.disabled)?.value ?? "";
2862
2862
  }
2863
- function ys({
2863
+ function vs({
2864
2864
  options: e,
2865
2865
  ariaLabel: t,
2866
2866
  name: r,
@@ -2871,7 +2871,7 @@ function ys({
2871
2871
  fullWidth: l = !1,
2872
2872
  iconOnly: u = !1
2873
2873
  }) {
2874
- const p = fe(), d = T([]), f = i !== void 0, [_, x] = H(() => Zo(e, o)), g = f ? i : _, c = e.reduce((P, z, V) => (z.disabled || P.push(V), P), []), b = c[0] ?? -1, m = e.findIndex((P) => P.value === g && !P.disabled), [v, D] = H(m >= 0 ? m : b), [I, h] = H(null);
2874
+ const p = fe(), d = T([]), f = i !== void 0, [_, x] = H(() => Jo(e, o)), g = f ? i : _, c = e.reduce((P, z, V) => (z.disabled || P.push(V), P), []), b = c[0] ?? -1, m = e.findIndex((P) => P.value === g && !P.disabled), [v, D] = H(m >= 0 ? m : b), [I, h] = H(null);
2875
2875
  if (te(() => {
2876
2876
  D((P) => m >= 0 ? m : P >= 0 && !e[P]?.disabled ? P : b);
2877
2877
  }, [m, b, e]), e.length === 0) return null;
@@ -2899,8 +2899,8 @@ function ys({
2899
2899
  function N(P) {
2900
2900
  h((z) => z === P ? null : z);
2901
2901
  }
2902
- const R = ie("switch-control", `switch-control--${a}`, l ? "switch-control--full" : "");
2903
- return /* @__PURE__ */ n("div", { className: R, role: "radiogroup", "aria-label": t, children: e.map((P, z) => {
2902
+ const q = ie("switch-control", `switch-control--${a}`, l ? "switch-control--full" : "");
2903
+ return /* @__PURE__ */ n("div", { className: q, role: "radiogroup", "aria-label": t, children: e.map((P, z) => {
2904
2904
  const V = P.value === g, B = /* @__PURE__ */ n(
2905
2905
  "button",
2906
2906
  {
@@ -2936,7 +2936,7 @@ function ys({
2936
2936
  return /* @__PURE__ */ n("span", { className: "switch-control__option-wrapper", role: "presentation", children: P.tooltip && !P.disabled ? /* @__PURE__ */ n(_r, { content: P.tooltip, children: B }) : B }, P.value);
2937
2937
  }) });
2938
2938
  }
2939
- function ws({
2939
+ function Ns({
2940
2940
  checked: e,
2941
2941
  defaultOn: t = !1,
2942
2942
  onChange: r,
@@ -2989,10 +2989,10 @@ function yr({ tokens: e }) {
2989
2989
  (t, r) => t.type ? /* @__PURE__ */ n("span", { className: `tok-${t.type}`, translate: "no", children: t.text }, r) : /* @__PURE__ */ n("span", { translate: "no", children: t.text }, r)
2990
2990
  ) });
2991
2991
  }
2992
- function vs({ lines: e, ariaLabel: t }) {
2992
+ function ks({ lines: e, ariaLabel: t }) {
2993
2993
  return /* @__PURE__ */ n("pre", { className: "code-block", "aria-label": t, translate: "no", children: /* @__PURE__ */ n("code", { children: e.map((r, o) => /* @__PURE__ */ n("span", { className: "code-line", children: /* @__PURE__ */ n(yr, { tokens: r }) }, o)) }) });
2994
2994
  }
2995
- function Ns({ children: e }) {
2995
+ function xs({ children: e }) {
2996
2996
  return /* @__PURE__ */ n("code", { className: "code-inline", translate: "no", children: e });
2997
2997
  }
2998
2998
  const ei = {
@@ -3000,7 +3000,7 @@ const ei = {
3000
3000
  added: { marker: "+", label: "新增行" },
3001
3001
  removed: { marker: "−", label: "删除行" }
3002
3002
  };
3003
- function ks(e) {
3003
+ function Ps(e) {
3004
3004
  const { lineNumbers: t = !0 } = e, [r, o] = H(0), i = e.tabs ? e.tabs[r] ?? e.tabs[0] : void 0, s = i ? i.lines : e.lines ?? [], a = i ? i.filename : e.filename, l = s.map((d) => d.tokens.map((f) => f.text).join("")).join(`
3005
3005
  `), u = s.some((d) => d.state);
3006
3006
  let p = 0;
@@ -3066,7 +3066,7 @@ function ks(e) {
3066
3066
  }
3067
3067
  );
3068
3068
  }
3069
- function xs({
3069
+ function Cs({
3070
3070
  tabs: e,
3071
3071
  ariaLabel: t,
3072
3072
  variant: r = "default"
@@ -3213,11 +3213,11 @@ function xs({
3213
3213
  );
3214
3214
  }
3215
3215
  const wr = Mt(null);
3216
- function Ps({ multiple: e, children: t }) {
3216
+ function Is({ multiple: e, children: t }) {
3217
3217
  const [r, o] = H(null), [i, s] = H();
3218
3218
  return /* @__PURE__ */ n("div", { className: "collapse-group", children: /* @__PURE__ */ n(wr.Provider, { value: e ? null : { openId: r, setOpenId: o, inputModality: i, setInputModality: s }, children: t }) });
3219
3219
  }
3220
- function Cs({
3220
+ function Ds({
3221
3221
  title: e,
3222
3222
  defaultOpen: t,
3223
3223
  small: r,
@@ -3285,7 +3285,7 @@ function xn(e, t, r) {
3285
3285
  function ti() {
3286
3286
  return /Mac|iPhone|iPad|iPod/.test(navigator.platform) ? "⌘K" : "Ctrl K";
3287
3287
  }
3288
- function Is({ sections: e, triggerLabel: t = "打开命令面板", hotkey: r }) {
3288
+ function Ms({ sections: e, triggerLabel: t = "打开命令面板", hotkey: r }) {
3289
3289
  const o = fe(), i = `${o}-dialog`, s = `${o}-listbox`, [a, l] = H(!1), [u, p] = H(""), [d, f] = H(0), [_, x] = H(!1), [g, c] = H(), [b, m] = H("Ctrl K"), v = T(null), D = T(null), I = T(null), h = T(null), C = Ne(() => {
3290
3290
  const $ = u.trim().toLowerCase();
3291
3291
  let Y = 0;
@@ -3298,7 +3298,7 @@ function Is({ sections: e, triggerLabel: t = "打开命令面板", hotkey: r })
3298
3298
  })).filter((G) => G.items.length > 0);
3299
3299
  }, [e, u]), M = C.reduce(($, Y) => $ + Y.items.length, 0), L = C.flatMap(($) => $.items.map((Y) => ({ ...Y, sectionIndex: $.sectionIndex }))).find(($) => $.flatIndex === d), E = ce(() => {
3300
3300
  x(!1), c(void 0), l(!1);
3301
- }, []), k = ce(() => [v.current], []), { onKeyDown: N, portal: R, requestClose: P } = Be({
3301
+ }, []), k = ce(() => [v.current], []), { onKeyDown: N, portal: q, requestClose: P } = Be({
3302
3302
  open: a,
3303
3303
  blocking: !0,
3304
3304
  dismissable: !0,
@@ -3366,7 +3366,7 @@ function Is({ sections: e, triggerLabel: t = "打开命令面板", hotkey: r })
3366
3366
  ]
3367
3367
  }
3368
3368
  ),
3369
- a ? R(
3369
+ a ? q(
3370
3370
  /* @__PURE__ */ w("div", { className: "command-palette", children: [
3371
3371
  /* @__PURE__ */ n("button", { type: "button", className: "command-palette__backdrop", "aria-label": "关闭命令面板", tabIndex: -1 }),
3372
3372
  /* @__PURE__ */ w(
@@ -3493,7 +3493,7 @@ function Pn(e, t) {
3493
3493
  function Cn(e, t, r) {
3494
3494
  return `${e}-option-${t}-${r}`;
3495
3495
  }
3496
- function Ds({
3496
+ function Es({
3497
3497
  open: e,
3498
3498
  onOpenChange: t,
3499
3499
  query: r,
@@ -3513,7 +3513,7 @@ function Ds({
3513
3513
  )
3514
3514
  ),
3515
3515
  [f, i]
3516
- ), [h, C] = H(), [M, L] = H(!1), [E, k] = H(), N = T(null), R = I.findIndex((F) => F.key === h), P = R === -1 ? void 0 : I[R], z = i.reduce((F, O) => F + O.items.length, 0), V = ce((F) => {
3516
+ ), [h, C] = H(), [M, L] = H(!1), [E, k] = H(), N = T(null), q = I.findIndex((F) => F.key === h), P = q === -1 ? void 0 : I[q], z = i.reduce((F, O) => F + O.items.length, 0), V = ce((F) => {
3517
3517
  g.current?.classList.remove("search-dialog__trigger-control"), g.current = F, F?.classList.add("search-dialog__trigger-control");
3518
3518
  }, []);
3519
3519
  te(() => {
@@ -3551,7 +3551,7 @@ function Ds({
3551
3551
  function $(F) {
3552
3552
  if (I.length === 0) return;
3553
3553
  L(!1), k(void 0);
3554
- const O = R === -1 ? F === 1 ? 0 : I.length - 1 : (R + F + I.length) % I.length;
3554
+ const O = q === -1 ? F === 1 ? 0 : I.length - 1 : (q + F + I.length) % I.length;
3555
3555
  C(I[O].key);
3556
3556
  }
3557
3557
  function Y(F) {
@@ -3671,19 +3671,19 @@ function Ds({
3671
3671
  "data-search-dialog-pointer-pressed": E === A ? "true" : void 0,
3672
3672
  tabIndex: -1,
3673
3673
  disabled: Q.disabled,
3674
- onPointerMove: (q) => {
3675
- if (Q.disabled || q.pointerType === "touch") return;
3676
- const j = N.current, Z = { x: q.clientX, y: q.clientY };
3677
- N.current = Z, !(j?.x === Z.x && j.y === Z.y) && (L(!0), C(A));
3674
+ onPointerMove: (R) => {
3675
+ if (Q.disabled || R.pointerType === "touch") return;
3676
+ const j = N.current, J = { x: R.clientX, y: R.clientY };
3677
+ N.current = J, !(j?.x === J.x && j.y === J.y) && (L(!0), C(A));
3678
3678
  },
3679
- onPointerDown: (q) => {
3680
- !Q.disabled && q.isPrimary && q.button === 0 && (L(q.pointerType !== "touch"), C(A), k(A));
3679
+ onPointerDown: (R) => {
3680
+ !Q.disabled && R.isPrimary && R.button === 0 && (L(R.pointerType !== "touch"), C(A), k(A));
3681
3681
  },
3682
3682
  onPointerUp: () => k(void 0),
3683
3683
  onPointerCancel: () => k(void 0),
3684
3684
  onPointerLeave: () => k(void 0),
3685
3685
  onBlur: () => k(void 0),
3686
- onMouseDown: (q) => q.preventDefault(),
3686
+ onMouseDown: (R) => R.preventDefault(),
3687
3687
  onClick: () => !Q.disabled && s(Q),
3688
3688
  children: [
3689
3689
  /* @__PURE__ */ n("span", { className: "search-dialog__option-label", children: Q.label }),
@@ -3830,7 +3830,7 @@ function oi({
3830
3830
  visualSnapshot: e ? t : a.current
3831
3831
  };
3832
3832
  }
3833
- function Ms({
3833
+ function Ts({
3834
3834
  open: e,
3835
3835
  onClose: t,
3836
3836
  title: r,
@@ -3851,7 +3851,7 @@ function Ms({
3851
3851
  finishVisualClose: E,
3852
3852
  rememberInput: k,
3853
3853
  resolvedMotion: N,
3854
- visualPresent: R,
3854
+ visualPresent: q,
3855
3855
  visualSnapshot: P
3856
3856
  } = oi({
3857
3857
  open: e,
@@ -3867,7 +3867,7 @@ function Ms({
3867
3867
  backdropRef: x
3868
3868
  }), { onKeyDown: z, portal: V } = Be({
3869
3869
  open: e,
3870
- present: R,
3870
+ present: q,
3871
3871
  blocking: !0,
3872
3872
  dismissable: !M,
3873
3873
  outsidePointer: !M,
@@ -3880,7 +3880,7 @@ function Ms({
3880
3880
  }, [D, e]), me(() => {
3881
3881
  const O = _.current, X = document.activeElement;
3882
3882
  !e || !M || !O || X instanceof HTMLElement && O.contains(X) && !X.matches(":disabled") || O.focus();
3883
- }, [M, e]), !R) return null;
3883
+ }, [M, e]), !q) return null;
3884
3884
  const B = P.title, $ = P.description, Y = P.verificationLabel, G = P.verificationPhrase;
3885
3885
  function F() {
3886
3886
  L && C();
@@ -4075,7 +4075,7 @@ function li(e) {
4075
4075
  const t = getComputedStyle(e).transform;
4076
4076
  return t === "none" ? 0 : new DOMMatrixReadOnly(t).m42;
4077
4077
  }
4078
- function Es({
4078
+ function Ss({
4079
4079
  open: e,
4080
4080
  onClose: t,
4081
4081
  title: r,
@@ -4211,7 +4211,7 @@ function Es({
4211
4211
  )
4212
4212
  );
4213
4213
  }
4214
- function Ts({
4214
+ function qs({
4215
4215
  icon: e,
4216
4216
  title: t,
4217
4217
  description: r,
@@ -4226,7 +4226,7 @@ function Ts({
4226
4226
  o ? /* @__PURE__ */ n("div", { className: "empty-state__actions", children: o }) : null
4227
4227
  ] });
4228
4228
  }
4229
- function Ss({
4229
+ function Rs({
4230
4230
  leading: e,
4231
4231
  title: t,
4232
4232
  subtitle: r,
@@ -4243,7 +4243,7 @@ function Ss({
4243
4243
  o ? /* @__PURE__ */ n("div", { className: "entity__trailing", children: o }) : null
4244
4244
  ] });
4245
4245
  }
4246
- function Rs({
4246
+ function $s({
4247
4247
  label: e,
4248
4248
  size: t = "md",
4249
4249
  action: r,
@@ -4272,7 +4272,7 @@ function Rs({
4272
4272
  }
4273
4273
  );
4274
4274
  }
4275
- function qs({ title: e, message: t, action: r }) {
4275
+ function Ls({ title: e, message: t, action: r }) {
4276
4276
  return /* @__PURE__ */ w("div", { className: "error-card", role: "alert", "aria-live": "assertive", children: [
4277
4277
  /* @__PURE__ */ n(st, { className: "error-card__icon", size: 20, strokeWidth: 2, "aria-hidden": "true" }),
4278
4278
  /* @__PURE__ */ w("p", { className: "error-card__title", children: [
@@ -4318,9 +4318,9 @@ const Ue = [
4318
4318
  { value: 1, label: "不满意", Icon: Qr },
4319
4319
  { value: 2, label: "一般", Icon: eo },
4320
4320
  { value: 3, label: "满意", Icon: so },
4321
- { value: 4, label: "非常满意", Icon: Zr }
4321
+ { value: 4, label: "非常满意", Icon: Jr }
4322
4322
  ];
4323
- function $s({
4323
+ function As({
4324
4324
  label: e = "反馈",
4325
4325
  prompt: t = "这次体验怎么样?",
4326
4326
  placeholder: r = "你的反馈…",
@@ -4329,7 +4329,7 @@ function $s({
4329
4329
  onSubmit: s,
4330
4330
  disabled: a = !1
4331
4331
  }) {
4332
- const [l, u] = H(o), [p, d] = H(o), [f, _] = H("keyboard"), [x, g] = H(null), [c, b] = Yn(pi, void 0, ui), m = T(null), v = T(null), D = T(null), I = T([]), h = T(!1), C = T(0), M = T(!1), L = T(!0), E = T("keyboard"), k = fe(), N = fe(), R = fe(), P = c.status === "pending", z = a || P;
4332
+ const [l, u] = H(o), [p, d] = H(o), [f, _] = H("keyboard"), [x, g] = H(null), [c, b] = Yn(pi, void 0, ui), m = T(null), v = T(null), D = T(null), I = T([]), h = T(!1), C = T(0), M = T(!1), L = T(!0), E = T("keyboard"), k = fe(), N = fe(), q = fe(), P = c.status === "pending", z = a || P;
4333
4333
  te(() => (L.current = !0, () => {
4334
4334
  L.current = !1, C.current += 1;
4335
4335
  }), []), te(() => {
@@ -4338,59 +4338,59 @@ function $s({
4338
4338
  function V() {
4339
4339
  C.current += 1, M.current = !1, P && b({ type: "cancel-submission" });
4340
4340
  }
4341
- function B(q, j = !0) {
4342
- j && V(), u(!1), _(q), q === "keyboard" && d(!1), m.current?.focus();
4341
+ function B(R, j = !0) {
4342
+ j && V(), u(!1), _(R), R === "keyboard" && d(!1), m.current?.focus();
4343
4343
  }
4344
4344
  te(() => {
4345
4345
  if (o || !l) return;
4346
- function q(j) {
4346
+ function R(j) {
4347
4347
  if (j.key !== "Escape") return;
4348
- const Z = document.activeElement;
4349
- Z !== m.current && !v.current?.contains(Z) || (j.preventDefault(), B("keyboard"));
4348
+ const J = document.activeElement;
4349
+ J !== m.current && !v.current?.contains(J) || (j.preventDefault(), B("keyboard"));
4350
4350
  }
4351
- return document.addEventListener("keydown", q), () => document.removeEventListener("keydown", q);
4351
+ return document.addEventListener("keydown", R), () => document.removeEventListener("keydown", R);
4352
4352
  }, [o, l]), te(() => {
4353
4353
  if (!l || !p || !h.current) return;
4354
4354
  h.current = !1;
4355
- const q = Ue.findIndex((j) => j.value === c.draft.rating);
4356
- I.current[q === -1 ? 0 : q]?.focus();
4355
+ const R = Ue.findIndex((j) => j.value === c.draft.rating);
4356
+ I.current[R === -1 ? 0 : R]?.focus();
4357
4357
  }, [l, p, c.draft.rating]);
4358
- function $(q) {
4359
- b({ type: "clear-result" }), _(q), d(!0), u(!0), h.current = !0;
4358
+ function $(R) {
4359
+ b({ type: "clear-result" }), _(R), d(!0), u(!0), h.current = !0;
4360
4360
  }
4361
- function Y(q) {
4362
- C.current += 1, b({ type: "draft-change", draft: q });
4361
+ function Y(R) {
4362
+ C.current += 1, b({ type: "draft-change", draft: R });
4363
4363
  }
4364
- function G(q) {
4365
- z || Y({ rating: q });
4364
+ function G(R) {
4365
+ z || Y({ rating: R });
4366
4366
  }
4367
- function F(q, j) {
4368
- const Z = q.key === "ArrowRight" || q.key === "ArrowDown", ne = q.key === "ArrowLeft" || q.key === "ArrowUp";
4369
- if (!Z && !ne) return;
4370
- q.preventDefault();
4371
- const W = (j + (Z ? 1 : Ue.length - 1)) % Ue.length;
4367
+ function F(R, j) {
4368
+ const J = R.key === "ArrowRight" || R.key === "ArrowDown", ne = R.key === "ArrowLeft" || R.key === "ArrowUp";
4369
+ if (!J && !ne) return;
4370
+ R.preventDefault();
4371
+ const W = (j + (J ? 1 : Ue.length - 1)) % Ue.length;
4372
4372
  G(Ue[W].value), I.current[W]?.focus();
4373
4373
  }
4374
- async function O(q) {
4375
- if (q.preventDefault(), !s || a || M.current) return;
4374
+ async function O(R) {
4375
+ if (R.preventDefault(), !s || a || M.current) return;
4376
4376
  const j = di(c.draft);
4377
4377
  if (!fi(j)) {
4378
4378
  b({ type: "validation-error" }), I.current[0]?.focus();
4379
4379
  return;
4380
4380
  }
4381
- const Z = C.current + 1;
4382
- C.current = Z, M.current = !0;
4381
+ const J = C.current + 1;
4382
+ C.current = J, M.current = !0;
4383
4383
  const ne = E.current;
4384
- E.current = "keyboard", D.current?.focus(), b({ type: "submit-start", submissionId: Z });
4384
+ E.current = "keyboard", D.current?.focus(), b({ type: "submit-start", submissionId: J });
4385
4385
  try {
4386
- if (await s(j), !L.current || C.current !== Z) return;
4387
- M.current = !1, b({ type: "submit-success", submissionId: Z }), o || B(ne, !1);
4386
+ if (await s(j), !L.current || C.current !== J) return;
4387
+ M.current = !1, b({ type: "submit-success", submissionId: J }), o || B(ne, !1);
4388
4388
  } catch {
4389
- if (!L.current || C.current !== Z) return;
4390
- M.current = !1, b({ type: "submit-error", submissionId: Z });
4389
+ if (!L.current || C.current !== J) return;
4390
+ M.current = !1, b({ type: "submit-error", submissionId: J });
4391
4391
  }
4392
4392
  }
4393
- const X = Ue.findIndex((q) => q.value === c.draft.rating), Q = X === -1 ? 0 : X, y = s ? c.error === "validation" ? "请选择评分或填写反馈" : c.error === "submission" ? "发送失败,请重试" : c.status === "success" ? "已收到反馈" : "" : "暂不可发送", A = /* @__PURE__ */ w(
4393
+ const X = Ue.findIndex((R) => R.value === c.draft.rating), Q = X === -1 ? 0 : X, y = s ? c.error === "validation" ? "请选择评分或填写反馈" : c.error === "submission" ? "发送失败,请重试" : c.status === "success" ? "已收到反馈" : "" : "暂不可发送", A = /* @__PURE__ */ w(
4394
4394
  "form",
4395
4395
  {
4396
4396
  ref: v,
@@ -4399,19 +4399,19 @@ function $s({
4399
4399
  "data-state": l ? "open" : "closed",
4400
4400
  "data-motion": f,
4401
4401
  "aria-busy": P || void 0,
4402
- "aria-describedby": y && c.status !== "success" ? R : void 0,
4402
+ "aria-describedby": y && c.status !== "success" ? q : void 0,
4403
4403
  inert: !o && !l,
4404
4404
  onSubmit: O,
4405
- onTransitionEnd: (q) => {
4406
- !o && !l && q.target === q.currentTarget && q.propertyName === "opacity" && d(!1);
4405
+ onTransitionEnd: (R) => {
4406
+ !o && !l && R.target === R.currentTarget && R.propertyName === "opacity" && d(!1);
4407
4407
  },
4408
- onKeyDown: (q) => {
4409
- (q.metaKey || q.ctrlKey) && q.key === "Enter" && q.target instanceof HTMLTextAreaElement && (q.preventDefault(), E.current = "keyboard", q.currentTarget.requestSubmit());
4408
+ onKeyDown: (R) => {
4409
+ (R.metaKey || R.ctrlKey) && R.key === "Enter" && R.target instanceof HTMLTextAreaElement && (R.preventDefault(), E.current = "keyboard", R.currentTarget.requestSubmit());
4410
4410
  },
4411
4411
  children: [
4412
4412
  /* @__PURE__ */ w("div", { className: "feedback__head", children: [
4413
4413
  /* @__PURE__ */ n("span", { className: "feedback__prompt", id: N, children: t }),
4414
- /* @__PURE__ */ n("div", { className: "feedback__emotions", role: "radiogroup", "aria-labelledby": N, children: Ue.map(({ value: q, label: j, Icon: Z }, ne) => /* @__PURE__ */ n(
4414
+ /* @__PURE__ */ n("div", { className: "feedback__emotions", role: "radiogroup", "aria-labelledby": N, children: Ue.map(({ value: R, label: j, Icon: J }, ne) => /* @__PURE__ */ n(
4415
4415
  "button",
4416
4416
  {
4417
4417
  ref: (W) => {
@@ -4421,21 +4421,21 @@ function $s({
4421
4421
  role: "radio",
4422
4422
  className: "feedback__emotion",
4423
4423
  "aria-label": j,
4424
- "aria-checked": c.draft.rating === q,
4425
- "data-pointer-pressed": x === q || void 0,
4424
+ "aria-checked": c.draft.rating === R,
4425
+ "data-pointer-pressed": x === R || void 0,
4426
4426
  tabIndex: ne === Q ? 0 : -1,
4427
4427
  disabled: z,
4428
4428
  onPointerDown: () => {
4429
- z || g(q);
4429
+ z || g(R);
4430
4430
  },
4431
4431
  onPointerUp: () => g(null),
4432
4432
  onPointerCancel: () => g(null),
4433
4433
  onPointerLeave: () => g(null),
4434
- onClick: () => G(q),
4434
+ onClick: () => G(R),
4435
4435
  onKeyDown: (W) => F(W, ne),
4436
- children: /* @__PURE__ */ n(Z, { size: 16, strokeWidth: 1.8, "aria-hidden": "true" })
4436
+ children: /* @__PURE__ */ n(J, { size: 16, strokeWidth: 1.8, "aria-hidden": "true" })
4437
4437
  },
4438
- q
4438
+ R
4439
4439
  )) })
4440
4440
  ] }),
4441
4441
  i ? /* @__PURE__ */ w("label", { className: "feedback__field", children: [
@@ -4447,10 +4447,10 @@ function $s({
4447
4447
  value: c.draft.topic,
4448
4448
  disabled: z,
4449
4449
  autoComplete: "off",
4450
- onChange: (q) => Y({ topic: q.currentTarget.value }),
4450
+ onChange: (R) => Y({ topic: R.currentTarget.value }),
4451
4451
  children: [
4452
4452
  /* @__PURE__ */ n("option", { value: "", disabled: !0, children: "选择主题…" }),
4453
- i.map((q) => /* @__PURE__ */ n("option", { value: q, children: q }, q))
4453
+ i.map((R) => /* @__PURE__ */ n("option", { value: R, children: R }, R))
4454
4454
  ]
4455
4455
  }
4456
4456
  )
@@ -4466,7 +4466,7 @@ function $s({
4466
4466
  value: c.draft.comment,
4467
4467
  disabled: z,
4468
4468
  autoComplete: "off",
4469
- onChange: (q) => Y({ comment: q.currentTarget.value })
4469
+ onChange: (R) => Y({ comment: R.currentTarget.value })
4470
4470
  }
4471
4471
  )
4472
4472
  ] }),
@@ -4475,7 +4475,7 @@ function $s({
4475
4475
  "span",
4476
4476
  {
4477
4477
  className: `feedback__message${c.status === "error" ? " feedback__message--error" : ""}`,
4478
- id: R,
4478
+ id: q,
4479
4479
  role: c.status === "error" ? "alert" : void 0,
4480
4480
  "aria-live": c.status === "error" ? "assertive" : void 0,
4481
4481
  "aria-hidden": c.status === "success" || void 0,
@@ -4525,8 +4525,8 @@ function $s({
4525
4525
  "aria-expanded": l,
4526
4526
  "aria-controls": k,
4527
4527
  disabled: a,
4528
- onClick: (q) => {
4529
- const j = q.detail > 0 ? "pointer" : "keyboard";
4528
+ onClick: (R) => {
4529
+ const j = R.detail > 0 ? "pointer" : "keyboard";
4530
4530
  l ? B(j) : $(j);
4531
4531
  },
4532
4532
  children: e
@@ -4536,7 +4536,7 @@ function $s({
4536
4536
  S
4537
4537
  ] });
4538
4538
  }
4539
- function Ls({
4539
+ function Fs({
4540
4540
  title: e,
4541
4541
  subtitle: t,
4542
4542
  tone: r,
@@ -4574,7 +4574,7 @@ function kr(e, t, r, o, i) {
4574
4574
  i.push({ path: u, name: a.name, type: a.type, level: t, parentPath: r, hasChildren: p, setsize: s, posinset: l + 1 }), a.type === "folder" && o.has(u) && a.children && kr(a.children, t + 1, u, o, i);
4575
4575
  });
4576
4576
  }
4577
- function As({
4577
+ function Os({
4578
4578
  nodes: e,
4579
4579
  label: t = "项目目录",
4580
4580
  defaultExpanded: r = []
@@ -4615,7 +4615,7 @@ function As({
4615
4615
  c.currentTarget.contains(c.relatedTarget) || u("keyboard");
4616
4616
  },
4617
4617
  children: d.map((c) => {
4618
- const b = o.has(c.path), m = b ? Gr : Jr;
4618
+ const b = o.has(c.path), m = b ? Gr : Zr;
4619
4619
  return /* @__PURE__ */ n(
4620
4620
  "li",
4621
4621
  {
@@ -4647,7 +4647,7 @@ function As({
4647
4647
  }
4648
4648
  );
4649
4649
  }
4650
- function Fs({
4650
+ function mi({
4651
4651
  orientation: e = "horizontal",
4652
4652
  decorative: t = !0,
4653
4653
  className: r
@@ -4655,7 +4655,39 @@ function Fs({
4655
4655
  const o = ie("separator", `separator--${e}`, r ?? "");
4656
4656
  return t ? /* @__PURE__ */ n("div", { className: o, "aria-hidden": "true" }) : /* @__PURE__ */ n("div", { className: o, role: "separator", "aria-orientation": e });
4657
4657
  }
4658
- function Os({
4658
+ function hi(e) {
4659
+ return /* @__PURE__ */ n("svg", { viewBox: "83.3 10.3 259.7 405.7", fill: "none", "aria-hidden": "true", ...e, children: /* @__PURE__ */ w("g", { fill: "currentColor", children: [
4660
+ /* @__PURE__ */ n("path", { d: "M263.6,345.6h-11.6l19.3-76c34-38.5,71.7-90,71.7-129.4,0-70.1-58.3-129.9-129.9-129.9S83.3,68.6,83.3,140.3s37.8,91.8,71.8,130l19.2,75.4h-11.6c-5.1,0-9.2,4.1-9.2,9.2v1.1l15.4,52.4c.7,4.3,4.5,7.6,9,7.6h70.3c4.5,0,8.3-3.3,9-7.6l15.4-52.4v-1.1c0-5.1-4.1-9.2-9.2-9.2ZM213.2,81.7c33.4,0,60.6,27.2,60.6,60.6s-34,62.1-49,76.6l36.7,38.7c-3.5,3.9-6.9,7.8-10.3,11.4l-38-39.4-5.1-4.6c-5.7-5.1-55.5-49.3-55.5-82.7s27.2-60.6,60.6-60.6ZM176.8,293.5c16.9,17.3,29.7,28.8,31.3,30.3l5.1,4.6,5.1-4.6c1.6-1.4,14.4-13.1,31.3-30.6l-13.3,52.4h-46.2l-13.3-52.1Z" }),
4661
+ /* @__PURE__ */ n("path", { d: "M213.2,208.8c16.2-15.6,45.3-47.6,45.3-66.6s-20.3-45.3-45.3-45.3-45.3,20.3-45.3,45.3,29.1,50.9,45.3,66.6Z" })
4662
+ ] }) });
4663
+ }
4664
+ function Bs({
4665
+ name: e,
4666
+ icon: t,
4667
+ brand: r = "奇异旅行",
4668
+ size: o = "md",
4669
+ className: i,
4670
+ "aria-label": s,
4671
+ ...a
4672
+ }) {
4673
+ const l = `by ${r}`;
4674
+ return /* @__PURE__ */ w(
4675
+ "span",
4676
+ {
4677
+ ...a,
4678
+ role: "img",
4679
+ "aria-label": s ?? `${e} ${l}`,
4680
+ className: ie("q1-product-lockup", `q1-product-lockup--${o}`, i ?? ""),
4681
+ children: [
4682
+ /* @__PURE__ */ n("span", { className: "q1-product-lockup__icon", "aria-hidden": "true", children: t ?? /* @__PURE__ */ n(hi, {}) }),
4683
+ /* @__PURE__ */ n("span", { className: "q1-product-lockup__name", children: e }),
4684
+ /* @__PURE__ */ n(mi, { orientation: "vertical", className: "q1-product-lockup__divider" }),
4685
+ /* @__PURE__ */ n("span", { className: "q1-product-lockup__endorsement", children: l })
4686
+ ]
4687
+ }
4688
+ );
4689
+ }
4690
+ function Ks({
4659
4691
  htmlFor: e,
4660
4692
  required: t,
4661
4693
  children: r
@@ -4707,7 +4739,7 @@ function Ge({
4707
4739
  return { activeIndex: i, itemRefs: a, focusItem: u, reset: p, onMenuKeyDown: d };
4708
4740
  }
4709
4741
  const Mn = 500, En = 10;
4710
- function mi({
4742
+ function bi({
4711
4743
  disabled: e,
4712
4744
  onLongPress: t
4713
4745
  }) {
@@ -4758,7 +4790,7 @@ function mi({
4758
4790
  consumeContextMenuAfterLongPress: x
4759
4791
  };
4760
4792
  }
4761
- function hi({
4793
+ function gi({
4762
4794
  anchor: e,
4763
4795
  menuRef: t
4764
4796
  }) {
@@ -4785,13 +4817,13 @@ function hi({
4785
4817
  };
4786
4818
  }, [e, t]), e ? r : { x: 0, y: 0 };
4787
4819
  }
4788
- const bi = (e) => e.type === "item" && !e.disabled || e.type === "link";
4789
- function Bs({
4820
+ const _i = (e) => e.type === "item" && !e.disabled || e.type === "link";
4821
+ function Ws({
4790
4822
  label: e,
4791
4823
  entries: t,
4792
4824
  children: r
4793
4825
  }) {
4794
- const [o, i] = H(null), s = T(null), a = T(null), l = fe(), u = o !== null, p = t.flatMap((h, C) => bi(h) ? [C] : []), d = p.length === 0, { itemRefs: f, focusItem: _, reset: x, onMenuKeyDown: g } = Ge({
4826
+ const [o, i] = H(null), s = T(null), a = T(null), l = fe(), u = o !== null, p = t.flatMap((h, C) => _i(h) ? [C] : []), d = p.length === 0, { itemRefs: f, focusItem: _, reset: x, onMenuKeyDown: g } = Ge({
4795
4827
  focusableIndices: p,
4796
4828
  getText: (h) => {
4797
4829
  const C = t[h];
@@ -4799,7 +4831,7 @@ function Bs({
4799
4831
  },
4800
4832
  onClose: () => v(),
4801
4833
  onTabExit: () => window.setTimeout(() => v(!1), 0)
4802
- }), c = hi({ anchor: o, menuRef: a }), b = mi({ disabled: d, onLongPress: m });
4834
+ }), c = gi({ anchor: o, menuRef: a }), b = bi({ disabled: d, onLongPress: m });
4803
4835
  function m(h, C) {
4804
4836
  d || (i({ x: h, y: C }), window.requestAnimationFrame(() => _(p[0])));
4805
4837
  }
@@ -4921,7 +4953,7 @@ function un(e, t) {
4921
4953
  )).filter((a) => !a.closest('[inert], [hidden], [aria-hidden="true"]') && a.getClientRects().length > 0 && a.tabIndex >= 0), i = o.indexOf(e);
4922
4954
  o[i + 1]?.focus();
4923
4955
  }
4924
- function Ks({
4956
+ function zs({
4925
4957
  entries: e,
4926
4958
  size: t = "md",
4927
4959
  disabled: r,
@@ -4941,9 +4973,9 @@ function Ks({
4941
4973
  function h(k, N) {
4942
4974
  if (b) return;
4943
4975
  l(N), s(!0);
4944
- const R = k === "first" ? c[0] : c[c.length - 1];
4976
+ const q = k === "first" ? c[0] : c[c.length - 1];
4945
4977
  window.cancelAnimationFrame(d.current), d.current = window.requestAnimationFrame(() => {
4946
- d.current = 0, v(R);
4978
+ d.current = 0, v(q);
4947
4979
  });
4948
4980
  }
4949
4981
  function C(k = !0) {
@@ -4992,8 +5024,8 @@ function Ks({
4992
5024
  children: e.map((k, N) => /* @__PURE__ */ n(
4993
5025
  "button",
4994
5026
  {
4995
- ref: (R) => {
4996
- m.current[N] = R;
5027
+ ref: (q) => {
5028
+ m.current[N] = q;
4997
5029
  },
4998
5030
  type: "button",
4999
5031
  role: "menuitem",
@@ -5011,7 +5043,7 @@ function Ks({
5011
5043
  ) : null
5012
5044
  ] });
5013
5045
  }
5014
- function Ws({
5046
+ function Vs({
5015
5047
  tone: e,
5016
5048
  label: t,
5017
5049
  animated: r = !1,
@@ -5027,7 +5059,7 @@ function Ws({
5027
5059
  const a = i ? `${i}:${t}` : t;
5028
5060
  return /* @__PURE__ */ n("span", { className: s, role: "img", "aria-label": a, title: a });
5029
5061
  }
5030
- function zs({
5062
+ function Hs({
5031
5063
  tone: e = "neutral",
5032
5064
  subtle: t = !1,
5033
5065
  quiet: r = !1,
@@ -5055,7 +5087,7 @@ function zs({
5055
5087
  )
5056
5088
  ] });
5057
5089
  }
5058
- function Vs({
5090
+ function Us({
5059
5091
  href: e,
5060
5092
  size: t = "md",
5061
5093
  icon: r,
@@ -5093,7 +5125,7 @@ function Vs({
5093
5125
  function N(P) {
5094
5126
  a?.(P), h();
5095
5127
  }
5096
- function R(P) {
5128
+ function q(P) {
5097
5129
  l?.(P), m("keyboard"), h();
5098
5130
  }
5099
5131
  return /* @__PURE__ */ n(
@@ -5107,7 +5139,7 @@ function Vs({
5107
5139
  "data-motion-input": b,
5108
5140
  "data-pointer-pressed": g ? "true" : void 0,
5109
5141
  onBlur: N,
5110
- onKeyDown: R,
5142
+ onKeyDown: q,
5111
5143
  onLostPointerCapture: k,
5112
5144
  onPointerCancel: E,
5113
5145
  onPointerDown: C,
@@ -5141,18 +5173,18 @@ function xr() {
5141
5173
  onPointerUp: i
5142
5174
  };
5143
5175
  }
5144
- function gi({ announcement: e, action: t }) {
5176
+ function yi({ announcement: e, action: t }) {
5145
5177
  const r = xr();
5146
5178
  return e ? /* @__PURE__ */ n("a", { className: "banner__cta", href: t.href, ...r, children: t.label }) : /* @__PURE__ */ w("a", { className: "banner__action", href: t.href, ...r, children: [
5147
5179
  t.label,
5148
5180
  /* @__PURE__ */ n(Ee, { "aria-hidden": "true", size: 16, strokeWidth: 2 })
5149
5181
  ] });
5150
5182
  }
5151
- function _i({ title: e, onDismiss: t }) {
5183
+ function wi({ title: e, onDismiss: t }) {
5152
5184
  const r = xr();
5153
5185
  return /* @__PURE__ */ n("button", { className: "banner__close", type: "button", "aria-label": `关闭「${e}」横幅`, onClick: t, ...r, children: /* @__PURE__ */ n(Me, { "aria-hidden": "true", size: 16, strokeWidth: 2 }) });
5154
5186
  }
5155
- function Hs({ title: e, children: t, tone: r, icon: o, action: i, onDismiss: s, progress: a, className: l, ...u }) {
5187
+ function js({ title: e, children: t, tone: r, icon: o, action: i, onDismiss: s, progress: a, className: l, ...u }) {
5156
5188
  const p = r === void 0 && !a, d = ie(
5157
5189
  "banner",
5158
5190
  p ? "banner--announcement" : r === "neutral" ? "" : `banner--${r}`,
@@ -5165,7 +5197,7 @@ function Hs({ title: e, children: t, tone: r, icon: o, action: i, onDismiss: s,
5165
5197
  " — ",
5166
5198
  t
5167
5199
  ] }) : null
5168
- ] }), _ = i ? /* @__PURE__ */ n(gi, { announcement: p, action: i }) : null, x = !p && s ? /* @__PURE__ */ n(_i, { title: e, onDismiss: s }) : null;
5200
+ ] }), _ = i ? /* @__PURE__ */ n(yi, { announcement: p, action: i }) : null, x = !p && s ? /* @__PURE__ */ n(wi, { title: e, onDismiss: s }) : null;
5169
5201
  if (a) {
5170
5202
  const g = Number.isFinite(a.value) ? Math.min(100, Math.max(0, a.value)) : 0;
5171
5203
  return /* @__PURE__ */ w("div", { className: d, ...u, children: [
@@ -5203,10 +5235,10 @@ function Hs({ title: e, children: t, tone: r, icon: o, action: i, onDismiss: s,
5203
5235
  function je(e) {
5204
5236
  e.removeAttribute("data-pointer-pressed");
5205
5237
  }
5206
- function yi(e) {
5238
+ function vi(e) {
5207
5239
  je(e), e.removeAttribute("data-motion-input");
5208
5240
  }
5209
- function wi(e) {
5241
+ function Ni(e) {
5210
5242
  return {
5211
5243
  onPointerEnter(t) {
5212
5244
  e.onPointerEnter?.(t), !t.defaultPrevented && t.isPrimary && t.currentTarget.removeAttribute("data-motion-input");
@@ -5227,7 +5259,7 @@ function wi(e) {
5227
5259
  e.onLostPointerCapture?.(t), t.isPrimary && je(t.currentTarget);
5228
5260
  },
5229
5261
  onBlur(t) {
5230
- e.onBlur?.(t), yi(t.currentTarget);
5262
+ e.onBlur?.(t), vi(t.currentTarget);
5231
5263
  },
5232
5264
  onKeyDown(t) {
5233
5265
  e.onKeyDown?.(t), je(t.currentTarget), t.currentTarget.dataset.motionInput = "keyboard";
@@ -5248,7 +5280,7 @@ function Tn({ secondary: e, divided: t, direction: r, shadow: o, bordered: i, cl
5248
5280
  s
5249
5281
  );
5250
5282
  }
5251
- function vi(e) {
5283
+ function ki(e) {
5252
5284
  if (e.href !== void 0) {
5253
5285
  const {
5254
5286
  hover: f,
@@ -5268,7 +5300,7 @@ function vi(e) {
5268
5300
  onPointerLeave: E,
5269
5301
  onPointerUp: k,
5270
5302
  ...N
5271
- } = e, R = Tn(e, e.hover === !0), P = e.hover ? wi({
5303
+ } = e, q = Tn(e, e.hover === !0), P = e.hover ? Ni({
5272
5304
  onBlur: D,
5273
5305
  onKeyDown: I,
5274
5306
  onLostPointerCapture: h,
@@ -5287,7 +5319,7 @@ function vi(e) {
5287
5319
  onPointerLeave: E,
5288
5320
  onPointerUp: k
5289
5321
  };
5290
- return /* @__PURE__ */ n("a", { className: R, ...N, ...P, children: v });
5322
+ return /* @__PURE__ */ n("a", { className: q, ...N, ...P, children: v });
5291
5323
  }
5292
5324
  const {
5293
5325
  href: t,
@@ -5303,8 +5335,8 @@ function vi(e) {
5303
5335
  } = e;
5304
5336
  return /* @__PURE__ */ n("div", { className: Tn(e, !1), ...d, children: p });
5305
5337
  }
5306
- function Us({ title: e, description: t, action: r, className: o }) {
5307
- return /* @__PURE__ */ w(vi, { bordered: !1, className: ["auth-card", o].filter(Boolean).join(" "), children: [
5338
+ function Ys({ title: e, description: t, action: r, className: o }) {
5339
+ return /* @__PURE__ */ w(ki, { bordered: !1, className: ["auth-card", o].filter(Boolean).join(" "), children: [
5308
5340
  /* @__PURE__ */ w("div", { className: "auth-card__copy", children: [
5309
5341
  /* @__PURE__ */ n("h1", { children: e }),
5310
5342
  /* @__PURE__ */ n("p", { "aria-live": "polite", children: t })
@@ -5312,35 +5344,35 @@ function Us({ title: e, description: t, action: r, className: o }) {
5312
5344
  r ? /* @__PURE__ */ n("div", { className: "auth-card__actions", children: r }) : null
5313
5345
  ] });
5314
5346
  }
5315
- function Ni({ className: e, variant: t = "panel", ...r }) {
5347
+ function xi({ className: e, variant: t = "panel", ...r }) {
5316
5348
  return /* @__PURE__ */ n("aside", { className: ie("q1-sidebar", t === "plain" && "q1-sidebar--plain", e), ...r });
5317
5349
  }
5318
- function ki({ className: e, ...t }) {
5350
+ function Pi({ className: e, ...t }) {
5319
5351
  return /* @__PURE__ */ n("div", { className: ie("q1-sidebar__header", e), ...t });
5320
5352
  }
5321
- function xi({ className: e, ...t }) {
5353
+ function Ci({ className: e, ...t }) {
5322
5354
  return /* @__PURE__ */ n("div", { className: ie("q1-sidebar__content", e), ...t });
5323
5355
  }
5324
- function Pi({ className: e, ...t }) {
5356
+ function Ii({ className: e, ...t }) {
5325
5357
  return /* @__PURE__ */ n("div", { className: ie("q1-sidebar__footer", e), ...t });
5326
5358
  }
5327
- const dt = Object.assign(Ni, {
5328
- Header: ki,
5329
- Content: xi,
5330
- Footer: Pi
5331
- }), Ci = 768, Ii = {
5359
+ const dt = Object.assign(xi, {
5360
+ Header: Pi,
5361
+ Content: Ci,
5362
+ Footer: Ii
5363
+ }), Di = 768, Mi = {
5332
5364
  compact: "calc(var(--q1-space-24) * 3 + var(--q1-space-8))",
5333
5365
  default: "calc(var(--q1-space-24) * 3 + var(--q1-space-10) + var(--q1-space-4))",
5334
5366
  wide: "calc(var(--q1-space-24) * 4 + var(--q1-space-4))"
5335
5367
  };
5336
- function Di(e) {
5368
+ function Ei(e) {
5337
5369
  const [t, r] = H(!1);
5338
5370
  return te(() => {
5339
5371
  const o = window.matchMedia(`(max-width: ${e}px)`), i = () => r(o.matches);
5340
5372
  return i(), o.addEventListener("change", i), () => o.removeEventListener("change", i);
5341
5373
  }, [e]), t;
5342
5374
  }
5343
- function js({
5375
+ function Xs({
5344
5376
  "aria-label": e,
5345
5377
  open: t,
5346
5378
  onOpenChange: r,
@@ -5348,14 +5380,14 @@ function js({
5348
5380
  header: i,
5349
5381
  footer: s,
5350
5382
  children: a,
5351
- collapseBelow: l = Ci,
5383
+ collapseBelow: l = Di,
5352
5384
  drawerWidth: u = "default",
5353
5385
  variant: p = "panel",
5354
5386
  dismissOnBackdrop: d = !1
5355
5387
  }) {
5356
5388
  if (!Number.isFinite(l) || l <= 0)
5357
5389
  throw new Error("SidebarDrawer collapseBelow must be a positive finite number");
5358
- const f = Di(l), _ = fe(), x = fe(), g = T(null), c = T(null), b = T(null), m = T(!1), v = T(!1), [D, I] = H(!1), [h, C] = H("keyboard"), M = f && t, L = T(M), E = f && (M || D), k = ce(() => {
5390
+ const f = Ei(l), _ = fe(), x = fe(), g = T(null), c = T(null), b = T(null), m = T(!1), v = T(!1), [D, I] = H(!1), [h, C] = H("keyboard"), M = f && t, L = T(M), E = f && (M || D), k = ce(() => {
5359
5391
  if (typeof document > "u") return [];
5360
5392
  const $ = document.getElementById(x);
5361
5393
  if (!($ instanceof HTMLElement)) return [];
@@ -5365,7 +5397,7 @@ function js({
5365
5397
  return [Y, ...G, $];
5366
5398
  }, [x]), N = ce(($, Y) => {
5367
5399
  v.current = !$ && Y === "pointer", C(Y), $ && I(!0), r($);
5368
- }, [r]), R = ce(() => {
5400
+ }, [r]), q = ce(() => {
5369
5401
  v.current = !1, I(!1);
5370
5402
  }, []), { onKeyDown: P, portal: z } = Be({
5371
5403
  open: M,
@@ -5391,21 +5423,21 @@ function js({
5391
5423
  }
5392
5424
  if (!D) return;
5393
5425
  if (!f) {
5394
- R();
5426
+ q();
5395
5427
  return;
5396
5428
  }
5397
5429
  if (!v.current || !g.current) {
5398
- R();
5430
+ q();
5399
5431
  return;
5400
5432
  }
5401
5433
  const $ = getComputedStyle(g.current).transitionDuration.split(",").map((F) => Number.parseFloat(F) * (F.trim().endsWith("ms") ? 1 : 1e3)), Y = Math.max(0, ...$);
5402
5434
  if (Y === 0) {
5403
- R();
5435
+ q();
5404
5436
  return;
5405
5437
  }
5406
- const G = window.setTimeout(R, Y + 50);
5438
+ const G = window.setTimeout(q, Y + 50);
5407
5439
  return () => window.clearTimeout(G);
5408
- }, [f, M, R, D]), te(() => {
5440
+ }, [f, M, q, D]), te(() => {
5409
5441
  if (f || !t) {
5410
5442
  m.current = !1;
5411
5443
  return;
@@ -5418,7 +5450,7 @@ function js({
5418
5450
  s ? /* @__PURE__ */ n(dt.Footer, { children: s }) : null
5419
5451
  ] });
5420
5452
  const V = {
5421
- "--q1-sidebar-drawer-width": Ii[u]
5453
+ "--q1-sidebar-drawer-width": Mi[u]
5422
5454
  };
5423
5455
  return /* @__PURE__ */ w(ge, { children: [
5424
5456
  o({
@@ -5459,7 +5491,7 @@ function js({
5459
5491
  "data-state": M ? "open" : "closed",
5460
5492
  onKeyDown: P,
5461
5493
  onTransitionEnd: ($) => {
5462
- M || $.target !== $.currentTarget || !["opacity", "transform"].includes($.propertyName) || R();
5494
+ M || $.target !== $.currentTarget || !["opacity", "transform"].includes($.propertyName) || q();
5463
5495
  },
5464
5496
  children: [
5465
5497
  /* @__PURE__ */ w("div", { className: "q1-sidebar-drawer__header", children: [
@@ -5495,7 +5527,7 @@ function js({
5495
5527
  ) : null
5496
5528
  ] });
5497
5529
  }
5498
- function Ys({ className: e, orientation: t = "vertical", ...r }) {
5530
+ function Gs({ className: e, orientation: t = "vertical", ...r }) {
5499
5531
  return /* @__PURE__ */ n(
5500
5532
  "nav",
5501
5533
  {
@@ -5508,7 +5540,7 @@ function Ys({ className: e, orientation: t = "vertical", ...r }) {
5508
5540
  }
5509
5541
  );
5510
5542
  }
5511
- function Xs({ label: e, action: t, children: r, className: o, ...i }) {
5543
+ function Zs({ label: e, action: t, children: r, className: o, ...i }) {
5512
5544
  const s = fe(), a = e !== void 0;
5513
5545
  return /* @__PURE__ */ w(
5514
5546
  "section",
@@ -5526,7 +5558,7 @@ function Xs({ label: e, action: t, children: r, className: o, ...i }) {
5526
5558
  }
5527
5559
  );
5528
5560
  }
5529
- function Gs(e) {
5561
+ function Qs(e) {
5530
5562
  const { active: t, disabled: r, icon: o, badge: i, description: s, action: a, children: l, className: u, href: p, ...d } = e, f = ie(
5531
5563
  "q1-navigation__item",
5532
5564
  t && "q1-navigation__item--active",
@@ -5607,7 +5639,7 @@ const Pr = {
5607
5639
  function zt() {
5608
5640
  return { ...Pr };
5609
5641
  }
5610
- function Mi(e, t) {
5642
+ function Ti(e, t) {
5611
5643
  switch (t.type) {
5612
5644
  case "open":
5613
5645
  case "close":
@@ -5664,7 +5696,7 @@ function Ae(e) {
5664
5696
  }
5665
5697
  };
5666
5698
  }
5667
- function Ei(e, t) {
5699
+ function Si(e, t) {
5668
5700
  if (t?.contains(e) || e.tabIndex < 0 || e.closest("[inert]") || "disabled" in e && e.disabled) return !1;
5669
5701
  const r = window.getComputedStyle(e);
5670
5702
  return !e.hidden && r.display !== "none" && r.visibility !== "hidden" && e.getClientRects().length > 0;
@@ -5673,32 +5705,32 @@ function Cr(e, t, r) {
5673
5705
  if (!e) return null;
5674
5706
  const i = Array.from(document.querySelectorAll(
5675
5707
  'a[href], area[href], button, input, select, textarea, summary, iframe, [contenteditable="true"], [tabindex]'
5676
- )).filter((a) => Ei(a, t)).map((a, l) => ({ element: a, order: l })).sort((a, l) => {
5708
+ )).filter((a) => Si(a, t)).map((a, l) => ({ element: a, order: l })).sort((a, l) => {
5677
5709
  const u = a.element.tabIndex > 0 ? a.element.tabIndex : Number.MAX_SAFE_INTEGER, p = l.element.tabIndex > 0 ? l.element.tabIndex : Number.MAX_SAFE_INTEGER;
5678
5710
  return u - p || a.order - l.order;
5679
5711
  }).map(({ element: a }) => a), s = i.indexOf(e);
5680
5712
  return s < 0 ? null : i[s + r] ?? null;
5681
5713
  }
5682
- function Ti(e, t) {
5714
+ function qi(e, t) {
5683
5715
  return e ? Array.from(
5684
5716
  e.querySelectorAll("[data-context-action-id]")
5685
5717
  ).find((r) => r.dataset.contextActionId === t) ?? null : null;
5686
5718
  }
5687
- function Si(e) {
5719
+ function Ri(e) {
5688
5720
  return e ? Array.from(e.querySelectorAll([
5689
5721
  ".q1-context-switcher__action:not(:disabled)",
5690
5722
  '.q1-context-switcher__search input[type="search"]:not(:disabled)',
5691
5723
  '.q1-context-switcher__item[data-context-roving-tab-stop]:not([aria-disabled="true"])'
5692
5724
  ].join(","))).filter((t) => t.getClientRects().length > 0) : [];
5693
5725
  }
5694
- const Vt = typeof document > "u" ? te : me, Ri = 500;
5726
+ const Vt = typeof document > "u" ? te : me, $i = 500;
5695
5727
  function yt(e) {
5696
5728
  return e.trim().toLocaleLowerCase();
5697
5729
  }
5698
- function qi(e, t) {
5730
+ function Li(e, t) {
5699
5731
  return t ? [e.textValue, ...e.keywords ?? []].some((r) => yt(r).includes(t)) : !0;
5700
5732
  }
5701
- function $i({
5733
+ function Ai({
5702
5734
  currentContextLabel: e,
5703
5735
  currentContextTextValue: t,
5704
5736
  primaryGroup: r,
@@ -5719,8 +5751,8 @@ function $i({
5719
5751
  openingModality: m,
5720
5752
  onClose: v
5721
5753
  }) {
5722
- const [D, I] = Yn(Mi, Pr), h = T(null), C = T({}), M = T(null), L = T(null), E = T(null), k = T(i), N = T(!1), R = T(D.view), P = T({ buffer: "", timer: 0 }), z = `${c}-title`, V = `${c}-${D.view}-listbox`, B = D.view === "primary" ? r : o, $ = yt(D.query), Y = Ne(
5723
- () => B.items.filter((K) => qi(K, $)),
5754
+ const [D, I] = Yn(Ti, Pr), h = T(null), C = T({}), M = T(null), L = T(null), E = T(null), k = T(i), N = T(!1), q = T(D.view), P = T({ buffer: "", timer: 0 }), z = `${c}-title`, V = `${c}-${D.view}-listbox`, B = D.view === "primary" ? r : o, $ = yt(D.query), Y = Ne(
5755
+ () => B.items.filter((K) => Li(K, $)),
5724
5756
  [B.items, $]
5725
5757
  ), G = Ne(
5726
5758
  () => Y.filter((K) => !K.disabled && K.id !== i),
@@ -5746,7 +5778,7 @@ function $i({
5746
5778
  const K = G.find((ue) => ue.id === F) ?? G[0];
5747
5779
  K ? C.current[K.id]?.focus() : y ? M.current?.focus() : E.current?.focus();
5748
5780
  }, [y, G, f, F]), Vt(() => {
5749
- R.current !== D.view && (R.current = D.view, D.view === "scope" ? L.current?.focus() : M.current?.focus());
5781
+ q.current !== D.view && (q.current = D.view, D.view === "scope" ? L.current?.focus() : M.current?.focus());
5750
5782
  }, [D.view]);
5751
5783
  function A(K) {
5752
5784
  K && (I({ type: "setActive", id: K }), C.current[K]?.focus());
@@ -5756,7 +5788,7 @@ function $i({
5756
5788
  const _e = G.findIndex((we) => we.id === ue), pe = _e >= 0 ? _e : K === 1 ? -1 : 0;
5757
5789
  A(G[(pe + K + G.length) % G.length]?.id ?? null);
5758
5790
  }
5759
- function q(K, ue) {
5791
+ function R(K, ue) {
5760
5792
  if (K.key === "ArrowDown")
5761
5793
  K.preventDefault(), S(1, ue.id);
5762
5794
  else if (K.key === "ArrowUp")
@@ -5770,7 +5802,7 @@ function $i({
5770
5802
  if (_e && K.key !== "/" && !pe && !K.defaultPrevented && !K.nativeEvent.isComposing && K.keyCode !== 229) {
5771
5803
  K.preventDefault(), window.clearTimeout(P.current.timer), P.current.buffer += yt(K.key), P.current.timer = window.setTimeout(() => {
5772
5804
  P.current.buffer = "";
5773
- }, Ri);
5805
+ }, $i);
5774
5806
  const we = G.find(
5775
5807
  (xe) => yt(xe.textValue).startsWith(P.current.buffer)
5776
5808
  );
@@ -5787,7 +5819,7 @@ function $i({
5787
5819
  A(ue?.id ?? null);
5788
5820
  }
5789
5821
  }
5790
- function Z(K) {
5822
+ function J(K) {
5791
5823
  if (K.nativeEvent.isComposing || K.keyCode === 229) return;
5792
5824
  const _e = K.target.matches('input, textarea, select, [contenteditable="true"]'), pe = K.key === "/" || K.key.toLowerCase() === "k" && (K.metaKey || K.ctrlKey);
5793
5825
  if (B.search && !_e && pe && !K.nativeEvent.isComposing && K.keyCode !== 229) {
@@ -5803,7 +5835,7 @@ function $i({
5803
5835
  D.view === "primary" && y ? M.current : L.current,
5804
5836
  h.current,
5805
5837
  O ? C.current[O] : null,
5806
- ...D.view === "primary" ? (a ?? []).map((se) => Ti(_.current, se.id)) : []
5838
+ ...D.view === "primary" ? (a ?? []).map((se) => qi(_.current, se.id)) : []
5807
5839
  ].filter(
5808
5840
  (se) => se !== null && !se.disabled
5809
5841
  ), ee = xe.indexOf(K.target);
@@ -5845,7 +5877,7 @@ function $i({
5845
5877
  "data-side": b.side,
5846
5878
  "data-open-modality": m,
5847
5879
  style: { left: b.left, top: b.top },
5848
- onKeyDown: Z,
5880
+ onKeyDown: J,
5849
5881
  children: [
5850
5882
  /* @__PURE__ */ n("h2", { ref: E, id: z, className: "q1-sr-only", tabIndex: -1, children: ae }),
5851
5883
  /* @__PURE__ */ w("div", { className: "q1-context-switcher__groups", children: [
@@ -5920,7 +5952,7 @@ function $i({
5920
5952
  "data-context-id": K.id,
5921
5953
  ...Ae(_e),
5922
5954
  onClick: () => ne(K),
5923
- onKeyDown: (pe) => q(pe, K),
5955
+ onKeyDown: (pe) => R(pe, K),
5924
5956
  children: [
5925
5957
  D.view === "scope" && K.avatar ? /* @__PURE__ */ n("span", { className: "q1-context-switcher__avatar", "aria-hidden": "true", children: K.avatar }) : null,
5926
5958
  /* @__PURE__ */ w("span", { className: "q1-context-switcher__item-content", children: [
@@ -5964,8 +5996,8 @@ function $i({
5964
5996
  }
5965
5997
  );
5966
5998
  }
5967
- const Li = typeof document > "u" ? te : me;
5968
- function Ai({
5999
+ const Fi = typeof document > "u" ? te : me;
6000
+ function Oi({
5969
6001
  currentContextTextValue: e,
5970
6002
  groups: t,
5971
6003
  pendingId: r,
@@ -5986,16 +6018,16 @@ function Ai({
5986
6018
  onOverlayKeyDown: m
5987
6019
  }) {
5988
6020
  const v = Ne(() => [
5989
- ...t.flatMap((N) => N.items.map((R) => ({ kind: "item", group: N, item: R }))),
6021
+ ...t.flatMap((N) => N.items.map((q) => ({ kind: "item", group: N, item: q }))),
5990
6022
  ...(o ?? []).map((N) => ({ kind: "action", action: N }))
5991
6023
  ], [o, t]), D = Ne(() => v.flatMap(
5992
- (N, R) => N.kind === "item" ? !N.item.disabled && N.item.id !== r ? [R] : [] : N.action.disabled ? [] : [R]
6024
+ (N, q) => N.kind === "item" ? !N.item.disabled && N.item.id !== r ? [q] : [] : N.action.disabled ? [] : [q]
5993
6025
  ), [v, r]), I = (N) => v[N]?.kind === "item" ? v[N].item.textValue : v[N]?.action.textValue ?? "", h = Ne(() => {
5994
6026
  for (const N of t) {
5995
- const R = v.findIndex(
6027
+ const q = v.findIndex(
5996
6028
  (P) => P.kind === "item" && P.group.id === N.id && P.item.id === N.selectedId && !P.item.disabled && P.item.id !== r
5997
6029
  );
5998
- if (R >= 0) return R;
6030
+ if (q >= 0) return q;
5999
6031
  }
6000
6032
  return D[0];
6001
6033
  }, [v, D, t, r]), { itemRefs: C, focusItem: M, reset: L, onMenuKeyDown: E } = Ge({
@@ -6003,7 +6035,7 @@ function Ai({
6003
6035
  getText: I,
6004
6036
  onClose: () => b(!0)
6005
6037
  });
6006
- c.current = L, Li(() => {
6038
+ c.current = L, Fi(() => {
6007
6039
  if (!l || !u || g.current) return;
6008
6040
  if (g.current = !0, D.length === 0) {
6009
6041
  p.current?.focus();
@@ -6048,10 +6080,10 @@ function Ai({
6048
6080
  "aria-label": N.textValue,
6049
6081
  children: [
6050
6082
  /* @__PURE__ */ n("div", { className: "q1-context-switcher__group-label", "aria-hidden": "true", children: N.label }),
6051
- N.items.map((R) => {
6083
+ N.items.map((q) => {
6052
6084
  const P = v.findIndex(
6053
- (B) => B.kind === "item" && B.group.id === N.id && B.item.id === R.id
6054
- ), z = R.id === r, V = !!(R.disabled || z);
6085
+ (B) => B.kind === "item" && B.group.id === N.id && B.item.id === q.id
6086
+ ), z = q.id === r, V = !!(q.disabled || z);
6055
6087
  return /* @__PURE__ */ w(
6056
6088
  "button",
6057
6089
  {
@@ -6062,25 +6094,25 @@ function Ai({
6062
6094
  role: "menuitemradio",
6063
6095
  tabIndex: -1,
6064
6096
  className: "q1-context-switcher__item",
6065
- "aria-label": R.textValue,
6066
- "aria-checked": N.selectedId === R.id,
6097
+ "aria-label": q.textValue,
6098
+ "aria-checked": N.selectedId === q.id,
6067
6099
  "aria-disabled": V || void 0,
6068
6100
  "aria-busy": z || void 0,
6069
- "data-context-id": R.id,
6101
+ "data-context-id": q.id,
6070
6102
  ...Ae(V),
6071
6103
  onClick: () => {
6072
- V || i(R, N);
6104
+ V || i(q, N);
6073
6105
  },
6074
6106
  children: [
6075
- R.avatar ? /* @__PURE__ */ n("span", { className: "q1-context-switcher__avatar", "aria-hidden": "true", children: R.avatar }) : null,
6107
+ q.avatar ? /* @__PURE__ */ n("span", { className: "q1-context-switcher__avatar", "aria-hidden": "true", children: q.avatar }) : null,
6076
6108
  /* @__PURE__ */ w("span", { className: "q1-context-switcher__item-content", children: [
6077
- /* @__PURE__ */ n("span", { className: "q1-context-switcher__item-label", children: R.label }),
6078
- R.description ? /* @__PURE__ */ n("span", { className: "q1-context-switcher__description", children: R.description }) : null
6109
+ /* @__PURE__ */ n("span", { className: "q1-context-switcher__item-label", children: q.label }),
6110
+ q.description ? /* @__PURE__ */ n("span", { className: "q1-context-switcher__description", children: q.description }) : null
6079
6111
  ] }),
6080
- z ? /* @__PURE__ */ n(ke, { className: "q1-context-switcher__pending", size: 16, strokeWidth: 2, "aria-hidden": "true" }) : N.selectedId === R.id ? /* @__PURE__ */ n(De, { className: "q1-context-switcher__check", size: 16, strokeWidth: 2, "aria-hidden": "true" }) : null
6112
+ z ? /* @__PURE__ */ n(ke, { className: "q1-context-switcher__pending", size: 16, strokeWidth: 2, "aria-hidden": "true" }) : N.selectedId === q.id ? /* @__PURE__ */ n(De, { className: "q1-context-switcher__check", size: 16, strokeWidth: 2, "aria-hidden": "true" }) : null
6081
6113
  ]
6082
6114
  },
6083
- R.id
6115
+ q.id
6084
6116
  );
6085
6117
  })
6086
6118
  ]
@@ -6088,12 +6120,12 @@ function Ai({
6088
6120
  N.id
6089
6121
  )) }),
6090
6122
  o?.length ? /* @__PURE__ */ n("div", { className: "q1-context-switcher__footer", children: o.map((N) => {
6091
- const R = v.findIndex((P) => P.kind === "action" && P.action.id === N.id);
6123
+ const q = v.findIndex((P) => P.kind === "action" && P.action.id === N.id);
6092
6124
  return /* @__PURE__ */ w(
6093
6125
  "button",
6094
6126
  {
6095
6127
  ref: (P) => {
6096
- C.current[R] = P;
6128
+ C.current[q] = P;
6097
6129
  },
6098
6130
  type: "button",
6099
6131
  role: "menuitem",
@@ -6117,7 +6149,7 @@ function Ai({
6117
6149
  }
6118
6150
  );
6119
6151
  }
6120
- function Fi(e, t) {
6152
+ function Bi(e, t) {
6121
6153
  const r = new Set(t.map((s) => s.id)), o = /* @__PURE__ */ new Map();
6122
6154
  let i;
6123
6155
  for (const s of e) {
@@ -6133,10 +6165,10 @@ const Sn = typeof document > "u" ? te : me;
6133
6165
  function Ir(e) {
6134
6166
  return e.trim().toLocaleLowerCase();
6135
6167
  }
6136
- function Oi(e, t) {
6168
+ function Ki(e, t) {
6137
6169
  return t ? [e.textValue, ...e.keywords ?? []].some((r) => Ir(r).includes(t)) : !0;
6138
6170
  }
6139
- function Bi({
6171
+ function Wi({
6140
6172
  header: e,
6141
6173
  headerActions: t,
6142
6174
  groups: r,
@@ -6160,12 +6192,12 @@ function Bi({
6160
6192
  const D = `${_}-title`, I = (y) => `${_}-${encodeURIComponent(y)}-label`, [h, C] = H({}), M = T([]), L = ce(() => {
6161
6193
  M.current.forEach((y) => y.cancel()), M.current = [];
6162
6194
  }, []), E = Ne(() => r.map((y) => {
6163
- const A = Ir(h[y.id] ?? ""), S = A ? y.items.filter((q) => Oi(q, A)) : y.items;
6195
+ const A = Ir(h[y.id] ?? ""), S = A ? y.items.filter((R) => Ki(R, A)) : y.items;
6164
6196
  return {
6165
6197
  group: y,
6166
6198
  query: A,
6167
6199
  items: S,
6168
- parents: Fi(y.items, S)
6200
+ parents: Bi(y.items, S)
6169
6201
  };
6170
6202
  }), [r, h]), k = Ne(() => new Set(E.flatMap(
6171
6203
  ({ items: y }) => y.map((A) => A.id)
@@ -6173,7 +6205,7 @@ function Bi({
6173
6205
  ...(t ?? []).map((y) => ({ kind: "header-action", action: y })),
6174
6206
  ...r.flatMap((y) => y.items.map((A) => ({ kind: "item", group: y, item: A }))),
6175
6207
  ...(i ?? []).map((y) => ({ kind: "footer-action", action: y }))
6176
- ], [i, r, t]), R = Ne(() => N.flatMap(
6208
+ ], [i, r, t]), q = Ne(() => N.flatMap(
6177
6209
  (y, A) => y.kind === "item" ? !y.item.disabled && y.item.id !== o && k.has(y.item.id) ? [A] : [] : y.action.disabled ? [] : [A]
6178
6210
  ), [N, o, k]), P = (y) => {
6179
6211
  const A = N[y];
@@ -6183,38 +6215,38 @@ function Bi({
6183
6215
  const A = N.findIndex(
6184
6216
  (S) => S.kind === "item" && (S.item.kind ?? "context") === "context" && S.group.id === y.id && S.item.id === y.selectedId && !S.item.disabled && S.item.id !== o
6185
6217
  );
6186
- if (A >= 0 && R.includes(A)) return A;
6218
+ if (A >= 0 && q.includes(A)) return A;
6187
6219
  }
6188
- return R[0];
6189
- }, [N, R, r, o]), { activeIndex: V, itemRefs: B, focusItem: $, reset: Y, onMenuKeyDown: G } = Ge({
6190
- focusableIndices: R,
6220
+ return q[0];
6221
+ }, [N, q, r, o]), { activeIndex: V, itemRefs: B, focusItem: $, reset: Y, onMenuKeyDown: G } = Ge({
6222
+ focusableIndices: q,
6191
6223
  getText: P,
6192
6224
  onClose: () => m(!0)
6193
- }), F = R.includes(V) && N[V]?.kind === "item" ? V : R.find((y) => N[y]?.kind === "item");
6225
+ }), F = q.includes(V) && N[V]?.kind === "item" ? V : q.find((y) => N[y]?.kind === "item");
6194
6226
  b.current = Y, Sn(() => {
6195
6227
  if (!l || !p || c.current) return;
6196
- if (c.current = !0, R.length === 0) {
6228
+ if (c.current = !0, q.length === 0) {
6197
6229
  const A = d.current?.querySelector('input[type="search"]');
6198
6230
  A ? A.focus() : d.current?.focus();
6199
6231
  return;
6200
6232
  }
6201
- const y = g.current === "last" ? R[R.length - 1] : z;
6233
+ const y = g.current === "last" ? q[q.length - 1] : z;
6202
6234
  y !== void 0 && $(y);
6203
- }, [$, R, l, p, d, z]), Sn(() => {
6235
+ }, [$, q, l, p, d, z]), Sn(() => {
6204
6236
  const y = d.current, A = window.matchMedia("(prefers-reduced-motion: reduce)");
6205
6237
  if (!l || !p || !y || u !== "pointer" || A.matches) return;
6206
- const S = getComputedStyle(y), q = (W) => {
6238
+ const S = getComputedStyle(y), R = (W) => {
6207
6239
  const U = S.getPropertyValue(W).trim();
6208
6240
  return parseFloat(U) * (U.endsWith("ms") ? 1 : 1e3);
6209
- }, j = q("--q1-duration-fast"), Z = Math.min(q("--q1-duration-press"), j);
6210
- if (!Number.isFinite(Z) || !Number.isFinite(j) || Z <= 0) return;
6211
- const ne = (j - Z) / 2;
6241
+ }, j = R("--q1-duration-fast"), J = Math.min(R("--q1-duration-press"), j);
6242
+ if (!Number.isFinite(J) || !Number.isFinite(j) || J <= 0) return;
6243
+ const ne = (j - J) / 2;
6212
6244
  return M.current = [...y.querySelectorAll(".q1-context-switcher__item")].map(
6213
6245
  (W, U) => W.animate([
6214
6246
  { opacity: 0, transform: "translateY(-2px)" },
6215
6247
  { opacity: 1, transform: "translateY(0)" }
6216
6248
  ], {
6217
- duration: Z,
6249
+ duration: J,
6218
6250
  delay: Math.min(U, 2) * ne,
6219
6251
  easing: S.getPropertyValue("--q1-ease-out").trim(),
6220
6252
  fill: "backwards"
@@ -6226,7 +6258,7 @@ function Bi({
6226
6258
  function O(y) {
6227
6259
  if (L(), v(y), !(y.defaultPrevented || y.key === "Escape")) {
6228
6260
  if (y.key === "Tab") {
6229
- const A = Si(d.current), S = A.indexOf(y.target), q = S + (y.shiftKey ? -1 : 1), j = S >= 0 ? A[q] : null;
6261
+ const A = Ri(d.current), S = A.indexOf(y.target), R = S + (y.shiftKey ? -1 : 1), j = S >= 0 ? A[R] : null;
6230
6262
  if (y.preventDefault(), j) {
6231
6263
  y.stopPropagation(), j.focus();
6232
6264
  return;
@@ -6235,7 +6267,7 @@ function Bi({
6235
6267
  return;
6236
6268
  }
6237
6269
  if (!(y.target.matches('input[type="search"]') && y.key !== "Escape")) {
6238
- if (R.length === 0 && (y.key === "ArrowDown" || y.key === "ArrowUp" || y.key === "Home" || y.key === "End" || y.key.length === 1 && /\S/.test(y.key))) {
6270
+ if (q.length === 0 && (y.key === "ArrowDown" || y.key === "ArrowUp" || y.key === "Home" || y.key === "End" || y.key.length === 1 && /\S/.test(y.key))) {
6239
6271
  y.preventDefault();
6240
6272
  return;
6241
6273
  }
@@ -6247,17 +6279,17 @@ function Bi({
6247
6279
  if (y.nativeEvent.isComposing || y.keyCode === 229 || y.key !== "ArrowDown" && y.key !== "ArrowUp") return;
6248
6280
  y.preventDefault(), y.stopPropagation();
6249
6281
  const S = N.flatMap(
6250
- (j, Z) => j.kind === "item" && j.group.id === A.id && R.includes(Z) ? [Z] : []
6251
- ), q = y.key === "ArrowDown" ? S[0] : S.at(-1);
6252
- q !== void 0 && $(q);
6282
+ (j, J) => j.kind === "item" && j.group.id === A.id && q.includes(J) ? [J] : []
6283
+ ), R = y.key === "ArrowDown" ? S[0] : S.at(-1);
6284
+ R !== void 0 && $(R);
6253
6285
  }
6254
6286
  function Q(y, A) {
6255
- const S = N.findIndex((q) => q.kind === A && q.action.id === y.id);
6287
+ const S = N.findIndex((R) => R.kind === A && R.action.id === y.id);
6256
6288
  return /* @__PURE__ */ w(
6257
6289
  "button",
6258
6290
  {
6259
- ref: (q) => {
6260
- B.current[S] = q;
6291
+ ref: (R) => {
6292
+ B.current[S] = R;
6261
6293
  },
6262
6294
  type: "button",
6263
6295
  role: "menuitem",
@@ -6303,8 +6335,8 @@ function Bi({
6303
6335
  ] })
6304
6336
  ] }),
6305
6337
  t?.length ? /* @__PURE__ */ n("div", { className: "q1-context-switcher__header-actions", role: "menu", "aria-labelledby": D, children: t.map((y) => Q(y, "header-action")) }) : null,
6306
- /* @__PURE__ */ n("div", { className: "q1-context-switcher__groups", children: E.map(({ group: y, items: A, query: S, parents: q }) => {
6307
- const j = `${_}-${y.id}-results`, Z = (S ? y.search?.noResults : y.emptyState ?? y.search?.noResults) ?? { title: "暂无可用选项" };
6338
+ /* @__PURE__ */ n("div", { className: "q1-context-switcher__groups", children: E.map(({ group: y, items: A, query: S, parents: R }) => {
6339
+ const j = `${_}-${y.id}-results`, J = (S ? y.search?.noResults : y.emptyState ?? y.search?.noResults) ?? { title: "暂无可用选项" };
6308
6340
  return /* @__PURE__ */ w(nt, { children: [
6309
6341
  y.divider ? /* @__PURE__ */ n("div", { className: "q1-context-switcher__separator", role: "separator" }) : null,
6310
6342
  /* @__PURE__ */ w("div", { className: "q1-context-switcher__group", "data-context-group-id": y.id, children: [
@@ -6337,7 +6369,7 @@ function Bi({
6337
6369
  role: A.length ? "menu" : void 0,
6338
6370
  "aria-label": A.length ? y.textValue : void 0,
6339
6371
  children: A.map((ne) => {
6340
- const W = q.get(ne.id), U = N.findIndex(
6372
+ const W = R.get(ne.id), U = N.findIndex(
6341
6373
  (ue) => ue.kind === "item" && ue.group.id === y.id && ue.item.id === ne.id
6342
6374
  ), re = ne.id === o, ae = !!(ne.disabled || re), de = (ne.kind ?? "context") === "context", K = de && y.selectedId === ne.id;
6343
6375
  return /* @__PURE__ */ w(
@@ -6376,8 +6408,8 @@ function Bi({
6376
6408
  }
6377
6409
  ),
6378
6410
  A.length ? null : /* @__PURE__ */ w("div", { role: "status", "aria-live": "polite", "data-context-empty": !0, children: [
6379
- /* @__PURE__ */ n("div", { className: "q1-context-switcher__item-label", children: Z.title }),
6380
- Z.description ? /* @__PURE__ */ n("div", { className: "q1-context-switcher__empty-description", children: Z.description }) : null
6411
+ /* @__PURE__ */ n("div", { className: "q1-context-switcher__item-label", children: J.title }),
6412
+ J.description ? /* @__PURE__ */ n("div", { className: "q1-context-switcher__empty-description", children: J.description }) : null
6381
6413
  ] })
6382
6414
  ] })
6383
6415
  ] }, y.id);
@@ -6387,9 +6419,9 @@ function Bi({
6387
6419
  }
6388
6420
  );
6389
6421
  }
6390
- const Se = 8, Rn = 4, qn = typeof document > "u" ? te : me;
6422
+ const Se = 8, qn = 4, Rn = typeof document > "u" ? te : me;
6391
6423
  let $e = null, wt = 0, Qt = !1;
6392
- function Ki() {
6424
+ function zi() {
6393
6425
  if (typeof document > "u") return null;
6394
6426
  if (!$e || $e.parentElement !== document.body) {
6395
6427
  const e = document.body.querySelector(':scope > [data-q1-portal="context-switcher"]');
@@ -6397,10 +6429,10 @@ function Ki() {
6397
6429
  }
6398
6430
  return wt += 1, $e;
6399
6431
  }
6400
- function Wi() {
6432
+ function Vi() {
6401
6433
  wt = Math.max(0, wt - 1), !(wt > 0) && (Qt && $e?.remove(), $e = null, Qt = !1);
6402
6434
  }
6403
- function zi({
6435
+ function Hi({
6404
6436
  controlled: e,
6405
6437
  isOpen: t,
6406
6438
  managePortal: r = !0,
@@ -6429,27 +6461,27 @@ function zi({
6429
6461
  _(null);
6430
6462
  return;
6431
6463
  }
6432
- const I = Ki();
6433
- return _(I), () => Wi();
6434
- }, [r]), qn(() => {
6464
+ const I = zi();
6465
+ return _(I), () => Vi();
6466
+ }, [r]), Rn(() => {
6435
6467
  const I = b.current;
6436
6468
  if (b.current = t, !I && t) {
6437
6469
  c.current = "trigger";
6438
6470
  return;
6439
6471
  }
6440
6472
  !I || t || (e && v.current(), c.current === "trigger" && s.current?.focus());
6441
- }, [e, t]), qn(() => {
6473
+ }, [e, t]), Rn(() => {
6442
6474
  if (!t || !o || r && !f) return;
6443
6475
  function I() {
6444
6476
  const E = s.current, k = a.current;
6445
6477
  if (!E || !k) return;
6446
- const N = E.getBoundingClientRect(), R = l.current?.getBoundingClientRect(), P = k.getBoundingClientRect(), z = window.innerWidth, V = window.innerHeight, B = getComputedStyle(E).direction === "rtl" ? "rtl" : "ltr";
6478
+ const N = E.getBoundingClientRect(), q = l.current?.getBoundingClientRect(), P = k.getBoundingClientRect(), z = window.innerWidth, V = window.innerHeight, B = getComputedStyle(E).direction === "rtl" ? "rtl" : "ltr";
6447
6479
  let $ = "start";
6448
6480
  const Y = B === "rtl" ? N.right - P.width : N.left, G = B === "rtl" ? N.left : N.right - P.width;
6449
6481
  let F = Y;
6450
6482
  (F < Se || F + P.width > z - Se) && ($ = "end", F = G), F = Math.max(Se, Math.min(F, z - P.width - Se));
6451
- let O = "bottom", X = (R?.bottom ?? N.bottom) + Rn;
6452
- X + P.height > V - Se && (O = "top", X = N.top - P.height - Rn), X = Math.max(Se, Math.min(X, V - P.height - Se)), g(
6483
+ let O = "bottom", X = (q?.bottom ?? N.bottom) + qn;
6484
+ X + P.height > V - Se && (O = "top", X = N.top - P.height - qn), X = Math.max(Se, Math.min(X, V - P.height - Se)), g(
6453
6485
  (Q) => Q.align === $ && Q.side === O && Q.direction === B && Q.left === F && Q.top === X ? Q : { align: $, side: O, direction: B, left: F, top: X }
6454
6486
  );
6455
6487
  }
@@ -6477,7 +6509,7 @@ function zi({
6477
6509
  return document.addEventListener("pointerdown", I), () => document.removeEventListener("pointerdown", I);
6478
6510
  }, [t, i]), { triggerRef: s, popupRef: a, portalRoot: f, placement: x, closeWithFocus: D };
6479
6511
  }
6480
- function Vi(e, t, r) {
6512
+ function Ui(e, t, r) {
6481
6513
  const o = /* @__PURE__ */ new Set();
6482
6514
  for (const i of e)
6483
6515
  for (const s of i.items) {
@@ -6508,11 +6540,11 @@ function $n(e, t) {
6508
6540
  }
6509
6541
  return o === e ? r : null;
6510
6542
  }
6511
- function Hi(e, t) {
6543
+ function ji(e, t) {
6512
6544
  return e.length === t.length && e.every((r, o) => r === t[o]);
6513
6545
  }
6514
- const Ui = 1e3;
6515
- function ji(e, t, r) {
6546
+ const Yi = 1e3;
6547
+ function Xi(e, t, r) {
6516
6548
  if (!e || typeof MutationObserver > "u") return null;
6517
6549
  const o = e.closest(".q1-context-switcher"), i = document.body, s = o ? $n(i, o) : null;
6518
6550
  if (!o || !s) return null;
@@ -6537,17 +6569,17 @@ function ji(e, t, r) {
6537
6569
  const x = Array.from(a).find((g) => {
6538
6570
  if (!g.isConnected) return !1;
6539
6571
  const c = g.closest(".q1-context-switcher"), b = c ? $n(i, c) : null;
6540
- return b !== null && Hi(b, s) && c?.dataset.q1ContextSwitcherFocusHandoffKey === t && c.dataset.q1ContextSwitcherPrimarySelectedId === r;
6572
+ return b !== null && ji(b, s) && c?.dataset.q1ContextSwitcherFocusHandoffKey === t && c.dataset.q1ContextSwitcherPrimarySelectedId === r;
6541
6573
  });
6542
6574
  if (x) {
6543
6575
  p(), x.focus();
6544
6576
  return;
6545
6577
  }
6546
- l === null && (l = window.setTimeout(p, Ui));
6578
+ l === null && (l = window.setTimeout(p, Yi));
6547
6579
  });
6548
6580
  return f.observe(i, { childList: !0, subtree: !0 }), document.addEventListener("focusin", d, !0), { disconnect: p };
6549
6581
  }
6550
- function Qs({
6582
+ function ec({
6551
6583
  currentContext: e,
6552
6584
  groups: t,
6553
6585
  open: r,
@@ -6563,17 +6595,17 @@ function Qs({
6563
6595
  label: _,
6564
6596
  presentation: x
6565
6597
  }) {
6566
- Vi(t, x, p);
6598
+ Ui(t, x, p);
6567
6599
  const [g, c] = H(o), b = r !== void 0, m = b ? r : g, v = T(null), D = T(null), I = T(null), h = T("selected"), C = T("pointer"), M = T(null), L = T(!1), E = T(() => {
6568
- }), k = T(!1), N = fe(), R = x?.type === "drilldown" ? x : null, P = R !== null, z = x?.type === "stacked", V = z ? p.textValue : e.textValue, B = _ ? `${_} ${V}` : V, $ = R ? {
6569
- primary: t.find((K) => K.id === R.primaryGroupId),
6570
- scope: t.find((K) => K.id === R.scopeGroupId)
6600
+ }), k = T(!1), N = fe(), q = x?.type === "drilldown" ? x : null, P = q !== null, z = x?.type === "stacked", V = z ? p.textValue : e.textValue, B = _ ? `${_} ${V}` : V, $ = q ? {
6601
+ primary: t.find((K) => K.id === q.primaryGroupId),
6602
+ scope: t.find((K) => K.id === q.scopeGroupId)
6571
6603
  } : null, Y = $?.primary?.items.find(
6572
6604
  (K) => K.id === $.primary?.selectedId
6573
- ), G = R && $?.scope ? JSON.stringify([
6605
+ ), G = q && $?.scope ? JSON.stringify([
6574
6606
  _ ?? "",
6575
- R.primaryGroupId,
6576
- R.scopeGroupId,
6607
+ q.primaryGroupId,
6608
+ q.scopeGroupId,
6577
6609
  $.scope.selectedId ?? ""
6578
6610
  ]) : void 0, F = z ? p : P && Y ? Y : e;
6579
6611
  m && (k.current = !1);
@@ -6603,7 +6635,7 @@ function Qs({
6603
6635
  deferPortalUntilReady: !0,
6604
6636
  onClose: Q,
6605
6637
  restoreFocus: !1
6606
- }), A = zi({
6638
+ }), A = Hi({
6607
6639
  controlled: b,
6608
6640
  isOpen: m,
6609
6641
  managePortal: P,
@@ -6614,25 +6646,25 @@ function Qs({
6614
6646
  errorRef: v,
6615
6647
  positioningKey: l,
6616
6648
  onRequestClose: X,
6617
- onCloseTransition: q
6649
+ onCloseTransition: R
6618
6650
  });
6619
6651
  function S() {
6620
6652
  M.current?.disconnect(), M.current = null, !k.current && (k.current = !0, E.current());
6621
6653
  }
6622
- function q() {
6654
+ function R() {
6623
6655
  S(), L.current = !1;
6624
6656
  }
6625
6657
  function j(K) {
6626
6658
  A.closeWithFocus(K ? "trigger" : "preserve"), O(!1), S(), K && A.triggerRef.current?.focus();
6627
6659
  }
6628
- function Z(K, ue) {
6660
+ function J(K, ue) {
6629
6661
  h.current = K, C.current = ue, A.closeWithFocus("trigger"), L.current = !1, O(!0);
6630
6662
  }
6631
6663
  function ne(K) {
6632
- K.key === "ArrowDown" || K.key === "Enter" || K.key === " " ? (K.preventDefault(), m || Z("selected", "keyboard")) : K.key === "ArrowUp" ? (K.preventDefault(), m || Z(P ? "selected" : "last", "keyboard")) : K.key === "Escape" && m && (K.preventDefault(), j(!0));
6664
+ K.key === "ArrowDown" || K.key === "Enter" || K.key === " " ? (K.preventDefault(), m || J("selected", "keyboard")) : K.key === "ArrowUp" ? (K.preventDefault(), m || J(P ? "selected" : "last", "keyboard")) : K.key === "Escape" && m && (K.preventDefault(), j(!0));
6633
6665
  }
6634
6666
  function W(K, ue) {
6635
- P && ue.id === $?.primary?.id && (M.current?.disconnect(), M.current = G ? ji(A.triggerRef.current, G, K.id) : null), A.closeWithFocus("trigger"), s(K, ue), b || j(!0);
6667
+ P && ue.id === $?.primary?.id && (M.current?.disconnect(), M.current = G ? Xi(A.triggerRef.current, G, K.id) : null), A.closeWithFocus("trigger"), s(K, ue), b || j(!0);
6636
6668
  }
6637
6669
  function U(K) {
6638
6670
  A.closeWithFocus("trigger"), f?.(K), b || j(!0);
@@ -6641,7 +6673,7 @@ function Qs({
6641
6673
  s(K, ue);
6642
6674
  }
6643
6675
  const ae = P && $ ? /* @__PURE__ */ n(
6644
- $i,
6676
+ Ai,
6645
6677
  {
6646
6678
  currentContextLabel: e.label,
6647
6679
  currentContextTextValue: e.textValue,
@@ -6664,7 +6696,7 @@ function Qs({
6664
6696
  onClose: j
6665
6697
  }
6666
6698
  ) : z ? /* @__PURE__ */ n(
6667
- Bi,
6699
+ Wi,
6668
6700
  {
6669
6701
  openingModality: C.current,
6670
6702
  header: p,
@@ -6687,7 +6719,7 @@ function Qs({
6687
6719
  onOverlayKeyDown: y.onKeyDown
6688
6720
  }
6689
6721
  ) : /* @__PURE__ */ n(
6690
- Ai,
6722
+ Oi,
6691
6723
  {
6692
6724
  currentContextTextValue: e.textValue,
6693
6725
  groups: t,
@@ -6726,7 +6758,7 @@ function Qs({
6726
6758
  "aria-expanded": m,
6727
6759
  "aria-controls": N,
6728
6760
  "aria-label": B,
6729
- onClick: (K) => m ? j(!0) : Z("selected", K.detail === 0 ? "keyboard" : "pointer"),
6761
+ onClick: (K) => m ? j(!0) : J("selected", K.detail === 0 ? "keyboard" : "pointer"),
6730
6762
  onKeyDown: ne,
6731
6763
  children: [
6732
6764
  F.avatar ? /* @__PURE__ */ n("span", { className: `q1-context-switcher__avatar${z ? " q1-context-switcher__avatar--stacked" : ""}`, "aria-hidden": "true", children: F.avatar }) : null,
@@ -6734,7 +6766,7 @@ function Qs({
6734
6766
  /* @__PURE__ */ n("span", { className: "q1-context-switcher__current-label", children: F.label }),
6735
6767
  !P && F.description ? /* @__PURE__ */ n("span", { className: "q1-context-switcher__description", children: F.description }) : null
6736
6768
  ] }),
6737
- /* @__PURE__ */ n(qe, { className: "q1-context-switcher__chevron", size: 16, strokeWidth: 1.8, "aria-hidden": "true" })
6769
+ /* @__PURE__ */ n(Re, { className: "q1-context-switcher__chevron", size: 16, strokeWidth: 1.8, "aria-hidden": "true" })
6738
6770
  ]
6739
6771
  }
6740
6772
  ),
@@ -6745,7 +6777,7 @@ function Qs({
6745
6777
  }
6746
6778
  );
6747
6779
  }
6748
- function Yi({ title: e, content: t }) {
6780
+ function Gi({ title: e, content: t }) {
6749
6781
  const [r, o] = H(!1), [i, s] = H(!1), [a, l] = H(), u = T(null), p = T(null), d = fe(), f = fe();
6750
6782
  te(() => {
6751
6783
  if (r) {
@@ -6798,11 +6830,11 @@ function Yi({ title: e, content: t }) {
6798
6830
  ] })
6799
6831
  ] });
6800
6832
  }
6801
- function Xi(e) {
6833
+ function Zi(e) {
6802
6834
  return typeof e == "string" || typeof e == "number";
6803
6835
  }
6804
- function Gi({ title: e, ellipsis: t, children: r }) {
6805
- const o = T(null), i = T(null), [s, a] = H(!1), [l, u] = H(!1), p = fe(), d = !!(t && Xi(r));
6836
+ function Qi({ title: e, ellipsis: t, children: r }) {
6837
+ const o = T(null), i = T(null), [s, a] = H(!1), [l, u] = H(!1), p = fe(), d = !!(t && Zi(r));
6806
6838
  return me(() => {
6807
6839
  if (!d) return;
6808
6840
  const f = o.current, _ = i.current;
@@ -6839,7 +6871,7 @@ function Gi({ title: e, ellipsis: t, children: r }) {
6839
6871
  ) : null
6840
6872
  ] }) : /* @__PURE__ */ n("dd", { className: "description__value", children: r });
6841
6873
  }
6842
- function Zs({
6874
+ function tc({
6843
6875
  title: e,
6844
6876
  tooltip: t,
6845
6877
  align: r,
@@ -6850,9 +6882,9 @@ function Zs({
6850
6882
  return /* @__PURE__ */ w("dl", { className: s, children: [
6851
6883
  /* @__PURE__ */ w("dt", { className: "description__title", children: [
6852
6884
  e,
6853
- t ? /* @__PURE__ */ n(Yi, { title: e, content: t }) : null
6885
+ t ? /* @__PURE__ */ n(Gi, { title: e, content: t }) : null
6854
6886
  ] }),
6855
- /* @__PURE__ */ n(Gi, { title: e, ellipsis: o, children: i })
6887
+ /* @__PURE__ */ n(Qi, { title: e, ellipsis: o, children: i })
6856
6888
  ] });
6857
6889
  }
6858
6890
  const Ji = {
@@ -6867,7 +6899,7 @@ function pt(e, t, r) {
6867
6899
  function Ln(e, t, r, o, i, s, a) {
6868
6900
  return e === "top" ? t.top - s - r.height >= a : e === "bottom" ? t.bottom + s + r.height <= i - a : e === "left" ? t.left - s - r.width >= a : t.right + s + r.width <= o - a;
6869
6901
  }
6870
- function Qi(e) {
6902
+ function ea(e) {
6871
6903
  const { trigger: t, card: r, viewportWidth: o, viewportHeight: i, align: s, gap: a, margin: l } = e, u = Ji[e.placement], p = !Ln(e.placement, t, r, o, i, a, l) && Ln(u, t, r, o, i, a, l) ? u : e.placement, d = t.left + t.width / 2, f = t.top + t.height / 2;
6872
6904
  let _, x;
6873
6905
  p === "top" || p === "bottom" ? (_ = s === "start" ? t.left : s === "end" ? t.right - r.width : d - r.width / 2, x = p === "top" ? t.top - a - r.height : t.bottom + a) : (_ = p === "left" ? t.left - a - r.width : t.right + a, x = s === "start" ? t.top : s === "end" ? t.bottom - r.height : f - r.height / 2), _ = pt(_, l, Math.max(l, o - l - r.width)), x = pt(x, l, Math.max(l, i - l - r.height));
@@ -6880,7 +6912,7 @@ function Qi(e) {
6880
6912
  originY: p === "top" ? r.height : p === "bottom" ? 0 : pt(f - x, g, r.height - g)
6881
6913
  };
6882
6914
  }
6883
- function Zi(e) {
6915
+ function ta(e) {
6884
6916
  return {
6885
6917
  left: e.left,
6886
6918
  top: e.top,
@@ -6888,7 +6920,7 @@ function Zi(e) {
6888
6920
  "--context-card-origin-y": `${e.originY}px`
6889
6921
  };
6890
6922
  }
6891
- const ea = 150, Zt = [
6923
+ const na = 150, Jt = [
6892
6924
  "button:not(:disabled)",
6893
6925
  "a[href]",
6894
6926
  "input:not(:disabled)",
@@ -6902,16 +6934,16 @@ function mt(e, t, r) {
6902
6934
  return t >= e.left && t <= e.right && r >= e.top && r <= e.bottom;
6903
6935
  }
6904
6936
  function An(e, t) {
6905
- return Array.from(e.querySelectorAll(Zt)).filter(
6937
+ return Array.from(e.querySelectorAll(Jt)).filter(
6906
6938
  (r) => !t?.contains(r) && !r.matches("[inert], [inert] *") && r.getClientRects().length > 0
6907
6939
  );
6908
6940
  }
6909
- function ta({
6941
+ function ra({
6910
6942
  id: e,
6911
6943
  placement: t,
6912
6944
  align: r
6913
6945
  }) {
6914
- const [o, i] = H(!1), [s, a] = H(!1), [l, u] = H(!1), [p, d] = H(t), [f, _] = H({ left: 0, top: 0, originX: 0, originY: 0 }), [x, g] = H(null), c = T(null), b = T(null), m = T(!1), v = T(null), D = T(null), I = T(!1), h = T(!1), C = T(!1), M = T(!1), L = T(!1), E = T(!1), k = T(!1), N = T(null), R = ce(() => {
6946
+ const [o, i] = H(!1), [s, a] = H(!1), [l, u] = H(!1), [p, d] = H(t), [f, _] = H({ left: 0, top: 0, originX: 0, originY: 0 }), [x, g] = H(null), c = T(null), b = T(null), m = T(!1), v = T(null), D = T(null), I = T(!1), h = T(!1), C = T(!1), M = T(!1), L = T(!1), E = T(!1), k = T(!1), N = T(null), q = ce(() => {
6915
6947
  const W = c.current?.ownerDocument.defaultView;
6916
6948
  v.current !== null && W?.clearTimeout(v.current), v.current = null;
6917
6949
  }, []), P = ce(() => {
@@ -6919,17 +6951,17 @@ function ta({
6919
6951
  }, []), z = ce(() => c.current?.querySelector(
6920
6952
  'button, a[href], input, select, textarea, summary, [contenteditable="true"], [tabindex]:not([tabindex="-1"])'
6921
6953
  )?.matches(':disabled, [aria-disabled="true"]') ?? !1, []), V = ce((W = !1) => {
6922
- R(), P(), m.current = !1, a(!W), i(!1);
6923
- }, [R, P]), B = ce((W) => {
6924
- R(), !(L.current || z()) && (m.current = !0, a(W), i(!0));
6925
- }, [R, z]), $ = ce(() => I.current || h.current || C.current || M.current || D.current !== null, []), Y = ce((W = !1) => {
6954
+ q(), P(), m.current = !1, a(!W), i(!1);
6955
+ }, [q, P]), B = ce((W) => {
6956
+ q(), !(L.current || z()) && (m.current = !0, a(W), i(!0));
6957
+ }, [q, z]), $ = ce(() => I.current || h.current || C.current || M.current || D.current !== null, []), Y = ce((W = !1) => {
6926
6958
  $() || (V(W), E.current || (L.current = !1));
6927
6959
  }, [$, V]), G = ce(() => {
6928
6960
  const W = c.current, U = b.current;
6929
6961
  if (!W || !U) return;
6930
6962
  const re = W.ownerDocument.defaultView;
6931
6963
  if (!re) return;
6932
- const ae = Number.parseFloat(re.getComputedStyle(W).getPropertyValue("--q1-space-2")) || 8, de = Qi({
6964
+ const ae = Number.parseFloat(re.getComputedStyle(W).getPropertyValue("--q1-space-2")) || 8, de = ea({
6933
6965
  trigger: W.getBoundingClientRect(),
6934
6966
  card: { width: U.offsetWidth, height: U.offsetHeight },
6935
6967
  viewportWidth: W.ownerDocument.documentElement.clientWidth,
@@ -6948,7 +6980,7 @@ function ta({
6948
6980
  g(Tt(U));
6949
6981
  const re = (K) => {
6950
6982
  if (k.current = !1, K.key !== "Tab" || K.defaultPrevented || !E.current) return;
6951
- const ue = W.querySelector(Zt), _e = An(U, b.current), pe = _e.indexOf(U.activeElement);
6983
+ const ue = W.querySelector(Jt), _e = An(U, b.current), pe = _e.indexOf(U.activeElement);
6952
6984
  if (!ue || pe < 0 || _e.length === 0) return;
6953
6985
  const we = K.shiftKey ? (pe - 1 + _e.length) % _e.length : (pe + 1) % _e.length;
6954
6986
  _e[we] === ue && (L.current = !1, E.current = !1);
@@ -6975,7 +7007,7 @@ function ta({
6975
7007
  'button, a[href], input, select, textarea, summary, [contenteditable="true"], [tabindex]:not([tabindex="-1"])'
6976
7008
  )?.focus();
6977
7009
  }, []), O = ce(() => {
6978
- const W = c.current?.querySelector(Zt);
7010
+ const W = c.current?.querySelector(Jt);
6979
7011
  if (!W) return null;
6980
7012
  const U = An(W.ownerDocument, b.current), re = U.indexOf(W), ae = re >= 0 ? U[re + 1] : void 0;
6981
7013
  return ae?.focus(), ae ?? null;
@@ -7008,8 +7040,8 @@ function ta({
7008
7040
  U.removeEventListener("keydown", ae, !0), U.removeEventListener("pointerdown", K, !0), U.removeEventListener("pointerup", ue, !0), U.removeEventListener("pointercancel", _e, !0), N.current = null, re();
7009
7041
  };
7010
7042
  }, [X, e, o]), te(() => () => {
7011
- R(), P();
7012
- }, [R, P]);
7043
+ q(), P();
7044
+ }, [q, P]);
7013
7045
  function Q(W, U, re, ae) {
7014
7046
  return U.right <= W.left || U.left >= W.right ? ae >= Math.min(W.top, U.top) && ae <= Math.max(W.bottom, U.bottom) && re >= Math.min(W.right, U.right) && re <= Math.max(W.left, U.left) : re >= Math.min(W.left, U.left) && re <= Math.max(W.right, U.right) && ae >= Math.min(W.bottom, U.bottom) && ae <= Math.max(W.top, U.top);
7015
7047
  }
@@ -7026,20 +7058,20 @@ function ta({
7026
7058
  return de.addEventListener("pointermove", _e, { passive: !0 }), D.current = () => de.removeEventListener("pointermove", _e), !0;
7027
7059
  }
7028
7060
  function A(W) {
7029
- W.pointerType !== "mouse" || z() || !W.currentTarget.ownerDocument.defaultView?.matchMedia("(hover: hover) and (pointer: fine)").matches || (I.current = !0, L.current = !1, E.current = !1, P(), !m.current && (R(), v.current = W.currentTarget.ownerDocument.defaultView.setTimeout(() => {
7061
+ W.pointerType !== "mouse" || z() || !W.currentTarget.ownerDocument.defaultView?.matchMedia("(hover: hover) and (pointer: fine)").matches || (I.current = !0, L.current = !1, E.current = !1, P(), !m.current && (q(), v.current = W.currentTarget.ownerDocument.defaultView.setTimeout(() => {
7030
7062
  v.current = null, I.current && !L.current && B(!0);
7031
- }, ea)));
7063
+ }, na)));
7032
7064
  }
7033
7065
  function S(W) {
7034
- W.pointerType === "mouse" && (I.current = !1, R(), y(W.clientX, W.clientY) || Y());
7066
+ W.pointerType === "mouse" && (I.current = !1, q(), y(W.clientX, W.clientY) || Y());
7035
7067
  }
7036
- function q(W) {
7068
+ function R(W) {
7037
7069
  k.current = !0;
7038
7070
  }
7039
7071
  function j() {
7040
7072
  z() || (C.current = !0, !L.current && (k.current || B(!1)));
7041
7073
  }
7042
- function Z(W) {
7074
+ function J(W) {
7043
7075
  const U = W.relatedTarget;
7044
7076
  k.current = !1, C.current = !1, !(U && b.current?.contains(U)) && Y(!0);
7045
7077
  }
@@ -7058,9 +7090,9 @@ function ta({
7058
7090
  dismiss: X,
7059
7091
  onPointerEnter: A,
7060
7092
  onPointerLeave: S,
7061
- onPointerDown: q,
7093
+ onPointerDown: R,
7062
7094
  onTriggerFocus: j,
7063
- onTriggerBlur: Z,
7095
+ onTriggerBlur: J,
7064
7096
  onTriggerClick: ne,
7065
7097
  onTriggerKeyDown(W) {
7066
7098
  if ((W.key === "Enter" || W.key === " ") && (L.current = !1, E.current = !1), W.key !== "Tab" || W.shiftKey || !m.current) return;
@@ -7085,12 +7117,12 @@ function ta({
7085
7117
  }
7086
7118
  };
7087
7119
  }
7088
- function na(e) {
7120
+ function oa(e) {
7089
7121
  if (typeof e.type != "string") return !0;
7090
7122
  const t = e.props;
7091
7123
  return ["button", "input", "select", "textarea", "summary"].includes(e.type) || e.type === "a" && typeof t.href == "string" || typeof t.tabIndex == "number" && t.tabIndex >= 0 || t.contentEditable === !0 || t.contentEditable === "true";
7092
7124
  }
7093
- function ec({
7125
+ function nc({
7094
7126
  name: e,
7095
7127
  identity: t,
7096
7128
  rows: r,
@@ -7101,7 +7133,7 @@ function ec({
7101
7133
  align: l = "start",
7102
7134
  children: u
7103
7135
  }) {
7104
- const d = `context-card-${fe().replace(/:/g, "")}`, f = ta({ id: d, placement: a, align: l }), _ = ie(
7136
+ const d = `context-card-${fe().replace(/:/g, "")}`, f = ra({ id: d, placement: a, align: l }), _ = ie(
7105
7137
  "context-card-wrap",
7106
7138
  `context-card-wrap--${a}`,
7107
7139
  l !== "start" ? `context-card-wrap--align-${l}` : "",
@@ -7116,7 +7148,7 @@ function ec({
7116
7148
  onClick: f.onTriggerClick
7117
7149
  };
7118
7150
  let g;
7119
- Xt(u) && u.type !== nt && na(u) ? g = jn(u, {
7151
+ Xt(u) && u.type !== nt && oa(u) ? g = jn(u, {
7120
7152
  ...x,
7121
7153
  className: ie("context-card__trigger", u.props.className),
7122
7154
  onFocus: (m) => {
@@ -7166,7 +7198,7 @@ function ec({
7166
7198
  "data-open": f.open ? "true" : "false",
7167
7199
  "data-motion": f.pointerMotion ? "pointer" : "instant",
7168
7200
  "data-side": f.resolvedPlacement,
7169
- style: Zi({ placement: f.resolvedPlacement, ...f.position }),
7201
+ style: ta({ placement: f.resolvedPlacement, ...f.position }),
7170
7202
  onMouseEnter: f.onCardMouseEnter,
7171
7203
  onMouseLeave: f.onCardMouseLeave,
7172
7204
  onFocusCapture: f.onCardFocus,
@@ -7217,7 +7249,7 @@ function Dr(e) {
7217
7249
  function ht(e) {
7218
7250
  Dr(e)?.removeAttribute("data-pointer-pressed");
7219
7251
  }
7220
- function ra(e) {
7252
+ function ia(e) {
7221
7253
  const { onLostPointerCapture: t, onPointerCancel: r, onPointerDown: o, onPointerLeave: i, onPointerUp: s } = e;
7222
7254
  return {
7223
7255
  onPointerDown(a) {
@@ -7239,7 +7271,7 @@ function ra(e) {
7239
7271
  }
7240
7272
  };
7241
7273
  }
7242
- function tc({
7274
+ function rc({
7243
7275
  title: e,
7244
7276
  variant: t = "stripe",
7245
7277
  color: r,
@@ -7264,7 +7296,7 @@ function tc({
7264
7296
  ...o ? { "--book-band": o } : null,
7265
7297
  ...i ? { "--book-text": i } : null,
7266
7298
  ...v ? { "--book-width": v } : null
7267
- }, I = s ? /* @__PURE__ */ n("span", { className: "book__icon", "aria-hidden": "true", inert: !0, children: s }) : null, h = ra({
7299
+ }, I = s ? /* @__PURE__ */ n("span", { className: "book__icon", "aria-hidden": "true", inert: !0, children: s }) : null, h = ia({
7268
7300
  onLostPointerCapture: f,
7269
7301
  onPointerCancel: _,
7270
7302
  onPointerDown: x,
@@ -7285,26 +7317,26 @@ function tc({
7285
7317
  /* @__PURE__ */ n("span", { className: "book__pages", "aria-hidden": "true" })
7286
7318
  ] }) });
7287
7319
  }
7288
- function oa({ className: e } = {}) {
7320
+ function aa({ className: e } = {}) {
7289
7321
  return /* @__PURE__ */ w("span", { className: ie("browser__dots", e), "aria-hidden": "true", children: [
7290
7322
  /* @__PURE__ */ n("span", { className: "browser__dot browser__dot--close" }),
7291
7323
  /* @__PURE__ */ n("span", { className: "browser__dot browser__dot--minimize" }),
7292
7324
  /* @__PURE__ */ n("span", { className: "browser__dot browser__dot--expand" })
7293
7325
  ] });
7294
7326
  }
7295
- function ia({ className: e } = {}) {
7327
+ function sa({ className: e } = {}) {
7296
7328
  return /* @__PURE__ */ w("span", { className: ie("browser__controls", e), "aria-hidden": "true", children: [
7297
7329
  /* @__PURE__ */ n(zr, { size: 14, strokeWidth: 2 }),
7298
7330
  /* @__PURE__ */ n(Qn, { size: 14, strokeWidth: 2 }),
7299
7331
  /* @__PURE__ */ n(io, { size: 14, strokeWidth: 2 })
7300
7332
  ] });
7301
7333
  }
7302
- const aa = typeof document > "u" ? te : me;
7303
- function sa({ address: e, className: t }) {
7334
+ const ca = typeof document > "u" ? te : me;
7335
+ function la({ address: e, className: t }) {
7304
7336
  const r = e.lastIndexOf("/"), o = r > 0 ? e.slice(0, r) : e, i = r > 0 ? e.slice(r) : "", [s, a] = H("idle"), [l, u] = H("instant"), [p, d] = H(!1), f = T(void 0), _ = T(0), x = T(void 0), g = T(!0), c = T(e), b = c.current !== e, m = b ? "idle" : s;
7305
7337
  te(() => (g.current = !0, () => {
7306
7338
  g.current = !1, _.current += 1, x.current = void 0, clearTimeout(f.current);
7307
- }), []), aa(() => {
7339
+ }), []), ca(() => {
7308
7340
  c.current !== e && (c.current = e, _.current += 1, x.current = void 0, clearTimeout(f.current), u("instant"), d(!1), a("idle"));
7309
7341
  }, [e]);
7310
7342
  const v = async (h) => {
@@ -7361,40 +7393,40 @@ function sa({ address: e, className: t }) {
7361
7393
  /* @__PURE__ */ n("span", { className: "q1-sr-only browser__status", role: "status", "aria-live": "polite", children: I })
7362
7394
  ] });
7363
7395
  }
7364
- function ca({ tabs: e, className: t }) {
7396
+ function ua({ tabs: e, className: t }) {
7365
7397
  return /* @__PURE__ */ n("div", { className: ie("browser__tabs", t), "aria-hidden": "true", children: e.map((r, o) => (
7366
7398
  // key 带 index:label 是装饰文案不保证唯一,纯 label 做 key 在同名标签时会撞车。
7367
7399
  /* @__PURE__ */ n("span", { className: `browser__tab${r.isActive ? " browser__tab--active" : ""}`, children: r.label }, `${r.label}-${o}`)
7368
7400
  )) });
7369
7401
  }
7370
- function nc({ address: e, variant: t = "dark", tabs: r, children: o, className: i, ...s }) {
7402
+ function oc({ address: e, variant: t = "dark", tabs: r, children: o, className: i, ...s }) {
7371
7403
  return /* @__PURE__ */ w("div", { className: ie("browser", `browser--${t}`, i), ...s, children: [
7372
7404
  /* @__PURE__ */ w("div", { className: "browser__chrome", children: [
7373
- r && r.length > 0 ? /* @__PURE__ */ n(ca, { tabs: r }) : null,
7405
+ r && r.length > 0 ? /* @__PURE__ */ n(ua, { tabs: r }) : null,
7374
7406
  /* @__PURE__ */ w("div", { className: "browser__bar", children: [
7375
7407
  /* @__PURE__ */ w("div", { className: "browser__zone browser__zone--start", children: [
7376
- /* @__PURE__ */ n(oa, {}),
7377
- /* @__PURE__ */ n(ia, {})
7408
+ /* @__PURE__ */ n(aa, {}),
7409
+ /* @__PURE__ */ n(sa, {})
7378
7410
  ] }),
7379
- /* @__PURE__ */ n("div", { className: "browser__zone browser__zone--center", children: /* @__PURE__ */ n(sa, { address: e }) })
7411
+ /* @__PURE__ */ n("div", { className: "browser__zone browser__zone--center", children: /* @__PURE__ */ n(la, { address: e }) })
7380
7412
  ] })
7381
7413
  ] }),
7382
7414
  /* @__PURE__ */ n("div", { className: "browser__body", children: o })
7383
7415
  ] });
7384
7416
  }
7385
- function rc() {
7417
+ function ic() {
7386
7418
  return /* @__PURE__ */ w("div", { className: "browser__placeholder", "aria-hidden": "true", children: [
7387
7419
  /* @__PURE__ */ n("span", { className: "browser__skeleton-line browser__skeleton-line--medium" }),
7388
7420
  /* @__PURE__ */ n("span", { className: "browser__skeleton-line browser__skeleton-line--short" }),
7389
7421
  /* @__PURE__ */ n("span", { className: "browser__skeleton-line" })
7390
7422
  ] });
7391
7423
  }
7392
- const Mr = (e) => e !== void 0 && Number.isFinite(e) && e > 0 ? e : void 0, Er = (e) => e === void 0 ? void 0 : { "--q1-avatar-size": `${e}px` }, la = (e) => {
7424
+ const Mr = (e) => e !== void 0 && Number.isFinite(e) && e > 0 ? e : void 0, Er = (e) => e === void 0 ? void 0 : { "--q1-avatar-size": `${e}px` }, da = (e) => {
7393
7425
  const t = e.trim();
7394
7426
  return t ? new RegExp("\\p{Script=Han}", "u").test(t[0]) ? t[0] : t.split(/\s+/).slice(0, 2).map((r) => r[0]).join("").toUpperCase() : "";
7395
7427
  };
7396
- function ua({ title: e, src: t, letter: r, glyph: o, placeholder: i = !1, icon: s, iconColor: a, size: l, className: u }) {
7397
- const [p, d] = H(null), f = Mr(l), _ = !!t && p !== t, x = e.trim() || "头像", g = r ? { variant: "avatar--letter", node: r } : o ? { variant: "avatar--glyph", node: o } : { variant: "avatar--letter", node: la(e) }, c = i ? "avatar--placeholder" : _ ? "avatar--image" : g.variant, b = i ? { "aria-hidden": !0 } : _ ? {} : { role: "img", "aria-label": x };
7428
+ function fa({ title: e, src: t, letter: r, glyph: o, placeholder: i = !1, icon: s, iconColor: a, size: l, className: u }) {
7429
+ const [p, d] = H(null), f = Mr(l), _ = !!t && p !== t, x = e.trim() || "头像", g = r ? { variant: "avatar--letter", node: r } : o ? { variant: "avatar--glyph", node: o } : { variant: "avatar--letter", node: da(e) }, c = i ? "avatar--placeholder" : _ ? "avatar--image" : g.variant, b = i ? { "aria-hidden": !0 } : _ ? {} : { role: "img", "aria-label": x };
7398
7430
  return /* @__PURE__ */ w("span", { className: ie("avatar", c, u), style: Er(f), ...b, children: [
7399
7431
  _ ? /* @__PURE__ */ n(
7400
7432
  "img",
@@ -7418,7 +7450,7 @@ function ua({ title: e, src: t, letter: r, glyph: o, placeholder: i = !1, icon:
7418
7450
  ) : null
7419
7451
  ] });
7420
7452
  }
7421
- function oc({
7453
+ function ac({
7422
7454
  members: e,
7423
7455
  label: t,
7424
7456
  size: r,
@@ -7431,7 +7463,7 @@ function oc({
7431
7463
  return /* @__PURE__ */ w("span", { className: ie("avatar-group", a), style: g, ...b, children: [
7432
7464
  d.map((m, v) => (
7433
7465
  // 成员不再 aria-hidden——每个 Avatar 自带 aria-label(名字),读屏逐个念。
7434
- /* @__PURE__ */ n("span", { className: "avatar-group__item", style: { zIndex: c(v) }, children: /* @__PURE__ */ n(ua, { ...m, size: l }) }, `${m.title}-${v}`)
7466
+ /* @__PURE__ */ n("span", { className: "avatar-group__item", style: { zIndex: c(v) }, children: /* @__PURE__ */ n(fa, { ...m, size: l }) }, `${m.title}-${v}`)
7435
7467
  )),
7436
7468
  f > 0 ? (
7437
7469
  // +N 独立可访问名「还有 N 位成员」,不再 aria-hidden。
@@ -7451,7 +7483,7 @@ function oc({
7451
7483
  ) : null
7452
7484
  ] });
7453
7485
  }
7454
- function ic({
7486
+ function sc({
7455
7487
  shape: e = "rounded",
7456
7488
  animated: t = !0,
7457
7489
  show: r = !1,
@@ -7479,9 +7511,9 @@ function ic({
7479
7511
  }
7480
7512
  ) : /* @__PURE__ */ n(o, { ...a, className: p, "data-state": "loading", "aria-hidden": "true", inert: !0 });
7481
7513
  }
7482
- const da = { sm: 2, md: 3, lg: 4 };
7483
- function ac({ label: e, size: t = "md" }) {
7484
- const r = typeof t == "number" ? t : da[t], o = { width: r, height: r };
7514
+ const pa = { sm: 2, md: 3, lg: 4 };
7515
+ function cc({ label: e, size: t = "md" }) {
7516
+ const r = typeof t == "number" ? t : pa[t], o = { width: r, height: r };
7485
7517
  return /* @__PURE__ */ w("span", { className: "loading-dots-wrap", "aria-live": e ? "polite" : void 0, children: [
7486
7518
  e ? /* @__PURE__ */ n("span", { className: "loading-dots__label", children: e }) : null,
7487
7519
  /* @__PURE__ */ w("span", { className: "loading-dots", "aria-hidden": "true", children: [
@@ -7491,9 +7523,9 @@ function ac({ label: e, size: t = "md" }) {
7491
7523
  ] })
7492
7524
  ] });
7493
7525
  }
7494
- const Fn = 8, fa = new Intl.Segmenter(void 0, { granularity: "grapheme" });
7495
- function sc({ text: e, tailLength: t = Fn, mono: r = !1 }) {
7496
- const o = Number.isFinite(t) ? Math.max(0, Math.floor(t)) : Fn, i = Array.from(fa.segment(e), ({ segment: u }) => u), s = Math.max(0, i.length - o), a = i.slice(0, s).join(""), l = i.slice(s).join("");
7526
+ const Fn = 8, ma = new Intl.Segmenter(void 0, { granularity: "grapheme" });
7527
+ function lc({ text: e, tailLength: t = Fn, mono: r = !1 }) {
7528
+ const o = Number.isFinite(t) ? Math.max(0, Math.floor(t)) : Fn, i = Array.from(ma.segment(e), ({ segment: u }) => u), s = Math.max(0, i.length - o), a = i.slice(0, s).join(""), l = i.slice(s).join("");
7497
7529
  return /* @__PURE__ */ w("span", { className: `middle-truncate${r ? " middle-truncate--mono" : ""}`, title: e, "aria-label": e, children: [
7498
7530
  /* @__PURE__ */ n("span", { className: "q1-sr-only", children: e }),
7499
7531
  /* @__PURE__ */ w("span", { className: "middle-truncate__visual", "aria-hidden": "true", children: [
@@ -7502,7 +7534,7 @@ function sc({ text: e, tailLength: t = Fn, mono: r = !1 }) {
7502
7534
  ] })
7503
7535
  ] });
7504
7536
  }
7505
- function cc({ children: e }) {
7537
+ function uc({ children: e }) {
7506
7538
  return /* @__PURE__ */ w("div", { className: "phone", children: [
7507
7539
  /* @__PURE__ */ n("span", { className: "phone__island", "aria-hidden": "true" }),
7508
7540
  /* @__PURE__ */ n("span", { className: "phone__btn phone__btn--mute", "aria-hidden": "true" }),
@@ -7515,7 +7547,7 @@ function cc({ children: e }) {
7515
7547
  ] })
7516
7548
  ] });
7517
7549
  }
7518
- function pa({ action: e }) {
7550
+ function ha({ action: e }) {
7519
7551
  const [t, r] = H(!1), [o, i] = H();
7520
7552
  function s(u) {
7521
7553
  u.isPrimary && u.button === 0 && (i("pointer"), r(!0));
@@ -7538,21 +7570,21 @@ function pa({ action: e }) {
7538
7570
  };
7539
7571
  return e.type === "button" ? /* @__PURE__ */ n("button", { type: "button", className: "project-banner__cta", onClick: e.onClick, ...l, children: e.label }) : /* @__PURE__ */ n("a", { className: "project-banner__cta", href: e.href, ...l, children: e.label });
7540
7572
  }
7541
- const ma = {
7573
+ const ba = {
7542
7574
  default: rt,
7543
7575
  success: ao,
7544
7576
  warning: ct,
7545
7577
  error: st
7546
7578
  };
7547
- function lc({ variant: e = "default", message: t, action: r }) {
7548
- const o = ma[e];
7579
+ function dc({ variant: e = "default", message: t, action: r }) {
7580
+ const o = ba[e];
7549
7581
  return /* @__PURE__ */ w("div", { className: `project-banner project-banner--${e}`, role: "status", children: [
7550
7582
  /* @__PURE__ */ n(o, { className: "project-banner__icon", size: 15, strokeWidth: 2, "aria-hidden": "true" }),
7551
7583
  /* @__PURE__ */ n("span", { className: "project-banner__message", children: t }),
7552
- /* @__PURE__ */ n(pa, { action: r })
7584
+ /* @__PURE__ */ n(ha, { action: r })
7553
7585
  ] });
7554
7586
  }
7555
- function uc({
7587
+ function fc({
7556
7588
  text: e,
7557
7589
  copyValue: t,
7558
7590
  successMessage: r,
@@ -7592,12 +7624,12 @@ function uc({
7592
7624
  )
7593
7625
  ] });
7594
7626
  }
7595
- const ha = {
7627
+ const ga = {
7596
7628
  info: { Icon: rt, label: "提示" },
7597
7629
  danger: { Icon: an, label: "错误" },
7598
7630
  warning: { Icon: ct, label: "警告" }
7599
- }, ba = typeof document > "u" ? te : me;
7600
- function dc({
7631
+ }, _a = typeof document > "u" ? te : me;
7632
+ function pc({
7601
7633
  text: e,
7602
7634
  prompt: t = !0,
7603
7635
  inverted: r = !1,
@@ -7606,10 +7638,10 @@ function dc({
7606
7638
  onCopy: s
7607
7639
  }) {
7608
7640
  const { copied: a, copy: l, reset: u } = cn(), p = Array.isArray(e) ? e : [e], d = i ?? p.join(`
7609
- `), f = o ? ha[o] : void 0, _ = ie("snippet", r ? "snippet--inverted" : "", o ? `snippet--${o}` : ""), x = T(d), g = x.current !== d, c = T(!1), b = T(!1), [m, v] = H(!1), [D, I] = H(!1), [h, C] = H("instant");
7641
+ `), f = o ? ga[o] : void 0, _ = ie("snippet", r ? "snippet--inverted" : "", o ? `snippet--${o}` : ""), x = T(d), g = x.current !== d, c = T(!1), b = T(!1), [m, v] = H(!1), [D, I] = H(!1), [h, C] = H("instant");
7610
7642
  te(() => (b.current = !0, () => {
7611
7643
  b.current = !1;
7612
- }), []), ba(() => {
7644
+ }), []), _a(() => {
7613
7645
  x.current !== d && (x.current = d, C("instant"), u());
7614
7646
  }, [u, d]), te(() => {
7615
7647
  if (!m) {
@@ -7677,26 +7709,26 @@ function dc({
7677
7709
  )
7678
7710
  ] });
7679
7711
  }
7680
- function ga(e, t) {
7712
+ function ya(e, t) {
7681
7713
  return e >= 95 ? "danger" : e >= 80 ? "warning" : "success";
7682
7714
  }
7683
- const _a = {
7715
+ const wa = {
7684
7716
  xs: { boxPx: 20, radius: 42.5, strokeWidth: 15, valueFontSize: null },
7685
7717
  sm: { boxPx: 32, radius: 45, strokeWidth: 10, valueFontSize: 11 },
7686
7718
  md: { boxPx: 64, radius: 45, strokeWidth: 10, valueFontSize: 18 },
7687
7719
  lg: { boxPx: 128, radius: 45, strokeWidth: 10, valueFontSize: 32 }
7688
- }, ya = 10, On = { success: 80, warning: 50 };
7689
- function wa(e, t, r) {
7690
- const o = Math.min(ya, e, 100 - e);
7720
+ }, va = 10, On = { success: 80, warning: 50 };
7721
+ function Na(e, t, r) {
7722
+ const o = Math.min(va, e, 100 - e);
7691
7723
  if (o <= 0) return 0;
7692
7724
  if (!(100 - e - o <= 0)) return o;
7693
7725
  const s = t / r * 100;
7694
7726
  return o < s ? 0 : o;
7695
7727
  }
7696
- function va(e, t, r) {
7697
- return r || (t === "health" ? e >= On.success ? "success" : e >= On.warning ? "warning" : "danger" : ga(e));
7728
+ function ka(e, t, r) {
7729
+ return r || (t === "health" ? e >= On.success ? "success" : e >= On.warning ? "warning" : "danger" : ya(e));
7698
7730
  }
7699
- function fc({
7731
+ function mc({
7700
7732
  value: e,
7701
7733
  size: t = "md",
7702
7734
  showValue: r = !1,
@@ -7705,7 +7737,7 @@ function fc({
7705
7737
  label: s,
7706
7738
  indeterminate: a = !1
7707
7739
  }) {
7708
- const { boxPx: l, radius: u, strokeWidth: p, valueFontSize: d } = _a[t], f = 2 * Math.PI * u, _ = typeof e == "number" && Number.isFinite(e) ? Math.min(100, Math.max(0, e)) : 0, x = 50, g = a ? 25 : _, c = a ? 0 : wa(_, p, f), b = a ? 0 : Math.max(0, 100 - _ - c), m = -90 + (g + c / 2) / 100 * 360, v = a ? "primary" : va(_, i, o);
7740
+ const { boxPx: l, radius: u, strokeWidth: p, valueFontSize: d } = wa[t], f = 2 * Math.PI * u, _ = typeof e == "number" && Number.isFinite(e) ? Math.min(100, Math.max(0, e)) : 0, x = 50, g = a ? 25 : _, c = a ? 0 : Na(_, p, f), b = a ? 0 : Math.max(0, 100 - _ - c), m = -90 + (g + c / 2) / 100 * 360, v = a ? "primary" : ka(_, i, o);
7709
7741
  return /* @__PURE__ */ w(
7710
7742
  "span",
7711
7743
  {
@@ -7751,7 +7783,7 @@ function fc({
7751
7783
  }
7752
7784
  );
7753
7785
  }
7754
- function pc({
7786
+ function hc({
7755
7787
  value: e,
7756
7788
  max: t = 100,
7757
7789
  tone: r = "neutral",
@@ -7797,14 +7829,14 @@ function pc({
7797
7829
  ] }, `${d}-${_}`)) }) : null
7798
7830
  ] });
7799
7831
  }
7800
- const Na = {
7832
+ const xa = {
7801
7833
  info: rt,
7802
7834
  success: er,
7803
7835
  warning: ct,
7804
7836
  error: an,
7805
7837
  secondary: rt
7806
7838
  };
7807
- function ka({ action: e, disabled: t }) {
7839
+ function Pa({ action: e, disabled: t }) {
7808
7840
  const [r, o] = H(!1), [i, s] = H();
7809
7841
  function a(d) {
7810
7842
  !t && d.isPrimary && d.button === 0 && (s("pointer"), o(!0));
@@ -7844,7 +7876,7 @@ function ka({ action: e, disabled: t }) {
7844
7876
  }
7845
7877
  );
7846
7878
  }
7847
- function mc({
7879
+ function bc({
7848
7880
  tone: e = "info",
7849
7881
  size: t = "default",
7850
7882
  filled: r = !1,
@@ -7853,7 +7885,7 @@ function mc({
7853
7885
  action: s,
7854
7886
  children: a
7855
7887
  }) {
7856
- const l = Na[e], u = ie(
7888
+ const l = xa[e], u = ie(
7857
7889
  "note",
7858
7890
  `note--${e}`,
7859
7891
  `note--${t}`,
@@ -7866,10 +7898,10 @@ function mc({
7866
7898
  i ? /* @__PURE__ */ n("span", { className: "note__label", children: i }) : null,
7867
7899
  /* @__PURE__ */ n("span", { className: "note__text", children: a })
7868
7900
  ] }),
7869
- s ? /* @__PURE__ */ n(ka, { action: s, disabled: o }) : null
7901
+ s ? /* @__PURE__ */ n(Pa, { action: s, disabled: o }) : null
7870
7902
  ] });
7871
7903
  }
7872
- function hc({ previous: e, next: t }) {
7904
+ function gc({ previous: e, next: t }) {
7873
7905
  return /* @__PURE__ */ w("nav", { className: "docs-pagination", "aria-label": "分页导航", children: [
7874
7906
  e ? /* @__PURE__ */ w(
7875
7907
  "a",
@@ -7903,13 +7935,13 @@ function hc({ previous: e, next: t }) {
7903
7935
  ) : /* @__PURE__ */ n("span", { className: "docs-pagination__slot" })
7904
7936
  ] });
7905
7937
  }
7906
- const xa = { sm: 10, md: 12, lg: 15, xl: 15 };
7907
- function Pa({
7938
+ const Ca = { sm: 10, md: 12, lg: 15, xl: 15 };
7939
+ function Ia({
7908
7940
  size: e = "md",
7909
7941
  tone: t = "default",
7910
7942
  label: r = "加载中…"
7911
7943
  }) {
7912
- const o = ie("spinner", `spinner--${e}`, t !== "default" ? `spinner--${t}` : ""), i = xa[e];
7944
+ const o = ie("spinner", `spinner--${e}`, t !== "default" ? `spinner--${t}` : ""), i = Ca[e];
7913
7945
  return /* @__PURE__ */ w("span", { className: o, role: "status", children: [
7914
7946
  Array.from({ length: i }, (s, a) => /* @__PURE__ */ n(
7915
7947
  "span",
@@ -7930,11 +7962,11 @@ function Bn(e) {
7930
7962
  const t = Number(e);
7931
7963
  return Number.isFinite(t) && t >= 1 ? Math.floor(t) : 1;
7932
7964
  }
7933
- function Ca(e) {
7965
+ function Da(e) {
7934
7966
  const t = Number(e);
7935
7967
  return Number.isFinite(t) && t > 0 ? Math.floor(t) : 20;
7936
7968
  }
7937
- function Ia({
7969
+ function Ma({
7938
7970
  totalPages: e,
7939
7971
  total: t,
7940
7972
  pageSize: r
@@ -7947,16 +7979,16 @@ function Ia({
7947
7979
  if (Number.isFinite(t) && Number(t) > 0)
7948
7980
  return Math.max(1, Math.ceil(Number(t) / (r ?? 20)));
7949
7981
  }
7950
- function Da(e, t, r) {
7982
+ function Ea(e, t, r) {
7951
7983
  const o = Math.min(Math.max(1, e), t);
7952
7984
  return t <= (r ? 5 : 7) ? Array.from({ length: t }, (s, a) => a + 1) : r ? o <= 3 ? [1, 2, 3, "…", t] : o >= t - 2 ? [1, "…", t - 2, t - 1, t] : [1, "…", o, "…", t] : o <= 4 ? [1, 2, 3, 4, 5, "…", t] : o >= t - 3 ? [1, "…", t - 4, t - 3, t - 2, t - 1, t] : [1, "…", o - 1, o, o + 1, "…", t];
7953
7985
  }
7954
- function Ma(e, t, r) {
7986
+ function Ta(e, t, r) {
7955
7987
  if (!Number.isFinite(r) || r <= 0) return { start: 0, end: 0 };
7956
7988
  const o = Math.min(e * t, Math.floor(r));
7957
7989
  return { start: Math.min((e - 1) * t + 1, o), end: o };
7958
7990
  }
7959
- function bc({
7991
+ function _c({
7960
7992
  page: e,
7961
7993
  pageSize: t = 20,
7962
7994
  total: r,
@@ -7972,11 +8004,11 @@ function bc({
7972
8004
  compact: _ = !1,
7973
8005
  className: x = ""
7974
8006
  }) {
7975
- const [g, c] = H(""), [b, m] = H(), v = T(a), D = Ca(t), I = Number.isFinite(r) && Number(r) >= 0, h = Ia({
8007
+ const [g, c] = H(""), [b, m] = H(), v = T(a), D = Da(t), I = Number.isFinite(r) && Number(r) >= 0, h = Ma({
7976
8008
  totalPages: o,
7977
8009
  total: r,
7978
8010
  pageSize: D
7979
- }), C = h ? Math.min(Bn(e), h) : Bn(e), M = I && Number(r) <= 0 || o === 0, L = I ? Ma(C, D, Number(r)) : null, E = !I && o === void 0, k = !M && C > 1, N = !M && (E ? i === !0 : h !== void 0 && C < h), R = l && !E && h ? Da(C, h, _) : [], P = ["pagination", _ ? "pagination--compact" : "", x].filter(Boolean).join(" "), z = String(h ?? 1).length, V = z <= 3 ? "pagination__page-buttons--short" : z <= 6 ? "pagination__page-buttons--medium" : z <= 10 ? "pagination__page-buttons--long" : "pagination__page-buttons--extra-long", B = {
8011
+ }), C = h ? Math.min(Bn(e), h) : Bn(e), M = I && Number(r) <= 0 || o === 0, L = I ? Ta(C, D, Number(r)) : null, E = !I && o === void 0, k = !M && C > 1, N = !M && (E ? i === !0 : h !== void 0 && C < h), q = l && !E && h ? Ea(C, h, _) : [], P = ["pagination", _ ? "pagination--compact" : "", x].filter(Boolean).join(" "), z = String(h ?? 1).length, V = z <= 3 ? "pagination__page-buttons--short" : z <= 6 ? "pagination__page-buttons--medium" : z <= 10 ? "pagination__page-buttons--long" : "pagination__page-buttons--extra-long", B = {
7980
8012
  "--pagination-page-digits": z
7981
8013
  }, $ = () => m(void 0), Y = (F, O) => {
7982
8014
  !O.isPrimary || O.button !== 0 || a || M || m(F);
@@ -7996,7 +8028,7 @@ function bc({
7996
8028
  }) : u ?? (M ? "暂无数据" : I && L ? `${L.start}–${L.end} / 共 ${Number(r)} 条` : h !== void 0 ? `第 ${C} 页 / 共 ${h} 页` : `第 ${C} 页`) }),
7997
8029
  /* @__PURE__ */ n("span", { className: "pagination__completion q1-sr-only", "aria-live": "polite", "aria-atomic": "true", children: g }),
7998
8030
  /* @__PURE__ */ w("div", { className: "pagination__controls", children: [
7999
- /* @__PURE__ */ n("span", { className: "pagination__spinner-slot", children: a ? /* @__PURE__ */ n(Pa, { size: "sm" }) : null }),
8031
+ /* @__PURE__ */ n("span", { className: "pagination__spinner-slot", children: a ? /* @__PURE__ */ n(Ia, { size: "sm" }) : null }),
8000
8032
  p ? /* @__PURE__ */ n("div", { className: "pagination__page-size", children: p }) : null,
8001
8033
  /* @__PURE__ */ w("div", { className: `pagination__page-buttons ${V}`, style: B, children: [
8002
8034
  /* @__PURE__ */ n(
@@ -8019,7 +8051,7 @@ function bc({
8019
8051
  children: /* @__PURE__ */ n(at, { "aria-hidden": "true", focusable: "false", size: 16, strokeWidth: 2 })
8020
8052
  }
8021
8053
  ),
8022
- R.map(
8054
+ q.map(
8023
8055
  (F, O) => F === "…" ? /* @__PURE__ */ n("span", { className: "pagination__ellipsis", "data-pagination-item": "ellipsis", "aria-hidden": "true", children: "…" }, `ellipsis-${O}`) : /* @__PURE__ */ n(
8024
8056
  "button",
8025
8057
  {
@@ -8075,7 +8107,7 @@ const Kn = (e) => e && e !== "start" ? `table__cell--align-${e}` : void 0;
8075
8107
  function Wn(e) {
8076
8108
  return `${typeof e}:${String(e)}`;
8077
8109
  }
8078
- const Ea = [
8110
+ const Sa = [
8079
8111
  "a",
8080
8112
  "button",
8081
8113
  "input",
@@ -8099,10 +8131,10 @@ function zn(e, t) {
8099
8131
  if (e === t || !e) return !1;
8100
8132
  const r = e.closest;
8101
8133
  if (typeof r != "function") return !1;
8102
- const o = r.call(e, Ea);
8134
+ const o = r.call(e, Sa);
8103
8135
  return !!(o && o !== t);
8104
8136
  }
8105
- function gc({
8137
+ function yc({
8106
8138
  data: e,
8107
8139
  columns: t,
8108
8140
  rowKey: r,
@@ -8126,12 +8158,12 @@ function gc({
8126
8158
  style: I,
8127
8159
  ...h
8128
8160
  }) {
8129
- const C = e.map((S, q) => ({
8161
+ const C = e.map((S, R) => ({
8130
8162
  row: S,
8131
- rowIndex: q,
8132
- key: r(S, q),
8133
- disabled: g?.getRowDisabled?.(S, q) ?? !1
8134
- })), M = new Set(g?.selectedKeys ?? []), L = g ? C.filter((S) => !S.disabled) : [], E = L.filter((S) => M.has(S.key)), k = L.length > 0 && E.length === L.length, N = E.length > 0 && !k, R = ie(
8163
+ rowIndex: R,
8164
+ key: r(S, R),
8165
+ disabled: g?.getRowDisabled?.(S, R) ?? !1
8166
+ })), M = new Set(g?.selectedKeys ?? []), L = g ? C.filter((S) => !S.disabled) : [], E = L.filter((S) => M.has(S.key)), k = L.length > 0 && E.length === L.length, N = E.length > 0 && !k, q = ie(
8135
8167
  "table",
8136
8168
  i === "compact" && "table--compact",
8137
8169
  s && "table--sticky-header",
@@ -8142,19 +8174,19 @@ function gc({
8142
8174
  ), V = a === void 0 ? void 0 : { maxHeight: a }, B = s || a !== void 0 || l !== void 0;
8143
8175
  function $(S) {
8144
8176
  if (!g) return;
8145
- const q = new Set(g.selectedKeys);
8146
- S.currentTarget.checked ? L.forEach((j) => q.add(j.key)) : L.forEach((j) => q.delete(j.key)), g.onSelectionChange([...q]);
8177
+ const R = new Set(g.selectedKeys);
8178
+ S.currentTarget.checked ? L.forEach((j) => R.add(j.key)) : L.forEach((j) => R.delete(j.key)), g.onSelectionChange([...R]);
8147
8179
  }
8148
- function Y(S, q) {
8180
+ function Y(S, R) {
8149
8181
  if (!g || S.disabled) return;
8150
8182
  const j = new Set(g.selectedKeys);
8151
- q.currentTarget.checked ? j.add(S.key) : j.delete(S.key), g.onSelectionChange([...j]);
8183
+ R.currentTarget.checked ? j.add(S.key) : j.delete(S.key), g.onSelectionChange([...j]);
8152
8184
  }
8153
- function G(S, q) {
8154
- !v || zn(q.target, q.currentTarget) || v.onActivate(S.row, S.rowIndex);
8185
+ function G(S, R) {
8186
+ !v || zn(R.target, R.currentTarget) || v.onActivate(S.row, S.rowIndex);
8155
8187
  }
8156
- function F(S, q) {
8157
- !v || zn(q.target, q.currentTarget) || q.key !== "Enter" && q.key !== " " || (q.preventDefault(), v.onActivate(S.row, S.rowIndex));
8188
+ function F(S, R) {
8189
+ !v || zn(R.target, R.currentTarget) || R.key !== "Enter" && R.key !== " " || (R.preventDefault(), v.onActivate(S.row, S.rowIndex));
8158
8190
  }
8159
8191
  function O(S) {
8160
8192
  return S.nextSortDirection ?? (f === S.key && _ === "asc" ? "desc" : "asc");
@@ -8166,7 +8198,7 @@ function gc({
8166
8198
  if (S.sortable)
8167
8199
  return f !== S.key ? "none" : _ === "asc" ? "ascending" : _ === "desc" ? "descending" : "none";
8168
8200
  }
8169
- const y = /* @__PURE__ */ w("table", { ...h, className: R, style: P, children: [
8201
+ const y = /* @__PURE__ */ w("table", { ...h, className: q, style: P, children: [
8170
8202
  o != null ? /* @__PURE__ */ n("caption", { children: o }) : null,
8171
8203
  u,
8172
8204
  /* @__PURE__ */ n("thead", { className: d ? void 0 : "table__head--hidden", children: /* @__PURE__ */ w("tr", { children: [
@@ -8185,12 +8217,12 @@ function gc({
8185
8217
  }
8186
8218
  ) }) }) : null,
8187
8219
  t.map((S) => {
8188
- const q = Q(S), j = S.sortable && f === S.key && _ ? _ === "asc" ? "升序" : "降序" : null, Z = O(S) === "asc" ? "升序" : "降序", ne = j ? /* @__PURE__ */ n("span", { className: "table__sort-state", children: j }) : null, W = S.sortLabel ?? (typeof S.header == "string" ? S.header : S.key), U = S.sortable ? /* @__PURE__ */ w(
8220
+ const R = Q(S), j = S.sortable && f === S.key && _ ? _ === "asc" ? "升序" : "降序" : null, J = O(S) === "asc" ? "升序" : "降序", ne = j ? /* @__PURE__ */ n("span", { className: "table__sort-state", children: j }) : null, W = S.sortLabel ?? (typeof S.header == "string" ? S.header : S.key), U = S.sortable ? /* @__PURE__ */ w(
8189
8221
  "button",
8190
8222
  {
8191
8223
  type: "button",
8192
8224
  className: "table__sort",
8193
- "aria-label": `点击后将按${W}${Z}排序`,
8225
+ "aria-label": `点击后将按${W}${J}排序`,
8194
8226
  disabled: !x,
8195
8227
  onClick: x ? () => X(S) : void 0,
8196
8228
  children: [
@@ -8202,17 +8234,17 @@ function gc({
8202
8234
  S.header,
8203
8235
  ne
8204
8236
  ] });
8205
- return /* @__PURE__ */ n("th", { scope: "col", "aria-sort": q, className: Kn(S.align), children: U }, S.key);
8237
+ return /* @__PURE__ */ n("th", { scope: "col", "aria-sort": R, className: Kn(S.align), children: U }, S.key);
8206
8238
  }),
8207
8239
  c ? /* @__PURE__ */ n("th", { scope: "col", className: "table__cell--actions", children: c.header }) : null
8208
8240
  ] }) }),
8209
8241
  /* @__PURE__ */ n("tbody", { children: C.map((S) => {
8210
- const q = {
8242
+ const R = {
8211
8243
  className: v ? "table__row--interactive" : void 0,
8212
8244
  tabIndex: v ? 0 : void 0,
8213
8245
  "aria-label": v ? v.getRowLabel(S.row, S.rowIndex) : void 0,
8214
- onClick: v ? (Z) => G(S, Z) : void 0,
8215
- onKeyDown: v ? (Z) => F(S, Z) : void 0
8246
+ onClick: v ? (J) => G(S, J) : void 0,
8247
+ onKeyDown: v ? (J) => F(S, J) : void 0
8216
8248
  }, j = /* @__PURE__ */ w(ge, { children: [
8217
8249
  g ? /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n("label", { className: "table__checkbox-control", children: /* @__PURE__ */ n(
8218
8250
  "input",
@@ -8222,19 +8254,19 @@ function gc({
8222
8254
  "aria-checked": M.has(S.key) ? "true" : "false",
8223
8255
  checked: M.has(S.key),
8224
8256
  disabled: S.disabled,
8225
- onChange: (Z) => Y(S, Z)
8257
+ onChange: (J) => Y(S, J)
8226
8258
  }
8227
8259
  ) }) }) : null,
8228
- t.map((Z) => /* @__PURE__ */ n("td", { className: Kn(Z.align), children: Z.render(S.row, S.rowIndex) }, Z.key)),
8260
+ t.map((J) => /* @__PURE__ */ n("td", { className: Kn(J.align), children: J.render(S.row, S.rowIndex) }, J.key)),
8229
8261
  c ? /* @__PURE__ */ n("td", { className: "table__cell--actions", children: c.render(S.row, S.rowIndex) }) : null
8230
8262
  ] });
8231
8263
  return p ? /* @__PURE__ */ n(nt, { children: p(S.row, {
8232
8264
  row: S.row,
8233
8265
  rowIndex: S.rowIndex,
8234
8266
  rowKey: S.key,
8235
- rowProps: q,
8267
+ rowProps: R,
8236
8268
  cells: j
8237
- }) }, Wn(S.key)) : /* @__PURE__ */ n("tr", { ...q, children: j }, Wn(S.key));
8269
+ }) }, Wn(S.key)) : /* @__PURE__ */ n("tr", { ...R, children: j }, Wn(S.key));
8238
8270
  }) })
8239
8271
  ] }), A = B ? /* @__PURE__ */ n("div", { className: z, style: V, tabIndex: 0, children: y }) : y;
8240
8272
  return /* @__PURE__ */ w(ge, { children: [
@@ -8242,7 +8274,7 @@ function gc({
8242
8274
  A
8243
8275
  ] });
8244
8276
  }
8245
- function _c({
8277
+ function wc({
8246
8278
  items: e,
8247
8279
  initial: t = 4,
8248
8280
  noBorder: r,
@@ -8287,13 +8319,13 @@ function _c({
8287
8319
  onPointerUp: g,
8288
8320
  children: [
8289
8321
  i ? "收起" : `显示更多 ${x} 项`,
8290
- /* @__PURE__ */ n(qe, { className: "show-more__chevron", size: 16, strokeWidth: 1.8, "aria-hidden": "true" })
8322
+ /* @__PURE__ */ n(Re, { className: "show-more__chevron", size: 16, strokeWidth: 1.8, "aria-hidden": "true" })
8291
8323
  ]
8292
8324
  }
8293
8325
  ) }) : null
8294
8326
  ] });
8295
8327
  }
8296
- function yc({
8328
+ function vc({
8297
8329
  loading: e,
8298
8330
  loadingLabel: t = "正在加载更多内容…",
8299
8331
  noGap: r,
@@ -8354,7 +8386,7 @@ function yc({
8354
8386
  /* @__PURE__ */ n("span", { className: "q1-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: e ? t : "" })
8355
8387
  ] });
8356
8388
  }
8357
- function Ta(e) {
8389
+ function qa(e) {
8358
8390
  if (Number.isNaN(Date.parse(e))) return "时区未知";
8359
8391
  if (/Z$/i.test(e)) return "UTC";
8360
8392
  const t = e.match(/([+-])(\d{2}):?(\d{2})$/);
@@ -8365,65 +8397,65 @@ function Ta(e) {
8365
8397
  function bt(e, t, r) {
8366
8398
  return t >= e.left && t <= e.right && r >= e.top && r <= e.bottom;
8367
8399
  }
8368
- function wc({
8400
+ function Nc({
8369
8401
  relative: e,
8370
8402
  relativeLong: t,
8371
8403
  iso: r,
8372
8404
  local: o,
8373
8405
  utc: i
8374
8406
  }) {
8375
- const [s, a] = H(!1), [l, u] = H(!1), [p, d] = H(null), [f, _] = H({ side: "top", left: 0, top: 0 }), [x, g] = H(!1), c = T(null), b = T(null), m = T(null), v = T(null), D = T(!1), I = T(null), h = T(!1), C = T(!1), M = T(!1), L = T(!1), E = `relative-time-card-${fe().replace(/:/g, "")}`, k = `${E}-title`, N = Ta(r), R = ce(() => {
8407
+ const [s, a] = H(!1), [l, u] = H(!1), [p, d] = H(null), [f, _] = H({ side: "top", left: 0, top: 0 }), [x, g] = H(!1), c = T(null), b = T(null), m = T(null), v = T(null), D = T(!1), I = T(null), h = T(!1), C = T(!1), M = T(!1), L = T(!1), E = `relative-time-card-${fe().replace(/:/g, "")}`, k = `${E}-title`, N = qa(r), q = ce(() => {
8376
8408
  const S = c.current?.ownerDocument.defaultView;
8377
8409
  m.current !== null && S && S.clearTimeout(m.current), m.current = null;
8378
8410
  }, []), P = ce(() => {
8379
8411
  v.current?.(), v.current = null;
8380
8412
  }, []), z = ce((S) => {
8381
- R(), !M.current && (L.current = !0, u(S), a(!0));
8382
- }, [R]), V = ce(() => {
8383
- R(), P(), L.current = !1, a(!1);
8384
- }, [R, P]), B = ce(() => {
8413
+ q(), !M.current && (L.current = !0, u(S), a(!0));
8414
+ }, [q]), V = ce(() => {
8415
+ q(), P(), L.current = !1, a(!1);
8416
+ }, [q, P]), B = ce(() => {
8385
8417
  L.current && (M.current = !0, V());
8386
8418
  }, [V]), $ = ce(() => {
8387
8419
  const S = c.current?.ownerDocument.activeElement === c.current;
8388
8420
  !h.current && !C.current && !v.current && !S && V();
8389
8421
  }, [V]), Y = ce(() => {
8390
- const S = c.current, q = b.current;
8391
- if (!S || !q) return;
8392
- const j = 8, Z = 8, ne = S.getBoundingClientRect(), W = q.offsetWidth, U = q.offsetHeight, re = S.ownerDocument, ae = re.documentElement.clientWidth, de = re.documentElement.clientHeight, K = ne.top - Z - U >= j, ue = ne.bottom + Z + U <= de - j, _e = K || !ue && ne.top >= de - ne.bottom ? "top" : "bottom", pe = ne.left + ne.width / 2 - W / 2, we = Math.max(j, Math.min(pe, ae - j - W)), xe = _e === "top" ? ne.top - Z - U : ne.bottom + Z, ee = Math.max(j, Math.min(xe, de - j - U));
8422
+ const S = c.current, R = b.current;
8423
+ if (!S || !R) return;
8424
+ const j = 8, J = 8, ne = S.getBoundingClientRect(), W = R.offsetWidth, U = R.offsetHeight, re = S.ownerDocument, ae = re.documentElement.clientWidth, de = re.documentElement.clientHeight, K = ne.top - J - U >= j, ue = ne.bottom + J + U <= de - j, _e = K || !ue && ne.top >= de - ne.bottom ? "top" : "bottom", pe = ne.left + ne.width / 2 - W / 2, we = Math.max(j, Math.min(pe, ae - j - W)), xe = _e === "top" ? ne.top - J - U : ne.bottom + J, ee = Math.max(j, Math.min(xe, de - j - U));
8393
8425
  _({ side: _e, left: we, top: ee }), g(!0);
8394
8426
  }, []);
8395
8427
  te(() => {
8396
8428
  const S = c.current;
8397
8429
  if (!S) return;
8398
- const q = S.ownerDocument;
8399
- return d(Tt(q)), () => St(q);
8430
+ const R = S.ownerDocument;
8431
+ return d(Tt(R)), () => St(R);
8400
8432
  }, []), me(() => {
8401
- const S = c.current, q = b.current, j = S?.ownerDocument.defaultView;
8402
- if (!S || !q || !j) return;
8433
+ const S = c.current, R = b.current, j = S?.ownerDocument.defaultView;
8434
+ if (!S || !R || !j) return;
8403
8435
  Y();
8404
- const Z = typeof j.ResizeObserver == "function" ? new j.ResizeObserver(Y) : null;
8405
- return Z?.observe(S), Z?.observe(q), j.addEventListener("scroll", Y, !0), j.addEventListener("resize", Y), () => {
8406
- Z?.disconnect(), j.removeEventListener("scroll", Y, !0), j.removeEventListener("resize", Y);
8436
+ const J = typeof j.ResizeObserver == "function" ? new j.ResizeObserver(Y) : null;
8437
+ return J?.observe(S), J?.observe(R), j.addEventListener("scroll", Y, !0), j.addEventListener("resize", Y), () => {
8438
+ J?.disconnect(), j.removeEventListener("scroll", Y, !0), j.removeEventListener("resize", Y);
8407
8439
  };
8408
8440
  }, [p, Y]), te(() => {
8409
8441
  if (!s) return;
8410
8442
  const S = c.current;
8411
8443
  if (!S) return;
8412
- const q = S.ownerDocument, j = lt(q, {
8444
+ const R = S.ownerDocument, j = lt(R, {
8413
8445
  id: E,
8414
8446
  blocking: !1,
8415
8447
  escape: !0,
8416
8448
  outsidePointer: !1,
8417
8449
  getContainer: () => b.current,
8418
8450
  onClose: B
8419
- }), Z = (W) => {
8451
+ }), J = (W) => {
8420
8452
  const U = W.target;
8421
8453
  U && typeof U.nodeType == "number" && !c.current?.contains(U) && !b.current?.contains(U) && V();
8422
8454
  }, ne = (W) => {
8423
- W.key !== "Escape" || W.defaultPrevented || !Ie(q, E) || (W.preventDefault(), W.stopPropagation(), u(!0), B());
8455
+ W.key !== "Escape" || W.defaultPrevented || !Ie(R, E) || (W.preventDefault(), W.stopPropagation(), u(!0), B());
8424
8456
  };
8425
- return q.addEventListener("pointerdown", Z, !0), q.addEventListener("focusin", Z), q.addEventListener("keydown", ne, !0), () => {
8426
- q.removeEventListener("pointerdown", Z, !0), q.removeEventListener("focusin", Z), q.removeEventListener("keydown", ne, !0), j();
8457
+ return R.addEventListener("pointerdown", J, !0), R.addEventListener("focusin", J), R.addEventListener("keydown", ne, !0), () => {
8458
+ R.removeEventListener("pointerdown", J, !0), R.removeEventListener("focusin", J), R.removeEventListener("keydown", ne, !0), j();
8427
8459
  };
8428
8460
  }, [E, B, V, s]), te(() => {
8429
8461
  const S = c.current?.ownerDocument.defaultView;
@@ -8431,38 +8463,38 @@ function wc({
8431
8463
  m.current !== null && S?.clearTimeout(m.current), I.current !== null && S?.clearTimeout(I.current), P();
8432
8464
  };
8433
8465
  }, [P]);
8434
- function G(S, q, j, Z) {
8435
- return j >= Math.min(S.left, q.left) && j <= Math.max(S.right, q.right) && (q.bottom <= S.top && Z >= q.bottom && Z <= S.top || q.top >= S.bottom && Z >= S.bottom && Z <= q.top);
8436
- }
8437
- function F(S, q) {
8438
- const j = c.current, Z = b.current, ne = j?.ownerDocument;
8439
- if (!j || !Z || !ne || !L.current) return !1;
8440
- const W = j.getBoundingClientRect(), U = Z.getBoundingClientRect();
8441
- if (!G(W, U, S, q) && !bt(W, S, q) && !bt(U, S, q)) return !1;
8466
+ function G(S, R, j, J) {
8467
+ return j >= Math.min(S.left, R.left) && j <= Math.max(S.right, R.right) && (R.bottom <= S.top && J >= R.bottom && J <= S.top || R.top >= S.bottom && J >= S.bottom && J <= R.top);
8468
+ }
8469
+ function F(S, R) {
8470
+ const j = c.current, J = b.current, ne = j?.ownerDocument;
8471
+ if (!j || !J || !ne || !L.current) return !1;
8472
+ const W = j.getBoundingClientRect(), U = J.getBoundingClientRect();
8473
+ if (!G(W, U, S, R) && !bt(W, S, R) && !bt(U, S, R)) return !1;
8442
8474
  P();
8443
8475
  const re = (ae) => {
8444
8476
  if (ae.pointerType && ae.pointerType !== "mouse") {
8445
8477
  P(), $();
8446
8478
  return;
8447
8479
  }
8448
- const de = j.getBoundingClientRect(), K = Z.getBoundingClientRect();
8480
+ const de = j.getBoundingClientRect(), K = J.getBoundingClientRect();
8449
8481
  !bt(de, ae.clientX, ae.clientY) && !bt(K, ae.clientX, ae.clientY) && !G(de, K, ae.clientX, ae.clientY) && (P(), $());
8450
8482
  };
8451
8483
  return ne.addEventListener("pointermove", re, { passive: !0 }), v.current = () => ne.removeEventListener("pointermove", re), !0;
8452
8484
  }
8453
8485
  function O() {
8454
8486
  const S = c.current?.ownerDocument.defaultView;
8455
- S?.matchMedia("(hover: hover) and (pointer: fine)").matches && (M.current = !1, h.current = !0, P(), !L.current && (R(), m.current = S.setTimeout(() => {
8487
+ S?.matchMedia("(hover: hover) and (pointer: fine)").matches && (M.current = !1, h.current = !0, P(), !L.current && (q(), m.current = S.setTimeout(() => {
8456
8488
  m.current = null, h.current && !M.current && z(!1);
8457
8489
  }, 120)));
8458
8490
  }
8459
8491
  function X(S) {
8460
- S.pointerType === "mouse" && (h.current = !1, R(), F(S.clientX, S.clientY) || $());
8492
+ S.pointerType === "mouse" && (h.current = !1, q(), F(S.clientX, S.clientY) || $());
8461
8493
  }
8462
8494
  function Q(S) {
8463
- D.current = !0, R();
8464
- const q = S.currentTarget.ownerDocument.defaultView;
8465
- I.current !== null && q?.clearTimeout(I.current), q && (I.current = q.setTimeout(() => {
8495
+ D.current = !0, q();
8496
+ const R = S.currentTarget.ownerDocument.defaultView;
8497
+ I.current !== null && R?.clearTimeout(I.current), R && (I.current = R.setTimeout(() => {
8466
8498
  D.current = !1, I.current = null;
8467
8499
  }, 0));
8468
8500
  }
@@ -8532,28 +8564,28 @@ function wc({
8532
8564
  }
8533
8565
  );
8534
8566
  }
8535
- const Sa = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
8536
- function Ze(e) {
8567
+ const Ra = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
8568
+ function Je(e) {
8537
8569
  return typeof e == "string" ? JSON.stringify(e) : typeof e == "number" || typeof e == "bigint" || typeof e == "boolean" || e === null ? String(e) : `<${typeof e}>`;
8538
8570
  }
8539
- function Ra({ value: e }) {
8571
+ function $a({ value: e }) {
8540
8572
  return /* @__PURE__ */ w(ge, { children: [
8541
8573
  /* @__PURE__ */ n("span", { className: "q1-json-view__key", children: JSON.stringify(e) }),
8542
8574
  /* @__PURE__ */ n("span", { className: "q1-json-view__punct", children: ": " })
8543
8575
  ] });
8544
8576
  }
8545
- function qa({ value: e }) {
8546
- return typeof e == "string" ? /* @__PURE__ */ n("span", { className: "q1-json-view__primitive tok-string", children: Ze(e) }) : typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ n("span", { className: "q1-json-view__primitive tok-fn", children: Ze(e) }) : typeof e == "boolean" || e === null ? /* @__PURE__ */ n("span", { className: "q1-json-view__primitive tok-keyword", children: Ze(e) }) : /* @__PURE__ */ n("span", { className: "q1-json-view__primitive tok-comment", children: Ze(e) });
8577
+ function La({ value: e }) {
8578
+ return typeof e == "string" ? /* @__PURE__ */ n("span", { className: "q1-json-view__primitive tok-string", children: Je(e) }) : typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ n("span", { className: "q1-json-view__primitive tok-fn", children: Je(e) }) : typeof e == "boolean" || e === null ? /* @__PURE__ */ n("span", { className: "q1-json-view__primitive tok-keyword", children: Je(e) }) : /* @__PURE__ */ n("span", { className: "q1-json-view__primitive tok-comment", children: Je(e) });
8547
8579
  }
8548
- function $a(e, t) {
8580
+ function Aa(e, t) {
8549
8581
  return e ? `${e}.${t}` : t;
8550
8582
  }
8551
8583
  function Tr({ value: e, depth: t, path: r, collapsedDepth: o, highlight: i, seen: s, entryKey: a, arrayItem: l = !1 }) {
8552
- const u = Array.isArray(e), p = Sa(e), d = a === void 0 || l ? null : /* @__PURE__ */ n(Ra, { value: a });
8584
+ const u = Array.isArray(e), p = Ra(e), d = a === void 0 || l ? null : /* @__PURE__ */ n($a, { value: a });
8553
8585
  if (!u && !p)
8554
8586
  return /* @__PURE__ */ w(ge, { children: [
8555
8587
  d,
8556
- /* @__PURE__ */ n(qa, { value: e })
8588
+ /* @__PURE__ */ n(La, { value: e })
8557
8589
  ] });
8558
8590
  if (s.has(e))
8559
8591
  return /* @__PURE__ */ w(ge, { children: [
@@ -8613,11 +8645,11 @@ function Tr({ value: e, depth: t, path: r, collapsedDepth: o, highlight: i, seen
8613
8645
  }
8614
8646
  ),
8615
8647
  /* @__PURE__ */ n("ul", { className: "q1-json-view__list", children: _.map(([E, k]) => {
8616
- const N = $a(r, E), R = i.has(N) || i.has(E);
8648
+ const N = Aa(r, E), q = i.has(N) || i.has(E);
8617
8649
  return /* @__PURE__ */ n(
8618
8650
  "li",
8619
8651
  {
8620
- className: ie("q1-json-view__row", R && "q1-json-view__row--highlight"),
8652
+ className: ie("q1-json-view__row", q && "q1-json-view__row--highlight"),
8621
8653
  children: /* @__PURE__ */ n(
8622
8654
  Tr,
8623
8655
  {
@@ -8639,12 +8671,12 @@ function Tr({ value: e, depth: t, path: r, collapsedDepth: o, highlight: i, seen
8639
8671
  ] });
8640
8672
  }
8641
8673
  function en(e, t) {
8642
- if (e === null || typeof e != "object") return Ze(e);
8674
+ if (e === null || typeof e != "object") return Je(e);
8643
8675
  if (t.has(e)) return "<循环引用>";
8644
8676
  const r = new Set(t).add(e);
8645
8677
  return Array.isArray(e) ? `[${e.map((i) => en(i, r)).join(", ")}]` : `{${Object.entries(e).map(([i, s]) => `${JSON.stringify(i)}: ${en(s, r)}`).join(", ")}}`;
8646
8678
  }
8647
- function vc({
8679
+ function kc({
8648
8680
  value: e,
8649
8681
  singleLine: t = !1,
8650
8682
  wrap: r = !1,
@@ -8674,19 +8706,19 @@ function vc({
8674
8706
  ) });
8675
8707
  }
8676
8708
  const Sr = "(prefers-reduced-motion: reduce)";
8677
- function Rr() {
8709
+ function qr() {
8678
8710
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(Sr).matches;
8679
8711
  }
8680
- function La(e) {
8712
+ function Fa(e) {
8681
8713
  if (typeof window > "u" || typeof window.matchMedia != "function") return () => {
8682
8714
  };
8683
8715
  const t = window.matchMedia(Sr);
8684
8716
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
8685
8717
  }
8686
- function Aa() {
8687
- return on(La, Rr, () => !0);
8718
+ function Oa() {
8719
+ return on(Fa, qr, () => !0);
8688
8720
  }
8689
- function Nc({
8721
+ function xc({
8690
8722
  src: e,
8691
8723
  poster: t,
8692
8724
  tracks: r,
@@ -8696,7 +8728,7 @@ function Nc({
8696
8728
  loop: a = !1,
8697
8729
  muted: l = !1
8698
8730
  }) {
8699
- const u = i === "decorative", p = o || "视频", d = T(null), f = T(null), _ = Aa(), [x, g] = H(!u), [c, b] = H("idle"), [m, v] = H(!1);
8731
+ const u = i === "decorative", p = o || "视频", d = T(null), f = T(null), _ = Oa(), [x, g] = H(!u), [c, b] = H("idle"), [m, v] = H(!1);
8700
8732
  te(() => {
8701
8733
  b("idle");
8702
8734
  }, [i, e]), te(() => {
@@ -8844,7 +8876,7 @@ function Nc({
8844
8876
  );
8845
8877
  }
8846
8878
  const dn = "q1travel-design-system-theme", tn = "q1travel-theme-change";
8847
- let Re, Ht = 0, nn = !1;
8879
+ let qe, Ht = 0, nn = !1;
8848
8880
  function Pt(e) {
8849
8881
  return e === "light" || e === "dark" || e === "system" ? e : void 0;
8850
8882
  }
@@ -8856,7 +8888,7 @@ function fn() {
8856
8888
  return;
8857
8889
  }
8858
8890
  }
8859
- function qr() {
8891
+ function Rr() {
8860
8892
  const e = fn();
8861
8893
  if (!e) return null;
8862
8894
  try {
@@ -8865,12 +8897,12 @@ function qr() {
8865
8897
  return null;
8866
8898
  }
8867
8899
  }
8868
- function Fa() {
8900
+ function Ba() {
8869
8901
  if (!(typeof document > "u"))
8870
8902
  return Pt(document.documentElement.dataset.themeMode);
8871
8903
  }
8872
8904
  function $r() {
8873
- return Re ??= Fa() ?? qr() ?? "system", Re;
8905
+ return qe ??= Ba() ?? Rr() ?? "system", qe;
8874
8906
  }
8875
8907
  function et(e) {
8876
8908
  if (typeof window > "u" || typeof document > "u") return;
@@ -8879,23 +8911,23 @@ function et(e) {
8879
8911
  const o = document.querySelector("#q1-theme-color"), i = r === "dark" ? o?.dataset.dark : o?.dataset.light;
8880
8912
  o && i && o.setAttribute("content", i);
8881
8913
  }
8882
- function Oa(e) {
8914
+ function Ka(e) {
8883
8915
  if (typeof window > "u") return () => {
8884
8916
  };
8885
- Ht === 0 && !nn && (Re = qr() ?? Re), Ht += 1;
8886
- const t = window.matchMedia("(prefers-color-scheme: dark)"), r = () => Re === "system" && et("system"), o = (s) => {
8917
+ Ht === 0 && !nn && (qe = Rr() ?? qe), Ht += 1;
8918
+ const t = window.matchMedia("(prefers-color-scheme: dark)"), r = () => qe === "system" && et("system"), o = (s) => {
8887
8919
  const a = s instanceof CustomEvent ? Pt(s.detail) : void 0;
8888
- a && (Re = a, et(a), e());
8920
+ a && (qe = a, et(a), e());
8889
8921
  }, i = (s) => {
8890
8922
  const a = fn();
8891
- !a || s.storageArea !== a || s.key !== dn && s.key !== null || (nn = !1, Re = Pt(s.newValue) ?? "system", et(Re), e());
8923
+ !a || s.storageArea !== a || s.key !== dn && s.key !== null || (nn = !1, qe = Pt(s.newValue) ?? "system", et(qe), e());
8892
8924
  };
8893
8925
  return et($r()), t.addEventListener("change", r), window.addEventListener(tn, o), window.addEventListener("storage", i), () => {
8894
8926
  Ht -= 1, t.removeEventListener("change", r), window.removeEventListener(tn, o), window.removeEventListener("storage", i);
8895
8927
  };
8896
8928
  }
8897
- function Ba(e) {
8898
- if (Re = e, typeof window < "u") {
8929
+ function Wa(e) {
8930
+ if (qe = e, typeof window < "u") {
8899
8931
  let t = !1;
8900
8932
  try {
8901
8933
  const r = fn();
@@ -8905,16 +8937,16 @@ function Ba(e) {
8905
8937
  nn = !t, et(e), window.dispatchEvent(new CustomEvent(tn, { detail: e }));
8906
8938
  }
8907
8939
  }
8908
- function Ka() {
8909
- return [on(Oa, $r, () => "system"), Ba];
8940
+ function za() {
8941
+ return [on(Ka, $r, () => "system"), Wa];
8910
8942
  }
8911
- const Wa = [
8943
+ const Va = [
8912
8944
  { mode: "system", label: "系统", Icon: to },
8913
8945
  { mode: "light", label: "浅色", Icon: co },
8914
8946
  { mode: "dark", label: "深色", Icon: no }
8915
8947
  ];
8916
- function kc({ small: e, disabled: t }) {
8917
- const r = fe(), [o, i] = Ka();
8948
+ function Pc({ small: e, disabled: t }) {
8949
+ const r = fe(), [o, i] = za();
8918
8950
  return /* @__PURE__ */ w(
8919
8951
  "fieldset",
8920
8952
  {
@@ -8922,7 +8954,7 @@ function kc({ small: e, disabled: t }) {
8922
8954
  disabled: t,
8923
8955
  children: [
8924
8956
  /* @__PURE__ */ n("legend", { className: "q1-sr-only", children: "选择显示主题" }),
8925
- Wa.map(({ mode: s, label: a, Icon: l }) => /* @__PURE__ */ w("label", { className: "theme-switcher__option", children: [
8957
+ Va.map(({ mode: s, label: a, Icon: l }) => /* @__PURE__ */ w("label", { className: "theme-switcher__option", children: [
8926
8958
  /* @__PURE__ */ n(
8927
8959
  "input",
8928
8960
  {
@@ -8941,7 +8973,7 @@ function kc({ small: e, disabled: t }) {
8941
8973
  }
8942
8974
  );
8943
8975
  }
8944
- const za = {
8976
+ const Ha = {
8945
8977
  overflowX: !1,
8946
8978
  overflowY: !1,
8947
8979
  canScrollLeft: !1,
@@ -8949,13 +8981,13 @@ const za = {
8949
8981
  canScrollTop: !1,
8950
8982
  canScrollBottom: !1
8951
8983
  };
8952
- function Va(e, t) {
8984
+ function Ua(e, t) {
8953
8985
  return Object.keys(e).every(
8954
8986
  (r) => e[r] === t[r]
8955
8987
  );
8956
8988
  }
8957
8989
  function Lr(e, t) {
8958
- const r = T(null), [o, i] = H(za), s = ce(() => {
8990
+ const r = T(null), [o, i] = H(Ha), s = ce(() => {
8959
8991
  const a = r.current;
8960
8992
  if (!a) return;
8961
8993
  const l = a.scrollWidth - a.clientWidth, u = a.scrollHeight - a.clientHeight, p = e !== "vertical" && l > 1, d = e !== "horizontal" && u > 1, f = {
@@ -8966,7 +8998,7 @@ function Lr(e, t) {
8966
8998
  canScrollTop: d && a.scrollTop > 1,
8967
8999
  canScrollBottom: d && a.scrollTop < u - 1
8968
9000
  };
8969
- i((_) => Va(_, f) ? _ : f);
9001
+ i((_) => Ua(_, f) ? _ : f);
8970
9002
  }, [e]);
8971
9003
  return me(() => {
8972
9004
  const a = r.current;
@@ -8995,7 +9027,7 @@ function Ar(e) {
8995
9027
  "data-can-scroll-bottom": String(e.canScrollBottom)
8996
9028
  };
8997
9029
  }
8998
- function xc({
9030
+ function Cc({
8999
9031
  axis: e,
9000
9032
  label: t,
9001
9033
  children: r
@@ -9015,7 +9047,7 @@ function xc({
9015
9047
  }
9016
9048
  ) });
9017
9049
  }
9018
- function Pc({
9050
+ function Ic({
9019
9051
  axis: e = "horizontal",
9020
9052
  contentName: t,
9021
9053
  label: r,
@@ -9029,7 +9061,7 @@ function Pc({
9029
9061
  if (!M) return;
9030
9062
  const L = c.detail > 0;
9031
9063
  a(L ? "pointer" : "instant");
9032
- const E = L && !Rr() ? "smooth" : "auto", k = () => {
9064
+ const E = L && !qr() ? "smooth" : "auto", k = () => {
9033
9065
  if (L || c.currentTarget.ownerDocument.activeElement !== c.currentTarget) return;
9034
9066
  const P = i ? b.scrollLeft : b.scrollTop, z = i ? b.scrollWidth - b.clientWidth : b.scrollHeight - b.clientHeight;
9035
9067
  (g === -1 && P <= 1 || g === 1 && P >= z - 1) && b.focus({ preventScroll: !0 });
@@ -9038,8 +9070,8 @@ function Pc({
9038
9070
  M.scrollIntoView({ behavior: E, inline: "start", block: "nearest" }), k();
9039
9071
  return;
9040
9072
  }
9041
- const N = parseFloat(getComputedStyle(b).paddingTop) || 0, R = M.getBoundingClientRect().top - b.getBoundingClientRect().top - N;
9042
- b.scrollTo({ top: b.scrollTop + R, behavior: E }), k();
9073
+ const N = parseFloat(getComputedStyle(b).paddingTop) || 0, q = M.getBoundingClientRect().top - b.getBoundingClientRect().top - N;
9074
+ b.scrollTo({ top: b.scrollTop + q, behavior: E }), k();
9043
9075
  }
9044
9076
  return /* @__PURE__ */ w(
9045
9077
  "div",
@@ -9055,7 +9087,7 @@ function Pc({
9055
9087
  "aria-label": `${i ? "向左滚动" : "向上滚动"}${t}`,
9056
9088
  disabled: !f,
9057
9089
  onClick: (g) => x(-1, g),
9058
- children: i ? /* @__PURE__ */ n(at, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ n(Zn, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
9090
+ children: i ? /* @__PURE__ */ n(at, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ n(Jn, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
9059
9091
  }
9060
9092
  ),
9061
9093
  /* @__PURE__ */ n("div", { className: `scroller scroller--${e} scroller--flush`, children: /* @__PURE__ */ n(
@@ -9082,7 +9114,7 @@ function Pc({
9082
9114
  "aria-label": `${i ? "向右滚动" : "向下滚动"}${t}`,
9083
9115
  disabled: !_,
9084
9116
  onClick: (g) => x(1, g),
9085
- children: i ? /* @__PURE__ */ n(Ee, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ n(qe, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
9117
+ children: i ? /* @__PURE__ */ n(Ee, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ n(Re, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
9086
9118
  }
9087
9119
  )
9088
9120
  ]
@@ -9115,7 +9147,7 @@ function rn(e, { min: t, max: r }) {
9115
9147
  function Ct(e, t) {
9116
9148
  return t ? t === "%" ? `${e}%` : `${e} ${t}` : String(e);
9117
9149
  }
9118
- const Cc = It(function({
9150
+ const Dc = It(function({
9119
9151
  label: t,
9120
9152
  unit: r,
9121
9153
  min: o = 0,
@@ -9174,7 +9206,7 @@ const Cc = It(function({
9174
9206
  /* @__PURE__ */ n("span", { className: "slider-thumb-emphasis", "aria-hidden": "true" })
9175
9207
  ] })
9176
9208
  ] });
9177
- }), Ic = It(function({
9209
+ }), Mc = It(function({
9178
9210
  label: t = "数值区间",
9179
9211
  unit: r = "",
9180
9212
  min: o = 0,
@@ -9191,7 +9223,7 @@ const Cc = It(function({
9191
9223
  }, g) {
9192
9224
  const c = Fr(o, i, s), b = u !== void 0, [m, v] = H(
9193
9225
  () => Hn([a ?? o, l ?? i], c)
9194
- ), [D, I] = Hn(b ? u : m, c), h = fe(), C = d ?? h, M = `${C}-low-number`, L = `${C}-high-number`, E = rn(D, c), k = rn(I, c), N = T(null), R = T(null), P = T(null), z = T(null), V = T(!1), B = T(!1), [$, Y] = H(String(D)), [G, F] = H(String(I)), [O, X] = H(null);
9226
+ ), [D, I] = Hn(b ? u : m, c), h = fe(), C = d ?? h, M = `${C}-low-number`, L = `${C}-high-number`, E = rn(D, c), k = rn(I, c), N = T(null), q = T(null), P = T(null), z = T(null), V = T(!1), B = T(!1), [$, Y] = H(String(D)), [G, F] = H(String(I)), [O, X] = H(null);
9195
9227
  Xn(g, () => N.current), te(() => {
9196
9228
  V.current || Y(String(D));
9197
9229
  }, [D]), te(() => {
@@ -9223,8 +9255,8 @@ const Cc = It(function({
9223
9255
  pointerValue: U,
9224
9256
  activated: !ae,
9225
9257
  verticalPan: !1
9226
- }, W.currentTarget.setPointerCapture(W.pointerId), !ae && re && (X(re), (re === "low" ? N.current : R.current)?.focus(), y(re, U));
9227
- }, q = (W) => {
9258
+ }, W.currentTarget.setPointerCapture(W.pointerId), !ae && re && (X(re), (re === "low" ? N.current : q.current)?.focus(), y(re, U));
9259
+ }, R = (W) => {
9228
9260
  const U = z.current;
9229
9261
  if (!U || U.pointerId !== W.pointerId) return;
9230
9262
  const re = A(W.clientX);
@@ -9239,7 +9271,7 @@ const Cc = It(function({
9239
9271
  }
9240
9272
  if (!U.thumb) {
9241
9273
  if (re === U.overlapValue) return;
9242
- U.thumb = re < U.overlapValue ? "low" : "high", X(U.thumb), (U.thumb === "low" ? N.current : R.current)?.focus();
9274
+ U.thumb = re < U.overlapValue ? "low" : "high", X(U.thumb), (U.thumb === "low" ? N.current : q.current)?.focus();
9243
9275
  }
9244
9276
  y(U.thumb, re);
9245
9277
  }, j = (W, U = !1) => {
@@ -9247,11 +9279,11 @@ const Cc = It(function({
9247
9279
  if (!(!re || re.pointerId !== W.pointerId)) {
9248
9280
  if (U && re.pointerType === "touch" && !re.activated && !re.verticalPan) {
9249
9281
  const ae = re.thumb ?? "low";
9250
- (ae === "low" ? N.current : R.current)?.focus(), y(ae, re.pointerValue);
9282
+ (ae === "low" ? N.current : q.current)?.focus(), y(ae, re.pointerValue);
9251
9283
  }
9252
9284
  z.current = null, X(null), W.currentTarget.hasPointerCapture(W.pointerId) && W.currentTarget.releasePointerCapture(W.pointerId);
9253
9285
  }
9254
- }, Z = (W) => {
9286
+ }, J = (W) => {
9255
9287
  const U = W === "low" ? $ : G, re = Number(U);
9256
9288
  if (!U.trim() || !Number.isFinite(re)) {
9257
9289
  W === "low" ? Y(String(D)) : F(String(I));
@@ -9293,7 +9325,7 @@ const Cc = It(function({
9293
9325
  },
9294
9326
  onChange: (W) => Y(W.currentTarget.value),
9295
9327
  onBlur: () => {
9296
- V.current = !1, Z("low");
9328
+ V.current = !1, J("low");
9297
9329
  },
9298
9330
  onKeyDown: ne
9299
9331
  }
@@ -9307,7 +9339,7 @@ const Cc = It(function({
9307
9339
  className: "range-slider__track-area",
9308
9340
  style: { "--low": `${E}%`, "--high": `${k}%` },
9309
9341
  onPointerDown: S,
9310
- onPointerMove: q,
9342
+ onPointerMove: R,
9311
9343
  onPointerUp: (W) => j(W, !0),
9312
9344
  onPointerCancel: j,
9313
9345
  onLostPointerCapture: j,
@@ -9335,7 +9367,7 @@ const Cc = It(function({
9335
9367
  /* @__PURE__ */ n(
9336
9368
  "input",
9337
9369
  {
9338
- ref: R,
9370
+ ref: q,
9339
9371
  name: f,
9340
9372
  type: "range",
9341
9373
  className: "slider-input range-slider__thumb range-slider__thumb--high",
@@ -9377,7 +9409,7 @@ const Cc = It(function({
9377
9409
  },
9378
9410
  onChange: (W) => F(W.currentTarget.value),
9379
9411
  onBlur: () => {
9380
- B.current = !1, Z("high");
9412
+ B.current = !1, J("high");
9381
9413
  },
9382
9414
  onKeyDown: ne
9383
9415
  }
@@ -9399,7 +9431,7 @@ function vt({ crumb: e }) {
9399
9431
  function Nt() {
9400
9432
  return /* @__PURE__ */ n(Ee, { className: "breadcrumb__separator", "aria-hidden": "true", size: 16, strokeWidth: 2 });
9401
9433
  }
9402
- function Ha({
9434
+ function ja({
9403
9435
  items: e,
9404
9436
  label: t,
9405
9437
  type: r = "text"
@@ -9410,9 +9442,9 @@ function Ha({
9410
9442
  !o && s < e.length - 1 ? /* @__PURE__ */ n(Nt, {}) : null
9411
9443
  ] }, `${i.href ?? "static"}-${i.label}-${s}`)) }) });
9412
9444
  }
9413
- function Dc({ items: e, label: t }) {
9445
+ function Ec({ items: e, label: t }) {
9414
9446
  const [r, o] = H(!1), [i, s] = H(), [a, l] = H(!1), u = T(null);
9415
- if (e.length < 3) return /* @__PURE__ */ n(Ha, { items: e, label: t });
9447
+ if (e.length < 3) return /* @__PURE__ */ n(ja, { items: e, label: t });
9416
9448
  const p = e[0], d = e[e.length - 1], f = e.slice(1, -1), _ = () => {
9417
9449
  u.current = null, l(!1);
9418
9450
  }, x = (c) => {
@@ -9457,7 +9489,7 @@ function Dc({ items: e, label: t }) {
9457
9489
  }
9458
9490
  ),
9459
9491
  /* @__PURE__ */ n(
9460
- Zn,
9492
+ Jn,
9461
9493
  {
9462
9494
  className: ie("breadcrumb__toggle-icon", r ? "breadcrumb__toggle-icon--active" : ""),
9463
9495
  size: 16,
@@ -9483,7 +9515,7 @@ function Dc({ items: e, label: t }) {
9483
9515
  /* @__PURE__ */ n("li", { className: "breadcrumb__item breadcrumb__item--endpoint breadcrumb__item--last", children: /* @__PURE__ */ n(vt, { crumb: d }) })
9484
9516
  ] }) });
9485
9517
  }
9486
- function Mc({ open: e, onClose: t, title: r, side: o = "right", size: i, dismissable: s = !0, children: a, footer: l }) {
9518
+ function Tc({ open: e, onClose: t, title: r, side: o = "right", size: i, dismissable: s = !0, children: a, footer: l }) {
9487
9519
  const u = T(null), p = T(!1), d = T({ side: o, size: i, title: r, children: a, footer: l }), f = fe(), [_, x] = H(e), [g, c] = H("keyboard"), b = e || _, m = e ? { side: o, size: i, title: r, children: a, footer: l } : d.current, v = ce(() => {
9488
9520
  p.current = !1, x(!1), c("keyboard");
9489
9521
  }, []);
@@ -9499,9 +9531,9 @@ function Mc({ open: e, onClose: t, title: r, side: o = "right", size: i, dismiss
9499
9531
  v();
9500
9532
  return;
9501
9533
  }
9502
- const C = getComputedStyle(u.current), M = C.transitionDuration.split(",").map((R) => Number.parseFloat(R) * (R.trim().endsWith("ms") ? 1 : 1e3)), L = C.transitionDelay.split(",").map((R) => Number.parseFloat(R) * (R.trim().endsWith("ms") ? 1 : 1e3)), E = Math.max(M.length, L.length), k = Math.max(0, ...Array.from(
9534
+ const C = getComputedStyle(u.current), M = C.transitionDuration.split(",").map((q) => Number.parseFloat(q) * (q.trim().endsWith("ms") ? 1 : 1e3)), L = C.transitionDelay.split(",").map((q) => Number.parseFloat(q) * (q.trim().endsWith("ms") ? 1 : 1e3)), E = Math.max(M.length, L.length), k = Math.max(0, ...Array.from(
9503
9535
  { length: E },
9504
- (R, P) => M[P % M.length] + L[P % L.length]
9536
+ (q, P) => M[P % M.length] + L[P % L.length]
9505
9537
  ));
9506
9538
  if (k === 0) {
9507
9539
  v();
@@ -9573,7 +9605,7 @@ function Mc({ open: e, onClose: t, title: r, side: o = "right", size: i, dismiss
9573
9605
  ] })
9574
9606
  ) : null;
9575
9607
  }
9576
- function Ec({
9608
+ function Sc({
9577
9609
  label: e,
9578
9610
  entries: t,
9579
9611
  variant: r = "default",
@@ -9595,7 +9627,7 @@ function Ec({
9595
9627
  function N(O = !0) {
9596
9628
  f(!1), z(), v.current = -1, O && c.current?.focus();
9597
9629
  }
9598
- const { itemRefs: R, focusItem: P, reset: z, onMenuKeyDown: V } = Ge({
9630
+ const { itemRefs: q, focusItem: P, reset: z, onMenuKeyDown: V } = Ge({
9599
9631
  focusableIndices: M,
9600
9632
  getText: (O) => O === 0 ? e : t[O]?.label ?? "",
9601
9633
  onClose: () => N()
@@ -9616,7 +9648,7 @@ function Ec({
9616
9648
  N(!1);
9617
9649
  return;
9618
9650
  }
9619
- const O = document.activeElement, X = R.current.indexOf(O), Q = X >= 0 ? X : v.current, y = O === document.body;
9651
+ const O = document.activeElement, X = q.current.indexOf(O), Q = X >= 0 ? X : v.current, y = O === document.body;
9620
9652
  if ((X >= 0 || y) && Q >= 0 && t[Q]?.disabled) {
9621
9653
  const A = M.find((S) => S > Q) ?? M[0];
9622
9654
  P(A);
@@ -9691,7 +9723,7 @@ function Ec({
9691
9723
  },
9692
9724
  onClick: Y,
9693
9725
  onKeyDown: $,
9694
- children: /* @__PURE__ */ n("span", { className: "split-button__toggle-content", children: /* @__PURE__ */ n(qe, { size: o === "sm" ? 14 : 16, strokeWidth: 2, "aria-hidden": "true" }) })
9726
+ children: /* @__PURE__ */ n("span", { className: "split-button__toggle-content", children: /* @__PURE__ */ n(Re, { size: o === "sm" ? 14 : 16, strokeWidth: 2, "aria-hidden": "true" }) })
9695
9727
  }
9696
9728
  ),
9697
9729
  d ? I(
@@ -9711,7 +9743,7 @@ function Ec({
9711
9743
  "button",
9712
9744
  {
9713
9745
  ref: (Q) => {
9714
- R.current[X] = Q;
9746
+ q.current[X] = Q;
9715
9747
  },
9716
9748
  type: "button",
9717
9749
  role: "menuitem",
@@ -9735,13 +9767,13 @@ function Ec({
9735
9767
  ) : null
9736
9768
  ] });
9737
9769
  }
9738
- const Ua = (e) => e.type === "item" || e.type === "link";
9739
- function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerContent: i }) {
9770
+ const Ya = (e) => e.type === "item" || e.type === "link";
9771
+ function qc({ label: e, entries: t, withChevron: r, align: o = "start", triggerContent: i }) {
9740
9772
  const [s, a] = H(!1), [l, u] = H(!1), [p, d] = H("keyboard"), [f, _] = H(!1), x = T(null), g = T(null), c = T(!1), b = fe(), { portalPopup: m, placement: v, onOverlayKeyDown: D } = Xe(
9741
9773
  s,
9742
9774
  x,
9743
9775
  g,
9744
- (y) => R(y !== "outside-pointer"),
9776
+ (y) => q(y !== "outside-pointer"),
9745
9777
  { width: "content", align: o, gapToken: "--q1-space-2", outsidePointer: !0, present: l }
9746
9778
  );
9747
9779
  function I() {
@@ -9751,13 +9783,13 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9751
9783
  if (s || !l || !g.current) return;
9752
9784
  getComputedStyle(g.current).transitionDuration.split(",").some((A) => Number.parseFloat(A) > 0) || I();
9753
9785
  }, [s, l]);
9754
- const h = t.flatMap((y, A) => Ua(y) ? [A] : []), C = h.length > 0, { itemRefs: M, focusItem: L, reset: E, onMenuKeyDown: k } = Ge({
9786
+ const h = t.flatMap((y, A) => Ya(y) ? [A] : []), C = h.length > 0, { itemRefs: M, focusItem: L, reset: E, onMenuKeyDown: k } = Ge({
9755
9787
  focusableIndices: h,
9756
9788
  getText: (y) => {
9757
9789
  const A = t[y];
9758
9790
  return A.type === "item" || A.type === "link" ? A.label : "";
9759
9791
  },
9760
- onClose: () => R()
9792
+ onClose: () => q()
9761
9793
  });
9762
9794
  function N(y, A) {
9763
9795
  if (!C) return;
@@ -9765,7 +9797,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9765
9797
  const S = y === "first" ? h[0] : h[h.length - 1];
9766
9798
  window.requestAnimationFrame(() => L(S));
9767
9799
  }
9768
- function R(y = !0) {
9800
+ function q(y = !0) {
9769
9801
  a(!1), E(), y && x.current?.focus();
9770
9802
  }
9771
9803
  function P(y) {
@@ -9775,7 +9807,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9775
9807
  });
9776
9808
  }
9777
9809
  function z(y) {
9778
- y.disabled || y.locked || (R(), y.onSelect());
9810
+ y.disabled || y.locked || (q(), y.onSelect());
9779
9811
  }
9780
9812
  function V(y, A) {
9781
9813
  if (A.disabled || A.locked) {
@@ -9783,7 +9815,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9783
9815
  return;
9784
9816
  }
9785
9817
  const S = g.current;
9786
- R(!1), P(S);
9818
+ q(!1), P(S);
9787
9819
  }
9788
9820
  function B(y) {
9789
9821
  s || y.target !== y.currentTarget || !["opacity", "transform"].includes(y.propertyName) || I();
@@ -9805,7 +9837,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9805
9837
  }
9806
9838
  function X(y) {
9807
9839
  if (s)
9808
- R();
9840
+ q();
9809
9841
  else {
9810
9842
  const A = c.current && y.detail > 0 ? "pointer" : "keyboard";
9811
9843
  N("first", A);
@@ -9813,7 +9845,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9813
9845
  G();
9814
9846
  }
9815
9847
  function Q(y) {
9816
- (y.key === "Escape" || y.key === "Tab" || y.key === "Enter" || y.key === " ") && d("keyboard"), y.key === "Tab" ? (y.preventDefault(), un(x.current, y.shiftKey), R(!1)) : y.key === "Escape" ? D(y) : k(y);
9848
+ (y.key === "Escape" || y.key === "Tab" || y.key === "Enter" || y.key === " ") && d("keyboard"), y.key === "Tab" ? (y.preventDefault(), un(x.current, y.shiftKey), q(!1)) : y.key === "Escape" ? D(y) : k(y);
9817
9849
  }
9818
9850
  return /* @__PURE__ */ w("div", { className: "menu", children: [
9819
9851
  /* @__PURE__ */ w(
@@ -9837,7 +9869,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9837
9869
  onKeyDown: $,
9838
9870
  children: [
9839
9871
  i ?? e,
9840
- r ? /* @__PURE__ */ n(qe, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : null
9872
+ r ? /* @__PURE__ */ n(Re, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : null
9841
9873
  ]
9842
9874
  }
9843
9875
  ),
@@ -9862,7 +9894,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9862
9894
  if (y.type === "section")
9863
9895
  return /* @__PURE__ */ n("div", { className: "menu__section", role: "presentation", children: y.label }, `sec-${A}`);
9864
9896
  if (y.type === "link") {
9865
- const Z = !y.disabled && !y.locked, ne = y.icon ?? (y.locked ? /* @__PURE__ */ n(gn, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : null), W = y.suffix ?? (y.locked ? y.lockedReason : null);
9897
+ const J = !y.disabled && !y.locked, ne = y.icon ?? (y.locked ? /* @__PURE__ */ n(gn, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : null), W = y.suffix ?? (y.locked ? y.lockedReason : null);
9866
9898
  return /* @__PURE__ */ w(
9867
9899
  "a",
9868
9900
  {
@@ -9871,12 +9903,12 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9871
9903
  },
9872
9904
  role: "menuitem",
9873
9905
  tabIndex: -1,
9874
- href: Z ? y.href : void 0,
9875
- "aria-disabled": Z ? void 0 : !0,
9906
+ href: J ? y.href : void 0,
9907
+ "aria-disabled": J ? void 0 : !0,
9876
9908
  "aria-label": y.locked ? `${y.label},${y.lockedReason}` : void 0,
9877
9909
  className: `menu__item${y.locked ? " menu__item--locked" : ""}`,
9878
9910
  onKeyDown: (U) => {
9879
- U.key === " " && (U.preventDefault(), Z && U.currentTarget.click());
9911
+ U.key === " " && (U.preventDefault(), J && U.currentTarget.click());
9880
9912
  },
9881
9913
  onClick: (U) => V(U, y),
9882
9914
  children: [
@@ -9888,12 +9920,12 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9888
9920
  y.label
9889
9921
  );
9890
9922
  }
9891
- const S = !y.disabled && !y.locked, q = y.icon ?? (y.locked ? /* @__PURE__ */ n(gn, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : null), j = y.suffix ?? (y.locked ? y.lockedReason : null);
9923
+ const S = !y.disabled && !y.locked, R = y.icon ?? (y.locked ? /* @__PURE__ */ n(gn, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : null), j = y.suffix ?? (y.locked ? y.lockedReason : null);
9892
9924
  return /* @__PURE__ */ w(
9893
9925
  "button",
9894
9926
  {
9895
- ref: (Z) => {
9896
- M.current[A] = Z;
9927
+ ref: (J) => {
9928
+ M.current[A] = J;
9897
9929
  },
9898
9930
  type: "button",
9899
9931
  role: "menuitem",
@@ -9903,7 +9935,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9903
9935
  className: `menu__item${y.danger ? " menu__item--danger" : ""}${y.locked ? " menu__item--locked" : ""}`,
9904
9936
  onClick: () => z(y),
9905
9937
  children: [
9906
- q ? /* @__PURE__ */ n("span", { className: "menu__item-icon", children: q }) : null,
9938
+ R ? /* @__PURE__ */ n("span", { className: "menu__item-icon", children: R }) : null,
9907
9939
  /* @__PURE__ */ n("span", { className: "menu__item-label", children: y.label }),
9908
9940
  j ? /* @__PURE__ */ n("span", { className: "menu__item-suffix", children: j }) : null
9909
9941
  ]
@@ -9916,7 +9948,7 @@ function Tc({ label: e, entries: t, withChevron: r, align: o = "start", triggerC
9916
9948
  ) : null
9917
9949
  ] });
9918
9950
  }
9919
- function Sc({ options: e, defaultSelected: t = [], placeholder: r, onChange: o }) {
9951
+ function Rc({ options: e, defaultSelected: t = [], placeholder: r, onChange: o }) {
9920
9952
  const i = fe(), s = `${i}-listbox`, a = `${i}-summary`, [l, u] = H(!1), [p, d] = H(t), [f, _] = H(-1), [x, g] = H(), c = T(null), b = T(null), m = T(null), { portalPopup: v } = Xe(l, b, m, () => u(!1)), D = T(null), I = T([]), h = T(void 0), C = T(!1);
9921
9953
  function M(F) {
9922
9954
  d(F), o?.(F);
@@ -9931,7 +9963,7 @@ function Sc({ options: e, defaultSelected: t = [], placeholder: r, onChange: o }
9931
9963
  function N() {
9932
9964
  g(void 0);
9933
9965
  }
9934
- function R(F) {
9966
+ function q(F) {
9935
9967
  g((O) => O === F ? void 0 : O);
9936
9968
  }
9937
9969
  function P(F) {
@@ -10010,8 +10042,8 @@ function Sc({ options: e, defaultSelected: t = [], placeholder: r, onChange: o }
10010
10042
  else {
10011
10043
  const A = b.current, S = Array.from(A?.ownerDocument.querySelectorAll(
10012
10044
  'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
10013
- ) ?? []).filter((j) => !m.current?.contains(j) && !j.closest("[inert], [hidden]") && j.tabIndex >= 0 && j.getClientRects().length > 0), q = S[S.indexOf(A) + 1];
10014
- V(!1), q?.focus();
10045
+ ) ?? []).filter((j) => !m.current?.contains(j) && !j.closest("[inert], [hidden]") && j.tabIndex >= 0 && j.getClientRects().length > 0), R = S[S.indexOf(A) + 1];
10046
+ V(!1), R?.focus();
10015
10047
  }
10016
10048
  return;
10017
10049
  }
@@ -10039,7 +10071,7 @@ function Sc({ options: e, defaultSelected: t = [], placeholder: r, onChange: o }
10039
10071
  onClick: () => l ? V() : z(),
10040
10072
  children: [
10041
10073
  /* @__PURE__ */ n("span", { className: p.length === 0 ? "multi-select__placeholder" : void 0, children: Y }),
10042
- /* @__PURE__ */ n(qe, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
10074
+ /* @__PURE__ */ n(Re, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
10043
10075
  ]
10044
10076
  }
10045
10077
  ),
@@ -10096,11 +10128,11 @@ function Sc({ options: e, defaultSelected: t = [], placeholder: r, onChange: o }
10096
10128
  onPointerDown: (Q) => {
10097
10129
  Q.isPrimary && Q.button === 0 && g(O);
10098
10130
  },
10099
- onPointerUp: () => R(O),
10100
- onPointerCancel: () => R(O),
10101
- onPointerLeave: () => R(O),
10102
- onLostPointerCapture: () => R(O),
10103
- onBlur: () => R(O),
10131
+ onPointerUp: () => q(O),
10132
+ onPointerCancel: () => q(O),
10133
+ onPointerLeave: () => q(O),
10134
+ onLostPointerCapture: () => q(O),
10135
+ onBlur: () => q(O),
10104
10136
  onClick: () => E(F),
10105
10137
  children: [
10106
10138
  /* @__PURE__ */ n("span", { className: `multi-select__check${X ? " multi-select__check--on" : ""}`, "aria-hidden": "true", children: X ? /* @__PURE__ */ n(De, { size: 12, strokeWidth: 3 }) : null }),
@@ -10117,7 +10149,7 @@ function Sc({ options: e, defaultSelected: t = [], placeholder: r, onChange: o }
10117
10149
  ) : null
10118
10150
  ] });
10119
10151
  }
10120
- function ja(e) {
10152
+ function Xa(e) {
10121
10153
  if (e.dismissal === void 0) {
10122
10154
  if (typeof e.onClose != "function")
10123
10155
  throw new TypeError("Modal: legacy dismissal requires an onClose function.");
@@ -10128,8 +10160,8 @@ function ja(e) {
10128
10160
  if (e.dismissal.type !== "escape-action" || typeof e.dismissal.busy != "boolean" || typeof e.dismissal.runAction != "function")
10129
10161
  throw new TypeError("Modal: invalid escape-action dismissal contract.");
10130
10162
  }
10131
- function Rc(e) {
10132
- ja(e);
10163
+ function $c(e) {
10164
+ Xa(e);
10133
10165
  const { open: t, title: r, children: o, footer: i, initialFocusRef: s, sticky: a = !1 } = e, l = e.dismissal, u = l === void 0 ? e.dismissable ?? !0 : !1, p = T(null), d = fe(), { focusInitialIfTopMost: f, onKeyDown: _, portal: x } = Be({
10134
10166
  open: t,
10135
10167
  blocking: !0,
@@ -10176,11 +10208,11 @@ function Rc(e) {
10176
10208
  ] })
10177
10209
  ) : null;
10178
10210
  }
10179
- function qc({ children: e }) {
10211
+ function Lc({ children: e }) {
10180
10212
  return /* @__PURE__ */ n("div", { className: "modal__inset", children: e });
10181
10213
  }
10182
- const gt = 100, Je = 32;
10183
- function $c({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o = 64, className: i }) {
10214
+ const gt = 100, Ze = 32;
10215
+ function Ac({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o = 64, className: i }) {
10184
10216
  const s = typeof t == "string" && !!t.trim(), a = typeof o == "number" && Number.isFinite(o) && o > 0, l = Array.isArray(e) && e.every(
10185
10217
  (k) => k !== null && typeof k == "object" && typeof k.label == "string" && Number.isFinite(k.value)
10186
10218
  ), u = !s || !a || !l, p = u ? [] : e.map((k) => k.value), d = p.length;
@@ -10188,12 +10220,12 @@ function $c({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o
10188
10220
  for (const k of p)
10189
10221
  f = Math.min(f, k), _ = Math.max(_, k), x = Math.max(x, Math.abs(k));
10190
10222
  const g = x || 1, c = f / g, m = _ / g - c, v = (k) => {
10191
- if (m === 0) return Je;
10223
+ if (m === 0) return Ze;
10192
10224
  const N = (k / g - c) / m;
10193
- return Je - N * Je;
10225
+ return Ze - N * Ze;
10194
10226
  }, D = p.map((k, N) => {
10195
- const R = d === 1 ? gt / 2 : N / (d - 1) * gt, P = v(k);
10196
- return `${R.toFixed(2)},${P.toFixed(2)}`;
10227
+ const q = d === 1 ? gt / 2 : N / (d - 1) * gt, P = v(k);
10228
+ return `${q.toFixed(2)},${P.toFixed(2)}`;
10197
10229
  }).join(" "), I = Math.floor(d / 2), h = d > 1 ? I / (d - 1) * 100 : 50, C = r === "ends-and-middle" && d >= 3, M = d === 0 ? [] : d === 1 ? [{ label: e[0].label, slot: "single", left: 50, maxWidth: 100 }] : [
10198
10230
  { label: e[0]?.label ?? "", slot: "start", left: 0, maxWidth: C ? h / 2 : 50 },
10199
10231
  ...C ? [{
@@ -10215,7 +10247,7 @@ function $c({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o
10215
10247
  "svg",
10216
10248
  {
10217
10249
  className: "q1-chart__canvas",
10218
- viewBox: `0 0 ${gt} ${Je}`,
10250
+ viewBox: `0 0 ${gt} ${Ze}`,
10219
10251
  preserveAspectRatio: "none",
10220
10252
  "aria-hidden": "true",
10221
10253
  children: [
@@ -10228,18 +10260,18 @@ function $c({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o
10228
10260
  "span",
10229
10261
  {
10230
10262
  className: "q1-chart__point",
10231
- style: { left: "50%", top: `${v(p[0]) / Je * 100}%` },
10263
+ style: { left: "50%", top: `${v(p[0]) / Ze * 100}%` },
10232
10264
  "aria-hidden": "true"
10233
10265
  }
10234
10266
  ) : null
10235
10267
  ] }) }),
10236
10268
  !u && r && d > 0 ? (
10237
10269
  // 轴标签对读屏隐藏:摘要已经交代了范围与总量,再念一遍日期是重复噪音。
10238
- /* @__PURE__ */ n("div", { className: "q1-chart__axis", "aria-hidden": "true", children: M.map(({ label: k, slot: N, left: R, maxWidth: P }) => /* @__PURE__ */ n(
10270
+ /* @__PURE__ */ n("div", { className: "q1-chart__axis", "aria-hidden": "true", children: M.map(({ label: k, slot: N, left: q, maxWidth: P }) => /* @__PURE__ */ n(
10239
10271
  "span",
10240
10272
  {
10241
10273
  className: `q1-chart__axis-label q1-chart__axis-label--${N}`,
10242
- style: { left: `${R.toFixed(2).replace(/\.00$/, "")}%`, maxWidth: `${P.toFixed(2).replace(/\.00$/, "")}%` },
10274
+ style: { left: `${q.toFixed(2).replace(/\.00$/, "")}%`, maxWidth: `${P.toFixed(2).replace(/\.00$/, "")}%` },
10243
10275
  title: k,
10244
10276
  children: k
10245
10277
  },
@@ -10250,7 +10282,7 @@ function $c({ data: e, summary: t, axisLabels: r = "ends-and-middle", height: o
10250
10282
  }
10251
10283
  );
10252
10284
  }
10253
- const Ya = ["日", "一", "二", "三", "四", "五", "六"];
10285
+ const Ga = ["日", "一", "二", "三", "四", "五", "六"];
10254
10286
  function he(e) {
10255
10287
  const t = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getDate()).padStart(2, "0");
10256
10288
  return `${e.getFullYear()}-${t}-${r}`;
@@ -10268,10 +10300,10 @@ function tt(e) {
10268
10300
  function Ke(e, t) {
10269
10301
  return !!(e && t && he(e) === he(t));
10270
10302
  }
10271
- function Xa(e, t) {
10303
+ function Za(e, t) {
10272
10304
  return Math.round((t.getTime() - e.getTime()) / 864e5) + 1;
10273
10305
  }
10274
- function Ga(e) {
10306
+ function Qa(e) {
10275
10307
  const t = tt(e), r = Le(t, -t.getDay());
10276
10308
  return Array.from({ length: 42 }, (o, i) => {
10277
10309
  const s = Le(r, i);
@@ -10289,9 +10321,9 @@ function Un(e, t, r) {
10289
10321
  return (!t || he(i) >= he(t)) && (!r || he(o) <= he(r));
10290
10322
  }
10291
10323
  function Ja(e) {
10292
- return `${e.getFullYear()}年${e.getMonth() + 1}月${e.getDate()}日星期${Ya[e.getDay()]}`;
10324
+ return `${e.getFullYear()}年${e.getMonth() + 1}月${e.getDate()}日星期${Ga[e.getDay()]}`;
10293
10325
  }
10294
- function Lc({
10326
+ function Fc({
10295
10327
  presets: e,
10296
10328
  activeLabel: t,
10297
10329
  onPick: r
@@ -10359,7 +10391,7 @@ function Lc({
10359
10391
  children: [
10360
10392
  /* @__PURE__ */ n(Hr, { size: 15, strokeWidth: 2, "aria-hidden": "true" }),
10361
10393
  /* @__PURE__ */ n("span", { className: "cal-period__label", children: t ?? "选择周期" }),
10362
- /* @__PURE__ */ n(qe, { size: 15, strokeWidth: 2, "aria-hidden": "true" })
10394
+ /* @__PURE__ */ n(Re, { size: 15, strokeWidth: 2, "aria-hidden": "true" })
10363
10395
  ]
10364
10396
  }
10365
10397
  ),
@@ -10399,7 +10431,7 @@ function Lc({
10399
10431
  }
10400
10432
  );
10401
10433
  }
10402
- function Qa({
10434
+ function es({
10403
10435
  open: e,
10404
10436
  popoverRef: t,
10405
10437
  triggerRef: r
@@ -10431,8 +10463,8 @@ function Qa({
10431
10463
  };
10432
10464
  }, [e, t, r]);
10433
10465
  }
10434
- const Za = ["日", "一", "二", "三", "四", "五", "六"];
10435
- function es({
10466
+ const ts = ["日", "一", "二", "三", "四", "五", "六"];
10467
+ function ns({
10436
10468
  value: e,
10437
10469
  onChange: t,
10438
10470
  size: r = "large",
@@ -10442,7 +10474,7 @@ function es({
10442
10474
  }) {
10443
10475
  const [a, l] = H(
10444
10476
  () => tt(jt(e.start ?? s, o, i))
10445
- ), [u, p] = H(null), [d, f] = H(() => jt(e.start ?? s, o, i)), [_, x] = H(""), g = T(/* @__PURE__ */ new Map()), c = T(null), b = Ga(a);
10477
+ ), [u, p] = H(null), [d, f] = H(() => jt(e.start ?? s, o, i)), [_, x] = H(""), g = T(/* @__PURE__ */ new Map()), c = T(null), b = Qa(a);
10446
10478
  te(() => {
10447
10479
  if (!c.current) return;
10448
10480
  const k = g.current.get(c.current);
@@ -10454,8 +10486,8 @@ function es({
10454
10486
  t({ start: k, end: null }), x(`开始日期 ${he(k)},请选择结束日期`);
10455
10487
  return;
10456
10488
  }
10457
- const [N, R] = he(k) < he(e.start) ? [k, e.start] : [e.start, k];
10458
- t({ start: N, end: R }), x(`已选择 ${he(N)} 至 ${he(R)},共 ${Xa(N, R)} 天`);
10489
+ const [N, q] = he(k) < he(e.start) ? [k, e.start] : [e.start, k];
10490
+ t({ start: N, end: q }), x(`已选择 ${he(N)} 至 ${he(q)},共 ${Za(N, q)} 天`);
10459
10491
  }
10460
10492
  function D(k) {
10461
10493
  Ut(k, o, i) || ((k.getMonth() !== a.getMonth() || k.getFullYear() !== a.getFullYear()) && l(tt(k)), f(k), c.current = he(k));
@@ -10538,9 +10570,9 @@ function es({
10538
10570
  "aria-multiselectable": "true",
10539
10571
  onKeyDown: I,
10540
10572
  children: [
10541
- /* @__PURE__ */ n("div", { className: "calendar__weekdays", role: "row", children: Za.map((k, N) => /* @__PURE__ */ n("span", { className: "calendar__weekday", role: "columnheader", "aria-label": `星期${k}`, children: k }, `${k}-${N}`)) }),
10542
- E.map((k, N) => /* @__PURE__ */ n("div", { className: "calendar__row", role: "row", children: k.map(({ date: R, inMonth: P }) => {
10543
- const z = !P || Ut(R, o, i), V = Ke(R, m.start), B = Ke(R, m.end), $ = !!m.start && !!m.end && !Ke(m.start, m.end), Y = $ && he(R) > he(m.start) && he(R) < he(m.end), G = !!(e.start && (e.end ? he(R) >= he(e.start) && he(R) <= he(e.end) : Ke(R, e.start))), F = ie(
10573
+ /* @__PURE__ */ n("div", { className: "calendar__weekdays", role: "row", children: ts.map((k, N) => /* @__PURE__ */ n("span", { className: "calendar__weekday", role: "columnheader", "aria-label": `星期${k}`, children: k }, `${k}-${N}`)) }),
10574
+ E.map((k, N) => /* @__PURE__ */ n("div", { className: "calendar__row", role: "row", children: k.map(({ date: q, inMonth: P }) => {
10575
+ const z = !P || Ut(q, o, i), V = Ke(q, m.start), B = Ke(q, m.end), $ = !!m.start && !!m.end && !Ke(m.start, m.end), Y = $ && he(q) > he(m.start) && he(q) < he(m.end), G = !!(e.start && (e.end ? he(q) >= he(e.start) && he(q) <= he(e.end) : Ke(q, e.start))), F = ie(
10544
10576
  "calendar__cell",
10545
10577
  Y ? "calendar__cell--in-range" : "",
10546
10578
  $ && V ? "calendar__cell--range-start" : "",
@@ -10550,7 +10582,7 @@ function es({
10550
10582
  P ? "" : "calendar__day--outside",
10551
10583
  V && m.start ? "calendar__day--start" : "",
10552
10584
  B && $ ? "calendar__day--end" : "",
10553
- P && !z && Ke(R, s) ? "calendar__day--today" : ""
10585
+ P && !z && Ke(q, s) ? "calendar__day--today" : ""
10554
10586
  );
10555
10587
  return /* @__PURE__ */ n(
10556
10588
  "div",
@@ -10564,22 +10596,22 @@ function es({
10564
10596
  {
10565
10597
  type: "button",
10566
10598
  ref: (X) => {
10567
- X ? g.current.set(he(R), X) : g.current.delete(he(R));
10599
+ X ? g.current.set(he(q), X) : g.current.delete(he(q));
10568
10600
  },
10569
10601
  className: O,
10570
- tabIndex: P && !z && Ke(R, d) ? 0 : -1,
10602
+ tabIndex: P && !z && Ke(q, d) ? 0 : -1,
10571
10603
  disabled: z,
10572
- "aria-label": Ja(R),
10573
- "aria-current": P && Ke(R, s) ? "date" : void 0,
10574
- onClick: () => !z && v(R),
10575
- onMouseEnter: () => p(R),
10604
+ "aria-label": Ja(q),
10605
+ "aria-current": P && Ke(q, s) ? "date" : void 0,
10606
+ onClick: () => !z && v(q),
10607
+ onMouseEnter: () => p(q),
10576
10608
  onMouseLeave: () => p(null),
10577
- onFocus: () => f(R),
10578
- children: R.getDate()
10609
+ onFocus: () => f(q),
10610
+ children: q.getDate()
10579
10611
  }
10580
10612
  )
10581
10613
  },
10582
- he(R)
10614
+ he(q)
10583
10615
  );
10584
10616
  }) }, N))
10585
10617
  ]
@@ -10588,7 +10620,7 @@ function es({
10588
10620
  /* @__PURE__ */ n("span", { className: "q1-sr-only", "aria-live": "polite", children: _ })
10589
10621
  ] });
10590
10622
  }
10591
- function ts({
10623
+ function rs({
10592
10624
  value: e,
10593
10625
  onApply: t,
10594
10626
  pinnedTimezone: r
@@ -10618,7 +10650,7 @@ function ts({
10618
10650
  /* @__PURE__ */ n("span", { className: ie("cal-inputs__tz", r && "cal-inputs__tz--pinned"), children: r ? `${r}(只读)` : "本地时区(只读)" })
10619
10651
  ] });
10620
10652
  }
10621
- function Ac({
10653
+ function Oc({
10622
10654
  layout: e = "vertical",
10623
10655
  trigger: t = "default",
10624
10656
  size: r = "large",
@@ -10632,7 +10664,7 @@ function Ac({
10632
10664
  const [p, d] = H(!1), [f, _] = H(l), [x, g] = H("keyboard"), c = T(null), b = T(null), m = T(null), v = T(null), D = T(!1), I = fe();
10633
10665
  te(() => {
10634
10666
  p || _(l);
10635
- }, [p, l]), Qa({
10667
+ }, [p, l]), es({
10636
10668
  open: p,
10637
10669
  popoverRef: v,
10638
10670
  triggerRef: m.current ? m : b
@@ -10669,15 +10701,15 @@ function Ac({
10669
10701
  }, [p]);
10670
10702
  const h = !!l.start && !!l.end, C = h ? `${he(l.start)} ~ ${he(l.end)}` : "选择日期区间";
10671
10703
  function M(k) {
10672
- const N = k.currentTarget, R = D.current && k.detail !== 0;
10704
+ const N = k.currentTarget, q = D.current && k.detail !== 0;
10673
10705
  if (D.current = !1, p) {
10674
10706
  d(!1);
10675
10707
  return;
10676
10708
  }
10677
- m.current = N, _(l), g(R ? "pointer" : "keyboard"), d(!0);
10709
+ m.current = N, _(l), g(q ? "pointer" : "keyboard"), d(!0);
10678
10710
  }
10679
- const L = /* @__PURE__ */ n(es, { value: f, onChange: _, size: r, minValue: o, maxValue: i, today: a }), E = /* @__PURE__ */ n(
10680
- ts,
10711
+ const L = /* @__PURE__ */ n(ns, { value: f, onChange: _, size: r, minValue: o, maxValue: i, today: a }), E = /* @__PURE__ */ n(
10712
+ rs,
10681
10713
  {
10682
10714
  value: f,
10683
10715
  withTime: e === "vertical",
@@ -10741,7 +10773,7 @@ function Ac({
10741
10773
  D.current = !1;
10742
10774
  },
10743
10775
  onClick: M,
10744
- children: /* @__PURE__ */ n(qe, { size: 15, strokeWidth: 2, "aria-hidden": "true" })
10776
+ children: /* @__PURE__ */ n(Re, { size: 15, strokeWidth: 2, "aria-hidden": "true" })
10745
10777
  }
10746
10778
  ) : h ? /* @__PURE__ */ n(
10747
10779
  "button",
@@ -10781,116 +10813,118 @@ function Ac({
10781
10813
  ] });
10782
10814
  }
10783
10815
  export {
10784
- Us as AuthCard,
10785
- ua as Avatar,
10786
- oc as AvatarGroup,
10787
- zs as Badge,
10788
- Hs as Banner,
10789
- tc as Book,
10790
- Ha as Breadcrumb,
10791
- nc as Browser,
10792
- sa as BrowserAddress,
10793
- ia as BrowserControls,
10794
- oa as BrowserDots,
10795
- rc as BrowserPlaceholder,
10796
- ca as BrowserTabs,
10816
+ Ys as AuthCard,
10817
+ fa as Avatar,
10818
+ ac as AvatarGroup,
10819
+ Hs as Badge,
10820
+ js as Banner,
10821
+ rc as Book,
10822
+ ja as Breadcrumb,
10823
+ oc as Browser,
10824
+ la as BrowserAddress,
10825
+ sa as BrowserControls,
10826
+ aa as BrowserDots,
10827
+ ic as BrowserPlaceholder,
10828
+ ua as BrowserTabs,
10797
10829
  ot as Button,
10798
10830
  Eo as ButtonLink,
10799
- es as CalendarGrid,
10800
- vi as Card,
10801
- $c as Chart,
10802
- ms as Checkbox,
10803
- gs as Choicebox,
10831
+ ns as CalendarGrid,
10832
+ ki as Card,
10833
+ Ac as Chart,
10834
+ bs as Checkbox,
10835
+ ys as Choicebox,
10804
10836
  lr as ClearButton,
10805
- us as ClearableInput,
10806
- vs as Code,
10807
- ks as CodeBlock,
10808
- Ns as CodeInline,
10837
+ fs as ClearableInput,
10838
+ ks as Code,
10839
+ Ps as CodeBlock,
10840
+ xs as CodeInline,
10809
10841
  yr as CodeTokens,
10810
- Cs as Collapse,
10811
- Ps as CollapseGroup,
10812
- Dc as CollapsibleBreadcrumb,
10813
- _s as Combobox,
10814
- Is as CommandMenu,
10815
- ec as ContextCard,
10816
- Bs as ContextMenu,
10817
- Qs as ContextSwitcher,
10842
+ Ds as Collapse,
10843
+ Is as CollapseGroup,
10844
+ Ec as CollapsibleBreadcrumb,
10845
+ ws as Combobox,
10846
+ Ms as CommandMenu,
10847
+ nc as ContextCard,
10848
+ Ws as ContextMenu,
10849
+ ec as ContextSwitcher,
10818
10850
  hr as ControlOption,
10819
10851
  Do as CopyButton,
10820
- Zs as Description,
10821
- Ms as DestructiveActionModal,
10822
- hc as DocsPagination,
10823
- Ks as DotsMenu,
10824
- Es as Drawer,
10825
- Ts as EmptyState,
10826
- Ss as Entity,
10827
- qs as ErrorCard,
10828
- Rs as ErrorMessage,
10829
- $s as Feedback,
10830
- Ls as Fieldset,
10831
- As as FileTree,
10832
- Rt as FormField,
10833
- fc as Gauge,
10852
+ tc as Description,
10853
+ Ts as DestructiveActionModal,
10854
+ gc as DocsPagination,
10855
+ zs as DotsMenu,
10856
+ Ss as Drawer,
10857
+ qs as EmptyState,
10858
+ Rs as Entity,
10859
+ Ls as ErrorCard,
10860
+ $s as ErrorMessage,
10861
+ As as Feedback,
10862
+ Fs as Fieldset,
10863
+ Os as FileTree,
10864
+ qt as FormField,
10865
+ mc as Gauge,
10834
10866
  Lo as IconButton,
10835
10867
  Ao as Input,
10836
- vc as JsonView,
10868
+ kc as JsonView,
10837
10869
  vn as Kbd,
10838
- Os as Label,
10839
- ss as Link,
10840
- yc as LoadMoreButton,
10841
- ac as LoadingDots,
10842
- Tc as Menu,
10843
- sc as MiddleTruncate,
10844
- Rc as Modal,
10845
- qc as ModalInset,
10846
- Sc as MultiSelect,
10847
- Ys as Navigation,
10870
+ Ks as Label,
10871
+ ls as Link,
10872
+ vc as LoadMoreButton,
10873
+ cc as LoadingDots,
10874
+ qc as Menu,
10875
+ lc as MiddleTruncate,
10876
+ $c as Modal,
10877
+ Lc as ModalInset,
10878
+ Rc as MultiSelect,
10879
+ Gs as Navigation,
10848
10880
  Js as NavigationGroup,
10849
- Gs as NavigationItem,
10850
- Xs as NavigationSection,
10851
- mc as Note,
10852
- bc as Pagination,
10853
- Lc as PeriodCombobox,
10854
- cc as Phone,
10855
- Vs as Pill,
10856
- pc as Progress,
10857
- lc as ProjectBanner,
10858
- hs as Radio,
10859
- Ac as RangeField,
10860
- ts as RangeInputs,
10861
- Ic as RangeSlider,
10862
- wc as RelativeTimeCard,
10863
- xc as Scroller,
10864
- Pc as ScrollerWithButtons,
10865
- Ds as SearchDialog,
10866
- ds as SearchInput,
10867
- ps as Select,
10868
- Fs as Separator,
10869
- Mc as Sheet,
10870
- _c as ShowMore,
10881
+ Qs as NavigationItem,
10882
+ Zs as NavigationSection,
10883
+ bc as Note,
10884
+ _c as Pagination,
10885
+ Fc as PeriodCombobox,
10886
+ uc as Phone,
10887
+ Us as Pill,
10888
+ Bs as ProductLockup,
10889
+ hc as Progress,
10890
+ dc as ProjectBanner,
10891
+ hi as Q1travelSymbol,
10892
+ gs as Radio,
10893
+ Oc as RangeField,
10894
+ rs as RangeInputs,
10895
+ Mc as RangeSlider,
10896
+ Nc as RelativeTimeCard,
10897
+ Cc as Scroller,
10898
+ Ic as ScrollerWithButtons,
10899
+ Es as SearchDialog,
10900
+ ps as SearchInput,
10901
+ hs as Select,
10902
+ mi as Separator,
10903
+ Tc as Sheet,
10904
+ wc as ShowMore,
10871
10905
  dt as Sidebar,
10872
- js as SidebarDrawer,
10873
- ic as Skeleton,
10874
- Cc as Slider,
10875
- dc as Snippet,
10876
- Pa as Spinner,
10877
- Ec as SplitButton,
10878
- Ws as StatusDot,
10879
- ys as Switch,
10880
- gc as Table,
10881
- xs as Tabs,
10882
- uc as TextWithCopyButton,
10883
- fs as Textarea,
10884
- kc as ThemeSwitcher,
10885
- as as ToastProvider,
10886
- ws as Toggle,
10887
- cs as Toolbar,
10906
+ Xs as SidebarDrawer,
10907
+ sc as Skeleton,
10908
+ Dc as Slider,
10909
+ pc as Snippet,
10910
+ Ia as Spinner,
10911
+ Sc as SplitButton,
10912
+ Vs as StatusDot,
10913
+ vs as Switch,
10914
+ yc as Table,
10915
+ Cs as Tabs,
10916
+ fc as TextWithCopyButton,
10917
+ ms as Textarea,
10918
+ Pc as ThemeSwitcher,
10919
+ cs as ToastProvider,
10920
+ Ns as Toggle,
10921
+ us as Toolbar,
10888
10922
  _r as Tooltip,
10889
- ls as VerificationCodeInput,
10890
- Nc as Video,
10923
+ ds as VerificationCodeInput,
10924
+ xc as Video,
10891
10925
  Le as addDays,
10892
- is as getOverlayCoordinator,
10926
+ ss as getOverlayCoordinator,
10893
10927
  cn as useCopy,
10894
- bs as useRadio,
10928
+ _s as useRadio,
10895
10929
  No as useToast
10896
10930
  };