@uva-glass/component-library 3.5.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Lexical.prod-CniF7zEE.js → Lexical.prod-CWyHQUEM.js} +738 -736
- package/dist/Lexical.prod-CWyHQUEM.js.map +1 -0
- package/dist/{LexicalClipboard.prod-BXVNkwwS.js → LexicalClipboard.prod-DbqSWANZ.js} +41 -41
- package/dist/{LexicalClipboard.prod-BXVNkwwS.js.map → LexicalClipboard.prod-DbqSWANZ.js.map} +1 -1
- package/dist/LexicalLink.prod-DbxnRszt.js +275 -0
- package/dist/LexicalLink.prod-DbxnRszt.js.map +1 -0
- package/dist/{LexicalList.prod-BUcoZhe4.js → LexicalList.prod-pZmYrwOC.js} +212 -172
- package/dist/LexicalList.prod-pZmYrwOC.js.map +1 -0
- package/dist/{LexicalSelection.prod-BfAlhGGm.js → LexicalSelection.prod-DkvWlcln.js} +14 -14
- package/dist/{LexicalSelection.prod-BfAlhGGm.js.map → LexicalSelection.prod-DkvWlcln.js.map} +1 -1
- package/dist/LexicalTable.prod-C6duSS2P.js +1720 -0
- package/dist/LexicalTable.prod-C6duSS2P.js.map +1 -0
- package/dist/{LexicalUtils.prod-DVr8VsHc.js → LexicalUtils.prod-Dny9Fu94.js} +43 -43
- package/dist/{LexicalUtils.prod-DVr8VsHc.js.map → LexicalUtils.prod-Dny9Fu94.js.map} +1 -1
- package/dist/{TablePlugin-MjKuocl4.js → TablePlugin-Ba6PaBhf.js} +28 -28
- package/dist/{TablePlugin-MjKuocl4.js.map → TablePlugin-Ba6PaBhf.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +2 -2
- package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
- package/dist/components/ActionList/ActionList.test.js +2 -2
- package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
- package/dist/components/Attention/Attention.test.js +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +1 -1
- package/dist/components/Buttons/Button.test.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +1 -1
- package/dist/components/Card/Card.test.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.test.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/Icon/icons/index.d.ts +12 -0
- package/dist/components/Icon/icons/index.js +163 -153
- package/dist/components/Icon/icons/index.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/Label/Label.test.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +35 -35
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +11 -11
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +7 -7
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +237 -235
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +1 -1
- package/dist/components/Timeline/Timeline.test.js +2 -2
- package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/{helpers-ChM6xtQG.js → helpers-BUwfVZhW.js} +15 -15
- package/dist/{helpers-ChM6xtQG.js.map → helpers-BUwfVZhW.js.map} +1 -1
- package/dist/{index-hwMTfLfH.js → index-Ck15_vKo.js} +2 -2
- package/dist/{index-hwMTfLfH.js.map → index-Ck15_vKo.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{react.esm-DI5ilWeT.js → react.esm-CMg7bmSn.js} +372 -366
- package/dist/{react.esm-DI5ilWeT.js.map → react.esm-CMg7bmSn.js.map} +1 -1
- package/package.json +28 -28
- package/dist/Lexical.prod-CniF7zEE.js.map +0 -1
- package/dist/LexicalLink.prod-Du8ZoNsh.js +0 -259
- package/dist/LexicalLink.prod-Du8ZoNsh.js.map +0 -1
- package/dist/LexicalList.prod-BUcoZhe4.js.map +0 -1
- package/dist/LexicalTable.prod-CYafu_j9.js +0 -1555
- package/dist/LexicalTable.prod-CYafu_j9.js.map +0 -1
|
@@ -9,7 +9,7 @@ ke.exports;
|
|
|
9
9
|
var xt;
|
|
10
10
|
function tr() {
|
|
11
11
|
return xt || (xt = 1, function(e) {
|
|
12
|
-
const r = (f = 0) => (u) => `\x1B[${38 + f};5;${u}m`,
|
|
12
|
+
const r = (f = 0) => (u) => `\x1B[${38 + f};5;${u}m`, a = (f = 0) => (u, p, n) => `\x1B[${38 + f};2;${u};${p};${n}m`;
|
|
13
13
|
function s() {
|
|
14
14
|
const f = /* @__PURE__ */ new Map(), u = {
|
|
15
15
|
modifier: {
|
|
@@ -65,11 +65,11 @@ function tr() {
|
|
|
65
65
|
};
|
|
66
66
|
u.color.gray = u.color.blackBright, u.bgColor.bgGray = u.bgColor.bgBlackBright, u.color.grey = u.color.blackBright, u.bgColor.bgGrey = u.bgColor.bgBlackBright;
|
|
67
67
|
for (const [p, n] of Object.entries(u)) {
|
|
68
|
-
for (const [
|
|
69
|
-
u[
|
|
68
|
+
for (const [o, l] of Object.entries(n))
|
|
69
|
+
u[o] = {
|
|
70
70
|
open: `\x1B[${l[0]}m`,
|
|
71
71
|
close: `\x1B[${l[1]}m`
|
|
72
|
-
}, n[
|
|
72
|
+
}, n[o] = u[o], f.set(l[0], l[1]);
|
|
73
73
|
Object.defineProperty(u, p, {
|
|
74
74
|
value: n,
|
|
75
75
|
enumerable: !1
|
|
@@ -78,9 +78,9 @@ function tr() {
|
|
|
78
78
|
return Object.defineProperty(u, "codes", {
|
|
79
79
|
value: f,
|
|
80
80
|
enumerable: !1
|
|
81
|
-
}), u.color.close = "\x1B[39m", u.bgColor.close = "\x1B[49m", u.color.ansi256 = r(), u.color.ansi16m =
|
|
81
|
+
}), u.color.close = "\x1B[39m", u.bgColor.close = "\x1B[49m", u.color.ansi256 = r(), u.color.ansi16m = a(), u.bgColor.ansi256 = r(10), u.bgColor.ansi16m = a(10), Object.defineProperties(u, {
|
|
82
82
|
rgbToAnsi256: {
|
|
83
|
-
value: (p, n,
|
|
83
|
+
value: (p, n, o) => p === n && n === o ? p < 8 ? 16 : p > 248 ? 231 : Math.round((p - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(p / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(o / 255 * 5),
|
|
84
84
|
enumerable: !1
|
|
85
85
|
},
|
|
86
86
|
hexToRgb: {
|
|
@@ -88,9 +88,9 @@ function tr() {
|
|
|
88
88
|
const n = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(p.toString(16));
|
|
89
89
|
if (!n)
|
|
90
90
|
return [0, 0, 0];
|
|
91
|
-
let { colorString:
|
|
92
|
-
|
|
93
|
-
const l = Number.parseInt(
|
|
91
|
+
let { colorString: o } = n.groups;
|
|
92
|
+
o.length === 3 && (o = o.split("").map((i) => i + i).join(""));
|
|
93
|
+
const l = Number.parseInt(o, 16);
|
|
94
94
|
return [
|
|
95
95
|
l >> 16 & 255,
|
|
96
96
|
l >> 8 & 255,
|
|
@@ -116,14 +116,14 @@ function He() {
|
|
|
116
116
|
if (Ot) return be;
|
|
117
117
|
Ot = 1, Object.defineProperty(be, "__esModule", {
|
|
118
118
|
value: !0
|
|
119
|
-
}), be.printIteratorEntries = t, be.printIteratorValues = r, be.printListItems =
|
|
119
|
+
}), be.printIteratorEntries = t, be.printIteratorValues = r, be.printListItems = a, be.printObjectProperties = s;
|
|
120
120
|
const e = (f, u) => {
|
|
121
121
|
const p = Object.keys(f).sort(u);
|
|
122
122
|
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(f).forEach((n) => {
|
|
123
123
|
Object.getOwnPropertyDescriptor(f, n).enumerable && p.push(n);
|
|
124
124
|
}), p;
|
|
125
125
|
};
|
|
126
|
-
function t(f, u, p, n,
|
|
126
|
+
function t(f, u, p, n, o, l, i = ": ") {
|
|
127
127
|
let d = "", m = f.next();
|
|
128
128
|
if (!m.done) {
|
|
129
129
|
d += u.spacingOuter;
|
|
@@ -134,13 +134,13 @@ function He() {
|
|
|
134
134
|
u,
|
|
135
135
|
E,
|
|
136
136
|
n,
|
|
137
|
-
|
|
137
|
+
o
|
|
138
138
|
), w = l(
|
|
139
139
|
m.value[1],
|
|
140
140
|
u,
|
|
141
141
|
E,
|
|
142
142
|
n,
|
|
143
|
-
|
|
143
|
+
o
|
|
144
144
|
);
|
|
145
145
|
d += E + h + i + w, m = f.next(), m.done ? u.min || (d += ",") : d += "," + u.spacingInner;
|
|
146
146
|
}
|
|
@@ -148,36 +148,36 @@ function He() {
|
|
|
148
148
|
}
|
|
149
149
|
return d;
|
|
150
150
|
}
|
|
151
|
-
function r(f, u, p, n,
|
|
151
|
+
function r(f, u, p, n, o, l) {
|
|
152
152
|
let i = "", d = f.next();
|
|
153
153
|
if (!d.done) {
|
|
154
154
|
i += u.spacingOuter;
|
|
155
155
|
const m = p + u.indent;
|
|
156
156
|
for (; !d.done; )
|
|
157
|
-
i += m + l(d.value, u, m, n,
|
|
157
|
+
i += m + l(d.value, u, m, n, o), d = f.next(), d.done ? u.min || (i += ",") : i += "," + u.spacingInner;
|
|
158
158
|
i += u.spacingOuter + p;
|
|
159
159
|
}
|
|
160
160
|
return i;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function a(f, u, p, n, o, l) {
|
|
163
163
|
let i = "";
|
|
164
164
|
if (f.length) {
|
|
165
165
|
i += u.spacingOuter;
|
|
166
166
|
const d = p + u.indent;
|
|
167
167
|
for (let m = 0; m < f.length; m++)
|
|
168
|
-
i += d, m in f && (i += l(f[m], u, d, n,
|
|
168
|
+
i += d, m in f && (i += l(f[m], u, d, n, o)), m < f.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
|
|
169
169
|
i += u.spacingOuter + p;
|
|
170
170
|
}
|
|
171
171
|
return i;
|
|
172
172
|
}
|
|
173
|
-
function s(f, u, p, n,
|
|
173
|
+
function s(f, u, p, n, o, l) {
|
|
174
174
|
let i = "";
|
|
175
175
|
const d = e(f, u.compareKeys);
|
|
176
176
|
if (d.length) {
|
|
177
177
|
i += u.spacingOuter;
|
|
178
178
|
const m = p + u.indent;
|
|
179
179
|
for (let E = 0; E < d.length; E++) {
|
|
180
|
-
const h = d[E], w = l(h, u, m, n,
|
|
180
|
+
const h = d[E], w = l(h, u, m, n, o), c = l(f[h], u, m, n, o);
|
|
181
181
|
i += m + w + ": " + c, E < d.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
|
|
182
182
|
}
|
|
183
183
|
i += u.spacingOuter + p;
|
|
@@ -195,26 +195,26 @@ function qr() {
|
|
|
195
195
|
var e = He(), t = function() {
|
|
196
196
|
return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
197
197
|
}(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
|
|
198
|
-
const
|
|
199
|
-
const h =
|
|
198
|
+
const a = typeof r == "function" && r.for ? r.for("jest.asymmetricMatcher") : 1267621, s = " ", f = (o, l, i, d, m, E) => {
|
|
199
|
+
const h = o.toString();
|
|
200
200
|
return h === "ArrayContaining" || h === "ArrayNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "[" + (0, e.printListItems)(
|
|
201
|
-
|
|
201
|
+
o.sample,
|
|
202
202
|
l,
|
|
203
203
|
i,
|
|
204
204
|
d,
|
|
205
205
|
m,
|
|
206
206
|
E
|
|
207
207
|
) + "]" : h === "ObjectContaining" || h === "ObjectNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "{" + (0, e.printObjectProperties)(
|
|
208
|
-
|
|
208
|
+
o.sample,
|
|
209
209
|
l,
|
|
210
210
|
i,
|
|
211
211
|
d,
|
|
212
212
|
m,
|
|
213
213
|
E
|
|
214
|
-
) + "}" : h === "StringMatching" || h === "StringNotMatching" || h === "StringContaining" || h === "StringNotContaining" ? h + s + E(
|
|
214
|
+
) + "}" : h === "StringMatching" || h === "StringNotMatching" || h === "StringContaining" || h === "StringNotContaining" ? h + s + E(o.sample, l, i, d, m) : o.toAsymmetricMatcher();
|
|
215
215
|
};
|
|
216
216
|
ee.serialize = f;
|
|
217
|
-
const u = (
|
|
217
|
+
const u = (o) => o && o.$$typeof === a;
|
|
218
218
|
ee.test = u;
|
|
219
219
|
var n = {
|
|
220
220
|
serialize: f,
|
|
@@ -242,8 +242,8 @@ function kr() {
|
|
|
242
242
|
function r(n) {
|
|
243
243
|
return n && n.__esModule ? n : { default: n };
|
|
244
244
|
}
|
|
245
|
-
const
|
|
246
|
-
switch (
|
|
245
|
+
const a = (n) => n.replace((0, e.default)(), (o) => {
|
|
246
|
+
switch (o) {
|
|
247
247
|
case t.default.red.close:
|
|
248
248
|
case t.default.green.close:
|
|
249
249
|
case t.default.cyan.close:
|
|
@@ -288,7 +288,7 @@ function kr() {
|
|
|
288
288
|
}
|
|
289
289
|
}), s = (n) => typeof n == "string" && !!n.match((0, e.default)());
|
|
290
290
|
te.test = s;
|
|
291
|
-
const f = (n,
|
|
291
|
+
const f = (n, o, l, i, d, m) => m(a(n), o, l, i, d);
|
|
292
292
|
te.serialize = f;
|
|
293
293
|
var p = {
|
|
294
294
|
serialize: f,
|
|
@@ -303,7 +303,7 @@ function Fr() {
|
|
|
303
303
|
value: !0
|
|
304
304
|
}), re.test = re.serialize = re.default = void 0;
|
|
305
305
|
var e = He();
|
|
306
|
-
const t = " ", r = ["DOMStringMap", "NamedNodeMap"],
|
|
306
|
+
const t = " ", r = ["DOMStringMap", "NamedNodeMap"], a = /^(HTML\w*Collection|NodeList)$/, s = (l) => r.indexOf(l) !== -1 || a.test(l), f = (l) => l && l.constructor && !!l.constructor.name && s(l.constructor.name);
|
|
307
307
|
re.test = f;
|
|
308
308
|
const u = (l) => l.constructor.name === "NamedNodeMap", p = (l, i, d, m, E, h) => {
|
|
309
309
|
const w = l.constructor.name;
|
|
@@ -324,11 +324,11 @@ function Fr() {
|
|
|
324
324
|
) + "]");
|
|
325
325
|
};
|
|
326
326
|
re.serialize = p;
|
|
327
|
-
var
|
|
327
|
+
var o = {
|
|
328
328
|
serialize: p,
|
|
329
329
|
test: f
|
|
330
330
|
};
|
|
331
|
-
return re.default =
|
|
331
|
+
return re.default = o, re;
|
|
332
332
|
}
|
|
333
333
|
var ne = {}, H = {}, Le = {}, Bt;
|
|
334
334
|
function $r() {
|
|
@@ -351,37 +351,37 @@ function gt() {
|
|
|
351
351
|
function t(n) {
|
|
352
352
|
return n && n.__esModule ? n : { default: n };
|
|
353
353
|
}
|
|
354
|
-
const r = (n,
|
|
354
|
+
const r = (n, o, l, i, d, m, E) => {
|
|
355
355
|
const h = i + l.indent, w = l.colors;
|
|
356
356
|
return n.map((c) => {
|
|
357
|
-
const A =
|
|
357
|
+
const A = o[c];
|
|
358
358
|
let I = E(A, l, h, d, m);
|
|
359
359
|
return typeof A != "string" && (I.indexOf(`
|
|
360
360
|
`) !== -1 && (I = l.spacingOuter + h + I + l.spacingOuter + i), I = "{" + I + "}"), l.spacingInner + i + w.prop.open + c + w.prop.close + "=" + w.value.open + I + w.value.close;
|
|
361
361
|
}).join("");
|
|
362
362
|
};
|
|
363
363
|
H.printProps = r;
|
|
364
|
-
const
|
|
365
|
-
(E) =>
|
|
364
|
+
const a = (n, o, l, i, d, m) => n.map(
|
|
365
|
+
(E) => o.spacingOuter + l + (typeof E == "string" ? s(E, o) : m(E, o, l, i, d))
|
|
366
366
|
).join("");
|
|
367
|
-
H.printChildren =
|
|
368
|
-
const s = (n,
|
|
369
|
-
const l =
|
|
367
|
+
H.printChildren = a;
|
|
368
|
+
const s = (n, o) => {
|
|
369
|
+
const l = o.colors.content;
|
|
370
370
|
return l.open + (0, e.default)(n) + l.close;
|
|
371
371
|
};
|
|
372
372
|
H.printText = s;
|
|
373
|
-
const f = (n,
|
|
374
|
-
const l =
|
|
373
|
+
const f = (n, o) => {
|
|
374
|
+
const l = o.colors.comment;
|
|
375
375
|
return l.open + "<!--" + (0, e.default)(n) + "-->" + l.close;
|
|
376
376
|
};
|
|
377
377
|
H.printComment = f;
|
|
378
|
-
const u = (n,
|
|
378
|
+
const u = (n, o, l, i, d) => {
|
|
379
379
|
const m = i.colors.tag;
|
|
380
|
-
return m.open + "<" + n + (
|
|
380
|
+
return m.open + "<" + n + (o && m.close + o + i.spacingOuter + d + m.open) + (l ? ">" + m.close + l + i.spacingOuter + d + m.open + "</" + n : (o && !i.min ? "" : " ") + "/") + ">" + m.close;
|
|
381
381
|
};
|
|
382
382
|
H.printElement = u;
|
|
383
|
-
const p = (n,
|
|
384
|
-
const l =
|
|
383
|
+
const p = (n, o) => {
|
|
384
|
+
const l = o.colors.tag;
|
|
385
385
|
return l.open + "<" + n + l.close + " …" + l.open + " />" + l.close;
|
|
386
386
|
};
|
|
387
387
|
return H.printElementAsLeaf = p, H;
|
|
@@ -393,7 +393,7 @@ function zr() {
|
|
|
393
393
|
value: !0
|
|
394
394
|
}), ne.test = ne.serialize = ne.default = void 0;
|
|
395
395
|
var e = gt();
|
|
396
|
-
const t = 1, r = 3,
|
|
396
|
+
const t = 1, r = 3, a = 8, s = 11, f = /^((HTML|SVG)\w*)?Element$/, u = (h) => {
|
|
397
397
|
try {
|
|
398
398
|
return typeof h.hasAttribute == "function" && h.hasAttribute("is");
|
|
399
399
|
} catch {
|
|
@@ -401,23 +401,23 @@ function zr() {
|
|
|
401
401
|
}
|
|
402
402
|
}, p = (h) => {
|
|
403
403
|
const w = h.constructor.name, { nodeType: c, tagName: A } = h, I = typeof A == "string" && A.includes("-") || u(h);
|
|
404
|
-
return c === t && (f.test(w) || I) || c === r && w === "Text" || c ===
|
|
404
|
+
return c === t && (f.test(w) || I) || c === r && w === "Text" || c === a && w === "Comment" || c === s && w === "DocumentFragment";
|
|
405
405
|
}, n = (h) => {
|
|
406
406
|
var w;
|
|
407
407
|
return (h == null || (w = h.constructor) === null || w === void 0 ? void 0 : w.name) && p(h);
|
|
408
408
|
};
|
|
409
409
|
ne.test = n;
|
|
410
|
-
function
|
|
410
|
+
function o(h) {
|
|
411
411
|
return h.nodeType === r;
|
|
412
412
|
}
|
|
413
413
|
function l(h) {
|
|
414
|
-
return h.nodeType ===
|
|
414
|
+
return h.nodeType === a;
|
|
415
415
|
}
|
|
416
416
|
function i(h) {
|
|
417
417
|
return h.nodeType === s;
|
|
418
418
|
}
|
|
419
419
|
const d = (h, w, c, A, I, x) => {
|
|
420
|
-
if (
|
|
420
|
+
if (o(h))
|
|
421
421
|
return (0, e.printText)(h.data, w);
|
|
422
422
|
if (l(h))
|
|
423
423
|
return (0, e.printComment)(h.data, w);
|
|
@@ -459,7 +459,7 @@ function Ur() {
|
|
|
459
459
|
value: !0
|
|
460
460
|
}), ie.test = ie.serialize = ie.default = void 0;
|
|
461
461
|
var e = He();
|
|
462
|
-
const t = "@@__IMMUTABLE_ITERABLE__@@", r = "@@__IMMUTABLE_LIST__@@",
|
|
462
|
+
const t = "@@__IMMUTABLE_ITERABLE__@@", r = "@@__IMMUTABLE_LIST__@@", a = "@@__IMMUTABLE_KEYED__@@", s = "@@__IMMUTABLE_MAP__@@", f = "@@__IMMUTABLE_ORDERED__@@", u = "@@__IMMUTABLE_RECORD__@@", p = "@@__IMMUTABLE_SEQ__@@", n = "@@__IMMUTABLE_SET__@@", o = "@@__IMMUTABLE_STACK__@@", l = (g) => "Immutable." + g, i = (g) => "[" + g + "]", d = " ", m = "…", E = (g, v, _, R, B, N, S) => ++R > v.maxDepth ? i(l(S)) : l(S) + d + "{" + (0, e.printIteratorEntries)(
|
|
463
463
|
g.entries(),
|
|
464
464
|
v,
|
|
465
465
|
_,
|
|
@@ -497,7 +497,7 @@ function Ur() {
|
|
|
497
497
|
) + "}";
|
|
498
498
|
}, c = (g, v, _, R, B, N) => {
|
|
499
499
|
const S = l("Seq");
|
|
500
|
-
return ++R > v.maxDepth ? i(S) : g[
|
|
500
|
+
return ++R > v.maxDepth ? i(S) : g[a] ? S + d + "{" + // from Immutable collection of entries or from ECMAScript object
|
|
501
501
|
(g._iter || g._object ? (0, e.printIteratorEntries)(
|
|
502
502
|
g.entries(),
|
|
503
503
|
v,
|
|
@@ -547,7 +547,7 @@ function Ur() {
|
|
|
547
547
|
B,
|
|
548
548
|
N,
|
|
549
549
|
g[f] ? "OrderedSet" : "Set"
|
|
550
|
-
) : g[
|
|
550
|
+
) : g[o] ? A(
|
|
551
551
|
g,
|
|
552
552
|
v,
|
|
553
553
|
_,
|
|
@@ -578,10 +578,10 @@ var Dt;
|
|
|
578
578
|
function Wr() {
|
|
579
579
|
if (Dt) return D;
|
|
580
580
|
Dt = 1;
|
|
581
|
-
var e = 60103, t = 60106, r = 60107,
|
|
581
|
+
var e = 60103, t = 60106, r = 60107, a = 60108, s = 60114, f = 60109, u = 60110, p = 60112, n = 60113, o = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
|
|
582
582
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
583
583
|
var c = Symbol.for;
|
|
584
|
-
e = c("react.element"), t = c("react.portal"), r = c("react.fragment"),
|
|
584
|
+
e = c("react.element"), t = c("react.portal"), r = c("react.fragment"), a = c("react.strict_mode"), s = c("react.profiler"), f = c("react.provider"), u = c("react.context"), p = c("react.forward_ref"), n = c("react.suspense"), o = c("react.suspense_list"), l = c("react.memo"), i = c("react.lazy"), d = c("react.block"), m = c("react.server.block"), E = c("react.fundamental"), h = c("react.debug_trace_mode"), w = c("react.legacy_hidden");
|
|
585
585
|
}
|
|
586
586
|
function A(S) {
|
|
587
587
|
if (typeof S == "object" && S !== null) {
|
|
@@ -591,9 +591,9 @@ function Wr() {
|
|
|
591
591
|
switch (S = S.type, S) {
|
|
592
592
|
case r:
|
|
593
593
|
case s:
|
|
594
|
-
case o:
|
|
595
|
-
case n:
|
|
596
594
|
case a:
|
|
595
|
+
case n:
|
|
596
|
+
case o:
|
|
597
597
|
return S;
|
|
598
598
|
default:
|
|
599
599
|
switch (S = S && S.$$typeof, S) {
|
|
@@ -612,7 +612,7 @@ function Wr() {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
var I = f, x = e, M = p, y = r, g = i, v = l, _ = t, R = s, B =
|
|
615
|
+
var I = f, x = e, M = p, y = r, g = i, v = l, _ = t, R = s, B = a, N = n;
|
|
616
616
|
return D.ContextConsumer = u, D.ContextProvider = I, D.Element = x, D.ForwardRef = M, D.Fragment = y, D.Lazy = g, D.Memo = v, D.Portal = _, D.Profiler = R, D.StrictMode = B, D.Suspense = N, D.isAsyncMode = function() {
|
|
617
617
|
return !1;
|
|
618
618
|
}, D.isConcurrentMode = function() {
|
|
@@ -636,11 +636,11 @@ function Wr() {
|
|
|
636
636
|
}, D.isProfiler = function(S) {
|
|
637
637
|
return A(S) === s;
|
|
638
638
|
}, D.isStrictMode = function(S) {
|
|
639
|
-
return A(S) ===
|
|
639
|
+
return A(S) === a;
|
|
640
640
|
}, D.isSuspense = function(S) {
|
|
641
641
|
return A(S) === n;
|
|
642
642
|
}, D.isValidElementType = function(S) {
|
|
643
|
-
return typeof S == "string" || typeof S == "function" || S === r || S === s || S === h || S ===
|
|
643
|
+
return typeof S == "string" || typeof S == "function" || S === r || S === s || S === h || S === a || S === n || S === o || S === w || typeof S == "object" && S !== null && (S.$$typeof === i || S.$$typeof === l || S.$$typeof === f || S.$$typeof === u || S.$$typeof === p || S.$$typeof === E || S.$$typeof === d || S[0] === m);
|
|
644
644
|
}, D.typeOf = A, D;
|
|
645
645
|
}
|
|
646
646
|
var q = {};
|
|
@@ -655,14 +655,14 @@ var q = {};
|
|
|
655
655
|
var qt;
|
|
656
656
|
function Vr() {
|
|
657
657
|
return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
658
|
-
var e = 60103, t = 60106, r = 60107,
|
|
658
|
+
var e = 60103, t = 60106, r = 60107, a = 60108, s = 60114, f = 60109, u = 60110, p = 60112, n = 60113, o = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
|
|
659
659
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
660
660
|
var c = Symbol.for;
|
|
661
|
-
e = c("react.element"), t = c("react.portal"), r = c("react.fragment"),
|
|
661
|
+
e = c("react.element"), t = c("react.portal"), r = c("react.fragment"), a = c("react.strict_mode"), s = c("react.profiler"), f = c("react.provider"), u = c("react.context"), p = c("react.forward_ref"), n = c("react.suspense"), o = c("react.suspense_list"), l = c("react.memo"), i = c("react.lazy"), d = c("react.block"), m = c("react.server.block"), E = c("react.fundamental"), c("react.scope"), c("react.opaque.id"), h = c("react.debug_trace_mode"), c("react.offscreen"), w = c("react.legacy_hidden");
|
|
662
662
|
}
|
|
663
663
|
var A = !1;
|
|
664
664
|
function I(T) {
|
|
665
|
-
return !!(typeof T == "string" || typeof T == "function" || T === r || T === s || T === h || T ===
|
|
665
|
+
return !!(typeof T == "string" || typeof T == "function" || T === r || T === s || T === h || T === a || T === n || T === o || T === w || A || typeof T == "object" && T !== null && (T.$$typeof === i || T.$$typeof === l || T.$$typeof === f || T.$$typeof === u || T.$$typeof === p || T.$$typeof === E || T.$$typeof === d || T[0] === m));
|
|
666
666
|
}
|
|
667
667
|
function x(T) {
|
|
668
668
|
if (typeof T == "object" && T !== null) {
|
|
@@ -673,9 +673,9 @@ function Vr() {
|
|
|
673
673
|
switch (P) {
|
|
674
674
|
case r:
|
|
675
675
|
case s:
|
|
676
|
-
case o:
|
|
677
|
-
case n:
|
|
678
676
|
case a:
|
|
677
|
+
case n:
|
|
678
|
+
case o:
|
|
679
679
|
return P;
|
|
680
680
|
default:
|
|
681
681
|
var U = P && P.$$typeof;
|
|
@@ -695,7 +695,7 @@ function Vr() {
|
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
var M = u, y = f, g = e, v = p, _ = r, R = i, B = l, N = t, S = s, C =
|
|
698
|
+
var M = u, y = f, g = e, v = p, _ = r, R = i, B = l, N = t, S = s, C = a, W = n, z = !1, k = !1;
|
|
699
699
|
function Z(T) {
|
|
700
700
|
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
701
701
|
}
|
|
@@ -730,7 +730,7 @@ function Vr() {
|
|
|
730
730
|
return x(T) === s;
|
|
731
731
|
}
|
|
732
732
|
function b(T) {
|
|
733
|
-
return x(T) ===
|
|
733
|
+
return x(T) === a;
|
|
734
734
|
}
|
|
735
735
|
function O(T) {
|
|
736
736
|
return x(T) === n;
|
|
@@ -748,7 +748,7 @@ function Gr() {
|
|
|
748
748
|
kt = 1, Object.defineProperty(oe, "__esModule", {
|
|
749
749
|
value: !0
|
|
750
750
|
}), oe.test = oe.serialize = oe.default = void 0;
|
|
751
|
-
var e =
|
|
751
|
+
var e = a(Hr()), t = gt();
|
|
752
752
|
function r(i) {
|
|
753
753
|
if (typeof WeakMap != "function") return null;
|
|
754
754
|
var d = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
|
|
@@ -756,7 +756,7 @@ function Gr() {
|
|
|
756
756
|
return E ? m : d;
|
|
757
757
|
})(i);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function a(i, d) {
|
|
760
760
|
if (i && i.__esModule)
|
|
761
761
|
return i;
|
|
762
762
|
if (i === null || typeof i != "object" && typeof i != "function")
|
|
@@ -844,22 +844,22 @@ function Yr() {
|
|
|
844
844
|
var e = gt(), t = function() {
|
|
845
845
|
return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
846
846
|
}(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
|
|
847
|
-
const
|
|
848
|
-
const { props: l } =
|
|
847
|
+
const a = typeof r == "function" && r.for ? r.for("react.test.json") : 245830487, s = (o) => {
|
|
848
|
+
const { props: l } = o;
|
|
849
849
|
return l ? Object.keys(l).filter((i) => l[i] !== void 0).sort() : [];
|
|
850
|
-
}, f = (
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
s(
|
|
854
|
-
|
|
850
|
+
}, f = (o, l, i, d, m, E) => ++d > l.maxDepth ? (0, e.printElementAsLeaf)(o.type, l) : (0, e.printElement)(
|
|
851
|
+
o.type,
|
|
852
|
+
o.props ? (0, e.printProps)(
|
|
853
|
+
s(o),
|
|
854
|
+
o.props,
|
|
855
855
|
l,
|
|
856
856
|
i + l.indent,
|
|
857
857
|
d,
|
|
858
858
|
m,
|
|
859
859
|
E
|
|
860
860
|
) : "",
|
|
861
|
-
|
|
862
|
-
|
|
861
|
+
o.children ? (0, e.printChildren)(
|
|
862
|
+
o.children,
|
|
863
863
|
l,
|
|
864
864
|
i + l.indent,
|
|
865
865
|
d,
|
|
@@ -870,7 +870,7 @@ function Yr() {
|
|
|
870
870
|
i
|
|
871
871
|
);
|
|
872
872
|
ae.serialize = f;
|
|
873
|
-
const u = (
|
|
873
|
+
const u = (o) => o && o.$$typeof === a;
|
|
874
874
|
ae.test = u;
|
|
875
875
|
var n = {
|
|
876
876
|
serialize: f,
|
|
@@ -884,12 +884,12 @@ function Kr() {
|
|
|
884
884
|
$t = 1, Object.defineProperty(X, "__esModule", {
|
|
885
885
|
value: !0
|
|
886
886
|
}), X.default = X.DEFAULT_OPTIONS = void 0, X.format = Pe, X.plugins = void 0;
|
|
887
|
-
var e =
|
|
887
|
+
var e = o(tr()), t = He(), r = o(
|
|
888
888
|
qr()
|
|
889
|
-
),
|
|
889
|
+
), a = o(kr()), s = o(Fr()), f = o(zr()), u = o(Ur()), p = o(Gr()), n = o(
|
|
890
890
|
Yr()
|
|
891
891
|
);
|
|
892
|
-
function
|
|
892
|
+
function o(b) {
|
|
893
893
|
return b && b.__esModule ? b : { default: b };
|
|
894
894
|
}
|
|
895
895
|
const l = Object.prototype.toString, i = Date.prototype.toISOString, d = Error.prototype.toString, m = RegExp.prototype.toString, E = (b) => typeof b.constructor == "function" && b.constructor.name || "Object", h = (b) => typeof window < "u" && b === window, w = /^Symbol\((.*)\)(.*)$/, c = /\n/gi;
|
|
@@ -1133,7 +1133,7 @@ function Kr() {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
const Qe = {
|
|
1135
1135
|
AsymmetricMatcher: r.default,
|
|
1136
|
-
ConvertAnsi:
|
|
1136
|
+
ConvertAnsi: a.default,
|
|
1137
1137
|
DOMCollection: s.default,
|
|
1138
1138
|
DOMElement: f.default,
|
|
1139
1139
|
Immutable: u.default,
|
|
@@ -1158,11 +1158,11 @@ function en(e) {
|
|
|
1158
1158
|
return Math.min(Math.max(t, 0), Zr);
|
|
1159
1159
|
}
|
|
1160
1160
|
function Q(e, t) {
|
|
1161
|
-
var r = Array,
|
|
1161
|
+
var r = Array, a = Object(e);
|
|
1162
1162
|
if (e == null)
|
|
1163
1163
|
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
|
1164
|
-
for (var s = en(
|
|
1165
|
-
p =
|
|
1164
|
+
for (var s = en(a.length), f = Qr(r) ? Object(new r(s)) : new Array(s), u = 0, p; u < s; )
|
|
1165
|
+
p = a[u], f[u] = p, u += 1;
|
|
1166
1166
|
return f.length = s, f;
|
|
1167
1167
|
}
|
|
1168
1168
|
function xe(e) {
|
|
@@ -1179,8 +1179,8 @@ function tn(e, t) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
function rn(e, t) {
|
|
1181
1181
|
for (var r = 0; r < t.length; r++) {
|
|
1182
|
-
var
|
|
1183
|
-
|
|
1182
|
+
var a = t[r];
|
|
1183
|
+
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, nr(a.key), a);
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
function nn(e, t, r) {
|
|
@@ -1197,8 +1197,8 @@ function an(e, t) {
|
|
|
1197
1197
|
if (xe(e) !== "object" || e === null) return e;
|
|
1198
1198
|
var r = e[Symbol.toPrimitive];
|
|
1199
1199
|
if (r !== void 0) {
|
|
1200
|
-
var
|
|
1201
|
-
if (xe(
|
|
1200
|
+
var a = r.call(e, t);
|
|
1201
|
+
if (xe(a) !== "object") return a;
|
|
1202
1202
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1203
1203
|
}
|
|
1204
1204
|
return (t === "string" ? String : Number)(e);
|
|
@@ -1221,17 +1221,17 @@ var un = /* @__PURE__ */ function() {
|
|
|
1221
1221
|
}, {
|
|
1222
1222
|
key: "delete",
|
|
1223
1223
|
value: function(r) {
|
|
1224
|
-
var
|
|
1224
|
+
var a = this.items.length;
|
|
1225
1225
|
return this.items = this.items.filter(function(s) {
|
|
1226
1226
|
return s !== r;
|
|
1227
|
-
}),
|
|
1227
|
+
}), a !== this.items.length;
|
|
1228
1228
|
}
|
|
1229
1229
|
}, {
|
|
1230
1230
|
key: "forEach",
|
|
1231
1231
|
value: function(r) {
|
|
1232
|
-
var
|
|
1232
|
+
var a = this;
|
|
1233
1233
|
this.items.forEach(function(s) {
|
|
1234
|
-
r(s, s,
|
|
1234
|
+
r(s, s, a);
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
}, {
|
|
@@ -1342,8 +1342,8 @@ function fn(e, t) {
|
|
|
1342
1342
|
"aria-relevant",
|
|
1343
1343
|
"aria-roledescription"
|
|
1344
1344
|
].some(function(r) {
|
|
1345
|
-
var
|
|
1346
|
-
return e.hasAttribute(r) && !((
|
|
1345
|
+
var a;
|
|
1346
|
+
return e.hasAttribute(r) && !((a = cn[t]) !== null && a !== void 0 && a.has(r));
|
|
1347
1347
|
});
|
|
1348
1348
|
}
|
|
1349
1349
|
function ir(e, t) {
|
|
@@ -1372,8 +1372,8 @@ function pn(e) {
|
|
|
1372
1372
|
case "img":
|
|
1373
1373
|
return e.getAttribute("alt") === "" && !ir(e, "img") ? "presentation" : "img";
|
|
1374
1374
|
case "input": {
|
|
1375
|
-
var r = e,
|
|
1376
|
-
switch (
|
|
1375
|
+
var r = e, a = r.type;
|
|
1376
|
+
switch (a) {
|
|
1377
1377
|
case "button":
|
|
1378
1378
|
case "image":
|
|
1379
1379
|
case "reset":
|
|
@@ -1381,7 +1381,7 @@ function pn(e) {
|
|
|
1381
1381
|
return "button";
|
|
1382
1382
|
case "checkbox":
|
|
1383
1383
|
case "radio":
|
|
1384
|
-
return
|
|
1384
|
+
return a;
|
|
1385
1385
|
case "range":
|
|
1386
1386
|
return "slider";
|
|
1387
1387
|
case "email":
|
|
@@ -1458,9 +1458,9 @@ function In(e) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
function $e(e, t) {
|
|
1460
1460
|
if (F(e) && e.hasAttribute(t)) {
|
|
1461
|
-
var r = e.getAttribute(t).split(" "),
|
|
1461
|
+
var r = e.getAttribute(t).split(" "), a = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
1462
1462
|
return r.map(function(s) {
|
|
1463
|
-
return
|
|
1463
|
+
return a.getElementById(s);
|
|
1464
1464
|
}).filter(
|
|
1465
1465
|
function(s) {
|
|
1466
1466
|
return s !== null;
|
|
@@ -1499,8 +1499,8 @@ function ar(e, t) {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
function zt(e, t) {
|
|
1501
1501
|
var r = Q(e.querySelectorAll(t));
|
|
1502
|
-
return $e(e, "aria-owns").forEach(function(
|
|
1503
|
-
r.push.apply(r, Q(
|
|
1502
|
+
return $e(e, "aria-owns").forEach(function(a) {
|
|
1503
|
+
r.push.apply(r, Q(a.querySelectorAll(t)));
|
|
1504
1504
|
}), r;
|
|
1505
1505
|
}
|
|
1506
1506
|
function Cn(e) {
|
|
@@ -1535,8 +1535,8 @@ function lr(e) {
|
|
|
1535
1535
|
var t = null;
|
|
1536
1536
|
return e.childNodes.forEach(function(r) {
|
|
1537
1537
|
if (t === null && F(r)) {
|
|
1538
|
-
var
|
|
1539
|
-
|
|
1538
|
+
var a = lr(r);
|
|
1539
|
+
a !== null && (t = a);
|
|
1540
1540
|
}
|
|
1541
1541
|
}), t;
|
|
1542
1542
|
}
|
|
@@ -1555,8 +1555,8 @@ function Dn(e) {
|
|
|
1555
1555
|
if (!ur(e))
|
|
1556
1556
|
return null;
|
|
1557
1557
|
var r = e.ownerDocument;
|
|
1558
|
-
return Q(r.querySelectorAll("label")).filter(function(
|
|
1559
|
-
return Ln(
|
|
1558
|
+
return Q(r.querySelectorAll("label")).filter(function(a) {
|
|
1559
|
+
return Ln(a) === e;
|
|
1560
1560
|
});
|
|
1561
1561
|
}
|
|
1562
1562
|
function qn(e) {
|
|
@@ -1564,11 +1564,11 @@ function qn(e) {
|
|
|
1564
1564
|
return t.length === 0 ? Q(e.childNodes) : t;
|
|
1565
1565
|
}
|
|
1566
1566
|
function sr(e) {
|
|
1567
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new ln(),
|
|
1567
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new ln(), a = En(e), s = t.compute, f = s === void 0 ? "name" : s, u = t.computedStyleSupportsPseudoElements, p = u === void 0 ? t.getComputedStyle !== void 0 : u, n = t.getComputedStyle, o = n === void 0 ? a.getComputedStyle.bind(a) : n, l = t.hidden, i = l === void 0 ? !1 : l;
|
|
1568
1568
|
function d(c, A) {
|
|
1569
1569
|
var I = "";
|
|
1570
1570
|
if (F(c) && p) {
|
|
1571
|
-
var x =
|
|
1571
|
+
var x = o(c, "::before"), M = Ut(x);
|
|
1572
1572
|
I = "".concat(M, " ").concat(I);
|
|
1573
1573
|
}
|
|
1574
1574
|
var y = wn(c) ? qn(c) : Q(c.childNodes).concat($e(c, "aria-owns"));
|
|
@@ -1577,10 +1577,10 @@ function sr(e) {
|
|
|
1577
1577
|
isEmbeddedInLabel: A.isEmbeddedInLabel,
|
|
1578
1578
|
isReferenced: !1,
|
|
1579
1579
|
recursion: !0
|
|
1580
|
-
}), B = F(_) ?
|
|
1580
|
+
}), B = F(_) ? o(_).getPropertyValue("display") : "inline", N = B !== "inline" ? " " : "";
|
|
1581
1581
|
I += "".concat(N).concat(R).concat(N);
|
|
1582
1582
|
}), F(c) && p) {
|
|
1583
|
-
var g =
|
|
1583
|
+
var g = o(c, "::after"), v = Ut(g);
|
|
1584
1584
|
I = "".concat(I, " ").concat(v);
|
|
1585
1585
|
}
|
|
1586
1586
|
return I.trim();
|
|
@@ -1673,7 +1673,7 @@ function sr(e) {
|
|
|
1673
1673
|
function w(c, A) {
|
|
1674
1674
|
if (r.has(c))
|
|
1675
1675
|
return "";
|
|
1676
|
-
if (!i && On(c,
|
|
1676
|
+
if (!i && On(c, o) && !A.isReferenced)
|
|
1677
1677
|
return r.add(c), "";
|
|
1678
1678
|
var I = F(c) ? c.getAttributeNode("aria-labelledby") : null, x = I !== null && !r.has(I) ? $e(c, "aria-labelledby") : [];
|
|
1679
1679
|
if (f === "name" && !A.isReferenced && x.length > 0)
|
|
@@ -1751,20 +1751,20 @@ function Oe(e) {
|
|
|
1751
1751
|
function Wt(e, t) {
|
|
1752
1752
|
var r = Object.keys(e);
|
|
1753
1753
|
if (Object.getOwnPropertySymbols) {
|
|
1754
|
-
var
|
|
1755
|
-
t && (
|
|
1754
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
1755
|
+
t && (a = a.filter(function(s) {
|
|
1756
1756
|
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
1757
|
-
})), r.push.apply(r,
|
|
1757
|
+
})), r.push.apply(r, a);
|
|
1758
1758
|
}
|
|
1759
1759
|
return r;
|
|
1760
1760
|
}
|
|
1761
1761
|
function Vt(e) {
|
|
1762
1762
|
for (var t = 1; t < arguments.length; t++) {
|
|
1763
1763
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1764
|
-
t % 2 ? Wt(Object(r), !0).forEach(function(
|
|
1765
|
-
jn(e,
|
|
1766
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Wt(Object(r)).forEach(function(
|
|
1767
|
-
Object.defineProperty(e,
|
|
1764
|
+
t % 2 ? Wt(Object(r), !0).forEach(function(a) {
|
|
1765
|
+
jn(e, a, r[a]);
|
|
1766
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Wt(Object(r)).forEach(function(a) {
|
|
1767
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
1770
|
return e;
|
|
@@ -1780,8 +1780,8 @@ function Fn(e, t) {
|
|
|
1780
1780
|
if (Oe(e) !== "object" || e === null) return e;
|
|
1781
1781
|
var r = e[Symbol.toPrimitive];
|
|
1782
1782
|
if (r !== void 0) {
|
|
1783
|
-
var
|
|
1784
|
-
if (Oe(
|
|
1783
|
+
var a = r.call(e, t);
|
|
1784
|
+
if (Oe(a) !== "object") return a;
|
|
1785
1785
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1786
1786
|
}
|
|
1787
1787
|
return (t === "string" ? String : Number)(e);
|
|
@@ -1793,8 +1793,8 @@ function cr(e) {
|
|
|
1793
1793
|
}));
|
|
1794
1794
|
}).join(" ");
|
|
1795
1795
|
if (r === "") {
|
|
1796
|
-
var
|
|
1797
|
-
r =
|
|
1796
|
+
var a = e.getAttribute("title");
|
|
1797
|
+
r = a === null ? "" : a;
|
|
1798
1798
|
}
|
|
1799
1799
|
return r;
|
|
1800
1800
|
}
|
|
@@ -1809,54 +1809,54 @@ var et = { exports: {} }, Ht;
|
|
|
1809
1809
|
function zn() {
|
|
1810
1810
|
return Ht || (Ht = 1, function(e) {
|
|
1811
1811
|
var t = function() {
|
|
1812
|
-
var r = String.fromCharCode,
|
|
1813
|
-
function u(n,
|
|
1812
|
+
var r = String.fromCharCode, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", f = {};
|
|
1813
|
+
function u(n, o) {
|
|
1814
1814
|
if (!f[n]) {
|
|
1815
1815
|
f[n] = {};
|
|
1816
1816
|
for (var l = 0; l < n.length; l++)
|
|
1817
1817
|
f[n][n.charAt(l)] = l;
|
|
1818
1818
|
}
|
|
1819
|
-
return f[n][
|
|
1819
|
+
return f[n][o];
|
|
1820
1820
|
}
|
|
1821
1821
|
var p = {
|
|
1822
1822
|
compressToBase64: function(n) {
|
|
1823
1823
|
if (n == null) return "";
|
|
1824
|
-
var
|
|
1825
|
-
return
|
|
1824
|
+
var o = p._compress(n, 6, function(l) {
|
|
1825
|
+
return a.charAt(l);
|
|
1826
1826
|
});
|
|
1827
|
-
switch (
|
|
1827
|
+
switch (o.length % 4) {
|
|
1828
1828
|
// To produce valid Base64
|
|
1829
1829
|
default:
|
|
1830
1830
|
// When could this happen ?
|
|
1831
1831
|
case 0:
|
|
1832
|
-
return
|
|
1832
|
+
return o;
|
|
1833
1833
|
case 1:
|
|
1834
|
-
return
|
|
1834
|
+
return o + "===";
|
|
1835
1835
|
case 2:
|
|
1836
|
-
return
|
|
1836
|
+
return o + "==";
|
|
1837
1837
|
case 3:
|
|
1838
|
-
return
|
|
1838
|
+
return o + "=";
|
|
1839
1839
|
}
|
|
1840
1840
|
},
|
|
1841
1841
|
decompressFromBase64: function(n) {
|
|
1842
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32, function(
|
|
1843
|
-
return u(
|
|
1842
|
+
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32, function(o) {
|
|
1843
|
+
return u(a, n.charAt(o));
|
|
1844
1844
|
});
|
|
1845
1845
|
},
|
|
1846
1846
|
compressToUTF16: function(n) {
|
|
1847
|
-
return n == null ? "" : p._compress(n, 15, function(
|
|
1848
|
-
return r(
|
|
1847
|
+
return n == null ? "" : p._compress(n, 15, function(o) {
|
|
1848
|
+
return r(o + 32);
|
|
1849
1849
|
}) + " ";
|
|
1850
1850
|
},
|
|
1851
1851
|
decompressFromUTF16: function(n) {
|
|
1852
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 16384, function(
|
|
1853
|
-
return n.charCodeAt(
|
|
1852
|
+
return n == null ? "" : n == "" ? null : p._decompress(n.length, 16384, function(o) {
|
|
1853
|
+
return n.charCodeAt(o) - 32;
|
|
1854
1854
|
});
|
|
1855
1855
|
},
|
|
1856
1856
|
//compress into uint8array (UCS-2 big endian format)
|
|
1857
1857
|
compressToUint8Array: function(n) {
|
|
1858
|
-
for (var
|
|
1859
|
-
var m =
|
|
1858
|
+
for (var o = p.compress(n), l = new Uint8Array(o.length * 2), i = 0, d = o.length; i < d; i++) {
|
|
1859
|
+
var m = o.charCodeAt(i);
|
|
1860
1860
|
l[i * 2] = m >>> 8, l[i * 2 + 1] = m % 256;
|
|
1861
1861
|
}
|
|
1862
1862
|
return l;
|
|
@@ -1865,31 +1865,31 @@ function zn() {
|
|
|
1865
1865
|
decompressFromUint8Array: function(n) {
|
|
1866
1866
|
if (n == null)
|
|
1867
1867
|
return p.decompress(n);
|
|
1868
|
-
for (var
|
|
1869
|
-
|
|
1868
|
+
for (var o = new Array(n.length / 2), l = 0, i = o.length; l < i; l++)
|
|
1869
|
+
o[l] = n[l * 2] * 256 + n[l * 2 + 1];
|
|
1870
1870
|
var d = [];
|
|
1871
|
-
return
|
|
1871
|
+
return o.forEach(function(m) {
|
|
1872
1872
|
d.push(r(m));
|
|
1873
1873
|
}), p.decompress(d.join(""));
|
|
1874
1874
|
},
|
|
1875
1875
|
//compress into a string that is already URI encoded
|
|
1876
1876
|
compressToEncodedURIComponent: function(n) {
|
|
1877
|
-
return n == null ? "" : p._compress(n, 6, function(
|
|
1878
|
-
return s.charAt(
|
|
1877
|
+
return n == null ? "" : p._compress(n, 6, function(o) {
|
|
1878
|
+
return s.charAt(o);
|
|
1879
1879
|
});
|
|
1880
1880
|
},
|
|
1881
1881
|
//decompress from an output of compressToEncodedURIComponent
|
|
1882
1882
|
decompressFromEncodedURIComponent: function(n) {
|
|
1883
|
-
return n == null ? "" : n == "" ? null : (n = n.replace(/ /g, "+"), p._decompress(n.length, 32, function(
|
|
1884
|
-
return u(s, n.charAt(
|
|
1883
|
+
return n == null ? "" : n == "" ? null : (n = n.replace(/ /g, "+"), p._decompress(n.length, 32, function(o) {
|
|
1884
|
+
return u(s, n.charAt(o));
|
|
1885
1885
|
}));
|
|
1886
1886
|
},
|
|
1887
1887
|
compress: function(n) {
|
|
1888
|
-
return p._compress(n, 16, function(
|
|
1889
|
-
return r(
|
|
1888
|
+
return p._compress(n, 16, function(o) {
|
|
1889
|
+
return r(o);
|
|
1890
1890
|
});
|
|
1891
1891
|
},
|
|
1892
|
-
_compress: function(n,
|
|
1892
|
+
_compress: function(n, o, l) {
|
|
1893
1893
|
if (n == null) return "";
|
|
1894
1894
|
var i, d, m = {}, E = {}, h = "", w = "", c = "", A = 2, I = 3, x = 2, M = [], y = 0, g = 0, v;
|
|
1895
1895
|
for (v = 0; v < n.length; v += 1)
|
|
@@ -1899,69 +1899,69 @@ function zn() {
|
|
|
1899
1899
|
if (Object.prototype.hasOwnProperty.call(E, c)) {
|
|
1900
1900
|
if (c.charCodeAt(0) < 256) {
|
|
1901
1901
|
for (i = 0; i < x; i++)
|
|
1902
|
-
y = y << 1, g ==
|
|
1902
|
+
y = y << 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++;
|
|
1903
1903
|
for (d = c.charCodeAt(0), i = 0; i < 8; i++)
|
|
1904
|
-
y = y << 1 | d & 1, g ==
|
|
1904
|
+
y = y << 1 | d & 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1905
1905
|
} else {
|
|
1906
1906
|
for (d = 1, i = 0; i < x; i++)
|
|
1907
|
-
y = y << 1 | d, g ==
|
|
1907
|
+
y = y << 1 | d, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = 0;
|
|
1908
1908
|
for (d = c.charCodeAt(0), i = 0; i < 16; i++)
|
|
1909
|
-
y = y << 1 | d & 1, g ==
|
|
1909
|
+
y = y << 1 | d & 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1910
1910
|
}
|
|
1911
1911
|
A--, A == 0 && (A = Math.pow(2, x), x++), delete E[c];
|
|
1912
1912
|
} else
|
|
1913
1913
|
for (d = m[c], i = 0; i < x; i++)
|
|
1914
|
-
y = y << 1 | d & 1, g ==
|
|
1914
|
+
y = y << 1 | d & 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1915
1915
|
A--, A == 0 && (A = Math.pow(2, x), x++), m[w] = I++, c = String(h);
|
|
1916
1916
|
}
|
|
1917
1917
|
if (c !== "") {
|
|
1918
1918
|
if (Object.prototype.hasOwnProperty.call(E, c)) {
|
|
1919
1919
|
if (c.charCodeAt(0) < 256) {
|
|
1920
1920
|
for (i = 0; i < x; i++)
|
|
1921
|
-
y = y << 1, g ==
|
|
1921
|
+
y = y << 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++;
|
|
1922
1922
|
for (d = c.charCodeAt(0), i = 0; i < 8; i++)
|
|
1923
|
-
y = y << 1 | d & 1, g ==
|
|
1923
|
+
y = y << 1 | d & 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1924
1924
|
} else {
|
|
1925
1925
|
for (d = 1, i = 0; i < x; i++)
|
|
1926
|
-
y = y << 1 | d, g ==
|
|
1926
|
+
y = y << 1 | d, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = 0;
|
|
1927
1927
|
for (d = c.charCodeAt(0), i = 0; i < 16; i++)
|
|
1928
|
-
y = y << 1 | d & 1, g ==
|
|
1928
|
+
y = y << 1 | d & 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1929
1929
|
}
|
|
1930
1930
|
A--, A == 0 && (A = Math.pow(2, x), x++), delete E[c];
|
|
1931
1931
|
} else
|
|
1932
1932
|
for (d = m[c], i = 0; i < x; i++)
|
|
1933
|
-
y = y << 1 | d & 1, g ==
|
|
1933
|
+
y = y << 1 | d & 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1934
1934
|
A--, A == 0 && (A = Math.pow(2, x), x++);
|
|
1935
1935
|
}
|
|
1936
1936
|
for (d = 2, i = 0; i < x; i++)
|
|
1937
|
-
y = y << 1 | d & 1, g ==
|
|
1937
|
+
y = y << 1 | d & 1, g == o - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1938
1938
|
for (; ; )
|
|
1939
|
-
if (y = y << 1, g ==
|
|
1939
|
+
if (y = y << 1, g == o - 1) {
|
|
1940
1940
|
M.push(l(y));
|
|
1941
1941
|
break;
|
|
1942
1942
|
} else g++;
|
|
1943
1943
|
return M.join("");
|
|
1944
1944
|
},
|
|
1945
1945
|
decompress: function(n) {
|
|
1946
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32768, function(
|
|
1947
|
-
return n.charCodeAt(
|
|
1946
|
+
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32768, function(o) {
|
|
1947
|
+
return n.charCodeAt(o);
|
|
1948
1948
|
});
|
|
1949
1949
|
},
|
|
1950
|
-
_decompress: function(n,
|
|
1951
|
-
var i = [], d = 4, m = 4, E = 3, h = "", w = [], c, A, I, x, M, y, g, v = { val: l(0), position:
|
|
1950
|
+
_decompress: function(n, o, l) {
|
|
1951
|
+
var i = [], d = 4, m = 4, E = 3, h = "", w = [], c, A, I, x, M, y, g, v = { val: l(0), position: o, index: 1 };
|
|
1952
1952
|
for (c = 0; c < 3; c += 1)
|
|
1953
1953
|
i[c] = c;
|
|
1954
1954
|
for (I = 0, M = Math.pow(2, 2), y = 1; y != M; )
|
|
1955
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1955
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = o, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1956
1956
|
switch (I) {
|
|
1957
1957
|
case 0:
|
|
1958
1958
|
for (I = 0, M = Math.pow(2, 8), y = 1; y != M; )
|
|
1959
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1959
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = o, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1960
1960
|
g = r(I);
|
|
1961
1961
|
break;
|
|
1962
1962
|
case 1:
|
|
1963
1963
|
for (I = 0, M = Math.pow(2, 16), y = 1; y != M; )
|
|
1964
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1964
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = o, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1965
1965
|
g = r(I);
|
|
1966
1966
|
break;
|
|
1967
1967
|
case 2:
|
|
@@ -1971,16 +1971,16 @@ function zn() {
|
|
|
1971
1971
|
if (v.index > n)
|
|
1972
1972
|
return "";
|
|
1973
1973
|
for (I = 0, M = Math.pow(2, E), y = 1; y != M; )
|
|
1974
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1974
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = o, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1975
1975
|
switch (g = I) {
|
|
1976
1976
|
case 0:
|
|
1977
1977
|
for (I = 0, M = Math.pow(2, 8), y = 1; y != M; )
|
|
1978
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1978
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = o, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1979
1979
|
i[m++] = r(I), g = m - 1, d--;
|
|
1980
1980
|
break;
|
|
1981
1981
|
case 1:
|
|
1982
1982
|
for (I = 0, M = Math.pow(2, 16), y = 1; y != M; )
|
|
1983
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1983
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = o, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1984
1984
|
i[m++] = r(I), g = m - 1, d--;
|
|
1985
1985
|
break;
|
|
1986
1986
|
case 2:
|
|
@@ -2008,16 +2008,16 @@ const Wn = /* @__PURE__ */ Dr(Un);
|
|
|
2008
2008
|
function fr(e) {
|
|
2009
2009
|
return e.replace(/</g, "<").replace(/>/g, ">");
|
|
2010
2010
|
}
|
|
2011
|
-
const Vn = (e, t, r,
|
|
2012
|
-
const p =
|
|
2013
|
-
return e.map((
|
|
2014
|
-
const l = t[
|
|
2011
|
+
const Vn = (e, t, r, a, s, f, u) => {
|
|
2012
|
+
const p = a + r.indent, n = r.colors;
|
|
2013
|
+
return e.map((o) => {
|
|
2014
|
+
const l = t[o];
|
|
2015
2015
|
let i = u(l, r, p, s, f);
|
|
2016
2016
|
return typeof l != "string" && (i.indexOf(`
|
|
2017
|
-
`) !== -1 && (i = r.spacingOuter + p + i + r.spacingOuter +
|
|
2017
|
+
`) !== -1 && (i = r.spacingOuter + p + i + r.spacingOuter + a), i = "{" + i + "}"), r.spacingInner + a + n.prop.open + o + n.prop.close + "=" + n.value.open + i + n.value.close;
|
|
2018
2018
|
}).join("");
|
|
2019
|
-
}, Hn = 3, Gn = (e, t, r,
|
|
2020
|
-
const p = typeof u == "string" ? dr(u, t) : f(u, t, r,
|
|
2019
|
+
}, Hn = 3, Gn = (e, t, r, a, s, f) => e.map((u) => {
|
|
2020
|
+
const p = typeof u == "string" ? dr(u, t) : f(u, t, r, a, s);
|
|
2021
2021
|
return p === "" && typeof u == "object" && u !== null && u.nodeType !== Hn ? "" : t.spacingOuter + r + p;
|
|
2022
2022
|
}).join(""), dr = (e, t) => {
|
|
2023
2023
|
const r = t.colors.content;
|
|
@@ -2025,9 +2025,9 @@ const Vn = (e, t, r, o, s, f, u) => {
|
|
|
2025
2025
|
}, Yn = (e, t) => {
|
|
2026
2026
|
const r = t.colors.comment;
|
|
2027
2027
|
return r.open + "<!--" + fr(e) + "-->" + r.close;
|
|
2028
|
-
}, Kn = (e, t, r,
|
|
2029
|
-
const f =
|
|
2030
|
-
return f.open + "<" + e + (t && f.close + t +
|
|
2028
|
+
}, Kn = (e, t, r, a, s) => {
|
|
2029
|
+
const f = a.colors.tag;
|
|
2030
|
+
return f.open + "<" + e + (t && f.close + t + a.spacingOuter + s + f.open) + (r ? ">" + f.close + r + a.spacingOuter + s + f.open + "</" + e : (t && !a.min ? "" : " ") + "/") + ">" + f.close;
|
|
2031
2031
|
}, Jn = (e, t) => {
|
|
2032
2032
|
const r = t.colors.tag;
|
|
2033
2033
|
return r.open + "<" + e + r.close + " …" + r.open + " />" + r.close;
|
|
@@ -2057,13 +2057,13 @@ function ri(e) {
|
|
|
2057
2057
|
var r;
|
|
2058
2058
|
return ((t == null || (r = t.constructor) == null ? void 0 : r.name) || yr(t)) && Zn(t);
|
|
2059
2059
|
},
|
|
2060
|
-
serialize: (t, r,
|
|
2060
|
+
serialize: (t, r, a, s, f, u) => {
|
|
2061
2061
|
if (ei(t))
|
|
2062
2062
|
return dr(t.data, r);
|
|
2063
2063
|
if (ti(t))
|
|
2064
2064
|
return Yn(t.data, r);
|
|
2065
2065
|
const p = tt(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
2066
|
-
return ++s > r.maxDepth ? Jn(p, r) : Kn(p, Vn(tt(t) ? [] : Array.from(t.attributes).map((n) => n.name).sort(), tt(t) ? {} : Array.from(t.attributes).reduce((n,
|
|
2066
|
+
return ++s > r.maxDepth ? Jn(p, r) : Kn(p, Vn(tt(t) ? [] : Array.from(t.attributes).map((n) => n.name).sort(), tt(t) ? {} : Array.from(t.attributes).reduce((n, o) => (n[o.name] = o.value, n), {}), r, a + r.indent, s, f, u), Gn(Array.prototype.slice.call(t.childNodes || t.children).filter(e), r, a + r.indent, s, f, u), r, a);
|
|
2067
2067
|
}
|
|
2068
2068
|
};
|
|
2069
2069
|
}
|
|
@@ -2074,14 +2074,14 @@ try {
|
|
|
2074
2074
|
} catch {
|
|
2075
2075
|
}
|
|
2076
2076
|
function ni(e) {
|
|
2077
|
-
const t = e.indexOf("(") + 1, r = e.indexOf(")"),
|
|
2077
|
+
const t = e.indexOf("(") + 1, r = e.indexOf(")"), a = e.slice(t, r), s = a.split(":"), [f, u, p] = [s[0], parseInt(s[1], 10), parseInt(s[2], 10)];
|
|
2078
2078
|
let n = "";
|
|
2079
2079
|
try {
|
|
2080
2080
|
n = Et(f, "utf-8");
|
|
2081
2081
|
} catch {
|
|
2082
2082
|
return "";
|
|
2083
2083
|
}
|
|
2084
|
-
const
|
|
2084
|
+
const o = vt(n, {
|
|
2085
2085
|
start: {
|
|
2086
2086
|
line: u,
|
|
2087
2087
|
column: p
|
|
@@ -2090,8 +2090,8 @@ function ni(e) {
|
|
|
2090
2090
|
highlightCode: !0,
|
|
2091
2091
|
linesBelow: 0
|
|
2092
2092
|
});
|
|
2093
|
-
return gr.dim(
|
|
2094
|
-
` +
|
|
2093
|
+
return gr.dim(a) + `
|
|
2094
|
+
` + o + `
|
|
2095
2095
|
`;
|
|
2096
2096
|
}
|
|
2097
2097
|
function ii() {
|
|
@@ -2152,9 +2152,9 @@ function Te(e, t, r) {
|
|
|
2152
2152
|
if (r === void 0 && (r = {}), e || (e = Tt().body), typeof t != "number" && (t = typeof process < "u" && typeof process.env < "u" && process.env.DEBUG_PRINT_LIMIT || 7e3), t === 0)
|
|
2153
2153
|
return "";
|
|
2154
2154
|
e.documentElement && (e = e.documentElement);
|
|
2155
|
-
let
|
|
2156
|
-
if (
|
|
2157
|
-
throw new TypeError("Expected an element or document but got " +
|
|
2155
|
+
let a = typeof e;
|
|
2156
|
+
if (a === "object" ? a = e.constructor.name : e = {}, !("outerHTML" in e))
|
|
2157
|
+
throw new TypeError("Expected an element or document but got " + a);
|
|
2158
2158
|
const {
|
|
2159
2159
|
filterNode: s = si,
|
|
2160
2160
|
...f
|
|
@@ -2195,11 +2195,11 @@ let me = {
|
|
|
2195
2195
|
throwSuggestions: !1,
|
|
2196
2196
|
// called when getBy* queries fail. (message, container) => Error
|
|
2197
2197
|
getElementError(e, t) {
|
|
2198
|
-
const r = Te(t),
|
|
2198
|
+
const r = Te(t), a = new Error([e, "Ignored nodes: comments, " + me.defaultIgnore + `
|
|
2199
2199
|
` + r].filter(Boolean).join(`
|
|
2200
2200
|
|
|
2201
2201
|
`));
|
|
2202
|
-
return
|
|
2202
|
+
return a.name = "TestingLibraryElementError", a;
|
|
2203
2203
|
},
|
|
2204
2204
|
_disableExpensiveErrorDiagnostics: !1,
|
|
2205
2205
|
computedStyleSupportsPseudoElements: !1
|
|
@@ -2235,14 +2235,14 @@ function Tr(e) {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
if (!pi(e)) return [];
|
|
2237
2237
|
const r = e.ownerDocument.querySelectorAll("label");
|
|
2238
|
-
return Array.from(r).filter((
|
|
2238
|
+
return Array.from(r).filter((a) => a.control === e);
|
|
2239
2239
|
}
|
|
2240
2240
|
function pi(e) {
|
|
2241
2241
|
return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName) || e.tagName === "INPUT" && e.getAttribute("type") !== "hidden";
|
|
2242
2242
|
}
|
|
2243
2243
|
function wr(e, t, r) {
|
|
2244
2244
|
let {
|
|
2245
|
-
selector:
|
|
2245
|
+
selector: a = "*"
|
|
2246
2246
|
} = r === void 0 ? {} : r;
|
|
2247
2247
|
const s = t.getAttribute("aria-labelledby"), f = s ? s.split(" ") : [];
|
|
2248
2248
|
return f.length ? f.map((u) => {
|
|
@@ -2255,10 +2255,10 @@ function wr(e, t, r) {
|
|
|
2255
2255
|
formControl: null
|
|
2256
2256
|
};
|
|
2257
2257
|
}) : Array.from(Tr(t)).map((u) => {
|
|
2258
|
-
const p = it(u),
|
|
2258
|
+
const p = it(u), o = Array.from(u.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((l) => l.matches(a))[0];
|
|
2259
2259
|
return {
|
|
2260
2260
|
content: p,
|
|
2261
|
-
formControl:
|
|
2261
|
+
formControl: o
|
|
2262
2262
|
};
|
|
2263
2263
|
});
|
|
2264
2264
|
}
|
|
@@ -2269,18 +2269,18 @@ function Ar(e) {
|
|
|
2269
2269
|
"It looks like " + e + " was passed instead of a matcher. Did you do something like getByText(" + e + ")?"
|
|
2270
2270
|
);
|
|
2271
2271
|
}
|
|
2272
|
-
function Ae(e, t, r,
|
|
2272
|
+
function Ae(e, t, r, a) {
|
|
2273
2273
|
if (typeof e != "string")
|
|
2274
2274
|
return !1;
|
|
2275
2275
|
Ar(r);
|
|
2276
|
-
const s =
|
|
2276
|
+
const s = a(e);
|
|
2277
2277
|
return typeof r == "string" || typeof r == "number" ? s.toLowerCase().includes(r.toString().toLowerCase()) : typeof r == "function" ? r(s, t) : Ir(r, s);
|
|
2278
2278
|
}
|
|
2279
|
-
function se(e, t, r,
|
|
2279
|
+
function se(e, t, r, a) {
|
|
2280
2280
|
if (typeof e != "string")
|
|
2281
2281
|
return !1;
|
|
2282
2282
|
Ar(r);
|
|
2283
|
-
const s =
|
|
2283
|
+
const s = a(e);
|
|
2284
2284
|
return r instanceof Function ? r(s, t) : r instanceof RegExp ? Ir(r, s) : s === String(r);
|
|
2285
2285
|
}
|
|
2286
2286
|
function Sr(e) {
|
|
@@ -2288,8 +2288,8 @@ function Sr(e) {
|
|
|
2288
2288
|
trim: t = !0,
|
|
2289
2289
|
collapseWhitespace: r = !0
|
|
2290
2290
|
} = e === void 0 ? {} : e;
|
|
2291
|
-
return (
|
|
2292
|
-
let s =
|
|
2291
|
+
return (a) => {
|
|
2292
|
+
let s = a;
|
|
2293
2293
|
return s = t ? s.trim() : s, s = r ? s.replace(/\s+/g, " ") : s, s;
|
|
2294
2294
|
};
|
|
2295
2295
|
}
|
|
@@ -2297,16 +2297,16 @@ function he(e) {
|
|
|
2297
2297
|
let {
|
|
2298
2298
|
trim: t,
|
|
2299
2299
|
collapseWhitespace: r,
|
|
2300
|
-
normalizer:
|
|
2300
|
+
normalizer: a
|
|
2301
2301
|
} = e;
|
|
2302
|
-
if (!
|
|
2302
|
+
if (!a)
|
|
2303
2303
|
return Sr({
|
|
2304
2304
|
trim: t,
|
|
2305
2305
|
collapseWhitespace: r
|
|
2306
2306
|
});
|
|
2307
2307
|
if (typeof t < "u" || typeof r < "u")
|
|
2308
2308
|
throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');
|
|
2309
|
-
return
|
|
2309
|
+
return a;
|
|
2310
2310
|
}
|
|
2311
2311
|
function Ir(e, t) {
|
|
2312
2312
|
const r = e.test(t);
|
|
@@ -2349,12 +2349,12 @@ function mi(e) {
|
|
|
2349
2349
|
name: p,
|
|
2350
2350
|
attributes: n
|
|
2351
2351
|
} = u;
|
|
2352
|
-
return "" + p + n.map((
|
|
2352
|
+
return "" + p + n.map((o) => {
|
|
2353
2353
|
let {
|
|
2354
2354
|
name: l,
|
|
2355
2355
|
value: i,
|
|
2356
2356
|
constraints: d = []
|
|
2357
|
-
} =
|
|
2357
|
+
} = o;
|
|
2358
2358
|
const m = d.indexOf("undefined") !== -1, E = d.indexOf("set") !== -1;
|
|
2359
2359
|
return typeof i < "u" ? "[" + l + '="' + i + '"]' : m ? ":not([" + l + "])" : E ? "[" + l + "]:not([" + l + '=""])' : "[" + l + "]";
|
|
2360
2360
|
}).join("");
|
|
@@ -2365,13 +2365,13 @@ function mi(e) {
|
|
|
2365
2365
|
} = u;
|
|
2366
2366
|
return p.length;
|
|
2367
2367
|
}
|
|
2368
|
-
function
|
|
2368
|
+
function a(u, p) {
|
|
2369
2369
|
let {
|
|
2370
2370
|
specificity: n
|
|
2371
2371
|
} = u, {
|
|
2372
|
-
specificity:
|
|
2372
|
+
specificity: o
|
|
2373
2373
|
} = p;
|
|
2374
|
-
return
|
|
2374
|
+
return o - n;
|
|
2375
2375
|
}
|
|
2376
2376
|
function s(u) {
|
|
2377
2377
|
let {
|
|
@@ -2379,11 +2379,11 @@ function mi(e) {
|
|
|
2379
2379
|
} = u;
|
|
2380
2380
|
const n = p.findIndex((l) => l.value && l.name === "type" && l.value === "text");
|
|
2381
2381
|
n >= 0 && (p = [...p.slice(0, n), ...p.slice(n + 1)]);
|
|
2382
|
-
const
|
|
2382
|
+
const o = t({
|
|
2383
2383
|
...u,
|
|
2384
2384
|
attributes: p
|
|
2385
2385
|
});
|
|
2386
|
-
return (l) => n >= 0 && l.type !== "text" ? !1 : l.matches(
|
|
2386
|
+
return (l) => n >= 0 && l.type !== "text" ? !1 : l.matches(o);
|
|
2387
2387
|
}
|
|
2388
2388
|
let f = [];
|
|
2389
2389
|
for (const [u, p] of e.entries())
|
|
@@ -2392,16 +2392,16 @@ function mi(e) {
|
|
|
2392
2392
|
roles: Array.from(p),
|
|
2393
2393
|
specificity: r(u)
|
|
2394
2394
|
}];
|
|
2395
|
-
return f.sort(
|
|
2395
|
+
return f.sort(a);
|
|
2396
2396
|
}
|
|
2397
2397
|
function yi(e, t) {
|
|
2398
2398
|
let {
|
|
2399
2399
|
hidden: r = !1
|
|
2400
2400
|
} = t === void 0 ? {} : t;
|
|
2401
|
-
function
|
|
2402
|
-
return [s, ...Array.from(s.children).reduce((f, u) => [...f, ...
|
|
2401
|
+
function a(s) {
|
|
2402
|
+
return [s, ...Array.from(s.children).reduce((f, u) => [...f, ...a(u)], [])];
|
|
2403
2403
|
}
|
|
2404
|
-
return
|
|
2404
|
+
return a(e).filter((s) => r === !1 ? wt(s) === !1 : !0).reduce((s, f) => {
|
|
2405
2405
|
let u = [];
|
|
2406
2406
|
return f.hasAttribute("role") ? u = f.getAttribute("role").split(" ").slice(0, 1) : u = At(f), u.reduce((p, n) => Array.isArray(p[n]) ? {
|
|
2407
2407
|
...p,
|
|
@@ -2415,7 +2415,7 @@ function yi(e, t) {
|
|
|
2415
2415
|
function gi(e, t) {
|
|
2416
2416
|
let {
|
|
2417
2417
|
hidden: r,
|
|
2418
|
-
includeDescription:
|
|
2418
|
+
includeDescription: a
|
|
2419
2419
|
} = t;
|
|
2420
2420
|
const s = yi(e, {
|
|
2421
2421
|
hidden: r
|
|
@@ -2425,12 +2425,12 @@ function gi(e, t) {
|
|
|
2425
2425
|
return u !== "generic";
|
|
2426
2426
|
}).map((f) => {
|
|
2427
2427
|
let [u, p] = f;
|
|
2428
|
-
const n = "-".repeat(50),
|
|
2428
|
+
const n = "-".repeat(50), o = p.map((l) => {
|
|
2429
2429
|
const i = 'Name "' + ht(l, {
|
|
2430
2430
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
2431
2431
|
}) + `":
|
|
2432
2432
|
`, d = Te(l.cloneNode(!1));
|
|
2433
|
-
if (
|
|
2433
|
+
if (a) {
|
|
2434
2434
|
const m = 'Description "' + cr(l, {
|
|
2435
2435
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
2436
2436
|
}) + `":
|
|
@@ -2443,7 +2443,7 @@ function gi(e, t) {
|
|
|
2443
2443
|
`);
|
|
2444
2444
|
return u + `:
|
|
2445
2445
|
|
|
2446
|
-
` +
|
|
2446
|
+
` + o + `
|
|
2447
2447
|
|
|
2448
2448
|
` + n;
|
|
2449
2449
|
}).join(`
|
|
@@ -2510,19 +2510,19 @@ function Ci(e) {
|
|
|
2510
2510
|
function Kt(e) {
|
|
2511
2511
|
return new RegExp(Ci(e.toLowerCase()), "i");
|
|
2512
2512
|
}
|
|
2513
|
-
function fe(e, t, r,
|
|
2513
|
+
function fe(e, t, r, a) {
|
|
2514
2514
|
let {
|
|
2515
2515
|
variant: s,
|
|
2516
2516
|
name: f
|
|
2517
|
-
} =
|
|
2517
|
+
} = a, u = "";
|
|
2518
2518
|
const p = {}, n = [["Role", "TestId"].includes(e) ? r : Kt(r)];
|
|
2519
2519
|
f && (p.name = Kt(f)), e === "Role" && wt(t) && (p.hidden = !0, u = `Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
2520
2520
|
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
2521
2521
|
`), Object.keys(p).length > 0 && n.push(p);
|
|
2522
|
-
const
|
|
2522
|
+
const o = s + "By" + e;
|
|
2523
2523
|
return {
|
|
2524
2524
|
queryName: e,
|
|
2525
|
-
queryMethod:
|
|
2525
|
+
queryMethod: o,
|
|
2526
2526
|
queryArgs: n,
|
|
2527
2527
|
variant: s,
|
|
2528
2528
|
warning: u,
|
|
@@ -2532,7 +2532,7 @@ function fe(e, t, r, o) {
|
|
|
2532
2532
|
return l = typeof l == "string" ? "'" + l + "'" : l, i = i ? ", { " + Object.entries(i).map((d) => {
|
|
2533
2533
|
let [m, E] = d;
|
|
2534
2534
|
return m + ": " + E;
|
|
2535
|
-
}).join(", ") + " }" : "",
|
|
2535
|
+
}).join(", ") + " }" : "", o + "(" + l + i + ")";
|
|
2536
2536
|
}
|
|
2537
2537
|
};
|
|
2538
2538
|
}
|
|
@@ -2540,10 +2540,10 @@ function de(e, t, r) {
|
|
|
2540
2540
|
return r && !0;
|
|
2541
2541
|
}
|
|
2542
2542
|
function ot(e, t, r) {
|
|
2543
|
-
var
|
|
2543
|
+
var a, s;
|
|
2544
2544
|
if (t === void 0 && (t = "get"), e.matches(j().defaultIgnore))
|
|
2545
2545
|
return;
|
|
2546
|
-
const f = (
|
|
2546
|
+
const f = (a = e.getAttribute("role")) != null ? a : (s = At(e)) == null ? void 0 : s[0];
|
|
2547
2547
|
if (f !== "generic" && de("Role", r, f))
|
|
2548
2548
|
return fe("Role", e, f, {
|
|
2549
2549
|
variant: t,
|
|
@@ -2570,9 +2570,9 @@ function ot(e, t, r) {
|
|
|
2570
2570
|
return fe("DisplayValue", e, Yt(e.value), {
|
|
2571
2571
|
variant: t
|
|
2572
2572
|
});
|
|
2573
|
-
const
|
|
2574
|
-
if (de("AltText", r,
|
|
2575
|
-
return fe("AltText", e,
|
|
2573
|
+
const o = e.getAttribute("alt");
|
|
2574
|
+
if (de("AltText", r, o))
|
|
2575
|
+
return fe("AltText", e, o, {
|
|
2576
2576
|
variant: t
|
|
2577
2577
|
});
|
|
2578
2578
|
const l = e.getAttribute("title");
|
|
@@ -2592,13 +2592,13 @@ function qe(e, t) {
|
|
|
2592
2592
|
function _i(e, t) {
|
|
2593
2593
|
let {
|
|
2594
2594
|
container: r = Tt(),
|
|
2595
|
-
timeout:
|
|
2595
|
+
timeout: a = j().asyncUtilTimeout,
|
|
2596
2596
|
showOriginalStackTrace: s = j().showOriginalStackTrace,
|
|
2597
2597
|
stackTraceError: f,
|
|
2598
2598
|
interval: u = 50,
|
|
2599
|
-
onTimeout: p = (
|
|
2600
|
-
value: j().getElementError(
|
|
2601
|
-
}),
|
|
2599
|
+
onTimeout: p = (o) => (Object.defineProperty(o, "message", {
|
|
2600
|
+
value: j().getElementError(o.message, r).message
|
|
2601
|
+
}), o),
|
|
2602
2602
|
mutationObserverOptions: n = {
|
|
2603
2603
|
subtree: !0,
|
|
2604
2604
|
childList: !0,
|
|
@@ -2608,9 +2608,9 @@ function _i(e, t) {
|
|
|
2608
2608
|
} = t;
|
|
2609
2609
|
if (typeof e != "function")
|
|
2610
2610
|
throw new TypeError("Received `callback` arg must be a function");
|
|
2611
|
-
return new Promise(async (
|
|
2611
|
+
return new Promise(async (o, l) => {
|
|
2612
2612
|
let i, d, m, E = !1, h = "idle";
|
|
2613
|
-
const w = setTimeout(M,
|
|
2613
|
+
const w = setTimeout(M, a), c = rt();
|
|
2614
2614
|
if (c) {
|
|
2615
2615
|
const {
|
|
2616
2616
|
unstable_advanceTimersWrapper: y
|
|
@@ -2641,7 +2641,7 @@ function _i(e, t) {
|
|
|
2641
2641
|
m = new y(I), m.observe(r, n), x();
|
|
2642
2642
|
}
|
|
2643
2643
|
function A(y, g) {
|
|
2644
|
-
E = !0, clearTimeout(w), c || (clearInterval(d), m.disconnect()), y ? l(y) :
|
|
2644
|
+
E = !0, clearTimeout(w), c || (clearInterval(d), m.disconnect()), y ? l(y) : o(g);
|
|
2645
2645
|
}
|
|
2646
2646
|
function I() {
|
|
2647
2647
|
if (rt()) {
|
|
@@ -2682,23 +2682,23 @@ function Or(e, t) {
|
|
|
2682
2682
|
function Bi(e, t) {
|
|
2683
2683
|
return Or(e + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", t);
|
|
2684
2684
|
}
|
|
2685
|
-
function Ye(e, t, r,
|
|
2685
|
+
function Ye(e, t, r, a) {
|
|
2686
2686
|
let {
|
|
2687
2687
|
exact: s = !0,
|
|
2688
2688
|
collapseWhitespace: f,
|
|
2689
2689
|
trim: u,
|
|
2690
2690
|
normalizer: p
|
|
2691
|
-
} =
|
|
2692
|
-
const n = s ? se : Ae,
|
|
2691
|
+
} = a === void 0 ? {} : a;
|
|
2692
|
+
const n = s ? se : Ae, o = he({
|
|
2693
2693
|
collapseWhitespace: f,
|
|
2694
2694
|
trim: u,
|
|
2695
2695
|
normalizer: p
|
|
2696
2696
|
});
|
|
2697
|
-
return Array.from(t.querySelectorAll("[" + e + "]")).filter((l) => n(l.getAttribute(e), l, r,
|
|
2697
|
+
return Array.from(t.querySelectorAll("[" + e + "]")).filter((l) => n(l.getAttribute(e), l, r, o));
|
|
2698
2698
|
}
|
|
2699
2699
|
function ze(e, t) {
|
|
2700
2700
|
return function(r) {
|
|
2701
|
-
for (var
|
|
2701
|
+
for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), f = 1; f < a; f++)
|
|
2702
2702
|
s[f - 1] = arguments[f];
|
|
2703
2703
|
const u = e(r, ...s);
|
|
2704
2704
|
if (u.length > 1) {
|
|
@@ -2721,7 +2721,7 @@ function Mr(e, t) {
|
|
|
2721
2721
|
}
|
|
2722
2722
|
function Ni(e, t) {
|
|
2723
2723
|
return function(r) {
|
|
2724
|
-
for (var
|
|
2724
|
+
for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), f = 1; f < a; f++)
|
|
2725
2725
|
s[f - 1] = arguments[f];
|
|
2726
2726
|
const u = e(r, ...s);
|
|
2727
2727
|
if (!u.length)
|
|
@@ -2730,48 +2730,48 @@ function Ni(e, t) {
|
|
|
2730
2730
|
};
|
|
2731
2731
|
}
|
|
2732
2732
|
function Ue(e) {
|
|
2733
|
-
return (t, r,
|
|
2733
|
+
return (t, r, a, s) => Ri(() => e(t, r, a), {
|
|
2734
2734
|
container: t,
|
|
2735
2735
|
...s
|
|
2736
2736
|
});
|
|
2737
2737
|
}
|
|
2738
|
-
const ve = (e, t, r) => function(
|
|
2738
|
+
const ve = (e, t, r) => function(a) {
|
|
2739
2739
|
for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
|
|
2740
2740
|
f[u - 1] = arguments[u];
|
|
2741
|
-
const p = e(
|
|
2741
|
+
const p = e(a, ...f), [{
|
|
2742
2742
|
suggest: n = j().throwSuggestions
|
|
2743
2743
|
} = {}] = f.slice(-1);
|
|
2744
2744
|
if (p && n) {
|
|
2745
|
-
const
|
|
2746
|
-
if (
|
|
2747
|
-
throw Mr(
|
|
2745
|
+
const o = ot(p, r);
|
|
2746
|
+
if (o && !t.endsWith(o.queryName))
|
|
2747
|
+
throw Mr(o.toString(), a);
|
|
2748
2748
|
}
|
|
2749
2749
|
return p;
|
|
2750
|
-
}, J = (e, t, r) => function(
|
|
2750
|
+
}, J = (e, t, r) => function(a) {
|
|
2751
2751
|
for (var s = arguments.length, f = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
|
|
2752
2752
|
f[u - 1] = arguments[u];
|
|
2753
|
-
const p = e(
|
|
2753
|
+
const p = e(a, ...f), [{
|
|
2754
2754
|
suggest: n = j().throwSuggestions
|
|
2755
2755
|
} = {}] = f.slice(-1);
|
|
2756
2756
|
if (p.length && n) {
|
|
2757
|
-
const
|
|
2757
|
+
const o = [...new Set(p.map((l) => {
|
|
2758
2758
|
var i;
|
|
2759
2759
|
return (i = ot(l, r)) == null ? void 0 : i.toString();
|
|
2760
2760
|
}))];
|
|
2761
2761
|
if (
|
|
2762
2762
|
// only want to suggest if all the els have the same suggestion.
|
|
2763
|
-
|
|
2763
|
+
o.length === 1 && !t.endsWith(
|
|
2764
2764
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
|
|
2765
2765
|
ot(p[0], r).queryName
|
|
2766
2766
|
)
|
|
2767
2767
|
)
|
|
2768
|
-
throw Mr(
|
|
2768
|
+
throw Mr(o[0], a);
|
|
2769
2769
|
}
|
|
2770
2770
|
return p;
|
|
2771
2771
|
};
|
|
2772
2772
|
function Ee(e, t, r) {
|
|
2773
|
-
const
|
|
2774
|
-
return [
|
|
2773
|
+
const a = ve(ze(e, t), e.name, "query"), s = Ni(e, r), f = ze(s, t), u = ve(f, e.name, "get"), p = J(s, e.name.replace("query", "get"), "getAll"), n = Ue(J(s, e.name, "findAll")), o = Ue(ve(f, e.name, "find"));
|
|
2774
|
+
return [a, p, u, n, o];
|
|
2775
2775
|
}
|
|
2776
2776
|
function Pi(e) {
|
|
2777
2777
|
return Array.from(e.querySelectorAll("label,input")).map((t) => ({
|
|
@@ -2786,12 +2786,12 @@ function Pi(e) {
|
|
|
2786
2786
|
}
|
|
2787
2787
|
const Li = function(e, t, r) {
|
|
2788
2788
|
let {
|
|
2789
|
-
exact:
|
|
2789
|
+
exact: a = !0,
|
|
2790
2790
|
trim: s,
|
|
2791
2791
|
collapseWhitespace: f,
|
|
2792
2792
|
normalizer: u
|
|
2793
2793
|
} = r === void 0 ? {} : r;
|
|
2794
|
-
const p =
|
|
2794
|
+
const p = a ? se : Ae, n = he({
|
|
2795
2795
|
collapseWhitespace: f,
|
|
2796
2796
|
trim: s,
|
|
2797
2797
|
normalizer: u
|
|
@@ -2810,41 +2810,41 @@ const Li = function(e, t, r) {
|
|
|
2810
2810
|
});
|
|
2811
2811
|
}, Me = function(e, t, r) {
|
|
2812
2812
|
let {
|
|
2813
|
-
selector:
|
|
2813
|
+
selector: a = "*",
|
|
2814
2814
|
exact: s = !0,
|
|
2815
2815
|
collapseWhitespace: f,
|
|
2816
2816
|
trim: u,
|
|
2817
2817
|
normalizer: p
|
|
2818
2818
|
} = r === void 0 ? {} : r;
|
|
2819
2819
|
ce(e);
|
|
2820
|
-
const n = s ? se : Ae,
|
|
2820
|
+
const n = s ? se : Ae, o = he({
|
|
2821
2821
|
collapseWhitespace: f,
|
|
2822
2822
|
trim: u,
|
|
2823
2823
|
normalizer: p
|
|
2824
2824
|
}), l = Array.from(e.querySelectorAll("*")).filter((i) => Tr(i).length || i.hasAttribute("aria-labelledby")).reduce((i, d) => {
|
|
2825
2825
|
const m = wr(e, d, {
|
|
2826
|
-
selector:
|
|
2826
|
+
selector: a
|
|
2827
2827
|
});
|
|
2828
2828
|
m.filter((h) => !!h.formControl).forEach((h) => {
|
|
2829
|
-
n(h.content, h.formControl, t,
|
|
2829
|
+
n(h.content, h.formControl, t, o) && h.formControl && i.push(h.formControl);
|
|
2830
2830
|
});
|
|
2831
2831
|
const E = m.filter((h) => !!h.content).map((h) => h.content);
|
|
2832
|
-
return n(E.join(" "), d, t,
|
|
2833
|
-
n(h, d, t,
|
|
2832
|
+
return n(E.join(" "), d, t, o) && i.push(d), E.length > 1 && E.forEach((h, w) => {
|
|
2833
|
+
n(h, d, t, o) && i.push(d);
|
|
2834
2834
|
const c = [...E];
|
|
2835
|
-
c.splice(w, 1), c.length > 1 && n(c.join(" "), d, t,
|
|
2835
|
+
c.splice(w, 1), c.length > 1 && n(c.join(" "), d, t, o) && i.push(d);
|
|
2836
2836
|
}), i;
|
|
2837
2837
|
}, []).concat(Ye("aria-label", e, t, {
|
|
2838
2838
|
exact: s,
|
|
2839
|
-
normalizer:
|
|
2839
|
+
normalizer: o
|
|
2840
2840
|
}));
|
|
2841
|
-
return Array.from(new Set(l)).filter((i) => i.matches(
|
|
2841
|
+
return Array.from(new Set(l)).filter((i) => i.matches(a));
|
|
2842
2842
|
}, ye = function(e, t) {
|
|
2843
|
-
for (var r = arguments.length,
|
|
2844
|
-
|
|
2845
|
-
const f = Me(e, t, ...
|
|
2843
|
+
for (var r = arguments.length, a = new Array(r > 2 ? r - 2 : 0), s = 2; s < r; s++)
|
|
2844
|
+
a[s - 2] = arguments[s];
|
|
2845
|
+
const f = Me(e, t, ...a);
|
|
2846
2846
|
if (!f.length) {
|
|
2847
|
-
const u = Li(e, t, ...
|
|
2847
|
+
const u = Li(e, t, ...a);
|
|
2848
2848
|
if (u.length) {
|
|
2849
2849
|
const p = u.map((n) => Di(e, n)).filter((n) => !!n);
|
|
2850
2850
|
throw p.length ? j().getElementError(p.map((n) => "Found a label with the text of: " + t + ", however the element associated with this label (<" + n + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + n + " />, you can use aria-label or aria-labelledby instead.").join(`
|
|
@@ -2859,8 +2859,8 @@ function Di(e, t) {
|
|
|
2859
2859
|
const r = t.getAttribute("for");
|
|
2860
2860
|
if (!r)
|
|
2861
2861
|
return null;
|
|
2862
|
-
const
|
|
2863
|
-
return
|
|
2862
|
+
const a = e.querySelector('[id="' + r + '"]');
|
|
2863
|
+
return a ? a.tagName.toLowerCase() : null;
|
|
2864
2864
|
}
|
|
2865
2865
|
const Cr = (e, t) => "Found multiple elements with the text of: " + t, qi = ve(ze(Me, Cr), Me.name, "query"), _r = ze(ye, Cr), ji = Ue(J(ye, ye.name, "findAll")), ki = Ue(ve(_r, ye.name, "find")), Fi = J(ye, ye.name, "getAll"), $i = ve(_r, ye.name, "get"), zi = J(Me, Me.name, "queryAll"), at = function() {
|
|
2866
2866
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
@@ -2868,7 +2868,7 @@ const Cr = (e, t) => "Found multiple elements with the text of: " + t, qi = ve(z
|
|
|
2868
2868
|
return ce(t[0]), Ye("placeholder", ...t);
|
|
2869
2869
|
}, Ui = (e, t) => "Found multiple elements with the placeholder text of: " + t, Wi = (e, t) => "Unable to find an element with the placeholder text of: " + t, Vi = J(at, at.name, "queryAll"), [Hi, Gi, Yi, Ki, Ji] = Ee(at, Ui, Wi), ut = function(e, t, r) {
|
|
2870
2870
|
let {
|
|
2871
|
-
selector:
|
|
2871
|
+
selector: a = "*",
|
|
2872
2872
|
exact: s = !0,
|
|
2873
2873
|
collapseWhitespace: f,
|
|
2874
2874
|
trim: u,
|
|
@@ -2876,68 +2876,68 @@ const Cr = (e, t) => "Found multiple elements with the text of: " + t, qi = ve(z
|
|
|
2876
2876
|
normalizer: n
|
|
2877
2877
|
} = r === void 0 ? {} : r;
|
|
2878
2878
|
ce(e);
|
|
2879
|
-
const
|
|
2879
|
+
const o = s ? se : Ae, l = he({
|
|
2880
2880
|
collapseWhitespace: f,
|
|
2881
2881
|
trim: u,
|
|
2882
2882
|
normalizer: n
|
|
2883
2883
|
});
|
|
2884
2884
|
let i = [];
|
|
2885
|
-
return typeof e.matches == "function" && e.matches(
|
|
2885
|
+
return typeof e.matches == "function" && e.matches(a) && (i = [e]), [...i, ...Array.from(e.querySelectorAll(a))].filter((d) => !p || !d.matches(p)).filter((d) => o(Ge(d), d, t, l));
|
|
2886
2886
|
}, Qi = (e, t) => "Found multiple elements with the text: " + t, Xi = function(e, t, r) {
|
|
2887
2887
|
r === void 0 && (r = {});
|
|
2888
2888
|
const {
|
|
2889
|
-
collapseWhitespace:
|
|
2889
|
+
collapseWhitespace: a,
|
|
2890
2890
|
trim: s,
|
|
2891
2891
|
normalizer: f,
|
|
2892
2892
|
selector: u
|
|
2893
2893
|
} = r, n = he({
|
|
2894
|
-
collapseWhitespace:
|
|
2894
|
+
collapseWhitespace: a,
|
|
2895
2895
|
trim: s,
|
|
2896
2896
|
normalizer: f
|
|
2897
|
-
})(t.toString()),
|
|
2898
|
-
return "Unable to find an element with the text: " + (
|
|
2897
|
+
})(t.toString()), o = n !== t.toString(), l = (u ?? "*") !== "*";
|
|
2898
|
+
return "Unable to find an element with the text: " + (o ? n + " (normalized from '" + t + "')" : t) + (l ? ", which matches selector '" + u + "'" : "") + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.";
|
|
2899
2899
|
}, Zi = J(ut, ut.name, "queryAll"), [eo, to, ro, no, io] = Ee(ut, Qi, Xi), lt = function(e, t, r) {
|
|
2900
2900
|
let {
|
|
2901
|
-
exact:
|
|
2901
|
+
exact: a = !0,
|
|
2902
2902
|
collapseWhitespace: s,
|
|
2903
2903
|
trim: f,
|
|
2904
2904
|
normalizer: u
|
|
2905
2905
|
} = r === void 0 ? {} : r;
|
|
2906
2906
|
ce(e);
|
|
2907
|
-
const p =
|
|
2907
|
+
const p = a ? se : Ae, n = he({
|
|
2908
2908
|
collapseWhitespace: s,
|
|
2909
2909
|
trim: f,
|
|
2910
2910
|
normalizer: u
|
|
2911
2911
|
});
|
|
2912
|
-
return Array.from(e.querySelectorAll("input,textarea,select")).filter((
|
|
2912
|
+
return Array.from(e.querySelectorAll("input,textarea,select")).filter((o) => o.tagName === "SELECT" ? Array.from(o.options).filter((i) => i.selected).some((i) => p(Ge(i), i, t, n)) : p(o.value, o, t, n));
|
|
2913
2913
|
}, oo = (e, t) => "Found multiple elements with the display value: " + t + ".", ao = (e, t) => "Unable to find an element with the display value: " + t + ".", uo = J(lt, lt.name, "queryAll"), [lo, so, co, fo, po] = Ee(lt, oo, ao), bo = /^(img|input|area|.+-.+)$/i, st = function(e, t, r) {
|
|
2914
|
-
return r === void 0 && (r = {}), ce(e), Ye("alt", e, t, r).filter((
|
|
2914
|
+
return r === void 0 && (r = {}), ce(e), Ye("alt", e, t, r).filter((a) => bo.test(a.tagName));
|
|
2915
2915
|
}, mo = (e, t) => "Found multiple elements with the alt text: " + t, yo = (e, t) => "Unable to find an element with the alt text: " + t, go = J(st, st.name, "queryAll"), [ho, Eo, vo, To, wo] = Ee(st, mo, yo), Ao = (e) => {
|
|
2916
2916
|
var t;
|
|
2917
2917
|
return e.tagName.toLowerCase() === "title" && ((t = e.parentElement) == null ? void 0 : t.tagName.toLowerCase()) === "svg";
|
|
2918
2918
|
}, ct = function(e, t, r) {
|
|
2919
2919
|
let {
|
|
2920
|
-
exact:
|
|
2920
|
+
exact: a = !0,
|
|
2921
2921
|
collapseWhitespace: s,
|
|
2922
2922
|
trim: f,
|
|
2923
2923
|
normalizer: u
|
|
2924
2924
|
} = r === void 0 ? {} : r;
|
|
2925
2925
|
ce(e);
|
|
2926
|
-
const p =
|
|
2926
|
+
const p = a ? se : Ae, n = he({
|
|
2927
2927
|
collapseWhitespace: s,
|
|
2928
2928
|
trim: f,
|
|
2929
2929
|
normalizer: u
|
|
2930
2930
|
});
|
|
2931
|
-
return Array.from(e.querySelectorAll("[title], svg > title")).filter((
|
|
2931
|
+
return Array.from(e.querySelectorAll("[title], svg > title")).filter((o) => p(o.getAttribute("title"), o, t, n) || Ao(o) && p(Ge(o), o, t, n));
|
|
2932
2932
|
}, So = (e, t) => "Found multiple elements with the title: " + t + ".", Io = (e, t) => "Unable to find an element with the title: " + t + ".", xo = J(ct, ct.name, "queryAll"), [Oo, Mo, Co, _o, Ro] = Ee(ct, So, Io), ft = function(e, t, r) {
|
|
2933
2933
|
let {
|
|
2934
|
-
hidden:
|
|
2934
|
+
hidden: a = j().defaultHidden,
|
|
2935
2935
|
name: s,
|
|
2936
2936
|
description: f,
|
|
2937
2937
|
queryFallbacks: u = !1,
|
|
2938
2938
|
selected: p,
|
|
2939
2939
|
busy: n,
|
|
2940
|
-
checked:
|
|
2940
|
+
checked: o,
|
|
2941
2941
|
pressed: l,
|
|
2942
2942
|
current: i,
|
|
2943
2943
|
level: d,
|
|
@@ -2959,7 +2959,7 @@ const Cr = (e, t) => "Found multiple elements with the text of: " + t, qi = ve(z
|
|
|
2959
2959
|
if (((I = K.roles.get(t)) == null ? void 0 : I.props["aria-busy"]) === void 0)
|
|
2960
2960
|
throw new Error('"aria-busy" is not supported on role "' + t + '".');
|
|
2961
2961
|
}
|
|
2962
|
-
if (
|
|
2962
|
+
if (o !== void 0) {
|
|
2963
2963
|
var x;
|
|
2964
2964
|
if (((x = K.roles.get(t)) == null ? void 0 : x.props["aria-checked"]) === void 0)
|
|
2965
2965
|
throw new Error('"aria-checked" is not supported on role "' + t + '".');
|
|
@@ -3022,8 +3022,8 @@ const Cr = (e, t) => "Found multiple elements with the text of: " + t, qi = ve(z
|
|
|
3022
3022
|
return p === hi(C);
|
|
3023
3023
|
if (n !== void 0)
|
|
3024
3024
|
return n === Ei(C);
|
|
3025
|
-
if (
|
|
3026
|
-
return
|
|
3025
|
+
if (o !== void 0)
|
|
3026
|
+
return o === vi(C);
|
|
3027
3027
|
if (l !== void 0)
|
|
3028
3028
|
return l === Ti(C);
|
|
3029
3029
|
if (i !== void 0)
|
|
@@ -3045,13 +3045,13 @@ const Cr = (e, t) => "Found multiple elements with the text of: " + t, qi = ve(z
|
|
|
3045
3045
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
3046
3046
|
}), C, s, (W) => W)).filter((C) => f === void 0 ? !0 : se(cr(C, {
|
|
3047
3047
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
3048
|
-
}), C, f, (W) => W)).filter((C) =>
|
|
3048
|
+
}), C, f, (W) => W)).filter((C) => a === !1 ? wt(C, {
|
|
3049
3049
|
isSubtreeInaccessible: S
|
|
3050
3050
|
}) === !1 : !0);
|
|
3051
3051
|
};
|
|
3052
3052
|
function Bo(e) {
|
|
3053
3053
|
var t;
|
|
3054
|
-
const r = '*[role~="' + e + '"]',
|
|
3054
|
+
const r = '*[role~="' + e + '"]', a = (t = K.roleElements.get(e)) != null ? t : /* @__PURE__ */ new Set(), s = new Set(Array.from(a).map((f) => {
|
|
3055
3055
|
let {
|
|
3056
3056
|
name: u
|
|
3057
3057
|
} = f;
|
|
@@ -3064,12 +3064,12 @@ const Rr = (e) => {
|
|
|
3064
3064
|
return e === void 0 ? t = "" : typeof e == "string" ? t = ' and name "' + e + '"' : t = " and name `" + e + "`", t;
|
|
3065
3065
|
}, No = function(e, t, r) {
|
|
3066
3066
|
let {
|
|
3067
|
-
name:
|
|
3067
|
+
name: a
|
|
3068
3068
|
} = r === void 0 ? {} : r;
|
|
3069
|
-
return 'Found multiple elements with the role "' + t + '"' + Rr(
|
|
3069
|
+
return 'Found multiple elements with the role "' + t + '"' + Rr(a);
|
|
3070
3070
|
}, Po = function(e, t, r) {
|
|
3071
3071
|
let {
|
|
3072
|
-
hidden:
|
|
3072
|
+
hidden: a = j().defaultHidden,
|
|
3073
3073
|
name: s,
|
|
3074
3074
|
description: f
|
|
3075
3075
|
} = r === void 0 ? {} : r;
|
|
@@ -3078,13 +3078,13 @@ const Rr = (e) => {
|
|
|
3078
3078
|
let u = "";
|
|
3079
3079
|
Array.from(e.children).forEach((l) => {
|
|
3080
3080
|
u += gi(l, {
|
|
3081
|
-
hidden:
|
|
3081
|
+
hidden: a,
|
|
3082
3082
|
includeDescription: f !== void 0
|
|
3083
3083
|
});
|
|
3084
3084
|
});
|
|
3085
3085
|
let p;
|
|
3086
|
-
u.length === 0 ?
|
|
3087
|
-
Here are the ` + (
|
|
3086
|
+
u.length === 0 ? a === !1 ? p = "There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole" : p = "There are no available roles." : p = (`
|
|
3087
|
+
Here are the ` + (a === !1 ? "accessible" : "available") + ` roles:
|
|
3088
3088
|
|
|
3089
3089
|
` + u.replace(/\n/g, `
|
|
3090
3090
|
`).replace(/\n\s\s\n/g, `
|
|
@@ -3093,9 +3093,9 @@ Here are the ` + (o === !1 ? "accessible" : "available") + ` roles:
|
|
|
3093
3093
|
`).trim();
|
|
3094
3094
|
let n = "";
|
|
3095
3095
|
s === void 0 ? n = "" : typeof s == "string" ? n = ' and name "' + s + '"' : n = " and name `" + s + "`";
|
|
3096
|
-
let
|
|
3097
|
-
return f === void 0 ?
|
|
3098
|
-
Unable to find an ` + (
|
|
3096
|
+
let o = "";
|
|
3097
|
+
return f === void 0 ? o = "" : typeof f == "string" ? o = ' and description "' + f + '"' : o = " and description `" + f + "`", (`
|
|
3098
|
+
Unable to find an ` + (a === !1 ? "accessible " : "") + 'element with the role "' + t + '"' + n + o + `
|
|
3099
3099
|
|
|
3100
3100
|
` + p).trim();
|
|
3101
3101
|
}, Lo = J(ft, ft.name, "queryAll"), [Do, qo, jo, ko, Fo] = Ee(ft, No, Po), St = () => j().testIdAttribute, dt = function() {
|
|
@@ -3155,9 +3155,9 @@ var pt = /* @__PURE__ */ Object.freeze({
|
|
|
3155
3155
|
findByTestId: Yo
|
|
3156
3156
|
});
|
|
3157
3157
|
function Br(e, t, r) {
|
|
3158
|
-
return t === void 0 && (t = pt), r === void 0 && (r = {}), Object.keys(t).reduce((
|
|
3158
|
+
return t === void 0 && (t = pt), r === void 0 && (r = {}), Object.keys(t).reduce((a, s) => {
|
|
3159
3159
|
const f = t[s];
|
|
3160
|
-
return
|
|
3160
|
+
return a[s] = f.bind(null, e), a;
|
|
3161
3161
|
}, r);
|
|
3162
3162
|
}
|
|
3163
3163
|
const Jt = {
|
|
@@ -3873,11 +3873,11 @@ function ge(e, t) {
|
|
|
3873
3873
|
return e.dispatchEvent(t);
|
|
3874
3874
|
});
|
|
3875
3875
|
}
|
|
3876
|
-
function nt(e, t, r,
|
|
3876
|
+
function nt(e, t, r, a) {
|
|
3877
3877
|
let {
|
|
3878
3878
|
EventType: s = "Event",
|
|
3879
3879
|
defaultInit: f = {}
|
|
3880
|
-
} =
|
|
3880
|
+
} = a === void 0 ? {} : a;
|
|
3881
3881
|
if (!t)
|
|
3882
3882
|
throw new Error('Unable to fire a "' + e + '" event - please provide a DOM element.');
|
|
3883
3883
|
const u = {
|
|
@@ -3887,7 +3887,7 @@ function nt(e, t, r, o) {
|
|
|
3887
3887
|
target: {
|
|
3888
3888
|
value: p,
|
|
3889
3889
|
files: n,
|
|
3890
|
-
...
|
|
3890
|
+
...o
|
|
3891
3891
|
} = {}
|
|
3892
3892
|
} = u;
|
|
3893
3893
|
p !== void 0 && Ko(t, p), n !== void 0 && Object.defineProperty(t, "files", {
|
|
@@ -3895,7 +3895,7 @@ function nt(e, t, r, o) {
|
|
|
3895
3895
|
enumerable: !0,
|
|
3896
3896
|
writable: !0,
|
|
3897
3897
|
value: n
|
|
3898
|
-
}), Object.assign(t,
|
|
3898
|
+
}), Object.assign(t, o);
|
|
3899
3899
|
const l = Er(t), i = l[s] || l.Event;
|
|
3900
3900
|
let d;
|
|
3901
3901
|
if (typeof i == "function")
|
|
@@ -3927,8 +3927,8 @@ Object.keys(Jt).forEach((e) => {
|
|
|
3927
3927
|
const {
|
|
3928
3928
|
EventType: t,
|
|
3929
3929
|
defaultInit: r
|
|
3930
|
-
} = Jt[e],
|
|
3931
|
-
nt[e] = (s, f) => nt(
|
|
3930
|
+
} = Jt[e], a = e.toLowerCase();
|
|
3931
|
+
nt[e] = (s, f) => nt(a, s, f, {
|
|
3932
3932
|
EventType: t,
|
|
3933
3933
|
defaultInit: r
|
|
3934
3934
|
}), ge[e] = (s, f) => ge(s, nt[e](s, f));
|
|
@@ -3936,9 +3936,9 @@ Object.keys(Jt).forEach((e) => {
|
|
|
3936
3936
|
function Ko(e, t) {
|
|
3937
3937
|
const {
|
|
3938
3938
|
set: r
|
|
3939
|
-
} = Object.getOwnPropertyDescriptor(e, "value") || {},
|
|
3939
|
+
} = Object.getOwnPropertyDescriptor(e, "value") || {}, a = Object.getPrototypeOf(e), {
|
|
3940
3940
|
set: s
|
|
3941
|
-
} = Object.getOwnPropertyDescriptor(
|
|
3941
|
+
} = Object.getOwnPropertyDescriptor(a, "value") || {};
|
|
3942
3942
|
if (s && r !== s)
|
|
3943
3943
|
s.call(e, t);
|
|
3944
3944
|
else if (r)
|
|
@@ -3962,7 +3962,7 @@ function Qo(e) {
|
|
|
3962
3962
|
function Xo(e) {
|
|
3963
3963
|
return "https://testing-playground.com/#markup=" + Qo(e);
|
|
3964
3964
|
}
|
|
3965
|
-
const Zo = (e, t, r) => Array.isArray(e) ? e.forEach((
|
|
3965
|
+
const Zo = (e, t, r) => Array.isArray(e) ? e.forEach((a) => Gt(a, t, r)) : Gt(e, t, r), ea = function(e) {
|
|
3966
3966
|
if (e === void 0 && (e = Tt().body), !e || !("innerHTML" in e)) {
|
|
3967
3967
|
console.log("The element you're providing isn't a valid DOM element.");
|
|
3968
3968
|
return;
|
|
@@ -4003,12 +4003,12 @@ function ra(e) {
|
|
|
4003
4003
|
const r = We();
|
|
4004
4004
|
ue(!0);
|
|
4005
4005
|
try {
|
|
4006
|
-
let
|
|
4006
|
+
let a = !1;
|
|
4007
4007
|
const s = e(() => {
|
|
4008
4008
|
const f = t();
|
|
4009
|
-
return f !== null && typeof f == "object" && typeof f.then == "function" && (
|
|
4009
|
+
return f !== null && typeof f == "object" && typeof f.then == "function" && (a = !0), f;
|
|
4010
4010
|
});
|
|
4011
|
-
if (
|
|
4011
|
+
if (a) {
|
|
4012
4012
|
const f = s;
|
|
4013
4013
|
return {
|
|
4014
4014
|
then: (u, p) => {
|
|
@@ -4021,8 +4021,8 @@ function ra(e) {
|
|
|
4021
4021
|
};
|
|
4022
4022
|
} else
|
|
4023
4023
|
return ue(r), s;
|
|
4024
|
-
} catch (
|
|
4025
|
-
throw ue(r),
|
|
4024
|
+
} catch (a) {
|
|
4025
|
+
throw ue(r), a;
|
|
4026
4026
|
}
|
|
4027
4027
|
};
|
|
4028
4028
|
}
|
|
@@ -4086,9 +4086,9 @@ fi({
|
|
|
4086
4086
|
ue(!1);
|
|
4087
4087
|
try {
|
|
4088
4088
|
const r = await e();
|
|
4089
|
-
return await new Promise((
|
|
4089
|
+
return await new Promise((a) => {
|
|
4090
4090
|
setTimeout(() => {
|
|
4091
|
-
|
|
4091
|
+
a();
|
|
4092
4092
|
}, 0), da() && jest.advanceTimersByTime(0);
|
|
4093
4093
|
}), r;
|
|
4094
4094
|
} finally {
|
|
@@ -4103,8 +4103,8 @@ fi({
|
|
|
4103
4103
|
}
|
|
4104
4104
|
});
|
|
4105
4105
|
const bt = /* @__PURE__ */ new Set(), Ve = [];
|
|
4106
|
-
function mt(e) {
|
|
4107
|
-
return fa().reactStrictMode ? /* @__PURE__ */ Ie.createElement(Ie.StrictMode, null, e) : e;
|
|
4106
|
+
function mt(e, t) {
|
|
4107
|
+
return t ?? fa().reactStrictMode ? /* @__PURE__ */ Ie.createElement(Ie.StrictMode, null, e) : e;
|
|
4108
4108
|
}
|
|
4109
4109
|
function yt(e, t) {
|
|
4110
4110
|
return t ? /* @__PURE__ */ Ie.createElement(t, null, e) : e;
|
|
@@ -4112,29 +4112,30 @@ function yt(e, t) {
|
|
|
4112
4112
|
function pa(e, t) {
|
|
4113
4113
|
let {
|
|
4114
4114
|
hydrate: r,
|
|
4115
|
-
onCaughtError:
|
|
4115
|
+
onCaughtError: a,
|
|
4116
4116
|
onRecoverableError: s,
|
|
4117
4117
|
ui: f,
|
|
4118
|
-
wrapper: u
|
|
4119
|
-
|
|
4118
|
+
wrapper: u,
|
|
4119
|
+
reactStrictMode: p
|
|
4120
|
+
} = t, n;
|
|
4120
4121
|
return r ? we(() => {
|
|
4121
|
-
|
|
4122
|
-
onCaughtError:
|
|
4122
|
+
n = It.hydrateRoot(e, mt(yt(f, u), p), {
|
|
4123
|
+
onCaughtError: a,
|
|
4123
4124
|
onRecoverableError: s
|
|
4124
4125
|
});
|
|
4125
|
-
}) :
|
|
4126
|
-
onCaughtError:
|
|
4126
|
+
}) : n = It.createRoot(e, {
|
|
4127
|
+
onCaughtError: a,
|
|
4127
4128
|
onRecoverableError: s
|
|
4128
4129
|
}), {
|
|
4129
4130
|
hydrate() {
|
|
4130
4131
|
if (!r)
|
|
4131
4132
|
throw new Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.");
|
|
4132
4133
|
},
|
|
4133
|
-
render(
|
|
4134
|
-
|
|
4134
|
+
render(o) {
|
|
4135
|
+
n.render(o);
|
|
4135
4136
|
},
|
|
4136
4137
|
unmount() {
|
|
4137
|
-
|
|
4138
|
+
n.unmount();
|
|
4138
4139
|
}
|
|
4139
4140
|
};
|
|
4140
4141
|
}
|
|
@@ -4154,24 +4155,25 @@ function ba(e) {
|
|
|
4154
4155
|
function Pr(e, t) {
|
|
4155
4156
|
let {
|
|
4156
4157
|
baseElement: r,
|
|
4157
|
-
container:
|
|
4158
|
+
container: a,
|
|
4158
4159
|
hydrate: s,
|
|
4159
4160
|
queries: f,
|
|
4160
4161
|
root: u,
|
|
4161
|
-
wrapper: p
|
|
4162
|
+
wrapper: p,
|
|
4163
|
+
reactStrictMode: n
|
|
4162
4164
|
} = t;
|
|
4163
4165
|
return we(() => {
|
|
4164
|
-
s ? u.hydrate(mt(yt(e, p)),
|
|
4166
|
+
s ? u.hydrate(mt(yt(e, p), n), a) : u.render(mt(yt(e, p), n), a);
|
|
4165
4167
|
}), {
|
|
4166
|
-
container:
|
|
4168
|
+
container: a,
|
|
4167
4169
|
baseElement: r,
|
|
4168
|
-
debug: function(
|
|
4169
|
-
return
|
|
4170
|
+
debug: function(o, l, i) {
|
|
4171
|
+
return o === void 0 && (o = r), Array.isArray(o) ? (
|
|
4170
4172
|
// eslint-disable-next-line no-console
|
|
4171
|
-
|
|
4173
|
+
o.forEach((d) => console.log(Te(d, l, i)))
|
|
4172
4174
|
) : (
|
|
4173
4175
|
// eslint-disable-next-line no-console,
|
|
4174
|
-
console.log(Te(
|
|
4176
|
+
console.log(Te(o, l, i))
|
|
4175
4177
|
);
|
|
4176
4178
|
},
|
|
4177
4179
|
unmount: () => {
|
|
@@ -4179,20 +4181,21 @@ function Pr(e, t) {
|
|
|
4179
4181
|
u.unmount();
|
|
4180
4182
|
});
|
|
4181
4183
|
},
|
|
4182
|
-
rerender: (
|
|
4183
|
-
Pr(
|
|
4184
|
-
container:
|
|
4184
|
+
rerender: (o) => {
|
|
4185
|
+
Pr(o, {
|
|
4186
|
+
container: a,
|
|
4185
4187
|
baseElement: r,
|
|
4186
4188
|
root: u,
|
|
4187
|
-
wrapper: p
|
|
4189
|
+
wrapper: p,
|
|
4190
|
+
reactStrictMode: n
|
|
4188
4191
|
});
|
|
4189
4192
|
},
|
|
4190
4193
|
asFragment: () => {
|
|
4191
4194
|
if (typeof document.createRange == "function")
|
|
4192
|
-
return document.createRange().createContextualFragment(
|
|
4195
|
+
return document.createRange().createContextualFragment(a.innerHTML);
|
|
4193
4196
|
{
|
|
4194
|
-
const
|
|
4195
|
-
return
|
|
4197
|
+
const o = document.createElement("template");
|
|
4198
|
+
return o.innerHTML = a.innerHTML, o.content;
|
|
4196
4199
|
}
|
|
4197
4200
|
},
|
|
4198
4201
|
...Br(r, f)
|
|
@@ -4201,41 +4204,44 @@ function Pr(e, t) {
|
|
|
4201
4204
|
function ma(e, t) {
|
|
4202
4205
|
let {
|
|
4203
4206
|
container: r,
|
|
4204
|
-
baseElement:
|
|
4207
|
+
baseElement: a = r,
|
|
4205
4208
|
legacyRoot: s = !1,
|
|
4206
4209
|
onCaughtError: f,
|
|
4207
4210
|
onUncaughtError: u,
|
|
4208
4211
|
onRecoverableError: p,
|
|
4209
4212
|
queries: n,
|
|
4210
|
-
hydrate:
|
|
4211
|
-
wrapper: l
|
|
4213
|
+
hydrate: o = !1,
|
|
4214
|
+
wrapper: l,
|
|
4215
|
+
reactStrictMode: i
|
|
4212
4216
|
} = t === void 0 ? {} : t;
|
|
4213
4217
|
if (u !== void 0)
|
|
4214
4218
|
throw new Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");
|
|
4215
4219
|
if (s && typeof je.render != "function") {
|
|
4216
|
-
const
|
|
4217
|
-
throw Error.captureStackTrace(
|
|
4220
|
+
const m = new Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");
|
|
4221
|
+
throw Error.captureStackTrace(m, ma), m;
|
|
4218
4222
|
}
|
|
4219
|
-
|
|
4220
|
-
let
|
|
4221
|
-
return bt.has(r) ? Ve.forEach((
|
|
4222
|
-
|
|
4223
|
-
}) : (
|
|
4224
|
-
hydrate:
|
|
4223
|
+
a || (a = document.body), r || (r = a.appendChild(document.createElement("div")));
|
|
4224
|
+
let d;
|
|
4225
|
+
return bt.has(r) ? Ve.forEach((m) => {
|
|
4226
|
+
m.container === r && (d = m.root);
|
|
4227
|
+
}) : (d = (s ? ba : pa)(r, {
|
|
4228
|
+
hydrate: o,
|
|
4225
4229
|
onCaughtError: f,
|
|
4226
4230
|
onRecoverableError: p,
|
|
4227
4231
|
ui: e,
|
|
4228
|
-
wrapper: l
|
|
4232
|
+
wrapper: l,
|
|
4233
|
+
reactStrictMode: i
|
|
4229
4234
|
}), Ve.push({
|
|
4230
4235
|
container: r,
|
|
4231
|
-
root:
|
|
4236
|
+
root: d
|
|
4232
4237
|
}), bt.add(r)), Pr(e, {
|
|
4233
4238
|
container: r,
|
|
4234
|
-
baseElement:
|
|
4239
|
+
baseElement: a,
|
|
4235
4240
|
queries: n,
|
|
4236
|
-
hydrate:
|
|
4241
|
+
hydrate: o,
|
|
4237
4242
|
wrapper: l,
|
|
4238
|
-
root:
|
|
4243
|
+
root: d,
|
|
4244
|
+
reactStrictMode: i
|
|
4239
4245
|
});
|
|
4240
4246
|
}
|
|
4241
4247
|
function Zt() {
|
|
@@ -4269,4 +4275,4 @@ export {
|
|
|
4269
4275
|
Ta as s,
|
|
4270
4276
|
Ri as w
|
|
4271
4277
|
};
|
|
4272
|
-
//# sourceMappingURL=react.esm-
|
|
4278
|
+
//# sourceMappingURL=react.esm-CMg7bmSn.js.map
|