@rpcbase/ui 0.155.0 → 0.156.0

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
@@ -226,7 +226,7 @@ function rm() {
226
226
  return S = S.displayName, S || (S = M.displayName || M.name || "", S = S !== "" ? "ForwardRef(" + S + ")" : "ForwardRef"), S;
227
227
  case E:
228
228
  return M = S.displayName || null, M !== null ? M : e(S.type) || "Memo";
229
- case P:
229
+ case T:
230
230
  M = S._payload, S = S._init;
231
231
  try {
232
232
  return e(S(M));
@@ -257,7 +257,7 @@ function rm() {
257
257
  }
258
258
  function r(S) {
259
259
  if (S === v) return "<>";
260
- if (typeof S == "object" && S !== null && S.$$typeof === P)
260
+ if (typeof S == "object" && S !== null && S.$$typeof === T)
261
261
  return "<...>";
262
262
  try {
263
263
  var M = e(S);
@@ -299,14 +299,14 @@ function rm() {
299
299
  )), S = this.props.ref, S !== void 0 ? S : null;
300
300
  }
301
301
  function u(S, M, U, F, J, K) {
302
- var T = U.ref;
302
+ var P = U.ref;
303
303
  return S = {
304
304
  $$typeof: y,
305
305
  type: S,
306
306
  key: M,
307
307
  props: U,
308
308
  _owner: F
309
- }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(S, "ref", {
309
+ }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(S, "ref", {
310
310
  enumerable: !1,
311
311
  get: l
312
312
  }) : Object.defineProperty(S, "ref", { enumerable: !1, value: null }), S._store = {}, Object.defineProperty(S._store, "validated", {
@@ -332,24 +332,24 @@ function rm() {
332
332
  }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
333
333
  }
334
334
  function c(S, M, U, F, J, K) {
335
- var T = M.children;
336
- if (T !== void 0)
335
+ var P = M.children;
336
+ if (P !== void 0)
337
337
  if (F)
338
- if (Y(T)) {
339
- for (F = 0; F < T.length; F++)
340
- d(T[F]);
341
- Object.freeze && Object.freeze(T);
338
+ if (Y(P)) {
339
+ for (F = 0; F < P.length; F++)
340
+ d(P[F]);
341
+ Object.freeze && Object.freeze(P);
342
342
  } else
343
343
  console.error(
344
344
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
345
345
  );
346
- else d(T);
346
+ else d(P);
347
347
  if (B.call(M, "key")) {
348
- T = e(S);
348
+ P = e(S);
349
349
  var R = Object.keys(M).filter(function(L) {
350
350
  return L !== "key";
351
351
  });
352
- F = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", _[T + F] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
352
+ F = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", _[P + F] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
353
353
  `A props object containing a "key" prop is being spread into JSX:
354
354
  let props = %s;
355
355
  <%s {...props} />
@@ -357,22 +357,22 @@ React keys must be passed directly to JSX without using spread:
357
357
  let props = %s;
358
358
  <%s key={someKey} {...props} />`,
359
359
  F,
360
- T,
360
+ P,
361
361
  R,
362
- T
363
- ), _[T + F] = !0);
362
+ P
363
+ ), _[P + F] = !0);
364
364
  }
365
- if (T = null, U !== void 0 && (n(U), T = "" + U), s(M) && (n(M.key), T = "" + M.key), "key" in M) {
365
+ if (P = null, U !== void 0 && (n(U), P = "" + U), s(M) && (n(M.key), P = "" + M.key), "key" in M) {
366
366
  U = {};
367
367
  for (var z in M)
368
368
  z !== "key" && (U[z] = M[z]);
369
369
  } else U = M;
370
- return T && a(
370
+ return P && a(
371
371
  U,
372
372
  typeof S == "function" ? S.displayName || S.name || "Unknown" : S
373
373
  ), u(
374
374
  S,
375
- T,
375
+ P,
376
376
  U,
377
377
  o(),
378
378
  J,
@@ -380,12 +380,12 @@ React keys must be passed directly to JSX without using spread:
380
380
  );
381
381
  }
382
382
  function d(S) {
383
- h(S) ? S._store && (S._store.validated = 1) : typeof S == "object" && S !== null && S.$$typeof === P && (S._payload.status === "fulfilled" ? h(S._payload.value) && S._payload.value._store && (S._payload.value._store.validated = 1) : S._store && (S._store.validated = 1));
383
+ h(S) ? S._store && (S._store.validated = 1) : typeof S == "object" && S !== null && S.$$typeof === T && (S._payload.status === "fulfilled" ? h(S._payload.value) && S._payload.value._store && (S._payload.value._store.validated = 1) : S._store && (S._store.validated = 1));
384
384
  }
385
385
  function h(S) {
386
386
  return typeof S == "object" && S !== null && S.$$typeof === y;
387
387
  }
388
- var m = q, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), $ = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), k = /* @__PURE__ */ Symbol.for("react.suspense"), N = /* @__PURE__ */ Symbol.for("react.suspense_list"), E = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), O = /* @__PURE__ */ Symbol.for("react.activity"), j = /* @__PURE__ */ Symbol.for("react.client.reference"), I = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, Y = Array.isArray, X = console.createTask ? console.createTask : function() {
388
+ var m = q, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), $ = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), k = /* @__PURE__ */ Symbol.for("react.suspense"), N = /* @__PURE__ */ Symbol.for("react.suspense_list"), E = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), O = /* @__PURE__ */ Symbol.for("react.activity"), j = /* @__PURE__ */ Symbol.for("react.client.reference"), I = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, Y = Array.isArray, X = console.createTask ? console.createTask : function() {
389
389
  return null;
390
390
  };
391
391
  m = {
@@ -742,7 +742,7 @@ const im = (e, t) => {
742
742
  "bottom-left",
743
743
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
744
744
  "left-bottom"
745
- ], w = () => [...C(), oe, re], k = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], E = () => [oe, re, l], P = () => [nr, "full", "auto", ...E()], O = () => [Pn, "none", "subgrid", oe, re], j = () => ["auto", {
745
+ ], w = () => [...C(), oe, re], k = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], E = () => [oe, re, l], T = () => [nr, "full", "auto", ...E()], O = () => [Pn, "none", "subgrid", oe, re], j = () => ["auto", {
746
746
  span: ["full", Pn, oe, re]
747
747
  }, Pn, oe, re], I = () => [Pn, "auto", oe, re], B = () => ["auto", "min", "max", "fr", oe, re], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], X = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...E()], G = () => [nr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], D = () => [e, oe, re], A = () => [...C(), Hl, Yl, {
748
748
  position: [oe, re]
@@ -758,7 +758,7 @@ const im = (e, t) => {
758
758
  u,
759
759
  oe,
760
760
  re
761
- ], F = () => ["", De, Fr, Yn], J = () => ["solid", "dashed", "dotted", "double"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => [De, ls, Hl, Yl], R = () => [
761
+ ], F = () => ["", De, Fr, Yn], J = () => ["solid", "dashed", "dotted", "double"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => [De, ls, Hl, Yl], R = () => [
762
762
  // Deprecated since Tailwind CSS v4.0.0
763
763
  "",
764
764
  "none",
@@ -943,63 +943,63 @@ const im = (e, t) => {
943
943
  * @see https://tailwindcss.com/docs/top-right-bottom-left
944
944
  */
945
945
  inset: [{
946
- inset: P()
946
+ inset: T()
947
947
  }],
948
948
  /**
949
949
  * Right / Left
950
950
  * @see https://tailwindcss.com/docs/top-right-bottom-left
951
951
  */
952
952
  "inset-x": [{
953
- "inset-x": P()
953
+ "inset-x": T()
954
954
  }],
955
955
  /**
956
956
  * Top / Bottom
957
957
  * @see https://tailwindcss.com/docs/top-right-bottom-left
958
958
  */
959
959
  "inset-y": [{
960
- "inset-y": P()
960
+ "inset-y": T()
961
961
  }],
962
962
  /**
963
963
  * Start
964
964
  * @see https://tailwindcss.com/docs/top-right-bottom-left
965
965
  */
966
966
  start: [{
967
- start: P()
967
+ start: T()
968
968
  }],
969
969
  /**
970
970
  * End
971
971
  * @see https://tailwindcss.com/docs/top-right-bottom-left
972
972
  */
973
973
  end: [{
974
- end: P()
974
+ end: T()
975
975
  }],
976
976
  /**
977
977
  * Top
978
978
  * @see https://tailwindcss.com/docs/top-right-bottom-left
979
979
  */
980
980
  top: [{
981
- top: P()
981
+ top: T()
982
982
  }],
983
983
  /**
984
984
  * Right
985
985
  * @see https://tailwindcss.com/docs/top-right-bottom-left
986
986
  */
987
987
  right: [{
988
- right: P()
988
+ right: T()
989
989
  }],
990
990
  /**
991
991
  * Bottom
992
992
  * @see https://tailwindcss.com/docs/top-right-bottom-left
993
993
  */
994
994
  bottom: [{
995
- bottom: P()
995
+ bottom: T()
996
996
  }],
997
997
  /**
998
998
  * Left
999
999
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1000
1000
  */
1001
1001
  left: [{
1002
- left: P()
1002
+ left: T()
1003
1003
  }],
1004
1004
  /**
1005
1005
  * Visibility
@@ -2250,10 +2250,10 @@ const im = (e, t) => {
2250
2250
  "mask-linear": [De]
2251
2251
  }],
2252
2252
  "mask-image-linear-from-pos": [{
2253
- "mask-linear-from": T()
2253
+ "mask-linear-from": P()
2254
2254
  }],
2255
2255
  "mask-image-linear-to-pos": [{
2256
- "mask-linear-to": T()
2256
+ "mask-linear-to": P()
2257
2257
  }],
2258
2258
  "mask-image-linear-from-color": [{
2259
2259
  "mask-linear-from": D()
@@ -2262,10 +2262,10 @@ const im = (e, t) => {
2262
2262
  "mask-linear-to": D()
2263
2263
  }],
2264
2264
  "mask-image-t-from-pos": [{
2265
- "mask-t-from": T()
2265
+ "mask-t-from": P()
2266
2266
  }],
2267
2267
  "mask-image-t-to-pos": [{
2268
- "mask-t-to": T()
2268
+ "mask-t-to": P()
2269
2269
  }],
2270
2270
  "mask-image-t-from-color": [{
2271
2271
  "mask-t-from": D()
@@ -2274,10 +2274,10 @@ const im = (e, t) => {
2274
2274
  "mask-t-to": D()
2275
2275
  }],
2276
2276
  "mask-image-r-from-pos": [{
2277
- "mask-r-from": T()
2277
+ "mask-r-from": P()
2278
2278
  }],
2279
2279
  "mask-image-r-to-pos": [{
2280
- "mask-r-to": T()
2280
+ "mask-r-to": P()
2281
2281
  }],
2282
2282
  "mask-image-r-from-color": [{
2283
2283
  "mask-r-from": D()
@@ -2286,10 +2286,10 @@ const im = (e, t) => {
2286
2286
  "mask-r-to": D()
2287
2287
  }],
2288
2288
  "mask-image-b-from-pos": [{
2289
- "mask-b-from": T()
2289
+ "mask-b-from": P()
2290
2290
  }],
2291
2291
  "mask-image-b-to-pos": [{
2292
- "mask-b-to": T()
2292
+ "mask-b-to": P()
2293
2293
  }],
2294
2294
  "mask-image-b-from-color": [{
2295
2295
  "mask-b-from": D()
@@ -2298,10 +2298,10 @@ const im = (e, t) => {
2298
2298
  "mask-b-to": D()
2299
2299
  }],
2300
2300
  "mask-image-l-from-pos": [{
2301
- "mask-l-from": T()
2301
+ "mask-l-from": P()
2302
2302
  }],
2303
2303
  "mask-image-l-to-pos": [{
2304
- "mask-l-to": T()
2304
+ "mask-l-to": P()
2305
2305
  }],
2306
2306
  "mask-image-l-from-color": [{
2307
2307
  "mask-l-from": D()
@@ -2310,10 +2310,10 @@ const im = (e, t) => {
2310
2310
  "mask-l-to": D()
2311
2311
  }],
2312
2312
  "mask-image-x-from-pos": [{
2313
- "mask-x-from": T()
2313
+ "mask-x-from": P()
2314
2314
  }],
2315
2315
  "mask-image-x-to-pos": [{
2316
- "mask-x-to": T()
2316
+ "mask-x-to": P()
2317
2317
  }],
2318
2318
  "mask-image-x-from-color": [{
2319
2319
  "mask-x-from": D()
@@ -2322,10 +2322,10 @@ const im = (e, t) => {
2322
2322
  "mask-x-to": D()
2323
2323
  }],
2324
2324
  "mask-image-y-from-pos": [{
2325
- "mask-y-from": T()
2325
+ "mask-y-from": P()
2326
2326
  }],
2327
2327
  "mask-image-y-to-pos": [{
2328
- "mask-y-to": T()
2328
+ "mask-y-to": P()
2329
2329
  }],
2330
2330
  "mask-image-y-from-color": [{
2331
2331
  "mask-y-from": D()
@@ -2337,10 +2337,10 @@ const im = (e, t) => {
2337
2337
  "mask-radial": [oe, re]
2338
2338
  }],
2339
2339
  "mask-image-radial-from-pos": [{
2340
- "mask-radial-from": T()
2340
+ "mask-radial-from": P()
2341
2341
  }],
2342
2342
  "mask-image-radial-to-pos": [{
2343
- "mask-radial-to": T()
2343
+ "mask-radial-to": P()
2344
2344
  }],
2345
2345
  "mask-image-radial-from-color": [{
2346
2346
  "mask-radial-from": D()
@@ -2364,10 +2364,10 @@ const im = (e, t) => {
2364
2364
  "mask-conic": [De]
2365
2365
  }],
2366
2366
  "mask-image-conic-from-pos": [{
2367
- "mask-conic-from": T()
2367
+ "mask-conic-from": P()
2368
2368
  }],
2369
2369
  "mask-image-conic-to-pos": [{
2370
- "mask-conic-to": T()
2370
+ "mask-conic-to": P()
2371
2371
  }],
2372
2372
  "mask-image-conic-from-color": [{
2373
2373
  "mask-conic-from": D()
@@ -3281,7 +3281,7 @@ const Gm = /* @__PURE__ */ new Set([
3281
3281
  locationRestriction: c,
3282
3282
  allowedTypes: d
3283
3283
  }) => {
3284
- const [h, m] = Ce(r ?? ""), [y, g] = Ce([]), [v, b] = Ce(!1), [x, $] = Ce(-1), C = fe(null), w = fe(null), k = fe(!1), N = fe(!1), E = fe(null), P = fe([]), O = fe("smooth"), j = J0("places", u), I = Ne(() => {
3284
+ const [h, m] = Ce(r ?? ""), [y, g] = Ce([]), [v, b] = Ce(!1), [x, $] = Ce(-1), C = fe(null), w = fe(null), k = fe(!1), N = fe(!1), E = fe(null), T = fe([]), O = fe("smooth"), j = J0("places", u), I = Ne(() => {
3285
3285
  if (!d)
3286
3286
  return Gm;
3287
3287
  const D = /* @__PURE__ */ new Set();
@@ -3319,7 +3319,7 @@ const Gm = /* @__PURE__ */ new Set([
3319
3319
  c && (U.locationRestriction = c), S.fetchAutocompleteSuggestions(U).then((F) => {
3320
3320
  if (!D)
3321
3321
  return;
3322
- const J = F.suggestions.map((z) => z.placePrediction).filter((z) => !!z), K = eg(J, I), T = K[0], R = T && K.length === 1 && tg(T, h);
3322
+ const J = F.suggestions.map((z) => z.placePrediction).filter((z) => !!z), K = eg(J, I), P = K[0], R = P && K.length === 1 && tg(P, h);
3323
3323
  if (!N.current && R) {
3324
3324
  g(K), b(!1);
3325
3325
  return;
@@ -3360,7 +3360,7 @@ const Gm = /* @__PURE__ */ new Set([
3360
3360
  O.current = "smooth";
3361
3361
  return;
3362
3362
  }
3363
- const D = P.current[x], A = w.current;
3363
+ const D = T.current[x], A = w.current;
3364
3364
  if (!D || !A) {
3365
3365
  O.current = "smooth";
3366
3366
  return;
@@ -3372,7 +3372,7 @@ const Gm = /* @__PURE__ */ new Set([
3372
3372
  block: "nearest",
3373
3373
  behavior: _
3374
3374
  });
3375
- }, [x, v]), P.current.length = y.length, /* @__PURE__ */ p.jsxs("div", { className: "relative", children: [
3375
+ }, [x, v]), T.current.length = y.length, /* @__PURE__ */ p.jsxs("div", { className: "relative", children: [
3376
3376
  G && /* @__PURE__ */ p.jsx(
3377
3377
  "input",
3378
3378
  {
@@ -3414,7 +3414,7 @@ const Gm = /* @__PURE__ */ new Set([
3414
3414
  "li",
3415
3415
  {
3416
3416
  ref: (_) => {
3417
- P.current[A] = _;
3417
+ T.current[A] = _;
3418
3418
  },
3419
3419
  className: Pi(
3420
3420
  "cursor-pointer px-3 py-2 text-sm text-gray-700 hover:bg-gray-100",
@@ -5451,7 +5451,7 @@ function ov(e, t, n, r, o) {
5451
5451
  [Je.today]: []
5452
5452
  }, C = {};
5453
5453
  for (const w of e) {
5454
- const { date: k, displayMonth: N } = w, E = !!(N && !h(k, N)), P = !!(b && y(k, b)), O = !!(x && v(k, x)), j = !!(i && wn(k, i, o)), I = !!(s && wn(k, s, o)) || P || O || // Broadcast calendar will show outside days as default
5454
+ const { date: k, displayMonth: N } = w, E = !!(N && !h(k, N)), T = !!(b && y(k, b)), O = !!(x && v(k, x)), j = !!(i && wn(k, i, o)), I = !!(s && wn(k, s, o)) || T || O || // Broadcast calendar will show outside days as default
5455
5455
  !u && !l && E || u && l === !1 && E, B = d(k, c);
5456
5456
  E && $.outside.push(w), j && $.disabled.push(w), I && $.hidden.push(w), B && $.today.push(w), a && Object.keys(a).forEach((Y) => {
5457
5457
  const X = a?.[Y];
@@ -5467,11 +5467,11 @@ function ov(e, t, n, r, o) {
5467
5467
  [Je.today]: !1
5468
5468
  }, N = {};
5469
5469
  for (const E in $) {
5470
- const P = $[E];
5471
- k[E] = P.some((O) => O === w);
5470
+ const T = $[E];
5471
+ k[E] = T.some((O) => O === w);
5472
5472
  }
5473
5473
  for (const E in C)
5474
- N[E] = C[E].some((P) => P === w);
5474
+ N[E] = C[E].some((T) => T === w);
5475
5475
  return {
5476
5476
  ...k,
5477
5477
  // custom modifiers should override all the previous ones
@@ -5801,8 +5801,8 @@ function Pv(e, t, { classNames: n, months: r, focused: o, dateLib: i }) {
5801
5801
  l.current = !1, e.current && (e.current.style.isolation = ""), x && (x.style.zIndex = ""), k && k.classList.remove(h), N && N.classList.remove(m), $.style.position = "", $.style.overflow = "", $.contains(w) && $.removeChild(w);
5802
5802
  };
5803
5803
  w.style.pointerEvents = "none", w.style.position = "absolute", w.style.overflow = "hidden", w.setAttribute("aria-hidden", "true");
5804
- const P = Tv(w);
5805
- P && (P.style.opacity = "0");
5804
+ const T = Tv(w);
5805
+ T && (T.style.opacity = "0");
5806
5806
  const O = fs(w);
5807
5807
  O && (O.classList.add(d ? n[Pt.caption_before_exit] : n[Pt.caption_after_exit]), O.addEventListener("animationend", E));
5808
5808
  const j = hs(w);
@@ -5812,12 +5812,12 @@ function Pv(e, t, { classNames: n, months: r, focused: o, dateLib: i }) {
5812
5812
  });
5813
5813
  }
5814
5814
  function Av(e, t, n, r) {
5815
- const o = e[0], i = e[e.length - 1], { ISOWeek: s, fixedWeeks: a, broadcastCalendar: l } = n ?? {}, { addDays: u, differenceInCalendarDays: c, differenceInCalendarMonths: d, endOfBroadcastWeek: h, endOfISOWeek: m, endOfMonth: y, endOfWeek: g, isAfter: v, startOfBroadcastWeek: b, startOfISOWeek: x, startOfWeek: $ } = r, C = l ? b(o, r) : s ? x(o) : $(o), w = l ? h(i) : s ? m(y(i)) : g(y(i)), k = t && (l ? h(t) : s ? m(t) : g(t)), N = k && v(w, k) ? k : w, E = c(N, C), P = d(i, o) + 1, O = [];
5815
+ const o = e[0], i = e[e.length - 1], { ISOWeek: s, fixedWeeks: a, broadcastCalendar: l } = n ?? {}, { addDays: u, differenceInCalendarDays: c, differenceInCalendarMonths: d, endOfBroadcastWeek: h, endOfISOWeek: m, endOfMonth: y, endOfWeek: g, isAfter: v, startOfBroadcastWeek: b, startOfISOWeek: x, startOfWeek: $ } = r, C = l ? b(o, r) : s ? x(o) : $(o), w = l ? h(i) : s ? m(y(i)) : g(y(i)), k = t && (l ? h(t) : s ? m(t) : g(t)), N = k && v(w, k) ? k : w, E = c(N, C), T = d(i, o) + 1, O = [];
5816
5816
  for (let B = 0; B <= E; B++) {
5817
5817
  const Y = u(C, B);
5818
5818
  O.push(Y);
5819
5819
  }
5820
- const I = (l ? 35 : 42) * P;
5820
+ const I = (l ? 35 : 42) * T;
5821
5821
  if (a && O.length < I) {
5822
5822
  const B = I - O.length;
5823
5823
  for (let Y = 0; Y < B; Y++) {
@@ -5859,14 +5859,14 @@ function Rv(e, t, n, r) {
5859
5859
  const b = n.broadcastCalendar ? d(v, r) : n.ISOWeek ? h(v) : m(v), x = n.broadcastCalendar ? i(v) : n.ISOWeek ? s(a(v)) : l(a(v)), $ = t.filter((N) => N >= b && N <= x), C = n.broadcastCalendar ? 35 : 42;
5860
5860
  if (n.fixedWeeks && $.length < C) {
5861
5861
  const N = t.filter((E) => {
5862
- const P = C - $.length;
5863
- return E > x && E <= o(x, P);
5862
+ const T = C - $.length;
5863
+ return E > x && E <= o(x, T);
5864
5864
  });
5865
5865
  $.push(...N);
5866
5866
  }
5867
5867
  const w = $.reduce((N, E) => {
5868
- const P = n.ISOWeek ? u(E) : c(E), O = N.find((I) => I.weekNumber === P), j = new Od(E, v, r);
5869
- return O ? O.days.push(j) : N.push(new T1(P, [j])), N;
5868
+ const T = n.ISOWeek ? u(E) : c(E), O = N.find((I) => I.weekNumber === T), j = new Od(E, v, r);
5869
+ return O ? O.days.push(j) : N.push(new T1(T, [j])), N;
5870
5870
  }, []), k = new D1(v, w);
5871
5871
  return g.push(k), g;
5872
5872
  }, []);
@@ -5928,12 +5928,12 @@ function Bv(e, t) {
5928
5928
  fixedWeeks: e.fixedWeeks,
5929
5929
  ISOWeek: e.ISOWeek,
5930
5930
  reverseMonths: e.reverseMonths
5931
- }, t), N = Lv(k), E = Mv(k), P = jv(a, n, e, t), O = Fv(a, r, e, t);
5931
+ }, t), N = Lv(k), E = Mv(k), T = jv(a, n, e, t), O = Fv(a, r, e, t);
5932
5932
  return {
5933
5933
  months: k,
5934
5934
  weeks: N,
5935
5935
  days: E,
5936
- previousMonth: P,
5936
+ previousMonth: T,
5937
5937
  nextMonth: O
5938
5938
  };
5939
5939
  }, [
@@ -6208,7 +6208,7 @@ function Zv(e) {
6208
6208
  t.classNames
6209
6209
  ]);
6210
6210
  t.today || (t = { ...t, today: s.today() });
6211
- const { captionLayout: u, mode: c, navLayout: d, numberOfMonths: h = 1, onDayBlur: m, onDayClick: y, onDayFocus: g, onDayKeyDown: v, onDayMouseEnter: b, onDayMouseLeave: x, onNextClick: $, onPrevClick: C, showWeekNumber: w, styles: k } = t, { formatCaption: N, formatDay: E, formatMonthDropdown: P, formatWeekNumber: O, formatWeekNumberHeader: j, formatWeekdayName: I, formatYearDropdown: B } = o, Y = Bv(t, s), { days: X, months: H, navStart: G, navEnd: D, previousMonth: A, nextMonth: _, goToMonth: S } = Y, M = ov(X, t, G, D, s), { isSelected: U, select: F, selected: J } = Xv(t, s) ?? {}, { blur: K, focused: T, isFocusTarget: R, moveFocus: z, setFocused: L } = Uv(t, Y, M, U ?? (() => !1), s), { labelDayButton: Q, labelGridcell: W, labelGrid: me, labelMonthDropdown: ae, labelNav: V, labelPrevious: te, labelNext: ie, labelWeekday: Ee, labelWeekNumber: Oe, labelWeekNumberHeader: be, labelYearDropdown: ke } = i, he = Ne(() => Ev(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), ge = c !== void 0 || y !== void 0, Fe = Ue(() => {
6211
+ const { captionLayout: u, mode: c, navLayout: d, numberOfMonths: h = 1, onDayBlur: m, onDayClick: y, onDayFocus: g, onDayKeyDown: v, onDayMouseEnter: b, onDayMouseLeave: x, onNextClick: $, onPrevClick: C, showWeekNumber: w, styles: k } = t, { formatCaption: N, formatDay: E, formatMonthDropdown: T, formatWeekNumber: O, formatWeekNumberHeader: j, formatWeekdayName: I, formatYearDropdown: B } = o, Y = Bv(t, s), { days: X, months: H, navStart: G, navEnd: D, previousMonth: A, nextMonth: _, goToMonth: S } = Y, M = ov(X, t, G, D, s), { isSelected: U, select: F, selected: J } = Xv(t, s) ?? {}, { blur: K, focused: P, isFocusTarget: R, moveFocus: z, setFocused: L } = Uv(t, Y, M, U ?? (() => !1), s), { labelDayButton: Q, labelGridcell: W, labelGrid: me, labelMonthDropdown: ae, labelNav: V, labelPrevious: te, labelNext: ie, labelWeekday: Ee, labelWeekNumber: Oe, labelWeekNumberHeader: be, labelYearDropdown: ke } = i, he = Ne(() => Ev(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), ge = c !== void 0 || y !== void 0, Fe = Ue(() => {
6212
6212
  A && (S(A), C?.(A));
6213
6213
  }, [A, S, C]), qe = Ue(() => {
6214
6214
  _ && (S(_), $?.(_));
@@ -6258,7 +6258,7 @@ function Zv(e) {
6258
6258
  Pv(Ft, !!t.animate, {
6259
6259
  classNames: l,
6260
6260
  months: H,
6261
- focused: T,
6261
+ focused: P,
6262
6262
  dateLib: s
6263
6263
  });
6264
6264
  const hn = {
@@ -6307,7 +6307,7 @@ function Zv(e) {
6307
6307
  r.DropdownNav,
6308
6308
  { className: l[ce.Dropdowns], style: k?.[ce.Dropdowns] },
6309
6309
  (() => {
6310
- const ne = u === "dropdown" || u === "dropdown-months" ? q.createElement(r.MonthsDropdown, { key: "month", className: l[ce.MonthsDropdown], "aria-label": ae(), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: ut(xe.date), options: Cv(xe.date, G, D, o, s), style: k?.[ce.Dropdown], value: s.getMonth(xe.date) }) : q.createElement("span", { key: "month" }, P(xe.date, s)), le = u === "dropdown" || u === "dropdown-years" ? q.createElement(r.YearsDropdown, { key: "year", className: l[ce.YearsDropdown], "aria-label": ke(s.options), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: It(xe.date), options: kv(G, D, o, s, !!t.reverseYears), style: k?.[ce.Dropdown], value: s.getYear(xe.date) }) : q.createElement("span", { key: "year" }, B(xe.date, s));
6310
+ const ne = u === "dropdown" || u === "dropdown-months" ? q.createElement(r.MonthsDropdown, { key: "month", className: l[ce.MonthsDropdown], "aria-label": ae(), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: ut(xe.date), options: Cv(xe.date, G, D, o, s), style: k?.[ce.Dropdown], value: s.getMonth(xe.date) }) : q.createElement("span", { key: "month" }, T(xe.date, s)), le = u === "dropdown" || u === "dropdown-years" ? q.createElement(r.YearsDropdown, { key: "year", className: l[ce.YearsDropdown], "aria-label": ke(s.options), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: It(xe.date), options: kv(G, D, o, s, !!t.reverseYears), style: k?.[ce.Dropdown], value: s.getYear(xe.date) }) : q.createElement("span", { key: "year" }, B(xe.date, s));
6311
6311
  return s.getMonthYearOrder() === "year-first" ? [le, ne] : [ne, le];
6312
6312
  })(),
6313
6313
  q.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -6346,7 +6346,7 @@ function Zv(e) {
6346
6346
  }), className: l[ce.WeekNumber], scope: "row", role: "rowheader" }, O(ne.weekNumber, s)),
6347
6347
  ne.days.map((le) => {
6348
6348
  const { date: Ie } = le, ve = M(le);
6349
- if (ve[Je.focused] = !ve.hidden && !!T?.isEqualTo(le), ve[qt.selected] = U?.(Ie) || ve.selected, Ai(J)) {
6349
+ if (ve[Je.focused] = !ve.hidden && !!P?.isEqualTo(le), ve[qt.selected] = U?.(Ie) || ve.selected, Ai(J)) {
6350
6350
  const { from: rt, to: Dt } = J;
6351
6351
  ve[qt.range_start] = !!(rt && Dt && s.isSameDay(Ie, rt)), ve[qt.range_end] = !!(rt && Dt && s.isSameDay(Ie, Dt)), ve[qt.range_middle] = $n(J, Ie, !0, s);
6352
6352
  }
@@ -8823,7 +8823,7 @@ function cy() {
8823
8823
  }
8824
8824
  }
8825
8825
  }
8826
- var w = l, k = u, N = a, E = s, P = t, O = c, j = r, I = y, B = m, Y = n, X = i, H = o, G = d, D = !1;
8826
+ var w = l, k = u, N = a, E = s, T = t, O = c, j = r, I = y, B = m, Y = n, X = i, H = o, G = d, D = !1;
8827
8827
  function A(W) {
8828
8828
  return D || (D = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(W) || C(W) === l;
8829
8829
  }
@@ -8848,7 +8848,7 @@ function cy() {
8848
8848
  function K(W) {
8849
8849
  return C(W) === y;
8850
8850
  }
8851
- function T(W) {
8851
+ function P(W) {
8852
8852
  return C(W) === m;
8853
8853
  }
8854
8854
  function R(W) {
@@ -8863,7 +8863,7 @@ function cy() {
8863
8863
  function Q(W) {
8864
8864
  return C(W) === d;
8865
8865
  }
8866
- We.AsyncMode = w, We.ConcurrentMode = k, We.ContextConsumer = N, We.ContextProvider = E, We.Element = P, We.ForwardRef = O, We.Fragment = j, We.Lazy = I, We.Memo = B, We.Portal = Y, We.Profiler = X, We.StrictMode = H, We.Suspense = G, We.isAsyncMode = A, We.isConcurrentMode = _, We.isContextConsumer = S, We.isContextProvider = M, We.isElement = U, We.isForwardRef = F, We.isFragment = J, We.isLazy = K, We.isMemo = T, We.isPortal = R, We.isProfiler = z, We.isStrictMode = L, We.isSuspense = Q, We.isValidElementType = $, We.typeOf = C;
8866
+ We.AsyncMode = w, We.ConcurrentMode = k, We.ContextConsumer = N, We.ContextProvider = E, We.Element = T, We.ForwardRef = O, We.Fragment = j, We.Lazy = I, We.Memo = B, We.Portal = Y, We.Profiler = X, We.StrictMode = H, We.Suspense = G, We.isAsyncMode = A, We.isConcurrentMode = _, We.isContextConsumer = S, We.isContextProvider = M, We.isElement = U, We.isForwardRef = F, We.isFragment = J, We.isLazy = K, We.isMemo = P, We.isPortal = R, We.isProfiler = z, We.isStrictMode = L, We.isSuspense = Q, We.isValidElementType = $, We.typeOf = C;
8867
8867
  })()), We;
8868
8868
  }
8869
8869
  var uu;
@@ -9017,7 +9017,7 @@ function hy() {
9017
9017
  node: O(),
9018
9018
  objectOf: E,
9019
9019
  oneOf: N,
9020
- oneOfType: P,
9020
+ oneOfType: T,
9021
9021
  shape: I,
9022
9022
  exact: B
9023
9023
  };
@@ -9031,28 +9031,28 @@ function hy() {
9031
9031
  function v(_) {
9032
9032
  if (process.env.NODE_ENV !== "production")
9033
9033
  var S = {}, M = 0;
9034
- function U(J, K, T, R, z, L, Q) {
9035
- if (R = R || h, L = L || T, Q !== n) {
9034
+ function U(J, K, P, R, z, L, Q) {
9035
+ if (R = R || h, L = L || P, Q !== n) {
9036
9036
  if (l) {
9037
9037
  var W = new Error(
9038
9038
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
9039
9039
  );
9040
9040
  throw W.name = "Invariant Violation", W;
9041
9041
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
9042
- var me = R + ":" + T;
9042
+ var me = R + ":" + P;
9043
9043
  !S[me] && // Avoid spamming the console because they are often not actionable except for lib authors
9044
9044
  M < 3 && (i(
9045
9045
  "You are manually calling a React.PropTypes validation function for the `" + L + "` prop on `" + R + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
9046
9046
  ), S[me] = !0, M++);
9047
9047
  }
9048
9048
  }
9049
- return K[T] == null ? J ? K[T] === null ? new g("The " + z + " `" + L + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new g("The " + z + " `" + L + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : _(K, T, R, z, L);
9049
+ return K[P] == null ? J ? K[P] === null ? new g("The " + z + " `" + L + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new g("The " + z + " `" + L + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : _(K, P, R, z, L);
9050
9050
  }
9051
9051
  var F = U.bind(null, !1);
9052
9052
  return F.isRequired = U.bind(null, !0), F;
9053
9053
  }
9054
9054
  function b(_) {
9055
- function S(M, U, F, J, K, T) {
9055
+ function S(M, U, F, J, K, P) {
9056
9056
  var R = M[U], z = H(R);
9057
9057
  if (z !== _) {
9058
9058
  var L = G(R);
@@ -9072,13 +9072,13 @@ function hy() {
9072
9072
  function S(M, U, F, J, K) {
9073
9073
  if (typeof _ != "function")
9074
9074
  return new g("Property `" + K + "` of component `" + F + "` has invalid PropType notation inside arrayOf.");
9075
- var T = M[U];
9076
- if (!Array.isArray(T)) {
9077
- var R = H(T);
9075
+ var P = M[U];
9076
+ if (!Array.isArray(P)) {
9077
+ var R = H(P);
9078
9078
  return new g("Invalid " + J + " `" + K + "` of type " + ("`" + R + "` supplied to `" + F + "`, expected an array."));
9079
9079
  }
9080
- for (var z = 0; z < T.length; z++) {
9081
- var L = _(T, z, F, J, K + "[" + z + "]", n);
9080
+ for (var z = 0; z < P.length; z++) {
9081
+ var L = _(P, z, F, J, K + "[" + z + "]", n);
9082
9082
  if (L instanceof Error)
9083
9083
  return L;
9084
9084
  }
@@ -9090,8 +9090,8 @@ function hy() {
9090
9090
  function _(S, M, U, F, J) {
9091
9091
  var K = S[M];
9092
9092
  if (!a(K)) {
9093
- var T = H(K);
9094
- return new g("Invalid " + F + " `" + J + "` of type " + ("`" + T + "` supplied to `" + U + "`, expected a single ReactElement."));
9093
+ var P = H(K);
9094
+ return new g("Invalid " + F + " `" + J + "` of type " + ("`" + P + "` supplied to `" + U + "`, expected a single ReactElement."));
9095
9095
  }
9096
9096
  return null;
9097
9097
  }
@@ -9101,8 +9101,8 @@ function hy() {
9101
9101
  function _(S, M, U, F, J) {
9102
9102
  var K = S[M];
9103
9103
  if (!e.isValidElementType(K)) {
9104
- var T = H(K);
9105
- return new g("Invalid " + F + " `" + J + "` of type " + ("`" + T + "` supplied to `" + U + "`, expected a single ReactElement type."));
9104
+ var P = H(K);
9105
+ return new g("Invalid " + F + " `" + J + "` of type " + ("`" + P + "` supplied to `" + U + "`, expected a single ReactElement type."));
9106
9106
  }
9107
9107
  return null;
9108
9108
  }
@@ -9111,8 +9111,8 @@ function hy() {
9111
9111
  function k(_) {
9112
9112
  function S(M, U, F, J, K) {
9113
9113
  if (!(M[U] instanceof _)) {
9114
- var T = _.name || h, R = A(M[U]);
9115
- return new g("Invalid " + J + " `" + K + "` of type " + ("`" + R + "` supplied to `" + F + "`, expected ") + ("instance of `" + T + "`."));
9114
+ var P = _.name || h, R = A(M[U]);
9115
+ return new g("Invalid " + J + " `" + K + "` of type " + ("`" + R + "` supplied to `" + F + "`, expected ") + ("instance of `" + P + "`."));
9116
9116
  }
9117
9117
  return null;
9118
9118
  }
@@ -9124,14 +9124,14 @@ function hy() {
9124
9124
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
9125
9125
  ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
9126
9126
  function S(M, U, F, J, K) {
9127
- for (var T = M[U], R = 0; R < _.length; R++)
9128
- if (y(T, _[R]))
9127
+ for (var P = M[U], R = 0; R < _.length; R++)
9128
+ if (y(P, _[R]))
9129
9129
  return null;
9130
9130
  var z = JSON.stringify(_, function(Q, W) {
9131
9131
  var me = G(W);
9132
9132
  return me === "symbol" ? String(W) : W;
9133
9133
  });
9134
- return new g("Invalid " + J + " `" + K + "` of value `" + String(T) + "` " + ("supplied to `" + F + "`, expected one of " + z + "."));
9134
+ return new g("Invalid " + J + " `" + K + "` of value `" + String(P) + "` " + ("supplied to `" + F + "`, expected one of " + z + "."));
9135
9135
  }
9136
9136
  return v(S);
9137
9137
  }
@@ -9139,12 +9139,12 @@ function hy() {
9139
9139
  function S(M, U, F, J, K) {
9140
9140
  if (typeof _ != "function")
9141
9141
  return new g("Property `" + K + "` of component `" + F + "` has invalid PropType notation inside objectOf.");
9142
- var T = M[U], R = H(T);
9142
+ var P = M[U], R = H(P);
9143
9143
  if (R !== "object")
9144
9144
  return new g("Invalid " + J + " `" + K + "` of type " + ("`" + R + "` supplied to `" + F + "`, expected an object."));
9145
- for (var z in T)
9146
- if (r(T, z)) {
9147
- var L = _(T, z, F, J, K + "." + z, n);
9145
+ for (var z in P)
9146
+ if (r(P, z)) {
9147
+ var L = _(P, z, F, J, K + "." + z, n);
9148
9148
  if (L instanceof Error)
9149
9149
  return L;
9150
9150
  }
@@ -9152,7 +9152,7 @@ function hy() {
9152
9152
  }
9153
9153
  return v(S);
9154
9154
  }
9155
- function P(_) {
9155
+ function T(_) {
9156
9156
  if (!Array.isArray(_))
9157
9157
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
9158
9158
  for (var S = 0; S < _.length; S++) {
@@ -9162,15 +9162,15 @@ function hy() {
9162
9162
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + D(M) + " at index " + S + "."
9163
9163
  ), s;
9164
9164
  }
9165
- function U(F, J, K, T, R) {
9165
+ function U(F, J, K, P, R) {
9166
9166
  for (var z = [], L = 0; L < _.length; L++) {
9167
- var Q = _[L], W = Q(F, J, K, T, R, n);
9167
+ var Q = _[L], W = Q(F, J, K, P, R, n);
9168
9168
  if (W == null)
9169
9169
  return null;
9170
9170
  W.data && r(W.data, "expectedType") && z.push(W.data.expectedType);
9171
9171
  }
9172
9172
  var me = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
9173
- return new g("Invalid " + T + " `" + R + "` supplied to " + ("`" + K + "`" + me + "."));
9173
+ return new g("Invalid " + P + " `" + R + "` supplied to " + ("`" + K + "`" + me + "."));
9174
9174
  }
9175
9175
  return v(U);
9176
9176
  }
@@ -9187,14 +9187,14 @@ function hy() {
9187
9187
  }
9188
9188
  function I(_) {
9189
9189
  function S(M, U, F, J, K) {
9190
- var T = M[U], R = H(T);
9190
+ var P = M[U], R = H(P);
9191
9191
  if (R !== "object")
9192
9192
  return new g("Invalid " + J + " `" + K + "` of type `" + R + "` " + ("supplied to `" + F + "`, expected `object`."));
9193
9193
  for (var z in _) {
9194
9194
  var L = _[z];
9195
9195
  if (typeof L != "function")
9196
9196
  return j(F, J, K, z, G(L));
9197
- var Q = L(T, z, F, J, K + "." + z, n);
9197
+ var Q = L(P, z, F, J, K + "." + z, n);
9198
9198
  if (Q)
9199
9199
  return Q;
9200
9200
  }
@@ -9204,7 +9204,7 @@ function hy() {
9204
9204
  }
9205
9205
  function B(_) {
9206
9206
  function S(M, U, F, J, K) {
9207
- var T = M[U], R = H(T);
9207
+ var P = M[U], R = H(P);
9208
9208
  if (R !== "object")
9209
9209
  return new g("Invalid " + J + " `" + K + "` of type `" + R + "` " + ("supplied to `" + F + "`, expected `object`."));
9210
9210
  var z = t({}, M[U], _);
@@ -9217,7 +9217,7 @@ function hy() {
9217
9217
  "Invalid " + J + " `" + K + "` key `" + L + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(M[U], null, " ") + `
9218
9218
  Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
9219
9219
  );
9220
- var W = Q(T, L, F, J, K + "." + L, n);
9220
+ var W = Q(P, L, F, J, K + "." + L, n);
9221
9221
  if (W)
9222
9222
  return W;
9223
9223
  }
@@ -9589,7 +9589,7 @@ const lf = f.forwardRef(
9589
9589
  onMouseDown: y,
9590
9590
  ...g
9591
9591
  }, v) {
9592
- const b = f.useRef(null), x = f.useRef(null), $ = f.useRef(null), C = f.useRef(!1), w = f.useRef(!1), k = f.useRef(!1), [N, E] = f.useState(!1), [P, O] = f.useState(() => t ? dr(t) : ""), [j, I] = f.useState(() => Gr(t ?? /* @__PURE__ */ new Date())), [B, Y] = f.useState(() => ({
9592
+ const b = f.useRef(null), x = f.useRef(null), $ = f.useRef(null), C = f.useRef(!1), w = f.useRef(!1), k = f.useRef(!1), [N, E] = f.useState(!1), [T, O] = f.useState(() => t ? dr(t) : ""), [j, I] = f.useState(() => Gr(t ?? /* @__PURE__ */ new Date())), [B, Y] = f.useState(() => ({
9593
9593
  left: 0,
9594
9594
  top: 0
9595
9595
  })), X = typeof window > "u" ? f.useEffect : f.useLayoutEffect;
@@ -9634,12 +9634,12 @@ const lf = f.forwardRef(
9634
9634
  if (typeof window > "u") return;
9635
9635
  const _ = b.current, S = x.current;
9636
9636
  if (!_ || !S) return;
9637
- const M = _.getBoundingClientRect(), U = S.offsetWidth, F = S.offsetHeight, J = window.innerWidth ?? 0, K = window.innerHeight ?? 0, T = 8;
9637
+ const M = _.getBoundingClientRect(), U = S.offsetWidth, F = S.offsetHeight, J = window.innerWidth ?? 0, K = window.innerHeight ?? 0, P = 8;
9638
9638
  let R = M.left;
9639
- R + U > J - T && (R = Math.max(T, J - U - T)), R < T && (R = T);
9640
- let z = M.bottom + T;
9641
- const L = z + F > K - T, Q = M.top - F - T;
9642
- L && Q >= T && (z = Q), z < T && (z = T), z + F > K - T && (z = Math.max(T, K - F - T)), Y({ left: R, top: z });
9639
+ R + U > J - P && (R = Math.max(P, J - U - P)), R < P && (R = P);
9640
+ let z = M.bottom + P;
9641
+ const L = z + F > K - P, Q = M.top - F - P;
9642
+ L && Q >= P && (z = Q), z < P && (z = P), z + F > K - P && (z = Math.max(P, K - F - P)), Y({ left: R, top: z });
9643
9643
  }, []);
9644
9644
  return X(() => {
9645
9645
  if (!N || s || typeof window > "u") return;
@@ -9667,7 +9667,7 @@ const lf = f.forwardRef(
9667
9667
  return M.length <= 4 ? S.compiledMasks[0] : M.length <= 6 ? S.compiledMasks[1] : S.compiledMasks[2];
9668
9668
  },
9669
9669
  placeholder: i,
9670
- value: P,
9670
+ value: T,
9671
9671
  className: $e(
9672
9672
  "flex h-10 w-full rounded-md border border-input bg-background py-2 pr-3 pl-[37px] text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
9673
9673
  "transition-colors group-hover:bg-accent group-hover:text-accent-foreground",
@@ -9706,7 +9706,7 @@ const lf = f.forwardRef(
9706
9706
  const F = document.activeElement;
9707
9707
  F && (U.contains(F) || x.current?.contains(F)) || E(!1);
9708
9708
  });
9709
- const S = P.trim();
9709
+ const S = T.trim();
9710
9710
  if (S === "") return;
9711
9711
  const M = yu(S, /* @__PURE__ */ new Date());
9712
9712
  if (M) {
@@ -9794,8 +9794,8 @@ function xy({
9794
9794
  }, [m, t]), f.useEffect(() => {
9795
9795
  if (!m) return;
9796
9796
  const k = (E) => {
9797
- const P = E.target;
9798
- P instanceof Node && (d.current?.contains(P) || h.current?.contains(P) || y(!1));
9797
+ const T = E.target;
9798
+ T instanceof Node && (d.current?.contains(T) || h.current?.contains(T) || y(!1));
9799
9799
  }, N = (E) => {
9800
9800
  E.key === "Escape" && y(!1);
9801
9801
  };
@@ -9809,10 +9809,10 @@ function xy({
9809
9809
  if (!k)
9810
9810
  return;
9811
9811
  let N = !0;
9812
- const E = new IntersectionObserver((P) => {
9812
+ const E = new IntersectionObserver((T) => {
9813
9813
  if (!N)
9814
9814
  return;
9815
- const O = P[0];
9815
+ const O = T[0];
9816
9816
  O && !O.isIntersecting && y(!1);
9817
9817
  });
9818
9818
  return E.observe(k), () => {
@@ -9823,9 +9823,9 @@ function xy({
9823
9823
  if (typeof window > "u") return;
9824
9824
  const k = d.current, N = h.current;
9825
9825
  if (!k || !N) return;
9826
- const E = k.getBoundingClientRect(), P = N.offsetWidth, O = N.offsetHeight, j = window.innerWidth ?? 0, I = window.innerHeight ?? 0, B = 8;
9826
+ const E = k.getBoundingClientRect(), T = N.offsetWidth, O = N.offsetHeight, j = window.innerWidth ?? 0, I = window.innerHeight ?? 0, B = 8;
9827
9827
  let Y = E.left;
9828
- Y + P > j - B && (Y = Math.max(B, j - P - B)), Y < B && (Y = B);
9828
+ Y + T > j - B && (Y = Math.max(B, j - T - B)), Y < B && (Y = B);
9829
9829
  let X = E.bottom + B;
9830
9830
  const H = X + O > I - B, G = E.top - O - B;
9831
9831
  H && G >= B && (X = G), X < B && (X = B), X + O > I - B && (X = Math.max(B, I - O - B)), x({ left: Y, top: X });
@@ -11168,8 +11168,8 @@ class Za {
11168
11168
  } = wf(g), N = c2(g), E = {
11169
11169
  x: Math.min(v === Me.Right ? N.right - N.width / 2 : N.right, Math.max(v === Me.Right ? N.left : N.left + N.width / 2, d.x)),
11170
11170
  y: Math.min(v === Me.Down ? N.bottom - N.height / 2 : N.bottom, Math.max(v === Me.Down ? N.top : N.top + N.height / 2, d.y))
11171
- }, P = v === Me.Right && !x || v === Me.Left && !$, O = v === Me.Down && !C || v === Me.Up && !b;
11172
- if (P && E.x !== d.x) {
11171
+ }, T = v === Me.Right && !x || v === Me.Left && !$, O = v === Me.Down && !C || v === Me.Up && !b;
11172
+ if (T && E.x !== d.x) {
11173
11173
  const j = g.scrollLeft + h.x, I = v === Me.Right && j <= w.x || v === Me.Left && j >= k.x;
11174
11174
  if (I && !h.y) {
11175
11175
  g.scrollTo({
@@ -11532,13 +11532,13 @@ function w2(e) {
11532
11532
  if (!E)
11533
11533
  continue;
11534
11534
  const {
11535
- direction: P,
11535
+ direction: T,
11536
11536
  speed: O
11537
11537
  } = u2(k, E, x, t, h);
11538
11538
  for (const j of ["x", "y"])
11539
- m[j][P[j]] || (O[j] = 0, P[j] = 0);
11539
+ m[j][T[j]] || (O[j] = 0, T[j] = 0);
11540
11540
  if (O.x > 0 || O.y > 0) {
11541
- g(), $.current = k, y(C, s), v.current = O, b.current = P;
11541
+ g(), $.current = k, y(C, s), v.current = O, b.current = T;
11542
11542
  return;
11543
11543
  }
11544
11544
  }
@@ -12247,7 +12247,7 @@ const H2 = /* @__PURE__ */ S0(function(t) {
12247
12247
  draggable: {
12248
12248
  active: N,
12249
12249
  nodes: E,
12250
- translate: P
12250
+ translate: T
12251
12251
  },
12252
12252
  droppable: {
12253
12253
  containers: O
@@ -12269,9 +12269,9 @@ const H2 = /* @__PURE__ */ S0(function(t) {
12269
12269
  measuringScheduled: J
12270
12270
  } = k2(S, {
12271
12271
  dragging: k,
12272
- dependencies: [P.x, P.y],
12272
+ dependencies: [T.x, T.y],
12273
12273
  config: M.droppable
12274
- }), K = S2(E, N), T = Ne(() => G ? pi(G) : null, [G]), R = ne(), z = N2(K, M.draggable.measure);
12274
+ }), K = S2(E, N), P = Ne(() => G ? pi(G) : null, [G]), R = ne(), z = N2(K, M.draggable.measure);
12275
12275
  Y2({
12276
12276
  activeNode: N != null ? E.get(N) : null,
12277
12277
  config: R.layoutShiftCompensation,
@@ -12296,8 +12296,8 @@ const H2 = /* @__PURE__ */ S0(function(t) {
12296
12296
  measure: M.dragOverlay.measure
12297
12297
  }), V = (r = ae.nodeRef.current) != null ? r : K, te = k ? (o = ae.rect) != null ? o : L : null, ie = !!(ae.nodeRef.current && ae.rect), Ee = T2(ie ? null : L), Oe = Ef(V ? St(V) : null), be = P2(k ? me ?? K : null), ke = R2(be), he = Df(m, {
12298
12298
  transform: {
12299
- x: P.x - Ee.x,
12300
- y: P.y - Ee.y,
12299
+ x: T.x - Ee.x,
12300
+ y: T.y - Ee.y,
12301
12301
  scaleX: 1,
12302
12302
  scaleY: 1
12303
12303
  },
@@ -12311,7 +12311,7 @@ const H2 = /* @__PURE__ */ S0(function(t) {
12311
12311
  scrollableAncestors: be,
12312
12312
  scrollableAncestorRects: ke,
12313
12313
  windowRect: Oe
12314
- }), ge = T ? fr(T, P) : null, Fe = A2(be), qe = Pu(Fe), Qe = Pu(Fe, [L]), je = fr(he, qe), ft = te ? n2(te, he) : null, ee = B && ft ? d({
12314
+ }), ge = P ? fr(P, T) : null, Fe = A2(be), qe = Pu(Fe), Qe = Pu(Fe, [L]), je = fr(he, qe), ft = te ? n2(te, he) : null, ee = B && ft ? d({
12315
12315
  active: B,
12316
12316
  collisionRect: ft,
12317
12317
  droppableRects: U,
@@ -12549,7 +12549,7 @@ const H2 = /* @__PURE__ */ S0(function(t) {
12549
12549
  };
12550
12550
  }, [B, K, ee, ft, E, V, te, U, O, Te, be, je]), w2({
12551
12551
  ...R,
12552
- delta: P,
12552
+ delta: T,
12553
12553
  draggingRect: ft,
12554
12554
  pointerCoordinates: ge,
12555
12555
  scrollableAncestors: be,
@@ -12638,8 +12638,8 @@ function K2(e) {
12638
12638
  activatorNode: C,
12639
12639
  data: N
12640
12640
  }), () => {
12641
- const P = d.get(t);
12642
- P && P.key === i && d.delete(t);
12641
+ const T = d.get(t);
12642
+ T && T.key === i && d.delete(t);
12643
12643
  }),
12644
12644
  // eslint-disable-next-line react-hooks/exhaustive-deps
12645
12645
  [d, t]
@@ -12708,8 +12708,8 @@ function Z2(e) {
12708
12708
  ), $ = Vi({
12709
12709
  callback: x,
12710
12710
  disabled: y || !s
12711
- }), C = Ue((E, P) => {
12712
- $ && (P && ($.unobserve(P), d.current = !1), E && $.observe(E));
12711
+ }), C = Ue((E, T) => {
12712
+ $ && (T && ($.unobserve(T), d.current = !1), E && $.observe(E));
12713
12713
  }, [$]), [w, k] = fi(C), N = eo(t);
12714
12714
  return pe(() => {
12715
12715
  !$ || !w.current || ($.disconnect(), d.current = !1, $.observe(w.current));
@@ -13008,12 +13008,12 @@ const cb = /* @__PURE__ */ q.memo((e) => {
13008
13008
  scrollableAncestorRects: C,
13009
13009
  transform: k,
13010
13010
  windowRect: w
13011
- }), P = el(h), O = ab({
13011
+ }), T = el(h), O = ab({
13012
13012
  config: r,
13013
13013
  draggableNodes: y,
13014
13014
  droppableContainers: g,
13015
13015
  measuringConfiguration: x
13016
- }), j = P ? v.setRef : void 0;
13016
+ }), j = T ? v.setRef : void 0;
13017
13017
  return q.createElement(eb, null, q.createElement(J2, {
13018
13018
  animation: O
13019
13019
  }, d && N ? q.createElement(rb, {
@@ -13025,7 +13025,7 @@ const cb = /* @__PURE__ */ q.memo((e) => {
13025
13025
  adjustScale: t,
13026
13026
  className: l,
13027
13027
  transition: i,
13028
- rect: P,
13028
+ rect: T,
13029
13029
  style: {
13030
13030
  zIndex: u,
13031
13031
  ...o
@@ -13220,7 +13220,7 @@ function wb(e) {
13220
13220
  }), [d, o, C, c]), k = Ne(() => c.slice(c.indexOf(s)), [c, s]), {
13221
13221
  rect: N,
13222
13222
  node: E,
13223
- isOver: P,
13223
+ isOver: T,
13224
13224
  setNodeRef: O
13225
13225
  } = Z2({
13226
13226
  id: s,
@@ -13249,7 +13249,7 @@ function wb(e) {
13249
13249
  ...n
13250
13250
  },
13251
13251
  disabled: $.draggable
13252
- }), S = My(O, X), M = !!j, U = M && !y && zo(h) && zo(v), F = !b && G, J = F && U ? _ : null, T = U ? J ?? (a ?? x)({
13252
+ }), S = My(O, X), M = !!j, U = M && !y && zo(h) && zo(v), F = !b && G, J = F && U ? _ : null, P = U ? J ?? (a ?? x)({
13253
13253
  rects: g,
13254
13254
  activeNodeRect: B,
13255
13255
  activeIndex: h,
@@ -13306,7 +13306,7 @@ function wb(e) {
13306
13306
  index: C,
13307
13307
  newIndex: R,
13308
13308
  items: c,
13309
- isOver: P,
13309
+ isOver: T,
13310
13310
  isSorting: M,
13311
13311
  isDragging: G,
13312
13312
  listeners: H,
@@ -13317,7 +13317,7 @@ function wb(e) {
13317
13317
  setActivatorNodeRef: A,
13318
13318
  setDroppableNodeRef: O,
13319
13319
  setDraggableNodeRef: X,
13320
- transform: me ?? T,
13320
+ transform: me ?? P,
13321
13321
  transition: ae()
13322
13322
  };
13323
13323
  function ae() {
@@ -13556,7 +13556,7 @@ function Pb({
13556
13556
  const { setNodeRef: g, attributes: v, listeners: b, transform: x, transition: $, isDragging: C } = wb({
13557
13557
  id: e.id,
13558
13558
  disabled: h
13559
- }), w = fe(null), k = fe(null), [N, E] = Ce(null), P = () => {
13559
+ }), w = fe(null), k = fe(null), [N, E] = Ce(null), T = () => {
13560
13560
  const I = w.current;
13561
13561
  if (!I) return;
13562
13562
  const B = I.getBoundingClientRect();
@@ -13567,11 +13567,11 @@ function Pb({
13567
13567
  E(null);
13568
13568
  return;
13569
13569
  }
13570
- P();
13570
+ T();
13571
13571
  let I = 0;
13572
13572
  const B = () => {
13573
13573
  I && cancelAnimationFrame(I), I = requestAnimationFrame(() => {
13574
- I = 0, P();
13574
+ I = 0, T();
13575
13575
  });
13576
13576
  };
13577
13577
  return window.addEventListener("resize", B), window.addEventListener("scroll", B, !0), () => {
@@ -13615,7 +13615,7 @@ function Pb({
13615
13615
  h && "cursor-default"
13616
13616
  ),
13617
13617
  onMouseEnter: () => {
13618
- P(), o();
13618
+ T(), o();
13619
13619
  },
13620
13620
  onMouseLeave: (I) => {
13621
13621
  const B = I.relatedTarget;
@@ -13646,7 +13646,7 @@ function Pb({
13646
13646
  className: "fixed z-[60] w-52 -translate-x-1/2 -translate-y-full rounded-xl border border-slate-200 bg-white/95 p-3 shadow-2xl backdrop-blur dark:border-slate-700 dark:bg-slate-900/95",
13647
13647
  style: { left: N.left, top: N.top },
13648
13648
  onMouseEnter: () => {
13649
- P(), o();
13649
+ T(), o();
13650
13650
  },
13651
13651
  onMouseLeave: (B) => {
13652
13652
  const Y = B.relatedTarget;
@@ -13712,7 +13712,7 @@ function Mb({
13712
13712
  }) {
13713
13713
  const d = fe(null), [h, m] = Ce(
13714
13714
  () => e.map((V) => ({ ...V, previewUrl: V.url, status: "uploaded", progress: 100 }))
13715
- ), [y, g] = Ce(!1), [v, b] = Ce(null), [x, $] = Ce(null), [C, w] = Ce(null), k = fe(null), N = fe(!0), E = fe([]), P = fe(e), O = fe(t), j = fe(i), I = fe(/* @__PURE__ */ new Map()), B = fe(/* @__PURE__ */ new Map()), Y = fe(/* @__PURE__ */ new Map()), X = fe(/* @__PURE__ */ new Map()), H = Gy(
13715
+ ), [y, g] = Ce(!1), [v, b] = Ce(null), [x, $] = Ce(null), [C, w] = Ce(null), k = fe(null), N = fe(!0), E = fe([]), T = fe(e), O = fe(t), j = fe(i), I = fe(/* @__PURE__ */ new Map()), B = fe(/* @__PURE__ */ new Map()), Y = fe(/* @__PURE__ */ new Map()), X = fe(/* @__PURE__ */ new Map()), H = Gy(
13716
13716
  wu(Qa, { activationConstraint: { distance: 6 } }),
13717
13717
  wu(Za, { coordinateGetter: Sb })
13718
13718
  );
@@ -13745,12 +13745,12 @@ function Mb({
13745
13745
  }, [t]), pe(() => {
13746
13746
  j.current = i;
13747
13747
  }, [i]), pe(() => {
13748
- const V = P.current;
13748
+ const V = T.current;
13749
13749
  if (V.length === e.length && V.every((he, ge) => {
13750
13750
  const Fe = e[ge];
13751
13751
  return Fe && he.id === Fe.id && he.url === Fe.url && he.alt === Fe.alt;
13752
13752
  })) return;
13753
- P.current = e;
13753
+ T.current = e;
13754
13754
  const ie = e.map((he) => ({
13755
13755
  ...he,
13756
13756
  previewUrl: he.url,
@@ -13970,7 +13970,7 @@ function Mb({
13970
13970
  w(null);
13971
13971
  }, K = () => {
13972
13972
  k.current !== null && (window.clearTimeout(k.current), k.current = null);
13973
- }, T = Ne(() => v === null ? null : h[v] ?? null, [v, h]), R = $e(
13973
+ }, P = Ne(() => v === null ? null : h[v] ?? null, [v, h]), R = $e(
13974
13974
  "rounded-xl border border-dashed border-slate-300 bg-white/70 p-4 shadow-sm transition-colors dark:border-slate-700 dark:bg-slate-900/60",
13975
13975
  y && "border-primary ring-2 ring-primary/50",
13976
13976
  o && "opacity-70"
@@ -14093,7 +14093,7 @@ function Mb({
14093
14093
  "aria-hidden": !0
14094
14094
  }
14095
14095
  ),
14096
- Q && T && /* @__PURE__ */ p.jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/90", children: [
14096
+ Q && P && /* @__PURE__ */ p.jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/90", children: [
14097
14097
  /* @__PURE__ */ p.jsx(
14098
14098
  "button",
14099
14099
  {
@@ -14108,8 +14108,8 @@ function Mb({
14108
14108
  /* @__PURE__ */ p.jsx(
14109
14109
  "img",
14110
14110
  {
14111
- src: T.url,
14112
- alt: T.alt ?? "Fullscreen",
14111
+ src: P.url,
14112
+ alt: P.alt ?? "Fullscreen",
14113
14113
  className: "max-h-[80vh] max-w-full rounded-lg object-contain shadow-2xl"
14114
14114
  }
14115
14115
  ),
@@ -14304,7 +14304,7 @@ const Wb = f.forwardRef(
14304
14304
  languageSelectTabIndex: g = -1,
14305
14305
  disabled: v,
14306
14306
  ...b
14307
- } = t, { rows: x, ...$ } = b, C = f.useMemo(() => r ?? o ?? {}, [o, r]), [w, k] = f.useState(C), N = r !== void 0, E = N ? r ?? {} : w, [P, O] = f.useState(""), j = f.useContext(If), I = f.useMemo(() => {
14307
+ } = t, { rows: x, ...$ } = b, C = f.useMemo(() => r ?? o ?? {}, [o, r]), [w, k] = f.useState(C), N = r !== void 0, E = N ? r ?? {} : w, [T, O] = f.useState(""), j = f.useContext(If), I = f.useMemo(() => {
14308
14308
  const ee = Array.from(/* @__PURE__ */ new Set([...u ?? [], ...Object.keys(E)]));
14309
14309
  return Fb(void 0, ee);
14310
14310
  }, [E, u]), B = f.useMemo(() => i ?? j?.locale ?? s ?? Object.keys(E)[0] ?? I[0]?.value ?? sa, [E, s, j?.locale, I, i]), [Y, X] = f.useState(B), H = i ?? j?.locale ?? Y;
@@ -14315,7 +14315,7 @@ const Wb = f.forwardRef(
14315
14315
  }, [Y, i]), f.useEffect(() => {
14316
14316
  !i && j?.locale && j.locale !== Y && X(j.locale);
14317
14317
  }, [Y, j?.locale, i]);
14318
- const G = I.find((ee) => ee.value === H) ?? I.find((ee) => ee.value === sa) ?? I[0] ?? null, [D, A] = f.useState(!1), _ = f.useRef(null), S = f.useRef(null), M = f.useRef(null), U = f.useRef(null), F = f.useRef(null), J = f.useRef(null), K = f.useRef(null), [T, R] = f.useState({ left: 0, top: 0 });
14318
+ const G = I.find((ee) => ee.value === H) ?? I.find((ee) => ee.value === sa) ?? I[0] ?? null, [D, A] = f.useState(!1), _ = f.useRef(null), S = f.useRef(null), M = f.useRef(null), U = f.useRef(null), F = f.useRef(null), J = f.useRef(null), K = f.useRef(null), [P, R] = f.useState({ left: 0, top: 0 });
14319
14319
  f.useImperativeHandle(n, () => S.current, []);
14320
14320
  const z = (ee) => {
14321
14321
  if (!ee) return;
@@ -14329,11 +14329,11 @@ const Wb = f.forwardRef(
14329
14329
  N || k(Re), a?.(Re);
14330
14330
  }, Q = Ib(E, H), W = f.useCallback(
14331
14331
  (ee) => {
14332
- if (!P) return !0;
14333
- const Re = aa(P);
14332
+ if (!T) return !0;
14333
+ const Re = aa(T);
14334
14334
  return ee.data.searchable.some((Te) => Te.includes(Re));
14335
14335
  },
14336
- [P]
14336
+ [T]
14337
14337
  ), me = c ? "left-2 top-2 -translate-y-0" : "left-3 top-1/2 -translate-y-1/2", ae = "pl-10 pr-3", V = f.useCallback(() => {
14338
14338
  const ee = M.current, Re = U.current;
14339
14339
  if (!ee || !Re) return;
@@ -14361,7 +14361,7 @@ const Wb = f.forwardRef(
14361
14361
  } catch {
14362
14362
  }
14363
14363
  });
14364
- }, [D, P]);
14364
+ }, [D, T]);
14365
14365
  const Ee = f.useCallback(
14366
14366
  (ee = !0) => {
14367
14367
  A(!1), O(""), ee && requestAnimationFrame(() => {
@@ -14377,7 +14377,7 @@ const Wb = f.forwardRef(
14377
14377
  noOptionsMessage: ge,
14378
14378
  ...Fe
14379
14379
  } = m ?? {}, qe = f.useMemo(() => {
14380
- const ee = aa(P), Re = (Te) => {
14380
+ const ee = aa(T), Re = (Te) => {
14381
14381
  const ut = Te.code.toLowerCase();
14382
14382
  return ee && ut === ee ? 0 : ee && ut.startsWith(ee) ? 1 : ee && Te.searchable.some((It) => It.startsWith(ee)) ? 2 : ee && Te.searchable.some((It) => It.includes(ee)) ? 3 : 4;
14383
14383
  };
@@ -14385,7 +14385,7 @@ const Wb = f.forwardRef(
14385
14385
  const It = Re(Te) - Re(ut);
14386
14386
  return It !== 0 ? It : Te.name.localeCompare(ut.name);
14387
14387
  });
14388
- }, [W, I, P]), Qe = f.useMemo(
14388
+ }, [W, I, T]), Qe = f.useMemo(
14389
14389
  () => ({
14390
14390
  Control: Lb,
14391
14391
  IndicatorsContainer: Go,
@@ -14399,7 +14399,7 @@ const Wb = f.forwardRef(
14399
14399
  "input",
14400
14400
  {
14401
14401
  ref: J,
14402
- value: P,
14402
+ value: T,
14403
14403
  onChange: (Te) => O(Te.target.value),
14404
14404
  onKeyDown: (Te) => {
14405
14405
  if (Te.key === "Escape") {
@@ -14425,7 +14425,7 @@ const Wb = f.forwardRef(
14425
14425
  ...Oe ?? {},
14426
14426
  Option: Bb
14427
14427
  }),
14428
- [Ee, W, qe, z, I, P, y, Oe]
14428
+ [Ee, W, qe, z, I, T, y, Oe]
14429
14429
  ), je = f.useMemo(
14430
14430
  () => ({
14431
14431
  ...jb,
@@ -14506,8 +14506,8 @@ const Wb = f.forwardRef(
14506
14506
  style: {
14507
14507
  pointerEvents: D ? "auto" : "none",
14508
14508
  width: "min(260px, 100%)",
14509
- left: T.left,
14510
- top: T.top
14509
+ left: P.left,
14510
+ top: P.top
14511
14511
  },
14512
14512
  children: /* @__PURE__ */ p.jsx(
14513
14513
  rd,
@@ -14812,8 +14812,8 @@ var r3 = "DismissableLayer", la = "dismissableLayer.update", o3 = "dismissableLa
14812
14812
  onDismiss: a,
14813
14813
  ...l
14814
14814
  } = e, u = f.useContext(jf), [c, d] = f.useState(null), h = c?.ownerDocument ?? globalThis?.document, [, m] = f.useState({}), y = Xe(t, (N) => d(N)), g = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(v), x = c ? g.indexOf(c) : -1, $ = u.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= b, w = l3((N) => {
14815
- const E = N.target, P = [...u.branches].some((O) => O.contains(E));
14816
- !C || P || (o?.(N), s?.(N), N.defaultPrevented || a?.());
14815
+ const E = N.target, T = [...u.branches].some((O) => O.contains(E));
14816
+ !C || T || (o?.(N), s?.(N), N.defaultPrevented || a?.());
14817
14817
  }, h), k = u3((N) => {
14818
14818
  const E = N.target;
14819
14819
  [...u.branches].some((O) => O.contains(E)) || (i?.(N), s?.(N), N.defaultPrevented || a?.());
@@ -15347,7 +15347,7 @@ const P3 = (e) => ({
15347
15347
  }, m = ul(o), y = ll(m), g = await s.getDimensions(u), v = m === "y", b = v ? "top" : "left", x = v ? "bottom" : "right", $ = v ? "clientHeight" : "clientWidth", C = i.reference[y] + i.reference[m] - h[m] - i.floating[y], w = h[m] - i.reference[m], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
15348
15348
  let N = k ? k[$] : 0;
15349
15349
  (!N || !await (s.isElement == null ? void 0 : s.isElement(k))) && (N = a.floating[$] || i.floating[y]);
15350
- const E = C / 2 - w / 2, P = N / 2 - g[y] / 2 - 1, O = jn(d[b], P), j = jn(d[x], P), I = O, B = N - g[y] - j, Y = N / 2 - g[y] / 2 + E, X = ua(I, Y, B), H = !l.arrow && Dr(o) != null && Y !== X && i.reference[y] / 2 - (Y < I ? O : j) - g[y] / 2 < 0, G = H ? Y < I ? Y - I : Y - B : 0;
15350
+ const E = C / 2 - w / 2, T = N / 2 - g[y] / 2 - 1, O = jn(d[b], T), j = jn(d[x], T), I = O, B = N - g[y] - j, Y = N / 2 - g[y] / 2 + E, X = ua(I, Y, B), H = !l.arrow && Dr(o) != null && Y !== X && i.reference[y] / 2 - (Y < I ? O : j) - g[y] / 2 < 0, G = H ? Y < I ? Y - I : Y - B : 0;
15351
15351
  return {
15352
15352
  [m]: h[m] + G,
15353
15353
  data: {
@@ -15386,16 +15386,16 @@ const P3 = (e) => ({
15386
15386
  return {};
15387
15387
  const b = Sn(o), x = sn(a), $ = Sn(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), w = h || ($ || !g ? [bi(a)] : S3(a)), k = y !== "none";
15388
15388
  !h && k && w.push(..._3(a, g, y, C));
15389
- const N = [a, ...w], E = await ro(t, v), P = [];
15389
+ const N = [a, ...w], E = await ro(t, v), T = [];
15390
15390
  let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
15391
- if (c && P.push(E[b]), d) {
15391
+ if (c && T.push(E[b]), d) {
15392
15392
  const Y = C3(o, s, C);
15393
- P.push(E[Y[0]], E[Y[1]]);
15393
+ T.push(E[Y[0]], E[Y[1]]);
15394
15394
  }
15395
15395
  if (O = [...O, {
15396
15396
  placement: o,
15397
- overflows: P
15398
- }], !P.every((Y) => Y <= 0)) {
15397
+ overflows: T
15398
+ }], !T.every((Y) => Y <= 0)) {
15399
15399
  var j, I;
15400
15400
  const Y = (((j = i.flip) == null ? void 0 : j.index) || 0) + 1, X = N[Y];
15401
15401
  if (X && (!(d === "alignment" ? x !== sn(X) : !1) || // We leave the current main axis only if every placement on that axis
@@ -15674,8 +15674,8 @@ const R3 = function(e) {
15674
15674
  availableWidth: E,
15675
15675
  availableHeight: N
15676
15676
  });
15677
- const P = await s.getDimensions(a.floating);
15678
- return y !== P.width || g !== P.height ? {
15677
+ const T = await s.getDimensions(a.floating);
15678
+ return y !== T.width || g !== T.height ? {
15679
15679
  reset: {
15680
15680
  rects: !0
15681
15681
  }
@@ -16255,7 +16255,7 @@ function $$(e) {
16255
16255
  D !== k.current && (k.current = D, g(D));
16256
16256
  }, []), $ = f.useCallback((D) => {
16257
16257
  D !== N.current && (N.current = D, b(D));
16258
- }, []), C = i || y, w = s || v, k = f.useRef(null), N = f.useRef(null), E = f.useRef(c), P = l != null, O = Rs(l), j = Rs(o), I = Rs(u), B = f.useCallback(() => {
16258
+ }, []), C = i || y, w = s || v, k = f.useRef(null), N = f.useRef(null), E = f.useRef(c), T = l != null, O = Rs(l), j = Rs(o), I = Rs(u), B = f.useCallback(() => {
16259
16259
  if (!k.current || !N.current)
16260
16260
  return;
16261
16261
  const D = {
@@ -16292,7 +16292,7 @@ function $$(e) {
16292
16292
  return O.current(C, w, B);
16293
16293
  B();
16294
16294
  }
16295
- }, [C, w, B, O, P]);
16295
+ }, [C, w, B, O, T]);
16296
16296
  const X = f.useMemo(() => ({
16297
16297
  reference: k,
16298
16298
  floating: N,
@@ -16444,7 +16444,7 @@ var pl = "PopperContent", [M$, O$] = eh(pl), ih = f.forwardRef(
16444
16444
  updatePositionStrategy: m = "optimized",
16445
16445
  onPlaced: y,
16446
16446
  ...g
16447
- } = e, v = th(pl, n), [b, x] = f.useState(null), $ = Xe(t, (T) => x(T)), [C, w] = f.useState(null), k = P$(C), N = k?.width ?? 0, E = k?.height ?? 0, P = r + (i !== "center" ? "-" + i : ""), O = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, j = Array.isArray(u) ? u : [u], I = j.length > 0, B = {
16447
+ } = e, v = th(pl, n), [b, x] = f.useState(null), $ = Xe(t, (P) => x(P)), [C, w] = f.useState(null), k = P$(C), N = k?.width ?? 0, E = k?.height ?? 0, T = r + (i !== "center" ? "-" + i : ""), O = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, j = Array.isArray(u) ? u : [u], I = j.length > 0, B = {
16448
16448
  padding: O,
16449
16449
  boundary: j.filter(I$),
16450
16450
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -16452,8 +16452,8 @@ var pl = "PopperContent", [M$, O$] = eh(pl), ih = f.forwardRef(
16452
16452
  }, { refs: Y, floatingStyles: X, placement: H, isPositioned: G, middlewareData: D } = $$({
16453
16453
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
16454
16454
  strategy: "fixed",
16455
- placement: P,
16456
- whileElementsMounted: (...T) => c$(...T, {
16455
+ placement: T,
16456
+ whileElementsMounted: (...P) => c$(...P, {
16457
16457
  animationFrame: m === "always"
16458
16458
  }),
16459
16459
  elements: {
@@ -16470,8 +16470,8 @@ var pl = "PopperContent", [M$, O$] = eh(pl), ih = f.forwardRef(
16470
16470
  l && E$({ ...B }),
16471
16471
  k$({
16472
16472
  ...B,
16473
- apply: ({ elements: T, rects: R, availableWidth: z, availableHeight: L }) => {
16474
- const { width: Q, height: W } = R.reference, me = T.floating.style;
16473
+ apply: ({ elements: P, rects: R, availableWidth: z, availableHeight: L }) => {
16474
+ const { width: Q, height: W } = R.reference, me = P.floating.style;
16475
16475
  me.setProperty("--radix-popper-available-width", `${z}px`), me.setProperty("--radix-popper-available-height", `${L}px`), me.setProperty("--radix-popper-anchor-width", `${Q}px`), me.setProperty("--radix-popper-anchor-height", `${W}px`);
16476
16476
  }
16477
16477
  }),
@@ -17183,7 +17183,7 @@ function Mw(e) {
17183
17183
  var b = Jo(g), x = n.current, $ = "deltaX" in g ? g.deltaX : x[0] - b[0], C = "deltaY" in g ? g.deltaY : x[1] - b[1], w, k = g.target, N = Math.abs($) > Math.abs(C) ? "h" : "v";
17184
17184
  if ("touches" in g && N === "h" && k.type === "range")
17185
17185
  return !1;
17186
- var E = window.getSelection(), P = E && E.anchorNode, O = P ? P === k || P.contains(k) : !1;
17186
+ var E = window.getSelection(), T = E && E.anchorNode, O = T ? T === k || T.contains(k) : !1;
17187
17187
  if (O)
17188
17188
  return !1;
17189
17189
  var j = sc(N, k);
@@ -17279,7 +17279,7 @@ var Iw = [" ", "Enter", "ArrowUp", "ArrowDown"], Fw = [" ", "Enter"], Xn = "Sele
17279
17279
  defaultProp: o ?? !1,
17280
17280
  onChange: i,
17281
17281
  caller: Xn
17282
- }), [P, O] = xi({
17282
+ }), [T, O] = xi({
17283
17283
  prop: s,
17284
17284
  defaultProp: a,
17285
17285
  onChange: l,
@@ -17297,7 +17297,7 @@ var Iw = [" ", "Enter", "ArrowUp", "ArrowDown"], Fw = [" ", "Enter"], Xn = "Sele
17297
17297
  valueNodeHasChildren: C,
17298
17298
  onValueNodeHasChildrenChange: w,
17299
17299
  contentId: vr(),
17300
- value: P,
17300
+ value: T,
17301
17301
  onValueChange: O,
17302
17302
  open: N,
17303
17303
  onOpenChange: E,
@@ -17329,12 +17329,12 @@ var Iw = [" ", "Enter", "ArrowUp", "ArrowDown"], Fw = [" ", "Enter"], Xn = "Sele
17329
17329
  tabIndex: -1,
17330
17330
  name: c,
17331
17331
  autoComplete: d,
17332
- value: P,
17332
+ value: T,
17333
17333
  onChange: (H) => O(H.target.value),
17334
17334
  disabled: h,
17335
17335
  form: y,
17336
17336
  children: [
17337
- P === void 0 ? /* @__PURE__ */ p.jsx("option", { value: "" }) : null,
17337
+ T === void 0 ? /* @__PURE__ */ p.jsx("option", { value: "" }) : null,
17338
17338
  Array.from(B)
17339
17339
  ]
17340
17340
  },
@@ -17453,16 +17453,16 @@ var Gt = 10, [Ph, Wn] = Pr(Zn), Yw = "SelectContentImpl", Hw = /* @__PURE__ */ L
17453
17453
  avoidCollisions: v,
17454
17454
  //
17455
17455
  ...b
17456
- } = e, x = Bn(Zn, n), [$, C] = f.useState(null), [w, k] = f.useState(null), N = Xe(t, (T) => C(T)), [E, P] = f.useState(null), [O, j] = f.useState(
17456
+ } = e, x = Bn(Zn, n), [$, C] = f.useState(null), [w, k] = f.useState(null), N = Xe(t, (P) => C(P)), [E, T] = f.useState(null), [O, j] = f.useState(
17457
17457
  null
17458
17458
  ), I = Zi(n), [B, Y] = f.useState(!1), X = f.useRef(!1);
17459
17459
  f.useEffect(() => {
17460
17460
  if ($) return mh($);
17461
17461
  }, [$]), Bf();
17462
17462
  const H = f.useCallback(
17463
- (T) => {
17463
+ (P) => {
17464
17464
  const [R, ...z] = I().map((W) => W.ref.current), [L] = z.slice(-1), Q = document.activeElement;
17465
- for (const W of T)
17465
+ for (const W of P)
17466
17466
  if (W === Q || (W?.scrollIntoView({ block: "nearest" }), W === R && w && (w.scrollTop = 0), W === L && w && (w.scrollTop = w.scrollHeight), W?.focus(), document.activeElement !== Q)) return;
17467
17467
  },
17468
17468
  [I, w]
@@ -17476,38 +17476,38 @@ var Gt = 10, [Ph, Wn] = Pr(Zn), Yw = "SelectContentImpl", Hw = /* @__PURE__ */ L
17476
17476
  const { onOpenChange: D, triggerPointerDownPosRef: A } = x;
17477
17477
  f.useEffect(() => {
17478
17478
  if ($) {
17479
- let T = { x: 0, y: 0 };
17479
+ let P = { x: 0, y: 0 };
17480
17480
  const R = (L) => {
17481
- T = {
17481
+ P = {
17482
17482
  x: Math.abs(Math.round(L.pageX) - (A.current?.x ?? 0)),
17483
17483
  y: Math.abs(Math.round(L.pageY) - (A.current?.y ?? 0))
17484
17484
  };
17485
17485
  }, z = (L) => {
17486
- T.x <= 10 && T.y <= 10 ? L.preventDefault() : $.contains(L.target) || D(!1), document.removeEventListener("pointermove", R), A.current = null;
17486
+ P.x <= 10 && P.y <= 10 ? L.preventDefault() : $.contains(L.target) || D(!1), document.removeEventListener("pointermove", R), A.current = null;
17487
17487
  };
17488
17488
  return A.current !== null && (document.addEventListener("pointermove", R), document.addEventListener("pointerup", z, { capture: !0, once: !0 })), () => {
17489
17489
  document.removeEventListener("pointermove", R), document.removeEventListener("pointerup", z, { capture: !0 });
17490
17490
  };
17491
17491
  }
17492
17492
  }, [$, D, A]), f.useEffect(() => {
17493
- const T = () => D(!1);
17494
- return window.addEventListener("blur", T), window.addEventListener("resize", T), () => {
17495
- window.removeEventListener("blur", T), window.removeEventListener("resize", T);
17493
+ const P = () => D(!1);
17494
+ return window.addEventListener("blur", P), window.addEventListener("resize", P), () => {
17495
+ window.removeEventListener("blur", P), window.removeEventListener("resize", P);
17496
17496
  };
17497
17497
  }, [D]);
17498
- const [_, S] = Kh((T) => {
17499
- const R = I().filter((Q) => !Q.disabled), z = R.find((Q) => Q.ref.current === document.activeElement), L = qh(R, T, z);
17498
+ const [_, S] = Kh((P) => {
17499
+ const R = I().filter((Q) => !Q.disabled), z = R.find((Q) => Q.ref.current === document.activeElement), L = qh(R, P, z);
17500
17500
  L && setTimeout(() => L.ref.current.focus());
17501
17501
  }), M = f.useCallback(
17502
- (T, R, z) => {
17502
+ (P, R, z) => {
17503
17503
  const L = !X.current && !z;
17504
- (x.value !== void 0 && x.value === R || L) && (P(T), L && (X.current = !0));
17504
+ (x.value !== void 0 && x.value === R || L) && (T(P), L && (X.current = !0));
17505
17505
  },
17506
17506
  [x.value]
17507
17507
  ), U = f.useCallback(() => $?.focus(), [$]), F = f.useCallback(
17508
- (T, R, z) => {
17508
+ (P, R, z) => {
17509
17509
  const L = !X.current && !z;
17510
- (x.value !== void 0 && x.value === R || L) && j(T);
17510
+ (x.value !== void 0 && x.value === R || L) && j(P);
17511
17511
  },
17512
17512
  [x.value]
17513
17513
  ), J = r === "popper" ? ha : Mh, K = J === ha ? {
@@ -17543,11 +17543,11 @@ var Gt = 10, [Ph, Wn] = Pr(Zn), Yw = "SelectContentImpl", Hw = /* @__PURE__ */ L
17543
17543
  {
17544
17544
  asChild: !0,
17545
17545
  trapped: x.open,
17546
- onMountAutoFocus: (T) => {
17547
- T.preventDefault();
17546
+ onMountAutoFocus: (P) => {
17547
+ P.preventDefault();
17548
17548
  },
17549
- onUnmountAutoFocus: ye(o, (T) => {
17550
- x.trigger?.focus({ preventScroll: !0 }), T.preventDefault();
17549
+ onUnmountAutoFocus: ye(o, (P) => {
17550
+ x.trigger?.focus({ preventScroll: !0 }), P.preventDefault();
17551
17551
  }),
17552
17552
  children: /* @__PURE__ */ p.jsx(
17553
17553
  il,
@@ -17556,7 +17556,7 @@ var Gt = 10, [Ph, Wn] = Pr(Zn), Yw = "SelectContentImpl", Hw = /* @__PURE__ */ L
17556
17556
  disableOutsidePointerEvents: !0,
17557
17557
  onEscapeKeyDown: i,
17558
17558
  onPointerDownOutside: s,
17559
- onFocusOutside: (T) => T.preventDefault(),
17559
+ onFocusOutside: (P) => P.preventDefault(),
17560
17560
  onDismiss: () => x.onOpenChange(!1),
17561
17561
  children: /* @__PURE__ */ p.jsx(
17562
17562
  J,
@@ -17565,7 +17565,7 @@ var Gt = 10, [Ph, Wn] = Pr(Zn), Yw = "SelectContentImpl", Hw = /* @__PURE__ */ L
17565
17565
  id: x.contentId,
17566
17566
  "data-state": x.open ? "open" : "closed",
17567
17567
  dir: x.dir,
17568
- onContextMenu: (T) => T.preventDefault(),
17568
+ onContextMenu: (P) => P.preventDefault(),
17569
17569
  ...b,
17570
17570
  ...K,
17571
17571
  onPlaced: () => Y(!0),
@@ -17578,15 +17578,15 @@ var Gt = 10, [Ph, Wn] = Pr(Zn), Yw = "SelectContentImpl", Hw = /* @__PURE__ */ L
17578
17578
  outline: "none",
17579
17579
  ...b.style
17580
17580
  },
17581
- onKeyDown: ye(b.onKeyDown, (T) => {
17582
- const R = T.ctrlKey || T.altKey || T.metaKey;
17583
- if (T.key === "Tab" && T.preventDefault(), !R && T.key.length === 1 && S(T.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(T.key)) {
17581
+ onKeyDown: ye(b.onKeyDown, (P) => {
17582
+ const R = P.ctrlKey || P.altKey || P.metaKey;
17583
+ if (P.key === "Tab" && P.preventDefault(), !R && P.key.length === 1 && S(P.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(P.key)) {
17584
17584
  let L = I().filter((Q) => !Q.disabled).map((Q) => Q.ref.current);
17585
- if (["ArrowUp", "End"].includes(T.key) && (L = L.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(T.key)) {
17586
- const Q = T.target, W = L.indexOf(Q);
17585
+ if (["ArrowUp", "End"].includes(P.key) && (L = L.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(P.key)) {
17586
+ const Q = P.target, W = L.indexOf(Q);
17587
17587
  L = L.slice(W + 1);
17588
17588
  }
17589
- setTimeout(() => H(L)), T.preventDefault();
17589
+ setTimeout(() => H(L)), P.preventDefault();
17590
17590
  }
17591
17591
  })
17592
17592
  }
@@ -17603,9 +17603,9 @@ Ah.displayName = Yw;
17603
17603
  var zw = "SelectItemAlignedPosition", Mh = f.forwardRef((e, t) => {
17604
17604
  const { __scopeSelect: n, onPlaced: r, ...o } = e, i = Bn(Zn, n), s = Wn(Zn, n), [a, l] = f.useState(null), [u, c] = f.useState(null), d = Xe(t, (N) => c(N)), h = Zi(n), m = f.useRef(!1), y = f.useRef(!0), { viewport: g, selectedItem: v, selectedItemText: b, focusSelectedItem: x } = s, $ = f.useCallback(() => {
17605
17605
  if (i.trigger && i.valueNode && a && u && g && v && b) {
17606
- const N = i.trigger.getBoundingClientRect(), E = u.getBoundingClientRect(), P = i.valueNode.getBoundingClientRect(), O = b.getBoundingClientRect();
17606
+ const N = i.trigger.getBoundingClientRect(), E = u.getBoundingClientRect(), T = i.valueNode.getBoundingClientRect(), O = b.getBoundingClientRect();
17607
17607
  if (i.dir !== "rtl") {
17608
- const Q = O.left - E.left, W = P.left - Q, me = N.left - W, ae = N.width + me, V = Math.max(ae, E.width), te = window.innerWidth - Gt, ie = Fu(W, [
17608
+ const Q = O.left - E.left, W = T.left - Q, me = N.left - W, ae = N.width + me, V = Math.max(ae, E.width), te = window.innerWidth - Gt, ie = Fu(W, [
17609
17609
  Gt,
17610
17610
  // Prevents the content from going off the starting edge of the
17611
17611
  // viewport. It may still go off the ending edge, but this can be
@@ -17616,13 +17616,13 @@ var zw = "SelectItemAlignedPosition", Mh = f.forwardRef((e, t) => {
17616
17616
  ]);
17617
17617
  a.style.minWidth = ae + "px", a.style.left = ie + "px";
17618
17618
  } else {
17619
- const Q = E.right - O.right, W = window.innerWidth - P.right - Q, me = window.innerWidth - N.right - W, ae = N.width + me, V = Math.max(ae, E.width), te = window.innerWidth - Gt, ie = Fu(W, [
17619
+ const Q = E.right - O.right, W = window.innerWidth - T.right - Q, me = window.innerWidth - N.right - W, ae = N.width + me, V = Math.max(ae, E.width), te = window.innerWidth - Gt, ie = Fu(W, [
17620
17620
  Gt,
17621
17621
  Math.max(Gt, te - V)
17622
17622
  ]);
17623
17623
  a.style.minWidth = ae + "px", a.style.right = ie + "px";
17624
17624
  }
17625
- const j = h(), I = window.innerHeight - Gt * 2, B = g.scrollHeight, Y = window.getComputedStyle(u), X = parseInt(Y.borderTopWidth, 10), H = parseInt(Y.paddingTop, 10), G = parseInt(Y.borderBottomWidth, 10), D = parseInt(Y.paddingBottom, 10), A = X + H + B + D + G, _ = Math.min(v.offsetHeight * 5, A), S = window.getComputedStyle(g), M = parseInt(S.paddingTop, 10), U = parseInt(S.paddingBottom, 10), F = N.top + N.height / 2 - Gt, J = I - F, K = v.offsetHeight / 2, T = v.offsetTop + K, R = X + H + T, z = A - R;
17625
+ const j = h(), I = window.innerHeight - Gt * 2, B = g.scrollHeight, Y = window.getComputedStyle(u), X = parseInt(Y.borderTopWidth, 10), H = parseInt(Y.paddingTop, 10), G = parseInt(Y.borderBottomWidth, 10), D = parseInt(Y.paddingBottom, 10), A = X + H + B + D + G, _ = Math.min(v.offsetHeight * 5, A), S = window.getComputedStyle(g), M = parseInt(S.paddingTop, 10), U = parseInt(S.paddingBottom, 10), F = N.top + N.height / 2 - Gt, J = I - F, K = v.offsetHeight / 2, P = v.offsetTop + K, R = X + H + P, z = A - R;
17626
17626
  if (R <= F) {
17627
17627
  const Q = j.length > 0 && v === j[j.length - 1].ref.current;
17628
17628
  a.style.bottom = "0px";
@@ -18369,7 +18369,7 @@ function vx({
18369
18369
  contentTestId: v,
18370
18370
  isHydrated: b
18371
18371
  }) {
18372
- const x = od(), $ = f.useId(), C = e ?? `hours-picker-${$}`, w = f.useRef(null), k = f.useRef(null), N = f.useRef(null), E = f.useRef(!1), [P, O] = f.useState(null), j = f.useRef(null), I = f.useRef(null), B = f.useRef(null), [Y, X] = f.useState(() => ({
18372
+ const x = od(), $ = f.useId(), C = e ?? `hours-picker-${$}`, w = f.useRef(null), k = f.useRef(null), N = f.useRef(null), E = f.useRef(!1), [T, O] = f.useState(null), j = f.useRef(null), I = f.useRef(null), B = f.useRef(null), [Y, X] = f.useState(() => ({
18373
18373
  left: 0,
18374
18374
  top: 0,
18375
18375
  width: 0
@@ -18441,7 +18441,7 @@ function vx({
18441
18441
  z = !1, L.disconnect();
18442
18442
  };
18443
18443
  }, [m, D, h, A, C]);
18444
- const T = f.useCallback(() => {
18444
+ const P = f.useCallback(() => {
18445
18445
  if (typeof window > "u") return;
18446
18446
  const R = w.current, z = I.current;
18447
18447
  if (!(R instanceof HTMLElement) || !z) return;
@@ -18454,12 +18454,12 @@ function vx({
18454
18454
  }, [C]);
18455
18455
  return M(() => {
18456
18456
  if (x || !D || d || typeof window > "u") return;
18457
- T();
18458
- const R = window.requestAnimationFrame(T);
18459
- return window.addEventListener("scroll", T, !0), window.addEventListener("resize", T), () => {
18460
- window.cancelAnimationFrame(R), window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", T);
18457
+ P();
18458
+ const R = window.requestAnimationFrame(P);
18459
+ return window.addEventListener("scroll", P, !0), window.addEventListener("resize", P), () => {
18460
+ window.cancelAnimationFrame(R), window.removeEventListener("scroll", P, !0), window.removeEventListener("resize", P);
18461
18461
  };
18462
- }, [d, x, D, T]), f.useEffect(() => {
18462
+ }, [d, x, D, P]), f.useEffect(() => {
18463
18463
  if (x || !D || !y) return;
18464
18464
  const R = B.current;
18465
18465
  if (!R) return;
@@ -18483,10 +18483,10 @@ function vx({
18483
18483
  });
18484
18484
  return () => cancelAnimationFrame(L);
18485
18485
  }, [y, x, D, i]), f.useEffect(() => {
18486
- if (x || !D || !P || !E.current) return;
18486
+ if (x || !D || !T || !E.current) return;
18487
18487
  const R = B.current;
18488
18488
  if (!R) return;
18489
- const z = R.querySelector(`[role="option"][data-value="${P}"]`);
18489
+ const z = R.querySelector(`[role="option"][data-value="${T}"]`);
18490
18490
  if (!(z instanceof HTMLElement)) return;
18491
18491
  const L = 8, Q = z.offsetTop - L, W = z.offsetTop + z.offsetHeight + L;
18492
18492
  if (Q < R.scrollTop) {
@@ -18495,7 +18495,7 @@ function vx({
18495
18495
  }
18496
18496
  const me = R.scrollTop + R.clientHeight;
18497
18497
  W > me && (R.scrollTop = Math.max(0, W - R.clientHeight));
18498
- }, [P, x, D]), /* @__PURE__ */ p.jsxs(
18498
+ }, [T, x, D]), /* @__PURE__ */ p.jsxs(
18499
18499
  "div",
18500
18500
  {
18501
18501
  "data-slot": "hours-picker-input",
@@ -18627,7 +18627,7 @@ function vx({
18627
18627
  className: $e(
18628
18628
  "relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none cursor-pointer",
18629
18629
  z.disabled && "pointer-events-none opacity-50",
18630
- P === z.value && "bg-accent text-accent-foreground"
18630
+ T === z.value && "bg-accent text-accent-foreground"
18631
18631
  ),
18632
18632
  onMouseDown: (Q) => {
18633
18633
  Q.preventDefault();
@@ -18694,17 +18694,17 @@ function yx({
18694
18694
  setDraftValueRef: b
18695
18695
  }) {
18696
18696
  const x = f.useRef(!1), $ = f.useRef(!1), C = f.useRef(!1), [w, k] = f.useState(() => n || "");
18697
- f.useEffect(() => (b.current = (P) => {
18698
- k(P);
18697
+ f.useEffect(() => (b.current = (T) => {
18698
+ k(T);
18699
18699
  }, () => {
18700
18700
  b.current = null;
18701
18701
  }), [b]);
18702
18702
  const N = f.useCallback(
18703
- (P) => {
18703
+ (T) => {
18704
18704
  const O = m.current ?? n ?? "";
18705
18705
  let j = o.findIndex((I) => I.value === O);
18706
- j === -1 && (j = P === 1 ? -1 : o.length);
18707
- for (let I = j + P; I >= 0 && I < o.length; I += P) {
18706
+ j === -1 && (j = T === 1 ? -1 : o.length);
18707
+ for (let I = j + T; I >= 0 && I < o.length; I += T) {
18708
18708
  const B = o[I];
18709
18709
  if (mr(B)) {
18710
18710
  y(B.value), k(B.value), n !== B.value && r(B.value);
@@ -18742,8 +18742,8 @@ function yx({
18742
18742
  { mask: "00:00", lazy: !0 },
18743
18743
  { mask: "0:00", lazy: !0 }
18744
18744
  ],
18745
- dispatch: (P, O) => {
18746
- const j = (O.value + P).replace(/\D/g, "");
18745
+ dispatch: (T, O) => {
18746
+ const j = (O.value + T).replace(/\D/g, "");
18747
18747
  if (j.length <= 2 || j.length >= 4) return O.compiledMasks[0];
18748
18748
  const I = ya(Number(j.slice(0, 2)));
18749
18749
  return o.some((Y) => Y.value.startsWith(`${I}:`)) ? O.compiledMasks[0] : O.compiledMasks[1];
@@ -18751,12 +18751,12 @@ function yx({
18751
18751
  placeholder: t,
18752
18752
  value: w,
18753
18753
  className: E,
18754
- onAccept: (P) => {
18755
- const O = typeof P == "string" ? P : String(P ?? "");
18754
+ onAccept: (T) => {
18755
+ const O = typeof T == "string" ? T : String(T ?? "");
18756
18756
  k(O), O.replace(/\D/g, "").length === 0 && n && r(null);
18757
18757
  },
18758
- onComplete: (P) => {
18759
- const O = typeof P == "string" ? P : String(P ?? ""), j = Bs(O, o);
18758
+ onComplete: (T) => {
18759
+ const O = typeof T == "string" ? T : String(T ?? ""), j = Bs(O, o);
18760
18760
  if (!j)
18761
18761
  return;
18762
18762
  if (j.selectableValue) {
@@ -18774,35 +18774,39 @@ function yx({
18774
18774
  onPointerDown: () => {
18775
18775
  $.current = !0, !s && (a || l(!0));
18776
18776
  },
18777
- onMouseDown: (P) => {
18778
- $.current = !0, C.current = typeof document < "u" && document.activeElement === P.currentTarget, !s && (a || l(!0));
18777
+ onMouseDown: (T) => {
18778
+ $.current = !0, C.current = typeof document < "u" && document.activeElement === T.currentTarget, !s && (a || l(!0));
18779
18779
  },
18780
18780
  onClick: () => {
18781
18781
  s || a || l(!0);
18782
18782
  },
18783
- onKeyDown: (P) => {
18783
+ onKeyDown: (T) => {
18784
18784
  if (!s) {
18785
- if (P.key === "Escape") {
18785
+ if (T.key === "Tab" && a && !T.defaultPrevented) {
18786
+ l(!1);
18787
+ return;
18788
+ }
18789
+ if (T.key === "Escape") {
18786
18790
  if (!a)
18787
18791
  return;
18788
- P.preventDefault(), l(!1);
18792
+ T.preventDefault(), l(!1);
18789
18793
  return;
18790
18794
  }
18791
- if (P.key === "ArrowDown" || P.key === "ArrowUp") {
18792
- if (g(), P.preventDefault(), !a) {
18795
+ if (T.key === "ArrowDown" || T.key === "ArrowUp") {
18796
+ if (g(), T.preventDefault(), !a) {
18793
18797
  l(!0);
18794
18798
  return;
18795
18799
  }
18796
- N(P.key === "ArrowDown" ? 1 : -1);
18800
+ N(T.key === "ArrowDown" ? 1 : -1);
18797
18801
  return;
18798
18802
  }
18799
- if (P.key === "Enter") {
18803
+ if (T.key === "Enter") {
18800
18804
  g();
18801
18805
  const O = Bs(w, o);
18802
18806
  if (!O)
18803
18807
  return;
18804
18808
  if (O.selectableValue) {
18805
- P.preventDefault(), y(O.selectableValue), k(O.selectableValue), n !== O.selectableValue && r(O.selectableValue), l(!1);
18809
+ T.preventDefault(), y(O.selectableValue), k(O.selectableValue), n !== O.selectableValue && r(O.selectableValue), l(!1);
18806
18810
  return;
18807
18811
  }
18808
18812
  const j = ba(O.parsed);
@@ -18811,27 +18815,27 @@ function yx({
18811
18815
  const I = uc(j, o);
18812
18816
  if (!I)
18813
18817
  return;
18814
- P.preventDefault(), y(I.value), k(I.value), n !== I.value && r(I.value), l(!1);
18818
+ T.preventDefault(), y(I.value), k(I.value), n !== I.value && r(I.value), l(!1);
18815
18819
  return;
18816
18820
  }
18817
18821
  }
18818
18822
  },
18819
- onFocus: (P) => {
18823
+ onFocus: (T) => {
18820
18824
  const O = !$.current || !C.current;
18821
18825
  if ($.current = !1, C.current = !1, x.current = !0, O) {
18822
- const j = P.currentTarget;
18826
+ const j = T.currentTarget;
18823
18827
  requestAnimationFrame(() => j.select());
18824
18828
  }
18825
18829
  s || a || l(!0);
18826
18830
  },
18827
18831
  onBlur: () => {
18828
18832
  x.current = !1;
18829
- const P = w.trim();
18830
- if (!P) {
18833
+ const T = w.trim();
18834
+ if (!T) {
18831
18835
  k(n || "");
18832
18836
  return;
18833
18837
  }
18834
- const O = Bs(P, o);
18838
+ const O = Bs(T, o);
18835
18839
  if (!O) {
18836
18840
  k(n || "");
18837
18841
  return;
@@ -18855,11 +18859,11 @@ function yx({
18855
18859
  "absolute right-1 top-1/2 inline-flex size-8 -translate-y-1/2 items-center justify-center rounded-md text-muted-foreground transition-colors hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
18856
18860
  ),
18857
18861
  "aria-label": a ? "Close time picker" : "Open time picker",
18858
- onPointerDown: (P) => {
18859
- P.preventDefault();
18862
+ onPointerDown: (T) => {
18863
+ T.preventDefault();
18860
18864
  },
18861
- onMouseDown: (P) => {
18862
- P.preventDefault();
18865
+ onMouseDown: (T) => {
18866
+ T.preventDefault();
18863
18867
  },
18864
18868
  onClick: () => {
18865
18869
  s || l(!a);
@@ -22462,15 +22466,15 @@ const d8 = f.forwardRef(
22462
22466
  name: w,
22463
22467
  autoComplete: k,
22464
22468
  ...N
22465
- } = b, E = typeof o == "string" || typeof i == "string", P = G4(s), O = f.useMemo(
22466
- () => K4(P),
22467
- [P]
22469
+ } = b, E = typeof o == "string" || typeof i == "string", T = G4(s), O = f.useMemo(
22470
+ () => K4(T),
22471
+ [T]
22468
22472
  ), j = f.useMemo(
22469
22473
  () => B4(O, g),
22470
22474
  [O, g]
22471
22475
  ), I = f.useMemo(
22472
- () => q4(O, P),
22473
- [P, O]
22476
+ () => q4(O, T),
22477
+ [T, O]
22474
22478
  ), B = f.useCallback(
22475
22479
  (Z) => {
22476
22480
  const ue = I.find((Ae) => Ae.value === Z);
@@ -22542,7 +22546,7 @@ const d8 = f.forwardRef(
22542
22546
  }, G.current = ue;
22543
22547
  }
22544
22548
  }
22545
- const D = H.current, [A, _] = f.useState(D.country), [S, M] = f.useState(D.inputValue), [U, F] = f.useState(""), [J, K] = f.useState(!1), [T, R] = f.useState(-1), [z, L] = f.useState(!1), [Q, W] = f.useState(null), [me, ae] = f.useState(
22549
+ const D = H.current, [A, _] = f.useState(D.country), [S, M] = f.useState(D.inputValue), [U, F] = f.useState(""), [J, K] = f.useState(!1), [P, R] = f.useState(-1), [z, L] = f.useState(!1), [Q, W] = f.useState(null), [me, ae] = f.useState(
22546
22550
  D.hasExplicitCountrySelection
22547
22551
  ), V = f.useRef(null), te = f.useRef(""), ie = f.useRef(null), Ee = f.useRef("smooth"), Oe = f.useRef(null), be = f.useCallback(() => {
22548
22552
  const Z = Ee.current;
@@ -22863,10 +22867,10 @@ const d8 = f.forwardRef(
22863
22867
  }
22864
22868
  R((Z) => Z < 0 || Z >= ne.length ? 0 : Z);
22865
22869
  }, [ne, le]);
22866
- const Ie = T >= 0 ? ne[T] ?? null : null;
22870
+ const Ie = P >= 0 ? ne[P] ?? null : null;
22867
22871
  f.useEffect(() => {
22868
- T < 0 && (Ee.current = "smooth");
22869
- }, [T]);
22872
+ P < 0 && (Ee.current = "smooth");
22873
+ }, [P]);
22870
22874
  const ve = f.useCallback(
22871
22875
  (Z) => {
22872
22876
  const ue = ne.findIndex((Ae) => Ae.value === Z.value);
@@ -23304,8 +23308,8 @@ var w8 = f.forwardRef((e, t) => {
23304
23308
  w.current = !0;
23305
23309
  }),
23306
23310
  onFocus: ye(e.onFocus, (E) => {
23307
- const P = !w.current;
23308
- if (E.target === E.currentTarget && P && !b) {
23311
+ const T = !w.current;
23312
+ if (E.target === E.currentTarget && T && !b) {
23309
23313
  const O = new CustomEvent(Zs, g8);
23310
23314
  if (E.currentTarget.dispatchEvent(O), !O.defaultPrevented) {
23311
23315
  const j = C().filter((H) => H.focusable), I = j.find((H) => H.active), B = j.find((H) => H.id === g), X = [I, B, ...j].filter(
@@ -23564,13 +23568,13 @@ var Bt = "MenuContent", [Y8, Dl] = er(Bt), Hp = f.forwardRef(
23564
23568
  onDismiss: m,
23565
23569
  disableOutsideScroll: y,
23566
23570
  ...g
23567
- } = e, v = tr(Bt, n), b = Mo(Bt, n), x = rs(n), $ = Wp(n), C = j8(n), [w, k] = f.useState(null), N = f.useRef(null), E = Xe(t, N, v.onContentChange), P = f.useRef(0), O = f.useRef(""), j = f.useRef(0), I = f.useRef(null), B = f.useRef("right"), Y = f.useRef(0), X = y ? gl : f.Fragment, H = y ? { as: G8, allowPinchZoom: !0 } : void 0, G = (A) => {
23568
- const _ = O.current + A, S = C().filter((T) => !T.disabled), M = document.activeElement, U = S.find((T) => T.ref.current === M)?.textValue, F = S.map((T) => T.textValue), J = iS(F, _, U), K = S.find((T) => T.textValue === J)?.ref.current;
23569
- (function T(R) {
23570
- O.current = R, window.clearTimeout(P.current), R !== "" && (P.current = window.setTimeout(() => T(""), 1e3));
23571
+ } = e, v = tr(Bt, n), b = Mo(Bt, n), x = rs(n), $ = Wp(n), C = j8(n), [w, k] = f.useState(null), N = f.useRef(null), E = Xe(t, N, v.onContentChange), T = f.useRef(0), O = f.useRef(""), j = f.useRef(0), I = f.useRef(null), B = f.useRef("right"), Y = f.useRef(0), X = y ? gl : f.Fragment, H = y ? { as: G8, allowPinchZoom: !0 } : void 0, G = (A) => {
23572
+ const _ = O.current + A, S = C().filter((P) => !P.disabled), M = document.activeElement, U = S.find((P) => P.ref.current === M)?.textValue, F = S.map((P) => P.textValue), J = iS(F, _, U), K = S.find((P) => P.textValue === J)?.ref.current;
23573
+ (function P(R) {
23574
+ O.current = R, window.clearTimeout(T.current), R !== "" && (T.current = window.setTimeout(() => P(""), 1e3));
23571
23575
  })(_), K && setTimeout(() => K.focus());
23572
23576
  };
23573
- f.useEffect(() => () => window.clearTimeout(P.current), []), Bf();
23577
+ f.useEffect(() => () => window.clearTimeout(T.current), []), Bf();
23574
23578
  const D = f.useCallback((A) => B.current === I.current?.side && aS(A, I.current?.area), []);
23575
23579
  return /* @__PURE__ */ p.jsx(
23576
23580
  Y8,
@@ -23650,11 +23654,11 @@ var Bt = "MenuContent", [Y8, Dl] = er(Bt), Hp = f.forwardRef(
23650
23654
  const F = N.current;
23651
23655
  if (A.target !== F || !R8.includes(A.key)) return;
23652
23656
  A.preventDefault();
23653
- const K = C().filter((T) => !T.disabled).map((T) => T.ref.current);
23657
+ const K = C().filter((P) => !P.disabled).map((P) => P.ref.current);
23654
23658
  Lp.includes(A.key) && K.reverse(), rS(K);
23655
23659
  }),
23656
23660
  onBlur: ye(e.onBlur, (A) => {
23657
- A.currentTarget.contains(A.target) || (window.clearTimeout(P.current), O.current = "");
23661
+ A.currentTarget.contains(A.target) || (window.clearTimeout(T.current), O.current = "");
23658
23662
  }),
23659
23663
  onPointerMove: ye(
23660
23664
  e.onPointerMove,
@@ -24214,7 +24218,7 @@ function T6({
24214
24218
  defaultUnreadOnly: o = !1,
24215
24219
  realtimeContext: i
24216
24220
  }) {
24217
- const s = ln(i ?? QS), [a, l] = Ce([]), [u, c] = Ce(0), [d, h] = Ce(0), [m, y] = Ce(!1), [g, v] = Ce(null), [b, x] = Ce(o), $ = s?.notifications ?? a, C = s?.unreadCount ?? u, w = s?.unseenCount ?? d, k = s?.loading ?? m, N = s?.error ? s.error instanceof Error ? s.error.message : String(s.error) : g, E = Ne(() => $.slice(0, r), [r, $]), P = Ne(() => E.filter((H) => !H.readAt), [E]), O = Ne(() => E.filter((H) => !!H.readAt), [E]), j = Ne(() => Jc(P), [P]), I = Ne(() => Jc(O), [O]), B = Ue(async ({ unreadOnly: H, markSeen: G }) => {
24221
+ const s = ln(i ?? QS), [a, l] = Ce([]), [u, c] = Ce(0), [d, h] = Ce(0), [m, y] = Ce(!1), [g, v] = Ce(null), [b, x] = Ce(o), $ = s?.notifications ?? a, C = s?.unreadCount ?? u, w = s?.unseenCount ?? d, k = s?.loading ?? m, N = s?.error ? s.error instanceof Error ? s.error.message : String(s.error) : g, E = Ne(() => $.slice(0, r), [r, $]), T = Ne(() => E.filter((H) => !H.readAt), [E]), O = Ne(() => E.filter((H) => !!H.readAt), [E]), j = Ne(() => Jc(T), [T]), I = Ne(() => Jc(O), [O]), B = Ue(async ({ unreadOnly: H, markSeen: G }) => {
24218
24222
  y(!0), v(null);
24219
24223
  try {
24220
24224
  const D = await fetch("/api/rb/notifications", {