@jigowatts/jigowatts-ui 0.0.1-12

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 (199) hide show
  1. package/README.md +50 -0
  2. package/dist/AccordionSummary-B4zooGpd.js +831 -0
  3. package/dist/ButtonBase-pxtIu13Q.js +866 -0
  4. package/dist/DateTimePicker-DJSOr5wM.js +4653 -0
  5. package/dist/ListContext-DOVwHqy-.js +180 -0
  6. package/dist/MenuItem-yBaT3_db.js +470 -0
  7. package/dist/Paper-COvYqxZa.js +522 -0
  8. package/dist/Tabs-D3lJRumZ.js +1085 -0
  9. package/dist/_commonjsHelpers-CT_km90n.js +30 -0
  10. package/dist/assets/index.css +1 -0
  11. package/dist/assets/index10.css +1 -0
  12. package/dist/assets/index11.css +1 -0
  13. package/dist/assets/index12.css +1 -0
  14. package/dist/assets/index13.css +1 -0
  15. package/dist/assets/index14.css +1 -0
  16. package/dist/assets/index15.css +1 -0
  17. package/dist/assets/index16.css +1 -0
  18. package/dist/assets/index17.css +1 -0
  19. package/dist/assets/index18.css +1 -0
  20. package/dist/assets/index19.css +1 -0
  21. package/dist/assets/index2.css +1 -0
  22. package/dist/assets/index20.css +1 -0
  23. package/dist/assets/index21.css +1 -0
  24. package/dist/assets/index22.css +1 -0
  25. package/dist/assets/index23.css +1 -0
  26. package/dist/assets/index24.css +1 -0
  27. package/dist/assets/index25.css +1 -0
  28. package/dist/assets/index26.css +1 -0
  29. package/dist/assets/index27.css +1 -0
  30. package/dist/assets/index3.css +1 -0
  31. package/dist/assets/index4.css +1 -0
  32. package/dist/assets/index5.css +1 -0
  33. package/dist/assets/index6.css +1 -0
  34. package/dist/assets/index7.css +1 -0
  35. package/dist/assets/index8.css +1 -0
  36. package/dist/assets/index9.css +1 -0
  37. package/dist/browser-DxfwT6rn.js +656 -0
  38. package/dist/components/Button/index.d.ts +28 -0
  39. package/dist/components/Button/index.js +18 -0
  40. package/dist/components/Button/index.test.d.ts +1 -0
  41. package/dist/components/Button/index.test.js +23 -0
  42. package/dist/components/Card/index.d.ts +16 -0
  43. package/dist/components/Card/index.js +37 -0
  44. package/dist/components/Card/index.test.d.ts +1 -0
  45. package/dist/components/Card/index.test.js +35 -0
  46. package/dist/components/CustomLink/index.d.ts +11 -0
  47. package/dist/components/CustomLink/index.js +1670 -0
  48. package/dist/components/CustomLink/index.test.d.ts +1 -0
  49. package/dist/components/CustomLink/index.test.js +40 -0
  50. package/dist/components/DataTable/index.d.ts +28 -0
  51. package/dist/components/DataTable/index.js +137 -0
  52. package/dist/components/DataTable/index.test.d.ts +1 -0
  53. package/dist/components/DataTable/index.test.js +3010 -0
  54. package/dist/components/DatePickerController/index.d.ts +16 -0
  55. package/dist/components/DatePickerController/index.js +83 -0
  56. package/dist/components/DatePickerController/index.test.d.ts +1 -0
  57. package/dist/components/DatePickerController/index.test.js +24 -0
  58. package/dist/components/ErrorMessage/index.d.ts +5 -0
  59. package/dist/components/ErrorMessage/index.js +11 -0
  60. package/dist/components/ErrorMessage/index.test.d.ts +1 -0
  61. package/dist/components/ErrorMessage/index.test.js +17 -0
  62. package/dist/components/EvseStateLabel/index.d.ts +5 -0
  63. package/dist/components/EvseStateLabel/index.js +36 -0
  64. package/dist/components/FlexButtons/index.d.ts +9 -0
  65. package/dist/components/FlexButtons/index.js +13 -0
  66. package/dist/components/Form/index.d.ts +8 -0
  67. package/dist/components/Form/index.js +11 -0
  68. package/dist/components/Form/index.test.d.ts +1 -0
  69. package/dist/components/Form/index.test.js +25 -0
  70. package/dist/components/FormItem/index.d.ts +9 -0
  71. package/dist/components/FormItem/index.js +19 -0
  72. package/dist/components/FormItem/index.test.d.ts +1 -0
  73. package/dist/components/FormItem/index.test.js +15 -0
  74. package/dist/components/FormTitle/index.d.ts +5 -0
  75. package/dist/components/FormTitle/index.js +11 -0
  76. package/dist/components/FormTitle/index.test.d.ts +1 -0
  77. package/dist/components/FormTitle/index.test.js +15 -0
  78. package/dist/components/Input/index.d.ts +15 -0
  79. package/dist/components/Input/index.js +39 -0
  80. package/dist/components/Input/index.test.d.ts +1 -0
  81. package/dist/components/Input/index.test.js +39 -0
  82. package/dist/components/InputController/index.d.ts +20 -0
  83. package/dist/components/InputController/index.js +81 -0
  84. package/dist/components/InputController/index.test.d.ts +1 -0
  85. package/dist/components/InputController/index.test.js +56 -0
  86. package/dist/components/InputGroup/index.d.ts +7 -0
  87. package/dist/components/InputGroup/index.js +11 -0
  88. package/dist/components/InputGroup/index.test.d.ts +1 -0
  89. package/dist/components/InputGroup/index.test.js +15 -0
  90. package/dist/components/Label/index.d.ts +7 -0
  91. package/dist/components/Label/index.js +14 -0
  92. package/dist/components/Label/index.test.d.ts +1 -0
  93. package/dist/components/Label/index.test.js +25 -0
  94. package/dist/components/LabeledContent/index.d.ts +15 -0
  95. package/dist/components/LabeledContent/index.js +28 -0
  96. package/dist/components/LabeledContent/index.test.d.ts +1 -0
  97. package/dist/components/LabeledContent/index.test.js +19 -0
  98. package/dist/components/LoadingOverlay/index.d.ts +2 -0
  99. package/dist/components/LoadingOverlay/index.js +134 -0
  100. package/dist/components/LoadingOverlay/index.test.d.ts +1 -0
  101. package/dist/components/LoadingOverlay/index.test.js +12 -0
  102. package/dist/components/Map/index.d.ts +8 -0
  103. package/dist/components/Map/index.js +6575 -0
  104. package/dist/components/MaxWidthContainer/index.d.ts +13 -0
  105. package/dist/components/MaxWidthContainer/index.js +15 -0
  106. package/dist/components/MaxWidthContainer/index.test.d.ts +1 -0
  107. package/dist/components/MaxWidthContainer/index.test.js +24 -0
  108. package/dist/components/NumericFieldController/index.d.ts +53 -0
  109. package/dist/components/NumericFieldController/index.js +620 -0
  110. package/dist/components/NumericFieldController/index.test.d.ts +1 -0
  111. package/dist/components/NumericFieldController/index.test.js +24 -0
  112. package/dist/components/OfflineLabel/index.d.ts +5 -0
  113. package/dist/components/OfflineLabel/index.js +34 -0
  114. package/dist/components/PageSizeSelector/index.d.ts +15 -0
  115. package/dist/components/PageSizeSelector/index.js +43 -0
  116. package/dist/components/Pagination/index.d.ts +9 -0
  117. package/dist/components/Pagination/index.js +7 -0
  118. package/dist/components/Pagination/index.test.d.ts +1 -0
  119. package/dist/components/Pagination/index.test.js +34 -0
  120. package/dist/components/PasswordInputController/index.d.ts +17 -0
  121. package/dist/components/PasswordInputController/index.js +78 -0
  122. package/dist/components/PasswordInputController/index.test.d.ts +1 -0
  123. package/dist/components/PasswordInputController/index.test.js +37 -0
  124. package/dist/components/RadioButton/index.d.ts +13 -0
  125. package/dist/components/RadioButton/index.js +7 -0
  126. package/dist/components/RadioButton/index.test.d.ts +1 -0
  127. package/dist/components/RadioButton/index.test.js +38 -0
  128. package/dist/components/RadioGroupController/index.d.ts +15 -0
  129. package/dist/components/RadioGroupController/index.js +48 -0
  130. package/dist/components/RadioGroupController/index.test.d.ts +1 -0
  131. package/dist/components/RadioGroupController/index.test.js +48 -0
  132. package/dist/components/RangeDatePicker/index.d.ts +14 -0
  133. package/dist/components/RangeDatePicker/index.js +1594 -0
  134. package/dist/components/RangeDatePickerController/index.d.ts +21 -0
  135. package/dist/components/RangeDatePickerController/index.js +123 -0
  136. package/dist/components/RangeDatePickerController/index.test.d.ts +1 -0
  137. package/dist/components/RangeDatePickerController/index.test.js +24 -0
  138. package/dist/components/ReportCard/index.d.ts +12 -0
  139. package/dist/components/ReportCard/index.js +18 -0
  140. package/dist/components/ReportCard/index.test.d.ts +1 -0
  141. package/dist/components/ReportCard/index.test.js +27 -0
  142. package/dist/components/ReportChart/index.d.ts +22 -0
  143. package/dist/components/ReportChart/index.js +23101 -0
  144. package/dist/components/ScrollableDialog/index.d.ts +19 -0
  145. package/dist/components/ScrollableDialog/index.js +42 -0
  146. package/dist/components/ScrollableDialog/index.test.d.ts +1 -0
  147. package/dist/components/ScrollableDialog/index.test.js +59 -0
  148. package/dist/components/SearchForm/index.d.ts +13 -0
  149. package/dist/components/SearchForm/index.js +86 -0
  150. package/dist/components/SelectBox/index.d.ts +18 -0
  151. package/dist/components/SelectBox/index.js +7 -0
  152. package/dist/components/SelectBox/index.test.d.ts +1 -0
  153. package/dist/components/SelectBox/index.test.js +34 -0
  154. package/dist/components/SelectBoxController/index.d.ts +20 -0
  155. package/dist/components/SelectBoxController/index.js +87 -0
  156. package/dist/components/SelectBoxController/index.test.d.ts +1 -0
  157. package/dist/components/SelectBoxController/index.test.js +52 -0
  158. package/dist/components/SubMenu/index.d.ts +22 -0
  159. package/dist/components/SubMenu/index.js +278 -0
  160. package/dist/components/SubMenu/index.test.d.ts +1 -0
  161. package/dist/components/SubMenu/index.test.js +41 -0
  162. package/dist/components/Tabs/index.d.ts +21 -0
  163. package/dist/components/Tabs/index.js +100 -0
  164. package/dist/components/Tabs/index.test.d.ts +1 -0
  165. package/dist/components/Tabs/index.test.js +24 -0
  166. package/dist/components/Textarea/index.d.ts +18 -0
  167. package/dist/components/Textarea/index.js +34 -0
  168. package/dist/components/Textarea/index.test.d.ts +1 -0
  169. package/dist/components/Textarea/index.test.js +25 -0
  170. package/dist/components/ToggleButton/index.d.ts +16 -0
  171. package/dist/components/ToggleButton/index.js +39 -0
  172. package/dist/components/ToggleButton/index.test.d.ts +1 -0
  173. package/dist/components/ToggleButton/index.test.js +49 -0
  174. package/dist/constants/datetime.d.ts +2 -0
  175. package/dist/constants/datetime.js +5 -0
  176. package/dist/createSvgIcon-B53UOwxg.js +183 -0
  177. package/dist/createSvgIcon-Dj8zNxRS.js +72 -0
  178. package/dist/index-BLPOOjNr.js +184 -0
  179. package/dist/index-BOjtnFU5.js +34 -0
  180. package/dist/index-Bs3JCwgu.js +689 -0
  181. package/dist/index-CICI7n5Y.js +19688 -0
  182. package/dist/index-CQDJfJT1.js +50 -0
  183. package/dist/index-C_i0-R5C.js +393 -0
  184. package/dist/index-DWRHnq8_.js +42 -0
  185. package/dist/index-Di2gTfPF.js +25175 -0
  186. package/dist/index-VF82hRp0.js +2522 -0
  187. package/dist/index-kvi6aotO.js +39 -0
  188. package/dist/index.d.ts +38 -0
  189. package/dist/index.esm-ChwJSgnF.js +1052 -0
  190. package/dist/index.js +77 -0
  191. package/dist/isEqual-BBhdD79C.js +667 -0
  192. package/dist/mergeSlotProps-J197zKan.js +63 -0
  193. package/dist/react.esm-C8amP77L.js +11182 -0
  194. package/dist/styled-CWju4EfZ.js +2702 -0
  195. package/dist/unsupportedProp-DZaWZqWQ.js +30 -0
  196. package/dist/useControlled-BQCJRJNJ.js +64 -0
  197. package/dist/useIsFocusVisible-BxB-Hdhb.js +124 -0
  198. package/dist/useSlotProps-Bh7akxXV.js +33 -0
  199. package/package.json +360 -0
@@ -0,0 +1,2522 @@
1
+ import { g as J, c as ce } from "./_commonjsHelpers-CT_km90n.js";
2
+ import { _ as _t, a as Bt, i as qt } from "./isEqual-BBhdD79C.js";
3
+ import { e as Ft, c as Be } from "./react.esm-C8amP77L.js";
4
+ import { a as Gt, b as Ut } from "./browser-DxfwT6rn.js";
5
+ var Wt = (e) => {
6
+ const t = e.match(/^[ \t]*(?=\S)/gm);
7
+ return t ? t.reduce((n, r) => Math.min(n, r.length), 1 / 0) : 0;
8
+ };
9
+ const Xt = Wt;
10
+ var zt = (e) => {
11
+ const t = Xt(e);
12
+ if (t === 0)
13
+ return e;
14
+ const n = new RegExp(`^[ \\t]{${t}}`, "gm");
15
+ return e.replace(n, "");
16
+ }, Kt = (e, t = 1, n) => {
17
+ if (n = {
18
+ indent: " ",
19
+ includeEmptyLines: !1,
20
+ ...n
21
+ }, typeof e != "string")
22
+ throw new TypeError(
23
+ `Expected \`input\` to be a \`string\`, got \`${typeof e}\``
24
+ );
25
+ if (typeof t != "number")
26
+ throw new TypeError(
27
+ `Expected \`count\` to be a \`number\`, got \`${typeof t}\``
28
+ );
29
+ if (typeof n.indent != "string")
30
+ throw new TypeError(
31
+ `Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``
32
+ );
33
+ if (t === 0)
34
+ return e;
35
+ const r = n.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
36
+ return e.replace(r, n.indent.repeat(t));
37
+ };
38
+ const Yt = zt, Qt = Kt;
39
+ var Jt = (e, t = 0, n) => Qt(Yt(e), t, n);
40
+ const Re = /* @__PURE__ */ J(Jt);
41
+ function qe(e) {
42
+ Object.defineProperty(e, "__esModule", { value: !0, configurable: !0 });
43
+ }
44
+ function Ae(e, t, n, r) {
45
+ Object.defineProperty(e, t, { get: n, set: r, enumerable: !0, configurable: !0 });
46
+ }
47
+ var Fe = {};
48
+ qe(Fe);
49
+ Ae(Fe, "default", () => Ge);
50
+ class Ge extends Error {
51
+ constructor(t, n, r, i, s) {
52
+ super(t + ":" + r + ":" + i + ": " + n), this.reason = n, this.filename = t, this.line = r, this.column = i, this.source = s;
53
+ }
54
+ }
55
+ var Ue = {};
56
+ qe(Ue);
57
+ Ae(Ue, "default", () => We);
58
+ class We {
59
+ constructor(t, n, r) {
60
+ this.start = t, this.end = n, this.source = r;
61
+ }
62
+ }
63
+ var Zt = {};
64
+ Ae(Zt, "CssTypes", () => S);
65
+ var S;
66
+ (function(e) {
67
+ e.stylesheet = "stylesheet", e.rule = "rule", e.declaration = "declaration", e.comment = "comment", e.container = "container", e.charset = "charset", e.document = "document", e.customMedia = "custom-media", e.fontFace = "font-face", e.host = "host", e.import = "import", e.keyframes = "keyframes", e.keyframe = "keyframe", e.layer = "layer", e.media = "media", e.namespace = "namespace", e.page = "page", e.supports = "supports";
68
+ })(S || (S = {}));
69
+ const fe = /\/\*[^]*?(?:\*\/|$)/g, en = (e, t) => {
70
+ t = t || {};
71
+ let n = 1, r = 1;
72
+ function i(c) {
73
+ const a = c.match(/\n/g);
74
+ a && (n += a.length);
75
+ const p = c.lastIndexOf(`
76
+ `);
77
+ r = ~p ? c.length - p : r + c.length;
78
+ }
79
+ function s() {
80
+ const c = {
81
+ line: n,
82
+ column: r
83
+ };
84
+ return function(a) {
85
+ return a.position = new We(c, {
86
+ line: n,
87
+ column: r
88
+ }, (t == null ? void 0 : t.source) || ""), y(), a;
89
+ };
90
+ }
91
+ const l = [];
92
+ function u(c) {
93
+ const a = new Ge((t == null ? void 0 : t.source) || "", c, n, r, e);
94
+ if (t != null && t.silent)
95
+ l.push(a);
96
+ else
97
+ throw a;
98
+ }
99
+ function f() {
100
+ const c = b();
101
+ return {
102
+ type: S.stylesheet,
103
+ stylesheet: {
104
+ source: t == null ? void 0 : t.source,
105
+ rules: c,
106
+ parsingErrors: l
107
+ }
108
+ };
109
+ }
110
+ function d() {
111
+ return h(/^{\s*/);
112
+ }
113
+ function m() {
114
+ return h(/^}/);
115
+ }
116
+ function b() {
117
+ let c;
118
+ const a = [];
119
+ for (y(), v(a); e.length && e.charAt(0) !== "}" && (c = Pt() || Mt()); )
120
+ c && (a.push(c), v(a));
121
+ return a;
122
+ }
123
+ function h(c) {
124
+ const a = c.exec(e);
125
+ if (!a)
126
+ return;
127
+ const p = a[0];
128
+ return i(p), e = e.slice(p.length), a;
129
+ }
130
+ function y() {
131
+ h(/^\s*/);
132
+ }
133
+ function v(c) {
134
+ let a;
135
+ for (c = c || []; a = L(); )
136
+ a && c.push(a);
137
+ return c;
138
+ }
139
+ function L() {
140
+ const c = s();
141
+ if (e.charAt(0) !== "/" || e.charAt(1) !== "*")
142
+ return;
143
+ const a = h(/^\/\*[^]*?\*\//);
144
+ return a ? c({
145
+ type: S.comment,
146
+ comment: a[0].slice(2, -2)
147
+ }) : u("End of comment missing");
148
+ }
149
+ function C(c, a, p) {
150
+ let g = a + 1, x = !1, B = c.indexOf(")", g);
151
+ for (; !x && B !== -1; ) {
152
+ const q = c.indexOf("(", g);
153
+ q !== -1 && q < B ? (g = C(c, q + 1) + 1, B = c.indexOf(")", g)) : x = !0;
154
+ }
155
+ return x && B !== -1 ? B : -1;
156
+ }
157
+ function o() {
158
+ const c = h(/^([^{]+)/);
159
+ if (!c)
160
+ return;
161
+ let a = I(c[0]).replace(fe, "");
162
+ if (a.indexOf(",") === -1)
163
+ return [
164
+ a
165
+ ];
166
+ let p = 0, g = a.indexOf("(", p);
167
+ for (; g !== -1; ) {
168
+ const x = C(a, g);
169
+ if (x === -1)
170
+ break;
171
+ p = x + 1, a = a.substring(0, g) + a.substring(g, x).replace(/,/g, "‌") + a.substring(x), g = a.indexOf("(", p);
172
+ }
173
+ return a = a.replace(/("|')(?:\\\1|.)*?\1/g, (x) => x.replace(/,/g, "‌")), a.split(",").map((x) => I(x.replace(/\u200C/g, ",")));
174
+ }
175
+ function w() {
176
+ const c = s(), a = h(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
177
+ if (!a)
178
+ return;
179
+ const p = I(a[0]);
180
+ if (!h(/^:\s*/))
181
+ return u("property missing ':'");
182
+ const g = h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/), x = c({
183
+ type: S.declaration,
184
+ property: p.replace(fe, ""),
185
+ value: g ? I(g[0]).replace(fe, "") : ""
186
+ });
187
+ return h(/^[;\s]*/), x;
188
+ }
189
+ function $() {
190
+ const c = [];
191
+ if (!d())
192
+ return u("missing '{'");
193
+ v(c);
194
+ let a;
195
+ for (; a = w(); )
196
+ a && (c.push(a), v(c));
197
+ return m() ? c : u("missing '}'");
198
+ }
199
+ function H() {
200
+ let c;
201
+ const a = [], p = s();
202
+ for (; c = h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
203
+ a.push(c[1]), h(/^,\s*/);
204
+ if (a.length)
205
+ return p({
206
+ type: S.keyframe,
207
+ values: a,
208
+ declarations: $() || []
209
+ });
210
+ }
211
+ function T() {
212
+ const c = s(), a = h(/^@([-\w]+)?keyframes\s*/);
213
+ if (!a)
214
+ return;
215
+ const p = a[1], g = h(/^([-\w]+)\s*/);
216
+ if (!g)
217
+ return u("@keyframes missing name");
218
+ const x = g[1];
219
+ if (!d())
220
+ return u("@keyframes missing '{'");
221
+ let B, q = v();
222
+ for (; B = H(); )
223
+ q.push(B), q = q.concat(v());
224
+ return m() ? c({
225
+ type: S.keyframes,
226
+ name: x,
227
+ vendor: p,
228
+ keyframes: q
229
+ }) : u("@keyframes missing '}'");
230
+ }
231
+ function D() {
232
+ const c = s(), a = h(/^@supports *([^{]+)/);
233
+ if (!a)
234
+ return;
235
+ const p = I(a[1]);
236
+ if (!d())
237
+ return u("@supports missing '{'");
238
+ const g = v().concat(b());
239
+ return m() ? c({
240
+ type: S.supports,
241
+ supports: p,
242
+ rules: g
243
+ }) : u("@supports missing '}'");
244
+ }
245
+ function V() {
246
+ const c = s();
247
+ if (!h(/^@host\s*/))
248
+ return;
249
+ if (!d())
250
+ return u("@host missing '{'");
251
+ const p = v().concat(b());
252
+ return m() ? c({
253
+ type: S.host,
254
+ rules: p
255
+ }) : u("@host missing '}'");
256
+ }
257
+ function P() {
258
+ const c = s(), a = h(/^@container *([^{]+)/);
259
+ if (!a)
260
+ return;
261
+ const p = I(a[1]);
262
+ if (!d())
263
+ return u("@container missing '{'");
264
+ const g = v().concat(b());
265
+ return m() ? c({
266
+ type: S.container,
267
+ container: p,
268
+ rules: g
269
+ }) : u("@container missing '}'");
270
+ }
271
+ function O() {
272
+ const c = s(), a = h(/^@layer *([^{;@]+)/);
273
+ if (!a)
274
+ return;
275
+ const p = I(a[1]);
276
+ if (!d())
277
+ return h(/^[;\s]*/), c({
278
+ type: S.layer,
279
+ layer: p
280
+ });
281
+ const g = v().concat(b());
282
+ return m() ? c({
283
+ type: S.layer,
284
+ layer: p,
285
+ rules: g
286
+ }) : u("@layer missing '}'");
287
+ }
288
+ function M() {
289
+ const c = s(), a = h(/^@media *([^{]+)/);
290
+ if (!a)
291
+ return;
292
+ const p = I(a[1]);
293
+ if (!d())
294
+ return u("@media missing '{'");
295
+ const g = v().concat(b());
296
+ return m() ? c({
297
+ type: S.media,
298
+ media: p,
299
+ rules: g
300
+ }) : u("@media missing '}'");
301
+ }
302
+ function j() {
303
+ const c = s(), a = h(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);
304
+ if (a)
305
+ return c({
306
+ type: S.customMedia,
307
+ name: I(a[1]),
308
+ media: I(a[2])
309
+ });
310
+ }
311
+ function G() {
312
+ const c = s();
313
+ if (!h(/^@page */))
314
+ return;
315
+ const p = o() || [];
316
+ if (!d())
317
+ return u("@page missing '{'");
318
+ let g = v(), x;
319
+ for (; x = w(); )
320
+ g.push(x), g = g.concat(v());
321
+ return m() ? c({
322
+ type: S.page,
323
+ selectors: p,
324
+ declarations: g
325
+ }) : u("@page missing '}'");
326
+ }
327
+ function ee() {
328
+ const c = s(), a = h(/^@([-\w]+)?document *([^{]+)/);
329
+ if (!a)
330
+ return;
331
+ const p = I(a[1]), g = I(a[2]);
332
+ if (!d())
333
+ return u("@document missing '{'");
334
+ const x = v().concat(b());
335
+ return m() ? c({
336
+ type: S.document,
337
+ document: g,
338
+ vendor: p,
339
+ rules: x
340
+ }) : u("@document missing '}'");
341
+ }
342
+ function X() {
343
+ const c = s();
344
+ if (!h(/^@font-face\s*/))
345
+ return;
346
+ if (!d())
347
+ return u("@font-face missing '{'");
348
+ let p = v(), g;
349
+ for (; g = w(); )
350
+ p.push(g), p = p.concat(v());
351
+ return m() ? c({
352
+ type: S.fontFace,
353
+ declarations: p
354
+ }) : u("@font-face missing '}'");
355
+ }
356
+ const te = U("import"), ne = U("charset"), re = U("namespace");
357
+ function U(c) {
358
+ const a = new RegExp("^@" + c + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);
359
+ return function() {
360
+ const p = s(), g = h(a);
361
+ if (!g)
362
+ return;
363
+ const x = {
364
+ type: c
365
+ };
366
+ return x[c] = g[1].trim(), p(x);
367
+ };
368
+ }
369
+ function Pt() {
370
+ if (e[0] === "@")
371
+ return T() || M() || j() || D() || te() || ne() || re() || ee() || G() || V() || X() || P() || O();
372
+ }
373
+ function Mt() {
374
+ const c = s(), a = o();
375
+ return a ? (v(), c({
376
+ type: S.rule,
377
+ selectors: a,
378
+ declarations: $() || []
379
+ })) : u("selector missing");
380
+ }
381
+ return pe(f());
382
+ };
383
+ function I(e) {
384
+ return e ? e.trim() : "";
385
+ }
386
+ function pe(e, t) {
387
+ const n = e && typeof e.type == "string", r = n ? e : t;
388
+ for (const i in e) {
389
+ const s = e[i];
390
+ Array.isArray(s) ? s.forEach((l) => {
391
+ pe(l, r);
392
+ }) : s && typeof s == "object" && pe(s, r);
393
+ }
394
+ return n && Object.defineProperty(e, "parent", {
395
+ configurable: !0,
396
+ writable: !0,
397
+ enumerable: !1,
398
+ value: t || null
399
+ }), e;
400
+ }
401
+ var tn = en;
402
+ const nn = tn;
403
+ var rn = Object.prototype.toString;
404
+ function Ne(e) {
405
+ return typeof e == "function" || rn.call(e) === "[object Function]";
406
+ }
407
+ function sn(e) {
408
+ var t = Number(e);
409
+ return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
410
+ }
411
+ var on = Math.pow(2, 53) - 1;
412
+ function an(e) {
413
+ var t = sn(e);
414
+ return Math.min(Math.max(t, 0), on);
415
+ }
416
+ function k(e, t) {
417
+ var n = Array, r = Object(e);
418
+ if (e == null)
419
+ throw new TypeError("Array.from requires an array-like object - not null or undefined");
420
+ if (typeof t < "u" && !Ne(t))
421
+ throw new TypeError("Array.from: when provided, the second argument must be a function");
422
+ for (var i = an(r.length), s = Ne(n) ? Object(new n(i)) : new Array(i), l = 0, u; l < i; )
423
+ u = r[l], t ? s[l] = t(u, l) : s[l] = u, l += 1;
424
+ return s.length = i, s;
425
+ }
426
+ function K(e) {
427
+ "@babel/helpers - typeof";
428
+ return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
429
+ return typeof t;
430
+ } : function(t) {
431
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
432
+ }, K(e);
433
+ }
434
+ function un(e, t) {
435
+ if (!(e instanceof t))
436
+ throw new TypeError("Cannot call a class as a function");
437
+ }
438
+ function Ce(e, t) {
439
+ for (var n = 0; n < t.length; n++) {
440
+ var r = t[n];
441
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Xe(r.key), r);
442
+ }
443
+ }
444
+ function ln(e, t, n) {
445
+ return t && Ce(e.prototype, t), n && Ce(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
446
+ }
447
+ function cn(e, t, n) {
448
+ return t = Xe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
449
+ }
450
+ function Xe(e) {
451
+ var t = fn(e, "string");
452
+ return K(t) === "symbol" ? t : String(t);
453
+ }
454
+ function fn(e, t) {
455
+ if (K(e) !== "object" || e === null)
456
+ return e;
457
+ var n = e[Symbol.toPrimitive];
458
+ if (n !== void 0) {
459
+ var r = n.call(e, t || "default");
460
+ if (K(r) !== "object")
461
+ return r;
462
+ throw new TypeError("@@toPrimitive must return a primitive value.");
463
+ }
464
+ return (t === "string" ? String : Number)(e);
465
+ }
466
+ var dn = /* @__PURE__ */ function() {
467
+ function e() {
468
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
469
+ un(this, e), cn(this, "items", void 0), this.items = t;
470
+ }
471
+ return ln(e, [{
472
+ key: "add",
473
+ value: function(n) {
474
+ return this.has(n) === !1 && this.items.push(n), this;
475
+ }
476
+ }, {
477
+ key: "clear",
478
+ value: function() {
479
+ this.items = [];
480
+ }
481
+ }, {
482
+ key: "delete",
483
+ value: function(n) {
484
+ var r = this.items.length;
485
+ return this.items = this.items.filter(function(i) {
486
+ return i !== n;
487
+ }), r !== this.items.length;
488
+ }
489
+ }, {
490
+ key: "forEach",
491
+ value: function(n) {
492
+ var r = this;
493
+ this.items.forEach(function(i) {
494
+ n(i, i, r);
495
+ });
496
+ }
497
+ }, {
498
+ key: "has",
499
+ value: function(n) {
500
+ return this.items.indexOf(n) !== -1;
501
+ }
502
+ }, {
503
+ key: "size",
504
+ get: function() {
505
+ return this.items.length;
506
+ }
507
+ }]), e;
508
+ }();
509
+ const hn = typeof Set > "u" ? Set : dn;
510
+ function N(e) {
511
+ var t;
512
+ return (
513
+ // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
514
+ (t = e.localName) !== null && t !== void 0 ? t : (
515
+ // eslint-disable-next-line no-restricted-properties -- required for the fallback
516
+ e.tagName.toLowerCase()
517
+ )
518
+ );
519
+ }
520
+ var pn = {
521
+ article: "article",
522
+ aside: "complementary",
523
+ button: "button",
524
+ datalist: "listbox",
525
+ dd: "definition",
526
+ details: "group",
527
+ dialog: "dialog",
528
+ dt: "term",
529
+ fieldset: "group",
530
+ figure: "figure",
531
+ // WARNING: Only with an accessible name
532
+ form: "form",
533
+ footer: "contentinfo",
534
+ h1: "heading",
535
+ h2: "heading",
536
+ h3: "heading",
537
+ h4: "heading",
538
+ h5: "heading",
539
+ h6: "heading",
540
+ header: "banner",
541
+ hr: "separator",
542
+ html: "document",
543
+ legend: "legend",
544
+ li: "listitem",
545
+ math: "math",
546
+ main: "main",
547
+ menu: "list",
548
+ nav: "navigation",
549
+ ol: "list",
550
+ optgroup: "group",
551
+ // WARNING: Only in certain context
552
+ option: "option",
553
+ output: "status",
554
+ progress: "progressbar",
555
+ // WARNING: Only with an accessible name
556
+ section: "region",
557
+ summary: "button",
558
+ table: "table",
559
+ tbody: "rowgroup",
560
+ textarea: "textbox",
561
+ tfoot: "rowgroup",
562
+ // WARNING: Only in certain context
563
+ td: "cell",
564
+ th: "columnheader",
565
+ thead: "rowgroup",
566
+ tr: "row",
567
+ ul: "list"
568
+ }, mn = {
569
+ caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
570
+ code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
571
+ deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
572
+ emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
573
+ generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
574
+ insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
575
+ none: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
576
+ paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
577
+ presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
578
+ strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
579
+ subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
580
+ superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
581
+ };
582
+ function gn(e, t) {
583
+ return [
584
+ "aria-atomic",
585
+ "aria-busy",
586
+ "aria-controls",
587
+ "aria-current",
588
+ "aria-description",
589
+ "aria-describedby",
590
+ "aria-details",
591
+ // "disabled",
592
+ "aria-dropeffect",
593
+ // "errormessage",
594
+ "aria-flowto",
595
+ "aria-grabbed",
596
+ // "haspopup",
597
+ "aria-hidden",
598
+ // "invalid",
599
+ "aria-keyshortcuts",
600
+ "aria-label",
601
+ "aria-labelledby",
602
+ "aria-live",
603
+ "aria-owns",
604
+ "aria-relevant",
605
+ "aria-roledescription"
606
+ ].some(function(n) {
607
+ var r;
608
+ return e.hasAttribute(n) && !((r = mn[t]) !== null && r !== void 0 && r.has(n));
609
+ });
610
+ }
611
+ function ze(e, t) {
612
+ return gn(e, t);
613
+ }
614
+ function bn(e) {
615
+ var t = yn(e);
616
+ if (t === null || me.indexOf(t) !== -1) {
617
+ var n = vn(e);
618
+ if (me.indexOf(t || "") === -1 || ze(e, n || ""))
619
+ return n;
620
+ }
621
+ return t;
622
+ }
623
+ function vn(e) {
624
+ var t = pn[N(e)];
625
+ if (t !== void 0)
626
+ return t;
627
+ switch (N(e)) {
628
+ case "a":
629
+ case "area":
630
+ case "link":
631
+ if (e.hasAttribute("href"))
632
+ return "link";
633
+ break;
634
+ case "img":
635
+ return e.getAttribute("alt") === "" && !ze(e, "img") ? "presentation" : "img";
636
+ case "input": {
637
+ var n = e, r = n.type;
638
+ switch (r) {
639
+ case "button":
640
+ case "image":
641
+ case "reset":
642
+ case "submit":
643
+ return "button";
644
+ case "checkbox":
645
+ case "radio":
646
+ return r;
647
+ case "range":
648
+ return "slider";
649
+ case "email":
650
+ case "tel":
651
+ case "text":
652
+ case "url":
653
+ return e.hasAttribute("list") ? "combobox" : "textbox";
654
+ case "search":
655
+ return e.hasAttribute("list") ? "combobox" : "searchbox";
656
+ case "number":
657
+ return "spinbutton";
658
+ default:
659
+ return null;
660
+ }
661
+ }
662
+ case "select":
663
+ return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
664
+ }
665
+ return null;
666
+ }
667
+ function yn(e) {
668
+ var t = e.getAttribute("role");
669
+ if (t !== null) {
670
+ var n = t.trim().split(" ")[0];
671
+ if (n.length > 0)
672
+ return n;
673
+ }
674
+ return null;
675
+ }
676
+ var me = ["presentation", "none"];
677
+ function A(e) {
678
+ return e !== null && e.nodeType === e.ELEMENT_NODE;
679
+ }
680
+ function Ke(e) {
681
+ return A(e) && N(e) === "caption";
682
+ }
683
+ function ie(e) {
684
+ return A(e) && N(e) === "input";
685
+ }
686
+ function En(e) {
687
+ return A(e) && N(e) === "optgroup";
688
+ }
689
+ function wn(e) {
690
+ return A(e) && N(e) === "select";
691
+ }
692
+ function $n(e) {
693
+ return A(e) && N(e) === "table";
694
+ }
695
+ function xn(e) {
696
+ return A(e) && N(e) === "textarea";
697
+ }
698
+ function An(e) {
699
+ var t = e.ownerDocument === null ? e : e.ownerDocument, n = t.defaultView;
700
+ if (n === null)
701
+ throw new TypeError("no window available");
702
+ return n;
703
+ }
704
+ function Sn(e) {
705
+ return A(e) && N(e) === "fieldset";
706
+ }
707
+ function Rn(e) {
708
+ return A(e) && N(e) === "legend";
709
+ }
710
+ function Nn(e) {
711
+ return A(e) && N(e) === "slot";
712
+ }
713
+ function Cn(e) {
714
+ return A(e) && e.ownerSVGElement !== void 0;
715
+ }
716
+ function Hn(e) {
717
+ return A(e) && N(e) === "svg";
718
+ }
719
+ function On(e) {
720
+ return Cn(e) && N(e) === "title";
721
+ }
722
+ function se(e, t) {
723
+ if (A(e) && e.hasAttribute(t)) {
724
+ var n = e.getAttribute(t).split(" "), r = e.getRootNode ? e.getRootNode() : e.ownerDocument;
725
+ return n.map(function(i) {
726
+ return r.getElementById(i);
727
+ }).filter(
728
+ function(i) {
729
+ return i !== null;
730
+ }
731
+ // TODO: why does this not narrow?
732
+ );
733
+ }
734
+ return [];
735
+ }
736
+ function _(e, t) {
737
+ return A(e) ? t.indexOf(bn(e)) !== -1 : !1;
738
+ }
739
+ function In(e) {
740
+ return e.trim().replace(/\s\s+/g, " ");
741
+ }
742
+ function kn(e, t) {
743
+ if (!A(e))
744
+ return !1;
745
+ if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true")
746
+ return !0;
747
+ var n = t(e);
748
+ return n.getPropertyValue("display") === "none" || n.getPropertyValue("visibility") === "hidden";
749
+ }
750
+ function Dn(e) {
751
+ return _(e, ["button", "combobox", "listbox", "textbox"]) || Ye(e, "range");
752
+ }
753
+ function Ye(e, t) {
754
+ if (!A(e))
755
+ return !1;
756
+ switch (t) {
757
+ case "range":
758
+ return _(e, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
759
+ default:
760
+ throw new TypeError("No knowledge about abstract role '".concat(t, "'. This is likely a bug :("));
761
+ }
762
+ }
763
+ function He(e, t) {
764
+ var n = k(e.querySelectorAll(t));
765
+ return se(e, "aria-owns").forEach(function(r) {
766
+ n.push.apply(n, k(r.querySelectorAll(t)));
767
+ }), n;
768
+ }
769
+ function jn(e) {
770
+ return wn(e) ? e.selectedOptions || He(e, "[selected]") : He(e, '[aria-selected="true"]');
771
+ }
772
+ function Ln(e) {
773
+ return _(e, me);
774
+ }
775
+ function Tn(e) {
776
+ return Ke(e);
777
+ }
778
+ function Vn(e) {
779
+ return _(e, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
780
+ }
781
+ function Pn(e) {
782
+ return !1;
783
+ }
784
+ function Mn(e) {
785
+ return ie(e) || xn(e) ? e.value : e.textContent || "";
786
+ }
787
+ function Oe(e) {
788
+ var t = e.getPropertyValue("content");
789
+ return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
790
+ }
791
+ function Qe(e) {
792
+ var t = N(e);
793
+ return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
794
+ }
795
+ function Je(e) {
796
+ if (Qe(e))
797
+ return e;
798
+ var t = null;
799
+ return e.childNodes.forEach(function(n) {
800
+ if (t === null && A(n)) {
801
+ var r = Je(n);
802
+ r !== null && (t = r);
803
+ }
804
+ }), t;
805
+ }
806
+ function _n(e) {
807
+ if (e.control !== void 0)
808
+ return e.control;
809
+ var t = e.getAttribute("for");
810
+ return t !== null ? e.ownerDocument.getElementById(t) : Je(e);
811
+ }
812
+ function Bn(e) {
813
+ var t = e.labels;
814
+ if (t === null)
815
+ return t;
816
+ if (t !== void 0)
817
+ return k(t);
818
+ if (!Qe(e))
819
+ return null;
820
+ var n = e.ownerDocument;
821
+ return k(n.querySelectorAll("label")).filter(function(r) {
822
+ return _n(r) === e;
823
+ });
824
+ }
825
+ function qn(e) {
826
+ var t = e.assignedNodes();
827
+ return t.length === 0 ? k(e.childNodes) : t;
828
+ }
829
+ function Ze(e) {
830
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = new hn(), r = An(e), i = t.compute, s = i === void 0 ? "name" : i, l = t.computedStyleSupportsPseudoElements, u = l === void 0 ? t.getComputedStyle !== void 0 : l, f = t.getComputedStyle, d = f === void 0 ? r.getComputedStyle.bind(r) : f, m = t.hidden, b = m === void 0 ? !1 : m;
831
+ function h(o, w) {
832
+ var $ = "";
833
+ if (A(o) && u) {
834
+ var H = d(o, "::before"), T = Oe(H);
835
+ $ = "".concat(T, " ").concat($);
836
+ }
837
+ var D = Nn(o) ? qn(o) : k(o.childNodes).concat(se(o, "aria-owns"));
838
+ if (D.forEach(function(O) {
839
+ var M = C(O, {
840
+ isEmbeddedInLabel: w.isEmbeddedInLabel,
841
+ isReferenced: !1,
842
+ recursion: !0
843
+ }), j = A(O) ? d(O).getPropertyValue("display") : "inline", G = j !== "inline" ? " " : "";
844
+ $ += "".concat(G).concat(M).concat(G);
845
+ }), A(o) && u) {
846
+ var V = d(o, "::after"), P = Oe(V);
847
+ $ = "".concat($, " ").concat(P);
848
+ }
849
+ return $.trim();
850
+ }
851
+ function y(o, w) {
852
+ var $ = o.getAttributeNode(w);
853
+ return $ !== null && !n.has($) && $.value.trim() !== "" ? (n.add($), $.value) : null;
854
+ }
855
+ function v(o) {
856
+ return A(o) ? y(o, "title") : null;
857
+ }
858
+ function L(o) {
859
+ if (!A(o))
860
+ return null;
861
+ if (Sn(o)) {
862
+ n.add(o);
863
+ for (var w = k(o.childNodes), $ = 0; $ < w.length; $ += 1) {
864
+ var H = w[$];
865
+ if (Rn(H))
866
+ return C(H, {
867
+ isEmbeddedInLabel: !1,
868
+ isReferenced: !1,
869
+ recursion: !1
870
+ });
871
+ }
872
+ } else if ($n(o)) {
873
+ n.add(o);
874
+ for (var T = k(o.childNodes), D = 0; D < T.length; D += 1) {
875
+ var V = T[D];
876
+ if (Ke(V))
877
+ return C(V, {
878
+ isEmbeddedInLabel: !1,
879
+ isReferenced: !1,
880
+ recursion: !1
881
+ });
882
+ }
883
+ } else if (Hn(o)) {
884
+ n.add(o);
885
+ for (var P = k(o.childNodes), O = 0; O < P.length; O += 1) {
886
+ var M = P[O];
887
+ if (On(M))
888
+ return M.textContent;
889
+ }
890
+ return null;
891
+ } else if (N(o) === "img" || N(o) === "area") {
892
+ var j = y(o, "alt");
893
+ if (j !== null)
894
+ return j;
895
+ } else if (En(o)) {
896
+ var G = y(o, "label");
897
+ if (G !== null)
898
+ return G;
899
+ }
900
+ if (ie(o) && (o.type === "button" || o.type === "submit" || o.type === "reset")) {
901
+ var ee = y(o, "value");
902
+ if (ee !== null)
903
+ return ee;
904
+ if (o.type === "submit")
905
+ return "Submit";
906
+ if (o.type === "reset")
907
+ return "Reset";
908
+ }
909
+ var X = Bn(o);
910
+ if (X !== null && X.length !== 0)
911
+ return n.add(o), k(X).map(function(U) {
912
+ return C(U, {
913
+ isEmbeddedInLabel: !0,
914
+ isReferenced: !1,
915
+ recursion: !0
916
+ });
917
+ }).filter(function(U) {
918
+ return U.length > 0;
919
+ }).join(" ");
920
+ if (ie(o) && o.type === "image") {
921
+ var te = y(o, "alt");
922
+ if (te !== null)
923
+ return te;
924
+ var ne = y(o, "title");
925
+ return ne !== null ? ne : "Submit Query";
926
+ }
927
+ if (_(o, ["button"])) {
928
+ var re = h(o, {
929
+ isEmbeddedInLabel: !1,
930
+ isReferenced: !1
931
+ });
932
+ if (re !== "")
933
+ return re;
934
+ }
935
+ return null;
936
+ }
937
+ function C(o, w) {
938
+ if (n.has(o))
939
+ return "";
940
+ if (!b && kn(o, d) && !w.isReferenced)
941
+ return n.add(o), "";
942
+ var $ = A(o) ? o.getAttributeNode("aria-labelledby") : null, H = $ !== null && !n.has($) ? se(o, "aria-labelledby") : [];
943
+ if (s === "name" && !w.isReferenced && H.length > 0)
944
+ return n.add($), H.map(function(j) {
945
+ return C(j, {
946
+ isEmbeddedInLabel: w.isEmbeddedInLabel,
947
+ isReferenced: !0,
948
+ // this isn't recursion as specified, otherwise we would skip
949
+ // `aria-label` in
950
+ // <input id="myself" aria-label="foo" aria-labelledby="myself"
951
+ recursion: !1
952
+ });
953
+ }).join(" ");
954
+ var T = w.recursion && Dn(o) && s === "name";
955
+ if (!T) {
956
+ var D = (A(o) && o.getAttribute("aria-label") || "").trim();
957
+ if (D !== "" && s === "name")
958
+ return n.add(o), D;
959
+ if (!Ln(o)) {
960
+ var V = L(o);
961
+ if (V !== null)
962
+ return n.add(o), V;
963
+ }
964
+ }
965
+ if (_(o, ["menu"]))
966
+ return n.add(o), "";
967
+ if (T || w.isEmbeddedInLabel || w.isReferenced) {
968
+ if (_(o, ["combobox", "listbox"])) {
969
+ n.add(o);
970
+ var P = jn(o);
971
+ return P.length === 0 ? ie(o) ? o.value : "" : k(P).map(function(j) {
972
+ return C(j, {
973
+ isEmbeddedInLabel: w.isEmbeddedInLabel,
974
+ isReferenced: !1,
975
+ recursion: !0
976
+ });
977
+ }).join(" ");
978
+ }
979
+ if (Ye(o, "range"))
980
+ return n.add(o), o.hasAttribute("aria-valuetext") ? o.getAttribute("aria-valuetext") : o.hasAttribute("aria-valuenow") ? o.getAttribute("aria-valuenow") : o.getAttribute("value") || "";
981
+ if (_(o, ["textbox"]))
982
+ return n.add(o), Mn(o);
983
+ }
984
+ if (Vn(o) || A(o) && w.isReferenced || Tn(o) || Pn()) {
985
+ var O = h(o, {
986
+ isEmbeddedInLabel: w.isEmbeddedInLabel,
987
+ isReferenced: !1
988
+ });
989
+ if (O !== "")
990
+ return n.add(o), O;
991
+ }
992
+ if (o.nodeType === o.TEXT_NODE)
993
+ return n.add(o), o.textContent || "";
994
+ if (w.recursion)
995
+ return n.add(o), h(o, {
996
+ isEmbeddedInLabel: w.isEmbeddedInLabel,
997
+ isReferenced: !1
998
+ });
999
+ var M = v(o);
1000
+ return M !== null ? (n.add(o), M) : (n.add(o), "");
1001
+ }
1002
+ return In(C(e, {
1003
+ isEmbeddedInLabel: !1,
1004
+ // by spec computeAccessibleDescription starts with the referenced elements as roots
1005
+ isReferenced: s === "description",
1006
+ recursion: !1
1007
+ }));
1008
+ }
1009
+ function Y(e) {
1010
+ "@babel/helpers - typeof";
1011
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1012
+ return typeof t;
1013
+ } : function(t) {
1014
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1015
+ }, Y(e);
1016
+ }
1017
+ function Ie(e, t) {
1018
+ var n = Object.keys(e);
1019
+ if (Object.getOwnPropertySymbols) {
1020
+ var r = Object.getOwnPropertySymbols(e);
1021
+ t && (r = r.filter(function(i) {
1022
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
1023
+ })), n.push.apply(n, r);
1024
+ }
1025
+ return n;
1026
+ }
1027
+ function ke(e) {
1028
+ for (var t = 1; t < arguments.length; t++) {
1029
+ var n = arguments[t] != null ? arguments[t] : {};
1030
+ t % 2 ? Ie(Object(n), !0).forEach(function(r) {
1031
+ Fn(e, r, n[r]);
1032
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ie(Object(n)).forEach(function(r) {
1033
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1034
+ });
1035
+ }
1036
+ return e;
1037
+ }
1038
+ function Fn(e, t, n) {
1039
+ return t = Gn(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1040
+ }
1041
+ function Gn(e) {
1042
+ var t = Un(e, "string");
1043
+ return Y(t) === "symbol" ? t : String(t);
1044
+ }
1045
+ function Un(e, t) {
1046
+ if (Y(e) !== "object" || e === null)
1047
+ return e;
1048
+ var n = e[Symbol.toPrimitive];
1049
+ if (n !== void 0) {
1050
+ var r = n.call(e, t || "default");
1051
+ if (Y(r) !== "object")
1052
+ return r;
1053
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1054
+ }
1055
+ return (t === "string" ? String : Number)(e);
1056
+ }
1057
+ function Wn(e) {
1058
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = se(e, "aria-describedby").map(function(s) {
1059
+ return Ze(s, ke(ke({}, t), {}, {
1060
+ compute: "description"
1061
+ }));
1062
+ }).join(" ");
1063
+ if (n === "") {
1064
+ var r = e.getAttribute("aria-description");
1065
+ n = r === null ? "" : r;
1066
+ }
1067
+ if (n === "") {
1068
+ var i = e.getAttribute("title");
1069
+ n = i === null ? "" : i;
1070
+ }
1071
+ return n;
1072
+ }
1073
+ function Xn(e) {
1074
+ return _(e, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript", "superscript"]);
1075
+ }
1076
+ function zn(e) {
1077
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1078
+ return Xn(e) ? "" : Ze(e, t);
1079
+ }
1080
+ const Kn = (e, t, n) => {
1081
+ let r = e.indexOf(t);
1082
+ if (r === -1)
1083
+ return e;
1084
+ const i = t.length;
1085
+ let s = 0, l = "";
1086
+ do
1087
+ l += e.substr(s, r - s) + t + n, s = r + i, r = e.indexOf(t, s);
1088
+ while (r !== -1);
1089
+ return l += e.substr(s), l;
1090
+ }, Yn = (e, t, n, r) => {
1091
+ let i = 0, s = "";
1092
+ do {
1093
+ const l = e[r - 1] === "\r";
1094
+ s += e.substr(i, (l ? r - 1 : r) - i) + t + (l ? `\r
1095
+ ` : `
1096
+ `) + n, i = r + 1, r = e.indexOf(`
1097
+ `, i);
1098
+ } while (r !== -1);
1099
+ return s += e.substr(i), s;
1100
+ };
1101
+ var Qn = {
1102
+ stringReplaceAll: Kn,
1103
+ stringEncaseCRLFWithFirstIndex: Yn
1104
+ }, de, De;
1105
+ function Jn() {
1106
+ if (De)
1107
+ return de;
1108
+ De = 1;
1109
+ const e = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi, t = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g, n = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/, r = /\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi, i = /* @__PURE__ */ new Map([
1110
+ ["n", `
1111
+ `],
1112
+ ["r", "\r"],
1113
+ ["t", " "],
1114
+ ["b", "\b"],
1115
+ ["f", "\f"],
1116
+ ["v", "\v"],
1117
+ ["0", "\0"],
1118
+ ["\\", "\\"],
1119
+ ["e", "\x1B"],
1120
+ ["a", "\x07"]
1121
+ ]);
1122
+ function s(d) {
1123
+ const m = d[0] === "u", b = d[1] === "{";
1124
+ return m && !b && d.length === 5 || d[0] === "x" && d.length === 3 ? String.fromCharCode(parseInt(d.slice(1), 16)) : m && b ? String.fromCodePoint(parseInt(d.slice(2, -1), 16)) : i.get(d) || d;
1125
+ }
1126
+ function l(d, m) {
1127
+ const b = [], h = m.trim().split(/\s*,\s*/g);
1128
+ let y;
1129
+ for (const v of h) {
1130
+ const L = Number(v);
1131
+ if (!Number.isNaN(L))
1132
+ b.push(L);
1133
+ else if (y = v.match(n))
1134
+ b.push(y[2].replace(r, (C, o, w) => o ? s(o) : w));
1135
+ else
1136
+ throw new Error(`Invalid Chalk template style argument: ${v} (in style '${d}')`);
1137
+ }
1138
+ return b;
1139
+ }
1140
+ function u(d) {
1141
+ t.lastIndex = 0;
1142
+ const m = [];
1143
+ let b;
1144
+ for (; (b = t.exec(d)) !== null; ) {
1145
+ const h = b[1];
1146
+ if (b[2]) {
1147
+ const y = l(h, b[2]);
1148
+ m.push([h].concat(y));
1149
+ } else
1150
+ m.push([h]);
1151
+ }
1152
+ return m;
1153
+ }
1154
+ function f(d, m) {
1155
+ const b = {};
1156
+ for (const y of m)
1157
+ for (const v of y.styles)
1158
+ b[v[0]] = y.inverse ? null : v.slice(1);
1159
+ let h = d;
1160
+ for (const [y, v] of Object.entries(b))
1161
+ if (Array.isArray(v)) {
1162
+ if (!(y in h))
1163
+ throw new Error(`Unknown Chalk style: ${y}`);
1164
+ h = v.length > 0 ? h[y](...v) : h[y];
1165
+ }
1166
+ return h;
1167
+ }
1168
+ return de = (d, m) => {
1169
+ const b = [], h = [];
1170
+ let y = [];
1171
+ if (m.replace(e, (v, L, C, o, w, $) => {
1172
+ if (L)
1173
+ y.push(s(L));
1174
+ else if (o) {
1175
+ const H = y.join("");
1176
+ y = [], h.push(b.length === 0 ? H : f(d, b)(H)), b.push({ inverse: C, styles: u(o) });
1177
+ } else if (w) {
1178
+ if (b.length === 0)
1179
+ throw new Error("Found extraneous } in Chalk template literal");
1180
+ h.push(f(d, b)(y.join(""))), y = [], b.pop();
1181
+ } else
1182
+ y.push($);
1183
+ }), h.push(y.join("")), b.length > 0) {
1184
+ const v = `Chalk template literal is missing ${b.length} closing bracket${b.length === 1 ? "" : "s"} (\`}\`)`;
1185
+ throw new Error(v);
1186
+ }
1187
+ return h.join("");
1188
+ }, de;
1189
+ }
1190
+ const Q = Gt, { stdout: ge, stderr: be } = Ut, {
1191
+ stringReplaceAll: Zn,
1192
+ stringEncaseCRLFWithFirstIndex: er
1193
+ } = Qn, et = [
1194
+ "ansi",
1195
+ "ansi",
1196
+ "ansi256",
1197
+ "ansi16m"
1198
+ ], W = /* @__PURE__ */ Object.create(null), tr = (e, t = {}) => {
1199
+ if (t.level > 3 || t.level < 0)
1200
+ throw new Error("The `level` option should be an integer from 0 to 3");
1201
+ const n = ge ? ge.level : 0;
1202
+ e.level = t.level === void 0 ? n : t.level;
1203
+ };
1204
+ class nr {
1205
+ constructor(t) {
1206
+ return tt(t);
1207
+ }
1208
+ }
1209
+ const tt = (e) => {
1210
+ const t = {};
1211
+ return tr(t, e), t.template = (...n) => sr(t.template, ...n), Object.setPrototypeOf(t, oe.prototype), Object.setPrototypeOf(t.template, t), t.template.constructor = () => {
1212
+ throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
1213
+ }, t.template.Instance = nr, t.template;
1214
+ };
1215
+ function oe(e) {
1216
+ return tt(e);
1217
+ }
1218
+ for (const [e, t] of Object.entries(Q))
1219
+ W[e] = {
1220
+ get() {
1221
+ const n = ae(this, Se(t.open, t.close, this._styler), this._isEmpty);
1222
+ return Object.defineProperty(this, e, { value: n }), n;
1223
+ }
1224
+ };
1225
+ W.visible = {
1226
+ get() {
1227
+ const e = ae(this, this._styler, !0);
1228
+ return Object.defineProperty(this, "visible", { value: e }), e;
1229
+ }
1230
+ };
1231
+ const nt = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
1232
+ for (const e of nt)
1233
+ W[e] = {
1234
+ get() {
1235
+ const { level: t } = this;
1236
+ return function(...n) {
1237
+ const r = Se(Q.color[et[t]][e](...n), Q.color.close, this._styler);
1238
+ return ae(this, r, this._isEmpty);
1239
+ };
1240
+ }
1241
+ };
1242
+ for (const e of nt) {
1243
+ const t = "bg" + e[0].toUpperCase() + e.slice(1);
1244
+ W[t] = {
1245
+ get() {
1246
+ const { level: n } = this;
1247
+ return function(...r) {
1248
+ const i = Se(Q.bgColor[et[n]][e](...r), Q.bgColor.close, this._styler);
1249
+ return ae(this, i, this._isEmpty);
1250
+ };
1251
+ }
1252
+ };
1253
+ }
1254
+ const rr = Object.defineProperties(() => {
1255
+ }, {
1256
+ ...W,
1257
+ level: {
1258
+ enumerable: !0,
1259
+ get() {
1260
+ return this._generator.level;
1261
+ },
1262
+ set(e) {
1263
+ this._generator.level = e;
1264
+ }
1265
+ }
1266
+ }), Se = (e, t, n) => {
1267
+ let r, i;
1268
+ return n === void 0 ? (r = e, i = t) : (r = n.openAll + e, i = t + n.closeAll), {
1269
+ open: e,
1270
+ close: t,
1271
+ openAll: r,
1272
+ closeAll: i,
1273
+ parent: n
1274
+ };
1275
+ }, ae = (e, t, n) => {
1276
+ const r = (...i) => ir(r, i.length === 1 ? "" + i[0] : i.join(" "));
1277
+ return r.__proto__ = rr, r._generator = e, r._styler = t, r._isEmpty = n, r;
1278
+ }, ir = (e, t) => {
1279
+ if (e.level <= 0 || !t)
1280
+ return e._isEmpty ? "" : t;
1281
+ let n = e._styler;
1282
+ if (n === void 0)
1283
+ return t;
1284
+ const { openAll: r, closeAll: i } = n;
1285
+ if (t.indexOf("\x1B") !== -1)
1286
+ for (; n !== void 0; )
1287
+ t = Zn(t, n.close, n.open), n = n.parent;
1288
+ const s = t.indexOf(`
1289
+ `);
1290
+ return s !== -1 && (t = er(t, i, r, s)), r + t + i;
1291
+ };
1292
+ let he;
1293
+ const sr = (e, ...t) => {
1294
+ const [n] = t;
1295
+ if (!Array.isArray(n))
1296
+ return t.join(" ");
1297
+ const r = t.slice(1), i = [n.raw[0]];
1298
+ for (let s = 1; s < n.length; s++)
1299
+ i.push(
1300
+ String(r[s - 1]).replace(/[{}\\]/g, "\\$&"),
1301
+ String(n.raw[s])
1302
+ );
1303
+ return he === void 0 && (he = Jn()), he(e, i.join(""));
1304
+ };
1305
+ Object.defineProperties(oe.prototype, W);
1306
+ const Z = oe();
1307
+ Z.supportsColor = ge;
1308
+ Z.stderr = oe({ level: be ? be.level : 0 });
1309
+ Z.stderr.supportsColor = be;
1310
+ Z.Level = {
1311
+ None: 0,
1312
+ Basic: 1,
1313
+ Ansi256: 2,
1314
+ TrueColor: 3,
1315
+ 0: "None",
1316
+ 1: "Basic",
1317
+ 2: "Ansi256",
1318
+ 3: "TrueColor"
1319
+ };
1320
+ var or = Z;
1321
+ const ar = /* @__PURE__ */ J(or);
1322
+ var ur = _t;
1323
+ function lr(e, t, n) {
1324
+ n = typeof n == "function" ? n : void 0;
1325
+ var r = n ? n(e, t) : void 0;
1326
+ return r === void 0 ? ur(e, t, void 0, n) : !!r;
1327
+ }
1328
+ var cr = lr;
1329
+ const rt = /* @__PURE__ */ J(cr);
1330
+ var fr = Bt;
1331
+ function dr(e) {
1332
+ return e && e.length ? fr(e) : [];
1333
+ }
1334
+ var hr = dr;
1335
+ const pr = /* @__PURE__ */ J(hr);
1336
+ var it = { exports: {} };
1337
+ /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
1338
+ (function(e, t) {
1339
+ (function(n, r) {
1340
+ e.exports = r(n);
1341
+ })(typeof ce < "u" ? ce : ce, function(n) {
1342
+ if (n.CSS && n.CSS.escape)
1343
+ return n.CSS.escape;
1344
+ var r = function(i) {
1345
+ if (arguments.length == 0)
1346
+ throw new TypeError("`CSS.escape` requires an argument.");
1347
+ for (var s = String(i), l = s.length, u = -1, f, d = "", m = s.charCodeAt(0); ++u < l; ) {
1348
+ if (f = s.charCodeAt(u), f == 0) {
1349
+ d += "�";
1350
+ continue;
1351
+ }
1352
+ if (
1353
+ // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
1354
+ // U+007F, […]
1355
+ f >= 1 && f <= 31 || f == 127 || // If the character is the first character and is in the range [0-9]
1356
+ // (U+0030 to U+0039), […]
1357
+ u == 0 && f >= 48 && f <= 57 || // If the character is the second character and is in the range [0-9]
1358
+ // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
1359
+ u == 1 && f >= 48 && f <= 57 && m == 45
1360
+ ) {
1361
+ d += "\\" + f.toString(16) + " ";
1362
+ continue;
1363
+ }
1364
+ if (
1365
+ // If the character is the first character and is a `-` (U+002D), and
1366
+ // there is no second character, […]
1367
+ u == 0 && l == 1 && f == 45
1368
+ ) {
1369
+ d += "\\" + s.charAt(u);
1370
+ continue;
1371
+ }
1372
+ if (f >= 128 || f == 45 || f == 95 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122) {
1373
+ d += s.charAt(u);
1374
+ continue;
1375
+ }
1376
+ d += "\\" + s.charAt(u);
1377
+ }
1378
+ return d;
1379
+ };
1380
+ return n.CSS || (n.CSS = {}), n.CSS.escape = r, r;
1381
+ });
1382
+ })(it);
1383
+ var mr = it.exports;
1384
+ const gr = /* @__PURE__ */ J(mr);
1385
+ class st extends Error {
1386
+ constructor(t, n, r, i) {
1387
+ super(), Error.captureStackTrace && Error.captureStackTrace(this, r);
1388
+ let s = "";
1389
+ try {
1390
+ s = i.utils.printWithType(
1391
+ "Received",
1392
+ n,
1393
+ i.utils.printReceived
1394
+ );
1395
+ } catch {
1396
+ }
1397
+ this.message = [
1398
+ i.utils.matcherHint(
1399
+ `${i.isNot ? ".not" : ""}.${r.name}`,
1400
+ "received",
1401
+ ""
1402
+ ),
1403
+ "",
1404
+ // eslint-disable-next-line new-cap
1405
+ `${i.utils.RECEIVED_COLOR(
1406
+ "received"
1407
+ )} value must ${t}.`,
1408
+ s
1409
+ ].join(`
1410
+ `);
1411
+ }
1412
+ }
1413
+ class je extends st {
1414
+ constructor(...t) {
1415
+ super("be an HTMLElement or an SVGElement", ...t);
1416
+ }
1417
+ }
1418
+ class Le extends st {
1419
+ constructor(...t) {
1420
+ super("be a Node", ...t);
1421
+ }
1422
+ }
1423
+ function ot(e, t, ...n) {
1424
+ if (!e || !e.ownerDocument || !e.ownerDocument.defaultView)
1425
+ throw new t(e, ...n);
1426
+ }
1427
+ function br(e, ...t) {
1428
+ ot(e, Le, ...t);
1429
+ const n = e.ownerDocument.defaultView;
1430
+ if (!(e instanceof n.Node))
1431
+ throw new Le(e, ...t);
1432
+ }
1433
+ function E(e, ...t) {
1434
+ ot(e, je, ...t);
1435
+ const n = e.ownerDocument.defaultView;
1436
+ if (!(e instanceof n.HTMLElement) && !(e instanceof n.SVGElement))
1437
+ throw new je(e, ...t);
1438
+ }
1439
+ class vr extends Error {
1440
+ constructor(t, n, r) {
1441
+ super(), Error.captureStackTrace && Error.captureStackTrace(this, n), this.message = [
1442
+ t.message,
1443
+ "",
1444
+ // eslint-disable-next-line new-cap
1445
+ r.utils.RECEIVED_COLOR("Failing css:"),
1446
+ // eslint-disable-next-line new-cap
1447
+ r.utils.RECEIVED_COLOR(`${t.css}`)
1448
+ ].join(`
1449
+ `);
1450
+ }
1451
+ }
1452
+ function yr(e, ...t) {
1453
+ const n = nn(`selector { ${e} }`, { silent: !0 }).stylesheet;
1454
+ if (n.parsingErrors && n.parsingErrors.length > 0) {
1455
+ const { reason: i, line: s } = n.parsingErrors[0];
1456
+ throw new vr(
1457
+ {
1458
+ css: e,
1459
+ message: `Syntax error parsing expected css: ${i} on line: ${s}`
1460
+ },
1461
+ ...t
1462
+ );
1463
+ }
1464
+ return n.rules[0].declarations.filter((i) => i.type === "declaration").reduce(
1465
+ (i, { property: s, value: l }) => Object.assign(i, { [s]: l }),
1466
+ {}
1467
+ );
1468
+ }
1469
+ function Te(e, t) {
1470
+ return typeof t == "string" ? t : e.utils.stringify(t);
1471
+ }
1472
+ function R(e, t, n, r, i, s) {
1473
+ return [
1474
+ `${t}
1475
+ `,
1476
+ // eslint-disable-next-line new-cap
1477
+ `${n}:
1478
+ ${e.utils.EXPECTED_COLOR(
1479
+ Re(Te(e, r), 2)
1480
+ )}`,
1481
+ // eslint-disable-next-line new-cap
1482
+ `${i}:
1483
+ ${e.utils.RECEIVED_COLOR(
1484
+ Re(Te(e, s), 2)
1485
+ )}`
1486
+ ].join(`
1487
+ `);
1488
+ }
1489
+ function Er(e, t) {
1490
+ return t instanceof RegExp ? t.test(e) : e.includes(String(t));
1491
+ }
1492
+ function ue(e, t) {
1493
+ console.warn(
1494
+ `Warning: ${e} has been deprecated and will be removed in future updates.`,
1495
+ t
1496
+ );
1497
+ }
1498
+ function le(e) {
1499
+ return e.replace(/\s+/g, " ").trim();
1500
+ }
1501
+ function F(e) {
1502
+ return e.tagName && e.tagName.toLowerCase();
1503
+ }
1504
+ function wr({ multiple: e, options: t }) {
1505
+ const n = [...t].filter((r) => r.selected);
1506
+ if (e)
1507
+ return [...n].map((r) => r.value);
1508
+ if (n.length !== 0)
1509
+ return n[0].value;
1510
+ }
1511
+ function $r(e) {
1512
+ switch (e.type) {
1513
+ case "number":
1514
+ return e.value === "" ? null : Number(e.value);
1515
+ case "checkbox":
1516
+ return e.checked;
1517
+ default:
1518
+ return e.value;
1519
+ }
1520
+ }
1521
+ function at(e) {
1522
+ if (e)
1523
+ switch (e.tagName.toLowerCase()) {
1524
+ case "input":
1525
+ return $r(e);
1526
+ case "select":
1527
+ return wr(e);
1528
+ default:
1529
+ return e.value;
1530
+ }
1531
+ }
1532
+ function ut(e, t) {
1533
+ if (Array.isArray(e) && Array.isArray(t))
1534
+ return qt(new Set(e), new Set(t));
1535
+ }
1536
+ function xr(e, { wordConnector: t = ", ", lastWordConnector: n = " and " } = {}) {
1537
+ return [e.slice(0, -1).join(t), e[e.length - 1]].join(
1538
+ e.length > 1 ? n : ""
1539
+ );
1540
+ }
1541
+ function ve(e, t) {
1542
+ return ue(
1543
+ "toBeInTheDOM",
1544
+ "Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."
1545
+ ), e && E(e, ve, this), t && E(t, ve, this), {
1546
+ pass: t ? t.contains(e) : !!e,
1547
+ message: () => [
1548
+ this.utils.matcherHint(
1549
+ `${this.isNot ? ".not" : ""}.toBeInTheDOM`,
1550
+ "element",
1551
+ ""
1552
+ ),
1553
+ "",
1554
+ "Received:",
1555
+ ` ${this.utils.printReceived(
1556
+ e && e.cloneNode(!1)
1557
+ )}`
1558
+ ].join(`
1559
+ `)
1560
+ };
1561
+ }
1562
+ function lt(e) {
1563
+ (e !== null || !this.isNot) && E(e, lt, this);
1564
+ const t = e === null ? !1 : e.ownerDocument === e.getRootNode({ composed: !0 }), n = () => `expected document not to contain element, found ${this.utils.stringify(
1565
+ e.cloneNode(!0)
1566
+ )} instead`, r = () => "element could not be found in the document";
1567
+ return {
1568
+ pass: t,
1569
+ message: () => [
1570
+ this.utils.matcherHint(
1571
+ `${this.isNot ? ".not" : ""}.toBeInTheDocument`,
1572
+ "element",
1573
+ ""
1574
+ ),
1575
+ "",
1576
+ // eslint-disable-next-line new-cap
1577
+ this.utils.RECEIVED_COLOR(this.isNot ? n() : r())
1578
+ ].join(`
1579
+ `)
1580
+ };
1581
+ }
1582
+ function ct(e) {
1583
+ return ue(
1584
+ "toBeEmpty",
1585
+ "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."
1586
+ ), E(e, ct, this), {
1587
+ pass: e.innerHTML === "",
1588
+ message: () => [
1589
+ this.utils.matcherHint(
1590
+ `${this.isNot ? ".not" : ""}.toBeEmpty`,
1591
+ "element",
1592
+ ""
1593
+ ),
1594
+ "",
1595
+ "Received:",
1596
+ ` ${this.utils.printReceived(e.innerHTML)}`
1597
+ ].join(`
1598
+ `)
1599
+ };
1600
+ }
1601
+ function ft(e) {
1602
+ return E(e, ft, this), {
1603
+ pass: Ar(e),
1604
+ message: () => [
1605
+ this.utils.matcherHint(
1606
+ `${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`,
1607
+ "element",
1608
+ ""
1609
+ ),
1610
+ "",
1611
+ "Received:",
1612
+ ` ${this.utils.printReceived(e.innerHTML)}`
1613
+ ].join(`
1614
+ `)
1615
+ };
1616
+ }
1617
+ function Ar(e) {
1618
+ return [...e.childNodes].filter((n) => n.nodeType !== 8).length === 0;
1619
+ }
1620
+ function ye(e, t) {
1621
+ return E(e, ye, this), t !== null && E(t, ye, this), {
1622
+ pass: e.contains(t),
1623
+ message: () => [
1624
+ this.utils.matcherHint(
1625
+ `${this.isNot ? ".not" : ""}.toContainElement`,
1626
+ "element",
1627
+ "element"
1628
+ ),
1629
+ "",
1630
+ // eslint-disable-next-line new-cap
1631
+ this.utils.RECEIVED_COLOR(`${this.utils.stringify(
1632
+ e.cloneNode(!1)
1633
+ )} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(t && t.cloneNode(!1))}
1634
+ `)
1635
+ ].join(`
1636
+ `)
1637
+ };
1638
+ }
1639
+ function Sr(e, t) {
1640
+ const n = e.ownerDocument.createElement("div");
1641
+ return n.innerHTML = t, n.innerHTML;
1642
+ }
1643
+ function dt(e, t) {
1644
+ if (E(e, dt, this), typeof t != "string")
1645
+ throw new Error(`.toContainHTML() expects a string value, got ${t}`);
1646
+ return {
1647
+ pass: e.outerHTML.includes(Sr(e, t)),
1648
+ message: () => [
1649
+ this.utils.matcherHint(
1650
+ `${this.isNot ? ".not" : ""}.toContainHTML`,
1651
+ "element",
1652
+ ""
1653
+ ),
1654
+ "Expected:",
1655
+ // eslint-disable-next-line new-cap
1656
+ ` ${this.utils.EXPECTED_COLOR(t)}`,
1657
+ "Received:",
1658
+ ` ${this.utils.printReceived(e.cloneNode(!0))}`
1659
+ ].join(`
1660
+ `)
1661
+ };
1662
+ }
1663
+ function ht(e, t, n = { normalizeWhitespace: !0 }) {
1664
+ br(e, ht, this);
1665
+ const r = n.normalizeWhitespace ? le(e.textContent) : e.textContent.replace(/\u00a0/g, " "), i = r !== "" && t === "";
1666
+ return {
1667
+ pass: !i && Er(r, t),
1668
+ message: () => {
1669
+ const s = this.isNot ? "not to" : "to";
1670
+ return R(
1671
+ this,
1672
+ this.utils.matcherHint(
1673
+ `${this.isNot ? ".not" : ""}.toHaveTextContent`,
1674
+ "element",
1675
+ ""
1676
+ ),
1677
+ i ? "Checking with empty string will always match, use .toBeEmptyDOMElement() instead" : `Expected element ${s} have text content`,
1678
+ t,
1679
+ "Received",
1680
+ r
1681
+ );
1682
+ }
1683
+ };
1684
+ }
1685
+ function Ee(e, t) {
1686
+ E(e, Ee, this);
1687
+ const n = Wn(e), r = arguments.length === 1;
1688
+ let i = !1;
1689
+ return r ? i = n !== "" : i = t instanceof RegExp ? t.test(n) : this.equals(
1690
+ n,
1691
+ t
1692
+ ), {
1693
+ pass: i,
1694
+ message: () => {
1695
+ const s = this.isNot ? "not to" : "to";
1696
+ return R(
1697
+ this,
1698
+ this.utils.matcherHint(
1699
+ `${this.isNot ? ".not" : ""}.${Ee.name}`,
1700
+ "element",
1701
+ ""
1702
+ ),
1703
+ `Expected element ${s} have accessible description`,
1704
+ t,
1705
+ "Received",
1706
+ n
1707
+ );
1708
+ }
1709
+ };
1710
+ }
1711
+ const z = "aria-invalid", Rr = ["false"];
1712
+ function pt(e, t) {
1713
+ var d;
1714
+ E(e, pt, this);
1715
+ const n = this.isNot ? "not to" : "to", r = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", i = e.getAttribute("aria-errormessage");
1716
+ if (!!i && /\s+/.test(i))
1717
+ return {
1718
+ pass: !1,
1719
+ message: () => R(
1720
+ this,
1721
+ this.utils.matcherHint(r, "element"),
1722
+ "Expected element's `aria-errormessage` attribute to be empty or a single, valid ID",
1723
+ "",
1724
+ "Received",
1725
+ `aria-errormessage="${i}"`
1726
+ )
1727
+ };
1728
+ const l = e.getAttribute(z);
1729
+ if (!e.hasAttribute(z) || Rr.includes(l))
1730
+ return {
1731
+ pass: !1,
1732
+ message: () => R(
1733
+ this,
1734
+ this.utils.matcherHint(r, "element"),
1735
+ "Expected element to be marked as invalid with attribute",
1736
+ `${z}="${String(!0)}"`,
1737
+ "Received",
1738
+ e.hasAttribute("aria-invalid") ? `${z}="${e.getAttribute(z)}` : null
1739
+ )
1740
+ };
1741
+ const f = le(
1742
+ ((d = e.ownerDocument.getElementById(i)) == null ? void 0 : d.textContent) ?? ""
1743
+ );
1744
+ return {
1745
+ pass: t === void 0 ? !!f : t instanceof RegExp ? t.test(f) : this.equals(f, t),
1746
+ message: () => R(
1747
+ this,
1748
+ this.utils.matcherHint(r, "element"),
1749
+ `Expected element ${n} have accessible error message`,
1750
+ t ?? "",
1751
+ "Received",
1752
+ f
1753
+ )
1754
+ };
1755
+ }
1756
+ const Nr = Or(Ft);
1757
+ function we(e, t) {
1758
+ E(e, we, this);
1759
+ const n = Cr(e);
1760
+ return {
1761
+ pass: n.some((i) => i === t),
1762
+ message: () => {
1763
+ const i = this.isNot ? "not to" : "to";
1764
+ return R(
1765
+ this,
1766
+ this.utils.matcherHint(
1767
+ `${this.isNot ? ".not" : ""}.${we.name}`,
1768
+ "element",
1769
+ ""
1770
+ ),
1771
+ `Expected element ${i} have role`,
1772
+ t,
1773
+ "Received",
1774
+ n.join(", ")
1775
+ );
1776
+ }
1777
+ };
1778
+ }
1779
+ function Cr(e) {
1780
+ return e.hasAttribute("role") ? e.getAttribute("role").split(" ").filter(Boolean) : Hr(e);
1781
+ }
1782
+ function Hr(e) {
1783
+ for (const { match: t, roles: n } of Nr)
1784
+ if (t(e))
1785
+ return [...n];
1786
+ return [];
1787
+ }
1788
+ function Or(e) {
1789
+ function t({ name: l, attributes: u }) {
1790
+ return `${l}${u.map(({ name: f, value: d, constraints: m = [] }) => m.indexOf("undefined") !== -1 ? `:not([${f}])` : d ? `[${f}="${d}"]` : `[${f}]`).join("")}`;
1791
+ }
1792
+ function n({ attributes: l = [] }) {
1793
+ return l.length;
1794
+ }
1795
+ function r({ specificity: l }, { specificity: u }) {
1796
+ return u - l;
1797
+ }
1798
+ function i(l) {
1799
+ let { attributes: u = [] } = l;
1800
+ const f = u.findIndex(
1801
+ (m) => m.value && m.name === "type" && m.value === "text"
1802
+ );
1803
+ f >= 0 && (u = [
1804
+ ...u.slice(0, f),
1805
+ ...u.slice(f + 1)
1806
+ ]);
1807
+ const d = t({ ...l, attributes: u });
1808
+ return (m) => f >= 0 && m.type !== "text" ? !1 : m.matches(d);
1809
+ }
1810
+ let s = [];
1811
+ for (const [l, u] of e.entries())
1812
+ s = [
1813
+ ...s,
1814
+ {
1815
+ match: i(l),
1816
+ roles: Array.from(u),
1817
+ specificity: n(l)
1818
+ }
1819
+ ];
1820
+ return s.sort(r);
1821
+ }
1822
+ function $e(e, t) {
1823
+ E(e, $e, this);
1824
+ const n = zn(e), r = arguments.length === 1;
1825
+ let i = !1;
1826
+ return r ? i = n !== "" : i = t instanceof RegExp ? t.test(n) : this.equals(n, t), {
1827
+ pass: i,
1828
+ message: () => {
1829
+ const s = this.isNot ? "not to" : "to";
1830
+ return R(
1831
+ this,
1832
+ this.utils.matcherHint(
1833
+ `${this.isNot ? ".not" : ""}.${$e.name}`,
1834
+ "element",
1835
+ ""
1836
+ ),
1837
+ `Expected element ${s} have accessible name`,
1838
+ t,
1839
+ "Received",
1840
+ n
1841
+ );
1842
+ }
1843
+ };
1844
+ }
1845
+ function Ve(e, t, n) {
1846
+ return n === void 0 ? t : `${t}=${e(n)}`;
1847
+ }
1848
+ function Ir(e, t, n) {
1849
+ return n === void 0 ? `element.hasAttribute(${e(t)})` : `element.getAttribute(${e(t)}) === ${e(n)}`;
1850
+ }
1851
+ function mt(e, t, n) {
1852
+ E(e, mt, this);
1853
+ const r = n !== void 0, i = e.hasAttribute(t), s = e.getAttribute(t);
1854
+ return {
1855
+ pass: r ? i && this.equals(s, n) : i,
1856
+ message: () => {
1857
+ const l = this.isNot ? "not to" : "to", u = i ? Ve(this.utils.stringify, t, s) : null, f = this.utils.matcherHint(
1858
+ `${this.isNot ? ".not" : ""}.toHaveAttribute`,
1859
+ "element",
1860
+ this.utils.printExpected(t),
1861
+ {
1862
+ secondArgument: r ? this.utils.printExpected(n) : void 0,
1863
+ comment: Ir(
1864
+ this.utils.stringify,
1865
+ t,
1866
+ n
1867
+ )
1868
+ }
1869
+ );
1870
+ return R(
1871
+ this,
1872
+ f,
1873
+ `Expected the element ${l} have attribute`,
1874
+ Ve(this.utils.stringify, t, n),
1875
+ "Received",
1876
+ u
1877
+ );
1878
+ }
1879
+ };
1880
+ }
1881
+ function kr(e) {
1882
+ const t = e.pop();
1883
+ let n, r;
1884
+ return typeof t == "object" && !(t instanceof RegExp) ? (n = e, r = t) : (n = e.concat(t), r = { exact: !1 }), { expectedClassNames: n, options: r };
1885
+ }
1886
+ function Pe(e) {
1887
+ return e ? e.split(/\s+/).filter((t) => t.length > 0) : [];
1888
+ }
1889
+ function Me(e, t) {
1890
+ return e.every(
1891
+ (n) => typeof n == "string" ? t.includes(n) : t.some((r) => n.test(r))
1892
+ );
1893
+ }
1894
+ function gt(e, ...t) {
1895
+ E(e, gt, this);
1896
+ const { expectedClassNames: n, options: r } = kr(t), i = Pe(e.getAttribute("class")), s = n.reduce(
1897
+ (u, f) => u.concat(
1898
+ typeof f == "string" || !f ? Pe(f) : f
1899
+ ),
1900
+ []
1901
+ ), l = s.some((u) => u instanceof RegExp);
1902
+ if (r.exact && l)
1903
+ throw new Error("Exact option does not support RegExp expected class names");
1904
+ return r.exact ? {
1905
+ pass: Me(s, i) && s.length === i.length,
1906
+ message: () => {
1907
+ const u = this.isNot ? "not to" : "to";
1908
+ return R(
1909
+ this,
1910
+ this.utils.matcherHint(
1911
+ `${this.isNot ? ".not" : ""}.toHaveClass`,
1912
+ "element",
1913
+ this.utils.printExpected(s.join(" "))
1914
+ ),
1915
+ `Expected the element ${u} have EXACTLY defined classes`,
1916
+ s.join(" "),
1917
+ "Received",
1918
+ i.join(" ")
1919
+ );
1920
+ }
1921
+ } : s.length > 0 ? {
1922
+ pass: Me(s, i),
1923
+ message: () => {
1924
+ const u = this.isNot ? "not to" : "to";
1925
+ return R(
1926
+ this,
1927
+ this.utils.matcherHint(
1928
+ `${this.isNot ? ".not" : ""}.toHaveClass`,
1929
+ "element",
1930
+ this.utils.printExpected(s.join(" "))
1931
+ ),
1932
+ `Expected the element ${u} have class`,
1933
+ s.join(" "),
1934
+ "Received",
1935
+ i.join(" ")
1936
+ );
1937
+ }
1938
+ } : {
1939
+ pass: this.isNot ? i.length > 0 : !1,
1940
+ message: () => this.isNot ? R(
1941
+ this,
1942
+ this.utils.matcherHint(".not.toHaveClass", "element", ""),
1943
+ "Expected the element to have classes",
1944
+ "(none)",
1945
+ "Received",
1946
+ i.join(" ")
1947
+ ) : [
1948
+ this.utils.matcherHint(".toHaveClass", "element"),
1949
+ "At least one expected class must be provided."
1950
+ ].join(`
1951
+ `)
1952
+ };
1953
+ }
1954
+ function Dr(e, t) {
1955
+ const n = {}, r = e.createElement("div");
1956
+ return Object.keys(t).forEach((i) => {
1957
+ r.style[i] = t[i], n[i] = r.style[i];
1958
+ }), n;
1959
+ }
1960
+ function jr(e, t) {
1961
+ return !!Object.keys(e).length && Object.entries(e).every(([n, r]) => {
1962
+ const i = n.startsWith("--"), s = [n];
1963
+ return i || s.push(n.toLowerCase()), s.some(
1964
+ (l) => t[l] === r || t.getPropertyValue(l) === r
1965
+ );
1966
+ });
1967
+ }
1968
+ function _e(e) {
1969
+ return Object.keys(e).sort().map((t) => `${t}: ${e[t]};`).join(`
1970
+ `);
1971
+ }
1972
+ function Lr(e, t, n) {
1973
+ const r = Array.from(n).filter((s) => t[s] !== void 0).reduce(
1974
+ (s, l) => Object.assign(s, { [l]: n.getPropertyValue(l) }),
1975
+ {}
1976
+ );
1977
+ return e(_e(t), _e(r)).replace(`${ar.red("+ Received")}
1978
+ `, "");
1979
+ }
1980
+ function xe(e, t) {
1981
+ E(e, xe, this);
1982
+ const n = typeof t == "object" ? t : yr(t, xe, this), { getComputedStyle: r } = e.ownerDocument.defaultView, i = Dr(e.ownerDocument, n), s = r(e);
1983
+ return {
1984
+ pass: jr(i, s),
1985
+ message: () => {
1986
+ const l = `${this.isNot ? ".not" : ""}.toHaveStyle`;
1987
+ return [
1988
+ this.utils.matcherHint(l, "element", ""),
1989
+ Lr(this.utils.diff, i, s)
1990
+ ].join(`
1991
+
1992
+ `);
1993
+ }
1994
+ };
1995
+ }
1996
+ function bt(e) {
1997
+ return E(e, bt, this), {
1998
+ pass: e.ownerDocument.activeElement === e,
1999
+ message: () => [
2000
+ this.utils.matcherHint(
2001
+ `${this.isNot ? ".not" : ""}.toHaveFocus`,
2002
+ "element",
2003
+ ""
2004
+ ),
2005
+ "",
2006
+ ...this.isNot ? [
2007
+ "Received element is focused:",
2008
+ ` ${this.utils.printReceived(e)}`
2009
+ ] : [
2010
+ "Expected element with focus:",
2011
+ ` ${this.utils.printExpected(e)}`,
2012
+ "Received element with focus:",
2013
+ ` ${this.utils.printReceived(
2014
+ e.ownerDocument.activeElement
2015
+ )}`
2016
+ ]
2017
+ ].join(`
2018
+ `)
2019
+ };
2020
+ }
2021
+ function Tr(e) {
2022
+ const t = pr(e.map((n) => n.type));
2023
+ if (t.length !== 1)
2024
+ throw new Error(
2025
+ "Multiple form elements with the same name must be of the same type"
2026
+ );
2027
+ switch (t[0]) {
2028
+ case "radio": {
2029
+ const n = e.find((r) => r.checked);
2030
+ return n ? n.value : void 0;
2031
+ }
2032
+ case "checkbox":
2033
+ return e.filter((n) => n.checked).map((n) => n.value);
2034
+ default:
2035
+ return e.map((n) => n.value);
2036
+ }
2037
+ }
2038
+ function Vr(e, t) {
2039
+ const n = [...e.querySelectorAll(`[name="${gr(t)}"]`)];
2040
+ if (n.length !== 0)
2041
+ switch (n.length) {
2042
+ case 1:
2043
+ return at(n[0]);
2044
+ default:
2045
+ return Tr(n);
2046
+ }
2047
+ }
2048
+ function Pr(e) {
2049
+ return /\[\]$/.test(e) ? e.slice(0, -2) : e;
2050
+ }
2051
+ function Mr(e) {
2052
+ return Array.from(e.elements).map((n) => n.name).reduce(
2053
+ (n, r) => ({
2054
+ ...n,
2055
+ [Pr(r)]: Vr(e, r)
2056
+ }),
2057
+ {}
2058
+ );
2059
+ }
2060
+ function vt(e, t) {
2061
+ if (E(e, vt, this), !e.elements)
2062
+ throw new Error("toHaveFormValues must be called on a form or a fieldset");
2063
+ const n = Mr(e);
2064
+ return {
2065
+ pass: Object.entries(t).every(
2066
+ ([r, i]) => rt(n[r], i, ut)
2067
+ ),
2068
+ message: () => {
2069
+ const r = this.isNot ? "not to" : "to", i = `${this.isNot ? ".not" : ""}.toHaveFormValues`, s = Object.keys(n).filter((l) => t.hasOwnProperty(l)).reduce((l, u) => ({ ...l, [u]: n[u] }), {});
2070
+ return [
2071
+ this.utils.matcherHint(i, "element", ""),
2072
+ `Expected the element ${r} have form values`,
2073
+ this.utils.diff(t, s)
2074
+ ].join(`
2075
+
2076
+ `);
2077
+ }
2078
+ };
2079
+ }
2080
+ function _r(e) {
2081
+ const { getComputedStyle: t } = e.ownerDocument.defaultView, { display: n, visibility: r, opacity: i } = t(e);
2082
+ return n !== "none" && r !== "hidden" && r !== "collapse" && i !== "0" && i !== 0;
2083
+ }
2084
+ function Br(e, t) {
2085
+ let n;
2086
+ return t ? n = e.nodeName === "DETAILS" && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0 : n = e.nodeName === "DETAILS" ? e.hasAttribute("open") : !0, !e.hasAttribute("hidden") && n;
2087
+ }
2088
+ function yt(e, t) {
2089
+ return _r(e) && Br(e, t) && (!e.parentElement || yt(e.parentElement, e));
2090
+ }
2091
+ function Et(e) {
2092
+ E(e, Et, this);
2093
+ const t = e.ownerDocument === e.getRootNode({ composed: !0 }), n = t && yt(e);
2094
+ return {
2095
+ pass: n,
2096
+ message: () => {
2097
+ const r = n ? "is" : "is not";
2098
+ return [
2099
+ this.utils.matcherHint(
2100
+ `${this.isNot ? ".not" : ""}.toBeVisible`,
2101
+ "element",
2102
+ ""
2103
+ ),
2104
+ "",
2105
+ `Received element ${r} visible${t ? "" : " (element is not in the document)"}:`,
2106
+ ` ${this.utils.printReceived(e.cloneNode(!1))}`
2107
+ ].join(`
2108
+ `);
2109
+ }
2110
+ };
2111
+ }
2112
+ const qr = [
2113
+ "fieldset",
2114
+ "input",
2115
+ "select",
2116
+ "optgroup",
2117
+ "option",
2118
+ "button",
2119
+ "textarea"
2120
+ ];
2121
+ function Fr(e, t) {
2122
+ return F(e) === "legend" && F(t) === "fieldset" && e.isSameNode(
2123
+ Array.from(t.children).find((n) => F(n) === "legend")
2124
+ );
2125
+ }
2126
+ function Gr(e, t) {
2127
+ return $t(t) && !Fr(e, t);
2128
+ }
2129
+ function Ur(e) {
2130
+ return e.includes("-");
2131
+ }
2132
+ function wt(e) {
2133
+ const t = F(e);
2134
+ return qr.includes(t) || Ur(t);
2135
+ }
2136
+ function $t(e) {
2137
+ return wt(e) && e.hasAttribute("disabled");
2138
+ }
2139
+ function xt(e) {
2140
+ const t = e.parentElement;
2141
+ return !!t && (Gr(e, t) || xt(t));
2142
+ }
2143
+ function At(e) {
2144
+ return wt(e) && ($t(e) || xt(e));
2145
+ }
2146
+ function St(e) {
2147
+ E(e, St, this);
2148
+ const t = At(e);
2149
+ return {
2150
+ pass: t,
2151
+ message: () => {
2152
+ const n = t ? "is" : "is not";
2153
+ return [
2154
+ this.utils.matcherHint(
2155
+ `${this.isNot ? ".not" : ""}.toBeDisabled`,
2156
+ "element",
2157
+ ""
2158
+ ),
2159
+ "",
2160
+ `Received element ${n} disabled:`,
2161
+ ` ${this.utils.printReceived(e.cloneNode(!1))}`
2162
+ ].join(`
2163
+ `);
2164
+ }
2165
+ };
2166
+ }
2167
+ function Rt(e) {
2168
+ E(e, Rt, this);
2169
+ const t = !At(e);
2170
+ return {
2171
+ pass: t,
2172
+ message: () => {
2173
+ const n = t ? "is" : "is not";
2174
+ return [
2175
+ this.utils.matcherHint(
2176
+ `${this.isNot ? ".not" : ""}.toBeEnabled`,
2177
+ "element",
2178
+ ""
2179
+ ),
2180
+ "",
2181
+ `Received element ${n} enabled:`,
2182
+ ` ${this.utils.printReceived(e.cloneNode(!1))}`
2183
+ ].join(`
2184
+ `);
2185
+ }
2186
+ };
2187
+ }
2188
+ const Wr = ["select", "textarea"], Xr = ["input", "select", "textarea"], zr = [
2189
+ "color",
2190
+ "hidden",
2191
+ "range",
2192
+ "submit",
2193
+ "image",
2194
+ "reset"
2195
+ ], Kr = [
2196
+ "combobox",
2197
+ "gridcell",
2198
+ "radiogroup",
2199
+ "spinbutton",
2200
+ "tree"
2201
+ ];
2202
+ function Yr(e) {
2203
+ return Wr.includes(F(e)) && e.hasAttribute("required");
2204
+ }
2205
+ function Qr(e) {
2206
+ return F(e) === "input" && e.hasAttribute("required") && (e.hasAttribute("type") && !zr.includes(e.getAttribute("type")) || !e.hasAttribute("type"));
2207
+ }
2208
+ function Jr(e) {
2209
+ return e.hasAttribute("aria-required") && e.getAttribute("aria-required") === "true" && (Xr.includes(F(e)) || e.hasAttribute("role") && Kr.includes(e.getAttribute("role")));
2210
+ }
2211
+ function Nt(e) {
2212
+ E(e, Nt, this);
2213
+ const t = Yr(e) || Qr(e) || Jr(e);
2214
+ return {
2215
+ pass: t,
2216
+ message: () => {
2217
+ const n = t ? "is" : "is not";
2218
+ return [
2219
+ this.utils.matcherHint(
2220
+ `${this.isNot ? ".not" : ""}.toBeRequired`,
2221
+ "element",
2222
+ ""
2223
+ ),
2224
+ "",
2225
+ `Received element ${n} required:`,
2226
+ ` ${this.utils.printReceived(e.cloneNode(!1))}`
2227
+ ].join(`
2228
+ `);
2229
+ }
2230
+ };
2231
+ }
2232
+ const Zr = ["form", "input", "select", "textarea"];
2233
+ function ei(e) {
2234
+ return e.hasAttribute("aria-invalid") && e.getAttribute("aria-invalid") !== "false";
2235
+ }
2236
+ function ti(e) {
2237
+ return Zr.includes(F(e));
2238
+ }
2239
+ function Ct(e) {
2240
+ const t = ei(e);
2241
+ return ti(e) ? t || !e.checkValidity() : t;
2242
+ }
2243
+ function Ht(e) {
2244
+ E(e, Ht, this);
2245
+ const t = Ct(e);
2246
+ return {
2247
+ pass: t,
2248
+ message: () => {
2249
+ const n = t ? "is" : "is not";
2250
+ return [
2251
+ this.utils.matcherHint(
2252
+ `${this.isNot ? ".not" : ""}.toBeInvalid`,
2253
+ "element",
2254
+ ""
2255
+ ),
2256
+ "",
2257
+ `Received element ${n} currently invalid:`,
2258
+ ` ${this.utils.printReceived(e.cloneNode(!1))}`
2259
+ ].join(`
2260
+ `);
2261
+ }
2262
+ };
2263
+ }
2264
+ function Ot(e) {
2265
+ E(e, Ot, this);
2266
+ const t = !Ct(e);
2267
+ return {
2268
+ pass: t,
2269
+ message: () => {
2270
+ const n = t ? "is" : "is not";
2271
+ return [
2272
+ this.utils.matcherHint(
2273
+ `${this.isNot ? ".not" : ""}.toBeValid`,
2274
+ "element",
2275
+ ""
2276
+ ),
2277
+ "",
2278
+ `Received element ${n} currently valid:`,
2279
+ ` ${this.utils.printReceived(e.cloneNode(!1))}`
2280
+ ].join(`
2281
+ `);
2282
+ }
2283
+ };
2284
+ }
2285
+ function It(e, t) {
2286
+ if (E(e, It, this), e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type))
2287
+ throw new Error(
2288
+ "input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead"
2289
+ );
2290
+ const n = at(e), r = t !== void 0;
2291
+ let i = t, s = n;
2292
+ return t == n && t !== n && (i = `${t} (${typeof t})`, s = `${n} (${typeof n})`), {
2293
+ pass: r ? rt(n, t, ut) : !!n,
2294
+ message: () => {
2295
+ const l = this.isNot ? "not to" : "to", u = this.utils.matcherHint(
2296
+ `${this.isNot ? ".not" : ""}.toHaveValue`,
2297
+ "element",
2298
+ t
2299
+ );
2300
+ return R(
2301
+ this,
2302
+ u,
2303
+ `Expected the element ${l} have value`,
2304
+ r ? i : "(any)",
2305
+ "Received",
2306
+ s
2307
+ );
2308
+ }
2309
+ };
2310
+ }
2311
+ function kt(e, t) {
2312
+ E(e, kt, this);
2313
+ const n = e.tagName.toLowerCase();
2314
+ if (!["select", "input", "textarea"].includes(n))
2315
+ throw new Error(
2316
+ ".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead."
2317
+ );
2318
+ if (n === "input" && ["radio", "checkbox"].includes(e.type))
2319
+ throw new Error(
2320
+ `.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`
2321
+ );
2322
+ const r = ni(n, e), i = ri(t), s = i.filter(
2323
+ (f) => r.some(
2324
+ (d) => f instanceof RegExp ? f.test(d) : this.equals(d, String(f))
2325
+ )
2326
+ ).length, l = s === r.length, u = s === i.length;
2327
+ return {
2328
+ pass: l && u,
2329
+ message: () => R(
2330
+ this,
2331
+ this.utils.matcherHint(
2332
+ `${this.isNot ? ".not" : ""}.toHaveDisplayValue`,
2333
+ "element",
2334
+ ""
2335
+ ),
2336
+ `Expected element ${this.isNot ? "not " : ""}to have display value`,
2337
+ t,
2338
+ "Received",
2339
+ r
2340
+ )
2341
+ };
2342
+ }
2343
+ function ni(e, t) {
2344
+ return e === "select" ? Array.from(t).filter((n) => n.selected).map((n) => n.textContent) : [t.value];
2345
+ }
2346
+ function ri(e) {
2347
+ return e instanceof Array ? e : [e];
2348
+ }
2349
+ function Dt(e) {
2350
+ E(e, Dt, this);
2351
+ const t = () => e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type), n = () => jt(e.getAttribute("role")) && ["true", "false"].includes(e.getAttribute("aria-checked"));
2352
+ if (!t() && !n())
2353
+ return {
2354
+ pass: !1,
2355
+ message: () => `only inputs with type="checkbox" or type="radio" or elements with ${ii()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`
2356
+ };
2357
+ const r = () => t() ? e.checked : e.getAttribute("aria-checked") === "true";
2358
+ return {
2359
+ pass: r(),
2360
+ message: () => {
2361
+ const i = r() ? "is" : "is not";
2362
+ return [
2363
+ this.utils.matcherHint(
2364
+ `${this.isNot ? ".not" : ""}.toBeChecked`,
2365
+ "element",
2366
+ ""
2367
+ ),
2368
+ "",
2369
+ `Received element ${i} checked:`,
2370
+ ` ${this.utils.printReceived(e.cloneNode(!1))}`
2371
+ ].join(`
2372
+ `);
2373
+ }
2374
+ };
2375
+ }
2376
+ function ii() {
2377
+ return xr(
2378
+ si().map((e) => `role="${e}"`),
2379
+ { lastWordConnector: " or " }
2380
+ );
2381
+ }
2382
+ function si() {
2383
+ return Be.keys().filter(jt);
2384
+ }
2385
+ function jt(e) {
2386
+ var t;
2387
+ return ((t = Be.get(e)) == null ? void 0 : t.props["aria-checked"]) !== void 0;
2388
+ }
2389
+ function Lt(e) {
2390
+ E(e, Lt, this);
2391
+ const t = () => e.tagName.toLowerCase() === "input" && e.type === "checkbox", n = () => e.getAttribute("role") === "checkbox";
2392
+ if (!t() && !n())
2393
+ return {
2394
+ pass: !1,
2395
+ message: () => 'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'
2396
+ };
2397
+ const r = () => {
2398
+ const i = e.getAttribute("aria-checked") === "mixed";
2399
+ return t() && e.indeterminate || i;
2400
+ };
2401
+ return {
2402
+ pass: r(),
2403
+ message: () => {
2404
+ const i = r() ? "is" : "is not";
2405
+ return [
2406
+ this.utils.matcherHint(
2407
+ `${this.isNot ? ".not" : ""}.toBePartiallyChecked`,
2408
+ "element",
2409
+ ""
2410
+ ),
2411
+ "",
2412
+ `Received element ${i} partially checked:`,
2413
+ ` ${this.utils.printReceived(e.cloneNode(!1))}`
2414
+ ].join(`
2415
+ `);
2416
+ }
2417
+ };
2418
+ }
2419
+ function Tt(e, t) {
2420
+ ue(
2421
+ "toHaveDescription",
2422
+ "Please use toHaveAccessibleDescription."
2423
+ ), E(e, Tt, this);
2424
+ const n = t !== void 0, i = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean);
2425
+ let s = "";
2426
+ if (i.length > 0) {
2427
+ const l = e.ownerDocument, u = i.map((f) => l.getElementById(f)).filter(Boolean);
2428
+ s = le(u.map((f) => f.textContent).join(" "));
2429
+ }
2430
+ return {
2431
+ pass: n ? t instanceof RegExp ? t.test(s) : this.equals(s, t) : !!s,
2432
+ message: () => {
2433
+ const l = this.isNot ? "not to" : "to";
2434
+ return R(
2435
+ this,
2436
+ this.utils.matcherHint(
2437
+ `${this.isNot ? ".not" : ""}.toHaveDescription`,
2438
+ "element",
2439
+ ""
2440
+ ),
2441
+ `Expected the element ${l} have description`,
2442
+ this.utils.printExpected(t),
2443
+ "Received",
2444
+ this.utils.printReceived(s)
2445
+ );
2446
+ }
2447
+ };
2448
+ }
2449
+ function Vt(e, t) {
2450
+ if (ue("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), E(e, Vt, this), !e.hasAttribute("aria-invalid") || e.getAttribute("aria-invalid") === "false") {
2451
+ const l = this.isNot ? ".not" : "";
2452
+ return {
2453
+ pass: !1,
2454
+ message: () => R(
2455
+ this,
2456
+ this.utils.matcherHint(`${l}.toHaveErrorMessage`, "element", ""),
2457
+ "Expected the element to have invalid state indicated by",
2458
+ 'aria-invalid="true"',
2459
+ "Received",
2460
+ e.hasAttribute("aria-invalid") ? `aria-invalid="${e.getAttribute("aria-invalid")}"` : this.utils.printReceived("")
2461
+ )
2462
+ };
2463
+ }
2464
+ const n = t !== void 0, i = (e.getAttribute("aria-errormessage") || "").split(/\s+/).filter(Boolean);
2465
+ let s = "";
2466
+ if (i.length > 0) {
2467
+ const l = e.ownerDocument, u = i.map((f) => l.getElementById(f)).filter(Boolean);
2468
+ s = le(
2469
+ u.map((f) => f.textContent).join(" ")
2470
+ );
2471
+ }
2472
+ return {
2473
+ pass: n ? t instanceof RegExp ? t.test(s) : this.equals(s, t) : !!s,
2474
+ message: () => {
2475
+ const l = this.isNot ? "not to" : "to";
2476
+ return R(
2477
+ this,
2478
+ this.utils.matcherHint(
2479
+ `${this.isNot ? ".not" : ""}.toHaveErrorMessage`,
2480
+ "element",
2481
+ ""
2482
+ ),
2483
+ `Expected the element ${l} have error message`,
2484
+ this.utils.printExpected(t),
2485
+ "Received",
2486
+ this.utils.printReceived(s)
2487
+ );
2488
+ }
2489
+ };
2490
+ }
2491
+ var oi = /* @__PURE__ */ Object.freeze({
2492
+ __proto__: null,
2493
+ toBeChecked: Dt,
2494
+ toBeDisabled: St,
2495
+ toBeEmpty: ct,
2496
+ toBeEmptyDOMElement: ft,
2497
+ toBeEnabled: Rt,
2498
+ toBeInTheDOM: ve,
2499
+ toBeInTheDocument: lt,
2500
+ toBeInvalid: Ht,
2501
+ toBePartiallyChecked: Lt,
2502
+ toBeRequired: Nt,
2503
+ toBeValid: Ot,
2504
+ toBeVisible: Et,
2505
+ toContainElement: ye,
2506
+ toContainHTML: dt,
2507
+ toHaveAccessibleDescription: Ee,
2508
+ toHaveAccessibleErrorMessage: pt,
2509
+ toHaveAccessibleName: $e,
2510
+ toHaveAttribute: mt,
2511
+ toHaveClass: gt,
2512
+ toHaveDescription: Tt,
2513
+ toHaveDisplayValue: kt,
2514
+ toHaveErrorMessage: Vt,
2515
+ toHaveFocus: bt,
2516
+ toHaveFormValues: vt,
2517
+ toHaveRole: we,
2518
+ toHaveStyle: xe,
2519
+ toHaveTextContent: ht,
2520
+ toHaveValue: It
2521
+ });
2522
+ expect.extend(oi);