kku-ui 0.2.54 → 0.2.55

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,5 +1,5 @@
1
1
  import * as Tn from "react";
2
- import ha, { createContext as wt, useContext as Q, memo as I, useCallback as M, useRef as q, useState as at, useMemo as j, useEffect as Lt, Children as At, isValidElement as yt, forwardRef as W, useLayoutEffect as fa, useId as Yt, useInsertionEffect as Wi, Fragment as Ui, createElement as pa, Component as ma, useImperativeHandle as pt, cloneElement as _e } from "react";
2
+ import ha, { createContext as wt, useContext as tt, memo as O, useCallback as M, useRef as J, useState as at, useMemo as j, useEffect as Lt, Children as At, isValidElement as yt, forwardRef as U, useLayoutEffect as fa, useId as Yt, useInsertionEffect as Wi, Fragment as Ui, createElement as pa, Component as ma, useImperativeHandle as pt, cloneElement as _e } from "react";
3
3
  import "lodash-es";
4
4
  import { u as ga, a as Ln, b as ya, c as xa, d as Mn, e as $i } from "../useEscapeKey-BH1YNl0p.js";
5
5
  import { createPortal as Sn } from "react-dom";
@@ -48,13 +48,13 @@ var se = {};
48
48
  var bs;
49
49
  function Ca() {
50
50
  return bs || (bs = 1, process.env.NODE_ENV !== "production" && function() {
51
- function t(m) {
52
- if (m == null) return null;
53
- if (typeof m == "function")
54
- return m.$$typeof === N ? null : m.displayName || m.name || null;
55
- if (typeof m == "string") return m;
56
- switch (m) {
57
- case y:
51
+ function t(y) {
52
+ if (y == null) return null;
53
+ if (typeof y == "function")
54
+ return y.$$typeof === N ? null : y.displayName || y.name || null;
55
+ if (typeof y == "string") return y;
56
+ switch (y) {
57
+ case g:
58
58
  return "Fragment";
59
59
  case v:
60
60
  return "Profiler";
@@ -64,147 +64,147 @@ function Ca() {
64
64
  return "Suspense";
65
65
  case L:
66
66
  return "SuspenseList";
67
- case _:
67
+ case E:
68
68
  return "Activity";
69
69
  }
70
- if (typeof m == "object")
71
- switch (typeof m.tag == "number" && console.error(
70
+ if (typeof y == "object")
71
+ switch (typeof y.tag == "number" && console.error(
72
72
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
73
- ), m.$$typeof) {
74
- case g:
73
+ ), y.$$typeof) {
74
+ case m:
75
75
  return "Portal";
76
76
  case x:
77
- return (m.displayName || "Context") + ".Provider";
77
+ return (y.displayName || "Context") + ".Provider";
78
78
  case k:
79
- return (m._context.displayName || "Context") + ".Consumer";
79
+ return (y._context.displayName || "Context") + ".Consumer";
80
80
  case T:
81
- var D = m.render;
82
- return m = m.displayName, m || (m = D.displayName || D.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
81
+ var D = y.render;
82
+ return y = y.displayName, y || (y = D.displayName || D.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
83
83
  case S:
84
- return D = m.displayName || null, D !== null ? D : t(m.type) || "Memo";
84
+ return D = y.displayName || null, D !== null ? D : t(y.type) || "Memo";
85
85
  case b:
86
- D = m._payload, m = m._init;
86
+ D = y._payload, y = y._init;
87
87
  try {
88
- return t(m(D));
88
+ return t(y(D));
89
89
  } catch {
90
90
  }
91
91
  }
92
92
  return null;
93
93
  }
94
- function e(m) {
95
- return "" + m;
94
+ function e(y) {
95
+ return "" + y;
96
96
  }
97
- function n(m) {
97
+ function n(y) {
98
98
  try {
99
- e(m);
99
+ e(y);
100
100
  var D = !1;
101
101
  } catch {
102
102
  D = !0;
103
103
  }
104
104
  if (D) {
105
105
  D = console;
106
- var F = D.error, V = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
107
- return F.call(
106
+ var z = D.error, V = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
107
+ return z.call(
108
108
  D,
109
109
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
110
  V
111
- ), e(m);
111
+ ), e(y);
112
112
  }
113
113
  }
114
- function s(m) {
115
- if (m === y) return "<>";
116
- if (typeof m == "object" && m !== null && m.$$typeof === b)
114
+ function s(y) {
115
+ if (y === g) return "<>";
116
+ if (typeof y == "object" && y !== null && y.$$typeof === b)
117
117
  return "<...>";
118
118
  try {
119
- var D = t(m);
119
+ var D = t(y);
120
120
  return D ? "<" + D + ">" : "<...>";
121
121
  } catch {
122
122
  return "<...>";
123
123
  }
124
124
  }
125
125
  function i() {
126
- var m = B.A;
127
- return m === null ? null : m.getOwner();
126
+ var y = I.A;
127
+ return y === null ? null : y.getOwner();
128
128
  }
129
129
  function r() {
130
130
  return Error("react-stack-top-frame");
131
131
  }
132
- function o(m) {
133
- if (z.call(m, "key")) {
134
- var D = Object.getOwnPropertyDescriptor(m, "key").get;
132
+ function o(y) {
133
+ if (K.call(y, "key")) {
134
+ var D = Object.getOwnPropertyDescriptor(y, "key").get;
135
135
  if (D && D.isReactWarning) return !1;
136
136
  }
137
- return m.key !== void 0;
137
+ return y.key !== void 0;
138
138
  }
139
- function l(m, D) {
140
- function F() {
141
- G || (G = !0, console.error(
139
+ function l(y, D) {
140
+ function z() {
141
+ Y || (Y = !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
  D
144
144
  ));
145
145
  }
146
- F.isReactWarning = !0, Object.defineProperty(m, "key", {
147
- get: F,
146
+ z.isReactWarning = !0, Object.defineProperty(y, "key", {
147
+ get: z,
148
148
  configurable: !0
149
149
  });
150
150
  }
151
151
  function c() {
152
- var m = t(this.type);
153
- return lt[m] || (lt[m] = !0, console.error(
152
+ var y = t(this.type);
153
+ return lt[y] || (lt[y] = !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
- )), m = this.props.ref, m !== void 0 ? m : null;
155
+ )), y = this.props.ref, y !== void 0 ? y : null;
156
156
  }
157
- function u(m, D, F, V, it, et, kt, jt) {
158
- return F = et.ref, m = {
157
+ function u(y, D, z, V, it, nt, kt, jt) {
158
+ return z = nt.ref, y = {
159
159
  $$typeof: p,
160
- type: m,
160
+ type: y,
161
161
  key: D,
162
- props: et,
162
+ props: nt,
163
163
  _owner: it
164
- }, (F !== void 0 ? F : null) !== null ? Object.defineProperty(m, "ref", {
164
+ }, (z !== void 0 ? z : null) !== null ? Object.defineProperty(y, "ref", {
165
165
  enumerable: !1,
166
166
  get: c
167
- }) : Object.defineProperty(m, "ref", { enumerable: !1, value: null }), m._store = {}, Object.defineProperty(m._store, "validated", {
167
+ }) : Object.defineProperty(y, "ref", { enumerable: !1, value: null }), y._store = {}, Object.defineProperty(y._store, "validated", {
168
168
  configurable: !1,
169
169
  enumerable: !1,
170
170
  writable: !0,
171
171
  value: 0
172
- }), Object.defineProperty(m, "_debugInfo", {
172
+ }), Object.defineProperty(y, "_debugInfo", {
173
173
  configurable: !1,
174
174
  enumerable: !1,
175
175
  writable: !0,
176
176
  value: null
177
- }), Object.defineProperty(m, "_debugStack", {
177
+ }), Object.defineProperty(y, "_debugStack", {
178
178
  configurable: !1,
179
179
  enumerable: !1,
180
180
  writable: !0,
181
181
  value: kt
182
- }), Object.defineProperty(m, "_debugTask", {
182
+ }), Object.defineProperty(y, "_debugTask", {
183
183
  configurable: !1,
184
184
  enumerable: !1,
185
185
  writable: !0,
186
186
  value: jt
187
- }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
187
+ }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
188
188
  }
189
- function d(m, D, F, V, it, et, kt, jt) {
190
- var Y = D.children;
191
- if (Y !== void 0)
189
+ function d(y, D, z, V, it, nt, kt, jt) {
190
+ var X = D.children;
191
+ if (X !== void 0)
192
192
  if (V)
193
- if (R(Y)) {
194
- for (V = 0; V < Y.length; V++)
195
- h(Y[V]);
196
- Object.freeze && Object.freeze(Y);
193
+ if (R(X)) {
194
+ for (V = 0; V < X.length; V++)
195
+ h(X[V]);
196
+ Object.freeze && Object.freeze(X);
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
- else h(Y);
202
- if (z.call(D, "key")) {
203
- Y = t(m);
201
+ else h(X);
202
+ if (K.call(D, "key")) {
203
+ X = t(y);
204
204
  var bt = Object.keys(D).filter(function(We) {
205
205
  return We !== "key";
206
206
  });
207
- V = 0 < bt.length ? "{key: someKey, " + bt.join(": ..., ") + ": ...}" : "{key: someKey}", st[Y + V] || (bt = 0 < bt.length ? "{" + bt.join(": ..., ") + ": ...}" : "{}", console.error(
207
+ V = 0 < bt.length ? "{key: someKey, " + bt.join(": ..., ") + ": ...}" : "{key: someKey}", B[X + V] || (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} />
@@ -212,68 +212,68 @@ React keys must be passed directly to JSX without using spread:
212
212
  let props = %s;
213
213
  <%s key={someKey} {...props} />`,
214
214
  V,
215
- Y,
215
+ X,
216
216
  bt,
217
- Y
218
- ), st[Y + V] = !0);
217
+ X
218
+ ), B[X + V] = !0);
219
219
  }
220
- if (Y = null, F !== void 0 && (n(F), Y = "" + F), o(D) && (n(D.key), Y = "" + D.key), "key" in D) {
221
- F = {};
220
+ if (X = null, z !== void 0 && (n(z), X = "" + z), o(D) && (n(D.key), X = "" + D.key), "key" in D) {
221
+ z = {};
222
222
  for (var ee in D)
223
- ee !== "key" && (F[ee] = D[ee]);
224
- } else F = D;
225
- return Y && l(
226
- F,
227
- typeof m == "function" ? m.displayName || m.name || "Unknown" : m
223
+ ee !== "key" && (z[ee] = D[ee]);
224
+ } else z = D;
225
+ return X && l(
226
+ z,
227
+ typeof y == "function" ? y.displayName || y.name || "Unknown" : y
228
228
  ), u(
229
- m,
230
- Y,
231
- et,
229
+ y,
230
+ X,
231
+ nt,
232
232
  it,
233
233
  i(),
234
- F,
234
+ z,
235
235
  kt,
236
236
  jt
237
237
  );
238
238
  }
239
- function h(m) {
240
- typeof m == "object" && m !== null && m.$$typeof === p && m._store && (m._store.validated = 1);
239
+ function h(y) {
240
+ typeof y == "object" && y !== null && y.$$typeof === p && y._store && (y._store.validated = 1);
241
241
  }
242
- var f = ha, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), x = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), B = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = Object.prototype.hasOwnProperty, R = Array.isArray, E = console.createTask ? console.createTask : function() {
242
+ var f = ha, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), x = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), I = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, R = Array.isArray, _ = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  f = {
246
- "react-stack-bottom-frame": function(m) {
247
- return m();
246
+ "react-stack-bottom-frame": function(y) {
247
+ return y();
248
248
  }
249
249
  };
250
- var G, lt = {}, O = f["react-stack-bottom-frame"].bind(
250
+ var Y, lt = {}, F = f["react-stack-bottom-frame"].bind(
251
251
  f,
252
252
  r
253
- )(), U = E(s(r)), st = {};
254
- se.Fragment = y, se.jsx = function(m, D, F, V, it) {
255
- var et = 1e4 > B.recentlyCreatedOwnerStacks++;
253
+ )(), $ = _(s(r)), B = {};
254
+ se.Fragment = g, se.jsx = function(y, D, z, V, it) {
255
+ var nt = 1e4 > I.recentlyCreatedOwnerStacks++;
256
256
  return d(
257
- m,
257
+ y,
258
258
  D,
259
- F,
259
+ z,
260
260
  !1,
261
261
  V,
262
262
  it,
263
- et ? Error("react-stack-top-frame") : O,
264
- et ? E(s(m)) : U
263
+ nt ? Error("react-stack-top-frame") : F,
264
+ nt ? _(s(y)) : $
265
265
  );
266
- }, se.jsxs = function(m, D, F, V, it) {
267
- var et = 1e4 > B.recentlyCreatedOwnerStacks++;
266
+ }, se.jsxs = function(y, D, z, V, it) {
267
+ var nt = 1e4 > I.recentlyCreatedOwnerStacks++;
268
268
  return d(
269
- m,
269
+ y,
270
270
  D,
271
- F,
271
+ z,
272
272
  !0,
273
273
  V,
274
274
  it,
275
- et ? Error("react-stack-top-frame") : O,
276
- et ? E(s(m)) : U
275
+ nt ? Error("react-stack-top-frame") : F,
276
+ nt ? _(s(y)) : $
277
277
  );
278
278
  };
279
279
  }()), se;
@@ -284,7 +284,7 @@ function wa() {
284
284
  }
285
285
  var a = wa();
286
286
  const Hi = wt(void 0), Zi = () => {
287
- const t = Q(Hi);
287
+ const t = tt(Hi);
288
288
  if (t === void 0)
289
289
  throw new Error("useAccordionContext는 AccordionProvider 내에서 사용되어야 합니다.");
290
290
  return t;
@@ -310,11 +310,11 @@ const Hi = wt(void 0), Zi = () => {
310
310
  children: typeof e == "function" ? e({ isOpen: r }) : e
311
311
  }
312
312
  );
313
- }, Pn = I(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 = q(null), [l, c] = at("auto"), u = j(() => ({
317
+ const { children: e, style: n, ...s } = t, { isOpen: i, summaryId: r } = Zi(), o = J(null), [l, c] = at("auto"), u = j(() => ({
318
318
  ...n,
319
319
  overflow: "hidden",
320
320
  maxHeight: i ? l : 0
@@ -341,11 +341,11 @@ const Yi = (t) => {
341
341
  children: typeof e == "function" ? e({ isOpen: i }) : e
342
342
  }
343
343
  );
344
- }, An = I(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] = at(!!e), o = q(null), l = ga("accordion-"), c = j(() => ({ isOpen: i, setIsOpen: r, root: o, summaryId: l }), [i]), { SummaryElement: u, ContentElement: d } = j(() => {
348
+ const { defaultOpen: e, children: n, ...s } = t, [i, r] = at(!!e), o = J(null), l = ga("accordion-"), c = j(() => ({ isOpen: i, setIsOpen: r, root: o, summaryId: l }), [i]), { SummaryElement: u, ContentElement: d } = j(() => {
349
349
  let h = null, f = null;
350
350
  return At.forEach(n, (p) => {
351
351
  yt(p) && (p?.type === Pn && (h = p), p?.type === An && (f = p));
@@ -355,12 +355,12 @@ const Xi = (t) => {
355
355
  u,
356
356
  d
357
357
  ] }) });
358
- }, Ut = I(Xi);
358
+ }, Ut = O(Xi);
359
359
  Xi.displayName = "Accordion";
360
360
  Ut.displayName = "Accordion";
361
361
  Ut.Summary = Pn;
362
362
  Ut.Content = An;
363
- const qi = W((t, e) => {
363
+ const qi = U((t, e) => {
364
364
  const { type: n, label: s, disabled: i, children: r, tabIndex: o, ...l } = t;
365
365
  if (s && r)
366
366
  throw new Error("Button 컴포넌트에 label과 children을 동시에 넣을 수 없습니다.");
@@ -381,26 +381,26 @@ const qi = W((t, e) => {
381
381
  }
382
382
  )
383
383
  );
384
- }), Ji = I(qi);
384
+ }), Ji = O(qi);
385
385
  qi.displayName = "Button";
386
386
  Ji.displayName = "Button";
387
- const Vn = W(
387
+ const Vn = U(
388
388
  ({ as: t, children: e, ...n }, s) => {
389
389
  const i = t || "ul";
390
390
  return /* @__PURE__ */ a.jsx(i, { ref: s, role: "menu", ...n, children: e });
391
391
  }
392
- ), ka = I(Vn);
392
+ ), ka = O(Vn);
393
393
  Vn.displayName = "Menu";
394
394
  ka.displayName = "Menu";
395
- const Qi = W(
395
+ const Qi = U(
396
396
  (t, e) => {
397
397
  const { as: n, children: s, disabled: i, tabIndex: r, ...o } = t, l = n || "li", c = j(() => i ? void 0 : r ?? 0, [i, r]);
398
398
  return /* @__PURE__ */ a.jsx(l, { ref: e, as: n, role: "menuitem", "aria-disabled": i, tabIndex: c, ...o, children: s });
399
399
  }
400
- ), to = I(Qi);
400
+ ), to = O(Qi);
401
401
  Qi.displayName = "MenuItem";
402
402
  to.displayName = "MenuItem";
403
- const eo = W((t, e) => {
403
+ const eo = U((t, e) => {
404
404
  const {
405
405
  value: n,
406
406
  disabled: s,
@@ -429,17 +429,17 @@ const eo = W((t, e) => {
429
429
  );
430
430
  });
431
431
  eo.displayName = "Switch";
432
- const no = I(eo);
432
+ const no = O(eo);
433
433
  no.displayName = "Switch";
434
- const so = W((t, e) => {
434
+ const so = U((t, e) => {
435
435
  const { label: n, disabled: s, ...i } = t, r = j(() => n || void 0, [n]);
436
436
  return /* @__PURE__ */ a.jsx("input", { ref: e, ...i, disabled: s, "aria-label": r, "aria-disabled": s });
437
- }), io = I(so);
437
+ }), io = O(so);
438
438
  so.displayName = "TextField";
439
439
  io.displayName = "TextField";
440
440
  const Rn = wt({});
441
441
  function Dn(t) {
442
- const e = q(null);
442
+ const e = J(null);
443
443
  return e.current === null && (e.current = t()), e.current;
444
444
  }
445
445
  const En = typeof window < "u", oo = En ? fa : Lt, Ne = /* @__PURE__ */ wt(null);
@@ -577,8 +577,8 @@ function Va(t, e) {
577
577
  * Schedule a process to run on the next frame.
578
578
  */
579
579
  schedule: (h, f = !1, p = !1) => {
580
- const y = p && i ? n : s;
581
- return f && o.add(h), y.has(h) || y.add(h), h;
580
+ const g = p && i ? n : s;
581
+ return f && o.add(h), g.has(h) || g.add(h), h;
582
582
  },
583
583
  /**
584
584
  * Cancel the provided callback from running on the next frame.
@@ -606,11 +606,11 @@ function wo(t, e) {
606
606
  delta: 0,
607
607
  timestamp: 0,
608
608
  isProcessing: !1
609
- }, r = () => n = !0, o = ke.reduce((x, T) => (x[T] = Va(r, e ? T : void 0), x), {}), { setup: l, read: c, resolveKeyframes: u, preUpdate: d, update: h, preRender: f, render: p, postRender: g } = o, y = () => {
609
+ }, r = () => n = !0, o = ke.reduce((x, T) => (x[T] = Va(r, e ? T : void 0), x), {}), { setup: l, read: c, resolveKeyframes: u, preUpdate: d, update: h, preRender: f, render: p, postRender: m } = o, g = () => {
610
610
  const x = Ct.useManualTiming ? i.timestamp : performance.now();
611
- n = !1, Ct.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(x - i.timestamp, Ra), 1)), i.timestamp = x, i.isProcessing = !0, l.process(i), c.process(i), u.process(i), d.process(i), h.process(i), f.process(i), p.process(i), g.process(i), i.isProcessing = !1, n && e && (s = !1, t(y));
611
+ n = !1, Ct.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(x - i.timestamp, Ra), 1)), i.timestamp = x, i.isProcessing = !0, l.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(g));
612
612
  }, w = () => {
613
- n = !0, s = !0, i.isProcessing || t(y);
613
+ n = !0, s = !0, i.isProcessing || t(g);
614
614
  };
615
615
  return { schedule: ke.reduce((x, T) => {
616
616
  const C = o[T];
@@ -620,13 +620,13 @@ function wo(t, e) {
620
620
  o[ke[T]].cancel(x);
621
621
  }, state: i, steps: o };
622
622
  }
623
- const { schedule: K, cancel: St, state: tt, steps: $e } = /* @__PURE__ */ wo(typeof requestAnimationFrame < "u" ? requestAnimationFrame : dt, !0);
623
+ const { schedule: W, cancel: St, state: et, steps: $e } = /* @__PURE__ */ wo(typeof requestAnimationFrame < "u" ? requestAnimationFrame : dt, !0);
624
624
  let Le;
625
625
  function Da() {
626
626
  Le = void 0;
627
627
  }
628
628
  const rt = {
629
- now: () => (Le === void 0 && rt.set(tt.isProcessing || Ct.useManualTiming ? tt.timestamp : performance.now()), Le),
629
+ now: () => (Le === void 0 && rt.set(et.isProcessing || Ct.useManualTiming ? et.timestamp : performance.now()), Le),
630
630
  set: (t) => {
631
631
  Le = t, queueMicrotask(Da);
632
632
  }
@@ -687,13 +687,13 @@ const on = {
687
687
  test: /* @__PURE__ */ $n("hsl", "hue"),
688
688
  parse: /* @__PURE__ */ jo("hue", "saturation", "lightness"),
689
689
  transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + gt.transform(re(e)) + ", " + gt.transform(re(n)) + ", " + re(de.transform(s)) + ")"
690
- }, J = {
690
+ }, Q = {
691
691
  test: (t) => Et.test(t) || on.test(t) || It.test(t),
692
692
  parse: (t) => Et.test(t) ? Et.parse(t) : It.test(t) ? It.parse(t) : on.parse(t),
693
693
  transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Et.transform(t) : It.transform(t),
694
694
  getAnimatableNone: (t) => {
695
- const e = J.parse(t);
696
- return e.alpha = 0, J.transform(e);
695
+ const e = Q.parse(t);
696
+ return e.alpha = 0, Q.transform(e);
697
697
  }
698
698
  }, Ka = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
699
699
  function Wa(t) {
@@ -707,7 +707,7 @@ function he(t) {
707
707
  var: []
708
708
  }, i = [];
709
709
  let r = 0;
710
- const l = e.replace(Ha, (c) => (J.test(c) ? (s.color.push(r), i.push(To), n.push(J.parse(c))) : c.startsWith($a) ? (s.var.push(r), i.push(Ua), n.push(c)) : (s.number.push(r), i.push(bo), n.push(parseFloat(c))), ++r, Vs)).split(Vs);
710
+ const l = e.replace(Ha, (c) => (Q.test(c) ? (s.color.push(r), i.push(To), n.push(Q.parse(c))) : c.startsWith($a) ? (s.var.push(r), i.push(Ua), n.push(c)) : (s.number.push(r), i.push(bo), n.push(parseFloat(c))), ++r, Vs)).split(Vs);
711
711
  return { values: n, split: l, indexes: s, types: i };
712
712
  }
713
713
  function Lo(t) {
@@ -720,12 +720,12 @@ 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 l = n[o];
723
- l === bo ? r += re(i[o]) : l === To ? r += J.transform(i[o]) : r += i[o];
723
+ l === bo ? r += re(i[o]) : l === To ? r += Q.transform(i[o]) : r += i[o];
724
724
  }
725
725
  return r;
726
726
  };
727
727
  }
728
- const Za = (t) => typeof t == "number" ? 0 : J.test(t) ? J.getAnimatableNone(t) : t;
728
+ const Za = (t) => typeof t == "number" ? 0 : Q.test(t) ? Q.getAnimatableNone(t) : t;
729
729
  function Ga(t) {
730
730
  const e = Lo(t);
731
731
  return Mo(t)(e.map(Za));
@@ -758,7 +758,7 @@ function Ya({ hue: t, saturation: e, lightness: n, alpha: s }) {
758
758
  function Ae(t, e) {
759
759
  return (n) => n > 0 ? e : t;
760
760
  }
761
- const Z = (t, e, n) => t + (e - t) * n, Ge = (t, e, n) => {
761
+ const G = (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
764
  }, Xa = [on, Et, It], qa = (t) => Xa.find((e) => e.test(t));
@@ -774,16 +774,16 @@ const Ds = (t, e) => {
774
774
  if (!n || !s)
775
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 = Z(n.alpha, s.alpha, r), Et.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 = G(n.alpha, s.alpha, r), Et.transform(i));
778
778
  }, rn = /* @__PURE__ */ new Set(["none", "hidden"]);
779
779
  function Ja(t, e) {
780
780
  return rn.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
781
781
  }
782
782
  function Qa(t, e) {
783
- return (n) => Z(t, e, n);
783
+ return (n) => G(t, e, n);
784
784
  }
785
785
  function Hn(t) {
786
- return typeof t == "number" ? Qa : typeof t == "string" ? Wn(t) ? Ae : J.test(t) ? Ds : n1 : Array.isArray(t) ? So : typeof t == "object" ? J.test(t) ? Ds : t1 : Ae;
786
+ return typeof t == "number" ? Qa : typeof t == "string" ? Wn(t) ? Ae : Q.test(t) ? Ds : n1 : Array.isArray(t) ? So : typeof t == "object" ? Q.test(t) ? Ds : t1 : 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]));
@@ -816,18 +816,18 @@ const n1 = (t, e) => {
816
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 ? Ja(t, e) : ye(So(e1(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
- return typeof t == "number" && typeof e == "number" && typeof n == "number" ? Z(t, e, n) : Hn(t)(t, e);
819
+ return typeof t == "number" && typeof e == "number" && typeof n == "number" ? G(t, e, n) : Hn(t)(t, e);
820
820
  }
821
821
  const s1 = (t) => {
822
822
  const e = ({ timestamp: n }) => t(n);
823
823
  return {
824
- start: (n = !0) => K.update(e, n),
824
+ start: (n = !0) => W.update(e, n),
825
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.
829
829
  */
830
- now: () => tt.isProcessing ? tt.timestamp : rt.now()
830
+ now: () => et.isProcessing ? et.timestamp : rt.now()
831
831
  };
832
832
  }, Ao = (t, e, n = 10) => {
833
833
  let s = "";
@@ -857,7 +857,7 @@ function Vo(t, e, n) {
857
857
  const s = Math.max(e - o1, 0);
858
858
  return co(n - t(s), e - s);
859
859
  }
860
- const H = {
860
+ const Z = {
861
861
  // Default spring physics
862
862
  stiffness: 100,
863
863
  damping: 10,
@@ -886,16 +886,16 @@ const H = {
886
886
  minDamping: 0.05,
887
887
  maxDamping: 1
888
888
  }, Ye = 1e-3;
889
- function r1({ duration: t = H.duration, bounce: e = H.bounce, velocity: n = H.velocity, mass: s = H.mass }) {
889
+ function r1({ duration: t = Z.duration, bounce: e = Z.bounce, velocity: n = Z.velocity, mass: s = Z.mass }) {
890
890
  let i, r;
891
- Xt(t <= /* @__PURE__ */ ft(H.maxDuration), "Spring duration must be 10 seconds or less");
891
+ Xt(t <= /* @__PURE__ */ ft(Z.maxDuration), "Spring duration must be 10 seconds or less");
892
892
  let o = 1 - e;
893
- o = xt(H.minDamping, H.maxDamping, o), t = xt(H.minDuration, H.maxDuration, /* @__PURE__ */ mt(t)), o < 1 ? (i = (u) => {
894
- const d = u * o, h = d * t, f = d - n, p = an(u, o), g = Math.exp(-h);
895
- return Ye - f / p * g;
893
+ o = xt(Z.minDamping, Z.maxDamping, o), t = xt(Z.minDuration, Z.maxDuration, /* @__PURE__ */ mt(t)), o < 1 ? (i = (u) => {
894
+ const d = u * o, h = d * t, f = d - n, p = an(u, o), m = Math.exp(-h);
895
+ return Ye - f / p * m;
896
896
  }, r = (u) => {
897
- const h = u * o * t, f = h * n + n, p = Math.pow(o, 2) * Math.pow(u, 2) * t, g = Math.exp(-h), y = an(Math.pow(u, 2), o);
898
- return (-i(u) + Ye > 0 ? -1 : 1) * ((f - p) * g) / y;
897
+ const h = u * o * t, f = h * n + n, p = Math.pow(o, 2) * Math.pow(u, 2) * t, m = Math.exp(-h), g = an(Math.pow(u, 2), o);
898
+ return (-i(u) + Ye > 0 ? -1 : 1) * ((f - p) * m) / g;
899
899
  }) : (i = (u) => {
900
900
  const d = Math.exp(-u * t), h = (u - n) * t + 1;
901
901
  return -Ye + d * h;
@@ -906,8 +906,8 @@ function r1({ duration: t = H.duration, bounce: e = H.bounce, velocity: n = H.ve
906
906
  const l = 5 / t, c = l1(i, r, l);
907
907
  if (t = /* @__PURE__ */ ft(t), isNaN(c))
908
908
  return {
909
- stiffness: H.stiffness,
910
- damping: H.damping,
909
+ stiffness: Z.stiffness,
910
+ damping: Z.damping,
911
911
  duration: t
912
912
  };
913
913
  {
@@ -935,10 +935,10 @@ function Es(t, e) {
935
935
  }
936
936
  function d1(t) {
937
937
  let e = {
938
- velocity: H.velocity,
939
- stiffness: H.stiffness,
940
- damping: H.damping,
941
- mass: H.mass,
938
+ velocity: Z.velocity,
939
+ stiffness: Z.stiffness,
940
+ damping: Z.damping,
941
+ mass: Z.mass,
942
942
  isResolvedFromDuration: !1,
943
943
  ...t
944
944
  };
@@ -947,7 +947,7 @@ function d1(t) {
947
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);
948
948
  e = {
949
949
  ...e,
950
- mass: H.mass,
950
+ mass: Z.mass,
951
951
  stiffness: i,
952
952
  damping: r
953
953
  };
@@ -956,12 +956,12 @@ function d1(t) {
956
956
  e = {
957
957
  ...e,
958
958
  ...n,
959
- mass: H.mass
959
+ mass: Z.mass
960
960
  }, e.isResolvedFromDuration = !0;
961
961
  }
962
962
  return e;
963
963
  }
964
- function Re(t = H.visualDuration, e = H.bounce) {
964
+ function Re(t = Z.visualDuration, e = Z.bounce) {
965
965
  const n = typeof t != "object" ? {
966
966
  visualDuration: t,
967
967
  keyframes: [0, 1],
@@ -971,22 +971,22 @@ function Re(t = H.visualDuration, e = H.bounce) {
971
971
  const r = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: r }, { stiffness: c, damping: u, mass: d, duration: h, velocity: f, isResolvedFromDuration: p } = d1({
972
972
  ...n,
973
973
  velocity: -/* @__PURE__ */ mt(n.velocity || 0)
974
- }), g = f || 0, y = u / (2 * Math.sqrt(c * d)), w = o - r, v = /* @__PURE__ */ mt(Math.sqrt(c / d)), k = Math.abs(w) < 5;
975
- s || (s = k ? H.restSpeed.granular : H.restSpeed.default), i || (i = k ? H.restDelta.granular : H.restDelta.default);
974
+ }), m = f || 0, g = u / (2 * Math.sqrt(c * d)), w = o - r, v = /* @__PURE__ */ mt(Math.sqrt(c / d)), k = Math.abs(w) < 5;
975
+ s || (s = k ? Z.restSpeed.granular : Z.restSpeed.default), i || (i = k ? Z.restDelta.granular : Z.restDelta.default);
976
976
  let x;
977
- if (y < 1) {
978
- const C = an(v, y);
977
+ if (g < 1) {
978
+ const C = an(v, g);
979
979
  x = (L) => {
980
- const S = Math.exp(-y * v * L);
981
- return o - S * ((g + y * v * w) / C * Math.sin(C * L) + w * Math.cos(C * L));
980
+ const S = Math.exp(-g * v * L);
981
+ return o - S * ((m + g * v * w) / C * Math.sin(C * L) + w * Math.cos(C * L));
982
982
  };
983
- } else if (y === 1)
984
- x = (C) => o - Math.exp(-v * C) * (w + (g + v * w) * C);
983
+ } else if (g === 1)
984
+ x = (C) => o - Math.exp(-v * C) * (w + (m + v * w) * C);
985
985
  else {
986
- const C = v * Math.sqrt(y * y - 1);
986
+ const C = v * Math.sqrt(g * g - 1);
987
987
  x = (L) => {
988
- const S = Math.exp(-y * v * L), b = Math.min(C * L, 300);
989
- return o - S * ((g + y * v * w) * Math.sinh(b) + C * w * Math.cosh(b)) / C;
988
+ const S = Math.exp(-g * v * L), b = Math.min(C * L, 300);
989
+ return o - S * ((m + g * v * w) * Math.sinh(b) + C * w * Math.cosh(b)) / C;
990
990
  };
991
991
  }
992
992
  const T = {
@@ -996,10 +996,10 @@ function Re(t = H.visualDuration, e = H.bounce) {
996
996
  if (p)
997
997
  l.done = C >= h;
998
998
  else {
999
- let S = C === 0 ? g : 0;
1000
- y < 1 && (S = C === 0 ? /* @__PURE__ */ ft(g) : Vo(x, C, L));
1001
- const b = Math.abs(S) <= s, _ = Math.abs(o - L) <= i;
1002
- l.done = b && _;
999
+ let S = C === 0 ? m : 0;
1000
+ g < 1 && (S = C === 0 ? /* @__PURE__ */ ft(m) : Vo(x, C, L));
1001
+ const b = Math.abs(S) <= s, E = Math.abs(o - L) <= i;
1002
+ l.done = b && E;
1003
1003
  }
1004
1004
  return l.value = l.done ? o : L, l;
1005
1005
  },
@@ -1020,18 +1020,18 @@ function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1020
1020
  const h = t[0], f = {
1021
1021
  done: !1,
1022
1022
  value: h
1023
- }, p = (b) => l !== void 0 && b < l || c !== void 0 && b > c, g = (b) => l === void 0 ? c : c === void 0 || Math.abs(l - b) < Math.abs(c - b) ? l : c;
1024
- let y = n * e;
1025
- const w = h + y, v = o === void 0 ? w : o(w);
1026
- v !== w && (y = v - h);
1027
- const k = (b) => -y * Math.exp(-b / s), x = (b) => v + k(b), T = (b) => {
1028
- const _ = k(b), N = x(b);
1029
- f.done = Math.abs(_) <= u, f.value = f.done ? v : N;
1023
+ }, p = (b) => l !== void 0 && b < l || c !== void 0 && b > c, m = (b) => l === void 0 ? c : c === void 0 || Math.abs(l - b) < Math.abs(c - b) ? l : c;
1024
+ let g = n * e;
1025
+ const w = h + g, v = o === void 0 ? w : o(w);
1026
+ v !== w && (g = v - h);
1027
+ const k = (b) => -g * Math.exp(-b / s), x = (b) => v + k(b), T = (b) => {
1028
+ const E = k(b), N = x(b);
1029
+ f.done = Math.abs(E) <= u, f.value = f.done ? v : N;
1030
1030
  };
1031
1031
  let C, L;
1032
1032
  const S = (b) => {
1033
1033
  p(f.value) && (C = b, L = Re({
1034
- keyframes: [f.value, g(f.value)],
1034
+ keyframes: [f.value, m(f.value)],
1035
1035
  velocity: Vo(x, b, f.value),
1036
1036
  // TODO: This should be passing * 1000
1037
1037
  damping: i,
@@ -1043,8 +1043,8 @@ function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
1043
1043
  return S(0), {
1044
1044
  calculatedDuration: null,
1045
1045
  next: (b) => {
1046
- let _ = !1;
1047
- return !L && C === void 0 && (_ = !0, T(b), S(b)), C !== void 0 && b >= C ? L.next(b - C) : (!_ && T(b), f);
1046
+ let E = !1;
1047
+ return !L && C === void 0 && (E = !0, T(b), S(b)), C !== void 0 && b >= C ? L.next(b - C) : (!E && T(b), f);
1048
1048
  }
1049
1049
  };
1050
1050
  }
@@ -1084,7 +1084,7 @@ function p1(t, e) {
1084
1084
  const n = t[t.length - 1];
1085
1085
  for (let s = 1; s <= e; s++) {
1086
1086
  const i = /* @__PURE__ */ ue(0, e, s);
1087
- t.push(Z(n, 1, i));
1087
+ t.push(G(n, 1, i));
1088
1088
  }
1089
1089
  }
1090
1090
  function m1(t) {
@@ -1185,22 +1185,22 @@ class Xn extends Yn {
1185
1185
  const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: o, resolvedDuration: l, 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: g, onUpdate: y, finalKeyframe: w } = this.options;
1188
+ const { delay: u = 0, keyframes: d, repeat: h, repeatType: f, repeatDelay: p, type: m, onUpdate: g, 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
1190
  const v = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), k = this.playbackSpeed >= 0 ? v < 0 : v > i;
1191
1191
  this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
1192
1192
  let x = this.currentTime, T = s;
1193
1193
  if (h) {
1194
1194
  const b = Math.min(this.currentTime, i) / l;
1195
- let _ = Math.floor(b), N = b % 1;
1196
- !N && b >= 1 && (N = 1), N === 1 && _--, _ = Math.min(_, h + 1), !!(_ % 2) && (f === "reverse" ? (N = 1 - N, p && (N -= p / l)) : f === "mirror" && (T = o)), x = xt(0, 1, N) * l;
1195
+ let E = Math.floor(b), N = b % 1;
1196
+ !N && b >= 1 && (N = 1), N === 1 && E--, E = Math.min(E, h + 1), !!(E % 2) && (f === "reverse" ? (N = 1 - N, p && (N -= p / l)) : f === "mirror" && (T = o)), x = xt(0, 1, N) * l;
1197
1197
  }
1198
1198
  const C = k ? { done: !1, value: d[0] } : T.next(x);
1199
1199
  r && (C.value = r(C.value));
1200
1200
  let { done: L } = C;
1201
1201
  !k && c !== null && (L = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1202
1202
  const S = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
1203
- return S && g !== ln && (C.value = Gn(d, this.options, w, this.speed)), y && y(C.value), S && this.finish(), C;
1203
+ return S && m !== ln && (C.value = Gn(d, this.options, w, this.speed)), g && g(C.value), S && this.finish(), C;
1204
1204
  }
1205
1205
  /**
1206
1206
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -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 ? (Bt.add(this), fn || (fn = !0, K.read(Eo), K.resolveKeyframes(Do))) : (this.readKeyframes(), this.complete());
1400
+ this.state = "scheduled", this.isAsync ? (Bt.add(this), fn || (fn = !0, W.read(Eo), W.resolveKeyframes(Do))) : (this.readKeyframes(), this.complete());
1401
1401
  }
1402
1402
  readKeyframes() {
1403
1403
  const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
@@ -1672,7 +1672,7 @@ class Z1 extends Yn {
1672
1672
  element: d,
1673
1673
  ...h
1674
1674
  }, p = d?.KeyframeResolver || qn;
1675
- this.keyframeResolver = new p(l, (g, y, w) => this.onKeyframesResolved(g, y, f, !w), c, u, d), this.keyframeResolver?.scheduleResolve();
1675
+ this.keyframeResolver = new p(l, (m, g, w) => this.onKeyframesResolved(m, g, f, !w), c, u, d), this.keyframeResolver?.scheduleResolve();
1676
1676
  }
1677
1677
  onKeyframesResolved(e, n, s, i) {
1678
1678
  this.keyframeResolver = void 0;
@@ -1869,17 +1869,17 @@ const el = /\b([a-z-]*)\(.*?\)/gu, gn = {
1869
1869
  }, sl = {
1870
1870
  ...ts,
1871
1871
  // Color props
1872
- color: J,
1873
- backgroundColor: J,
1874
- outlineColor: J,
1875
- fill: J,
1876
- stroke: J,
1872
+ color: Q,
1873
+ backgroundColor: Q,
1874
+ outlineColor: Q,
1875
+ fill: Q,
1876
+ stroke: Q,
1877
1877
  // Border props
1878
- borderColor: J,
1879
- borderTopColor: J,
1880
- borderRightColor: J,
1881
- borderBottomColor: J,
1882
- borderLeftColor: J,
1878
+ borderColor: Q,
1879
+ borderTopColor: Q,
1880
+ borderRightColor: Q,
1881
+ borderBottomColor: Q,
1882
+ borderLeftColor: Q,
1883
1883
  filter: gn,
1884
1884
  WebkitFilter: gn
1885
1885
  }, Wo = (t) => sl[t];
@@ -2031,7 +2031,7 @@ class cl {
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(), K.read(() => {
2034
+ s(), W.read(() => {
2035
2035
  this.events.change.getSize() || this.stop();
2036
2036
  });
2037
2037
  } : s;
@@ -2249,8 +2249,8 @@ function ml(t, e, n = {}) {
2249
2249
  if (!Zs(l))
2250
2250
  return;
2251
2251
  Me.add(c);
2252
- const u = e(c, l), d = (p, g) => {
2253
- window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), Me.has(c) && Me.delete(c), Zs(p) && typeof u == "function" && u(p, { success: g });
2252
+ const u = e(c, l), d = (p, 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 gl(t) {
2269
2269
  return Yo(t) && t.tagName === "svg";
2270
2270
  }
2271
- const nt = (t) => !!(t && t.getVelocity), yl = [...Ko, J, Pt], xl = (t) => yl.find(zo(t)), ss = wt({
2271
+ const st = (t) => !!(t && t.getVelocity), yl = [...Ko, Q, Pt], xl = (t) => yl.find(zo(t)), ss = wt({
2272
2272
  transformPagePoint: (t) => t,
2273
2273
  isStatic: !1,
2274
2274
  reducedMotion: "never"
@@ -2292,23 +2292,23 @@ class vl extends Tn.Component {
2292
2292
  }
2293
2293
  }
2294
2294
  function Cl({ children: t, isPresent: e, anchorX: n, root: s }) {
2295
- const i = Yt(), r = q(null), o = q({
2295
+ const i = Yt(), r = J(null), o = J({
2296
2296
  width: 0,
2297
2297
  height: 0,
2298
2298
  top: 0,
2299
2299
  left: 0,
2300
2300
  right: 0
2301
- }), { nonce: l } = Q(ss);
2301
+ }), { nonce: l } = tt(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)
2305
2305
  return;
2306
2306
  const p = n === "left" ? `left: ${h}` : `right: ${f}`;
2307
2307
  r.current.dataset.motionPopId = i;
2308
- const g = document.createElement("style");
2309
- l && (g.nonce = l);
2310
- const y = s ?? document.head;
2311
- return y.appendChild(g), g.sheet && g.sheet.insertRule(`
2308
+ const m = document.createElement("style");
2309
+ l && (m.nonce = l);
2310
+ const g = s ?? document.head;
2311
+ return g.appendChild(m), m.sheet && m.sheet.insertRule(`
2312
2312
  [data-motion-pop-id="${i}"] {
2313
2313
  position: absolute !important;
2314
2314
  width: ${c}px !important;
@@ -2317,7 +2317,7 @@ function Cl({ children: t, isPresent: e, anchorX: n, root: s }) {
2317
2317
  top: ${d}px !important;
2318
2318
  }
2319
2319
  `), () => {
2320
- y.removeChild(g), y.contains(g) && y.removeChild(g);
2320
+ g.removeChild(m), g.contains(m) && g.removeChild(m);
2321
2321
  };
2322
2322
  }, [e]), a.jsx(vl, { isPresent: e, childRef: r, sizeRef: o, children: Tn.cloneElement(t, { ref: r }) });
2323
2323
  }
@@ -2330,15 +2330,15 @@ const wl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
2330
2330
  custom: i,
2331
2331
  onExitComplete: (p) => {
2332
2332
  u.set(p, !0);
2333
- for (const g of u.values())
2334
- if (!g)
2333
+ for (const m of u.values())
2334
+ if (!m)
2335
2335
  return;
2336
2336
  s && s();
2337
2337
  },
2338
2338
  register: (p) => (u.set(p, !1), () => u.delete(p))
2339
2339
  }), [n, u, s]);
2340
2340
  return r && h && (f = { ...f }), j(() => {
2341
- u.forEach((p, g) => u.set(g, !1));
2341
+ u.forEach((p, m) => u.set(m, !1));
2342
2342
  }, [n]), Tn.useEffect(() => {
2343
2343
  !n && !u.size && s && s();
2344
2344
  }, [n]), o === "popLayout" && (t = a.jsx(Cl, { isPresent: n, anchorX: l, root: c, children: t })), a.jsx(Ne.Provider, { value: f, children: t });
@@ -2347,7 +2347,7 @@ function kl() {
2347
2347
  return /* @__PURE__ */ new Map();
2348
2348
  }
2349
2349
  function Xo(t = !0) {
2350
- const e = Q(Ne);
2350
+ const e = tt(Ne);
2351
2351
  if (e === null)
2352
2352
  return [!0, null];
2353
2353
  const { isPresent: n, onExitComplete: s, register: i } = e, r = Yt();
@@ -2366,37 +2366,37 @@ function Gs(t) {
2366
2366
  }), e;
2367
2367
  }
2368
2368
  const jl = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: r = "sync", propagate: o = !1, anchorX: l = "left", root: c }) => {
2369
- const [u, d] = Xo(o), h = j(() => Gs(t), [t]), f = o && !u ? [] : h.map(be), p = q(!0), g = q(h), y = Dn(() => /* @__PURE__ */ new Map()), [w, v] = at(h), [k, x] = at(h);
2369
+ const [u, d] = Xo(o), h = j(() => Gs(t), [t]), f = o && !u ? [] : h.map(be), p = J(!0), m = J(h), g = Dn(() => /* @__PURE__ */ new Map()), [w, v] = at(h), [k, x] = at(h);
2370
2370
  oo(() => {
2371
- p.current = !1, g.current = h;
2371
+ p.current = !1, m.current = h;
2372
2372
  for (let L = 0; L < k.length; L++) {
2373
2373
  const S = be(k[L]);
2374
- f.includes(S) ? y.delete(S) : y.get(S) !== !0 && y.set(S, !1);
2374
+ f.includes(S) ? g.delete(S) : g.get(S) !== !0 && g.set(S, !1);
2375
2375
  }
2376
2376
  }, [k, f.length, f.join("-")]);
2377
2377
  const T = [];
2378
2378
  if (h !== w) {
2379
2379
  let L = [...h];
2380
2380
  for (let S = 0; S < k.length; S++) {
2381
- const b = k[S], _ = be(b);
2382
- f.includes(_) || (L.splice(S, 0, b), T.push(b));
2381
+ const b = k[S], E = be(b);
2382
+ f.includes(E) || (L.splice(S, 0, b), T.push(b));
2383
2383
  }
2384
2384
  return r === "wait" && T.length && (L = T), x(Gs(L)), v(h), null;
2385
2385
  }
2386
2386
  process.env.NODE_ENV !== "production" && r === "wait" && k.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: C } = Q(Rn);
2387
+ const { forceRender: C } = tt(Rn);
2388
2388
  return a.jsx(a.Fragment, { children: k.map((L) => {
2389
- const S = be(L), b = o && !u ? !1 : h === k || f.includes(S), _ = () => {
2390
- if (y.has(S))
2391
- y.set(S, !0);
2389
+ const S = be(L), b = o && !u ? !1 : h === k || f.includes(S), E = () => {
2390
+ if (g.has(S))
2391
+ g.set(S, !0);
2392
2392
  else
2393
2393
  return;
2394
2394
  let N = !0;
2395
- y.forEach((B) => {
2396
- B || (N = !1);
2397
- }), N && (C?.(), x(g.current), o && d?.(), s && s());
2395
+ g.forEach((I) => {
2396
+ I || (N = !1);
2397
+ }), N && (C?.(), x(m.current), o && d?.(), s && s());
2398
2398
  };
2399
- return a.jsx(wl, { isPresent: b, initial: !p.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: r, root: c, onExitComplete: b ? void 0 : _, anchorX: l, children: L }, S);
2399
+ return a.jsx(wl, { isPresent: b, initial: !p.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: r, root: c, onExitComplete: b ? void 0 : E, anchorX: l, children: L }, S);
2400
2400
  }) });
2401
2401
  }, qo = wt({ strict: !1 }), Ys = {
2402
2402
  animation: [
@@ -2525,7 +2525,7 @@ function Pl(t, e) {
2525
2525
  return t.inherit !== !1 ? e : {};
2526
2526
  }
2527
2527
  function Al(t) {
2528
- const { initial: e, animate: n } = Pl(t, Q(Be));
2528
+ const { initial: e, animate: n } = Pl(t, tt(Be));
2529
2529
  return j(() => ({ initial: e, animate: n }), [Xs(e), Xs(n)]);
2530
2530
  }
2531
2531
  function Xs(t) {
@@ -2550,7 +2550,7 @@ function Rl(t, e, n) {
2550
2550
  }
2551
2551
  const rs = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Dl = "framerAppearId", tr = "data-" + rs(Dl), er = wt({});
2552
2552
  function El(t, e, n, s, i) {
2553
- const { visualElement: r } = Q(Be), o = Q(qo), l = Q(Ne), c = Q(ss).reducedMotion, u = q(null);
2553
+ const { visualElement: r } = tt(Be), o = tt(qo), l = tt(Ne), c = tt(ss).reducedMotion, u = J(null);
2554
2554
  s = s || o.renderer, !u.current && s && (u.current = s(t, {
2555
2555
  visualState: e,
2556
2556
  parent: r,
@@ -2559,19 +2559,19 @@ function El(t, e, n, s, i) {
2559
2559
  blockInitialAnimation: l ? l.initial === !1 : !1,
2560
2560
  reducedMotionConfig: c
2561
2561
  }));
2562
- const d = u.current, h = Q(er);
2562
+ const d = u.current, h = tt(er);
2563
2563
  d && !d.projection && i && (d.type === "html" || d.type === "svg") && _l(u.current, n, i, h);
2564
- const f = q(!1);
2564
+ const f = J(!1);
2565
2565
  Wi(() => {
2566
2566
  d && f.current && d.update(n, l);
2567
2567
  });
2568
- const p = n[tr], g = q(!!p && !window.MotionHandoffIsComplete?.(p) && window.MotionHasOptimisedAnimation?.(p));
2568
+ const p = n[tr], m = J(!!p && !window.MotionHandoffIsComplete?.(p) && window.MotionHasOptimisedAnimation?.(p));
2569
2569
  return oo(() => {
2570
- d && (f.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), es.render(d.render), g.current && d.animationState && d.animationState.animateChanges());
2570
+ d && (f.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), es.render(d.render), m.current && d.animationState && d.animationState.animateChanges());
2571
2571
  }), Lt(() => {
2572
- d && (!g.current && d.animationState && d.animationState.animateChanges(), g.current && (queueMicrotask(() => {
2572
+ d && (!m.current && d.animationState && d.animationState.animateChanges(), m.current && (queueMicrotask(() => {
2573
2573
  window.MotionHandoffMarkAsComplete?.(p);
2574
- }), g.current = !1));
2574
+ }), m.current = !1));
2575
2575
  }), d;
2576
2576
  }
2577
2577
  function _l(t, e, n, s) {
@@ -2604,27 +2604,27 @@ function Nl({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
2604
2604
  function r(l, c) {
2605
2605
  let u;
2606
2606
  const d = {
2607
- ...Q(ss),
2607
+ ...tt(ss),
2608
2608
  ...l,
2609
2609
  layoutId: Bl(l)
2610
2610
  }, { isStatic: h } = d, f = Al(l), p = s(l, h);
2611
2611
  if (!h && En) {
2612
2612
  Il(d, t);
2613
- const g = Ol(d);
2614
- u = g.MeasureLayout, f.visualElement = El(i, p, d, e, g.ProjectionNode);
2613
+ const m = Ol(d);
2614
+ u = m.MeasureLayout, f.visualElement = El(i, p, d, e, m.ProjectionNode);
2615
2615
  }
2616
2616
  return a.jsxs(Be.Provider, { value: f, children: [u && f.visualElement ? a.jsx(u, { visualElement: f.visualElement, ...d }) : null, n(i, l, Rl(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
- const o = W(r);
2619
+ const o = U(r);
2620
2620
  return o[Vl] = i, o;
2621
2621
  }
2622
2622
  function Bl({ layoutId: t }) {
2623
- const e = Q(Rn).id;
2623
+ const e = tt(Rn).id;
2624
2624
  return e && t !== void 0 ? e + "-" + t : t;
2625
2625
  }
2626
2626
  function Il(t, e) {
2627
- const n = Q(qo).strict;
2627
+ const n = tt(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
2630
  t.ignoreStrict ? Xt(!1, s) : vt(!1, s);
@@ -2702,7 +2702,7 @@ const ls = () => ({
2702
2702
  });
2703
2703
  function ir(t, e, n) {
2704
2704
  for (const s in e)
2705
- !nt(e[s]) && !sr(s, n) && (t[s] = e[s]);
2705
+ !st(e[s]) && !sr(s, n) && (t[s] = e[s]);
2706
2706
  }
2707
2707
  function Ul({ transformTemplate: t }, e) {
2708
2708
  return j(() => {
@@ -2817,7 +2817,7 @@ function cs(t) {
2817
2817
  }
2818
2818
  function Jl(t = !1) {
2819
2819
  return (n, s, i, { latestValues: r }, o) => {
2820
- const c = (cs(n) ? Xl : Hl)(s, r, o, n), u = Ml(s, typeof n == "string", t), d = n !== Ui ? { ...u, ...c, ref: i } : {}, { children: h } = s, f = j(() => nt(h) ? h.get() : h, [h]);
2820
+ const c = (cs(n) ? Xl : Hl)(s, r, o, n), u = Ml(s, typeof n == "string", t), d = n !== Ui ? { ...u, ...c, ref: i } : {}, { children: h } = s, f = j(() => st(h) ? h.get() : h, [h]);
2821
2821
  return pa(n, {
2822
2822
  ...d,
2823
2823
  children: f
@@ -2842,7 +2842,7 @@ function us(t, e, n, s) {
2842
2842
  return e;
2843
2843
  }
2844
2844
  function Se(t) {
2845
- return nt(t) ? t.get() : t;
2845
+ return st(t) ? t.get() : t;
2846
2846
  }
2847
2847
  function Ql({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
2848
2848
  return {
@@ -2851,7 +2851,7 @@ function Ql({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
2851
2851
  };
2852
2852
  }
2853
2853
  const lr = (t) => (e, n) => {
2854
- const s = Q(Be), i = Q(Ne), r = () => Ql(t, e, s, i);
2854
+ const s = tt(Be), i = tt(Ne), r = () => Ql(t, e, s, i);
2855
2855
  return n ? r() : Dn(r);
2856
2856
  };
2857
2857
  function tc(t, e, n, s) {
@@ -2867,9 +2867,9 @@ function tc(t, e, n, s) {
2867
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
- const g = us(t, f[p]);
2871
- if (g) {
2872
- const { transitionEnd: y, transition: w, ...v } = g;
2870
+ const m = us(t, f[p]);
2871
+ if (m) {
2872
+ const { transitionEnd: g, transition: w, ...v } = m;
2873
2873
  for (const k in v) {
2874
2874
  let x = v[k];
2875
2875
  if (Array.isArray(x)) {
@@ -2878,8 +2878,8 @@ function tc(t, e, n, s) {
2878
2878
  }
2879
2879
  x !== null && (i[k] = x);
2880
2880
  }
2881
- for (const k in y)
2882
- i[k] = y[k];
2881
+ for (const k in g)
2882
+ i[k] = g[k];
2883
2883
  }
2884
2884
  }
2885
2885
  }
@@ -2888,7 +2888,7 @@ function tc(t, e, n, s) {
2888
2888
  function ds(t, e, n) {
2889
2889
  const { style: s } = t, i = {};
2890
2890
  for (const r in s)
2891
- (nt(s[r]) || e.style && nt(e.style[r]) || sr(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (i[r] = s[r]);
2891
+ (st(s[r]) || e.style && st(e.style[r]) || sr(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (i[r] = s[r]);
2892
2892
  return i;
2893
2893
  }
2894
2894
  const ec = {
@@ -2900,7 +2900,7 @@ const ec = {
2900
2900
  function cr(t, e, n) {
2901
2901
  const s = ds(t, e, n);
2902
2902
  for (const i in t)
2903
- if (nt(t[i]) || nt(e[i])) {
2903
+ if (st(t[i]) || st(e[i])) {
2904
2904
  const r = Jt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2905
2905
  s[r] = t[i];
2906
2906
  }
@@ -2945,7 +2945,7 @@ function rc(t, e) {
2945
2945
  }
2946
2946
  }
2947
2947
  function ac(t) {
2948
- return !!(nt(t) && t.add);
2948
+ return !!(st(t) && t.add);
2949
2949
  }
2950
2950
  function xn(t, e) {
2951
2951
  const n = t.getValue("willChange");
@@ -3010,7 +3010,7 @@ const hs = (t, e, n, s = {}, i, r) => (o) => {
3010
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 = !l.type && !l.ease, h && !r && e.get() !== void 0) {
3011
3011
  const f = cc(d.keyframes, l);
3012
3012
  if (f !== void 0) {
3013
- K.update(() => {
3013
+ W.update(() => {
3014
3014
  d.onUpdate(f), d.onComplete();
3015
3015
  });
3016
3016
  return;
@@ -3033,23 +3033,23 @@ function dr(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3033
3033
  const p = {
3034
3034
  delay: n,
3035
3035
  ...Qn(r || {}, d)
3036
- }, g = h.get();
3037
- if (g !== void 0 && !h.isAnimating && !Array.isArray(f) && f === g && !p.velocity)
3036
+ }, m = h.get();
3037
+ if (m !== void 0 && !h.isAnimating && !Array.isArray(f) && f === m && !p.velocity)
3038
3038
  continue;
3039
- let y = !1;
3039
+ let g = !1;
3040
3040
  if (window.MotionHandoffAnimation) {
3041
3041
  const v = ur(t);
3042
3042
  if (v) {
3043
- const k = window.MotionHandoffAnimation(v, d, K);
3044
- k !== null && (p.startTime = k, y = !0);
3043
+ const k = window.MotionHandoffAnimation(v, d, W);
3044
+ k !== null && (p.startTime = k, g = !0);
3045
3045
  }
3046
3046
  }
3047
- xn(t, d), h.start(hs(d, h, f, t.shouldReduceMotion && Fo.has(d) ? { type: !1 } : p, t, y));
3047
+ xn(t, d), h.start(hs(d, h, f, t.shouldReduceMotion && Fo.has(d) ? { type: !1 } : p, t, g));
3048
3048
  const w = h.animation;
3049
3049
  w && c.push(w);
3050
3050
  }
3051
3051
  return o && Promise.all(c).then(() => {
3052
- K.update(() => {
3052
+ W.update(() => {
3053
3053
  o && rc(t, o);
3054
3054
  });
3055
3055
  }), c;
@@ -3134,8 +3134,8 @@ function bc(t) {
3134
3134
  const i = (c) => (u, d) => {
3135
3135
  const h = me(t, d, c === "exit" ? t.presenceContext?.custom : void 0);
3136
3136
  if (h) {
3137
- const { transition: f, transitionEnd: p, ...g } = h;
3138
- u = { ...u, ...g, ...p };
3137
+ const { transition: f, transitionEnd: p, ...m } = h;
3138
+ u = { ...u, ...m, ...p };
3139
3139
  }
3140
3140
  return u;
3141
3141
  };
@@ -3144,10 +3144,10 @@ function bc(t) {
3144
3144
  }
3145
3145
  function o(c) {
3146
3146
  const { props: u } = t, d = fr(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
3147
- let p = {}, g = 1 / 0;
3147
+ let p = {}, m = 1 / 0;
3148
3148
  for (let w = 0; w < kc; w++) {
3149
3149
  const v = wc[w], k = n[v], x = u[v] !== void 0 ? u[v] : d[v], T = fe(x), C = v === c ? k.isActive : null;
3150
- C === !1 && (g = w);
3150
+ C === !1 && (m = w);
3151
3151
  let L = x === d[v] && x !== u[v] && T;
3152
3152
  if (L && s && t.manuallyAnimateOnMount && (L = !1), k.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3153
3153
  !k.isActive && C === null || // If we didn't and don't have any defined prop for this animation type
@@ -3157,27 +3157,27 @@ function bc(t) {
3157
3157
  const S = Tc(k.prevProp, x);
3158
3158
  let b = S || // If we're making this variant active, we want to always make it active
3159
3159
  v === c && k.isActive && !L && T || // If we removed a higher-priority variant (i is in reverse order)
3160
- w > g && T, _ = !1;
3160
+ w > m && T, E = !1;
3161
3161
  const N = Array.isArray(x) ? x : [x];
3162
- let B = N.reduce(i(v), {});
3163
- C === !1 && (B = {});
3164
- const { prevResolvedValues: z = {} } = k, R = {
3165
- ...z,
3166
- ...B
3167
- }, E = (O) => {
3168
- b = !0, f.has(O) && (_ = !0, f.delete(O)), k.needsAnimating[O] = !0;
3169
- const U = t.getValue(O);
3170
- U && (U.liveStyle = !1);
3162
+ let I = N.reduce(i(v), {});
3163
+ C === !1 && (I = {});
3164
+ const { prevResolvedValues: K = {} } = k, R = {
3165
+ ...K,
3166
+ ...I
3167
+ }, _ = (F) => {
3168
+ b = !0, f.has(F) && (E = !0, f.delete(F)), k.needsAnimating[F] = !0;
3169
+ const $ = t.getValue(F);
3170
+ $ && ($.liveStyle = !1);
3171
3171
  };
3172
- for (const O in R) {
3173
- const U = B[O], st = z[O];
3174
- if (p.hasOwnProperty(O))
3172
+ for (const F in R) {
3173
+ const $ = I[F], B = K[F];
3174
+ if (p.hasOwnProperty(F))
3175
3175
  continue;
3176
- let m = !1;
3177
- yn(U) && yn(st) ? m = !hr(U, st) : m = U !== st, m ? U != null ? E(O) : f.add(O) : U !== void 0 && f.has(O) ? E(O) : k.protectedKeys[O] = !0;
3176
+ let y = !1;
3177
+ yn($) && yn(B) ? y = !hr($, B) : y = $ !== B, y ? $ != null ? _(F) : f.add(F) : $ !== void 0 && f.has(F) ? _(F) : k.protectedKeys[F] = !0;
3178
3178
  }
3179
- k.prevProp = x, k.prevResolvedValues = B, k.isActive && (p = { ...p, ...B }), s && t.blockInitialAnimation && (b = !1), b && (!(L && S) || _) && h.push(...N.map((O) => ({
3180
- animation: O,
3179
+ k.prevProp = x, k.prevResolvedValues = I, k.isActive && (p = { ...p, ...I }), s && t.blockInitialAnimation && (b = !1), b && (!(L && S) || E) && h.push(...N.map((F) => ({
3180
+ animation: F,
3181
3181
  options: { type: v }
3182
3182
  })));
3183
3183
  }
@@ -3192,8 +3192,8 @@ function bc(t) {
3192
3192
  x && (x.liveStyle = !0), w[v] = k ?? null;
3193
3193
  }), h.push({ animation: w });
3194
3194
  }
3195
- let y = !!h.length;
3196
- return s && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (y = !1), s = !1, y ? e(h) : Promise.resolve();
3195
+ let g = !!h.length;
3196
+ return s && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (g = !1), s = !1, g ? e(h) : Promise.resolve();
3197
3197
  }
3198
3198
  function l(c, u) {
3199
3199
  if (n[c].isActive === u)
@@ -3344,7 +3344,7 @@ function Bc(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 = Z(e.min, e.max, t.origin), t.scale = ot(n) / ot(e), t.translate = Z(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Dc && t.scale <= Ec || isNaN(t.scale)) && (t.scale = 1), (t.translate >= _c && t.translate <= Nc || isNaN(t.translate)) && (t.translate = 0);
3347
+ t.origin = s, t.originPoint = G(e.min, e.max, t.origin), t.scale = ot(n) / ot(e), t.translate = G(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Dc && t.scale <= Ec || isNaN(t.scale)) && (t.scale = 1), (t.translate >= _c && t.translate <= Nc || isNaN(t.translate)) && (t.translate = 0);
3348
3348
  }
3349
3349
  function le(t, e, n, s) {
3350
3350
  Qs(t.x, e.x, n.x, s ? s.originX : void 0), Qs(t.y, e.y, n.y, s ? s.originY : void 0);
@@ -3369,7 +3369,7 @@ const ni = () => ({
3369
3369
  }), zt = () => ({
3370
3370
  x: ni(),
3371
3371
  y: ni()
3372
- }), si = () => ({ min: 0, max: 0 }), X = () => ({
3372
+ }), si = () => ({ min: 0, max: 0 }), q = () => ({
3373
3373
  x: si(),
3374
3374
  y: si()
3375
3375
  });
@@ -3425,7 +3425,7 @@ 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
- const r = Z(t.min, t.max, i);
3428
+ const r = G(t.min, t.max, i);
3429
3429
  wn(t, e, n, r, s);
3430
3430
  }
3431
3431
  function Wt(t, e) {
@@ -3448,26 +3448,26 @@ class wr {
3448
3448
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3449
3449
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3450
3450
  return;
3451
- const f = Qe(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, g = zc(f.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3452
- if (!p && !g)
3451
+ const f = Qe(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, m = zc(f.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3452
+ if (!p && !m)
3453
3453
  return;
3454
- const { point: y } = f, { timestamp: w } = tt;
3455
- this.history.push({ ...y, timestamp: w });
3454
+ const { point: g } = f, { timestamp: w } = et;
3455
+ this.history.push({ ...g, timestamp: w });
3456
3456
  const { onStart: v, onMove: k } = this.handlers;
3457
3457
  p || (v && v(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), k && k(this.lastMoveEvent, f);
3458
3458
  }, this.handlePointerMove = (f, p) => {
3459
- this.lastMoveEvent = f, this.lastMoveEventInfo = Je(p, this.transformPagePoint), K.update(this.updatePoint, !0);
3459
+ this.lastMoveEvent = f, this.lastMoveEventInfo = Je(p, this.transformPagePoint), W.update(this.updatePoint, !0);
3460
3460
  }, this.handlePointerUp = (f, p) => {
3461
3461
  this.end();
3462
- const { onEnd: g, onSessionEnd: y, resumeAnimation: w } = this.handlers;
3462
+ const { onEnd: m, onSessionEnd: g, resumeAnimation: w } = this.handlers;
3463
3463
  if (this.dragSnapToOrigin && w && w(), !(this.lastMoveEvent && this.lastMoveEventInfo))
3464
3464
  return;
3465
3465
  const v = Qe(f.type === "pointercancel" ? this.lastMoveEventInfo : Je(p, this.transformPagePoint), this.history);
3466
- this.startEvent && g && g(f, v), y && y(f, v);
3466
+ this.startEvent && m && m(f, v), g && g(f, v);
3467
3467
  }, !ns(e))
3468
3468
  return;
3469
3469
  this.dragSnapToOrigin = r, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = o, this.contextWindow = i || window;
3470
- const l = Ce(e), c = Je(l, this.transformPagePoint), { point: u } = c, { timestamp: d } = tt;
3470
+ const l = Ce(e), c = Je(l, this.transformPagePoint), { point: u } = c, { timestamp: d } = et;
3471
3471
  this.history = [{ ...u, timestamp: d }];
3472
3472
  const { onSessionStart: h } = n;
3473
3473
  h && h(e, Qe(c, this.history)), this.removeListeners = ye(ae(this.contextWindow, "pointermove", this.handlePointerMove), ae(this.contextWindow, "pointerup", this.handlePointerUp), ae(this.contextWindow, "pointercancel", this.handlePointerUp));
@@ -3518,7 +3518,7 @@ function Wc(t, e) {
3518
3518
  return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
3519
3519
  }
3520
3520
  function Uc(t, { min: e, max: n }, s) {
3521
- return e !== void 0 && t < e ? t = s ? Z(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? Z(n, t, s.max) : Math.min(t, n)), t;
3521
+ return e !== void 0 && t < e ? t = s ? G(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? G(n, t, s.max) : Math.min(t, n)), t;
3522
3522
  }
3523
3523
  function di(t, e, n) {
3524
3524
  return {
@@ -3570,7 +3570,7 @@ function pi(t, e) {
3570
3570
  const Xc = /* @__PURE__ */ new WeakMap();
3571
3571
  class qc {
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 = X(), 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 = q(), 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;
@@ -3580,8 +3580,8 @@ class qc {
3580
3580
  const { dragSnapToOrigin: f } = this.getProps();
3581
3581
  f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ce(h).point);
3582
3582
  }, o = (h, f) => {
3583
- const { drag: p, dragPropagation: g, onDragStart: y } = this.getProps();
3584
- if (p && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = ul(p), !this.openDragLock))
3583
+ const { drag: p, dragPropagation: m, onDragStart: g } = this.getProps();
3584
+ if (p && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = ul(p), !this.openDragLock))
3585
3585
  return;
3586
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((v) => {
3587
3587
  let k = this.getAxisMotionValue(v).get() || 0;
@@ -3593,17 +3593,17 @@ class qc {
3593
3593
  }
3594
3594
  }
3595
3595
  this.originPoint[v] = k;
3596
- }), y && K.postRender(() => y(h, f)), xn(this.visualElement, "transform");
3596
+ }), g && W.postRender(() => g(h, f)), xn(this.visualElement, "transform");
3597
3597
  const { animationState: w } = this.visualElement;
3598
3598
  w && w.setActive("whileDrag", !0);
3599
3599
  }, l = (h, f) => {
3600
3600
  this.latestPointerEvent = h, this.latestPanInfo = f;
3601
- const { dragPropagation: p, dragDirectionLock: g, onDirectionLock: y, onDrag: w } = this.getProps();
3601
+ const { dragPropagation: p, dragDirectionLock: m, onDirectionLock: g, onDrag: w } = this.getProps();
3602
3602
  if (!p && !this.openDragLock)
3603
3603
  return;
3604
3604
  const { offset: v } = f;
3605
- if (g && this.currentDirection === null) {
3606
- this.currentDirection = Jc(v), this.currentDirection !== null && y && y(this.currentDirection);
3605
+ if (m && this.currentDirection === null) {
3606
+ this.currentDirection = Jc(v), this.currentDirection !== null && g && g(this.currentDirection);
3607
3607
  return;
3608
3608
  }
3609
3609
  this.updateAxis("x", f.point, v), this.updateAxis("y", f.point, v), this.visualElement.render(), w && w(h, f);
@@ -3633,7 +3633,7 @@ class qc {
3633
3633
  const { velocity: o } = i;
3634
3634
  this.startAnimation(o);
3635
3635
  const { onDragEnd: l } = this.getProps();
3636
- l && K.postRender(() => l(s, i));
3636
+ l && W.postRender(() => l(s, i));
3637
3637
  }
3638
3638
  /**
3639
3639
  * @internal
@@ -3682,7 +3682,7 @@ class qc {
3682
3682
  return;
3683
3683
  let h = c && c[d] || {};
3684
3684
  o && (h = { min: 0, max: 0 });
3685
- const f = i ? 200 : 1e6, p = i ? 40 : 1e7, g = {
3685
+ const f = i ? 200 : 1e6, p = i ? 40 : 1e7, m = {
3686
3686
  type: "inertia",
3687
3687
  velocity: s ? e[d] : 0,
3688
3688
  bounceStiffness: f,
@@ -3693,7 +3693,7 @@ class qc {
3693
3693
  ...r,
3694
3694
  ...h
3695
3695
  };
3696
- return this.startAxisValueAnimation(d, g);
3696
+ return this.startAxisValueAnimation(d, m);
3697
3697
  });
3698
3698
  return Promise.all(u).then(l);
3699
3699
  }
@@ -3728,7 +3728,7 @@ class qc {
3728
3728
  const { projection: i } = this.visualElement, r = this.getAxisMotionValue(n);
3729
3729
  if (i && i.layout) {
3730
3730
  const { min: o, max: l } = i.layout.layoutBox[n];
3731
- r.set(e[n] - Z(o, l, 0.5));
3731
+ r.set(e[n] - G(o, l, 0.5));
3732
3732
  }
3733
3733
  });
3734
3734
  }
@@ -3757,7 +3757,7 @@ class qc {
3757
3757
  if (!Te(o, e, null))
3758
3758
  return;
3759
3759
  const l = this.getAxisMotionValue(o), { min: c, max: u } = this.constraints[o];
3760
- l.set(Z(c, u, i[o]));
3760
+ l.set(G(c, u, i[o]));
3761
3761
  });
3762
3762
  }
3763
3763
  addListeners() {
@@ -3771,7 +3771,7 @@ class qc {
3771
3771
  const { dragConstraints: c } = this.getProps();
3772
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()), K.read(s);
3774
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), W.read(s);
3775
3775
  const o = ge(window, "resize", () => this.scalePositionWithinConstraints()), l = i.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: u }) => {
3776
3776
  this.isDragging && u && (ut((d) => {
3777
3777
  const h = this.getAxisMotionValue(d);
@@ -3815,7 +3815,7 @@ class Qc extends Vt {
3815
3815
  }
3816
3816
  }
3817
3817
  const mi = (t) => (e, n) => {
3818
- t && K.postRender(() => t(e, n));
3818
+ t && W.postRender(() => t(e, n));
3819
3819
  };
3820
3820
  class t0 extends Vt {
3821
3821
  constructor() {
@@ -3834,7 +3834,7 @@ class t0 extends Vt {
3834
3834
  onStart: mi(n),
3835
3835
  onMove: s,
3836
3836
  onEnd: (r, o) => {
3837
- delete this.session, i && K.postRender(() => i(r, o));
3837
+ delete this.session, i && W.postRender(() => i(r, o));
3838
3838
  }
3839
3839
  };
3840
3840
  }
@@ -3882,7 +3882,7 @@ const ie = {
3882
3882
  return s;
3883
3883
  const r = Pt.createTransformer(t), o = typeof i[0] != "number" ? 1 : 0, l = n.x.scale * e.x, c = n.y.scale * e.y;
3884
3884
  i[0 + o] /= l, i[1 + o] /= c;
3885
- const u = Z(l, c, 0.5);
3885
+ const u = G(l, 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);
3887
3887
  }
3888
3888
  };
@@ -3904,7 +3904,7 @@ class n0 extends ma {
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() || K.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() || W.postRender(() => {
3908
3908
  const l = o.getStack();
3909
3909
  (!l || !l.members.length) && this.safeToRemove();
3910
3910
  }))), null;
@@ -3928,8 +3928,8 @@ class n0 extends ma {
3928
3928
  }
3929
3929
  }
3930
3930
  function jr(t) {
3931
- const [e, n] = Xo(), s = Q(Rn);
3932
- return a.jsx(n0, { ...t, layoutGroup: s, switchLayoutGroup: Q(er), isPresent: e, safeToRemove: n });
3931
+ const [e, n] = Xo(), s = tt(Rn);
3932
+ return a.jsx(n0, { ...t, layoutGroup: s, switchLayoutGroup: tt(er), isPresent: e, safeToRemove: n });
3933
3933
  }
3934
3934
  const s0 = {
3935
3935
  borderRadius: {
@@ -3948,7 +3948,7 @@ const s0 = {
3948
3948
  boxShadow: e0
3949
3949
  };
3950
3950
  function i0(t, e, n) {
3951
- const s = nt(t) ? t : Zt(t);
3951
+ const s = st(t) ? t : Zt(t);
3952
3952
  return s.start(hs("", s, e, n)), s.animation;
3953
3953
  }
3954
3954
  const o0 = (t, e) => t.depth - e.depth;
@@ -3971,19 +3971,19 @@ function a0(t, e) {
3971
3971
  const r = i - n;
3972
3972
  r >= e && (St(s), t(r - e));
3973
3973
  };
3974
- return K.setup(s, !0), () => St(s);
3974
+ return W.setup(s, !0), () => St(s);
3975
3975
  }
3976
3976
  const br = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], l0 = br.length, xi = (t) => typeof t == "string" ? parseFloat(t) : t, vi = (t) => typeof t == "number" || A.test(t);
3977
3977
  function c0(t, e, n, s, i, r) {
3978
- i ? (t.opacity = Z(0, n.opacity ?? 1, u0(s)), t.opacityExit = Z(e.opacity ?? 1, 0, d0(s))) : r && (t.opacity = Z(e.opacity ?? 1, n.opacity ?? 1, s));
3978
+ i ? (t.opacity = G(0, n.opacity ?? 1, u0(s)), t.opacityExit = G(e.opacity ?? 1, 0, d0(s))) : r && (t.opacity = G(e.opacity ?? 1, n.opacity ?? 1, s));
3979
3979
  for (let o = 0; o < l0; o++) {
3980
3980
  const l = `border${br[o]}Radius`;
3981
3981
  let c = Ci(e, l), u = Ci(n, l);
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[l] = Math.max(Z(xi(c), xi(u), s), 0), (gt.test(u) || gt.test(c)) && (t[l] += "%")) : t[l] = u;
3984
+ c || (c = 0), u || (u = 0), c === 0 || u === 0 || vi(c) === vi(u) ? (t[l] = Math.max(G(xi(c), xi(u), s), 0), (gt.test(u) || gt.test(c)) && (t[l] += "%")) : t[l] = u;
3985
3985
  }
3986
- (e.rotate || n.rotate) && (t.rotate = Z(e.rotate || 0, n.rotate || 0, s));
3986
+ (e.rotate || n.rotate) && (t.rotate = G(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;
@@ -4005,9 +4005,9 @@ function ji(t, e, n, s, i) {
4005
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 h0(t, e = 0, n = 1, s = 0.5, i, r = t, o = t) {
4008
- if (gt.test(e) && (e = parseFloat(e), e = Z(o.min, o.max, e / 100) - o.min), typeof e != "number")
4008
+ if (gt.test(e) && (e = parseFloat(e), e = G(o.min, o.max, e / 100) - o.min), typeof e != "number")
4009
4009
  return;
4010
- let l = Z(r.min, r.max, s);
4010
+ let l = G(r.min, r.max, s);
4011
4011
  t === r && (l -= e), t.min = ji(t.min, e, n, l, i), t.max = ji(t.max, e, n, l, i);
4012
4012
  }
4013
4013
  function bi(t, e, [n, s, i], r, o) {
@@ -4099,8 +4099,8 @@ function y0(t, e, n) {
4099
4099
  let s = "";
4100
4100
  const i = t.x.translate / e.x, r = t.y.translate / e.y, o = n?.z || 0;
4101
4101
  if ((i || r || o) && (s = `translate3d(${i}px, ${r}px, ${o}px) `), (e.x !== 1 || e.y !== 1) && (s += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
4102
- const { transformPerspective: u, rotate: d, rotateX: h, rotateY: f, skewX: p, skewY: g } = n;
4103
- u && (s = `perspective(${u}px) ${s}`), d && (s += `rotate(${d}deg) `), h && (s += `rotateX(${h}deg) `), f && (s += `rotateY(${f}deg) `), p && (s += `skewX(${p}deg) `), g && (s += `skewY(${g}deg) `);
4102
+ const { transformPerspective: u, rotate: d, rotateX: h, rotateY: f, skewX: p, skewY: m } = n;
4103
+ u && (s = `perspective(${u}px) ${s}`), d && (s += `rotate(${d}deg) `), h && (s += `rotateX(${h}deg) `), f && (s += `rotateY(${f}deg) `), p && (s += `skewX(${p}deg) `), m && (s += `skewY(${m}deg) `);
4104
4104
  }
4105
4105
  const l = t.x.scale * e.x, c = t.y.scale * e.y;
4106
4106
  return (l !== 1 || c !== 1) && (s += `scale(${l}, ${c})`), s || "none";
@@ -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", K, !(i || r));
4123
+ window.MotionCancelOptimisedAnimation(n, "transform", W, !(i || r));
4124
4124
  }
4125
4125
  const { parent: s } = t;
4126
4126
  s && !s.hasCheckedOptimisedAppear && Sr(s);
@@ -4158,7 +4158,7 @@ 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 || l) && (this.isLayoutDirty = !0), t) {
4159
4159
  let d, h = 0;
4160
4160
  const f = () => this.root.updateBlockedByResize = !1;
4161
- K.read(() => {
4161
+ W.read(() => {
4162
4162
  h = window.innerWidth;
4163
4163
  }), t(o, () => {
4164
4164
  const p = window.innerWidth;
@@ -4170,12 +4170,12 @@ 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 g = this.options.transition || u.getDefaultTransition() || R0, { onLayoutAnimationStart: y, onLayoutAnimationComplete: w } = u.getProps(), v = !this.targetLayout || !Mr(this.targetLayout, p), k = !h && f;
4173
+ const m = this.options.transition || u.getDefaultTransition() || R0, { onLayoutAnimationStart: g, onLayoutAnimationComplete: w } = u.getProps(), v = !this.targetLayout || !Mr(this.targetLayout, p), k = !h && f;
4174
4174
  if (this.options.layoutRoot || this.resumeFrom || k || h && (v || !this.currentAnimation)) {
4175
4175
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
4176
4176
  const x = {
4177
- ...Qn(g, "layout"),
4178
- onPlay: y,
4177
+ ...Qn(m, "layout"),
4178
+ onPlay: g,
4179
4179
  onComplete: w
4180
4180
  };
4181
4181
  (u.shouldReduceMotion || this.options.layoutRoot) && (x.delay = 0, x.type = !1), this.startAnimation(x), this.setAnimationOrigin(d, k);
@@ -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(T0), this.nodes.forEach(C0), this.nodes.forEach(w0)) : this.nodes.forEach(Ri), this.clearAllSnapshots();
4241
4241
  const l = rt.now();
4242
- tt.delta = xt(0, 1e3 / 60, l - tt.timestamp), tt.timestamp = l, tt.isProcessing = !0, $e.update.process(tt), $e.preRender.process(tt), $e.render.process(tt), tt.isProcessing = !1;
4242
+ et.delta = xt(0, 1e3 / 60, l - et.timestamp), et.timestamp = l, et.isProcessing = !0, $e.update.process(et), $e.preRender.process(et), $e.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(b0), this.sharedNodes.forEach(P0);
4249
4249
  }
4250
4250
  scheduleUpdateProjection() {
4251
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, K.preRender(this.updateProjection, !1, !0));
4251
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, W.preRender(this.updateProjection, !1, !0));
4252
4252
  }
4253
4253
  scheduleCheckAfterUnmount() {
4254
- K.postRender(() => {
4254
+ W.postRender(() => {
4255
4255
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
4256
4256
  });
4257
4257
  }
@@ -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 = X(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4271
+ this.layout = this.measure(!1), this.layoutCorrected = q(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4272
4272
  const { visualElement: l } = this.options;
4273
4273
  l && l.notify("LayoutMeasure", this.layout.layoutBox, o ? o.layoutBox : void 0);
4274
4274
  }
@@ -4305,7 +4305,7 @@ 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 X();
4308
+ return q();
4309
4309
  const l = o.measureViewportBox();
4310
4310
  if (!(this.scroll?.wasRoot || this.path.some(E0))) {
4311
4311
  const { scroll: u } = this.root;
@@ -4314,7 +4314,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4314
4314
  return l;
4315
4315
  }
4316
4316
  removeElementScroll(o) {
4317
- const l = X();
4317
+ const l = q();
4318
4318
  if (ct(l, o), this.scroll?.wasRoot)
4319
4319
  return l;
4320
4320
  for (let c = 0; c < this.path.length; c++) {
@@ -4324,7 +4324,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4324
4324
  return l;
4325
4325
  }
4326
4326
  applyTransform(o, l = !1) {
4327
- const c = X();
4327
+ const c = q();
4328
4328
  ct(c, o);
4329
4329
  for (let u = 0; u < this.path.length; u++) {
4330
4330
  const d = this.path[u];
@@ -4336,14 +4336,14 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4336
4336
  return Dt(this.latestValues) && Wt(c, this.latestValues), c;
4337
4337
  }
4338
4338
  removeTransform(o) {
4339
- const l = X();
4339
+ const l = q();
4340
4340
  ct(l, o);
4341
4341
  for (let c = 0; c < this.path.length; c++) {
4342
4342
  const u = this.path[c];
4343
4343
  if (!u.instance || !Dt(u.latestValues))
4344
4344
  continue;
4345
4345
  Cn(u.latestValues) && u.updateSnapshot();
4346
- const d = X(), h = u.measurePageBox();
4346
+ const d = q(), h = u.measurePageBox();
4347
4347
  ct(d, h), Ti(l, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, d);
4348
4348
  }
4349
4349
  return Dt(this.latestValues) && Ti(l, this.latestValues), l;
@@ -4362,7 +4362,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4362
4362
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
4363
4363
  }
4364
4364
  forceRelativeParentToResolveTarget() {
4365
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== tt.timestamp && this.relativeParent.resolveTargetDelta(!0);
4365
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== et.timestamp && this.relativeParent.resolveTargetDelta(!0);
4366
4366
  }
4367
4367
  resolveTargetDelta(o = !1) {
4368
4368
  const l = this.getLead();
@@ -4372,14 +4372,14 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4372
4372
  return;
4373
4373
  const { layout: d, layoutId: h } = this.options;
4374
4374
  if (!(!this.layout || !(d || h))) {
4375
- if (this.resolvedRelativeTargetAt = tt.timestamp, !this.targetDelta && !this.relativeTarget) {
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 = X(), this.relativeTargetOrigin = X(), ce(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4377
+ f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = q(), this.relativeTargetOrigin = q(), ce(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4378
4378
  }
4379
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = X(), this.targetWithTransforms = X()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ic(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)) {
4379
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = q(), this.targetWithTransforms = q()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ic(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 = X(), this.relativeTargetOrigin = X(), ce(this.relativeTargetOrigin, this.target, f.target), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4382
+ f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = q(), this.relativeTargetOrigin = q(), ce(this.relativeTargetOrigin, this.target, f.target), ct(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4383
4383
  }
4384
4384
  }
4385
4385
  }
@@ -4393,14 +4393,14 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4393
4393
  calcProjection() {
4394
4394
  const o = this.getLead(), l = !!this.resumingFrom || this !== o;
4395
4395
  let c = !0;
4396
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === tt.timestamp && (c = !1), c)
4396
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === et.timestamp && (c = !1), c)
4397
4397
  return;
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
4401
  ct(this.layoutCorrected, this.layout.layoutBox);
4402
4402
  const h = this.treeScale.x, f = this.treeScale.y;
4403
- Oc(this.layoutCorrected, this.treeScale, this.path, l), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = X());
4403
+ Oc(this.layoutCorrected, this.treeScale, this.path, l), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = q());
4404
4404
  const { target: p } = o;
4405
4405
  if (!p) {
4406
4406
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -4427,16 +4427,16 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4427
4427
  setAnimationOrigin(o, l = !1) {
4428
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 = !l;
4430
- const f = X(), p = c ? c.source : void 0, g = this.layout ? this.layout.source : void 0, y = p !== g, w = this.getStack(), v = !w || w.members.length <= 1, k = !!(y && !v && this.options.crossfade === !0 && !this.path.some(V0));
4430
+ const f = q(), p = c ? c.source : void 0, m = this.layout ? this.layout.source : void 0, g = p !== m, w = this.getStack(), v = !w || w.members.length <= 1, k = !!(g && !v && this.options.crossfade === !0 && !this.path.some(V0));
4431
4431
  this.animationProgress = 0;
4432
4432
  let x;
4433
4433
  this.mixTargetDelta = (T) => {
4434
4434
  const C = T / 1e3;
4435
- Ei(h.x, o.x, C), Ei(h.y, o.y, C), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ce(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), A0(this.relativeTarget, this.relativeTargetOrigin, f, C), x && m0(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = X()), ct(x, this.relativeTarget)), y && (this.animationValues = d, c0(d, u, this.latestValues, C, k, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
4435
+ Ei(h.x, o.x, C), Ei(h.y, o.y, C), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ce(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), A0(this.relativeTarget, this.relativeTargetOrigin, f, C), x && m0(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = q()), ct(x, this.relativeTarget)), g && (this.animationValues = d, c0(d, u, this.latestValues, C, k, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
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 && (St(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = K.update(() => {
4439
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (St(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = W.update(() => {
4440
4440
  Pe.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Zt(0)), this.currentAnimation = i0(this.motionValue, [0, 1e3], {
4441
4441
  ...o,
4442
4442
  velocity: 0,
@@ -4465,7 +4465,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4465
4465
  let { targetWithTransforms: l, target: c, layout: u, latestValues: d } = o;
4466
4466
  if (!(!l || !c || !u)) {
4467
4467
  if (this !== o && this.layout && u && Ar(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4468
- c = this.target || X();
4468
+ c = this.target || q();
4469
4469
  const h = ot(this.layout.layoutBox.x);
4470
4470
  c.x.min = o.target.x.min, c.x.max = c.x.min + h;
4471
4471
  const f = ot(this.layout.layoutBox.y);
@@ -4548,16 +4548,16 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4548
4548
  c && (h = c(d, h)), o.transform = h;
4549
4549
  const { x: f, y: p } = this.projectionDelta;
4550
4550
  o.transformOrigin = `${f.origin * 100}% ${p.origin * 100}% 0`, u.animationValues ? o.opacity = u === this ? d.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : o.opacity = u === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
4551
- for (const g in pe) {
4552
- if (d[g] === void 0)
4551
+ for (const m in pe) {
4552
+ if (d[m] === void 0)
4553
4553
  continue;
4554
- const { correct: y, applyTo: w, isCSSVariable: v } = pe[g], k = h === "none" ? d[g] : y(d[g], u);
4554
+ const { correct: g, applyTo: w, isCSSVariable: v } = pe[m], k = h === "none" ? d[m] : g(d[m], u);
4555
4555
  if (w) {
4556
4556
  const x = w.length;
4557
4557
  for (let T = 0; T < x; T++)
4558
4558
  o[w[T]] = k;
4559
4559
  } else
4560
- v ? this.options.visualElement.renderState.vars[g] = k : o[g] = k;
4560
+ v ? this.options.visualElement.renderState.vars[m] = k : o[m] = k;
4561
4561
  }
4562
4562
  this.options.layoutId && (o.pointerEvents = u === this ? Se(l?.pointerEvents) || "" : "none");
4563
4563
  }
@@ -4595,10 +4595,10 @@ function w0(t) {
4595
4595
  if (d && !d.resumeFrom) {
4596
4596
  const { snapshot: h, layout: f } = d;
4597
4597
  if (h && f) {
4598
- const p = X();
4598
+ const p = q();
4599
4599
  ce(p, e.layoutBox, h.layoutBox);
4600
- const g = X();
4601
- ce(g, n, f.layoutBox), Mr(p, g) || (u = !0), d.options.layoutRoot && (t.relativeTarget = g, t.relativeTargetOrigin = p, t.relativeParent = d);
4600
+ const m = q();
4601
+ ce(m, n, f.layoutBox), Mr(p, m) || (u = !0), d.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = p, t.relativeParent = d);
4602
4602
  }
4603
4603
  }
4604
4604
  }
@@ -4651,10 +4651,10 @@ function P0(t) {
4651
4651
  t.removeLeadSnapshot();
4652
4652
  }
4653
4653
  function Ei(t, e, n) {
4654
- t.translate = Z(e.translate, 0, n), t.scale = Z(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4654
+ t.translate = G(e.translate, 0, n), t.scale = G(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4655
4655
  }
4656
4656
  function _i(t, e, n, s) {
4657
- t.min = Z(e.min, n.min, s), t.max = Z(e.max, n.max, s);
4657
+ t.min = G(e.min, n.min, s), t.max = G(e.max, n.max, s);
4658
4658
  }
4659
4659
  function A0(t, e, n, s) {
4660
4660
  _i(t.x, e.x, n.x, s), _i(t.y, e.y, n.y, s);
@@ -4717,7 +4717,7 @@ function Oi(t, e, n) {
4717
4717
  const { props: s } = t;
4718
4718
  t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
4719
4719
  const i = "onHover" + n, r = s[i];
4720
- r && K.postRender(() => r(e, Ce(e)));
4720
+ r && W.postRender(() => r(e, Ce(e)));
4721
4721
  }
4722
4722
  class B0 extends Vt {
4723
4723
  mount() {
@@ -4755,7 +4755,7 @@ function Fi(t, e, n) {
4755
4755
  return;
4756
4756
  t.animationState && s.whileTap && t.animationState.setActive("whileTap", n === "Start");
4757
4757
  const i = "onTap" + (n === "End" ? "" : n), r = s[i];
4758
- r && K.postRender(() => r(e, Ce(e)));
4758
+ r && W.postRender(() => r(e, Ce(e)));
4759
4759
  }
4760
4760
  class O0 extends Vt {
4761
4761
  mount() {
@@ -4853,9 +4853,9 @@ const X0 = /* @__PURE__ */ new WeakMap();
4853
4853
  function q0(t, e, n) {
4854
4854
  for (const s in e) {
4855
4855
  const i = e[s], r = n[s];
4856
- if (nt(i))
4856
+ if (st(i))
4857
4857
  t.addValue(s, i);
4858
- else if (nt(r))
4858
+ else if (st(r))
4859
4859
  t.addValue(s, Zt(i, { owner: t }));
4860
4860
  else if (r !== i)
4861
4861
  if (t.hasValue(s)) {
@@ -4895,14 +4895,14 @@ class J0 {
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 = rt.now();
4898
- this.renderScheduledAt < f && (this.renderScheduledAt = f, K.render(this.render, !1, !0));
4898
+ this.renderScheduledAt < f && (this.renderScheduledAt = f, W.render(this.render, !1, !0));
4899
4899
  };
4900
4900
  const { latestValues: c, renderState: u } = o;
4901
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 = l, 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];
4905
- c[f] !== void 0 && nt(p) && p.set(c[f], !1);
4905
+ c[f] !== void 0 && st(p) && p.set(c[f], !1);
4906
4906
  }
4907
4907
  }
4908
4908
  mount(e) {
@@ -4923,7 +4923,7 @@ class J0 {
4923
4923
  const s = Qt.has(e);
4924
4924
  s && this.onBindTransform && this.onBindTransform();
4925
4925
  const i = n.on("change", (l) => {
4926
- this.latestValues[e] = l, this.props.onUpdate && K.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
4926
+ this.latestValues[e] = l, this.props.onUpdate && W.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, () => {
@@ -4955,7 +4955,7 @@ class J0 {
4955
4955
  * removed with a re-render to work.
4956
4956
  */
4957
4957
  measureViewportBox() {
4958
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : X();
4958
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : q();
4959
4959
  }
4960
4960
  getStaticValue(e) {
4961
4961
  return this.latestValues[e];
@@ -5040,7 +5040,7 @@ class J0 {
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) : !xl(s) && Pt.test(n) && (s = Uo(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) : !xl(s) && Pt.test(n) && (s = Uo(e, n)), this.setBaseTarget(e, st(s) ? s.get() : s)), st(s) ? s.get() : s;
5044
5044
  }
5045
5045
  /**
5046
5046
  * Set the base target to later animate back to. This is currently
@@ -5063,7 +5063,7 @@ class J0 {
5063
5063
  if (n && s !== void 0)
5064
5064
  return s;
5065
5065
  const i = this.getBaseTargetFromProps(this.props, e);
5066
- return i !== void 0 && !nt(i) ? i : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
5066
+ return i !== void 0 && !st(i) ? i : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
5067
5067
  }
5068
5068
  on(e, n) {
5069
5069
  return this.events[e] || (this.events[e] = new In()), this.events[e].add(n);
@@ -5088,7 +5088,7 @@ class Dr extends J0 {
5088
5088
  handleChildMotionValue() {
5089
5089
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
5090
5090
  const { children: e } = this.props;
5091
- nt(e) && (this.childSubscription = e.on("change", (n) => {
5091
+ st(e) && (this.childSubscription = e.on("change", (n) => {
5092
5092
  this.current && (this.current.textContent = `${n}`);
5093
5093
  }));
5094
5094
  }
@@ -5159,7 +5159,7 @@ function e2(t, e, n, s) {
5159
5159
  }
5160
5160
  class n2 extends Dr {
5161
5161
  constructor() {
5162
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = X;
5162
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = q;
5163
5163
  }
5164
5164
  getBaseTargetFromProps(e, n) {
5165
5165
  return e[n];
@@ -5194,9 +5194,9 @@ const s2 = (t, e) => cs(t) ? new n2(e) : new t2(e, {
5194
5194
  }, s2), o2 = /* @__PURE__ */ Sl(i2), r2 = (t, e) => {
5195
5195
  const { isOpen: n, as: s = "div", children: i, ...r } = t, o = o2[s];
5196
5196
  return /* @__PURE__ */ a.jsx(jl, { children: n && /* @__PURE__ */ a.jsx(o, { ref: e, ...r, children: i }) });
5197
- }, a2 = W(r2), Fe = I(a2);
5197
+ }, a2 = U(r2), Fe = O(a2);
5198
5198
  Fe.displayName = "CTransition";
5199
- const Nr = W((t, e) => {
5199
+ const Nr = U((t, e) => {
5200
5200
  const {
5201
5201
  type: n = "button",
5202
5202
  className: s,
@@ -5209,13 +5209,13 @@ const Nr = W((t, e) => {
5209
5209
  height: d,
5210
5210
  style: h,
5211
5211
  onClick: f,
5212
- onMouseDown: p,
5213
- onMouseLeave: g,
5214
- onMouseUp: y,
5215
- onKeyDown: w,
5216
- onKeyUp: v,
5212
+ onMouseLeave: p,
5213
+ onKeyDown: m,
5214
+ onKeyUp: g,
5215
+ onPointerDown: w,
5216
+ onPointerUp: v,
5217
5217
  ...k
5218
- } = t, x = q(null), T = Ln(x), C = j(() => c === "plain", [c]);
5218
+ } = t, x = J(null), T = Ln(x), C = j(() => c === "plain", [c]);
5219
5219
  pt(e, () => ({
5220
5220
  focus() {
5221
5221
  x.current?.focus();
@@ -5228,23 +5228,23 @@ const Nr = W((t, e) => {
5228
5228
  }
5229
5229
  }));
5230
5230
  const L = j(() => {
5231
- const E = ["k-button", `k-button--${l}`];
5232
- 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(" ");
5233
- }, [s, r, l, c, o]), S = j(() => ({ ...h, width: u, height: d }), []), b = M((E) => {
5234
- r || f?.(E);
5235
- }, [r, f]), _ = M((E) => {
5236
- p?.(E), !r && !C && T?.register(E);
5237
- }, [T, C, p]), N = M((E) => {
5238
- y?.(E), C || T.remove();
5239
- }, [T, C, y]), B = M((E) => {
5240
- if (g?.(E), !x?.current)
5231
+ const _ = ["k-button", `k-button--${l}`];
5232
+ return s && _.push(s), r && _.push("k-button--disabled"), c && _.push(`k-button--${c}`), o && _.push("k-button--danger"), _.join(" ");
5233
+ }, [s, r, l, c, o]), S = j(() => ({ ...h, width: u, height: d }), []), b = M((_) => {
5234
+ r || f?.(_);
5235
+ }, [r, f]), E = M((_) => {
5236
+ if (p?.(_), !x?.current)
5241
5237
  throw Error("Invalid rootRef.");
5242
5238
  C || T.remove();
5243
- }, [T, C, g]), z = M((E) => {
5244
- w?.(E), C || T?.register(E);
5245
- }, [T, w]), R = M((E) => {
5246
- v?.(E), C || Mt(E, () => T.remove());
5247
- }, [T, v]);
5239
+ }, [T, C, p]), N = M((_) => {
5240
+ m?.(_);
5241
+ }, [m]), I = M((_) => {
5242
+ g?.(_), C || Mt(_, () => T.remove());
5243
+ }, [T, g]), K = M((_) => {
5244
+ w?.(_), !r && !C && T?.register(_);
5245
+ }, [T, r]), R = M((_) => {
5246
+ T.remove(), v?.(_);
5247
+ }, [T]);
5248
5248
  return /* @__PURE__ */ a.jsx(
5249
5249
  Ji,
5250
5250
  {
@@ -5255,15 +5255,15 @@ const Nr = W((t, e) => {
5255
5255
  className: L,
5256
5256
  style: S,
5257
5257
  disabled: r,
5258
- onMouseDown: _,
5259
- onMouseLeave: B,
5258
+ onMouseLeave: E,
5260
5259
  onClick: b,
5261
- onMouseUp: N,
5262
- onKeyDown: z,
5263
- onKeyUp: R
5260
+ onKeyDown: N,
5261
+ onKeyUp: I,
5262
+ onPointerDown: K,
5263
+ onPointerUp: R
5264
5264
  }
5265
5265
  );
5266
- }), fs = I(Nr);
5266
+ }), fs = O(Nr);
5267
5267
  Nr.displayName = "KButton";
5268
5268
  fs.displayName = "KButton";
5269
5269
  const S2 = ["outlined", "solid", "primary", "subtle", "plain"], Br = (t) => {
@@ -5285,16 +5285,16 @@ const S2 = ["outlined", "solid", "primary", "subtle", "plain"], Br = (t) => {
5285
5285
  }), c;
5286
5286
  }, [i, n, s]);
5287
5287
  return /* @__PURE__ */ a.jsx("div", { ...r, className: o, role: "group", children: l });
5288
- }, l2 = I(Br);
5288
+ }, l2 = O(Br);
5289
5289
  l2.displayName = "KButtonGroup";
5290
5290
  Br.displayName = "KButtonGroup";
5291
- const Ir = W((t, e) => {
5291
+ const Ir = U((t, e) => {
5292
5292
  const { value: n, className: s, ...i } = t, r = j(() => {
5293
5293
  const o = ["k-toggle-button"];
5294
5294
  return s && o.push(s), o.join(" ");
5295
5295
  }, [s]);
5296
5296
  return /* @__PURE__ */ a.jsx(fs, { ref: e, className: r, ...i });
5297
- }), Or = I(Ir);
5297
+ }), Or = O(Ir);
5298
5298
  Ir.displayName = "KToggleButton";
5299
5299
  Or.displayName = "KToggleButton";
5300
5300
  const Fr = ({
@@ -5306,23 +5306,23 @@ const Fr = ({
5306
5306
  ...r
5307
5307
  }) => {
5308
5308
  const [o, l] = at(null), [c, u] = at([]), d = j(() => {
5309
- const g = ["k-toggle-button-group"];
5310
- return e && g.push(e), g.join(" ");
5309
+ const m = ["k-toggle-button-group"];
5310
+ return e && m.push(e), m.join(" ");
5311
5311
  }, [e]), h = M(
5312
- (g) => {
5313
- t ? u((y) => y.includes(g) ? y.filter((w) => w !== g) : [...y, g]) : l((y) => y === g ? null : g);
5312
+ (m) => {
5313
+ t ? u((g) => g.includes(m) ? g.filter((w) => w !== m) : [...g, m]) : l((g) => g === m ? null : m);
5314
5314
  },
5315
5315
  [t]
5316
- ), f = M((g) => t ? c.includes(g) : o === g, [t, o, c]), p = j(() => At.toArray(i).map((g) => {
5317
- if (!yt(g) || g.type !== Or) return null;
5318
- const y = g, { value: w } = y.props, v = f(w), k = (T) => {
5319
- h(w), y.props.onClick?.(T);
5316
+ ), f = M((m) => t ? c.includes(m) : o === m, [t, o, c]), p = j(() => At.toArray(i).map((m) => {
5317
+ if (!yt(m) || m.type !== Or) return null;
5318
+ const g = m, { value: w } = g.props, v = f(w), k = (T) => {
5319
+ h(w), g.props.onClick?.(T);
5320
5320
  }, x = (T) => {
5321
- y.props.onKeyDown?.(T), Mt(T, () => h(w));
5321
+ g.props.onKeyDown?.(T), Mt(T, () => h(w));
5322
5322
  };
5323
- return _e(y, {
5324
- ...y.props,
5325
- key: g.key ?? `k-toggle-button--${w}`,
5323
+ return _e(g, {
5324
+ ...g.props,
5325
+ key: m.key ?? `k-toggle-button--${w}`,
5326
5326
  className: v ? "k-toggle-button--selected" : void 0,
5327
5327
  variant: n,
5328
5328
  size: s,
@@ -5331,18 +5331,18 @@ const Fr = ({
5331
5331
  });
5332
5332
  }), [i, s, n, f, h]);
5333
5333
  return /* @__PURE__ */ a.jsx("div", { ...r, className: d, role: "group", children: p });
5334
- }, c2 = I(Fr);
5334
+ }, c2 = O(Fr);
5335
5335
  Fr.displayName = "KToggleButtonGroup";
5336
5336
  c2.displayName = "KToggleButtonGroup";
5337
- const zr = W((t, e) => {
5338
- const { className: n, value: s, disabled: i, size: r = "medium", ...o } = t, l = q(null), c = j(() => {
5337
+ const zr = U((t, e) => {
5338
+ const { className: n, value: s, disabled: i, size: r = "medium", ...o } = t, l = J(null), c = j(() => {
5339
5339
  const u = ["k-switch", `k-switch--${s ? "on" : "off"}`];
5340
5340
  return n && u.push(n), r && u.push(`k-switch--${r}`), i && u.push("k-switch--disabled"), u.join(" ");
5341
5341
  }, [s, n, r, i]);
5342
5342
  return pt(e, () => ({
5343
5343
  toggle: () => l.current?.click()
5344
5344
  })), /* @__PURE__ */ a.jsx(no, { ref: l, ...o, value: s, className: c, disabled: i, children: /* @__PURE__ */ a.jsx("span", { className: "k-switch__toggle" }) });
5345
- }), u2 = I(zr);
5345
+ }), u2 = O(zr);
5346
5346
  zr.displayName = "KSwitch";
5347
5347
  u2.displayName = "KSwitch";
5348
5348
  const Kr = (t) => {
@@ -5357,10 +5357,10 @@ const Kr = (t) => {
5357
5357
  ] }),
5358
5358
  /* @__PURE__ */ a.jsx(Ut.Content, { className: "k-accordion__content", children: /* @__PURE__ */ a.jsx("div", { className: "k-accordion__content__container", children: i }) })
5359
5359
  ] });
5360
- }, d2 = I(Kr);
5360
+ }, d2 = O(Kr);
5361
5361
  d2.displayName = "KAccordion";
5362
5362
  Kr.displayName = "KAccordion";
5363
- const Wr = W((t, e) => {
5363
+ const Wr = U((t, e) => {
5364
5364
  const {
5365
5365
  children: n,
5366
5366
  className: s,
@@ -5374,36 +5374,34 @@ const Wr = W((t, e) => {
5374
5374
  onClick: h,
5375
5375
  onMouseDown: f,
5376
5376
  onMouseLeave: p,
5377
- onMouseUp: g,
5378
- onKeyDown: y,
5377
+ onMouseUp: m,
5378
+ onKeyDown: g,
5379
5379
  onKeyUp: w,
5380
5380
  onPointerUp: v,
5381
5381
  onPointerDown: k,
5382
5382
  ...x
5383
- } = t, T = q(null), C = Ln(T);
5383
+ } = t, T = J(null), C = Ln(T);
5384
5384
  pt(e, () => T.current, []);
5385
5385
  const L = j(() => {
5386
- const m = ["k-menu-item", `k-menu-item--${r}`];
5387
- return s && m.push(s), d && m.push("k-menu-item--disabled"), m.join(" ");
5388
- }, [s, r]), S = j(() => ({ ...i }), [i]), b = M((m) => {
5389
- d || h?.(m);
5390
- }, [d, h]), _ = M((m) => {
5391
- d || f?.(m);
5392
- }, [C, f, d]), N = M((m) => {
5393
- g?.(m), C.remove();
5394
- }, [C, g]), B = M((m) => {
5395
- p?.(m), C.remove();
5396
- }, [C, p]), z = M((m) => {
5397
- y?.(m), C?.register(m), Mt(m, () => {
5386
+ const B = ["k-menu-item", `k-menu-item--${r}`];
5387
+ return s && B.push(s), d && B.push("k-menu-item--disabled"), B.join(" ");
5388
+ }, [s, r]), S = j(() => ({ ...i }), [i]), b = M((B) => {
5389
+ d || f?.(B);
5390
+ }, [C, f, d]), E = M((B) => {
5391
+ m?.(B), C.remove();
5392
+ }, [C, m]), N = M((B) => {
5393
+ p?.(B), C.remove();
5394
+ }, [C, p]), I = M((B) => {
5395
+ g?.(B), C?.register(B), Mt(B, () => {
5398
5396
  h?.();
5399
5397
  });
5400
- }, [C, y]), R = M((m) => {
5401
- w?.(m), Mt(m, () => C.remove());
5402
- }, [C, w]), E = M((m) => {
5403
- d || C?.register(m), k?.(m);
5404
- }, [C, d, f]), G = M((m) => {
5405
- C.remove(), v?.(m);
5406
- }, [C, g]), lt = j(() => o ? /* @__PURE__ */ a.jsx("span", { className: "k-menu-item__left-content", children: o }) : null, [o]), O = j(() => /* @__PURE__ */ a.jsx("div", { className: "k-menu-item__label", children: l }), [l]), U = j(() => c ? /* @__PURE__ */ a.jsx("span", { className: "k-menu-item__right-content", children: c }) : null, [c]), st = j(() => u ? /* @__PURE__ */ a.jsx("span", { className: "k-menu-item__shortcut", children: u }) : null, [u]);
5398
+ }, [C, g]), K = M((B) => {
5399
+ w?.(B), Mt(B, () => C.remove());
5400
+ }, [C, w]), R = M((B) => {
5401
+ d || (h?.(B), C?.register(B)), k?.(B);
5402
+ }, [C, d, f]), _ = M((B) => {
5403
+ C.remove(), v?.(B);
5404
+ }, [C]), Y = j(() => o ? /* @__PURE__ */ a.jsx("span", { className: "k-menu-item__left-content", children: o }) : null, [o]), lt = j(() => /* @__PURE__ */ a.jsx("div", { className: "k-menu-item__label", children: l }), [l]), F = j(() => c ? /* @__PURE__ */ a.jsx("span", { className: "k-menu-item__right-content", children: c }) : null, [c]), $ = j(() => u ? /* @__PURE__ */ a.jsx("span", { className: "k-menu-item__shortcut", children: u }) : null, [u]);
5407
5405
  return /* @__PURE__ */ a.jsxs(
5408
5406
  to,
5409
5407
  {
@@ -5413,27 +5411,26 @@ const Wr = W((t, e) => {
5413
5411
  className: L,
5414
5412
  style: S,
5415
5413
  disabled: d,
5416
- onClick: b,
5417
- onMouseDown: _,
5418
- onMouseUp: N,
5419
- onPointerDown: E,
5420
- onPointerUp: G,
5421
- onMouseLeave: B,
5422
- onKeyDown: z,
5423
- onKeyUp: R,
5414
+ onMouseDown: b,
5415
+ onMouseUp: E,
5416
+ onPointerDown: R,
5417
+ onPointerUp: _,
5418
+ onMouseLeave: N,
5419
+ onKeyDown: I,
5420
+ onKeyUp: K,
5424
5421
  children: [
5422
+ Y,
5425
5423
  lt,
5426
- O,
5427
- st,
5428
- U
5424
+ $,
5425
+ F
5429
5426
  ]
5430
5427
  }
5431
5428
  );
5432
- }), ze = I(Wr);
5429
+ }), ze = O(Wr);
5433
5430
  ze.displayName = "KMenu.Item";
5434
5431
  Wr.displayName = "KMenu.Item";
5435
- const Ur = W((t, e) => {
5436
- const { selected: n, className: s, label: i, ...r } = t, o = q(null);
5432
+ const Ur = U((t, e) => {
5433
+ const { selected: n, className: s, label: i, ...r } = t, o = J(null);
5437
5434
  pt(e, () => o.current, []);
5438
5435
  const l = j(() => {
5439
5436
  const u = ["k-menu-item-selectable"];
@@ -5450,21 +5447,21 @@ const Ur = W((t, e) => {
5450
5447
  leftContent: c
5451
5448
  }
5452
5449
  );
5453
- }), ps = I(Ur);
5450
+ }), ps = O(Ur);
5454
5451
  ps.displayName = "KMenu.ItemSelectable";
5455
5452
  Ur.displayName = "KMenu.ItemSelectable";
5456
- const $r = W((t, e) => {
5457
- const { children: n, className: s, ...i } = t, r = q(null);
5453
+ const $r = U((t, e) => {
5454
+ const { children: n, className: s, ...i } = t, r = J(null);
5458
5455
  pt(e, () => r.current, []);
5459
5456
  const o = j(() => {
5460
5457
  const l = ["k-menu-item-divider"];
5461
5458
  return s && l.push(s), l.join(" ");
5462
5459
  }, [s]);
5463
5460
  return /* @__PURE__ */ a.jsx("li", { ref: r, ...i, className: o, role: "separator", "aria-orientation": "horizontal" });
5464
- }), ms = I($r);
5461
+ }), ms = O($r);
5465
5462
  ms.displayName = "KMenu.ItemDivider";
5466
5463
  $r.displayName = "KMenu.ItemDivider";
5467
- const Hr = W((t, e) => {
5464
+ const Hr = U((t, e) => {
5468
5465
  const { children: n, className: s, style: i, width: r, size: o = "medium", ...l } = t, c = j(() => {
5469
5466
  const h = ["k-menu", `k-menu--${o}`];
5470
5467
  return s && h.push(s), h.join(" ");
@@ -5472,13 +5469,13 @@ const Hr = W((t, e) => {
5472
5469
  const h = [];
5473
5470
  return At.forEach(n, (f, p) => {
5474
5471
  if (yt(f) && (f.type === ze || f.type === ps || f.type === ms)) {
5475
- const g = f;
5476
- h.push(_e(g, { ...g.props, size: o, key: f.key ?? `k-menu-item-${p}` }));
5472
+ const m = f;
5473
+ h.push(_e(m, { ...m.props, size: o, key: f.key ?? `k-menu-item-${p}` }));
5477
5474
  }
5478
5475
  }), h;
5479
5476
  }, [n, o]);
5480
5477
  return /* @__PURE__ */ a.jsx(Vn, { ...l, as: "ul", ref: e, className: c, style: u, children: d });
5481
- }), Zr = I(Hr);
5478
+ }), Zr = O(Hr);
5482
5479
  Zr.displayName = "KMenu";
5483
5480
  Hr.displayName = "KMenu";
5484
5481
  const $t = Zr;
@@ -5487,11 +5484,11 @@ $t.ItemSelectable = ps;
5487
5484
  $t.ItemDivider = ms;
5488
5485
  const Gr = wt(null);
5489
5486
  function Yr() {
5490
- const t = Q(Gr);
5487
+ const t = tt(Gr);
5491
5488
  if (!t) throw new Error("KDropdown must be used within <KDropdown>");
5492
5489
  return t;
5493
5490
  }
5494
- const Xr = W((t, e) => {
5491
+ const Xr = U((t, e) => {
5495
5492
  const {
5496
5493
  children: n,
5497
5494
  className: s,
@@ -5503,29 +5500,29 @@ const Xr = W((t, e) => {
5503
5500
  onFocus: u,
5504
5501
  onBlur: d,
5505
5502
  ...h
5506
- } = t, { id: f, triggerRef: p, contentRef: g, trigger: y, open: w, onOpen: v, onClose: k, onFocusContent: x } = Yr(), T = j(() => r ? -1 : 0, [r]);
5503
+ } = t, { id: f, triggerRef: p, contentRef: m, trigger: g, open: w, onOpen: v, onClose: k, onFocusContent: x } = Yr(), T = j(() => r ? -1 : 0, [r]);
5507
5504
  pt(e, () => p.current, []);
5508
5505
  const C = j(() => {
5509
5506
  const R = ["k-dropdown__trigger"];
5510
5507
  return s && R.push(s), r && R.push("k-dropdown__trigger--disabled"), R.join(" ");
5511
5508
  }, [s, r]), L = M((R) => {
5512
- i?.(R), y === "click" && !r && (w ? k() : v());
5513
- }, [w, i, y, r]), S = M((R) => {
5514
- o?.(R), y === "hover" && !r && v();
5515
- }, [y, o, r]), b = M((R) => {
5516
- l?.(R), y === "hover" && k();
5517
- }, [y, l]), _ = M((R) => {
5509
+ i?.(R), g === "click" && !r && (w ? k() : v());
5510
+ }, [w, i, g, r]), S = M((R) => {
5511
+ o?.(R), g === "hover" && !r && v();
5512
+ }, [g, o, r]), b = M((R) => {
5513
+ l?.(R), g === "hover" && k();
5514
+ }, [g, l]), E = M((R) => {
5518
5515
  if (c?.(R), r)
5519
5516
  return;
5520
5517
  Mt(R, v);
5521
- const E = y === "hover" && R.key === "Tab" && !R.shiftKey, G = y === "click" && w && R.key === "Tab" && !R.shiftKey;
5522
- (E || G) && (R.preventDefault(), x());
5523
- }, [c, y, w, r]), N = M((R) => {
5524
- u?.(R), y === "hover" && !r && v();
5525
- }, [u, y, r]), B = M((R) => {
5526
- d?.(R), y === "hover" && k();
5527
- }, [d, y]), z = j(() => At.map(n, (R) => yt(R) ? _e(R, { tabIndex: -1 }) : R), [n]);
5528
- return ya(g, k, p), // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex,jsx-a11y/no-static-element-interactions
5518
+ const _ = g === "hover" && R.key === "Tab" && !R.shiftKey, Y = g === "click" && w && R.key === "Tab" && !R.shiftKey;
5519
+ (_ || Y) && (R.preventDefault(), x());
5520
+ }, [c, g, w, r]), N = M((R) => {
5521
+ u?.(R), g === "hover" && !r && v();
5522
+ }, [u, g, r]), I = M((R) => {
5523
+ d?.(R), g === "hover" && k();
5524
+ }, [d, g]), K = j(() => At.map(n, (R) => yt(R) ? _e(R, { tabIndex: -1 }) : R), [n]);
5525
+ return ya(m, k, p), // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex,jsx-a11y/no-static-element-interactions
5529
5526
  /* @__PURE__ */ a.jsx(
5530
5527
  "div",
5531
5528
  {
@@ -5538,19 +5535,19 @@ const Xr = W((t, e) => {
5538
5535
  "aria-controls": w ? f : void 0,
5539
5536
  "aria-expanded": w,
5540
5537
  "aria-haspopup": "true",
5541
- onKeyDown: _,
5538
+ onKeyDown: E,
5542
5539
  onClick: L,
5543
5540
  onMouseEnter: S,
5544
5541
  onMouseLeave: b,
5545
5542
  onFocus: N,
5546
- onBlur: B,
5547
- children: z
5543
+ onBlur: I,
5544
+ children: K
5548
5545
  }
5549
5546
  );
5550
- }), gs = I(Xr);
5547
+ }), gs = O(Xr);
5551
5548
  gs.displayName = "Dropdown.Trigger";
5552
5549
  Xr.displayName = "Dropdown.Trigger";
5553
- const h2 = 160, qr = W((t, e) => {
5550
+ const h2 = 160, qr = U((t, e) => {
5554
5551
  const {
5555
5552
  className: n,
5556
5553
  style: s,
@@ -5564,36 +5561,35 @@ const h2 = 160, qr = W((t, e) => {
5564
5561
  autoClose: h = !0,
5565
5562
  gap: f = 2,
5566
5563
  offset: p,
5567
- container: g,
5568
- zIndex: y,
5564
+ container: m,
5565
+ zIndex: g,
5569
5566
  ...w
5570
- } = t, { open: v, triggerRef: k, contentRef: x, position: T, onOpen: C, onClose: L, onBlurContent: S, trigger: b } = Yr(), { top: _, left: N } = xa({
5567
+ } = t, { open: v, triggerRef: k, contentRef: x, position: T, onOpen: C, onClose: L, onBlurContent: S, trigger: b } = Yr(), { top: E, left: N } = xa({
5571
5568
  triggerRef: k,
5572
5569
  contentRef: x,
5573
5570
  position: T,
5574
5571
  offset: p,
5575
5572
  open: v,
5576
5573
  gap: f
5577
- }), B = Mn(g);
5574
+ }), I = Mn(m);
5578
5575
  $i(L), pt(e, () => x.current);
5579
- const z = j(() => {
5580
- const m = ["k-dropdown__content"];
5581
- return n && m.push(n), m.join(" ");
5582
- }, [n]), R = j(() => ({ ...s, position: "fixed", top: _, left: N, zIndex: y }), [s, _, N, y]), E = M((m) => {
5583
- r?.(m), h && L();
5584
- }, [r, h]), G = M((m) => {
5585
- o?.(m), b === "hover" && C();
5586
- }, [b, o]), lt = M((m) => {
5587
- l?.(m), b === "hover" && L();
5588
- }, [b, l]), O = M((m) => {
5589
- Mt(m, L), m.key === "Tab" && m.shiftKey && S(m);
5590
- }, [d]), U = M((m) => {
5591
- c?.(m), b === "hover" && C();
5592
- }, [c, b]), st = M((m) => {
5593
- u?.(m), b === "hover" && L();
5576
+ const K = j(() => {
5577
+ const y = ["k-dropdown__content"];
5578
+ return n && y.push(n), y.join(" ");
5579
+ }, [n]), R = j(() => ({ ...s, position: "fixed", top: E, left: N, zIndex: g }), [s, E, N, g]), _ = M((y) => {
5580
+ r?.(y), h && L();
5581
+ }, [r, h]), Y = M((y) => {
5582
+ o?.(y), b === "hover" && C();
5583
+ }, [b, o]), lt = M((y) => {
5584
+ l?.(y), b === "hover" && L();
5585
+ }, [b, l]), F = M((y) => {
5586
+ Mt(y, L), y.key === "Tab" && y.shiftKey && S(y);
5587
+ }, [d]), $ = M((y) => {
5588
+ c?.(y), b === "hover" && C();
5589
+ }, [c, b]), B = M((y) => {
5590
+ u?.(y), b === "hover" && L();
5594
5591
  }, [u, b]);
5595
- if (Lt(() => {
5596
- }, [v]), !!B)
5592
+ if (I)
5597
5593
  return Sn(
5598
5594
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
5599
5595
  /* @__PURE__ */ a.jsx(
@@ -5601,14 +5597,14 @@ const h2 = 160, qr = W((t, e) => {
5601
5597
  {
5602
5598
  ref: x,
5603
5599
  ...w,
5604
- className: z,
5600
+ className: K,
5605
5601
  style: R,
5606
- onClick: E,
5607
- onMouseEnter: G,
5602
+ onClick: _,
5603
+ onMouseEnter: Y,
5608
5604
  onMouseLeave: lt,
5609
- onFocus: U,
5610
- onBlur: st,
5611
- onKeyDown: O,
5605
+ onFocus: $,
5606
+ onBlur: B,
5607
+ onKeyDown: F,
5612
5608
  children: /* @__PURE__ */ a.jsx(
5613
5609
  Fe,
5614
5610
  {
@@ -5622,12 +5618,12 @@ const h2 = 160, qr = W((t, e) => {
5622
5618
  )
5623
5619
  }
5624
5620
  ),
5625
- B
5621
+ I
5626
5622
  );
5627
- }), ys = I(qr);
5623
+ }), ys = O(qr);
5628
5624
  ys.displayName = "Dropdown.Content";
5629
5625
  qr.displayName = "Dropdown.Content";
5630
- const Jr = W((t, e) => {
5626
+ const Jr = U((t, e) => {
5631
5627
  const {
5632
5628
  as: n,
5633
5629
  trigger: s = "hover",
@@ -5637,7 +5633,7 @@ const Jr = W((t, e) => {
5637
5633
  onDropdownOpen: l,
5638
5634
  onDropdownClose: c,
5639
5635
  ...u
5640
- } = t, d = n || "div", [h, f] = at(!1), p = q(null), g = q(null), y = `k-dropdown-${Yt()}`, w = j(() => {
5636
+ } = t, d = n || "div", [h, f] = at(!1), p = J(null), m = J(null), g = `k-dropdown-${Yt()}`, w = j(() => {
5641
5637
  const b = ["k-dropdown"];
5642
5638
  return o && b.push(o), b.join(" ");
5643
5639
  }, [o]), v = M(() => {
@@ -5650,20 +5646,20 @@ const Jr = W((t, e) => {
5650
5646
  onClose: k
5651
5647
  }));
5652
5648
  const { Trigger: x, Content: T } = j(() => {
5653
- const b = At.toArray(r), _ = b.find(
5654
- (B) => yt(B) && B.type === gs
5649
+ const b = At.toArray(r), E = b.find(
5650
+ (I) => yt(I) && I.type === gs
5655
5651
  ), N = b.find(
5656
- (B) => yt(B) && B.type === ys
5652
+ (I) => yt(I) && I.type === ys
5657
5653
  );
5658
- return { Trigger: _, Content: N };
5654
+ return { Trigger: E, Content: N };
5659
5655
  }, [r]), C = M(() => {
5660
- if (!g.current) return;
5661
- g.current.querySelector(
5656
+ if (!m.current) return;
5657
+ m.current.querySelector(
5662
5658
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [role="menuitem"]'
5663
5659
  )?.focus();
5664
5660
  }, []), L = M((b) => {
5665
- if (!g.current) return;
5666
- g.current.querySelector(
5661
+ if (!m.current) return;
5662
+ m.current.querySelector(
5667
5663
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [role="menuitem"]'
5668
5664
  ) === b.target && (b.preventDefault(), p.current?.focus());
5669
5665
  }, []), S = j(
@@ -5674,8 +5670,8 @@ const Jr = W((t, e) => {
5674
5670
  onFocusContent: C,
5675
5671
  onBlurContent: L,
5676
5672
  triggerRef: p,
5677
- id: y,
5678
- contentRef: g,
5673
+ id: g,
5674
+ contentRef: m,
5679
5675
  trigger: s,
5680
5676
  position: i
5681
5677
  }),
@@ -5685,7 +5681,7 @@ const Jr = W((t, e) => {
5685
5681
  x,
5686
5682
  T
5687
5683
  ] }) });
5688
- }), Ht = I(Jr);
5684
+ }), Ht = O(Jr);
5689
5685
  Ht.displayName = "Dropdown";
5690
5686
  Jr.displayName = "Dropdown";
5691
5687
  Ht.Trigger = gs;
@@ -5719,11 +5715,11 @@ const P2 = [
5719
5715
  "aria-hidden": "true"
5720
5716
  }
5721
5717
  );
5722
- }, f2 = I(Qr);
5718
+ }, f2 = O(Qr);
5723
5719
  f2.displayName = "KSkeleton";
5724
5720
  Qr.displayName = "KSkeleton";
5725
5721
  const ta = wt(null), p2 = () => {
5726
- const t = Q(ta);
5722
+ const t = tt(ta);
5727
5723
  if (!t) throw new Error("useModal must be used within a ModalProvider");
5728
5724
  return t;
5729
5725
  }, m2 = {
@@ -5745,7 +5741,7 @@ const ta = wt(null), p2 = () => {
5745
5741
  exit: { opacity: 0, top: "50%", left: "50%", transform: "translate(-50%, -50%) scale(0.96)" },
5746
5742
  transition: { duration: 0.12, ease: "easeInOut" }
5747
5743
  }
5748
- }, ea = W((t, e) => {
5744
+ }, ea = U((t, e) => {
5749
5745
  const { title: n, children: s, className: i, ...r } = t, { setTitle: o, onCloseAction: l } = p2(), c = j(() => {
5750
5746
  const h = ["k-modal__header"];
5751
5747
  return i && h.push(i), h.join(" ");
@@ -5758,10 +5754,10 @@ const ta = wt(null), p2 = () => {
5758
5754
  n ?? s,
5759
5755
  d
5760
5756
  ] });
5761
- }), xs = I(ea);
5757
+ }), xs = O(ea);
5762
5758
  xs.displayName = "KModalHeader";
5763
5759
  ea.displayName = "KModalHeader";
5764
- const na = W((t, e) => {
5760
+ const na = U((t, e) => {
5765
5761
  const { children: n, className: s, ...i } = t, r = j(() => {
5766
5762
  const o = ["k-modal__content"];
5767
5763
  return s && o.push(s), o.join(" ");
@@ -5770,16 +5766,16 @@ const na = W((t, e) => {
5770
5766
  // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
5771
5767
  /* @__PURE__ */ a.jsx("div", { ref: e, ...i, className: r, tabIndex: 0, children: n })
5772
5768
  );
5773
- }), vs = I(na);
5769
+ }), vs = O(na);
5774
5770
  vs.displayName = "KModalContent";
5775
5771
  na.displayName = "KModalContent";
5776
- const sa = W((t, e) => {
5772
+ const sa = U((t, e) => {
5777
5773
  const { children: n, className: s, align: i = "center", ...r } = t, o = j(() => {
5778
5774
  const l = ["k-modal__footer", `k-modal__footer--${i}`];
5779
5775
  return s && l.push(s), l.join(" ");
5780
5776
  }, [s]);
5781
5777
  return /* @__PURE__ */ a.jsx("div", { ref: e, ...r, className: o, children: n });
5782
- }), Cs = I(sa);
5778
+ }), Cs = O(sa);
5783
5779
  Cs.displayName = "KModalFooter";
5784
5780
  sa.displayName = "KModalFooter";
5785
5781
  const ia = (t) => {
@@ -5797,24 +5793,24 @@ const ia = (t) => {
5797
5793
  overlayOpacity: h,
5798
5794
  overlayClosable: f,
5799
5795
  escClosable: p = !1,
5800
- children: g,
5801
- container: y
5802
- } = t, w = Mn(y), [v, k] = at(null), x = j(() => m2[u], [u]);
5796
+ children: m,
5797
+ container: g
5798
+ } = t, w = Mn(g), [v, k] = at(null), x = j(() => m2[u], [u]);
5803
5799
  if (r === void 0 && typeof o != "function")
5804
5800
  throw new Error('You must provide at least one of "setIsOpen" or "onClose".');
5805
5801
  const T = j(() => ({ ...c, width: n, height: s }), [c, n, s]), C = j(() => {
5806
- const z = ["k-modal", `k-modal--${i}`];
5807
- return e && z.push("k-modal--open"), e || z.push("k-modal--close"), l && z.push(l), z.join(" ");
5802
+ const K = ["k-modal", `k-modal--${i}`];
5803
+ return e && K.push("k-modal--open"), e || K.push("k-modal--close"), l && K.push(l), K.join(" ");
5808
5804
  }, [e, i, l]), L = M(() => {
5809
5805
  o?.(), r?.(!1);
5810
5806
  }, [o, r]), S = M(() => {
5811
5807
  f && L();
5812
- }, [f, L]), { modalHeader: b, modalContent: _, modalFooter: N } = j(() => {
5813
- let z = null, R = null, E = null;
5814
- return At.forEach(g, (G) => {
5815
- yt(G) && (G.type === xs && (z = G), G.type === vs && (R = G), G.type === Cs && (E = G));
5816
- }), { modalHeader: z, modalContent: R, modalFooter: E };
5817
- }, [g]), B = j(() => ({
5808
+ }, [f, L]), { modalHeader: b, modalContent: E, modalFooter: N } = j(() => {
5809
+ let K = null, R = null, _ = null;
5810
+ return At.forEach(m, (Y) => {
5811
+ yt(Y) && (Y.type === xs && (K = Y), Y.type === vs && (R = Y), Y.type === Cs && (_ = Y));
5812
+ }), { modalHeader: K, modalContent: R, modalFooter: _ };
5813
+ }, [m]), I = j(() => ({
5818
5814
  isOpen: e,
5819
5815
  title: v,
5820
5816
  setTitle: k,
@@ -5824,7 +5820,7 @@ const ia = (t) => {
5824
5820
  p && L();
5825
5821
  }), w ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
5826
5822
  Sn(
5827
- /* @__PURE__ */ a.jsx(ta.Provider, { value: B, children: /* @__PURE__ */ a.jsxs(
5823
+ /* @__PURE__ */ a.jsx(ta.Provider, { value: I, children: /* @__PURE__ */ a.jsxs(
5828
5824
  Fe,
5829
5825
  {
5830
5826
  isOpen: e,
@@ -5836,7 +5832,7 @@ const ia = (t) => {
5836
5832
  "aria-label": v ?? void 0,
5837
5833
  children: [
5838
5834
  b,
5839
- _,
5835
+ E,
5840
5836
  N
5841
5837
  ]
5842
5838
  }
@@ -5845,7 +5841,7 @@ const ia = (t) => {
5845
5841
  ),
5846
5842
  d && /* @__PURE__ */ a.jsx(ra, { isOpen: e, onClick: S, opacity: h })
5847
5843
  ] }) : null;
5848
- }, Ke = I(ia);
5844
+ }, Ke = O(ia);
5849
5845
  Ke.displayName = "KModal";
5850
5846
  ia.displayName = "KModal";
5851
5847
  Ke.Header = xs;
@@ -5869,7 +5865,7 @@ const A2 = ["medium", "small", "large"], Ki = {
5869
5865
  onKeyDown: u,
5870
5866
  container: d,
5871
5867
  ...h
5872
- } = t, f = Mn(d), p = j(() => c ? 0 : void 0, [c]), g = j(() => c ? { role: "button", "aria-label": "backdrop" } : { role: r, "aria-label": h["aria-label"] }, [c, r]), y = j(() => {
5868
+ } = t, f = Mn(d), p = j(() => c ? 0 : void 0, [c]), m = j(() => c ? { role: "button", "aria-label": "backdrop" } : { role: r, "aria-label": h["aria-label"] }, [c, r]), g = j(() => {
5873
5869
  const C = ["k-backdrop__container"];
5874
5870
  return n && C.push(n), C.join(" ");
5875
5871
  }, [n]), w = j(() => ({ ...s, opacity: o, zIndex: l }), [s, o, l]), v = j(() => typeof o == "number" ? { ...Ki, animate: { opacity: o, zIndex: l } } : Ki, [o, l]), k = M((C) => {
@@ -5884,8 +5880,8 @@ const A2 = ["medium", "small", "large"], Ki = {
5884
5880
  /* @__PURE__ */ a.jsx(
5885
5881
  "div",
5886
5882
  {
5887
- ...g,
5888
- className: y,
5883
+ ...m,
5884
+ className: g,
5889
5885
  style: w,
5890
5886
  ...h,
5891
5887
  tabIndex: p,
@@ -5897,10 +5893,10 @@ const A2 = ["medium", "small", "large"], Ki = {
5897
5893
  ] }) }),
5898
5894
  f
5899
5895
  ) : null;
5900
- }, ra = I(oa);
5896
+ }, ra = O(oa);
5901
5897
  ra.displayName = "KBackdrop";
5902
5898
  oa.displayName = "KBackdrop";
5903
- const aa = W((t, e) => {
5899
+ const aa = U((t, e) => {
5904
5900
  const { className: n, style: s, size: i = "medium", color: r = "currentColor", ...o } = t, l = j(() => {
5905
5901
  const u = ["k-spinner"];
5906
5902
  return n && u.push(n), typeof i == "string" && u.push(`k-spinner--${i}`), u.join(" ");
@@ -5935,7 +5931,7 @@ const aa = W((t, e) => {
5935
5931
  ) })
5936
5932
  }
5937
5933
  );
5938
- }), g2 = I(aa);
5934
+ }), g2 = O(aa);
5939
5935
  aa.displayName = "KSpinner";
5940
5936
  g2.displayName = "KSpinner";
5941
5937
  const P = "currentColor", y2 = {
@@ -6999,7 +6995,7 @@ const P = "currentColor", y2 = {
6999
6995
  }, x2 = (t, e) => {
7000
6996
  const n = y2[t](e);
7001
6997
  return n || null;
7002
- }, la = W((t, e) => {
6998
+ }, la = U((t, e) => {
7003
6999
  const {
7004
7000
  id: n,
7005
7001
  className: s,
@@ -7010,7 +7006,7 @@ const P = "currentColor", y2 = {
7010
7006
  color: c,
7011
7007
  disabled: u,
7012
7008
  ...d
7013
- } = t, h = q(null), f = `k-icon-${Yt()}`, p = j(() => l ? 0 : void 0, [l]);
7009
+ } = t, h = J(null), f = `k-icon-${Yt()}`, p = j(() => l ? 0 : void 0, [l]);
7014
7010
  if (!r)
7015
7011
  throw Error("Error: icon is required and must be provided.");
7016
7012
  pt(e, () => ({
@@ -7018,10 +7014,10 @@ const P = "currentColor", y2 = {
7018
7014
  h.current?.click();
7019
7015
  }
7020
7016
  }));
7021
- const g = j(() => {
7017
+ const m = j(() => {
7022
7018
  const x = [];
7023
7019
  return s && x.push(s), typeof o == "string" && x.push(`k-icon--${o}`), l && x.push("k-icon--clickable"), u && x.push(`k-icon--${u}`), x.join(" ");
7024
- }, [s, u, o, r, l]), y = j(() => {
7020
+ }, [s, u, o, r, l]), g = j(() => {
7025
7021
  const x = { ...i };
7026
7022
  return typeof o == "number" && (x.width = o, x.height = o, x.fontSize = o), x;
7027
7023
  }, [o]), w = j(() => {
@@ -7041,8 +7037,8 @@ const P = "currentColor", y2 = {
7041
7037
  {
7042
7038
  ref: h,
7043
7039
  id: n || f,
7044
- className: `k-icon ${g}`,
7045
- style: y,
7040
+ className: `k-icon ${m}`,
7041
+ style: g,
7046
7042
  role: l ? "button" : "img",
7047
7043
  tabIndex: p,
7048
7044
  "aria-label": `${r} icon`,
@@ -7053,10 +7049,10 @@ const P = "currentColor", y2 = {
7053
7049
  }
7054
7050
  )
7055
7051
  );
7056
- }), te = I(la);
7052
+ }), te = O(la);
7057
7053
  te.displayName = "KIcon";
7058
7054
  la.displayName = "KIcon";
7059
- const v2 = ["xsmall", "small", "medium", "large", "xlarge"], V2 = Object.values(v2), ca = W((t, e) => {
7055
+ const v2 = ["xsmall", "small", "medium", "large", "xlarge"], V2 = Object.values(v2), ca = U((t, e) => {
7060
7056
  const {
7061
7057
  className: n,
7062
7058
  rules: s,
@@ -7070,45 +7066,47 @@ const v2 = ["xsmall", "small", "medium", "large", "xlarge"], V2 = Object.values(
7070
7066
  width: h,
7071
7067
  size: f = "medium",
7072
7068
  disabled: p,
7073
- onChange: g,
7074
- ...y
7075
- } = t, w = j(() => o.find((it) => it.value === r)?.label || null, [r, o]), [v, k] = at(!1), x = q(null), T = q(null), [C, L] = at("auto"), [S, b] = at(null), _ = j(() => S ? -16 : 4, [S]), N = Ln(x), B = j(() => {
7069
+ onChange: m,
7070
+ ...g
7071
+ } = t, w = j(() => o.find((it) => it.value === r)?.label || null, [r, o]), [v, k] = at(!1), x = J(null), T = J(null), [C, L] = at("auto"), [S, b] = at(null), E = j(() => S ? -16 : 4, [S]), N = Ln(x), I = j(() => {
7076
7072
  const V = ["k-select"];
7077
7073
  return n && V.push(n), f && V.push(`k-select--${f}`), p && V.push("k-select--disabled"), S && V.push("k-select--error"), V.join(" ");
7078
- }, [n, f, S, p]), z = j(() => {
7074
+ }, [n, f, S, p]), K = j(() => {
7079
7075
  const V = ["k-select__fieldset__container__icon"];
7080
7076
  return v && V.push("k-select__fieldset__container__icon--open"), V.join(" ");
7081
- }, [v]), R = j(() => !f || f === "medium" ? "medium" : "small", [f]), E = M(() => {
7077
+ }, [v]), R = j(() => !f || f === "medium" ? "medium" : "small", [f]), _ = M(() => {
7082
7078
  const V = x.current?.getBoundingClientRect().width;
7083
7079
  L(V ? V + 2 : "auto");
7084
- }, []), G = M(() => {
7080
+ }, []), Y = M(() => {
7085
7081
  k(!0);
7086
7082
  }, []), lt = M(() => {
7087
7083
  k(!1);
7088
- }, []), O = M(async (V) => {
7084
+ }, []), F = M(async (V) => {
7089
7085
  if (!s)
7090
7086
  return console.warn("not found rules."), !0;
7091
7087
  const it = V ?? r;
7092
- for (let et = 0; et < s.length; et++) {
7093
- const jt = await (await s[et])(it?.toString()), Y = typeof jt == "string" ? jt : null;
7094
- if (Y)
7095
- return b(Y), !1;
7088
+ for (let nt = 0; nt < s.length; nt++) {
7089
+ const jt = await (await s[nt])(it?.toString()), X = typeof jt == "string" ? jt : null;
7090
+ if (X)
7091
+ return b(X), !1;
7096
7092
  }
7097
7093
  return b(null), !0;
7098
- }, [s, r]), U = M((V) => {
7099
- g(V), i && O(V);
7100
- }, [g, i, O]), st = M((V) => {
7094
+ }, [s, r]), $ = M((V) => {
7095
+ m(V), i && F(V);
7096
+ }, [m, i, F]), B = M((V) => {
7101
7097
  p || N?.register(V);
7102
- }, [p]), m = M(() => {
7098
+ }, [p]), y = M(() => {
7103
7099
  p || N.remove();
7104
7100
  }, [p]), D = M(() => {
7105
7101
  p || N.remove();
7106
- }, [p]), F = j(() => {
7102
+ }, [p]), z = j(() => {
7107
7103
  const V = ["k-select__fieldset__legend"];
7108
7104
  return l && V.push("k-select__fieldset__legend--show"), V.join(" ");
7109
7105
  }, [l]);
7110
7106
  return Lt(() => {
7111
- E();
7107
+ T.current?.onClose();
7108
+ }, [r]), Lt(() => {
7109
+ _();
7112
7110
  }, [f]), pt(e, () => ({
7113
7111
  onOpen: () => {
7114
7112
  T.current?.onOpen();
@@ -7116,23 +7114,23 @@ const v2 = ["xsmall", "small", "medium", "large", "xlarge"], V2 = Object.values(
7116
7114
  onClose: () => {
7117
7115
  T.current?.onClose();
7118
7116
  },
7119
- onValidate: () => O()
7117
+ onValidate: () => F()
7120
7118
  })), /* @__PURE__ */ a.jsxs(
7121
7119
  Ht,
7122
7120
  {
7123
7121
  ref: T,
7124
- className: B,
7122
+ className: I,
7125
7123
  trigger: "click",
7126
7124
  position: "bottom-start",
7127
- ...y,
7125
+ ...g,
7128
7126
  style: { width: h },
7129
- onDropdownOpen: G,
7127
+ onDropdownOpen: Y,
7130
7128
  onDropdownClose: lt,
7131
7129
  "aria-disabled": p,
7132
7130
  children: [
7133
7131
  /* @__PURE__ */ a.jsxs(Ht.Trigger, { className: "k-select__trigger", disabled: p, children: [
7134
7132
  /* @__PURE__ */ a.jsxs("fieldset", { className: "k-select__fieldset", children: [
7135
- /* @__PURE__ */ a.jsxs("legend", { className: F, children: [
7133
+ /* @__PURE__ */ a.jsxs("legend", { className: z, children: [
7136
7134
  l,
7137
7135
  l && c && /* @__PURE__ */ a.jsx("span", { className: "k-select__fieldset__legend__required", children: "*" })
7138
7136
  ] }),
@@ -7141,27 +7139,27 @@ const v2 = ["xsmall", "small", "medium", "large", "xlarge"], V2 = Object.values(
7141
7139
  {
7142
7140
  ref: x,
7143
7141
  className: "k-select__fieldset__container",
7144
- onMouseDown: st,
7145
- onMouseUp: m,
7142
+ onMouseDown: B,
7143
+ onMouseUp: y,
7146
7144
  onMouseLeave: D,
7147
7145
  children: [
7148
7146
  w && /* @__PURE__ */ a.jsx("span", { className: "k-select__fieldset__container__value", children: w }),
7149
7147
  r === void 0 && d && /* @__PURE__ */ a.jsx("span", { className: "k-select__fieldset__container__placeholder", children: d }),
7150
- /* @__PURE__ */ a.jsx(te, { className: z, icon: "keyboard_arrow_down", size: R })
7148
+ /* @__PURE__ */ a.jsx(te, { className: K, icon: "keyboard_arrow_down", size: R })
7151
7149
  ]
7152
7150
  }
7153
7151
  )
7154
7152
  ] }),
7155
7153
  S && /* @__PURE__ */ a.jsx("div", { className: "k-select__fieldset__message", children: S })
7156
7154
  ] }),
7157
- /* @__PURE__ */ a.jsx(Ht.Content, { className: "k-select__content", gap: _, children: /* @__PURE__ */ a.jsxs($t, { width: C, size: f, className: `k-select__content__menu k-select__content__menu--${f}`, children: [
7155
+ /* @__PURE__ */ a.jsx(Ht.Content, { className: "k-select__content", gap: E, children: /* @__PURE__ */ a.jsxs($t, { width: C, size: f, className: `k-select__content__menu k-select__content__menu--${f}`, children: [
7158
7156
  o.map((V) => /* @__PURE__ */ a.jsx(
7159
7157
  $t.ItemSelectable,
7160
7158
  {
7161
7159
  label: V.label,
7162
7160
  selected: r === V.value,
7163
- onPointerDown: () => {
7164
- U(V.value), T.current?.onClose();
7161
+ onClick: () => {
7162
+ $(V.value);
7165
7163
  }
7166
7164
  },
7167
7165
  V.value
@@ -7171,10 +7169,10 @@ const v2 = ["xsmall", "small", "medium", "large", "xlarge"], V2 = Object.values(
7171
7169
  ]
7172
7170
  }
7173
7171
  );
7174
- }), C2 = I(ca);
7172
+ }), C2 = O(ca);
7175
7173
  ca.displayName = "KSelect";
7176
7174
  C2.displayName = "KSelect";
7177
- const ua = W((t, e) => {
7175
+ const ua = U((t, e) => {
7178
7176
  const n = `k-text-field-${Yt()}`, {
7179
7177
  id: s = n,
7180
7178
  value: i,
@@ -7187,8 +7185,8 @@ const ua = W((t, e) => {
7187
7185
  align: h = "left",
7188
7186
  onChange: f,
7189
7187
  onFocus: p,
7190
- onBlur: g,
7191
- onKeyDown: y,
7188
+ onBlur: m,
7189
+ onKeyDown: g,
7192
7190
  autoCapitalize: w,
7193
7191
  autoCorrect: v,
7194
7192
  autoComplete: k,
@@ -7198,43 +7196,43 @@ const ua = W((t, e) => {
7198
7196
  width: L,
7199
7197
  style: S,
7200
7198
  size: b = "medium",
7201
- className: _,
7199
+ className: E,
7202
7200
  rules: N,
7203
- validateOnChange: B,
7204
- ...z
7205
- } = t, R = q(null), [E, G] = at(!1), [lt, O] = at(!1), [U, st] = at(null), m = j(() => r === "password", [r]), D = j(() => r === "password" && lt ? "text" : r, [r, lt]), F = j(() => {
7206
- const $ = ["k-text-field", `k-text-field--${b}`];
7207
- return _ && $.push(_), c && $.push("k-text-field--disabled"), E && $.push("k-text-field--focus"), u && $.push("k-text-field--readOnly"), r === "password" && $.push("k-text-field--password"), typeof U == "string" && $.push("k-text-field--error"), $.join(" ");
7208
- }, [_, c, u, r, U, b, E]), V = j(() => {
7209
- const $ = ["k-text-field__fieldset__legend__label"];
7210
- return C && $.push("k-text-field__fieldset__legend__label--show"), $.join(" ");
7211
- }, [C]), it = j(() => ({ ...S, width: L }), [S, L]), et = j(() => ({ textAlign: h }), [h]), kt = M(async ($) => {
7201
+ validateOnChange: I,
7202
+ ...K
7203
+ } = t, R = J(null), [_, Y] = at(!1), [lt, F] = at(!1), [$, B] = at(null), y = j(() => r === "password", [r]), D = j(() => r === "password" && lt ? "text" : r, [r, lt]), z = j(() => {
7204
+ const H = ["k-text-field", `k-text-field--${b}`];
7205
+ return E && H.push(E), c && H.push("k-text-field--disabled"), _ && H.push("k-text-field--focus"), u && H.push("k-text-field--readOnly"), r === "password" && H.push("k-text-field--password"), typeof $ == "string" && H.push("k-text-field--error"), H.join(" ");
7206
+ }, [E, c, u, r, $, b, _]), V = j(() => {
7207
+ const H = ["k-text-field__fieldset__legend__label"];
7208
+ return C && H.push("k-text-field__fieldset__legend__label--show"), H.join(" ");
7209
+ }, [C]), it = j(() => ({ ...S, width: L }), [S, L]), nt = j(() => ({ textAlign: h }), [h]), kt = M(async (H) => {
7212
7210
  if (!N)
7213
7211
  return console.warn("not found rules."), !0;
7214
- const da = $ ?? i;
7212
+ const da = H ?? i;
7215
7213
  for (let Ue = 0; Ue < N.length; Ue++) {
7216
7214
  const ws = await (await N[Ue])(da), ks = typeof ws == "string" ? ws : null;
7217
7215
  if (ks)
7218
- return st(ks), !1;
7219
- }
7220
- return st(null), !0;
7221
- }, [N, i]), jt = M(($) => {
7222
- f?.($.target.value), B && kt($.target.value);
7223
- }, [f, kt, B]), Y = M(($) => {
7224
- G(!0), p?.($);
7225
- }, [p]), bt = M(($) => {
7226
- G(!1), g?.($);
7227
- }, [g]), ee = M(($) => {
7228
- y?.($);
7229
- }, [y]), We = M(() => {
7230
- O(($) => !$);
7216
+ return B(ks), !1;
7217
+ }
7218
+ return B(null), !0;
7219
+ }, [N, i]), jt = M((H) => {
7220
+ f?.(H.target.value), I && kt(H.target.value);
7221
+ }, [f, kt, I]), X = M((H) => {
7222
+ Y(!0), p?.(H);
7223
+ }, [p]), bt = M((H) => {
7224
+ Y(!1), m?.(H);
7225
+ }, [m]), ee = M((H) => {
7226
+ g?.(H);
7227
+ }, [g]), We = M(() => {
7228
+ F((H) => !H);
7231
7229
  }, [r]);
7232
7230
  return pt(e, () => ({
7233
7231
  value: i,
7234
7232
  focus: () => R.current?.focus(),
7235
7233
  blur: () => R.current?.blur(),
7236
7234
  onValidate: () => kt()
7237
- })), /* @__PURE__ */ a.jsxs("div", { className: F, style: it, children: [
7235
+ })), /* @__PURE__ */ a.jsxs("div", { className: z, style: it, children: [
7238
7236
  /* @__PURE__ */ a.jsxs("fieldset", { className: "k-text-field__fieldset", children: [
7239
7237
  /* @__PURE__ */ a.jsx("legend", { className: "k-text-field__fieldset__legend", children: /* @__PURE__ */ a.jsxs("label", { htmlFor: s, className: V, children: [
7240
7238
  C,
@@ -7256,20 +7254,20 @@ const ua = W((t, e) => {
7256
7254
  placeholder: o,
7257
7255
  maxLength: l,
7258
7256
  onChange: jt,
7259
- onFocus: Y,
7257
+ onFocus: X,
7260
7258
  onBlur: bt,
7261
7259
  onKeyDown: ee,
7262
7260
  autoComplete: k,
7263
7261
  autoCorrect: v,
7264
7262
  autoCapitalize: w,
7265
- style: et,
7266
- ...z
7263
+ style: nt,
7264
+ ...K
7267
7265
  }
7268
7266
  ),
7269
- m && /* @__PURE__ */ a.jsx(
7267
+ y && /* @__PURE__ */ a.jsx(
7270
7268
  te,
7271
7269
  {
7272
- icon: m ? "visibility" : "visibility_off",
7270
+ icon: y ? "visibility" : "visibility_off",
7273
7271
  size: 18,
7274
7272
  onClick: We,
7275
7273
  disabled: c,
@@ -7279,9 +7277,9 @@ const ua = W((t, e) => {
7279
7277
  T && /* @__PURE__ */ a.jsx("div", { className: "k-text-field__fieldset__container__right", children: T })
7280
7278
  ] })
7281
7279
  ] }),
7282
- U && /* @__PURE__ */ a.jsx("div", { className: "k-text-field__fieldset__message", children: U })
7280
+ $ && /* @__PURE__ */ a.jsx("div", { className: "k-text-field__fieldset__message", children: $ })
7283
7281
  ] });
7284
- }), w2 = I(ua);
7282
+ }), w2 = O(ua);
7285
7283
  ua.displayName = "KTextField";
7286
7284
  w2.displayName = "KTextField";
7287
7285
  export {