urfu-ui-kit-react 0.0.97 → 0.0.98

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.
@@ -2,7 +2,7 @@ var Ri = Object.defineProperty;
2
2
  var ji = (n, a, t) => a in n ? Ri(n, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[a] = t;
3
3
  var ue = (n, a, t) => ji(n, typeof a != "symbol" ? a + "" : a, t);
4
4
  import * as ge from "react";
5
- import L, { useLayoutEffect as No, useEffect as be, createElement as Ii, cloneElement as Ro, Component as Xe, createRef as Wt, useRef as Fe, useCallback as zr, useState as me, useMemo as jo, createContext as Fi, useContext as Li } from "react";
5
+ import L, { useLayoutEffect as No, useEffect as be, createElement as Ii, cloneElement as Ro, Component as Xe, createRef as Wt, useRef as Fe, useCallback as Ur, useState as me, useMemo as jo, createContext as Fi, useContext as Li } from "react";
6
6
  import * as Yi from "react-dom";
7
7
  import la, { createPortal as Pn } from "react-dom";
8
8
  function Io(n) {
@@ -70,10 +70,10 @@ function Wi() {
70
70
  Re.unshift("Warning: " + X), Function.prototype.apply.call(console[D], console, Re);
71
71
  }
72
72
  }
73
- var R = !1, C = !1, U = !1, j = !1, q = !1, O;
73
+ var R = !1, C = !1, z = !1, j = !1, q = !1, O;
74
74
  O = Symbol.for("react.module.reference");
75
75
  function H(D) {
76
- return !!(typeof D == "string" || typeof D == "function" || D === e || D === o || q || D === r || D === d || D === u || j || D === b || R || C || U || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === m || D.$$typeof === i || D.$$typeof === s || D.$$typeof === l || // This needs to include all possible module reference object
76
+ return !!(typeof D == "string" || typeof D == "function" || D === e || D === o || q || D === r || D === d || D === u || j || D === b || R || C || z || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === m || D.$$typeof === i || D.$$typeof === s || D.$$typeof === l || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
@@ -89,7 +89,7 @@ function Wi() {
89
89
  function ae(D) {
90
90
  return D.displayName || "Context";
91
91
  }
92
- function z(D) {
92
+ function U(D) {
93
93
  if (D == null)
94
94
  return null;
95
95
  if (typeof D.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof D == "function")
@@ -122,11 +122,11 @@ function Wi() {
122
122
  return te(D, D.render, "ForwardRef");
123
123
  case m:
124
124
  var ve = D.displayName || null;
125
- return ve !== null ? ve : z(D.type) || "Memo";
125
+ return ve !== null ? ve : U(D.type) || "Memo";
126
126
  case g: {
127
127
  var Ce = D, Re = Ce._payload, xe = Ce._init;
128
128
  try {
129
- return z(xe(Re));
129
+ return U(xe(Re));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -265,18 +265,18 @@ function Wi() {
265
265
  if (st && ve && typeof st.stack == "string") {
266
266
  for (var we = st.stack.split(`
267
267
  `), at = ve.stack.split(`
268
- `), Be = we.length - 1, Ue = at.length - 1; Be >= 1 && Ue >= 0 && we[Be] !== at[Ue]; )
269
- Ue--;
270
- for (; Be >= 1 && Ue >= 0; Be--, Ue--)
271
- if (we[Be] !== at[Ue]) {
272
- if (Be !== 1 || Ue !== 1)
268
+ `), Be = we.length - 1, ze = at.length - 1; Be >= 1 && ze >= 0 && we[Be] !== at[ze]; )
269
+ ze--;
270
+ for (; Be >= 1 && ze >= 0; Be--, ze--)
271
+ if (we[Be] !== at[ze]) {
272
+ if (Be !== 1 || ze !== 1)
273
273
  do
274
- if (Be--, Ue--, Ue < 0 || we[Be] !== at[Ue]) {
274
+ if (Be--, ze--, ze < 0 || we[Be] !== at[ze]) {
275
275
  var pt = `
276
276
  ` + we[Be].replace(" at new ", " at ");
277
277
  return D.displayName && pt.includes("<anonymous>") && (pt = pt.replace("<anonymous>", D.displayName)), typeof D == "function" && Y.set(D, pt), pt;
278
278
  }
279
- while (Be >= 1 && Ue >= 0);
279
+ while (Be >= 1 && ze >= 0);
280
280
  break;
281
281
  }
282
282
  }
@@ -398,8 +398,8 @@ function Wi() {
398
398
  }
399
399
  function he(D, X) {
400
400
  if (typeof D.ref == "string" && lt.current && X && lt.current.stateNode !== X) {
401
- var se = z(lt.current.type);
402
- tn[se] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', z(lt.current.type), D.ref), tn[se] = !0);
401
+ var se = U(lt.current.type);
402
+ tn[se] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(lt.current.type), D.ref), tn[se] = !0);
403
403
  }
404
404
  }
405
405
  function Ne(D, X) {
@@ -465,8 +465,8 @@ function Wi() {
465
465
  xe[Re] === void 0 && (xe[Re] = Be[Re]);
466
466
  }
467
467
  if (we || at) {
468
- var Ue = typeof D == "function" ? D.displayName || D.name || "Unknown" : D;
469
- we && Ne(xe, Ue), at && fe(xe, Ue);
468
+ var ze = typeof D == "function" ? D.displayName || D.name || "Unknown" : D;
469
+ we && Ne(xe, ze), at && fe(xe, ze);
470
470
  }
471
471
  return Ge(D, we, at, Ce, ve, lt.current, xe);
472
472
  }
@@ -481,13 +481,13 @@ function Wi() {
481
481
  }
482
482
  var rt;
483
483
  rt = !1;
484
- function ze(D) {
484
+ function Ue(D) {
485
485
  return typeof D == "object" && D !== null && D.$$typeof === a;
486
486
  }
487
487
  function je() {
488
488
  {
489
489
  if (Ae.current) {
490
- var D = z(Ae.current.type);
490
+ var D = U(Ae.current.type);
491
491
  if (D)
492
492
  return `
493
493
 
@@ -522,7 +522,7 @@ Check the top-level render call using <` + se + ">.");
522
522
  return;
523
523
  gn[se] = !0;
524
524
  var ve = "";
525
- D && D._owner && D._owner !== Ae.current && (ve = " It was passed a child from " + z(D._owner.type) + "."), Qe(D), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', se, ve), Qe(null);
525
+ D && D._owner && D._owner !== Ae.current && (ve = " It was passed a child from " + U(D._owner.type) + "."), Qe(D), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', se, ve), Qe(null);
526
526
  }
527
527
  }
528
528
  function vn(D, X) {
@@ -532,15 +532,15 @@ Check the top-level render call using <` + se + ">.");
532
532
  if (Ie(D))
533
533
  for (var se = 0; se < D.length; se++) {
534
534
  var ve = D[se];
535
- ze(ve) && ut(ve, X);
535
+ Ue(ve) && ut(ve, X);
536
536
  }
537
- else if (ze(D))
537
+ else if (Ue(D))
538
538
  D._store && (D._store.validated = !0);
539
539
  else if (D) {
540
540
  var Ce = _(D);
541
541
  if (typeof Ce == "function" && Ce !== D.entries)
542
542
  for (var Re = Ce.call(D), xe; !(xe = Re.next()).done; )
543
- ze(xe.value) && ut(xe.value, X);
543
+ Ue(xe.value) && ut(xe.value, X);
544
544
  }
545
545
  }
546
546
  }
@@ -559,11 +559,11 @@ Check the top-level render call using <` + se + ">.");
559
559
  else
560
560
  return;
561
561
  if (se) {
562
- var ve = z(X);
562
+ var ve = U(X);
563
563
  pe(se, D.props, "prop", ve, D);
564
564
  } else if (X.PropTypes !== void 0 && !rt) {
565
565
  rt = !0;
566
- var Ce = z(X);
566
+ var Ce = U(X);
567
567
  P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ce || "Unknown");
568
568
  }
569
569
  typeof X.getDefaultProps == "function" && !X.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -591,11 +591,11 @@ Check the top-level render call using <` + se + ">.");
591
591
  var at = gt();
592
592
  at ? we += at : we += je();
593
593
  var Be;
594
- D === null ? Be = "null" : Ie(D) ? Be = "array" : D !== void 0 && D.$$typeof === a ? (Be = "<" + (z(D.type) || "Unknown") + " />", we = " Did you accidentally export a JSX literal instead of a component?") : Be = typeof D, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Be, we);
594
+ D === null ? Be = "null" : Ie(D) ? Be = "array" : D !== void 0 && D.$$typeof === a ? (Be = "<" + (U(D.type) || "Unknown") + " />", we = " Did you accidentally export a JSX literal instead of a component?") : Be = typeof D, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Be, we);
595
595
  }
596
- var Ue = Pe(D, X, se, Ce, Re);
597
- if (Ue == null)
598
- return Ue;
596
+ var ze = Pe(D, X, se, Ce, Re);
597
+ if (ze == null)
598
+ return ze;
599
599
  if (xe) {
600
600
  var pt = X.children;
601
601
  if (pt !== void 0)
@@ -610,7 +610,7 @@ Check the top-level render call using <` + se + ">.");
610
610
  vn(pt, D);
611
611
  }
612
612
  if (ce.call(X, "key")) {
613
- var Vt = z(D), st = Object.keys(X).filter(function(Ni) {
613
+ var Vt = U(D), st = Object.keys(X).filter(function(Ni) {
614
614
  return Ni !== "key";
615
615
  }), Sr = st.length > 0 ? "{key: someKey, " + st.join(": ..., ") + ": ...}" : "{key: someKey}";
616
616
  if (!Ca[Vt + Sr]) {
@@ -623,7 +623,7 @@ React keys must be passed directly to JSX without using spread:
623
623
  <%s key={someKey} {...props} />`, Sr, Vt, Pi, Vt), Ca[Vt + Sr] = !0;
624
624
  }
625
625
  }
626
- return D === e ? Si(Ue) : Ci(Ue), Ue;
626
+ return D === e ? Si(ze) : Ci(ze), ze;
627
627
  }
628
628
  }
629
629
  function Ei(D, X, se) {
@@ -653,8 +653,8 @@ function $i() {
653
653
  var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, d = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, m = n ? Symbol.for("react.suspense") : 60113, g = n ? Symbol.for("react.suspense_list") : 60120, b = n ? Symbol.for("react.memo") : 60115, x = n ? Symbol.for("react.lazy") : 60116, k = n ? Symbol.for("react.block") : 60121, _ = n ? Symbol.for("react.fundamental") : 60117, S = n ? Symbol.for("react.responder") : 60118, P = n ? Symbol.for("react.scope") : 60119;
654
654
  function M(C) {
655
655
  if (typeof C == "object" && C !== null) {
656
- var U = C.$$typeof;
657
- switch (U) {
656
+ var z = C.$$typeof;
657
+ switch (z) {
658
658
  case a:
659
659
  switch (C = C.type, C) {
660
660
  case l:
@@ -673,11 +673,11 @@ function $i() {
673
673
  case i:
674
674
  return C;
675
675
  default:
676
- return U;
676
+ return z;
677
677
  }
678
678
  }
679
679
  case t:
680
- return U;
680
+ return z;
681
681
  }
682
682
  }
683
683
  }
@@ -761,7 +761,7 @@ function Hi() {
761
761
  }
762
762
  }
763
763
  }
764
- var C = l, U = d, j = s, q = i, O = a, H = u, te = e, ae = x, z = b, le = t, ie = o, ne = r, E = m, Q = !1;
764
+ var C = l, z = d, j = s, q = i, O = a, H = u, te = e, ae = x, U = b, le = t, ie = o, ne = r, E = m, Q = !1;
765
765
  function p(A) {
766
766
  return Q || (Q = !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.")), f(A) || R(A) === l;
767
767
  }
@@ -801,7 +801,7 @@ function Hi() {
801
801
  function V(A) {
802
802
  return R(A) === m;
803
803
  }
804
- Ee.AsyncMode = C, Ee.ConcurrentMode = U, Ee.ContextConsumer = j, Ee.ContextProvider = q, Ee.Element = O, Ee.ForwardRef = H, Ee.Fragment = te, Ee.Lazy = ae, Ee.Memo = z, Ee.Portal = le, Ee.Profiler = ie, Ee.StrictMode = ne, Ee.Suspense = E, Ee.isAsyncMode = p, Ee.isConcurrentMode = f, Ee.isContextConsumer = y, Ee.isContextProvider = v, Ee.isElement = c, Ee.isForwardRef = T, Ee.isFragment = F, Ee.isLazy = J, Ee.isMemo = I, Ee.isPortal = N, Ee.isProfiler = W, Ee.isStrictMode = Y, Ee.isSuspense = V, Ee.isValidElementType = M, Ee.typeOf = R;
804
+ Ee.AsyncMode = C, Ee.ConcurrentMode = z, Ee.ContextConsumer = j, Ee.ContextProvider = q, Ee.Element = O, Ee.ForwardRef = H, Ee.Fragment = te, Ee.Lazy = ae, Ee.Memo = U, Ee.Portal = le, Ee.Profiler = ie, Ee.StrictMode = ne, Ee.Suspense = E, Ee.isAsyncMode = p, Ee.isConcurrentMode = f, Ee.isContextConsumer = y, Ee.isContextProvider = v, Ee.isElement = c, Ee.isForwardRef = T, Ee.isFragment = F, Ee.isLazy = J, Ee.isMemo = I, Ee.isPortal = N, Ee.isProfiler = W, Ee.isStrictMode = Y, Ee.isSuspense = V, Ee.isValidElementType = M, Ee.typeOf = R;
805
805
  }()), Ee;
806
806
  }
807
807
  var Pa;
@@ -956,13 +956,13 @@ function Vi() {
956
956
  arrayOf: M,
957
957
  element: R(),
958
958
  elementType: C(),
959
- instanceOf: U,
959
+ instanceOf: z,
960
960
  node: H(),
961
961
  objectOf: q,
962
962
  oneOf: j,
963
963
  oneOfType: O,
964
964
  shape: ae,
965
- exact: z
965
+ exact: U
966
966
  };
967
967
  function x(f, y) {
968
968
  return f === y ? f !== 0 || 1 / f === 1 / y : f !== f && y !== y;
@@ -1051,7 +1051,7 @@ function Vi() {
1051
1051
  }
1052
1052
  return _(f);
1053
1053
  }
1054
- function U(f) {
1054
+ function z(f) {
1055
1055
  function y(v, c, T, F, J) {
1056
1056
  if (!(v[c] instanceof f)) {
1057
1057
  var I = f.name || g, N = p(v[c]);
@@ -1145,7 +1145,7 @@ function Vi() {
1145
1145
  }
1146
1146
  return _(y);
1147
1147
  }
1148
- function z(f) {
1148
+ function U(f) {
1149
1149
  function y(v, c, T, F, J) {
1150
1150
  var I = v[c], N = ne(I);
1151
1151
  if (N !== "object")
@@ -1289,12 +1289,12 @@ function Gi() {
1289
1289
  }, Nr;
1290
1290
  }
1291
1291
  if (process.env.NODE_ENV !== "production") {
1292
- var Qi = Fo(), Ui = !0;
1293
- Xr.exports = Vi()(Qi.isElement, Ui);
1292
+ var Qi = Fo(), zi = !0;
1293
+ Xr.exports = Vi()(Qi.isElement, zi);
1294
1294
  } else
1295
1295
  Xr.exports = Gi()();
1296
- var zi = Xr.exports;
1297
- const w = /* @__PURE__ */ Io(zi), Ki = ({
1296
+ var Ui = Xr.exports;
1297
+ const w = /* @__PURE__ */ Io(Ui), Ki = ({
1298
1298
  title: n = "",
1299
1299
  id: a = "",
1300
1300
  children: t = /* @__PURE__ */ h.jsx("div", {}),
@@ -1576,12 +1576,12 @@ function ar(n, a) {
1576
1576
  const t = de(n), e = de(a), r = t.getFullYear() - e.getFullYear(), o = t.getMonth() - e.getMonth();
1577
1577
  return r * 12 + o;
1578
1578
  }
1579
- function Ut(n) {
1579
+ function zt(n) {
1580
1580
  const a = de(n);
1581
1581
  return Math.trunc(a.getMonth() / 3) + 1;
1582
1582
  }
1583
1583
  function or(n, a) {
1584
- const t = de(n), e = de(a), r = t.getFullYear() - e.getFullYear(), o = Ut(t) - Ut(e);
1584
+ const t = de(n), e = de(a), r = t.getFullYear() - e.getFullYear(), o = zt(t) - zt(e);
1585
1585
  return r * 4 + o;
1586
1586
  }
1587
1587
  function ir(n, a) {
@@ -2708,7 +2708,7 @@ const $a = (n, a) => {
2708
2708
  function Qo(n) {
2709
2709
  return $s.test(n);
2710
2710
  }
2711
- function Uo(n) {
2711
+ function zo(n) {
2712
2712
  return Hs.test(n);
2713
2713
  }
2714
2714
  function Jr(n, a, t) {
@@ -2728,7 +2728,7 @@ function lr(n) {
2728
2728
  const a = de(n);
2729
2729
  return !isNaN(Number(a));
2730
2730
  }
2731
- const Vs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Gs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Qs = /^'([^]*?)'?$/, Us = /''/g, zs = /[a-zA-Z]/;
2731
+ const Vs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Gs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Qs = /^'([^]*?)'?$/, zs = /''/g, Us = /[a-zA-Z]/;
2732
2732
  function Ha(n, a, t) {
2733
2733
  var u, m, g, b, x, k, _, S;
2734
2734
  const e = en(), r = (t == null ? void 0 : t.locale) ?? e.locale ?? Bo, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((m = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((b = (g = e.locale) == null ? void 0 : g.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((k = (x = t == null ? void 0 : t.locale) == null ? void 0 : x.options) == null ? void 0 : k.weekStartsOn) ?? e.weekStartsOn ?? ((S = (_ = e.locale) == null ? void 0 : _.options) == null ? void 0 : S.weekStartsOn) ?? 0, s = de(n);
@@ -2749,7 +2749,7 @@ function Ha(n, a, t) {
2749
2749
  return { isToken: !1, value: Ks(P) };
2750
2750
  if (Ya[M])
2751
2751
  return { isToken: !0, value: P };
2752
- if (M.match(zs))
2752
+ if (M.match(Us))
2753
2753
  throw new RangeError(
2754
2754
  "Format string contains an unescaped latin alphabet character `" + M + "`"
2755
2755
  );
@@ -2764,14 +2764,14 @@ function Ha(n, a, t) {
2764
2764
  return l.map((P) => {
2765
2765
  if (!P.isToken) return P.value;
2766
2766
  const M = P.value;
2767
- (!(t != null && t.useAdditionalWeekYearTokens) && Uo(M) || !(t != null && t.useAdditionalDayOfYearTokens) && Qo(M)) && Jr(M, a, String(n));
2767
+ (!(t != null && t.useAdditionalWeekYearTokens) && zo(M) || !(t != null && t.useAdditionalDayOfYearTokens) && Qo(M)) && Jr(M, a, String(n));
2768
2768
  const R = Ya[M[0]];
2769
2769
  return R(s, M, r.localize, d);
2770
2770
  }).join("");
2771
2771
  }
2772
2772
  function Ks(n) {
2773
2773
  const a = n.match(Qs);
2774
- return a ? a[1].replace(Us, "'") : n;
2774
+ return a ? a[1].replace(zs, "'") : n;
2775
2775
  }
2776
2776
  function Ba(n) {
2777
2777
  return de(n).getDate();
@@ -2867,7 +2867,7 @@ function al(n, a) {
2867
2867
  ), t;
2868
2868
  }
2869
2869
  const ol = 10;
2870
- class zo {
2870
+ class Uo {
2871
2871
  constructor() {
2872
2872
  ue(this, "subPriority", 0);
2873
2873
  }
@@ -2875,7 +2875,7 @@ class zo {
2875
2875
  return !0;
2876
2876
  }
2877
2877
  }
2878
- class il extends zo {
2878
+ class il extends Uo {
2879
2879
  constructor(a, t, e, r, o) {
2880
2880
  super(), this.value = a, this.validateValue = t, this.setValue = e, this.priority = r, o && (this.subPriority = o);
2881
2881
  }
@@ -2886,7 +2886,7 @@ class il extends zo {
2886
2886
  return this.setValue(a, t, this.value, e);
2887
2887
  }
2888
2888
  }
2889
- class sl extends zo {
2889
+ class sl extends Uo {
2890
2890
  constructor() {
2891
2891
  super(...arguments);
2892
2892
  ue(this, "priority", ol);
@@ -4319,10 +4319,10 @@ const Vl = {
4319
4319
  x: new Hl(),
4320
4320
  t: new Bl(),
4321
4321
  T: new ql()
4322
- }, Gl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ql = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ul = /^'([^]*?)'?$/, zl = /''/g, Kl = /\S/, Xl = /[a-zA-Z]/;
4322
+ }, Gl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ql = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, zl = /^'([^]*?)'?$/, Ul = /''/g, Kl = /\S/, Xl = /[a-zA-Z]/;
4323
4323
  function Rr(n, a, t, e) {
4324
- var k, _, S, P, M, R, C, U;
4325
- const r = rl(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? Bo, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((_ = (k = e == null ? void 0 : e.locale) == null ? void 0 : k.options) == null ? void 0 : _.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((P = (S = r.locale) == null ? void 0 : S.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((R = (M = e == null ? void 0 : e.locale) == null ? void 0 : M.options) == null ? void 0 : R.weekStartsOn) ?? r.weekStartsOn ?? ((U = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : U.weekStartsOn) ?? 0;
4324
+ var k, _, S, P, M, R, C, z;
4325
+ const r = rl(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? Bo, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((_ = (k = e == null ? void 0 : e.locale) == null ? void 0 : k.options) == null ? void 0 : _.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((P = (S = r.locale) == null ? void 0 : S.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((R = (M = e == null ? void 0 : e.locale) == null ? void 0 : M.options) == null ? void 0 : R.weekStartsOn) ?? r.weekStartsOn ?? ((z = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : z.weekStartsOn) ?? 0;
4326
4326
  if (a === "")
4327
4327
  return n === "" ? de(t) : Oe(t, NaN);
4328
4328
  const l = {
@@ -4338,13 +4338,13 @@ function Rr(n, a, t, e) {
4338
4338
  return j;
4339
4339
  }).join("").match(Gl), m = [];
4340
4340
  for (let j of u) {
4341
- !(e != null && e.useAdditionalWeekYearTokens) && Uo(j) && Jr(j, a, n), !(e != null && e.useAdditionalDayOfYearTokens) && Qo(j) && Jr(j, a, n);
4341
+ !(e != null && e.useAdditionalWeekYearTokens) && zo(j) && Jr(j, a, n), !(e != null && e.useAdditionalDayOfYearTokens) && Qo(j) && Jr(j, a, n);
4342
4342
  const q = j[0], O = Vl[q];
4343
4343
  if (O) {
4344
4344
  const { incompatibleTokens: H } = O;
4345
4345
  if (Array.isArray(H)) {
4346
4346
  const ae = m.find(
4347
- (z) => H.includes(z.token) || z.token === q
4347
+ (U) => H.includes(U.token) || U.token === q
4348
4348
  );
4349
4349
  if (ae)
4350
4350
  throw new RangeError(
@@ -4393,7 +4393,7 @@ function Rr(n, a, t, e) {
4393
4393
  return Oe(t, b);
4394
4394
  }
4395
4395
  function Zl(n) {
4396
- return n.match(Ul)[1].replace(zl, "'");
4396
+ return n.match(zl)[1].replace(Ul, "'");
4397
4397
  }
4398
4398
  function Jl(n, a) {
4399
4399
  const e = rc(n);
@@ -4674,7 +4674,7 @@ function Mn(n, a, t) {
4674
4674
  function na(n) {
4675
4675
  return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
4676
4676
  }
4677
- const pn = Math.min, zt = Math.max, ur = Math.round, Bn = Math.floor, Bt = (n) => ({
4677
+ const pn = Math.min, Ut = Math.max, ur = Math.round, Bn = Math.floor, Bt = (n) => ({
4678
4678
  x: n,
4679
4679
  y: n
4680
4680
  }), wc = {
@@ -4687,7 +4687,7 @@ const pn = Math.min, zt = Math.max, ur = Math.round, Bn = Math.floor, Bt = (n) =
4687
4687
  end: "start"
4688
4688
  };
4689
4689
  function Dc(n, a, t) {
4690
- return zt(n, pn(a, t));
4690
+ return Ut(n, pn(a, t));
4691
4691
  }
4692
4692
  function Dr(n, a) {
4693
4693
  return typeof n == "function" ? n(a) : n;
@@ -4779,7 +4779,7 @@ function fr(n) {
4779
4779
  y: t
4780
4780
  };
4781
4781
  }
4782
- function Ua(n, a, t) {
4782
+ function za(n, a, t) {
4783
4783
  let {
4784
4784
  reference: e,
4785
4785
  floating: r
@@ -4841,7 +4841,7 @@ const Oc = async (n, a, t) => {
4841
4841
  }), {
4842
4842
  x: u,
4843
4843
  y: m
4844
- } = Ua(d, e, l), g = e, b = {}, x = 0;
4844
+ } = za(d, e, l), g = e, b = {}, x = 0;
4845
4845
  for (let k = 0; k < s.length; k++) {
4846
4846
  const {
4847
4847
  name: _,
@@ -4878,7 +4878,7 @@ const Oc = async (n, a, t) => {
4878
4878
  }) : C.rects), {
4879
4879
  x: u,
4880
4880
  y: m
4881
- } = Ua(d, g, l)), k = -1);
4881
+ } = za(d, g, l)), k = -1);
4882
4882
  }
4883
4883
  return {
4884
4884
  x: u,
@@ -4954,10 +4954,10 @@ const Pc = (n) => ({
4954
4954
  const m = ai(u), g = {
4955
4955
  x: t,
4956
4956
  y: e
4957
- }, b = ba(r), x = ya(b), k = await i.getDimensions(d), _ = b === "y", S = _ ? "top" : "left", P = _ ? "bottom" : "right", M = _ ? "clientHeight" : "clientWidth", R = o.reference[x] + o.reference[b] - g[b] - o.floating[x], C = g[b] - o.reference[b], U = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
4958
- let j = U ? U[M] : 0;
4959
- (!j || !await (i.isElement == null ? void 0 : i.isElement(U))) && (j = s.floating[M] || o.floating[x]);
4960
- const q = R / 2 - C / 2, O = j / 2 - k[x] / 2 - 1, H = pn(m[S], O), te = pn(m[P], O), ae = H, z = j - k[x] - te, le = j / 2 - k[x] / 2 + q, ie = Dc(ae, le, z), ne = !l.arrow && Rn(r) != null && le !== ie && o.reference[x] / 2 - (le < ae ? H : te) - k[x] / 2 < 0, E = ne ? le < ae ? le - ae : le - z : 0;
4957
+ }, b = ba(r), x = ya(b), k = await i.getDimensions(d), _ = b === "y", S = _ ? "top" : "left", P = _ ? "bottom" : "right", M = _ ? "clientHeight" : "clientWidth", R = o.reference[x] + o.reference[b] - g[b] - o.floating[x], C = g[b] - o.reference[b], z = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
4958
+ let j = z ? z[M] : 0;
4959
+ (!j || !await (i.isElement == null ? void 0 : i.isElement(z))) && (j = s.floating[M] || o.floating[x]);
4960
+ const q = R / 2 - C / 2, O = j / 2 - k[x] / 2 - 1, H = pn(m[S], O), te = pn(m[P], O), ae = H, U = j - k[x] - te, le = j / 2 - k[x] / 2 + q, ie = Dc(ae, le, U), ne = !l.arrow && Rn(r) != null && le !== ie && o.reference[x] / 2 - (le < ae ? H : te) - k[x] / 2 < 0, E = ne ? le < ae ? le - ae : le - U : 0;
4961
4961
  return {
4962
4962
  [b]: g[b] + E,
4963
4963
  data: {
@@ -4994,8 +4994,8 @@ const Pc = (n) => ({
4994
4994
  } = Dr(n, a);
4995
4995
  if ((t = o.arrow) != null && t.alignmentOffset)
4996
4996
  return {};
4997
- const S = hn(r), P = On(s), M = hn(s) === s, R = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), C = g || (M || !k ? [dr(s)] : Cc(s)), U = x !== "none";
4998
- !g && U && C.push(...Ec(s, k, x, R));
4997
+ const S = hn(r), P = On(s), M = hn(s) === s, R = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), C = g || (M || !k ? [dr(s)] : Cc(s)), z = x !== "none";
4998
+ !g && z && C.push(...Ec(s, k, x, R));
4999
4999
  const j = [s, ...C], q = await Tc(a, _), O = [];
5000
5000
  let H = ((e = o.flip) == null ? void 0 : e.overflows) || [];
5001
5001
  if (u && O.push(q[S]), m) {
@@ -5022,16 +5022,16 @@ const Pc = (n) => ({
5022
5022
  if (!ne)
5023
5023
  switch (b) {
5024
5024
  case "bestFit": {
5025
- var z;
5026
- const E = (z = H.filter((Q) => {
5027
- if (U) {
5025
+ var U;
5026
+ const E = (U = H.filter((Q) => {
5027
+ if (z) {
5028
5028
  const p = On(Q.placement);
5029
5029
  return p === P || // Create a bias to the `y` side axis due to horizontal
5030
5030
  // reading directions favoring greater width.
5031
5031
  p === "y";
5032
5032
  }
5033
5033
  return !0;
5034
- }).map((Q) => [Q.placement, Q.overflows.filter((p) => p > 0).reduce((p, f) => p + f, 0)]).sort((Q, p) => Q[1] - p[1])[0]) == null ? void 0 : z[0];
5034
+ }).map((Q) => [Q.placement, Q.overflows.filter((p) => p > 0).reduce((p, f) => p + f, 0)]).sort((Q, p) => Q[1] - p[1])[0]) == null ? void 0 : U[0];
5035
5035
  E && (ne = E);
5036
5036
  break;
5037
5037
  }
@@ -5195,10 +5195,10 @@ function aa(n, a) {
5195
5195
  return a ? a.left + t : Jt(Tt(n)).left + t;
5196
5196
  }
5197
5197
  function Ac(n) {
5198
- const a = Tt(n), t = xr(n), e = n.ownerDocument.body, r = zt(a.scrollWidth, a.clientWidth, e.scrollWidth, e.clientWidth), o = zt(a.scrollHeight, a.clientHeight, e.scrollHeight, e.clientHeight);
5198
+ const a = Tt(n), t = xr(n), e = n.ownerDocument.body, r = Ut(a.scrollWidth, a.clientWidth, e.scrollWidth, e.clientWidth), o = Ut(a.scrollHeight, a.clientHeight, e.scrollHeight, e.clientHeight);
5199
5199
  let i = -t.scrollLeft + aa(n);
5200
5200
  const s = -t.scrollTop;
5201
- return mt(e).direction === "rtl" && (i += zt(a.clientWidth, e.clientWidth) - r), {
5201
+ return mt(e).direction === "rtl" && (i += Ut(a.clientWidth, e.clientWidth) - r), {
5202
5202
  width: r,
5203
5203
  height: o,
5204
5204
  x: i,
@@ -5229,7 +5229,7 @@ function $c(n, a) {
5229
5229
  y: d
5230
5230
  };
5231
5231
  }
5232
- function za(n, a, t) {
5232
+ function Ua(n, a, t) {
5233
5233
  let e;
5234
5234
  if (a === "viewport")
5235
5235
  e = Wc(n, t);
@@ -5272,9 +5272,9 @@ function Bc(n) {
5272
5272
  strategy: r
5273
5273
  } = n;
5274
5274
  const i = [...t === "clippingAncestors" ? wr(a) ? [] : Hc(a, this._c) : [].concat(t), e], s = i[0], l = i.reduce((d, u) => {
5275
- const m = za(a, u, r);
5276
- return d.top = zt(m.top, d.top), d.right = pn(m.right, d.right), d.bottom = pn(m.bottom, d.bottom), d.left = zt(m.left, d.left), d;
5277
- }, za(a, s, r));
5275
+ const m = Ua(a, u, r);
5276
+ return d.top = Ut(m.top, d.top), d.right = pn(m.right, d.right), d.bottom = pn(m.bottom, d.bottom), d.left = Ut(m.left, d.left), d;
5277
+ }, Ua(a, s, r));
5278
5278
  return {
5279
5279
  width: l.right - l.left,
5280
5280
  height: l.bottom - l.top,
@@ -5362,7 +5362,7 @@ const Gc = async function(n) {
5362
5362
  function Qc(n) {
5363
5363
  return mt(n).direction === "rtl";
5364
5364
  }
5365
- const Uc = {
5365
+ const zc = {
5366
5366
  convertOffsetParentRelativeRectToViewportRelativeRect: Lc,
5367
5367
  getDocumentElement: Tt,
5368
5368
  getClippingRect: Bc,
@@ -5374,7 +5374,7 @@ const Uc = {
5374
5374
  isElement: et,
5375
5375
  isRTL: Qc
5376
5376
  };
5377
- function zc(n, a) {
5377
+ function Uc(n, a) {
5378
5378
  let t = null, e;
5379
5379
  const r = Tt(n);
5380
5380
  function o() {
@@ -5393,15 +5393,15 @@ function zc(n, a) {
5393
5393
  return;
5394
5394
  const b = Bn(u), x = Bn(r.clientWidth - (d + m)), k = Bn(r.clientHeight - (u + g)), _ = Bn(d), P = {
5395
5395
  rootMargin: -b + "px " + -x + "px " + -k + "px " + -_ + "px",
5396
- threshold: zt(0, pn(1, l)) || 1
5396
+ threshold: Ut(0, pn(1, l)) || 1
5397
5397
  };
5398
5398
  let M = !0;
5399
5399
  function R(C) {
5400
- const U = C[0].intersectionRatio;
5401
- if (U !== l) {
5400
+ const z = C[0].intersectionRatio;
5401
+ if (z !== l) {
5402
5402
  if (!M)
5403
5403
  return i();
5404
- U ? i(!1, U) : e = setTimeout(() => {
5404
+ z ? i(!1, z) : e = setTimeout(() => {
5405
5405
  i(!1, 1e-7);
5406
5406
  }, 1e3);
5407
5407
  }
@@ -5434,7 +5434,7 @@ function Kc(n, a, t, e) {
5434
5434
  passive: !0
5435
5435
  }), o && S.addEventListener("resize", t);
5436
5436
  });
5437
- const m = d && s ? zc(d, t) : null;
5437
+ const m = d && s ? Uc(d, t) : null;
5438
5438
  let g = -1, b = null;
5439
5439
  i && (b = new ResizeObserver((S) => {
5440
5440
  let [P] = S;
@@ -5458,7 +5458,7 @@ function Kc(n, a, t, e) {
5458
5458
  }
5459
5459
  const Xc = jc, Zc = Nc, Xa = Pc, Jc = (n, a, t) => {
5460
5460
  const e = /* @__PURE__ */ new Map(), r = {
5461
- platform: Uc,
5461
+ platform: zc,
5462
5462
  ...t
5463
5463
  }, o = {
5464
5464
  ...r.platform,
@@ -5537,18 +5537,18 @@ function eu(n) {
5537
5537
  }), [g, b] = ge.useState(e);
5538
5538
  pr(g, e) || b(e);
5539
5539
  const [x, k] = ge.useState(null), [_, S] = ge.useState(null), P = ge.useCallback((Q) => {
5540
- Q !== U.current && (U.current = Q, k(Q));
5540
+ Q !== z.current && (z.current = Q, k(Q));
5541
5541
  }, []), M = ge.useCallback((Q) => {
5542
5542
  Q !== j.current && (j.current = Q, S(Q));
5543
- }, []), R = o || x, C = i || _, U = ge.useRef(null), j = ge.useRef(null), q = ge.useRef(u), O = l != null, H = Fr(l), te = Fr(r), ae = Fr(d), z = ge.useCallback(() => {
5544
- if (!U.current || !j.current)
5543
+ }, []), R = o || x, C = i || _, z = ge.useRef(null), j = ge.useRef(null), q = ge.useRef(u), O = l != null, H = Fr(l), te = Fr(r), ae = Fr(d), U = ge.useCallback(() => {
5544
+ if (!z.current || !j.current)
5545
5545
  return;
5546
5546
  const Q = {
5547
5547
  placement: a,
5548
5548
  strategy: t,
5549
5549
  middleware: g
5550
5550
  };
5551
- te.current && (Q.platform = te.current), Jc(U.current, j.current, Q).then((p) => {
5551
+ te.current && (Q.platform = te.current), Jc(z.current, j.current, Q).then((p) => {
5552
5552
  const f = {
5553
5553
  ...p,
5554
5554
  // The floating element's position may be recomputed while it's closed
@@ -5572,14 +5572,14 @@ function eu(n) {
5572
5572
  Jn(() => (le.current = !0, () => {
5573
5573
  le.current = !1;
5574
5574
  }), []), Jn(() => {
5575
- if (R && (U.current = R), C && (j.current = C), R && C) {
5575
+ if (R && (z.current = R), C && (j.current = C), R && C) {
5576
5576
  if (H.current)
5577
- return H.current(R, C, z);
5578
- z();
5577
+ return H.current(R, C, U);
5578
+ U();
5579
5579
  }
5580
- }, [R, C, z, H, O]);
5580
+ }, [R, C, U, H, O]);
5581
5581
  const ie = ge.useMemo(() => ({
5582
- reference: U,
5582
+ reference: z,
5583
5583
  floating: j,
5584
5584
  setReference: P,
5585
5585
  setFloating: M
@@ -5609,11 +5609,11 @@ function eu(n) {
5609
5609
  }, [t, s, ne.floating, u.x, u.y]);
5610
5610
  return ge.useMemo(() => ({
5611
5611
  ...u,
5612
- update: z,
5612
+ update: U,
5613
5613
  refs: ie,
5614
5614
  elements: ne,
5615
5615
  floatingStyles: E
5616
- }), [u, z, ie, ne, E]);
5616
+ }), [u, U, ie, ne, E]);
5617
5617
  }
5618
5618
  const tu = (n) => {
5619
5619
  function a(t) {
@@ -5739,10 +5739,10 @@ const pu = /* @__PURE__ */ ge.forwardRef(function(a, t) {
5739
5739
  mt(r).direction === "rtl" && M(!0);
5740
5740
  }, [r]), !r)
5741
5741
  return null;
5742
- const [R, C] = e.split("-"), U = R === "top" || R === "bottom";
5742
+ const [R, C] = e.split("-"), z = R === "top" || R === "bottom";
5743
5743
  let j = m;
5744
- (U && i != null && i.x || !U && i != null && i.y) && (j = null);
5745
- const q = u * 2, O = q / 2, H = s / 2 * (d / -8 + 1), te = l / 2 * d / 4, ae = !!b, z = j && C === "end" ? "bottom" : "top";
5744
+ (z && i != null && i.x || !z && i != null && i.y) && (j = null);
5745
+ const q = u * 2, O = q / 2, H = s / 2 * (d / -8 + 1), te = l / 2 * d / 4, ae = !!b, U = j && C === "end" ? "bottom" : "top";
5746
5746
  let le = j && C === "end" ? "right" : "left";
5747
5747
  j && P && (le = C === "end" ? "left" : "right");
5748
5748
  const ie = (o == null ? void 0 : o.x) != null ? j || o.x : "", ne = (o == null ? void 0 : o.y) != null ? j || o.y : "", E = b || "M0,0" + (" H" + s) + (" L" + (s - H) + "," + (l - te)) + (" Q" + s / 2 + "," + l + " " + H + "," + (l - te)) + " Z", Q = {
@@ -5761,8 +5761,8 @@ const pu = /* @__PURE__ */ ge.forwardRef(function(a, t) {
5761
5761
  position: "absolute",
5762
5762
  pointerEvents: "none",
5763
5763
  [le]: ie,
5764
- [z]: ne,
5765
- [R]: U || ae ? "100%" : "calc(100% - " + q / 2 + "px)",
5764
+ [U]: ne,
5765
+ [R]: z || ae ? "100%" : "calc(100% - " + q / 2 + "px)",
5766
5766
  transform: [Q, x].filter((p) => !!p).join(" "),
5767
5767
  ...k
5768
5768
  }
@@ -5940,7 +5940,7 @@ var xu = function(n) {
5940
5940
  }, Du = function(n, a) {
5941
5941
  var t = Fe(null), e = Fe(n);
5942
5942
  e.current = n;
5943
- var r = zr(function(o) {
5943
+ var r = Ur(function(o) {
5944
5944
  var i;
5945
5945
  t.current && !t.current.contains(o.target) && (a && o.target instanceof HTMLElement && o.target.classList.contains(a) || (i = e.current) === null || i === void 0 || i.call(e, o));
5946
5946
  }, [a]);
@@ -6209,7 +6209,7 @@ function tr(n, a) {
6209
6209
  }) || s && !s(Te(l)) || !1;
6210
6210
  }
6211
6211
  function Qn(n, a, t, e) {
6212
- var r = ye(n), o = Ut(n), i = ye(a), s = Ut(a), l = ye(e);
6212
+ var r = ye(n), o = zt(n), i = ye(a), s = zt(a), l = ye(e);
6213
6213
  return r === i && r === l ? o <= t && t <= s : r < i ? l === r && o <= t || l === i && s >= t || l < i && l > r : !1;
6214
6214
  }
6215
6215
  function In(n, a) {
@@ -6708,7 +6708,7 @@ var qu = (
6708
6708
  return L.createElement("div", { className: Ke(t) }, this.renderDays());
6709
6709
  }, a;
6710
6710
  }(Xe)
6711
- ), xn, Uu = 6, ln = {
6711
+ ), xn, zu = 6, ln = {
6712
6712
  TWO_COLUMNS: "two_columns",
6713
6713
  THREE_COLUMNS: "three_columns",
6714
6714
  FOUR_COLUMNS: "four_columns"
@@ -6737,11 +6737,11 @@ var qu = (
6737
6737
  [8, 9, 10, 11]
6738
6738
  ],
6739
6739
  verticalNavigationOffset: 4
6740
- }, xn), Un = 1;
6740
+ }, xn), zn = 1;
6741
6741
  function vo(n, a) {
6742
6742
  return n ? ln.FOUR_COLUMNS : a ? ln.TWO_COLUMNS : ln.THREE_COLUMNS;
6743
6743
  }
6744
- var zu = (
6744
+ var Uu = (
6745
6745
  /** @class */
6746
6746
  function(n) {
6747
6747
  Ze(a, n);
@@ -6811,7 +6811,7 @@ var zu = (
6811
6811
  }, t.isCurrentMonth = function(e, r) {
6812
6812
  return ye(e) === ye(Te()) && r === Je(Te());
6813
6813
  }, t.isCurrentQuarter = function(e, r) {
6814
- return ye(e) === ye(Te()) && r === Ut(Te());
6814
+ return ye(e) === ye(Te()) && r === zt(Te());
6815
6815
  }, t.isSelectedMonth = function(e, r, o) {
6816
6816
  return Je(o) === r && ye(e) === ye(o);
6817
6817
  }, t.isSelectMonthInList = function(e, r, o) {
@@ -6819,7 +6819,7 @@ var zu = (
6819
6819
  return t.isSelectedMonth(e, r, i);
6820
6820
  });
6821
6821
  }, t.isSelectedQuarter = function(e, r, o) {
6822
- return Ut(e) === r && ye(e) === ye(o);
6822
+ return zt(e) === r && ye(e) === ye(o);
6823
6823
  }, t.renderWeeks = function() {
6824
6824
  for (var e = [], r = t.props.fixedHeight, o = 0, i = !1, s = Yt(At(t.props.day), t.props.locale, t.props.calendarStartDay), l = function(x) {
6825
6825
  return t.props.showWeekPicker ? Yt(x, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
@@ -6827,7 +6827,7 @@ var zu = (
6827
6827
  return t.props.showWeekPicker ? Yt(x, t.props.locale, t.props.calendarStartDay) : t.props.selected;
6828
6828
  }, u = t.props.selected ? d(t.props.selected) : void 0, m = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(L.createElement(Qu, ke({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: o, day: s, month: Je(t.props.day), onDayClick: t.handleDayClick, onDayMouseEnter: t.handleDayMouseEnter, selected: u, preSelection: m, showWeekNumber: t.props.showWeekNumbers }))), !i; ) {
6829
6829
  o++, s = nr(s, 1);
6830
- var g = r && o >= Uu, b = !r && !t.isWeekInMonth(s);
6830
+ var g = r && o >= zu, b = !r && !t.isWeekInMonth(s);
6831
6831
  if (g || b)
6832
6832
  if (t.props.peekNextMonth)
6833
6833
  i = !0;
@@ -6848,25 +6848,25 @@ var zu = (
6848
6848
  var i, s = t.props, l = s.selected, d = s.preSelection, u = s.setPreSelection, m = s.minDate, g = s.maxDate, b = s.showFourColumnMonthYearPicker, x = s.showTwoColumnMonthYearPicker;
6849
6849
  if (d) {
6850
6850
  var k = vo(b, x), _ = t.getVerticalOffset(k), S = (i = Ar[k]) === null || i === void 0 ? void 0 : i.grid, P = function(j, q, O) {
6851
- var H, te, ae = q, z = O;
6851
+ var H, te, ae = q, U = O;
6852
6852
  switch (j) {
6853
6853
  case oe.ArrowRight:
6854
- ae = vt(q, Un), z = O === 11 ? 0 : O + Un;
6854
+ ae = vt(q, zn), U = O === 11 ? 0 : O + zn;
6855
6855
  break;
6856
6856
  case oe.ArrowLeft:
6857
- ae = un(q, Un), z = O === 0 ? 11 : O - Un;
6857
+ ae = un(q, zn), U = O === 0 ? 11 : O - zn;
6858
6858
  break;
6859
6859
  case oe.ArrowUp:
6860
- ae = un(q, _), z = !((H = S == null ? void 0 : S[0]) === null || H === void 0) && H.includes(O) ? O + 12 - _ : O - _;
6860
+ ae = un(q, _), U = !((H = S == null ? void 0 : S[0]) === null || H === void 0) && H.includes(O) ? O + 12 - _ : O - _;
6861
6861
  break;
6862
6862
  case oe.ArrowDown:
6863
- ae = vt(q, _), z = !((te = S == null ? void 0 : S[S.length - 1]) === null || te === void 0) && te.includes(O) ? O - 12 + _ : O + _;
6863
+ ae = vt(q, _), U = !((te = S == null ? void 0 : S[S.length - 1]) === null || te === void 0) && te.includes(O) ? O - 12 + _ : O + _;
6864
6864
  break;
6865
6865
  }
6866
- return { newCalculatedDate: ae, newCalculatedMonth: z };
6866
+ return { newCalculatedDate: ae, newCalculatedMonth: U };
6867
6867
  }, M = function(j, q, O) {
6868
- for (var H = 40, te = j, ae = !1, z = 0, le = P(te, q, O), ie = le.newCalculatedDate, ne = le.newCalculatedMonth; !ae; ) {
6869
- if (z >= H) {
6868
+ for (var H = 40, te = j, ae = !1, U = 0, le = P(te, q, O), ie = le.newCalculatedDate, ne = le.newCalculatedMonth; !ae; ) {
6869
+ if (U >= H) {
6870
6870
  ie = q, ne = O;
6871
6871
  break;
6872
6872
  }
@@ -6885,7 +6885,7 @@ var zu = (
6885
6885
  ie = E.newCalculatedDate, ne = E.newCalculatedMonth;
6886
6886
  } else
6887
6887
  ae = !0;
6888
- z++;
6888
+ U++;
6889
6889
  }
6890
6890
  return { newCalculatedDate: ie, newCalculatedMonth: ne };
6891
6891
  };
@@ -6893,13 +6893,13 @@ var zu = (
6893
6893
  t.isMonthDisabled(o) || (t.onMonthClick(e, o), u == null || u(l));
6894
6894
  return;
6895
6895
  }
6896
- var R = M(r, d, o), C = R.newCalculatedDate, U = R.newCalculatedMonth;
6896
+ var R = M(r, d, o), C = R.newCalculatedDate, z = R.newCalculatedMonth;
6897
6897
  switch (r) {
6898
6898
  case oe.ArrowRight:
6899
6899
  case oe.ArrowLeft:
6900
6900
  case oe.ArrowUp:
6901
6901
  case oe.ArrowDown:
6902
- t.handleMonthNavigation(U, C);
6902
+ t.handleMonthNavigation(z, C);
6903
6903
  break;
6904
6904
  }
6905
6905
  }
@@ -6967,7 +6967,7 @@ var zu = (
6967
6967
  }, t.getQuarterTabIndex = function(e) {
6968
6968
  if (t.props.preSelection == null)
6969
6969
  return "-1";
6970
- var r = Ut(t.props.preSelection), o = Vn(t.props.day, t.props), i = e === r && !(o || t.props.disabledKeyboardNavigation) ? "0" : "-1";
6970
+ var r = zt(t.props.preSelection), o = Vn(t.props.day, t.props), i = e === r && !(o || t.props.disabledKeyboardNavigation) ? "0" : "-1";
6971
6971
  return i;
6972
6972
  }, t.getAriaLabel = function(e) {
6973
6973
  var r = t.props, o = r.chooseDayAriaLabelPrefix, i = o === void 0 ? "Choose" : o, s = r.disabledDayAriaLabelPrefix, l = s === void 0 ? "Not available" : s, d = r.day, u = r.locale, m = dt(d, e), g = t.isDisabled(m) || t.isExcluded(m) ? l : i;
@@ -7866,7 +7866,7 @@ var ad = (
7866
7866
  e.monthContainer = S ?? void 0;
7867
7867
  }, className: "react-datepicker__month-container" },
7868
7868
  e.renderHeader({ monthDate: b, i: m }),
7869
- L.createElement(zu, ke({}, a.defaultProps, e.props, { ariaLabelPrefix: e.props.monthAriaLabelPrefix, day: b, onDayClick: e.handleDayClick, handleOnKeyDown: e.props.handleOnDayKeyDown, handleOnMonthKeyDown: e.props.handleOnKeyDown, onDayMouseEnter: e.handleDayMouseEnter, onMouseLeave: e.handleMonthMouseLeave, orderInDisplay: m, selectingDate: e.state.selectingDate, monthShowsDuplicateDaysEnd: k, monthShowsDuplicateDaysStart: _ }))
7869
+ L.createElement(Uu, ke({}, a.defaultProps, e.props, { ariaLabelPrefix: e.props.monthAriaLabelPrefix, day: b, onDayClick: e.handleDayClick, handleOnKeyDown: e.props.handleOnDayKeyDown, handleOnMonthKeyDown: e.props.handleOnKeyDown, onDayMouseEnter: e.handleDayMouseEnter, onMouseLeave: e.handleMonthMouseLeave, orderInDisplay: m, selectingDate: e.state.selectingDate, monthShowsDuplicateDaysEnd: k, monthShowsDuplicateDaysStart: _ }))
7870
7870
  ));
7871
7871
  }
7872
7872
  return i;
@@ -8167,10 +8167,10 @@ var Wr = "Date input not valid.", gd = (
8167
8167
  if (x) {
8168
8168
  var P = S.split("-", 2).map(function(H) {
8169
8169
  return H.trim();
8170
- }), M = P[0], R = P[1], C = Lr(M ?? "", m, e.props.locale, b), U = Lr(R ?? "", m, e.props.locale, b), j = (k == null ? void 0 : k.getTime()) !== (C == null ? void 0 : C.getTime()), q = (_ == null ? void 0 : _.getTime()) !== (U == null ? void 0 : U.getTime());
8171
- if (!j && !q || C && xt(C, e.props) || U && xt(U, e.props))
8170
+ }), M = P[0], R = P[1], C = Lr(M ?? "", m, e.props.locale, b), z = Lr(R ?? "", m, e.props.locale, b), j = (k == null ? void 0 : k.getTime()) !== (C == null ? void 0 : C.getTime()), q = (_ == null ? void 0 : _.getTime()) !== (z == null ? void 0 : z.getTime());
8171
+ if (!j && !q || C && xt(C, e.props) || z && xt(z, e.props))
8172
8172
  return;
8173
- (o = (r = e.props).onChange) === null || o === void 0 || o.call(r, [C, U], l);
8173
+ (o = (r = e.props).onChange) === null || o === void 0 || o.call(r, [C, z], l);
8174
8174
  } else {
8175
8175
  var O = Lr(S, m, e.props.locale, b, e.props.minDate);
8176
8176
  e.props.showTimeSelectOnly && e.props.selected && O && !De(O, e.props.selected) && (O = gc(e.props.selected, {
@@ -8211,8 +8211,8 @@ var Wr = "Date input not valid.", gd = (
8211
8211
  })), e.props.inline || e.setState({
8212
8212
  preSelection: u
8213
8213
  }), e.props.focusSelectedMonth || e.setState({ monthSelectedIn: s })), b) {
8214
- var R = !x && !k, C = x && !k, U = x && k;
8215
- R ? g == null || g([u, null], o) : C && (u === null ? g == null || g([null, null], o) : go(u, x) ? M ? g == null || g([u, x], o) : g == null || g([u, null], o) : g == null || g([x, u], o)), U && (g == null || g([u, null], o));
8214
+ var R = !x && !k, C = x && !k, z = x && k;
8215
+ R ? g == null || g([u, null], o) : C && (u === null ? g == null || g([null, null], o) : go(u, x) ? M ? g == null || g([u, x], o) : g == null || g([u, null], o) : g == null || g([x, u], o)), z && (g == null || g([u, null], o));
8216
8216
  } else if (_) {
8217
8217
  if (u !== null)
8218
8218
  if (!(S != null && S.length))
@@ -8295,7 +8295,7 @@ var Wr = "Date input not valid.", gd = (
8295
8295
  }, e.onDayKeyDown = function(r) {
8296
8296
  var o, i, s, l, d, u, m = e.props, g = m.minDate, b = m.maxDate, x = m.disabledKeyboardNavigation, k = m.showWeekPicker, _ = m.shouldCloseOnSelect, S = m.locale, P = m.calendarStartDay, M = m.adjustDateOnChange, R = m.inline;
8297
8297
  if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, r), !x) {
8298
- var C = r.key, U = r.shiftKey, j = Te(e.state.preSelection), q = function(ie, ne) {
8298
+ var C = r.key, z = r.shiftKey, j = Te(e.state.preSelection), q = function(ie, ne) {
8299
8299
  var E = ne;
8300
8300
  switch (ie) {
8301
8301
  case oe.ArrowRight:
@@ -8311,10 +8311,10 @@ var Wr = "Date input not valid.", gd = (
8311
8311
  E = nr(ne, 1);
8312
8312
  break;
8313
8313
  case oe.PageUp:
8314
- E = U ? dn(ne, 1) : un(ne, 1);
8314
+ E = z ? dn(ne, 1) : un(ne, 1);
8315
8315
  break;
8316
8316
  case oe.PageDown:
8317
- E = U ? Nt(ne, 1) : vt(ne, 1);
8317
+ E = z ? Nt(ne, 1) : vt(ne, 1);
8318
8318
  break;
8319
8319
  case oe.Home:
8320
8320
  E = Yt(ne, S, P);
@@ -8359,8 +8359,8 @@ var Wr = "Date input not valid.", gd = (
8359
8359
  return;
8360
8360
  }
8361
8361
  if (r.preventDefault(), e.setState({ lastPreSelectChange: $r }), M && e.setSelected(H), e.setPreSelection(H), R) {
8362
- var te = Je(j), ae = Je(H), z = ye(j), le = ye(H);
8363
- te !== ae || z !== le ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
8362
+ var te = Je(j), ae = Je(H), U = ye(j), le = ye(H);
8363
+ te !== ae || U !== le ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
8364
8364
  }
8365
8365
  }
8366
8366
  }, e.onPopperKeyDown = function(r) {
@@ -8621,10 +8621,10 @@ function yd() {
8621
8621
  function R(p, f) {
8622
8622
  var y = p.maskChar, v = p.mask, c = p.prefix;
8623
8623
  if (!y) {
8624
- for ((f = U(p, "", f, 0)).length < c.length && (f = c); f.length < v.length && k(p, f.length); ) f += v[f.length];
8624
+ for ((f = z(p, "", f, 0)).length < c.length && (f = c); f.length < v.length && k(p, f.length); ) f += v[f.length];
8625
8625
  return f;
8626
8626
  }
8627
- if (f) return U(p, R(p, ""), f, 0);
8627
+ if (f) return z(p, R(p, ""), f, 0);
8628
8628
  for (var T = 0; T < v.length; T++) k(p, T) ? f += v[T] : f += y;
8629
8629
  return f;
8630
8630
  }
@@ -8636,7 +8636,7 @@ function yd() {
8636
8636
  for (var N = c; N < I.length; N++) k(p, N) && (I[N] = "");
8637
8637
  return y = Math.max(J.length, y), I.splice(y, c - y), f = I.join(""), R(p, f);
8638
8638
  }
8639
- function U(p, f, y, v) {
8639
+ function z(p, f, y, v) {
8640
8640
  var c = p.mask, T = p.maskChar, F = p.prefix, J = y.split(""), I = M(p, f);
8641
8641
  return !T && v > f.length && (f += c.slice(f.length, v)), J.every(function(N) {
8642
8642
  for (; A = N, k(p, V = v) && A !== c[V]; ) {
@@ -8668,13 +8668,13 @@ function yd() {
8668
8668
  }
8669
8669
  function te(p, f, y, v, c) {
8670
8670
  var T = p.mask, F = p.prefix, J = p.lastEditablePosition, I = f, N = "", W = 0, Y = 0, V = Math.min(c.start, y.start);
8671
- return y.end > c.start ? Y = (W = j(p, v, N = I.slice(c.start, y.end), V)) ? c.length : 0 : I.length < v.length && (Y = v.length - I.length), I = v, Y && (Y === 1 && !c.length && (V = c.start === y.start ? O(p, y.start) : q(p, y.start)), I = C(p, I, V, Y)), I = U(p, I, N, V), (V += W) >= T.length ? V = T.length : V < F.length && !W ? V = F.length : V >= F.length && V < J && W && (V = O(p, V)), N || (N = null), { value: I = R(p, I), enteredString: N, selection: { start: V, end: V } };
8671
+ return y.end > c.start ? Y = (W = j(p, v, N = I.slice(c.start, y.end), V)) ? c.length : 0 : I.length < v.length && (Y = v.length - I.length), I = v, Y && (Y === 1 && !c.length && (V = c.start === y.start ? O(p, y.start) : q(p, y.start)), I = C(p, I, V, Y)), I = z(p, I, N, V), (V += W) >= T.length ? V = T.length : V < F.length && !W ? V = F.length : V >= F.length && V < J && W && (V = O(p, V)), N || (N = null), { value: I = R(p, I), enteredString: N, selection: { start: V, end: V } };
8672
8672
  }
8673
8673
  function ae() {
8674
8674
  var p = new RegExp("windows", "i"), f = new RegExp("phone", "i"), y = navigator.userAgent;
8675
8675
  return p.test(y) && f.test(y);
8676
8676
  }
8677
- function z(p) {
8677
+ function U(p) {
8678
8678
  return typeof p == "function";
8679
8679
  }
8680
8680
  function le() {
@@ -8743,36 +8743,36 @@ function yd() {
8743
8743
  var B = s(s(c)).beforePasteState, Z = s(s(c)).previousSelection, ce = c.props.beforeMaskedValueChange, $ = c.getInputValue(), G = c.value, re = c.getSelection();
8744
8744
  c.isInputAutofilled($, re, G, Z) && (G = R(c.maskOptions, ""), Z = { start: 0, end: 0, length: 0 }), B && (Z = B.selection, G = B.value, re = { start: Z.start + $.length, end: Z.start + $.length, length: 0 }, $ = G.slice(0, Z.start) + $ + G.slice(Z.end), c.beforePasteState = null);
8745
8745
  var pe = te(c.maskOptions, $, re, G, Z), Ye = pe.enteredString, Ie = pe.selection, $e = pe.value;
8746
- if (z(ce)) {
8746
+ if (U(ce)) {
8747
8747
  var tt = ce({ value: $e, selection: Ie }, { value: G, selection: Z }, Ye, c.getBeforeMaskedValueChangeConfig());
8748
8748
  $e = tt.value, Ie = tt.selection;
8749
8749
  }
8750
- c.setInputValue($e), z(c.props.onChange) && c.props.onChange(ee), c.isWindowsPhoneBrowser ? c.setSelection(Ie.start, Ie.end, { deferred: !0 }) : c.setSelection(Ie.start, Ie.end);
8750
+ c.setInputValue($e), U(c.props.onChange) && c.props.onChange(ee), c.isWindowsPhoneBrowser ? c.setSelection(Ie.start, Ie.end, { deferred: !0 }) : c.setSelection(Ie.start, Ie.end);
8751
8751
  }, c.onFocus = function(ee) {
8752
8752
  var B = c.props.beforeMaskedValueChange, Z = c.maskOptions, ce = Z.mask, $ = Z.prefix;
8753
8753
  if (c.focused = !0, c.mounted = !0, ce) {
8754
8754
  if (c.value) P(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
8755
8755
  else {
8756
8756
  var G = R(c.maskOptions, $), re = R(c.maskOptions, G), pe = P(c.maskOptions, re), Ye = O(c.maskOptions, pe), Ie = { start: Ye, end: Ye };
8757
- if (z(B)) {
8757
+ if (U(B)) {
8758
8758
  var $e = B({ value: re, selection: Ie }, { value: c.value, selection: null }, null, c.getBeforeMaskedValueChangeConfig());
8759
8759
  re = $e.value, Ie = $e.selection;
8760
8760
  }
8761
8761
  var tt = re !== c.getInputValue();
8762
- tt && c.setInputValue(re), tt && z(c.props.onChange) && c.props.onChange(ee), c.setSelection(Ie.start, Ie.end);
8762
+ tt && c.setInputValue(re), tt && U(c.props.onChange) && c.props.onChange(ee), c.setSelection(Ie.start, Ie.end);
8763
8763
  }
8764
8764
  c.runSaveSelectionLoop();
8765
8765
  }
8766
- z(c.props.onFocus) && c.props.onFocus(ee);
8766
+ U(c.props.onFocus) && c.props.onFocus(ee);
8767
8767
  }, c.onBlur = function(ee) {
8768
8768
  var B = c.props.beforeMaskedValueChange, Z = c.maskOptions.mask;
8769
8769
  if (c.stopSaveSelectionLoop(), c.focused = !1, Z && !c.props.alwaysShowMask && S(c.maskOptions, c.value)) {
8770
8770
  var ce = "";
8771
- z(B) && (ce = B({ value: ce, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
8771
+ U(B) && (ce = B({ value: ce, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
8772
8772
  var $ = ce !== c.getInputValue();
8773
- $ && c.setInputValue(ce), $ && z(c.props.onChange) && c.props.onChange(ee);
8773
+ $ && c.setInputValue(ce), $ && U(c.props.onChange) && c.props.onChange(ee);
8774
8774
  }
8775
- z(c.props.onBlur) && c.props.onBlur(ee);
8775
+ U(c.props.onBlur) && c.props.onBlur(ee);
8776
8776
  }, c.onMouseDown = function(ee) {
8777
8777
  if (!c.focused && document.addEventListener) {
8778
8778
  c.mouseDownX = ee.clientX, c.mouseDownY = ee.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
@@ -8784,16 +8784,16 @@ function yd() {
8784
8784
  };
8785
8785
  document.addEventListener("mouseup", B);
8786
8786
  }
8787
- z(c.props.onMouseDown) && c.props.onMouseDown(ee);
8787
+ U(c.props.onMouseDown) && c.props.onMouseDown(ee);
8788
8788
  }, c.onPaste = function(ee) {
8789
- z(c.props.onPaste) && c.props.onPaste(ee), ee.defaultPrevented || (c.beforePasteState = { value: c.getInputValue(), selection: c.getSelection() }, c.setInputValue(""));
8789
+ U(c.props.onPaste) && c.props.onPaste(ee), ee.defaultPrevented || (c.beforePasteState = { value: c.getInputValue(), selection: c.getSelection() }, c.setInputValue(""));
8790
8790
  }, c.handleRef = function(ee) {
8791
- c.props.children == null && z(c.props.inputRef) && c.props.inputRef(ee);
8791
+ c.props.children == null && U(c.props.inputRef) && c.props.inputRef(ee);
8792
8792
  };
8793
8793
  var T = v.mask, F = v.maskChar, J = v.formatChars, I = v.alwaysShowMask, N = v.beforeMaskedValueChange, W = v.defaultValue, Y = v.value;
8794
8794
  c.maskOptions = x(T, F, J), W == null && (W = ""), Y == null && (Y = W);
8795
8795
  var V = H(Y);
8796
- if (c.maskOptions.mask && (I || V) && (V = R(c.maskOptions, V), z(N))) {
8796
+ if (c.maskOptions.mask && (I || V) && (V = R(c.maskOptions, V), U(N))) {
8797
8797
  var A = v.value;
8798
8798
  v.value == null && (A = W), V = N({ value: V, selection: null }, { value: A = H(A), selection: null }, null, c.getBeforeMaskedValueChangeConfig()).value;
8799
8799
  }
@@ -8814,7 +8814,7 @@ function yd() {
8814
8814
  }
8815
8815
  !this.maskOptions.mask || !S(this.maskOptions, A) || Y || V && this.props.value || (A = "");
8816
8816
  var ce = { start: ee, end: ee };
8817
- if (z(T)) {
8817
+ if (U(T)) {
8818
8818
  var $ = T({ value: A, selection: ce }, { value: this.value, selection: this.previousSelection }, null, this.getBeforeMaskedValueChangeConfig());
8819
8819
  A = $.value, ce = $.selection;
8820
8820
  }
@@ -8829,7 +8829,7 @@ function yd() {
8829
8829
  }, y.render = function() {
8830
8830
  var v, c = this.props, T = (c.mask, c.alwaysShowMask, c.maskChar, c.formatChars, c.inputRef, c.beforeMaskedValueChange, c.children), F = i(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]);
8831
8831
  if (T) {
8832
- z(T) || d(!1);
8832
+ U(T) || d(!1);
8833
8833
  var J = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], I = r({}, F);
8834
8834
  J.forEach(function(W) {
8835
8835
  return delete I[W];
@@ -9033,13 +9033,13 @@ function xd() {
9033
9033
  function R(p, f) {
9034
9034
  var y = p.maskChar, v = p.mask, c = p.prefix;
9035
9035
  if (!y) {
9036
- for (f = U(p, "", f, 0), f.length < c.length && (f = c); f.length < v.length && k(p, f.length); )
9036
+ for (f = z(p, "", f, 0), f.length < c.length && (f = c); f.length < v.length && k(p, f.length); )
9037
9037
  f += v[f.length];
9038
9038
  return f;
9039
9039
  }
9040
9040
  if (f) {
9041
9041
  var T = R(p, "");
9042
- return U(p, T, f, 0);
9042
+ return z(p, T, f, 0);
9043
9043
  }
9044
9044
  for (var F = 0; F < v.length; F++)
9045
9045
  k(p, F) ? f += v[F] : f += y;
@@ -9056,7 +9056,7 @@ function xd() {
9056
9056
  return Y < y || Y >= c ? W : k(p, Y) ? F[Y] : T;
9057
9057
  }).join("");
9058
9058
  }
9059
- function U(p, f, y, v) {
9059
+ function z(p, f, y, v) {
9060
9060
  var c = p.mask, T = p.maskChar, F = p.prefix, J = y.split(""), I = M(p, f), N = function(V, A) {
9061
9061
  return !k(p, V) || A === c[V];
9062
9062
  }, W = function(V, A) {
@@ -9109,7 +9109,7 @@ function xd() {
9109
9109
  }
9110
9110
  I = C(p, I, V, Y);
9111
9111
  }
9112
- return I = U(p, I, N, V), V = V + W, V >= T.length ? V = T.length : V < F.length && !W ? V = F.length : V >= F.length && V < J && W && (V = O(p, V)), I = R(p, I), N || (N = null), {
9112
+ return I = z(p, I, N, V), V = V + W, V >= T.length ? V = T.length : V < F.length && !W ? V = F.length : V >= F.length && V < J && W && (V = O(p, V)), I = R(p, I), N || (N = null), {
9113
9113
  value: I,
9114
9114
  enteredString: N,
9115
9115
  selection: {
@@ -9122,7 +9122,7 @@ function xd() {
9122
9122
  var p = new RegExp("windows", "i"), f = new RegExp("phone", "i"), y = navigator.userAgent;
9123
9123
  return p.test(y) && f.test(y);
9124
9124
  }
9125
- function z(p) {
9125
+ function U(p) {
9126
9126
  return typeof p == "function";
9127
9127
  }
9128
9128
  function le() {
@@ -9220,7 +9220,7 @@ function xd() {
9220
9220
  length: 0
9221
9221
  }, pe = Ye.slice(0, G.start) + pe + Ye.slice(G.end), c.beforePasteState = null);
9222
9222
  var $e = te(c.maskOptions, pe, Ie, Ye, G), tt = $e.enteredString, nt = $e.selection, It = $e.value;
9223
- if (z(re)) {
9223
+ if (U(re)) {
9224
9224
  var lt = re({
9225
9225
  value: It,
9226
9226
  selection: nt
@@ -9230,7 +9230,7 @@ function xd() {
9230
9230
  }, tt, c.getBeforeMaskedValueChangeConfig());
9231
9231
  It = lt.value, nt = lt.selection;
9232
9232
  }
9233
- c.setInputValue(It), z(c.props.onChange) && c.props.onChange(B), c.isWindowsPhoneBrowser ? c.setSelection(nt.start, nt.end, {
9233
+ c.setInputValue(It), U(c.props.onChange) && c.props.onChange(B), c.isWindowsPhoneBrowser ? c.setSelection(nt.start, nt.end, {
9234
9234
  deferred: !0
9235
9235
  }) : c.setSelection(nt.start, nt.end);
9236
9236
  }, c.onFocus = function(B) {
@@ -9243,7 +9243,7 @@ function xd() {
9243
9243
  start: Ie,
9244
9244
  end: Ie
9245
9245
  };
9246
- if (z(Z)) {
9246
+ if (U(Z)) {
9247
9247
  var tt = Z({
9248
9248
  value: pe,
9249
9249
  selection: $e
@@ -9254,16 +9254,16 @@ function xd() {
9254
9254
  pe = tt.value, $e = tt.selection;
9255
9255
  }
9256
9256
  var nt = pe !== c.getInputValue();
9257
- nt && c.setInputValue(pe), nt && z(c.props.onChange) && c.props.onChange(B), c.setSelection($e.start, $e.end);
9257
+ nt && c.setInputValue(pe), nt && U(c.props.onChange) && c.props.onChange(B), c.setSelection($e.start, $e.end);
9258
9258
  }
9259
9259
  c.runSaveSelectionLoop();
9260
9260
  }
9261
- z(c.props.onFocus) && c.props.onFocus(B);
9261
+ U(c.props.onFocus) && c.props.onFocus(B);
9262
9262
  }, c.onBlur = function(B) {
9263
9263
  var Z = c.props.beforeMaskedValueChange, ce = c.maskOptions.mask;
9264
9264
  if (c.stopSaveSelectionLoop(), c.focused = !1, ce && !c.props.alwaysShowMask && S(c.maskOptions, c.value)) {
9265
9265
  var $ = "";
9266
- if (z(Z)) {
9266
+ if (U(Z)) {
9267
9267
  var G = Z({
9268
9268
  value: $,
9269
9269
  selection: null
@@ -9274,9 +9274,9 @@ function xd() {
9274
9274
  $ = G.value;
9275
9275
  }
9276
9276
  var re = $ !== c.getInputValue();
9277
- re && c.setInputValue($), re && z(c.props.onChange) && c.props.onChange(B);
9277
+ re && c.setInputValue($), re && U(c.props.onChange) && c.props.onChange(B);
9278
9278
  }
9279
- z(c.props.onBlur) && c.props.onBlur(B);
9279
+ U(c.props.onBlur) && c.props.onBlur(B);
9280
9280
  }, c.onMouseDown = function(B) {
9281
9281
  if (!c.focused && document.addEventListener) {
9282
9282
  c.mouseDownX = B.clientX, c.mouseDownY = B.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
@@ -9288,19 +9288,19 @@ function xd() {
9288
9288
  };
9289
9289
  document.addEventListener("mouseup", Z);
9290
9290
  }
9291
- z(c.props.onMouseDown) && c.props.onMouseDown(B);
9291
+ U(c.props.onMouseDown) && c.props.onMouseDown(B);
9292
9292
  }, c.onPaste = function(B) {
9293
- z(c.props.onPaste) && c.props.onPaste(B), B.defaultPrevented || (c.beforePasteState = {
9293
+ U(c.props.onPaste) && c.props.onPaste(B), B.defaultPrevented || (c.beforePasteState = {
9294
9294
  value: c.getInputValue(),
9295
9295
  selection: c.getSelection()
9296
9296
  }, c.setInputValue(""));
9297
9297
  }, c.handleRef = function(B) {
9298
- c.props.children == null && z(c.props.inputRef) && c.props.inputRef(B);
9298
+ c.props.children == null && U(c.props.inputRef) && c.props.inputRef(B);
9299
9299
  };
9300
9300
  var T = v.mask, F = v.maskChar, J = v.formatChars, I = v.alwaysShowMask, N = v.beforeMaskedValueChange, W = v.defaultValue, Y = v.value;
9301
9301
  c.maskOptions = x(T, F, J), W == null && (W = ""), Y == null && (Y = W);
9302
9302
  var V = H(Y);
9303
- if (c.maskOptions.mask && (I || V) && (V = R(c.maskOptions, V), z(N))) {
9303
+ if (c.maskOptions.mask && (I || V) && (V = R(c.maskOptions, V), U(N))) {
9304
9304
  var A = v.value;
9305
9305
  v.value == null && (A = W), A = H(A);
9306
9306
  var ee = N({
@@ -9335,7 +9335,7 @@ function xd() {
9335
9335
  start: B,
9336
9336
  end: B
9337
9337
  };
9338
- if (z(F)) {
9338
+ if (U(F)) {
9339
9339
  var G = F({
9340
9340
  value: ee,
9341
9341
  selection: $
@@ -9364,7 +9364,7 @@ function xd() {
9364
9364
  !W.maxLength || !x(T, F, J).mask,
9365
9365
  "react-input-mask: maxLength property shouldn't be passed to the masked input. It breaks masking and unnecessary because length is limited by the mask length."
9366
9366
  ), N) {
9367
- z(N) || (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: children must be a function") : e(!1));
9367
+ U(N) || (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: children must be a function") : e(!1));
9368
9368
  var V = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], A = i({}, W);
9369
9369
  V.forEach(function(Z) {
9370
9370
  return delete A[Z];
@@ -9837,9 +9837,9 @@ const Nd = {
9837
9837
  narrow: /^[1234]/i,
9838
9838
  abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
9839
9839
  wide: /^[1234](-?[ыои]?й?)? квартал/i
9840
- }, Ud = {
9841
- any: [/1/i, /2/i, /3/i, /4/i]
9842
9840
  }, zd = {
9841
+ any: [/1/i, /2/i, /3/i, /4/i]
9842
+ }, Ud = {
9843
9843
  narrow: /^[яфмаисонд]/i,
9844
9844
  abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
9845
9845
  wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i
@@ -9910,12 +9910,12 @@ const Nd = {
9910
9910
  quarter: kt({
9911
9911
  matchPatterns: Qd,
9912
9912
  defaultMatchWidth: "wide",
9913
- parsePatterns: Ud,
9913
+ parsePatterns: zd,
9914
9914
  defaultParseWidth: "any",
9915
9915
  valueCallback: (n) => n + 1
9916
9916
  }),
9917
9917
  month: kt({
9918
- matchPatterns: zd,
9918
+ matchPatterns: Ud,
9919
9919
  defaultMatchWidth: "wide",
9920
9920
  parsePatterns: Kd,
9921
9921
  defaultParseWidth: "any"
@@ -10017,6 +10017,7 @@ const Gr = [
10017
10017
  {
10018
10018
  style: {
10019
10019
  display: "flex",
10020
+ margin: "8px 0",
10020
10021
  justifyContent: "space-between",
10021
10022
  alignItems: "center"
10022
10023
  },
@@ -10039,9 +10040,13 @@ const Gr = [
10039
10040
  padding: 0,
10040
10041
  width: 60,
10041
10042
  borderRadius: 0,
10043
+ WebkitAppearance: "none",
10044
+ MozAppearance: "none",
10045
+ border: 0,
10042
10046
  height: 28,
10043
10047
  borderBottom: "1px solid #748AB9"
10044
10048
  },
10049
+ className: "calendar__options",
10045
10050
  value: ye(x),
10046
10051
  onClick: (C) => {
10047
10052
  C.stopPropagation();
@@ -10059,6 +10064,9 @@ const Gr = [
10059
10064
  padding: 0,
10060
10065
  width: 100,
10061
10066
  borderRadius: 0,
10067
+ border: 0,
10068
+ WebkitAppearance: "none",
10069
+ MozAppearance: "none",
10062
10070
  height: 28,
10063
10071
  borderBottom: "1px solid #748AB9"
10064
10072
  },
@@ -10149,7 +10157,7 @@ function sf(n, a) {
10149
10157
  return document.addEventListener("mousedown", t), () => document.removeEventListener("mousedown", t);
10150
10158
  }, [n]);
10151
10159
  }
10152
- const zn = (n) => {
10160
+ const Un = (n) => {
10153
10161
  var d, u;
10154
10162
  const [a, t] = me(!1), [e, r] = me(void 0);
10155
10163
  be(() => r(n.value), []);
@@ -10304,7 +10312,7 @@ const zn = (n) => {
10304
10312
  n.forEach(r);
10305
10313
  const o = Array.from(t), i = o.every((l) => typeof l == "number"), s = o.sort((l, d) => i ? Number(l) - Number(d) : String(l).localeCompare(String(d)));
10306
10314
  return e && s.unshift(a), s;
10307
- }, Ur = (n) => n.map((a) => a || a === 0 ? a : null), Oo = [
10315
+ }, zr = (n) => n.map((a) => a || a === 0 ? a : null), Oo = [
10308
10316
  { title: "По", id: "before" },
10309
10317
  { title: "После", id: "after" },
10310
10318
  { title: "Конкретный день", id: "exact" },
@@ -10346,10 +10354,10 @@ const zn = (n) => {
10346
10354
  setColumnWidths: M,
10347
10355
  tableRight: R,
10348
10356
  isParentDataField: C,
10349
- filterResetParam: U
10357
+ filterResetParam: z
10350
10358
  }) => {
10351
10359
  var Z, ce;
10352
- const j = `${n}th${a}`, q = "auto", [O, H] = me(), [te, ae] = me(), [z, le] = me(), [ie, ne] = me(), [E, Q] = me(0), [p, f] = me(""), [y, v] = me(), [c, T] = me(!1), [F, J] = me(), I = Fe(), N = _r(() => {
10360
+ const j = `${n}th${a}`, q = "auto", [O, H] = me(), [te, ae] = me(), [U, le] = me(), [ie, ne] = me(), [E, Q] = me(0), [p, f] = me(""), [y, v] = me(), [c, T] = me(!1), [F, J] = me(), I = Fe(), N = _r(() => {
10353
10361
  l === j && d(void 0);
10354
10362
  }), W = ($) => {
10355
10363
  let G = 0;
@@ -10408,7 +10416,7 @@ const zn = (n) => {
10408
10416
  return be(() => {
10409
10417
  v(
10410
10418
  Qr(
10411
- Ur(s.filterOptions),
10419
+ zr(s.filterOptions),
10412
10420
  b
10413
10421
  )
10414
10422
  );
@@ -10421,17 +10429,17 @@ const zn = (n) => {
10421
10429
  p.length > 0 && s.field in u && u[s.field].length !== 0 && T(!0), p.length === 0 && T(!1);
10422
10430
  }, [p]), be(() => {
10423
10431
  f(""), H(void 0);
10424
- }, [U]), be(() => {
10432
+ }, [z]), be(() => {
10425
10433
  l && I.current && J(I.current.getBoundingClientRect().left);
10426
10434
  }, [l]), be(() => {
10427
10435
  const $ = (O == null ? void 0 : O.typeFilterSearch.id) ?? "exact";
10428
- z && !O && $ === "exact" && H({ typeFilterSearch: Oo[2] }), l && g((G) => {
10436
+ U && !O && $ === "exact" && H({ typeFilterSearch: Oo[2] }), l && g((G) => {
10429
10437
  const re = G.findIndex((pe) => pe.id === s.field);
10430
10438
  if (re !== -1) {
10431
10439
  const pe = [...G];
10432
10440
  return pe[re] = {
10433
10441
  type: $,
10434
- begin: z || null,
10442
+ begin: U || null,
10435
10443
  end: ie || null,
10436
10444
  id: s.field
10437
10445
  }, pe;
@@ -10440,13 +10448,13 @@ const zn = (n) => {
10440
10448
  ...G,
10441
10449
  {
10442
10450
  type: $,
10443
- begin: z || null,
10451
+ begin: U || null,
10444
10452
  end: ie || null,
10445
10453
  id: s.field
10446
10454
  }
10447
10455
  ];
10448
10456
  });
10449
- }, [z, ie, O]), be(() => {
10457
+ }, [U, ie, O]), be(() => {
10450
10458
  var $, G;
10451
10459
  s.filterType === "string" && (!O && p.length > 0 && H({ typeFilterSearch: To[0] }), p ? O ? lf(
10452
10460
  ($ = O == null ? void 0 : O.typeFilterSearch) == null ? void 0 : $.id,
@@ -10455,7 +10463,7 @@ const zn = (n) => {
10455
10463
  y
10456
10464
  ) : bi(p, ae, y) : ae(
10457
10465
  Qr(
10458
- Ur(s.filterOptions),
10466
+ zr(s.filterOptions),
10459
10467
  b
10460
10468
  )
10461
10469
  )), s.filterType === "number" && (!O && p.length > 0 && H({ typeFilterSearch: Po[0] }), p ? O ? cf(
@@ -10465,7 +10473,7 @@ const zn = (n) => {
10465
10473
  y
10466
10474
  ) : wi(p, ae, y) : ae(
10467
10475
  Qr(
10468
- Ur(s.filterOptions),
10476
+ zr(s.filterOptions),
10469
10477
  b
10470
10478
  )
10471
10479
  )), s.filterType === "boolean" && ((O == null ? void 0 : O.typeFilterSearch.id) === "0" && m({ ...u, [s.field]: [] }), (O == null ? void 0 : O.typeFilterSearch.id) === "1" && m({
@@ -10648,7 +10656,7 @@ const zn = (n) => {
10648
10656
  },
10649
10657
  children: [
10650
10658
  /* @__PURE__ */ h.jsx(
10651
- zn,
10659
+ Un,
10652
10660
  {
10653
10661
  keySelect: "typeFilterSearch",
10654
10662
  value: O == null ? void 0 : O.typeFilterSearch,
@@ -10708,7 +10716,7 @@ const zn = (n) => {
10708
10716
  isClearable: !0,
10709
10717
  placeholder: ((Z = O == null ? void 0 : O.typeFilterSearch) == null ? void 0 : Z.title) === "Между" ? "C" : "Выберите дату",
10710
10718
  isFilter: !0,
10711
- selected: z,
10719
+ selected: U,
10712
10720
  onChange: le
10713
10721
  }
10714
10722
  ),
@@ -10759,7 +10767,7 @@ const zn = (n) => {
10759
10767
  },
10760
10768
  children: [
10761
10769
  /* @__PURE__ */ h.jsx(
10762
- zn,
10770
+ Un,
10763
10771
  {
10764
10772
  keySelect: "typeFilterSearch",
10765
10773
  value: O == null ? void 0 : O.typeFilterSearch,
@@ -10927,7 +10935,7 @@ const zn = (n) => {
10927
10935
  },
10928
10936
  children: [
10929
10937
  /* @__PURE__ */ h.jsx(
10930
- zn,
10938
+ Un,
10931
10939
  {
10932
10940
  keySelect: "typeFilterSearch",
10933
10941
  value: O == null ? void 0 : O.typeFilterSearch,
@@ -11096,7 +11104,7 @@ const zn = (n) => {
11096
11104
  },
11097
11105
  children: [
11098
11106
  /* @__PURE__ */ h.jsx(
11099
- zn,
11107
+ Un,
11100
11108
  {
11101
11109
  keySelect: "typeFilterSearch",
11102
11110
  value: O == null ? void 0 : O.typeFilterSearch,
@@ -11284,8 +11292,8 @@ const vf = ({
11284
11292
  }) => {
11285
11293
  const S = (M) => typeof M == "number" ? `${M}px` : String(M), P = (M) => {
11286
11294
  e(M);
11287
- const R = document.getElementById(`input-expand${t}`), C = document.createRange(), U = window.getSelection();
11288
- C.selectNodeContents(R), C.collapse(!1), U.removeAllRanges(), U.addRange(C);
11295
+ const R = document.getElementById(`input-expand${t}`), C = document.createRange(), z = window.getSelection();
11296
+ C.selectNodeContents(R), C.collapse(!1), z.removeAllRanges(), z.addRange(C);
11289
11297
  };
11290
11298
  return /* @__PURE__ */ h.jsxs("div", { className: `u-react-input-expand-container ${m}`, style: { position: "relative" }, children: [
11291
11299
  /* @__PURE__ */ h.jsxs(
@@ -11387,12 +11395,12 @@ const yf = ({
11387
11395
  j && j.setSelectionRange(S, S);
11388
11396
  }, [M, S, _]);
11389
11397
  const C = (j) => {
11390
- U(), P(j.target.selectionStart), e && e(j);
11398
+ z(), P(j.target.selectionStart), e && e(j);
11391
11399
  };
11392
11400
  be(() => {
11393
- U();
11401
+ z();
11394
11402
  }, []);
11395
- const U = () => {
11403
+ const z = () => {
11396
11404
  const j = document.getElementById(`input_expand${t}`);
11397
11405
  j.style.height = "5px", j.style.height = j.scrollHeight + "px";
11398
11406
  };
@@ -11494,7 +11502,7 @@ const bf = ({
11494
11502
  }) => {
11495
11503
  const R = Fe(null), C = (E) => {
11496
11504
  E.preventDefault(), E.stopPropagation();
11497
- }, U = (E) => {
11505
+ }, z = (E) => {
11498
11506
  E.preventDefault(), E.stopPropagation();
11499
11507
  }, j = (E) => {
11500
11508
  E.preventDefault(), E.stopPropagation();
@@ -11502,7 +11510,7 @@ const bf = ({
11502
11510
  var p;
11503
11511
  E.preventDefault(), E.stopPropagation();
11504
11512
  const Q = (p = E.dataTransfer) == null ? void 0 : p.files;
11505
- (Q == null ? void 0 : Q.length) > 0 && z(E, !0);
11513
+ (Q == null ? void 0 : Q.length) > 0 && U(E, !0);
11506
11514
  }, O = (E) => typeof E == "number" ? `${E}px` : String(E), H = (E) => E == null ? void 0 : E.toLocaleString("ru", { day: "numeric", month: "numeric", year: "numeric" }), te = (E) => E > 1048576 ? (E / 1024 / 1024).toFixed(1) + "Мб" : E > 1024 ? (E / 1024).toFixed(1) + "Кб" : E.toFixed(1) + "б", ae = (E) => {
11507
11515
  switch (E.split(".").pop().toLowerCase()) {
11508
11516
  case "pdf":
@@ -11536,7 +11544,7 @@ const bf = ({
11536
11544
  default:
11537
11545
  return "other";
11538
11546
  }
11539
- }, z = (E, Q) => {
11547
+ }, U = (E, Q) => {
11540
11548
  M ? le(E, Q) : ie(E, Q);
11541
11549
  }, le = (E, Q) => {
11542
11550
  const f = (Q ? Array.from(E.dataTransfer.files) : Array.from(E.target.files)).filter(
@@ -11586,11 +11594,11 @@ const bf = ({
11586
11594
  id: e,
11587
11595
  className: "u-file",
11588
11596
  onDragEnter: C,
11589
- onDragLeave: U,
11597
+ onDragLeave: z,
11590
11598
  onDragOver: j,
11591
11599
  onDrop: q,
11592
11600
  children: [
11593
- /* @__PURE__ */ h.jsx("input", { ref: R, type: "file", id: e, name: r, value: t, defaultValue: a, disabled: i, onChange: (E) => z(E), multiple: M }),
11601
+ /* @__PURE__ */ h.jsx("input", { ref: R, type: "file", id: e, name: r, value: t, defaultValue: a, disabled: i, onChange: (E) => U(E), multiple: M }),
11594
11602
  /* @__PURE__ */ h.jsx("i", { className: "u-file-icon" }),
11595
11603
  !_ && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
11596
11604
  /* @__PURE__ */ h.jsx("p", { className: "u-file-title", children: x }),
@@ -11668,7 +11676,7 @@ const wf = ({
11668
11676
  validationOnWithoutText: M,
11669
11677
  absoluteValidationText: R
11670
11678
  }) => {
11671
- const C = (q) => typeof q == "number" ? `${q}px` : String(q), U = (q) => {
11679
+ const C = (q) => typeof q == "number" ? `${q}px` : String(q), z = (q) => {
11672
11680
  let O = document.getElementById(`num-minus-${q}`);
11673
11681
  const te = O == null ? void 0 : O.nextElementSibling;
11674
11682
  te == null || te.stepDown();
@@ -11712,7 +11720,7 @@ const wf = ({
11712
11720
  className: "u-number-down",
11713
11721
  type: "button",
11714
11722
  onClick: () => {
11715
- U(`${r}`);
11723
+ z(`${r}`);
11716
11724
  },
11717
11725
  id: `num-minus-${r}`
11718
11726
  }
@@ -11773,8 +11781,8 @@ const xf = ({
11773
11781
  validationOnWithoutText: M,
11774
11782
  absoluteValidationText: R
11775
11783
  }) => {
11776
- const [C, U] = me(null), j = Fe(null), q = (H) => {
11777
- U(H.target.selectionStart), i && i(H);
11784
+ const [C, z] = me(null), j = Fe(null), q = (H) => {
11785
+ z(H.target.selectionStart), i && i(H);
11778
11786
  };
11779
11787
  be(() => {
11780
11788
  const H = j.current;
@@ -12035,16 +12043,16 @@ const Cr = (n, a, t) => {
12035
12043
  portalOn: m,
12036
12044
  isSearchable: g
12037
12045
  }) => {
12038
- const [b, x] = me(!1), [k, _] = me(""), [S, P] = me(null), [M, R] = me(null), [C, U] = me(null), j = Fe(), q = Di(k, 300), O = jo(() => t.filter((E) => E.label.toLowerCase().includes((q || "").toLowerCase())), [q, t]), H = _r(() => {
12046
+ const [b, x] = me(!1), [k, _] = me(""), [S, P] = me(null), [M, R] = me(null), [C, z] = me(null), j = Fe(), q = Di(k, 300), O = jo(() => t.filter((E) => E.label.toLowerCase().includes((q || "").toLowerCase())), [q, t]), H = _r(() => {
12039
12047
  x(!1), P(null);
12040
- }), te = Fe(null), ae = Fe(null), z = Fe(null);
12041
- Cr(z, te, () => {
12048
+ }), te = Fe(null), ae = Fe(null), U = Fe(null);
12049
+ Cr(U, te, () => {
12042
12050
  x(!1), R(null);
12043
12051
  });
12044
12052
  const le = (E) => {
12045
12053
  if (E) {
12046
12054
  const { x: Q, y: p, width: f, height: y } = E.getBoundingClientRect();
12047
- P({ x: Q, y: p + 60 + y + window.scrollY }), U(f), ae.current = p + window.scrollY;
12055
+ P({ x: Q, y: p + 60 + y + window.scrollY }), z(f), ae.current = p + window.scrollY;
12048
12056
  } else
12049
12057
  P(null), ae.current = null;
12050
12058
  }, ie = (E) => {
@@ -12057,7 +12065,7 @@ const Cr = (n, a, t) => {
12057
12065
  if (!E) return;
12058
12066
  const Q = new ResizeObserver(() => {
12059
12067
  const { x: p, y: f, width: y, height: v } = E.getBoundingClientRect();
12060
- P({ x: p, y: f + 60 + v + window.scrollY }), U(y);
12068
+ P({ x: p, y: f + 60 + v + window.scrollY }), z(y);
12061
12069
  });
12062
12070
  return Q.observe(E), () => {
12063
12071
  Q.disconnect();
@@ -12182,7 +12190,7 @@ const Cr = (n, a, t) => {
12182
12190
  "div",
12183
12191
  {
12184
12192
  className: "u-multiselectbox-options",
12185
- ref: z,
12193
+ ref: U,
12186
12194
  style: {
12187
12195
  width: C,
12188
12196
  left: S == null ? void 0 : S.x,
@@ -12504,7 +12512,7 @@ const Tf = ({
12504
12512
  disabled: S,
12505
12513
  portalOn: P
12506
12514
  }) => {
12507
- const [M, R] = me(!1), [C, U] = me(""), [j, q] = me(null), [O, H] = me(null), [te, ae] = me(null), z = _r(() => {
12515
+ const [M, R] = me(!1), [C, z] = me(""), [j, q] = me(null), [O, H] = me(null), [te, ae] = me(null), U = _r(() => {
12508
12516
  R(!1), q(null);
12509
12517
  }), le = Fe(null), ie = Fe(null), ne = Fe(null);
12510
12518
  Cr(ne, le, () => {
@@ -12532,7 +12540,7 @@ const Tf = ({
12532
12540
  clearInterval(f);
12533
12541
  };
12534
12542
  }, [O]), be(() => {
12535
- u && Object.keys(u).length == 0 && U("");
12543
+ u && Object.keys(u).length == 0 && z("");
12536
12544
  }, [u]), be(() => {
12537
12545
  if (C.length > 0) {
12538
12546
  const f = le.current;
@@ -12546,7 +12554,7 @@ const Tf = ({
12546
12554
  };
12547
12555
  }
12548
12556
  }, [C]), be(() => {
12549
- u != null && u.label && Object.keys(u).length && !M && U(u.label);
12557
+ u != null && u.label && Object.keys(u).length && !M && z(u.label);
12550
12558
  }, [M, u]), /* @__PURE__ */ h.jsxs("div", { className: `u-react-select-container ${g}`, style: { position: "relative" }, children: [
12551
12559
  /* @__PURE__ */ h.jsxs(
12552
12560
  "div",
@@ -12579,7 +12587,7 @@ const Tf = ({
12579
12587
  "div",
12580
12588
  {
12581
12589
  className: `u-selectbox${S ? " u-selectbox-disabled" : ""} u-react-select`,
12582
- ref: P ? le : z,
12590
+ ref: P ? le : U,
12583
12591
  style: Object.assign(
12584
12592
  {
12585
12593
  width: "100%"
@@ -12592,7 +12600,7 @@ const Tf = ({
12592
12600
  {
12593
12601
  className: M ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
12594
12602
  onClick: (f) => {
12595
- C.length > 0 && U(""), H(!M && P ? f.currentTarget : null), S || R(!M);
12603
+ C.length > 0 && z(""), H(!M && P ? f.currentTarget : null), S || R(!M);
12596
12604
  },
12597
12605
  style: Object.assign(
12598
12606
  b ? {
@@ -12608,7 +12616,7 @@ const Tf = ({
12608
12616
  disabled: S,
12609
12617
  value: C || "",
12610
12618
  onChange: (f) => {
12611
- S || U(f.target.value);
12619
+ S || z(f.target.value);
12612
12620
  },
12613
12621
  placeholder: u != null && u.label && Object.keys(u).length ? u.label : d
12614
12622
  }
@@ -12625,7 +12633,7 @@ const Tf = ({
12625
12633
  {
12626
12634
  className: "u-selectbox-option",
12627
12635
  onClick: (v) => {
12628
- v.stopPropagation(), m(f), R(!1), U(f.label), H(null);
12636
+ v.stopPropagation(), m(f), R(!1), z(f.label), H(null);
12629
12637
  },
12630
12638
  style: Object.assign(
12631
12639
  b ? {
@@ -12651,7 +12659,7 @@ const Tf = ({
12651
12659
  {
12652
12660
  className: "u-selectbox-option",
12653
12661
  onClick: (v) => {
12654
- v.stopPropagation(), m(f), R(!1), U(f.label);
12662
+ v.stopPropagation(), m(f), R(!1), z(f.label);
12655
12663
  },
12656
12664
  style: Object.assign(
12657
12665
  b ? {
@@ -12716,11 +12724,11 @@ const Pf = ({
12716
12724
  portalOn: M,
12717
12725
  noScroll: R
12718
12726
  }) => {
12719
- const [C, U] = me(!1), [j, q] = me(null), [O, H] = me(null), [te, ae] = me(null), z = _r(() => {
12720
- U(!1), q(null);
12727
+ const [C, z] = me(!1), [j, q] = me(null), [O, H] = me(null), [te, ae] = me(null), U = _r(() => {
12728
+ z(!1), q(null);
12721
12729
  }), le = Fe(null), ie = Fe(null), ne = Fe(null);
12722
12730
  Cr(ne, le, () => {
12723
- U(!1), H(null);
12731
+ z(!1), H(null);
12724
12732
  });
12725
12733
  const E = (p) => typeof p == "number" ? `${p}px` : String(p), Q = (p) => {
12726
12734
  if (p) {
@@ -12773,7 +12781,7 @@ const Pf = ({
12773
12781
  "div",
12774
12782
  {
12775
12783
  className: `u-selectbox${P ? " u-selectbox-disabled" : ""} u-react-select`,
12776
- ref: M ? le : z,
12784
+ ref: M ? le : U,
12777
12785
  style: Object.assign(
12778
12786
  {
12779
12787
  width: "100%"
@@ -12786,7 +12794,7 @@ const Pf = ({
12786
12794
  {
12787
12795
  className: C ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
12788
12796
  onClick: (p) => {
12789
- H(!C && M ? p.currentTarget : null), P || U(!C);
12797
+ H(!C && M ? p.currentTarget : null), P || z(!C);
12790
12798
  },
12791
12799
  style: Object.assign(
12792
12800
  x ? {
@@ -12808,7 +12816,7 @@ const Pf = ({
12808
12816
  right: "28px"
12809
12817
  } : null,
12810
12818
  onClick: (p) => {
12811
- p.stopPropagation(), g({}), U(!1);
12819
+ p.stopPropagation(), g({}), z(!1);
12812
12820
  }
12813
12821
  }
12814
12822
  ) : /* @__PURE__ */ h.jsx(h.Fragment, {}),
@@ -12849,7 +12857,7 @@ const Pf = ({
12849
12857
  {
12850
12858
  className: "u-selectbox-option",
12851
12859
  onClick: (y) => {
12852
- y.stopPropagation(), g(p), U(!1), H(null);
12860
+ y.stopPropagation(), g(p), z(!1), H(null);
12853
12861
  },
12854
12862
  style: Object.assign(
12855
12863
  {
@@ -12885,7 +12893,7 @@ const Pf = ({
12885
12893
  {
12886
12894
  className: "u-selectbox-option",
12887
12895
  onClick: (y) => {
12888
- y.stopPropagation(), g(p), U(!1);
12896
+ y.stopPropagation(), g(p), z(!1);
12889
12897
  },
12890
12898
  style: Object.assign(
12891
12899
  {
@@ -13039,14 +13047,14 @@ const Rf = (n, a, t, e) => {
13039
13047
  resize: M,
13040
13048
  onDrop: R,
13041
13049
  maxHeight: C,
13042
- minHeight: U,
13050
+ minHeight: z,
13043
13051
  whereFindChecked: j = "",
13044
13052
  filterEmptyLabel: q = "Не указано",
13045
13053
  virtualizationOn: O,
13046
13054
  parentDataField: H,
13047
13055
  rowHeight: te = 60,
13048
13056
  visibleRows: ae = 20,
13049
- setFilteredTableData: z,
13057
+ setFilteredTableData: U,
13050
13058
  withoutHeader: le,
13051
13059
  filterResetParam: ie
13052
13060
  }) => {
@@ -13077,24 +13085,24 @@ const Rf = (n, a, t, e) => {
13077
13085
  );
13078
13086
  if (n) {
13079
13087
  const he = (Pe) => {
13080
- const Ae = j.length > 0 ? Pe[j] : Pe, ct = I.length === 0 || Object.keys(I).every((ze) => {
13081
- const je = Ae[ze];
13088
+ const Ae = j.length > 0 ? Pe[j] : Pe, ct = I.length === 0 || Object.keys(I).every((Ue) => {
13089
+ const je = Ae[Ue];
13082
13090
  return Array.isArray(je) && je.every((gt) => typeof gt == "object" && "title" in gt) ? !je.every(
13083
- (gt) => I[ze].includes(gt.title)
13084
- ) : Array.isArray(je) ? !je.every((gt) => I[ze].includes(gt)) : typeof je == "object" && je !== null && "title" in je ? !I[ze].includes(je.title) : !I[ze].includes(
13091
+ (gt) => I[Ue].includes(gt.title)
13092
+ ) : Array.isArray(je) ? !je.every((gt) => I[Ue].includes(gt)) : typeof je == "object" && je !== null && "title" in je ? !I[Ue].includes(je.title) : !I[Ue].includes(
13085
13093
  je == null || typeof je == "string" && je.length === 0 ? q : je
13086
13094
  );
13087
13095
  }), Qe = K.length === 0 || Object.keys(Ae).some(
13088
- (ze) => K.some(
13089
- (je) => je.id === ze && jf(
13090
- Ae[ze],
13096
+ (Ue) => K.some(
13097
+ (je) => je.id === Ue && jf(
13098
+ Ae[Ue],
13091
13099
  je.type,
13092
13100
  je.begin,
13093
13101
  je.end
13094
13102
  )
13095
13103
  )
13096
13104
  ), rt = K.some(
13097
- (ze) => ze.type === "except" && !Object.keys(Ae).includes(ze.id)
13105
+ (Ue) => Ue.type === "except" && !Object.keys(Ae).includes(Ue.id)
13098
13106
  );
13099
13107
  return ct && (Qe || rt);
13100
13108
  }, Ne = (Pe, Ae) => {
@@ -13106,9 +13114,9 @@ const Rf = (n, a, t, e) => {
13106
13114
  }, Qe = ct(Pe), rt = ct(Ae);
13107
13115
  if (typeof Qe == "boolean" && typeof rt == "boolean")
13108
13116
  return V.asc ? Qe === rt ? 0 : Qe ? 1 : -1 : Qe === rt ? 0 : Qe ? -1 : 1;
13109
- const ze = typeof Qe == "number" ? Qe : parseFloat(Qe), je = typeof rt == "number" ? rt : parseFloat(rt);
13110
- if (!isNaN(ze) && !isNaN(je))
13111
- return V.asc ? ze - je : je - ze;
13117
+ const Ue = typeof Qe == "number" ? Qe : parseFloat(Qe), je = typeof rt == "number" ? rt : parseFloat(rt);
13118
+ if (!isNaN(Ue) && !isNaN(je))
13119
+ return V.asc ? Ue - je : je - Ue;
13112
13120
  if (Qe == null) return V.asc ? -1 : 1;
13113
13121
  if (rt == null) return V.asc ? 1 : -1;
13114
13122
  const gt = Qe.toString().toLowerCase(), gn = rt.toString().toLowerCase();
@@ -13128,9 +13136,9 @@ const Rf = (n, a, t, e) => {
13128
13136
  return !Pe[H] && he(Pe) || ((Ae = Pe[H]) == null ? void 0 : Ae.length) > 0;
13129
13137
  }
13130
13138
  ) : n == null ? void 0 : n.filter((Pe) => he(Pe))];
13131
- (V == null ? void 0 : V.asc) === void 0 ? (T(lt(Ge)), z && z(lt(Ge))) : (Ge.sort((Pe, Ae) => Ne(Pe, Ae)), H && Ge.forEach((Pe) => {
13139
+ (V == null ? void 0 : V.asc) === void 0 ? (T(lt(Ge)), U && U(lt(Ge))) : (Ge.sort((Pe, Ae) => Ne(Pe, Ae)), H && Ge.forEach((Pe) => {
13132
13140
  Pe[H] && Array.isArray(Pe[H]) && Pe[H].sort((Ae, ct) => Ne(Ae, ct));
13133
- }), T(lt(Ge)), z && z(lt(Ge)));
13141
+ }), T(lt(Ge)), U && U(lt(Ge)));
13134
13142
  }
13135
13143
  }, [n, I, W, V]), be(() => {
13136
13144
  N([]);
@@ -13275,7 +13283,7 @@ const Rf = (n, a, t, e) => {
13275
13283
  {
13276
13284
  id: S,
13277
13285
  className: `u-table${["horizontal", "vertical", "none", "both"].includes(t) ? If(t) : ""}${e ? " striped" : ""}${r ? " not-active-lines" : ""}${o ? " thead-fixed" : ""}${i ? " header-borders" : ""}${x ? " " + x : ""}`,
13278
- style: { maxHeight: C, minHeight: U },
13286
+ style: { maxHeight: C, minHeight: z },
13279
13287
  ref: Z,
13280
13288
  children: /* @__PURE__ */ h.jsxs("table", { className: "table", children: [
13281
13289
  !le && /* @__PURE__ */ h.jsx("thead", { style: { zIndex: "2" }, children: /* @__PURE__ */ h.jsx("tr", { children: F == null ? void 0 : F.map(
@@ -13501,20 +13509,20 @@ const $f = ({
13501
13509
  const R = document.getElementById(g);
13502
13510
  if (R) {
13503
13511
  const C = R.clientHeight;
13504
- d(C), s((U) => ({ ...U, y: (U == null ? void 0 : U.y) - C }));
13512
+ d(C), s((z) => ({ ...z, y: (z == null ? void 0 : z.y) - C }));
13505
13513
  }
13506
13514
  }, [g]), be(() => () => {
13507
13515
  _ && clearTimeout(_);
13508
13516
  }, [_]);
13509
- const P = zr((R, C, U) => {
13517
+ const P = Ur((R, C, z) => {
13510
13518
  clearTimeout(_);
13511
13519
  const { x: j, y: q, width: O } = R.currentTarget.getBoundingClientRect();
13512
- s({ x: j + O / 2, y: q + 12 + window.scrollY - l + 37 }), m(C), b(`u-tooltip${U}`);
13520
+ s({ x: j + O / 2, y: q + 12 + window.scrollY - l + 37 }), m(C), b(`u-tooltip${z}`);
13513
13521
  const H = setTimeout(() => {
13514
13522
  k(!0);
13515
13523
  }, 100);
13516
13524
  S(H);
13517
- }, [_]), M = zr(() => {
13525
+ }, [_]), M = Ur(() => {
13518
13526
  clearTimeout(_), s(null), b(""), d(null), k(!1);
13519
13527
  }, [_]);
13520
13528
  return /* @__PURE__ */ h.jsx(h.Fragment, { children: t ? /* @__PURE__ */ h.jsxs("div", { style: o, onMouseEnter: (R) => P(R, r, e), onMouseLeave: M, className: a, id: "u-help", children: [
@@ -13557,12 +13565,12 @@ const Hf = ({
13557
13565
  disabled: R,
13558
13566
  isSearchable: C
13559
13567
  }) => {
13560
- const [U, j] = me(""), [q, O] = me(null), [H, te] = me(null), [ae, z] = me([]), [le, ie] = me(!1), ne = Fe(null), E = Fe(null), Q = Fe(null), p = Fe(), f = Di(U, 300), y = jo(() => S.filter((N) => N.title.toLowerCase().includes((f || "").toLowerCase())), [f, S]);
13568
+ const [z, j] = me(""), [q, O] = me(null), [H, te] = me(null), [ae, U] = me([]), [le, ie] = me(!1), ne = Fe(null), E = Fe(null), Q = Fe(null), p = Fe(), f = Di(z, 300), y = jo(() => S.filter((N) => N.title.toLowerCase().includes((f || "").toLowerCase())), [f, S]);
13561
13569
  Cr(Q, ne, () => {
13562
13570
  ie(!1), te(null);
13563
13571
  });
13564
13572
  const v = (N) => typeof N == "number" ? `${N}px` : String(N), c = (N, W) => {
13565
- N.stopPropagation(), z((Y) => Y != null && Y.includes(W) ? Y.filter((V) => V !== W) : [...Y, W]);
13573
+ N.stopPropagation(), U((Y) => Y != null && Y.includes(W) ? Y.filter((V) => V !== W) : [...Y, W]);
13566
13574
  };
13567
13575
  be(() => {
13568
13576
  I(H);
@@ -13612,7 +13620,7 @@ const Hf = ({
13612
13620
  ),
13613
13621
  A && Y.map((Z) => /* @__PURE__ */ h.jsx(F, { node: Z, counter: V }, Z.id))
13614
13622
  ] });
13615
- }, J = C && U ? y : S == null ? void 0 : S.filter((N) => N.parentId === null), I = (N) => {
13623
+ }, J = C && z ? y : S == null ? void 0 : S.filter((N) => N.parentId === null), I = (N) => {
13616
13624
  if (N) {
13617
13625
  const { x: W, y: Y } = N.getBoundingClientRect();
13618
13626
  O({ x: W, y: Y + 90 + window.scrollY }), E.current = Y + window.scrollY;
@@ -13699,7 +13707,7 @@ const Hf = ({
13699
13707
  ref: p,
13700
13708
  className: le ? "treeview__search" : "treeview__search_disabled",
13701
13709
  placeholder: l || "Введите значение",
13702
- value: U,
13710
+ value: z,
13703
13711
  onChange: (N) => j(N.target.value),
13704
13712
  onClick: (N) => {
13705
13713
  le && N.stopPropagation();