@pismo/marola 2.1.29 → 2.1.31

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.
@@ -1,9 +1,9 @@
1
1
  import { jsx as Y, jsxs as Ae } from "react/jsx-runtime";
2
- import * as U from "react";
3
- import { useState as ce, useRef as pt, useEffect as Ue, useCallback as Ut } from "react";
2
+ import * as z from "react";
3
+ import { useState as ce, useRef as ft, useEffect as Ue, useCallback as Ut } from "react";
4
4
  import { c as ut } from "../../clsx-OuTLNxxd.js";
5
- import { r as zt, d as X } from "../../dayjs.min-ClQKmc--.js";
6
- import { g as We } from "../../_commonjsHelpers-C6fGbg64.js";
5
+ import { r as zt, d as J } from "../../dayjs.min-ClQKmc--.js";
6
+ import { g as Ie } from "../../_commonjsHelpers-C6fGbg64.js";
7
7
  import { DoubleInput as Xt } from "../DoubleInput/DoubleInput.js";
8
8
  import { Icon as ze } from "../Icon/Icon.js";
9
9
  import { Input as Jt } from "../Input/Input.js";
@@ -16,17 +16,17 @@ import { renderNavigatorInput as nr } from "./renderNavigatorInput.js";
16
16
  import { renderPeriodSelection as or } from "./renderPeriodSelection.js";
17
17
  import { s as ue } from "../../DatePicker.module-CFu_FsW6.js";
18
18
  import { P as b, g as ar, a as ir, b as _t, _ as Be, u as dt, c as sr, d as lr, e as cr } from "../../useSlotProps-CYHDC4TN.js";
19
- import { o as vt, c as fr } from "../../ownerDocument-By592Iy6.js";
20
- import { P as pr, H as mt } from "../../Portal-DJapUCn6.js";
19
+ import { o as vt, c as pr } from "../../ownerDocument-By592Iy6.js";
20
+ import { P as fr, H as mt } from "../../Portal-DJapUCn6.js";
21
21
  import { u as ht } from "../../useEnhancedEffect-CJGo-L3B.js";
22
22
  import { C as ur } from "../../ClickAwayListener-Z08peX_P.js";
23
23
  const dr = b.oneOfType([b.func, b.object]);
24
- var $ = "top", I = "bottom", V = "right", B = "left", Ge = "auto", Me = [$, I, V, B], de = "start", Pe = "end", vr = "clippingParents", jt = "viewport", xe = "popper", mr = "reference", yt = /* @__PURE__ */ Me.reduce(function(t, e) {
24
+ var $ = "top", F = "bottom", V = "right", B = "left", Ge = "auto", Me = [$, F, V, B], de = "start", Pe = "end", vr = "clippingParents", jt = "viewport", xe = "popper", mr = "reference", yt = /* @__PURE__ */ Me.reduce(function(t, e) {
25
25
  return t.concat([e + "-" + de, e + "-" + Pe]);
26
26
  }, []), Lt = /* @__PURE__ */ [].concat(Me, [Ge]).reduce(function(t, e) {
27
27
  return t.concat([e, e + "-" + de, e + "-" + Pe]);
28
28
  }, []), hr = "beforeRead", yr = "read", gr = "afterRead", br = "beforeMain", xr = "main", wr = "afterMain", Or = "beforeWrite", Pr = "write", Er = "afterWrite", Mr = [hr, yr, gr, br, xr, wr, Or, Pr, Er];
29
- function K(t) {
29
+ function G(t) {
30
30
  return t ? (t.nodeName || "").toLowerCase() : null;
31
31
  }
32
32
  function W(t) {
@@ -38,7 +38,7 @@ function W(t) {
38
38
  }
39
39
  return t;
40
40
  }
41
- function pe(t) {
41
+ function fe(t) {
42
42
  var e = W(t).Element;
43
43
  return t instanceof e || t instanceof Element;
44
44
  }
@@ -56,7 +56,7 @@ function Dr(t) {
56
56
  var e = t.state;
57
57
  Object.keys(e.elements).forEach(function(r) {
58
58
  var n = e.styles[r] || {}, o = e.attributes[r] || {}, a = e.elements[r];
59
- !q(a) || !K(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(l) {
59
+ !q(a) || !G(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(l) {
60
60
  var i = o[l];
61
61
  i === !1 ? a.removeAttribute(l) : a.setAttribute(l, i === !0 ? "" : i);
62
62
  }));
@@ -77,10 +77,10 @@ function Rr(t) {
77
77
  };
78
78
  return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
79
79
  Object.keys(e.elements).forEach(function(n) {
80
- var o = e.elements[n], a = e.attributes[n] || {}, l = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), i = l.reduce(function(s, f) {
81
- return s[f] = "", s;
80
+ var o = e.elements[n], a = e.attributes[n] || {}, l = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), i = l.reduce(function(s, p) {
81
+ return s[p] = "", s;
82
82
  }, {});
83
- !q(o) || !K(o) || (Object.assign(o.style, i), Object.keys(a).forEach(function(s) {
83
+ !q(o) || !G(o) || (Object.assign(o.style, i), Object.keys(a).forEach(function(s) {
84
84
  o.removeAttribute(s);
85
85
  }));
86
86
  });
@@ -94,10 +94,10 @@ const Tr = {
94
94
  effect: Rr,
95
95
  requires: ["computeStyles"]
96
96
  };
97
- function J(t) {
97
+ function K(t) {
98
98
  return t.split("-")[0];
99
99
  }
100
- var fe = Math.max, He = Math.min, ve = Math.round;
100
+ var pe = Math.max, He = Math.min, ve = Math.round;
101
101
  function Je() {
102
102
  var t = navigator.userAgentData;
103
103
  return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
@@ -111,15 +111,15 @@ function me(t, e, r) {
111
111
  e === void 0 && (e = !1), r === void 0 && (r = !1);
112
112
  var n = t.getBoundingClientRect(), o = 1, a = 1;
113
113
  e && q(t) && (o = t.offsetWidth > 0 && ve(n.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && ve(n.height) / t.offsetHeight || 1);
114
- var l = pe(t) ? W(t) : window, i = l.visualViewport, s = !St() && r, f = (n.left + (s && i ? i.offsetLeft : 0)) / o, c = (n.top + (s && i ? i.offsetTop : 0)) / a, m = n.width / o, h = n.height / a;
114
+ var l = fe(t) ? W(t) : window, i = l.visualViewport, s = !St() && r, p = (n.left + (s && i ? i.offsetLeft : 0)) / o, c = (n.top + (s && i ? i.offsetTop : 0)) / a, m = n.width / o, h = n.height / a;
115
115
  return {
116
116
  width: m,
117
117
  height: h,
118
118
  top: c,
119
- right: f + m,
119
+ right: p + m,
120
120
  bottom: c + h,
121
- left: f,
122
- x: f,
121
+ left: p,
122
+ x: p,
123
123
  y: c
124
124
  };
125
125
  }
@@ -146,20 +146,20 @@ function Yt(t, e) {
146
146
  }
147
147
  return !1;
148
148
  }
149
- function Z(t) {
149
+ function Q(t) {
150
150
  return W(t).getComputedStyle(t);
151
151
  }
152
152
  function Ar(t) {
153
- return ["table", "td", "th"].indexOf(K(t)) >= 0;
153
+ return ["table", "td", "th"].indexOf(G(t)) >= 0;
154
154
  }
155
- function te(t) {
156
- return ((pe(t) ? t.ownerDocument : (
155
+ function re(t) {
156
+ return ((fe(t) ? t.ownerDocument : (
157
157
  // $FlowFixMe[prop-missing]
158
158
  t.document
159
159
  )) || window.document).documentElement;
160
160
  }
161
- function qe(t) {
162
- return K(t) === "html" ? t : (
161
+ function We(t) {
162
+ return G(t) === "html" ? t : (
163
163
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
164
164
  // $FlowFixMe[incompatible-return]
165
165
  // $FlowFixMe[prop-missing]
@@ -167,23 +167,23 @@ function qe(t) {
167
167
  t.parentNode || // DOM Element detected
168
168
  (Ze(t) ? t.host : null) || // ShadowRoot detected
169
169
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
170
- te(t)
170
+ re(t)
171
171
  );
172
172
  }
173
173
  function gt(t) {
174
174
  return !q(t) || // https://github.com/popperjs/popper-core/issues/837
175
- Z(t).position === "fixed" ? null : t.offsetParent;
175
+ Q(t).position === "fixed" ? null : t.offsetParent;
176
176
  }
177
177
  function kr(t) {
178
178
  var e = /firefox/i.test(Je()), r = /Trident/i.test(Je());
179
179
  if (r && q(t)) {
180
- var n = Z(t);
180
+ var n = Q(t);
181
181
  if (n.position === "fixed")
182
182
  return null;
183
183
  }
184
- var o = qe(t);
185
- for (Ze(o) && (o = o.host); q(o) && ["html", "body"].indexOf(K(o)) < 0; ) {
186
- var a = Z(o);
184
+ var o = We(t);
185
+ for (Ze(o) && (o = o.host); q(o) && ["html", "body"].indexOf(G(o)) < 0; ) {
186
+ var a = Q(o);
187
187
  if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none")
188
188
  return o;
189
189
  o = o.parentNode;
@@ -191,15 +191,15 @@ function kr(t) {
191
191
  return null;
192
192
  }
193
193
  function De(t) {
194
- for (var e = W(t), r = gt(t); r && Ar(r) && Z(r).position === "static"; )
194
+ for (var e = W(t), r = gt(t); r && Ar(r) && Q(r).position === "static"; )
195
195
  r = gt(r);
196
- return r && (K(r) === "html" || K(r) === "body" && Z(r).position === "static") ? e : r || kr(t) || e;
196
+ return r && (G(r) === "html" || G(r) === "body" && Q(r).position === "static") ? e : r || kr(t) || e;
197
197
  }
198
198
  function et(t) {
199
199
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
200
200
  }
201
201
  function we(t, e, r) {
202
- return fe(t, He(e, r));
202
+ return pe(t, He(e, r));
203
203
  }
204
204
  function Cr(t, e, r) {
205
205
  var n = we(t, e, r);
@@ -227,9 +227,9 @@ var _r = function(e, r) {
227
227
  })) : e, Bt(typeof e != "number" ? e : Ht(e, Me));
228
228
  };
229
229
  function jr(t) {
230
- var e, r = t.state, n = t.name, o = t.options, a = r.elements.arrow, l = r.modifiersData.popperOffsets, i = J(r.placement), s = et(i), f = [B, V].indexOf(i) >= 0, c = f ? "height" : "width";
230
+ var e, r = t.state, n = t.name, o = t.options, a = r.elements.arrow, l = r.modifiersData.popperOffsets, i = K(r.placement), s = et(i), p = [B, V].indexOf(i) >= 0, c = p ? "height" : "width";
231
231
  if (!(!a || !l)) {
232
- var m = _r(o.padding, r), h = Qe(a), p = s === "y" ? $ : B, O = s === "y" ? I : V, u = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], x = l[s] - r.rects.reference[s], M = De(a), R = M ? s === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0, E = u / 2 - x / 2, d = m[p], y = R - h[c] - m[O], w = R / 2 - h[c] / 2 + E, v = we(d, w, y), A = s;
232
+ var m = _r(o.padding, r), h = Qe(a), f = s === "y" ? $ : B, O = s === "y" ? F : V, u = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], x = l[s] - r.rects.reference[s], D = De(a), R = D ? s === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, M = u / 2 - x / 2, d = m[f], y = R - h[c] - m[O], w = R / 2 - h[c] / 2 + M, v = we(d, w, y), A = s;
233
233
  r.modifiersData[n] = (e = {}, e[A] = v, e.centerOffset = v - w, e);
234
234
  }
235
235
  }
@@ -263,64 +263,64 @@ function $r(t, e) {
263
263
  };
264
264
  }
265
265
  function bt(t) {
266
- var e, r = t.popper, n = t.popperRect, o = t.placement, a = t.variation, l = t.offsets, i = t.position, s = t.gpuAcceleration, f = t.adaptive, c = t.roundOffsets, m = t.isFixed, h = l.x, p = h === void 0 ? 0 : h, O = l.y, u = O === void 0 ? 0 : O, x = typeof c == "function" ? c({
267
- x: p,
266
+ var e, r = t.popper, n = t.popperRect, o = t.placement, a = t.variation, l = t.offsets, i = t.position, s = t.gpuAcceleration, p = t.adaptive, c = t.roundOffsets, m = t.isFixed, h = l.x, f = h === void 0 ? 0 : h, O = l.y, u = O === void 0 ? 0 : O, x = typeof c == "function" ? c({
267
+ x: f,
268
268
  y: u
269
269
  }) : {
270
- x: p,
270
+ x: f,
271
271
  y: u
272
272
  };
273
- p = x.x, u = x.y;
274
- var M = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), E = B, d = $, y = window;
275
- if (f) {
273
+ f = x.x, u = x.y;
274
+ var D = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), M = B, d = $, y = window;
275
+ if (p) {
276
276
  var w = De(r), v = "clientHeight", A = "clientWidth";
277
- if (w === W(r) && (w = te(r), Z(w).position !== "static" && i === "absolute" && (v = "scrollHeight", A = "scrollWidth")), w = w, o === $ || (o === B || o === V) && a === Pe) {
278
- d = I;
277
+ if (w === W(r) && (w = re(r), Q(w).position !== "static" && i === "absolute" && (v = "scrollHeight", A = "scrollWidth")), w = w, o === $ || (o === B || o === V) && a === Pe) {
278
+ d = F;
279
279
  var g = m && w === y && y.visualViewport ? y.visualViewport.height : (
280
280
  // $FlowFixMe[prop-missing]
281
281
  w[v]
282
282
  );
283
283
  u -= g - n.height, u *= s ? 1 : -1;
284
284
  }
285
- if (o === B || (o === $ || o === I) && a === Pe) {
286
- E = V;
285
+ if (o === B || (o === $ || o === F) && a === Pe) {
286
+ M = V;
287
287
  var P = m && w === y && y.visualViewport ? y.visualViewport.width : (
288
288
  // $FlowFixMe[prop-missing]
289
289
  w[A]
290
290
  );
291
- p -= P - n.width, p *= s ? 1 : -1;
291
+ f -= P - n.width, f *= s ? 1 : -1;
292
292
  }
293
293
  }
294
- var D = Object.assign({
294
+ var E = Object.assign({
295
295
  position: i
296
- }, f && Yr), k = c === !0 ? $r({
297
- x: p,
296
+ }, p && Yr), k = c === !0 ? $r({
297
+ x: f,
298
298
  y: u
299
299
  }, W(r)) : {
300
- x: p,
300
+ x: f,
301
301
  y: u
302
302
  };
303
- if (p = k.x, u = k.y, s) {
303
+ if (f = k.x, u = k.y, s) {
304
304
  var j;
305
- return Object.assign({}, D, (j = {}, j[d] = R ? "0" : "", j[E] = M ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + u + "px)" : "translate3d(" + p + "px, " + u + "px, 0)", j));
305
+ return Object.assign({}, E, (j = {}, j[d] = R ? "0" : "", j[M] = D ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + f + "px, " + u + "px)" : "translate3d(" + f + "px, " + u + "px, 0)", j));
306
306
  }
307
- return Object.assign({}, D, (e = {}, e[d] = R ? u + "px" : "", e[E] = M ? p + "px" : "", e.transform = "", e));
307
+ return Object.assign({}, E, (e = {}, e[d] = R ? u + "px" : "", e[M] = D ? f + "px" : "", e.transform = "", e));
308
308
  }
309
309
  function Br(t) {
310
- var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, l = a === void 0 ? !0 : a, i = r.roundOffsets, s = i === void 0 ? !0 : i, f = {
311
- placement: J(e.placement),
310
+ var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, l = a === void 0 ? !0 : a, i = r.roundOffsets, s = i === void 0 ? !0 : i, p = {
311
+ placement: K(e.placement),
312
312
  variation: he(e.placement),
313
313
  popper: e.elements.popper,
314
314
  popperRect: e.rects.popper,
315
315
  gpuAcceleration: o,
316
316
  isFixed: e.options.strategy === "fixed"
317
317
  };
318
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, bt(Object.assign({}, f, {
318
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, bt(Object.assign({}, p, {
319
319
  offsets: e.modifiersData.popperOffsets,
320
320
  position: e.options.strategy,
321
321
  adaptive: l,
322
322
  roundOffsets: s
323
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, bt(Object.assign({}, f, {
323
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, bt(Object.assign({}, p, {
324
324
  offsets: e.modifiersData.arrow,
325
325
  position: "absolute",
326
326
  adaptive: !1,
@@ -340,16 +340,16 @@ var ke = {
340
340
  passive: !0
341
341
  };
342
342
  function Nr(t) {
343
- var e = t.state, r = t.instance, n = t.options, o = n.scroll, a = o === void 0 ? !0 : o, l = n.resize, i = l === void 0 ? !0 : l, s = W(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
344
- return a && f.forEach(function(c) {
343
+ var e = t.state, r = t.instance, n = t.options, o = n.scroll, a = o === void 0 ? !0 : o, l = n.resize, i = l === void 0 ? !0 : l, s = W(e.elements.popper), p = [].concat(e.scrollParents.reference, e.scrollParents.popper);
344
+ return a && p.forEach(function(c) {
345
345
  c.addEventListener("scroll", r.update, ke);
346
346
  }), i && s.addEventListener("resize", r.update, ke), function() {
347
- a && f.forEach(function(c) {
347
+ a && p.forEach(function(c) {
348
348
  c.removeEventListener("scroll", r.update, ke);
349
349
  }), i && s.removeEventListener("resize", r.update, ke);
350
350
  };
351
351
  }
352
- const Wr = {
352
+ const Ir = {
353
353
  name: "eventListeners",
354
354
  enabled: !0,
355
355
  phase: "write",
@@ -358,7 +358,7 @@ const Wr = {
358
358
  effect: Nr,
359
359
  data: {}
360
360
  };
361
- var qr = {
361
+ var Wr = {
362
362
  left: "right",
363
363
  right: "left",
364
364
  bottom: "top",
@@ -366,16 +366,16 @@ var qr = {
366
366
  };
367
367
  function Ce(t) {
368
368
  return t.replace(/left|right|bottom|top/g, function(e) {
369
- return qr[e];
369
+ return Wr[e];
370
370
  });
371
371
  }
372
- var Ir = {
372
+ var qr = {
373
373
  start: "end",
374
374
  end: "start"
375
375
  };
376
376
  function xt(t) {
377
377
  return t.replace(/start|end/g, function(e) {
378
- return Ir[e];
378
+ return qr[e];
379
379
  });
380
380
  }
381
381
  function tt(t) {
@@ -386,14 +386,14 @@ function tt(t) {
386
386
  };
387
387
  }
388
388
  function rt(t) {
389
- return me(te(t)).left + tt(t).scrollLeft;
389
+ return me(re(t)).left + tt(t).scrollLeft;
390
390
  }
391
- function Vr(t, e) {
392
- var r = W(t), n = te(t), o = r.visualViewport, a = n.clientWidth, l = n.clientHeight, i = 0, s = 0;
391
+ function Fr(t, e) {
392
+ var r = W(t), n = re(t), o = r.visualViewport, a = n.clientWidth, l = n.clientHeight, i = 0, s = 0;
393
393
  if (o) {
394
394
  a = o.width, l = o.height;
395
- var f = St();
396
- (f || !f && e === "fixed") && (i = o.offsetLeft, s = o.offsetTop);
395
+ var p = St();
396
+ (p || !p && e === "fixed") && (i = o.offsetLeft, s = o.offsetTop);
397
397
  }
398
398
  return {
399
399
  width: a,
@@ -402,9 +402,9 @@ function Vr(t, e) {
402
402
  y: s
403
403
  };
404
404
  }
405
- function Fr(t) {
406
- var e, r = te(t), n = tt(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = fe(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = fe(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -n.scrollLeft + rt(t), s = -n.scrollTop;
407
- return Z(o || r).direction === "rtl" && (i += fe(r.clientWidth, o ? o.clientWidth : 0) - a), {
405
+ function Vr(t) {
406
+ var e, r = re(t), n = tt(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = pe(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = pe(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -n.scrollLeft + rt(t), s = -n.scrollTop;
407
+ return Q(o || r).direction === "rtl" && (i += pe(r.clientWidth, o ? o.clientWidth : 0) - a), {
408
408
  width: a,
409
409
  height: l,
410
410
  x: i,
@@ -412,11 +412,11 @@ function Fr(t) {
412
412
  };
413
413
  }
414
414
  function nt(t) {
415
- var e = Z(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
415
+ var e = Q(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
416
416
  return /auto|scroll|overlay|hidden/.test(r + o + n);
417
417
  }
418
418
  function Nt(t) {
419
- return ["html", "body", "#document"].indexOf(K(t)) >= 0 ? t.ownerDocument.body : q(t) && nt(t) ? t : Nt(qe(t));
419
+ return ["html", "body", "#document"].indexOf(G(t)) >= 0 ? t.ownerDocument.body : q(t) && nt(t) ? t : Nt(We(t));
420
420
  }
421
421
  function Oe(t, e) {
422
422
  var r;
@@ -424,7 +424,7 @@ function Oe(t, e) {
424
424
  var n = Nt(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = W(n), l = o ? [a].concat(a.visualViewport || [], nt(n) ? n : []) : n, i = e.concat(l);
425
425
  return o ? i : (
426
426
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
427
- i.concat(Oe(qe(l)))
427
+ i.concat(Oe(We(l)))
428
428
  );
429
429
  }
430
430
  function Ke(t) {
@@ -440,23 +440,23 @@ function Ur(t, e) {
440
440
  return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
441
441
  }
442
442
  function wt(t, e, r) {
443
- return e === jt ? Ke(Vr(t, r)) : pe(e) ? Ur(e, r) : Ke(Fr(te(t)));
443
+ return e === jt ? Ke(Fr(t, r)) : fe(e) ? Ur(e, r) : Ke(Vr(re(t)));
444
444
  }
445
445
  function zr(t) {
446
- var e = Oe(qe(t)), r = ["absolute", "fixed"].indexOf(Z(t).position) >= 0, n = r && q(t) ? De(t) : t;
447
- return pe(n) ? e.filter(function(o) {
448
- return pe(o) && Yt(o, n) && K(o) !== "body";
446
+ var e = Oe(We(t)), r = ["absolute", "fixed"].indexOf(Q(t).position) >= 0, n = r && q(t) ? De(t) : t;
447
+ return fe(n) ? e.filter(function(o) {
448
+ return fe(o) && Yt(o, n) && G(o) !== "body";
449
449
  }) : [];
450
450
  }
451
451
  function Xr(t, e, r, n) {
452
- var o = e === "clippingParents" ? zr(t) : [].concat(e), a = [].concat(o, [r]), l = a[0], i = a.reduce(function(s, f) {
453
- var c = wt(t, f, n);
454
- return s.top = fe(c.top, s.top), s.right = He(c.right, s.right), s.bottom = He(c.bottom, s.bottom), s.left = fe(c.left, s.left), s;
452
+ var o = e === "clippingParents" ? zr(t) : [].concat(e), a = [].concat(o, [r]), l = a[0], i = a.reduce(function(s, p) {
453
+ var c = wt(t, p, n);
454
+ return s.top = pe(c.top, s.top), s.right = He(c.right, s.right), s.bottom = He(c.bottom, s.bottom), s.left = pe(c.left, s.left), s;
455
455
  }, wt(t, l, n));
456
456
  return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
457
457
  }
458
- function Wt(t) {
459
- var e = t.reference, r = t.element, n = t.placement, o = n ? J(n) : null, a = n ? he(n) : null, l = e.x + e.width / 2 - r.width / 2, i = e.y + e.height / 2 - r.height / 2, s;
458
+ function It(t) {
459
+ var e = t.reference, r = t.element, n = t.placement, o = n ? K(n) : null, a = n ? he(n) : null, l = e.x + e.width / 2 - r.width / 2, i = e.y + e.height / 2 - r.height / 2, s;
460
460
  switch (o) {
461
461
  case $:
462
462
  s = {
@@ -464,7 +464,7 @@ function Wt(t) {
464
464
  y: e.y - r.height
465
465
  };
466
466
  break;
467
- case I:
467
+ case F:
468
468
  s = {
469
469
  x: l,
470
470
  y: e.y + e.height
@@ -488,15 +488,15 @@ function Wt(t) {
488
488
  y: e.y
489
489
  };
490
490
  }
491
- var f = o ? et(o) : null;
492
- if (f != null) {
493
- var c = f === "y" ? "height" : "width";
491
+ var p = o ? et(o) : null;
492
+ if (p != null) {
493
+ var c = p === "y" ? "height" : "width";
494
494
  switch (a) {
495
495
  case de:
496
- s[f] = s[f] - (e[c] / 2 - r[c] / 2);
496
+ s[p] = s[p] - (e[c] / 2 - r[c] / 2);
497
497
  break;
498
498
  case Pe:
499
- s[f] = s[f] + (e[c] / 2 - r[c] / 2);
499
+ s[p] = s[p] + (e[c] / 2 - r[c] / 2);
500
500
  break;
501
501
  }
502
502
  }
@@ -504,20 +504,20 @@ function Wt(t) {
504
504
  }
505
505
  function Ee(t, e) {
506
506
  e === void 0 && (e = {});
507
- var r = e, n = r.placement, o = n === void 0 ? t.placement : n, a = r.strategy, l = a === void 0 ? t.strategy : a, i = r.boundary, s = i === void 0 ? vr : i, f = r.rootBoundary, c = f === void 0 ? jt : f, m = r.elementContext, h = m === void 0 ? xe : m, p = r.altBoundary, O = p === void 0 ? !1 : p, u = r.padding, x = u === void 0 ? 0 : u, M = Bt(typeof x != "number" ? x : Ht(x, Me)), R = h === xe ? mr : xe, E = t.rects.popper, d = t.elements[O ? R : h], y = Xr(pe(d) ? d : d.contextElement || te(t.elements.popper), s, c, l), w = me(t.elements.reference), v = Wt({
507
+ var r = e, n = r.placement, o = n === void 0 ? t.placement : n, a = r.strategy, l = a === void 0 ? t.strategy : a, i = r.boundary, s = i === void 0 ? vr : i, p = r.rootBoundary, c = p === void 0 ? jt : p, m = r.elementContext, h = m === void 0 ? xe : m, f = r.altBoundary, O = f === void 0 ? !1 : f, u = r.padding, x = u === void 0 ? 0 : u, D = Bt(typeof x != "number" ? x : Ht(x, Me)), R = h === xe ? mr : xe, M = t.rects.popper, d = t.elements[O ? R : h], y = Xr(fe(d) ? d : d.contextElement || re(t.elements.popper), s, c, l), w = me(t.elements.reference), v = It({
508
508
  reference: w,
509
- element: E,
509
+ element: M,
510
510
  placement: o
511
- }), A = Ke(Object.assign({}, E, v)), g = h === xe ? A : w, P = {
512
- top: y.top - g.top + M.top,
513
- bottom: g.bottom - y.bottom + M.bottom,
514
- left: y.left - g.left + M.left,
515
- right: g.right - y.right + M.right
516
- }, D = t.modifiersData.offset;
517
- if (h === xe && D) {
518
- var k = D[o];
511
+ }), A = Ke(Object.assign({}, M, v)), g = h === xe ? A : w, P = {
512
+ top: y.top - g.top + D.top,
513
+ bottom: g.bottom - y.bottom + D.bottom,
514
+ left: y.left - g.left + D.left,
515
+ right: g.right - y.right + D.right
516
+ }, E = t.modifiersData.offset;
517
+ if (h === xe && E) {
518
+ var k = E[o];
519
519
  Object.keys(P).forEach(function(j) {
520
- var H = [V, I].indexOf(j) >= 0 ? 1 : -1, C = [$, I].indexOf(j) >= 0 ? "y" : "x";
520
+ var H = [V, F].indexOf(j) >= 0 ? 1 : -1, C = [$, F].indexOf(j) >= 0 ? "y" : "x";
521
521
  P[j] += k[C] * H;
522
522
  });
523
523
  }
@@ -525,26 +525,26 @@ function Ee(t, e) {
525
525
  }
526
526
  function Jr(t, e) {
527
527
  e === void 0 && (e = {});
528
- var r = e, n = r.placement, o = r.boundary, a = r.rootBoundary, l = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? Lt : s, c = he(n), m = c ? i ? yt : yt.filter(function(O) {
528
+ var r = e, n = r.placement, o = r.boundary, a = r.rootBoundary, l = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, p = s === void 0 ? Lt : s, c = he(n), m = c ? i ? yt : yt.filter(function(O) {
529
529
  return he(O) === c;
530
530
  }) : Me, h = m.filter(function(O) {
531
- return f.indexOf(O) >= 0;
531
+ return p.indexOf(O) >= 0;
532
532
  });
533
533
  h.length === 0 && (h = m);
534
- var p = h.reduce(function(O, u) {
534
+ var f = h.reduce(function(O, u) {
535
535
  return O[u] = Ee(t, {
536
536
  placement: u,
537
537
  boundary: o,
538
538
  rootBoundary: a,
539
539
  padding: l
540
- })[J(u)], O;
540
+ })[K(u)], O;
541
541
  }, {});
542
- return Object.keys(p).sort(function(O, u) {
543
- return p[O] - p[u];
542
+ return Object.keys(f).sort(function(O, u) {
543
+ return f[O] - f[u];
544
544
  });
545
545
  }
546
546
  function Kr(t) {
547
- if (J(t) === Ge)
547
+ if (K(t) === Ge)
548
548
  return [];
549
549
  var e = Ce(t);
550
550
  return [xt(t), e, xt(e)];
@@ -552,47 +552,47 @@ function Kr(t) {
552
552
  function Gr(t) {
553
553
  var e = t.state, r = t.options, n = t.name;
554
554
  if (!e.modifiersData[n]._skip) {
555
- for (var o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !0 : l, s = r.fallbackPlacements, f = r.padding, c = r.boundary, m = r.rootBoundary, h = r.altBoundary, p = r.flipVariations, O = p === void 0 ? !0 : p, u = r.allowedAutoPlacements, x = e.options.placement, M = J(x), R = M === x, E = s || (R || !O ? [Ce(x)] : Kr(x)), d = [x].concat(E).reduce(function(N, F) {
556
- return N.concat(J(F) === Ge ? Jr(e, {
557
- placement: F,
555
+ for (var o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !0 : l, s = r.fallbackPlacements, p = r.padding, c = r.boundary, m = r.rootBoundary, h = r.altBoundary, f = r.flipVariations, O = f === void 0 ? !0 : f, u = r.allowedAutoPlacements, x = e.options.placement, D = K(x), R = D === x, M = s || (R || !O ? [Ce(x)] : Kr(x)), d = [x].concat(M).reduce(function(N, U) {
556
+ return N.concat(K(U) === Ge ? Jr(e, {
557
+ placement: U,
558
558
  boundary: c,
559
559
  rootBoundary: m,
560
- padding: f,
560
+ padding: p,
561
561
  flipVariations: O,
562
562
  allowedAutoPlacements: u
563
- }) : F);
563
+ }) : U);
564
564
  }, []), y = e.rects.reference, w = e.rects.popper, v = /* @__PURE__ */ new Map(), A = !0, g = d[0], P = 0; P < d.length; P++) {
565
- var D = d[P], k = J(D), j = he(D) === de, H = [$, I].indexOf(k) >= 0, C = H ? "width" : "height", _ = Ee(e, {
566
- placement: D,
565
+ var E = d[P], k = K(E), j = he(E) === de, H = [$, F].indexOf(k) >= 0, C = H ? "width" : "height", _ = Ee(e, {
566
+ placement: E,
567
567
  boundary: c,
568
568
  rootBoundary: m,
569
569
  altBoundary: h,
570
- padding: f
571
- }), S = H ? j ? V : B : j ? I : $;
570
+ padding: p
571
+ }), S = H ? j ? V : B : j ? F : $;
572
572
  y[C] > w[C] && (S = Ce(S));
573
- var L = Ce(S), z = [];
574
- if (a && z.push(_[k] <= 0), i && z.push(_[S] <= 0, _[L] <= 0), z.every(function(N) {
573
+ var L = Ce(S), X = [];
574
+ if (a && X.push(_[k] <= 0), i && X.push(_[S] <= 0, _[L] <= 0), X.every(function(N) {
575
575
  return N;
576
576
  })) {
577
- g = D, A = !1;
577
+ g = E, A = !1;
578
578
  break;
579
579
  }
580
- v.set(D, z);
580
+ v.set(E, X);
581
581
  }
582
582
  if (A)
583
- for (var Q = O ? 3 : 1, ye = function(F) {
584
- var ee = d.find(function(oe) {
585
- var G = v.get(oe);
586
- if (G)
587
- return G.slice(0, F).every(function(ae) {
588
- return ae;
583
+ for (var ee = O ? 3 : 1, ye = function(U) {
584
+ var te = d.find(function(ae) {
585
+ var Z = v.get(ae);
586
+ if (Z)
587
+ return Z.slice(0, U).every(function(ie) {
588
+ return ie;
589
589
  });
590
590
  });
591
- if (ee)
592
- return g = ee, "break";
593
- }, re = Q; re > 0; re--) {
594
- var ne = ye(re);
595
- if (ne === "break") break;
591
+ if (te)
592
+ return g = te, "break";
593
+ }, ne = ee; ne > 0; ne--) {
594
+ var oe = ye(ne);
595
+ if (oe === "break") break;
596
596
  }
597
597
  e.placement !== g && (e.modifiersData[n]._skip = !0, e.placement = g, e.reset = !0);
598
598
  }
@@ -619,7 +619,7 @@ function Ot(t, e, r) {
619
619
  };
620
620
  }
621
621
  function Pt(t) {
622
- return [$, V, I, B].some(function(e) {
622
+ return [$, V, F, B].some(function(e) {
623
623
  return t[e] >= 0;
624
624
  });
625
625
  }
@@ -628,10 +628,10 @@ function Qr(t) {
628
628
  elementContext: "reference"
629
629
  }), i = Ee(e, {
630
630
  altBoundary: !0
631
- }), s = Ot(l, n), f = Ot(i, o, a), c = Pt(s), m = Pt(f);
631
+ }), s = Ot(l, n), p = Ot(i, o, a), c = Pt(s), m = Pt(p);
632
632
  e.modifiersData[r] = {
633
633
  referenceClippingOffsets: s,
634
- popperEscapeOffsets: f,
634
+ popperEscapeOffsets: p,
635
635
  isReferenceHidden: c,
636
636
  hasPopperEscaped: m
637
637
  }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
@@ -647,7 +647,7 @@ const en = {
647
647
  fn: Qr
648
648
  };
649
649
  function tn(t, e, r) {
650
- var n = J(t), o = [B, $].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
650
+ var n = K(t), o = [B, $].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
651
651
  placement: t
652
652
  })) : r, l = a[0], i = a[1];
653
653
  return l = l || 0, i = (i || 0) * o, [B, V].indexOf(n) >= 0 ? {
@@ -661,8 +661,8 @@ function tn(t, e, r) {
661
661
  function rn(t) {
662
662
  var e = t.state, r = t.options, n = t.name, o = r.offset, a = o === void 0 ? [0, 0] : o, l = Lt.reduce(function(c, m) {
663
663
  return c[m] = tn(m, e.rects, a), c;
664
- }, {}), i = l[e.placement], s = i.x, f = i.y;
665
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += f), e.modifiersData[n] = l;
664
+ }, {}), i = l[e.placement], s = i.x, p = i.y;
665
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += p), e.modifiersData[n] = l;
666
666
  }
667
667
  const nn = {
668
668
  name: "offset",
@@ -673,7 +673,7 @@ const nn = {
673
673
  };
674
674
  function on(t) {
675
675
  var e = t.state, r = t.name;
676
- e.modifiersData[r] = Wt({
676
+ e.modifiersData[r] = It({
677
677
  reference: e.rects.reference,
678
678
  element: e.rects.popper,
679
679
  placement: e.placement
@@ -690,12 +690,12 @@ function sn(t) {
690
690
  return t === "x" ? "y" : "x";
691
691
  }
692
692
  function ln(t) {
693
- var e = t.state, r = t.options, n = t.name, o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !1 : l, s = r.boundary, f = r.rootBoundary, c = r.altBoundary, m = r.padding, h = r.tether, p = h === void 0 ? !0 : h, O = r.tetherOffset, u = O === void 0 ? 0 : O, x = Ee(e, {
693
+ var e = t.state, r = t.options, n = t.name, o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !1 : l, s = r.boundary, p = r.rootBoundary, c = r.altBoundary, m = r.padding, h = r.tether, f = h === void 0 ? !0 : h, O = r.tetherOffset, u = O === void 0 ? 0 : O, x = Ee(e, {
694
694
  boundary: s,
695
- rootBoundary: f,
695
+ rootBoundary: p,
696
696
  padding: m,
697
697
  altBoundary: c
698
- }), M = J(e.placement), R = he(e.placement), E = !R, d = et(M), y = sn(d), w = e.modifiersData.popperOffsets, v = e.rects.reference, A = e.rects.popper, g = typeof u == "function" ? u(Object.assign({}, e.rects, {
698
+ }), D = K(e.placement), R = he(e.placement), M = !R, d = et(D), y = sn(d), w = e.modifiersData.popperOffsets, v = e.rects.reference, A = e.rects.popper, g = typeof u == "function" ? u(Object.assign({}, e.rects, {
699
699
  placement: e.placement
700
700
  })) : u, P = typeof g == "number" ? {
701
701
  mainAxis: g,
@@ -703,21 +703,21 @@ function ln(t) {
703
703
  } : Object.assign({
704
704
  mainAxis: 0,
705
705
  altAxis: 0
706
- }, g), D = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, k = {
706
+ }, g), E = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, k = {
707
707
  x: 0,
708
708
  y: 0
709
709
  };
710
710
  if (w) {
711
711
  if (a) {
712
- var j, H = d === "y" ? $ : B, C = d === "y" ? I : V, _ = d === "y" ? "height" : "width", S = w[d], L = S + x[H], z = S - x[C], Q = p ? -A[_] / 2 : 0, ye = R === de ? v[_] : A[_], re = R === de ? -A[_] : -v[_], ne = e.elements.arrow, N = p && ne ? Qe(ne) : {
712
+ var j, H = d === "y" ? $ : B, C = d === "y" ? F : V, _ = d === "y" ? "height" : "width", S = w[d], L = S + x[H], X = S - x[C], ee = f ? -A[_] / 2 : 0, ye = R === de ? v[_] : A[_], ne = R === de ? -A[_] : -v[_], oe = e.elements.arrow, N = f && oe ? Qe(oe) : {
713
713
  width: 0,
714
714
  height: 0
715
- }, F = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $t(), ee = F[H], oe = F[C], G = we(0, v[_], N[_]), ae = E ? v[_] / 2 - Q - G - ee - P.mainAxis : ye - G - ee - P.mainAxis, Ve = E ? -v[_] / 2 + Q + G + oe + P.mainAxis : re + G + oe + P.mainAxis, ge = e.elements.arrow && De(e.elements.arrow), Re = ge ? d === "y" ? ge.clientTop || 0 : ge.clientLeft || 0 : 0, T = (j = D == null ? void 0 : D[d]) != null ? j : 0, ie = S + ae - T - Re, se = S + Ve - T, be = we(p ? He(L, ie) : L, S, p ? fe(z, se) : z);
715
+ }, U = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $t(), te = U[H], ae = U[C], Z = we(0, v[_], N[_]), ie = M ? v[_] / 2 - ee - Z - te - P.mainAxis : ye - Z - te - P.mainAxis, Fe = M ? -v[_] / 2 + ee + Z + ae + P.mainAxis : ne + Z + ae + P.mainAxis, ge = e.elements.arrow && De(e.elements.arrow), Re = ge ? d === "y" ? ge.clientTop || 0 : ge.clientLeft || 0 : 0, T = (j = E == null ? void 0 : E[d]) != null ? j : 0, I = S + ie - T - Re, se = S + Fe - T, be = we(f ? He(L, I) : L, S, f ? pe(X, se) : X);
716
716
  w[d] = be, k[d] = be - S;
717
717
  }
718
718
  if (i) {
719
- var ot, Vt = d === "x" ? $ : B, Ft = d === "x" ? I : V, le = w[y], Te = y === "y" ? "height" : "width", at = le + x[Vt], it = le - x[Ft], Fe = [$, B].indexOf(M) !== -1, st = (ot = D == null ? void 0 : D[y]) != null ? ot : 0, lt = Fe ? at : le - v[Te] - A[Te] - st + P.altAxis, ct = Fe ? le + v[Te] + A[Te] - st - P.altAxis : it, ft = p && Fe ? Cr(lt, le, ct) : we(p ? lt : at, le, p ? ct : it);
720
- w[y] = ft, k[y] = ft - le;
719
+ var ot, Ft = d === "x" ? $ : B, Vt = d === "x" ? F : V, le = w[y], Te = y === "y" ? "height" : "width", at = le + x[Ft], it = le - x[Vt], Ve = [$, B].indexOf(D) !== -1, st = (ot = E == null ? void 0 : E[y]) != null ? ot : 0, lt = Ve ? at : le - v[Te] - A[Te] - st + P.altAxis, ct = Ve ? le + v[Te] + A[Te] - st - P.altAxis : it, pt = f && Ve ? Cr(lt, le, ct) : we(f ? lt : at, le, f ? ct : it);
720
+ w[y] = pt, k[y] = pt - le;
721
721
  }
722
722
  e.modifiersData[n] = k;
723
723
  }
@@ -729,14 +729,14 @@ const cn = {
729
729
  fn: ln,
730
730
  requiresIfExists: ["offset"]
731
731
  };
732
- function fn(t) {
732
+ function pn(t) {
733
733
  return {
734
734
  scrollLeft: t.scrollLeft,
735
735
  scrollTop: t.scrollTop
736
736
  };
737
737
  }
738
- function pn(t) {
739
- return t === W(t) || !q(t) ? tt(t) : fn(t);
738
+ function fn(t) {
739
+ return t === W(t) || !q(t) ? tt(t) : pn(t);
740
740
  }
741
741
  function un(t) {
742
742
  var e = t.getBoundingClientRect(), r = ve(e.width) / t.offsetWidth || 1, n = ve(e.height) / t.offsetHeight || 1;
@@ -744,15 +744,15 @@ function un(t) {
744
744
  }
745
745
  function dn(t, e, r) {
746
746
  r === void 0 && (r = !1);
747
- var n = q(e), o = q(e) && un(e), a = te(e), l = me(t, o, r), i = {
747
+ var n = q(e), o = q(e) && un(e), a = re(e), l = me(t, o, r), i = {
748
748
  scrollLeft: 0,
749
749
  scrollTop: 0
750
750
  }, s = {
751
751
  x: 0,
752
752
  y: 0
753
753
  };
754
- return (n || !n && !r) && ((K(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
755
- nt(a)) && (i = pn(e)), q(e) ? (s = me(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = rt(a))), {
754
+ return (n || !n && !r) && ((G(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
755
+ nt(a)) && (i = fn(e)), q(e) ? (s = me(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = rt(a))), {
756
756
  x: l.left + i.scrollLeft - s.x,
757
757
  y: l.top + i.scrollTop - s.y,
758
758
  width: l.width,
@@ -823,8 +823,8 @@ function Mt() {
823
823
  function gn(t) {
824
824
  t === void 0 && (t = {});
825
825
  var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, a = o === void 0 ? Et : o;
826
- return function(i, s, f) {
827
- f === void 0 && (f = a);
826
+ return function(i, s, p) {
827
+ p === void 0 && (p = a);
828
828
  var c = {
829
829
  placement: "bottom",
830
830
  orderedModifiers: [],
@@ -836,18 +836,18 @@ function gn(t) {
836
836
  },
837
837
  attributes: {},
838
838
  styles: {}
839
- }, m = [], h = !1, p = {
839
+ }, m = [], h = !1, f = {
840
840
  state: c,
841
- setOptions: function(M) {
842
- var R = typeof M == "function" ? M(c.options) : M;
841
+ setOptions: function(D) {
842
+ var R = typeof D == "function" ? D(c.options) : D;
843
843
  u(), c.options = Object.assign({}, a, c.options, R), c.scrollParents = {
844
- reference: pe(i) ? Oe(i) : i.contextElement ? Oe(i.contextElement) : [],
844
+ reference: fe(i) ? Oe(i) : i.contextElement ? Oe(i.contextElement) : [],
845
845
  popper: Oe(s)
846
846
  };
847
- var E = mn(yn([].concat(n, c.options.modifiers)));
848
- return c.orderedModifiers = E.filter(function(d) {
847
+ var M = mn(yn([].concat(n, c.options.modifiers)));
848
+ return c.orderedModifiers = M.filter(function(d) {
849
849
  return d.enabled;
850
- }), O(), p.update();
850
+ }), O(), f.update();
851
851
  },
852
852
  // Sync update – it will always be executed, even if not necessary. This
853
853
  // is useful for low frequency updates where sync behavior simplifies the
@@ -856,11 +856,11 @@ function gn(t) {
856
856
  // prefer the async Popper#update method
857
857
  forceUpdate: function() {
858
858
  if (!h) {
859
- var M = c.elements, R = M.reference, E = M.popper;
860
- if (Mt(R, E)) {
859
+ var D = c.elements, R = D.reference, M = D.popper;
860
+ if (Mt(R, M)) {
861
861
  c.rects = {
862
- reference: dn(R, De(E), c.options.strategy === "fixed"),
863
- popper: Qe(E)
862
+ reference: dn(R, De(M), c.options.strategy === "fixed"),
863
+ popper: Qe(M)
864
864
  }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
865
865
  return c.modifiersData[P.name] = Object.assign({}, P.data);
866
866
  });
@@ -874,7 +874,7 @@ function gn(t) {
874
874
  state: c,
875
875
  options: A,
876
876
  name: g,
877
- instance: p
877
+ instance: f
878
878
  }) || c);
879
879
  }
880
880
  }
@@ -884,7 +884,7 @@ function gn(t) {
884
884
  // not necessary (debounced to run at most once-per-tick)
885
885
  update: hn(function() {
886
886
  return new Promise(function(x) {
887
- p.forceUpdate(), x(c);
887
+ f.forceUpdate(), x(c);
888
888
  });
889
889
  }),
890
890
  destroy: function() {
@@ -892,19 +892,19 @@ function gn(t) {
892
892
  }
893
893
  };
894
894
  if (!Mt(i, s))
895
- return p;
896
- p.setOptions(f).then(function(x) {
897
- !h && f.onFirstUpdate && f.onFirstUpdate(x);
895
+ return f;
896
+ f.setOptions(p).then(function(x) {
897
+ !h && p.onFirstUpdate && p.onFirstUpdate(x);
898
898
  });
899
899
  function O() {
900
900
  c.orderedModifiers.forEach(function(x) {
901
- var M = x.name, R = x.options, E = R === void 0 ? {} : R, d = x.effect;
901
+ var D = x.name, R = x.options, M = R === void 0 ? {} : R, d = x.effect;
902
902
  if (typeof d == "function") {
903
903
  var y = d({
904
904
  state: c,
905
- name: M,
906
- instance: p,
907
- options: E
905
+ name: D,
906
+ instance: f,
907
+ options: M
908
908
  }), w = function() {
909
909
  };
910
910
  m.push(y || w);
@@ -916,17 +916,17 @@ function gn(t) {
916
916
  return x();
917
917
  }), m = [];
918
918
  }
919
- return p;
919
+ return f;
920
920
  };
921
921
  }
922
- var bn = [Wr, an, Hr, Tr, nn, Zr, cn, Sr, en], xn = /* @__PURE__ */ gn({
922
+ var bn = [Ir, an, Hr, Tr, nn, Zr, cn, Sr, en], xn = /* @__PURE__ */ gn({
923
923
  defaultModifiers: bn
924
924
  });
925
- const qt = "Popper";
925
+ const Wt = "Popper";
926
926
  function wn(t) {
927
- return ar(qt, t);
927
+ return ar(Wt, t);
928
928
  }
929
- ir(qt, ["root"]);
929
+ ir(Wt, ["root"]);
930
930
  const On = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], Pn = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
931
931
  function En(t, e) {
932
932
  if (e === "ltr")
@@ -947,15 +947,15 @@ function En(t, e) {
947
947
  function Ne(t) {
948
948
  return typeof t == "function" ? t() : t;
949
949
  }
950
- function Ie(t) {
950
+ function qe(t) {
951
951
  return t.nodeType !== void 0;
952
952
  }
953
953
  function Mn(t) {
954
- return !Ie(t);
954
+ return !qe(t);
955
955
  }
956
956
  const Dn = () => lr({
957
957
  root: ["root"]
958
- }, cr(wn)), Rn = {}, Tn = /* @__PURE__ */ U.forwardRef(function(e, r) {
958
+ }, cr(wn)), Rn = {}, Tn = /* @__PURE__ */ z.forwardRef(function(e, r) {
959
959
  var n;
960
960
  const {
961
961
  anchorEl: o,
@@ -963,31 +963,31 @@ const Dn = () => lr({
963
963
  direction: l,
964
964
  disablePortal: i,
965
965
  modifiers: s,
966
- open: f,
966
+ open: p,
967
967
  placement: c,
968
968
  popperOptions: m,
969
969
  popperRef: h,
970
- slotProps: p = {},
970
+ slotProps: f = {},
971
971
  slots: O = {},
972
972
  TransitionProps: u
973
973
  // @ts-ignore internal logic
974
974
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
975
- } = e, x = _t(e, On), M = U.useRef(null), R = dt(M, r), E = U.useRef(null), d = dt(E, h), y = U.useRef(d);
975
+ } = e, x = _t(e, On), D = z.useRef(null), R = dt(D, r), M = z.useRef(null), d = dt(M, h), y = z.useRef(d);
976
976
  ht(() => {
977
977
  y.current = d;
978
- }, [d]), U.useImperativeHandle(h, () => E.current, []);
979
- const w = En(c, l), [v, A] = U.useState(w), [g, P] = U.useState(Ne(o));
980
- U.useEffect(() => {
981
- E.current && E.current.forceUpdate();
982
- }), U.useEffect(() => {
978
+ }, [d]), z.useImperativeHandle(h, () => M.current, []);
979
+ const w = En(c, l), [v, A] = z.useState(w), [g, P] = z.useState(Ne(o));
980
+ z.useEffect(() => {
981
+ M.current && M.current.forceUpdate();
982
+ }), z.useEffect(() => {
983
983
  o && P(Ne(o));
984
984
  }, [o]), ht(() => {
985
- if (!g || !f)
985
+ if (!g || !p)
986
986
  return;
987
987
  const C = (L) => {
988
988
  A(L.placement);
989
989
  };
990
- if (process.env.NODE_ENV !== "production" && g && Ie(g) && g.nodeType === 1) {
990
+ if (process.env.NODE_ENV !== "production" && g && qe(g) && g.nodeType === 1) {
991
991
  const L = g.getBoundingClientRect();
992
992
  process.env.NODE_ENV !== "test" && L.top === 0 && L.left === 0 && L.right === 0 && L.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
993
993
  `));
@@ -1013,7 +1013,7 @@ const Dn = () => lr({
1013
1013
  }
1014
1014
  }];
1015
1015
  s != null && (_ = _.concat(s)), m && m.modifiers != null && (_ = _.concat(m.modifiers));
1016
- const S = xn(g, M.current, Be({
1016
+ const S = xn(g, D.current, Be({
1017
1017
  placement: w
1018
1018
  }, m, {
1019
1019
  modifiers: _
@@ -1021,14 +1021,14 @@ const Dn = () => lr({
1021
1021
  return y.current(S), () => {
1022
1022
  S.destroy(), y.current(null);
1023
1023
  };
1024
- }, [g, i, s, f, m, w]);
1025
- const D = {
1024
+ }, [g, i, s, p, m, w]);
1025
+ const E = {
1026
1026
  placement: v
1027
1027
  };
1028
- u !== null && (D.TransitionProps = u);
1028
+ u !== null && (E.TransitionProps = u);
1029
1029
  const k = Dn(), j = (n = O.root) != null ? n : "div", H = sr({
1030
1030
  elementType: j,
1031
- externalSlotProps: p.root,
1031
+ externalSlotProps: f.root,
1032
1032
  externalForwardedProps: x,
1033
1033
  additionalProps: {
1034
1034
  role: "tooltip",
@@ -1038,9 +1038,9 @@ const Dn = () => lr({
1038
1038
  className: k.root
1039
1039
  });
1040
1040
  return /* @__PURE__ */ Y(j, Be({}, H, {
1041
- children: typeof a == "function" ? a(D) : a
1041
+ children: typeof a == "function" ? a(E) : a
1042
1042
  }));
1043
- }), It = /* @__PURE__ */ U.forwardRef(function(e, r) {
1043
+ }), qt = /* @__PURE__ */ z.forwardRef(function(e, r) {
1044
1044
  const {
1045
1045
  anchorEl: n,
1046
1046
  children: o,
@@ -1048,49 +1048,49 @@ const Dn = () => lr({
1048
1048
  direction: l = "ltr",
1049
1049
  disablePortal: i = !1,
1050
1050
  keepMounted: s = !1,
1051
- modifiers: f,
1051
+ modifiers: p,
1052
1052
  open: c,
1053
1053
  placement: m = "bottom",
1054
1054
  popperOptions: h = Rn,
1055
- popperRef: p,
1055
+ popperRef: f,
1056
1056
  style: O,
1057
1057
  transition: u = !1,
1058
1058
  slotProps: x = {},
1059
- slots: M = {}
1060
- } = e, R = _t(e, Pn), [E, d] = U.useState(!0), y = () => {
1059
+ slots: D = {}
1060
+ } = e, R = _t(e, Pn), [M, d] = z.useState(!0), y = () => {
1061
1061
  d(!1);
1062
1062
  }, w = () => {
1063
1063
  d(!0);
1064
1064
  };
1065
- if (!s && !c && (!u || E))
1065
+ if (!s && !c && (!u || M))
1066
1066
  return null;
1067
1067
  let v;
1068
1068
  if (a)
1069
1069
  v = a;
1070
1070
  else if (n) {
1071
1071
  const P = Ne(n);
1072
- v = P && Ie(P) ? vt(P).body : vt(null).body;
1072
+ v = P && qe(P) ? vt(P).body : vt(null).body;
1073
1073
  }
1074
- const A = !c && s && (!u || E) ? "none" : void 0, g = u ? {
1074
+ const A = !c && s && (!u || M) ? "none" : void 0, g = u ? {
1075
1075
  in: c,
1076
1076
  onEnter: y,
1077
1077
  onExited: w
1078
1078
  } : void 0;
1079
- return /* @__PURE__ */ Y(pr, {
1079
+ return /* @__PURE__ */ Y(fr, {
1080
1080
  disablePortal: i,
1081
1081
  container: v,
1082
1082
  children: /* @__PURE__ */ Y(Tn, Be({
1083
1083
  anchorEl: n,
1084
1084
  direction: l,
1085
1085
  disablePortal: i,
1086
- modifiers: f,
1086
+ modifiers: p,
1087
1087
  ref: r,
1088
- open: u ? !E : c,
1088
+ open: u ? !M : c,
1089
1089
  placement: m,
1090
1090
  popperOptions: h,
1091
- popperRef: p,
1091
+ popperRef: f,
1092
1092
  slotProps: x,
1093
- slots: M
1093
+ slots: D
1094
1094
  }, R, {
1095
1095
  style: Be({
1096
1096
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
@@ -1105,7 +1105,7 @@ const Dn = () => lr({
1105
1105
  }))
1106
1106
  });
1107
1107
  });
1108
- process.env.NODE_ENV !== "production" && (It.propTypes = {
1108
+ process.env.NODE_ENV !== "production" && (qt.propTypes = {
1109
1109
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1110
1110
  // │ These PropTypes are generated from the TypeScript type definitions. │
1111
1111
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -1116,10 +1116,10 @@ process.env.NODE_ENV !== "production" && (It.propTypes = {
1116
1116
  * It's used to set the position of the popper.
1117
1117
  * The return value will passed as the reference object of the Popper instance.
1118
1118
  */
1119
- anchorEl: fr(b.oneOfType([mt, b.object, b.func]), (t) => {
1119
+ anchorEl: pr(b.oneOfType([mt, b.object, b.func]), (t) => {
1120
1120
  if (t.open) {
1121
1121
  const e = Ne(t.anchorEl);
1122
- if (e && Ie(e) && e.nodeType === 1) {
1122
+ if (e && qe(e) && e.nodeType === 1) {
1123
1123
  const r = e.getBoundingClientRect();
1124
1124
  if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
1125
1125
  return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
@@ -1234,15 +1234,15 @@ function kn() {
1234
1234
  })(An, function() {
1235
1235
  return function(r, n, o) {
1236
1236
  n.prototype.isBetween = function(a, l, i, s) {
1237
- var f = o(a), c = o(l), m = (s = s || "()")[0] === "(", h = s[1] === ")";
1238
- return (m ? this.isAfter(f, i) : !this.isBefore(f, i)) && (h ? this.isBefore(c, i) : !this.isAfter(c, i)) || (m ? this.isBefore(f, i) : !this.isAfter(f, i)) && (h ? this.isAfter(c, i) : !this.isBefore(c, i));
1237
+ var p = o(a), c = o(l), m = (s = s || "()")[0] === "(", h = s[1] === ")";
1238
+ return (m ? this.isAfter(p, i) : !this.isBefore(p, i)) && (h ? this.isBefore(c, i) : !this.isAfter(c, i)) || (m ? this.isBefore(p, i) : !this.isAfter(p, i)) && (h ? this.isAfter(c, i) : !this.isBefore(c, i));
1239
1239
  };
1240
1240
  };
1241
1241
  });
1242
1242
  }(_e)), _e.exports;
1243
1243
  }
1244
1244
  var Cn = kn();
1245
- const _n = /* @__PURE__ */ We(Cn);
1245
+ const _n = /* @__PURE__ */ Ie(Cn);
1246
1246
  var je = { exports: {} }, jn = je.exports, Rt;
1247
1247
  function Ln() {
1248
1248
  return Rt || (Rt = 1, function(t, e) {
@@ -1259,7 +1259,7 @@ function Ln() {
1259
1259
  }(je)), je.exports;
1260
1260
  }
1261
1261
  var Sn = Ln();
1262
- const Yn = /* @__PURE__ */ We(Sn);
1262
+ const Yn = /* @__PURE__ */ Ie(Sn);
1263
1263
  var Le = { exports: {} }, $n = Le.exports, Tt;
1264
1264
  function Bn() {
1265
1265
  return Tt || (Tt = 1, function(t, e) {
@@ -1271,14 +1271,14 @@ function Bn() {
1271
1271
  var l = o.prototype, i = l.format;
1272
1272
  a.en.formats = r, l.format = function(s) {
1273
1273
  s === void 0 && (s = "YYYY-MM-DDTHH:mm:ssZ");
1274
- var f = this.$locale().formats, c = function(m, h) {
1275
- return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(p, O, u) {
1274
+ var p = this.$locale().formats, c = function(m, h) {
1275
+ return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(f, O, u) {
1276
1276
  var x = u && u.toUpperCase();
1277
- return O || h[u] || r[u] || h[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, R, E) {
1278
- return R || E.slice(1);
1277
+ return O || h[u] || r[u] || h[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, R, M) {
1278
+ return R || M.slice(1);
1279
1279
  });
1280
1280
  });
1281
- }(s, f === void 0 ? {} : f);
1281
+ }(s, p === void 0 ? {} : p);
1282
1282
  return i.call(this, c);
1283
1283
  };
1284
1284
  };
@@ -1286,13 +1286,13 @@ function Bn() {
1286
1286
  }(Le)), Le.exports;
1287
1287
  }
1288
1288
  var Hn = Bn();
1289
- const Nn = /* @__PURE__ */ We(Hn);
1290
- var Se = { exports: {} }, Wn = Se.exports, At;
1291
- function qn() {
1289
+ const Nn = /* @__PURE__ */ Ie(Hn);
1290
+ var Se = { exports: {} }, In = Se.exports, At;
1291
+ function Wn() {
1292
1292
  return At || (At = 1, function(t, e) {
1293
1293
  (function(r, n) {
1294
1294
  t.exports = n();
1295
- })(Wn, function() {
1295
+ })(In, function() {
1296
1296
  return function(r, n) {
1297
1297
  n.prototype.weekday = function(o) {
1298
1298
  var a = this.$locale().weekStart || 0, l = this.$W, i = (l < a ? l + 7 : l) - a;
@@ -1302,14 +1302,14 @@ function qn() {
1302
1302
  });
1303
1303
  }(Se)), Se.exports;
1304
1304
  }
1305
- var In = qn();
1306
- const Vn = /* @__PURE__ */ We(In);
1307
- var Ye = { exports: {} }, Fn = Ye.exports, kt;
1305
+ var qn = Wn();
1306
+ const Fn = /* @__PURE__ */ Ie(qn);
1307
+ var Ye = { exports: {} }, Vn = Ye.exports, kt;
1308
1308
  function Un() {
1309
1309
  return kt || (kt = 1, function(t, e) {
1310
1310
  (function(r, n) {
1311
1311
  t.exports = n();
1312
- })(Fn, function() {
1312
+ })(Vn, function() {
1313
1313
  return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(r) {
1314
1314
  var n = ["th", "st", "nd", "rd"], o = r % 100;
1315
1315
  return "[" + r + (n[(o - 20) % 10] || n[o] || n[0]) + "]";
@@ -1335,10 +1335,10 @@ function Xn() {
1335
1335
  }($e)), $e.exports;
1336
1336
  }
1337
1337
  Xn();
1338
- X.extend(_n);
1339
- X.extend(Vn);
1340
- X.extend(Nn);
1341
- X.extend(Yn);
1338
+ J.extend(_n);
1339
+ J.extend(Fn);
1340
+ J.extend(Nn);
1341
+ J.extend(Yn);
1342
1342
  const Xe = (t) => {
1343
1343
  switch (t) {
1344
1344
  case "pt":
@@ -1356,18 +1356,18 @@ const Xe = (t) => {
1356
1356
  maxDate: l,
1357
1357
  disableDates: i,
1358
1358
  onChange: s,
1359
- placement: f = "bottom-start",
1359
+ placement: p = "bottom-start",
1360
1360
  navigatorInput: c = !1,
1361
1361
  className: m,
1362
1362
  "data-testid": h = "date-picker"
1363
- } = t, p = e === "single" ? t.value : void 0, O = e === "range" ? t.values : void 0, u = e === "single" ? t.placeholder : void 0, x = e === "range" ? t.placeholders : void 0, M = e === "range" ? t.limit : void 0, R = p ? X(p).locale(n) : O ? X(O[1]).locale(n) : X().locale(n), E = u || Xe(n), d = x || [Xe(n), Xe(n)], [y, w] = ce(p ? X(p) : null), [v, A] = ce(
1364
- O ? [X(O[0]), X(O[1])] : [null, null]
1365
- ), [g, P] = ce(R), [D, k] = ce(!1), [j, H] = ce(!1), [C, _] = ce(r), [S, L] = ce(null), z = pt(null), Q = pt(null);
1363
+ } = t, f = e === "single" ? t.value : void 0, O = e === "range" ? t.values : void 0, u = e === "single" ? t.placeholder : void 0, x = e === "range" ? t.placeholders : void 0, D = e === "range" ? t.limit : void 0, R = f ? J(f).locale(n) : O ? J(O[1]).locale(n) : J().locale(n), M = u || Xe(n), d = x || [Xe(n), Xe(n)], [y, w] = ce(f ? J(f) : null), [v, A] = ce(
1364
+ O ? [J(O[0]), J(O[1])] : [null, null]
1365
+ ), [g, P] = ce(R), [E, k] = ce(!1), [j, H] = ce(!1), [C, _] = ce(r), [S, L] = ce(null), X = ft(null), ee = ft(null);
1366
1366
  Ue(() => {
1367
- D || _(r);
1368
- }, [D, r]), Ue(() => {
1369
- D || L(null);
1370
- }, [D]);
1367
+ E || _(r);
1368
+ }, [E, r]), Ue(() => {
1369
+ E || L(null);
1370
+ }, [E]);
1371
1371
  const ye = (T) => {
1372
1372
  if (e === "range" && j && T.key === "Escape") {
1373
1373
  A([null, null]), H(!1);
@@ -1375,15 +1375,15 @@ const Xe = (t) => {
1375
1375
  }
1376
1376
  Qt(
1377
1377
  T,
1378
- D,
1378
+ E,
1379
1379
  C,
1380
1380
  g,
1381
1381
  P,
1382
1382
  e,
1383
- ne,
1383
+ oe,
1384
1384
  k
1385
1385
  );
1386
- }, re = Ut(
1386
+ }, ne = Ut(
1387
1387
  (T) => {
1388
1388
  if (!j) {
1389
1389
  A([T, null]), H(!0);
@@ -1394,34 +1394,34 @@ const Xe = (t) => {
1394
1394
  return;
1395
1395
  }
1396
1396
  if (T.isSame(v[0], "day")) return;
1397
- const [ie, se] = T.isAfter(v[0]) ? [v[0], T] : [T, v[0]];
1398
- A([ie, se]), H(!1), L(null), s([ie, se]), k(!1);
1397
+ const [I, se] = T.isAfter(v[0]) ? [v[0], T] : [T, v[0]];
1398
+ A([I, se]), H(!1), L(null), s([I, se]), k(!1);
1399
1399
  },
1400
1400
  [j, v, s]
1401
- ), ne = (T) => {
1402
- Kt(T, a, l, i, e, v) || (e === "single" ? (w(T), P(T), s(T), k(!1)) : re(T));
1401
+ ), oe = (T) => {
1402
+ Kt(T, a, l, i, e, v) || (e === "single" ? (w(T), P(T), s(T), k(!1)) : ne(T));
1403
1403
  }, N = () => {
1404
- var T, ie, se, be;
1404
+ var T, I, se, be;
1405
1405
  return e === "single" ? y ? r === "month" && !c ? y.locale(n).format("MMM") : r === "year" && !c ? y.locale(n).format("YYYY") : y.locale(n).format(o) : "" : e === "range" ? v[0] && v[1] && v[0].isSame(v[1], "day") ? v[0].locale(n).format(o) : [
1406
- ((ie = (T = v[0]) == null ? void 0 : T.locale(n)) == null ? void 0 : ie.format(o)) || "",
1406
+ ((I = (T = v[0]) == null ? void 0 : T.locale(n)) == null ? void 0 : I.format(o)) || "",
1407
1407
  ((be = (se = v[1]) == null ? void 0 : se.locale(n)) == null ? void 0 : be.format(o)) || ""
1408
1408
  ] : v[0] ? v[0].locale(n).format(o) : "";
1409
- }, F = () => {
1409
+ }, U = () => {
1410
1410
  P(C === "day" ? Gt(g) : C === "month" ? g.subtract(1, "year") : g.subtract(12, "years"));
1411
- }, ee = () => {
1411
+ }, te = () => {
1412
1412
  P(C === "day" ? Zt(g) : C === "month" ? g.add(1, "year") : g.add(12, "years"));
1413
- }, oe = () => rr({
1413
+ }, ae = () => rr({
1414
1414
  currentViewMode: C,
1415
1415
  currentMonth: g,
1416
1416
  locale: n,
1417
- navigateToPrevious: F,
1418
- navigateToNext: ee,
1417
+ navigateToPrevious: U,
1418
+ navigateToNext: te,
1419
1419
  setCurrentViewMode: _
1420
- }), G = () => tr({
1420
+ }), Z = () => tr({
1421
1421
  currentMonth: g,
1422
1422
  locale: n,
1423
1423
  setCurrentMonth: P
1424
- }), ae = (T = 0) => er({
1424
+ }), ie = (T = 0) => er({
1425
1425
  currentMonth: T === 0 ? g : g.add(1, "month"),
1426
1426
  selectedDate: y,
1427
1427
  selectedRange: v,
@@ -1432,20 +1432,20 @@ const Xe = (t) => {
1432
1432
  minDate: a,
1433
1433
  maxDate: l,
1434
1434
  disableDates: i,
1435
- handleSelect: ne,
1435
+ handleSelect: oe,
1436
1436
  setHoverDate: L,
1437
- limit: M
1438
- }), Ve = () => /* @__PURE__ */ Ae(
1437
+ limit: D
1438
+ }), Fe = () => /* @__PURE__ */ Ae(
1439
1439
  "div",
1440
1440
  {
1441
- ref: Q,
1441
+ ref: ee,
1442
1442
  className: ut(ue["datepicker-container"], e === "range" && ue["range-mode"]),
1443
1443
  "data-testid": `${h}-content`,
1444
1444
  children: [
1445
- e === "single" && oe(),
1446
- e === "range" && C === "day" && G(),
1447
- e === "range" && C !== "day" && oe(),
1448
- C === "day" && e === "single" && ae(),
1445
+ e === "single" && ae(),
1446
+ e === "range" && C === "day" && Z(),
1447
+ e === "range" && C !== "day" && ae(),
1448
+ C === "day" && e === "single" && ie(),
1449
1449
  (C === "month" || C === "year") && or({
1450
1450
  currentViewMode: C,
1451
1451
  currentMonth: g,
@@ -1461,33 +1461,51 @@ const Xe = (t) => {
1461
1461
  setIsOpen: k
1462
1462
  }),
1463
1463
  e === "range" && C === "day" && /* @__PURE__ */ Ae("div", { className: ue["dual-calendar-container"], children: [
1464
- ae(0),
1465
- ae(1)
1464
+ ie(0),
1465
+ ie(1)
1466
1466
  ] })
1467
1467
  ]
1468
1468
  }
1469
1469
  ), ge = () => {
1470
1470
  e === "range" ? (A([null, null]), s([null, null])) : (w(null), s(null));
1471
1471
  }, Re = (T) => /* @__PURE__ */ Ae("span", { className: ue["datepicker-buttons-container"], children: [
1472
- T && /* @__PURE__ */ Y("span", { onClick: () => ge(), "data-testid": `${h}-toggle-icon-remove`, children: /* @__PURE__ */ Y(ze, { icon: "circle-xmark" }) }),
1473
- /* @__PURE__ */ Y("span", { onClick: () => k(!D), "data-testid": `${h}-toggle-icon`, children: /* @__PURE__ */ Y(ze, { icon: "calendar-days" }) })
1472
+ T && /* @__PURE__ */ Y(
1473
+ "span",
1474
+ {
1475
+ onClick: (I) => {
1476
+ I.preventDefault(), I.stopPropagation(), ge();
1477
+ },
1478
+ "data-testid": `${h}-toggle-icon-remove`,
1479
+ children: /* @__PURE__ */ Y(ze, { icon: "circle-xmark" })
1480
+ }
1481
+ ),
1482
+ /* @__PURE__ */ Y(
1483
+ "span",
1484
+ {
1485
+ onClick: (I) => {
1486
+ I.preventDefault(), I.stopPropagation(), k(!E);
1487
+ },
1488
+ "data-testid": `${h}-toggle-icon`,
1489
+ children: /* @__PURE__ */ Y(ze, { icon: "calendar-days" })
1490
+ }
1491
+ )
1474
1492
  ] });
1475
1493
  return Ue(() => {
1476
- if (D && Q.current) {
1477
- const T = Q.current.querySelector("button");
1494
+ if (E && ee.current) {
1495
+ const T = ee.current.querySelector("button");
1478
1496
  T && T.focus();
1479
1497
  }
1480
- }, [D]), /* @__PURE__ */ Y(ur, { onClickAway: () => k(!1), children: /* @__PURE__ */ Ae(
1498
+ }, [E]), /* @__PURE__ */ Y(ur, { onClickAway: () => k(!1), children: /* @__PURE__ */ Ae(
1481
1499
  "div",
1482
1500
  {
1483
- ref: z,
1501
+ ref: X,
1484
1502
  onKeyDown: ye,
1485
1503
  className: ut(ue["datepicker-wrapper"], m),
1486
1504
  "data-testid": h,
1487
1505
  children: [
1488
1506
  c ? nr({
1489
- navigateToPrevious: F,
1490
- navigateToNext: ee,
1507
+ navigateToPrevious: U,
1508
+ navigateToNext: te,
1491
1509
  currentMonth: g,
1492
1510
  selectedDate: y,
1493
1511
  locale: n,
@@ -1502,42 +1520,50 @@ const Xe = (t) => {
1502
1520
  {
1503
1521
  leftInputProps: {
1504
1522
  value: N()[0],
1505
- onClick: () => k(!D),
1506
- placeholder: d[0]
1523
+ onFocus: () => k(!E),
1524
+ placeholder: d[0],
1525
+ "aria-label": "Date Picker Input",
1526
+ "aria-haspopup": "dialog",
1527
+ "aria-expanded": E,
1528
+ "aria-controls": "date-picker-calendar"
1507
1529
  },
1508
1530
  rightInputProps: {
1509
1531
  value: N()[1],
1510
1532
  rightIcon: Re(!!(N()[0] && N()[1])),
1511
- onClick: () => k(!D),
1512
- placeholder: d[1]
1533
+ onFocus: () => k(!E),
1534
+ placeholder: d[1],
1535
+ "aria-label": "Date Picker Input",
1536
+ "aria-haspopup": "dialog",
1537
+ "aria-expanded": E,
1538
+ "aria-controls": "date-picker-calendar"
1513
1539
  },
1514
1540
  separator: /* @__PURE__ */ Y(ze, { icon: "arrow-right" })
1515
1541
  }
1516
1542
  ) }) : /* @__PURE__ */ Y(
1517
1543
  Jt,
1518
1544
  {
1519
- placeholder: E,
1545
+ placeholder: M,
1520
1546
  value: N(),
1521
- onClick: () => k(!D),
1547
+ onFocus: () => k(!E),
1522
1548
  "aria-label": "Date Picker Input",
1523
1549
  "aria-haspopup": "dialog",
1524
- "aria-expanded": D,
1550
+ "aria-expanded": E,
1525
1551
  "aria-controls": "date-picker-calendar",
1526
1552
  rightIcon: Re(!!N())
1527
1553
  }
1528
1554
  ) }),
1529
1555
  /* @__PURE__ */ Y(
1530
- It,
1556
+ qt,
1531
1557
  {
1532
- open: D,
1533
- anchorEl: z.current,
1534
- placement: f,
1558
+ open: E,
1559
+ anchorEl: X.current,
1560
+ placement: p,
1535
1561
  id: "date-picker-calendar",
1536
1562
  role: "dialog",
1537
1563
  "aria-modal": "true",
1538
1564
  "aria-label": "Date selection calendar",
1539
1565
  "data-testid": `${h}-popper`,
1540
- children: Ve()
1566
+ children: Fe()
1541
1567
  }
1542
1568
  )
1543
1569
  ]