kku-ui 0.2.1 → 0.2.2

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 J, memo as B, useCallback as M, useRef as X, useState as rt, useMemo as b, useEffect as bt, Children as St, isValidElement as yt, forwardRef as Z, useLayoutEffect as da, useId as Gt, useInsertionEffect as Wi, Fragment as $i, createElement as ha, Component as fa, useImperativeHandle as ft, cloneElement as Ee } from "react";
2
+ import ua, { createContext as kt, useContext as Q, memo as O, useCallback as S, useRef as q, useState as rt, useMemo as b, useEffect as Tt, Children as At, isValidElement as xt, 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 Ce = { exports: {} }, ee = {};
6
+ var we = { exports: {} }, ee = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.js
@@ -56,15 +56,15 @@ function xa() {
56
56
  switch (g) {
57
57
  case y:
58
58
  return "Fragment";
59
- case v:
59
+ case C:
60
60
  return "Profiler";
61
- case k:
62
- return "StrictMode";
63
61
  case w:
62
+ return "StrictMode";
63
+ case k:
64
64
  return "Suspense";
65
- case j:
65
+ case L:
66
66
  return "SuspenseList";
67
- case D:
67
+ case _:
68
68
  return "Activity";
69
69
  }
70
70
  if (typeof g == "object")
@@ -73,19 +73,19 @@ function xa() {
73
73
  ), g.$$typeof) {
74
74
  case m:
75
75
  return "Portal";
76
- case C:
76
+ case v:
77
77
  return (g.displayName || "Context") + ".Provider";
78
78
  case x:
79
79
  return (g._context.displayName || "Context") + ".Consumer";
80
80
  case T:
81
- var _ = g.render;
82
- return g = g.displayName, g || (g = _.displayName || _.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
83
- case S:
84
- return _ = g.displayName || null, _ !== null ? _ : t(g.type) || "Memo";
85
- case L:
86
- _ = g._payload, g = g._init;
81
+ var E = g.render;
82
+ return g = g.displayName, g || (g = E.displayName || E.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
83
+ case M:
84
+ return E = g.displayName || null, E !== null ? E : t(g.type) || "Memo";
85
+ case j:
86
+ E = g._payload, g = g._init;
87
87
  try {
88
- return t(g(_));
88
+ return t(g(E));
89
89
  } catch {
90
90
  }
91
91
  }
@@ -97,71 +97,71 @@ function xa() {
97
97
  function n(g) {
98
98
  try {
99
99
  e(g);
100
- var _ = !1;
100
+ var E = !1;
101
101
  } catch {
102
- _ = !0;
102
+ E = !0;
103
103
  }
104
- if (_) {
105
- _ = console;
106
- var F = _.error, Q = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
107
- return F.call(
108
- _,
104
+ if (E) {
105
+ E = console;
106
+ var P = E.error, W = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
107
+ return P.call(
108
+ E,
109
109
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
- Q
110
+ W
111
111
  ), e(g);
112
112
  }
113
113
  }
114
114
  function s(g) {
115
115
  if (g === y) return "<>";
116
- if (typeof g == "object" && g !== null && g.$$typeof === L)
116
+ if (typeof g == "object" && g !== null && g.$$typeof === j)
117
117
  return "<...>";
118
118
  try {
119
- var _ = t(g);
120
- return _ ? "<" + _ + ">" : "<...>";
119
+ var E = t(g);
120
+ return E ? "<" + E + ">" : "<...>";
121
121
  } catch {
122
122
  return "<...>";
123
123
  }
124
124
  }
125
125
  function i() {
126
- var g = I.A;
126
+ var g = B.A;
127
127
  return g === null ? null : g.getOwner();
128
128
  }
129
129
  function r() {
130
130
  return Error("react-stack-top-frame");
131
131
  }
132
132
  function o(g) {
133
- if (z.call(g, "key")) {
134
- var _ = Object.getOwnPropertyDescriptor(g, "key").get;
135
- if (_ && _.isReactWarning) return !1;
133
+ if (F.call(g, "key")) {
134
+ var E = Object.getOwnPropertyDescriptor(g, "key").get;
135
+ if (E && E.isReactWarning) return !1;
136
136
  }
137
137
  return g.key !== void 0;
138
138
  }
139
- function a(g, _) {
140
- function F() {
141
- E || (E = !0, console.error(
139
+ function a(g, E) {
140
+ function P() {
141
+ D || (D = !0, console.error(
142
142
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
143
- _
143
+ E
144
144
  ));
145
145
  }
146
- F.isReactWarning = !0, Object.defineProperty(g, "key", {
147
- get: F,
146
+ P.isReactWarning = !0, Object.defineProperty(g, "key", {
147
+ get: P,
148
148
  configurable: !0
149
149
  });
150
150
  }
151
151
  function c() {
152
152
  var g = t(this.type);
153
- return O[g] || (O[g] = !0, console.error(
153
+ return I[g] || (I[g] = !0, console.error(
154
154
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
155
155
  )), g = this.props.ref, g !== void 0 ? g : null;
156
156
  }
157
- function u(g, _, F, Q, pt, at, At, Qt) {
158
- return F = at.ref, g = {
157
+ function u(g, E, P, W, it, lt, mt, jt) {
158
+ return P = lt.ref, g = {
159
159
  $$typeof: p,
160
160
  type: g,
161
- key: _,
162
- props: at,
163
- _owner: pt
164
- }, (F !== void 0 ? F : null) !== null ? Object.defineProperty(g, "ref", {
161
+ key: E,
162
+ props: lt,
163
+ _owner: it
164
+ }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(g, "ref", {
165
165
  enumerable: !1,
166
166
  get: c
167
167
  }) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
@@ -178,68 +178,68 @@ function xa() {
178
178
  configurable: !1,
179
179
  enumerable: !1,
180
180
  writable: !0,
181
- value: At
181
+ value: mt
182
182
  }), Object.defineProperty(g, "_debugTask", {
183
183
  configurable: !1,
184
184
  enumerable: !1,
185
185
  writable: !0,
186
- value: Qt
186
+ value: jt
187
187
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
188
188
  }
189
- function d(g, _, F, Q, pt, at, At, Qt) {
190
- var tt = _.children;
189
+ function d(g, E, P, W, it, lt, mt, jt) {
190
+ var tt = E.children;
191
191
  if (tt !== void 0)
192
- if (Q)
192
+ if (W)
193
193
  if (R(tt)) {
194
- for (Q = 0; Q < tt.length; Q++)
195
- h(tt[Q]);
194
+ for (W = 0; W < tt.length; W++)
195
+ h(tt[W]);
196
196
  Object.freeze && Object.freeze(tt);
197
197
  } else
198
198
  console.error(
199
199
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
200
200
  );
201
201
  else h(tt);
202
- if (z.call(_, "key")) {
202
+ if (F.call(E, "key")) {
203
203
  tt = t(g);
204
- var kt = Object.keys(_).filter(function(We) {
204
+ var bt = Object.keys(E).filter(function(We) {
205
205
  return We !== "key";
206
206
  });
207
- Q = 0 < kt.length ? "{key: someKey, " + kt.join(": ..., ") + ": ...}" : "{key: someKey}", st[tt + Q] || (kt = 0 < kt.length ? "{" + kt.join(": ..., ") + ": ...}" : "{}", console.error(
207
+ W = 0 < bt.length ? "{key: someKey, " + bt.join(": ..., ") + ": ...}" : "{key: someKey}", at[tt + W] || (bt = 0 < bt.length ? "{" + bt.join(": ..., ") + ": ...}" : "{}", console.error(
208
208
  `A props object containing a "key" prop is being spread into JSX:
209
209
  let props = %s;
210
210
  <%s {...props} />
211
211
  React keys must be passed directly to JSX without using spread:
212
212
  let props = %s;
213
213
  <%s key={someKey} {...props} />`,
214
- Q,
214
+ W,
215
215
  tt,
216
- kt,
216
+ bt,
217
217
  tt
218
- ), st[tt + Q] = !0);
218
+ ), at[tt + W] = !0);
219
219
  }
220
- if (tt = null, F !== void 0 && (n(F), tt = "" + F), o(_) && (n(_.key), tt = "" + _.key), "key" in _) {
221
- F = {};
222
- for (var te in _)
223
- te !== "key" && (F[te] = _[te]);
224
- } else F = _;
220
+ if (tt = null, P !== void 0 && (n(P), tt = "" + P), o(E) && (n(E.key), tt = "" + E.key), "key" in E) {
221
+ P = {};
222
+ for (var te in E)
223
+ te !== "key" && (P[te] = E[te]);
224
+ } else P = E;
225
225
  return tt && a(
226
- F,
226
+ P,
227
227
  typeof g == "function" ? g.displayName || g.name || "Unknown" : g
228
228
  ), u(
229
229
  g,
230
230
  tt,
231
- at,
232
- pt,
231
+ lt,
232
+ it,
233
233
  i(),
234
- F,
235
- At,
236
- Qt
234
+ P,
235
+ mt,
236
+ jt
237
237
  );
238
238
  }
239
239
  function h(g) {
240
240
  typeof g == "object" && g !== null && g.$$typeof === p && g._store && (g._store.validated = 1);
241
241
  }
242
- var f = ua, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), C = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), I = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = 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"), y = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), v = 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, F = Object.prototype.hasOwnProperty, R = Array.isArray, G = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  f = {
@@ -247,56 +247,56 @@ React keys must be passed directly to JSX without using spread:
247
247
  return g();
248
248
  }
249
249
  };
250
- var E, O = {}, V = f["react-stack-bottom-frame"].bind(
250
+ var D, I = {}, z = f["react-stack-bottom-frame"].bind(
251
251
  f,
252
252
  r
253
- )(), K = G(s(r)), st = {};
254
- ne.Fragment = y, ne.jsx = function(g, _, F, Q, pt) {
255
- var at = 1e4 > I.recentlyCreatedOwnerStacks++;
253
+ )(), Y = G(s(r)), at = {};
254
+ ne.Fragment = y, ne.jsx = function(g, E, P, W, it) {
255
+ var lt = 1e4 > B.recentlyCreatedOwnerStacks++;
256
256
  return d(
257
257
  g,
258
- _,
259
- F,
258
+ E,
259
+ P,
260
260
  !1,
261
- Q,
262
- pt,
263
- at ? Error("react-stack-top-frame") : V,
264
- at ? G(s(g)) : K
261
+ W,
262
+ it,
263
+ lt ? Error("react-stack-top-frame") : z,
264
+ lt ? G(s(g)) : Y
265
265
  );
266
- }, ne.jsxs = function(g, _, F, Q, pt) {
267
- var at = 1e4 > I.recentlyCreatedOwnerStacks++;
266
+ }, ne.jsxs = function(g, E, P, W, it) {
267
+ var lt = 1e4 > B.recentlyCreatedOwnerStacks++;
268
268
  return d(
269
269
  g,
270
- _,
271
- F,
270
+ E,
271
+ P,
272
272
  !0,
273
- Q,
274
- pt,
275
- at ? Error("react-stack-top-frame") : V,
276
- at ? G(s(g)) : K
273
+ W,
274
+ it,
275
+ lt ? Error("react-stack-top-frame") : z,
276
+ lt ? G(s(g)) : Y
277
277
  );
278
278
  };
279
279
  }()), ne;
280
280
  }
281
281
  var Ls;
282
282
  function va() {
283
- return Ls || (Ls = 1, process.env.NODE_ENV === "production" ? Ce.exports = ya() : Ce.exports = xa()), Ce.exports;
283
+ return Ls || (Ls = 1, process.env.NODE_ENV === "production" ? we.exports = ya() : we.exports = xa()), we.exports;
284
284
  }
285
285
  var l = va();
286
- const Hi = wt(void 0), Zi = () => {
287
- const t = J(Hi);
286
+ const Hi = kt(void 0), Zi = () => {
287
+ const t = Q(Hi);
288
288
  if (t === void 0)
289
289
  throw new Error("useAccordionContext는 AccordionProvider 내에서 사용되어야 합니다.");
290
290
  return t;
291
- }, Lt = (t, e) => {
291
+ }, Mt = (t, e) => {
292
292
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e?.());
293
293
  }, Gi = (t) => {
294
- const { children: e, onClick: n, onKeyDown: s, ...i } = t, { isOpen: r, setIsOpen: o, summaryId: a } = Zi(), c = M(() => {
294
+ const { children: e, onClick: n, onKeyDown: s, ...i } = t, { isOpen: r, setIsOpen: o, summaryId: a } = Zi(), c = S(() => {
295
295
  o((h) => !h);
296
- }, []), u = M((h) => {
296
+ }, []), u = S((h) => {
297
297
  h.preventDefault(), n?.(h), c();
298
- }, [n]), d = M((h) => {
299
- s?.(h), Lt(h, c);
298
+ }, [n]), d = S((h) => {
299
+ s?.(h), Mt(h, c);
300
300
  }, [s]);
301
301
  return /* @__PURE__ */ l.jsx(
302
302
  "summary",
@@ -310,21 +310,21 @@ const Hi = wt(void 0), Zi = () => {
310
310
  children: typeof e == "function" ? e({ isOpen: r }) : e
311
311
  }
312
312
  );
313
- }, Pn = B(Gi);
313
+ }, Pn = O(Gi);
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 = X(null), [a, c] = rt("auto"), u = b(() => ({
317
+ const { children: e, style: n, ...s } = t, { isOpen: i, summaryId: r } = Zi(), o = q(null), [a, c] = rt("auto"), u = b(() => ({
318
318
  ...n,
319
319
  overflow: "hidden",
320
320
  maxHeight: i ? a : 0
321
- }), [n, i, a]), d = M(() => {
321
+ }), [n, i, a]), d = S(() => {
322
322
  const h = o.current;
323
323
  h && c(h.scrollHeight);
324
324
  }, []);
325
- return bt(() => {
325
+ return Tt(() => {
326
326
  d();
327
- }, []), bt(() => {
327
+ }, []), Tt(() => {
328
328
  if (!i) return;
329
329
  const h = o.current;
330
330
  if (!h) return;
@@ -341,25 +341,25 @@ const Yi = (t) => {
341
341
  children: typeof e == "function" ? e({ isOpen: i }) : e
342
342
  }
343
343
  );
344
- }, An = B(Yi);
344
+ }, An = O(Yi);
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] = rt(!!e), o = X(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] = rt(!!e), o = q(null), a = pa("accordion-"), c = b(() => ({ isOpen: i, setIsOpen: r, root: o, summaryId: a }), [i]), { SummaryElement: u, ContentElement: d } = b(() => {
349
349
  let h = null, f = null;
350
- return St.forEach(n, (p) => {
351
- yt(p) && (p?.type === Pn && (h = p), p?.type === An && (f = p));
350
+ return At.forEach(n, (p) => {
351
+ xt(p) && (p?.type === Pn && (h = p), p?.type === An && (f = p));
352
352
  }), { SummaryElement: h, ContentElement: f };
353
353
  }, [n]);
354
354
  return /* @__PURE__ */ l.jsx("details", { ref: o, ...s, open: !0, "data-open": String(i), children: /* @__PURE__ */ l.jsxs(Hi.Provider, { value: c, children: [
355
355
  u,
356
356
  d
357
357
  ] }) });
358
- }, Wt = B(Xi);
358
+ }, $t = O(Xi);
359
359
  Xi.displayName = "Accordion";
360
- Wt.displayName = "Accordion";
361
- Wt.Summary = Pn;
362
- Wt.Content = An;
360
+ $t.displayName = "Accordion";
361
+ $t.Summary = Pn;
362
+ $t.Content = An;
363
363
  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)
@@ -381,7 +381,7 @@ const qi = Z((t, e) => {
381
381
  }
382
382
  )
383
383
  );
384
- }), Ji = B(qi);
384
+ }), Ji = O(qi);
385
385
  qi.displayName = "Button";
386
386
  Ji.displayName = "Button";
387
387
  const Vn = Z(
@@ -389,7 +389,7 @@ const Vn = Z(
389
389
  const i = t || "ul";
390
390
  return /* @__PURE__ */ l.jsx(i, { ref: s, role: "menu", ...n, children: e });
391
391
  }
392
- ), Ca = B(Vn);
392
+ ), Ca = O(Vn);
393
393
  Vn.displayName = "Menu";
394
394
  Ca.displayName = "Menu";
395
395
  const Qi = Z(
@@ -397,7 +397,7 @@ const Qi = Z(
397
397
  const { as: n, children: s, disabled: i, tabIndex: r, ...o } = t, a = n || "li", c = b(() => 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
- ), to = B(Qi);
400
+ ), to = O(Qi);
401
401
  Qi.displayName = "MenuItem";
402
402
  to.displayName = "MenuItem";
403
403
  const eo = Z((t, e) => {
@@ -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 = M((d) => {
411
+ } = t, c = b(() => s ? -1 : 0, [s]), u = S((d) => {
412
412
  i?.(d), r?.(!n);
413
413
  }, [n, r, i]);
414
414
  return /* @__PURE__ */ l.jsx(
@@ -429,20 +429,20 @@ const eo = Z((t, e) => {
429
429
  );
430
430
  });
431
431
  eo.displayName = "Switch";
432
- const no = B(eo);
432
+ const no = O(eo);
433
433
  no.displayName = "Switch";
434
434
  const so = Z((t, e) => {
435
435
  const { label: n, disabled: s, ...i } = t, r = b(() => n || void 0, [n]);
436
436
  return /* @__PURE__ */ l.jsx("input", { ref: e, ...i, disabled: s, "aria-label": r, "aria-disabled": s });
437
- }), io = B(so);
437
+ }), io = O(so);
438
438
  so.displayName = "TextField";
439
439
  io.displayName = "TextField";
440
- const Rn = wt({});
440
+ const Rn = kt({});
441
441
  function Dn(t) {
442
- const e = X(null);
442
+ const e = q(null);
443
443
  return e.current === null && (e.current = t()), e.current;
444
444
  }
445
- const En = typeof window < "u", oo = En ? da : bt, _e = /* @__PURE__ */ wt(null);
445
+ const En = typeof window < "u", oo = En ? da : Tt, Ne = /* @__PURE__ */ kt(null);
446
446
  function _n(t, e) {
447
447
  t.indexOf(e) === -1 && t.push(e);
448
448
  }
@@ -450,17 +450,17 @@ function Nn(t, e) {
450
450
  const n = t.indexOf(e);
451
451
  n > -1 && t.splice(n, 1);
452
452
  }
453
- const xt = (t, e, n) => n > e ? e : n < t ? t : n;
454
- let Yt = () => {
455
- }, vt = () => {
453
+ const vt = (t, e, n) => n > e ? e : n < t ? t : n;
454
+ let Xt = () => {
455
+ }, Ct = () => {
456
456
  };
457
- process.env.NODE_ENV !== "production" && (Yt = (t, e) => {
457
+ process.env.NODE_ENV !== "production" && (Xt = (t, e) => {
458
458
  !t && typeof console < "u" && console.warn(e);
459
- }, vt = (t, e) => {
459
+ }, Ct = (t, e) => {
460
460
  if (!t)
461
461
  throw new Error(e);
462
462
  });
463
- const Ct = {}, ro = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
463
+ const wt = {}, ro = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
464
464
  function ao(t) {
465
465
  return typeof t == "object" && t !== null;
466
466
  }
@@ -470,7 +470,7 @@ function Bn(t) {
470
470
  let e;
471
471
  return () => (e === void 0 && (e = t()), e);
472
472
  }
473
- const ut = /* @__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)), ge = (...t) => t.reduce(wa), ce = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
474
474
  const s = e - t;
475
475
  return s === 0 ? 1 : (n - t) / s;
476
476
  };
@@ -499,7 +499,7 @@ class In {
499
499
  this.subscriptions.length = 0;
500
500
  }
501
501
  }
502
- const ht = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, mt = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
502
+ const ft = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, gt = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
503
503
  function co(t, e) {
504
504
  return e ? t * (1e3 / e) : 0;
505
505
  }
@@ -517,12 +517,12 @@ function ba(t, e, n, s, i) {
517
517
  }
518
518
  function ye(t, e, n, s) {
519
519
  if (t === e && n === s)
520
- return ut;
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
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 = {
525
- linear: ut,
525
+ linear: dt,
526
526
  easeIn: La,
527
527
  easeInOut: vo,
528
528
  easeOut: Ta,
@@ -535,13 +535,13 @@ const ho = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, fo
535
535
  anticipate: go
536
536
  }, Sa = (t) => typeof t == "string", Ss = (t) => {
537
537
  if (Co(t)) {
538
- vt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
538
+ Ct(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
539
539
  const [e, n, s, i] = t;
540
540
  return ye(e, n, s, i);
541
541
  } else if (Sa(t))
542
- return vt(Ms[t] !== void 0, `Invalid easing type '${t}'`), Ms[t];
542
+ return Ct(Ms[t] !== void 0, `Invalid easing type '${t}'`), Ms[t];
543
543
  return t;
544
- }, we = [
544
+ }, ke = [
545
545
  "setup",
546
546
  // Compute
547
547
  "read",
@@ -606,39 +606,39 @@ function wo(t, e) {
606
606
  delta: 0,
607
607
  timestamp: 0,
608
608
  isProcessing: !1
609
- }, r = () => n = !0, o = we.reduce((C, T) => (C[T] = Pa(r, e ? T : void 0), C), {}), { setup: a, read: c, resolveKeyframes: u, preUpdate: d, update: h, preRender: f, render: p, postRender: m } = o, y = () => {
610
- const C = Ct.useManualTiming ? i.timestamp : performance.now();
611
- n = !1, Ct.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(C - i.timestamp, Aa), 1)), i.timestamp = C, i.isProcessing = !0, a.process(i), c.process(i), u.process(i), d.process(i), h.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(y));
612
- }, k = () => {
609
+ }, r = () => n = !0, o = ke.reduce((v, T) => (v[T] = Pa(r, e ? T : void 0), v), {}), { setup: a, read: c, resolveKeyframes: u, preUpdate: d, update: h, preRender: f, render: p, postRender: m } = o, y = () => {
610
+ const v = wt.useManualTiming ? i.timestamp : performance.now();
611
+ n = !1, wt.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(v - i.timestamp, Aa), 1)), i.timestamp = v, i.isProcessing = !0, a.process(i), c.process(i), u.process(i), d.process(i), h.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(y));
612
+ }, w = () => {
613
613
  n = !0, s = !0, i.isProcessing || t(y);
614
614
  };
615
- return { schedule: we.reduce((C, T) => {
616
- const w = o[T];
617
- return C[T] = (j, S = !1, L = !1) => (n || k(), w.schedule(j, S, L)), C;
618
- }, {}), cancel: (C) => {
619
- for (let T = 0; T < we.length; T++)
620
- o[we[T]].cancel(C);
615
+ return { schedule: ke.reduce((v, T) => {
616
+ const k = o[T];
617
+ return v[T] = (L, M = !1, j = !1) => (n || w(), k.schedule(L, M, j)), v;
618
+ }, {}), cancel: (v) => {
619
+ for (let T = 0; T < ke.length; T++)
620
+ o[ke[T]].cancel(v);
621
621
  }, state: i, steps: o };
622
622
  }
623
- const { schedule: W, cancel: Tt, state: et, steps: Ue } = /* @__PURE__ */ wo(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ut, !0);
624
- let Le;
623
+ const { schedule: K, cancel: St, state: et, steps: Ue } = /* @__PURE__ */ wo(typeof requestAnimationFrame < "u" ? requestAnimationFrame : dt, !0);
624
+ let Te;
625
625
  function Va() {
626
- Le = void 0;
626
+ Te = void 0;
627
627
  }
628
628
  const ot = {
629
- now: () => (Le === void 0 && ot.set(et.isProcessing || Ct.useManualTiming ? et.timestamp : performance.now()), Le),
629
+ now: () => (Te === void 0 && ot.set(et.isProcessing || wt.useManualTiming ? et.timestamp : performance.now()), Te),
630
630
  set: (t) => {
631
- Le = t, queueMicrotask(Va);
631
+ Te = t, queueMicrotask(Va);
632
632
  }
633
- }, ko = (t) => (e) => typeof e == "string" && e.startsWith(t), Kn = /* @__PURE__ */ ko("--"), Ra = /* @__PURE__ */ ko("var(--"), Wn = (t) => Ra(t) ? Da.test(t.split("/*")[0].trim()) : !1, Da = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Xt = {
633
+ }, ko = (t) => (e) => typeof e == "string" && e.startsWith(t), Kn = /* @__PURE__ */ ko("--"), Ra = /* @__PURE__ */ ko("var(--"), Wn = (t) => Ra(t) ? Da.test(t.split("/*")[0].trim()) : !1, Da = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, qt = {
634
634
  test: (t) => typeof t == "number",
635
635
  parse: parseFloat,
636
636
  transform: (t) => t
637
637
  }, ue = {
638
- ...Xt,
639
- transform: (t) => xt(0, 1, t)
640
- }, ke = {
641
- ...Xt,
638
+ ...qt,
639
+ transform: (t) => vt(0, 1, t)
640
+ }, je = {
641
+ ...qt,
642
642
  default: 1
643
643
  }, oe = (t) => Math.round(t * 1e5) / 1e5, $n = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
644
644
  function Ea(t) {
@@ -654,10 +654,10 @@ const _a = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
654
654
  [n]: parseFloat(o),
655
655
  alpha: a !== void 0 ? parseFloat(a) : 1
656
656
  };
657
- }, Na = (t) => xt(0, 255, t), He = {
658
- ...Xt,
657
+ }, Na = (t) => vt(0, 255, t), He = {
658
+ ...qt,
659
659
  transform: (t) => Math.round(Na(t))
660
- }, Dt = {
660
+ }, Et = {
661
661
  test: /* @__PURE__ */ Un("rgb", "red"),
662
662
  parse: /* @__PURE__ */ jo("red", "green", "blue"),
663
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)) + ")"
@@ -674,26 +674,26 @@ function Ba(t) {
674
674
  const on = {
675
675
  test: /* @__PURE__ */ Un("#"),
676
676
  parse: Ba,
677
- transform: Dt.transform
677
+ transform: Et.transform
678
678
  }, xe = /* @__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
- }), jt = /* @__PURE__ */ xe("deg"), gt = /* @__PURE__ */ xe("%"), A = /* @__PURE__ */ xe("px"), Ia = /* @__PURE__ */ xe("vh"), Oa = /* @__PURE__ */ xe("vw"), As = {
683
- ...gt,
684
- parse: (t) => gt.parse(t) / 100,
685
- transform: (t) => gt.transform(t * 100)
686
- }, Bt = {
682
+ }), Lt = /* @__PURE__ */ xe("deg"), yt = /* @__PURE__ */ xe("%"), V = /* @__PURE__ */ xe("px"), Ia = /* @__PURE__ */ xe("vh"), Oa = /* @__PURE__ */ xe("vw"), As = {
683
+ ...yt,
684
+ parse: (t) => yt.parse(t) / 100,
685
+ transform: (t) => yt.transform(t * 100)
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)) + ")"
690
- }, q = {
691
- test: (t) => Dt.test(t) || on.test(t) || Bt.test(t),
692
- parse: (t) => Dt.test(t) ? Dt.parse(t) : Bt.test(t) ? Bt.parse(t) : on.parse(t),
693
- transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Dt.transform(t) : Bt.transform(t),
689
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + yt.transform(oe(e)) + ", " + yt.transform(oe(n)) + ", " + oe(ue.transform(s)) + ")"
690
+ }, J = {
691
+ test: (t) => Et.test(t) || on.test(t) || It.test(t),
692
+ parse: (t) => Et.test(t) ? Et.parse(t) : It.test(t) ? It.parse(t) : on.parse(t),
693
+ transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Et.transform(t) : It.transform(t),
694
694
  getAnimatableNone: (t) => {
695
- const e = q.parse(t);
696
- return e.alpha = 0, q.transform(e);
695
+ const e = J.parse(t);
696
+ return e.alpha = 0, J.transform(e);
697
697
  }
698
698
  }, Fa = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
699
699
  function za(t) {
@@ -707,7 +707,7 @@ function de(t) {
707
707
  var: []
708
708
  }, i = [];
709
709
  let r = 0;
710
- const a = e.replace($a, (c) => (q.test(c) ? (s.color.push(r), i.push(Lo), n.push(q.parse(c))) : c.startsWith(Wa) ? (s.var.push(r), i.push(Ka), n.push(c)) : (s.number.push(r), i.push(bo), n.push(parseFloat(c))), ++r, Vs)).split(Vs);
710
+ const a = e.replace($a, (c) => (J.test(c) ? (s.color.push(r), i.push(Lo), n.push(J.parse(c))) : c.startsWith(Wa) ? (s.var.push(r), i.push(Ka), n.push(c)) : (s.number.push(r), i.push(bo), n.push(parseFloat(c))), ++r, Vs)).split(Vs);
711
711
  return { values: n, split: a, indexes: s, types: i };
712
712
  }
713
713
  function To(t) {
@@ -720,17 +720,17 @@ function Mo(t) {
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 += oe(i[o]) : a === Lo ? r += J.transform(i[o]) : r += i[o];
724
724
  }
725
725
  return r;
726
726
  };
727
727
  }
728
- const Ua = (t) => typeof t == "number" ? 0 : q.test(t) ? q.getAnimatableNone(t) : t;
728
+ const Ua = (t) => typeof t == "number" ? 0 : J.test(t) ? J.getAnimatableNone(t) : t;
729
729
  function Ha(t) {
730
730
  const e = To(t);
731
731
  return Mo(t)(e.map(Ua));
732
732
  }
733
- const Mt = {
733
+ const Pt = {
734
734
  test: za,
735
735
  parse: To,
736
736
  createTransformer: Mo,
@@ -755,26 +755,26 @@ function Za({ hue: t, saturation: e, lightness: n, alpha: s }) {
755
755
  alpha: s
756
756
  };
757
757
  }
758
- function Pe(t, e) {
758
+ function Ae(t, e) {
759
759
  return (n) => n > 0 ? e : t;
760
760
  }
761
761
  const H = (t, e, n) => t + (e - t) * n, Ge = (t, e, n) => {
762
762
  const s = t * t, i = n * (e * e - s) + s;
763
763
  return i < 0 ? 0 : Math.sqrt(i);
764
- }, Ga = [on, Dt, Bt], Ya = (t) => Ga.find((e) => e.test(t));
764
+ }, Ga = [on, Et, It], Ya = (t) => Ga.find((e) => e.test(t));
765
765
  function Rs(t) {
766
766
  const e = Ya(t);
767
- if (Yt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
767
+ if (Xt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
768
768
  return !1;
769
769
  let n = e.parse(t);
770
- return e === Bt && (n = Za(n)), n;
770
+ return e === It && (n = Za(n)), n;
771
771
  }
772
772
  const Ds = (t, e) => {
773
773
  const n = Rs(t), s = Rs(e);
774
774
  if (!n || !s)
775
- return Pe(t, e);
775
+ return Ae(t, e);
776
776
  const i = { ...n };
777
- return (r) => (i.red = Ge(n.red, s.red, r), i.green = Ge(n.green, s.green, r), i.blue = Ge(n.blue, s.blue, r), i.alpha = H(n.alpha, s.alpha, r), Dt.transform(i));
777
+ return (r) => (i.red = Ge(n.red, s.red, r), i.green = Ge(n.green, s.green, r), i.blue = Ge(n.blue, s.blue, r), i.alpha = H(n.alpha, s.alpha, r), Et.transform(i));
778
778
  }, rn = /* @__PURE__ */ new Set(["none", "hidden"]);
779
779
  function Xa(t, e) {
780
780
  return rn.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
@@ -783,7 +783,7 @@ function qa(t, e) {
783
783
  return (n) => H(t, e, n);
784
784
  }
785
785
  function Hn(t) {
786
- return typeof t == "number" ? qa : typeof t == "string" ? Wn(t) ? Pe : q.test(t) ? Ds : t1 : Array.isArray(t) ? So : typeof t == "object" ? q.test(t) ? Ds : Ja : Pe;
786
+ return typeof t == "number" ? qa : typeof t == "string" ? Wn(t) ? Ae : J.test(t) ? Ds : t1 : Array.isArray(t) ? So : typeof t == "object" ? J.test(t) ? Ds : Ja : Ae;
787
787
  }
788
788
  function So(t, e) {
789
789
  const n = [...t], s = n.length, i = t.map((r, o) => Hn(r)(r, e[o]));
@@ -812,8 +812,8 @@ function Qa(t, e) {
812
812
  return n;
813
813
  }
814
814
  const t1 = (t, e) => {
815
- const n = Mt.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) : (Yt(!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.`), Pe(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));
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);
@@ -821,8 +821,8 @@ function Po(t, e, n) {
821
821
  const e1 = (t) => {
822
822
  const e = ({ timestamp: n }) => t(n);
823
823
  return {
824
- start: (n = !0) => W.update(e, n),
825
- stop: () => Tt(e),
824
+ start: (n = !0) => K.update(e, n),
825
+ stop: () => St(e),
826
826
  /**
827
827
  * If we're processing this frame we can use the
828
828
  * framelocked timestamp to keep things in sync.
@@ -835,21 +835,21 @@ const e1 = (t) => {
835
835
  for (let r = 0; r < i; r++)
836
836
  s += Math.round(t(r / (i - 1)) * 1e4) / 1e4 + ", ";
837
837
  return `linear(${s.substring(0, s.length - 2)})`;
838
- }, Ae = 2e4;
838
+ }, Ve = 2e4;
839
839
  function Zn(t) {
840
840
  let e = 0;
841
841
  const n = 50;
842
842
  let s = t.next(e);
843
- for (; !s.done && e < Ae; )
843
+ for (; !s.done && e < Ve; )
844
844
  e += n, s = t.next(e);
845
- return e >= Ae ? 1 / 0 : e;
845
+ return e >= Ve ? 1 / 0 : e;
846
846
  }
847
847
  function n1(t, e = 100, n) {
848
- const s = n({ ...t, keyframes: [0, e] }), i = Math.min(Zn(s), Ae);
848
+ const s = n({ ...t, keyframes: [0, e] }), i = Math.min(Zn(s), Ve);
849
849
  return {
850
850
  type: "keyframes",
851
851
  ease: (r) => s.next(i * r).value / e,
852
- duration: /* @__PURE__ */ mt(i)
852
+ duration: /* @__PURE__ */ gt(i)
853
853
  };
854
854
  }
855
855
  const s1 = 5;
@@ -888,9 +888,9 @@ const U = {
888
888
  }, Ye = 1e-3;
889
889
  function i1({ duration: t = U.duration, bounce: e = U.bounce, velocity: n = U.velocity, mass: s = U.mass }) {
890
890
  let i, r;
891
- Yt(t <= /* @__PURE__ */ ht(U.maxDuration), "Spring duration must be 10 seconds or less");
891
+ Xt(t <= /* @__PURE__ */ ft(U.maxDuration), "Spring duration must be 10 seconds or less");
892
892
  let o = 1 - e;
893
- o = xt(U.minDamping, U.maxDamping, o), t = xt(U.minDuration, U.maxDuration, /* @__PURE__ */ mt(t)), o < 1 ? (i = (u) => {
893
+ o = vt(U.minDamping, U.maxDamping, o), t = vt(U.minDuration, U.maxDuration, /* @__PURE__ */ gt(t)), o < 1 ? (i = (u) => {
894
894
  const d = u * o, h = d * t, f = d - n, p = an(u, o), m = Math.exp(-h);
895
895
  return Ye - f / p * m;
896
896
  }, r = (u) => {
@@ -904,7 +904,7 @@ function i1({ duration: t = U.duration, bounce: e = U.bounce, velocity: n = U.ve
904
904
  return d * h;
905
905
  });
906
906
  const a = 5 / t, c = r1(i, r, a);
907
- if (t = /* @__PURE__ */ ht(t), isNaN(c))
907
+ if (t = /* @__PURE__ */ ft(t), isNaN(c))
908
908
  return {
909
909
  stiffness: U.stiffness,
910
910
  damping: U.damping,
@@ -944,7 +944,7 @@ function c1(t) {
944
944
  };
945
945
  if (!Es(t, l1) && Es(t, a1))
946
946
  if (t.visualDuration) {
947
- const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * xt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
947
+ const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * vt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
948
948
  e = {
949
949
  ...e,
950
950
  mass: U.mass,
@@ -961,7 +961,7 @@ function c1(t) {
961
961
  }
962
962
  return e;
963
963
  }
964
- function Ve(t = U.visualDuration, e = U.bounce) {
964
+ function Re(t = U.visualDuration, e = U.bounce) {
965
965
  const n = typeof t != "object" ? {
966
966
  visualDuration: t,
967
967
  keyframes: [0, 1],
@@ -970,69 +970,69 @@ function Ve(t = U.visualDuration, e = U.bounce) {
970
970
  let { restSpeed: s, restDelta: i } = n;
971
971
  const r = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: r }, { stiffness: c, damping: u, mass: d, duration: h, velocity: f, isResolvedFromDuration: p } = c1({
972
972
  ...n,
973
- velocity: -/* @__PURE__ */ mt(n.velocity || 0)
974
- }), m = f || 0, y = u / (2 * Math.sqrt(c * d)), k = o - r, v = /* @__PURE__ */ mt(Math.sqrt(c / d)), x = Math.abs(k) < 5;
973
+ velocity: -/* @__PURE__ */ gt(n.velocity || 0)
974
+ }), m = f || 0, y = u / (2 * Math.sqrt(c * d)), w = o - r, C = /* @__PURE__ */ gt(Math.sqrt(c / d)), x = Math.abs(w) < 5;
975
975
  s || (s = x ? U.restSpeed.granular : U.restSpeed.default), i || (i = x ? U.restDelta.granular : U.restDelta.default);
976
- let C;
976
+ let v;
977
977
  if (y < 1) {
978
- const w = an(v, y);
979
- C = (j) => {
980
- const S = Math.exp(-y * v * j);
981
- return o - S * ((m + y * v * k) / w * Math.sin(w * j) + k * Math.cos(w * j));
978
+ const k = an(C, y);
979
+ v = (L) => {
980
+ const M = Math.exp(-y * C * L);
981
+ return o - M * ((m + y * C * w) / k * Math.sin(k * L) + w * Math.cos(k * L));
982
982
  };
983
983
  } else if (y === 1)
984
- C = (w) => o - Math.exp(-v * w) * (k + (m + v * k) * w);
984
+ v = (k) => o - Math.exp(-C * k) * (w + (m + C * w) * k);
985
985
  else {
986
- const w = v * Math.sqrt(y * y - 1);
987
- C = (j) => {
988
- const S = Math.exp(-y * v * j), L = Math.min(w * j, 300);
989
- return o - S * ((m + y * v * k) * Math.sinh(L) + w * k * Math.cosh(L)) / w;
986
+ const k = C * Math.sqrt(y * y - 1);
987
+ v = (L) => {
988
+ const M = Math.exp(-y * C * L), j = Math.min(k * L, 300);
989
+ return o - M * ((m + y * C * w) * Math.sinh(j) + k * w * Math.cosh(j)) / k;
990
990
  };
991
991
  }
992
992
  const T = {
993
993
  calculatedDuration: p && h || null,
994
- next: (w) => {
995
- const j = C(w);
994
+ next: (k) => {
995
+ const L = v(k);
996
996
  if (p)
997
- a.done = w >= h;
997
+ a.done = k >= h;
998
998
  else {
999
- let S = w === 0 ? m : 0;
1000
- y < 1 && (S = w === 0 ? /* @__PURE__ */ ht(m) : Vo(C, w, j));
1001
- const L = Math.abs(S) <= s, D = Math.abs(o - j) <= i;
1002
- a.done = L && D;
999
+ let M = k === 0 ? m : 0;
1000
+ y < 1 && (M = k === 0 ? /* @__PURE__ */ ft(m) : Vo(v, k, L));
1001
+ const j = Math.abs(M) <= s, _ = Math.abs(o - L) <= i;
1002
+ a.done = j && _;
1003
1003
  }
1004
- return a.value = a.done ? o : j, a;
1004
+ return a.value = a.done ? o : L, a;
1005
1005
  },
1006
1006
  toString: () => {
1007
- const w = Math.min(Zn(T), Ae), j = Ao((S) => T.next(w * S).value, w, 30);
1008
- return w + "ms " + j;
1007
+ const k = Math.min(Zn(T), Ve), L = Ao((M) => T.next(k * M).value, k, 30);
1008
+ return k + "ms " + L;
1009
1009
  },
1010
1010
  toTransition: () => {
1011
1011
  }
1012
1012
  };
1013
1013
  return T;
1014
1014
  }
1015
- Ve.applyToOptions = (t) => {
1016
- const e = n1(t, 100, Ve);
1017
- return t.ease = e.ease, t.duration = /* @__PURE__ */ ht(e.duration), t.type = "keyframes", t;
1015
+ Re.applyToOptions = (t) => {
1016
+ const e = n1(t, 100, Re);
1017
+ return t.ease = e.ease, t.duration = /* @__PURE__ */ ft(e.duration), t.type = "keyframes", t;
1018
1018
  };
1019
1019
  function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: o, min: a, max: c, restDelta: u = 0.5, restSpeed: d }) {
1020
1020
  const h = t[0], f = {
1021
1021
  done: !1,
1022
1022
  value: h
1023
- }, p = (L) => a !== void 0 && L < a || c !== void 0 && L > c, m = (L) => a === void 0 ? c : c === void 0 || Math.abs(a - L) < Math.abs(c - L) ? a : c;
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;
1024
1024
  let y = n * e;
1025
- const k = h + y, v = o === void 0 ? k : o(k);
1026
- v !== k && (y = v - h);
1027
- const x = (L) => -y * Math.exp(-L / s), C = (L) => v + x(L), T = (L) => {
1028
- const D = x(L), N = C(L);
1029
- f.done = Math.abs(D) <= u, f.value = f.done ? v : N;
1025
+ const w = h + y, C = o === void 0 ? w : o(w);
1026
+ C !== w && (y = C - h);
1027
+ const x = (j) => -y * Math.exp(-j / s), v = (j) => C + x(j), T = (j) => {
1028
+ const _ = x(j), N = v(j);
1029
+ f.done = Math.abs(_) <= u, f.value = f.done ? C : N;
1030
1030
  };
1031
- let w, j;
1032
- const S = (L) => {
1033
- p(f.value) && (w = L, j = Ve({
1031
+ let k, L;
1032
+ const M = (j) => {
1033
+ p(f.value) && (k = j, L = Re({
1034
1034
  keyframes: [f.value, m(f.value)],
1035
- velocity: Vo(C, L, f.value),
1035
+ velocity: Vo(v, j, f.value),
1036
1036
  // TODO: This should be passing * 1000
1037
1037
  damping: i,
1038
1038
  stiffness: r,
@@ -1040,20 +1040,20 @@ function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1040
1040
  restSpeed: d
1041
1041
  }));
1042
1042
  };
1043
- return S(0), {
1043
+ return M(0), {
1044
1044
  calculatedDuration: null,
1045
- next: (L) => {
1046
- let D = !1;
1047
- return !j && w === void 0 && (D = !0, T(L), S(L)), w !== void 0 && L >= w ? j.next(L - w) : (!D && T(L), f);
1045
+ next: (j) => {
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);
1048
1048
  }
1049
1049
  };
1050
1050
  }
1051
1051
  function u1(t, e, n) {
1052
- const s = [], i = n || Ct.mix || Po, r = t.length - 1;
1052
+ const s = [], i = n || wt.mix || Po, r = t.length - 1;
1053
1053
  for (let o = 0; o < r; o++) {
1054
1054
  let a = i(t[o], t[o + 1]);
1055
1055
  if (e) {
1056
- const c = Array.isArray(e) ? e[o] || ut : e;
1056
+ const c = Array.isArray(e) ? e[o] || dt : e;
1057
1057
  a = ge(c, a);
1058
1058
  }
1059
1059
  s.push(a);
@@ -1062,7 +1062,7 @@ function u1(t, e, n) {
1062
1062
  }
1063
1063
  function d1(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1064
1064
  const r = t.length;
1065
- if (vt(r === e.length, "Both input and output ranges must be the same length"), r === 1)
1065
+ if (Ct(r === e.length, "Both input and output ranges must be the same length"), r === 1)
1066
1066
  return () => e[0];
1067
1067
  if (r === 2 && e[0] === e[1])
1068
1068
  return () => e[1];
@@ -1078,7 +1078,7 @@ function d1(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
1078
1078
  const f = /* @__PURE__ */ ce(t[h], t[h + 1], d);
1079
1079
  return a[h](f);
1080
1080
  };
1081
- return n ? (d) => u(xt(t[0], t[r - 1], d)) : u;
1081
+ return n ? (d) => u(vt(t[0], t[r - 1], d)) : u;
1082
1082
  }
1083
1083
  function h1(t, e) {
1084
1084
  const n = t[t.length - 1];
@@ -1097,7 +1097,7 @@ function p1(t, e) {
1097
1097
  function m1(t, e) {
1098
1098
  return t.map(() => e || vo).splice(0, t.length - 1);
1099
1099
  }
1100
- function It({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
1100
+ function Ot({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
1101
1101
  const i = Ma(s) ? s.map(Ss) : Ss(s), r = {
1102
1102
  done: !1,
1103
1103
  value: e[0]
@@ -1122,9 +1122,9 @@ function Gn(t, { repeat: e, repeatType: n = "loop" }, s, i = 1) {
1122
1122
  const y1 = {
1123
1123
  decay: ln,
1124
1124
  inertia: ln,
1125
- tween: It,
1126
- keyframes: It,
1127
- spring: Ve
1125
+ tween: Ot,
1126
+ keyframes: Ot,
1127
+ spring: Re
1128
1128
  };
1129
1129
  function Ro(t) {
1130
1130
  typeof t.type == "string" && (t.type = y1[t.type]);
@@ -1164,10 +1164,10 @@ class Xn extends Yn {
1164
1164
  initAnimation() {
1165
1165
  const { options: e } = this;
1166
1166
  Ro(e);
1167
- const { type: n = It, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: o = 0 } = e;
1167
+ const { type: n = Ot, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: o = 0 } = e;
1168
1168
  let { keyframes: a } = e;
1169
- const c = n || It;
1170
- process.env.NODE_ENV !== "production" && c !== It && vt(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), c !== It && typeof a[0] != "number" && (this.mixKeyframes = ge(x1, Po(a[0], a[1])), a = [0, 100]);
1169
+ const c = n || Ot;
1170
+ process.env.NODE_ENV !== "production" && c !== Ot && Ct(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]);
1171
1171
  const u = c({ ...e, keyframes: a });
1172
1172
  r === "mirror" && (this.mirroredGenerator = c({
1173
1173
  ...e,
@@ -1185,22 +1185,22 @@ class Xn extends Yn {
1185
1185
  const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: o, resolvedDuration: a, calculatedDuration: c } = this;
1186
1186
  if (this.startTime === null)
1187
1187
  return s.next(0);
1188
- const { delay: u = 0, keyframes: d, repeat: h, repeatType: f, repeatDelay: p, type: m, onUpdate: y, finalKeyframe: k } = this.options;
1188
+ const { delay: u = 0, keyframes: d, repeat: h, repeatType: f, repeatDelay: p, type: m, onUpdate: y, finalKeyframe: w } = this.options;
1189
1189
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - i / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
1190
- const v = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? v < 0 : v > i;
1191
- this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
1192
- let C = this.currentTime, T = s;
1190
+ const C = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? C < 0 : C > i;
1191
+ this.currentTime = Math.max(C, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
1192
+ let v = this.currentTime, T = s;
1193
1193
  if (h) {
1194
- const L = Math.min(this.currentTime, i) / a;
1195
- let D = Math.floor(L), N = L % 1;
1196
- !N && L >= 1 && (N = 1), N === 1 && D--, D = Math.min(D, h + 1), !!(D % 2) && (f === "reverse" ? (N = 1 - N, p && (N -= p / a)) : f === "mirror" && (T = o)), C = xt(0, 1, N) * a;
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)), v = vt(0, 1, N) * a;
1197
1197
  }
1198
- const w = x ? { done: !1, value: d[0] } : T.next(C);
1199
- r && (w.value = r(w.value));
1200
- let { done: j } = w;
1201
- !x && c !== null && (j = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1202
- const S = this.holdTime === null && (this.state === "finished" || this.state === "running" && j);
1203
- return S && m !== ln && (w.value = Gn(d, this.options, k, this.speed)), y && y(w.value), S && this.finish(), w;
1198
+ const k = x ? { done: !1, value: d[0] } : T.next(v);
1199
+ r && (k.value = r(k.value));
1200
+ let { done: L } = k;
1201
+ !x && c !== null && (L = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1202
+ const M = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
1203
+ return M && m !== ln && (k.value = Gn(d, this.options, w, this.speed)), y && y(k.value), M && this.finish(), k;
1204
1204
  }
1205
1205
  /**
1206
1206
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -1211,13 +1211,13 @@ class Xn extends Yn {
1211
1211
  return this.finished.then(e, n);
1212
1212
  }
1213
1213
  get duration() {
1214
- return /* @__PURE__ */ mt(this.calculatedDuration);
1214
+ return /* @__PURE__ */ gt(this.calculatedDuration);
1215
1215
  }
1216
1216
  get time() {
1217
- return /* @__PURE__ */ mt(this.currentTime);
1217
+ return /* @__PURE__ */ gt(this.currentTime);
1218
1218
  }
1219
1219
  set time(e) {
1220
- e = /* @__PURE__ */ ht(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
1220
+ e = /* @__PURE__ */ ft(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
1221
1221
  }
1222
1222
  get speed() {
1223
1223
  return this.playbackSpeed;
@@ -1225,7 +1225,7 @@ class Xn extends Yn {
1225
1225
  set speed(e) {
1226
1226
  this.updateTime(ot.now());
1227
1227
  const n = this.playbackSpeed !== e;
1228
- this.playbackSpeed = e, n && (this.time = /* @__PURE__ */ mt(this.currentTime));
1228
+ this.playbackSpeed = e, n && (this.time = /* @__PURE__ */ gt(this.currentTime));
1229
1229
  }
1230
1230
  play() {
1231
1231
  if (this.isStopped)
@@ -1264,8 +1264,8 @@ function v1(t) {
1264
1264
  for (let e = 1; e < t.length; e++)
1265
1265
  t[e] ?? (t[e] = t[e - 1]);
1266
1266
  }
1267
- const Et = (t) => t * 180 / Math.PI, cn = (t) => {
1268
- const e = Et(Math.atan2(t[1], t[0]));
1267
+ const _t = (t) => t * 180 / Math.PI, cn = (t) => {
1268
+ const e = _t(Math.atan2(t[1], t[0]));
1269
1269
  return un(e);
1270
1270
  }, C1 = {
1271
1271
  x: 4,
@@ -1277,8 +1277,8 @@ const Et = (t) => t * 180 / Math.PI, cn = (t) => {
1277
1277
  scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
1278
1278
  rotate: cn,
1279
1279
  rotateZ: cn,
1280
- skewX: (t) => Et(Math.atan(t[1])),
1281
- skewY: (t) => Et(Math.atan(t[2])),
1280
+ skewX: (t) => _t(Math.atan(t[1])),
1281
+ skewY: (t) => _t(Math.atan(t[2])),
1282
1282
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
1283
1283
  }, un = (t) => (t = t % 360, t < 0 && (t += 360), t), _s = cn, Ns = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Bs = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), w1 = {
1284
1284
  x: 12,
@@ -1290,12 +1290,12 @@ const Et = (t) => t * 180 / Math.PI, cn = (t) => {
1290
1290
  scaleX: Ns,
1291
1291
  scaleY: Bs,
1292
1292
  scale: (t) => (Ns(t) + Bs(t)) / 2,
1293
- rotateX: (t) => un(Et(Math.atan2(t[6], t[5]))),
1294
- rotateY: (t) => un(Et(Math.atan2(-t[2], t[0]))),
1293
+ rotateX: (t) => un(_t(Math.atan2(t[6], t[5]))),
1294
+ rotateY: (t) => un(_t(Math.atan2(-t[2], t[0]))),
1295
1295
  rotateZ: _s,
1296
1296
  rotate: _s,
1297
- skewX: (t) => Et(Math.atan(t[4])),
1298
- skewY: (t) => Et(Math.atan(t[1])),
1297
+ skewX: (t) => _t(Math.atan(t[4])),
1298
+ skewY: (t) => _t(Math.atan(t[1])),
1299
1299
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
1300
1300
  };
1301
1301
  function dn(t) {
@@ -1324,7 +1324,7 @@ const k1 = (t, e) => {
1324
1324
  function j1(t) {
1325
1325
  return parseFloat(t.trim());
1326
1326
  }
1327
- const qt = [
1327
+ const Jt = [
1328
1328
  "transformPerspective",
1329
1329
  "x",
1330
1330
  "y",
@@ -1342,7 +1342,7 @@ const qt = [
1342
1342
  "skew",
1343
1343
  "skewX",
1344
1344
  "skewY"
1345
- ], Jt = new Set(qt), Is = (t) => t === Xt || t === A, b1 = /* @__PURE__ */ new Set(["x", "y", "z"]), L1 = qt.filter((t) => !b1.has(t));
1345
+ ], Qt = new Set(Jt), Is = (t) => t === qt || t === V, b1 = /* @__PURE__ */ new Set(["x", "y", "z"]), L1 = Jt.filter((t) => !b1.has(t));
1346
1346
  function T1(t) {
1347
1347
  const e = [];
1348
1348
  return L1.forEach((n) => {
@@ -1350,7 +1350,7 @@ function T1(t) {
1350
1350
  s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
1351
1351
  }), e;
1352
1352
  }
1353
- const _t = {
1353
+ const Nt = {
1354
1354
  // Dimensions
1355
1355
  width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
1356
1356
  height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
@@ -1362,13 +1362,13 @@ const _t = {
1362
1362
  x: (t, { transform: e }) => hn(e, "x"),
1363
1363
  y: (t, { transform: e }) => hn(e, "y")
1364
1364
  };
1365
- _t.translateX = _t.x;
1366
- _t.translateY = _t.y;
1367
- const Nt = /* @__PURE__ */ new Set();
1365
+ Nt.translateX = Nt.x;
1366
+ Nt.translateY = Nt.y;
1367
+ const Bt = /* @__PURE__ */ new Set();
1368
1368
  let fn = !1, pn = !1, mn = !1;
1369
1369
  function Do() {
1370
1370
  if (pn) {
1371
- const t = Array.from(Nt).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1371
+ const t = Array.from(Bt).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1372
1372
  e.forEach((s) => {
1373
1373
  const i = T1(s);
1374
1374
  i.length && (n.set(s, i), s.render());
@@ -1382,10 +1382,10 @@ function Do() {
1382
1382
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
1383
1383
  });
1384
1384
  }
1385
- pn = !1, fn = !1, Nt.forEach((t) => t.complete(mn)), Nt.clear();
1385
+ pn = !1, fn = !1, Bt.forEach((t) => t.complete(mn)), Bt.clear();
1386
1386
  }
1387
1387
  function Eo() {
1388
- Nt.forEach((t) => {
1388
+ Bt.forEach((t) => {
1389
1389
  t.readKeyframes(), t.needsMeasurement && (pn = !0);
1390
1390
  });
1391
1391
  }
@@ -1397,7 +1397,7 @@ class qn {
1397
1397
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = o;
1398
1398
  }
1399
1399
  scheduleResolve() {
1400
- this.state = "scheduled", this.isAsync ? (Nt.add(this), fn || (fn = !0, W.read(Eo), W.resolveKeyframes(Do))) : (this.readKeyframes(), this.complete());
1400
+ this.state = "scheduled", this.isAsync ? (Bt.add(this), fn || (fn = !0, K.read(Eo), K.resolveKeyframes(Do))) : (this.readKeyframes(), this.complete());
1401
1401
  }
1402
1402
  readKeyframes() {
1403
1403
  const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
@@ -1422,10 +1422,10 @@ class qn {
1422
1422
  measureEndState() {
1423
1423
  }
1424
1424
  complete(e = !1) {
1425
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Nt.delete(this);
1425
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Bt.delete(this);
1426
1426
  }
1427
1427
  cancel() {
1428
- this.state === "scheduled" && (Nt.delete(this), this.state = "pending");
1428
+ this.state === "scheduled" && (Bt.delete(this), this.state = "pending");
1429
1429
  }
1430
1430
  resume() {
1431
1431
  this.state === "pending" && this.scheduleResolve();
@@ -1490,7 +1490,7 @@ class _1 extends Yn {
1490
1490
  if (super(), this.finishedTime = null, this.isStopped = !1, !e)
1491
1491
  return;
1492
1492
  const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: o = !1, finalKeyframe: a, onComplete: c } = e;
1493
- this.isPseudoElement = !!r, this.allowFlatten = o, this.options = e, vt(typeof e.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1493
+ this.isPseudoElement = !!r, this.allowFlatten = o, this.options = e, Ct(typeof e.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1494
1494
  const u = E1(e);
1495
1495
  this.animation = D1(n, s, i, u, r), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1496
1496
  if (this.finishedTime = this.time, !r) {
@@ -1539,13 +1539,13 @@ class _1 extends Yn {
1539
1539
  }
1540
1540
  get duration() {
1541
1541
  const e = this.animation.effect?.getComputedTiming?.().duration || 0;
1542
- return /* @__PURE__ */ mt(Number(e));
1542
+ return /* @__PURE__ */ gt(Number(e));
1543
1543
  }
1544
1544
  get time() {
1545
- return /* @__PURE__ */ mt(Number(this.animation.currentTime) || 0);
1545
+ return /* @__PURE__ */ gt(Number(this.animation.currentTime) || 0);
1546
1546
  }
1547
1547
  set time(e) {
1548
- this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ ht(e);
1548
+ this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ ft(e);
1549
1549
  }
1550
1550
  /**
1551
1551
  * The playback speed of the animation.
@@ -1570,7 +1570,7 @@ class _1 extends Yn {
1570
1570
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1571
1571
  */
1572
1572
  attachTimeline({ timeline: e, observe: n }) {
1573
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && A1() ? (this.animation.timeline = e, ut) : n(this);
1573
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && A1() ? (this.animation.timeline = e, dt) : n(this);
1574
1574
  }
1575
1575
  }
1576
1576
  const Io = {
@@ -1608,12 +1608,12 @@ class I1 extends _1 {
1608
1608
  const a = new Xn({
1609
1609
  ...o,
1610
1610
  autoplay: !1
1611
- }), c = /* @__PURE__ */ ht(this.finishedTime ?? this.time);
1611
+ }), c = /* @__PURE__ */ ft(this.finishedTime ?? this.time);
1612
1612
  n.setWithVelocity(a.sample(c - Fs).value, a.sample(c).value, Fs), a.stop();
1613
1613
  }
1614
1614
  }
1615
1615
  const zs = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1616
- (Mt.test(t) || t === "0") && // And it contains numbers and/or colors
1616
+ (Pt.test(t) || t === "0") && // And it contains numbers and/or colors
1617
1617
  !t.startsWith("url("));
1618
1618
  function O1(t) {
1619
1619
  const e = t[0];
@@ -1630,7 +1630,7 @@ function F1(t, e, n, s) {
1630
1630
  if (e === "display" || e === "visibility")
1631
1631
  return !0;
1632
1632
  const r = t[t.length - 1], o = zs(i, e), a = zs(r, e);
1633
- return Yt(o === a, `You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`), !o || !a ? !1 : O1(t) || (n === "spring" || Bo(n)) && s;
1633
+ return Xt(o === a, `You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`), !o || !a ? !1 : O1(t) || (n === "spring" || Bo(n)) && s;
1634
1634
  }
1635
1635
  function Jn(t) {
1636
1636
  return ao(t) && "offsetHeight" in t;
@@ -1672,12 +1672,12 @@ class U1 extends Yn {
1672
1672
  element: d,
1673
1673
  ...h
1674
1674
  }, p = d?.KeyframeResolver || qn;
1675
- this.keyframeResolver = new p(a, (m, y, k) => this.onKeyframesResolved(m, y, f, !k), c, u, d), this.keyframeResolver?.scheduleResolve();
1675
+ this.keyframeResolver = new p(a, (m, y, w) => this.onKeyframesResolved(m, y, f, !w), c, u, d), this.keyframeResolver?.scheduleResolve();
1676
1676
  }
1677
1677
  onKeyframesResolved(e, n, s, i) {
1678
1678
  this.keyframeResolver = void 0;
1679
1679
  const { name: r, type: o, velocity: a, delay: c, isHandoff: u, onUpdate: d } = s;
1680
- this.resolvedAt = ot.now(), F1(e, r, o, a) || ((Ct.instantAnimations || !c) && d?.(Gn(e, s, n)), e[0] = e[e.length - 1], s.duration = 0, s.repeat = 0);
1680
+ this.resolvedAt = ot.now(), F1(e, r, o, a) || ((wt.instantAnimations || !c) && d?.(Gn(e, s, n)), e[0] = e[e.length - 1], s.duration = 0, s.repeat = 0);
1681
1681
  const f = {
1682
1682
  startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > $1 ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1683
1683
  finalKeyframe: n,
@@ -1687,7 +1687,7 @@ class U1 extends Yn {
1687
1687
  ...f,
1688
1688
  element: f.motionValue.owner.current
1689
1689
  }) : new Xn(f);
1690
- p.finished.then(() => this.notifyFinished()).catch(ut), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
1690
+ p.finished.then(() => this.notifyFinished()).catch(dt), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
1691
1691
  }
1692
1692
  get finished() {
1693
1693
  return this._animation ? this.animation.finished : this._finished;
@@ -1749,7 +1749,7 @@ function Z1(t) {
1749
1749
  }
1750
1750
  const G1 = 4;
1751
1751
  function Oo(t, e, n = 1) {
1752
- vt(n <= G1, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1752
+ Ct(n <= G1, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1753
1753
  const [s, i] = Z1(t);
1754
1754
  if (!s)
1755
1755
  return;
@@ -1770,11 +1770,11 @@ const Fo = /* @__PURE__ */ new Set([
1770
1770
  "left",
1771
1771
  "right",
1772
1772
  "bottom",
1773
- ...qt
1773
+ ...Jt
1774
1774
  ]), Y1 = {
1775
1775
  test: (t) => t === "auto",
1776
1776
  parse: (t) => t
1777
- }, zo = (t) => (e) => e.test(t), Ko = [Xt, A, gt, jt, Oa, Ia, Y1], Ks = (t) => Ko.find(zo(t));
1777
+ }, zo = (t) => (e) => e.test(t), Ko = [qt, V, yt, Lt, Oa, Ia, Y1], Ks = (t) => Ko.find(zo(t));
1778
1778
  function X1(t) {
1779
1779
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || lo(t) : !0;
1780
1780
  }
@@ -1791,75 +1791,75 @@ function J1(t) {
1791
1791
  return s !== n && (r *= 100), e + "(" + r + i + ")";
1792
1792
  }
1793
1793
  const Q1 = /\b([a-z-]*)\(.*?\)/gu, gn = {
1794
- ...Mt,
1794
+ ...Pt,
1795
1795
  getAnimatableNone: (t) => {
1796
1796
  const e = t.match(Q1);
1797
1797
  return e ? e.map(J1).join(" ") : t;
1798
1798
  }
1799
1799
  }, Ws = {
1800
- ...Xt,
1800
+ ...qt,
1801
1801
  transform: Math.round
1802
1802
  }, tl = {
1803
- rotate: jt,
1804
- rotateX: jt,
1805
- rotateY: jt,
1806
- rotateZ: jt,
1807
- scale: ke,
1808
- scaleX: ke,
1809
- scaleY: ke,
1810
- scaleZ: ke,
1811
- skew: jt,
1812
- skewX: jt,
1813
- skewY: jt,
1814
- distance: A,
1815
- translateX: A,
1816
- translateY: A,
1817
- translateZ: A,
1818
- x: A,
1819
- y: A,
1820
- z: A,
1821
- perspective: A,
1822
- transformPerspective: A,
1803
+ rotate: Lt,
1804
+ rotateX: Lt,
1805
+ rotateY: Lt,
1806
+ rotateZ: Lt,
1807
+ scale: je,
1808
+ scaleX: je,
1809
+ scaleY: je,
1810
+ scaleZ: je,
1811
+ skew: Lt,
1812
+ skewX: Lt,
1813
+ skewY: Lt,
1814
+ distance: V,
1815
+ translateX: V,
1816
+ translateY: V,
1817
+ translateZ: V,
1818
+ x: V,
1819
+ y: V,
1820
+ z: V,
1821
+ perspective: V,
1822
+ transformPerspective: V,
1823
1823
  opacity: ue,
1824
1824
  originX: As,
1825
1825
  originY: As,
1826
- originZ: A
1826
+ originZ: V
1827
1827
  }, ts = {
1828
1828
  // Border props
1829
- borderWidth: A,
1830
- borderTopWidth: A,
1831
- borderRightWidth: A,
1832
- borderBottomWidth: A,
1833
- borderLeftWidth: A,
1834
- borderRadius: A,
1835
- radius: A,
1836
- borderTopLeftRadius: A,
1837
- borderTopRightRadius: A,
1838
- borderBottomRightRadius: A,
1839
- borderBottomLeftRadius: A,
1829
+ borderWidth: V,
1830
+ borderTopWidth: V,
1831
+ borderRightWidth: V,
1832
+ borderBottomWidth: V,
1833
+ borderLeftWidth: V,
1834
+ borderRadius: V,
1835
+ radius: V,
1836
+ borderTopLeftRadius: V,
1837
+ borderTopRightRadius: V,
1838
+ borderBottomRightRadius: V,
1839
+ borderBottomLeftRadius: V,
1840
1840
  // Positioning props
1841
- width: A,
1842
- maxWidth: A,
1843
- height: A,
1844
- maxHeight: A,
1845
- top: A,
1846
- right: A,
1847
- bottom: A,
1848
- left: A,
1841
+ width: V,
1842
+ maxWidth: V,
1843
+ height: V,
1844
+ maxHeight: V,
1845
+ top: V,
1846
+ right: V,
1847
+ bottom: V,
1848
+ left: V,
1849
1849
  // Spacing props
1850
- padding: A,
1851
- paddingTop: A,
1852
- paddingRight: A,
1853
- paddingBottom: A,
1854
- paddingLeft: A,
1855
- margin: A,
1856
- marginTop: A,
1857
- marginRight: A,
1858
- marginBottom: A,
1859
- marginLeft: A,
1850
+ padding: V,
1851
+ paddingTop: V,
1852
+ paddingRight: V,
1853
+ paddingBottom: V,
1854
+ paddingLeft: V,
1855
+ margin: V,
1856
+ marginTop: V,
1857
+ marginRight: V,
1858
+ marginBottom: V,
1859
+ marginLeft: V,
1860
1860
  // Misc
1861
- backgroundPositionX: A,
1862
- backgroundPositionY: A,
1861
+ backgroundPositionX: V,
1862
+ backgroundPositionY: V,
1863
1863
  ...tl,
1864
1864
  zIndex: Ws,
1865
1865
  // SVG
@@ -1869,23 +1869,23 @@ const Q1 = /\b([a-z-]*)\(.*?\)/gu, gn = {
1869
1869
  }, el = {
1870
1870
  ...ts,
1871
1871
  // Color props
1872
- color: q,
1873
- backgroundColor: q,
1874
- outlineColor: q,
1875
- fill: q,
1876
- stroke: q,
1872
+ color: J,
1873
+ backgroundColor: J,
1874
+ outlineColor: J,
1875
+ fill: J,
1876
+ stroke: J,
1877
1877
  // Border props
1878
- borderColor: q,
1879
- borderTopColor: q,
1880
- borderRightColor: q,
1881
- borderBottomColor: q,
1882
- borderLeftColor: q,
1878
+ borderColor: J,
1879
+ borderTopColor: J,
1880
+ borderRightColor: J,
1881
+ borderBottomColor: J,
1882
+ borderLeftColor: J,
1883
1883
  filter: gn,
1884
1884
  WebkitFilter: gn
1885
1885
  }, Wo = (t) => el[t];
1886
1886
  function $o(t, e) {
1887
1887
  let n = Wo(t);
1888
- return n !== gn && (n = Mt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1888
+ return n !== gn && (n = Pt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1889
1889
  }
1890
1890
  const nl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1891
1891
  function sl(t, e, n) {
@@ -1923,7 +1923,7 @@ class il extends qn {
1923
1923
  const u = e[c];
1924
1924
  typeof u == "string" && (e[c] = parseFloat(u));
1925
1925
  }
1926
- else _t[s] && (this.needsMeasurement = !0);
1926
+ else Nt[s] && (this.needsMeasurement = !0);
1927
1927
  }
1928
1928
  resolveNoneKeyframes() {
1929
1929
  const { unresolvedKeyframes: e, name: n } = this, s = [];
@@ -1935,7 +1935,7 @@ class il extends qn {
1935
1935
  const { element: e, unresolvedKeyframes: n, name: s } = this;
1936
1936
  if (!e || !e.current)
1937
1937
  return;
1938
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = _t[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
1938
+ s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Nt[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
1939
1939
  const i = n[n.length - 1];
1940
1940
  i !== void 0 && e.getValue(s, i).jump(i, !1);
1941
1941
  }
@@ -1946,7 +1946,7 @@ class il extends qn {
1946
1946
  const i = e.getValue(n);
1947
1947
  i && i.jump(this.measuredOrigin, !1);
1948
1948
  const r = s.length - 1, o = s[r];
1949
- s[r] = _t[n](e.measureViewportBox(), window.getComputedStyle(e.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), this.removedTransforms?.length && this.removedTransforms.forEach(([a, c]) => {
1949
+ s[r] = Nt[n](e.measureViewportBox(), window.getComputedStyle(e.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), this.removedTransforms?.length && this.removedTransforms.forEach(([a, c]) => {
1950
1950
  e.getValue(a).set(c);
1951
1951
  }), this.resolveNoneKeyframes();
1952
1952
  }
@@ -2031,7 +2031,7 @@ class al {
2031
2031
  this.events[e] || (this.events[e] = new In());
2032
2032
  const s = this.events[e].add(n);
2033
2033
  return e === "change" ? () => {
2034
- s(), W.read(() => {
2034
+ s(), K.read(() => {
2035
2035
  this.events.change.getSize() || this.stop();
2036
2036
  });
2037
2037
  } : s;
@@ -2162,21 +2162,21 @@ class al {
2162
2162
  this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
2163
2163
  }
2164
2164
  }
2165
- function Ht(t, e) {
2165
+ function Zt(t, e) {
2166
2166
  return new al(t, e);
2167
2167
  }
2168
- const { schedule: es } = /* @__PURE__ */ wo(queueMicrotask, !1), dt = {
2168
+ const { schedule: es } = /* @__PURE__ */ wo(queueMicrotask, !1), ht = {
2169
2169
  x: !1,
2170
2170
  y: !1
2171
2171
  };
2172
2172
  function Ho() {
2173
- return dt.x || dt.y;
2173
+ return ht.x || ht.y;
2174
2174
  }
2175
2175
  function ll(t) {
2176
- return t === "x" || t === "y" ? dt[t] ? null : (dt[t] = !0, () => {
2177
- dt[t] = !1;
2178
- }) : dt.x || dt.y ? null : (dt.x = dt.y = !0, () => {
2179
- dt.x = dt.y = !1;
2176
+ return t === "x" || t === "y" ? ht[t] ? null : (ht[t] = !0, () => {
2177
+ ht[t] = !1;
2178
+ }) : ht.x || ht.y ? null : (ht.x = ht.y = !0, () => {
2179
+ ht.x = ht.y = !1;
2180
2180
  });
2181
2181
  }
2182
2182
  function Zo(t, e) {
@@ -2216,7 +2216,7 @@ const Go = (t, e) => e ? t === e ? !0 : Go(t, e.parentElement) : !1, ns = (t) =>
2216
2216
  function dl(t) {
2217
2217
  return ul.has(t.tagName) || t.tabIndex !== -1;
2218
2218
  }
2219
- const Te = /* @__PURE__ */ new WeakSet();
2219
+ const Me = /* @__PURE__ */ new WeakSet();
2220
2220
  function Hs(t) {
2221
2221
  return (e) => {
2222
2222
  e.key === "Enter" && t(e);
@@ -2230,7 +2230,7 @@ const hl = (t, e) => {
2230
2230
  if (!n)
2231
2231
  return;
2232
2232
  const s = Hs(() => {
2233
- if (Te.has(n))
2233
+ if (Me.has(n))
2234
2234
  return;
2235
2235
  Xe(n, "down");
2236
2236
  const i = Hs(() => {
@@ -2248,9 +2248,9 @@ function fl(t, e, n = {}) {
2248
2248
  const c = a.currentTarget;
2249
2249
  if (!Zs(a))
2250
2250
  return;
2251
- Te.add(c);
2251
+ Me.add(c);
2252
2252
  const u = e(c, a), d = (p, m) => {
2253
- window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), Te.has(c) && Te.delete(c), Zs(p) && typeof u == "function" && u(p, { success: m });
2253
+ window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), Me.has(c) && Me.delete(c), Zs(p) && typeof u == "function" && u(p, { success: m });
2254
2254
  }, h = (p) => {
2255
2255
  d(p, c === window || c === document || n.useGlobalTarget || Go(c, p.target));
2256
2256
  }, f = (p) => {
@@ -2268,7 +2268,7 @@ function Yo(t) {
2268
2268
  function pl(t) {
2269
2269
  return Yo(t) && t.tagName === "svg";
2270
2270
  }
2271
- const nt = (t) => !!(t && t.getVelocity), ml = [...Ko, q, Mt], gl = (t) => ml.find(zo(t)), ss = wt({
2271
+ const nt = (t) => !!(t && t.getVelocity), ml = [...Ko, J, Pt], gl = (t) => ml.find(zo(t)), ss = kt({
2272
2272
  transformPagePoint: (t) => t,
2273
2273
  isStatic: !1,
2274
2274
  reducedMotion: "never"
@@ -2292,13 +2292,13 @@ class yl extends Ln.Component {
2292
2292
  }
2293
2293
  }
2294
2294
  function xl({ children: t, isPresent: e, anchorX: n, root: s }) {
2295
- const i = Gt(), r = X(null), o = X({
2295
+ const i = Yt(), r = q(null), o = q({
2296
2296
  width: 0,
2297
2297
  height: 0,
2298
2298
  top: 0,
2299
2299
  left: 0,
2300
2300
  right: 0
2301
- }), { nonce: a } = J(ss);
2301
+ }), { nonce: a } = Q(ss);
2302
2302
  return Wi(() => {
2303
2303
  const { width: c, height: u, top: d, left: h, right: f } = o.current;
2304
2304
  if (e || !r.current || !c || !u)
@@ -2322,7 +2322,7 @@ function xl({ children: t, isPresent: e, anchorX: n, root: s }) {
2322
2322
  }, [e]), l.jsx(yl, { isPresent: e, childRef: r, sizeRef: o, children: Ln.cloneElement(t, { ref: r }) });
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
- const u = Dn(Cl), d = Gt();
2325
+ const u = Dn(Cl), d = Yt();
2326
2326
  let h = !0, f = b(() => (h = !1, {
2327
2327
  id: d,
2328
2328
  initial: e,
@@ -2341,64 +2341,64 @@ const vl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
2341
2341
  u.forEach((p, m) => u.set(m, !1));
2342
2342
  }, [n]), Ln.useEffect(() => {
2343
2343
  !n && !u.size && s && s();
2344
- }, [n]), o === "popLayout" && (t = l.jsx(xl, { isPresent: n, anchorX: a, root: c, children: t })), l.jsx(_e.Provider, { value: f, children: t });
2344
+ }, [n]), o === "popLayout" && (t = l.jsx(xl, { isPresent: n, anchorX: a, root: c, children: t })), l.jsx(Ne.Provider, { value: f, children: t });
2345
2345
  };
2346
2346
  function Cl() {
2347
2347
  return /* @__PURE__ */ new Map();
2348
2348
  }
2349
2349
  function Xo(t = !0) {
2350
- const e = J(_e);
2350
+ const e = Q(Ne);
2351
2351
  if (e === null)
2352
2352
  return [!0, null];
2353
- const { isPresent: n, onExitComplete: s, register: i } = e, r = Gt();
2354
- bt(() => {
2353
+ const { isPresent: n, onExitComplete: s, register: i } = e, r = Yt();
2354
+ Tt(() => {
2355
2355
  if (t)
2356
2356
  return i(r);
2357
2357
  }, [t]);
2358
- const o = M(() => t && s && s(r), [r, s, t]);
2358
+ const o = S(() => t && s && s(r), [r, s, t]);
2359
2359
  return !n && s ? [!1, o] : [!0];
2360
2360
  }
2361
- const je = (t) => t.key || "";
2361
+ const be = (t) => t.key || "";
2362
2362
  function Gs(t) {
2363
2363
  const e = [];
2364
- return St.forEach(t, (n) => {
2365
- yt(n) && e.push(n);
2364
+ return At.forEach(t, (n) => {
2365
+ xt(n) && e.push(n);
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(je), p = X(!0), m = X(h), y = Dn(() => /* @__PURE__ */ new Map()), [k, v] = rt(h), [x, C] = rt(h);
2369
+ const [u, d] = Xo(o), h = b(() => Gs(t), [t]), f = o && !u ? [] : h.map(be), p = q(!0), m = q(h), y = Dn(() => /* @__PURE__ */ new Map()), [w, C] = rt(h), [x, v] = rt(h);
2370
2370
  oo(() => {
2371
2371
  p.current = !1, m.current = h;
2372
- for (let j = 0; j < x.length; j++) {
2373
- const S = je(x[j]);
2374
- f.includes(S) ? y.delete(S) : y.get(S) !== !0 && y.set(S, !1);
2372
+ for (let L = 0; L < x.length; L++) {
2373
+ const M = be(x[L]);
2374
+ f.includes(M) ? y.delete(M) : y.get(M) !== !0 && y.set(M, !1);
2375
2375
  }
2376
2376
  }, [x, f.length, f.join("-")]);
2377
2377
  const T = [];
2378
- if (h !== k) {
2379
- let j = [...h];
2380
- for (let S = 0; S < x.length; S++) {
2381
- const L = x[S], D = je(L);
2382
- f.includes(D) || (j.splice(S, 0, L), T.push(L));
2378
+ if (h !== w) {
2379
+ let L = [...h];
2380
+ for (let M = 0; M < x.length; M++) {
2381
+ const j = x[M], _ = be(j);
2382
+ f.includes(_) || (L.splice(M, 0, j), T.push(j));
2383
2383
  }
2384
- return r === "wait" && T.length && (j = T), C(Gs(j)), v(h), null;
2384
+ return r === "wait" && T.length && (L = T), v(Gs(L)), C(h), null;
2385
2385
  }
2386
2386
  process.env.NODE_ENV !== "production" && r === "wait" && x.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
- const { forceRender: w } = J(Rn);
2388
- return l.jsx(l.Fragment, { children: x.map((j) => {
2389
- const S = je(j), L = o && !u ? !1 : h === x || f.includes(S), D = () => {
2390
- if (y.has(S))
2391
- y.set(S, !0);
2387
+ const { forceRender: k } = Q(Rn);
2388
+ return l.jsx(l.Fragment, { children: x.map((L) => {
2389
+ const M = be(L), j = o && !u ? !1 : h === x || f.includes(M), _ = () => {
2390
+ if (y.has(M))
2391
+ y.set(M, !0);
2392
2392
  else
2393
2393
  return;
2394
2394
  let N = !0;
2395
- y.forEach((I) => {
2396
- I || (N = !1);
2397
- }), N && (w?.(), C(m.current), o && d?.(), s && s());
2395
+ y.forEach((B) => {
2396
+ B || (N = !1);
2397
+ }), N && (k?.(), v(m.current), o && d?.(), s && s());
2398
2398
  };
2399
- return l.jsx(vl, { isPresent: L, initial: !p.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: r, root: c, onExitComplete: L ? void 0 : D, anchorX: a, children: j }, S);
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);
2400
2400
  }) });
2401
- }, qo = wt({ strict: !1 }), Ys = {
2401
+ }, qo = kt({ strict: !1 }), Ys = {
2402
2402
  animation: [
2403
2403
  "animate",
2404
2404
  "variants",
@@ -2417,15 +2417,15 @@ const wl = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2417
2417
  pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
2418
2418
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
2419
2419
  layout: ["layout", "layoutId"]
2420
- }, Zt = {};
2420
+ }, Gt = {};
2421
2421
  for (const t in Ys)
2422
- Zt[t] = {
2422
+ Gt[t] = {
2423
2423
  isEnabled: (e) => Ys[t].some((n) => !!e[n])
2424
2424
  };
2425
2425
  function kl(t) {
2426
2426
  for (const e in t)
2427
- Zt[e] = {
2428
- ...Zt[e],
2427
+ Gt[e] = {
2428
+ ...Gt[e],
2429
2429
  ...t[e]
2430
2430
  };
2431
2431
  }
@@ -2461,12 +2461,12 @@ const jl = /* @__PURE__ */ new Set([
2461
2461
  "ignoreStrict",
2462
2462
  "viewport"
2463
2463
  ]);
2464
- function Re(t) {
2464
+ function De(t) {
2465
2465
  return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || jl.has(t);
2466
2466
  }
2467
- let Jo = (t) => !Re(t);
2467
+ let Jo = (t) => !De(t);
2468
2468
  function bl(t) {
2469
- typeof t == "function" && (Jo = (e) => e.startsWith("on") ? !Re(e) : t(e));
2469
+ typeof t == "function" && (Jo = (e) => e.startsWith("on") ? !De(e) : t(e));
2470
2470
  }
2471
2471
  try {
2472
2472
  bl(require("@emotion/is-prop-valid").default);
@@ -2475,7 +2475,7 @@ try {
2475
2475
  function Ll(t, e, n) {
2476
2476
  const s = {};
2477
2477
  for (const i in t)
2478
- i === "values" && typeof t.values == "object" || (Jo(i) || n === !0 && Re(i) || !e && !Re(i) || // If trying to use native HTML drag events, forward drag listeners
2478
+ i === "values" && typeof t.values == "object" || (Jo(i) || n === !0 && De(i) || !e && !De(i) || // If trying to use native HTML drag events, forward drag listeners
2479
2479
  t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
2480
2480
  return s;
2481
2481
  }
@@ -2492,8 +2492,8 @@ function Tl(t) {
2492
2492
  get: (s, i) => i === "create" ? t : (e.has(i) || e.set(i, t(i)), e.get(i))
2493
2493
  });
2494
2494
  }
2495
- const Ne = /* @__PURE__ */ wt({});
2496
- function Be(t) {
2495
+ const Be = /* @__PURE__ */ kt({});
2496
+ function Ie(t) {
2497
2497
  return t !== null && typeof t == "object" && typeof t.start == "function";
2498
2498
  }
2499
2499
  function he(t) {
@@ -2508,14 +2508,14 @@ const is = [
2508
2508
  "whileDrag",
2509
2509
  "exit"
2510
2510
  ], os = ["initial", ...is];
2511
- function Ie(t) {
2512
- return Be(t.animate) || os.some((e) => he(t[e]));
2511
+ function Oe(t) {
2512
+ return Ie(t.animate) || os.some((e) => he(t[e]));
2513
2513
  }
2514
2514
  function Qo(t) {
2515
- return !!(Ie(t) || t.variants);
2515
+ return !!(Oe(t) || t.variants);
2516
2516
  }
2517
2517
  function Ml(t, e) {
2518
- if (Ie(t)) {
2518
+ if (Oe(t)) {
2519
2519
  const { initial: n, animate: s } = t;
2520
2520
  return {
2521
2521
  initial: n === !1 || he(n) ? n : void 0,
@@ -2525,20 +2525,20 @@ function Ml(t, e) {
2525
2525
  return t.inherit !== !1 ? e : {};
2526
2526
  }
2527
2527
  function Sl(t) {
2528
- const { initial: e, animate: n } = Ml(t, J(Ne));
2528
+ const { initial: e, animate: n } = Ml(t, Q(Be));
2529
2529
  return b(() => ({ initial: e, animate: n }), [Xs(e), Xs(n)]);
2530
2530
  }
2531
2531
  function Xs(t) {
2532
2532
  return Array.isArray(t) ? t.join(" ") : t;
2533
2533
  }
2534
2534
  const Pl = Symbol.for("motionComponentSymbol");
2535
- function Ot(t) {
2535
+ function Ft(t) {
2536
2536
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
2537
2537
  }
2538
2538
  function Al(t, e, n) {
2539
- return M(
2539
+ return S(
2540
2540
  (s) => {
2541
- s && t.onMount && t.onMount(s), e && (s ? e.mount(s) : e.unmount()), n && (typeof n == "function" ? n(s) : Ot(n) && (n.current = s));
2541
+ s && t.onMount && t.onMount(s), e && (s ? e.mount(s) : e.unmount()), n && (typeof n == "function" ? n(s) : Ft(n) && (n.current = s));
2542
2542
  },
2543
2543
  /**
2544
2544
  * Only pass a new ref callback to React if we've received a visual element
@@ -2548,9 +2548,9 @@ function Al(t, e, n) {
2548
2548
  [e]
2549
2549
  );
2550
2550
  }
2551
- const rs = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Vl = "framerAppearId", tr = "data-" + rs(Vl), er = wt({});
2551
+ const rs = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Vl = "framerAppearId", tr = "data-" + rs(Vl), er = kt({});
2552
2552
  function Rl(t, e, n, s, i) {
2553
- const { visualElement: r } = J(Ne), o = J(qo), a = J(_e), c = J(ss).reducedMotion, u = X(null);
2553
+ const { visualElement: r } = Q(Be), o = Q(qo), a = Q(Ne), c = Q(ss).reducedMotion, u = q(null);
2554
2554
  s = s || o.renderer, !u.current && s && (u.current = s(t, {
2555
2555
  visualState: e,
2556
2556
  parent: r,
@@ -2559,16 +2559,16 @@ function Rl(t, e, n, s, i) {
2559
2559
  blockInitialAnimation: a ? a.initial === !1 : !1,
2560
2560
  reducedMotionConfig: c
2561
2561
  }));
2562
- const d = u.current, h = J(er);
2562
+ const d = u.current, h = Q(er);
2563
2563
  d && !d.projection && i && (d.type === "html" || d.type === "svg") && Dl(u.current, n, i, h);
2564
- const f = X(!1);
2564
+ const f = q(!1);
2565
2565
  Wi(() => {
2566
2566
  d && f.current && d.update(n, a);
2567
2567
  });
2568
- const p = n[tr], m = X(!!p && !window.MotionHandoffIsComplete?.(p) && window.MotionHasOptimisedAnimation?.(p));
2568
+ const p = n[tr], m = q(!!p && !window.MotionHandoffIsComplete?.(p) && window.MotionHasOptimisedAnimation?.(p));
2569
2569
  return oo(() => {
2570
2570
  d && (f.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), es.render(d.render), m.current && d.animationState && d.animationState.animateChanges());
2571
- }), bt(() => {
2571
+ }), Tt(() => {
2572
2572
  d && (!m.current && d.animationState && d.animationState.animateChanges(), m.current && (queueMicrotask(() => {
2573
2573
  window.MotionHandoffMarkAsComplete?.(p);
2574
2574
  }), m.current = !1));
@@ -2579,7 +2579,7 @@ function Dl(t, e, n, s) {
2579
2579
  t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : nr(t.parent)), t.projection.setOptions({
2580
2580
  layoutId: i,
2581
2581
  layout: r,
2582
- alwaysMeasureLayout: !!o || a && Ot(a),
2582
+ alwaysMeasureLayout: !!o || a && Ft(a),
2583
2583
  visualElement: t,
2584
2584
  /**
2585
2585
  * TODO: Update options in an effect. This could be tricky as it'll be too late
@@ -2604,7 +2604,7 @@ function El({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
2604
2604
  function r(a, c) {
2605
2605
  let u;
2606
2606
  const d = {
2607
- ...J(ss),
2607
+ ...Q(ss),
2608
2608
  ...a,
2609
2609
  layoutId: _l(a)
2610
2610
  }, { isStatic: h } = d, f = Sl(a), p = s(a, h);
@@ -2613,25 +2613,25 @@ function El({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
2613
2613
  const m = Bl(d);
2614
2614
  u = m.MeasureLayout, f.visualElement = Rl(i, p, d, e, m.ProjectionNode);
2615
2615
  }
2616
- return l.jsxs(Ne.Provider, { value: f, children: [u && f.visualElement ? l.jsx(u, { visualElement: f.visualElement, ...d }) : null, n(i, a, Al(p, f.visualElement, c), p, h, f.visualElement)] });
2616
+ return l.jsxs(Be.Provider, { value: f, children: [u && f.visualElement ? l.jsx(u, { visualElement: f.visualElement, ...d }) : null, n(i, a, Al(p, f.visualElement, c), p, h, f.visualElement)] });
2617
2617
  }
2618
2618
  r.displayName = `motion.${typeof i == "string" ? i : `create(${i.displayName ?? i.name ?? ""})`}`;
2619
2619
  const o = Z(r);
2620
2620
  return o[Pl] = i, o;
2621
2621
  }
2622
2622
  function _l({ layoutId: t }) {
2623
- const e = J(Rn).id;
2623
+ const e = Q(Rn).id;
2624
2624
  return e && t !== void 0 ? e + "-" + t : t;
2625
2625
  }
2626
2626
  function Nl(t, e) {
2627
- const n = J(qo).strict;
2627
+ const n = Q(qo).strict;
2628
2628
  if (process.env.NODE_ENV !== "production" && e && n) {
2629
2629
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
2630
- t.ignoreStrict ? Yt(!1, s) : vt(!1, s);
2630
+ t.ignoreStrict ? Xt(!1, s) : Ct(!1, s);
2631
2631
  }
2632
2632
  }
2633
2633
  function Bl(t) {
2634
- const { drag: e, layout: n } = Zt;
2634
+ const { drag: e, layout: n } = Gt;
2635
2635
  if (!e && !n)
2636
2636
  return {};
2637
2637
  const s = { ...e, ...n };
@@ -2646,18 +2646,18 @@ function Il(t) {
2646
2646
  fe[e] = t[e], Kn(e) && (fe[e].isCSSVariable = !0);
2647
2647
  }
2648
2648
  function sr(t, { layout: e, layoutId: n }) {
2649
- return Jt.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) && (!!fe[t] || t === "opacity");
2650
2650
  }
2651
2651
  const Ol = {
2652
2652
  x: "translateX",
2653
2653
  y: "translateY",
2654
2654
  z: "translateZ",
2655
2655
  transformPerspective: "perspective"
2656
- }, Fl = qt.length;
2656
+ }, Fl = Jt.length;
2657
2657
  function zl(t, e, n) {
2658
2658
  let s = "", i = !0;
2659
2659
  for (let r = 0; r < Fl; r++) {
2660
- const o = qt[r], a = t[o];
2660
+ const o = Jt[r], a = t[o];
2661
2661
  if (a === void 0)
2662
2662
  continue;
2663
2663
  let c = !0;
@@ -2678,7 +2678,7 @@ function as(t, e, n) {
2678
2678
  let o = !1, a = !1;
2679
2679
  for (const c in e) {
2680
2680
  const u = e[c];
2681
- if (Jt.has(c)) {
2681
+ if (Qt.has(c)) {
2682
2682
  o = !0;
2683
2683
  continue;
2684
2684
  } else if (Kn(c)) {
@@ -2728,8 +2728,8 @@ const Ul = {
2728
2728
  function Zl(t, e, n = 1, s = 0, i = !0) {
2729
2729
  t.pathLength = 1;
2730
2730
  const r = i ? Ul : Hl;
2731
- t[r.offset] = A.transform(-s);
2732
- const o = A.transform(e), a = A.transform(n);
2731
+ t[r.offset] = V.transform(-s);
2732
+ const o = V.transform(e), a = V.transform(n);
2733
2733
  t[r.array] = `${o} ${a}`;
2734
2734
  }
2735
2735
  function or(t, {
@@ -2841,7 +2841,7 @@ function us(t, e, n, s) {
2841
2841
  }
2842
2842
  return e;
2843
2843
  }
2844
- function Me(t) {
2844
+ function Se(t) {
2845
2845
  return nt(t) ? t.get() : t;
2846
2846
  }
2847
2847
  function ql({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
@@ -2851,32 +2851,32 @@ function ql({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
2851
2851
  };
2852
2852
  }
2853
2853
  const lr = (t) => (e, n) => {
2854
- const s = J(Ne), i = J(_e), r = () => ql(t, e, s, i);
2854
+ const s = Q(Be), i = Q(Ne), r = () => ql(t, e, s, i);
2855
2855
  return n ? r() : Dn(r);
2856
2856
  };
2857
2857
  function Jl(t, e, n, s) {
2858
2858
  const i = {}, r = s(t, {});
2859
2859
  for (const f in r)
2860
- i[f] = Me(r[f]);
2860
+ i[f] = Se(r[f]);
2861
2861
  let { initial: o, animate: a } = t;
2862
- const c = Ie(t), u = Qo(t);
2862
+ const c = Oe(t), u = Qo(t);
2863
2863
  e && u && !c && t.inherit !== !1 && (o === void 0 && (o = e.initial), a === void 0 && (a = e.animate));
2864
2864
  let d = n ? n.initial === !1 : !1;
2865
2865
  d = d || o === !1;
2866
2866
  const h = d ? a : o;
2867
- if (h && typeof h != "boolean" && !Be(h)) {
2867
+ if (h && typeof h != "boolean" && !Ie(h)) {
2868
2868
  const f = Array.isArray(h) ? h : [h];
2869
2869
  for (let p = 0; p < f.length; p++) {
2870
2870
  const m = us(t, f[p]);
2871
2871
  if (m) {
2872
- const { transitionEnd: y, transition: k, ...v } = m;
2873
- for (const x in v) {
2874
- let C = v[x];
2875
- if (Array.isArray(C)) {
2876
- const T = d ? C.length - 1 : 0;
2877
- C = C[T];
2872
+ const { transitionEnd: y, transition: w, ...C } = m;
2873
+ for (const x in C) {
2874
+ let v = C[x];
2875
+ if (Array.isArray(v)) {
2876
+ const T = d ? v.length - 1 : 0;
2877
+ v = v[T];
2878
2878
  }
2879
- C !== null && (i[x] = C);
2879
+ v !== null && (i[x] = v);
2880
2880
  }
2881
2881
  for (const x in y)
2882
2882
  i[x] = y[x];
@@ -2901,7 +2901,7 @@ function cr(t, e, n) {
2901
2901
  const s = ds(t, e, n);
2902
2902
  for (const i in t)
2903
2903
  if (nt(t[i]) || nt(e[i])) {
2904
- const r = qt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2904
+ const r = Jt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2905
2905
  s[r] = t[i];
2906
2906
  }
2907
2907
  return s;
@@ -2930,7 +2930,7 @@ function pe(t, e, n) {
2930
2930
  }
2931
2931
  const yn = (t) => Array.isArray(t);
2932
2932
  function nc(t, e, n) {
2933
- t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Ht(n));
2933
+ t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Zt(n));
2934
2934
  }
2935
2935
  function sc(t) {
2936
2936
  return yn(t) ? t[t.length - 1] || 0 : t;
@@ -2951,8 +2951,8 @@ function xn(t, e) {
2951
2951
  const n = t.getValue("willChange");
2952
2952
  if (oc(n))
2953
2953
  return n.add(e);
2954
- if (!n && Ct.WillChange) {
2955
- const s = new Ct.WillChange("auto");
2954
+ if (!n && wt.WillChange) {
2955
+ const s = new wt.WillChange("auto");
2956
2956
  t.addValue("willChange", s), s.add(e);
2957
2957
  }
2958
2958
  }
@@ -2981,14 +2981,14 @@ const lc = {
2981
2981
  type: "keyframes",
2982
2982
  ease: [0.25, 0.1, 0.35, 1],
2983
2983
  duration: 0.3
2984
- }, hc = (t, { keyframes: e }) => e.length > 2 ? uc : Jt.has(t) ? t.startsWith("scale") ? cc(e[1]) : lc : dc;
2984
+ }, hc = (t, { keyframes: e }) => e.length > 2 ? uc : Qt.has(t) ? t.startsWith("scale") ? cc(e[1]) : lc : dc;
2985
2985
  function fc({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: o, repeatDelay: a, from: c, elapsed: u, ...d }) {
2986
2986
  return !!Object.keys(d).length;
2987
2987
  }
2988
2988
  const hs = (t, e, n, s = {}, i, r) => (o) => {
2989
2989
  const a = Qn(s, t) || {}, c = a.delay || s.delay || 0;
2990
2990
  let { elapsed: u = 0 } = s;
2991
- u = u - /* @__PURE__ */ ht(c);
2991
+ u = u - /* @__PURE__ */ ft(c);
2992
2992
  const d = {
2993
2993
  keyframes: Array.isArray(n) ? n : [null, n],
2994
2994
  ease: "easeOut",
@@ -3005,12 +3005,12 @@ const hs = (t, e, n, s = {}, i, r) => (o) => {
3005
3005
  motionValue: e,
3006
3006
  element: r ? void 0 : i
3007
3007
  };
3008
- fc(a) || Object.assign(d, hc(t, d)), d.duration && (d.duration = /* @__PURE__ */ ht(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ ht(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
3008
+ fc(a) || Object.assign(d, hc(t, d)), d.duration && (d.duration = /* @__PURE__ */ ft(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ ft(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
3009
3009
  let h = !1;
3010
- if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (d.duration = 0, d.delay === 0 && (h = !0)), (Ct.instantAnimations || Ct.skipAnimations) && (h = !0, d.duration = 0, d.delay = 0), d.allowFlatten = !a.type && !a.ease, h && !r && e.get() !== void 0) {
3010
+ if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (d.duration = 0, d.delay === 0 && (h = !0)), (wt.instantAnimations || wt.skipAnimations) && (h = !0, d.duration = 0, d.delay = 0), d.allowFlatten = !a.type && !a.ease, h && !r && e.get() !== void 0) {
3011
3011
  const f = ac(d.keyframes, a);
3012
3012
  if (f !== void 0) {
3013
- W.update(() => {
3013
+ K.update(() => {
3014
3014
  d.onUpdate(f), d.onComplete();
3015
3015
  });
3016
3016
  return;
@@ -3038,18 +3038,18 @@ function dr(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3038
3038
  continue;
3039
3039
  let y = !1;
3040
3040
  if (window.MotionHandoffAnimation) {
3041
- const v = ur(t);
3042
- if (v) {
3043
- const x = window.MotionHandoffAnimation(v, d, W);
3041
+ const C = ur(t);
3042
+ if (C) {
3043
+ const x = window.MotionHandoffAnimation(C, d, K);
3044
3044
  x !== null && (p.startTime = x, y = !0);
3045
3045
  }
3046
3046
  }
3047
3047
  xn(t, d), h.start(hs(d, h, f, t.shouldReduceMotion && Fo.has(d) ? { type: !1 } : p, t, y));
3048
- const k = h.animation;
3049
- k && c.push(k);
3048
+ const w = h.animation;
3049
+ w && c.push(w);
3050
3050
  }
3051
3051
  return o && Promise.all(c).then(() => {
3052
- W.update(() => {
3052
+ K.update(() => {
3053
3053
  o && ic(t, o);
3054
3054
  });
3055
3055
  }), c;
@@ -3145,52 +3145,52 @@ function kc(t) {
3145
3145
  function o(c) {
3146
3146
  const { props: u } = t, d = fr(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
3147
3147
  let p = {}, m = 1 / 0;
3148
- for (let k = 0; k < Cc; k++) {
3149
- const v = vc[k], x = n[v], C = u[v] !== void 0 ? u[v] : d[v], T = he(C), w = v === c ? x.isActive : null;
3150
- w === !1 && (m = k);
3151
- let j = C === d[v] && C !== u[v] && T;
3152
- if (j && s && t.manuallyAnimateOnMount && (j = !1), x.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3153
- !x.isActive && w === null || // If we didn't and don't have any defined prop for this animation type
3154
- !C && !x.prevProp || // Or if the prop doesn't define an animation
3155
- Be(C) || typeof C == "boolean")
3148
+ for (let w = 0; w < Cc; w++) {
3149
+ const C = vc[w], x = n[C], v = u[C] !== void 0 ? u[C] : d[C], T = he(v), k = C === c ? x.isActive : null;
3150
+ k === !1 && (m = w);
3151
+ let L = v === d[C] && v !== u[C] && T;
3152
+ if (L && s && t.manuallyAnimateOnMount && (L = !1), x.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3153
+ !x.isActive && k === null || // If we didn't and don't have any defined prop for this animation type
3154
+ !v && !x.prevProp || // Or if the prop doesn't define an animation
3155
+ Ie(v) || typeof v == "boolean")
3156
3156
  continue;
3157
- const S = jc(x.prevProp, C);
3158
- let L = S || // If we're making this variant active, we want to always make it active
3159
- v === c && x.isActive && !j && T || // If we removed a higher-priority variant (i is in reverse order)
3160
- k > m && T, D = !1;
3161
- const N = Array.isArray(C) ? C : [C];
3162
- let I = N.reduce(i(v), {});
3163
- w === !1 && (I = {});
3164
- const { prevResolvedValues: z = {} } = x, R = {
3165
- ...z,
3166
- ...I
3167
- }, G = (V) => {
3168
- L = !0, f.has(V) && (D = !0, f.delete(V)), x.needsAnimating[V] = !0;
3169
- const K = t.getValue(V);
3170
- K && (K.liveStyle = !1);
3157
+ const M = jc(x.prevProp, v);
3158
+ let j = M || // If we're making this variant active, we want to always make it active
3159
+ C === c && x.isActive && !L && T || // If we removed a higher-priority variant (i is in reverse order)
3160
+ w > m && T, _ = !1;
3161
+ const N = Array.isArray(v) ? v : [v];
3162
+ let B = N.reduce(i(C), {});
3163
+ k === !1 && (B = {});
3164
+ const { prevResolvedValues: F = {} } = x, R = {
3165
+ ...F,
3166
+ ...B
3167
+ }, G = (z) => {
3168
+ j = !0, f.has(z) && (_ = !0, f.delete(z)), x.needsAnimating[z] = !0;
3169
+ const Y = t.getValue(z);
3170
+ Y && (Y.liveStyle = !1);
3171
3171
  };
3172
- for (const V in R) {
3173
- const K = I[V], st = z[V];
3174
- if (p.hasOwnProperty(V))
3172
+ for (const z in R) {
3173
+ const Y = B[z], at = F[z];
3174
+ if (p.hasOwnProperty(z))
3175
3175
  continue;
3176
3176
  let g = !1;
3177
- yn(K) && yn(st) ? g = !hr(K, st) : g = K !== st, g ? K != null ? G(V) : f.add(V) : K !== void 0 && f.has(V) ? G(V) : x.protectedKeys[V] = !0;
3177
+ yn(Y) && yn(at) ? g = !hr(Y, at) : g = Y !== at, g ? Y != null ? G(z) : f.add(z) : Y !== void 0 && f.has(z) ? G(z) : x.protectedKeys[z] = !0;
3178
3178
  }
3179
- x.prevProp = C, x.prevResolvedValues = I, x.isActive && (p = { ...p, ...I }), s && t.blockInitialAnimation && (L = !1), L && (!(j && S) || D) && h.push(...N.map((V) => ({
3180
- animation: V,
3181
- options: { type: v }
3179
+ x.prevProp = v, x.prevResolvedValues = B, x.isActive && (p = { ...p, ...B }), s && t.blockInitialAnimation && (j = !1), j && (!(L && M) || _) && h.push(...N.map((z) => ({
3180
+ animation: z,
3181
+ options: { type: C }
3182
3182
  })));
3183
3183
  }
3184
3184
  if (f.size) {
3185
- const k = {};
3185
+ const w = {};
3186
3186
  if (typeof u.initial != "boolean") {
3187
- const v = pe(t, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3188
- v && v.transition && (k.transition = v.transition);
3187
+ const C = pe(t, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3188
+ C && C.transition && (w.transition = C.transition);
3189
3189
  }
3190
- f.forEach((v) => {
3191
- const x = t.getBaseTarget(v), C = t.getValue(v);
3192
- C && (C.liveStyle = !0), k[v] = x ?? null;
3193
- }), h.push({ animation: k });
3190
+ f.forEach((C) => {
3191
+ const x = t.getBaseTarget(C), v = t.getValue(C);
3192
+ v && (v.liveStyle = !0), w[C] = x ?? null;
3193
+ }), h.push({ animation: w });
3194
3194
  }
3195
3195
  let y = !!h.length;
3196
3196
  return s && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (y = !1), s = !1, y ? e(h) : Promise.resolve();
@@ -3217,7 +3217,7 @@ function kc(t) {
3217
3217
  function jc(t, e) {
3218
3218
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !hr(e, t) : !1;
3219
3219
  }
3220
- function Vt(t = !1) {
3220
+ function Rt(t = !1) {
3221
3221
  return {
3222
3222
  isActive: t,
3223
3223
  protectedKeys: {},
@@ -3227,23 +3227,23 @@ function Vt(t = !1) {
3227
3227
  }
3228
3228
  function Js() {
3229
3229
  return {
3230
- animate: Vt(!0),
3231
- whileInView: Vt(),
3232
- whileHover: Vt(),
3233
- whileTap: Vt(),
3234
- whileDrag: Vt(),
3235
- whileFocus: Vt(),
3236
- exit: Vt()
3230
+ animate: Rt(!0),
3231
+ whileInView: Rt(),
3232
+ whileHover: Rt(),
3233
+ whileTap: Rt(),
3234
+ whileDrag: Rt(),
3235
+ whileFocus: Rt(),
3236
+ exit: Rt()
3237
3237
  };
3238
3238
  }
3239
- class Pt {
3239
+ class Vt {
3240
3240
  constructor(e) {
3241
3241
  this.isMounted = !1, this.node = e;
3242
3242
  }
3243
3243
  update() {
3244
3244
  }
3245
3245
  }
3246
- class bc extends Pt {
3246
+ class bc extends Vt {
3247
3247
  /**
3248
3248
  * We dynamically generate the AnimationState manager as it contains a reference
3249
3249
  * to the underlying animation library. We only want to load that if we load this,
@@ -3254,7 +3254,7 @@ class bc extends Pt {
3254
3254
  }
3255
3255
  updateAnimationControlsSubscription() {
3256
3256
  const { animate: e } = this.node.getProps();
3257
- Be(e) && (this.unmountControls = e.subscribe(this.node));
3257
+ Ie(e) && (this.unmountControls = e.subscribe(this.node));
3258
3258
  }
3259
3259
  /**
3260
3260
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -3271,7 +3271,7 @@ class bc extends Pt {
3271
3271
  }
3272
3272
  }
3273
3273
  let Lc = 0;
3274
- class Tc extends Pt {
3274
+ class Tc extends Vt {
3275
3275
  constructor() {
3276
3276
  super(...arguments), this.id = Lc++;
3277
3277
  }
@@ -3337,26 +3337,26 @@ function Ac(t, e) {
3337
3337
  };
3338
3338
  }
3339
3339
  const mr = 1e-4, Vc = 1 - mr, Rc = 1 + mr, gr = 0.01, Dc = 0 - gr, Ec = 0 + gr;
3340
- function it(t) {
3340
+ function st(t) {
3341
3341
  return t.max - t.min;
3342
3342
  }
3343
3343
  function _c(t, e, n) {
3344
3344
  return Math.abs(t - e) <= n;
3345
3345
  }
3346
3346
  function Qs(t, e, n, s = 0.5) {
3347
- t.origin = s, t.originPoint = H(e.min, e.max, t.origin), t.scale = it(n) / it(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);
3347
+ t.origin = s, t.originPoint = H(e.min, e.max, t.origin), t.scale = st(n) / st(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
3349
  function ae(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) {
3353
- t.min = n.min + e.min, t.max = t.min + it(e);
3353
+ t.min = n.min + e.min, t.max = t.min + st(e);
3354
3354
  }
3355
3355
  function Nc(t, e, n) {
3356
3356
  ti(t.x, e.x, n.x), ti(t.y, e.y, n.y);
3357
3357
  }
3358
3358
  function ei(t, e, n) {
3359
- t.min = e.min - n.min, t.max = t.min + it(e);
3359
+ t.min = e.min - n.min, t.max = t.min + st(e);
3360
3360
  }
3361
3361
  function le(t, e, n) {
3362
3362
  ei(t.x, e.x, n.x), ei(t.y, e.y, n.y);
@@ -3366,14 +3366,14 @@ const ni = () => ({
3366
3366
  scale: 1,
3367
3367
  origin: 0,
3368
3368
  originPoint: 0
3369
- }), Ft = () => ({
3369
+ }), zt = () => ({
3370
3370
  x: ni(),
3371
3371
  y: ni()
3372
- }), si = () => ({ min: 0, max: 0 }), Y = () => ({
3372
+ }), si = () => ({ min: 0, max: 0 }), X = () => ({
3373
3373
  x: si(),
3374
3374
  y: si()
3375
3375
  });
3376
- function ct(t) {
3376
+ function ut(t) {
3377
3377
  return [t("x"), t("y")];
3378
3378
  }
3379
3379
  function qe(t) {
@@ -3382,7 +3382,7 @@ function qe(t) {
3382
3382
  function Cn({ scale: t, scaleX: e, scaleY: n }) {
3383
3383
  return !qe(t) || !qe(e) || !qe(n);
3384
3384
  }
3385
- function Rt(t) {
3385
+ function Dt(t) {
3386
3386
  return Cn(t) || yr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3387
3387
  }
3388
3388
  function yr(t) {
@@ -3391,12 +3391,12 @@ function yr(t) {
3391
3391
  function ii(t) {
3392
3392
  return t && t !== "0%";
3393
3393
  }
3394
- function De(t, e, n) {
3394
+ function Ee(t, e, n) {
3395
3395
  const s = t - n, i = e * s;
3396
3396
  return n + i;
3397
3397
  }
3398
3398
  function oi(t, e, n, s, i) {
3399
- return i !== void 0 && (t = De(t, i, s)), De(t, n, s) + e;
3399
+ return i !== void 0 && (t = Ee(t, i, s)), Ee(t, n, s) + e;
3400
3400
  }
3401
3401
  function wn(t, e = 0, n = 1, s, i) {
3402
3402
  t.min = oi(t.min, e, n, s, i), t.max = oi(t.max, e, n, s, i);
@@ -3414,21 +3414,21 @@ function Bc(t, e, n, s = !1) {
3414
3414
  for (let a = 0; a < i; a++) {
3415
3415
  r = n[a], o = r.projectionDelta;
3416
3416
  const { visualElement: c } = r.options;
3417
- c && c.props.style && c.props.style.display === "contents" || (s && r.options.layoutScroll && r.scroll && r !== r.root && Kt(t, {
3417
+ c && c.props.style && c.props.style.display === "contents" || (s && r.options.layoutScroll && r.scroll && r !== r.root && Wt(t, {
3418
3418
  x: -r.scroll.offset.x,
3419
3419
  y: -r.scroll.offset.y
3420
- }), o && (e.x *= o.x.scale, e.y *= o.y.scale, xr(t, o)), s && Rt(r.latestValues) && Kt(t, r.latestValues));
3420
+ }), o && (e.x *= o.x.scale, e.y *= o.y.scale, xr(t, o)), s && Dt(r.latestValues) && Wt(t, r.latestValues));
3421
3421
  }
3422
3422
  e.x < ai && e.x > ri && (e.x = 1), e.y < ai && e.y > ri && (e.y = 1);
3423
3423
  }
3424
- function zt(t, e) {
3424
+ function Kt(t, e) {
3425
3425
  t.min = t.min + e, t.max = t.max + e;
3426
3426
  }
3427
3427
  function li(t, e, n, s, i = 0.5) {
3428
3428
  const r = H(t.min, t.max, i);
3429
3429
  wn(t, e, n, r, s);
3430
3430
  }
3431
- function Kt(t, e) {
3431
+ function Wt(t, e) {
3432
3432
  li(t.x, e.x, e.scaleX, e.scale, e.originX), li(t.y, e.y, e.scaleY, e.scale, e.originY);
3433
3433
  }
3434
3434
  function vr(t, e) {
@@ -3436,7 +3436,7 @@ function vr(t, e) {
3436
3436
  }
3437
3437
  function Ic(t, e, n) {
3438
3438
  const s = vr(t, n), { scroll: i } = e;
3439
- return i && (zt(s.x, i.offset.x), zt(s.y, i.offset.y)), s;
3439
+ return i && (Kt(s.x, i.offset.x), Kt(s.y, i.offset.y)), s;
3440
3440
  }
3441
3441
  const Cr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ci = (t, e) => Math.abs(t - e);
3442
3442
  function Oc(t, e) {
@@ -3451,19 +3451,19 @@ class wr {
3451
3451
  const f = Qe(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, m = Oc(f.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3452
3452
  if (!p && !m)
3453
3453
  return;
3454
- const { point: y } = f, { timestamp: k } = et;
3455
- this.history.push({ ...y, timestamp: k });
3456
- const { onStart: v, onMove: x } = this.handlers;
3457
- p || (v && v(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, f);
3454
+ const { point: y } = f, { timestamp: w } = et;
3455
+ this.history.push({ ...y, timestamp: w });
3456
+ const { onStart: C, onMove: x } = this.handlers;
3457
+ p || (C && C(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, f);
3458
3458
  }, this.handlePointerMove = (f, p) => {
3459
- this.lastMoveEvent = f, this.lastMoveEventInfo = Je(p, this.transformPagePoint), W.update(this.updatePoint, !0);
3459
+ this.lastMoveEvent = f, this.lastMoveEventInfo = Je(p, this.transformPagePoint), K.update(this.updatePoint, !0);
3460
3460
  }, this.handlePointerUp = (f, p) => {
3461
3461
  this.end();
3462
- const { onEnd: m, onSessionEnd: y, resumeAnimation: k } = this.handlers;
3463
- if (this.dragSnapToOrigin && k && k(), !(this.lastMoveEvent && this.lastMoveEventInfo))
3462
+ const { onEnd: m, onSessionEnd: y, resumeAnimation: w } = this.handlers;
3463
+ if (this.dragSnapToOrigin && w && w(), !(this.lastMoveEvent && this.lastMoveEventInfo))
3464
3464
  return;
3465
- const v = Qe(f.type === "pointercancel" ? this.lastMoveEventInfo : Je(p, this.transformPagePoint), this.history);
3466
- this.startEvent && m && m(f, v), y && y(f, v);
3465
+ const C = Qe(f.type === "pointercancel" ? this.lastMoveEventInfo : Je(p, this.transformPagePoint), this.history);
3466
+ this.startEvent && m && m(f, C), y && y(f, C);
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;
@@ -3476,7 +3476,7 @@ class wr {
3476
3476
  this.handlers = e;
3477
3477
  }
3478
3478
  end() {
3479
- this.removeListeners && this.removeListeners(), Tt(this.updatePoint);
3479
+ this.removeListeners && this.removeListeners(), St(this.updatePoint);
3480
3480
  }
3481
3481
  }
3482
3482
  function Je(t, e) {
@@ -3504,11 +3504,11 @@ function zc(t, e) {
3504
3504
  return { x: 0, y: 0 };
3505
3505
  let n = t.length - 1, s = null;
3506
3506
  const i = kr(t);
3507
- for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ ht(e))); )
3507
+ for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ ft(e))); )
3508
3508
  n--;
3509
3509
  if (!s)
3510
3510
  return { x: 0, y: 0 };
3511
- const r = /* @__PURE__ */ mt(i.timestamp - s.timestamp);
3511
+ const r = /* @__PURE__ */ gt(i.timestamp - s.timestamp);
3512
3512
  if (r === 0)
3513
3513
  return { x: 0, y: 0 };
3514
3514
  const o = {
@@ -3544,8 +3544,8 @@ function $c(t, e) {
3544
3544
  }
3545
3545
  function Uc(t, e) {
3546
3546
  let n = 0.5;
3547
- const s = it(t), i = it(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);
3547
+ const s = st(t), i = st(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)), vt(0, 1, n);
3549
3549
  }
3550
3550
  function Hc(t, e) {
3551
3551
  const n = {};
@@ -3570,7 +3570,7 @@ function pi(t, e) {
3570
3570
  const Gc = /* @__PURE__ */ new WeakMap();
3571
3571
  class Yc {
3572
3572
  constructor(e) {
3573
- this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Y(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
3573
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = X(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
3574
3574
  }
3575
3575
  start(e, { snapToCursor: n = !1, distanceThreshold: s } = {}) {
3576
3576
  const { presenceContext: i } = this.visualElement;
@@ -3583,33 +3583,33 @@ class Yc {
3583
3583
  const { drag: p, dragPropagation: m, onDragStart: y } = this.getProps();
3584
3584
  if (p && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = ll(p), !this.openDragLock))
3585
3585
  return;
3586
- this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ct((v) => {
3587
- let x = this.getAxisMotionValue(v).get() || 0;
3588
- if (gt.test(x)) {
3589
- const { projection: C } = this.visualElement;
3590
- if (C && C.layout) {
3591
- const T = C.layout.layoutBox[v];
3592
- T && (x = it(T) * (parseFloat(x) / 100));
3586
+ this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ut((C) => {
3587
+ let x = this.getAxisMotionValue(C).get() || 0;
3588
+ if (yt.test(x)) {
3589
+ const { projection: v } = this.visualElement;
3590
+ if (v && v.layout) {
3591
+ const T = v.layout.layoutBox[C];
3592
+ T && (x = st(T) * (parseFloat(x) / 100));
3593
3593
  }
3594
3594
  }
3595
- this.originPoint[v] = x;
3596
- }), y && W.postRender(() => y(h, f)), xn(this.visualElement, "transform");
3597
- const { animationState: k } = this.visualElement;
3598
- k && k.setActive("whileDrag", !0);
3595
+ this.originPoint[C] = x;
3596
+ }), y && K.postRender(() => y(h, f)), xn(this.visualElement, "transform");
3597
+ const { animationState: w } = this.visualElement;
3598
+ w && w.setActive("whileDrag", !0);
3599
3599
  }, a = (h, f) => {
3600
3600
  this.latestPointerEvent = h, this.latestPanInfo = f;
3601
- const { dragPropagation: p, dragDirectionLock: m, onDirectionLock: y, onDrag: k } = this.getProps();
3601
+ const { dragPropagation: p, dragDirectionLock: m, onDirectionLock: y, onDrag: w } = this.getProps();
3602
3602
  if (!p && !this.openDragLock)
3603
3603
  return;
3604
- const { offset: v } = f;
3604
+ const { offset: C } = f;
3605
3605
  if (m && this.currentDirection === null) {
3606
- this.currentDirection = Xc(v), this.currentDirection !== null && y && y(this.currentDirection);
3606
+ this.currentDirection = Xc(C), this.currentDirection !== null && y && y(this.currentDirection);
3607
3607
  return;
3608
3608
  }
3609
- this.updateAxis("x", f.point, v), this.updateAxis("y", f.point, v), this.visualElement.render(), k && k(h, f);
3609
+ this.updateAxis("x", f.point, C), this.updateAxis("y", f.point, C), this.visualElement.render(), w && w(h, f);
3610
3610
  }, c = (h, f) => {
3611
3611
  this.latestPointerEvent = h, this.latestPanInfo = f, this.stop(h, f), this.latestPointerEvent = null, this.latestPanInfo = null;
3612
- }, u = () => ct((h) => this.getAnimationState(h) === "paused" && this.getAxisMotionValue(h).animation?.play()), { dragSnapToOrigin: d } = this.getProps();
3612
+ }, u = () => ut((h) => this.getAnimationState(h) === "paused" && this.getAxisMotionValue(h).animation?.play()), { dragSnapToOrigin: d } = this.getProps();
3613
3613
  this.panSession = new wr(e, {
3614
3614
  onSessionStart: r,
3615
3615
  onStart: o,
@@ -3633,7 +3633,7 @@ class Yc {
3633
3633
  const { velocity: o } = i;
3634
3634
  this.startAnimation(o);
3635
3635
  const { onDragEnd: a } = this.getProps();
3636
- a && W.postRender(() => a(s, i));
3636
+ a && K.postRender(() => a(s, i));
3637
3637
  }
3638
3638
  /**
3639
3639
  * @internal
@@ -3647,7 +3647,7 @@ class Yc {
3647
3647
  }
3648
3648
  updateAxis(e, n, s) {
3649
3649
  const { drag: i } = this.getProps();
3650
- if (!s || !be(e, i, this.currentDirection))
3650
+ if (!s || !Le(e, i, this.currentDirection))
3651
3651
  return;
3652
3652
  const r = this.getAxisMotionValue(e);
3653
3653
  let o = this.originPoint[e] + s[e];
@@ -3655,16 +3655,16 @@ class Yc {
3655
3655
  }
3656
3656
  resolveConstraints() {
3657
3657
  const { dragConstraints: e, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, i = this.constraints;
3658
- e && Ot(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = Wc(s.layoutBox, e) : this.constraints = !1, this.elastic = Zc(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && ct((r) => {
3658
+ e && Ft(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = Wc(s.layoutBox, e) : this.constraints = !1, this.elastic = Zc(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && ut((r) => {
3659
3659
  this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = Hc(s.layoutBox[r], this.constraints[r]));
3660
3660
  });
3661
3661
  }
3662
3662
  resolveRefConstraints() {
3663
3663
  const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
3664
- if (!e || !Ot(e))
3664
+ if (!e || !Ft(e))
3665
3665
  return !1;
3666
3666
  const s = e.current;
3667
- vt(s !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
3667
+ Ct(s !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
3668
3668
  const { projection: i } = this.visualElement;
3669
3669
  if (!i || !i.layout)
3670
3670
  return !1;
@@ -3677,8 +3677,8 @@ class Yc {
3677
3677
  return o;
3678
3678
  }
3679
3679
  startAnimation(e) {
3680
- const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), c = this.constraints || {}, u = ct((d) => {
3681
- if (!be(d, n, this.currentDirection))
3680
+ const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: r, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), c = this.constraints || {}, u = ut((d) => {
3681
+ if (!Le(d, n, this.currentDirection))
3682
3682
  return;
3683
3683
  let h = c && c[d] || {};
3684
3684
  o && (h = { min: 0, max: 0 });
@@ -3702,10 +3702,10 @@ class Yc {
3702
3702
  return xn(this.visualElement, e), s.start(hs(e, s, 0, n, this.visualElement, !1));
3703
3703
  }
3704
3704
  stopAnimation() {
3705
- ct((e) => this.getAxisMotionValue(e).stop());
3705
+ ut((e) => this.getAxisMotionValue(e).stop());
3706
3706
  }
3707
3707
  pauseAnimation() {
3708
- ct((e) => this.getAxisMotionValue(e).animation?.pause());
3708
+ ut((e) => this.getAxisMotionValue(e).animation?.pause());
3709
3709
  }
3710
3710
  getAnimationState(e) {
3711
3711
  return this.getAxisMotionValue(e).animation?.state;
@@ -3721,9 +3721,9 @@ class Yc {
3721
3721
  return i || this.visualElement.getValue(e, (s.initial ? s.initial[e] : void 0) || 0);
3722
3722
  }
3723
3723
  snapToCursor(e) {
3724
- ct((n) => {
3724
+ ut((n) => {
3725
3725
  const { drag: s } = this.getProps();
3726
- if (!be(n, s, this.currentDirection))
3726
+ if (!Le(n, s, this.currentDirection))
3727
3727
  return;
3728
3728
  const { projection: i } = this.visualElement, r = this.getAxisMotionValue(n);
3729
3729
  if (i && i.layout) {
@@ -3741,11 +3741,11 @@ class Yc {
3741
3741
  if (!this.visualElement.current)
3742
3742
  return;
3743
3743
  const { drag: e, dragConstraints: n } = this.getProps(), { projection: s } = this.visualElement;
3744
- if (!Ot(n) || !s || !this.constraints)
3744
+ if (!Ft(n) || !s || !this.constraints)
3745
3745
  return;
3746
3746
  this.stopAnimation();
3747
3747
  const i = { x: 0, y: 0 };
3748
- ct((o) => {
3748
+ ut((o) => {
3749
3749
  const a = this.getAxisMotionValue(o);
3750
3750
  if (a && this.constraints !== !1) {
3751
3751
  const c = a.get();
@@ -3753,8 +3753,8 @@ class Yc {
3753
3753
  }
3754
3754
  });
3755
3755
  const { transformTemplate: r } = this.visualElement.getProps();
3756
- this.visualElement.current.style.transform = r ? r({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(), ct((o) => {
3757
- if (!be(o, e, null))
3756
+ this.visualElement.current.style.transform = r ? r({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(), ut((o) => {
3757
+ if (!Le(o, e, null))
3758
3758
  return;
3759
3759
  const a = this.getAxisMotionValue(o), { min: c, max: u } = this.constraints[o];
3760
3760
  a.set(H(c, u, i[o]));
@@ -3769,11 +3769,11 @@ class Yc {
3769
3769
  u && d && this.start(c);
3770
3770
  }), s = () => {
3771
3771
  const { dragConstraints: c } = this.getProps();
3772
- Ot(c) && c.current && (this.constraints = this.resolveRefConstraints());
3772
+ Ft(c) && c.current && (this.constraints = this.resolveRefConstraints());
3773
3773
  }, { projection: i } = this.visualElement, r = i.addEventListener("measure", s);
3774
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), W.read(s);
3774
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), K.read(s);
3775
3775
  const o = me(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: u }) => {
3776
- this.isDragging && u && (ct((d) => {
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));
3779
3779
  }), this.visualElement.render());
@@ -3795,31 +3795,31 @@ class Yc {
3795
3795
  };
3796
3796
  }
3797
3797
  }
3798
- function be(t, e, n) {
3798
+ function Le(t, e, n) {
3799
3799
  return (e === !0 || e === t) && (n === null || n === t);
3800
3800
  }
3801
3801
  function Xc(t, e = 10) {
3802
3802
  let n = null;
3803
3803
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
3804
3804
  }
3805
- class qc extends Pt {
3805
+ class qc extends Vt {
3806
3806
  constructor(e) {
3807
- super(e), this.removeGroupControls = ut, this.removeListeners = ut, this.controls = new Yc(e);
3807
+ super(e), this.removeGroupControls = dt, this.removeListeners = dt, this.controls = new Yc(e);
3808
3808
  }
3809
3809
  mount() {
3810
3810
  const { dragControls: e } = this.node.getProps();
3811
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || ut;
3811
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || dt;
3812
3812
  }
3813
3813
  unmount() {
3814
3814
  this.removeGroupControls(), this.removeListeners();
3815
3815
  }
3816
3816
  }
3817
3817
  const mi = (t) => (e, n) => {
3818
- t && W.postRender(() => t(e, n));
3818
+ t && K.postRender(() => t(e, n));
3819
3819
  };
3820
- class Jc extends Pt {
3820
+ class Jc extends Vt {
3821
3821
  constructor() {
3822
- super(...arguments), this.removePointerDownListener = ut;
3822
+ super(...arguments), this.removePointerDownListener = dt;
3823
3823
  }
3824
3824
  onPointerDown(e) {
3825
3825
  this.session = new wr(e, this.createPanHandlers(), {
@@ -3834,7 +3834,7 @@ class Jc extends Pt {
3834
3834
  onStart: mi(n),
3835
3835
  onMove: s,
3836
3836
  onEnd: (r, o) => {
3837
- delete this.session, i && W.postRender(() => i(r, o));
3837
+ delete this.session, i && K.postRender(() => i(r, o));
3838
3838
  }
3839
3839
  };
3840
3840
  }
@@ -3848,7 +3848,7 @@ class Jc extends Pt {
3848
3848
  this.removePointerDownListener(), this.session && this.session.end();
3849
3849
  }
3850
3850
  }
3851
- const Se = {
3851
+ const Pe = {
3852
3852
  /**
3853
3853
  * Global flag as to whether the tree has animated since the last time
3854
3854
  * we resized the window
@@ -3868,7 +3868,7 @@ const se = {
3868
3868
  if (!e.target)
3869
3869
  return t;
3870
3870
  if (typeof t == "string")
3871
- if (A.test(t))
3871
+ if (V.test(t))
3872
3872
  t = parseFloat(t);
3873
3873
  else
3874
3874
  return t;
@@ -3877,10 +3877,10 @@ const se = {
3877
3877
  }
3878
3878
  }, Qc = {
3879
3879
  correct: (t, { treeScale: e, projectionDelta: n }) => {
3880
- const s = t, i = Mt.parse(t);
3880
+ const s = t, i = Pt.parse(t);
3881
3881
  if (i.length > 5)
3882
3882
  return s;
3883
- const r = Mt.createTransformer(t), o = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, c = n.y.scale * e.y;
3883
+ const r = Pt.createTransformer(t), o = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, c = n.y.scale * e.y;
3884
3884
  i[0 + o] /= a, i[1 + o] /= c;
3885
3885
  const u = H(a, c, 0.5);
3886
3886
  return typeof i[2 + o] == "number" && (i[2 + o] /= u), typeof i[3 + o] == "number" && (i[3 + o] /= u), r(i);
@@ -3900,11 +3900,11 @@ class t0 extends fa {
3900
3900
  }), r.setOptions({
3901
3901
  ...r.options,
3902
3902
  onExitComplete: () => this.safeToRemove()
3903
- })), Se.hasEverUpdated = !0;
3903
+ })), Pe.hasEverUpdated = !0;
3904
3904
  }
3905
3905
  getSnapshotBeforeUpdate(e) {
3906
3906
  const { layoutDependency: n, visualElement: s, drag: i, isPresent: r } = this.props, { projection: o } = s;
3907
- return o && (o.isPresent = r, yi = !0, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== r ? o.willUpdate() : this.safeToRemove(), e.isPresent !== r && (r ? o.promote() : o.relegate() || W.postRender(() => {
3907
+ return o && (o.isPresent = r, yi = !0, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== r ? o.willUpdate() : this.safeToRemove(), e.isPresent !== r && (r ? o.promote() : o.relegate() || K.postRender(() => {
3908
3908
  const a = o.getStack();
3909
3909
  (!a || !a.members.length) && this.safeToRemove();
3910
3910
  }))), null;
@@ -3928,8 +3928,8 @@ class t0 extends fa {
3928
3928
  }
3929
3929
  }
3930
3930
  function jr(t) {
3931
- const [e, n] = Xo(), s = J(Rn);
3932
- return l.jsx(t0, { ...t, layoutGroup: s, switchLayoutGroup: J(er), isPresent: e, safeToRemove: n });
3931
+ const [e, n] = Xo(), s = Q(Rn);
3932
+ return l.jsx(t0, { ...t, layoutGroup: s, switchLayoutGroup: Q(er), isPresent: e, safeToRemove: n });
3933
3933
  }
3934
3934
  const e0 = {
3935
3935
  borderRadius: {
@@ -3948,7 +3948,7 @@ const e0 = {
3948
3948
  boxShadow: Qc
3949
3949
  };
3950
3950
  function n0(t, e, n) {
3951
- const s = nt(t) ? t : Ht(t);
3951
+ const s = nt(t) ? t : Zt(t);
3952
3952
  return s.start(hs("", s, e, n)), s.animation;
3953
3953
  }
3954
3954
  const s0 = (t, e) => t.depth - e.depth;
@@ -3969,11 +3969,11 @@ class i0 {
3969
3969
  function o0(t, e) {
3970
3970
  const n = ot.now(), s = ({ timestamp: i }) => {
3971
3971
  const r = i - n;
3972
- r >= e && (Tt(s), t(r - e));
3972
+ r >= e && (St(s), t(r - e));
3973
3973
  };
3974
- return W.setup(s, !0), () => Tt(s);
3974
+ return K.setup(s, !0), () => St(s);
3975
3975
  }
3976
- const br = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], r0 = br.length, xi = (t) => typeof t == "string" ? parseFloat(t) : t, vi = (t) => typeof t == "number" || A.test(t);
3976
+ const br = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], r0 = br.length, xi = (t) => typeof t == "string" ? parseFloat(t) : t, vi = (t) => typeof t == "number" || V.test(t);
3977
3977
  function a0(t, e, n, s, i, r) {
3978
3978
  i ? (t.opacity = H(0, n.opacity ?? 1, l0(s)), t.opacityExit = H(e.opacity ?? 1, 0, c0(s))) : r && (t.opacity = H(e.opacity ?? 1, n.opacity ?? 1, s));
3979
3979
  for (let o = 0; o < r0; o++) {
@@ -3981,31 +3981,31 @@ function a0(t, e, n, s, i, r) {
3981
3981
  let c = Ci(e, a), u = Ci(n, a);
3982
3982
  if (c === void 0 && u === void 0)
3983
3983
  continue;
3984
- c || (c = 0), u || (u = 0), c === 0 || u === 0 || vi(c) === vi(u) ? (t[a] = Math.max(H(xi(c), xi(u), s), 0), (gt.test(u) || gt.test(c)) && (t[a] += "%")) : t[a] = u;
3984
+ c || (c = 0), u || (u = 0), c === 0 || u === 0 || vi(c) === vi(u) ? (t[a] = Math.max(H(xi(c), xi(u), s), 0), (yt.test(u) || yt.test(c)) && (t[a] += "%")) : t[a] = u;
3985
3985
  }
3986
3986
  (e.rotate || n.rotate) && (t.rotate = H(e.rotate || 0, n.rotate || 0, s));
3987
3987
  }
3988
3988
  function Ci(t, e) {
3989
3989
  return t[e] !== void 0 ? t[e] : t.borderRadius;
3990
3990
  }
3991
- const l0 = /* @__PURE__ */ Lr(0, 0.5, yo), c0 = /* @__PURE__ */ Lr(0.5, 0.95, ut);
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
3993
  return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ ce(t, e, s));
3994
3994
  }
3995
3995
  function wi(t, e) {
3996
3996
  t.min = e.min, t.max = e.max;
3997
3997
  }
3998
- function lt(t, e) {
3998
+ function ct(t, e) {
3999
3999
  wi(t.x, e.x), wi(t.y, e.y);
4000
4000
  }
4001
4001
  function ki(t, e) {
4002
4002
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
4003
4003
  }
4004
4004
  function ji(t, e, n, s, i) {
4005
- return t -= e, t = De(t, 1 / n, s), i !== void 0 && (t = De(t, 1 / i, s)), t;
4005
+ return t -= e, t = Ee(t, 1 / n, s), i !== void 0 && (t = Ee(t, 1 / i, s)), t;
4006
4006
  }
4007
4007
  function u0(t, e = 0, n = 1, s = 0.5, i, r = t, o = t) {
4008
- if (gt.test(e) && (e = parseFloat(e), e = H(o.min, o.max, e / 100) - o.min), typeof e != "number")
4008
+ if (yt.test(e) && (e = parseFloat(e), e = H(o.min, o.max, e / 100) - o.min), typeof e != "number")
4009
4009
  return;
4010
4010
  let a = H(r.min, r.max, s);
4011
4011
  t === r && (a -= e), t.min = ji(t.min, e, n, a, i), t.max = ji(t.max, e, n, a, i);
@@ -4036,7 +4036,7 @@ function Mr(t, e) {
4036
4036
  return Si(t.x, e.x) && Si(t.y, e.y);
4037
4037
  }
4038
4038
  function Pi(t) {
4039
- return it(t.x) / it(t.y);
4039
+ return st(t.x) / st(t.y);
4040
4040
  }
4041
4041
  function Ai(t, e) {
4042
4042
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
@@ -4120,7 +4120,7 @@ function Sr(t) {
4120
4120
  const n = ur(e);
4121
4121
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
4122
4122
  const { layout: i, layoutId: r } = t.options;
4123
- window.MotionCancelOptimisedAnimation(n, "transform", W, !(i || r));
4123
+ window.MotionCancelOptimisedAnimation(n, "transform", K, !(i || r));
4124
4124
  }
4125
4125
  const { parent: s } = t;
4126
4126
  s && !s.hasCheckedOptimisedAppear && Sr(s);
@@ -4158,11 +4158,11 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4158
4158
  if (u && !u.current && u.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (c || a) && (this.isLayoutDirty = !0), t) {
4159
4159
  let d, h = 0;
4160
4160
  const f = () => this.root.updateBlockedByResize = !1;
4161
- W.read(() => {
4161
+ K.read(() => {
4162
4162
  h = window.innerWidth;
4163
4163
  }), t(o, () => {
4164
4164
  const p = window.innerWidth;
4165
- p !== h && (h = p, this.root.updateBlockedByResize = !0, d && d(), d = o0(f, 250), Se.hasAnimatedSinceResize && (Se.hasAnimatedSinceResize = !1, this.nodes.forEach(Di)));
4165
+ p !== h && (h = p, this.root.updateBlockedByResize = !0, d && d(), d = o0(f, 250), Pe.hasAnimatedSinceResize && (Pe.hasAnimatedSinceResize = !1, this.nodes.forEach(Di)));
4166
4166
  });
4167
4167
  }
4168
4168
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && u && (a || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: p }) => {
@@ -4170,15 +4170,15 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4170
4170
  this.target = void 0, this.relativeTarget = void 0;
4171
4171
  return;
4172
4172
  }
4173
- const m = this.options.transition || u.getDefaultTransition() || A0, { onLayoutAnimationStart: y, onLayoutAnimationComplete: k } = u.getProps(), v = !this.targetLayout || !Mr(this.targetLayout, p), x = !h && f;
4174
- if (this.options.layoutRoot || this.resumeFrom || x || h && (v || !this.currentAnimation)) {
4173
+ const m = this.options.transition || u.getDefaultTransition() || A0, { onLayoutAnimationStart: y, onLayoutAnimationComplete: w } = u.getProps(), C = !this.targetLayout || !Mr(this.targetLayout, p), x = !h && f;
4174
+ if (this.options.layoutRoot || this.resumeFrom || x || h && (C || !this.currentAnimation)) {
4175
4175
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
4176
- const C = {
4176
+ const v = {
4177
4177
  ...Qn(m, "layout"),
4178
4178
  onPlay: y,
4179
- onComplete: k
4179
+ onComplete: w
4180
4180
  };
4181
- (u.shouldReduceMotion || this.options.layoutRoot) && (C.delay = 0, C.type = !1), this.startAnimation(C), this.setAnimationOrigin(d, x);
4181
+ (u.shouldReduceMotion || this.options.layoutRoot) && (v.delay = 0, v.type = !1), this.startAnimation(v), this.setAnimationOrigin(d, x);
4182
4182
  } else
4183
4183
  h || Di(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4184
4184
  this.targetLayout = p;
@@ -4187,7 +4187,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4187
4187
  unmount() {
4188
4188
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
4189
4189
  const o = this.getStack();
4190
- o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), Tt(this.updateProjection);
4190
+ o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), St(this.updateProjection);
4191
4191
  }
4192
4192
  // only on the root
4193
4193
  blockUpdate() {
@@ -4239,7 +4239,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4239
4239
  }
4240
4240
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(j0), this.nodes.forEach(x0), this.nodes.forEach(v0)) : this.nodes.forEach(Ri), this.clearAllSnapshots();
4241
4241
  const a = ot.now();
4242
- et.delta = xt(0, 1e3 / 60, a - et.timestamp), et.timestamp = a, et.isProcessing = !0, Ue.update.process(et), Ue.preRender.process(et), Ue.render.process(et), et.isProcessing = !1;
4242
+ et.delta = vt(0, 1e3 / 60, a - et.timestamp), et.timestamp = a, et.isProcessing = !0, Ue.update.process(et), Ue.preRender.process(et), Ue.render.process(et), et.isProcessing = !1;
4243
4243
  }
4244
4244
  didUpdate() {
4245
4245
  this.updateScheduled || (this.updateScheduled = !0, es.read(this.scheduleUpdate));
@@ -4248,10 +4248,10 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4248
4248
  this.nodes.forEach(k0), this.sharedNodes.forEach(M0);
4249
4249
  }
4250
4250
  scheduleUpdateProjection() {
4251
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, W.preRender(this.updateProjection, !1, !0));
4251
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, K.preRender(this.updateProjection, !1, !0));
4252
4252
  }
4253
4253
  scheduleCheckAfterUnmount() {
4254
- W.postRender(() => {
4254
+ K.postRender(() => {
4255
4255
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
4256
4256
  });
4257
4257
  }
@@ -4259,7 +4259,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4259
4259
  * Update measurements
4260
4260
  */
4261
4261
  updateSnapshot() {
4262
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !it(this.snapshot.measuredBox.x) && !it(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
4262
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !st(this.snapshot.measuredBox.x) && !st(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
4263
4263
  }
4264
4264
  updateLayout() {
4265
4265
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -4268,7 +4268,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4268
4268
  for (let c = 0; c < this.path.length; c++)
4269
4269
  this.path[c].updateScroll();
4270
4270
  const o = this.layout;
4271
- this.layout = this.measure(!1), this.layoutCorrected = Y(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4271
+ this.layout = this.measure(!1), this.layoutCorrected = X(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4272
4272
  const { visualElement: a } = this.options;
4273
4273
  a && a.notify("LayoutMeasure", this.layout.layoutBox, o ? o.layoutBox : void 0);
4274
4274
  }
@@ -4289,7 +4289,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4289
4289
  if (!i)
4290
4290
  return;
4291
4291
  const o = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !Tr(this.projectionDelta), c = this.getTransformTemplate(), u = c ? c(this.latestValues, "") : void 0, d = u !== this.prevTransformTemplateValue;
4292
- o && this.instance && (a || Rt(this.latestValues) || d) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
4292
+ o && this.instance && (a || Dt(this.latestValues) || d) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
4293
4293
  }
4294
4294
  measure(o = !0) {
4295
4295
  const a = this.measurePageBox();
@@ -4305,48 +4305,48 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4305
4305
  measurePageBox() {
4306
4306
  const { visualElement: o } = this.options;
4307
4307
  if (!o)
4308
- return Y();
4308
+ return X();
4309
4309
  const a = o.measureViewportBox();
4310
4310
  if (!(this.scroll?.wasRoot || this.path.some(R0))) {
4311
4311
  const { scroll: u } = this.root;
4312
- u && (zt(a.x, u.offset.x), zt(a.y, u.offset.y));
4312
+ u && (Kt(a.x, u.offset.x), Kt(a.y, u.offset.y));
4313
4313
  }
4314
4314
  return a;
4315
4315
  }
4316
4316
  removeElementScroll(o) {
4317
- const a = Y();
4318
- if (lt(a, o), this.scroll?.wasRoot)
4317
+ const a = X();
4318
+ if (ct(a, o), this.scroll?.wasRoot)
4319
4319
  return a;
4320
4320
  for (let c = 0; c < this.path.length; c++) {
4321
4321
  const u = this.path[c], { scroll: d, options: h } = u;
4322
- u !== this.root && d && h.layoutScroll && (d.wasRoot && lt(a, o), zt(a.x, d.offset.x), zt(a.y, d.offset.y));
4322
+ u !== this.root && d && h.layoutScroll && (d.wasRoot && ct(a, o), Kt(a.x, d.offset.x), Kt(a.y, d.offset.y));
4323
4323
  }
4324
4324
  return a;
4325
4325
  }
4326
4326
  applyTransform(o, a = !1) {
4327
- const c = Y();
4328
- lt(c, o);
4327
+ const c = X();
4328
+ ct(c, o);
4329
4329
  for (let u = 0; u < this.path.length; u++) {
4330
4330
  const d = this.path[u];
4331
- !a && d.options.layoutScroll && d.scroll && d !== d.root && Kt(c, {
4331
+ !a && d.options.layoutScroll && d.scroll && d !== d.root && Wt(c, {
4332
4332
  x: -d.scroll.offset.x,
4333
4333
  y: -d.scroll.offset.y
4334
- }), Rt(d.latestValues) && Kt(c, d.latestValues);
4334
+ }), Dt(d.latestValues) && Wt(c, d.latestValues);
4335
4335
  }
4336
- return Rt(this.latestValues) && Kt(c, this.latestValues), c;
4336
+ return Dt(this.latestValues) && Wt(c, this.latestValues), c;
4337
4337
  }
4338
4338
  removeTransform(o) {
4339
- const a = Y();
4340
- lt(a, o);
4339
+ const a = X();
4340
+ ct(a, o);
4341
4341
  for (let c = 0; c < this.path.length; c++) {
4342
4342
  const u = this.path[c];
4343
- if (!u.instance || !Rt(u.latestValues))
4343
+ if (!u.instance || !Dt(u.latestValues))
4344
4344
  continue;
4345
4345
  Cn(u.latestValues) && u.updateSnapshot();
4346
- const d = Y(), h = u.measurePageBox();
4347
- lt(d, h), Li(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, d);
4346
+ const d = X(), h = u.measurePageBox();
4347
+ ct(d, h), Li(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, d);
4348
4348
  }
4349
- return Rt(this.latestValues) && Li(a, this.latestValues), a;
4349
+ return Dt(this.latestValues) && Li(a, this.latestValues), a;
4350
4350
  }
4351
4351
  setTargetDelta(o) {
4352
4352
  this.targetDelta = o, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -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 = Y(), this.relativeTargetOrigin = Y(), le(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), lt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4377
+ f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = X(), this.relativeTargetOrigin = X(), le(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4378
4378
  }
4379
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Y(), this.targetWithTransforms = Y()), 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) : lt(this.target, this.layout.layoutBox), xr(this.target, this.targetDelta)) : lt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4379
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = X(), this.targetWithTransforms = X()), 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 = Y(), this.relativeTargetOrigin = Y(), le(this.relativeTargetOrigin, this.target, f.target), lt(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 = X(), this.relativeTargetOrigin = X(), le(this.relativeTargetOrigin, this.target, f.target), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4383
4383
  }
4384
4384
  }
4385
4385
  }
@@ -4398,9 +4398,9 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4398
4398
  const { layout: u, layoutId: d } = this.options;
4399
4399
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d))
4400
4400
  return;
4401
- lt(this.layoutCorrected, this.layout.layoutBox);
4401
+ ct(this.layoutCorrected, this.layout.layoutBox);
4402
4402
  const h = this.treeScale.x, f = this.treeScale.y;
4403
- Bc(this.layoutCorrected, this.treeScale, this.path, a), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = Y());
4403
+ Bc(this.layoutCorrected, this.treeScale, this.path, a), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = X());
4404
4404
  const { target: p } = o;
4405
4405
  if (!p) {
4406
4406
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -4422,22 +4422,22 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4422
4422
  this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
4423
4423
  }
4424
4424
  createProjectionDeltas() {
4425
- this.prevProjectionDelta = Ft(), this.projectionDelta = Ft(), this.projectionDeltaWithTransform = Ft();
4425
+ this.prevProjectionDelta = zt(), this.projectionDelta = zt(), this.projectionDeltaWithTransform = zt();
4426
4426
  }
4427
4427
  setAnimationOrigin(o, a = !1) {
4428
- const c = this.snapshot, u = c ? c.latestValues : {}, d = { ...this.latestValues }, h = Ft();
4428
+ const c = this.snapshot, u = c ? c.latestValues : {}, d = { ...this.latestValues }, h = zt();
4429
4429
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4430
- const f = Y(), p = c ? c.source : void 0, m = this.layout ? this.layout.source : void 0, y = p !== m, k = this.getStack(), v = !k || k.members.length <= 1, x = !!(y && !v && this.options.crossfade === !0 && !this.path.some(P0));
4430
+ const f = X(), p = c ? c.source : void 0, m = this.layout ? this.layout.source : void 0, y = p !== m, w = this.getStack(), C = !w || w.members.length <= 1, x = !!(y && !C && this.options.crossfade === !0 && !this.path.some(P0));
4431
4431
  this.animationProgress = 0;
4432
- let C;
4432
+ let v;
4433
4433
  this.mixTargetDelta = (T) => {
4434
- const w = T / 1e3;
4435
- Ei(h.x, o.x, w), Ei(h.y, o.y, w), 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, w), C && f0(this.relativeTarget, C) && (this.isProjectionDirty = !1), C || (C = Y()), lt(C, this.relativeTarget)), y && (this.animationValues = d, a0(d, u, this.latestValues, w, x, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
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), v && f0(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = X()), ct(v, this.relativeTarget)), y && (this.animationValues = d, a0(d, u, this.latestValues, k, x, C)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = k;
4436
4436
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4437
4437
  }
4438
4438
  startAnimation(o) {
4439
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Tt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = W.update(() => {
4440
- Se.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Ht(0)), this.currentAnimation = n0(this.motionValue, [0, 1e3], {
4439
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (St(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = K.update(() => {
4440
+ Pe.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Zt(0)), this.currentAnimation = n0(this.motionValue, [0, 1e3], {
4441
4441
  ...o,
4442
4442
  velocity: 0,
4443
4443
  isSync: !0,
@@ -4465,13 +4465,13 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4465
4465
  let { targetWithTransforms: a, target: c, layout: u, latestValues: d } = o;
4466
4466
  if (!(!a || !c || !u)) {
4467
4467
  if (this !== o && this.layout && u && Ar(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4468
- c = this.target || Y();
4469
- const h = it(this.layout.layoutBox.x);
4468
+ c = this.target || X();
4469
+ const h = st(this.layout.layoutBox.x);
4470
4470
  c.x.min = o.target.x.min, c.x.max = c.x.min + h;
4471
- const f = it(this.layout.layoutBox.y);
4471
+ const f = st(this.layout.layoutBox.y);
4472
4472
  c.y.min = o.target.y.min, c.y.max = c.y.min + f;
4473
4473
  }
4474
- lt(a, c), Kt(a, d), ae(this.projectionDeltaWithTransform, this.layoutCorrected, a, d);
4474
+ ct(a, c), Wt(a, d), ae(this.projectionDeltaWithTransform, this.layoutCorrected, a, d);
4475
4475
  }
4476
4476
  }
4477
4477
  registerSharedNode(o, a) {
@@ -4533,12 +4533,12 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4533
4533
  }
4534
4534
  const c = this.getTransformTemplate();
4535
4535
  if (this.needsReset) {
4536
- this.needsReset = !1, o.visibility = "", o.opacity = "", o.pointerEvents = Me(a?.pointerEvents) || "", o.transform = c ? c(this.latestValues, "") : "none";
4536
+ this.needsReset = !1, o.visibility = "", o.opacity = "", o.pointerEvents = Se(a?.pointerEvents) || "", o.transform = c ? c(this.latestValues, "") : "none";
4537
4537
  return;
4538
4538
  }
4539
4539
  const u = this.getLead();
4540
4540
  if (!this.projectionDelta || !this.layout || !u.target) {
4541
- this.options.layoutId && (o.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, o.pointerEvents = Me(a?.pointerEvents) || ""), this.hasProjected && !Rt(this.latestValues) && (o.transform = c ? c({}, "") : "none", this.hasProjected = !1);
4541
+ this.options.layoutId && (o.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, o.pointerEvents = Se(a?.pointerEvents) || ""), this.hasProjected && !Dt(this.latestValues) && (o.transform = c ? c({}, "") : "none", this.hasProjected = !1);
4542
4542
  return;
4543
4543
  }
4544
4544
  o.visibility = "";
@@ -4551,15 +4551,15 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4551
4551
  for (const m in fe) {
4552
4552
  if (d[m] === void 0)
4553
4553
  continue;
4554
- const { correct: y, applyTo: k, isCSSVariable: v } = fe[m], x = h === "none" ? d[m] : y(d[m], u);
4555
- if (k) {
4556
- const C = k.length;
4557
- for (let T = 0; T < C; T++)
4558
- o[k[T]] = x;
4554
+ const { correct: y, applyTo: w, isCSSVariable: C } = fe[m], x = h === "none" ? d[m] : y(d[m], u);
4555
+ if (w) {
4556
+ const v = w.length;
4557
+ for (let T = 0; T < v; T++)
4558
+ o[w[T]] = x;
4559
4559
  } else
4560
- v ? this.options.visualElement.renderState.vars[m] = x : o[m] = x;
4560
+ C ? this.options.visualElement.renderState.vars[m] = x : o[m] = x;
4561
4561
  }
4562
- this.options.layoutId && (o.pointerEvents = u === this ? Me(a?.pointerEvents) || "" : "none");
4562
+ this.options.layoutId && (o.pointerEvents = u === this ? Se(a?.pointerEvents) || "" : "none");
4563
4563
  }
4564
4564
  clearSnapshot() {
4565
4565
  this.resumeFrom = this.snapshot = void 0;
@@ -4577,16 +4577,16 @@ function v0(t) {
4577
4577
  const e = t.resumeFrom?.snapshot || t.snapshot;
4578
4578
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
4579
4579
  const { layoutBox: n, measuredBox: s } = t.layout, { animationType: i } = t.options, r = e.source !== t.layout.source;
4580
- i === "size" ? ct((d) => {
4581
- const h = r ? e.measuredBox[d] : e.layoutBox[d], f = it(h);
4580
+ i === "size" ? ut((d) => {
4581
+ const h = r ? e.measuredBox[d] : e.layoutBox[d], f = st(h);
4582
4582
  h.min = n[d].min, h.max = h.min + f;
4583
- }) : Ar(i, e.layoutBox, n) && ct((d) => {
4584
- const h = r ? e.measuredBox[d] : e.layoutBox[d], f = it(n[d]);
4583
+ }) : Ar(i, e.layoutBox, n) && ut((d) => {
4584
+ const h = r ? e.measuredBox[d] : e.layoutBox[d], f = st(n[d]);
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
- const o = Ft();
4587
+ const o = zt();
4588
4588
  ae(o, n, e.layoutBox);
4589
- const a = Ft();
4589
+ const a = zt();
4590
4590
  r ? ae(a, t.applyTransform(s, !0), e.measuredBox) : ae(a, n, e.layoutBox);
4591
4591
  const c = !Tr(o);
4592
4592
  let u = !1;
@@ -4595,9 +4595,9 @@ function v0(t) {
4595
4595
  if (d && !d.resumeFrom) {
4596
4596
  const { snapshot: h, layout: f } = d;
4597
4597
  if (h && f) {
4598
- const p = Y();
4598
+ const p = X();
4599
4599
  le(p, e.layoutBox, h.layoutBox);
4600
- const m = Y();
4600
+ const m = X();
4601
4601
  le(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
  }
@@ -4665,7 +4665,7 @@ function P0(t) {
4665
4665
  const A0 = {
4666
4666
  duration: 0.45,
4667
4667
  ease: [0.4, 0, 0.1, 1]
4668
- }, Ni = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Bi = Ni("applewebkit/") && !Ni("chrome/") ? Math.round : ut;
4668
+ }, Ni = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Bi = Ni("applewebkit/") && !Ni("chrome/") ? Math.round : dt;
4669
4669
  function Ii(t) {
4670
4670
  t.min = Bi(t.min), t.max = Bi(t.max);
4671
4671
  }
@@ -4717,9 +4717,9 @@ 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 && K.postRender(() => r(e, ve(e)));
4721
4721
  }
4722
- class _0 extends Pt {
4722
+ class _0 extends Vt {
4723
4723
  mount() {
4724
4724
  const { current: e } = this.node;
4725
4725
  e && (this.unmount = cl(e, (n, s) => (Oi(this.node, s, "Start"), (i) => Oi(this.node, i, "End"))));
@@ -4727,7 +4727,7 @@ class _0 extends Pt {
4727
4727
  unmount() {
4728
4728
  }
4729
4729
  }
4730
- class N0 extends Pt {
4730
+ class N0 extends Vt {
4731
4731
  constructor() {
4732
4732
  super(...arguments), this.isActive = !1;
4733
4733
  }
@@ -4755,9 +4755,9 @@ 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 && K.postRender(() => r(e, ve(e)));
4759
4759
  }
4760
- class B0 extends Pt {
4760
+ class B0 extends Vt {
4761
4761
  mount() {
4762
4762
  const { current: e } = this.node;
4763
4763
  e && (this.unmount = fl(e, (n, s) => (Fi(this.node, s, "Start"), (i, { success: r }) => Fi(this.node, i, r ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
@@ -4787,7 +4787,7 @@ const K0 = {
4787
4787
  some: 0,
4788
4788
  all: 1
4789
4789
  };
4790
- class W0 extends Pt {
4790
+ class W0 extends Vt {
4791
4791
  constructor() {
4792
4792
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4793
4793
  }
@@ -4856,14 +4856,14 @@ function Y0(t, e, n) {
4856
4856
  if (nt(i))
4857
4857
  t.addValue(s, i);
4858
4858
  else if (nt(r))
4859
- t.addValue(s, Ht(i, { owner: t }));
4859
+ t.addValue(s, Zt(i, { owner: t }));
4860
4860
  else if (r !== i)
4861
4861
  if (t.hasValue(s)) {
4862
4862
  const o = t.getValue(s);
4863
4863
  o.liveStyle === !0 ? o.jump(i) : o.hasAnimated || o.set(i);
4864
4864
  } else {
4865
4865
  const o = t.getStaticValue(s);
4866
- t.addValue(s, Ht(o !== void 0 ? o : i, { owner: t }));
4866
+ t.addValue(s, Zt(o !== void 0 ? o : i, { owner: t }));
4867
4867
  }
4868
4868
  }
4869
4869
  for (const s in n)
@@ -4895,10 +4895,10 @@ class X0 {
4895
4895
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4896
4896
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
4897
4897
  const f = ot.now();
4898
- this.renderScheduledAt < f && (this.renderScheduledAt = f, W.render(this.render, !1, !0));
4898
+ this.renderScheduledAt < f && (this.renderScheduledAt = f, K.render(this.render, !1, !0));
4899
4899
  };
4900
4900
  const { latestValues: c, renderState: u } = o;
4901
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!r, this.isControllingVariants = Ie(n), this.isVariantNode = Qo(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4901
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!r, this.isControllingVariants = Oe(n), this.isVariantNode = Qo(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4902
4902
  const { willChange: d, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
4903
4903
  for (const f in h) {
4904
4904
  const p = h[f];
@@ -4909,7 +4909,7 @@ class X0 {
4909
4909
  this.current = e, G0.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), Rr.current || Z0(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : bn.current, process.env.NODE_ENV !== "production" && On(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4910
4910
  }
4911
4911
  unmount() {
4912
- this.projection && this.projection.unmount(), Tt(this.notifyUpdate), Tt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
4912
+ this.projection && this.projection.unmount(), St(this.notifyUpdate), St(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
4913
4913
  for (const e in this.events)
4914
4914
  this.events[e].clear();
4915
4915
  for (const e in this.features) {
@@ -4920,10 +4920,10 @@ class X0 {
4920
4920
  }
4921
4921
  bindToMotionValue(e, n) {
4922
4922
  this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
4923
- const s = Jt.has(e);
4923
+ const s = Qt.has(e);
4924
4924
  s && this.onBindTransform && this.onBindTransform();
4925
4925
  const i = n.on("change", (a) => {
4926
- this.latestValues[e] = a, this.props.onUpdate && W.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
4926
+ this.latestValues[e] = a, this.props.onUpdate && K.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
4927
4927
  }), r = n.on("renderRequest", this.scheduleRender);
4928
4928
  let o;
4929
4929
  window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, e, n)), this.valueSubscriptions.set(e, () => {
@@ -4935,8 +4935,8 @@ class X0 {
4935
4935
  }
4936
4936
  updateFeatures() {
4937
4937
  let e = "animation";
4938
- for (e in Zt) {
4939
- const n = Zt[e];
4938
+ for (e in Gt) {
4939
+ const n = Gt[e];
4940
4940
  if (!n)
4941
4941
  continue;
4942
4942
  const { isEnabled: s, Feature: i } = n;
@@ -4955,7 +4955,7 @@ class X0 {
4955
4955
  * removed with a re-render to work.
4956
4956
  */
4957
4957
  measureViewportBox() {
4958
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Y();
4958
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : X();
4959
4959
  }
4960
4960
  getStaticValue(e) {
4961
4961
  return this.latestValues[e];
@@ -5031,7 +5031,7 @@ class X0 {
5031
5031
  if (this.props.values && this.props.values[e])
5032
5032
  return this.props.values[e];
5033
5033
  let s = this.values.get(e);
5034
- return s === void 0 && n !== void 0 && (s = Ht(n === null ? void 0 : n, { owner: this }), this.addValue(e, s)), s;
5034
+ return s === void 0 && n !== void 0 && (s = Zt(n === null ? void 0 : n, { owner: this }), this.addValue(e, s)), s;
5035
5035
  }
5036
5036
  /**
5037
5037
  * If we're trying to animate to a previously unencountered value,
@@ -5040,7 +5040,7 @@ class X0 {
5040
5040
  */
5041
5041
  readValue(e, n) {
5042
5042
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
5043
- return s != null && (typeof s == "string" && (ro(s) || lo(s)) ? s = parseFloat(s) : !gl(s) && Mt.test(n) && (s = $o(e, n)), this.setBaseTarget(e, nt(s) ? s.get() : s)), nt(s) ? s.get() : s;
5043
+ return s != null && (typeof s == "string" && (ro(s) || lo(s)) ? s = parseFloat(s) : !gl(s) && Pt.test(n) && (s = $o(e, n)), this.setBaseTarget(e, nt(s) ? s.get() : s)), nt(s) ? s.get() : s;
5044
5044
  }
5045
5045
  /**
5046
5046
  * Set the base target to later animate back to. This is currently
@@ -5110,7 +5110,7 @@ class J0 extends Dr {
5110
5110
  super(...arguments), this.type = "html", this.renderInstance = Er;
5111
5111
  }
5112
5112
  readValueFromInstance(e, n) {
5113
- if (Jt.has(n))
5113
+ if (Qt.has(n))
5114
5114
  return this.projection?.isProjecting ? dn(n) : k1(e, n);
5115
5115
  {
5116
5116
  const s = q0(e), i = (Kn(n) ? s.getPropertyValue(n) : s[n]) || 0;
@@ -5159,13 +5159,13 @@ function Q0(t, e, n, s) {
5159
5159
  }
5160
5160
  class t2 extends Dr {
5161
5161
  constructor() {
5162
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Y;
5162
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = X;
5163
5163
  }
5164
5164
  getBaseTargetFromProps(e, n) {
5165
5165
  return e[n];
5166
5166
  }
5167
5167
  readValueFromInstance(e, n) {
5168
- if (Jt.has(n)) {
5168
+ if (Qt.has(n)) {
5169
5169
  const s = Wo(n);
5170
5170
  return s && s.default || 0;
5171
5171
  }
@@ -5194,8 +5194,8 @@ const e2 = (t, e) => cs(t) ? new t2(e) : new J0(e, {
5194
5194
  }, e2), s2 = /* @__PURE__ */ Tl(n2), i2 = (t, e) => {
5195
5195
  const { isOpen: n, as: s = "div", children: i, ...r } = t, o = s2[s];
5196
5196
  return /* @__PURE__ */ l.jsx(wl, { children: n && /* @__PURE__ */ l.jsx(o, { ref: e, ...r, children: i }) });
5197
- }, o2 = Z(i2), Oe = B(o2);
5198
- Oe.displayName = "CTransition";
5197
+ }, o2 = Z(i2), Fe = O(o2);
5198
+ Fe.displayName = "CTransition";
5199
5199
  const Nr = Z((t, e) => {
5200
5200
  const {
5201
5201
  type: n = "button",
@@ -5212,12 +5212,12 @@ const Nr = Z((t, e) => {
5212
5212
  onClick: p,
5213
5213
  onMouseDown: m,
5214
5214
  onMouseLeave: y,
5215
- onMouseUp: k,
5216
- onKeyDown: v,
5215
+ onMouseUp: w,
5216
+ onKeyDown: C,
5217
5217
  onKeyUp: x,
5218
- ...C
5219
- } = t, T = X(null), w = Tn(T), j = b(() => c === "plain", [c]);
5220
- ft(e, () => ({
5218
+ ...v
5219
+ } = t, T = q(null), k = Tn(T), L = b(() => c === "plain", [c]);
5220
+ pt(e, () => ({
5221
5221
  focus() {
5222
5222
  T.current?.focus();
5223
5223
  },
@@ -5228,43 +5228,43 @@ const Nr = Z((t, e) => {
5228
5228
  r || T.current?.click();
5229
5229
  }
5230
5230
  }));
5231
- const S = b(() => {
5232
- const E = ["k-button", `k-button--${a}`];
5233
- return s && E.push(s), r && E.push("k-button--disabled"), c && E.push(`k-button--${c}`), o && E.push("k-button--danger"), E.join(" ");
5234
- }, [s, r, a, c, o]), L = b(() => ({ ...f, width: d, height: h }), []), D = M((E) => {
5235
- r || p?.(E);
5236
- }, [r, p]), N = M((E) => {
5237
- m?.(E), !r && !j && w?.register(E);
5238
- }, [w, j, m]), I = M((E) => {
5239
- k?.(E), j || w.remove();
5240
- }, [w, j, k]), z = M((E) => {
5241
- if (y?.(E), !T?.current)
5231
+ const M = b(() => {
5232
+ const D = ["k-button", `k-button--${a}`];
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) => {
5235
+ r || p?.(D);
5236
+ }, [r, p]), N = S((D) => {
5237
+ m?.(D), !r && !L && k?.register(D);
5238
+ }, [k, L, m]), B = S((D) => {
5239
+ w?.(D), L || k.remove();
5240
+ }, [k, L, w]), F = S((D) => {
5241
+ if (y?.(D), !T?.current)
5242
5242
  throw Error("Invalid rootRef.");
5243
- j || w.remove();
5244
- }, [w, j, y]), R = M((E) => {
5245
- v?.(E), j || w?.register(E);
5246
- }, [w, v]), G = M((E) => {
5247
- x?.(E), j || Lt(E, () => w.remove());
5248
- }, [w, x]);
5243
+ L || k.remove();
5244
+ }, [k, L, y]), R = S((D) => {
5245
+ C?.(D), L || k?.register(D);
5246
+ }, [k, C]), G = S((D) => {
5247
+ x?.(D), L || Mt(D, () => k.remove());
5248
+ }, [k, x]);
5249
5249
  return /* @__PURE__ */ l.jsx(
5250
5250
  Ji,
5251
5251
  {
5252
5252
  ref: T,
5253
- ...C,
5253
+ ...v,
5254
5254
  type: n,
5255
5255
  label: i,
5256
- className: S,
5257
- style: L,
5256
+ className: M,
5257
+ style: j,
5258
5258
  disabled: r,
5259
5259
  onMouseDown: N,
5260
- onMouseLeave: z,
5261
- onClick: D,
5262
- onMouseUp: I,
5260
+ onMouseLeave: F,
5261
+ onClick: _,
5262
+ onMouseUp: B,
5263
5263
  onKeyDown: R,
5264
5264
  onKeyUp: G
5265
5265
  }
5266
5266
  );
5267
- }), fs = B(Nr);
5267
+ }), fs = O(Nr);
5268
5268
  Nr.displayName = "KButton";
5269
5269
  fs.displayName = "KButton";
5270
5270
  const b2 = ["outlined", "solid", "primary", "subtle", "plain"], Br = (t) => {
@@ -5273,57 +5273,57 @@ const b2 = ["outlined", "solid", "primary", "subtle", "plain"], Br = (t) => {
5273
5273
  return e && a.push(e), a.join(" ");
5274
5274
  }, [e]), o = b(() => {
5275
5275
  const a = [];
5276
- return St.forEach(s, (c, u) => {
5277
- if (yt(c) && c.type === fs) {
5276
+ return At.forEach(s, (c, u) => {
5277
+ if (xt(c) && c.type === fs) {
5278
5278
  const d = c;
5279
- a.push(Ee(d, { ...d.props, variant: n, key: c.key ?? `k-button--${u}}` }));
5279
+ a.push(_e(d, { ...d.props, variant: n, key: c.key ?? `k-button--${u}}` }));
5280
5280
  }
5281
5281
  }), a;
5282
5282
  }, [s, n]);
5283
5283
  return /* @__PURE__ */ l.jsx("div", { ...i, className: r, role: "group", children: o });
5284
- }, r2 = B(Br);
5284
+ }, r2 = O(Br);
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
5288
  const [r, o] = rt(null), [a, c] = rt([]), u = b(() => {
5289
5289
  const p = ["k-toggle-button"];
5290
5290
  return e && p.push(e), p.join(" ");
5291
- }, [e]), d = M(
5291
+ }, [e]), d = S(
5292
5292
  (p) => {
5293
5293
  t ? c((m) => m.includes(p) ? m.filter((y) => y !== p) : [...m, p]) : o((m) => m === p ? null : p);
5294
5294
  },
5295
5295
  [t]
5296
- ), h = M(
5296
+ ), h = S(
5297
5297
  (p) => t ? a.includes(p) : r === p,
5298
5298
  [t, r, a]
5299
- ), f = b(() => St.toArray(s).map((p, m) => {
5300
- if (!yt(p) || p.type !== fs) return null;
5301
- const y = h(m), k = p, v = (C) => {
5302
- d(m), k.props.onClick?.(C);
5303
- }, x = (C) => {
5304
- k.props.onKeyDown?.(C), Lt(C, () => d(m));
5299
+ ), f = b(() => At.toArray(s).map((p, m) => {
5300
+ if (!xt(p) || p.type !== fs) return null;
5301
+ const y = h(m), w = p, C = (v) => {
5302
+ d(m), w.props.onClick?.(v);
5303
+ }, x = (v) => {
5304
+ w.props.onKeyDown?.(v), Mt(v, () => d(m));
5305
5305
  };
5306
- return Ee(k, {
5307
- ...k.props,
5306
+ return _e(w, {
5307
+ ...w.props,
5308
5308
  variant: n,
5309
5309
  className: y ? "k-button--selected" : void 0,
5310
5310
  key: p.key ?? `k-button--${m}`,
5311
- onClick: v,
5311
+ onClick: C,
5312
5312
  onKeyDown: x
5313
5313
  });
5314
5314
  }), [s, n, h, d]);
5315
5315
  return /* @__PURE__ */ l.jsx("div", { ...i, className: u, role: "group", children: f });
5316
5316
  };
5317
5317
  Ir.displayName = "KToggleButton";
5318
- const L2 = B(Ir), Or = Z((t, e) => {
5319
- const { className: n, value: s, disabled: i, size: r = "medium", ...o } = t, a = X(null), c = b(() => {
5318
+ const L2 = O(Ir), Or = Z((t, e) => {
5319
+ const { className: n, value: s, disabled: i, size: r = "medium", ...o } = t, a = q(null), c = b(() => {
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]);
5323
- return ft(e, () => ({
5323
+ return pt(e, () => ({
5324
5324
  toggle: () => a.current?.click()
5325
5325
  })), /* @__PURE__ */ l.jsx(no, { ref: a, ...o, value: s, className: c, disabled: i, children: /* @__PURE__ */ l.jsx("span", { className: "k-switch__toggle" }) });
5326
- }), a2 = B(Or);
5326
+ }), a2 = O(Or);
5327
5327
  Or.displayName = "KSwitch";
5328
5328
  a2.displayName = "KSwitch";
5329
5329
  const Fr = (t) => {
@@ -5331,14 +5331,14 @@ const Fr = (t) => {
5331
5331
  const h = ["k-accordion", `k-accordion--${a}`];
5332
5332
  return e && h.push(e), h.join(" ");
5333
5333
  }, [e, a]), d = b(() => ({ ...o, maxWidth: r }), [o, r]);
5334
- return /* @__PURE__ */ l.jsxs(Wt, { className: u, style: d, defaultOpen: n, ...c, children: [
5335
- /* @__PURE__ */ l.jsxs(Wt.Summary, { className: "k-accordion__summary", children: [
5334
+ return /* @__PURE__ */ l.jsxs($t, { className: u, style: d, defaultOpen: n, ...c, children: [
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(Ke, { icon: "keyboard_arrow_down", size: "small", className: "k-accordion__summary__icon" })
5337
+ /* @__PURE__ */ l.jsx(Ce, { icon: "keyboard_arrow_down", size: "small", className: "k-accordion__summary__icon" })
5338
5338
  ] }),
5339
- /* @__PURE__ */ l.jsx(Wt.Content, { className: "k-accordion__content", children: /* @__PURE__ */ l.jsx("div", { className: "k-accordion__content__container", children: i }) })
5339
+ /* @__PURE__ */ l.jsx($t.Content, { className: "k-accordion__content", children: /* @__PURE__ */ l.jsx("div", { className: "k-accordion__content__container", children: i }) })
5340
5340
  ] });
5341
- }, l2 = B(Fr);
5341
+ }, l2 = O(Fr);
5342
5342
  l2.displayName = "KAccordion";
5343
5343
  Fr.displayName = "KAccordion";
5344
5344
  const zr = Z((t, e) => {
@@ -5357,63 +5357,63 @@ const zr = Z((t, e) => {
5357
5357
  onMouseLeave: p,
5358
5358
  onMouseUp: m,
5359
5359
  onKeyDown: y,
5360
- onKeyUp: k,
5361
- ...v
5362
- } = t, x = X(null), C = Tn(x);
5363
- ft(e, () => x.current, []);
5360
+ onKeyUp: w,
5361
+ ...C
5362
+ } = t, x = q(null), v = Tn(x);
5363
+ pt(e, () => x.current, []);
5364
5364
  const T = b(() => {
5365
- const O = ["k-menu-item", `k-menu-item--${r}`];
5366
- return s && O.push(s), d && O.push("k-menu-item--disabled"), O.join(" ");
5367
- }, [s, r]), w = b(() => ({ ...i }), [i]), j = M((O) => {
5368
- d || h?.(O);
5369
- }, [d, h]), S = M((O) => {
5370
- f?.(O), d || C?.register(O);
5371
- }, [C, f]), L = M((O) => {
5372
- m?.(O), C.remove();
5373
- }, [C, m]), D = M((O) => {
5374
- p?.(O), C.remove();
5375
- }, [C, p]), N = M((O) => {
5376
- y?.(O), C?.register(O), Lt(O, () => {
5365
+ const I = ["k-menu-item", `k-menu-item--${r}`];
5366
+ return s && I.push(s), d && I.push("k-menu-item--disabled"), I.join(" ");
5367
+ }, [s, r]), k = b(() => ({ ...i }), [i]), L = S((I) => {
5368
+ d || h?.(I);
5369
+ }, [d, h]), M = S((I) => {
5370
+ f?.(I), d || v?.register(I);
5371
+ }, [v, f]), j = S((I) => {
5372
+ m?.(I), v.remove();
5373
+ }, [v, m]), _ = S((I) => {
5374
+ p?.(I), v.remove();
5375
+ }, [v, p]), N = S((I) => {
5376
+ y?.(I), v?.register(I), Mt(I, () => {
5377
5377
  h?.();
5378
5378
  });
5379
- }, [C, y]), I = M((O) => {
5380
- k?.(O), Lt(O, () => C.remove());
5381
- }, [C, k]), z = 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]), E = b(() => u ? /* @__PURE__ */ l.jsx("span", { className: "k-menu-item__shortcut", children: u }) : null, [u]);
5379
+ }, [v, y]), B = S((I) => {
5380
+ w?.(I), Mt(I, () => v.remove());
5381
+ }, [v, w]), F = 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]);
5382
5382
  return /* @__PURE__ */ l.jsxs(
5383
5383
  to,
5384
5384
  {
5385
5385
  as: "li",
5386
5386
  ref: x,
5387
- ...v,
5387
+ ...C,
5388
5388
  className: T,
5389
- style: w,
5389
+ style: k,
5390
5390
  disabled: d,
5391
- onClick: j,
5392
- onMouseDown: S,
5393
- onMouseUp: L,
5394
- onMouseLeave: D,
5391
+ onClick: L,
5392
+ onMouseDown: M,
5393
+ onMouseUp: j,
5394
+ onMouseLeave: _,
5395
5395
  onKeyDown: N,
5396
- onKeyUp: I,
5396
+ onKeyUp: B,
5397
5397
  children: [
5398
- z,
5398
+ F,
5399
5399
  R,
5400
- E,
5400
+ D,
5401
5401
  G
5402
5402
  ]
5403
5403
  }
5404
5404
  );
5405
- }), Fe = B(zr);
5406
- Fe.displayName = "KMenu.Item";
5405
+ }), ze = O(zr);
5406
+ ze.displayName = "KMenu.Item";
5407
5407
  zr.displayName = "KMenu.Item";
5408
5408
  const Kr = Z((t, e) => {
5409
- const { selected: n, className: s, label: i, ...r } = t, o = X(null);
5410
- ft(e, () => o.current, []);
5409
+ const { selected: n, className: s, label: i, ...r } = t, o = q(null);
5410
+ pt(e, () => o.current, []);
5411
5411
  const a = b(() => {
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(Ke, { className: "k-menu-item-selectable-check", icon: "check", size: 10 }), [n]);
5414
+ }, [s, n]), c = b(() => n && /* @__PURE__ */ l.jsx(Ce, { className: "k-menu-item-selectable-check", icon: "check", size: 10 }), [n]);
5415
5415
  return /* @__PURE__ */ l.jsx(
5416
- Fe,
5416
+ ze,
5417
5417
  {
5418
5418
  ref: o,
5419
5419
  ...r,
@@ -5423,18 +5423,18 @@ const Kr = Z((t, e) => {
5423
5423
  leftContent: c
5424
5424
  }
5425
5425
  );
5426
- }), ps = B(Kr);
5426
+ }), ps = O(Kr);
5427
5427
  ps.displayName = "KMenu.ItemSelectable";
5428
5428
  Kr.displayName = "KMenu.ItemSelectable";
5429
5429
  const Wr = Z((t, e) => {
5430
- const { children: n, className: s, ...i } = t, r = X(null);
5431
- ft(e, () => r.current, []);
5430
+ const { children: n, className: s, ...i } = t, r = q(null);
5431
+ pt(e, () => r.current, []);
5432
5432
  const o = b(() => {
5433
5433
  const a = ["k-menu-item-divider"];
5434
5434
  return s && a.push(s), a.join(" ");
5435
5435
  }, [s]);
5436
5436
  return /* @__PURE__ */ l.jsx("li", { ref: r, ...i, className: o, role: "separator", "aria-orientation": "horizontal" });
5437
- }), ms = B(Wr);
5437
+ }), ms = O(Wr);
5438
5438
  ms.displayName = "KMenu.ItemDivider";
5439
5439
  Wr.displayName = "KMenu.ItemDivider";
5440
5440
  const $r = Z((t, e) => {
@@ -5443,24 +5443,24 @@ const $r = Z((t, e) => {
5443
5443
  return s && h.push(s), h.join(" ");
5444
5444
  }, [s, o]), u = b(() => ({ ...i, width: r }), [i, r]), d = b(() => {
5445
5445
  const h = [];
5446
- return St.forEach(n, (f, p) => {
5447
- if (yt(f) && (f.type === Fe || f.type === ps || f.type === ms)) {
5446
+ return At.forEach(n, (f, p) => {
5447
+ if (xt(f) && (f.type === ze || f.type === ps || f.type === ms)) {
5448
5448
  const m = f;
5449
- h.push(Ee(m, { ...m.props, size: o, key: f.key ?? `k-menu-item-${p}` }));
5449
+ h.push(_e(m, { ...m.props, size: o, key: f.key ?? `k-menu-item-${p}` }));
5450
5450
  }
5451
5451
  }), h;
5452
5452
  }, [n, o]);
5453
5453
  return /* @__PURE__ */ l.jsx(Vn, { ...a, as: "ul", ref: e, className: c, style: u, children: d });
5454
- }), Ur = B($r);
5454
+ }), Ur = O($r);
5455
5455
  Ur.displayName = "KMenu";
5456
5456
  $r.displayName = "KMenu";
5457
- const $t = Ur;
5458
- $t.Item = Fe;
5459
- $t.ItemSelectable = ps;
5460
- $t.ItemDivider = ms;
5461
- const Hr = wt(null);
5457
+ const Ut = Ur;
5458
+ Ut.Item = ze;
5459
+ Ut.ItemSelectable = ps;
5460
+ Ut.ItemDivider = ms;
5461
+ const Hr = kt(null);
5462
5462
  function Zr() {
5463
- const t = J(Hr);
5463
+ const t = Q(Hr);
5464
5464
  if (!t) throw new Error("KDropdown must be used within <KDropdown>");
5465
5465
  return t;
5466
5466
  }
@@ -5476,28 +5476,28 @@ 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: y, open: k, onOpen: v, onClose: x, onFocusContent: C } = Zr(), T = b(() => r ? -1 : 0, [r]);
5480
- ft(e, () => p.current, []);
5481
- const w = b(() => {
5479
+ } = t, { id: f, triggerRef: p, contentRef: m, trigger: y, open: w, onOpen: C, onClose: x, onFocusContent: v } = Zr(), T = b(() => r ? -1 : 0, [r]);
5480
+ pt(e, () => p.current, []);
5481
+ const k = b(() => {
5482
5482
  const R = ["k-dropdown__trigger"];
5483
5483
  return s && R.push(s), r && R.push("k-dropdown__trigger--disabled"), R.join(" ");
5484
- }, [s, r]), j = M((R) => {
5485
- i?.(R), y === "click" && !r && (k ? x() : v());
5486
- }, [k, i, y, r]), S = M((R) => {
5487
- o?.(R), y === "hover" && !r && v();
5488
- }, [y, o, r]), L = M((R) => {
5484
+ }, [s, r]), L = S((R) => {
5485
+ i?.(R), y === "click" && !r && (w ? x() : C());
5486
+ }, [w, i, y, r]), M = S((R) => {
5487
+ o?.(R), y === "hover" && !r && C();
5488
+ }, [y, o, r]), j = S((R) => {
5489
5489
  a?.(R), y === "hover" && x();
5490
- }, [y, a]), D = M((R) => {
5490
+ }, [y, a]), _ = S((R) => {
5491
5491
  if (c?.(R), r)
5492
5492
  return;
5493
- Lt(R, v);
5494
- const G = y === "hover" && R.key === "Tab" && !R.shiftKey, E = y === "click" && k && R.key === "Tab" && !R.shiftKey;
5495
- (G || E) && (R.preventDefault(), C());
5496
- }, [c, y, k, r]), N = M((R) => {
5497
- u?.(R), y === "hover" && !r && v();
5498
- }, [u, y, r]), I = M((R) => {
5493
+ Mt(R, C);
5494
+ const G = y === "hover" && R.key === "Tab" && !R.shiftKey, D = y === "click" && w && R.key === "Tab" && !R.shiftKey;
5495
+ (G || D) && (R.preventDefault(), v());
5496
+ }, [c, y, w, r]), N = S((R) => {
5497
+ u?.(R), y === "hover" && !r && C();
5498
+ }, [u, y, r]), B = S((R) => {
5499
5499
  d?.(R), y === "hover" && x();
5500
- }, [d, y]), z = b(() => St.map(n, (R) => yt(R) ? Ee(R, { tabIndex: -1 }) : R), [n]);
5500
+ }, [d, y]), F = b(() => At.map(n, (R) => xt(R) ? _e(R, { tabIndex: -1 }) : R), [n]);
5501
5501
  return ma(m, x, p), // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex,jsx-a11y/no-static-element-interactions
5502
5502
  /* @__PURE__ */ l.jsx(
5503
5503
  "div",
@@ -5505,22 +5505,22 @@ const Gr = Z((t, e) => {
5505
5505
  ...h,
5506
5506
  tabIndex: T,
5507
5507
  ref: p,
5508
- className: w,
5508
+ className: k,
5509
5509
  role: "button",
5510
5510
  id: f,
5511
- "aria-controls": k ? f : void 0,
5512
- "aria-expanded": k,
5511
+ "aria-controls": w ? f : void 0,
5512
+ "aria-expanded": w,
5513
5513
  "aria-haspopup": "true",
5514
- onKeyDown: D,
5515
- onClick: j,
5516
- onMouseEnter: S,
5517
- onMouseLeave: L,
5514
+ onKeyDown: _,
5515
+ onClick: L,
5516
+ onMouseEnter: M,
5517
+ onMouseLeave: j,
5518
5518
  onFocus: N,
5519
- onBlur: I,
5520
- children: z
5519
+ onBlur: B,
5520
+ children: F
5521
5521
  }
5522
5522
  );
5523
- }), gs = B(Gr);
5523
+ }), gs = O(Gr);
5524
5524
  gs.displayName = "Dropdown.Trigger";
5525
5525
  Gr.displayName = "Dropdown.Trigger";
5526
5526
  const c2 = 240, Yr = Z((t, e) => {
@@ -5539,53 +5539,53 @@ const c2 = 240, Yr = Z((t, e) => {
5539
5539
  offset: p,
5540
5540
  container: m,
5541
5541
  zIndex: y,
5542
- ...k
5543
- } = t, { open: v, triggerRef: x, contentRef: C, position: T, onOpen: w, onClose: j, onBlurContent: S, trigger: L } = Zr(), { top: D, left: N } = ga({
5542
+ ...w
5543
+ } = t, { open: C, triggerRef: x, contentRef: v, position: T, onOpen: k, onClose: L, onBlurContent: M, trigger: j } = Zr(), { top: _, left: N } = ga({
5544
5544
  triggerRef: x,
5545
- contentRef: C,
5545
+ contentRef: v,
5546
5546
  position: T,
5547
5547
  offset: p,
5548
- open: v,
5548
+ open: C,
5549
5549
  gap: f
5550
- }), I = Mn(m);
5551
- Ui(j), ft(e, () => C.current);
5552
- const z = b(() => {
5550
+ }), B = Mn(m);
5551
+ Ui(L), pt(e, () => v.current);
5552
+ const F = b(() => {
5553
5553
  const g = ["k-dropdown__content"];
5554
5554
  return n && g.push(n), g.join(" ");
5555
- }, [n]), R = b(() => ({ ...s, position: "fixed", top: D, left: N, zIndex: y }), [s, D, N, y]), G = M((g) => {
5556
- r?.(g), h && j();
5557
- }, [r, h]), E = M((g) => {
5558
- o?.(g), L === "hover" && w();
5559
- }, [L, o]), O = M((g) => {
5560
- a?.(g), L === "hover" && j();
5561
- }, [L, a]), V = M((g) => {
5562
- Lt(g, j), g.key === "Tab" && g.shiftKey && S(g);
5563
- }, [d]), K = M((g) => {
5564
- c?.(g), L === "hover" && w();
5565
- }, [c, L]), st = M((g) => {
5566
- u?.(g), L === "hover" && j();
5567
- }, [u, L]);
5568
- if (bt(() => {
5569
- }, [v]), !!I)
5555
+ }, [n]), R = b(() => ({ ...s, position: "fixed", top: _, left: N, zIndex: y }), [s, _, N, y]), G = S((g) => {
5556
+ r?.(g), h && L();
5557
+ }, [r, h]), D = S((g) => {
5558
+ o?.(g), j === "hover" && k();
5559
+ }, [j, o]), I = S((g) => {
5560
+ a?.(g), j === "hover" && L();
5561
+ }, [j, a]), z = S((g) => {
5562
+ Mt(g, L), g.key === "Tab" && g.shiftKey && M(g);
5563
+ }, [d]), Y = S((g) => {
5564
+ c?.(g), j === "hover" && k();
5565
+ }, [c, j]), at = S((g) => {
5566
+ u?.(g), j === "hover" && L();
5567
+ }, [u, j]);
5568
+ if (Tt(() => {
5569
+ }, [C]), !!B)
5570
5570
  return Sn(
5571
5571
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
5572
5572
  /* @__PURE__ */ l.jsx(
5573
5573
  "div",
5574
5574
  {
5575
- ref: C,
5576
- ...k,
5577
- className: z,
5575
+ ref: v,
5576
+ ...w,
5577
+ className: F,
5578
5578
  style: R,
5579
5579
  onClick: G,
5580
- onMouseEnter: E,
5581
- onMouseLeave: O,
5582
- onFocus: K,
5583
- onBlur: st,
5584
- onKeyDown: V,
5580
+ onMouseEnter: D,
5581
+ onMouseLeave: I,
5582
+ onFocus: Y,
5583
+ onBlur: at,
5584
+ onKeyDown: z,
5585
5585
  children: /* @__PURE__ */ l.jsx(
5586
- Oe,
5586
+ Fe,
5587
5587
  {
5588
- isOpen: v,
5588
+ isOpen: C,
5589
5589
  initial: { opacity: 0 },
5590
5590
  animate: { opacity: 1 },
5591
5591
  exit: { opacity: 0 },
@@ -5595,9 +5595,9 @@ const c2 = 240, Yr = Z((t, e) => {
5595
5595
  )
5596
5596
  }
5597
5597
  ),
5598
- I
5598
+ B
5599
5599
  );
5600
- }), ys = B(Yr);
5600
+ }), ys = O(Yr);
5601
5601
  ys.displayName = "Dropdown.Content";
5602
5602
  Yr.displayName = "Dropdown.Content";
5603
5603
  const Xr = Z((t, e) => {
@@ -5607,56 +5607,62 @@ const Xr = Z((t, e) => {
5607
5607
  position: i = "top-end",
5608
5608
  children: r,
5609
5609
  className: o,
5610
- ...a
5611
- } = t, c = n || "div", [u, d] = rt(!1), h = X(null), f = X(null), p = `k-dropdown-${Gt()}`, m = b(() => {
5610
+ onDropdownOpen: a,
5611
+ onDropdownClose: c,
5612
+ ...u
5613
+ } = t, d = n || "div", [h, f] = rt(!1), p = q(null), m = q(null), y = `k-dropdown-${Yt()}`, w = b(() => {
5612
5614
  const j = ["k-dropdown"];
5613
5615
  return o && j.push(o), j.join(" ");
5614
- }, [o]), y = M(() => d(!0), []), k = M(() => d(!1), []);
5615
- ft(e, () => ({
5616
- onOpen: y,
5617
- onClose: k
5616
+ }, [o]), C = S(() => {
5617
+ f(!0), a?.();
5618
+ }, [a]), x = S(() => {
5619
+ f(!1), c?.();
5620
+ }, [c]);
5621
+ pt(e, () => ({
5622
+ onOpen: C,
5623
+ onClose: x
5618
5624
  }));
5619
- const { Trigger: v, Content: x } = b(() => {
5620
- const j = St.toArray(r), S = j.find(
5621
- (D) => yt(D) && D.type === gs
5622
- ), L = j.find(
5623
- (D) => yt(D) && D.type === ys
5625
+ const { Trigger: v, Content: T } = b(() => {
5626
+ const j = At.toArray(r), _ = j.find(
5627
+ (B) => xt(B) && B.type === gs
5628
+ ), N = j.find(
5629
+ (B) => xt(B) && B.type === ys
5624
5630
  );
5625
- return { Trigger: S, Content: L };
5626
- }, [r]), C = M(() => {
5627
- if (!f.current) return;
5628
- f.current.querySelector(
5631
+ return { Trigger: _, Content: N };
5632
+ }, [r]), k = S(() => {
5633
+ if (!m.current) return;
5634
+ m.current.querySelector(
5629
5635
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [role="menuitem"]'
5630
5636
  )?.focus();
5631
- }, []), T = M((j) => {
5632
- if (!f.current) return;
5633
- f.current.querySelector(
5637
+ }, []), L = S((j) => {
5638
+ if (!m.current) return;
5639
+ m.current.querySelector(
5634
5640
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [role="menuitem"]'
5635
- ) === j.target && (j.preventDefault(), h.current?.focus());
5636
- }, []), w = b(
5641
+ ) === j.target && (j.preventDefault(), p.current?.focus());
5642
+ }, []), M = b(
5637
5643
  () => ({
5638
- open: u,
5639
- onOpen: y,
5640
- onClose: k,
5641
- onFocusContent: C,
5642
- onBlurContent: T,
5643
- triggerRef: h,
5644
- id: p,
5645
- contentRef: f,
5644
+ open: h,
5645
+ onOpen: C,
5646
+ onClose: x,
5647
+ onFocusContent: k,
5648
+ onBlurContent: L,
5649
+ triggerRef: p,
5650
+ id: y,
5651
+ contentRef: m,
5646
5652
  trigger: s,
5647
5653
  position: i
5648
5654
  }),
5649
- [u, s, i]
5655
+ [h, s, i]
5650
5656
  );
5651
- return /* @__PURE__ */ l.jsx(c, { ...a, ...a, className: m, children: /* @__PURE__ */ l.jsxs(Hr, { value: w, children: [
5657
+ return /* @__PURE__ */ l.jsx(d, { ...u, ...u, className: w, children: /* @__PURE__ */ l.jsxs(Hr, { value: M, children: [
5652
5658
  v,
5653
- x
5659
+ T
5654
5660
  ] }) });
5655
- }), Ut = B(Xr);
5656
- Ut.displayName = "Dropdown";
5661
+ }), Ht = O(Xr);
5662
+ Ht.displayName = "Dropdown";
5657
5663
  Xr.displayName = "Dropdown";
5658
- Ut.Trigger = gs;
5659
- Ut.Content = ys;
5664
+ Ht.Trigger = gs;
5665
+ Ht.Content = ys;
5660
5666
  const T2 = [
5661
5667
  "top-start",
5662
5668
  "top",
@@ -5686,43 +5692,43 @@ const T2 = [
5686
5692
  "aria-hidden": "true"
5687
5693
  }
5688
5694
  );
5689
- }, u2 = B(qr);
5695
+ }, u2 = O(qr);
5690
5696
  u2.displayName = "KSkeleton";
5691
5697
  qr.displayName = "KSkeleton";
5692
- const Jr = wt(null), d2 = () => {
5693
- const t = J(Jr);
5698
+ const Jr = kt(null), d2 = () => {
5699
+ const t = Q(Jr);
5694
5700
  if (!t) throw new Error("useModal must be used within a ModalProvider");
5695
5701
  return t;
5696
5702
  }, h2 = {
5697
5703
  fade: {
5698
- initial: { opacity: 0, transform: "translate(-50%, -50%)" },
5699
- animate: { opacity: 1, transform: "translate(-50%, -50%)" },
5700
- exit: { opacity: 0, transform: "translate(-50%, -50%)" },
5701
- transition: { duration: 0.16, ease: "easeInOut" }
5704
+ initial: { opacity: 0, top: "50%", left: "50%", transform: "translate(-50%, -50%)" },
5705
+ animate: { opacity: 1, top: "50%", left: "50%", transform: "translate(-50%, -50%)" },
5706
+ exit: { opacity: 0, top: "50%", left: "50%", transform: "translate(-50%, -50%)" },
5707
+ transition: { duration: 0.12, ease: "easeInOut" }
5702
5708
  },
5703
5709
  slide: {
5704
5710
  initial: { opacity: 0, top: "calc(50% - 8px)", left: "50%", transform: "translate(-50%, -50%)" },
5705
5711
  animate: { opacity: 1, top: "50%", left: "50%", transform: "translate(-50%, -50%)" },
5706
5712
  exit: { opacity: 0, top: "calc(50% - 8px)", left: "50%", transform: "translate(-50%, -50%)" },
5707
- transition: { duration: 0.16, ease: "easeInOut" }
5713
+ transition: { duration: 0.12, ease: "easeInOut" }
5708
5714
  },
5709
5715
  scale: {
5710
5716
  initial: { opacity: 0, top: "50%", left: "50%", transform: "translate(-50%, -50%) scale(0.96)" },
5711
5717
  animate: { opacity: 1, top: "50%", left: "50%", transform: "translate(-50%, -50%) scale(1)" },
5712
5718
  exit: { opacity: 0, top: "50%", left: "50%", transform: "translate(-50%, -50%) scale(0.96)" },
5713
- transition: { duration: 0.16, ease: "easeInOut" }
5719
+ transition: { duration: 0.12, ease: "easeInOut" }
5714
5720
  }
5715
5721
  }, Qr = Z((t, e) => {
5716
5722
  const { title: n, children: s, className: i, ...r } = t, { setTitle: o } = d2(), a = b(() => {
5717
5723
  const u = ["k-modal__header"];
5718
5724
  return i && u.push(i), u.join(" ");
5719
- }, [i]), c = M(() => {
5725
+ }, [i]), c = S(() => {
5720
5726
  typeof n == "string" && o(n), typeof s == "string" && o(s);
5721
5727
  }, [n, s]);
5722
- return bt(() => {
5728
+ return Tt(() => {
5723
5729
  c();
5724
5730
  }, [n, s]), /* @__PURE__ */ l.jsx("div", { ref: e, ...r, className: a, children: n ?? s });
5725
- }), xs = B(Qr);
5731
+ }), xs = O(Qr);
5726
5732
  xs.displayName = "KModalHeader";
5727
5733
  Qr.displayName = "KModalHeader";
5728
5734
  const ta = Z((t, e) => {
@@ -5734,7 +5740,7 @@ const ta = Z((t, e) => {
5734
5740
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
5735
5741
  /* @__PURE__ */ l.jsx("div", { ref: e, ...i, className: r, tabIndex: 0, children: n })
5736
5742
  );
5737
- }), vs = B(ta);
5743
+ }), vs = O(ta);
5738
5744
  vs.displayName = "KModalContent";
5739
5745
  ta.displayName = "KModalContent";
5740
5746
  const ea = Z((t, e) => {
@@ -5743,7 +5749,7 @@ const ea = Z((t, e) => {
5743
5749
  return s && a.push(s), a.join(" ");
5744
5750
  }, [s]);
5745
5751
  return /* @__PURE__ */ l.jsx("div", { ref: e, ...r, className: o, children: n });
5746
- }), Cs = B(ea);
5752
+ }), Cs = O(ea);
5747
5753
  Cs.displayName = "KModalFooter";
5748
5754
  ea.displayName = "KModalFooter";
5749
5755
  const na = (t) => {
@@ -5763,57 +5769,57 @@ const na = (t) => {
5763
5769
  escClosable: p = !1,
5764
5770
  children: m,
5765
5771
  container: y
5766
- } = t, k = Mn(y), [v, x] = rt(null), C = b(() => h2[u], [u]);
5772
+ } = t, w = Mn(y), [C, x] = rt(null), v = b(() => h2[u], [u]);
5767
5773
  if (r === void 0 && typeof o != "function")
5768
5774
  throw new Error('You must provide at least one of "setIsOpen" or "onClose".');
5769
- const T = b(() => ({ ...c, width: n, height: s }), [c, n, s]), w = b(() => {
5770
- const z = ["k-modal", `k-modal--${i}`];
5771
- return e && z.push("k-modal--open"), e || z.push("k-modal--close"), a && z.push(a), z.join(" ");
5772
- }, [e, i, a]), j = M(() => {
5775
+ const T = b(() => ({ ...c, width: n, height: s }), [c, n, s]), k = b(() => {
5776
+ const F = ["k-modal", `k-modal--${i}`];
5777
+ return e && F.push("k-modal--open"), e || F.push("k-modal--close"), a && F.push(a), F.join(" ");
5778
+ }, [e, i, a]), L = S(() => {
5773
5779
  o?.(), r?.(!1);
5774
- }, [o, r]), S = M(() => {
5775
- f && j();
5776
- }, [f, j]), { modalHeader: L, modalContent: D, modalFooter: N } = b(() => {
5777
- let z = null, R = null, G = null;
5778
- return St.forEach(m, (E) => {
5779
- yt(E) && (E.type === xs && (z = E), E.type === vs && (R = E), E.type === Cs && (G = E));
5780
- }), { modalHeader: z, modalContent: R, modalFooter: G };
5781
- }, [m]), I = b(() => ({
5780
+ }, [o, r]), M = S(() => {
5781
+ f && L();
5782
+ }, [f, L]), { modalHeader: j, modalContent: _, modalFooter: N } = b(() => {
5783
+ let F = null, R = null, G = null;
5784
+ return At.forEach(m, (D) => {
5785
+ xt(D) && (D.type === xs && (F = D), D.type === vs && (R = D), D.type === Cs && (G = D));
5786
+ }), { modalHeader: F, modalContent: R, modalFooter: G };
5787
+ }, [m]), B = b(() => ({
5782
5788
  isOpen: e,
5783
- title: v,
5789
+ title: C,
5784
5790
  setTitle: x
5785
- }), [e, v]);
5791
+ }), [e, C]);
5786
5792
  return Ui(() => {
5787
- p && j();
5788
- }), k ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
5793
+ p && L();
5794
+ }), w ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
5789
5795
  Sn(
5790
- /* @__PURE__ */ l.jsx(Jr.Provider, { value: I, children: /* @__PURE__ */ l.jsxs(
5791
- Oe,
5796
+ /* @__PURE__ */ l.jsx(Jr.Provider, { value: B, children: /* @__PURE__ */ l.jsxs(
5797
+ Fe,
5792
5798
  {
5793
5799
  isOpen: e,
5794
- className: w,
5800
+ className: k,
5795
5801
  style: T,
5796
- ...C,
5802
+ ...v,
5797
5803
  role: "dialog",
5798
5804
  "aria-modal": "true",
5799
- "aria-label": v ?? void 0,
5805
+ "aria-label": C ?? void 0,
5800
5806
  children: [
5801
- L,
5802
- D,
5807
+ j,
5808
+ _,
5803
5809
  N
5804
5810
  ]
5805
5811
  }
5806
5812
  ) }),
5807
- k
5813
+ w
5808
5814
  ),
5809
- d && /* @__PURE__ */ l.jsx(ia, { isOpen: e, onClick: S, opacity: h })
5815
+ d && /* @__PURE__ */ l.jsx(ia, { isOpen: e, onClick: M, opacity: h })
5810
5816
  ] }) : null;
5811
- }, ze = B(na);
5812
- ze.displayName = "KModal";
5817
+ }, Ke = O(na);
5818
+ Ke.displayName = "KModal";
5813
5819
  na.displayName = "KModal";
5814
- ze.Header = xs;
5815
- ze.Content = vs;
5816
- ze.Footer = Cs;
5820
+ Ke.Header = xs;
5821
+ Ke.Content = vs;
5822
+ Ke.Footer = Cs;
5817
5823
  const M2 = ["medium", "small", "large"], Ki = {
5818
5824
  initial: { opacity: 0 },
5819
5825
  animate: { opacity: 1 },
@@ -5833,34 +5839,34 @@ const M2 = ["medium", "small", "large"], Ki = {
5833
5839
  container: d,
5834
5840
  ...h
5835
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]), y = b(() => {
5836
- const w = ["k-backdrop__container"];
5837
- return n && w.push(n), w.join(" ");
5838
- }, [n]), k = b(() => ({ ...s, opacity: o, zIndex: a }), [s, o, a]), v = b(() => typeof o == "number" ? { ...Ki, animate: { opacity: o, zIndex: a } } : Ki, [o, a]), x = M((w) => {
5839
- c?.(w);
5840
- }, [c]), C = M((w) => {
5841
- Lt(w, () => {
5842
+ const k = ["k-backdrop__container"];
5843
+ return n && k.push(n), k.join(" ");
5844
+ }, [n]), w = b(() => ({ ...s, opacity: o, zIndex: a }), [s, o, a]), C = b(() => typeof o == "number" ? { ...Ki, animate: { opacity: o, zIndex: a } } : Ki, [o, a]), x = S((k) => {
5845
+ c?.(k);
5846
+ }, [c]), v = S((k) => {
5847
+ Mt(k, () => {
5842
5848
  c?.();
5843
- }), u?.(w);
5849
+ }), u?.(k);
5844
5850
  }, [u]), T = b(() => i ? {} : { role: "presentation" }, [i]);
5845
5851
  return f ? Sn(
5846
- /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsxs(Oe, { as: "div", isOpen: e, className: "k-backdrop", ...v, ...T, children: [
5852
+ /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsxs(Fe, { as: "div", isOpen: e, className: "k-backdrop", ...C, ...T, children: [
5847
5853
  /* @__PURE__ */ l.jsx(
5848
5854
  "div",
5849
5855
  {
5850
5856
  ...m,
5851
5857
  className: y,
5852
- style: k,
5858
+ style: w,
5853
5859
  ...h,
5854
5860
  tabIndex: p,
5855
5861
  onClick: x,
5856
- onKeyDown: C
5862
+ onKeyDown: v
5857
5863
  }
5858
5864
  ),
5859
5865
  i
5860
5866
  ] }) }),
5861
5867
  f
5862
5868
  ) : null;
5863
- }, ia = B(sa);
5869
+ }, ia = O(sa);
5864
5870
  ia.displayName = "KBackdrop";
5865
5871
  sa.displayName = "KBackdrop";
5866
5872
  const oa = Z((t, e) => {
@@ -5898,11 +5904,11 @@ const oa = Z((t, e) => {
5898
5904
  ) })
5899
5905
  }
5900
5906
  );
5901
- }), f2 = B(oa);
5907
+ }), f2 = O(oa);
5902
5908
  oa.displayName = "KSpinner";
5903
5909
  f2.displayName = "KSpinner";
5904
- const P = "currentColor", p2 = {
5905
- close: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", fill: t, children: [
5910
+ const A = "currentColor", p2 = {
5911
+ close: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", fill: t, children: [
5906
5912
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
5907
5913
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
5908
5914
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -5912,7 +5918,7 @@ const P = "currentColor", p2 = {
5912
5918
  }
5913
5919
  ) })
5914
5920
  ] }),
5915
- arrow_up: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5921
+ arrow_up: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5916
5922
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
5917
5923
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
5918
5924
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -5926,7 +5932,7 @@ const P = "currentColor", p2 = {
5926
5932
  }
5927
5933
  ) })
5928
5934
  ] }),
5929
- arrow_down: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
5935
+ arrow_down: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
5930
5936
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
5931
5937
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
5932
5938
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -5940,7 +5946,7 @@ const P = "currentColor", p2 = {
5940
5946
  }
5941
5947
  ) })
5942
5948
  ] }),
5943
- arrow_right: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
5949
+ arrow_right: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
5944
5950
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
5945
5951
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
5946
5952
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -5954,7 +5960,7 @@ const P = "currentColor", p2 = {
5954
5960
  }
5955
5961
  ) })
5956
5962
  ] }),
5957
- arrow_left: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
5963
+ arrow_left: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
5958
5964
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
5959
5965
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
5960
5966
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -5968,7 +5974,7 @@ const P = "currentColor", p2 = {
5968
5974
  }
5969
5975
  ) })
5970
5976
  ] }),
5971
- arrow_up_right: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5977
+ arrow_up_right: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5972
5978
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
5973
5979
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
5974
5980
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -5982,7 +5988,7 @@ const P = "currentColor", p2 = {
5982
5988
  }
5983
5989
  ) })
5984
5990
  ] }),
5985
- arrow_up_left: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5991
+ arrow_up_left: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5986
5992
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
5987
5993
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
5988
5994
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -5996,7 +6002,7 @@ const P = "currentColor", p2 = {
5996
6002
  }
5997
6003
  ) })
5998
6004
  ] }),
5999
- arrow_down_right: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6005
+ arrow_down_right: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6000
6006
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6001
6007
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6002
6008
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6010,7 +6016,7 @@ const P = "currentColor", p2 = {
6010
6016
  }
6011
6017
  ) })
6012
6018
  ] }),
6013
- arrow_down_left: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6019
+ arrow_down_left: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6014
6020
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6015
6021
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6016
6022
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6024,7 +6030,7 @@ const P = "currentColor", p2 = {
6024
6030
  }
6025
6031
  ) })
6026
6032
  ] }),
6027
- keyboard_arrow_down: (t = P) => /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", children: [
6033
+ keyboard_arrow_down: (t = A) => /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", children: [
6028
6034
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6029
6035
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6030
6036
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6038,7 +6044,7 @@ const P = "currentColor", p2 = {
6038
6044
  }
6039
6045
  ) })
6040
6046
  ] }),
6041
- checkbox_unchecked: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
6047
+ checkbox_unchecked: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
6042
6048
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6043
6049
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6044
6050
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx("g", { stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ l.jsx("g", { fillRule: "nonzero", children: /* @__PURE__ */ l.jsx(
@@ -6049,7 +6055,7 @@ const P = "currentColor", p2 = {
6049
6055
  }
6050
6056
  ) }) }) })
6051
6057
  ] }),
6052
- checkbox_checked: (t = P) => /* @__PURE__ */ l.jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
6058
+ checkbox_checked: (t = A) => /* @__PURE__ */ l.jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
6053
6059
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6054
6060
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6055
6061
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx("g", { stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ l.jsx("g", { fillRule: "nonzero", children: /* @__PURE__ */ l.jsx(
@@ -6060,7 +6066,7 @@ const P = "currentColor", p2 = {
6060
6066
  }
6061
6067
  ) }) }) })
6062
6068
  ] }),
6063
- visibility: (t = P) => /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: [
6069
+ visibility: (t = A) => /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: [
6064
6070
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6065
6071
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6066
6072
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6071,7 +6077,7 @@ const P = "currentColor", p2 = {
6071
6077
  }
6072
6078
  ) })
6073
6079
  ] }),
6074
- visibility_off: (t = P) => /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: [
6080
+ visibility_off: (t = A) => /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: [
6075
6081
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6076
6082
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6077
6083
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6082,7 +6088,7 @@ const P = "currentColor", p2 = {
6082
6088
  }
6083
6089
  ) })
6084
6090
  ] }),
6085
- radio_unchecked: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
6091
+ radio_unchecked: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [
6086
6092
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6087
6093
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6088
6094
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6095,7 +6101,7 @@ const P = "currentColor", p2 = {
6095
6101
  }
6096
6102
  ) })
6097
6103
  ] }),
6098
- drag: (t = P) => /* @__PURE__ */ l.jsxs("svg", { fill: "none", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", children: [
6104
+ drag: (t = A) => /* @__PURE__ */ l.jsxs("svg", { fill: "none", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", children: [
6099
6105
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6100
6106
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6101
6107
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6107,7 +6113,7 @@ const P = "currentColor", p2 = {
6107
6113
  }
6108
6114
  ) })
6109
6115
  ] }),
6110
- page: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6116
+ page: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6111
6117
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6112
6118
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6113
6119
  /* @__PURE__ */ l.jsxs("g", { children: [
@@ -6164,7 +6170,7 @@ const P = "currentColor", p2 = {
6164
6170
  )
6165
6171
  ] })
6166
6172
  ] }),
6167
- search: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6173
+ search: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6168
6174
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6169
6175
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6170
6176
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6177,7 +6183,7 @@ const P = "currentColor", p2 = {
6177
6183
  }
6178
6184
  ) })
6179
6185
  ] }),
6180
- book: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6186
+ book: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6181
6187
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6182
6188
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6183
6189
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6191,7 +6197,7 @@ const P = "currentColor", p2 = {
6191
6197
  }
6192
6198
  ) })
6193
6199
  ] }),
6194
- github: (t = P) => /* @__PURE__ */ l.jsx(
6200
+ github: (t = A) => /* @__PURE__ */ l.jsx(
6195
6201
  "svg",
6196
6202
  {
6197
6203
  width: "100%",
@@ -6267,7 +6273,7 @@ const P = "currentColor", p2 = {
6267
6273
  ] })
6268
6274
  }
6269
6275
  ),
6270
- gmail: (t = P) => /* @__PURE__ */ l.jsxs(
6276
+ gmail: (t = A) => /* @__PURE__ */ l.jsxs(
6271
6277
  "svg",
6272
6278
  {
6273
6279
  width: "100%",
@@ -6367,7 +6373,7 @@ const P = "currentColor", p2 = {
6367
6373
  }
6368
6374
  ) }) })
6369
6375
  ] }),
6370
- vue: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", fill: t, children: [
6376
+ vue: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", fill: t, children: [
6371
6377
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6372
6378
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6373
6379
  /* @__PURE__ */ l.jsxs("g", { children: [
@@ -6376,7 +6382,7 @@ const P = "currentColor", p2 = {
6376
6382
  /* @__PURE__ */ l.jsx("path", { d: "M7.53,3.925,16,18.485l8.4-14.56H19.22L16,9.525l-3.29-5.6Z", fill: "#35495e" })
6377
6383
  ] })
6378
6384
  ] }),
6379
- notion: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", fill: t, children: [
6385
+ notion: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", fill: t, children: [
6380
6386
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6381
6387
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6382
6388
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6386,7 +6392,7 @@ const P = "currentColor", p2 = {
6386
6392
  }
6387
6393
  ) })
6388
6394
  ] }),
6389
- code: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 64 64", xmlns: "http://www.w3.org/2000/svg", fill: t, children: [
6395
+ code: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "0 0 64 64", xmlns: "http://www.w3.org/2000/svg", fill: t, children: [
6390
6396
  /* @__PURE__ */ l.jsx("circle", { fill: "currentColor", cx: "32", cy: "32", r: "32" }),
6391
6397
  /* @__PURE__ */ l.jsx(
6392
6398
  "path",
@@ -6431,7 +6437,7 @@ const P = "currentColor", p2 = {
6431
6437
  }
6432
6438
  )
6433
6439
  ] }),
6434
- dev: (t = P) => /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: t, children: [
6440
+ dev: (t = A) => /* @__PURE__ */ l.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: t, children: [
6435
6441
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6436
6442
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6437
6443
  /* @__PURE__ */ l.jsxs("g", { children: [
@@ -6445,7 +6451,7 @@ const P = "currentColor", p2 = {
6445
6451
  )
6446
6452
  ] })
6447
6453
  ] }),
6448
- algorithm: (t = P) => /* @__PURE__ */ l.jsxs(
6454
+ algorithm: (t = A) => /* @__PURE__ */ l.jsxs(
6449
6455
  "svg",
6450
6456
  {
6451
6457
  viewBox: "0 0 64 64",
@@ -6476,7 +6482,7 @@ const P = "currentColor", p2 = {
6476
6482
  ]
6477
6483
  }
6478
6484
  ),
6479
- paste: (t = P) => /* @__PURE__ */ l.jsxs(
6485
+ paste: (t = A) => /* @__PURE__ */ l.jsxs(
6480
6486
  "svg",
6481
6487
  {
6482
6488
  xmlns: "http://www.w3.org/2000/svg",
@@ -6494,7 +6500,7 @@ const P = "currentColor", p2 = {
6494
6500
  ]
6495
6501
  }
6496
6502
  ),
6497
- block: (t = P) => /* @__PURE__ */ l.jsxs(
6503
+ block: (t = A) => /* @__PURE__ */ l.jsxs(
6498
6504
  "svg",
6499
6505
  {
6500
6506
  fill: t,
@@ -6516,7 +6522,7 @@ const P = "currentColor", p2 = {
6516
6522
  ]
6517
6523
  }
6518
6524
  ),
6519
- dashboard: (t = P) => /* @__PURE__ */ l.jsxs(
6525
+ dashboard: (t = A) => /* @__PURE__ */ l.jsxs(
6520
6526
  "svg",
6521
6527
  {
6522
6528
  fill: t,
@@ -6546,7 +6552,7 @@ const P = "currentColor", p2 = {
6546
6552
  ]
6547
6553
  }
6548
6554
  ),
6549
- setting: (t = P) => /* @__PURE__ */ l.jsxs(
6555
+ setting: (t = A) => /* @__PURE__ */ l.jsxs(
6550
6556
  "svg",
6551
6557
  {
6552
6558
  width: "100%",
@@ -6569,7 +6575,7 @@ const P = "currentColor", p2 = {
6569
6575
  ]
6570
6576
  }
6571
6577
  ),
6572
- premium: (t = P) => /* @__PURE__ */ l.jsxs(
6578
+ premium: (t = A) => /* @__PURE__ */ l.jsxs(
6573
6579
  "svg",
6574
6580
  {
6575
6581
  fill: t,
@@ -6598,7 +6604,7 @@ const P = "currentColor", p2 = {
6598
6604
  ]
6599
6605
  }
6600
6606
  ),
6601
- exchange: (t = P) => /* @__PURE__ */ l.jsxs(
6607
+ exchange: (t = A) => /* @__PURE__ */ l.jsxs(
6602
6608
  "svg",
6603
6609
  {
6604
6610
  width: "100%",
@@ -6644,7 +6650,7 @@ const P = "currentColor", p2 = {
6644
6650
  }
6645
6651
  )
6646
6652
  ] }),
6647
- triangleUp: (t = P) => /* @__PURE__ */ l.jsxs(
6653
+ triangleUp: (t = A) => /* @__PURE__ */ l.jsxs(
6648
6654
  "svg",
6649
6655
  {
6650
6656
  fill: t,
@@ -6665,7 +6671,7 @@ const P = "currentColor", p2 = {
6665
6671
  ]
6666
6672
  }
6667
6673
  ),
6668
- triangleDown: (t = P) => /* @__PURE__ */ l.jsx(
6674
+ triangleDown: (t = A) => /* @__PURE__ */ l.jsx(
6669
6675
  "svg",
6670
6676
  {
6671
6677
  fill: t,
@@ -6678,7 +6684,7 @@ const P = "currentColor", p2 = {
6678
6684
  c0,0.6,0.4,1,1,1h18c0.2,0,0.3,0,0.5-0.1C22,20.4,22.1,19.8,21.9,19.3z` }) })
6679
6685
  }
6680
6686
  ),
6681
- blockRemaining: (t = P) => /* @__PURE__ */ l.jsxs(
6687
+ blockRemaining: (t = A) => /* @__PURE__ */ l.jsxs(
6682
6688
  "svg",
6683
6689
  {
6684
6690
  fill: t,
@@ -6698,7 +6704,7 @@ const P = "currentColor", p2 = {
6698
6704
  ]
6699
6705
  }
6700
6706
  ),
6701
- star: (t = P) => /* @__PURE__ */ l.jsxs(
6707
+ star: (t = A) => /* @__PURE__ */ l.jsxs(
6702
6708
  "svg",
6703
6709
  {
6704
6710
  fill: t,
@@ -6723,7 +6729,7 @@ const P = "currentColor", p2 = {
6723
6729
  ]
6724
6730
  }
6725
6731
  ),
6726
- currency: (t = P) => /* @__PURE__ */ l.jsxs(
6732
+ currency: (t = A) => /* @__PURE__ */ l.jsxs(
6727
6733
  "svg",
6728
6734
  {
6729
6735
  fill: t,
@@ -6746,7 +6752,7 @@ const P = "currentColor", p2 = {
6746
6752
  ]
6747
6753
  }
6748
6754
  ),
6749
- stack: (t = P) => /* @__PURE__ */ l.jsxs(
6755
+ stack: (t = A) => /* @__PURE__ */ l.jsxs(
6750
6756
  "svg",
6751
6757
  {
6752
6758
  fill: t,
@@ -6766,7 +6772,7 @@ const P = "currentColor", p2 = {
6766
6772
  ]
6767
6773
  }
6768
6774
  ),
6769
- data: (t = P) => /* @__PURE__ */ l.jsxs(
6775
+ data: (t = A) => /* @__PURE__ */ l.jsxs(
6770
6776
  "svg",
6771
6777
  {
6772
6778
  fill: t,
@@ -6789,7 +6795,7 @@ const P = "currentColor", p2 = {
6789
6795
  ]
6790
6796
  }
6791
6797
  ),
6792
- miner: (t = P) => /* @__PURE__ */ l.jsxs(
6798
+ miner: (t = A) => /* @__PURE__ */ l.jsxs(
6793
6799
  "svg",
6794
6800
  {
6795
6801
  fill: t,
@@ -6820,7 +6826,7 @@ const P = "currentColor", p2 = {
6820
6826
  ]
6821
6827
  }
6822
6828
  ),
6823
- confirm: (t = P) => /* @__PURE__ */ l.jsx(
6829
+ confirm: (t = A) => /* @__PURE__ */ l.jsx(
6824
6830
  "svg",
6825
6831
  {
6826
6832
  fill: "none",
@@ -6840,7 +6846,7 @@ const P = "currentColor", p2 = {
6840
6846
  )
6841
6847
  }
6842
6848
  ),
6843
- open: (t = P) => /* @__PURE__ */ l.jsxs(
6849
+ open: (t = A) => /* @__PURE__ */ l.jsxs(
6844
6850
  "svg",
6845
6851
  {
6846
6852
  fill: "none",
@@ -6864,7 +6870,7 @@ const P = "currentColor", p2 = {
6864
6870
  ]
6865
6871
  }
6866
6872
  ),
6867
- won: (t = P) => /* @__PURE__ */ l.jsxs("svg", { width: "100%", height: "100%", xmlns: "http://www.w3.org/2000/svg", viewBox: "-5.12 -5.12 74.24 74.24", fill: t, children: [
6873
+ won: (t = A) => /* @__PURE__ */ l.jsxs("svg", { width: "100%", height: "100%", xmlns: "http://www.w3.org/2000/svg", viewBox: "-5.12 -5.12 74.24 74.24", fill: t, children: [
6868
6874
  /* @__PURE__ */ l.jsx(
6869
6875
  "path",
6870
6876
  {
@@ -6888,7 +6894,7 @@ const P = "currentColor", p2 = {
6888
6894
  /* @__PURE__ */ l.jsx("line", { fill: "none", stroke: t, strokeWidth: "4.608", strokeMiterlimit: "10", x1: "13", y1: "30", x2: "51", y2: "30" }),
6889
6895
  /* @__PURE__ */ l.jsx("line", { fill: "none", stroke: t, strokeWidth: "4.608", strokeMiterlimit: "10", x1: "13", y1: "36", x2: "51", y2: "36" })
6890
6896
  ] }),
6891
- dollar: (t = P) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "-0.48 -0.48 24.96 24.96", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6897
+ dollar: (t = A) => /* @__PURE__ */ l.jsxs("svg", { viewBox: "-0.48 -0.48 24.96 24.96", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
6892
6898
  /* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "12", r: "10", stroke: t, strokeWidth: "1.632" }),
6893
6899
  /* @__PURE__ */ l.jsx("path", { d: "M12 6V18", stroke: t, strokeWidth: "1.632", strokeLinecap: "round" }),
6894
6900
  /* @__PURE__ */ l.jsx(
@@ -6901,7 +6907,7 @@ const P = "currentColor", p2 = {
6901
6907
  }
6902
6908
  )
6903
6909
  ] }),
6904
- app: (t = P) => /* @__PURE__ */ l.jsxs(
6910
+ app: (t = A) => /* @__PURE__ */ l.jsxs(
6905
6911
  "svg",
6906
6912
  {
6907
6913
  fill: t,
@@ -6921,7 +6927,7 @@ const P = "currentColor", p2 = {
6921
6927
  ]
6922
6928
  }
6923
6929
  ),
6924
- disconnect: (t = P) => /* @__PURE__ */ l.jsxs("svg", { fill: t, width: "100%", height: "100%", viewBox: "0 0 56 56", xmlns: "http://www.w3.org/2000/svg", children: [
6930
+ disconnect: (t = A) => /* @__PURE__ */ l.jsxs("svg", { fill: t, width: "100%", height: "100%", viewBox: "0 0 56 56", xmlns: "http://www.w3.org/2000/svg", children: [
6925
6931
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6926
6932
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6927
6933
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx(
@@ -6931,7 +6937,7 @@ const P = "currentColor", p2 = {
6931
6937
  }
6932
6938
  ) })
6933
6939
  ] }),
6934
- refresh: (t = P) => /* @__PURE__ */ l.jsxs(
6940
+ refresh: (t = A) => /* @__PURE__ */ l.jsxs(
6935
6941
  "svg",
6936
6942
  {
6937
6943
  fill: t,
@@ -6954,7 +6960,7 @@ const P = "currentColor", p2 = {
6954
6960
  ]
6955
6961
  }
6956
6962
  ),
6957
- check: (t = P) => /* @__PURE__ */ l.jsxs("svg", { fill: t, viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", children: [
6963
+ check: (t = A) => /* @__PURE__ */ l.jsxs("svg", { fill: t, viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", children: [
6958
6964
  /* @__PURE__ */ l.jsx("g", { strokeWidth: "0" }),
6959
6965
  /* @__PURE__ */ l.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
6960
6966
  /* @__PURE__ */ l.jsx("g", { children: /* @__PURE__ */ l.jsx("path", { d: "M5 16.577l2.194-2.195 5.486 5.484L24.804 7.743 27 9.937l-14.32 14.32z" }) })
@@ -6963,10 +6969,10 @@ const P = "currentColor", p2 = {
6963
6969
  const n = p2[t](e);
6964
6970
  return n || null;
6965
6971
  }, ra = Z(({ ...t }, e) => {
6966
- const { id: n, className: s, style: i } = { ...t }, { icon: r, size: o = "medium", onClick: a } = { ...t }, { color: c, disabled: u } = { ...t }, d = X(null), h = `k-icon-${Gt()}`, f = b(() => a ? 0 : void 0, [a]);
6972
+ const { id: n, className: s, style: i } = { ...t }, { icon: r, size: o = "medium", onClick: a } = { ...t }, { color: c, disabled: u } = { ...t }, d = q(null), h = `k-icon-${Yt()}`, f = b(() => a ? 0 : void 0, [a]);
6967
6973
  if (!r)
6968
6974
  throw Error("Error: icon is required and must be provided.");
6969
- ft(e, () => ({
6975
+ pt(e, () => ({
6970
6976
  click: () => {
6971
6977
  d.current?.click();
6972
6978
  }
@@ -6982,9 +6988,9 @@ const P = "currentColor", p2 = {
6982
6988
  if (!x)
6983
6989
  throw Error(`Not Found icon. icon: ${r}`);
6984
6990
  return x;
6985
- }, [r, c]), k = M((x) => {
6991
+ }, [r, c]), w = S((x) => {
6986
6992
  u || a?.(x);
6987
- }, [a, u]), v = M((x) => {
6993
+ }, [a, u]), C = S((x) => {
6988
6994
  (x.key === "enter" || x.key === " ") && (u || a?.(x));
6989
6995
  }, [u, a]);
6990
6996
  return (
@@ -6999,14 +7005,14 @@ const P = "currentColor", p2 = {
6999
7005
  role: a ? "button" : "img",
7000
7006
  tabIndex: f,
7001
7007
  "aria-label": `${r} icon`,
7002
- onClick: k,
7003
- onKeyDown: v,
7008
+ onClick: w,
7009
+ onKeyDown: C,
7004
7010
  children: y
7005
7011
  }
7006
7012
  )
7007
7013
  );
7008
- }), Ke = B(ra);
7009
- Ke.displayName = "KIcon";
7014
+ }), Ce = O(ra);
7015
+ Ce.displayName = "KIcon";
7010
7016
  ra.displayName = "KIcon";
7011
7017
  const g2 = ["xsmall", "small", "medium", "large", "xlarge"], S2 = Object.values(g2), aa = Z((t, e) => {
7012
7018
  const {
@@ -7024,88 +7030,107 @@ const g2 = ["xsmall", "small", "medium", "large", "xlarge"], S2 = Object.values(
7024
7030
  disabled: p,
7025
7031
  onChange: m,
7026
7032
  ...y
7027
- } = t, k = b(() => o.find((K) => K.value === r)?.label || null, [r, o]), v = X(null), x = X(null), [C, T] = rt("auto"), [w, j] = rt(null), S = b(() => w ? -16 : 4, [w]), L = Tn(v), D = b(() => {
7028
- const V = ["k-select"];
7029
- return n && V.push(n), f && V.push(`k-select--${f}`), p && V.push("k-select--disabled"), w && V.push("k-select--error"), V.join(" ");
7030
- }, [n, f, w, p]), N = M(() => {
7031
- const V = v.current?.getBoundingClientRect().width;
7032
- T(V ? V + 2 : "auto");
7033
- }, []), I = M(async (V) => {
7033
+ } = t, w = b(() => o.find((W) => W.value === r)?.label || null, [r, o]), [C, x] = rt(!1), v = q(null), T = q(null), [k, L] = rt("auto"), [M, j] = rt(null), _ = b(() => M ? -16 : 4, [M]), N = Tn(v), B = b(() => {
7034
+ const P = ["k-select"];
7035
+ return n && P.push(n), f && P.push(`k-select--${f}`), p && P.push("k-select--disabled"), M && P.push("k-select--error"), P.join(" ");
7036
+ }, [n, f, M, p]), F = b(() => {
7037
+ const P = ["k-select__fieldset__container__icon"];
7038
+ return C && P.push("k-select__fieldset__container__icon--open"), P.join(" ");
7039
+ }, [C]), R = S(() => {
7040
+ const P = v.current?.getBoundingClientRect().width;
7041
+ L(P ? P + 2 : "auto");
7042
+ }, []), G = S(() => {
7043
+ x(!0);
7044
+ }, []), D = S(() => {
7045
+ x(!1);
7046
+ }, []), I = S(async (P) => {
7034
7047
  if (!s)
7035
7048
  return console.warn("not found rules."), !0;
7036
- const K = V ?? r;
7037
- for (let st = 0; st < s.length; st++) {
7038
- const _ = await (await s[st])(K?.toString()), F = typeof _ == "string" ? _ : null;
7039
- if (F)
7040
- return j(F), !1;
7049
+ const W = P ?? r;
7050
+ for (let it = 0; it < s.length; it++) {
7051
+ const mt = await (await s[it])(W?.toString()), jt = typeof mt == "string" ? mt : null;
7052
+ if (jt)
7053
+ return j(jt), !1;
7041
7054
  }
7042
7055
  return j(null), !0;
7043
- }, [s, r]), z = M((V) => {
7044
- m(V), i && I(V);
7045
- }, [m, i, I]), R = M((V) => {
7046
- p || L?.register(V);
7047
- }, [p]), G = M(() => {
7048
- p || L.remove();
7049
- }, [p]), E = M(() => {
7050
- p || L.remove();
7051
- }, [p]), O = b(() => {
7052
- const V = ["k-select__fieldset__legend"];
7053
- return a && V.push("k-select__fieldset__legend--show"), V.join(" ");
7056
+ }, [s, r]), z = S((P) => {
7057
+ m(P), i && I(P);
7058
+ }, [m, i, I]), Y = S((P) => {
7059
+ p || N?.register(P);
7060
+ }, [p]), at = S(() => {
7061
+ p || N.remove();
7062
+ }, [p]), g = S(() => {
7063
+ p || N.remove();
7064
+ }, [p]), E = b(() => {
7065
+ const P = ["k-select__fieldset__legend"];
7066
+ return a && P.push("k-select__fieldset__legend--show"), P.join(" ");
7054
7067
  }, [a]);
7055
- return bt(() => {
7056
- N();
7057
- }, [f]), ft(e, () => ({
7068
+ return Tt(() => {
7069
+ R();
7070
+ }, [f]), pt(e, () => ({
7058
7071
  onOpen: () => {
7059
- x.current?.onOpen();
7072
+ T.current?.onOpen();
7060
7073
  },
7061
7074
  onClose: () => {
7062
- x.current?.onClose();
7075
+ T.current?.onClose();
7063
7076
  },
7064
7077
  onValidate: () => I()
7065
- })), /* @__PURE__ */ l.jsxs(Ut, { className: D, trigger: "click", position: "bottom-start", ...y, children: [
7066
- /* @__PURE__ */ l.jsxs(Ut.Trigger, { className: "k-select__trigger", disabled: p, children: [
7067
- /* @__PURE__ */ l.jsxs("fieldset", { className: "k-select__fieldset", style: { width: h }, children: [
7068
- /* @__PURE__ */ l.jsxs("legend", { className: O, children: [
7069
- a,
7070
- a && c && /* @__PURE__ */ l.jsx("span", { className: "k-select__fieldset__legend__required", children: "*" })
7078
+ })), /* @__PURE__ */ l.jsxs(
7079
+ Ht,
7080
+ {
7081
+ className: B,
7082
+ trigger: "click",
7083
+ position: "bottom-start",
7084
+ ...y,
7085
+ onDropdownOpen: G,
7086
+ onDropdownClose: D,
7087
+ children: [
7088
+ /* @__PURE__ */ l.jsxs(Ht.Trigger, { className: "k-select__trigger", disabled: p, children: [
7089
+ /* @__PURE__ */ l.jsxs("fieldset", { className: "k-select__fieldset", style: { width: h }, children: [
7090
+ /* @__PURE__ */ l.jsxs("legend", { className: E, children: [
7091
+ a,
7092
+ a && c && /* @__PURE__ */ l.jsx("span", { className: "k-select__fieldset__legend__required", children: "*" })
7093
+ ] }),
7094
+ /* @__PURE__ */ l.jsxs(
7095
+ "div",
7096
+ {
7097
+ ref: v,
7098
+ className: "k-select__fieldset__container",
7099
+ onMouseDown: Y,
7100
+ onMouseUp: at,
7101
+ onMouseLeave: g,
7102
+ children: [
7103
+ w && /* @__PURE__ */ l.jsx("span", { className: "k-select__fieldset__container__value", children: w }),
7104
+ r === void 0 && d && /* @__PURE__ */ l.jsx("span", { className: "k-select__fieldset__container__placeholder", children: d }),
7105
+ /* @__PURE__ */ l.jsx(Ce, { className: F, icon: "keyboard_arrow_down", size: f })
7106
+ ]
7107
+ }
7108
+ )
7109
+ ] }),
7110
+ M && /* @__PURE__ */ l.jsx("div", { className: "k-select__fieldset__message", children: M })
7071
7111
  ] }),
7072
- /* @__PURE__ */ l.jsxs(
7073
- "div",
7074
- {
7075
- ref: v,
7076
- className: "k-select__fieldset__container",
7077
- onMouseDown: R,
7078
- onMouseUp: G,
7079
- onMouseLeave: E,
7080
- children: [
7081
- k && /* @__PURE__ */ l.jsx("span", { className: "k-select__fieldset__container__value", children: k }),
7082
- r === void 0 && d && /* @__PURE__ */ l.jsx("span", { className: "k-select__fieldset__container__placeholder", children: d })
7083
- ]
7084
- }
7085
- )
7086
- ] }),
7087
- w && /* @__PURE__ */ l.jsx("div", { className: "k-select__fieldset__message", children: w })
7088
- ] }),
7089
- /* @__PURE__ */ l.jsx(Ut.Content, { className: "k-select__content", gap: S, children: /* @__PURE__ */ l.jsxs($t, { width: C, size: "medium", className: `k-select__content__menu k-select__content__menu--${f}`, children: [
7090
- o.map((V) => /* @__PURE__ */ l.jsx(
7091
- $t.ItemSelectable,
7092
- {
7093
- label: V.label,
7094
- selected: r === V.value,
7095
- onClick: () => {
7096
- z(V.value);
7097
- }
7098
- },
7099
- V.value
7100
- )),
7101
- o.length === 0 && /* @__PURE__ */ l.jsx($t.Item, { label: u })
7102
- ] }) })
7103
- ] });
7104
- }), y2 = B(aa);
7112
+ /* @__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: [
7113
+ o.map((P) => /* @__PURE__ */ l.jsx(
7114
+ Ut.ItemSelectable,
7115
+ {
7116
+ label: P.label,
7117
+ selected: r === P.value,
7118
+ onClick: () => {
7119
+ z(P.value);
7120
+ }
7121
+ },
7122
+ P.value
7123
+ )),
7124
+ o.length === 0 && /* @__PURE__ */ l.jsx(Ut.Item, { label: u })
7125
+ ] }) })
7126
+ ]
7127
+ }
7128
+ );
7129
+ }), y2 = O(aa);
7105
7130
  aa.displayName = "KSelect";
7106
7131
  y2.displayName = "KSelect";
7107
7132
  const la = Z((t, e) => {
7108
- const n = `k-text-field-${Gt()}`, {
7133
+ const n = `k-text-field-${Yt()}`, {
7109
7134
  id: s = n,
7110
7135
  value: i,
7111
7136
  type: r = "text",
@@ -7119,85 +7144,85 @@ const la = Z((t, e) => {
7119
7144
  onFocus: p,
7120
7145
  onBlur: m,
7121
7146
  onKeyDown: y,
7122
- autoCapitalize: k,
7123
- autoCorrect: v,
7147
+ autoCapitalize: w,
7148
+ autoCorrect: C,
7124
7149
  autoComplete: x,
7125
- leftContent: C,
7150
+ leftContent: v,
7126
7151
  rightContent: T,
7127
- label: w,
7128
- width: j,
7129
- style: S,
7130
- size: L = "medium",
7131
- className: D,
7152
+ label: k,
7153
+ width: L,
7154
+ style: M,
7155
+ size: j = "medium",
7156
+ className: _,
7132
7157
  rules: N,
7133
- validateOnChange: I,
7134
- ...z
7135
- } = t, R = X(null), [G, E] = rt(!1), [O, V] = rt(!1), [K, st] = rt(null), g = b(() => r === "password", [r]), _ = b(() => r === "password" && O ? "text" : r, [r, O]), F = b(() => {
7136
- const $ = ["k-text-field", `k-text-field--${L}`];
7137
- return D && $.push(D), 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 K == "string" && $.push("k-text-field--error"), $.join(" ");
7138
- }, [D, c, u, r, K, L, G]), Q = b(() => {
7158
+ validateOnChange: B,
7159
+ ...F
7160
+ } = t, R = q(null), [G, D] = rt(!1), [I, z] = rt(!1), [Y, at] = rt(null), g = b(() => r === "password", [r]), E = b(() => r === "password" && I ? "text" : r, [r, I]), P = b(() => {
7161
+ const $ = ["k-text-field", `k-text-field--${j}`];
7162
+ 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(" ");
7163
+ }, [_, c, u, r, Y, j, G]), W = b(() => {
7139
7164
  const $ = ["k-text-field__fieldset__legend__label"];
7140
- return w && $.push("k-text-field__fieldset__legend__label--show"), $.join(" ");
7141
- }, [w]), pt = b(() => ({ ...S, width: j }), [S, j]), at = b(() => ({ textAlign: h }), [h]), At = M(async ($) => {
7165
+ return k && $.push("k-text-field__fieldset__legend__label--show"), $.join(" ");
7166
+ }, [k]), it = b(() => ({ ...M, width: L }), [M, L]), lt = b(() => ({ textAlign: h }), [h]), mt = S(async ($) => {
7142
7167
  if (!N)
7143
7168
  return console.warn("not found rules."), !0;
7144
7169
  const ca = $ ?? i;
7145
7170
  for (let $e = 0; $e < N.length; $e++) {
7146
7171
  const ws = await (await N[$e])(ca), ks = typeof ws == "string" ? ws : null;
7147
7172
  if (ks)
7148
- return st(ks), !1;
7149
- }
7150
- return st(null), !0;
7151
- }, [N, i]), Qt = M(($) => {
7152
- f?.($.target.value), I && At($.target.value);
7153
- }, [f, At, I]), tt = M(($) => {
7154
- E(!0), p?.($);
7155
- }, [p]), kt = M(($) => {
7156
- E(!1), m?.($);
7157
- }, [m]), te = M(($) => {
7173
+ return at(ks), !1;
7174
+ }
7175
+ return at(null), !0;
7176
+ }, [N, i]), jt = S(($) => {
7177
+ f?.($.target.value), B && mt($.target.value);
7178
+ }, [f, mt, B]), tt = S(($) => {
7179
+ D(!0), p?.($);
7180
+ }, [p]), bt = S(($) => {
7181
+ D(!1), m?.($);
7182
+ }, [m]), te = S(($) => {
7158
7183
  y?.($);
7159
- }, [y]), We = M(() => {
7160
- V(($) => !$);
7184
+ }, [y]), We = S(() => {
7185
+ z(($) => !$);
7161
7186
  }, [r]);
7162
- return ft(e, () => ({
7187
+ return pt(e, () => ({
7163
7188
  value: i,
7164
7189
  focus: () => R.current?.focus(),
7165
7190
  blur: () => R.current?.blur(),
7166
- onValidate: () => At()
7167
- })), /* @__PURE__ */ l.jsxs("div", { className: F, children: [
7168
- /* @__PURE__ */ l.jsxs("fieldset", { className: "k-text-field__fieldset", style: pt, children: [
7169
- /* @__PURE__ */ l.jsx("legend", { className: "k-text-field__fieldset__legend", children: /* @__PURE__ */ l.jsxs("label", { htmlFor: s, className: Q, children: [
7170
- w,
7171
- w && d && /* @__PURE__ */ l.jsx("span", { className: "k-text-field__fieldset__legend__label__required", children: "*" })
7191
+ onValidate: () => mt()
7192
+ })), /* @__PURE__ */ l.jsxs("div", { className: P, children: [
7193
+ /* @__PURE__ */ l.jsxs("fieldset", { className: "k-text-field__fieldset", style: it, children: [
7194
+ /* @__PURE__ */ l.jsx("legend", { className: "k-text-field__fieldset__legend", children: /* @__PURE__ */ l.jsxs("label", { htmlFor: s, className: W, children: [
7195
+ k,
7196
+ k && d && /* @__PURE__ */ l.jsx("span", { className: "k-text-field__fieldset__legend__label__required", children: "*" })
7172
7197
  ] }) }),
7173
7198
  /* @__PURE__ */ l.jsxs("div", { className: "k-text-field__fieldset__container", children: [
7174
- C && /* @__PURE__ */ l.jsx("div", { className: "k-text-field__fieldset__container__left", children: C }),
7199
+ v && /* @__PURE__ */ l.jsx("div", { className: "k-text-field__fieldset__container__left", children: v }),
7175
7200
  /* @__PURE__ */ l.jsx(
7176
7201
  io,
7177
7202
  {
7178
7203
  ref: R,
7179
7204
  id: s,
7180
7205
  className: "k-text-field__fieldset__container__input",
7181
- type: _,
7182
- label: w,
7206
+ type: E,
7207
+ label: k,
7183
7208
  value: i,
7184
7209
  disabled: c,
7185
7210
  readOnly: u,
7186
7211
  placeholder: o,
7187
7212
  maxLength: a,
7188
- onChange: Qt,
7213
+ onChange: jt,
7189
7214
  onFocus: tt,
7190
- onBlur: kt,
7215
+ onBlur: bt,
7191
7216
  onKeyDown: te,
7192
7217
  autoComplete: x,
7193
- autoCorrect: v,
7194
- autoCapitalize: k,
7195
- style: at,
7196
- ...z
7218
+ autoCorrect: C,
7219
+ autoCapitalize: w,
7220
+ style: lt,
7221
+ ...F
7197
7222
  }
7198
7223
  ),
7199
7224
  g && /* @__PURE__ */ l.jsx(
7200
- Ke,
7225
+ Ce,
7201
7226
  {
7202
7227
  icon: g ? "visibility" : "visibility_off",
7203
7228
  size: 18,
@@ -7209,11 +7234,11 @@ const la = Z((t, e) => {
7209
7234
  T && /* @__PURE__ */ l.jsx("div", { className: "k-text-field__fieldset__container__right", children: T })
7210
7235
  ] })
7211
7236
  ] }),
7212
- K && /* @__PURE__ */ l.jsx("div", { className: "k-text-field__fieldset__message", children: K })
7237
+ Y && /* @__PURE__ */ l.jsx("div", { className: "k-text-field__fieldset__message", children: Y })
7213
7238
  ] });
7214
7239
  });
7215
7240
  la.displayName = "KTextField";
7216
- const P2 = B(la);
7241
+ const P2 = O(la);
7217
7242
  export {
7218
7243
  b2 as BUTTON_VARIANTS,
7219
7244
  g2 as ICON_SIZES,
@@ -7221,12 +7246,12 @@ export {
7221
7246
  ia as KBackdrop,
7222
7247
  fs as KButton,
7223
7248
  r2 as KButtonGroup,
7224
- Ut as KDropdown,
7225
- Ke as KIcon,
7249
+ Ht as KDropdown,
7250
+ Ce as KIcon,
7226
7251
  S2 as KIconSizeList,
7227
7252
  M2 as KMODAL_SIZES,
7228
- $t as KMenu,
7229
- ze as KModal,
7253
+ Ut as KMenu,
7254
+ Ke as KModal,
7230
7255
  y2 as KSelect,
7231
7256
  u2 as KSkeleton,
7232
7257
  f2 as KSpinner,