@eliseubatista99/react-scaffold-core 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as p from "react";
2
- import R, { useEffect as Tt, useState as ur, useMemo as cr, useContext as Ge, forwardRef as fr } from "react";
2
+ import w, { useEffect as Tt, useState as ur, useMemo as cr, useContext as Ge, forwardRef as fr } from "react";
3
3
  var be = { exports: {} }, se = {};
4
4
  /**
5
5
  * @license React
@@ -61,7 +61,7 @@ function hr() {
61
61
  return "Suspense";
62
62
  case A:
63
63
  return "SuspenseList";
64
- case $:
64
+ case _:
65
65
  return "Activity";
66
66
  }
67
67
  if (typeof y == "object")
@@ -70,7 +70,7 @@ function hr() {
70
70
  ), y.$$typeof) {
71
71
  case f:
72
72
  return "Portal";
73
- case w:
73
+ case R:
74
74
  return (y.displayName || "Context") + ".Provider";
75
75
  case b:
76
76
  return (y._context.displayName || "Context") + ".Consumer";
@@ -236,7 +236,7 @@ React keys must be passed directly to JSX without using spread:
236
236
  function g(y) {
237
237
  typeof y == "object" && y !== null && y.$$typeof === x && y._store && (y._store.validated = 1);
238
238
  }
239
- var m = R, x = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), w = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, at = Object.prototype.hasOwnProperty, sr = Array.isArray, Fe = console.createTask ? console.createTask : function() {
239
+ var m = w, x = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), R = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, at = Object.prototype.hasOwnProperty, sr = Array.isArray, Fe = console.createTask ? console.createTask : function() {
240
240
  return null;
241
241
  };
242
242
  m = {
@@ -280,7 +280,7 @@ function pr() {
280
280
  return dt || (dt = 1, process.env.NODE_ENV === "production" ? be.exports = dr() : be.exports = hr()), be.exports;
281
281
  }
282
282
  var E = pr();
283
- const Va = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
283
+ const Ya = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
284
284
  "button",
285
285
  {
286
286
  style: {
@@ -299,11 +299,11 @@ const Va = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
299
299
  onClick: () => t?.(),
300
300
  children: e
301
301
  }
302
- ), Ya = (e) => Tt(e, []), mr = () => {
303
- const [e, t] = R.useState(
302
+ ), qa = (e) => Tt(e, []), mr = () => {
303
+ const [e, t] = w.useState(
304
304
  {}
305
- ), [r, a] = R.useState(!1);
306
- return R.useEffect(() => {
305
+ ), [r, a] = w.useState(!1);
306
+ return w.useEffect(() => {
307
307
  const n = (l) => {
308
308
  t({ x: l.clientX, y: l.clientY });
309
309
  }, i = (l) => {
@@ -324,9 +324,9 @@ const Va = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
324
324
  onDragStart: r,
325
325
  onDragEnd: a
326
326
  }) => {
327
- const n = R.useRef(!1), i = R.useRef(!1), { pointerPosition: o, isPointerDown: l } = mr(), s = R.useRef({
327
+ const n = w.useRef(!1), i = w.useRef(!1), { pointerPosition: o, isPointerDown: l } = mr(), s = w.useRef({
328
328
  isDragging: !1
329
- }), u = R.useCallback(
329
+ }), u = w.useCallback(
330
330
  (f) => {
331
331
  if (!e || !e.current || !s.current)
332
332
  return;
@@ -334,21 +334,21 @@ const Va = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
334
334
  return h.posY = f.y, h.posX = f.x, s.current.startPosX && s.current.posX && (h.distanceX = s.current.startPosX - s.current.posX), s.current.startPosY && s.current.posY && (h.distanceY = -(s.current.startPosY - s.current.posY)), h;
335
335
  },
336
336
  []
337
- ), c = R.useCallback(
337
+ ), c = w.useCallback(
338
338
  (f) => {
339
339
  f.preventDefault(), f.stopPropagation(), s.current.isDragging = !0, s.current.startPosY = f.clientY, s.current.startPosX = f.clientX;
340
340
  const h = u({ x: f.clientX, y: f.clientY });
341
341
  h && (s.current = h, r?.(h));
342
342
  },
343
343
  [u]
344
- ), g = R.useCallback(
344
+ ), g = w.useCallback(
345
345
  (f) => {
346
346
  s.current.isDragging = !1;
347
347
  const h = u(o);
348
348
  h && (a?.(h), h.startPosX = void 0, h.startPosY = void 0, s.current = h);
349
349
  },
350
350
  [u, o]
351
- ), m = R.useCallback(
351
+ ), m = w.useCallback(
352
352
  (f) => {
353
353
  if (console.debug(
354
354
  "useDrag > onPointerMove > Is Dragging >",
@@ -359,21 +359,21 @@ const Va = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
359
359
  console.debug("useDrag > onPointerMove > Drag Result >", h), h && (t?.(h), s.current = h);
360
360
  },
361
361
  [u, o]
362
- ), x = R.useCallback(async () => {
362
+ ), x = w.useCallback(async () => {
363
363
  if (!n.current) {
364
364
  for (; !e?.current; )
365
365
  await new Promise((f) => setTimeout(f, 300));
366
366
  n.current = !0, e.current.onpointerdown = c, e.current.style.touchAction = "none";
367
367
  }
368
368
  }, [e?.current, c]);
369
- R.useEffect(() => {
369
+ w.useEffect(() => {
370
370
  x();
371
- }, [x]), R.useEffect(() => {
371
+ }, [x]), w.useEffect(() => {
372
372
  m();
373
- }, [o]), R.useEffect(() => {
373
+ }, [o]), w.useEffect(() => {
374
374
  l !== i.current && (i.current = l, l || g());
375
375
  }, [l, i.current]);
376
- }, qa = () => {
376
+ }, Xa = () => {
377
377
  const e = (r, a) => {
378
378
  let n = 0, i = `${r}?`;
379
379
  for (const o in a) {
@@ -393,7 +393,7 @@ const Va = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
393
393
  lg: 991,
394
394
  xl: 1200,
395
395
  xxl: 1440
396
- }, Xa = (e) => {
396
+ }, Ga = (e) => {
397
397
  const t = {
398
398
  ...yr,
399
399
  ...e?.breakpointConfiguration
@@ -408,10 +408,19 @@ const Va = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
408
408
  }, vr = (e, t) => e < t.sm ? "xs" : e < t.md ? "sm" : e < t.lg ? "md" : e < t.xl ? "lg" : e < t.xxl ? "xl" : "xxl", xr = (e, t) => e <= t.sm ? "mobile" : e <= t.md ? "tablet" : "desktop", ht = (e) => {
409
409
  const t = window.innerWidth, r = window.innerHeight, a = vr(t, e), n = xr(t, e);
410
410
  return { currentWidth: t, currentHeight: r, currentBreakpoint: a, currentSize: n };
411
- }, Ga = (e) => {
412
- const t = e.translations, r = e.language, a = (i) => i[r];
411
+ }, Ja = (e) => {
412
+ const t = e.translations, r = e.language, a = (i) => {
413
+ if (i)
414
+ return i[r];
415
+ };
413
416
  return {
414
- t: (i) => t[i] ? a(t[i]) : i,
417
+ t: (i) => {
418
+ if (t[i]) {
419
+ const o = a(t[i]);
420
+ return o ?? i;
421
+ }
422
+ return i;
423
+ },
415
424
  getTranslation: a
416
425
  };
417
426
  };
@@ -434,15 +443,15 @@ function br() {
434
443
  const b = m.indexOf("=", d);
435
444
  if (b === -1)
436
445
  break;
437
- const w = m.indexOf(";", d), T = w === -1 ? h : w;
446
+ const R = m.indexOf(";", d), T = R === -1 ? h : R;
438
447
  if (b > T) {
439
448
  d = m.lastIndexOf(";", b - 1) + 1;
440
449
  continue;
441
450
  }
442
451
  const I = l(m, d, b), A = s(m, b, I), C = m.slice(I, A);
443
452
  if (f[C] === void 0) {
444
- let z = l(m, b + 1, T), $ = s(m, T, z);
445
- const M = v(m.slice(z, $));
453
+ let z = l(m, b + 1, T), _ = s(m, T, z);
454
+ const M = v(m.slice(z, _));
446
455
  f[C] = M;
447
456
  }
448
457
  d = T + 1;
@@ -573,7 +582,7 @@ function wr(e = {}) {
573
582
  e
574
583
  );
575
584
  }
576
- function L(e, t) {
585
+ function $(e, t) {
577
586
  if (e === !1 || e === null || typeof e > "u")
578
587
  throw new Error(t);
579
588
  }
@@ -642,9 +651,9 @@ function Cr(e, t, r, a = {}) {
642
651
  l = "PUSH";
643
652
  let b = Be(h.location, v, d);
644
653
  u = c() + 1;
645
- let w = gt(b, u), T = h.createHref(b);
654
+ let R = gt(b, u), T = h.createHref(b);
646
655
  try {
647
- o.pushState(w, "", T);
656
+ o.pushState(R, "", T);
648
657
  } catch (I) {
649
658
  if (I instanceof DOMException && I.name === "DataCloneError")
650
659
  throw I;
@@ -656,8 +665,8 @@ function Cr(e, t, r, a = {}) {
656
665
  l = "REPLACE";
657
666
  let b = Be(h.location, v, d);
658
667
  u = c();
659
- let w = gt(b, u), T = h.createHref(b);
660
- o.replaceState(w, "", T), i && s && s({ action: l, location: h.location, delta: 0 });
668
+ let R = gt(b, u), T = h.createHref(b);
669
+ o.replaceState(R, "", T), i && s && s({ action: l, location: h.location, delta: 0 });
661
670
  }
662
671
  function f(v) {
663
672
  return kr(v);
@@ -698,7 +707,7 @@ function Cr(e, t, r, a = {}) {
698
707
  }
699
708
  function kr(e, t = !1) {
700
709
  let r = "http://localhost";
701
- typeof window < "u" && (r = window.location.origin !== "null" ? window.location.origin : window.location.href), L(r, "No window.location.(origin|href) available to create URL");
710
+ typeof window < "u" && (r = window.location.origin !== "null" ? window.location.origin : window.location.href), $(r, "No window.location.(origin|href) available to create URL");
702
711
  let a = typeof e == "string" ? e : de(e);
703
712
  return a = a.replace(/ $/, "%20"), !t && a.startsWith("//") && (a = r + a), new URL(a, r);
704
713
  }
@@ -730,19 +739,19 @@ function At(e, t = [], r = [], a = "") {
730
739
  childrenIndex: o,
731
740
  route: i
732
741
  };
733
- s.relativePath.startsWith("/") && (L(
742
+ s.relativePath.startsWith("/") && ($(
734
743
  s.relativePath.startsWith(a),
735
744
  `Absolute route path "${s.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
736
745
  ), s.relativePath = s.relativePath.slice(a.length));
737
746
  let u = J([a, s.relativePath]), c = r.concat(s);
738
- i.children && i.children.length > 0 && (L(
747
+ i.children && i.children.length > 0 && ($(
739
748
  // Our types know better, but runtime JS may not!
740
749
  // @ts-expect-error
741
750
  i.index !== !0,
742
751
  `Index routes must not have child routes. Please remove all child routes from route path "${u}".`
743
752
  ), At(i.children, t, c, u)), !(i.path == null && !i.index) && t.push({
744
753
  path: u,
745
- score: _r(u, i.index),
754
+ score: Lr(u, i.index),
746
755
  routesMeta: c
747
756
  });
748
757
  };
@@ -771,21 +780,21 @@ function Ot(e) {
771
780
  }
772
781
  function Sr(e) {
773
782
  e.sort(
774
- (t, r) => t.score !== r.score ? r.score - t.score : $r(
783
+ (t, r) => t.score !== r.score ? r.score - t.score : _r(
775
784
  t.routesMeta.map((a) => a.childrenIndex),
776
785
  r.routesMeta.map((a) => a.childrenIndex)
777
786
  )
778
787
  );
779
788
  }
780
- var Pr = /^:[\w-]+$/, Tr = 3, Ir = 2, Ar = 1, Or = 10, Lr = -2, yt = (e) => e === "*";
781
- function _r(e, t) {
789
+ var Pr = /^:[\w-]+$/, Tr = 3, Ir = 2, Ar = 1, Or = 10, $r = -2, yt = (e) => e === "*";
790
+ function Lr(e, t) {
782
791
  let r = e.split("/"), a = r.length;
783
- return r.some(yt) && (a += Lr), t && (a += Ir), r.filter((n) => !yt(n)).reduce(
792
+ return r.some(yt) && (a += $r), t && (a += Ir), r.filter((n) => !yt(n)).reduce(
784
793
  (n, i) => n + (Pr.test(i) ? Tr : i === "" ? Ar : Or),
785
794
  a
786
795
  );
787
796
  }
788
- function $r(e, t) {
797
+ function _r(e, t) {
789
798
  return e.length === t.length && e.slice(0, -1).every((a, n) => a === t[n]) ? (
790
799
  // If two routes are siblings, we should try to match the earlier sibling
791
800
  // first. This allows people to have fine-grained control over the matching
@@ -908,21 +917,21 @@ function Hr(e) {
908
917
  (t, r) => r === 0 || t.route.path && t.route.path.length > 0
909
918
  );
910
919
  }
911
- function Lt(e) {
920
+ function $t(e) {
912
921
  let t = Hr(e);
913
922
  return t.map(
914
923
  (r, a) => a === t.length - 1 ? r.pathname : r.pathnameBase
915
924
  );
916
925
  }
917
- function _t(e, t, r, a = !1) {
926
+ function Lt(e, t, r, a = !1) {
918
927
  let n;
919
- typeof e == "string" ? n = ae(e) : (n = { ...e }, L(
928
+ typeof e == "string" ? n = ae(e) : (n = { ...e }, $(
920
929
  !n.pathname || !n.pathname.includes("?"),
921
930
  He("?", "pathname", "search", n)
922
- ), L(
931
+ ), $(
923
932
  !n.pathname || !n.pathname.includes("#"),
924
933
  He("#", "pathname", "hash", n)
925
- ), L(
934
+ ), $(
926
935
  !n.search || !n.search.includes("#"),
927
936
  He("#", "search", "hash", n)
928
937
  ));
@@ -946,18 +955,18 @@ var J = (e) => e.join("/").replace(/\/\/+/g, "/"), zr = (e) => e.replace(/\/+$/,
946
955
  function Wr(e) {
947
956
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
948
957
  }
949
- var $t = [
958
+ var _t = [
950
959
  "POST",
951
960
  "PUT",
952
961
  "PATCH",
953
962
  "DELETE"
954
963
  ];
955
964
  new Set(
956
- $t
965
+ _t
957
966
  );
958
967
  var Vr = [
959
968
  "GET",
960
- ...$t
969
+ ..._t
961
970
  ];
962
971
  new Set(Vr);
963
972
  var ie = p.createContext(null);
@@ -991,7 +1000,7 @@ Z.displayName = "Route";
991
1000
  var Je = p.createContext(null);
992
1001
  Je.displayName = "RouteError";
993
1002
  function Xr(e, { relative: t } = {}) {
994
- L(
1003
+ $(
995
1004
  ye(),
996
1005
  // TODO: This error is probably because they somehow have 2 versions of the
997
1006
  // router loaded. We can help them understand how to avoid that.
@@ -1004,7 +1013,7 @@ function ye() {
1004
1013
  return p.useContext(ge) != null;
1005
1014
  }
1006
1015
  function ee() {
1007
- return L(
1016
+ return $(
1008
1017
  ye(),
1009
1018
  // TODO: This error is probably because they somehow have 2 versions of the
1010
1019
  // router loaded. We can help them understand how to avoid that.
@@ -1020,13 +1029,13 @@ function Nt() {
1020
1029
  return e ? ln() : Gr();
1021
1030
  }
1022
1031
  function Gr() {
1023
- L(
1032
+ $(
1024
1033
  ye(),
1025
1034
  // TODO: This error is probably because they somehow have 2 versions of the
1026
1035
  // router loaded. We can help them understand how to avoid that.
1027
1036
  "useNavigate() may be used only in the context of a <Router> component."
1028
1037
  );
1029
- let e = p.useContext(ie), { basename: t, navigator: r } = p.useContext(G), { matches: a } = p.useContext(Z), { pathname: n } = ee(), i = JSON.stringify(Lt(a)), o = p.useRef(!1);
1038
+ let e = p.useContext(ie), { basename: t, navigator: r } = p.useContext(G), { matches: a } = p.useContext(Z), { pathname: n } = ee(), i = JSON.stringify($t(a)), o = p.useRef(!1);
1030
1039
  return jt(() => {
1031
1040
  o.current = !0;
1032
1041
  }), p.useCallback(
@@ -1036,7 +1045,7 @@ function Gr() {
1036
1045
  r.go(s);
1037
1046
  return;
1038
1047
  }
1039
- let c = _t(
1048
+ let c = Lt(
1040
1049
  s,
1041
1050
  JSON.parse(i),
1042
1051
  n,
@@ -1059,9 +1068,9 @@ function Gr() {
1059
1068
  }
1060
1069
  p.createContext(null);
1061
1070
  function ve(e, { relative: t } = {}) {
1062
- let { matches: r } = p.useContext(Z), { pathname: a } = ee(), n = JSON.stringify(Lt(r));
1071
+ let { matches: r } = p.useContext(Z), { pathname: a } = ee(), n = JSON.stringify($t(r));
1063
1072
  return p.useMemo(
1064
- () => _t(
1073
+ () => Lt(
1065
1074
  e,
1066
1075
  JSON.parse(n),
1067
1076
  a,
@@ -1074,7 +1083,7 @@ function Jr(e, t) {
1074
1083
  return Mt(e, t);
1075
1084
  }
1076
1085
  function Mt(e, t, r, a) {
1077
- L(
1086
+ $(
1078
1087
  ye(),
1079
1088
  // TODO: This error is probably because they somehow have 2 versions of the
1080
1089
  // router loaded. We can help them understand how to avoid that.
@@ -1094,7 +1103,7 @@ Please change the parent <Route path="${d}"> to <Route path="${d === "/" ? "*" :
1094
1103
  let g = ee(), m;
1095
1104
  if (t) {
1096
1105
  let d = typeof t == "string" ? ae(t) : t;
1097
- L(
1106
+ $(
1098
1107
  u === "/" || d.pathname?.startsWith(u),
1099
1108
  `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${d.pathname}" was given in the \`location\` prop.`
1100
1109
  ), m = d;
@@ -1218,7 +1227,7 @@ function tn(e, t = [], r = null, a = null) {
1218
1227
  let s = n.findIndex(
1219
1228
  (u) => u.route.id && i?.[u.route.id] !== void 0
1220
1229
  );
1221
- L(
1230
+ $(
1222
1231
  s >= 0,
1223
1232
  `Could not find a matching route for errors on route IDs: ${Object.keys(
1224
1233
  i
@@ -1280,19 +1289,19 @@ function Ke(e) {
1280
1289
  }
1281
1290
  function rn(e) {
1282
1291
  let t = p.useContext(ie);
1283
- return L(t, Ke(e)), t;
1292
+ return $(t, Ke(e)), t;
1284
1293
  }
1285
1294
  function nn(e) {
1286
1295
  let t = p.useContext(Ae);
1287
- return L(t, Ke(e)), t;
1296
+ return $(t, Ke(e)), t;
1288
1297
  }
1289
1298
  function an(e) {
1290
1299
  let t = p.useContext(Z);
1291
- return L(t, Ke(e)), t;
1300
+ return $(t, Ke(e)), t;
1292
1301
  }
1293
1302
  function Ze(e) {
1294
1303
  let t = an(e), r = t.matches[t.matches.length - 1];
1295
- return L(
1304
+ return $(
1296
1305
  r.route.id,
1297
1306
  `${e} can only be used on routes that contain a unique "id"`
1298
1307
  ), r.route.id;
@@ -1343,7 +1352,7 @@ function un({
1343
1352
  return Mt(e, void 0, r, t);
1344
1353
  }
1345
1354
  function zt(e) {
1346
- L(
1355
+ $(
1347
1356
  !1,
1348
1357
  "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."
1349
1358
  );
@@ -1356,7 +1365,7 @@ function cn({
1356
1365
  navigator: n,
1357
1366
  static: i = !1
1358
1367
  }) {
1359
- L(
1368
+ $(
1360
1369
  !ye(),
1361
1370
  "You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
1362
1371
  );
@@ -1413,10 +1422,10 @@ function We(e, t = []) {
1413
1422
  );
1414
1423
  return;
1415
1424
  }
1416
- L(
1425
+ $(
1417
1426
  a.type === zt,
1418
1427
  `[${typeof a.type == "string" ? a.type : a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`
1419
- ), L(
1428
+ ), $(
1420
1429
  !a.props.index || !a.props.children,
1421
1430
  "An index route cannot have child routes."
1422
1431
  );
@@ -1704,9 +1713,9 @@ function On({
1704
1713
  () => It(r.routes, e, r.basename),
1705
1714
  [r.routes, e, r.basename]
1706
1715
  );
1707
- return a ? /* @__PURE__ */ p.createElement(_n, { page: e, matches: a, ...t }) : null;
1716
+ return a ? /* @__PURE__ */ p.createElement(Ln, { page: e, matches: a, ...t }) : null;
1708
1717
  }
1709
- function Ln(e) {
1718
+ function $n(e) {
1710
1719
  let { manifest: t, routeModules: r } = Bt(), [a, n] = p.useState([]);
1711
1720
  return p.useEffect(() => {
1712
1721
  let i = !1;
@@ -1719,7 +1728,7 @@ function Ln(e) {
1719
1728
  };
1720
1729
  }, [e, t, r]), a;
1721
1730
  }
1722
- function _n({
1731
+ function Ln({
1723
1732
  page: e,
1724
1733
  matches: t,
1725
1734
  ...r
@@ -1750,7 +1759,7 @@ function _n({
1750
1759
  let f = /* @__PURE__ */ new Set(), h = !1;
1751
1760
  if (t.forEach((d) => {
1752
1761
  let b = n.routes[d.route.id];
1753
- !b || !b.hasLoader || (!u.some((w) => w.route.id === d.route.id) && d.route.id in l && i[d.route.id]?.shouldRevalidate || b.hasClientLoader ? h = !0 : f.add(d.route.id));
1762
+ !b || !b.hasLoader || (!u.some((R) => R.route.id === d.route.id) && d.route.id in l && i[d.route.id]?.shouldRevalidate || b.hasClientLoader ? h = !0 : f.add(d.route.id));
1754
1763
  }), f.size === 0)
1755
1764
  return [];
1756
1765
  let v = Tn(e, o);
@@ -1770,14 +1779,14 @@ function _n({
1770
1779
  ]), m = p.useMemo(
1771
1780
  () => Cn(c, n),
1772
1781
  [c, n]
1773
- ), x = Ln(c);
1782
+ ), x = $n(c);
1774
1783
  return /* @__PURE__ */ p.createElement(p.Fragment, null, g.map((f) => /* @__PURE__ */ p.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...r })), m.map((f) => /* @__PURE__ */ p.createElement("link", { key: f, rel: "modulepreload", href: f, ...r })), x.map(({ key: f, link: h }) => (
1775
1784
  // these don't spread `linkProps` because they are full link descriptors
1776
1785
  // already with their own props
1777
1786
  /* @__PURE__ */ p.createElement("link", { key: f, ...h })
1778
1787
  )));
1779
1788
  }
1780
- function $n(...e) {
1789
+ function _n(...e) {
1781
1790
  return (t) => {
1782
1791
  e.forEach((r) => {
1783
1792
  typeof r == "function" ? r(t) : r != null && (r.current = t);
@@ -1834,15 +1843,15 @@ var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Yt = p.forwardRef(
1834
1843
  let { basename: f } = p.useContext(G), h = typeof u == "string" && Vt.test(u), v, d = !1;
1835
1844
  if (typeof u == "string" && h && (v = u, Wt))
1836
1845
  try {
1837
- let $ = new URL(window.location.href), M = u.startsWith("//") ? new URL($.protocol + u) : new URL(u), B = K(M.pathname, f);
1838
- M.origin === $.origin && B != null ? u = B + M.search + M.hash : d = !0;
1846
+ let _ = new URL(window.location.href), M = u.startsWith("//") ? new URL(_.protocol + u) : new URL(u), B = K(M.pathname, f);
1847
+ M.origin === _.origin && B != null ? u = B + M.search + M.hash : d = !0;
1839
1848
  } catch {
1840
1849
  X(
1841
1850
  !1,
1842
1851
  `<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1843
1852
  );
1844
1853
  }
1845
- let b = Xr(u, { relative: n }), [w, T, I] = An(
1854
+ let b = Xr(u, { relative: n }), [R, T, I] = An(
1846
1855
  a,
1847
1856
  m
1848
1857
  ), A = Mn(u, {
@@ -1853,8 +1862,8 @@ var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Yt = p.forwardRef(
1853
1862
  relative: n,
1854
1863
  viewTransition: g
1855
1864
  });
1856
- function C($) {
1857
- t && t($), $.defaultPrevented || A($);
1865
+ function C(_) {
1866
+ t && t(_), _.defaultPrevented || A(_);
1858
1867
  }
1859
1868
  let z = (
1860
1869
  // eslint-disable-next-line jsx-a11y/anchor-has-content
@@ -1865,13 +1874,13 @@ var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Yt = p.forwardRef(
1865
1874
  ...I,
1866
1875
  href: v || b,
1867
1876
  onClick: d || i ? t : C,
1868
- ref: $n(x, T),
1877
+ ref: _n(x, T),
1869
1878
  target: s,
1870
1879
  "data-discover": !h && r === "render" ? "true" : void 0
1871
1880
  }
1872
1881
  )
1873
1882
  );
1874
- return w && !h ? /* @__PURE__ */ p.createElement(p.Fragment, null, z, /* @__PURE__ */ p.createElement(On, { page: b })) : z;
1883
+ return R && !h ? /* @__PURE__ */ p.createElement(p.Fragment, null, z, /* @__PURE__ */ p.createElement(On, { page: b })) : z;
1875
1884
  }
1876
1885
  );
1877
1886
  Yt.displayName = "Link";
@@ -1889,15 +1898,15 @@ var Fn = p.forwardRef(
1889
1898
  }, c) {
1890
1899
  let g = ve(o, { relative: u.relative }), m = ee(), x = p.useContext(Ae), { navigator: f, basename: h } = p.useContext(G), v = x != null && // Conditional usage is OK here because the usage of a data router is static
1891
1900
  // eslint-disable-next-line react-hooks/rules-of-hooks
1892
- Wn(g) && l === !0, d = f.encodeLocation ? f.encodeLocation(g).pathname : g.pathname, b = m.pathname, w = x && x.navigation && x.navigation.location ? x.navigation.location.pathname : null;
1893
- r || (b = b.toLowerCase(), w = w ? w.toLowerCase() : null, d = d.toLowerCase()), w && h && (w = K(w, h) || w);
1901
+ Wn(g) && l === !0, d = f.encodeLocation ? f.encodeLocation(g).pathname : g.pathname, b = m.pathname, R = x && x.navigation && x.navigation.location ? x.navigation.location.pathname : null;
1902
+ r || (b = b.toLowerCase(), R = R ? R.toLowerCase() : null, d = d.toLowerCase()), R && h && (R = K(R, h) || R);
1894
1903
  const T = d !== "/" && d.endsWith("/") ? d.length - 1 : d.length;
1895
- let I = b === d || !n && b.startsWith(d) && b.charAt(T) === "/", A = w != null && (w === d || !n && w.startsWith(d) && w.charAt(d.length) === "/"), C = {
1904
+ let I = b === d || !n && b.startsWith(d) && b.charAt(T) === "/", A = R != null && (R === d || !n && R.startsWith(d) && R.charAt(d.length) === "/"), C = {
1896
1905
  isActive: I,
1897
1906
  isPending: A,
1898
1907
  isTransitioning: v
1899
- }, z = I ? t : void 0, $;
1900
- typeof a == "function" ? $ = a(C) : $ = [
1908
+ }, z = I ? t : void 0, _;
1909
+ typeof a == "function" ? _ = a(C) : _ = [
1901
1910
  a,
1902
1911
  I ? "active" : null,
1903
1912
  A ? "pending" : null,
@@ -1909,7 +1918,7 @@ var Fn = p.forwardRef(
1909
1918
  {
1910
1919
  ...u,
1911
1920
  "aria-current": z,
1912
- className: $,
1921
+ className: _,
1913
1922
  ref: c,
1914
1923
  style: M,
1915
1924
  to: o,
@@ -1936,11 +1945,11 @@ var jn = p.forwardRef(
1936
1945
  viewTransition: g,
1937
1946
  ...m
1938
1947
  }, x) => {
1939
- let f = Un(), h = Bn(l, { relative: u }), v = o.toLowerCase() === "get" ? "get" : "post", d = typeof l == "string" && Vt.test(l), b = (w) => {
1940
- if (s && s(w), w.defaultPrevented) return;
1941
- w.preventDefault();
1942
- let T = w.nativeEvent.submitter, I = T?.getAttribute("formmethod") || o;
1943
- f(T || w.currentTarget, {
1948
+ let f = Un(), h = Bn(l, { relative: u }), v = o.toLowerCase() === "get" ? "get" : "post", d = typeof l == "string" && Vt.test(l), b = (R) => {
1949
+ if (s && s(R), R.defaultPrevented) return;
1950
+ R.preventDefault();
1951
+ let T = R.nativeEvent.submitter, I = T?.getAttribute("formmethod") || o;
1952
+ f(T || R.currentTarget, {
1944
1953
  fetcherKey: t,
1945
1954
  method: I,
1946
1955
  navigate: r,
@@ -1970,7 +1979,7 @@ function Nn(e) {
1970
1979
  }
1971
1980
  function qt(e) {
1972
1981
  let t = p.useContext(ie);
1973
- return L(t, Nn(e)), t;
1982
+ return $(t, Nn(e)), t;
1974
1983
  }
1975
1984
  function Mn(e, {
1976
1985
  target: t,
@@ -2050,7 +2059,7 @@ function Un() {
2050
2059
  }
2051
2060
  function Bn(e, { relative: t } = {}) {
2052
2061
  let { basename: r } = p.useContext(G), a = p.useContext(Z);
2053
- L(a, "useFormAction must be used inside a RouteContext");
2062
+ $(a, "useFormAction must be used inside a RouteContext");
2054
2063
  let [n] = a.matches.slice(-1), i = { ...ve(e || ".", { relative: t }) }, o = ee();
2055
2064
  if (e == null) {
2056
2065
  i.search = o.search;
@@ -2065,7 +2074,7 @@ function Bn(e, { relative: t } = {}) {
2065
2074
  }
2066
2075
  function Wn(e, t = {}) {
2067
2076
  let r = p.useContext(Dt);
2068
- L(
2077
+ $(
2069
2078
  r != null,
2070
2079
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
2071
2080
  );
@@ -2081,18 +2090,18 @@ function Wn(e, t = {}) {
2081
2090
  [
2082
2091
  ...Pn
2083
2092
  ];
2084
- const Xt = R.createContext({
2093
+ const Xt = w.createContext({
2085
2094
  history: [],
2086
2095
  addToHistory: () => {
2087
2096
  },
2088
2097
  popFromHistory: () => "",
2089
2098
  replaceHistory: () => {
2090
2099
  }
2091
- }), Ja = ({
2100
+ }), Ka = ({
2092
2101
  routes: e,
2093
2102
  children: t
2094
2103
  }) => {
2095
- const r = R.useRef(["/"]), [a, n] = R.useState(["/"]), i = R.useCallback((c) => {
2104
+ const r = w.useRef(["/"]), [a, n] = w.useState(["/"]), i = w.useCallback((c) => {
2096
2105
  r.current = c, n(c);
2097
2106
  }, []), o = (c) => {
2098
2107
  i([...r.current, c]);
@@ -2120,19 +2129,19 @@ const Xt = R.createContext({
2120
2129
  ] })
2121
2130
  }
2122
2131
  );
2123
- }, Ka = () => {
2124
- const e = Nt(), t = ee(), r = Ge(Xt), a = R.useCallback(
2132
+ }, Za = () => {
2133
+ const e = Nt(), t = ee(), r = Ge(Xt), a = w.useCallback(
2125
2134
  (o, l = !0) => {
2126
2135
  o !== t.pathname && e(o, { replace: !0 }), l && r.addToHistory(o);
2127
2136
  },
2128
2137
  [t.pathname, e, r]
2129
- ), n = R.useCallback(
2138
+ ), n = w.useCallback(
2130
2139
  (o) => {
2131
2140
  const l = o || 1, s = r.popFromHistory(l);
2132
2141
  a(s, !1);
2133
2142
  },
2134
2143
  [a, r]
2135
- ), i = R.useCallback(
2144
+ ), i = w.useCallback(
2136
2145
  (o) => {
2137
2146
  r.replaceHistory(o);
2138
2147
  },
@@ -2145,7 +2154,7 @@ const Xt = R.createContext({
2145
2154
  goTo: a,
2146
2155
  replaceHistory: i
2147
2156
  };
2148
- }, Gt = R.createContext(
2157
+ }, Gt = w.createContext(
2149
2158
  {
2150
2159
  visibleItems: [],
2151
2160
  isItemVisible: () => !1,
@@ -2154,15 +2163,15 @@ const Xt = R.createContext({
2154
2163
  hideItem: () => {
2155
2164
  }
2156
2165
  }
2157
- ), Za = ({ children: e }) => {
2158
- const t = R.useRef([]), [r, a] = R.useState([]), n = R.useCallback((s) => {
2166
+ ), Qa = ({ children: e }) => {
2167
+ const t = w.useRef([]), [r, a] = w.useState([]), n = w.useCallback((s) => {
2159
2168
  t.current = s, a(s);
2160
- }, []), i = R.useCallback((s) => t.current.some((u) => u === s), []), o = R.useCallback(
2169
+ }, []), i = w.useCallback((s) => t.current.some((u) => u === s), []), o = w.useCallback(
2161
2170
  (s) => {
2162
2171
  i(s) || n([...t.current, s]);
2163
2172
  },
2164
2173
  [i, n]
2165
- ), l = R.useCallback(
2174
+ ), l = w.useCallback(
2166
2175
  (s) => {
2167
2176
  i(s) && n(
2168
2177
  t.current.filter((c) => c !== s)
@@ -2182,7 +2191,7 @@ const Xt = R.createContext({
2182
2191
  children: e
2183
2192
  }
2184
2193
  );
2185
- }, Le = () => {
2194
+ }, $e = () => {
2186
2195
  const e = Ge(Gt), t = (n) => e.visibleItems.some((i) => i === n), r = (n) => {
2187
2196
  e.showItem(n);
2188
2197
  }, a = (n) => {
@@ -2199,9 +2208,9 @@ const Xt = R.createContext({
2199
2208
  onCloseDrawer: t,
2200
2209
  drawerCloseOffset: r = 15
2201
2210
  }) => {
2202
- const { isItemVisible: a } = Le(), [n, i] = R.useState({
2211
+ const { isItemVisible: a } = $e(), [n, i] = w.useState({
2203
2212
  isDragging: !1
2204
- }), o = R.useRef(null), l = R.useRef(null), s = R.useRef(null), [u, c] = R.useState(0), g = (f) => {
2213
+ }), o = w.useRef(null), l = w.useRef(null), s = w.useRef(null), [u, c] = w.useState(0), g = (f) => {
2205
2214
  i(f);
2206
2215
  }, m = (f) => {
2207
2216
  i(f), c(0);
@@ -2222,7 +2231,7 @@ const Xt = R.createContext({
2222
2231
  drawerBottomDistance: u,
2223
2232
  handleRef: s
2224
2233
  };
2225
- }, Qa = (e) => {
2234
+ }, ei = (e) => {
2226
2235
  const { children: t, backgroundStyles: r, contentStyles: a, handle: n } = e, {
2227
2236
  isVisible: i,
2228
2237
  drawerParentRef: o,
@@ -2299,7 +2308,7 @@ const Xt = R.createContext({
2299
2308
  }
2300
2309
  ) });
2301
2310
  }, Yn = ({ onSubmit: e, fields: t }) => {
2302
- const r = R.useRef(null), a = R.useCallback(
2311
+ const r = w.useRef(null), a = w.useCallback(
2303
2312
  (o) => {
2304
2313
  var l = Object.keys(o.currentTarget.elements), s = Object.values(o.currentTarget.elements), u = [];
2305
2314
  for (let c = 0; c < l.length; c++) {
@@ -2315,7 +2324,7 @@ const Xt = R.createContext({
2315
2324
  return u;
2316
2325
  },
2317
2326
  [e]
2318
- ), n = R.useCallback(
2327
+ ), n = w.useCallback(
2319
2328
  (o) => {
2320
2329
  o.preventDefault();
2321
2330
  const l = a(o);
@@ -2330,8 +2339,8 @@ const Xt = R.createContext({
2330
2339
  },
2331
2340
  handleFormSubmission: n
2332
2341
  };
2333
- }, ei = (e) => {
2334
- const { fields: t, styles: r, submitButton: a } = e, { ref: n, handleFormSubmission: i, submitForm: o } = Yn(e), l = R.useCallback(() => t.map((s) => ({ ...s.content, key: s.name })), [t]);
2342
+ }, ti = (e) => {
2343
+ const { fields: t, styles: r, submitButton: a } = e, { ref: n, handleFormSubmission: i, submitForm: o } = Yn(e), l = w.useCallback(() => t.map((s) => ({ ...s.content, key: s.name })), [t]);
2335
2344
  return /* @__PURE__ */ E.jsxs(
2336
2345
  "form",
2337
2346
  {
@@ -2364,7 +2373,7 @@ const Xt = R.createContext({
2364
2373
  ]
2365
2374
  }
2366
2375
  );
2367
- }, ti = ({ src: e, alt: t = "", onClick: r, styles: a }) => /* @__PURE__ */ E.jsx(
2376
+ }, ri = ({ src: e, alt: t = "", onClick: r, styles: a }) => /* @__PURE__ */ E.jsx(
2368
2377
  "img",
2369
2378
  {
2370
2379
  src: e,
@@ -2431,7 +2440,7 @@ var Gn = /* @__PURE__ */ function() {
2431
2440
  return (n = a.parentNode) == null ? void 0 : n.removeChild(a);
2432
2441
  }), this.tags = [], this.ctr = 0;
2433
2442
  }, e;
2434
- }(), N = "-ms-", Ie = "-moz-", S = "-webkit-", Jt = "comm", tt = "rule", rt = "decl", Jn = "@import", Kt = "@keyframes", Kn = "@layer", Zn = Math.abs, _e = String.fromCharCode, Qn = Object.assign;
2443
+ }(), N = "-ms-", Ie = "-moz-", S = "-webkit-", Jt = "comm", tt = "rule", rt = "decl", Jn = "@import", Kt = "@keyframes", Kn = "@layer", Zn = Math.abs, Le = String.fromCharCode, Qn = Object.assign;
2435
2444
  function ea(e, t) {
2436
2445
  return D(e, 0) ^ 45 ? (((t << 2 ^ D(e, 0)) << 2 ^ D(e, 1)) << 2 ^ D(e, 2)) << 2 ^ D(e, 3) : 0;
2437
2446
  }
@@ -2465,21 +2474,21 @@ function Re(e, t) {
2465
2474
  function ra(e, t) {
2466
2475
  return e.map(t).join("");
2467
2476
  }
2468
- var $e = 1, ne = 1, Qt = 0, H = 0, _ = 0, oe = "";
2477
+ var _e = 1, ne = 1, Qt = 0, H = 0, L = 0, oe = "";
2469
2478
  function De(e, t, r, a, n, i, o) {
2470
- return { value: e, root: t, parent: r, type: a, props: n, children: i, line: $e, column: ne, length: o, return: "" };
2479
+ return { value: e, root: t, parent: r, type: a, props: n, children: i, line: _e, column: ne, length: o, return: "" };
2471
2480
  }
2472
2481
  function fe(e, t) {
2473
2482
  return Qn(De("", null, null, "", null, null, 0), e, { length: -e.length }, t);
2474
2483
  }
2475
2484
  function na() {
2476
- return _;
2485
+ return L;
2477
2486
  }
2478
2487
  function aa() {
2479
- return _ = H > 0 ? D(oe, --H) : 0, ne--, _ === 10 && (ne = 1, $e--), _;
2488
+ return L = H > 0 ? D(oe, --H) : 0, ne--, L === 10 && (ne = 1, _e--), L;
2480
2489
  }
2481
2490
  function U() {
2482
- return _ = H < Qt ? D(oe, H++) : 0, ne++, _ === 10 && (ne = 1, $e++), _;
2491
+ return L = H < Qt ? D(oe, H++) : 0, ne++, L === 10 && (ne = 1, _e++), L;
2483
2492
  }
2484
2493
  function q() {
2485
2494
  return D(oe, H);
@@ -2529,7 +2538,7 @@ function pe(e) {
2529
2538
  return 0;
2530
2539
  }
2531
2540
  function er(e) {
2532
- return $e = ne = 1, Qt = V(oe = e), H = 0, [];
2541
+ return _e = ne = 1, Qt = V(oe = e), H = 0, [];
2533
2542
  }
2534
2543
  function tr(e) {
2535
2544
  return oe = "", e;
@@ -2538,25 +2547,25 @@ function Se(e) {
2538
2547
  return Zt(xe(H - 1, qe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2539
2548
  }
2540
2549
  function ia(e) {
2541
- for (; (_ = q()) && _ < 33; )
2550
+ for (; (L = q()) && L < 33; )
2542
2551
  U();
2543
- return pe(e) > 2 || pe(_) > 3 ? "" : " ";
2552
+ return pe(e) > 2 || pe(L) > 3 ? "" : " ";
2544
2553
  }
2545
2554
  function oa(e, t) {
2546
- for (; --t && U() && !(_ < 48 || _ > 102 || _ > 57 && _ < 65 || _ > 70 && _ < 97); )
2555
+ for (; --t && U() && !(L < 48 || L > 102 || L > 57 && L < 65 || L > 70 && L < 97); )
2547
2556
  ;
2548
2557
  return xe(e, Ee() + (t < 6 && q() == 32 && U() == 32));
2549
2558
  }
2550
2559
  function qe(e) {
2551
2560
  for (; U(); )
2552
- switch (_) {
2561
+ switch (L) {
2553
2562
  // ] ) " '
2554
2563
  case e:
2555
2564
  return H;
2556
2565
  // " '
2557
2566
  case 34:
2558
2567
  case 39:
2559
- e !== 34 && e !== 39 && qe(_);
2568
+ e !== 34 && e !== 39 && qe(L);
2560
2569
  break;
2561
2570
  // (
2562
2571
  case 40:
@@ -2570,10 +2579,10 @@ function qe(e) {
2570
2579
  return H;
2571
2580
  }
2572
2581
  function sa(e, t) {
2573
- for (; U() && e + _ !== 57; )
2574
- if (e + _ === 84 && q() === 47)
2582
+ for (; U() && e + L !== 57; )
2583
+ if (e + L === 84 && q() === 47)
2575
2584
  break;
2576
- return "/*" + xe(t, H - 1) + "*" + _e(e === 47 ? e : U());
2585
+ return "/*" + xe(t, H - 1) + "*" + Le(e === 47 ? e : U());
2577
2586
  }
2578
2587
  function la(e) {
2579
2588
  for (; !pe(q()); )
@@ -2584,7 +2593,7 @@ function ua(e) {
2584
2593
  return tr(Pe("", null, null, null, [""], e = er(e), 0, [0], e));
2585
2594
  }
2586
2595
  function Pe(e, t, r, a, n, i, o, l, s) {
2587
- for (var u = 0, c = 0, g = o, m = 0, x = 0, f = 0, h = 1, v = 1, d = 1, b = 0, w = "", T = n, I = i, A = a, C = w; v; )
2596
+ for (var u = 0, c = 0, g = o, m = 0, x = 0, f = 0, h = 1, v = 1, d = 1, b = 0, R = "", T = n, I = i, A = a, C = R; v; )
2588
2597
  switch (f = b, b = U()) {
2589
2598
  // (
2590
2599
  case 40:
@@ -2641,7 +2650,7 @@ function Pe(e, t, r, a, n, i, o, l, s) {
2641
2650
  C += ";";
2642
2651
  // { rule/at-rule
2643
2652
  default:
2644
- if (Re(A = bt(C, t, r, u, c, n, l, w, T = [], I = [], g), i), b === 123)
2653
+ if (Re(A = bt(C, t, r, u, c, n, l, R, T = [], I = [], g), i), b === 123)
2645
2654
  if (c === 0)
2646
2655
  Pe(C, t, A, A, T, i, g, l, I);
2647
2656
  else
@@ -2651,13 +2660,13 @@ function Pe(e, t, r, a, n, i, o, l, s) {
2651
2660
  case 108:
2652
2661
  case 109:
2653
2662
  case 115:
2654
- Pe(e, A, A, a && Re(bt(e, A, A, 0, 0, n, l, w, n, T = [], g), I), n, I, g, l, a ? T : I);
2663
+ Pe(e, A, A, a && Re(bt(e, A, A, 0, 0, n, l, R, n, T = [], g), I), n, I, g, l, a ? T : I);
2655
2664
  break;
2656
2665
  default:
2657
2666
  Pe(C, A, A, A, [""], I, 0, l, I);
2658
2667
  }
2659
2668
  }
2660
- u = c = x = 0, h = d = 1, w = C = "", g = o;
2669
+ u = c = x = 0, h = d = 1, R = C = "", g = o;
2661
2670
  break;
2662
2671
  // :
2663
2672
  case 58:
@@ -2669,7 +2678,7 @@ function Pe(e, t, r, a, n, i, o, l, s) {
2669
2678
  else if (b == 125 && h++ == 0 && aa() == 125)
2670
2679
  continue;
2671
2680
  }
2672
- switch (C += _e(b), b * h) {
2681
+ switch (C += Le(b), b * h) {
2673
2682
  // &
2674
2683
  case 38:
2675
2684
  d = c > 0 ? 1 : (C += "\f", -1);
@@ -2680,7 +2689,7 @@ function Pe(e, t, r, a, n, i, o, l, s) {
2680
2689
  break;
2681
2690
  // @
2682
2691
  case 64:
2683
- q() === 45 && (C += Se(U())), m = q(), c = g = V(w = C += la(Ee())), b++;
2692
+ q() === 45 && (C += Se(U())), m = q(), c = g = V(R = C += la(Ee())), b++;
2684
2693
  break;
2685
2694
  // -
2686
2695
  case 45:
@@ -2691,12 +2700,12 @@ function Pe(e, t, r, a, n, i, o, l, s) {
2691
2700
  }
2692
2701
  function bt(e, t, r, a, n, i, o, l, s, u, c) {
2693
2702
  for (var g = n - 1, m = n === 0 ? i : [""], x = nt(m), f = 0, h = 0, v = 0; f < a; ++f)
2694
- for (var d = 0, b = he(e, g + 1, g = Zn(h = o[f])), w = e; d < x; ++d)
2695
- (w = Zt(h > 0 ? m[d] + " " + b : P(b, /&\f/g, m[d]))) && (s[v++] = w);
2703
+ for (var d = 0, b = he(e, g + 1, g = Zn(h = o[f])), R = e; d < x; ++d)
2704
+ (R = Zt(h > 0 ? m[d] + " " + b : P(b, /&\f/g, m[d]))) && (s[v++] = R);
2696
2705
  return De(e, t, r, n === 0 ? tt : l, s, u, c);
2697
2706
  }
2698
2707
  function ca(e, t, r) {
2699
- return De(e, t, r, Jt, _e(na()), he(e, 2, -2), 0);
2708
+ return De(e, t, r, Jt, Le(na()), he(e, 2, -2), 0);
2700
2709
  }
2701
2710
  function wt(e, t, r, a) {
2702
2711
  return De(e, t, r, rt, he(e, 0, a), he(e, a + 1, -1), a);
@@ -2762,7 +2771,7 @@ var pa = function(t, r, a) {
2762
2771
  }
2763
2772
  // fallthrough
2764
2773
  default:
2765
- t[a] += _e(n);
2774
+ t[a] += Le(n);
2766
2775
  }
2767
2776
  while (n = U());
2768
2777
  return t;
@@ -2989,8 +2998,8 @@ var xa = function(t, r, a, n) {
2989
2998
  })], m = da(u.concat(n, g)), x = function(v) {
2990
2999
  return re(ua(v), m);
2991
3000
  };
2992
- s = function(v, d, b, w) {
2993
- c = b, x(v ? v + "{" + d.styles + "}" : d.styles), w && (f.inserted[d.name] = !0);
3001
+ s = function(v, d, b, R) {
3002
+ c = b, x(v ? v + "{" + d.styles + "}" : d.styles), R && (f.inserted[d.name] = !0);
2994
3003
  };
2995
3004
  }
2996
3005
  var f = {
@@ -3232,7 +3241,7 @@ function Aa(e, t, r) {
3232
3241
  }
3233
3242
  var Oa = function(t) {
3234
3243
  return t();
3235
- }, La = p.useInsertionEffect ? p.useInsertionEffect : !1, _a = La || Oa, or = /* @__PURE__ */ p.createContext(
3244
+ }, $a = p.useInsertionEffect ? p.useInsertionEffect : !1, La = $a || Oa, or = /* @__PURE__ */ p.createContext(
3236
3245
  // we're doing this to avoid preconstruct's dead code elimination in this one case
3237
3246
  // because this module is primarily intended for the browser and node
3238
3247
  // but it's also required in react native and similar environments sometimes
@@ -3244,7 +3253,7 @@ var Oa = function(t) {
3244
3253
  }) : null
3245
3254
  );
3246
3255
  or.Provider;
3247
- var $a = function(t) {
3256
+ var _a = function(t) {
3248
3257
  return /* @__PURE__ */ fr(function(r, a) {
3249
3258
  var n = Ge(or);
3250
3259
  return t(r, n, a);
@@ -3272,7 +3281,7 @@ var $a = function(t) {
3272
3281
  return typeof n != "function" && a && (n = t.__emotion_forwardProp), n;
3273
3282
  }, Ha = function(t) {
3274
3283
  var r = t.cache, a = t.serialized, n = t.isStringTag;
3275
- return ar(r, a, n), _a(function() {
3284
+ return ar(r, a, n), La(function() {
3276
3285
  return ka(r, a, n);
3277
3286
  }), null;
3278
3287
  }, za = function e(t, r) {
@@ -3289,8 +3298,8 @@ var $a = function(t) {
3289
3298
  for (var x = c.length, f = 1; f < x; f++)
3290
3299
  g.push(c[f], m[f]);
3291
3300
  }
3292
- var h = $a(function(v, d, b) {
3293
- var w = u && v.as || n, T = "", I = [], A = v;
3301
+ var h = _a(function(v, d, b) {
3302
+ var R = u && v.as || n, T = "", I = [], A = v;
3294
3303
  if (v.theme == null) {
3295
3304
  A = {};
3296
3305
  for (var C in v)
@@ -3300,14 +3309,14 @@ var $a = function(t) {
3300
3309
  typeof v.className == "string" ? T = Ca(d.registered, I, v.className) : v.className != null && (T = v.className + " ");
3301
3310
  var z = Aa(g.concat(I), d.registered, A);
3302
3311
  T += d.key + "-" + z.name, o !== void 0 && (T += " " + o);
3303
- var $ = u && l === void 0 ? St(w) : s, M = {};
3312
+ var _ = u && l === void 0 ? St(R) : s, M = {};
3304
3313
  for (var B in v)
3305
- u && B === "as" || $(B) && (M[B] = v[B]);
3314
+ u && B === "as" || _(B) && (M[B] = v[B]);
3306
3315
  return M.className = T, b && (M.ref = b), /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement(Ha, {
3307
3316
  cache: d,
3308
3317
  serialized: z,
3309
- isStringTag: typeof w == "string"
3310
- }), /* @__PURE__ */ p.createElement(w, M));
3318
+ isStringTag: typeof R == "string"
3319
+ }), /* @__PURE__ */ p.createElement(R, M));
3311
3320
  });
3312
3321
  return h.displayName = i !== void 0 ? i : "Styled(" + (typeof n == "string" ? n : n.displayName || n.name || "Component") + ")", h.defaultProps = t.defaultProps, h.__emotion_real = h, h.__emotion_base = n, h.__emotion_styles = g, h.__emotion_forwardProp = l, Object.defineProperty(h, "toString", {
3313
3322
  value: function() {
@@ -3478,7 +3487,7 @@ const Ba = Xe.div`
3478
3487
  input:-webkit-autofill {
3479
3488
  background-color: #00000000;
3480
3489
  }
3481
- `, ri = ({
3490
+ `, ni = ({
3482
3491
  name: e,
3483
3492
  label: t,
3484
3493
  leftIcon: r,
@@ -3566,8 +3575,8 @@ const Ba = Xe.div`
3566
3575
  ]
3567
3576
  }
3568
3577
  );
3569
- }, ni = ({ id: e, styles: t, children: r }) => {
3570
- const { isItemVisible: a } = Le();
3578
+ }, ai = ({ id: e, styles: t, children: r }) => {
3579
+ const { isItemVisible: a } = $e();
3571
3580
  return /* @__PURE__ */ E.jsx(E.Fragment, { children: a(e) && /* @__PURE__ */ E.jsx(
3572
3581
  "div",
3573
3582
  {
@@ -3587,14 +3596,14 @@ const Ba = Xe.div`
3587
3596
  children: r
3588
3597
  }
3589
3598
  ) });
3590
- }, ai = ({
3599
+ }, ii = ({
3591
3600
  id: e,
3592
3601
  children: t,
3593
3602
  backgroundStyles: r,
3594
3603
  contentStyles: a,
3595
3604
  onClickOutsideModal: n
3596
3605
  }) => {
3597
- const { isItemVisible: i } = Le();
3606
+ const { isItemVisible: i } = $e();
3598
3607
  return /* @__PURE__ */ E.jsx(E.Fragment, { children: i(e) && /* @__PURE__ */ E.jsx(
3599
3608
  "div",
3600
3609
  {
@@ -3645,108 +3654,137 @@ const Ba = Xe.div`
3645
3654
  )
3646
3655
  }
3647
3656
  ) });
3648
- }, ii = ({
3649
- header: e,
3650
- containerStyles: t,
3651
- pageStyles: r,
3652
- children: a,
3653
- allowScroll: n = !0,
3654
- footer: i,
3655
- floatingContent: o
3656
- }) => /* @__PURE__ */ E.jsxs(
3657
- "div",
3658
- {
3659
- "data-testid": "page-container",
3660
- style: {
3661
- minHeight: "100vh",
3662
- width: "100%",
3663
- minWidth: "100%",
3664
- overflow: "hidden",
3665
- position: "relative",
3666
- boxSizing: "border-box",
3667
- top: 0,
3668
- bottom: 0,
3669
- left: 0,
3670
- right: 0,
3671
- display: "flex",
3672
- flexDirection: "column",
3673
- ...t
3657
+ }, Wa = (e) => {
3658
+ const t = w.useRef(null), r = w.useRef(null), [a, n] = w.useState(24), [i, o] = w.useState(24), l = w.useCallback(() => {
3659
+ t.current && n(t.current.clientHeight);
3660
+ }, [t, t.current]), s = w.useCallback(() => {
3661
+ r.current && o(r.current.clientHeight);
3662
+ }, [r, r.current]);
3663
+ return w.useEffect(() => {
3664
+ l();
3665
+ }, [l, t, t.current]), w.useEffect(() => {
3666
+ s();
3667
+ }, [s, r, r.current]), {
3668
+ header: {
3669
+ ...e.header,
3670
+ visible: e.header !== void 0,
3671
+ height: e.header?.visibility === "fixed" ? 0 : a,
3672
+ ref: t
3674
3673
  },
3675
- children: [
3676
- /* @__PURE__ */ E.jsxs(
3677
- "div",
3678
- {
3679
- "data-testid": "page-layout",
3680
- style: {
3681
- minHeight: "100%",
3682
- width: "100%",
3683
- overflowY: n ? "auto" : "hidden",
3684
- display: "flex",
3685
- flexDirection: "column",
3686
- boxSizing: "border-box"
3687
- },
3688
- children: [
3689
- e && /* @__PURE__ */ E.jsx(
3690
- "div",
3691
- {
3692
- "data-testid": "page-header",
3693
- style: {
3694
- width: "100%",
3695
- zIndex: 99,
3696
- position: e.visibility === "fixed" ? "relative" : "fixed",
3697
- top: 0,
3698
- left: 0,
3699
- right: 0,
3700
- display: "flex",
3701
- flexDirection: "row",
3702
- height: "fit-content",
3703
- boxSizing: "border-box",
3704
- ...e.styles
3705
- },
3706
- children: e.content
3707
- }
3708
- ),
3709
- /* @__PURE__ */ E.jsx(
3710
- "div",
3711
- {
3712
- style: {
3713
- width: "100%",
3714
- flex: 1,
3715
- minHeight: "fit-content",
3716
- padding: "24px",
3717
- boxSizing: "border-box",
3718
- overflowY: n ? void 0 : "hidden",
3719
- ...r
3720
- },
3721
- children: a
3722
- }
3723
- )
3724
- ]
3725
- }
3726
- ),
3727
- i && /* @__PURE__ */ E.jsx(
3728
- "div",
3729
- {
3730
- "data-testid": "page-footer",
3731
- style: {
3732
- width: "100%",
3733
- zIndex: 99,
3734
- position: i.visibility === "fixed" ? "relative" : "fixed",
3735
- bottom: 0,
3736
- left: 0,
3737
- right: 0,
3738
- display: "flex",
3739
- flexDirection: "row",
3740
- height: "fit-content",
3741
- boxSizing: "border-box",
3742
- ...i.styles
3743
- },
3744
- children: i.content
3745
- }
3746
- )
3747
- ]
3748
- }
3749
- ), oi = ({
3674
+ footer: {
3675
+ ...e.footer,
3676
+ visible: e.footer !== void 0,
3677
+ height: e.footer?.visibility === "fixed" ? 0 : i,
3678
+ ref: r
3679
+ }
3680
+ };
3681
+ }, oi = (e) => {
3682
+ const {
3683
+ containerStyles: t,
3684
+ pageStyles: r,
3685
+ children: a,
3686
+ allowScroll: n = !0,
3687
+ floatingContent: i
3688
+ } = e, { footer: o, header: l } = Wa(e);
3689
+ return /* @__PURE__ */ E.jsxs(
3690
+ "div",
3691
+ {
3692
+ "data-testid": "page-container",
3693
+ style: {
3694
+ minHeight: "100vh",
3695
+ width: "100%",
3696
+ minWidth: "100%",
3697
+ overflow: "hidden",
3698
+ position: "relative",
3699
+ boxSizing: "border-box",
3700
+ top: 0,
3701
+ bottom: 0,
3702
+ left: 0,
3703
+ right: 0,
3704
+ display: "flex",
3705
+ flexDirection: "column",
3706
+ ...t
3707
+ },
3708
+ children: [
3709
+ /* @__PURE__ */ E.jsxs(
3710
+ "div",
3711
+ {
3712
+ "data-testid": "page-layout",
3713
+ style: {
3714
+ minHeight: "100%",
3715
+ width: "100%",
3716
+ overflowY: n ? "auto" : "hidden",
3717
+ display: "flex",
3718
+ flexDirection: "column",
3719
+ boxSizing: "border-box"
3720
+ },
3721
+ children: [
3722
+ l.visible && /* @__PURE__ */ E.jsx(
3723
+ "div",
3724
+ {
3725
+ ref: l.ref,
3726
+ "data-testid": "page-header",
3727
+ style: {
3728
+ width: "100%",
3729
+ zIndex: 99,
3730
+ position: l.visibility === "fixed" ? "relative" : "fixed",
3731
+ top: 0,
3732
+ left: 0,
3733
+ right: 0,
3734
+ display: "flex",
3735
+ flexDirection: "row",
3736
+ height: "fit-content",
3737
+ boxSizing: "border-box",
3738
+ ...l.styles
3739
+ },
3740
+ children: l.content
3741
+ }
3742
+ ),
3743
+ /* @__PURE__ */ E.jsx(
3744
+ "div",
3745
+ {
3746
+ style: {
3747
+ width: "100%",
3748
+ flex: 1,
3749
+ minHeight: "fit-content",
3750
+ marginTop: `${l.height}px`,
3751
+ marginBottom: `${o.height}px`,
3752
+ padding: "12px 24px",
3753
+ boxSizing: "border-box",
3754
+ overflowY: n ? void 0 : "hidden",
3755
+ ...r
3756
+ },
3757
+ children: a
3758
+ }
3759
+ )
3760
+ ]
3761
+ }
3762
+ ),
3763
+ o.visible && /* @__PURE__ */ E.jsx(
3764
+ "div",
3765
+ {
3766
+ ref: o.ref,
3767
+ "data-testid": "page-footer",
3768
+ style: {
3769
+ width: "100%",
3770
+ zIndex: 99,
3771
+ position: o.visibility === "fixed" ? "relative" : "fixed",
3772
+ bottom: 0,
3773
+ left: 0,
3774
+ right: 0,
3775
+ display: "flex",
3776
+ flexDirection: "row",
3777
+ height: "fit-content",
3778
+ boxSizing: "border-box",
3779
+ ...o.styles
3780
+ },
3781
+ children: o.content
3782
+ }
3783
+ )
3784
+ ]
3785
+ }
3786
+ );
3787
+ }, si = ({
3750
3788
  src: e,
3751
3789
  width: t = "22",
3752
3790
  height: r = "28",
@@ -3784,14 +3822,14 @@ const Ba = Xe.div`
3784
3822
  }
3785
3823
  )
3786
3824
  }
3787
- ), si = ({
3825
+ ), li = ({
3788
3826
  id: e,
3789
3827
  children: t,
3790
3828
  styles: r,
3791
3829
  durationInSeconds: a = 3
3792
3830
  }) => {
3793
- const n = R.useRef(!1), { isItemVisible: i, hideItem: o } = Le();
3794
- return R.useEffect(() => {
3831
+ const n = w.useRef(!1), { isItemVisible: i, hideItem: o } = $e();
3832
+ return w.useEffect(() => {
3795
3833
  const l = i(e);
3796
3834
  n.current !== l && (n.current = l, l && setTimeout(() => o(e), a * 1e3));
3797
3835
  }, [n, i, o]), /* @__PURE__ */ E.jsx(E.Fragment, { children: i(e) && /* @__PURE__ */ E.jsx(
@@ -3821,7 +3859,7 @@ const Ba = Xe.div`
3821
3859
  children: t
3822
3860
  }
3823
3861
  ) });
3824
- }, li = ({
3862
+ }, ui = ({
3825
3863
  overflowEllipsis: e,
3826
3864
  children: t,
3827
3865
  styles: r
@@ -3843,7 +3881,7 @@ const Ba = Xe.div`
3843
3881
  children: t
3844
3882
  }
3845
3883
  );
3846
- class ui {
3884
+ class ci {
3847
3885
  static isScrollEnabled = () => document.body.style.overflow === "unset" || document.body.style.overflow === "auto";
3848
3886
  static disableScroll = () => {
3849
3887
  document.body.style.overflow = "hidden";
@@ -3852,35 +3890,35 @@ class ui {
3852
3890
  document.body.style.overflow = "unset";
3853
3891
  };
3854
3892
  }
3855
- class ci {
3893
+ class fi {
3856
3894
  static getPascalCase = (t) => t.replace(/\w+/g, function(r) {
3857
3895
  return r[0].toUpperCase() + r.slice(1).toLowerCase();
3858
3896
  });
3859
3897
  static isEqual = (t, r, a = !0) => a ? t === r : t.toUpperCase() === r.toUpperCase();
3860
3898
  }
3861
3899
  export {
3862
- Va as Button,
3863
- Qa as Drawer,
3864
- Za as FeedbackProvider,
3865
- ei as Form,
3866
- ti as Image,
3867
- ri as InputField,
3868
- ni as Loader,
3869
- ai as Modal,
3870
- Ja as NavigationProvider,
3871
- ii as PageLayout,
3872
- ui as ScrollHelper,
3873
- oi as SvgImage,
3874
- ci as TextHelper,
3875
- si as Toast,
3876
- li as Typography,
3900
+ Ya as Button,
3901
+ ei as Drawer,
3902
+ Qa as FeedbackProvider,
3903
+ ti as Form,
3904
+ ri as Image,
3905
+ ni as InputField,
3906
+ ai as Loader,
3907
+ ii as Modal,
3908
+ Ka as NavigationProvider,
3909
+ oi as PageLayout,
3910
+ ci as ScrollHelper,
3911
+ si as SvgImage,
3912
+ fi as TextHelper,
3913
+ li as Toast,
3914
+ ui as Typography,
3877
3915
  yr as defaultBreakpoints,
3878
- Ya as useDidMount,
3916
+ qa as useDidMount,
3879
3917
  gr as useDrag,
3880
- Le as useFeedback,
3881
- qa as useFetch,
3882
- Ka as useNavigation,
3918
+ $e as useFeedback,
3919
+ Xa as useFetch,
3920
+ Za as useNavigation,
3883
3921
  mr as usePointer,
3884
- Xa as useResponsive,
3885
- Ga as useTranslations
3922
+ Ga as useResponsive,
3923
+ Ja as useTranslations
3886
3924
  };