tcce-design-system-test 0.3.29 → 0.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as Kn from "react";
2
- import w, { useDebugValue as si, createElement as qs, useRef as fe, useContext as ue, createContext as bt, useLayoutEffect as jc, useEffect as Ae, useId as qe, useInsertionEffect as Js, useMemo as _e, useCallback as je, Children as zc, isValidElement as _c, useState as Te, Fragment as Qs, forwardRef as He, Component as Hc } from "react";
2
+ import w, { useDebugValue as si, createElement as qs, useRef as fe, useContext as ue, createContext as bt, useLayoutEffect as jc, useEffect as Te, useId as qe, useInsertionEffect as Js, useMemo as _e, useCallback as je, Children as zc, isValidElement as _c, useState as ke, Fragment as Qs, forwardRef as He, Component as Hc } from "react";
3
3
  import { jsx as m, Fragment as oo, jsxs as D } from "react/jsx-runtime";
4
4
  import Uc, { createPortal as Wc } from "react-dom";
5
5
  import { useField as Kc } from "formik";
@@ -191,7 +191,7 @@ function lu(e) {
191
191
  return ru(Mn("", null, null, null, [""], e = nu(e), 0, [0], e));
192
192
  }
193
193
  function Mn(e, t, n, r, o, s, i, a, l) {
194
- for (var u = 0, d = 0, c = i, h = 0, f = 0, p = 0, v = 1, x = 1, g = 1, C = 0, b = "", P = o, k = s, T = r, E = b; x; )
194
+ for (var u = 0, d = 0, c = i, h = 0, f = 0, p = 0, y = 1, x = 1, g = 1, C = 0, b = "", P = o, k = s, T = r, E = b; x; )
195
195
  switch (p = C, C = Ne()) {
196
196
  // (
197
197
  case 40:
@@ -228,10 +228,10 @@ function Mn(e, t, n, r, o, s, i, a, l) {
228
228
  }
229
229
  break;
230
230
  // {
231
- case 123 * v:
231
+ case 123 * y:
232
232
  a[u++] = Fe(E) * g;
233
233
  // } ; \0
234
- case 125 * v:
234
+ case 125 * y:
235
235
  case 59:
236
236
  case 0:
237
237
  switch (C) {
@@ -264,19 +264,19 @@ function Mn(e, t, n, r, o, s, i, a, l) {
264
264
  Mn(E, T, T, T, [""], k, 0, a, k);
265
265
  }
266
266
  }
267
- u = d = f = 0, v = g = 1, b = E = "", c = i;
267
+ u = d = f = 0, y = g = 1, b = E = "", c = i;
268
268
  break;
269
269
  // :
270
270
  case 58:
271
271
  c = 1 + Fe(E), f = p;
272
272
  default:
273
- if (v < 1) {
273
+ if (y < 1) {
274
274
  if (C == 123)
275
- --v;
276
- else if (C == 125 && v++ == 0 && tu() == 125)
275
+ --y;
276
+ else if (C == 125 && y++ == 0 && tu() == 125)
277
277
  continue;
278
278
  }
279
- switch (E += so(C), C * v) {
279
+ switch (E += so(C), C * y) {
280
280
  // &
281
281
  case 38:
282
282
  g = d > 0 ? 1 : (E += "\f", -1);
@@ -291,14 +291,14 @@ function Mn(e, t, n, r, o, s, i, a, l) {
291
291
  break;
292
292
  // -
293
293
  case 45:
294
- p === 45 && Fe(E) == 2 && (v = 0);
294
+ p === 45 && Fe(E) == 2 && (y = 0);
295
295
  }
296
296
  }
297
297
  return s;
298
298
  }
299
299
  function li(e, t, n, r, o, s, i, a, l, u, d, c) {
300
- for (var h = o - 1, f = o === 0 ? s : [""], p = oa(f), v = 0, x = 0, g = 0; v < r; ++v)
301
- for (var C = 0, b = It(e, h + 1, h = na(x = i[v])), P = e; C < p; ++C)
300
+ for (var h = o - 1, f = o === 0 ? s : [""], p = oa(f), y = 0, x = 0, g = 0; y < r; ++y)
301
+ for (var C = 0, b = It(e, h + 1, h = na(x = i[y])), P = e; C < p; ++C)
302
302
  (P = ra(x > 0 ? f[C] + " " + b : O(b, /&\f/g, f[C]))) && (l[g++] = P);
303
303
  return Xn(e, t, n, o === 0 ? Yn : a, l, u, d, c);
304
304
  }
@@ -881,10 +881,10 @@ var ga = function(e) {
881
881
  if (h === void 0) return "continue";
882
882
  var f = s.names.get(h), p = i.getGroup(c);
883
883
  if (f === void 0 || !f.size || p.length === 0) return "continue";
884
- var v = "".concat(vt, ".g").concat(c, '[id="').concat(h, '"]'), x = "";
884
+ var y = "".concat(vt, ".g").concat(c, '[id="').concat(h, '"]'), x = "";
885
885
  f !== void 0 && f.forEach(function(g) {
886
886
  g.length > 0 && (x += "".concat(g, ","));
887
- }), l += "".concat(p).concat(v, '{content:"').concat(x, '"}').concat(ao);
887
+ }), l += "".concat(p).concat(y, '{content:"').concat(x, '"}').concat(ao);
888
888
  }, d = 0; d < a; d++) u(d);
889
889
  return l;
890
890
  })(o);
@@ -936,8 +936,8 @@ function Ku(e) {
936
936
  d.push(function(h) {
937
937
  h.type === Yn && h.value.includes("&") && (h.props[0] = h.props[0].replace(Uu, n).replace(r, u));
938
938
  }), i.prefix && d.push(fu), d.push(uu);
939
- var c = function(h, f, p, v) {
940
- f === void 0 && (f = ""), p === void 0 && (p = ""), v === void 0 && (v = "&"), t = v, n = f, r = new RegExp("\\".concat(n, "\\b"), "g");
939
+ var c = function(h, f, p, y) {
940
+ f === void 0 && (f = ""), p === void 0 && (p = ""), y === void 0 && (y = "&"), t = y, n = f, r = new RegExp("\\".concat(n, "\\b"), "g");
941
941
  var x = h.replace(Wu, ""), g = lu(p || f ? "".concat(p, " ").concat(f, " { ").concat(x, " }") : x);
942
942
  i.namespace && (g = va(g, i.namespace));
943
943
  var C = [];
@@ -1054,13 +1054,13 @@ function Ju(e, t, n) {
1054
1054
  return cr(P) ? "styled.".concat(P) : "Styled(".concat(da(P), ")");
1055
1055
  })(e) : d, h = t.displayName && t.componentId ? "".concat(di(t.displayName), "-").concat(t.componentId) : t.componentId || u, f = r && o.attrs ? o.attrs.concat(a).filter(Boolean) : a, p = t.shouldForwardProp;
1056
1056
  if (r && o.shouldForwardProp) {
1057
- var v = o.shouldForwardProp;
1057
+ var y = o.shouldForwardProp;
1058
1058
  if (t.shouldForwardProp) {
1059
1059
  var x = t.shouldForwardProp;
1060
1060
  p = function(P, k) {
1061
- return v(P, k) && x(P, k);
1061
+ return y(P, k) && x(P, k);
1062
1062
  };
1063
- } else p = v;
1063
+ } else p = y;
1064
1064
  }
1065
1065
  var g = new qu(n, h, r ? o.componentStyle : void 0);
1066
1066
  function C(P, k) {
@@ -1122,7 +1122,7 @@ function Ci(e, t) {
1122
1122
  var Ti = function(e) {
1123
1123
  return Object.assign(e, { isCss: !0 });
1124
1124
  };
1125
- function y(e) {
1125
+ function v(e) {
1126
1126
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1127
1127
  if (Bt(e) || Ot(e)) return Ti(pt(Ci(Jn, Rt([e], t, !0))));
1128
1128
  var r = e;
@@ -1132,7 +1132,7 @@ function Rr(e, t, n) {
1132
1132
  if (n === void 0 && (n = Nt), !t) throw _t(1, t);
1133
1133
  var r = function(o) {
1134
1134
  for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
1135
- return e(t, n, y.apply(void 0, Rt([o], s, !1)));
1135
+ return e(t, n, v.apply(void 0, Rt([o], s, !1)));
1136
1136
  };
1137
1137
  return r.attrs = function(o) {
1138
1138
  return Rr(e, t, xe(xe({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
@@ -1154,49 +1154,49 @@ process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && type
1154
1154
 
1155
1155
  See https://s-c.sh/2BAXzed for more info.`), window[Cn] += 1);
1156
1156
  const Ta = {
1157
- 80: y`
1157
+ 80: v`
1158
1158
  font-family: 'Dax', serif;
1159
1159
  font-size: 5em;
1160
1160
  font-style: normal;
1161
1161
  font-weight: 700;
1162
1162
  line-height: 163.184%;
1163
1163
  `,
1164
- 60: y`
1164
+ 60: v`
1165
1165
  font-family: 'Dax', serif;
1166
1166
  font-size: 3.75em;
1167
1167
  font-style: normal;
1168
1168
  font-weight: 700;
1169
1169
  line-height: 161.76%;
1170
1170
  `,
1171
- 40: y`
1171
+ 40: v`
1172
1172
  font-family: 'Dax', serif;
1173
1173
  font-size: 2.5em;
1174
1174
  font-style: normal;
1175
1175
  font-weight: 700;
1176
1176
  line-height: 161.76%;
1177
1177
  `,
1178
- 30: y`
1178
+ 30: v`
1179
1179
  font-family: 'Dax', serif;
1180
1180
  font-size: 1.875em;
1181
1181
  font-style: normal;
1182
1182
  font-weight: 700;
1183
1183
  line-height: 161.76%;
1184
1184
  `,
1185
- 24: y`
1185
+ 24: v`
1186
1186
  font-family: 'Dax', serif;
1187
1187
  font-size: 1.5em;
1188
1188
  font-style: normal;
1189
1189
  font-weight: 700;
1190
1190
  line-height: 163.184%;
1191
1191
  `,
1192
- 20: y`
1192
+ 20: v`
1193
1193
  font-family: 'Dax', serif;
1194
1194
  font-size: 1.25em;
1195
1195
  font-style: normal;
1196
1196
  font-weight: 700;
1197
1197
  line-height: 161.76%;
1198
1198
  `,
1199
- 16: y`
1199
+ 16: v`
1200
1200
  font-family: 'Dax', serif;
1201
1201
  font-size: 1em;
1202
1202
  font-style: normal;
@@ -1204,49 +1204,49 @@ const Ta = {
1204
1204
  line-height: 161.76%;
1205
1205
  `
1206
1206
  }, Qu = {
1207
- 80: y`
1207
+ 80: v`
1208
1208
  font-family: 'Dax', serif;
1209
1209
  font-size: 5em;
1210
1210
  font-style: normal;
1211
1211
  font-weight: 400;
1212
1212
  line-height: 163.184%;
1213
1213
  `,
1214
- 60: y`
1214
+ 60: v`
1215
1215
  font-family: 'Dax', serif;
1216
1216
  font-size: 3.75em;
1217
1217
  font-style: normal;
1218
1218
  font-weight: 400;
1219
1219
  line-height: 161.76%;
1220
1220
  `,
1221
- 40: y`
1221
+ 40: v`
1222
1222
  font-family: 'Dax', serif;
1223
1223
  font-size: 2.5em;
1224
1224
  font-style: normal;
1225
1225
  font-weight: 400;
1226
1226
  line-height: 161.76%;
1227
1227
  `,
1228
- 30: y`
1228
+ 30: v`
1229
1229
  font-family: 'Dax', serif;
1230
1230
  font-size: 1.875em;
1231
1231
  font-style: normal;
1232
1232
  font-weight: 400;
1233
1233
  line-height: 161.76%;
1234
1234
  `,
1235
- 24: y`
1235
+ 24: v`
1236
1236
  font-family: 'Dax', serif;
1237
1237
  font-size: 1.5em;
1238
1238
  font-style: normal;
1239
1239
  font-weight: 400;
1240
1240
  line-height: 163.184%;
1241
1241
  `,
1242
- 20: y`
1242
+ 20: v`
1243
1243
  font-family: 'Dax', serif;
1244
1244
  font-size: 1.25em;
1245
1245
  font-style: normal;
1246
1246
  font-weight: 400;
1247
1247
  line-height: 161.76%;
1248
1248
  `,
1249
- 16: y`
1249
+ 16: v`
1250
1250
  font-family: 'Dax', serif;
1251
1251
  font-size: 1em;
1252
1252
  font-style: normal;
@@ -1254,70 +1254,70 @@ const Ta = {
1254
1254
  line-height: 161.76%;
1255
1255
  `
1256
1256
  }, L = {
1257
- 80: y`
1257
+ 80: v`
1258
1258
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1259
1259
  font-size: 5em;
1260
1260
  font-style: normal;
1261
1261
  font-weight: 400;
1262
1262
  line-height: 155.962%;
1263
1263
  `,
1264
- 60: y`
1264
+ 60: v`
1265
1265
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1266
1266
  font-size: 3.75em;
1267
1267
  font-style: normal;
1268
1268
  font-weight: 400;
1269
1269
  line-height: 176.782%;
1270
1270
  `,
1271
- 40: y`
1271
+ 40: v`
1272
1272
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1273
1273
  font-size: 2.5em;
1274
1274
  font-style: normal;
1275
1275
  font-weight: 400;
1276
1276
  line-height: 176.782%;
1277
1277
  `,
1278
- 30: y`
1278
+ 30: v`
1279
1279
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1280
1280
  font-size: 1.875em;
1281
1281
  font-style: normal;
1282
1282
  font-weight: 400;
1283
1283
  line-height: 176.782%;
1284
1284
  `,
1285
- 24: y`
1285
+ 24: v`
1286
1286
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1287
1287
  font-size: 1.5em;
1288
1288
  font-style: normal;
1289
1289
  font-weight: 400;
1290
1290
  line-height: 176.782%;
1291
1291
  `,
1292
- 20: y`
1292
+ 20: v`
1293
1293
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1294
1294
  font-size: 1.25em;
1295
1295
  font-style: normal;
1296
1296
  font-weight: 400;
1297
1297
  line-height: 155.962%;
1298
1298
  `,
1299
- 18: y`
1299
+ 18: v`
1300
1300
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1301
1301
  font-size: 1.125em;
1302
1302
  font-style: normal;
1303
1303
  font-weight: 400;
1304
1304
  line-height: 150.782%;
1305
1305
  `,
1306
- 16: y`
1306
+ 16: v`
1307
1307
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1308
1308
  font-size: 1em;
1309
1309
  font-style: normal;
1310
1310
  font-weight: 400;
1311
1311
  line-height: 140%;
1312
1312
  `,
1313
- 14: y`
1313
+ 14: v`
1314
1314
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1315
1315
  font-size: 0.875em;
1316
1316
  font-style: normal;
1317
1317
  font-weight: 400;
1318
1318
  line-height: 140%;
1319
1319
  `,
1320
- 12: y`
1320
+ 12: v`
1321
1321
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1322
1322
  font-size: 0.75em;
1323
1323
  font-style: normal;
@@ -1365,7 +1365,7 @@ function fo(e) {
1365
1365
  const t = fe(null);
1366
1366
  return t.current === null && (t.current = e()), t.current;
1367
1367
  }
1368
- const mo = typeof window < "u", ka = mo ? jc : Ae, Qn = /* @__PURE__ */ bt(null);
1368
+ const mo = typeof window < "u", ka = mo ? jc : Te, Qn = /* @__PURE__ */ bt(null);
1369
1369
  function po(e, t) {
1370
1370
  e.indexOf(t) === -1 && e.push(t);
1371
1371
  }
@@ -1530,11 +1530,11 @@ function ja(e, t) {
1530
1530
  delta: 0,
1531
1531
  timestamp: 0,
1532
1532
  isProcessing: !1
1533
- }, s = () => n = !0, i = Tn.reduce((b, P) => (b[P] = cd(s), b), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: d, update: c, preRender: h, render: f, postRender: p } = i, v = () => {
1533
+ }, s = () => n = !0, i = Tn.reduce((b, P) => (b[P] = cd(s), b), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: d, update: c, preRender: h, render: f, postRender: p } = i, y = () => {
1534
1534
  const b = Ze.useManualTiming ? o.timestamp : performance.now();
1535
- n = !1, Ze.useManualTiming || (o.delta = r ? 1e3 / 60 : Math.max(Math.min(b - o.timestamp, ud), 1)), o.timestamp = b, o.isProcessing = !0, a.process(o), l.process(o), u.process(o), d.process(o), c.process(o), h.process(o), f.process(o), p.process(o), o.isProcessing = !1, n && t && (r = !1, e(v));
1535
+ n = !1, Ze.useManualTiming || (o.delta = r ? 1e3 / 60 : Math.max(Math.min(b - o.timestamp, ud), 1)), o.timestamp = b, o.isProcessing = !0, a.process(o), l.process(o), u.process(o), d.process(o), c.process(o), h.process(o), f.process(o), p.process(o), o.isProcessing = !1, n && t && (r = !1, e(y));
1536
1536
  }, x = () => {
1537
- n = !0, r = !0, o.isProcessing || e(v);
1537
+ n = !0, r = !0, o.isProcessing || e(y);
1538
1538
  };
1539
1539
  return { schedule: Tn.reduce((b, P) => {
1540
1540
  const k = i[P];
@@ -1818,8 +1818,8 @@ function Od({ duration: e = ee.duration, bounce: t = ee.bounce, velocity: n = ee
1818
1818
  const d = u * i, c = d * e, h = d - n, f = Br(u, i), p = Math.exp(-c);
1819
1819
  return pr - h / f * p;
1820
1820
  }, s = (u) => {
1821
- const c = u * i * e, h = c * n + n, f = Math.pow(i, 2) * Math.pow(u, 2) * e, p = Math.exp(-c), v = Br(Math.pow(u, 2), i);
1822
- return (-o(u) + pr > 0 ? -1 : 1) * ((h - f) * p) / v;
1821
+ const c = u * i * e, h = c * n + n, f = Math.pow(i, 2) * Math.pow(u, 2) * e, p = Math.exp(-c), y = Br(Math.pow(u, 2), i);
1822
+ return (-o(u) + pr > 0 ? -1 : 1) * ((h - f) * p) / y;
1823
1823
  }) : (o = (u) => {
1824
1824
  const d = Math.exp(-u * e), c = (u - n) * e + 1;
1825
1825
  return -pr + d * c;
@@ -1895,22 +1895,22 @@ function Hn(e = ee.visualDuration, t = ee.bounce) {
1895
1895
  const s = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: s }, { stiffness: l, damping: u, mass: d, duration: c, velocity: h, isResolvedFromDuration: f } = Hd({
1896
1896
  ...n,
1897
1897
  velocity: -/* @__PURE__ */ $e(n.velocity || 0)
1898
- }), p = h || 0, v = u / (2 * Math.sqrt(l * d)), x = i - s, g = /* @__PURE__ */ $e(Math.sqrt(l / d)), C = Math.abs(x) < 5;
1898
+ }), p = h || 0, y = u / (2 * Math.sqrt(l * d)), x = i - s, g = /* @__PURE__ */ $e(Math.sqrt(l / d)), C = Math.abs(x) < 5;
1899
1899
  r || (r = C ? ee.restSpeed.granular : ee.restSpeed.default), o || (o = C ? ee.restDelta.granular : ee.restDelta.default);
1900
1900
  let b;
1901
- if (v < 1) {
1902
- const k = Br(g, v);
1901
+ if (y < 1) {
1902
+ const k = Br(g, y);
1903
1903
  b = (T) => {
1904
- const E = Math.exp(-v * g * T);
1905
- return i - E * ((p + v * g * x) / k * Math.sin(k * T) + x * Math.cos(k * T));
1904
+ const E = Math.exp(-y * g * T);
1905
+ return i - E * ((p + y * g * x) / k * Math.sin(k * T) + x * Math.cos(k * T));
1906
1906
  };
1907
- } else if (v === 1)
1907
+ } else if (y === 1)
1908
1908
  b = (k) => i - Math.exp(-g * k) * (x + (p + g * x) * k);
1909
1909
  else {
1910
- const k = g * Math.sqrt(v * v - 1);
1910
+ const k = g * Math.sqrt(y * y - 1);
1911
1911
  b = (T) => {
1912
- const E = Math.exp(-v * g * T), A = Math.min(k * T, 300);
1913
- return i - E * ((p + v * g * x) * Math.sinh(A) + k * x * Math.cosh(A)) / k;
1912
+ const E = Math.exp(-y * g * T), A = Math.min(k * T, 300);
1913
+ return i - E * ((p + y * g * x) * Math.sinh(A) + k * x * Math.cosh(A)) / k;
1914
1914
  };
1915
1915
  }
1916
1916
  const P = {
@@ -1921,7 +1921,7 @@ function Hn(e = ee.visualDuration, t = ee.bounce) {
1921
1921
  a.done = k >= c;
1922
1922
  else {
1923
1923
  let E = k === 0 ? p : 0;
1924
- v < 1 && (E = k === 0 ? /* @__PURE__ */ Be(p) : Za(b, k, T));
1924
+ y < 1 && (E = k === 0 ? /* @__PURE__ */ Be(p) : Za(b, k, T));
1925
1925
  const A = Math.abs(E) <= r, I = Math.abs(i - T) <= o;
1926
1926
  a.done = A && I;
1927
1927
  }
@@ -1945,10 +1945,10 @@ function Or({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
1945
1945
  done: !1,
1946
1946
  value: c
1947
1947
  }, f = (A) => a !== void 0 && A < a || l !== void 0 && A > l, p = (A) => a === void 0 ? l : l === void 0 || Math.abs(a - A) < Math.abs(l - A) ? a : l;
1948
- let v = n * t;
1949
- const x = c + v, g = i === void 0 ? x : i(x);
1950
- g !== x && (v = g - c);
1951
- const C = (A) => -v * Math.exp(-A / r), b = (A) => g + C(A), P = (A) => {
1948
+ let y = n * t;
1949
+ const x = c + y, g = i === void 0 ? x : i(x);
1950
+ g !== x && (y = g - c);
1951
+ const C = (A) => -y * Math.exp(-A / r), b = (A) => g + C(A), P = (A) => {
1952
1952
  const I = C(A), _ = b(A);
1953
1953
  h.done = Math.abs(I) <= u, h.value = h.done ? g : _;
1954
1954
  };
@@ -2109,7 +2109,7 @@ class Do extends $o {
2109
2109
  const { generator: r, totalDuration: o, mixKeyframes: s, mirroredGenerator: i, resolvedDuration: a, calculatedDuration: l } = this;
2110
2110
  if (this.startTime === null)
2111
2111
  return r.next(0);
2112
- const { delay: u = 0, keyframes: d, repeat: c, repeatType: h, repeatDelay: f, type: p, onUpdate: v, finalKeyframe: x } = this.options;
2112
+ const { delay: u = 0, keyframes: d, repeat: c, repeatType: h, repeatDelay: f, type: p, onUpdate: y, finalKeyframe: x } = this.options;
2113
2113
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - o / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
2114
2114
  const g = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), C = this.playbackSpeed >= 0 ? g < 0 : g > o;
2115
2115
  this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = o);
@@ -2124,7 +2124,7 @@ class Do extends $o {
2124
2124
  let { done: T } = k;
2125
2125
  !C && l !== null && (T = this.playbackSpeed >= 0 ? this.currentTime >= o : this.currentTime <= 0);
2126
2126
  const E = this.holdTime === null && (this.state === "finished" || this.state === "running" && T);
2127
- return E && p !== Or && (k.value = Ao(d, this.options, x, this.speed)), v && v(k.value), E && this.finish(), k;
2127
+ return E && p !== Or && (k.value = Ao(d, this.options, x, this.speed)), y && y(k.value), E && this.finish(), k;
2128
2128
  }
2129
2129
  /**
2130
2130
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -2604,7 +2604,7 @@ class kh extends $o {
2604
2604
  element: d,
2605
2605
  ...c
2606
2606
  }, f = d?.KeyframeResolver || Mo;
2607
- this.keyframeResolver = new f(a, (p, v, x) => this.onKeyframesResolved(p, v, h, !x), l, u, d), this.keyframeResolver?.scheduleResolve();
2607
+ this.keyframeResolver = new f(a, (p, y, x) => this.onKeyframesResolved(p, y, h, !x), l, u, d), this.keyframeResolver?.scheduleResolve();
2608
2608
  }
2609
2609
  onKeyframesResolved(t, n, r, o) {
2610
2610
  this.keyframeResolver = void 0;
@@ -3267,10 +3267,10 @@ function ef({ children: e, isPresent: t, anchorX: n, root: r }) {
3267
3267
  return;
3268
3268
  const p = n === "left" ? `left: ${h}` : `right: ${f}`;
3269
3269
  s.current.dataset.motionPopId = o;
3270
- const v = document.createElement("style");
3271
- a && (v.nonce = a);
3270
+ const y = document.createElement("style");
3271
+ a && (y.nonce = a);
3272
3272
  const x = r ?? document.head;
3273
- return x.appendChild(v), v.sheet && v.sheet.insertRule(`
3273
+ return x.appendChild(y), y.sheet && y.sheet.insertRule(`
3274
3274
  [data-motion-pop-id="${o}"] {
3275
3275
  position: absolute !important;
3276
3276
  width: ${u}px !important;
@@ -3279,7 +3279,7 @@ function ef({ children: e, isPresent: t, anchorX: n, root: r }) {
3279
3279
  top: ${c}px !important;
3280
3280
  }
3281
3281
  `), () => {
3282
- x.contains(v) && x.removeChild(v);
3282
+ x.contains(y) && x.removeChild(y);
3283
3283
  };
3284
3284
  }, [t]), m(Qh, { isPresent: t, childRef: s, sizeRef: i, children: Kn.cloneElement(e, { ref: l }) });
3285
3285
  }
@@ -3313,7 +3313,7 @@ function gl(e = !0) {
3313
3313
  if (t === null)
3314
3314
  return [!0, null];
3315
3315
  const { isPresent: n, onExitComplete: r, register: o } = t, s = qe();
3316
- Ae(() => {
3316
+ Te(() => {
3317
3317
  if (e)
3318
3318
  return o(s);
3319
3319
  }, [e]);
@@ -3328,12 +3328,12 @@ function Gi(e) {
3328
3328
  }), t;
3329
3329
  }
3330
3330
  const pn = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: s = "sync", propagate: i = !1, anchorX: a = "left", root: l }) => {
3331
- const [u, d] = gl(i), c = _e(() => Gi(e), [e]), h = i && !u ? [] : c.map(En), f = fe(!0), p = fe(c), v = fo(() => /* @__PURE__ */ new Map()), [x, g] = Te(c), [C, b] = Te(c);
3331
+ const [u, d] = gl(i), c = _e(() => Gi(e), [e]), h = i && !u ? [] : c.map(En), f = fe(!0), p = fe(c), y = fo(() => /* @__PURE__ */ new Map()), [x, g] = ke(c), [C, b] = ke(c);
3332
3332
  ka(() => {
3333
3333
  f.current = !1, p.current = c;
3334
3334
  for (let T = 0; T < C.length; T++) {
3335
3335
  const E = En(C[T]);
3336
- h.includes(E) ? v.delete(E) : v.get(E) !== !0 && v.set(E, !1);
3336
+ h.includes(E) ? y.delete(E) : y.get(E) !== !0 && y.set(E, !1);
3337
3337
  }
3338
3338
  }, [C, h.length, h.join("-")]);
3339
3339
  const P = [];
@@ -3349,12 +3349,12 @@ const pn = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
3349
3349
  const { forceRender: k } = ue(ho);
3350
3350
  return m(oo, { children: C.map((T) => {
3351
3351
  const E = En(T), A = i && !u ? !1 : c === C || h.includes(E), I = () => {
3352
- if (v.has(E))
3353
- v.set(E, !0);
3352
+ if (y.has(E))
3353
+ y.set(E, !0);
3354
3354
  else
3355
3355
  return;
3356
3356
  let _ = !0;
3357
- v.forEach(($) => {
3357
+ y.forEach(($) => {
3358
3358
  $ || (_ = !1);
3359
3359
  }), _ && (k?.(), b(p.current), i && d?.(), r && r());
3360
3360
  };
@@ -3703,7 +3703,7 @@ function Tf(e, t, n, r) {
3703
3703
  for (let f = 0; f < h.length; f++) {
3704
3704
  const p = _o(e, h[f]);
3705
3705
  if (p) {
3706
- const { transitionEnd: v, transition: x, ...g } = p;
3706
+ const { transitionEnd: y, transition: x, ...g } = p;
3707
3707
  for (const C in g) {
3708
3708
  let b = g[C];
3709
3709
  if (Array.isArray(b)) {
@@ -3712,8 +3712,8 @@ function Tf(e, t, n, r) {
3712
3712
  }
3713
3713
  b !== null && (o[C] = b);
3714
3714
  }
3715
- for (const C in v)
3716
- o[C] = v[C];
3715
+ for (const C in y)
3716
+ o[C] = y[C];
3717
3717
  }
3718
3718
  }
3719
3719
  }
@@ -3781,7 +3781,7 @@ function Df(e, t, n, r, o) {
3781
3781
  const f = n[Pl], p = fe(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
3782
3782
  return ka(() => {
3783
3783
  d && (h.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), d.scheduleRenderMicrotask(), p.current && d.animationState && d.animationState.animateChanges());
3784
- }), Ae(() => {
3784
+ }), Te(() => {
3785
3785
  d && (!p.current && d.animationState && d.animationState.animateChanges(), p.current && (queueMicrotask(() => {
3786
3786
  window.MotionHandoffMarkAsComplete?.(f);
3787
3787
  }), p.current = !1), d.enteringChildren = void 0);
@@ -4428,15 +4428,15 @@ function Fl(e, t, { delay: n = 0, transitionOverride: r, type: o } = {}) {
4428
4428
  }, p = c.get();
4429
4429
  if (p !== void 0 && !c.isAnimating && !Array.isArray(h) && h === p && !f.velocity)
4430
4430
  continue;
4431
- let v = !1;
4431
+ let y = !1;
4432
4432
  if (window.MotionHandoffAnimation) {
4433
4433
  const g = Ol(e);
4434
4434
  if (g) {
4435
4435
  const C = window.MotionHandoffAnimation(g, d, Q);
4436
- C !== null && (f.startTime = C, v = !0);
4436
+ C !== null && (f.startTime = C, y = !0);
4437
4437
  }
4438
4438
  }
4439
- Jr(e, d), c.start(Wo(d, c, h, e.shouldReduceMotion && il.has(d) ? { type: !1 } : f, e, v));
4439
+ Jr(e, d), c.start(Wo(d, c, h, e.shouldReduceMotion && il.has(d) ? { type: !1 } : f, e, y));
4440
4440
  const x = c.animation;
4441
4441
  x && l.push(x);
4442
4442
  }
@@ -4594,8 +4594,8 @@ function mm(e) {
4594
4594
  b && (b.liveStyle = !0), x[g] = C ?? null;
4595
4595
  }), c.push({ animation: x });
4596
4596
  }
4597
- let v = !!c.length;
4598
- return r && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (v = !1), r = !1, v ? t(c) : Promise.resolve();
4597
+ let y = !!c.length;
4598
+ return r && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (y = !1), r = !1, y ? t(c) : Promise.resolve();
4599
4599
  }
4600
4600
  function a(l, u) {
4601
4601
  if (n[l].isActive === u)
@@ -4743,7 +4743,7 @@ function cs(e, t, n) {
4743
4743
  function rn(e, t, n) {
4744
4744
  cs(e.x, t.x, n.x), cs(e.y, t.y, n.y);
4745
4745
  }
4746
- function Pe(e) {
4746
+ function Ae(e) {
4747
4747
  return [e("x"), e("y")];
4748
4748
  }
4749
4749
  const Wl = ({ current: e }) => e ? e.ownerDocument.defaultView : null, us = (e, t) => Math.abs(e - t);
@@ -4759,19 +4759,19 @@ class Kl {
4759
4759
  const h = xr(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p = Pm(h.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4760
4760
  if (!f && !p)
4761
4761
  return;
4762
- const { point: v } = h, { timestamp: x } = he;
4763
- this.history.push({ ...v, timestamp: x });
4762
+ const { point: y } = h, { timestamp: x } = he;
4763
+ this.history.push({ ...y, timestamp: x });
4764
4764
  const { onStart: g, onMove: C } = this.handlers;
4765
4765
  f || (g && g(this.lastMoveEvent, h), this.startEvent = this.lastMoveEvent), C && C(this.lastMoveEvent, h);
4766
4766
  }, this.handlePointerMove = (h, f) => {
4767
4767
  this.lastMoveEvent = h, this.lastMoveEventInfo = br(f, this.transformPagePoint), Q.update(this.updatePoint, !0);
4768
4768
  }, this.handlePointerUp = (h, f) => {
4769
4769
  this.end();
4770
- const { onEnd: p, onSessionEnd: v, resumeAnimation: x } = this.handlers;
4770
+ const { onEnd: p, onSessionEnd: y, resumeAnimation: x } = this.handlers;
4771
4771
  if (this.dragSnapToOrigin && x && x(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4772
4772
  return;
4773
4773
  const g = xr(h.type === "pointercancel" ? this.lastMoveEventInfo : br(f, this.transformPagePoint), this.history);
4774
- this.startEvent && p && p(h, g), v && v(h, g);
4774
+ this.startEvent && p && p(h, g), y && y(h, g);
4775
4775
  }, !Lo(t))
4776
4776
  return;
4777
4777
  this.dragSnapToOrigin = s, this.handlers = n, this.transformPagePoint = r, this.distanceThreshold = i, this.contextWindow = o || window;
@@ -4888,10 +4888,10 @@ class Bm {
4888
4888
  const { dragSnapToOrigin: h } = this.getProps();
4889
4889
  h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(gn(c).point);
4890
4890
  }, i = (c, h) => {
4891
- const { drag: f, dragPropagation: p, onDragStart: v } = this.getProps();
4891
+ const { drag: f, dragPropagation: p, onDragStart: y } = this.getProps();
4892
4892
  if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = _h(f), !this.openDragLock))
4893
4893
  return;
4894
- this.latestPointerEvent = c, this.latestPanInfo = h, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Pe((g) => {
4894
+ this.latestPointerEvent = c, this.latestPanInfo = h, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ae((g) => {
4895
4895
  let C = this.getAxisMotionValue(g).get() || 0;
4896
4896
  if (ze.test(C)) {
4897
4897
  const { projection: b } = this.visualElement;
@@ -4901,23 +4901,23 @@ class Bm {
4901
4901
  }
4902
4902
  }
4903
4903
  this.originPoint[g] = C;
4904
- }), v && Q.postRender(() => v(c, h)), Jr(this.visualElement, "transform");
4904
+ }), y && Q.postRender(() => y(c, h)), Jr(this.visualElement, "transform");
4905
4905
  const { animationState: x } = this.visualElement;
4906
4906
  x && x.setActive("whileDrag", !0);
4907
4907
  }, a = (c, h) => {
4908
4908
  this.latestPointerEvent = c, this.latestPanInfo = h;
4909
- const { dragPropagation: f, dragDirectionLock: p, onDirectionLock: v, onDrag: x } = this.getProps();
4909
+ const { dragPropagation: f, dragDirectionLock: p, onDirectionLock: y, onDrag: x } = this.getProps();
4910
4910
  if (!f && !this.openDragLock)
4911
4911
  return;
4912
4912
  const { offset: g } = h;
4913
4913
  if (p && this.currentDirection === null) {
4914
- this.currentDirection = Om(g), this.currentDirection !== null && v && v(this.currentDirection);
4914
+ this.currentDirection = Om(g), this.currentDirection !== null && y && y(this.currentDirection);
4915
4915
  return;
4916
4916
  }
4917
4917
  this.updateAxis("x", h.point, g), this.updateAxis("y", h.point, g), this.visualElement.render(), x && x(c, h);
4918
4918
  }, l = (c, h) => {
4919
4919
  this.latestPointerEvent = c, this.latestPanInfo = h, this.stop(c, h), this.latestPointerEvent = null, this.latestPanInfo = null;
4920
- }, u = () => Pe((c) => this.getAnimationState(c) === "paused" && this.getAxisMotionValue(c).animation?.play()), { dragSnapToOrigin: d } = this.getProps();
4920
+ }, u = () => Ae((c) => this.getAnimationState(c) === "paused" && this.getAxisMotionValue(c).animation?.play()), { dragSnapToOrigin: d } = this.getProps();
4921
4921
  this.panSession = new Kl(t, {
4922
4922
  onSessionStart: s,
4923
4923
  onStart: i,
@@ -4963,7 +4963,7 @@ class Bm {
4963
4963
  }
4964
4964
  resolveConstraints() {
4965
4965
  const { dragConstraints: t, dragElastic: n } = this.getProps(), r = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, o = this.constraints;
4966
- t && Pt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && r ? this.constraints = Mm(r.layoutBox, t) : this.constraints = !1, this.elastic = Lm(n), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && Pe((s) => {
4966
+ t && Pt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && r ? this.constraints = Mm(r.layoutBox, t) : this.constraints = !1, this.elastic = Lm(n), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && Ae((s) => {
4967
4967
  this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Im(r.layoutBox[s], this.constraints[s]));
4968
4968
  });
4969
4969
  }
@@ -4985,7 +4985,7 @@ class Bm {
4985
4985
  return i;
4986
4986
  }
4987
4987
  startAnimation(t) {
4988
- const { drag: n, dragMomentum: r, dragElastic: o, dragTransition: s, dragSnapToOrigin: i, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = Pe((d) => {
4988
+ const { drag: n, dragMomentum: r, dragElastic: o, dragTransition: s, dragSnapToOrigin: i, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = Ae((d) => {
4989
4989
  if (!Pn(d, n, this.currentDirection))
4990
4990
  return;
4991
4991
  let c = l && l[d] || {};
@@ -5010,10 +5010,10 @@ class Bm {
5010
5010
  return Jr(this.visualElement, t), r.start(Wo(t, r, 0, n, this.visualElement, !1));
5011
5011
  }
5012
5012
  stopAnimation() {
5013
- Pe((t) => this.getAxisMotionValue(t).stop());
5013
+ Ae((t) => this.getAxisMotionValue(t).stop());
5014
5014
  }
5015
5015
  pauseAnimation() {
5016
- Pe((t) => this.getAxisMotionValue(t).animation?.pause());
5016
+ Ae((t) => this.getAxisMotionValue(t).animation?.pause());
5017
5017
  }
5018
5018
  getAnimationState(t) {
5019
5019
  return this.getAxisMotionValue(t).animation?.state;
@@ -5029,7 +5029,7 @@ class Bm {
5029
5029
  return o || this.visualElement.getValue(t, (r.initial ? r.initial[t] : void 0) || 0);
5030
5030
  }
5031
5031
  snapToCursor(t) {
5032
- Pe((n) => {
5032
+ Ae((n) => {
5033
5033
  const { drag: r } = this.getProps();
5034
5034
  if (!Pn(n, r, this.currentDirection))
5035
5035
  return;
@@ -5053,7 +5053,7 @@ class Bm {
5053
5053
  return;
5054
5054
  this.stopAnimation();
5055
5055
  const o = { x: 0, y: 0 };
5056
- Pe((i) => {
5056
+ Ae((i) => {
5057
5057
  const a = this.getAxisMotionValue(i);
5058
5058
  if (a && this.constraints !== !1) {
5059
5059
  const l = a.get();
@@ -5061,7 +5061,7 @@ class Bm {
5061
5061
  }
5062
5062
  });
5063
5063
  const { transformTemplate: s } = this.visualElement.getProps();
5064
- this.visualElement.current.style.transform = s ? s({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), Pe((i) => {
5064
+ this.visualElement.current.style.transform = s ? s({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), Ae((i) => {
5065
5065
  if (!Pn(i, t, null))
5066
5066
  return;
5067
5067
  const a = this.getAxisMotionValue(i), { min: l, max: u } = this.constraints[i];
@@ -5081,7 +5081,7 @@ class Bm {
5081
5081
  }, { projection: o } = this.visualElement, s = o.addEventListener("measure", r);
5082
5082
  o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), Q.read(r);
5083
5083
  const i = dn(window, "resize", () => this.scalePositionWithinConstraints()), a = o.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: u }) => {
5084
- this.isDragging && u && (Pe((d) => {
5084
+ this.isDragging && u && (Ae((d) => {
5085
5085
  const c = this.getAxisMotionValue(d);
5086
5086
  c && (this.originPoint[d] += l[d].translate, c.set(c.get() + l[d].translate));
5087
5087
  }), this.visualElement.render());
@@ -5303,7 +5303,7 @@ function Zl(e, t, n) {
5303
5303
  function ws(e, t) {
5304
5304
  e.min = t.min, e.max = t.max;
5305
5305
  }
5306
- function Ee(e, t) {
5306
+ function Pe(e, t) {
5307
5307
  ws(e.x, t.x), ws(e.y, t.y);
5308
5308
  }
5309
5309
  function Ss(e, t) {
@@ -5478,12 +5478,12 @@ function ec({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5478
5478
  this.target = void 0, this.relativeTarget = void 0;
5479
5479
  return;
5480
5480
  }
5481
- const p = this.options.transition || u.getDefaultTransition() || vp, { onLayoutAnimationStart: v, onLayoutAnimationComplete: x } = u.getProps(), g = !this.targetLayout || !Jl(this.targetLayout, f), C = !c && h;
5481
+ const p = this.options.transition || u.getDefaultTransition() || vp, { onLayoutAnimationStart: y, onLayoutAnimationComplete: x } = u.getProps(), g = !this.targetLayout || !Jl(this.targetLayout, f), C = !c && h;
5482
5482
  if (this.options.layoutRoot || this.resumeFrom || C || c && (g || !this.currentAnimation)) {
5483
5483
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
5484
5484
  const b = {
5485
5485
  ...Vo(p, "layout"),
5486
- onPlay: v,
5486
+ onPlay: y,
5487
5487
  onComplete: x
5488
5488
  };
5489
5489
  (u.shouldReduceMotion || this.options.layoutRoot) && (b.delay = 0, b.type = !1), this.startAnimation(b), this.setAnimationOrigin(d, C);
@@ -5623,17 +5623,17 @@ function ec({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5623
5623
  }
5624
5624
  removeElementScroll(i) {
5625
5625
  const a = ne();
5626
- if (Ee(a, i), this.scroll?.wasRoot)
5626
+ if (Pe(a, i), this.scroll?.wasRoot)
5627
5627
  return a;
5628
5628
  for (let l = 0; l < this.path.length; l++) {
5629
5629
  const u = this.path[l], { scroll: d, options: c } = u;
5630
- u !== this.root && d && c.layoutScroll && (d.wasRoot && Ee(a, i), At(a.x, d.offset.x), At(a.y, d.offset.y));
5630
+ u !== this.root && d && c.layoutScroll && (d.wasRoot && Pe(a, i), At(a.x, d.offset.x), At(a.y, d.offset.y));
5631
5631
  }
5632
5632
  return a;
5633
5633
  }
5634
5634
  applyTransform(i, a = !1) {
5635
5635
  const l = ne();
5636
- Ee(l, i);
5636
+ Pe(l, i);
5637
5637
  for (let u = 0; u < this.path.length; u++) {
5638
5638
  const d = this.path[u];
5639
5639
  !a && d.options.layoutScroll && d.scroll && d !== d.root && $t(l, {
@@ -5645,14 +5645,14 @@ function ec({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5645
5645
  }
5646
5646
  removeTransform(i) {
5647
5647
  const a = ne();
5648
- Ee(a, i);
5648
+ Pe(a, i);
5649
5649
  for (let l = 0; l < this.path.length; l++) {
5650
5650
  const u = this.path[l];
5651
5651
  if (!u.instance || !ct(u.latestValues))
5652
5652
  continue;
5653
5653
  Gr(u.latestValues) && u.updateSnapshot();
5654
5654
  const d = ne(), c = u.measurePageBox();
5655
- Ee(d, c), ks(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, d);
5655
+ Pe(d, c), ks(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, d);
5656
5656
  }
5657
5657
  return ct(this.latestValues) && ks(a, this.latestValues), a;
5658
5658
  }
@@ -5682,12 +5682,12 @@ function ec({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5682
5682
  if (!(!this.layout || !(d || c))) {
5683
5683
  if (this.resolvedRelativeTargetAt = he.timestamp, !this.targetDelta && !this.relativeTarget) {
5684
5684
  const h = this.getClosestProjectingParent();
5685
- h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ne(), this.relativeTargetOrigin = ne(), rn(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), Ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5685
+ h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ne(), this.relativeTargetOrigin = ne(), rn(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), Pe(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5686
5686
  }
5687
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = ne(), this.targetWithTransforms = ne()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Em(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Ee(this.target, this.layout.layoutBox), Vl(this.target, this.targetDelta)) : Ee(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
5687
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = ne(), this.targetWithTransforms = ne()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Em(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Pe(this.target, this.layout.layoutBox), Vl(this.target, this.targetDelta)) : Pe(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
5688
5688
  this.attemptToResolveRelativeTarget = !1;
5689
5689
  const h = this.getClosestProjectingParent();
5690
- h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ne(), this.relativeTargetOrigin = ne(), rn(this.relativeTargetOrigin, this.target, h.target), Ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5690
+ h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ne(), this.relativeTargetOrigin = ne(), rn(this.relativeTargetOrigin, this.target, h.target), Pe(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5691
5691
  }
5692
5692
  }
5693
5693
  }
@@ -5706,7 +5706,7 @@ function ec({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5706
5706
  const { layout: u, layoutId: d } = this.options;
5707
5707
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d))
5708
5708
  return;
5709
- Ee(this.layoutCorrected, this.layout.layoutBox);
5709
+ Pe(this.layoutCorrected, this.layout.layoutBox);
5710
5710
  const c = this.treeScale.x, h = this.treeScale.y;
5711
5711
  Of(this.layoutCorrected, this.treeScale, this.path, a), i.layout && !i.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (i.target = i.layout.layoutBox, i.targetWithTransforms = ne());
5712
5712
  const { target: f } = i;
@@ -5735,12 +5735,12 @@ function ec({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5735
5735
  setAnimationOrigin(i, a = !1) {
5736
5736
  const l = this.snapshot, u = l ? l.latestValues : {}, d = { ...this.latestValues }, c = Dt();
5737
5737
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
5738
- const h = ne(), f = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, v = f !== p, x = this.getStack(), g = !x || x.members.length <= 1, C = !!(v && !g && this.options.crossfade === !0 && !this.path.some(yp));
5738
+ const h = ne(), f = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, y = f !== p, x = this.getStack(), g = !x || x.members.length <= 1, C = !!(y && !g && this.options.crossfade === !0 && !this.path.some(yp));
5739
5739
  this.animationProgress = 0;
5740
5740
  let b;
5741
5741
  this.mixTargetDelta = (P) => {
5742
5742
  const k = P / 1e3;
5743
- Is(c.x, i.x, k), Is(c.y, i.y, k), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (rn(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), gp(this.relativeTarget, this.relativeTargetOrigin, h, k), b && tp(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = ne()), Ee(b, this.relativeTarget)), v && (this.animationValues = d, Xm(d, u, this.latestValues, k, C, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = k;
5743
+ Is(c.x, i.x, k), Is(c.y, i.y, k), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (rn(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), gp(this.relativeTarget, this.relativeTargetOrigin, h, k), b && tp(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = ne()), Pe(b, this.relativeTarget)), y && (this.animationValues = d, Xm(d, u, this.latestValues, k, C, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = k;
5744
5744
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
5745
5745
  }
5746
5746
  startAnimation(i) {
@@ -5779,7 +5779,7 @@ function ec({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5779
5779
  const h = ye(this.layout.layoutBox.y);
5780
5780
  l.y.min = i.target.y.min, l.y.max = l.y.min + h;
5781
5781
  }
5782
- Ee(a, l), $t(a, d), nn(this.projectionDeltaWithTransform, this.layoutCorrected, a, d);
5782
+ Pe(a, l), $t(a, d), nn(this.projectionDeltaWithTransform, this.layoutCorrected, a, d);
5783
5783
  }
5784
5784
  }
5785
5785
  registerSharedNode(i, a) {
@@ -5859,7 +5859,7 @@ function ec({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5859
5859
  for (const p in un) {
5860
5860
  if (d[p] === void 0)
5861
5861
  continue;
5862
- const { correct: v, applyTo: x, isCSSVariable: g } = un[p], C = c === "none" ? d[p] : v(d[p], u);
5862
+ const { correct: y, applyTo: x, isCSSVariable: g } = un[p], C = c === "none" ? d[p] : y(d[p], u);
5863
5863
  if (x) {
5864
5864
  const b = x.length;
5865
5865
  for (let P = 0; P < b; P++)
@@ -5885,10 +5885,10 @@ function ap(e) {
5885
5885
  const t = e.resumeFrom?.snapshot || e.snapshot;
5886
5886
  if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
5887
5887
  const { layoutBox: n, measuredBox: r } = e.layout, { animationType: o } = e.options, s = t.source !== e.layout.source;
5888
- o === "size" ? Pe((d) => {
5888
+ o === "size" ? Ae((d) => {
5889
5889
  const c = s ? t.measuredBox[d] : t.layoutBox[d], h = ye(c);
5890
5890
  c.min = n[d].min, c.max = c.min + h;
5891
- }) : tc(o, t.layoutBox, n) && Pe((d) => {
5891
+ }) : tc(o, t.layoutBox, n) && Ae((d) => {
5892
5892
  const c = s ? t.measuredBox[d] : t.layoutBox[d], h = ye(n[d]);
5893
5893
  c.max = c.min + h, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + h);
5894
5894
  });
@@ -6154,33 +6154,33 @@ const Rp = {
6154
6154
  ...Sp,
6155
6155
  ...Ip
6156
6156
  }, Je = /* @__PURE__ */ Lf(Lp, Gf), Np = {
6157
- sm: y`
6157
+ sm: v`
6158
6158
  width: 1.25rem;
6159
6159
  height: 1.25rem;
6160
6160
  `,
6161
- md: y`
6161
+ md: v`
6162
6162
  width: 1.75rem;
6163
6163
  height: 1.75rem;
6164
6164
  `,
6165
- lg: y`
6165
+ lg: v`
6166
6166
  width: 3rem;
6167
6167
  height: 3rem;
6168
6168
  `,
6169
- xl: y`
6169
+ xl: v`
6170
6170
  width: 4rem;
6171
6171
  height: 4rem;
6172
6172
  `
6173
6173
  }, rc = {
6174
- primary: y`
6174
+ primary: v`
6175
6175
  color: var(--color-main-blue-primary);
6176
6176
  `,
6177
- orange: y`
6177
+ orange: v`
6178
6178
  color: var(--color-main-orange-primary);
6179
6179
  `,
6180
- white: y`
6180
+ white: v`
6181
6181
  color: var(--color-main-white);
6182
6182
  `,
6183
- gray: y`
6183
+ gray: v`
6184
6184
  color: var(--color-main-grey);
6185
6185
  `
6186
6186
  }, Bp = S.div`
@@ -6326,7 +6326,7 @@ const Rp = {
6326
6326
  color: e = "white",
6327
6327
  variant: t = "rotate"
6328
6328
  }) => /* @__PURE__ */ m(Ko, { size: "sm", color: e, centered: !1, variant: t }), Kp = {
6329
- primary: y`
6329
+ primary: v`
6330
6330
  background-color: var(--color-main-blue-primary);
6331
6331
  color: var(--color-main-white);
6332
6332
 
@@ -6342,7 +6342,7 @@ const Rp = {
6342
6342
  outline-color: var(--color-main-blue-primary);
6343
6343
  }
6344
6344
  `,
6345
- secondary: y`
6345
+ secondary: v`
6346
6346
  background-color: var(--color-main-orange-primary);
6347
6347
  color: var(--color-main-white);
6348
6348
 
@@ -6355,7 +6355,7 @@ const Rp = {
6355
6355
  outline-color: var(--color-main-orange-primary);
6356
6356
  }
6357
6357
  `,
6358
- cancel: y`
6358
+ cancel: v`
6359
6359
  background-color: var(--color-main-warning-state);
6360
6360
  color: var(--color-main-white);
6361
6361
 
@@ -6368,7 +6368,7 @@ const Rp = {
6368
6368
  outline-color: var(--color-main-warning-state);
6369
6369
  }
6370
6370
  `,
6371
- outline: y`
6371
+ outline: v`
6372
6372
  background-color: transparent;
6373
6373
  color: var(--color-main-blue-primary);
6374
6374
  border: 2px solid var(--color-main-blue-primary);
@@ -6385,23 +6385,23 @@ const Rp = {
6385
6385
  outline-color: var(--color-main-blue-primary);
6386
6386
  }
6387
6387
  `
6388
- }, Yp = y`
6388
+ }, Yp = v`
6389
6389
  background-color: var(--color-main-grey);
6390
6390
  color: var(--color-dark-200);
6391
6391
  cursor: not-allowed;
6392
6392
  box-shadow: none;
6393
6393
  `, Gp = {
6394
- sm: y`
6394
+ sm: v`
6395
6395
  padding: 0.375rem 0.75rem;
6396
6396
  min-height: 2.75rem;
6397
6397
  ${L[12]}
6398
6398
  `,
6399
- md: y`
6399
+ md: v`
6400
6400
  padding: 0.625rem 1.25rem;
6401
6401
  min-height: 3.175rem;
6402
6402
  ${L[16]}
6403
6403
  `,
6404
- lg: y`
6404
+ lg: v`
6405
6405
  padding: 0.75rem 1.5rem;
6406
6406
  min-height: 3.5rem;
6407
6407
  ${L[20]}
@@ -6453,47 +6453,47 @@ const Rp = {
6453
6453
  ]
6454
6454
  }
6455
6455
  ), Zp = {
6456
- sm: y`
6456
+ sm: v`
6457
6457
  padding: 0.2rem 0.625rem;
6458
6458
  border-radius: var(--border-radius-button);
6459
6459
  ${L[12]}
6460
6460
  `,
6461
- md: y`
6461
+ md: v`
6462
6462
  padding: 0.375rem 0.75rem;
6463
6463
  border-radius: var(--border-radius-button);
6464
6464
  ${L[14]}
6465
6465
  `,
6466
- lg: y`
6466
+ lg: v`
6467
6467
  padding: 0.5rem 1rem;
6468
6468
  border-radius: var(--border-radius-button);
6469
6469
  ${L[16]}
6470
6470
  `
6471
6471
  }, qp = {
6472
- primary: y`
6472
+ primary: v`
6473
6473
  background-color: var(--color-main-blue-primary);
6474
6474
  color: var(--color-main-white);
6475
6475
  `,
6476
- secondary: y`
6476
+ secondary: v`
6477
6477
  background-color: var(--color-main-orange-primary);
6478
6478
  color: var(--color-main-white);
6479
6479
  `,
6480
- success: y`
6480
+ success: v`
6481
6481
  background-color: var(--color-main-positive-state);
6482
6482
  color: var(--color-main-white);
6483
6483
  `,
6484
- warning: y`
6484
+ warning: v`
6485
6485
  background-color: var(--color-main-yellow-primary);
6486
6486
  color: var(--color-main-black);
6487
6487
  `,
6488
- danger: y`
6488
+ danger: v`
6489
6489
  background-color: var(--color-main-warning-state);
6490
6490
  color: var(--color-main-white);
6491
6491
  `,
6492
- neutral: y`
6492
+ neutral: v`
6493
6493
  background-color: var(--color-light-200);
6494
6494
  color: var(--color-main-grey);
6495
6495
  `,
6496
- outline: y``
6496
+ outline: v``
6497
6497
  }, Jp = S.span`
6498
6498
  display: inline-flex;
6499
6499
  align-items: center;
@@ -6505,7 +6505,7 @@ const Rp = {
6505
6505
  ${({ $size: e }) => Zp[e]}
6506
6506
  ${({ $variant: e }) => qp[e]}
6507
6507
 
6508
- ${({ $variant: e, $outlineColor: t }) => e === "outline" ? y`
6508
+ ${({ $variant: e, $outlineColor: t }) => e === "outline" ? v`
6509
6509
  background-color: transparent;
6510
6510
  color: ${t || "var(--color-main-blue-primary)"};
6511
6511
  border: 1px solid ${t || "var(--color-main-blue-primary)"};
@@ -6848,7 +6848,7 @@ function kg(e) {
6848
6848
  }
6849
6849
  const Eg = (e) => {
6850
6850
  var t, n, r, o, s, i, a, l, u;
6851
- const { invert: d, toast: c, unstyled: h, interacting: f, setHeights: p, visibleToasts: v, heights: x, index: g, toasts: C, expanded: b, removeToast: P, defaultRichColors: k, closeButton: T, style: E, cancelButtonStyle: A, actionButtonStyle: I, className: _ = "", descriptionClassName: $ = "", duration: H, position: U, gap: G, expandByDefault: J, classNames: V, icons: R, closeButtonAriaLabel: z = "Close toast" } = e, [N, j] = w.useState(null), [re, oe] = w.useState(null), [F, Z] = w.useState(!1), [X, ae] = w.useState(!1), [Ve, W] = w.useState(!1), [ve, Qe] = w.useState(!1), [Ue, ge] = w.useState(!1), [Ac, or] = w.useState(0), [$c, qo] = w.useState(0), Xt = w.useRef(c.duration || H || _s), Jo = w.useRef(null), We = w.useRef(null), Dc = g === 0, Mc = g + 1 <= v, Se = c.type, wt = c.dismissible !== !1, Vc = c.className || "", Rc = c.descriptionClassName || "", yn = w.useMemo(() => x.findIndex((B) => B.toastId === c.id) || 0, [
6851
+ const { invert: d, toast: c, unstyled: h, interacting: f, setHeights: p, visibleToasts: y, heights: x, index: g, toasts: C, expanded: b, removeToast: P, defaultRichColors: k, closeButton: T, style: E, cancelButtonStyle: A, actionButtonStyle: I, className: _ = "", descriptionClassName: $ = "", duration: H, position: U, gap: G, expandByDefault: J, classNames: V, icons: R, closeButtonAriaLabel: z = "Close toast" } = e, [N, j] = w.useState(null), [re, oe] = w.useState(null), [F, Z] = w.useState(!1), [X, ae] = w.useState(!1), [Ve, W] = w.useState(!1), [ve, Qe] = w.useState(!1), [Ue, ge] = w.useState(!1), [Ac, or] = w.useState(0), [$c, qo] = w.useState(0), Xt = w.useRef(c.duration || H || _s), Jo = w.useRef(null), We = w.useRef(null), Dc = g === 0, Mc = g + 1 <= y, Se = c.type, wt = c.dismissible !== !1, Vc = c.className || "", Rc = c.descriptionClassName || "", yn = w.useMemo(() => x.findIndex((B) => B.toastId === c.id) || 0, [
6852
6852
  x,
6853
6853
  c.id
6854
6854
  ]), Ic = w.useMemo(() => {
@@ -7014,8 +7014,8 @@ const Eg = (e) => {
7014
7014
  var B, le, me;
7015
7015
  if (ve || !wt) return;
7016
7016
  Ct.current = null;
7017
- const Ce = Number(((B = We.current) == null ? void 0 : B.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), vn = Number(((le = We.current) == null ? void 0 : le.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), de = (/* @__PURE__ */ new Date()).getTime() - ((me = Jo.current) == null ? void 0 : me.getTime()), ke = N === "x" ? Ce : vn, bn = Math.abs(ke) / de;
7018
- if (Math.abs(ke) >= Cg || bn > 0.11) {
7017
+ const Ce = Number(((B = We.current) == null ? void 0 : B.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), vn = Number(((le = We.current) == null ? void 0 : le.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), de = (/* @__PURE__ */ new Date()).getTime() - ((me = Jo.current) == null ? void 0 : me.getTime()), Ee = N === "x" ? Ce : vn, bn = Math.abs(Ee) / de;
7018
+ if (Math.abs(Ee) >= Cg || bn > 0.11) {
7019
7019
  or(St.current), c.onDismiss == null || c.onDismiss.call(c, c), oe(N === "x" ? Ce > 0 ? "right" : "left" : vn > 0 ? "down" : "up"), et(), Qe(!0);
7020
7020
  return;
7021
7021
  } else {
@@ -7027,10 +7027,10 @@ const Eg = (e) => {
7027
7027
  onPointerMove: (B) => {
7028
7028
  var le, me, Ce;
7029
7029
  if (!Ct.current || !wt || ((le = window.getSelection()) == null ? void 0 : le.toString().length) > 0) return;
7030
- const de = B.clientY - Ct.current.y, ke = B.clientX - Ct.current.x;
7030
+ const de = B.clientY - Ct.current.y, Ee = B.clientX - Ct.current.x;
7031
7031
  var bn;
7032
7032
  const Re = (bn = e.swipeDirections) != null ? bn : kg(U);
7033
- !N && (Math.abs(ke) > 1 || Math.abs(de) > 1) && j(Math.abs(ke) > Math.abs(de) ? "x" : "y");
7033
+ !N && (Math.abs(Ee) > 1 || Math.abs(de) > 1) && j(Math.abs(Ee) > Math.abs(de) ? "x" : "y");
7034
7034
  let Ie = {
7035
7035
  x: 0,
7036
7036
  y: 0
@@ -7045,11 +7045,11 @@ const Eg = (e) => {
7045
7045
  Ie.y = Math.abs(st) < Math.abs(de) ? st : de;
7046
7046
  }
7047
7047
  } else if (N === "x" && (Re.includes("left") || Re.includes("right")))
7048
- if (Re.includes("left") && ke < 0 || Re.includes("right") && ke > 0)
7049
- Ie.x = ke;
7048
+ if (Re.includes("left") && Ee < 0 || Re.includes("right") && Ee > 0)
7049
+ Ie.x = Ee;
7050
7050
  else {
7051
- const st = ke * ii(ke);
7052
- Ie.x = Math.abs(st) < Math.abs(ke) ? st : ke;
7051
+ const st = Ee * ii(Ee);
7052
+ Ie.x = Math.abs(st) < Math.abs(Ee) ? st : Ee;
7053
7053
  }
7054
7054
  (Math.abs(Ie.x) > 0 || Math.abs(Ie.y) > 0) && ge(!0), (me = We.current) == null || me.style.setProperty("--swipe-amount-x", `${Ie.x}px`), (Ce = We.current) == null || Ce.style.setProperty("--swipe-amount-y", `${Ie.y}px`);
7055
7055
  }
@@ -7128,7 +7128,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7128
7128
  const { id: r, invert: o, position: s = "bottom-right", hotkey: i = [
7129
7129
  "altKey",
7130
7130
  "KeyT"
7131
- ], expand: a, closeButton: l, className: u, offset: d, mobileOffset: c, theme: h = "light", richColors: f, duration: p, style: v, visibleToasts: x = vg, toastOptions: g, dir: C = Hs(), gap: b = Sg, icons: P, containerAriaLabel: k = "Notifications" } = t, [T, E] = w.useState([]), A = w.useMemo(() => r ? T.filter((F) => F.toasterId === r) : T.filter((F) => !F.toasterId), [
7131
+ ], expand: a, closeButton: l, className: u, offset: d, mobileOffset: c, theme: h = "light", richColors: f, duration: p, style: y, visibleToasts: x = vg, toastOptions: g, dir: C = Hs(), gap: b = Sg, icons: P, containerAriaLabel: k = "Notifications" } = t, [T, E] = w.useState([]), A = w.useMemo(() => r ? T.filter((F) => F.toasterId === r) : T.filter((F) => !F.toasterId), [
7132
7132
  T,
7133
7133
  r
7134
7134
  ]), I = w.useMemo(() => Array.from(new Set([
@@ -7245,7 +7245,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7245
7245
  "--front-toast-height": `${((X = _[0]) == null ? void 0 : X.height) || 0}px`,
7246
7246
  "--width": `${wg}px`,
7247
7247
  "--gap": `${b}px`,
7248
- ...v,
7248
+ ...y,
7249
7249
  ...Pg(d, c)
7250
7250
  },
7251
7251
  onBlur: (W) => {
@@ -7318,7 +7318,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7318
7318
  ...t
7319
7319
  }
7320
7320
  ), $g = {
7321
- elevated: y`
7321
+ elevated: v`
7322
7322
  background-color: var(--color-main-white);
7323
7323
  box-shadow: var(--shadow-black-card);
7324
7324
  border: none;
@@ -7327,7 +7327,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7327
7327
  box-shadow: var(--shadow-hover-black-card);
7328
7328
  }
7329
7329
  `,
7330
- flat: y`
7330
+ flat: v`
7331
7331
  background-color: var(--color-main-white);
7332
7332
  box-shadow: none;
7333
7333
  border: none;
@@ -7336,7 +7336,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7336
7336
  background-color: var(--color-main-alternative-secondary);
7337
7337
  }
7338
7338
  `,
7339
- info: y`
7339
+ info: v`
7340
7340
  background-color: var(--color-main-white);
7341
7341
  box-shadow: none;
7342
7342
 
@@ -7349,19 +7349,19 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7349
7349
  }
7350
7350
  `
7351
7351
  }, Dg = {
7352
- sm: y`
7352
+ sm: v`
7353
7353
  padding: 0.75rem;
7354
7354
  gap: 0.5rem;
7355
7355
  `,
7356
- md: y`
7356
+ md: v`
7357
7357
  padding: 1rem;
7358
7358
  gap: 0.5rem;
7359
7359
  `,
7360
- lg: y`
7360
+ lg: v`
7361
7361
  padding: 1.25rem;
7362
7362
  gap: 0.5rem;
7363
7363
  `
7364
- }, Mg = y`
7364
+ }, Mg = v`
7365
7365
  transition:
7366
7366
  box-shadow 0.3s ease-out,
7367
7367
  background-color 0.3s ease-out,
@@ -7381,7 +7381,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7381
7381
  &:focus-visible {
7382
7382
  outline-color: var(--color-main-blue-primary);
7383
7383
  }
7384
- `, Vg = y`
7384
+ `, Vg = v`
7385
7385
  opacity: 0.6;
7386
7386
  cursor: not-allowed;
7387
7387
  pointer-events: none;
@@ -7454,13 +7454,13 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7454
7454
  children: e,
7455
7455
  ...t
7456
7456
  }) => /* @__PURE__ */ m(Ng, { ...t, children: e }), Bg = {
7457
- sm: y`
7457
+ sm: v`
7458
7458
  ${L[12]}
7459
7459
  `,
7460
- md: y`
7460
+ md: v`
7461
7461
  ${L[16]}
7462
7462
  `,
7463
- lg: y`
7463
+ lg: v`
7464
7464
  ${L[18]}
7465
7465
  `
7466
7466
  }, Og = S.div`
@@ -7477,13 +7477,13 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7477
7477
  size: n = "md",
7478
7478
  ...r
7479
7479
  }) => /* @__PURE__ */ m(Og, { className: t, $size: n, ...r, children: e }), Fg = {
7480
- sm: y`
7480
+ sm: v`
7481
7481
  ${L[16]}
7482
7482
  `,
7483
- md: y`
7483
+ md: v`
7484
7484
  ${L[24]}
7485
7485
  `,
7486
- lg: y`
7486
+ lg: v`
7487
7487
  ${L[30]}
7488
7488
  `
7489
7489
  }, jg = S.label`
@@ -7491,7 +7491,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7491
7491
  ${({ $size: e }) => Fg[e]}
7492
7492
  ${({ $disabled: e }) => e && zg}
7493
7493
  cursor: ${({ $disabled: e, $htmlFor: t }) => e || !t ? "default" : "pointer"};
7494
- `, zg = y`
7494
+ `, zg = v`
7495
7495
  cursor: not-allowed;
7496
7496
  opacity: 0.6;
7497
7497
  `, Yo = ({
@@ -7689,7 +7689,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7689
7689
  }
7690
7690
  };
7691
7691
  }
7692
- }, Yt = y`
7692
+ }, Yt = v`
7693
7693
  display: flex;
7694
7694
  justify-content: space-between;
7695
7695
  align-items: center;
@@ -7720,7 +7720,7 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7720
7720
  &:disabled {
7721
7721
  cursor: not-allowed;
7722
7722
  }
7723
- `, Go = y`
7723
+ `, Go = v`
7724
7724
  width: 100%;
7725
7725
  border: none;
7726
7726
  outline: none;
@@ -7737,18 +7737,18 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7737
7737
  &::placeholder {
7738
7738
  color: var(--color-dark-200);
7739
7739
  }
7740
- `, Gt = y`
7740
+ `, Gt = v`
7741
7741
  border: var(--border-input-error) !important;
7742
7742
 
7743
7743
  &:focus-within {
7744
7744
  border: 1px solid var(--color-main-warning-state) !important;
7745
7745
  outline: none;
7746
7746
  }
7747
- `, xt = y`
7747
+ `, xt = v`
7748
7748
  border: var(--border-input-disabled) !important;
7749
7749
  cursor: not-allowed;
7750
7750
  opacity: 0.6;
7751
- `, Ug = y`
7751
+ `, Ug = v`
7752
7752
  border: none;
7753
7753
  border-top: 0;
7754
7754
  border-right: 0;
@@ -7775,22 +7775,22 @@ const Ag = /* @__PURE__ */ w.forwardRef(function(t, n) {
7775
7775
  outline: none;
7776
7776
  }
7777
7777
  `, rr = {
7778
- sm: y`
7778
+ sm: v`
7779
7779
  padding: 0.5rem 1rem;
7780
7780
  height: 2.5rem;
7781
7781
  ${L[18]}
7782
7782
  `,
7783
- md: y`
7783
+ md: v`
7784
7784
  padding: 0.5rem 1rem;
7785
7785
  height: 2.75rem;
7786
7786
  ${L[20]}
7787
7787
  `,
7788
- lg: y`
7788
+ lg: v`
7789
7789
  padding: 0.5rem 1rem;
7790
7790
  height: 3rem;
7791
7791
  ${L[20]}
7792
7792
  `
7793
- }, Xo = y`
7793
+ }, Xo = v`
7794
7794
  display: flex;
7795
7795
  align-items: center;
7796
7796
  justify-content: center;
@@ -7878,7 +7878,7 @@ const Yg = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) =>
7878
7878
  className: a,
7879
7879
  ...l
7880
7880
  }) => {
7881
- const [u, d] = Te(!1), c = () => d((h) => !h);
7881
+ const [u, d] = ke(!1), c = () => d((h) => !h);
7882
7882
  return /* @__PURE__ */ D(
7883
7883
  i0,
7884
7884
  {
@@ -8019,13 +8019,13 @@ const Yg = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) =>
8019
8019
  background-color: ${({ $active: e }) => e ? "var(--color-main-alternative-secondary)" : "transparent"};
8020
8020
  color: ${({ $disabled: e }) => e ? "var(--color-dark-200)" : "var(--color-main-blue-primary)"};
8021
8021
  `, x0 = {
8022
- sm: y`
8022
+ sm: v`
8023
8023
  ${L[16]}
8024
8024
  `,
8025
- md: y`
8025
+ md: v`
8026
8026
  ${L[18]}
8027
8027
  `,
8028
- lg: y`
8028
+ lg: v`
8029
8029
  ${L[18]}
8030
8030
  `
8031
8031
  }, ac = He(
@@ -8044,18 +8044,18 @@ const Yg = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) =>
8044
8044
  optionsClassName: c,
8045
8045
  optionClassName: h
8046
8046
  }, f) => {
8047
- const p = fe(null), v = fe(null), x = fe(null), g = fe(null), C = qe(), [b, P] = Te(!1), [k, T] = Te(-1), E = r.find(($) => $.value === a);
8048
- Ae(() => {
8049
- b && v.current && (v.current.focus(), T(f0(a, r)));
8050
- }, [b, r, a]), Ae(() => {
8047
+ const p = fe(null), y = fe(null), x = fe(null), g = fe(null), C = qe(), [b, P] = ke(!1), [k, T] = ke(-1), E = r.find(($) => $.value === a);
8048
+ Te(() => {
8049
+ b && y.current && (y.current.focus(), T(f0(a, r)));
8050
+ }, [b, r, a]), Te(() => {
8051
8051
  h0(x, k);
8052
- }, [k]), Ae(() => {
8052
+ }, [k]), Te(() => {
8053
8053
  if (!b) return;
8054
8054
  const $ = (H) => {
8055
8055
  p.current && (p.current.contains(H.target) || P(!1));
8056
8056
  };
8057
8057
  return document.addEventListener("mousedown", $), () => document.removeEventListener("mousedown", $);
8058
- }, [b]), Ae(() => {
8058
+ }, [b]), Te(() => {
8059
8059
  b || requestAnimationFrame(() => {
8060
8060
  f?.current?.focus?.(), g.current?.focus();
8061
8061
  });
@@ -8115,7 +8115,7 @@ const Yg = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) =>
8115
8115
  /* @__PURE__ */ m(pn, { children: b && /* @__PURE__ */ m(
8116
8116
  y0,
8117
8117
  {
8118
- ref: v,
8118
+ ref: y,
8119
8119
  className: "custom-scrollbar",
8120
8120
  id: `${C}-listbox`,
8121
8121
  role: "listbox",
@@ -8233,8 +8233,8 @@ const w0 = S.textarea`
8233
8233
  if (o) {
8234
8234
  const f = h.target;
8235
8235
  f.style.height = "auto";
8236
- const p = f.scrollHeight, v = s * 24, x = i ? i * 24 : p;
8237
- p > x ? (f.style.height = `${x}px`, f.style.overflowY = "scroll") : (f.style.height = `${Math.max(p, v)}px`, f.style.overflowY = "hidden");
8236
+ const p = f.scrollHeight, y = s * 24, x = i ? i * 24 : p;
8237
+ p > x ? (f.style.height = `${x}px`, f.style.overflowY = "scroll") : (f.style.height = `${Math.max(p, y)}px`, f.style.overflowY = "hidden");
8238
8238
  }
8239
8239
  l?.(h);
8240
8240
  },
@@ -8265,45 +8265,44 @@ const C0 = S.div`
8265
8265
  }, ...l }),
8266
8266
  n ? /* @__PURE__ */ m(Y, { component: n, size: r, color: o }) : /* @__PURE__ */ m(Y, { component: Ws, size: r, color: o })
8267
8267
  ] }), E0 = {
8268
- default: y`
8268
+ default: v`
8269
8269
  min-height: 18rem;
8270
8270
  padding: 2rem;
8271
8271
  `,
8272
- compact: y`
8272
+ compact: v`
8273
8273
  min-height: 6rem;
8274
8274
  padding: 1rem;
8275
8275
  flex-direction: row;
8276
8276
  `
8277
8277
  }, P0 = {
8278
- sm: y`
8278
+ sm: v`
8279
8279
  ${L[12]}
8280
8280
  `,
8281
- md: y`
8281
+ md: v`
8282
8282
  ${L[16]}
8283
8283
  `,
8284
- lg: y`
8284
+ lg: v`
8285
8285
  ${L[20]}
8286
8286
  `
8287
- }, A0 = y`
8287
+ }, A0 = v`
8288
8288
  border: 2px dashed var(--color-main-input-borders);
8289
8289
  background-color: var(--color-main-white);
8290
- `, $0 = y`
8290
+ `, $0 = v`
8291
8291
  border-color: var(--color-main-blue-primary);
8292
8292
  background-color: var(--color-main-alternative-secondary);
8293
- `, D0 = y`
8293
+ `, D0 = v`
8294
8294
  border: 2px dashed var(--color-main-positive-state);
8295
8295
  background-color: var(--color-green-100);
8296
- `, M0 = y`
8296
+ `, M0 = v`
8297
8297
  border-color: var(--color-main-warning-state);
8298
8298
  background-color: var(--color-red-100);
8299
- `, V0 = y`
8299
+ `, V0 = v`
8300
8300
  border-color: var(--color-dark-200);
8301
8301
  cursor: not-allowed;
8302
8302
  opacity: 0.6;
8303
8303
  `, R0 = S.div`
8304
8304
  display: flex;
8305
8305
  flex-direction: column;
8306
- gap: 0.5rem;
8307
8306
  width: 100%;
8308
8307
  ${({ $size: e }) => P0[e]}
8309
8308
  `, I0 = S.div`
@@ -8325,7 +8324,7 @@ const C0 = S.div`
8325
8324
  ${({ $variant: e }) => E0[e]}
8326
8325
  ${A0}
8327
8326
 
8328
- ${({ $disabled: e }) => e ? V0 : y`
8327
+ ${({ $disabled: e }) => e ? V0 : v`
8329
8328
  &:hover {
8330
8329
  ${$0}
8331
8330
  }
@@ -8400,7 +8399,7 @@ const C0 = S.div`
8400
8399
  opacity: 0.5;
8401
8400
  }
8402
8401
  `, j0 = (e, t) => {
8403
- const [n, r] = Te(!1), o = je(
8402
+ const [n, r] = ke(!1), o = je(
8404
8403
  (l) => {
8405
8404
  l.preventDefault(), l.stopPropagation(), t || r(!0);
8406
8405
  },
@@ -8418,7 +8417,9 @@ const C0 = S.div`
8418
8417
  },
8419
8418
  [t, e]
8420
8419
  );
8421
- return {
8420
+ return Te(() => () => {
8421
+ n && r(!1);
8422
+ }, [n]), {
8422
8423
  isDragging: n,
8423
8424
  dragHandlers: {
8424
8425
  onDragEnter: o,
@@ -8433,7 +8434,7 @@ const C0 = S.div`
8433
8434
  multiple: n,
8434
8435
  onError: r
8435
8436
  }) => {
8436
- const [o, s] = Te(""), i = je(
8437
+ const [o, s] = ke(""), i = je(
8437
8438
  (l) => {
8438
8439
  s(l), r?.(l);
8439
8440
  },
@@ -8441,16 +8442,21 @@ const C0 = S.div`
8441
8442
  ), a = je(
8442
8443
  (l) => {
8443
8444
  if (e && l.some((u) => u.size > e)) {
8444
- const u = `File size exceeds maximum allowed size of ${Math.round(e / 1024)} KB or ${Math.round(e / 1048576)} MB`;
8445
- return i(u), !1;
8445
+ const u = e / 1048576, d = u >= 1 ? `File size exceeds maximum of ${u.toFixed(1)}MB` : `File size exceeds maximum of ${Math.round(e / 1024)}KB`;
8446
+ return i(d), !1;
8446
8447
  }
8447
8448
  if (t) {
8448
- const u = t.split(",").map((c) => c.trim());
8449
+ const u = t.split(",").map((c) => c.trim().toLowerCase());
8449
8450
  if (l.find((c) => {
8450
- const h = c.type, f = `.${c.name.split(".").pop()}`;
8451
- return !u.some(
8452
- (p) => p === h || p === f
8453
- );
8451
+ const h = c.type.toLowerCase(), f = `.${c.name.split(".").pop()?.toLowerCase()}`;
8452
+ return !u.some((p) => {
8453
+ if (p === h || p === f) return !0;
8454
+ if (p.endsWith("/*")) {
8455
+ const y = p.slice(0, -2);
8456
+ return h.startsWith(`${y}/`);
8457
+ }
8458
+ return !1;
8459
+ });
8454
8460
  })) {
8455
8461
  const c = `File type not accepted. Allowed: ${t}`;
8456
8462
  return i(c), !1;
@@ -8498,9 +8504,9 @@ const C0 = S.div`
8498
8504
  errorMessage: h = "",
8499
8505
  className: f = "",
8500
8506
  dropZoneContainerClassName: p = "",
8501
- size: v = "md"
8507
+ size: y = "md"
8502
8508
  }) => {
8503
- const x = s !== void 0, [g, C] = Te(i || []), b = x ? s : g, P = n * 1024 * 1024, {
8509
+ const x = s !== void 0, [g, C] = ke(i || []), b = x ? s : g, P = n * 1024 * 1024, {
8504
8510
  error: k,
8505
8511
  validateFiles: T,
8506
8512
  clearError: E
@@ -8514,7 +8520,7 @@ const C0 = S.div`
8514
8520
  const J = b[G], V = b.filter((R, z) => z !== G);
8515
8521
  x || C(V), u?.(J, G), a?.(V), V.length === 0 && E();
8516
8522
  }, { isDragging: _, dragHandlers: $ } = j0(A, d), H = c || !!k, U = h || k;
8517
- return /* @__PURE__ */ D(R0, { $size: v, className: f, children: [
8523
+ return /* @__PURE__ */ D(R0, { $size: y, className: f, children: [
8518
8524
  /* @__PURE__ */ D("label", { "aria-label": "File upload area", className: `p-4 ${p}`, children: [
8519
8525
  /* @__PURE__ */ D(
8520
8526
  I0,
@@ -8605,7 +8611,7 @@ const C0 = S.div`
8605
8611
  ${({ $hasError: e }) => e && Gt}
8606
8612
  ${({ $disabled: e }) => e && xt}
8607
8613
  ${({ $checked: e }) => e && K0}
8608
- `, K0 = y`
8614
+ `, K0 = v`
8609
8615
  background-color: var(--color-main-orange-primary);
8610
8616
  border-color: var(--color-main-orange-primary);
8611
8617
  `, Y0 = S.svg`
@@ -8631,7 +8637,7 @@ const C0 = S.div`
8631
8637
  checkboxClassName: i,
8632
8638
  ...a
8633
8639
  }, l) => {
8634
- const u = qe(), d = a.id ?? u, c = !!n, { size: h, ...f } = a, p = fe(null), v = je(
8640
+ const u = qe(), d = a.id ?? u, c = !!n, { size: h, ...f } = a, p = fe(null), y = je(
8635
8641
  (x) => {
8636
8642
  if (p.current = x, !!l)
8637
8643
  if (typeof l == "function")
@@ -8644,13 +8650,13 @@ const C0 = S.div`
8644
8650
  },
8645
8651
  [l]
8646
8652
  );
8647
- return Ae(() => {
8653
+ return Te(() => {
8648
8654
  p.current && (p.current.indeterminate = !!t);
8649
8655
  }, [t]), /* @__PURE__ */ D(H0, { className: s, children: [
8650
8656
  /* @__PURE__ */ m(
8651
8657
  U0,
8652
8658
  {
8653
- ref: v,
8659
+ ref: y,
8654
8660
  type: "checkbox",
8655
8661
  checked: c || !1,
8656
8662
  disabled: r,
@@ -8891,17 +8897,17 @@ const ty = (e, t, n, r, o, s, i = "text", a, l) => {
8891
8897
  const u = e.clipboardData.getData("text");
8892
8898
  if (!u) return;
8893
8899
  const d = s ?? o.length, c = [...n];
8894
- for (let v = 0; v < u.length; v++) {
8895
- const x = t + v;
8900
+ for (let y = 0; y < u.length; y++) {
8901
+ const x = t + y;
8896
8902
  if (x >= d) break;
8897
- const g = u[v];
8903
+ const g = u[y];
8898
8904
  i === "number" && !/^\d$/.test(g) || (c[x] = g);
8899
8905
  }
8900
8906
  r(c), a?.(c.join(""));
8901
- const h = c.findIndex((v) => v === ""), f = h !== -1 ? Math.min(Math.max(h, t), d - 1) : d - 1;
8907
+ const h = c.findIndex((y) => y === ""), f = h !== -1 ? Math.min(Math.max(h, t), d - 1) : d - 1;
8902
8908
  o[f].current?.focus();
8903
8909
  const p = c.join("");
8904
- c.every((v) => v !== "") && c.length >= d && l?.(p);
8910
+ c.every((y) => y !== "") && c.length >= d && l?.(p);
8905
8911
  }, oy = (e) => Array(e).fill(null).map(() => w.createRef()), q1 = (e, t, n = "text") => !(e.length !== t || n === "number" && !/^\d+$/.test(e)), iy = S.div`
8906
8912
  display: flex;
8907
8913
  gap: 8px;
@@ -8917,7 +8923,7 @@ const ty = (e, t, n, r, o, s, i = "text", a, l) => {
8917
8923
  className: a,
8918
8924
  pinInputClassName: l
8919
8925
  }) => {
8920
- const [u, d] = Te(Array(e).fill("")), c = _e(() => oy(e), [e]);
8926
+ const [u, d] = ke(Array(e).fill("")), c = _e(() => oy(e), [e]);
8921
8927
  return /* @__PURE__ */ m(iy, { className: a, children: Array.from({ length: e }, (h, f) => /* @__PURE__ */ m(
8922
8928
  uc,
8923
8929
  {
@@ -8975,7 +8981,7 @@ const sy = S.div`
8975
8981
  outline-color: var(--color-main-orange-primary);
8976
8982
  outline-offset: 2px;
8977
8983
  }
8978
- `, ly = y`
8984
+ `, ly = v`
8979
8985
  border-color: var(--color-main-orange-primary);
8980
8986
  `, cy = S.div`
8981
8987
  height: 1.5rem;
@@ -9132,7 +9138,7 @@ const Ks = S.div`
9132
9138
  pinType: h = "number",
9133
9139
  className: f,
9134
9140
  inputClassName: p,
9135
- labelClassName: v,
9141
+ labelClassName: y,
9136
9142
  messageErrorClassName: x,
9137
9143
  leftIcon: g,
9138
9144
  rightIcon: C,
@@ -9356,7 +9362,7 @@ const Ks = S.div`
9356
9362
  size: o,
9357
9363
  required: a,
9358
9364
  disabled: i,
9359
- className: v,
9365
+ className: y,
9360
9366
  children: n
9361
9367
  }
9362
9368
  ),
@@ -9498,14 +9504,14 @@ const Ks = S.div`
9498
9504
  const h = fe(null), f = fe(null), p = (x) => {
9499
9505
  o && x.target === x.currentTarget && t();
9500
9506
  };
9501
- Ae(() => {
9507
+ Te(() => {
9502
9508
  const x = (g) => {
9503
9509
  l && g.key === "Escape" && t();
9504
9510
  };
9505
9511
  return e ? (document.addEventListener("keydown", x), document.body.style.overflow = "hidden") : document.body.style.overflow = "", () => {
9506
9512
  document.removeEventListener("keydown", x), document.body.style.overflow = "";
9507
9513
  };
9508
- }, [e, t, l]), Ae(() => {
9514
+ }, [e, t, l]), Te(() => {
9509
9515
  if (!e) return;
9510
9516
  f.current = document.activeElement;
9511
9517
  const x = h.current, g = () => {
@@ -9543,7 +9549,7 @@ const Ks = S.div`
9543
9549
  window.clearTimeout(C), document.removeEventListener("keydown", P), f.current && f.current.focus();
9544
9550
  };
9545
9551
  }, [e]);
9546
- const v = /* @__PURE__ */ m(pn, { children: e && /* @__PURE__ */ m(py, { ...pc, onClick: p, children: /* @__PURE__ */ D(
9552
+ const y = /* @__PURE__ */ m(pn, { children: e && /* @__PURE__ */ m(py, { ...pc, onClick: p, children: /* @__PURE__ */ D(
9547
9553
  gy,
9548
9554
  {
9549
9555
  ...fy,
@@ -9571,7 +9577,7 @@ const Ks = S.div`
9571
9577
  ]
9572
9578
  }
9573
9579
  ) }) });
9574
- return typeof document > "u" ? v : Wc(v, document.body);
9580
+ return typeof document > "u" ? y : Wc(y, document.body);
9575
9581
  }, by = S.div`
9576
9582
  display: flex;
9577
9583
  align-items: center;
@@ -9701,7 +9707,7 @@ const Ks = S.div`
9701
9707
  showCloseButton: h = !0,
9702
9708
  closeOnBackdropClick: f = !1,
9703
9709
  containerClassName: p,
9704
- headerClassName: v,
9710
+ headerClassName: y,
9705
9711
  bodyClassName: x,
9706
9712
  footerClassName: g,
9707
9713
  initiallyConfirmed: C = !1,
@@ -9727,7 +9733,7 @@ const Ks = S.div`
9727
9733
  ariaDescribedBy: "tac-subtitle",
9728
9734
  className: `${p} !h-fit !max-w-[60rem]`,
9729
9735
  children: [
9730
- /* @__PURE__ */ m(xy, { showDivider: !0, className: v, children: /* @__PURE__ */ m(uo, { id: "tac-title", size: 20, children: r }) }),
9736
+ /* @__PURE__ */ m(xy, { showDivider: !0, className: y, children: /* @__PURE__ */ m(uo, { id: "tac-title", size: 20, children: r }) }),
9731
9737
  /* @__PURE__ */ D(Sy, { padded: !0, showBottomDivider: !0, className: x, children: [
9732
9738
  o && /* @__PURE__ */ m(Ye, { id: "tac-subtitle", size: 16, children: o }),
9733
9739
  s,
@@ -9751,7 +9757,7 @@ const Ks = S.div`
9751
9757
  }
9752
9758
  );
9753
9759
  }, gc = bt(void 0), ky = ({ children: e }) => {
9754
- const [t, n] = Te(!1), [r, o] = Te(!1);
9760
+ const [t, n] = ke(!1), [r, o] = ke(!1);
9755
9761
  return /* @__PURE__ */ m(
9756
9762
  gc.Provider,
9757
9763
  {
@@ -9769,7 +9775,7 @@ const Ks = S.div`
9769
9775
  if (!e)
9770
9776
  throw new Error("useSidebar must be used within a SidebarProvider");
9771
9777
  return e;
9772
- }, Ys = (e = [], t = []) => !t || t.length === 0 ? !1 : t.includes("all") ? !0 : t.some((n) => e.includes(n)), Ey = y`
9778
+ }, Ys = (e = [], t = []) => !t || t.length === 0 ? !1 : t.includes("all") ? !0 : t.some((n) => e.includes(n)), Ey = v`
9773
9779
  display: flex;
9774
9780
  align-items: center;
9775
9781
  justify-content: center;
@@ -9862,7 +9868,7 @@ const Ks = S.div`
9862
9868
  pointer-events: none;
9863
9869
  transition: transform 0.3s ease-out;
9864
9870
  `, bc = ({ item: e, userRoles: t, level: n = 0, activePath: r, onNavigate: o }) => {
9865
- const [s, i] = Te(!1), { isCollapsed: a, setIsMobileOpen: l } = yc(), u = _e(
9871
+ const [s, i] = ke(!1), { isCollapsed: a, setIsMobileOpen: l } = yc(), u = _e(
9866
9872
  () => (e.children || []).filter((C) => Ys(t, C.permissions)),
9867
9873
  [e.children, t]
9868
9874
  );
@@ -9872,7 +9878,7 @@ const Ks = S.div`
9872
9878
  )) return null;
9873
9879
  const c = u.length > 0, h = e.href || e.path || "", f = !!(h && r && r.startsWith(h)), p = () => {
9874
9880
  i((C) => !C);
9875
- }, v = () => {
9881
+ }, y = () => {
9876
9882
  e.href && o?.(e.href);
9877
9883
  }, x = async () => {
9878
9884
  if (e.path)
@@ -9916,7 +9922,7 @@ const Ks = S.div`
9916
9922
  Py,
9917
9923
  {
9918
9924
  type: "button",
9919
- onClick: v,
9925
+ onClick: y,
9920
9926
  $level: n,
9921
9927
  $collapsed: a,
9922
9928
  $active: f,
@@ -9929,7 +9935,7 @@ const Ks = S.div`
9929
9935
  Ay,
9930
9936
  {
9931
9937
  type: "button",
9932
- onClick: c ? p : e.path ? x : v,
9938
+ onClick: c ? p : e.path ? x : y,
9933
9939
  $level: n,
9934
9940
  $collapsed: a,
9935
9941
  $active: f,
@@ -10094,7 +10100,7 @@ const Ks = S.div`
10094
10100
  };
10095
10101
  xc.displayName = "Sidebar";
10096
10102
  const _y = {
10097
- underlined: y`
10103
+ underlined: v`
10098
10104
  color: var(--color-main-orange-primary);
10099
10105
  text-decoration-thickness: 1px;
10100
10106
  text-underline-offset: 2px;
@@ -10125,7 +10131,7 @@ const _y = {
10125
10131
  text-underline-offset: 2px;
10126
10132
  }
10127
10133
  `,
10128
- plain: y`
10134
+ plain: v`
10129
10135
  color: var(--color-main-orange-primary);
10130
10136
  text-decoration: none;
10131
10137
 
@@ -10156,7 +10162,7 @@ const _y = {
10156
10162
  text-underline-offset: 2px;
10157
10163
  }
10158
10164
  `
10159
- }, Hy = y`
10165
+ }, Hy = v`
10160
10166
  color: var(--color-dark-200);
10161
10167
  cursor: not-allowed;
10162
10168
  pointer-events: none;
@@ -10175,15 +10181,15 @@ const _y = {
10175
10181
  transform: none;
10176
10182
  }
10177
10183
  `, Uy = {
10178
- sm: y`
10184
+ sm: v`
10179
10185
  gap: 0.25rem;
10180
10186
  ${L[14]}
10181
10187
  `,
10182
- md: y`
10188
+ md: v`
10183
10189
  gap: 0.5rem;
10184
10190
  ${L[16]}
10185
10191
  `,
10186
- lg: y`
10192
+ lg: v`
10187
10193
  gap: 0.75rem;
10188
10194
  ${L[20]}
10189
10195
  `
@@ -10206,7 +10212,7 @@ const _y = {
10206
10212
  flex: 1 1 auto;
10207
10213
  min-width: 0;
10208
10214
  max-width: 18ch;
10209
- ${({ $truncate: e }) => e && y`
10215
+ ${({ $truncate: e }) => e && v`
10210
10216
  overflow: hidden;
10211
10217
  text-overflow: ellipsis;
10212
10218
  white-space: nowrap;
@@ -10228,7 +10234,7 @@ const _y = {
10228
10234
  iconSize: h = "tn",
10229
10235
  iconColor: f = "currentColor",
10230
10236
  truncate: p = !1,
10231
- "aria-label": v,
10237
+ "aria-label": y,
10232
10238
  "aria-describedby": x,
10233
10239
  onClick: g,
10234
10240
  ...C
@@ -10247,7 +10253,7 @@ const _y = {
10247
10253
  target: s || void 0,
10248
10254
  rel: i ?? (s === "_blank" ? "noopener noreferrer" : void 0),
10249
10255
  onClick: P,
10250
- "aria-label": v ?? r,
10256
+ "aria-label": y ?? r,
10251
10257
  "aria-describedby": x,
10252
10258
  "aria-disabled": l,
10253
10259
  tabIndex: l ? -1 : u ?? 0,
@@ -10281,7 +10287,7 @@ const _y = {
10281
10287
  );
10282
10288
  Yy.displayName = "Link";
10283
10289
  const Gy = {
10284
- default: y`
10290
+ default: v`
10285
10291
  thead tr:last-child th:first-child {
10286
10292
  border-top-left-radius: var(--border-radius-article);
10287
10293
  }
@@ -10298,7 +10304,7 @@ const Gy = {
10298
10304
  border-bottom-right-radius: var(--border-radius-article);
10299
10305
  }
10300
10306
  `,
10301
- striped: y`
10307
+ striped: v`
10302
10308
  border-radius: var(--border-radius-article);
10303
10309
  tbody tr:nth-child(even) td {
10304
10310
  background-color: var(--color-dark-200);
@@ -10324,11 +10330,11 @@ const Gy = {
10324
10330
  border-bottom-right-radius: var(--border-radius-article);
10325
10331
  }
10326
10332
  `
10327
- }, Xy = y`
10333
+ }, Xy = v`
10328
10334
  tbody tr:hover td {
10329
10335
  background-color: var(--color-main-alternative-secondary);
10330
10336
  }
10331
- `, Zy = y`
10337
+ `, Zy = v`
10332
10338
  @media (max-width: 768px) {
10333
10339
  font-size: 0.875rem;
10334
10340
 
@@ -10337,39 +10343,39 @@ const Gy = {
10337
10343
  padding: 0.5rem 0.75rem;
10338
10344
  }
10339
10345
  }
10340
- `, wc = y`
10346
+ `, wc = v`
10341
10347
  display: flex;
10342
10348
  align-items: center;
10343
10349
  gap: 0.5rem;
10344
10350
  width: 100%;
10345
10351
  overflow: hidden;
10346
10352
  `, Vt = {
10347
- sm: y`
10353
+ sm: v`
10348
10354
  padding: 0.5rem 1rem;
10349
10355
  min-height: 2.25rem;
10350
10356
  `,
10351
- md: y`
10357
+ md: v`
10352
10358
  padding: 0.625rem 1.25rem;
10353
10359
  min-height: 2.5rem;
10354
10360
  `,
10355
- lg: y`
10361
+ lg: v`
10356
10362
  padding: 0.75rem 1.5rem;
10357
10363
  min-height: 2.75rem;
10358
10364
  `
10359
- }, Sc = y`
10365
+ }, Sc = v`
10360
10366
  display: inline-flex;
10361
10367
  align-items: center;
10362
10368
  flex-shrink: 0;
10363
10369
  `, qy = {
10364
- sm: y`
10370
+ sm: v`
10365
10371
  ${Vt.sm}
10366
10372
  ${L[16]}
10367
10373
  `,
10368
- md: y`
10374
+ md: v`
10369
10375
  ${Vt.md}
10370
10376
  ${L[20]}
10371
10377
  `,
10372
- lg: y`
10378
+ lg: v`
10373
10379
  ${Vt.lg}
10374
10380
  ${L[24]}
10375
10381
  `
@@ -10384,7 +10390,7 @@ const Gy = {
10384
10390
  background-color: var(--color-purple-600);
10385
10391
  }
10386
10392
 
10387
- ${({ $active: e }) => e && y`
10393
+ ${({ $active: e }) => e && v`
10388
10394
  background-color: var(--color-blue-400);
10389
10395
  `}
10390
10396
  `, Qy = S.div`
@@ -10492,15 +10498,15 @@ const Gy = {
10492
10498
  };
10493
10499
  Cc.displayName = "TableHeaderCell";
10494
10500
  const r1 = {
10495
- sm: y`
10501
+ sm: v`
10496
10502
  ${Vt.sm}
10497
10503
  ${L[14]}
10498
10504
  `,
10499
- md: y`
10505
+ md: v`
10500
10506
  ${Vt.md}
10501
10507
  ${L[14]}
10502
10508
  `,
10503
- lg: y`
10509
+ lg: v`
10504
10510
  ${Vt.lg}
10505
10511
  ${L[16]}
10506
10512
  `
@@ -10514,14 +10520,14 @@ const r1 = {
10514
10520
  transition: background-color 0.3s ease-out;
10515
10521
  width: ${({ $width: e }) => e ? typeof e == "number" ? `${e}px` : e : "auto"};
10516
10522
 
10517
- ${({ $truncate: e }) => e && y`
10523
+ ${({ $truncate: e }) => e && v`
10518
10524
  max-width: 200px;
10519
10525
  overflow: hidden;
10520
10526
  text-overflow: ellipsis;
10521
10527
  white-space: nowrap;
10522
10528
  `}
10523
10529
 
10524
- ${({ $variant: e }) => e === "numeric" && y`
10530
+ ${({ $variant: e }) => e === "numeric" && v`
10525
10531
  font-variant-numeric: tabular-nums;
10526
10532
  font-family: ui-monospace, monospace;
10527
10533
  `}
@@ -10577,7 +10583,7 @@ const a1 = S.table`
10577
10583
  ${Zy}
10578
10584
  ${Xy}
10579
10585
  `, l1 = S.thead`
10580
- ${({ $sticky: e }) => e && y`
10586
+ ${({ $sticky: e }) => e && v`
10581
10587
  position: sticky;
10582
10588
  top: 0;
10583
10589
  z-index: 10;
@@ -10740,14 +10746,14 @@ const d1 = S.div`
10740
10746
  onLogout: n,
10741
10747
  menuItems: r = []
10742
10748
  }) => {
10743
- const [o, s] = Te(!1), i = fe(null);
10744
- Ae(() => {
10749
+ const [o, s] = ke(!1), i = fe(null);
10750
+ Te(() => {
10745
10751
  if (!o) return;
10746
10752
  const d = (c) => {
10747
10753
  i.current && !i.current.contains(c.target) && s(!1);
10748
10754
  };
10749
10755
  return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
10750
- }, [o]), Ae(() => {
10756
+ }, [o]), Te(() => {
10751
10757
  if (!o) return;
10752
10758
  const d = (c) => {
10753
10759
  c.key === "Escape" && s(!1);
@@ -11086,19 +11092,19 @@ const on = {
11086
11092
 
11087
11093
  ${({ $size: e }) => on[e].fontSize}
11088
11094
 
11089
- ${({ $isCompleted: e, $isActive: t }) => t ? y`
11095
+ ${({ $isCompleted: e, $isActive: t }) => t ? v`
11090
11096
  background-color: var(--color-main-blue-primary);
11091
11097
  color: var(--color-main-white);
11092
11098
  box-shadow: var(--shadow-hover-black-button);
11093
- ` : e ? y`
11099
+ ` : e ? v`
11094
11100
  background-color: var(--color-main-blue-primary);
11095
11101
  color: var(--color-main-white);
11096
- ` : y`
11102
+ ` : v`
11097
11103
  background-color: var(--color-dark-300);
11098
11104
  color: var(--color-main-white);
11099
11105
  `}
11100
11106
 
11101
- ${({ $isClickable: e }) => e && y`
11107
+ ${({ $isClickable: e }) => e && v`
11102
11108
  cursor: pointer;
11103
11109
 
11104
11110
  &:hover {
@@ -11115,10 +11121,10 @@ const on = {
11115
11121
  background-color: ${({ $isCompleted: e }) => e ? "var(--color-main-blue-primary)" : "var(--color-dark-300)"};
11116
11122
  transition: background-color 0.3s ease;
11117
11123
 
11118
- ${({ $orientation: e, $size: t }) => e === "vertical" ? y`
11124
+ ${({ $orientation: e, $size: t }) => e === "vertical" ? v`
11119
11125
  width: ${on[t].line};
11120
11126
  height: 2rem;
11121
- ` : y`
11127
+ ` : v`
11122
11128
  height: ${on[t].line};
11123
11129
  flex: 1;
11124
11130
  min-width: 2rem;