@protonradio/proton-ui 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import A, { useRef as M, useCallback as X, useState as z, useContext as Y, useEffect as L, createContext as Q, useMemo as V, useLayoutEffect as Kc, createElement as bi, isValidElement as Mc, forwardRef as dt, cloneElement as Ic } from "react";
1
+ import A, { useRef as M, useCallback as X, useState as z, useContext as Y, useEffect as L, createContext as Q, useMemo as H, useLayoutEffect as Kc, createElement as bi, isValidElement as Mc, forwardRef as dt, cloneElement as Ic } from "react";
2
2
  import Cn, { flushSync as Fc, createPortal as gi } from "react-dom";
3
- import { e as W, i as Nr, h as yi, a as _c, D as en, t as El } from "./utils-CJd9wFM9.mjs";
3
+ import { e as U, i as Nr, h as yi, a as _c, D as en, t as El } from "./utils-CJd9wFM9.mjs";
4
4
  import { THEMES as Pt, BREAKPOINTS as $i } from "./constants.es.js";
5
5
  import { transparentize as Gn, parseToRgba as Rc } from "color2k";
6
- import { G as ge, S as tn, W as nn, D as rn } from "./colors-Dwh4VIMR.mjs";
6
+ import { G as ye, S as tn, W as nn, D as rn } from "./colors-Dwh4VIMR.mjs";
7
7
  import { c as $4 } from "./colors-Dwh4VIMR.mjs";
8
8
  var cr = { exports: {} }, Mt = {};
9
9
  /**
@@ -50,7 +50,7 @@ function Lc() {
50
50
  return typeof K == "function" ? K : null;
51
51
  }
52
52
  var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
- function S(h) {
53
+ function x(h) {
54
54
  {
55
55
  for (var K = arguments.length, _ = new Array(K > 1 ? K - 1 : 0), j = 1; j < K; j++)
56
56
  _[j - 1] = arguments[j];
@@ -67,29 +67,29 @@ function Lc() {
67
67
  ee.unshift("Warning: " + K), Function.prototype.apply.call(console[h], console, ee);
68
68
  }
69
69
  }
70
- var D = !1, P = !1, k = !1, R = !1, v = !1, B;
70
+ var T = !1, w = !1, P = !1, R = !1, v = !1, B;
71
71
  B = Symbol.for("react.module.reference");
72
72
  function E(h) {
73
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === s || h === c || R || h === p || D || P || k || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === u || // This needs to include all possible module reference object
73
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === s || h === c || R || h === p || T || w || P || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === u || // This needs to include all possible module reference object
74
74
  // types supported by any Flight configuration anywhere since
75
75
  // we don't know which Flight build this will end up being used
76
76
  // with.
77
77
  h.$$typeof === B || h.getModuleId !== void 0));
78
78
  }
79
- function w(h, K, _) {
79
+ function D(h, K, _) {
80
80
  var j = h.displayName;
81
81
  if (j)
82
82
  return j;
83
83
  var Z = K.displayName || K.name || "";
84
84
  return Z !== "" ? _ + "(" + Z + ")" : _;
85
85
  }
86
- function I(h) {
86
+ function N(h) {
87
87
  return h.displayName || "Context";
88
88
  }
89
- function x(h) {
89
+ function S(h) {
90
90
  if (h == null)
91
91
  return null;
92
- if (typeof h.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
92
+ if (typeof h.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
93
93
  return h.displayName || h.name || null;
94
94
  if (typeof h == "string")
95
95
  return h;
@@ -111,19 +111,19 @@ function Lc() {
111
111
  switch (h.$$typeof) {
112
112
  case a:
113
113
  var K = h;
114
- return I(K) + ".Consumer";
114
+ return N(K) + ".Consumer";
115
115
  case o:
116
116
  var _ = h;
117
- return I(_._context) + ".Provider";
117
+ return N(_._context) + ".Provider";
118
118
  case u:
119
- return w(h, h.render, "ForwardRef");
119
+ return D(h, h.render, "ForwardRef");
120
120
  case d:
121
121
  var j = h.displayName || null;
122
- return j !== null ? j : x(h.type) || "Memo";
122
+ return j !== null ? j : S(h.type) || "Memo";
123
123
  case f: {
124
124
  var Z = h, ee = Z._payload, q = Z._init;
125
125
  try {
126
- return x(q(ee));
126
+ return S(q(ee));
127
127
  } catch {
128
128
  return null;
129
129
  }
@@ -131,14 +131,14 @@ function Lc() {
131
131
  }
132
132
  return null;
133
133
  }
134
- var F = Object.assign, T = 0, U, N, ce, ye, xe, Be, Ee;
134
+ var F = Object.assign, k = 0, V, I, re, de, xe, Be, Ee;
135
135
  function Ue() {
136
136
  }
137
137
  Ue.__reactDisabledLog = !0;
138
138
  function O() {
139
139
  {
140
- if (T === 0) {
141
- U = console.log, N = console.info, ce = console.warn, ye = console.error, xe = console.group, Be = console.groupCollapsed, Ee = console.groupEnd;
140
+ if (k === 0) {
141
+ V = console.log, I = console.info, re = console.warn, de = console.error, xe = console.group, Be = console.groupCollapsed, Ee = console.groupEnd;
142
142
  var h = {
143
143
  configurable: !0,
144
144
  enumerable: !0,
@@ -155,12 +155,12 @@ function Lc() {
155
155
  groupEnd: h
156
156
  });
157
157
  }
158
- T++;
158
+ k++;
159
159
  }
160
160
  }
161
161
  function ke() {
162
162
  {
163
- if (T--, T === 0) {
163
+ if (k--, k === 0) {
164
164
  var h = {
165
165
  configurable: !0,
166
166
  enumerable: !0,
@@ -168,16 +168,16 @@ function Lc() {
168
168
  };
169
169
  Object.defineProperties(console, {
170
170
  log: F({}, h, {
171
- value: U
171
+ value: V
172
172
  }),
173
173
  info: F({}, h, {
174
- value: N
174
+ value: I
175
175
  }),
176
176
  warn: F({}, h, {
177
- value: ce
177
+ value: re
178
178
  }),
179
179
  error: F({}, h, {
180
- value: ye
180
+ value: de
181
181
  }),
182
182
  group: F({}, h, {
183
183
  value: xe
@@ -190,7 +190,7 @@ function Lc() {
190
190
  })
191
191
  });
192
192
  }
193
- T < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
+ k < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
194
  }
195
195
  }
196
196
  var Se = C.ReactCurrentDispatcher, Ge;
@@ -209,8 +209,8 @@ function Lc() {
209
209
  }
210
210
  var vt = !1, ht;
211
211
  {
212
- var re = typeof WeakMap == "function" ? WeakMap : Map;
213
- ht = new re();
212
+ var le = typeof WeakMap == "function" ? WeakMap : Map;
213
+ ht = new le();
214
214
  }
215
215
  function mt(h, K) {
216
216
  if (!h || vt)
@@ -238,42 +238,42 @@ function Lc() {
238
238
  }), typeof Reflect == "object" && Reflect.construct) {
239
239
  try {
240
240
  Reflect.construct(q, []);
241
- } catch (me) {
242
- j = me;
241
+ } catch (be) {
242
+ j = be;
243
243
  }
244
244
  Reflect.construct(h, [], q);
245
245
  } else {
246
246
  try {
247
247
  q.call();
248
- } catch (me) {
249
- j = me;
248
+ } catch (be) {
249
+ j = be;
250
250
  }
251
251
  h.call(q.prototype);
252
252
  }
253
253
  } else {
254
254
  try {
255
255
  throw Error();
256
- } catch (me) {
257
- j = me;
256
+ } catch (be) {
257
+ j = be;
258
258
  }
259
259
  h();
260
260
  }
261
- } catch (me) {
262
- if (me && j && typeof me.stack == "string") {
263
- for (var G = me.stack.split(`
264
- `), pe = j.stack.split(`
265
- `), le = G.length - 1, ae = pe.length - 1; le >= 1 && ae >= 0 && G[le] !== pe[ae]; )
266
- ae--;
267
- for (; le >= 1 && ae >= 0; le--, ae--)
268
- if (G[le] !== pe[ae]) {
269
- if (le !== 1 || ae !== 1)
261
+ } catch (be) {
262
+ if (be && j && typeof be.stack == "string") {
263
+ for (var G = be.stack.split(`
264
+ `), ve = j.stack.split(`
265
+ `), ie = G.length - 1, ue = ve.length - 1; ie >= 1 && ue >= 0 && G[ie] !== ve[ue]; )
266
+ ue--;
267
+ for (; ie >= 1 && ue >= 0; ie--, ue--)
268
+ if (G[ie] !== ve[ue]) {
269
+ if (ie !== 1 || ue !== 1)
270
270
  do
271
- if (le--, ae--, ae < 0 || G[le] !== pe[ae]) {
271
+ if (ie--, ue--, ue < 0 || G[ie] !== ve[ue]) {
272
272
  var Ce = `
273
- ` + G[le].replace(" at new ", " at ");
273
+ ` + G[ie].replace(" at new ", " at ");
274
274
  return h.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", h.displayName)), typeof h == "function" && ht.set(h, Ce), Ce;
275
275
  }
276
- while (le >= 1 && ae >= 0);
276
+ while (ie >= 1 && ue >= 0);
277
277
  break;
278
278
  }
279
279
  }
@@ -335,14 +335,14 @@ function Lc() {
335
335
  var G = void 0;
336
336
  try {
337
337
  if (typeof h[q] != "function") {
338
- var pe = Error((j || "React class") + ": " + _ + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
- throw pe.name = "Invariant Violation", pe;
338
+ var ve = Error((j || "React class") + ": " + _ + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
+ throw ve.name = "Invariant Violation", ve;
340
340
  }
341
341
  G = h[q](K, q, j, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
- } catch (le) {
343
- G = le;
342
+ } catch (ie) {
343
+ G = ie;
344
344
  }
345
- G && !(G instanceof Error) && (Qt(Z), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", _, q, typeof G), Qt(null)), G instanceof Error && !(G.message in sl) && (sl[G.message] = !0, Qt(Z), S("Failed %s type: %s", _, G.message), Qt(null));
345
+ G && !(G instanceof Error) && (Qt(Z), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", _, q, typeof G), Qt(null)), G instanceof Error && !(G.message in sl) && (sl[G.message] = !0, Qt(Z), x("Failed %s type: %s", _, G.message), Qt(null));
346
346
  }
347
347
  }
348
348
  }
@@ -368,7 +368,7 @@ function Lc() {
368
368
  }
369
369
  function fl(h) {
370
370
  if (pc(h))
371
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fc(h)), dl(h);
371
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fc(h)), dl(h);
372
372
  }
373
373
  var Kt = C.ReactCurrentOwner, vc = {
374
374
  key: !0,
@@ -395,14 +395,14 @@ function Lc() {
395
395
  }
396
396
  function bc(h, K) {
397
397
  if (typeof h.ref == "string" && Kt.current && K && Kt.current.stateNode !== K) {
398
- var _ = x(Kt.current.type);
399
- jn[_] || (S('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', x(Kt.current.type), h.ref), jn[_] = !0);
398
+ var _ = S(Kt.current.type);
399
+ jn[_] || (x('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', S(Kt.current.type), h.ref), jn[_] = !0);
400
400
  }
401
401
  }
402
402
  function gc(h, K) {
403
403
  {
404
404
  var _ = function() {
405
- pl || (pl = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
405
+ pl || (pl = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
406
406
  };
407
407
  _.isReactWarning = !0, Object.defineProperty(h, "key", {
408
408
  get: _,
@@ -413,7 +413,7 @@ function Lc() {
413
413
  function yc(h, K) {
414
414
  {
415
415
  var _ = function() {
416
- vl || (vl = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
416
+ vl || (vl = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
417
417
  };
418
418
  _.isReactWarning = !0, Object.defineProperty(h, "ref", {
419
419
  get: _,
@@ -452,20 +452,20 @@ function Lc() {
452
452
  };
453
453
  function xc(h, K, _, j, Z) {
454
454
  {
455
- var ee, q = {}, G = null, pe = null;
456
- _ !== void 0 && (fl(_), G = "" + _), mc(K) && (fl(K.key), G = "" + K.key), hc(K) && (pe = K.ref, bc(K, Z));
455
+ var ee, q = {}, G = null, ve = null;
456
+ _ !== void 0 && (fl(_), G = "" + _), mc(K) && (fl(K.key), G = "" + K.key), hc(K) && (ve = K.ref, bc(K, Z));
457
457
  for (ee in K)
458
458
  Bt.call(K, ee) && !vc.hasOwnProperty(ee) && (q[ee] = K[ee]);
459
459
  if (h && h.defaultProps) {
460
- var le = h.defaultProps;
461
- for (ee in le)
462
- q[ee] === void 0 && (q[ee] = le[ee]);
460
+ var ie = h.defaultProps;
461
+ for (ee in ie)
462
+ q[ee] === void 0 && (q[ee] = ie[ee]);
463
463
  }
464
- if (G || pe) {
465
- var ae = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
466
- G && gc(q, ae), pe && yc(q, ae);
464
+ if (G || ve) {
465
+ var ue = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
466
+ G && gc(q, ue), ve && yc(q, ue);
467
467
  }
468
- return $c(h, G, pe, Z, j, Kt.current, q);
468
+ return $c(h, G, ve, Z, j, Kt.current, q);
469
469
  }
470
470
  }
471
471
  var Vn = C.ReactCurrentOwner, hl = C.ReactDebugCurrentFrame;
@@ -484,7 +484,7 @@ function Lc() {
484
484
  function ml() {
485
485
  {
486
486
  if (Vn.current) {
487
- var h = x(Vn.current.type);
487
+ var h = S(Vn.current.type);
488
488
  if (h)
489
489
  return `
490
490
 
@@ -519,7 +519,7 @@ Check the top-level render call using <` + _ + ">.");
519
519
  return;
520
520
  bl[_] = !0;
521
521
  var j = "";
522
- h && h._owner && h._owner !== Vn.current && (j = " It was passed a child from " + x(h._owner.type) + "."), bt(h), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, j), bt(null);
522
+ h && h._owner && h._owner !== Vn.current && (j = " It was passed a child from " + S(h._owner.type) + "."), bt(h), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, j), bt(null);
523
523
  }
524
524
  }
525
525
  function yl(h, K) {
@@ -556,14 +556,14 @@ Check the top-level render call using <` + _ + ">.");
556
556
  else
557
557
  return;
558
558
  if (_) {
559
- var j = x(K);
559
+ var j = S(K);
560
560
  cc(_, h.props, "prop", j, h);
561
561
  } else if (K.PropTypes !== void 0 && !Hn) {
562
562
  Hn = !0;
563
- var Z = x(K);
564
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
563
+ var Z = S(K);
564
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
565
565
  }
566
- typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
+ typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
567
567
  }
568
568
  }
569
569
  function wc(h) {
@@ -571,11 +571,11 @@ Check the top-level render call using <` + _ + ">.");
571
571
  for (var K = Object.keys(h.props), _ = 0; _ < K.length; _++) {
572
572
  var j = K[_];
573
573
  if (j !== "children" && j !== "key") {
574
- bt(h), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), bt(null);
574
+ bt(h), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), bt(null);
575
575
  break;
576
576
  }
577
577
  }
578
- h.ref !== null && (bt(h), S("Invalid attribute `ref` supplied to `React.Fragment`."), bt(null));
578
+ h.ref !== null && (bt(h), x("Invalid attribute `ref` supplied to `React.Fragment`."), bt(null));
579
579
  }
580
580
  }
581
581
  var $l = {};
@@ -585,14 +585,14 @@ Check the top-level render call using <` + _ + ">.");
585
585
  if (!q) {
586
586
  var G = "";
587
587
  (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (G += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
588
- var pe = Ec();
589
- pe ? G += pe : G += ml();
590
- var le;
591
- h === null ? le = "null" : zn(h) ? le = "array" : h !== void 0 && h.$$typeof === e ? (le = "<" + (x(h.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : le = typeof h, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", le, G);
588
+ var ve = Ec();
589
+ ve ? G += ve : G += ml();
590
+ var ie;
591
+ h === null ? ie = "null" : zn(h) ? ie = "array" : h !== void 0 && h.$$typeof === e ? (ie = "<" + (S(h.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof h, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ie, G);
592
592
  }
593
- var ae = xc(h, K, _, Z, ee);
594
- if (ae == null)
595
- return ae;
593
+ var ue = xc(h, K, _, Z, ee);
594
+ if (ue == null)
595
+ return ue;
596
596
  if (q) {
597
597
  var Ce = K.children;
598
598
  if (Ce !== void 0)
@@ -602,17 +602,17 @@ Check the top-level render call using <` + _ + ">.");
602
602
  yl(Ce[gt], h);
603
603
  Object.freeze && Object.freeze(Ce);
604
604
  } else
605
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
606
606
  else
607
607
  yl(Ce, h);
608
608
  }
609
609
  if (Bt.call(K, "key")) {
610
- var lt = x(h), me = Object.keys(K).filter(function(Bc) {
610
+ var lt = S(h), be = Object.keys(K).filter(function(Bc) {
611
611
  return Bc !== "key";
612
- }), Un = me.length > 0 ? "{key: someKey, " + me.join(": ..., ") + ": ...}" : "{key: someKey}";
612
+ }), Un = be.length > 0 ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}";
613
613
  if (!$l[lt + Un]) {
614
- var Ac = me.length > 0 ? "{" + me.join(": ..., ") + ": ...}" : "{}";
615
- S(`A props object containing a "key" prop is being spread into JSX:
614
+ var Ac = be.length > 0 ? "{" + be.join(": ..., ") + ": ...}" : "{}";
615
+ x(`A props object containing a "key" prop is being spread into JSX:
616
616
  let props = %s;
617
617
  <%s {...props} />
618
618
  React keys must be passed directly to JSX without using spread:
@@ -620,7 +620,7 @@ React keys must be passed directly to JSX without using spread:
620
620
  <%s key={someKey} {...props} />`, Un, lt, Ac, lt), $l[lt + Un] = !0;
621
621
  }
622
622
  }
623
- return h === r ? wc(ae) : Cc(ae), ae;
623
+ return h === r ? wc(ue) : Cc(ue), ue;
624
624
  }
625
625
  }
626
626
  function Pc(h, K, _) {
@@ -637,7 +637,7 @@ process.env.NODE_ENV === "production" ? cr.exports = Nc() : cr.exports = Lc();
637
637
  var b = cr.exports;
638
638
  const J = typeof document < "u" ? A.useLayoutEffect : () => {
639
639
  };
640
- function oe(t) {
640
+ function ae(t) {
641
641
  const e = M(null);
642
642
  return J(() => {
643
643
  e.current = t;
@@ -649,7 +649,7 @@ function oe(t) {
649
649
  }, []);
650
650
  }
651
651
  function Oc(t) {
652
- let [e, n] = z(t), r = M(null), l = oe(() => {
652
+ let [e, n] = z(t), r = M(null), l = ae(() => {
653
653
  if (!r.current) return;
654
654
  let o = r.current.next();
655
655
  if (o.done) {
@@ -661,7 +661,7 @@ function Oc(t) {
661
661
  J(() => {
662
662
  r.current && l();
663
663
  });
664
- let i = oe((o) => {
664
+ let i = ae((o) => {
665
665
  r.current = o(e), l();
666
666
  });
667
667
  return [
@@ -715,7 +715,7 @@ function nt() {
715
715
  return typeof A.useSyncExternalStore == "function" ? A.useSyncExternalStore(qc, Gc, Yc) : Y(zc);
716
716
  }
717
717
  let Xc = !!(typeof window < "u" && window.document && window.document.createElement), qe = /* @__PURE__ */ new Map();
718
- function he(t) {
718
+ function me(t) {
719
719
  let [e, n] = z(t), r = M(null), l = Uc(e), i = X((o) => {
720
720
  r.current = o;
721
721
  }, []);
@@ -745,7 +745,7 @@ function Zc(t, e) {
745
745
  return r ? (r.forEach((l) => l(t)), t) : e;
746
746
  }
747
747
  function et(t = []) {
748
- let e = he(), [n, r] = Oc(e), l = X(() => {
748
+ let e = me(), [n, r] = Oc(e), l = X(() => {
749
749
  r(function* () {
750
750
  yield e, yield document.getElementById(e) ? e : void 0;
751
751
  });
@@ -781,7 +781,7 @@ function Jc() {
781
781
  for (var t, e, n = 0, r = "", l = arguments.length; n < l; n++) (t = arguments[n]) && (e = Ei(t)) && (r && (r += " "), r += e);
782
782
  return r;
783
783
  }
784
- function H(...t) {
784
+ function W(...t) {
785
785
  let e = {
786
786
  ...t[0]
787
787
  };
@@ -819,7 +819,7 @@ const ed = /* @__PURE__ */ new Set([
819
819
  "ping",
820
820
  "referrerPolicy"
821
821
  ]), rd = /^(data-.*)$/;
822
- function fe(t, e = {}) {
822
+ function pe(t, e = {}) {
823
823
  let { labelable: n, isLink: r, propNames: l } = e, i = {};
824
824
  for (const o in t) Object.prototype.hasOwnProperty.call(t, o) && (ed.has(o) || n && td.has(o) || r && nd.has(o) || l != null && l.has(o) || rd.test(o)) && (i[o] = t[o]);
825
825
  return i;
@@ -1022,7 +1022,7 @@ function Pi() {
1022
1022
  }
1023
1023
  function Di(t, e) {
1024
1024
  let { id: n, "aria-label": r, "aria-labelledby": l } = t;
1025
- return n = he(n), l && r ? l = [
1025
+ return n = me(n), l && r ? l = [
1026
1026
  .../* @__PURE__ */ new Set([
1027
1027
  n,
1028
1028
  ...l.trim().split(/\s+/)
@@ -1035,7 +1035,7 @@ function Di(t, e) {
1035
1035
  }
1036
1036
  function Dn(t) {
1037
1037
  const e = M(null);
1038
- return V(() => ({
1038
+ return H(() => ({
1039
1039
  get current() {
1040
1040
  return e.current;
1041
1041
  },
@@ -1132,7 +1132,7 @@ function kn(t) {
1132
1132
  };
1133
1133
  }
1134
1134
  function Pl(t, e, n, r) {
1135
- let l = oe(n), i = n == null;
1135
+ let l = ae(n), i = n == null;
1136
1136
  L(() => {
1137
1137
  if (i || !t.current) return;
1138
1138
  let o = t.current;
@@ -1195,7 +1195,7 @@ function gd(t) {
1195
1195
  return !vn() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
1196
1196
  }
1197
1197
  function Tn(t, e, n) {
1198
- let r = M(e), l = oe(() => {
1198
+ let r = M(e), l = ae(() => {
1199
1199
  n && n(r.current);
1200
1200
  });
1201
1201
  L(() => {
@@ -1303,7 +1303,7 @@ function Cd(t) {
1303
1303
  let e = Y(Vt);
1304
1304
  if (e) {
1305
1305
  let { register: n, ...r } = e;
1306
- t = H(r, t), n();
1306
+ t = W(r, t), n();
1307
1307
  }
1308
1308
  return zr(e, t.ref), t;
1309
1309
  }
@@ -1353,168 +1353,168 @@ function ze(t) {
1353
1353
  target: null,
1354
1354
  isOverTarget: !1,
1355
1355
  pointerType: null
1356
- }), { addGlobalListener: g, removeAllGlobalListeners: C } = Pi(), S = oe((v, B) => {
1356
+ }), { addGlobalListener: g, removeAllGlobalListeners: C } = Pi(), x = ae((v, B) => {
1357
1357
  let E = y.current;
1358
1358
  if (o || E.didFirePressStart) return !1;
1359
- let w = !0;
1359
+ let D = !0;
1360
1360
  if (E.isTriggeringEvent = !0, r) {
1361
- let I = new un("pressstart", B, v);
1362
- r(I), w = I.shouldStopPropagation;
1363
- }
1364
- return n && n(!0), E.isTriggeringEvent = !1, E.didFirePressStart = !0, m(!0), w;
1365
- }), $ = oe((v, B, E = !0) => {
1366
- let w = y.current;
1367
- if (!w.didFirePressStart) return !1;
1368
- w.ignoreClickAfterPress = !0, w.didFirePressStart = !1, w.isTriggeringEvent = !0;
1369
- let I = !0;
1361
+ let N = new un("pressstart", B, v);
1362
+ r(N), D = N.shouldStopPropagation;
1363
+ }
1364
+ return n && n(!0), E.isTriggeringEvent = !1, E.didFirePressStart = !0, m(!0), D;
1365
+ }), $ = ae((v, B, E = !0) => {
1366
+ let D = y.current;
1367
+ if (!D.didFirePressStart) return !1;
1368
+ D.ignoreClickAfterPress = !0, D.didFirePressStart = !1, D.isTriggeringEvent = !0;
1369
+ let N = !0;
1370
1370
  if (l) {
1371
- let x = new un("pressend", B, v);
1372
- l(x), I = x.shouldStopPropagation;
1371
+ let S = new un("pressend", B, v);
1372
+ l(S), N = S.shouldStopPropagation;
1373
1373
  }
1374
1374
  if (n && n(!1), m(!1), e && E && !o) {
1375
- let x = new un("press", B, v);
1376
- e(x), I && (I = x.shouldStopPropagation);
1375
+ let S = new un("press", B, v);
1376
+ e(S), N && (N = S.shouldStopPropagation);
1377
1377
  }
1378
- return w.isTriggeringEvent = !1, I;
1379
- }), D = oe((v, B) => {
1378
+ return D.isTriggeringEvent = !1, N;
1379
+ }), T = ae((v, B) => {
1380
1380
  let E = y.current;
1381
1381
  if (o) return !1;
1382
1382
  if (i) {
1383
1383
  E.isTriggeringEvent = !0;
1384
- let w = new un("pressup", B, v);
1385
- return i(w), E.isTriggeringEvent = !1, w.shouldStopPropagation;
1384
+ let D = new un("pressup", B, v);
1385
+ return i(D), E.isTriggeringEvent = !1, D.shouldStopPropagation;
1386
1386
  }
1387
1387
  return !0;
1388
- }), P = oe((v) => {
1388
+ }), w = ae((v) => {
1389
1389
  let B = y.current;
1390
1390
  B.isPressed && B.target && (B.isOverTarget && B.pointerType != null && $(Fe(B.target, v), B.pointerType, !1), B.isPressed = !1, B.isOverTarget = !1, B.activePointerId = null, B.pointerType = null, C(), c || on(B.target));
1391
- }), k = oe((v) => {
1392
- s && P(v);
1393
- }), R = V(() => {
1391
+ }), P = ae((v) => {
1392
+ s && w(v);
1393
+ }), R = H(() => {
1394
1394
  let v = y.current, B = {
1395
- onKeyDown(w) {
1396
- if (Xn(w.nativeEvent, w.currentTarget) && w.currentTarget.contains(w.target)) {
1397
- var I;
1398
- Kl(w.target, w.key) && w.preventDefault();
1399
- let x = !0;
1400
- if (!v.isPressed && !w.repeat) {
1401
- v.target = w.currentTarget, v.isPressed = !0, x = S(w, "keyboard");
1402
- let F = w.currentTarget, T = (U) => {
1403
- Xn(U, F) && !U.repeat && F.contains(U.target) && v.target && D(Fe(v.target, U), "keyboard");
1395
+ onKeyDown(D) {
1396
+ if (Xn(D.nativeEvent, D.currentTarget) && D.currentTarget.contains(D.target)) {
1397
+ var N;
1398
+ Kl(D.target, D.key) && D.preventDefault();
1399
+ let S = !0;
1400
+ if (!v.isPressed && !D.repeat) {
1401
+ v.target = D.currentTarget, v.isPressed = !0, S = x(D, "keyboard");
1402
+ let F = D.currentTarget, k = (V) => {
1403
+ Xn(V, F) && !V.repeat && F.contains(V.target) && v.target && T(Fe(v.target, V), "keyboard");
1404
1404
  };
1405
- g(ne(w.currentTarget), "keyup", Ie(T, E), !0);
1405
+ g(ne(D.currentTarget), "keyup", Ie(k, E), !0);
1406
1406
  }
1407
- x && w.stopPropagation(), w.metaKey && tt() && ((I = v.metaKeyEvents) === null || I === void 0 || I.set(w.key, w.nativeEvent));
1408
- } else w.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
1407
+ S && D.stopPropagation(), D.metaKey && tt() && ((N = v.metaKeyEvents) === null || N === void 0 || N.set(D.key, D.nativeEvent));
1408
+ } else D.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
1409
1409
  },
1410
- onClick(w) {
1411
- if (!(w && !w.currentTarget.contains(w.target)) && w && w.button === 0 && !v.isTriggeringEvent && !ut.isOpening) {
1412
- let I = !0;
1413
- if (o && w.preventDefault(), !v.ignoreClickAfterPress && !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || pr(w.nativeEvent))) {
1414
- !o && !u && Le(w.currentTarget);
1415
- let x = S(w, "virtual"), F = D(w, "virtual"), T = $(w, "virtual");
1416
- I = x && F && T;
1410
+ onClick(D) {
1411
+ if (!(D && !D.currentTarget.contains(D.target)) && D && D.button === 0 && !v.isTriggeringEvent && !ut.isOpening) {
1412
+ let N = !0;
1413
+ if (o && D.preventDefault(), !v.ignoreClickAfterPress && !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || pr(D.nativeEvent))) {
1414
+ !o && !u && Le(D.currentTarget);
1415
+ let S = x(D, "virtual"), F = T(D, "virtual"), k = $(D, "virtual");
1416
+ N = S && F && k;
1417
1417
  }
1418
- v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1, I && w.stopPropagation();
1418
+ v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1, N && D.stopPropagation();
1419
1419
  }
1420
1420
  }
1421
- }, E = (w) => {
1422
- var I;
1423
- if (v.isPressed && v.target && Xn(w, v.target)) {
1424
- var x;
1425
- Kl(w.target, w.key) && w.preventDefault();
1426
- let T = w.target;
1427
- $(Fe(v.target, w), "keyboard", v.target.contains(T)), C(), w.key !== "Enter" && jr(v.target) && v.target.contains(T) && !w[Al] && (w[Al] = !0, ut(v.target, w, !1)), v.isPressed = !1, (x = v.metaKeyEvents) === null || x === void 0 || x.delete(w.key);
1428
- } else if (w.key === "Meta" && (!((I = v.metaKeyEvents) === null || I === void 0) && I.size)) {
1421
+ }, E = (D) => {
1422
+ var N;
1423
+ if (v.isPressed && v.target && Xn(D, v.target)) {
1424
+ var S;
1425
+ Kl(D.target, D.key) && D.preventDefault();
1426
+ let k = D.target;
1427
+ $(Fe(v.target, D), "keyboard", v.target.contains(k)), C(), D.key !== "Enter" && jr(v.target) && v.target.contains(k) && !D[Al] && (D[Al] = !0, ut(v.target, D, !1)), v.isPressed = !1, (S = v.metaKeyEvents) === null || S === void 0 || S.delete(D.key);
1428
+ } else if (D.key === "Meta" && (!((N = v.metaKeyEvents) === null || N === void 0) && N.size)) {
1429
1429
  var F;
1430
- let T = v.metaKeyEvents;
1430
+ let k = v.metaKeyEvents;
1431
1431
  v.metaKeyEvents = void 0;
1432
- for (let U of T.values()) (F = v.target) === null || F === void 0 || F.dispatchEvent(new KeyboardEvent("keyup", U));
1432
+ for (let V of k.values()) (F = v.target) === null || F === void 0 || F.dispatchEvent(new KeyboardEvent("keyup", V));
1433
1433
  }
1434
1434
  };
1435
1435
  if (typeof PointerEvent < "u") {
1436
- B.onPointerDown = (T) => {
1437
- if (T.button !== 0 || !T.currentTarget.contains(T.target)) return;
1438
- if (gd(T.nativeEvent)) {
1436
+ B.onPointerDown = (k) => {
1437
+ if (k.button !== 0 || !k.currentTarget.contains(k.target)) return;
1438
+ if (gd(k.nativeEvent)) {
1439
1439
  v.pointerType = "virtual";
1440
1440
  return;
1441
1441
  }
1442
- Zn(T.currentTarget) && T.preventDefault(), v.pointerType = T.pointerType;
1443
- let U = !0;
1444
- v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId = T.pointerId, v.target = T.currentTarget, !o && !u && Le(T.currentTarget), c || kl(v.target), U = S(T, v.pointerType), g(ne(T.currentTarget), "pointermove", w, !1), g(ne(T.currentTarget), "pointerup", I, !1), g(ne(T.currentTarget), "pointercancel", F, !1)), U && T.stopPropagation();
1445
- }, B.onMouseDown = (T) => {
1446
- T.currentTarget.contains(T.target) && T.button === 0 && (Zn(T.currentTarget) && T.preventDefault(), T.stopPropagation());
1447
- }, B.onPointerUp = (T) => {
1448
- !T.currentTarget.contains(T.target) || v.pointerType === "virtual" || T.button === 0 && yt(T, T.currentTarget) && D(T, v.pointerType || T.pointerType);
1442
+ Zn(k.currentTarget) && k.preventDefault(), v.pointerType = k.pointerType;
1443
+ let V = !0;
1444
+ v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId = k.pointerId, v.target = k.currentTarget, !o && !u && Le(k.currentTarget), c || kl(v.target), V = x(k, v.pointerType), g(ne(k.currentTarget), "pointermove", D, !1), g(ne(k.currentTarget), "pointerup", N, !1), g(ne(k.currentTarget), "pointercancel", F, !1)), V && k.stopPropagation();
1445
+ }, B.onMouseDown = (k) => {
1446
+ k.currentTarget.contains(k.target) && k.button === 0 && (Zn(k.currentTarget) && k.preventDefault(), k.stopPropagation());
1447
+ }, B.onPointerUp = (k) => {
1448
+ !k.currentTarget.contains(k.target) || v.pointerType === "virtual" || k.button === 0 && yt(k, k.currentTarget) && T(k, v.pointerType || k.pointerType);
1449
1449
  };
1450
- let w = (T) => {
1451
- T.pointerId === v.activePointerId && (v.target && yt(T, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, S(Fe(v.target, T), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, $(Fe(v.target, T), v.pointerType, !1), k(T)));
1452
- }, I = (T) => {
1453
- T.pointerId === v.activePointerId && v.isPressed && T.button === 0 && v.target && (yt(T, v.target) && v.pointerType != null ? $(Fe(v.target, T), v.pointerType) : v.isOverTarget && v.pointerType != null && $(Fe(v.target, T), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, C(), c || on(v.target), "ontouchend" in v.target && T.pointerType !== "mouse" && g(v.target, "touchend", x, {
1450
+ let D = (k) => {
1451
+ k.pointerId === v.activePointerId && (v.target && yt(k, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, x(Fe(v.target, k), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, $(Fe(v.target, k), v.pointerType, !1), P(k)));
1452
+ }, N = (k) => {
1453
+ k.pointerId === v.activePointerId && v.isPressed && k.button === 0 && v.target && (yt(k, v.target) && v.pointerType != null ? $(Fe(v.target, k), v.pointerType) : v.isOverTarget && v.pointerType != null && $(Fe(v.target, k), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, C(), c || on(v.target), "ontouchend" in v.target && k.pointerType !== "mouse" && g(v.target, "touchend", S, {
1454
1454
  once: !0
1455
1455
  }));
1456
- }, x = (T) => {
1457
- Bi(T.currentTarget) && T.preventDefault();
1458
- }, F = (T) => {
1459
- P(T);
1456
+ }, S = (k) => {
1457
+ Bi(k.currentTarget) && k.preventDefault();
1458
+ }, F = (k) => {
1459
+ w(k);
1460
1460
  };
1461
- B.onDragStart = (T) => {
1462
- T.currentTarget.contains(T.target) && P(T);
1461
+ B.onDragStart = (k) => {
1462
+ k.currentTarget.contains(k.target) && w(k);
1463
1463
  };
1464
1464
  } else {
1465
- B.onMouseDown = (x) => {
1466
- if (x.button !== 0 || !x.currentTarget.contains(x.target)) return;
1467
- if (Zn(x.currentTarget) && x.preventDefault(), v.ignoreEmulatedMouseEvents) {
1468
- x.stopPropagation();
1465
+ B.onMouseDown = (S) => {
1466
+ if (S.button !== 0 || !S.currentTarget.contains(S.target)) return;
1467
+ if (Zn(S.currentTarget) && S.preventDefault(), v.ignoreEmulatedMouseEvents) {
1468
+ S.stopPropagation();
1469
1469
  return;
1470
1470
  }
1471
- v.isPressed = !0, v.isOverTarget = !0, v.target = x.currentTarget, v.pointerType = pr(x.nativeEvent) ? "virtual" : "mouse", !o && !u && Le(x.currentTarget), S(x, v.pointerType) && x.stopPropagation(), g(ne(x.currentTarget), "mouseup", w, !1);
1472
- }, B.onMouseEnter = (x) => {
1473
- if (!x.currentTarget.contains(x.target)) return;
1471
+ v.isPressed = !0, v.isOverTarget = !0, v.target = S.currentTarget, v.pointerType = pr(S.nativeEvent) ? "virtual" : "mouse", !o && !u && Le(S.currentTarget), x(S, v.pointerType) && S.stopPropagation(), g(ne(S.currentTarget), "mouseup", D, !1);
1472
+ }, B.onMouseEnter = (S) => {
1473
+ if (!S.currentTarget.contains(S.target)) return;
1474
1474
  let F = !0;
1475
- v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, F = S(x, v.pointerType)), F && x.stopPropagation();
1476
- }, B.onMouseLeave = (x) => {
1477
- if (!x.currentTarget.contains(x.target)) return;
1475
+ v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, F = x(S, v.pointerType)), F && S.stopPropagation();
1476
+ }, B.onMouseLeave = (S) => {
1477
+ if (!S.currentTarget.contains(S.target)) return;
1478
1478
  let F = !0;
1479
- v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1, F = $(x, v.pointerType, !1), k(x)), F && x.stopPropagation();
1480
- }, B.onMouseUp = (x) => {
1481
- x.currentTarget.contains(x.target) && !v.ignoreEmulatedMouseEvents && x.button === 0 && D(x, v.pointerType || "mouse");
1479
+ v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1, F = $(S, v.pointerType, !1), P(S)), F && S.stopPropagation();
1480
+ }, B.onMouseUp = (S) => {
1481
+ S.currentTarget.contains(S.target) && !v.ignoreEmulatedMouseEvents && S.button === 0 && T(S, v.pointerType || "mouse");
1482
1482
  };
1483
- let w = (x) => {
1484
- if (x.button === 0) {
1483
+ let D = (S) => {
1484
+ if (S.button === 0) {
1485
1485
  if (v.isPressed = !1, C(), v.ignoreEmulatedMouseEvents) {
1486
1486
  v.ignoreEmulatedMouseEvents = !1;
1487
1487
  return;
1488
1488
  }
1489
- v.target && yt(x, v.target) && v.pointerType != null ? $(Fe(v.target, x), v.pointerType) : v.target && v.isOverTarget && v.pointerType != null && $(Fe(v.target, x), v.pointerType, !1), v.isOverTarget = !1;
1489
+ v.target && yt(S, v.target) && v.pointerType != null ? $(Fe(v.target, S), v.pointerType) : v.target && v.isOverTarget && v.pointerType != null && $(Fe(v.target, S), v.pointerType, !1), v.isOverTarget = !1;
1490
1490
  }
1491
1491
  };
1492
- B.onTouchStart = (x) => {
1493
- if (!x.currentTarget.contains(x.target)) return;
1494
- let F = wd(x.nativeEvent);
1492
+ B.onTouchStart = (S) => {
1493
+ if (!S.currentTarget.contains(S.target)) return;
1494
+ let F = wd(S.nativeEvent);
1495
1495
  if (!F) return;
1496
- v.activePointerId = F.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, v.target = x.currentTarget, v.pointerType = "touch", !o && !u && Le(x.currentTarget), c || kl(v.target), S(Ye(v.target, x), v.pointerType) && x.stopPropagation(), g(De(x.currentTarget), "scroll", I, !0);
1497
- }, B.onTouchMove = (x) => {
1498
- if (!x.currentTarget.contains(x.target)) return;
1496
+ v.activePointerId = F.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, v.target = S.currentTarget, v.pointerType = "touch", !o && !u && Le(S.currentTarget), c || kl(v.target), x(Ye(v.target, S), v.pointerType) && S.stopPropagation(), g(De(S.currentTarget), "scroll", N, !0);
1497
+ }, B.onTouchMove = (S) => {
1498
+ if (!S.currentTarget.contains(S.target)) return;
1499
1499
  if (!v.isPressed) {
1500
- x.stopPropagation();
1500
+ S.stopPropagation();
1501
1501
  return;
1502
1502
  }
1503
- let F = Bl(x.nativeEvent, v.activePointerId), T = !0;
1504
- F && yt(F, x.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, T = S(Ye(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, T = $(Ye(v.target, x), v.pointerType, !1), k(Ye(v.target, x))), T && x.stopPropagation();
1505
- }, B.onTouchEnd = (x) => {
1506
- if (!x.currentTarget.contains(x.target)) return;
1503
+ let F = Bl(S.nativeEvent, v.activePointerId), k = !0;
1504
+ F && yt(F, S.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, k = x(Ye(v.target, S), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, k = $(Ye(v.target, S), v.pointerType, !1), P(Ye(v.target, S))), k && S.stopPropagation();
1505
+ }, B.onTouchEnd = (S) => {
1506
+ if (!S.currentTarget.contains(S.target)) return;
1507
1507
  if (!v.isPressed) {
1508
- x.stopPropagation();
1508
+ S.stopPropagation();
1509
1509
  return;
1510
1510
  }
1511
- let F = Bl(x.nativeEvent, v.activePointerId), T = !0;
1512
- F && yt(F, x.currentTarget) && v.pointerType != null ? (D(Ye(v.target, x), v.pointerType), T = $(Ye(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (T = $(Ye(v.target, x), v.pointerType, !1)), T && x.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !c && on(v.target), C();
1513
- }, B.onTouchCancel = (x) => {
1514
- x.currentTarget.contains(x.target) && (x.stopPropagation(), v.isPressed && P(Ye(v.target, x)));
1511
+ let F = Bl(S.nativeEvent, v.activePointerId), k = !0;
1512
+ F && yt(F, S.currentTarget) && v.pointerType != null ? (T(Ye(v.target, S), v.pointerType), k = $(Ye(v.target, S), v.pointerType)) : v.isOverTarget && v.pointerType != null && (k = $(Ye(v.target, S), v.pointerType, !1)), k && S.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !c && on(v.target), C();
1513
+ }, B.onTouchCancel = (S) => {
1514
+ S.currentTarget.contains(S.target) && (S.stopPropagation(), v.isPressed && w(Ye(v.target, S)));
1515
1515
  };
1516
- let I = (x) => {
1517
- v.isPressed && x.target.contains(v.target) && P({
1516
+ let N = (S) => {
1517
+ v.isPressed && S.target.contains(v.target) && w({
1518
1518
  currentTarget: v.target,
1519
1519
  shiftKey: !1,
1520
1520
  ctrlKey: !1,
@@ -1522,8 +1522,8 @@ function ze(t) {
1522
1522
  altKey: !1
1523
1523
  });
1524
1524
  };
1525
- B.onDragStart = (x) => {
1526
- x.currentTarget.contains(x.target) && P(x);
1525
+ B.onDragStart = (S) => {
1526
+ S.currentTarget.contains(S.target) && w(S);
1527
1527
  };
1528
1528
  }
1529
1529
  return B;
@@ -1533,11 +1533,11 @@ function ze(t) {
1533
1533
  u,
1534
1534
  C,
1535
1535
  c,
1536
+ w,
1536
1537
  P,
1537
- k,
1538
1538
  $,
1539
- S,
1540
- D
1539
+ x,
1540
+ T
1541
1541
  ]);
1542
1542
  return L(() => () => {
1543
1543
  var v;
@@ -1546,7 +1546,7 @@ function ze(t) {
1546
1546
  c
1547
1547
  ]), {
1548
1548
  isPressed: a || p,
1549
- pressProps: H(f, R)
1549
+ pressProps: W(f, R)
1550
1550
  };
1551
1551
  }
1552
1552
  function jr(t) {
@@ -1635,7 +1635,7 @@ function Ki(t, e) {
1635
1635
  const Td = /* @__PURE__ */ A.forwardRef(({ children: t, ...e }, n) => {
1636
1636
  let r = M(!1), l = Y(Vt);
1637
1637
  n = Dn(n || (l == null ? void 0 : l.ref));
1638
- let i = H(l || {}, {
1638
+ let i = W(l || {}, {
1639
1639
  ...e,
1640
1640
  ref: n,
1641
1641
  register() {
@@ -1649,7 +1649,7 @@ const Td = /* @__PURE__ */ A.forwardRef(({ children: t, ...e }, n) => {
1649
1649
  }, t);
1650
1650
  });
1651
1651
  function Ad({ children: t }) {
1652
- let e = V(() => ({
1652
+ let e = H(() => ({
1653
1653
  register: () => {
1654
1654
  }
1655
1655
  }), []);
@@ -1687,7 +1687,7 @@ function Mi(t) {
1687
1687
  r.observer && (r.observer.disconnect(), r.observer = null);
1688
1688
  };
1689
1689
  }, []);
1690
- let n = oe((r) => {
1690
+ let n = ae((r) => {
1691
1691
  t == null || t(r);
1692
1692
  });
1693
1693
  return X((r) => {
@@ -1895,7 +1895,7 @@ function kt(t) {
1895
1895
  target: null
1896
1896
  }).current;
1897
1897
  L(Nd, []);
1898
- let { hoverProps: u, triggerHoverEnd: s } = V(() => {
1898
+ let { hoverProps: u, triggerHoverEnd: s } = H(() => {
1899
1899
  let c = (p, m) => {
1900
1900
  if (a.pointerType = m, l || m === "touch" || a.isHovered || !p.currentTarget.contains(p.target)) return;
1901
1901
  a.isHovered = !0;
@@ -1951,9 +1951,9 @@ function Oi(t) {
1951
1951
  let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: l } = t, i = M({
1952
1952
  isPointerDown: !1,
1953
1953
  ignoreEmulatedMouseEvents: !1
1954
- }), o = oe((u) => {
1954
+ }), o = ae((u) => {
1955
1955
  n && sn(u, e) && (l && l(u), i.current.isPointerDown = !0);
1956
- }), a = oe((u) => {
1956
+ }), a = ae((u) => {
1957
1957
  n && n(u);
1958
1958
  });
1959
1959
  L(() => {
@@ -2062,10 +2062,10 @@ function ji(t) {
2062
2062
  }
2063
2063
  }), d = kn(l && !e ? o : void 0);
2064
2064
  return {
2065
- longPressProps: H(c, d)
2065
+ longPressProps: W(c, d)
2066
2066
  };
2067
2067
  }
2068
- function ve(t) {
2068
+ function he(t) {
2069
2069
  const e = ne(t);
2070
2070
  if (bn() === "virtual") {
2071
2071
  let n = e.activeElement;
@@ -2095,23 +2095,23 @@ function Vi(t, e) {
2095
2095
  const Fl = /* @__PURE__ */ A.createContext(null), gr = "react-aria-focus-scope-restore";
2096
2096
  let te = null;
2097
2097
  function Kn(t) {
2098
- let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = M(null), o = M(null), a = M([]), { parentNode: u } = Y(Fl) || {}, s = V(() => new $r({
2098
+ let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = M(null), o = M(null), a = M([]), { parentNode: u } = Y(Fl) || {}, s = H(() => new $r({
2099
2099
  scopeRef: a
2100
2100
  }), [
2101
2101
  a
2102
2102
  ]);
2103
2103
  J(() => {
2104
- let f = u || se.root;
2105
- if (se.getTreeNode(f.scopeRef) && te && !$n(te, f.scopeRef)) {
2106
- let p = se.getTreeNode(te);
2104
+ let f = u || ce.root;
2105
+ if (ce.getTreeNode(f.scopeRef) && te && !$n(te, f.scopeRef)) {
2106
+ let p = ce.getTreeNode(te);
2107
2107
  p && (f = p);
2108
2108
  }
2109
- f.addChild(s), se.addNode(s);
2109
+ f.addChild(s), ce.addNode(s);
2110
2110
  }, [
2111
2111
  s,
2112
2112
  u
2113
2113
  ]), J(() => {
2114
- let f = se.getTreeNode(a);
2114
+ let f = ce.getTreeNode(a);
2115
2115
  f && (f.contain = !!n);
2116
2116
  }, [
2117
2117
  n
@@ -2128,20 +2128,20 @@ function Kn(t) {
2128
2128
  ]), Yd(a, r, n), Wd(a, n), Xd(a, r, n), Gd(a, l), L(() => {
2129
2129
  const f = ne(a.current ? a.current[0] : void 0).activeElement;
2130
2130
  let p = null;
2131
- if (de(f, a.current)) {
2132
- for (let m of se.traverse()) m.scopeRef && de(f, m.scopeRef.current) && (p = m);
2133
- p === se.getTreeNode(a) && (te = p.scopeRef);
2131
+ if (fe(f, a.current)) {
2132
+ for (let m of ce.traverse()) m.scopeRef && fe(f, m.scopeRef.current) && (p = m);
2133
+ p === ce.getTreeNode(a) && (te = p.scopeRef);
2134
2134
  }
2135
2135
  }, [
2136
2136
  a
2137
2137
  ]), J(() => () => {
2138
2138
  var f, p, m;
2139
- let y = (m = (p = se.getTreeNode(a)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && m !== void 0 ? m : null;
2140
- (a === te || $n(a, te)) && (!y || se.getTreeNode(y)) && (te = y), se.removeTreeNode(a);
2139
+ let y = (m = (p = ce.getTreeNode(a)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && m !== void 0 ? m : null;
2140
+ (a === te || $n(a, te)) && (!y || ce.getTreeNode(y)) && (te = y), ce.removeTreeNode(a);
2141
2141
  }, [
2142
2142
  a
2143
2143
  ]);
2144
- let c = V(() => jd(a), []), d = V(() => ({
2144
+ let c = H(() => jd(a), []), d = H(() => ({
2145
2145
  focusManager: c,
2146
2146
  parentNode: s
2147
2147
  }), [
@@ -2167,7 +2167,7 @@ function jd(t) {
2167
2167
  tabbable: l,
2168
2168
  accept: o
2169
2169
  }, n);
2170
- c.currentNode = de(a, n) ? a : u;
2170
+ c.currentNode = fe(a, n) ? a : u;
2171
2171
  let d = c.nextNode();
2172
2172
  return !d && i && (c.currentNode = u, d = c.nextNode()), d && Oe(d, !0), d;
2173
2173
  },
@@ -2176,7 +2176,7 @@ function jd(t) {
2176
2176
  tabbable: l,
2177
2177
  accept: o
2178
2178
  }, n);
2179
- c.currentNode = de(a, n) ? a : u;
2179
+ c.currentNode = fe(a, n) ? a : u;
2180
2180
  let d = c.previousNode();
2181
2181
  return !d && i && (c.currentNode = u, d = c.previousNode()), d && Oe(d, !0), d;
2182
2182
  },
@@ -2221,7 +2221,7 @@ function at(t) {
2221
2221
  return t[0].parentElement;
2222
2222
  }
2223
2223
  function Lt(t) {
2224
- let e = se.getTreeNode(te);
2224
+ let e = ce.getTreeNode(te);
2225
2225
  for (; e && e.scopeRef !== t; ) {
2226
2226
  if (e.contain) return !1;
2227
2227
  e = e.parent;
@@ -2240,7 +2240,7 @@ function Wd(t, e) {
2240
2240
  let o = (s) => {
2241
2241
  if (s.key !== "Tab" || s.altKey || s.ctrlKey || s.metaKey || !Lt(t) || s.isComposing) return;
2242
2242
  let c = i.activeElement, d = t.current;
2243
- if (!d || !de(c, d)) return;
2243
+ if (!d || !fe(c, d)) return;
2244
2244
  let f = at(d), p = $e(f, {
2245
2245
  tabbable: !0
2246
2246
  }, d);
@@ -2249,7 +2249,7 @@ function Wd(t, e) {
2249
2249
  let m = s.shiftKey ? p.previousNode() : p.nextNode();
2250
2250
  m || (p.currentNode = s.shiftKey ? d[d.length - 1].nextElementSibling : d[0].previousElementSibling, m = s.shiftKey ? p.previousNode() : p.nextNode()), s.preventDefault(), m && Oe(m, !0);
2251
2251
  }, a = (s) => {
2252
- (!te || $n(te, t)) && de(s.target, t.current) ? (te = t, n.current = s.target) : Lt(t) && !yn(s.target, t) ? n.current ? n.current.focus() : te && te.current && yr(te.current) : Lt(t) && (n.current = s.target);
2252
+ (!te || $n(te, t)) && fe(s.target, t.current) ? (te = t, n.current = s.target) : Lt(t) && !yn(s.target, t) ? n.current ? n.current.focus() : te && te.current && yr(te.current) : Lt(t) && (n.current = s.target);
2253
2253
  }, u = (s) => {
2254
2254
  r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2255
2255
  if (i.activeElement && Lt(t) && !yn(i.activeElement, t))
@@ -2274,13 +2274,13 @@ function Wd(t, e) {
2274
2274
  function Hi(t) {
2275
2275
  return yn(t);
2276
2276
  }
2277
- function de(t, e) {
2277
+ function fe(t, e) {
2278
2278
  return !t || !e ? !1 : e.some((n) => n.contains(t));
2279
2279
  }
2280
2280
  function yn(t, e = null) {
2281
2281
  if (t instanceof Element && t.closest("[data-react-aria-top-layer]")) return !0;
2282
- for (let { scopeRef: n } of se.traverse(se.getTreeNode(e)))
2283
- if (n && de(t, n.current)) return !0;
2282
+ for (let { scopeRef: n } of ce.traverse(ce.getTreeNode(e)))
2283
+ if (n && fe(t, n.current)) return !0;
2284
2284
  return !1;
2285
2285
  }
2286
2286
  function Ud(t) {
@@ -2288,7 +2288,7 @@ function Ud(t) {
2288
2288
  }
2289
2289
  function $n(t, e) {
2290
2290
  var n;
2291
- let r = (n = se.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
2291
+ let r = (n = ce.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
2292
2292
  for (; r; ) {
2293
2293
  if (r.scopeRef === t) return !0;
2294
2294
  r = r.parent;
@@ -2297,7 +2297,7 @@ function $n(t, e) {
2297
2297
  }
2298
2298
  function Oe(t, e = !1) {
2299
2299
  if (t != null && !e) try {
2300
- ve(t);
2300
+ he(t);
2301
2301
  } catch {
2302
2302
  }
2303
2303
  else if (t != null) try {
@@ -2324,7 +2324,7 @@ function Gd(t, e) {
2324
2324
  if (n.current) {
2325
2325
  te = t;
2326
2326
  const r = ne(t.current ? t.current[0] : void 0);
2327
- !de(r.activeElement, te.current) && t.current && yr(t.current);
2327
+ !fe(r.activeElement, te.current) && t.current && yr(t.current);
2328
2328
  }
2329
2329
  n.current = !1;
2330
2330
  }, [
@@ -2338,7 +2338,7 @@ function Yd(t, e, n) {
2338
2338
  const l = ne(r ? r[0] : void 0);
2339
2339
  let i = (o) => {
2340
2340
  let a = o.target;
2341
- de(a, t.current) ? te = t : Hi(a) || (te = null);
2341
+ fe(a, t.current) ? te = t : Hi(a) || (te = null);
2342
2342
  };
2343
2343
  return l.addEventListener("focusin", i, !1), r == null || r.forEach((o) => o.addEventListener("focusin", i, !1)), () => {
2344
2344
  l.removeEventListener("focusin", i, !1), r == null || r.forEach((o) => o.removeEventListener("focusin", i, !1));
@@ -2350,7 +2350,7 @@ function Yd(t, e, n) {
2350
2350
  ]);
2351
2351
  }
2352
2352
  function qd(t) {
2353
- let e = se.getTreeNode(te);
2353
+ let e = ce.getTreeNode(te);
2354
2354
  for (; e && e.scopeRef !== t; ) {
2355
2355
  if (e.nodeToRestore) return !1;
2356
2356
  e = e.parent;
@@ -2364,7 +2364,7 @@ function Xd(t, e, n) {
2364
2364
  const i = ne(l ? l[0] : void 0);
2365
2365
  if (!e || n) return;
2366
2366
  let o = () => {
2367
- (!te || $n(te, t)) && de(i.activeElement, t.current) && (te = t);
2367
+ (!te || $n(te, t)) && fe(i.activeElement, t.current) && (te = t);
2368
2368
  };
2369
2369
  return i.addEventListener("focusin", o, !1), l == null || l.forEach((a) => a.addEventListener("focusin", o, !1)), () => {
2370
2370
  i.removeEventListener("focusin", o, !1), l == null || l.forEach((a) => a.removeEventListener("focusin", o, !1));
@@ -2378,19 +2378,19 @@ function Xd(t, e, n) {
2378
2378
  let i = (o) => {
2379
2379
  if (o.key !== "Tab" || o.altKey || o.ctrlKey || o.metaKey || !Lt(t) || o.isComposing) return;
2380
2380
  let a = l.activeElement;
2381
- if (!de(a, t.current)) return;
2382
- let u = se.getTreeNode(t);
2381
+ if (!fe(a, t.current)) return;
2382
+ let u = ce.getTreeNode(t);
2383
2383
  if (!u) return;
2384
2384
  let s = u.nodeToRestore, c = $e(l.body, {
2385
2385
  tabbable: !0
2386
2386
  });
2387
2387
  c.currentNode = a;
2388
2388
  let d = o.shiftKey ? c.previousNode() : c.nextNode();
2389
- if ((!s || !l.body.contains(s) || s === l.body) && (s = void 0, u.nodeToRestore = void 0), (!d || !de(d, t.current)) && s) {
2389
+ if ((!s || !l.body.contains(s) || s === l.body) && (s = void 0, u.nodeToRestore = void 0), (!d || !fe(d, t.current)) && s) {
2390
2390
  c.currentNode = s;
2391
2391
  do
2392
2392
  d = o.shiftKey ? c.previousNode() : c.nextNode();
2393
- while (de(d, t.current));
2393
+ while (fe(d, t.current));
2394
2394
  o.preventDefault(), o.stopPropagation(), d ? Oe(d, !0) : Hi(s) ? Oe(s, !0) : a.blur();
2395
2395
  }
2396
2396
  };
@@ -2404,16 +2404,16 @@ function Xd(t, e, n) {
2404
2404
  ]), J(() => {
2405
2405
  const l = ne(t.current ? t.current[0] : void 0);
2406
2406
  if (!e) return;
2407
- let i = se.getTreeNode(t);
2407
+ let i = ce.getTreeNode(t);
2408
2408
  if (i) {
2409
2409
  var o;
2410
2410
  return i.nodeToRestore = (o = r.current) !== null && o !== void 0 ? o : void 0, () => {
2411
- let a = se.getTreeNode(t);
2411
+ let a = ce.getTreeNode(t);
2412
2412
  if (!a) return;
2413
2413
  let u = a.nodeToRestore;
2414
2414
  if (e && u && // eslint-disable-next-line react-hooks/exhaustive-deps
2415
- (de(l.activeElement, t.current) || l.activeElement === l.body && qd(t))) {
2416
- let s = se.clone();
2415
+ (fe(l.activeElement, t.current) || l.activeElement === l.body && qd(t))) {
2416
+ let s = ce.clone();
2417
2417
  requestAnimationFrame(() => {
2418
2418
  if (l.activeElement === l.body) {
2419
2419
  let c = s.getTreeNode(t);
@@ -2425,7 +2425,7 @@ function Xd(t, e, n) {
2425
2425
  c = c.parent;
2426
2426
  }
2427
2427
  for (c = s.getTreeNode(t); c; ) {
2428
- if (c.scopeRef && c.scopeRef.current && se.getTreeNode(c.scopeRef)) {
2428
+ if (c.scopeRef && c.scopeRef.current && ce.getTreeNode(c.scopeRef)) {
2429
2429
  let d = Wi(c.scopeRef.current, !0);
2430
2430
  _l(d);
2431
2431
  return;
@@ -2452,7 +2452,7 @@ function $e(t, e, n) {
2452
2452
  let r = e != null && e.tabbable ? Hd : Vd, l = ne(t).createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
2453
2453
  acceptNode(i) {
2454
2454
  var o;
2455
- return !(e == null || (o = e.from) === null || o === void 0) && o.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) && Vi(i) && (!n || de(i, n)) && (!(e != null && e.accept) || e.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
2455
+ return !(e == null || (o = e.from) === null || o === void 0) && o.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) && Vi(i) && (!n || fe(i, n)) && (!(e != null && e.accept) || e.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
2456
2456
  }
2457
2457
  });
2458
2458
  return e != null && e.from && (l.currentNode = e.from), l;
@@ -2480,7 +2480,7 @@ class Hr {
2480
2480
  let n = this.fastMap.get(e);
2481
2481
  if (!n) return;
2482
2482
  let r = n.parent;
2483
- for (let i of this.traverse()) i !== n && n.nodeToRestore && i.nodeToRestore && n.scopeRef && n.scopeRef.current && de(i.nodeToRestore, n.scopeRef.current) && (i.nodeToRestore = n.nodeToRestore);
2483
+ for (let i of this.traverse()) i !== n && n.nodeToRestore && i.nodeToRestore && n.scopeRef && n.scopeRef.current && fe(i.nodeToRestore, n.scopeRef.current) && (i.nodeToRestore = n.nodeToRestore);
2484
2484
  let l = n.children;
2485
2485
  r && (r.removeChild(n), l.size > 0 && l.forEach((i) => r && r.addChild(i))), this.fastMap.delete(n.scopeRef);
2486
2486
  }
@@ -2512,7 +2512,7 @@ class $r {
2512
2512
  this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
2513
2513
  }
2514
2514
  }
2515
- let se = new Hr();
2515
+ let ce = new Hr();
2516
2516
  function Xt(t = {}) {
2517
2517
  let { autoFocus: e = !1, isTextInput: n, within: r } = t, l = M({
2518
2518
  isFocused: !1,
@@ -2558,13 +2558,13 @@ function Jd(t, e) {
2558
2558
  }
2559
2559
  let Qd = /* @__PURE__ */ A.forwardRef(Jd);
2560
2560
  function Tt(t, e) {
2561
- let { focusProps: n } = An(t), { keyboardProps: r } = zi(t), l = H(n, r), i = Zd(e), o = t.isDisabled ? {} : i, a = M(t.autoFocus);
2561
+ let { focusProps: n } = An(t), { keyboardProps: r } = zi(t), l = W(n, r), i = Zd(e), o = t.isDisabled ? {} : i, a = M(t.autoFocus);
2562
2562
  return L(() => {
2563
- a.current && e.current && ve(e.current), a.current = !1;
2563
+ a.current && e.current && he(e.current), a.current = !1;
2564
2564
  }, [
2565
2565
  e
2566
2566
  ]), {
2567
- focusableProps: H({
2567
+ focusableProps: W({
2568
2568
  ...l,
2569
2569
  tabIndex: t.excludeFromTabOrder && !t.isDisabled ? -1 : void 0
2570
2570
  }, o)
@@ -2756,7 +2756,7 @@ function vf(t, e) {
2756
2756
  }
2757
2757
  function ft(t, e) {
2758
2758
  let { locale: n } = He(), r = vf(t, e);
2759
- return V(() => new ff(n, r), [
2759
+ return H(() => new ff(n, r), [
2760
2760
  n,
2761
2761
  r
2762
2762
  ]);
@@ -2799,7 +2799,7 @@ function Fn(t, e) {
2799
2799
  "aria-disabled": !r || n === "input" ? void 0 : r,
2800
2800
  rel: n === "a" ? m : void 0
2801
2801
  };
2802
- let { pressProps: C, isPressed: S } = ze({
2802
+ let { pressProps: C, isPressed: x } = ze({
2803
2803
  onPressStart: i,
2804
2804
  onPressEnd: o,
2805
2805
  onPressChange: u,
@@ -2810,18 +2810,18 @@ function Fn(t, e) {
2810
2810
  ref: e
2811
2811
  }), { focusableProps: $ } = Tt(t, e);
2812
2812
  c && ($.tabIndex = r ? -1 : $.tabIndex);
2813
- let D = H($, C, fe(t, {
2813
+ let T = W($, C, pe(t, {
2814
2814
  labelable: !0
2815
2815
  }));
2816
2816
  return {
2817
- isPressed: S,
2818
- buttonProps: H(g, D, {
2817
+ isPressed: x,
2818
+ buttonProps: W(g, T, {
2819
2819
  "aria-haspopup": t["aria-haspopup"],
2820
2820
  "aria-expanded": t["aria-expanded"],
2821
2821
  "aria-controls": t["aria-controls"],
2822
2822
  "aria-pressed": t["aria-pressed"],
2823
- onClick: (P) => {
2824
- d && (d(P), console.warn("onClick is deprecated, please use onPress"));
2823
+ onClick: (w) => {
2824
+ d && (d(w), console.warn("onClick is deprecated, please use onPress"));
2825
2825
  }
2826
2826
  })
2827
2827
  };
@@ -2879,9 +2879,9 @@ function Wr(t, e, n) {
2879
2879
  n.current.setCustomValidity(u), n.current.hasAttribute("title") || (n.current.title = ""), e.realtimeValidation.isInvalid || e.updateValidation(bf(n.current));
2880
2880
  }
2881
2881
  });
2882
- let i = oe(() => {
2882
+ let i = ae(() => {
2883
2883
  e.resetValidation();
2884
- }), o = oe((u) => {
2884
+ }), o = ae((u) => {
2885
2885
  var s;
2886
2886
  e.displayValidation.isInvalid || e.commitValidation();
2887
2887
  let c = n == null || (s = n.current) === null || s === void 0 ? void 0 : s.form;
@@ -2890,7 +2890,7 @@ function Wr(t, e, n) {
2890
2890
  l ? l() : (d = n.current) === null || d === void 0 || d.focus(), Ni("keyboard");
2891
2891
  }
2892
2892
  u.preventDefault();
2893
- }), a = oe(() => {
2893
+ }), a = ae(() => {
2894
2894
  e.commitValidation();
2895
2895
  });
2896
2896
  L(() => {
@@ -2981,34 +2981,34 @@ function $f(t) {
2981
2981
  isInvalid: e,
2982
2982
  validationErrors: [],
2983
2983
  validationDetails: Xi
2984
- } : null, s = V(() => jl(xf(o, l)), [
2984
+ } : null, s = H(() => jl(xf(o, l)), [
2985
2985
  o,
2986
2986
  l
2987
2987
  ]);
2988
2988
  i != null && i.validationDetails.valid && (i = null);
2989
- let c = Y(yf), d = V(() => r ? Array.isArray(r) ? r.flatMap((E) => Er(c[E])) : Er(c[r]) : [], [
2989
+ let c = Y(yf), d = H(() => r ? Array.isArray(r) ? r.flatMap((E) => Er(c[E])) : Er(c[r]) : [], [
2990
2990
  c,
2991
2991
  r
2992
2992
  ]), [f, p] = z(c), [m, y] = z(!1);
2993
2993
  c !== f && (p(c), y(!1));
2994
- let g = V(() => jl(m ? [] : d), [
2994
+ let g = H(() => jl(m ? [] : d), [
2995
2995
  m,
2996
2996
  d
2997
- ]), C = M(Ft), [S, $] = z(Ft), D = M(Ft), P = () => {
2998
- if (!k) return;
2997
+ ]), C = M(Ft), [x, $] = z(Ft), T = M(Ft), w = () => {
2998
+ if (!P) return;
2999
2999
  R(!1);
3000
3000
  let E = s || i || C.current;
3001
- er(E, D.current) || (D.current = E, $(E));
3002
- }, [k, R] = z(!1);
3003
- return L(P), {
3001
+ er(E, T.current) || (T.current = E, $(E));
3002
+ }, [P, R] = z(!1);
3003
+ return L(w), {
3004
3004
  realtimeValidation: u || g || s || i || Ft,
3005
- displayValidation: a === "native" ? u || g || S : u || g || s || i || S,
3005
+ displayValidation: a === "native" ? u || g || x : u || g || s || i || x,
3006
3006
  updateValidation(E) {
3007
- a === "aria" && !er(S, E) ? $(E) : C.current = E;
3007
+ a === "aria" && !er(x, E) ? $(E) : C.current = E;
3008
3008
  },
3009
3009
  resetValidation() {
3010
3010
  let E = Ft;
3011
- er(E, D.current) || (D.current = E, $(E)), a === "native" && R(!1), y(!0);
3011
+ er(E, T.current) || (T.current = E, $(E)), a === "native" && R(!1), y(!0);
3012
3012
  },
3013
3013
  commitValidation() {
3014
3014
  a === "native" && R(!0), y(!0);
@@ -3038,25 +3038,25 @@ function er(t, e) {
3038
3038
  return t === e ? !0 : t && e && t.isInvalid === e.isInvalid && t.validationErrors.length === e.validationErrors.length && t.validationErrors.every((n, r) => n === e.validationErrors[r]) && Object.entries(t.validationDetails).every(([n, r]) => e.validationDetails[n] === r);
3039
3039
  }
3040
3040
  function Ef(t, e, n) {
3041
- let { isDisabled: r = !1, isReadOnly: l = !1, value: i, name: o, children: a, "aria-label": u, "aria-labelledby": s, validationState: c = "valid", isInvalid: d } = t, f = (k) => {
3042
- k.stopPropagation(), e.setSelected(k.target.checked);
3041
+ let { isDisabled: r = !1, isReadOnly: l = !1, value: i, name: o, children: a, "aria-label": u, "aria-labelledby": s, validationState: c = "valid", isInvalid: d } = t, f = (P) => {
3042
+ P.stopPropagation(), e.setSelected(P.target.checked);
3043
3043
  }, p = a != null, m = u != null || s != null;
3044
3044
  !p && !m && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
3045
3045
  let { pressProps: y, isPressed: g } = ze({
3046
3046
  isDisabled: r
3047
- }), { pressProps: C, isPressed: S } = ze({
3047
+ }), { pressProps: C, isPressed: x } = ze({
3048
3048
  isDisabled: r || l,
3049
3049
  onPress() {
3050
3050
  e.toggle();
3051
3051
  }
3052
- }), { focusableProps: $ } = Tt(t, n), D = H(y, $), P = fe(t, {
3052
+ }), { focusableProps: $ } = Tt(t, n), T = W(y, $), w = pe(t, {
3053
3053
  labelable: !0
3054
3054
  });
3055
3055
  return Tn(n, e.isSelected, e.setSelected), {
3056
- labelProps: H(C, {
3057
- onClick: (k) => k.preventDefault()
3056
+ labelProps: W(C, {
3057
+ onClick: (P) => P.preventDefault()
3058
3058
  }),
3059
- inputProps: H(P, {
3059
+ inputProps: W(w, {
3060
3060
  "aria-invalid": d || c === "invalid" || void 0,
3061
3061
  "aria-errormessage": t["aria-errormessage"],
3062
3062
  "aria-controls": t["aria-controls"],
@@ -3068,10 +3068,10 @@ function Ef(t, e, n) {
3068
3068
  },
3069
3069
  name: o,
3070
3070
  type: "checkbox",
3071
- ...D
3071
+ ...T
3072
3072
  }),
3073
3073
  isSelected: e.isSelected,
3074
- isPressed: g || S,
3074
+ isPressed: g || x,
3075
3075
  isDisabled: r,
3076
3076
  isReadOnly: l,
3077
3077
  isInvalid: d || c === "invalid"
@@ -3079,8 +3079,8 @@ function Ef(t, e, n) {
3079
3079
  }
3080
3080
  function Zi(t) {
3081
3081
  let { id: e, label: n, "aria-labelledby": r, "aria-label": l, labelElementType: i = "label" } = t;
3082
- e = he(e);
3083
- let o = he(), a = {};
3082
+ e = me(e);
3083
+ let o = me(), a = {};
3084
3084
  n ? (r = r ? `${o} ${r}` : o, a = {
3085
3085
  id: o,
3086
3086
  htmlFor: i === "label" ? e : void 0
@@ -3107,7 +3107,7 @@ function Gr(t) {
3107
3107
  r,
3108
3108
  l
3109
3109
  ]);
3110
- return o = H(o, {
3110
+ return o = W(o, {
3111
3111
  "aria-describedby": [
3112
3112
  a,
3113
3113
  // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
@@ -3155,7 +3155,7 @@ function Ji(t = {}) {
3155
3155
  let { style: e, isFocusable: n } = t, [r, l] = z(!1), { focusWithinProps: i } = qt({
3156
3156
  isDisabled: !n,
3157
3157
  onFocusWithinChange: (a) => l(a)
3158
- }), o = V(() => r ? e : e ? {
3158
+ }), o = H(() => r ? e : e ? {
3159
3159
  ...Vl,
3160
3160
  ...e
3161
3161
  } : Vl, [
@@ -3170,28 +3170,28 @@ function Ji(t = {}) {
3170
3170
  }
3171
3171
  function Yr(t) {
3172
3172
  let { children: e, elementType: n = "div", isFocusable: r, style: l, ...i } = t, { visuallyHiddenProps: o } = Ji(t);
3173
- return /* @__PURE__ */ A.createElement(n, H(i, o), e);
3173
+ return /* @__PURE__ */ A.createElement(n, W(i, o), e);
3174
3174
  }
3175
3175
  function Qi(t, e) {
3176
3176
  let { inputElementType: n = "input", isDisabled: r = !1, isRequired: l = !1, isReadOnly: i = !1, type: o = "text", validationBehavior: a = "aria" } = t, [u, s] = rt(t.value, t.defaultValue || "", t.onChange), { focusableProps: c } = Tt(t, e), d = Ur({
3177
3177
  ...t,
3178
3178
  value: u
3179
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: y, fieldProps: g, descriptionProps: C, errorMessageProps: S } = Gr({
3179
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: y, fieldProps: g, descriptionProps: C, errorMessageProps: x } = Gr({
3180
3180
  ...t,
3181
3181
  isInvalid: f,
3182
3182
  errorMessage: t.errorMessage || p
3183
- }), $ = fe(t, {
3183
+ }), $ = pe(t, {
3184
3184
  labelable: !0
3185
3185
  });
3186
- const D = {
3186
+ const T = {
3187
3187
  type: o,
3188
3188
  pattern: t.pattern
3189
3189
  };
3190
3190
  return Tn(e, u, s), Wr(t, d, e), L(() => {
3191
3191
  if (e.current instanceof De(e.current).HTMLTextAreaElement) {
3192
- let P = e.current;
3193
- Object.defineProperty(P, "defaultValue", {
3194
- get: () => P.value,
3192
+ let w = e.current;
3193
+ Object.defineProperty(w, "defaultValue", {
3194
+ get: () => w.value,
3195
3195
  set: () => {
3196
3196
  },
3197
3197
  configurable: !0
@@ -3201,7 +3201,7 @@ function Qi(t, e) {
3201
3201
  e
3202
3202
  ]), {
3203
3203
  labelProps: y,
3204
- inputProps: H($, n === "input" ? D : void 0, {
3204
+ inputProps: W($, n === "input" ? T : void 0, {
3205
3205
  disabled: r,
3206
3206
  readOnly: i,
3207
3207
  required: l && a === "native",
@@ -3212,7 +3212,7 @@ function Qi(t, e) {
3212
3212
  "aria-autocomplete": t["aria-autocomplete"],
3213
3213
  "aria-haspopup": t["aria-haspopup"],
3214
3214
  value: u,
3215
- onChange: (P) => s(P.target.value),
3215
+ onChange: (w) => s(w.target.value),
3216
3216
  autoComplete: t.autoComplete,
3217
3217
  autoCapitalize: t.autoCapitalize,
3218
3218
  maxLength: t.maxLength,
@@ -3237,7 +3237,7 @@ function Qi(t, e) {
3237
3237
  ...g
3238
3238
  }),
3239
3239
  descriptionProps: C,
3240
- errorMessageProps: S,
3240
+ errorMessageProps: x,
3241
3241
  isInvalid: f,
3242
3242
  validationErrors: p,
3243
3243
  validationDetails: m
@@ -3263,19 +3263,19 @@ const Me = {
3263
3263
  width: "totalWidth",
3264
3264
  height: "totalHeight"
3265
3265
  }, cn = {};
3266
- let be = typeof document < "u" && window.visualViewport;
3266
+ let ge = typeof document < "u" && window.visualViewport;
3267
3267
  function Hl(t) {
3268
- let e = 0, n = 0, r = 0, l = 0, i = 0, o = 0, a = {}, u = (be == null ? void 0 : be.scale) > 1;
3268
+ let e = 0, n = 0, r = 0, l = 0, i = 0, o = 0, a = {}, u = (ge == null ? void 0 : ge.scale) > 1;
3269
3269
  if (t.tagName === "BODY") {
3270
3270
  let d = document.documentElement;
3271
3271
  r = d.clientWidth, l = d.clientHeight;
3272
3272
  var s;
3273
- e = (s = be == null ? void 0 : be.width) !== null && s !== void 0 ? s : r;
3273
+ e = (s = ge == null ? void 0 : ge.width) !== null && s !== void 0 ? s : r;
3274
3274
  var c;
3275
- n = (c = be == null ? void 0 : be.height) !== null && c !== void 0 ? c : l, a.top = d.scrollTop || t.scrollTop, a.left = d.scrollLeft || t.scrollLeft, be && (i = be.offsetTop, o = be.offsetLeft);
3275
+ n = (c = ge == null ? void 0 : ge.height) !== null && c !== void 0 ? c : l, a.top = d.scrollTop || t.scrollTop, a.left = d.scrollLeft || t.scrollLeft, ge && (i = ge.offsetTop, o = ge.offsetLeft);
3276
3276
  } else
3277
3277
  ({ width: e, height: n, top: i, left: o } = Dt(t)), a.top = t.scrollTop, a.left = t.scrollLeft, r = e, l = n;
3278
- return Or() && (t.tagName === "BODY" || t.tagName === "HTML") && u && (a.top = 0, a.left = 0, i = be.pageTop, o = be.pageLeft), {
3278
+ return Or() && (t.tagName === "BODY" || t.tagName === "HTML") && u && (a.top = 0, a.left = 0, i = ge.pageTop, o = ge.pageLeft), {
3279
3279
  width: e,
3280
3280
  height: n,
3281
3281
  totalWidth: r,
@@ -3323,8 +3323,8 @@ function Ul(t) {
3323
3323
  function tr(t, e, n, r, l, i, o, a, u, s) {
3324
3324
  let { placement: c, crossPlacement: d, axis: f, crossAxis: p, size: m, crossSize: y } = r, g = {};
3325
3325
  g[p] = t[p], d === "center" ? g[p] += (t[y] - n[y]) / 2 : d !== p && (g[p] += t[y] - n[y]), g[p] += i;
3326
- const C = t[p] - n[y] + u + s, S = t[p] + t[y] - u - s;
3327
- if (g[p] = vr(g[p], C, S), c === f) {
3326
+ const C = t[p] - n[y] + u + s, x = t[p] + t[y] - u - s;
3327
+ if (g[p] = vr(g[p], C, x), c === f) {
3328
3328
  const $ = a ? o[m] : e[eo[m]];
3329
3329
  g[En[f]] = Math.floor($ - t[f] + l);
3330
3330
  } else g[f] = Math.floor(t[f] + t[m] + l);
@@ -3343,24 +3343,24 @@ function Gl(t, e, n, r, l, i) {
3343
3343
  return o === a ? Math.max(0, n[a] - t[a] - t.scroll[a] + e[a] - r[a] - r[En[a]] - l) : Math.max(0, t[u] + t[a] + t.scroll[a] - e[a] - n[a] - n[u] - r[a] - r[En[a]] - l);
3344
3344
  }
3345
3345
  function kf(t, e, n, r, l, i, o, a, u, s, c, d, f, p, m, y) {
3346
- let g = Ul(t), { size: C, crossAxis: S, crossSize: $, placement: D, crossPlacement: P } = g, k = tr(e, a, n, g, c, d, s, f, m, y), R = c, v = Gl(a, s, e, l, i + c, g);
3346
+ let g = Ul(t), { size: C, crossAxis: x, crossSize: $, placement: T, crossPlacement: w } = g, P = tr(e, a, n, g, c, d, s, f, m, y), R = c, v = Gl(a, s, e, l, i + c, g);
3347
3347
  if (o && r[C] > v) {
3348
- let xe = Ul(`${En[D]} ${P}`), Be = tr(e, a, n, xe, c, d, s, f, m, y);
3349
- Gl(a, s, e, l, i + c, xe) > v && (g = xe, k = Be, R = c);
3348
+ let xe = Ul(`${En[T]} ${w}`), Be = tr(e, a, n, xe, c, d, s, f, m, y);
3349
+ Gl(a, s, e, l, i + c, xe) > v && (g = xe, P = Be, R = c);
3350
3350
  }
3351
3351
  let B = "bottom";
3352
3352
  g.axis === "top" ? g.placement === "top" ? B = "top" : g.placement === "bottom" && (B = "bottom") : g.crossAxis === "top" && (g.crossPlacement === "top" ? B = "bottom" : g.crossPlacement === "bottom" && (B = "top"));
3353
- let E = Wl(S, k[S], n[$], a, u, i, s);
3354
- k[S] += E;
3355
- let w = Df(k, a, s, f, l, i, n.height, B);
3356
- p && p < w && (w = p), n.height = Math.min(n.height, w), k = tr(e, a, n, g, R, d, s, f, m, y), E = Wl(S, k[S], n[$], a, u, i, s), k[S] += E;
3357
- let I = {}, x = e[S] + 0.5 * e[$] - k[S] - l[Me[S]];
3358
- const F = m / 2 + y, T = Me[S] === "left" ? l.left + l.right : l.top + l.bottom, U = n[$] - T - m / 2 - y, N = e[S] + m / 2 - (k[S] + l[Me[S]]), ce = e[S] + e[$] - m / 2 - (k[S] + l[Me[S]]), ye = vr(x, N, ce);
3359
- return I[S] = vr(ye, F, U), {
3360
- position: k,
3361
- maxHeight: w,
3362
- arrowOffsetLeft: I.left,
3363
- arrowOffsetTop: I.top,
3353
+ let E = Wl(x, P[x], n[$], a, u, i, s);
3354
+ P[x] += E;
3355
+ let D = Df(P, a, s, f, l, i, n.height, B);
3356
+ p && p < D && (D = p), n.height = Math.min(n.height, D), P = tr(e, a, n, g, R, d, s, f, m, y), E = Wl(x, P[x], n[$], a, u, i, s), P[x] += E;
3357
+ let N = {}, S = e[x] + 0.5 * e[$] - P[x] - l[Me[x]];
3358
+ const F = m / 2 + y, k = Me[x] === "left" ? l.left + l.right : l.top + l.bottom, V = n[$] - k - m / 2 - y, I = e[x] + m / 2 - (P[x] + l[Me[x]]), re = e[x] + e[$] - m / 2 - (P[x] + l[Me[x]]), de = vr(S, I, re);
3359
+ return N[x] = vr(de, F, V), {
3360
+ position: P,
3361
+ maxHeight: D,
3362
+ arrowOffsetLeft: N.left,
3363
+ arrowOffsetTop: N.top,
3364
3364
  placement: g.placement
3365
3365
  };
3366
3366
  }
@@ -3372,10 +3372,10 @@ function Tf(t) {
3372
3372
  let { marginTop: v, marginLeft: B } = window.getComputedStyle(n);
3373
3373
  C.top += parseInt(v, 10) || 0, C.left += parseInt(B, 10) || 0;
3374
3374
  }
3375
- let S = Dt(r), $ = Pf(r);
3376
- S.width += $.left + $.right, S.height += $.top + $.bottom;
3377
- let D = wf(l), P = Hl(a), k = Hl(p), R = a.tagName === "BODY" ? Dt(p) : Yl(p, a);
3378
- return p.tagName === "HTML" && a.tagName === "BODY" && (k.scroll.top = 0, k.scroll.left = 0), kf(e, C, S, D, $, i, o, P, k, R, u, s, g, c, d, f);
3375
+ let x = Dt(r), $ = Pf(r);
3376
+ x.width += $.left + $.right, x.height += $.top + $.bottom;
3377
+ let T = wf(l), w = Hl(a), P = Hl(p), R = a.tagName === "BODY" ? Dt(p) : Yl(p, a);
3378
+ return p.tagName === "HTML" && a.tagName === "BODY" && (P.scroll.top = 0, P.scroll.left = 0), kf(e, C, x, T, $, i, o, w, P, R, u, s, g, c, d, f);
3379
3379
  }
3380
3380
  function Dt(t) {
3381
3381
  let { top: e, left: n, width: r, height: l } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: o, clientTop: a, clientLeft: u } = document.documentElement;
@@ -3435,9 +3435,9 @@ function Bf(t) {
3435
3435
  e
3436
3436
  ]);
3437
3437
  }
3438
- let ie = typeof document < "u" && window.visualViewport;
3438
+ let oe = typeof document < "u" && window.visualViewport;
3439
3439
  function no(t) {
3440
- let { direction: e } = He(), { arrowSize: n = 0, targetRef: r, overlayRef: l, scrollRef: i = l, placement: o = "bottom", containerPadding: a = 12, shouldFlip: u = !0, boundaryElement: s = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: d = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: m, maxHeight: y, arrowBoundaryOffset: g = 0 } = t, [C, S] = z({
3440
+ let { direction: e } = He(), { arrowSize: n = 0, targetRef: r, overlayRef: l, scrollRef: i = l, placement: o = "bottom", containerPadding: a = 12, shouldFlip: u = !0, boundaryElement: s = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: d = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: m, maxHeight: y, arrowBoundaryOffset: g = 0 } = t, [C, x] = z({
3441
3441
  position: {},
3442
3442
  arrowOffsetLeft: void 0,
3443
3443
  arrowOffsetTop: void 0,
@@ -3459,30 +3459,30 @@ function no(t) {
3459
3459
  y,
3460
3460
  g,
3461
3461
  n
3462
- ], D = M(ie == null ? void 0 : ie.scale);
3462
+ ], T = M(oe == null ? void 0 : oe.scale);
3463
3463
  L(() => {
3464
- p && (D.current = ie == null ? void 0 : ie.scale);
3464
+ p && (T.current = oe == null ? void 0 : oe.scale);
3465
3465
  }, [
3466
3466
  p
3467
3467
  ]);
3468
- let P = X(() => {
3469
- if (f === !1 || !p || !l.current || !r.current || !s || (ie == null ? void 0 : ie.scale) !== D.current) return;
3468
+ let w = X(() => {
3469
+ if (f === !1 || !p || !l.current || !r.current || !s || (oe == null ? void 0 : oe.scale) !== T.current) return;
3470
3470
  let B = null;
3471
3471
  if (i.current && i.current.contains(document.activeElement)) {
3472
- let F = document.activeElement.getBoundingClientRect(), T = i.current.getBoundingClientRect();
3472
+ let F = document.activeElement.getBoundingClientRect(), k = i.current.getBoundingClientRect();
3473
3473
  B = {
3474
3474
  type: "top",
3475
- offset: F.top - T.top
3476
- }, B.offset > T.height / 2 && (B.type = "bottom", B.offset = F.bottom - T.bottom);
3475
+ offset: F.top - k.top
3476
+ }, B.offset > k.height / 2 && (B.type = "bottom", B.offset = F.bottom - k.bottom);
3477
3477
  }
3478
3478
  let E = l.current;
3479
3479
  if (!y && l.current) {
3480
- var w;
3480
+ var D;
3481
3481
  E.style.top = "0px", E.style.bottom = "";
3482
- var I;
3483
- E.style.maxHeight = ((I = (w = window.visualViewport) === null || w === void 0 ? void 0 : w.height) !== null && I !== void 0 ? I : window.innerHeight) + "px";
3482
+ var N;
3483
+ E.style.maxHeight = ((N = (D = window.visualViewport) === null || D === void 0 ? void 0 : D.height) !== null && N !== void 0 ? N : window.innerHeight) + "px";
3484
3484
  }
3485
- let x = Tf({
3485
+ let S = Tf({
3486
3486
  placement: Mf(o, e),
3487
3487
  overlayNode: l.current,
3488
3488
  targetNode: r.current,
@@ -3496,39 +3496,39 @@ function no(t) {
3496
3496
  arrowSize: n,
3497
3497
  arrowBoundaryOffset: g
3498
3498
  });
3499
- if (E.style.top = "", E.style.bottom = "", E.style.left = "", E.style.right = "", Object.keys(x.position).forEach((F) => E.style[F] = x.position[F] + "px"), E.style.maxHeight = x.maxHeight != null ? x.maxHeight + "px" : void 0, B) {
3500
- let F = document.activeElement.getBoundingClientRect(), T = i.current.getBoundingClientRect(), U = F[B.type] - T[B.type];
3501
- i.current.scrollTop += U - B.offset;
3499
+ if (E.style.top = "", E.style.bottom = "", E.style.left = "", E.style.right = "", Object.keys(S.position).forEach((F) => E.style[F] = S.position[F] + "px"), E.style.maxHeight = S.maxHeight != null ? S.maxHeight + "px" : void 0, B) {
3500
+ let F = document.activeElement.getBoundingClientRect(), k = i.current.getBoundingClientRect(), V = F[B.type] - k[B.type];
3501
+ i.current.scrollTop += V - B.offset;
3502
3502
  }
3503
- S(x);
3503
+ x(S);
3504
3504
  }, $);
3505
- J(P, $), Kf(P), fr({
3505
+ J(w, $), Kf(w), fr({
3506
3506
  ref: l,
3507
- onResize: P
3507
+ onResize: w
3508
3508
  }), fr({
3509
3509
  ref: r,
3510
- onResize: P
3510
+ onResize: w
3511
3511
  });
3512
- let k = M(!1);
3512
+ let P = M(!1);
3513
3513
  J(() => {
3514
3514
  let B, E = () => {
3515
- k.current = !0, clearTimeout(B), B = setTimeout(() => {
3516
- k.current = !1;
3517
- }, 500), P();
3518
- }, w = () => {
3519
- k.current && E();
3515
+ P.current = !0, clearTimeout(B), B = setTimeout(() => {
3516
+ P.current = !1;
3517
+ }, 500), w();
3518
+ }, D = () => {
3519
+ P.current && E();
3520
3520
  };
3521
- return ie == null || ie.addEventListener("resize", E), ie == null || ie.addEventListener("scroll", w), () => {
3522
- ie == null || ie.removeEventListener("resize", E), ie == null || ie.removeEventListener("scroll", w);
3521
+ return oe == null || oe.addEventListener("resize", E), oe == null || oe.addEventListener("scroll", D), () => {
3522
+ oe == null || oe.removeEventListener("resize", E), oe == null || oe.removeEventListener("scroll", D);
3523
3523
  };
3524
3524
  }, [
3525
- P
3525
+ w
3526
3526
  ]);
3527
3527
  let R = X(() => {
3528
- k.current || m();
3528
+ P.current || m();
3529
3529
  }, [
3530
3530
  m,
3531
- k
3531
+ P
3532
3532
  ]);
3533
3533
  Bf({
3534
3534
  triggerRef: r,
@@ -3554,7 +3554,7 @@ function no(t) {
3554
3554
  top: C.arrowOffsetTop
3555
3555
  }
3556
3556
  },
3557
- updatePosition: P
3557
+ updatePosition: w
3558
3558
  };
3559
3559
  }
3560
3560
  function Kf(t) {
@@ -3616,7 +3616,7 @@ function ro(t, e, n) {
3616
3616
  });
3617
3617
  let i;
3618
3618
  r === "menu" ? i = !0 : r === "listbox" && (i = "listbox");
3619
- let o = he();
3619
+ let o = me();
3620
3620
  return {
3621
3621
  triggerProps: {
3622
3622
  "aria-haspopup": i,
@@ -3727,7 +3727,7 @@ function Zl(t) {
3727
3727
  }
3728
3728
  const Cr = /* @__PURE__ */ A.createContext(null);
3729
3729
  function Lf(t) {
3730
- let { children: e } = t, n = Y(Cr), [r, l] = z(0), i = V(() => ({
3730
+ let { children: e } = t, n = Y(Cr), [r, l] = z(0), i = H(() => ({
3731
3731
  parent: n,
3732
3732
  modalCount: r,
3733
3733
  addModal() {
@@ -4047,7 +4047,7 @@ function Gf(t, e) {
4047
4047
  e.isOpen,
4048
4048
  r
4049
4049
  ]), {
4050
- popoverProps: H(u, c),
4050
+ popoverProps: W(u, c),
4051
4051
  arrowProps: d,
4052
4052
  underlayProps: s,
4053
4053
  placement: f
@@ -4060,7 +4060,7 @@ function qf() {
4060
4060
  }
4061
4061
  const Oo = /* @__PURE__ */ A.createContext(null);
4062
4062
  function Xf(t) {
4063
- let e = nt(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = z(!1), o = V(() => ({
4063
+ let e = nt(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = z(!1), o = H(() => ({
4064
4064
  contain: l,
4065
4065
  setContain: i
4066
4066
  }), [
@@ -4127,7 +4127,7 @@ function tp(t) {
4127
4127
  function jo(t) {
4128
4128
  let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: a = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: f, scrollRef: p = r, linkBehavior: m = "action" } = t, { direction: y } = He(), g = Yt(), C = (E) => {
4129
4129
  if (E.altKey && E.key === "Tab" && E.preventDefault(), !r.current.contains(E.target)) return;
4130
- const w = (O, ke) => {
4130
+ const D = (O, ke) => {
4131
4131
  if (O != null) {
4132
4132
  if (e.isLink(O) && m === "selection" && u && !wr(E)) {
4133
4133
  Fc(() => {
@@ -4144,30 +4144,30 @@ function jo(t) {
4144
4144
  switch (E.key) {
4145
4145
  case "ArrowDown":
4146
4146
  if (n.getKeyBelow) {
4147
- var I, x, F;
4148
- let O = e.focusedKey != null ? (I = n.getKeyBelow) === null || I === void 0 ? void 0 : I.call(n, e.focusedKey) : (x = n.getFirstKey) === null || x === void 0 ? void 0 : x.call(n);
4149
- O == null && i && (O = (F = n.getFirstKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), O != null && (E.preventDefault(), w(O));
4147
+ var N, S, F;
4148
+ let O = e.focusedKey != null ? (N = n.getKeyBelow) === null || N === void 0 ? void 0 : N.call(n, e.focusedKey) : (S = n.getFirstKey) === null || S === void 0 ? void 0 : S.call(n);
4149
+ O == null && i && (O = (F = n.getFirstKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), O != null && (E.preventDefault(), D(O));
4150
4150
  }
4151
4151
  break;
4152
4152
  case "ArrowUp":
4153
4153
  if (n.getKeyAbove) {
4154
- var T, U, N;
4155
- let O = e.focusedKey != null ? (T = n.getKeyAbove) === null || T === void 0 ? void 0 : T.call(n, e.focusedKey) : (U = n.getLastKey) === null || U === void 0 ? void 0 : U.call(n);
4156
- O == null && i && (O = (N = n.getLastKey) === null || N === void 0 ? void 0 : N.call(n, e.focusedKey)), O != null && (E.preventDefault(), w(O));
4154
+ var k, V, I;
4155
+ let O = e.focusedKey != null ? (k = n.getKeyAbove) === null || k === void 0 ? void 0 : k.call(n, e.focusedKey) : (V = n.getLastKey) === null || V === void 0 ? void 0 : V.call(n);
4156
+ O == null && i && (O = (I = n.getLastKey) === null || I === void 0 ? void 0 : I.call(n, e.focusedKey)), O != null && (E.preventDefault(), D(O));
4157
4157
  }
4158
4158
  break;
4159
4159
  case "ArrowLeft":
4160
4160
  if (n.getKeyLeftOf) {
4161
- var ce, ye, xe;
4162
- let O = (ce = n.getKeyLeftOf) === null || ce === void 0 ? void 0 : ce.call(n, e.focusedKey);
4163
- O == null && i && (O = y === "rtl" ? (ye = n.getFirstKey) === null || ye === void 0 ? void 0 : ye.call(n, e.focusedKey) : (xe = n.getLastKey) === null || xe === void 0 ? void 0 : xe.call(n, e.focusedKey)), O != null && (E.preventDefault(), w(O, y === "rtl" ? "first" : "last"));
4161
+ var re, de, xe;
4162
+ let O = (re = n.getKeyLeftOf) === null || re === void 0 ? void 0 : re.call(n, e.focusedKey);
4163
+ O == null && i && (O = y === "rtl" ? (de = n.getFirstKey) === null || de === void 0 ? void 0 : de.call(n, e.focusedKey) : (xe = n.getLastKey) === null || xe === void 0 ? void 0 : xe.call(n, e.focusedKey)), O != null && (E.preventDefault(), D(O, y === "rtl" ? "first" : "last"));
4164
4164
  }
4165
4165
  break;
4166
4166
  case "ArrowRight":
4167
4167
  if (n.getKeyRightOf) {
4168
4168
  var Be, Ee, Ue;
4169
4169
  let O = (Be = n.getKeyRightOf) === null || Be === void 0 ? void 0 : Be.call(n, e.focusedKey);
4170
- O == null && i && (O = y === "rtl" ? (Ee = n.getLastKey) === null || Ee === void 0 ? void 0 : Ee.call(n, e.focusedKey) : (Ue = n.getFirstKey) === null || Ue === void 0 ? void 0 : Ue.call(n, e.focusedKey)), O != null && (E.preventDefault(), w(O, y === "rtl" ? "last" : "first"));
4170
+ O == null && i && (O = y === "rtl" ? (Ee = n.getLastKey) === null || Ee === void 0 ? void 0 : Ee.call(n, e.focusedKey) : (Ue = n.getFirstKey) === null || Ue === void 0 ? void 0 : Ue.call(n, e.focusedKey)), O != null && (E.preventDefault(), D(O, y === "rtl" ? "last" : "first"));
4171
4171
  }
4172
4172
  break;
4173
4173
  case "Home":
@@ -4187,13 +4187,13 @@ function jo(t) {
4187
4187
  case "PageDown":
4188
4188
  if (n.getKeyPageBelow) {
4189
4189
  let O = n.getKeyPageBelow(e.focusedKey);
4190
- O != null && (E.preventDefault(), w(O));
4190
+ O != null && (E.preventDefault(), D(O));
4191
4191
  }
4192
4192
  break;
4193
4193
  case "PageUp":
4194
4194
  if (n.getKeyPageAbove) {
4195
4195
  let O = n.getKeyPageAbove(e.focusedKey);
4196
- O != null && (E.preventDefault(), w(O));
4196
+ O != null && (E.preventDefault(), D(O));
4197
4197
  }
4198
4198
  break;
4199
4199
  case "a":
@@ -4217,12 +4217,12 @@ function jo(t) {
4217
4217
  break;
4218
4218
  }
4219
4219
  }
4220
- }, S = M({
4220
+ }, x = M({
4221
4221
  top: 0,
4222
4222
  left: 0
4223
4223
  });
4224
4224
  Pl(p, "scroll", f ? null : () => {
4225
- S.current = {
4225
+ x.current = {
4226
4226
  top: p.current.scrollTop,
4227
4227
  left: p.current.scrollLeft
4228
4228
  };
@@ -4234,55 +4234,55 @@ function jo(t) {
4234
4234
  }
4235
4235
  if (E.currentTarget.contains(E.target)) {
4236
4236
  if (e.setFocused(!0), e.focusedKey == null) {
4237
- let x = (T) => {
4238
- T != null && (e.setFocusedKey(T), u && e.replaceSelection(T));
4237
+ let S = (k) => {
4238
+ k != null && (e.setFocusedKey(k), u && e.replaceSelection(k));
4239
4239
  }, F = E.relatedTarget;
4240
- var w, I;
4241
- F && E.currentTarget.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? x((w = e.lastSelectedKey) !== null && w !== void 0 ? w : n.getLastKey()) : x((I = e.firstSelectedKey) !== null && I !== void 0 ? I : n.getFirstKey());
4242
- } else f || (p.current.scrollTop = S.current.top, p.current.scrollLeft = S.current.left);
4240
+ var D, N;
4241
+ F && E.currentTarget.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? S((D = e.lastSelectedKey) !== null && D !== void 0 ? D : n.getLastKey()) : S((N = e.firstSelectedKey) !== null && N !== void 0 ? N : n.getFirstKey());
4242
+ } else f || (p.current.scrollTop = x.current.top, p.current.scrollLeft = x.current.left);
4243
4243
  if (e.focusedKey != null) {
4244
- let x = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
4245
- x && (x.contains(document.activeElement) || Le(x), bn() === "keyboard" && Ze(x, {
4244
+ let S = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
4245
+ S && (S.contains(document.activeElement) || Le(S), bn() === "keyboard" && Ze(S, {
4246
4246
  containingElement: r.current
4247
4247
  }));
4248
4248
  }
4249
4249
  }
4250
- }, D = (E) => {
4250
+ }, T = (E) => {
4251
4251
  E.currentTarget.contains(E.relatedTarget) || e.setFocused(!1);
4252
4252
  };
4253
- const P = M(l);
4253
+ const w = M(l);
4254
4254
  L(() => {
4255
- if (P.current) {
4255
+ if (w.current) {
4256
4256
  let E = null;
4257
4257
  l === "first" && (E = n.getFirstKey()), l === "last" && (E = n.getLastKey());
4258
- let w = e.selectedKeys;
4259
- if (w.size) {
4260
- for (let I of w) if (e.canSelectItem(I)) {
4261
- E = I;
4258
+ let D = e.selectedKeys;
4259
+ if (D.size) {
4260
+ for (let N of D) if (e.canSelectItem(N)) {
4261
+ E = N;
4262
4262
  break;
4263
4263
  }
4264
4264
  }
4265
- e.setFocused(!0), e.setFocusedKey(E), E == null && !c && ve(r.current);
4265
+ e.setFocused(!0), e.setFocusedKey(E), E == null && !c && he(r.current);
4266
4266
  }
4267
4267
  }, []);
4268
- let k = M(e.focusedKey);
4268
+ let P = M(e.focusedKey);
4269
4269
  L(() => {
4270
- if (e.isFocused && e.focusedKey != null && (e.focusedKey !== k.current || P.current) && (p != null && p.current)) {
4271
- let E = bn(), w = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
4272
- if (!w)
4270
+ if (e.isFocused && e.focusedKey != null && (e.focusedKey !== P.current || w.current) && (p != null && p.current)) {
4271
+ let E = bn(), D = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
4272
+ if (!D)
4273
4273
  return;
4274
- (E === "keyboard" || P.current) && (Ti(p.current, w), E !== "virtual" && Ze(w, {
4274
+ (E === "keyboard" || w.current) && (Ti(p.current, D), E !== "virtual" && Ze(D, {
4275
4275
  containingElement: r.current
4276
4276
  }));
4277
4277
  }
4278
- !c && e.isFocused && e.focusedKey == null && k.current != null && ve(r.current), k.current = e.focusedKey, P.current = !1;
4278
+ !c && e.isFocused && e.focusedKey == null && P.current != null && he(r.current), P.current = e.focusedKey, w.current = !1;
4279
4279
  }), Pl(r, "react-aria-focus-scope-restore", (E) => {
4280
4280
  E.preventDefault(), e.setFocused(!0);
4281
4281
  });
4282
4282
  let R = {
4283
4283
  onKeyDown: C,
4284
4284
  onFocus: $,
4285
- onBlur: D,
4285
+ onBlur: T,
4286
4286
  onMouseDown(E) {
4287
4287
  p.current === E.target && E.preventDefault();
4288
4288
  }
@@ -4290,7 +4290,7 @@ function jo(t) {
4290
4290
  keyboardDelegate: n,
4291
4291
  selectionManager: e
4292
4292
  });
4293
- s || (R = H(v, R));
4293
+ s || (R = W(v, R));
4294
4294
  let B;
4295
4295
  return c || (B = e.focusedKey == null ? 0 : -1), {
4296
4296
  collectionProps: {
@@ -4300,22 +4300,22 @@ function jo(t) {
4300
4300
  };
4301
4301
  }
4302
4302
  function _n(t) {
4303
- let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: l, shouldUseVirtualFocus: i, focus: o, isDisabled: a, onAction: u, allowsDifferentPressOrigin: s, linkBehavior: c = "action" } = t, d = Yt(), f = (N) => {
4304
- if (N.pointerType === "keyboard" && wr(N)) e.toggleSelection(n);
4303
+ let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: l, shouldUseVirtualFocus: i, focus: o, isDisabled: a, onAction: u, allowsDifferentPressOrigin: s, linkBehavior: c = "action" } = t, d = Yt(), f = (I) => {
4304
+ if (I.pointerType === "keyboard" && wr(I)) e.toggleSelection(n);
4305
4305
  else {
4306
4306
  if (e.selectionMode === "none") return;
4307
4307
  if (e.isLink(n)) {
4308
4308
  if (c === "selection") {
4309
- let ce = e.getItemProps(n);
4310
- d.open(r.current, N, ce.href, ce.routerOptions), e.setSelectedKeys(e.selectedKeys);
4309
+ let re = e.getItemProps(n);
4310
+ d.open(r.current, I, re.href, re.routerOptions), e.setSelectedKeys(e.selectedKeys);
4311
4311
  return;
4312
4312
  } else if (c === "override" || c === "none") return;
4313
4313
  }
4314
- e.selectionMode === "single" ? e.isSelected(n) && !e.disallowEmptySelection ? e.toggleSelection(n) : e.replaceSelection(n) : N && N.shiftKey ? e.extendSelection(n) : e.selectionBehavior === "toggle" || N && (St(N) || N.pointerType === "touch" || N.pointerType === "virtual") ? e.toggleSelection(n) : e.replaceSelection(n);
4314
+ e.selectionMode === "single" ? e.isSelected(n) && !e.disallowEmptySelection ? e.toggleSelection(n) : e.replaceSelection(n) : I && I.shiftKey ? e.extendSelection(n) : e.selectionBehavior === "toggle" || I && (St(I) || I.pointerType === "touch" || I.pointerType === "virtual") ? e.toggleSelection(n) : e.replaceSelection(n);
4315
4315
  }
4316
4316
  };
4317
4317
  L(() => {
4318
- n === e.focusedKey && e.isFocused && !i && (o ? o() : document.activeElement !== r.current && ve(r.current));
4318
+ n === e.focusedKey && e.isFocused && !i && (o ? o() : document.activeElement !== r.current && he(r.current));
4319
4319
  }, [
4320
4320
  r,
4321
4321
  n,
@@ -4327,56 +4327,56 @@ function _n(t) {
4327
4327
  let p = {};
4328
4328
  !i && !a ? p = {
4329
4329
  tabIndex: n === e.focusedKey ? 0 : -1,
4330
- onFocus(N) {
4331
- N.target === r.current && e.setFocusedKey(n);
4330
+ onFocus(I) {
4331
+ I.target === r.current && e.setFocusedKey(n);
4332
4332
  }
4333
- } : a && (p.onMouseDown = (N) => {
4334
- N.preventDefault();
4333
+ } : a && (p.onMouseDown = (I) => {
4334
+ I.preventDefault();
4335
4335
  });
4336
- let m = e.isLink(n) && c === "override", y = e.isLink(n) && c !== "selection" && c !== "none", g = !a && e.canSelectItem(n) && !m, C = (u || y) && !a, S = C && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), $ = C && g && e.selectionBehavior === "replace", D = S || $, P = M(null), k = D && g, R = M(!1), v = M(!1), B = (N) => {
4336
+ let m = e.isLink(n) && c === "override", y = e.isLink(n) && c !== "selection" && c !== "none", g = !a && e.canSelectItem(n) && !m, C = (u || y) && !a, x = C && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), $ = C && g && e.selectionBehavior === "replace", T = x || $, w = M(null), P = T && g, R = M(!1), v = M(!1), B = (I) => {
4337
4337
  if (u && u(), y) {
4338
- let ce = e.getItemProps(n);
4339
- d.open(r.current, N, ce.href, ce.routerOptions);
4338
+ let re = e.getItemProps(n);
4339
+ d.open(r.current, I, re.href, re.routerOptions);
4340
4340
  }
4341
4341
  }, E = {};
4342
- l ? (E.onPressStart = (N) => {
4343
- P.current = N.pointerType, R.current = k, N.pointerType === "keyboard" && (!D || Ql()) && f(N);
4344
- }, s ? (E.onPressUp = S ? null : (N) => {
4345
- N.pointerType !== "keyboard" && g && f(N);
4346
- }, E.onPress = S ? B : null) : E.onPress = (N) => {
4347
- if (S || $ && N.pointerType !== "mouse") {
4348
- if (N.pointerType === "keyboard" && !Jl()) return;
4349
- B(N);
4350
- } else N.pointerType !== "keyboard" && g && f(N);
4351
- }) : (E.onPressStart = (N) => {
4352
- P.current = N.pointerType, R.current = k, v.current = S, g && (N.pointerType === "mouse" && !S || N.pointerType === "keyboard" && (!C || Ql())) && f(N);
4353
- }, E.onPress = (N) => {
4354
- (N.pointerType === "touch" || N.pointerType === "pen" || N.pointerType === "virtual" || N.pointerType === "keyboard" && D && Jl() || N.pointerType === "mouse" && v.current) && (D ? B(N) : g && f(N));
4342
+ l ? (E.onPressStart = (I) => {
4343
+ w.current = I.pointerType, R.current = P, I.pointerType === "keyboard" && (!T || Ql()) && f(I);
4344
+ }, s ? (E.onPressUp = x ? null : (I) => {
4345
+ I.pointerType !== "keyboard" && g && f(I);
4346
+ }, E.onPress = x ? B : null) : E.onPress = (I) => {
4347
+ if (x || $ && I.pointerType !== "mouse") {
4348
+ if (I.pointerType === "keyboard" && !Jl()) return;
4349
+ B(I);
4350
+ } else I.pointerType !== "keyboard" && g && f(I);
4351
+ }) : (E.onPressStart = (I) => {
4352
+ w.current = I.pointerType, R.current = P, v.current = x, g && (I.pointerType === "mouse" && !x || I.pointerType === "keyboard" && (!C || Ql())) && f(I);
4353
+ }, E.onPress = (I) => {
4354
+ (I.pointerType === "touch" || I.pointerType === "pen" || I.pointerType === "virtual" || I.pointerType === "keyboard" && T && Jl() || I.pointerType === "mouse" && v.current) && (T ? B(I) : g && f(I));
4355
4355
  }), p["data-key"] = n, E.preventFocusOnPress = i;
4356
- let { pressProps: w, isPressed: I } = ze(E), x = $ ? (N) => {
4357
- P.current === "mouse" && (N.stopPropagation(), N.preventDefault(), B(N));
4356
+ let { pressProps: D, isPressed: N } = ze(E), S = $ ? (I) => {
4357
+ w.current === "mouse" && (I.stopPropagation(), I.preventDefault(), B(I));
4358
4358
  } : void 0, { longPressProps: F } = ji({
4359
- isDisabled: !k,
4360
- onLongPress(N) {
4361
- N.pointerType === "touch" && (f(N), e.setSelectionBehavior("toggle"));
4362
- }
4363
- }), T = (N) => {
4364
- P.current === "touch" && R.current && N.preventDefault();
4365
- }, U = e.isLink(n) ? (N) => {
4366
- ut.isOpening || N.preventDefault();
4359
+ isDisabled: !P,
4360
+ onLongPress(I) {
4361
+ I.pointerType === "touch" && (f(I), e.setSelectionBehavior("toggle"));
4362
+ }
4363
+ }), k = (I) => {
4364
+ w.current === "touch" && R.current && I.preventDefault();
4365
+ }, V = e.isLink(n) ? (I) => {
4366
+ ut.isOpening || I.preventDefault();
4367
4367
  } : void 0;
4368
4368
  return {
4369
- itemProps: H(p, g || S ? w : {}, k ? F : {}, {
4370
- onDoubleClick: x,
4371
- onDragStartCapture: T,
4372
- onClick: U
4369
+ itemProps: W(p, g || x ? D : {}, P ? F : {}, {
4370
+ onDoubleClick: S,
4371
+ onDragStartCapture: k,
4372
+ onClick: V
4373
4373
  }),
4374
- isPressed: I,
4374
+ isPressed: N,
4375
4375
  isSelected: e.isSelected(n),
4376
4376
  isFocused: e.isFocused && e.focusedKey === n,
4377
4377
  isDisabled: a,
4378
4378
  allowsSelection: g,
4379
- hasAction: D
4379
+ hasAction: T
4380
4380
  };
4381
4381
  }
4382
4382
  function Jl() {
@@ -4531,7 +4531,7 @@ function Ho(t) {
4531
4531
  let { selectionManager: e, collection: n, disabledKeys: r, ref: l, keyboardDelegate: i, layoutDelegate: o } = t, a = In({
4532
4532
  usage: "search",
4533
4533
  sensitivity: "base"
4534
- }), u = e.disabledBehavior, s = V(() => i || new Vo({
4534
+ }), u = e.disabledBehavior, s = H(() => i || new Vo({
4535
4535
  collection: n,
4536
4536
  disabledKeys: r,
4537
4537
  disabledBehavior: u,
@@ -4557,7 +4557,7 @@ function Ho(t) {
4557
4557
  };
4558
4558
  }
4559
4559
  function np(t, e, n) {
4560
- let r = fe(t, {
4560
+ let r = pe(t, {
4561
4561
  labelable: !0
4562
4562
  }), l = t.selectionBehavior || "toggle", i = t.linkBehavior || (l === "replace" ? "action" : "override");
4563
4563
  l === "toggle" && i === "action" && (i = "override");
@@ -4572,7 +4572,7 @@ function np(t, e, n) {
4572
4572
  onFocusWithin: t.onFocus,
4573
4573
  onBlurWithin: t.onBlur,
4574
4574
  onFocusWithinChange: t.onFocusChange
4575
- }), u = he(t.id);
4575
+ }), u = me(t.id);
4576
4576
  qr.set(e, {
4577
4577
  id: u,
4578
4578
  shouldUseVirtualFocus: t.shouldUseVirtualFocus,
@@ -4591,11 +4591,11 @@ function np(t, e, n) {
4591
4591
  });
4592
4592
  return {
4593
4593
  labelProps: s,
4594
- listBoxProps: H(r, a, e.selectionManager.selectionMode === "multiple" ? {
4594
+ listBoxProps: W(r, a, e.selectionManager.selectionMode === "multiple" ? {
4595
4595
  "aria-multiselectable": "true"
4596
4596
  } : {}, {
4597
4597
  role: "listbox",
4598
- ...H(c, o)
4598
+ ...W(c, o)
4599
4599
  })
4600
4600
  };
4601
4601
  }
@@ -4816,8 +4816,8 @@ function lr(t) {
4816
4816
  return t[0].toUpperCase() + t.slice(1);
4817
4817
  }
4818
4818
  function Zr(t, e, n) {
4819
- let r = V(() => new lp(), []), { children: l, items: i, collection: o } = t;
4820
- return V(() => {
4819
+ let r = H(() => new lp(), []), { children: l, items: i, collection: o } = t;
4820
+ return H(() => {
4821
4821
  if (o) return o;
4822
4822
  let u = r.build({
4823
4823
  children: l,
@@ -4833,7 +4833,7 @@ function Zr(t, e, n) {
4833
4833
  e
4834
4834
  ]);
4835
4835
  }
4836
- function ue(t, e) {
4836
+ function se(t, e) {
4837
4837
  return typeof e.getChildren == "function" ? e.getChildren(t.key) : t.childNodes;
4838
4838
  }
4839
4839
  function Ne(t) {
@@ -4875,7 +4875,7 @@ function Go(t) {
4875
4875
  if (e != null) return e;
4876
4876
  e = 0;
4877
4877
  let n = (r) => {
4878
- for (let l of r) l.type === "section" ? n(ue(l, t)) : e++;
4878
+ for (let l of r) l.type === "section" ? n(se(l, t)) : e++;
4879
4879
  };
4880
4880
  return n(t), ni.set(t, e), e;
4881
4881
  }
@@ -4893,58 +4893,58 @@ function op(t, e, n) {
4893
4893
  var y;
4894
4894
  let g = (y = t.shouldUseVirtualFocus) !== null && y !== void 0 ? y : o == null ? void 0 : o.shouldUseVirtualFocus;
4895
4895
  var C;
4896
- let S = (C = t.isVirtualized) !== null && C !== void 0 ? C : o == null ? void 0 : o.isVirtualized, $ = et(), D = et(), P = {
4896
+ let x = (C = t.isVirtualized) !== null && C !== void 0 ? C : o == null ? void 0 : o.isVirtualized, $ = et(), T = et(), w = {
4897
4897
  role: "option",
4898
4898
  "aria-disabled": u || void 0,
4899
4899
  "aria-selected": e.selectionManager.selectionMode !== "none" ? c : void 0
4900
4900
  };
4901
- tt() && Or() || (P["aria-label"] = t["aria-label"], P["aria-labelledby"] = $, P["aria-describedby"] = D);
4902
- let k = e.collection.getItem(i);
4903
- if (S) {
4904
- let U = Number(k == null ? void 0 : k.index);
4905
- P["aria-posinset"] = Number.isNaN(U) ? void 0 : U + 1, P["aria-setsize"] = Go(e.collection);
4901
+ tt() && Or() || (w["aria-label"] = t["aria-label"], w["aria-labelledby"] = $, w["aria-describedby"] = T);
4902
+ let P = e.collection.getItem(i);
4903
+ if (x) {
4904
+ let V = Number(P == null ? void 0 : P.index);
4905
+ w["aria-posinset"] = Number.isNaN(V) ? void 0 : V + 1, w["aria-setsize"] = Go(e.collection);
4906
4906
  }
4907
4907
  let R = o != null && o.onAction ? () => {
4908
- var U;
4909
- return o == null || (U = o.onAction) === null || U === void 0 ? void 0 : U.call(o, i);
4910
- } : void 0, { itemProps: v, isPressed: B, isFocused: E, hasAction: w, allowsSelection: I } = _n({
4908
+ var V;
4909
+ return o == null || (V = o.onAction) === null || V === void 0 ? void 0 : V.call(o, i);
4910
+ } : void 0, { itemProps: v, isPressed: B, isFocused: E, hasAction: D, allowsSelection: N } = _n({
4911
4911
  selectionManager: e.selectionManager,
4912
4912
  key: i,
4913
4913
  ref: n,
4914
4914
  shouldSelectOnPressUp: f,
4915
4915
  allowsDifferentPressOrigin: f && m,
4916
- isVirtualized: S,
4916
+ isVirtualized: x,
4917
4917
  shouldUseVirtualFocus: g,
4918
4918
  isDisabled: u,
4919
- onAction: R || !(k == null || (r = k.props) === null || r === void 0) && r.onAction ? Ie(k == null || (l = k.props) === null || l === void 0 ? void 0 : l.onAction, R) : void 0,
4919
+ onAction: R || !(P == null || (r = P.props) === null || r === void 0) && r.onAction ? Ie(P == null || (l = P.props) === null || l === void 0 ? void 0 : l.onAction, R) : void 0,
4920
4920
  linkBehavior: o == null ? void 0 : o.linkBehavior
4921
- }), { hoverProps: x } = kt({
4921
+ }), { hoverProps: S } = kt({
4922
4922
  isDisabled: u || !m,
4923
4923
  onHoverStart() {
4924
4924
  ct() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
4925
4925
  }
4926
- }), F = fe(k == null ? void 0 : k.props);
4926
+ }), F = pe(P == null ? void 0 : P.props);
4927
4927
  delete F.id;
4928
- let T = Ci(k == null ? void 0 : k.props);
4928
+ let k = Ci(P == null ? void 0 : P.props);
4929
4929
  return {
4930
4930
  optionProps: {
4931
- ...P,
4932
- ...H(F, v, x, T),
4931
+ ...w,
4932
+ ...W(F, v, S, k),
4933
4933
  id: Qf(e, i)
4934
4934
  },
4935
4935
  labelProps: {
4936
4936
  id: $
4937
4937
  },
4938
4938
  descriptionProps: {
4939
- id: D
4939
+ id: T
4940
4940
  },
4941
4941
  isFocused: E,
4942
4942
  isFocusVisible: E && ct(),
4943
4943
  isSelected: c,
4944
4944
  isDisabled: u,
4945
4945
  isPressed: B,
4946
- allowsSelection: I,
4947
- hasAction: w
4946
+ allowsSelection: N,
4947
+ hasAction: D
4948
4948
  };
4949
4949
  }
4950
4950
  var Yo = {};
@@ -5124,7 +5124,7 @@ function ap(t) {
5124
5124
  return t && t.__esModule ? t.default : t;
5125
5125
  }
5126
5126
  function Ta(t, e, n) {
5127
- let { type: r = "menu", isDisabled: l, trigger: i = "press" } = t, o = he(), { triggerProps: a, overlayProps: u } = ro({
5127
+ let { type: r = "menu", isDisabled: l, trigger: i = "press" } = t, o = me(), { triggerProps: a, overlayProps: u } = ro({
5128
5128
  type: r
5129
5129
  }, e, n), s = (p) => {
5130
5130
  if (!l && !(i === "longPress" && !p.altKey) && n && n.current)
@@ -5177,7 +5177,7 @@ const Aa = /* @__PURE__ */ new WeakMap();
5177
5177
  function Ba(t, e, n) {
5178
5178
  let { shouldFocusWrap: r = !0, onKeyDown: l, onKeyUp: i, ...o } = t;
5179
5179
  !t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
5180
- let a = fe(t, {
5180
+ let a = pe(t, {
5181
5181
  labelable: !0
5182
5182
  }), { listProps: u } = Ho({
5183
5183
  ...o,
@@ -5192,7 +5192,7 @@ function Ba(t, e, n) {
5192
5192
  onClose: t.onClose,
5193
5193
  onAction: t.onAction
5194
5194
  }), {
5195
- menuProps: H(a, {
5195
+ menuProps: W(a, {
5196
5196
  onKeyDown: l,
5197
5197
  onKeyUp: i
5198
5198
  }, {
@@ -5205,40 +5205,40 @@ function Ba(t, e, n) {
5205
5205
  };
5206
5206
  }
5207
5207
  function Ka(t, e, n) {
5208
- let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": a, onPressStart: u, onPressUp: s, onPress: c, onPressChange: d, onPressEnd: f, onHoverStart: p, onHoverChange: m, onHoverEnd: y, onKeyDown: g, onKeyUp: C, onFocus: S, onFocusChange: $, onBlur: D } = t, P = !!a;
5209
- var k;
5210
- let R = (k = t.isDisabled) !== null && k !== void 0 ? k : e.selectionManager.isDisabled(l);
5208
+ let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": a, onPressStart: u, onPressUp: s, onPress: c, onPressChange: d, onPressEnd: f, onHoverStart: p, onHoverChange: m, onHoverEnd: y, onKeyDown: g, onKeyUp: C, onFocus: x, onFocusChange: $, onBlur: T } = t, w = !!a;
5209
+ var P;
5210
+ let R = (P = t.isDisabled) !== null && P !== void 0 ? P : e.selectionManager.isDisabled(l);
5211
5211
  var v;
5212
- let B = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), E = Aa.get(e), w = e.collection.getItem(l), I = t.onClose || E.onClose, x = Yt(), F = (re) => {
5212
+ let B = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), E = Aa.get(e), D = e.collection.getItem(l), N = t.onClose || E.onClose, S = Yt(), F = (le) => {
5213
5213
  var mt;
5214
- if (!P) {
5215
- if (!(w == null || (mt = w.props) === null || mt === void 0) && mt.onAction ? w.props.onAction() : t.onAction && t.onAction(l), E.onAction) {
5214
+ if (!w) {
5215
+ if (!(D == null || (mt = D.props) === null || mt === void 0) && mt.onAction ? D.props.onAction() : t.onAction && t.onAction(l), E.onAction) {
5216
5216
  let On = E.onAction;
5217
5217
  On(l);
5218
5218
  }
5219
- re.target instanceof HTMLAnchorElement && x.open(re.target, re, w.props.href, w.props.routerOptions);
5219
+ le.target instanceof HTMLAnchorElement && S.open(le.target, le, D.props.href, D.props.routerOptions);
5220
5220
  }
5221
- }, T = "menuitem";
5222
- P || (e.selectionManager.selectionMode === "single" ? T = "menuitemradio" : e.selectionManager.selectionMode === "multiple" && (T = "menuitemcheckbox"));
5223
- let U = et(), N = et(), ce = et(), ye = {
5221
+ }, k = "menuitem";
5222
+ w || (e.selectionManager.selectionMode === "single" ? k = "menuitemradio" : e.selectionManager.selectionMode === "multiple" && (k = "menuitemcheckbox"));
5223
+ let V = et(), I = et(), re = et(), de = {
5224
5224
  id: r,
5225
5225
  "aria-disabled": R || void 0,
5226
- role: T,
5226
+ role: k,
5227
5227
  "aria-label": t["aria-label"],
5228
- "aria-labelledby": U,
5228
+ "aria-labelledby": V,
5229
5229
  "aria-describedby": [
5230
- N,
5231
- ce
5230
+ I,
5231
+ re
5232
5232
  ].filter(Boolean).join(" ") || void 0,
5233
5233
  "aria-controls": t["aria-controls"],
5234
5234
  "aria-haspopup": a,
5235
5235
  "aria-expanded": t["aria-expanded"]
5236
5236
  };
5237
- e.selectionManager.selectionMode !== "none" && !P && (ye["aria-checked"] = B), o && (ye["aria-posinset"] = w == null ? void 0 : w.index, ye["aria-setsize"] = Go(e.collection));
5238
- let xe = (re) => {
5239
- re.pointerType === "keyboard" && F(re), u == null || u(re);
5240
- }, Be = (re) => {
5241
- re.pointerType !== "keyboard" && (F(re), !P && I && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(l))) && I()), s == null || s(re);
5237
+ e.selectionManager.selectionMode !== "none" && !w && (de["aria-checked"] = B), o && (de["aria-posinset"] = D == null ? void 0 : D.index, de["aria-setsize"] = Go(e.collection));
5238
+ let xe = (le) => {
5239
+ le.pointerType === "keyboard" && F(le), u == null || u(le);
5240
+ }, Be = (le) => {
5241
+ le.pointerType !== "keyboard" && (F(le), !w && N && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(l))) && N()), s == null || s(le);
5242
5242
  }, { itemProps: Ee, isFocused: Ue } = _n({
5243
5243
  selectionManager: e.selectionManager,
5244
5244
  key: l,
@@ -5259,54 +5259,54 @@ function Ka(t, e, n) {
5259
5259
  isDisabled: R
5260
5260
  }), { hoverProps: Se } = kt({
5261
5261
  isDisabled: R,
5262
- onHoverStart(re) {
5263
- ct() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(l)), p == null || p(re);
5262
+ onHoverStart(le) {
5263
+ ct() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(l)), p == null || p(le);
5264
5264
  },
5265
5265
  onHoverChange: m,
5266
5266
  onHoverEnd: y
5267
5267
  }), { keyboardProps: Ge } = zi({
5268
- onKeyDown: (re) => {
5269
- if (re.repeat) {
5270
- re.continuePropagation();
5268
+ onKeyDown: (le) => {
5269
+ if (le.repeat) {
5270
+ le.continuePropagation();
5271
5271
  return;
5272
5272
  }
5273
- switch (re.key) {
5273
+ switch (le.key) {
5274
5274
  case " ":
5275
- !R && e.selectionManager.selectionMode === "none" && !P && i !== !1 && I && I();
5275
+ !R && e.selectionManager.selectionMode === "none" && !w && i !== !1 && N && N();
5276
5276
  break;
5277
5277
  case "Enter":
5278
- !R && i !== !1 && !P && I && I();
5278
+ !R && i !== !1 && !w && N && N();
5279
5279
  break;
5280
5280
  default:
5281
- P || re.continuePropagation(), g == null || g(re);
5281
+ w || le.continuePropagation(), g == null || g(le);
5282
5282
  break;
5283
5283
  }
5284
5284
  },
5285
5285
  onKeyUp: C
5286
5286
  }), { focusProps: pt } = An({
5287
- onBlur: D,
5288
- onFocus: S,
5287
+ onBlur: T,
5288
+ onFocus: x,
5289
5289
  onFocusChange: $
5290
- }), vt = fe(w.props);
5290
+ }), vt = pe(D.props);
5291
5291
  delete vt.id;
5292
- let ht = Ci(w.props);
5292
+ let ht = Ci(D.props);
5293
5293
  return {
5294
5294
  menuItemProps: {
5295
- ...ye,
5296
- ...H(vt, ht, P ? {
5295
+ ...de,
5296
+ ...W(vt, ht, w ? {
5297
5297
  onFocus: Ee.onFocus,
5298
5298
  "data-key": Ee["data-key"]
5299
5299
  } : Ee, O, Se, Ge, pt),
5300
5300
  tabIndex: Ee.tabIndex != null ? -1 : void 0
5301
5301
  },
5302
5302
  labelProps: {
5303
- id: U
5303
+ id: V
5304
5304
  },
5305
5305
  descriptionProps: {
5306
- id: N
5306
+ id: I
5307
5307
  },
5308
5308
  keyboardShortcutProps: {
5309
- id: ce
5309
+ id: re
5310
5310
  },
5311
5311
  isFocused: Ue,
5312
5312
  isSelected: B,
@@ -5315,7 +5315,7 @@ function Ka(t, e, n) {
5315
5315
  };
5316
5316
  }
5317
5317
  function up(t) {
5318
- let { heading: e, "aria-label": n } = t, r = he();
5318
+ let { heading: e, "aria-label": n } = t, r = me();
5319
5319
  return {
5320
5320
  itemProps: {
5321
5321
  role: "presentation"
@@ -5340,9 +5340,9 @@ function sp(t, e) {
5340
5340
  let l = M(!1);
5341
5341
  return L(() => {
5342
5342
  if (e.current && !e.current.contains(document.activeElement)) {
5343
- ve(e.current);
5343
+ he(e.current);
5344
5344
  let i = setTimeout(() => {
5345
- document.activeElement === e.current && (l.current = !0, e.current && (e.current.blur(), ve(e.current)), l.current = !1);
5345
+ document.activeElement === e.current && (l.current = !0, e.current && (e.current.blur(), he(e.current)), l.current = !1);
5346
5346
  }, 500);
5347
5347
  return () => {
5348
5348
  clearTimeout(i);
@@ -5352,7 +5352,7 @@ function sp(t, e) {
5352
5352
  e
5353
5353
  ]), Zf(), {
5354
5354
  dialogProps: {
5355
- ...fe(t, {
5355
+ ...pe(t, {
5356
5356
  labelable: !0
5357
5357
  }),
5358
5358
  role: n,
@@ -5520,18 +5520,18 @@ function gp(t) {
5520
5520
  onFocusChange: (c) => {
5521
5521
  n.current = c;
5522
5522
  }
5523
- }), l = oe((c) => {
5523
+ }), l = ae((c) => {
5524
5524
  n.current && t.getItems && c.preventDefault();
5525
- }), i = oe((c) => {
5525
+ }), i = ae((c) => {
5526
5526
  var d;
5527
5527
  !n.current || !t.getItems || (c.preventDefault(), ri(c.clipboardData, t.getItems()), (d = t.onCopy) === null || d === void 0 || d.call(t));
5528
- }), o = oe((c) => {
5528
+ }), o = ae((c) => {
5529
5529
  n.current && t.onCut && t.getItems && c.preventDefault();
5530
- }), a = oe((c) => {
5530
+ }), a = ae((c) => {
5531
5531
  !n.current || !t.onCut || !t.getItems || (c.preventDefault(), ri(c.clipboardData, t.getItems()), t.onCut());
5532
- }), u = oe((c) => {
5532
+ }), u = ae((c) => {
5533
5533
  n.current && t.onPaste && c.preventDefault();
5534
- }), s = oe((c) => {
5534
+ }), s = ae((c) => {
5535
5535
  if (!n.current || !t.onPaste) return;
5536
5536
  c.preventDefault();
5537
5537
  let d = vp(c.clipboardData);
@@ -5584,7 +5584,7 @@ class Fa {
5584
5584
  if (n && (this.isCell(n) && (e = n.parentKey), e = this.findNextKey(e, (r) => r.type === "item"), e != null)) {
5585
5585
  if (this.isCell(n)) {
5586
5586
  let r = this.collection.getItem(e);
5587
- return Je(ue(r, this.collection), n.index).key;
5587
+ return Je(se(r, this.collection), n.index).key;
5588
5588
  }
5589
5589
  if (this.focusMode === "row") return e;
5590
5590
  }
@@ -5594,7 +5594,7 @@ class Fa {
5594
5594
  if (n && (this.isCell(n) && (e = n.parentKey), e = this.findPreviousKey(e, (r) => r.type === "item"), e != null)) {
5595
5595
  if (this.isCell(n)) {
5596
5596
  let r = this.collection.getItem(e);
5597
- return Je(ue(r, this.collection), n.index).key;
5597
+ return Je(se(r, this.collection), n.index).key;
5598
5598
  }
5599
5599
  if (this.focusMode === "row") return e;
5600
5600
  }
@@ -5603,11 +5603,11 @@ class Fa {
5603
5603
  let n = this.collection.getItem(e);
5604
5604
  if (n) {
5605
5605
  if (this.isRow(n)) {
5606
- let r = ue(n, this.collection);
5606
+ let r = se(n, this.collection);
5607
5607
  return this.direction === "rtl" ? Qe(r).key : Ne(r).key;
5608
5608
  }
5609
5609
  if (this.isCell(n)) {
5610
- let r = this.collection.getItem(n.parentKey), l = ue(r, this.collection), i = this.direction === "rtl" ? Je(l, n.index - 1) : Je(l, n.index + 1);
5610
+ let r = this.collection.getItem(n.parentKey), l = se(r, this.collection), i = this.direction === "rtl" ? Je(l, n.index - 1) : Je(l, n.index + 1);
5611
5611
  return i ? i.key : this.focusMode === "row" ? n.parentKey : this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e);
5612
5612
  }
5613
5613
  }
@@ -5616,11 +5616,11 @@ class Fa {
5616
5616
  let n = this.collection.getItem(e);
5617
5617
  if (n) {
5618
5618
  if (this.isRow(n)) {
5619
- let r = ue(n, this.collection);
5619
+ let r = se(n, this.collection);
5620
5620
  return this.direction === "rtl" ? Ne(r).key : Qe(r).key;
5621
5621
  }
5622
5622
  if (this.isCell(n)) {
5623
- let r = this.collection.getItem(n.parentKey), l = ue(r, this.collection), i = this.direction === "rtl" ? Je(l, n.index + 1) : Je(l, n.index - 1);
5623
+ let r = this.collection.getItem(n.parentKey), l = se(r, this.collection), i = this.direction === "rtl" ? Je(l, n.index + 1) : Je(l, n.index - 1);
5624
5624
  return i ? i.key : this.focusMode === "row" ? n.parentKey : this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e);
5625
5625
  }
5626
5626
  }
@@ -5631,12 +5631,12 @@ class Fa {
5631
5631
  if (r = this.collection.getItem(e), !r) return;
5632
5632
  if (this.isCell(r) && !n) {
5633
5633
  let l = this.collection.getItem(r.parentKey);
5634
- return Ne(ue(l, this.collection)).key;
5634
+ return Ne(se(l, this.collection)).key;
5635
5635
  }
5636
5636
  }
5637
5637
  if (e = this.findNextKey(null, (l) => l.type === "item"), e != null && r && this.isCell(r) && n || this.focusMode === "cell") {
5638
5638
  let l = this.collection.getItem(e);
5639
- e = Ne(ue(l, this.collection)).key;
5639
+ e = Ne(se(l, this.collection)).key;
5640
5640
  }
5641
5641
  return e;
5642
5642
  }
@@ -5645,12 +5645,12 @@ class Fa {
5645
5645
  if (e != null) {
5646
5646
  if (r = this.collection.getItem(e), !r) return;
5647
5647
  if (this.isCell(r) && !n) {
5648
- let l = this.collection.getItem(r.parentKey), i = ue(l, this.collection);
5648
+ let l = this.collection.getItem(r.parentKey), i = se(l, this.collection);
5649
5649
  return Qe(i).key;
5650
5650
  }
5651
5651
  }
5652
5652
  if (e = this.findPreviousKey(null, (l) => l.type === "item"), e != null && r && this.isCell(r) && n || this.focusMode === "cell") {
5653
- let l = this.collection.getItem(e), i = ue(l, this.collection);
5653
+ let l = this.collection.getItem(e), i = se(l, this.collection);
5654
5654
  e = Qe(i).key;
5655
5655
  }
5656
5656
  return e;
@@ -5684,7 +5684,7 @@ class Fa {
5684
5684
  if (a.textValue) {
5685
5685
  let u = a.textValue.slice(0, e.length);
5686
5686
  if (this.collator.compare(u, e) === 0)
5687
- return this.isRow(a) && this.focusMode === "cell" ? Ne(ue(a, this.collection)).key : a.key;
5687
+ return this.isRow(a) && this.focusMode === "cell" ? Ne(se(a, this.collection)).key : a.key;
5688
5688
  }
5689
5689
  l = this.findNextKey(l, (u) => u.type === "item"), l == null && !o && (l = this.getFirstKey(), o = !0);
5690
5690
  }
@@ -6239,7 +6239,7 @@ function Ep(t) {
6239
6239
  return t && t.__esModule ? t.default : t;
6240
6240
  }
6241
6241
  function Sp(t) {
6242
- let e = ft(Ep(el), "@react-aria/grid"), n = Li(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window, l = V(() => {
6242
+ let e = ft(Ep(el), "@react-aria/grid"), n = Li(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window, l = H(() => {
6243
6243
  let o = t.selectionManager.selectionMode, a = t.selectionManager.selectionBehavior, u;
6244
6244
  return r && (u = e.format("longPressToSelect")), a === "replace" && o !== "none" && t.hasItemActions ? u : void 0;
6245
6245
  }, [
@@ -6257,7 +6257,7 @@ function Cp(t, e, n) {
6257
6257
  let d = In({
6258
6258
  usage: "search",
6259
6259
  sensitivity: "base"
6260
- }), { direction: f } = He(), p = e.selectionManager.disabledBehavior, m = V(() => l || new Fa({
6260
+ }), { direction: f } = He(), p = e.selectionManager.disabledBehavior, m = H(() => l || new Fa({
6261
6261
  collection: e.collection,
6262
6262
  disabledKeys: e.disabledKeys,
6263
6263
  disabledBehavior: p,
@@ -6280,7 +6280,7 @@ function Cp(t, e, n) {
6280
6280
  keyboardDelegate: m,
6281
6281
  isVirtualized: r,
6282
6282
  scrollRef: o
6283
- }), g = he(t.id);
6283
+ }), g = me(t.id);
6284
6284
  Qr.set(e, {
6285
6285
  keyboardDelegate: m,
6286
6286
  actions: {
@@ -6291,7 +6291,7 @@ function Cp(t, e, n) {
6291
6291
  let C = Sp({
6292
6292
  selectionManager: c,
6293
6293
  hasItemActions: !!(u || s)
6294
- }), S = fe(t, {
6294
+ }), x = pe(t, {
6295
6295
  labelable: !0
6296
6296
  }), $ = X((R) => {
6297
6297
  if (c.isFocused) {
@@ -6301,32 +6301,32 @@ function Cp(t, e, n) {
6301
6301
  R.currentTarget.contains(R.target) && c.setFocused(!0);
6302
6302
  }, [
6303
6303
  c
6304
- ]), D = V(() => ({
6304
+ ]), T = H(() => ({
6305
6305
  onBlur: y.onBlur,
6306
6306
  onFocus: $
6307
6307
  }), [
6308
6308
  $,
6309
6309
  y.onBlur
6310
- ]), P = ef(n, {
6310
+ ]), w = ef(n, {
6311
6311
  isDisabled: e.collection.size !== 0
6312
- }), k = H(
6313
- S,
6312
+ }), P = W(
6313
+ x,
6314
6314
  {
6315
6315
  role: "grid",
6316
6316
  id: g,
6317
6317
  "aria-multiselectable": c.selectionMode === "multiple" ? "true" : void 0
6318
6318
  },
6319
- e.isKeyboardNavigationDisabled ? D : y,
6319
+ e.isKeyboardNavigationDisabled ? T : y,
6320
6320
  // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
6321
6321
  e.collection.size === 0 && {
6322
- tabIndex: P ? -1 : 0
6322
+ tabIndex: w ? -1 : 0
6323
6323
  },
6324
6324
  C
6325
6325
  );
6326
- return r && (k["aria-rowcount"] = e.collection.size, k["aria-colcount"] = e.collection.columnCount), xp({
6326
+ return r && (P["aria-rowcount"] = e.collection.size, P["aria-colcount"] = e.collection.columnCount), xp({
6327
6327
  getRowText: a
6328
6328
  }, e), {
6329
- gridProps: k
6329
+ gridProps: P
6330
6330
  };
6331
6331
  }
6332
6332
  function wp() {
@@ -6362,13 +6362,13 @@ function mu(t, e, n) {
6362
6362
  let $ = $e(n.current);
6363
6363
  if (i === "child") {
6364
6364
  if (n.current.contains(document.activeElement) && n.current !== document.activeElement) return;
6365
- let D = e.selectionManager.childFocusStrategy === "last" ? ar($) : $.firstChild();
6366
- if (D) {
6367
- ve(D);
6365
+ let T = e.selectionManager.childFocusStrategy === "last" ? ar($) : $.firstChild();
6366
+ if (T) {
6367
+ he(T);
6368
6368
  return;
6369
6369
  }
6370
6370
  }
6371
- (d.current != null && r.key !== d.current || !n.current.contains(document.activeElement)) && ve(n.current);
6371
+ (d.current != null && r.key !== d.current || !n.current.contains(document.activeElement)) && he(n.current);
6372
6372
  }, { itemProps: p, isPressed: m } = _n({
6373
6373
  selectionManager: e.selectionManager,
6374
6374
  key: r.key,
@@ -6378,16 +6378,16 @@ function mu(t, e, n) {
6378
6378
  shouldSelectOnPressUp: o,
6379
6379
  onAction: c ? () => c(r.key) : a,
6380
6380
  isDisabled: e.collection.size === 0
6381
- }), C = H(p, {
6381
+ }), C = W(p, {
6382
6382
  role: "gridcell",
6383
6383
  onKeyDownCapture: ($) => {
6384
6384
  if (!$.currentTarget.contains($.target) || e.isKeyboardNavigationDisabled) return;
6385
- let D = $e(n.current);
6386
- switch (D.currentNode = document.activeElement, $.key) {
6385
+ let T = $e(n.current);
6386
+ switch (T.currentNode = document.activeElement, $.key) {
6387
6387
  case "ArrowLeft": {
6388
- let P = u === "rtl" ? D.nextNode() : D.previousNode();
6389
- if (i === "child" && P === n.current && (P = null), $.preventDefault(), $.stopPropagation(), P)
6390
- ve(P), Ze(P, {
6388
+ let w = u === "rtl" ? T.nextNode() : T.previousNode();
6389
+ if (i === "child" && w === n.current && (w = null), $.preventDefault(), $.stopPropagation(), w)
6390
+ he(w), Ze(w, {
6391
6391
  containingElement: Xe(n.current)
6392
6392
  });
6393
6393
  else {
@@ -6395,18 +6395,18 @@ function mu(t, e, n) {
6395
6395
  n.current.parentElement.dispatchEvent(new KeyboardEvent($.nativeEvent.type, $.nativeEvent));
6396
6396
  break;
6397
6397
  }
6398
- i === "cell" && u === "rtl" ? (ve(n.current), Ze(n.current, {
6398
+ i === "cell" && u === "rtl" ? (he(n.current), Ze(n.current, {
6399
6399
  containingElement: Xe(n.current)
6400
- })) : (D.currentNode = n.current, P = u === "rtl" ? D.firstChild() : ar(D), P && (ve(P), Ze(P, {
6400
+ })) : (T.currentNode = n.current, w = u === "rtl" ? T.firstChild() : ar(T), w && (he(w), Ze(w, {
6401
6401
  containingElement: Xe(n.current)
6402
6402
  })));
6403
6403
  }
6404
6404
  break;
6405
6405
  }
6406
6406
  case "ArrowRight": {
6407
- let P = u === "rtl" ? D.previousNode() : D.nextNode();
6408
- if (i === "child" && P === n.current && (P = null), $.preventDefault(), $.stopPropagation(), P)
6409
- ve(P), Ze(P, {
6407
+ let w = u === "rtl" ? T.previousNode() : T.nextNode();
6408
+ if (i === "child" && w === n.current && (w = null), $.preventDefault(), $.stopPropagation(), w)
6409
+ he(w), Ze(w, {
6410
6410
  containingElement: Xe(n.current)
6411
6411
  });
6412
6412
  else {
@@ -6414,9 +6414,9 @@ function mu(t, e, n) {
6414
6414
  n.current.parentElement.dispatchEvent(new KeyboardEvent($.nativeEvent.type, $.nativeEvent));
6415
6415
  break;
6416
6416
  }
6417
- i === "cell" && u === "ltr" ? (ve(n.current), Ze(n.current, {
6417
+ i === "cell" && u === "ltr" ? (he(n.current), Ze(n.current, {
6418
6418
  containingElement: Xe(n.current)
6419
- })) : (D.currentNode = n.current, P = u === "rtl" ? ar(D) : D.firstChild(), P && (ve(P), Ze(P, {
6419
+ })) : (T.currentNode = n.current, w = u === "rtl" ? ar(T) : T.firstChild(), w && (he(w), Ze(w, {
6420
6420
  containingElement: Xe(n.current)
6421
6421
  })));
6422
6422
  }
@@ -6438,11 +6438,11 @@ function mu(t, e, n) {
6438
6438
  });
6439
6439
  }
6440
6440
  });
6441
- var S;
6442
- return l && (C["aria-colindex"] = ((S = r.colIndex) !== null && S !== void 0 ? S : r.index) + 1), o && C.tabIndex != null && C.onPointerDown == null && (C.onPointerDown = ($) => {
6443
- let D = $.currentTarget, P = D.getAttribute("tabindex");
6444
- D.removeAttribute("tabindex"), requestAnimationFrame(() => {
6445
- D.setAttribute("tabindex", P);
6441
+ var x;
6442
+ return l && (C["aria-colindex"] = ((x = r.colIndex) !== null && x !== void 0 ? x : r.index) + 1), o && C.tabIndex != null && C.onPointerDown == null && (C.onPointerDown = ($) => {
6443
+ let T = $.currentTarget, w = T.getAttribute("tabindex");
6444
+ T.removeAttribute("tabindex"), requestAnimationFrame(() => {
6445
+ T.setAttribute("tabindex", w);
6446
6446
  });
6447
6447
  }), {
6448
6448
  gridCellProps: C,
@@ -6471,23 +6471,23 @@ function Dp(t, e, n) {
6471
6471
  onPress() {
6472
6472
  e.setSelectedValue(r);
6473
6473
  }
6474
- }), { focusableProps: g } = Tt(H(t, {
6474
+ }), { focusableProps: g } = Tt(W(t, {
6475
6475
  onFocus: () => e.setLastFocusedValue(r)
6476
- }), n), C = H(f, g), S = fe(t, {
6476
+ }), n), C = W(f, g), x = pe(t, {
6477
6477
  labelable: !0
6478
6478
  }), $ = -1;
6479
6479
  e.selectedValue != null ? e.selectedValue === r && ($ = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && ($ = 0), a && ($ = void 0);
6480
- let { name: D, descriptionId: P, errorMessageId: k, validationBehavior: R } = bu.get(e);
6480
+ let { name: T, descriptionId: w, errorMessageId: P, validationBehavior: R } = bu.get(e);
6481
6481
  return Tn(n, e.selectedValue, e.setSelectedValue), Wr({
6482
6482
  validationBehavior: R
6483
6483
  }, e, n), {
6484
- labelProps: H(m, {
6484
+ labelProps: W(m, {
6485
6485
  onClick: (v) => v.preventDefault()
6486
6486
  }),
6487
- inputProps: H(S, {
6487
+ inputProps: W(x, {
6488
6488
  ...C,
6489
6489
  type: "radio",
6490
- name: D,
6490
+ name: T,
6491
6491
  tabIndex: $,
6492
6492
  disabled: a,
6493
6493
  required: e.isRequired && R === "native",
@@ -6496,8 +6496,8 @@ function Dp(t, e, n) {
6496
6496
  onChange: d,
6497
6497
  "aria-describedby": [
6498
6498
  t["aria-describedby"],
6499
- e.isInvalid ? k : null,
6500
- P
6499
+ e.isInvalid ? P : null,
6500
+ w
6501
6501
  ].filter(Boolean).join(" ") || void 0
6502
6502
  }),
6503
6503
  isDisabled: a,
@@ -6513,49 +6513,49 @@ function kp(t, e) {
6513
6513
  labelElementType: "span",
6514
6514
  isInvalid: e.isInvalid,
6515
6515
  errorMessage: t.errorMessage || c
6516
- }), g = fe(t, {
6516
+ }), g = pe(t, {
6517
6517
  labelable: !0
6518
6518
  }), { focusWithinProps: C } = qt({
6519
- onBlurWithin(D) {
6520
- var P;
6521
- (P = t.onBlur) === null || P === void 0 || P.call(t, D), e.selectedValue || e.setLastFocusedValue(null);
6519
+ onBlurWithin(T) {
6520
+ var w;
6521
+ (w = t.onBlur) === null || w === void 0 || w.call(t, T), e.selectedValue || e.setLastFocusedValue(null);
6522
6522
  },
6523
6523
  onFocusWithin: t.onFocus,
6524
6524
  onFocusWithinChange: t.onFocusChange
6525
- }), S = (D) => {
6526
- let P;
6527
- switch (D.key) {
6525
+ }), x = (T) => {
6526
+ let w;
6527
+ switch (T.key) {
6528
6528
  case "ArrowRight":
6529
- u === "rtl" && o !== "vertical" ? P = "prev" : P = "next";
6529
+ u === "rtl" && o !== "vertical" ? w = "prev" : w = "next";
6530
6530
  break;
6531
6531
  case "ArrowLeft":
6532
- u === "rtl" && o !== "vertical" ? P = "next" : P = "prev";
6532
+ u === "rtl" && o !== "vertical" ? w = "next" : w = "prev";
6533
6533
  break;
6534
6534
  case "ArrowDown":
6535
- P = "next";
6535
+ w = "next";
6536
6536
  break;
6537
6537
  case "ArrowUp":
6538
- P = "prev";
6538
+ w = "prev";
6539
6539
  break;
6540
6540
  default:
6541
6541
  return;
6542
6542
  }
6543
- D.preventDefault();
6544
- let k = $e(D.currentTarget, {
6545
- from: D.target
6543
+ T.preventDefault();
6544
+ let P = $e(T.currentTarget, {
6545
+ from: T.target
6546
6546
  }), R;
6547
- P === "next" ? (R = k.nextNode(), R || (k.currentNode = D.currentTarget, R = k.firstChild())) : (R = k.previousNode(), R || (k.currentNode = D.currentTarget, R = k.lastChild())), R && (R.focus(), e.setSelectedValue(R.value));
6548
- }, $ = he(n);
6547
+ w === "next" ? (R = P.nextNode(), R || (P.currentNode = T.currentTarget, R = P.firstChild())) : (R = P.previousNode(), R || (P.currentNode = T.currentTarget, R = P.lastChild())), R && (R.focus(), e.setSelectedValue(R.value));
6548
+ }, $ = me(n);
6549
6549
  return bu.set(e, {
6550
6550
  name: $,
6551
6551
  descriptionId: m.id,
6552
6552
  errorMessageId: y.id,
6553
6553
  validationBehavior: a
6554
6554
  }), {
6555
- radioGroupProps: H(g, {
6555
+ radioGroupProps: W(g, {
6556
6556
  // https://www.w3.org/TR/wai-aria-1.2/#radiogroup
6557
6557
  role: "radiogroup",
6558
- onKeyDown: S,
6558
+ onKeyDown: x,
6559
6559
  "aria-invalid": e.isInvalid || void 0,
6560
6560
  "aria-errormessage": t["aria-errormessage"],
6561
6561
  "aria-readonly": r || void 0,
@@ -6751,8 +6751,8 @@ function Tp(t) {
6751
6751
  }
6752
6752
  function Ap(t, e, n) {
6753
6753
  let r = ft(Tp(Ju), "@react-aria/searchfield"), { isDisabled: l, isReadOnly: i, onSubmit: o, onClear: a, type: u = "search" } = t, s = (C) => {
6754
- const S = C.key;
6755
- S === "Enter" && (l || i) && C.preventDefault(), !(l || i) && (S === "Enter" && o && (C.preventDefault(), o(e.value)), S === "Escape" && (e.value === "" ? C.continuePropagation() : (e.setValue(""), a && a())));
6754
+ const x = C.key;
6755
+ x === "Enter" && (l || i) && C.preventDefault(), !(l || i) && (x === "Enter" && o && (C.preventDefault(), o(e.value)), x === "Escape" && (e.value === "" ? C.continuePropagation() : (e.setValue(""), a && a())));
6756
6756
  }, c = () => {
6757
6757
  e.setValue(""), a && a();
6758
6758
  }, d = () => {
@@ -6790,7 +6790,7 @@ function es(t, e, n) {
6790
6790
  let { keyboardDelegate: r, isDisabled: l, isRequired: i, name: o, validationBehavior: a = "aria" } = t, u = In({
6791
6791
  usage: "search",
6792
6792
  sensitivity: "base"
6793
- }), s = V(() => r || new Vo(e.collection, e.disabledKeys, null, u), [
6793
+ }), s = H(() => r || new Vo(e.collection, e.disabledKeys, null, u), [
6794
6794
  r,
6795
6795
  e.collection,
6796
6796
  e.disabledKeys,
@@ -6819,16 +6819,16 @@ function es(t, e, n) {
6819
6819
  onTypeSelect(v) {
6820
6820
  e.setSelectedKey(v);
6821
6821
  }
6822
- }), { isInvalid: m, validationErrors: y, validationDetails: g } = e.displayValidation, { labelProps: C, fieldProps: S, descriptionProps: $, errorMessageProps: D } = Gr({
6822
+ }), { isInvalid: m, validationErrors: y, validationDetails: g } = e.displayValidation, { labelProps: C, fieldProps: x, descriptionProps: $, errorMessageProps: T } = Gr({
6823
6823
  ...t,
6824
6824
  labelElementType: "span",
6825
6825
  isInvalid: m,
6826
6826
  errorMessage: t.errorMessage || y
6827
6827
  });
6828
6828
  p.onKeyDown = p.onKeyDownCapture, delete p.onKeyDownCapture;
6829
- let P = fe(t, {
6829
+ let w = pe(t, {
6830
6830
  labelable: !0
6831
- }), k = H(p, c, S), R = he();
6831
+ }), P = W(p, c, x), R = me();
6832
6832
  return Qu.set(e, {
6833
6833
  isDisabled: l,
6834
6834
  isRequired: i,
@@ -6841,15 +6841,15 @@ function es(t, e, n) {
6841
6841
  t.isDisabled || (n.current.focus(), Ni("keyboard"));
6842
6842
  }
6843
6843
  },
6844
- triggerProps: H(P, {
6845
- ...k,
6844
+ triggerProps: W(w, {
6845
+ ...P,
6846
6846
  isDisabled: l,
6847
- onKeyDown: Ie(k.onKeyDown, f, t.onKeyDown),
6847
+ onKeyDown: Ie(P.onKeyDown, f, t.onKeyDown),
6848
6848
  onKeyUp: t.onKeyUp,
6849
6849
  "aria-labelledby": [
6850
6850
  R,
6851
- k["aria-labelledby"],
6852
- k["aria-label"] && !k["aria-labelledby"] ? k.id : null
6851
+ P["aria-labelledby"],
6852
+ P["aria-label"] && !P["aria-labelledby"] ? P.id : null
6853
6853
  ].filter(Boolean).join(" "),
6854
6854
  onFocus(v) {
6855
6855
  e.isFocused || (t.onFocus && t.onFocus(v), t.onFocusChange && t.onFocusChange(!0), e.setFocused(!0));
@@ -6872,12 +6872,12 @@ function es(t, e, n) {
6872
6872
  v.currentTarget.contains(v.relatedTarget) || (t.onBlur && t.onBlur(v), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
6873
6873
  },
6874
6874
  "aria-labelledby": [
6875
- S["aria-labelledby"],
6876
- k["aria-label"] && !S["aria-labelledby"] ? k.id : null
6875
+ x["aria-labelledby"],
6876
+ P["aria-label"] && !x["aria-labelledby"] ? P.id : null
6877
6877
  ].filter(Boolean).join(" ")
6878
6878
  },
6879
6879
  descriptionProps: $,
6880
- errorMessageProps: D,
6880
+ errorMessageProps: T,
6881
6881
  isInvalid: m,
6882
6882
  validationErrors: y,
6883
6883
  validationDetails: g
@@ -7434,12 +7434,12 @@ class Fp extends Fa {
7434
7434
  let n = this.collection.getItem(e);
7435
7435
  if (n) {
7436
7436
  if (n.type === "column") {
7437
- let r = Ne(ue(n, this.collection));
7437
+ let r = Ne(se(n, this.collection));
7438
7438
  if (r) return r.key;
7439
7439
  let l = this.getFirstKey();
7440
7440
  if (l == null) return;
7441
7441
  let i = this.collection.getItem(l);
7442
- return Je(ue(i, this.collection), n.index).key;
7442
+ return Je(se(i, this.collection), n.index).key;
7443
7443
  }
7444
7444
  return super.getKeyBelow(e);
7445
7445
  }
@@ -7458,14 +7458,14 @@ class Fp extends Fa {
7458
7458
  let n = this.findNextKey(e.key, (l) => l.type === "column");
7459
7459
  if (n != null) return n;
7460
7460
  let r = this.collection.headerRows[e.level];
7461
- for (let l of ue(r, this.collection))
7461
+ for (let l of se(r, this.collection))
7462
7462
  if (l.type === "column") return l.key;
7463
7463
  }
7464
7464
  findPreviousColumnKey(e) {
7465
7465
  let n = this.findPreviousKey(e.key, (i) => i.type === "column");
7466
7466
  if (n != null) return n;
7467
7467
  let r = this.collection.headerRows[e.level], l = [
7468
- ...ue(r, this.collection)
7468
+ ...se(r, this.collection)
7469
7469
  ];
7470
7470
  for (let i = l.length - 1; i >= 0; i--) {
7471
7471
  let o = l[i];
@@ -7491,7 +7491,7 @@ class Fp extends Fa {
7491
7491
  let o = !1;
7492
7492
  for (; l != null; ) {
7493
7493
  let a = r.getItem(l);
7494
- for (let u of ue(a, this.collection)) {
7494
+ for (let u of se(a, this.collection)) {
7495
7495
  let s = r.columns[u.index];
7496
7496
  if (r.rowHeaderColumnKeys.has(s.key) && u.textValue) {
7497
7497
  let c = u.textValue.slice(0, e.length);
@@ -7515,7 +7515,7 @@ function Np(t, e, n) {
7515
7515
  let { keyboardDelegate: r, isVirtualized: l, layoutDelegate: i, layout: o } = t, a = In({
7516
7516
  usage: "search",
7517
7517
  sensitivity: "base"
7518
- }), { direction: u } = He(), s = e.selectionManager.disabledBehavior, c = V(() => r || new Fp({
7518
+ }), { direction: u } = He(), s = e.selectionManager.disabledBehavior, c = H(() => r || new Fp({
7519
7519
  collection: e.collection,
7520
7520
  disabledKeys: e.disabledKeys,
7521
7521
  disabledBehavior: s,
@@ -7534,7 +7534,7 @@ function Np(t, e, n) {
7534
7534
  a,
7535
7535
  i,
7536
7536
  o
7537
- ]), d = he(t.id);
7537
+ ]), d = me(t.id);
7538
7538
  tl.set(e, d);
7539
7539
  let { gridProps: f } = Cp({
7540
7540
  ...t,
@@ -7542,9 +7542,9 @@ function Np(t, e, n) {
7542
7542
  keyboardDelegate: c
7543
7543
  }, e, n);
7544
7544
  l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Sn() && "expandedKeys" in e && (f.role = "treegrid");
7545
- let { column: p, direction: m } = e.sortDescriptor || {}, y = ft(Rp(nl), "@react-aria/table"), g = V(() => {
7546
- var S;
7547
- let $ = (S = e.collection.columns.find((D) => D.key === p)) === null || S === void 0 ? void 0 : S.textValue;
7545
+ let { column: p, direction: m } = e.sortDescriptor || {}, y = ft(Rp(nl), "@react-aria/table"), g = H(() => {
7546
+ var x;
7547
+ let $ = (x = e.collection.columns.find((T) => T.key === p)) === null || x === void 0 ? void 0 : x.textValue;
7548
7548
  return m && p ? y.format(`${m}Sort`, {
7549
7549
  columnName: $
7550
7550
  }) : void 0;
@@ -7558,7 +7558,7 @@ function Np(t, e, n) {
7558
7558
  }, [
7559
7559
  g
7560
7560
  ]), {
7561
- gridProps: H(f, C, {
7561
+ gridProps: W(f, C, {
7562
7562
  // merge sort description with long press information
7563
7563
  "aria-describedby": [
7564
7564
  C["aria-describedby"],
@@ -7594,7 +7594,7 @@ function Op(t, e, n) {
7594
7594
  i.key
7595
7595
  ]), {
7596
7596
  columnHeaderProps: {
7597
- ...H(
7597
+ ...W(
7598
7598
  a,
7599
7599
  s,
7600
7600
  c,
@@ -7644,7 +7644,7 @@ function zp(t, e, n) {
7644
7644
  let f = vd(r.props), p = o.hasAction ? f : {};
7645
7645
  return {
7646
7646
  rowProps: {
7647
- ...H(i, u, p),
7647
+ ...W(i, u, p),
7648
7648
  "aria-labelledby": Ip(e, r.key)
7649
7649
  },
7650
7650
  ...o
@@ -7669,27 +7669,27 @@ function Hp() {
7669
7669
  return wp();
7670
7670
  }
7671
7671
  function Wp(t, e) {
7672
- let n = fe(t, {
7672
+ let n = pe(t, {
7673
7673
  labelable: !0
7674
7674
  }), { hoverProps: r } = kt({
7675
7675
  onHoverStart: () => e == null ? void 0 : e.open(!0),
7676
7676
  onHoverEnd: () => e == null ? void 0 : e.close()
7677
7677
  });
7678
7678
  return {
7679
- tooltipProps: H(n, r, {
7679
+ tooltipProps: W(n, r, {
7680
7680
  role: "tooltip"
7681
7681
  })
7682
7682
  };
7683
7683
  }
7684
7684
  function Up(t, e, n) {
7685
- let { isDisabled: r, trigger: l } = t, i = he(), o = M(!1), a = M(!1), u = () => {
7685
+ let { isDisabled: r, trigger: l } = t, i = me(), o = M(!1), a = M(!1), u = () => {
7686
7686
  (o.current || a.current) && e.open(a.current);
7687
7687
  }, s = (C) => {
7688
7688
  !o.current && !a.current && e.close(C);
7689
7689
  };
7690
7690
  L(() => {
7691
- let C = (S) => {
7692
- n && n.current && S.key === "Escape" && (S.stopPropagation(), e.close(!0));
7691
+ let C = (x) => {
7692
+ n && n.current && x.key === "Escape" && (x.stopPropagation(), e.close(!0));
7693
7693
  };
7694
7694
  if (e.isOpen)
7695
7695
  return document.addEventListener("keydown", C, !0), () => {
@@ -7721,7 +7721,7 @@ function Up(t, e, n) {
7721
7721
  return {
7722
7722
  triggerProps: {
7723
7723
  "aria-describedby": e.isOpen ? i : void 0,
7724
- ...H(g, y, {
7724
+ ...W(g, y, {
7725
7725
  onPointerDown: f,
7726
7726
  onKeyDown: f
7727
7727
  })
@@ -7796,17 +7796,17 @@ function Gp(t, e) {
7796
7796
  return !0;
7797
7797
  }
7798
7798
  function rl(t) {
7799
- let { selectionMode: e = "none", disallowEmptySelection: n, allowDuplicateSelectionEvents: r, selectionBehavior: l = "toggle", disabledBehavior: i = "all" } = t, o = M(!1), [, a] = z(!1), u = M(null), s = M(null), [, c] = z(null), d = V(() => ai(t.selectedKeys), [
7799
+ let { selectionMode: e = "none", disallowEmptySelection: n, allowDuplicateSelectionEvents: r, selectionBehavior: l = "toggle", disabledBehavior: i = "all" } = t, o = M(!1), [, a] = z(!1), u = M(null), s = M(null), [, c] = z(null), d = H(() => ai(t.selectedKeys), [
7800
7800
  t.selectedKeys
7801
- ]), f = V(() => ai(t.defaultSelectedKeys, new Te()), [
7801
+ ]), f = H(() => ai(t.defaultSelectedKeys, new Te()), [
7802
7802
  t.defaultSelectedKeys
7803
- ]), [p, m] = rt(d, f, t.onSelectionChange), y = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
7803
+ ]), [p, m] = rt(d, f, t.onSelectionChange), y = H(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
7804
7804
  t.disabledKeys
7805
7805
  ]), [g, C] = z(l);
7806
7806
  l === "replace" && g === "toggle" && typeof p == "object" && p.size === 0 && C("replace");
7807
- let S = M(l);
7807
+ let x = M(l);
7808
7808
  return L(() => {
7809
- l !== S.current && (C(l), S.current = l);
7809
+ l !== x.current && (C(l), x.current = l);
7810
7810
  }, [
7811
7811
  l
7812
7812
  ]), {
@@ -7826,8 +7826,8 @@ function rl(t) {
7826
7826
  get childFocusStrategy() {
7827
7827
  return s.current;
7828
7828
  },
7829
- setFocusedKey($, D = "first") {
7830
- u.current = $, s.current = D, c($);
7829
+ setFocusedKey($, T = "first") {
7830
+ u.current = $, s.current = T, c($);
7831
7831
  },
7832
7832
  selectedKeys: p,
7833
7833
  setSelectedKeys($) {
@@ -8035,7 +8035,7 @@ class ll {
8035
8035
  for (; r != null; ) {
8036
8036
  if (this.canSelectItem(r)) {
8037
8037
  let l = this.collection.getItem(r);
8038
- l.type === "item" && e.push(r), l.hasChildNodes && (this.allowsCellSelection || l.type !== "item") && n(Ne(ue(l, this.collection)).key);
8038
+ l.type === "item" && e.push(r), l.hasChildNodes && (this.allowsCellSelection || l.type !== "item") && n(Ne(se(l, this.collection)).key);
8039
8039
  }
8040
8040
  r = this.collection.getKeyAfter(r);
8041
8041
  }
@@ -8101,15 +8101,15 @@ class ll {
8101
8101
  }
8102
8102
  }
8103
8103
  function Yp(t) {
8104
- let { filter: e, layoutDelegate: n } = t, r = rl(t), l = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8104
+ let { filter: e, layoutDelegate: n } = t, r = rl(t), l = H(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8105
8105
  t.disabledKeys
8106
8106
  ]), i = X((c) => e ? new oi(e(c)) : new oi(c), [
8107
8107
  e
8108
- ]), o = V(() => ({
8108
+ ]), o = H(() => ({
8109
8109
  suppressTextValueWarning: t.suppressTextValueWarning
8110
8110
  }), [
8111
8111
  t.suppressTextValueWarning
8112
- ]), a = Zr(t, i, o), u = V(() => new ll(a, r, {
8112
+ ]), a = Zr(t, i, o), u = H(() => new ll(a, r, {
8113
8113
  layoutDelegate: n
8114
8114
  }), [
8115
8115
  a,
@@ -8119,7 +8119,7 @@ function Yp(t) {
8119
8119
  const s = M(null);
8120
8120
  return L(() => {
8121
8121
  if (r.focusedKey != null && !a.getItem(r.focusedKey) && s.current) {
8122
- const C = s.current.getItem(r.focusedKey), S = [
8122
+ const C = s.current.getItem(r.focusedKey), x = [
8123
8123
  ...s.current.getKeys()
8124
8124
  ].map((v) => {
8125
8125
  const B = s.current.getItem(v);
@@ -8131,22 +8131,22 @@ function Yp(t) {
8131
8131
  return (B == null ? void 0 : B.type) === "item" ? B : null;
8132
8132
  }).filter((v) => v !== null);
8133
8133
  var c, d;
8134
- const D = ((c = S == null ? void 0 : S.length) !== null && c !== void 0 ? c : 0) - ((d = $ == null ? void 0 : $.length) !== null && d !== void 0 ? d : 0);
8134
+ const T = ((c = x == null ? void 0 : x.length) !== null && c !== void 0 ? c : 0) - ((d = $ == null ? void 0 : $.length) !== null && d !== void 0 ? d : 0);
8135
8135
  var f, p, m;
8136
- let P = Math.min(D > 1 ? Math.max(((f = C == null ? void 0 : C.index) !== null && f !== void 0 ? f : 0) - D + 1, 0) : (p = C == null ? void 0 : C.index) !== null && p !== void 0 ? p : 0, ((m = $ == null ? void 0 : $.length) !== null && m !== void 0 ? m : 0) - 1), k = null, R = !1;
8137
- for (; P >= 0; ) {
8138
- if (!u.isDisabled($[P].key)) {
8139
- k = $[P];
8136
+ let w = Math.min(T > 1 ? Math.max(((f = C == null ? void 0 : C.index) !== null && f !== void 0 ? f : 0) - T + 1, 0) : (p = C == null ? void 0 : C.index) !== null && p !== void 0 ? p : 0, ((m = $ == null ? void 0 : $.length) !== null && m !== void 0 ? m : 0) - 1), P = null, R = !1;
8137
+ for (; w >= 0; ) {
8138
+ if (!u.isDisabled($[w].key)) {
8139
+ P = $[w];
8140
8140
  break;
8141
8141
  }
8142
- if (P < $.length - 1 && !R) P++;
8142
+ if (w < $.length - 1 && !R) w++;
8143
8143
  else {
8144
8144
  R = !0;
8145
8145
  var y, g;
8146
- P > ((y = C == null ? void 0 : C.index) !== null && y !== void 0 ? y : 0) && (P = (g = C == null ? void 0 : C.index) !== null && g !== void 0 ? g : 0), P--;
8146
+ w > ((y = C == null ? void 0 : C.index) !== null && y !== void 0 ? y : 0) && (w = (g = C == null ? void 0 : C.index) !== null && g !== void 0 ? g : 0), w--;
8147
8147
  }
8148
8148
  }
8149
- r.setFocusedKey(k ? k.key : null);
8149
+ r.setFocusedKey(P ? P.key : null);
8150
8150
  }
8151
8151
  s.current = a;
8152
8152
  }, [
@@ -8162,7 +8162,7 @@ function Yp(t) {
8162
8162
  }
8163
8163
  function qp(t) {
8164
8164
  var e;
8165
- let [n, r] = rt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), l = V(() => n != null ? [
8165
+ let [n, r] = rt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), l = H(() => n != null ? [
8166
8166
  n
8167
8167
  ] : [], [
8168
8168
  n
@@ -8242,7 +8242,7 @@ function Xp(t) {
8242
8242
  }
8243
8243
  let Zp = Math.round(Math.random() * 1e10), Jp = 0;
8244
8244
  function Qp(t) {
8245
- let e = V(() => t.name || `radio-group-${Zp}-${++Jp}`, [
8245
+ let e = H(() => t.name || `radio-group-${Zp}-${++Jp}`, [
8246
8246
  t.name
8247
8247
  ]);
8248
8248
  var n;
@@ -8303,7 +8303,7 @@ function Rs(t) {
8303
8303
  };
8304
8304
  }
8305
8305
  function tv(t) {
8306
- let { collection: e, focusMode: n } = t, r = t.UNSAFE_selectionState || rl(t), l = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8306
+ let { collection: e, focusMode: n } = t, r = t.UNSAFE_selectionState || rl(t), l = H(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8307
8307
  t.disabledKeys
8308
8308
  ]), i = r.setFocusedKey;
8309
8309
  r.setFocusedKey = (u, s) => {
@@ -8311,13 +8311,13 @@ function tv(t) {
8311
8311
  let f = e.getItem(u);
8312
8312
  if ((f == null ? void 0 : f.type) === "item") {
8313
8313
  var c, d;
8314
- let p = ue(f, e);
8314
+ let p = se(f, e);
8315
8315
  s === "last" ? u = (c = Qe(p)) === null || c === void 0 ? void 0 : c.key : u = (d = Ne(p)) === null || d === void 0 ? void 0 : d.key;
8316
8316
  }
8317
8317
  }
8318
8318
  i(u, s);
8319
8319
  };
8320
- let o = V(() => new ll(e, r), [
8320
+ let o = H(() => new ll(e, r), [
8321
8321
  e,
8322
8322
  r
8323
8323
  ]);
@@ -8335,7 +8335,7 @@ function tv(t) {
8335
8335
  }
8336
8336
  if (m) {
8337
8337
  const y = m.hasChildNodes ? [
8338
- ...ue(m, e)
8338
+ ...se(m, e)
8339
8339
  ] : [], g = m.hasChildNodes && s !== u && u.index < y.length ? y[u.index].key : m.key;
8340
8340
  r.setFocusedKey(g);
8341
8341
  } else r.setFocusedKey(null);
@@ -8644,7 +8644,7 @@ const iv = {
8644
8644
  descending: "ascending"
8645
8645
  };
8646
8646
  function ov(t) {
8647
- let [e, n] = z(!1), { selectionMode: r = "none", showSelectionCheckboxes: l, showDragButtons: i } = t, o = V(() => ({
8647
+ let [e, n] = z(!1), { selectionMode: r = "none", showSelectionCheckboxes: l, showDragButtons: i } = t, o = H(() => ({
8648
8648
  showSelectionCheckboxes: l && r !== "none",
8649
8649
  showDragButtons: i,
8650
8650
  selectionMode: r,
@@ -8842,7 +8842,7 @@ let cv = js;
8842
8842
  const dv = 1500, si = 500;
8843
8843
  let it = {}, fv = 0, Nt = !1, Re = null, ot = null;
8844
8844
  function Vs(t = {}) {
8845
- let { delay: e = dv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = Rn(t), o = V(() => `${++fv}`, []), a = M(void 0), u = M(i), s = () => {
8845
+ let { delay: e = dv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = Rn(t), o = H(() => `${++fv}`, []), a = M(void 0), u = M(i), s = () => {
8846
8846
  it[o] = f;
8847
8847
  }, c = () => {
8848
8848
  for (let m in it) m !== o && (it[m](!0), delete it[m]);
@@ -8921,7 +8921,7 @@ class pv {
8921
8921
  }
8922
8922
  }
8923
8923
  function Hs(t) {
8924
- let { onExpandedChange: e } = t, [n, r] = rt(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), l = rl(t), i = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8924
+ let { onExpandedChange: e } = t, [n, r] = rt(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), l = rl(t), i = H(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8925
8925
  t.disabledKeys
8926
8926
  ]), o = Zr(t, X((u) => new pv(u, {
8927
8927
  expandedKeys: n
@@ -8977,7 +8977,7 @@ function mv({
8977
8977
  "aria-label": "Background overlay",
8978
8978
  role: "dialog",
8979
8979
  "aria-modal": "true",
8980
- className: W(
8980
+ className: U(
8981
8981
  "proton-ScreenOverlay__background",
8982
8982
  "proton-ScreenOverlay__z-index",
8983
8983
  t ? "proton-ScreenOverlay__fade-in" : "proton-ScreenOverlay__overlay"
@@ -9014,24 +9014,24 @@ const bv = ({ children: t }) => {
9014
9014
  "data-testid": c
9015
9015
  }) => {
9016
9016
  hv(t);
9017
- const { className: d, theme: f } = Ae(), [p, m] = z(!1), [y, g] = z(0), C = M(null), S = M(null), $ = M(window.location.pathname), D = o && o.length > 0, P = () => {
9017
+ const { className: d, theme: f } = Ae(), [p, m] = z(!1), [y, g] = z(0), C = M(null), x = M(null), $ = M(window.location.pathname), T = o && o.length > 0, w = () => {
9018
9018
  m(!0), g(0), setTimeout(() => {
9019
9019
  s == null || s(), m(!1);
9020
9020
  }, 300);
9021
- }, k = D ? Hs({
9021
+ }, P = T ? Hs({
9022
9022
  items: o,
9023
9023
  children: o.map((E) => /* @__PURE__ */ bi(Xr, { ...E, key: E.key }, E.label)),
9024
9024
  selectedKeys: new Set(n),
9025
9025
  onSelectionChange: (E) => u == null ? void 0 : u(E),
9026
9026
  selectionMode: e,
9027
9027
  disabledKeys: r
9028
- }) : null, { menuProps: R } = D ? Ba(
9028
+ }) : null, { menuProps: R } = T ? Ba(
9029
9029
  {
9030
9030
  autoFocus: !0,
9031
9031
  shouldFocusWrap: !0,
9032
9032
  onAction: (E) => {
9033
- var w, I;
9034
- return (I = (w = o.find((x) => x.key === E)) == null ? void 0 : w.onAction) == null ? void 0 : I.call(w, E);
9033
+ var D, N;
9034
+ return (N = (D = o.find((S) => S.key === E)) == null ? void 0 : D.onAction) == null ? void 0 : N.call(D, E);
9035
9035
  },
9036
9036
  onClose: () => s == null ? void 0 : s(),
9037
9037
  disabledKeys: r,
@@ -9040,15 +9040,15 @@ const bv = ({ children: t }) => {
9040
9040
  selectedKeys: n,
9041
9041
  "aria-label": "Action Menu"
9042
9042
  },
9043
- k,
9044
- S
9043
+ P,
9044
+ x
9045
9045
  ) : { menuProps: {} };
9046
9046
  L(() => {
9047
9047
  t && C.current && g(C.current.scrollHeight);
9048
9048
  }, [t, C]), L(() => {
9049
- a && ($.current && $.current !== location.pathname && P(), $.current = location.pathname);
9049
+ a && ($.current && $.current !== location.pathname && w(), $.current = location.pathname);
9050
9050
  }, [p, a]);
9051
- const v = C.current ? C.current.getBoundingClientRect().height > window.innerHeight : !1, B = l || D || i;
9051
+ const v = C.current ? C.current.getBoundingClientRect().height > window.innerHeight : !1, B = l || T || i;
9052
9052
  return t ? /* @__PURE__ */ b.jsx(bv, { children: /* @__PURE__ */ b.jsx(
9053
9053
  "div",
9054
9054
  {
@@ -9056,34 +9056,34 @@ const bv = ({ children: t }) => {
9056
9056
  style: {
9057
9057
  opacity: p ? 0 : 1
9058
9058
  },
9059
- children: /* @__PURE__ */ b.jsx(mv, { fadeIn: !0, onClose: P, children: /* @__PURE__ */ b.jsx(
9059
+ children: /* @__PURE__ */ b.jsx(mv, { fadeIn: !0, onClose: w, children: /* @__PURE__ */ b.jsx(
9060
9060
  "div",
9061
9061
  {
9062
9062
  "data-testid": c || "ActionMenu-wrapper",
9063
- className: W(
9063
+ className: U(
9064
9064
  "proton-ActionMenu__wrapper",
9065
9065
  v && "proton-ActionMenu__wrapper--scrollable"
9066
9066
  ),
9067
9067
  children: /* @__PURE__ */ b.jsx(
9068
9068
  "div",
9069
9069
  {
9070
- className: W("proton-ActionMenu__card", d),
9070
+ className: U("proton-ActionMenu__card", d),
9071
9071
  "data-testid": "ActionMenu-content",
9072
9072
  style: { height: `${y}px` },
9073
- children: /* @__PURE__ */ b.jsx("div", { ref: S, children: /* @__PURE__ */ b.jsx("div", { ...R, ref: C, children: B ? /* @__PURE__ */ b.jsxs(Kn, { autoFocus: !0, contain: !0, children: [
9074
- l && /* @__PURE__ */ b.jsx("div", { className: "proton-ActionMenu__content", children: typeof l == "function" ? l({ close: P }) : l }),
9075
- D && /* @__PURE__ */ b.jsx(
9073
+ children: /* @__PURE__ */ b.jsx("div", { ref: x, children: /* @__PURE__ */ b.jsx("div", { ...R, ref: C, children: B ? /* @__PURE__ */ b.jsxs(Kn, { autoFocus: !0, contain: !0, children: [
9074
+ l && /* @__PURE__ */ b.jsx("div", { className: "proton-ActionMenu__content", children: typeof l == "function" ? l({ close: w }) : l }),
9075
+ T && /* @__PURE__ */ b.jsx(
9076
9076
  "div",
9077
9077
  {
9078
- className: W(
9078
+ className: U(
9079
9079
  "proton-ActionMenu__list",
9080
9080
  e === "none" && "proton-ActionMenu__list--disabled"
9081
9081
  ),
9082
- children: Array.from(k.collection).map((E) => /* @__PURE__ */ b.jsx(
9082
+ children: Array.from(P.collection).map((E) => /* @__PURE__ */ b.jsx(
9083
9083
  gv,
9084
9084
  {
9085
9085
  item: E,
9086
- state: k,
9086
+ state: P,
9087
9087
  to: E.props.to
9088
9088
  },
9089
9089
  E.key
@@ -9099,7 +9099,7 @@ const bv = ({ children: t }) => {
9099
9099
  Gs,
9100
9100
  {
9101
9101
  variant: f === "dark" || f === "custom-dark" ? "translucent" : "secondary",
9102
- onPress: P,
9102
+ onPress: w,
9103
9103
  "data-testid": "ActionMenuItem-cancel",
9104
9104
  children: "Cancel"
9105
9105
  }
@@ -9147,7 +9147,7 @@ const bv = ({ children: t }) => {
9147
9147
  children: e,
9148
9148
  palette: n = _c
9149
9149
  }) => {
9150
- const r = M(null), l = yv[t], i = V(
9150
+ const r = M(null), l = yv[t], i = H(
9151
9151
  () => xv(n, t),
9152
9152
  [n, t]
9153
9153
  );
@@ -9195,16 +9195,16 @@ function xv(t, e) {
9195
9195
  case Pt.DARK:
9196
9196
  return {
9197
9197
  "--proton-control__background-color": en,
9198
- "--proton-control__text-color": ge.WHITE,
9199
- "--proton-control__border-color": ge.GRAY_DARK,
9200
- "--proton-control__shadow-color": ge.GRAY_DARK,
9198
+ "--proton-control__text-color": ye.WHITE,
9199
+ "--proton-control__border-color": ye.GRAY_DARK,
9200
+ "--proton-control__shadow-color": ye.GRAY_DARK,
9201
9201
  ...l
9202
9202
  };
9203
9203
  case Pt.LIGHT:
9204
9204
  return {
9205
- "--proton-control__background-color": ge.WHITE,
9206
- "--proton-control__text-color": ge.GRAY_DARK,
9207
- "--proton-control__border-color": ge.GRAY_LIGHT,
9205
+ "--proton-control__background-color": ye.WHITE,
9206
+ "--proton-control__text-color": ye.GRAY_DARK,
9207
+ "--proton-control__border-color": ye.GRAY_LIGHT,
9208
9208
  "--proton-control__shadow-color": Gn(
9209
9209
  en,
9210
9210
  0.9
@@ -9214,7 +9214,7 @@ function xv(t, e) {
9214
9214
  case Pt.CUSTOM_DARK:
9215
9215
  return {
9216
9216
  "--proton-control__background-color": en,
9217
- "--proton-control__text-color": ge.WHITE,
9217
+ "--proton-control__text-color": ye.WHITE,
9218
9218
  "--proton-control__border-color": r,
9219
9219
  "--proton-control__shadow-color": n,
9220
9220
  ...l
@@ -9222,9 +9222,9 @@ function xv(t, e) {
9222
9222
  default:
9223
9223
  return {
9224
9224
  "--proton-control__background-color": en,
9225
- "--proton-control__text-color": ge.WHITE,
9226
- "--proton-control__border-color": ge.GRAY_DARK,
9227
- "--proton-control__shadow-color": ge.GRAY_DARK,
9225
+ "--proton-control__text-color": ye.WHITE,
9226
+ "--proton-control__border-color": ye.GRAY_DARK,
9227
+ "--proton-control__shadow-color": ye.GRAY_DARK,
9228
9228
  ...l
9229
9229
  };
9230
9230
  }
@@ -9244,7 +9244,7 @@ const Jh = {
9244
9244
  role: "status",
9245
9245
  "aria-live": "polite",
9246
9246
  "data-testid": n["data-testid"],
9247
- className: W(
9247
+ className: U(
9248
9248
  "proton-Badge",
9249
9249
  t && `proton-Badge--${t}`,
9250
9250
  r
@@ -9281,7 +9281,7 @@ function Gs({
9281
9281
  {
9282
9282
  ...f,
9283
9283
  ...c,
9284
- className: W(
9284
+ className: U(
9285
9285
  "proton-Button",
9286
9286
  `proton-Button--${t}`,
9287
9287
  i && "proton-Button--disabled"
@@ -9323,10 +9323,10 @@ const Ys = {
9323
9323
  ) })
9324
9324
  }, Ev = {
9325
9325
  default: {
9326
- background: ge.GRAY_LIGHTEST,
9327
- title: ge.GRAY_DARK,
9328
- content: ge.GRAY_MEDIUM,
9329
- icon: ge.GRAY_MEDIUM_LIGHT
9326
+ background: ye.GRAY_LIGHTEST,
9327
+ title: ye.GRAY_DARK,
9328
+ content: ye.GRAY_MEDIUM,
9329
+ icon: ye.GRAY_MEDIUM_LIGHT
9330
9330
  },
9331
9331
  success: {
9332
9332
  background: tn.SUPER_LIGHT,
@@ -9363,7 +9363,7 @@ const Ys = {
9363
9363
  {
9364
9364
  role: "status",
9365
9365
  "aria-live": "polite",
9366
- className: W(
9366
+ className: U(
9367
9367
  "proton-Banner",
9368
9368
  `proton-Banner--${t}`,
9369
9369
  e && "proton-Banner--rounded"
@@ -9372,7 +9372,7 @@ const Ys = {
9372
9372
  children: /* @__PURE__ */ b.jsxs(
9373
9373
  "div",
9374
9374
  {
9375
- className: W(
9375
+ className: U(
9376
9376
  "proton-Banner__wrapper",
9377
9377
  r && "proton-Banner__wrapper--compact"
9378
9378
  ),
@@ -9389,7 +9389,7 @@ const Ys = {
9389
9389
  return /* @__PURE__ */ b.jsx(
9390
9390
  "h3",
9391
9391
  {
9392
- className: W(
9392
+ className: U(
9393
9393
  "proton-Banner",
9394
9394
  "proton-Banner__title",
9395
9395
  `proton-Banner--${n}__title`
@@ -9404,7 +9404,7 @@ const Ys = {
9404
9404
  return /* @__PURE__ */ b.jsx(
9405
9405
  "p",
9406
9406
  {
9407
- className: W(
9407
+ className: U(
9408
9408
  "proton-Banner",
9409
9409
  "proton-Banner__content",
9410
9410
  `proton-Banner--${n}__content`
@@ -9422,7 +9422,7 @@ const Ys = {
9422
9422
  {
9423
9423
  "aria-hidden": "true",
9424
9424
  "data-testid": n["data-testid"],
9425
- className: W("proton-Banner__icon", `proton-Banner--${r}__icon`),
9425
+ className: U("proton-Banner__icon", `proton-Banner--${r}__icon`),
9426
9426
  children: i
9427
9427
  }
9428
9428
  ) : null;
@@ -9460,7 +9460,7 @@ Tv.Option = function(e) {
9460
9460
  return /* @__PURE__ */ b.jsxs(
9461
9461
  "label",
9462
9462
  {
9463
- className: W(
9463
+ className: U(
9464
9464
  "proton-ButtonGroup__option",
9465
9465
  o && "proton-ButtonGroup__option--selected"
9466
9466
  ),
@@ -9521,7 +9521,7 @@ const Kv = dt(
9521
9521
  autoComplete: p,
9522
9522
  "data-testid": m
9523
9523
  }, y) => {
9524
- const g = M(null), { className: C, palette: S, theme: $ } = Ae(), D = y || g, { labelProps: P, inputProps: k, descriptionProps: R, errorMessageProps: v } = Qi(
9524
+ const g = M(null), { className: C } = Ae(), x = y || g, { labelProps: $, inputProps: T, descriptionProps: w, errorMessageProps: P } = Qi(
9525
9525
  {
9526
9526
  label: a,
9527
9527
  name: u,
@@ -9537,19 +9537,19 @@ const Kv = dt(
9537
9537
  value: d,
9538
9538
  onChange: o
9539
9539
  },
9540
- D
9541
- ), { clipboardProps: B } = gp({
9540
+ x
9541
+ ), { clipboardProps: R } = gp({
9542
9542
  getItems() {
9543
9543
  return [{ "text/plain": d }];
9544
9544
  }
9545
9545
  });
9546
9546
  return /* @__PURE__ */ b.jsxs("div", { className: "proton-Input__container", children: [
9547
- n && r === "top" && /* @__PURE__ */ b.jsx("div", { ...R, className: "proton-Input__text", children: n }),
9547
+ n && r === "top" && /* @__PURE__ */ b.jsx("div", { ...w, className: "proton-Input__text", children: n }),
9548
9548
  /* @__PURE__ */ b.jsxs("div", { className: "proton-Input__container-inner", children: [
9549
9549
  t && /* @__PURE__ */ b.jsx(
9550
9550
  "div",
9551
9551
  {
9552
- className: W(
9552
+ className: U(
9553
9553
  "proton-Input__descriptor",
9554
9554
  "proton-Input__prefix"
9555
9555
  ),
@@ -9559,13 +9559,13 @@ const Kv = dt(
9559
9559
  /* @__PURE__ */ b.jsx(
9560
9560
  "input",
9561
9561
  {
9562
- ...k,
9563
- ...B,
9562
+ ...T,
9563
+ ...R,
9564
9564
  "data-testid": m,
9565
9565
  id: `${u}-input`,
9566
9566
  "aria-invalid": !!i,
9567
- ref: D,
9568
- className: W(
9567
+ ref: x,
9568
+ className: U(
9569
9569
  "proton-Input",
9570
9570
  i && "proton-Input--error",
9571
9571
  a && !s && "proton-Input__label-top",
@@ -9576,10 +9576,9 @@ const Kv = dt(
9576
9576
  /* @__PURE__ */ b.jsx(
9577
9577
  "label",
9578
9578
  {
9579
- ...P,
9580
- className: W(
9579
+ ...$,
9580
+ className: U(
9581
9581
  "proton-Input__label",
9582
- s && "proton-Input__label--hide",
9583
9582
  d && "proton-Input__label--filled"
9584
9583
  ),
9585
9584
  children: a
@@ -9588,7 +9587,7 @@ const Kv = dt(
9588
9587
  e && /* @__PURE__ */ b.jsx(
9589
9588
  "div",
9590
9589
  {
9591
- className: W(
9590
+ className: U(
9592
9591
  "proton-Input__descriptor",
9593
9592
  "proton-Input__suffix"
9594
9593
  ),
@@ -9599,13 +9598,13 @@ const Kv = dt(
9599
9598
  i ? /* @__PURE__ */ b.jsx(
9600
9599
  "div",
9601
9600
  {
9602
- ...v,
9601
+ ...P,
9603
9602
  role: "alert",
9604
- className: W("proton-Input__error", "proton-Input__text"),
9603
+ className: U("proton-Input__error", "proton-Input__text"),
9605
9604
  id: `${u}-error`,
9606
9605
  children: i
9607
9606
  }
9608
- ) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ...R, className: "proton-Input__text", children: n }) : null
9607
+ ) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ...w, className: "proton-Input__text", children: n }) : null
9609
9608
  ] });
9610
9609
  }
9611
9610
  ), n4 = ({
@@ -9624,11 +9623,11 @@ const Kv = dt(
9624
9623
  const d = ev({
9625
9624
  defaultValue: o,
9626
9625
  value: a,
9627
- onChange: (S) => s == null ? void 0 : s(S),
9626
+ onChange: (x) => s == null ? void 0 : s(x),
9628
9627
  onClear: () => c == null ? void 0 : c(),
9629
9628
  label: e
9630
9629
  }), f = M(null), { inputProps: p, clearButtonProps: m } = Ap(
9631
- { ...d, placeholder: e },
9630
+ { ...d, placeholder: e, "aria-label": e },
9632
9631
  d,
9633
9632
  f
9634
9633
  ), { value: y, setValue: g } = d, C = () => {
@@ -9645,7 +9644,7 @@ const Kv = dt(
9645
9644
  {
9646
9645
  ...p,
9647
9646
  type: "search",
9648
- onChange: (S) => d.setValue(S),
9647
+ onChange: (x) => d.setValue(x),
9649
9648
  value: y,
9650
9649
  name: t,
9651
9650
  placeholder: e,
@@ -9661,8 +9660,8 @@ const Kv = dt(
9661
9660
  height: "1.6em",
9662
9661
  viewBox: "0 0 24 24",
9663
9662
  onClick: () => {
9664
- var S;
9665
- return (S = f.current) == null ? void 0 : S.focus();
9663
+ var x;
9664
+ return (x = f.current) == null ? void 0 : x.focus();
9666
9665
  },
9667
9666
  children: [
9668
9667
  /* @__PURE__ */ b.jsx("title", { children: "Magnifying Glass" }),
@@ -9681,7 +9680,7 @@ const Kv = dt(
9681
9680
  {
9682
9681
  "aria-label": m["aria-label"],
9683
9682
  type: "button",
9684
- className: W(
9683
+ className: U(
9685
9684
  "proton-SearchInput__button",
9686
9685
  "proton-Input__descriptor",
9687
9686
  "proton-Input__suffix",
@@ -9689,8 +9688,8 @@ const Kv = dt(
9689
9688
  ),
9690
9689
  "data-testid": `${u}-clear`,
9691
9690
  onClick: () => {
9692
- var S;
9693
- C(), (S = f.current) == null || S.focus();
9691
+ var x;
9692
+ C(), (x = f.current) == null || x.focus();
9694
9693
  },
9695
9694
  children: /* @__PURE__ */ b.jsxs(
9696
9695
  "svg",
@@ -9756,7 +9755,7 @@ function il({
9756
9755
  {
9757
9756
  ...s,
9758
9757
  ref: o,
9759
- className: W("proton-Popover", a),
9758
+ className: U("proton-Popover", a),
9760
9759
  style: { ...s.style, ...u },
9761
9760
  "data-testid": l["data-testid"] || void 0,
9762
9761
  "data-placement": f,
@@ -10055,8 +10054,8 @@ class Iv extends Xs {
10055
10054
  }
10056
10055
  }
10057
10056
  function Zs(t) {
10058
- let { children: e, items: n, idScope: r, addIdAndValue: l, dependencies: i = [] } = t, o = V(() => /* @__PURE__ */ new WeakMap(), i);
10059
- return V(() => {
10057
+ let { children: e, items: n, idScope: r, addIdAndValue: l, dependencies: i = [] } = t, o = H(() => /* @__PURE__ */ new WeakMap(), i);
10058
+ return H(() => {
10060
10059
  if (n && typeof e == "function") {
10061
10060
  let s = [];
10062
10061
  for (let c of n) {
@@ -10174,68 +10173,68 @@ function Lv() {
10174
10173
  var t = A, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
10175
10174
  function n($) {
10176
10175
  {
10177
- for (var D = arguments.length, P = new Array(D > 1 ? D - 1 : 0), k = 1; k < D; k++)
10178
- P[k - 1] = arguments[k];
10179
- r("error", $, P);
10176
+ for (var T = arguments.length, w = new Array(T > 1 ? T - 1 : 0), P = 1; P < T; P++)
10177
+ w[P - 1] = arguments[P];
10178
+ r("error", $, w);
10180
10179
  }
10181
10180
  }
10182
- function r($, D, P) {
10181
+ function r($, T, w) {
10183
10182
  {
10184
- var k = e.ReactDebugCurrentFrame, R = k.getStackAddendum();
10185
- R !== "" && (D += "%s", P = P.concat([R]));
10186
- var v = P.map(function(B) {
10183
+ var P = e.ReactDebugCurrentFrame, R = P.getStackAddendum();
10184
+ R !== "" && (T += "%s", w = w.concat([R]));
10185
+ var v = w.map(function(B) {
10187
10186
  return String(B);
10188
10187
  });
10189
- v.unshift("Warning: " + D), Function.prototype.apply.call(console[$], console, v);
10188
+ v.unshift("Warning: " + T), Function.prototype.apply.call(console[$], console, v);
10190
10189
  }
10191
10190
  }
10192
- function l($, D) {
10193
- return $ === D && ($ !== 0 || 1 / $ === 1 / D) || $ !== $ && D !== D;
10191
+ function l($, T) {
10192
+ return $ === T && ($ !== 0 || 1 / $ === 1 / T) || $ !== $ && T !== T;
10194
10193
  }
10195
10194
  var i = typeof Object.is == "function" ? Object.is : l, o = t.useState, a = t.useEffect, u = t.useLayoutEffect, s = t.useDebugValue, c = !1, d = !1;
10196
- function f($, D, P) {
10195
+ function f($, T, w) {
10197
10196
  c || t.startTransition !== void 0 && (c = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
10198
- var k = D();
10197
+ var P = T();
10199
10198
  if (!d) {
10200
- var R = D();
10201
- i(k, R) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
10199
+ var R = T();
10200
+ i(P, R) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
10202
10201
  }
10203
10202
  var v = o({
10204
10203
  inst: {
10205
- value: k,
10206
- getSnapshot: D
10204
+ value: P,
10205
+ getSnapshot: T
10207
10206
  }
10208
10207
  }), B = v[0].inst, E = v[1];
10209
10208
  return u(function() {
10210
- B.value = k, B.getSnapshot = D, p(B) && E({
10209
+ B.value = P, B.getSnapshot = T, p(B) && E({
10211
10210
  inst: B
10212
10211
  });
10213
- }, [$, k, D]), a(function() {
10212
+ }, [$, P, T]), a(function() {
10214
10213
  p(B) && E({
10215
10214
  inst: B
10216
10215
  });
10217
- var w = function() {
10216
+ var D = function() {
10218
10217
  p(B) && E({
10219
10218
  inst: B
10220
10219
  });
10221
10220
  };
10222
- return $(w);
10223
- }, [$]), s(k), k;
10221
+ return $(D);
10222
+ }, [$]), s(P), P;
10224
10223
  }
10225
10224
  function p($) {
10226
- var D = $.getSnapshot, P = $.value;
10225
+ var T = $.getSnapshot, w = $.value;
10227
10226
  try {
10228
- var k = D();
10229
- return !i(P, k);
10227
+ var P = T();
10228
+ return !i(w, P);
10230
10229
  } catch {
10231
10230
  return !0;
10232
10231
  }
10233
10232
  }
10234
- function m($, D, P) {
10235
- return D();
10233
+ function m($, T, w) {
10234
+ return T();
10236
10235
  }
10237
- var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !y, C = g ? m : f, S = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : C;
10238
- sr.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
10236
+ var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !y, C = g ? m : f, x = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : C;
10237
+ sr.useSyncExternalStore = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
10239
10238
  }()), sr;
10240
10239
  }
10241
10240
  process.env.NODE_ENV === "production" ? Mr.exports = Nv() : Mr.exports = Lv();
@@ -10330,7 +10329,7 @@ function qv(t) {
10330
10329
  idScope: r,
10331
10330
  dependencies: n
10332
10331
  });
10333
- return Y(Gt) && (l = /* @__PURE__ */ A.createElement(Xv, null, l)), e = V(() => ({
10332
+ return Y(Gt) && (l = /* @__PURE__ */ A.createElement(Xv, null, l)), e = H(() => ({
10334
10333
  dependencies: n,
10335
10334
  idScope: r
10336
10335
  }), [
@@ -10341,7 +10340,7 @@ function qv(t) {
10341
10340
  }, l);
10342
10341
  }
10343
10342
  function Xv({ children: t }) {
10344
- let e = Y(Gt), n = V(() => /* @__PURE__ */ A.createElement(Gt.Provider, {
10343
+ let e = Y(Gt), n = H(() => /* @__PURE__ */ A.createElement(Gt.Provider, {
10345
10344
  value: null
10346
10345
  }, /* @__PURE__ */ A.createElement(Js.Provider, {
10347
10346
  value: !0
@@ -10385,7 +10384,7 @@ function pi(t, e, n) {
10385
10384
  }
10386
10385
  const Qs = /* @__PURE__ */ Q(Jv);
10387
10386
  function Qv(t) {
10388
- return V(() => t != null ? /* @__PURE__ */ new Set([
10387
+ return H(() => t != null ? /* @__PURE__ */ new Set([
10389
10388
  t
10390
10389
  ]) : null, [
10391
10390
  t
@@ -10401,7 +10400,7 @@ function Ln({ values: t, children: e }) {
10401
10400
  }
10402
10401
  function At(t) {
10403
10402
  let { className: e, style: n, children: r, defaultClassName: l, defaultChildren: i, defaultStyle: o, values: a } = t;
10404
- return V(() => {
10403
+ return H(() => {
10405
10404
  let u, s, c;
10406
10405
  return typeof e == "function" ? u = e({
10407
10406
  ...a,
@@ -10446,10 +10445,10 @@ function ec(t, e) {
10446
10445
  return n;
10447
10446
  }
10448
10447
  function Zt(t, e, n) {
10449
- let r = ec(n, t.slot) || {}, { ref: l, ...i } = r, o = Dn(V(() => Qc(e, l), [
10448
+ let r = ec(n, t.slot) || {}, { ref: l, ...i } = r, o = Dn(H(() => Qc(e, l), [
10450
10449
  e,
10451
10450
  l
10452
- ])), a = H(i, t);
10451
+ ])), a = W(i, t);
10453
10452
  return "style" in i && i.style && "style" in t && t.style && (typeof i.style == "function" || typeof t.style == "function" ? a.style = (u) => {
10454
10453
  let s = typeof i.style == "function" ? i.style(u) : i.style, c = {
10455
10454
  ...u.defaultStyle,
@@ -10539,7 +10538,7 @@ function oh(t, e) {
10539
10538
  ...t,
10540
10539
  values: d,
10541
10540
  defaultClassName: "react-aria-Button"
10542
- }), p = he(l.id), m = he(), y = l["aria-labelledby"];
10541
+ }), p = me(l.id), m = me(), y = l["aria-labelledby"];
10543
10542
  r && (y ? y = `${y} ${m}` : l["aria-label"] && (y = `${p} ${m}`));
10544
10543
  let g = M(r);
10545
10544
  return L(() => {
@@ -10553,10 +10552,10 @@ function oh(t, e) {
10553
10552
  y,
10554
10553
  p
10555
10554
  ]), /* @__PURE__ */ A.createElement("button", {
10556
- ...fe(t, {
10555
+ ...pe(t, {
10557
10556
  propNames: lh
10558
10557
  }),
10559
- ...H(l, o, s),
10558
+ ...W(l, o, s),
10560
10559
  ...f,
10561
10560
  id: p,
10562
10561
  ref: e,
@@ -10704,7 +10703,7 @@ function gh({ props: t, collection: e, menuRef: n }) {
10704
10703
  values: {}
10705
10704
  });
10706
10705
  return /* @__PURE__ */ A.createElement(Kn, null, /* @__PURE__ */ A.createElement("div", {
10707
- ...fe(t),
10706
+ ...pe(t),
10708
10707
  ...u,
10709
10708
  ...y,
10710
10709
  ref: n,
@@ -10774,7 +10773,7 @@ function $h(t, e, n) {
10774
10773
  values: {}
10775
10774
  });
10776
10775
  return /* @__PURE__ */ A.createElement("section", {
10777
- ...fe(t),
10776
+ ...pe(t),
10778
10777
  ...d,
10779
10778
  ...f,
10780
10779
  ref: e
@@ -10811,9 +10810,9 @@ const _r = /* @__PURE__ */ Q(null), xh = /* @__PURE__ */ Gv("item", function(e,
10811
10810
  hasSubmenu: !!e["aria-haspopup"],
10812
10811
  isOpen: e["aria-expanded"] === "true"
10813
10812
  }
10814
- }), S = e.href ? "a" : "div";
10815
- return /* @__PURE__ */ A.createElement(S, {
10816
- ...H(u, m, y),
10813
+ }), x = e.href ? "a" : "div";
10814
+ return /* @__PURE__ */ A.createElement(x, {
10815
+ ...W(u, m, y),
10817
10816
  ...C,
10818
10817
  ref: a,
10819
10818
  "data-disabled": f.isDisabled || void 0,
@@ -10904,7 +10903,7 @@ function wh(t) {
10904
10903
  state: e
10905
10904
  }
10906
10905
  });
10907
- t = H(t, i);
10906
+ t = W(t, i);
10908
10907
  let { tooltipProps: c } = Wp(t, e);
10909
10908
  return /* @__PURE__ */ A.createElement("div", {
10910
10909
  ...c,
@@ -11056,7 +11055,7 @@ function Dh({ item: t, state: e }) {
11056
11055
  "li",
11057
11056
  {
11058
11057
  ...r,
11059
- className: W(
11058
+ className: U(
11060
11059
  "proton-ListBox__item",
11061
11060
  i && "proton-ListBox__item--focused",
11062
11061
  l && "proton-ListBox__item--selected",
@@ -11081,7 +11080,7 @@ const uc = dt(
11081
11080
  {
11082
11081
  ...n,
11083
11082
  ref: e,
11084
- className: W(
11083
+ className: U(
11085
11084
  "proton-Select__trigger",
11086
11085
  t.disabled && "proton-Select__trigger--disabled",
11087
11086
  !t.isOpen && "proton-Select__trigger--closed",
@@ -11117,7 +11116,7 @@ function kh({
11117
11116
  onOpenChange: ($) => {
11118
11117
  $ ? o == null || o() : a == null || a();
11119
11118
  }
11120
- }, f = Rs(d), p = M(null), m = M(null), { labelProps: y, triggerProps: g, valueProps: C, menuProps: S } = es(
11119
+ }, f = Rs(d), p = M(null), m = M(null), { labelProps: y, triggerProps: g, valueProps: C, menuProps: x } = es(
11121
11120
  { ...d, label: t || e },
11122
11121
  f,
11123
11122
  p
@@ -11167,7 +11166,7 @@ function kh({
11167
11166
  /* @__PURE__ */ b.jsx(
11168
11167
  "div",
11169
11168
  {
11170
- className: W(
11169
+ className: U(
11171
11170
  "proton-Select__trigger_icon",
11172
11171
  f.isOpen && "proton-Select__trigger_icon--flipped"
11173
11172
  ),
@@ -11196,7 +11195,7 @@ function kh({
11196
11195
  popoverRef: m,
11197
11196
  placement: "bottom start",
11198
11197
  "data-testid": "select-popover",
11199
- children: /* @__PURE__ */ b.jsx(Rr, { ...S, state: f })
11198
+ children: /* @__PURE__ */ b.jsx(Rr, { ...x, state: f })
11200
11199
  }
11201
11200
  ) })
11202
11201
  ]
@@ -11226,13 +11225,13 @@ function Th({
11226
11225
  disabledKeys: r,
11227
11226
  selectedKey: l,
11228
11227
  onSelectionChange: i,
11229
- onOpenChange: (D) => {
11230
- D ? o == null || o() : a == null || a();
11228
+ onOpenChange: (T) => {
11229
+ T ? o == null || o() : a == null || a();
11231
11230
  },
11232
11231
  items: u,
11233
11232
  "data-testid": s,
11234
11233
  children: c
11235
- }, f = Rs(d), p = ac($i.MEDIUM), m = M(null), y = M(null), { labelProps: g, triggerProps: C, valueProps: S, menuProps: $ } = es(
11234
+ }, f = Rs(d), p = ac($i.MEDIUM), m = M(null), y = M(null), { labelProps: g, triggerProps: C, valueProps: x, menuProps: $ } = es(
11236
11235
  { ...d, label: t || e },
11237
11236
  f,
11238
11237
  m
@@ -11278,11 +11277,11 @@ function Th({
11278
11277
  disabled: n,
11279
11278
  "data-testid": s,
11280
11279
  children: [
11281
- /* @__PURE__ */ b.jsx("div", { ...S, children: f.selectedItem ? f.selectedItem.rendered : "Select an option" }),
11280
+ /* @__PURE__ */ b.jsx("div", { ...x, children: f.selectedItem ? f.selectedItem.rendered : "Select an option" }),
11282
11281
  /* @__PURE__ */ b.jsx(
11283
11282
  "div",
11284
11283
  {
11285
- className: W(
11284
+ className: U(
11286
11285
  "proton-Select__trigger_icon",
11287
11286
  f.isOpen && "proton-Select__trigger_icon--flipped"
11288
11287
  ),
@@ -11330,7 +11329,7 @@ function a4(t) {
11330
11329
  return /* @__PURE__ */ b.jsxs(
11331
11330
  "label",
11332
11331
  {
11333
- className: W(
11332
+ className: U(
11334
11333
  "proton-Switch",
11335
11334
  t.isDisabled && "proton-Switch--disabled",
11336
11335
  r.isSelected && "proton-Switch--on"
@@ -11352,7 +11351,7 @@ function a4(t) {
11352
11351
  }
11353
11352
  function Ah({ item: t, state: e, children: n }) {
11354
11353
  let r = M(), { rowProps: l } = jp({ node: t }, e);
11355
- return /* @__PURE__ */ b.jsx("tr", { className: W("proton-Table__headerRow"), ...l, ref: r, children: n });
11354
+ return /* @__PURE__ */ b.jsx("tr", { className: U("proton-Table__headerRow"), ...l, ref: r, children: n });
11356
11355
  }
11357
11356
  function Bh({ column: t, state: e }) {
11358
11357
  var u, s;
@@ -11366,9 +11365,9 @@ function Bh({ column: t, state: e }) {
11366
11365
  return /* @__PURE__ */ b.jsxs(
11367
11366
  "th",
11368
11367
  {
11369
- ...H(r, o),
11368
+ ...W(r, o),
11370
11369
  colSpan: t.colspan,
11371
- className: W(
11370
+ className: U(
11372
11371
  "proton-Table__header",
11373
11372
  `proton-Table__header--${l}`,
11374
11373
  i ? "proton-Table__header--focused" : null
@@ -11380,7 +11379,7 @@ function Bh({ column: t, state: e }) {
11380
11379
  "span",
11381
11380
  {
11382
11381
  "aria-hidden": "true",
11383
- className: W("proton-Table__headerSortIcon"),
11382
+ className: U("proton-Table__headerSortIcon"),
11384
11383
  style: {
11385
11384
  visibility: ((s = e.sortDescriptor) == null ? void 0 : s.column) === t.key ? "visible" : "hidden"
11386
11385
  },
@@ -11401,7 +11400,7 @@ function hi({
11401
11400
  t,
11402
11401
  {
11403
11402
  ...r,
11404
- className: W(
11403
+ className: U(
11405
11404
  "proton-Table__rowGroup",
11406
11405
  t === "thead" ? "proton-Table__rowGroup--header" : "proton-Table__rowGroup--body"
11407
11406
  ),
@@ -11428,7 +11427,7 @@ function Kh({
11428
11427
  return /* @__PURE__ */ b.jsx(
11429
11428
  "tr",
11430
11429
  {
11431
- className: W(
11430
+ className: U(
11432
11431
  "proton-Table__row",
11433
11432
  a ? "proton-Table__row--selected" : null,
11434
11433
  s ? "proton-Table__row--pressed" : null,
@@ -11437,7 +11436,7 @@ function Kh({
11437
11436
  l && "proton-Table--clickable"
11438
11437
  ),
11439
11438
  style: r ? { backgroundColor: r } : void 0,
11440
- ...H(u, d),
11439
+ ...W(u, d),
11441
11440
  ref: o,
11442
11441
  onClick: l ? () => l(t.key) : void 0,
11443
11442
  children: e
@@ -11450,8 +11449,8 @@ function Mh({ cell: t, state: e, width: n, onClick: r }) {
11450
11449
  return /* @__PURE__ */ b.jsx(
11451
11450
  "td",
11452
11451
  {
11453
- ...H(i, a),
11454
- className: W(
11452
+ ...W(i, a),
11453
+ className: U(
11455
11454
  "proton-Table__cell",
11456
11455
  o ? "proton-Table__cell--focused" : null,
11457
11456
  `proton-Table__cell--${u}`,
@@ -11474,7 +11473,7 @@ function f4(t) {
11474
11473
  e,
11475
11474
  n
11476
11475
  );
11477
- return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: W("proton-Table"), children: [
11476
+ return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: U("proton-Table"), children: [
11478
11477
  /* @__PURE__ */ b.jsx(hi, { type: "thead", isHidden: (i = t.headerProps) == null ? void 0 : i.isHidden, children: r.headerRows.map((o) => /* @__PURE__ */ b.jsx(Ah, { item: o, state: e, children: Array.from(r.getChildren(o.key)).map((a) => /* @__PURE__ */ b.jsx(
11479
11478
  Bh,
11480
11479
  {
@@ -11516,7 +11515,7 @@ const p4 = ({
11516
11515
  }) => /* @__PURE__ */ b.jsx(
11517
11516
  "div",
11518
11517
  {
11519
- className: W(
11518
+ className: U(
11520
11519
  "proton-TextEllipsis",
11521
11520
  n || r === 1 ? "proton-TextEllipsis--single-line" : r > 1 ? "proton-TextEllipsis--multi-line" : ""
11522
11521
  ),
@@ -11535,10 +11534,10 @@ function Ih({ children: t, arrow: e, ...n }) {
11535
11534
  Ch,
11536
11535
  {
11537
11536
  ...n,
11538
- className: W("proton__Tooltip", "proton-Dialog", l),
11537
+ className: U("proton__Tooltip", "proton-Dialog", l),
11539
11538
  style: r,
11540
11539
  children: [
11541
- e && /* @__PURE__ */ b.jsx(fh, { className: W("proton__TooltipArrow", l), children: /* @__PURE__ */ b.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ b.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
11540
+ e && /* @__PURE__ */ b.jsx(fh, { className: U("proton__TooltipArrow", l), children: /* @__PURE__ */ b.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ b.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
11542
11541
  t
11543
11542
  ]
11544
11543
  }
@@ -11570,7 +11569,7 @@ function Fh({
11570
11569
  p && !d.current && (f.current = !0), i && i(p), d.current || c(p), d.current = !1;
11571
11570
  },
11572
11571
  children: [
11573
- /* @__PURE__ */ b.jsx(
11572
+ o ? /* @__PURE__ */ b.jsx("span", { className: "proton__TooltipTrigger", "aria-label": "Show tooltip", children: t }) : /* @__PURE__ */ b.jsx(
11574
11573
  nc,
11575
11574
  {
11576
11575
  className: "proton__TooltipTrigger",
@@ -11598,7 +11597,7 @@ const v4 = ({
11598
11597
  return /* @__PURE__ */ b.jsx(
11599
11598
  "span",
11600
11599
  {
11601
- className: W(
11600
+ className: U(
11602
11601
  "proton-TextEmphasis",
11603
11602
  n && "proton-TextEmphasis--tooltip",
11604
11603
  l
@@ -11620,7 +11619,7 @@ const v4 = ({
11620
11619
  return /* @__PURE__ */ b.jsx(
11621
11620
  "span",
11622
11621
  {
11623
- className: W(
11622
+ className: U(
11624
11623
  "proton-TextEmphasis",
11625
11624
  n && "proton-TextEmphasis--tooltip",
11626
11625
  l
@@ -11645,7 +11644,7 @@ function _h({
11645
11644
  return /* @__PURE__ */ b.jsxs(
11646
11645
  "div",
11647
11646
  {
11648
- className: W("proton-Waveform__bar-wrapper"),
11647
+ className: U("proton-Waveform__bar-wrapper"),
11649
11648
  style: {
11650
11649
  width: `${o}px`,
11651
11650
  marginRight: `${a}px`
@@ -11654,7 +11653,7 @@ function _h({
11654
11653
  /* @__PURE__ */ b.jsx(
11655
11654
  "div",
11656
11655
  {
11657
- className: W(
11656
+ className: U(
11658
11657
  "proton-Waveform__bar",
11659
11658
  "proton-Waveform__bar--upper",
11660
11659
  e && "proton-Waveform__bar--disabled",
@@ -11671,7 +11670,7 @@ function _h({
11671
11670
  /* @__PURE__ */ b.jsx(
11672
11671
  "div",
11673
11672
  {
11674
- className: W(
11673
+ className: U(
11675
11674
  "proton-Waveform__bar",
11676
11675
  "proton-Waveform__bar--lower",
11677
11676
  e && "proton-Waveform__bar--disabled",
@@ -11707,102 +11706,106 @@ function h4({
11707
11706
  currentTime: l = 0,
11708
11707
  showTimestamps: i = !1,
11709
11708
  totalDuration: o,
11710
- onClick: a,
11711
- "data-testid": u
11709
+ disabled: a,
11710
+ disabledMessage: u,
11711
+ onClick: s,
11712
+ "data-testid": c
11712
11713
  }) {
11713
- var E;
11714
- const { className: s } = Ae(), c = M(null), [d, f] = z([]), [p, m] = z(null), [y, g] = z(!1), [C, S] = z(!1), $ = t || Rh, D = e;
11714
+ var S;
11715
+ const { className: d } = Ae(), f = M(null), [p, m] = z([]), [y, g] = z(null), [C, x] = z(!1), [$, T] = z(!1), w = t || Rh, P = e;
11715
11716
  L(() => {
11716
- if (!c.current) return;
11717
- const w = (F) => {
11718
- const T = Math.floor(F / (e + D)), U = Lh($, T);
11719
- f(U);
11720
- }, I = c.current.clientWidth;
11721
- w(I);
11722
- const x = new ResizeObserver((F) => {
11723
- F && F[0] && w(F[0].contentRect.width);
11717
+ if (!f.current) return;
11718
+ const F = (I) => {
11719
+ const re = Math.floor(I / (e + P)), de = Lh(w, re);
11720
+ m(de);
11721
+ }, k = f.current.clientWidth;
11722
+ F(k);
11723
+ const V = new ResizeObserver((I) => {
11724
+ I && I[0] && F(I[0].contentRect.width);
11724
11725
  });
11725
- return x.observe(c.current), () => x.disconnect();
11726
- }, [$, e, D]), L(() => {
11727
- const w = setTimeout(() => g(!0), 50), I = setTimeout(() => S(!0), 500);
11726
+ return V.observe(f.current), () => V.disconnect();
11727
+ }, [w, e, P]), L(() => {
11728
+ const F = setTimeout(() => x(!0), 50), k = setTimeout(() => T(!0), 500);
11728
11729
  return () => {
11729
- clearTimeout(w), clearTimeout(I);
11730
+ clearTimeout(F), clearTimeout(k);
11730
11731
  };
11731
11732
  }, []);
11732
- const P = (w) => {
11733
- if (!c.current) return;
11734
- const I = c.current.getBoundingClientRect(), F = (w.clientX - I.left) / I.width * o;
11735
- m(F);
11736
- }, k = () => {
11737
- m(null);
11738
- }, R = e + D, v = (w, I) => {
11739
- var T;
11740
- const x = w / o * 100;
11741
- return (I === "start" ? Math.floor(x / 100 * d.length) : Math.ceil(x / 100 * d.length)) * R / ((T = c.current) == null ? void 0 : T.clientWidth) * 100;
11742
- }, B = (E = c.current) == null ? void 0 : E.clientWidth;
11743
- return /* @__PURE__ */ b.jsxs("div", { className: W("proton-Waveform", s), "data-testid": u, children: [
11733
+ const R = (F) => {
11734
+ if (!f.current) return;
11735
+ const k = f.current.getBoundingClientRect(), I = (F.clientX - k.left) / k.width * o;
11736
+ g(I);
11737
+ }, v = () => {
11738
+ g(null);
11739
+ }, B = e + P, E = (F, k) => {
11740
+ var re;
11741
+ const V = F / o * 100;
11742
+ return (k === "start" ? Math.floor(V / 100 * p.length) : Math.ceil(V / 100 * p.length)) * B / ((re = f.current) == null ? void 0 : re.clientWidth) * 100;
11743
+ }, D = (S = f.current) == null ? void 0 : S.clientWidth, N = H(() => a && u ? u : t ? null : D < 277 ? "Unavailable" : "Waveform Unavailable", [a, u, t, D]);
11744
+ return /* @__PURE__ */ b.jsxs("div", { className: U("proton-Waveform", d), "data-testid": c, children: [
11744
11745
  i && /* @__PURE__ */ b.jsx(mi, { direction: "left", seconds: l }),
11745
11746
  /* @__PURE__ */ b.jsxs(
11746
11747
  "div",
11747
11748
  {
11748
- ref: c,
11749
+ ref: f,
11749
11750
  className: "proton-Waveform__container",
11750
- onMouseMove: P,
11751
- onMouseLeave: k,
11752
- onClick: (w) => {
11753
- if (!c.current) return;
11754
- const I = c.current.getBoundingClientRect(), F = (w.clientX - I.left) / I.width * o;
11755
- a == null || a(F, w);
11751
+ onMouseMove: R,
11752
+ onMouseLeave: v,
11753
+ onClick: (F) => {
11754
+ if (!f.current || a) return;
11755
+ const k = f.current.getBoundingClientRect(), I = (F.clientX - k.left) / k.width * o;
11756
+ s == null || s(I, F);
11756
11757
  },
11758
+ "data-disabled": a,
11759
+ "data-testid": "waveform-container",
11757
11760
  children: [
11758
11761
  n !== void 0 && r !== void 0 && /* @__PURE__ */ b.jsx(
11759
11762
  "div",
11760
11763
  {
11761
11764
  className: "proton-Waveform__active-region",
11762
11765
  style: {
11763
- left: c.current ? `calc(${v(n, "start")}%` : "0%",
11764
- right: c.current ? `calc(${100 - v(r, "end")}% - 2px)` : "0%"
11766
+ left: f.current ? `calc(${E(n, "start")}%` : "0%",
11767
+ right: f.current ? `calc(${100 - E(r, "end")}% - 2px)` : "0%"
11765
11768
  }
11766
11769
  }
11767
11770
  ),
11768
- p !== null && /* @__PURE__ */ b.jsx(
11771
+ y !== null && /* @__PURE__ */ b.jsx(
11769
11772
  "div",
11770
11773
  {
11771
11774
  className: "proton-Waveform__hover-line",
11772
11775
  style: {
11773
- left: `${p / o * 100}%`
11776
+ left: `${y / o * 100}%`
11774
11777
  }
11775
11778
  }
11776
11779
  ),
11777
- d.map((w, I) => {
11778
- const x = I / d.length * o, F = n !== void 0 && r !== void 0 && (x < n || x > r), T = l === 0 ? !1 : x <= l, U = p !== null && x <= p;
11780
+ p.map((F, k) => {
11781
+ const V = k / p.length * o, I = n !== void 0 && r !== void 0 && (V < n || V > r), re = l === 0 ? !1 : V <= l, de = y !== null && V <= y;
11779
11782
  return /* @__PURE__ */ b.jsx(
11780
11783
  _h,
11781
11784
  {
11782
- amplitude: w,
11783
- isDisabled: F,
11784
- isPlayed: T,
11785
- isHovered: U,
11786
- isVisible: y,
11787
- hasAnimated: C,
11785
+ amplitude: F,
11786
+ isDisabled: a || I,
11787
+ isPlayed: re,
11788
+ isHovered: de,
11789
+ isVisible: C,
11790
+ hasAnimated: $,
11788
11791
  resolution: e,
11789
- spacing: D,
11790
- index: I
11792
+ spacing: P,
11793
+ index: k
11791
11794
  },
11792
- I
11795
+ k
11793
11796
  );
11794
11797
  })
11795
11798
  ]
11796
11799
  }
11797
11800
  ),
11798
- !t && /* @__PURE__ */ b.jsx(
11801
+ N && /* @__PURE__ */ b.jsx(
11799
11802
  "div",
11800
11803
  {
11801
11804
  className: "proton-Waveform__bar-unavailable",
11802
11805
  style: {
11803
- fontSize: B < 325 ? "0.85rem" : "1rem"
11806
+ fontSize: D < 325 ? "0.85rem" : "1rem"
11804
11807
  },
11805
- children: B < 277 ? "Unavailable" : "Waveform Unavailable"
11808
+ children: N
11806
11809
  }
11807
11810
  ),
11808
11811
  i && /* @__PURE__ */ b.jsx(mi, { direction: "right", seconds: o })
@@ -11815,7 +11818,7 @@ function mi({
11815
11818
  return /* @__PURE__ */ b.jsx(
11816
11819
  "div",
11817
11820
  {
11818
- className: W(
11821
+ className: U(
11819
11822
  "proton-Waveform__timestamp",
11820
11823
  `proton-Waveform__timestamp--${t}`
11821
11824
  ),
@@ -11896,7 +11899,7 @@ function b4({
11896
11899
  "aria-label": "Background overlay",
11897
11900
  role: "dialog",
11898
11901
  "aria-modal": "true",
11899
- className: W(
11902
+ className: U(
11900
11903
  "proton-ScreenOverlay__background",
11901
11904
  "proton-ScreenOverlay__overlay"
11902
11905
  ),