oink-ui 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/oink-ui.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, Fragment as Pe, jsxs as E } from "react/jsx-runtime";
2
- import { useLayoutEffect as xr, useEffect as de, useState as ie, useRef as B, useCallback as Ue, useSyncExternalStore as An, forwardRef as D, useContext as we, isValidElement as Bt, cloneElement as Qt, createContext as Le, useMemo as Ae, useId as Me, Component as Nr, version as wr, Children as Cn, Fragment as Ca } from "react";
3
- import { createPortal as Mr, flushSync as Sr } from "react-dom";
4
- import { createRoot as Ar } from "react-dom/client";
2
+ import { useLayoutEffect as _r, useEffect as de, useState as ie, useRef as B, useCallback as Ue, useSyncExternalStore as en, forwardRef as D, useContext as we, isValidElement as Bt, cloneElement as tn, createContext as $e, useMemo as Ae, useId as Me, Component as xr, version as Nr, Children as Tn, Fragment as Ca } from "react";
3
+ import { createPortal as wr, flushSync as Mr } from "react-dom";
4
+ import { createRoot as Sr } from "react-dom/client";
5
5
  function R(...t) {
6
6
  const e = [], n = (a) => {
7
7
  if (!(!a && a !== 0)) {
@@ -13,15 +13,15 @@ function R(...t) {
13
13
  };
14
14
  return t.forEach(n), e.join(" ");
15
15
  }
16
- const Ce = (t, e, n) => Math.min(n, Math.max(e, t)), He = typeof window < "u" && typeof document < "u", Cr = 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]';
16
+ const Ce = (t, e, n) => Math.min(n, Math.max(e, t)), He = typeof window < "u" && typeof document < "u", Ar = 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]';
17
17
  function jt(t) {
18
- return Array.from(t.querySelectorAll(Cr)).filter((e) => {
18
+ return Array.from(t.querySelectorAll(Ar)).filter((e) => {
19
19
  if (e.closest('[inert], [aria-hidden="true"]')) return !1;
20
20
  const n = getComputedStyle(e);
21
21
  return n.display !== "none" && n.visibility !== "hidden";
22
22
  });
23
23
  }
24
- function en(...t) {
24
+ function nn(...t) {
25
25
  return (e) => {
26
26
  for (const n of t)
27
27
  if (n == null || n(e), e.defaultPrevented) break;
@@ -32,8 +32,8 @@ function tt() {
32
32
  const t = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--ok-ms"));
33
33
  return Number.isFinite(t) ? t : 1;
34
34
  }
35
- const il = (t) => new Promise((e) => setTimeout(e, t * tt()));
36
- function Tr(t, e, n) {
35
+ const hl = (t) => new Promise((e) => setTimeout(e, t * tt()));
36
+ function Cr(t, e, n) {
37
37
  const a = Math.sqrt(t / n), r = e / (2 * Math.sqrt(t * n));
38
38
  if (r < 1) {
39
39
  const c = a * Math.sqrt(1 - r * r);
@@ -44,7 +44,7 @@ function Tr(t, e, n) {
44
44
  return (c) => 1 - (i * Math.exp(l * c) - l * Math.exp(i * c)) / (i - l);
45
45
  }
46
46
  function Ta(t = {}) {
47
- const e = t.stiffness || 260, n = t.damping || 24, a = t.mass || 1, r = Tr(e, n, a);
47
+ const e = t.stiffness || 260, n = t.damping || 24, a = t.mass || 1, r = Cr(e, n, a);
48
48
  let o = 0.1;
49
49
  for (let d = 3; d > 0; d -= 1 / 240)
50
50
  if (Math.abs(r(d) - 1) > (t.precision || 4e-3)) {
@@ -60,42 +60,42 @@ function Ta(t = {}) {
60
60
  return { stiffness: e, damping: n, mass: a, duration: Math.round(o * 1e3), easing: "linear(" + i.join(", ") + ")", overshoot: c - 1, at: (d) => r(d * o) };
61
61
  }
62
62
  var Aa;
63
- const Er = He && typeof CSS < "u" && !!((Aa = CSS.supports) != null && Aa.call(CSS, "transition-timing-function", "linear(0, 1)")), Xe = {
63
+ const Tr = He && typeof CSS < "u" && !!((Aa = CSS.supports) != null && Aa.call(CSS, "transition-timing-function", "linear(0, 1)")), Xe = {
64
64
  out: "cubic-bezier(.22, 1, .36, 1)",
65
65
  in: "cubic-bezier(.55, 0, 1, .45)",
66
66
  inOut: "cubic-bezier(.65, 0, .35, 1)",
67
67
  standard: "cubic-bezier(.2, 0, 0, 1)"
68
- }, Pr = { in: 303, fade: 100, out: 160 }, pn = {
68
+ }, Er = { in: 303, fade: 100, out: 160 }, mn = {
69
69
  soft: { stiffness: 170, damping: 26, fallback: "cubic-bezier(.22, 1, .36, 1)" },
70
70
  spring: { stiffness: 260, damping: 24, fallback: "cubic-bezier(.3, 1.3, .5, 1)" },
71
71
  snappy: { stiffness: 520, damping: 34, fallback: "cubic-bezier(.3, 1.25, .45, 1)" },
72
72
  bouncy: { stiffness: 300, damping: 18, fallback: "cubic-bezier(.3, 1.7, .5, 1)" },
73
73
  wobbly: { stiffness: 180, damping: 9, fallback: "cubic-bezier(.3, 2.3, .5, 1)" }
74
74
  }, Ea = Object.fromEntries(
75
- Object.keys(pn).map((t) => [t, { ...Ta(pn[t]), fallback: pn[t].fallback }])
75
+ Object.keys(mn).map((t) => [t, { ...Ta(mn[t]), fallback: mn[t].fallback }])
76
76
  );
77
77
  function Ie(t, e, n = {}) {
78
78
  if (!t || typeof t.animate != "function") return null;
79
79
  const { spring: a, ...r } = n, o = { duration: 240, easing: Xe.out, ...r };
80
80
  if (a) {
81
81
  const i = typeof a == "string" ? Ea[a] : Ta(a);
82
- o.duration = i.duration, o.easing = Er ? i.easing : i.fallback || Xe.out;
82
+ o.duration = i.duration, o.easing = Tr ? i.easing : i.fallback || Xe.out;
83
83
  }
84
84
  const l = tt();
85
85
  return o.duration = Math.max(0, o.duration * l), o.delay && (o.delay *= l, o.fill || (o.fill = "backwards")), t.animate(e, o);
86
86
  }
87
- function cl(t, e, n) {
87
+ function ml(t, e, n) {
88
88
  const a = t.filter(Boolean), r = new Map(a.map((o) => [o, o.getBoundingClientRect()]));
89
- e(), Tn(r, n);
89
+ e(), En(r, n);
90
90
  }
91
- function Tn(t, e) {
91
+ function En(t, e) {
92
92
  t.forEach((n, a) => {
93
93
  if (!a.isConnected) return;
94
94
  const r = a.getBoundingClientRect(), o = n.left - r.left, l = n.top - r.top;
95
95
  Math.abs(o) < 0.5 && Math.abs(l) < 0.5 || Ie(a, [{ transform: `translate(${o}px, ${l}px)` }, { transform: "none" }], { spring: "spring", ...e });
96
96
  });
97
97
  }
98
- const xe = He ? xr : de;
98
+ const xe = He ? _r : de;
99
99
  function Se(t) {
100
100
  const e = B(t);
101
101
  return xe(() => {
@@ -130,7 +130,7 @@ function Ne(...t) {
130
130
  });
131
131
  };
132
132
  }
133
- function En(t, e = !1) {
133
+ function Pn(t, e = !1) {
134
134
  const n = Ue(
135
135
  (a) => {
136
136
  if (!He) return () => {
@@ -140,13 +140,13 @@ function En(t, e = !1) {
140
140
  },
141
141
  [t]
142
142
  );
143
- return An(n, () => window.matchMedia(t).matches, () => e);
143
+ return en(n, () => window.matchMedia(t).matches, () => e);
144
144
  }
145
- const Pn = { sm: 520, md: 768, lg: 1024, xl: 1280 };
145
+ const Ln = { sm: 520, md: 768, lg: 1024, xl: 1280 };
146
146
  function _t(t, e = !0) {
147
- return En(`(min-width: ${Pn[t]}px)`, e);
147
+ return Pn(`(min-width: ${Ln[t]}px)`, e);
148
148
  }
149
- function tn(t, e = 400) {
149
+ function an(t, e = 400) {
150
150
  const [n, a] = ie(t), [r, o] = ie("closed"), l = B(null);
151
151
  return xe(() => {
152
152
  t && a(!0);
@@ -186,7 +186,7 @@ function tn(t, e = 400) {
186
186
  }, [t, n, e]), { mounted: n, state: t ? r : "closed", ref: l };
187
187
  }
188
188
  let na = 0, Pt = null;
189
- function $r(t) {
189
+ function Pr(t) {
190
190
  de(() => {
191
191
  if (!(!t || !He)) {
192
192
  if (na++ === 0) {
@@ -201,23 +201,23 @@ function $r(t) {
201
201
  }
202
202
  }, [t]);
203
203
  }
204
- const $t = [];
205
- function nn(t, e) {
204
+ const Lt = [];
205
+ function rn(t, e) {
206
206
  const n = Se(e);
207
207
  de(() => {
208
208
  if (!t || !He) return;
209
- $t.push(n);
209
+ Lt.push(n);
210
210
  const a = (r) => {
211
- r.key !== "Escape" || r.defaultPrevented || $t[$t.length - 1] === n && (r.preventDefault(), n());
211
+ r.key !== "Escape" || r.defaultPrevented || Lt[Lt.length - 1] === n && (r.preventDefault(), n());
212
212
  };
213
213
  return document.addEventListener("keydown", a), () => {
214
214
  document.removeEventListener("keydown", a);
215
- const r = $t.lastIndexOf(n);
216
- r >= 0 && $t.splice(r, 1);
215
+ const r = Lt.lastIndexOf(n);
216
+ r >= 0 && Lt.splice(r, 1);
217
217
  };
218
218
  }, [t, n]);
219
219
  }
220
- function dl(t, e, n) {
220
+ function bl(t, e, n) {
221
221
  const a = Se(n), r = B(e);
222
222
  r.current = e, de(() => {
223
223
  if (!t || !He) return;
@@ -229,7 +229,7 @@ function dl(t, e, n) {
229
229
  }, [t, a]);
230
230
  }
231
231
  const Vt = /* @__PURE__ */ new Map(), Lr = '[data-ok-layer], .ok-popup, .ok-toasts, .ok-tooltip, [role="tooltip"], [data-ok-confirmer], [aria-live], script, style, link, template, noscript';
232
- function Ir(t, e) {
232
+ function $r(t, e) {
233
233
  de(() => {
234
234
  if (!t || !He) return;
235
235
  const n = e.current, a = "inert" in HTMLElement.prototype, r = [];
@@ -249,34 +249,34 @@ function At({ children: t, container: e, disabled: n }) {
249
249
  const [a, r] = ie(null);
250
250
  return de(() => {
251
251
  r(e ?? document.body);
252
- }, [e]), n ? /* @__PURE__ */ s(Pe, { children: t }) : a ? Mr(t, a) : null;
252
+ }, [e]), n ? /* @__PURE__ */ s(Pe, { children: t }) : a ? wr(t, a) : null;
253
253
  }
254
- const Rr = 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex], [contenteditable="true"]';
254
+ const Ir = 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex], [contenteditable="true"]';
255
255
  function Pa(t) {
256
256
  const e = t instanceof HTMLElement && t !== document.body && t !== document.documentElement ? t : null, n = [];
257
257
  for (let a = (e == null ? void 0 : e.parentElement) ?? null; a && a !== document.body && a !== document.documentElement; a = a.parentElement) n.push(a);
258
258
  return { target: e, ancestors: n };
259
259
  }
260
- const $a = (t) => !!t.closest('[inert], [aria-hidden="true"]'), aa = (t) => t.isConnected && !$a(t);
261
- function La(t) {
260
+ const La = (t) => !!t.closest('[inert], [aria-hidden="true"]'), aa = (t) => t.isConnected && !La(t);
261
+ function $a(t) {
262
262
  var r, o;
263
263
  if (!t || !t.target) return null;
264
264
  const e = { preventScroll: !0 };
265
265
  if (t.target.isConnected)
266
- return $a(t.target) ? null : (t.target.focus(e), t.target);
267
- const n = t.ancestors.find((l) => aa(l) && l.matches(Rr));
266
+ return La(t.target) ? null : (t.target.focus(e), t.target);
267
+ const n = t.ancestors.find((l) => aa(l) && l.matches(Ir));
268
268
  if (n)
269
269
  return n.focus(e), n;
270
270
  const a = document.querySelector('main, [role="main"]');
271
271
  return a && aa(a) ? (a.hasAttribute("tabindex") || a.setAttribute("tabindex", "-1"), a.focus(e), a) : ((o = (r = document.activeElement) == null ? void 0 : r.blur) == null || o.call(r), document.body);
272
272
  }
273
- function Dr({ children: t, trap: e = !0, autoFocus: n = !0, restoreFocus: a = !0, initialFocus: r, scopeRef: o }) {
273
+ function Rr({ children: t, trap: e = !0, autoFocus: n = !0, restoreFocus: a = !0, initialFocus: r, scopeRef: o }) {
274
274
  const l = B(null), i = B(a);
275
275
  return i.current = a, de(() => {
276
276
  const c = o.current;
277
277
  if (c)
278
278
  return (!l.current || !c.contains(document.activeElement)) && (l.current = Pa(document.activeElement)), n && !c.contains(document.activeElement) && ((r == null ? void 0 : r.current) ?? c.querySelector("[data-autofocus]") ?? c).focus({ preventScroll: !0 }), () => {
279
- i.current && La(l.current);
279
+ i.current && $a(l.current);
280
280
  };
281
281
  }, []), de(() => {
282
282
  const c = o.current;
@@ -399,25 +399,25 @@ function st(t) {
399
399
  function xt([t, e, n]) {
400
400
  return "#" + [t, e, n].map((a) => Math.round(Da(a, 0, 255)).toString(16).padStart(2, "0")).join("");
401
401
  }
402
- function Or([t, e, n]) {
402
+ function Dr([t, e, n]) {
403
403
  const [a, r, o] = [t / 255, e / 255, n / 255], l = Math.max(a, r, o), i = Math.min(a, r, o), c = l - i;
404
404
  let d = 0;
405
405
  return c && (l === a ? d = (r - o) / c % 6 : l === r ? d = (o - a) / c + 2 : d = (a - r) / c + 4, d *= 60, d < 0 && (d += 360)), { h: d, s: l ? c / l : 0, v: l };
406
406
  }
407
- function Br({ h: t, s: e, v: n }) {
407
+ function Or({ h: t, s: e, v: n }) {
408
408
  const a = (r) => {
409
409
  const o = (r + t / 60) % 6;
410
410
  return Math.round(255 * (n - n * e * Math.max(0, Math.min(o, 4 - o, 1))));
411
411
  };
412
412
  return [a(5), a(3), a(1)];
413
413
  }
414
- const Fr = (t) => {
414
+ const Br = (t) => {
415
415
  const e = Ft(t);
416
- return e ? Or(e) : null;
417
- }, zr = (t) => xt(Br(t)), Nt = (t) => {
416
+ return e ? Dr(e) : null;
417
+ }, Fr = (t) => xt(Or(t)), Nt = (t) => {
418
418
  const e = t / 255;
419
419
  return e <= 0.04045 ? e / 12.92 : ((e + 0.055) / 1.055) ** 2.4;
420
- }, Hr = (t) => 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * t ** (1 / 2.4) - 0.055);
420
+ }, zr = (t) => 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * t ** (1 / 2.4) - 0.055);
421
421
  function ra([t, e, n]) {
422
422
  return 0.2126 * Nt(t) + 0.7152 * Nt(e) + 0.0722 * Nt(n);
423
423
  }
@@ -433,7 +433,7 @@ function Oa([t, e, n]) {
433
433
  0.0259040371 * l + 0.7827717662 * i - 0.808675766 * c
434
434
  ];
435
435
  }
436
- function qr([t, e, n]) {
436
+ function Hr([t, e, n]) {
437
437
  const a = (t + 0.3963377774 * e + 0.2158037573 * n) ** 3, r = (t - 0.1055613458 * e - 0.0638541728 * n) ** 3, o = (t - 0.0894841775 * e - 1.291485548 * n) ** 3;
438
438
  return [
439
439
  4.0767416621 * a - 3.3077115913 * r + 0.2309699292 * o,
@@ -445,14 +445,14 @@ const Ba = (t) => Oa(t)[0];
445
445
  function oa(t, e) {
446
446
  const [, n, a] = Oa(t), r = Math.hypot(n, a), o = Math.atan2(a, n);
447
447
  let l = 0, i = r;
448
- const c = (f) => qr([e, f * Math.cos(o), f * Math.sin(o)]), d = (f) => f.every((h) => h >= -1e-4 && h <= 1 + 1e-4);
448
+ const c = (f) => Hr([e, f * Math.cos(o), f * Math.sin(o)]), d = (f) => f.every((h) => h >= -1e-4 && h <= 1 + 1e-4);
449
449
  if (d(c(r)))
450
450
  l = r;
451
451
  else for (let f = 0; f < 20; f++) {
452
452
  const h = (l + i) / 2;
453
453
  d(c(h)) ? l = h : i = h;
454
454
  }
455
- return c(l).map((f) => Hr(Da(f)));
455
+ return c(l).map((f) => zr(Da(f)));
456
456
  }
457
457
  function sa(t, e, n, a) {
458
458
  if (Kt(t, e) >= n) return t;
@@ -464,7 +464,7 @@ function sa(t, e, n, a) {
464
464
  }
465
465
  return i;
466
466
  }
467
- const Vr = 0.65, Wr = [255, 255, 255], Ur = [42, 41, 39], la = { light: [27, 28, 34], dark: [244, 244, 246] }, ia = 1.45;
467
+ const qr = 0.65, Vr = [255, 255, 255], Wr = [42, 41, 39], la = { light: [27, 28, 34], dark: [244, 244, 246] }, ia = 1.45;
468
468
  function ca(t) {
469
469
  const e = Ft(t);
470
470
  if (!e) return { light: "#ffffff", dark: "#1b1c22" };
@@ -474,39 +474,39 @@ function ca(t) {
474
474
  dark: Kt(e, la.dark) < ia ? "#1b1c22" : n
475
475
  };
476
476
  }
477
- function Gr(t) {
477
+ function Ur(t) {
478
478
  const e = Ft(t);
479
- return e && Ba(e) < Vr ? "#ffffff" : "#1b1c22";
479
+ return e && Ba(e) < qr ? "#ffffff" : "#1b1c22";
480
480
  }
481
481
  function da(t) {
482
482
  const e = Ft(t);
483
483
  if (!e) return {};
484
- const n = Gr(t), a = {
484
+ const n = Ur(t), a = {
485
485
  "--ok-accent": xt(e),
486
486
  "--ok-on-accent": n,
487
- "--ok-accent-deep": xt(sa(e, Wr, 4.6, 0)),
488
- "--ok-accent-light": xt(sa(e, Ur, 4.6, 1)),
487
+ "--ok-accent-deep": xt(sa(e, Vr, 4.6, 0)),
488
+ "--ok-accent-light": xt(sa(e, Wr, 4.6, 1)),
489
489
  "--ok-logo-snout-light": ca(t).light,
490
490
  "--ok-logo-snout-dark": ca(t).dark
491
491
  };
492
492
  return n === "#ffffff" && (a["--ok-accent-fill"] = "var(--ok-accent)", a["--ok-accent-fill-hover"] = "var(--ok-accent-hover)"), a;
493
493
  }
494
- const Yr = "M9 10C9 26 20 38 31 38c7 0 11-5 11-10.500S37.500 18 32 18c-5 0-8.500 3.500-9 8", Zt = Le(void 0);
495
- function Xr({ tail: t, children: e }) {
494
+ const Gr = "M9 10C9 26 20 38 31 38c7 0 11-5 11-10.500S37.500 18 32 18c-5 0-8.500 3.500-9 8", Zt = $e(void 0);
495
+ function Yr({ tail: t, children: e }) {
496
496
  const n = we(Zt);
497
497
  return /* @__PURE__ */ s(Zt.Provider, { value: t === void 0 ? n : t, children: e });
498
498
  }
499
- function ul() {
499
+ function vl() {
500
500
  return we(Zt);
501
501
  }
502
502
  function Fa({ className: t = "ok-tail", ...e }) {
503
503
  const n = we(Zt);
504
504
  if (n == null || n === !1)
505
- return /* @__PURE__ */ s("svg", { className: t, viewBox: "0 0 48 48", "aria-hidden": "true", focusable: "false", ...e, children: /* @__PURE__ */ s("path", { pathLength: 1, d: Yr }) });
505
+ return /* @__PURE__ */ s("svg", { className: t, viewBox: "0 0 48 48", "aria-hidden": "true", focusable: "false", ...e, children: /* @__PURE__ */ s("path", { pathLength: 1, d: Gr }) });
506
506
  if (typeof n == "function") return /* @__PURE__ */ s(Pe, { children: n({ className: t }) });
507
507
  if (Bt(n)) {
508
508
  const a = n;
509
- return Qt(a, {
509
+ return tn(a, {
510
510
  className: R(t, a.props.className),
511
511
  "aria-hidden": a.props["aria-hidden"] ?? !0,
512
512
  ...a.type === "svg" ? { focusable: a.props.focusable ?? "false" } : null
@@ -514,7 +514,7 @@ function Fa({ className: t = "ok-tail", ...e }) {
514
514
  }
515
515
  return /* @__PURE__ */ s("span", { className: t, "aria-hidden": "true", children: n });
516
516
  }
517
- const za = {
517
+ const Xr = {
518
518
  common: { close: "关闭", clear: "清除", loading: "加载中", remove: "移除", separator: "," },
519
519
  avatar: {
520
520
  status: { online: "在线", busy: "忙碌", away: "离开", offline: "离线" },
@@ -710,24 +710,36 @@ const za = {
710
710
  },
711
711
  combobox: { loading: "Loading…", empty: "No matching options", listbox: "Options" },
712
712
  select: { placeholder: "Select…", count: (t) => `${t} selected` }
713
- }, $n = { "zh-CN": za, "en-US": jr }, xn = Le("zh-CN");
714
- function Kr({ locale: t, children: e }) {
715
- const n = we(xn);
716
- return /* @__PURE__ */ s(xn.Provider, { value: t ?? n, children: e });
713
+ }, Jt = { "zh-CN": Xr, "en-US": jr }, Kr = "en-US";
714
+ function Zr(t) {
715
+ const e = (t.find(Boolean) ?? "").toLowerCase();
716
+ return e === "zh" || e.startsWith("zh-") ? "zh-CN" : "en-US";
717
+ }
718
+ const Jr = (t) => (window.addEventListener("languagechange", t), () => window.removeEventListener("languagechange", t)), Qr = () => {
719
+ var t;
720
+ return Zr((t = navigator.languages) != null && t.length ? navigator.languages : [navigator.language]);
721
+ }, eo = () => Kr;
722
+ function to() {
723
+ return en(Jr, Qr, eo);
724
+ }
725
+ const wn = $e("auto");
726
+ function no({ locale: t, children: e }) {
727
+ const n = we(wn);
728
+ return /* @__PURE__ */ s(wn.Provider, { value: t ?? n, children: e });
717
729
  }
718
730
  function ve() {
719
- const t = we(xn), e = $n[t];
720
- return e ? { locale: t, messages: e } : { locale: "zh-CN", messages: za };
731
+ const t = we(wn), e = to(), n = t === "auto" || !Jt[t] ? e : t;
732
+ return { locale: n, messages: Jt[n] };
721
733
  }
722
- const Zr = ["pink", "orange", "amber", "blue", "violet"], Gt = (t) => t.startsWith("#");
723
- function Jr(t) {
724
- return typeof t == "string" && (Zr.includes(t) || t.startsWith("#") && st(t) !== null);
734
+ const ao = ["pink", "orange", "amber", "blue", "violet"], Gt = (t) => t.startsWith("#");
735
+ function ro(t) {
736
+ return typeof t == "string" && (ao.includes(t) || t.startsWith("#") && st(t) !== null);
725
737
  }
726
- function Ha(t) {
727
- return Jr(t) ? Gt(t) ? st(t) : t : null;
738
+ function za(t) {
739
+ return ro(t) ? Gt(t) ? st(t) : t : null;
728
740
  }
729
- const Qr = 520, qa = Le(null);
730
- function eo(t) {
741
+ const oo = 520, Ha = $e(null);
742
+ function so(t) {
731
743
  if (!t || !He) return {};
732
744
  let e = {};
733
745
  try {
@@ -737,13 +749,13 @@ function eo(t) {
737
749
  }
738
750
  return {
739
751
  theme: ["light", "dark", "system"].includes(e.theme) ? e.theme : void 0,
740
- accent: Ha(e.accent) ?? void 0,
752
+ accent: za(e.accent) ?? void 0,
741
753
  motion: ["auto", "full", "reduced"].includes(e.motion) ? e.motion : void 0
742
754
  };
743
755
  }
744
- const to = ["--ok-accent", "--ok-on-accent", "--ok-accent-deep", "--ok-accent-light", "--ok-accent-fill", "--ok-accent-fill-hover", "--ok-logo-snout-light", "--ok-logo-snout-dark"];
756
+ const lo = ["--ok-accent", "--ok-on-accent", "--ok-accent-deep", "--ok-accent-light", "--ok-accent-fill", "--ok-accent-fill-hover", "--ok-logo-snout-light", "--ok-logo-snout-dark"];
745
757
  let Wt = null;
746
- function no() {
758
+ function io() {
747
759
  if (Wt) return Wt;
748
760
  const t = ":root.ok-theming::view-transition-new(root){clip-path:circle(0px at 50% 0%)}:root.ok-theming::view-transition-old(root){animation-duration:600ms}";
749
761
  let e;
@@ -755,7 +767,7 @@ function no() {
755
767
  }
756
768
  return Wt = { next: e.cssRules[0].style, old: e.cssRules[1].style }, Wt;
757
769
  }
758
- function ao(t) {
770
+ function co(t) {
759
771
  const o = 1.2000000000000002, l = 3 * (0.2 - 0.4) - o, i = 1 - o - l, c = 3 * 0, d = 3 * 1 - c, f = 1 - c - d;
760
772
  let h = t;
761
773
  for (let u = 0; u < 6; u++) {
@@ -765,19 +777,19 @@ function ao(t) {
765
777
  }
766
778
  return ((f * h + d) * h + c) * h;
767
779
  }
768
- function fl({ children: t, defaultTheme: e = "system", defaultAccent: n = "pink", defaultMotion: a = "auto", storageKey: r, tail: o, locale: l }) {
780
+ function gl({ children: t, defaultTheme: e = "system", defaultAccent: n = "pink", defaultMotion: a = "auto", storageKey: r, tail: o, locale: l }) {
769
781
  const [i, c] = ie(e), [d, f] = ie(n), h = Ue((M) => {
770
- const S = Ha(M);
782
+ const S = za(M);
771
783
  S && f(S);
772
- }, []), [u, p] = ie(a), b = En("(prefers-color-scheme: dark)"), m = i === "system" ? b ? "dark" : "light" : i, [v, w] = ie(!r);
784
+ }, []), [u, p] = ie(a), b = Pn("(prefers-color-scheme: dark)"), m = i === "system" ? b ? "dark" : "light" : i, [v, w] = ie(!r);
773
785
  xe(() => {
774
786
  if (!r) return;
775
- const M = eo(r);
787
+ const M = so(r);
776
788
  M.theme && c(M.theme), M.accent && f(M.accent), M.motion && p(M.motion), w(!0);
777
789
  }, [r]), de(() => {
778
790
  if (!v) return;
779
791
  const M = document.documentElement;
780
- M.dataset.theme = m, M.dataset.accent = Gt(d) ? "custom" : d, to.forEach((S) => M.style.removeProperty(S)), Gt(d) && Object.entries(da(d)).forEach(([S, T]) => M.style.setProperty(S, T)), u === "auto" ? delete M.dataset.motion : M.dataset.motion = u, M.style.colorScheme = m;
792
+ M.dataset.theme = m, M.dataset.accent = Gt(d) ? "custom" : d, lo.forEach((S) => M.style.removeProperty(S)), Gt(d) && Object.entries(da(d)).forEach(([S, T]) => M.style.setProperty(S, T)), u === "auto" ? delete M.dataset.motion : M.dataset.motion = u, M.style.colorScheme = m;
781
793
  }, [v, m, d, u]), de(() => {
782
794
  if (!r || !v) return;
783
795
  const M = Gt(d) ? da(d) : void 0;
@@ -805,11 +817,11 @@ function fl({ children: t, defaultTheme: e = "system", defaultAccent: n = "pink"
805
817
  c(M);
806
818
  return;
807
819
  }
808
- const A = Math.ceil(Math.hypot(Math.max(S.x, innerWidth - S.x), Math.max(S.y, innerHeight - S.y))), z = Qr * tt(), $ = no(), F = ` at ${Math.round(S.x)}px ${Math.round(S.y)}px)`;
809
- $.next.clipPath = "circle(0px" + F, $.old.animationDuration = Math.round(z + 80) + "ms", T.classList.add("ok-theming");
820
+ const A = Math.ceil(Math.hypot(Math.max(S.x, innerWidth - S.x), Math.max(S.y, innerHeight - S.y))), z = oo * tt(), L = io(), F = ` at ${Math.round(S.x)}px ${Math.round(S.y)}px)`;
821
+ L.next.clipPath = "circle(0px" + F, L.old.animationDuration = Math.round(z + 80) + "ms", T.classList.add("ok-theming");
810
822
  let O;
811
823
  try {
812
- O = I.call(document, () => Sr(N));
824
+ O = I.call(document, () => Mr(N));
813
825
  } catch {
814
826
  T.classList.remove("ok-theming"), N();
815
827
  return;
@@ -818,7 +830,7 @@ function fl({ children: t, defaultTheme: e = "system", defaultAccent: n = "pink"
818
830
  const U = performance.now(), V = (j) => {
819
831
  if (y !== x.current) return;
820
832
  const le = Math.min(1, (j - U) / z);
821
- $.next.clipPath = `circle(${Math.round(A * ao(le))}px${F}`, le < 1 && requestAnimationFrame(V);
833
+ L.next.clipPath = `circle(${Math.round(A * co(le))}px${F}`, le < 1 && requestAnimationFrame(V);
822
834
  };
823
835
  requestAnimationFrame(V);
824
836
  }).catch(() => {
@@ -828,14 +840,14 @@ function fl({ children: t, defaultTheme: e = "system", defaultAccent: n = "pink"
828
840
  };
829
841
  O.finished.then(P, P);
830
842
  }), k = Ae(() => ({ theme: i, resolvedTheme: m, accent: d, motion: u, setTheme: _, setAccent: h, setMotion: p }), [i, m, d, u, _, h]);
831
- return /* @__PURE__ */ s(qa.Provider, { value: k, children: /* @__PURE__ */ s(Kr, { locale: l, children: /* @__PURE__ */ s(Xr, { tail: o, children: t }) }) });
843
+ return /* @__PURE__ */ s(Ha.Provider, { value: k, children: /* @__PURE__ */ s(no, { locale: l, children: /* @__PURE__ */ s(Yr, { tail: o, children: t }) }) });
832
844
  }
833
- function pl() {
834
- const t = we(qa), e = Ue(() => {
845
+ function kl() {
846
+ const t = we(Ha), e = Ue(() => {
835
847
  }, []);
836
848
  return t ?? { theme: "light", resolvedTheme: "light", accent: "pink", motion: "auto", setTheme: e, setAccent: e, setMotion: e };
837
849
  }
838
- const ro = "M10 3H18A7 7 0 0 1 25 10V18A7 7 0 0 1 18 25H5A2 2 0 0 1 3 23V10A7 7 0 0 1 10 3Z", hn = { x: 15.5, y: 15, width: 13.5, height: 10, rx: 5 }, ua = [{ cx: 20, cy: 20 }, { cx: 24.5, cy: 20 }], hl = D(function({ size: e = 28, wordmark: n = !1, title: a = "Oink UI", animated: r = !1, mono: o = !1, className: l, style: i, ...c }, d) {
850
+ const uo = "M10 3H18A7 7 0 0 1 25 10V18A7 7 0 0 1 18 25H5A2 2 0 0 1 3 23V10A7 7 0 0 1 10 3Z", bn = { x: 15.5, y: 15, width: 13.5, height: 10, rx: 5 }, ua = [{ cx: 20, cy: 20 }, { cx: 24.5, cy: 20 }], yl = D(function({ size: e = 28, wordmark: n = !1, title: a = "Oink UI", animated: r = !1, mono: o = !1, className: l, style: i, ...c }, d) {
839
851
  const f = Me().replace(/:/g, ""), h = `ok-logo-gap-${f}`, u = `ok-logo-holes-${f}`, b = c["aria-hidden"] === !0 || c["aria-hidden"] === "true" ? null : { role: "img", "aria-label": a };
840
852
  return /* @__PURE__ */ E(
841
853
  "span",
@@ -851,17 +863,17 @@ const ro = "M10 3H18A7 7 0 0 1 25 10V18A7 7 0 0 1 18 25H5A2 2 0 0 1 3 23V10A7 7
851
863
  o && /* @__PURE__ */ E("defs", { children: [
852
864
  /* @__PURE__ */ E("mask", { id: h, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "32", height: "32", children: [
853
865
  /* @__PURE__ */ s("rect", { x: "0", y: "0", width: "32", height: "32", fill: "#fff" }),
854
- /* @__PURE__ */ s("rect", { ...hn, fill: "#000", stroke: "#000", strokeWidth: 3 })
866
+ /* @__PURE__ */ s("rect", { ...bn, fill: "#000", stroke: "#000", strokeWidth: 3 })
855
867
  ] }),
856
868
  /* @__PURE__ */ E("mask", { id: u, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "32", height: "32", children: [
857
- /* @__PURE__ */ s("rect", { ...hn, fill: "#fff" }),
869
+ /* @__PURE__ */ s("rect", { ...bn, fill: "#fff" }),
858
870
  ua.map((m) => /* @__PURE__ */ s("ellipse", { cx: m.cx, cy: m.cy, rx: 1.3, ry: 1.9, fill: "#000" }, m.cx))
859
871
  ] })
860
872
  ] }),
861
873
  /* @__PURE__ */ E("g", { transform: "rotate(-8 16 16)", children: [
862
- /* @__PURE__ */ s("path", { className: "ok-logo__ink", d: ro, mask: o ? `url(#${h})` : void 0 }),
874
+ /* @__PURE__ */ s("path", { className: "ok-logo__ink", d: uo, mask: o ? `url(#${h})` : void 0 }),
863
875
  /* @__PURE__ */ E("g", { className: "ok-logo__snout", children: [
864
- /* @__PURE__ */ s("rect", { className: "ok-logo__accent", ...hn, mask: o ? `url(#${u})` : void 0 }),
876
+ /* @__PURE__ */ s("rect", { className: "ok-logo__accent", ...bn, mask: o ? `url(#${u})` : void 0 }),
865
877
  !o && ua.map((m) => /* @__PURE__ */ s("ellipse", { className: "ok-logo__nostril", cx: m.cx, cy: m.cy, rx: 1.3, ry: 1.9 }, m.cx))
866
878
  ] })
867
879
  ] })
@@ -870,8 +882,8 @@ const ro = "M10 3H18A7 7 0 0 1 25 10V18A7 7 0 0 1 18 25H5A2 2 0 0 1 3 23V10A7 7
870
882
  ]
871
883
  }
872
884
  );
873
- }), an = "M3.6 8.4l2.9 2.9 5.9-6.4", oo = "M4.5 4.5l7 7M11.5 4.5l-7 7";
874
- function rn(t, e) {
885
+ }), on = "M3.6 8.4l2.9 2.9 5.9-6.4", fo = "M4.5 4.5l7 7M11.5 4.5l-7 7";
886
+ function sn(t, e) {
875
887
  const n = { ArrowRight: 1, ArrowDown: 1, ArrowLeft: -1, ArrowUp: -1 }[t.key], a = t.key === "Home" ? "first" : t.key === "End" ? "last" : null;
876
888
  if (!n && !a) return null;
877
889
  const r = Array.from(t.currentTarget.querySelectorAll(e)).filter(
@@ -882,7 +894,7 @@ function rn(t, e) {
882
894
  const o = r.indexOf(document.activeElement);
883
895
  return r[(o + n + r.length) % r.length];
884
896
  }
885
- function Ln(t, e, n, a) {
897
+ function $n(t, e, n, a) {
886
898
  if (!He) return () => {
887
899
  };
888
900
  const r = e.pointerId;
@@ -912,15 +924,15 @@ function Ln(t, e, n, a) {
912
924
  }
913
925
  return document.addEventListener("pointermove", l, !0), document.addEventListener("pointerup", i, !0), document.addEventListener("pointercancel", i, !0), document.addEventListener("pointerdown", i, !0), window.addEventListener("blur", i), i;
914
926
  }
915
- function so(t) {
927
+ function po(t) {
916
928
  const e = String(t);
917
929
  if (e.includes("e-")) return parseInt(e.split("e-")[1], 10);
918
930
  const n = e.indexOf(".");
919
931
  return n < 0 ? 0 : e.length - n - 1;
920
932
  }
921
- $n["zh-CN"].button.status;
922
- const Va = Le({}), lo = D(function(e, n) {
923
- const a = we(Va), {
933
+ Jt["zh-CN"].button.status;
934
+ const qa = $e({}), ho = D(function(e, n) {
935
+ const a = we(qa), {
924
936
  variant: r = a.variant ?? "soft",
925
937
  size: o = a.size ?? "md",
926
938
  loading: l,
@@ -942,9 +954,9 @@ const Va = Le({}), lo = D(function(e, n) {
942
954
  onClick: M,
943
955
  "aria-disabled": S,
944
956
  ...T
945
- } = e, I = ve().messages.button.status, C = S === !0 || S === "true", N = !!b || C, y = l ? "loading" : i ? "success" : c ? "error" : void 0, A = l !== void 0 || i !== void 0 || c !== void 0, [z, $] = ie(""), F = y ? (d == null ? void 0 : d[y]) ?? I[y] : null;
957
+ } = e, I = ve().messages.button.status, C = S === !0 || S === "true", N = !!b || C, y = l ? "loading" : i ? "success" : c ? "error" : void 0, A = l !== void 0 || i !== void 0 || c !== void 0, [z, L] = ie(""), F = y ? (d == null ? void 0 : d[y]) ?? I[y] : null;
946
958
  de(() => {
947
- F && $(F);
959
+ F && L(F);
948
960
  }, [F]);
949
961
  const O = (V) => {
950
962
  if (N || y === "loading" || y === "success") {
@@ -967,8 +979,8 @@ const Va = Le({}), lo = D(function(e, n) {
967
979
  ] }),
968
980
  A && /* @__PURE__ */ E("span", { className: "ok-btn__status", "aria-hidden": "true", children: [
969
981
  /* @__PURE__ */ s(Fa, { className: "ok-tail" }),
970
- /* @__PURE__ */ s("svg", { className: "ok-btn__check", viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: an, pathLength: 1 }) }),
971
- /* @__PURE__ */ s("svg", { className: "ok-btn__cross", viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: oo, pathLength: 1 }) })
982
+ /* @__PURE__ */ s("svg", { className: "ok-btn__check", viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: on, pathLength: 1 }) }),
983
+ /* @__PURE__ */ s("svg", { className: "ok-btn__cross", viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: fo, pathLength: 1 }) })
972
984
  ] })
973
985
  ] }), U = A && /* @__PURE__ */ s(At, { children: /* @__PURE__ */ s(Ra, { role: "status", "aria-live": "polite", "aria-atomic": "true", "data-ok-button-status": "", children: z }) });
974
986
  return m !== void 0 ? /* @__PURE__ */ E(Pe, { children: [
@@ -1009,7 +1021,7 @@ const Va = Le({}), lo = D(function(e, n) {
1009
1021
  ),
1010
1022
  U
1011
1023
  ] });
1012
- }), ml = D(function({ size: e, variant: n, disabled: a, attached: r, orientation: o = "horizontal", block: l, className: i, children: c, ...d }, f) {
1024
+ }), _l = D(function({ size: e, variant: n, disabled: a, attached: r, orientation: o = "horizontal", block: l, className: i, children: c, ...d }, f) {
1013
1025
  return /* @__PURE__ */ s(
1014
1026
  "div",
1015
1027
  {
@@ -1017,10 +1029,10 @@ const Va = Le({}), lo = D(function(e, n) {
1017
1029
  role: "group",
1018
1030
  className: R("ok-btn-group", r && "ok-btn-group--attached", o === "vertical" && "ok-btn-group--vertical", l && "ok-btn-group--block", i),
1019
1031
  ...d,
1020
- children: /* @__PURE__ */ s(Va.Provider, { value: { size: e, variant: n, disabled: a }, children: c })
1032
+ children: /* @__PURE__ */ s(qa.Provider, { value: { size: e, variant: n, disabled: a }, children: c })
1021
1033
  }
1022
1034
  );
1023
- }), bl = D(function({ pressed: e, defaultPressed: n = !1, onChange: a, onClick: r, ...o }, l) {
1035
+ }), xl = D(function({ pressed: e, defaultPressed: n = !1, onChange: a, onClick: r, ...o }, l) {
1024
1036
  const [i, c] = ue(e, n, a), d = {
1025
1037
  ...o,
1026
1038
  "aria-pressed": i,
@@ -1028,9 +1040,9 @@ const Va = Le({}), lo = D(function(e, n) {
1028
1040
  r == null || r(f), f.defaultPrevented || c(!i);
1029
1041
  }
1030
1042
  };
1031
- return /* @__PURE__ */ s(lo, { ref: l, ...d });
1043
+ return /* @__PURE__ */ s(ho, { ref: l, ...d });
1032
1044
  });
1033
- function vl(t = {}) {
1045
+ function Nl(t = {}) {
1034
1046
  const { successHold: e = 1200, errorHold: n = 1200, labels: a } = t, [r, o] = ie("idle"), l = B(0), i = B(void 0), c = B({ successHold: e, errorHold: n });
1035
1047
  c.current = { successHold: e, errorHold: n }, de(() => () => {
1036
1048
  l.current++, clearTimeout(i.current);
@@ -1063,7 +1075,7 @@ function vl(t = {}) {
1063
1075
  );
1064
1076
  return { state: r, run: f, reset: d, buttonProps: h };
1065
1077
  }
1066
- const Ge = Le(null);
1078
+ const Ge = $e(null);
1067
1079
  function Te(t, e = !0) {
1068
1080
  const n = we(Ge), a = `${t["aria-describedby"] ?? ""} ${(n == null ? void 0 : n.describedBy) ?? ""}`.split(/\s+/).filter(Boolean), r = Array.from(new Set(a)).join(" ") || void 0;
1069
1081
  return {
@@ -1075,7 +1087,7 @@ function Te(t, e = !0) {
1075
1087
  labelledBy: t["aria-labelledby"] ?? (!e && !t["aria-label"] ? n == null ? void 0 : n.labelId : void 0)
1076
1088
  };
1077
1089
  }
1078
- const Wa = D(function({
1090
+ const Va = D(function({
1079
1091
  value: e,
1080
1092
  defaultValue: n = "",
1081
1093
  onChange: a,
@@ -1101,7 +1113,7 @@ const Wa = D(function({
1101
1113
  "aria-describedby": S,
1102
1114
  ...T
1103
1115
  }, I) {
1104
- const C = Te({ id: _, disabled: k, required: M, invalid: b, "aria-describedby": S }), [N, y] = ue(e, n, a), { messages: A } = ve(), z = h ?? A.common.clear, [$, F] = ie(!1), O = B(null), P = m === "password", H = N !== "", U = (V) => {
1116
+ const C = Te({ id: _, disabled: k, required: M, invalid: b, "aria-describedby": S }), [N, y] = ue(e, n, a), { messages: A } = ve(), z = h ?? A.common.clear, [L, F] = ie(!1), O = B(null), P = m === "password", H = N !== "", U = (V) => {
1105
1117
  var j;
1106
1118
  V.target.closest("input, button, a, select") || (V.preventDefault(), (j = O.current) == null || j.focus());
1107
1119
  };
@@ -1123,7 +1135,7 @@ const Wa = D(function({
1123
1135
  ...T,
1124
1136
  ref: Ne(I, O),
1125
1137
  id: C.id,
1126
- type: P && $ ? "text" : m,
1138
+ type: P && L ? "text" : m,
1127
1139
  value: N,
1128
1140
  disabled: C.disabled,
1129
1141
  required: C.required || void 0,
@@ -1153,10 +1165,10 @@ const Wa = D(function({
1153
1165
  type: "button",
1154
1166
  className: "ok-input__toggle ok-focusable",
1155
1167
  "aria-label": A.input.showPassword,
1156
- "aria-pressed": $,
1168
+ "aria-pressed": L,
1157
1169
  disabled: C.disabled,
1158
1170
  onClick: () => F((V) => !V),
1159
- children: /* @__PURE__ */ s(ke, { children: $ ? /* @__PURE__ */ s("path", { d: "M3 3l14 14M8.3 5.200A7.600 7.600 0 0 1 10 5c4.200 0 6.800 3.600 7.500 5-.3.600-1 1.700-2.100 2.700M12.700 14.400A7 7 0 0 1 10 15c-4.200 0-6.800-3.600-7.500-5 .4-.8 1.400-2.300 3-3.400M8.200 8.300a2.500 2.500 0 0 0 3.500 3.500" }) : /* @__PURE__ */ E(Pe, { children: [
1171
+ children: /* @__PURE__ */ s(ke, { children: L ? /* @__PURE__ */ s("path", { d: "M3 3l14 14M8.3 5.200A7.600 7.600 0 0 1 10 5c4.200 0 6.800 3.600 7.500 5-.3.600-1 1.700-2.100 2.700M12.700 14.400A7 7 0 0 1 10 15c-4.200 0-6.800-3.600-7.500-5 .4-.8 1.400-2.300 3-3.400M8.200 8.300a2.500 2.500 0 0 0 3.500 3.500" }) : /* @__PURE__ */ E(Pe, { children: [
1160
1172
  /* @__PURE__ */ s("path", { d: "M2.500 10C3.200 8.600 5.800 5 10 5s6.800 3.600 7.500 5c-.7 1.400-3.300 5-7.500 5s-6.800-3.600-7.500-5z" }),
1161
1173
  /* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "2.500" })
1162
1174
  ] }) })
@@ -1166,7 +1178,7 @@ const Wa = D(function({
1166
1178
  ]
1167
1179
  }
1168
1180
  );
1169
- }), gl = D(function({
1181
+ }), wl = D(function({
1170
1182
  value: e,
1171
1183
  defaultValue: n = "",
1172
1184
  onChange: a,
@@ -1212,10 +1224,10 @@ const Wa = D(function({
1212
1224
  onChange: (M) => x(M.target.value)
1213
1225
  }
1214
1226
  );
1215
- }), kl = D(function({ value: e, defaultValue: n = "", onChange: a, onSearch: r, onKeyDown: o, pill: l = !0, clearable: i = !0, placeholder: c, ...d }, f) {
1227
+ }), Ml = D(function({ value: e, defaultValue: n = "", onChange: a, onSearch: r, onKeyDown: o, pill: l = !0, clearable: i = !0, placeholder: c, ...d }, f) {
1216
1228
  const { messages: h } = ve(), u = c ?? h.searchInput.placeholder, [p, b] = ue(e, n, a);
1217
1229
  return /* @__PURE__ */ s(
1218
- Wa,
1230
+ Va,
1219
1231
  {
1220
1232
  ref: f,
1221
1233
  type: "search",
@@ -1233,7 +1245,7 @@ const Wa = D(function({
1233
1245
  ...d
1234
1246
  }
1235
1247
  );
1236
- }), io = 400, co = 60, yl = D(function({
1248
+ }), mo = 400, bo = 60, Sl = D(function({
1237
1249
  value: e,
1238
1250
  defaultValue: n,
1239
1251
  onChange: a,
@@ -1261,7 +1273,7 @@ const Wa = D(function({
1261
1273
  onFocus: I,
1262
1274
  ...C
1263
1275
  }, N) {
1264
- const y = Te({ id: g, disabled: x, required: _, invalid: h, "aria-describedby": M }), { messages: A } = ve(), z = u ?? A.numberInput.decrement, $ = p ?? A.numberInput.increment, F = c ?? so(l), O = (K) => Ce(+K.toFixed(F), r, o), [P, H] = ue(e, O(n ?? 0), a), [U, V] = ie(null), [j, le] = ie(!1), J = B(null), L = y.disabled || !!k, q = B(P);
1276
+ const y = Te({ id: g, disabled: x, required: _, invalid: h, "aria-describedby": M }), { messages: A } = ve(), z = u ?? A.numberInput.decrement, L = p ?? A.numberInput.increment, F = c ?? po(l), O = (K) => Ce(+K.toFixed(F), r, o), [P, H] = ue(e, O(n ?? 0), a), [U, V] = ie(null), [j, le] = ie(!1), J = B(null), $ = y.disabled || !!k, q = B(P);
1265
1277
  q.current = P;
1266
1278
  const G = B(H);
1267
1279
  G.current = H;
@@ -1281,11 +1293,11 @@ const Wa = D(function({
1281
1293
  de(() => X, []);
1282
1294
  const W = B(!1), oe = (K) => ({
1283
1295
  onPointerDown: (Y) => {
1284
- Y.button || L || (W.current = !0, ae(), X(), re(K) && (pe.current.delay = setTimeout(() => {
1296
+ Y.button || $ || (W.current = !0, ae(), X(), re(K) && (pe.current.delay = setTimeout(() => {
1285
1297
  pe.current.every = setInterval(() => {
1286
1298
  re(K) || X();
1287
- }, co);
1288
- }, io)));
1299
+ }, bo);
1300
+ }, mo)));
1289
1301
  },
1290
1302
  onPointerUp: X,
1291
1303
  onPointerCancel: () => {
@@ -1299,10 +1311,10 @@ const Wa = D(function({
1299
1311
  W.current = !1;
1300
1312
  return;
1301
1313
  }
1302
- L || (ae(), re(K));
1314
+ $ || (ae(), re(K));
1303
1315
  }
1304
1316
  }), he = (K) => {
1305
- if (S == null || S(K), K.defaultPrevented || L) return;
1317
+ if (S == null || S(K), K.defaultPrevented || $) return;
1306
1318
  const Y = i ?? l * 10, fe = {
1307
1319
  ArrowUp: () => re(1),
1308
1320
  ArrowDown: () => re(-1),
@@ -1324,7 +1336,7 @@ const Wa = D(function({
1324
1336
  "data-invalid": y.invalid ? "" : void 0,
1325
1337
  "data-disabled": y.disabled ? "" : void 0,
1326
1338
  children: [
1327
- /* @__PURE__ */ s("button", { type: "button", className: "ok-stepper__btn", tabIndex: -1, "aria-label": z, "aria-disabled": ce || L, ...oe(-1), children: /* @__PURE__ */ s(ke, { name: "minus" }) }),
1339
+ /* @__PURE__ */ s("button", { type: "button", className: "ok-stepper__btn", tabIndex: -1, "aria-label": z, "aria-disabled": ce || $, ...oe(-1), children: /* @__PURE__ */ s(ke, { name: "minus" }) }),
1328
1340
  /* @__PURE__ */ s(
1329
1341
  "input",
1330
1342
  {
@@ -1356,11 +1368,11 @@ const Wa = D(function({
1356
1368
  onKeyDown: he
1357
1369
  }
1358
1370
  ),
1359
- /* @__PURE__ */ s("button", { type: "button", className: "ok-stepper__btn", tabIndex: -1, "aria-label": $, "aria-disabled": Z || L, ...oe(1), children: /* @__PURE__ */ s(ke, { name: "plus" }) })
1371
+ /* @__PURE__ */ s("button", { type: "button", className: "ok-stepper__btn", tabIndex: -1, "aria-label": L, "aria-disabled": Z || $, ...oe(1), children: /* @__PURE__ */ s(ke, { name: "plus" }) })
1360
1372
  ]
1361
1373
  }
1362
1374
  );
1363
- }), _l = D(function({
1375
+ }), Al = D(function({
1364
1376
  length: e = 6,
1365
1377
  value: n,
1366
1378
  defaultValue: a = "",
@@ -1402,7 +1414,7 @@ const Wa = D(function({
1402
1414
  H && U.length === 2 && (U = U.startsWith(H) ? U.slice(1) : U.slice(0, 1)), y(O, U);
1403
1415
  }, z = (O, P) => {
1404
1416
  P.key === "Backspace" && !S[O] && O > 0 ? (P.preventDefault(), T(S.slice(0, O - 1) + S.slice(O)), N(O - 1)) : P.key === "ArrowLeft" ? (P.preventDefault(), N(O - 1)) : P.key === "ArrowRight" ? (P.preventDefault(), N(O + 1)) : P.key === "Home" ? (P.preventDefault(), N(0)) : P.key === "End" && (P.preventDefault(), N(Math.min(S.length, e - 1)));
1405
- }, $ = (O, P) => {
1417
+ }, L = (O, P) => {
1406
1418
  P.preventDefault(), y(O, P.clipboardData.getData("text"));
1407
1419
  }, F = k.labelledBy ? void 0 : v ?? M.pinInput.label;
1408
1420
  return /* @__PURE__ */ E(
@@ -1440,7 +1452,7 @@ const Wa = D(function({
1440
1452
  value: S[P] ?? "",
1441
1453
  onChange: (H) => A(P, H.target.value),
1442
1454
  onKeyDown: (H) => z(P, H),
1443
- onPaste: (H) => $(P, H),
1455
+ onPaste: (H) => L(P, H),
1444
1456
  onFocus: (H) => H.target.select()
1445
1457
  },
1446
1458
  P
@@ -1449,7 +1461,7 @@ const Wa = D(function({
1449
1461
  ]
1450
1462
  }
1451
1463
  );
1452
- }), uo = /* @__PURE__ */ new Set(["input", "select", "textarea"]), xl = D(function({ label: e, hint: n, error: a, invalid: r, required: o = !1, disabled: l = !1, id: i, orientation: c = "vertical", className: d, children: f, ...h }, u) {
1464
+ }), vo = /* @__PURE__ */ new Set(["input", "select", "textarea"]), Cl = D(function({ label: e, hint: n, error: a, invalid: r, required: o = !1, disabled: l = !1, id: i, orientation: c = "vertical", className: d, children: f, ...h }, u) {
1453
1465
  const p = Me(), b = i ?? `ok-field-${p}`, m = `${b}-label`, v = `${b}-hint`, w = `${b}-error`, g = a != null && a !== !1 && a !== "", x = r ?? g, _ = [n != null && v, g && w].filter(Boolean).join(" ") || void 0, k = Ae(
1454
1466
  () => ({ id: b, labelId: e != null ? m : void 0, describedBy: _, invalid: x, required: o, disabled: l }),
1455
1467
  [b, e != null, m, _, x, o, l]
@@ -1467,9 +1479,9 @@ const Wa = D(function({
1467
1479
  };
1468
1480
  let I;
1469
1481
  if (typeof f == "function") I = f(T);
1470
- else if (Bt(f) && typeof f.type == "string" && uo.has(f.type)) {
1482
+ else if (Bt(f) && typeof f.type == "string" && vo.has(f.type)) {
1471
1483
  const C = f, N = C.props;
1472
- I = Qt(C, {
1484
+ I = tn(C, {
1473
1485
  ...T,
1474
1486
  id: N.id ?? b,
1475
1487
  "aria-describedby": [N["aria-describedby"], _].filter(Boolean).join(" ") || void 0,
@@ -1511,19 +1523,19 @@ const Wa = D(function({
1511
1523
  ]
1512
1524
  }
1513
1525
  );
1514
- }), Nl = D(function({ legend: e, hint: n, className: a, children: r, "aria-describedby": o, ...l }, i) {
1526
+ }), Tl = D(function({ legend: e, hint: n, className: a, children: r, "aria-describedby": o, ...l }, i) {
1515
1527
  const c = `ok-fieldset-${Me()}-hint`;
1516
1528
  return /* @__PURE__ */ E("fieldset", { ref: i, className: R("ok-fieldset", a), "aria-describedby": [o, n != null && c].filter(Boolean).join(" ") || void 0, ...l, children: [
1517
1529
  e != null && /* @__PURE__ */ s("legend", { className: "ok-fieldset__legend", children: e }),
1518
1530
  n != null && /* @__PURE__ */ s("span", { className: "ok-fieldset__hint", id: c, children: n }),
1519
1531
  /* @__PURE__ */ s("div", { className: "ok-fieldset__body", children: r })
1520
1532
  ] });
1521
- }), wl = D(function({ required: e, disabled: n, size: a = "sm", className: r, children: o, ...l }, i) {
1533
+ }), El = D(function({ required: e, disabled: n, size: a = "sm", className: r, children: o, ...l }, i) {
1522
1534
  return /* @__PURE__ */ E("label", { ref: i, className: R("ok-label", a === "md" && "ok-label--md", r), "data-disabled": n ? "" : void 0, ...l, children: [
1523
1535
  o,
1524
1536
  e && /* @__PURE__ */ s("span", { className: "ok-label__required", "aria-hidden": "true", children: "*" })
1525
1537
  ] });
1526
- }), Ml = D(function({ size: e = "md", onSubmit: n, className: a, children: r, ...o }, l) {
1538
+ }), Pl = D(function({ size: e = "md", onSubmit: n, className: a, children: r, ...o }, l) {
1527
1539
  return /* @__PURE__ */ s(
1528
1540
  "form",
1529
1541
  {
@@ -1536,9 +1548,9 @@ const Wa = D(function({
1536
1548
  children: r
1537
1549
  }
1538
1550
  );
1539
- }), Sl = D(function({ align: e = "start", stack: n = !0, className: a, ...r }, o) {
1551
+ }), Ll = D(function({ align: e = "start", stack: n = !0, className: a, ...r }, o) {
1540
1552
  return /* @__PURE__ */ s("div", { ref: o, className: R("ok-form__actions", e !== "start" && `ok-form__actions--${e}`, n && "ok-form__actions--stack", a), ...r });
1541
- }), Ua = Le(null), Al = D(function({
1553
+ }), Wa = $e(null), $l = D(function({
1542
1554
  checked: e,
1543
1555
  defaultChecked: n = !1,
1544
1556
  onChange: a,
@@ -1558,7 +1570,7 @@ const Wa = D(function({
1558
1570
  "aria-describedby": w,
1559
1571
  ...g
1560
1572
  }, x) {
1561
- const _ = we(Ua), k = Te({ id: p, disabled: b ?? ((_ == null ? void 0 : _.disabled) || void 0), required: m, invalid: i ?? ((_ == null ? void 0 : _.invalid) || void 0), "aria-describedby": w }), M = !!_ && o !== void 0, [S, T] = ue(e, n, a), I = M ? _.value.includes(o) : S, C = B(null);
1573
+ const _ = we(Wa), k = Te({ id: p, disabled: b ?? ((_ == null ? void 0 : _.disabled) || void 0), required: m, invalid: i ?? ((_ == null ? void 0 : _.invalid) || void 0), "aria-describedby": w }), M = !!_ && o !== void 0, [S, T] = ue(e, n, a), I = M ? _.value.includes(o) : S, C = B(null);
1562
1574
  return de(() => {
1563
1575
  C.current && (C.current.indeterminate = r);
1564
1576
  }, [r, I]), /* @__PURE__ */ E(
@@ -1589,7 +1601,7 @@ const Wa = D(function({
1589
1601
  }
1590
1602
  ),
1591
1603
  /* @__PURE__ */ E("span", { className: "ok-check__box", "aria-hidden": "true", children: [
1592
- /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { className: "ok-check__tick", d: an, pathLength: 1 }) }),
1604
+ /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { className: "ok-check__tick", d: on, pathLength: 1 }) }),
1593
1605
  /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { className: "ok-check__dash", d: "M4 8h8", pathLength: 1 }) })
1594
1606
  ] }),
1595
1607
  l != null ? /* @__PURE__ */ E("span", { className: "ok-check__text", children: [
@@ -1599,9 +1611,9 @@ const Wa = D(function({
1599
1611
  ]
1600
1612
  }
1601
1613
  );
1602
- }), fo = [], Cl = D(function({
1614
+ }), go = [], Il = D(function({
1603
1615
  value: e,
1604
- defaultValue: n = fo,
1616
+ defaultValue: n = go,
1605
1617
  onChange: a,
1606
1618
  name: r,
1607
1619
  orientation: o = "vertical",
@@ -1628,11 +1640,11 @@ const Wa = D(function({
1628
1640
  "aria-describedby": v.describedBy,
1629
1641
  "aria-invalid": v.invalid || void 0,
1630
1642
  ...b,
1631
- children: /* @__PURE__ */ s(Ge.Provider, { value: null, children: /* @__PURE__ */ s(Ua.Provider, { value: { value: w, toggle: x, name: r, disabled: v.disabled, invalid: v.invalid }, children: d }) })
1643
+ children: /* @__PURE__ */ s(Ge.Provider, { value: null, children: /* @__PURE__ */ s(Wa.Provider, { value: { value: w, toggle: x, name: r, disabled: v.disabled, invalid: v.invalid }, children: d }) })
1632
1644
  }
1633
1645
  );
1634
- }), Ga = Le(null), Tl = D(function({ value: e, onChange: n, description: a, children: r, className: o, style: l, rootClassName: i, rootStyle: c, name: d, checked: f, disabled: h, required: u, ...p }, b) {
1635
- const m = we(Ga);
1646
+ }), Ua = $e(null), Rl = D(function({ value: e, onChange: n, description: a, children: r, className: o, style: l, rootClassName: i, rootStyle: c, name: d, checked: f, disabled: h, required: u, ...p }, b) {
1647
+ const m = we(Ua);
1636
1648
  return /* @__PURE__ */ E("label", { className: R("ok-radio", i, o), style: { ...c, ...l }, "data-described": a != null ? "" : void 0, children: [
1637
1649
  /* @__PURE__ */ s(
1638
1650
  "input",
@@ -1656,7 +1668,7 @@ const Wa = D(function({
1656
1668
  /* @__PURE__ */ s("span", { className: "ok-radio__desc", children: a })
1657
1669
  ] }) : r
1658
1670
  ] });
1659
- }), El = D(function({
1671
+ }), Dl = D(function({
1660
1672
  value: e,
1661
1673
  defaultValue: n = null,
1662
1674
  onChange: a,
@@ -1692,10 +1704,10 @@ const Wa = D(function({
1692
1704
  "aria-invalid": w.invalid || void 0,
1693
1705
  "data-invalid": w.invalid ? "" : void 0,
1694
1706
  ...m,
1695
- children: /* @__PURE__ */ s(Ge.Provider, { value: null, children: /* @__PURE__ */ s(Ga.Provider, { value: { value: x, select: _, name: r ?? g, disabled: w.disabled, required: w.required }, children: f }) })
1707
+ children: /* @__PURE__ */ s(Ge.Provider, { value: null, children: /* @__PURE__ */ s(Ua.Provider, { value: { value: x, select: _, name: r ?? g, disabled: w.disabled, required: w.required }, children: f }) })
1696
1708
  }
1697
1709
  );
1698
- }), Pl = D(function({ checked: e, defaultChecked: n = !1, onChange: a, labelPosition: r = "end", children: o, className: l, style: i, rootClassName: c, rootStyle: d, id: f, disabled: h, required: u, "aria-describedby": p, ...b }, m) {
1710
+ }), Ol = D(function({ checked: e, defaultChecked: n = !1, onChange: a, labelPosition: r = "end", children: o, className: l, style: i, rootClassName: c, rootStyle: d, id: f, disabled: h, required: u, "aria-describedby": p, ...b }, m) {
1699
1711
  const v = Te({ id: f, disabled: h, required: u, "aria-describedby": p }), [w, g] = ue(e, n, a), x = o != null && /* @__PURE__ */ s("span", { className: "ok-switch__label", children: o });
1700
1712
  return /* @__PURE__ */ E("label", { className: R("ok-switch", c, l), style: { ...d, ...i }, "data-label-position": r, children: [
1701
1713
  r === "start" && x,
@@ -1721,11 +1733,11 @@ const Wa = D(function({
1721
1733
  function Yt(t, e, n, a) {
1722
1734
  return +Ce(a === "any" ? t : Math.round((t - e) / a) * a + e, e, n).toFixed(6);
1723
1735
  }
1724
- function Ya(t, e, n) {
1736
+ function Ga(t, e, n) {
1725
1737
  const a = n === "any" ? (e - t) / 100 : n;
1726
1738
  return { small: a, big: Math.max(a, (e - t) / 10) };
1727
1739
  }
1728
- const $l = D(function({
1740
+ const Bl = D(function({
1729
1741
  value: e,
1730
1742
  defaultValue: n,
1731
1743
  onChange: a,
@@ -1750,12 +1762,12 @@ const $l = D(function({
1750
1762
  "aria-describedby": M,
1751
1763
  ...S
1752
1764
  }, T) {
1753
- const I = Te({ id: w, disabled: p, "aria-describedby": M, "aria-labelledby": k, "aria-label": _ }, !1), C = c === "any", N = (W) => Yt(W, l, i, c), [y, A] = ue(e, N(n ?? l), a), z = N(y), $ = C ? 1 / 0 : Math.round((i - l) / c), F = $ <= 12, O = u ?? (C ? 0 : void 0), P = (W) => h ? h(W) : O == null ? String(W) : W.toFixed(O), H = B(null), U = B(null), [V, j] = ie(!1), [le, J] = ie(!1), L = B(z);
1754
- L.current = z;
1765
+ const I = Te({ id: w, disabled: p, "aria-describedby": M, "aria-labelledby": k, "aria-label": _ }, !1), C = c === "any", N = (W) => Yt(W, l, i, c), [y, A] = ue(e, N(n ?? l), a), z = N(y), L = C ? 1 / 0 : Math.round((i - l) / c), F = L <= 12, O = u ?? (C ? 0 : void 0), P = (W) => h ? h(W) : O == null ? String(W) : W.toFixed(O), H = B(null), U = B(null), [V, j] = ie(!1), [le, J] = ie(!1), $ = B(z);
1766
+ $.current = z;
1755
1767
  const q = Se((W) => {
1756
1768
  const oe = N(W);
1757
- L.current = oe, A(oe);
1758
- }), G = Se(() => r == null ? void 0 : r(L.current)), ae = Se((W) => o == null ? void 0 : o(W)), Q = B(null);
1769
+ $.current = oe, A(oe);
1770
+ }), G = Se(() => r == null ? void 0 : r($.current)), ae = Se((W) => o == null ? void 0 : o(W)), Q = B(null);
1759
1771
  de(() => () => {
1760
1772
  var W;
1761
1773
  return (W = Q.current) == null ? void 0 : W.call(Q);
@@ -1774,19 +1786,19 @@ const $l = D(function({
1774
1786
  te = W.clientX - (Y.left + Y.width / 2);
1775
1787
  }
1776
1788
  const Z = (Y) => {
1777
- const fe = oe.getBoundingClientRect(), me = ce ? ce.offsetWidth : 0, $e = Ce((Y - te - fe.left - me / 2) / (fe.width - me || 1), 0, 1);
1778
- q(l + $e * (i - l));
1789
+ const fe = oe.getBoundingClientRect(), me = ce ? ce.offsetWidth : 0, Le = Ce((Y - te - fe.left - me / 2) / (fe.width - me || 1), 0, 1);
1790
+ q(l + Le * (i - l));
1779
1791
  };
1780
- Z(W.clientX), Q.current = Ln(oe, W, (Y) => {
1792
+ Z(W.clientX), Q.current = $n(oe, W, (Y) => {
1781
1793
  !F && Math.abs(Y.clientX - he) > 2 && J(!0), Z(Y.clientX);
1782
1794
  }, () => {
1783
1795
  Q.current = null, j(!1), J(!1), ae(!1), G();
1784
1796
  });
1785
1797
  }, pe = (W) => {
1786
1798
  if (g == null || g(W), W.defaultPrevented || I.disabled) return;
1787
- const { small: oe, big: he } = Ya(l, i, c), te = { ArrowRight: oe, ArrowUp: oe, ArrowLeft: -oe, ArrowDown: -oe, PageUp: he, PageDown: -he }[W.key];
1799
+ const { small: oe, big: he } = Ga(l, i, c), te = { ArrowRight: oe, ArrowUp: oe, ArrowLeft: -oe, ArrowDown: -oe, PageUp: he, PageDown: -he }[W.key];
1788
1800
  let ce;
1789
- if (te) ce = L.current + te;
1801
+ if (te) ce = $.current + te;
1790
1802
  else if (W.key === "Home") ce = l;
1791
1803
  else if (W.key === "End") ce = i;
1792
1804
  else return;
@@ -1818,13 +1830,13 @@ const $l = D(function({
1818
1830
  ...S,
1819
1831
  children: [
1820
1832
  /* @__PURE__ */ s("span", { className: "ok-slider__track", children: /* @__PURE__ */ s("span", { className: "ok-slider__fill" }) }),
1821
- d && F && /* @__PURE__ */ s("span", { className: "ok-slider__ticks", "aria-hidden": "true", children: Array.from({ length: $ + 1 }, (W, oe) => /* @__PURE__ */ s("i", { style: { left: `${oe / $ * 100}%` } }, oe)) }),
1833
+ d && F && /* @__PURE__ */ s("span", { className: "ok-slider__ticks", "aria-hidden": "true", children: Array.from({ length: L + 1 }, (W, oe) => /* @__PURE__ */ s("i", { style: { left: `${oe / L * 100}%` } }, oe)) }),
1822
1834
  /* @__PURE__ */ s("span", { className: "ok-slider__thumb", ref: U, children: f && /* @__PURE__ */ s("span", { className: "ok-slider__bubble", "aria-hidden": "true", children: P(z) }) }),
1823
1835
  b && /* @__PURE__ */ s("input", { type: "hidden", name: b, value: z })
1824
1836
  ]
1825
1837
  }
1826
1838
  );
1827
- }), Ll = D(function({
1839
+ }), Fl = D(function({
1828
1840
  value: e,
1829
1841
  defaultValue: n,
1830
1842
  onChange: a,
@@ -1849,8 +1861,8 @@ const $l = D(function({
1849
1861
  "aria-describedby": M,
1850
1862
  ...S
1851
1863
  }, T) {
1852
- const I = Te({ id: g, disabled: p, "aria-describedby": M, "aria-labelledby": k, "aria-label": _ }, !1), { messages: C } = ve(), N = b ?? C.rangeSlider.thumbs, y = c === "any", [A, z] = ue(e, n ?? [l, i], a), $ = Yt(Math.min(A[0], A[1]), l, i, c), F = Yt(Math.max(A[0], A[1]), l, i, c), P = (y ? 1 / 0 : Math.round((i - l) / c)) <= 12, H = u ?? (y ? 0 : void 0), U = (te) => h ? h(te) : H == null ? String(te) : te.toFixed(H), V = B(null), j = B([null, null]), [le, J] = ie(null), [L, q] = ie(!1), G = B([$, F]);
1853
- G.current = [$, F];
1864
+ const I = Te({ id: g, disabled: p, "aria-describedby": M, "aria-labelledby": k, "aria-label": _ }, !1), { messages: C } = ve(), N = b ?? C.rangeSlider.thumbs, y = c === "any", [A, z] = ue(e, n ?? [l, i], a), L = Yt(Math.min(A[0], A[1]), l, i, c), F = Yt(Math.max(A[0], A[1]), l, i, c), P = (y ? 1 / 0 : Math.round((i - l) / c)) <= 12, H = u ?? (y ? 0 : void 0), U = (te) => h ? h(te) : H == null ? String(te) : te.toFixed(H), V = B(null), j = B([null, null]), [le, J] = ie(null), [$, q] = ie(!1), G = B([L, F]);
1865
+ G.current = [L, F];
1854
1866
  const ae = Se((te, ce) => {
1855
1867
  const [Z, K] = G.current, Y = Yt(ce, l, i, c), fe = te === 0 ? [Math.min(Y, K - d), K] : [Z, Math.max(Y, Z + d)];
1856
1868
  fe[te] = Ce(fe[te], l, i), !(fe[0] === Z && fe[1] === K) && (G.current = fe, z(fe));
@@ -1877,22 +1889,22 @@ const $l = D(function({
1877
1889
  const Ee = K(te.clientX, 0), [De, _e] = G.current;
1878
1890
  Y = Math.abs(Ee - De) <= Math.abs(Ee - _e) ? 0 : 1, De === _e && (Y = Ee < De ? 0 : 1);
1879
1891
  }
1880
- const me = Y, $e = te.clientX;
1881
- J(me), re(!0), (ze = j.current[me]) == null || ze.focus({ preventScroll: !0 }), ae(me, K(te.clientX, fe)), pe.current = Ln(ce, te, (Ee) => {
1882
- !P && Math.abs(Ee.clientX - $e) > 2 && q(!0), ae(me, K(Ee.clientX, fe));
1892
+ const me = Y, Le = te.clientX;
1893
+ J(me), re(!0), (ze = j.current[me]) == null || ze.focus({ preventScroll: !0 }), ae(me, K(te.clientX, fe)), pe.current = $n(ce, te, (Ee) => {
1894
+ !P && Math.abs(Ee.clientX - Le) > 2 && q(!0), ae(me, K(Ee.clientX, fe));
1883
1895
  }, () => {
1884
1896
  pe.current = null, J(null), q(!1), re(!1), Q();
1885
1897
  });
1886
1898
  }, W = (te, ce) => {
1887
1899
  if (I.disabled) return;
1888
- const { small: Z, big: K } = Ya(l, i, c), Y = { ArrowRight: Z, ArrowUp: Z, ArrowLeft: -Z, ArrowDown: -Z, PageUp: K, PageDown: -K }[ce.key];
1900
+ const { small: Z, big: K } = Ga(l, i, c), Y = { ArrowRight: Z, ArrowUp: Z, ArrowLeft: -Z, ArrowDown: -Z, PageUp: K, PageDown: -K }[ce.key];
1889
1901
  let fe;
1890
1902
  if (Y) fe = G.current[te] + Y;
1891
1903
  else if (ce.key === "Home") fe = l;
1892
1904
  else if (ce.key === "End") fe = i;
1893
1905
  else return;
1894
1906
  ce.preventDefault(), ae(te, fe), Q();
1895
- }, oe = i - l || 1, he = [$, F];
1907
+ }, oe = i - l || 1, he = [L, F];
1896
1908
  return /* @__PURE__ */ E(
1897
1909
  "div",
1898
1910
  {
@@ -1900,13 +1912,13 @@ const $l = D(function({
1900
1912
  id: I.id,
1901
1913
  role: "group",
1902
1914
  className: R("ok-slider ok-slider--range", v),
1903
- style: { "--a": ($ - l) / oe, "--b": (F - l) / oe, ...w },
1915
+ style: { "--a": (L - l) / oe, "--b": (F - l) / oe, ...w },
1904
1916
  "aria-label": _,
1905
1917
  "aria-labelledby": I.labelledBy,
1906
1918
  "aria-describedby": I.describedBy,
1907
1919
  "data-disabled": I.disabled ? "" : void 0,
1908
1920
  "data-active": le !== null ? "" : void 0,
1909
- "data-tracking": L ? "" : void 0,
1921
+ "data-tracking": $ ? "" : void 0,
1910
1922
  onPointerDown: X,
1911
1923
  ...S,
1912
1924
  children: [
@@ -1923,7 +1935,7 @@ const $l = D(function({
1923
1935
  "data-index": ce,
1924
1936
  "data-active": le === ce ? "" : void 0,
1925
1937
  "aria-label": N[ce],
1926
- "aria-valuemin": ce === 0 ? l : Math.min(i, $ + d),
1938
+ "aria-valuemin": ce === 0 ? l : Math.min(i, L + d),
1927
1939
  "aria-valuemax": ce === 0 ? Math.max(l, F - d) : i,
1928
1940
  "aria-valuenow": te,
1929
1941
  "aria-valuetext": U(te),
@@ -1935,14 +1947,14 @@ const $l = D(function({
1935
1947
  ce
1936
1948
  )),
1937
1949
  m && /* @__PURE__ */ E(Pe, { children: [
1938
- /* @__PURE__ */ s("input", { type: "hidden", name: m, value: $ }),
1950
+ /* @__PURE__ */ s("input", { type: "hidden", name: m, value: L }),
1939
1951
  /* @__PURE__ */ s("input", { type: "hidden", name: m, value: F })
1940
1952
  ] })
1941
1953
  ]
1942
1954
  }
1943
1955
  );
1944
1956
  });
1945
- function po({
1957
+ function ko({
1946
1958
  options: t,
1947
1959
  value: e,
1948
1960
  defaultValue: n,
@@ -1965,8 +1977,8 @@ function po({
1965
1977
  }, I = () => {
1966
1978
  const y = x.current, A = y == null ? void 0 : y.querySelector('[aria-checked="true"]');
1967
1979
  if (!y || !A || y.scrollWidth <= y.clientWidth) return;
1968
- const z = 3, $ = A.offsetLeft - z, F = A.offsetLeft + A.offsetWidth + z;
1969
- $ < y.scrollLeft ? y.scrollLeft = $ : F > y.scrollLeft + y.clientWidth && (y.scrollLeft = F - y.clientWidth);
1980
+ const z = 3, L = A.offsetLeft - z, F = A.offsetLeft + A.offsetWidth + z;
1981
+ L < y.scrollLeft ? y.scrollLeft = L : F > y.scrollLeft + y.clientWidth && (y.scrollLeft = F - y.clientWidth);
1970
1982
  };
1971
1983
  return xe(() => {
1972
1984
  T(), I(), S.current && Ie(_.current, { scale: ["1 1", "1.05 .86", "1 1"] }, { duration: 340, easing: Xe.out }), S.current = !0;
@@ -1999,7 +2011,7 @@ function po({
1999
2011
  "data-ready": k ? "" : void 0,
2000
2012
  onKeyDown: (y) => {
2001
2013
  if (u == null || u(y), y.defaultPrevented) return;
2002
- const A = rn(y, '[role="radio"]');
2014
+ const A = sn(y, '[role="radio"]');
2003
2015
  if (!A) return;
2004
2016
  A.focus();
2005
2017
  const z = A.dataset.value;
@@ -2034,8 +2046,8 @@ function po({
2034
2046
  }
2035
2047
  );
2036
2048
  }
2037
- const Il = D(po), Xa = Le(null), Rl = D(function({ value: e, selected: n, defaultSelected: a, onChange: r, onRemove: o, removeLabel: l, icon: i, disabled: c, className: d, children: f, onClick: h, ...u }, p) {
2038
- const { messages: b } = ve(), m = l ?? b.common.remove, v = we(Xa), w = !!v && v.selectable && e !== void 0, g = w || n !== void 0 || a !== void 0 || r !== void 0 && !o, [x, _] = ue(n, a ?? !1, r), k = w ? v.value.includes(e) : x, M = c ?? (v == null ? void 0 : v.disabled) ?? !1, S = B(null), [T, I] = ie(!1), C = R("ok-chip", d), N = i != null && /* @__PURE__ */ s("span", { className: "ok-chip__lead", children: i });
2049
+ const zl = D(ko), Ya = $e(null), Hl = D(function({ value: e, selected: n, defaultSelected: a, onChange: r, onRemove: o, removeLabel: l, icon: i, disabled: c, className: d, children: f, onClick: h, ...u }, p) {
2050
+ const { messages: b } = ve(), m = l ?? b.common.remove, v = we(Ya), w = !!v && v.selectable && e !== void 0, g = w || n !== void 0 || a !== void 0 || r !== void 0 && !o, [x, _] = ue(n, a ?? !1, r), k = w ? v.value.includes(e) : x, M = c ?? (v == null ? void 0 : v.disabled) ?? !1, S = B(null), [T, I] = ie(!1), C = R("ok-chip", d), N = i != null && /* @__PURE__ */ s("span", { className: "ok-chip__lead", children: i });
2039
2051
  if (g && !o)
2040
2052
  return /* @__PURE__ */ E(
2041
2053
  "button",
@@ -2051,7 +2063,7 @@ const Il = D(po), Xa = Le(null), Rl = D(function({ value: e, selected: n, defaul
2051
2063
  },
2052
2064
  ...u,
2053
2065
  children: [
2054
- /* @__PURE__ */ s("span", { className: "ok-chip__check", "aria-hidden": "true", children: /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: an, pathLength: 1 }) }) }),
2066
+ /* @__PURE__ */ s("span", { className: "ok-chip__check", "aria-hidden": "true", children: /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: on, pathLength: 1 }) }) }),
2055
2067
  N,
2056
2068
  /* @__PURE__ */ s("span", { className: "ok-chip__text", children: f })
2057
2069
  ]
@@ -2067,8 +2079,8 @@ const Il = D(po), Xa = Le(null), Rl = D(function({ value: e, selected: n, defaul
2067
2079
  /* @__PURE__ */ s("span", { className: "ok-chip__text", children: f }),
2068
2080
  o && /* @__PURE__ */ s("button", { type: "button", className: "ok-chip__remove ok-focusable", "aria-label": typeof f == "string" ? `${m} ${f}` : m, disabled: M, onClick: y, children: /* @__PURE__ */ s(ke, { name: "x" }) })
2069
2081
  ] });
2070
- }), ho = [], fa = "ok-chips-flip";
2071
- class mo extends Nr {
2082
+ }), yo = [], fa = "ok-chips-flip";
2083
+ class _o extends xr {
2072
2084
  getSnapshotBeforeUpdate() {
2073
2085
  const e = this.props.root.current;
2074
2086
  if (!e) return null;
@@ -2089,14 +2101,14 @@ class mo extends Nr {
2089
2101
  a.rects.forEach((i, c) => {
2090
2102
  var d;
2091
2103
  (d = c.dataset) != null && d.removing || l.set(c, i);
2092
- }), Tn(l, { id: fa });
2104
+ }), En(l, { id: fa });
2093
2105
  }
2094
2106
  render() {
2095
2107
  return this.props.children;
2096
2108
  }
2097
2109
  }
2098
- const Dl = D(function({ value: e, defaultValue: n, onChange: a, multiple: r = !0, disabled: o, className: l, children: i, id: c, "aria-label": d, "aria-labelledby": f, "aria-describedby": h, ...u }, p) {
2099
- const b = Te({ id: c, disabled: o, "aria-describedby": h, "aria-labelledby": f, "aria-label": d }, !1), m = e !== void 0 || n !== void 0 || a !== void 0, [v, w] = ue(e, n ?? ho, a), g = (_) => {
2110
+ const ql = D(function({ value: e, defaultValue: n, onChange: a, multiple: r = !0, disabled: o, className: l, children: i, id: c, "aria-label": d, "aria-labelledby": f, "aria-describedby": h, ...u }, p) {
2111
+ const b = Te({ id: c, disabled: o, "aria-describedby": h, "aria-labelledby": f, "aria-label": d }, !1), m = e !== void 0 || n !== void 0 || a !== void 0, [v, w] = ue(e, n ?? yo, a), g = (_) => {
2100
2112
  v.includes(_) ? w(v.filter((k) => k !== _)) : w(r ? [...v, _] : [_]);
2101
2113
  }, x = B(null);
2102
2114
  return /* @__PURE__ */ s(
@@ -2110,11 +2122,11 @@ const Dl = D(function({ value: e, defaultValue: n, onChange: a, multiple: r = !0
2110
2122
  "aria-labelledby": b.labelledBy,
2111
2123
  "aria-describedby": b.describedBy,
2112
2124
  ...u,
2113
- children: /* @__PURE__ */ s(Ge.Provider, { value: null, children: /* @__PURE__ */ s(Xa.Provider, { value: { value: v, toggle: g, selectable: m, disabled: b.disabled }, children: /* @__PURE__ */ s(mo, { root: x, children: i }) }) })
2125
+ children: /* @__PURE__ */ s(Ge.Provider, { value: null, children: /* @__PURE__ */ s(Ya.Provider, { value: { value: v, toggle: g, selectable: m, disabled: b.disabled }, children: /* @__PURE__ */ s(_o, { root: x, children: i }) }) })
2114
2126
  }
2115
2127
  );
2116
- }), ja = Le(null), Ol = D(function({ value: e, art: n, description: a, checked: r, onChange: o, disabled: l, className: i, children: c, onClick: d, ...f }, h) {
2117
- const u = we(ja), p = u ? u.values.includes(e) : !!r, b = u ? !u.multiple : !1;
2128
+ }), Xa = $e(null), Vl = D(function({ value: e, art: n, description: a, checked: r, onChange: o, disabled: l, className: i, children: c, onClick: d, ...f }, h) {
2129
+ const u = we(Xa), p = u ? u.values.includes(e) : !!r, b = u ? !u.multiple : !1;
2118
2130
  return /* @__PURE__ */ E(
2119
2131
  "button",
2120
2132
  {
@@ -2134,13 +2146,13 @@ const Dl = D(function({ value: e, defaultValue: n, onChange: a, multiple: r = !0
2134
2146
  n != null && /* @__PURE__ */ s("span", { className: "ok-option__art", children: n }),
2135
2147
  /* @__PURE__ */ E("span", { className: "ok-option__foot", children: [
2136
2148
  /* @__PURE__ */ s("span", { className: "ok-option__title", children: c }),
2137
- /* @__PURE__ */ s("span", { className: "ok-option__check", "aria-hidden": "true", children: /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: an, pathLength: 1 }) }) })
2149
+ /* @__PURE__ */ s("span", { className: "ok-option__check", "aria-hidden": "true", children: /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", children: /* @__PURE__ */ s("path", { d: on, pathLength: 1 }) }) })
2138
2150
  ] }),
2139
2151
  a != null && /* @__PURE__ */ s("span", { className: "ok-option__desc", children: a })
2140
2152
  ]
2141
2153
  }
2142
2154
  );
2143
- }), pa = (t) => t === void 0 ? void 0 : t === null ? [] : Array.isArray(t) ? t : [t], Bl = D(function(e, n) {
2155
+ }), pa = (t) => t === void 0 ? void 0 : t === null ? [] : Array.isArray(t) ? t : [t], Wl = D(function(e, n) {
2144
2156
  const {
2145
2157
  multiple: a = !1,
2146
2158
  value: r,
@@ -2188,14 +2200,14 @@ const Dl = D(function({ value: e, defaultValue: n, onChange: a, multiple: r = !0
2188
2200
  "aria-describedby": g.describedBy,
2189
2201
  onKeyDown: (C) => {
2190
2202
  if (p == null || p(C), C.defaultPrevented || a) return;
2191
- const N = rn(C, '[role="radio"]');
2203
+ const N = sn(C, '[role="radio"]');
2192
2204
  N && (N.focus(), N.dataset.value !== void 0 && M(N.dataset.value));
2193
2205
  },
2194
2206
  ...w,
2195
- children: /* @__PURE__ */ s(Ge.Provider, { value: null, children: /* @__PURE__ */ s(ja.Provider, { value: { values: _, multiple: a, pick: M, disabled: g.disabled, tabStop: I }, children: h }) })
2207
+ children: /* @__PURE__ */ s(Ge.Provider, { value: null, children: /* @__PURE__ */ s(Xa.Provider, { value: { values: _, multiple: a, pick: M, disabled: g.disabled, tabStop: I }, children: h }) })
2196
2208
  }
2197
2209
  );
2198
- }), bo = D(function({
2210
+ }), xo = D(function({
2199
2211
  colors: e,
2200
2212
  value: n,
2201
2213
  defaultValue: a = null,
@@ -2224,7 +2236,7 @@ const Dl = D(function({ value: e, defaultValue: n, onChange: a, multiple: r = !0
2224
2236
  "aria-describedby": m.describedBy,
2225
2237
  onKeyDown: (_) => {
2226
2238
  if (d == null || d(_), _.defaultPrevented) return;
2227
- const k = rn(_, '[role="radio"]');
2239
+ const k = sn(_, '[role="radio"]');
2228
2240
  k && (k.focus(), k.dataset.value !== void 0 && w(k.dataset.value));
2229
2241
  },
2230
2242
  ...p,
@@ -2247,15 +2259,15 @@ const Dl = D(function({ value: e, defaultValue: n, onChange: a, multiple: r = !0
2247
2259
  ))
2248
2260
  }
2249
2261
  );
2250
- }), mn = "#ff6b8e", vo = () => () => {
2251
- }, go = () => "EyeDropper" in window, ko = () => !1;
2252
- function bn(t, e) {
2253
- const n = Fr(t);
2262
+ }), vn = "#ff6b8e", No = () => () => {
2263
+ }, wo = () => "EyeDropper" in window, Mo = () => !1;
2264
+ function gn(t, e) {
2265
+ const n = Br(t);
2254
2266
  return n ? n.v === 0 ? { h: e.h, s: e.s, v: 0 } : n.s === 0 ? { h: e.h, s: 0, v: n.v } : n : e;
2255
2267
  }
2256
- const vn = (t) => Math.round(t * 100), Fl = D(function({
2268
+ const kn = (t) => Math.round(t * 100), Ul = D(function({
2257
2269
  value: e,
2258
- defaultValue: n = mn,
2270
+ defaultValue: n = vn,
2259
2271
  onChange: a,
2260
2272
  onChangeEnd: r,
2261
2273
  swatches: o,
@@ -2268,30 +2280,30 @@ const vn = (t) => Math.round(t * 100), Fl = D(function({
2268
2280
  "aria-describedby": u,
2269
2281
  ...p
2270
2282
  }, b) {
2271
- const m = Te({ id: d, disabled: l, "aria-describedby": u, "aria-labelledby": h, "aria-label": f }, !1), { messages: v } = ve(), w = m.disabled, [g, x] = ue(e, st(n) ?? mn, a), _ = st(g) ?? mn, [k, M] = ie(() => ({ hex: _, hsv: bn(_, { h: 0, s: 0, v: 0 }) }));
2283
+ const m = Te({ id: d, disabled: l, "aria-describedby": u, "aria-labelledby": h, "aria-label": f }, !1), { messages: v } = ve(), w = m.disabled, [g, x] = ue(e, st(n) ?? vn, a), _ = st(g) ?? vn, [k, M] = ie(() => ({ hex: _, hsv: gn(_, { h: 0, s: 0, v: 0 }) }));
2272
2284
  let S = k.hsv;
2273
- k.hex !== _ && (S = bn(_, k.hsv), M({ hex: _, hsv: S }));
2285
+ k.hex !== _ && (S = gn(_, k.hsv), M({ hex: _, hsv: S }));
2274
2286
  const T = B({ hex: _, hsv: S });
2275
2287
  T.current = { hex: _, hsv: S };
2276
2288
  const I = Se((q) => {
2277
- const G = zr(q);
2289
+ const G = Fr(q);
2278
2290
  T.current = { hex: G, hsv: q }, M({ hex: G, hsv: q }), x(G);
2279
- }), C = Se((q) => I(bn(q, T.current.hsv))), N = Se(() => r == null ? void 0 : r(T.current.hex)), y = B(null), [A, z] = ie(!1), $ = B(null);
2291
+ }), C = Se((q) => I(gn(q, T.current.hsv))), N = Se(() => r == null ? void 0 : r(T.current.hex)), y = B(null), [A, z] = ie(!1), L = B(null);
2280
2292
  de(() => () => {
2281
2293
  var q;
2282
- return (q = $.current) == null ? void 0 : q.call($);
2294
+ return (q = L.current) == null ? void 0 : q.call(L);
2283
2295
  }, []);
2284
2296
  const F = (q) => {
2285
2297
  var Q;
2286
2298
  const G = y.current;
2287
2299
  if (q.button || w || !G) return;
2288
- (Q = $.current) == null || Q.call($), G.focus({ preventScroll: !0 }), z(!0);
2300
+ (Q = L.current) == null || Q.call(L), G.focus({ preventScroll: !0 }), z(!0);
2289
2301
  const ae = (re, pe) => {
2290
2302
  const X = G.getBoundingClientRect(), W = Ce((re - X.left) / (X.width || 1), 0, 1), oe = 1 - Ce((pe - X.top) / (X.height || 1), 0, 1);
2291
2303
  I({ h: T.current.hsv.h, s: W, v: oe });
2292
2304
  };
2293
- ae(q.clientX, q.clientY), $.current = Ln(G, q, (re) => ae(re.clientX, re.clientY), () => {
2294
- $.current = null, z(!1), N();
2305
+ ae(q.clientX, q.clientY), L.current = $n(G, q, (re) => ae(re.clientX, re.clientY), () => {
2306
+ L.current = null, z(!1), N();
2295
2307
  });
2296
2308
  }, O = (q) => {
2297
2309
  if (w || q.altKey || q.ctrlKey || q.metaKey) return;
@@ -2342,7 +2354,7 @@ const vn = (t) => Math.round(t * 100), Fl = D(function({
2342
2354
  V(null);
2343
2355
  const q = st(U);
2344
2356
  !q || q === T.current.hex || (C(q), N());
2345
- }, le = An(vo, go, ko), J = async () => {
2357
+ }, le = en(No, wo, Mo), J = async () => {
2346
2358
  const q = window.EyeDropper;
2347
2359
  if (q)
2348
2360
  try {
@@ -2351,7 +2363,7 @@ const vn = (t) => Math.round(t * 100), Fl = D(function({
2351
2363
  C(ae), N();
2352
2364
  } catch {
2353
2365
  }
2354
- }, L = o == null ? void 0 : o.map((q) => {
2366
+ }, $ = o == null ? void 0 : o.map((q) => {
2355
2367
  const G = st(q) ?? q;
2356
2368
  return { value: G, color: q, label: G };
2357
2369
  });
@@ -2382,8 +2394,8 @@ const vn = (t) => Math.round(t * 100), Fl = D(function({
2382
2394
  "aria-roledescription": v.colorPicker.areaRole,
2383
2395
  "aria-valuemin": 0,
2384
2396
  "aria-valuemax": 100,
2385
- "aria-valuenow": vn(S.s),
2386
- "aria-valuetext": v.colorPicker.areaValue(vn(S.s), vn(S.v)),
2397
+ "aria-valuenow": kn(S.s),
2398
+ "aria-valuetext": v.colorPicker.areaValue(kn(S.s), kn(S.v)),
2387
2399
  "aria-disabled": w || void 0,
2388
2400
  "data-active": A ? "" : void 0,
2389
2401
  onPointerDown: F,
@@ -2410,7 +2422,7 @@ const vn = (t) => Math.round(t * 100), Fl = D(function({
2410
2422
  /* @__PURE__ */ E(Ge.Provider, { value: null, children: [
2411
2423
  /* @__PURE__ */ E("div", { className: "ok-color-picker__row", children: [
2412
2424
  /* @__PURE__ */ s(
2413
- Wa,
2425
+ Va,
2414
2426
  {
2415
2427
  size: "sm",
2416
2428
  className: "ok-color-picker__hex",
@@ -2441,14 +2453,14 @@ const vn = (t) => Math.round(t * 100), Fl = D(function({
2441
2453
  }
2442
2454
  )
2443
2455
  ] }),
2444
- L && L.length > 0 && /* @__PURE__ */ s(
2445
- bo,
2456
+ $ && $.length > 0 && /* @__PURE__ */ s(
2457
+ xo,
2446
2458
  {
2447
2459
  size: "sm",
2448
2460
  className: "ok-color-picker__swatches",
2449
2461
  "aria-label": v.colorPicker.swatches,
2450
- colors: L,
2451
- value: L.some((q) => q.value === _) ? _ : null,
2462
+ colors: $,
2463
+ value: $.some((q) => q.value === _) ? _ : null,
2452
2464
  onChange: (q) => {
2453
2465
  const G = st(q);
2454
2466
  G && (C(G), N());
@@ -2460,7 +2472,7 @@ const vn = (t) => Math.round(t * 100), Fl = D(function({
2460
2472
  ]
2461
2473
  }
2462
2474
  );
2463
- }), yo = {
2475
+ }), So = {
2464
2476
  Meta: "⌘",
2465
2477
  Control: "⌃",
2466
2478
  Alt: "⌥",
@@ -2474,17 +2486,17 @@ const vn = (t) => Math.round(t * 100), Fl = D(function({
2474
2486
  Backspace: "⌫",
2475
2487
  Tab: "⇥",
2476
2488
  Escape: "Esc"
2477
- }, Ka = (t) => yo[t] ?? t, Nn = (t, e = $n["zh-CN"].keyNames) => e[t] ?? t, zl = D(function({ k: e, size: n = "md", className: a, children: r, ...o }, l) {
2478
- const i = ve().messages.keyNames, c = e ? Ka(e) : null;
2479
- return /* @__PURE__ */ s("kbd", { ref: l, className: R("ok-kbd", n !== "md" && `ok-kbd--${n}`, a), "data-key": e, ...o, children: c !== null && c !== Nn(e, i) ? /* @__PURE__ */ s("abbr", { title: Nn(e, i), style: { textDecoration: "none" }, children: c }) : c ?? r });
2480
- }), Za = ["Control", "Alt", "Shift", "Meta"], ha = (t) => Za.filter((e) => ({ Control: t.ctrlKey, Alt: t.altKey, Shift: t.shiftKey, Meta: t.metaKey })[e]);
2481
- function _o({ k: t, index: e }) {
2489
+ }, ja = (t) => So[t] ?? t, Mn = (t, e = Jt["zh-CN"].keyNames) => e[t] ?? t, Gl = D(function({ k: e, size: n = "md", className: a, children: r, ...o }, l) {
2490
+ const i = ve().messages.keyNames, c = e ? ja(e) : null;
2491
+ return /* @__PURE__ */ s("kbd", { ref: l, className: R("ok-kbd", n !== "md" && `ok-kbd--${n}`, a), "data-key": e, ...o, children: c !== null && c !== Mn(e, i) ? /* @__PURE__ */ s("abbr", { title: Mn(e, i), style: { textDecoration: "none" }, children: c }) : c ?? r });
2492
+ }), Ka = ["Control", "Alt", "Shift", "Meta"], ha = (t) => Ka.filter((e) => ({ Control: t.ctrlKey, Alt: t.altKey, Shift: t.shiftKey, Meta: t.metaKey })[e]);
2493
+ function Ao({ k: t, index: e }) {
2482
2494
  const n = B(null);
2483
2495
  return de(() => {
2484
2496
  Ie(n.current, [{ transform: "scale(.3) translateY(8px)", opacity: 0 }, { transform: "none", opacity: 1 }], { spring: "bouncy", delay: e * 45 });
2485
- }, []), /* @__PURE__ */ s("kbd", { ref: n, className: "ok-kbd", "data-key": t, children: Ka(t) });
2497
+ }, []), /* @__PURE__ */ s("kbd", { ref: n, className: "ok-kbd", "data-key": t, children: ja(t) });
2486
2498
  }
2487
- const Hl = D(function({
2499
+ const Yl = D(function({
2488
2500
  value: e,
2489
2501
  defaultValue: n = "",
2490
2502
  onChange: a,
@@ -2504,34 +2516,34 @@ const Hl = D(function({
2504
2516
  "aria-describedby": w,
2505
2517
  ...g
2506
2518
  }, x) {
2507
- const _ = Te({ id: d, disabled: i, "aria-describedby": w, "aria-labelledby": v, "aria-label": m }, !1), { messages: k } = ve(), M = r ?? k.hotkey.placeholder, S = o ?? k.hotkey.recording, [T, I] = ue(e, n, (L) => a == null ? void 0 : a(L, L.split("+").filter(Boolean))), C = T.split("+").filter(Boolean), [N, y] = ie(!1), [A, z] = ie([]), [$, F] = ie(!1), O = B(null), P = `ok-hotkey-${Me()}`, H = () => {
2519
+ const _ = Te({ id: d, disabled: i, "aria-describedby": w, "aria-labelledby": v, "aria-label": m }, !1), { messages: k } = ve(), M = r ?? k.hotkey.placeholder, S = o ?? k.hotkey.recording, [T, I] = ue(e, n, ($) => a == null ? void 0 : a($, $.split("+").filter(Boolean))), C = T.split("+").filter(Boolean), [N, y] = ie(!1), [A, z] = ie([]), [L, F] = ie(!1), O = B(null), P = `ok-hotkey-${Me()}`, H = () => {
2508
2520
  !N && !_.disabled && (y(!0), z([]));
2509
2521
  }, U = () => {
2510
2522
  y(!1), z([]);
2511
- }, V = (L) => {
2523
+ }, V = ($) => {
2512
2524
  var Q, re;
2513
- if (h == null || h(L), _.disabled) return;
2525
+ if (h == null || h($), _.disabled) return;
2514
2526
  if (!N) {
2515
- (L.key === "Enter" || L.key === " ") && (L.preventDefault(), H());
2527
+ ($.key === "Enter" || $.key === " ") && ($.preventDefault(), H());
2516
2528
  return;
2517
2529
  }
2518
- if (L.key === "Tab") {
2530
+ if ($.key === "Tab") {
2519
2531
  U();
2520
2532
  return;
2521
2533
  }
2522
- if (L.preventDefault(), L.stopPropagation(), (re = (Q = L.nativeEvent).stopImmediatePropagation) == null || re.call(Q), L.key === "Escape") {
2534
+ if ($.preventDefault(), $.stopPropagation(), (re = (Q = $.nativeEvent).stopImmediatePropagation) == null || re.call(Q), $.key === "Escape") {
2523
2535
  U();
2524
2536
  return;
2525
2537
  }
2526
- const q = ha(L);
2527
- if (Za.includes(L.key)) {
2538
+ const q = ha($);
2539
+ if (Ka.includes($.key)) {
2528
2540
  z(q);
2529
2541
  return;
2530
2542
  }
2531
- const G = L.code || "";
2532
- let ae = G.startsWith("Key") ? G.slice(3) : G.startsWith("Digit") ? G.slice(5) : G === "Space" ? "Space" : L.key;
2543
+ const G = $.code || "";
2544
+ let ae = G.startsWith("Key") ? G.slice(3) : G.startsWith("Digit") ? G.slice(5) : G === "Space" ? "Space" : $.key;
2533
2545
  ae.length === 1 && (ae = ae.toUpperCase()), U(), I([...q, ae].join("+"));
2534
- }, j = N ? A : C, le = N ? A.length ? "…" : S : C.length ? "" : M, J = N ? k.hotkey.spokenRecording(S) : C.length ? k.hotkey.spokenCurrent(C.map((L) => Nn(L, k.keyNames)).join(" + ")) : k.hotkey.none;
2546
+ }, j = N ? A : C, le = N ? A.length ? "…" : S : C.length ? "" : M, J = N ? k.hotkey.spokenRecording(S) : C.length ? k.hotkey.spokenCurrent(C.map(($) => Mn($, k.keyNames)).join(" + ")) : k.hotkey.none;
2535
2547
  return /* @__PURE__ */ E(
2536
2548
  "div",
2537
2549
  {
@@ -2546,29 +2558,29 @@ const Hl = D(function({
2546
2558
  "aria-disabled": _.disabled || void 0,
2547
2559
  "aria-pressed": N,
2548
2560
  "data-recording": N ? "" : void 0,
2549
- "data-pointer": $ ? "" : void 0,
2550
- onPointerDown: (L) => {
2551
- b == null || b(L), F(!0);
2561
+ "data-pointer": L ? "" : void 0,
2562
+ onPointerDown: ($) => {
2563
+ b == null || b($), F(!0);
2552
2564
  },
2553
- onClick: (L) => {
2554
- f == null || f(L), L.defaultPrevented || H();
2565
+ onClick: ($) => {
2566
+ f == null || f($), $.defaultPrevented || H();
2555
2567
  },
2556
2568
  onKeyDown: V,
2557
- onKeyUp: (L) => {
2558
- u == null || u(L), N && z(ha(L));
2569
+ onKeyUp: ($) => {
2570
+ u == null || u($), N && z(ha($));
2559
2571
  },
2560
- onBlur: (L) => {
2561
- p == null || p(L), F(!1), N && U();
2572
+ onBlur: ($) => {
2573
+ p == null || p($), F(!1), N && U();
2562
2574
  },
2563
2575
  ...g,
2564
2576
  children: [
2565
- j.map((L, q) => /* @__PURE__ */ s(_o, { k: L, index: q }, L)),
2577
+ j.map(($, q) => /* @__PURE__ */ s(Ao, { k: $, index: q }, $)),
2566
2578
  le && /* @__PURE__ */ s("span", { className: "ok-hotkey__hint", children: le }),
2567
2579
  /* @__PURE__ */ s(Ra, { id: P, "aria-live": "polite", children: J })
2568
2580
  ]
2569
2581
  }
2570
2582
  );
2571
- }), ma = 2.9, xo = 17.1, ba = "M10 2.600l2.200 4.700 5.100.600-3.800 3.500 1 5-4.500-2.500-4.500 2.500 1-5-3.800-3.500 5.100-.600z", ql = D(function({
2583
+ }), ma = 2.9, Co = 17.1, ba = "M10 2.600l2.200 4.700 5.100.600-3.800 3.500 1 5-4.500-2.500-4.500 2.500 1-5-3.800-3.500 5.100-.600z", Xl = D(function({
2572
2584
  value: e,
2573
2585
  defaultValue: n = 0,
2574
2586
  onChange: a,
@@ -2601,7 +2613,7 @@ const Hl = D(function({
2601
2613
  "aria-describedby": x.describedBy,
2602
2614
  ...w,
2603
2615
  children: T.map((N) => {
2604
- const y = Math.min(1, Math.max(0, M - (N - 1))), A = y > 0 && y < 1, z = 100 - (ma + y * (xo - ma)) / 20 * 100;
2616
+ const y = Math.min(1, Math.max(0, M - (N - 1))), A = y > 0 && y < 1, z = 100 - (ma + y * (Co - ma)) / 20 * 100;
2605
2617
  return /* @__PURE__ */ E("span", { className: "ok-rating__star", "data-on": y >= 1 ? "" : void 0, "data-partial": A ? "" : void 0, children: [
2606
2618
  C,
2607
2619
  A && /* @__PURE__ */ s("svg", { className: "ok-rating__fill", viewBox: "0 0 20 20", "aria-hidden": "true", style: { "--ok-rating-cut": `${+z.toFixed(2)}%` }, children: /* @__PURE__ */ s("path", { d: ba }) })
@@ -2621,7 +2633,7 @@ const Hl = D(function({
2621
2633
  "aria-disabled": x.disabled || void 0,
2622
2634
  onKeyDown: (N) => {
2623
2635
  if (p == null || p(N), N.defaultPrevented || x.disabled) return;
2624
- const y = rn(N, '[role="radio"]');
2636
+ const y = sn(N, '[role="radio"]');
2625
2637
  y && (y.focus(), S(Number(y.dataset.value)));
2626
2638
  },
2627
2639
  ...w,
@@ -2648,12 +2660,12 @@ const Hl = D(function({
2648
2660
  }
2649
2661
  );
2650
2662
  });
2651
- function No(t, e) {
2663
+ function To(t, e) {
2652
2664
  if (!e) return !0;
2653
2665
  const n = t.name.toLowerCase(), a = (t.type || "").toLowerCase();
2654
2666
  return e.split(",").map((r) => r.trim().toLowerCase()).filter(Boolean).some((r) => r.startsWith(".") ? n.endsWith(r) : r.endsWith("/*") ? a.startsWith(r.slice(0, -1)) : a === r);
2655
2667
  }
2656
- const Vl = D(function({
2668
+ const jl = D(function({
2657
2669
  onChange: e,
2658
2670
  onReject: n,
2659
2671
  maxSize: a,
@@ -2678,23 +2690,23 @@ const Vl = D(function({
2678
2690
  var V;
2679
2691
  let P = Array.from(O ?? []);
2680
2692
  if (!P.length) return;
2681
- const H = P.filter((j) => No(j, c) && (a == null || j.size <= a)), U = P.filter((j) => !H.includes(j));
2693
+ const H = P.filter((j) => To(j, c) && (a == null || j.size <= a)), U = P.filter((j) => !H.includes(j));
2682
2694
  P = d ? H : H.slice(0, 1), U.length && (n == null || n(U)), P.length && (e == null || e(P)), N(M.fileDrop.status(P.length, ((V = P[0]) == null ? void 0 : V.name) ?? "", U.length));
2683
- }, $ = (O) => {
2695
+ }, L = (O) => {
2684
2696
  var P;
2685
2697
  return Array.from(((P = O.dataTransfer) == null ? void 0 : P.types) ?? []).includes("Files");
2686
2698
  }, F = {
2687
2699
  onDragEnter: (O) => {
2688
- k.disabled || !$(O) || (O.preventDefault(), A.current++, I(!0));
2700
+ k.disabled || !L(O) || (O.preventDefault(), A.current++, I(!0));
2689
2701
  },
2690
2702
  onDragOver: (O) => {
2691
- k.disabled || !$(O) || O.preventDefault();
2703
+ k.disabled || !L(O) || O.preventDefault();
2692
2704
  },
2693
2705
  onDragLeave: () => {
2694
2706
  A.current = Math.max(0, A.current - 1), A.current || I(!1);
2695
2707
  },
2696
2708
  onDrop: (O) => {
2697
- A.current = 0, I(!1), !(k.disabled || !$(O)) && (O.preventDefault(), z(O.dataTransfer.files));
2709
+ A.current = 0, I(!1), !(k.disabled || !L(O)) && (O.preventDefault(), z(O.dataTransfer.files));
2698
2710
  }
2699
2711
  };
2700
2712
  return /* @__PURE__ */ E(
@@ -2736,46 +2748,46 @@ const Vl = D(function({
2736
2748
  ]
2737
2749
  }
2738
2750
  );
2739
- }), wo = 1e3, Mo = 'button, a[href], [role="button"], [role="menuitem"], [role="option"], [role="tab"], summary, label, input, select, textarea, [tabindex]';
2740
- function So(t) {
2751
+ }), Eo = 1e3, Po = 'button, a[href], [role="button"], [role="menuitem"], [role="option"], [role="tab"], summary, label, input, select, textarea, [tabindex]';
2752
+ function Lo(t) {
2741
2753
  return t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement ? !0 : t instanceof HTMLInputElement ? !["button", "submit", "reset", "checkbox", "radio", "image", "file", "color", "range"].includes(t.type) : t instanceof HTMLElement && t.isContentEditable;
2742
2754
  }
2743
- function Ao({ pointer: t, active: e, now: n, viewport: a }) {
2755
+ function $o({ pointer: t, active: e, now: n, viewport: a }) {
2744
2756
  const r = { x: a.width / 2, y: a.height / 2 }, o = e == null ? void 0 : e.ownerDocument, l = !e || e === (o == null ? void 0 : o.body) || e === (o == null ? void 0 : o.documentElement);
2745
- if (t && t.target && n - t.time <= wo) {
2757
+ if (t && t.target && n - t.time <= Eo) {
2746
2758
  const i = t.target;
2747
2759
  if (!l && (e === i || e.contains(i))) return { x: t.x, y: t.y };
2748
- if (l && i.closest(Mo)) return { x: t.x, y: t.y };
2760
+ if (l && i.closest(Po)) return { x: t.x, y: t.y };
2749
2761
  }
2750
- if (!l && !So(e)) {
2762
+ if (!l && !Lo(e)) {
2751
2763
  const i = e.getBoundingClientRect();
2752
2764
  if (i.width > 0 && i.height > 0 && i.right > 0 && i.bottom > 0 && i.left < a.width && i.top < a.height) return { x: i.left + i.width / 2, y: i.top + i.height / 2 };
2753
2765
  }
2754
2766
  return r;
2755
2767
  }
2756
- let Ja = null, va = !1;
2757
- function Qa() {
2768
+ let Za = null, va = !1;
2769
+ function Ja() {
2758
2770
  va || !He || (va = !0, document.addEventListener("pointerdown", (t) => {
2759
- Ja = { x: t.clientX, y: t.clientY, time: performance.now(), target: t.target instanceof Element ? t.target : null };
2771
+ Za = { x: t.clientX, y: t.clientY, time: performance.now(), target: t.target instanceof Element ? t.target : null };
2760
2772
  }, !0));
2761
2773
  }
2762
- function Co(t = "trigger") {
2774
+ function Io(t = "trigger") {
2763
2775
  if (typeof t == "object") return t;
2764
2776
  const e = { width: window.innerWidth, height: window.innerHeight };
2765
- return t === "center" ? { x: e.width / 2, y: e.height / 2 } : Ao({ pointer: Ja, active: document.activeElement, now: performance.now(), viewport: e });
2777
+ return t === "center" ? { x: e.width / 2, y: e.height / 2 } : $o({ pointer: Za, active: document.activeElement, now: performance.now(), viewport: e });
2766
2778
  }
2767
2779
  function In(t, e) {
2768
2780
  return t === "sm" || t === "md" || t === "lg" ? e[t] : t;
2769
2781
  }
2770
- const er = Le(null);
2771
- function To() {
2772
- return we(er);
2782
+ const Qa = $e(null);
2783
+ function Ro() {
2784
+ return we(Qa);
2773
2785
  }
2774
- function Eo({ active: t, layerRef: e }) {
2775
- return Ir(t, e), null;
2786
+ function Do({ active: t, layerRef: e }) {
2787
+ return $r(t, e), null;
2776
2788
  }
2777
- const Po = (t) => typeof t == "number" ? t + "px" : t;
2778
- function $o(t, e) {
2789
+ const Oo = (t) => typeof t == "number" ? t + "px" : t;
2790
+ function Bo(t, e) {
2779
2791
  for (let n = t; n && n !== e; n = n.parentElement)
2780
2792
  if (n.scrollWidth > n.clientWidth + 1) {
2781
2793
  const a = getComputedStyle(n).overflowX;
@@ -2783,7 +2795,7 @@ function $o(t, e) {
2783
2795
  }
2784
2796
  return !1;
2785
2797
  }
2786
- const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [contenteditable="true"], [data-ok-no-drag]', Io = 0.5, mt = D(function({
2798
+ const Fo = 'button, a[href], input, select, textarea, label, [role="button"], [contenteditable="true"], [data-ok-no-drag]', zo = 0.5, mt = D(function({
2787
2799
  open: e,
2788
2800
  onOpenChange: n,
2789
2801
  placement: a = "center",
@@ -2814,13 +2826,13 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
2814
2826
  onPointerDown: y,
2815
2827
  onFocus: A,
2816
2828
  onBlur: z,
2817
- ...$
2829
+ ...L
2818
2830
  }, F) {
2819
- const O = ve().messages.common.close, P = x ?? O, { mounted: H, state: U, ref: V } = tn(e, Pr.out * 2), j = B(null), le = B(null), J = B(null), L = Me(), q = L + "title", G = L + "desc", [ae, Q] = ie(!1), [re, pe] = ie(!1), [X, W] = ie(!1), oe = B(null), he = _ !== void 0 || a === "center", [te, ce] = ie(null);
2831
+ const O = ve().messages.common.close, P = x ?? O, { mounted: H, state: U, ref: V } = an(e, Er.out * 2), j = B(null), le = B(null), J = B(null), $ = Me(), q = $ + "title", G = $ + "desc", [ae, Q] = ie(!1), [re, pe] = ie(!1), [X, W] = ie(!1), oe = B(null), he = _ !== void 0 || a === "center", [te, ce] = ie(null);
2820
2832
  de(() => {
2821
- Qa();
2833
+ Ja();
2822
2834
  }, []), xe(() => {
2823
- e && he && ce(Co(_ ?? "trigger"));
2835
+ e && he && ce(Io(_ ?? "trigger"));
2824
2836
  }, [e]);
2825
2837
  const Z = B(null), K = (ee) => {
2826
2838
  if (!ee || !he || !te || Z.current && Z.current.node === ee && Z.current.point === te) return;
@@ -2834,18 +2846,18 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
2834
2846
  }), fe = Se(() => {
2835
2847
  k == null || k();
2836
2848
  });
2837
- $r(H && r && !m), nn(e && l && (r || X), Y);
2849
+ Pr(H && r && !m), rn(e && l && (r || X), Y);
2838
2850
  const me = B(H);
2839
2851
  de(() => {
2840
2852
  me.current && !H && (W(!1), fe()), me.current = H;
2841
2853
  }, [H, fe]), de(() => {
2842
2854
  if (e || r || !p) return;
2843
2855
  const ee = j.current;
2844
- ee && ee.contains(document.activeElement) && La(oe.current);
2856
+ ee && ee.contains(document.activeElement) && $a(oe.current);
2845
2857
  }, [e, r, p]);
2846
- const $e = v && l && a !== "center", qe = En("(max-width: 519.98px)"), ze = w && l && qe && (a === "left" || a === "right") && !m, [Ee, De] = ie(!1), _e = l && !Ee && (g === !0 || g === "auto" && qe && a !== "center" && !m), nt = Ae(
2847
- () => ({ titleId: q, descriptionId: G, setTitled: Q, setDescribed: pe, close: Y, dismissible: l, modal: r, placement: a, draggable: $e, setHeaderClose: De }),
2848
- [q, G, Y, l, r, a, $e]
2858
+ const Le = v && l && a !== "center", qe = Pn("(max-width: 519.98px)"), ze = w && l && qe && (a === "left" || a === "right") && !m, [Ee, De] = ie(!1), _e = l && !Ee && (g === !0 || g === "auto" && qe && a !== "center" && !m), nt = Ae(
2859
+ () => ({ titleId: q, descriptionId: G, setTitled: Q, setDescribed: pe, close: Y, dismissible: l, modal: r, placement: a, draggable: Le, setHeaderClose: De }),
2860
+ [q, G, Y, l, r, a, Le]
2849
2861
  );
2850
2862
  if (!H) return null;
2851
2863
  const at = (ee) => {
@@ -2861,17 +2873,17 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
2861
2873
  var ea;
2862
2874
  y == null || y(ee);
2863
2875
  const ge = j.current;
2864
- if (!$e && !ze || !ge || ee.defaultPrevented || U !== "open" || ee.pointerType === "mouse" && ee.button !== 0) return;
2876
+ if (!Le && !ze || !ge || ee.defaultPrevented || U !== "open" || ee.pointerType === "mouse" && ee.button !== 0) return;
2865
2877
  const be = ee.target, se = (ea = be.closest) == null ? void 0 : ea.call(be, "[data-ok-drag-handle]");
2866
- if (!ge.contains(be) || be.closest(Lo)) return;
2867
- const ye = $e && !!se && ge.contains(se), Re = !ye && ze && ee.pointerType !== "mouse" && !$o(be, ge);
2878
+ if (!ge.contains(be) || be.closest(Fo)) return;
2879
+ const ye = Le && !!se && ge.contains(se), Re = !ye && ze && ee.pointerType !== "mouse" && !Bo(be, ge);
2868
2880
  if (!ye && !Re) return;
2869
- const ot = ee.clientX, Ke = ee.clientY, dt = a === "left" || a === "right", Tt = a === "bottom" || a === "right" ? 1 : -1, Gn = ee.pointerId, _r = dt ? ee.clientX : ee.clientY, Yn = ge.getBoundingClientRect(), cn = dt ? Yn.width : Yn.height, Ye = J.current;
2870
- let dn = !1, ut = 0, un = 0, fn = ee.timeStamp, Xn = 0;
2881
+ const ot = ee.clientX, Ke = ee.clientY, dt = a === "left" || a === "right", Tt = a === "bottom" || a === "right" ? 1 : -1, Gn = ee.pointerId, yr = dt ? ee.clientX : ee.clientY, Yn = ge.getBoundingClientRect(), un = dt ? Yn.width : Yn.height, Ye = J.current;
2882
+ let fn = !1, ut = 0, pn = 0, hn = ee.timeStamp, Xn = 0;
2871
2883
  const jn = (Oe) => {
2872
2884
  if (Oe.pointerId !== Gn) return;
2873
- const ft = ((dt ? Oe.clientX : Oe.clientY) - _r) * Tt;
2874
- if (!dn) {
2885
+ const ft = ((dt ? Oe.clientX : Oe.clientY) - yr) * Tt;
2886
+ if (!fn) {
2875
2887
  if (Re) {
2876
2888
  const Et = Math.abs(Oe.clientX - ot), ta = Math.abs(Oe.clientY - Ke);
2877
2889
  if (Et < 8 && ta < 8) return;
@@ -2881,26 +2893,26 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
2881
2893
  }
2882
2894
  }
2883
2895
  if (Math.abs(ft) < 4) return;
2884
- dn = !0, ge.style.transition = "none", ge.setAttribute("data-dragging", ""), Ye && (Ye.style.transition = "none");
2896
+ fn = !0, ge.style.transition = "none", ge.setAttribute("data-dragging", ""), Ye && (Ye.style.transition = "none");
2885
2897
  }
2886
2898
  ut = ft >= 0 ? ft : Math.max(ft * 0.15, -8);
2887
- const Ht = Oe.timeStamp - fn;
2888
- Ht > 0 && (un = (ut - Xn) / Ht, fn = Oe.timeStamp, Xn = ut);
2899
+ const Ht = Oe.timeStamp - hn;
2900
+ Ht > 0 && (pn = (ut - Xn) / Ht, hn = Oe.timeStamp, Xn = ut);
2889
2901
  const qt = ut * Tt;
2890
- ge.style.transform = dt ? `translateX(${qt}px)` : `translateY(${qt}px)`, Ye && (Ye.style.opacity = String(1 - Ce(ut / (cn || 320), 0, 1) * 0.7));
2902
+ ge.style.transform = dt ? `translateX(${qt}px)` : `translateY(${qt}px)`, Ye && (Ye.style.opacity = String(1 - Ce(ut / (un || 320), 0, 1) * 0.7));
2891
2903
  }, Kn = () => {
2892
2904
  document.removeEventListener("pointermove", jn), document.removeEventListener("pointerup", Jn), document.removeEventListener("pointercancel", Qn);
2893
2905
  }, Zn = (Oe, ft) => {
2894
- if (Oe.pointerId !== Gn || (Kn(), !dn)) return;
2895
- Oe.timeStamp - fn > 120 && (un = 0);
2896
- const Ht = cn > 0 ? Math.min(cn * 0.4, 160) : 160, qt = !ft && (ut > Ht || un > Io && ut > 12);
2906
+ if (Oe.pointerId !== Gn || (Kn(), !fn)) return;
2907
+ Oe.timeStamp - hn > 120 && (pn = 0);
2908
+ const Ht = un > 0 ? Math.min(un * 0.4, 160) : 160, qt = !ft && (ut > Ht || pn > zo && ut > 12);
2897
2909
  ge.style.transition = "", ge.style.transform = "", ge.removeAttribute("data-dragging"), Ye && (Ye.style.transition = ""), qt ? (Y(), requestAnimationFrame(() => {
2898
2910
  var Et;
2899
2911
  Ye && ((Et = le.current) == null ? void 0 : Et.getAttribute("data-state")) === "open" && (Ye.style.opacity = "");
2900
2912
  })) : Ye && (Ye.style.opacity = "");
2901
2913
  }, Jn = (Oe) => Zn(Oe, !1), Qn = (Oe) => Zn(Oe, !0);
2902
2914
  document.addEventListener("pointermove", jn), document.addEventListener("pointerup", Jn), document.addEventListener("pointercancel", Qn);
2903
- }, rt = i === "auto", ne = { "--ok-float-size": rt ? void 0 : Po(i), "--ok-float-gap": c != null ? c + "px" : void 0 };
2915
+ }, rt = i === "auto", ne = { "--ok-float-size": rt ? void 0 : Oo(i), "--ok-float-gap": c != null ? c + "px" : void 0 };
2904
2916
  return /* @__PURE__ */ s(At, { container: b, children: /* @__PURE__ */ E(
2905
2917
  "div",
2906
2918
  {
@@ -2916,10 +2928,10 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
2916
2928
  style: ne,
2917
2929
  children: [
2918
2930
  r && /* @__PURE__ */ s("div", { ref: J, className: "ok-float__scrim", "aria-hidden": "true", onClick: l ? Y : void 0 }),
2919
- /* @__PURE__ */ s(Dr, { scopeRef: j, trap: r, autoFocus: r || o, restoreFocus: p && r, initialFocus: u, children: /* @__PURE__ */ E(
2931
+ /* @__PURE__ */ s(Rr, { scopeRef: j, trap: r, autoFocus: r || o, restoreFocus: p && r, initialFocus: u, children: /* @__PURE__ */ E(
2920
2932
  "div",
2921
2933
  {
2922
- ...$,
2934
+ ...L,
2923
2935
  ref: Ne(F, j, V, K),
2924
2936
  className: R("ok-float__card", M),
2925
2937
  style: S,
@@ -2928,26 +2940,26 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
2928
2940
  "aria-label": I,
2929
2941
  "aria-labelledby": C ?? (ae && !I ? q : void 0),
2930
2942
  "aria-describedby": N ?? (re ? G : void 0),
2931
- "data-draggable": $e ? "" : void 0,
2943
+ "data-draggable": Le ? "" : void 0,
2932
2944
  "data-swipe": ze ? "" : void 0,
2933
2945
  tabIndex: -1,
2934
2946
  onPointerDown: ct,
2935
2947
  onFocus: at,
2936
2948
  onBlur: je,
2937
2949
  children: [
2938
- /* @__PURE__ */ s(er.Provider, { value: nt, children: T }),
2950
+ /* @__PURE__ */ s(Qa.Provider, { value: nt, children: T }),
2939
2951
  _e && /* @__PURE__ */ s("button", { type: "button", className: "ok-btn ok-btn--ghost ok-btn--icon ok-btn--sm ok-focusable ok-float__close ok-float__close--auto", "aria-label": P, onClick: Y, children: /* @__PURE__ */ s(ke, { name: "x" }) })
2940
2952
  ]
2941
2953
  }
2942
2954
  ) }),
2943
- r && !m && /* @__PURE__ */ s(Eo, { active: e, layerRef: le })
2955
+ r && !m && /* @__PURE__ */ s(Do, { active: e, layerRef: le })
2944
2956
  ]
2945
2957
  }
2946
2958
  ) });
2947
- }), Ro = D(function({ className: e, ...n }, a) {
2959
+ }), Ho = D(function({ className: e, ...n }, a) {
2948
2960
  return /* @__PURE__ */ s("div", { ref: a, className: R("ok-float__grip", e), "aria-hidden": "true", "data-ok-drag-handle": "", ...n, children: /* @__PURE__ */ s("span", {}) });
2949
- }), Wl = D(function({ title: e, description: n, icon: a, level: r = 2, closable: o, closeLabel: l, onClose: i, className: c, children: d, ...f }, h) {
2950
- const u = ve().messages.common.close, p = l ?? u, b = To(), m = Me(), v = (b == null ? void 0 : b.titleId) ?? m + "title", w = (b == null ? void 0 : b.descriptionId) ?? m + "desc", g = e != null && e !== !1, x = n != null && n !== !1, _ = b == null ? void 0 : b.setTitled, k = b == null ? void 0 : b.setDescribed;
2961
+ }), Kl = D(function({ title: e, description: n, icon: a, level: r = 2, closable: o, closeLabel: l, onClose: i, className: c, children: d, ...f }, h) {
2962
+ const u = ve().messages.common.close, p = l ?? u, b = Ro(), m = Me(), v = (b == null ? void 0 : b.titleId) ?? m + "title", w = (b == null ? void 0 : b.descriptionId) ?? m + "desc", g = e != null && e !== !1, x = n != null && n !== !1, _ = b == null ? void 0 : b.setTitled, k = b == null ? void 0 : b.setDescribed;
2951
2963
  xe(() => {
2952
2964
  if (!(!g || !_))
2953
2965
  return _(!0), () => _(!1);
@@ -2977,11 +2989,11 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
2977
2989
  }
2978
2990
  )
2979
2991
  ] });
2980
- }), Ul = D(function({ padded: e = !0, className: n, ...a }, r) {
2992
+ }), Zl = D(function({ padded: e = !0, className: n, ...a }, r) {
2981
2993
  return /* @__PURE__ */ s("div", { ref: r, className: R("ok-float__body ok-scroll", !e && "ok-float__body--flush", n), ...a });
2982
- }), Gl = D(function({ align: e = "end", className: n, ...a }, r) {
2994
+ }), Jl = D(function({ align: e = "end", className: n, ...a }, r) {
2983
2995
  return /* @__PURE__ */ s("div", { ref: r, className: R("ok-float__footer", n), "data-align": e, ...a });
2984
- }), Do = { sm: 320, md: 400, lg: 560 }, Oo = D(function({
2996
+ }), qo = { sm: 320, md: 400, lg: 560 }, Vo = D(function({
2985
2997
  open: e,
2986
2998
  defaultOpen: n = !1,
2987
2999
  onOpenChange: a,
@@ -3006,13 +3018,13 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
3006
3018
  "aria-describedby": M,
3007
3019
  ...S
3008
3020
  }, T) {
3009
- const I = ve().messages.common.close, C = p ?? I, [N, y] = ue(e, n, a), A = Me(), z = i != null && i !== !1, $ = c != null && c !== !1, F = o != null && o !== !1, O = /* @__PURE__ */ E(Pe, { children: [
3021
+ const I = ve().messages.common.close, C = p ?? I, [N, y] = ue(e, n, a), A = Me(), z = i != null && i !== !1, L = c != null && c !== !1, F = o != null && o !== !1, O = /* @__PURE__ */ E(Pe, { children: [
3010
3022
  (z || F || u) && /* @__PURE__ */ E("div", { className: "ok-dialog__head", children: [
3011
3023
  F && /* @__PURE__ */ s("div", { className: R("ok-dialog__icon", l !== "accent" && "ok-dialog__icon--" + l), children: o }),
3012
3024
  z && /* @__PURE__ */ s("h2", { id: A + "title", className: "ok-dialog__title", children: i }),
3013
3025
  u && /* @__PURE__ */ s("button", { type: "button", className: "ok-btn ok-btn--ghost ok-btn--icon ok-btn--sm ok-focusable ok-dialog__close", "aria-label": C, onClick: () => y(!1), children: /* @__PURE__ */ s(ke, { name: "x" }) })
3014
3026
  ] }),
3015
- $ && /* @__PURE__ */ s("p", { id: A + "desc", className: "ok-dialog__desc", children: c }),
3027
+ L && /* @__PURE__ */ s("p", { id: A + "desc", className: "ok-dialog__desc", children: c }),
3016
3028
  x != null && x !== !1 && /* @__PURE__ */ s("div", { className: "ok-dialog__body ok-scroll", children: x }),
3017
3029
  d != null && d !== !1 && /* @__PURE__ */ s("div", { className: "ok-dialog__actions", children: d })
3018
3030
  ] });
@@ -3025,52 +3037,52 @@ const Lo = 'button, a[href], input, select, textarea, label, [role="button"], [c
3025
3037
  onOpenChange: y,
3026
3038
  placement: "center",
3027
3039
  origin: w,
3028
- size: In(r, Do),
3040
+ size: In(r, qo),
3029
3041
  role: h,
3030
3042
  dismissible: b,
3031
3043
  className: R("ok-dialog__panel ok-scroll", f === "center" && "ok-dialog__panel--center", g),
3032
3044
  "aria-label": _,
3033
3045
  "aria-labelledby": k ?? (z && !_ ? A + "title" : void 0),
3034
- "aria-describedby": M ?? ($ ? A + "desc" : void 0),
3046
+ "aria-describedby": M ?? (L ? A + "desc" : void 0),
3035
3047
  children: m === "form" ? /* @__PURE__ */ s("form", { className: "ok-dialog__form", onSubmit: (P) => {
3036
3048
  P.preventDefault(), P.stopPropagation(), v == null || v(P);
3037
3049
  }, children: O }) : O
3038
3050
  }
3039
3051
  );
3040
3052
  });
3041
- let lt = [], tr = 0, Bo = 0;
3042
- const wn = /* @__PURE__ */ new Set(), wt = [];
3053
+ let lt = [], er = 0, Wo = 0;
3054
+ const Sn = /* @__PURE__ */ new Set(), wt = [];
3043
3055
  let ga = !1;
3044
3056
  const Dt = () => {
3045
- tr++, wn.forEach((t) => t());
3046
- }, Fo = (t) => (wn.add(t), () => {
3047
- wn.delete(t);
3048
- }), ka = () => tr, zo = () => {
3057
+ er++, Sn.forEach((t) => t());
3058
+ }, Uo = (t) => (Sn.add(t), () => {
3059
+ Sn.delete(t);
3060
+ }), ka = () => er, Go = () => {
3049
3061
  var t;
3050
3062
  return (t = wt.find((e) => !e.auto) ?? wt[0]) == null ? void 0 : t.id;
3051
3063
  };
3052
- function gn(t, e) {
3064
+ function yn(t, e) {
3053
3065
  const n = lt.find((a) => a.id === t);
3054
3066
  !n || !n.open || (n.resolve(e), lt = lt.map((a) => a.id === t ? { ...a, open: !1 } : a), Dt());
3055
3067
  }
3056
- function Ho(t) {
3068
+ function Yo(t) {
3057
3069
  lt = lt.filter((e) => e.id !== t), Dt();
3058
3070
  }
3059
- function Yl(t) {
3071
+ function Ql(t) {
3060
3072
  if (!He) return Promise.resolve(!1);
3061
3073
  const e = typeof t == "string" ? { title: t } : t;
3062
- return Qa(), new Promise((n) => {
3063
- if (lt = [...lt, { id: ++Bo, options: e, open: !0, resolve: n }], !wt.some((a) => !a.auto) && !ga) {
3074
+ return Ja(), new Promise((n) => {
3075
+ if (lt = [...lt, { id: ++Wo, options: e, open: !0, resolve: n }], !wt.some((a) => !a.auto) && !ga) {
3064
3076
  ga = !0;
3065
3077
  const a = document.createElement("div");
3066
- a.setAttribute("data-ok-confirmer", ""), document.body.appendChild(a), Ar(a).render(/* @__PURE__ */ s(qo, { auto: !0 }));
3078
+ a.setAttribute("data-ok-confirmer", ""), document.body.appendChild(a), Sr(a).render(/* @__PURE__ */ s(Xo, { auto: !0 }));
3067
3079
  }
3068
3080
  Dt();
3069
3081
  });
3070
3082
  }
3071
- function qo({ auto: t = !1 }) {
3083
+ function Xo({ auto: t = !1 }) {
3072
3084
  const e = B();
3073
- e.current || (e.current = Symbol("confirmer")), An(Fo, ka, ka);
3085
+ e.current || (e.current = Symbol("confirmer")), en(Uo, ka, ka);
3074
3086
  const { messages: n } = ve();
3075
3087
  return de(() => {
3076
3088
  const a = { id: e.current, auto: t };
@@ -3078,17 +3090,17 @@ function qo({ auto: t = !1 }) {
3078
3090
  const r = wt.indexOf(a);
3079
3091
  r >= 0 && wt.splice(r, 1), Dt();
3080
3092
  };
3081
- }, [t]), zo() !== e.current ? null : /* @__PURE__ */ s(Pe, { children: lt.map((a) => {
3093
+ }, [t]), Go() !== e.current ? null : /* @__PURE__ */ s(Pe, { children: lt.map((a) => {
3082
3094
  const r = a.options, o = r.tone === "danger";
3083
3095
  return /* @__PURE__ */ s(
3084
- Oo,
3096
+ Vo,
3085
3097
  {
3086
3098
  role: "alertdialog",
3087
3099
  open: a.open,
3088
3100
  onOpenChange: (l) => {
3089
- l || gn(a.id, !1);
3101
+ l || yn(a.id, !1);
3090
3102
  },
3091
- onExited: () => Ho(a.id),
3103
+ onExited: () => Yo(a.id),
3092
3104
  title: r.title,
3093
3105
  description: r.description,
3094
3106
  icon: r.icon,
@@ -3098,14 +3110,14 @@ function qo({ auto: t = !1 }) {
3098
3110
  dismissible: r.dismissible ?? !0,
3099
3111
  origin: r.origin,
3100
3112
  actions: /* @__PURE__ */ E(Pe, { children: [
3101
- /* @__PURE__ */ s("button", { type: "button", className: "ok-btn ok-btn--lg ok-focusable", "data-autofocus": o ? "" : void 0, onClick: () => gn(a.id, !1), children: r.cancelText ?? n.confirm.cancel }),
3113
+ /* @__PURE__ */ s("button", { type: "button", className: "ok-btn ok-btn--lg ok-focusable", "data-autofocus": o ? "" : void 0, onClick: () => yn(a.id, !1), children: r.cancelText ?? n.confirm.cancel }),
3102
3114
  /* @__PURE__ */ s(
3103
3115
  "button",
3104
3116
  {
3105
3117
  type: "button",
3106
3118
  className: "ok-btn ok-btn--lg ok-focusable " + (o ? "ok-btn--danger" : "ok-btn--primary"),
3107
3119
  "data-autofocus": o ? void 0 : "",
3108
- onClick: () => gn(a.id, !0),
3120
+ onClick: () => yn(a.id, !0),
3109
3121
  children: r.confirmText ?? n.confirm.confirm
3110
3122
  }
3111
3123
  )
@@ -3115,7 +3127,7 @@ function qo({ auto: t = !1 }) {
3115
3127
  );
3116
3128
  }) });
3117
3129
  }
3118
- const Vo = { sm: 280, md: 360, lg: 480 }, Wo = { sm: 240, md: 360, lg: 520 }, Xl = D(function({ open: e, defaultOpen: n = !1, onOpenChange: a, placement: r = "right", size: o = "md", modal: l = !0, className: i, ...c }, d) {
3130
+ const jo = { sm: 280, md: 360, lg: 480 }, Ko = { sm: 240, md: 360, lg: 520 }, ei = D(function({ open: e, defaultOpen: n = !1, onOpenChange: a, placement: r = "right", size: o = "md", modal: l = !0, className: i, ...c }, d) {
3119
3131
  const [f, h] = ue(e, n, a);
3120
3132
  return /* @__PURE__ */ s(
3121
3133
  mt,
@@ -3126,11 +3138,11 @@ const Vo = { sm: 280, md: 360, lg: 480 }, Wo = { sm: 240, md: 360, lg: 520 }, Xl
3126
3138
  onOpenChange: h,
3127
3139
  placement: r,
3128
3140
  modal: l,
3129
- size: In(o, r === "left" || r === "right" ? Vo : Wo),
3141
+ size: In(o, r === "left" || r === "right" ? jo : Ko),
3130
3142
  className: R("ok-drawer", i)
3131
3143
  }
3132
3144
  );
3133
- }), ya = { auto: void 0, sm: "40%", md: "60%", lg: "85%", full: "100%" }, jl = D(function({ open: e, defaultOpen: n = !1, onOpenChange: a, size: r = "auto", grip: o = !0, dragToDismiss: l = !0, stretch: i = !1, modal: c = !0, className: d, children: f, ...h }, u) {
3145
+ }), ya = { auto: void 0, sm: "40%", md: "60%", lg: "85%", full: "100%" }, ti = D(function({ open: e, defaultOpen: n = !1, onOpenChange: a, size: r = "auto", grip: o = !0, dragToDismiss: l = !0, stretch: i = !1, modal: c = !0, className: d, children: f, ...h }, u) {
3134
3146
  const [p, b] = ue(e, n, a), m = typeof r == "string" && r in ya ? ya[r] : r;
3135
3147
  return /* @__PURE__ */ E(
3136
3148
  mt,
@@ -3146,12 +3158,12 @@ const Vo = { sm: 280, md: 360, lg: 480 }, Wo = { sm: 240, md: 360, lg: 520 }, Xl
3146
3158
  dragToDismiss: l,
3147
3159
  className: R("ok-sheet", d),
3148
3160
  children: [
3149
- o && /* @__PURE__ */ s(Ro, {}),
3161
+ o && /* @__PURE__ */ s(Ho, {}),
3150
3162
  f
3151
3163
  ]
3152
3164
  }
3153
3165
  );
3154
- }), Uo = { sm: 280, md: 320, lg: 400 }, Go = { sm: 200, md: 280, lg: 400 }, Yo = D(function({ open: e, defaultOpen: n = !1, onOpenChange: a, placement: r = "right", size: o = "md", role: l = "complementary", className: i, ...c }, d) {
3166
+ }), Zo = { sm: 280, md: 320, lg: 400 }, Jo = { sm: 200, md: 280, lg: 400 }, Qo = D(function({ open: e, defaultOpen: n = !1, onOpenChange: a, placement: r = "right", size: o = "md", role: l = "complementary", className: i, ...c }, d) {
3155
3167
  const [f, h] = ue(e, n, a);
3156
3168
  return /* @__PURE__ */ s(
3157
3169
  mt,
@@ -3163,15 +3175,15 @@ const Vo = { sm: 280, md: 360, lg: 480 }, Wo = { sm: 240, md: 360, lg: 520 }, Xl
3163
3175
  placement: r,
3164
3176
  modal: !1,
3165
3177
  role: l,
3166
- size: In(o, r === "left" || r === "right" ? Uo : Go),
3178
+ size: In(o, r === "left" || r === "right" ? Zo : Jo),
3167
3179
  className: R("ok-panel-float", i)
3168
3180
  }
3169
3181
  );
3170
- }), Kl = Yo;
3171
- let Fe = [], Xo = 0;
3172
- const Mn = /* @__PURE__ */ new Set(), Rn = () => Mn.forEach((t) => t());
3182
+ }), ni = Qo;
3183
+ let Fe = [], es = 0;
3184
+ const An = /* @__PURE__ */ new Set(), Rn = () => An.forEach((t) => t());
3173
3185
  function kt(t, e) {
3174
- const n = typeof t == "string" ? { title: t } : t, a = e ? { ...n, tone: e } : n, r = a.id ?? "ok-toast-" + ++Xo;
3186
+ const n = typeof t == "string" ? { title: t } : t, a = e ? { ...n, tone: e } : n, r = a.id ?? "ok-toast-" + ++es;
3175
3187
  return Fe = Fe.some((l) => l.id === r && !l.leaving) ? Fe.map((l) => l.id === r && !l.leaving ? {
3176
3188
  ...a,
3177
3189
  id: r,
@@ -3187,19 +3199,19 @@ function pt(t) {
3187
3199
  let e = !1;
3188
3200
  Fe = Fe.map((n) => n.leaving || t != null && n.id !== t ? n : (e = !0, { ...n, leaving: !0 })), e && Rn();
3189
3201
  }
3190
- function jo(t) {
3202
+ function ts(t) {
3191
3203
  var n;
3192
3204
  const e = Fe.find((a) => a.id === t);
3193
3205
  e && (Fe = Fe.filter((a) => a.id !== t), Rn(), (n = e.onDismiss) == null || n.call(e));
3194
3206
  }
3195
- const Zl = Object.assign((t) => kt(t), {
3207
+ const ai = Object.assign((t) => kt(t), {
3196
3208
  success: (t) => kt(t, "success"),
3197
3209
  warning: (t) => kt(t, "warning"),
3198
3210
  danger: (t) => kt(t, "danger"),
3199
3211
  error: (t) => kt(t, "danger"),
3200
3212
  info: (t) => kt(t, "info"),
3201
3213
  dismiss: pt
3202
- }), Ko = {
3214
+ }), ns = {
3203
3215
  success: /* @__PURE__ */ s("path", { pathLength: 1, d: "M5 10.5l3.2 3.2L15 6.5" }),
3204
3216
  danger: /* @__PURE__ */ E(Pe, { children: [
3205
3217
  /* @__PURE__ */ s("path", { pathLength: 1, d: "M6 6l8 8" }),
@@ -3215,7 +3227,7 @@ const Zl = Object.assign((t) => kt(t), {
3215
3227
  ] }),
3216
3228
  default: /* @__PURE__ */ s("path", { pathLength: 1, d: "M4 4.5c0 6.500 4.500 11 9 11 2.800 0 4.500-2 4.500-4.200S15.700 7.500 13.500 7.500c-2 0-3.400 1.400-3.600 3.200" })
3217
3229
  };
3218
- function Zo({ record: t, position: e, defaultDuration: n, pauseOnHover: a, closeLabel: r, register: o }) {
3230
+ function as({ record: t, position: e, defaultDuration: n, pauseOnHover: a, closeLabel: r, register: o }) {
3219
3231
  const l = B(null), [i, c] = ie(!1), d = B(!1), f = B(!1), h = t.duration ?? n, u = B(h), { id: p, leaving: b } = t, m = e.startsWith("top");
3220
3232
  xe(() => {
3221
3233
  Ie(l.current, [{ opacity: 0, transform: `translateY(${m ? -32 : 32}px) scale(.84)` }, { opacity: 1, transform: "none" }], { spring: "bouncy" });
@@ -3232,7 +3244,7 @@ function Zo({ record: t, position: e, defaultDuration: n, pauseOnHover: a, close
3232
3244
  const M = e.endsWith("right") ? 56 : e.endsWith("left") ? -56 : 0, S = M ? 0 : m ? -24 : 24, T = Ie(l.current, [{ opacity: 1, transform: "none" }, { opacity: 0, transform: `translate(${M}px, ${S}px) scale(.92)` }], { duration: 170, easing: Xe.in, fill: "forwards" });
3233
3245
  let I = !1;
3234
3246
  const C = () => {
3235
- I || (I = !0, jo(p));
3247
+ I || (I = !0, ts(p));
3236
3248
  };
3237
3249
  T != null && T.finished && T.finished.then(C, C);
3238
3250
  const N = setTimeout(C, 170 * tt() + 80);
@@ -3265,7 +3277,7 @@ function Zo({ record: t, position: e, defaultDuration: n, pauseOnHover: a, close
3265
3277
  M.currentTarget.contains(M.relatedTarget) || (f.current = !1, v());
3266
3278
  },
3267
3279
  children: [
3268
- t.icon !== !1 && /* @__PURE__ */ s("span", { className: "ok-toast__icon", "aria-hidden": "true", children: t.icon ?? /* @__PURE__ */ s("svg", { className: "ok-toast__glyph", viewBox: "0 0 20 20", children: Ko[w] }) }),
3280
+ t.icon !== !1 && /* @__PURE__ */ s("span", { className: "ok-toast__icon", "aria-hidden": "true", children: t.icon ?? /* @__PURE__ */ s("svg", { className: "ok-toast__glyph", viewBox: "0 0 20 20", children: ns[w] }) }),
3269
3281
  /* @__PURE__ */ E("div", { className: "ok-toast__body", children: [
3270
3282
  /* @__PURE__ */ s("div", { className: "ok-toast__title", children: t.title }),
3271
3283
  k && /* @__PURE__ */ s("div", { className: "ok-toast__desc", children: t.description })
@@ -3298,7 +3310,7 @@ function Zo({ record: t, position: e, defaultDuration: n, pauseOnHover: a, close
3298
3310
  }
3299
3311
  );
3300
3312
  }
3301
- const Jl = D(function({ position: e, mobilePosition: n, max: a = 4, duration: r = 4200, pauseOnHover: o = !0, offset: l, label: i, closeLabel: c, container: d, className: f, style: h, ...u }, p) {
3313
+ const ri = D(function({ position: e, mobilePosition: n, max: a = 4, duration: r = 4200, pauseOnHover: o = !0, offset: l, label: i, closeLabel: c, container: d, className: f, style: h, ...u }, p) {
3302
3314
  const { messages: b } = ve(), m = i ?? b.toast.label, v = c ?? b.common.close, w = _t("sm"), g = _t("md"), x = _t("lg"), _ = _t("xl");
3303
3315
  let k;
3304
3316
  if (typeof e == "object" && e !== null) {
@@ -3313,11 +3325,11 @@ const Jl = D(function({ position: e, mobilePosition: n, max: a = 4, duration: r
3313
3325
  const A = /* @__PURE__ */ new Map();
3314
3326
  T.current.forEach((z) => A.set(z, z.getBoundingClientRect())), I.current = A, S(Fe);
3315
3327
  };
3316
- return Mn.add(y), Fe.length && S(Fe), () => {
3317
- Mn.delete(y);
3328
+ return An.add(y), Fe.length && S(Fe), () => {
3329
+ An.delete(y);
3318
3330
  };
3319
3331
  }, []), xe(() => {
3320
- I.current && (Tn(I.current), I.current = null);
3332
+ I.current && (En(I.current), I.current = null);
3321
3333
  }, [M]), de(() => {
3322
3334
  const y = M.filter((A) => !A.leaving);
3323
3335
  a > 0 && y.length > a && y.slice(a).forEach((A) => pt(A.id));
@@ -3334,18 +3346,18 @@ const Jl = D(function({ position: e, mobilePosition: n, max: a = 4, duration: r
3334
3346
  "data-ok-layer": "",
3335
3347
  style: N,
3336
3348
  ...u,
3337
- children: M.map((y) => /* @__PURE__ */ s(Zo, { record: y, position: k, defaultDuration: r, pauseOnHover: o, closeLabel: v, register: C }, y.id))
3349
+ children: M.map((y) => /* @__PURE__ */ s(as, { record: y, position: k, defaultDuration: r, pauseOnHover: o, closeLabel: v, register: C }, y.id))
3338
3350
  }
3339
3351
  ) });
3340
3352
  });
3341
- function on(t, e, n) {
3353
+ function ln(t, e, n) {
3342
3354
  const a = t.props, r = { ...e };
3343
3355
  for (const l in e) {
3344
3356
  const i = e[l], c = a[l];
3345
- /^on[A-Z]/.test(l) && typeof c == "function" && typeof i == "function" ? r[l] = en(c, i) : l === "className" ? r[l] = R(c, i) : l === "style" ? r[l] = { ...i, ...c } : i === void 0 && c !== void 0 && (r[l] = c);
3357
+ /^on[A-Z]/.test(l) && typeof c == "function" && typeof i == "function" ? r[l] = nn(c, i) : l === "className" ? r[l] = R(c, i) : l === "style" ? r[l] = { ...i, ...c } : i === void 0 && c !== void 0 && (r[l] = c);
3346
3358
  }
3347
- const o = parseInt(wr, 10) >= 19 ? a.ref : t.ref;
3348
- return n && (r.ref = o ? Ne(o, n) : n), Qt(t, r);
3359
+ const o = parseInt(Nr, 10) >= 19 ? a.ref : t.ref;
3360
+ return n && (r.ref = o ? Ne(o, n) : n), tn(t, r);
3349
3361
  }
3350
3362
  function Dn(t) {
3351
3363
  return t == null || t === !1 ? null : typeof t == "string" && t in Ia ? /* @__PURE__ */ s(ke, { name: t }) : Bt(t) ? t : null;
@@ -3372,19 +3384,19 @@ function Fn(t, e) {
3372
3384
  e || (n.current = t);
3373
3385
  }), e ? n.current : t;
3374
3386
  }
3375
- function Jo(t, e, n, a) {
3387
+ function rs(t, e, n, a) {
3376
3388
  const r = (f, h, u) => (f.x - u.x) * (h.y - u.y) - (h.x - u.x) * (f.y - u.y), o = r(t, e, n), l = r(t, n, a), i = r(t, a, e), c = o < 0 || l < 0 || i < 0, d = o > 0 || l > 0 || i > 0;
3377
3389
  return !(c && d);
3378
3390
  }
3379
- function Qo(t, e, n) {
3391
+ function os(t, e, n) {
3380
3392
  if (t.x === e.x && t.y === e.y) return !1;
3381
3393
  const a = n.left >= t.x, r = a ? n.left : n.right;
3382
3394
  if (a ? e.x > n.right : e.x < n.left) return !1;
3383
3395
  const o = 4;
3384
- return Jo(e, t, { x: r, y: n.top - o }, { x: r, y: n.bottom + o });
3396
+ return rs(e, t, { x: r, y: n.top - o }, { x: r, y: n.bottom + o });
3385
3397
  }
3386
- const nr = (t) => t.key.length === 1 && !t.ctrlKey && !t.metaKey && !t.altKey;
3387
- function ar() {
3398
+ const tr = (t) => t.key.length === 1 && !t.ctrlKey && !t.metaKey && !t.altKey;
3399
+ function nr() {
3388
3400
  const t = B(""), e = B();
3389
3401
  de(() => () => clearTimeout(e.current), []);
3390
3402
  const n = Ue((r, o, l) => {
@@ -3400,10 +3412,10 @@ function ar() {
3400
3412
  }, []), a = Ue(() => t.current.length > 0, []);
3401
3413
  return { search: n, pending: a };
3402
3414
  }
3403
- const kn = "\0none", es = (t, e) => {
3415
+ const _n = "\0none", ss = (t, e) => {
3404
3416
  const n = [t.label, t.description, t.group, ...t.keywords ?? []].filter(Boolean).join(" ").toLowerCase();
3405
3417
  return e.toLowerCase().split(/\s+/).filter(Boolean).every((a) => n.includes(a));
3406
- }, Ql = D(function({
3418
+ }, oi = D(function({
3407
3419
  open: e,
3408
3420
  defaultOpen: n = !1,
3409
3421
  onOpenChange: a,
@@ -3424,31 +3436,31 @@ const kn = "\0none", es = (t, e) => {
3424
3436
  style: g,
3425
3437
  ...x
3426
3438
  }, _) {
3427
- const { messages: k } = ve(), M = h ?? k.commandPalette.placeholder, S = u === void 0 ? k.commandPalette.empty : u, T = p ?? k.commandPalette.label, [I, C] = ue(e, n, a), [N, y] = ue(o, l, i), [A, z] = ie(null), $ = B(null), [F, O] = ie(null), { hlRef: P, moveTo: H } = Bn(), U = Me(), V = U + "list", j = (X) => U + "opt-" + X, le = Ae(() => {
3428
- const X = c === !1 ? null : c ?? es, W = N.trim(), oe = X && W ? r.filter((te) => X(te, W)) : r, he = [];
3439
+ const { messages: k } = ve(), M = h ?? k.commandPalette.placeholder, S = u === void 0 ? k.commandPalette.empty : u, T = p ?? k.commandPalette.label, [I, C] = ue(e, n, a), [N, y] = ue(o, l, i), [A, z] = ie(null), L = B(null), [F, O] = ie(null), { hlRef: P, moveTo: H } = Bn(), U = Me(), V = U + "list", j = (X) => U + "opt-" + X, le = Ae(() => {
3440
+ const X = c === !1 ? null : c ?? ss, W = N.trim(), oe = X && W ? r.filter((te) => X(te, W)) : r, he = [];
3429
3441
  return oe.forEach((te) => {
3430
3442
  let ce = he.find((Z) => Z.label === te.group);
3431
3443
  ce || (ce = { label: te.group, items: [] }, he.push(ce)), ce.items.push(te);
3432
3444
  }), he;
3433
- }, [r, N, c]), J = Ae(() => le.flatMap((X) => X.items).filter((X) => !X.disabled), [le]), L = A === kn ? null : J.find((X) => X.id === A) ?? J[0] ?? null, q = B(I);
3445
+ }, [r, N, c]), J = Ae(() => le.flatMap((X) => X.items).filter((X) => !X.disabled), [le]), $ = A === _n ? null : J.find((X) => X.id === A) ?? J[0] ?? null, q = B(I);
3434
3446
  de(() => {
3435
3447
  I && !q.current && (y(""), z(null)), q.current = I;
3436
3448
  }, [I, y]), xe(() => {
3437
- F && H(L ? F.querySelector("[data-active]") : null);
3438
- }, [F, L, le, H]), xe(() => {
3449
+ F && H($ ? F.querySelector("[data-active]") : null);
3450
+ }, [F, $, le, H]), xe(() => {
3439
3451
  var X;
3440
- !I || !L || !F || (L === J[0] ? F.scrollTop = 0 : (X = F.querySelector("[data-active]")) == null || X.scrollIntoView({ block: "nearest" }));
3441
- }, [I, L == null ? void 0 : L.id, F]);
3452
+ !I || !$ || !F || ($ === J[0] ? F.scrollTop = 0 : (X = F.querySelector("[data-active]")) == null || X.scrollIntoView({ block: "nearest" }));
3453
+ }, [I, $ == null ? void 0 : $.id, F]);
3442
3454
  const G = (X) => {
3443
3455
  var W;
3444
3456
  X.disabled || ((W = X.onSelect) == null || W.call(X), d == null || d(X), f && C(!1));
3445
3457
  }, ae = (X) => {
3446
3458
  if (!J.length) return;
3447
3459
  let W;
3448
- X === "first" ? W = 0 : X === "last" ? W = J.length - 1 : L ? W = (J.indexOf(L) + X + J.length) % J.length : W = X > 0 ? 0 : J.length - 1, z(J[W].id);
3460
+ X === "first" ? W = 0 : X === "last" ? W = J.length - 1 : $ ? W = (J.indexOf($) + X + J.length) % J.length : W = X > 0 ? 0 : J.length - 1, z(J[W].id);
3449
3461
  }, Q = (X) => {
3450
3462
  if (!J.length) return;
3451
- const W = L ? J.indexOf(L) : X > 0 ? -1 : J.length;
3463
+ const W = $ ? J.indexOf($) : X > 0 ? -1 : J.length;
3452
3464
  z(J[Math.min(J.length - 1, Math.max(0, W + X))].id);
3453
3465
  }, re = (X) => {
3454
3466
  if (!X.nativeEvent.isComposing)
@@ -3472,7 +3484,7 @@ const kn = "\0none", es = (t, e) => {
3472
3484
  X.preventDefault(), Q(-5);
3473
3485
  break;
3474
3486
  case "Enter":
3475
- L && (X.preventDefault(), G(L));
3487
+ $ && (X.preventDefault(), G($));
3476
3488
  break;
3477
3489
  }
3478
3490
  }, pe = b != null ? { ...g, "--ok-cmdk-width": typeof b == "number" ? b + "px" : b } : g;
@@ -3487,7 +3499,7 @@ const kn = "\0none", es = (t, e) => {
3487
3499
  placement: "top",
3488
3500
  stretch: !1,
3489
3501
  origin: v,
3490
- initialFocus: $,
3502
+ initialFocus: L,
3491
3503
  className: R("ok-cmdk", w),
3492
3504
  style: pe,
3493
3505
  children: [
@@ -3496,7 +3508,7 @@ const kn = "\0none", es = (t, e) => {
3496
3508
  /* @__PURE__ */ s(
3497
3509
  "input",
3498
3510
  {
3499
- ref: $,
3511
+ ref: L,
3500
3512
  className: "ok-cmdk__input",
3501
3513
  type: "text",
3502
3514
  role: "combobox",
@@ -3504,7 +3516,7 @@ const kn = "\0none", es = (t, e) => {
3504
3516
  "aria-expanded": "true",
3505
3517
  "aria-controls": V,
3506
3518
  "aria-autocomplete": "list",
3507
- "aria-activedescendant": L ? j(L.id) : void 0,
3519
+ "aria-activedescendant": $ ? j($.id) : void 0,
3508
3520
  autoComplete: "off",
3509
3521
  autoCorrect: "off",
3510
3522
  autoCapitalize: "off",
@@ -3529,7 +3541,7 @@ const kn = "\0none", es = (t, e) => {
3529
3541
  role: "listbox",
3530
3542
  "aria-label": T,
3531
3543
  hidden: le.length === 0,
3532
- onPointerLeave: () => z(kn),
3544
+ onPointerLeave: () => z(_n),
3533
3545
  children: [
3534
3546
  /* @__PURE__ */ s("span", { className: "ok-cmdk__hl", ref: P, "aria-hidden": "true" }),
3535
3547
  le.map((X, W) => {
@@ -3537,7 +3549,7 @@ const kn = "\0none", es = (t, e) => {
3537
3549
  return /* @__PURE__ */ E("div", { className: "ok-cmdk__group", role: "group", "aria-labelledby": X.label ? oe : void 0, children: [
3538
3550
  X.label && /* @__PURE__ */ s("div", { id: oe, className: "ok-cmdk__group-label", role: "presentation", children: X.label }),
3539
3551
  X.items.map((he) => {
3540
- const te = (L == null ? void 0 : L.id) === he.id;
3552
+ const te = ($ == null ? void 0 : $.id) === he.id;
3541
3553
  return /* @__PURE__ */ E(
3542
3554
  "div",
3543
3555
  {
@@ -3548,7 +3560,7 @@ const kn = "\0none", es = (t, e) => {
3548
3560
  "aria-disabled": he.disabled || void 0,
3549
3561
  "data-active": te ? "" : void 0,
3550
3562
  onMouseDown: (ce) => ce.preventDefault(),
3551
- onPointerMove: te ? void 0 : () => z(he.disabled ? kn : he.id),
3563
+ onPointerMove: te ? void 0 : () => z(he.disabled ? _n : he.id),
3552
3564
  onClick: () => G(he),
3553
3565
  children: [
3554
3566
  he.icon != null && /* @__PURE__ */ s("span", { className: "ok-cmdk__item-icon", "aria-hidden": "true", children: he.icon }),
@@ -3572,8 +3584,8 @@ const kn = "\0none", es = (t, e) => {
3572
3584
  ]
3573
3585
  }
3574
3586
  );
3575
- }), _a = { top: "bottom", bottom: "top", left: "right", right: "left" }, ts = 96;
3576
- function ns(t) {
3587
+ }), _a = { top: "bottom", bottom: "top", left: "right", right: "left" }, ls = 96;
3588
+ function is(t) {
3577
3589
  const { anchor: e, floating: n, viewport: a, placement: r = "bottom", offset: o = 8, alignOffset: l = 0, padding: i = 8, flip: c = !0, shift: d = !0 } = t, f = r.split("-");
3578
3590
  let h = f[0];
3579
3591
  const u = f[1] ?? "center", p = h === "top" || h === "bottom", b = Math.max(0, a.width - i * 2), m = Math.max(0, a.height - i * 2), v = {
@@ -3584,7 +3596,7 @@ function ns(t) {
3584
3596
  }, w = p ? n.height : n.width;
3585
3597
  c && w > v[h] && v[_a[h]] > v[h] && (h = _a[h]);
3586
3598
  let g, x, _, k, M = b, S = m;
3587
- return p ? (S = Math.min(m, Math.max(v[h], ts)), _ = Math.min(n.width, b), k = Math.min(n.height, S), x = h === "bottom" ? e.bottom + o : e.top - o - k, g = (u === "start" ? e.left : u === "end" ? e.right - _ : e.left + e.width / 2 - _ / 2) + l) : (_ = Math.min(n.width, b), k = Math.min(n.height, m), g = h === "right" ? e.right + o : e.left - o - _, x = (u === "start" ? e.top : u === "end" ? e.bottom - k : e.top + e.height / 2 - k / 2) + l), d && (g = Ce(g, i, Math.max(i, a.width - i - _)), x = Ce(x, i, Math.max(i, a.height - i - k))), { x: Math.round(g), y: Math.round(x), side: h, align: u, availableWidth: M, availableHeight: S };
3599
+ return p ? (S = Math.min(m, Math.max(v[h], ls)), _ = Math.min(n.width, b), k = Math.min(n.height, S), x = h === "bottom" ? e.bottom + o : e.top - o - k, g = (u === "start" ? e.left : u === "end" ? e.right - _ : e.left + e.width / 2 - _ / 2) + l) : (_ = Math.min(n.width, b), k = Math.min(n.height, m), g = h === "right" ? e.right + o : e.left - o - _, x = (u === "start" ? e.top : u === "end" ? e.bottom - k : e.top + e.height / 2 - k / 2) + l), d && (g = Ce(g, i, Math.max(i, a.width - i - _)), x = Ce(x, i, Math.max(i, a.height - i - k))), { x: Math.round(g), y: Math.round(x), side: h, align: u, availableWidth: M, availableHeight: S };
3588
3600
  }
3589
3601
  function zn(t) {
3590
3602
  const { open: e, anchorRef: n, floatingRef: a, placement: r = "bottom", offset: o = 8, alignOffset: l = 0, padding: i = 8, flip: c = !0, shift: d = !0, matchWidth: f = !1 } = t, h = Se(t.onPosition), u = B(0), p = Ue(() => {
@@ -3594,7 +3606,7 @@ function zn(t) {
3594
3606
  f === !0 ? m.style.width = v.width + "px" : f === "min" && (m.style.minWidth = v.width + "px");
3595
3607
  const x = m.style.getPropertyValue("--ok-popup-avail-h") ? [m, ...Array.from(m.querySelectorAll(".ok-scroll"))].map((M) => [M, M.scrollTop]) : [];
3596
3608
  m.style.setProperty("--ok-popup-avail-h", "100000px"), m.style.setProperty("--ok-popup-avail-w", Math.max(0, g.width - i * 2) + "px");
3597
- const _ = { width: m.offsetWidth, height: m.offsetHeight }, k = ns({ anchor: v, floating: _, viewport: g, placement: r, offset: o, alignOffset: l, padding: i, flip: c, shift: d });
3609
+ const _ = { width: m.offsetWidth, height: m.offsetHeight }, k = is({ anchor: v, floating: _, viewport: g, placement: r, offset: o, alignOffset: l, padding: i, flip: c, shift: d });
3598
3610
  m.style.setProperty("--ok-popup-avail-h", k.availableHeight + "px"), m.style.setProperty("--ok-popup-avail-w", k.availableWidth + "px"), m.style.left = k.x + "px", m.style.top = k.y + "px", m.dataset.side = k.side, m.dataset.align = k.align, x.forEach(([M, S]) => {
3599
3611
  M.scrollTop !== S && (M.scrollTop = S);
3600
3612
  }), h({
@@ -3630,10 +3642,10 @@ function zn(t) {
3630
3642
  };
3631
3643
  }, [e, p, n, a]), { update: p };
3632
3644
  }
3633
- const xa = Le(null), rr = Le(!0), Hn = () => we(rr), Ct = D(function(e, n) {
3634
- const { open: a, container: r } = e, o = tn(a, 200);
3635
- return o.mounted ? /* @__PURE__ */ s(At, { container: r, children: /* @__PURE__ */ s(as, { ...e, ref: n, state: o.state, presenceRef: o.ref }) }) : null;
3636
- }), as = D(function({
3645
+ const xa = $e(null), ar = $e(!0), Hn = () => we(ar), Ct = D(function(e, n) {
3646
+ const { open: a, container: r } = e, o = an(a, 200);
3647
+ return o.mounted ? /* @__PURE__ */ s(At, { container: r, children: /* @__PURE__ */ s(cs, { ...e, ref: n, state: o.state, presenceRef: o.ref }) }) : null;
3648
+ }), cs = D(function({
3637
3649
  open: e,
3638
3650
  anchorRef: n,
3639
3651
  placement: a = "bottom-start",
@@ -3681,19 +3693,19 @@ const xa = Le(null), rr = Le(!0), Hn = () => we(rr), Ct = D(function(e, n) {
3681
3693
  if (!e) return;
3682
3694
  const A = (z) => {
3683
3695
  var O, P;
3684
- const $ = z.target;
3685
- if (!$ || (O = M.current) != null && O.contains($)) return;
3696
+ const L = z.target;
3697
+ if (!L || (O = M.current) != null && O.contains(L)) return;
3686
3698
  const F = n.current;
3687
- if (!(F instanceof Element && F.contains($)) && !((P = y.current) != null && P.some((H) => {
3699
+ if (!(F instanceof Element && F.contains(L)) && !((P = y.current) != null && P.some((H) => {
3688
3700
  var U;
3689
- return (U = H.current) == null ? void 0 : U.contains($);
3701
+ return (U = H.current) == null ? void 0 : U.contains(L);
3690
3702
  }))) {
3691
- for (const H of I.current) if (H.contains($)) return;
3703
+ for (const H of I.current) if (H.contains(L)) return;
3692
3704
  N("outside", z);
3693
3705
  }
3694
3706
  };
3695
3707
  return document.addEventListener("pointerdown", A, !0), () => document.removeEventListener("pointerdown", A, !0);
3696
- }, [e, n, N]), nn(e && !!f, () => N("escape", new Event("keydown"))), /* @__PURE__ */ s(xa.Provider, { value: C, children: /* @__PURE__ */ s(rr.Provider, { value: e, children: /* @__PURE__ */ s(
3708
+ }, [e, n, N]), rn(e && !!f, () => N("escape", new Event("keydown"))), /* @__PURE__ */ s(xa.Provider, { value: C, children: /* @__PURE__ */ s(ar.Provider, { value: e, children: /* @__PURE__ */ s(
3697
3709
  "div",
3698
3710
  {
3699
3711
  ..._,
@@ -3704,7 +3716,7 @@ const xa = Le(null), rr = Le(!0), Hn = () => we(rr), Ct = D(function(e, n) {
3704
3716
  children: x
3705
3717
  }
3706
3718
  ) }) });
3707
- }), or = D(function({
3719
+ }), rr = D(function({
3708
3720
  trigger: e,
3709
3721
  children: n,
3710
3722
  open: a,
@@ -3727,7 +3739,7 @@ const xa = Le(null), rr = Le(!0), Hn = () => we(rr), Ct = D(function(e, n) {
3727
3739
  const [_, k] = ue(a, r, o), M = B(null), S = Me(), T = b ?? `${S}-popover`, I = (y = !0) => {
3728
3740
  var A;
3729
3741
  y && ((A = M.current) == null || A.focus({ preventScroll: !0 })), k(!1);
3730
- }, C = on(e, {
3742
+ }, C = ln(e, {
3731
3743
  "aria-haspopup": v === "dialog" ? "dialog" : "true",
3732
3744
  "aria-expanded": _,
3733
3745
  "aria-controls": _ ? T : void 0,
@@ -3737,7 +3749,7 @@ const xa = Le(null), rr = Le(!0), Hn = () => we(rr), Ct = D(function(e, n) {
3737
3749
  if (w == null || w(y), y.defaultPrevented || y.key !== "Tab") return;
3738
3750
  const A = y.currentTarget;
3739
3751
  if (!A.contains(y.target)) return;
3740
- const z = jt(A), $ = document.activeElement, F = !z.length || $ === z[z.length - 1], O = !z.length || $ === z[0] || $ === A;
3752
+ const z = jt(A), L = document.activeElement, F = !z.length || L === z[z.length - 1], O = !z.length || L === z[0] || L === A;
3741
3753
  (y.shiftKey ? O : F) && (y.shiftKey && y.preventDefault(), I(!0));
3742
3754
  };
3743
3755
  return /* @__PURE__ */ E(Pe, { children: [
@@ -3761,12 +3773,12 @@ const xa = Le(null), rr = Le(!0), Hn = () => we(rr), Ct = D(function(e, n) {
3761
3773
  onDismiss: (y) => {
3762
3774
  y === "escape" ? p && I(!0) : u && I(!1);
3763
3775
  },
3764
- children: /* @__PURE__ */ s(rs, { open: _, autoFocus: h, initialFocus: f, children: typeof n == "function" ? n({ close: () => I(!0) }) : n })
3776
+ children: /* @__PURE__ */ s(ds, { open: _, autoFocus: h, initialFocus: f, children: typeof n == "function" ? n({ close: () => I(!0) }) : n })
3765
3777
  }
3766
3778
  )
3767
3779
  ] });
3768
3780
  });
3769
- function rs({ open: t, autoFocus: e, initialFocus: n, children: a }) {
3781
+ function ds({ open: t, autoFocus: e, initialFocus: n, children: a }) {
3770
3782
  const r = B(null);
3771
3783
  return de(() => {
3772
3784
  var i;
@@ -3780,14 +3792,14 @@ const Be = {
3780
3792
  current: null,
3781
3793
  hiddenAt: -1 / 0,
3782
3794
  lastPos: null
3783
- }, os = (t) => {
3795
+ }, us = (t) => {
3784
3796
  try {
3785
3797
  return t.matches(":focus-visible");
3786
3798
  } catch {
3787
3799
  return !0;
3788
3800
  }
3789
3801
  };
3790
- function ei({
3802
+ function si({
3791
3803
  content: t,
3792
3804
  shortcut: e,
3793
3805
  children: n,
@@ -3802,7 +3814,7 @@ function ei({
3802
3814
  onOpenChange: h,
3803
3815
  className: u
3804
3816
  }) {
3805
- const [p, b] = ue(d, f, h), [m, v] = ie(!1), [w, g] = ie(!1), x = Me(), _ = B(null), k = B(null), M = B(), S = B(), T = B(!1), I = B(!1), C = B(!1), N = tn(p, 250);
3817
+ const [p, b] = ue(d, f, h), [m, v] = ie(!1), [w, g] = ie(!1), x = Me(), _ = B(null), k = B(null), M = B(), S = B(), T = B(!1), I = B(!1), C = B(!1), N = an(p, 250);
3806
3818
  let y = t, A = e;
3807
3819
  if (typeof t == "string" && A == null && t.includes("|")) {
3808
3820
  const V = t.indexOf("|");
@@ -3810,43 +3822,43 @@ function ei({
3810
3822
  }
3811
3823
  const z = () => {
3812
3824
  clearTimeout(M.current), M.current = void 0, clearTimeout(S.current), S.current = void 0;
3813
- }, $ = Se((V = !1) => {
3825
+ }, L = Se((V = !1) => {
3814
3826
  var j;
3815
3827
  z(), T.current = !1, C.current = !1, ((j = Be.current) == null ? void 0 : j.id) === x && (Be.current = null, Be.hiddenAt = performance.now()), g(V), v(!1), b(!1);
3816
3828
  }), F = Se(() => {
3817
3829
  if (z(), c || p) return;
3818
3830
  const V = Be.current, j = !!V && V.id !== x;
3819
- j ? V.hide(!0) : Be.lastPos = null, Be.current = { id: x, hide: $ }, g(!1), v(j), b(!0);
3831
+ j ? V.hide(!0) : Be.lastPos = null, Be.current = { id: x, hide: L }, g(!1), v(j), b(!0);
3820
3832
  }), O = () => {
3821
3833
  if (clearTimeout(S.current), S.current = void 0, c || p || M.current) return;
3822
3834
  Be.current && Be.current.id !== x || performance.now() - Be.hiddenAt < l || o <= 0 ? F() : M.current = setTimeout(F, o);
3823
3835
  }, P = () => {
3824
3836
  clearTimeout(M.current), M.current = void 0, !(!p || S.current) && (S.current = setTimeout(() => {
3825
- S.current = void 0, !(T.current || I.current || C.current) && $();
3837
+ S.current = void 0, !(T.current || I.current || C.current) && L();
3826
3838
  }, i));
3827
3839
  };
3828
3840
  de(() => () => {
3829
3841
  var V;
3830
3842
  z(), ((V = Be.current) == null ? void 0 : V.id) === x && (Be.current = null);
3831
3843
  }, []), de(() => {
3832
- c && p && $();
3833
- }, [c, p, $]), nn(p, () => $()), de(() => {
3844
+ c && p && L();
3845
+ }, [c, p, L]), rn(p, () => L()), de(() => {
3834
3846
  if (!p) return;
3835
3847
  const V = (J) => {
3836
- var L;
3837
- if ((L = k.current) != null && L.contains(J.target)) {
3848
+ var $;
3849
+ if (($ = k.current) != null && $.contains(J.target)) {
3838
3850
  C.current = !0;
3839
3851
  return;
3840
3852
  }
3841
- $();
3853
+ L();
3842
3854
  }, j = () => {
3843
3855
  C.current && (C.current = !1, T.current || P());
3844
- }, le = () => $();
3856
+ }, le = () => L();
3845
3857
  return document.addEventListener("pointerdown", V, !0), document.addEventListener("pointerup", j, !0), document.addEventListener("pointercancel", j, !0), window.addEventListener("scroll", le, { capture: !0, passive: !0 }), () => {
3846
3858
  document.removeEventListener("pointerdown", V, !0), document.removeEventListener("pointerup", j, !0), document.removeEventListener("pointercancel", j, !0), window.removeEventListener("scroll", le, { capture: !0 });
3847
3859
  };
3848
- }, [p, $]);
3849
- const H = n.props["aria-describedby"], U = on(n, {
3860
+ }, [p, L]);
3861
+ const H = n.props["aria-describedby"], U = ln(n, {
3850
3862
  "aria-describedby": N.mounted ? R(H, x) : H,
3851
3863
  onPointerEnter: (V) => {
3852
3864
  V.pointerType !== "touch" && (I.current = !0, O());
@@ -3855,16 +3867,16 @@ function ei({
3855
3867
  I.current = !1, P();
3856
3868
  },
3857
3869
  onFocus: (V) => {
3858
- os(V.currentTarget) && O();
3870
+ us(V.currentTarget) && O();
3859
3871
  },
3860
3872
  onBlur: () => {
3861
- !T.current && !C.current && $();
3873
+ !T.current && !C.current && L();
3862
3874
  }
3863
3875
  }, _);
3864
3876
  return /* @__PURE__ */ E(Pe, { children: [
3865
3877
  U,
3866
3878
  N.mounted && y != null && y !== "" && /* @__PURE__ */ s(At, { children: /* @__PURE__ */ E(
3867
- ss,
3879
+ fs,
3868
3880
  {
3869
3881
  id: x,
3870
3882
  anchorRef: _,
@@ -3890,7 +3902,7 @@ function ei({
3890
3902
  ) })
3891
3903
  ] });
3892
3904
  }
3893
- function ss({ id: t, anchorRef: e, tipRef: n, presenceRef: a, state: r, warm: o, instant: l, placement: i, offset: c, className: d, onPointerEnter: f, onPointerLeave: h, children: u }) {
3905
+ function fs({ id: t, anchorRef: e, tipRef: n, presenceRef: a, state: r, warm: o, instant: l, placement: i, offset: c, className: d, onPointerEnter: f, onPointerLeave: h, children: u }) {
3894
3906
  const p = B(!0);
3895
3907
  return zn({ open: !0, anchorRef: e, floatingRef: n, placement: i, offset: c, onPosition: (m) => {
3896
3908
  const v = n.current;
@@ -3916,11 +3928,11 @@ function ss({ id: t, anchorRef: e, tipRef: n, presenceRef: a, state: r, warm: o,
3916
3928
  }
3917
3929
  );
3918
3930
  }
3919
- const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="true"])', ls = 150, is = (t) => {
3931
+ const cn = $e(null), qn = $e(null), Xt = '[data-ok-item]:not([aria-disabled="true"])', ps = 150, hs = (t) => {
3920
3932
  var e;
3921
3933
  return t.dataset.text ?? ((e = t.querySelector(".ok-menu__label")) == null ? void 0 : e.textContent) ?? t.textContent ?? "";
3922
3934
  }, Vn = D(function({ focusOnOpen: e = null, bare: n = !1, className: a, children: r, onKeyDown: o, onPointerMove: l, onPointerLeave: i, onFocus: c, ...d }, f) {
3923
- const h = we(sn), u = B(null), { hlRef: p, moveTo: b } = Bn(), [m, v] = ie(null), w = ar(), g = B(null), x = B(!1), _ = Se(() => x.current), k = Se(() => {
3935
+ const h = we(cn), u = B(null), { hlRef: p, moveTo: b } = Bn(), [m, v] = ie(null), w = nr(), g = B(null), x = B(!1), _ = Se(() => x.current), k = Se(() => {
3924
3936
  x.current = !1, v(null), b(null);
3925
3937
  const C = u.current;
3926
3938
  C && C !== document.activeElement && C.contains(document.activeElement) && C.focus({ preventScroll: !0 });
@@ -3943,7 +3955,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
3943
3955
  if (!F || (H = y()) != null && H.contains(F) || (U = A()) != null && U.contains(F)) return;
3944
3956
  const O = u.current, P = O != null && O.contains(F) ? F.closest(Xt) : null;
3945
3957
  P ? P.focus({ preventScroll: !0 }) : (O != null && O.contains(F) || !C) && k();
3946
- }, $ = (F) => {
3958
+ }, L = (F) => {
3947
3959
  var V, j;
3948
3960
  const O = { x: F.clientX, y: F.clientY }, P = g.current;
3949
3961
  g.current = O, clearTimeout(N);
@@ -3954,18 +3966,18 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
3954
3966
  return;
3955
3967
  }
3956
3968
  if (!((V = A()) != null && V.contains(H))) {
3957
- if (P && Qo(P, O, U.getBoundingClientRect())) {
3969
+ if (P && os(P, O, U.getBoundingClientRect())) {
3958
3970
  x.current = !0, N = setTimeout(() => {
3959
3971
  x.current = !1, z(H);
3960
- }, ls);
3972
+ }, ps);
3961
3973
  return;
3962
3974
  }
3963
3975
  (j = u.current) != null && j.contains(H) && H.closest(Xt) || z(H);
3964
3976
  }
3965
3977
  }
3966
3978
  };
3967
- return document.addEventListener("pointermove", $, !0), () => {
3968
- document.removeEventListener("pointermove", $, !0), clearTimeout(N), x.current = !1;
3979
+ return document.addEventListener("pointermove", L, !0), () => {
3980
+ document.removeEventListener("pointermove", L, !0), clearTimeout(N), x.current = !1;
3969
3981
  };
3970
3982
  }, [m, k]), de(() => {
3971
3983
  var y;
@@ -3979,9 +3991,9 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
3979
3991
  }, [T]);
3980
3992
  const I = (C) => {
3981
3993
  if (o == null || o(C), C.defaultPrevented || !C.currentTarget.contains(C.target)) return;
3982
- const N = S(), y = N.length, A = N.indexOf(document.activeElement), z = ($) => {
3994
+ const N = S(), y = N.length, A = N.indexOf(document.activeElement), z = (L) => {
3983
3995
  C.preventDefault();
3984
- const F = N[$];
3996
+ const F = N[L];
3985
3997
  F && (F.focus({ preventScroll: !0 }), F.scrollIntoView({ block: "nearest" }));
3986
3998
  };
3987
3999
  if (C.key === "ArrowDown") z(A < 0 ? 0 : (A + 1) % y);
@@ -3989,9 +4001,9 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
3989
4001
  else if (C.key === "Home" || C.key === "PageUp") z(0);
3990
4002
  else if (C.key === "End" || C.key === "PageDown") z(y - 1);
3991
4003
  else if (C.key === "Tab") h == null || h.close("tab");
3992
- else if (nr(C) && (C.key !== " " || w.pending())) {
3993
- const $ = w.search(C.key, N.map(is), A);
3994
- C.preventDefault(), $ >= 0 && z($);
4004
+ else if (tr(C) && (C.key !== " " || w.pending())) {
4005
+ const L = w.search(C.key, N.map(hs), A);
4006
+ C.preventDefault(), L >= 0 && z(L);
3995
4007
  }
3996
4008
  };
3997
4009
  return /* @__PURE__ */ s(qn.Provider, { value: M, children: /* @__PURE__ */ E(
@@ -4019,7 +4031,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4019
4031
  ]
4020
4032
  }
4021
4033
  ) });
4022
- }), ln = D(function({
4034
+ }), dn = D(function({
4023
4035
  role: e = "menuitem",
4024
4036
  icon: n,
4025
4037
  shortcut: a,
@@ -4037,7 +4049,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4037
4049
  onPointerMove: m,
4038
4050
  ...v
4039
4051
  }, w) {
4040
- const g = we(qn), x = we(sn), _ = r && r !== "neutral" ? r : void 0;
4052
+ const g = we(qn), x = we(cn), _ = r && r !== "neutral" ? r : void 0;
4041
4053
  return /* @__PURE__ */ E(
4042
4054
  "button",
4043
4055
  {
@@ -4079,12 +4091,12 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4079
4091
  ]
4080
4092
  }
4081
4093
  );
4082
- }), ti = D(function(e, n) {
4083
- return /* @__PURE__ */ s(ln, { ...e, ref: n });
4084
- }), ni = D(function({ checked: e, defaultChecked: n = !1, onCheckedChange: a, onSelect: r, closeOnSelect: o = !1, ...l }, i) {
4094
+ }), li = D(function(e, n) {
4095
+ return /* @__PURE__ */ s(dn, { ...e, ref: n });
4096
+ }), ii = D(function({ checked: e, defaultChecked: n = !1, onCheckedChange: a, onSelect: r, closeOnSelect: o = !1, ...l }, i) {
4085
4097
  const [c, d] = ue(e, n, a), f = Fn(c, !Hn());
4086
4098
  return /* @__PURE__ */ s(
4087
- ln,
4099
+ dn,
4088
4100
  {
4089
4101
  ...l,
4090
4102
  ref: i,
@@ -4097,13 +4109,13 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4097
4109
  trailing: /* @__PURE__ */ s(On, {})
4098
4110
  }
4099
4111
  );
4100
- }), sr = Le(null), ai = D(function({ value: e, defaultValue: n = null, onChange: a, children: r, ...o }, l) {
4112
+ }), or = $e(null), ci = D(function({ value: e, defaultValue: n = null, onChange: a, children: r, ...o }, l) {
4101
4113
  const [i, c] = ue(e, n, a), d = Ae(() => ({ value: i, set: c }), [i, c]);
4102
- return /* @__PURE__ */ s(sr.Provider, { value: d, children: /* @__PURE__ */ s("div", { role: "group", ...o, ref: l, children: r }) });
4103
- }), ri = D(function({ value: e, onSelect: n, closeOnSelect: a = !1, ...r }, o) {
4104
- const l = we(sr), i = Fn((l == null ? void 0 : l.value) === e, !Hn());
4114
+ return /* @__PURE__ */ s(or.Provider, { value: d, children: /* @__PURE__ */ s("div", { role: "group", ...o, ref: l, children: r }) });
4115
+ }), di = D(function({ value: e, onSelect: n, closeOnSelect: a = !1, ...r }, o) {
4116
+ const l = we(or), i = Fn((l == null ? void 0 : l.value) === e, !Hn());
4105
4117
  return /* @__PURE__ */ s(
4106
- ln,
4118
+ dn,
4107
4119
  {
4108
4120
  ...r,
4109
4121
  ref: o,
@@ -4116,11 +4128,11 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4116
4128
  trailing: /* @__PURE__ */ s(On, {})
4117
4129
  }
4118
4130
  );
4119
- }), oi = D(function({ className: e, ...n }, a) {
4131
+ }), ui = D(function({ className: e, ...n }, a) {
4120
4132
  return /* @__PURE__ */ s("div", { role: "separator", ...n, ref: a, className: R("ok-menu__sep", e) });
4121
- }), si = D(function({ className: e, ...n }, a) {
4133
+ }), fi = D(function({ className: e, ...n }, a) {
4122
4134
  return /* @__PURE__ */ s("div", { role: "presentation", ...n, ref: a, className: R("ok-menu__heading", e) });
4123
- }), li = D(function({ label: e, children: n, disabled: a, onKeyDown: r, ...o }, l) {
4135
+ }), pi = D(function({ label: e, children: n, disabled: a, onKeyDown: r, ...o }, l) {
4124
4136
  const i = Me(), c = we(qn), d = B(null), f = B(null), h = !!c && c.openSub === i, [u, p] = ie(null), b = (v) => {
4125
4137
  var w, g;
4126
4138
  if (!(a || !c)) {
@@ -4138,7 +4150,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4138
4150
  h || p(null);
4139
4151
  }, [h]), /* @__PURE__ */ E(Pe, { children: [
4140
4152
  /* @__PURE__ */ s(
4141
- ln,
4153
+ dn,
4142
4154
  {
4143
4155
  ...o,
4144
4156
  ref: Ne(l, d),
@@ -4187,7 +4199,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4187
4199
  }
4188
4200
  )
4189
4201
  ] });
4190
- }), ii = D(function({ trigger: e, children: n, open: a, defaultOpen: r = !1, onOpenChange: o, placement: l = "bottom-start", offset: i = 8, matchTriggerWidth: c = !0, id: d, ...f }, h) {
4202
+ }), hi = D(function({ trigger: e, children: n, open: a, defaultOpen: r = !1, onOpenChange: o, placement: l = "bottom-start", offset: i = 8, matchTriggerWidth: c = !0, id: d, ...f }, h) {
4191
4203
  const [u, p] = ue(a, r, o), [b, m] = ie("menu"), v = B(null), w = Me(), g = d ?? `${w}-menu`, x = (S) => {
4192
4204
  m(S), p(!0);
4193
4205
  }, _ = (S) => {
@@ -4198,7 +4210,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4198
4210
  // Tab:先把焦点交还触发元素,浏览器接着把它移到下一个可聚焦元素
4199
4211
  close: () => _(!0)
4200
4212
  // eslint-disable-next-line react-hooks/exhaustive-deps
4201
- }), [u, p]), M = on(e, {
4213
+ }), [u, p]), M = ln(e, {
4202
4214
  "aria-haspopup": "menu",
4203
4215
  "aria-expanded": u,
4204
4216
  "aria-controls": u ? g : void 0,
@@ -4208,7 +4220,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4208
4220
  (S.key === "ArrowDown" || S.key === "ArrowUp") && (S.preventDefault(), x(S.key === "ArrowDown" ? "first" : "last"));
4209
4221
  }
4210
4222
  }, v);
4211
- return /* @__PURE__ */ E(sn.Provider, { value: k, children: [
4223
+ return /* @__PURE__ */ E(cn.Provider, { value: k, children: [
4212
4224
  M,
4213
4225
  /* @__PURE__ */ s(
4214
4226
  Ct,
@@ -4224,7 +4236,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4224
4236
  }
4225
4237
  )
4226
4238
  ] });
4227
- }), cs = 10, ci = D(function({ children: e, menu: n, open: a, onOpenChange: r, disabled: o, longPressMs: l = 500, id: i, ...c }, d) {
4239
+ }), ms = 10, mi = D(function({ children: e, menu: n, open: a, onOpenChange: r, disabled: o, longPressMs: l = 500, id: i, ...c }, d) {
4228
4240
  const [f, h] = ue(a, !1, r), [u, p] = ie({ x: 0, y: 0 }), b = B(u);
4229
4241
  b.current = u;
4230
4242
  const m = B({
@@ -4257,7 +4269,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4257
4269
  open: f,
4258
4270
  close: () => S(!0)
4259
4271
  // eslint-disable-next-line react-hooks/exhaustive-deps
4260
- }), [f, h]), C = on(e, {
4272
+ }), [f, h]), C = ln(e, {
4261
4273
  "data-state": f ? "open" : "closed",
4262
4274
  className: "ok-context-area",
4263
4275
  onContextMenu: (N) => {
@@ -4277,13 +4289,13 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4277
4289
  },
4278
4290
  onPointerMove: (N) => {
4279
4291
  const y = x.current;
4280
- y && Math.hypot(N.clientX - y.x, N.clientY - y.y) > cs && T();
4292
+ y && Math.hypot(N.clientX - y.x, N.clientY - y.y) > ms && T();
4281
4293
  },
4282
4294
  onPointerUp: T,
4283
4295
  onPointerCancel: T,
4284
4296
  onPointerLeave: T
4285
4297
  }, w);
4286
- return /* @__PURE__ */ E(sn.Provider, { value: I, children: [
4298
+ return /* @__PURE__ */ E(cn.Provider, { value: I, children: [
4287
4299
  C,
4288
4300
  /* @__PURE__ */ s(
4289
4301
  Ct,
@@ -4299,7 +4311,7 @@ const sn = Le(null), qn = Le(null), Xt = '[data-ok-item]:not([aria-disabled="tru
4299
4311
  }
4300
4312
  )
4301
4313
  ] });
4302
- }), Jt = (t) => "options" in t, ht = (t) => t.flatMap((e) => Jt(e) ? e.options : [e]), Mt = (t) => t.textValue ?? (typeof t.label == "string" || typeof t.label == "number" ? String(t.label) : t.value);
4314
+ }), Qt = (t) => "options" in t, ht = (t) => t.flatMap((e) => Qt(e) ? e.options : [e]), Mt = (t) => t.textValue ?? (typeof t.label == "string" || typeof t.label == "number" ? String(t.label) : t.value);
4303
4315
  function St(t, e, n) {
4304
4316
  const a = t.length;
4305
4317
  for (let r = 1; r <= a; r++) {
@@ -4308,7 +4320,7 @@ function St(t, e, n) {
4308
4320
  }
4309
4321
  return -1;
4310
4322
  }
4311
- const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) => `${t}-opt-${e}`, lr = D(function({ id: e, entries: n, activeIndex: a, onActiveChange: r, isSelected: o, onPick: l, multi: i, lockWidth: c, followActive: d, className: f, ...h }, u) {
4323
+ const Rt = (t) => St(t, -1, 1), Cn = (t) => St(t, t.length, -1), Wn = (t, e) => `${t}-opt-${e}`, sr = D(function({ id: e, entries: n, activeIndex: a, onActiveChange: r, isSelected: o, onPick: l, multi: i, lockWidth: c, followActive: d, className: f, ...h }, u) {
4312
4324
  const p = B(null), { hlRef: b, moveTo: m } = Bn(), v = !Hn(), w = ht(n).filter((k) => o(k.value)).map((k) => k.value), g = new Set(JSON.parse(Fn(JSON.stringify(w), v)));
4313
4325
  xe(() => {
4314
4326
  var M;
@@ -4376,7 +4388,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4376
4388
  children: [
4377
4389
  /* @__PURE__ */ s("span", { className: "ok-menu__hl", ref: b, "aria-hidden": "true" }),
4378
4390
  n.map(
4379
- (k, M) => Jt(k) ? /* @__PURE__ */ E("div", { role: "group", "aria-labelledby": `${e}-group-${M}`, children: [
4391
+ (k, M) => Qt(k) ? /* @__PURE__ */ E("div", { role: "group", "aria-labelledby": `${e}-group-${M}`, children: [
4380
4392
  /* @__PURE__ */ s("div", { className: "ok-menu__heading", id: `${e}-group-${M}`, role: "presentation", children: k.label }),
4381
4393
  k.options.map(_)
4382
4394
  ] }, `group-${M}`) : _(k)
@@ -4384,7 +4396,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4384
4396
  ]
4385
4397
  }
4386
4398
  );
4387
- }), ir = D(function({
4399
+ }), lr = D(function({
4388
4400
  multi: e,
4389
4401
  selected: n,
4390
4402
  onPick: a,
@@ -4417,7 +4429,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4417
4429
  "aria-describedby": M,
4418
4430
  "aria-labelledby": k,
4419
4431
  "aria-label": _
4420
- }), { disabled: A, invalid: z } = y, $ = c ?? !!N, [F, O] = ue(b, m, v), [P, H] = ie(-1), [U, V] = ie(!1), j = B(null), J = `${Me()}-list`, L = Ae(() => ht(o), [o]), q = ar(), G = L.findIndex((W) => n.includes(W.value) && !W.disabled), ae = (W) => {
4432
+ }), { disabled: A, invalid: z } = y, L = c ?? !!N, [F, O] = ue(b, m, v), [P, H] = ie(-1), [U, V] = ie(!1), j = B(null), J = `${Me()}-list`, $ = Ae(() => ht(o), [o]), q = nr(), G = $.findIndex((W) => n.includes(W.value) && !W.disabled), ae = (W) => {
4421
4433
  H(W), V(W >= 0), O(!0);
4422
4434
  }, Q = () => O(!1), re = (W) => {
4423
4435
  W >= 0 && (H(W), V(!0));
@@ -4425,30 +4437,30 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4425
4437
  a(W), e || Q();
4426
4438
  }, X = (W) => {
4427
4439
  if (A) return;
4428
- const oe = W.key, he = nr(W) && (oe !== " " || q.pending());
4440
+ const oe = W.key, he = tr(W) && (oe !== " " || q.pending());
4429
4441
  if (!F) {
4430
4442
  if (oe === "ArrowDown" || oe === "ArrowUp" || oe === "Enter" || oe === " ")
4431
- W.preventDefault(), ae(G >= 0 ? G : oe === "ArrowUp" ? Sn(L) : Rt(L));
4443
+ W.preventDefault(), ae(G >= 0 ? G : oe === "ArrowUp" ? Cn($) : Rt($));
4432
4444
  else if (he) {
4433
4445
  W.preventDefault();
4434
- const te = q.search(oe, L.map(Mt), G);
4435
- ae(te >= 0 && !L[te].disabled ? te : G);
4446
+ const te = q.search(oe, $.map(Mt), G);
4447
+ ae(te >= 0 && !$[te].disabled ? te : G);
4436
4448
  }
4437
4449
  return;
4438
4450
  }
4439
4451
  if (oe === "ArrowDown" || oe === "ArrowUp")
4440
- W.preventDefault(), P < 0 && G >= 0 ? re(G) : re(oe === "ArrowDown" ? St(L, P, 1) : St(L, P < 0 ? L.length : P, -1));
4452
+ W.preventDefault(), P < 0 && G >= 0 ? re(G) : re(oe === "ArrowDown" ? St($, P, 1) : St($, P < 0 ? $.length : P, -1));
4441
4453
  else if (oe === "Home" || oe === "PageUp")
4442
- W.preventDefault(), re(Rt(L));
4454
+ W.preventDefault(), re(Rt($));
4443
4455
  else if (oe === "End" || oe === "PageDown")
4444
- W.preventDefault(), re(Sn(L));
4456
+ W.preventDefault(), re(Cn($));
4445
4457
  else if (he) {
4446
4458
  W.preventDefault();
4447
- const te = q.search(oe, L.map(Mt), P);
4448
- te >= 0 && !L[te].disabled && re(te);
4449
- } else oe === "Enter" || oe === " " ? (W.preventDefault(), P >= 0 && L[P] && !L[P].disabled ? pe(L[P]) : Q()) : oe === "Tab" && Q();
4459
+ const te = q.search(oe, $.map(Mt), P);
4460
+ te >= 0 && !$[te].disabled && re(te);
4461
+ } else oe === "Enter" || oe === " " ? (W.preventDefault(), P >= 0 && $[P] && !$[P].disabled ? pe($[P]) : Q()) : oe === "Tab" && Q();
4450
4462
  };
4451
- return /* @__PURE__ */ E("div", { ...S, ref: T, className: R("ok-select", $ && "ok-select--block", x), "data-size": i, "data-disabled": A || void 0, children: [
4463
+ return /* @__PURE__ */ E("div", { ...S, ref: T, className: R("ok-select", L && "ok-select--block", x), "data-size": i, "data-disabled": A || void 0, children: [
4452
4464
  /* @__PURE__ */ E(
4453
4465
  "button",
4454
4466
  {
@@ -4491,7 +4503,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4491
4503
  className: "ok-popup--menu",
4492
4504
  onDismiss: Q,
4493
4505
  children: /* @__PURE__ */ s(
4494
- lr,
4506
+ sr,
4495
4507
  {
4496
4508
  id: J,
4497
4509
  entries: o,
@@ -4511,10 +4523,10 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4511
4523
  }
4512
4524
  )
4513
4525
  ] });
4514
- }), di = D(function({ value: e, defaultValue: n = null, onChange: a, ...r }, o) {
4526
+ }), bi = D(function({ value: e, defaultValue: n = null, onChange: a, ...r }, o) {
4515
4527
  const [l, i] = ue(e, n), c = Se(a), d = Ae(() => ht(r.options).find((f) => f.value === l), [r.options, l]);
4516
4528
  return /* @__PURE__ */ s(
4517
- ir,
4529
+ lr,
4518
4530
  {
4519
4531
  ...r,
4520
4532
  ref: o,
@@ -4526,7 +4538,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4526
4538
  }
4527
4539
  }
4528
4540
  );
4529
- }), ds = [], ui = D(function({ value: e, defaultValue: n = ds, onChange: a, display: r = "chips", maxChips: o = 2, renderValue: l, ...i }, c) {
4541
+ }), bs = [], vi = D(function({ value: e, defaultValue: n = bs, onChange: a, display: r = "chips", maxChips: o = 2, renderValue: l, ...i }, c) {
4530
4542
  const { messages: d } = ve(), [f, h] = ue(e, n, a), u = Ae(() => {
4531
4543
  const b = ht(i.options);
4532
4544
  return f.map((m) => b.find((v) => v.value === m)).filter(Boolean);
@@ -4539,7 +4551,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4539
4551
  u.length - o
4540
4552
  ] })
4541
4553
  ] }), /* @__PURE__ */ s(
4542
- ir,
4554
+ lr,
4543
4555
  {
4544
4556
  ...i,
4545
4557
  ref: c,
@@ -4549,7 +4561,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4549
4561
  onPick: (b) => h(f.includes(b.value) ? f.filter((m) => m !== b.value) : [...f, b.value])
4550
4562
  }
4551
4563
  );
4552
- }), us = (t, e) => Mt(t).toLowerCase().includes(e.trim().toLowerCase()), fs = D(function({
4564
+ }), vs = (t, e) => Mt(t).toLowerCase().includes(e.trim().toLowerCase()), gs = D(function({
4553
4565
  options: e,
4554
4566
  value: n,
4555
4567
  defaultValue: a = null,
@@ -4557,7 +4569,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4557
4569
  inputValue: o,
4558
4570
  defaultInputValue: l,
4559
4571
  onInputChange: i,
4560
- filter: c = us,
4572
+ filter: c = vs,
4561
4573
  loading: d = !1,
4562
4574
  loadingText: f,
4563
4575
  emptyText: h,
@@ -4580,13 +4592,13 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4580
4592
  rootClassName: y,
4581
4593
  rootStyle: A,
4582
4594
  id: z,
4583
- onKeyDown: $,
4595
+ onKeyDown: L,
4584
4596
  onBlur: F,
4585
4597
  onClick: O,
4586
4598
  "aria-describedby": P,
4587
4599
  ...H
4588
4600
  }, U) {
4589
- const { messages: V } = ve(), j = f === void 0 ? V.combobox.loading : f, le = h === void 0 ? V.combobox.empty : h, J = we(Ge), L = Te({ id: z, disabled: x, required: _, invalid: v, "aria-describedby": P }), { disabled: q, invalid: G } = L, ae = Ae(() => ht(e), [e]), Q = (se) => {
4601
+ const { messages: V } = ve(), j = f === void 0 ? V.combobox.loading : f, le = h === void 0 ? V.combobox.empty : h, J = we(Ge), $ = Te({ id: z, disabled: x, required: _, invalid: v, "aria-describedby": P }), { disabled: q, invalid: G } = $, ae = Ae(() => ht(e), [e]), Q = (se) => {
4590
4602
  if (se == null) return "";
4591
4603
  const ye = ae.find((Re) => Re.value === se);
4592
4604
  return ye ? Mt(ye) : u ? se : "";
@@ -4594,7 +4606,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4594
4606
  o ?? (u && n != null ? n : void 0),
4595
4607
  l ?? Q(a),
4596
4608
  i
4597
- ), [he, te] = ue(k, M, S), [ce, Z] = ie(-1), [K, Y] = ie(!1), [fe, me] = ie(!1), $e = B(null), qe = B(null), ze = `${Me()}-list`, Ee = (se, ye) => !c || !ye || !se.trim() ? e : e.map((Re) => Jt(Re) ? { ...Re, options: Re.options.filter((ot) => c(ot, se)) } : Re).filter((Re) => Jt(Re) ? Re.options.length > 0 : c(Re, se)), De = Ee(W, fe), _e = ht(De), nt = (se, ye) => {
4609
+ ), [he, te] = ue(k, M, S), [ce, Z] = ie(-1), [K, Y] = ie(!1), [fe, me] = ie(!1), Le = B(null), qe = B(null), ze = `${Me()}-list`, Ee = (se, ye) => !c || !ye || !se.trim() ? e : e.map((Re) => Qt(Re) ? { ...Re, options: Re.options.filter((ot) => c(ot, se)) } : Re).filter((Re) => Qt(Re) ? Re.options.length > 0 : c(Re, se)), De = Ee(W, fe), _e = ht(De), nt = (se, ye) => {
4598
4610
  se !== re && (pe(se), X(se, ye));
4599
4611
  }, at = (se, ye) => {
4600
4612
  Z(se), Y(ye), te(!0);
@@ -4607,14 +4619,14 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4607
4619
  !he || !fe || d || (Z(Rt(_e)), Y(!0));
4608
4620
  }, [ne, d]);
4609
4621
  const ee = (se) => {
4610
- if ($ == null || $(se), se.defaultPrevented || q) return;
4622
+ if (L == null || L(se), se.defaultPrevented || q) return;
4611
4623
  const ye = se.key;
4612
- ye === "ArrowDown" || ye === "ArrowUp" ? (se.preventDefault(), he ? (Y(!0), Z(ye === "ArrowDown" ? St(_e, ce, 1) : St(_e, ce < 0 ? _e.length : ce, -1))) : at(rt >= 0 ? rt : ye === "ArrowDown" ? Rt(_e) : Sn(_e), !0)) : ye === "Enter" ? he && ce >= 0 && _e[ce] && !_e[ce].disabled ? (se.preventDefault(), ct(_e[ce])) : he && je() : ye === "Tab" && he && je();
4624
+ ye === "ArrowDown" || ye === "ArrowUp" ? (se.preventDefault(), he ? (Y(!0), Z(ye === "ArrowDown" ? St(_e, ce, 1) : St(_e, ce < 0 ? _e.length : ce, -1))) : at(rt >= 0 ? rt : ye === "ArrowDown" ? Rt(_e) : Cn(_e), !0)) : ye === "Enter" ? he && ce >= 0 && _e[ce] && !_e[ce].disabled ? (se.preventDefault(), ct(_e[ce])) : he && je() : ye === "Tab" && he && je();
4613
4625
  }, ge = d || _e.length > 0 || le != null, be = he && ge && !q;
4614
4626
  return /* @__PURE__ */ E(
4615
4627
  "div",
4616
4628
  {
4617
- ref: Ne(N, $e),
4629
+ ref: Ne(N, Le),
4618
4630
  className: R("ok-input ok-combobox", m === "lg" && "ok-input--lg", W && p && "has-value", y, I),
4619
4631
  style: { ...A, ...C },
4620
4632
  "data-size": m,
@@ -4635,7 +4647,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4635
4647
  spellCheck: !1,
4636
4648
  ...H,
4637
4649
  ref: Ne(U, qe),
4638
- id: L.id,
4650
+ id: $.id,
4639
4651
  role: "combobox",
4640
4652
  "aria-autocomplete": "list",
4641
4653
  "aria-haspopup": "listbox",
@@ -4643,10 +4655,10 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4643
4655
  "aria-controls": be ? ze : void 0,
4644
4656
  "aria-activedescendant": be && ce >= 0 ? Wn(ze, ce) : void 0,
4645
4657
  "aria-invalid": G || void 0,
4646
- "aria-describedby": L.describedBy,
4658
+ "aria-describedby": $.describedBy,
4647
4659
  "aria-busy": d || void 0,
4648
4660
  disabled: q,
4649
- required: L.required || void 0,
4661
+ required: $.required || void 0,
4650
4662
  name: u ? w : void 0,
4651
4663
  form: u ? g : void 0,
4652
4664
  value: W,
@@ -4684,7 +4696,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4684
4696
  Ct,
4685
4697
  {
4686
4698
  open: be,
4687
- anchorRef: $e,
4699
+ anchorRef: Le,
4688
4700
  placement: T,
4689
4701
  matchWidth: "min",
4690
4702
  className: "ok-popup--menu",
@@ -4694,7 +4706,7 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4694
4706
  d && /* @__PURE__ */ s("div", { className: "ok-menu__empty", role: "status", children: j }),
4695
4707
  !d && _e.length === 0 && /* @__PURE__ */ s("div", { className: "ok-menu__empty", role: "status", children: le }),
4696
4708
  /* @__PURE__ */ s(
4697
- lr,
4709
+ sr,
4698
4710
  {
4699
4711
  id: ze,
4700
4712
  entries: De,
@@ -4716,21 +4728,21 @@ const Rt = (t) => St(t, -1, 1), Sn = (t) => St(t, t.length, -1), Wn = (t, e) =>
4716
4728
  ]
4717
4729
  }
4718
4730
  );
4719
- }), fi = D(function(e, n) {
4720
- return /* @__PURE__ */ s(fs, { ...e, ref: n, freeSolo: !0 });
4731
+ }), gi = D(function(e, n) {
4732
+ return /* @__PURE__ */ s(gs, { ...e, ref: n, freeSolo: !0 });
4721
4733
  }), Je = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), Ze = (t, e) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + e);
4722
- function Lt(t, e) {
4734
+ function $t(t, e) {
4723
4735
  const n = new Date(t.getFullYear(), t.getMonth() + e, 1), a = new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate();
4724
4736
  return new Date(n.getFullYear(), n.getMonth(), Math.min(t.getDate(), a));
4725
4737
  }
4726
- const We = (t, e) => !!t && !!e && t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate(), It = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth(), yn = (t, e = 2) => String(t).padStart(e, "0"), et = (t) => `${yn(t.getFullYear(), 4)}-${yn(t.getMonth() + 1)}-${yn(t.getDate())}`;
4727
- function cr(t) {
4738
+ const We = (t, e) => !!t && !!e && t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate(), It = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth(), xn = (t, e = 2) => String(t).padStart(e, "0"), et = (t) => `${xn(t.getFullYear(), 4)}-${xn(t.getMonth() + 1)}-${xn(t.getDate())}`;
4739
+ function ir(t) {
4728
4740
  const e = /^\s*(\d{4})\s*[-/.年]\s*(\d{1,2})\s*[-/.月]\s*(\d{1,2})\s*日?\s*$/.exec(t);
4729
4741
  if (!e) return null;
4730
4742
  const [n, a, r] = [Number(e[1]), Number(e[2]), Number(e[3])], o = new Date(n, a - 1, r);
4731
4743
  return o.setFullYear(n), o.getFullYear() === n && o.getMonth() === a - 1 && o.getDate() === r ? o : null;
4732
4744
  }
4733
- const dr = D(function({
4745
+ const cr = D(function({
4734
4746
  anchorDate: e,
4735
4747
  isSelected: n,
4736
4748
  rangePart: a,
@@ -4753,13 +4765,13 @@ const dr = D(function({
4753
4765
  "aria-label": _,
4754
4766
  ...k
4755
4767
  }, M) {
4756
- const { locale: S, messages: T } = ve(), I = m ?? S, C = Ae(() => Je(v ?? /* @__PURE__ */ new Date()), [v]), N = Ae(() => h ? Je(h) : null, [h]), y = Ae(() => u ? Je(u) : null, [u]), A = (Z) => N && Z < N ? N : y && Z > y ? y : Z, z = (Z) => !!g || !!N && Z < N || !!y && Z > y || !!(p != null && p(Z)), $ = A(Je(e ?? d ?? c ?? C)), [F, O] = ie($), [P, H] = ue(c, d ?? $, f), U = new Date(P.getFullYear(), P.getMonth(), 1), V = B(null), j = B(!!w), le = Me(), J = e ? et(e) : "";
4768
+ const { locale: S, messages: T } = ve(), I = m ?? S, C = Ae(() => Je(v ?? /* @__PURE__ */ new Date()), [v]), N = Ae(() => h ? Je(h) : null, [h]), y = Ae(() => u ? Je(u) : null, [u]), A = (Z) => N && Z < N ? N : y && Z > y ? y : Z, z = (Z) => !!g || !!N && Z < N || !!y && Z > y || !!(p != null && p(Z)), L = A(Je(e ?? d ?? c ?? C)), [F, O] = ie(L), [P, H] = ue(c, d ?? L, f), U = new Date(P.getFullYear(), P.getMonth(), 1), V = B(null), j = B(!!w), le = Me(), J = e ? et(e) : "";
4757
4769
  de(() => {
4758
4770
  if (!e) return;
4759
4771
  const Z = Je(e);
4760
4772
  O(Z), It(Z, P) || H(Z);
4761
4773
  }, [J]);
4762
- const L = It(F, U) ? F : U, q = et(L);
4774
+ const $ = It(F, U) ? F : U, q = et($);
4763
4775
  de(() => {
4764
4776
  var Z, K;
4765
4777
  j.current && (j.current = !1, (K = (Z = V.current) == null ? void 0 : Z.querySelector(`[data-date="${q}"]`)) == null || K.focus({ preventScroll: !0 }));
@@ -4768,12 +4780,12 @@ const dr = D(function({
4768
4780
  const K = A(Z);
4769
4781
  j.current = !0, O(K), It(K, U) || H(K);
4770
4782
  }, ae = (Z) => {
4771
- const K = Lt(U, Z);
4772
- H(K), O(A(Lt(L, Z)));
4783
+ const K = $t(U, Z);
4784
+ H(K), O(A($t($, Z)));
4773
4785
  }, Q = (Z) => {
4774
4786
  const K = Z.target.closest("[data-date]");
4775
4787
  if (!K) return;
4776
- const Y = cr(K.dataset.date), fe = (Y.getDay() - b + 7) % 7;
4788
+ const Y = ir(K.dataset.date), fe = (Y.getDay() - b + 7) % 7;
4777
4789
  let me = null;
4778
4790
  switch (Z.key) {
4779
4791
  case "ArrowLeft":
@@ -4795,10 +4807,10 @@ const dr = D(function({
4795
4807
  me = Ze(Y, 6 - fe);
4796
4808
  break;
4797
4809
  case "PageUp":
4798
- me = Lt(Y, Z.shiftKey ? -12 : -1);
4810
+ me = $t(Y, Z.shiftKey ? -12 : -1);
4799
4811
  break;
4800
4812
  case "PageDown":
4801
- me = Lt(Y, Z.shiftKey ? 12 : 1);
4813
+ me = $t(Y, Z.shiftKey ? 12 : 1);
4802
4814
  break;
4803
4815
  default:
4804
4816
  return;
@@ -4810,7 +4822,7 @@ const dr = D(function({
4810
4822
  const me = new Date(2023, 0, 1 + (fe + b) % 7);
4811
4823
  return { short: Z.format(me), long: K.format(me) };
4812
4824
  });
4813
- }, [I, b]), W = (U.getDay() - b + 7) % 7, oe = Ze(U, -W), he = Array.from({ length: 6 }, (Z, K) => Array.from({ length: 7 }, (Y, fe) => Ze(oe, K * 7 + fe))), te = !!N && Ze(U, -1) < N, ce = !!y && Lt(U, 1) > y;
4825
+ }, [I, b]), W = (U.getDay() - b + 7) % 7, oe = Ze(U, -W), he = Array.from({ length: 6 }, (Z, K) => Array.from({ length: 7 }, (Y, fe) => Ze(oe, K * 7 + fe))), te = !!N && Ze(U, -1) < N, ce = !!y && $t(U, 1) > y;
4814
4826
  return /* @__PURE__ */ E("div", { ...k, ref: Ne(M, V), className: R("ok-calendar", x), "data-disabled": g || void 0, children: [
4815
4827
  /* @__PURE__ */ E("div", { className: "ok-calendar__head", children: [
4816
4828
  /* @__PURE__ */ s(
@@ -4853,8 +4865,8 @@ const dr = D(function({
4853
4865
  /* @__PURE__ */ s("span", { className: "ok-sr", children: Z.long })
4854
4866
  ] }, Z.long)) }) }),
4855
4867
  /* @__PURE__ */ s("tbody", { children: he.map((Z) => /* @__PURE__ */ s("tr", { children: Z.map((K) => {
4856
- const Y = et(K), fe = z(K), me = n(K), $e = a == null ? void 0 : a(K);
4857
- return /* @__PURE__ */ s("td", { role: "gridcell", "aria-selected": me, "aria-disabled": fe || void 0, "data-range": $e, children: /* @__PURE__ */ s(
4868
+ const Y = et(K), fe = z(K), me = n(K), Le = a == null ? void 0 : a(K);
4869
+ return /* @__PURE__ */ s("td", { role: "gridcell", "aria-selected": me, "aria-disabled": fe || void 0, "data-range": Le, children: /* @__PURE__ */ s(
4858
4870
  "button",
4859
4871
  {
4860
4872
  type: "button",
@@ -4884,10 +4896,10 @@ const dr = D(function({
4884
4896
  }
4885
4897
  )
4886
4898
  ] });
4887
- }), ps = D(function({ value: e, defaultValue: n = null, onChange: a, ...r }, o) {
4899
+ }), ks = D(function({ value: e, defaultValue: n = null, onChange: a, ...r }, o) {
4888
4900
  const [l, i] = ue(e, n, a);
4889
4901
  return /* @__PURE__ */ s(
4890
- dr,
4902
+ cr,
4891
4903
  {
4892
4904
  ...r,
4893
4905
  ref: o,
@@ -4896,10 +4908,10 @@ const dr = D(function({
4896
4908
  onPick: (c) => i(c)
4897
4909
  }
4898
4910
  );
4899
- }), hs = { start: null, end: null }, ms = D(function({ value: e, defaultValue: n = hs, onChange: a, ...r }, o) {
4911
+ }), ys = { start: null, end: null }, _s = D(function({ value: e, defaultValue: n = ys, onChange: a, ...r }, o) {
4900
4912
  const [l, i] = ue(e, n, a), [c, d] = ie(null), [f, h] = ie(null), { start: u, end: p } = l, b = c ?? f, m = p ?? (u && b ? b : null), v = u && m ? u <= m ? u : m : u, w = u && m && u <= m ? m : u;
4901
4913
  return /* @__PURE__ */ s(
4902
- dr,
4914
+ cr,
4903
4915
  {
4904
4916
  ...r,
4905
4917
  ref: o,
@@ -4930,14 +4942,14 @@ function Na(t, e) {
4930
4942
  const i = Number(o);
4931
4943
  return i >= 1 && i <= 12 ? new Date(Number(r), i - 1, 1) : null;
4932
4944
  }
4933
- const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth(), ur = () => /* @__PURE__ */ E(ke, { children: [
4945
+ const xs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth(), dr = () => /* @__PURE__ */ E(ke, { children: [
4934
4946
  /* @__PURE__ */ s("rect", { x: "3.500", y: "4.500", width: "13", height: "12", rx: "2.500" }),
4935
4947
  /* @__PURE__ */ s("path", { d: "M3.500 8.500h13M7 3v3M13 3v3" })
4936
- ] }), pi = D(function({
4948
+ ] }), ki = D(function({
4937
4949
  value: e,
4938
4950
  defaultValue: n = null,
4939
4951
  onChange: a,
4940
- parse: r = cr,
4952
+ parse: r = ir,
4941
4953
  format: o = et,
4942
4954
  min: l,
4943
4955
  max: i,
@@ -4964,11 +4976,11 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
4964
4976
  onKeyDown: y,
4965
4977
  "aria-describedby": A,
4966
4978
  ...z
4967
- }, $) {
4968
- const { messages: F } = ve(), O = I ?? F.datePicker.placeholder, P = Te({ id: C, disabled: v, required: w, invalid: p, "aria-describedby": A }), { disabled: H, invalid: U } = P, [V, j] = ue(e, n, a), [le, J] = ue(x, _, k), [L, q] = ie(V ? o(V) : ""), G = B(null), ae = B(null), Q = `${Me()}-calendar`, [re, pe] = ie(!1), [X, W] = ie(() => Je(V ?? h ?? /* @__PURE__ */ new Date()));
4979
+ }, L) {
4980
+ const { messages: F } = ve(), O = I ?? F.datePicker.placeholder, P = Te({ id: C, disabled: v, required: w, invalid: p, "aria-describedby": A }), { disabled: H, invalid: U } = P, [V, j] = ue(e, n, a), [le, J] = ue(x, _, k), [$, q] = ie(V ? o(V) : ""), G = B(null), ae = B(null), Q = `${Me()}-calendar`, [re, pe] = ie(!1), [X, W] = ie(() => Je(V ?? h ?? /* @__PURE__ */ new Date()));
4969
4981
  de(() => {
4970
4982
  if (!le) return;
4971
- const Y = Na(L, r);
4983
+ const Y = Na($, r);
4972
4984
  W(Je(Y ?? V ?? h ?? /* @__PURE__ */ new Date()));
4973
4985
  }, [le]), de(() => {
4974
4986
  le || pe(!1);
@@ -4978,27 +4990,27 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
4978
4990
  }, he = (Y) => {
4979
4991
  q(Y);
4980
4992
  const fe = Na(Y, r);
4981
- fe && !bs(fe, X) && W(fe);
4993
+ fe && !xs(fe, X) && W(fe);
4982
4994
  }, te = V ? et(V) : "";
4983
4995
  de(() => {
4984
4996
  q(V ? o(V) : "");
4985
4997
  }, [te]);
4986
4998
  const ce = (Y) => !(l && Y < Je(l)) && !(i && Y > Je(i)) && !(c != null && c(Y)), Z = (() => {
4987
- if (L.trim() === "") return null;
4988
- const Y = r(L);
4989
- return Y && ce(Y) ? Y : V && L === o(V) ? V : null;
4999
+ if ($.trim() === "") return null;
5000
+ const Y = r($);
5001
+ return Y && ce(Y) ? Y : V && $ === o(V) ? V : null;
4990
5002
  })(), K = () => {
4991
- if (L.trim() === "") {
5003
+ if ($.trim() === "") {
4992
5004
  V && j(null);
4993
5005
  return;
4994
5006
  }
4995
- const Y = r(L);
5007
+ const Y = r($);
4996
5008
  Y && ce(Y) ? We(Y, V) ? q(o(Y)) : j(Y) : q(V ? o(V) : "");
4997
5009
  };
4998
5010
  return /* @__PURE__ */ E(
4999
5011
  "div",
5000
5012
  {
5001
- ref: Ne($, G),
5013
+ ref: Ne(L, G),
5002
5014
  className: R("ok-input ok-datepicker", u === "lg" && "ok-input--lg", S),
5003
5015
  style: T,
5004
5016
  "data-size": u,
@@ -5023,14 +5035,14 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5023
5035
  "aria-haspopup": "dialog",
5024
5036
  "aria-expanded": le,
5025
5037
  "aria-controls": le ? Q : void 0,
5026
- value: L,
5038
+ value: $,
5027
5039
  onChange: (Y) => he(Y.target.value),
5028
5040
  onClick: oe,
5029
5041
  onBlur: (Y) => {
5030
- var me, $e;
5042
+ var me, Le;
5031
5043
  N == null || N(Y), K();
5032
5044
  const fe = Y.relatedTarget;
5033
- le && re && !(fe && ((me = G.current) != null && me.contains(fe) || ($e = document.getElementById(Q)) != null && $e.contains(fe))) && J(!1);
5045
+ le && re && !(fe && ((me = G.current) != null && me.contains(fe) || (Le = document.getElementById(Q)) != null && Le.contains(fe))) && J(!1);
5034
5046
  },
5035
5047
  onKeyDown: (Y) => {
5036
5048
  var fe, me;
@@ -5040,7 +5052,7 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5040
5052
  ),
5041
5053
  b && /* @__PURE__ */ s("input", { type: "hidden", name: b, form: m, value: te, disabled: H }),
5042
5054
  /* @__PURE__ */ s(
5043
- or,
5055
+ rr,
5044
5056
  {
5045
5057
  id: Q,
5046
5058
  open: le,
@@ -5052,9 +5064,9 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5052
5064
  placement: M,
5053
5065
  "aria-label": F.datePicker.dialog,
5054
5066
  className: "ok-popover--calendar",
5055
- trigger: /* @__PURE__ */ s("button", { type: "button", className: "ok-datepicker__btn ok-focusable", "aria-label": F.datePicker.open, disabled: H || g, children: /* @__PURE__ */ s(ur, {}) }),
5067
+ trigger: /* @__PURE__ */ s("button", { type: "button", className: "ok-datepicker__btn ok-focusable", "aria-label": F.datePicker.open, disabled: H || g, children: /* @__PURE__ */ s(dr, {}) }),
5056
5068
  children: ({ close: Y }) => /* @__PURE__ */ s(
5057
- ps,
5069
+ ks,
5058
5070
  {
5059
5071
  autoFocus: !re,
5060
5072
  value: Z,
@@ -5077,9 +5089,9 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5077
5089
  ]
5078
5090
  }
5079
5091
  );
5080
- }), vs = { start: null, end: null }, hi = D(function({
5092
+ }), Ns = { start: null, end: null }, yi = D(function({
5081
5093
  value: e,
5082
- defaultValue: n = vs,
5094
+ defaultValue: n = Ns,
5083
5095
  onChange: a,
5084
5096
  placeholder: r,
5085
5097
  startName: o,
@@ -5108,7 +5120,7 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5108
5120
  "aria-describedby": y,
5109
5121
  ...A
5110
5122
  }, z) {
5111
- const { messages: $ } = ve(), F = r === void 0 ? $.datePicker.rangePlaceholder : r, O = we(Ge), P = Te({
5123
+ const { messages: L } = ve(), F = r === void 0 ? L.datePicker.rangePlaceholder : r, O = we(Ge), P = Te({
5112
5124
  id: I,
5113
5125
  disabled: g,
5114
5126
  required: x,
@@ -5116,11 +5128,11 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5116
5128
  "aria-describedby": y,
5117
5129
  "aria-labelledby": N,
5118
5130
  "aria-label": C
5119
- }), { disabled: H, invalid: U } = P, [V, j] = ue(e, n, a), [le, J] = ue(_, k, M), [L, q] = ie(null);
5131
+ }), { disabled: H, invalid: U } = P, [V, j] = ue(e, n, a), [le, J] = ue(_, k, M), [$, q] = ie(null);
5120
5132
  de(() => {
5121
5133
  le || q(null);
5122
5134
  }, [le]);
5123
- const { start: G, end: ae } = V, Q = le && L || V, re = Q.start ? `${d(Q.start)}${c}${Q.end ? d(Q.end) : "…"}` : null, pe = B(null), X = `${Me()}-value`, [W, oe] = ie(!1);
5135
+ const { start: G, end: ae } = V, Q = le && $ || V, re = Q.start ? `${d(Q.start)}${c}${Q.end ? d(Q.end) : "…"}` : null, pe = B(null), X = `${Me()}-value`, [W, oe] = ie(!1);
5124
5136
  de(() => {
5125
5137
  var ce, Z;
5126
5138
  oe(!!((Z = (ce = pe.current) == null ? void 0 : ce.labels) != null && Z.length));
@@ -5128,12 +5140,12 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5128
5140
  const te = [(!!C || !!N || !!(O != null && O.labelId) || W) && X, P.describedBy].filter(Boolean).join(" ") || void 0;
5129
5141
  return /* @__PURE__ */ E(Pe, { children: [
5130
5142
  /* @__PURE__ */ s(
5131
- or,
5143
+ rr,
5132
5144
  {
5133
5145
  open: le,
5134
5146
  onOpenChange: J,
5135
5147
  placement: S,
5136
- "aria-label": $.datePicker.rangeDialog,
5148
+ "aria-label": L.datePicker.rangeDialog,
5137
5149
  className: "ok-popover--calendar",
5138
5150
  trigger: /* @__PURE__ */ E(
5139
5151
  "button",
@@ -5154,15 +5166,15 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5154
5166
  disabled: H,
5155
5167
  children: [
5156
5168
  /* @__PURE__ */ s("span", { className: "ok-daterange__value", id: X, "data-placeholder": re ? void 0 : "", children: re ?? F }),
5157
- /* @__PURE__ */ s(ur, {})
5169
+ /* @__PURE__ */ s(dr, {})
5158
5170
  ]
5159
5171
  }
5160
5172
  ),
5161
5173
  children: ({ close: ce }) => /* @__PURE__ */ s(
5162
- ms,
5174
+ _s,
5163
5175
  {
5164
5176
  autoFocus: !0,
5165
- value: L ?? V,
5177
+ value: $ ?? V,
5166
5178
  onChange: (Z) => {
5167
5179
  Z.start && Z.end ? (q(null), j(Z), ce()) : q(Z);
5168
5180
  },
@@ -5179,7 +5191,7 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5179
5191
  o && /* @__PURE__ */ s("input", { type: "hidden", name: o, form: i, value: G ? et(G) : "", disabled: H }),
5180
5192
  l && /* @__PURE__ */ s("input", { type: "hidden", name: l, form: i, value: ae ? et(ae) : "", disabled: H })
5181
5193
  ] });
5182
- }), mi = D(function({ variant: e = "body", as: n = "span", tone: a = "default", truncate: r, lineClamp: o, align: l, className: i, style: c, ...d }, f) {
5194
+ }), _i = D(function({ variant: e = "body", as: n = "span", tone: a = "default", truncate: r, lineClamp: o, align: l, className: i, style: c, ...d }, f) {
5183
5195
  const h = n, u = o && o > 0 ? { "--ok-clamp": o } : void 0;
5184
5196
  return /* @__PURE__ */ s(
5185
5197
  h,
@@ -5194,7 +5206,7 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5194
5206
  ...d
5195
5207
  }
5196
5208
  );
5197
- }), bi = D(function({ level: e = 2, variant: n, tone: a = "default", truncate: r, align: o, className: l, ...i }, c) {
5209
+ }), xi = D(function({ level: e = 2, variant: n, tone: a = "default", truncate: r, align: o, className: l, ...i }, c) {
5198
5210
  const d = `h${e}`;
5199
5211
  return /* @__PURE__ */ s(
5200
5212
  d,
@@ -5207,9 +5219,9 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5207
5219
  ...i
5208
5220
  }
5209
5221
  );
5210
- }), vi = D(function({ as: e = "div", size: n = "md", className: a, ...r }, o) {
5222
+ }), Ni = D(function({ as: e = "div", size: n = "md", className: a, ...r }, o) {
5211
5223
  return /* @__PURE__ */ s(e, { ref: o, className: R("ok-panel", n !== "md" && `ok-panel--${n}`, a), ...r });
5212
- }), gs = (t) => t === void 0 ? void 0 : typeof t == "number" ? String(t) : t, ks = D(function({
5224
+ }), ws = (t) => t === void 0 ? void 0 : typeof t == "number" ? String(t) : t, Ms = D(function({
5213
5225
  src: e,
5214
5226
  alt: n,
5215
5227
  ratio: a,
@@ -5236,7 +5248,7 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5236
5248
  x({ src: e, status: "loaded" }), u == null || u(N);
5237
5249
  }, S = (N) => {
5238
5250
  x({ src: e, status: "error" }), p == null || p(N);
5239
- }, I = k === "content" || k === "error" || k === "empty" ? n ? { role: "img", "aria-label": n } : { "aria-hidden": !0 } : null, C = gs(a);
5251
+ }, I = k === "content" || k === "error" || k === "empty" ? n ? { role: "img", "aria-label": n } : { "aria-hidden": !0 } : null, C = ws(a);
5240
5252
  return /* @__PURE__ */ E(
5241
5253
  "span",
5242
5254
  {
@@ -5269,7 +5281,7 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5269
5281
  ]
5270
5282
  }
5271
5283
  );
5272
- }), gi = D(function({ as: e = "div", size: n = "md", href: a, target: r, rel: o, interactive: l, disabled: i, chevron: c, className: d, children: f, ...h }, u) {
5284
+ }), wi = D(function({ as: e = "div", size: n = "md", href: a, target: r, rel: o, interactive: l, disabled: i, chevron: c, className: d, children: f, ...h }, u) {
5273
5285
  const p = a !== void 0, b = !p && !!l, m = p ? "a" : b ? "button" : e, v = b ? "span" : "div", w = p ? { href: a, target: r, rel: o } : b ? { type: "button", disabled: i } : null;
5274
5286
  return /* @__PURE__ */ s(
5275
5287
  m,
@@ -5284,10 +5296,10 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5284
5296
  ] }) : f
5285
5297
  }
5286
5298
  );
5287
- }), ki = D(function({ href: e, className: n, ...a }, r) {
5299
+ }), Mi = D(function({ href: e, className: n, ...a }, r) {
5288
5300
  const o = e !== void 0 ? "a" : "button", l = e !== void 0 ? { href: e } : { type: "button" };
5289
5301
  return /* @__PURE__ */ s(o, { ref: r, className: R("ok-card__link", n), ...l, ...a });
5290
- }), yi = D(function({ title: e, description: n, titleAs: a = "h3", titleId: r, actions: o, className: l, children: i, ...c }, d) {
5302
+ }), Si = D(function({ title: e, description: n, titleAs: a = "h3", titleId: r, actions: o, className: l, children: i, ...c }, d) {
5291
5303
  return /* @__PURE__ */ E("div", { ref: d, className: R("ok-card__header", l), ...c, children: [
5292
5304
  /* @__PURE__ */ E("div", { className: "ok-card__heading", children: [
5293
5305
  e != null && /* @__PURE__ */ s(a, { id: r, className: "ok-card__title", children: e }),
@@ -5296,13 +5308,13 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5296
5308
  ] }),
5297
5309
  o != null && /* @__PURE__ */ s("div", { className: "ok-card__actions", children: o })
5298
5310
  ] });
5299
- }), _i = D(function({ className: e, ...n }, a) {
5311
+ }), Ai = D(function({ className: e, ...n }, a) {
5300
5312
  return /* @__PURE__ */ s("div", { ref: a, className: R("ok-card__body", e), ...n });
5301
- }), xi = D(function({ align: e = "start", className: n, ...a }, r) {
5313
+ }), Ci = D(function({ align: e = "start", className: n, ...a }, r) {
5302
5314
  return /* @__PURE__ */ s("div", { ref: r, className: R("ok-card__footer", n), "data-align": e, ...a });
5303
- }), Ni = D(function({ ratio: e = 16 / 9, position: n = "top", className: a, ...r }, o) {
5315
+ }), Ti = D(function({ ratio: e = 16 / 9, position: n = "top", className: a, ...r }, o) {
5304
5316
  return /* @__PURE__ */ s(
5305
- ks,
5317
+ Ms,
5306
5318
  {
5307
5319
  ref: o,
5308
5320
  ratio: e,
@@ -5311,9 +5323,9 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5311
5323
  ...r
5312
5324
  }
5313
5325
  );
5314
- }), wi = D(function({ as: e = "div", compact: n, className: a, ...r }, o) {
5326
+ }), Ei = D(function({ as: e = "div", compact: n, className: a, ...r }, o) {
5315
5327
  return /* @__PURE__ */ s(e, { ref: o, className: R("ok-group", n && "ok-group--compact", a), ...r });
5316
- }), Mi = D(function({ as: e = "div", label: n, description: a, leading: r, stack: o, controlWidth: l = "auto", href: i, target: c, rel: d, interactive: f, disabled: h, className: u, children: p, ...b }, m) {
5328
+ }), Pi = D(function({ as: e = "div", label: n, description: a, leading: r, stack: o, controlWidth: l = "auto", href: i, target: c, rel: d, interactive: f, disabled: h, className: u, children: p, ...b }, m) {
5317
5329
  const v = i !== void 0, w = !v && !!f, g = v || w, x = v ? "a" : w ? "button" : e, _ = v ? { href: i, target: c, rel: d } : w ? { type: "button", disabled: h } : null, k = n != null || a != null, M = !g && l !== "auto" && p != null, S = M && l === "fill", T = M && !S, I = M ? /* @__PURE__ */ s("span", { className: "ok-row__control", style: T ? { "--_cw": typeof l == "number" ? `${l}px` : l } : void 0, children: p }) : p;
5318
5330
  return /* @__PURE__ */ E(
5319
5331
  x,
@@ -5333,7 +5345,7 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5333
5345
  ]
5334
5346
  }
5335
5347
  );
5336
- }), Si = D(function({ as: e, marker: n = "none", divided: a, size: r = "md", className: o, ...l }, i) {
5348
+ }), Li = D(function({ as: e, marker: n = "none", divided: a, size: r = "md", className: o, ...l }, i) {
5337
5349
  return /* @__PURE__ */ s(
5338
5350
  e ?? (n === "number" ? "ol" : "ul"),
5339
5351
  {
@@ -5345,7 +5357,7 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5345
5357
  ...l
5346
5358
  }
5347
5359
  );
5348
- }), Ai = D(function({ leading: e, trailing: n, title: a, description: r, className: o, children: l, ...i }, c) {
5360
+ }), $i = D(function({ leading: e, trailing: n, title: a, description: r, className: o, children: l, ...i }, c) {
5349
5361
  return /* @__PURE__ */ E("li", { ref: c, className: R("ok-list__item", o), ...i, children: [
5350
5362
  e != null && /* @__PURE__ */ s("span", { className: "ok-list__leading", children: e }),
5351
5363
  /* @__PURE__ */ E("div", { className: "ok-list__content", children: [
@@ -5355,27 +5367,27 @@ const bs = (t, e) => t.getFullYear() === e.getFullYear() && t.getMonth() === e.g
5355
5367
  ] }),
5356
5368
  n != null && /* @__PURE__ */ s("span", { className: "ok-list__trailing", children: n })
5357
5369
  ] });
5358
- }), Ci = D(function({ items: e, layout: n = "auto", divided: a, className: r, children: o, ...l }, i) {
5370
+ }), Ii = D(function({ items: e, layout: n = "auto", divided: a, className: r, children: o, ...l }, i) {
5359
5371
  return /* @__PURE__ */ E("dl", { ref: i, className: R("ok-dl", r), "data-layout": n, "data-divided": a ? "" : void 0, ...l, children: [
5360
- e == null ? void 0 : e.map((c, d) => /* @__PURE__ */ s(ys, { term: c.term, children: c.description }, c.key ?? d)),
5372
+ e == null ? void 0 : e.map((c, d) => /* @__PURE__ */ s(Ss, { term: c.term, children: c.description }, c.key ?? d)),
5361
5373
  o
5362
5374
  ] });
5363
- }), ys = D(function({ term: e, className: n, children: a, ...r }, o) {
5375
+ }), Ss = D(function({ term: e, className: n, children: a, ...r }, o) {
5364
5376
  return /* @__PURE__ */ E("div", { ref: o, className: R("ok-dl__item", n), ...r, children: [
5365
5377
  /* @__PURE__ */ s("dt", { className: "ok-dl__term", children: e }),
5366
5378
  /* @__PURE__ */ s("dd", { className: "ok-dl__desc", children: a })
5367
5379
  ] });
5368
5380
  });
5369
- function _s(t, e, n = 1, a = 1) {
5381
+ function As(t, e, n = 1, a = 1) {
5370
5382
  const r = a * 2 + n * 2 + 3;
5371
5383
  if (t <= r) return Array.from({ length: t }, (u, p) => p + 1);
5372
5384
  const o = Math.max(e - n, a + 2), l = Math.min(e + n, t - a - 1), i = o > a + 2, c = l < t - a - 1, d = (u, p) => Array.from({ length: Math.max(0, p - u + 1) }, (b, m) => u + m), f = d(1, a), h = d(t - a + 1, t);
5373
5385
  return !i && c ? [...d(1, a + n * 2 + 2), 0, ...h] : i && !c ? [...f, 0, ...d(t - a - n * 2 - 1, t)] : [...f, 0, ...d(o, l), 0, ...h];
5374
5386
  }
5375
- const xs = D(function({ count: e, page: n, defaultPage: a = 1, onChange: r, siblings: o = 1, boundaries: l = 1, label: i, size: c = "md", disabled: d, className: f, ...h }, u) {
5387
+ const Cs = D(function({ count: e, page: n, defaultPage: a = 1, onChange: r, siblings: o = 1, boundaries: l = 1, label: i, size: c = "md", disabled: d, className: f, ...h }, u) {
5376
5388
  const { messages: p } = ve(), b = i ?? p.pagination.label, m = Math.max(1, Math.floor(e)), [v, w] = ue(n, a, r), g = Ce(v, 1, m), x = (k) => {
5377
5389
  d || w(Ce(k, 1, m));
5378
- }, _ = _s(m, g, o, l);
5390
+ }, _ = As(m, g, o, l);
5379
5391
  return /* @__PURE__ */ E("nav", { ref: u, "aria-label": b, className: R("ok-pagination", c === "sm" && "ok-pagination--sm", f), ...h, children: [
5380
5392
  /* @__PURE__ */ E("ul", { className: "ok-pagination__list", children: [
5381
5393
  /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s("button", { type: "button", className: "ok-pagination__btn ok-pagination__btn--nav ok-focusable", "aria-label": p.pagination.prev, disabled: d || g <= 1, onClick: () => x(g - 1), children: /* @__PURE__ */ s(ke, { children: /* @__PURE__ */ s("path", { d: "M12.500 4.500L7 10l5.500 5.500" }) }) }) }),
@@ -5389,11 +5401,11 @@ const xs = D(function({ count: e, page: n, defaultPage: a = 1, onChange: r, sibl
5389
5401
  ] }),
5390
5402
  /* @__PURE__ */ s("span", { className: "ok-sr", role: "status", children: p.pagination.status(g, m) })
5391
5403
  ] });
5392
- }), wa = /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M3.6 8.4l2.9 2.9 5.9-6.4", pathLength: 1 }) }), Ut = (t, e) => t.accessor ? t.accessor(e) : e[t.key], Ns = (t) => t.label ?? (typeof t.header == "string" ? t.header : t.key);
5393
- function ws(t, e) {
5404
+ }), wa = /* @__PURE__ */ s("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M3.6 8.4l2.9 2.9 5.9-6.4", pathLength: 1 }) }), Ut = (t, e) => t.accessor ? t.accessor(e) : e[t.key], Ts = (t) => t.label ?? (typeof t.header == "string" ? t.header : t.key);
5405
+ function Es(t, e) {
5394
5406
  return t == null && e == null ? 0 : t == null ? 1 : e == null ? -1 : typeof t == "number" && typeof e == "number" ? t - e : t instanceof Date && e instanceof Date ? t.getTime() - e.getTime() : String(t).localeCompare(String(e), void 0, { numeric: !0 });
5395
5407
  }
5396
- function Ms({
5408
+ function Ps({
5397
5409
  columns: t,
5398
5410
  data: e,
5399
5411
  rowKey: n,
@@ -5423,12 +5435,12 @@ function Ms({
5423
5435
  onScroll: C,
5424
5436
  ...N
5425
5437
  }, y) {
5426
- const { messages: A } = ve(), z = w === void 0 ? A.table.empty : w, $ = Me(), F = B(null), O = B(null), P = B(null), [H, U] = ue(o, l, i), [V, j] = ue(f, h ?? [], u), [le, J] = ie(!1), L = (ne, ee) => typeof n == "function" ? n(ne, ee) : n != null ? String(ne[n]) : String(ee), q = Ae(() => {
5438
+ const { messages: A } = ve(), z = w === void 0 ? A.table.empty : w, L = Me(), F = B(null), O = B(null), P = B(null), [H, U] = ue(o, l, i), [V, j] = ue(f, h ?? [], u), [le, J] = ie(!1), $ = (ne, ee) => typeof n == "function" ? n(ne, ee) : n != null ? String(ne[n]) : String(ee), q = Ae(() => {
5427
5439
  const ne = e.map((se, ye) => ({ row: se, index: ye })), ee = H && t.find((se) => se.key === H.key);
5428
5440
  if (!H || !ee || c) return ne;
5429
- const ge = H.direction === "desc" ? -1 : 1, be = ee.compare ?? ((se, ye) => ws(Ut(ee, se), Ut(ee, ye)));
5441
+ const ge = H.direction === "desc" ? -1 : 1, be = ee.compare ?? ((se, ye) => Es(Ut(ee, se), Ut(ee, ye)));
5430
5442
  return ne.sort((se, ye) => ge * be(se.row, ye.row) || se.index - ye.index);
5431
- }, [e, t, H, c]), G = _ != null && _ > 0, ae = G ? Math.max(1, Math.floor(_)) : 0, Q = G ? Math.max(1, Math.ceil(q.length / ae)) : 1, [re, pe] = ue(k, M, S), X = Ce(re, 1, Q), W = Ae(() => G ? q.slice((X - 1) * ae, X * ae) : q, [q, G, X, ae]), oe = W.map((ne) => L(ne.row, ne.index)), he = new Set(V), te = oe.filter((ne) => he.has(ne)).length, ce = oe.length > 0 && te === oe.length, Z = te > 0 && !ce;
5443
+ }, [e, t, H, c]), G = _ != null && _ > 0, ae = G ? Math.max(1, Math.floor(_)) : 0, Q = G ? Math.max(1, Math.ceil(q.length / ae)) : 1, [re, pe] = ue(k, M, S), X = Ce(re, 1, Q), W = Ae(() => G ? q.slice((X - 1) * ae, X * ae) : q, [q, G, X, ae]), oe = W.map((ne) => $(ne.row, ne.index)), he = new Set(V), te = oe.filter((ne) => he.has(ne)).length, ce = oe.length > 0 && te === oe.length, Z = te > 0 && !ce;
5432
5444
  xe(() => {
5433
5445
  P.current && (P.current.indeterminate = Z);
5434
5446
  }, [Z]), de(() => {
@@ -5460,7 +5472,7 @@ function Ms({
5460
5472
  K.current.x = ne.clientX, K.current.y = ne.clientY;
5461
5473
  const ee = fe(ne.target);
5462
5474
  ee && Y(ee);
5463
- }, $e = (ne) => {
5475
+ }, Le = (ne) => {
5464
5476
  const ee = ne.currentTarget, ge = O.current, be = K.current;
5465
5477
  ge && (ee.scrollTop !== be.top && (be.top = ee.scrollTop, ge.dataset.jumping = "", clearTimeout(be.calm), be.calm = setTimeout(() => {
5466
5478
  delete ge.dataset.jumping;
@@ -5482,7 +5494,7 @@ function Ms({
5482
5494
  "data-responsive": je ? "" : void 0,
5483
5495
  style: ct ? { ...ct, ...I } : I,
5484
5496
  ...Ee ? { role: "region", tabIndex: 0, "aria-label": De ?? A.table.label } : null,
5485
- onScroll: en(C, g ? void 0 : $e),
5497
+ onScroll: nn(C, g ? void 0 : Le),
5486
5498
  ...N,
5487
5499
  children: [
5488
5500
  /* @__PURE__ */ E("table", { ref: O, "aria-label": r == null ? De : void 0, ..._e("table"), children: [
@@ -5523,7 +5535,7 @@ function Ms({
5523
5535
  ] }) }),
5524
5536
  t.map((Ke, dt) => {
5525
5537
  const Tt = Ke.render ? Ke.render(ne, ee) : Ut(Ke, ne);
5526
- return /* @__PURE__ */ E("td", { className: R(at(Ke), dt === 0 && "ok-table__primary") || void 0, "data-label": Ns(Ke), "data-hide-below": Ke.hideBelow, ..._e("cell"), children: [
5538
+ return /* @__PURE__ */ E("td", { className: R(at(Ke), dt === 0 && "ok-table__primary") || void 0, "data-label": Ts(Ke), "data-hide-below": Ke.hideBelow, ..._e("cell"), children: [
5527
5539
  dt === 0 && ot && /* @__PURE__ */ s("button", { type: "button", className: "ok-table__row-action ok-focusable", "aria-label": ot.label, onClick: ot.onSelect }),
5528
5540
  v ? /* @__PURE__ */ s("span", { className: "ok-table__value", children: Tt }) : Tt
5529
5541
  ] }, Ke.key);
@@ -5532,16 +5544,16 @@ function Ms({
5532
5544
  })
5533
5545
  ] })
5534
5546
  ] }),
5535
- d && /* @__PURE__ */ s("span", { className: "ok-sr", role: "status", id: `${$}-count`, children: V.length > 0 ? A.table.selected(V.length) : "" })
5547
+ d && /* @__PURE__ */ s("span", { className: "ok-sr", role: "status", id: `${L}-count`, children: V.length > 0 ? A.table.selected(V.length) : "" })
5536
5548
  ]
5537
5549
  }
5538
5550
  );
5539
5551
  return G ? /* @__PURE__ */ E("div", { className: "ok-table-paged", children: [
5540
5552
  rt,
5541
- Q > 1 && /* @__PURE__ */ s(xs, { className: "ok-table__pagination", label: A.table.pagination(De ?? A.table.label), count: Q, page: X, onChange: pe })
5553
+ Q > 1 && /* @__PURE__ */ s(Cs, { className: "ok-table__pagination", label: A.table.pagination(De ?? A.table.label), count: Q, page: X, onChange: pe })
5542
5554
  ] }) : rt;
5543
5555
  }
5544
- const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChange: r, activation: o = "auto", label: l, keepMounted: i = !1, unmountInactive: c, className: d, ...f }, h) {
5556
+ const Ri = D(Ps), Di = D(function({ items: e, value: n, defaultValue: a, onChange: r, activation: o = "auto", label: l, keepMounted: i = !1, unmountInactive: c, className: d, ...f }, h) {
5545
5557
  var C;
5546
5558
  const u = c ?? !i, p = Me(), [b, m] = ue(n, a ?? ((C = e.find((N) => !N.disabled)) == null ? void 0 : C.value) ?? "", r), v = Math.max(0, e.findIndex((N) => N.value === b)), w = B(null), g = B(null), x = B([]), _ = B([]), k = B(null), M = B(null), S = B(v), T = Se(() => {
5547
5559
  const N = w.current, y = x.current[v];
@@ -5552,7 +5564,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5552
5564
  S.current = v, T();
5553
5565
  const y = w.current, A = x.current[N], z = x.current[v];
5554
5566
  if (N === v || !y || !A || !z) return;
5555
- const $ = v > N ? 1 : -1, F = A.offsetLeft, O = A.offsetWidth, P = z.offsetLeft, H = z.offsetWidth, U = Math.min(F, P), V = Math.max(F + O, P + H);
5567
+ const L = v > N ? 1 : -1, F = A.offsetLeft, O = A.offsetWidth, P = z.offsetLeft, H = z.offsetWidth, U = Math.min(F, P), V = Math.max(F + O, P + H);
5556
5568
  if (Ie(g.current, [
5557
5569
  { transform: `translateX(${F}px)`, width: O + "px" },
5558
5570
  { transform: `translateX(${U}px)`, width: V - U + "px", offset: 0.42 },
@@ -5566,12 +5578,12 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5566
5578
  j.dataset.leaving = "";
5567
5579
  const G = () => {
5568
5580
  delete j.dataset.leaving;
5569
- }, ae = Ie(j, [{ opacity: 1, transform: "none" }, { opacity: 0, transform: `translateX(${-20 * $}px)` }], { duration: 150, easing: Xe.in });
5581
+ }, ae = Ie(j, [{ opacity: 1, transform: "none" }, { opacity: 0, transform: `translateX(${-20 * L}px)` }], { duration: 150, easing: Xe.in });
5570
5582
  ae ? ae.finished.then(G, G) : G();
5571
5583
  }
5572
- le && Ie(le, [{ opacity: 0, transform: `translateX(${24 * $}px)` }, { opacity: 1, transform: "none" }], { spring: "spring", delay: u ? 0 : 110 });
5573
- const J = k.current, L = M.current, q = (J == null ? void 0 : J.offsetHeight) ?? 0;
5574
- J && L !== null && Math.abs(q - L) >= 1 && Ie(J, [{ height: L + "px", overflow: "hidden" }, { height: q + "px", overflow: "hidden" }], { spring: "soft" });
5584
+ le && Ie(le, [{ opacity: 0, transform: `translateX(${24 * L}px)` }, { opacity: 1, transform: "none" }], { spring: "spring", delay: u ? 0 : 110 });
5585
+ const J = k.current, $ = M.current, q = (J == null ? void 0 : J.offsetHeight) ?? 0;
5586
+ J && $ !== null && Math.abs(q - $) >= 1 && Ie(J, [{ height: $ + "px", overflow: "hidden" }, { height: q + "px", overflow: "hidden" }], { spring: "soft" });
5575
5587
  }, [v]), xe(() => {
5576
5588
  var N;
5577
5589
  M.current = ((N = k.current) == null ? void 0 : N.offsetHeight) ?? null;
@@ -5587,13 +5599,13 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5587
5599
  const y = e.map((O, P) => O.disabled ? -1 : P).filter((O) => O >= 0);
5588
5600
  if (!y.length) return;
5589
5601
  const A = x.current.findIndex((O) => O === document.activeElement), z = y.indexOf(A >= 0 ? A : v);
5590
- let $;
5591
- if (N.key === "ArrowRight") $ = y[(z + 1) % y.length];
5592
- else if (N.key === "ArrowLeft") $ = y[(z - 1 + y.length) % y.length];
5593
- else if (N.key === "Home") $ = y[0];
5594
- else if (N.key === "End") $ = y[y.length - 1];
5602
+ let L;
5603
+ if (N.key === "ArrowRight") L = y[(z + 1) % y.length];
5604
+ else if (N.key === "ArrowLeft") L = y[(z - 1 + y.length) % y.length];
5605
+ else if (N.key === "Home") L = y[0];
5606
+ else if (N.key === "End") L = y[y.length - 1];
5595
5607
  else return;
5596
- N.preventDefault(), (F = x.current[$]) == null || F.focus(), o === "auto" && m(e[$].value);
5608
+ N.preventDefault(), (F = x.current[L]) == null || F.focus(), o === "auto" && m(e[L].value);
5597
5609
  };
5598
5610
  return /* @__PURE__ */ E("div", { ref: h, className: R("ok-tabs", d), ...f, children: [
5599
5611
  /* @__PURE__ */ E("div", { ref: w, className: "ok-tabs__list", role: "tablist", "aria-label": l, "aria-orientation": "horizontal", onKeyDown: I, children: [
@@ -5635,7 +5647,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5635
5647
  N.value
5636
5648
  )) })
5637
5649
  ] });
5638
- }), Pi = D(function({ items: e, type: n = "multiple", value: a, defaultValue: r, onChange: o, collapsible: l = !0, headingLevel: i = 3, variant: c = "group", className: d, ...f }, h) {
5650
+ }), Oi = D(function({ items: e, type: n = "multiple", value: a, defaultValue: r, onChange: o, collapsible: l = !0, headingLevel: i = 3, variant: c = "group", className: d, ...f }, h) {
5639
5651
  const u = Me(), [p, b] = ue(a, r ?? [], o), m = B([]), v = `h${i}`, w = (x) => {
5640
5652
  const _ = p.includes(x);
5641
5653
  n === "single" ? _ ? l && b([]) : b([x]) : b(_ ? p.filter((k) => k !== x) : [...p, x]);
@@ -5676,7 +5688,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5676
5688
  /* @__PURE__ */ s("div", { className: "ok-accordion__body", id: `${u}-body-${_}`, role: "region", "aria-labelledby": `${u}-head-${_}`, children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("div", { className: "ok-accordion__content", children: x.content }) }) })
5677
5689
  ] }, x.value);
5678
5690
  }) });
5679
- }), $i = D(function({ items: e, label: n, maxItems: a, separator: r, className: o, ...l }, i) {
5691
+ }), Bi = D(function({ items: e, label: n, maxItems: a, separator: r, className: o, ...l }, i) {
5680
5692
  const { messages: c } = ve(), d = n ?? c.breadcrumb.label, [f, h] = ie(!1), u = B(null), p = B(!1), b = e.length - 1, m = e.length > 2, v = a != null && e.length > a, w = /* @__PURE__ */ s("span", { className: "ok-breadcrumb__sep", "aria-hidden": "true", children: r ?? /* @__PURE__ */ s(ke, { name: "chevron-right" }) });
5681
5693
  return xe(() => {
5682
5694
  var g, x;
@@ -5706,7 +5718,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5706
5718
  ] }, "more") : null
5707
5719
  ];
5708
5720
  }) }) });
5709
- }), Li = D(function({ items: e, current: n = 0, orientation: a = "horizontal", status: r = "default", label: o, className: l, ...i }, c) {
5721
+ }), Fi = D(function({ items: e, current: n = 0, orientation: a = "horizontal", status: r = "default", label: o, className: l, ...i }, c) {
5710
5722
  const { messages: d } = ve(), f = o ?? d.steps.label;
5711
5723
  return /* @__PURE__ */ s("ol", { ref: c, "aria-label": f, className: R("ok-steps", l), "data-orientation": a, ...i, children: e.map((h, u) => {
5712
5724
  const p = u < n ? "complete" : u === n ? "current" : "upcoming", b = p === "current" && r === "error";
@@ -5721,7 +5733,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5721
5733
  ] })
5722
5734
  ] }, u);
5723
5735
  }) });
5724
- }), Ii = D(function({ items: e, className: n, ...a }, r) {
5736
+ }), zi = D(function({ items: e, className: n, ...a }, r) {
5725
5737
  return /* @__PURE__ */ s("ol", { ref: r, className: R("ok-timeline", n), ...a, children: e.map((o, l) => /* @__PURE__ */ E("li", { className: "ok-timeline__item", "data-tone": o.tone ?? "neutral", children: [
5726
5738
  /* @__PURE__ */ s("span", { className: "ok-timeline__marker", "data-icon": o.icon != null ? "" : void 0, "aria-hidden": "true", children: o.icon }),
5727
5739
  /* @__PURE__ */ E("div", { className: "ok-timeline__content", children: [
@@ -5732,30 +5744,30 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5732
5744
  o.description != null && /* @__PURE__ */ s("div", { className: "ok-timeline__desc", children: o.description })
5733
5745
  ] })
5734
5746
  ] }, o.key ?? l)) });
5735
- }), Ri = D(function({ items: e, expanded: n, defaultExpanded: a, onExpandedChange: r, selected: o, defaultSelected: l = null, onSelect: i, label: c, className: d, ...f }, h) {
5747
+ }), Hi = D(function({ items: e, expanded: n, defaultExpanded: a, onExpandedChange: r, selected: o, defaultSelected: l = null, onSelect: i, label: c, className: d, ...f }, h) {
5736
5748
  var y;
5737
- const [u, p] = ue(n, a ?? [], r), [b, m] = ue(o, l, i), [v, w] = ie(b), g = B(/* @__PURE__ */ new Map()), x = new Set(u), _ = [], k = (A, z, $) => A.forEach((F) => {
5749
+ const [u, p] = ue(n, a ?? [], r), [b, m] = ue(o, l, i), [v, w] = ie(b), g = B(/* @__PURE__ */ new Map()), x = new Set(u), _ = [], k = (A, z, L) => A.forEach((F) => {
5738
5750
  var O;
5739
- _.push({ node: F, level: z, parent: $ }), (O = F.children) != null && O.length && x.has(F.id) && k(F.children, z + 1, F.id);
5751
+ _.push({ node: F, level: z, parent: L }), (O = F.children) != null && O.length && x.has(F.id) && k(F.children, z + 1, F.id);
5740
5752
  });
5741
5753
  k(e, 1, null);
5742
5754
  const M = _.filter((A) => !A.node.disabled), S = M.some((A) => A.node.id === v) ? v : ((y = M[0]) == null ? void 0 : y.node.id) ?? null, T = (A) => {
5743
5755
  var z;
5744
5756
  A != null && (w(A), (z = g.current.get(A)) == null || z.focus());
5745
- }, I = (A, z) => p(z ? [...u.filter(($) => $ !== A), A] : u.filter(($) => $ !== A)), C = (A) => {
5757
+ }, I = (A, z) => p(z ? [...u.filter((L) => L !== A), A] : u.filter((L) => L !== A)), C = (A) => {
5746
5758
  var U, V, j, le;
5747
5759
  const z = A.target;
5748
5760
  if (z.getAttribute("role") !== "treeitem") return;
5749
- const $ = M.findIndex((J) => J.node.id === z.dataset.id);
5750
- if ($ < 0) return;
5751
- const { node: F, parent: O } = M[$], P = !!((U = F.children) != null && U.length);
5761
+ const L = M.findIndex((J) => J.node.id === z.dataset.id);
5762
+ if (L < 0) return;
5763
+ const { node: F, parent: O } = M[L], P = !!((U = F.children) != null && U.length);
5752
5764
  let H = !0;
5753
5765
  switch (A.key) {
5754
5766
  case "ArrowDown":
5755
- T((V = M[$ + 1]) == null ? void 0 : V.node.id);
5767
+ T((V = M[L + 1]) == null ? void 0 : V.node.id);
5756
5768
  break;
5757
5769
  case "ArrowUp":
5758
- T((j = M[$ - 1]) == null ? void 0 : j.node.id);
5770
+ T((j = M[L - 1]) == null ? void 0 : j.node.id);
5759
5771
  break;
5760
5772
  case "Home":
5761
5773
  T(M[0].node.id);
@@ -5777,27 +5789,27 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5777
5789
  H = !1;
5778
5790
  }
5779
5791
  H && A.preventDefault();
5780
- }, N = (A, z) => A.map(($, F) => {
5792
+ }, N = (A, z) => A.map((L, F) => {
5781
5793
  var H;
5782
- const O = !!((H = $.children) != null && H.length), P = O && x.has($.id);
5794
+ const O = !!((H = L.children) != null && H.length), P = O && x.has(L.id);
5783
5795
  return /* @__PURE__ */ E(
5784
5796
  "li",
5785
5797
  {
5786
5798
  ref: (U) => {
5787
- U ? g.current.set($.id, U) : g.current.delete($.id);
5799
+ U ? g.current.set(L.id, U) : g.current.delete(L.id);
5788
5800
  },
5789
5801
  role: "treeitem",
5790
- "data-id": $.id,
5802
+ "data-id": L.id,
5791
5803
  className: "ok-tree__item",
5792
5804
  "aria-level": z,
5793
5805
  "aria-setsize": A.length,
5794
5806
  "aria-posinset": F + 1,
5795
5807
  "aria-expanded": O ? P : void 0,
5796
- "aria-selected": b === $.id,
5797
- "aria-disabled": $.disabled || void 0,
5798
- tabIndex: S === $.id ? 0 : -1,
5808
+ "aria-selected": b === L.id,
5809
+ "aria-disabled": L.disabled || void 0,
5810
+ tabIndex: S === L.id ? 0 : -1,
5799
5811
  onFocus: (U) => {
5800
- U.target === U.currentTarget && w($.id);
5812
+ U.target === U.currentTarget && w(L.id);
5801
5813
  },
5802
5814
  children: [
5803
5815
  /* @__PURE__ */ E(
@@ -5805,23 +5817,23 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5805
5817
  {
5806
5818
  className: "ok-tree__row",
5807
5819
  onClick: () => {
5808
- $.disabled || (w($.id), m($.id), O && I($.id, !P));
5820
+ L.disabled || (w(L.id), m(L.id), O && I(L.id, !P));
5809
5821
  },
5810
5822
  children: [
5811
5823
  /* @__PURE__ */ s("span", { className: "ok-tree__chev", "aria-hidden": "true", children: O && /* @__PURE__ */ s(ke, { name: "chevron-right" }) }),
5812
- $.icon != null && /* @__PURE__ */ s("span", { className: "ok-tree__icon", "aria-hidden": "true", children: $.icon }),
5813
- /* @__PURE__ */ s("span", { className: "ok-tree__label", children: $.label })
5824
+ L.icon != null && /* @__PURE__ */ s("span", { className: "ok-tree__icon", "aria-hidden": "true", children: L.icon }),
5825
+ /* @__PURE__ */ s("span", { className: "ok-tree__label", children: L.label })
5814
5826
  ]
5815
5827
  }
5816
5828
  ),
5817
- P && /* @__PURE__ */ s("ul", { role: "group", className: "ok-tree__group", children: N($.children, z + 1) })
5829
+ P && /* @__PURE__ */ s("ul", { role: "group", className: "ok-tree__group", children: N(L.children, z + 1) })
5818
5830
  ]
5819
5831
  },
5820
- $.id
5832
+ L.id
5821
5833
  );
5822
5834
  });
5823
5835
  return /* @__PURE__ */ s("ul", { ref: h, role: "tree", "aria-label": c, className: R("ok-tree", d), onKeyDown: C, ...f, children: N(e, 1) });
5824
- }), Di = D(function({ tone: e = "neutral", variant: n = "soft", dot: a, ping: r, className: o, children: l, ...i }, c) {
5836
+ }), qi = D(function({ tone: e = "neutral", variant: n = "soft", dot: a, ping: r, className: o, children: l, ...i }, c) {
5825
5837
  return /* @__PURE__ */ E(
5826
5838
  "span",
5827
5839
  {
@@ -5834,7 +5846,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5834
5846
  ]
5835
5847
  }
5836
5848
  );
5837
- }), Oi = D(function({ tone: e = "neutral", size: n = "md", icon: a, onRemove: r, removeLabel: o, className: l, children: i, ...c }, d) {
5849
+ }), Vi = D(function({ tone: e = "neutral", size: n = "md", icon: a, onRemove: r, removeLabel: o, className: l, children: i, ...c }, d) {
5838
5850
  const { messages: f } = ve(), h = typeof i == "string" || typeof i == "number" ? String(i) : "";
5839
5851
  return /* @__PURE__ */ E("span", { ref: d, className: R("ok-tag", n === "sm" && "ok-tag--sm", l), "data-tone": e, ...c, children: [
5840
5852
  a != null && /* @__PURE__ */ s("span", { className: "ok-tag__icon", "aria-hidden": "true", children: a }),
@@ -5854,7 +5866,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5854
5866
  const b = () => p.remove(), m = Ie(p, [{ transform: "translateY(0)", opacity: 1 }, { transform: `translateY(${-u * 80}%)`, opacity: 0 }], { duration: 150, easing: Xe.in, fill: "forwards" });
5855
5867
  m ? m.finished.then(b, b) : b(), Ie(h, [{ transform: `translateY(${u * 80}%)`, opacity: 0 }, { transform: "translateY(0)", opacity: 1 }], { spring: "spring" });
5856
5868
  }, [e, n]), /* @__PURE__ */ s("span", { ref: Ne(o, l), className: R("ok-roll", a), ...r, children: /* @__PURE__ */ s("span", { ref: i, children: e }) });
5857
- }), Bi = D(function({ value: e, max: n = 99, showZero: a, tone: r = "accent", label: o, className: l, ...i }, c) {
5869
+ }), Wi = D(function({ value: e, max: n = 99, showZero: a, tone: r = "accent", label: o, className: l, ...i }, c) {
5858
5870
  const d = B(null), f = B(e);
5859
5871
  if (xe(() => {
5860
5872
  f.current !== e && (f.current = e, Ie(d.current, [{ transform: "scale(1)" }, { transform: "scale(1.35)", offset: 0.3 }, { transform: "scale(1)" }], { duration: Ea.bouncy.duration, easing: Xe.out }));
@@ -5864,8 +5876,8 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5864
5876
  /* @__PURE__ */ s(Un, { value: h, direction: e >= f.current ? 1 : -1, "aria-hidden": o ? !0 : void 0 }),
5865
5877
  o && /* @__PURE__ */ s("span", { className: "ok-sr", children: o })
5866
5878
  ] });
5867
- }), Ss = { neutral: "info", accent: "sparkle", info: "info", success: "check", warning: "alert", danger: "alert" }, Fi = D(function({ tone: e = "accent", title: n, icon: a, action: r, closable: o, open: l, defaultOpen: i = !0, onOpenChange: c, onClose: d, closeLabel: f, className: h, children: u, ...p }, b) {
5868
- const { messages: m } = ve(), v = f ?? m.common.close, [w, g] = ue(l, i, c), { mounted: x, ref: _ } = tn(w, 700);
5879
+ }), Ls = { neutral: "info", accent: "sparkle", info: "info", success: "check", warning: "alert", danger: "alert" }, Ui = D(function({ tone: e = "accent", title: n, icon: a, action: r, closable: o, open: l, defaultOpen: i = !0, onOpenChange: c, onClose: d, closeLabel: f, className: h, children: u, ...p }, b) {
5880
+ const { messages: m } = ve(), v = f ?? m.common.close, [w, g] = ue(l, i, c), { mounted: x, ref: _ } = an(w, 700);
5869
5881
  if (!x) return null;
5870
5882
  const k = /* @__PURE__ */ E(
5871
5883
  "div",
@@ -5875,7 +5887,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5875
5887
  className: R("ok-alert", e !== "accent" && `ok-alert--${e}`, h),
5876
5888
  ...p,
5877
5889
  children: [
5878
- a !== !1 && (a ?? /* @__PURE__ */ s(ke, { name: Ss[e] })),
5890
+ a !== !1 && (a ?? /* @__PURE__ */ s(ke, { name: Ls[e] })),
5879
5891
  /* @__PURE__ */ E("div", { className: "ok-alert__body", children: [
5880
5892
  n != null && /* @__PURE__ */ s("b", { className: "ok-alert__title", children: n }),
5881
5893
  u
@@ -5888,7 +5900,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5888
5900
  }
5889
5901
  );
5890
5902
  return /* @__PURE__ */ s("div", { ref: _, className: "ok-collapse ok-alert-wrap", "data-state": w ? "open" : "closed", children: k });
5891
- }), zi = D(function({ value: e, max: n = 100, label: a, tone: r = "accent", size: o = "md", noDoneState: l, className: i, style: c, ...d }, f) {
5903
+ }), Gi = D(function({ value: e, max: n = 100, label: a, tone: r = "accent", size: o = "md", noDoneState: l, className: i, style: c, ...d }, f) {
5892
5904
  const h = e != null, u = h ? Ce(e / (n || 1), 0, 1) : 0;
5893
5905
  return /* @__PURE__ */ s(
5894
5906
  "div",
@@ -5907,8 +5919,8 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5907
5919
  children: /* @__PURE__ */ s("div", { className: "ok-progress__bar" })
5908
5920
  }
5909
5921
  );
5910
- }), As = { sm: 40, md: 64, lg: 96 }, Hi = D(function({ value: e = 0, max: n = 100, label: a, size: r = "md", thickness: o = 6, showValue: l, noDoneState: i, className: c, style: d, children: f, ...h }, u) {
5911
- const p = Ce(e / (n || 1), 0, 1), b = typeof r == "number" ? r : As[r], m = l ?? b >= 56;
5922
+ }), $s = { sm: 40, md: 64, lg: 96 }, Yi = D(function({ value: e = 0, max: n = 100, label: a, size: r = "md", thickness: o = 6, showValue: l, noDoneState: i, className: c, style: d, children: f, ...h }, u) {
5923
+ const p = Ce(e / (n || 1), 0, 1), b = typeof r == "number" ? r : $s[r], m = l ?? b >= 56;
5912
5924
  return /* @__PURE__ */ E(
5913
5925
  "div",
5914
5926
  {
@@ -5931,7 +5943,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5931
5943
  ]
5932
5944
  }
5933
5945
  );
5934
- }), qi = D(function({ value: e, min: n = 0, max: a = 100, segments: r = 10, label: o, valueText: l, tone: i, warnAt: c, dangerAt: d, size: f = "md", className: h, ...u }, p) {
5946
+ }), Xi = D(function({ value: e, min: n = 0, max: a = 100, segments: r = 10, label: o, valueText: l, tone: i, warnAt: c, dangerAt: d, size: f = "md", className: h, ...u }, p) {
5935
5947
  const b = Math.max(1, Math.floor(r)), m = Ce(e, n, a), v = Math.round((m - n) / (a - n || 1) * b);
5936
5948
  return /* @__PURE__ */ s(
5937
5949
  "div",
@@ -5952,19 +5964,19 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5952
5964
  })
5953
5965
  }
5954
5966
  );
5955
- }), yt = (t) => typeof t == "number" ? `${t}px` : t, Vi = D(function({ variant: e = "text", width: n, height: a, lines: r = 1, className: o, style: l, ...i }, c) {
5967
+ }), yt = (t) => typeof t == "number" ? `${t}px` : t, ji = D(function({ variant: e = "text", width: n, height: a, lines: r = 1, className: o, style: l, ...i }, c) {
5956
5968
  const d = R("ok-skel", e === "circle" && "ok-skel--circle", e === "rect" && "ok-skel--rect");
5957
5969
  if (e === "text" && r > 1)
5958
5970
  return /* @__PURE__ */ s("span", { ref: c, "aria-hidden": "true", className: R("ok-skel-lines", o), style: { width: yt(n), ...l }, ...i, children: Array.from({ length: r }, (h, u) => /* @__PURE__ */ s("span", { className: d, style: { height: yt(a), width: u === r - 1 ? "70%" : void 0 } }, u)) });
5959
5971
  const f = e === "circle" ? { width: yt(n ?? a), height: yt(a ?? n) } : { width: yt(n), height: yt(a) };
5960
5972
  return /* @__PURE__ */ s("span", { ref: c, "aria-hidden": "true", className: R(d, o), style: { ...f, ...l }, ...i });
5961
- }), Cs = { sm: 20, md: 28, lg: 40 }, Wi = D(function({ variant: e = "tail", size: n = "md", label: a, className: r, style: o, ...l }, i) {
5962
- const { messages: c } = ve(), d = a ?? c.common.loading, f = typeof n == "number" ? n : Cs[n];
5973
+ }), Is = { sm: 20, md: 28, lg: 40 }, Ki = D(function({ variant: e = "tail", size: n = "md", label: a, className: r, style: o, ...l }, i) {
5974
+ const { messages: c } = ve(), d = a ?? c.common.loading, f = typeof n == "number" ? n : Is[n];
5963
5975
  return /* @__PURE__ */ E("span", { ref: i, role: "status", className: R("ok-loader", r), style: { "--size": `${f}px`, ...o }, ...l, children: [
5964
5976
  e === "tail" ? /* @__PURE__ */ s(Fa, { className: "ok-tail" }) : /* @__PURE__ */ s("span", { className: "ok-spinner", "aria-hidden": "true" }),
5965
5977
  /* @__PURE__ */ s("span", { className: "ok-sr", children: d })
5966
5978
  ] });
5967
- }), Ui = D(function({ label: e, className: n, ...a }, r) {
5979
+ }), Zi = D(function({ label: e, className: n, ...a }, r) {
5968
5980
  const { messages: o } = ve(), l = e ?? o.common.loading;
5969
5981
  return /* @__PURE__ */ E("span", { ref: r, role: "status", className: R("ok-dots", n), ...a, children: [
5970
5982
  /* @__PURE__ */ s("i", { "aria-hidden": "true" }),
@@ -5972,7 +5984,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5972
5984
  /* @__PURE__ */ s("i", { "aria-hidden": "true" }),
5973
5985
  /* @__PURE__ */ s("span", { className: "ok-sr", children: l })
5974
5986
  ] });
5975
- }), Gi = D(function({ icon: e, title: n, description: a, actions: r, titleAs: o = "h3", size: l = "md", className: i, children: c, ...d }, f) {
5987
+ }), Ji = D(function({ icon: e, title: n, description: a, actions: r, titleAs: o = "h3", size: l = "md", className: i, children: c, ...d }, f) {
5976
5988
  return /* @__PURE__ */ E("div", { ref: f, className: R("ok-empty", l !== "md" && `ok-empty--${l}`, i), ...d, children: [
5977
5989
  e != null && /* @__PURE__ */ s("div", { className: "ok-empty__media", "aria-hidden": "true", children: e }),
5978
5990
  /* @__PURE__ */ s(o, { className: "ok-empty__title", children: n }),
@@ -5980,7 +5992,7 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5980
5992
  c,
5981
5993
  r != null && /* @__PURE__ */ s("div", { className: "ok-empty__actions", children: r })
5982
5994
  ] });
5983
- }), Yi = D(function({ label: e, value: n, delta: a, trend: r, positive: o = "up", hint: l, icon: i, variant: c = "card", className: d, ...f }, h) {
5995
+ }), Qi = D(function({ label: e, value: n, delta: a, trend: r, positive: o = "up", hint: l, icon: i, variant: c = "card", className: d, ...f }, h) {
5984
5996
  const u = ve().messages.stat.trend, p = r ?? (a != null ? "flat" : void 0), b = !p || p === "flat" ? "neutral" : p === o ? "good" : "bad";
5985
5997
  return /* @__PURE__ */ E("div", { ref: h, className: R("ok-stat", c === "card" && "ok-card", d), ...f, children: [
5986
5998
  /* @__PURE__ */ E("div", { className: "ok-stat__label", children: [
@@ -5997,8 +6009,8 @@ const Ti = D(Ms), Ei = D(function({ items: e, value: n, defaultValue: a, onChang
5997
6009
  l != null && /* @__PURE__ */ s("span", { className: "ok-stat__hint", children: l })
5998
6010
  ] })
5999
6011
  ] });
6000
- }), Ts = { sm: 28, md: 36, lg: 48 }, Ma = ["#FF8FA9", "#FFBE3B", "#4CD787", "#D9A6FF", "#7FB0FF", "#FF9A5C"];
6001
- function Es(t) {
6012
+ }), Rs = { sm: 28, md: 36, lg: 48 }, Ma = ["#FF8FA9", "#FFBE3B", "#4CD787", "#D9A6FF", "#7FB0FF", "#FF9A5C"];
6013
+ function Ds(t) {
6002
6014
  const e = t.trim();
6003
6015
  if (!e) return "";
6004
6016
  const n = Array.from(e)[0];
@@ -6006,8 +6018,8 @@ function Es(t) {
6006
6018
  const a = e.split(/[\s._-]+/).filter(Boolean), r = Array.from(a[0])[0] ?? "", o = a.length > 1 ? Array.from(a[a.length - 1])[0] : "";
6007
6019
  return (r + o).toUpperCase();
6008
6020
  }
6009
- const fr = Le(void 0), pr = D(function({ src: e, name: n, alt: a, size: r, color: o, status: l, statusLabel: i, decorative: c, className: d, style: f, children: h, ...u }, p) {
6010
- const b = we(fr), m = r ?? b ?? "md", v = typeof m == "number" ? m : Ts[m], [w, g] = ie(!1);
6021
+ const ur = $e(void 0), fr = D(function({ src: e, name: n, alt: a, size: r, color: o, status: l, statusLabel: i, decorative: c, className: d, style: f, children: h, ...u }, p) {
6022
+ const b = we(ur), m = r ?? b ?? "md", v = typeof m == "number" ? m : Rs[m], [w, g] = ie(!1);
6011
6023
  de(() => {
6012
6024
  g(!1);
6013
6025
  }, [e]);
@@ -6028,7 +6040,7 @@ const fr = Le(void 0), pr = D(function({ src: e, name: n, alt: a, size: r, color
6028
6040
  ...k && !c ? { role: "img", "aria-label": k } : { "aria-hidden": !0 },
6029
6041
  ...u,
6030
6042
  children: [
6031
- /* @__PURE__ */ s("span", { className: "ok-avatar__fallback", "aria-hidden": "true", children: h ?? (n ? Es(n) : /* @__PURE__ */ E(ke, { children: [
6043
+ /* @__PURE__ */ s("span", { className: "ok-avatar__fallback", "aria-hidden": "true", children: h ?? (n ? Ds(n) : /* @__PURE__ */ E(ke, { children: [
6032
6044
  /* @__PURE__ */ s("circle", { cx: "10", cy: "7.500", r: "3" }),
6033
6045
  /* @__PURE__ */ s("path", { d: "M4 16.500c.8-2.800 3.100-4.300 6-4.300s5.200 1.500 6 4.300" })
6034
6046
  ] })) }),
@@ -6038,9 +6050,9 @@ const fr = Le(void 0), pr = D(function({ src: e, name: n, alt: a, size: r, color
6038
6050
  }
6039
6051
  );
6040
6052
  });
6041
- function Ps({ extra: t, members: e, label: n, total: a }) {
6053
+ function Os({ extra: t, members: e, label: n, total: a }) {
6042
6054
  const { messages: r } = ve(), [o, l] = ie(!1), i = B(null), c = B(null), d = B(), f = Me();
6043
- zn({ open: o, anchorRef: i, floatingRef: c, placement: "bottom", offset: 8 }), nn(o, () => l(!1)), de(() => () => clearTimeout(d.current), []);
6055
+ zn({ open: o, anchorRef: i, floatingRef: c, placement: "bottom", offset: 8 }), rn(o, () => l(!1)), de(() => () => clearTimeout(d.current), []);
6044
6056
  const h = (g) => {
6045
6057
  clearTimeout(d.current), d.current = setTimeout(() => l(!0), g);
6046
6058
  }, u = () => {
@@ -6074,7 +6086,7 @@ function Ps({ extra: t, members: e, label: n, total: a }) {
6074
6086
  onFocus: () => h(0),
6075
6087
  onBlur: u,
6076
6088
  onClick: () => l((g) => !g),
6077
- children: /* @__PURE__ */ E(pr, { className: "ok-avatar--more", decorative: !0, children: [
6089
+ children: /* @__PURE__ */ E(fr, { className: "ok-avatar--more", decorative: !0, children: [
6078
6090
  "+",
6079
6091
  t
6080
6092
  ] })
@@ -6093,7 +6105,7 @@ function Ps({ extra: t, members: e, label: n, total: a }) {
6093
6105
  onPointerLeave: u,
6094
6106
  children: [
6095
6107
  /* @__PURE__ */ s("ul", { className: "ok-avatars__list ok-scroll", children: e.map((g, x) => /* @__PURE__ */ E("li", { className: "ok-avatars__item", children: [
6096
- Qt(g, { size: "sm", decorative: !0 }),
6108
+ tn(g, { size: "sm", decorative: !0 }),
6097
6109
  /* @__PURE__ */ s("span", { className: "ok-avatars__name", children: g.props.name || g.props.alt })
6098
6110
  ] }, g.key ?? x)) }),
6099
6111
  a > w.length && /* @__PURE__ */ s("p", { className: "ok-avatars__rest", children: r.avatar.rest(a - w.length) })
@@ -6102,17 +6114,17 @@ function Ps({ extra: t, members: e, label: n, total: a }) {
6102
6114
  ) })
6103
6115
  ] });
6104
6116
  }
6105
- const Xi = D(function({ max: e, total: n, size: a, label: r, overflowList: o = !0, className: l, children: i, ...c }, d) {
6106
- const { messages: f } = ve(), h = Cn.toArray(i), u = e != null && h.length > e ? h.slice(0, e) : h, p = Math.max(0, (n ?? h.length) - u.length), b = h.filter((v) => Bt(v)), m = o && b.some((v) => v.props.name || v.props.alt);
6107
- return /* @__PURE__ */ s("div", { ref: d, role: "group", "aria-label": r, className: R("ok-avatars", l), ...c, children: /* @__PURE__ */ E(fr.Provider, { value: a, children: [
6117
+ const ec = D(function({ max: e, total: n, size: a, label: r, overflowList: o = !0, className: l, children: i, ...c }, d) {
6118
+ const { messages: f } = ve(), h = Tn.toArray(i), u = e != null && h.length > e ? h.slice(0, e) : h, p = Math.max(0, (n ?? h.length) - u.length), b = h.filter((v) => Bt(v)), m = o && b.some((v) => v.props.name || v.props.alt);
6119
+ return /* @__PURE__ */ s("div", { ref: d, role: "group", "aria-label": r, className: R("ok-avatars", l), ...c, children: /* @__PURE__ */ E(ur.Provider, { value: a, children: [
6108
6120
  u,
6109
- p > 0 && (m ? /* @__PURE__ */ s(Ps, { extra: p, members: b, label: r, total: n ?? h.length }) : /* @__PURE__ */ E(pr, { className: "ok-avatar--more", alt: f.avatar.more(p), children: [
6121
+ p > 0 && (m ? /* @__PURE__ */ s(Os, { extra: p, members: b, label: r, total: n ?? h.length }) : /* @__PURE__ */ E(fr, { className: "ok-avatar--more", alt: f.avatar.more(p), children: [
6110
6122
  "+",
6111
6123
  p
6112
6124
  ] }))
6113
6125
  ] }) });
6114
6126
  });
6115
- function $s(t, e, n = {}) {
6127
+ function Bs(t, e, n = {}) {
6116
6128
  if (typeof document > "u" || tt() === 0) return;
6117
6129
  const a = n.count ?? 12, r = getComputedStyle(n.source ?? document.documentElement), o = n.colors ?? [
6118
6130
  r.getPropertyValue("--ok-accent").trim() || "#FF6B8E",
@@ -6132,29 +6144,29 @@ function $s(t, e, n = {}) {
6132
6144
  b ? b.finished.then(p, p) : p();
6133
6145
  }
6134
6146
  }
6135
- const Ls = /* @__PURE__ */ E("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: [
6147
+ const Fs = /* @__PURE__ */ E("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: [
6136
6148
  /* @__PURE__ */ s("ellipse", { cx: "12", cy: "12", rx: "8.5", ry: "6.5" }),
6137
6149
  /* @__PURE__ */ s("ellipse", { className: "nostril", cx: "9", cy: "12", rx: "1.2", ry: "1.9" }),
6138
6150
  /* @__PURE__ */ s("ellipse", { className: "nostril", cx: "15", cy: "12", rx: "1.2", ry: "1.9" })
6139
- ] }), ji = D(function({ pressed: e, defaultPressed: n = !1, onChange: a, count: r, label: o, icon: l, noBurst: i, className: c, onClick: d, children: f, ...h }, u) {
6151
+ ] }), tc = D(function({ pressed: e, defaultPressed: n = !1, onChange: a, count: r, label: o, icon: l, noBurst: i, className: c, onClick: d, children: f, ...h }, u) {
6140
6152
  const { messages: p } = ve(), b = o ?? p.reaction.label, [m, v] = ue(e, n, a), w = B(null), g = (x) => {
6141
6153
  var k, M;
6142
6154
  const _ = !m;
6143
6155
  if (v(_), _ && !i) {
6144
6156
  const S = (M = (k = w.current) == null ? void 0 : k.querySelector(".ok-react__icon")) == null ? void 0 : M.getBoundingClientRect();
6145
- S && $s(S.left + S.width / 2, S.top + S.height / 2, { source: w.current ?? void 0 });
6157
+ S && Bs(S.left + S.width / 2, S.top + S.height / 2, { source: w.current ?? void 0 });
6146
6158
  }
6147
6159
  };
6148
- return /* @__PURE__ */ E("button", { ref: Ne(u, w), type: "button", className: R("ok-react ok-focusable", c), "aria-pressed": m, "data-icon-only": r == null && f == null ? "" : void 0, onClick: en(d, g), ...h, children: [
6149
- /* @__PURE__ */ s("span", { className: "ok-react__icon", children: l ?? Ls }),
6160
+ return /* @__PURE__ */ E("button", { ref: Ne(u, w), type: "button", className: R("ok-react ok-focusable", c), "aria-pressed": m, "data-icon-only": r == null && f == null ? "" : void 0, onClick: nn(d, g), ...h, children: [
6161
+ /* @__PURE__ */ s("span", { className: "ok-react__icon", children: l ?? Fs }),
6150
6162
  /* @__PURE__ */ s("span", { className: "ok-sr", children: b }),
6151
6163
  f,
6152
6164
  r != null && /* @__PURE__ */ s(Un, { className: "ok-react__count", value: r + (m ? 1 : 0) })
6153
6165
  ] });
6154
- }), Ki = D(function({ className: e, ...n }, a) {
6166
+ }), nc = D(function({ className: e, ...n }, a) {
6155
6167
  return /* @__PURE__ */ s("code", { ref: a, className: R("ok-code", e), ...n });
6156
6168
  });
6157
- async function Is(t) {
6169
+ async function zs(t) {
6158
6170
  var a;
6159
6171
  if ((a = navigator.clipboard) != null && a.writeText) return navigator.clipboard.writeText(t);
6160
6172
  const e = document.createElement("textarea");
@@ -6162,13 +6174,13 @@ async function Is(t) {
6162
6174
  const n = document.execCommand("copy");
6163
6175
  if (e.remove(), !n) throw new Error("copy failed");
6164
6176
  }
6165
- const Zi = D(function({ code: e, children: n, language: a, title: r, copyable: o = !0, wrap: l, maxHeight: i, label: c, onCopy: d, className: f, ...h }, u) {
6177
+ const ac = D(function({ code: e, children: n, language: a, title: r, copyable: o = !0, wrap: l, maxHeight: i, label: c, onCopy: d, className: f, ...h }, u) {
6166
6178
  const { messages: p } = ve(), b = e ?? n ?? "", [m, v] = ie("idle"), w = B();
6167
6179
  de(() => () => clearTimeout(w.current), []);
6168
6180
  const g = async () => {
6169
6181
  let k = "copied";
6170
6182
  try {
6171
- await Is(b), d == null || d(b);
6183
+ await zs(b), d == null || d(b);
6172
6184
  } catch {
6173
6185
  k = "failed";
6174
6186
  }
@@ -6194,35 +6206,35 @@ const Zi = D(function({ code: e, children: n, language: a, title: r, copyable: o
6194
6206
  ),
6195
6207
  /* @__PURE__ */ s("span", { className: "ok-sr", role: "status", "aria-live": "polite", children: m === "copied" ? p.code.copied : m === "failed" ? p.code.copyFailed : "" })
6196
6208
  ] });
6197
- }), hr = (t) => {
6209
+ }), pr = (t) => {
6198
6210
  const e = t != null && t !== Ca;
6199
6211
  return { Tag: e ? t : "div", box: e };
6200
- }, Ji = D(function({ as: e, above: n, below: a, className: r, ...o }, l) {
6201
- const { Tag: i, box: c } = hr(e);
6212
+ }, rc = D(function({ as: e, above: n, below: a, className: r, ...o }, l) {
6213
+ const { Tag: i, box: c } = pr(e);
6202
6214
  return /* @__PURE__ */ s(i, { ref: l, className: R("ok-show", r), "data-box": c ? "" : void 0, "data-ok-hide-below": n, "data-ok-hide-above": a, ...o });
6203
- }), Qi = D(function({ as: e, above: n, below: a, className: r, ...o }, l) {
6204
- const { Tag: i, box: c } = hr(e);
6215
+ }), oc = D(function({ as: e, above: n, below: a, className: r, ...o }, l) {
6216
+ const { Tag: i, box: c } = pr(e);
6205
6217
  return /* @__PURE__ */ s(i, { ref: l, className: R("ok-show", r), "data-box": c ? "" : void 0, "data-ok-hide-below": a, "data-ok-hide-above": n, ...o });
6206
- }), Rs = ["base", "sm", "md", "lg", "xl"];
6207
- function Ds(t) {
6218
+ }), Hs = ["base", "sm", "md", "lg", "xl"];
6219
+ function qs(t) {
6208
6220
  return typeof t == "object" && t !== null;
6209
6221
  }
6210
- const Qe = (t) => t === 0 ? "0px" : `var(--ok-s-${t})`, Os = (t) => t * 4, Bs = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch", baseline: "baseline" }, Fs = {
6222
+ const Qe = (t) => t === 0 ? "0px" : `var(--ok-s-${t})`, Vs = (t) => t * 4, Ws = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch", baseline: "baseline" }, Us = {
6211
6223
  start: "flex-start",
6212
6224
  center: "center",
6213
6225
  end: "flex-end",
6214
6226
  between: "space-between",
6215
6227
  around: "space-around",
6216
6228
  evenly: "space-evenly"
6217
- }, zs = (t) => Bs[t], Hs = (t) => Fs[t];
6229
+ }, Gs = (t) => Ws[t], Ys = (t) => Us[t];
6218
6230
  function Ve(t, e, n) {
6219
6231
  const a = {};
6220
6232
  if (e == null) return a;
6221
6233
  const r = `--ok-l-${t}`;
6222
- if (!Ds(e))
6234
+ if (!qs(e))
6223
6235
  return a[r] = String(n(e)), a;
6224
6236
  let o;
6225
- for (const l of Rs) {
6237
+ for (const l of Hs) {
6226
6238
  const i = e[l];
6227
6239
  i !== void 0 && (o = String(n(i))), o !== void 0 && (a[l === "base" ? r : `${r}-${l}`] = o);
6228
6240
  }
@@ -6235,12 +6247,12 @@ function it(t, e) {
6235
6247
  ...Ve("p", t.padding, Qe),
6236
6248
  ...Ve("px", t.paddingX, Qe),
6237
6249
  ...Ve("py", t.paddingY, Qe),
6238
- ...Ve("align", t.align, zs),
6239
- ...Ve("justify", t.justify, Hs),
6250
+ ...Ve("align", t.align, Gs),
6251
+ ...Ve("justify", t.justify, Ys),
6240
6252
  ...e
6241
6253
  };
6242
6254
  }
6243
- const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !== void 0 ? "" : void 0, ec = D(function({ as: e, padding: n, paddingX: a, paddingY: r, radius: o, surface: l, border: i, highlight: c, className: d, style: f, ...h }, u) {
6255
+ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !== void 0 ? "" : void 0, sc = D(function({ as: e, padding: n, paddingX: a, paddingY: r, radius: o, surface: l, border: i, highlight: c, className: d, style: f, ...h }, u) {
6244
6256
  const p = e ?? "div", b = {};
6245
6257
  return o !== void 0 && (b["--ok-box-r"] = o === 0 ? "0px" : `var(--ok-r-${o})`), l && (b["--ok-box-bg"] = `var(--ok-${l})`), /* @__PURE__ */ s(
6246
6258
  p,
@@ -6256,7 +6268,7 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6256
6268
  ...h
6257
6269
  }
6258
6270
  );
6259
- }), qs = D(function({ orientation: e = "horizontal", labelAlign: n = "center", decorative: a, className: r, children: o, ...l }, i) {
6271
+ }), Xs = D(function({ orientation: e = "horizontal", labelAlign: n = "center", decorative: a, className: r, children: o, ...l }, i) {
6260
6272
  const c = o != null && o !== !1 && e === "horizontal";
6261
6273
  return /* @__PURE__ */ s(
6262
6274
  "div",
@@ -6272,11 +6284,11 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6272
6284
  children: c ? /* @__PURE__ */ s("span", { className: "ok-divider__label", children: o }) : null
6273
6285
  }
6274
6286
  );
6275
- }), tc = D(function({ as: e, gap: n, align: a, justify: r, divider: o, padding: l, paddingX: i, paddingY: c, className: d, style: f, children: h, ...u }, p) {
6287
+ }), lc = D(function({ as: e, gap: n, align: a, justify: r, divider: o, padding: l, paddingX: i, paddingY: c, className: d, style: f, children: h, ...u }, p) {
6276
6288
  const b = e ?? "div";
6277
6289
  let m = h;
6278
- return o && (m = Cn.toArray(h).filter((w) => w != null && typeof w != "boolean").map((w, g) => /* @__PURE__ */ E(Ca, { children: [
6279
- g > 0 && (o === !0 ? /* @__PURE__ */ s(qs, {}) : o),
6290
+ return o && (m = Tn.toArray(h).filter((w) => w != null && typeof w != "boolean").map((w, g) => /* @__PURE__ */ E(Ca, { children: [
6291
+ g > 0 && (o === !0 ? /* @__PURE__ */ s(Xs, {}) : o),
6280
6292
  w
6281
6293
  ] }, Bt(w) && w.key != null ? w.key : g))), /* @__PURE__ */ s(
6282
6294
  b,
@@ -6289,7 +6301,7 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6289
6301
  children: m
6290
6302
  }
6291
6303
  );
6292
- }), Vs = D(function({ as: e, gap: n, rowGap: a, align: r, justify: o, wrap: l = !0, padding: i, paddingX: c, paddingY: d, className: f, style: h, ...u }, p) {
6304
+ }), js = D(function({ as: e, gap: n, rowGap: a, align: r, justify: o, wrap: l = !0, padding: i, paddingX: c, paddingY: d, className: f, style: h, ...u }, p) {
6293
6305
  return /* @__PURE__ */ s(
6294
6306
  e ?? "div",
6295
6307
  {
@@ -6301,11 +6313,11 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6301
6313
  ...u
6302
6314
  }
6303
6315
  );
6304
- }), nc = Vs, Ws = { start: "start", center: "center", end: "end", stretch: "stretch" }, Us = { start: "start", center: "center", end: "end", stretch: "stretch", baseline: "baseline" }, ac = D(function({ as: e, columns: n, minItemWidth: a, gap: r, rowGap: o, align: l, justify: i, padding: c, paddingX: d, paddingY: f, className: h, style: u, ...p }, b) {
6316
+ }), ic = js, Ks = { start: "start", center: "center", end: "end", stretch: "stretch" }, Zs = { start: "start", center: "center", end: "end", stretch: "stretch", baseline: "baseline" }, cc = D(function({ as: e, columns: n, minItemWidth: a, gap: r, rowGap: o, align: l, justify: i, padding: c, paddingX: d, paddingY: f, className: h, style: u, ...p }, b) {
6305
6317
  const m = e ?? "div", v = a !== void 0, w = {
6306
6318
  ...Ve("cols", v ? void 0 : n, (g) => Math.max(1, Math.round(g))),
6307
- ...Ve("align", l, (g) => Us[g]),
6308
- ...Ve("justify", i, (g) => Ws[g]),
6319
+ ...Ve("align", l, (g) => Zs[g]),
6320
+ ...Ve("justify", i, (g) => Ks[g]),
6309
6321
  ...v ? { "--ok-grid-min": typeof a == "number" ? `${a}px` : a } : null
6310
6322
  };
6311
6323
  return /* @__PURE__ */ s(
@@ -6319,7 +6331,7 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6319
6331
  ...p
6320
6332
  }
6321
6333
  );
6322
- }), rc = D(function({ as: e, span: n, rowSpan: a, className: r, style: o, ...l }, i) {
6334
+ }), dc = D(function({ as: e, span: n, rowSpan: a, className: r, style: o, ...l }, i) {
6323
6335
  const c = e ?? "div", d = Ve("span", n, (f) => f === "full" ? "1 / -1" : `span ${Math.max(1, Math.round(f))}`);
6324
6336
  return /* @__PURE__ */ s(
6325
6337
  c,
@@ -6330,9 +6342,9 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6330
6342
  ...l
6331
6343
  }
6332
6344
  );
6333
- }), oc = D(function({ as: e, size: n = "lg", gutter: a = !0, center: r = !0, className: o, ...l }, i) {
6345
+ }), uc = D(function({ as: e, size: n = "lg", gutter: a = !0, center: r = !0, className: o, ...l }, i) {
6334
6346
  return /* @__PURE__ */ s(e ?? "div", { ref: i, className: R("ok-container", o), "data-size": n, "data-gutter": a ? void 0 : "false", "data-center": r ? void 0 : "false", ...l });
6335
- }), sc = D(function({ as: e, axis: n = "both", inline: a, padding: r, paddingX: o, paddingY: l, className: i, style: c, ...d }, f) {
6347
+ }), fc = D(function({ as: e, axis: n = "both", inline: a, padding: r, paddingX: o, paddingY: l, className: i, style: c, ...d }, f) {
6336
6348
  return /* @__PURE__ */ s(
6337
6349
  e ?? "div",
6338
6350
  {
@@ -6345,7 +6357,7 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6345
6357
  ...d
6346
6358
  }
6347
6359
  );
6348
- }), lc = D(function({ size: e, className: n, style: a, ...r }, o) {
6360
+ }), pc = D(function({ size: e, className: n, style: a, ...r }, o) {
6349
6361
  return /* @__PURE__ */ s(
6350
6362
  "div",
6351
6363
  {
@@ -6356,11 +6368,11 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6356
6368
  ...r
6357
6369
  }
6358
6370
  );
6359
- }), ic = D(function({ ratio: e = 16 / 9, className: n, style: a, ...r }, o) {
6371
+ }), hc = D(function({ ratio: e = 16 / 9, className: n, style: a, ...r }, o) {
6360
6372
  return /* @__PURE__ */ s("div", { ref: o, className: R("ok-aspect", n), style: { aspectRatio: String(e), ...a }, ...r });
6361
- }), cc = D(function({ as: e, edge: n = "top", offset: a = 0, className: r, style: o, ...l }, i) {
6373
+ }), mc = D(function({ as: e, edge: n = "top", offset: a = 0, className: r, style: o, ...l }, i) {
6362
6374
  return /* @__PURE__ */ s(e ?? "div", { ref: i, className: R("ok-sticky", r), "data-edge": n, style: { [n]: typeof a == "number" ? Qe(a) : a, ...o }, ...l });
6363
- }), dc = D(function({ direction: e = "vertical", label: n, focusable: a = !0, className: r, role: o, tabIndex: l, ...i }, c) {
6375
+ }), bc = D(function({ direction: e = "vertical", label: n, focusable: a = !0, className: r, role: o, tabIndex: l, ...i }, c) {
6364
6376
  const d = !!(n ?? i["aria-label"] ?? i["aria-labelledby"]);
6365
6377
  return /* @__PURE__ */ s(
6366
6378
  "div",
@@ -6374,7 +6386,7 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6374
6386
  ...i
6375
6387
  }
6376
6388
  );
6377
- }), uc = D(function({ as: e, size: n = "lg", gap: a, padded: r = !0, className: o, style: l, ...i }, c) {
6389
+ }), vc = D(function({ as: e, size: n = "lg", gap: a, padded: r = !0, className: o, style: l, ...i }, c) {
6378
6390
  return /* @__PURE__ */ s(
6379
6391
  e ?? "div",
6380
6392
  {
@@ -6386,7 +6398,7 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6386
6398
  ...i
6387
6399
  }
6388
6400
  );
6389
- }), fc = D(function({ title: e, description: n, breadcrumb: a, actions: r, headingLevel: o = 1, titleId: l, className: i, children: c, ...d }, f) {
6401
+ }), gc = D(function({ title: e, description: n, breadcrumb: a, actions: r, headingLevel: o = 1, titleId: l, className: i, children: c, ...d }, f) {
6390
6402
  const h = `h${o}`;
6391
6403
  return /* @__PURE__ */ E("header", { ref: f, className: R("ok-page-header", i), ...d, children: [
6392
6404
  a ? /* @__PURE__ */ s("div", { className: "ok-page-header__breadcrumb", children: a }) : null,
@@ -6399,7 +6411,7 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6399
6411
  ] }),
6400
6412
  c
6401
6413
  ] });
6402
- }), pc = D(function({ title: e, description: n, actions: a, headingLevel: r = 2, gap: o, className: l, style: i, children: c, ...d }, f) {
6414
+ }), kc = D(function({ title: e, description: n, actions: a, headingLevel: r = 2, gap: o, className: l, style: i, children: c, ...d }, f) {
6403
6415
  const h = Me(), u = `h${r}`, p = e != null && e !== !1, b = d["aria-labelledby"] ?? (p && !d["aria-label"] ? h : void 0);
6404
6416
  return /* @__PURE__ */ E("section", { ref: f, className: R("ok-l ok-section", l), style: it({ gap: o }, i), ...d, "aria-labelledby": b, children: [
6405
6417
  p || a ? /* @__PURE__ */ E("div", { className: "ok-section__head", children: [
@@ -6411,13 +6423,13 @@ const zt = (t) => t.padding !== void 0 || t.paddingX !== void 0 || t.paddingY !=
6411
6423
  ] }) : null,
6412
6424
  c
6413
6425
  ] });
6414
- }), Gs = 'a[href], button, input:not([type="hidden"]), select, textarea, [tabindex]';
6415
- function _n(t) {
6416
- return Array.from(t.querySelectorAll(Gs)).filter(
6426
+ }), Js = 'a[href], button, input:not([type="hidden"]), select, textarea, [tabindex]';
6427
+ function Nn(t) {
6428
+ return Array.from(t.querySelectorAll(Js)).filter(
6417
6429
  (e) => !e.disabled && e.getAttribute("aria-hidden") !== "true" && !e.closest("[hidden], [inert]")
6418
6430
  );
6419
6431
  }
6420
- function Ys(t) {
6432
+ function Qs(t) {
6421
6433
  const e = t;
6422
6434
  if (!e || !e.tagName) return !1;
6423
6435
  if (e.isContentEditable || e.tagName === "TEXTAREA" || e.tagName === "SELECT") return !0;
@@ -6425,16 +6437,16 @@ function Ys(t) {
6425
6437
  const n = e.type;
6426
6438
  return !["button", "checkbox", "radio", "submit", "reset", "image", "file", "color"].includes(n);
6427
6439
  }
6428
- function mr(t, e, n, a, r = !0) {
6440
+ function hr(t, e, n, a, r = !0) {
6429
6441
  if (n === 0) return null;
6430
6442
  const o = a === "horizontal" ? "ArrowLeft" : "ArrowUp", l = a === "horizontal" ? "ArrowRight" : "ArrowDown";
6431
6443
  return t === "Home" ? 0 : t === "End" ? n - 1 : t === l ? e + 1 < n ? e + 1 : r ? 0 : e : t === o ? e > 0 ? e - 1 : r ? n - 1 : e : null;
6432
6444
  }
6433
- const hc = D(function({ orientation: e = "horizontal", gap: n, loop: a = !0, wrap: r = !1, className: o, style: l, onKeyDown: i, onFocus: c, ...d }, f) {
6445
+ const yc = D(function({ orientation: e = "horizontal", gap: n, loop: a = !0, wrap: r = !1, className: o, style: l, onKeyDown: i, onFocus: c, ...d }, f) {
6434
6446
  const h = B(null), u = B(null), p = () => {
6435
6447
  const v = h.current;
6436
6448
  if (!v) return;
6437
- const w = _n(v);
6449
+ const w = Nn(v);
6438
6450
  if (!w.length) return;
6439
6451
  const g = u.current && w.includes(u.current) ? u.current : w[0];
6440
6452
  u.current = g, w.forEach((x) => {
@@ -6445,14 +6457,14 @@ const hc = D(function({ orientation: e = "horizontal", gap: n, loop: a = !0, wra
6445
6457
  const b = (v) => {
6446
6458
  c == null || c(v);
6447
6459
  const w = h.current, g = v.target;
6448
- w && g !== w && _n(w).includes(g) && (u.current = g, p());
6460
+ w && g !== w && Nn(w).includes(g) && (u.current = g, p());
6449
6461
  }, m = (v) => {
6450
6462
  i == null || i(v);
6451
6463
  const w = h.current;
6452
- if (v.defaultPrevented || !w || v.altKey || v.ctrlKey || v.metaKey || Ys(v.target)) return;
6453
- const g = _n(w), x = g.indexOf(v.target);
6464
+ if (v.defaultPrevented || !w || v.altKey || v.ctrlKey || v.metaKey || Qs(v.target)) return;
6465
+ const g = Nn(w), x = g.indexOf(v.target);
6454
6466
  if (x < 0) return;
6455
- const _ = mr(v.key, x, g.length, e, a);
6467
+ const _ = hr(v.key, x, g.length, e, a);
6456
6468
  _ !== null && (v.preventDefault(), g[_].focus());
6457
6469
  };
6458
6470
  return /* @__PURE__ */ s(
@@ -6470,7 +6482,7 @@ const hc = D(function({ orientation: e = "horizontal", gap: n, loop: a = !0, wra
6470
6482
  ...d
6471
6483
  }
6472
6484
  );
6473
- }), Ot = Le(!1), mc = D(function({ collapsed: e, className: n, children: a, ...r }, o) {
6485
+ }), Ot = $e(!1), _c = D(function({ collapsed: e, className: n, children: a, ...r }, o) {
6474
6486
  const l = we(Ot), i = e ?? l, c = B(null);
6475
6487
  return xe(() => {
6476
6488
  const d = c.current;
@@ -6494,13 +6506,13 @@ const hc = D(function({ orientation: e = "horizontal", gap: n, loop: a = !0, wra
6494
6506
  /* @__PURE__ */ s("span", { className: "ok-nav__pill", "aria-hidden": "true" }),
6495
6507
  a
6496
6508
  ] }) });
6497
- }), bc = D(function({ label: e, className: n, children: a, ...r }, o) {
6509
+ }), xc = D(function({ label: e, className: n, children: a, ...r }, o) {
6498
6510
  const l = Me(), i = e != null && e !== !1;
6499
6511
  return /* @__PURE__ */ E("div", { ref: o, role: "group", "aria-labelledby": i ? l : void 0, className: R("ok-nav__group", n), ...r, children: [
6500
6512
  i ? /* @__PURE__ */ s("div", { id: l, className: "ok-nav__group-label", children: /* @__PURE__ */ s("span", { children: e }) }) : null,
6501
6513
  a
6502
6514
  ] });
6503
- }), vc = D(function({ as: e, current: n, icon: a, badge: r, sub: o, label: l, disabled: i, href: c, className: d, children: f, onClick: h, title: u, ...p }, b) {
6515
+ }), Nc = D(function({ as: e, current: n, icon: a, badge: r, sub: o, label: l, disabled: i, href: c, className: d, children: f, onClick: h, title: u, ...p }, b) {
6504
6516
  const m = we(Ot), v = e ?? (c !== void 0 ? "a" : "button"), w = l ?? (typeof f == "string" || typeof f == "number" ? String(f) : void 0), g = r != null && r !== !1, x = (k) => {
6505
6517
  if (i) {
6506
6518
  k.preventDefault();
@@ -6531,17 +6543,17 @@ const hc = D(function({ orientation: e = "horizontal", gap: n, loop: a = !0, wra
6531
6543
  ]
6532
6544
  }
6533
6545
  );
6534
- }), br = Le(null);
6546
+ }), mr = $e(null);
6535
6547
  function bt(t) {
6536
- const e = we(br);
6548
+ const e = we(mr);
6537
6549
  if (!e) throw new Error(`${t} 必须放在 <AppShell> 里面`);
6538
6550
  return e;
6539
6551
  }
6540
- function gc() {
6552
+ function wc() {
6541
6553
  const { root: t, floatGap: e, ...n } = bt("useAppShell()");
6542
6554
  return n;
6543
6555
  }
6544
- const Xs = D(function({
6556
+ const el = D(function({
6545
6557
  contained: e = !1,
6546
6558
  collapsed: n = "auto",
6547
6559
  collapseBelow: a = "md",
@@ -6563,7 +6575,7 @@ const Xs = D(function({
6563
6575
  children: x,
6564
6576
  ..._
6565
6577
  }, k) {
6566
- const M = ve().messages.appShell.skipLink, S = m ?? M, T = Me(), I = v ?? `ok-main-${T.replace(/[^a-zA-Z0-9_-]/g, "")}`, [C, N] = ie(null), [y, A] = ue(o, l, i), [z, $] = ue(h, u, p), F = _t(a), O = _t(r), [P, H] = ie(null);
6578
+ const M = ve().messages.appShell.skipLink, S = m ?? M, T = Me(), I = v ?? `ok-main-${T.replace(/[^a-zA-Z0-9_-]/g, "")}`, [C, N] = ie(null), [y, A] = ue(o, l, i), [z, L] = ue(h, u, p), F = _t(a), O = _t(r), [P, H] = ie(null);
6567
6579
  xe(() => {
6568
6580
  if (!C || !e) {
6569
6581
  H(null);
@@ -6577,12 +6589,12 @@ const Xs = D(function({
6577
6589
  const pe = new ResizeObserver(re);
6578
6590
  return pe.observe(C), () => pe.disconnect();
6579
6591
  }, [C, e]);
6580
- const U = (re, pe) => e ? P === null || P >= Pn[re] : pe, V = n === "auto" ? !U(a, F) : n, j = n === "auto" ? !U(r, O) : n, [le, J] = ue(c, d ?? !j, f), L = c !== void 0, q = B(j), G = q.current === j ? le : j ? !1 : L ? le : d ?? !0;
6592
+ const U = (re, pe) => e ? P === null || P >= Ln[re] : pe, V = n === "auto" ? !U(a, F) : n, j = n === "auto" ? !U(r, O) : n, [le, J] = ue(c, d ?? !j, f), $ = c !== void 0, q = B(j), G = q.current === j ? le : j ? !1 : $ ? le : d ?? !0;
6581
6593
  de(() => {
6582
6594
  !V && y && A(!1);
6583
6595
  }, [V, y, A]), de(() => {
6584
- q.current !== j && (q.current = j, j ? J(!1) : L || J(d ?? !0));
6585
- }, [j, L, d, J]);
6596
+ q.current !== j && (q.current = j, j ? J(!1) : $ || J(d ?? !0));
6597
+ }, [j, $, d, J]);
6586
6598
  const ae = Ae(() => ({
6587
6599
  sidebarCollapsed: V,
6588
6600
  asideCollapsed: j,
@@ -6590,22 +6602,22 @@ const Xs = D(function({
6590
6602
  setSidebarOpen: A,
6591
6603
  openSidebar: () => A(!0),
6592
6604
  closeSidebar: () => A(!1),
6593
- toggleSidebar: () => V ? A((re) => !re) : $((re) => !re),
6605
+ toggleSidebar: () => V ? A((re) => !re) : L((re) => !re),
6594
6606
  rail: z,
6595
- setRail: $,
6596
- toggleRail: () => $((re) => !re),
6607
+ setRail: L,
6608
+ toggleRail: () => L((re) => !re),
6597
6609
  asideOpen: G,
6598
6610
  setAsideOpen: J,
6599
6611
  toggleAside: () => J((re) => !re),
6600
6612
  contained: e,
6601
6613
  mainId: I,
6602
6614
  root: C,
6603
- floatGap: b !== void 0 ? Os(b) : void 0
6604
- }), [V, j, y, A, z, $, G, J, e, I, C, b]), Q = (re) => {
6615
+ floatGap: b !== void 0 ? Vs(b) : void 0
6616
+ }), [V, j, y, A, z, L, G, J, e, I, C, b]), Q = (re) => {
6605
6617
  const pe = document.getElementById(I);
6606
6618
  pe && (re.preventDefault(), pe.focus());
6607
6619
  };
6608
- return /* @__PURE__ */ s(br.Provider, { value: ae, children: /* @__PURE__ */ E(
6620
+ return /* @__PURE__ */ s(mr.Provider, { value: ae, children: /* @__PURE__ */ E(
6609
6621
  "div",
6610
6622
  {
6611
6623
  ref: Ne(k, N),
@@ -6622,29 +6634,29 @@ const Xs = D(function({
6622
6634
  ]
6623
6635
  }
6624
6636
  ) });
6625
- }), js = D(function({ variant: e = "plain", className: n, ...a }, r) {
6637
+ }), tl = D(function({ variant: e = "plain", className: n, ...a }, r) {
6626
6638
  return bt("<AppShell.Header>"), /* @__PURE__ */ s("header", { ref: r, className: R("ok-shell__header", n), "data-variant": e, ...a });
6627
- }), Ks = D(function({ variant: e = "plain", className: n, ...a }, r) {
6639
+ }), nl = D(function({ variant: e = "plain", className: n, ...a }, r) {
6628
6640
  return bt("<AppShell.Footer>"), /* @__PURE__ */ s("footer", { ref: r, className: R("ok-shell__footer", n), "data-variant": e, ...a });
6629
6641
  });
6630
- function vr(t) {
6642
+ function br(t) {
6631
6643
  const { role: e, ...n } = t;
6632
6644
  return n;
6633
6645
  }
6634
- const Zs = (t) => typeof t == "number" ? `${t}px` : t;
6635
- function gr(t, e, n, a) {
6646
+ const al = (t) => typeof t == "number" ? `${t}px` : t;
6647
+ function vr(t, e, n, a) {
6636
6648
  return {
6637
- ...e !== void 0 ? { [`--ok-shell-${t}-w`]: Zs(e) } : null,
6649
+ ...e !== void 0 ? { [`--ok-shell-${t}-w`]: al(e) } : null,
6638
6650
  ...n !== void 0 ? { "--ok-shell-card-pad": Qe(n) } : null,
6639
6651
  ...a
6640
6652
  };
6641
6653
  }
6642
- const Js = D(function({ label: e, width: n, drawerWidth: a = 300, padding: r, closeOnNavigate: o = !0, className: l, style: i, children: c, ...d }, f) {
6643
- const h = ve().messages.appShell.sidebar, u = e ?? h, p = bt("<AppShell.Sidebar>"), b = gr("sidebar", n, r, i);
6654
+ const rl = D(function({ label: e, width: n, drawerWidth: a = 300, padding: r, closeOnNavigate: o = !0, className: l, style: i, children: c, ...d }, f) {
6655
+ const h = ve().messages.appShell.sidebar, u = e ?? h, p = bt("<AppShell.Sidebar>"), b = vr("sidebar", n, r, i);
6644
6656
  return p.sidebarCollapsed ? /* @__PURE__ */ s(
6645
6657
  mt,
6646
6658
  {
6647
- ...vr(d),
6659
+ ...br(d),
6648
6660
  ref: f,
6649
6661
  open: p.sidebarOpen,
6650
6662
  onOpenChange: p.setSidebarOpen,
@@ -6657,7 +6669,7 @@ const Js = D(function({ label: e, width: n, drawerWidth: a = 300, padding: r, cl
6657
6669
  "aria-label": u,
6658
6670
  className: R("ok-shell-card ok-shell__drawer ok-scroll", l),
6659
6671
  style: b,
6660
- children: /* @__PURE__ */ s(Ot.Provider, { value: !1, children: /* @__PURE__ */ s("div", { className: "ok-shell__drawer-body", onClick: o ? (m) => kr(m, p.setSidebarOpen) : void 0, children: c }) })
6672
+ children: /* @__PURE__ */ s(Ot.Provider, { value: !1, children: /* @__PURE__ */ s("div", { className: "ok-shell__drawer-body", onClick: o ? (m) => gr(m, p.setSidebarOpen) : void 0, children: c }) })
6661
6673
  }
6662
6674
  ) : /* @__PURE__ */ s(
6663
6675
  "aside",
@@ -6671,12 +6683,12 @@ const Js = D(function({ label: e, width: n, drawerWidth: a = 300, padding: r, cl
6671
6683
  children: /* @__PURE__ */ s(Ot.Provider, { value: p.rail, children: c })
6672
6684
  }
6673
6685
  );
6674
- }), Qs = D(function({ label: e, width: n, drawerWidth: a = 360, padding: r, closeOnNavigate: o = !1, className: l, style: i, children: c, ...d }, f) {
6675
- const h = ve().messages.appShell.aside, u = e ?? h, p = bt("<AppShell.Aside>"), b = gr("aside", n, r, i);
6686
+ }), ol = D(function({ label: e, width: n, drawerWidth: a = 360, padding: r, closeOnNavigate: o = !1, className: l, style: i, children: c, ...d }, f) {
6687
+ const h = ve().messages.appShell.aside, u = e ?? h, p = bt("<AppShell.Aside>"), b = vr("aside", n, r, i);
6676
6688
  return p.asideCollapsed ? /* @__PURE__ */ s(
6677
6689
  mt,
6678
6690
  {
6679
- ...vr(d),
6691
+ ...br(d),
6680
6692
  ref: f,
6681
6693
  open: p.asideOpen,
6682
6694
  onOpenChange: p.setAsideOpen,
@@ -6689,19 +6701,19 @@ const Js = D(function({ label: e, width: n, drawerWidth: a = 300, padding: r, cl
6689
6701
  "aria-label": u,
6690
6702
  className: R("ok-shell-card ok-shell__drawer ok-scroll", l),
6691
6703
  style: b,
6692
- children: /* @__PURE__ */ s("div", { className: "ok-shell__drawer-body", onClick: o ? (m) => kr(m, p.setAsideOpen) : void 0, children: c })
6704
+ children: /* @__PURE__ */ s("div", { className: "ok-shell__drawer-body", onClick: o ? (m) => gr(m, p.setAsideOpen) : void 0, children: c })
6693
6705
  }
6694
6706
  ) : p.asideOpen ? /* @__PURE__ */ s("aside", { ref: f, "aria-label": u, className: R("ok-shell__aside ok-shell-card ok-scroll", l), style: b, ...d, children: c }) : null;
6695
6707
  });
6696
- function kr(t, e) {
6708
+ function gr(t, e) {
6697
6709
  var a, r;
6698
6710
  const n = (r = (a = t.target).closest) == null ? void 0 : r.call(a, "a[href], .ok-nav__item");
6699
6711
  n && n.getAttribute("aria-disabled") !== "true" && e(!1);
6700
6712
  }
6701
- const el = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6713
+ const sl = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6702
6714
  const l = bt("<AppShell.Main>");
6703
6715
  return /* @__PURE__ */ s("main", { ref: o, id: n ?? l.mainId, tabIndex: a ?? -1, className: R("ok-shell__main ok-scroll", e), ...r });
6704
- }), tl = D(function({ target: e = "sidebar", label: n, drawerOnly: a, className: r, children: o, onClick: l, ...i }, c) {
6716
+ }), ll = D(function({ target: e = "sidebar", label: n, drawerOnly: a, className: r, children: o, onClick: l, ...i }, c) {
6705
6717
  const { messages: d } = ve(), f = bt("<AppShell.Trigger>"), h = e === "sidebar", u = h ? f.sidebarCollapsed : f.asideCollapsed;
6706
6718
  if (!u && a) return null;
6707
6719
  const p = h ? u ? f.sidebarOpen : !f.rail : f.asideOpen;
@@ -6714,12 +6726,12 @@ const el = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6714
6726
  "aria-label": n ?? (h ? d.appShell.toggleSidebar : d.appShell.toggleAside),
6715
6727
  "aria-expanded": p,
6716
6728
  "aria-haspopup": u ? "dialog" : void 0,
6717
- onClick: en(l, () => h ? f.toggleSidebar() : f.toggleAside()),
6729
+ onClick: nn(l, () => h ? f.toggleSidebar() : f.toggleAside()),
6718
6730
  ...i,
6719
6731
  children: o ?? /* @__PURE__ */ s(ke, { children: /* @__PURE__ */ s("path", { d: "M3.5 6h13M3.5 10h13M3.5 14h13" }) })
6720
6732
  }
6721
6733
  );
6722
- }), kc = Object.assign(Xs, { Header: js, Sidebar: Js, Main: el, Aside: Qs, Footer: Ks, Trigger: tl }), yr = Le(null), Sa = (t) => typeof t == "number" ? `${t}px` : t, nl = D(function({ value: e, defaultValue: n, onChange: a, action: r, position: o = "fixed", layout: l = "auto", insetStart: i, insetEnd: c, className: d, style: f, children: h, onKeyDown: u, ...p }, b) {
6734
+ }), Mc = Object.assign(el, { Header: tl, Sidebar: rl, Main: sl, Aside: ol, Footer: nl, Trigger: ll }), kr = $e(null), Sa = (t) => typeof t == "number" ? `${t}px` : t, il = D(function({ value: e, defaultValue: n, onChange: a, action: r, position: o = "fixed", layout: l = "auto", insetStart: i, insetEnd: c, className: d, style: f, children: h, onKeyDown: u, ...p }, b) {
6723
6735
  const [m, v] = ue(e, n, a), w = B(null), [g, x] = ie(0), _ = () => {
6724
6736
  const S = w.current;
6725
6737
  if (!S) return;
@@ -6746,10 +6758,10 @@ const el = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6746
6758
  if (S.defaultPrevented || !T || S.altKey || S.ctrlKey || S.metaKey) return;
6747
6759
  const I = Array.from(T.querySelectorAll('.ok-tabbar__item:not([aria-disabled="true"])')), C = I.indexOf(S.target);
6748
6760
  if (C < 0) return;
6749
- const N = mr(S.key, C, I.length, "horizontal");
6761
+ const N = hr(S.key, C, I.length, "horizontal");
6750
6762
  N !== null && (S.preventDefault(), I[N].focus());
6751
6763
  };
6752
- return /* @__PURE__ */ s(yr.Provider, { value: { value: m, select: v }, children: /* @__PURE__ */ E(
6764
+ return /* @__PURE__ */ s(kr.Provider, { value: { value: m, select: v }, children: /* @__PURE__ */ E(
6753
6765
  "nav",
6754
6766
  {
6755
6767
  ref: b,
@@ -6768,8 +6780,8 @@ const el = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6768
6780
  ]
6769
6781
  }
6770
6782
  ) });
6771
- }), al = D(function({ value: e, as: n, icon: a, badge: r, label: o, disabled: l, href: i, className: c, children: d, onClick: f, ...h }, u) {
6772
- const p = we(yr), b = n ?? (i !== void 0 ? "a" : "button"), m = (p == null ? void 0 : p.value) === e, v = (x) => {
6783
+ }), cl = D(function({ value: e, as: n, icon: a, badge: r, label: o, disabled: l, href: i, className: c, children: d, onClick: f, ...h }, u) {
6784
+ const p = we(kr), b = n ?? (i !== void 0 ? "a" : "button"), m = (p == null ? void 0 : p.value) === e, v = (x) => {
6773
6785
  if (l) {
6774
6786
  x.preventDefault();
6775
6787
  return;
@@ -6798,7 +6810,7 @@ const el = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6798
6810
  ]
6799
6811
  }
6800
6812
  );
6801
- }), yc = Object.assign(nl, { Item: al }), _c = D(function({
6813
+ }), Sc = Object.assign(il, { Item: cl }), Ac = D(function({
6802
6814
  orientation: e = "horizontal",
6803
6815
  value: n,
6804
6816
  defaultValue: a = 50,
@@ -6814,41 +6826,41 @@ const el = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6814
6826
  children: p,
6815
6827
  ...b
6816
6828
  }, m) {
6817
- const { messages: v } = ve(), w = f ?? v.splitPane.separator, [g, x] = ue(n, a, r), _ = B(null), k = B(null), M = B(!1), [S, T] = ie(!1), [I, C] = ie(!1), N = Me(), [y, A] = Cn.toArray(p), z = Ce(g, o, l), $ = e === "horizontal", F = $ ? c : !1;
6829
+ const { messages: v } = ve(), w = f ?? v.splitPane.separator, [g, x] = ue(n, a, r), _ = B(null), k = B(null), M = B(!1), [S, T] = ie(!1), [I, C] = ie(!1), N = Me(), [y, A] = Tn.toArray(p), z = Ce(g, o, l), L = e === "horizontal", F = L ? c : !1;
6818
6830
  xe(() => {
6819
- const L = _.current;
6820
- if (!L || d !== void 0 || F === !1) {
6831
+ const $ = _.current;
6832
+ if (!$ || d !== void 0 || F === !1) {
6821
6833
  C(!1);
6822
6834
  return;
6823
6835
  }
6824
- const q = Pn[F], G = () => {
6825
- const Q = L.getBoundingClientRect().width;
6836
+ const q = Ln[F], G = () => {
6837
+ const Q = $.getBoundingClientRect().width;
6826
6838
  C(Q > 0 && Q < q);
6827
6839
  };
6828
6840
  if (G(), typeof ResizeObserver > "u") return;
6829
6841
  const ae = new ResizeObserver(G);
6830
- return ae.observe(L), () => ae.disconnect();
6842
+ return ae.observe($), () => ae.disconnect();
6831
6843
  }, [d, F]);
6832
- const O = d ?? I, P = (L) => x(Ce(Math.round(L * 10) / 10, o, l)), H = (L) => {
6844
+ const O = d ?? I, P = ($) => x(Ce(Math.round($ * 10) / 10, o, l)), H = ($) => {
6833
6845
  const q = k.current;
6834
6846
  if (!q) return;
6835
- const G = q.getBoundingClientRect(), ae = $ ? G.width : G.height;
6847
+ const G = q.getBoundingClientRect(), ae = L ? G.width : G.height;
6836
6848
  if (ae <= 0) return;
6837
- let Q = $ ? (L.clientX - G.left) / ae : (L.clientY - G.top) / ae;
6838
- $ && getComputedStyle(q).direction === "rtl" && (Q = 1 - Q), P(Q * 100);
6839
- }, U = (L) => {
6849
+ let Q = L ? ($.clientX - G.left) / ae : ($.clientY - G.top) / ae;
6850
+ L && getComputedStyle(q).direction === "rtl" && (Q = 1 - Q), P(Q * 100);
6851
+ }, U = ($) => {
6840
6852
  var q, G;
6841
- O || L.button !== 0 || (L.preventDefault(), L.currentTarget.focus(), (G = (q = L.currentTarget).setPointerCapture) == null || G.call(q, L.pointerId), M.current = !0, T(!0));
6842
- }, V = (L) => {
6843
- M.current && H(L);
6844
- }, j = (L) => {
6853
+ O || $.button !== 0 || ($.preventDefault(), $.currentTarget.focus(), (G = (q = $.currentTarget).setPointerCapture) == null || G.call(q, $.pointerId), M.current = !0, T(!0));
6854
+ }, V = ($) => {
6855
+ M.current && H($);
6856
+ }, j = ($) => {
6845
6857
  var q, G;
6846
- M.current && (M.current = !1, T(!1), (G = (q = L.currentTarget).releasePointerCapture) == null || G.call(q, L.pointerId));
6847
- }, le = (L) => {
6858
+ M.current && (M.current = !1, T(!1), (G = (q = $.currentTarget).releasePointerCapture) == null || G.call(q, $.pointerId));
6859
+ }, le = ($) => {
6848
6860
  if (O) return;
6849
- const q = L.shiftKey ? 10 : i, G = $ ? "ArrowLeft" : "ArrowUp", ae = $ ? "ArrowRight" : "ArrowDown";
6861
+ const q = $.shiftKey ? 10 : i, G = L ? "ArrowLeft" : "ArrowUp", ae = L ? "ArrowRight" : "ArrowDown";
6850
6862
  let Q = null;
6851
- L.key === G ? Q = z - q : L.key === ae ? Q = z + q : L.key === "Home" ? Q = o : L.key === "End" ? Q = l : L.key === "Enter" && (Q = a), Q !== null && (L.preventDefault(), P(Q));
6863
+ $.key === G ? Q = z - q : $.key === ae ? Q = z + q : $.key === "Home" ? Q = o : $.key === "End" ? Q = l : $.key === "Enter" && (Q = a), Q !== null && ($.preventDefault(), P(Q));
6852
6864
  }, J = !O;
6853
6865
  return /* @__PURE__ */ s(
6854
6866
  "div",
@@ -6869,7 +6881,7 @@ const el = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6869
6881
  role: "separator",
6870
6882
  className: "ok-split__sep ok-focusable",
6871
6883
  tabIndex: J ? 0 : void 0,
6872
- "aria-orientation": O ? "horizontal" : $ ? "vertical" : "horizontal",
6884
+ "aria-orientation": O ? "horizontal" : L ? "vertical" : "horizontal",
6873
6885
  "aria-label": J ? w : void 0,
6874
6886
  "aria-controls": J ? N : void 0,
6875
6887
  "aria-valuenow": J ? Math.round(z) : void 0,
@@ -6889,222 +6901,224 @@ const el = D(function({ className: e, id: n, tabIndex: a, ...r }, o) {
6889
6901
  );
6890
6902
  });
6891
6903
  export {
6892
- Zr as ACCENTS,
6893
- Pi as Accordion,
6894
- Fi as Alert,
6895
- kc as AppShell,
6896
- ic as AspectRatio,
6897
- fi as Autocomplete,
6898
- pr as Avatar,
6899
- Xi as AvatarGroup,
6900
- Pn as BREAKPOINTS,
6901
- Di as Badge,
6902
- ec as Box,
6903
- $i as Breadcrumb,
6904
- lo as Button,
6905
- ml as ButtonGroup,
6906
- ps as Calendar,
6907
- gi as Card,
6908
- _i as CardBody,
6909
- xi as CardFooter,
6910
- yi as CardHeader,
6911
- ki as CardLink,
6912
- Ni as CardMedia,
6913
- sc as Center,
6914
- Al as Checkbox,
6915
- Cl as CheckboxGroup,
6916
- Rl as Chip,
6917
- Dl as ChipGroup,
6918
- nc as Cluster,
6919
- Ki as Code,
6920
- Zi as CodeBlock,
6921
- Fl as ColorPicker,
6922
- bo as ColorSwatches,
6923
- fs as Combobox,
6924
- Ql as CommandPalette,
6925
- qo as Confirmer,
6926
- oc as Container,
6927
- ci as ContextMenu,
6928
- Bi as Count,
6929
- pi as DatePicker,
6930
- hi as DateRangePicker,
6931
- ys as DescriptionItem,
6932
- Ci as DescriptionList,
6933
- Oo as Dialog,
6934
- qs as Divider,
6935
- Ui as Dots,
6936
- Xl as Drawer,
6937
- ii as DropdownMenu,
6938
- Gi as EmptyState,
6939
- xl as Field,
6904
+ ao as ACCENTS,
6905
+ Oi as Accordion,
6906
+ Ui as Alert,
6907
+ Mc as AppShell,
6908
+ hc as AspectRatio,
6909
+ gi as Autocomplete,
6910
+ fr as Avatar,
6911
+ ec as AvatarGroup,
6912
+ Ln as BREAKPOINTS,
6913
+ qi as Badge,
6914
+ sc as Box,
6915
+ Bi as Breadcrumb,
6916
+ ho as Button,
6917
+ _l as ButtonGroup,
6918
+ ks as Calendar,
6919
+ wi as Card,
6920
+ Ai as CardBody,
6921
+ Ci as CardFooter,
6922
+ Si as CardHeader,
6923
+ Mi as CardLink,
6924
+ Ti as CardMedia,
6925
+ fc as Center,
6926
+ $l as Checkbox,
6927
+ Il as CheckboxGroup,
6928
+ Hl as Chip,
6929
+ ql as ChipGroup,
6930
+ ic as Cluster,
6931
+ nc as Code,
6932
+ ac as CodeBlock,
6933
+ Ul as ColorPicker,
6934
+ xo as ColorSwatches,
6935
+ gs as Combobox,
6936
+ oi as CommandPalette,
6937
+ Xo as Confirmer,
6938
+ uc as Container,
6939
+ mi as ContextMenu,
6940
+ Wi as Count,
6941
+ ki as DatePicker,
6942
+ yi as DateRangePicker,
6943
+ Ss as DescriptionItem,
6944
+ Ii as DescriptionList,
6945
+ Vo as Dialog,
6946
+ Xs as Divider,
6947
+ Zi as Dots,
6948
+ ei as Drawer,
6949
+ hi as DropdownMenu,
6950
+ Ji as EmptyState,
6951
+ Cl as Field,
6940
6952
  Ge as FieldContext,
6941
- Nl as Fieldset,
6942
- Vl as FileDrop,
6943
- Ul as FloatingBody,
6953
+ Tl as Fieldset,
6954
+ jl as FileDrop,
6955
+ Zl as FloatingBody,
6944
6956
  mt as FloatingCard,
6945
- Gl as FloatingFooter,
6946
- Ro as FloatingGrip,
6947
- Wl as FloatingHeader,
6948
- Kl as FloatingPanel,
6949
- Dr as FocusScope,
6950
- Ml as Form,
6951
- Sl as FormActions,
6952
- ac as Grid,
6953
- rc as GridItem,
6954
- wi as Group,
6955
- bi as Heading,
6956
- Qi as Hide,
6957
- Hl as Hotkey,
6957
+ Jl as FloatingFooter,
6958
+ Ho as FloatingGrip,
6959
+ Kl as FloatingHeader,
6960
+ ni as FloatingPanel,
6961
+ Rr as FocusScope,
6962
+ Pl as Form,
6963
+ Ll as FormActions,
6964
+ cc as Grid,
6965
+ dc as GridItem,
6966
+ Ei as Group,
6967
+ xi as Heading,
6968
+ oc as Hide,
6969
+ Yl as Hotkey,
6958
6970
  Ia as ICONS,
6959
6971
  ke as Icon,
6960
- ks as Image,
6961
- Vs as Inline,
6962
- Wa as Input,
6963
- yo as KEY_SYMBOL,
6964
- zl as Kbd,
6972
+ Ms as Image,
6973
+ js as Inline,
6974
+ Va as Input,
6975
+ So as KEY_SYMBOL,
6976
+ Gl as Kbd,
6965
6977
  ia as LOGO_SNOUT_MIN_CONTRAST,
6966
- wl as Label,
6967
- Si as List,
6968
- Ai as ListItem,
6969
- Kr as LocaleProvider,
6978
+ El as Label,
6979
+ Li as List,
6980
+ $i as ListItem,
6981
+ no as LocaleProvider,
6970
6982
  Vn as Menu,
6971
- ni as MenuCheckboxItem,
6972
- ti as MenuItem,
6973
- si as MenuLabel,
6974
- ai as MenuRadioGroup,
6975
- ri as MenuRadioItem,
6976
- oi as MenuSeparator,
6977
- li as MenuSub,
6978
- qi as Meter,
6979
- ui as MultiSelect,
6980
- mc as Nav,
6981
- bc as NavGroup,
6982
- vc as NavItem,
6983
- yl as NumberInput,
6984
- ro as OINK_LOGO_INK_PATH,
6983
+ ii as MenuCheckboxItem,
6984
+ li as MenuItem,
6985
+ fi as MenuLabel,
6986
+ ci as MenuRadioGroup,
6987
+ di as MenuRadioItem,
6988
+ ui as MenuSeparator,
6989
+ pi as MenuSub,
6990
+ Xi as Meter,
6991
+ vi as MultiSelect,
6992
+ _c as Nav,
6993
+ xc as NavGroup,
6994
+ Nc as NavItem,
6995
+ Sl as NumberInput,
6996
+ uo as OINK_LOGO_INK_PATH,
6985
6997
  ua as OINK_LOGO_NOSTRILS,
6986
- hn as OINK_LOGO_SNOUT,
6987
- $n as OINK_MESSAGES,
6988
- Vr as ON_ACCENT_THRESHOLD,
6989
- hl as OinkLogo,
6990
- fl as OinkProvider,
6991
- Ol as OptionCard,
6992
- Bl as OptionCardGroup,
6993
- uc as Page,
6994
- fc as PageHeader,
6995
- xs as Pagination,
6996
- Yo as Panel,
6997
- _l as PinInput,
6998
- or as Popover,
6998
+ bn as OINK_LOGO_SNOUT,
6999
+ Jt as OINK_MESSAGES,
7000
+ qr as ON_ACCENT_THRESHOLD,
7001
+ yl as OinkLogo,
7002
+ gl as OinkProvider,
7003
+ Vl as OptionCard,
7004
+ Wl as OptionCardGroup,
7005
+ vc as Page,
7006
+ gc as PageHeader,
7007
+ Cs as Pagination,
7008
+ Qo as Panel,
7009
+ Al as PinInput,
7010
+ rr as Popover,
6999
7011
  At as Portal,
7000
- zi as Progress,
7001
- Hi as ProgressRing,
7002
- Tl as Radio,
7003
- El as RadioGroup,
7004
- ms as RangeCalendar,
7005
- Ll as RangeSlider,
7006
- ql as Rating,
7007
- ji as Reaction,
7012
+ Gi as Progress,
7013
+ Yi as ProgressRing,
7014
+ Rl as Radio,
7015
+ Dl as RadioGroup,
7016
+ _s as RangeCalendar,
7017
+ Fl as RangeSlider,
7018
+ Xl as Rating,
7019
+ tc as Reaction,
7008
7020
  Un as Roll,
7009
- Mi as Row,
7010
- dc as ScrollArea,
7011
- kl as SearchInput,
7012
- pc as Section,
7013
- Il as Segmented,
7014
- di as Select,
7015
- jl as Sheet,
7016
- Ji as Show,
7017
- Vi as Skeleton,
7018
- $l as Slider,
7019
- lc as Spacer,
7020
- Wi as Spinner,
7021
- _c as SplitPane,
7022
- tc as Stack,
7023
- Yi as Stat,
7024
- Li as Steps,
7025
- cc as Sticky,
7026
- vi as Surface,
7027
- Pl as Switch,
7028
- Yr as TAIL_PATH,
7029
- Qr as THEME_REVEAL_MS,
7030
- yc as TabBar,
7031
- al as TabBarItem,
7032
- Ti as Table,
7033
- Ei as Tabs,
7034
- Oi as Tag,
7021
+ Pi as Row,
7022
+ Kr as SERVER_LOCALE,
7023
+ bc as ScrollArea,
7024
+ Ml as SearchInput,
7025
+ kc as Section,
7026
+ zl as Segmented,
7027
+ bi as Select,
7028
+ ti as Sheet,
7029
+ rc as Show,
7030
+ ji as Skeleton,
7031
+ Bl as Slider,
7032
+ pc as Spacer,
7033
+ Ki as Spinner,
7034
+ Ac as SplitPane,
7035
+ lc as Stack,
7036
+ Qi as Stat,
7037
+ Fi as Steps,
7038
+ mc as Sticky,
7039
+ Ni as Surface,
7040
+ Ol as Switch,
7041
+ Gr as TAIL_PATH,
7042
+ oo as THEME_REVEAL_MS,
7043
+ Sc as TabBar,
7044
+ cl as TabBarItem,
7045
+ Ri as Table,
7046
+ Di as Tabs,
7047
+ Vi as Tag,
7035
7048
  Fa as TailGlyph,
7036
- Xr as TailProvider,
7037
- mi as Text,
7038
- gl as Textarea,
7039
- Ii as Timeline,
7040
- Jl as Toaster,
7041
- bl as ToggleButton,
7042
- hc as Toolbar,
7043
- ei as Tooltip,
7044
- Ri as Tree,
7049
+ Yr as TailProvider,
7050
+ _i as Text,
7051
+ wl as Textarea,
7052
+ zi as Timeline,
7053
+ ri as Toaster,
7054
+ xl as ToggleButton,
7055
+ yc as Toolbar,
7056
+ si as Tooltip,
7057
+ Hi as Tree,
7045
7058
  Ra as VisuallyHidden,
7046
7059
  da as accentVars,
7047
7060
  Ie as animate,
7048
- $s as burst,
7061
+ Bs as burst,
7049
7062
  He as canUseDOM,
7050
7063
  Pa as captureFocusTrail,
7051
- en as chain,
7064
+ nn as chain,
7052
7065
  Ce as clamp,
7053
- ns as computePosition,
7054
- Yl as confirm,
7066
+ is as computePosition,
7067
+ Ql as confirm,
7055
7068
  Kt as contrastRatio,
7056
7069
  R as cx,
7070
+ Zr as detectLocale,
7057
7071
  Xe as ease,
7058
- cl as flip,
7059
- Pr as floatMotion,
7072
+ ml as flip,
7073
+ Er as floatMotion,
7060
7074
  et as formatISODate,
7061
7075
  jt as getFocusable,
7062
- Fr as hexToHsv,
7063
- zr as hsvToHex,
7064
- Br as hsvToRgb,
7065
- Es as initialsOf,
7066
- Jr as isAccent,
7076
+ Br as hexToHsv,
7077
+ Fr as hsvToHex,
7078
+ Or as hsvToRgb,
7079
+ Ds as initialsOf,
7080
+ ro as isAccent,
7067
7081
  Gt as isCustomAccent,
7068
- Nn as keyName,
7069
- Ka as keySymbol,
7082
+ Mn as keyName,
7083
+ ja as keySymbol,
7070
7084
  ca as logoSnoutColors,
7071
7085
  ra as luminance,
7072
7086
  Ne as mergeRefs,
7073
- Ha as normalizeAccent,
7087
+ za as normalizeAccent,
7074
7088
  st as normalizeHex,
7075
- Gr as onAccentColor,
7076
- _s as paginationRange,
7089
+ Ur as onAccentColor,
7090
+ As as paginationRange,
7077
7091
  Ft as parseHex,
7078
- cr as parseISODate,
7092
+ ir as parseISODate,
7079
7093
  Ba as perceivedLightness,
7080
- Tn as playFlip,
7094
+ En as playFlip,
7081
7095
  Ea as presets,
7082
7096
  In as resolveFloatSize,
7083
- Ao as resolveTriggerPoint,
7084
- La as restoreFocusTo,
7085
- Or as rgbToHsv,
7097
+ $o as resolveTriggerPoint,
7098
+ $a as restoreFocusTo,
7099
+ Dr as rgbToHsv,
7086
7100
  tt as speed,
7087
7101
  Ta as spring,
7088
- Er as supportsLinear,
7102
+ Tr as supportsLinear,
7089
7103
  xt as toHex,
7090
- Zl as toast,
7091
- gc as useAppShell,
7104
+ ai as toast,
7105
+ wc as useAppShell,
7092
7106
  _t as useBreakpoint,
7093
- vl as useBusy,
7107
+ Nl as useBusy,
7094
7108
  ue as useControllable,
7095
- nn as useEscape,
7109
+ rn as useEscape,
7096
7110
  Se as useEvent,
7097
7111
  Te as useFieldControl,
7098
- To as useFloatingCard,
7099
- Ir as useInertOthers,
7112
+ Ro as useFloatingCard,
7113
+ $r as useInertOthers,
7100
7114
  xe as useIsoLayoutEffect,
7101
7115
  ve as useLocale,
7102
- En as useMediaQuery,
7103
- pl as useOink,
7104
- dl as useOutsidePress,
7116
+ Pn as useMediaQuery,
7117
+ kl as useOink,
7118
+ bl as useOutsidePress,
7105
7119
  zn as usePosition,
7106
- tn as usePresence,
7107
- $r as useScrollLock,
7108
- ul as useTail,
7109
- il as wait
7120
+ an as usePresence,
7121
+ Pr as useScrollLock,
7122
+ vl as useTail,
7123
+ hl as wait
7110
7124
  };