@raspberrypifoundation/design-system-react 2.7.2 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +16 -7
  2. package/dist/design-system-react.css +1 -1
  3. package/dist/design-system-react.js +3313 -889
  4. package/dist/design-system-react.umd.cjs +16 -13
  5. package/dist/scss/components/switch.scss +179 -0
  6. package/dist/scss/design-system-core.scss +3 -2
  7. package/dist/scss/properties/colors/_greys.scss +1 -0
  8. package/dist/scss/utility/_visually-hidden.scss +11 -0
  9. package/dist/types/lib/main.d.ts +10 -0
  10. package/dist/types/lib/main.d.ts.map +1 -1
  11. package/dist/types/src/components/Button/index.d.ts.map +1 -1
  12. package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts +1 -11
  13. package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts.map +1 -1
  14. package/dist/types/src/components/Form/CheckboxInput/index.d.ts +1 -1
  15. package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts +3 -11
  17. package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts.map +1 -1
  18. package/dist/types/src/components/Form/RadioInput/index.d.ts +1 -1
  19. package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
  20. package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts +1 -7
  21. package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts.map +1 -1
  22. package/dist/types/src/components/Form/SelectInput/index.d.ts +1 -1
  23. package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/Switch/Switch.spec.d.ts +2 -0
  25. package/dist/types/src/components/Form/Switch/Switch.spec.d.ts.map +1 -0
  26. package/dist/types/src/components/Form/Switch/Switch.types.d.ts +24 -0
  27. package/dist/types/src/components/Form/Switch/Switch.types.d.ts.map +1 -0
  28. package/dist/types/src/components/Form/Switch/index.d.ts +16 -0
  29. package/dist/types/src/components/Form/Switch/index.d.ts.map +1 -0
  30. package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts +1 -7
  31. package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts.map +1 -1
  32. package/dist/types/src/components/Form/TextInput/index.d.ts +1 -1
  33. package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
  34. package/dist/types/src/components/Menu/Menu.types.d.ts +6 -0
  35. package/dist/types/src/components/Menu/Menu.types.d.ts.map +1 -0
  36. package/dist/types/src/components/Menu/MenuButton/MenuButton.types.d.ts +7 -0
  37. package/dist/types/src/components/Menu/MenuButton/MenuButton.types.d.ts.map +1 -0
  38. package/dist/types/src/components/Menu/MenuButton/index.d.ts +4 -0
  39. package/dist/types/src/components/Menu/MenuButton/index.d.ts.map +1 -0
  40. package/dist/types/src/components/Menu/MenuItem/MenuItem.types.d.ts +11 -0
  41. package/dist/types/src/components/Menu/MenuItem/MenuItem.types.d.ts.map +1 -0
  42. package/dist/types/src/components/Menu/MenuItem/index.d.ts +6 -0
  43. package/dist/types/src/components/Menu/MenuItem/index.d.ts.map +1 -0
  44. package/dist/types/src/components/Menu/MenuTitle/MenuTitle.types.d.ts +4 -0
  45. package/dist/types/src/components/Menu/MenuTitle/MenuTitle.types.d.ts.map +1 -0
  46. package/dist/types/src/components/Menu/MenuTitle/index.d.ts +5 -0
  47. package/dist/types/src/components/Menu/MenuTitle/index.d.ts.map +1 -0
  48. package/dist/types/src/components/Menu/index.d.ts +5 -0
  49. package/dist/types/src/components/Menu/index.d.ts.map +1 -0
  50. package/dist/types/src/stories/Menu/Menu.stories.d.ts +8 -0
  51. package/dist/types/src/stories/Menu/Menu.stories.d.ts.map +1 -0
  52. package/dist/types/src/stories/Menu/MenuButton.stories.d.ts +7 -0
  53. package/dist/types/src/stories/Menu/MenuButton.stories.d.ts.map +1 -0
  54. package/dist/types/src/stories/Menu/MenuItem.stories.d.ts +9 -0
  55. package/dist/types/src/stories/Menu/MenuItem.stories.d.ts.map +1 -0
  56. package/dist/types/src/stories/Menu/MenuTitle.stories.d.ts +7 -0
  57. package/dist/types/src/stories/Menu/MenuTitle.stories.d.ts.map +1 -0
  58. package/dist/types/src/stories/forms/RadioInput.stories.d.ts +4 -0
  59. package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -1
  60. package/dist/types/src/stories/forms/Switch.stories.d.ts +54 -0
  61. package/dist/types/src/stories/forms/Switch.stories.d.ts.map +1 -0
  62. package/dist/types/src/stories/forms/TextInput.stories.d.ts +4 -0
  63. package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -1
  64. package/package.json +18 -13
  65. package/CHANGELOG.md +0 -328
@@ -1,50 +1,52 @@
1
- import { jsxs as P, jsx as p, Fragment as me } from "react/jsx-runtime";
2
- import Le, { useRef as ge, useEffect as se, forwardRef as ke, createElement as ye } from "react";
3
- function $e(e) {
1
+ import { jsxs as q, jsx as E, Fragment as Ie } from "react/jsx-runtime";
2
+ import * as x from "react";
3
+ import rr, { forwardRef as kt, useRef as Rt, useEffect as We, useLayoutEffect as On, useState as or, createElement as Tt } from "react";
4
+ import * as ir from "react-dom";
5
+ function An(e) {
4
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
7
  }
6
- var ie = { exports: {} };
8
+ var at = { exports: {} };
7
9
  /*!
8
10
  Copyright (c) 2018 Jed Watson.
9
11
  Licensed under the MIT License (MIT), see
10
12
  http://jedwatson.github.io/classnames
11
13
  */
12
- var Ee;
13
- function Ye() {
14
- return Ee || (Ee = 1, function(e) {
14
+ var Vt;
15
+ function sr() {
16
+ return Vt || (Vt = 1, (function(e) {
15
17
  (function() {
16
18
  var t = {}.hasOwnProperty;
17
- function s() {
18
- for (var r = "", c = 0; c < arguments.length; c++) {
19
- var i = arguments[c];
20
- i && (r = a(r, n(i)));
19
+ function r() {
20
+ for (var i = "", s = 0; s < arguments.length; s++) {
21
+ var a = arguments[s];
22
+ a && (i = o(i, n(a)));
21
23
  }
22
- return r;
24
+ return i;
23
25
  }
24
- function n(r) {
25
- if (typeof r == "string" || typeof r == "number")
26
- return r;
27
- if (typeof r != "object")
26
+ function n(i) {
27
+ if (typeof i == "string" || typeof i == "number")
28
+ return i;
29
+ if (typeof i != "object")
28
30
  return "";
29
- if (Array.isArray(r))
30
- return s.apply(null, r);
31
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
32
- return r.toString();
33
- var c = "";
34
- for (var i in r)
35
- t.call(r, i) && r[i] && (c = a(c, i));
36
- return c;
31
+ if (Array.isArray(i))
32
+ return r.apply(null, i);
33
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
34
+ return i.toString();
35
+ var s = "";
36
+ for (var a in i)
37
+ t.call(i, a) && i[a] && (s = o(s, a));
38
+ return s;
37
39
  }
38
- function a(r, c) {
39
- return c ? r ? r + " " + c : r + c : r;
40
+ function o(i, s) {
41
+ return s ? i ? i + " " + s : i + s : i;
40
42
  }
41
- e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
43
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
42
44
  })();
43
- }(ie)), ie.exports;
45
+ })(at)), at.exports;
44
46
  }
45
- var De = Ye();
46
- const M = /* @__PURE__ */ $e(De);
47
- var Z = { exports: {} }, K = { exports: {} }, C = {};
47
+ var ar = sr();
48
+ const ee = /* @__PURE__ */ An(ar);
49
+ var Me = { exports: {} }, De = { exports: {} }, Y = {};
48
50
  /** @license React v16.13.1
49
51
  * react-is.production.min.js
50
52
  *
@@ -53,73 +55,73 @@ var Z = { exports: {} }, K = { exports: {} }, C = {};
53
55
  * This source code is licensed under the MIT license found in the
54
56
  * LICENSE file in the root directory of this source tree.
55
57
  */
56
- var Te;
57
- function We() {
58
- if (Te) return C;
59
- Te = 1;
60
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, k = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
61
- function $(l) {
62
- if (typeof l == "object" && l !== null) {
63
- var Y = l.$$typeof;
64
- switch (Y) {
58
+ var Yt;
59
+ function cr() {
60
+ if (Yt) return Y;
61
+ Yt = 1;
62
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
63
+ function y(b) {
64
+ if (typeof b == "object" && b !== null) {
65
+ var k = b.$$typeof;
66
+ switch (k) {
65
67
  case t:
66
- switch (l = l.type, l) {
67
- case d:
68
- case h:
68
+ switch (b = b.type, b) {
69
+ case l:
70
+ case c:
69
71
  case n:
70
- case r:
71
- case a:
72
- case b:
73
- return l;
72
+ case i:
73
+ case o:
74
+ case d:
75
+ return b;
74
76
  default:
75
- switch (l = l && l.$$typeof, l) {
76
- case i:
77
- case y:
78
- case I:
79
- case A:
80
- case c:
81
- return l;
77
+ switch (b = b && b.$$typeof, b) {
78
+ case a:
79
+ case f:
80
+ case v:
81
+ case u:
82
+ case s:
83
+ return b;
82
84
  default:
83
- return Y;
85
+ return k;
84
86
  }
85
87
  }
86
- case s:
87
- return Y;
88
+ case r:
89
+ return k;
88
90
  }
89
91
  }
90
92
  }
91
- function j(l) {
92
- return $(l) === h;
93
+ function T(b) {
94
+ return y(b) === c;
93
95
  }
94
- return C.AsyncMode = d, C.ConcurrentMode = h, C.ContextConsumer = i, C.ContextProvider = c, C.Element = t, C.ForwardRef = y, C.Fragment = n, C.Lazy = I, C.Memo = A, C.Portal = s, C.Profiler = r, C.StrictMode = a, C.Suspense = b, C.isAsyncMode = function(l) {
95
- return j(l) || $(l) === d;
96
- }, C.isConcurrentMode = j, C.isContextConsumer = function(l) {
97
- return $(l) === i;
98
- }, C.isContextProvider = function(l) {
99
- return $(l) === c;
100
- }, C.isElement = function(l) {
101
- return typeof l == "object" && l !== null && l.$$typeof === t;
102
- }, C.isForwardRef = function(l) {
103
- return $(l) === y;
104
- }, C.isFragment = function(l) {
105
- return $(l) === n;
106
- }, C.isLazy = function(l) {
107
- return $(l) === I;
108
- }, C.isMemo = function(l) {
109
- return $(l) === A;
110
- }, C.isPortal = function(l) {
111
- return $(l) === s;
112
- }, C.isProfiler = function(l) {
113
- return $(l) === r;
114
- }, C.isStrictMode = function(l) {
115
- return $(l) === a;
116
- }, C.isSuspense = function(l) {
117
- return $(l) === b;
118
- }, C.isValidElementType = function(l) {
119
- return typeof l == "string" || typeof l == "function" || l === n || l === h || l === r || l === a || l === b || l === N || typeof l == "object" && l !== null && (l.$$typeof === I || l.$$typeof === A || l.$$typeof === c || l.$$typeof === i || l.$$typeof === y || l.$$typeof === k || l.$$typeof === q || l.$$typeof === F || l.$$typeof === O);
120
- }, C.typeOf = $, C;
121
- }
122
- var R = {};
96
+ return Y.AsyncMode = l, Y.ConcurrentMode = c, Y.ContextConsumer = a, Y.ContextProvider = s, Y.Element = t, Y.ForwardRef = f, Y.Fragment = n, Y.Lazy = v, Y.Memo = u, Y.Portal = r, Y.Profiler = i, Y.StrictMode = o, Y.Suspense = d, Y.isAsyncMode = function(b) {
97
+ return T(b) || y(b) === l;
98
+ }, Y.isConcurrentMode = T, Y.isContextConsumer = function(b) {
99
+ return y(b) === a;
100
+ }, Y.isContextProvider = function(b) {
101
+ return y(b) === s;
102
+ }, Y.isElement = function(b) {
103
+ return typeof b == "object" && b !== null && b.$$typeof === t;
104
+ }, Y.isForwardRef = function(b) {
105
+ return y(b) === f;
106
+ }, Y.isFragment = function(b) {
107
+ return y(b) === n;
108
+ }, Y.isLazy = function(b) {
109
+ return y(b) === v;
110
+ }, Y.isMemo = function(b) {
111
+ return y(b) === u;
112
+ }, Y.isPortal = function(b) {
113
+ return y(b) === r;
114
+ }, Y.isProfiler = function(b) {
115
+ return y(b) === i;
116
+ }, Y.isStrictMode = function(b) {
117
+ return y(b) === o;
118
+ }, Y.isSuspense = function(b) {
119
+ return y(b) === d;
120
+ }, Y.isValidElementType = function(b) {
121
+ return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === u || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === O || b.$$typeof === A || b.$$typeof === I || b.$$typeof === p);
122
+ }, Y.typeOf = y, Y;
123
+ }
124
+ var U = {};
123
125
  /** @license React v16.13.1
124
126
  * react-is.development.js
125
127
  *
@@ -128,477 +130,477 @@ var R = {};
128
130
  * This source code is licensed under the MIT license found in the
129
131
  * LICENSE file in the root directory of this source tree.
130
132
  */
131
- var we;
132
- function Fe() {
133
- return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
134
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, k = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
135
- function $(f) {
136
- return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
137
- f === n || f === h || f === r || f === a || f === b || f === N || typeof f == "object" && f !== null && (f.$$typeof === I || f.$$typeof === A || f.$$typeof === c || f.$$typeof === i || f.$$typeof === y || f.$$typeof === k || f.$$typeof === q || f.$$typeof === F || f.$$typeof === O);
138
- }
139
- function j(f) {
140
- if (typeof f == "object" && f !== null) {
141
- var W = f.$$typeof;
142
- switch (W) {
133
+ var Ut;
134
+ function lr() {
135
+ return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && (function() {
136
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
137
+ function y(C) {
138
+ return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
139
+ C === n || C === c || C === i || C === o || C === d || C === h || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === u || C.$$typeof === s || C.$$typeof === a || C.$$typeof === f || C.$$typeof === O || C.$$typeof === A || C.$$typeof === I || C.$$typeof === p);
140
+ }
141
+ function T(C) {
142
+ if (typeof C == "object" && C !== null) {
143
+ var re = C.$$typeof;
144
+ switch (re) {
143
145
  case t:
144
- var J = f.type;
145
- switch (J) {
146
- case d:
147
- case h:
146
+ var fe = C.type;
147
+ switch (fe) {
148
+ case l:
149
+ case c:
148
150
  case n:
149
- case r:
150
- case a:
151
- case b:
152
- return J;
151
+ case i:
152
+ case o:
153
+ case d:
154
+ return fe;
153
155
  default:
154
- var _e = J && J.$$typeof;
155
- switch (_e) {
156
- case i:
157
- case y:
158
- case I:
159
- case A:
160
- case c:
161
- return _e;
156
+ var ae = fe && fe.$$typeof;
157
+ switch (ae) {
158
+ case a:
159
+ case f:
160
+ case v:
161
+ case u:
162
+ case s:
163
+ return ae;
162
164
  default:
163
- return W;
165
+ return re;
164
166
  }
165
167
  }
166
- case s:
167
- return W;
168
+ case r:
169
+ return re;
168
170
  }
169
171
  }
170
172
  }
171
- var l = d, Y = h, G = i, Q = c, ee = t, re = y, V = n, te = I, ne = A, z = s, ae = r, D = a, U = b, H = !1;
172
- function oe(f) {
173
- return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(f) || j(f) === d;
173
+ var b = l, k = c, H = a, K = s, J = t, Z = f, G = n, B = v, te = u, z = r, L = i, j = o, V = d, M = !1;
174
+ function R(C) {
175
+ return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(C) || T(C) === l;
174
176
  }
175
- function o(f) {
176
- return j(f) === h;
177
+ function m(C) {
178
+ return T(C) === c;
177
179
  }
178
- function u(f) {
179
- return j(f) === i;
180
+ function w(C) {
181
+ return T(C) === a;
180
182
  }
181
- function E(f) {
182
- return j(f) === c;
183
+ function F(C) {
184
+ return T(C) === s;
183
185
  }
184
- function _(f) {
185
- return typeof f == "object" && f !== null && f.$$typeof === t;
186
+ function W(C) {
187
+ return typeof C == "object" && C !== null && C.$$typeof === t;
186
188
  }
187
- function m(f) {
188
- return j(f) === y;
189
+ function S(C) {
190
+ return T(C) === f;
189
191
  }
190
- function T(f) {
191
- return j(f) === n;
192
+ function P(C) {
193
+ return T(C) === n;
192
194
  }
193
- function v(f) {
194
- return j(f) === I;
195
+ function g(C) {
196
+ return T(C) === v;
195
197
  }
196
- function g(f) {
197
- return j(f) === A;
198
+ function _(C) {
199
+ return T(C) === u;
198
200
  }
199
- function w(f) {
200
- return j(f) === s;
201
+ function N(C) {
202
+ return T(C) === r;
201
203
  }
202
- function x(f) {
203
- return j(f) === r;
204
+ function $(C) {
205
+ return T(C) === i;
204
206
  }
205
- function S(f) {
206
- return j(f) === a;
207
+ function D(C) {
208
+ return T(C) === o;
207
209
  }
208
- function L(f) {
209
- return j(f) === b;
210
+ function X(C) {
211
+ return T(C) === d;
210
212
  }
211
- R.AsyncMode = l, R.ConcurrentMode = Y, R.ContextConsumer = G, R.ContextProvider = Q, R.Element = ee, R.ForwardRef = re, R.Fragment = V, R.Lazy = te, R.Memo = ne, R.Portal = z, R.Profiler = ae, R.StrictMode = D, R.Suspense = U, R.isAsyncMode = oe, R.isConcurrentMode = o, R.isContextConsumer = u, R.isContextProvider = E, R.isElement = _, R.isForwardRef = m, R.isFragment = T, R.isLazy = v, R.isMemo = g, R.isPortal = w, R.isProfiler = x, R.isStrictMode = S, R.isSuspense = L, R.isValidElementType = $, R.typeOf = j;
212
- }()), R;
213
+ U.AsyncMode = b, U.ConcurrentMode = k, U.ContextConsumer = H, U.ContextProvider = K, U.Element = J, U.ForwardRef = Z, U.Fragment = G, U.Lazy = B, U.Memo = te, U.Portal = z, U.Profiler = L, U.StrictMode = j, U.Suspense = V, U.isAsyncMode = R, U.isConcurrentMode = m, U.isContextConsumer = w, U.isContextProvider = F, U.isElement = W, U.isForwardRef = S, U.isFragment = P, U.isLazy = g, U.isMemo = _, U.isPortal = N, U.isProfiler = $, U.isStrictMode = D, U.isSuspense = X, U.isValidElementType = y, U.typeOf = T;
214
+ })()), U;
213
215
  }
214
- var Se;
215
- function Ie() {
216
- return Se || (Se = 1, process.env.NODE_ENV === "production" ? K.exports = We() : K.exports = Fe()), K.exports;
216
+ var Ht;
217
+ function Pn() {
218
+ return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? De.exports = cr() : De.exports = lr()), De.exports;
217
219
  }
218
220
  /*
219
221
  object-assign
220
222
  (c) Sindre Sorhus
221
223
  @license MIT
222
224
  */
223
- var ce, Ce;
224
- function Ue() {
225
- if (Ce) return ce;
226
- Ce = 1;
227
- var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
228
- function n(r) {
229
- if (r == null)
225
+ var ct, Kt;
226
+ function ur() {
227
+ if (Kt) return ct;
228
+ Kt = 1;
229
+ var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
230
+ function n(i) {
231
+ if (i == null)
230
232
  throw new TypeError("Object.assign cannot be called with null or undefined");
231
- return Object(r);
233
+ return Object(i);
232
234
  }
233
- function a() {
235
+ function o() {
234
236
  try {
235
237
  if (!Object.assign)
236
238
  return !1;
237
- var r = new String("abc");
238
- if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
239
+ var i = new String("abc");
240
+ if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
239
241
  return !1;
240
- for (var c = {}, i = 0; i < 10; i++)
241
- c["_" + String.fromCharCode(i)] = i;
242
- var d = Object.getOwnPropertyNames(c).map(function(y) {
243
- return c[y];
242
+ for (var s = {}, a = 0; a < 10; a++)
243
+ s["_" + String.fromCharCode(a)] = a;
244
+ var l = Object.getOwnPropertyNames(s).map(function(f) {
245
+ return s[f];
244
246
  });
245
- if (d.join("") !== "0123456789")
247
+ if (l.join("") !== "0123456789")
246
248
  return !1;
247
- var h = {};
248
- return "abcdefghijklmnopqrst".split("").forEach(function(y) {
249
- h[y] = y;
250
- }), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
249
+ var c = {};
250
+ return "abcdefghijklmnopqrst".split("").forEach(function(f) {
251
+ c[f] = f;
252
+ }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
251
253
  } catch {
252
254
  return !1;
253
255
  }
254
256
  }
255
- return ce = a() ? Object.assign : function(r, c) {
256
- for (var i, d = n(r), h, y = 1; y < arguments.length; y++) {
257
- i = Object(arguments[y]);
258
- for (var b in i)
259
- t.call(i, b) && (d[b] = i[b]);
257
+ return ct = o() ? Object.assign : function(i, s) {
258
+ for (var a, l = n(i), c, f = 1; f < arguments.length; f++) {
259
+ a = Object(arguments[f]);
260
+ for (var d in a)
261
+ t.call(a, d) && (l[d] = a[d]);
260
262
  if (e) {
261
- h = e(i);
262
- for (var N = 0; N < h.length; N++)
263
- s.call(i, h[N]) && (d[h[N]] = i[h[N]]);
263
+ c = e(a);
264
+ for (var h = 0; h < c.length; h++)
265
+ r.call(a, c[h]) && (l[c[h]] = a[c[h]]);
264
266
  }
265
267
  }
266
- return d;
267
- }, ce;
268
+ return l;
269
+ }, ct;
268
270
  }
269
- var le, Re;
270
- function he() {
271
- if (Re) return le;
272
- Re = 1;
271
+ var lt, zt;
272
+ function Mt() {
273
+ if (zt) return lt;
274
+ zt = 1;
273
275
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
274
- return le = e, le;
276
+ return lt = e, lt;
275
277
  }
276
- var fe, xe;
277
- function Me() {
278
- return xe || (xe = 1, fe = Function.call.bind(Object.prototype.hasOwnProperty)), fe;
278
+ var ut, Xt;
279
+ function Nn() {
280
+ return Xt || (Xt = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
279
281
  }
280
- var ue, Pe;
281
- function ze() {
282
- if (Pe) return ue;
283
- Pe = 1;
282
+ var ft, Gt;
283
+ function fr() {
284
+ if (Gt) return ft;
285
+ Gt = 1;
284
286
  var e = function() {
285
287
  };
286
288
  if (process.env.NODE_ENV !== "production") {
287
- var t = /* @__PURE__ */ he(), s = {}, n = /* @__PURE__ */ Me();
288
- e = function(r) {
289
- var c = "Warning: " + r;
290
- typeof console < "u" && console.error(c);
289
+ var t = /* @__PURE__ */ Mt(), r = {}, n = /* @__PURE__ */ Nn();
290
+ e = function(i) {
291
+ var s = "Warning: " + i;
292
+ typeof console < "u" && console.error(s);
291
293
  try {
292
- throw new Error(c);
294
+ throw new Error(s);
293
295
  } catch {
294
296
  }
295
297
  };
296
298
  }
297
- function a(r, c, i, d, h) {
299
+ function o(i, s, a, l, c) {
298
300
  if (process.env.NODE_ENV !== "production") {
299
- for (var y in r)
300
- if (n(r, y)) {
301
- var b;
301
+ for (var f in i)
302
+ if (n(i, f)) {
303
+ var d;
302
304
  try {
303
- if (typeof r[y] != "function") {
304
- var N = Error(
305
- (d || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
305
+ if (typeof i[f] != "function") {
306
+ var h = Error(
307
+ (l || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
306
308
  );
307
- throw N.name = "Invariant Violation", N;
309
+ throw h.name = "Invariant Violation", h;
308
310
  }
309
- b = r[y](c, y, d, i, null, t);
310
- } catch (I) {
311
- b = I;
311
+ d = i[f](s, f, l, a, null, t);
312
+ } catch (v) {
313
+ d = v;
312
314
  }
313
- if (b && !(b instanceof Error) && e(
314
- (d || "React class") + ": type specification of " + i + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof b + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
315
- ), b instanceof Error && !(b.message in s)) {
316
- s[b.message] = !0;
317
- var A = h ? h() : "";
315
+ if (d && !(d instanceof Error) && e(
316
+ (l || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
317
+ ), d instanceof Error && !(d.message in r)) {
318
+ r[d.message] = !0;
319
+ var u = c ? c() : "";
318
320
  e(
319
- "Failed " + i + " type: " + b.message + (A ?? "")
321
+ "Failed " + a + " type: " + d.message + (u ?? "")
320
322
  );
321
323
  }
322
324
  }
323
325
  }
324
326
  }
325
- return a.resetWarningCache = function() {
326
- process.env.NODE_ENV !== "production" && (s = {});
327
- }, ue = a, ue;
328
- }
329
- var pe, Oe;
330
- function Be() {
331
- if (Oe) return pe;
332
- Oe = 1;
333
- var e = Ie(), t = Ue(), s = /* @__PURE__ */ he(), n = /* @__PURE__ */ Me(), a = /* @__PURE__ */ ze(), r = function() {
327
+ return o.resetWarningCache = function() {
328
+ process.env.NODE_ENV !== "production" && (r = {});
329
+ }, ft = o, ft;
330
+ }
331
+ var dt, Zt;
332
+ function dr() {
333
+ if (Zt) return dt;
334
+ Zt = 1;
335
+ var e = Pn(), t = ur(), r = /* @__PURE__ */ Mt(), n = /* @__PURE__ */ Nn(), o = /* @__PURE__ */ fr(), i = function() {
334
336
  };
335
- process.env.NODE_ENV !== "production" && (r = function(i) {
336
- var d = "Warning: " + i;
337
- typeof console < "u" && console.error(d);
337
+ process.env.NODE_ENV !== "production" && (i = function(a) {
338
+ var l = "Warning: " + a;
339
+ typeof console < "u" && console.error(l);
338
340
  try {
339
- throw new Error(d);
341
+ throw new Error(l);
340
342
  } catch {
341
343
  }
342
344
  });
343
- function c() {
345
+ function s() {
344
346
  return null;
345
347
  }
346
- return pe = function(i, d) {
347
- var h = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
348
- function b(o) {
349
- var u = o && (h && o[h] || o[y]);
350
- if (typeof u == "function")
351
- return u;
352
- }
353
- var N = "<<anonymous>>", A = {
354
- array: q("array"),
355
- bigint: q("bigint"),
356
- bool: q("boolean"),
357
- func: q("function"),
358
- number: q("number"),
359
- object: q("object"),
360
- string: q("string"),
361
- symbol: q("symbol"),
362
- any: F(),
363
- arrayOf: $,
364
- element: j(),
365
- elementType: l(),
366
- instanceOf: Y,
367
- node: re(),
368
- objectOf: Q,
369
- oneOf: G,
370
- oneOfType: ee,
371
- shape: te,
372
- exact: ne
348
+ return dt = function(a, l) {
349
+ var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
350
+ function d(m) {
351
+ var w = m && (c && m[c] || m[f]);
352
+ if (typeof w == "function")
353
+ return w;
354
+ }
355
+ var h = "<<anonymous>>", u = {
356
+ array: A("array"),
357
+ bigint: A("bigint"),
358
+ bool: A("boolean"),
359
+ func: A("function"),
360
+ number: A("number"),
361
+ object: A("object"),
362
+ string: A("string"),
363
+ symbol: A("symbol"),
364
+ any: I(),
365
+ arrayOf: y,
366
+ element: T(),
367
+ elementType: b(),
368
+ instanceOf: k,
369
+ node: Z(),
370
+ objectOf: K,
371
+ oneOf: H,
372
+ oneOfType: J,
373
+ shape: B,
374
+ exact: te
373
375
  };
374
- function I(o, u) {
375
- return o === u ? o !== 0 || 1 / o === 1 / u : o !== o && u !== u;
376
+ function v(m, w) {
377
+ return m === w ? m !== 0 || 1 / m === 1 / w : m !== m && w !== w;
376
378
  }
377
- function O(o, u) {
378
- this.message = o, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
379
+ function p(m, w) {
380
+ this.message = m, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
379
381
  }
380
- O.prototype = Error.prototype;
381
- function k(o) {
382
+ p.prototype = Error.prototype;
383
+ function O(m) {
382
384
  if (process.env.NODE_ENV !== "production")
383
- var u = {}, E = 0;
384
- function _(T, v, g, w, x, S, L) {
385
- if (w = w || N, S = S || g, L !== s) {
386
- if (d) {
387
- var f = new Error(
385
+ var w = {}, F = 0;
386
+ function W(P, g, _, N, $, D, X) {
387
+ if (N = N || h, D = D || _, X !== r) {
388
+ if (l) {
389
+ var C = new Error(
388
390
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
389
391
  );
390
- throw f.name = "Invariant Violation", f;
392
+ throw C.name = "Invariant Violation", C;
391
393
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
392
- var W = w + ":" + g;
393
- !u[W] && // Avoid spamming the console because they are often not actionable except for lib authors
394
- E < 3 && (r(
395
- "You are manually calling a React.PropTypes validation function for the `" + S + "` prop on `" + w + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
396
- ), u[W] = !0, E++);
394
+ var re = N + ":" + _;
395
+ !w[re] && // Avoid spamming the console because they are often not actionable except for lib authors
396
+ F < 3 && (i(
397
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + N + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
398
+ ), w[re] = !0, F++);
397
399
  }
398
400
  }
399
- return v[g] == null ? T ? v[g] === null ? new O("The " + x + " `" + S + "` is marked as required " + ("in `" + w + "`, but its value is `null`.")) : new O("The " + x + " `" + S + "` is marked as required in " + ("`" + w + "`, but its value is `undefined`.")) : null : o(v, g, w, x, S);
401
+ return g[_] == null ? P ? g[_] === null ? new p("The " + $ + " `" + D + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new p("The " + $ + " `" + D + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : m(g, _, N, $, D);
400
402
  }
401
- var m = _.bind(null, !1);
402
- return m.isRequired = _.bind(null, !0), m;
403
- }
404
- function q(o) {
405
- function u(E, _, m, T, v, g) {
406
- var w = E[_], x = D(w);
407
- if (x !== o) {
408
- var S = U(w);
409
- return new O(
410
- "Invalid " + T + " `" + v + "` of type " + ("`" + S + "` supplied to `" + m + "`, expected ") + ("`" + o + "`."),
411
- { expectedType: o }
403
+ var S = W.bind(null, !1);
404
+ return S.isRequired = W.bind(null, !0), S;
405
+ }
406
+ function A(m) {
407
+ function w(F, W, S, P, g, _) {
408
+ var N = F[W], $ = j(N);
409
+ if ($ !== m) {
410
+ var D = V(N);
411
+ return new p(
412
+ "Invalid " + P + " `" + g + "` of type " + ("`" + D + "` supplied to `" + S + "`, expected ") + ("`" + m + "`."),
413
+ { expectedType: m }
412
414
  );
413
415
  }
414
416
  return null;
415
417
  }
416
- return k(u);
417
- }
418
- function F() {
419
- return k(c);
420
- }
421
- function $(o) {
422
- function u(E, _, m, T, v) {
423
- if (typeof o != "function")
424
- return new O("Property `" + v + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
425
- var g = E[_];
426
- if (!Array.isArray(g)) {
427
- var w = D(g);
428
- return new O("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + m + "`, expected an array."));
418
+ return O(w);
419
+ }
420
+ function I() {
421
+ return O(s);
422
+ }
423
+ function y(m) {
424
+ function w(F, W, S, P, g) {
425
+ if (typeof m != "function")
426
+ return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
427
+ var _ = F[W];
428
+ if (!Array.isArray(_)) {
429
+ var N = j(_);
430
+ return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an array."));
429
431
  }
430
- for (var x = 0; x < g.length; x++) {
431
- var S = o(g, x, m, T, v + "[" + x + "]", s);
432
- if (S instanceof Error)
433
- return S;
432
+ for (var $ = 0; $ < _.length; $++) {
433
+ var D = m(_, $, S, P, g + "[" + $ + "]", r);
434
+ if (D instanceof Error)
435
+ return D;
434
436
  }
435
437
  return null;
436
438
  }
437
- return k(u);
438
- }
439
- function j() {
440
- function o(u, E, _, m, T) {
441
- var v = u[E];
442
- if (!i(v)) {
443
- var g = D(v);
444
- return new O("Invalid " + m + " `" + T + "` of type " + ("`" + g + "` supplied to `" + _ + "`, expected a single ReactElement."));
439
+ return O(w);
440
+ }
441
+ function T() {
442
+ function m(w, F, W, S, P) {
443
+ var g = w[F];
444
+ if (!a(g)) {
445
+ var _ = j(g);
446
+ return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement."));
445
447
  }
446
448
  return null;
447
449
  }
448
- return k(o);
449
- }
450
- function l() {
451
- function o(u, E, _, m, T) {
452
- var v = u[E];
453
- if (!e.isValidElementType(v)) {
454
- var g = D(v);
455
- return new O("Invalid " + m + " `" + T + "` of type " + ("`" + g + "` supplied to `" + _ + "`, expected a single ReactElement type."));
450
+ return O(m);
451
+ }
452
+ function b() {
453
+ function m(w, F, W, S, P) {
454
+ var g = w[F];
455
+ if (!e.isValidElementType(g)) {
456
+ var _ = j(g);
457
+ return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement type."));
456
458
  }
457
459
  return null;
458
460
  }
459
- return k(o);
461
+ return O(m);
460
462
  }
461
- function Y(o) {
462
- function u(E, _, m, T, v) {
463
- if (!(E[_] instanceof o)) {
464
- var g = o.name || N, w = oe(E[_]);
465
- return new O("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + m + "`, expected ") + ("instance of `" + g + "`."));
463
+ function k(m) {
464
+ function w(F, W, S, P, g) {
465
+ if (!(F[W] instanceof m)) {
466
+ var _ = m.name || h, N = R(F[W]);
467
+ return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected ") + ("instance of `" + _ + "`."));
466
468
  }
467
469
  return null;
468
470
  }
469
- return k(u);
471
+ return O(w);
470
472
  }
471
- function G(o) {
472
- if (!Array.isArray(o))
473
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
473
+ function H(m) {
474
+ if (!Array.isArray(m))
475
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
474
476
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
475
- ) : r("Invalid argument supplied to oneOf, expected an array.")), c;
476
- function u(E, _, m, T, v) {
477
- for (var g = E[_], w = 0; w < o.length; w++)
478
- if (I(g, o[w]))
477
+ ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
478
+ function w(F, W, S, P, g) {
479
+ for (var _ = F[W], N = 0; N < m.length; N++)
480
+ if (v(_, m[N]))
479
481
  return null;
480
- var x = JSON.stringify(o, function(L, f) {
481
- var W = U(f);
482
- return W === "symbol" ? String(f) : f;
482
+ var $ = JSON.stringify(m, function(X, C) {
483
+ var re = V(C);
484
+ return re === "symbol" ? String(C) : C;
483
485
  });
484
- return new O("Invalid " + T + " `" + v + "` of value `" + String(g) + "` " + ("supplied to `" + m + "`, expected one of " + x + "."));
486
+ return new p("Invalid " + P + " `" + g + "` of value `" + String(_) + "` " + ("supplied to `" + S + "`, expected one of " + $ + "."));
485
487
  }
486
- return k(u);
487
- }
488
- function Q(o) {
489
- function u(E, _, m, T, v) {
490
- if (typeof o != "function")
491
- return new O("Property `" + v + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
492
- var g = E[_], w = D(g);
493
- if (w !== "object")
494
- return new O("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + m + "`, expected an object."));
495
- for (var x in g)
496
- if (n(g, x)) {
497
- var S = o(g, x, m, T, v + "." + x, s);
498
- if (S instanceof Error)
499
- return S;
488
+ return O(w);
489
+ }
490
+ function K(m) {
491
+ function w(F, W, S, P, g) {
492
+ if (typeof m != "function")
493
+ return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
494
+ var _ = F[W], N = j(_);
495
+ if (N !== "object")
496
+ return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an object."));
497
+ for (var $ in _)
498
+ if (n(_, $)) {
499
+ var D = m(_, $, S, P, g + "." + $, r);
500
+ if (D instanceof Error)
501
+ return D;
500
502
  }
501
503
  return null;
502
504
  }
503
- return k(u);
504
- }
505
- function ee(o) {
506
- if (!Array.isArray(o))
507
- return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), c;
508
- for (var u = 0; u < o.length; u++) {
509
- var E = o[u];
510
- if (typeof E != "function")
511
- return r(
512
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(E) + " at index " + u + "."
513
- ), c;
505
+ return O(w);
506
+ }
507
+ function J(m) {
508
+ if (!Array.isArray(m))
509
+ return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
510
+ for (var w = 0; w < m.length; w++) {
511
+ var F = m[w];
512
+ if (typeof F != "function")
513
+ return i(
514
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(F) + " at index " + w + "."
515
+ ), s;
514
516
  }
515
- function _(m, T, v, g, w) {
516
- for (var x = [], S = 0; S < o.length; S++) {
517
- var L = o[S], f = L(m, T, v, g, w, s);
518
- if (f == null)
517
+ function W(S, P, g, _, N) {
518
+ for (var $ = [], D = 0; D < m.length; D++) {
519
+ var X = m[D], C = X(S, P, g, _, N, r);
520
+ if (C == null)
519
521
  return null;
520
- f.data && n(f.data, "expectedType") && x.push(f.data.expectedType);
522
+ C.data && n(C.data, "expectedType") && $.push(C.data.expectedType);
521
523
  }
522
- var W = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : "";
523
- return new O("Invalid " + g + " `" + w + "` supplied to " + ("`" + v + "`" + W + "."));
524
+ var re = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
525
+ return new p("Invalid " + _ + " `" + N + "` supplied to " + ("`" + g + "`" + re + "."));
524
526
  }
525
- return k(_);
527
+ return O(W);
526
528
  }
527
- function re() {
528
- function o(u, E, _, m, T) {
529
- return z(u[E]) ? null : new O("Invalid " + m + " `" + T + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
529
+ function Z() {
530
+ function m(w, F, W, S, P) {
531
+ return z(w[F]) ? null : new p("Invalid " + S + " `" + P + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
530
532
  }
531
- return k(o);
533
+ return O(m);
532
534
  }
533
- function V(o, u, E, _, m) {
534
- return new O(
535
- (o || "React class") + ": " + u + " type `" + E + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
535
+ function G(m, w, F, W, S) {
536
+ return new p(
537
+ (m || "React class") + ": " + w + " type `" + F + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
536
538
  );
537
539
  }
538
- function te(o) {
539
- function u(E, _, m, T, v) {
540
- var g = E[_], w = D(g);
541
- if (w !== "object")
542
- return new O("Invalid " + T + " `" + v + "` of type `" + w + "` " + ("supplied to `" + m + "`, expected `object`."));
543
- for (var x in o) {
544
- var S = o[x];
545
- if (typeof S != "function")
546
- return V(m, T, v, x, U(S));
547
- var L = S(g, x, m, T, v + "." + x, s);
548
- if (L)
549
- return L;
540
+ function B(m) {
541
+ function w(F, W, S, P, g) {
542
+ var _ = F[W], N = j(_);
543
+ if (N !== "object")
544
+ return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
545
+ for (var $ in m) {
546
+ var D = m[$];
547
+ if (typeof D != "function")
548
+ return G(S, P, g, $, V(D));
549
+ var X = D(_, $, S, P, g + "." + $, r);
550
+ if (X)
551
+ return X;
550
552
  }
551
553
  return null;
552
554
  }
553
- return k(u);
554
- }
555
- function ne(o) {
556
- function u(E, _, m, T, v) {
557
- var g = E[_], w = D(g);
558
- if (w !== "object")
559
- return new O("Invalid " + T + " `" + v + "` of type `" + w + "` " + ("supplied to `" + m + "`, expected `object`."));
560
- var x = t({}, E[_], o);
561
- for (var S in x) {
562
- var L = o[S];
563
- if (n(o, S) && typeof L != "function")
564
- return V(m, T, v, S, U(L));
565
- if (!L)
566
- return new O(
567
- "Invalid " + T + " `" + v + "` key `" + S + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(E[_], null, " ") + `
568
- Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
555
+ return O(w);
556
+ }
557
+ function te(m) {
558
+ function w(F, W, S, P, g) {
559
+ var _ = F[W], N = j(_);
560
+ if (N !== "object")
561
+ return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
562
+ var $ = t({}, F[W], m);
563
+ for (var D in $) {
564
+ var X = m[D];
565
+ if (n(m, D) && typeof X != "function")
566
+ return G(S, P, g, D, V(X));
567
+ if (!X)
568
+ return new p(
569
+ "Invalid " + P + " `" + g + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(F[W], null, " ") + `
570
+ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
569
571
  );
570
- var f = L(g, S, m, T, v + "." + S, s);
571
- if (f)
572
- return f;
572
+ var C = X(_, D, S, P, g + "." + D, r);
573
+ if (C)
574
+ return C;
573
575
  }
574
576
  return null;
575
577
  }
576
- return k(u);
578
+ return O(w);
577
579
  }
578
- function z(o) {
579
- switch (typeof o) {
580
+ function z(m) {
581
+ switch (typeof m) {
580
582
  case "number":
581
583
  case "string":
582
584
  case "undefined":
583
585
  return !0;
584
586
  case "boolean":
585
- return !o;
587
+ return !m;
586
588
  case "object":
587
- if (Array.isArray(o))
588
- return o.every(z);
589
- if (o === null || i(o))
589
+ if (Array.isArray(m))
590
+ return m.every(z);
591
+ if (m === null || a(m))
590
592
  return !0;
591
- var u = b(o);
592
- if (u) {
593
- var E = u.call(o), _;
594
- if (u !== o.entries) {
595
- for (; !(_ = E.next()).done; )
596
- if (!z(_.value))
593
+ var w = d(m);
594
+ if (w) {
595
+ var F = w.call(m), W;
596
+ if (w !== m.entries) {
597
+ for (; !(W = F.next()).done; )
598
+ if (!z(W.value))
597
599
  return !1;
598
600
  } else
599
- for (; !(_ = E.next()).done; ) {
600
- var m = _.value;
601
- if (m && !z(m[1]))
601
+ for (; !(W = F.next()).done; ) {
602
+ var S = W.value;
603
+ if (S && !z(S[1]))
602
604
  return !1;
603
605
  }
604
606
  } else
@@ -608,68 +610,68 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
608
610
  return !1;
609
611
  }
610
612
  }
611
- function ae(o, u) {
612
- return o === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
613
+ function L(m, w) {
614
+ return m === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
613
615
  }
614
- function D(o) {
615
- var u = typeof o;
616
- return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : ae(u, o) ? "symbol" : u;
616
+ function j(m) {
617
+ var w = typeof m;
618
+ return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : L(w, m) ? "symbol" : w;
617
619
  }
618
- function U(o) {
619
- if (typeof o > "u" || o === null)
620
- return "" + o;
621
- var u = D(o);
622
- if (u === "object") {
623
- if (o instanceof Date)
620
+ function V(m) {
621
+ if (typeof m > "u" || m === null)
622
+ return "" + m;
623
+ var w = j(m);
624
+ if (w === "object") {
625
+ if (m instanceof Date)
624
626
  return "date";
625
- if (o instanceof RegExp)
627
+ if (m instanceof RegExp)
626
628
  return "regexp";
627
629
  }
628
- return u;
630
+ return w;
629
631
  }
630
- function H(o) {
631
- var u = U(o);
632
- switch (u) {
632
+ function M(m) {
633
+ var w = V(m);
634
+ switch (w) {
633
635
  case "array":
634
636
  case "object":
635
- return "an " + u;
637
+ return "an " + w;
636
638
  case "boolean":
637
639
  case "date":
638
640
  case "regexp":
639
- return "a " + u;
641
+ return "a " + w;
640
642
  default:
641
- return u;
643
+ return w;
642
644
  }
643
645
  }
644
- function oe(o) {
645
- return !o.constructor || !o.constructor.name ? N : o.constructor.name;
646
+ function R(m) {
647
+ return !m.constructor || !m.constructor.name ? h : m.constructor.name;
646
648
  }
647
- return A.checkPropTypes = a, A.resetWarningCache = a.resetWarningCache, A.PropTypes = A, A;
648
- }, pe;
649
+ return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
650
+ }, dt;
649
651
  }
650
- var de, Ne;
651
- function Ve() {
652
- if (Ne) return de;
653
- Ne = 1;
654
- var e = /* @__PURE__ */ he();
652
+ var pt, Jt;
653
+ function pr() {
654
+ if (Jt) return pt;
655
+ Jt = 1;
656
+ var e = /* @__PURE__ */ Mt();
655
657
  function t() {
656
658
  }
657
- function s() {
659
+ function r() {
658
660
  }
659
- return s.resetWarningCache = t, de = function() {
660
- function n(c, i, d, h, y, b) {
661
- if (b !== e) {
662
- var N = new Error(
661
+ return r.resetWarningCache = t, pt = function() {
662
+ function n(s, a, l, c, f, d) {
663
+ if (d !== e) {
664
+ var h = new Error(
663
665
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
664
666
  );
665
- throw N.name = "Invariant Violation", N;
667
+ throw h.name = "Invariant Violation", h;
666
668
  }
667
669
  }
668
670
  n.isRequired = n;
669
- function a() {
671
+ function o() {
670
672
  return n;
671
673
  }
672
- var r = {
674
+ var i = {
673
675
  array: n,
674
676
  bigint: n,
675
677
  bool: n,
@@ -679,519 +681,564 @@ function Ve() {
679
681
  string: n,
680
682
  symbol: n,
681
683
  any: n,
682
- arrayOf: a,
684
+ arrayOf: o,
683
685
  element: n,
684
686
  elementType: n,
685
- instanceOf: a,
687
+ instanceOf: o,
686
688
  node: n,
687
- objectOf: a,
688
- oneOf: a,
689
- oneOfType: a,
690
- shape: a,
691
- exact: a,
692
- checkPropTypes: s,
689
+ objectOf: o,
690
+ oneOf: o,
691
+ oneOfType: o,
692
+ shape: o,
693
+ exact: o,
694
+ checkPropTypes: r,
693
695
  resetWarningCache: t
694
696
  };
695
- return r.PropTypes = r, r;
696
- }, de;
697
- }
698
- var Ae;
699
- function He() {
700
- if (Ae) return Z.exports;
701
- if (Ae = 1, process.env.NODE_ENV !== "production") {
702
- var e = Ie(), t = !0;
703
- Z.exports = /* @__PURE__ */ Be()(e.isElement, t);
697
+ return i.PropTypes = i, i;
698
+ }, pt;
699
+ }
700
+ var Qt;
701
+ function mr() {
702
+ if (Qt) return Me.exports;
703
+ if (Qt = 1, process.env.NODE_ENV !== "production") {
704
+ var e = Pn(), t = !0;
705
+ Me.exports = /* @__PURE__ */ dr()(e.isElement, t);
704
706
  } else
705
- Z.exports = /* @__PURE__ */ Ve()();
706
- return Z.exports;
707
- }
708
- var Je = /* @__PURE__ */ He();
709
- const X = /* @__PURE__ */ $e(Je), Ze = ({ content: e, title: t, className: s, id: n = "accordion" }) => {
710
- const a = M("rpf-accordion", s);
711
- return /* @__PURE__ */ P("details", { className: a, id: `${n}`, children: [
712
- /* @__PURE__ */ P("summary", { className: "rpf-accordion__title", role: "button", children: [
707
+ Me.exports = /* @__PURE__ */ pr()();
708
+ return Me.exports;
709
+ }
710
+ var hr = /* @__PURE__ */ mr();
711
+ const Le = /* @__PURE__ */ An(hr), vr = ({ content: e, title: t, className: r, id: n = "accordion" }) => {
712
+ const o = ee("rpf-accordion", r);
713
+ return /* @__PURE__ */ q("details", { className: o, id: `${n}`, children: [
714
+ /* @__PURE__ */ q("summary", { className: "rpf-accordion__title", role: "button", children: [
713
715
  t,
714
- /* @__PURE__ */ p("span", { className: "rpf-accordion__icon" })
716
+ /* @__PURE__ */ E("span", { className: "rpf-accordion__icon" })
715
717
  ] }),
716
- /* @__PURE__ */ p("p", { className: "rpf-accordion__text", children: e })
718
+ /* @__PURE__ */ E("p", { className: "rpf-accordion__text", children: e })
717
719
  ] });
718
720
  };
719
- Ze.propTypes = {
720
- content: X.string.isRequired,
721
- title: X.string.isRequired,
722
- id: X.string,
723
- className: X.string
721
+ vr.propTypes = {
722
+ content: Le.string.isRequired,
723
+ title: Le.string.isRequired,
724
+ id: Le.string,
725
+ className: Le.string
724
726
  };
725
- const B = ({
727
+ const Re = ({
726
728
  text: e,
727
729
  href: t,
728
- title: s,
730
+ title: r,
729
731
  className: n,
730
- type: a = "primary",
731
- variant: r = "",
732
- size: c = "default",
733
- icon: i = "",
734
- iconOnly: d = !1,
735
- iconPosition: h = "left",
736
- fullWidth: y = !1,
737
- disabled: b = !1,
738
- onClick: N = () => {
732
+ type: o = "primary",
733
+ variant: i = "",
734
+ size: s = "default",
735
+ icon: a = "",
736
+ iconOnly: l = !1,
737
+ iconPosition: c = "left",
738
+ fullWidth: f = !1,
739
+ disabled: d = !1,
740
+ onClick: h = () => {
739
741
  },
740
- "aria-label": A = "",
741
- linkComponent: I
742
+ "aria-label": u = "",
743
+ linkComponent: v
742
744
  // to pass in react-router-dom Link component
743
745
  }) => {
744
- const O = i && d, k = M(
746
+ const p = a && l, O = ee(
745
747
  // Static classes
746
748
  "rpf-button",
747
749
  // Conditional classes
748
750
  {
749
- [`rpf-button--${a}`]: a,
750
- "rpf-button--danger": r === "danger",
751
- "rpf-button--sm": c === "small",
752
- "rpf-button--icon-only": O,
753
- "rpf-button--full-width": y,
754
- disabled: b
751
+ [`rpf-button--${o}`]: o,
752
+ "rpf-button--danger": i === "danger",
753
+ "rpf-button--sm": s === "small",
754
+ "rpf-button--icon-only": p,
755
+ "rpf-button--full-width": f,
756
+ disabled: d
755
757
  },
756
758
  n
757
759
  );
758
- let q = "rpf-button__icon";
759
- Le.isValidElement(i) ? (q += " icon", console.warn(
760
- "DEPRECATED: icons as React elements will not be supported in future releases"
761
- )) : q += " material-symbols-sharp";
762
- const F = (l, Y) => !Y || h !== l ? null : typeof Y == "string" ? /* @__PURE__ */ p("span", { className: q, children: Y }) : Y, $ = () => e && !O && /* @__PURE__ */ p("span", { className: "text", children: e }), j = /* @__PURE__ */ P(me, { children: [
763
- F("left", i),
764
- $(),
765
- F("right", i)
760
+ let A = "rpf-button__icon";
761
+ rr.isValidElement(a) ? A += " icon" : A += " material-symbols-sharp";
762
+ const I = (b, k) => !k || c !== b ? null : typeof k == "string" ? /* @__PURE__ */ E("span", { className: A, children: k }) : k, y = () => e && !p && /* @__PURE__ */ E("span", { className: "text", children: e }), T = /* @__PURE__ */ q(Ie, { children: [
763
+ I("left", a),
764
+ y(),
765
+ I("right", a)
766
766
  ] });
767
- return t ? /* @__PURE__ */ p(
768
- I || "a",
767
+ return t ? /* @__PURE__ */ E(
768
+ v || "a",
769
769
  {
770
- className: k,
771
- ...I ? { to: t } : { href: t, role: "button" },
772
- onClick: N,
773
- "aria-label": A,
774
- children: j
770
+ className: O,
771
+ ...v ? { to: t } : { href: t, role: "button" },
772
+ onClick: h,
773
+ "aria-label": u,
774
+ children: T
775
775
  }
776
- ) : /* @__PURE__ */ p(
776
+ ) : /* @__PURE__ */ E(
777
777
  "button",
778
778
  {
779
- className: k,
780
- title: s,
781
- onClick: N,
782
- disabled: b,
783
- "aria-label": A,
784
- children: j
779
+ className: O,
780
+ title: r,
781
+ onClick: h,
782
+ disabled: d,
783
+ "aria-label": u,
784
+ children: T
785
785
  }
786
786
  );
787
- }, ur = ({
787
+ }, Ni = ({
788
788
  title: e,
789
789
  text: t,
790
- titleChildren: s,
790
+ titleChildren: r,
791
791
  children: n,
792
- type: a,
793
- actions: r,
794
- onClose: c
795
- }) => /* @__PURE__ */ P("div", { className: `rpf-alert rpf-alert--${a}`, children: [
796
- /* @__PURE__ */ P("div", { className: "rpf-alert__header", children: [
797
- /* @__PURE__ */ p("span", { className: "rpf-alert__icon material-symbols-sharp" }),
798
- s ? /* @__PURE__ */ p("div", { className: "rpf-alert__title", children: s }) : e ? /* @__PURE__ */ p("p", { className: "rpf-alert__title", children: e }) : null,
799
- !!c && /* @__PURE__ */ p("div", { className: "rpf-alert__close", children: /* @__PURE__ */ p(
800
- B,
792
+ type: o,
793
+ actions: i,
794
+ onClose: s
795
+ }) => /* @__PURE__ */ q("div", { className: `rpf-alert rpf-alert--${o}`, children: [
796
+ /* @__PURE__ */ q("div", { className: "rpf-alert__header", children: [
797
+ /* @__PURE__ */ E("span", { className: "rpf-alert__icon material-symbols-sharp" }),
798
+ r ? /* @__PURE__ */ E("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ E("p", { className: "rpf-alert__title", children: e }) : null,
799
+ !!s && /* @__PURE__ */ E("div", { className: "rpf-alert__close", children: /* @__PURE__ */ E(
800
+ Re,
801
801
  {
802
802
  type: "tertiary",
803
803
  icon: "close",
804
804
  size: "small",
805
805
  iconOnly: !0,
806
- onClick: c
806
+ onClick: s
807
807
  }
808
808
  ) })
809
809
  ] }),
810
- (t || n || r) && /* @__PURE__ */ P("div", { className: "rpf-alert__body", children: [
811
- t ? /* @__PURE__ */ p("p", { children: t }) : n ? /* @__PURE__ */ p("div", { children: n }) : null,
812
- r && r.length > 0 && /* @__PURE__ */ p("div", { className: "rpf-alert__actions", children: r.map((i, d) => /* @__PURE__ */ p(
813
- B,
810
+ (t || n || i) && /* @__PURE__ */ q("div", { className: "rpf-alert__body", children: [
811
+ t ? /* @__PURE__ */ E("p", { children: t }) : n ? /* @__PURE__ */ E("div", { children: n }) : null,
812
+ i && i.length > 0 && /* @__PURE__ */ E("div", { className: "rpf-alert__actions", children: i.map((a, l) => /* @__PURE__ */ E(
813
+ Re,
814
814
  {
815
- text: i.label,
815
+ text: a.label,
816
816
  size: "small",
817
817
  type: "tertiary",
818
- href: i.href,
819
- onClick: i.onClick
818
+ href: a.href,
819
+ onClick: a.onClick
820
820
  },
821
- d
821
+ l
822
822
  )) })
823
823
  ] })
824
- ] }), pr = ({
825
- id: e,
826
- label: t,
827
- name: s,
828
- checked: n = !1,
829
- disabled: a = !1,
830
- error: r = "",
831
- onChange: c = () => {
832
- },
833
- value: i = "",
834
- className: d = ""
835
- }) => /* @__PURE__ */ P(me, { children: [
836
- /* @__PURE__ */ P(
837
- "label",
838
- {
839
- className: M("rpf-input-checkbox", {
840
- "rpf-input-checkbox--error": r,
841
- className: d
842
- }),
843
- children: [
844
- /* @__PURE__ */ p(
845
- "input",
846
- {
847
- checked: !!n,
848
- disabled: a,
849
- id: e,
850
- name: s,
851
- onChange: c,
852
- type: "checkbox",
853
- value: i
854
- }
855
- ),
856
- t
857
- ]
858
- }
859
- ),
860
- r && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
861
- /* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
862
- r
863
- ] })
864
- ] }), dr = ({
824
+ ] }), Ii = ({
825
+ label: e,
826
+ id: t,
827
+ name: r,
828
+ error: n = "",
829
+ ...o
830
+ }) => {
831
+ const { className: i, ...s } = o;
832
+ return /* @__PURE__ */ q(Ie, { children: [
833
+ /* @__PURE__ */ q(
834
+ "label",
835
+ {
836
+ className: ee("rpf-input-checkbox", {
837
+ "rpf-input-checkbox--error": n,
838
+ className: i
839
+ }),
840
+ children: [
841
+ /* @__PURE__ */ E("input", { id: t, name: r, type: "checkbox", ...s }),
842
+ e
843
+ ]
844
+ }
845
+ ),
846
+ n && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
847
+ /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
848
+ n
849
+ ] })
850
+ ] });
851
+ }, ki = ({
865
852
  disabled: e = !1,
866
853
  errorText: t = "",
867
- fullWidth: s = !1,
854
+ fullWidth: r = !1,
868
855
  legendText: n,
869
- legendHintText: a = "",
870
- children: r
871
- }) => /* @__PURE__ */ P(
856
+ legendHintText: o = "",
857
+ children: i
858
+ }) => /* @__PURE__ */ q(
872
859
  "fieldset",
873
860
  {
874
- className: M("rpf-fieldset", {
861
+ className: ee("rpf-fieldset", {
875
862
  "rpf-fieldset--disabled": e,
876
- "rpf-fieldset--full-width": s,
863
+ "rpf-fieldset--full-width": r,
877
864
  "rpf-fieldset--error": t
878
865
  }),
879
866
  disabled: e,
880
867
  children: [
881
- /* @__PURE__ */ P("legend", { className: "rpf-label", children: [
868
+ /* @__PURE__ */ q("legend", { className: "rpf-label", children: [
882
869
  n,
883
- a.length > 0 ? /* @__PURE__ */ p("small", { className: "rpf-label__hint", children: a }) : null
870
+ o.length > 0 ? /* @__PURE__ */ E("small", { className: "rpf-label__hint", children: o }) : null
884
871
  ] }),
885
- /* @__PURE__ */ p("div", { className: "rpf-fieldset__inputs", children: r }),
886
- t.length > 0 ? /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
887
- /* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
872
+ /* @__PURE__ */ E("div", { className: "rpf-fieldset__inputs", children: i }),
873
+ t.length > 0 ? /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
874
+ /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
888
875
  t
889
876
  ] }) : null
890
877
  ]
891
878
  }
892
- ), ve = ({
879
+ ), Dt = ({
893
880
  id: e,
894
881
  label: t,
895
- children: s,
882
+ children: r,
896
883
  disabled: n = !1,
897
- error: a = "",
898
- hint: r = ""
899
- }) => /* @__PURE__ */ P("div", { className: "rpf-input-field", children: [
900
- (t || r) && /* @__PURE__ */ P(
884
+ error: o = "",
885
+ hint: i = ""
886
+ }) => /* @__PURE__ */ q("div", { className: "rpf-input-field", children: [
887
+ (t || i) && /* @__PURE__ */ q(
901
888
  "label",
902
889
  {
903
890
  htmlFor: e,
904
- className: M("rpf-label", {
891
+ className: ee("rpf-label", {
905
892
  "rpf-label--disabled": n
906
893
  }),
907
894
  children: [
908
895
  t,
909
- /* @__PURE__ */ p("small", { className: "rpf-label__hint", children: r })
896
+ /* @__PURE__ */ E("small", { className: "rpf-label__hint", children: i })
910
897
  ]
911
898
  }
912
899
  ),
913
- s,
914
- a && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
915
- /* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
916
- a
900
+ r,
901
+ o && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
902
+ /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
903
+ o
917
904
  ] })
918
- ] }), yr = ({
905
+ ] }), Mi = ({
919
906
  label: e,
920
907
  inputFieldId: t,
921
- disabled: s = !1,
908
+ disabled: r = !1,
922
909
  hint: n = ""
923
- }) => /* @__PURE__ */ p("div", { className: "rpf-label", children: /* @__PURE__ */ P(
910
+ }) => /* @__PURE__ */ E("div", { className: "rpf-label", children: /* @__PURE__ */ q(
924
911
  "label",
925
912
  {
926
913
  htmlFor: t,
927
- className: M("rpf-label", {
928
- "rpf-label--disabled": s
914
+ className: ee("rpf-label", {
915
+ "rpf-label--disabled": r
929
916
  }),
930
917
  children: [
931
918
  e,
932
- n && /* @__PURE__ */ p("div", { className: "rpf-label__hint", children: n })
919
+ n && /* @__PURE__ */ E("div", { className: "rpf-label__hint", children: n })
933
920
  ]
934
921
  }
935
- ) }), mr = ({
936
- id: e,
937
- label: t,
938
- name: s,
939
- checked: n = !1,
940
- disabled: a = !1,
941
- fullWidth: r = !1,
942
- onChange: c = () => {
943
- },
944
- value: i = ""
945
- }) => /* @__PURE__ */ P(
922
+ ) }), Di = ({
923
+ label: e,
924
+ id: t,
925
+ name: r,
926
+ fullWidth: n = !1,
927
+ ...o
928
+ }) => /* @__PURE__ */ q(
946
929
  "label",
947
930
  {
948
- className: M("rpf-input-radio", {
949
- "rpf-input-radio--disabled": a,
950
- "rpf-input--full-width": r
931
+ className: ee("rpf-input-radio", {
932
+ "rpf-input-radio--disabled": o.disabled,
933
+ "rpf-input--full-width": n
951
934
  }),
952
935
  children: [
953
- /* @__PURE__ */ p(
954
- "input",
955
- {
956
- checked: !!n,
957
- disabled: a,
958
- id: e,
959
- name: s,
960
- onChange: c,
961
- type: "radio",
962
- value: i
963
- }
964
- ),
965
- t
936
+ /* @__PURE__ */ E("input", { type: "radio", id: t, name: r, ...o }),
937
+ e
966
938
  ]
967
939
  }
968
- ), hr = ({
940
+ ), Li = ({
969
941
  label: e,
970
942
  inputFieldId: t,
971
- disabled: s = !1,
943
+ disabled: r = !1,
972
944
  error: n = "",
973
- hint: a = "",
974
- placeholder: r = "",
975
- defaultValue: c = "",
976
- onClick: i = () => {
945
+ hint: o = "",
946
+ placeholder: i = "",
947
+ defaultValue: s = "",
948
+ onClick: a = () => {
977
949
  },
978
- onChange: d = () => {
950
+ onChange: l = () => {
979
951
  }
980
- }) => /* @__PURE__ */ p("search", { children: /* @__PURE__ */ P("form", { className: "rpf-input-field", onSubmit: i, children: [
981
- /* @__PURE__ */ P(
952
+ }) => /* @__PURE__ */ E("search", { children: /* @__PURE__ */ q("form", { className: "rpf-input-field", onSubmit: a, children: [
953
+ /* @__PURE__ */ q(
982
954
  "label",
983
955
  {
984
956
  htmlFor: t,
985
- className: M("rpf-label", {
986
- "rpf-label--disabled": s
957
+ className: ee("rpf-label", {
958
+ "rpf-label--disabled": r
987
959
  }),
988
960
  children: [
989
961
  e,
990
- a && /* @__PURE__ */ p("small", { className: "rpf-label__hint", children: a })
962
+ o && /* @__PURE__ */ E("small", { className: "rpf-label__hint", children: o })
991
963
  ]
992
964
  }
993
965
  ),
994
- /* @__PURE__ */ P("div", { className: "rpf-input-search-container", children: [
995
- /* @__PURE__ */ p(
966
+ /* @__PURE__ */ q("div", { className: "rpf-input-search-container", children: [
967
+ /* @__PURE__ */ E(
996
968
  "input",
997
969
  {
998
- className: M("rpf-input rpf-input-search", {
999
- "rpf-input--disabled": s,
970
+ className: ee("rpf-input rpf-input-search", {
971
+ "rpf-input--disabled": r,
1000
972
  "rpf-input--error": n
1001
973
  }),
1002
- disabled: s,
974
+ disabled: r,
1003
975
  id: t,
1004
976
  name: "search",
1005
977
  type: "search",
1006
978
  "aria-label": "Search",
1007
- defaultValue: c,
1008
- placeholder: r,
1009
- onChange: d
979
+ defaultValue: s,
980
+ placeholder: i,
981
+ onChange: l
1010
982
  }
1011
983
  ),
1012
- /* @__PURE__ */ p(
984
+ /* @__PURE__ */ E(
1013
985
  "button",
1014
986
  {
1015
987
  type: "submit",
1016
- className: M("rpf-button rpf-button-search", {
1017
- "rpf-button--disabled": s,
988
+ className: ee("rpf-button rpf-button-search", {
989
+ "rpf-button--disabled": r,
1018
990
  "rpf-button--error": n
1019
991
  }),
1020
- disabled: s,
1021
- onClick: i,
1022
- children: /* @__PURE__ */ p("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
992
+ disabled: r,
993
+ onClick: a,
994
+ children: /* @__PURE__ */ E("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1023
995
  }
1024
996
  )
1025
997
  ] }),
1026
- n && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
1027
- /* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
998
+ n && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
999
+ /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1028
1000
  n
1029
1001
  ] })
1030
- ] }) }), vr = ({
1002
+ ] }) }), Fi = ({
1031
1003
  id: e,
1032
1004
  label: t,
1033
- name: s,
1005
+ name: r,
1034
1006
  options: n,
1035
- disabled: a = !1,
1036
- error: r = "",
1037
- fullWidth: c = !1,
1038
- hint: i = "",
1039
- onChange: d = () => {
1007
+ disabled: o = !1,
1008
+ error: i = "",
1009
+ fullWidth: s = !1,
1010
+ hint: a = "",
1011
+ onChange: l = () => {
1040
1012
  },
1041
- placeholder: h = "",
1042
- value: y = ""
1043
- }) => /* @__PURE__ */ p(
1044
- ve,
1013
+ placeholder: c = "",
1014
+ value: f = "",
1015
+ ...d
1016
+ }) => /* @__PURE__ */ E(
1017
+ Dt,
1045
1018
  {
1046
1019
  id: e,
1047
- disabled: a,
1048
- error: r,
1049
- hint: i,
1020
+ disabled: o,
1021
+ error: i,
1022
+ hint: a,
1050
1023
  label: t,
1051
- children: /* @__PURE__ */ P(
1024
+ children: /* @__PURE__ */ q(
1052
1025
  "select",
1053
1026
  {
1054
- className: M("rpf-input rpf-input-select", {
1055
- "rpf-input--error": r,
1056
- "rpf-input--full-width": c
1027
+ className: ee("rpf-input rpf-input-select", {
1028
+ "rpf-input--error": i,
1029
+ "rpf-input--full-width": s
1057
1030
  }),
1058
- disabled: a,
1031
+ disabled: o,
1059
1032
  id: e,
1060
- name: s,
1061
- onChange: d,
1062
- value: y,
1033
+ name: r,
1034
+ onChange: l,
1035
+ value: f,
1036
+ ...d,
1063
1037
  children: [
1064
- !y && !!h && /* @__PURE__ */ p("option", { value: "", disabled: !0, children: h }),
1065
- n.map((b) => /* @__PURE__ */ p("option", { value: b.key, children: b.value }, b.key))
1038
+ !f && !!c && /* @__PURE__ */ E("option", { value: "", disabled: !0, children: c }),
1039
+ n.map((h) => /* @__PURE__ */ E("option", { value: h.key, children: h.value }, h.key))
1066
1040
  ]
1067
1041
  }
1068
1042
  )
1069
1043
  }
1070
- ), br = ({
1044
+ ), br = kt(
1045
+ ({
1046
+ label: e,
1047
+ id: t,
1048
+ name: r,
1049
+ error: n = "",
1050
+ fullWidth: o = !1,
1051
+ reverse: i = !1,
1052
+ hint: s = "",
1053
+ alignStart: a = !1,
1054
+ hideLabel: l = !1,
1055
+ icon: c = !1,
1056
+ className: f,
1057
+ disabled: d = !1,
1058
+ "aria-describedby": h,
1059
+ ...u
1060
+ }, v) => {
1061
+ const p = n ? `${t}-error` : void 0, O = [h, p].filter(Boolean).join(" ") || void 0;
1062
+ return /* @__PURE__ */ q("div", { className: "rpf-input-field", children: [
1063
+ /* @__PURE__ */ q(
1064
+ "label",
1065
+ {
1066
+ className: ee(
1067
+ "rpf-switch",
1068
+ {
1069
+ "rpf-switch--full-width": o,
1070
+ "rpf-switch--reverse": i,
1071
+ "rpf-switch--align-start": a,
1072
+ "rpf-switch--icon": c,
1073
+ "rpf-switch--disabled": d,
1074
+ "rpf-switch--error": n
1075
+ },
1076
+ f
1077
+ ),
1078
+ children: [
1079
+ /* @__PURE__ */ q("span", { className: "rpf-switch__track", children: [
1080
+ /* @__PURE__ */ E(
1081
+ "input",
1082
+ {
1083
+ ref: v,
1084
+ id: t,
1085
+ name: r,
1086
+ type: "checkbox",
1087
+ role: "switch",
1088
+ className: "rpf-switch__checkbox",
1089
+ disabled: d,
1090
+ "aria-invalid": n ? !0 : void 0,
1091
+ "aria-describedby": O,
1092
+ ...u
1093
+ }
1094
+ ),
1095
+ /* @__PURE__ */ E("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ E("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
1096
+ ] }),
1097
+ /* @__PURE__ */ q(
1098
+ "span",
1099
+ {
1100
+ className: ee("rpf-label", "rpf-switch__label", {
1101
+ "rpf-label--disabled": d,
1102
+ "rpf-visually-hidden": l
1103
+ }),
1104
+ children: [
1105
+ /* @__PURE__ */ E("span", { children: e }),
1106
+ s ? /* @__PURE__ */ E("span", { className: "rpf-label__hint", children: s }) : null
1107
+ ]
1108
+ }
1109
+ )
1110
+ ]
1111
+ }
1112
+ ),
1113
+ n ? /* @__PURE__ */ q("div", { id: p, className: "rpf-error-message", children: [
1114
+ /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
1115
+ n
1116
+ ] }) : null
1117
+ ] });
1118
+ }
1119
+ );
1120
+ br.displayName = "Switch";
1121
+ const $i = ({
1071
1122
  id: e,
1072
1123
  label: t,
1073
- name: s,
1124
+ name: r,
1074
1125
  value: n,
1075
- disabled: a = !1,
1076
- readOnly: r = !1,
1077
- error: c = "",
1078
- fullWidth: i = !1,
1079
- hint: d = "",
1080
- onChange: h = () => {
1126
+ disabled: o = !1,
1127
+ readOnly: i = !1,
1128
+ error: s = "",
1129
+ fullWidth: a = !1,
1130
+ hint: l = "",
1131
+ onChange: c = () => {
1081
1132
  }
1082
- }) => /* @__PURE__ */ p(
1083
- ve,
1133
+ }) => /* @__PURE__ */ E(
1134
+ Dt,
1084
1135
  {
1085
1136
  id: e,
1086
- disabled: a,
1087
- error: c,
1088
- hint: d,
1137
+ disabled: o,
1138
+ error: s,
1139
+ hint: l,
1089
1140
  label: t,
1090
- children: /* @__PURE__ */ p(
1141
+ children: /* @__PURE__ */ E(
1091
1142
  "textarea",
1092
1143
  {
1093
- className: M("rpf-input rpf-input-textarea", {
1094
- "rpf-input--error": c,
1095
- "rpf-input--full-width": i,
1096
- "rpf-input--disabled": a
1144
+ className: ee("rpf-input rpf-input-textarea", {
1145
+ "rpf-input--error": s,
1146
+ "rpf-input--full-width": a,
1147
+ "rpf-input--disabled": o
1097
1148
  }),
1098
- disabled: a,
1099
- readOnly: r,
1149
+ disabled: o,
1150
+ readOnly: i,
1100
1151
  id: e,
1101
- name: s,
1102
- onChange: h,
1152
+ name: r,
1153
+ onChange: c,
1103
1154
  value: n
1104
1155
  }
1105
1156
  )
1106
1157
  }
1107
- ), _r = ({
1158
+ ), ji = ({
1108
1159
  id: e,
1109
- label: t,
1110
- name: s,
1111
- value: n,
1112
- disabled: a = !1,
1113
- error: r = "",
1114
- fullWidth: c = !1,
1160
+ name: t,
1161
+ label: r,
1162
+ error: n = "",
1163
+ fullWidth: o = !1,
1115
1164
  hint: i = "",
1116
- onChange: d = () => {
1117
- }
1118
- }) => /* @__PURE__ */ p(
1119
- ve,
1165
+ type: s = "text",
1166
+ ...a
1167
+ }) => /* @__PURE__ */ E(
1168
+ Dt,
1120
1169
  {
1121
1170
  id: e,
1122
- disabled: a,
1123
- error: r,
1171
+ disabled: a.disabled,
1172
+ error: n,
1124
1173
  hint: i,
1125
- label: t,
1126
- children: /* @__PURE__ */ p(
1174
+ label: r,
1175
+ children: /* @__PURE__ */ E(
1127
1176
  "input",
1128
1177
  {
1129
- className: M("rpf-input rpf-input-text", {
1130
- "rpf-input--error": r,
1131
- "rpf-input--full-width": c
1178
+ className: ee("rpf-input rpf-input-text", {
1179
+ "rpf-input--error": n,
1180
+ "rpf-input--full-width": o
1132
1181
  }),
1133
- disabled: a,
1134
1182
  id: e,
1135
- name: s,
1136
- onChange: d,
1137
- type: "text",
1138
- value: n
1183
+ name: t,
1184
+ type: s,
1185
+ ...a
1139
1186
  }
1140
1187
  )
1141
1188
  }
1142
1189
  );
1143
- function Ke(e, t) {
1144
- const s = ge(null), n = ge(null);
1145
- return se(() => {
1146
- const a = s.current;
1147
- a && (e && !a.open ? a.showModal() : !e && a.open && a.close());
1148
- }, [e]), se(() => {
1149
- const a = s.current;
1150
- if (!a) return;
1151
- const r = () => t(!1), c = (i) => {
1152
- i.preventDefault(), t(!1);
1190
+ function yr(e, t) {
1191
+ const r = Rt(null), n = Rt(null);
1192
+ return We(() => {
1193
+ const o = r.current;
1194
+ o && (e && !o.open ? o.showModal() : !e && o.open && o.close());
1195
+ }, [e]), We(() => {
1196
+ const o = r.current;
1197
+ if (!o) return;
1198
+ const i = () => t(!1), s = (a) => {
1199
+ a.preventDefault(), t(!1);
1153
1200
  };
1154
- return a.addEventListener("close", r), a.addEventListener("cancel", c), () => {
1155
- a.removeEventListener("close", r), a.removeEventListener("cancel", c);
1201
+ return o.addEventListener("close", i), o.addEventListener("cancel", s), () => {
1202
+ o.removeEventListener("close", i), o.removeEventListener("cancel", s);
1156
1203
  };
1157
- }, [t]), se(() => {
1158
- const a = s.current, r = n.current;
1159
- if (!a || !r) return;
1160
- const c = (i) => {
1161
- e && !r.contains(i.target) && t(!1);
1204
+ }, [t]), We(() => {
1205
+ const o = r.current, i = n.current;
1206
+ if (!o || !i) return;
1207
+ const s = (a) => {
1208
+ e && !i.contains(a.target) && t(!1);
1162
1209
  };
1163
- return a.addEventListener("mousedown", c), () => a.removeEventListener("mousedown", c);
1164
- }, [e, t]), { dialogRef: s, contentRef: n };
1210
+ return o.addEventListener("mousedown", s), () => o.removeEventListener("mousedown", s);
1211
+ }, [e, t]), { dialogRef: r, contentRef: n };
1165
1212
  }
1166
- const gr = ({
1213
+ const Wi = ({
1167
1214
  isOpen: e,
1168
1215
  setIsOpen: t,
1169
- heading: s,
1216
+ heading: r,
1170
1217
  children: n,
1171
- primaryButtonLink: a,
1172
- primaryButtonText: r,
1173
- onClickPrimaryButton: c,
1174
- secondaryButtonText: i,
1175
- secondaryButtonLink: d,
1176
- onClickSecondaryButton: h,
1177
- tertiaryButtonText: y,
1178
- tertiaryButtonLink: b,
1179
- onClickTertiaryButton: N,
1180
- showCloseButton: A = !0
1218
+ primaryButtonLink: o,
1219
+ primaryButtonText: i,
1220
+ onClickPrimaryButton: s,
1221
+ secondaryButtonText: a,
1222
+ secondaryButtonLink: l,
1223
+ onClickSecondaryButton: c,
1224
+ tertiaryButtonText: f,
1225
+ tertiaryButtonLink: d,
1226
+ onClickTertiaryButton: h,
1227
+ showCloseButton: u = !0
1181
1228
  }) => {
1182
- const { dialogRef: I, contentRef: O } = Ke(e, t);
1183
- return /* @__PURE__ */ p(
1229
+ const { dialogRef: v, contentRef: p } = yr(e, t);
1230
+ return /* @__PURE__ */ E(
1184
1231
  "dialog",
1185
1232
  {
1186
- ref: I,
1233
+ ref: v,
1187
1234
  className: "rpf-modal",
1188
1235
  "aria-labelledby": "modal-heading",
1189
1236
  "aria-describedby": "modal-description",
1190
- children: /* @__PURE__ */ P("div", { ref: O, className: "rpf-modal__wrapper", children: [
1191
- /* @__PURE__ */ P("div", { className: "rpf-modal__header", children: [
1192
- /* @__PURE__ */ p("h2", { className: "rpf-modal__title", id: "modal-heading", children: s }),
1193
- A && /* @__PURE__ */ p(
1194
- B,
1237
+ children: /* @__PURE__ */ q("div", { ref: p, className: "rpf-modal__wrapper", children: [
1238
+ /* @__PURE__ */ q("div", { className: "rpf-modal__header", children: [
1239
+ /* @__PURE__ */ E("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
1240
+ u && /* @__PURE__ */ E(
1241
+ Re,
1195
1242
  {
1196
1243
  icon: "close",
1197
1244
  iconOnly: !0,
@@ -1201,32 +1248,32 @@ const gr = ({
1201
1248
  }
1202
1249
  )
1203
1250
  ] }),
1204
- /* @__PURE__ */ p("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
1205
- /* @__PURE__ */ P("div", { className: "rpf-modal__buttons", children: [
1206
- /* @__PURE__ */ p(
1207
- B,
1251
+ /* @__PURE__ */ E("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
1252
+ /* @__PURE__ */ q("div", { className: "rpf-modal__buttons", children: [
1253
+ /* @__PURE__ */ E(
1254
+ Re,
1208
1255
  {
1209
- text: r,
1210
- href: a,
1211
- onClick: c,
1256
+ text: i,
1257
+ href: o,
1258
+ onClick: s,
1212
1259
  type: "primary"
1213
1260
  }
1214
1261
  ),
1215
- i && /* @__PURE__ */ p(
1216
- B,
1262
+ a && /* @__PURE__ */ E(
1263
+ Re,
1217
1264
  {
1218
- text: i,
1219
- href: d,
1220
- onClick: h,
1265
+ text: a,
1266
+ href: l,
1267
+ onClick: c,
1221
1268
  type: "secondary"
1222
1269
  }
1223
1270
  ),
1224
- y && /* @__PURE__ */ p(
1225
- B,
1271
+ f && /* @__PURE__ */ E(
1272
+ Re,
1226
1273
  {
1227
- text: y,
1228
- href: b,
1229
- onClick: N,
1274
+ text: f,
1275
+ href: d,
1276
+ onClick: h,
1230
1277
  type: "tertiary"
1231
1278
  }
1232
1279
  )
@@ -1234,37 +1281,2409 @@ const gr = ({
1234
1281
  ] })
1235
1282
  }
1236
1283
  );
1237
- }, Er = ({
1284
+ }, gr = ({ className: e, children: t }) => {
1285
+ const r = ee("rpf-menu", e);
1286
+ return /* @__PURE__ */ E("ul", { className: r, children: t });
1287
+ };
1288
+ function Qe() {
1289
+ return typeof window < "u";
1290
+ }
1291
+ function ye(e) {
1292
+ return In(e) ? (e.nodeName || "").toLowerCase() : "#document";
1293
+ }
1294
+ function ie(e) {
1295
+ var t;
1296
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1297
+ }
1298
+ function ue(e) {
1299
+ var t;
1300
+ return (t = (In(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1301
+ }
1302
+ function In(e) {
1303
+ return Qe() ? e instanceof Node || e instanceof ie(e).Node : !1;
1304
+ }
1305
+ function Q(e) {
1306
+ return Qe() ? e instanceof Element || e instanceof ie(e).Element : !1;
1307
+ }
1308
+ function ne(e) {
1309
+ return Qe() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
1310
+ }
1311
+ function St(e) {
1312
+ return !Qe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
1313
+ }
1314
+ function ke(e) {
1315
+ const {
1316
+ overflow: t,
1317
+ overflowX: r,
1318
+ overflowY: n,
1319
+ display: o
1320
+ } = se(e);
1321
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && o !== "inline" && o !== "contents";
1322
+ }
1323
+ function wr(e) {
1324
+ return /^(table|td|th)$/.test(ye(e));
1325
+ }
1326
+ function et(e) {
1327
+ try {
1328
+ if (e.matches(":popover-open"))
1329
+ return !0;
1330
+ } catch {
1331
+ }
1332
+ try {
1333
+ return e.matches(":modal");
1334
+ } catch {
1335
+ return !1;
1336
+ }
1337
+ }
1338
+ const xr = /transform|translate|scale|rotate|perspective|filter/, Er = /paint|layout|strict|content/, ge = (e) => !!e && e !== "none";
1339
+ let mt;
1340
+ function Lt(e) {
1341
+ const t = Q(e) ? se(e) : e;
1342
+ return ge(t.transform) || ge(t.translate) || ge(t.scale) || ge(t.rotate) || ge(t.perspective) || !tt() && (ge(t.backdropFilter) || ge(t.filter)) || xr.test(t.willChange || "") || Er.test(t.contain || "");
1343
+ }
1344
+ function Rr(e) {
1345
+ let t = pe(e);
1346
+ for (; ne(t) && !be(t); ) {
1347
+ if (Lt(t))
1348
+ return t;
1349
+ if (et(t))
1350
+ return null;
1351
+ t = pe(t);
1352
+ }
1353
+ return null;
1354
+ }
1355
+ function tt() {
1356
+ return mt == null && (mt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), mt;
1357
+ }
1358
+ function be(e) {
1359
+ return /^(html|body|#document)$/.test(ye(e));
1360
+ }
1361
+ function se(e) {
1362
+ return ie(e).getComputedStyle(e);
1363
+ }
1364
+ function nt(e) {
1365
+ return Q(e) ? {
1366
+ scrollLeft: e.scrollLeft,
1367
+ scrollTop: e.scrollTop
1368
+ } : {
1369
+ scrollLeft: e.scrollX,
1370
+ scrollTop: e.scrollY
1371
+ };
1372
+ }
1373
+ function pe(e) {
1374
+ if (ye(e) === "html")
1375
+ return e;
1376
+ const t = (
1377
+ // Step into the shadow DOM of the parent of a slotted node.
1378
+ e.assignedSlot || // DOM Element detected.
1379
+ e.parentNode || // ShadowRoot detected.
1380
+ St(e) && e.host || // Fallback.
1381
+ ue(e)
1382
+ );
1383
+ return St(t) ? t.host : t;
1384
+ }
1385
+ function kn(e) {
1386
+ const t = pe(e);
1387
+ return be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ne(t) && ke(t) ? t : kn(t);
1388
+ }
1389
+ function ve(e, t, r) {
1390
+ var n;
1391
+ t === void 0 && (t = []), r === void 0 && (r = !0);
1392
+ const o = kn(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ie(o);
1393
+ if (i) {
1394
+ const a = Ct(s);
1395
+ return t.concat(s, s.visualViewport || [], ke(o) ? o : [], a && r ? ve(a) : []);
1396
+ } else
1397
+ return t.concat(o, ve(o, [], r));
1398
+ }
1399
+ function Ct(e) {
1400
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1401
+ }
1402
+ function we(e) {
1403
+ let t = e.activeElement;
1404
+ for (; ((r = t) == null || (r = r.shadowRoot) == null ? void 0 : r.activeElement) != null; ) {
1405
+ var r;
1406
+ t = t.shadowRoot.activeElement;
1407
+ }
1408
+ return t;
1409
+ }
1410
+ function oe(e, t) {
1411
+ if (!e || !t)
1412
+ return !1;
1413
+ const r = t.getRootNode == null ? void 0 : t.getRootNode();
1414
+ if (e.contains(t))
1415
+ return !0;
1416
+ if (r && St(r)) {
1417
+ let n = t;
1418
+ for (; n; ) {
1419
+ if (e === n)
1420
+ return !0;
1421
+ n = n.parentNode || n.host;
1422
+ }
1423
+ }
1424
+ return !1;
1425
+ }
1426
+ function Tr() {
1427
+ const e = navigator.userAgentData;
1428
+ return e != null && e.platform ? e.platform : navigator.platform;
1429
+ }
1430
+ function Mn() {
1431
+ const e = navigator.userAgentData;
1432
+ return e && Array.isArray(e.brands) ? e.brands.map((t) => {
1433
+ let {
1434
+ brand: r,
1435
+ version: n
1436
+ } = t;
1437
+ return r + "/" + n;
1438
+ }).join(" ") : navigator.userAgent;
1439
+ }
1440
+ function Sr(e) {
1441
+ return e.mozInputSource === 0 && e.isTrusted ? !0 : _t() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
1442
+ }
1443
+ function Cr(e) {
1444
+ return Or() ? !1 : !_t() && e.width === 0 && e.height === 0 || _t() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
1445
+ e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
1446
+ }
1447
+ function _r() {
1448
+ return /apple/i.test(navigator.vendor);
1449
+ }
1450
+ function _t() {
1451
+ const e = /android/i;
1452
+ return e.test(Tr()) || e.test(Mn());
1453
+ }
1454
+ function Or() {
1455
+ return Mn().includes("jsdom/");
1456
+ }
1457
+ function en(e, t) {
1458
+ return ["mouse", "pen"].includes(e);
1459
+ }
1460
+ function Ar(e) {
1461
+ return "nativeEvent" in e;
1462
+ }
1463
+ function Pr(e) {
1464
+ return e.matches("html,body");
1465
+ }
1466
+ function ce(e) {
1467
+ return (e == null ? void 0 : e.ownerDocument) || document;
1468
+ }
1469
+ function ht(e, t) {
1470
+ if (t == null)
1471
+ return !1;
1472
+ if ("composedPath" in e)
1473
+ return e.composedPath().includes(t);
1474
+ const r = e;
1475
+ return r.target != null && t.contains(r.target);
1476
+ }
1477
+ function Ee(e) {
1478
+ return "composedPath" in e ? e.composedPath()[0] : e.target;
1479
+ }
1480
+ const Nr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
1481
+ function Dn(e) {
1482
+ return ne(e) && e.matches(Nr);
1483
+ }
1484
+ function vt(e) {
1485
+ e.preventDefault(), e.stopPropagation();
1486
+ }
1487
+ function Ir(e) {
1488
+ return e ? e.getAttribute("role") === "combobox" && Dn(e) : !1;
1489
+ }
1490
+ const qe = Math.min, Te = Math.max, Ve = Math.round, Fe = Math.floor, le = (e) => ({
1491
+ x: e,
1492
+ y: e
1493
+ }), kr = {
1494
+ left: "right",
1495
+ right: "left",
1496
+ bottom: "top",
1497
+ top: "bottom"
1498
+ };
1499
+ function tn(e, t, r) {
1500
+ return Te(e, qe(t, r));
1501
+ }
1502
+ function rt(e, t) {
1503
+ return typeof e == "function" ? e(t) : e;
1504
+ }
1505
+ function Se(e) {
1506
+ return e.split("-")[0];
1507
+ }
1508
+ function ot(e) {
1509
+ return e.split("-")[1];
1510
+ }
1511
+ function Ln(e) {
1512
+ return e === "x" ? "y" : "x";
1513
+ }
1514
+ function Fn(e) {
1515
+ return e === "y" ? "height" : "width";
1516
+ }
1517
+ function he(e) {
1518
+ const t = e[0];
1519
+ return t === "t" || t === "b" ? "y" : "x";
1520
+ }
1521
+ function $n(e) {
1522
+ return Ln(he(e));
1523
+ }
1524
+ function Mr(e, t, r) {
1525
+ r === void 0 && (r = !1);
1526
+ const n = ot(e), o = $n(e), i = Fn(o);
1527
+ let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1528
+ return t.reference[i] > t.floating[i] && (s = Ye(s)), [s, Ye(s)];
1529
+ }
1530
+ function Dr(e) {
1531
+ const t = Ye(e);
1532
+ return [Ot(e), t, Ot(t)];
1533
+ }
1534
+ function Ot(e) {
1535
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
1536
+ }
1537
+ const nn = ["left", "right"], rn = ["right", "left"], Lr = ["top", "bottom"], Fr = ["bottom", "top"];
1538
+ function $r(e, t, r) {
1539
+ switch (e) {
1540
+ case "top":
1541
+ case "bottom":
1542
+ return r ? t ? rn : nn : t ? nn : rn;
1543
+ case "left":
1544
+ case "right":
1545
+ return t ? Lr : Fr;
1546
+ default:
1547
+ return [];
1548
+ }
1549
+ }
1550
+ function jr(e, t, r, n) {
1551
+ const o = ot(e);
1552
+ let i = $r(Se(e), r === "start", n);
1553
+ return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ot)))), i;
1554
+ }
1555
+ function Ye(e) {
1556
+ const t = Se(e);
1557
+ return kr[t] + e.slice(t.length);
1558
+ }
1559
+ function Wr(e) {
1560
+ return {
1561
+ top: 0,
1562
+ right: 0,
1563
+ bottom: 0,
1564
+ left: 0,
1565
+ ...e
1566
+ };
1567
+ }
1568
+ function Br(e) {
1569
+ return typeof e != "number" ? Wr(e) : {
1570
+ top: e,
1571
+ right: e,
1572
+ bottom: e,
1573
+ left: e
1574
+ };
1575
+ }
1576
+ function Ue(e) {
1577
+ const {
1578
+ x: t,
1579
+ y: r,
1580
+ width: n,
1581
+ height: o
1582
+ } = e;
1583
+ return {
1584
+ width: n,
1585
+ height: o,
1586
+ top: r,
1587
+ left: t,
1588
+ right: t + n,
1589
+ bottom: r + o,
1590
+ x: t,
1591
+ y: r
1592
+ };
1593
+ }
1594
+ /*!
1595
+ * tabbable 6.4.0
1596
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1597
+ */
1598
+ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], He = /* @__PURE__ */ qr.join(","), jn = typeof Element > "u", Pe = jn ? function() {
1599
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !jn && Element.prototype.getRootNode ? function(e) {
1600
+ var t;
1601
+ return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
1602
+ } : function(e) {
1603
+ return e == null ? void 0 : e.ownerDocument;
1604
+ }, ze = function(t, r) {
1605
+ var n;
1606
+ r === void 0 && (r = !0);
1607
+ var o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), i = o === "" || o === "true", s = i || r && t && // closest does not exist on shadow roots, so we fall back to a manual
1608
+ // lookup upward, in case it is not defined.
1609
+ (typeof t.closest == "function" ? t.closest("[inert]") : ze(t.parentNode));
1610
+ return s;
1611
+ }, Vr = function(t) {
1612
+ var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
1613
+ return n === "" || n === "true";
1614
+ }, Yr = function(t, r, n) {
1615
+ if (ze(t))
1616
+ return [];
1617
+ var o = Array.prototype.slice.apply(t.querySelectorAll(He));
1618
+ return r && Pe.call(t, He) && o.unshift(t), o = o.filter(n), o;
1619
+ }, At = function(t, r, n) {
1620
+ for (var o = [], i = Array.from(t); i.length; ) {
1621
+ var s = i.shift();
1622
+ if (!ze(s, !1))
1623
+ if (s.tagName === "SLOT") {
1624
+ var a = s.assignedElements(), l = a.length ? a : s.children, c = At(l, !0, n);
1625
+ n.flatten ? o.push.apply(o, c) : o.push({
1626
+ scopeParent: s,
1627
+ candidates: c
1628
+ });
1629
+ } else {
1630
+ var f = Pe.call(s, He);
1631
+ f && n.filter(s) && (r || !t.includes(s)) && o.push(s);
1632
+ var d = s.shadowRoot || // check for an undisclosed shadow
1633
+ typeof n.getShadowRoot == "function" && n.getShadowRoot(s), h = !ze(d, !1) && (!n.shadowRootFilter || n.shadowRootFilter(s));
1634
+ if (d && h) {
1635
+ var u = At(d === !0 ? s.children : d.children, !0, n);
1636
+ n.flatten ? o.push.apply(o, u) : o.push({
1637
+ scopeParent: s,
1638
+ candidates: u
1639
+ });
1640
+ } else
1641
+ i.unshift.apply(i, s.children);
1642
+ }
1643
+ }
1644
+ return o;
1645
+ }, Wn = function(t) {
1646
+ return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
1647
+ }, Bn = function(t) {
1648
+ if (!t)
1649
+ throw new Error("No node provided");
1650
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Vr(t)) && !Wn(t) ? 0 : t.tabIndex;
1651
+ }, Ur = function(t, r) {
1652
+ var n = Bn(t);
1653
+ return n < 0 && r && !Wn(t) ? 0 : n;
1654
+ }, Hr = function(t, r) {
1655
+ return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
1656
+ }, qn = function(t) {
1657
+ return t.tagName === "INPUT";
1658
+ }, Kr = function(t) {
1659
+ return qn(t) && t.type === "hidden";
1660
+ }, zr = function(t) {
1661
+ var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
1662
+ return n.tagName === "SUMMARY";
1663
+ });
1664
+ return r;
1665
+ }, Xr = function(t, r) {
1666
+ for (var n = 0; n < t.length; n++)
1667
+ if (t[n].checked && t[n].form === r)
1668
+ return t[n];
1669
+ }, Gr = function(t) {
1670
+ if (!t.name)
1671
+ return !0;
1672
+ var r = t.form || Ke(t), n = function(a) {
1673
+ return r.querySelectorAll('input[type="radio"][name="' + a + '"]');
1674
+ }, o;
1675
+ if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
1676
+ o = n(window.CSS.escape(t.name));
1677
+ else
1678
+ try {
1679
+ o = n(t.name);
1680
+ } catch (s) {
1681
+ return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
1682
+ }
1683
+ var i = Xr(o, t.form);
1684
+ return !i || i === t;
1685
+ }, Zr = function(t) {
1686
+ return qn(t) && t.type === "radio";
1687
+ }, Jr = function(t) {
1688
+ return Zr(t) && !Gr(t);
1689
+ }, Qr = function(t) {
1690
+ var r, n = t && Ke(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, i = !1;
1691
+ if (n && n !== t) {
1692
+ var s, a, l;
1693
+ for (i = !!((s = o) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !i && o; ) {
1694
+ var c, f, d;
1695
+ n = Ke(o), o = (c = n) === null || c === void 0 ? void 0 : c.host, i = !!((f = o) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(o));
1696
+ }
1697
+ }
1698
+ return i;
1699
+ }, on = function(t) {
1700
+ var r = t.getBoundingClientRect(), n = r.width, o = r.height;
1701
+ return n === 0 && o === 0;
1702
+ }, eo = function(t, r) {
1703
+ var n = r.displayCheck, o = r.getShadowRoot;
1704
+ if (n === "full-native" && "checkVisibility" in t) {
1705
+ var i = t.checkVisibility({
1706
+ // Checking opacity might be desirable for some use cases, but natively,
1707
+ // opacity zero elements _are_ focusable and tabbable.
1708
+ checkOpacity: !1,
1709
+ opacityProperty: !1,
1710
+ contentVisibilityAuto: !0,
1711
+ visibilityProperty: !0,
1712
+ // This is an alias for `visibilityProperty`. Contemporary browsers
1713
+ // support both. However, this alias has wider browser support (Chrome
1714
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
1715
+ // we include it anyway.
1716
+ checkVisibilityCSS: !0
1717
+ });
1718
+ return !i;
1719
+ }
1720
+ if (getComputedStyle(t).visibility === "hidden")
1721
+ return !0;
1722
+ var s = Pe.call(t, "details>summary:first-of-type"), a = s ? t.parentElement : t;
1723
+ if (Pe.call(a, "details:not([open]) *"))
1724
+ return !0;
1725
+ if (!n || n === "full" || // full-native can run this branch when it falls through in case
1726
+ // Element#checkVisibility is unsupported
1727
+ n === "full-native" || n === "legacy-full") {
1728
+ if (typeof o == "function") {
1729
+ for (var l = t; t; ) {
1730
+ var c = t.parentElement, f = Ke(t);
1731
+ if (c && !c.shadowRoot && o(c) === !0)
1732
+ return on(t);
1733
+ t.assignedSlot ? t = t.assignedSlot : !c && f !== t.ownerDocument ? t = f.host : t = c;
1734
+ }
1735
+ t = l;
1736
+ }
1737
+ if (Qr(t))
1738
+ return !t.getClientRects().length;
1739
+ if (n !== "legacy-full")
1740
+ return !0;
1741
+ } else if (n === "non-zero-area")
1742
+ return on(t);
1743
+ return !1;
1744
+ }, to = function(t) {
1745
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
1746
+ for (var r = t.parentElement; r; ) {
1747
+ if (r.tagName === "FIELDSET" && r.disabled) {
1748
+ for (var n = 0; n < r.children.length; n++) {
1749
+ var o = r.children.item(n);
1750
+ if (o.tagName === "LEGEND")
1751
+ return Pe.call(r, "fieldset[disabled] *") ? !0 : !o.contains(t);
1752
+ }
1753
+ return !0;
1754
+ }
1755
+ r = r.parentElement;
1756
+ }
1757
+ return !1;
1758
+ }, no = function(t, r) {
1759
+ return !(r.disabled || Kr(r) || eo(r, t) || // For a details element with a summary, the summary element gets the focus
1760
+ zr(r) || to(r));
1761
+ }, Pt = function(t, r) {
1762
+ return !(Jr(r) || Bn(r) < 0 || !no(t, r));
1763
+ }, ro = function(t) {
1764
+ var r = parseInt(t.getAttribute("tabindex"), 10);
1765
+ return !!(isNaN(r) || r >= 0);
1766
+ }, Vn = function(t) {
1767
+ var r = [], n = [];
1768
+ return t.forEach(function(o, i) {
1769
+ var s = !!o.scopeParent, a = s ? o.scopeParent : o, l = Ur(a, s), c = s ? Vn(o.candidates) : a;
1770
+ l === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
1771
+ documentOrder: i,
1772
+ tabIndex: l,
1773
+ item: o,
1774
+ isScope: s,
1775
+ content: c
1776
+ });
1777
+ }), n.sort(Hr).reduce(function(o, i) {
1778
+ return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
1779
+ }, []).concat(r);
1780
+ }, Ft = function(t, r) {
1781
+ r = r || {};
1782
+ var n;
1783
+ return r.getShadowRoot ? n = At([t], r.includeContainer, {
1784
+ filter: Pt.bind(null, r),
1785
+ flatten: !1,
1786
+ getShadowRoot: r.getShadowRoot,
1787
+ shadowRootFilter: ro
1788
+ }) : n = Yr(t, r.includeContainer, Pt.bind(null, r)), Vn(n);
1789
+ }, oo = function(t, r) {
1790
+ if (r = r || {}, !t)
1791
+ throw new Error("No node provided");
1792
+ return Pe.call(t, He) === !1 ? !1 : Pt(r, t);
1793
+ };
1794
+ function sn(e, t, r) {
1795
+ let {
1796
+ reference: n,
1797
+ floating: o
1798
+ } = e;
1799
+ const i = he(t), s = $n(t), a = Fn(s), l = Se(t), c = i === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, h = n[a] / 2 - o[a] / 2;
1800
+ let u;
1801
+ switch (l) {
1802
+ case "top":
1803
+ u = {
1804
+ x: f,
1805
+ y: n.y - o.height
1806
+ };
1807
+ break;
1808
+ case "bottom":
1809
+ u = {
1810
+ x: f,
1811
+ y: n.y + n.height
1812
+ };
1813
+ break;
1814
+ case "right":
1815
+ u = {
1816
+ x: n.x + n.width,
1817
+ y: d
1818
+ };
1819
+ break;
1820
+ case "left":
1821
+ u = {
1822
+ x: n.x - o.width,
1823
+ y: d
1824
+ };
1825
+ break;
1826
+ default:
1827
+ u = {
1828
+ x: n.x,
1829
+ y: n.y
1830
+ };
1831
+ }
1832
+ switch (ot(t)) {
1833
+ case "start":
1834
+ u[s] -= h * (r && c ? -1 : 1);
1835
+ break;
1836
+ case "end":
1837
+ u[s] += h * (r && c ? -1 : 1);
1838
+ break;
1839
+ }
1840
+ return u;
1841
+ }
1842
+ async function io(e, t) {
1843
+ var r;
1844
+ t === void 0 && (t = {});
1845
+ const {
1846
+ x: n,
1847
+ y: o,
1848
+ platform: i,
1849
+ rects: s,
1850
+ elements: a,
1851
+ strategy: l
1852
+ } = e, {
1853
+ boundary: c = "clippingAncestors",
1854
+ rootBoundary: f = "viewport",
1855
+ elementContext: d = "floating",
1856
+ altBoundary: h = !1,
1857
+ padding: u = 0
1858
+ } = rt(t, e), v = Br(u), O = a[h ? d === "floating" ? "reference" : "floating" : d], A = Ue(await i.getClippingRect({
1859
+ element: (r = await (i.isElement == null ? void 0 : i.isElement(O))) == null || r ? O : O.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
1860
+ boundary: c,
1861
+ rootBoundary: f,
1862
+ strategy: l
1863
+ })), I = d === "floating" ? {
1864
+ x: n,
1865
+ y: o,
1866
+ width: s.floating.width,
1867
+ height: s.floating.height
1868
+ } : s.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), T = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
1869
+ x: 1,
1870
+ y: 1
1871
+ } : {
1872
+ x: 1,
1873
+ y: 1
1874
+ }, b = Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1875
+ elements: a,
1876
+ rect: I,
1877
+ offsetParent: y,
1878
+ strategy: l
1879
+ }) : I);
1880
+ return {
1881
+ top: (A.top - b.top + v.top) / T.y,
1882
+ bottom: (b.bottom - A.bottom + v.bottom) / T.y,
1883
+ left: (A.left - b.left + v.left) / T.x,
1884
+ right: (b.right - A.right + v.right) / T.x
1885
+ };
1886
+ }
1887
+ const so = 50, ao = async (e, t, r) => {
1888
+ const {
1889
+ placement: n = "bottom",
1890
+ strategy: o = "absolute",
1891
+ middleware: i = [],
1892
+ platform: s
1893
+ } = r, a = s.detectOverflow ? s : {
1894
+ ...s,
1895
+ detectOverflow: io
1896
+ }, l = await (s.isRTL == null ? void 0 : s.isRTL(t));
1897
+ let c = await s.getElementRects({
1898
+ reference: e,
1899
+ floating: t,
1900
+ strategy: o
1901
+ }), {
1902
+ x: f,
1903
+ y: d
1904
+ } = sn(c, n, l), h = n, u = 0;
1905
+ const v = {};
1906
+ for (let p = 0; p < i.length; p++) {
1907
+ const O = i[p];
1908
+ if (!O)
1909
+ continue;
1910
+ const {
1911
+ name: A,
1912
+ fn: I
1913
+ } = O, {
1914
+ x: y,
1915
+ y: T,
1916
+ data: b,
1917
+ reset: k
1918
+ } = await I({
1919
+ x: f,
1920
+ y: d,
1921
+ initialPlacement: n,
1922
+ placement: h,
1923
+ strategy: o,
1924
+ middlewareData: v,
1925
+ rects: c,
1926
+ platform: a,
1927
+ elements: {
1928
+ reference: e,
1929
+ floating: t
1930
+ }
1931
+ });
1932
+ f = y ?? f, d = T ?? d, v[A] = {
1933
+ ...v[A],
1934
+ ...b
1935
+ }, k && u < so && (u++, typeof k == "object" && (k.placement && (h = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
1936
+ reference: e,
1937
+ floating: t,
1938
+ strategy: o
1939
+ }) : k.rects), {
1940
+ x: f,
1941
+ y: d
1942
+ } = sn(c, h, l)), p = -1);
1943
+ }
1944
+ return {
1945
+ x: f,
1946
+ y: d,
1947
+ placement: h,
1948
+ strategy: o,
1949
+ middlewareData: v
1950
+ };
1951
+ }, co = function(e) {
1952
+ return e === void 0 && (e = {}), {
1953
+ name: "flip",
1954
+ options: e,
1955
+ async fn(t) {
1956
+ var r, n;
1957
+ const {
1958
+ placement: o,
1959
+ middlewareData: i,
1960
+ rects: s,
1961
+ initialPlacement: a,
1962
+ platform: l,
1963
+ elements: c
1964
+ } = t, {
1965
+ mainAxis: f = !0,
1966
+ crossAxis: d = !0,
1967
+ fallbackPlacements: h,
1968
+ fallbackStrategy: u = "bestFit",
1969
+ fallbackAxisSideDirection: v = "none",
1970
+ flipAlignment: p = !0,
1971
+ ...O
1972
+ } = rt(e, t);
1973
+ if ((r = i.arrow) != null && r.alignmentOffset)
1974
+ return {};
1975
+ const A = Se(o), I = he(a), y = Se(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = h || (y || !p ? [Ye(a)] : Dr(a)), k = v !== "none";
1976
+ !h && k && b.push(...jr(a, p, v, T));
1977
+ const H = [a, ...b], K = await l.detectOverflow(t, O), J = [];
1978
+ let Z = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1979
+ if (f && J.push(K[A]), d) {
1980
+ const z = Mr(o, s, T);
1981
+ J.push(K[z[0]], K[z[1]]);
1982
+ }
1983
+ if (Z = [...Z, {
1984
+ placement: o,
1985
+ overflows: J
1986
+ }], !J.every((z) => z <= 0)) {
1987
+ var G, B;
1988
+ const z = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, L = H[z];
1989
+ if (L && (!(d === "alignment" ? I !== he(L) : !1) || // We leave the current main axis only if every placement on that axis
1990
+ // overflows the main axis.
1991
+ Z.every((M) => he(M.placement) === I ? M.overflows[0] > 0 : !0)))
1992
+ return {
1993
+ data: {
1994
+ index: z,
1995
+ overflows: Z
1996
+ },
1997
+ reset: {
1998
+ placement: L
1999
+ }
2000
+ };
2001
+ let j = (B = Z.filter((V) => V.overflows[0] <= 0).sort((V, M) => V.overflows[1] - M.overflows[1])[0]) == null ? void 0 : B.placement;
2002
+ if (!j)
2003
+ switch (u) {
2004
+ case "bestFit": {
2005
+ var te;
2006
+ const V = (te = Z.filter((M) => {
2007
+ if (k) {
2008
+ const R = he(M.placement);
2009
+ return R === I || // Create a bias to the `y` side axis due to horizontal
2010
+ // reading directions favoring greater width.
2011
+ R === "y";
2012
+ }
2013
+ return !0;
2014
+ }).map((M) => [M.placement, M.overflows.filter((R) => R > 0).reduce((R, m) => R + m, 0)]).sort((M, R) => M[1] - R[1])[0]) == null ? void 0 : te[0];
2015
+ V && (j = V);
2016
+ break;
2017
+ }
2018
+ case "initialPlacement":
2019
+ j = a;
2020
+ break;
2021
+ }
2022
+ if (o !== j)
2023
+ return {
2024
+ reset: {
2025
+ placement: j
2026
+ }
2027
+ };
2028
+ }
2029
+ return {};
2030
+ }
2031
+ };
2032
+ }, lo = /* @__PURE__ */ new Set(["left", "top"]);
2033
+ async function uo(e, t) {
2034
+ const {
2035
+ placement: r,
2036
+ platform: n,
2037
+ elements: o
2038
+ } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Se(r), a = ot(r), l = he(r) === "y", c = lo.has(s) ? -1 : 1, f = i && l ? -1 : 1, d = rt(t, e);
2039
+ let {
2040
+ mainAxis: h,
2041
+ crossAxis: u,
2042
+ alignmentAxis: v
2043
+ } = typeof d == "number" ? {
2044
+ mainAxis: d,
2045
+ crossAxis: 0,
2046
+ alignmentAxis: null
2047
+ } : {
2048
+ mainAxis: d.mainAxis || 0,
2049
+ crossAxis: d.crossAxis || 0,
2050
+ alignmentAxis: d.alignmentAxis
2051
+ };
2052
+ return a && typeof v == "number" && (u = a === "end" ? v * -1 : v), l ? {
2053
+ x: u * f,
2054
+ y: h * c
2055
+ } : {
2056
+ x: h * c,
2057
+ y: u * f
2058
+ };
2059
+ }
2060
+ const fo = function(e) {
2061
+ return e === void 0 && (e = 0), {
2062
+ name: "offset",
2063
+ options: e,
2064
+ async fn(t) {
2065
+ var r, n;
2066
+ const {
2067
+ x: o,
2068
+ y: i,
2069
+ placement: s,
2070
+ middlewareData: a
2071
+ } = t, l = await uo(t, e);
2072
+ return s === ((r = a.offset) == null ? void 0 : r.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
2073
+ x: o + l.x,
2074
+ y: i + l.y,
2075
+ data: {
2076
+ ...l,
2077
+ placement: s
2078
+ }
2079
+ };
2080
+ }
2081
+ };
2082
+ }, po = function(e) {
2083
+ return e === void 0 && (e = {}), {
2084
+ name: "shift",
2085
+ options: e,
2086
+ async fn(t) {
2087
+ const {
2088
+ x: r,
2089
+ y: n,
2090
+ placement: o,
2091
+ platform: i
2092
+ } = t, {
2093
+ mainAxis: s = !0,
2094
+ crossAxis: a = !1,
2095
+ limiter: l = {
2096
+ fn: (A) => {
2097
+ let {
2098
+ x: I,
2099
+ y
2100
+ } = A;
2101
+ return {
2102
+ x: I,
2103
+ y
2104
+ };
2105
+ }
2106
+ },
2107
+ ...c
2108
+ } = rt(e, t), f = {
2109
+ x: r,
2110
+ y: n
2111
+ }, d = await i.detectOverflow(t, c), h = he(Se(o)), u = Ln(h);
2112
+ let v = f[u], p = f[h];
2113
+ if (s) {
2114
+ const A = u === "y" ? "top" : "left", I = u === "y" ? "bottom" : "right", y = v + d[A], T = v - d[I];
2115
+ v = tn(y, v, T);
2116
+ }
2117
+ if (a) {
2118
+ const A = h === "y" ? "top" : "left", I = h === "y" ? "bottom" : "right", y = p + d[A], T = p - d[I];
2119
+ p = tn(y, p, T);
2120
+ }
2121
+ const O = l.fn({
2122
+ ...t,
2123
+ [u]: v,
2124
+ [h]: p
2125
+ });
2126
+ return {
2127
+ ...O,
2128
+ data: {
2129
+ x: O.x - r,
2130
+ y: O.y - n,
2131
+ enabled: {
2132
+ [u]: s,
2133
+ [h]: a
2134
+ }
2135
+ }
2136
+ };
2137
+ }
2138
+ };
2139
+ };
2140
+ function Yn(e) {
2141
+ const t = se(e);
2142
+ let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
2143
+ const o = ne(e), i = o ? e.offsetWidth : r, s = o ? e.offsetHeight : n, a = Ve(r) !== i || Ve(n) !== s;
2144
+ return a && (r = i, n = s), {
2145
+ width: r,
2146
+ height: n,
2147
+ $: a
2148
+ };
2149
+ }
2150
+ function $t(e) {
2151
+ return Q(e) ? e : e.contextElement;
2152
+ }
2153
+ function Ae(e) {
2154
+ const t = $t(e);
2155
+ if (!ne(t))
2156
+ return le(1);
2157
+ const r = t.getBoundingClientRect(), {
2158
+ width: n,
2159
+ height: o,
2160
+ $: i
2161
+ } = Yn(t);
2162
+ let s = (i ? Ve(r.width) : r.width) / n, a = (i ? Ve(r.height) : r.height) / o;
2163
+ return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
2164
+ x: s,
2165
+ y: a
2166
+ };
2167
+ }
2168
+ const mo = /* @__PURE__ */ le(0);
2169
+ function Un(e) {
2170
+ const t = ie(e);
2171
+ return !tt() || !t.visualViewport ? mo : {
2172
+ x: t.visualViewport.offsetLeft,
2173
+ y: t.visualViewport.offsetTop
2174
+ };
2175
+ }
2176
+ function ho(e, t, r) {
2177
+ return t === void 0 && (t = !1), !r || t && r !== ie(e) ? !1 : t;
2178
+ }
2179
+ function Ce(e, t, r, n) {
2180
+ t === void 0 && (t = !1), r === void 0 && (r = !1);
2181
+ const o = e.getBoundingClientRect(), i = $t(e);
2182
+ let s = le(1);
2183
+ t && (n ? Q(n) && (s = Ae(n)) : s = Ae(e));
2184
+ const a = ho(i, r, n) ? Un(i) : le(0);
2185
+ let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, f = o.width / s.x, d = o.height / s.y;
2186
+ if (i) {
2187
+ const h = ie(i), u = n && Q(n) ? ie(n) : n;
2188
+ let v = h, p = Ct(v);
2189
+ for (; p && n && u !== v; ) {
2190
+ const O = Ae(p), A = p.getBoundingClientRect(), I = se(p), y = A.left + (p.clientLeft + parseFloat(I.paddingLeft)) * O.x, T = A.top + (p.clientTop + parseFloat(I.paddingTop)) * O.y;
2191
+ l *= O.x, c *= O.y, f *= O.x, d *= O.y, l += y, c += T, v = ie(p), p = Ct(v);
2192
+ }
2193
+ }
2194
+ return Ue({
2195
+ width: f,
2196
+ height: d,
2197
+ x: l,
2198
+ y: c
2199
+ });
2200
+ }
2201
+ function it(e, t) {
2202
+ const r = nt(e).scrollLeft;
2203
+ return t ? t.left + r : Ce(ue(e)).left + r;
2204
+ }
2205
+ function Hn(e, t) {
2206
+ const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - it(e, r), o = r.top + t.scrollTop;
2207
+ return {
2208
+ x: n,
2209
+ y: o
2210
+ };
2211
+ }
2212
+ function vo(e) {
2213
+ let {
2214
+ elements: t,
2215
+ rect: r,
2216
+ offsetParent: n,
2217
+ strategy: o
2218
+ } = e;
2219
+ const i = o === "fixed", s = ue(n), a = t ? et(t.floating) : !1;
2220
+ if (n === s || a && i)
2221
+ return r;
2222
+ let l = {
2223
+ scrollLeft: 0,
2224
+ scrollTop: 0
2225
+ }, c = le(1);
2226
+ const f = le(0), d = ne(n);
2227
+ if ((d || !d && !i) && ((ye(n) !== "body" || ke(s)) && (l = nt(n)), d)) {
2228
+ const u = Ce(n);
2229
+ c = Ae(n), f.x = u.x + n.clientLeft, f.y = u.y + n.clientTop;
2230
+ }
2231
+ const h = s && !d && !i ? Hn(s, l) : le(0);
2232
+ return {
2233
+ width: r.width * c.x,
2234
+ height: r.height * c.y,
2235
+ x: r.x * c.x - l.scrollLeft * c.x + f.x + h.x,
2236
+ y: r.y * c.y - l.scrollTop * c.y + f.y + h.y
2237
+ };
2238
+ }
2239
+ function bo(e) {
2240
+ return Array.from(e.getClientRects());
2241
+ }
2242
+ function yo(e) {
2243
+ const t = ue(e), r = nt(e), n = e.ownerDocument.body, o = Te(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), i = Te(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
2244
+ let s = -r.scrollLeft + it(e);
2245
+ const a = -r.scrollTop;
2246
+ return se(n).direction === "rtl" && (s += Te(t.clientWidth, n.clientWidth) - o), {
2247
+ width: o,
2248
+ height: i,
2249
+ x: s,
2250
+ y: a
2251
+ };
2252
+ }
2253
+ const an = 25;
2254
+ function go(e, t) {
2255
+ const r = ie(e), n = ue(e), o = r.visualViewport;
2256
+ let i = n.clientWidth, s = n.clientHeight, a = 0, l = 0;
2257
+ if (o) {
2258
+ i = o.width, s = o.height;
2259
+ const f = tt();
2260
+ (!f || f && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
2261
+ }
2262
+ const c = it(n);
2263
+ if (c <= 0) {
2264
+ const f = n.ownerDocument, d = f.body, h = getComputedStyle(d), u = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(n.clientWidth - d.clientWidth - u);
2265
+ v <= an && (i -= v);
2266
+ } else c <= an && (i += c);
2267
+ return {
2268
+ width: i,
2269
+ height: s,
2270
+ x: a,
2271
+ y: l
2272
+ };
2273
+ }
2274
+ function wo(e, t) {
2275
+ const r = Ce(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = ne(e) ? Ae(e) : le(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = n * i.y;
2276
+ return {
2277
+ width: s,
2278
+ height: a,
2279
+ x: l,
2280
+ y: c
2281
+ };
2282
+ }
2283
+ function cn(e, t, r) {
2284
+ let n;
2285
+ if (t === "viewport")
2286
+ n = go(e, r);
2287
+ else if (t === "document")
2288
+ n = yo(ue(e));
2289
+ else if (Q(t))
2290
+ n = wo(t, r);
2291
+ else {
2292
+ const o = Un(e);
2293
+ n = {
2294
+ x: t.x - o.x,
2295
+ y: t.y - o.y,
2296
+ width: t.width,
2297
+ height: t.height
2298
+ };
2299
+ }
2300
+ return Ue(n);
2301
+ }
2302
+ function Kn(e, t) {
2303
+ const r = pe(e);
2304
+ return r === t || !Q(r) || be(r) ? !1 : se(r).position === "fixed" || Kn(r, t);
2305
+ }
2306
+ function xo(e, t) {
2307
+ const r = t.get(e);
2308
+ if (r)
2309
+ return r;
2310
+ let n = ve(e, [], !1).filter((a) => Q(a) && ye(a) !== "body"), o = null;
2311
+ const i = se(e).position === "fixed";
2312
+ let s = i ? pe(e) : e;
2313
+ for (; Q(s) && !be(s); ) {
2314
+ const a = se(s), l = Lt(s);
2315
+ !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || ke(s) && !l && Kn(e, s)) ? n = n.filter((f) => f !== s) : o = a, s = pe(s);
2316
+ }
2317
+ return t.set(e, n), n;
2318
+ }
2319
+ function Eo(e) {
2320
+ let {
2321
+ element: t,
2322
+ boundary: r,
2323
+ rootBoundary: n,
2324
+ strategy: o
2325
+ } = e;
2326
+ const s = [...r === "clippingAncestors" ? et(t) ? [] : xo(t, this._c) : [].concat(r), n], a = cn(t, s[0], o);
2327
+ let l = a.top, c = a.right, f = a.bottom, d = a.left;
2328
+ for (let h = 1; h < s.length; h++) {
2329
+ const u = cn(t, s[h], o);
2330
+ l = Te(u.top, l), c = qe(u.right, c), f = qe(u.bottom, f), d = Te(u.left, d);
2331
+ }
2332
+ return {
2333
+ width: c - d,
2334
+ height: f - l,
2335
+ x: d,
2336
+ y: l
2337
+ };
2338
+ }
2339
+ function Ro(e) {
2340
+ const {
2341
+ width: t,
2342
+ height: r
2343
+ } = Yn(e);
2344
+ return {
2345
+ width: t,
2346
+ height: r
2347
+ };
2348
+ }
2349
+ function To(e, t, r) {
2350
+ const n = ne(t), o = ue(t), i = r === "fixed", s = Ce(e, !0, i, t);
2351
+ let a = {
2352
+ scrollLeft: 0,
2353
+ scrollTop: 0
2354
+ };
2355
+ const l = le(0);
2356
+ function c() {
2357
+ l.x = it(o);
2358
+ }
2359
+ if (n || !n && !i)
2360
+ if ((ye(t) !== "body" || ke(o)) && (a = nt(t)), n) {
2361
+ const u = Ce(t, !0, i, t);
2362
+ l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
2363
+ } else o && c();
2364
+ i && !n && o && c();
2365
+ const f = o && !n && !i ? Hn(o, a) : le(0), d = s.left + a.scrollLeft - l.x - f.x, h = s.top + a.scrollTop - l.y - f.y;
2366
+ return {
2367
+ x: d,
2368
+ y: h,
2369
+ width: s.width,
2370
+ height: s.height
2371
+ };
2372
+ }
2373
+ function bt(e) {
2374
+ return se(e).position === "static";
2375
+ }
2376
+ function ln(e, t) {
2377
+ if (!ne(e) || se(e).position === "fixed")
2378
+ return null;
2379
+ if (t)
2380
+ return t(e);
2381
+ let r = e.offsetParent;
2382
+ return ue(e) === r && (r = r.ownerDocument.body), r;
2383
+ }
2384
+ function zn(e, t) {
2385
+ const r = ie(e);
2386
+ if (et(e))
2387
+ return r;
2388
+ if (!ne(e)) {
2389
+ let o = pe(e);
2390
+ for (; o && !be(o); ) {
2391
+ if (Q(o) && !bt(o))
2392
+ return o;
2393
+ o = pe(o);
2394
+ }
2395
+ return r;
2396
+ }
2397
+ let n = ln(e, t);
2398
+ for (; n && wr(n) && bt(n); )
2399
+ n = ln(n, t);
2400
+ return n && be(n) && bt(n) && !Lt(n) ? r : n || Rr(e) || r;
2401
+ }
2402
+ const So = async function(e) {
2403
+ const t = this.getOffsetParent || zn, r = this.getDimensions, n = await r(e.floating);
2404
+ return {
2405
+ reference: To(e.reference, await t(e.floating), e.strategy),
2406
+ floating: {
2407
+ x: 0,
2408
+ y: 0,
2409
+ width: n.width,
2410
+ height: n.height
2411
+ }
2412
+ };
2413
+ };
2414
+ function Co(e) {
2415
+ return se(e).direction === "rtl";
2416
+ }
2417
+ const _o = {
2418
+ convertOffsetParentRelativeRectToViewportRelativeRect: vo,
2419
+ getDocumentElement: ue,
2420
+ getClippingRect: Eo,
2421
+ getOffsetParent: zn,
2422
+ getElementRects: So,
2423
+ getClientRects: bo,
2424
+ getDimensions: Ro,
2425
+ getScale: Ae,
2426
+ isElement: Q,
2427
+ isRTL: Co
2428
+ };
2429
+ function Xn(e, t) {
2430
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2431
+ }
2432
+ function Oo(e, t) {
2433
+ let r = null, n;
2434
+ const o = ue(e);
2435
+ function i() {
2436
+ var a;
2437
+ clearTimeout(n), (a = r) == null || a.disconnect(), r = null;
2438
+ }
2439
+ function s(a, l) {
2440
+ a === void 0 && (a = !1), l === void 0 && (l = 1), i();
2441
+ const c = e.getBoundingClientRect(), {
2442
+ left: f,
2443
+ top: d,
2444
+ width: h,
2445
+ height: u
2446
+ } = c;
2447
+ if (a || t(), !h || !u)
2448
+ return;
2449
+ const v = Fe(d), p = Fe(o.clientWidth - (f + h)), O = Fe(o.clientHeight - (d + u)), A = Fe(f), y = {
2450
+ rootMargin: -v + "px " + -p + "px " + -O + "px " + -A + "px",
2451
+ threshold: Te(0, qe(1, l)) || 1
2452
+ };
2453
+ let T = !0;
2454
+ function b(k) {
2455
+ const H = k[0].intersectionRatio;
2456
+ if (H !== l) {
2457
+ if (!T)
2458
+ return s();
2459
+ H ? s(!1, H) : n = setTimeout(() => {
2460
+ s(!1, 1e-7);
2461
+ }, 1e3);
2462
+ }
2463
+ H === 1 && !Xn(c, e.getBoundingClientRect()) && s(), T = !1;
2464
+ }
2465
+ try {
2466
+ r = new IntersectionObserver(b, {
2467
+ ...y,
2468
+ // Handle <iframe>s
2469
+ root: o.ownerDocument
2470
+ });
2471
+ } catch {
2472
+ r = new IntersectionObserver(b, y);
2473
+ }
2474
+ r.observe(e);
2475
+ }
2476
+ return s(!0), i;
2477
+ }
2478
+ function Ao(e, t, r, n) {
2479
+ n === void 0 && (n = {});
2480
+ const {
2481
+ ancestorScroll: o = !0,
2482
+ ancestorResize: i = !0,
2483
+ elementResize: s = typeof ResizeObserver == "function",
2484
+ layoutShift: a = typeof IntersectionObserver == "function",
2485
+ animationFrame: l = !1
2486
+ } = n, c = $t(e), f = o || i ? [...c ? ve(c) : [], ...t ? ve(t) : []] : [];
2487
+ f.forEach((A) => {
2488
+ o && A.addEventListener("scroll", r, {
2489
+ passive: !0
2490
+ }), i && A.addEventListener("resize", r);
2491
+ });
2492
+ const d = c && a ? Oo(c, r) : null;
2493
+ let h = -1, u = null;
2494
+ s && (u = new ResizeObserver((A) => {
2495
+ let [I] = A;
2496
+ I && I.target === c && u && t && (u.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
2497
+ var y;
2498
+ (y = u) == null || y.observe(t);
2499
+ })), r();
2500
+ }), c && !l && u.observe(c), t && u.observe(t));
2501
+ let v, p = l ? Ce(e) : null;
2502
+ l && O();
2503
+ function O() {
2504
+ const A = Ce(e);
2505
+ p && !Xn(p, A) && r(), p = A, v = requestAnimationFrame(O);
2506
+ }
2507
+ return r(), () => {
2508
+ var A;
2509
+ f.forEach((I) => {
2510
+ o && I.removeEventListener("scroll", r), i && I.removeEventListener("resize", r);
2511
+ }), d == null || d(), (A = u) == null || A.disconnect(), u = null, l && cancelAnimationFrame(v);
2512
+ };
2513
+ }
2514
+ const Po = fo, No = po, Io = co, ko = (e, t, r) => {
2515
+ const n = /* @__PURE__ */ new Map(), o = {
2516
+ platform: _o,
2517
+ ...r
2518
+ }, i = {
2519
+ ...o.platform,
2520
+ _c: n
2521
+ };
2522
+ return ao(e, t, {
2523
+ ...o,
2524
+ platform: i
2525
+ });
2526
+ };
2527
+ var Mo = typeof document < "u", Do = function() {
2528
+ }, Be = Mo ? On : Do;
2529
+ function Xe(e, t) {
2530
+ if (e === t)
2531
+ return !0;
2532
+ if (typeof e != typeof t)
2533
+ return !1;
2534
+ if (typeof e == "function" && e.toString() === t.toString())
2535
+ return !0;
2536
+ let r, n, o;
2537
+ if (e && t && typeof e == "object") {
2538
+ if (Array.isArray(e)) {
2539
+ if (r = e.length, r !== t.length) return !1;
2540
+ for (n = r; n-- !== 0; )
2541
+ if (!Xe(e[n], t[n]))
2542
+ return !1;
2543
+ return !0;
2544
+ }
2545
+ if (o = Object.keys(e), r = o.length, r !== Object.keys(t).length)
2546
+ return !1;
2547
+ for (n = r; n-- !== 0; )
2548
+ if (!{}.hasOwnProperty.call(t, o[n]))
2549
+ return !1;
2550
+ for (n = r; n-- !== 0; ) {
2551
+ const i = o[n];
2552
+ if (!(i === "_owner" && e.$$typeof) && !Xe(e[i], t[i]))
2553
+ return !1;
2554
+ }
2555
+ return !0;
2556
+ }
2557
+ return e !== e && t !== t;
2558
+ }
2559
+ function Gn(e) {
2560
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2561
+ }
2562
+ function un(e, t) {
2563
+ const r = Gn(e);
2564
+ return Math.round(t * r) / r;
2565
+ }
2566
+ function yt(e) {
2567
+ const t = x.useRef(e);
2568
+ return Be(() => {
2569
+ t.current = e;
2570
+ }), t;
2571
+ }
2572
+ function Lo(e) {
2573
+ e === void 0 && (e = {});
2574
+ const {
2575
+ placement: t = "bottom",
2576
+ strategy: r = "absolute",
2577
+ middleware: n = [],
2578
+ platform: o,
2579
+ elements: {
2580
+ reference: i,
2581
+ floating: s
2582
+ } = {},
2583
+ transform: a = !0,
2584
+ whileElementsMounted: l,
2585
+ open: c
2586
+ } = e, [f, d] = x.useState({
2587
+ x: 0,
2588
+ y: 0,
2589
+ strategy: r,
2590
+ placement: t,
2591
+ middlewareData: {},
2592
+ isPositioned: !1
2593
+ }), [h, u] = x.useState(n);
2594
+ Xe(h, n) || u(n);
2595
+ const [v, p] = x.useState(null), [O, A] = x.useState(null), I = x.useCallback((M) => {
2596
+ M !== k.current && (k.current = M, p(M));
2597
+ }, []), y = x.useCallback((M) => {
2598
+ M !== H.current && (H.current = M, A(M));
2599
+ }, []), T = i || v, b = s || O, k = x.useRef(null), H = x.useRef(null), K = x.useRef(f), J = l != null, Z = yt(l), G = yt(o), B = yt(c), te = x.useCallback(() => {
2600
+ if (!k.current || !H.current)
2601
+ return;
2602
+ const M = {
2603
+ placement: t,
2604
+ strategy: r,
2605
+ middleware: h
2606
+ };
2607
+ G.current && (M.platform = G.current), ko(k.current, H.current, M).then((R) => {
2608
+ const m = {
2609
+ ...R,
2610
+ // The floating element's position may be recomputed while it's closed
2611
+ // but still mounted (such as when transitioning out). To ensure
2612
+ // `isPositioned` will be `false` initially on the next open, avoid
2613
+ // setting it to `true` when `open === false` (must be specified).
2614
+ isPositioned: B.current !== !1
2615
+ };
2616
+ z.current && !Xe(K.current, m) && (K.current = m, ir.flushSync(() => {
2617
+ d(m);
2618
+ }));
2619
+ });
2620
+ }, [h, t, r, G, B]);
2621
+ Be(() => {
2622
+ c === !1 && K.current.isPositioned && (K.current.isPositioned = !1, d((M) => ({
2623
+ ...M,
2624
+ isPositioned: !1
2625
+ })));
2626
+ }, [c]);
2627
+ const z = x.useRef(!1);
2628
+ Be(() => (z.current = !0, () => {
2629
+ z.current = !1;
2630
+ }), []), Be(() => {
2631
+ if (T && (k.current = T), b && (H.current = b), T && b) {
2632
+ if (Z.current)
2633
+ return Z.current(T, b, te);
2634
+ te();
2635
+ }
2636
+ }, [T, b, te, Z, J]);
2637
+ const L = x.useMemo(() => ({
2638
+ reference: k,
2639
+ floating: H,
2640
+ setReference: I,
2641
+ setFloating: y
2642
+ }), [I, y]), j = x.useMemo(() => ({
2643
+ reference: T,
2644
+ floating: b
2645
+ }), [T, b]), V = x.useMemo(() => {
2646
+ const M = {
2647
+ position: r,
2648
+ left: 0,
2649
+ top: 0
2650
+ };
2651
+ if (!j.floating)
2652
+ return M;
2653
+ const R = un(j.floating, f.x), m = un(j.floating, f.y);
2654
+ return a ? {
2655
+ ...M,
2656
+ transform: "translate(" + R + "px, " + m + "px)",
2657
+ ...Gn(j.floating) >= 1.5 && {
2658
+ willChange: "transform"
2659
+ }
2660
+ } : {
2661
+ position: r,
2662
+ left: R,
2663
+ top: m
2664
+ };
2665
+ }, [r, a, j.floating, f.x, f.y]);
2666
+ return x.useMemo(() => ({
2667
+ ...f,
2668
+ update: te,
2669
+ refs: L,
2670
+ elements: j,
2671
+ floatingStyles: V
2672
+ }), [f, te, L, j, V]);
2673
+ }
2674
+ const Fo = (e, t) => {
2675
+ const r = Po(e);
2676
+ return {
2677
+ name: r.name,
2678
+ fn: r.fn,
2679
+ options: [e, t]
2680
+ };
2681
+ }, $o = (e, t) => {
2682
+ const r = No(e);
2683
+ return {
2684
+ name: r.name,
2685
+ fn: r.fn,
2686
+ options: [e, t]
2687
+ };
2688
+ }, jo = (e, t) => {
2689
+ const r = Io(e);
2690
+ return {
2691
+ name: r.name,
2692
+ fn: r.fn,
2693
+ options: [e, t]
2694
+ };
2695
+ }, Zn = {
2696
+ ...x
2697
+ }, Wo = Zn.useInsertionEffect, Bo = Wo || ((e) => e());
2698
+ function me(e) {
2699
+ const t = x.useRef(() => {
2700
+ if (process.env.NODE_ENV !== "production")
2701
+ throw new Error("Cannot call an event handler while rendering.");
2702
+ });
2703
+ return Bo(() => {
2704
+ t.current = e;
2705
+ }), x.useCallback(function() {
2706
+ for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
2707
+ n[o] = arguments[o];
2708
+ return t.current == null ? void 0 : t.current(...n);
2709
+ }, []);
2710
+ }
2711
+ var de = typeof document < "u" ? On : We;
2712
+ function Ge() {
2713
+ return Ge = Object.assign ? Object.assign.bind() : function(e) {
2714
+ for (var t = 1; t < arguments.length; t++) {
2715
+ var r = arguments[t];
2716
+ for (var n in r)
2717
+ Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
2718
+ }
2719
+ return e;
2720
+ }, Ge.apply(this, arguments);
2721
+ }
2722
+ let fn = !1, qo = 0;
2723
+ const dn = () => (
2724
+ // Ensure the id is unique with multiple independent versions of Floating UI
2725
+ // on <React 18
2726
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + qo++
2727
+ );
2728
+ function Vo() {
2729
+ const [e, t] = x.useState(() => fn ? dn() : void 0);
2730
+ return de(() => {
2731
+ e == null && t(dn());
2732
+ }, []), x.useEffect(() => {
2733
+ fn = !0;
2734
+ }, []), e;
2735
+ }
2736
+ const Yo = Zn.useId, Jn = Yo || Vo;
2737
+ let Nt;
2738
+ process.env.NODE_ENV !== "production" && (Nt = /* @__PURE__ */ new Set());
2739
+ function Uo() {
2740
+ for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
2741
+ r[n] = arguments[n];
2742
+ const o = "Floating UI: " + r.join(" ");
2743
+ if (!((e = Nt) != null && e.has(o))) {
2744
+ var i;
2745
+ (i = Nt) == null || i.add(o), console.error(o);
2746
+ }
2747
+ }
2748
+ function Ho() {
2749
+ const e = /* @__PURE__ */ new Map();
2750
+ return {
2751
+ emit(t, r) {
2752
+ var n;
2753
+ (n = e.get(t)) == null || n.forEach((o) => o(r));
2754
+ },
2755
+ on(t, r) {
2756
+ e.set(t, [...e.get(t) || [], r]);
2757
+ },
2758
+ off(t, r) {
2759
+ var n;
2760
+ e.set(t, ((n = e.get(t)) == null ? void 0 : n.filter((o) => o !== r)) || []);
2761
+ }
2762
+ };
2763
+ }
2764
+ const Ko = /* @__PURE__ */ x.createContext(null), zo = /* @__PURE__ */ x.createContext(null), Qn = () => {
2765
+ var e;
2766
+ return ((e = x.useContext(Ko)) == null ? void 0 : e.id) || null;
2767
+ }, jt = () => x.useContext(zo);
2768
+ function Ze(e) {
2769
+ return "data-floating-ui-" + e;
2770
+ }
2771
+ function gt(e) {
2772
+ const t = Rt(e);
2773
+ return de(() => {
2774
+ t.current = e;
2775
+ }), t;
2776
+ }
2777
+ let pn = 0;
2778
+ function _e(e, t) {
2779
+ t === void 0 && (t = {});
2780
+ const {
2781
+ preventScroll: r = !1,
2782
+ cancelPrevious: n = !0,
2783
+ sync: o = !1
2784
+ } = t;
2785
+ n && cancelAnimationFrame(pn);
2786
+ const i = () => e == null ? void 0 : e.focus({
2787
+ preventScroll: r
2788
+ });
2789
+ o ? i() : pn = requestAnimationFrame(i);
2790
+ }
2791
+ function Xo(e, t) {
2792
+ var r;
2793
+ let n = [], o = (r = e.find((i) => i.id === t)) == null ? void 0 : r.parentId;
2794
+ for (; o; ) {
2795
+ const i = e.find((s) => s.id === o);
2796
+ o = i == null ? void 0 : i.parentId, i && (n = n.concat(i));
2797
+ }
2798
+ return n;
2799
+ }
2800
+ function Ne(e, t) {
2801
+ let r = e.filter((o) => {
2802
+ var i;
2803
+ return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
2804
+ }), n = r;
2805
+ for (; n.length; )
2806
+ n = e.filter((o) => {
2807
+ var i;
2808
+ return (i = n) == null ? void 0 : i.some((s) => {
2809
+ var a;
2810
+ return o.parentId === s.id && ((a = o.context) == null ? void 0 : a.open);
2811
+ });
2812
+ }), r = r.concat(n);
2813
+ return r;
2814
+ }
2815
+ let Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {}, wt = 0;
2816
+ const Go = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, er = (e) => e && (e.host || er(e.parentNode)), Zo = (e, t) => t.map((r) => {
2817
+ if (e.contains(r))
2818
+ return r;
2819
+ const n = er(r);
2820
+ return e.contains(n) ? n : null;
2821
+ }).filter((r) => r != null);
2822
+ function Jo(e, t, r, n) {
2823
+ const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Zo(t, e), a = /* @__PURE__ */ new Set(), l = new Set(s), c = [];
2824
+ je[o] || (je[o] = /* @__PURE__ */ new WeakMap());
2825
+ const f = je[o];
2826
+ s.forEach(d), h(t), a.clear();
2827
+ function d(u) {
2828
+ !u || a.has(u) || (a.add(u), u.parentNode && d(u.parentNode));
2829
+ }
2830
+ function h(u) {
2831
+ !u || l.has(u) || [].forEach.call(u.children, (v) => {
2832
+ if (ye(v) !== "script")
2833
+ if (a.has(v))
2834
+ h(v);
2835
+ else {
2836
+ const p = i ? v.getAttribute(i) : null, O = p !== null && p !== "false", A = (Oe.get(v) || 0) + 1, I = (f.get(v) || 0) + 1;
2837
+ Oe.set(v, A), f.set(v, I), c.push(v), A === 1 && O && $e.add(v), I === 1 && v.setAttribute(o, ""), !O && i && v.setAttribute(i, "true");
2838
+ }
2839
+ });
2840
+ }
2841
+ return wt++, () => {
2842
+ c.forEach((u) => {
2843
+ const v = (Oe.get(u) || 0) - 1, p = (f.get(u) || 0) - 1;
2844
+ Oe.set(u, v), f.set(u, p), v || (!$e.has(u) && i && u.removeAttribute(i), $e.delete(u)), p || u.removeAttribute(o);
2845
+ }), wt--, wt || (Oe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {});
2846
+ };
2847
+ }
2848
+ function mn(e, t, r) {
2849
+ t === void 0 && (t = !1), r === void 0 && (r = !1);
2850
+ const n = ce(e[0]).body;
2851
+ return Jo(e.concat(Array.from(n.querySelectorAll("[aria-live]"))), n, t, r);
2852
+ }
2853
+ const Je = () => ({
2854
+ getShadowRoot: !0,
2855
+ displayCheck: (
2856
+ // JSDOM does not support the `tabbable` library. To solve this we can
2857
+ // check if `ResizeObserver` is a real function (not polyfilled), which
2858
+ // determines if the current environment is JSDOM-like.
2859
+ typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
2860
+ )
2861
+ });
2862
+ function tr(e, t) {
2863
+ const r = Ft(e, Je());
2864
+ t === "prev" && r.reverse();
2865
+ const n = r.indexOf(we(ce(e)));
2866
+ return r.slice(n + 1)[0];
2867
+ }
2868
+ function Qo() {
2869
+ return tr(document.body, "next");
2870
+ }
2871
+ function ei() {
2872
+ return tr(document.body, "prev");
2873
+ }
2874
+ function hn(e, t) {
2875
+ const r = t || e.currentTarget, n = e.relatedTarget;
2876
+ return !n || !oe(r, n);
2877
+ }
2878
+ const Wt = {
2879
+ border: 0,
2880
+ clip: "rect(0 0 0 0)",
2881
+ height: "1px",
2882
+ margin: "-1px",
2883
+ overflow: "hidden",
2884
+ padding: 0,
2885
+ position: "fixed",
2886
+ whiteSpace: "nowrap",
2887
+ width: "1px",
2888
+ top: 0,
2889
+ left: 0
2890
+ };
2891
+ let ti;
2892
+ function vn(e) {
2893
+ e.key === "Tab" && (e.target, clearTimeout(ti));
2894
+ }
2895
+ const bn = /* @__PURE__ */ x.forwardRef(function(t, r) {
2896
+ const [n, o] = x.useState();
2897
+ de(() => (_r() && o("button"), document.addEventListener("keydown", vn), () => {
2898
+ document.removeEventListener("keydown", vn);
2899
+ }), []);
2900
+ const i = {
2901
+ ref: r,
2902
+ tabIndex: 0,
2903
+ // Role is only for VoiceOver
2904
+ role: n,
2905
+ "aria-hidden": n ? void 0 : !0,
2906
+ [Ze("focus-guard")]: "",
2907
+ style: Wt
2908
+ };
2909
+ return /* @__PURE__ */ x.createElement("span", Ge({}, t, i));
2910
+ }), ni = /* @__PURE__ */ x.createContext(null), ri = () => x.useContext(ni), It = "data-floating-ui-focusable";
2911
+ function oi(e) {
2912
+ return e ? e.hasAttribute(It) ? e : e.querySelector("[" + It + "]") || e : null;
2913
+ }
2914
+ const yn = 20;
2915
+ let xe = [];
2916
+ function xt(e) {
2917
+ xe = xe.filter((r) => r.isConnected);
2918
+ let t = e;
2919
+ if (!(!t || ye(t) === "body")) {
2920
+ if (!oo(t, Je())) {
2921
+ const r = Ft(t, Je())[0];
2922
+ r && (t = r);
2923
+ }
2924
+ xe.push(t), xe.length > yn && (xe = xe.slice(-yn));
2925
+ }
2926
+ }
2927
+ function gn() {
2928
+ return xe.slice().reverse().find((e) => e.isConnected);
2929
+ }
2930
+ const ii = /* @__PURE__ */ x.forwardRef(function(t, r) {
2931
+ return /* @__PURE__ */ x.createElement("button", Ge({}, t, {
2932
+ type: "button",
2933
+ ref: r,
2934
+ tabIndex: -1,
2935
+ style: Wt
2936
+ }));
2937
+ });
2938
+ function si(e) {
2939
+ const {
2940
+ context: t,
2941
+ children: r,
2942
+ disabled: n = !1,
2943
+ order: o = ["content"],
2944
+ guards: i = !0,
2945
+ initialFocus: s = 0,
2946
+ returnFocus: a = !0,
2947
+ restoreFocus: l = !1,
2948
+ modal: c = !0,
2949
+ visuallyHiddenDismiss: f = !1,
2950
+ closeOnFocusOut: d = !0
2951
+ } = e, {
2952
+ open: h,
2953
+ refs: u,
2954
+ nodeId: v,
2955
+ onOpenChange: p,
2956
+ events: O,
2957
+ dataRef: A,
2958
+ floatingId: I,
2959
+ elements: {
2960
+ domReference: y,
2961
+ floating: T
2962
+ }
2963
+ } = t, b = typeof s == "number" && s < 0, k = Ir(y) && b, H = Go() ? i : !0, K = gt(o), J = gt(s), Z = gt(a), G = jt(), B = ri(), te = x.useRef(null), z = x.useRef(null), L = x.useRef(!1), j = x.useRef(!1), V = x.useRef(-1), M = B != null, R = oi(T), m = me(function(S) {
2964
+ return S === void 0 && (S = R), S ? Ft(S, Je()) : [];
2965
+ }), w = me((S) => {
2966
+ const P = m(S);
2967
+ return K.current.map((g) => y && g === "reference" ? y : R && g === "floating" ? R : P).filter(Boolean).flat();
2968
+ });
2969
+ x.useEffect(() => {
2970
+ if (n || !c) return;
2971
+ function S(g) {
2972
+ if (g.key === "Tab") {
2973
+ oe(R, we(ce(R))) && m().length === 0 && !k && vt(g);
2974
+ const _ = w(), N = Ee(g);
2975
+ K.current[0] === "reference" && N === y && (vt(g), g.shiftKey ? _e(_[_.length - 1]) : _e(_[1])), K.current[1] === "floating" && N === R && g.shiftKey && (vt(g), _e(_[0]));
2976
+ }
2977
+ }
2978
+ const P = ce(R);
2979
+ return P.addEventListener("keydown", S), () => {
2980
+ P.removeEventListener("keydown", S);
2981
+ };
2982
+ }, [n, y, R, c, K, k, m, w]), x.useEffect(() => {
2983
+ if (n || !T) return;
2984
+ function S(P) {
2985
+ const g = Ee(P), N = m().indexOf(g);
2986
+ N !== -1 && (V.current = N);
2987
+ }
2988
+ return T.addEventListener("focusin", S), () => {
2989
+ T.removeEventListener("focusin", S);
2990
+ };
2991
+ }, [n, T, m]), x.useEffect(() => {
2992
+ if (n || !d) return;
2993
+ function S() {
2994
+ j.current = !0, setTimeout(() => {
2995
+ j.current = !1;
2996
+ });
2997
+ }
2998
+ function P(g) {
2999
+ const _ = g.relatedTarget;
3000
+ queueMicrotask(() => {
3001
+ const N = !(oe(y, _) || oe(T, _) || oe(_, T) || oe(B == null ? void 0 : B.portalNode, _) || _ != null && _.hasAttribute(Ze("focus-guard")) || G && (Ne(G.nodesRef.current, v).find(($) => {
3002
+ var D, X;
3003
+ return oe((D = $.context) == null ? void 0 : D.elements.floating, _) || oe((X = $.context) == null ? void 0 : X.elements.domReference, _);
3004
+ }) || Xo(G.nodesRef.current, v).find(($) => {
3005
+ var D, X;
3006
+ return ((D = $.context) == null ? void 0 : D.elements.floating) === _ || ((X = $.context) == null ? void 0 : X.elements.domReference) === _;
3007
+ })));
3008
+ if (l && N && we(ce(R)) === ce(R).body) {
3009
+ ne(R) && R.focus();
3010
+ const $ = V.current, D = m(), X = D[$] || D[D.length - 1] || R;
3011
+ ne(X) && X.focus();
3012
+ }
3013
+ (k || !c) && _ && N && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3014
+ _ !== gn() && (L.current = !0, p(!1, g, "focus-out"));
3015
+ });
3016
+ }
3017
+ if (T && ne(y))
3018
+ return y.addEventListener("focusout", P), y.addEventListener("pointerdown", S), T.addEventListener("focusout", P), () => {
3019
+ y.removeEventListener("focusout", P), y.removeEventListener("pointerdown", S), T.removeEventListener("focusout", P);
3020
+ };
3021
+ }, [n, y, T, R, c, v, G, B, p, d, l, m, k]), x.useEffect(() => {
3022
+ var S;
3023
+ if (n) return;
3024
+ const P = Array.from((B == null || (S = B.portalNode) == null ? void 0 : S.querySelectorAll("[" + Ze("portal") + "]")) || []);
3025
+ if (T) {
3026
+ const g = [T, ...P, te.current, z.current, K.current.includes("reference") || k ? y : null].filter((N) => N != null), _ = c || k ? mn(g, H, !H) : mn(g);
3027
+ return () => {
3028
+ _();
3029
+ };
3030
+ }
3031
+ }, [n, y, T, c, K, B, k, H]), de(() => {
3032
+ if (n || !ne(R)) return;
3033
+ const S = ce(R), P = we(S);
3034
+ queueMicrotask(() => {
3035
+ const g = w(R), _ = J.current, N = (typeof _ == "number" ? g[_] : _.current) || R, $ = oe(R, P);
3036
+ !b && !$ && h && _e(N, {
3037
+ preventScroll: N === R
3038
+ });
3039
+ });
3040
+ }, [n, h, R, b, w, J]), de(() => {
3041
+ if (n || !R) return;
3042
+ let S = !1;
3043
+ const P = ce(R), g = we(P);
3044
+ let N = A.current.openEvent;
3045
+ xt(g);
3046
+ function $(C) {
3047
+ let {
3048
+ open: re,
3049
+ reason: fe,
3050
+ event: ae,
3051
+ nested: st
3052
+ } = C;
3053
+ re && (N = ae), fe === "escape-key" && u.domReference.current && xt(u.domReference.current), fe === "hover" && ae.type === "mouseleave" && (L.current = !0), fe === "outside-press" && (st ? (L.current = !1, S = !0) : L.current = !(Sr(ae) || Cr(ae)));
3054
+ }
3055
+ O.on("openchange", $);
3056
+ const D = P.createElement("span");
3057
+ D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && y && y.insertAdjacentElement("afterend", D);
3058
+ function X() {
3059
+ return typeof Z.current == "boolean" ? gn() || D : Z.current.current || D;
3060
+ }
3061
+ return () => {
3062
+ O.off("openchange", $);
3063
+ const C = we(P), re = oe(T, C) || G && Ne(G.nodesRef.current, v).some((st) => {
3064
+ var qt;
3065
+ return oe((qt = st.context) == null ? void 0 : qt.elements.floating, C);
3066
+ });
3067
+ (re || N && ["click", "mousedown"].includes(N.type)) && u.domReference.current && xt(u.domReference.current);
3068
+ const ae = X();
3069
+ queueMicrotask(() => {
3070
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3071
+ Z.current && !L.current && ne(ae) && // If the focus moved somewhere else after mount, avoid returning focus
3072
+ // since it likely entered a different element which should be
3073
+ // respected: https://github.com/floating-ui/floating-ui/issues/2607
3074
+ (!(ae !== C && C !== P.body) || re) && ae.focus({
3075
+ preventScroll: S
3076
+ }), D.remove();
3077
+ });
3078
+ };
3079
+ }, [n, T, R, Z, A, u, O, G, v, M, y]), x.useEffect(() => {
3080
+ queueMicrotask(() => {
3081
+ L.current = !1;
3082
+ });
3083
+ }, [n]), de(() => {
3084
+ if (!n && B)
3085
+ return B.setFocusManagerState({
3086
+ modal: c,
3087
+ closeOnFocusOut: d,
3088
+ open: h,
3089
+ onOpenChange: p,
3090
+ refs: u
3091
+ }), () => {
3092
+ B.setFocusManagerState(null);
3093
+ };
3094
+ }, [n, B, c, h, p, u, d]), de(() => {
3095
+ if (n || !R || typeof MutationObserver != "function" || b) return;
3096
+ const S = () => {
3097
+ const g = R.getAttribute("tabindex"), _ = m(), N = we(ce(T)), $ = _.indexOf(N);
3098
+ $ !== -1 && (V.current = $), K.current.includes("floating") || N !== u.domReference.current && _.length === 0 ? g !== "0" && R.setAttribute("tabindex", "0") : g !== "-1" && R.setAttribute("tabindex", "-1");
3099
+ };
3100
+ S();
3101
+ const P = new MutationObserver(S);
3102
+ return P.observe(R, {
3103
+ childList: !0,
3104
+ subtree: !0,
3105
+ attributes: !0
3106
+ }), () => {
3107
+ P.disconnect();
3108
+ };
3109
+ }, [n, T, R, u, K, m, b]);
3110
+ function F(S) {
3111
+ return n || !f || !c ? null : /* @__PURE__ */ x.createElement(ii, {
3112
+ ref: S === "start" ? te : z,
3113
+ onClick: (P) => p(!1, P.nativeEvent)
3114
+ }, typeof f == "string" ? f : "Dismiss");
3115
+ }
3116
+ const W = !n && H && (c ? !k : !0) && (M || c);
3117
+ return /* @__PURE__ */ x.createElement(x.Fragment, null, W && /* @__PURE__ */ x.createElement(bn, {
3118
+ "data-type": "inside",
3119
+ ref: B == null ? void 0 : B.beforeInsideRef,
3120
+ onFocus: (S) => {
3121
+ if (c) {
3122
+ const g = w();
3123
+ _e(o[0] === "reference" ? g[0] : g[g.length - 1]);
3124
+ } else if (B != null && B.preserveTabOrder && B.portalNode)
3125
+ if (L.current = !1, hn(S, B.portalNode)) {
3126
+ const g = Qo() || y;
3127
+ g == null || g.focus();
3128
+ } else {
3129
+ var P;
3130
+ (P = B.beforeOutsideRef.current) == null || P.focus();
3131
+ }
3132
+ }
3133
+ }), !k && F("start"), r, F("end"), W && /* @__PURE__ */ x.createElement(bn, {
3134
+ "data-type": "inside",
3135
+ ref: B == null ? void 0 : B.afterInsideRef,
3136
+ onFocus: (S) => {
3137
+ if (c)
3138
+ _e(w()[0]);
3139
+ else if (B != null && B.preserveTabOrder && B.portalNode)
3140
+ if (d && (L.current = !0), hn(S, B.portalNode)) {
3141
+ const g = ei() || y;
3142
+ g == null || g.focus();
3143
+ } else {
3144
+ var P;
3145
+ (P = B.afterOutsideRef.current) == null || P.focus();
3146
+ }
3147
+ }
3148
+ }));
3149
+ }
3150
+ function wn(e) {
3151
+ return ne(e.target) && e.target.tagName === "BUTTON";
3152
+ }
3153
+ function xn(e) {
3154
+ return Dn(e);
3155
+ }
3156
+ function ai(e, t) {
3157
+ t === void 0 && (t = {});
3158
+ const {
3159
+ open: r,
3160
+ onOpenChange: n,
3161
+ dataRef: o,
3162
+ elements: {
3163
+ domReference: i
3164
+ }
3165
+ } = e, {
3166
+ enabled: s = !0,
3167
+ event: a = "click",
3168
+ toggle: l = !0,
3169
+ ignoreMouse: c = !1,
3170
+ keyboardHandlers: f = !0,
3171
+ stickIfOpen: d = !0
3172
+ } = t, h = x.useRef(), u = x.useRef(!1), v = x.useMemo(() => ({
3173
+ onPointerDown(p) {
3174
+ h.current = p.pointerType;
3175
+ },
3176
+ onMouseDown(p) {
3177
+ const O = h.current;
3178
+ p.button === 0 && a !== "click" && (en(O) && c || (r && l && (!(o.current.openEvent && d) || o.current.openEvent.type === "mousedown") ? n(!1, p.nativeEvent, "click") : (p.preventDefault(), n(!0, p.nativeEvent, "click"))));
3179
+ },
3180
+ onClick(p) {
3181
+ const O = h.current;
3182
+ if (a === "mousedown" && h.current) {
3183
+ h.current = void 0;
3184
+ return;
3185
+ }
3186
+ en(O) && c || (r && l && (!(o.current.openEvent && d) || o.current.openEvent.type === "click") ? n(!1, p.nativeEvent, "click") : n(!0, p.nativeEvent, "click"));
3187
+ },
3188
+ onKeyDown(p) {
3189
+ h.current = void 0, !(p.defaultPrevented || !f || wn(p)) && (p.key === " " && !xn(i) && (p.preventDefault(), u.current = !0), p.key === "Enter" && n(!(r && l), p.nativeEvent, "click"));
3190
+ },
3191
+ onKeyUp(p) {
3192
+ p.defaultPrevented || !f || wn(p) || xn(i) || p.key === " " && u.current && (u.current = !1, n(!(r && l), p.nativeEvent, "click"));
3193
+ }
3194
+ }), [o, i, a, c, f, n, r, d, l]);
3195
+ return x.useMemo(() => s ? {
3196
+ reference: v
3197
+ } : {}, [s, v]);
3198
+ }
3199
+ const ci = {
3200
+ pointerdown: "onPointerDown",
3201
+ mousedown: "onMouseDown",
3202
+ click: "onClick"
3203
+ }, li = {
3204
+ pointerdown: "onPointerDownCapture",
3205
+ mousedown: "onMouseDownCapture",
3206
+ click: "onClickCapture"
3207
+ }, En = (e) => {
3208
+ var t, r;
3209
+ return {
3210
+ escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
3211
+ outsidePress: typeof e == "boolean" ? e : (r = e == null ? void 0 : e.outsidePress) != null ? r : !0
3212
+ };
3213
+ };
3214
+ function ui(e, t) {
3215
+ t === void 0 && (t = {});
3216
+ const {
3217
+ open: r,
3218
+ onOpenChange: n,
3219
+ elements: o,
3220
+ dataRef: i
3221
+ } = e, {
3222
+ enabled: s = !0,
3223
+ escapeKey: a = !0,
3224
+ outsidePress: l = !0,
3225
+ outsidePressEvent: c = "pointerdown",
3226
+ referencePress: f = !1,
3227
+ referencePressEvent: d = "pointerdown",
3228
+ ancestorScroll: h = !1,
3229
+ bubbles: u,
3230
+ capture: v
3231
+ } = t, p = jt(), O = me(typeof l == "function" ? l : () => !1), A = typeof l == "function" ? O : l, I = x.useRef(!1), y = x.useRef(!1), {
3232
+ escapeKey: T,
3233
+ outsidePress: b
3234
+ } = En(u), {
3235
+ escapeKey: k,
3236
+ outsidePress: H
3237
+ } = En(v), K = x.useRef(!1), J = me((L) => {
3238
+ var j;
3239
+ if (!r || !s || !a || L.key !== "Escape" || K.current)
3240
+ return;
3241
+ const V = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, M = p ? Ne(p.nodesRef.current, V) : [];
3242
+ if (!T && (L.stopPropagation(), M.length > 0)) {
3243
+ let R = !0;
3244
+ if (M.forEach((m) => {
3245
+ var w;
3246
+ if ((w = m.context) != null && w.open && !m.context.dataRef.current.__escapeKeyBubbles) {
3247
+ R = !1;
3248
+ return;
3249
+ }
3250
+ }), !R)
3251
+ return;
3252
+ }
3253
+ n(!1, Ar(L) ? L.nativeEvent : L, "escape-key");
3254
+ }), Z = me((L) => {
3255
+ var j;
3256
+ const V = () => {
3257
+ var M;
3258
+ J(L), (M = Ee(L)) == null || M.removeEventListener("keydown", V);
3259
+ };
3260
+ (j = Ee(L)) == null || j.addEventListener("keydown", V);
3261
+ }), G = me((L) => {
3262
+ var j;
3263
+ const V = I.current;
3264
+ I.current = !1;
3265
+ const M = y.current;
3266
+ if (y.current = !1, c === "click" && M || V || typeof A == "function" && !A(L))
3267
+ return;
3268
+ const R = Ee(L), m = "[" + Ze("inert") + "]", w = ce(o.floating).querySelectorAll(m);
3269
+ let F = Q(R) ? R : null;
3270
+ for (; F && !be(F); ) {
3271
+ const g = pe(F);
3272
+ if (be(g) || !Q(g))
3273
+ break;
3274
+ F = g;
3275
+ }
3276
+ if (w.length && Q(R) && !Pr(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
3277
+ !oe(R, o.floating) && // If the target root element contains none of the markers, then the
3278
+ // element was injected after the floating element rendered.
3279
+ Array.from(w).every((g) => !oe(F, g)))
3280
+ return;
3281
+ if (ne(R) && z) {
3282
+ const g = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, _ = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
3283
+ let N = _ && L.offsetX > R.clientWidth;
3284
+ if (_ && se(R).direction === "rtl" && (N = L.offsetX <= R.offsetWidth - R.clientWidth), N || g && L.offsetY > R.clientHeight)
3285
+ return;
3286
+ }
3287
+ const W = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, S = p && Ne(p.nodesRef.current, W).some((g) => {
3288
+ var _;
3289
+ return ht(L, (_ = g.context) == null ? void 0 : _.elements.floating);
3290
+ });
3291
+ if (ht(L, o.floating) || ht(L, o.domReference) || S)
3292
+ return;
3293
+ const P = p ? Ne(p.nodesRef.current, W) : [];
3294
+ if (P.length > 0) {
3295
+ let g = !0;
3296
+ if (P.forEach((_) => {
3297
+ var N;
3298
+ if ((N = _.context) != null && N.open && !_.context.dataRef.current.__outsidePressBubbles) {
3299
+ g = !1;
3300
+ return;
3301
+ }
3302
+ }), !g)
3303
+ return;
3304
+ }
3305
+ n(!1, L, "outside-press");
3306
+ }), B = me((L) => {
3307
+ var j;
3308
+ const V = () => {
3309
+ var M;
3310
+ G(L), (M = Ee(L)) == null || M.removeEventListener(c, V);
3311
+ };
3312
+ (j = Ee(L)) == null || j.addEventListener(c, V);
3313
+ });
3314
+ x.useEffect(() => {
3315
+ if (!r || !s)
3316
+ return;
3317
+ i.current.__escapeKeyBubbles = T, i.current.__outsidePressBubbles = b;
3318
+ let L = -1;
3319
+ function j(w) {
3320
+ n(!1, w, "ancestor-scroll");
3321
+ }
3322
+ function V() {
3323
+ window.clearTimeout(L), K.current = !0;
3324
+ }
3325
+ function M() {
3326
+ L = window.setTimeout(
3327
+ () => {
3328
+ K.current = !1;
3329
+ },
3330
+ // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
3331
+ // Only apply to WebKit for the test to remain 0ms.
3332
+ tt() ? 5 : 0
3333
+ );
3334
+ }
3335
+ const R = ce(o.floating);
3336
+ a && (R.addEventListener("keydown", k ? Z : J, k), R.addEventListener("compositionstart", V), R.addEventListener("compositionend", M)), A && R.addEventListener(c, H ? B : G, H);
3337
+ let m = [];
3338
+ return h && (Q(o.domReference) && (m = ve(o.domReference)), Q(o.floating) && (m = m.concat(ve(o.floating))), !Q(o.reference) && o.reference && o.reference.contextElement && (m = m.concat(ve(o.reference.contextElement)))), m = m.filter((w) => {
3339
+ var F;
3340
+ return w !== ((F = R.defaultView) == null ? void 0 : F.visualViewport);
3341
+ }), m.forEach((w) => {
3342
+ w.addEventListener("scroll", j, {
3343
+ passive: !0
3344
+ });
3345
+ }), () => {
3346
+ a && (R.removeEventListener("keydown", k ? Z : J, k), R.removeEventListener("compositionstart", V), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, H ? B : G, H), m.forEach((w) => {
3347
+ w.removeEventListener("scroll", j);
3348
+ }), window.clearTimeout(L);
3349
+ };
3350
+ }, [i, o, a, A, c, r, n, h, s, T, b, J, k, Z, G, H, B]), x.useEffect(() => {
3351
+ I.current = !1;
3352
+ }, [A, c]);
3353
+ const te = x.useMemo(() => ({
3354
+ onKeyDown: J,
3355
+ [ci[d]]: (L) => {
3356
+ f && n(!1, L.nativeEvent, "reference-press");
3357
+ }
3358
+ }), [J, n, f, d]), z = x.useMemo(() => ({
3359
+ onKeyDown: J,
3360
+ onMouseDown() {
3361
+ y.current = !0;
3362
+ },
3363
+ onMouseUp() {
3364
+ y.current = !0;
3365
+ },
3366
+ [li[c]]: () => {
3367
+ I.current = !0;
3368
+ }
3369
+ }), [J, c]);
3370
+ return x.useMemo(() => s ? {
3371
+ reference: te,
3372
+ floating: z
3373
+ } : {}, [s, te, z]);
3374
+ }
3375
+ function fi(e) {
3376
+ const {
3377
+ open: t = !1,
3378
+ onOpenChange: r,
3379
+ elements: n
3380
+ } = e, o = Jn(), i = x.useRef({}), [s] = x.useState(() => Ho()), a = Qn() != null;
3381
+ if (process.env.NODE_ENV !== "production") {
3382
+ const u = n.reference;
3383
+ u && !Q(u) && Uo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
3384
+ }
3385
+ const [l, c] = x.useState(n.reference), f = me((u, v, p) => {
3386
+ i.current.openEvent = u ? v : void 0, s.emit("openchange", {
3387
+ open: u,
3388
+ event: v,
3389
+ reason: p,
3390
+ nested: a
3391
+ }), r == null || r(u, v, p);
3392
+ }), d = x.useMemo(() => ({
3393
+ setPositionReference: c
3394
+ }), []), h = x.useMemo(() => ({
3395
+ reference: l || n.reference || null,
3396
+ floating: n.floating || null,
3397
+ domReference: n.reference
3398
+ }), [l, n.reference, n.floating]);
3399
+ return x.useMemo(() => ({
3400
+ dataRef: i,
3401
+ open: t,
3402
+ onOpenChange: f,
3403
+ elements: h,
3404
+ events: s,
3405
+ floatingId: o,
3406
+ refs: d
3407
+ }), [t, f, h, s, o, d]);
3408
+ }
3409
+ function di(e) {
3410
+ e === void 0 && (e = {});
3411
+ const {
3412
+ nodeId: t
3413
+ } = e, r = fi({
3414
+ ...e,
3415
+ elements: {
3416
+ reference: null,
3417
+ floating: null,
3418
+ ...e.elements
3419
+ }
3420
+ }), n = e.rootContext || r, o = n.elements, [i, s] = x.useState(null), [a, l] = x.useState(null), f = (o == null ? void 0 : o.domReference) || i, d = x.useRef(null), h = jt();
3421
+ de(() => {
3422
+ f && (d.current = f);
3423
+ }, [f]);
3424
+ const u = Lo({
3425
+ ...e,
3426
+ elements: {
3427
+ ...o,
3428
+ ...a && {
3429
+ reference: a
3430
+ }
3431
+ }
3432
+ }), v = x.useCallback((y) => {
3433
+ const T = Q(y) ? {
3434
+ getBoundingClientRect: () => y.getBoundingClientRect(),
3435
+ contextElement: y
3436
+ } : y;
3437
+ l(T), u.refs.setReference(T);
3438
+ }, [u.refs]), p = x.useCallback((y) => {
3439
+ (Q(y) || y === null) && (d.current = y, s(y)), (Q(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
3440
+ // `null` to support `positionReference` + an unstable `reference`
3441
+ // callback ref.
3442
+ y !== null && !Q(y)) && u.refs.setReference(y);
3443
+ }, [u.refs]), O = x.useMemo(() => ({
3444
+ ...u.refs,
3445
+ setReference: p,
3446
+ setPositionReference: v,
3447
+ domReference: d
3448
+ }), [u.refs, p, v]), A = x.useMemo(() => ({
3449
+ ...u.elements,
3450
+ domReference: f
3451
+ }), [u.elements, f]), I = x.useMemo(() => ({
3452
+ ...u,
3453
+ ...n,
3454
+ refs: O,
3455
+ elements: A,
3456
+ nodeId: t
3457
+ }), [u, O, A, t, n]);
3458
+ return de(() => {
3459
+ n.dataRef.current.floatingContext = I;
3460
+ const y = h == null ? void 0 : h.nodesRef.current.find((T) => T.id === t);
3461
+ y && (y.context = I);
3462
+ }), x.useMemo(() => ({
3463
+ ...u,
3464
+ context: I,
3465
+ refs: O,
3466
+ elements: A
3467
+ }), [u, O, A, I]);
3468
+ }
3469
+ const Rn = "active", Tn = "selected";
3470
+ function Et(e, t, r) {
3471
+ const n = /* @__PURE__ */ new Map(), o = r === "item";
3472
+ let i = e;
3473
+ if (o && e) {
3474
+ const {
3475
+ [Rn]: s,
3476
+ [Tn]: a,
3477
+ ...l
3478
+ } = e;
3479
+ i = l;
3480
+ }
3481
+ return {
3482
+ ...r === "floating" && {
3483
+ tabIndex: -1,
3484
+ [It]: ""
3485
+ },
3486
+ ...i,
3487
+ ...t.map((s) => {
3488
+ const a = s ? s[r] : null;
3489
+ return typeof a == "function" ? e ? a(e) : null : a;
3490
+ }).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((l) => {
3491
+ let [c, f] = l;
3492
+ if (!(o && [Rn, Tn].includes(c)))
3493
+ if (c.indexOf("on") === 0) {
3494
+ if (n.has(c) || n.set(c, []), typeof f == "function") {
3495
+ var d;
3496
+ (d = n.get(c)) == null || d.push(f), s[c] = function() {
3497
+ for (var h, u = arguments.length, v = new Array(u), p = 0; p < u; p++)
3498
+ v[p] = arguments[p];
3499
+ return (h = n.get(c)) == null ? void 0 : h.map((O) => O(...v)).find((O) => O !== void 0);
3500
+ };
3501
+ }
3502
+ } else
3503
+ s[c] = f;
3504
+ }), s), {})
3505
+ };
3506
+ }
3507
+ function pi(e) {
3508
+ e === void 0 && (e = []);
3509
+ const t = e.map((a) => a == null ? void 0 : a.reference), r = e.map((a) => a == null ? void 0 : a.floating), n = e.map((a) => a == null ? void 0 : a.item), o = x.useCallback(
3510
+ (a) => Et(a, e, "reference"),
3511
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3512
+ t
3513
+ ), i = x.useCallback(
3514
+ (a) => Et(a, e, "floating"),
3515
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3516
+ r
3517
+ ), s = x.useCallback(
3518
+ (a) => Et(a, e, "item"),
3519
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3520
+ n
3521
+ );
3522
+ return x.useMemo(() => ({
3523
+ getReferenceProps: o,
3524
+ getFloatingProps: i,
3525
+ getItemProps: s
3526
+ }), [o, i, s]);
3527
+ }
3528
+ const mi = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
3529
+ function hi(e, t) {
3530
+ var r;
3531
+ t === void 0 && (t = {});
3532
+ const {
3533
+ open: n,
3534
+ floatingId: o
3535
+ } = e, {
3536
+ enabled: i = !0,
3537
+ role: s = "dialog"
3538
+ } = t, a = (r = mi.get(s)) != null ? r : s, l = Jn(), f = Qn() != null, d = x.useMemo(() => a === "tooltip" || s === "label" ? {
3539
+ ["aria-" + (s === "label" ? "labelledby" : "describedby")]: n ? o : void 0
3540
+ } : {
3541
+ "aria-expanded": n ? "true" : "false",
3542
+ "aria-haspopup": a === "alertdialog" ? "dialog" : a,
3543
+ "aria-controls": n ? o : void 0,
3544
+ ...a === "listbox" && {
3545
+ role: "combobox"
3546
+ },
3547
+ ...a === "menu" && {
3548
+ id: l
3549
+ },
3550
+ ...a === "menu" && f && {
3551
+ role: "menuitem"
3552
+ },
3553
+ ...s === "select" && {
3554
+ "aria-autocomplete": "none"
3555
+ },
3556
+ ...s === "combobox" && {
3557
+ "aria-autocomplete": "list"
3558
+ }
3559
+ }, [a, o, f, n, l, s]), h = x.useMemo(() => {
3560
+ const v = {
3561
+ id: o,
3562
+ ...a && {
3563
+ role: a
3564
+ }
3565
+ };
3566
+ return a === "tooltip" || s === "label" ? v : {
3567
+ ...v,
3568
+ ...a === "menu" && {
3569
+ "aria-labelledby": l
3570
+ }
3571
+ };
3572
+ }, [a, o, l, s]), u = x.useCallback((v) => {
3573
+ let {
3574
+ active: p,
3575
+ selected: O
3576
+ } = v;
3577
+ const A = {
3578
+ role: "option",
3579
+ ...p && {
3580
+ id: o + "-option"
3581
+ }
3582
+ };
3583
+ switch (s) {
3584
+ case "select":
3585
+ return {
3586
+ ...A,
3587
+ "aria-selected": p && O
3588
+ };
3589
+ case "combobox":
3590
+ return {
3591
+ ...A,
3592
+ ...p && {
3593
+ "aria-selected": !0
3594
+ }
3595
+ };
3596
+ }
3597
+ return {};
3598
+ }, [o, s]);
3599
+ return x.useMemo(() => i ? {
3600
+ reference: d,
3601
+ floating: h,
3602
+ item: u
3603
+ } : {}, [i, d, h, u]);
3604
+ }
3605
+ function vi({ className: e, children: t, buttonText: r }) {
3606
+ const [n, o] = or(!1), { refs: i, floatingStyles: s, context: a } = di({
3607
+ open: n,
3608
+ onOpenChange: o,
3609
+ middleware: [Fo(16), jo(), $o()],
3610
+ whileElementsMounted: Ao,
3611
+ placement: "right"
3612
+ }), l = ai(a), c = ui(a), f = hi(a), { getReferenceProps: d, getFloatingProps: h } = pi([
3613
+ l,
3614
+ c,
3615
+ f
3616
+ ]);
3617
+ return /* @__PURE__ */ q(Ie, { children: [
3618
+ /* @__PURE__ */ E("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ E(Re, { text: r }) }),
3619
+ n && /* @__PURE__ */ E(si, { context: a, modal: !1, children: /* @__PURE__ */ E(
3620
+ "div",
3621
+ {
3622
+ ref: i.setFloating,
3623
+ style: s,
3624
+ ...h(),
3625
+ children: /* @__PURE__ */ E(gr, { children: t })
3626
+ }
3627
+ ) })
3628
+ ] });
3629
+ }
3630
+ const Bi = ({
3631
+ className: e,
3632
+ children: t,
3633
+ buttonText: r = "Menu button"
3634
+ }) => {
3635
+ const n = ee("rpf-menu-button", e);
3636
+ return /* @__PURE__ */ E(vi, { className: n, buttonText: r, children: t });
3637
+ }, Sn = (e) => e ? /* @__PURE__ */ E("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Cn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ q(Ie, { children: [
3638
+ t === "left" && r !== "" ? Sn(r) : null,
3639
+ e,
3640
+ t === "right" && r !== "" ? Sn(r) : null
3641
+ ] }), qi = ({
3642
+ text: e,
3643
+ href: t,
3644
+ icon: r = "",
3645
+ iconPosition: n = "left",
3646
+ danger: o,
3647
+ className: i,
3648
+ onClick: s
3649
+ }) => {
3650
+ const a = ee(
3651
+ "rpf-menu__item",
3652
+ { "rpf-menu__item--danger": o },
3653
+ i
3654
+ );
3655
+ return /* @__PURE__ */ E("li", { className: a, children: t ? /* @__PURE__ */ E("a", { href: t, children: /* @__PURE__ */ E(Cn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ E("button", { type: "button", onClick: s, children: /* @__PURE__ */ E(Cn, { text: e, iconPosition: n, icon: r }) }) });
3656
+ }, Vi = ({ text: e }) => /* @__PURE__ */ E("li", { className: "rpf-menu__title", children: /* @__PURE__ */ E("span", { children: e }) }), Yi = ({
1238
3657
  text: e = "",
1239
3658
  percent: t,
1240
- complete: s = !1,
3659
+ complete: r = !1,
1241
3660
  className: n
1242
- }) => /* @__PURE__ */ p(
3661
+ }) => /* @__PURE__ */ E(
1243
3662
  "div",
1244
3663
  {
1245
- className: M("rpf-progress-bar", {
1246
- "rpf-progress-bar--complete": s,
3664
+ className: ee("rpf-progress-bar", {
3665
+ "rpf-progress-bar--complete": r,
1247
3666
  className: n
1248
3667
  }),
1249
- children: /* @__PURE__ */ P("label", { className: "rpf-progress-bar__label", children: [
1250
- /* @__PURE__ */ p("span", { children: e }),
1251
- /* @__PURE__ */ p("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
3668
+ children: /* @__PURE__ */ q("label", { className: "rpf-progress-bar__label", children: [
3669
+ /* @__PURE__ */ E("span", { children: e }),
3670
+ /* @__PURE__ */ E("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
1252
3671
  ] })
1253
3672
  }
1254
- ), Tr = ({ children: e }) => /* @__PURE__ */ p("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ p("div", { className: "rpf-table-cell__content", children: e }) });
3673
+ ), Ui = ({ children: e }) => /* @__PURE__ */ E("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ E("div", { className: "rpf-table-cell__content", children: e }) });
1255
3674
  /**
1256
3675
  * @license lucide-react v0.553.0 - ISC
1257
3676
  *
1258
3677
  * This source code is licensed under the ISC license.
1259
3678
  * See the LICENSE file in the root directory of this source tree.
1260
3679
  */
1261
- const Xe = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ge = (e) => e.replace(
3680
+ const bi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yi = (e) => e.replace(
1262
3681
  /^([A-Z])|[\s-_]+(\w)/g,
1263
- (t, s, n) => n ? n.toUpperCase() : s.toLowerCase()
1264
- ), je = (e) => {
1265
- const t = Ge(e);
3682
+ (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
3683
+ ), _n = (e) => {
3684
+ const t = yi(e);
1266
3685
  return t.charAt(0).toUpperCase() + t.slice(1);
1267
- }, qe = (...e) => e.filter((t, s, n) => !!t && t.trim() !== "" && n.indexOf(t) === s).join(" ").trim(), Qe = (e) => {
3686
+ }, nr = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), gi = (e) => {
1268
3687
  for (const t in e)
1269
3688
  if (t.startsWith("aria-") || t === "role" || t === "title")
1270
3689
  return !0;
@@ -1275,7 +3694,7 @@ const Xe = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ge = (
1275
3694
  * This source code is licensed under the ISC license.
1276
3695
  * See the LICENSE file in the root directory of this source tree.
1277
3696
  */
1278
- var er = {
3697
+ var wi = {
1279
3698
  xmlns: "http://www.w3.org/2000/svg",
1280
3699
  width: 24,
1281
3700
  height: 24,
@@ -1292,32 +3711,32 @@ var er = {
1292
3711
  * This source code is licensed under the ISC license.
1293
3712
  * See the LICENSE file in the root directory of this source tree.
1294
3713
  */
1295
- const rr = ke(
3714
+ const xi = kt(
1296
3715
  ({
1297
3716
  color: e = "currentColor",
1298
3717
  size: t = 24,
1299
- strokeWidth: s = 2,
3718
+ strokeWidth: r = 2,
1300
3719
  absoluteStrokeWidth: n,
1301
- className: a = "",
1302
- children: r,
1303
- iconNode: c,
1304
- ...i
1305
- }, d) => ye(
3720
+ className: o = "",
3721
+ children: i,
3722
+ iconNode: s,
3723
+ ...a
3724
+ }, l) => Tt(
1306
3725
  "svg",
1307
3726
  {
1308
- ref: d,
1309
- ...er,
3727
+ ref: l,
3728
+ ...wi,
1310
3729
  width: t,
1311
3730
  height: t,
1312
3731
  stroke: e,
1313
- strokeWidth: n ? Number(s) * 24 / Number(t) : s,
1314
- className: qe("lucide", a),
1315
- ...!r && !Qe(i) && { "aria-hidden": "true" },
1316
- ...i
3732
+ strokeWidth: n ? Number(r) * 24 / Number(t) : r,
3733
+ className: nr("lucide", o),
3734
+ ...!i && !gi(a) && { "aria-hidden": "true" },
3735
+ ...a
1317
3736
  },
1318
3737
  [
1319
- ...c.map(([h, y]) => ye(h, y)),
1320
- ...Array.isArray(r) ? r : [r]
3738
+ ...s.map(([c, f]) => Tt(c, f)),
3739
+ ...Array.isArray(i) ? i : [i]
1321
3740
  ]
1322
3741
  )
1323
3742
  );
@@ -1327,20 +3746,20 @@ const rr = ke(
1327
3746
  * This source code is licensed under the ISC license.
1328
3747
  * See the LICENSE file in the root directory of this source tree.
1329
3748
  */
1330
- const be = (e, t) => {
1331
- const s = ke(
1332
- ({ className: n, ...a }, r) => ye(rr, {
1333
- ref: r,
3749
+ const Bt = (e, t) => {
3750
+ const r = kt(
3751
+ ({ className: n, ...o }, i) => Tt(xi, {
3752
+ ref: i,
1334
3753
  iconNode: t,
1335
- className: qe(
1336
- `lucide-${Xe(je(e))}`,
3754
+ className: nr(
3755
+ `lucide-${bi(_n(e))}`,
1337
3756
  `lucide-${e}`,
1338
3757
  n
1339
3758
  ),
1340
- ...a
3759
+ ...o
1341
3760
  })
1342
3761
  );
1343
- return s.displayName = je(e), s;
3762
+ return r.displayName = _n(e), r;
1344
3763
  };
1345
3764
  /**
1346
3765
  * @license lucide-react v0.553.0 - ISC
@@ -1348,109 +3767,114 @@ const be = (e, t) => {
1348
3767
  * This source code is licensed under the ISC license.
1349
3768
  * See the LICENSE file in the root directory of this source tree.
1350
3769
  */
1351
- const tr = [
3770
+ const Ei = [
1352
3771
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
1353
3772
  ["path", { d: "M7 20V4", key: "1yoxec" }],
1354
3773
  ["path", { d: "m21 8-4-4-4 4", key: "1c9v7m" }],
1355
3774
  ["path", { d: "M17 4v16", key: "7dpous" }]
1356
- ], nr = be("arrow-down-up", tr);
3775
+ ], Ri = Bt("arrow-down-up", Ei);
1357
3776
  /**
1358
3777
  * @license lucide-react v0.553.0 - ISC
1359
3778
  *
1360
3779
  * This source code is licensed under the ISC license.
1361
3780
  * See the LICENSE file in the root directory of this source tree.
1362
3781
  */
1363
- const ar = [
3782
+ const Ti = [
1364
3783
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
1365
3784
  ["path", { d: "M7 20V4", key: "1yoxec" }],
1366
3785
  ["path", { d: "M11 4h10", key: "1w87gc" }],
1367
3786
  ["path", { d: "M11 8h7", key: "djye34" }],
1368
3787
  ["path", { d: "M11 12h4", key: "q8tih4" }]
1369
- ], or = be("arrow-down-wide-narrow", ar);
3788
+ ], Si = Bt("arrow-down-wide-narrow", Ti);
1370
3789
  /**
1371
3790
  * @license lucide-react v0.553.0 - ISC
1372
3791
  *
1373
3792
  * This source code is licensed under the ISC license.
1374
3793
  * See the LICENSE file in the root directory of this source tree.
1375
3794
  */
1376
- const sr = [
3795
+ const Ci = [
1377
3796
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
1378
3797
  ["path", { d: "M7 4v16", key: "1glfcx" }],
1379
3798
  ["path", { d: "M11 12h4", key: "q8tih4" }],
1380
3799
  ["path", { d: "M11 16h7", key: "uosisv" }],
1381
3800
  ["path", { d: "M11 20h10", key: "jvxblo" }]
1382
- ], ir = be("arrow-up-narrow-wide", sr), cr = (e, t) => {
3801
+ ], _i = Bt("arrow-up-narrow-wide", Ci), Oi = (e, t) => {
1383
3802
  if (e)
1384
3803
  return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
1385
- }, wr = ({
3804
+ }, Hi = ({
1386
3805
  sortDirection: e,
1387
3806
  children: t,
1388
- onClick: s
3807
+ onClick: r
1389
3808
  }) => {
1390
- const n = !!s, a = e === "up" ? ir : e === "down" ? or : nr, r = cr(n, e);
1391
- return /* @__PURE__ */ p("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": r, children: /* @__PURE__ */ p("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ P("button", { className: "rpf-table-cell__sort-header", onClick: s, children: [
3809
+ const n = !!r, o = e === "up" ? _i : e === "down" ? Si : Ri, i = Oi(n, e);
3810
+ return /* @__PURE__ */ E("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ E("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ q("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
1392
3811
  t,
1393
- /* @__PURE__ */ p(a, { size: 20 })
1394
- ] }) : /* @__PURE__ */ p(me, { children: t }) }) });
1395
- }, Sr = ({ headerRow: e, bodyRows: t, fullWidth: s }) => /* @__PURE__ */ p(
3812
+ /* @__PURE__ */ E(o, { size: 20 })
3813
+ ] }) : /* @__PURE__ */ E(Ie, { children: t }) }) });
3814
+ }, Ki = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ E(
1396
3815
  "div",
1397
3816
  {
1398
3817
  "data-testid": "table-container",
1399
- className: M("rpf-table", { "rpf-table--full-width": s }),
1400
- children: /* @__PURE__ */ P(
3818
+ className: ee("rpf-table", { "rpf-table--full-width": r }),
3819
+ children: /* @__PURE__ */ q(
1401
3820
  "table",
1402
3821
  {
1403
- className: M("rpf-table__table", {
1404
- "rpf-table__table--full-width": s
3822
+ className: ee("rpf-table__table", {
3823
+ "rpf-table__table--full-width": r
1405
3824
  }),
1406
3825
  children: [
1407
- /* @__PURE__ */ p("thead", { children: /* @__PURE__ */ p("tr", { className: "rpf-table-row", children: e }) }),
1408
- /* @__PURE__ */ p("tbody", { children: t.map((n, a) => /* @__PURE__ */ p("tr", { className: "rpf-table-row", children: n }, a)) })
3826
+ /* @__PURE__ */ E("thead", { children: /* @__PURE__ */ E("tr", { className: "rpf-table-row", children: e }) }),
3827
+ /* @__PURE__ */ E("tbody", { children: t.map((n, o) => /* @__PURE__ */ E("tr", { className: "rpf-table-row", children: n }, o)) })
1409
3828
  ]
1410
3829
  }
1411
3830
  )
1412
3831
  }
1413
- ), Cr = ({
3832
+ ), zi = ({
1414
3833
  text: e,
1415
3834
  variant: t,
1416
- secondary: s,
3835
+ secondary: r,
1417
3836
  icon: n,
1418
- iconPosition: a
3837
+ iconPosition: o
1419
3838
  }) => {
1420
- const r = n ? /* @__PURE__ */ p("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
1421
- n && !a && (a = "left");
1422
- const c = t && t !== "default" ? `rpf-tag--${t}` : null;
1423
- return /* @__PURE__ */ P(
3839
+ const i = n ? /* @__PURE__ */ E("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
3840
+ n && !o && (o = "left");
3841
+ const s = t && t !== "default" ? `rpf-tag--${t}` : null;
3842
+ return /* @__PURE__ */ q(
1424
3843
  "span",
1425
3844
  {
1426
- className: M("rpf-tag", c, {
1427
- "rpf-tag--secondary": s
3845
+ className: ee("rpf-tag", s, {
3846
+ "rpf-tag--secondary": r
1428
3847
  }),
1429
3848
  children: [
1430
- a === "left" && r,
3849
+ o === "left" && i,
1431
3850
  e,
1432
- a === "right" && r
3851
+ o === "right" && i
1433
3852
  ]
1434
3853
  }
1435
3854
  );
1436
3855
  };
1437
3856
  export {
1438
- Ze as Accordion,
1439
- ur as Alert,
1440
- B as Button,
1441
- pr as CheckboxInput,
1442
- dr as Fieldset,
1443
- ve as InputField,
1444
- yr as InputLabel,
1445
- gr as Modal,
1446
- Er as ProgressBar,
1447
- mr as RadioInput,
1448
- hr as SearchInput,
1449
- vr as SelectInput,
1450
- Sr as Table,
1451
- Tr as TableBodyCell,
1452
- wr as TableHeaderCell,
1453
- Cr as Tag,
1454
- _r as TextInput,
1455
- br as TextareaInput
3857
+ vr as Accordion,
3858
+ Ni as Alert,
3859
+ Re as Button,
3860
+ Ii as CheckboxInput,
3861
+ ki as Fieldset,
3862
+ Dt as InputField,
3863
+ Mi as InputLabel,
3864
+ gr as Menu,
3865
+ Bi as MenuButton,
3866
+ qi as MenuItem,
3867
+ Vi as MenuTitle,
3868
+ Wi as Modal,
3869
+ Yi as ProgressBar,
3870
+ Di as RadioInput,
3871
+ Li as SearchInput,
3872
+ Fi as SelectInput,
3873
+ br as Switch,
3874
+ Ki as Table,
3875
+ Ui as TableBodyCell,
3876
+ Hi as TableHeaderCell,
3877
+ zi as Tag,
3878
+ ji as TextInput,
3879
+ $i as TextareaInput
1456
3880
  };