kku-ui 0.2.52 → 0.2.53

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/lib/es/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as Ln from "react";
2
- import ua, { createContext as wt, useContext as tt, memo as I, useCallback as S, useRef as J, useState as at, useMemo as b, useEffect as Tt, Children as At, isValidElement as yt, forwardRef as Z, useLayoutEffect as da, useId as Yt, useInsertionEffect as Wi, Fragment as $i, createElement as ha, Component as fa, useImperativeHandle as pt, cloneElement as _e } from "react";
2
+ import ua, { createContext as wt, useContext as tt, memo as I, useCallback as S, useRef as J, useState as at, useMemo as j, useEffect as Tt, Children as At, isValidElement as yt, forwardRef as Z, useLayoutEffect as da, useId as Yt, useInsertionEffect as Wi, Fragment as $i, createElement as ha, Component as fa, useImperativeHandle as pt, cloneElement as _e } from "react";
3
3
  import "lodash-es";
4
4
  import { u as pa, a as Tn, b as ma, c as ga, d as Mn, e as Ui } from "../useEscapeKey-BH1YNl0p.js";
5
5
  import { createPortal as Sn } from "react-dom";
6
- var we = { exports: {} }, ee = {};
6
+ var we = { exports: {} }, ne = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.js
@@ -15,7 +15,7 @@ var we = { exports: {} }, ee = {};
15
15
  */
16
16
  var js;
17
17
  function ya() {
18
- if (js) return ee;
18
+ if (js) return ne;
19
19
  js = 1;
20
20
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
21
21
  function n(s, i, r) {
@@ -33,9 +33,9 @@ function ya() {
33
33
  props: r
34
34
  };
35
35
  }
36
- return ee.Fragment = e, ee.jsx = n, ee.jsxs = n, ee;
36
+ return ne.Fragment = e, ne.jsx = n, ne.jsxs = n, ne;
37
37
  }
38
- var ne = {};
38
+ var se = {};
39
39
  /**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
@@ -82,7 +82,7 @@ function xa() {
82
82
  return y = y.displayName, y || (y = E.displayName || E.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
83
83
  case M:
84
84
  return E = y.displayName || null, E !== null ? E : t(y.type) || "Memo";
85
- case j:
85
+ case b:
86
86
  E = y._payload, y = y._init;
87
87
  try {
88
88
  return t(y(E));
@@ -113,7 +113,7 @@ function xa() {
113
113
  }
114
114
  function s(y) {
115
115
  if (y === x) return "<>";
116
- if (typeof y == "object" && y !== null && y.$$typeof === j)
116
+ if (typeof y == "object" && y !== null && y.$$typeof === b)
117
117
  return "<...>";
118
118
  try {
119
119
  var E = t(y);
@@ -219,8 +219,8 @@ React keys must be passed directly to JSX without using spread:
219
219
  }
220
220
  if (X = null, F !== void 0 && (n(F), X = "" + F), o(E) && (n(E.key), X = "" + E.key), "key" in E) {
221
221
  F = {};
222
- for (var te in E)
223
- te !== "key" && (F[te] = E[te]);
222
+ for (var ee in E)
223
+ ee !== "key" && (F[ee] = E[ee]);
224
224
  } else F = E;
225
225
  return X && a(
226
226
  F,
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
239
239
  function h(y) {
240
240
  typeof y == "object" && y !== null && y.$$typeof === p && y._store && (y._store.validated = 1);
241
241
  }
242
- var f = ua, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), C = Symbol.for("react.consumer"), g = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), B = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, R = Array.isArray, G = console.createTask ? console.createTask : function() {
242
+ var f = ua, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), C = Symbol.for("react.consumer"), g = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), B = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, R = Array.isArray, G = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  f = {
@@ -251,7 +251,7 @@ React keys must be passed directly to JSX without using spread:
251
251
  f,
252
252
  r
253
253
  )(), Y = G(s(r)), lt = {};
254
- ne.Fragment = x, ne.jsx = function(y, E, F, V, it) {
254
+ se.Fragment = x, se.jsx = function(y, E, F, V, it) {
255
255
  var nt = 1e4 > B.recentlyCreatedOwnerStacks++;
256
256
  return d(
257
257
  y,
@@ -263,7 +263,7 @@ React keys must be passed directly to JSX without using spread:
263
263
  nt ? Error("react-stack-top-frame") : z,
264
264
  nt ? G(s(y)) : Y
265
265
  );
266
- }, ne.jsxs = function(y, E, F, V, it) {
266
+ }, se.jsxs = function(y, E, F, V, it) {
267
267
  var nt = 1e4 > B.recentlyCreatedOwnerStacks++;
268
268
  return d(
269
269
  y,
@@ -276,7 +276,7 @@ React keys must be passed directly to JSX without using spread:
276
276
  nt ? G(s(y)) : Y
277
277
  );
278
278
  };
279
- }()), ne;
279
+ }()), se;
280
280
  }
281
281
  var Ls;
282
282
  function va() {
@@ -314,7 +314,7 @@ const Hi = wt(void 0), Zi = () => {
314
314
  Pn.displayName = "Accordion.Summary";
315
315
  Gi.displayName = "Accordion.Summary";
316
316
  const Yi = (t) => {
317
- const { children: e, style: n, ...s } = t, { isOpen: i, summaryId: r } = Zi(), o = J(null), [a, c] = at("auto"), u = b(() => ({
317
+ const { children: e, style: n, ...s } = t, { isOpen: i, summaryId: r } = Zi(), o = J(null), [a, c] = at("auto"), u = j(() => ({
318
318
  ...n,
319
319
  overflow: "hidden",
320
320
  maxHeight: i ? a : 0
@@ -345,7 +345,7 @@ const Yi = (t) => {
345
345
  An.displayName = "Accordion.Content";
346
346
  Yi.displayName = "Accordion.Content";
347
347
  const Xi = (t) => {
348
- const { defaultOpen: e, children: n, ...s } = t, [i, r] = at(!!e), o = J(null), a = pa("accordion-"), c = b(() => ({ isOpen: i, setIsOpen: r, root: o, summaryId: a }), [i]), { SummaryElement: u, ContentElement: d } = b(() => {
348
+ const { defaultOpen: e, children: n, ...s } = t, [i, r] = at(!!e), o = J(null), a = pa("accordion-"), c = j(() => ({ isOpen: i, setIsOpen: r, root: o, summaryId: a }), [i]), { SummaryElement: u, ContentElement: d } = j(() => {
349
349
  let h = null, f = null;
350
350
  return At.forEach(n, (p) => {
351
351
  yt(p) && (p?.type === Pn && (h = p), p?.type === An && (f = p));
@@ -364,7 +364,7 @@ const qi = Z((t, e) => {
364
364
  const { type: n, label: s, disabled: i, children: r, tabIndex: o, ...a } = t;
365
365
  if (s && r)
366
366
  throw new Error("Button 컴포넌트에 label과 children을 동시에 넣을 수 없습니다.");
367
- const c = b(() => !r && s ? s : void 0, [r, s]), u = b(() => i ? -1 : o || 0, [o, i]);
367
+ const c = j(() => !r && s ? s : void 0, [r, s]), u = j(() => i ? -1 : o || 0, [o, i]);
368
368
  return (
369
369
  // eslint-disable-next-line react/button-has-type
370
370
  /* @__PURE__ */ l.jsx(
@@ -394,7 +394,7 @@ Vn.displayName = "Menu";
394
394
  Ca.displayName = "Menu";
395
395
  const Qi = Z(
396
396
  (t, e) => {
397
- const { as: n, children: s, disabled: i, tabIndex: r, ...o } = t, a = n || "li", c = b(() => i ? void 0 : r ?? 0, [i, r]);
397
+ const { as: n, children: s, disabled: i, tabIndex: r, ...o } = t, a = n || "li", c = j(() => i ? void 0 : r ?? 0, [i, r]);
398
398
  return /* @__PURE__ */ l.jsx(a, { ref: e, as: n, role: "menuitem", "aria-disabled": i, tabIndex: c, ...o, children: s });
399
399
  }
400
400
  ), to = I(Qi);
@@ -408,7 +408,7 @@ const eo = Z((t, e) => {
408
408
  onChange: r,
409
409
  children: o,
410
410
  ...a
411
- } = t, c = b(() => s ? -1 : 0, [s]), u = S((d) => {
411
+ } = t, c = j(() => s ? -1 : 0, [s]), u = S((d) => {
412
412
  i?.(d), r?.(!n);
413
413
  }, [n, r, i]);
414
414
  return /* @__PURE__ */ l.jsx(
@@ -432,7 +432,7 @@ eo.displayName = "Switch";
432
432
  const no = I(eo);
433
433
  no.displayName = "Switch";
434
434
  const so = Z((t, e) => {
435
- const { label: n, disabled: s, ...i } = t, r = b(() => n || void 0, [n]);
435
+ const { label: n, disabled: s, ...i } = t, r = j(() => n || void 0, [n]);
436
436
  return /* @__PURE__ */ l.jsx("input", { ref: e, ...i, disabled: s, "aria-label": r, "aria-disabled": s });
437
437
  }), io = I(so);
438
438
  so.displayName = "TextField";
@@ -470,7 +470,7 @@ function Bn(t) {
470
470
  let e;
471
471
  return () => (e === void 0 && (e = t()), e);
472
472
  }
473
- const dt = /* @__NO_SIDE_EFFECTS__ */ (t) => t, wa = (t, e) => (n) => e(t(n)), ge = (...t) => t.reduce(wa), ce = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
473
+ const dt = /* @__NO_SIDE_EFFECTS__ */ (t) => t, wa = (t, e) => (n) => e(t(n)), ye = (...t) => t.reduce(wa), ue = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
474
474
  const s = e - t;
475
475
  return s === 0 ? 1 : (n - t) / s;
476
476
  };
@@ -515,13 +515,13 @@ function ba(t, e, n, s, i) {
515
515
  while (Math.abs(r) > ka && ++a < ja);
516
516
  return o;
517
517
  }
518
- function ye(t, e, n, s) {
518
+ function xe(t, e, n, s) {
519
519
  if (t === e && n === s)
520
520
  return dt;
521
521
  const i = (r) => ba(r, 0, 1, t, n);
522
522
  return (r) => r === 0 || r === 1 ? r : uo(i(r), e, s);
523
523
  }
524
- const ho = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, fo = (t) => (e) => 1 - t(1 - e), po = /* @__PURE__ */ ye(0.33, 1.53, 0.69, 0.99), Fn = /* @__PURE__ */ fo(po), mo = /* @__PURE__ */ ho(Fn), go = (t) => (t *= 2) < 1 ? 0.5 * Fn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), zn = (t) => 1 - Math.sin(Math.acos(t)), yo = fo(zn), xo = ho(zn), La = /* @__PURE__ */ ye(0.42, 0, 1, 1), Ta = /* @__PURE__ */ ye(0, 0, 0.58, 1), vo = /* @__PURE__ */ ye(0.42, 0, 0.58, 1), Ma = (t) => Array.isArray(t) && typeof t[0] != "number", Co = (t) => Array.isArray(t) && typeof t[0] == "number", Ms = {
524
+ const ho = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, fo = (t) => (e) => 1 - t(1 - e), po = /* @__PURE__ */ xe(0.33, 1.53, 0.69, 0.99), Fn = /* @__PURE__ */ fo(po), mo = /* @__PURE__ */ ho(Fn), go = (t) => (t *= 2) < 1 ? 0.5 * Fn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), zn = (t) => 1 - Math.sin(Math.acos(t)), yo = fo(zn), xo = ho(zn), La = /* @__PURE__ */ xe(0.42, 0, 1, 1), Ta = /* @__PURE__ */ xe(0, 0, 0.58, 1), vo = /* @__PURE__ */ xe(0.42, 0, 0.58, 1), Ma = (t) => Array.isArray(t) && typeof t[0] != "number", Co = (t) => Array.isArray(t) && typeof t[0] == "number", Ms = {
525
525
  linear: dt,
526
526
  easeIn: La,
527
527
  easeInOut: vo,
@@ -537,7 +537,7 @@ const ho = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, fo
537
537
  if (Co(t)) {
538
538
  vt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
539
539
  const [e, n, s, i] = t;
540
- return ye(e, n, s, i);
540
+ return xe(e, n, s, i);
541
541
  } else if (Sa(t))
542
542
  return vt(Ms[t] !== void 0, `Invalid easing type '${t}'`), Ms[t];
543
543
  return t;
@@ -614,7 +614,7 @@ function wo(t, e) {
614
614
  };
615
615
  return { schedule: ke.reduce((g, T) => {
616
616
  const k = o[T];
617
- return g[T] = (L, M = !1, j = !1) => (n || w(), k.schedule(L, M, j)), g;
617
+ return g[T] = (L, M = !1, b = !1) => (n || w(), k.schedule(L, M, b)), g;
618
618
  }, {}), cancel: (g) => {
619
619
  for (let T = 0; T < ke.length; T++)
620
620
  o[ke[T]].cancel(g);
@@ -634,13 +634,13 @@ const rt = {
634
634
  test: (t) => typeof t == "number",
635
635
  parse: parseFloat,
636
636
  transform: (t) => t
637
- }, ue = {
637
+ }, de = {
638
638
  ...qt,
639
639
  transform: (t) => xt(0, 1, t)
640
640
  }, je = {
641
641
  ...qt,
642
642
  default: 1
643
- }, oe = (t) => Math.round(t * 1e5) / 1e5, $n = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
643
+ }, re = (t) => Math.round(t * 1e5) / 1e5, $n = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
644
644
  function Ea(t) {
645
645
  return t == null;
646
646
  }
@@ -660,7 +660,7 @@ const _a = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
660
660
  }, Et = {
661
661
  test: /* @__PURE__ */ Un("rgb", "red"),
662
662
  parse: /* @__PURE__ */ jo("red", "green", "blue"),
663
- transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + He.transform(t) + ", " + He.transform(e) + ", " + He.transform(n) + ", " + oe(ue.transform(s)) + ")"
663
+ transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + He.transform(t) + ", " + He.transform(e) + ", " + He.transform(n) + ", " + re(de.transform(s)) + ")"
664
664
  };
665
665
  function Ba(t) {
666
666
  let e = "", n = "", s = "", i = "";
@@ -675,18 +675,18 @@ const on = {
675
675
  test: /* @__PURE__ */ Un("#"),
676
676
  parse: Ba,
677
677
  transform: Et.transform
678
- }, xe = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
678
+ }, ve = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
679
679
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
680
680
  parse: parseFloat,
681
681
  transform: (e) => `${e}${t}`
682
- }), Lt = /* @__PURE__ */ xe("deg"), gt = /* @__PURE__ */ xe("%"), A = /* @__PURE__ */ xe("px"), Ia = /* @__PURE__ */ xe("vh"), Oa = /* @__PURE__ */ xe("vw"), As = {
682
+ }), Lt = /* @__PURE__ */ ve("deg"), gt = /* @__PURE__ */ ve("%"), A = /* @__PURE__ */ ve("px"), Ia = /* @__PURE__ */ ve("vh"), Oa = /* @__PURE__ */ ve("vw"), As = {
683
683
  ...gt,
684
684
  parse: (t) => gt.parse(t) / 100,
685
685
  transform: (t) => gt.transform(t * 100)
686
686
  }, It = {
687
687
  test: /* @__PURE__ */ Un("hsl", "hue"),
688
688
  parse: /* @__PURE__ */ jo("hue", "saturation", "lightness"),
689
- transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + gt.transform(oe(e)) + ", " + gt.transform(oe(n)) + ", " + oe(ue.transform(s)) + ")"
689
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + gt.transform(re(e)) + ", " + gt.transform(re(n)) + ", " + re(de.transform(s)) + ")"
690
690
  }, Q = {
691
691
  test: (t) => Et.test(t) || on.test(t) || It.test(t),
692
692
  parse: (t) => Et.test(t) ? Et.parse(t) : It.test(t) ? It.parse(t) : on.parse(t),
@@ -700,7 +700,7 @@ function za(t) {
700
700
  return isNaN(t) && typeof t == "string" && (t.match($n)?.length || 0) + (t.match(Fa)?.length || 0) > 0;
701
701
  }
702
702
  const bo = "number", Lo = "color", Ka = "var", Wa = "var(", Vs = "${}", $a = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
703
- function de(t) {
703
+ function he(t) {
704
704
  const e = t.toString(), n = [], s = {
705
705
  color: [],
706
706
  number: [],
@@ -711,16 +711,16 @@ function de(t) {
711
711
  return { values: n, split: a, indexes: s, types: i };
712
712
  }
713
713
  function To(t) {
714
- return de(t).values;
714
+ return he(t).values;
715
715
  }
716
716
  function Mo(t) {
717
- const { split: e, types: n } = de(t), s = e.length;
717
+ const { split: e, types: n } = he(t), s = e.length;
718
718
  return (i) => {
719
719
  let r = "";
720
720
  for (let o = 0; o < s; o++)
721
721
  if (r += e[o], i[o] !== void 0) {
722
722
  const a = n[o];
723
- a === bo ? r += oe(i[o]) : a === Lo ? r += Q.transform(i[o]) : r += i[o];
723
+ a === bo ? r += re(i[o]) : a === Lo ? r += Q.transform(i[o]) : r += i[o];
724
724
  }
725
725
  return r;
726
726
  };
@@ -812,8 +812,8 @@ function Qa(t, e) {
812
812
  return n;
813
813
  }
814
814
  const t1 = (t, e) => {
815
- const n = Pt.createTransformer(e), s = de(t), i = de(e);
816
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? rn.has(t) && !i.values.length || rn.has(e) && !s.values.length ? Xa(t, e) : ge(So(Qa(s, i), i.values), n) : (Xt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ae(t, e));
815
+ const n = Pt.createTransformer(e), s = he(t), i = he(e);
816
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? rn.has(t) && !i.values.length || rn.has(e) && !s.values.length ? Xa(t, e) : ye(So(Qa(s, i), i.values), n) : (Xt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ae(t, e));
817
817
  };
818
818
  function Po(t, e, n) {
819
819
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? H(t, e, n) : Hn(t)(t, e);
@@ -985,8 +985,8 @@ function Re(t = U.visualDuration, e = U.bounce) {
985
985
  else {
986
986
  const k = v * Math.sqrt(x * x - 1);
987
987
  g = (L) => {
988
- const M = Math.exp(-x * v * L), j = Math.min(k * L, 300);
989
- return o - M * ((m + x * v * w) * Math.sinh(j) + k * w * Math.cosh(j)) / k;
988
+ const M = Math.exp(-x * v * L), b = Math.min(k * L, 300);
989
+ return o - M * ((m + x * v * w) * Math.sinh(b) + k * w * Math.cosh(b)) / k;
990
990
  };
991
991
  }
992
992
  const T = {
@@ -998,8 +998,8 @@ function Re(t = U.visualDuration, e = U.bounce) {
998
998
  else {
999
999
  let M = k === 0 ? m : 0;
1000
1000
  x < 1 && (M = k === 0 ? /* @__PURE__ */ ft(m) : Vo(g, k, L));
1001
- const j = Math.abs(M) <= s, _ = Math.abs(o - L) <= i;
1002
- a.done = j && _;
1001
+ const b = Math.abs(M) <= s, _ = Math.abs(o - L) <= i;
1002
+ a.done = b && _;
1003
1003
  }
1004
1004
  return a.value = a.done ? o : L, a;
1005
1005
  },
@@ -1020,19 +1020,19 @@ function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1020
1020
  const h = t[0], f = {
1021
1021
  done: !1,
1022
1022
  value: h
1023
- }, p = (j) => a !== void 0 && j < a || c !== void 0 && j > c, m = (j) => a === void 0 ? c : c === void 0 || Math.abs(a - j) < Math.abs(c - j) ? a : c;
1023
+ }, p = (b) => a !== void 0 && b < a || c !== void 0 && b > c, m = (b) => a === void 0 ? c : c === void 0 || Math.abs(a - b) < Math.abs(c - b) ? a : c;
1024
1024
  let x = n * e;
1025
1025
  const w = h + x, v = o === void 0 ? w : o(w);
1026
1026
  v !== w && (x = v - h);
1027
- const C = (j) => -x * Math.exp(-j / s), g = (j) => v + C(j), T = (j) => {
1028
- const _ = C(j), N = g(j);
1027
+ const C = (b) => -x * Math.exp(-b / s), g = (b) => v + C(b), T = (b) => {
1028
+ const _ = C(b), N = g(b);
1029
1029
  f.done = Math.abs(_) <= u, f.value = f.done ? v : N;
1030
1030
  };
1031
1031
  let k, L;
1032
- const M = (j) => {
1033
- p(f.value) && (k = j, L = Re({
1032
+ const M = (b) => {
1033
+ p(f.value) && (k = b, L = Re({
1034
1034
  keyframes: [f.value, m(f.value)],
1035
- velocity: Vo(g, j, f.value),
1035
+ velocity: Vo(g, b, f.value),
1036
1036
  // TODO: This should be passing * 1000
1037
1037
  damping: i,
1038
1038
  stiffness: r,
@@ -1042,9 +1042,9 @@ function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1042
1042
  };
1043
1043
  return M(0), {
1044
1044
  calculatedDuration: null,
1045
- next: (j) => {
1045
+ next: (b) => {
1046
1046
  let _ = !1;
1047
- return !L && k === void 0 && (_ = !0, T(j), M(j)), k !== void 0 && j >= k ? L.next(j - k) : (!_ && T(j), f);
1047
+ return !L && k === void 0 && (_ = !0, T(b), M(b)), k !== void 0 && b >= k ? L.next(b - k) : (!_ && T(b), f);
1048
1048
  }
1049
1049
  };
1050
1050
  }
@@ -1054,7 +1054,7 @@ function u1(t, e, n) {
1054
1054
  let a = i(t[o], t[o + 1]);
1055
1055
  if (e) {
1056
1056
  const c = Array.isArray(e) ? e[o] || dt : e;
1057
- a = ge(c, a);
1057
+ a = ye(c, a);
1058
1058
  }
1059
1059
  s.push(a);
1060
1060
  }
@@ -1075,7 +1075,7 @@ function d1(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1075
1075
  if (c > 1)
1076
1076
  for (; h < t.length - 2 && !(d < t[h + 1]); h++)
1077
1077
  ;
1078
- const f = /* @__PURE__ */ ce(t[h], t[h + 1], d);
1078
+ const f = /* @__PURE__ */ ue(t[h], t[h + 1], d);
1079
1079
  return a[h](f);
1080
1080
  };
1081
1081
  return n ? (d) => u(xt(t[0], t[r - 1], d)) : u;
@@ -1083,7 +1083,7 @@ function d1(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1083
1083
  function h1(t, e) {
1084
1084
  const n = t[t.length - 1];
1085
1085
  for (let s = 1; s <= e; s++) {
1086
- const i = /* @__PURE__ */ ce(0, e, s);
1086
+ const i = /* @__PURE__ */ ue(0, e, s);
1087
1087
  t.push(H(n, 1, i));
1088
1088
  }
1089
1089
  }
@@ -1167,7 +1167,7 @@ class Xn extends Yn {
1167
1167
  const { type: n = Ot, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: o = 0 } = e;
1168
1168
  let { keyframes: a } = e;
1169
1169
  const c = n || Ot;
1170
- process.env.NODE_ENV !== "production" && c !== Ot && vt(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), c !== Ot && typeof a[0] != "number" && (this.mixKeyframes = ge(x1, Po(a[0], a[1])), a = [0, 100]);
1170
+ process.env.NODE_ENV !== "production" && c !== Ot && vt(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), c !== Ot && typeof a[0] != "number" && (this.mixKeyframes = ye(x1, Po(a[0], a[1])), a = [0, 100]);
1171
1171
  const u = c({ ...e, keyframes: a });
1172
1172
  r === "mirror" && (this.mirroredGenerator = c({
1173
1173
  ...e,
@@ -1191,9 +1191,9 @@ class Xn extends Yn {
1191
1191
  this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
1192
1192
  let g = this.currentTime, T = s;
1193
1193
  if (h) {
1194
- const j = Math.min(this.currentTime, i) / a;
1195
- let _ = Math.floor(j), N = j % 1;
1196
- !N && j >= 1 && (N = 1), N === 1 && _--, _ = Math.min(_, h + 1), !!(_ % 2) && (f === "reverse" ? (N = 1 - N, p && (N -= p / a)) : f === "mirror" && (T = o)), g = xt(0, 1, N) * a;
1194
+ const b = Math.min(this.currentTime, i) / a;
1195
+ let _ = Math.floor(b), N = b % 1;
1196
+ !N && b >= 1 && (N = 1), N === 1 && _--, _ = Math.min(_, h + 1), !!(_ % 2) && (f === "reverse" ? (N = 1 - N, p && (N -= p / a)) : f === "mirror" && (T = o)), g = xt(0, 1, N) * a;
1197
1197
  }
1198
1198
  const k = C ? { done: !1, value: d[0] } : T.next(g);
1199
1199
  r && (k.value = r(k.value));
@@ -1447,20 +1447,20 @@ const _o = /* @__PURE__ */ R1(() => {
1447
1447
  return !1;
1448
1448
  }
1449
1449
  return !0;
1450
- }, "linearEasing"), ie = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Os = {
1450
+ }, "linearEasing"), oe = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Os = {
1451
1451
  linear: "linear",
1452
1452
  ease: "ease",
1453
1453
  easeIn: "ease-in",
1454
1454
  easeOut: "ease-out",
1455
1455
  easeInOut: "ease-in-out",
1456
- circIn: /* @__PURE__ */ ie([0, 0.65, 0.55, 1]),
1457
- circOut: /* @__PURE__ */ ie([0.55, 0, 1, 0.45]),
1458
- backIn: /* @__PURE__ */ ie([0.31, 0.01, 0.66, -0.59]),
1459
- backOut: /* @__PURE__ */ ie([0.33, 1.53, 0.69, 0.99])
1456
+ circIn: /* @__PURE__ */ oe([0, 0.65, 0.55, 1]),
1457
+ circOut: /* @__PURE__ */ oe([0.55, 0, 1, 0.45]),
1458
+ backIn: /* @__PURE__ */ oe([0.31, 0.01, 0.66, -0.59]),
1459
+ backOut: /* @__PURE__ */ oe([0.33, 1.53, 0.69, 0.99])
1460
1460
  };
1461
1461
  function No(t, e) {
1462
1462
  if (t)
1463
- return typeof t == "function" ? _o() ? Ao(t, e) : "ease-out" : Co(t) ? ie(t) : Array.isArray(t) ? t.map((n) => No(n, e) || Os.easeOut) : Os[t];
1463
+ return typeof t == "function" ? _o() ? Ao(t, e) : "ease-out" : Co(t) ? oe(t) : Array.isArray(t) ? t.map((n) => No(n, e) || Os.easeOut) : Os[t];
1464
1464
  }
1465
1465
  function D1(t, e, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: o = "loop", ease: a = "easeOut", times: c } = {}, u = void 0) {
1466
1466
  const d = {
@@ -1820,7 +1820,7 @@ const Q1 = /\b([a-z-]*)\(.*?\)/gu, gn = {
1820
1820
  z: A,
1821
1821
  perspective: A,
1822
1822
  transformPerspective: A,
1823
- opacity: ue,
1823
+ opacity: de,
1824
1824
  originX: As,
1825
1825
  originY: As,
1826
1826
  originZ: A
@@ -1863,8 +1863,8 @@ const Q1 = /\b([a-z-]*)\(.*?\)/gu, gn = {
1863
1863
  ...tl,
1864
1864
  zIndex: Ws,
1865
1865
  // SVG
1866
- fillOpacity: ue,
1867
- strokeOpacity: ue,
1866
+ fillOpacity: de,
1867
+ strokeOpacity: de,
1868
1868
  numOctaves: Ws
1869
1869
  }, el = {
1870
1870
  ...ts,
@@ -1892,7 +1892,7 @@ function sl(t, e, n) {
1892
1892
  let s = 0, i;
1893
1893
  for (; s < t.length && !i; ) {
1894
1894
  const r = t[s];
1895
- typeof r == "string" && !nl.has(r) && de(r).values.length && (i = t[s]), s++;
1895
+ typeof r == "string" && !nl.has(r) && he(r).values.length && (i = t[s]), s++;
1896
1896
  }
1897
1897
  if (i && n)
1898
1898
  for (const r of e)
@@ -2323,7 +2323,7 @@ function xl({ children: t, isPresent: e, anchorX: n, root: s }) {
2323
2323
  }
2324
2324
  const vl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: r, mode: o, anchorX: a, root: c }) => {
2325
2325
  const u = Dn(Cl), d = Yt();
2326
- let h = !0, f = b(() => (h = !1, {
2326
+ let h = !0, f = j(() => (h = !1, {
2327
2327
  id: d,
2328
2328
  initial: e,
2329
2329
  isPresent: n,
@@ -2337,7 +2337,7 @@ const vl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
2337
2337
  },
2338
2338
  register: (p) => (u.set(p, !1), () => u.delete(p))
2339
2339
  }), [n, u, s]);
2340
- return r && h && (f = { ...f }), b(() => {
2340
+ return r && h && (f = { ...f }), j(() => {
2341
2341
  u.forEach((p, m) => u.set(m, !1));
2342
2342
  }, [n]), Ln.useEffect(() => {
2343
2343
  !n && !u.size && s && s();
@@ -2366,7 +2366,7 @@ function Gs(t) {
2366
2366
  }), e;
2367
2367
  }
2368
2368
  const wl = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: r = "sync", propagate: o = !1, anchorX: a = "left", root: c }) => {
2369
- const [u, d] = Xo(o), h = b(() => Gs(t), [t]), f = o && !u ? [] : h.map(be), p = J(!0), m = J(h), x = Dn(() => /* @__PURE__ */ new Map()), [w, v] = at(h), [C, g] = at(h);
2369
+ const [u, d] = Xo(o), h = j(() => Gs(t), [t]), f = o && !u ? [] : h.map(be), p = J(!0), m = J(h), x = Dn(() => /* @__PURE__ */ new Map()), [w, v] = at(h), [C, g] = at(h);
2370
2370
  oo(() => {
2371
2371
  p.current = !1, m.current = h;
2372
2372
  for (let L = 0; L < C.length; L++) {
@@ -2378,15 +2378,15 @@ const wl = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2378
2378
  if (h !== w) {
2379
2379
  let L = [...h];
2380
2380
  for (let M = 0; M < C.length; M++) {
2381
- const j = C[M], _ = be(j);
2382
- f.includes(_) || (L.splice(M, 0, j), T.push(j));
2381
+ const b = C[M], _ = be(b);
2382
+ f.includes(_) || (L.splice(M, 0, b), T.push(b));
2383
2383
  }
2384
2384
  return r === "wait" && T.length && (L = T), g(Gs(L)), v(h), null;
2385
2385
  }
2386
2386
  process.env.NODE_ENV !== "production" && r === "wait" && C.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
2387
2387
  const { forceRender: k } = tt(Rn);
2388
2388
  return l.jsx(l.Fragment, { children: C.map((L) => {
2389
- const M = be(L), j = o && !u ? !1 : h === C || f.includes(M), _ = () => {
2389
+ const M = be(L), b = o && !u ? !1 : h === C || f.includes(M), _ = () => {
2390
2390
  if (x.has(M))
2391
2391
  x.set(M, !0);
2392
2392
  else
@@ -2396,7 +2396,7 @@ const wl = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2396
2396
  B || (N = !1);
2397
2397
  }), N && (k?.(), g(m.current), o && d?.(), s && s());
2398
2398
  };
2399
- return l.jsx(vl, { isPresent: j, initial: !p.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: r, root: c, onExitComplete: j ? void 0 : _, anchorX: a, children: L }, M);
2399
+ return l.jsx(vl, { isPresent: b, initial: !p.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: r, root: c, onExitComplete: b ? void 0 : _, anchorX: a, children: L }, M);
2400
2400
  }) });
2401
2401
  }, qo = wt({ strict: !1 }), Ys = {
2402
2402
  animation: [
@@ -2496,7 +2496,7 @@ const Be = /* @__PURE__ */ wt({});
2496
2496
  function Ie(t) {
2497
2497
  return t !== null && typeof t == "object" && typeof t.start == "function";
2498
2498
  }
2499
- function he(t) {
2499
+ function fe(t) {
2500
2500
  return typeof t == "string" || Array.isArray(t);
2501
2501
  }
2502
2502
  const is = [
@@ -2509,7 +2509,7 @@ const is = [
2509
2509
  "exit"
2510
2510
  ], os = ["initial", ...is];
2511
2511
  function Oe(t) {
2512
- return Ie(t.animate) || os.some((e) => he(t[e]));
2512
+ return Ie(t.animate) || os.some((e) => fe(t[e]));
2513
2513
  }
2514
2514
  function Qo(t) {
2515
2515
  return !!(Oe(t) || t.variants);
@@ -2518,15 +2518,15 @@ function Ml(t, e) {
2518
2518
  if (Oe(t)) {
2519
2519
  const { initial: n, animate: s } = t;
2520
2520
  return {
2521
- initial: n === !1 || he(n) ? n : void 0,
2522
- animate: he(s) ? s : void 0
2521
+ initial: n === !1 || fe(n) ? n : void 0,
2522
+ animate: fe(s) ? s : void 0
2523
2523
  };
2524
2524
  }
2525
2525
  return t.inherit !== !1 ? e : {};
2526
2526
  }
2527
2527
  function Sl(t) {
2528
2528
  const { initial: e, animate: n } = Ml(t, tt(Be));
2529
- return b(() => ({ initial: e, animate: n }), [Xs(e), Xs(n)]);
2529
+ return j(() => ({ initial: e, animate: n }), [Xs(e), Xs(n)]);
2530
2530
  }
2531
2531
  function Xs(t) {
2532
2532
  return Array.isArray(t) ? t.join(" ") : t;
@@ -2640,13 +2640,13 @@ function Bl(t) {
2640
2640
  ProjectionNode: s.ProjectionNode
2641
2641
  };
2642
2642
  }
2643
- const fe = {};
2643
+ const pe = {};
2644
2644
  function Il(t) {
2645
2645
  for (const e in t)
2646
- fe[e] = t[e], Kn(e) && (fe[e].isCSSVariable = !0);
2646
+ pe[e] = t[e], Kn(e) && (pe[e].isCSSVariable = !0);
2647
2647
  }
2648
2648
  function sr(t, { layout: e, layoutId: n }) {
2649
- return Qt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!fe[t] || t === "opacity");
2649
+ return Qt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!pe[t] || t === "opacity");
2650
2650
  }
2651
2651
  const Ol = {
2652
2652
  x: "translateX",
@@ -2705,7 +2705,7 @@ function ir(t, e, n) {
2705
2705
  !st(e[s]) && !sr(s, n) && (t[s] = e[s]);
2706
2706
  }
2707
2707
  function Kl({ transformTemplate: t }, e) {
2708
- return b(() => {
2708
+ return j(() => {
2709
2709
  const n = ls();
2710
2710
  return as(n, e, t), Object.assign({}, n.vars, n.style);
2711
2711
  }, [e]);
@@ -2755,7 +2755,7 @@ const rr = () => ({
2755
2755
  attrs: {}
2756
2756
  }), ar = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2757
2757
  function Gl(t, e, n, s) {
2758
- const i = b(() => {
2758
+ const i = j(() => {
2759
2759
  const r = rr();
2760
2760
  return or(r, e, ar(s), t.transformTemplate, t.style), {
2761
2761
  ...r.attrs,
@@ -2817,7 +2817,7 @@ function cs(t) {
2817
2817
  }
2818
2818
  function Xl(t = !1) {
2819
2819
  return (n, s, i, { latestValues: r }, o) => {
2820
- const c = (cs(n) ? Gl : $l)(s, r, o, n), u = Ll(s, typeof n == "string", t), d = n !== $i ? { ...u, ...c, ref: i } : {}, { children: h } = s, f = b(() => st(h) ? h.get() : h, [h]);
2820
+ const c = (cs(n) ? Gl : $l)(s, r, o, n), u = Ll(s, typeof n == "string", t), d = n !== $i ? { ...u, ...c, ref: i } : {}, { children: h } = s, f = j(() => st(h) ? h.get() : h, [h]);
2821
2821
  return ha(n, {
2822
2822
  ...d,
2823
2823
  children: f
@@ -2924,7 +2924,7 @@ function ec(t, e) {
2924
2924
  return El(o);
2925
2925
  };
2926
2926
  }
2927
- function pe(t, e, n) {
2927
+ function me(t, e, n) {
2928
2928
  const s = t.getProps();
2929
2929
  return us(s, e, n !== void 0 ? n : s.custom, t);
2930
2930
  }
@@ -2936,7 +2936,7 @@ function sc(t) {
2936
2936
  return yn(t) ? t[t.length - 1] || 0 : t;
2937
2937
  }
2938
2938
  function ic(t, e) {
2939
- const n = pe(t, e);
2939
+ const n = me(t, e);
2940
2940
  let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
2941
2941
  r = { ...r, ...s };
2942
2942
  for (const o in r) {
@@ -3055,7 +3055,7 @@ function dr(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3055
3055
  }), c;
3056
3056
  }
3057
3057
  function vn(t, e, n = {}) {
3058
- const s = pe(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
3058
+ const s = me(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
3059
3059
  let { transition: i = t.getDefaultTransition() || {} } = s || {};
3060
3060
  n.transitionOverride && (i = n.transitionOverride);
3061
3061
  const r = s ? () => Promise.all(dr(t, s, n)) : () => Promise.resolve(), o = t.variantChildren && t.variantChildren.size ? (c = 0) => {
@@ -3092,7 +3092,7 @@ function yc(t, e, n = {}) {
3092
3092
  } else if (typeof e == "string")
3093
3093
  s = vn(t, e, n);
3094
3094
  else {
3095
- const i = typeof e == "function" ? pe(t, e, n.custom) : e;
3095
+ const i = typeof e == "function" ? me(t, e, n.custom) : e;
3096
3096
  s = Promise.all(dr(t, i, n));
3097
3097
  }
3098
3098
  return s.then(() => {
@@ -3121,7 +3121,7 @@ function fr(t) {
3121
3121
  const e = {};
3122
3122
  for (let n = 0; n < xc; n++) {
3123
3123
  const s = os[n], i = t.props[s];
3124
- (he(i) || i === !1) && (e[s] = i);
3124
+ (fe(i) || i === !1) && (e[s] = i);
3125
3125
  }
3126
3126
  return e;
3127
3127
  }
@@ -3132,7 +3132,7 @@ function wc(t) {
3132
3132
  function kc(t) {
3133
3133
  let e = wc(t), n = Js(), s = !0;
3134
3134
  const i = (c) => (u, d) => {
3135
- const h = pe(t, d, c === "exit" ? t.presenceContext?.custom : void 0);
3135
+ const h = me(t, d, c === "exit" ? t.presenceContext?.custom : void 0);
3136
3136
  if (h) {
3137
3137
  const { transition: f, transitionEnd: p, ...m } = h;
3138
3138
  u = { ...u, ...m, ...p };
@@ -3146,7 +3146,7 @@ function kc(t) {
3146
3146
  const { props: u } = t, d = fr(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
3147
3147
  let p = {}, m = 1 / 0;
3148
3148
  for (let w = 0; w < Cc; w++) {
3149
- const v = vc[w], C = n[v], g = u[v] !== void 0 ? u[v] : d[v], T = he(g), k = v === c ? C.isActive : null;
3149
+ const v = vc[w], C = n[v], g = u[v] !== void 0 ? u[v] : d[v], T = fe(g), k = v === c ? C.isActive : null;
3150
3150
  k === !1 && (m = w);
3151
3151
  let L = g === d[v] && g !== u[v] && T;
3152
3152
  if (L && s && t.manuallyAnimateOnMount && (L = !1), C.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
@@ -3155,7 +3155,7 @@ function kc(t) {
3155
3155
  Ie(g) || typeof g == "boolean")
3156
3156
  continue;
3157
3157
  const M = jc(C.prevProp, g);
3158
- let j = M || // If we're making this variant active, we want to always make it active
3158
+ let b = M || // If we're making this variant active, we want to always make it active
3159
3159
  v === c && C.isActive && !L && T || // If we removed a higher-priority variant (i is in reverse order)
3160
3160
  w > m && T, _ = !1;
3161
3161
  const N = Array.isArray(g) ? g : [g];
@@ -3165,7 +3165,7 @@ function kc(t) {
3165
3165
  ...K,
3166
3166
  ...B
3167
3167
  }, G = (z) => {
3168
- j = !0, f.has(z) && (_ = !0, f.delete(z)), C.needsAnimating[z] = !0;
3168
+ b = !0, f.has(z) && (_ = !0, f.delete(z)), C.needsAnimating[z] = !0;
3169
3169
  const Y = t.getValue(z);
3170
3170
  Y && (Y.liveStyle = !1);
3171
3171
  };
@@ -3176,7 +3176,7 @@ function kc(t) {
3176
3176
  let y = !1;
3177
3177
  yn(Y) && yn(lt) ? y = !hr(Y, lt) : y = Y !== lt, y ? Y != null ? G(z) : f.add(z) : Y !== void 0 && f.has(z) ? G(z) : C.protectedKeys[z] = !0;
3178
3178
  }
3179
- C.prevProp = g, C.prevResolvedValues = B, C.isActive && (p = { ...p, ...B }), s && t.blockInitialAnimation && (j = !1), j && (!(L && M) || _) && h.push(...N.map((z) => ({
3179
+ C.prevProp = g, C.prevResolvedValues = B, C.isActive && (p = { ...p, ...B }), s && t.blockInitialAnimation && (b = !1), b && (!(L && M) || _) && h.push(...N.map((z) => ({
3180
3180
  animation: z,
3181
3181
  options: { type: v }
3182
3182
  })));
@@ -3184,7 +3184,7 @@ function kc(t) {
3184
3184
  if (f.size) {
3185
3185
  const w = {};
3186
3186
  if (typeof u.initial != "boolean") {
3187
- const v = pe(t, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3187
+ const v = me(t, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3188
3188
  v && v.transition && (w.transition = v.transition);
3189
3189
  }
3190
3190
  f.forEach((v) => {
@@ -3301,10 +3301,10 @@ const Mc = {
3301
3301
  Feature: Tc
3302
3302
  }
3303
3303
  };
3304
- function me(t, e, n, s = { passive: !0 }) {
3304
+ function ge(t, e, n, s = { passive: !0 }) {
3305
3305
  return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
3306
3306
  }
3307
- function ve(t) {
3307
+ function Ce(t) {
3308
3308
  return {
3309
3309
  point: {
3310
3310
  x: t.pageX,
@@ -3312,9 +3312,9 @@ function ve(t) {
3312
3312
  }
3313
3313
  };
3314
3314
  }
3315
- const Sc = (t) => (e) => ns(e) && t(e, ve(e));
3316
- function re(t, e, n, s) {
3317
- return me(t, e, Sc(n), s);
3315
+ const Sc = (t) => (e) => ns(e) && t(e, Ce(e));
3316
+ function ae(t, e, n, s) {
3317
+ return ge(t, e, Sc(n), s);
3318
3318
  }
3319
3319
  function pr({ top: t, left: e, right: n, bottom: s }) {
3320
3320
  return {
@@ -3346,7 +3346,7 @@ function _c(t, e, n) {
3346
3346
  function Qs(t, e, n, s = 0.5) {
3347
3347
  t.origin = s, t.originPoint = H(e.min, e.max, t.origin), t.scale = ot(n) / ot(e), t.translate = H(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Vc && t.scale <= Rc || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Dc && t.translate <= Ec || isNaN(t.translate)) && (t.translate = 0);
3348
3348
  }
3349
- function ae(t, e, n, s) {
3349
+ function le(t, e, n, s) {
3350
3350
  Qs(t.x, e.x, n.x, s ? s.originX : void 0), Qs(t.y, e.y, n.y, s ? s.originY : void 0);
3351
3351
  }
3352
3352
  function ti(t, e, n) {
@@ -3358,7 +3358,7 @@ function Nc(t, e, n) {
3358
3358
  function ei(t, e, n) {
3359
3359
  t.min = e.min - n.min, t.max = t.min + ot(e);
3360
3360
  }
3361
- function le(t, e, n) {
3361
+ function ce(t, e, n) {
3362
3362
  ei(t.x, e.x, n.x), ei(t.y, e.y, n.y);
3363
3363
  }
3364
3364
  const ni = () => ({
@@ -3467,10 +3467,10 @@ class wr {
3467
3467
  }, !ns(e))
3468
3468
  return;
3469
3469
  this.dragSnapToOrigin = r, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = o, this.contextWindow = i || window;
3470
- const a = ve(e), c = Je(a, this.transformPagePoint), { point: u } = c, { timestamp: d } = et;
3470
+ const a = Ce(e), c = Je(a, this.transformPagePoint), { point: u } = c, { timestamp: d } = et;
3471
3471
  this.history = [{ ...u, timestamp: d }];
3472
3472
  const { onSessionStart: h } = n;
3473
- h && h(e, Qe(c, this.history)), this.removeListeners = ge(re(this.contextWindow, "pointermove", this.handlePointerMove), re(this.contextWindow, "pointerup", this.handlePointerUp), re(this.contextWindow, "pointercancel", this.handlePointerUp));
3473
+ h && h(e, Qe(c, this.history)), this.removeListeners = ye(ae(this.contextWindow, "pointermove", this.handlePointerMove), ae(this.contextWindow, "pointerup", this.handlePointerUp), ae(this.contextWindow, "pointercancel", this.handlePointerUp));
3474
3474
  }
3475
3475
  updateHandlers(e) {
3476
3476
  this.handlers = e;
@@ -3545,7 +3545,7 @@ function $c(t, e) {
3545
3545
  function Uc(t, e) {
3546
3546
  let n = 0.5;
3547
3547
  const s = ot(t), i = ot(e);
3548
- return i > s ? n = /* @__PURE__ */ ce(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ ce(t.min, t.max - i, e.min)), xt(0, 1, n);
3548
+ return i > s ? n = /* @__PURE__ */ ue(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ ue(t.min, t.max - i, e.min)), xt(0, 1, n);
3549
3549
  }
3550
3550
  function Hc(t, e) {
3551
3551
  const n = {};
@@ -3578,7 +3578,7 @@ class Yc {
3578
3578
  return;
3579
3579
  const r = (h) => {
3580
3580
  const { dragSnapToOrigin: f } = this.getProps();
3581
- f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(ve(h).point);
3581
+ f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ce(h).point);
3582
3582
  }, o = (h, f) => {
3583
3583
  const { drag: p, dragPropagation: m, onDragStart: x } = this.getProps();
3584
3584
  if (p && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = ll(p), !this.openDragLock))
@@ -3764,7 +3764,7 @@ class Yc {
3764
3764
  if (!this.visualElement.current)
3765
3765
  return;
3766
3766
  Gc.set(this.visualElement, this);
3767
- const e = this.visualElement.current, n = re(e, "pointerdown", (c) => {
3767
+ const e = this.visualElement.current, n = ae(e, "pointerdown", (c) => {
3768
3768
  const { drag: u, dragListener: d = !0 } = this.getProps();
3769
3769
  u && d && this.start(c);
3770
3770
  }), s = () => {
@@ -3772,7 +3772,7 @@ class Yc {
3772
3772
  Ft(c) && c.current && (this.constraints = this.resolveRefConstraints());
3773
3773
  }, { projection: i } = this.visualElement, r = i.addEventListener("measure", s);
3774
3774
  i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), W.read(s);
3775
- const o = me(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: u }) => {
3775
+ const o = ge(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: u }) => {
3776
3776
  this.isDragging && u && (ut((d) => {
3777
3777
  const h = this.getAxisMotionValue(d);
3778
3778
  h && (this.originPoint[d] += c[d].translate, h.set(h.get() + c[d].translate));
@@ -3839,7 +3839,7 @@ class Jc extends Vt {
3839
3839
  };
3840
3840
  }
3841
3841
  mount() {
3842
- this.removePointerDownListener = re(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
3842
+ this.removePointerDownListener = ae(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
3843
3843
  }
3844
3844
  update() {
3845
3845
  this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -3863,7 +3863,7 @@ const Pe = {
3863
3863
  function gi(t, e) {
3864
3864
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
3865
3865
  }
3866
- const se = {
3866
+ const ie = {
3867
3867
  correct: (t, e) => {
3868
3868
  if (!e.target)
3869
3869
  return t;
@@ -3933,7 +3933,7 @@ function jr(t) {
3933
3933
  }
3934
3934
  const e0 = {
3935
3935
  borderRadius: {
3936
- ...se,
3936
+ ...ie,
3937
3937
  applyTo: [
3938
3938
  "borderTopLeftRadius",
3939
3939
  "borderTopRightRadius",
@@ -3941,10 +3941,10 @@ const e0 = {
3941
3941
  "borderBottomRightRadius"
3942
3942
  ]
3943
3943
  },
3944
- borderTopLeftRadius: se,
3945
- borderTopRightRadius: se,
3946
- borderBottomLeftRadius: se,
3947
- borderBottomRightRadius: se,
3944
+ borderTopLeftRadius: ie,
3945
+ borderTopRightRadius: ie,
3946
+ borderBottomLeftRadius: ie,
3947
+ borderBottomRightRadius: ie,
3948
3948
  boxShadow: Qc
3949
3949
  };
3950
3950
  function n0(t, e, n) {
@@ -3990,7 +3990,7 @@ function Ci(t, e) {
3990
3990
  }
3991
3991
  const l0 = /* @__PURE__ */ Lr(0, 0.5, yo), c0 = /* @__PURE__ */ Lr(0.5, 0.95, dt);
3992
3992
  function Lr(t, e, n) {
3993
- return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ ce(t, e, s));
3993
+ return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ ue(t, e, s));
3994
3994
  }
3995
3995
  function wi(t, e) {
3996
3996
  t.min = e.min, t.max = e.max;
@@ -4374,12 +4374,12 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4374
4374
  if (!(!this.layout || !(d || h))) {
4375
4375
  if (this.resolvedRelativeTargetAt = et.timestamp, !this.targetDelta && !this.relativeTarget) {
4376
4376
  const f = this.getClosestProjectingParent();
4377
- f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = q(), this.relativeTargetOrigin = q(), le(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4377
+ f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = q(), this.relativeTargetOrigin = q(), ce(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4378
4378
  }
4379
4379
  if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = q(), this.targetWithTransforms = q()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Nc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : ct(this.target, this.layout.layoutBox), xr(this.target, this.targetDelta)) : ct(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4380
4380
  this.attemptToResolveRelativeTarget = !1;
4381
4381
  const f = this.getClosestProjectingParent();
4382
- f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = q(), this.relativeTargetOrigin = q(), le(this.relativeTargetOrigin, this.target, f.target), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4382
+ f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = q(), this.relativeTargetOrigin = q(), ce(this.relativeTargetOrigin, this.target, f.target), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4383
4383
  }
4384
4384
  }
4385
4385
  }
@@ -4406,7 +4406,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4406
4406
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4407
4407
  return;
4408
4408
  }
4409
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ki(this.prevProjectionDelta.x, this.projectionDelta.x), ki(this.prevProjectionDelta.y, this.projectionDelta.y)), ae(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !Ai(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ai(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p));
4409
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ki(this.prevProjectionDelta.x, this.projectionDelta.x), ki(this.prevProjectionDelta.y, this.projectionDelta.y)), le(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !Ai(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ai(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p));
4410
4410
  }
4411
4411
  hide() {
4412
4412
  this.isVisible = !1;
@@ -4432,7 +4432,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4432
4432
  let g;
4433
4433
  this.mixTargetDelta = (T) => {
4434
4434
  const k = T / 1e3;
4435
- Ei(h.x, o.x, k), Ei(h.y, o.y, k), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (le(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), S0(this.relativeTarget, this.relativeTargetOrigin, f, k), g && f0(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = q()), ct(g, this.relativeTarget)), x && (this.animationValues = d, a0(d, u, this.latestValues, k, C, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = k;
4435
+ Ei(h.x, o.x, k), Ei(h.y, o.y, k), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ce(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), S0(this.relativeTarget, this.relativeTargetOrigin, f, k), g && f0(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = q()), ct(g, this.relativeTarget)), x && (this.animationValues = d, a0(d, u, this.latestValues, k, C, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = k;
4436
4436
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4437
4437
  }
4438
4438
  startAnimation(o) {
@@ -4471,7 +4471,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4471
4471
  const f = ot(this.layout.layoutBox.y);
4472
4472
  c.y.min = o.target.y.min, c.y.max = c.y.min + f;
4473
4473
  }
4474
- ct(a, c), Wt(a, d), ae(this.projectionDeltaWithTransform, this.layoutCorrected, a, d);
4474
+ ct(a, c), Wt(a, d), le(this.projectionDeltaWithTransform, this.layoutCorrected, a, d);
4475
4475
  }
4476
4476
  }
4477
4477
  registerSharedNode(o, a) {
@@ -4548,10 +4548,10 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4548
4548
  c && (h = c(d, h)), o.transform = h;
4549
4549
  const { x: f, y: p } = this.projectionDelta;
4550
4550
  o.transformOrigin = `${f.origin * 100}% ${p.origin * 100}% 0`, u.animationValues ? o.opacity = u === this ? d.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : o.opacity = u === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
4551
- for (const m in fe) {
4551
+ for (const m in pe) {
4552
4552
  if (d[m] === void 0)
4553
4553
  continue;
4554
- const { correct: x, applyTo: w, isCSSVariable: v } = fe[m], C = h === "none" ? d[m] : x(d[m], u);
4554
+ const { correct: x, applyTo: w, isCSSVariable: v } = pe[m], C = h === "none" ? d[m] : x(d[m], u);
4555
4555
  if (w) {
4556
4556
  const g = w.length;
4557
4557
  for (let T = 0; T < g; T++)
@@ -4585,9 +4585,9 @@ function v0(t) {
4585
4585
  h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[d].max = t.relativeTarget[d].min + f);
4586
4586
  });
4587
4587
  const o = zt();
4588
- ae(o, n, e.layoutBox);
4588
+ le(o, n, e.layoutBox);
4589
4589
  const a = zt();
4590
- r ? ae(a, t.applyTransform(s, !0), e.measuredBox) : ae(a, n, e.layoutBox);
4590
+ r ? le(a, t.applyTransform(s, !0), e.measuredBox) : le(a, n, e.layoutBox);
4591
4591
  const c = !Tr(o);
4592
4592
  let u = !1;
4593
4593
  if (!t.resumeFrom) {
@@ -4596,9 +4596,9 @@ function v0(t) {
4596
4596
  const { snapshot: h, layout: f } = d;
4597
4597
  if (h && f) {
4598
4598
  const p = q();
4599
- le(p, e.layoutBox, h.layoutBox);
4599
+ ce(p, e.layoutBox, h.layoutBox);
4600
4600
  const m = q();
4601
- le(m, n, f.layoutBox), Mr(p, m) || (u = !0), d.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = p, t.relativeParent = d);
4601
+ ce(m, n, f.layoutBox), Mr(p, m) || (u = !0), d.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = p, t.relativeParent = d);
4602
4602
  }
4603
4603
  }
4604
4604
  }
@@ -4679,7 +4679,7 @@ function R0(t) {
4679
4679
  return t !== t.root && t.scroll?.wasRoot;
4680
4680
  }
4681
4681
  const D0 = Pr({
4682
- attachResizeListener: (t, e) => me(t, "resize", e),
4682
+ attachResizeListener: (t, e) => ge(t, "resize", e),
4683
4683
  measureScroll: () => ({
4684
4684
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
4685
4685
  y: document.documentElement.scrollTop || document.body.scrollTop
@@ -4717,7 +4717,7 @@ function Oi(t, e, n) {
4717
4717
  const { props: s } = t;
4718
4718
  t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
4719
4719
  const i = "onHover" + n, r = s[i];
4720
- r && W.postRender(() => r(e, ve(e)));
4720
+ r && W.postRender(() => r(e, Ce(e)));
4721
4721
  }
4722
4722
  class _0 extends Vt {
4723
4723
  mount() {
@@ -4744,7 +4744,7 @@ class N0 extends Vt {
4744
4744
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
4745
4745
  }
4746
4746
  mount() {
4747
- this.unmount = ge(me(this.node.current, "focus", () => this.onFocus()), me(this.node.current, "blur", () => this.onBlur()));
4747
+ this.unmount = ye(ge(this.node.current, "focus", () => this.onFocus()), ge(this.node.current, "blur", () => this.onBlur()));
4748
4748
  }
4749
4749
  unmount() {
4750
4750
  }
@@ -4755,7 +4755,7 @@ function Fi(t, e, n) {
4755
4755
  return;
4756
4756
  t.animationState && s.whileTap && t.animationState.setActive("whileTap", n === "Start");
4757
4757
  const i = "onTap" + (n === "End" ? "" : n), r = s[i];
4758
- r && W.postRender(() => r(e, ve(e)));
4758
+ r && W.postRender(() => r(e, Ce(e)));
4759
4759
  }
4760
4760
  class B0 extends Vt {
4761
4761
  mount() {
@@ -5216,7 +5216,7 @@ const Nr = Z((t, e) => {
5216
5216
  onKeyDown: v,
5217
5217
  onKeyUp: C,
5218
5218
  ...g
5219
- } = t, T = J(null), k = Tn(T), L = b(() => c === "plain", [c]);
5219
+ } = t, T = J(null), k = Tn(T), L = j(() => c === "plain", [c]);
5220
5220
  pt(e, () => ({
5221
5221
  focus() {
5222
5222
  T.current?.focus();
@@ -5228,10 +5228,10 @@ const Nr = Z((t, e) => {
5228
5228
  r || T.current?.click();
5229
5229
  }
5230
5230
  }));
5231
- const M = b(() => {
5231
+ const M = j(() => {
5232
5232
  const D = ["k-button", `k-button--${a}`];
5233
5233
  return s && D.push(s), r && D.push("k-button--disabled"), c && D.push(`k-button--${c}`), o && D.push("k-button--danger"), D.join(" ");
5234
- }, [s, r, a, c, o]), j = b(() => ({ ...f, width: d, height: h }), []), _ = S((D) => {
5234
+ }, [s, r, a, c, o]), b = j(() => ({ ...f, width: d, height: h }), []), _ = S((D) => {
5235
5235
  r || p?.(D);
5236
5236
  }, [r, p]), N = S((D) => {
5237
5237
  m?.(D), !r && !L && k?.register(D);
@@ -5254,7 +5254,7 @@ const Nr = Z((t, e) => {
5254
5254
  type: n,
5255
5255
  label: i,
5256
5256
  className: M,
5257
- style: j,
5257
+ style: b,
5258
5258
  disabled: r,
5259
5259
  onMouseDown: N,
5260
5260
  onMouseLeave: K,
@@ -5268,10 +5268,10 @@ const Nr = Z((t, e) => {
5268
5268
  Nr.displayName = "KButton";
5269
5269
  fs.displayName = "KButton";
5270
5270
  const b2 = ["outlined", "solid", "primary", "subtle", "plain"], Br = (t) => {
5271
- const { className: e, variant: n = "outlined", children: s, ...i } = t, r = b(() => {
5271
+ const { className: e, variant: n = "outlined", children: s, ...i } = t, r = j(() => {
5272
5272
  const a = ["k-button-group"];
5273
5273
  return e && a.push(e), a.join(" ");
5274
- }, [e]), o = b(() => {
5274
+ }, [e]), o = j(() => {
5275
5275
  const a = [];
5276
5276
  return At.forEach(s, (c, u) => {
5277
5277
  if (yt(c) && c.type === fs) {
@@ -5285,7 +5285,7 @@ const b2 = ["outlined", "solid", "primary", "subtle", "plain"], Br = (t) => {
5285
5285
  r2.displayName = "KButtonGroup";
5286
5286
  Br.displayName = "KButtonGroup";
5287
5287
  const Ir = ({ multiple: t, className: e, variant: n = "outlined", children: s, ...i }) => {
5288
- const [r, o] = at(null), [a, c] = at([]), u = b(() => {
5288
+ const [r, o] = at(null), [a, c] = at([]), u = j(() => {
5289
5289
  const p = ["k-toggle-button"];
5290
5290
  return e && p.push(e), p.join(" ");
5291
5291
  }, [e]), d = S(
@@ -5296,7 +5296,7 @@ const Ir = ({ multiple: t, className: e, variant: n = "outlined", children: s, .
5296
5296
  ), h = S(
5297
5297
  (p) => t ? a.includes(p) : r === p,
5298
5298
  [t, r, a]
5299
- ), f = b(() => At.toArray(s).map((p, m) => {
5299
+ ), f = j(() => At.toArray(s).map((p, m) => {
5300
5300
  if (!yt(p) || p.type !== fs) return null;
5301
5301
  const x = h(m), w = p, v = (g) => {
5302
5302
  d(m), w.props.onClick?.(g);
@@ -5316,7 +5316,7 @@ const Ir = ({ multiple: t, className: e, variant: n = "outlined", children: s, .
5316
5316
  };
5317
5317
  Ir.displayName = "KToggleButton";
5318
5318
  const L2 = I(Ir), Or = Z((t, e) => {
5319
- const { className: n, value: s, disabled: i, size: r = "medium", ...o } = t, a = J(null), c = b(() => {
5319
+ const { className: n, value: s, disabled: i, size: r = "medium", ...o } = t, a = J(null), c = j(() => {
5320
5320
  const u = ["k-switch", `k-switch--${s ? "on" : "off"}`];
5321
5321
  return n && u.push(n), r && u.push(`k-switch--${r}`), i && u.push("k-switch--disabled"), u.join(" ");
5322
5322
  }, [s, n, r, i]);
@@ -5327,14 +5327,14 @@ const L2 = I(Ir), Or = Z((t, e) => {
5327
5327
  Or.displayName = "KSwitch";
5328
5328
  a2.displayName = "KSwitch";
5329
5329
  const Fr = (t) => {
5330
- const { className: e, defaultOpen: n, summary: s, children: i, width: r, style: o, size: a = "medium", ...c } = t, u = b(() => {
5330
+ const { className: e, defaultOpen: n, summary: s, children: i, width: r, style: o, size: a = "medium", ...c } = t, u = j(() => {
5331
5331
  const h = ["k-accordion", `k-accordion--${a}`];
5332
5332
  return e && h.push(e), h.join(" ");
5333
- }, [e, a]), d = b(() => ({ ...o, maxWidth: r }), [o, r]);
5333
+ }, [e, a]), d = j(() => ({ ...o, maxWidth: r }), [o, r]);
5334
5334
  return /* @__PURE__ */ l.jsxs($t, { className: u, style: d, defaultOpen: n, ...c, children: [
5335
5335
  /* @__PURE__ */ l.jsxs($t.Summary, { className: "k-accordion__summary", children: [
5336
5336
  /* @__PURE__ */ l.jsx("p", { className: "k-accordion__summary__text", children: s }),
5337
- /* @__PURE__ */ l.jsx(Ce, { icon: "keyboard_arrow_down", size: "small", className: "k-accordion__summary__icon" })
5337
+ /* @__PURE__ */ l.jsx(te, { icon: "keyboard_arrow_down", size: "small", className: "k-accordion__summary__icon" })
5338
5338
  ] }),
5339
5339
  /* @__PURE__ */ l.jsx($t.Content, { className: "k-accordion__content", children: /* @__PURE__ */ l.jsx("div", { className: "k-accordion__content__container", children: i }) })
5340
5340
  ] });
@@ -5361,14 +5361,14 @@ const zr = Z((t, e) => {
5361
5361
  ...v
5362
5362
  } = t, C = J(null), g = Tn(C);
5363
5363
  pt(e, () => C.current, []);
5364
- const T = b(() => {
5364
+ const T = j(() => {
5365
5365
  const O = ["k-menu-item", `k-menu-item--${r}`];
5366
5366
  return s && O.push(s), d && O.push("k-menu-item--disabled"), O.join(" ");
5367
- }, [s, r]), k = b(() => ({ ...i }), [i]), L = S((O) => {
5367
+ }, [s, r]), k = j(() => ({ ...i }), [i]), L = S((O) => {
5368
5368
  d || h?.(O);
5369
5369
  }, [d, h]), M = S((O) => {
5370
5370
  f?.(O), d || g?.register(O);
5371
- }, [g, f]), j = S((O) => {
5371
+ }, [g, f]), b = S((O) => {
5372
5372
  m?.(O), g.remove();
5373
5373
  }, [g, m]), _ = S((O) => {
5374
5374
  p?.(O), g.remove();
@@ -5378,7 +5378,7 @@ const zr = Z((t, e) => {
5378
5378
  });
5379
5379
  }, [g, x]), B = S((O) => {
5380
5380
  w?.(O), Mt(O, () => g.remove());
5381
- }, [g, w]), K = b(() => o ? /* @__PURE__ */ l.jsx("span", { className: "k-menu-item__left-content", children: o }) : null, [o]), R = b(() => /* @__PURE__ */ l.jsx("div", { className: "k-menu-item__label", children: a }), [a]), G = b(() => c ? /* @__PURE__ */ l.jsx("span", { className: "k-menu-item__right-content", children: c }) : null, [c]), D = b(() => u ? /* @__PURE__ */ l.jsx("span", { className: "k-menu-item__shortcut", children: u }) : null, [u]);
5381
+ }, [g, w]), K = j(() => o ? /* @__PURE__ */ l.jsx("span", { className: "k-menu-item__left-content", children: o }) : null, [o]), R = j(() => /* @__PURE__ */ l.jsx("div", { className: "k-menu-item__label", children: a }), [a]), G = j(() => c ? /* @__PURE__ */ l.jsx("span", { className: "k-menu-item__right-content", children: c }) : null, [c]), D = j(() => u ? /* @__PURE__ */ l.jsx("span", { className: "k-menu-item__shortcut", children: u }) : null, [u]);
5382
5382
  return /* @__PURE__ */ l.jsxs(
5383
5383
  to,
5384
5384
  {
@@ -5390,7 +5390,7 @@ const zr = Z((t, e) => {
5390
5390
  disabled: d,
5391
5391
  onClick: L,
5392
5392
  onMouseDown: M,
5393
- onMouseUp: j,
5393
+ onMouseUp: b,
5394
5394
  onMouseLeave: _,
5395
5395
  onKeyDown: N,
5396
5396
  onKeyUp: B,
@@ -5408,10 +5408,10 @@ zr.displayName = "KMenu.Item";
5408
5408
  const Kr = Z((t, e) => {
5409
5409
  const { selected: n, className: s, label: i, ...r } = t, o = J(null);
5410
5410
  pt(e, () => o.current, []);
5411
- const a = b(() => {
5411
+ const a = j(() => {
5412
5412
  const u = ["k-menu-item-selectable"];
5413
5413
  return s && u.push(s), n && u.push("k-menu-item-selectable--selected"), u.join(" ");
5414
- }, [s, n]), c = b(() => n && /* @__PURE__ */ l.jsx(Ce, { className: "k-menu-item-selectable-check", icon: "check", size: 10 }), [n]);
5414
+ }, [s, n]), c = j(() => n && /* @__PURE__ */ l.jsx(te, { className: "k-menu-item-selectable-check", icon: "check", size: 10 }), [n]);
5415
5415
  return /* @__PURE__ */ l.jsx(
5416
5416
  ze,
5417
5417
  {
@@ -5429,7 +5429,7 @@ Kr.displayName = "KMenu.ItemSelectable";
5429
5429
  const Wr = Z((t, e) => {
5430
5430
  const { children: n, className: s, ...i } = t, r = J(null);
5431
5431
  pt(e, () => r.current, []);
5432
- const o = b(() => {
5432
+ const o = j(() => {
5433
5433
  const a = ["k-menu-item-divider"];
5434
5434
  return s && a.push(s), a.join(" ");
5435
5435
  }, [s]);
@@ -5438,10 +5438,10 @@ const Wr = Z((t, e) => {
5438
5438
  ms.displayName = "KMenu.ItemDivider";
5439
5439
  Wr.displayName = "KMenu.ItemDivider";
5440
5440
  const $r = Z((t, e) => {
5441
- const { children: n, className: s, style: i, width: r, size: o = "medium", ...a } = t, c = b(() => {
5441
+ const { children: n, className: s, style: i, width: r, size: o = "medium", ...a } = t, c = j(() => {
5442
5442
  const h = ["k-menu", `k-menu--${o}`];
5443
5443
  return s && h.push(s), h.join(" ");
5444
- }, [s, o]), u = b(() => ({ ...i, width: r }), [i, r]), d = b(() => {
5444
+ }, [s, o]), u = j(() => ({ ...i, width: r }), [i, r]), d = j(() => {
5445
5445
  const h = [];
5446
5446
  return At.forEach(n, (f, p) => {
5447
5447
  if (yt(f) && (f.type === ze || f.type === ps || f.type === ms)) {
@@ -5476,16 +5476,16 @@ const Gr = Z((t, e) => {
5476
5476
  onFocus: u,
5477
5477
  onBlur: d,
5478
5478
  ...h
5479
- } = t, { id: f, triggerRef: p, contentRef: m, trigger: x, open: w, onOpen: v, onClose: C, onFocusContent: g } = Zr(), T = b(() => r ? -1 : 0, [r]);
5479
+ } = t, { id: f, triggerRef: p, contentRef: m, trigger: x, open: w, onOpen: v, onClose: C, onFocusContent: g } = Zr(), T = j(() => r ? -1 : 0, [r]);
5480
5480
  pt(e, () => p.current, []);
5481
- const k = b(() => {
5481
+ const k = j(() => {
5482
5482
  const R = ["k-dropdown__trigger"];
5483
5483
  return s && R.push(s), r && R.push("k-dropdown__trigger--disabled"), R.join(" ");
5484
5484
  }, [s, r]), L = S((R) => {
5485
5485
  i?.(R), x === "click" && !r && (w ? C() : v());
5486
5486
  }, [w, i, x, r]), M = S((R) => {
5487
5487
  o?.(R), x === "hover" && !r && v();
5488
- }, [x, o, r]), j = S((R) => {
5488
+ }, [x, o, r]), b = S((R) => {
5489
5489
  a?.(R), x === "hover" && C();
5490
5490
  }, [x, a]), _ = S((R) => {
5491
5491
  if (c?.(R), r)
@@ -5497,7 +5497,7 @@ const Gr = Z((t, e) => {
5497
5497
  u?.(R), x === "hover" && !r && v();
5498
5498
  }, [u, x, r]), B = S((R) => {
5499
5499
  d?.(R), x === "hover" && C();
5500
- }, [d, x]), K = b(() => At.map(n, (R) => yt(R) ? _e(R, { tabIndex: -1 }) : R), [n]);
5500
+ }, [d, x]), K = j(() => At.map(n, (R) => yt(R) ? _e(R, { tabIndex: -1 }) : R), [n]);
5501
5501
  return ma(m, C, p), // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex,jsx-a11y/no-static-element-interactions
5502
5502
  /* @__PURE__ */ l.jsx(
5503
5503
  "div",
@@ -5514,7 +5514,7 @@ const Gr = Z((t, e) => {
5514
5514
  onKeyDown: _,
5515
5515
  onClick: L,
5516
5516
  onMouseEnter: M,
5517
- onMouseLeave: j,
5517
+ onMouseLeave: b,
5518
5518
  onFocus: N,
5519
5519
  onBlur: B,
5520
5520
  children: K
@@ -5540,7 +5540,7 @@ const c2 = 160, Yr = Z((t, e) => {
5540
5540
  container: m,
5541
5541
  zIndex: x,
5542
5542
  ...w
5543
- } = t, { open: v, triggerRef: C, contentRef: g, position: T, onOpen: k, onClose: L, onBlurContent: M, trigger: j } = Zr(), { top: _, left: N } = ga({
5543
+ } = t, { open: v, triggerRef: C, contentRef: g, position: T, onOpen: k, onClose: L, onBlurContent: M, trigger: b } = Zr(), { top: _, left: N } = ga({
5544
5544
  triggerRef: C,
5545
5545
  contentRef: g,
5546
5546
  position: T,
@@ -5549,22 +5549,22 @@ const c2 = 160, Yr = Z((t, e) => {
5549
5549
  gap: f
5550
5550
  }), B = Mn(m);
5551
5551
  Ui(L), pt(e, () => g.current);
5552
- const K = b(() => {
5552
+ const K = j(() => {
5553
5553
  const y = ["k-dropdown__content"];
5554
5554
  return n && y.push(n), y.join(" ");
5555
- }, [n]), R = b(() => ({ ...s, position: "fixed", top: _, left: N, zIndex: x }), [s, _, N, x]), G = S((y) => {
5555
+ }, [n]), R = j(() => ({ ...s, position: "fixed", top: _, left: N, zIndex: x }), [s, _, N, x]), G = S((y) => {
5556
5556
  r?.(y), h && L();
5557
5557
  }, [r, h]), D = S((y) => {
5558
- o?.(y), j === "hover" && k();
5559
- }, [j, o]), O = S((y) => {
5560
- a?.(y), j === "hover" && L();
5561
- }, [j, a]), z = S((y) => {
5558
+ o?.(y), b === "hover" && k();
5559
+ }, [b, o]), O = S((y) => {
5560
+ a?.(y), b === "hover" && L();
5561
+ }, [b, a]), z = S((y) => {
5562
5562
  Mt(y, L), y.key === "Tab" && y.shiftKey && M(y);
5563
5563
  }, [d]), Y = S((y) => {
5564
- c?.(y), j === "hover" && k();
5565
- }, [c, j]), lt = S((y) => {
5566
- u?.(y), j === "hover" && L();
5567
- }, [u, j]);
5564
+ c?.(y), b === "hover" && k();
5565
+ }, [c, b]), lt = S((y) => {
5566
+ u?.(y), b === "hover" && L();
5567
+ }, [u, b]);
5568
5568
  if (Tt(() => {
5569
5569
  }, [v]), !!B)
5570
5570
  return Sn(
@@ -5610,9 +5610,9 @@ const Xr = Z((t, e) => {
5610
5610
  onDropdownOpen: a,
5611
5611
  onDropdownClose: c,
5612
5612
  ...u
5613
- } = t, d = n || "div", [h, f] = at(!1), p = J(null), m = J(null), x = `k-dropdown-${Yt()}`, w = b(() => {
5614
- const j = ["k-dropdown"];
5615
- return o && j.push(o), j.join(" ");
5613
+ } = t, d = n || "div", [h, f] = at(!1), p = J(null), m = J(null), x = `k-dropdown-${Yt()}`, w = j(() => {
5614
+ const b = ["k-dropdown"];
5615
+ return o && b.push(o), b.join(" ");
5616
5616
  }, [o]), v = S(() => {
5617
5617
  f(!0), a?.();
5618
5618
  }, [a]), C = S(() => {
@@ -5622,10 +5622,10 @@ const Xr = Z((t, e) => {
5622
5622
  onOpen: v,
5623
5623
  onClose: C
5624
5624
  }));
5625
- const { Trigger: g, Content: T } = b(() => {
5626
- const j = At.toArray(r), _ = j.find(
5625
+ const { Trigger: g, Content: T } = j(() => {
5626
+ const b = At.toArray(r), _ = b.find(
5627
5627
  (B) => yt(B) && B.type === gs
5628
- ), N = j.find(
5628
+ ), N = b.find(
5629
5629
  (B) => yt(B) && B.type === ys
5630
5630
  );
5631
5631
  return { Trigger: _, Content: N };
@@ -5634,12 +5634,12 @@ const Xr = Z((t, e) => {
5634
5634
  m.current.querySelector(
5635
5635
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [role="menuitem"]'
5636
5636
  )?.focus();
5637
- }, []), L = S((j) => {
5637
+ }, []), L = S((b) => {
5638
5638
  if (!m.current) return;
5639
5639
  m.current.querySelector(
5640
5640
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [role="menuitem"]'
5641
- ) === j.target && (j.preventDefault(), p.current?.focus());
5642
- }, []), M = b(
5641
+ ) === b.target && (b.preventDefault(), p.current?.focus());
5642
+ }, []), M = j(
5643
5643
  () => ({
5644
5644
  open: h,
5645
5645
  onOpen: v,
@@ -5677,10 +5677,10 @@ const T2 = [
5677
5677
  "left",
5678
5678
  "left-end"
5679
5679
  ], qr = ({ ...t }) => {
5680
- const { id: e, className: n, style: s } = t, { width: i = "100%", height: r = "auto", animation: o = "pulse", borderRadius: a } = t, { onClick: c } = t, u = b(() => {
5680
+ const { id: e, className: n, style: s } = t, { width: i = "100%", height: r = "auto", animation: o = "pulse", borderRadius: a } = t, { onClick: c } = t, u = j(() => {
5681
5681
  const h = ["k-skeleton"];
5682
5682
  return n && h.push(n), o && h.push(`k-skeleton--${o}`), h.join(" ");
5683
- }, [n, o]), d = b(() => ({ ...s, width: i, height: r, borderRadius: a }), [s, i, r, a]);
5683
+ }, [n, o]), d = j(() => ({ ...s, width: i, height: r, borderRadius: a }), [s, i, r, a]);
5684
5684
  return /* @__PURE__ */ l.jsx(
5685
5685
  "div",
5686
5686
  {
@@ -5719,20 +5719,23 @@ const Jr = wt(null), d2 = () => {
5719
5719
  transition: { duration: 0.12, ease: "easeInOut" }
5720
5720
  }
5721
5721
  }, Qr = Z((t, e) => {
5722
- const { title: n, children: s, className: i, ...r } = t, { setTitle: o } = d2(), a = b(() => {
5723
- const u = ["k-modal__header"];
5724
- return i && u.push(i), u.join(" ");
5725
- }, [i]), c = S(() => {
5722
+ const { title: n, children: s, className: i, ...r } = t, { setTitle: o, onCloseAction: a } = d2(), c = j(() => {
5723
+ const h = ["k-modal__header"];
5724
+ return i && h.push(i), h.join(" ");
5725
+ }, [i]), u = S(() => {
5726
5726
  typeof n == "string" && o(n), typeof s == "string" && o(s);
5727
- }, [n, s]);
5727
+ }, [n, s]), d = j(() => /* @__PURE__ */ l.jsx(te, { icon: "close", onClick: a, size: 16, className: "k-modal__header__close" }), [a]);
5728
5728
  return Tt(() => {
5729
- c();
5730
- }, [n, s]), /* @__PURE__ */ l.jsx("div", { ref: e, ...r, className: a, children: n ?? s });
5729
+ u();
5730
+ }, [n, s]), /* @__PURE__ */ l.jsxs("div", { ref: e, ...r, className: c, children: [
5731
+ n ?? s,
5732
+ d
5733
+ ] });
5731
5734
  }), xs = I(Qr);
5732
5735
  xs.displayName = "KModalHeader";
5733
5736
  Qr.displayName = "KModalHeader";
5734
5737
  const ta = Z((t, e) => {
5735
- const { children: n, className: s, ...i } = t, r = b(() => {
5738
+ const { children: n, className: s, ...i } = t, r = j(() => {
5736
5739
  const o = ["k-modal__content"];
5737
5740
  return s && o.push(s), o.join(" ");
5738
5741
  }, [s]);
@@ -5744,7 +5747,7 @@ const ta = Z((t, e) => {
5744
5747
  vs.displayName = "KModalContent";
5745
5748
  ta.displayName = "KModalContent";
5746
5749
  const ea = Z((t, e) => {
5747
- const { children: n, className: s, align: i = "center", ...r } = t, o = b(() => {
5750
+ const { children: n, className: s, align: i = "center", ...r } = t, o = j(() => {
5748
5751
  const a = ["k-modal__footer", `k-modal__footer--${i}`];
5749
5752
  return s && a.push(s), a.join(" ");
5750
5753
  }, [s]);
@@ -5769,26 +5772,27 @@ const na = (t) => {
5769
5772
  escClosable: p = !1,
5770
5773
  children: m,
5771
5774
  container: x
5772
- } = t, w = Mn(x), [v, C] = at(null), g = b(() => h2[u], [u]);
5775
+ } = t, w = Mn(x), [v, C] = at(null), g = j(() => h2[u], [u]);
5773
5776
  if (r === void 0 && typeof o != "function")
5774
5777
  throw new Error('You must provide at least one of "setIsOpen" or "onClose".');
5775
- const T = b(() => ({ ...c, width: n, height: s }), [c, n, s]), k = b(() => {
5778
+ const T = j(() => ({ ...c, width: n, height: s }), [c, n, s]), k = j(() => {
5776
5779
  const K = ["k-modal", `k-modal--${i}`];
5777
5780
  return e && K.push("k-modal--open"), e || K.push("k-modal--close"), a && K.push(a), K.join(" ");
5778
5781
  }, [e, i, a]), L = S(() => {
5779
5782
  o?.(), r?.(!1);
5780
5783
  }, [o, r]), M = S(() => {
5781
5784
  f && L();
5782
- }, [f, L]), { modalHeader: j, modalContent: _, modalFooter: N } = b(() => {
5785
+ }, [f, L]), { modalHeader: b, modalContent: _, modalFooter: N } = j(() => {
5783
5786
  let K = null, R = null, G = null;
5784
5787
  return At.forEach(m, (D) => {
5785
5788
  yt(D) && (D.type === xs && (K = D), D.type === vs && (R = D), D.type === Cs && (G = D));
5786
5789
  }), { modalHeader: K, modalContent: R, modalFooter: G };
5787
- }, [m]), B = b(() => ({
5790
+ }, [m]), B = j(() => ({
5788
5791
  isOpen: e,
5789
5792
  title: v,
5790
- setTitle: C
5791
- }), [e, v]);
5793
+ setTitle: C,
5794
+ onCloseAction: L
5795
+ }), [e, v, L]);
5792
5796
  return Ui(() => {
5793
5797
  p && L();
5794
5798
  }), w ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
@@ -5804,7 +5808,7 @@ const na = (t) => {
5804
5808
  "aria-modal": "true",
5805
5809
  "aria-label": v ?? void 0,
5806
5810
  children: [
5807
- j,
5811
+ b,
5808
5812
  _,
5809
5813
  N
5810
5814
  ]
@@ -5838,16 +5842,16 @@ const M2 = ["medium", "small", "large"], Ki = {
5838
5842
  onKeyDown: u,
5839
5843
  container: d,
5840
5844
  ...h
5841
- } = t, f = Mn(d), p = b(() => c ? 0 : void 0, [c]), m = b(() => c ? { role: "button", "aria-label": "backdrop" } : { role: r, "aria-label": h["aria-label"] }, [c, r]), x = b(() => {
5845
+ } = t, f = Mn(d), p = j(() => c ? 0 : void 0, [c]), m = j(() => c ? { role: "button", "aria-label": "backdrop" } : { role: r, "aria-label": h["aria-label"] }, [c, r]), x = j(() => {
5842
5846
  const k = ["k-backdrop__container"];
5843
5847
  return n && k.push(n), k.join(" ");
5844
- }, [n]), w = b(() => ({ ...s, opacity: o, zIndex: a }), [s, o, a]), v = b(() => typeof o == "number" ? { ...Ki, animate: { opacity: o, zIndex: a } } : Ki, [o, a]), C = S((k) => {
5848
+ }, [n]), w = j(() => ({ ...s, opacity: o, zIndex: a }), [s, o, a]), v = j(() => typeof o == "number" ? { ...Ki, animate: { opacity: o, zIndex: a } } : Ki, [o, a]), C = S((k) => {
5845
5849
  c?.(k);
5846
5850
  }, [c]), g = S((k) => {
5847
5851
  Mt(k, () => {
5848
5852
  c?.();
5849
5853
  }), u?.(k);
5850
- }, [u]), T = b(() => i ? {} : { role: "presentation" }, [i]);
5854
+ }, [u]), T = j(() => i ? {} : { role: "presentation" }, [i]);
5851
5855
  return f ? Sn(
5852
5856
  /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsxs(Fe, { as: "div", isOpen: e, className: "k-backdrop", ...v, ...T, children: [
5853
5857
  /* @__PURE__ */ l.jsx(
@@ -5870,10 +5874,10 @@ const M2 = ["medium", "small", "large"], Ki = {
5870
5874
  ia.displayName = "KBackdrop";
5871
5875
  sa.displayName = "KBackdrop";
5872
5876
  const oa = Z((t, e) => {
5873
- const { className: n, style: s, size: i = "medium", color: r = "currentColor", ...o } = t, a = b(() => {
5877
+ const { className: n, style: s, size: i = "medium", color: r = "currentColor", ...o } = t, a = j(() => {
5874
5878
  const u = ["k-spinner"];
5875
5879
  return n && u.push(n), typeof i == "string" && u.push(`k-spinner--${i}`), u.join(" ");
5876
- }, [n, i]), c = b(() => {
5880
+ }, [n, i]), c = j(() => {
5877
5881
  const u = { ...s };
5878
5882
  return typeof i == "number" && (u.width = i, u.height = i), u;
5879
5883
  }, [s]);
@@ -6979,7 +6983,7 @@ const P = "currentColor", p2 = {
6979
6983
  color: c,
6980
6984
  disabled: u,
6981
6985
  ...d
6982
- } = t, h = J(null), f = `k-icon-${Yt()}`, p = b(() => a ? 0 : void 0, [a]);
6986
+ } = t, h = J(null), f = `k-icon-${Yt()}`, p = j(() => a ? 0 : void 0, [a]);
6983
6987
  if (!r)
6984
6988
  throw Error("Error: icon is required and must be provided.");
6985
6989
  pt(e, () => ({
@@ -6987,13 +6991,13 @@ const P = "currentColor", p2 = {
6987
6991
  h.current?.click();
6988
6992
  }
6989
6993
  }));
6990
- const m = b(() => {
6994
+ const m = j(() => {
6991
6995
  const g = [];
6992
6996
  return s && g.push(s), typeof o == "string" && g.push(`k-icon--${o}`), a && g.push("k-icon--clickable"), u && g.push(`k-icon--${u}`), g.join(" ");
6993
- }, [s, u, o, r, a]), x = b(() => {
6997
+ }, [s, u, o, r, a]), x = j(() => {
6994
6998
  const g = { ...i };
6995
6999
  return typeof o == "number" && (g.width = o, g.height = o, g.fontSize = o), g;
6996
- }, [o]), w = b(() => {
7000
+ }, [o]), w = j(() => {
6997
7001
  const g = m2(r, c);
6998
7002
  if (!g)
6999
7003
  throw Error(`Not Found icon. icon: ${r}`);
@@ -7022,8 +7026,8 @@ const P = "currentColor", p2 = {
7022
7026
  }
7023
7027
  )
7024
7028
  );
7025
- }), Ce = I(ra);
7026
- Ce.displayName = "KIcon";
7029
+ }), te = I(ra);
7030
+ te.displayName = "KIcon";
7027
7031
  ra.displayName = "KIcon";
7028
7032
  const g2 = ["xsmall", "small", "medium", "large", "xlarge"], S2 = Object.values(g2), aa = Z((t, e) => {
7029
7033
  const {
@@ -7041,13 +7045,13 @@ const g2 = ["xsmall", "small", "medium", "large", "xlarge"], S2 = Object.values(
7041
7045
  disabled: p,
7042
7046
  onChange: m,
7043
7047
  ...x
7044
- } = t, w = b(() => o.find((it) => it.value === r)?.label || null, [r, o]), [v, C] = at(!1), g = J(null), T = J(null), [k, L] = at("auto"), [M, j] = at(null), _ = b(() => M ? -16 : 4, [M]), N = Tn(g), B = b(() => {
7048
+ } = t, w = j(() => o.find((it) => it.value === r)?.label || null, [r, o]), [v, C] = at(!1), g = J(null), T = J(null), [k, L] = at("auto"), [M, b] = at(null), _ = j(() => M ? -16 : 4, [M]), N = Tn(g), B = j(() => {
7045
7049
  const V = ["k-select"];
7046
7050
  return n && V.push(n), f && V.push(`k-select--${f}`), p && V.push("k-select--disabled"), M && V.push("k-select--error"), V.join(" ");
7047
- }, [n, f, M, p]), K = b(() => {
7051
+ }, [n, f, M, p]), K = j(() => {
7048
7052
  const V = ["k-select__fieldset__container__icon"];
7049
7053
  return v && V.push("k-select__fieldset__container__icon--open"), V.join(" ");
7050
- }, [v]), R = b(() => !f || f === "medium" ? "medium" : "small", [f]), G = S(() => {
7054
+ }, [v]), R = j(() => !f || f === "medium" ? "medium" : "small", [f]), G = S(() => {
7051
7055
  const V = g.current?.getBoundingClientRect().width;
7052
7056
  L(V ? V + 2 : "auto");
7053
7057
  }, []), D = S(() => {
@@ -7061,9 +7065,9 @@ const g2 = ["xsmall", "small", "medium", "large", "xlarge"], S2 = Object.values(
7061
7065
  for (let nt = 0; nt < s.length; nt++) {
7062
7066
  const jt = await (await s[nt])(it?.toString()), X = typeof jt == "string" ? jt : null;
7063
7067
  if (X)
7064
- return j(X), !1;
7068
+ return b(X), !1;
7065
7069
  }
7066
- return j(null), !0;
7070
+ return b(null), !0;
7067
7071
  }, [s, r]), Y = S((V) => {
7068
7072
  m(V), i && z(V);
7069
7073
  }, [m, i, z]), lt = S((V) => {
@@ -7072,7 +7076,7 @@ const g2 = ["xsmall", "small", "medium", "large", "xlarge"], S2 = Object.values(
7072
7076
  p || N.remove();
7073
7077
  }, [p]), E = S(() => {
7074
7078
  p || N.remove();
7075
- }, [p]), F = b(() => {
7079
+ }, [p]), F = j(() => {
7076
7080
  const V = ["k-select__fieldset__legend"];
7077
7081
  return a && V.push("k-select__fieldset__legend--show"), V.join(" ");
7078
7082
  }, [a]);
@@ -7115,14 +7119,14 @@ const g2 = ["xsmall", "small", "medium", "large", "xlarge"], S2 = Object.values(
7115
7119
  children: [
7116
7120
  w && /* @__PURE__ */ l.jsx("span", { className: "k-select__fieldset__container__value", children: w }),
7117
7121
  r === void 0 && d && /* @__PURE__ */ l.jsx("span", { className: "k-select__fieldset__container__placeholder", children: d }),
7118
- /* @__PURE__ */ l.jsx(Ce, { className: K, icon: "keyboard_arrow_down", size: R })
7122
+ /* @__PURE__ */ l.jsx(te, { className: K, icon: "keyboard_arrow_down", size: R })
7119
7123
  ]
7120
7124
  }
7121
7125
  )
7122
7126
  ] }),
7123
7127
  M && /* @__PURE__ */ l.jsx("div", { className: "k-select__fieldset__message", children: M })
7124
7128
  ] }),
7125
- /* @__PURE__ */ l.jsx(Ht.Content, { className: "k-select__content", gap: _, children: /* @__PURE__ */ l.jsxs(Ut, { width: k, size: "medium", className: `k-select__content__menu k-select__content__menu--${f}`, children: [
7129
+ /* @__PURE__ */ l.jsx(Ht.Content, { className: "k-select__content", gap: _, children: /* @__PURE__ */ l.jsxs(Ut, { width: k, size: f, className: `k-select__content__menu k-select__content__menu--${f}`, children: [
7126
7130
  o.map((V) => /* @__PURE__ */ l.jsx(
7127
7131
  Ut.ItemSelectable,
7128
7132
  {
@@ -7165,18 +7169,18 @@ const la = Z((t, e) => {
7165
7169
  label: k,
7166
7170
  width: L,
7167
7171
  style: M,
7168
- size: j = "medium",
7172
+ size: b = "medium",
7169
7173
  className: _,
7170
7174
  rules: N,
7171
7175
  validateOnChange: B,
7172
7176
  ...K
7173
- } = t, R = J(null), [G, D] = at(!1), [O, z] = at(!1), [Y, lt] = at(null), y = b(() => r === "password", [r]), E = b(() => r === "password" && O ? "text" : r, [r, O]), F = b(() => {
7174
- const $ = ["k-text-field", `k-text-field--${j}`];
7177
+ } = t, R = J(null), [G, D] = at(!1), [O, z] = at(!1), [Y, lt] = at(null), y = j(() => r === "password", [r]), E = j(() => r === "password" && O ? "text" : r, [r, O]), F = j(() => {
7178
+ const $ = ["k-text-field", `k-text-field--${b}`];
7175
7179
  return _ && $.push(_), c && $.push("k-text-field--disabled"), G && $.push("k-text-field--focus"), u && $.push("k-text-field--readOnly"), r === "password" && $.push("k-text-field--password"), typeof Y == "string" && $.push("k-text-field--error"), $.join(" ");
7176
- }, [_, c, u, r, Y, j, G]), V = b(() => {
7180
+ }, [_, c, u, r, Y, b, G]), V = j(() => {
7177
7181
  const $ = ["k-text-field__fieldset__legend__label"];
7178
7182
  return k && $.push("k-text-field__fieldset__legend__label--show"), $.join(" ");
7179
- }, [k]), it = b(() => ({ ...M, width: L }), [M, L]), nt = b(() => ({ textAlign: h }), [h]), kt = S(async ($) => {
7183
+ }, [k]), it = j(() => ({ ...M, width: L }), [M, L]), nt = j(() => ({ textAlign: h }), [h]), kt = S(async ($) => {
7180
7184
  if (!N)
7181
7185
  return console.warn("not found rules."), !0;
7182
7186
  const ca = $ ?? i;
@@ -7192,7 +7196,7 @@ const la = Z((t, e) => {
7192
7196
  D(!0), p?.($);
7193
7197
  }, [p]), bt = S(($) => {
7194
7198
  D(!1), m?.($);
7195
- }, [m]), te = S(($) => {
7199
+ }, [m]), ee = S(($) => {
7196
7200
  x?.($);
7197
7201
  }, [x]), We = S(() => {
7198
7202
  z(($) => !$);
@@ -7226,7 +7230,7 @@ const la = Z((t, e) => {
7226
7230
  onChange: jt,
7227
7231
  onFocus: X,
7228
7232
  onBlur: bt,
7229
- onKeyDown: te,
7233
+ onKeyDown: ee,
7230
7234
  autoComplete: C,
7231
7235
  autoCorrect: v,
7232
7236
  autoCapitalize: w,
@@ -7235,7 +7239,7 @@ const la = Z((t, e) => {
7235
7239
  }
7236
7240
  ),
7237
7241
  y && /* @__PURE__ */ l.jsx(
7238
- Ce,
7242
+ te,
7239
7243
  {
7240
7244
  icon: y ? "visibility" : "visibility_off",
7241
7245
  size: 18,
@@ -7262,7 +7266,7 @@ export {
7262
7266
  fs as KButton,
7263
7267
  r2 as KButtonGroup,
7264
7268
  Ht as KDropdown,
7265
- Ce as KIcon,
7269
+ te as KIcon,
7266
7270
  S2 as KIconSizeList,
7267
7271
  M2 as KMODAL_SIZES,
7268
7272
  Ut as KMenu,