@uva-glass/component-library 3.53.0 → 3.53.2
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-DH2XfwvA.js → Lexical.prod-Dgzi-S1E.js} +1427 -1409
- package/dist/Lexical.prod-Dgzi-S1E.js.map +1 -0
- package/dist/{LexicalClipboard.prod-DTuNvXAS.js → LexicalClipboard.prod-Dxc8c2F_.js} +86 -86
- package/dist/{LexicalClipboard.prod-DTuNvXAS.js.map → LexicalClipboard.prod-Dxc8c2F_.js.map} +1 -1
- package/dist/LexicalExtension.prod-CNBWjmfs.js +551 -0
- package/dist/LexicalExtension.prod-CNBWjmfs.js.map +1 -0
- package/dist/LexicalLink.prod-EEOzXxej.js +502 -0
- package/dist/LexicalLink.prod-EEOzXxej.js.map +1 -0
- package/dist/{LexicalList.prod-DA9du3qx.js → LexicalList.prod-DADZlhem.js} +65 -65
- package/dist/LexicalList.prod-DADZlhem.js.map +1 -0
- package/dist/{LexicalSelection.prod-mQk00-U_.js → LexicalSelection.prod-B0uiXGSS.js} +44 -44
- package/dist/LexicalSelection.prod-B0uiXGSS.js.map +1 -0
- package/dist/{LexicalTable.prod-RGq0GKAR.js → LexicalTable.prod-QpQxZNNH.js} +331 -319
- package/dist/LexicalTable.prod-QpQxZNNH.js.map +1 -0
- package/dist/{LexicalUtils.prod-DU4QwthB.js → LexicalUtils.prod-D1mwAww-.js} +39 -39
- package/dist/LexicalUtils.prod-D1mwAww-.js.map +1 -0
- package/dist/{TableCellResizerPlugin-DRwI83s2.js → TableCellResizerPlugin-9kvw_LpH.js} +57 -57
- package/dist/{TableCellResizerPlugin-DRwI83s2.js.map → TableCellResizerPlugin-9kvw_LpH.js.map} +1 -1
- package/dist/{TablePlugin-DmE96vN7.js → TablePlugin-Culqb83M.js} +67 -67
- package/dist/{TablePlugin-DmE96vN7.js.map → TablePlugin-Culqb83M.js.map} +1 -1
- package/dist/{chunk-SS2NHR7W-qmI2h7CJ.js → chunk-GPBRNGY5-BSRMHXbx.js} +3 -3
- package/dist/chunk-GPBRNGY5-BSRMHXbx.js.map +1 -0
- package/dist/{client-D4oO7Spw.js → client-DdSuZDnt.js} +93 -95
- package/dist/{client-D4oO7Spw.js.map → client-DdSuZDnt.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.d.ts +1 -1
- 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.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +1 -1
- package/dist/components/Buttons/MenuButton.d.ts +1 -1
- package/dist/components/Buttons/MenuButton.stories.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.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +2 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.d.ts +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.d.ts +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InfoBanner/InfoBanner.d.ts +1 -1
- package/dist/components/InfoBanner/InfoBanner.stories.d.ts +1 -1
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/Label/Label.test.js +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.d.ts +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +2 -2
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.d.ts +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.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/CourseCataloguePlugin/CourseCataloguePlugin.js +63 -63
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +7 -7
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.d.ts +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +64 -64
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +21 -21
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +7 -7
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.d.ts +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +29 -29
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.d.ts +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/index.js +2 -2
- package/dist/components/RteEditor/RteEditor.js +218 -215
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +5 -5
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +12 -12
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +14 -14
- package/dist/components/SectionNotification/SectionNotification.stories.d.ts +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/components/SelectButton.d.ts +1 -1
- package/dist/components/SelectListbox/components/SelectOption.d.ts +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/components/SortableItem.d.ts +1 -1
- package/dist/components/StatusBadge/StatusBadge.stories.d.ts +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +2 -2
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
- package/dist/components/WeekSelector/WeekSelector.stories.d.ts +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-B4NxQN5d.js → index-Cfzi-sRQ.js} +333 -332
- package/dist/index-Cfzi-sRQ.js.map +1 -0
- package/dist/{index-ZQcmo1D_.js → index-DcECbqp4.js} +12 -12
- package/dist/{index-ZQcmo1D_.js.map → index-DcECbqp4.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{react-18-BczhA0zC.js → react-18-plvLTuyc.js} +2 -2
- package/dist/{react-18-BczhA0zC.js.map → react-18-plvLTuyc.js.map} +1 -1
- package/dist/{react.esm-BDo_tPxu.js → react.esm-BpII5CMY.js} +712 -733
- package/dist/{react.esm-BDo_tPxu.js.map → react.esm-BpII5CMY.js.map} +1 -1
- package/dist/storybook__react.d.js +8 -8
- package/dist/storybook__react.d.js.map +1 -1
- package/package.json +26 -26
- package/dist/Lexical.prod-DH2XfwvA.js.map +0 -1
- package/dist/LexicalLink.prod-BV5Y2RYj.js +0 -1046
- package/dist/LexicalLink.prod-BV5Y2RYj.js.map +0 -1
- package/dist/LexicalList.prod-DA9du3qx.js.map +0 -1
- package/dist/LexicalSelection.prod-mQk00-U_.js.map +0 -1
- package/dist/LexicalTable.prod-RGq0GKAR.js.map +0 -1
- package/dist/LexicalUtils.prod-DU4QwthB.js.map +0 -1
- package/dist/chunk-SS2NHR7W-qmI2h7CJ.js.map +0 -1
- package/dist/index-B4NxQN5d.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Ie from "react";
|
|
2
2
|
import { a as Pr } from "./test-utils-BcpWLsLH.js";
|
|
3
3
|
import je from "react-dom";
|
|
4
|
-
import { c as It } from "./client-
|
|
4
|
+
import { c as It } from "./client-DdSuZDnt.js";
|
|
5
5
|
import { l as K } from "./index-D6WVIfcJ.js";
|
|
6
6
|
import { g as Lr } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
7
|
var X = {}, ke = { exports: {} };
|
|
@@ -9,9 +9,9 @@ ke.exports;
|
|
|
9
9
|
var xt;
|
|
10
10
|
function er() {
|
|
11
11
|
return xt || (xt = 1, (function(e) {
|
|
12
|
-
const r = (
|
|
12
|
+
const r = (c = 0) => (u) => `\x1B[${38 + c};5;${u}m`, o = (c = 0) => (u, p, n) => `\x1B[${38 + c};2;${u};${p};${n}m`;
|
|
13
13
|
function s() {
|
|
14
|
-
const
|
|
14
|
+
const c = /* @__PURE__ */ new Map(), u = {
|
|
15
15
|
modifier: {
|
|
16
16
|
reset: [0, 0],
|
|
17
17
|
// 21 isn't widely supported and 22 does the same thing
|
|
@@ -65,22 +65,22 @@ function er() {
|
|
|
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 [a, l] of Object.entries(n))
|
|
69
|
+
u[a] = {
|
|
70
70
|
open: `\x1B[${l[0]}m`,
|
|
71
71
|
close: `\x1B[${l[1]}m`
|
|
72
|
-
}, n[
|
|
72
|
+
}, n[a] = u[a], c.set(l[0], l[1]);
|
|
73
73
|
Object.defineProperty(u, p, {
|
|
74
74
|
value: n,
|
|
75
75
|
enumerable: !1
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
return Object.defineProperty(u, "codes", {
|
|
79
|
-
value:
|
|
79
|
+
value: c,
|
|
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 = o(), u.bgColor.ansi256 = r(10), u.bgColor.ansi16m = o(10), Object.defineProperties(u, {
|
|
82
82
|
rgbToAnsi256: {
|
|
83
|
-
value: (p, n,
|
|
83
|
+
value: (p, n, a) => p === n && n === a ? 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(a / 255 * 5),
|
|
84
84
|
enumerable: !1
|
|
85
85
|
},
|
|
86
86
|
hexToRgb: {
|
|
@@ -88,9 +88,9 @@ function er() {
|
|
|
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: a } = n.groups;
|
|
92
|
+
a.length === 3 && (a = a.split("").map((i) => i + i).join(""));
|
|
93
|
+
const l = Number.parseInt(a, 16);
|
|
94
94
|
return [
|
|
95
95
|
l >> 16 & 255,
|
|
96
96
|
l >> 8 & 255,
|
|
@@ -116,15 +116,15 @@ 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 =
|
|
120
|
-
const e = (
|
|
121
|
-
const p = Object.keys(
|
|
122
|
-
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(
|
|
123
|
-
Object.getOwnPropertyDescriptor(
|
|
119
|
+
}), be.printIteratorEntries = t, be.printIteratorValues = r, be.printListItems = o, be.printObjectProperties = s;
|
|
120
|
+
const e = (c, u) => {
|
|
121
|
+
const p = Object.keys(c).sort(u);
|
|
122
|
+
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(c).forEach((n) => {
|
|
123
|
+
Object.getOwnPropertyDescriptor(c, n).enumerable && p.push(n);
|
|
124
124
|
}), p;
|
|
125
125
|
};
|
|
126
|
-
function t(
|
|
127
|
-
let d = "", m =
|
|
126
|
+
function t(c, u, p, n, a, l, i = ": ") {
|
|
127
|
+
let d = "", m = c.next();
|
|
128
128
|
if (!m.done) {
|
|
129
129
|
d += u.spacingOuter;
|
|
130
130
|
const E = p + u.indent;
|
|
@@ -134,51 +134,51 @@ function He() {
|
|
|
134
134
|
u,
|
|
135
135
|
E,
|
|
136
136
|
n,
|
|
137
|
-
|
|
137
|
+
a
|
|
138
138
|
), w = l(
|
|
139
139
|
m.value[1],
|
|
140
140
|
u,
|
|
141
141
|
E,
|
|
142
142
|
n,
|
|
143
|
-
|
|
143
|
+
a
|
|
144
144
|
);
|
|
145
|
-
d += E + h + i + w, m =
|
|
145
|
+
d += E + h + i + w, m = c.next(), m.done ? u.min || (d += ",") : d += "," + u.spacingInner;
|
|
146
146
|
}
|
|
147
147
|
d += u.spacingOuter + p;
|
|
148
148
|
}
|
|
149
149
|
return d;
|
|
150
150
|
}
|
|
151
|
-
function r(
|
|
152
|
-
let i = "", d =
|
|
151
|
+
function r(c, u, p, n, a, l) {
|
|
152
|
+
let i = "", d = c.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, a), d = c.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 o(c, u, p, n, a, l) {
|
|
163
163
|
let i = "";
|
|
164
|
-
if (
|
|
164
|
+
if (c.length) {
|
|
165
165
|
i += u.spacingOuter;
|
|
166
166
|
const d = p + u.indent;
|
|
167
|
-
for (let m = 0; m <
|
|
168
|
-
i += d, m in
|
|
167
|
+
for (let m = 0; m < c.length; m++)
|
|
168
|
+
i += d, m in c && (i += l(c[m], u, d, n, a)), m < c.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(
|
|
173
|
+
function s(c, u, p, n, a, l) {
|
|
174
174
|
let i = "";
|
|
175
|
-
const d = e(
|
|
175
|
+
const d = e(c, 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,
|
|
181
|
-
i += m + w + ": " +
|
|
180
|
+
const h = d[E], w = l(h, u, m, n, a), f = l(c[h], u, m, n, a);
|
|
181
|
+
i += m + w + ": " + f, E < d.length - 1 ? i += "," + u.spacingInner : u.min || (i += ",");
|
|
182
182
|
}
|
|
183
183
|
i += u.spacingOuter + p;
|
|
184
184
|
}
|
|
@@ -195,36 +195,36 @@ function Dr() {
|
|
|
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 o = typeof r == "function" && r.for ? r.for("jest.asymmetricMatcher") : 1267621, s = " ", c = (a, l, i, d, m, E) => {
|
|
199
|
+
const h = a.toString();
|
|
200
200
|
return h === "ArrayContaining" || h === "ArrayNotContaining" ? ++d > l.maxDepth ? "[" + h + "]" : h + s + "[" + (0, e.printListItems)(
|
|
201
|
-
|
|
201
|
+
a.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
|
+
a.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(a.sample, l, i, d, m) : a.toAsymmetricMatcher();
|
|
215
215
|
};
|
|
216
|
-
ee.serialize =
|
|
217
|
-
const u = (
|
|
216
|
+
ee.serialize = c;
|
|
217
|
+
const u = (a) => a && a.$$typeof === o;
|
|
218
218
|
ee.test = u;
|
|
219
219
|
var n = {
|
|
220
|
-
serialize:
|
|
220
|
+
serialize: c,
|
|
221
221
|
test: u
|
|
222
222
|
};
|
|
223
223
|
return ee.default = n, ee;
|
|
224
224
|
}
|
|
225
|
-
var te = {}, Ze,
|
|
225
|
+
var te = {}, Ze, _t;
|
|
226
226
|
function qr() {
|
|
227
|
-
return
|
|
227
|
+
return _t || (_t = 1, Ze = ({ onlyFirst: e = !1 } = {}) => {
|
|
228
228
|
const t = [
|
|
229
229
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
230
230
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
@@ -232,18 +232,18 @@ function qr() {
|
|
|
232
232
|
return new RegExp(t, e ? void 0 : "g");
|
|
233
233
|
}), Ze;
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var Ct;
|
|
236
236
|
function jr() {
|
|
237
|
-
if (
|
|
238
|
-
|
|
237
|
+
if (Ct) return te;
|
|
238
|
+
Ct = 1, Object.defineProperty(te, "__esModule", {
|
|
239
239
|
value: !0
|
|
240
240
|
}), te.test = te.serialize = te.default = void 0;
|
|
241
241
|
var e = r(qr()), t = r(er());
|
|
242
242
|
function r(n) {
|
|
243
243
|
return n && n.__esModule ? n : { default: n };
|
|
244
244
|
}
|
|
245
|
-
const
|
|
246
|
-
switch (
|
|
245
|
+
const o = (n) => n.replace((0, e.default)(), (a) => {
|
|
246
|
+
switch (a) {
|
|
247
247
|
case t.default.red.close:
|
|
248
248
|
case t.default.green.close:
|
|
249
249
|
case t.default.cyan.close:
|
|
@@ -288,10 +288,10 @@ function jr() {
|
|
|
288
288
|
}
|
|
289
289
|
}), s = (n) => typeof n == "string" && !!n.match((0, e.default)());
|
|
290
290
|
te.test = s;
|
|
291
|
-
const
|
|
292
|
-
te.serialize =
|
|
291
|
+
const c = (n, a, l, i, d, m) => m(o(n), a, l, i, d);
|
|
292
|
+
te.serialize = c;
|
|
293
293
|
var p = {
|
|
294
|
-
serialize:
|
|
294
|
+
serialize: c,
|
|
295
295
|
test: s
|
|
296
296
|
};
|
|
297
297
|
return te.default = p, te;
|
|
@@ -303,12 +303,12 @@ function kr() {
|
|
|
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"],
|
|
307
|
-
re.test =
|
|
306
|
+
const t = " ", r = ["DOMStringMap", "NamedNodeMap"], o = /^(HTML\w*Collection|NodeList)$/, s = (l) => r.indexOf(l) !== -1 || o.test(l), c = (l) => l && l.constructor && !!l.constructor.name && s(l.constructor.name);
|
|
307
|
+
re.test = c;
|
|
308
308
|
const u = (l) => l.constructor.name === "NamedNodeMap", p = (l, i, d, m, E, h) => {
|
|
309
309
|
const w = l.constructor.name;
|
|
310
310
|
return ++m > i.maxDepth ? "[" + w + "]" : (i.min ? "" : w + t) + (r.indexOf(w) !== -1 ? "{" + (0, e.printObjectProperties)(
|
|
311
|
-
u(l) ? Array.from(l).reduce((
|
|
311
|
+
u(l) ? Array.from(l).reduce((f, A) => (f[A.name] = A.value, f), {}) : { ...l },
|
|
312
312
|
i,
|
|
313
313
|
d,
|
|
314
314
|
m,
|
|
@@ -324,11 +324,11 @@ function kr() {
|
|
|
324
324
|
) + "]");
|
|
325
325
|
};
|
|
326
326
|
re.serialize = p;
|
|
327
|
-
var
|
|
327
|
+
var a = {
|
|
328
328
|
serialize: p,
|
|
329
|
-
test:
|
|
329
|
+
test: c
|
|
330
330
|
};
|
|
331
|
-
return re.default =
|
|
331
|
+
return re.default = a, re;
|
|
332
332
|
}
|
|
333
333
|
var ne = {}, H = {}, Le = {}, Bt;
|
|
334
334
|
function Fr() {
|
|
@@ -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, a, l, i, d, m, E) => {
|
|
355
355
|
const h = i + l.indent, w = l.colors;
|
|
356
|
-
return n.map((
|
|
357
|
-
const A =
|
|
356
|
+
return n.map((f) => {
|
|
357
|
+
const A = a[f];
|
|
358
358
|
let I = E(A, l, h, d, m);
|
|
359
359
|
return typeof A != "string" && (I.indexOf(`
|
|
360
|
-
`) !== -1 && (I = l.spacingOuter + h + I + l.spacingOuter + i), I = "{" + I + "}"), l.spacingInner + i + w.prop.open +
|
|
360
|
+
`) !== -1 && (I = l.spacingOuter + h + I + l.spacingOuter + i), I = "{" + I + "}"), l.spacingInner + i + w.prop.open + f + 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 o = (n, a, l, i, d, m) => n.map(
|
|
365
|
+
(E) => a.spacingOuter + l + (typeof E == "string" ? s(E, a) : m(E, a, l, i, d))
|
|
366
366
|
).join("");
|
|
367
|
-
H.printChildren =
|
|
368
|
-
const s = (n,
|
|
369
|
-
const l =
|
|
367
|
+
H.printChildren = o;
|
|
368
|
+
const s = (n, a) => {
|
|
369
|
+
const l = a.colors.content;
|
|
370
370
|
return l.open + (0, e.default)(n) + l.close;
|
|
371
371
|
};
|
|
372
372
|
H.printText = s;
|
|
373
|
-
const
|
|
374
|
-
const l =
|
|
373
|
+
const c = (n, a) => {
|
|
374
|
+
const l = a.colors.comment;
|
|
375
375
|
return l.open + "<!--" + (0, e.default)(n) + "-->" + l.close;
|
|
376
376
|
};
|
|
377
|
-
H.printComment =
|
|
378
|
-
const u = (n,
|
|
377
|
+
H.printComment = c;
|
|
378
|
+
const u = (n, a, l, i, d) => {
|
|
379
379
|
const m = i.colors.tag;
|
|
380
|
-
return m.open + "<" + n + (
|
|
380
|
+
return m.open + "<" + n + (a && m.close + a + i.spacingOuter + d + m.open) + (l ? ">" + m.close + l + i.spacingOuter + d + m.open + "</" + n : (a && !i.min ? "" : " ") + "/") + ">" + m.close;
|
|
381
381
|
};
|
|
382
382
|
H.printElement = u;
|
|
383
|
-
const p = (n,
|
|
384
|
-
const l =
|
|
383
|
+
const p = (n, a) => {
|
|
384
|
+
const l = a.colors.tag;
|
|
385
385
|
return l.open + "<" + n + l.close + " …" + l.open + " />" + l.close;
|
|
386
386
|
};
|
|
387
387
|
return H.printElementAsLeaf = p, H;
|
|
@@ -393,31 +393,31 @@ function $r() {
|
|
|
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, o = 8, s = 11, c = /^((HTML|SVG)\w*)?Element$/, u = (h) => {
|
|
397
397
|
try {
|
|
398
398
|
return typeof h.hasAttribute == "function" && h.hasAttribute("is");
|
|
399
399
|
} catch {
|
|
400
400
|
return !1;
|
|
401
401
|
}
|
|
402
402
|
}, p = (h) => {
|
|
403
|
-
const w = h.constructor.name, { nodeType:
|
|
404
|
-
return
|
|
403
|
+
const w = h.constructor.name, { nodeType: f, tagName: A } = h, I = typeof A == "string" && A.includes("-") || u(h);
|
|
404
|
+
return f === t && (c.test(w) || I) || f === r && w === "Text" || f === o && w === "Comment" || f === 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 a(h) {
|
|
411
411
|
return h.nodeType === r;
|
|
412
412
|
}
|
|
413
413
|
function l(h) {
|
|
414
|
-
return h.nodeType ===
|
|
414
|
+
return h.nodeType === o;
|
|
415
415
|
}
|
|
416
416
|
function i(h) {
|
|
417
417
|
return h.nodeType === s;
|
|
418
418
|
}
|
|
419
|
-
const d = (h, w,
|
|
420
|
-
if (
|
|
419
|
+
const d = (h, w, f, A, I, x) => {
|
|
420
|
+
if (a(h))
|
|
421
421
|
return (0, e.printText)(h.data, w);
|
|
422
422
|
if (l(h))
|
|
423
423
|
return (0, e.printComment)(h.data, w);
|
|
@@ -428,7 +428,7 @@ function $r() {
|
|
|
428
428
|
i(h) ? [] : Array.from(h.attributes).map((y) => y.name).sort(),
|
|
429
429
|
i(h) ? {} : Array.from(h.attributes).reduce((y, g) => (y[g.name] = g.value, y), {}),
|
|
430
430
|
w,
|
|
431
|
-
|
|
431
|
+
f + w.indent,
|
|
432
432
|
A,
|
|
433
433
|
I,
|
|
434
434
|
x
|
|
@@ -436,13 +436,13 @@ function $r() {
|
|
|
436
436
|
(0, e.printChildren)(
|
|
437
437
|
Array.prototype.slice.call(h.childNodes || h.children),
|
|
438
438
|
w,
|
|
439
|
-
|
|
439
|
+
f + w.indent,
|
|
440
440
|
A,
|
|
441
441
|
I,
|
|
442
442
|
x
|
|
443
443
|
),
|
|
444
444
|
w,
|
|
445
|
-
|
|
445
|
+
f
|
|
446
446
|
);
|
|
447
447
|
};
|
|
448
448
|
ne.serialize = d;
|
|
@@ -459,10 +459,10 @@ function zr() {
|
|
|
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__@@", o = "@@__IMMUTABLE_KEYED__@@", s = "@@__IMMUTABLE_MAP__@@", c = "@@__IMMUTABLE_ORDERED__@@", u = "@@__IMMUTABLE_RECORD__@@", p = "@@__IMMUTABLE_SEQ__@@", n = "@@__IMMUTABLE_SET__@@", a = "@@__IMMUTABLE_STACK__@@", l = (g) => "Immutable." + g, i = (g) => "[" + g + "]", d = " ", m = "…", E = (g, v, C, 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
|
+
C,
|
|
466
466
|
R,
|
|
467
467
|
B,
|
|
468
468
|
N
|
|
@@ -472,10 +472,10 @@ function zr() {
|
|
|
472
472
|
return {
|
|
473
473
|
next() {
|
|
474
474
|
if (v < g._keys.length) {
|
|
475
|
-
const
|
|
475
|
+
const C = g._keys[v++];
|
|
476
476
|
return {
|
|
477
477
|
done: !1,
|
|
478
|
-
value: [
|
|
478
|
+
value: [C, g.get(C)]
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
481
|
return {
|
|
@@ -485,23 +485,23 @@ function zr() {
|
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
const w = (g, v,
|
|
488
|
+
const w = (g, v, C, R, B, N) => {
|
|
489
489
|
const S = l(g._name || "Record");
|
|
490
490
|
return ++R > v.maxDepth ? i(S) : S + d + "{" + (0, e.printIteratorEntries)(
|
|
491
491
|
h(g),
|
|
492
492
|
v,
|
|
493
|
-
|
|
493
|
+
C,
|
|
494
494
|
R,
|
|
495
495
|
B,
|
|
496
496
|
N
|
|
497
497
|
) + "}";
|
|
498
|
-
},
|
|
498
|
+
}, f = (g, v, C, 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[o] ? 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,
|
|
504
|
-
|
|
504
|
+
C,
|
|
505
505
|
R,
|
|
506
506
|
B,
|
|
507
507
|
N
|
|
@@ -511,30 +511,30 @@ function zr() {
|
|
|
511
511
|
g._iterable ? (0, e.printIteratorValues)(
|
|
512
512
|
g.values(),
|
|
513
513
|
v,
|
|
514
|
-
|
|
514
|
+
C,
|
|
515
515
|
R,
|
|
516
516
|
B,
|
|
517
517
|
N
|
|
518
518
|
) : m) + "]";
|
|
519
|
-
}, A = (g, v,
|
|
519
|
+
}, A = (g, v, C, R, B, N, S) => ++R > v.maxDepth ? i(l(S)) : l(S) + d + "[" + (0, e.printIteratorValues)(
|
|
520
520
|
g.values(),
|
|
521
521
|
v,
|
|
522
|
-
|
|
522
|
+
C,
|
|
523
523
|
R,
|
|
524
524
|
B,
|
|
525
525
|
N
|
|
526
|
-
) + "]", I = (g, v,
|
|
526
|
+
) + "]", I = (g, v, C, R, B, N) => g[s] ? E(
|
|
527
527
|
g,
|
|
528
528
|
v,
|
|
529
|
-
|
|
529
|
+
C,
|
|
530
530
|
R,
|
|
531
531
|
B,
|
|
532
532
|
N,
|
|
533
|
-
g[
|
|
533
|
+
g[c] ? "OrderedMap" : "Map"
|
|
534
534
|
) : g[r] ? A(
|
|
535
535
|
g,
|
|
536
536
|
v,
|
|
537
|
-
|
|
537
|
+
C,
|
|
538
538
|
R,
|
|
539
539
|
B,
|
|
540
540
|
N,
|
|
@@ -542,20 +542,20 @@ function zr() {
|
|
|
542
542
|
) : g[n] ? A(
|
|
543
543
|
g,
|
|
544
544
|
v,
|
|
545
|
-
|
|
545
|
+
C,
|
|
546
546
|
R,
|
|
547
547
|
B,
|
|
548
548
|
N,
|
|
549
|
-
g[
|
|
550
|
-
) : g[
|
|
549
|
+
g[c] ? "OrderedSet" : "Set"
|
|
550
|
+
) : g[a] ? A(
|
|
551
551
|
g,
|
|
552
552
|
v,
|
|
553
|
-
|
|
553
|
+
C,
|
|
554
554
|
R,
|
|
555
555
|
B,
|
|
556
556
|
N,
|
|
557
557
|
"Stack"
|
|
558
|
-
) : g[p] ?
|
|
558
|
+
) : g[p] ? f(g, v, C, R, B, N) : w(g, v, C, R, B, N);
|
|
559
559
|
ie.serialize = I;
|
|
560
560
|
const x = (g) => g && (g[t] === !0 || g[u] === !0);
|
|
561
561
|
ie.test = x;
|
|
@@ -570,22 +570,22 @@ var Dt;
|
|
|
570
570
|
function Ur() {
|
|
571
571
|
if (Dt) return D;
|
|
572
572
|
Dt = 1;
|
|
573
|
-
var e = 60103, t = 60106, r = 60107,
|
|
573
|
+
var e = 60103, t = 60106, r = 60107, o = 60108, s = 60114, c = 60109, u = 60110, p = 60112, n = 60113, a = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
|
|
574
574
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
575
|
-
var
|
|
576
|
-
e =
|
|
575
|
+
var f = Symbol.for;
|
|
576
|
+
e = f("react.element"), t = f("react.portal"), r = f("react.fragment"), o = f("react.strict_mode"), s = f("react.profiler"), c = f("react.provider"), u = f("react.context"), p = f("react.forward_ref"), n = f("react.suspense"), a = f("react.suspense_list"), l = f("react.memo"), i = f("react.lazy"), d = f("react.block"), m = f("react.server.block"), E = f("react.fundamental"), h = f("react.debug_trace_mode"), w = f("react.legacy_hidden");
|
|
577
577
|
}
|
|
578
578
|
function A(S) {
|
|
579
579
|
if (typeof S == "object" && S !== null) {
|
|
580
|
-
var
|
|
581
|
-
switch (
|
|
580
|
+
var _ = S.$$typeof;
|
|
581
|
+
switch (_) {
|
|
582
582
|
case e:
|
|
583
583
|
switch (S = S.type, S) {
|
|
584
584
|
case r:
|
|
585
585
|
case s:
|
|
586
|
-
case a:
|
|
587
|
-
case n:
|
|
588
586
|
case o:
|
|
587
|
+
case n:
|
|
588
|
+
case a:
|
|
589
589
|
return S;
|
|
590
590
|
default:
|
|
591
591
|
switch (S = S && S.$$typeof, S) {
|
|
@@ -593,26 +593,26 @@ function Ur() {
|
|
|
593
593
|
case p:
|
|
594
594
|
case i:
|
|
595
595
|
case l:
|
|
596
|
-
case
|
|
596
|
+
case c:
|
|
597
597
|
return S;
|
|
598
598
|
default:
|
|
599
|
-
return
|
|
599
|
+
return _;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
case t:
|
|
603
|
-
return
|
|
603
|
+
return _;
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
var I =
|
|
608
|
-
return D.ContextConsumer = u, D.ContextProvider = I, D.Element = x, D.ForwardRef = M, D.Fragment = y, D.Lazy = g, D.Memo = v, D.Portal =
|
|
607
|
+
var I = c, x = e, M = p, y = r, g = i, v = l, C = t, R = s, B = o, N = n;
|
|
608
|
+
return D.ContextConsumer = u, D.ContextProvider = I, D.Element = x, D.ForwardRef = M, D.Fragment = y, D.Lazy = g, D.Memo = v, D.Portal = C, D.Profiler = R, D.StrictMode = B, D.Suspense = N, D.isAsyncMode = function() {
|
|
609
609
|
return !1;
|
|
610
610
|
}, D.isConcurrentMode = function() {
|
|
611
611
|
return !1;
|
|
612
612
|
}, D.isContextConsumer = function(S) {
|
|
613
613
|
return A(S) === u;
|
|
614
614
|
}, D.isContextProvider = function(S) {
|
|
615
|
-
return A(S) ===
|
|
615
|
+
return A(S) === c;
|
|
616
616
|
}, D.isElement = function(S) {
|
|
617
617
|
return typeof S == "object" && S !== null && S.$$typeof === e;
|
|
618
618
|
}, D.isForwardRef = function(S) {
|
|
@@ -628,25 +628,25 @@ function Ur() {
|
|
|
628
628
|
}, D.isProfiler = function(S) {
|
|
629
629
|
return A(S) === s;
|
|
630
630
|
}, D.isStrictMode = function(S) {
|
|
631
|
-
return A(S) ===
|
|
631
|
+
return A(S) === o;
|
|
632
632
|
}, D.isSuspense = function(S) {
|
|
633
633
|
return A(S) === n;
|
|
634
634
|
}, D.isValidElementType = function(S) {
|
|
635
|
-
return typeof S == "string" || typeof S == "function" || S === r || S === s || S === h || S ===
|
|
635
|
+
return typeof S == "string" || typeof S == "function" || S === r || S === s || S === h || S === o || S === n || S === a || S === w || typeof S == "object" && S !== null && (S.$$typeof === i || S.$$typeof === l || S.$$typeof === c || S.$$typeof === u || S.$$typeof === p || S.$$typeof === E || S.$$typeof === d || S[0] === m);
|
|
636
636
|
}, D.typeOf = A, D;
|
|
637
637
|
}
|
|
638
638
|
var q = {};
|
|
639
639
|
var qt;
|
|
640
640
|
function Wr() {
|
|
641
641
|
return qt || (qt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
642
|
-
var e = 60103, t = 60106, r = 60107,
|
|
642
|
+
var e = 60103, t = 60106, r = 60107, o = 60108, s = 60114, c = 60109, u = 60110, p = 60112, n = 60113, a = 60120, l = 60115, i = 60116, d = 60121, m = 60122, E = 60117, h = 60129, w = 60131;
|
|
643
643
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
644
|
-
var
|
|
645
|
-
e =
|
|
644
|
+
var f = Symbol.for;
|
|
645
|
+
e = f("react.element"), t = f("react.portal"), r = f("react.fragment"), o = f("react.strict_mode"), s = f("react.profiler"), c = f("react.provider"), u = f("react.context"), p = f("react.forward_ref"), n = f("react.suspense"), a = f("react.suspense_list"), l = f("react.memo"), i = f("react.lazy"), d = f("react.block"), m = f("react.server.block"), E = f("react.fundamental"), f("react.scope"), f("react.opaque.id"), h = f("react.debug_trace_mode"), f("react.offscreen"), w = f("react.legacy_hidden");
|
|
646
646
|
}
|
|
647
647
|
var A = !1;
|
|
648
648
|
function I(T) {
|
|
649
|
-
return !!(typeof T == "string" || typeof T == "function" || T === r || T === s || T === h || T ===
|
|
649
|
+
return !!(typeof T == "string" || typeof T == "function" || T === r || T === s || T === h || T === o || T === n || T === a || T === w || A || typeof T == "object" && T !== null && (T.$$typeof === i || T.$$typeof === l || T.$$typeof === c || T.$$typeof === u || T.$$typeof === p || T.$$typeof === E || T.$$typeof === d || T[0] === m));
|
|
650
650
|
}
|
|
651
651
|
function x(T) {
|
|
652
652
|
if (typeof T == "object" && T !== null) {
|
|
@@ -657,9 +657,9 @@ function Wr() {
|
|
|
657
657
|
switch (P) {
|
|
658
658
|
case r:
|
|
659
659
|
case s:
|
|
660
|
-
case a:
|
|
661
|
-
case n:
|
|
662
660
|
case o:
|
|
661
|
+
case n:
|
|
662
|
+
case a:
|
|
663
663
|
return P;
|
|
664
664
|
default:
|
|
665
665
|
var U = P && P.$$typeof;
|
|
@@ -668,7 +668,7 @@ function Wr() {
|
|
|
668
668
|
case p:
|
|
669
669
|
case i:
|
|
670
670
|
case l:
|
|
671
|
-
case
|
|
671
|
+
case c:
|
|
672
672
|
return U;
|
|
673
673
|
default:
|
|
674
674
|
return L;
|
|
@@ -679,7 +679,7 @@ function Wr() {
|
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
var M = u, y =
|
|
682
|
+
var M = u, y = c, g = e, v = p, C = r, R = i, B = l, N = t, S = s, _ = o, W = n, z = !1, k = !1;
|
|
683
683
|
function Z(T) {
|
|
684
684
|
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
685
685
|
}
|
|
@@ -689,8 +689,8 @@ function Wr() {
|
|
|
689
689
|
function Ke(T) {
|
|
690
690
|
return x(T) === u;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
return x(T) ===
|
|
692
|
+
function Ce(T) {
|
|
693
|
+
return x(T) === c;
|
|
694
694
|
}
|
|
695
695
|
function Re(T) {
|
|
696
696
|
return typeof T == "object" && T !== null && T.$$typeof === e;
|
|
@@ -714,12 +714,12 @@ function Wr() {
|
|
|
714
714
|
return x(T) === s;
|
|
715
715
|
}
|
|
716
716
|
function b(T) {
|
|
717
|
-
return x(T) ===
|
|
717
|
+
return x(T) === o;
|
|
718
718
|
}
|
|
719
719
|
function O(T) {
|
|
720
720
|
return x(T) === n;
|
|
721
721
|
}
|
|
722
|
-
q.ContextConsumer = M, q.ContextProvider = y, q.Element = g, q.ForwardRef = v, q.Fragment =
|
|
722
|
+
q.ContextConsumer = M, q.ContextProvider = y, q.Element = g, q.ForwardRef = v, q.Fragment = C, q.Lazy = R, q.Memo = B, q.Portal = N, q.Profiler = S, q.StrictMode = _, q.Suspense = W, q.isAsyncMode = Z, q.isConcurrentMode = Se, q.isContextConsumer = Ke, q.isContextProvider = Ce, q.isElement = Re, q.isForwardRef = Be, q.isFragment = Ne, q.isLazy = Je, q.isMemo = Pe, q.isPortal = Qe, q.isProfiler = Xe, q.isStrictMode = b, q.isSuspense = O, q.isValidElementType = I, q.typeOf = x;
|
|
723
723
|
})()), q;
|
|
724
724
|
}
|
|
725
725
|
var jt;
|
|
@@ -732,7 +732,7 @@ function Hr() {
|
|
|
732
732
|
kt = 1, Object.defineProperty(oe, "__esModule", {
|
|
733
733
|
value: !0
|
|
734
734
|
}), oe.test = oe.serialize = oe.default = void 0;
|
|
735
|
-
var e =
|
|
735
|
+
var e = o(Vr()), t = gt();
|
|
736
736
|
function r(i) {
|
|
737
737
|
if (typeof WeakMap != "function") return null;
|
|
738
738
|
var d = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
|
|
@@ -740,7 +740,7 @@ function Hr() {
|
|
|
740
740
|
return E ? m : d;
|
|
741
741
|
})(i);
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function o(i, d) {
|
|
744
744
|
if (i && i.__esModule)
|
|
745
745
|
return i;
|
|
746
746
|
if (i === null || typeof i != "object" && typeof i != "function")
|
|
@@ -751,14 +751,14 @@ function Hr() {
|
|
|
751
751
|
var E = {}, h = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
752
752
|
for (var w in i)
|
|
753
753
|
if (w !== "default" && Object.prototype.hasOwnProperty.call(i, w)) {
|
|
754
|
-
var
|
|
755
|
-
|
|
754
|
+
var f = h ? Object.getOwnPropertyDescriptor(i, w) : null;
|
|
755
|
+
f && (f.get || f.set) ? Object.defineProperty(E, w, f) : E[w] = i[w];
|
|
756
756
|
}
|
|
757
757
|
return E.default = i, m && m.set(i, E), E;
|
|
758
758
|
}
|
|
759
759
|
const s = (i, d = []) => (Array.isArray(i) ? i.forEach((m) => {
|
|
760
760
|
s(m, d);
|
|
761
|
-
}) : i != null && i !== !1 && d.push(i), d),
|
|
761
|
+
}) : i != null && i !== !1 && d.push(i), d), c = (i) => {
|
|
762
762
|
const d = i.type;
|
|
763
763
|
if (typeof d == "string")
|
|
764
764
|
return d;
|
|
@@ -788,8 +788,8 @@ function Hr() {
|
|
|
788
788
|
}, u = (i) => {
|
|
789
789
|
const { props: d } = i;
|
|
790
790
|
return Object.keys(d).filter((m) => m !== "children" && d[m] !== void 0).sort();
|
|
791
|
-
}, p = (i, d, m, E, h, w) => ++E > d.maxDepth ? (0, t.printElementAsLeaf)(
|
|
792
|
-
|
|
791
|
+
}, p = (i, d, m, E, h, w) => ++E > d.maxDepth ? (0, t.printElementAsLeaf)(c(i), d) : (0, t.printElement)(
|
|
792
|
+
c(i),
|
|
793
793
|
(0, t.printProps)(
|
|
794
794
|
u(i),
|
|
795
795
|
i.props,
|
|
@@ -828,22 +828,22 @@ function Gr() {
|
|
|
828
828
|
var e = gt(), t = (function() {
|
|
829
829
|
return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
830
830
|
})(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
|
|
831
|
-
const
|
|
832
|
-
const { props: l } =
|
|
831
|
+
const o = typeof r == "function" && r.for ? r.for("react.test.json") : 245830487, s = (a) => {
|
|
832
|
+
const { props: l } = a;
|
|
833
833
|
return l ? Object.keys(l).filter((i) => l[i] !== void 0).sort() : [];
|
|
834
|
-
},
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
s(
|
|
838
|
-
|
|
834
|
+
}, c = (a, l, i, d, m, E) => ++d > l.maxDepth ? (0, e.printElementAsLeaf)(a.type, l) : (0, e.printElement)(
|
|
835
|
+
a.type,
|
|
836
|
+
a.props ? (0, e.printProps)(
|
|
837
|
+
s(a),
|
|
838
|
+
a.props,
|
|
839
839
|
l,
|
|
840
840
|
i + l.indent,
|
|
841
841
|
d,
|
|
842
842
|
m,
|
|
843
843
|
E
|
|
844
844
|
) : "",
|
|
845
|
-
|
|
846
|
-
|
|
845
|
+
a.children ? (0, e.printChildren)(
|
|
846
|
+
a.children,
|
|
847
847
|
l,
|
|
848
848
|
i + l.indent,
|
|
849
849
|
d,
|
|
@@ -853,11 +853,11 @@ function Gr() {
|
|
|
853
853
|
l,
|
|
854
854
|
i
|
|
855
855
|
);
|
|
856
|
-
ae.serialize =
|
|
857
|
-
const u = (
|
|
856
|
+
ae.serialize = c;
|
|
857
|
+
const u = (a) => a && a.$$typeof === o;
|
|
858
858
|
ae.test = u;
|
|
859
859
|
var n = {
|
|
860
|
-
serialize:
|
|
860
|
+
serialize: c,
|
|
861
861
|
test: u
|
|
862
862
|
};
|
|
863
863
|
return ae.default = n, ae;
|
|
@@ -868,15 +868,15 @@ function Yr() {
|
|
|
868
868
|
$t = 1, Object.defineProperty(X, "__esModule", {
|
|
869
869
|
value: !0
|
|
870
870
|
}), X.default = X.DEFAULT_OPTIONS = void 0, X.format = Pe, X.plugins = void 0;
|
|
871
|
-
var e =
|
|
871
|
+
var e = a(er()), t = He(), r = a(
|
|
872
872
|
Dr()
|
|
873
|
-
),
|
|
873
|
+
), o = a(jr()), s = a(kr()), c = a($r()), u = a(zr()), p = a(Hr()), n = a(
|
|
874
874
|
Gr()
|
|
875
875
|
);
|
|
876
|
-
function
|
|
876
|
+
function a(b) {
|
|
877
877
|
return b && b.__esModule ? b : { default: b };
|
|
878
878
|
}
|
|
879
|
-
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\((.*)\)(.*)$/,
|
|
879
|
+
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\((.*)\)(.*)$/, f = /\n/gi;
|
|
880
880
|
class A extends Error {
|
|
881
881
|
constructor(O, T) {
|
|
882
882
|
super(O), this.stack = T, this.name = this.constructor.name;
|
|
@@ -900,7 +900,7 @@ function Yr() {
|
|
|
900
900
|
function v(b) {
|
|
901
901
|
return "[" + d.call(b) + "]";
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function C(b, O, T, L) {
|
|
904
904
|
if (b === !0 || b === !1)
|
|
905
905
|
return "" + b;
|
|
906
906
|
if (b === void 0)
|
|
@@ -927,7 +927,7 @@ function Yr() {
|
|
|
927
927
|
P = P.slice(), P.push(b);
|
|
928
928
|
const G = ++L > O.maxDepth, Y = O.min;
|
|
929
929
|
if (O.callToJSON && !G && b.toJSON && typeof b.toJSON == "function" && !U)
|
|
930
|
-
return
|
|
930
|
+
return _(b.toJSON(), O, T, L, P, !0);
|
|
931
931
|
const pe = l.call(b);
|
|
932
932
|
return pe === "[object Arguments]" ? G ? "[Arguments]" : (Y ? "" : "Arguments ") + "[" + (0, t.printListItems)(
|
|
933
933
|
b,
|
|
@@ -935,21 +935,21 @@ function Yr() {
|
|
|
935
935
|
T,
|
|
936
936
|
L,
|
|
937
937
|
P,
|
|
938
|
-
|
|
938
|
+
_
|
|
939
939
|
) + "]" : I(pe) ? G ? "[" + b.constructor.name + "]" : (Y || !O.printBasicPrototype && b.constructor.name === "Array" ? "" : b.constructor.name + " ") + "[" + (0, t.printListItems)(
|
|
940
940
|
b,
|
|
941
941
|
O,
|
|
942
942
|
T,
|
|
943
943
|
L,
|
|
944
944
|
P,
|
|
945
|
-
|
|
945
|
+
_
|
|
946
946
|
) + "]" : pe === "[object Map]" ? G ? "[Map]" : "Map {" + (0, t.printIteratorEntries)(
|
|
947
947
|
b.entries(),
|
|
948
948
|
O,
|
|
949
949
|
T,
|
|
950
950
|
L,
|
|
951
951
|
P,
|
|
952
|
-
|
|
952
|
+
_,
|
|
953
953
|
" => "
|
|
954
954
|
) + "}" : pe === "[object Set]" ? G ? "[Set]" : "Set {" + (0, t.printIteratorValues)(
|
|
955
955
|
b.values(),
|
|
@@ -957,14 +957,14 @@ function Yr() {
|
|
|
957
957
|
T,
|
|
958
958
|
L,
|
|
959
959
|
P,
|
|
960
|
-
|
|
960
|
+
_
|
|
961
961
|
) + "}" : G || h(b) ? "[" + E(b) + "]" : (Y || !O.printBasicPrototype && E(b) === "Object" ? "" : E(b) + " ") + "{" + (0, t.printObjectProperties)(
|
|
962
962
|
b,
|
|
963
963
|
O,
|
|
964
964
|
T,
|
|
965
965
|
L,
|
|
966
966
|
P,
|
|
967
|
-
|
|
967
|
+
_
|
|
968
968
|
) + "}";
|
|
969
969
|
}
|
|
970
970
|
function B(b) {
|
|
@@ -973,12 +973,12 @@ function Yr() {
|
|
|
973
973
|
function N(b, O, T, L, P, U) {
|
|
974
974
|
let G;
|
|
975
975
|
try {
|
|
976
|
-
G = B(b) ? b.serialize(O, T, L, P, U,
|
|
976
|
+
G = B(b) ? b.serialize(O, T, L, P, U, _) : b.print(
|
|
977
977
|
O,
|
|
978
|
-
(Y) =>
|
|
978
|
+
(Y) => _(Y, T, L, P, U),
|
|
979
979
|
(Y) => {
|
|
980
980
|
const pe = L + T.indent;
|
|
981
|
-
return pe + Y.replace(
|
|
981
|
+
return pe + Y.replace(f, `
|
|
982
982
|
` + pe);
|
|
983
983
|
},
|
|
984
984
|
{
|
|
@@ -1007,11 +1007,11 @@ function Yr() {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
return null;
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function _(b, O, T, L, P, U) {
|
|
1011
1011
|
const G = S(O.plugins, b);
|
|
1012
1012
|
if (G !== null)
|
|
1013
1013
|
return N(G, b, O, T, L, P);
|
|
1014
|
-
const Y =
|
|
1014
|
+
const Y = C(
|
|
1015
1015
|
b,
|
|
1016
1016
|
O.printFunctionName,
|
|
1017
1017
|
O.escapeRegex,
|
|
@@ -1076,7 +1076,7 @@ function Yr() {
|
|
|
1076
1076
|
}, /* @__PURE__ */ Object.create(null)), Ke = () => z.reduce((b, O) => (b[O] = {
|
|
1077
1077
|
close: "",
|
|
1078
1078
|
open: ""
|
|
1079
|
-
}, b), /* @__PURE__ */ Object.create(null)),
|
|
1079
|
+
}, b), /* @__PURE__ */ Object.create(null)), Ce = (b) => b && b.printFunctionName !== void 0 ? b.printFunctionName : k.printFunctionName, Re = (b) => b && b.escapeRegex !== void 0 ? b.escapeRegex : k.escapeRegex, Be = (b) => b && b.escapeString !== void 0 ? b.escapeString : k.escapeString, Ne = (b) => {
|
|
1080
1080
|
var O;
|
|
1081
1081
|
return {
|
|
1082
1082
|
callToJSON: b && b.callToJSON !== void 0 ? b.callToJSON : k.callToJSON,
|
|
@@ -1091,7 +1091,7 @@ function Yr() {
|
|
|
1091
1091
|
min: b && b.min !== void 0 ? b.min : k.min,
|
|
1092
1092
|
plugins: b && b.plugins !== void 0 ? b.plugins : k.plugins,
|
|
1093
1093
|
printBasicPrototype: (O = b?.printBasicPrototype) !== null && O !== void 0 ? O : !0,
|
|
1094
|
-
printFunctionName:
|
|
1094
|
+
printFunctionName: Ce(b),
|
|
1095
1095
|
spacingInner: b && b.min ? " " : `
|
|
1096
1096
|
`,
|
|
1097
1097
|
spacingOuter: b && b.min ? "" : `
|
|
@@ -1107,9 +1107,9 @@ function Yr() {
|
|
|
1107
1107
|
if (L !== null)
|
|
1108
1108
|
return N(L, b, Ne(O), "", 0, []);
|
|
1109
1109
|
}
|
|
1110
|
-
const T =
|
|
1110
|
+
const T = C(
|
|
1111
1111
|
b,
|
|
1112
|
-
|
|
1112
|
+
Ce(O),
|
|
1113
1113
|
Re(O),
|
|
1114
1114
|
Be(O)
|
|
1115
1115
|
);
|
|
@@ -1117,9 +1117,9 @@ function Yr() {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
const Qe = {
|
|
1119
1119
|
AsymmetricMatcher: r.default,
|
|
1120
|
-
ConvertAnsi:
|
|
1120
|
+
ConvertAnsi: o.default,
|
|
1121
1121
|
DOMCollection: s.default,
|
|
1122
|
-
DOMElement:
|
|
1122
|
+
DOMElement: c.default,
|
|
1123
1123
|
Immutable: u.default,
|
|
1124
1124
|
ReactElement: p.default,
|
|
1125
1125
|
ReactTestComponent: n.default
|
|
@@ -1142,12 +1142,12 @@ function Zr(e) {
|
|
|
1142
1142
|
return Math.min(Math.max(t, 0), Xr);
|
|
1143
1143
|
}
|
|
1144
1144
|
function Q(e, t) {
|
|
1145
|
-
var r = Array,
|
|
1145
|
+
var r = Array, o = Object(e);
|
|
1146
1146
|
if (e == null)
|
|
1147
1147
|
throw new TypeError("Array.from requires an array-like object - not null or undefined");
|
|
1148
|
-
for (var s = Zr(
|
|
1149
|
-
p =
|
|
1150
|
-
return
|
|
1148
|
+
for (var s = Zr(o.length), c = Jr(r) ? Object(new r(s)) : new Array(s), u = 0, p; u < s; )
|
|
1149
|
+
p = o[u], c[u] = p, u += 1;
|
|
1150
|
+
return c.length = s, c;
|
|
1151
1151
|
}
|
|
1152
1152
|
function xe(e) {
|
|
1153
1153
|
"@babel/helpers - typeof";
|
|
@@ -1163,8 +1163,8 @@ function en(e, t) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
function tn(e, t) {
|
|
1165
1165
|
for (var r = 0; r < t.length; r++) {
|
|
1166
|
-
var
|
|
1167
|
-
|
|
1166
|
+
var o = t[r];
|
|
1167
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, rr(o.key), o);
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
function rn(e, t, r) {
|
|
@@ -1181,8 +1181,8 @@ function on(e, t) {
|
|
|
1181
1181
|
if (xe(e) !== "object" || e === null) return e;
|
|
1182
1182
|
var r = e[Symbol.toPrimitive];
|
|
1183
1183
|
if (r !== void 0) {
|
|
1184
|
-
var
|
|
1185
|
-
if (xe(
|
|
1184
|
+
var o = r.call(e, t);
|
|
1185
|
+
if (xe(o) !== "object") return o;
|
|
1186
1186
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1187
1187
|
}
|
|
1188
1188
|
return (t === "string" ? String : Number)(e);
|
|
@@ -1205,17 +1205,17 @@ var an = /* @__PURE__ */ (function() {
|
|
|
1205
1205
|
}, {
|
|
1206
1206
|
key: "delete",
|
|
1207
1207
|
value: function(r) {
|
|
1208
|
-
var
|
|
1208
|
+
var o = this.items.length;
|
|
1209
1209
|
return this.items = this.items.filter(function(s) {
|
|
1210
1210
|
return s !== r;
|
|
1211
|
-
}),
|
|
1211
|
+
}), o !== this.items.length;
|
|
1212
1212
|
}
|
|
1213
1213
|
}, {
|
|
1214
1214
|
key: "forEach",
|
|
1215
1215
|
value: function(r) {
|
|
1216
|
-
var
|
|
1216
|
+
var o = this;
|
|
1217
1217
|
this.items.forEach(function(s) {
|
|
1218
|
-
r(s, s,
|
|
1218
|
+
r(s, s, o);
|
|
1219
1219
|
});
|
|
1220
1220
|
}
|
|
1221
1221
|
}, {
|
|
@@ -1326,8 +1326,8 @@ function cn(e, t) {
|
|
|
1326
1326
|
"aria-relevant",
|
|
1327
1327
|
"aria-roledescription"
|
|
1328
1328
|
].some(function(r) {
|
|
1329
|
-
var
|
|
1330
|
-
return e.hasAttribute(r) && !((
|
|
1329
|
+
var o;
|
|
1330
|
+
return e.hasAttribute(r) && !((o = sn[t]) !== null && o !== void 0 && o.has(r));
|
|
1331
1331
|
});
|
|
1332
1332
|
}
|
|
1333
1333
|
function nr(e, t) {
|
|
@@ -1356,8 +1356,8 @@ function dn(e) {
|
|
|
1356
1356
|
case "img":
|
|
1357
1357
|
return e.getAttribute("alt") === "" && !nr(e, "img") ? "presentation" : "img";
|
|
1358
1358
|
case "input": {
|
|
1359
|
-
var r = e,
|
|
1360
|
-
switch (
|
|
1359
|
+
var r = e, o = r.type;
|
|
1360
|
+
switch (o) {
|
|
1361
1361
|
case "button":
|
|
1362
1362
|
case "image":
|
|
1363
1363
|
case "reset":
|
|
@@ -1365,7 +1365,7 @@ function dn(e) {
|
|
|
1365
1365
|
return "button";
|
|
1366
1366
|
case "checkbox":
|
|
1367
1367
|
case "radio":
|
|
1368
|
-
return
|
|
1368
|
+
return o;
|
|
1369
1369
|
case "range":
|
|
1370
1370
|
return "slider";
|
|
1371
1371
|
case "email":
|
|
@@ -1442,9 +1442,9 @@ function Sn(e) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
function $e(e, t) {
|
|
1444
1444
|
if (F(e) && e.hasAttribute(t)) {
|
|
1445
|
-
var r = e.getAttribute(t).split(" "),
|
|
1445
|
+
var r = e.getAttribute(t).split(" "), o = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
1446
1446
|
return r.map(function(s) {
|
|
1447
|
-
return
|
|
1447
|
+
return o.getElementById(s);
|
|
1448
1448
|
}).filter(
|
|
1449
1449
|
function(s) {
|
|
1450
1450
|
return s !== null;
|
|
@@ -1483,17 +1483,17 @@ function or(e, t) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
function zt(e, t) {
|
|
1485
1485
|
var r = Q(e.querySelectorAll(t));
|
|
1486
|
-
return $e(e, "aria-owns").forEach(function(
|
|
1487
|
-
r.push.apply(r, Q(
|
|
1486
|
+
return $e(e, "aria-owns").forEach(function(o) {
|
|
1487
|
+
r.push.apply(r, Q(o.querySelectorAll(t)));
|
|
1488
1488
|
}), r;
|
|
1489
1489
|
}
|
|
1490
1490
|
function Mn(e) {
|
|
1491
1491
|
return mn(e) ? e.selectedOptions || zt(e, "[selected]") : zt(e, '[aria-selected="true"]');
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function _n(e) {
|
|
1494
1494
|
return le(e, ["none", "presentation"]);
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function Cn(e) {
|
|
1497
1497
|
return ir(e);
|
|
1498
1498
|
}
|
|
1499
1499
|
function Rn(e) {
|
|
@@ -1519,8 +1519,8 @@ function ur(e) {
|
|
|
1519
1519
|
var t = null;
|
|
1520
1520
|
return e.childNodes.forEach(function(r) {
|
|
1521
1521
|
if (t === null && F(r)) {
|
|
1522
|
-
var
|
|
1523
|
-
|
|
1522
|
+
var o = ur(r);
|
|
1523
|
+
o !== null && (t = o);
|
|
1524
1524
|
}
|
|
1525
1525
|
}), t;
|
|
1526
1526
|
}
|
|
@@ -1539,8 +1539,8 @@ function Ln(e) {
|
|
|
1539
1539
|
if (!ar(e))
|
|
1540
1540
|
return null;
|
|
1541
1541
|
var r = e.ownerDocument;
|
|
1542
|
-
return Q(r.querySelectorAll("label")).filter(function(
|
|
1543
|
-
return Pn(
|
|
1542
|
+
return Q(r.querySelectorAll("label")).filter(function(o) {
|
|
1543
|
+
return Pn(o) === e;
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
1546
1546
|
function Dn(e) {
|
|
@@ -1548,40 +1548,40 @@ function Dn(e) {
|
|
|
1548
1548
|
return t.length === 0 ? Q(e.childNodes) : t;
|
|
1549
1549
|
}
|
|
1550
1550
|
function lr(e) {
|
|
1551
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new un(),
|
|
1552
|
-
function d(
|
|
1551
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new un(), o = hn(e), s = t.compute, c = s === void 0 ? "name" : s, u = t.computedStyleSupportsPseudoElements, p = u === void 0 ? t.getComputedStyle !== void 0 : u, n = t.getComputedStyle, a = n === void 0 ? o.getComputedStyle.bind(o) : n, l = t.hidden, i = l === void 0 ? !1 : l;
|
|
1552
|
+
function d(f, A) {
|
|
1553
1553
|
var I = "";
|
|
1554
|
-
if (F(
|
|
1555
|
-
var x =
|
|
1554
|
+
if (F(f) && p) {
|
|
1555
|
+
var x = a(f, "::before"), M = Ut(x);
|
|
1556
1556
|
I = "".concat(M, " ").concat(I);
|
|
1557
1557
|
}
|
|
1558
|
-
var y = Tn(
|
|
1559
|
-
if (y.forEach(function(
|
|
1560
|
-
var R = w(
|
|
1558
|
+
var y = Tn(f) ? Dn(f) : Q(f.childNodes).concat($e(f, "aria-owns"));
|
|
1559
|
+
if (y.forEach(function(C) {
|
|
1560
|
+
var R = w(C, {
|
|
1561
1561
|
isEmbeddedInLabel: A.isEmbeddedInLabel,
|
|
1562
1562
|
isReferenced: !1,
|
|
1563
1563
|
recursion: !0
|
|
1564
|
-
}), B = F(
|
|
1564
|
+
}), B = F(C) ? a(C).getPropertyValue("display") : "inline", N = B !== "inline" ? " " : "";
|
|
1565
1565
|
I += "".concat(N).concat(R).concat(N);
|
|
1566
|
-
}), F(
|
|
1567
|
-
var g =
|
|
1566
|
+
}), F(f) && p) {
|
|
1567
|
+
var g = a(f, "::after"), v = Ut(g);
|
|
1568
1568
|
I = "".concat(I, " ").concat(v);
|
|
1569
1569
|
}
|
|
1570
1570
|
return I.trim();
|
|
1571
1571
|
}
|
|
1572
|
-
function m(
|
|
1573
|
-
var I =
|
|
1572
|
+
function m(f, A) {
|
|
1573
|
+
var I = f.getAttributeNode(A);
|
|
1574
1574
|
return I !== null && !r.has(I) && I.value.trim() !== "" ? (r.add(I), I.value) : null;
|
|
1575
1575
|
}
|
|
1576
|
-
function E(
|
|
1577
|
-
return F(
|
|
1576
|
+
function E(f) {
|
|
1577
|
+
return F(f) ? m(f, "title") : null;
|
|
1578
1578
|
}
|
|
1579
|
-
function h(
|
|
1580
|
-
if (!F(
|
|
1579
|
+
function h(f) {
|
|
1580
|
+
if (!F(f))
|
|
1581
1581
|
return null;
|
|
1582
|
-
if (En(
|
|
1583
|
-
r.add(
|
|
1584
|
-
for (var A = Q(
|
|
1582
|
+
if (En(f)) {
|
|
1583
|
+
r.add(f);
|
|
1584
|
+
for (var A = Q(f.childNodes), I = 0; I < A.length; I += 1) {
|
|
1585
1585
|
var x = A[I];
|
|
1586
1586
|
if (vn(x))
|
|
1587
1587
|
return w(x, {
|
|
@@ -1590,9 +1590,9 @@ function lr(e) {
|
|
|
1590
1590
|
recursion: !1
|
|
1591
1591
|
});
|
|
1592
1592
|
}
|
|
1593
|
-
} else if (yn(
|
|
1594
|
-
r.add(
|
|
1595
|
-
for (var M = Q(
|
|
1593
|
+
} else if (yn(f)) {
|
|
1594
|
+
r.add(f);
|
|
1595
|
+
for (var M = Q(f.childNodes), y = 0; y < M.length; y += 1) {
|
|
1596
1596
|
var g = M[y];
|
|
1597
1597
|
if (ir(g))
|
|
1598
1598
|
return w(g, {
|
|
@@ -1601,35 +1601,35 @@ function lr(e) {
|
|
|
1601
1601
|
recursion: !1
|
|
1602
1602
|
});
|
|
1603
1603
|
}
|
|
1604
|
-
} else if (An(
|
|
1605
|
-
r.add(
|
|
1606
|
-
for (var v = Q(
|
|
1607
|
-
var R = v[
|
|
1604
|
+
} else if (An(f)) {
|
|
1605
|
+
r.add(f);
|
|
1606
|
+
for (var v = Q(f.childNodes), C = 0; C < v.length; C += 1) {
|
|
1607
|
+
var R = v[C];
|
|
1608
1608
|
if (Sn(R))
|
|
1609
1609
|
return R.textContent;
|
|
1610
1610
|
}
|
|
1611
1611
|
return null;
|
|
1612
|
-
} else if (V(
|
|
1613
|
-
var B = m(
|
|
1612
|
+
} else if (V(f) === "img" || V(f) === "area") {
|
|
1613
|
+
var B = m(f, "alt");
|
|
1614
1614
|
if (B !== null)
|
|
1615
1615
|
return B;
|
|
1616
|
-
} else if (bn(
|
|
1617
|
-
var N = m(
|
|
1616
|
+
} else if (bn(f)) {
|
|
1617
|
+
var N = m(f, "label");
|
|
1618
1618
|
if (N !== null)
|
|
1619
1619
|
return N;
|
|
1620
1620
|
}
|
|
1621
|
-
if (Fe(
|
|
1622
|
-
var S = m(
|
|
1621
|
+
if (Fe(f) && (f.type === "button" || f.type === "submit" || f.type === "reset")) {
|
|
1622
|
+
var S = m(f, "value");
|
|
1623
1623
|
if (S !== null)
|
|
1624
1624
|
return S;
|
|
1625
|
-
if (
|
|
1625
|
+
if (f.type === "submit")
|
|
1626
1626
|
return "Submit";
|
|
1627
|
-
if (
|
|
1627
|
+
if (f.type === "reset")
|
|
1628
1628
|
return "Reset";
|
|
1629
1629
|
}
|
|
1630
|
-
var
|
|
1631
|
-
if (
|
|
1632
|
-
return r.add(
|
|
1630
|
+
var _ = Ln(f);
|
|
1631
|
+
if (_ !== null && _.length !== 0)
|
|
1632
|
+
return r.add(f), Q(_).map(function(Z) {
|
|
1633
1633
|
return w(Z, {
|
|
1634
1634
|
isEmbeddedInLabel: !0,
|
|
1635
1635
|
isReferenced: !1,
|
|
@@ -1638,15 +1638,15 @@ function lr(e) {
|
|
|
1638
1638
|
}).filter(function(Z) {
|
|
1639
1639
|
return Z.length > 0;
|
|
1640
1640
|
}).join(" ");
|
|
1641
|
-
if (Fe(
|
|
1642
|
-
var W = m(
|
|
1641
|
+
if (Fe(f) && f.type === "image") {
|
|
1642
|
+
var W = m(f, "alt");
|
|
1643
1643
|
if (W !== null)
|
|
1644
1644
|
return W;
|
|
1645
|
-
var z = m(
|
|
1645
|
+
var z = m(f, "title");
|
|
1646
1646
|
return z !== null ? z : "Submit Query";
|
|
1647
1647
|
}
|
|
1648
|
-
if (le(
|
|
1649
|
-
var k = d(
|
|
1648
|
+
if (le(f, ["button"])) {
|
|
1649
|
+
var k = d(f, {
|
|
1650
1650
|
isEmbeddedInLabel: !1
|
|
1651
1651
|
});
|
|
1652
1652
|
if (k !== "")
|
|
@@ -1654,13 +1654,13 @@ function lr(e) {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
return null;
|
|
1656
1656
|
}
|
|
1657
|
-
function w(
|
|
1658
|
-
if (r.has(
|
|
1657
|
+
function w(f, A) {
|
|
1658
|
+
if (r.has(f))
|
|
1659
1659
|
return "";
|
|
1660
|
-
if (!i && xn(
|
|
1661
|
-
return r.add(
|
|
1662
|
-
var I = F(
|
|
1663
|
-
if (
|
|
1660
|
+
if (!i && xn(f, a) && !A.isReferenced)
|
|
1661
|
+
return r.add(f), "";
|
|
1662
|
+
var I = F(f) ? f.getAttributeNode("aria-labelledby") : null, x = I !== null && !r.has(I) ? $e(f, "aria-labelledby") : [];
|
|
1663
|
+
if (c === "name" && !A.isReferenced && x.length > 0)
|
|
1664
1664
|
return r.add(I), x.map(function(B) {
|
|
1665
1665
|
return w(B, {
|
|
1666
1666
|
isEmbeddedInLabel: A.isEmbeddedInLabel,
|
|
@@ -1671,24 +1671,24 @@ function lr(e) {
|
|
|
1671
1671
|
recursion: !1
|
|
1672
1672
|
});
|
|
1673
1673
|
}).join(" ");
|
|
1674
|
-
var M = A.recursion && On(
|
|
1674
|
+
var M = A.recursion && On(f) && c === "name";
|
|
1675
1675
|
if (!M) {
|
|
1676
|
-
var y = (F(
|
|
1677
|
-
if (y !== "" &&
|
|
1678
|
-
return r.add(
|
|
1679
|
-
if (!
|
|
1680
|
-
var g = h(
|
|
1676
|
+
var y = (F(f) && f.getAttribute("aria-label") || "").trim();
|
|
1677
|
+
if (y !== "" && c === "name")
|
|
1678
|
+
return r.add(f), y;
|
|
1679
|
+
if (!_n(f)) {
|
|
1680
|
+
var g = h(f);
|
|
1681
1681
|
if (g !== null)
|
|
1682
|
-
return r.add(
|
|
1682
|
+
return r.add(f), g;
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
|
-
if (le(
|
|
1686
|
-
return r.add(
|
|
1685
|
+
if (le(f, ["menu"]))
|
|
1686
|
+
return r.add(f), "";
|
|
1687
1687
|
if (M || A.isEmbeddedInLabel || A.isReferenced) {
|
|
1688
|
-
if (le(
|
|
1689
|
-
r.add(
|
|
1690
|
-
var v = Mn(
|
|
1691
|
-
return v.length === 0 ? Fe(
|
|
1688
|
+
if (le(f, ["combobox", "listbox"])) {
|
|
1689
|
+
r.add(f);
|
|
1690
|
+
var v = Mn(f);
|
|
1691
|
+
return v.length === 0 ? Fe(f) ? f.value : "" : Q(v).map(function(B) {
|
|
1692
1692
|
return w(B, {
|
|
1693
1693
|
isEmbeddedInLabel: A.isEmbeddedInLabel,
|
|
1694
1694
|
isReferenced: !1,
|
|
@@ -1696,31 +1696,31 @@ function lr(e) {
|
|
|
1696
1696
|
});
|
|
1697
1697
|
}).join(" ");
|
|
1698
1698
|
}
|
|
1699
|
-
if (or(
|
|
1700
|
-
return r.add(
|
|
1701
|
-
if (le(
|
|
1702
|
-
return r.add(
|
|
1699
|
+
if (or(f, "range"))
|
|
1700
|
+
return r.add(f), f.hasAttribute("aria-valuetext") ? f.getAttribute("aria-valuetext") : f.hasAttribute("aria-valuenow") ? f.getAttribute("aria-valuenow") : f.getAttribute("value") || "";
|
|
1701
|
+
if (le(f, ["textbox"]))
|
|
1702
|
+
return r.add(f), Nn(f);
|
|
1703
1703
|
}
|
|
1704
|
-
if (Rn(
|
|
1705
|
-
var
|
|
1704
|
+
if (Rn(f) || F(f) && A.isReferenced || Cn(f) || Bn()) {
|
|
1705
|
+
var C = d(f, {
|
|
1706
1706
|
isEmbeddedInLabel: A.isEmbeddedInLabel
|
|
1707
1707
|
});
|
|
1708
|
-
if (
|
|
1709
|
-
return r.add(
|
|
1708
|
+
if (C !== "")
|
|
1709
|
+
return r.add(f), C;
|
|
1710
1710
|
}
|
|
1711
|
-
if (
|
|
1712
|
-
return r.add(
|
|
1711
|
+
if (f.nodeType === f.TEXT_NODE)
|
|
1712
|
+
return r.add(f), f.textContent || "";
|
|
1713
1713
|
if (A.recursion)
|
|
1714
|
-
return r.add(
|
|
1714
|
+
return r.add(f), d(f, {
|
|
1715
1715
|
isEmbeddedInLabel: A.isEmbeddedInLabel
|
|
1716
1716
|
});
|
|
1717
|
-
var R = E(
|
|
1718
|
-
return R !== null ? (r.add(
|
|
1717
|
+
var R = E(f);
|
|
1718
|
+
return R !== null ? (r.add(f), R) : (r.add(f), "");
|
|
1719
1719
|
}
|
|
1720
1720
|
return In(w(e, {
|
|
1721
1721
|
isEmbeddedInLabel: !1,
|
|
1722
1722
|
// by spec computeAccessibleDescription starts with the referenced elements as roots
|
|
1723
|
-
isReferenced:
|
|
1723
|
+
isReferenced: c === "description",
|
|
1724
1724
|
recursion: !1
|
|
1725
1725
|
}));
|
|
1726
1726
|
}
|
|
@@ -1735,20 +1735,20 @@ function Oe(e) {
|
|
|
1735
1735
|
function Wt(e, t) {
|
|
1736
1736
|
var r = Object.keys(e);
|
|
1737
1737
|
if (Object.getOwnPropertySymbols) {
|
|
1738
|
-
var
|
|
1739
|
-
t && (
|
|
1738
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1739
|
+
t && (o = o.filter(function(s) {
|
|
1740
1740
|
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
1741
|
-
})), r.push.apply(r,
|
|
1741
|
+
})), r.push.apply(r, o);
|
|
1742
1742
|
}
|
|
1743
1743
|
return r;
|
|
1744
1744
|
}
|
|
1745
1745
|
function Vt(e) {
|
|
1746
1746
|
for (var t = 1; t < arguments.length; t++) {
|
|
1747
1747
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1748
|
-
t % 2 ? Wt(Object(r), !0).forEach(function(
|
|
1749
|
-
qn(e,
|
|
1750
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Wt(Object(r)).forEach(function(
|
|
1751
|
-
Object.defineProperty(e,
|
|
1748
|
+
t % 2 ? Wt(Object(r), !0).forEach(function(o) {
|
|
1749
|
+
qn(e, o, r[o]);
|
|
1750
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Wt(Object(r)).forEach(function(o) {
|
|
1751
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(r, o));
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
return e;
|
|
@@ -1764,8 +1764,8 @@ function kn(e, t) {
|
|
|
1764
1764
|
if (Oe(e) !== "object" || e === null) return e;
|
|
1765
1765
|
var r = e[Symbol.toPrimitive];
|
|
1766
1766
|
if (r !== void 0) {
|
|
1767
|
-
var
|
|
1768
|
-
if (Oe(
|
|
1767
|
+
var o = r.call(e, t);
|
|
1768
|
+
if (Oe(o) !== "object") return o;
|
|
1769
1769
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1770
1770
|
}
|
|
1771
1771
|
return (t === "string" ? String : Number)(e);
|
|
@@ -1777,8 +1777,8 @@ function sr(e) {
|
|
|
1777
1777
|
}));
|
|
1778
1778
|
}).join(" ");
|
|
1779
1779
|
if (r === "") {
|
|
1780
|
-
var
|
|
1781
|
-
r =
|
|
1780
|
+
var o = e.getAttribute("title");
|
|
1781
|
+
r = o === null ? "" : o;
|
|
1782
1782
|
}
|
|
1783
1783
|
return r;
|
|
1784
1784
|
}
|
|
@@ -1793,54 +1793,54 @@ var et = { exports: {} }, Ht;
|
|
|
1793
1793
|
function $n() {
|
|
1794
1794
|
return Ht || (Ht = 1, (function(e) {
|
|
1795
1795
|
var t = (function() {
|
|
1796
|
-
var r = String.fromCharCode,
|
|
1797
|
-
function u(n,
|
|
1798
|
-
if (!
|
|
1799
|
-
|
|
1796
|
+
var r = String.fromCharCode, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", c = {};
|
|
1797
|
+
function u(n, a) {
|
|
1798
|
+
if (!c[n]) {
|
|
1799
|
+
c[n] = {};
|
|
1800
1800
|
for (var l = 0; l < n.length; l++)
|
|
1801
|
-
|
|
1801
|
+
c[n][n.charAt(l)] = l;
|
|
1802
1802
|
}
|
|
1803
|
-
return
|
|
1803
|
+
return c[n][a];
|
|
1804
1804
|
}
|
|
1805
1805
|
var p = {
|
|
1806
1806
|
compressToBase64: function(n) {
|
|
1807
1807
|
if (n == null) return "";
|
|
1808
|
-
var
|
|
1809
|
-
return
|
|
1808
|
+
var a = p._compress(n, 6, function(l) {
|
|
1809
|
+
return o.charAt(l);
|
|
1810
1810
|
});
|
|
1811
|
-
switch (
|
|
1811
|
+
switch (a.length % 4) {
|
|
1812
1812
|
// To produce valid Base64
|
|
1813
1813
|
default:
|
|
1814
1814
|
// When could this happen ?
|
|
1815
1815
|
case 0:
|
|
1816
|
-
return
|
|
1816
|
+
return a;
|
|
1817
1817
|
case 1:
|
|
1818
|
-
return
|
|
1818
|
+
return a + "===";
|
|
1819
1819
|
case 2:
|
|
1820
|
-
return
|
|
1820
|
+
return a + "==";
|
|
1821
1821
|
case 3:
|
|
1822
|
-
return
|
|
1822
|
+
return a + "=";
|
|
1823
1823
|
}
|
|
1824
1824
|
},
|
|
1825
1825
|
decompressFromBase64: function(n) {
|
|
1826
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32, function(
|
|
1827
|
-
return u(
|
|
1826
|
+
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32, function(a) {
|
|
1827
|
+
return u(o, n.charAt(a));
|
|
1828
1828
|
});
|
|
1829
1829
|
},
|
|
1830
1830
|
compressToUTF16: function(n) {
|
|
1831
|
-
return n == null ? "" : p._compress(n, 15, function(
|
|
1832
|
-
return r(
|
|
1831
|
+
return n == null ? "" : p._compress(n, 15, function(a) {
|
|
1832
|
+
return r(a + 32);
|
|
1833
1833
|
}) + " ";
|
|
1834
1834
|
},
|
|
1835
1835
|
decompressFromUTF16: function(n) {
|
|
1836
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 16384, function(
|
|
1837
|
-
return n.charCodeAt(
|
|
1836
|
+
return n == null ? "" : n == "" ? null : p._decompress(n.length, 16384, function(a) {
|
|
1837
|
+
return n.charCodeAt(a) - 32;
|
|
1838
1838
|
});
|
|
1839
1839
|
},
|
|
1840
1840
|
//compress into uint8array (UCS-2 big endian format)
|
|
1841
1841
|
compressToUint8Array: function(n) {
|
|
1842
|
-
for (var
|
|
1843
|
-
var m =
|
|
1842
|
+
for (var a = p.compress(n), l = new Uint8Array(a.length * 2), i = 0, d = a.length; i < d; i++) {
|
|
1843
|
+
var m = a.charCodeAt(i);
|
|
1844
1844
|
l[i * 2] = m >>> 8, l[i * 2 + 1] = m % 256;
|
|
1845
1845
|
}
|
|
1846
1846
|
return l;
|
|
@@ -1849,103 +1849,103 @@ function $n() {
|
|
|
1849
1849
|
decompressFromUint8Array: function(n) {
|
|
1850
1850
|
if (n == null)
|
|
1851
1851
|
return p.decompress(n);
|
|
1852
|
-
for (var
|
|
1853
|
-
|
|
1852
|
+
for (var a = new Array(n.length / 2), l = 0, i = a.length; l < i; l++)
|
|
1853
|
+
a[l] = n[l * 2] * 256 + n[l * 2 + 1];
|
|
1854
1854
|
var d = [];
|
|
1855
|
-
return
|
|
1855
|
+
return a.forEach(function(m) {
|
|
1856
1856
|
d.push(r(m));
|
|
1857
1857
|
}), p.decompress(d.join(""));
|
|
1858
1858
|
},
|
|
1859
1859
|
//compress into a string that is already URI encoded
|
|
1860
1860
|
compressToEncodedURIComponent: function(n) {
|
|
1861
|
-
return n == null ? "" : p._compress(n, 6, function(
|
|
1862
|
-
return s.charAt(
|
|
1861
|
+
return n == null ? "" : p._compress(n, 6, function(a) {
|
|
1862
|
+
return s.charAt(a);
|
|
1863
1863
|
});
|
|
1864
1864
|
},
|
|
1865
1865
|
//decompress from an output of compressToEncodedURIComponent
|
|
1866
1866
|
decompressFromEncodedURIComponent: function(n) {
|
|
1867
|
-
return n == null ? "" : n == "" ? null : (n = n.replace(/ /g, "+"), p._decompress(n.length, 32, function(
|
|
1868
|
-
return u(s, n.charAt(
|
|
1867
|
+
return n == null ? "" : n == "" ? null : (n = n.replace(/ /g, "+"), p._decompress(n.length, 32, function(a) {
|
|
1868
|
+
return u(s, n.charAt(a));
|
|
1869
1869
|
}));
|
|
1870
1870
|
},
|
|
1871
1871
|
compress: function(n) {
|
|
1872
|
-
return p._compress(n, 16, function(
|
|
1873
|
-
return r(
|
|
1872
|
+
return p._compress(n, 16, function(a) {
|
|
1873
|
+
return r(a);
|
|
1874
1874
|
});
|
|
1875
1875
|
},
|
|
1876
|
-
_compress: function(n,
|
|
1876
|
+
_compress: function(n, a, l) {
|
|
1877
1877
|
if (n == null) return "";
|
|
1878
|
-
var i, d, m = {}, E = {}, h = "", w = "",
|
|
1878
|
+
var i, d, m = {}, E = {}, h = "", w = "", f = "", A = 2, I = 3, x = 2, M = [], y = 0, g = 0, v;
|
|
1879
1879
|
for (v = 0; v < n.length; v += 1)
|
|
1880
|
-
if (h = n.charAt(v), Object.prototype.hasOwnProperty.call(m, h) || (m[h] = I++, E[h] = !0), w =
|
|
1881
|
-
|
|
1880
|
+
if (h = n.charAt(v), Object.prototype.hasOwnProperty.call(m, h) || (m[h] = I++, E[h] = !0), w = f + h, Object.prototype.hasOwnProperty.call(m, w))
|
|
1881
|
+
f = w;
|
|
1882
1882
|
else {
|
|
1883
|
-
if (Object.prototype.hasOwnProperty.call(E,
|
|
1884
|
-
if (
|
|
1883
|
+
if (Object.prototype.hasOwnProperty.call(E, f)) {
|
|
1884
|
+
if (f.charCodeAt(0) < 256) {
|
|
1885
1885
|
for (i = 0; i < x; i++)
|
|
1886
|
-
y = y << 1, g ==
|
|
1887
|
-
for (d =
|
|
1888
|
-
y = y << 1 | d & 1, g ==
|
|
1886
|
+
y = y << 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++;
|
|
1887
|
+
for (d = f.charCodeAt(0), i = 0; i < 8; i++)
|
|
1888
|
+
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1889
1889
|
} else {
|
|
1890
1890
|
for (d = 1, i = 0; i < x; i++)
|
|
1891
|
-
y = y << 1 | d, g ==
|
|
1892
|
-
for (d =
|
|
1893
|
-
y = y << 1 | d & 1, g ==
|
|
1891
|
+
y = y << 1 | d, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = 0;
|
|
1892
|
+
for (d = f.charCodeAt(0), i = 0; i < 16; i++)
|
|
1893
|
+
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1894
1894
|
}
|
|
1895
|
-
A--, A == 0 && (A = Math.pow(2, x), x++), delete E[
|
|
1895
|
+
A--, A == 0 && (A = Math.pow(2, x), x++), delete E[f];
|
|
1896
1896
|
} else
|
|
1897
|
-
for (d = m[
|
|
1898
|
-
y = y << 1 | d & 1, g ==
|
|
1899
|
-
A--, A == 0 && (A = Math.pow(2, x), x++), m[w] = I++,
|
|
1897
|
+
for (d = m[f], i = 0; i < x; i++)
|
|
1898
|
+
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1899
|
+
A--, A == 0 && (A = Math.pow(2, x), x++), m[w] = I++, f = String(h);
|
|
1900
1900
|
}
|
|
1901
|
-
if (
|
|
1902
|
-
if (Object.prototype.hasOwnProperty.call(E,
|
|
1903
|
-
if (
|
|
1901
|
+
if (f !== "") {
|
|
1902
|
+
if (Object.prototype.hasOwnProperty.call(E, f)) {
|
|
1903
|
+
if (f.charCodeAt(0) < 256) {
|
|
1904
1904
|
for (i = 0; i < x; i++)
|
|
1905
|
-
y = y << 1, g ==
|
|
1906
|
-
for (d =
|
|
1907
|
-
y = y << 1 | d & 1, g ==
|
|
1905
|
+
y = y << 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++;
|
|
1906
|
+
for (d = f.charCodeAt(0), i = 0; i < 8; i++)
|
|
1907
|
+
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1908
1908
|
} else {
|
|
1909
1909
|
for (d = 1, i = 0; i < x; i++)
|
|
1910
|
-
y = y << 1 | d, g ==
|
|
1911
|
-
for (d =
|
|
1912
|
-
y = y << 1 | d & 1, g ==
|
|
1910
|
+
y = y << 1 | d, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = 0;
|
|
1911
|
+
for (d = f.charCodeAt(0), i = 0; i < 16; i++)
|
|
1912
|
+
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1913
1913
|
}
|
|
1914
|
-
A--, A == 0 && (A = Math.pow(2, x), x++), delete E[
|
|
1914
|
+
A--, A == 0 && (A = Math.pow(2, x), x++), delete E[f];
|
|
1915
1915
|
} else
|
|
1916
|
-
for (d = m[
|
|
1917
|
-
y = y << 1 | d & 1, g ==
|
|
1916
|
+
for (d = m[f], i = 0; i < x; i++)
|
|
1917
|
+
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1918
1918
|
A--, A == 0 && (A = Math.pow(2, x), x++);
|
|
1919
1919
|
}
|
|
1920
1920
|
for (d = 2, i = 0; i < x; i++)
|
|
1921
|
-
y = y << 1 | d & 1, g ==
|
|
1921
|
+
y = y << 1 | d & 1, g == a - 1 ? (g = 0, M.push(l(y)), y = 0) : g++, d = d >> 1;
|
|
1922
1922
|
for (; ; )
|
|
1923
|
-
if (y = y << 1, g ==
|
|
1923
|
+
if (y = y << 1, g == a - 1) {
|
|
1924
1924
|
M.push(l(y));
|
|
1925
1925
|
break;
|
|
1926
1926
|
} else g++;
|
|
1927
1927
|
return M.join("");
|
|
1928
1928
|
},
|
|
1929
1929
|
decompress: function(n) {
|
|
1930
|
-
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32768, function(
|
|
1931
|
-
return n.charCodeAt(
|
|
1930
|
+
return n == null ? "" : n == "" ? null : p._decompress(n.length, 32768, function(a) {
|
|
1931
|
+
return n.charCodeAt(a);
|
|
1932
1932
|
});
|
|
1933
1933
|
},
|
|
1934
|
-
_decompress: function(n,
|
|
1935
|
-
var i = [], d = 4, m = 4, E = 3, h = "", w = [],
|
|
1936
|
-
for (
|
|
1937
|
-
i[
|
|
1934
|
+
_decompress: function(n, a, l) {
|
|
1935
|
+
var i = [], d = 4, m = 4, E = 3, h = "", w = [], f, A, I, x, M, y, g, v = { val: l(0), position: a, index: 1 };
|
|
1936
|
+
for (f = 0; f < 3; f += 1)
|
|
1937
|
+
i[f] = f;
|
|
1938
1938
|
for (I = 0, M = Math.pow(2, 2), y = 1; y != M; )
|
|
1939
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1939
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1940
1940
|
switch (I) {
|
|
1941
1941
|
case 0:
|
|
1942
1942
|
for (I = 0, M = Math.pow(2, 8), y = 1; y != M; )
|
|
1943
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1943
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1944
1944
|
g = r(I);
|
|
1945
1945
|
break;
|
|
1946
1946
|
case 1:
|
|
1947
1947
|
for (I = 0, M = Math.pow(2, 16), y = 1; y != M; )
|
|
1948
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1948
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1949
1949
|
g = r(I);
|
|
1950
1950
|
break;
|
|
1951
1951
|
case 2:
|
|
@@ -1955,16 +1955,16 @@ function $n() {
|
|
|
1955
1955
|
if (v.index > n)
|
|
1956
1956
|
return "";
|
|
1957
1957
|
for (I = 0, M = Math.pow(2, E), y = 1; y != M; )
|
|
1958
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1958
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1959
1959
|
switch (g = I) {
|
|
1960
1960
|
case 0:
|
|
1961
1961
|
for (I = 0, M = Math.pow(2, 8), y = 1; y != M; )
|
|
1962
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1962
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1963
1963
|
i[m++] = r(I), g = m - 1, d--;
|
|
1964
1964
|
break;
|
|
1965
1965
|
case 1:
|
|
1966
1966
|
for (I = 0, M = Math.pow(2, 16), y = 1; y != M; )
|
|
1967
|
-
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position =
|
|
1967
|
+
x = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = a, v.val = l(v.index++)), I |= (x > 0 ? 1 : 0) * y, y <<= 1;
|
|
1968
1968
|
i[m++] = r(I), g = m - 1, d--;
|
|
1969
1969
|
break;
|
|
1970
1970
|
case 2:
|
|
@@ -1992,16 +1992,16 @@ const Un = /* @__PURE__ */ Lr(zn);
|
|
|
1992
1992
|
function cr(e) {
|
|
1993
1993
|
return e.replace(/</g, "<").replace(/>/g, ">");
|
|
1994
1994
|
}
|
|
1995
|
-
const Wn = (e, t, r,
|
|
1996
|
-
const p =
|
|
1997
|
-
return e.map((
|
|
1998
|
-
const l = t[
|
|
1999
|
-
let i = u(l, r, p, s,
|
|
1995
|
+
const Wn = (e, t, r, o, s, c, u) => {
|
|
1996
|
+
const p = o + r.indent, n = r.colors;
|
|
1997
|
+
return e.map((a) => {
|
|
1998
|
+
const l = t[a];
|
|
1999
|
+
let i = u(l, r, p, s, c);
|
|
2000
2000
|
return typeof l != "string" && (i.indexOf(`
|
|
2001
|
-
`) !== -1 && (i = r.spacingOuter + p + i + r.spacingOuter +
|
|
2001
|
+
`) !== -1 && (i = r.spacingOuter + p + i + r.spacingOuter + o), i = "{" + i + "}"), r.spacingInner + o + n.prop.open + a + n.prop.close + "=" + n.value.open + i + n.value.close;
|
|
2002
2002
|
}).join("");
|
|
2003
|
-
}, Vn = 3, Hn = (e, t, r,
|
|
2004
|
-
const p = typeof u == "string" ? fr(u, t) :
|
|
2003
|
+
}, Vn = 3, Hn = (e, t, r, o, s, c) => e.map((u) => {
|
|
2004
|
+
const p = typeof u == "string" ? fr(u, t) : c(u, t, r, o, s);
|
|
2005
2005
|
return p === "" && typeof u == "object" && u !== null && u.nodeType !== Vn ? "" : t.spacingOuter + r + p;
|
|
2006
2006
|
}).join(""), fr = (e, t) => {
|
|
2007
2007
|
const r = t.colors.content;
|
|
@@ -2009,9 +2009,9 @@ const Wn = (e, t, r, a, s, f, u) => {
|
|
|
2009
2009
|
}, Gn = (e, t) => {
|
|
2010
2010
|
const r = t.colors.comment;
|
|
2011
2011
|
return r.open + "<!--" + cr(e) + "-->" + r.close;
|
|
2012
|
-
}, Yn = (e, t, r,
|
|
2013
|
-
const
|
|
2014
|
-
return
|
|
2012
|
+
}, Yn = (e, t, r, o, s) => {
|
|
2013
|
+
const c = o.colors.tag;
|
|
2014
|
+
return c.open + "<" + e + (t && c.close + t + o.spacingOuter + s + c.open) + (r ? ">" + c.close + r + o.spacingOuter + s + c.open + "</" + e : (t && !o.min ? "" : " ") + "/") + ">" + c.close;
|
|
2015
2015
|
}, Kn = (e, t) => {
|
|
2016
2016
|
const r = t.colors.tag;
|
|
2017
2017
|
return r.open + "<" + e + r.close + " …" + r.open + " />" + r.close;
|
|
@@ -2041,13 +2041,13 @@ function ti(e) {
|
|
|
2041
2041
|
var r;
|
|
2042
2042
|
return ((t == null || (r = t.constructor) == null ? void 0 : r.name) || mr(t)) && Xn(t);
|
|
2043
2043
|
},
|
|
2044
|
-
serialize: (t, r,
|
|
2044
|
+
serialize: (t, r, o, s, c, u) => {
|
|
2045
2045
|
if (Zn(t))
|
|
2046
2046
|
return fr(t.data, r);
|
|
2047
2047
|
if (ei(t))
|
|
2048
2048
|
return Gn(t.data, r);
|
|
2049
2049
|
const p = tt(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
2050
|
-
return ++s > r.maxDepth ? Kn(p, r) : Yn(p, Wn(tt(t) ? [] : Array.from(t.attributes).map((n) => n.name).sort(), tt(t) ? {} : Array.from(t.attributes).reduce((n,
|
|
2050
|
+
return ++s > r.maxDepth ? Kn(p, r) : Yn(p, Wn(tt(t) ? [] : Array.from(t.attributes).map((n) => n.name).sort(), tt(t) ? {} : Array.from(t.attributes).reduce((n, a) => (n[a.name] = a.value, n), {}), r, o + r.indent, s, c, u), Hn(Array.prototype.slice.call(t.childNodes || t.children).filter(e), r, o + r.indent, s, c, u), r, o);
|
|
2051
2051
|
}
|
|
2052
2052
|
};
|
|
2053
2053
|
}
|
|
@@ -2058,14 +2058,14 @@ try {
|
|
|
2058
2058
|
} catch {
|
|
2059
2059
|
}
|
|
2060
2060
|
function ri(e) {
|
|
2061
|
-
const t = e.indexOf("(") + 1, r = e.indexOf(")"),
|
|
2061
|
+
const t = e.indexOf("(") + 1, r = e.indexOf(")"), o = e.slice(t, r), s = o.split(":"), [c, u, p] = [s[0], parseInt(s[1], 10), parseInt(s[2], 10)];
|
|
2062
2062
|
let n = "";
|
|
2063
2063
|
try {
|
|
2064
|
-
n = Et(
|
|
2064
|
+
n = Et(c, "utf-8");
|
|
2065
2065
|
} catch {
|
|
2066
2066
|
return "";
|
|
2067
2067
|
}
|
|
2068
|
-
const
|
|
2068
|
+
const a = vt(n, {
|
|
2069
2069
|
start: {
|
|
2070
2070
|
line: u,
|
|
2071
2071
|
column: p
|
|
@@ -2074,8 +2074,8 @@ function ri(e) {
|
|
|
2074
2074
|
highlightCode: !0,
|
|
2075
2075
|
linesBelow: 0
|
|
2076
2076
|
});
|
|
2077
|
-
return yr.dim(
|
|
2078
|
-
` +
|
|
2077
|
+
return yr.dim(o) + `
|
|
2078
|
+
` + a + `
|
|
2079
2079
|
`;
|
|
2080
2080
|
}
|
|
2081
2081
|
function ni() {
|
|
@@ -2136,17 +2136,17 @@ function Te(e, t, r) {
|
|
|
2136
2136
|
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)
|
|
2137
2137
|
return "";
|
|
2138
2138
|
e.documentElement && (e = e.documentElement);
|
|
2139
|
-
let
|
|
2140
|
-
if (
|
|
2141
|
-
throw new TypeError("Expected an element or document but got " +
|
|
2139
|
+
let o = typeof e;
|
|
2140
|
+
if (o === "object" ? o = e.constructor.name : e = {}, !("outerHTML" in e))
|
|
2141
|
+
throw new TypeError("Expected an element or document but got " + o);
|
|
2142
2142
|
const {
|
|
2143
2143
|
filterNode: s = li,
|
|
2144
|
-
...
|
|
2144
|
+
...c
|
|
2145
2145
|
} = r, u = tr.format(e, {
|
|
2146
2146
|
plugins: [ti(s), oi],
|
|
2147
2147
|
printFunctionName: !1,
|
|
2148
2148
|
highlight: ii(),
|
|
2149
|
-
...
|
|
2149
|
+
...c
|
|
2150
2150
|
});
|
|
2151
2151
|
return t !== void 0 && e.outerHTML.length > t ? u.slice(0, t) + "..." : u;
|
|
2152
2152
|
}
|
|
@@ -2179,11 +2179,11 @@ let me = {
|
|
|
2179
2179
|
throwSuggestions: !1,
|
|
2180
2180
|
// called when getBy* queries fail. (message, container) => Error
|
|
2181
2181
|
getElementError(e, t) {
|
|
2182
|
-
const r = Te(t),
|
|
2182
|
+
const r = Te(t), o = new Error([e, "Ignored nodes: comments, " + me.defaultIgnore + `
|
|
2183
2183
|
` + r].filter(Boolean).join(`
|
|
2184
2184
|
|
|
2185
2185
|
`));
|
|
2186
|
-
return
|
|
2186
|
+
return o.name = "TestingLibraryElementError", o;
|
|
2187
2187
|
},
|
|
2188
2188
|
_disableExpensiveErrorDiagnostics: !1,
|
|
2189
2189
|
computedStyleSupportsPseudoElements: !1
|
|
@@ -2219,17 +2219,17 @@ function vr(e) {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
if (!di(e)) return [];
|
|
2221
2221
|
const r = e.ownerDocument.querySelectorAll("label");
|
|
2222
|
-
return Array.from(r).filter((
|
|
2222
|
+
return Array.from(r).filter((o) => o.control === e);
|
|
2223
2223
|
}
|
|
2224
2224
|
function di(e) {
|
|
2225
2225
|
return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName) || e.tagName === "INPUT" && e.getAttribute("type") !== "hidden";
|
|
2226
2226
|
}
|
|
2227
2227
|
function Tr(e, t, r) {
|
|
2228
2228
|
let {
|
|
2229
|
-
selector:
|
|
2229
|
+
selector: o = "*"
|
|
2230
2230
|
} = r === void 0 ? {} : r;
|
|
2231
|
-
const s = t.getAttribute("aria-labelledby"),
|
|
2232
|
-
return
|
|
2231
|
+
const s = t.getAttribute("aria-labelledby"), c = s ? s.split(" ") : [];
|
|
2232
|
+
return c.length ? c.map((u) => {
|
|
2233
2233
|
const p = e.querySelector('[id="' + u + '"]');
|
|
2234
2234
|
return p ? {
|
|
2235
2235
|
content: it(p),
|
|
@@ -2239,10 +2239,10 @@ function Tr(e, t, r) {
|
|
|
2239
2239
|
formControl: null
|
|
2240
2240
|
};
|
|
2241
2241
|
}) : Array.from(vr(t)).map((u) => {
|
|
2242
|
-
const p = it(u),
|
|
2242
|
+
const p = it(u), a = Array.from(u.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((l) => l.matches(o))[0];
|
|
2243
2243
|
return {
|
|
2244
2244
|
content: p,
|
|
2245
|
-
formControl:
|
|
2245
|
+
formControl: a
|
|
2246
2246
|
};
|
|
2247
2247
|
});
|
|
2248
2248
|
}
|
|
@@ -2253,18 +2253,18 @@ function wr(e) {
|
|
|
2253
2253
|
"It looks like " + e + " was passed instead of a matcher. Did you do something like getByText(" + e + ")?"
|
|
2254
2254
|
);
|
|
2255
2255
|
}
|
|
2256
|
-
function Ae(e, t, r,
|
|
2256
|
+
function Ae(e, t, r, o) {
|
|
2257
2257
|
if (typeof e != "string")
|
|
2258
2258
|
return !1;
|
|
2259
2259
|
wr(r);
|
|
2260
|
-
const s =
|
|
2260
|
+
const s = o(e);
|
|
2261
2261
|
return typeof r == "string" || typeof r == "number" ? s.toLowerCase().includes(r.toString().toLowerCase()) : typeof r == "function" ? r(s, t) : Sr(r, s);
|
|
2262
2262
|
}
|
|
2263
|
-
function se(e, t, r,
|
|
2263
|
+
function se(e, t, r, o) {
|
|
2264
2264
|
if (typeof e != "string")
|
|
2265
2265
|
return !1;
|
|
2266
2266
|
wr(r);
|
|
2267
|
-
const s =
|
|
2267
|
+
const s = o(e);
|
|
2268
2268
|
return r instanceof Function ? r(s, t) : r instanceof RegExp ? Sr(r, s) : s === String(r);
|
|
2269
2269
|
}
|
|
2270
2270
|
function Ar(e) {
|
|
@@ -2272,8 +2272,8 @@ function Ar(e) {
|
|
|
2272
2272
|
trim: t = !0,
|
|
2273
2273
|
collapseWhitespace: r = !0
|
|
2274
2274
|
} = e === void 0 ? {} : e;
|
|
2275
|
-
return (
|
|
2276
|
-
let s =
|
|
2275
|
+
return (o) => {
|
|
2276
|
+
let s = o;
|
|
2277
2277
|
return s = t ? s.trim() : s, s = r ? s.replace(/\s+/g, " ") : s, s;
|
|
2278
2278
|
};
|
|
2279
2279
|
}
|
|
@@ -2281,16 +2281,16 @@ function he(e) {
|
|
|
2281
2281
|
let {
|
|
2282
2282
|
trim: t,
|
|
2283
2283
|
collapseWhitespace: r,
|
|
2284
|
-
normalizer:
|
|
2284
|
+
normalizer: o
|
|
2285
2285
|
} = e;
|
|
2286
|
-
if (!
|
|
2286
|
+
if (!o)
|
|
2287
2287
|
return Ar({
|
|
2288
2288
|
trim: t,
|
|
2289
2289
|
collapseWhitespace: r
|
|
2290
2290
|
});
|
|
2291
2291
|
if (typeof t < "u" || typeof r < "u")
|
|
2292
2292
|
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');
|
|
2293
|
-
return
|
|
2293
|
+
return o;
|
|
2294
2294
|
}
|
|
2295
2295
|
function Sr(e, t) {
|
|
2296
2296
|
const r = e.test(t);
|
|
@@ -2333,12 +2333,12 @@ function bi(e) {
|
|
|
2333
2333
|
name: p,
|
|
2334
2334
|
attributes: n
|
|
2335
2335
|
} = u;
|
|
2336
|
-
return "" + p + n.map((
|
|
2336
|
+
return "" + p + n.map((a) => {
|
|
2337
2337
|
let {
|
|
2338
2338
|
name: l,
|
|
2339
2339
|
value: i,
|
|
2340
2340
|
constraints: d = []
|
|
2341
|
-
} =
|
|
2341
|
+
} = a;
|
|
2342
2342
|
const m = d.indexOf("undefined") !== -1, E = d.indexOf("set") !== -1;
|
|
2343
2343
|
return typeof i < "u" ? "[" + l + '="' + i + '"]' : m ? ":not([" + l + "])" : E ? "[" + l + "]:not([" + l + '=""])' : "[" + l + "]";
|
|
2344
2344
|
}).join("");
|
|
@@ -2349,13 +2349,13 @@ function bi(e) {
|
|
|
2349
2349
|
} = u;
|
|
2350
2350
|
return p.length;
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2352
|
+
function o(u, p) {
|
|
2353
2353
|
let {
|
|
2354
2354
|
specificity: n
|
|
2355
2355
|
} = u, {
|
|
2356
|
-
specificity:
|
|
2356
|
+
specificity: a
|
|
2357
2357
|
} = p;
|
|
2358
|
-
return
|
|
2358
|
+
return a - n;
|
|
2359
2359
|
}
|
|
2360
2360
|
function s(u) {
|
|
2361
2361
|
let {
|
|
@@ -2363,58 +2363,58 @@ function bi(e) {
|
|
|
2363
2363
|
} = u;
|
|
2364
2364
|
const n = p.findIndex((l) => l.value && l.name === "type" && l.value === "text");
|
|
2365
2365
|
n >= 0 && (p = [...p.slice(0, n), ...p.slice(n + 1)]);
|
|
2366
|
-
const
|
|
2366
|
+
const a = t({
|
|
2367
2367
|
...u,
|
|
2368
2368
|
attributes: p
|
|
2369
2369
|
});
|
|
2370
|
-
return (l) => n >= 0 && l.type !== "text" ? !1 : l.matches(
|
|
2370
|
+
return (l) => n >= 0 && l.type !== "text" ? !1 : l.matches(a);
|
|
2371
2371
|
}
|
|
2372
|
-
let
|
|
2372
|
+
let c = [];
|
|
2373
2373
|
for (const [u, p] of e.entries())
|
|
2374
|
-
|
|
2374
|
+
c = [...c, {
|
|
2375
2375
|
match: s(u),
|
|
2376
2376
|
roles: Array.from(p),
|
|
2377
2377
|
specificity: r(u)
|
|
2378
2378
|
}];
|
|
2379
|
-
return
|
|
2379
|
+
return c.sort(o);
|
|
2380
2380
|
}
|
|
2381
2381
|
function mi(e, t) {
|
|
2382
2382
|
let {
|
|
2383
2383
|
hidden: r = !1
|
|
2384
2384
|
} = t === void 0 ? {} : t;
|
|
2385
|
-
function
|
|
2386
|
-
return [s, ...Array.from(s.children).reduce((
|
|
2385
|
+
function o(s) {
|
|
2386
|
+
return [s, ...Array.from(s.children).reduce((c, u) => [...c, ...o(u)], [])];
|
|
2387
2387
|
}
|
|
2388
|
-
return
|
|
2388
|
+
return o(e).filter((s) => r === !1 ? wt(s) === !1 : !0).reduce((s, c) => {
|
|
2389
2389
|
let u = [];
|
|
2390
|
-
return
|
|
2390
|
+
return c.hasAttribute("role") ? u = c.getAttribute("role").split(" ").slice(0, 1) : u = At(c), u.reduce((p, n) => Array.isArray(p[n]) ? {
|
|
2391
2391
|
...p,
|
|
2392
|
-
[n]: [...p[n],
|
|
2392
|
+
[n]: [...p[n], c]
|
|
2393
2393
|
} : {
|
|
2394
2394
|
...p,
|
|
2395
|
-
[n]: [
|
|
2395
|
+
[n]: [c]
|
|
2396
2396
|
}, s);
|
|
2397
2397
|
}, {});
|
|
2398
2398
|
}
|
|
2399
2399
|
function yi(e, t) {
|
|
2400
2400
|
let {
|
|
2401
2401
|
hidden: r,
|
|
2402
|
-
includeDescription:
|
|
2402
|
+
includeDescription: o
|
|
2403
2403
|
} = t;
|
|
2404
2404
|
const s = mi(e, {
|
|
2405
2405
|
hidden: r
|
|
2406
2406
|
});
|
|
2407
|
-
return Object.entries(s).filter((
|
|
2408
|
-
let [u] =
|
|
2407
|
+
return Object.entries(s).filter((c) => {
|
|
2408
|
+
let [u] = c;
|
|
2409
2409
|
return u !== "generic";
|
|
2410
|
-
}).map((
|
|
2411
|
-
let [u, p] =
|
|
2412
|
-
const n = "-".repeat(50),
|
|
2410
|
+
}).map((c) => {
|
|
2411
|
+
let [u, p] = c;
|
|
2412
|
+
const n = "-".repeat(50), a = p.map((l) => {
|
|
2413
2413
|
const i = 'Name "' + ht(l, {
|
|
2414
2414
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
2415
2415
|
}) + `":
|
|
2416
2416
|
`, d = Te(l.cloneNode(!1));
|
|
2417
|
-
if (
|
|
2417
|
+
if (o) {
|
|
2418
2418
|
const m = 'Description "' + sr(l, {
|
|
2419
2419
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
2420
2420
|
}) + `":
|
|
@@ -2427,33 +2427,33 @@ function yi(e, t) {
|
|
|
2427
2427
|
`);
|
|
2428
2428
|
return u + `:
|
|
2429
2429
|
|
|
2430
|
-
` +
|
|
2430
|
+
` + a + `
|
|
2431
2431
|
|
|
2432
2432
|
` + n;
|
|
2433
2433
|
}).join(`
|
|
2434
2434
|
`);
|
|
2435
2435
|
}
|
|
2436
2436
|
function gi(e) {
|
|
2437
|
-
return e.tagName === "OPTION" ? e.selected :
|
|
2437
|
+
return e.tagName === "OPTION" ? e.selected : _e(e, "aria-selected");
|
|
2438
2438
|
}
|
|
2439
2439
|
function hi(e) {
|
|
2440
2440
|
return e.getAttribute("aria-busy") === "true";
|
|
2441
2441
|
}
|
|
2442
2442
|
function Ei(e) {
|
|
2443
2443
|
if (!("indeterminate" in e && e.indeterminate))
|
|
2444
|
-
return "checked" in e ? e.checked :
|
|
2444
|
+
return "checked" in e ? e.checked : _e(e, "aria-checked");
|
|
2445
2445
|
}
|
|
2446
2446
|
function vi(e) {
|
|
2447
|
-
return
|
|
2447
|
+
return _e(e, "aria-pressed");
|
|
2448
2448
|
}
|
|
2449
2449
|
function Ti(e) {
|
|
2450
2450
|
var t, r;
|
|
2451
|
-
return (t = (r =
|
|
2451
|
+
return (t = (r = _e(e, "aria-current")) != null ? r : e.getAttribute("aria-current")) != null ? t : !1;
|
|
2452
2452
|
}
|
|
2453
2453
|
function wi(e) {
|
|
2454
|
-
return
|
|
2454
|
+
return _e(e, "aria-expanded");
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function _e(e, t) {
|
|
2457
2457
|
const r = e.getAttribute(t);
|
|
2458
2458
|
if (r === "true")
|
|
2459
2459
|
return !0;
|
|
@@ -2494,19 +2494,19 @@ function Mi(e) {
|
|
|
2494
2494
|
function Kt(e) {
|
|
2495
2495
|
return new RegExp(Mi(e.toLowerCase()), "i");
|
|
2496
2496
|
}
|
|
2497
|
-
function fe(e, t, r,
|
|
2497
|
+
function fe(e, t, r, o) {
|
|
2498
2498
|
let {
|
|
2499
2499
|
variant: s,
|
|
2500
|
-
name:
|
|
2501
|
-
} =
|
|
2500
|
+
name: c
|
|
2501
|
+
} = o, u = "";
|
|
2502
2502
|
const p = {}, n = [["Role", "TestId"].includes(e) ? r : Kt(r)];
|
|
2503
|
-
|
|
2503
|
+
c && (p.name = Kt(c)), 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.
|
|
2504
2504
|
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
2505
2505
|
`), Object.keys(p).length > 0 && n.push(p);
|
|
2506
|
-
const
|
|
2506
|
+
const a = s + "By" + e;
|
|
2507
2507
|
return {
|
|
2508
2508
|
queryName: e,
|
|
2509
|
-
queryMethod:
|
|
2509
|
+
queryMethod: a,
|
|
2510
2510
|
queryArgs: n,
|
|
2511
2511
|
variant: s,
|
|
2512
2512
|
warning: u,
|
|
@@ -2516,7 +2516,7 @@ function fe(e, t, r, a) {
|
|
|
2516
2516
|
return l = typeof l == "string" ? "'" + l + "'" : l, i = i ? ", { " + Object.entries(i).map((d) => {
|
|
2517
2517
|
let [m, E] = d;
|
|
2518
2518
|
return m + ": " + E;
|
|
2519
|
-
}).join(", ") + " }" : "",
|
|
2519
|
+
}).join(", ") + " }" : "", a + "(" + l + i + ")";
|
|
2520
2520
|
}
|
|
2521
2521
|
};
|
|
2522
2522
|
}
|
|
@@ -2524,12 +2524,12 @@ function de(e, t, r) {
|
|
|
2524
2524
|
return r && !0;
|
|
2525
2525
|
}
|
|
2526
2526
|
function ot(e, t, r) {
|
|
2527
|
-
var
|
|
2527
|
+
var o, s;
|
|
2528
2528
|
if (t === void 0 && (t = "get"), e.matches(j().defaultIgnore))
|
|
2529
2529
|
return;
|
|
2530
|
-
const
|
|
2531
|
-
if (
|
|
2532
|
-
return fe("Role", e,
|
|
2530
|
+
const c = (o = e.getAttribute("role")) != null ? o : (s = At(e)) == null ? void 0 : s[0];
|
|
2531
|
+
if (c !== "generic" && de("Role", r, c))
|
|
2532
|
+
return fe("Role", e, c, {
|
|
2533
2533
|
variant: t,
|
|
2534
2534
|
name: ht(e, {
|
|
2535
2535
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
@@ -2554,9 +2554,9 @@ function ot(e, t, r) {
|
|
|
2554
2554
|
return fe("DisplayValue", e, Yt(e.value), {
|
|
2555
2555
|
variant: t
|
|
2556
2556
|
});
|
|
2557
|
-
const
|
|
2558
|
-
if (de("AltText", r,
|
|
2559
|
-
return fe("AltText", e,
|
|
2557
|
+
const a = e.getAttribute("alt");
|
|
2558
|
+
if (de("AltText", r, a))
|
|
2559
|
+
return fe("AltText", e, a, {
|
|
2560
2560
|
variant: t
|
|
2561
2561
|
});
|
|
2562
2562
|
const l = e.getAttribute("title");
|
|
@@ -2573,16 +2573,16 @@ function ot(e, t, r) {
|
|
|
2573
2573
|
function qe(e, t) {
|
|
2574
2574
|
e.stack = t.stack.replace(t.message, e.message);
|
|
2575
2575
|
}
|
|
2576
|
-
function
|
|
2576
|
+
function _i(e, t) {
|
|
2577
2577
|
let {
|
|
2578
2578
|
container: r = Tt(),
|
|
2579
|
-
timeout:
|
|
2579
|
+
timeout: o = j().asyncUtilTimeout,
|
|
2580
2580
|
showOriginalStackTrace: s = j().showOriginalStackTrace,
|
|
2581
|
-
stackTraceError:
|
|
2581
|
+
stackTraceError: c,
|
|
2582
2582
|
interval: u = 50,
|
|
2583
|
-
onTimeout: p = (
|
|
2584
|
-
value: j().getElementError(
|
|
2585
|
-
}),
|
|
2583
|
+
onTimeout: p = (a) => (Object.defineProperty(a, "message", {
|
|
2584
|
+
value: j().getElementError(a.message, r).message
|
|
2585
|
+
}), a),
|
|
2586
2586
|
mutationObserverOptions: n = {
|
|
2587
2587
|
subtree: !0,
|
|
2588
2588
|
childList: !0,
|
|
@@ -2592,17 +2592,17 @@ function Ci(e, t) {
|
|
|
2592
2592
|
} = t;
|
|
2593
2593
|
if (typeof e != "function")
|
|
2594
2594
|
throw new TypeError("Received `callback` arg must be a function");
|
|
2595
|
-
return new Promise(async (
|
|
2595
|
+
return new Promise(async (a, l) => {
|
|
2596
2596
|
let i, d, m, E = !1, h = "idle";
|
|
2597
|
-
const w = setTimeout(M,
|
|
2598
|
-
if (
|
|
2597
|
+
const w = setTimeout(M, o), f = rt();
|
|
2598
|
+
if (f) {
|
|
2599
2599
|
const {
|
|
2600
2600
|
unstable_advanceTimersWrapper: y
|
|
2601
2601
|
} = j();
|
|
2602
2602
|
for (x(); !E; ) {
|
|
2603
2603
|
if (!rt()) {
|
|
2604
2604
|
const g = new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
|
|
2605
|
-
s || qe(g,
|
|
2605
|
+
s || qe(g, c), l(g);
|
|
2606
2606
|
return;
|
|
2607
2607
|
}
|
|
2608
2608
|
if (await y(async () => {
|
|
@@ -2625,12 +2625,12 @@ function Ci(e, t) {
|
|
|
2625
2625
|
m = new y(I), m.observe(r, n), x();
|
|
2626
2626
|
}
|
|
2627
2627
|
function A(y, g) {
|
|
2628
|
-
E = !0, clearTimeout(w),
|
|
2628
|
+
E = !0, clearTimeout(w), f || (clearInterval(d), m.disconnect()), y ? l(y) : a(g);
|
|
2629
2629
|
}
|
|
2630
2630
|
function I() {
|
|
2631
2631
|
if (rt()) {
|
|
2632
2632
|
const y = new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");
|
|
2633
|
-
return s || qe(y,
|
|
2633
|
+
return s || qe(y, c), l(y);
|
|
2634
2634
|
} else
|
|
2635
2635
|
return x();
|
|
2636
2636
|
}
|
|
@@ -2649,13 +2649,13 @@ function Ci(e, t) {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
function M() {
|
|
2651
2651
|
let y;
|
|
2652
|
-
i ? (y = i, !s && y.name === "TestingLibraryElementError" && qe(y,
|
|
2652
|
+
i ? (y = i, !s && y.name === "TestingLibraryElementError" && qe(y, c)) : (y = new Error("Timed out in waitFor."), s || qe(y, c)), A(p(y), null);
|
|
2653
2653
|
}
|
|
2654
2654
|
});
|
|
2655
2655
|
}
|
|
2656
|
-
function
|
|
2656
|
+
function Ci(e, t) {
|
|
2657
2657
|
const r = new Error("STACK_TRACE_MESSAGE");
|
|
2658
|
-
return j().asyncWrapper(() =>
|
|
2658
|
+
return j().asyncWrapper(() => _i(e, {
|
|
2659
2659
|
stackTraceError: r,
|
|
2660
2660
|
...t
|
|
2661
2661
|
}));
|
|
@@ -2666,24 +2666,24 @@ function xr(e, t) {
|
|
|
2666
2666
|
function Ri(e, t) {
|
|
2667
2667
|
return xr(e + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", t);
|
|
2668
2668
|
}
|
|
2669
|
-
function Ye(e, t, r,
|
|
2669
|
+
function Ye(e, t, r, o) {
|
|
2670
2670
|
let {
|
|
2671
2671
|
exact: s = !0,
|
|
2672
|
-
collapseWhitespace:
|
|
2672
|
+
collapseWhitespace: c,
|
|
2673
2673
|
trim: u,
|
|
2674
2674
|
normalizer: p
|
|
2675
|
-
} =
|
|
2676
|
-
const n = s ? se : Ae,
|
|
2677
|
-
collapseWhitespace:
|
|
2675
|
+
} = o === void 0 ? {} : o;
|
|
2676
|
+
const n = s ? se : Ae, a = he({
|
|
2677
|
+
collapseWhitespace: c,
|
|
2678
2678
|
trim: u,
|
|
2679
2679
|
normalizer: p
|
|
2680
2680
|
});
|
|
2681
|
-
return Array.from(t.querySelectorAll("[" + e + "]")).filter((l) => n(l.getAttribute(e), l, r,
|
|
2681
|
+
return Array.from(t.querySelectorAll("[" + e + "]")).filter((l) => n(l.getAttribute(e), l, r, a));
|
|
2682
2682
|
}
|
|
2683
2683
|
function ze(e, t) {
|
|
2684
2684
|
return function(r) {
|
|
2685
|
-
for (var
|
|
2686
|
-
s[
|
|
2685
|
+
for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
|
|
2686
|
+
s[c - 1] = arguments[c];
|
|
2687
2687
|
const u = e(r, ...s);
|
|
2688
2688
|
if (u.length > 1) {
|
|
2689
2689
|
const p = u.map((n) => xr(null, n).message).join(`
|
|
@@ -2705,8 +2705,8 @@ function Or(e, t) {
|
|
|
2705
2705
|
}
|
|
2706
2706
|
function Bi(e, t) {
|
|
2707
2707
|
return function(r) {
|
|
2708
|
-
for (var
|
|
2709
|
-
s[
|
|
2708
|
+
for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
|
|
2709
|
+
s[c - 1] = arguments[c];
|
|
2710
2710
|
const u = e(r, ...s);
|
|
2711
2711
|
if (!u.length)
|
|
2712
2712
|
throw j().getElementError(t(r, ...s), r);
|
|
@@ -2714,48 +2714,48 @@ function Bi(e, t) {
|
|
|
2714
2714
|
};
|
|
2715
2715
|
}
|
|
2716
2716
|
function Ue(e) {
|
|
2717
|
-
return (t, r,
|
|
2717
|
+
return (t, r, o, s) => Ci(() => e(t, r, o), {
|
|
2718
2718
|
container: t,
|
|
2719
2719
|
...s
|
|
2720
2720
|
});
|
|
2721
2721
|
}
|
|
2722
|
-
const ve = (e, t, r) => function(
|
|
2723
|
-
for (var s = arguments.length,
|
|
2724
|
-
|
|
2725
|
-
const p = e(
|
|
2722
|
+
const ve = (e, t, r) => function(o) {
|
|
2723
|
+
for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
|
|
2724
|
+
c[u - 1] = arguments[u];
|
|
2725
|
+
const p = e(o, ...c), [{
|
|
2726
2726
|
suggest: n = j().throwSuggestions
|
|
2727
|
-
} = {}] =
|
|
2727
|
+
} = {}] = c.slice(-1);
|
|
2728
2728
|
if (p && n) {
|
|
2729
|
-
const
|
|
2730
|
-
if (
|
|
2731
|
-
throw Or(
|
|
2729
|
+
const a = ot(p, r);
|
|
2730
|
+
if (a && !t.endsWith(a.queryName))
|
|
2731
|
+
throw Or(a.toString(), o);
|
|
2732
2732
|
}
|
|
2733
2733
|
return p;
|
|
2734
|
-
}, J = (e, t, r) => function(
|
|
2735
|
-
for (var s = arguments.length,
|
|
2736
|
-
|
|
2737
|
-
const p = e(
|
|
2734
|
+
}, J = (e, t, r) => function(o) {
|
|
2735
|
+
for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
|
|
2736
|
+
c[u - 1] = arguments[u];
|
|
2737
|
+
const p = e(o, ...c), [{
|
|
2738
2738
|
suggest: n = j().throwSuggestions
|
|
2739
|
-
} = {}] =
|
|
2739
|
+
} = {}] = c.slice(-1);
|
|
2740
2740
|
if (p.length && n) {
|
|
2741
|
-
const
|
|
2741
|
+
const a = [...new Set(p.map((l) => {
|
|
2742
2742
|
var i;
|
|
2743
2743
|
return (i = ot(l, r)) == null ? void 0 : i.toString();
|
|
2744
2744
|
}))];
|
|
2745
2745
|
if (
|
|
2746
2746
|
// only want to suggest if all the els have the same suggestion.
|
|
2747
|
-
|
|
2747
|
+
a.length === 1 && !t.endsWith(
|
|
2748
2748
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
|
|
2749
2749
|
ot(p[0], r).queryName
|
|
2750
2750
|
)
|
|
2751
2751
|
)
|
|
2752
|
-
throw Or(
|
|
2752
|
+
throw Or(a[0], o);
|
|
2753
2753
|
}
|
|
2754
2754
|
return p;
|
|
2755
2755
|
};
|
|
2756
2756
|
function Ee(e, t, r) {
|
|
2757
|
-
const
|
|
2758
|
-
return [
|
|
2757
|
+
const o = ve(ze(e, t), e.name, "query"), s = Bi(e, r), c = ze(s, t), u = ve(c, e.name, "get"), p = J(s, e.name.replace("query", "get"), "getAll"), n = Ue(J(s, e.name, "findAll")), a = Ue(ve(c, e.name, "find"));
|
|
2758
|
+
return [o, p, u, n, a];
|
|
2759
2759
|
}
|
|
2760
2760
|
function Ni(e) {
|
|
2761
2761
|
return Array.from(e.querySelectorAll("label,input")).map((t) => ({
|
|
@@ -2770,13 +2770,13 @@ function Ni(e) {
|
|
|
2770
2770
|
}
|
|
2771
2771
|
const Pi = function(e, t, r) {
|
|
2772
2772
|
let {
|
|
2773
|
-
exact:
|
|
2773
|
+
exact: o = !0,
|
|
2774
2774
|
trim: s,
|
|
2775
|
-
collapseWhitespace:
|
|
2775
|
+
collapseWhitespace: c,
|
|
2776
2776
|
normalizer: u
|
|
2777
2777
|
} = r === void 0 ? {} : r;
|
|
2778
|
-
const p =
|
|
2779
|
-
collapseWhitespace:
|
|
2778
|
+
const p = o ? se : Ae, n = he({
|
|
2779
|
+
collapseWhitespace: c,
|
|
2780
2780
|
trim: s,
|
|
2781
2781
|
normalizer: u
|
|
2782
2782
|
});
|
|
@@ -2794,41 +2794,41 @@ const Pi = function(e, t, r) {
|
|
|
2794
2794
|
});
|
|
2795
2795
|
}, Me = function(e, t, r) {
|
|
2796
2796
|
let {
|
|
2797
|
-
selector:
|
|
2797
|
+
selector: o = "*",
|
|
2798
2798
|
exact: s = !0,
|
|
2799
|
-
collapseWhitespace:
|
|
2799
|
+
collapseWhitespace: c,
|
|
2800
2800
|
trim: u,
|
|
2801
2801
|
normalizer: p
|
|
2802
2802
|
} = r === void 0 ? {} : r;
|
|
2803
2803
|
ce(e);
|
|
2804
|
-
const n = s ? se : Ae,
|
|
2805
|
-
collapseWhitespace:
|
|
2804
|
+
const n = s ? se : Ae, a = he({
|
|
2805
|
+
collapseWhitespace: c,
|
|
2806
2806
|
trim: u,
|
|
2807
2807
|
normalizer: p
|
|
2808
2808
|
}), l = Array.from(e.querySelectorAll("*")).filter((i) => vr(i).length || i.hasAttribute("aria-labelledby")).reduce((i, d) => {
|
|
2809
2809
|
const m = Tr(e, d, {
|
|
2810
|
-
selector:
|
|
2810
|
+
selector: o
|
|
2811
2811
|
});
|
|
2812
2812
|
m.filter((h) => !!h.formControl).forEach((h) => {
|
|
2813
|
-
n(h.content, h.formControl, t,
|
|
2813
|
+
n(h.content, h.formControl, t, a) && h.formControl && i.push(h.formControl);
|
|
2814
2814
|
});
|
|
2815
2815
|
const E = m.filter((h) => !!h.content).map((h) => h.content);
|
|
2816
|
-
return n(E.join(" "), d, t,
|
|
2817
|
-
n(h, d, t,
|
|
2818
|
-
const
|
|
2819
|
-
|
|
2816
|
+
return n(E.join(" "), d, t, a) && i.push(d), E.length > 1 && E.forEach((h, w) => {
|
|
2817
|
+
n(h, d, t, a) && i.push(d);
|
|
2818
|
+
const f = [...E];
|
|
2819
|
+
f.splice(w, 1), f.length > 1 && n(f.join(" "), d, t, a) && i.push(d);
|
|
2820
2820
|
}), i;
|
|
2821
2821
|
}, []).concat(Ye("aria-label", e, t, {
|
|
2822
2822
|
exact: s,
|
|
2823
|
-
normalizer:
|
|
2823
|
+
normalizer: a
|
|
2824
2824
|
}));
|
|
2825
|
-
return Array.from(new Set(l)).filter((i) => i.matches(
|
|
2825
|
+
return Array.from(new Set(l)).filter((i) => i.matches(o));
|
|
2826
2826
|
}, ye = function(e, t) {
|
|
2827
|
-
for (var r = arguments.length,
|
|
2828
|
-
|
|
2829
|
-
const
|
|
2830
|
-
if (!
|
|
2831
|
-
const u = Pi(e, t, ...
|
|
2827
|
+
for (var r = arguments.length, o = new Array(r > 2 ? r - 2 : 0), s = 2; s < r; s++)
|
|
2828
|
+
o[s - 2] = arguments[s];
|
|
2829
|
+
const c = Me(e, t, ...o);
|
|
2830
|
+
if (!c.length) {
|
|
2831
|
+
const u = Pi(e, t, ...o);
|
|
2832
2832
|
if (u.length) {
|
|
2833
2833
|
const p = u.map((n) => Li(e, n)).filter((n) => !!n);
|
|
2834
2834
|
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(`
|
|
@@ -2837,91 +2837,91 @@ const Pi = function(e, t, r) {
|
|
|
2837
2837
|
} else
|
|
2838
2838
|
throw j().getElementError("Unable to find a label with the text of: " + t, e);
|
|
2839
2839
|
}
|
|
2840
|
-
return
|
|
2840
|
+
return c;
|
|
2841
2841
|
};
|
|
2842
2842
|
function Li(e, t) {
|
|
2843
2843
|
const r = t.getAttribute("for");
|
|
2844
2844
|
if (!r)
|
|
2845
2845
|
return null;
|
|
2846
|
-
const
|
|
2847
|
-
return
|
|
2846
|
+
const o = e.querySelector('[id="' + r + '"]');
|
|
2847
|
+
return o ? o.tagName.toLowerCase() : null;
|
|
2848
2848
|
}
|
|
2849
|
-
const Mr = (e, t) => "Found multiple elements with the text of: " + t, Di = ve(ze(Me, Mr), Me.name, "query"),
|
|
2849
|
+
const Mr = (e, t) => "Found multiple elements with the text of: " + t, Di = ve(ze(Me, Mr), Me.name, "query"), _r = ze(ye, Mr), qi = Ue(J(ye, ye.name, "findAll")), ji = Ue(ve(_r, ye.name, "find")), ki = J(ye, ye.name, "getAll"), Fi = ve(_r, ye.name, "get"), $i = J(Me, Me.name, "queryAll"), at = function() {
|
|
2850
2850
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
2851
2851
|
t[r] = arguments[r];
|
|
2852
2852
|
return ce(t[0]), Ye("placeholder", ...t);
|
|
2853
2853
|
}, zi = (e, t) => "Found multiple elements with the placeholder text of: " + t, Ui = (e, t) => "Unable to find an element with the placeholder text of: " + t, Wi = J(at, at.name, "queryAll"), [Vi, Hi, Gi, Yi, Ki] = Ee(at, zi, Ui), ut = function(e, t, r) {
|
|
2854
2854
|
let {
|
|
2855
|
-
selector:
|
|
2855
|
+
selector: o = "*",
|
|
2856
2856
|
exact: s = !0,
|
|
2857
|
-
collapseWhitespace:
|
|
2857
|
+
collapseWhitespace: c,
|
|
2858
2858
|
trim: u,
|
|
2859
2859
|
ignore: p = j().defaultIgnore,
|
|
2860
2860
|
normalizer: n
|
|
2861
2861
|
} = r === void 0 ? {} : r;
|
|
2862
2862
|
ce(e);
|
|
2863
|
-
const
|
|
2864
|
-
collapseWhitespace:
|
|
2863
|
+
const a = s ? se : Ae, l = he({
|
|
2864
|
+
collapseWhitespace: c,
|
|
2865
2865
|
trim: u,
|
|
2866
2866
|
normalizer: n
|
|
2867
2867
|
});
|
|
2868
2868
|
let i = [];
|
|
2869
|
-
return typeof e.matches == "function" && e.matches(
|
|
2869
|
+
return typeof e.matches == "function" && e.matches(o) && (i = [e]), [...i, ...Array.from(e.querySelectorAll(o))].filter((d) => !p || !d.matches(p)).filter((d) => a(Ge(d), d, t, l));
|
|
2870
2870
|
}, Ji = (e, t) => "Found multiple elements with the text: " + t, Qi = function(e, t, r) {
|
|
2871
2871
|
r === void 0 && (r = {});
|
|
2872
2872
|
const {
|
|
2873
|
-
collapseWhitespace:
|
|
2873
|
+
collapseWhitespace: o,
|
|
2874
2874
|
trim: s,
|
|
2875
|
-
normalizer:
|
|
2875
|
+
normalizer: c,
|
|
2876
2876
|
selector: u
|
|
2877
2877
|
} = r, n = he({
|
|
2878
|
-
collapseWhitespace:
|
|
2878
|
+
collapseWhitespace: o,
|
|
2879
2879
|
trim: s,
|
|
2880
|
-
normalizer:
|
|
2881
|
-
})(t.toString()),
|
|
2882
|
-
return "Unable to find an element with the text: " + (
|
|
2880
|
+
normalizer: c
|
|
2881
|
+
})(t.toString()), a = n !== t.toString(), l = (u ?? "*") !== "*";
|
|
2882
|
+
return "Unable to find an element with the text: " + (a ? 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.";
|
|
2883
2883
|
}, Xi = J(ut, ut.name, "queryAll"), [Zi, eo, to, ro, no] = Ee(ut, Ji, Qi), lt = function(e, t, r) {
|
|
2884
2884
|
let {
|
|
2885
|
-
exact:
|
|
2885
|
+
exact: o = !0,
|
|
2886
2886
|
collapseWhitespace: s,
|
|
2887
|
-
trim:
|
|
2887
|
+
trim: c,
|
|
2888
2888
|
normalizer: u
|
|
2889
2889
|
} = r === void 0 ? {} : r;
|
|
2890
2890
|
ce(e);
|
|
2891
|
-
const p =
|
|
2891
|
+
const p = o ? se : Ae, n = he({
|
|
2892
2892
|
collapseWhitespace: s,
|
|
2893
|
-
trim:
|
|
2893
|
+
trim: c,
|
|
2894
2894
|
normalizer: u
|
|
2895
2895
|
});
|
|
2896
|
-
return Array.from(e.querySelectorAll("input,textarea,select")).filter((
|
|
2896
|
+
return Array.from(e.querySelectorAll("input,textarea,select")).filter((a) => a.tagName === "SELECT" ? Array.from(a.options).filter((i) => i.selected).some((i) => p(Ge(i), i, t, n)) : p(a.value, a, t, n));
|
|
2897
2897
|
}, io = (e, t) => "Found multiple elements with the display value: " + t + ".", oo = (e, t) => "Unable to find an element with the display value: " + t + ".", ao = J(lt, lt.name, "queryAll"), [uo, lo, so, co, fo] = Ee(lt, io, oo), po = /^(img|input|area|.+-.+)$/i, st = function(e, t, r) {
|
|
2898
|
-
return r === void 0 && (r = {}), ce(e), Ye("alt", e, t, r).filter((
|
|
2898
|
+
return r === void 0 && (r = {}), ce(e), Ye("alt", e, t, r).filter((o) => po.test(o.tagName));
|
|
2899
2899
|
}, bo = (e, t) => "Found multiple elements with the alt text: " + t, mo = (e, t) => "Unable to find an element with the alt text: " + t, yo = J(st, st.name, "queryAll"), [go, ho, Eo, vo, To] = Ee(st, bo, mo), wo = (e) => {
|
|
2900
2900
|
var t;
|
|
2901
2901
|
return e.tagName.toLowerCase() === "title" && ((t = e.parentElement) == null ? void 0 : t.tagName.toLowerCase()) === "svg";
|
|
2902
2902
|
}, ct = function(e, t, r) {
|
|
2903
2903
|
let {
|
|
2904
|
-
exact:
|
|
2904
|
+
exact: o = !0,
|
|
2905
2905
|
collapseWhitespace: s,
|
|
2906
|
-
trim:
|
|
2906
|
+
trim: c,
|
|
2907
2907
|
normalizer: u
|
|
2908
2908
|
} = r === void 0 ? {} : r;
|
|
2909
2909
|
ce(e);
|
|
2910
|
-
const p =
|
|
2910
|
+
const p = o ? se : Ae, n = he({
|
|
2911
2911
|
collapseWhitespace: s,
|
|
2912
|
-
trim:
|
|
2912
|
+
trim: c,
|
|
2913
2913
|
normalizer: u
|
|
2914
2914
|
});
|
|
2915
|
-
return Array.from(e.querySelectorAll("[title], svg > title")).filter((
|
|
2916
|
-
}, Ao = (e, t) => "Found multiple elements with the title: " + t + ".", So = (e, t) => "Unable to find an element with the title: " + t + ".", Io = J(ct, ct.name, "queryAll"), [xo, Oo, Mo,
|
|
2915
|
+
return Array.from(e.querySelectorAll("[title], svg > title")).filter((a) => p(a.getAttribute("title"), a, t, n) || wo(a) && p(Ge(a), a, t, n));
|
|
2916
|
+
}, Ao = (e, t) => "Found multiple elements with the title: " + t + ".", So = (e, t) => "Unable to find an element with the title: " + t + ".", Io = J(ct, ct.name, "queryAll"), [xo, Oo, Mo, _o, Co] = Ee(ct, Ao, So), ft = function(e, t, r) {
|
|
2917
2917
|
let {
|
|
2918
|
-
hidden:
|
|
2918
|
+
hidden: o = j().defaultHidden,
|
|
2919
2919
|
name: s,
|
|
2920
|
-
description:
|
|
2920
|
+
description: c,
|
|
2921
2921
|
queryFallbacks: u = !1,
|
|
2922
2922
|
selected: p,
|
|
2923
2923
|
busy: n,
|
|
2924
|
-
checked:
|
|
2924
|
+
checked: a,
|
|
2925
2925
|
pressed: l,
|
|
2926
2926
|
current: i,
|
|
2927
2927
|
level: d,
|
|
@@ -2930,7 +2930,7 @@ const Mr = (e, t) => "Found multiple elements with the text of: " + t, Di = ve(z
|
|
|
2930
2930
|
now: E,
|
|
2931
2931
|
min: h,
|
|
2932
2932
|
max: w,
|
|
2933
|
-
text:
|
|
2933
|
+
text: f
|
|
2934
2934
|
} = {}
|
|
2935
2935
|
} = r === void 0 ? {} : r;
|
|
2936
2936
|
if (ce(e), p !== void 0) {
|
|
@@ -2943,7 +2943,7 @@ const Mr = (e, t) => "Found multiple elements with the text of: " + t, Di = ve(z
|
|
|
2943
2943
|
if (((I = K.roles.get(t)) == null ? void 0 : I.props["aria-busy"]) === void 0)
|
|
2944
2944
|
throw new Error('"aria-busy" is not supported on role "' + t + '".');
|
|
2945
2945
|
}
|
|
2946
|
-
if (
|
|
2946
|
+
if (a !== void 0) {
|
|
2947
2947
|
var x;
|
|
2948
2948
|
if (((x = K.roles.get(t)) == null ? void 0 : x.props["aria-checked"]) === void 0)
|
|
2949
2949
|
throw new Error('"aria-checked" is not supported on role "' + t + '".');
|
|
@@ -2971,11 +2971,11 @@ const Mr = (e, t) => "Found multiple elements with the text of: " + t, Di = ve(z
|
|
|
2971
2971
|
throw new Error('"aria-valuemax" is not supported on role "' + t + '".');
|
|
2972
2972
|
}
|
|
2973
2973
|
if (h !== void 0) {
|
|
2974
|
-
var
|
|
2975
|
-
if (((
|
|
2974
|
+
var C;
|
|
2975
|
+
if (((C = K.roles.get(t)) == null ? void 0 : C.props["aria-valuemin"]) === void 0)
|
|
2976
2976
|
throw new Error('"aria-valuemin" is not supported on role "' + t + '".');
|
|
2977
2977
|
}
|
|
2978
|
-
if (
|
|
2978
|
+
if (f !== void 0) {
|
|
2979
2979
|
var R;
|
|
2980
2980
|
if (((R = K.roles.get(t)) == null ? void 0 : R.props["aria-valuetext"]) === void 0)
|
|
2981
2981
|
throw new Error('"aria-valuetext" is not supported on role "' + t + '".');
|
|
@@ -2986,89 +2986,89 @@ const Mr = (e, t) => "Found multiple elements with the text of: " + t, Di = ve(z
|
|
|
2986
2986
|
throw new Error('"aria-expanded" is not supported on role "' + t + '".');
|
|
2987
2987
|
}
|
|
2988
2988
|
const N = /* @__PURE__ */ new WeakMap();
|
|
2989
|
-
function S(
|
|
2990
|
-
return N.has(
|
|
2989
|
+
function S(_) {
|
|
2990
|
+
return N.has(_) || N.set(_, Ir(_)), N.get(_);
|
|
2991
2991
|
}
|
|
2992
2992
|
return Array.from(e.querySelectorAll(
|
|
2993
2993
|
// Only query elements that can be matched by the following filters
|
|
2994
2994
|
Ro(t)
|
|
2995
|
-
)).filter((
|
|
2996
|
-
if (
|
|
2997
|
-
const k =
|
|
2995
|
+
)).filter((_) => {
|
|
2996
|
+
if (_.hasAttribute("role")) {
|
|
2997
|
+
const k = _.getAttribute("role");
|
|
2998
2998
|
if (u)
|
|
2999
2999
|
return k.split(" ").filter(Boolean).some((Se) => Se === t);
|
|
3000
3000
|
const [Z] = k.split(" ");
|
|
3001
3001
|
return Z === t;
|
|
3002
3002
|
}
|
|
3003
|
-
return At(
|
|
3004
|
-
}).filter((
|
|
3003
|
+
return At(_).some((k) => k === t);
|
|
3004
|
+
}).filter((_) => {
|
|
3005
3005
|
if (p !== void 0)
|
|
3006
|
-
return p === gi(
|
|
3006
|
+
return p === gi(_);
|
|
3007
3007
|
if (n !== void 0)
|
|
3008
|
-
return n === hi(
|
|
3009
|
-
if (
|
|
3010
|
-
return
|
|
3008
|
+
return n === hi(_);
|
|
3009
|
+
if (a !== void 0)
|
|
3010
|
+
return a === Ei(_);
|
|
3011
3011
|
if (l !== void 0)
|
|
3012
|
-
return l === vi(
|
|
3012
|
+
return l === vi(_);
|
|
3013
3013
|
if (i !== void 0)
|
|
3014
|
-
return i === Ti(
|
|
3014
|
+
return i === Ti(_);
|
|
3015
3015
|
if (m !== void 0)
|
|
3016
|
-
return m === wi(
|
|
3016
|
+
return m === wi(_);
|
|
3017
3017
|
if (d !== void 0)
|
|
3018
|
-
return d === Ai(
|
|
3019
|
-
if (E !== void 0 || w !== void 0 || h !== void 0 ||
|
|
3018
|
+
return d === Ai(_);
|
|
3019
|
+
if (E !== void 0 || w !== void 0 || h !== void 0 || f !== void 0) {
|
|
3020
3020
|
let z = !0;
|
|
3021
|
-
if (E !== void 0 && z && (z = E === Si(
|
|
3021
|
+
if (E !== void 0 && z && (z = E === Si(_)), w !== void 0 && z && (z = w === Ii(_)), h !== void 0 && z && (z = h === xi(_)), f !== void 0) {
|
|
3022
3022
|
var W;
|
|
3023
|
-
z && (z = se((W = Oi(
|
|
3023
|
+
z && (z = se((W = Oi(_)) != null ? W : null, _, f, (k) => k));
|
|
3024
3024
|
}
|
|
3025
3025
|
return z;
|
|
3026
3026
|
}
|
|
3027
3027
|
return !0;
|
|
3028
|
-
}).filter((
|
|
3028
|
+
}).filter((_) => s === void 0 ? !0 : se(ht(_, {
|
|
3029
3029
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
3030
|
-
}),
|
|
3030
|
+
}), _, s, (W) => W)).filter((_) => c === void 0 ? !0 : se(sr(_, {
|
|
3031
3031
|
computedStyleSupportsPseudoElements: j().computedStyleSupportsPseudoElements
|
|
3032
|
-
}),
|
|
3032
|
+
}), _, c, (W) => W)).filter((_) => o === !1 ? wt(_, {
|
|
3033
3033
|
isSubtreeInaccessible: S
|
|
3034
3034
|
}) === !1 : !0);
|
|
3035
3035
|
};
|
|
3036
3036
|
function Ro(e) {
|
|
3037
3037
|
var t;
|
|
3038
|
-
const r = '*[role~="' + e + '"]',
|
|
3038
|
+
const r = '*[role~="' + e + '"]', o = (t = K.roleElements.get(e)) != null ? t : /* @__PURE__ */ new Set(), s = new Set(Array.from(o).map((c) => {
|
|
3039
3039
|
let {
|
|
3040
3040
|
name: u
|
|
3041
|
-
} =
|
|
3041
|
+
} = c;
|
|
3042
3042
|
return u;
|
|
3043
3043
|
}));
|
|
3044
3044
|
return [r].concat(Array.from(s)).join(",");
|
|
3045
3045
|
}
|
|
3046
|
-
const
|
|
3046
|
+
const Cr = (e) => {
|
|
3047
3047
|
let t = "";
|
|
3048
3048
|
return e === void 0 ? t = "" : typeof e == "string" ? t = ' and name "' + e + '"' : t = " and name `" + e + "`", t;
|
|
3049
3049
|
}, Bo = function(e, t, r) {
|
|
3050
3050
|
let {
|
|
3051
|
-
name:
|
|
3051
|
+
name: o
|
|
3052
3052
|
} = r === void 0 ? {} : r;
|
|
3053
|
-
return 'Found multiple elements with the role "' + t + '"' +
|
|
3053
|
+
return 'Found multiple elements with the role "' + t + '"' + Cr(o);
|
|
3054
3054
|
}, No = function(e, t, r) {
|
|
3055
3055
|
let {
|
|
3056
|
-
hidden:
|
|
3056
|
+
hidden: o = j().defaultHidden,
|
|
3057
3057
|
name: s,
|
|
3058
|
-
description:
|
|
3058
|
+
description: c
|
|
3059
3059
|
} = r === void 0 ? {} : r;
|
|
3060
3060
|
if (j()._disableExpensiveErrorDiagnostics)
|
|
3061
|
-
return 'Unable to find role="' + t + '"' +
|
|
3061
|
+
return 'Unable to find role="' + t + '"' + Cr(s);
|
|
3062
3062
|
let u = "";
|
|
3063
3063
|
Array.from(e.children).forEach((l) => {
|
|
3064
3064
|
u += yi(l, {
|
|
3065
|
-
hidden:
|
|
3066
|
-
includeDescription:
|
|
3065
|
+
hidden: o,
|
|
3066
|
+
includeDescription: c !== void 0
|
|
3067
3067
|
});
|
|
3068
3068
|
});
|
|
3069
3069
|
let p;
|
|
3070
|
-
u.length === 0 ?
|
|
3071
|
-
Here are the ` + (
|
|
3070
|
+
u.length === 0 ? o === !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 = (`
|
|
3071
|
+
Here are the ` + (o === !1 ? "accessible" : "available") + ` roles:
|
|
3072
3072
|
|
|
3073
3073
|
` + u.replace(/\n/g, `
|
|
3074
3074
|
`).replace(/\n\s\s\n/g, `
|
|
@@ -3077,9 +3077,9 @@ Here are the ` + (a === !1 ? "accessible" : "available") + ` roles:
|
|
|
3077
3077
|
`).trim();
|
|
3078
3078
|
let n = "";
|
|
3079
3079
|
s === void 0 ? n = "" : typeof s == "string" ? n = ' and name "' + s + '"' : n = " and name `" + s + "`";
|
|
3080
|
-
let
|
|
3081
|
-
return
|
|
3082
|
-
Unable to find an ` + (
|
|
3080
|
+
let a = "";
|
|
3081
|
+
return c === void 0 ? a = "" : typeof c == "string" ? a = ' and description "' + c + '"' : a = " and description `" + c + "`", (`
|
|
3082
|
+
Unable to find an ` + (o === !1 ? "accessible " : "") + 'element with the role "' + t + '"' + n + a + `
|
|
3083
3083
|
|
|
3084
3084
|
` + p).trim();
|
|
3085
3085
|
}, Po = J(ft, ft.name, "queryAll"), [Lo, Do, qo, jo, ko] = Ee(ft, Bo, No), St = () => j().testIdAttribute, dt = function() {
|
|
@@ -3123,8 +3123,8 @@ var pt = /* @__PURE__ */ Object.freeze({
|
|
|
3123
3123
|
queryAllByTitle: Io,
|
|
3124
3124
|
getByTitle: Mo,
|
|
3125
3125
|
getAllByTitle: Oo,
|
|
3126
|
-
findAllByTitle:
|
|
3127
|
-
findByTitle:
|
|
3126
|
+
findAllByTitle: _o,
|
|
3127
|
+
findByTitle: Co,
|
|
3128
3128
|
queryByRole: Lo,
|
|
3129
3129
|
queryAllByRole: Po,
|
|
3130
3130
|
getAllByRole: Do,
|
|
@@ -3139,9 +3139,9 @@ var pt = /* @__PURE__ */ Object.freeze({
|
|
|
3139
3139
|
findByTestId: Go
|
|
3140
3140
|
});
|
|
3141
3141
|
function Rr(e, t, r) {
|
|
3142
|
-
return t === void 0 && (t = pt), r === void 0 && (r = {}), Object.keys(t).reduce((
|
|
3143
|
-
const
|
|
3144
|
-
return
|
|
3142
|
+
return t === void 0 && (t = pt), r === void 0 && (r = {}), Object.keys(t).reduce((o, s) => {
|
|
3143
|
+
const c = t[s];
|
|
3144
|
+
return o[s] = c.bind(null, e), o;
|
|
3145
3145
|
}, r);
|
|
3146
3146
|
}
|
|
3147
3147
|
const Jt = {
|
|
@@ -3857,21 +3857,21 @@ function ge(e, t) {
|
|
|
3857
3857
|
return e.dispatchEvent(t);
|
|
3858
3858
|
});
|
|
3859
3859
|
}
|
|
3860
|
-
function nt(e, t, r,
|
|
3860
|
+
function nt(e, t, r, o) {
|
|
3861
3861
|
let {
|
|
3862
3862
|
EventType: s = "Event",
|
|
3863
|
-
defaultInit:
|
|
3864
|
-
} =
|
|
3863
|
+
defaultInit: c = {}
|
|
3864
|
+
} = o === void 0 ? {} : o;
|
|
3865
3865
|
if (!t)
|
|
3866
3866
|
throw new Error('Unable to fire a "' + e + '" event - please provide a DOM element.');
|
|
3867
3867
|
const u = {
|
|
3868
|
-
...
|
|
3868
|
+
...c,
|
|
3869
3869
|
...r
|
|
3870
3870
|
}, {
|
|
3871
3871
|
target: {
|
|
3872
3872
|
value: p,
|
|
3873
3873
|
files: n,
|
|
3874
|
-
...
|
|
3874
|
+
...a
|
|
3875
3875
|
} = {}
|
|
3876
3876
|
} = u;
|
|
3877
3877
|
p !== void 0 && Yo(t, p), n !== void 0 && Object.defineProperty(t, "files", {
|
|
@@ -3879,7 +3879,7 @@ function nt(e, t, r, a) {
|
|
|
3879
3879
|
enumerable: !0,
|
|
3880
3880
|
writable: !0,
|
|
3881
3881
|
value: n
|
|
3882
|
-
}), Object.assign(t,
|
|
3882
|
+
}), Object.assign(t, a);
|
|
3883
3883
|
const l = hr(t), i = l[s] || l.Event;
|
|
3884
3884
|
let d;
|
|
3885
3885
|
if (typeof i == "function")
|
|
@@ -3890,17 +3890,17 @@ function nt(e, t, r, a) {
|
|
|
3890
3890
|
bubbles: E,
|
|
3891
3891
|
cancelable: h,
|
|
3892
3892
|
detail: w,
|
|
3893
|
-
...
|
|
3893
|
+
...f
|
|
3894
3894
|
} = u;
|
|
3895
|
-
d.initEvent(e, E, h, w), Object.keys(
|
|
3896
|
-
d[A] =
|
|
3895
|
+
d.initEvent(e, E, h, w), Object.keys(f).forEach((A) => {
|
|
3896
|
+
d[A] = f[A];
|
|
3897
3897
|
});
|
|
3898
3898
|
}
|
|
3899
3899
|
return ["dataTransfer", "clipboardData"].forEach((E) => {
|
|
3900
3900
|
const h = u[E];
|
|
3901
3901
|
typeof h == "object" && (typeof l.DataTransfer == "function" ? Object.defineProperty(d, E, {
|
|
3902
|
-
value: Object.getOwnPropertyNames(h).reduce((w,
|
|
3903
|
-
value: h[
|
|
3902
|
+
value: Object.getOwnPropertyNames(h).reduce((w, f) => (Object.defineProperty(w, f, {
|
|
3903
|
+
value: h[f]
|
|
3904
3904
|
}), w), new l.DataTransfer())
|
|
3905
3905
|
}) : Object.defineProperty(d, E, {
|
|
3906
3906
|
value: h
|
|
@@ -3911,18 +3911,18 @@ Object.keys(Jt).forEach((e) => {
|
|
|
3911
3911
|
const {
|
|
3912
3912
|
EventType: t,
|
|
3913
3913
|
defaultInit: r
|
|
3914
|
-
} = Jt[e],
|
|
3915
|
-
nt[e] = (s,
|
|
3914
|
+
} = Jt[e], o = e.toLowerCase();
|
|
3915
|
+
nt[e] = (s, c) => nt(o, s, c, {
|
|
3916
3916
|
EventType: t,
|
|
3917
3917
|
defaultInit: r
|
|
3918
|
-
}), ge[e] = (s,
|
|
3918
|
+
}), ge[e] = (s, c) => ge(s, nt[e](s, c));
|
|
3919
3919
|
});
|
|
3920
3920
|
function Yo(e, t) {
|
|
3921
3921
|
const {
|
|
3922
3922
|
set: r
|
|
3923
|
-
} = Object.getOwnPropertyDescriptor(e, "value") || {},
|
|
3923
|
+
} = Object.getOwnPropertyDescriptor(e, "value") || {}, o = Object.getPrototypeOf(e), {
|
|
3924
3924
|
set: s
|
|
3925
|
-
} = Object.getOwnPropertyDescriptor(
|
|
3925
|
+
} = Object.getOwnPropertyDescriptor(o, "value") || {};
|
|
3926
3926
|
if (s && r !== s)
|
|
3927
3927
|
s.call(e, t);
|
|
3928
3928
|
else if (r)
|
|
@@ -3946,7 +3946,7 @@ function Jo(e) {
|
|
|
3946
3946
|
function Qo(e) {
|
|
3947
3947
|
return "https://testing-playground.com/#markup=" + Jo(e);
|
|
3948
3948
|
}
|
|
3949
|
-
const Xo = (e, t, r) => Array.isArray(e) ? e.forEach((
|
|
3949
|
+
const Xo = (e, t, r) => Array.isArray(e) ? e.forEach((o) => Gt(o, t, r)) : Gt(e, t, r), Zo = function(e) {
|
|
3950
3950
|
if (e === void 0 && (e = Tt().body), !e || !("innerHTML" in e)) {
|
|
3951
3951
|
console.log("The element you're providing isn't a valid DOM element.");
|
|
3952
3952
|
return;
|
|
@@ -3987,16 +3987,16 @@ function ta(e) {
|
|
|
3987
3987
|
const r = We();
|
|
3988
3988
|
ue(!0);
|
|
3989
3989
|
try {
|
|
3990
|
-
let
|
|
3990
|
+
let o = !1;
|
|
3991
3991
|
const s = e(() => {
|
|
3992
|
-
const
|
|
3993
|
-
return
|
|
3992
|
+
const c = t();
|
|
3993
|
+
return c !== null && typeof c == "object" && typeof c.then == "function" && (o = !0), c;
|
|
3994
3994
|
});
|
|
3995
|
-
if (
|
|
3996
|
-
const
|
|
3995
|
+
if (o) {
|
|
3996
|
+
const c = s;
|
|
3997
3997
|
return {
|
|
3998
3998
|
then: (u, p) => {
|
|
3999
|
-
|
|
3999
|
+
c.then((n) => {
|
|
4000
4000
|
ue(r), u(n);
|
|
4001
4001
|
}, (n) => {
|
|
4002
4002
|
ue(r), p(n);
|
|
@@ -4005,44 +4005,28 @@ function ta(e) {
|
|
|
4005
4005
|
};
|
|
4006
4006
|
} else
|
|
4007
4007
|
return ue(r), s;
|
|
4008
|
-
} catch (
|
|
4009
|
-
throw ue(r),
|
|
4008
|
+
} catch (o) {
|
|
4009
|
+
throw ue(r), o;
|
|
4010
4010
|
}
|
|
4011
4011
|
};
|
|
4012
4012
|
}
|
|
4013
|
-
const we = ta(ea), $ =
|
|
4014
|
-
return ge(...arguments);
|
|
4015
|
-
};
|
|
4013
|
+
const we = ta(ea), $ = (...e) => ge(...e);
|
|
4016
4014
|
Object.keys(ge).forEach((e) => {
|
|
4017
|
-
$[e] =
|
|
4018
|
-
return ge[e](...arguments);
|
|
4019
|
-
};
|
|
4015
|
+
$[e] = (...t) => ge[e](...t);
|
|
4020
4016
|
});
|
|
4021
4017
|
const ra = $.mouseEnter, na = $.mouseLeave;
|
|
4022
|
-
$.mouseEnter =
|
|
4023
|
-
|
|
4024
|
-
};
|
|
4025
|
-
$.mouseLeave = function() {
|
|
4026
|
-
return na(...arguments), $.mouseOut(...arguments);
|
|
4027
|
-
};
|
|
4018
|
+
$.mouseEnter = (...e) => (ra(...e), $.mouseOver(...e));
|
|
4019
|
+
$.mouseLeave = (...e) => (na(...e), $.mouseOut(...e));
|
|
4028
4020
|
const ia = $.pointerEnter, oa = $.pointerLeave;
|
|
4029
|
-
$.pointerEnter =
|
|
4030
|
-
|
|
4031
|
-
};
|
|
4032
|
-
$.pointerLeave = function() {
|
|
4033
|
-
return oa(...arguments), $.pointerOut(...arguments);
|
|
4034
|
-
};
|
|
4021
|
+
$.pointerEnter = (...e) => (ia(...e), $.pointerOver(...e));
|
|
4022
|
+
$.pointerLeave = (...e) => (oa(...e), $.pointerOut(...e));
|
|
4035
4023
|
const aa = $.select;
|
|
4036
4024
|
$.select = (e, t) => {
|
|
4037
4025
|
aa(e, t), e.focus(), $.keyUp(e, t);
|
|
4038
4026
|
};
|
|
4039
4027
|
const ua = $.blur, la = $.focus;
|
|
4040
|
-
$.blur =
|
|
4041
|
-
|
|
4042
|
-
};
|
|
4043
|
-
$.focus = function() {
|
|
4044
|
-
return $.focusIn(...arguments), la(...arguments);
|
|
4045
|
-
};
|
|
4028
|
+
$.blur = (...e) => ($.focusOut(...e), ua(...e));
|
|
4029
|
+
$.focus = (...e) => ($.focusIn(...e), la(...e));
|
|
4046
4030
|
let sa = {
|
|
4047
4031
|
reactStrictMode: !1
|
|
4048
4032
|
};
|
|
@@ -4070,9 +4054,9 @@ ci({
|
|
|
4070
4054
|
ue(!1);
|
|
4071
4055
|
try {
|
|
4072
4056
|
const r = await e();
|
|
4073
|
-
return await new Promise((
|
|
4057
|
+
return await new Promise((o) => {
|
|
4074
4058
|
setTimeout(() => {
|
|
4075
|
-
|
|
4059
|
+
o();
|
|
4076
4060
|
}, 0), fa() && jest.advanceTimersByTime(0);
|
|
4077
4061
|
}), r;
|
|
4078
4062
|
} finally {
|
|
@@ -4093,33 +4077,33 @@ function mt(e, t) {
|
|
|
4093
4077
|
function yt(e, t) {
|
|
4094
4078
|
return t ? /* @__PURE__ */ Ie.createElement(t, null, e) : e;
|
|
4095
4079
|
}
|
|
4096
|
-
function da(e,
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
return
|
|
4106
|
-
|
|
4107
|
-
onCaughtError:
|
|
4108
|
-
onRecoverableError:
|
|
4080
|
+
function da(e, {
|
|
4081
|
+
hydrate: t,
|
|
4082
|
+
onCaughtError: r,
|
|
4083
|
+
onRecoverableError: o,
|
|
4084
|
+
ui: s,
|
|
4085
|
+
wrapper: c,
|
|
4086
|
+
reactStrictMode: u
|
|
4087
|
+
}) {
|
|
4088
|
+
let p;
|
|
4089
|
+
return t ? we(() => {
|
|
4090
|
+
p = It.hydrateRoot(e, mt(yt(s, c), u), {
|
|
4091
|
+
onCaughtError: r,
|
|
4092
|
+
onRecoverableError: o
|
|
4109
4093
|
});
|
|
4110
|
-
}) :
|
|
4111
|
-
onCaughtError:
|
|
4112
|
-
onRecoverableError:
|
|
4094
|
+
}) : p = It.createRoot(e, {
|
|
4095
|
+
onCaughtError: r,
|
|
4096
|
+
onRecoverableError: o
|
|
4113
4097
|
}), {
|
|
4114
4098
|
hydrate() {
|
|
4115
|
-
if (!
|
|
4099
|
+
if (!t)
|
|
4116
4100
|
throw new Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.");
|
|
4117
4101
|
},
|
|
4118
|
-
render(
|
|
4119
|
-
|
|
4102
|
+
render(n) {
|
|
4103
|
+
p.render(n);
|
|
4120
4104
|
},
|
|
4121
4105
|
unmount() {
|
|
4122
|
-
|
|
4106
|
+
p.unmount();
|
|
4123
4107
|
}
|
|
4124
4108
|
};
|
|
4125
4109
|
}
|
|
@@ -4136,107 +4120,102 @@ function pa(e) {
|
|
|
4136
4120
|
}
|
|
4137
4121
|
};
|
|
4138
4122
|
}
|
|
4139
|
-
function Nr(e,
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
} = t;
|
|
4123
|
+
function Nr(e, {
|
|
4124
|
+
baseElement: t,
|
|
4125
|
+
container: r,
|
|
4126
|
+
hydrate: o,
|
|
4127
|
+
queries: s,
|
|
4128
|
+
root: c,
|
|
4129
|
+
wrapper: u,
|
|
4130
|
+
reactStrictMode: p
|
|
4131
|
+
}) {
|
|
4149
4132
|
return we(() => {
|
|
4150
|
-
|
|
4133
|
+
o ? c.hydrate(mt(yt(e, u), p), r) : c.render(mt(yt(e, u), p), r);
|
|
4151
4134
|
}), {
|
|
4152
|
-
container:
|
|
4153
|
-
baseElement:
|
|
4154
|
-
debug:
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
);
|
|
4162
|
-
},
|
|
4135
|
+
container: r,
|
|
4136
|
+
baseElement: t,
|
|
4137
|
+
debug: (n = t, a, l) => Array.isArray(n) ? (
|
|
4138
|
+
// eslint-disable-next-line no-console
|
|
4139
|
+
n.forEach((i) => console.log(Te(i, a, l)))
|
|
4140
|
+
) : (
|
|
4141
|
+
// eslint-disable-next-line no-console,
|
|
4142
|
+
console.log(Te(n, a, l))
|
|
4143
|
+
),
|
|
4163
4144
|
unmount: () => {
|
|
4164
4145
|
we(() => {
|
|
4165
|
-
|
|
4146
|
+
c.unmount();
|
|
4166
4147
|
});
|
|
4167
4148
|
},
|
|
4168
|
-
rerender: (
|
|
4169
|
-
Nr(
|
|
4170
|
-
container:
|
|
4171
|
-
baseElement:
|
|
4172
|
-
root:
|
|
4173
|
-
wrapper:
|
|
4174
|
-
reactStrictMode:
|
|
4149
|
+
rerender: (n) => {
|
|
4150
|
+
Nr(n, {
|
|
4151
|
+
container: r,
|
|
4152
|
+
baseElement: t,
|
|
4153
|
+
root: c,
|
|
4154
|
+
wrapper: u,
|
|
4155
|
+
reactStrictMode: p
|
|
4175
4156
|
});
|
|
4176
4157
|
},
|
|
4177
4158
|
asFragment: () => {
|
|
4178
4159
|
if (typeof document.createRange == "function")
|
|
4179
|
-
return document.createRange().createContextualFragment(
|
|
4160
|
+
return document.createRange().createContextualFragment(r.innerHTML);
|
|
4180
4161
|
{
|
|
4181
|
-
const
|
|
4182
|
-
return
|
|
4162
|
+
const n = document.createElement("template");
|
|
4163
|
+
return n.innerHTML = r.innerHTML, n.content;
|
|
4183
4164
|
}
|
|
4184
4165
|
},
|
|
4185
|
-
...Rr(
|
|
4166
|
+
...Rr(t, s)
|
|
4186
4167
|
};
|
|
4187
4168
|
}
|
|
4188
|
-
function ba(e,
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
if (u !== void 0)
|
|
4169
|
+
function ba(e, {
|
|
4170
|
+
container: t,
|
|
4171
|
+
baseElement: r = t,
|
|
4172
|
+
legacyRoot: o = !1,
|
|
4173
|
+
onCaughtError: s,
|
|
4174
|
+
onUncaughtError: c,
|
|
4175
|
+
onRecoverableError: u,
|
|
4176
|
+
queries: p,
|
|
4177
|
+
hydrate: n = !1,
|
|
4178
|
+
wrapper: a,
|
|
4179
|
+
reactStrictMode: l
|
|
4180
|
+
} = {}) {
|
|
4181
|
+
if (c !== void 0)
|
|
4202
4182
|
throw new Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");
|
|
4203
|
-
if (
|
|
4204
|
-
const
|
|
4205
|
-
throw Error.captureStackTrace(
|
|
4183
|
+
if (o && typeof je.render != "function") {
|
|
4184
|
+
const d = 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.");
|
|
4185
|
+
throw Error.captureStackTrace(d, ba), d;
|
|
4206
4186
|
}
|
|
4207
|
-
|
|
4208
|
-
let
|
|
4209
|
-
return bt.has(
|
|
4210
|
-
|
|
4211
|
-
}) : (
|
|
4212
|
-
hydrate:
|
|
4213
|
-
onCaughtError:
|
|
4214
|
-
onRecoverableError:
|
|
4187
|
+
r || (r = document.body), t || (t = r.appendChild(document.createElement("div")));
|
|
4188
|
+
let i;
|
|
4189
|
+
return bt.has(t) ? Ve.forEach((d) => {
|
|
4190
|
+
d.container === t && (i = d.root);
|
|
4191
|
+
}) : (i = (o ? pa : da)(t, {
|
|
4192
|
+
hydrate: n,
|
|
4193
|
+
onCaughtError: s,
|
|
4194
|
+
onRecoverableError: u,
|
|
4215
4195
|
ui: e,
|
|
4216
|
-
wrapper:
|
|
4217
|
-
reactStrictMode:
|
|
4196
|
+
wrapper: a,
|
|
4197
|
+
reactStrictMode: l
|
|
4218
4198
|
}), Ve.push({
|
|
4219
|
-
container:
|
|
4220
|
-
root:
|
|
4221
|
-
}), bt.add(
|
|
4222
|
-
container:
|
|
4223
|
-
baseElement:
|
|
4224
|
-
queries:
|
|
4225
|
-
hydrate:
|
|
4226
|
-
wrapper:
|
|
4227
|
-
root:
|
|
4228
|
-
reactStrictMode:
|
|
4199
|
+
container: t,
|
|
4200
|
+
root: i
|
|
4201
|
+
}), bt.add(t)), Nr(e, {
|
|
4202
|
+
container: t,
|
|
4203
|
+
baseElement: r,
|
|
4204
|
+
queries: p,
|
|
4205
|
+
hydrate: n,
|
|
4206
|
+
wrapper: a,
|
|
4207
|
+
root: i,
|
|
4208
|
+
reactStrictMode: l
|
|
4229
4209
|
});
|
|
4230
4210
|
}
|
|
4231
4211
|
function Zt() {
|
|
4232
|
-
Ve.forEach((
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
} = e;
|
|
4212
|
+
Ve.forEach(({
|
|
4213
|
+
root: e,
|
|
4214
|
+
container: t
|
|
4215
|
+
}) => {
|
|
4237
4216
|
we(() => {
|
|
4238
|
-
|
|
4239
|
-
}),
|
|
4217
|
+
e.unmount();
|
|
4218
|
+
}), t.parentNode === document.body && document.body.removeChild(t);
|
|
4240
4219
|
}), Ve.length = 0, bt.clear();
|
|
4241
4220
|
}
|
|
4242
4221
|
if ((typeof process > "u" || !process.env?.RTL_SKIP_AUTO_CLEANUP) && (typeof afterEach == "function" ? afterEach(() => {
|
|
@@ -4256,6 +4235,6 @@ export {
|
|
|
4256
4235
|
j as g,
|
|
4257
4236
|
ba as r,
|
|
4258
4237
|
va as s,
|
|
4259
|
-
|
|
4238
|
+
Ci as w
|
|
4260
4239
|
};
|
|
4261
|
-
//# sourceMappingURL=react.esm-
|
|
4240
|
+
//# sourceMappingURL=react.esm-BpII5CMY.js.map
|