@service_laboratory/auth 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as O from "react";
2
- import N, { forwardRef as Nt, createElement as $e, useState as ar } from "react";
2
+ import N, { forwardRef as jt, createElement as $e, useState as ir } from "react";
3
3
  var we = { exports: {} }, he = {};
4
4
  /**
5
5
  * @license React
@@ -11,7 +11,7 @@ var we = { exports: {} }, he = {};
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
13
  var Je;
14
- function ir() {
14
+ function lr() {
15
15
  if (Je) return he;
16
16
  Je = 1;
17
17
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
@@ -43,7 +43,7 @@ var ye = {};
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
  var Ze;
46
- function lr() {
46
+ function cr() {
47
47
  return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && (function() {
48
48
  function e(a) {
49
49
  if (a == null) return null;
@@ -276,10 +276,10 @@ React keys must be passed directly to JSX without using spread:
276
276
  })()), ye;
277
277
  }
278
278
  var Qe;
279
- function cr() {
280
- return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? we.exports = ir() : we.exports = lr()), we.exports;
279
+ function ur() {
280
+ return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? we.exports = lr() : we.exports = cr()), we.exports;
281
281
  }
282
- var C = cr(), Ce = { exports: {} }, be = {};
282
+ var C = ur(), Ce = { exports: {} }, be = {};
283
283
  /**
284
284
  * @license React
285
285
  * react-jsx-runtime.production.js
@@ -290,7 +290,7 @@ var C = cr(), Ce = { exports: {} }, be = {};
290
290
  * LICENSE file in the root directory of this source tree.
291
291
  */
292
292
  var et;
293
- function ur() {
293
+ function dr() {
294
294
  if (et) return be;
295
295
  et = 1;
296
296
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
@@ -322,7 +322,7 @@ var ke = {};
322
322
  * LICENSE file in the root directory of this source tree.
323
323
  */
324
324
  var tt;
325
- function dr() {
325
+ function fr() {
326
326
  return tt || (tt = 1, process.env.NODE_ENV !== "production" && (function() {
327
327
  function e(a) {
328
328
  if (a == null) return null;
@@ -555,11 +555,11 @@ React keys must be passed directly to JSX without using spread:
555
555
  })()), ke;
556
556
  }
557
557
  var rt;
558
- function fr() {
559
- return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ce.exports = ur() : Ce.exports = dr()), Ce.exports;
558
+ function pr() {
559
+ return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ce.exports = dr() : Ce.exports = fr()), Ce.exports;
560
560
  }
561
- var L = fr();
562
- function pr(e, r = []) {
561
+ var L = pr();
562
+ function mr(e, r = []) {
563
563
  let t = [];
564
564
  function o(s, d) {
565
565
  const f = O.createContext(d), u = t.length;
@@ -587,9 +587,9 @@ function pr(e, r = []) {
587
587
  );
588
588
  };
589
589
  };
590
- return n.scopeName = e, [o, mr(n, ...r)];
590
+ return n.scopeName = e, [o, gr(n, ...r)];
591
591
  }
592
- function mr(...e) {
592
+ function gr(...e) {
593
593
  const r = e[0];
594
594
  if (e.length === 1) return r;
595
595
  const t = () => {
@@ -607,7 +607,7 @@ function mr(...e) {
607
607
  };
608
608
  return t.scopeName = r.scopeName, t;
609
609
  }
610
- function gr(e) {
610
+ function hr(e) {
611
611
  const r = O.useRef(e);
612
612
  return O.useEffect(() => {
613
613
  r.current = e;
@@ -625,7 +625,7 @@ var Fe = globalThis?.document ? O.useLayoutEffect : () => {
625
625
  * LICENSE file in the root directory of this source tree.
626
626
  */
627
627
  var ot;
628
- function hr() {
628
+ function yr() {
629
629
  if (ot) return $;
630
630
  ot = 1;
631
631
  var e = N;
@@ -768,7 +768,7 @@ var H = {};
768
768
  * LICENSE file in the root directory of this source tree.
769
769
  */
770
770
  var nt;
771
- function yr() {
771
+ function br() {
772
772
  return nt || (nt = 1, process.env.NODE_ENV !== "production" && (function() {
773
773
  function e() {
774
774
  }
@@ -981,7 +981,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
981
981
  })()), H;
982
982
  }
983
983
  var st;
984
- function br() {
984
+ function vr() {
985
985
  if (st) return Se.exports;
986
986
  st = 1;
987
987
  function e() {
@@ -995,15 +995,15 @@ function br() {
995
995
  }
996
996
  }
997
997
  }
998
- return process.env.NODE_ENV === "production" ? (e(), Se.exports = hr()) : Se.exports = yr(), Se.exports;
998
+ return process.env.NODE_ENV === "production" ? (e(), Se.exports = yr()) : Se.exports = br(), Se.exports;
999
999
  }
1000
- br();
1000
+ vr();
1001
1001
  function at(e, r) {
1002
1002
  if (typeof e == "function")
1003
1003
  return e(r);
1004
1004
  e != null && (e.current = r);
1005
1005
  }
1006
- function vr(...e) {
1006
+ function xr(...e) {
1007
1007
  return (r) => {
1008
1008
  let t = !1;
1009
1009
  const o = e.map((n) => {
@@ -1020,9 +1020,9 @@ function vr(...e) {
1020
1020
  };
1021
1021
  }
1022
1022
  // @__NO_SIDE_EFFECTS__
1023
- function jt(e) {
1024
- const r = /* @__PURE__ */ xr(e), t = O.forwardRef((o, n) => {
1025
- const { children: s, ...d } = o, f = O.Children.toArray(s), u = f.find(wr);
1023
+ function Tt(e) {
1024
+ const r = /* @__PURE__ */ _r(e), t = O.forwardRef((o, n) => {
1025
+ const { children: s, ...d } = o, f = O.Children.toArray(s), u = f.find(kr);
1026
1026
  if (u) {
1027
1027
  const l = u.props.children, m = f.map((c) => c === u ? O.Children.count(l) > 1 ? O.Children.only(null) : O.isValidElement(l) ? l.props.children : null : c);
1028
1028
  return /* @__PURE__ */ L.jsx(r, { ...d, ref: n, children: O.isValidElement(l) ? O.cloneElement(l, void 0, m) : null });
@@ -1031,24 +1031,24 @@ function jt(e) {
1031
1031
  });
1032
1032
  return t.displayName = `${e}.Slot`, t;
1033
1033
  }
1034
- var Tt = /* @__PURE__ */ jt("Slot");
1034
+ var At = /* @__PURE__ */ Tt("Slot");
1035
1035
  // @__NO_SIDE_EFFECTS__
1036
- function xr(e) {
1036
+ function _r(e) {
1037
1037
  const r = O.forwardRef((t, o) => {
1038
1038
  const { children: n, ...s } = t;
1039
1039
  if (O.isValidElement(n)) {
1040
- const d = Sr(n), f = kr(s, n.props);
1041
- return n.type !== O.Fragment && (f.ref = o ? vr(o, d) : d), O.cloneElement(n, f);
1040
+ const d = Or(n), f = Sr(s, n.props);
1041
+ return n.type !== O.Fragment && (f.ref = o ? xr(o, d) : d), O.cloneElement(n, f);
1042
1042
  }
1043
1043
  return O.Children.count(n) > 1 ? O.Children.only(null) : null;
1044
1044
  });
1045
1045
  return r.displayName = `${e}.SlotClone`, r;
1046
1046
  }
1047
- var _r = Symbol("radix.slottable");
1048
- function wr(e) {
1049
- return O.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === _r;
1047
+ var wr = Symbol("radix.slottable");
1048
+ function kr(e) {
1049
+ return O.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === wr;
1050
1050
  }
1051
- function kr(e, r) {
1051
+ function Sr(e, r) {
1052
1052
  const t = { ...r };
1053
1053
  for (const o in r) {
1054
1054
  const n = e[o], s = r[o];
@@ -1059,11 +1059,11 @@ function kr(e, r) {
1059
1059
  }
1060
1060
  return { ...e, ...t };
1061
1061
  }
1062
- function Sr(e) {
1062
+ function Or(e) {
1063
1063
  let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
1064
1064
  return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
1065
1065
  }
1066
- var Or = [
1066
+ var Er = [
1067
1067
  "a",
1068
1068
  "button",
1069
1069
  "div",
@@ -1081,8 +1081,8 @@ var Or = [
1081
1081
  "span",
1082
1082
  "svg",
1083
1083
  "ul"
1084
- ], Te = Or.reduce((e, r) => {
1085
- const t = /* @__PURE__ */ jt(`Primitive.${r}`), o = O.forwardRef((n, s) => {
1084
+ ], Te = Er.reduce((e, r) => {
1085
+ const t = /* @__PURE__ */ Tt(`Primitive.${r}`), o = O.forwardRef((n, s) => {
1086
1086
  const { asChild: d, ...f } = n, u = d ? t : r;
1087
1087
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ L.jsx(u, { ...f, ref: s });
1088
1088
  });
@@ -1098,7 +1098,7 @@ var Or = [
1098
1098
  * LICENSE file in the root directory of this source tree.
1099
1099
  */
1100
1100
  var it;
1101
- function Er() {
1101
+ function Rr() {
1102
1102
  if (it) return Pe;
1103
1103
  it = 1;
1104
1104
  var e = N;
@@ -1149,7 +1149,7 @@ var lt = {};
1149
1149
  * LICENSE file in the root directory of this source tree.
1150
1150
  */
1151
1151
  var ct;
1152
- function Rr() {
1152
+ function Nr() {
1153
1153
  return ct || (ct = 1, process.env.NODE_ENV !== "production" && (function() {
1154
1154
  function e(p, b) {
1155
1155
  return p === b && (p !== 0 || 1 / p === 1 / b) || p !== p && b !== b;
@@ -1202,26 +1202,26 @@ function Rr() {
1202
1202
  })()), lt;
1203
1203
  }
1204
1204
  var ut;
1205
- function Nr() {
1206
- return ut || (ut = 1, process.env.NODE_ENV === "production" ? De.exports = Er() : De.exports = Rr()), De.exports;
1205
+ function jr() {
1206
+ return ut || (ut = 1, process.env.NODE_ENV === "production" ? De.exports = Rr() : De.exports = Nr()), De.exports;
1207
1207
  }
1208
- var jr = Nr();
1209
- function Tr() {
1210
- return jr.useSyncExternalStore(
1211
- Ar,
1208
+ var Tr = jr();
1209
+ function Ar() {
1210
+ return Tr.useSyncExternalStore(
1211
+ Cr,
1212
1212
  () => !0,
1213
1213
  () => !1
1214
1214
  );
1215
1215
  }
1216
- function Ar() {
1216
+ function Cr() {
1217
1217
  return () => {
1218
1218
  };
1219
1219
  }
1220
- var We = "Avatar", [Cr, an] = pr(We), [Dr, At] = Cr(We), Pr = O.forwardRef(
1220
+ var We = "Avatar", [Dr, an] = mr(We), [Pr, Ct] = Dr(We), Lr = O.forwardRef(
1221
1221
  (e, r) => {
1222
1222
  const { __scopeAvatar: t, ...o } = e, [n, s] = O.useState("idle");
1223
1223
  return /* @__PURE__ */ L.jsx(
1224
- Dr,
1224
+ Pr,
1225
1225
  {
1226
1226
  scope: t,
1227
1227
  imageLoadingStatus: n,
@@ -1231,11 +1231,11 @@ var We = "Avatar", [Cr, an] = pr(We), [Dr, At] = Cr(We), Pr = O.forwardRef(
1231
1231
  );
1232
1232
  }
1233
1233
  );
1234
- Pr.displayName = We;
1235
- var Ct = "AvatarImage", Lr = O.forwardRef(
1234
+ Lr.displayName = We;
1235
+ var Dt = "AvatarImage", Mr = O.forwardRef(
1236
1236
  (e, r) => {
1237
1237
  const { __scopeAvatar: t, src: o, onLoadingStatusChange: n = () => {
1238
- }, ...s } = e, d = At(Ct, t), f = Vr(o, s), u = gr((l) => {
1238
+ }, ...s } = e, d = Ct(Dt, t), f = zr(o, s), u = hr((l) => {
1239
1239
  n(l), d.onImageLoadingStatusChange(l);
1240
1240
  });
1241
1241
  return Fe(() => {
@@ -1243,10 +1243,10 @@ var Ct = "AvatarImage", Lr = O.forwardRef(
1243
1243
  }, [f, u]), f === "loaded" ? /* @__PURE__ */ L.jsx(Te.img, { ...s, ref: r, src: o }) : null;
1244
1244
  }
1245
1245
  );
1246
- Lr.displayName = Ct;
1247
- var Dt = "AvatarFallback", Mr = O.forwardRef(
1246
+ Mr.displayName = Dt;
1247
+ var Pt = "AvatarFallback", Vr = O.forwardRef(
1248
1248
  (e, r) => {
1249
- const { __scopeAvatar: t, delayMs: o, ...n } = e, s = At(Dt, t), [d, f] = O.useState(o === void 0);
1249
+ const { __scopeAvatar: t, delayMs: o, ...n } = e, s = Ct(Pt, t), [d, f] = O.useState(o === void 0);
1250
1250
  return O.useEffect(() => {
1251
1251
  if (o !== void 0) {
1252
1252
  const u = window.setTimeout(() => f(!0), o);
@@ -1255,12 +1255,12 @@ var Dt = "AvatarFallback", Mr = O.forwardRef(
1255
1255
  }, [o]), d && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ L.jsx(Te.span, { ...n, ref: r }) : null;
1256
1256
  }
1257
1257
  );
1258
- Mr.displayName = Dt;
1258
+ Vr.displayName = Pt;
1259
1259
  function dt(e, r) {
1260
1260
  return e ? r ? (e.src !== r && (e.src = r), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
1261
1261
  }
1262
- function Vr(e, { referrerPolicy: r, crossOrigin: t }) {
1263
- const o = Tr(), n = O.useRef(null), s = o ? (n.current || (n.current = new window.Image()), n.current) : null, [d, f] = O.useState(
1262
+ function zr(e, { referrerPolicy: r, crossOrigin: t }) {
1263
+ const o = Ar(), n = O.useRef(null), s = o ? (n.current || (n.current = new window.Image()), n.current) : null, [d, f] = O.useState(
1264
1264
  () => dt(s, e)
1265
1265
  );
1266
1266
  return Fe(() => {
@@ -1276,38 +1276,38 @@ function Vr(e, { referrerPolicy: r, crossOrigin: t }) {
1276
1276
  };
1277
1277
  }, [s, t, r]), d;
1278
1278
  }
1279
- function Pt(e) {
1279
+ function Lt(e) {
1280
1280
  var r, t, o = "";
1281
1281
  if (typeof e == "string" || typeof e == "number") o += e;
1282
1282
  else if (typeof e == "object") if (Array.isArray(e)) {
1283
1283
  var n = e.length;
1284
- for (r = 0; r < n; r++) e[r] && (t = Pt(e[r])) && (o && (o += " "), o += t);
1284
+ for (r = 0; r < n; r++) e[r] && (t = Lt(e[r])) && (o && (o += " "), o += t);
1285
1285
  } else for (t in e) e[t] && (o && (o += " "), o += t);
1286
1286
  return o;
1287
1287
  }
1288
- function Lt() {
1289
- for (var e, r, t = 0, o = "", n = arguments.length; t < n; t++) (e = arguments[t]) && (r = Pt(e)) && (o && (o += " "), o += r);
1288
+ function Mt() {
1289
+ for (var e, r, t = 0, o = "", n = arguments.length; t < n; t++) (e = arguments[t]) && (r = Lt(e)) && (o && (o += " "), o += r);
1290
1290
  return o;
1291
1291
  }
1292
- const Ke = "-", zr = (e) => {
1293
- const r = $r(e), {
1292
+ const Ke = "-", Ir = (e) => {
1293
+ const r = Fr(e), {
1294
1294
  conflictingClassGroups: t,
1295
1295
  conflictingClassGroupModifiers: o
1296
1296
  } = e;
1297
1297
  return {
1298
1298
  getClassGroupId: (n) => {
1299
1299
  const s = n.split(Ke);
1300
- return s[0] === "" && s.length !== 1 && s.shift(), Mt(s, r) || Ir(n);
1300
+ return s[0] === "" && s.length !== 1 && s.shift(), Vt(s, r) || $r(n);
1301
1301
  },
1302
1302
  getConflictingClassGroupIds: (n, s) => {
1303
1303
  const d = t[n] || [];
1304
1304
  return s && o[n] ? [...d, ...o[n]] : d;
1305
1305
  }
1306
1306
  };
1307
- }, Mt = (e, r) => {
1307
+ }, Vt = (e, r) => {
1308
1308
  if (e.length === 0)
1309
1309
  return r.classGroupId;
1310
- const t = e[0], o = r.nextPart.get(t), n = o ? Mt(e.slice(1), o) : void 0;
1310
+ const t = e[0], o = r.nextPart.get(t), n = o ? Vt(e.slice(1), o) : void 0;
1311
1311
  if (n)
1312
1312
  return n;
1313
1313
  if (r.validators.length === 0)
@@ -1316,13 +1316,13 @@ const Ke = "-", zr = (e) => {
1316
1316
  return r.validators.find(({
1317
1317
  validator: d
1318
1318
  }) => d(s))?.classGroupId;
1319
- }, ft = /^\[(.+)\]$/, Ir = (e) => {
1319
+ }, ft = /^\[(.+)\]$/, $r = (e) => {
1320
1320
  if (ft.test(e)) {
1321
1321
  const r = ft.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
1322
1322
  if (t)
1323
1323
  return "arbitrary.." + t;
1324
1324
  }
1325
- }, $r = (e) => {
1325
+ }, Fr = (e) => {
1326
1326
  const {
1327
1327
  theme: r,
1328
1328
  classGroups: t
@@ -1341,7 +1341,7 @@ const Ke = "-", zr = (e) => {
1341
1341
  return;
1342
1342
  }
1343
1343
  if (typeof n == "function") {
1344
- if (Fr(n)) {
1344
+ if (Gr(n)) {
1345
1345
  Ge(n(o), r, t, o);
1346
1346
  return;
1347
1347
  }
@@ -1363,7 +1363,7 @@ const Ke = "-", zr = (e) => {
1363
1363
  validators: []
1364
1364
  }), t = t.nextPart.get(o);
1365
1365
  }), t;
1366
- }, Fr = (e) => e.isThemeGetter, Gr = (e) => {
1366
+ }, Gr = (e) => e.isThemeGetter, Ur = (e) => {
1367
1367
  if (e < 1)
1368
1368
  return {
1369
1369
  get: () => {
@@ -1387,7 +1387,7 @@ const Ke = "-", zr = (e) => {
1387
1387
  t.has(s) ? t.set(s, d) : n(s, d);
1388
1388
  }
1389
1389
  };
1390
- }, Ue = "!", He = ":", Ur = He.length, Hr = (e) => {
1390
+ }, Ue = "!", He = ":", Hr = He.length, Br = (e) => {
1391
1391
  const {
1392
1392
  prefix: r,
1393
1393
  experimentalParseClassName: t
@@ -1399,7 +1399,7 @@ const Ke = "-", zr = (e) => {
1399
1399
  let v = n[b];
1400
1400
  if (d === 0 && f === 0) {
1401
1401
  if (v === He) {
1402
- s.push(n.slice(u, b)), u = b + Ur;
1402
+ s.push(n.slice(u, b)), u = b + Hr;
1403
1403
  continue;
1404
1404
  }
1405
1405
  if (v === "/") {
@@ -1409,7 +1409,7 @@ const Ke = "-", zr = (e) => {
1409
1409
  }
1410
1410
  v === "[" ? d++ : v === "]" ? d-- : v === "(" ? f++ : v === ")" && f--;
1411
1411
  }
1412
- const m = s.length === 0 ? n : n.substring(u), c = Br(m), i = c !== m, p = l && l > u ? l - u : void 0;
1412
+ const m = s.length === 0 ? n : n.substring(u), c = Yr(m), i = c !== m, p = l && l > u ? l - u : void 0;
1413
1413
  return {
1414
1414
  modifiers: s,
1415
1415
  hasImportantModifier: i,
@@ -1435,7 +1435,7 @@ const Ke = "-", zr = (e) => {
1435
1435
  });
1436
1436
  }
1437
1437
  return o;
1438
- }, Br = (e) => e.endsWith(Ue) ? e.substring(0, e.length - 1) : e.startsWith(Ue) ? e.substring(1) : e, Yr = (e) => {
1438
+ }, Yr = (e) => e.endsWith(Ue) ? e.substring(0, e.length - 1) : e.startsWith(Ue) ? e.substring(1) : e, Wr = (e) => {
1439
1439
  const r = Object.fromEntries(e.orderSensitiveModifiers.map((t) => [t, !0]));
1440
1440
  return (t) => {
1441
1441
  if (t.length <= 1)
@@ -1446,18 +1446,18 @@ const Ke = "-", zr = (e) => {
1446
1446
  s[0] === "[" || r[s] ? (o.push(...n.sort(), s), n = []) : n.push(s);
1447
1447
  }), o.push(...n.sort()), o;
1448
1448
  };
1449
- }, Wr = (e) => ({
1450
- cache: Gr(e.cacheSize),
1451
- parseClassName: Hr(e),
1452
- sortModifiers: Yr(e),
1453
- ...zr(e)
1454
- }), Kr = /\s+/, qr = (e, r) => {
1449
+ }, Kr = (e) => ({
1450
+ cache: Ur(e.cacheSize),
1451
+ parseClassName: Br(e),
1452
+ sortModifiers: Wr(e),
1453
+ ...Ir(e)
1454
+ }), qr = /\s+/, Xr = (e, r) => {
1455
1455
  const {
1456
1456
  parseClassName: t,
1457
1457
  getClassGroupId: o,
1458
1458
  getConflictingClassGroupIds: n,
1459
1459
  sortModifiers: s
1460
- } = r, d = [], f = e.trim().split(Kr);
1460
+ } = r, d = [], f = e.trim().split(qr);
1461
1461
  let u = "";
1462
1462
  for (let l = f.length - 1; l >= 0; l -= 1) {
1463
1463
  const m = f[l], {
@@ -1496,52 +1496,52 @@ const Ke = "-", zr = (e) => {
1496
1496
  }
1497
1497
  return u;
1498
1498
  };
1499
- function Xr() {
1499
+ function Jr() {
1500
1500
  let e = 0, r, t, o = "";
1501
1501
  for (; e < arguments.length; )
1502
- (r = arguments[e++]) && (t = Vt(r)) && (o && (o += " "), o += t);
1502
+ (r = arguments[e++]) && (t = zt(r)) && (o && (o += " "), o += t);
1503
1503
  return o;
1504
1504
  }
1505
- const Vt = (e) => {
1505
+ const zt = (e) => {
1506
1506
  if (typeof e == "string")
1507
1507
  return e;
1508
1508
  let r, t = "";
1509
1509
  for (let o = 0; o < e.length; o++)
1510
- e[o] && (r = Vt(e[o])) && (t && (t += " "), t += r);
1510
+ e[o] && (r = zt(e[o])) && (t && (t += " "), t += r);
1511
1511
  return t;
1512
1512
  };
1513
- function Jr(e, ...r) {
1513
+ function Zr(e, ...r) {
1514
1514
  let t, o, n, s = d;
1515
1515
  function d(u) {
1516
1516
  const l = r.reduce((m, c) => c(m), e());
1517
- return t = Wr(l), o = t.cache.get, n = t.cache.set, s = f, f(u);
1517
+ return t = Kr(l), o = t.cache.get, n = t.cache.set, s = f, f(u);
1518
1518
  }
1519
1519
  function f(u) {
1520
1520
  const l = o(u);
1521
1521
  if (l)
1522
1522
  return l;
1523
- const m = qr(u, t);
1523
+ const m = Xr(u, t);
1524
1524
  return n(u, m), m;
1525
1525
  }
1526
1526
  return function() {
1527
- return s(Xr.apply(null, arguments));
1527
+ return s(Jr.apply(null, arguments));
1528
1528
  };
1529
1529
  }
1530
1530
  const M = (e) => {
1531
1531
  const r = (t) => t[e] || [];
1532
1532
  return r.isThemeGetter = !0, r;
1533
- }, zt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, It = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Zr = /^\d+\/\d+$/, Qr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, eo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, to = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ro = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, oo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, fe = (e) => Zr.test(e), S = (e) => !!e && !Number.isNaN(Number(e)), ne = (e) => !!e && Number.isInteger(Number(e)), Le = (e) => e.endsWith("%") && S(e.slice(0, -1)), te = (e) => Qr.test(e), no = () => !0, so = (e) => (
1533
+ }, It = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $t = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Qr = /^\d+\/\d+$/, eo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, to = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ro = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, oo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, no = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, fe = (e) => Qr.test(e), S = (e) => !!e && !Number.isNaN(Number(e)), ne = (e) => !!e && Number.isInteger(Number(e)), Le = (e) => e.endsWith("%") && S(e.slice(0, -1)), te = (e) => eo.test(e), so = () => !0, ao = (e) => (
1534
1534
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1535
1535
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1536
1536
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1537
- eo.test(e) && !to.test(e)
1538
- ), $t = () => !1, ao = (e) => ro.test(e), io = (e) => oo.test(e), lo = (e) => !h(e) && !y(e), co = (e) => me(e, Ut, $t), h = (e) => zt.test(e), ae = (e) => me(e, Ht, so), Me = (e) => me(e, go, S), mt = (e) => me(e, Ft, $t), uo = (e) => me(e, Gt, io), Oe = (e) => me(e, Bt, ao), y = (e) => It.test(e), ve = (e) => ge(e, Ht), fo = (e) => ge(e, ho), gt = (e) => ge(e, Ft), po = (e) => ge(e, Ut), mo = (e) => ge(e, Gt), Ee = (e) => ge(e, Bt, !0), me = (e, r, t) => {
1539
- const o = zt.exec(e);
1537
+ to.test(e) && !ro.test(e)
1538
+ ), Ft = () => !1, io = (e) => oo.test(e), lo = (e) => no.test(e), co = (e) => !h(e) && !y(e), uo = (e) => me(e, Ht, Ft), h = (e) => It.test(e), ae = (e) => me(e, Bt, ao), Me = (e) => me(e, ho, S), mt = (e) => me(e, Gt, Ft), fo = (e) => me(e, Ut, lo), Oe = (e) => me(e, Yt, io), y = (e) => $t.test(e), ve = (e) => ge(e, Bt), po = (e) => ge(e, yo), gt = (e) => ge(e, Gt), mo = (e) => ge(e, Ht), go = (e) => ge(e, Ut), Ee = (e) => ge(e, Yt, !0), me = (e, r, t) => {
1539
+ const o = It.exec(e);
1540
1540
  return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
1541
1541
  }, ge = (e, r, t = !1) => {
1542
- const o = It.exec(e);
1542
+ const o = $t.exec(e);
1543
1543
  return o ? o[1] ? r(o[1]) : t : !1;
1544
- }, Ft = (e) => e === "position" || e === "percentage", Gt = (e) => e === "image" || e === "url", Ut = (e) => e === "length" || e === "size" || e === "bg-size", Ht = (e) => e === "length", go = (e) => e === "number", ho = (e) => e === "family-name", Bt = (e) => e === "shadow", yo = () => {
1544
+ }, Gt = (e) => e === "position" || e === "percentage", Ut = (e) => e === "image" || e === "url", Ht = (e) => e === "length" || e === "size" || e === "bg-size", Bt = (e) => e === "length", ho = (e) => e === "number", yo = (e) => e === "family-name", Yt = (e) => e === "shadow", bo = () => {
1545
1545
  const e = M("color"), r = M("font"), t = M("text"), o = M("font-weight"), n = M("tracking"), s = M("leading"), d = M("breakpoint"), f = M("container"), u = M("spacing"), l = M("radius"), m = M("shadow"), c = M("inset-shadow"), i = M("text-shadow"), p = M("drop-shadow"), b = M("blur"), v = M("perspective"), R = M("aspect"), D = M("ease"), F = M("animate"), P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [
1546
1546
  "center",
1547
1547
  "top",
@@ -1566,7 +1566,7 @@ const M = (e) => {
1566
1566
  position: [y, h]
1567
1567
  }], a = () => ["no-repeat", {
1568
1568
  repeat: ["", "x", "y", "space", "round"]
1569
- }], g = () => ["auto", "cover", "contain", po, co, {
1569
+ }], g = () => ["auto", "cover", "contain", mo, uo, {
1570
1570
  size: [y, h]
1571
1571
  }], w = () => [Le, ve, ae], k = () => [
1572
1572
  // Deprecated since Tailwind CSS v4.0.0
@@ -1591,11 +1591,11 @@ const M = (e) => {
1591
1591
  aspect: ["video"],
1592
1592
  blur: [te],
1593
1593
  breakpoint: [te],
1594
- color: [no],
1594
+ color: [so],
1595
1595
  container: [te],
1596
1596
  "drop-shadow": [te],
1597
1597
  ease: ["in", "out", "in-out"],
1598
- font: [lo],
1598
+ font: [co],
1599
1599
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1600
1600
  "inset-shadow": [te],
1601
1601
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -2307,7 +2307,7 @@ const M = (e) => {
2307
2307
  * @see https://tailwindcss.com/docs/font-family
2308
2308
  */
2309
2309
  "font-family": [{
2310
- font: [fo, h, r]
2310
+ font: [po, h, r]
2311
2311
  }],
2312
2312
  /**
2313
2313
  * Font Variant Numeric
@@ -2562,7 +2562,7 @@ const M = (e) => {
2562
2562
  }, ne, y, h],
2563
2563
  radial: ["", y, h],
2564
2564
  conic: [ne, y, h]
2565
- }, mo, uo]
2565
+ }, go, fo]
2566
2566
  }],
2567
2567
  /**
2568
2568
  * Background Color
@@ -4011,11 +4011,11 @@ const M = (e) => {
4011
4011
  },
4012
4012
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
4013
4013
  };
4014
- }, bo = /* @__PURE__ */ Jr(yo);
4014
+ }, vo = /* @__PURE__ */ Zr(bo);
4015
4015
  function re(...e) {
4016
- return bo(Lt(e));
4016
+ return vo(Mt(e));
4017
4017
  }
4018
- const ht = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, yt = Lt, vo = (e, r) => (t) => {
4018
+ const ht = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, yt = Mt, xo = (e, r) => (t) => {
4019
4019
  var o;
4020
4020
  if (r?.variants == null) return yt(e, t?.class, t?.className);
4021
4021
  const { variants: n, defaultVariants: s } = r, d = Object.keys(n).map((l) => {
@@ -4044,7 +4044,7 @@ const ht = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, yt = Lt, v
4044
4044
  ] : l;
4045
4045
  }, []);
4046
4046
  return yt(e, d, u, t?.class, t?.className);
4047
- }, xo = vo(
4047
+ }, _o = xo(
4048
4048
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
4049
4049
  {
4050
4050
  variants: {
@@ -4069,24 +4069,24 @@ const ht = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, yt = Lt, v
4069
4069
  }
4070
4070
  }
4071
4071
  );
4072
- function _o({
4072
+ function wo({
4073
4073
  className: e,
4074
4074
  variant: r,
4075
4075
  size: t,
4076
4076
  asChild: o = !1,
4077
4077
  ...n
4078
4078
  }) {
4079
- const s = o ? Tt : "button";
4079
+ const s = o ? At : "button";
4080
4080
  return /* @__PURE__ */ L.jsx(
4081
4081
  s,
4082
4082
  {
4083
4083
  "data-slot": "button",
4084
- className: re(xo({ variant: r, size: t, className: e })),
4084
+ className: re(_o({ variant: r, size: t, className: e })),
4085
4085
  ...n
4086
4086
  }
4087
4087
  );
4088
4088
  }
4089
- function wo({ className: e, ...r }) {
4089
+ function ko({ className: e, ...r }) {
4090
4090
  return /* @__PURE__ */ L.jsx(
4091
4091
  "div",
4092
4092
  {
@@ -4099,7 +4099,7 @@ function wo({ className: e, ...r }) {
4099
4099
  }
4100
4100
  );
4101
4101
  }
4102
- function ko({ className: e, ...r }) {
4102
+ function So({ className: e, ...r }) {
4103
4103
  return /* @__PURE__ */ L.jsx(
4104
4104
  "div",
4105
4105
  {
@@ -4112,7 +4112,7 @@ function ko({ className: e, ...r }) {
4112
4112
  }
4113
4113
  );
4114
4114
  }
4115
- function So({ className: e, ...r }) {
4115
+ function Oo({ className: e, ...r }) {
4116
4116
  return /* @__PURE__ */ L.jsx(
4117
4117
  "div",
4118
4118
  {
@@ -4122,7 +4122,7 @@ function So({ className: e, ...r }) {
4122
4122
  }
4123
4123
  );
4124
4124
  }
4125
- function Oo({ className: e, ...r }) {
4125
+ function Eo({ className: e, ...r }) {
4126
4126
  return /* @__PURE__ */ L.jsx(
4127
4127
  "div",
4128
4128
  {
@@ -4132,7 +4132,7 @@ function Oo({ className: e, ...r }) {
4132
4132
  }
4133
4133
  );
4134
4134
  }
4135
- function Eo({ className: e, ...r }) {
4135
+ function Ro({ className: e, ...r }) {
4136
4136
  return /* @__PURE__ */ L.jsx(
4137
4137
  "div",
4138
4138
  {
@@ -4142,7 +4142,7 @@ function Eo({ className: e, ...r }) {
4142
4142
  }
4143
4143
  );
4144
4144
  }
4145
- var Ro = "Label", Yt = O.forwardRef((e, r) => /* @__PURE__ */ L.jsx(
4145
+ var No = "Label", Wt = O.forwardRef((e, r) => /* @__PURE__ */ L.jsx(
4146
4146
  Te.label,
4147
4147
  {
4148
4148
  ...e,
@@ -4152,36 +4152,36 @@ var Ro = "Label", Yt = O.forwardRef((e, r) => /* @__PURE__ */ L.jsx(
4152
4152
  }
4153
4153
  }
4154
4154
  ));
4155
- Yt.displayName = Ro;
4156
- var No = Yt, jo = (e) => e.type === "checkbox", xe = (e) => e instanceof Date, qe = (e) => e == null;
4157
- const Wt = (e) => typeof e == "object";
4158
- var ce = (e) => !qe(e) && !Array.isArray(e) && Wt(e) && !xe(e), To = (e) => ce(e) && e.target ? jo(e.target) ? e.target.checked : e.target.value : e, Ao = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Co = (e, r) => e.has(Ao(r)), Do = (e) => {
4155
+ Wt.displayName = No;
4156
+ var jo = Wt, To = (e) => e.type === "checkbox", xe = (e) => e instanceof Date, qe = (e) => e == null;
4157
+ const Kt = (e) => typeof e == "object";
4158
+ var ce = (e) => !qe(e) && !Array.isArray(e) && Kt(e) && !xe(e), Ao = (e) => ce(e) && e.target ? To(e.target) ? e.target.checked : e.target.value : e, Co = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Do = (e, r) => e.has(Co(r)), Po = (e) => {
4159
4159
  const r = e.constructor && e.constructor.prototype;
4160
4160
  return ce(r) && r.hasOwnProperty("isPrototypeOf");
4161
- }, Po = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
4162
- function Kt(e) {
4161
+ }, Lo = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
4162
+ function qt(e) {
4163
4163
  let r;
4164
4164
  const t = Array.isArray(e), o = typeof FileList < "u" ? e instanceof FileList : !1;
4165
4165
  if (e instanceof Date)
4166
4166
  r = new Date(e);
4167
- else if (!(Po && (e instanceof Blob || o)) && (t || ce(e)))
4168
- if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Do(e))
4167
+ else if (!(Lo && (e instanceof Blob || o)) && (t || ce(e)))
4168
+ if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Po(e))
4169
4169
  r = e;
4170
4170
  else
4171
4171
  for (const n in e)
4172
- e.hasOwnProperty(n) && (r[n] = Kt(e[n]));
4172
+ e.hasOwnProperty(n) && (r[n] = qt(e[n]));
4173
4173
  else
4174
4174
  return e;
4175
4175
  return r;
4176
4176
  }
4177
- var qt = (e) => /^\w*$/.test(e), Be = (e) => e === void 0, Lo = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Xt = (e) => Lo(e.replace(/["|']|\]/g, "").split(/\.|\[/)), B = (e, r, t) => {
4177
+ var Xt = (e) => /^\w*$/.test(e), Be = (e) => e === void 0, Mo = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Jt = (e) => Mo(e.replace(/["|']|\]/g, "").split(/\.|\[/)), B = (e, r, t) => {
4178
4178
  if (!r || !ce(e))
4179
4179
  return t;
4180
- const o = (qt(r) ? [r] : Xt(r)).reduce((n, s) => qe(n) ? n : n[s], e);
4180
+ const o = (Xt(r) ? [r] : Jt(r)).reduce((n, s) => qe(n) ? n : n[s], e);
4181
4181
  return Be(o) || o === e ? Be(e[r]) ? t : e[r] : o;
4182
4182
  }, Ve = (e) => typeof e == "boolean", bt = (e, r, t) => {
4183
4183
  let o = -1;
4184
- const n = qt(r) ? [r] : Xt(r), s = n.length, d = s - 1;
4184
+ const n = Xt(r) ? [r] : Jt(r), s = n.length, d = s - 1;
4185
4185
  for (; ++o < s; ) {
4186
4186
  const f = n[o];
4187
4187
  let u = t;
@@ -4201,11 +4201,11 @@ const vt = {
4201
4201
  all: "all"
4202
4202
  }, Xe = N.createContext(null);
4203
4203
  Xe.displayName = "HookFormContext";
4204
- const Ae = () => N.useContext(Xe), Mo = (e) => {
4204
+ const Ae = () => N.useContext(Xe), Vo = (e) => {
4205
4205
  const { children: r, ...t } = e;
4206
4206
  return N.createElement(Xe.Provider, { value: t }, r);
4207
4207
  };
4208
- var Vo = (e, r, t, o = !0) => {
4208
+ var zo = (e, r, t, o = !0) => {
4209
4209
  const n = {
4210
4210
  defaultValues: r._defaultValues
4211
4211
  };
@@ -4218,8 +4218,8 @@ var Vo = (e, r, t, o = !0) => {
4218
4218
  });
4219
4219
  return n;
4220
4220
  };
4221
- const Jt = typeof window < "u" ? N.useLayoutEffect : N.useEffect;
4222
- function Zt(e) {
4221
+ const Zt = typeof window < "u" ? N.useLayoutEffect : N.useEffect;
4222
+ function Qt(e) {
4223
4223
  const r = Ae(), { control: t = r.control, disabled: o, name: n, exact: s } = e || {}, [d, f] = N.useState(t._formState), u = N.useRef({
4224
4224
  isDirty: !1,
4225
4225
  isLoading: !1,
@@ -4230,7 +4230,7 @@ function Zt(e) {
4230
4230
  isValid: !1,
4231
4231
  errors: !1
4232
4232
  });
4233
- return Jt(() => t._subscribe({
4233
+ return Zt(() => t._subscribe({
4234
4234
  name: n,
4235
4235
  formState: u.current,
4236
4236
  exact: s,
@@ -4242,10 +4242,10 @@ function Zt(e) {
4242
4242
  }
4243
4243
  }), [n, o, s]), N.useEffect(() => {
4244
4244
  u.current.isValid && t._setValid(!0);
4245
- }, [t]), N.useMemo(() => Vo(d, t, u.current, !1), [d, t]);
4245
+ }, [t]), N.useMemo(() => zo(d, t, u.current, !1), [d, t]);
4246
4246
  }
4247
- var zo = (e) => typeof e == "string", Io = (e, r, t, o, n) => zo(e) ? B(t, e, n) : Array.isArray(e) ? e.map((s) => B(t, s)) : t, _t = (e) => qe(e) || !Wt(e);
4248
- function Qt(e, r, t = /* @__PURE__ */ new WeakSet()) {
4247
+ var Io = (e) => typeof e == "string", $o = (e, r, t, o, n) => Io(e) ? B(t, e, n) : Array.isArray(e) ? e.map((s) => B(t, s)) : t, _t = (e) => qe(e) || !Kt(e);
4248
+ function er(e, r, t = /* @__PURE__ */ new WeakSet()) {
4249
4249
  if (_t(e) || _t(r))
4250
4250
  return e === r;
4251
4251
  if (xe(e) && xe(r))
@@ -4262,17 +4262,17 @@ function Qt(e, r, t = /* @__PURE__ */ new WeakSet()) {
4262
4262
  return !1;
4263
4263
  if (s !== "ref") {
4264
4264
  const f = r[s];
4265
- if (xe(d) && xe(f) || ce(d) && ce(f) || Array.isArray(d) && Array.isArray(f) ? !Qt(d, f, t) : d !== f)
4265
+ if (xe(d) && xe(f) || ce(d) && ce(f) || Array.isArray(d) && Array.isArray(f) ? !er(d, f, t) : d !== f)
4266
4266
  return !1;
4267
4267
  }
4268
4268
  }
4269
4269
  return !0;
4270
4270
  }
4271
- function $o(e) {
4271
+ function Fo(e) {
4272
4272
  const r = Ae(), { control: t = r.control, name: o, defaultValue: n, disabled: s, exact: d, compute: f } = e || {}, u = N.useRef(n), l = N.useRef(f), m = N.useRef(void 0);
4273
4273
  l.current = f;
4274
4274
  const c = N.useMemo(() => t._getWatch(o, u.current), [t, o]), [i, p] = N.useState(l.current ? l.current(c) : c);
4275
- return Jt(() => t._subscribe({
4275
+ return Zt(() => t._subscribe({
4276
4276
  name: o,
4277
4277
  formState: {
4278
4278
  values: !0
@@ -4280,23 +4280,23 @@ function $o(e) {
4280
4280
  exact: d,
4281
4281
  callback: (b) => {
4282
4282
  if (!s) {
4283
- const v = Io(o, t._names, b.values || t._formValues, !1, u.current);
4283
+ const v = $o(o, t._names, b.values || t._formValues, !1, u.current);
4284
4284
  if (l.current) {
4285
4285
  const R = l.current(v);
4286
- Qt(R, m.current) || (p(R), m.current = R);
4286
+ er(R, m.current) || (p(R), m.current = R);
4287
4287
  } else
4288
4288
  p(v);
4289
4289
  }
4290
4290
  }
4291
4291
  }), [t, s, o, d]), N.useEffect(() => t._removeUnmounted()), i;
4292
4292
  }
4293
- function Fo(e) {
4294
- const r = Ae(), { name: t, disabled: o, control: n = r.control, shouldUnregister: s, defaultValue: d } = e, f = Co(n._names.array, t), u = N.useMemo(() => B(n._formValues, t, B(n._defaultValues, t, d)), [n, t, d]), l = $o({
4293
+ function Go(e) {
4294
+ const r = Ae(), { name: t, disabled: o, control: n = r.control, shouldUnregister: s, defaultValue: d } = e, f = Do(n._names.array, t), u = N.useMemo(() => B(n._formValues, t, B(n._defaultValues, t, d)), [n, t, d]), l = Fo({
4295
4295
  control: n,
4296
4296
  name: t,
4297
4297
  defaultValue: u,
4298
4298
  exact: !0
4299
- }), m = Zt({
4299
+ }), m = Qt({
4300
4300
  control: n,
4301
4301
  name: t,
4302
4302
  exact: !0
@@ -4329,7 +4329,7 @@ function Fo(e) {
4329
4329
  }
4330
4330
  }), [m, t]), v = N.useCallback((P) => p.current.onChange({
4331
4331
  target: {
4332
- value: To(P),
4332
+ value: Ao(P),
4333
4333
  name: t
4334
4334
  },
4335
4335
  type: vt.CHANGE
@@ -4366,7 +4366,7 @@ function Fo(e) {
4366
4366
  _ && _._f && (_._f.mount = X);
4367
4367
  };
4368
4368
  if (G(t, !0), P) {
4369
- const I = Kt(B(n._options.defaultValues, t));
4369
+ const I = qt(B(n._options.defaultValues, t));
4370
4370
  bt(n._defaultValues, t, I), Be(B(n._formValues, t)) && bt(n._formValues, t, I);
4371
4371
  }
4372
4372
  return !f && n.register(t), i.current = t, () => {
@@ -4383,13 +4383,13 @@ function Fo(e) {
4383
4383
  fieldState: b
4384
4384
  }), [F, m, b]);
4385
4385
  }
4386
- const Go = (e) => e.render(Fo(e));
4387
- function Uo({
4386
+ const Uo = (e) => e.render(Go(e));
4387
+ function wt({
4388
4388
  className: e,
4389
4389
  ...r
4390
4390
  }) {
4391
4391
  return /* @__PURE__ */ L.jsx(
4392
- No,
4392
+ jo,
4393
4393
  {
4394
4394
  "data-slot": "label",
4395
4395
  className: re(
@@ -4400,12 +4400,12 @@ function Uo({
4400
4400
  }
4401
4401
  );
4402
4402
  }
4403
- const Ho = Mo, er = O.createContext(
4403
+ const Ho = Vo, tr = O.createContext(
4404
4404
  {}
4405
- ), wt = ({
4405
+ ), kt = ({
4406
4406
  ...e
4407
- }) => /* @__PURE__ */ L.jsx(er.Provider, { value: { name: e.name }, children: /* @__PURE__ */ L.jsx(Go, { ...e }) }), Bo = () => {
4408
- const e = O.useContext(er), r = O.useContext(tr), { getFieldState: t } = Ae(), o = Zt({ name: e.name }), n = t(e.name, o);
4407
+ }) => /* @__PURE__ */ L.jsx(tr.Provider, { value: { name: e.name }, children: /* @__PURE__ */ L.jsx(Uo, { ...e }) }), Bo = () => {
4408
+ const e = O.useContext(tr), r = O.useContext(rr), { getFieldState: t } = Ae(), o = Qt({ name: e.name }), n = t(e.name, o);
4409
4409
  if (!e)
4410
4410
  throw new Error("useFormField should be used within <FormField>");
4411
4411
  const { id: s } = r;
@@ -4417,12 +4417,12 @@ const Ho = Mo, er = O.createContext(
4417
4417
  formMessageId: `${s}-form-item-message`,
4418
4418
  ...n
4419
4419
  };
4420
- }, tr = O.createContext(
4420
+ }, rr = O.createContext(
4421
4421
  {}
4422
4422
  );
4423
- function kt({ className: e, ...r }) {
4423
+ function St({ className: e, ...r }) {
4424
4424
  const t = O.useId();
4425
- return /* @__PURE__ */ L.jsx(tr.Provider, { value: { id: t }, children: /* @__PURE__ */ L.jsx(
4425
+ return /* @__PURE__ */ L.jsx(rr.Provider, { value: { id: t }, children: /* @__PURE__ */ L.jsx(
4426
4426
  "div",
4427
4427
  {
4428
4428
  "data-slot": "form-item",
@@ -4431,10 +4431,10 @@ function kt({ className: e, ...r }) {
4431
4431
  }
4432
4432
  ) });
4433
4433
  }
4434
- function St({ ...e }) {
4434
+ function Ot({ ...e }) {
4435
4435
  const { error: r, formItemId: t, formDescriptionId: o, formMessageId: n } = Bo();
4436
4436
  return /* @__PURE__ */ L.jsx(
4437
- Tt,
4437
+ At,
4438
4438
  {
4439
4439
  "data-slot": "form-control",
4440
4440
  id: t,
@@ -4444,7 +4444,7 @@ function St({ ...e }) {
4444
4444
  }
4445
4445
  );
4446
4446
  }
4447
- function Ot({ className: e, type: r, ...t }) {
4447
+ function Et({ className: e, type: r, ...t }) {
4448
4448
  return /* @__PURE__ */ L.jsx(
4449
4449
  "input",
4450
4450
  {
@@ -4469,10 +4469,10 @@ function Ot({ className: e, type: r, ...t }) {
4469
4469
  const Yo = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Wo = (e) => e.replace(
4470
4470
  /^([A-Z])|[\s-_]+(\w)/g,
4471
4471
  (r, t, o) => o ? o.toUpperCase() : t.toLowerCase()
4472
- ), Et = (e) => {
4472
+ ), Rt = (e) => {
4473
4473
  const r = Wo(e);
4474
4474
  return r.charAt(0).toUpperCase() + r.slice(1);
4475
- }, rr = (...e) => e.filter((r, t, o) => !!r && r.trim() !== "" && o.indexOf(r) === t).join(" ").trim(), Ko = (e) => {
4475
+ }, or = (...e) => e.filter((r, t, o) => !!r && r.trim() !== "" && o.indexOf(r) === t).join(" ").trim(), Ko = (e) => {
4476
4476
  for (const r in e)
4477
4477
  if (r.startsWith("aria-") || r === "role" || r === "title")
4478
4478
  return !0;
@@ -4500,7 +4500,7 @@ var qo = {
4500
4500
  * This source code is licensed under the ISC license.
4501
4501
  * See the LICENSE file in the root directory of this source tree.
4502
4502
  */
4503
- const Xo = Nt(
4503
+ const Xo = jt(
4504
4504
  ({
4505
4505
  color: e = "currentColor",
4506
4506
  size: r = 24,
@@ -4519,7 +4519,7 @@ const Xo = Nt(
4519
4519
  height: r,
4520
4520
  stroke: e,
4521
4521
  strokeWidth: o ? Number(t) * 24 / Number(r) : t,
4522
- className: rr("lucide", n),
4522
+ className: or("lucide", n),
4523
4523
  ...!s && !Ko(f) && { "aria-hidden": "true" },
4524
4524
  ...f
4525
4525
  },
@@ -4535,20 +4535,20 @@ const Xo = Nt(
4535
4535
  * This source code is licensed under the ISC license.
4536
4536
  * See the LICENSE file in the root directory of this source tree.
4537
4537
  */
4538
- const or = (e, r) => {
4539
- const t = Nt(
4538
+ const nr = (e, r) => {
4539
+ const t = jt(
4540
4540
  ({ className: o, ...n }, s) => $e(Xo, {
4541
4541
  ref: s,
4542
4542
  iconNode: r,
4543
- className: rr(
4544
- `lucide-${Yo(Et(e))}`,
4543
+ className: or(
4544
+ `lucide-${Yo(Rt(e))}`,
4545
4545
  `lucide-${e}`,
4546
4546
  o
4547
4547
  ),
4548
4548
  ...n
4549
4549
  })
4550
4550
  );
4551
- return t.displayName = Et(e), t;
4551
+ return t.displayName = Rt(e), t;
4552
4552
  };
4553
4553
  /**
4554
4554
  * @license lucide-react v0.544.0 - ISC
@@ -4573,7 +4573,7 @@ const Jo = [
4573
4573
  }
4574
4574
  ],
4575
4575
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
4576
- ], Zo = or("eye-off", Jo);
4576
+ ], Zo = nr("eye-off", Jo);
4577
4577
  /**
4578
4578
  * @license lucide-react v0.544.0 - ISC
4579
4579
  *
@@ -4589,24 +4589,24 @@ const Qo = [
4589
4589
  }
4590
4590
  ],
4591
4591
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
4592
- ], en = or("eye", Qo);
4592
+ ], en = nr("eye", Qo);
4593
4593
  function ln(e) {
4594
- const [r, t] = ar(!1);
4595
- return /* @__PURE__ */ C.jsx("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ C.jsxs(wo, { children: [
4596
- /* @__PURE__ */ C.jsxs(ko, { children: [
4597
- /* @__PURE__ */ C.jsx(So, { className: "text-2xl", children: e.loginFormTitle }),
4598
- /* @__PURE__ */ C.jsx(Oo, { children: e.loginFormDescription })
4594
+ const [r, t] = ir(!1);
4595
+ return /* @__PURE__ */ C.jsx("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ C.jsxs(ko, { children: [
4596
+ /* @__PURE__ */ C.jsxs(So, { children: [
4597
+ /* @__PURE__ */ C.jsx(Oo, { className: "text-2xl", children: e.loginFormTitle }),
4598
+ /* @__PURE__ */ C.jsx(Eo, { children: e.loginFormDescription })
4599
4599
  ] }),
4600
- /* @__PURE__ */ C.jsx(Eo, { children: /* @__PURE__ */ C.jsx(Ho, { ...e.form, children: /* @__PURE__ */ C.jsx("form", { onSubmit: e.form.handleSubmit(e.submit), children: /* @__PURE__ */ C.jsxs("div", { className: "flex flex-col gap-6", children: [
4600
+ /* @__PURE__ */ C.jsx(Ro, { children: /* @__PURE__ */ C.jsx(Ho, { ...e.form, children: /* @__PURE__ */ C.jsx("form", { onSubmit: e.form.handleSubmit(e.submit), children: /* @__PURE__ */ C.jsxs("div", { className: "flex flex-col gap-6", children: [
4601
4601
  /* @__PURE__ */ C.jsxs("div", { className: "grid gap-2", children: [
4602
- /* @__PURE__ */ C.jsx(Uo, { htmlFor: "email", children: e.emailLabel }),
4602
+ /* @__PURE__ */ C.jsx(wt, { htmlFor: "email", children: e.emailLabel }),
4603
4603
  /* @__PURE__ */ C.jsx(
4604
- wt,
4604
+ kt,
4605
4605
  {
4606
4606
  control: e.form.control,
4607
4607
  name: "email",
4608
- render: ({ field: o }) => /* @__PURE__ */ C.jsx(kt, { children: /* @__PURE__ */ C.jsx(St, { children: /* @__PURE__ */ C.jsx(
4609
- Ot,
4608
+ render: ({ field: o }) => /* @__PURE__ */ C.jsx(St, { children: /* @__PURE__ */ C.jsx(Ot, { children: /* @__PURE__ */ C.jsx(
4609
+ Et,
4610
4610
  {
4611
4611
  id: "email",
4612
4612
  type: "email",
@@ -4619,13 +4619,16 @@ function ln(e) {
4619
4619
  )
4620
4620
  ] }),
4621
4621
  /* @__PURE__ */ C.jsxs("div", { className: "grid gap-2", children: [
4622
- e.resetPasswordLinkComponent ? e.resetPasswordLinkComponent() : null,
4622
+ /* @__PURE__ */ C.jsxs("div", { className: "flex items-center", children: [
4623
+ /* @__PURE__ */ C.jsx(wt, { htmlFor: "password", children: e.passwordLabel }),
4624
+ e.resetPasswordLinkComponent ? e.resetPasswordLinkComponent() : null
4625
+ ] }),
4623
4626
  /* @__PURE__ */ C.jsx(
4624
- wt,
4627
+ kt,
4625
4628
  {
4626
4629
  control: e.form.control,
4627
4630
  name: "password",
4628
- render: ({ field: o }) => /* @__PURE__ */ C.jsx(kt, { children: /* @__PURE__ */ C.jsx(St, { className: "relative", children: /* @__PURE__ */ C.jsxs("div", { className: "relative", children: [
4631
+ render: ({ field: o }) => /* @__PURE__ */ C.jsx(St, { children: /* @__PURE__ */ C.jsx(Ot, { className: "relative", children: /* @__PURE__ */ C.jsxs("div", { className: "relative", children: [
4629
4632
  r ? /* @__PURE__ */ C.jsx(
4630
4633
  Zo,
4631
4634
  {
@@ -4644,7 +4647,7 @@ function ln(e) {
4644
4647
  }
4645
4648
  ),
4646
4649
  /* @__PURE__ */ C.jsx(
4647
- Ot,
4650
+ Et,
4648
4651
  {
4649
4652
  type: r ? "text" : "password",
4650
4653
  placeholder: "********",
@@ -4656,7 +4659,7 @@ function ln(e) {
4656
4659
  }
4657
4660
  )
4658
4661
  ] }),
4659
- /* @__PURE__ */ C.jsx(_o, { type: "submit", className: "w-full", children: e.submitButtonLabel })
4662
+ /* @__PURE__ */ C.jsx(wo, { type: "submit", className: "w-full", children: e.submitButtonLabel })
4660
4663
  ] }) }) }) })
4661
4664
  ] }) });
4662
4665
  }
@@ -4664,8 +4667,8 @@ const pe = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), je
4664
4667
  current: []
4665
4668
  };
4666
4669
  let ze = !1;
4667
- const Re = /* @__PURE__ */ new Set(), Rt = /* @__PURE__ */ new Map();
4668
- function nr(e) {
4670
+ const Re = /* @__PURE__ */ new Set(), Nt = /* @__PURE__ */ new Map();
4671
+ function sr(e) {
4669
4672
  const r = Array.from(e).sort((t, o) => t instanceof le && t.options.deps.includes(o) ? 1 : o instanceof le && o.options.deps.includes(t) ? -1 : 0);
4670
4673
  for (const t of r) {
4671
4674
  if (je.current.includes(t))
@@ -4675,7 +4678,7 @@ function nr(e) {
4675
4678
  if (o)
4676
4679
  for (const n of o) {
4677
4680
  const s = pe.get(n);
4678
- s && nr(s);
4681
+ s && sr(s);
4679
4682
  }
4680
4683
  }
4681
4684
  }
@@ -4702,12 +4705,12 @@ function on(e) {
4702
4705
  const r = Array.from(Re);
4703
4706
  Re.clear();
4704
4707
  for (const t of r) {
4705
- const o = Rt.get(t) ?? t.prevState;
4708
+ const o = Nt.get(t) ?? t.prevState;
4706
4709
  t.prevState = o, tn(t);
4707
4710
  }
4708
4711
  for (const t of r) {
4709
4712
  const o = pe.get(t);
4710
- o && (je.current.push(t), nr(o));
4713
+ o && (je.current.push(t), sr(o));
4711
4714
  }
4712
4715
  for (const t of r) {
4713
4716
  const o = pe.get(t);
@@ -4717,7 +4720,7 @@ function on(e) {
4717
4720
  }
4718
4721
  }
4719
4722
  } finally {
4720
- ze = !1, je.current = [], Rt.clear();
4723
+ ze = !1, je.current = [], Nt.clear();
4721
4724
  }
4722
4725
  }
4723
4726
  function nn(e) {
@@ -4810,7 +4813,7 @@ class le {
4810
4813
  }
4811
4814
  }
4812
4815
  }
4813
- const Ie = "Authorization", sr = () => ({
4816
+ const Ie = "Authorization", ar = () => ({
4814
4817
  user: {
4815
4818
  id: null,
4816
4819
  email: null,
@@ -4820,7 +4823,7 @@ const Ie = "Authorization", sr = () => ({
4820
4823
  },
4821
4824
  isAuthenticated: !1,
4822
4825
  isLoaded: !1
4823
- }), ie = new Ye(sr()), cn = new le({
4826
+ }), ie = new Ye(ar()), cn = new le({
4824
4827
  fn: () => !!ie.state.user?.roles.find((e) => e.name === "admin"),
4825
4828
  deps: [ie]
4826
4829
  });
@@ -4861,7 +4864,7 @@ class un {
4861
4864
  this._initUserData(t.data);
4862
4865
  }
4863
4866
  logout() {
4864
- ie.setState(() => ({ ...sr(), isLoaded: !0 })), this._clearAuthData();
4867
+ ie.setState(() => ({ ...ar(), isLoaded: !0 })), this._clearAuthData();
4865
4868
  }
4866
4869
  startResetPassword(r) {
4867
4870
  return this.httpClient.post("/api/auth/account/start-reset-password", r);