@unizap/uniui 1.0.17 → 1.0.19

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/uniui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as j from "react";
2
- import Pe, { useRef as se, useState as K, useEffect as ce, useMemo as ze, useReducer as Gr, useCallback as oe, forwardRef as Ye, useImperativeHandle as er, Fragment as Wr, memo as Ur, useLayoutEffect as Yr } from "react";
2
+ import Pe, { useRef as se, useState as K, useEffect as ce, useMemo as Te, useReducer as Gr, useCallback as oe, forwardRef as Ye, useImperativeHandle as er, Fragment as Wr, memo as Ur, useLayoutEffect as Yr } from "react";
3
3
  import { createPortal as Ze } from "react-dom";
4
4
  function tr(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -151,11 +151,11 @@ function Kr() {
151
151
  }
152
152
  function c() {
153
153
  var h = e(this.type);
154
- return z[h] || (z[h] = !0, console.error(
154
+ return T[h] || (T[h] = !0, console.error(
155
155
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
156
156
  )), h = this.props.ref, h !== void 0 ? h : null;
157
157
  }
158
- function u(h, C, L, M, D, I, T, E) {
158
+ function u(h, C, L, M, D, I, z, E) {
159
159
  return L = I.ref, h = {
160
160
  $$typeof: p,
161
161
  type: h,
@@ -179,7 +179,7 @@ function Kr() {
179
179
  configurable: !1,
180
180
  enumerable: !1,
181
181
  writable: !0,
182
- value: T
182
+ value: z
183
183
  }), Object.defineProperty(h, "_debugTask", {
184
184
  configurable: !1,
185
185
  enumerable: !1,
@@ -187,7 +187,7 @@ function Kr() {
187
187
  value: E
188
188
  }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
189
189
  }
190
- function d(h, C, L, M, D, I, T, E) {
190
+ function d(h, C, L, M, D, I, z, E) {
191
191
  var P = C.children;
192
192
  if (P !== void 0)
193
193
  if (M)
@@ -233,7 +233,7 @@ React keys must be passed directly to JSX without using spread:
233
233
  D,
234
234
  o(),
235
235
  L,
236
- T,
236
+ z,
237
237
  E
238
238
  );
239
239
  }
@@ -248,7 +248,7 @@ React keys must be passed directly to JSX without using spread:
248
248
  return h();
249
249
  }
250
250
  };
251
- var Y, z = {}, te = f["react-stack-bottom-frame"].bind(
251
+ var Y, T = {}, te = f["react-stack-bottom-frame"].bind(
252
252
  f,
253
253
  a
254
254
  )(), pe = H(r(a)), X = {};
@@ -284,7 +284,7 @@ function Xr() {
284
284
  return wn || (wn = 1, process.env.NODE_ENV === "production" ? et.exports = Zr() : et.exports = Kr()), et.exports;
285
285
  }
286
286
  var s = Xr();
287
- const we = {
287
+ const xe = {
288
288
  dark: {
289
289
  filled: "bg-color-gray-800 text-color-gray-200 hover:bg-color-gray-900",
290
290
  outline: "border-color-gray-900 text-color-gray-900 hover:bg-color-gray-50",
@@ -432,8 +432,8 @@ const we = {
432
432
  accent: "accent-color-rose-500",
433
433
  peer: "peer-checked:border-color-rose-500 peer-checked:text-color-rose-500"
434
434
  }
435
- }, El = (e) => {
436
- Object.assign(we, e);
435
+ }, Ml = (e) => {
436
+ Object.assign(xe, e);
437
437
  }, qt = {
438
438
  dark: {
439
439
  track: "bg-color-gray-200",
@@ -582,7 +582,7 @@ const we = {
582
582
  thumbHover: "hover:bg-color-rose-600",
583
583
  thumbActive: "active:bg-color-rose-700"
584
584
  }
585
- }, Pl = (e) => {
585
+ }, Ll = (e) => {
586
586
  Object.assign(qt, e);
587
587
  }, Gt = ({
588
588
  title: e,
@@ -609,7 +609,7 @@ const we = {
609
609
  if (!N) return;
610
610
  const V = document.createElement("span"), F = N.getBoundingClientRect(), Z = Math.max(F.width, F.height);
611
611
  V.style.width = V.style.height = `${Z}px`, V.style.left = `${O.clientX - F.left - Z / 2}px`, V.style.top = `${O.clientY - F.top - Z / 2}px`, V.className = "ripple", N.appendChild(V), setTimeout(() => V.remove(), 600), i == null || i(O);
612
- }, $ = ((y = we[r]) == null ? void 0 : y[t === "filled" ? "filled" : t === "outlined" ? "outline" : "transparent"]) || "";
612
+ }, $ = ((y = xe[r]) == null ? void 0 : y[t === "filled" ? "filled" : t === "outlined" ? "outline" : "transparent"]) || "";
613
613
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: v ? /* @__PURE__ */ s.jsxs(
614
614
  "a",
615
615
  {
@@ -656,7 +656,7 @@ const we = {
656
656
  ]
657
657
  }
658
658
  ) });
659
- }, Ml = ({
659
+ }, Fl = ({
660
660
  children: e,
661
661
  className: n = "",
662
662
  border: t = !0
@@ -670,7 +670,7 @@ const we = {
670
670
  `,
671
671
  children: e
672
672
  }
673
- ), Ll = ({
673
+ ), Al = ({
674
674
  label: e,
675
675
  checked: n = !1,
676
676
  disabled: t = !1,
@@ -714,7 +714,7 @@ const we = {
714
714
  e && /* @__PURE__ */ s.jsx("span", { className: `text-sm text-color-gray-700 ${a}`, children: e })
715
715
  ]
716
716
  }
717
- ), Fl = ({
717
+ ), Dl = ({
718
718
  selected: e,
719
719
  items: n = [],
720
720
  className: t = "",
@@ -891,7 +891,7 @@ function Qr() {
891
891
  }
892
892
  }
893
893
  }
894
- var y = c, O = u, N = l, V = i, F = n, Z = d, ae = r, ue = v, Q = p, H = t, Y = a, z = o, te = g, pe = !1;
894
+ var y = c, O = u, N = l, V = i, F = n, Z = d, ae = r, ue = v, Q = p, H = t, Y = a, T = o, te = g, pe = !1;
895
895
  function X(R) {
896
896
  return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(R) || $(R) === c;
897
897
  }
@@ -913,7 +913,7 @@ function Qr() {
913
913
  function I(R) {
914
914
  return $(R) === r;
915
915
  }
916
- function T(R) {
916
+ function z(R) {
917
917
  return $(R) === v;
918
918
  }
919
919
  function E(R) {
@@ -931,7 +931,7 @@ function Qr() {
931
931
  function S(R) {
932
932
  return $(R) === g;
933
933
  }
934
- re.AsyncMode = y, re.ConcurrentMode = O, re.ContextConsumer = N, re.ContextProvider = V, re.Element = F, re.ForwardRef = Z, re.Fragment = ae, re.Lazy = ue, re.Memo = Q, re.Portal = H, re.Profiler = Y, re.StrictMode = z, re.Suspense = te, re.isAsyncMode = X, re.isConcurrentMode = h, re.isContextConsumer = C, re.isContextProvider = L, re.isElement = M, re.isForwardRef = D, re.isFragment = I, re.isLazy = T, re.isMemo = E, re.isPortal = P, re.isProfiler = B, re.isStrictMode = q, re.isSuspense = S, re.isValidElementType = b, re.typeOf = $;
934
+ re.AsyncMode = y, re.ConcurrentMode = O, re.ContextConsumer = N, re.ContextProvider = V, re.Element = F, re.ForwardRef = Z, re.Fragment = ae, re.Lazy = ue, re.Memo = Q, re.Portal = H, re.Profiler = Y, re.StrictMode = T, re.Suspense = te, re.isAsyncMode = X, re.isConcurrentMode = h, re.isContextConsumer = C, re.isContextProvider = L, re.isElement = M, re.isForwardRef = D, re.isFragment = I, re.isLazy = z, re.isMemo = E, re.isPortal = P, re.isProfiler = B, re.isStrictMode = q, re.isSuspense = S, re.isValidElementType = b, re.typeOf = $;
935
935
  }()), re;
936
936
  }
937
937
  var Cn;
@@ -1104,7 +1104,7 @@ function no() {
1104
1104
  function w(h) {
1105
1105
  if (process.env.NODE_ENV !== "production")
1106
1106
  var C = {}, L = 0;
1107
- function M(I, T, E, P, B, q, S) {
1107
+ function M(I, z, E, P, B, q, S) {
1108
1108
  if (P = P || f, q = q || E, S !== t) {
1109
1109
  if (c) {
1110
1110
  var R = new Error(
@@ -1119,18 +1119,18 @@ function no() {
1119
1119
  ), C[_] = !0, L++);
1120
1120
  }
1121
1121
  }
1122
- return T[E] == null ? I ? T[E] === null ? new m("The " + B + " `" + q + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new m("The " + B + " `" + q + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : h(T, E, P, B, q);
1122
+ return z[E] == null ? I ? z[E] === null ? new m("The " + B + " `" + q + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new m("The " + B + " `" + q + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : h(z, E, P, B, q);
1123
1123
  }
1124
1124
  var D = M.bind(null, !1);
1125
1125
  return D.isRequired = M.bind(null, !0), D;
1126
1126
  }
1127
1127
  function x(h) {
1128
- function C(L, M, D, I, T, E) {
1129
- var P = L[M], B = z(P);
1128
+ function C(L, M, D, I, z, E) {
1129
+ var P = L[M], B = T(P);
1130
1130
  if (B !== h) {
1131
1131
  var q = te(P);
1132
1132
  return new m(
1133
- "Invalid " + I + " `" + T + "` of type " + ("`" + q + "` supplied to `" + D + "`, expected ") + ("`" + h + "`."),
1133
+ "Invalid " + I + " `" + z + "` of type " + ("`" + q + "` supplied to `" + D + "`, expected ") + ("`" + h + "`."),
1134
1134
  { expectedType: h }
1135
1135
  );
1136
1136
  }
@@ -1142,16 +1142,16 @@ function no() {
1142
1142
  return w(i);
1143
1143
  }
1144
1144
  function b(h) {
1145
- function C(L, M, D, I, T) {
1145
+ function C(L, M, D, I, z) {
1146
1146
  if (typeof h != "function")
1147
- return new m("Property `" + T + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
1147
+ return new m("Property `" + z + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
1148
1148
  var E = L[M];
1149
1149
  if (!Array.isArray(E)) {
1150
- var P = z(E);
1151
- return new m("Invalid " + I + " `" + T + "` of type " + ("`" + P + "` supplied to `" + D + "`, expected an array."));
1150
+ var P = T(E);
1151
+ return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + D + "`, expected an array."));
1152
1152
  }
1153
1153
  for (var B = 0; B < E.length; B++) {
1154
- var q = h(E, B, D, I, T + "[" + B + "]", t);
1154
+ var q = h(E, B, D, I, z + "[" + B + "]", t);
1155
1155
  if (q instanceof Error)
1156
1156
  return q;
1157
1157
  }
@@ -1161,9 +1161,9 @@ function no() {
1161
1161
  }
1162
1162
  function $() {
1163
1163
  function h(C, L, M, D, I) {
1164
- var T = C[L];
1165
- if (!l(T)) {
1166
- var E = z(T);
1164
+ var z = C[L];
1165
+ if (!l(z)) {
1166
+ var E = T(z);
1167
1167
  return new m("Invalid " + D + " `" + I + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected a single ReactElement."));
1168
1168
  }
1169
1169
  return null;
@@ -1172,9 +1172,9 @@ function no() {
1172
1172
  }
1173
1173
  function y() {
1174
1174
  function h(C, L, M, D, I) {
1175
- var T = C[L];
1176
- if (!e.isValidElementType(T)) {
1177
- var E = z(T);
1175
+ var z = C[L];
1176
+ if (!e.isValidElementType(z)) {
1177
+ var E = T(z);
1178
1178
  return new m("Invalid " + D + " `" + I + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected a single ReactElement type."));
1179
1179
  }
1180
1180
  return null;
@@ -1182,10 +1182,10 @@ function no() {
1182
1182
  return w(h);
1183
1183
  }
1184
1184
  function O(h) {
1185
- function C(L, M, D, I, T) {
1185
+ function C(L, M, D, I, z) {
1186
1186
  if (!(L[M] instanceof h)) {
1187
1187
  var E = h.name || f, P = X(L[M]);
1188
- return new m("Invalid " + I + " `" + T + "` of type " + ("`" + P + "` supplied to `" + D + "`, expected ") + ("instance of `" + E + "`."));
1188
+ return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + D + "`, expected ") + ("instance of `" + E + "`."));
1189
1189
  }
1190
1190
  return null;
1191
1191
  }
@@ -1196,7 +1196,7 @@ function no() {
1196
1196
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1197
1197
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1198
1198
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
1199
- function C(L, M, D, I, T) {
1199
+ function C(L, M, D, I, z) {
1200
1200
  for (var E = L[M], P = 0; P < h.length; P++)
1201
1201
  if (v(E, h[P]))
1202
1202
  return null;
@@ -1204,20 +1204,20 @@ function no() {
1204
1204
  var _ = te(R);
1205
1205
  return _ === "symbol" ? String(R) : R;
1206
1206
  });
1207
- return new m("Invalid " + I + " `" + T + "` of value `" + String(E) + "` " + ("supplied to `" + D + "`, expected one of " + B + "."));
1207
+ return new m("Invalid " + I + " `" + z + "` of value `" + String(E) + "` " + ("supplied to `" + D + "`, expected one of " + B + "."));
1208
1208
  }
1209
1209
  return w(C);
1210
1210
  }
1211
1211
  function V(h) {
1212
- function C(L, M, D, I, T) {
1212
+ function C(L, M, D, I, z) {
1213
1213
  if (typeof h != "function")
1214
- return new m("Property `" + T + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
1215
- var E = L[M], P = z(E);
1214
+ return new m("Property `" + z + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
1215
+ var E = L[M], P = T(E);
1216
1216
  if (P !== "object")
1217
- return new m("Invalid " + I + " `" + T + "` of type " + ("`" + P + "` supplied to `" + D + "`, expected an object."));
1217
+ return new m("Invalid " + I + " `" + z + "` of type " + ("`" + P + "` supplied to `" + D + "`, expected an object."));
1218
1218
  for (var B in E)
1219
1219
  if (r(E, B)) {
1220
- var q = h(E, B, D, I, T + "." + B, t);
1220
+ var q = h(E, B, D, I, z + "." + B, t);
1221
1221
  if (q instanceof Error)
1222
1222
  return q;
1223
1223
  }
@@ -1235,15 +1235,15 @@ function no() {
1235
1235
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(L) + " at index " + C + "."
1236
1236
  ), i;
1237
1237
  }
1238
- function M(D, I, T, E, P) {
1238
+ function M(D, I, z, E, P) {
1239
1239
  for (var B = [], q = 0; q < h.length; q++) {
1240
- var S = h[q], R = S(D, I, T, E, P, t);
1240
+ var S = h[q], R = S(D, I, z, E, P, t);
1241
1241
  if (R == null)
1242
1242
  return null;
1243
1243
  R.data && r(R.data, "expectedType") && B.push(R.data.expectedType);
1244
1244
  }
1245
1245
  var _ = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
1246
- return new m("Invalid " + E + " `" + P + "` supplied to " + ("`" + T + "`" + _ + "."));
1246
+ return new m("Invalid " + E + " `" + P + "` supplied to " + ("`" + z + "`" + _ + "."));
1247
1247
  }
1248
1248
  return w(M);
1249
1249
  }
@@ -1259,15 +1259,15 @@ function no() {
1259
1259
  );
1260
1260
  }
1261
1261
  function ue(h) {
1262
- function C(L, M, D, I, T) {
1263
- var E = L[M], P = z(E);
1262
+ function C(L, M, D, I, z) {
1263
+ var E = L[M], P = T(E);
1264
1264
  if (P !== "object")
1265
- return new m("Invalid " + I + " `" + T + "` of type `" + P + "` " + ("supplied to `" + D + "`, expected `object`."));
1265
+ return new m("Invalid " + I + " `" + z + "` of type `" + P + "` " + ("supplied to `" + D + "`, expected `object`."));
1266
1266
  for (var B in h) {
1267
1267
  var q = h[B];
1268
1268
  if (typeof q != "function")
1269
- return ae(D, I, T, B, te(q));
1270
- var S = q(E, B, D, I, T + "." + B, t);
1269
+ return ae(D, I, z, B, te(q));
1270
+ var S = q(E, B, D, I, z + "." + B, t);
1271
1271
  if (S)
1272
1272
  return S;
1273
1273
  }
@@ -1276,21 +1276,21 @@ function no() {
1276
1276
  return w(C);
1277
1277
  }
1278
1278
  function Q(h) {
1279
- function C(L, M, D, I, T) {
1280
- var E = L[M], P = z(E);
1279
+ function C(L, M, D, I, z) {
1280
+ var E = L[M], P = T(E);
1281
1281
  if (P !== "object")
1282
- return new m("Invalid " + I + " `" + T + "` of type `" + P + "` " + ("supplied to `" + D + "`, expected `object`."));
1282
+ return new m("Invalid " + I + " `" + z + "` of type `" + P + "` " + ("supplied to `" + D + "`, expected `object`."));
1283
1283
  var B = n({}, L[M], h);
1284
1284
  for (var q in B) {
1285
1285
  var S = h[q];
1286
1286
  if (r(h, q) && typeof S != "function")
1287
- return ae(D, I, T, q, te(S));
1287
+ return ae(D, I, z, q, te(S));
1288
1288
  if (!S)
1289
1289
  return new m(
1290
- "Invalid " + I + " `" + T + "` key `" + q + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(L[M], null, " ") + `
1290
+ "Invalid " + I + " `" + z + "` key `" + q + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(L[M], null, " ") + `
1291
1291
  Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1292
1292
  );
1293
- var R = S(E, q, D, I, T + "." + q, t);
1293
+ var R = S(E, q, D, I, z + "." + q, t);
1294
1294
  if (R)
1295
1295
  return R;
1296
1296
  }
@@ -1334,14 +1334,14 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1334
1334
  function Y(h, C) {
1335
1335
  return h === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
1336
1336
  }
1337
- function z(h) {
1337
+ function T(h) {
1338
1338
  var C = typeof h;
1339
1339
  return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : Y(C, h) ? "symbol" : C;
1340
1340
  }
1341
1341
  function te(h) {
1342
1342
  if (typeof h > "u" || h === null)
1343
1343
  return "" + h;
1344
- var C = z(h);
1344
+ var C = T(h);
1345
1345
  if (C === "object") {
1346
1346
  if (h instanceof Date)
1347
1347
  return "date";
@@ -2913,12 +2913,12 @@ var $o = typeof Ft == "function" ? Ft : Ft.default, _o = "file-invalid-type", Eo
2913
2913
  code: _o,
2914
2914
  message: "File type must be ".concat(r)
2915
2915
  };
2916
- }, Tn = function(n) {
2916
+ }, zn = function(n) {
2917
2917
  return {
2918
2918
  code: Eo,
2919
2919
  message: "File is larger than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
2920
2920
  };
2921
- }, zn = function(n) {
2921
+ }, Tn = function(n) {
2922
2922
  return {
2923
2923
  code: Po,
2924
2924
  message: "File is smaller than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
@@ -2934,11 +2934,11 @@ function sr(e, n) {
2934
2934
  function cr(e, n, t) {
2935
2935
  if (Ae(e.size))
2936
2936
  if (Ae(n) && Ae(t)) {
2937
- if (e.size > t) return [!1, Tn(t)];
2938
- if (e.size < n) return [!1, zn(n)];
2937
+ if (e.size > t) return [!1, zn(t)];
2938
+ if (e.size < n) return [!1, Tn(n)];
2939
2939
  } else {
2940
- if (Ae(n) && e.size < n) return [!1, zn(n)];
2941
- if (Ae(t) && e.size > t) return [!1, Tn(t)];
2940
+ if (Ae(n) && e.size < n) return [!1, Tn(n)];
2941
+ if (Ae(t) && e.size > t) return [!1, zn(t)];
2942
2942
  }
2943
2943
  return [!0, null];
2944
2944
  }
@@ -2969,7 +2969,7 @@ function Do(e) {
2969
2969
  function No(e) {
2970
2970
  return e.indexOf("Edge/") !== -1;
2971
2971
  }
2972
- function To() {
2972
+ function zo() {
2973
2973
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
2974
2974
  return Do(e) || No(e);
2975
2975
  }
@@ -2984,7 +2984,7 @@ function Se() {
2984
2984
  });
2985
2985
  };
2986
2986
  }
2987
- function zo() {
2987
+ function To() {
2988
2988
  return "showOpenFilePicker" in window;
2989
2989
  }
2990
2990
  function Oo(e) {
@@ -3329,15 +3329,15 @@ var Kt = {
3329
3329
  fileRejections: []
3330
3330
  };
3331
3331
  function mr() {
3332
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = le(le({}, fr), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, i = n.minSize, l = n.multiple, c = n.maxFiles, u = n.onDragEnter, d = n.onDragLeave, g = n.onDragOver, f = n.onDrop, p = n.onDropAccepted, v = n.onDropRejected, m = n.onFileDialogCancel, w = n.onFileDialogOpen, x = n.useFsAccessApi, k = n.autoFocus, b = n.preventDropOnDocument, $ = n.noClick, y = n.noKeyboard, O = n.noDrag, N = n.noDragEventsBubbling, V = n.onError, F = n.validator, Z = ze(function() {
3332
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = le(le({}, fr), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, i = n.minSize, l = n.multiple, c = n.maxFiles, u = n.onDragEnter, d = n.onDragLeave, g = n.onDragOver, f = n.onDrop, p = n.onDropAccepted, v = n.onDropRejected, m = n.onFileDialogCancel, w = n.onFileDialogOpen, x = n.useFsAccessApi, k = n.autoFocus, b = n.preventDropOnDocument, $ = n.noClick, y = n.noKeyboard, O = n.noDrag, N = n.noDragEventsBubbling, V = n.onError, F = n.validator, Z = Te(function() {
3333
3333
  return Io(t);
3334
- }, [t]), ae = ze(function() {
3334
+ }, [t]), ae = Te(function() {
3335
3335
  return Oo(t);
3336
- }, [t]), ue = ze(function() {
3336
+ }, [t]), ue = Te(function() {
3337
3337
  return typeof w == "function" ? w : Vn;
3338
- }, [w]), Q = ze(function() {
3338
+ }, [w]), Q = Te(function() {
3339
3339
  return typeof m == "function" ? m : Vn;
3340
- }, [m]), H = se(null), Y = se(null), z = Gr(ta, Kt), te = At(z, 2), pe = te[0], X = te[1], h = pe.isFocused, C = pe.isFileDialogActive, L = se(typeof window < "u" && window.isSecureContext && x && zo()), M = function() {
3340
+ }, [m]), H = se(null), Y = se(null), T = Gr(ta, Kt), te = At(T, 2), pe = te[0], X = te[1], h = pe.isFocused, C = pe.isFileDialogActive, L = se(typeof window < "u" && window.isSecureContext && x && To()), M = function() {
3341
3341
  !L.current && C && setTimeout(function() {
3342
3342
  if (Y.current) {
3343
3343
  var G = Y.current.files;
@@ -3363,7 +3363,7 @@ function mr() {
3363
3363
  return !r && k && H.current && H.current.focus(), function() {
3364
3364
  };
3365
3365
  }, [H, k, r]);
3366
- var T = oe(function(A) {
3366
+ var z = oe(function(A) {
3367
3367
  V ? V(A) : console.error(A);
3368
3368
  }, [V]), E = oe(function(A) {
3369
3369
  A.preventDefault(), A.persist(), Je(A), D.current = [].concat(Uo(D.current), [A.target]), ot(A) && Promise.resolve(o(A)).then(function(G) {
@@ -3385,9 +3385,9 @@ function mr() {
3385
3385
  }), u && u(A);
3386
3386
  }
3387
3387
  }).catch(function(G) {
3388
- return T(G);
3388
+ return z(G);
3389
3389
  });
3390
- }, [o, u, T, N, Z, i, a, l, c, F]), P = oe(function(A) {
3390
+ }, [o, u, z, N, Z, i, a, l, c, F]), P = oe(function(A) {
3391
3391
  A.preventDefault(), A.persist(), Je(A);
3392
3392
  var G = ot(A);
3393
3393
  if (G && A.dataTransfer)
@@ -3410,7 +3410,7 @@ function mr() {
3410
3410
  }, [H, d, N]), q = oe(function(A, G) {
3411
3411
  var me = [], ge = [];
3412
3412
  A.forEach(function(be) {
3413
- var Ve = sr(be, Z), Te = At(Ve, 2), bt = Te[0], yt = Te[1], Ct = cr(be, i, a), Qe = At(Ct, 2), St = Qe[0], Rt = Qe[1], jt = F ? F(be) : null;
3413
+ var Ve = sr(be, Z), ze = At(Ve, 2), bt = ze[0], yt = ze[1], Ct = cr(be, i, a), Qe = At(Ct, 2), St = Qe[0], Rt = Qe[1], jt = F ? F(be) : null;
3414
3414
  if (bt && St && !jt)
3415
3415
  me.push(be);
3416
3416
  else {
@@ -3437,11 +3437,11 @@ function mr() {
3437
3437
  A.preventDefault(), A.persist(), Je(A), D.current = [], ot(A) && Promise.resolve(o(A)).then(function(G) {
3438
3438
  ft(A) && !N || q(G, A);
3439
3439
  }).catch(function(G) {
3440
- return T(G);
3440
+ return z(G);
3441
3441
  }), X({
3442
3442
  type: "reset"
3443
3443
  });
3444
- }, [o, q, T, N]), R = oe(function() {
3444
+ }, [o, q, z, N]), R = oe(function() {
3445
3445
  if (L.current) {
3446
3446
  X({
3447
3447
  type: "openDialog"
@@ -3459,14 +3459,14 @@ function mr() {
3459
3459
  }).catch(function(G) {
3460
3460
  Vo(G) ? (Q(G), X({
3461
3461
  type: "closeDialog"
3462
- })) : Ho(G) ? (L.current = !1, Y.current ? (Y.current.value = null, Y.current.click()) : T(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : T(G);
3462
+ })) : Ho(G) ? (L.current = !1, Y.current ? (Y.current.value = null, Y.current.click()) : z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : z(G);
3463
3463
  });
3464
3464
  return;
3465
3465
  }
3466
3466
  Y.current && (X({
3467
3467
  type: "openDialog"
3468
3468
  }), ue(), Y.current.value = null, Y.current.click());
3469
- }, [X, ue, Q, x, q, T, ae, l]), _ = oe(function(A) {
3469
+ }, [X, ue, Q, x, q, z, ae, l]), _ = oe(function(A) {
3470
3470
  !H.current || !H.current.isEqualNode(A.target) || (A.key === " " || A.key === "Enter" || A.keyCode === 32 || A.keyCode === 13) && (A.preventDefault(), R());
3471
3471
  }, [H, R]), J = oe(function() {
3472
3472
  X({
@@ -3477,22 +3477,22 @@ function mr() {
3477
3477
  type: "blur"
3478
3478
  });
3479
3479
  }, []), de = oe(function() {
3480
- $ || (To() ? setTimeout(R, 0) : R());
3480
+ $ || (zo() ? setTimeout(R, 0) : R());
3481
3481
  }, [$, R]), fe = function(G) {
3482
3482
  return r ? null : G;
3483
- }, xe = function(G) {
3483
+ }, we = function(G) {
3484
3484
  return y ? null : fe(G);
3485
3485
  }, Xe = function(G) {
3486
3486
  return O ? null : fe(G);
3487
3487
  }, Je = function(G) {
3488
3488
  N && G.stopPropagation();
3489
- }, Vr = ze(function() {
3489
+ }, Vr = Te(function() {
3490
3490
  return function() {
3491
- var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.role, be = A.onKeyDown, Ve = A.onFocus, Te = A.onBlur, bt = A.onClick, yt = A.onDragEnter, Ct = A.onDragOver, Qe = A.onDragLeave, St = A.onDrop, Rt = mt(A, Go);
3491
+ var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.role, be = A.onKeyDown, Ve = A.onFocus, ze = A.onBlur, bt = A.onClick, yt = A.onDragEnter, Ct = A.onDragOver, Qe = A.onDragLeave, St = A.onDrop, Rt = mt(A, Go);
3492
3492
  return le(le(Zt({
3493
- onKeyDown: xe(Se(be, _)),
3494
- onFocus: xe(Se(Ve, J)),
3495
- onBlur: xe(Se(Te, ee)),
3493
+ onKeyDown: we(Se(be, _)),
3494
+ onFocus: we(Se(Ve, J)),
3495
+ onBlur: we(Se(ze, ee)),
3496
3496
  onClick: fe(Se(bt, de)),
3497
3497
  onDragEnter: Xe(Se(yt, E)),
3498
3498
  onDragOver: Xe(Se(Ct, P)),
@@ -3505,9 +3505,9 @@ function mr() {
3505
3505
  };
3506
3506
  }, [H, _, J, ee, de, E, P, B, S, y, O, r]), Hr = oe(function(A) {
3507
3507
  A.stopPropagation();
3508
- }, []), Br = ze(function() {
3508
+ }, []), Br = Te(function() {
3509
3509
  return function() {
3510
- var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.onChange, be = A.onClick, Ve = mt(A, Wo), Te = Zt({
3510
+ var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.onChange, be = A.onClick, Ve = mt(A, Wo), ze = Zt({
3511
3511
  accept: Z,
3512
3512
  multiple: l,
3513
3513
  type: "file",
@@ -3527,7 +3527,7 @@ function mr() {
3527
3527
  onClick: fe(Se(be, Hr)),
3528
3528
  tabIndex: -1
3529
3529
  }, me, Y);
3530
- return le(le({}, Te), Ve);
3530
+ return le(le({}, ze), Ve);
3531
3531
  };
3532
3532
  }, [Y, t, l, S, r]);
3533
3533
  return le(le({}, pe), {}, {
@@ -3577,7 +3577,7 @@ function ta(e, n) {
3577
3577
  }
3578
3578
  function Vn() {
3579
3579
  }
3580
- const Al = ({
3580
+ const Nl = ({
3581
3581
  onFilesAccepted: e,
3582
3582
  onError: n,
3583
3583
  accept: t = {
@@ -3613,12 +3613,12 @@ const Al = ({
3613
3613
  const N = oe(
3614
3614
  (Q, H) => {
3615
3615
  const Y = [];
3616
- if (H.length > 0 && H.forEach((z) => {
3617
- z.errors.forEach((te) => {
3616
+ if (H.length > 0 && H.forEach((T) => {
3617
+ T.errors.forEach((te) => {
3618
3618
  te.code === "file-too-large" && Y.push(
3619
- `${z.file.name} is too large (max ${(o / 1024 / 1024).toFixed(2)}MB)`
3619
+ `${T.file.name} is too large (max ${(o / 1024 / 1024).toFixed(2)}MB)`
3620
3620
  ), te.code === "file-invalid-type" && Y.push(
3621
- `${z.file.name} has an invalid file type`
3621
+ `${T.file.name} has an invalid file type`
3622
3622
  );
3623
3623
  });
3624
3624
  }), a !== void 0 && (r ? b.length : 0) + Q.length > a && Y.push(
@@ -3629,7 +3629,7 @@ const Al = ({
3629
3629
  } else
3630
3630
  O([]);
3631
3631
  Q.length > 0 && ($(
3632
- (z) => r ? [...z, ...Q] : Q
3632
+ (T) => r ? [...T, ...Q] : Q
3633
3633
  ), e(Q));
3634
3634
  },
3635
3635
  [
@@ -3641,7 +3641,7 @@ const Al = ({
3641
3641
  r
3642
3642
  ]
3643
3643
  ), V = (Q) => {
3644
- $((H) => H.filter((Y, z) => z !== Q)), k(b);
3644
+ $((H) => H.filter((Y, T) => T !== Q)), k(b);
3645
3645
  }, { getRootProps: F, getInputProps: Z, isDragActive: ae, isDragReject: ue } = mr({
3646
3646
  onDrop: N,
3647
3647
  accept: t,
@@ -3834,7 +3834,14 @@ const ra = {
3834
3834
  }
3835
3835
  );
3836
3836
  ia.displayName = "OtpInput";
3837
- const gr = Ye(
3837
+ const la = {
3838
+ small: "p-2 text-sm",
3839
+ medium: "p-3 text-base",
3840
+ large: "p-4 text-lg"
3841
+ }, sa = {
3842
+ filled: "bg-color-gray-100 border-color-gray-200",
3843
+ outlined: "border-color-gray-200 bg-color-transparent"
3844
+ }, gr = Ye(
3838
3845
  ({
3839
3846
  placeholder: e,
3840
3847
  value: n,
@@ -3849,34 +3856,36 @@ const gr = Ye(
3849
3856
  maxLength: d,
3850
3857
  label: g,
3851
3858
  labelClassName: f = "",
3852
- ...p
3853
- }, v) => {
3854
- const m = u ? "border-color-red-500 focus-within:ring-color-red-500" : "border-color-gray-200", w = u ? "text-color-red-500" : i;
3859
+ variant: p = "outlined",
3860
+ size: v = "medium",
3861
+ ...m
3862
+ }, w) => {
3863
+ const x = u ? "border-color-red-500 focus-within:ring-color-red-500" : "border-color-gray-200", k = u ? "text-color-red-500" : i;
3855
3864
  return /* @__PURE__ */ s.jsxs("div", { className: "w-full", children: [
3856
3865
  g && /* @__PURE__ */ s.jsx("label", { className: `text-sm text-color-gray-500 mb-2 block ${f}`, children: g }),
3857
- /* @__PURE__ */ s.jsxs("div", { className: `flex items-center w-full rounded-md border focus-within:ring-1 ${m} ${o}`, children: [
3858
- l && /* @__PURE__ */ s.jsx("span", { className: `pl-3 ${w}`, children: l }),
3866
+ /* @__PURE__ */ s.jsxs("div", { className: `flex items-center w-full rounded-md border focus-within:ring-1 ${x} ${sa[p]} ${o}`, children: [
3867
+ l && /* @__PURE__ */ s.jsx("span", { className: `pl-3 ${k}`, children: l }),
3859
3868
  /* @__PURE__ */ s.jsx(
3860
3869
  "input",
3861
3870
  {
3862
- ...p,
3863
- ref: v,
3871
+ ...m,
3872
+ ref: w,
3864
3873
  type: r,
3865
3874
  placeholder: e,
3866
3875
  defaultValue: n,
3867
3876
  maxLength: d,
3868
3877
  onChange: t,
3869
- className: `grow bg-color-transparent px-3 py-3 outline-0 text-md w-full font-medium placeholder:font-normal ${a}`
3878
+ className: `grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${la[v]} ${a}`
3870
3879
  }
3871
3880
  ),
3872
- c && /* @__PURE__ */ s.jsx("span", { className: `pr-3 ${w}`, children: c })
3881
+ c && /* @__PURE__ */ s.jsx("span", { className: `pr-3 ${k}`, children: c })
3873
3882
  ] }),
3874
3883
  u && /* @__PURE__ */ s.jsx("p", { className: "text-color-red-500 text-xs mt-1", children: u })
3875
3884
  ] });
3876
3885
  }
3877
3886
  );
3878
3887
  gr.displayName = "TextInput";
3879
- const la = Ye((e, n) => {
3888
+ const ca = Ye((e, n) => {
3880
3889
  const [t, r] = K(!1);
3881
3890
  return /* @__PURE__ */ s.jsx(
3882
3891
  gr,
@@ -3897,12 +3906,12 @@ const la = Ye((e, n) => {
3897
3906
  }
3898
3907
  );
3899
3908
  });
3900
- la.displayName = "PasswordInput";
3901
- const sa = {
3909
+ ca.displayName = "PasswordInput";
3910
+ const ua = {
3902
3911
  small: "text-xs px-2 py-1",
3903
3912
  medium: "text-sm px-3 py-[0.35rem]",
3904
3913
  large: "text-base px-4 py-2"
3905
- }, Dl = ({
3914
+ }, zl = ({
3906
3915
  label: e,
3907
3916
  color: n = "blue",
3908
3917
  variant: t = "filled",
@@ -3910,9 +3919,9 @@ const sa = {
3910
3919
  className: o = ""
3911
3920
  }) => {
3912
3921
  var u, d;
3913
- const a = (u = we[n]) == null ? void 0 : u.filled, i = (d = we[n]) == null ? void 0 : d.outline, l = sa[r], c = `inline-flex text-nowrap items-center rounded-full font-medium leading-none ${t === "outlined" ? `border ${i}` : a} ${l}`.trim();
3922
+ const a = (u = xe[n]) == null ? void 0 : u.filled, i = (d = xe[n]) == null ? void 0 : d.outline, l = ua[r], c = `inline-flex text-nowrap items-center rounded-full font-medium leading-none ${t === "outlined" ? `border ${i}` : a} ${l}`.trim();
3914
3923
  return /* @__PURE__ */ s.jsx("span", { className: `${c} ${o}`, children: e });
3915
- }, ca = ({
3924
+ }, da = ({
3916
3925
  src: e,
3917
3926
  alt: n,
3918
3927
  size: t = "medium",
@@ -3935,7 +3944,7 @@ const sa = {
3935
3944
  return /* @__PURE__ */ s.jsx(
3936
3945
  "div",
3937
3946
  {
3938
- className: `inline-flex items-center justify-center font-medium overflow-hidden ${l[t]} ${c[i]} ${we[a].filled} ${o}`,
3947
+ className: `inline-flex items-center justify-center font-medium overflow-hidden ${l[t]} ${c[i]} ${xe[a].filled} ${o}`,
3939
3948
  children: e ? /* @__PURE__ */ s.jsx(
3940
3949
  "img",
3941
3950
  {
@@ -3946,19 +3955,19 @@ const sa = {
3946
3955
  ) : r || ((u = n == null ? void 0 : n[0]) == null ? void 0 : u.toUpperCase()) || "?"
3947
3956
  }
3948
3957
  );
3949
- }, Nl = ({
3958
+ }, Tl = ({
3950
3959
  size: e,
3951
3960
  imageUrl: n,
3952
3961
  name: t = "User",
3953
3962
  number: r = "1234567890",
3954
3963
  className: o = ""
3955
3964
  }) => /* @__PURE__ */ s.jsxs("div", { className: o || "flex items-center gap-2 w-fit bg-color-transparent rounded-md p-1", children: [
3956
- /* @__PURE__ */ s.jsx(ca, { size: e, src: n, alt: `${t}'s profile` }),
3965
+ /* @__PURE__ */ s.jsx(da, { size: e, src: n, alt: `${t}'s profile` }),
3957
3966
  /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col", children: [
3958
3967
  /* @__PURE__ */ s.jsx("span", { className: "text-sm font-medium text-color-gray-800", children: t }),
3959
3968
  /* @__PURE__ */ s.jsx("span", { className: "text-xs text-color-gray-600", children: r })
3960
3969
  ] })
3961
- ] }), Tl = ({ steps: e, currentStep: n, className: t = "", onChange: r }) => /* @__PURE__ */ s.jsx("div", { className: `flex items-center ${t}`, children: e.map((o, a) => {
3970
+ ] }), Ol = ({ steps: e, currentStep: n, className: t = "", onChange: r }) => /* @__PURE__ */ s.jsx("div", { className: `flex items-center ${t}`, children: e.map((o, a) => {
3962
3971
  const i = a === n, l = a < n;
3963
3972
  return /* @__PURE__ */ s.jsxs(Pe.Fragment, { children: [
3964
3973
  /* @__PURE__ */ s.jsxs(
@@ -4006,10 +4015,10 @@ function ye(e, n) {
4006
4015
  function vt(e) {
4007
4016
  return e instanceof Function;
4008
4017
  }
4009
- function ua(e) {
4018
+ function pa(e) {
4010
4019
  return Array.isArray(e) && e.every((n) => typeof n == "number");
4011
4020
  }
4012
- function da(e, n) {
4021
+ function fa(e, n) {
4013
4022
  const t = [], r = (o) => {
4014
4023
  o.forEach((a) => {
4015
4024
  t.push(a);
@@ -4053,7 +4062,7 @@ function U(e, n, t, r) {
4053
4062
  onChange: r
4054
4063
  };
4055
4064
  }
4056
- function pa(e, n, t, r) {
4065
+ function ma(e, n, t, r) {
4057
4066
  const o = () => {
4058
4067
  var i;
4059
4068
  return (i = a.getValue()) != null ? i : e.options.renderFallbackValue;
@@ -4076,7 +4085,7 @@ function pa(e, n, t, r) {
4076
4085
  i.createCell == null || i.createCell(a, t, n, e);
4077
4086
  }, {}), a;
4078
4087
  }
4079
- function fa(e, n, t, r) {
4088
+ function ga(e, n, t, r) {
4080
4089
  var o, a;
4081
4090
  const l = {
4082
4091
  ...e._getDefaultColumnDef(),
@@ -4146,7 +4155,7 @@ function Hn(e, n, t) {
4146
4155
  i.createHeader == null || i.createHeader(a, e);
4147
4156
  }), a;
4148
4157
  }
4149
- const ma = {
4158
+ const va = {
4150
4159
  createTable: (e) => {
4151
4160
  e.getHeaderGroups = W(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => {
4152
4161
  var a, i;
@@ -4231,7 +4240,7 @@ function at(e, n, t, r) {
4231
4240
  });
4232
4241
  return g((o = (a = c[0]) == null ? void 0 : a.headers) != null ? o : []), c;
4233
4242
  }
4234
- const ga = (e, n, t, r, o, a, i) => {
4243
+ const ha = (e, n, t, r, o, a, i) => {
4235
4244
  let l = {
4236
4245
  id: n,
4237
4246
  index: r,
@@ -4259,7 +4268,7 @@ const ga = (e, n, t, r, o, a, i) => {
4259
4268
  return (u = l.getValue(c)) != null ? u : e.options.renderFallbackValue;
4260
4269
  },
4261
4270
  subRows: [],
4262
- getLeafRows: () => da(l.subRows, (c) => c.subRows),
4271
+ getLeafRows: () => fa(l.subRows, (c) => c.subRows),
4263
4272
  getParentRow: () => l.parentId ? e.getRow(l.parentId, !0) : void 0,
4264
4273
  getParentRows: () => {
4265
4274
  let c = [], u = l;
@@ -4270,7 +4279,7 @@ const ga = (e, n, t, r, o, a, i) => {
4270
4279
  }
4271
4280
  return c.reverse();
4272
4281
  },
4273
- getAllCells: W(() => [e.getAllLeafColumns()], (c) => c.map((u) => pa(e, l, u, u.id)), U(e.options, "debugRows", "getAllCells")),
4282
+ getAllCells: W(() => [e.getAllLeafColumns()], (c) => c.map((u) => ma(e, l, u, u.id)), U(e.options, "debugRows", "getAllCells")),
4274
4283
  _getAllCellsByColumnId: W(() => [l.getAllCells()], (c) => c.reduce((u, d) => (u[d.column.id] = d, u), {}), U(e.options, "debugRows", "getAllCellsByColumnId"))
4275
4284
  };
4276
4285
  for (let c = 0; c < e._features.length; c++) {
@@ -4278,7 +4287,7 @@ const ga = (e, n, t, r, o, a, i) => {
4278
4287
  u == null || u.createRow == null || u.createRow(l, e);
4279
4288
  }
4280
4289
  return l;
4281
- }, va = {
4290
+ }, xa = {
4282
4291
  createColumn: (e, n) => {
4283
4292
  e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
4284
4293
  if (e._getFacetedMinMaxValues)
@@ -4348,7 +4357,7 @@ const Re = {
4348
4357
  function Ce(e) {
4349
4358
  return e == null || e === "";
4350
4359
  }
4351
- const ha = {
4360
+ const wa = {
4352
4361
  getDefaultColumnDef: () => ({
4353
4362
  filterFn: "auto"
4354
4363
  }),
@@ -4426,54 +4435,54 @@ const ha = {
4426
4435
  function Bn(e, n, t) {
4427
4436
  return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
4428
4437
  }
4429
- const xa = (e, n, t) => t.reduce((r, o) => {
4438
+ const ba = (e, n, t) => t.reduce((r, o) => {
4430
4439
  const a = o.getValue(e);
4431
4440
  return r + (typeof a == "number" ? a : 0);
4432
- }, 0), wa = (e, n, t) => {
4441
+ }, 0), ya = (e, n, t) => {
4433
4442
  let r;
4434
4443
  return t.forEach((o) => {
4435
4444
  const a = o.getValue(e);
4436
4445
  a != null && (r > a || r === void 0 && a >= a) && (r = a);
4437
4446
  }), r;
4438
- }, ba = (e, n, t) => {
4447
+ }, Ca = (e, n, t) => {
4439
4448
  let r;
4440
4449
  return t.forEach((o) => {
4441
4450
  const a = o.getValue(e);
4442
4451
  a != null && (r < a || r === void 0 && a >= a) && (r = a);
4443
4452
  }), r;
4444
- }, ya = (e, n, t) => {
4453
+ }, Sa = (e, n, t) => {
4445
4454
  let r, o;
4446
4455
  return t.forEach((a) => {
4447
4456
  const i = a.getValue(e);
4448
4457
  i != null && (r === void 0 ? i >= i && (r = o = i) : (r > i && (r = i), o < i && (o = i)));
4449
4458
  }), [r, o];
4450
- }, Ca = (e, n) => {
4459
+ }, Ra = (e, n) => {
4451
4460
  let t = 0, r = 0;
4452
4461
  if (n.forEach((o) => {
4453
4462
  let a = o.getValue(e);
4454
4463
  a != null && (a = +a) >= a && (++t, r += a);
4455
4464
  }), t) return r / t;
4456
- }, Sa = (e, n) => {
4465
+ }, ja = (e, n) => {
4457
4466
  if (!n.length)
4458
4467
  return;
4459
4468
  const t = n.map((a) => a.getValue(e));
4460
- if (!ua(t))
4469
+ if (!pa(t))
4461
4470
  return;
4462
4471
  if (t.length === 1)
4463
4472
  return t[0];
4464
4473
  const r = Math.floor(t.length / 2), o = t.sort((a, i) => a - i);
4465
4474
  return t.length % 2 !== 0 ? o[r] : (o[r - 1] + o[r]) / 2;
4466
- }, Ra = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), ja = (e, n) => new Set(n.map((t) => t.getValue(e))).size, ka = (e, n) => n.length, Dt = {
4467
- sum: xa,
4468
- min: wa,
4469
- max: ba,
4470
- extent: ya,
4471
- mean: Ca,
4472
- median: Sa,
4473
- unique: Ra,
4474
- uniqueCount: ja,
4475
- count: ka
4476
- }, $a = {
4475
+ }, ka = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), $a = (e, n) => new Set(n.map((t) => t.getValue(e))).size, _a = (e, n) => n.length, Dt = {
4476
+ sum: ba,
4477
+ min: ya,
4478
+ max: Ca,
4479
+ extent: Sa,
4480
+ mean: Ra,
4481
+ median: ja,
4482
+ unique: ka,
4483
+ uniqueCount: $a,
4484
+ count: _a
4485
+ }, Ea = {
4477
4486
  getDefaultColumnDef: () => ({
4478
4487
  aggregatedCell: (e) => {
4479
4488
  var n, t;
@@ -4540,13 +4549,13 @@ const xa = (e, n, t) => t.reduce((r, o) => {
4540
4549
  };
4541
4550
  }
4542
4551
  };
4543
- function _a(e, n, t) {
4552
+ function Pa(e, n, t) {
4544
4553
  if (!(n != null && n.length) || !t)
4545
4554
  return e;
4546
4555
  const r = e.filter((a) => !n.includes(a.id));
4547
4556
  return t === "remove" ? r : [...n.map((a) => e.find((i) => i.id === a)).filter(Boolean), ...r];
4548
4557
  }
4549
- const Ea = {
4558
+ const Ma = {
4550
4559
  getInitialState: (e) => ({
4551
4560
  columnOrder: [],
4552
4561
  ...e
@@ -4580,13 +4589,13 @@ const Ea = {
4580
4589
  }
4581
4590
  a = [...a, ...l];
4582
4591
  }
4583
- return _a(a, t, r);
4592
+ return Pa(a, t, r);
4584
4593
  }, U(e.options, "debugTable", "_getOrderColumnsFn"));
4585
4594
  }
4586
4595
  }, Nt = () => ({
4587
4596
  left: [],
4588
4597
  right: []
4589
- }), Pa = {
4598
+ }), La = {
4590
4599
  getInitialState: (e) => ({
4591
4600
  columnPinning: Nt(),
4592
4601
  ...e
@@ -4666,18 +4675,18 @@ const Ea = {
4666
4675
  size: 150,
4667
4676
  minSize: 20,
4668
4677
  maxSize: Number.MAX_SAFE_INTEGER
4669
- }, Tt = () => ({
4678
+ }, zt = () => ({
4670
4679
  startOffset: null,
4671
4680
  startSize: null,
4672
4681
  deltaOffset: null,
4673
4682
  deltaPercentage: null,
4674
4683
  isResizingColumn: !1,
4675
4684
  columnSizingStart: []
4676
- }), Ma = {
4685
+ }), Fa = {
4677
4686
  getDefaultColumnDef: () => it,
4678
4687
  getInitialState: (e) => ({
4679
4688
  columnSizing: {},
4680
- columnSizingInfo: Tt(),
4689
+ columnSizingInfo: zt(),
4681
4690
  ...e
4682
4691
  }),
4683
4692
  getDefaultOptions: (e) => ({
@@ -4725,9 +4734,9 @@ const Ea = {
4725
4734
  }, e.getResizeHandler = (t) => {
4726
4735
  const r = n.getColumn(e.column.id), o = r == null ? void 0 : r.getCanResize();
4727
4736
  return (a) => {
4728
- if (!r || !o || (a.persist == null || a.persist(), zt(a) && a.touches && a.touches.length > 1))
4737
+ if (!r || !o || (a.persist == null || a.persist(), Tt(a) && a.touches && a.touches.length > 1))
4729
4738
  return;
4730
- const i = e.getSize(), l = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[r.id, r.getSize()]], c = zt(a) ? Math.round(a.touches[0].clientX) : a.clientX, u = {}, d = (x, k) => {
4739
+ const i = e.getSize(), l = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[r.id, r.getSize()]], c = Tt(a) ? Math.round(a.touches[0].clientX) : a.clientX, u = {}, d = (x, k) => {
4731
4740
  typeof k == "number" && (n.setColumnSizingInfo((b) => {
4732
4741
  var $, y;
4733
4742
  const O = n.options.columnResizeDirection === "rtl" ? -1 : 1, N = (k - (($ = b == null ? void 0 : b.startOffset) != null ? $ : 0)) * O, V = Math.max(N / ((y = b == null ? void 0 : b.startSize) != null ? y : 0), -0.999999);
@@ -4764,10 +4773,10 @@ const Ea = {
4764
4773
  var k;
4765
4774
  p == null || p.removeEventListener("touchmove", m.moveHandler), p == null || p.removeEventListener("touchend", m.upHandler), x.cancelable && (x.preventDefault(), x.stopPropagation()), f((k = x.touches[0]) == null ? void 0 : k.clientX);
4766
4775
  }
4767
- }, w = La() ? {
4776
+ }, w = Aa() ? {
4768
4777
  passive: !1
4769
4778
  } : !1;
4770
- zt(a) ? (p == null || p.addEventListener("touchmove", m.moveHandler, w), p == null || p.addEventListener("touchend", m.upHandler, w)) : (p == null || p.addEventListener("mousemove", v.moveHandler, w), p == null || p.addEventListener("mouseup", v.upHandler, w)), n.setColumnSizingInfo((x) => ({
4779
+ Tt(a) ? (p == null || p.addEventListener("touchmove", m.moveHandler, w), p == null || p.addEventListener("touchend", m.upHandler, w)) : (p == null || p.addEventListener("mousemove", v.moveHandler, w), p == null || p.addEventListener("mouseup", v.upHandler, w)), n.setColumnSizingInfo((x) => ({
4771
4780
  ...x,
4772
4781
  startOffset: c,
4773
4782
  startSize: i,
@@ -4785,7 +4794,7 @@ const Ea = {
4785
4794
  e.setColumnSizing(n ? {} : (t = e.initialState.columnSizing) != null ? t : {});
4786
4795
  }, e.resetHeaderSizeInfo = (n) => {
4787
4796
  var t;
4788
- e.setColumnSizingInfo(n ? Tt() : (t = e.initialState.columnSizingInfo) != null ? t : Tt());
4797
+ e.setColumnSizingInfo(n ? zt() : (t = e.initialState.columnSizingInfo) != null ? t : zt());
4789
4798
  }, e.getTotalSize = () => {
4790
4799
  var n, t;
4791
4800
  return (n = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((r, o) => r + o.getSize(), 0)) != null ? n : 0;
@@ -4802,7 +4811,7 @@ const Ea = {
4802
4811
  }
4803
4812
  };
4804
4813
  let lt = null;
4805
- function La() {
4814
+ function Aa() {
4806
4815
  if (typeof lt == "boolean") return lt;
4807
4816
  let e = !1;
4808
4817
  try {
@@ -4818,10 +4827,10 @@ function La() {
4818
4827
  }
4819
4828
  return lt = e, lt;
4820
4829
  }
4821
- function zt(e) {
4830
+ function Tt(e) {
4822
4831
  return e.type === "touchstart";
4823
4832
  }
4824
- const Fa = {
4833
+ const Da = {
4825
4834
  getInitialState: (e) => ({
4826
4835
  columnVisibility: {},
4827
4836
  ...e
@@ -4869,14 +4878,14 @@ const Fa = {
4869
4878
  function We(e, n) {
4870
4879
  return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
4871
4880
  }
4872
- const Aa = {
4881
+ const Na = {
4873
4882
  createTable: (e) => {
4874
4883
  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
4875
4884
  if (e._getGlobalFacetedMinMaxValues)
4876
4885
  return e._getGlobalFacetedMinMaxValues();
4877
4886
  };
4878
4887
  }
4879
- }, Da = {
4888
+ }, za = {
4880
4889
  getInitialState: (e) => ({
4881
4890
  globalFilter: void 0,
4882
4891
  ...e
@@ -4909,7 +4918,7 @@ const Aa = {
4909
4918
  e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
4910
4919
  };
4911
4920
  }
4912
- }, Na = {
4921
+ }, Ta = {
4913
4922
  getInitialState: (e) => ({
4914
4923
  expanded: {},
4915
4924
  ...e
@@ -4999,7 +5008,7 @@ const Aa = {
4999
5008
  }, Xt = 0, Jt = 10, Ot = () => ({
5000
5009
  pageIndex: Xt,
5001
5010
  pageSize: Jt
5002
- }), Ta = {
5011
+ }), Oa = {
5003
5012
  getInitialState: (e) => ({
5004
5013
  ...e,
5005
5014
  pagination: {
@@ -5082,7 +5091,7 @@ const Aa = {
5082
5091
  }, It = () => ({
5083
5092
  top: [],
5084
5093
  bottom: []
5085
- }), za = {
5094
+ }), Ia = {
5086
5095
  getInitialState: (e) => ({
5087
5096
  rowPinning: It(),
5088
5097
  ...e
@@ -5183,7 +5192,7 @@ const Aa = {
5183
5192
  return n.filter((a) => !o.has(a.id));
5184
5193
  }, U(e.options, "debugRows", "getCenterRows"));
5185
5194
  }
5186
- }, Oa = {
5195
+ }, Va = {
5187
5196
  getInitialState: (e) => ({
5188
5197
  rowSelection: {},
5189
5198
  ...e
@@ -5339,10 +5348,10 @@ function en(e, n, t) {
5339
5348
  }
5340
5349
  }), o ? "all" : a ? "some" : !1;
5341
5350
  }
5342
- const tn = /([0-9]+)/gm, Ia = (e, n, t) => Rr(Le(e.getValue(t)).toLowerCase(), Le(n.getValue(t)).toLowerCase()), Va = (e, n, t) => Rr(Le(e.getValue(t)), Le(n.getValue(t))), Ha = (e, n, t) => sn(Le(e.getValue(t)).toLowerCase(), Le(n.getValue(t)).toLowerCase()), Ba = (e, n, t) => sn(Le(e.getValue(t)), Le(n.getValue(t))), qa = (e, n, t) => {
5351
+ const tn = /([0-9]+)/gm, Ha = (e, n, t) => Rr(Le(e.getValue(t)).toLowerCase(), Le(n.getValue(t)).toLowerCase()), Ba = (e, n, t) => Rr(Le(e.getValue(t)), Le(n.getValue(t))), qa = (e, n, t) => sn(Le(e.getValue(t)).toLowerCase(), Le(n.getValue(t)).toLowerCase()), Ga = (e, n, t) => sn(Le(e.getValue(t)), Le(n.getValue(t))), Wa = (e, n, t) => {
5343
5352
  const r = e.getValue(t), o = n.getValue(t);
5344
5353
  return r > o ? 1 : r < o ? -1 : 0;
5345
- }, Ga = (e, n, t) => sn(e.getValue(t), n.getValue(t));
5354
+ }, Ua = (e, n, t) => sn(e.getValue(t), n.getValue(t));
5346
5355
  function sn(e, n) {
5347
5356
  return e === n ? 0 : e > n ? 1 : -1;
5348
5357
  }
@@ -5370,13 +5379,13 @@ function Rr(e, n) {
5370
5379
  return t.length - r.length;
5371
5380
  }
5372
5381
  const qe = {
5373
- alphanumeric: Ia,
5374
- alphanumericCaseSensitive: Va,
5375
- text: Ha,
5376
- textCaseSensitive: Ba,
5377
- datetime: qa,
5378
- basic: Ga
5379
- }, Wa = {
5382
+ alphanumeric: Ha,
5383
+ alphanumericCaseSensitive: Ba,
5384
+ text: qa,
5385
+ textCaseSensitive: Ga,
5386
+ datetime: Wa,
5387
+ basic: Ua
5388
+ }, Ya = {
5380
5389
  getInitialState: (e) => ({
5381
5390
  sorting: [],
5382
5391
  ...e
@@ -5465,30 +5474,30 @@ const qe = {
5465
5474
  e.setSorting(n ? [] : (t = (r = e.initialState) == null ? void 0 : r.sorting) != null ? t : []);
5466
5475
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
5467
5476
  }
5468
- }, Ua = [
5469
- ma,
5470
- Fa,
5471
- Ea,
5472
- Pa,
5477
+ }, Za = [
5473
5478
  va,
5474
- ha,
5475
- Aa,
5476
- //depends on ColumnFaceting
5477
5479
  Da,
5480
+ Ma,
5481
+ La,
5482
+ xa,
5483
+ wa,
5484
+ Na,
5485
+ //depends on ColumnFaceting
5486
+ za,
5478
5487
  //depends on ColumnFiltering
5479
- Wa,
5480
- $a,
5488
+ Ya,
5489
+ Ea,
5481
5490
  //depends on RowSorting
5482
- Na,
5483
5491
  Ta,
5484
- za,
5485
5492
  Oa,
5486
- Ma
5493
+ Ia,
5494
+ Va,
5495
+ Fa
5487
5496
  ];
5488
- function Ya(e) {
5497
+ function Ka(e) {
5489
5498
  var n, t;
5490
5499
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
5491
- const r = [...Ua, ...(n = e._features) != null ? n : []];
5500
+ const r = [...Za, ...(n = e._features) != null ? n : []];
5492
5501
  let o = {
5493
5502
  _features: r
5494
5503
  };
@@ -5568,7 +5577,7 @@ function Ya(e) {
5568
5577
  getAllColumns: W(() => [o._getColumnDefs()], (f) => {
5569
5578
  const p = function(v, m, w) {
5570
5579
  return w === void 0 && (w = 0), v.map((x) => {
5571
- const k = fa(o, x, w, m), b = x;
5580
+ const k = ga(o, x, w, m), b = x;
5572
5581
  return k.columns = b.columns ? p(b.columns, k, w + 1) : [], k;
5573
5582
  });
5574
5583
  };
@@ -5592,7 +5601,7 @@ function Ya(e) {
5592
5601
  }
5593
5602
  return o;
5594
5603
  }
5595
- function Za() {
5604
+ function Xa() {
5596
5605
  return (e) => W(() => [e.options.data], (n) => {
5597
5606
  const t = {
5598
5607
  rows: [],
@@ -5602,7 +5611,7 @@ function Za() {
5602
5611
  a === void 0 && (a = 0);
5603
5612
  const l = [];
5604
5613
  for (let u = 0; u < o.length; u++) {
5605
- const d = ga(e, e._getRowId(o[u], u, i), o[u], u, a, void 0, i == null ? void 0 : i.id);
5614
+ const d = ha(e, e._getRowId(o[u], u, i), o[u], u, a, void 0, i == null ? void 0 : i.id);
5606
5615
  if (t.flatRows.push(d), t.rowsById[d.id] = d, l.push(d), e.options.getSubRows) {
5607
5616
  var c;
5608
5617
  d.originalSubRows = e.options.getSubRows(o[u], u), (c = d.originalSubRows) != null && c.length && (d.subRows = r(d.originalSubRows, a + 1, d));
@@ -5623,7 +5632,7 @@ function Za() {
5623
5632
  *
5624
5633
  * @license MIT
5625
5634
  */
5626
- function Ka(e) {
5635
+ function Ja(e) {
5627
5636
  const n = {
5628
5637
  state: {},
5629
5638
  // Dummy state
@@ -5633,7 +5642,7 @@ function Ka(e) {
5633
5642
  renderFallbackValue: null,
5634
5643
  ...e
5635
5644
  }, [t] = j.useState(() => ({
5636
- current: Ya(n)
5645
+ current: Ka(n)
5637
5646
  })), [r, o] = j.useState(() => t.current.initialState);
5638
5647
  return t.current.setOptions((a) => ({
5639
5648
  ...a,
@@ -5649,7 +5658,7 @@ function Ka(e) {
5649
5658
  }
5650
5659
  })), t.current;
5651
5660
  }
5652
- const Xa = {
5661
+ const Qa = {
5653
5662
  h1: "text-5xl font-bold",
5654
5663
  h2: "text-4xl font-bold",
5655
5664
  h3: "text-3xl font-bold",
@@ -5662,7 +5671,7 @@ const Xa = {
5662
5671
  body2: "text-sm",
5663
5672
  caption: "text-xs",
5664
5673
  overline: "text-xs uppercase tracking-wide"
5665
- }, Ja = {
5674
+ }, ei = {
5666
5675
  default: "text-color-gray-800",
5667
5676
  primary: "text-color-primary",
5668
5677
  secondary: "text-color-secondary",
@@ -5670,7 +5679,7 @@ const Xa = {
5670
5679
  muted: "text-color-gray-400",
5671
5680
  error: "text-color-red-500",
5672
5681
  success: "text-color-green-500"
5673
- }, Qa = ({
5682
+ }, ti = ({
5674
5683
  variant: e = "body1",
5675
5684
  component: n,
5676
5685
  className: t = "",
@@ -5691,7 +5700,7 @@ const Xa = {
5691
5700
  caption: "span",
5692
5701
  overline: "span"
5693
5702
  }[e] || "p";
5694
- return /* @__PURE__ */ s.jsx(i, { className: `${Xa[e]} ${Ja[o]} ${t}`, children: r });
5703
+ return /* @__PURE__ */ s.jsx(i, { className: `${Qa[e]} ${ei[o]} ${t}`, children: r });
5695
5704
  }, je = ({
5696
5705
  variant: e = "filled",
5697
5706
  color: n = "blue",
@@ -5710,7 +5719,7 @@ const Xa = {
5710
5719
  if (!m) return;
5711
5720
  const w = document.createElement("span"), x = m.getBoundingClientRect(), k = Math.max(x.width, x.height);
5712
5721
  w.style.width = w.style.height = `${k}px`, w.style.left = `${v.clientX - x.left - k / 2}px`, w.style.top = `${v.clientY - x.top - k / 2}px`, w.className = "ripple_small", m.appendChild(w), setTimeout(() => w.remove(), 600), r == null || r(v);
5713
- }, f = ((p = we[n]) == null ? void 0 : p[e === "filled" ? "filled" : e === "outlined" ? "outline" : "transparent"]) || "";
5722
+ }, f = ((p = xe[n]) == null ? void 0 : p[e === "filled" ? "filled" : e === "outlined" ? "outline" : "transparent"]) || "";
5714
5723
  return /* @__PURE__ */ s.jsx(
5715
5724
  "button",
5716
5725
  {
@@ -5731,7 +5740,7 @@ const Xa = {
5731
5740
  children: t && /* @__PURE__ */ s.jsx(s.Fragment, { children: t })
5732
5741
  }
5733
5742
  );
5734
- }, ei = ({
5743
+ }, ni = ({
5735
5744
  total: e,
5736
5745
  currentPage: n,
5737
5746
  pageSize: t = 10,
@@ -5796,7 +5805,7 @@ const Xa = {
5796
5805
  }
5797
5806
  )
5798
5807
  ] });
5799
- }, zl = ({
5808
+ }, Il = ({
5800
5809
  data: e,
5801
5810
  columns: n = [],
5802
5811
  pageSize: t,
@@ -5810,10 +5819,10 @@ const Xa = {
5810
5819
  tdClassName: d = "",
5811
5820
  thClassName: g = ""
5812
5821
  }) => {
5813
- const f = Ka({
5822
+ const f = Ja({
5814
5823
  data: e,
5815
5824
  columns: n,
5816
- getCoreRowModel: Za(),
5825
+ getCoreRowModel: Xa(),
5817
5826
  manualPagination: !0,
5818
5827
  pageCount: Math.ceil(l / t),
5819
5828
  state: {
@@ -5841,7 +5850,7 @@ const Xa = {
5841
5850
  ] }),
5842
5851
  /* @__PURE__ */ s.jsxs("div", { className: `w-full py-4 px-2 border-t border-color-gray-200 bg-color-[#FAFBFB] flex justify-between items-center ${u} sticky bottom-0 z-10`, children: [
5843
5852
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
5844
- /* @__PURE__ */ s.jsx(Qa, { variant: "body2", className: "hidden md:flex", children: "Rows per page" }),
5853
+ /* @__PURE__ */ s.jsx(ti, { variant: "body2", className: "hidden md:flex", children: "Rows per page" }),
5845
5854
  /* @__PURE__ */ s.jsx(
5846
5855
  na,
5847
5856
  {
@@ -5855,7 +5864,7 @@ const Xa = {
5855
5864
  )
5856
5865
  ] }),
5857
5866
  /* @__PURE__ */ s.jsx(
5858
- ei,
5867
+ ni,
5859
5868
  {
5860
5869
  total: l,
5861
5870
  pageSize: t,
@@ -5865,7 +5874,7 @@ const Xa = {
5865
5874
  )
5866
5875
  ] })
5867
5876
  ] }) });
5868
- }, Ol = ({
5877
+ }, Vl = ({
5869
5878
  animation: e = "pulse",
5870
5879
  variant: n = "rectangular",
5871
5880
  width: t,
@@ -5935,7 +5944,7 @@ const Xa = {
5935
5944
  }
5936
5945
  ` })
5937
5946
  ] }) });
5938
- }, Il = ({
5947
+ }, Hl = ({
5939
5948
  label: e,
5940
5949
  error: n,
5941
5950
  className: t = "",
@@ -5957,7 +5966,7 @@ const Xa = {
5957
5966
  medium: { track: "h-2", thumb: "w-4 h-4" },
5958
5967
  large: { track: "h-3", thumb: "w-5 h-5" }
5959
5968
  };
5960
- function ti(e) {
5969
+ function ri(e) {
5961
5970
  const n = se(null), t = se(null), r = se(null), o = (c, u) => {
5962
5971
  if (c === u) return !0;
5963
5972
  if (Array.isArray(c) && Array.isArray(u)) {
@@ -5983,7 +5992,7 @@ function ti(e) {
5983
5992
  }, []);
5984
5993
  return { schedule: i, flush: a, cancel: l, last: t };
5985
5994
  }
5986
- const Vl = Ur(function({
5995
+ const Bl = Ur(function({
5987
5996
  /** controlled */
5988
5997
  value: n,
5989
5998
  /** uncontrolled */
@@ -6007,19 +6016,19 @@ const Vl = Ur(function({
6007
6016
  const x = n !== void 0, [k, b] = K(() => t !== void 0 ? t : m ? [a, i] : a), $ = x ? n : k, y = Array.isArray($) ? $[0] : $, [O, N] = Array.isArray($) ? $ : [$, $], V = qt[c] || qt.blue, F = qn[u] ?? qn.medium, Z = oe(
6008
6017
  (_) => (_ - a) / (i - a) * 100,
6009
6018
  [a, i]
6010
- ), ae = Z(y), ue = Z(O), Q = Z(N), H = oe((_) => Math.max(a, Math.min(i, _)), [a, i]), Y = oe((_) => Math.round(_ / l) * l, [l]), z = ti(r), te = oe(
6019
+ ), ae = Z(y), ue = Z(O), Q = Z(N), H = oe((_) => Math.max(a, Math.min(i, _)), [a, i]), Y = oe((_) => Math.round(_ / l) * l, [l]), T = ri(r), te = oe(
6011
6020
  (_, J = !0) => {
6012
- x || b(_), J ? z.schedule(_) : z.flush(_);
6021
+ x || b(_), J ? T.schedule(_) : T.flush(_);
6013
6022
  },
6014
- [x, z]
6023
+ [x, T]
6015
6024
  ), pe = oe(() => {
6016
- const _ = z.last.current;
6017
- _ != null && (z.flush(_), o == null || o(_));
6018
- }, [z, o]), X = oe(
6025
+ const _ = T.last.current;
6026
+ _ != null && (T.flush(_), o == null || o(_));
6027
+ }, [T, o]), X = oe(
6019
6028
  (_, J) => {
6020
6029
  if (m && Array.isArray(_)) {
6021
- let [ee, de] = _, fe = Y(H(ee)), xe = Y(H(de));
6022
- return xe - fe < w && (J === "min" ? xe = H(fe + w) : J === "max" && (fe = H(xe - w))), fe > xe && (J === "min" ? fe = xe : xe = fe), [fe, xe];
6030
+ let [ee, de] = _, fe = Y(H(ee)), we = Y(H(de));
6031
+ return we - fe < w && (J === "min" ? we = H(fe + w) : J === "max" && (fe = H(we - w))), fe > we && (J === "min" ? fe = we : we = fe), [fe, we];
6023
6032
  } else if (!m && typeof _ == "number")
6024
6033
  return Y(H(_));
6025
6034
  return _;
@@ -6040,15 +6049,15 @@ const Vl = Ur(function({
6040
6049
  return J <= ee ? "min" : "max";
6041
6050
  },
6042
6051
  [O, N]
6043
- ), [M, D] = K(null), [I, T] = K(null), [E, P] = K(null), B = oe(
6052
+ ), [M, D] = K(null), [I, z] = K(null), [E, P] = K(null), B = oe(
6044
6053
  (_, J) => {
6045
6054
  var de, fe;
6046
6055
  if (d) return;
6047
6056
  _.preventDefault(), (fe = (de = _.currentTarget).setPointerCapture) == null || fe.call(de, _.pointerId), P(_.pointerId);
6048
6057
  const ee = C(_.clientX);
6049
6058
  if (m) {
6050
- const xe = J || L(ee);
6051
- D(xe), te(xe === "min" ? X([ee, N], "min") : X([O, ee], "max"));
6059
+ const we = J || L(ee);
6060
+ D(we), te(we === "min" ? X([ee, N], "min") : X([O, ee], "max"));
6052
6061
  } else
6053
6062
  D("single"), te(X(ee, "single"));
6054
6063
  },
@@ -6196,8 +6205,8 @@ const Vl = Ur(function({
6196
6205
  "aria-valuenow": y,
6197
6206
  "aria-disabled": d,
6198
6207
  onKeyDown: (_) => R(_, "single"),
6199
- onFocus: () => T("single"),
6200
- onBlur: () => T(null),
6208
+ onFocus: () => z("single"),
6209
+ onBlur: () => z(null),
6201
6210
  onPointerDown: (_) => B(_, "single")
6202
6211
  }
6203
6212
  ),
@@ -6223,8 +6232,8 @@ const Vl = Ur(function({
6223
6232
  "aria-disabled": d,
6224
6233
  "aria-label": "Minimum value",
6225
6234
  onKeyDown: (_) => R(_, "min"),
6226
- onFocus: () => T("min"),
6227
- onBlur: () => T(null),
6235
+ onFocus: () => z("min"),
6236
+ onBlur: () => z(null),
6228
6237
  onPointerDown: (_) => B(_, "min")
6229
6238
  }
6230
6239
  ),
@@ -6249,8 +6258,8 @@ const Vl = Ur(function({
6249
6258
  "aria-disabled": d,
6250
6259
  "aria-label": "Maximum value",
6251
6260
  onKeyDown: (_) => R(_, "max"),
6252
- onFocus: () => T("max"),
6253
- onBlur: () => T(null),
6261
+ onFocus: () => z("max"),
6262
+ onBlur: () => z(null),
6254
6263
  onPointerDown: (_) => B(_, "max")
6255
6264
  }
6256
6265
  )
@@ -6279,7 +6288,7 @@ const Vl = Ur(function({
6279
6288
  ] }),
6280
6289
  f && /* @__PURE__ */ s.jsx("div", { className: "ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right", children: m ? /* @__PURE__ */ s.jsx("div", { className: "range-max", children: /* @__PURE__ */ s.jsx("div", { children: N }) }) : /* @__PURE__ */ s.jsx("span", { children: y }) })
6281
6290
  ] }) });
6282
- }), Hl = ({
6291
+ }), ql = ({
6283
6292
  open: e = !1,
6284
6293
  message: n,
6285
6294
  autoHideDuration: t = 4e3,
@@ -6323,7 +6332,7 @@ const Vl = Ur(function({
6323
6332
  default:
6324
6333
  return `${p} bottom-4 left-1/2 -translate-x-1/2 ${e ? "translate-y-0 opacity-100" : "translate-y-full opacity-0"}`;
6325
6334
  }
6326
- }, d = (g = we[o]) == null ? void 0 : g.filled;
6335
+ }, d = (g = xe[o]) == null ? void 0 : g.filled;
6327
6336
  return e ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6328
6337
  e && /* @__PURE__ */ s.jsx(
6329
6338
  "div",
@@ -6361,7 +6370,7 @@ const Vl = Ur(function({
6361
6370
  }
6362
6371
  )
6363
6372
  ] }) : null;
6364
- }, Bl = ({
6373
+ }, Gl = ({
6365
6374
  variant: e = "linear",
6366
6375
  value: n = 0,
6367
6376
  color: t = "blue",
@@ -6370,7 +6379,7 @@ const Vl = Ur(function({
6370
6379
  ...a
6371
6380
  }) => {
6372
6381
  var g, f;
6373
- const i = "inline-block", l = (g = we[t]) == null ? void 0 : g.transparent, c = (f = we[t]) == null ? void 0 : f.filled, u = Math.min(Math.max(n, 0), 100);
6382
+ const i = "inline-block", l = (g = xe[t]) == null ? void 0 : g.transparent, c = (f = xe[t]) == null ? void 0 : f.filled, u = Math.min(Math.max(n, 0), 100);
6374
6383
  if (e === "circular") {
6375
6384
  const { size: p = 40, thickness: v = 3.6 } = a, m = (p - v) / 2, w = 2 * Math.PI * m, x = `${w} ${w}`, k = w - u / 100 * w;
6376
6385
  return /* @__PURE__ */ s.jsx(
@@ -6461,7 +6470,7 @@ const Vl = Ur(function({
6461
6470
  small: "w-4 h-4",
6462
6471
  medium: "w-6 h-6",
6463
6472
  large: "w-8 h-8"
6464
- }, ql = ({
6473
+ }, Wl = ({
6465
6474
  value: e,
6466
6475
  onChange: n,
6467
6476
  readOnly: t = !1,
@@ -6530,7 +6539,7 @@ const Vl = Ur(function({
6530
6539
  k,
6531
6540
  d && p !== null ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: f[p] || p }) : g ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: f[e] || e }) : null
6532
6541
  ] });
6533
- }, Gl = ({
6542
+ }, Ul = ({
6534
6543
  children: e,
6535
6544
  width: n = "100%",
6536
6545
  height: t = "auto",
@@ -6551,20 +6560,20 @@ const Vl = Ur(function({
6551
6560
  prevIcon: x,
6552
6561
  className: k
6553
6562
  }) => {
6554
- const b = e.length, $ = Math.min(Math.max(c, 0.1), b), [y, O] = K(0), [N, V] = K(!1), [F, Z] = K(!1), [ae, ue] = K(0), Q = se(null), H = se(0), Y = se(0), z = $ >= b ? 0 : Math.max(0, b - $), te = (E) => Math.max(0, Math.min(E, z)), pe = (E) => O(
6555
- l && z > 0 ? (E % (z + 1) + (z + 1)) % (z + 1) : te(E)
6563
+ const b = e.length, $ = Math.min(Math.max(c, 0.1), b), [y, O] = K(0), [N, V] = K(!1), [F, Z] = K(!1), [ae, ue] = K(0), Q = se(null), H = se(0), Y = se(0), T = $ >= b ? 0 : Math.max(0, b - $), te = (E) => Math.max(0, Math.min(E, T)), pe = (E) => O(
6564
+ l && T > 0 ? (E % (T + 1) + (T + 1)) % (T + 1) : te(E)
6556
6565
  ), X = () => {
6557
- l && z > 0 ? O(y === 0 ? z : y - 1) : pe(y - 1);
6566
+ l && T > 0 ? O(y === 0 ? T : y - 1) : pe(y - 1);
6558
6567
  }, h = () => {
6559
- l && z > 0 ? O(y >= z ? 0 : y + 1) : pe(y + 1);
6568
+ l && T > 0 ? O(y >= T ? 0 : y + 1) : pe(y + 1);
6560
6569
  };
6561
6570
  ce(() => {
6562
- if (!a || f && N || F || z === 0)
6571
+ if (!a || f && N || F || T === 0)
6563
6572
  return;
6564
6573
  const E = setInterval(() => {
6565
6574
  O((P) => {
6566
6575
  const B = P + 1;
6567
- return B > z ? l ? 0 : P : B;
6576
+ return B > T ? l ? 0 : P : B;
6568
6577
  });
6569
6578
  }, i);
6570
6579
  return () => clearInterval(E);
@@ -6574,11 +6583,11 @@ const Vl = Ur(function({
6574
6583
  N,
6575
6584
  f,
6576
6585
  F,
6577
- z,
6586
+ T,
6578
6587
  l
6579
6588
  ]);
6580
6589
  const C = (E, P) => {
6581
- !p || z === 0 || (Z(!0), H.current = m === "horizontal" ? E : P, Y.current = H.current);
6590
+ !p || T === 0 || (Z(!0), H.current = m === "horizontal" ? E : P, Y.current = H.current);
6582
6591
  }, L = (E, P) => {
6583
6592
  F && (Y.current = m === "horizontal" ? E : P, ue(Y.current - H.current));
6584
6593
  }, M = () => {
@@ -6587,13 +6596,13 @@ const Vl = Ur(function({
6587
6596
  }, D = () => {
6588
6597
  const E = m === "horizontal" ? "X" : "Y";
6589
6598
  let P = 0;
6590
- if (F && Q.current && z > 0) {
6599
+ if (F && Q.current && T > 0) {
6591
6600
  const J = m === "horizontal" ? Q.current.offsetWidth : Q.current.offsetHeight;
6592
6601
  P = ae / J * 100 * ($ / b);
6593
6602
  }
6594
- const q = Math.min(y, z) * (100 / b) - P, S = y >= z, _ = y <= 0 ? 0 : S ? u / (c / 2) : u / c;
6603
+ const q = Math.min(y, T) * (100 / b) - P, S = y >= T, _ = y <= 0 ? 0 : S ? u / (c / 2) : u / c;
6595
6604
  return `translate${E}(calc(-${q}% - ${_}px))`;
6596
- }, I = () => $ >= b ? 1 : Math.floor(z) + 1, T = () => z === 0 ? 0 : Math.round(y / z * (I() - 1));
6605
+ }, I = () => $ >= b ? 1 : Math.floor(T) + 1, z = () => T === 0 ? 0 : Math.round(y / T * (I() - 1));
6597
6606
  return /* @__PURE__ */ s.jsxs(
6598
6607
  "div",
6599
6608
  {
@@ -6606,7 +6615,7 @@ const Vl = Ur(function({
6606
6615
  "div",
6607
6616
  {
6608
6617
  ref: Q,
6609
- className: `w-full overflow-hidden relative ${p && z > 0 ? F ? "cursor-grabbing" : "cursor-grab" : "cursor-default"}`,
6618
+ className: `w-full overflow-hidden relative ${p && T > 0 ? F ? "cursor-grabbing" : "cursor-grab" : "cursor-default"}`,
6610
6619
  style: {
6611
6620
  height: g ? `calc(${t} - ${v + 20}px)` : t
6612
6621
  },
@@ -6646,7 +6655,7 @@ const Vl = Ur(function({
6646
6655
  ))
6647
6656
  }
6648
6657
  ),
6649
- o && z > 0 && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6658
+ o && T > 0 && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6650
6659
  /* @__PURE__ */ s.jsx(
6651
6660
  "button",
6652
6661
  {
@@ -6678,10 +6687,10 @@ const Vl = Ur(function({
6678
6687
  {
6679
6688
  onClick: () => pe(
6680
6689
  Math.round(
6681
- P / (I() - 1) * z
6690
+ P / (I() - 1) * T
6682
6691
  )
6683
6692
  ),
6684
- className: `size-[10px] rounded-full transition-color hover:bg-color-gray-600 cursor-pointer ${P === T() ? "bg-color-gray-800" : "bg-color-gray-400"}`
6693
+ className: `size-[10px] rounded-full transition-color hover:bg-color-gray-600 cursor-pointer ${P === z() ? "bg-color-gray-800" : "bg-color-gray-400"}`
6685
6694
  },
6686
6695
  P
6687
6696
  )
@@ -6700,7 +6709,7 @@ const Vl = Ur(function({
6700
6709
  const q = Math.max(
6701
6710
  0,
6702
6711
  Math.min(
6703
- z,
6712
+ T,
6704
6713
  P - Math.floor($ / 2)
6705
6714
  )
6706
6715
  );
@@ -6719,7 +6728,7 @@ const Vl = Ur(function({
6719
6728
  ]
6720
6729
  }
6721
6730
  );
6722
- }, Wl = ({
6731
+ }, Yl = ({
6723
6732
  title: e,
6724
6733
  description: n,
6725
6734
  actionLabel: t,
@@ -6752,40 +6761,61 @@ const Vl = Ur(function({
6752
6761
  i
6753
6762
  ]
6754
6763
  }
6755
- ), Ul = ({
6764
+ ), Zl = ({
6756
6765
  initialState: e = !1,
6757
6766
  onToggle: n,
6758
6767
  disabled: t = !1,
6759
6768
  type: r = "button",
6760
- color: o = "green"
6769
+ color: o = "green",
6770
+ variant: a = "ios"
6771
+ // <-- default to ios
6761
6772
  }) => {
6762
- var d;
6763
- const [a, i] = K(e), [l, c] = K(!1), u = async () => {
6764
- if (!(t || l))
6773
+ var g, f, p;
6774
+ const [i, l] = K(e), [c, u] = K(!1), d = async () => {
6775
+ if (!(t || c))
6765
6776
  if (n) {
6766
- c(!0);
6777
+ u(!0);
6767
6778
  try {
6768
- await n(!a), i(!a);
6769
- } catch (g) {
6770
- console.error("Toggle failed", g);
6779
+ await n(!i), l(!i);
6780
+ } catch (v) {
6781
+ console.error("Toggle failed", v);
6771
6782
  } finally {
6772
- c(!1);
6783
+ u(!1);
6773
6784
  }
6774
6785
  } else
6775
- i(!a);
6786
+ l(!i);
6776
6787
  };
6777
- return /* @__PURE__ */ s.jsx(
6788
+ return a === "android" ? /* @__PURE__ */ s.jsxs(
6789
+ "button",
6790
+ {
6791
+ onClick: d,
6792
+ type: r,
6793
+ disabled: t,
6794
+ className: `relative w-10 h-3 flex items-center transition-color duration-300
6795
+ } ${t ? "bg-color-gray-200 opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
6796
+ children: [
6797
+ /* @__PURE__ */ s.jsx("span", { className: `absolute rounded-full inset-0 opacity-50 ${i ? `${(g = xe[o]) == null ? void 0 : g.filled}` : "bg-color-gray-400"}` }),
6798
+ /* @__PURE__ */ s.jsx(
6799
+ "div",
6800
+ {
6801
+ className: `flex justify-center items-center absolute shadow-md top-0.5 left-0.5 size-5 rounded-full shadow transition-all duration-300 ${i ? `translate-x-5 ${(f = xe[o]) == null ? void 0 : f.filled}` : "translate-x-0 bg-color-white"}`,
6802
+ children: c ? /* @__PURE__ */ s.jsx("svg", { className: "animate-spin text-color-gray-500 size-3", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z" }) }) : null
6803
+ }
6804
+ )
6805
+ ]
6806
+ }
6807
+ ) : /* @__PURE__ */ s.jsx(
6778
6808
  "button",
6779
6809
  {
6780
- onClick: u,
6810
+ onClick: d,
6781
6811
  type: r,
6782
6812
  disabled: t,
6783
- className: `relative w-11 h-6 flex items-center rounded-full transition-color duration-300 ${a ? (d = we[o]) == null ? void 0 : d.filled : "bg-color-gray-300"} ${t ? "bg-color-gray-300 opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
6813
+ className: `relative w-11 h-6 flex items-center rounded-full transition-color duration-300 ${i ? (p = xe[o]) == null ? void 0 : p.filled : "bg-color-gray-300"} ${t ? "bg-color-gray-300 opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
6784
6814
  children: /* @__PURE__ */ s.jsx(
6785
6815
  "div",
6786
6816
  {
6787
- className: `absolute top-[4px] left-1 w-4 h-4 bg-color-white rounded-full flex items-center justify-center transition-all duration-300 ${a ? "translate-x-[19px]" : "-translate-x-0"}`,
6788
- children: l ? /* @__PURE__ */ s.jsx("svg", { className: "animate-spin text-color-gray-500 size-3", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z" }) }) : null
6817
+ className: `absolute top-[4px] left-1 w-4 h-4 bg-color-white rounded-full flex items-center justify-center transition-all duration-300 ${i ? "translate-x-[19px]" : "-translate-x-0"}`,
6818
+ children: c ? /* @__PURE__ */ s.jsx("svg", { className: "animate-spin text-color-gray-500 size-3", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z" }) }) : null
6789
6819
  }
6790
6820
  )
6791
6821
  }
@@ -6804,7 +6834,7 @@ const Vl = Ur(function({
6804
6834
  small: "rounded-md",
6805
6835
  medium: "rounded-xl",
6806
6836
  large: "rounded-2xl"
6807
- }, ni = ({
6837
+ }, oi = ({
6808
6838
  title: e,
6809
6839
  subtitle: n,
6810
6840
  space: t = "medium",
@@ -6846,7 +6876,7 @@ const Vl = Ur(function({
6846
6876
  /* @__PURE__ */ s.jsx("div", { children: c }),
6847
6877
  p && /* @__PURE__ */ s.jsx("div", { className: "absolute w-full h-full top-0 left-0 flex items-center justify-center bg-color-white bg-opacity-50", children: p })
6848
6878
  ] });
6849
- }, Yl = ({
6879
+ }, Kl = ({
6850
6880
  orientation: e = "horizontal",
6851
6881
  variant: n = "fullWidth",
6852
6882
  children: t,
@@ -6883,7 +6913,7 @@ const Vl = Ur(function({
6883
6913
  ${n === "inset" ? o ? "pl-4" : "pt-4" : ""} ${a}`
6884
6914
  }
6885
6915
  );
6886
- }, Zl = ({
6916
+ }, Xl = ({
6887
6917
  name: e,
6888
6918
  options: n,
6889
6919
  selectedValue: t,
@@ -6916,15 +6946,15 @@ const Vl = Ur(function({
6916
6946
  /* @__PURE__ */ s.jsx(
6917
6947
  "div",
6918
6948
  {
6919
- className: `w-5 h-5 rounded-full border-2 border-color-gray-400 peer-checked:border-[7px] transition-all duration-150 ${(p = we[i]) == null ? void 0 : p.peer} ${c}`
6949
+ className: `w-5 h-5 rounded-full border-2 border-color-gray-400 peer-checked:border-[7px] transition-all duration-150 ${(p = xe[i]) == null ? void 0 : p.peer} ${c}`
6920
6950
  }
6921
6951
  ),
6922
- /* @__PURE__ */ s.jsx("span", { className: `ml-2 text-sm text-color-gray-800 ${(v = we[i]) == null ? void 0 : v.peer}`, children: u })
6952
+ /* @__PURE__ */ s.jsx("span", { className: `ml-2 text-sm text-color-gray-800 ${(v = xe[i]) == null ? void 0 : v.peer}`, children: u })
6923
6953
  ]
6924
6954
  },
6925
6955
  d
6926
6956
  );
6927
- }) }), Kl = ({
6957
+ }) }), Jl = ({
6928
6958
  label: e,
6929
6959
  value: n,
6930
6960
  onChange: t,
@@ -6965,7 +6995,7 @@ const Vl = Ur(function({
6965
6995
  /* @__PURE__ */ s.jsx("span", { className: `absolute right-3 text-sm top-1/2 -translate-y-1/2 ${i ? "opacity-60" : ""}`, children: /* @__PURE__ */ s.jsx("svg", { className: "size-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }) }) })
6966
6996
  ] })
6967
6997
  ] });
6968
- }, Xl = ({
6998
+ }, Ql = ({
6969
6999
  content: e,
6970
7000
  children: n,
6971
7001
  position: t = "top"
@@ -7016,10 +7046,10 @@ const Vl = Ur(function({
7016
7046
  )
7017
7047
  ] });
7018
7048
  };
7019
- function ri(...e) {
7049
+ function ai(...e) {
7020
7050
  return e.filter(Boolean).join(" ");
7021
7051
  }
7022
- const oi = {
7052
+ const ii = {
7023
7053
  sm: "max-w-sm",
7024
7054
  md: "max-w-md",
7025
7055
  lg: "max-w-lg",
@@ -7027,7 +7057,7 @@ const oi = {
7027
7057
  "2xl": "max-w-2xl",
7028
7058
  "4xl": "max-w-4xl",
7029
7059
  "6xl": "max-w-6xl"
7030
- }, ai = Ye(
7060
+ }, li = Ye(
7031
7061
  ({
7032
7062
  open: e,
7033
7063
  onClose: n,
@@ -7066,7 +7096,7 @@ const oi = {
7066
7096
  /* @__PURE__ */ s.jsxs(
7067
7097
  "div",
7068
7098
  {
7069
- className: ri(
7099
+ className: ai(
7070
7100
  "fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",
7071
7101
  m ? "opacity-100" : "opacity-0 pointer-events-none"
7072
7102
  ),
@@ -7083,7 +7113,7 @@ const oi = {
7083
7113
  /* @__PURE__ */ s.jsxs(
7084
7114
  "div",
7085
7115
  {
7086
- className: `relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m ? "opacity-100 scale-100" : "opacity-0 scale-95"} ${l ? "w-full h-[calc(100%_-_40px)] m-5" : `${c ? "w-full" : "w-auto"} ${u ? oi[u] : ""} mx-5`} ${t}`,
7116
+ className: `relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m ? "opacity-100 scale-100" : "opacity-0 scale-95"} ${l ? "w-full h-[calc(100%_-_40px)] m-5" : `${c ? "w-full" : "w-auto"} ${u ? ii[u] : ""} mx-5`} ${t}`,
7087
7117
  onTransitionEnd: x,
7088
7118
  children: [
7089
7119
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
@@ -7114,7 +7144,7 @@ const oi = {
7114
7144
  ) : null;
7115
7145
  }
7116
7146
  );
7117
- function Jl({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
7147
+ function es({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
7118
7148
  const [o, a] = K(!1), [i, l] = K({ top: 0, left: 0 }), [c, u] = K(!1), d = se(null), g = se(null), f = (v) => {
7119
7149
  v.stopPropagation(), a((m) => !m), u(!1);
7120
7150
  };
@@ -7167,10 +7197,10 @@ function Jl({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
7167
7197
  o && Ze(p, document.body)
7168
7198
  ] });
7169
7199
  }
7170
- function ii(...e) {
7200
+ function si(...e) {
7171
7201
  return e.filter(Boolean).join(" ");
7172
7202
  }
7173
- const li = ({
7203
+ const ci = ({
7174
7204
  open: e,
7175
7205
  onClose: n,
7176
7206
  className: t,
@@ -7214,7 +7244,7 @@ const li = ({
7214
7244
  /* @__PURE__ */ s.jsxs(
7215
7245
  "div",
7216
7246
  {
7217
- className: ii(
7247
+ className: si(
7218
7248
  "fixed inset-0 z-50 transition-opacity duration-300",
7219
7249
  g ? "opacity-100" : "opacity-0 pointer-events-none"
7220
7250
  ),
@@ -7254,7 +7284,7 @@ const li = ({
7254
7284
  ),
7255
7285
  document.body
7256
7286
  );
7257
- }, Ql = ({
7287
+ }, ts = ({
7258
7288
  title: e,
7259
7289
  content: n,
7260
7290
  expandIcon: t,
@@ -7292,25 +7322,25 @@ const li = ({
7292
7322
  ),
7293
7323
  /* @__PURE__ */ s.jsx("div", { className: `grid overflow-hidden transition-all duration-300 ease-in-out grid-rows-[0fr] ${p ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"}`, children: /* @__PURE__ */ s.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ s.jsx("div", { className: `p-4 text-sm text-color-gray-700 ${u}`, children: n }) }) })
7294
7324
  ] });
7295
- }, si = {
7325
+ }, ui = {
7296
7326
  info: "bg-color-blue-50 border-color-blue-300 text-color-blue-800",
7297
7327
  success: "bg-color-green-50 border-color-green-300 text-color-green-800",
7298
7328
  danger: "bg-color-red-50 border-color-red-300 text-color-red-800",
7299
7329
  warning: "bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",
7300
7330
  dark: "bg-color-gray-100 border-color-gray-300 text-color-gray-800"
7301
- }, ci = {
7331
+ }, di = {
7302
7332
  info: /* @__PURE__ */ s.jsx("svg", { className: "text-color-blue-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" }) }),
7303
7333
  success: /* @__PURE__ */ s.jsx("svg", { className: "text-color-green-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" }) }),
7304
7334
  danger: /* @__PURE__ */ s.jsx("svg", { className: "text-color-red-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z" }) }),
7305
7335
  warning: /* @__PURE__ */ s.jsx("svg", { className: "text-color-yellow-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" }) }),
7306
7336
  dark: /* @__PURE__ */ s.jsx("svg", { className: "text-color-gray-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" }) })
7307
- }, ui = {
7337
+ }, pi = {
7308
7338
  info: "bg-color-blue-500",
7309
7339
  success: "bg-color-green-500",
7310
7340
  danger: "bg-color-red-500",
7311
7341
  warning: "bg-color-yellow-500",
7312
7342
  dark: "bg-color-gray-700"
7313
- }, es = ({
7343
+ }, ns = ({
7314
7344
  message: e,
7315
7345
  variant: n = "info",
7316
7346
  onClose: t,
@@ -7329,10 +7359,10 @@ const li = ({
7329
7359
  }, [r, a, t]), i ? /* @__PURE__ */ s.jsxs(
7330
7360
  "div",
7331
7361
  {
7332
- className: `relative border-t-4 p-4 flex items-start justify-between ${si[n]} ${o}`,
7362
+ className: `relative border-t-4 p-4 flex items-start justify-between ${ui[n]} ${o}`,
7333
7363
  children: [
7334
7364
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
7335
- ci[n],
7365
+ di[n],
7336
7366
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: e } })
7337
7367
  ] }),
7338
7368
  /* @__PURE__ */ s.jsx(
@@ -7350,14 +7380,14 @@ const li = ({
7350
7380
  "div",
7351
7381
  {
7352
7382
  ref: c,
7353
- className: `${ui[n]} h-1`,
7383
+ className: `${pi[n]} h-1`,
7354
7384
  style: { width: "100%" }
7355
7385
  }
7356
7386
  ) })
7357
7387
  ]
7358
7388
  }
7359
7389
  ) : null;
7360
- }, ts = ({
7390
+ }, rs = ({
7361
7391
  children: e,
7362
7392
  count: n,
7363
7393
  showDot: t = !1,
@@ -7368,13 +7398,13 @@ const li = ({
7368
7398
  const i = () => {
7369
7399
  var u, d;
7370
7400
  if (t)
7371
- return /* @__PURE__ */ s.jsx("span", { className: `h-2 w-2 rounded-full ${(u = we[o]) == null ? void 0 : u.filled} block` });
7401
+ return /* @__PURE__ */ s.jsx("span", { className: `h-2 w-2 rounded-full ${(u = xe[o]) == null ? void 0 : u.filled} block` });
7372
7402
  if (n === 0 || n === void 0) return null;
7373
7403
  const c = n > r ? `${r}+` : n;
7374
7404
  return /* @__PURE__ */ s.jsx(
7375
7405
  "span",
7376
7406
  {
7377
- className: `text-color-white text-xs px-[10px] py-1 rounded-full whitespace-nowrap ${(d = we[o]) == null ? void 0 : d.filled}`,
7407
+ className: `text-color-white text-xs px-[10px] py-1 rounded-full whitespace-nowrap ${(d = xe[o]) == null ? void 0 : d.filled}`,
7378
7408
  children: c
7379
7409
  }
7380
7410
  );
@@ -7443,18 +7473,18 @@ function cn(e) {
7443
7473
  return n;
7444
7474
  }
7445
7475
  function jr(e, n, t = "/") {
7446
- return di(e, n, t, !1);
7476
+ return fi(e, n, t, !1);
7447
7477
  }
7448
- function di(e, n, t, r) {
7478
+ function fi(e, n, t, r) {
7449
7479
  let o = typeof n == "string" ? cn(n) : n, a = Fe(o.pathname || "/", t);
7450
7480
  if (a == null)
7451
7481
  return null;
7452
7482
  let i = kr(e);
7453
- pi(i);
7483
+ mi(i);
7454
7484
  let l = null;
7455
7485
  for (let c = 0; l == null && c < i.length; ++c) {
7456
- let u = Si(a);
7457
- l = yi(
7486
+ let u = ji(a);
7487
+ l = Si(
7458
7488
  i[c],
7459
7489
  u,
7460
7490
  r
@@ -7482,7 +7512,7 @@ function kr(e, n = [], t = [], r = "") {
7482
7512
  `Index routes must not have child routes. Please remove all child routes from route path "${u}".`
7483
7513
  ), kr(a.children, n, d, u)), !(a.path == null && !a.index) && n.push({
7484
7514
  path: u,
7485
- score: wi(u, a.index),
7515
+ score: yi(u, a.index),
7486
7516
  routesMeta: d
7487
7517
  });
7488
7518
  };
@@ -7510,23 +7540,23 @@ function $r(e) {
7510
7540
  (c) => e.startsWith("/") && c === "" ? "/" : c
7511
7541
  );
7512
7542
  }
7513
- function pi(e) {
7543
+ function mi(e) {
7514
7544
  e.sort(
7515
- (n, t) => n.score !== t.score ? t.score - n.score : bi(
7545
+ (n, t) => n.score !== t.score ? t.score - n.score : Ci(
7516
7546
  n.routesMeta.map((r) => r.childrenIndex),
7517
7547
  t.routesMeta.map((r) => r.childrenIndex)
7518
7548
  )
7519
7549
  );
7520
7550
  }
7521
- var fi = /^:[\w-]+$/, mi = 3, gi = 2, vi = 1, hi = 10, xi = -2, Kn = (e) => e === "*";
7522
- function wi(e, n) {
7551
+ var gi = /^:[\w-]+$/, vi = 3, hi = 2, xi = 1, wi = 10, bi = -2, Kn = (e) => e === "*";
7552
+ function yi(e, n) {
7523
7553
  let t = e.split("/"), r = t.length;
7524
- return t.some(Kn) && (r += xi), n && (r += gi), t.filter((o) => !Kn(o)).reduce(
7525
- (o, a) => o + (fi.test(a) ? mi : a === "" ? vi : hi),
7554
+ return t.some(Kn) && (r += bi), n && (r += hi), t.filter((o) => !Kn(o)).reduce(
7555
+ (o, a) => o + (gi.test(a) ? vi : a === "" ? xi : wi),
7526
7556
  r
7527
7557
  );
7528
7558
  }
7529
- function bi(e, n) {
7559
+ function Ci(e, n) {
7530
7560
  return e.length === n.length && e.slice(0, -1).every((r, o) => r === n[o]) ? (
7531
7561
  // If two routes are siblings, we should try to match the earlier sibling
7532
7562
  // first. This allows people to have fine-grained control over the matching
@@ -7539,7 +7569,7 @@ function bi(e, n) {
7539
7569
  0
7540
7570
  );
7541
7571
  }
7542
- function yi(e, n, t = !1) {
7572
+ function Si(e, n, t = !1) {
7543
7573
  let { routesMeta: r } = e, o = {}, a = "/", i = [];
7544
7574
  for (let l = 0; l < r.length; ++l) {
7545
7575
  let c = r[l], u = l === r.length - 1, d = a === "/" ? n : n.slice(a.length) || "/", g = gt(
@@ -7559,7 +7589,7 @@ function yi(e, n, t = !1) {
7559
7589
  // TODO: Can this as be avoided?
7560
7590
  params: o,
7561
7591
  pathname: ke([a, g.pathname]),
7562
- pathnameBase: $i(
7592
+ pathnameBase: Ei(
7563
7593
  ke([a, g.pathnameBase])
7564
7594
  ),
7565
7595
  route: f
@@ -7569,7 +7599,7 @@ function yi(e, n, t = !1) {
7569
7599
  }
7570
7600
  function gt(e, n) {
7571
7601
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
7572
- let [t, r] = Ci(
7602
+ let [t, r] = Ri(
7573
7603
  e.path,
7574
7604
  e.caseSensitive,
7575
7605
  e.end
@@ -7593,7 +7623,7 @@ function gt(e, n) {
7593
7623
  pattern: e
7594
7624
  };
7595
7625
  }
7596
- function Ci(e, n = !1, t = !0) {
7626
+ function Ri(e, n = !1, t = !0) {
7597
7627
  $e(
7598
7628
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
7599
7629
  `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(/\*$/, "/*")}".`
@@ -7604,7 +7634,7 @@ function Ci(e, n = !1, t = !0) {
7604
7634
  );
7605
7635
  return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, n ? void 0 : "i"), r];
7606
7636
  }
7607
- function Si(e) {
7637
+ function ji(e) {
7608
7638
  try {
7609
7639
  return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
7610
7640
  } catch (n) {
@@ -7621,19 +7651,19 @@ function Fe(e, n) {
7621
7651
  let t = n.endsWith("/") ? n.length - 1 : n.length, r = e.charAt(t);
7622
7652
  return r && r !== "/" ? null : e.slice(t) || "/";
7623
7653
  }
7624
- function Ri(e, n = "/") {
7654
+ function ki(e, n = "/") {
7625
7655
  let {
7626
7656
  pathname: t,
7627
7657
  search: r = "",
7628
7658
  hash: o = ""
7629
7659
  } = typeof e == "string" ? cn(e) : e;
7630
7660
  return {
7631
- pathname: t ? t.startsWith("/") ? t : ji(t, n) : n,
7632
- search: _i(r),
7633
- hash: Ei(o)
7661
+ pathname: t ? t.startsWith("/") ? t : $i(t, n) : n,
7662
+ search: Pi(r),
7663
+ hash: Mi(o)
7634
7664
  };
7635
7665
  }
7636
- function ji(e, n) {
7666
+ function $i(e, n) {
7637
7667
  let t = n.replace(/\/+$/, "").split("/");
7638
7668
  return e.split("/").forEach((o) => {
7639
7669
  o === ".." ? t.length > 1 && t.pop() : o !== "." && t.push(o);
@@ -7644,13 +7674,13 @@ function Ht(e, n, t, r) {
7644
7674
  r
7645
7675
  )}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
7646
7676
  }
7647
- function ki(e) {
7677
+ function _i(e) {
7648
7678
  return e.filter(
7649
7679
  (n, t) => t === 0 || n.route.path && n.route.path.length > 0
7650
7680
  );
7651
7681
  }
7652
7682
  function _r(e) {
7653
- let n = ki(e);
7683
+ let n = _i(e);
7654
7684
  return n.map(
7655
7685
  (t, r) => r === n.length - 1 ? t.pathname : t.pathnameBase
7656
7686
  );
@@ -7680,11 +7710,11 @@ function Er(e, n, t, r = !1) {
7680
7710
  }
7681
7711
  l = g >= 0 ? n[g] : "/";
7682
7712
  }
7683
- let c = Ri(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
7713
+ let c = ki(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
7684
7714
  return !c.pathname.endsWith("/") && (u || d) && (c.pathname += "/"), c;
7685
7715
  }
7686
- var ke = (e) => e.join("/").replace(/\/\/+/g, "/"), $i = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), _i = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ei = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
7687
- function Pi(e) {
7716
+ var ke = (e) => e.join("/").replace(/\/\/+/g, "/"), Ei = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Pi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Mi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
7717
+ function Li(e) {
7688
7718
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
7689
7719
  }
7690
7720
  var Pr = [
@@ -7696,11 +7726,11 @@ var Pr = [
7696
7726
  new Set(
7697
7727
  Pr
7698
7728
  );
7699
- var Mi = [
7729
+ var Fi = [
7700
7730
  "GET",
7701
7731
  ...Pr
7702
7732
  ];
7703
- new Set(Mi);
7733
+ new Set(Fi);
7704
7734
  var Ie = j.createContext(null);
7705
7735
  Ie.displayName = "DataRouter";
7706
7736
  var ht = j.createContext(null);
@@ -7710,12 +7740,12 @@ var Mr = j.createContext({
7710
7740
  isTransitioning: !1
7711
7741
  });
7712
7742
  Mr.displayName = "ViewTransition";
7713
- var Li = j.createContext(
7743
+ var Ai = j.createContext(
7714
7744
  /* @__PURE__ */ new Map()
7715
7745
  );
7716
- Li.displayName = "Fetchers";
7717
- var Fi = j.createContext(null);
7718
- Fi.displayName = "Await";
7746
+ Ai.displayName = "Fetchers";
7747
+ var Di = j.createContext(null);
7748
+ Di.displayName = "Await";
7719
7749
  var _e = j.createContext(
7720
7750
  null
7721
7751
  );
@@ -7732,7 +7762,7 @@ var Ee = j.createContext({
7732
7762
  Ee.displayName = "Route";
7733
7763
  var dn = j.createContext(null);
7734
7764
  dn.displayName = "RouteError";
7735
- function Ai(e, { relative: n } = {}) {
7765
+ function Ni(e, { relative: n } = {}) {
7736
7766
  ve(
7737
7767
  xt(),
7738
7768
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -7757,11 +7787,11 @@ var Lr = "You should call navigate() in a React.useEffect(), not when your compo
7757
7787
  function Fr(e) {
7758
7788
  j.useContext(_e).static || j.useLayoutEffect(e);
7759
7789
  }
7760
- function Di() {
7790
+ function zi() {
7761
7791
  let { isDataRoute: e } = j.useContext(Ee);
7762
- return e ? Yi() : Ni();
7792
+ return e ? Ki() : Ti();
7763
7793
  }
7764
- function Ni() {
7794
+ function Ti() {
7765
7795
  ve(
7766
7796
  xt(),
7767
7797
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -7812,7 +7842,7 @@ function Ke(e, { relative: n } = {}) {
7812
7842
  [e, o, r, n]
7813
7843
  );
7814
7844
  }
7815
- function Ti(e, n, t, r) {
7845
+ function Oi(e, n, t, r) {
7816
7846
  ve(
7817
7847
  xt(),
7818
7848
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -7844,7 +7874,7 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
7844
7874
  ), $e(
7845
7875
  m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0,
7846
7876
  `Matched leaf route at location "${f.pathname}${f.search}${f.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.`
7847
- ), Hi(
7877
+ ), qi(
7848
7878
  m && m.map(
7849
7879
  (x) => Object.assign({}, x, {
7850
7880
  params: Object.assign({}, l, x.params),
@@ -7865,14 +7895,14 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
7865
7895
  r
7866
7896
  );
7867
7897
  }
7868
- function zi() {
7869
- let e = Ui(), n = Pi(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: r }, a = { padding: "2px 4px", backgroundColor: r }, i = null;
7898
+ function Ii() {
7899
+ let e = Zi(), n = Li(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: r }, a = { padding: "2px 4px", backgroundColor: r }, i = null;
7870
7900
  return console.error(
7871
7901
  "Error handled by React Router default ErrorBoundary:",
7872
7902
  e
7873
7903
  ), i = /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ j.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ j.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ j.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ j.createElement("h3", { style: { fontStyle: "italic" } }, n), t ? /* @__PURE__ */ j.createElement("pre", { style: o }, t) : null, i);
7874
7904
  }
7875
- var Oi = /* @__PURE__ */ j.createElement(zi, null), Ii = class extends j.Component {
7905
+ var Vi = /* @__PURE__ */ j.createElement(Ii, null), Hi = class extends j.Component {
7876
7906
  constructor(e) {
7877
7907
  super(e), this.state = {
7878
7908
  location: e.location,
@@ -7911,11 +7941,11 @@ var Oi = /* @__PURE__ */ j.createElement(zi, null), Ii = class extends j.Compone
7911
7941
  )) : this.props.children;
7912
7942
  }
7913
7943
  };
7914
- function Vi({ routeContext: e, match: n, children: t }) {
7944
+ function Bi({ routeContext: e, match: n, children: t }) {
7915
7945
  let r = j.useContext(Ie);
7916
7946
  return r && r.static && r.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ j.createElement(Ee.Provider, { value: e }, t);
7917
7947
  }
7918
- function Hi(e, n = [], t = null, r = null) {
7948
+ function qi(e, n = [], t = null, r = null) {
7919
7949
  if (e == null) {
7920
7950
  if (!t)
7921
7951
  return null;
@@ -7956,7 +7986,7 @@ function Hi(e, n = [], t = null, r = null) {
7956
7986
  return o.reduceRight(
7957
7987
  (c, u, d) => {
7958
7988
  let g, f = !1, p = null, v = null;
7959
- t && (g = a && u.route.id ? a[u.route.id] : void 0, p = u.route.errorElement || Oi, i && (l < 0 && d === 0 ? (Ar(
7989
+ t && (g = a && u.route.id ? a[u.route.id] : void 0, p = u.route.errorElement || Vi, i && (l < 0 && d === 0 ? (Ar(
7960
7990
  "route-fallback",
7961
7991
  !1,
7962
7992
  "No `HydrateFallback` element provided to render during initial hydration"
@@ -7964,7 +7994,7 @@ function Hi(e, n = [], t = null, r = null) {
7964
7994
  let m = n.concat(o.slice(0, d + 1)), w = () => {
7965
7995
  let x;
7966
7996
  return g ? x = p : f ? x = v : u.route.Component ? x = /* @__PURE__ */ j.createElement(u.route.Component, null) : u.route.element ? x = u.route.element : x = c, /* @__PURE__ */ j.createElement(
7967
- Vi,
7997
+ Bi,
7968
7998
  {
7969
7999
  match: u,
7970
8000
  routeContext: {
@@ -7977,7 +8007,7 @@ function Hi(e, n = [], t = null, r = null) {
7977
8007
  );
7978
8008
  };
7979
8009
  return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ j.createElement(
7980
- Ii,
8010
+ Hi,
7981
8011
  {
7982
8012
  location: t.location,
7983
8013
  revalidation: t.revalidation,
@@ -7994,34 +8024,34 @@ function Hi(e, n = [], t = null, r = null) {
7994
8024
  function pn(e) {
7995
8025
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
7996
8026
  }
7997
- function Bi(e) {
8027
+ function Gi(e) {
7998
8028
  let n = j.useContext(Ie);
7999
8029
  return ve(n, pn(e)), n;
8000
8030
  }
8001
- function qi(e) {
8031
+ function Wi(e) {
8002
8032
  let n = j.useContext(ht);
8003
8033
  return ve(n, pn(e)), n;
8004
8034
  }
8005
- function Gi(e) {
8035
+ function Ui(e) {
8006
8036
  let n = j.useContext(Ee);
8007
8037
  return ve(n, pn(e)), n;
8008
8038
  }
8009
8039
  function fn(e) {
8010
- let n = Gi(e), t = n.matches[n.matches.length - 1];
8040
+ let n = Ui(e), t = n.matches[n.matches.length - 1];
8011
8041
  return ve(
8012
8042
  t.route.id,
8013
8043
  `${e} can only be used on routes that contain a unique "id"`
8014
8044
  ), t.route.id;
8015
8045
  }
8016
- function Wi() {
8046
+ function Yi() {
8017
8047
  return fn(
8018
8048
  "useRouteId"
8019
8049
  /* UseRouteId */
8020
8050
  );
8021
8051
  }
8022
- function Ui() {
8052
+ function Zi() {
8023
8053
  var r;
8024
- let e = j.useContext(dn), n = qi(
8054
+ let e = j.useContext(dn), n = Wi(
8025
8055
  "useRouteError"
8026
8056
  /* UseRouteError */
8027
8057
  ), t = fn(
@@ -8030,8 +8060,8 @@ function Ui() {
8030
8060
  );
8031
8061
  return e !== void 0 ? e : (r = n.errors) == null ? void 0 : r[t];
8032
8062
  }
8033
- function Yi() {
8034
- let { router: e } = Bi(
8063
+ function Ki() {
8064
+ let { router: e } = Gi(
8035
8065
  "useNavigate"
8036
8066
  /* UseNavigateStable */
8037
8067
  ), n = fn(
@@ -8051,37 +8081,37 @@ var Xn = {};
8051
8081
  function Ar(e, n, t) {
8052
8082
  !n && !Xn[e] && (Xn[e] = !0, $e(!1, t));
8053
8083
  }
8054
- j.memo(Zi);
8055
- function Zi({
8084
+ j.memo(Xi);
8085
+ function Xi({
8056
8086
  routes: e,
8057
8087
  future: n,
8058
8088
  state: t
8059
8089
  }) {
8060
- return Ti(e, void 0, t, n);
8090
+ return Oi(e, void 0, t, n);
8061
8091
  }
8062
8092
  var ut = "get", dt = "application/x-www-form-urlencoded";
8063
8093
  function wt(e) {
8064
8094
  return e != null && typeof e.tagName == "string";
8065
8095
  }
8066
- function Ki(e) {
8096
+ function Ji(e) {
8067
8097
  return wt(e) && e.tagName.toLowerCase() === "button";
8068
8098
  }
8069
- function Xi(e) {
8099
+ function Qi(e) {
8070
8100
  return wt(e) && e.tagName.toLowerCase() === "form";
8071
8101
  }
8072
- function Ji(e) {
8102
+ function el(e) {
8073
8103
  return wt(e) && e.tagName.toLowerCase() === "input";
8074
8104
  }
8075
- function Qi(e) {
8105
+ function tl(e) {
8076
8106
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
8077
8107
  }
8078
- function el(e, n) {
8108
+ function nl(e, n) {
8079
8109
  return e.button === 0 && // Ignore everything but left clicks
8080
8110
  (!n || n === "_self") && // Let browser handle "target=_blank" etc.
8081
- !Qi(e);
8111
+ !tl(e);
8082
8112
  }
8083
8113
  var ct = null;
8084
- function tl() {
8114
+ function rl() {
8085
8115
  if (ct === null)
8086
8116
  try {
8087
8117
  new FormData(
@@ -8094,30 +8124,30 @@ function tl() {
8094
8124
  }
8095
8125
  return ct;
8096
8126
  }
8097
- var nl = /* @__PURE__ */ new Set([
8127
+ var ol = /* @__PURE__ */ new Set([
8098
8128
  "application/x-www-form-urlencoded",
8099
8129
  "multipart/form-data",
8100
8130
  "text/plain"
8101
8131
  ]);
8102
8132
  function Bt(e) {
8103
- return e != null && !nl.has(e) ? ($e(
8133
+ return e != null && !ol.has(e) ? ($e(
8104
8134
  !1,
8105
8135
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`
8106
8136
  ), null) : e;
8107
8137
  }
8108
- function rl(e, n) {
8138
+ function al(e, n) {
8109
8139
  let t, r, o, a, i;
8110
- if (Xi(e)) {
8140
+ if (Qi(e)) {
8111
8141
  let l = e.getAttribute("action");
8112
8142
  r = l ? Fe(l, n) : null, t = e.getAttribute("method") || ut, o = Bt(e.getAttribute("enctype")) || dt, a = new FormData(e);
8113
- } else if (Ki(e) || Ji(e) && (e.type === "submit" || e.type === "image")) {
8143
+ } else if (Ji(e) || el(e) && (e.type === "submit" || e.type === "image")) {
8114
8144
  let l = e.form;
8115
8145
  if (l == null)
8116
8146
  throw new Error(
8117
8147
  'Cannot submit a <button> or <input type="submit"> without a <form>'
8118
8148
  );
8119
8149
  let c = e.getAttribute("formaction") || l.getAttribute("action");
8120
- if (r = c ? Fe(c, n) : null, t = e.getAttribute("formmethod") || l.getAttribute("method") || ut, o = Bt(e.getAttribute("formenctype")) || Bt(l.getAttribute("enctype")) || dt, a = new FormData(l, e), !tl()) {
8150
+ if (r = c ? Fe(c, n) : null, t = e.getAttribute("formmethod") || l.getAttribute("method") || ut, o = Bt(e.getAttribute("formenctype")) || Bt(l.getAttribute("enctype")) || dt, a = new FormData(l, e), !rl()) {
8121
8151
  let { name: u, type: d, value: g } = e;
8122
8152
  if (d === "image") {
8123
8153
  let f = u ? `${u}.` : "";
@@ -8138,7 +8168,7 @@ function mn(e, n) {
8138
8168
  if (e === !1 || e === null || typeof e > "u")
8139
8169
  throw new Error(n);
8140
8170
  }
8141
- function ol(e, n, t) {
8171
+ function il(e, n, t) {
8142
8172
  let r = typeof e == "string" ? new URL(
8143
8173
  e,
8144
8174
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -8147,7 +8177,7 @@ function ol(e, n, t) {
8147
8177
  ) : e;
8148
8178
  return r.pathname === "/" ? r.pathname = `_root.${t}` : n && Fe(r.pathname, n) === "/" ? r.pathname = `${n.replace(/\/$/, "")}/_root.${t}` : r.pathname = `${r.pathname.replace(/\/$/, "")}.${t}`, r;
8149
8179
  }
8150
- async function al(e, n) {
8180
+ async function ll(e, n) {
8151
8181
  if (e.id in n)
8152
8182
  return n[e.id];
8153
8183
  try {
@@ -8164,22 +8194,22 @@ async function al(e, n) {
8164
8194
  });
8165
8195
  }
8166
8196
  }
8167
- function il(e) {
8197
+ function sl(e) {
8168
8198
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
8169
8199
  }
8170
- async function ll(e, n, t) {
8200
+ async function cl(e, n, t) {
8171
8201
  let r = await Promise.all(
8172
8202
  e.map(async (o) => {
8173
8203
  let a = n.routes[o.route.id];
8174
8204
  if (a) {
8175
- let i = await al(a, t);
8205
+ let i = await ll(a, t);
8176
8206
  return i.links ? i.links() : [];
8177
8207
  }
8178
8208
  return [];
8179
8209
  })
8180
8210
  );
8181
- return dl(
8182
- r.flat(1).filter(il).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
8211
+ return fl(
8212
+ r.flat(1).filter(sl).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
8183
8213
  (o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
8184
8214
  )
8185
8215
  );
@@ -8220,8 +8250,8 @@ function Jn(e, n, t, r, o, a) {
8220
8250
  return !0;
8221
8251
  }) : [];
8222
8252
  }
8223
- function sl(e, n, { includeHydrateFallback: t } = {}) {
8224
- return cl(
8253
+ function ul(e, n, { includeHydrateFallback: t } = {}) {
8254
+ return dl(
8225
8255
  e.map((r) => {
8226
8256
  let o = n.routes[r.route.id];
8227
8257
  if (!o) return [];
@@ -8230,19 +8260,19 @@ function sl(e, n, { includeHydrateFallback: t } = {}) {
8230
8260
  }).flat(1)
8231
8261
  );
8232
8262
  }
8233
- function cl(e) {
8263
+ function dl(e) {
8234
8264
  return [...new Set(e)];
8235
8265
  }
8236
- function ul(e) {
8266
+ function pl(e) {
8237
8267
  let n = {}, t = Object.keys(e).sort();
8238
8268
  for (let r of t)
8239
8269
  n[r] = e[r];
8240
8270
  return n;
8241
8271
  }
8242
- function dl(e, n) {
8272
+ function fl(e, n) {
8243
8273
  let t = /* @__PURE__ */ new Set();
8244
8274
  return new Set(n), e.reduce((r, o) => {
8245
- let a = JSON.stringify(ul(o));
8275
+ let a = JSON.stringify(pl(o));
8246
8276
  return t.has(a) || (t.add(a), r.push({ key: a, link: o })), r;
8247
8277
  }, []);
8248
8278
  }
@@ -8253,7 +8283,7 @@ function Dr() {
8253
8283
  "You must render this element inside a <DataRouterContext.Provider> element"
8254
8284
  ), e;
8255
8285
  }
8256
- function pl() {
8286
+ function ml() {
8257
8287
  let e = j.useContext(ht);
8258
8288
  return mn(
8259
8289
  e,
@@ -8269,7 +8299,7 @@ function Nr() {
8269
8299
  "You must render this element inside a <HydratedRouter> element"
8270
8300
  ), e;
8271
8301
  }
8272
- function fl(e, n) {
8302
+ function gl(e, n) {
8273
8303
  let t = j.useContext(gn), [r, o] = j.useState(!1), [a, i] = j.useState(!1), { onFocus: l, onBlur: c, onMouseEnter: u, onMouseLeave: d, onTouchStart: g } = n, f = j.useRef(null);
8274
8304
  j.useEffect(() => {
8275
8305
  if (e === "render" && i(!0), e === "viewport") {
@@ -8314,18 +8344,18 @@ function Ge(e, n) {
8314
8344
  e && e(t), t.defaultPrevented || n(t);
8315
8345
  };
8316
8346
  }
8317
- function ml({ page: e, ...n }) {
8347
+ function vl({ page: e, ...n }) {
8318
8348
  let { router: t } = Dr(), r = j.useMemo(
8319
8349
  () => jr(t.routes, e, t.basename),
8320
8350
  [t.routes, e, t.basename]
8321
8351
  );
8322
- return r ? /* @__PURE__ */ j.createElement(vl, { page: e, matches: r, ...n }) : null;
8352
+ return r ? /* @__PURE__ */ j.createElement(xl, { page: e, matches: r, ...n }) : null;
8323
8353
  }
8324
- function gl(e) {
8354
+ function hl(e) {
8325
8355
  let { manifest: n, routeModules: t } = Nr(), [r, o] = j.useState([]);
8326
8356
  return j.useEffect(() => {
8327
8357
  let a = !1;
8328
- return ll(e, n, t).then(
8358
+ return cl(e, n, t).then(
8329
8359
  (i) => {
8330
8360
  a || o(i);
8331
8361
  }
@@ -8334,12 +8364,12 @@ function gl(e) {
8334
8364
  };
8335
8365
  }, [e, n, t]), r;
8336
8366
  }
8337
- function vl({
8367
+ function xl({
8338
8368
  page: e,
8339
8369
  matches: n,
8340
8370
  ...t
8341
8371
  }) {
8342
- let r = Ne(), { manifest: o, routeModules: a } = Nr(), { basename: i } = Dr(), { loaderData: l, matches: c } = pl(), u = j.useMemo(
8372
+ let r = Ne(), { manifest: o, routeModules: a } = Nr(), { basename: i } = Dr(), { loaderData: l, matches: c } = ml(), u = j.useMemo(
8343
8373
  () => Jn(
8344
8374
  e,
8345
8375
  n,
@@ -8369,7 +8399,7 @@ function vl({
8369
8399
  !k || !k.hasLoader || (!u.some(($) => $.route.id === x.route.id) && x.route.id in l && ((b = a[x.route.id]) != null && b.shouldRevalidate) || k.hasClientLoader ? m = !0 : v.add(x.route.id));
8370
8400
  }), v.size === 0)
8371
8401
  return [];
8372
- let w = ol(e, i, "data");
8402
+ let w = il(e, i, "data");
8373
8403
  return m && v.size > 0 && w.searchParams.set(
8374
8404
  "_routes",
8375
8405
  n.filter((x) => v.has(x.route.id)).map((x) => x.route.id).join(",")
@@ -8384,29 +8414,29 @@ function vl({
8384
8414
  e,
8385
8415
  a
8386
8416
  ]), f = j.useMemo(
8387
- () => sl(d, o),
8417
+ () => ul(d, o),
8388
8418
  [d, o]
8389
- ), p = gl(d);
8419
+ ), p = hl(d);
8390
8420
  return /* @__PURE__ */ j.createElement(j.Fragment, null, g.map((v) => /* @__PURE__ */ j.createElement("link", { key: v, rel: "prefetch", as: "fetch", href: v, ...t })), f.map((v) => /* @__PURE__ */ j.createElement("link", { key: v, rel: "modulepreload", href: v, ...t })), p.map(({ key: v, link: m }) => (
8391
8421
  // these don't spread `linkProps` because they are full link descriptors
8392
8422
  // already with their own props
8393
8423
  /* @__PURE__ */ j.createElement("link", { key: v, ...m })
8394
8424
  )));
8395
8425
  }
8396
- function hl(...e) {
8426
+ function wl(...e) {
8397
8427
  return (n) => {
8398
8428
  e.forEach((t) => {
8399
8429
  typeof t == "function" ? t(n) : t != null && (t.current = n);
8400
8430
  });
8401
8431
  };
8402
8432
  }
8403
- var Tr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
8433
+ var zr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
8404
8434
  try {
8405
- Tr && (window.__reactRouterVersion = // @ts-expect-error
8435
+ zr && (window.__reactRouterVersion = // @ts-expect-error
8406
8436
  "7.7.1");
8407
8437
  } catch {
8408
8438
  }
8409
- var zr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = j.forwardRef(
8439
+ var Tr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = j.forwardRef(
8410
8440
  function({
8411
8441
  onClick: n,
8412
8442
  discover: t = "render",
@@ -8421,8 +8451,8 @@ var zr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = j.forwardRef(
8421
8451
  viewTransition: g,
8422
8452
  ...f
8423
8453
  }, p) {
8424
- let { basename: v } = j.useContext(_e), m = typeof u == "string" && zr.test(u), w, x = !1;
8425
- if (typeof u == "string" && m && (w = u, Tr))
8454
+ let { basename: v } = j.useContext(_e), m = typeof u == "string" && Tr.test(u), w, x = !1;
8455
+ if (typeof u == "string" && m && (w = u, zr))
8426
8456
  try {
8427
8457
  let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae = Fe(Z.pathname, v);
8428
8458
  Z.origin === F.origin && ae != null ? u = ae + Z.search + Z.hash : x = !0;
@@ -8432,10 +8462,10 @@ var zr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = j.forwardRef(
8432
8462
  `<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
8433
8463
  );
8434
8464
  }
8435
- let k = Ai(u, { relative: o }), [b, $, y] = fl(
8465
+ let k = Ni(u, { relative: o }), [b, $, y] = gl(
8436
8466
  r,
8437
8467
  f
8438
- ), O = bl(u, {
8468
+ ), O = Cl(u, {
8439
8469
  replace: i,
8440
8470
  state: l,
8441
8471
  target: c,
@@ -8455,13 +8485,13 @@ var zr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = j.forwardRef(
8455
8485
  ...y,
8456
8486
  href: w || k,
8457
8487
  onClick: x || a ? n : N,
8458
- ref: hl(p, $),
8488
+ ref: wl(p, $),
8459
8489
  target: c,
8460
8490
  "data-discover": !m && t === "render" ? "true" : void 0
8461
8491
  }
8462
8492
  )
8463
8493
  );
8464
- return b && !m ? /* @__PURE__ */ j.createElement(j.Fragment, null, V, /* @__PURE__ */ j.createElement(ml, { page: k })) : V;
8494
+ return b && !m ? /* @__PURE__ */ j.createElement(j.Fragment, null, V, /* @__PURE__ */ j.createElement(vl, { page: k })) : V;
8465
8495
  }
8466
8496
  );
8467
8497
  vn.displayName = "Link";
@@ -8479,7 +8509,7 @@ var Or = j.forwardRef(
8479
8509
  }, d) {
8480
8510
  let g = Ke(i, { relative: u.relative }), f = Ne(), p = j.useContext(ht), { navigator: v, basename: m } = j.useContext(_e), w = p != null && // Conditional usage is OK here because the usage of a data router is static
8481
8511
  // eslint-disable-next-line react-hooks/rules-of-hooks
8482
- jl(g) && l === !0, x = v.encodeLocation ? v.encodeLocation(g).pathname : g.pathname, k = f.pathname, b = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
8512
+ $l(g) && l === !0, x = v.encodeLocation ? v.encodeLocation(g).pathname : g.pathname, k = f.pathname, b = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
8483
8513
  t || (k = k.toLowerCase(), b = b ? b.toLowerCase() : null, x = x.toLowerCase()), b && m && (b = Fe(b, m) || b);
8484
8514
  const $ = x !== "/" && x.endsWith("/") ? x.length - 1 : x.length;
8485
8515
  let y = k === x || !o && k.startsWith(x) && k.charAt($) === "/", O = b != null && (b === x || !o && b.startsWith(x) && b.charAt(x.length) === "/"), N = {
@@ -8510,7 +8540,7 @@ var Or = j.forwardRef(
8510
8540
  }
8511
8541
  );
8512
8542
  Or.displayName = "NavLink";
8513
- var xl = j.forwardRef(
8543
+ var bl = j.forwardRef(
8514
8544
  ({
8515
8545
  discover: e = "render",
8516
8546
  fetcherKey: n,
@@ -8526,7 +8556,7 @@ var xl = j.forwardRef(
8526
8556
  viewTransition: g,
8527
8557
  ...f
8528
8558
  }, p) => {
8529
- let v = Sl(), m = Rl(l, { relative: u }), w = i.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && zr.test(l), k = (b) => {
8559
+ let v = jl(), m = kl(l, { relative: u }), w = i.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && Tr.test(l), k = (b) => {
8530
8560
  if (c && c(b), b.defaultPrevented) return;
8531
8561
  b.preventDefault();
8532
8562
  let $ = b.nativeEvent.submitter, y = ($ == null ? void 0 : $.getAttribute("formmethod")) || i;
@@ -8554,15 +8584,15 @@ var xl = j.forwardRef(
8554
8584
  );
8555
8585
  }
8556
8586
  );
8557
- xl.displayName = "Form";
8558
- function wl(e) {
8587
+ bl.displayName = "Form";
8588
+ function yl(e) {
8559
8589
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
8560
8590
  }
8561
8591
  function Ir(e) {
8562
8592
  let n = j.useContext(Ie);
8563
- return ve(n, wl(e)), n;
8593
+ return ve(n, yl(e)), n;
8564
8594
  }
8565
- function bl(e, {
8595
+ function Cl(e, {
8566
8596
  target: n,
8567
8597
  replace: t,
8568
8598
  state: r,
@@ -8570,10 +8600,10 @@ function bl(e, {
8570
8600
  relative: a,
8571
8601
  viewTransition: i
8572
8602
  } = {}) {
8573
- let l = Di(), c = Ne(), u = Ke(e, { relative: a });
8603
+ let l = zi(), c = Ne(), u = Ke(e, { relative: a });
8574
8604
  return j.useCallback(
8575
8605
  (d) => {
8576
- if (el(d, n)) {
8606
+ if (nl(d, n)) {
8577
8607
  d.preventDefault();
8578
8608
  let g = t !== void 0 ? t : nn(c) === nn(u);
8579
8609
  l(e, {
@@ -8599,20 +8629,20 @@ function bl(e, {
8599
8629
  ]
8600
8630
  );
8601
8631
  }
8602
- var yl = 0, Cl = () => `__${String(++yl)}__`;
8603
- function Sl() {
8632
+ var Sl = 0, Rl = () => `__${String(++Sl)}__`;
8633
+ function jl() {
8604
8634
  let { router: e } = Ir(
8605
8635
  "useSubmit"
8606
8636
  /* UseSubmit */
8607
- ), { basename: n } = j.useContext(_e), t = Wi();
8637
+ ), { basename: n } = j.useContext(_e), t = Yi();
8608
8638
  return j.useCallback(
8609
8639
  async (r, o = {}) => {
8610
- let { action: a, method: i, encType: l, formData: c, body: u } = rl(
8640
+ let { action: a, method: i, encType: l, formData: c, body: u } = al(
8611
8641
  r,
8612
8642
  n
8613
8643
  );
8614
8644
  if (o.navigate === !1) {
8615
- let d = o.fetcherKey || Cl();
8645
+ let d = o.fetcherKey || Rl();
8616
8646
  await e.fetch(d, t, o.action || a, {
8617
8647
  preventScrollReset: o.preventScrollReset,
8618
8648
  formData: c,
@@ -8638,7 +8668,7 @@ function Sl() {
8638
8668
  [e, n, t]
8639
8669
  );
8640
8670
  }
8641
- function Rl(e, { relative: n } = {}) {
8671
+ function kl(e, { relative: n } = {}) {
8642
8672
  let { basename: t } = j.useContext(_e), r = j.useContext(Ee);
8643
8673
  ve(r, "useFormAction must be used inside a RouteContext");
8644
8674
  let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i = Ne();
@@ -8653,7 +8683,7 @@ function Rl(e, { relative: n } = {}) {
8653
8683
  }
8654
8684
  return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (a.pathname = a.pathname === "/" ? t : ke([t, a.pathname])), nn(a);
8655
8685
  }
8656
- function jl(e, { relative: n } = {}) {
8686
+ function $l(e, { relative: n } = {}) {
8657
8687
  let t = j.useContext(Mr);
8658
8688
  ve(
8659
8689
  t != null,
@@ -8668,7 +8698,7 @@ function jl(e, { relative: n } = {}) {
8668
8698
  let a = Fe(t.currentLocation.pathname, r) || t.currentLocation.pathname, i = Fe(t.nextLocation.pathname, r) || t.nextLocation.pathname;
8669
8699
  return gt(o.pathname, i) != null || gt(o.pathname, a) != null;
8670
8700
  }
8671
- const ns = ({
8701
+ const os = ({
8672
8702
  variant: e = "fixed",
8673
8703
  activeTab: n,
8674
8704
  navItems: t,
@@ -8694,7 +8724,7 @@ const ns = ({
8694
8724
  c.label
8695
8725
  );
8696
8726
  }) });
8697
- }, rs = ({ items: e, separator: n = "/", className: t = "" }) => /* @__PURE__ */ s.jsx("nav", { className: `text-sm text-color-gray-600 ${t}`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ s.jsx("ol", { className: "flex items-center space-x-1", children: e.map((r, o) => /* @__PURE__ */ s.jsxs("li", { className: "flex items-center", children: [
8727
+ }, as = ({ items: e, separator: n = "/", className: t = "" }) => /* @__PURE__ */ s.jsx("nav", { className: `text-sm text-color-gray-600 ${t}`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ s.jsx("ol", { className: "flex items-center space-x-1", children: e.map((r, o) => /* @__PURE__ */ s.jsxs("li", { className: "flex items-center", children: [
8698
8728
  r.href ? /* @__PURE__ */ s.jsx(
8699
8729
  "a",
8700
8730
  {
@@ -8704,7 +8734,7 @@ const ns = ({
8704
8734
  }
8705
8735
  ) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
8706
8736
  o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
8707
- ] }, o)) }) }), Qn = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], kl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], os = ({
8737
+ ] }, o)) }) }), Qn = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], _l = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], is = ({
8708
8738
  mode: e = "single",
8709
8739
  type: n = "inline",
8710
8740
  showTime: t = !1,
@@ -8721,7 +8751,7 @@ const ns = ({
8721
8751
  d ? new Date(d) : null
8722
8752
  ), [b, $] = K(null), [y, O] = K(null), [N, V] = K(null), [F, Z] = K({ hour: 12, minute: 0, ampm: "AM" }), ae = se(null), [ue, Q] = K(
8723
8753
  d ? new Date(d) : null
8724
- ), [H, Y] = K(null), [z, te] = K(null);
8754
+ ), [H, Y] = K(null), [T, te] = K(null);
8725
8755
  ce(() => {
8726
8756
  k(d ? new Date(d) : null), Q(d ? new Date(d) : null);
8727
8757
  }, [d]);
@@ -8759,7 +8789,7 @@ const ns = ({
8759
8789
  startDate: b ? b.getTime() : null,
8760
8790
  endDate: y ? y.getTime() : null
8761
8791
  }));
8762
- }, T = () => {
8792
+ }, z = () => {
8763
8793
  const S = new Date(m.getFullYear(), m.getMonth(), 1), R = new Date(m.getFullYear(), m.getMonth() + 1, 0), _ = [], J = S.getDay();
8764
8794
  for (let ee = 0; ee < J; ee++)
8765
8795
  _.push(null);
@@ -8873,8 +8903,8 @@ const ns = ({
8873
8903
  )
8874
8904
  ] }),
8875
8905
  /* @__PURE__ */ s.jsxs("div", { className: "grid grid-columns-7 gap-1 text-center text-sm mb-2", children: [
8876
- kl.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
8877
- T().map((S, R) => /* @__PURE__ */ s.jsx(
8906
+ _l.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
8907
+ z().map((S, R) => /* @__PURE__ */ s.jsx(
8878
8908
  "div",
8879
8909
  {
8880
8910
  className: `size-8 flex justify-center items-center text-sm rounded-full transition-all
@@ -8916,20 +8946,20 @@ const ns = ({
8916
8946
  children: [
8917
8947
  e === "single" ? ue ? P(ue) : i : (
8918
8948
  // Display rangeStart immediately if set, even if rangeEnd is null
8919
- b || H || z ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
8949
+ b || H || T ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
8920
8950
  P(b || H, "start"),
8921
8951
  " -",
8922
8952
  " ",
8923
- P(y || z, "end")
8953
+ P(y || T, "end")
8924
8954
  ] }) : i
8925
8955
  ),
8926
8956
  l
8927
8957
  ]
8928
8958
  }
8929
8959
  ),
8930
- n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(ai, { open: g, title: r ? "Select Time" : i, onClose: X, children: /* @__PURE__ */ s.jsx("div", { className: "w-72", children: q }) })
8960
+ n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(li, { open: g, title: r ? "Select Time" : i, onClose: X, children: /* @__PURE__ */ s.jsx("div", { className: "w-72", children: q }) })
8931
8961
  ] });
8932
- }, as = ({
8962
+ }, ls = ({
8933
8963
  tabs: e,
8934
8964
  activeKey: n,
8935
8965
  onChange: t,
@@ -8976,10 +9006,10 @@ const ns = ({
8976
9006
  ]
8977
9007
  }
8978
9008
  );
8979
- }, is = ({
9009
+ }, ss = ({
8980
9010
  stats: e = [],
8981
9011
  className: n = ""
8982
- }) => /* @__PURE__ */ s.jsx(ni, { className: `w-full ${n}`, children: /* @__PURE__ */ s.jsx("div", { className: "grid grid-columns-1 sm:grid-columns-1 md:grid-columns-2 lg:grid-columns-4 gap-4 justify-items-center", children: e.map((t, r) => /* @__PURE__ */ s.jsxs(
9012
+ }) => /* @__PURE__ */ s.jsx(oi, { className: `w-full ${n}`, children: /* @__PURE__ */ s.jsx("div", { className: "grid grid-columns-1 sm:grid-columns-1 md:grid-columns-2 lg:grid-columns-4 gap-4 justify-items-center", children: e.map((t, r) => /* @__PURE__ */ s.jsxs(
8983
9013
  "div",
8984
9014
  {
8985
9015
  className: `flex items-center justify-center gap-4 lg:not-last:border-r md:not-last:border-r md:nth-2:border-r-0 md:not-last:border-b-0 not-last:border-b border-color-gray-200
@@ -9000,7 +9030,7 @@ const ns = ({
9000
9030
  },
9001
9031
  r
9002
9032
  )) }) });
9003
- function ls({
9033
+ function cs({
9004
9034
  items: e = [],
9005
9035
  logoJSX: n,
9006
9036
  position: t,
@@ -9014,7 +9044,7 @@ function ls({
9014
9044
  c(d), d.onClick && d.onClick(), i && i(d);
9015
9045
  };
9016
9046
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
9017
- li,
9047
+ ci,
9018
9048
  {
9019
9049
  open: o,
9020
9050
  onClose: a,
@@ -9062,51 +9092,51 @@ function ls({
9062
9092
  ) });
9063
9093
  }
9064
9094
  export {
9065
- Ql as Accordion,
9066
- Jl as ActionMenu,
9067
- es as Alert,
9068
- ca as Avatar,
9069
- ts as Badge,
9070
- ns as BottomNavigation,
9071
- rs as Breadcrumbs,
9095
+ ts as Accordion,
9096
+ es as ActionMenu,
9097
+ ns as Alert,
9098
+ da as Avatar,
9099
+ rs as Badge,
9100
+ os as BottomNavigation,
9101
+ as as Breadcrumbs,
9072
9102
  Gt as Button,
9073
- we as COLOR_MAP,
9074
- ni as Card,
9075
- Ml as CardWrapper,
9076
- Gl as Carousel,
9077
- Ll as Checkbox,
9078
- is as DashboardStatBoxes,
9079
- os as DatePicker,
9080
- ai as Dialog,
9081
- Yl as Divider,
9082
- li as Drawer,
9083
- Fl as Dropdown,
9084
- Al as DropzoneUploader,
9085
- Wl as EmptyState,
9103
+ xe as COLOR_MAP,
9104
+ oi as Card,
9105
+ Fl as CardWrapper,
9106
+ Ul as Carousel,
9107
+ Al as Checkbox,
9108
+ ss as DashboardStatBoxes,
9109
+ is as DatePicker,
9110
+ li as Dialog,
9111
+ Kl as Divider,
9112
+ ci as Drawer,
9113
+ Dl as Dropdown,
9114
+ Nl as DropzoneUploader,
9115
+ Yl as EmptyState,
9086
9116
  je as IconButton,
9087
9117
  na as Menu,
9088
9118
  ia as OtpInput,
9089
- ei as Pagination,
9090
- la as PasswordInput,
9091
- Dl as Pill,
9092
- Nl as ProfileImageShowcase,
9093
- Bl as Progress,
9119
+ ni as Pagination,
9120
+ ca as PasswordInput,
9121
+ zl as Pill,
9122
+ Tl as ProfileImageShowcase,
9123
+ Gl as Progress,
9094
9124
  qt as RANGE_COLOR_MAP,
9095
- Zl as RadioGroup,
9096
- ql as Rating,
9097
- Kl as Select,
9098
- ls as Sidebar,
9099
- Ol as Skeleton,
9100
- Vl as Slider,
9101
- Hl as Snackbar,
9102
- Tl as Stepper,
9103
- zl as Table,
9104
- as as Tabs,
9105
- Il as TextArea,
9125
+ Xl as RadioGroup,
9126
+ Wl as Rating,
9127
+ Jl as Select,
9128
+ cs as Sidebar,
9129
+ Vl as Skeleton,
9130
+ Bl as Slider,
9131
+ ql as Snackbar,
9132
+ Ol as Stepper,
9133
+ Il as Table,
9134
+ ls as Tabs,
9135
+ Hl as TextArea,
9106
9136
  gr as TextInput,
9107
- Ul as ToggleSwitch,
9108
- Xl as Tooltip,
9109
- Qa as Typography,
9110
- El as extendColorMap,
9111
- Pl as extendRangeColorMap
9137
+ Zl as ToggleSwitch,
9138
+ Ql as Tooltip,
9139
+ ti as Typography,
9140
+ Ml as extendColorMap,
9141
+ Ll as extendRangeColorMap
9112
9142
  };