@okam/stack-ui 1.20.3 → 1.20.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -63,7 +63,16 @@ const Xa = (t) => ({ children: r }) => /* @__PURE__ */ c(Qa, { brandTheme: t, ch
63
63
  textAlign: {
64
64
  center: "grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",
65
65
  left: "grid-cols-[1fr_3rem]"
66
+ },
67
+ bgColor: {
68
+ gray: "bg-gray-300",
69
+ white: "bg-white"
66
70
  }
71
+ },
72
+ defaultVariants: {
73
+ titleBold: !1,
74
+ textAlign: "left",
75
+ bgColor: "white"
67
76
  }
68
77
  }), ts = D({
69
78
  base: "",
@@ -901,61 +910,61 @@ function Fr(t) {
901
910
  target: null,
902
911
  isOverTarget: !1,
903
912
  pointerType: null
904
- }), { addGlobalListener: b, removeAllGlobalListeners: $ } = Mo(), M = je((h, S) => {
913
+ }), { addGlobalListener: b, removeAllGlobalListeners: v } = Mo(), R = je((h, E) => {
905
914
  let w = g.current;
906
915
  if (a || w.didFirePressStart)
907
916
  return !1;
908
917
  let x = !0;
909
918
  if (w.isTriggeringEvent = !0, n) {
910
- let A = new ot("pressstart", S, h);
919
+ let A = new ot("pressstart", E, h);
911
920
  n(A), x = A.shouldStopPropagation;
912
921
  }
913
922
  return r && r(!0), w.isTriggeringEvent = !1, w.didFirePressStart = !0, P(!0), x;
914
- }), C = je((h, S, w = !0) => {
923
+ }), S = je((h, E, w = !0) => {
915
924
  let x = g.current;
916
925
  if (!x.didFirePressStart)
917
926
  return !1;
918
927
  x.ignoreClickAfterPress = !0, x.didFirePressStart = !1, x.isTriggeringEvent = !0;
919
928
  let A = !0;
920
929
  if (o) {
921
- let v = new ot("pressend", S, h);
922
- o(v), A = v.shouldStopPropagation;
930
+ let y = new ot("pressend", E, h);
931
+ o(y), A = y.shouldStopPropagation;
923
932
  }
924
933
  if (r && r(!1), P(!1), e && w && !a) {
925
- let v = new ot("press", S, h);
926
- e(v), A && (A = v.shouldStopPropagation);
934
+ let y = new ot("press", E, h);
935
+ e(y), A && (A = y.shouldStopPropagation);
927
936
  }
928
937
  return x.isTriggeringEvent = !1, A;
929
- }), y = je((h, S) => {
938
+ }), $ = je((h, E) => {
930
939
  let w = g.current;
931
940
  if (a)
932
941
  return !1;
933
942
  if (i) {
934
943
  w.isTriggeringEvent = !0;
935
- let x = new ot("pressup", S, h);
944
+ let x = new ot("pressup", E, h);
936
945
  return i(x), w.isTriggeringEvent = !1, x.shouldStopPropagation;
937
946
  }
938
947
  return !0;
939
- }), R = je((h) => {
940
- let S = g.current;
941
- S.isPressed && S.target && (S.isOverTarget && S.pointerType != null && C(me(S.target, h), S.pointerType, !1), S.isPressed = !1, S.isOverTarget = !1, S.activePointerId = null, S.pointerType = null, $(), d || rt(S.target));
942
- }), E = je((h) => {
943
- u && R(h);
948
+ }), M = je((h) => {
949
+ let E = g.current;
950
+ E.isPressed && E.target && (E.isOverTarget && E.pointerType != null && S(me(E.target, h), E.pointerType, !1), E.isPressed = !1, E.isOverTarget = !1, E.activePointerId = null, E.pointerType = null, v(), d || rt(E.target));
951
+ }), C = je((h) => {
952
+ u && M(h);
944
953
  }), k = se(() => {
945
- let h = g.current, S = {
954
+ let h = g.current, E = {
946
955
  onKeyDown(x) {
947
956
  if (Ft(x.nativeEvent, x.currentTarget) && x.currentTarget.contains(x.target)) {
948
957
  var A;
949
958
  mn(x.target, x.key) && x.preventDefault();
950
- let v = !0;
959
+ let y = !0;
951
960
  if (!h.isPressed && !x.repeat) {
952
- h.target = x.currentTarget, h.isPressed = !0, v = M(x, "keyboard");
961
+ h.target = x.currentTarget, h.isPressed = !0, y = R(x, "keyboard");
953
962
  let T = x.currentTarget, N = (G) => {
954
- Ft(G, T) && !G.repeat && T.contains(G.target) && h.target && y(me(h.target, G), "keyboard");
963
+ Ft(G, T) && !G.repeat && T.contains(G.target) && h.target && $(me(h.target, G), "keyboard");
955
964
  };
956
965
  b(de(x.currentTarget), "keyup", Wi(N, w), !0);
957
966
  }
958
- v && x.stopPropagation(), x.metaKey && Ar() && ((A = h.metaKeyEvents) === null || A === void 0 || A.set(x.key, x.nativeEvent));
967
+ y && x.stopPropagation(), x.metaKey && Ar() && ((A = h.metaKeyEvents) === null || A === void 0 || A.set(x.key, x.nativeEvent));
959
968
  } else
960
969
  x.key === "Meta" && (h.metaKeyEvents = /* @__PURE__ */ new Map());
961
970
  },
@@ -964,8 +973,8 @@ function Fr(t) {
964
973
  let A = !0;
965
974
  if (a && x.preventDefault(), !h.ignoreClickAfterPress && !h.ignoreEmulatedMouseEvents && !h.isPressed && (h.pointerType === "virtual" || yr(x.nativeEvent))) {
966
975
  !a && !l && De(x.currentTarget);
967
- let v = M(x, "virtual"), T = y(x, "virtual"), N = C(x, "virtual");
968
- A = v && T && N;
976
+ let y = R(x, "virtual"), T = $(x, "virtual"), N = S(x, "virtual");
977
+ A = y && T && N;
969
978
  }
970
979
  h.ignoreEmulatedMouseEvents = !1, h.ignoreClickAfterPress = !1, A && x.stopPropagation();
971
980
  }
@@ -973,10 +982,10 @@ function Fr(t) {
973
982
  }, w = (x) => {
974
983
  var A;
975
984
  if (h.isPressed && h.target && Ft(x, h.target)) {
976
- var v;
985
+ var y;
977
986
  mn(x.target, x.key) && x.preventDefault();
978
987
  let N = x.target;
979
- C(me(h.target, x), "keyboard", h.target.contains(N)), $(), x.key !== "Enter" && Ur(h.target) && h.target.contains(N) && !x[hn] && (x[hn] = !0, vr(h.target, x, !1)), h.isPressed = !1, (v = h.metaKeyEvents) === null || v === void 0 || v.delete(x.key);
988
+ S(me(h.target, x), "keyboard", h.target.contains(N)), v(), x.key !== "Enter" && Ur(h.target) && h.target.contains(N) && !x[hn] && (x[hn] = !0, vr(h.target, x, !1)), h.isPressed = !1, (y = h.metaKeyEvents) === null || y === void 0 || y.delete(x.key);
980
989
  } else if (x.key === "Meta" && (!((A = h.metaKeyEvents) === null || A === void 0) && A.size)) {
981
990
  var T;
982
991
  let N = h.metaKeyEvents;
@@ -986,7 +995,7 @@ function Fr(t) {
986
995
  }
987
996
  };
988
997
  if (typeof PointerEvent < "u") {
989
- S.onPointerDown = (T) => {
998
+ E.onPointerDown = (T) => {
990
999
  if (T.button !== 0 || !T.currentTarget.contains(T.target))
991
1000
  return;
992
1001
  if (Vi(T.nativeEvent)) {
@@ -995,83 +1004,83 @@ function Fr(t) {
995
1004
  }
996
1005
  Ut(T.currentTarget) && T.preventDefault(), h.pointerType = T.pointerType;
997
1006
  let N = !0;
998
- h.isPressed || (h.isPressed = !0, h.isOverTarget = !0, h.activePointerId = T.pointerId, h.target = T.currentTarget, !a && !l && De(T.currentTarget), d || fn(h.target), N = M(T, h.pointerType), b(de(T.currentTarget), "pointermove", x, !1), b(de(T.currentTarget), "pointerup", A, !1), b(de(T.currentTarget), "pointercancel", v, !1)), N && T.stopPropagation();
999
- }, S.onMouseDown = (T) => {
1007
+ h.isPressed || (h.isPressed = !0, h.isOverTarget = !0, h.activePointerId = T.pointerId, h.target = T.currentTarget, !a && !l && De(T.currentTarget), d || fn(h.target), N = R(T, h.pointerType), b(de(T.currentTarget), "pointermove", x, !1), b(de(T.currentTarget), "pointerup", A, !1), b(de(T.currentTarget), "pointercancel", y, !1)), N && T.stopPropagation();
1008
+ }, E.onMouseDown = (T) => {
1000
1009
  T.currentTarget.contains(T.target) && T.button === 0 && (Ut(T.currentTarget) && T.preventDefault(), T.stopPropagation());
1001
- }, S.onPointerUp = (T) => {
1002
- !T.currentTarget.contains(T.target) || h.pointerType === "virtual" || T.button === 0 && Re(T, T.currentTarget) && y(T, h.pointerType || T.pointerType);
1010
+ }, E.onPointerUp = (T) => {
1011
+ !T.currentTarget.contains(T.target) || h.pointerType === "virtual" || T.button === 0 && Re(T, T.currentTarget) && $(T, h.pointerType || T.pointerType);
1003
1012
  };
1004
1013
  let x = (T) => {
1005
- T.pointerId === h.activePointerId && (h.target && Re(T, h.target) ? !h.isOverTarget && h.pointerType != null && (h.isOverTarget = !0, M(me(h.target, T), h.pointerType)) : h.target && h.isOverTarget && h.pointerType != null && (h.isOverTarget = !1, C(me(h.target, T), h.pointerType, !1), E(T)));
1014
+ T.pointerId === h.activePointerId && (h.target && Re(T, h.target) ? !h.isOverTarget && h.pointerType != null && (h.isOverTarget = !0, R(me(h.target, T), h.pointerType)) : h.target && h.isOverTarget && h.pointerType != null && (h.isOverTarget = !1, S(me(h.target, T), h.pointerType, !1), C(T)));
1006
1015
  }, A = (T) => {
1007
- T.pointerId === h.activePointerId && h.isPressed && T.button === 0 && h.target && (Re(T, h.target) && h.pointerType != null ? C(me(h.target, T), h.pointerType) : h.isOverTarget && h.pointerType != null && C(me(h.target, T), h.pointerType, !1), h.isPressed = !1, h.isOverTarget = !1, h.activePointerId = null, h.pointerType = null, $(), d || rt(h.target));
1008
- }, v = (T) => {
1009
- R(T);
1016
+ T.pointerId === h.activePointerId && h.isPressed && T.button === 0 && h.target && (Re(T, h.target) && h.pointerType != null ? S(me(h.target, T), h.pointerType) : h.isOverTarget && h.pointerType != null && S(me(h.target, T), h.pointerType, !1), h.isPressed = !1, h.isOverTarget = !1, h.activePointerId = null, h.pointerType = null, v(), d || rt(h.target));
1017
+ }, y = (T) => {
1018
+ M(T);
1010
1019
  };
1011
- S.onDragStart = (T) => {
1012
- T.currentTarget.contains(T.target) && R(T);
1020
+ E.onDragStart = (T) => {
1021
+ T.currentTarget.contains(T.target) && M(T);
1013
1022
  };
1014
1023
  } else {
1015
- S.onMouseDown = (v) => {
1016
- if (v.button !== 0 || !v.currentTarget.contains(v.target))
1024
+ E.onMouseDown = (y) => {
1025
+ if (y.button !== 0 || !y.currentTarget.contains(y.target))
1017
1026
  return;
1018
- if (Ut(v.currentTarget) && v.preventDefault(), h.ignoreEmulatedMouseEvents) {
1019
- v.stopPropagation();
1027
+ if (Ut(y.currentTarget) && y.preventDefault(), h.ignoreEmulatedMouseEvents) {
1028
+ y.stopPropagation();
1020
1029
  return;
1021
1030
  }
1022
- h.isPressed = !0, h.isOverTarget = !0, h.target = v.currentTarget, h.pointerType = yr(v.nativeEvent) ? "virtual" : "mouse", !a && !l && De(v.currentTarget), M(v, h.pointerType) && v.stopPropagation(), b(de(v.currentTarget), "mouseup", x, !1);
1023
- }, S.onMouseEnter = (v) => {
1024
- if (!v.currentTarget.contains(v.target))
1031
+ h.isPressed = !0, h.isOverTarget = !0, h.target = y.currentTarget, h.pointerType = yr(y.nativeEvent) ? "virtual" : "mouse", !a && !l && De(y.currentTarget), R(y, h.pointerType) && y.stopPropagation(), b(de(y.currentTarget), "mouseup", x, !1);
1032
+ }, E.onMouseEnter = (y) => {
1033
+ if (!y.currentTarget.contains(y.target))
1025
1034
  return;
1026
1035
  let T = !0;
1027
- h.isPressed && !h.ignoreEmulatedMouseEvents && h.pointerType != null && (h.isOverTarget = !0, T = M(v, h.pointerType)), T && v.stopPropagation();
1028
- }, S.onMouseLeave = (v) => {
1029
- if (!v.currentTarget.contains(v.target))
1036
+ h.isPressed && !h.ignoreEmulatedMouseEvents && h.pointerType != null && (h.isOverTarget = !0, T = R(y, h.pointerType)), T && y.stopPropagation();
1037
+ }, E.onMouseLeave = (y) => {
1038
+ if (!y.currentTarget.contains(y.target))
1030
1039
  return;
1031
1040
  let T = !0;
1032
- h.isPressed && !h.ignoreEmulatedMouseEvents && h.pointerType != null && (h.isOverTarget = !1, T = C(v, h.pointerType, !1), E(v)), T && v.stopPropagation();
1033
- }, S.onMouseUp = (v) => {
1034
- v.currentTarget.contains(v.target) && !h.ignoreEmulatedMouseEvents && v.button === 0 && y(v, h.pointerType || "mouse");
1041
+ h.isPressed && !h.ignoreEmulatedMouseEvents && h.pointerType != null && (h.isOverTarget = !1, T = S(y, h.pointerType, !1), C(y)), T && y.stopPropagation();
1042
+ }, E.onMouseUp = (y) => {
1043
+ y.currentTarget.contains(y.target) && !h.ignoreEmulatedMouseEvents && y.button === 0 && $(y, h.pointerType || "mouse");
1035
1044
  };
1036
- let x = (v) => {
1037
- if (v.button === 0) {
1038
- if (h.isPressed = !1, $(), h.ignoreEmulatedMouseEvents) {
1045
+ let x = (y) => {
1046
+ if (y.button === 0) {
1047
+ if (h.isPressed = !1, v(), h.ignoreEmulatedMouseEvents) {
1039
1048
  h.ignoreEmulatedMouseEvents = !1;
1040
1049
  return;
1041
1050
  }
1042
- h.target && Re(v, h.target) && h.pointerType != null ? C(me(h.target, v), h.pointerType) : h.target && h.isOverTarget && h.pointerType != null && C(me(h.target, v), h.pointerType, !1), h.isOverTarget = !1;
1051
+ h.target && Re(y, h.target) && h.pointerType != null ? S(me(h.target, y), h.pointerType) : h.target && h.isOverTarget && h.pointerType != null && S(me(h.target, y), h.pointerType, !1), h.isOverTarget = !1;
1043
1052
  }
1044
1053
  };
1045
- S.onTouchStart = (v) => {
1046
- if (!v.currentTarget.contains(v.target))
1054
+ E.onTouchStart = (y) => {
1055
+ if (!y.currentTarget.contains(y.target))
1047
1056
  return;
1048
- let T = hl(v.nativeEvent);
1057
+ let T = hl(y.nativeEvent);
1049
1058
  if (!T)
1050
1059
  return;
1051
- h.activePointerId = T.identifier, h.ignoreEmulatedMouseEvents = !0, h.isOverTarget = !0, h.isPressed = !0, h.target = v.currentTarget, h.pointerType = "touch", !a && !l && De(v.currentTarget), d || fn(h.target), M(v, h.pointerType) && v.stopPropagation(), b(Le(v.currentTarget), "scroll", A, !0);
1052
- }, S.onTouchMove = (v) => {
1053
- if (!v.currentTarget.contains(v.target))
1060
+ h.activePointerId = T.identifier, h.ignoreEmulatedMouseEvents = !0, h.isOverTarget = !0, h.isPressed = !0, h.target = y.currentTarget, h.pointerType = "touch", !a && !l && De(y.currentTarget), d || fn(h.target), R(y, h.pointerType) && y.stopPropagation(), b(Le(y.currentTarget), "scroll", A, !0);
1061
+ }, E.onTouchMove = (y) => {
1062
+ if (!y.currentTarget.contains(y.target))
1054
1063
  return;
1055
1064
  if (!h.isPressed) {
1056
- v.stopPropagation();
1065
+ y.stopPropagation();
1057
1066
  return;
1058
1067
  }
1059
- let T = pn(v.nativeEvent, h.activePointerId), N = !0;
1060
- T && Re(T, v.currentTarget) ? !h.isOverTarget && h.pointerType != null && (h.isOverTarget = !0, N = M(v, h.pointerType)) : h.isOverTarget && h.pointerType != null && (h.isOverTarget = !1, N = C(v, h.pointerType, !1), E(v)), N && v.stopPropagation();
1061
- }, S.onTouchEnd = (v) => {
1062
- if (!v.currentTarget.contains(v.target))
1068
+ let T = pn(y.nativeEvent, h.activePointerId), N = !0;
1069
+ T && Re(T, y.currentTarget) ? !h.isOverTarget && h.pointerType != null && (h.isOverTarget = !0, N = R(y, h.pointerType)) : h.isOverTarget && h.pointerType != null && (h.isOverTarget = !1, N = S(y, h.pointerType, !1), C(y)), N && y.stopPropagation();
1070
+ }, E.onTouchEnd = (y) => {
1071
+ if (!y.currentTarget.contains(y.target))
1063
1072
  return;
1064
1073
  if (!h.isPressed) {
1065
- v.stopPropagation();
1074
+ y.stopPropagation();
1066
1075
  return;
1067
1076
  }
1068
- let T = pn(v.nativeEvent, h.activePointerId), N = !0;
1069
- T && Re(T, v.currentTarget) && h.pointerType != null ? (y(v, h.pointerType), N = C(v, h.pointerType)) : h.isOverTarget && h.pointerType != null && (N = C(v, h.pointerType, !1)), N && v.stopPropagation(), h.isPressed = !1, h.activePointerId = null, h.isOverTarget = !1, h.ignoreEmulatedMouseEvents = !0, h.target && !d && rt(h.target), $();
1070
- }, S.onTouchCancel = (v) => {
1071
- v.currentTarget.contains(v.target) && (v.stopPropagation(), h.isPressed && R(v));
1077
+ let T = pn(y.nativeEvent, h.activePointerId), N = !0;
1078
+ T && Re(T, y.currentTarget) && h.pointerType != null ? ($(y, h.pointerType), N = S(y, h.pointerType)) : h.isOverTarget && h.pointerType != null && (N = S(y, h.pointerType, !1)), N && y.stopPropagation(), h.isPressed = !1, h.activePointerId = null, h.isOverTarget = !1, h.ignoreEmulatedMouseEvents = !0, h.target && !d && rt(h.target), v();
1079
+ }, E.onTouchCancel = (y) => {
1080
+ y.currentTarget.contains(y.target) && (y.stopPropagation(), h.isPressed && M(y));
1072
1081
  };
1073
- let A = (v) => {
1074
- h.isPressed && v.target.contains(h.target) && R({
1082
+ let A = (y) => {
1083
+ h.isPressed && y.target.contains(h.target) && M({
1075
1084
  currentTarget: h.target,
1076
1085
  shiftKey: !1,
1077
1086
  ctrlKey: !1,
@@ -1079,22 +1088,22 @@ function Fr(t) {
1079
1088
  altKey: !1
1080
1089
  });
1081
1090
  };
1082
- S.onDragStart = (v) => {
1083
- v.currentTarget.contains(v.target) && R(v);
1091
+ E.onDragStart = (y) => {
1092
+ y.currentTarget.contains(y.target) && M(y);
1084
1093
  };
1085
1094
  }
1086
- return S;
1095
+ return E;
1087
1096
  }, [
1088
1097
  b,
1089
1098
  a,
1090
1099
  l,
1091
- $,
1100
+ v,
1092
1101
  d,
1093
- R,
1094
- E,
1095
- C,
1096
1102
  M,
1097
- y
1103
+ C,
1104
+ S,
1105
+ R,
1106
+ $
1098
1107
  ]);
1099
1108
  return we(() => () => {
1100
1109
  var h;
@@ -1299,7 +1308,7 @@ function Pl(t, e) {
1299
1308
  "aria-disabled": !n || r === "input" ? void 0 : n,
1300
1309
  rel: r === "a" ? P : void 0
1301
1310
  };
1302
- let { pressProps: $, isPressed: M } = Fr({
1311
+ let { pressProps: v, isPressed: R } = Fr({
1303
1312
  onPressStart: i,
1304
1313
  onPressEnd: a,
1305
1314
  onPressChange: l,
@@ -1308,20 +1317,20 @@ function Pl(t, e) {
1308
1317
  isDisabled: n,
1309
1318
  preventFocusOnPress: u,
1310
1319
  ref: e
1311
- }), { focusableProps: C } = ea(t, e);
1312
- d && (C.tabIndex = n ? -1 : C.tabIndex);
1313
- let y = fe(C, $, Gi(t, {
1320
+ }), { focusableProps: S } = ea(t, e);
1321
+ d && (S.tabIndex = n ? -1 : S.tabIndex);
1322
+ let $ = fe(S, v, Gi(t, {
1314
1323
  labelable: !0
1315
1324
  }));
1316
1325
  return {
1317
- isPressed: M,
1318
- buttonProps: fe(b, y, {
1326
+ isPressed: R,
1327
+ buttonProps: fe(b, $, {
1319
1328
  "aria-haspopup": t["aria-haspopup"],
1320
1329
  "aria-expanded": t["aria-expanded"],
1321
1330
  "aria-controls": t["aria-controls"],
1322
1331
  "aria-pressed": t["aria-pressed"],
1323
- onClick: (R) => {
1324
- p && (p(R), console.warn("onClick is deprecated, please use onPress"));
1332
+ onClick: (M) => {
1333
+ p && (p(M), console.warn("onClick is deprecated, please use onPress"));
1325
1334
  }
1326
1335
  })
1327
1336
  };
@@ -1359,7 +1368,7 @@ function Cl(t) {
1359
1368
  return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
1360
1369
  }
1361
1370
  function Sl(t) {
1362
- let { selectionManager: e, keyboardDelegate: r, ref: n, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: a = !1, disallowSelectAll: s = !1, selectOnFocus: l = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: p = !1, isVirtualized: f, scrollRef: m = n, linkBehavior: P = "action" } = t, { direction: g } = Dt(), b = _o(), $ = (w) => {
1371
+ let { selectionManager: e, keyboardDelegate: r, ref: n, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: a = !1, disallowSelectAll: s = !1, selectOnFocus: l = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: p = !1, isVirtualized: f, scrollRef: m = n, linkBehavior: P = "action" } = t, { direction: g } = Dt(), b = _o(), v = (w) => {
1363
1372
  if (w.altKey && w.key === "Tab" && w.preventDefault(), !n.current.contains(w.target))
1364
1373
  return;
1365
1374
  const x = (L, Y) => {
@@ -1380,10 +1389,10 @@ function Sl(t) {
1380
1389
  switch (w.key) {
1381
1390
  case "ArrowDown":
1382
1391
  if (r.getKeyBelow) {
1383
- var A, v;
1392
+ var A, y;
1384
1393
  w.preventDefault();
1385
1394
  let L = e.focusedKey != null ? r.getKeyBelow(e.focusedKey) : (A = r.getFirstKey) === null || A === void 0 ? void 0 : A.call(r);
1386
- L == null && i && (L = (v = r.getFirstKey) === null || v === void 0 ? void 0 : v.call(r, e.focusedKey)), x(L);
1395
+ L == null && i && (L = (y = r.getFirstKey) === null || y === void 0 ? void 0 : y.call(r, e.focusedKey)), x(L);
1387
1396
  }
1388
1397
  break;
1389
1398
  case "ArrowUp":
@@ -1460,43 +1469,43 @@ function Sl(t) {
1460
1469
  break;
1461
1470
  }
1462
1471
  }
1463
- }, M = F({
1472
+ }, R = F({
1464
1473
  top: 0,
1465
1474
  left: 0
1466
1475
  });
1467
1476
  Yi(m, "scroll", f ? null : () => {
1468
- M.current = {
1477
+ R.current = {
1469
1478
  top: m.current.scrollTop,
1470
1479
  left: m.current.scrollLeft
1471
1480
  };
1472
1481
  });
1473
- let C = (w) => {
1482
+ let S = (w) => {
1474
1483
  if (e.isFocused) {
1475
1484
  w.currentTarget.contains(w.target) || e.setFocused(!1);
1476
1485
  return;
1477
1486
  }
1478
1487
  if (w.currentTarget.contains(w.target)) {
1479
1488
  if (e.setFocused(!0), e.focusedKey == null) {
1480
- let v = (N) => {
1489
+ let y = (N) => {
1481
1490
  N != null && (e.setFocusedKey(N), l && e.replaceSelection(N));
1482
1491
  }, T = w.relatedTarget;
1483
1492
  var x, A;
1484
- T && w.currentTarget.compareDocumentPosition(T) & Node.DOCUMENT_POSITION_FOLLOWING ? v((x = e.lastSelectedKey) !== null && x !== void 0 ? x : r.getLastKey()) : v((A = e.firstSelectedKey) !== null && A !== void 0 ? A : r.getFirstKey());
1493
+ T && w.currentTarget.compareDocumentPosition(T) & Node.DOCUMENT_POSITION_FOLLOWING ? y((x = e.lastSelectedKey) !== null && x !== void 0 ? x : r.getLastKey()) : y((A = e.firstSelectedKey) !== null && A !== void 0 ? A : r.getFirstKey());
1485
1494
  } else
1486
- f || (m.current.scrollTop = M.current.top, m.current.scrollLeft = M.current.left);
1495
+ f || (m.current.scrollTop = R.current.top, m.current.scrollLeft = R.current.left);
1487
1496
  if (!f && e.focusedKey != null) {
1488
- let v = m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
1489
- v && (v.contains(document.activeElement) || De(v), bn() === "keyboard" && an(v, {
1497
+ let y = m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
1498
+ y && (y.contains(document.activeElement) || De(y), bn() === "keyboard" && an(y, {
1490
1499
  containingElement: n.current
1491
1500
  }));
1492
1501
  }
1493
1502
  }
1494
- }, y = (w) => {
1503
+ }, $ = (w) => {
1495
1504
  w.currentTarget.contains(w.relatedTarget) || e.setFocused(!1);
1496
1505
  };
1497
- const R = F(o);
1506
+ const M = F(o);
1498
1507
  we(() => {
1499
- if (R.current) {
1508
+ if (M.current) {
1500
1509
  let w = null;
1501
1510
  o === "first" && (w = r.getFirstKey()), o === "last" && (w = r.getLastKey());
1502
1511
  let x = e.selectedKeys;
@@ -1510,16 +1519,16 @@ function Sl(t) {
1510
1519
  e.setFocused(!0), e.setFocusedKey(w), w == null && !d && $r(n.current);
1511
1520
  }
1512
1521
  }, []);
1513
- let E = F(e.focusedKey);
1522
+ let C = F(e.focusedKey);
1514
1523
  we(() => {
1515
1524
  let w = bn();
1516
1525
  if (e.isFocused && e.focusedKey != null && (m != null && m.current)) {
1517
1526
  let x = m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
1518
- x && (w === "keyboard" || R.current) && (f || Ji(m.current, x), w !== "virtual" && an(x, {
1527
+ x && (w === "keyboard" || M.current) && (f || Ji(m.current, x), w !== "virtual" && an(x, {
1519
1528
  containingElement: n.current
1520
1529
  }));
1521
1530
  }
1522
- e.isFocused && e.focusedKey == null && E.current != null && $r(n.current), E.current = e.focusedKey, R.current = !1;
1531
+ e.isFocused && e.focusedKey == null && C.current != null && $r(n.current), C.current = e.focusedKey, M.current = !1;
1523
1532
  }, [
1524
1533
  f,
1525
1534
  m,
@@ -1528,9 +1537,9 @@ function Sl(t) {
1528
1537
  n
1529
1538
  ]);
1530
1539
  let k = {
1531
- onKeyDown: $,
1532
- onFocus: C,
1533
- onBlur: y,
1540
+ onKeyDown: v,
1541
+ onFocus: S,
1542
+ onBlur: $,
1534
1543
  onMouseDown(w) {
1535
1544
  m.current === w.target && w.preventDefault();
1536
1545
  }
@@ -1539,11 +1548,11 @@ function Sl(t) {
1539
1548
  selectionManager: e
1540
1549
  });
1541
1550
  u || (k = fe(h, k));
1542
- let S;
1543
- return d || (S = e.focusedKey == null ? 0 : -1), {
1551
+ let E;
1552
+ return d || (E = e.focusedKey == null ? 0 : -1), {
1544
1553
  collectionProps: {
1545
1554
  ...k,
1546
- tabIndex: S
1555
+ tabIndex: E
1547
1556
  }
1548
1557
  };
1549
1558
  }
@@ -1583,40 +1592,40 @@ function El(t) {
1583
1592
  } : s && (m.onMouseDown = (_) => {
1584
1593
  _.preventDefault();
1585
1594
  });
1586
- let P = e.isLink(r) && d === "override", g = e.isLink(r) && d !== "selection" && d !== "none", b = !s && e.canSelectItem(r) && !P, $ = (l || g) && !s, M = $ && (e.selectionBehavior === "replace" ? !b : !b || e.isEmpty), C = $ && b && e.selectionBehavior === "replace", y = M || C, R = F(null), E = y && b, k = F(!1), h = F(!1), S = (_) => {
1595
+ let P = e.isLink(r) && d === "override", g = e.isLink(r) && d !== "selection" && d !== "none", b = !s && e.canSelectItem(r) && !P, v = (l || g) && !s, R = v && (e.selectionBehavior === "replace" ? !b : !b || e.isEmpty), S = v && b && e.selectionBehavior === "replace", $ = R || S, M = F(null), C = $ && b, k = F(!1), h = F(!1), E = (_) => {
1587
1596
  l && l(), g && p.open(n.current, _);
1588
1597
  }, w = {};
1589
1598
  o ? (w.onPressStart = (_) => {
1590
- R.current = _.pointerType, k.current = E, _.pointerType === "keyboard" && (!y || vn()) && f(_);
1591
- }, u ? (w.onPressUp = M ? null : (_) => {
1599
+ M.current = _.pointerType, k.current = C, _.pointerType === "keyboard" && (!$ || vn()) && f(_);
1600
+ }, u ? (w.onPressUp = R ? null : (_) => {
1592
1601
  _.pointerType !== "keyboard" && b && f(_);
1593
- }, w.onPress = M ? S : null) : w.onPress = (_) => {
1594
- if (M || C && _.pointerType !== "mouse") {
1602
+ }, w.onPress = R ? E : null) : w.onPress = (_) => {
1603
+ if (R || S && _.pointerType !== "mouse") {
1595
1604
  if (_.pointerType === "keyboard" && !yn())
1596
1605
  return;
1597
- S(_);
1606
+ E(_);
1598
1607
  } else
1599
1608
  _.pointerType !== "keyboard" && b && f(_);
1600
1609
  }) : (w.onPressStart = (_) => {
1601
- R.current = _.pointerType, k.current = E, h.current = M, b && (_.pointerType === "mouse" && !M || _.pointerType === "keyboard" && (!$ || vn())) && f(_);
1610
+ M.current = _.pointerType, k.current = C, h.current = R, b && (_.pointerType === "mouse" && !R || _.pointerType === "keyboard" && (!v || vn())) && f(_);
1602
1611
  }, w.onPress = (_) => {
1603
- (_.pointerType === "touch" || _.pointerType === "pen" || _.pointerType === "virtual" || _.pointerType === "keyboard" && y && yn() || _.pointerType === "mouse" && h.current) && (y ? S(_) : b && f(_));
1612
+ (_.pointerType === "touch" || _.pointerType === "pen" || _.pointerType === "virtual" || _.pointerType === "keyboard" && $ && yn() || _.pointerType === "mouse" && h.current) && ($ ? E(_) : b && f(_));
1604
1613
  }), m["data-key"] = r, w.preventFocusOnPress = i;
1605
- let { pressProps: x, isPressed: A } = Fr(w), v = C ? (_) => {
1606
- R.current === "mouse" && (_.stopPropagation(), _.preventDefault(), S(_));
1614
+ let { pressProps: x, isPressed: A } = Fr(w), y = S ? (_) => {
1615
+ M.current === "mouse" && (_.stopPropagation(), _.preventDefault(), E(_));
1607
1616
  } : void 0, { longPressProps: T } = wl({
1608
- isDisabled: !E,
1617
+ isDisabled: !C,
1609
1618
  onLongPress(_) {
1610
1619
  _.pointerType === "touch" && (f(_), e.setSelectionBehavior("toggle"));
1611
1620
  }
1612
1621
  }), N = (_) => {
1613
- R.current === "touch" && k.current && _.preventDefault();
1622
+ M.current === "touch" && k.current && _.preventDefault();
1614
1623
  }, G = e.isLink(r) ? (_) => {
1615
1624
  vr.isOpening || _.preventDefault();
1616
1625
  } : void 0;
1617
1626
  return {
1618
- itemProps: fe(m, b || M ? x : {}, E ? T : {}, {
1619
- onDoubleClick: v,
1627
+ itemProps: fe(m, b || R ? x : {}, C ? T : {}, {
1628
+ onDoubleClick: y,
1620
1629
  onDragStartCapture: N,
1621
1630
  onClick: G
1622
1631
  }),
@@ -1625,7 +1634,7 @@ function El(t) {
1625
1634
  isFocused: e.isFocused && e.focusedKey === r,
1626
1635
  isDisabled: s,
1627
1636
  allowsSelection: b,
1628
- hasAction: y
1637
+ hasAction: $
1629
1638
  };
1630
1639
  }
1631
1640
  function yn() {
@@ -1936,37 +1945,37 @@ const Q = ({
1936
1945
  /* @__PURE__ */ c(jl, { icon: e, ...s })
1937
1946
  ] });
1938
1947
  }, Fl = (t) => {
1939
- const { item: e, themeName: r, tokens: n, customTheme: o } = t, { props: i, rendered: a, key: s } = e, { icon: l, title: u, onOpenChange: d } = i ?? {}, p = F(null), { state: f, TransitionAnimation: m = Al } = Dl(), {
1940
- buttonProps: { onClick: P, onKeyDown: g, onPointerDown: b, ...$ },
1941
- regionProps: M
1942
- } = _l(t, f, p), C = f.selectionManager.selectedKeys.has(s), y = { ...n, isOpen: C }, R = (E) => {
1943
- E.continuePropagation(), f.selectionManager.select(e.key), f.toggleKey(e.key);
1948
+ const { item: e, tokens: r, customTheme: n } = t, { props: o, rendered: i, key: a } = e, { icon: s, title: l, onOpenChange: u, tokens: d, themeName: p } = o ?? {}, { themeName: f = p } = t, m = F(null), { state: P, TransitionAnimation: g = Al } = Dl(), {
1949
+ buttonProps: { onClick: b, onKeyDown: v, onPointerDown: R, ...S },
1950
+ regionProps: $
1951
+ } = _l(t, P, m), M = P.selectionManager.selectedKeys.has(a), C = { ...r, isOpen: M, ...d }, k = (h) => {
1952
+ h.continuePropagation(), P.selectionManager.select(e.key), P.toggleKey(e.key);
1944
1953
  };
1945
1954
  return Sa(() => {
1946
- d == null || d(C);
1947
- }, [C]), /* @__PURE__ */ O(Q, { themeName: `${r}.container`, tokens: y, customTheme: o, children: [
1955
+ u == null || u(M);
1956
+ }, [M]), /* @__PURE__ */ O(Q, { themeName: `${f}.container`, tokens: C, customTheme: n, children: [
1948
1957
  /* @__PURE__ */ c(Pe, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ O(
1949
1958
  Lt,
1950
1959
  {
1951
- ...$,
1952
- handlePress: R,
1953
- ref: p,
1954
- themeName: `${r}.button`,
1955
- tokens: y,
1960
+ ...S,
1961
+ handlePress: k,
1962
+ ref: m,
1963
+ themeName: `${f}.button`,
1964
+ tokens: C,
1956
1965
  children: [
1957
- /* @__PURE__ */ c(Q, { themeName: `${r}.title`, tokens: y, children: u }),
1958
- /* @__PURE__ */ c(Q, { themeName: `${r}.icon`, tokens: y, children: /* @__PURE__ */ c(he, { icon: l ?? "ArrowDown" }) })
1966
+ /* @__PURE__ */ c(Q, { themeName: `${f}.title`, tokens: C, children: l }),
1967
+ s && /* @__PURE__ */ c(Q, { themeName: `${f}.icon`, tokens: C, children: /* @__PURE__ */ c(he, { icon: s }) })
1959
1968
  ]
1960
1969
  }
1961
1970
  ) }),
1962
1971
  /* @__PURE__ */ c(
1963
- m,
1972
+ g,
1964
1973
  {
1965
- isVisible: C,
1966
- themeName: `${r}.region`,
1967
- ...M,
1968
- tokens: y,
1969
- children: /* @__PURE__ */ c(Q, { themeName: `${r}.content`, tokens: y, children: /* @__PURE__ */ c(He, { autoFocus: !0, children: a }) })
1974
+ isVisible: M,
1975
+ themeName: `${f}.region`,
1976
+ ...$,
1977
+ tokens: C,
1978
+ children: /* @__PURE__ */ c(Q, { themeName: `${f}.content`, tokens: C, children: /* @__PURE__ */ c(He, { autoFocus: !0, children: i }) })
1970
1979
  }
1971
1980
  )
1972
1981
  ] });
@@ -2043,21 +2052,21 @@ const oh = Jo, Vl = (t) => {
2043
2052
  const { listDirection: m } = s ?? {};
2044
2053
  m === "row" && (f.key === "ArrowRight" && (d == null || d.focusNext({ wrap: !0 }), f.preventDefault()), f.key === "ArrowLeft" && (d == null || d.focusPrevious({ wrap: !0 }), f.preventDefault())), m === "column" && (f.key === "ArrowDown" && (d == null || d.focusNext({ wrap: !0 }), f.preventDefault()), f.key === "ArrowUp" && (d == null || d.focusPrevious({ wrap: !0 }), f.preventDefault()));
2045
2054
  }, children: e == null ? void 0 : e.map((f) => {
2046
- const { ariaLabel: m, onClick: P, href: g, icon: b, key: $ } = f;
2055
+ const { ariaLabel: m, onClick: P, href: g, icon: b, key: v } = f;
2047
2056
  return /* @__PURE__ */ c(
2048
2057
  Se,
2049
2058
  {
2050
2059
  themeName: `${a}.link`,
2051
2060
  tokens: { ...s, isOpen: n },
2052
2061
  handlePress: () => {
2053
- i == null || i($), P == null || P($);
2062
+ i == null || i(v), P == null || P(v);
2054
2063
  },
2055
2064
  "aria-label": m,
2056
2065
  ...g ? { href: g, rel: "noopener noreferrer", target: "_blank", as: "a" } : {},
2057
2066
  role: "option",
2058
2067
  children: /* @__PURE__ */ c(he, { themeName: `${a}.linkIcons`, icon: b })
2059
2068
  },
2060
- $
2069
+ v
2061
2070
  );
2062
2071
  }) });
2063
2072
  }, ih = (t) => {
@@ -2073,14 +2082,14 @@ const oh = Jo, Vl = (t) => {
2073
2082
  ...u
2074
2083
  } = t, [d, p] = ce(!1), f = I(`${s}.container`, l, a), m = (g) => {
2075
2084
  p(!d), !d && setTimeout(() => {
2076
- var $, M;
2077
- const b = (M = ($ = g.target.parentElement) == null ? void 0 : $.lastChild) == null ? void 0 : M.firstChild;
2085
+ var v, R;
2086
+ const b = (R = (v = g.target.parentElement) == null ? void 0 : v.lastChild) == null ? void 0 : R.firstChild;
2078
2087
  b == null || b.focus();
2079
2088
  });
2080
2089
  };
2081
2090
  return /* @__PURE__ */ c(He, { autoFocus: !0, restoreFocus: !0, contain: d, children: /* @__PURE__ */ O("div", { className: f, onKeyDown: (g) => {
2082
- const b = g.currentTarget.firstChild, $ = g.currentTarget.lastChild, M = $.firstChild, C = $.lastChild, { listDirection: y } = l ?? {};
2083
- y === "row" && (g.key === "ArrowRight" && g.target === b && (M == null || M.focus(), g.preventDefault()), g.key === "ArrowLeft" && g.target === b && (C.focus(), g.preventDefault())), y === "column" && (g.key === "ArrowDown" && g.target === b && (M == null || M.focus(), g.preventDefault()), g.key === "ArrowUp" && g.target === b && (C.focus(), g.preventDefault())), g.key === "Escape" && (p(!1), b == null || b.focus()), document.activeElement === $ && (b == null || b.focus());
2091
+ const b = g.currentTarget.firstChild, v = g.currentTarget.lastChild, R = v.firstChild, S = v.lastChild, { listDirection: $ } = l ?? {};
2092
+ $ === "row" && (g.key === "ArrowRight" && g.target === b && (R == null || R.focus(), g.preventDefault()), g.key === "ArrowLeft" && g.target === b && (S.focus(), g.preventDefault())), $ === "column" && (g.key === "ArrowDown" && g.target === b && (R == null || R.focus(), g.preventDefault()), g.key === "ArrowUp" && g.target === b && (S.focus(), g.preventDefault())), g.key === "Escape" && (p(!1), b == null || b.focus()), document.activeElement === v && (b == null || b.focus());
2084
2093
  }, children: [
2085
2094
  /* @__PURE__ */ c(
2086
2095
  Lt,
@@ -2261,8 +2270,8 @@ const Hl = ({ isVisible: t, children: e }) => We(t, {
2261
2270
  { ...t, type: "dialog" },
2262
2271
  d
2263
2272
  ), g = (b) => {
2264
- var $;
2265
- s == null || s(!l), ($ = p.handlePress) == null || $.call(p, b);
2273
+ var v;
2274
+ s == null || s(!l), (v = p.handlePress) == null || v.call(p, b);
2266
2275
  };
2267
2276
  return /* @__PURE__ */ O(Ir, { children: [
2268
2277
  /* @__PURE__ */ c(kt, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ O(Se, { themeName: `${o}.wrapper`, tokens: i, ...p, handlePress: g, children: [
@@ -2371,7 +2380,7 @@ const lh = ({ content: t, themeName: e = "wysiwyg", ...r }) => /* @__PURE__ */ c
2371
2380
  dangerouslySetInnerHTML: {
2372
2381
  __html: ka.sanitize(t, {
2373
2382
  ADD_TAGS: ["iframe"],
2374
- ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling"]
2383
+ ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling", "target"]
2375
2384
  })
2376
2385
  }
2377
2386
  }
@@ -2437,43 +2446,43 @@ const lh = ({ content: t, themeName: e = "wysiwyg", ...r }) => /* @__PURE__ */ c
2437
2446
  icon: P,
2438
2447
  popoverMatchesWidth: g,
2439
2448
  ...b
2440
- } = t, $ = F(null), M = Ma({
2449
+ } = t, v = F(null), R = Ma({
2441
2450
  ...b,
2442
2451
  selectedKey: m,
2443
2452
  defaultSelectedKey: f,
2444
2453
  onSelectionChange: p
2445
- }), { triggerProps: C, menuProps: y, labelProps: R } = ya({ ...b }, M, $), E = I(`${s}.wrapper`, l, u), k = I(`${s}.container`, l, u), { onPress: h, onPressStart: S, ...w } = C;
2446
- return /* @__PURE__ */ O("div", { className: E, children: [
2447
- d && /* @__PURE__ */ c(re, { ...R, as: "label", themeName: `${s}.label`, children: d }),
2448
- /* @__PURE__ */ c(va, { ...o, state: M, triggerRef: $, name: e, isDisabled: !0 }),
2454
+ }), { triggerProps: S, menuProps: $, labelProps: M } = ya({ ...b }, R, v), C = I(`${s}.wrapper`, l, u), k = I(`${s}.container`, l, u), { onPress: h, onPressStart: E, ...w } = S;
2455
+ return /* @__PURE__ */ O("div", { className: C, children: [
2456
+ d && /* @__PURE__ */ c(re, { ...M, as: "label", themeName: `${s}.label`, children: d }),
2457
+ /* @__PURE__ */ c(va, { ...o, state: R, triggerRef: v, name: e, isDisabled: !0 }),
2449
2458
  /* @__PURE__ */ O("div", { className: k, children: [
2450
2459
  /* @__PURE__ */ O(
2451
2460
  Lt,
2452
2461
  {
2453
2462
  ...w,
2454
2463
  handlePress: (A) => {
2455
- h == null || h(A), S == null || S(A);
2464
+ h == null || h(A), E == null || E(A);
2456
2465
  },
2457
- ref: $,
2466
+ ref: v,
2458
2467
  disabled: n,
2459
2468
  themeName: `${s}.button`,
2460
2469
  tokens: { ...l, intent: i ? "error" : "default" },
2461
2470
  children: [
2462
- M.selectedItem ? M.selectedItem.rendered : r,
2471
+ R.selectedItem ? R.selectedItem.rendered : r,
2463
2472
  /* @__PURE__ */ c(he, { icon: P ?? "ArrowDown" })
2464
2473
  ]
2465
2474
  }
2466
2475
  ),
2467
- M.isOpen && $.current && /* @__PURE__ */ c(
2476
+ R.isOpen && v.current && /* @__PURE__ */ c(
2468
2477
  oc,
2469
2478
  {
2470
2479
  tokens: l,
2471
- state: M,
2472
- triggerRef: $,
2480
+ state: R,
2481
+ triggerRef: v,
2473
2482
  placement: "bottom",
2474
2483
  themeName: `${s}.popover`,
2475
- style: { [`--${s}-container-width`]: `${(x = $.current) == null ? void 0 : x.offsetWidth}px` },
2476
- children: /* @__PURE__ */ c(nc, { ...y, themeName: s, state: M })
2484
+ style: { [`--${s}-container-width`]: `${(x = v.current) == null ? void 0 : x.offsetWidth}px` },
2485
+ children: /* @__PURE__ */ c(nc, { ...$, themeName: s, state: R })
2477
2486
  }
2478
2487
  ),
2479
2488
  i && /* @__PURE__ */ c(re, { tokens: { ...l, isError: i }, themeName: `${s}.errorMessage`, children: a })
@@ -2496,14 +2505,14 @@ const lh = ({ content: t, themeName: e = "wysiwyg", ...r }) => /* @__PURE__ */ c
2496
2505
  themeName: l = "checkbox",
2497
2506
  tokens: u,
2498
2507
  customTheme: d
2499
- } = t, p = Ia(t), f = F(null), { inputProps: m } = Da(t, p, f), { isSelected: P } = p, { focusProps: g, isFocusVisible: b } = ko(), $ = { ...u, selected: P, isDisabled: n, isError: o, isFocusVisible: b }, M = I(`${l}.container`, $, d), C = I(`${l}.checkBox`, $, d), y = I(`${l}.checkMark`, $, d), R = I(`${l}.checkMarkIcon`, $, d);
2508
+ } = t, p = Ia(t), f = F(null), { inputProps: m } = Da(t, p, f), { isSelected: P } = p, { focusProps: g, isFocusVisible: b } = ko(), v = { ...u, selected: P, isDisabled: n, isError: o, isFocusVisible: b }, R = I(`${l}.container`, v, d), S = I(`${l}.checkBox`, v, d), $ = I(`${l}.checkMark`, v, d), M = I(`${l}.checkMarkIcon`, v, d);
2500
2509
  return /* @__PURE__ */ O("div", { children: [
2501
- /* @__PURE__ */ c(kt, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ O("label", { className: M, htmlFor: e, "aria-label": a, "aria-disabled": n, children: [
2510
+ /* @__PURE__ */ c(kt, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ O("label", { className: R, htmlFor: e, "aria-label": a, "aria-disabled": n, children: [
2502
2511
  /* @__PURE__ */ c(Oa, { children: /* @__PURE__ */ c("input", { type: "checkbox", ref: f, "aria-labelledby": e, ...m, ...g }) }),
2503
- /* @__PURE__ */ c("div", { className: C, "aria-checked": P, role: "checkbox", "aria-labelledby": e, children: /* @__PURE__ */ c("div", { className: y, children: s && /* @__PURE__ */ c(he, { icon: s, customTheme: R }) }) }),
2504
- /* @__PURE__ */ c(re, { themeName: `${l}.label`, tokens: $, children: r })
2512
+ /* @__PURE__ */ c("div", { className: S, "aria-checked": P, role: "checkbox", "aria-labelledby": e, children: /* @__PURE__ */ c("div", { className: $, children: s && /* @__PURE__ */ c(he, { icon: s, customTheme: M }) }) }),
2513
+ /* @__PURE__ */ c(re, { themeName: `${l}.label`, tokens: v, children: r })
2505
2514
  ] }) }),
2506
- o && i && /* @__PURE__ */ c(re, { themeName: `${l}.errorMessage`, tokens: $, children: i })
2515
+ o && i && /* @__PURE__ */ c(re, { themeName: `${l}.errorMessage`, tokens: v, children: i })
2507
2516
  ] });
2508
2517
  }, zr = {
2509
2518
  badInput: !1,
@@ -2559,22 +2568,22 @@ function sc(t) {
2559
2568
  let b = se(() => wn(P ? [] : p), [
2560
2569
  P,
2561
2570
  p
2562
- ]), $ = F(Fe), [M, C] = ce(Fe), y = F(Fe), R = () => {
2563
- if (!E)
2571
+ ]), v = F(Fe), [R, S] = ce(Fe), $ = F(Fe), M = () => {
2572
+ if (!C)
2564
2573
  return;
2565
2574
  k(!1);
2566
- let w = u || i || $.current;
2567
- Vt(w, y.current) || (y.current = w, C(w));
2568
- }, [E, k] = ce(!1);
2569
- return we(R), {
2575
+ let w = u || i || v.current;
2576
+ Vt(w, $.current) || ($.current = w, S(w));
2577
+ }, [C, k] = ce(!1);
2578
+ return we(M), {
2570
2579
  realtimeValidation: l || b || u || i || Fe,
2571
- displayValidation: s === "native" ? l || b || M : l || b || u || i || M,
2580
+ displayValidation: s === "native" ? l || b || R : l || b || u || i || R,
2572
2581
  updateValidation(w) {
2573
- s === "aria" && !Vt(M, w) ? C(w) : $.current = w;
2582
+ s === "aria" && !Vt(R, w) ? S(w) : v.current = w;
2574
2583
  },
2575
2584
  resetValidation() {
2576
2585
  let w = Fe;
2577
- Vt(w, y.current) || (y.current = w, C(w)), s === "native" && k(!1), g(!0);
2586
+ Vt(w, $.current) || ($.current = w, S(w)), s === "native" && k(!1), g(!0);
2578
2587
  },
2579
2588
  commitValidation() {
2580
2589
  s === "native" && k(!0), g(!0);
@@ -2731,11 +2740,11 @@ const fh = (t) => {
2731
2740
  value: d,
2732
2741
  errorMessage: p,
2733
2742
  label: f
2734
- } = t, m = F(null), { inputProps: P } = wa(t, o, m), { isSelected: g } = o, b = { ...s, selected: g(d), isDisabled: l, isError: u }, $ = I(`${i}.container`, b, a), M = I(`${i}.checkBox`, b, a), C = I(`${i}.checkMark`, b, a), y = I(`${i}.checkMarkIcon`, b, a);
2743
+ } = t, m = F(null), { inputProps: P } = wa(t, o, m), { isSelected: g } = o, b = { ...s, selected: g(d), isDisabled: l, isError: u }, v = I(`${i}.container`, b, a), R = I(`${i}.checkBox`, b, a), S = I(`${i}.checkMark`, b, a), $ = I(`${i}.checkMarkIcon`, b, a);
2735
2744
  return /* @__PURE__ */ O("div", { children: [
2736
- /* @__PURE__ */ c(Pe, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ O("label", { className: $, htmlFor: e, "aria-label": r, "aria-disabled": l, children: [
2745
+ /* @__PURE__ */ c(Pe, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ O("label", { className: v, htmlFor: e, "aria-label": r, "aria-disabled": l, children: [
2737
2746
  /* @__PURE__ */ c(Ao, { children: /* @__PURE__ */ c("input", { ref: m, ...P }) }),
2738
- /* @__PURE__ */ c("div", { className: M, "aria-checked": g(d), role: "checkbox", "aria-labelledby": e, children: /* @__PURE__ */ c("div", { className: C, children: n && /* @__PURE__ */ c(he, { icon: n, customTheme: y }) }) }),
2747
+ /* @__PURE__ */ c("div", { className: R, "aria-checked": g(d), role: "checkbox", "aria-labelledby": e, children: /* @__PURE__ */ c("div", { className: S, children: n && /* @__PURE__ */ c(he, { icon: n, customTheme: $ }) }) }),
2739
2748
  /* @__PURE__ */ c(re, { themeName: `${i}.label`, tokens: b, children: f })
2740
2749
  ] }) }),
2741
2750
  u && p && /* @__PURE__ */ c(re, { themeName: `${i}.errorMessage`, tokens: b, children: p })
@@ -2760,18 +2769,18 @@ const fh = (t) => {
2760
2769
  themeName: m = "textarea",
2761
2770
  tokens: P,
2762
2771
  customTheme: g
2763
- } = t, b = F(null), { errorMessageProps: $, inputProps: M, labelProps: C } = Lo(t, b), y = { ...P, isDisabled: a, isError: s != null }, R = I(`${m}.wrapper`, y, g), E = I(`${m}.input`, y, g), k = I(`${m}.label`, y, g), h = I(`${m}.container`, y, g);
2772
+ } = t, b = F(null), { errorMessageProps: v, inputProps: R, labelProps: S } = Lo(t, b), $ = { ...P, isDisabled: a, isError: s != null }, M = I(`${m}.wrapper`, $, g), C = I(`${m}.input`, $, g), k = I(`${m}.label`, $, g), h = I(`${m}.container`, $, g);
2764
2773
  return /* @__PURE__ */ O("div", { children: [
2765
- /* @__PURE__ */ O("div", { className: R, "aria-disabled": a, children: [
2766
- r && /* @__PURE__ */ c("label", { className: k, ...C, children: r }),
2774
+ /* @__PURE__ */ O("div", { className: M, "aria-disabled": a, children: [
2775
+ r && /* @__PURE__ */ c("label", { className: k, ...S, children: r }),
2767
2776
  /* @__PURE__ */ c("div", { className: h, children: /* @__PURE__ */ c(kt, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ c(
2768
2777
  "textarea",
2769
2778
  {
2770
- ...M,
2771
- ref: (S) => {
2772
- f == null || f(S), b.current = S;
2779
+ ...R,
2780
+ ref: (E) => {
2781
+ f == null || f(E), b.current = E;
2773
2782
  },
2774
- className: E,
2783
+ className: C,
2775
2784
  placeholder: o,
2776
2785
  disabled: a,
2777
2786
  required: i,
@@ -2785,7 +2794,7 @@ const fh = (t) => {
2785
2794
  }
2786
2795
  ) }) })
2787
2796
  ] }),
2788
- s && /* @__PURE__ */ c(re, { themeName: `${m}.errorMessage`, tokens: y, ...$, children: s })
2797
+ s && /* @__PURE__ */ c(re, { themeName: `${m}.errorMessage`, tokens: $, ...v, children: s })
2789
2798
  ] });
2790
2799
  }, ph = (t) => {
2791
2800
  const { name: e, required: r, minLength: n = 0, maxLength: o = 99999999, validation: i } = t, { register: a, formState: s } = It(), l = At(s.errors, e), u = (l == null ? void 0 : l.message) ?? void 0, { t: d } = Br("components"), { ref: p, ...f } = a(e, {
@@ -2818,22 +2827,22 @@ const fh = (t) => {
2818
2827
  themeName: m = "textInput",
2819
2828
  tokens: P,
2820
2829
  customTheme: g
2821
- } = t, b = F(null), { errorMessageProps: $, inputProps: M, labelProps: C } = Lo(t, b), y = { ...P, isDisabled: o, isError: i != null }, R = I(`${m}.wrapper`, y, g), E = I(`${m}.label`, y, g), k = I(`${m}.input`, y, g), h = I(`${m}.container`, y, g);
2830
+ } = t, b = F(null), { errorMessageProps: v, inputProps: R, labelProps: S } = Lo(t, b), $ = { ...P, isDisabled: o, isError: i != null }, M = I(`${m}.wrapper`, $, g), C = I(`${m}.label`, $, g), k = I(`${m}.input`, $, g), h = I(`${m}.container`, $, g);
2822
2831
  return /* @__PURE__ */ O("div", { children: [
2823
- /* @__PURE__ */ c(kt, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ O("div", { "aria-disabled": o, className: R, children: [
2832
+ /* @__PURE__ */ c(kt, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ O("div", { "aria-disabled": o, className: M, children: [
2824
2833
  r && // eslint-disable-next-line jsx-a11y/label-has-associated-control
2825
- /* @__PURE__ */ c("label", { className: E, ...C, children: r }),
2834
+ /* @__PURE__ */ c("label", { className: C, ...S, children: r }),
2826
2835
  /* @__PURE__ */ O("div", { className: h, children: [
2827
2836
  f,
2828
2837
  /* @__PURE__ */ c(
2829
2838
  "input",
2830
2839
  {
2831
- ...M,
2840
+ ...R,
2832
2841
  className: k,
2833
2842
  disabled: o,
2834
2843
  required: n,
2835
- ref: (S) => {
2836
- d == null || d(S), b.current = S;
2844
+ ref: (E) => {
2845
+ d == null || d(E), b.current = E;
2837
2846
  },
2838
2847
  "aria-label": a,
2839
2848
  "aria-labelledby": e,
@@ -2845,7 +2854,7 @@ const fh = (t) => {
2845
2854
  )
2846
2855
  ] })
2847
2856
  ] }) }),
2848
- i && /* @__PURE__ */ c(re, { themeName: `${m}.errorMessage`, tokens: y, ...$, children: i })
2857
+ i && /* @__PURE__ */ c(re, { themeName: `${m}.errorMessage`, tokens: $, ...v, children: i })
2849
2858
  ] });
2850
2859
  }, mh = (t) => {
2851
2860
  const { name: e, required: r, minLength: n = 0, maxLength: o = 99999999, validation: i } = t, { register: a, formState: s } = It(), l = At(s.errors, e), u = (l == null ? void 0 : l.message) ?? void 0, { t: d } = Br("components"), { ref: p, ...f } = a(e, {
@@ -2918,8 +2927,8 @@ class be {
2918
2927
  fromJulianDay(e) {
2919
2928
  let r = e, n = r - oi, o = Math.floor(n / 146097), i = ge(n, 146097), a = Math.floor(i / 36524), s = ge(i, 36524), l = Math.floor(s / 1461), u = ge(s, 1461), d = Math.floor(u / 365), p = o * 400 + a * 100 + l * 4 + d + (a !== 4 && d !== 4 ? 1 : 0), [f, m] = Nt(p), P = r - Te(f, m, 1, 1), g = 2;
2920
2929
  r < Te(f, m, 3, 1) ? g = 0 : ve(m) && (g = 1);
2921
- let b = Math.floor(((P + g) * 12 + 373) / 367), $ = r - Te(f, m, b, 1) + 1;
2922
- return new X(f, m, b, $);
2930
+ let b = Math.floor(((P + g) * 12 + 373) / 367), v = r - Te(f, m, b, 1) + 1;
2931
+ return new X(f, m, b, v);
2923
2932
  }
2924
2933
  toJulianDay(e) {
2925
2934
  return Te(e.era, e.year, e.month, e.day);
@@ -4047,14 +4056,14 @@ function Si(t) {
4047
4056
  }
4048
4057
  }
4049
4058
  function nu({ themeName: t = "calendar", tokens: e, state: r, date: n }) {
4050
- const o = F(null), { cellProps: i, buttonProps: a, isSelected: s, isOutsideVisibleRange: l, isDisabled: u, formattedDate: d, isInvalid: p } = ja({ date: n }, r, o), f = r != null && r.highlightedRange ? Pn(n, r == null ? void 0 : r.highlightedRange.start) : s, m = r != null && r.highlightedRange ? Pn(n, r == null ? void 0 : r.highlightedRange.end) : s, { locale: P } = Pa(), g = ii(n, P), b = s && (f || g === 0 || n.day === 1), $ = s && (m || g === 6 || n.day === n.calendar.getDaysInMonth(n)), { focusProps: M, isFocusVisible: C } = ko(), y = I(`${t}.cellContainer`, { ...e, isFocusVisible: C }), R = I(`${t}.cell`, {
4059
+ const o = F(null), { cellProps: i, buttonProps: a, isSelected: s, isOutsideVisibleRange: l, isDisabled: u, formattedDate: d, isInvalid: p } = ja({ date: n }, r, o), f = r != null && r.highlightedRange ? Pn(n, r == null ? void 0 : r.highlightedRange.start) : s, m = r != null && r.highlightedRange ? Pn(n, r == null ? void 0 : r.highlightedRange.end) : s, { locale: P } = Pa(), g = ii(n, P), b = s && (f || g === 0 || n.day === 1), v = s && (m || g === 6 || n.day === n.calendar.getDaysInMonth(n)), { focusProps: R, isFocusVisible: S } = ko(), $ = I(`${t}.cellContainer`, { ...e, isFocusVisible: S }), M = I(`${t}.cell`, {
4051
4060
  ...e,
4052
4061
  isSelected: s,
4053
4062
  isInvalid: p,
4054
4063
  isDisabled: u,
4055
4064
  isRoundedLeft: b,
4056
- isRoundedRight: $
4057
- }), E = I(`${t}.cellDate`, {
4065
+ isRoundedRight: v
4066
+ }), C = I(`${t}.cellDate`, {
4058
4067
  ...e,
4059
4068
  isSelected: s,
4060
4069
  isInvalid: p,
@@ -4062,7 +4071,7 @@ function nu({ themeName: t = "calendar", tokens: e, state: r, date: n }) {
4062
4071
  isSelectionStart: f,
4063
4072
  isSelectionEnd: m
4064
4073
  });
4065
- return /* @__PURE__ */ c("td", { ...i, "aria-disabled": !1, className: y, children: /* @__PURE__ */ c("div", { ...fe(a, M), ref: o, hidden: l, className: R, children: /* @__PURE__ */ c("div", { className: E, children: d }) }) });
4074
+ return /* @__PURE__ */ c("td", { ...i, "aria-disabled": !1, className: $, children: /* @__PURE__ */ c("div", { ...fe(a, R), ref: o, hidden: l, className: M, children: /* @__PURE__ */ c("div", { className: C, children: d }) }) });
4066
4075
  }
4067
4076
  function ou({ themeName: t = "calendar", customTheme: e, tokens: r, state: n, ...o }) {
4068
4077
  const { locale: i } = Dt(), { gridProps: a, headerProps: s, weekDays: l } = Fa({ ...o }, n), u = Pc(n.visibleRange.start, i), d = I(`${t}.calendarTable`, r), p = I(`${t}.dayLabel`, r);
@@ -4170,9 +4179,9 @@ function gh({
4170
4179
  buttonLabel: a,
4171
4180
  ...s
4172
4181
  }) {
4173
- const l = Ba({ ...s }), u = F(null), { groupProps: d, fieldProps: p, labelProps: f, descriptionProps: m, buttonProps: P, dialogProps: g, calendarProps: b } = Na({ ...s }, l, u), { label: $ } = { ...s }, M = I(`${n}.container`, e), C = I(`${n}.dateField`, e), y = I(`${n}.label`, e);
4174
- return /* @__PURE__ */ O("div", { className: M, children: [
4175
- $ && /* @__PURE__ */ c("span", { ...f, children: $ }),
4182
+ const l = Ba({ ...s }), u = F(null), { groupProps: d, fieldProps: p, labelProps: f, descriptionProps: m, buttonProps: P, dialogProps: g, calendarProps: b } = Na({ ...s }, l, u), { label: v } = { ...s }, R = I(`${n}.container`, e), S = I(`${n}.dateField`, e), $ = I(`${n}.label`, e);
4183
+ return /* @__PURE__ */ O("div", { className: R, children: [
4184
+ v && /* @__PURE__ */ c("span", { ...f, children: v }),
4176
4185
  i && /* @__PURE__ */ c("div", { ...m, children: i }),
4177
4186
  /* @__PURE__ */ c("div", { ...d, ref: u, children: /* @__PURE__ */ O(
4178
4187
  Se,
@@ -4183,8 +4192,8 @@ function gh({
4183
4192
  ...P,
4184
4193
  handlePress: P.onPress,
4185
4194
  children: [
4186
- a && /* @__PURE__ */ c("p", { className: y, children: a }),
4187
- /* @__PURE__ */ O("div", { className: C, children: [
4195
+ a && /* @__PURE__ */ c("p", { className: $, children: a }),
4196
+ /* @__PURE__ */ O("div", { className: S, children: [
4188
4197
  /* @__PURE__ */ c(Fn, { ...p }),
4189
4198
  l.validationState === "invalid" && "❌"
4190
4199
  ] }),
@@ -4217,8 +4226,8 @@ const du = (t) => {
4217
4226
  {
4218
4227
  type: "radio",
4219
4228
  ...Io(f, d),
4220
- ref: ($) => {
4221
- s == null || s($), u.current = $;
4229
+ ref: (v) => {
4230
+ s == null || s(v), u.current = v;
4222
4231
  }
4223
4232
  }
4224
4233
  ) }),
@@ -4585,11 +4594,11 @@ function Bt() {
4585
4594
  Object.defineProperty(t, "__esModule", {
4586
4595
  value: !0
4587
4596
  });
4588
- function e(y, R) {
4589
- for (var E in R)
4590
- Object.defineProperty(y, E, {
4597
+ function e($, M) {
4598
+ for (var C in M)
4599
+ Object.defineProperty($, C, {
4591
4600
  enumerable: !0,
4592
- get: R[E]
4601
+ get: M[C]
4593
4602
  });
4594
4603
  }
4595
4604
  e(t, {
@@ -4636,13 +4645,13 @@ function Bt() {
4636
4645
  return b;
4637
4646
  },
4638
4647
  MissingStaticPage: function() {
4639
- return $;
4648
+ return v;
4640
4649
  },
4641
4650
  MiddlewareNotFoundError: function() {
4642
- return M;
4651
+ return R;
4643
4652
  },
4644
4653
  stringifyError: function() {
4645
- return C;
4654
+ return S;
4646
4655
  }
4647
4656
  });
4648
4657
  const r = [
@@ -4653,83 +4662,83 @@ function Bt() {
4653
4662
  "LCP",
4654
4663
  "TTFB"
4655
4664
  ];
4656
- function n(y) {
4657
- let R = !1, E;
4665
+ function n($) {
4666
+ let M = !1, C;
4658
4667
  return function() {
4659
- for (var k = arguments.length, h = new Array(k), S = 0; S < k; S++)
4660
- h[S] = arguments[S];
4661
- return R || (R = !0, E = y(...h)), E;
4668
+ for (var k = arguments.length, h = new Array(k), E = 0; E < k; E++)
4669
+ h[E] = arguments[E];
4670
+ return M || (M = !0, C = $(...h)), C;
4662
4671
  };
4663
4672
  }
4664
- const o = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, i = (y) => o.test(y);
4673
+ const o = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, i = ($) => o.test($);
4665
4674
  function a() {
4666
- const { protocol: y, hostname: R, port: E } = window.location;
4667
- return y + "//" + R + (E ? ":" + E : "");
4675
+ const { protocol: $, hostname: M, port: C } = window.location;
4676
+ return $ + "//" + M + (C ? ":" + C : "");
4668
4677
  }
4669
4678
  function s() {
4670
- const { href: y } = window.location, R = a();
4671
- return y.substring(R.length);
4679
+ const { href: $ } = window.location, M = a();
4680
+ return $.substring(M.length);
4672
4681
  }
4673
- function l(y) {
4674
- return typeof y == "string" ? y : y.displayName || y.name || "Unknown";
4682
+ function l($) {
4683
+ return typeof $ == "string" ? $ : $.displayName || $.name || "Unknown";
4675
4684
  }
4676
- function u(y) {
4677
- return y.finished || y.headersSent;
4685
+ function u($) {
4686
+ return $.finished || $.headersSent;
4678
4687
  }
4679
- function d(y) {
4680
- const R = y.split("?");
4681
- return R[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (R[1] ? "?" + R.slice(1).join("?") : "");
4688
+ function d($) {
4689
+ const M = $.split("?");
4690
+ return M[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (M[1] ? "?" + M.slice(1).join("?") : "");
4682
4691
  }
4683
- async function p(y, R) {
4692
+ async function p($, M) {
4684
4693
  if (process.env.NODE_ENV !== "production") {
4685
- var E;
4686
- if ((E = y.prototype) != null && E.getInitialProps) {
4687
- const S = '"' + l(y) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
4688
- throw new Error(S);
4694
+ var C;
4695
+ if ((C = $.prototype) != null && C.getInitialProps) {
4696
+ const E = '"' + l($) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
4697
+ throw new Error(E);
4689
4698
  }
4690
4699
  }
4691
- const k = R.res || R.ctx && R.ctx.res;
4692
- if (!y.getInitialProps)
4693
- return R.ctx && R.Component ? {
4694
- pageProps: await p(R.Component, R.ctx)
4700
+ const k = M.res || M.ctx && M.ctx.res;
4701
+ if (!$.getInitialProps)
4702
+ return M.ctx && M.Component ? {
4703
+ pageProps: await p(M.Component, M.ctx)
4695
4704
  } : {};
4696
- const h = await y.getInitialProps(R);
4705
+ const h = await $.getInitialProps(M);
4697
4706
  if (k && u(k))
4698
4707
  return h;
4699
4708
  if (!h) {
4700
- const S = '"' + l(y) + '.getInitialProps()" should resolve to an object. But found "' + h + '" instead.';
4701
- throw new Error(S);
4709
+ const E = '"' + l($) + '.getInitialProps()" should resolve to an object. But found "' + h + '" instead.';
4710
+ throw new Error(E);
4702
4711
  }
4703
- return process.env.NODE_ENV !== "production" && Object.keys(h).length === 0 && !R.ctx && console.warn("" + l(y) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"), h;
4712
+ return process.env.NODE_ENV !== "production" && Object.keys(h).length === 0 && !M.ctx && console.warn("" + l($) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"), h;
4704
4713
  }
4705
4714
  const f = typeof performance < "u", m = f && [
4706
4715
  "mark",
4707
4716
  "measure",
4708
4717
  "getEntriesByName"
4709
- ].every((y) => typeof performance[y] == "function");
4718
+ ].every(($) => typeof performance[$] == "function");
4710
4719
  class P extends Error {
4711
4720
  }
4712
4721
  class g extends Error {
4713
4722
  }
4714
4723
  class b extends Error {
4715
- constructor(R) {
4716
- super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + R;
4724
+ constructor(M) {
4725
+ super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + M;
4717
4726
  }
4718
4727
  }
4719
- class $ extends Error {
4720
- constructor(R, E) {
4721
- super(), this.message = "Failed to load static file for page: " + R + " " + E;
4728
+ class v extends Error {
4729
+ constructor(M, C) {
4730
+ super(), this.message = "Failed to load static file for page: " + M + " " + C;
4722
4731
  }
4723
4732
  }
4724
- class M extends Error {
4733
+ class R extends Error {
4725
4734
  constructor() {
4726
4735
  super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
4727
4736
  }
4728
4737
  }
4729
- function C(y) {
4738
+ function S($) {
4730
4739
  return JSON.stringify({
4731
- message: y.message,
4732
- stack: y.stack
4740
+ message: $.message,
4741
+ stack: $.stack
4733
4742
  });
4734
4743
  }
4735
4744
  }(Jt)), Jt;
@@ -5180,10 +5189,10 @@ function Ou() {
5180
5189
  value: !0
5181
5190
  });
5182
5191
  function e(g, b) {
5183
- for (var $ in b)
5184
- Object.defineProperty(g, $, {
5192
+ for (var v in b)
5193
+ Object.defineProperty(g, v, {
5185
5194
  enumerable: !0,
5186
- get: b[$]
5195
+ get: b[v]
5187
5196
  });
5188
5197
  }
5189
5198
  e(t, {
@@ -5201,108 +5210,108 @@ function Ou() {
5201
5210
  function s(g) {
5202
5211
  const b = g.startsWith("[") && g.endsWith("]");
5203
5212
  b && (g = g.slice(1, -1));
5204
- const $ = g.startsWith("...");
5205
- return $ && (g = g.slice(3)), {
5213
+ const v = g.startsWith("...");
5214
+ return v && (g = g.slice(3)), {
5206
5215
  key: g,
5207
- repeat: $,
5216
+ repeat: v,
5208
5217
  optional: b
5209
5218
  };
5210
5219
  }
5211
5220
  function l(g) {
5212
- const b = (0, o.removeTrailingSlash)(g).slice(1).split("/"), $ = {};
5213
- let M = 1;
5221
+ const b = (0, o.removeTrailingSlash)(g).slice(1).split("/"), v = {};
5222
+ let R = 1;
5214
5223
  return {
5215
- parameterizedRoute: b.map((C) => {
5216
- const y = r.INTERCEPTION_ROUTE_MARKERS.find((E) => C.startsWith(E)), R = C.match(/\[((?:\[.*\])|.+)\]/);
5217
- if (y && R) {
5218
- const { key: E, optional: k, repeat: h } = s(R[1]);
5219
- return $[E] = {
5220
- pos: M++,
5224
+ parameterizedRoute: b.map((S) => {
5225
+ const $ = r.INTERCEPTION_ROUTE_MARKERS.find((C) => S.startsWith(C)), M = S.match(/\[((?:\[.*\])|.+)\]/);
5226
+ if ($ && M) {
5227
+ const { key: C, optional: k, repeat: h } = s(M[1]);
5228
+ return v[C] = {
5229
+ pos: R++,
5221
5230
  repeat: h,
5222
5231
  optional: k
5223
- }, "/" + (0, n.escapeStringRegexp)(y) + "([^/]+?)";
5224
- } else if (R) {
5225
- const { key: E, repeat: k, optional: h } = s(R[1]);
5226
- return $[E] = {
5227
- pos: M++,
5232
+ }, "/" + (0, n.escapeStringRegexp)($) + "([^/]+?)";
5233
+ } else if (M) {
5234
+ const { key: C, repeat: k, optional: h } = s(M[1]);
5235
+ return v[C] = {
5236
+ pos: R++,
5228
5237
  repeat: k,
5229
5238
  optional: h
5230
5239
  }, k ? h ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
5231
5240
  } else
5232
- return "/" + (0, n.escapeStringRegexp)(C);
5241
+ return "/" + (0, n.escapeStringRegexp)(S);
5233
5242
  }).join(""),
5234
- groups: $
5243
+ groups: v
5235
5244
  };
5236
5245
  }
5237
5246
  function u(g) {
5238
- const { parameterizedRoute: b, groups: $ } = l(g);
5247
+ const { parameterizedRoute: b, groups: v } = l(g);
5239
5248
  return {
5240
5249
  re: new RegExp("^" + b + "(?:/)?$"),
5241
- groups: $
5250
+ groups: v
5242
5251
  };
5243
5252
  }
5244
5253
  function d() {
5245
5254
  let g = 0;
5246
5255
  return () => {
5247
- let b = "", $ = ++g;
5248
- for (; $ > 0; )
5249
- b += String.fromCharCode(97 + ($ - 1) % 26), $ = Math.floor(($ - 1) / 26);
5256
+ let b = "", v = ++g;
5257
+ for (; v > 0; )
5258
+ b += String.fromCharCode(97 + (v - 1) % 26), v = Math.floor((v - 1) / 26);
5250
5259
  return b;
5251
5260
  };
5252
5261
  }
5253
5262
  function p(g) {
5254
- let { interceptionMarker: b, getSafeRouteKey: $, segment: M, routeKeys: C, keyPrefix: y } = g;
5255
- const { key: R, optional: E, repeat: k } = s(M);
5256
- let h = R.replace(/\W/g, "");
5257
- y && (h = "" + y + h);
5258
- let S = !1;
5259
- (h.length === 0 || h.length > 30) && (S = !0), isNaN(parseInt(h.slice(0, 1))) || (S = !0), S && (h = $()), y ? C[h] = "" + y + R : C[h] = R;
5263
+ let { interceptionMarker: b, getSafeRouteKey: v, segment: R, routeKeys: S, keyPrefix: $ } = g;
5264
+ const { key: M, optional: C, repeat: k } = s(R);
5265
+ let h = M.replace(/\W/g, "");
5266
+ $ && (h = "" + $ + h);
5267
+ let E = !1;
5268
+ (h.length === 0 || h.length > 30) && (E = !0), isNaN(parseInt(h.slice(0, 1))) || (E = !0), E && (h = v()), $ ? S[h] = "" + $ + M : S[h] = M;
5260
5269
  const w = b ? (0, n.escapeStringRegexp)(b) : "";
5261
- return k ? E ? "(?:/" + w + "(?<" + h + ">.+?))?" : "/" + w + "(?<" + h + ">.+?)" : "/" + w + "(?<" + h + ">[^/]+?)";
5270
+ return k ? C ? "(?:/" + w + "(?<" + h + ">.+?))?" : "/" + w + "(?<" + h + ">.+?)" : "/" + w + "(?<" + h + ">[^/]+?)";
5262
5271
  }
5263
5272
  function f(g, b) {
5264
- const $ = (0, o.removeTrailingSlash)(g).slice(1).split("/"), M = d(), C = {};
5273
+ const v = (0, o.removeTrailingSlash)(g).slice(1).split("/"), R = d(), S = {};
5265
5274
  return {
5266
- namedParameterizedRoute: $.map((y) => {
5267
- const R = r.INTERCEPTION_ROUTE_MARKERS.some((k) => y.startsWith(k)), E = y.match(/\[((?:\[.*\])|.+)\]/);
5268
- if (R && E) {
5269
- const [k] = y.split(E[0]);
5275
+ namedParameterizedRoute: v.map(($) => {
5276
+ const M = r.INTERCEPTION_ROUTE_MARKERS.some((k) => $.startsWith(k)), C = $.match(/\[((?:\[.*\])|.+)\]/);
5277
+ if (M && C) {
5278
+ const [k] = $.split(C[0]);
5270
5279
  return p({
5271
- getSafeRouteKey: M,
5280
+ getSafeRouteKey: R,
5272
5281
  interceptionMarker: k,
5273
- segment: E[1],
5274
- routeKeys: C,
5282
+ segment: C[1],
5283
+ routeKeys: S,
5275
5284
  keyPrefix: b ? a : void 0
5276
5285
  });
5277
5286
  } else
5278
- return E ? p({
5279
- getSafeRouteKey: M,
5280
- segment: E[1],
5281
- routeKeys: C,
5287
+ return C ? p({
5288
+ getSafeRouteKey: R,
5289
+ segment: C[1],
5290
+ routeKeys: S,
5282
5291
  keyPrefix: b ? i : void 0
5283
- }) : "/" + (0, n.escapeStringRegexp)(y);
5292
+ }) : "/" + (0, n.escapeStringRegexp)($);
5284
5293
  }).join(""),
5285
- routeKeys: C
5294
+ routeKeys: S
5286
5295
  };
5287
5296
  }
5288
5297
  function m(g, b) {
5289
- const $ = f(g, b);
5298
+ const v = f(g, b);
5290
5299
  return {
5291
5300
  ...u(g),
5292
- namedRegex: "^" + $.namedParameterizedRoute + "(?:/)?$",
5293
- routeKeys: $.routeKeys
5301
+ namedRegex: "^" + v.namedParameterizedRoute + "(?:/)?$",
5302
+ routeKeys: v.routeKeys
5294
5303
  };
5295
5304
  }
5296
5305
  function P(g, b) {
5297
- const { parameterizedRoute: $ } = l(g), { catchAll: M = !0 } = b;
5298
- if ($ === "/")
5306
+ const { parameterizedRoute: v } = l(g), { catchAll: R = !0 } = b;
5307
+ if (v === "/")
5299
5308
  return {
5300
- namedRegex: "^/" + (M ? ".*" : "") + "$"
5309
+ namedRegex: "^/" + (R ? ".*" : "") + "$"
5301
5310
  };
5302
- const { namedParameterizedRoute: C } = f(g, !1);
5303
- let y = M ? "(?:(/.*)?)" : "";
5311
+ const { namedParameterizedRoute: S } = f(g, !1);
5312
+ let $ = R ? "(?:(/.*)?)" : "";
5304
5313
  return {
5305
- namedRegex: "^" + C + y + "$"
5314
+ namedRegex: "^" + S + $ + "$"
5306
5315
  };
5307
5316
  }
5308
5317
  }(ur)), ur;
@@ -5341,7 +5350,7 @@ function Iu() {
5341
5350
  // path delimiter escaped since they are being inserted
5342
5351
  // into the URL and we expect URL encoded segments
5343
5352
  // when parsing dynamic route params
5344
- ($) => encodeURIComponent($)
5353
+ (v) => encodeURIComponent(v)
5345
5354
  ).join("/") : encodeURIComponent(m)) || "/");
5346
5355
  }) || (s = ""), {
5347
5356
  params: p,
@@ -5364,11 +5373,11 @@ function Au() {
5364
5373
  const r = _i(), n = ki(), o = xu(), i = Bt(), a = jt(), s = Ii(), l = _u(), u = Iu();
5365
5374
  function d(p, f, m) {
5366
5375
  let P, g = typeof f == "string" ? f : (0, n.formatWithValidation)(f);
5367
- const b = g.match(/^[a-zA-Z]{1,}:\/\//), $ = b ? g.slice(b[0].length) : g;
5368
- if (($.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
5376
+ const b = g.match(/^[a-zA-Z]{1,}:\/\//), v = b ? g.slice(b[0].length) : g;
5377
+ if ((v.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
5369
5378
  console.error("Invalid href '" + g + "' passed to next/router in page: '" + p.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
5370
- const C = (0, i.normalizeRepeatedSlashes)($);
5371
- g = (b ? b[0] : "") + C;
5379
+ const S = (0, i.normalizeRepeatedSlashes)(v);
5380
+ g = (b ? b[0] : "") + S;
5372
5381
  }
5373
5382
  if (!(0, s.isLocalURL)(g))
5374
5383
  return m ? [
@@ -5380,22 +5389,22 @@ function Au() {
5380
5389
  P = new URL("/", "http://n");
5381
5390
  }
5382
5391
  try {
5383
- const C = new URL(g, P);
5384
- C.pathname = (0, a.normalizePathTrailingSlash)(C.pathname);
5385
- let y = "";
5386
- if ((0, l.isDynamicRoute)(C.pathname) && C.searchParams && m) {
5387
- const E = (0, r.searchParamsToUrlQuery)(C.searchParams), { result: k, params: h } = (0, u.interpolateAs)(C.pathname, C.pathname, E);
5388
- k && (y = (0, n.formatWithValidation)({
5392
+ const S = new URL(g, P);
5393
+ S.pathname = (0, a.normalizePathTrailingSlash)(S.pathname);
5394
+ let $ = "";
5395
+ if ((0, l.isDynamicRoute)(S.pathname) && S.searchParams && m) {
5396
+ const C = (0, r.searchParamsToUrlQuery)(S.searchParams), { result: k, params: h } = (0, u.interpolateAs)(S.pathname, S.pathname, C);
5397
+ k && ($ = (0, n.formatWithValidation)({
5389
5398
  pathname: k,
5390
- hash: C.hash,
5391
- query: (0, o.omit)(E, h)
5399
+ hash: S.hash,
5400
+ query: (0, o.omit)(C, h)
5392
5401
  }));
5393
5402
  }
5394
- const R = C.origin === P.origin ? C.href.slice(C.origin.length) : C.href;
5403
+ const M = S.origin === P.origin ? S.href.slice(S.origin.length) : S.href;
5395
5404
  return m ? [
5396
- R,
5397
- y || R
5398
- ] : R;
5405
+ M,
5406
+ $ || M
5407
+ ] : M;
5399
5408
  } catch {
5400
5409
  return m ? [
5401
5410
  g
@@ -5577,9 +5586,9 @@ function Fu() {
5577
5586
  if (f && (m = i.get(f), m))
5578
5587
  return m;
5579
5588
  const P = /* @__PURE__ */ new Map(), g = new IntersectionObserver((b) => {
5580
- b.forEach(($) => {
5581
- const M = P.get($.target), C = $.isIntersecting || $.intersectionRatio > 0;
5582
- M && C && M(C);
5589
+ b.forEach((v) => {
5590
+ const R = P.get(v.target), S = v.isIntersecting || v.intersectionRatio > 0;
5591
+ R && S && R(S);
5583
5592
  });
5584
5593
  }, d);
5585
5594
  return m = {
@@ -5593,44 +5602,44 @@ function Fu() {
5593
5602
  return g.set(d, p), P.observe(d), function() {
5594
5603
  if (g.delete(d), P.unobserve(d), g.size === 0) {
5595
5604
  P.disconnect(), i.delete(m);
5596
- const $ = a.findIndex((M) => M.root === m.root && M.margin === m.margin);
5597
- $ > -1 && a.splice($, 1);
5605
+ const v = a.findIndex((R) => R.root === m.root && R.margin === m.margin);
5606
+ v > -1 && a.splice(v, 1);
5598
5607
  }
5599
5608
  };
5600
5609
  }
5601
5610
  function u(d) {
5602
5611
  let { rootRef: p, rootMargin: f, disabled: m } = d;
5603
- const P = m || !o, [g, b] = (0, r.useState)(!1), $ = (0, r.useRef)(null), M = (0, r.useCallback)((y) => {
5604
- $.current = y;
5612
+ const P = m || !o, [g, b] = (0, r.useState)(!1), v = (0, r.useRef)(null), R = (0, r.useCallback)(($) => {
5613
+ v.current = $;
5605
5614
  }, []);
5606
5615
  (0, r.useEffect)(() => {
5607
5616
  if (o) {
5608
5617
  if (P || g)
5609
5618
  return;
5610
- const y = $.current;
5611
- if (y && y.tagName)
5612
- return l(y, (E) => E && b(E), {
5619
+ const $ = v.current;
5620
+ if ($ && $.tagName)
5621
+ return l($, (C) => C && b(C), {
5613
5622
  root: p == null ? void 0 : p.current,
5614
5623
  rootMargin: f
5615
5624
  });
5616
5625
  } else if (!g) {
5617
- const y = (0, n.requestIdleCallback)(() => b(!0));
5618
- return () => (0, n.cancelIdleCallback)(y);
5626
+ const $ = (0, n.requestIdleCallback)(() => b(!0));
5627
+ return () => (0, n.cancelIdleCallback)($);
5619
5628
  }
5620
5629
  }, [
5621
5630
  P,
5622
5631
  f,
5623
5632
  p,
5624
5633
  g,
5625
- $.current
5634
+ v.current
5626
5635
  ]);
5627
- const C = (0, r.useCallback)(() => {
5636
+ const S = (0, r.useCallback)(() => {
5628
5637
  b(!1);
5629
5638
  }, []);
5630
5639
  return [
5631
- M,
5640
+ R,
5632
5641
  g,
5633
- C
5642
+ S
5634
5643
  ];
5635
5644
  }
5636
5645
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
@@ -5823,59 +5832,59 @@ function Gu() {
5823
5832
  }), Object.defineProperty(e, "default", {
5824
5833
  enumerable: !0,
5825
5834
  get: function() {
5826
- return R;
5835
+ return M;
5827
5836
  }
5828
5837
  });
5829
5838
  const n = /* @__PURE__ */ ze._(U), o = Au(), i = Ii(), a = ki(), s = Bt(), l = Nu(), u = Ku(), d = Bu(), p = Fu(), f = Hu(), m = Wu(), P = Gu(), g = /* @__PURE__ */ new Set();
5830
- function b(E, k, h, S, w, x) {
5839
+ function b(C, k, h, E, w, x) {
5831
5840
  if (typeof window > "u" || !x && !(0, i.isLocalURL)(k))
5832
5841
  return;
5833
- if (!S.bypassPrefetchedCheck) {
5834
- const v = (
5842
+ if (!E.bypassPrefetchedCheck) {
5843
+ const y = (
5835
5844
  // Let the link's locale prop override the default router locale.
5836
- typeof S.locale < "u" ? S.locale : "locale" in E ? E.locale : void 0
5837
- ), T = k + "%" + h + "%" + v;
5845
+ typeof E.locale < "u" ? E.locale : "locale" in C ? C.locale : void 0
5846
+ ), T = k + "%" + h + "%" + y;
5838
5847
  if (g.has(T))
5839
5848
  return;
5840
5849
  g.add(T);
5841
5850
  }
5842
- const A = x ? E.prefetch(k, w) : E.prefetch(k, h, S);
5843
- Promise.resolve(A).catch((v) => {
5851
+ const A = x ? C.prefetch(k, w) : C.prefetch(k, h, E);
5852
+ Promise.resolve(A).catch((y) => {
5844
5853
  if (process.env.NODE_ENV !== "production")
5845
- throw v;
5854
+ throw y;
5846
5855
  });
5847
5856
  }
5848
- function $(E) {
5849
- const h = E.currentTarget.getAttribute("target");
5850
- return h && h !== "_self" || E.metaKey || E.ctrlKey || E.shiftKey || E.altKey || // triggers resource download
5851
- E.nativeEvent && E.nativeEvent.which === 2;
5857
+ function v(C) {
5858
+ const h = C.currentTarget.getAttribute("target");
5859
+ return h && h !== "_self" || C.metaKey || C.ctrlKey || C.shiftKey || C.altKey || // triggers resource download
5860
+ C.nativeEvent && C.nativeEvent.which === 2;
5852
5861
  }
5853
- function M(E, k, h, S, w, x, A, v, T) {
5854
- const { nodeName: N } = E.currentTarget;
5855
- if (N.toUpperCase() === "A" && ($(E) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.
5862
+ function R(C, k, h, E, w, x, A, y, T) {
5863
+ const { nodeName: N } = C.currentTarget;
5864
+ if (N.toUpperCase() === "A" && (v(C) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.
5856
5865
  !T && !(0, i.isLocalURL)(h)))
5857
5866
  return;
5858
- E.preventDefault();
5867
+ C.preventDefault();
5859
5868
  const _ = () => {
5860
5869
  const z = A ?? !0;
5861
- "beforePopState" in k ? k[w ? "replace" : "push"](h, S, {
5870
+ "beforePopState" in k ? k[w ? "replace" : "push"](h, E, {
5862
5871
  shallow: x,
5863
- locale: v,
5872
+ locale: y,
5864
5873
  scroll: z
5865
- }) : k[w ? "replace" : "push"](S || h, {
5874
+ }) : k[w ? "replace" : "push"](E || h, {
5866
5875
  scroll: z
5867
5876
  });
5868
5877
  };
5869
5878
  T ? n.default.startTransition(_) : _();
5870
5879
  }
5871
- function C(E) {
5872
- return typeof E == "string" ? E : (0, a.formatUrl)(E);
5880
+ function S(C) {
5881
+ return typeof C == "string" ? C : (0, a.formatUrl)(C);
5873
5882
  }
5874
- const R = /* @__PURE__ */ n.default.forwardRef(function(k, h) {
5875
- let S;
5876
- const { href: w, as: x, children: A, prefetch: v = null, passHref: T, replace: N, shallow: G, scroll: _, locale: z, onClick: oe, onMouseEnter: L, onTouchStart: Y, legacyBehavior: V = !1, ...Xe } = k;
5877
- S = A, V && (typeof S == "string" || typeof S == "number") && (S = /* @__PURE__ */ n.default.createElement("a", null, S));
5878
- const W = n.default.useContext(u.RouterContext), Ze = n.default.useContext(d.AppRouterContext), le = W ?? Ze, K = !W, J = v !== !1, ee = v === null ? P.PrefetchKind.AUTO : P.PrefetchKind.FULL;
5883
+ const M = /* @__PURE__ */ n.default.forwardRef(function(k, h) {
5884
+ let E;
5885
+ const { href: w, as: x, children: A, prefetch: y = null, passHref: T, replace: N, shallow: G, scroll: _, locale: z, onClick: oe, onMouseEnter: L, onTouchStart: Y, legacyBehavior: V = !1, ...Xe } = k;
5886
+ E = A, V && (typeof E == "string" || typeof E == "number") && (E = /* @__PURE__ */ n.default.createElement("a", null, E));
5887
+ const W = n.default.useContext(u.RouterContext), Ze = n.default.useContext(d.AppRouterContext), le = W ?? Ze, K = !W, J = y !== !1, ee = y === null ? P.PrefetchKind.AUTO : P.PrefetchKind.FULL;
5879
5888
  if (process.env.NODE_ENV !== "production") {
5880
5889
  let B = function(j) {
5881
5890
  return new Error("Failed prop type: The prop `" + j.key + "` expects a " + j.expected + " in `<Link>`, but got `" + j.actual + "` instead." + (typeof window < "u" ? `
@@ -5942,10 +5951,10 @@ Open your browser's console to view the Component stack trace.` : ""));
5942
5951
  }
5943
5952
  const { href: ne, as: te } = n.default.useMemo(() => {
5944
5953
  if (!W) {
5945
- const Me = C(w);
5954
+ const Me = S(w);
5946
5955
  return {
5947
5956
  href: Me,
5948
- as: x ? C(x) : Me
5957
+ as: x ? S(x) : Me
5949
5958
  };
5950
5959
  }
5951
5960
  const [B, Be] = (0, o.resolveHref)(W, w, !0);
@@ -5963,14 +5972,14 @@ Open your browser's console to view the Component stack trace.` : ""));
5963
5972
  if (process.env.NODE_ENV === "development") {
5964
5973
  oe && console.warn('"onClick" was passed to <Link> with `href` of `' + w + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'), L && console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + w + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
5965
5974
  try {
5966
- Z = n.default.Children.only(S);
5975
+ Z = n.default.Children.only(E);
5967
5976
  } catch {
5968
- throw S ? new Error("Multiple children were passed to <Link> with `href` of `" + w + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window < "u" ? `
5977
+ throw E ? new Error("Multiple children were passed to <Link> with `href` of `" + w + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window < "u" ? `
5969
5978
  Open your browser's console to view the Component stack trace.` : "")) : new Error("No children were passed to <Link> with `href` of `" + w + "` but one child is required https://nextjs.org/docs/messages/link-no-children");
5970
5979
  }
5971
5980
  } else
5972
- Z = n.default.Children.only(S);
5973
- else if (process.env.NODE_ENV === "development" && (S == null ? void 0 : S.type) === "a")
5981
+ Z = n.default.Children.only(E);
5982
+ else if (process.env.NODE_ENV === "development" && (E == null ? void 0 : E.type) === "a")
5974
5983
  throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
5975
5984
  Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);
5976
5985
  const Ee = V ? Z && typeof Z == "object" && Z.ref : h, [tn, rn, nn] = (0, p.useIntersection)({
@@ -6006,7 +6015,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
6006
6015
  onClick(B) {
6007
6016
  if (process.env.NODE_ENV !== "production" && !B)
6008
6017
  throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');
6009
- !V && typeof oe == "function" && oe(B), V && Z.props && typeof Z.props.onClick == "function" && Z.props.onClick(B), le && (B.defaultPrevented || M(B, le, ne, te, N, G, _, z, K));
6018
+ !V && typeof oe == "function" && oe(B), V && Z.props && typeof Z.props.onClick == "function" && Z.props.onClick(B), le && (B.defaultPrevented || R(B, le, ne, te, N, G, _, z, K));
6010
6019
  },
6011
6020
  onMouseEnter(B) {
6012
6021
  !V && typeof L == "function" && L(B), V && Z.props && typeof Z.props.onMouseEnter == "function" && Z.props.onMouseEnter(B), le && ((!J || process.env.NODE_ENV === "development") && K || b(le, ne, te, {
@@ -6038,7 +6047,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
6038
6047
  return V ? /* @__PURE__ */ n.default.cloneElement(Z, et) : /* @__PURE__ */ n.default.createElement("a", {
6039
6048
  ...Xe,
6040
6049
  ...et
6041
- }, S);
6050
+ }, E);
6042
6051
  });
6043
6052
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
6044
6053
  })(kr, kr.exports);
@@ -6254,27 +6263,27 @@ function td(t, e, r) {
6254
6263
  return `data:image/png;base64,${typeof Buffer < "u" ? Buffer.from(new Uint8Array(i)).toString("base64") : btoa(String.fromCharCode(...i))}`;
6255
6264
  }
6256
6265
  function rd(t) {
6257
- let { PI: e, min: r, max: n, cos: o, round: i } = Math, a = t[0] | t[1] << 8 | t[2] << 16, s = t[3] | t[4] << 8, l = (a & 63) / 63, u = (a >> 6 & 63) / 31.5 - 1, d = (a >> 12 & 63) / 31.5 - 1, p = (a >> 18 & 31) / 31, f = a >> 23, m = (s >> 3 & 63) / 63, P = (s >> 9 & 63) / 63, g = s >> 15, b = n(3, g ? f ? 5 : 7 : s & 7), $ = n(3, g ? s & 7 : f ? 5 : 7), M = f ? (t[5] & 15) / 15 : 1, C = (t[5] >> 4) / 15, y = f ? 6 : 5, R = 0, E = (_, z, oe) => {
6266
+ let { PI: e, min: r, max: n, cos: o, round: i } = Math, a = t[0] | t[1] << 8 | t[2] << 16, s = t[3] | t[4] << 8, l = (a & 63) / 63, u = (a >> 6 & 63) / 31.5 - 1, d = (a >> 12 & 63) / 31.5 - 1, p = (a >> 18 & 31) / 31, f = a >> 23, m = (s >> 3 & 63) / 63, P = (s >> 9 & 63) / 63, g = s >> 15, b = n(3, g ? f ? 5 : 7 : s & 7), v = n(3, g ? s & 7 : f ? 5 : 7), R = f ? (t[5] & 15) / 15 : 1, S = (t[5] >> 4) / 15, $ = f ? 6 : 5, M = 0, C = (_, z, oe) => {
6258
6267
  let L = [];
6259
6268
  for (let Y = 0; Y < z; Y++)
6260
6269
  for (let V = Y ? 0 : 1; V * z < _ * (z - Y); V++)
6261
- L.push(((t[y + (R >> 1)] >> ((R++ & 1) << 2) & 15) / 7.5 - 1) * oe);
6270
+ L.push(((t[$ + (M >> 1)] >> ((M++ & 1) << 2) & 15) / 7.5 - 1) * oe);
6262
6271
  return L;
6263
- }, k = E(b, $, p), h = E(3, 3, m * 1.25), S = E(3, 3, P * 1.25), w = f && E(5, 5, C), x = nd(t), A = i(x > 1 ? 32 : 32 * x), v = i(x > 1 ? 32 / x : 32), T = new Uint8Array(A * v * 4), N = [], G = [];
6264
- for (let _ = 0, z = 0; _ < v; _++)
6272
+ }, k = C(b, v, p), h = C(3, 3, m * 1.25), E = C(3, 3, P * 1.25), w = f && C(5, 5, S), x = nd(t), A = i(x > 1 ? 32 : 32 * x), y = i(x > 1 ? 32 / x : 32), T = new Uint8Array(A * y * 4), N = [], G = [];
6273
+ for (let _ = 0, z = 0; _ < y; _++)
6265
6274
  for (let oe = 0; oe < A; oe++, z += 4) {
6266
- let L = l, Y = u, V = d, Xe = M;
6275
+ let L = l, Y = u, V = d, Xe = R;
6267
6276
  for (let K = 0, J = n(b, f ? 5 : 3); K < J; K++)
6268
6277
  N[K] = o(e / A * (oe + 0.5) * K);
6269
- for (let K = 0, J = n($, f ? 5 : 3); K < J; K++)
6270
- G[K] = o(e / v * (_ + 0.5) * K);
6271
- for (let K = 0, J = 0; K < $; K++)
6272
- for (let ee = K ? 0 : 1, ne = G[K] * 2; ee * $ < b * ($ - K); ee++, J++)
6278
+ for (let K = 0, J = n(v, f ? 5 : 3); K < J; K++)
6279
+ G[K] = o(e / y * (_ + 0.5) * K);
6280
+ for (let K = 0, J = 0; K < v; K++)
6281
+ for (let ee = K ? 0 : 1, ne = G[K] * 2; ee * v < b * (v - K); ee++, J++)
6273
6282
  L += k[J] * N[ee] * ne;
6274
6283
  for (let K = 0, J = 0; K < 3; K++)
6275
6284
  for (let ee = K ? 0 : 1, ne = G[K] * 2; ee < 3 - K; ee++, J++) {
6276
6285
  let te = N[ee] * ne;
6277
- Y += h[J] * te, V += S[J] * te;
6286
+ Y += h[J] * te, V += E[J] * te;
6278
6287
  }
6279
6288
  if (f)
6280
6289
  for (let K = 0, J = 0; K < 5; K++)
@@ -6283,7 +6292,7 @@ function rd(t) {
6283
6292
  let W = L - 2 / 3 * Y, Ze = (3 * L - W + V) / 2, le = Ze - V;
6284
6293
  T[z] = n(0, 255 * r(1, Ze)), T[z + 1] = n(0, 255 * r(1, le)), T[z + 2] = n(0, 255 * r(1, W)), T[z + 3] = n(0, 255 * r(1, Xe));
6285
6294
  }
6286
- return { w: A, h: v, rgba: T };
6295
+ return { w: A, h: y, rgba: T };
6287
6296
  }
6288
6297
  function nd(t) {
6289
6298
  let e = t[3], r = t[2] & 128, n = t[4] & 128, o = n ? r ? 5 : 7 : e & 7, i = n ? e & 7 : r ? 5 : 7;