@eliseubatista99/react-scaffold-core 0.2.3 → 0.2.5

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 M from "react";
2
- import V, { forwardRef as Cn, useContext as Yt, useEffect as Ir, useState as Ar, useMemo as Hr, useCallback as _e, useRef as Pn } from "react";
2
+ import V, { forwardRef as Cn, useContext as Yt, useEffect as Ir, useState as Ar, useMemo as Hr, useCallback as ve, useRef as Pn } from "react";
3
3
  var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function Vt(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -772,7 +772,7 @@ function Ke() {
772
772
  if (!O) {
773
773
  if ($) return v(n);
774
774
  D && z && N && v(n);
775
- var pe, Ee = {}, tt = h(f);
775
+ var pe, Re = {}, tt = h(f);
776
776
  Q.curX = n.touches ? n.touches[0].pageX : n.clientX, Q.curY = n.touches ? n.touches[0].pageY : n.clientY, Q.swipeLength = Math.round(Math.sqrt(Math.pow(Q.curX - Q.startX, 2)));
777
777
  var tr = Math.round(Math.sqrt(Math.pow(Q.curY - Q.startY, 2)));
778
778
  if (!N && !Z && tr > 10)
@@ -782,14 +782,14 @@ function Ke() {
782
782
  N && (Q.swipeLength = tr);
783
783
  var Ie = (W ? -1 : 1) * (Q.curX > Q.startX ? 1 : -1);
784
784
  N && (Ie = Q.curY > Q.startY ? 1 : -1);
785
- var kn = Math.ceil(ee / ie), Ce = F(f.touchObject, N), Ae = Q.swipeLength;
786
- return le || (B === 0 && (Ce === "right" || Ce === "down") || B + 1 >= kn && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength * K, G === !1 && J && (J(Ce), Ee.edgeDragged = !0)), !te && oe && (oe(Ce), Ee.swiped = !0), D ? pe = tt + Ae * (ue / ce) * Ie : W ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, N && (pe = tt + Ae * Ie), Ee = s(s({}, Ee), {}, {
785
+ var kn = Math.ceil(ee / ie), Pe = F(f.touchObject, N), Ae = Q.swipeLength;
786
+ return le || (B === 0 && (Pe === "right" || Pe === "down") || B + 1 >= kn && (Pe === "left" || Pe === "up") || !U(f) && (Pe === "left" || Pe === "up")) && (Ae = Q.swipeLength * K, G === !1 && J && (J(Pe), Re.edgeDragged = !0)), !te && oe && (oe(Pe), Re.swiped = !0), D ? pe = tt + Ae * (ue / ce) * Ie : W ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, N && (pe = tt + Ae * Ie), Re = s(s({}, Re), {}, {
787
787
  touchObject: Q,
788
788
  swipeLeft: pe,
789
789
  trackStyle: R(s(s({}, f), {}, {
790
790
  left: pe
791
791
  }))
792
- }), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Ee.swiping = !0, v(n)), Ee;
792
+ }), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Re.swiping = !0, v(n)), Re;
793
793
  }
794
794
  }, Y.swipeEnd = function(n, f) {
795
795
  var O = f.dragging, $ = f.swipe, D = f.touchObject, z = f.listWidth, N = f.touchThreshold, W = f.verticalSwiping, B = f.listHeight, K = f.swipeToSlide, G = f.scrolling, J = f.onSwipe, te = f.targetSlide, Z = f.currentSlide, ee = f.infinite;
@@ -1340,9 +1340,9 @@ function Mn() {
1340
1340
  }]), S;
1341
1341
  }(t.default.PureComponent), We;
1342
1342
  }
1343
- var Re = {}, dr;
1343
+ var _e = {}, dr;
1344
1344
  function $n() {
1345
- if (dr) return Re;
1345
+ if (dr) return _e;
1346
1346
  dr = 1;
1347
1347
  function e(g) {
1348
1348
  "@babel/helpers - typeof";
@@ -1352,9 +1352,9 @@ function $n() {
1352
1352
  return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
1353
1353
  }, e(g);
1354
1354
  }
1355
- Object.defineProperty(Re, "__esModule", {
1355
+ Object.defineProperty(_e, "__esModule", {
1356
1356
  value: !0
1357
- }), Re.PrevArrow = Re.NextArrow = void 0;
1357
+ }), _e.PrevArrow = _e.NextArrow = void 0;
1358
1358
  var t = a(V), r = a(yt()), i = Ke();
1359
1359
  function a(g) {
1360
1360
  return g && g.__esModule ? g : { default: g };
@@ -1463,7 +1463,7 @@ function $n() {
1463
1463
  return b.__proto__ || Object.getPrototypeOf(b);
1464
1464
  }, q(g);
1465
1465
  }
1466
- return Re.PrevArrow = /* @__PURE__ */ function(g) {
1466
+ return _e.PrevArrow = /* @__PURE__ */ function(g) {
1467
1467
  C(S, g);
1468
1468
  var b = I(S);
1469
1469
  function S() {
@@ -1502,7 +1502,7 @@ function $n() {
1502
1502
  }, P), " ", "Previous"), _;
1503
1503
  }
1504
1504
  }]), S;
1505
- }(t.default.PureComponent), Re.NextArrow = /* @__PURE__ */ function(g) {
1505
+ }(t.default.PureComponent), _e.NextArrow = /* @__PURE__ */ function(g) {
1506
1506
  C(S, g);
1507
1507
  var b = I(S);
1508
1508
  function S() {
@@ -1541,7 +1541,7 @@ function $n() {
1541
1541
  }, P), " ", "Next"), _;
1542
1542
  }
1543
1543
  }]), S;
1544
- }(t.default.PureComponent), Re;
1544
+ }(t.default.PureComponent), _e;
1545
1545
  }
1546
1546
  var Nr = function() {
1547
1547
  if (typeof Map < "u")
@@ -2735,7 +2735,7 @@ function fe(e, t) {
2735
2735
  function qe(e, t, r) {
2736
2736
  return e.slice(t, r);
2737
2737
  }
2738
- function ge(e) {
2738
+ function ye(e) {
2739
2739
  return e.length;
2740
2740
  }
2741
2741
  function Xt(e) {
@@ -2763,7 +2763,7 @@ function wi() {
2763
2763
  function me() {
2764
2764
  return se = he < Xr ? fe(De, he++) : 0, Le++, se === 10 && (Le = 1, St++), se;
2765
2765
  }
2766
- function be() {
2766
+ function we() {
2767
2767
  return fe(De, he);
2768
2768
  }
2769
2769
  function ot() {
@@ -2811,7 +2811,7 @@ function Be(e) {
2811
2811
  return 0;
2812
2812
  }
2813
2813
  function Gr(e) {
2814
- return St = Le = 1, Xr = ge(De = e), he = 0, [];
2814
+ return St = Le = 1, Xr = ye(De = e), he = 0, [];
2815
2815
  }
2816
2816
  function Kr(e) {
2817
2817
  return De = "", e;
@@ -2820,14 +2820,14 @@ function st(e) {
2820
2820
  return Br(Je(he - 1, Nt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2821
2821
  }
2822
2822
  function Si(e) {
2823
- for (; (se = be()) && se < 33; )
2823
+ for (; (se = we()) && se < 33; )
2824
2824
  me();
2825
2825
  return Be(e) > 2 || Be(se) > 3 ? "" : " ";
2826
2826
  }
2827
2827
  function xi(e, t) {
2828
2828
  for (; --t && me() && !(se < 48 || se > 102 || se > 57 && se < 65 || se > 70 && se < 97); )
2829
2829
  ;
2830
- return Je(e, ot() + (t < 6 && be() == 32 && me() == 32));
2830
+ return Je(e, ot() + (t < 6 && we() == 32 && me() == 32));
2831
2831
  }
2832
2832
  function Nt(e) {
2833
2833
  for (; me(); )
@@ -2853,12 +2853,12 @@ function Nt(e) {
2853
2853
  }
2854
2854
  function Oi(e, t) {
2855
2855
  for (; me() && e + se !== 57; )
2856
- if (e + se === 84 && be() === 47)
2856
+ if (e + se === 84 && we() === 47)
2857
2857
  break;
2858
2858
  return "/*" + Je(t, he - 1) + "*" + wt(e === 47 ? e : me());
2859
2859
  }
2860
2860
  function ki(e) {
2861
- for (; !Be(be()); )
2861
+ for (; !Be(we()); )
2862
2862
  me();
2863
2863
  return Je(e, he);
2864
2864
  }
@@ -2893,7 +2893,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
2893
2893
  continue;
2894
2894
  // /
2895
2895
  case 47:
2896
- switch (be()) {
2896
+ switch (we()) {
2897
2897
  case 42:
2898
2898
  case 47:
2899
2899
  it(Pi(Oi(me(), ot()), t, r), u);
@@ -2904,7 +2904,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
2904
2904
  break;
2905
2905
  // {
2906
2906
  case 123 * p:
2907
- l[c++] = ge(S) * k;
2907
+ l[c++] = ye(S) * k;
2908
2908
  // } ; \0
2909
2909
  case 125 * p:
2910
2910
  case 59:
@@ -2916,7 +2916,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
2916
2916
  I = 0;
2917
2917
  // ;
2918
2918
  case 59 + v:
2919
- k == -1 && (S = ne(S, /\f/g, "")), L > 0 && ge(S) - w && it(L > 32 ? wr(S + ";", i, r, w - 1) : wr(ne(S, " ", "") + ";", i, r, w - 2), u);
2919
+ k == -1 && (S = ne(S, /\f/g, "")), L > 0 && ye(S) - w && it(L > 32 ? wr(S + ";", i, r, w - 1) : wr(ne(S, " ", "") + ";", i, r, w - 2), u);
2920
2920
  break;
2921
2921
  // @ ;
2922
2922
  case 59:
@@ -2943,7 +2943,7 @@ function lt(e, t, r, i, a, s, d, l, u) {
2943
2943
  break;
2944
2944
  // :
2945
2945
  case 58:
2946
- w = 1 + ge(S), L = C;
2946
+ w = 1 + ye(S), L = C;
2947
2947
  default:
2948
2948
  if (p < 1) {
2949
2949
  if (F == 123)
@@ -2958,15 +2958,15 @@ function lt(e, t, r, i, a, s, d, l, u) {
2958
2958
  break;
2959
2959
  // ,
2960
2960
  case 44:
2961
- l[c++] = (ge(S) - 1) * k, k = 1;
2961
+ l[c++] = (ye(S) - 1) * k, k = 1;
2962
2962
  break;
2963
2963
  // @
2964
2964
  case 64:
2965
- be() === 45 && (S += st(me())), x = be(), v = w = ge(U = S += ki(ot())), F++;
2965
+ we() === 45 && (S += st(me())), x = we(), v = w = ye(U = S += ki(ot())), F++;
2966
2966
  break;
2967
2967
  // -
2968
2968
  case 45:
2969
- C === 45 && ge(S) == 2 && (p = 0);
2969
+ C === 45 && ye(S) == 2 && (p = 0);
2970
2970
  }
2971
2971
  }
2972
2972
  return s;
@@ -3002,7 +3002,7 @@ function Ei(e, t, r, i) {
3002
3002
  case qt:
3003
3003
  e.value = e.props.join(",");
3004
3004
  }
3005
- return ge(r = Te(e.children, i)) ? e.return = e.value + "{" + r + "}" : "";
3005
+ return ye(r = Te(e.children, i)) ? e.return = e.value + "{" + r + "}" : "";
3006
3006
  }
3007
3007
  function Ri(e) {
3008
3008
  var t = Xt(e);
@@ -3024,7 +3024,7 @@ function Jr(e) {
3024
3024
  };
3025
3025
  }
3026
3026
  var Ti = function(t, r, i) {
3027
- for (var a = 0, s = 0; a = s, s = be(), a === 38 && s === 12 && (r[i] = 1), !Be(s); )
3027
+ for (var a = 0, s = 0; a = s, s = we(), a === 38 && s === 12 && (r[i] = 1), !Be(s); )
3028
3028
  me();
3029
3029
  return Je(t, he);
3030
3030
  }, ji = function(t, r) {
@@ -3032,14 +3032,14 @@ var Ti = function(t, r, i) {
3032
3032
  do
3033
3033
  switch (Be(a)) {
3034
3034
  case 0:
3035
- a === 38 && be() === 12 && (r[i] = 1), t[i] += Ti(he - 1, r, i);
3035
+ a === 38 && we() === 12 && (r[i] = 1), t[i] += Ti(he - 1, r, i);
3036
3036
  break;
3037
3037
  case 2:
3038
3038
  t[i] += st(a);
3039
3039
  break;
3040
3040
  case 4:
3041
3041
  if (a === 44) {
3042
- t[++i] = be() === 58 ? "&\f" : "", r[i] = t[i].length;
3042
+ t[++i] = we() === 58 ? "&\f" : "", r[i] = t[i].length;
3043
3043
  break;
3044
3044
  }
3045
3045
  // fallthrough
@@ -3170,7 +3170,7 @@ function Zr(e, t) {
3170
3170
  case 5789:
3171
3171
  case 5021:
3172
3172
  case 4765:
3173
- if (ge(e) - 1 - t > 6) switch (fe(e, t + 1)) {
3173
+ if (ye(e) - 1 - t > 6) switch (fe(e, t + 1)) {
3174
3174
  // (m)ax-content, (m)in-content
3175
3175
  case 109:
3176
3176
  if (fe(e, t + 4) !== 45) break;
@@ -3187,7 +3187,7 @@ function Zr(e, t) {
3187
3187
  if (fe(e, t + 1) !== 115) break;
3188
3188
  // display: (flex|inline-flex)
3189
3189
  case 6444:
3190
- switch (fe(e, ge(e) - 3 - (~zt(e, "!important") && 10))) {
3190
+ switch (fe(e, ye(e) - 3 - (~zt(e, "!important") && 10))) {
3191
3191
  // stic(k)y
3192
3192
  case 107:
3193
3193
  return ne(e, ":", ":" + re) + e;
@@ -3400,10 +3400,10 @@ var Wi = {
3400
3400
  case "animationName":
3401
3401
  if (typeof r == "string")
3402
3402
  return r.replace(Yi, function(i, a, s) {
3403
- return ye = {
3403
+ return be = {
3404
3404
  name: a,
3405
3405
  styles: s,
3406
- next: ye
3406
+ next: be
3407
3407
  }, a;
3408
3408
  });
3409
3409
  }
@@ -3421,20 +3421,20 @@ function Xe(e, t, r) {
3421
3421
  case "object": {
3422
3422
  var a = r;
3423
3423
  if (a.anim === 1)
3424
- return ye = {
3424
+ return be = {
3425
3425
  name: a.name,
3426
3426
  styles: a.styles,
3427
- next: ye
3427
+ next: be
3428
3428
  }, a.name;
3429
3429
  var s = r;
3430
3430
  if (s.styles !== void 0) {
3431
3431
  var d = s.next;
3432
3432
  if (d !== void 0)
3433
3433
  for (; d !== void 0; )
3434
- ye = {
3434
+ be = {
3435
3435
  name: d.name,
3436
3436
  styles: d.styles,
3437
- next: ye
3437
+ next: be
3438
3438
  }, d = d.next;
3439
3439
  var l = s.styles + ";";
3440
3440
  return l;
@@ -3443,8 +3443,8 @@ function Xe(e, t, r) {
3443
3443
  }
3444
3444
  case "function": {
3445
3445
  if (e !== void 0) {
3446
- var u = ye, c = r(e);
3447
- return ye = u, Xe(e, t, c);
3446
+ var u = be, c = r(e);
3447
+ return be = u, Xe(e, t, c);
3448
3448
  }
3449
3449
  break;
3450
3450
  }
@@ -3484,12 +3484,12 @@ function Vi(e, t, r) {
3484
3484
  }
3485
3485
  return i;
3486
3486
  }
3487
- var kr = /label:\s*([^\s;{]+)\s*(;|$)/g, ye;
3487
+ var kr = /label:\s*([^\s;{]+)\s*(;|$)/g, be;
3488
3488
  function qi(e, t, r) {
3489
3489
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
3490
3490
  return e[0];
3491
3491
  var i = !0, a = "";
3492
- ye = void 0;
3492
+ be = void 0;
3493
3493
  var s = e[0];
3494
3494
  if (s == null || s.raw === void 0)
3495
3495
  i = !1, a += Xe(r, t, s);
@@ -3509,7 +3509,7 @@ function qi(e, t, r) {
3509
3509
  return {
3510
3510
  name: w,
3511
3511
  styles: a,
3512
- next: ye
3512
+ next: be
3513
3513
  };
3514
3514
  }
3515
3515
  var Bi = function(t) {
@@ -3738,11 +3738,11 @@ var Ki = function(t) {
3738
3738
  "svg",
3739
3739
  "text",
3740
3740
  "tspan"
3741
- ], Pe = na.bind(null);
3741
+ ], Ee = na.bind(null);
3742
3742
  ia.forEach(function(e) {
3743
- Pe[e] = Pe(e);
3743
+ Ee[e] = Ee(e);
3744
3744
  });
3745
- const aa = Pe.div`
3745
+ const aa = Ee.div`
3746
3746
  width: 100%;
3747
3747
  height: fit-content;
3748
3748
 
@@ -3818,7 +3818,7 @@ const aa = Pe.div`
3818
3818
  opacity: 0.75;
3819
3819
  color: black;
3820
3820
  }
3821
- `, oa = Pe.div`
3821
+ `, oa = Ee.div`
3822
3822
  box-sizing: border-box;
3823
3823
  display: flex;
3824
3824
  flex-direction: column;
@@ -4290,7 +4290,7 @@ function ae(e, t) {
4290
4290
  if (e === !1 || e === null || typeof e > "u")
4291
4291
  throw new Error(t);
4292
4292
  }
4293
- function ve(e, t) {
4293
+ function ge(e, t) {
4294
4294
  if (!e) {
4295
4295
  typeof console < "u" && console.warn(t);
4296
4296
  try {
@@ -4419,7 +4419,7 @@ function rn(e, t, r = "/") {
4419
4419
  return ga(e, t, r, !1);
4420
4420
  }
4421
4421
  function ga(e, t, r, i) {
4422
- let a = typeof t == "string" ? Me(t) : t, s = xe(a.pathname || "/", r);
4422
+ let a = typeof t == "string" ? Me(t) : t, s = Oe(a.pathname || "/", r);
4423
4423
  if (s == null)
4424
4424
  return null;
4425
4425
  let d = nn(e);
@@ -4447,7 +4447,7 @@ function nn(e, t = [], r = [], i = "") {
4447
4447
  u.relativePath.startsWith(i),
4448
4448
  `Absolute route path "${u.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
4449
4449
  ), u.relativePath = u.relativePath.slice(i.length));
4450
- let c = Se([i, u.relativePath]), v = r.concat(u);
4450
+ let c = xe([i, u.relativePath]), v = r.concat(u);
4451
4451
  s.children && s.children.length > 0 && (ae(
4452
4452
  // Our types know better, but runtime JS may not!
4453
4453
  // @ts-expect-error
@@ -4530,12 +4530,12 @@ function Ea(e, t, r = !1) {
4530
4530
  Object.assign(a, w.params), d.push({
4531
4531
  // TODO: Can this as be avoided?
4532
4532
  params: a,
4533
- pathname: Se([s, w.pathname]),
4533
+ pathname: xe([s, w.pathname]),
4534
4534
  pathnameBase: Da(
4535
- Se([s, w.pathnameBase])
4535
+ xe([s, w.pathnameBase])
4536
4536
  ),
4537
4537
  route: x
4538
- }), w.pathnameBase !== "/" && (s = Se([s, w.pathnameBase]));
4538
+ }), w.pathnameBase !== "/" && (s = xe([s, w.pathnameBase]));
4539
4539
  }
4540
4540
  return d;
4541
4541
  }
@@ -4566,7 +4566,7 @@ function gt(e, t) {
4566
4566
  };
4567
4567
  }
4568
4568
  function Ra(e, t = !1, r = !0) {
4569
- ve(
4569
+ ge(
4570
4570
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
4571
4571
  `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
4572
4572
  );
@@ -4580,13 +4580,13 @@ function _a(e) {
4580
4580
  try {
4581
4581
  return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
4582
4582
  } catch (t) {
4583
- return ve(
4583
+ return ge(
4584
4584
  !1,
4585
4585
  `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
4586
4586
  ), e;
4587
4587
  }
4588
4588
  }
4589
- function xe(e, t) {
4589
+ function Oe(e, t) {
4590
4590
  if (t === "/") return e;
4591
4591
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
4592
4592
  return null;
@@ -4655,7 +4655,7 @@ function sn(e, t, r, i = !1) {
4655
4655
  let u = Ta(a, l), c = d && d !== "/" && d.endsWith("/"), v = (s || d === ".") && r.endsWith("/");
4656
4656
  return !u.pathname.endsWith("/") && (c || v) && (u.pathname += "/"), u;
4657
4657
  }
4658
- var Se = (e) => e.join("/").replace(/\/\/+/g, "/"), Da = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ma = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, $a = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
4658
+ var xe = (e) => e.join("/").replace(/\/\/+/g, "/"), Da = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ma = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, $a = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
4659
4659
  function Ia(e) {
4660
4660
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
4661
4661
  }
@@ -4687,20 +4687,20 @@ var Ha = M.createContext(
4687
4687
  Ha.displayName = "Fetchers";
4688
4688
  var za = M.createContext(null);
4689
4689
  za.displayName = "Await";
4690
- var we = M.createContext(
4690
+ var Se = M.createContext(
4691
4691
  null
4692
4692
  );
4693
- we.displayName = "Navigation";
4693
+ Se.displayName = "Navigation";
4694
4694
  var Ze = M.createContext(
4695
4695
  null
4696
4696
  );
4697
4697
  Ze.displayName = "Location";
4698
- var Oe = M.createContext({
4698
+ var ke = M.createContext({
4699
4699
  outlet: null,
4700
4700
  matches: [],
4701
4701
  isDataRoute: !1
4702
4702
  });
4703
- Oe.displayName = "Route";
4703
+ ke.displayName = "Route";
4704
4704
  var Gt = M.createContext(null);
4705
4705
  Gt.displayName = "RouteError";
4706
4706
  function Na(e, { relative: t } = {}) {
@@ -4710,13 +4710,13 @@ function Na(e, { relative: t } = {}) {
4710
4710
  // router loaded. We can help them understand how to avoid that.
4711
4711
  "useHref() may be used only in the context of a <Router> component."
4712
4712
  );
4713
- let { basename: r, navigator: i } = M.useContext(we), { hash: a, pathname: s, search: d } = et(e, { relative: t }), l = s;
4714
- return r !== "/" && (l = s === "/" ? r : Se([r, s])), i.createHref({ pathname: l, search: d, hash: a });
4713
+ let { basename: r, navigator: i } = M.useContext(Se), { hash: a, pathname: s, search: d } = et(e, { relative: t }), l = s;
4714
+ return r !== "/" && (l = s === "/" ? r : xe([r, s])), i.createHref({ pathname: l, search: d, hash: a });
4715
4715
  }
4716
4716
  function Qe() {
4717
4717
  return M.useContext(Ze) != null;
4718
4718
  }
4719
- function ke() {
4719
+ function Ce() {
4720
4720
  return ae(
4721
4721
  Qe(),
4722
4722
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -4726,10 +4726,10 @@ function ke() {
4726
4726
  }
4727
4727
  var cn = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
4728
4728
  function fn(e) {
4729
- M.useContext(we).static || M.useLayoutEffect(e);
4729
+ M.useContext(Se).static || M.useLayoutEffect(e);
4730
4730
  }
4731
4731
  function Kt() {
4732
- let { isDataRoute: e } = M.useContext(Oe);
4732
+ let { isDataRoute: e } = M.useContext(ke);
4733
4733
  return e ? Qa() : Fa();
4734
4734
  }
4735
4735
  function Fa() {
@@ -4739,12 +4739,12 @@ function Fa() {
4739
4739
  // router loaded. We can help them understand how to avoid that.
4740
4740
  "useNavigate() may be used only in the context of a <Router> component."
4741
4741
  );
4742
- let e = M.useContext($e), { basename: t, navigator: r } = M.useContext(we), { matches: i } = M.useContext(Oe), { pathname: a } = ke(), s = JSON.stringify(on(i)), d = M.useRef(!1);
4742
+ let e = M.useContext($e), { basename: t, navigator: r } = M.useContext(Se), { matches: i } = M.useContext(ke), { pathname: a } = Ce(), s = JSON.stringify(on(i)), d = M.useRef(!1);
4743
4743
  return fn(() => {
4744
4744
  d.current = !0;
4745
4745
  }), M.useCallback(
4746
4746
  (u, c = {}) => {
4747
- if (ve(d.current, cn), !d.current) return;
4747
+ if (ge(d.current, cn), !d.current) return;
4748
4748
  if (typeof u == "number") {
4749
4749
  r.go(u);
4750
4750
  return;
@@ -4755,7 +4755,7 @@ function Fa() {
4755
4755
  a,
4756
4756
  c.relative === "path"
4757
4757
  );
4758
- e == null && t !== "/" && (v.pathname = v.pathname === "/" ? t : Se([t, v.pathname])), (c.replace ? r.replace : r.push)(
4758
+ e == null && t !== "/" && (v.pathname = v.pathname === "/" ? t : xe([t, v.pathname])), (c.replace ? r.replace : r.push)(
4759
4759
  v,
4760
4760
  c.state,
4761
4761
  c
@@ -4772,7 +4772,7 @@ function Fa() {
4772
4772
  }
4773
4773
  M.createContext(null);
4774
4774
  function et(e, { relative: t } = {}) {
4775
- let { matches: r } = M.useContext(Oe), { pathname: i } = ke(), a = JSON.stringify(on(r));
4775
+ let { matches: r } = M.useContext(ke), { pathname: i } = Ce(), a = JSON.stringify(on(r));
4776
4776
  return M.useMemo(
4777
4777
  () => sn(
4778
4778
  e,
@@ -4793,7 +4793,7 @@ function dn(e, t, r, i) {
4793
4793
  // router loaded. We can help them understand how to avoid that.
4794
4794
  "useRoutes() may be used only in the context of a <Router> component."
4795
4795
  );
4796
- let { navigator: a } = M.useContext(we), { matches: s } = M.useContext(Oe), d = s[s.length - 1], l = d ? d.params : {}, u = d ? d.pathname : "/", c = d ? d.pathnameBase : "/", v = d && d.route;
4796
+ let { navigator: a } = M.useContext(Se), { matches: s } = M.useContext(ke), d = s[s.length - 1], l = d ? d.params : {}, u = d ? d.pathname : "/", c = d ? d.pathnameBase : "/", v = d && d.route;
4797
4797
  {
4798
4798
  let k = v && v.path || "";
4799
4799
  hn(
@@ -4804,7 +4804,7 @@ function dn(e, t, r, i) {
4804
4804
  Please change the parent <Route path="${k}"> to <Route path="${k === "/" ? "*" : `${k}/*`}">.`
4805
4805
  );
4806
4806
  }
4807
- let w = ke(), x;
4807
+ let w = Ce(), x;
4808
4808
  if (t) {
4809
4809
  let k = typeof t == "string" ? Me(t) : t;
4810
4810
  ae(
@@ -4819,10 +4819,10 @@ Please change the parent <Route path="${k}"> to <Route path="${k === "/" ? "*" :
4819
4819
  C = "/" + L.replace(/^\//, "").split("/").slice(k.length).join("/");
4820
4820
  }
4821
4821
  let p = rn(e, { pathname: C });
4822
- ve(
4822
+ ge(
4823
4823
  v || p != null,
4824
4824
  `No routes matched location "${x.pathname}${x.search}${x.hash}" `
4825
- ), ve(
4825
+ ), ge(
4826
4826
  p == null || p[p.length - 1].route.element !== void 0 || p[p.length - 1].route.Component !== void 0 || p[p.length - 1].route.lazy !== void 0,
4827
4827
  `Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
4828
4828
  );
@@ -4830,12 +4830,12 @@ Please change the parent <Route path="${k}"> to <Route path="${k === "/" ? "*" :
4830
4830
  p && p.map(
4831
4831
  (k) => Object.assign({}, k, {
4832
4832
  params: Object.assign({}, l, k.params),
4833
- pathname: Se([
4833
+ pathname: xe([
4834
4834
  c,
4835
4835
  // Re-encode pathnames that were decoded inside matchRoutes
4836
4836
  a.encodeLocation ? a.encodeLocation(k.pathname).pathname : k.pathname
4837
4837
  ]),
4838
- pathnameBase: k.pathnameBase === "/" ? c : Se([
4838
+ pathnameBase: k.pathnameBase === "/" ? c : xe([
4839
4839
  c,
4840
4840
  // Re-encode pathnames that were decoded inside matchRoutes
4841
4841
  a.encodeLocation ? a.encodeLocation(k.pathnameBase).pathname : k.pathnameBase
@@ -4902,7 +4902,7 @@ var Ya = /* @__PURE__ */ M.createElement(Ua, null), Va = class extends M.Compone
4902
4902
  );
4903
4903
  }
4904
4904
  render() {
4905
- return this.state.error !== void 0 ? /* @__PURE__ */ M.createElement(Oe.Provider, { value: this.props.routeContext }, /* @__PURE__ */ M.createElement(
4905
+ return this.state.error !== void 0 ? /* @__PURE__ */ M.createElement(ke.Provider, { value: this.props.routeContext }, /* @__PURE__ */ M.createElement(
4906
4906
  Gt.Provider,
4907
4907
  {
4908
4908
  value: this.state.error,
@@ -4913,7 +4913,7 @@ var Ya = /* @__PURE__ */ M.createElement(Ua, null), Va = class extends M.Compone
4913
4913
  };
4914
4914
  function qa({ routeContext: e, match: t, children: r }) {
4915
4915
  let i = M.useContext($e);
4916
- return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ M.createElement(Oe.Provider, { value: e }, r);
4916
+ return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ M.createElement(ke.Provider, { value: e }, r);
4917
4917
  }
4918
4918
  function Ba(e, t = [], r = null, i = null) {
4919
4919
  if (e == null) {
@@ -5000,7 +5000,7 @@ function Ga(e) {
5000
5000
  return ae(t, Jt(e)), t;
5001
5001
  }
5002
5002
  function Ka(e) {
5003
- let t = M.useContext(Oe);
5003
+ let t = M.useContext(ke);
5004
5004
  return ae(t, Jt(e)), t;
5005
5005
  }
5006
5006
  function Zt(e) {
@@ -5038,14 +5038,14 @@ function Qa() {
5038
5038
  r.current = !0;
5039
5039
  }), M.useCallback(
5040
5040
  async (a, s = {}) => {
5041
- ve(r.current, cn), r.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: t, ...s }));
5041
+ ge(r.current, cn), r.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: t, ...s }));
5042
5042
  },
5043
5043
  [e, t]
5044
5044
  );
5045
5045
  }
5046
5046
  var Lr = {};
5047
5047
  function hn(e, t, r) {
5048
- !t && !Lr[e] && (Lr[e] = !0, ve(!1, r));
5048
+ !t && !Lr[e] && (Lr[e] = !0, ge(!1, r));
5049
5049
  }
5050
5050
  M.memo(eo);
5051
5051
  function eo({
@@ -5090,7 +5090,7 @@ function to({
5090
5090
  state: w = null,
5091
5091
  key: x = "default"
5092
5092
  } = r, L = M.useMemo(() => {
5093
- let C = xe(u, d);
5093
+ let C = Oe(u, d);
5094
5094
  return C == null ? null : {
5095
5095
  location: {
5096
5096
  pathname: C,
@@ -5102,10 +5102,10 @@ function to({
5102
5102
  navigationType: i
5103
5103
  };
5104
5104
  }, [d, u, c, v, w, x, i]);
5105
- return ve(
5105
+ return ge(
5106
5106
  L != null,
5107
5107
  `<Router basename="${d}"> is not able to match the URL "${u}${c}${v}" because it does not start with the basename, so the <Router> won't render anything.`
5108
- ), L == null ? null : /* @__PURE__ */ M.createElement(we.Provider, { value: l }, /* @__PURE__ */ M.createElement(Ze.Provider, { children: t, value: L }));
5108
+ ), L == null ? null : /* @__PURE__ */ M.createElement(Se.Provider, { value: l }, /* @__PURE__ */ M.createElement(Ze.Provider, { children: t, value: L }));
5109
5109
  }
5110
5110
  function ro({
5111
5111
  children: e,
@@ -5216,7 +5216,7 @@ var co = /* @__PURE__ */ new Set([
5216
5216
  "text/plain"
5217
5217
  ]);
5218
5218
  function It(e) {
5219
- return e != null && !co.has(e) ? (ve(
5219
+ return e != null && !co.has(e) ? (ge(
5220
5220
  !1,
5221
5221
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ct}"`
5222
5222
  ), null) : e;
@@ -5225,7 +5225,7 @@ function fo(e, t) {
5225
5225
  let r, i, a, s, d;
5226
5226
  if (io(e)) {
5227
5227
  let l = e.getAttribute("action");
5228
- i = l ? xe(l, t) : null, r = e.getAttribute("method") || ut, a = It(e.getAttribute("enctype")) || ct, s = new FormData(e);
5228
+ i = l ? Oe(l, t) : null, r = e.getAttribute("method") || ut, a = It(e.getAttribute("enctype")) || ct, s = new FormData(e);
5229
5229
  } else if (no(e) || ao(e) && (e.type === "submit" || e.type === "image")) {
5230
5230
  let l = e.form;
5231
5231
  if (l == null)
@@ -5233,7 +5233,7 @@ function fo(e, t) {
5233
5233
  'Cannot submit a <button> or <input type="submit"> without a <form>'
5234
5234
  );
5235
5235
  let u = e.getAttribute("formaction") || l.getAttribute("action");
5236
- if (i = u ? xe(u, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || ut, a = It(e.getAttribute("formenctype")) || It(l.getAttribute("enctype")) || ct, s = new FormData(l, e), !uo()) {
5236
+ if (i = u ? Oe(u, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || ut, a = It(e.getAttribute("formenctype")) || It(l.getAttribute("enctype")) || ct, s = new FormData(l, e), !uo()) {
5237
5237
  let { name: c, type: v, value: w } = e;
5238
5238
  if (v === "image") {
5239
5239
  let x = c ? `${c}.` : "";
@@ -5357,7 +5357,7 @@ function So(e, t) {
5357
5357
  // don't assume window is available
5358
5358
  typeof window > "u" ? "server://singlefetch/" : window.location.origin
5359
5359
  ) : e;
5360
- return r.pathname === "/" ? r.pathname = "_root.data" : t && xe(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
5360
+ return r.pathname === "/" ? r.pathname = "_root.data" : t && Oe(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
5361
5361
  }
5362
5362
  function mn() {
5363
5363
  let e = M.useContext($e);
@@ -5455,7 +5455,7 @@ function Po({
5455
5455
  matches: t,
5456
5456
  ...r
5457
5457
  }) {
5458
- let i = ke(), { manifest: a, routeModules: s } = vn(), { basename: d } = mn(), { loaderData: l, matches: u } = xo(), c = M.useMemo(
5458
+ let i = Ce(), { manifest: a, routeModules: s } = vn(), { basename: d } = mn(), { loaderData: l, matches: u } = xo(), c = M.useMemo(
5459
5459
  () => Dr(
5460
5460
  e,
5461
5461
  t,
@@ -5562,13 +5562,13 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = M.forwardRef(
5562
5562
  viewTransition: w,
5563
5563
  ...x
5564
5564
  }, L) {
5565
- let { basename: C } = M.useContext(we), p = typeof c == "string" && yn.test(c), I, k = !1;
5565
+ let { basename: C } = M.useContext(Se), p = typeof c == "string" && yn.test(c), I, k = !1;
5566
5566
  if (typeof c == "string" && p && (I = c, gn))
5567
5567
  try {
5568
- let y = new URL(window.location.href), h = c.startsWith("//") ? new URL(y.protocol + c) : new URL(c), P = xe(h.pathname, C);
5568
+ let y = new URL(window.location.href), h = c.startsWith("//") ? new URL(y.protocol + c) : new URL(c), P = Oe(h.pathname, C);
5569
5569
  h.origin === y.origin && P != null ? c = P + h.search + h.hash : k = !0;
5570
5570
  } catch {
5571
- ve(
5571
+ ge(
5572
5572
  !1,
5573
5573
  `<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
5574
5574
  );
@@ -5618,10 +5618,10 @@ var _o = M.forwardRef(
5618
5618
  children: u,
5619
5619
  ...c
5620
5620
  }, v) {
5621
- let w = et(d, { relative: c.relative }), x = ke(), L = M.useContext(Ot), { navigator: C, basename: p } = M.useContext(we), I = L != null && // Conditional usage is OK here because the usage of a data router is static
5621
+ let w = et(d, { relative: c.relative }), x = Ce(), L = M.useContext(Ot), { navigator: C, basename: p } = M.useContext(Se), I = L != null && // Conditional usage is OK here because the usage of a data router is static
5622
5622
  // eslint-disable-next-line react-hooks/rules-of-hooks
5623
5623
  Ho(w) && l === !0, k = C.encodeLocation ? C.encodeLocation(w).pathname : w.pathname, F = x.pathname, U = L && L.navigation && L.navigation.location ? L.navigation.location.pathname : null;
5624
- r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, k = k.toLowerCase()), U && p && (U = xe(U, p) || U);
5624
+ r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, k = k.toLowerCase()), U && p && (U = Oe(U, p) || U);
5625
5625
  const q = k !== "/" && k.endsWith("/") ? k.length - 1 : k.length;
5626
5626
  let g = F === k || !a && F.startsWith(k) && F.charAt(q) === "/", b = U != null && (U === k || !a && U.startsWith(k) && U.charAt(k.length) === "/"), S = {
5627
5627
  isActive: g,
@@ -5711,7 +5711,7 @@ function Lo(e, {
5711
5711
  relative: s,
5712
5712
  viewTransition: d
5713
5713
  } = {}) {
5714
- let l = Kt(), u = ke(), c = et(e, { relative: s });
5714
+ let l = Kt(), u = Ce(), c = et(e, { relative: s });
5715
5715
  return M.useCallback(
5716
5716
  (v) => {
5717
5717
  if (so(v, t)) {
@@ -5741,11 +5741,11 @@ function Lo(e, {
5741
5741
  );
5742
5742
  }
5743
5743
  function Do(e) {
5744
- ve(
5744
+ ge(
5745
5745
  typeof URLSearchParams < "u",
5746
5746
  "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
5747
5747
  );
5748
- let t = M.useRef(Ut(e)), r = M.useRef(!1), i = ke(), a = M.useMemo(
5748
+ let t = M.useRef(Ut(e)), r = M.useRef(!1), i = Ce(), a = M.useMemo(
5749
5749
  () => (
5750
5750
  // Only merge in the defaults if we haven't yet called setSearchParams.
5751
5751
  // Once we call that we want those to take precedence, otherwise you can't
@@ -5772,7 +5772,7 @@ function Io() {
5772
5772
  let { router: e } = wn(
5773
5773
  "useSubmit"
5774
5774
  /* UseSubmit */
5775
- ), { basename: t } = M.useContext(we), r = Ja();
5775
+ ), { basename: t } = M.useContext(Se), r = Ja();
5776
5776
  return M.useCallback(
5777
5777
  async (i, a = {}) => {
5778
5778
  let { action: s, method: d, encType: l, formData: u, body: c } = fo(
@@ -5807,9 +5807,9 @@ function Io() {
5807
5807
  );
5808
5808
  }
5809
5809
  function Ao(e, { relative: t } = {}) {
5810
- let { basename: r } = M.useContext(we), i = M.useContext(Oe);
5810
+ let { basename: r } = M.useContext(Se), i = M.useContext(ke);
5811
5811
  ae(i, "useFormAction must be used inside a RouteContext");
5812
- let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, d = ke();
5812
+ let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, d = Ce();
5813
5813
  if (e == null) {
5814
5814
  s.search = d.search;
5815
5815
  let l = new URLSearchParams(s.search), u = l.getAll("index");
@@ -5819,7 +5819,7 @@ function Ao(e, { relative: t } = {}) {
5819
5819
  s.search = v ? `?${v}` : "";
5820
5820
  }
5821
5821
  }
5822
- return (!e || e === ".") && a.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (s.pathname = s.pathname === "/" ? r : Se([r, s.pathname])), Ge(s);
5822
+ return (!e || e === ".") && a.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (s.pathname = s.pathname === "/" ? r : xe([r, s.pathname])), Ge(s);
5823
5823
  }
5824
5824
  function Ho(e, t = {}) {
5825
5825
  let r = M.useContext(un);
@@ -5833,7 +5833,7 @@ function Ho(e, t = {}) {
5833
5833
  ), a = et(e, { relative: t.relative });
5834
5834
  if (!r.isTransitioning)
5835
5835
  return !1;
5836
- let s = xe(r.currentLocation.pathname, i) || r.currentLocation.pathname, d = xe(r.nextLocation.pathname, i) || r.nextLocation.pathname;
5836
+ let s = Oe(r.currentLocation.pathname, i) || r.currentLocation.pathname, d = Oe(r.nextLocation.pathname, i) || r.nextLocation.pathname;
5837
5837
  return gt(a.pathname, d) != null || gt(a.pathname, s) != null;
5838
5838
  }
5839
5839
  [
@@ -5850,7 +5850,7 @@ const Sn = V.createContext({
5850
5850
  const [e, t] = Do(), r = Hr(
5851
5851
  () => Object.fromEntries(e.entries()),
5852
5852
  [e]
5853
- ), i = _e(
5853
+ ), i = ve(
5854
5854
  (c) => {
5855
5855
  const v = {};
5856
5856
  return c.forEach((w) => {
@@ -5858,19 +5858,19 @@ const Sn = V.createContext({
5858
5858
  }), v;
5859
5859
  },
5860
5860
  [e]
5861
- ), a = _e(
5861
+ ), a = ve(
5862
5862
  (c) => {
5863
5863
  const v = e.get(c);
5864
5864
  return v == null || v == null, v;
5865
5865
  },
5866
5866
  [e]
5867
- ), s = _e(
5867
+ ), s = ve(
5868
5868
  (c, v) => {
5869
5869
  const w = new URLSearchParams(e);
5870
5870
  w.set(c, String(v)), t(w);
5871
5871
  },
5872
5872
  [e, t]
5873
- ), d = _e(
5873
+ ), d = ve(
5874
5874
  (c) => {
5875
5875
  const v = new URLSearchParams(e);
5876
5876
  Object.entries(c).forEach(([w, x]) => {
@@ -5878,13 +5878,13 @@ const Sn = V.createContext({
5878
5878
  }), t(v);
5879
5879
  },
5880
5880
  [e, t]
5881
- ), l = _e(
5881
+ ), l = ve(
5882
5882
  (c) => {
5883
5883
  const v = new URLSearchParams(e);
5884
5884
  v.delete(c), t(v);
5885
5885
  },
5886
5886
  [e, t]
5887
- ), u = _e(
5887
+ ), u = ve(
5888
5888
  (c) => {
5889
5889
  const v = new URLSearchParams(e);
5890
5890
  c.forEach((w) => {
@@ -5903,7 +5903,7 @@ const Sn = V.createContext({
5903
5903
  removeMany: u
5904
5904
  };
5905
5905
  }, hs = () => {
5906
- const e = Kt(), t = ke(), r = zo(), i = Yt(Sn), a = (l) => {
5906
+ const e = Kt(), t = Ce(), r = zo(), i = Yt(Sn), a = (l) => {
5907
5907
  const u = new URL(l.path, "http://dummy-base");
5908
5908
  return l.params && Object.entries(l.params).forEach(([c, v]) => {
5909
5909
  v != null && u.searchParams.set(c, String(v));
@@ -6165,13 +6165,17 @@ const Sn = V.createContext({
6165
6165
  return c;
6166
6166
  }, l = V.useCallback(
6167
6167
  async (c) => {
6168
- if (a.current)
6169
- return;
6170
- a.current = !0, e?.(), c.preventDefault(), c.stopPropagation();
6171
- let v = s(c);
6172
- v = await Promise.all(
6173
- v.map(async (w) => await d(w))
6174
- ), a.current = !1, t?.(v);
6168
+ try {
6169
+ if (a.current)
6170
+ return;
6171
+ a.current = !0, e?.(), c.preventDefault(), c.stopPropagation();
6172
+ let v = s(c);
6173
+ v = await Promise.all(
6174
+ v.map(async (w) => await d(w))
6175
+ ), a.current = !1, t?.(v);
6176
+ } catch (v) {
6177
+ a.current = !1, console.error("Form > OnSubmit > Error submitting: ", v);
6178
+ }
6175
6179
  },
6176
6180
  [t, e]
6177
6181
  );
@@ -6182,7 +6186,7 @@ const Sn = V.createContext({
6182
6186
  },
6183
6187
  handleFormSubmission: l
6184
6188
  };
6185
- }, Wo = Pe.div`
6189
+ }, Wo = Ee.div`
6186
6190
  display: flex;
6187
6191
  width: 100%;
6188
6192
  align-items: center;
@@ -6269,7 +6273,7 @@ const Sn = V.createContext({
6269
6273
  onValueChanged: (a) => {
6270
6274
  e.onChange?.(a.currentTarget.value);
6271
6275
  }
6272
- }), Yo = Pe.div`
6276
+ }), Yo = Ee.div`
6273
6277
  display: flex;
6274
6278
  flex-direction: column;
6275
6279
  font-family: inherit;
@@ -6462,41 +6466,47 @@ const Sn = V.createContext({
6462
6466
  }
6463
6467
  ) });
6464
6468
  }, qo = (e) => {
6465
- const t = Pn("");
6466
- function r(l) {
6467
- return e.allowNegatives ? (l = l.replace(/-/g, (u, c) => c === 0 ? "-" : ""), l.indexOf("-") > 0 && (l = l.replace(/-/g, ""), l = "-" + l)) : l = l.replace(/-/g, ""), l;
6468
- }
6469
- function i(l) {
6470
- if (e.allowDecimals) {
6471
- l.startsWith(".") && (l = "0" + l), l.length === 2 && l[0] === "-" && l[1] === "." && (l = "-");
6472
- const u = l.indexOf(".");
6473
- u !== -1 && (l = l.slice(0, u + 1) + l.slice(u + 1).replace(/\./g, ""));
6474
- const [c, ...v] = l.split("."), [w, ...x] = t.current.split(".");
6475
- let L = v.join(""), C = x.join("");
6476
- e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = C : L = L.slice(0, e.decimalScale)), l = L || l.endsWith(".") ? `${c}.${L}` : c;
6477
- } else
6478
- l = l.replace(/\./g, "");
6479
- return l;
6480
- }
6481
- function a(l) {
6482
- const u = Number(l);
6483
- var c = e.max;
6484
- return c === void 0 && (c = e.maxLength ? Number("9".repeat(e.maxLength)) : void 0), !isNaN(u) && (e.min !== void 0 && u < e.min || c !== void 0 && u > c) ? t.current ?? l : l;
6485
- }
6486
- const s = (l) => {
6487
- const u = l.target, c = u.selectionStart ?? 0, v = u.selectionEnd ?? 0;
6488
- let w = u.value;
6489
- w = w.replace(/[^0-9\.\-]/g, ""), w = r(w), w = i(w), w = a(w);
6490
- const x = w.length - u.value.length;
6491
- u.value = w, u.setSelectionRange(c + x, v + x), t.current = w;
6492
- };
6469
+ const t = Pn(""), r = ve(
6470
+ (l) => (e.allowNegatives ? (l = l.replace(/-/g, (u, c) => c === 0 ? "-" : ""), l.indexOf("-") > 0 && (l = l.replace(/-/g, ""), l = "-" + l)) : l = l.replace(/-/g, ""), l),
6471
+ [e]
6472
+ ), i = ve(
6473
+ (l) => {
6474
+ if (e.allowDecimals) {
6475
+ l.startsWith(".") && (l = "0" + l), l.length === 2 && l[0] === "-" && l[1] === "." && (l = "-");
6476
+ const u = l.indexOf(".");
6477
+ u !== -1 && (l = l.slice(0, u + 1) + l.slice(u + 1).replace(/\./g, ""));
6478
+ const [c, ...v] = l.split("."), [w, ...x] = t.current.split(".");
6479
+ let L = v.join(""), C = x.join("");
6480
+ e.decimalScale !== void 0 && (L.length > e.decimalScale ? L = C : L = L.slice(0, e.decimalScale)), l = L || l.endsWith(".") ? `${c}.${L}` : c;
6481
+ } else
6482
+ l = l.replace(/\./g, "");
6483
+ return l;
6484
+ },
6485
+ [e]
6486
+ ), a = ve(
6487
+ (l) => {
6488
+ const u = Number(l);
6489
+ var c = e.max;
6490
+ return c === void 0 && (c = e.maxLength ? Number("9".repeat(e.maxLength)) : void 0), !isNaN(u) && (e.min !== void 0 && u < e.min || c !== void 0 && u > c) ? t.current ?? l : l;
6491
+ },
6492
+ [e]
6493
+ ), s = ve(
6494
+ (l) => {
6495
+ const u = l.target, c = u.selectionStart ?? 0, v = u.selectionEnd ?? 0;
6496
+ let w = u.value;
6497
+ w = w.replace(/[^0-9\.\-]/g, ""), w = r(w), w = i(w), w = a(w);
6498
+ const x = w.length - u.value.length;
6499
+ u.value = w, u.setSelectionRange(c + x, v + x), t.current = w;
6500
+ },
6501
+ [r, i, a]
6502
+ );
6493
6503
  return {
6494
- props: _e(() => ({
6504
+ props: ve(() => ({
6495
6505
  ...e,
6496
6506
  type: "text",
6497
6507
  pattern: "^-?[0-9]*.?[0-9]*$",
6498
6508
  onInput: s
6499
- }), [])()
6509
+ }), [e, s])()
6500
6510
  };
6501
6511
  }, Ss = ({
6502
6512
  allowNegatives: e = !0,
@@ -6541,7 +6551,7 @@ const Sn = V.createContext({
6541
6551
  extraHeight: c()
6542
6552
  }
6543
6553
  };
6544
- }, Xo = Pe.div`
6554
+ }, Xo = Ee.div`
6545
6555
  min-height: 100%;
6546
6556
  max-height: 100%;
6547
6557
  width: 100%;
@@ -7206,7 +7216,7 @@ const Ps = ({
7206
7216
  }
7207
7217
  )
7208
7218
  }
7209
- ), ns = Pe.div`
7219
+ ), ns = Ee.div`
7210
7220
  display: flex;
7211
7221
  flex-direction: column;
7212
7222
  font-family: inherit;