@hari_digitus/sms-ui-library 5.0.9 → 5.0.11

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.
@@ -37,35 +37,35 @@ var ie = {};
37
37
  var gt;
38
38
  function yr() {
39
39
  return gt || (gt = 1, process.env.NODE_ENV !== "production" && (function() {
40
- var e = wt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), R = Symbol.iterator, b = "@@iterator";
40
+ var e = wt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), b = Symbol.iterator, E = "@@iterator";
41
41
  function g(r) {
42
42
  if (r === null || typeof r != "object")
43
43
  return null;
44
- var d = R && r[R] || r[b];
44
+ var d = b && r[b] || r[E];
45
45
  return typeof d == "function" ? d : null;
46
46
  }
47
- var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function E(r) {
47
+ var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
+ function R(r) {
49
49
  {
50
50
  for (var d = arguments.length, p = new Array(d > 1 ? d - 1 : 0), x = 1; x < d; x++)
51
51
  p[x - 1] = arguments[x];
52
- T("error", r, p);
52
+ _("error", r, p);
53
53
  }
54
54
  }
55
- function T(r, d, p) {
55
+ function _(r, d, p) {
56
56
  {
57
- var x = C.ReactDebugCurrentFrame, _ = x.getStackAddendum();
58
- _ !== "" && (d += "%s", p = p.concat([_]));
57
+ var x = w.ReactDebugCurrentFrame, T = x.getStackAddendum();
58
+ T !== "" && (d += "%s", p = p.concat([T]));
59
59
  var k = p.map(function(S) {
60
60
  return String(S);
61
61
  });
62
62
  k.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, k);
63
63
  }
64
64
  }
65
- var I = !1, $ = !1, A = !1, H = !1, z = !1, K;
65
+ var $ = !1, j = !1, A = !1, H = !1, z = !1, K;
66
66
  K = Symbol.for("react.module.reference");
67
67
  function re(r) {
68
- return !!(typeof r == "string" || typeof r == "function" || r === a || r === o || z || r === i || r === m || r === f || H || r === y || I || $ || A || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === h || r.$$typeof === l || r.$$typeof === c || r.$$typeof === s || // This needs to include all possible module reference object
68
+ return !!(typeof r == "string" || typeof r == "function" || r === a || r === o || z || r === i || r === m || r === f || H || r === y || $ || j || A || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === h || r.$$typeof === l || r.$$typeof === c || r.$$typeof === s || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
@@ -75,8 +75,8 @@ function yr() {
75
75
  var x = r.displayName;
76
76
  if (x)
77
77
  return x;
78
- var _ = d.displayName || d.name || "";
79
- return _ !== "" ? p + "(" + _ + ")" : p;
78
+ var T = d.displayName || d.name || "";
79
+ return T !== "" ? p + "(" + T + ")" : p;
80
80
  }
81
81
  function se(r) {
82
82
  return r.displayName || "Context";
@@ -84,7 +84,7 @@ function yr() {
84
84
  function W(r) {
85
85
  if (r == null)
86
86
  return null;
87
- if (typeof r.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
87
+ if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
88
88
  return r.displayName || r.name || null;
89
89
  if (typeof r == "string")
90
90
  return r;
@@ -116,7 +116,7 @@ function yr() {
116
116
  var x = r.displayName || null;
117
117
  return x !== null ? x : W(r.type) || "Memo";
118
118
  case v: {
119
- var _ = r, k = _._payload, S = _._init;
119
+ var T = r, k = T._payload, S = T._init;
120
120
  try {
121
121
  return W(S(k));
122
122
  } catch {
@@ -126,13 +126,13 @@ function yr() {
126
126
  }
127
127
  return null;
128
128
  }
129
- var V = Object.assign, F = 0, qe, ze, Ke, Ge, Xe, Ze, Qe;
129
+ var V = Object.assign, N = 0, qe, ze, Ke, Ge, Xe, Ze, Qe;
130
130
  function et() {
131
131
  }
132
132
  et.__reactDisabledLog = !0;
133
133
  function Vt() {
134
134
  {
135
- if (F === 0) {
135
+ if (N === 0) {
136
136
  qe = console.log, ze = console.info, Ke = console.warn, Ge = console.error, Xe = console.group, Ze = console.groupCollapsed, Qe = console.groupEnd;
137
137
  var r = {
138
138
  configurable: !0,
@@ -150,12 +150,12 @@ function yr() {
150
150
  groupEnd: r
151
151
  });
152
152
  }
153
- F++;
153
+ N++;
154
154
  }
155
155
  }
156
156
  function Yt() {
157
157
  {
158
- if (F--, F === 0) {
158
+ if (N--, N === 0) {
159
159
  var r = {
160
160
  configurable: !0,
161
161
  enumerable: !0,
@@ -185,17 +185,17 @@ function yr() {
185
185
  })
186
186
  });
187
187
  }
188
- F < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ N < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
189
  }
190
190
  }
191
- var Ce = C.ReactCurrentDispatcher, Se;
191
+ var Ce = w.ReactCurrentDispatcher, Se;
192
192
  function ue(r, d, p) {
193
193
  {
194
194
  if (Se === void 0)
195
195
  try {
196
196
  throw Error();
197
- } catch (_) {
198
- var x = _.stack.trim().match(/\n( *(at )?)/);
197
+ } catch (T) {
198
+ var x = T.stack.trim().match(/\n( *(at )?)/);
199
199
  Se = x && x[1] || "";
200
200
  }
201
201
  return `
@@ -217,7 +217,7 @@ function yr() {
217
217
  }
218
218
  var x;
219
219
  Pe = !0;
220
- var _ = Error.prepareStackTrace;
220
+ var T = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
222
  var k;
223
223
  k = Ce.current, Ce.current = null, Vt();
@@ -233,47 +233,47 @@ function yr() {
233
233
  }), typeof Reflect == "object" && Reflect.construct) {
234
234
  try {
235
235
  Reflect.construct(S, []);
236
- } catch (N) {
237
- x = N;
236
+ } catch (I) {
237
+ x = I;
238
238
  }
239
239
  Reflect.construct(r, [], S);
240
240
  } else {
241
241
  try {
242
242
  S.call();
243
- } catch (N) {
244
- x = N;
243
+ } catch (I) {
244
+ x = I;
245
245
  }
246
246
  r.call(S.prototype);
247
247
  }
248
248
  } else {
249
249
  try {
250
250
  throw Error();
251
- } catch (N) {
252
- x = N;
251
+ } catch (I) {
252
+ x = I;
253
253
  }
254
254
  r();
255
255
  }
256
- } catch (N) {
257
- if (N && x && typeof N.stack == "string") {
258
- for (var w = N.stack.split(`
259
- `), D = x.stack.split(`
260
- `), j = w.length - 1, L = D.length - 1; j >= 1 && L >= 0 && w[j] !== D[L]; )
261
- L--;
262
- for (; j >= 1 && L >= 0; j--, L--)
263
- if (w[j] !== D[L]) {
264
- if (j !== 1 || L !== 1)
256
+ } catch (I) {
257
+ if (I && x && typeof I.stack == "string") {
258
+ for (var C = I.stack.split(`
259
+ `), F = x.stack.split(`
260
+ `), L = C.length - 1, O = F.length - 1; L >= 1 && O >= 0 && C[L] !== F[O]; )
261
+ O--;
262
+ for (; L >= 1 && O >= 0; L--, O--)
263
+ if (C[L] !== F[O]) {
264
+ if (L !== 1 || O !== 1)
265
265
  do
266
- if (j--, L--, L < 0 || w[j] !== D[L]) {
266
+ if (L--, O--, O < 0 || C[L] !== F[O]) {
267
267
  var M = `
268
- ` + w[j].replace(" at new ", " at ");
268
+ ` + C[L].replace(" at new ", " at ");
269
269
  return r.displayName && M.includes("<anonymous>") && (M = M.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, M), M;
270
270
  }
271
- while (j >= 1 && L >= 0);
271
+ while (L >= 1 && O >= 0);
272
272
  break;
273
273
  }
274
274
  }
275
275
  } finally {
276
- Pe = !1, Ce.current = k, Yt(), Error.prepareStackTrace = _;
276
+ Pe = !1, Ce.current = k, Yt(), Error.prepareStackTrace = T;
277
277
  }
278
278
  var ee = r ? r.displayName || r.name : "", X = ee ? ue(ee) : "";
279
279
  return typeof r == "function" && ce.set(r, X), X;
@@ -305,16 +305,16 @@ function yr() {
305
305
  case h:
306
306
  return fe(r.type, d, p);
307
307
  case v: {
308
- var x = r, _ = x._payload, k = x._init;
308
+ var x = r, T = x._payload, k = x._init;
309
309
  try {
310
- return fe(k(_), d, p);
310
+ return fe(k(T), d, p);
311
311
  } catch {
312
312
  }
313
313
  }
314
314
  }
315
315
  return "";
316
316
  }
317
- var ne = Object.prototype.hasOwnProperty, rt = {}, nt = C.ReactDebugCurrentFrame;
317
+ var ne = Object.prototype.hasOwnProperty, rt = {}, nt = w.ReactDebugCurrentFrame;
318
318
  function de(r) {
319
319
  if (r) {
320
320
  var d = r._owner, p = fe(r.type, r._source, d ? d.type : null);
@@ -322,22 +322,22 @@ function yr() {
322
322
  } else
323
323
  nt.setExtraStackFrame(null);
324
324
  }
325
- function Kt(r, d, p, x, _) {
325
+ function Kt(r, d, p, x, T) {
326
326
  {
327
327
  var k = Function.call.bind(ne);
328
328
  for (var S in r)
329
329
  if (k(r, S)) {
330
- var w = void 0;
330
+ var C = void 0;
331
331
  try {
332
332
  if (typeof r[S] != "function") {
333
- var D = Error((x || "React class") + ": " + p + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
- throw D.name = "Invariant Violation", D;
333
+ var F = Error((x || "React class") + ": " + p + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
+ throw F.name = "Invariant Violation", F;
335
335
  }
336
- w = r[S](d, S, x, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (j) {
338
- w = j;
336
+ C = r[S](d, S, x, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
+ } catch (L) {
338
+ C = L;
339
339
  }
340
- w && !(w instanceof Error) && (de(_), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", p, S, typeof w), de(null)), w instanceof Error && !(w.message in rt) && (rt[w.message] = !0, de(_), E("Failed %s type: %s", p, w.message), de(null));
340
+ C && !(C instanceof Error) && (de(T), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", p, S, typeof C), de(null)), C instanceof Error && !(C.message in rt) && (rt[C.message] = !0, de(T), R("Failed %s type: %s", p, C.message), de(null));
341
341
  }
342
342
  }
343
343
  }
@@ -363,9 +363,9 @@ function yr() {
363
363
  }
364
364
  function it(r) {
365
365
  if (Zt(r))
366
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xt(r)), at(r);
366
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xt(r)), at(r);
367
367
  }
368
- var ot = C.ReactCurrentOwner, Qt = {
368
+ var ot = w.ReactCurrentOwner, Qt = {
369
369
  key: !0,
370
370
  ref: !0,
371
371
  __self: !0,
@@ -393,7 +393,7 @@ function yr() {
393
393
  function nr(r, d) {
394
394
  {
395
395
  var p = function() {
396
- lt || (lt = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
396
+ lt || (lt = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
397
397
  };
398
398
  p.isReactWarning = !0, Object.defineProperty(r, "key", {
399
399
  get: p,
@@ -404,7 +404,7 @@ function yr() {
404
404
  function ar(r, d) {
405
405
  {
406
406
  var p = function() {
407
- st || (st = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
407
+ st || (st = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
408
408
  };
409
409
  p.isReactWarning = !0, Object.defineProperty(r, "ref", {
410
410
  get: p,
@@ -412,8 +412,8 @@ function yr() {
412
412
  });
413
413
  }
414
414
  }
415
- var ir = function(r, d, p, x, _, k, S) {
416
- var w = {
415
+ var ir = function(r, d, p, x, T, k, S) {
416
+ var C = {
417
417
  // This tag allows us to uniquely identify this as a React Element
418
418
  $$typeof: t,
419
419
  // Built-in properties that belong on the element
@@ -424,42 +424,42 @@ function yr() {
424
424
  // Record the component responsible for creating this element.
425
425
  _owner: k
426
426
  };
427
- return w._store = {}, Object.defineProperty(w._store, "validated", {
427
+ return C._store = {}, Object.defineProperty(C._store, "validated", {
428
428
  configurable: !1,
429
429
  enumerable: !1,
430
430
  writable: !0,
431
431
  value: !1
432
- }), Object.defineProperty(w, "_self", {
432
+ }), Object.defineProperty(C, "_self", {
433
433
  configurable: !1,
434
434
  enumerable: !1,
435
435
  writable: !1,
436
436
  value: x
437
- }), Object.defineProperty(w, "_source", {
437
+ }), Object.defineProperty(C, "_source", {
438
438
  configurable: !1,
439
439
  enumerable: !1,
440
440
  writable: !1,
441
- value: _
442
- }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
441
+ value: T
442
+ }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
443
443
  };
444
- function or(r, d, p, x, _) {
444
+ function or(r, d, p, x, T) {
445
445
  {
446
- var k, S = {}, w = null, D = null;
447
- p !== void 0 && (it(p), w = "" + p), tr(d) && (it(d.key), w = "" + d.key), er(d) && (D = d.ref, rr(d, _));
446
+ var k, S = {}, C = null, F = null;
447
+ p !== void 0 && (it(p), C = "" + p), tr(d) && (it(d.key), C = "" + d.key), er(d) && (F = d.ref, rr(d, T));
448
448
  for (k in d)
449
449
  ne.call(d, k) && !Qt.hasOwnProperty(k) && (S[k] = d[k]);
450
450
  if (r && r.defaultProps) {
451
- var j = r.defaultProps;
452
- for (k in j)
453
- S[k] === void 0 && (S[k] = j[k]);
451
+ var L = r.defaultProps;
452
+ for (k in L)
453
+ S[k] === void 0 && (S[k] = L[k]);
454
454
  }
455
- if (w || D) {
456
- var L = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
457
- w && nr(S, L), D && ar(S, L);
455
+ if (C || F) {
456
+ var O = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
457
+ C && nr(S, O), F && ar(S, O);
458
458
  }
459
- return ir(r, w, D, _, x, ot.current, S);
459
+ return ir(r, C, F, T, x, ot.current, S);
460
460
  }
461
461
  }
462
- var Te = C.ReactCurrentOwner, ut = C.ReactDebugCurrentFrame;
462
+ var Te = w.ReactCurrentOwner, ut = w.ReactDebugCurrentFrame;
463
463
  function Q(r) {
464
464
  if (r) {
465
465
  var d = r._owner, p = fe(r.type, r._source, d ? d.type : null);
@@ -510,7 +510,7 @@ Check the top-level render call using <` + p + ">.");
510
510
  return;
511
511
  ft[p] = !0;
512
512
  var x = "";
513
- r && r._owner && r._owner !== Te.current && (x = " It was passed a child from " + W(r._owner.type) + "."), Q(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, x), Q(null);
513
+ r && r._owner && r._owner !== Te.current && (x = " It was passed a child from " + W(r._owner.type) + "."), Q(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, x), Q(null);
514
514
  }
515
515
  }
516
516
  function ht(r, d) {
@@ -525,9 +525,9 @@ Check the top-level render call using <` + p + ">.");
525
525
  else if (je(r))
526
526
  r._store && (r._store.validated = !0);
527
527
  else if (r) {
528
- var _ = g(r);
529
- if (typeof _ == "function" && _ !== r.entries)
530
- for (var k = _.call(r), S; !(S = k.next()).done; )
528
+ var T = g(r);
529
+ if (typeof T == "function" && T !== r.entries)
530
+ for (var k = T.call(r), S; !(S = k.next()).done; )
531
531
  je(S.value) && dt(S.value, d);
532
532
  }
533
533
  }
@@ -551,10 +551,10 @@ Check the top-level render call using <` + p + ">.");
551
551
  Kt(p, r.props, "prop", x, r);
552
552
  } else if (d.PropTypes !== void 0 && !ke) {
553
553
  ke = !0;
554
- var _ = W(d);
555
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
554
+ var T = W(d);
555
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
556
556
  }
557
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
558
  }
559
559
  }
560
560
  function cr(r) {
@@ -562,28 +562,28 @@ Check the top-level render call using <` + p + ">.");
562
562
  for (var d = Object.keys(r.props), p = 0; p < d.length; p++) {
563
563
  var x = d[p];
564
564
  if (x !== "children" && x !== "key") {
565
- Q(r), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Q(null);
565
+ Q(r), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Q(null);
566
566
  break;
567
567
  }
568
568
  }
569
- r.ref !== null && (Q(r), E("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
569
+ r.ref !== null && (Q(r), R("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
570
570
  }
571
571
  }
572
572
  var mt = {};
573
- function pt(r, d, p, x, _, k) {
573
+ function pt(r, d, p, x, T, k) {
574
574
  {
575
575
  var S = re(r);
576
576
  if (!S) {
577
- var w = "";
578
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
579
- var D = lr();
580
- D ? w += D : w += ct();
581
- var j;
582
- r === null ? j = "null" : _e(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (W(r.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, w);
577
+ var C = "";
578
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
579
+ var F = lr();
580
+ F ? C += F : C += ct();
581
+ var L;
582
+ r === null ? L = "null" : _e(r) ? L = "array" : r !== void 0 && r.$$typeof === t ? (L = "<" + (W(r.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : L = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, C);
583
583
  }
584
- var L = or(r, d, p, _, k);
585
- if (L == null)
586
- return L;
584
+ var O = or(r, d, p, T, k);
585
+ if (O == null)
586
+ return O;
587
587
  if (S) {
588
588
  var M = d.children;
589
589
  if (M !== void 0)
@@ -593,17 +593,17 @@ Check the top-level render call using <` + p + ">.");
593
593
  ht(M[ee], r);
594
594
  Object.freeze && Object.freeze(M);
595
595
  } else
596
- E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
597
597
  else
598
598
  ht(M, r);
599
599
  }
600
600
  if (ne.call(d, "key")) {
601
- var X = W(r), N = Object.keys(d).filter(function(vr) {
601
+ var X = W(r), I = Object.keys(d).filter(function(vr) {
602
602
  return vr !== "key";
603
- }), Le = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
603
+ }), Le = I.length > 0 ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}";
604
604
  if (!mt[X + Le]) {
605
- var pr = N.length > 0 ? "{" + N.join(": ..., ") + ": ...}" : "{}";
606
- E(`A props object containing a "key" prop is being spread into JSX:
605
+ var pr = I.length > 0 ? "{" + I.join(": ..., ") + ": ...}" : "{}";
606
+ R(`A props object containing a "key" prop is being spread into JSX:
607
607
  let props = %s;
608
608
  <%s {...props} />
609
609
  React keys must be passed directly to JSX without using spread:
@@ -611,7 +611,7 @@ React keys must be passed directly to JSX without using spread:
611
611
  <%s key={someKey} {...props} />`, Le, X, pr, X), mt[X + Le] = !0;
612
612
  }
613
613
  }
614
- return r === a ? cr(L) : ur(L), L;
614
+ return r === a ? cr(O) : ur(O), O;
615
615
  }
616
616
  }
617
617
  function fr(r, d, p) {
@@ -640,10 +640,10 @@ var P = xr();
640
640
  * @license MIT
641
641
  */
642
642
  var Ie = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, Rr = /^[\\/]{2}/;
643
- function Er(e, t) {
643
+ function br(e, t) {
644
644
  return t + e.replace(/\\/g, "/");
645
645
  }
646
- function O(e, t) {
646
+ function D(e, t) {
647
647
  if (e === !1 || e === null || typeof e > "u")
648
648
  throw new Error(t);
649
649
  }
@@ -674,15 +674,15 @@ function Ae(e) {
674
674
  return t;
675
675
  }
676
676
  function Ct(e, t, n = "/") {
677
- return br(e, t, n, !1);
677
+ return Er(e, t, n, !1);
678
678
  }
679
- function br(e, t, n, a, i) {
679
+ function Er(e, t, n, a, i) {
680
680
  let o = typeof t == "string" ? Ae(t) : t, l = G(o.pathname || "/", n);
681
681
  if (l == null)
682
682
  return null;
683
683
  let c = wr(e), s = null, m = Dr(l);
684
684
  for (let f = 0; s == null && f < c.length; ++f)
685
- s = $r(
685
+ s = Or(
686
686
  c[f],
687
687
  m,
688
688
  a
@@ -704,13 +704,13 @@ function St(e, t = [], n = [], a = "", i = !1) {
704
704
  if (f.relativePath.startsWith("/")) {
705
705
  if (!f.relativePath.startsWith(a) && s)
706
706
  return;
707
- O(
707
+ D(
708
708
  f.relativePath.startsWith(a),
709
709
  `Absolute route path "${f.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
710
710
  ), f.relativePath = f.relativePath.slice(a.length);
711
711
  }
712
- let h = U([a, f.relativePath]), v = n.concat(f);
713
- l.children && l.children.length > 0 && (O(
712
+ let h = B([a, f.relativePath]), v = n.concat(f);
713
+ l.children && l.children.length > 0 && (D(
714
714
  // Our types know better, but runtime JS may not!
715
715
  // @ts-expect-error
716
716
  l.index !== !0,
@@ -724,15 +724,15 @@ function St(e, t = [], n = [], a = "", i = !1) {
724
724
  )), !(l.path == null && !l.index) && t.push({
725
725
  path: h,
726
726
  score: Lr(h, l.index),
727
- routesMeta: v.map((y, R) => {
728
- let [b, g] = Tt(
727
+ routesMeta: v.map((y, b) => {
728
+ let [E, g] = Tt(
729
729
  y.relativePath,
730
730
  y.caseSensitive,
731
- R === v.length - 1
731
+ b === v.length - 1
732
732
  );
733
733
  return {
734
734
  ...y,
735
- matcher: b,
735
+ matcher: E,
736
736
  compiledParams: g
737
737
  };
738
738
  })
@@ -764,7 +764,7 @@ function Pt(e) {
764
764
  }
765
765
  function Cr(e) {
766
766
  e.sort(
767
- (t, n) => t.score !== n.score ? n.score - t.score : Or(
767
+ (t, n) => t.score !== n.score ? n.score - t.score : $r(
768
768
  t.routesMeta.map((a) => a.childrenIndex),
769
769
  n.routesMeta.map((a) => a.childrenIndex)
770
770
  )
@@ -778,7 +778,7 @@ function Lr(e, t) {
778
778
  a
779
779
  );
780
780
  }
781
- function Or(e, t) {
781
+ function $r(e, t) {
782
782
  return e.length === t.length && e.slice(0, -1).every((a, i) => a === t[i]) ? (
783
783
  // If two routes are siblings, we should try to match the earlier sibling
784
784
  // first. This allows people to have fine-grained control over the matching
@@ -791,7 +791,7 @@ function Or(e, t) {
791
791
  0
792
792
  );
793
793
  }
794
- function $r(e, t, n = !1) {
794
+ function Or(e, t, n = !1) {
795
795
  let { routesMeta: a } = e, i = {}, o = "/", l = [];
796
796
  for (let c = 0; c < a.length; ++c) {
797
797
  let s = a[c], m = c === a.length - 1, f = o === "/" ? t : t.slice(o.length) || "/", h = {
@@ -819,12 +819,12 @@ function $r(e, t, n = !1) {
819
819
  Object.assign(i, v.params), l.push({
820
820
  // TODO: Can this as be avoided?
821
821
  params: i,
822
- pathname: U([o, v.pathname]),
822
+ pathname: B([o, v.pathname]),
823
823
  pathnameBase: Ir(
824
- U([o, v.pathnameBase])
824
+ B([o, v.pathnameBase])
825
825
  ),
826
826
  route: y
827
- }), v.pathnameBase !== "/" && (o = U([o, v.pathnameBase]));
827
+ }), v.pathnameBase !== "/" && (o = B([o, v.pathnameBase]));
828
828
  }
829
829
  return l;
830
830
  }
@@ -845,8 +845,8 @@ function _t(e, t, n, a) {
845
845
  params: a.reduce(
846
846
  (m, { paramName: f, isOptional: h }, v) => {
847
847
  if (f === "*") {
848
- let R = c[v] || "";
849
- l = o.slice(0, o.length - R.length).replace(/(.)\/+$/, "$1");
848
+ let b = c[v] || "";
849
+ l = o.slice(0, o.length - b.length).replace(/(.)\/+$/, "$1");
850
850
  }
851
851
  const y = c[v];
852
852
  return h && !y ? m[f] = void 0 : m[f] = (y || "").replace(/%2F/g, "/"), m;
@@ -910,7 +910,7 @@ function Rt(e, t) {
910
910
  i === ".." ? n.length > 1 && n.pop() : i !== "." && n.push(i);
911
911
  }), n.length > 1 ? n.join("/") : "/";
912
912
  }
913
- function Oe(e, t, n, a) {
913
+ function $e(e, t, n, a) {
914
914
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
915
915
  a
916
916
  )}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
@@ -928,15 +928,15 @@ function kt(e) {
928
928
  }
929
929
  function Me(e, t, n, a = !1) {
930
930
  let i;
931
- typeof e == "string" ? i = Ae(e) : (i = { ...e }, O(
931
+ typeof e == "string" ? i = Ae(e) : (i = { ...e }, D(
932
932
  !i.pathname || !i.pathname.includes("?"),
933
- Oe("?", "pathname", "search", i)
934
- ), O(
933
+ $e("?", "pathname", "search", i)
934
+ ), D(
935
935
  !i.pathname || !i.pathname.includes("#"),
936
- Oe("#", "pathname", "hash", i)
937
- ), O(
936
+ $e("#", "pathname", "hash", i)
937
+ ), D(
938
938
  !i.search || !i.search.includes("#"),
939
- Oe("#", "search", "hash", i)
939
+ $e("#", "search", "hash", i)
940
940
  ));
941
941
  let o = e === "" || i.pathname === "", l = o ? "/" : i.pathname, c;
942
942
  if (l == null)
@@ -954,20 +954,20 @@ function Me(e, t, n, a = !1) {
954
954
  let s = Fr(i, c), m = l && l !== "/" && l.endsWith("/"), f = (o || l === ".") && n.endsWith("/");
955
955
  return !s.pathname.endsWith("/") && (m || f) && (s.pathname += "/"), s;
956
956
  }
957
- var jt = (e) => e.replace(/[\\/]{2,}/g, "/"), U = (e) => jt(e.join("/")), ye = (e) => e.replace(/\/+$/, ""), Ir = (e) => ye(e).replace(/^\/*/, "/"), Ar = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Mr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Wr = class {
957
+ var jt = (e) => e.replace(/[\\/]{2,}/g, "/"), B = (e) => jt(e.join("/")), ye = (e) => e.replace(/\/+$/, ""), Ir = (e) => ye(e).replace(/^\/*/, "/"), Ar = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Mr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Wr = class {
958
958
  constructor(e, t, n, a = !1) {
959
959
  this.status = e, this.statusText = t || "", this.internal = a, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
960
960
  }
961
961
  };
962
- function Ur(e) {
962
+ function Br(e) {
963
963
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
964
964
  }
965
- function Br(e) {
965
+ function Ur(e) {
966
966
  let t = e.map((n) => n.route.path).filter(Boolean);
967
- return U(t) || "/";
967
+ return B(t) || "/";
968
968
  }
969
969
  var Lt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
970
- function Ot(e, t) {
970
+ function $t(e, t) {
971
971
  let n = e;
972
972
  if (typeof n != "string" || !Ie.test(n))
973
973
  return {
@@ -978,7 +978,7 @@ function Ot(e, t) {
978
978
  let a = n, i = !1;
979
979
  if (Lt)
980
980
  try {
981
- let o = new URL(window.location.href), l = Rr.test(n) ? new URL(Er(n, o.protocol)) : new URL(n), c = G(l.pathname, t);
981
+ let o = new URL(window.location.href), l = Rr.test(n) ? new URL(br(n, o.protocol)) : new URL(n), c = G(l.pathname, t);
982
982
  l.origin === o.origin && c != null ? n = c + l.search + l.hash : i = !0;
983
983
  } catch {
984
984
  Y(
@@ -993,18 +993,18 @@ function Ot(e, t) {
993
993
  };
994
994
  }
995
995
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
996
- var $t = [
996
+ var Ot = [
997
997
  "POST",
998
998
  "PUT",
999
999
  "PATCH",
1000
1000
  "DELETE"
1001
1001
  ];
1002
1002
  new Set(
1003
- $t
1003
+ Ot
1004
1004
  );
1005
1005
  var Hr = [
1006
1006
  "GET",
1007
- ...$t
1007
+ ...Ot
1008
1008
  ];
1009
1009
  new Set(Hr);
1010
1010
  var Vr = [
@@ -1045,10 +1045,10 @@ var qr = u.createContext(
1045
1045
  qr.displayName = "Fetchers";
1046
1046
  var zr = u.createContext(null);
1047
1047
  zr.displayName = "Await";
1048
- var B = u.createContext(
1048
+ var U = u.createContext(
1049
1049
  null
1050
1050
  );
1051
- B.displayName = "Navigation";
1051
+ U.displayName = "Navigation";
1052
1052
  var We = u.createContext(
1053
1053
  null
1054
1054
  );
@@ -1059,8 +1059,8 @@ var J = u.createContext({
1059
1059
  isDataRoute: !1
1060
1060
  });
1061
1061
  J.displayName = "Route";
1062
- var Ue = u.createContext(null);
1063
- Ue.displayName = "RouteError";
1062
+ var Be = u.createContext(null);
1063
+ Be.displayName = "RouteError";
1064
1064
  var Nt = "REACT_ROUTER_ERROR", Kr = "REDIRECT", Gr = "ROUTE_ERROR_RESPONSE";
1065
1065
  function Xr(e) {
1066
1066
  if (e.startsWith(`${Nt}:${Kr}:{`))
@@ -1087,20 +1087,20 @@ function Zr(e) {
1087
1087
  }
1088
1088
  }
1089
1089
  function Qr(e, { relative: t } = {}) {
1090
- O(
1090
+ D(
1091
1091
  Re(),
1092
1092
  // TODO: This error is probably because they somehow have 2 versions of the
1093
1093
  // router loaded. We can help them understand how to avoid that.
1094
1094
  "useHref() may be used only in the context of a <Router> component."
1095
1095
  );
1096
- let { basename: n, navigator: a } = u.useContext(B), { hash: i, pathname: o, search: l } = le(e, { relative: t }), c = o;
1097
- return n !== "/" && (c = o === "/" ? n : U([n, o])), a.createHref({ pathname: c, search: l, hash: i });
1096
+ let { basename: n, navigator: a } = u.useContext(U), { hash: i, pathname: o, search: l } = le(e, { relative: t }), c = o;
1097
+ return n !== "/" && (c = o === "/" ? n : B([n, o])), a.createHref({ pathname: c, search: l, hash: i });
1098
1098
  }
1099
1099
  function Re() {
1100
1100
  return u.useContext(We) != null;
1101
1101
  }
1102
1102
  function q() {
1103
- return O(
1103
+ return D(
1104
1104
  Re(),
1105
1105
  // TODO: This error is probably because they somehow have 2 versions of the
1106
1106
  // router loaded. We can help them understand how to avoid that.
@@ -1109,20 +1109,20 @@ function q() {
1109
1109
  }
1110
1110
  var It = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
1111
1111
  function At(e) {
1112
- u.useContext(B).static || u.useLayoutEffect(e);
1112
+ u.useContext(U).static || u.useLayoutEffect(e);
1113
1113
  }
1114
1114
  function en() {
1115
1115
  let { isDataRoute: e } = u.useContext(J);
1116
1116
  return e ? mn() : tn();
1117
1117
  }
1118
1118
  function tn() {
1119
- O(
1119
+ D(
1120
1120
  Re(),
1121
1121
  // TODO: This error is probably because they somehow have 2 versions of the
1122
1122
  // router loaded. We can help them understand how to avoid that.
1123
1123
  "useNavigate() may be used only in the context of a <Router> component."
1124
1124
  );
1125
- let e = u.useContext(te), { basename: t, navigator: n } = u.useContext(B), { matches: a } = u.useContext(J), { pathname: i } = q(), o = JSON.stringify(kt(a)), l = u.useRef(!1);
1125
+ let e = u.useContext(te), { basename: t, navigator: n } = u.useContext(U), { matches: a } = u.useContext(J), { pathname: i } = q(), o = JSON.stringify(kt(a)), l = u.useRef(!1);
1126
1126
  return At(() => {
1127
1127
  l.current = !0;
1128
1128
  }), u.useCallback(
@@ -1138,7 +1138,7 @@ function tn() {
1138
1138
  i,
1139
1139
  m.relative === "path"
1140
1140
  );
1141
- e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : U([t, f.pathname])), (m.replace ? n.replace : n.push)(
1141
+ e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : B([t, f.pathname])), (m.replace ? n.replace : n.push)(
1142
1142
  f,
1143
1143
  m.state,
1144
1144
  m
@@ -1167,13 +1167,13 @@ function le(e, { relative: t } = {}) {
1167
1167
  );
1168
1168
  }
1169
1169
  function rn(e, t, n) {
1170
- O(
1170
+ D(
1171
1171
  Re(),
1172
1172
  // TODO: This error is probably because they somehow have 2 versions of the
1173
1173
  // router loaded. We can help them understand how to avoid that.
1174
1174
  "useRoutes() may be used only in the context of a <Router> component."
1175
1175
  );
1176
- let { navigator: a } = u.useContext(B), { matches: i } = u.useContext(J), o = i[i.length - 1], l = o ? o.params : {}, c = o ? o.pathname : "/", s = o ? o.pathnameBase : "/", m = o && o.route;
1176
+ let { navigator: a } = u.useContext(U), { matches: i } = u.useContext(J), o = i[i.length - 1], l = o ? o.params : {}, c = o ? o.pathname : "/", s = o ? o.pathnameBase : "/", m = o && o.route;
1177
1177
  {
1178
1178
  let g = m && m.path || "";
1179
1179
  Wt(
@@ -1191,7 +1191,7 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
1191
1191
  let g = s.replace(/^\//, "").split("/");
1192
1192
  y = "/" + v.replace(/^\//, "").split("/").slice(g.length).join("/");
1193
1193
  }
1194
- let R = n && n.state.matches.length ? (
1194
+ let b = n && n.state.matches.length ? (
1195
1195
  // If we're in a data router, use the matches we've already identified but ensure
1196
1196
  // we have the latest route instances from the manifest in case elements have changed
1197
1197
  n.state.matches.map(
@@ -1201,16 +1201,16 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
1201
1201
  )
1202
1202
  ) : Ct(e, { pathname: y });
1203
1203
  return Y(
1204
- m || R != null,
1204
+ m || b != null,
1205
1205
  `No routes matched location "${h.pathname}${h.search}${h.hash}" `
1206
1206
  ), Y(
1207
- R == null || R[R.length - 1].route.element !== void 0 || R[R.length - 1].route.Component !== void 0 || R[R.length - 1].route.lazy !== void 0,
1207
+ b == null || b[b.length - 1].route.element !== void 0 || b[b.length - 1].route.Component !== void 0 || b[b.length - 1].route.lazy !== void 0,
1208
1208
  `Matched leaf route at location "${h.pathname}${h.search}${h.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.`
1209
1209
  ), sn(
1210
- R && R.map(
1210
+ b && b.map(
1211
1211
  (g) => Object.assign({}, g, {
1212
1212
  params: Object.assign({}, l, g.params),
1213
- pathname: U([
1213
+ pathname: B([
1214
1214
  s,
1215
1215
  // Re-encode pathnames that were decoded inside matchRoutes.
1216
1216
  // Pre-encode `%`, `?` and `#` ahead of `encodeLocation` because it uses
@@ -1220,7 +1220,7 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
1220
1220
  g.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")
1221
1221
  ).pathname : g.pathname
1222
1222
  ]),
1223
- pathnameBase: g.pathnameBase === "/" ? s : U([
1223
+ pathnameBase: g.pathnameBase === "/" ? s : B([
1224
1224
  s,
1225
1225
  // Re-encode pathnames that were decoded inside matchRoutes
1226
1226
  // Pre-encode `%`, `?` and `#` ahead of `encodeLocation` because it uses
@@ -1237,7 +1237,7 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
1237
1237
  );
1238
1238
  }
1239
1239
  function nn() {
1240
- let e = hn(), t = Ur(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: a }, o = { padding: "2px 4px", backgroundColor: a }, l = null;
1240
+ let e = hn(), t = Br(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: a }, o = { padding: "2px 4px", backgroundColor: a }, l = null;
1241
1241
  return console.error(
1242
1242
  "Error handled by React Router default ErrorBoundary:",
1243
1243
  e
@@ -1278,7 +1278,7 @@ var an = /* @__PURE__ */ u.createElement(nn, null), Mt = class extends u.Compone
1278
1278
  n && (e = n);
1279
1279
  }
1280
1280
  let t = e !== void 0 ? /* @__PURE__ */ u.createElement(J.Provider, { value: this.props.routeContext }, /* @__PURE__ */ u.createElement(
1281
- Ue.Provider,
1281
+ Be.Provider,
1282
1282
  {
1283
1283
  value: e,
1284
1284
  children: this.props.component
@@ -1288,21 +1288,21 @@ var an = /* @__PURE__ */ u.createElement(nn, null), Mt = class extends u.Compone
1288
1288
  }
1289
1289
  };
1290
1290
  Mt.contextType = Dt;
1291
- var $e = /* @__PURE__ */ new WeakMap();
1291
+ var Oe = /* @__PURE__ */ new WeakMap();
1292
1292
  function on({
1293
1293
  children: e,
1294
1294
  error: t
1295
1295
  }) {
1296
- let { basename: n } = u.useContext(B);
1296
+ let { basename: n } = u.useContext(U);
1297
1297
  if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
1298
1298
  let a = Xr(t.digest);
1299
1299
  if (a) {
1300
- let i = $e.get(t);
1300
+ let i = Oe.get(t);
1301
1301
  if (i) throw i;
1302
- let o = Ot(a.location, n), l = o.absoluteURL || o.to;
1302
+ let o = $t(a.location, n), l = o.absoluteURL || o.to;
1303
1303
  if (Yr(l))
1304
1304
  throw new Error("Invalid redirect location");
1305
- if (Lt && !$e.get(t))
1305
+ if (Lt && !Oe.get(t))
1306
1306
  if (o.isExternal || a.reloadDocument)
1307
1307
  window.location.href = l;
1308
1308
  else {
@@ -1311,7 +1311,7 @@ function on({
1311
1311
  replace: a.replace
1312
1312
  })
1313
1313
  );
1314
- throw $e.set(t, c), c;
1314
+ throw Oe.set(t, c), c;
1315
1315
  }
1316
1316
  return /* @__PURE__ */ u.createElement("meta", { httpEquiv: "refresh", content: `0;url=${l}` });
1317
1317
  }
@@ -1339,7 +1339,7 @@ function sn(e, t = [], n) {
1339
1339
  let f = i.findIndex(
1340
1340
  (h) => h.route.id && (o == null ? void 0 : o[h.route.id]) !== void 0
1341
1341
  );
1342
- O(
1342
+ D(
1343
1343
  f >= 0,
1344
1344
  `Could not find a matching route for errors on route IDs: ${Object.keys(
1345
1345
  o
@@ -1355,8 +1355,8 @@ function sn(e, t = [], n) {
1355
1355
  for (let f = 0; f < i.length; f++) {
1356
1356
  let h = i[f];
1357
1357
  if ((h.route.HydrateFallback || h.route.hydrateFallbackElement) && (c = f), h.route.id) {
1358
- let { loaderData: v, errors: y } = a, R = h.route.loader && !v.hasOwnProperty(h.route.id) && (!y || y[h.route.id] === void 0);
1359
- if (h.route.lazy || R) {
1358
+ let { loaderData: v, errors: y } = a, b = h.route.loader && !v.hasOwnProperty(h.route.id) && (!y || y[h.route.id] === void 0);
1359
+ if (h.route.lazy || b) {
1360
1360
  n.isStatic && (l = !0), c >= 0 ? i = i.slice(0, c + 1) : i = [i[0]];
1361
1361
  break;
1362
1362
  }
@@ -1368,30 +1368,30 @@ function sn(e, t = [], n) {
1368
1368
  s(f, {
1369
1369
  location: a.location,
1370
1370
  params: ((y = (v = a.matches) == null ? void 0 : v[0]) == null ? void 0 : y.params) ?? {},
1371
- pattern: Br(a.matches),
1371
+ pattern: Ur(a.matches),
1372
1372
  errorInfo: h
1373
1373
  });
1374
1374
  } : void 0;
1375
1375
  return i.reduceRight(
1376
1376
  (f, h, v) => {
1377
- let y, R = !1, b = null, g = null;
1378
- a && (y = o && h.route.id ? o[h.route.id] : void 0, b = h.route.errorElement || an, l && (c < 0 && v === 0 ? (Wt(
1377
+ let y, b = !1, E = null, g = null;
1378
+ a && (y = o && h.route.id ? o[h.route.id] : void 0, E = h.route.errorElement || an, l && (c < 0 && v === 0 ? (Wt(
1379
1379
  "route-fallback",
1380
1380
  !1,
1381
1381
  "No `HydrateFallback` element provided to render during initial hydration"
1382
- ), R = !0, g = null) : c === v && (R = !0, g = h.route.hydrateFallbackElement || null)));
1383
- let C = t.concat(i.slice(0, v + 1)), E = () => {
1384
- let T;
1385
- return y ? T = b : R ? T = g : h.route.Component ? T = /* @__PURE__ */ u.createElement(h.route.Component, null) : h.route.element ? T = h.route.element : T = f, /* @__PURE__ */ u.createElement(
1382
+ ), b = !0, g = null) : c === v && (b = !0, g = h.route.hydrateFallbackElement || null)));
1383
+ let w = t.concat(i.slice(0, v + 1)), R = () => {
1384
+ let _;
1385
+ return y ? _ = E : b ? _ = g : h.route.Component ? _ = /* @__PURE__ */ u.createElement(h.route.Component, null) : h.route.element ? _ = h.route.element : _ = f, /* @__PURE__ */ u.createElement(
1386
1386
  ln,
1387
1387
  {
1388
1388
  match: h,
1389
1389
  routeContext: {
1390
1390
  outlet: f,
1391
- matches: C,
1391
+ matches: w,
1392
1392
  isDataRoute: a != null
1393
1393
  },
1394
- children: T
1394
+ children: _
1395
1395
  }
1396
1396
  );
1397
1397
  };
@@ -1400,35 +1400,35 @@ function sn(e, t = [], n) {
1400
1400
  {
1401
1401
  location: a.location,
1402
1402
  revalidation: a.revalidation,
1403
- component: b,
1403
+ component: E,
1404
1404
  error: y,
1405
- children: E(),
1406
- routeContext: { outlet: null, matches: C, isDataRoute: !0 },
1405
+ children: R(),
1406
+ routeContext: { outlet: null, matches: w, isDataRoute: !0 },
1407
1407
  onError: m
1408
1408
  }
1409
- ) : E();
1409
+ ) : R();
1410
1410
  },
1411
1411
  null
1412
1412
  );
1413
1413
  }
1414
- function Be(e) {
1414
+ function Ue(e) {
1415
1415
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1416
1416
  }
1417
1417
  function un(e) {
1418
1418
  let t = u.useContext(te);
1419
- return O(t, Be(e)), t;
1419
+ return D(t, Ue(e)), t;
1420
1420
  }
1421
1421
  function cn(e) {
1422
1422
  let t = u.useContext(xe);
1423
- return O(t, Be(e)), t;
1423
+ return D(t, Ue(e)), t;
1424
1424
  }
1425
1425
  function fn(e) {
1426
1426
  let t = u.useContext(J);
1427
- return O(t, Be(e)), t;
1427
+ return D(t, Ue(e)), t;
1428
1428
  }
1429
1429
  function He(e) {
1430
1430
  let t = fn(e), n = t.matches[t.matches.length - 1];
1431
- return O(
1431
+ return D(
1432
1432
  n.route.id,
1433
1433
  `${e} can only be used on routes that contain a unique "id"`
1434
1434
  ), n.route.id;
@@ -1441,7 +1441,7 @@ function dn() {
1441
1441
  }
1442
1442
  function hn() {
1443
1443
  var a;
1444
- let e = u.useContext(Ue), t = cn(
1444
+ let e = u.useContext(Be), t = cn(
1445
1445
  "useRouteError"
1446
1446
  /* UseRouteError */
1447
1447
  ), n = He(
@@ -1467,9 +1467,9 @@ function mn() {
1467
1467
  [e, t]
1468
1468
  );
1469
1469
  }
1470
- var Et = {};
1470
+ var bt = {};
1471
1471
  function Wt(e, t, n) {
1472
- !t && !Et[e] && (Et[e] = !0, Y(!1, n));
1472
+ !t && !bt[e] && (bt[e] = !0, Y(!1, n));
1473
1473
  }
1474
1474
  u.memo(pn);
1475
1475
  function pn({
@@ -1488,17 +1488,17 @@ function pn({
1488
1488
  });
1489
1489
  }
1490
1490
  var pe = "get", ve = "application/x-www-form-urlencoded";
1491
- function Ee(e) {
1491
+ function be(e) {
1492
1492
  return typeof HTMLElement < "u" && e instanceof HTMLElement;
1493
1493
  }
1494
1494
  function vn(e) {
1495
- return Ee(e) && e.tagName.toLowerCase() === "button";
1495
+ return be(e) && e.tagName.toLowerCase() === "button";
1496
1496
  }
1497
1497
  function gn(e) {
1498
- return Ee(e) && e.tagName.toLowerCase() === "form";
1498
+ return be(e) && e.tagName.toLowerCase() === "form";
1499
1499
  }
1500
1500
  function yn(e) {
1501
- return Ee(e) && e.tagName.toLowerCase() === "input";
1501
+ return be(e) && e.tagName.toLowerCase() === "input";
1502
1502
  }
1503
1503
  function xn(e) {
1504
1504
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
@@ -1509,7 +1509,7 @@ function Rn(e, t) {
1509
1509
  !xn(e);
1510
1510
  }
1511
1511
  var me = null;
1512
- function En() {
1512
+ function bn() {
1513
1513
  if (me === null)
1514
1514
  try {
1515
1515
  new FormData(
@@ -1522,13 +1522,13 @@ function En() {
1522
1522
  }
1523
1523
  return me;
1524
1524
  }
1525
- var bn = /* @__PURE__ */ new Set([
1525
+ var En = /* @__PURE__ */ new Set([
1526
1526
  "application/x-www-form-urlencoded",
1527
1527
  "multipart/form-data",
1528
1528
  "text/plain"
1529
1529
  ]);
1530
1530
  function De(e) {
1531
- return e != null && !bn.has(e) ? (Y(
1531
+ return e != null && !En.has(e) ? (Y(
1532
1532
  !1,
1533
1533
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ve}"`
1534
1534
  ), null) : e;
@@ -1545,7 +1545,7 @@ function wn(e, t) {
1545
1545
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1546
1546
  );
1547
1547
  let s = e.getAttribute("formaction") || c.getAttribute("action");
1548
- if (a = s ? G(s, t) : null, n = e.getAttribute("formmethod") || c.getAttribute("method") || pe, i = De(e.getAttribute("formenctype")) || De(c.getAttribute("enctype")) || ve, o = new FormData(c, e), !En()) {
1548
+ if (a = s ? G(s, t) : null, n = e.getAttribute("formmethod") || c.getAttribute("method") || pe, i = De(e.getAttribute("formenctype")) || De(c.getAttribute("enctype")) || ve, o = new FormData(c, e), !bn()) {
1549
1549
  let { name: m, type: f, value: h } = e;
1550
1550
  if (f === "image") {
1551
1551
  let v = m ? `${m}.` : "";
@@ -1553,7 +1553,7 @@ function wn(e, t) {
1553
1553
  } else m && o.append(m, h);
1554
1554
  }
1555
1555
  } else {
1556
- if (Ee(e))
1556
+ if (be(e))
1557
1557
  throw new Error(
1558
1558
  'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
1559
1559
  );
@@ -1566,7 +1566,7 @@ function Ve(e, t) {
1566
1566
  if (e === !1 || e === null || typeof e > "u")
1567
1567
  throw new Error(t);
1568
1568
  }
1569
- function Ut(e, t, n, a) {
1569
+ function Bt(e, t, n, a) {
1570
1570
  let i = typeof e == "string" ? new URL(
1571
1571
  e,
1572
1572
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -1612,7 +1612,7 @@ async function Pn(e, t, n) {
1612
1612
  )
1613
1613
  );
1614
1614
  }
1615
- function bt(e, t, n, a, i, o) {
1615
+ function Et(e, t, n, a, i, o) {
1616
1616
  let l = (s, m) => n[m] ? s.route.id !== n[m].route.id : !0, c = (s, m) => {
1617
1617
  var f;
1618
1618
  return (
@@ -1690,39 +1690,39 @@ function Ln() {
1690
1690
  }
1691
1691
  var Je = u.createContext(void 0);
1692
1692
  Je.displayName = "FrameworkContext";
1693
- function be() {
1693
+ function Ee() {
1694
1694
  let e = u.useContext(Je);
1695
1695
  return Ve(
1696
1696
  e,
1697
1697
  "You must render this element inside a <HydratedRouter> element"
1698
1698
  ), e;
1699
1699
  }
1700
- function On(e, t) {
1700
+ function $n(e, t) {
1701
1701
  let n = u.useContext(Je), [a, i] = u.useState(!1), [o, l] = u.useState(!1), { onFocus: c, onBlur: s, onMouseEnter: m, onMouseLeave: f, onTouchStart: h } = t, v = u.useRef(null);
1702
1702
  u.useEffect(() => {
1703
1703
  if (e === "render" && l(!0), e === "viewport") {
1704
- let b = (C) => {
1705
- C.forEach((E) => {
1706
- l(E.isIntersecting);
1704
+ let E = (w) => {
1705
+ w.forEach((R) => {
1706
+ l(R.isIntersecting);
1707
1707
  });
1708
- }, g = new IntersectionObserver(b, { threshold: 0.5 });
1708
+ }, g = new IntersectionObserver(E, { threshold: 0.5 });
1709
1709
  return v.current && g.observe(v.current), () => {
1710
1710
  g.disconnect();
1711
1711
  };
1712
1712
  }
1713
1713
  }, [e]), u.useEffect(() => {
1714
1714
  if (a) {
1715
- let b = setTimeout(() => {
1715
+ let E = setTimeout(() => {
1716
1716
  l(!0);
1717
1717
  }, 100);
1718
1718
  return () => {
1719
- clearTimeout(b);
1719
+ clearTimeout(E);
1720
1720
  };
1721
1721
  }
1722
1722
  }, [a]);
1723
1723
  let y = () => {
1724
1724
  i(!0);
1725
- }, R = () => {
1725
+ }, b = () => {
1726
1726
  i(!1), l(!1);
1727
1727
  };
1728
1728
  return n ? e !== "intent" ? [o, v, {}] : [
@@ -1730,9 +1730,9 @@ function On(e, t) {
1730
1730
  v,
1731
1731
  {
1732
1732
  onFocus: oe(c, y),
1733
- onBlur: oe(s, R),
1733
+ onBlur: oe(s, b),
1734
1734
  onMouseEnter: oe(m, y),
1735
- onMouseLeave: oe(f, R),
1735
+ onMouseLeave: oe(f, b),
1736
1736
  onTouchStart: oe(h, y)
1737
1737
  }
1738
1738
  ] : [!1, v, {}];
@@ -1742,15 +1742,15 @@ function oe(e, t) {
1742
1742
  e && e(n), n.defaultPrevented || t(n);
1743
1743
  };
1744
1744
  }
1745
- function $n({ page: e, ...t }) {
1746
- let n = Jr(), { nonce: a } = be(), { router: i } = Ye(), o = u.useMemo(
1745
+ function On({ page: e, ...t }) {
1746
+ let n = Jr(), { nonce: a } = Ee(), { router: i } = Ye(), o = u.useMemo(
1747
1747
  () => Ct(i.routes, e, i.basename),
1748
1748
  [i.routes, e, i.basename]
1749
1749
  );
1750
1750
  return o ? (t.nonce == null && a && (t = { ...t, nonce: a }), n ? /* @__PURE__ */ u.createElement(Fn, { page: e, matches: o, ...t }) : /* @__PURE__ */ u.createElement(Nn, { page: e, matches: o, ...t })) : null;
1751
1751
  }
1752
1752
  function Dn(e) {
1753
- let { manifest: t, routeModules: n } = be(), [a, i] = u.useState([]);
1753
+ let { manifest: t, routeModules: n } = Ee(), [a, i] = u.useState([]);
1754
1754
  return u.useEffect(() => {
1755
1755
  let o = !1;
1756
1756
  return Pn(e, t, n).then(
@@ -1767,10 +1767,10 @@ function Fn({
1767
1767
  matches: t,
1768
1768
  ...n
1769
1769
  }) {
1770
- let a = q(), { future: i } = be(), { basename: o } = Ye(), l = u.useMemo(() => {
1770
+ let a = q(), { future: i } = Ee(), { basename: o } = Ye(), l = u.useMemo(() => {
1771
1771
  if (e === a.pathname + a.search + a.hash)
1772
1772
  return [];
1773
- let c = Ut(
1773
+ let c = Bt(
1774
1774
  e,
1775
1775
  o,
1776
1776
  i.v8_trailingSlashAwareDataRequests,
@@ -1793,8 +1793,8 @@ function Nn({
1793
1793
  matches: t,
1794
1794
  ...n
1795
1795
  }) {
1796
- let a = q(), { future: i, manifest: o, routeModules: l } = be(), { basename: c } = Ye(), { loaderData: s, matches: m } = Ln(), f = u.useMemo(
1797
- () => bt(
1796
+ let a = q(), { future: i, manifest: o, routeModules: l } = Ee(), { basename: c } = Ye(), { loaderData: s, matches: m } = Ln(), f = u.useMemo(
1797
+ () => Et(
1798
1798
  e,
1799
1799
  t,
1800
1800
  m,
@@ -1804,7 +1804,7 @@ function Nn({
1804
1804
  ),
1805
1805
  [e, t, m, o, a]
1806
1806
  ), h = u.useMemo(
1807
- () => bt(
1807
+ () => Et(
1808
1808
  e,
1809
1809
  t,
1810
1810
  m,
@@ -1816,23 +1816,23 @@ function Nn({
1816
1816
  ), v = u.useMemo(() => {
1817
1817
  if (e === a.pathname + a.search + a.hash)
1818
1818
  return [];
1819
- let b = /* @__PURE__ */ new Set(), g = !1;
1820
- if (t.forEach((E) => {
1821
- var I;
1822
- let T = o.routes[E.route.id];
1823
- !T || !T.hasLoader || (!f.some(($) => $.route.id === E.route.id) && E.route.id in s && ((I = l[E.route.id]) != null && I.shouldRevalidate) || T.hasClientLoader ? g = !0 : b.add(E.route.id));
1824
- }), b.size === 0)
1819
+ let E = /* @__PURE__ */ new Set(), g = !1;
1820
+ if (t.forEach((R) => {
1821
+ var $;
1822
+ let _ = o.routes[R.route.id];
1823
+ !_ || !_.hasLoader || (!f.some((j) => j.route.id === R.route.id) && R.route.id in s && (($ = l[R.route.id]) != null && $.shouldRevalidate) || _.hasClientLoader ? g = !0 : E.add(R.route.id));
1824
+ }), E.size === 0)
1825
1825
  return [];
1826
- let C = Ut(
1826
+ let w = Bt(
1827
1827
  e,
1828
1828
  c,
1829
1829
  i.v8_trailingSlashAwareDataRequests,
1830
1830
  "data"
1831
1831
  );
1832
- return g && b.size > 0 && C.searchParams.set(
1832
+ return g && E.size > 0 && w.searchParams.set(
1833
1833
  "_routes",
1834
- t.filter((E) => b.has(E.route.id)).map((E) => E.route.id).join(",")
1835
- ), [C.pathname + C.search];
1834
+ t.filter((R) => E.has(R.route.id)).map((R) => R.route.id).join(",")
1835
+ ), [w.pathname + w.search];
1836
1836
  }, [
1837
1837
  c,
1838
1838
  i.v8_trailingSlashAwareDataRequests,
@@ -1846,14 +1846,14 @@ function Nn({
1846
1846
  ]), y = u.useMemo(
1847
1847
  () => _n(h, o),
1848
1848
  [h, o]
1849
- ), R = Dn(h);
1850
- return /* @__PURE__ */ u.createElement(u.Fragment, null, v.map((b) => /* @__PURE__ */ u.createElement("link", { key: b, rel: "prefetch", as: "fetch", href: b, ...n })), y.map((b) => /* @__PURE__ */ u.createElement("link", { key: b, rel: "modulepreload", href: b, ...n })), R.map(({ key: b, link: g }) => (
1849
+ ), b = Dn(h);
1850
+ return /* @__PURE__ */ u.createElement(u.Fragment, null, v.map((E) => /* @__PURE__ */ u.createElement("link", { key: E, rel: "prefetch", as: "fetch", href: E, ...n })), y.map((E) => /* @__PURE__ */ u.createElement("link", { key: E, rel: "modulepreload", href: E, ...n })), b.map(({ key: E, link: g }) => (
1851
1851
  // these don't spread `linkProps` because they are full link descriptors
1852
1852
  // already with their own props
1853
1853
  /* @__PURE__ */ u.createElement(
1854
1854
  "link",
1855
1855
  {
1856
- key: b,
1856
+ key: E,
1857
1857
  nonce: n.nonce,
1858
1858
  ...g,
1859
1859
  crossOrigin: g.crossOrigin ?? n.crossOrigin
@@ -1874,7 +1874,7 @@ try {
1874
1874
  "7.18.0");
1875
1875
  } catch {
1876
1876
  }
1877
- var Bt = u.forwardRef(
1877
+ var Ut = u.forwardRef(
1878
1878
  function({
1879
1879
  onClick: t,
1880
1880
  discover: n = "render",
@@ -1889,24 +1889,24 @@ var Bt = u.forwardRef(
1889
1889
  preventScrollReset: h,
1890
1890
  viewTransition: v,
1891
1891
  defaultShouldRevalidate: y,
1892
- ...R
1893
- }, b) {
1894
- let { basename: g, navigator: C, useTransitions: E } = u.useContext(B), T = typeof f == "string" && Ie.test(f), I = Ot(f, g);
1895
- f = I.to;
1896
- let $ = Qr(f, { relative: i }), A = q(), H = null;
1892
+ ...b
1893
+ }, E) {
1894
+ let { basename: g, navigator: w, useTransitions: R } = u.useContext(U), _ = typeof f == "string" && Ie.test(f), $ = $t(f, g);
1895
+ f = $.to;
1896
+ let j = Qr(f, { relative: i }), A = q(), H = null;
1897
1897
  if (c) {
1898
- let F = Me(
1898
+ let N = Me(
1899
1899
  c,
1900
1900
  [],
1901
1901
  A.mask ? A.mask.pathname : "/",
1902
1902
  !0
1903
1903
  );
1904
- g !== "/" && (F.pathname = F.pathname === "/" ? g : U([g, F.pathname])), H = C.createHref(F);
1904
+ g !== "/" && (N.pathname = N.pathname === "/" ? g : B([g, N.pathname])), H = w.createHref(N);
1905
1905
  }
1906
- let [z, K, re] = On(
1906
+ let [z, K, re] = $n(
1907
1907
  a,
1908
- R
1909
- ), we = Un(f, {
1908
+ b
1909
+ ), we = Bn(f, {
1910
1910
  replace: l,
1911
1911
  mask: c,
1912
1912
  state: s,
@@ -1915,30 +1915,30 @@ var Bt = u.forwardRef(
1915
1915
  relative: i,
1916
1916
  viewTransition: v,
1917
1917
  defaultShouldRevalidate: y,
1918
- useTransitions: E
1918
+ useTransitions: R
1919
1919
  });
1920
- function se(F) {
1921
- t && t(F), F.defaultPrevented || we(F);
1920
+ function se(N) {
1921
+ t && t(N), N.defaultPrevented || we(N);
1922
1922
  }
1923
- let W = !(I.isExternal || o), V = (
1923
+ let W = !($.isExternal || o), V = (
1924
1924
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1925
1925
  /* @__PURE__ */ u.createElement(
1926
1926
  "a",
1927
1927
  {
1928
- ...R,
1928
+ ...b,
1929
1929
  ...re,
1930
- href: (W ? H : void 0) || I.absoluteURL || $,
1930
+ href: (W ? H : void 0) || $.absoluteURL || j,
1931
1931
  onClick: W ? se : t,
1932
- ref: In(b, K),
1932
+ ref: In(E, K),
1933
1933
  target: m,
1934
- "data-discover": !T && n === "render" ? "true" : void 0
1934
+ "data-discover": !_ && n === "render" ? "true" : void 0
1935
1935
  }
1936
1936
  )
1937
1937
  );
1938
- return z && !T ? /* @__PURE__ */ u.createElement(u.Fragment, null, V, /* @__PURE__ */ u.createElement($n, { page: $ })) : V;
1938
+ return z && !_ ? /* @__PURE__ */ u.createElement(u.Fragment, null, V, /* @__PURE__ */ u.createElement(On, { page: j })) : V;
1939
1939
  }
1940
1940
  );
1941
- Bt.displayName = "Link";
1941
+ Ut.displayName = "Link";
1942
1942
  var Ne = u.forwardRef(
1943
1943
  function({
1944
1944
  "aria-current": t = "page",
@@ -1951,25 +1951,25 @@ var Ne = u.forwardRef(
1951
1951
  children: s,
1952
1952
  ...m
1953
1953
  }, f) {
1954
- let h = le(l, { relative: m.relative }), v = q(), y = u.useContext(xe), { navigator: R, basename: b } = u.useContext(B), g = y != null && // Conditional usage is OK here because the usage of a data router is static
1954
+ let h = le(l, { relative: m.relative }), v = q(), y = u.useContext(xe), { navigator: b, basename: E } = u.useContext(U), g = y != null && // Conditional usage is OK here because the usage of a data router is static
1955
1955
  // eslint-disable-next-line react-hooks/rules-of-hooks
1956
- Jn(h) && c === !0, C = R.encodeLocation ? R.encodeLocation(h).pathname : h.pathname, E = v.pathname, T = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
1957
- n || (E = E.toLowerCase(), T = T ? T.toLowerCase() : null, C = C.toLowerCase()), T && b && (T = G(T, b) || T);
1958
- const I = C !== "/" && C.endsWith("/") ? C.length - 1 : C.length;
1959
- let $ = E === C || !i && E.startsWith(C) && E.charAt(I) === "/", A = T != null && (T === C || !i && T.startsWith(C) && T.charAt(C.length) === "/"), H = {
1960
- isActive: $,
1956
+ Jn(h) && c === !0, w = b.encodeLocation ? b.encodeLocation(h).pathname : h.pathname, R = v.pathname, _ = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
1957
+ n || (R = R.toLowerCase(), _ = _ ? _.toLowerCase() : null, w = w.toLowerCase()), _ && E && (_ = G(_, E) || _);
1958
+ const $ = w !== "/" && w.endsWith("/") ? w.length - 1 : w.length;
1959
+ let j = R === w || !i && R.startsWith(w) && R.charAt($) === "/", A = _ != null && (_ === w || !i && _.startsWith(w) && _.charAt(w.length) === "/"), H = {
1960
+ isActive: j,
1961
1961
  isPending: A,
1962
1962
  isTransitioning: g
1963
- }, z = $ ? t : void 0, K;
1963
+ }, z = j ? t : void 0, K;
1964
1964
  typeof a == "function" ? K = a(H) : K = [
1965
1965
  a,
1966
- $ ? "active" : null,
1966
+ j ? "active" : null,
1967
1967
  A ? "pending" : null,
1968
1968
  g ? "transitioning" : null
1969
1969
  ].filter(Boolean).join(" ");
1970
1970
  let re = typeof o == "function" ? o(H) : o;
1971
1971
  return /* @__PURE__ */ u.createElement(
1972
- Bt,
1972
+ Ut,
1973
1973
  {
1974
1974
  ...m,
1975
1975
  "aria-current": z,
@@ -2000,11 +2000,11 @@ var Mn = u.forwardRef(
2000
2000
  viewTransition: h,
2001
2001
  defaultShouldRevalidate: v,
2002
2002
  ...y
2003
- }, R) => {
2004
- let { useTransitions: b } = u.useContext(B), g = Vn(), C = Yn(c, { relative: m }), E = l.toLowerCase() === "get" ? "get" : "post", T = typeof c == "string" && Ie.test(c), I = ($) => {
2005
- if (s && s($), $.defaultPrevented) return;
2006
- $.preventDefault();
2007
- let A = $.nativeEvent.submitter, H = (A == null ? void 0 : A.getAttribute("formmethod")) || l, z = () => g(A || $.currentTarget, {
2003
+ }, b) => {
2004
+ let { useTransitions: E } = u.useContext(U), g = Vn(), w = Yn(c, { relative: m }), R = l.toLowerCase() === "get" ? "get" : "post", _ = typeof c == "string" && Ie.test(c), $ = (j) => {
2005
+ if (s && s(j), j.defaultPrevented) return;
2006
+ j.preventDefault();
2007
+ let A = j.nativeEvent.submitter, H = (A == null ? void 0 : A.getAttribute("formmethod")) || l, z = () => g(A || j.currentTarget, {
2008
2008
  fetcherKey: t,
2009
2009
  method: H,
2010
2010
  navigate: n,
@@ -2015,17 +2015,17 @@ var Mn = u.forwardRef(
2015
2015
  viewTransition: h,
2016
2016
  defaultShouldRevalidate: v
2017
2017
  });
2018
- b && n !== !1 ? u.startTransition(() => z()) : z();
2018
+ E && n !== !1 ? u.startTransition(() => z()) : z();
2019
2019
  };
2020
2020
  return /* @__PURE__ */ u.createElement(
2021
2021
  "form",
2022
2022
  {
2023
- ref: R,
2024
- method: E,
2025
- action: C,
2026
- onSubmit: a ? s : I,
2023
+ ref: b,
2024
+ method: R,
2025
+ action: w,
2026
+ onSubmit: a ? s : $,
2027
2027
  ...y,
2028
- "data-discover": !T && e === "render" ? "true" : void 0
2028
+ "data-discover": !_ && e === "render" ? "true" : void 0
2029
2029
  }
2030
2030
  );
2031
2031
  }
@@ -2036,9 +2036,9 @@ function Wn(e) {
2036
2036
  }
2037
2037
  function Ht(e) {
2038
2038
  let t = u.useContext(te);
2039
- return O(t, Wn(e)), t;
2039
+ return D(t, Wn(e)), t;
2040
2040
  }
2041
- function Un(e, {
2041
+ function Bn(e, {
2042
2042
  target: t,
2043
2043
  replace: n,
2044
2044
  mask: a,
@@ -2054,8 +2054,8 @@ function Un(e, {
2054
2054
  (y) => {
2055
2055
  if (Rn(y, t)) {
2056
2056
  y.preventDefault();
2057
- let R = n !== void 0 ? n : Fe(h) === Fe(v), b = () => f(e, {
2058
- replace: R,
2057
+ let b = n !== void 0 ? n : Fe(h) === Fe(v), E = () => f(e, {
2058
+ replace: b,
2059
2059
  mask: a,
2060
2060
  state: i,
2061
2061
  preventScrollReset: o,
@@ -2063,7 +2063,7 @@ function Un(e, {
2063
2063
  viewTransition: c,
2064
2064
  defaultShouldRevalidate: s
2065
2065
  });
2066
- m ? u.startTransition(() => b()) : b();
2066
+ m ? u.startTransition(() => E()) : E();
2067
2067
  }
2068
2068
  },
2069
2069
  [
@@ -2083,12 +2083,12 @@ function Un(e, {
2083
2083
  ]
2084
2084
  );
2085
2085
  }
2086
- var Bn = 0, Hn = () => `__${String(++Bn)}__`;
2086
+ var Un = 0, Hn = () => `__${String(++Un)}__`;
2087
2087
  function Vn() {
2088
2088
  let { router: e } = Ht(
2089
2089
  "useSubmit"
2090
2090
  /* UseSubmit */
2091
- ), { basename: t } = u.useContext(B), n = dn(), a = e.fetch, i = e.navigate;
2091
+ ), { basename: t } = u.useContext(U), n = dn(), a = e.fetch, i = e.navigate;
2092
2092
  return u.useCallback(
2093
2093
  async (o, l = {}) => {
2094
2094
  let { action: c, method: s, encType: m, formData: f, body: h } = wn(
@@ -2125,8 +2125,8 @@ function Vn() {
2125
2125
  );
2126
2126
  }
2127
2127
  function Yn(e, { relative: t } = {}) {
2128
- let { basename: n } = u.useContext(B), a = u.useContext(J);
2129
- O(a, "useFormAction must be used inside a RouteContext");
2128
+ let { basename: n } = u.useContext(U), a = u.useContext(J);
2129
+ D(a, "useFormAction must be used inside a RouteContext");
2130
2130
  let [i] = a.matches.slice(-1), o = { ...le(e || ".", { relative: t }) }, l = q();
2131
2131
  if (e == null) {
2132
2132
  o.search = l.search;
@@ -2137,11 +2137,11 @@ function Yn(e, { relative: t } = {}) {
2137
2137
  o.search = f ? `?${f}` : "";
2138
2138
  }
2139
2139
  }
2140
- return (!e || e === ".") && i.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : U([n, o.pathname])), Fe(o);
2140
+ return (!e || e === ".") && i.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : B([n, o.pathname])), Fe(o);
2141
2141
  }
2142
2142
  function Jn(e, { relative: t } = {}) {
2143
2143
  let n = u.useContext(Ft);
2144
- O(
2144
+ D(
2145
2145
  n != null,
2146
2146
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
2147
2147
  );
@@ -2154,16 +2154,28 @@ function Jn(e, { relative: t } = {}) {
2154
2154
  let o = G(n.currentLocation.pathname, a) || n.currentLocation.pathname, l = G(n.nextLocation.pathname, a) || n.nextLocation.pathname;
2155
2155
  return ge(i.pathname, l) != null || ge(i.pathname, o) != null;
2156
2156
  }
2157
- const Z = (...e) => e.filter(Boolean).join(" "), qn = () => /* @__PURE__ */ P.jsx("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ P.jsx("path", { d: "M2 4h14M2 9h14M2 14h14", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) });
2158
- function zn(e) {
2157
+ const Z = (...e) => e.filter(Boolean).join(" "), qn = () => /* @__PURE__ */ P.jsx("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ P.jsx(
2158
+ "path",
2159
+ {
2160
+ d: "M2 4h14M2 9h14M2 14h14",
2161
+ stroke: "currentColor",
2162
+ strokeWidth: "1.5",
2163
+ strokeLinecap: "round"
2164
+ }
2165
+ ) });
2166
+ function zn(e, t) {
2159
2167
  return e ? {
2160
- active: `bg-${e}/20`,
2161
- hover: `hover:bg-${e}/10`,
2162
- text: `text-${e}`
2168
+ activeBg: `bg-${e}/20`,
2169
+ hoverBg: `hover:bg-${e}/10`,
2170
+ textClass: `text-${e}`,
2171
+ hoverTextClass: `hover:text-${e}`,
2172
+ borderColor: t ?? "#4ade80"
2163
2173
  } : {
2164
- active: "bg-green-500/20",
2165
- hover: "hover:bg-green-500/10",
2166
- text: "text-green-400"
2174
+ activeBg: "bg-green-500/20",
2175
+ hoverBg: "hover:bg-green-500/10",
2176
+ textClass: "text-green-400",
2177
+ hoverTextClass: "hover:text-green-400",
2178
+ borderColor: t ?? "#4ade80"
2167
2179
  };
2168
2180
  }
2169
2181
  function Gn({
@@ -2236,26 +2248,40 @@ function Gn({
2236
2248
  ]
2237
2249
  }
2238
2250
  ) }),
2239
- /* @__PURE__ */ P.jsx("nav", { className: "flex-1 overflow-y-auto px-2 space-y-1", children: n.map(({ section: s, color: m, items: f }) => {
2240
- const { active: h, hover: v, text: y } = zn(m);
2251
+ /* @__PURE__ */ P.jsx("nav", { className: "flex-1 overflow-y-auto px-2 space-y-1", children: n.map(({ section: s, color: m, rawColor: f, items: h }) => {
2252
+ const { activeBg: v, hoverBg: y, textClass: b, hoverTextClass: E, borderColor: g } = zn(m, f);
2241
2253
  return /* @__PURE__ */ P.jsxs("div", { className: "mb-4", children: [
2242
2254
  e ? /* @__PURE__ */ P.jsx("p", { className: "text-gray-500 text-[10px] font-semibold uppercase tracking-widest px-2 mb-1", children: s }) : /* @__PURE__ */ P.jsx("div", { className: "border-t border-white/10 my-2" }),
2243
- f.map(({ label: R, icon: b, to: g }) => /* @__PURE__ */ P.jsxs(
2255
+ h.map(({ label: w, icon: R, to: _ }) => /* @__PURE__ */ P.jsxs(
2244
2256
  Ne,
2245
2257
  {
2246
- to: g,
2247
- title: e ? void 0 : R,
2248
- className: ({ isActive: C }) => Z(
2258
+ to: _,
2259
+ title: e ? void 0 : w,
2260
+ className: ({ isActive: $ }) => Z(
2261
+ // base
2249
2262
  "group w-full flex items-center gap-3 rounded-md px-2 py-2 text-sm transition-all duration-200 mb-0.5",
2250
- C ? `${h} ${y}` : `text-[#DAE2FD] ${v}`,
2263
+ // always reserve 2px on the left for the border — prevents layout shift
2264
+ "border-l-2",
2265
+ $ ? `${v} ${b}` : `text-[#DAE2FD] ${y} ${E}`,
2251
2266
  !e && "justify-center"
2252
2267
  ),
2268
+ style: ({ isActive: $ }) => ({
2269
+ borderColor: $ ? g : "transparent"
2270
+ }),
2271
+ onMouseEnter: ($) => {
2272
+ const j = $.currentTarget;
2273
+ j.getAttribute("aria-current") !== "page" && (j.style.borderColor = g);
2274
+ },
2275
+ onMouseLeave: ($) => {
2276
+ const j = $.currentTarget;
2277
+ j.getAttribute("aria-current") !== "page" && (j.style.borderColor = "transparent");
2278
+ },
2253
2279
  children: [
2254
- /* @__PURE__ */ P.jsx("span", { className: "flex-shrink-0", children: b }),
2255
- e && /* @__PURE__ */ P.jsx("span", { children: R })
2280
+ /* @__PURE__ */ P.jsx("span", { className: "flex-shrink-0", children: R }),
2281
+ e && /* @__PURE__ */ P.jsx("span", { children: w })
2256
2282
  ]
2257
2283
  },
2258
- R
2284
+ w
2259
2285
  ))
2260
2286
  ] }, s);
2261
2287
  }) }),
@@ -2276,22 +2302,31 @@ function Gn({
2276
2302
  },
2277
2303
  s
2278
2304
  )),
2279
- o && /* @__PURE__ */ P.jsxs("div", { className: Z("flex items-center gap-3 px-2 py-2", !e && "justify-center"), children: [
2280
- /* @__PURE__ */ P.jsx(
2281
- "div",
2282
- {
2283
- className: Z(
2284
- "w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold flex-shrink-0",
2285
- o.avatarColor ?? "bg-green-600"
2305
+ o && /* @__PURE__ */ P.jsxs(
2306
+ "div",
2307
+ {
2308
+ className: Z(
2309
+ "flex items-center gap-3 px-2 py-2",
2310
+ !e && "justify-center"
2311
+ ),
2312
+ children: [
2313
+ /* @__PURE__ */ P.jsx(
2314
+ "div",
2315
+ {
2316
+ className: Z(
2317
+ "w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold flex-shrink-0",
2318
+ o.avatarColor ?? "bg-green-600"
2319
+ ),
2320
+ children: o.initials
2321
+ }
2286
2322
  ),
2287
- children: o.initials
2288
- }
2289
- ),
2290
- e && /* @__PURE__ */ P.jsxs("div", { className: "overflow-hidden", children: [
2291
- /* @__PURE__ */ P.jsx("div", { className: "text-white text-sm font-medium truncate", children: o.name }),
2292
- o.role && /* @__PURE__ */ P.jsx("div", { className: "text-gray-400 text-xs truncate", children: o.role })
2293
- ] })
2294
- ] })
2323
+ e && /* @__PURE__ */ P.jsxs("div", { className: "overflow-hidden", children: [
2324
+ /* @__PURE__ */ P.jsx("div", { className: "text-white text-sm font-medium truncate", children: o.name }),
2325
+ o.role && /* @__PURE__ */ P.jsx("div", { className: "text-gray-400 text-xs truncate", children: o.role })
2326
+ ] })
2327
+ ]
2328
+ }
2329
+ )
2295
2330
  ] })
2296
2331
  ]
2297
2332
  }