twd-js 1.0.1 → 1.0.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/constants/version.d.ts +1 -1
- package/dist/index.cjs.js +21 -21
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +345 -351
- package/dist/mock-sw.js +11 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { handlers as
|
|
2
|
-
import dm, { useState as
|
|
1
|
+
import { handlers as aa, TestRunner as cm } from "./runner.es.js";
|
|
2
|
+
import dm, { useState as Xa, useEffect as fm } from "react";
|
|
3
3
|
const pm = (e, t = 2e3, r = 50) => new Promise((n, o) => {
|
|
4
4
|
const a = Date.now(), i = () => {
|
|
5
5
|
const s = e();
|
|
@@ -16,7 +16,7 @@ const pm = (e, t = 2e3, r = 50) => new Promise((n, o) => {
|
|
|
16
16
|
setTimeout(i, r);
|
|
17
17
|
};
|
|
18
18
|
i();
|
|
19
|
-
}), Po = (e) => new Promise((t) => setTimeout(t, e)),
|
|
19
|
+
}), Po = (e) => new Promise((t) => setTimeout(t, e)), Ja = (e, t, r, n) => {
|
|
20
20
|
if (!e && !t)
|
|
21
21
|
throw new Error(n);
|
|
22
22
|
if (e && t)
|
|
@@ -203,37 +203,30 @@ const bm = {
|
|
|
203
203
|
default:
|
|
204
204
|
throw new Error(`Unknown assertion: ${o}`);
|
|
205
205
|
}
|
|
206
|
-
return
|
|
206
|
+
return Ja(
|
|
207
207
|
l,
|
|
208
208
|
n,
|
|
209
209
|
i[s].pass(r),
|
|
210
210
|
i[s].fail(r, u)
|
|
211
211
|
);
|
|
212
212
|
}, st = (e) => {
|
|
213
|
-
const t =
|
|
213
|
+
const t = aa.size ? Array.from(aa.values()).find((r) => r.status === "running") : null;
|
|
214
214
|
t && t.logs?.push(e);
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}), navigator.serviceWorker.addEventListener("message", (r) => {
|
|
225
|
-
if (r.data?.type === "EXECUTED") {
|
|
226
|
-
console.log(r);
|
|
227
|
-
const { alias: n, request: o } = r.data, a = lt.find((i) => i.alias === n);
|
|
228
|
-
a && (a.executed = !0, a.request = o);
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
}
|
|
215
|
+
}, _i = "1.0.2", lt = [], Ed = 100, vm = async () => {
|
|
216
|
+
"serviceWorker" in navigator && (await navigator.serviceWorker.register(`/mock-sw.js?v=${_i}`), navigator.serviceWorker.controller || await new Promise((e) => {
|
|
217
|
+
navigator.serviceWorker.addEventListener("controllerchange", e, { once: !0 });
|
|
218
|
+
}), navigator.serviceWorker.addEventListener("message", (e) => {
|
|
219
|
+
if (e.data?.type === "EXECUTED") {
|
|
220
|
+
const { alias: t, request: r } = e.data, n = lt.find((o) => o.alias === t);
|
|
221
|
+
n && (n.executed = !0, n.request = r);
|
|
222
|
+
}
|
|
223
|
+
}));
|
|
232
224
|
}, ym = async (e, t) => {
|
|
233
225
|
const r = { alias: e, ...t, executed: !1 }, n = lt.findIndex((o) => o.alias === e);
|
|
234
226
|
n !== -1 ? lt[n] = r : lt.push(r), navigator.serviceWorker.controller?.postMessage({
|
|
235
227
|
type: "ADD_RULE",
|
|
236
|
-
rule: r
|
|
228
|
+
rule: r,
|
|
229
|
+
version: _i
|
|
237
230
|
}), await Po(Ed), await Promise.resolve();
|
|
238
231
|
}, gm = async (e) => await Promise.all(
|
|
239
232
|
e.map((r) => Cd(r))
|
|
@@ -244,20 +237,21 @@ const bm = {
|
|
|
244
237
|
return Promise.resolve(t);
|
|
245
238
|
}, Rm = () => lt, wm = () => {
|
|
246
239
|
navigator.serviceWorker.controller?.postMessage({
|
|
247
|
-
type: "CLEAR_RULES"
|
|
240
|
+
type: "CLEAR_RULES",
|
|
241
|
+
version: _i
|
|
248
242
|
}), lt.length = 0;
|
|
249
243
|
}, Em = (e, t) => {
|
|
250
244
|
const r = e.startsWith("not.");
|
|
251
245
|
switch (r ? e.slice(4) : e) {
|
|
252
246
|
case "eq":
|
|
253
|
-
return
|
|
247
|
+
return Ja(
|
|
254
248
|
window.location.href === t,
|
|
255
249
|
r,
|
|
256
250
|
`Assertion passed: URL is ${t}`,
|
|
257
251
|
`Assertion failed: Expected URL to be ${t}, but got ${window.location.href}`
|
|
258
252
|
);
|
|
259
253
|
case "contain.url":
|
|
260
|
-
return
|
|
254
|
+
return Ja(
|
|
261
255
|
window.location.href.includes(t),
|
|
262
256
|
r,
|
|
263
257
|
`Assertion passed: URL contains ${t}`,
|
|
@@ -325,31 +319,31 @@ const bm = {
|
|
|
325
319
|
var qi = Object.defineProperty, Pm = (e, t, r) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, x = (e, t) => qi(e, "name", { value: t, configurable: !0 }), Pi = (e, t) => {
|
|
326
320
|
for (var r in t)
|
|
327
321
|
qi(e, r, { get: t[r], enumerable: !0 });
|
|
328
|
-
}, xd = (e, t, r) => Pm(e, typeof t != "symbol" ? t + "" : t, r),
|
|
329
|
-
Pi(
|
|
322
|
+
}, xd = (e, t, r) => Pm(e, typeof t != "symbol" ? t + "" : t, r), ia = {};
|
|
323
|
+
Pi(ia, {
|
|
330
324
|
addChainableMethod: () => Li,
|
|
331
325
|
addLengthGuard: () => Do,
|
|
332
326
|
addMethod: () => ji,
|
|
333
327
|
addProperty: () => Di,
|
|
334
328
|
checkError: () => Re,
|
|
335
|
-
compareByInspect: () =>
|
|
329
|
+
compareByInspect: () => ua,
|
|
336
330
|
eql: () => Zd,
|
|
337
|
-
events: () =>
|
|
331
|
+
events: () => qa,
|
|
338
332
|
expectTypes: () => Id,
|
|
339
333
|
flag: () => V,
|
|
340
|
-
getActual: () =>
|
|
334
|
+
getActual: () => xa,
|
|
341
335
|
getMessage: () => Ai,
|
|
342
|
-
getName: () =>
|
|
336
|
+
getName: () => Pa,
|
|
343
337
|
getOperator: () => Vi,
|
|
344
338
|
getOwnEnumerableProperties: () => zi,
|
|
345
339
|
getOwnEnumerablePropertySymbols: () => Ui,
|
|
346
340
|
getPathInfo: () => Ni,
|
|
347
|
-
hasProperty: () =>
|
|
341
|
+
hasProperty: () => _a,
|
|
348
342
|
inspect: () => K,
|
|
349
|
-
isNaN: () =>
|
|
343
|
+
isNaN: () => ca,
|
|
350
344
|
isNumeric: () => ue,
|
|
351
345
|
isProxyEnabled: () => ko,
|
|
352
|
-
isRegExp: () =>
|
|
346
|
+
isRegExp: () => da,
|
|
353
347
|
objDisplay: () => ut,
|
|
354
348
|
overwriteChainableMethod: () => Fi,
|
|
355
349
|
overwriteMethod: () => Bi,
|
|
@@ -367,20 +361,20 @@ Pi(Re, {
|
|
|
367
361
|
getConstructorName: () => Sd,
|
|
368
362
|
getMessage: () => Ad
|
|
369
363
|
});
|
|
370
|
-
function
|
|
364
|
+
function Ca(e) {
|
|
371
365
|
return e instanceof Error || Object.prototype.toString.call(e) === "[object Error]";
|
|
372
366
|
}
|
|
373
|
-
x(
|
|
367
|
+
x(Ca, "isErrorInstance");
|
|
374
368
|
function _d(e) {
|
|
375
369
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
376
370
|
}
|
|
377
371
|
x(_d, "isRegExp");
|
|
378
372
|
function qd(e, t) {
|
|
379
|
-
return
|
|
373
|
+
return Ca(t) && e === t;
|
|
380
374
|
}
|
|
381
375
|
x(qd, "compatibleInstance");
|
|
382
376
|
function Pd(e, t) {
|
|
383
|
-
return
|
|
377
|
+
return Ca(t) ? e.constructor === t.constructor || e instanceof t.constructor : (typeof t == "object" || typeof t == "function") && t.prototype ? e.constructor === t || e instanceof t : !1;
|
|
384
378
|
}
|
|
385
379
|
x(Pd, "compatibleConstructor");
|
|
386
380
|
function Td(e, t) {
|
|
@@ -390,7 +384,7 @@ function Td(e, t) {
|
|
|
390
384
|
x(Td, "compatibleMessage");
|
|
391
385
|
function Sd(e) {
|
|
392
386
|
let t = e;
|
|
393
|
-
return
|
|
387
|
+
return Ca(e) ? t = e.constructor.name : typeof e == "function" && (t = e.name, t === "" && (t = new e().name || t)), t;
|
|
394
388
|
}
|
|
395
389
|
x(Sd, "getConstructorName");
|
|
396
390
|
function Ad(e) {
|
|
@@ -463,10 +457,10 @@ function Id(e, t) {
|
|
|
463
457
|
);
|
|
464
458
|
}
|
|
465
459
|
x(Id, "expectTypes");
|
|
466
|
-
function
|
|
460
|
+
function xa(e, t) {
|
|
467
461
|
return t.length > 4 ? t[4] : e._obj;
|
|
468
462
|
}
|
|
469
|
-
x(
|
|
463
|
+
x(xa, "getActual");
|
|
470
464
|
var Ts = {
|
|
471
465
|
bold: ["1", "22"],
|
|
472
466
|
dim: ["2", "22"],
|
|
@@ -628,11 +622,11 @@ function Bd(e, t) {
|
|
|
628
622
|
return t.stylize(`${o}T${Ge(n[1], t.truncate - o.length - 1)}`, "date");
|
|
629
623
|
}
|
|
630
624
|
x(Bd, "inspectDate");
|
|
631
|
-
function
|
|
625
|
+
function Qa(e, t) {
|
|
632
626
|
const r = e[Symbol.toStringTag] || "Function", n = e.name;
|
|
633
627
|
return n ? t.stylize(`[${r} ${Ge(n, t.truncate - 11)}]`, "special") : t.stylize(`[${r}]`, "special");
|
|
634
628
|
}
|
|
635
|
-
x(
|
|
629
|
+
x(Qa, "inspectFunction");
|
|
636
630
|
function Ld([e, t], r) {
|
|
637
631
|
return r.truncate -= 4, e = r.inspect(e, r), r.truncate -= e.length, t = r.inspect(t, r), `${e} => ${t}`;
|
|
638
632
|
}
|
|
@@ -649,15 +643,15 @@ function Ud(e, t) {
|
|
|
649
643
|
}
|
|
650
644
|
x(Ud, "inspectMap");
|
|
651
645
|
var Om = Number.isNaN || ((e) => e !== e);
|
|
652
|
-
function
|
|
646
|
+
function Za(e, t) {
|
|
653
647
|
return Om(e) ? t.stylize("NaN", "number") : e === 1 / 0 ? t.stylize("Infinity", "number") : e === -1 / 0 ? t.stylize("-Infinity", "number") : e === 0 ? t.stylize(1 / e === 1 / 0 ? "+0" : "-0", "number") : t.stylize(Ge(String(e), t.truncate), "number");
|
|
654
648
|
}
|
|
655
|
-
x(
|
|
656
|
-
function
|
|
649
|
+
x(Za, "inspectNumber");
|
|
650
|
+
function ei(e, t) {
|
|
657
651
|
let r = Ge(e.toString(), t.truncate - 1);
|
|
658
652
|
return r !== gt && (r += "n"), t.stylize(r, "bigint");
|
|
659
653
|
}
|
|
660
|
-
x(
|
|
654
|
+
x(ei, "inspectBigInt");
|
|
661
655
|
function zd(e, t) {
|
|
662
656
|
const r = e.toString().split("/")[2], n = t.truncate - (2 + r.length), o = e.source;
|
|
663
657
|
return t.stylize(`/${Ge(o, n)}/${r}`, "regexp");
|
|
@@ -687,14 +681,14 @@ function Wd(e) {
|
|
|
687
681
|
return Mm[e] || `\\u${`0000${e.charCodeAt(0).toString(Im)}`.slice(-4)}`;
|
|
688
682
|
}
|
|
689
683
|
x(Wd, "escape");
|
|
690
|
-
function
|
|
684
|
+
function ti(e, t) {
|
|
691
685
|
return Ss.test(e) && (e = e.replace(Ss, Wd)), t.stylize(`'${Ge(e, t.truncate - 2)}'`, "string");
|
|
692
686
|
}
|
|
693
|
-
x(
|
|
694
|
-
function
|
|
687
|
+
x(ti, "inspectString");
|
|
688
|
+
function ri(e) {
|
|
695
689
|
return "description" in Symbol.prototype ? e.description ? `Symbol(${e.description})` : "Symbol()" : e.toString();
|
|
696
690
|
}
|
|
697
|
-
x(
|
|
691
|
+
x(ri, "inspectSymbol");
|
|
698
692
|
var Nm = /* @__PURE__ */ x(() => "Promise{…}", "getPromiseValue"), km = Nm;
|
|
699
693
|
function xo(e, t) {
|
|
700
694
|
const r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) : [];
|
|
@@ -709,10 +703,10 @@ function xo(e, t) {
|
|
|
709
703
|
return o && a && (i = ", "), `{ ${o}${i}${a} }`;
|
|
710
704
|
}
|
|
711
705
|
x(xo, "inspectObject");
|
|
712
|
-
var
|
|
706
|
+
var $a = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
|
|
713
707
|
function Gd(e, t) {
|
|
714
708
|
let r = "";
|
|
715
|
-
return
|
|
709
|
+
return $a && $a in e && (r = e[$a]), r = r || e.constructor.name, (!r || r === "_class") && (r = "<Anonymous Class>"), t.truncate -= r.length, `${r}${xo(e, t)}`;
|
|
716
710
|
}
|
|
717
711
|
x(Gd, "inspectClass");
|
|
718
712
|
function Kd(e, t) {
|
|
@@ -747,11 +741,11 @@ function Xd([e, t], r) {
|
|
|
747
741
|
return r.truncate -= 3, t ? `${r.stylize(String(e), "yellow")}=${r.stylize(`"${t}"`, "string")}` : `${r.stylize(String(e), "yellow")}`;
|
|
748
742
|
}
|
|
749
743
|
x(Xd, "inspectAttribute");
|
|
750
|
-
function
|
|
744
|
+
function sa(e, t) {
|
|
751
745
|
return Ce(e, t, Jd, `
|
|
752
746
|
`);
|
|
753
747
|
}
|
|
754
|
-
x(
|
|
748
|
+
x(sa, "inspectNodeCollection");
|
|
755
749
|
function Jd(e, t) {
|
|
756
750
|
switch (e.nodeType) {
|
|
757
751
|
case 1:
|
|
@@ -769,26 +763,26 @@ function Si(e, t) {
|
|
|
769
763
|
let s = "";
|
|
770
764
|
r.length > 0 && (s += " ", s += Ce(r.map((c) => [c, e.getAttribute(c)]), t, Xd, " ")), t.truncate -= s.length;
|
|
771
765
|
const l = t.truncate;
|
|
772
|
-
let u =
|
|
766
|
+
let u = sa(e.children, t);
|
|
773
767
|
return u && u.length > l && (u = `${gt}(${e.children.length})`), `${o}${s}${a}${u}${i}`;
|
|
774
768
|
}
|
|
775
769
|
x(Si, "inspectHTML");
|
|
776
|
-
var jm = typeof Symbol == "function" && typeof Symbol.for == "function",
|
|
770
|
+
var jm = typeof Symbol == "function" && typeof Symbol.for == "function", Ba = jm ? Symbol.for("chai/inspect") : "@@chai/inspect", La = Symbol.for("nodejs.util.inspect.custom"), As = /* @__PURE__ */ new WeakMap(), Os = {}, Ms = {
|
|
777
771
|
undefined: /* @__PURE__ */ x((e, t) => t.stylize("undefined", "undefined"), "undefined"),
|
|
778
772
|
null: /* @__PURE__ */ x((e, t) => t.stylize("null", "null"), "null"),
|
|
779
773
|
boolean: /* @__PURE__ */ x((e, t) => t.stylize(String(e), "boolean"), "boolean"),
|
|
780
774
|
Boolean: /* @__PURE__ */ x((e, t) => t.stylize(String(e), "boolean"), "Boolean"),
|
|
781
|
-
number:
|
|
782
|
-
Number:
|
|
783
|
-
bigint:
|
|
784
|
-
BigInt:
|
|
785
|
-
string:
|
|
786
|
-
String:
|
|
787
|
-
function:
|
|
788
|
-
Function:
|
|
789
|
-
symbol:
|
|
775
|
+
number: Za,
|
|
776
|
+
Number: Za,
|
|
777
|
+
bigint: ei,
|
|
778
|
+
BigInt: ei,
|
|
779
|
+
string: ti,
|
|
780
|
+
String: ti,
|
|
781
|
+
function: Qa,
|
|
782
|
+
Function: Qa,
|
|
783
|
+
symbol: ri,
|
|
790
784
|
// A Symbol polyfill will return `Symbol` not `symbol` from typedetect
|
|
791
|
-
Symbol:
|
|
785
|
+
Symbol: ri,
|
|
792
786
|
Array: $d,
|
|
793
787
|
Date: Bd,
|
|
794
788
|
Map: Ud,
|
|
@@ -812,9 +806,9 @@ var jm = typeof Symbol == "function" && typeof Symbol.for == "function", La = jm
|
|
|
812
806
|
DataView: /* @__PURE__ */ x(() => "", "DataView"),
|
|
813
807
|
ArrayBuffer: /* @__PURE__ */ x(() => "", "ArrayBuffer"),
|
|
814
808
|
Error: Yd,
|
|
815
|
-
HTMLCollection:
|
|
816
|
-
NodeList:
|
|
817
|
-
}, $m = /* @__PURE__ */ x((e, t, r, n) =>
|
|
809
|
+
HTMLCollection: sa,
|
|
810
|
+
NodeList: sa
|
|
811
|
+
}, $m = /* @__PURE__ */ x((e, t, r, n) => Ba in e && typeof e[Ba] == "function" ? e[Ba](t) : La in e && typeof e[La] == "function" ? e[La](t.depth, t, n) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && As.has(e.constructor) ? As.get(e.constructor)(e, t) : Os[r] ? Os[r](e, t) : "", "inspectCustom"), Bm = Object.prototype.toString;
|
|
818
812
|
function _o(e, t = {}) {
|
|
819
813
|
const r = kd(t, _o), { customInspect: n } = r;
|
|
820
814
|
let o = e === null ? "null" : typeof e;
|
|
@@ -963,7 +957,7 @@ function ut(e) {
|
|
|
963
957
|
}
|
|
964
958
|
x(ut, "objDisplay");
|
|
965
959
|
function Ai(e, t) {
|
|
966
|
-
let r = V(e, "negate"), n = V(e, "object"), o = t[3], a =
|
|
960
|
+
let r = V(e, "negate"), n = V(e, "object"), o = t[3], a = xa(e, t), i = r ? t[2] : t[1], s = V(e, "message");
|
|
967
961
|
return typeof i == "function" && (i = i()), i = i || "", i = i.replace(/#\{this\}/g, function() {
|
|
968
962
|
return ut(n);
|
|
969
963
|
}).replace(/#\{act\}/g, function() {
|
|
@@ -980,7 +974,7 @@ function Pe(e, t, r) {
|
|
|
980
974
|
(r || o !== "object" && o !== "ssfi" && o !== "lockSsfi" && o != "message") && (t.__flags[o] = n[o]);
|
|
981
975
|
}
|
|
982
976
|
x(Pe, "transferFlags");
|
|
983
|
-
function
|
|
977
|
+
function ni(e) {
|
|
984
978
|
if (typeof e > "u")
|
|
985
979
|
return "undefined";
|
|
986
980
|
if (e === null)
|
|
@@ -988,7 +982,7 @@ function oi(e) {
|
|
|
988
982
|
const t = e[Symbol.toStringTag];
|
|
989
983
|
return typeof t == "string" ? t : Object.prototype.toString.call(e).slice(8, -1);
|
|
990
984
|
}
|
|
991
|
-
x(
|
|
985
|
+
x(ni, "type");
|
|
992
986
|
function Oi() {
|
|
993
987
|
this._key = "chai/deep-eql__" + Math.random() + Date.now();
|
|
994
988
|
}
|
|
@@ -1005,7 +999,7 @@ Oi.prototype = {
|
|
|
1005
999
|
}, "set")
|
|
1006
1000
|
};
|
|
1007
1001
|
var Qd = typeof WeakMap == "function" ? WeakMap : Oi;
|
|
1008
|
-
function
|
|
1002
|
+
function oi(e, t, r) {
|
|
1009
1003
|
if (!r || ct(e) || ct(t))
|
|
1010
1004
|
return null;
|
|
1011
1005
|
var n = r.get(e);
|
|
@@ -1016,7 +1010,7 @@ function ai(e, t, r) {
|
|
|
1016
1010
|
}
|
|
1017
1011
|
return null;
|
|
1018
1012
|
}
|
|
1019
|
-
x(
|
|
1013
|
+
x(oi, "memoizeCompare");
|
|
1020
1014
|
function Ro(e, t, r, n) {
|
|
1021
1015
|
if (!(!r || ct(e) || ct(t))) {
|
|
1022
1016
|
var o = r.get(e);
|
|
@@ -1027,9 +1021,9 @@ x(Ro, "memoizeSet");
|
|
|
1027
1021
|
var Zd = No;
|
|
1028
1022
|
function No(e, t, r) {
|
|
1029
1023
|
if (r && r.comparator)
|
|
1030
|
-
return
|
|
1024
|
+
return ai(e, t, r);
|
|
1031
1025
|
var n = Mi(e, t);
|
|
1032
|
-
return n !== null ? n :
|
|
1026
|
+
return n !== null ? n : ai(e, t, r);
|
|
1033
1027
|
}
|
|
1034
1028
|
x(No, "deepEqual");
|
|
1035
1029
|
function Mi(e, t) {
|
|
@@ -1037,12 +1031,12 @@ function Mi(e, t) {
|
|
|
1037
1031
|
t !== t ? !0 : ct(e) || ct(t) ? !1 : null;
|
|
1038
1032
|
}
|
|
1039
1033
|
x(Mi, "simpleEqual");
|
|
1040
|
-
function
|
|
1034
|
+
function ai(e, t, r) {
|
|
1041
1035
|
r = r || {}, r.memoize = r.memoize === !1 ? !1 : r.memoize || new Qd();
|
|
1042
|
-
var n = r && r.comparator, o =
|
|
1036
|
+
var n = r && r.comparator, o = oi(e, t, r.memoize);
|
|
1043
1037
|
if (o !== null)
|
|
1044
1038
|
return o;
|
|
1045
|
-
var a =
|
|
1039
|
+
var a = oi(t, e, r.memoize);
|
|
1046
1040
|
if (a !== null)
|
|
1047
1041
|
return a;
|
|
1048
1042
|
if (n) {
|
|
@@ -1053,14 +1047,14 @@ function ii(e, t, r) {
|
|
|
1053
1047
|
if (s !== null)
|
|
1054
1048
|
return s;
|
|
1055
1049
|
}
|
|
1056
|
-
var l =
|
|
1057
|
-
if (l !==
|
|
1050
|
+
var l = ni(e);
|
|
1051
|
+
if (l !== ni(t))
|
|
1058
1052
|
return Ro(e, t, r.memoize, !1), !1;
|
|
1059
1053
|
Ro(e, t, r.memoize, !0);
|
|
1060
1054
|
var u = ef(e, t, l, r);
|
|
1061
1055
|
return Ro(e, t, r.memoize, u), u;
|
|
1062
1056
|
}
|
|
1063
|
-
x(
|
|
1057
|
+
x(ai, "extensiveDeepEqual");
|
|
1064
1058
|
function ef(e, t, r, n) {
|
|
1065
1059
|
switch (r) {
|
|
1066
1060
|
case "String":
|
|
@@ -1097,9 +1091,9 @@ function ef(e, t, r, n) {
|
|
|
1097
1091
|
case "ArrayBuffer":
|
|
1098
1092
|
return Ze(new Uint8Array(e), new Uint8Array(t), n);
|
|
1099
1093
|
case "Set":
|
|
1100
|
-
return
|
|
1094
|
+
return ii(e, t, n);
|
|
1101
1095
|
case "Map":
|
|
1102
|
-
return
|
|
1096
|
+
return ii(e, t, n);
|
|
1103
1097
|
case "Temporal.PlainDate":
|
|
1104
1098
|
case "Temporal.PlainTime":
|
|
1105
1099
|
case "Temporal.PlainDateTime":
|
|
@@ -1122,7 +1116,7 @@ function tf(e, t) {
|
|
|
1122
1116
|
return e.toString() === t.toString();
|
|
1123
1117
|
}
|
|
1124
1118
|
x(tf, "regexpEqual");
|
|
1125
|
-
function
|
|
1119
|
+
function ii(e, t, r) {
|
|
1126
1120
|
try {
|
|
1127
1121
|
if (e.size !== t.size)
|
|
1128
1122
|
return !1;
|
|
@@ -1138,7 +1132,7 @@ function si(e, t, r) {
|
|
|
1138
1132
|
o.push([i, s]);
|
|
1139
1133
|
}, "gatherEntries")), Ze(n.sort(), o.sort(), r);
|
|
1140
1134
|
}
|
|
1141
|
-
x(
|
|
1135
|
+
x(ii, "entriesEqual");
|
|
1142
1136
|
function Ze(e, t, r) {
|
|
1143
1137
|
var n = e.length;
|
|
1144
1138
|
if (n !== t.length)
|
|
@@ -1152,44 +1146,44 @@ function Ze(e, t, r) {
|
|
|
1152
1146
|
}
|
|
1153
1147
|
x(Ze, "iterableEqual");
|
|
1154
1148
|
function rf(e, t, r) {
|
|
1155
|
-
return Ze(
|
|
1149
|
+
return Ze(la(e), la(t), r);
|
|
1156
1150
|
}
|
|
1157
1151
|
x(rf, "generatorEqual");
|
|
1158
1152
|
function nf(e) {
|
|
1159
1153
|
return typeof Symbol < "u" && typeof e == "object" && typeof Symbol.iterator < "u" && typeof e[Symbol.iterator] == "function";
|
|
1160
1154
|
}
|
|
1161
1155
|
x(nf, "hasIteratorFunction");
|
|
1162
|
-
function
|
|
1156
|
+
function si(e) {
|
|
1163
1157
|
if (nf(e))
|
|
1164
1158
|
try {
|
|
1165
|
-
return
|
|
1159
|
+
return la(e[Symbol.iterator]());
|
|
1166
1160
|
} catch {
|
|
1167
1161
|
return [];
|
|
1168
1162
|
}
|
|
1169
1163
|
return [];
|
|
1170
1164
|
}
|
|
1171
|
-
x(
|
|
1172
|
-
function
|
|
1165
|
+
x(si, "getIteratorEntries");
|
|
1166
|
+
function la(e) {
|
|
1173
1167
|
for (var t = e.next(), r = [t.value]; t.done === !1; )
|
|
1174
1168
|
t = e.next(), r.push(t.value);
|
|
1175
1169
|
return r;
|
|
1176
1170
|
}
|
|
1177
|
-
x(
|
|
1178
|
-
function
|
|
1171
|
+
x(la, "getGeneratorEntries");
|
|
1172
|
+
function li(e) {
|
|
1179
1173
|
var t = [];
|
|
1180
1174
|
for (var r in e)
|
|
1181
1175
|
t.push(r);
|
|
1182
1176
|
return t;
|
|
1183
1177
|
}
|
|
1184
|
-
x(
|
|
1185
|
-
function
|
|
1178
|
+
x(li, "getEnumerableKeys");
|
|
1179
|
+
function ui(e) {
|
|
1186
1180
|
for (var t = [], r = Object.getOwnPropertySymbols(e), n = 0; n < r.length; n += 1) {
|
|
1187
1181
|
var o = r[n];
|
|
1188
1182
|
Object.getOwnPropertyDescriptor(e, o).enumerable && t.push(o);
|
|
1189
1183
|
}
|
|
1190
1184
|
return t;
|
|
1191
1185
|
}
|
|
1192
|
-
x(
|
|
1186
|
+
x(ui, "getEnumerableSymbols");
|
|
1193
1187
|
function Ii(e, t, r, n) {
|
|
1194
1188
|
var o = r.length;
|
|
1195
1189
|
if (o === 0)
|
|
@@ -1201,10 +1195,10 @@ function Ii(e, t, r, n) {
|
|
|
1201
1195
|
}
|
|
1202
1196
|
x(Ii, "keysEqual");
|
|
1203
1197
|
function of(e, t, r) {
|
|
1204
|
-
var n =
|
|
1198
|
+
var n = li(e), o = li(t), a = ui(e), i = ui(t);
|
|
1205
1199
|
if (n = n.concat(a), o = o.concat(i), n.length && n.length === o.length)
|
|
1206
|
-
return Ze(
|
|
1207
|
-
var s =
|
|
1200
|
+
return Ze(ci(n).sort(), ci(o).sort()) === !1 ? !1 : Ii(e, t, n, r);
|
|
1201
|
+
var s = si(e), l = si(t);
|
|
1208
1202
|
return s.length && s.length === l.length ? (s.sort(), l.sort(), Ze(s, l, r)) : n.length === 0 && s.length === 0 && o.length === 0 && l.length === 0;
|
|
1209
1203
|
}
|
|
1210
1204
|
x(of, "objectEqual");
|
|
@@ -1212,16 +1206,16 @@ function ct(e) {
|
|
|
1212
1206
|
return e === null || typeof e != "object";
|
|
1213
1207
|
}
|
|
1214
1208
|
x(ct, "isPrimitive");
|
|
1215
|
-
function
|
|
1209
|
+
function ci(e) {
|
|
1216
1210
|
return e.map(/* @__PURE__ */ x(function(r) {
|
|
1217
1211
|
return typeof r == "symbol" ? r.toString() : r;
|
|
1218
1212
|
}, "mapSymbol"));
|
|
1219
1213
|
}
|
|
1220
|
-
x(
|
|
1221
|
-
function
|
|
1214
|
+
x(ci, "mapSymbols");
|
|
1215
|
+
function _a(e, t) {
|
|
1222
1216
|
return typeof e > "u" || e === null ? !1 : t in Object(e);
|
|
1223
1217
|
}
|
|
1224
|
-
x(
|
|
1218
|
+
x(_a, "hasProperty");
|
|
1225
1219
|
function af(e) {
|
|
1226
1220
|
return e.replace(/([^\\])\[/g, "$1.[").match(/(\\\.|[^.]+?)+/g).map((n) => {
|
|
1227
1221
|
if (n === "constructor" || n === "__proto__" || n === "prototype")
|
|
@@ -1232,7 +1226,7 @@ function af(e) {
|
|
|
1232
1226
|
});
|
|
1233
1227
|
}
|
|
1234
1228
|
x(af, "parsePath");
|
|
1235
|
-
function
|
|
1229
|
+
function di(e, t, r) {
|
|
1236
1230
|
let n = e, o = null;
|
|
1237
1231
|
r = typeof r > "u" ? t.length : r;
|
|
1238
1232
|
for (let a = 0; a < r; a++) {
|
|
@@ -1241,14 +1235,14 @@ function fi(e, t, r) {
|
|
|
1241
1235
|
}
|
|
1242
1236
|
return o;
|
|
1243
1237
|
}
|
|
1244
|
-
x(
|
|
1238
|
+
x(di, "internalGetPathValue");
|
|
1245
1239
|
function Ni(e, t) {
|
|
1246
1240
|
const r = af(t), n = r[r.length - 1], o = {
|
|
1247
|
-
parent: r.length > 1 ?
|
|
1241
|
+
parent: r.length > 1 ? di(e, r, r.length - 1) : e,
|
|
1248
1242
|
name: n.p || n.i,
|
|
1249
|
-
value:
|
|
1243
|
+
value: di(e, r)
|
|
1250
1244
|
};
|
|
1251
|
-
return o.exists =
|
|
1245
|
+
return o.exists = _a(o.parent, o.name), o;
|
|
1252
1246
|
}
|
|
1253
1247
|
x(Ni, "getPathInfo");
|
|
1254
1248
|
var sf = class lf {
|
|
@@ -1377,7 +1371,7 @@ var sf = class lf {
|
|
|
1377
1371
|
if (i !== !1 && (i = !0), o === void 0 && a === void 0 && (i = !1), fe.showDiff !== !0 && (i = !1), !s) {
|
|
1378
1372
|
r = Ai(this, arguments);
|
|
1379
1373
|
const u = {
|
|
1380
|
-
actual:
|
|
1374
|
+
actual: xa(this, arguments),
|
|
1381
1375
|
expected: o,
|
|
1382
1376
|
showDiff: i
|
|
1383
1377
|
}, c = Vi(this, arguments);
|
|
@@ -1407,7 +1401,7 @@ var sf = class lf {
|
|
|
1407
1401
|
}
|
|
1408
1402
|
};
|
|
1409
1403
|
x(sf, "Assertion");
|
|
1410
|
-
var h = sf,
|
|
1404
|
+
var h = sf, qa = new EventTarget(), uf = class extends Event {
|
|
1411
1405
|
constructor(t, r, n) {
|
|
1412
1406
|
super(t), this.name = String(r), this.fn = n;
|
|
1413
1407
|
}
|
|
@@ -1429,7 +1423,7 @@ function Di(e, t, r) {
|
|
|
1429
1423
|
return Pe(this, a), a;
|
|
1430
1424
|
}, "propertyGetter"),
|
|
1431
1425
|
configurable: !0
|
|
1432
|
-
}),
|
|
1426
|
+
}), qa.dispatchEvent(new ki("addProperty", t, r));
|
|
1433
1427
|
}
|
|
1434
1428
|
x(Di, "addProperty");
|
|
1435
1429
|
var Lm = Object.getOwnPropertyDescriptor(function() {
|
|
@@ -1517,7 +1511,7 @@ function ji(e, t, r) {
|
|
|
1517
1511
|
let a = new h();
|
|
1518
1512
|
return Pe(this, a), a;
|
|
1519
1513
|
}, "methodWrapper");
|
|
1520
|
-
Do(n, t, !1), e[t] = Pt(n, t),
|
|
1514
|
+
Do(n, t, !1), e[t] = Pt(n, t), qa.dispatchEvent(new ki("addMethod", t, r));
|
|
1521
1515
|
}
|
|
1522
1516
|
x(ji, "addMethod");
|
|
1523
1517
|
function $i(e, t, r) {
|
|
@@ -1598,7 +1592,7 @@ function Li(e, t, r, n) {
|
|
|
1598
1592
|
return Pe(this, i), Pt(i);
|
|
1599
1593
|
}, "chainableMethodGetter"),
|
|
1600
1594
|
configurable: !0
|
|
1601
|
-
}),
|
|
1595
|
+
}), qa.dispatchEvent(
|
|
1602
1596
|
new Hm(
|
|
1603
1597
|
"addChainableMethod",
|
|
1604
1598
|
t,
|
|
@@ -1627,10 +1621,10 @@ function Fi(e, t, r, n) {
|
|
|
1627
1621
|
}, "overwritingChainableMethodWrapper");
|
|
1628
1622
|
}
|
|
1629
1623
|
x(Fi, "overwriteChainableMethod");
|
|
1630
|
-
function
|
|
1624
|
+
function ua(e, t) {
|
|
1631
1625
|
return K(e) < K(t) ? -1 : 1;
|
|
1632
1626
|
}
|
|
1633
|
-
x(
|
|
1627
|
+
x(ua, "compareByInspect");
|
|
1634
1628
|
function Ui(e) {
|
|
1635
1629
|
return typeof Object.getOwnPropertySymbols != "function" ? [] : Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1636
1630
|
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
@@ -1641,7 +1635,7 @@ function zi(e) {
|
|
|
1641
1635
|
return Object.keys(e).concat(Ui(e));
|
|
1642
1636
|
}
|
|
1643
1637
|
x(zi, "getOwnEnumerableProperties");
|
|
1644
|
-
var
|
|
1638
|
+
var ca = Number.isNaN;
|
|
1645
1639
|
function pf(e) {
|
|
1646
1640
|
let t = re(e);
|
|
1647
1641
|
return ["Array", "Object", "Function"].indexOf(t) !== -1;
|
|
@@ -1657,19 +1651,19 @@ function Vi(e, t) {
|
|
|
1657
1651
|
return /\snot\s/.test(a) ? i ? "notDeepStrictEqual" : "notStrictEqual" : i ? "deepStrictEqual" : "strictEqual";
|
|
1658
1652
|
}
|
|
1659
1653
|
x(Vi, "getOperator");
|
|
1660
|
-
function
|
|
1654
|
+
function Pa(e) {
|
|
1661
1655
|
return e.name;
|
|
1662
1656
|
}
|
|
1663
|
-
x(
|
|
1664
|
-
function
|
|
1657
|
+
x(Pa, "getName");
|
|
1658
|
+
function da(e) {
|
|
1665
1659
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1666
1660
|
}
|
|
1667
|
-
x(
|
|
1661
|
+
x(da, "isRegExp");
|
|
1668
1662
|
function ue(e) {
|
|
1669
1663
|
return ["Number", "BigInt"].includes(re(e));
|
|
1670
1664
|
}
|
|
1671
1665
|
x(ue, "isNumeric");
|
|
1672
|
-
var { flag: w } =
|
|
1666
|
+
var { flag: w } = ia;
|
|
1673
1667
|
[
|
|
1674
1668
|
"to",
|
|
1675
1669
|
"be",
|
|
@@ -1741,7 +1735,7 @@ x(Hi, "an");
|
|
|
1741
1735
|
h.addChainableMethod("an", Hi);
|
|
1742
1736
|
h.addChainableMethod("a", Hi);
|
|
1743
1737
|
function mf(e, t) {
|
|
1744
|
-
return
|
|
1738
|
+
return ca(e) && ca(t) || e === t;
|
|
1745
1739
|
}
|
|
1746
1740
|
x(mf, "SameValueZero");
|
|
1747
1741
|
function jo() {
|
|
@@ -1876,7 +1870,7 @@ h.addProperty("undefined", function() {
|
|
|
1876
1870
|
});
|
|
1877
1871
|
h.addProperty("NaN", function() {
|
|
1878
1872
|
this.assert(
|
|
1879
|
-
|
|
1873
|
+
ca(w(this, "object")),
|
|
1880
1874
|
"expected #{this} to be NaN",
|
|
1881
1875
|
"expected #{this} not to be NaN"
|
|
1882
1876
|
);
|
|
@@ -1911,7 +1905,7 @@ h.addProperty("empty", function() {
|
|
|
1911
1905
|
t
|
|
1912
1906
|
);
|
|
1913
1907
|
case "function": {
|
|
1914
|
-
const o = r + ".empty was passed a function " +
|
|
1908
|
+
const o = r + ".empty was passed a function " + Pa(e);
|
|
1915
1909
|
throw new J(o.trim(), void 0, t);
|
|
1916
1910
|
}
|
|
1917
1911
|
default:
|
|
@@ -1940,7 +1934,7 @@ function Gi() {
|
|
|
1940
1934
|
x(Gi, "checkArguments");
|
|
1941
1935
|
h.addProperty("arguments", Gi);
|
|
1942
1936
|
h.addProperty("Arguments", Gi);
|
|
1943
|
-
function
|
|
1937
|
+
function Ta(e, t) {
|
|
1944
1938
|
t && w(this, "message", t);
|
|
1945
1939
|
let r = w(this, "object");
|
|
1946
1940
|
if (w(this, "deep")) {
|
|
@@ -1956,10 +1950,10 @@ function Sa(e, t) {
|
|
|
1956
1950
|
!0
|
|
1957
1951
|
);
|
|
1958
1952
|
}
|
|
1959
|
-
x(
|
|
1960
|
-
h.addMethod("equal",
|
|
1961
|
-
h.addMethod("equals",
|
|
1962
|
-
h.addMethod("eq",
|
|
1953
|
+
x(Ta, "assertEqual");
|
|
1954
|
+
h.addMethod("equal", Ta);
|
|
1955
|
+
h.addMethod("equals", Ta);
|
|
1956
|
+
h.addMethod("eq", Ta);
|
|
1963
1957
|
function Ki(e, t) {
|
|
1964
1958
|
t && w(this, "message", t);
|
|
1965
1959
|
let r = w(this, "eql");
|
|
@@ -1975,7 +1969,7 @@ function Ki(e, t) {
|
|
|
1975
1969
|
x(Ki, "assertEql");
|
|
1976
1970
|
h.addMethod("eql", Ki);
|
|
1977
1971
|
h.addMethod("eqls", Ki);
|
|
1978
|
-
function
|
|
1972
|
+
function Sa(e, t) {
|
|
1979
1973
|
t && w(this, "message", t);
|
|
1980
1974
|
let r = w(this, "object"), n = w(this, "doLength"), o = w(this, "message"), a = o ? o + ": " : "", i = w(this, "ssfi"), s = re(r).toLowerCase(), l = re(e).toLowerCase();
|
|
1981
1975
|
if (n && s !== "map" && s !== "set" && new h(r, o, i, !0).to.have.property("length"), !n && s === "date" && l !== "date")
|
|
@@ -2015,11 +2009,11 @@ function Aa(e, t) {
|
|
|
2015
2009
|
e
|
|
2016
2010
|
);
|
|
2017
2011
|
}
|
|
2018
|
-
x(
|
|
2019
|
-
h.addMethod("above",
|
|
2020
|
-
h.addMethod("gt",
|
|
2021
|
-
h.addMethod("greaterThan",
|
|
2022
|
-
function
|
|
2012
|
+
x(Sa, "assertAbove");
|
|
2013
|
+
h.addMethod("above", Sa);
|
|
2014
|
+
h.addMethod("gt", Sa);
|
|
2015
|
+
h.addMethod("greaterThan", Sa);
|
|
2016
|
+
function Aa(e, t) {
|
|
2023
2017
|
t && w(this, "message", t);
|
|
2024
2018
|
let r = w(this, "object"), n = w(this, "doLength"), o = w(this, "message"), a = o ? o + ": " : "", i = w(this, "ssfi"), s = re(r).toLowerCase(), l = re(e).toLowerCase(), u, c = !0;
|
|
2025
2019
|
if (n && s !== "map" && s !== "set" && new h(r, o, i, !0).to.have.property("length"), !n && s === "date" && l !== "date")
|
|
@@ -2050,11 +2044,11 @@ function Oa(e, t) {
|
|
|
2050
2044
|
e
|
|
2051
2045
|
);
|
|
2052
2046
|
}
|
|
2053
|
-
x(
|
|
2054
|
-
h.addMethod("least",
|
|
2055
|
-
h.addMethod("gte",
|
|
2056
|
-
h.addMethod("greaterThanOrEqual",
|
|
2057
|
-
function
|
|
2047
|
+
x(Aa, "assertLeast");
|
|
2048
|
+
h.addMethod("least", Aa);
|
|
2049
|
+
h.addMethod("gte", Aa);
|
|
2050
|
+
h.addMethod("greaterThanOrEqual", Aa);
|
|
2051
|
+
function Oa(e, t) {
|
|
2058
2052
|
t && w(this, "message", t);
|
|
2059
2053
|
let r = w(this, "object"), n = w(this, "doLength"), o = w(this, "message"), a = o ? o + ": " : "", i = w(this, "ssfi"), s = re(r).toLowerCase(), l = re(e).toLowerCase(), u, c = !0;
|
|
2060
2054
|
if (n && s !== "map" && s !== "set" && new h(r, o, i, !0).to.have.property("length"), !n && s === "date" && l !== "date")
|
|
@@ -2085,11 +2079,11 @@ function Ma(e, t) {
|
|
|
2085
2079
|
e
|
|
2086
2080
|
);
|
|
2087
2081
|
}
|
|
2088
|
-
x(
|
|
2089
|
-
h.addMethod("below",
|
|
2090
|
-
h.addMethod("lt",
|
|
2091
|
-
h.addMethod("lessThan",
|
|
2092
|
-
function
|
|
2082
|
+
x(Oa, "assertBelow");
|
|
2083
|
+
h.addMethod("below", Oa);
|
|
2084
|
+
h.addMethod("lt", Oa);
|
|
2085
|
+
h.addMethod("lessThan", Oa);
|
|
2086
|
+
function Ma(e, t) {
|
|
2093
2087
|
t && w(this, "message", t);
|
|
2094
2088
|
let r = w(this, "object"), n = w(this, "doLength"), o = w(this, "message"), a = o ? o + ": " : "", i = w(this, "ssfi"), s = re(r).toLowerCase(), l = re(e).toLowerCase(), u, c = !0;
|
|
2095
2089
|
if (n && s !== "map" && s !== "set" && new h(r, o, i, !0).to.have.property("length"), !n && s === "date" && l !== "date")
|
|
@@ -2120,10 +2114,10 @@ function Ia(e, t) {
|
|
|
2120
2114
|
e
|
|
2121
2115
|
);
|
|
2122
2116
|
}
|
|
2123
|
-
x(
|
|
2124
|
-
h.addMethod("most",
|
|
2125
|
-
h.addMethod("lte",
|
|
2126
|
-
h.addMethod("lessThanOrEqual",
|
|
2117
|
+
x(Ma, "assertMost");
|
|
2118
|
+
h.addMethod("most", Ma);
|
|
2119
|
+
h.addMethod("lte", Ma);
|
|
2120
|
+
h.addMethod("lessThanOrEqual", Ma);
|
|
2127
2121
|
h.addMethod("within", function(e, t, r) {
|
|
2128
2122
|
r && w(this, "message", r);
|
|
2129
2123
|
let n = w(this, "object"), o = w(this, "doLength"), a = w(this, "message"), i = a ? a + ": " : "", s = w(this, "ssfi"), l = re(n).toLowerCase(), u = re(e).toLowerCase(), c = re(t).toLowerCase(), f, d = !0, b = u === "date" && c === "date" ? e.toISOString() + ".." + t.toISOString() : e + ".." + t;
|
|
@@ -2164,7 +2158,7 @@ function Yi(e, t) {
|
|
|
2164
2158
|
n
|
|
2165
2159
|
)) : s;
|
|
2166
2160
|
}
|
|
2167
|
-
let i =
|
|
2161
|
+
let i = Pa(e);
|
|
2168
2162
|
i == null && (i = "an unnamed constructor"), this.assert(
|
|
2169
2163
|
a,
|
|
2170
2164
|
"expected #{this} to be an instance of " + i,
|
|
@@ -2205,7 +2199,7 @@ function Xi(e, t, r) {
|
|
|
2205
2199
|
let u = w(this, "deep"), c = w(this, "negate"), f = n ? Ni(i, e) : null, d = n ? f.value : i[e], b = u ? w(this, "eql") : (S, p) => S === p, v = "";
|
|
2206
2200
|
u && (v += "deep "), o && (v += "own "), n && (v += "nested "), v += "property ";
|
|
2207
2201
|
let R;
|
|
2208
|
-
o ? R = Object.prototype.hasOwnProperty.call(i, e) : n ? R = f.exists : R =
|
|
2202
|
+
o ? R = Object.prototype.hasOwnProperty.call(i, e) : n ? R = f.exists : R = _a(i, e), (!c || arguments.length === 1) && this.assert(
|
|
2209
2203
|
R,
|
|
2210
2204
|
"expected #{this} to have " + v + K(e),
|
|
2211
2205
|
"expected #{this} to not have " + v + K(e)
|
|
@@ -2340,18 +2334,18 @@ function rs(e) {
|
|
|
2340
2334
|
u,
|
|
2341
2335
|
"expected #{this} to " + s + i,
|
|
2342
2336
|
"expected #{this} to not " + s + i,
|
|
2343
|
-
R.slice(0).sort(
|
|
2344
|
-
l.sort(
|
|
2337
|
+
R.slice(0).sort(ua),
|
|
2338
|
+
l.sort(ua),
|
|
2345
2339
|
!0
|
|
2346
2340
|
);
|
|
2347
2341
|
}
|
|
2348
2342
|
x(rs, "assertKeys");
|
|
2349
2343
|
h.addMethod("keys", rs);
|
|
2350
2344
|
h.addMethod("key", rs);
|
|
2351
|
-
function
|
|
2345
|
+
function Ia(e, t, r) {
|
|
2352
2346
|
r && w(this, "message", r);
|
|
2353
2347
|
let n = w(this, "object"), o = w(this, "ssfi"), a = w(this, "message"), i = w(this, "negate") || !1;
|
|
2354
|
-
new h(n, a, o, !0).is.a("function"), (
|
|
2348
|
+
new h(n, a, o, !0).is.a("function"), (da(e) || typeof e == "string") && (t = e, e = null);
|
|
2355
2349
|
let s, l = !1;
|
|
2356
2350
|
try {
|
|
2357
2351
|
n();
|
|
@@ -2400,7 +2394,7 @@ function Na(e, t, r) {
|
|
|
2400
2394
|
s instanceof Error ? s.toString() : s && Re.getConstructorName(s)
|
|
2401
2395
|
))), s && t !== void 0 && t !== null) {
|
|
2402
2396
|
let b = "including";
|
|
2403
|
-
|
|
2397
|
+
da(t) && (b = "matching"), Re.compatibleMessage(
|
|
2404
2398
|
s,
|
|
2405
2399
|
t
|
|
2406
2400
|
) === i && (c && i ? d = !0 : this.assert(
|
|
@@ -2419,10 +2413,10 @@ function Na(e, t, r) {
|
|
|
2419
2413
|
s instanceof Error ? s.toString() : s && Re.getConstructorName(s)
|
|
2420
2414
|
), w(this, "object", s);
|
|
2421
2415
|
}
|
|
2422
|
-
x(
|
|
2423
|
-
h.addMethod("throw",
|
|
2424
|
-
h.addMethod("throws",
|
|
2425
|
-
h.addMethod("Throw",
|
|
2416
|
+
x(Ia, "assertThrows");
|
|
2417
|
+
h.addMethod("throw", Ia);
|
|
2418
|
+
h.addMethod("throws", Ia);
|
|
2419
|
+
h.addMethod("Throw", Ia);
|
|
2426
2420
|
function ns(e, t) {
|
|
2427
2421
|
t && w(this, "message", t);
|
|
2428
2422
|
let r = w(this, "object"), n = w(this, "itself"), o = typeof r == "function" && !n ? r.prototype[e] : r[e];
|
|
@@ -2644,21 +2638,21 @@ h.addProperty("finite", function(e) {
|
|
|
2644
2638
|
"expected #{this} to not be a finite number"
|
|
2645
2639
|
);
|
|
2646
2640
|
});
|
|
2647
|
-
function
|
|
2641
|
+
function fa(e, t) {
|
|
2648
2642
|
return e === t ? !0 : typeof t != typeof e ? !1 : typeof e != "object" || e === null ? e === t : t ? Array.isArray(e) ? Array.isArray(t) ? e.every(function(r) {
|
|
2649
2643
|
return t.some(function(n) {
|
|
2650
|
-
return
|
|
2644
|
+
return fa(r, n);
|
|
2651
2645
|
});
|
|
2652
2646
|
}) : !1 : e instanceof Date ? t instanceof Date ? e.getTime() === t.getTime() : !1 : Object.keys(e).every(function(r) {
|
|
2653
2647
|
let n = e[r], o = t[r];
|
|
2654
|
-
return typeof n == "object" && n !== null && o !== null ?
|
|
2648
|
+
return typeof n == "object" && n !== null && o !== null ? fa(n, o) : typeof n == "function" ? n(o) : o === n;
|
|
2655
2649
|
}) : !1;
|
|
2656
2650
|
}
|
|
2657
|
-
x(
|
|
2651
|
+
x(fa, "compareSubset");
|
|
2658
2652
|
h.addMethod("containSubset", function(e) {
|
|
2659
2653
|
const t = V(this, "object"), r = fe.showDiff;
|
|
2660
2654
|
this.assert(
|
|
2661
|
-
|
|
2655
|
+
fa(e, t),
|
|
2662
2656
|
"expected #{act} to contain subset #{exp}",
|
|
2663
2657
|
"expected #{act} to not contain subset #{exp}",
|
|
2664
2658
|
e,
|
|
@@ -2666,11 +2660,11 @@ h.addMethod("containSubset", function(e) {
|
|
|
2666
2660
|
r
|
|
2667
2661
|
);
|
|
2668
2662
|
});
|
|
2669
|
-
function
|
|
2663
|
+
function pa(e, t) {
|
|
2670
2664
|
return new h(e, t);
|
|
2671
2665
|
}
|
|
2672
|
-
x(
|
|
2673
|
-
|
|
2666
|
+
x(pa, "expect");
|
|
2667
|
+
pa.fail = function(e, t, r, n) {
|
|
2674
2668
|
throw arguments.length < 2 && (r = e, e = void 0), r = r || "expect.fail()", new J(
|
|
2675
2669
|
r,
|
|
2676
2670
|
{
|
|
@@ -2678,7 +2672,7 @@ ma.fail = function(e, t, r, n) {
|
|
|
2678
2672
|
expected: t,
|
|
2679
2673
|
operator: n
|
|
2680
2674
|
},
|
|
2681
|
-
|
|
2675
|
+
pa.fail
|
|
2682
2676
|
);
|
|
2683
2677
|
};
|
|
2684
2678
|
var yf = {};
|
|
@@ -3441,20 +3435,20 @@ function gf(e) {
|
|
|
3441
3435
|
const t = {
|
|
3442
3436
|
use: gf,
|
|
3443
3437
|
AssertionError: J,
|
|
3444
|
-
util:
|
|
3438
|
+
util: ia,
|
|
3445
3439
|
config: fe,
|
|
3446
|
-
expect:
|
|
3440
|
+
expect: pa,
|
|
3447
3441
|
assert: m,
|
|
3448
3442
|
Assertion: h,
|
|
3449
3443
|
...yf
|
|
3450
3444
|
};
|
|
3451
|
-
return ~Ds.indexOf(e) || (e(t,
|
|
3445
|
+
return ~Ds.indexOf(e) || (e(t, ia), Ds.push(e)), t;
|
|
3452
3446
|
}
|
|
3453
3447
|
x(gf, "use");
|
|
3454
3448
|
function Ym(e) {
|
|
3455
3449
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3456
3450
|
}
|
|
3457
|
-
var
|
|
3451
|
+
var zo = { exports: {} }, At = {};
|
|
3458
3452
|
var js;
|
|
3459
3453
|
function Xm() {
|
|
3460
3454
|
if (js) return At;
|
|
@@ -3713,7 +3707,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3713
3707
|
}
|
|
3714
3708
|
var Bs;
|
|
3715
3709
|
function Qm() {
|
|
3716
|
-
return Bs || (Bs = 1, process.env.NODE_ENV === "production" ?
|
|
3710
|
+
return Bs || (Bs = 1, process.env.NODE_ENV === "production" ? zo.exports = Xm() : zo.exports = Jm()), zo.exports;
|
|
3717
3711
|
}
|
|
3718
3712
|
var z = Qm();
|
|
3719
3713
|
const Zm = (e) => {
|
|
@@ -3741,14 +3735,14 @@ const Zm = (e) => {
|
|
|
3741
3735
|
"data-testid": "loader-icon",
|
|
3742
3736
|
children: /* @__PURE__ */ z.jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
3743
3737
|
}
|
|
3744
|
-
),
|
|
3745
|
-
|
|
3738
|
+
), Vo = typeof document < "u" ? document.createElement("style") : null;
|
|
3739
|
+
Vo && !document.getElementById("loader-spin-keyframes") && (Vo.id = "loader-spin-keyframes", Vo.innerHTML = `
|
|
3746
3740
|
@keyframes spin {
|
|
3747
3741
|
0% { transform: rotate(0deg); }
|
|
3748
3742
|
100% { transform: rotate(360deg); }
|
|
3749
3743
|
}
|
|
3750
|
-
`, document.head.appendChild(
|
|
3751
|
-
const
|
|
3744
|
+
`, document.head.appendChild(Vo));
|
|
3745
|
+
const Na = ({ className: e, children: t, dataTestId: r }) => /* @__PURE__ */ z.jsx(
|
|
3752
3746
|
"svg",
|
|
3753
3747
|
{
|
|
3754
3748
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3764,7 +3758,7 @@ const ka = ({ className: e, children: t, dataTestId: r }) => /* @__PURE__ */ z.j
|
|
|
3764
3758
|
"data-testid": r,
|
|
3765
3759
|
children: t
|
|
3766
3760
|
}
|
|
3767
|
-
), rh = () => /* @__PURE__ */ z.jsx(
|
|
3761
|
+
), rh = () => /* @__PURE__ */ z.jsx(Na, { className: "lucide-play-icon lucide-play", dataTestId: "play-icon", children: /* @__PURE__ */ z.jsx("path", { d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }) }), nh = (e) => {
|
|
3768
3762
|
switch (e.status) {
|
|
3769
3763
|
case "pass":
|
|
3770
3764
|
return {
|
|
@@ -3924,8 +3918,8 @@ const ka = ({ className: e, children: t, dataTestId: r }) => /* @__PURE__ */ z.j
|
|
|
3924
3918
|
},
|
|
3925
3919
|
e.name
|
|
3926
3920
|
);
|
|
3927
|
-
}, ih = () => /* @__PURE__ */ z.jsx(
|
|
3928
|
-
const [r, n] =
|
|
3921
|
+
}, ih = () => /* @__PURE__ */ z.jsx(Na, { className: "lucide-chevron-down-icon lucide-chevron-down", dataTestId: "chevron-down-icon", children: /* @__PURE__ */ z.jsx("path", { d: "m6 9 6 6 6-6" }) }), sh = () => /* @__PURE__ */ z.jsx(Na, { className: "lucide-chevron-right-icon lucide-chevron-right", dataTestId: "chevron-right-icon", children: /* @__PURE__ */ z.jsx("path", { d: "m9 18 6-6-6-6" }) }), lh = ({ tests: e, runTest: t }) => {
|
|
3922
|
+
const [r, n] = Xa({}), o = (s) => n((l) => ({ ...l, [s]: !l[s] })), a = (s, l = 0) => {
|
|
3929
3923
|
if (s.type === "test")
|
|
3930
3924
|
return /* @__PURE__ */ z.jsx(
|
|
3931
3925
|
ah,
|
|
@@ -4007,7 +4001,7 @@ const ka = ({ className: e, children: t, dataTestId: r }) => /* @__PURE__ */ z.j
|
|
|
4007
4001
|
r.style.marginRight = "0", r.style.marginLeft = "0";
|
|
4008
4002
|
};
|
|
4009
4003
|
}, [e, t]);
|
|
4010
|
-
}, fh = () => /* @__PURE__ */ z.jsxs(
|
|
4004
|
+
}, fh = () => /* @__PURE__ */ z.jsxs(Na, { className: "lucide-wifi-pen-icon lucide-wifi-pen", dataTestId: "wifi-pen-icon", children: [
|
|
4011
4005
|
/* @__PURE__ */ z.jsx("path", { d: "M2 8.82a15 15 0 0 1 20 0" }),
|
|
4012
4006
|
/* @__PURE__ */ z.jsx("path", { d: "M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" }),
|
|
4013
4007
|
/* @__PURE__ */ z.jsx("path", { d: "M5 12.859a10 10 0 0 1 10.5-2.222" }),
|
|
@@ -4059,7 +4053,7 @@ const ka = ({ className: e, children: t, dataTestId: r }) => /* @__PURE__ */ z.j
|
|
|
4059
4053
|
left: { left: 0, borderRight: "1px solid #e5e7eb" },
|
|
4060
4054
|
right: { right: 0, borderLeft: "1px solid #e5e7eb" }
|
|
4061
4055
|
}, hh = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', GC = ({ open: e, position: t = "left" }) => {
|
|
4062
|
-
const [r, n] =
|
|
4056
|
+
const [r, n] = Xa(0), [o, a] = Xa(e);
|
|
4063
4057
|
dh({ isOpen: o, position: t });
|
|
4064
4058
|
const i = new cm({
|
|
4065
4059
|
onStart: (c) => {
|
|
@@ -4077,9 +4071,9 @@ const ka = ({ className: e, children: t, dataTestId: r }) => /* @__PURE__ */ z.j
|
|
|
4077
4071
|
}), s = async () => {
|
|
4078
4072
|
await i.runAll();
|
|
4079
4073
|
}, l = async (c) => {
|
|
4080
|
-
const f = Array.from(
|
|
4074
|
+
const f = Array.from(aa.values()).filter((d) => d.type === "test").find((d) => d.id === c);
|
|
4081
4075
|
f && await i.runSingle(f.id);
|
|
4082
|
-
}, u = Array.from(
|
|
4076
|
+
}, u = Array.from(aa.values());
|
|
4083
4077
|
return o ? /* @__PURE__ */ z.jsxs(
|
|
4084
4078
|
"div",
|
|
4085
4079
|
{
|
|
@@ -4234,7 +4228,7 @@ class gh extends Array {
|
|
|
4234
4228
|
this.splice(t, 1);
|
|
4235
4229
|
}
|
|
4236
4230
|
}
|
|
4237
|
-
function
|
|
4231
|
+
function Ho(e, t) {
|
|
4238
4232
|
const [r, n] = e.split("/"), o = !n || n === "*";
|
|
4239
4233
|
return (a) => t ? a.type === (o ? r : e) : o ? a.type.startsWith(`${r}/`) : a.type === r;
|
|
4240
4234
|
}
|
|
@@ -4242,19 +4236,19 @@ function Rh(e) {
|
|
|
4242
4236
|
return new class {
|
|
4243
4237
|
getData(r) {
|
|
4244
4238
|
var n;
|
|
4245
|
-
const o = (n = this.items.find(
|
|
4239
|
+
const o = (n = this.items.find(Ho(r, !0))) !== null && n !== void 0 ? n : this.items.find(Ho(r, !1));
|
|
4246
4240
|
let a = "";
|
|
4247
4241
|
return o?.getAsString((i) => {
|
|
4248
4242
|
a = i;
|
|
4249
4243
|
}), a;
|
|
4250
4244
|
}
|
|
4251
4245
|
setData(r, n) {
|
|
4252
|
-
const o = this.items.findIndex(
|
|
4246
|
+
const o = this.items.findIndex(Ho(r, !0)), a = new wf(n, r);
|
|
4253
4247
|
o >= 0 ? this.items.splice(o, 1, a) : this.items.push(a);
|
|
4254
4248
|
}
|
|
4255
4249
|
clearData(r) {
|
|
4256
4250
|
if (r) {
|
|
4257
|
-
const n = this.items.findIndex(
|
|
4251
|
+
const n = this.items.findIndex(Ho(r, !0));
|
|
4258
4252
|
n >= 0 && this.items.remove(n);
|
|
4259
4253
|
} else
|
|
4260
4254
|
this.items.clear();
|
|
@@ -4402,9 +4396,9 @@ async function xf(e, t) {
|
|
|
4402
4396
|
)))
|
|
4403
4397
|
throw new Error("The Clipboard API is unavailable.");
|
|
4404
4398
|
}
|
|
4405
|
-
const
|
|
4406
|
-
typeof
|
|
4407
|
-
typeof
|
|
4399
|
+
const ma = globalThis;
|
|
4400
|
+
typeof ma.afterEach == "function" && ma.afterEach(() => Ch(globalThis.window));
|
|
4401
|
+
typeof ma.afterAll == "function" && ma.afterAll(() => xh(globalThis.window));
|
|
4408
4402
|
const _f = [
|
|
4409
4403
|
"input:not([type=hidden]):not([disabled])",
|
|
4410
4404
|
"button:not([disabled])",
|
|
@@ -4448,7 +4442,7 @@ function Bo(e) {
|
|
|
4448
4442
|
e.ownerDocument.body
|
|
4449
4443
|
) : e.body : t;
|
|
4450
4444
|
}
|
|
4451
|
-
function
|
|
4445
|
+
function Fa(e) {
|
|
4452
4446
|
var t;
|
|
4453
4447
|
return (t = Bo(e)) !== null && t !== void 0 ? t : (
|
|
4454
4448
|
/* istanbul ignore next */
|
|
@@ -4511,8 +4505,8 @@ function Ah(e) {
|
|
|
4511
4505
|
t.setBaseAndExtent(e, 0, e, 0);
|
|
4512
4506
|
}
|
|
4513
4507
|
}
|
|
4514
|
-
var Te = {},
|
|
4515
|
-
|
|
4508
|
+
var Te = {}, ea = { exports: {} };
|
|
4509
|
+
ea.exports;
|
|
4516
4510
|
var Fs;
|
|
4517
4511
|
function Of() {
|
|
4518
4512
|
return Fs || (Fs = 1, (function(e) {
|
|
@@ -4616,10 +4610,10 @@ function Of() {
|
|
|
4616
4610
|
enumerable: !0,
|
|
4617
4611
|
get: o
|
|
4618
4612
|
});
|
|
4619
|
-
})(
|
|
4613
|
+
})(ea)), ea.exports;
|
|
4620
4614
|
}
|
|
4621
4615
|
var nt = {}, Us;
|
|
4622
|
-
function
|
|
4616
|
+
function ka() {
|
|
4623
4617
|
if (Us) return nt;
|
|
4624
4618
|
Us = 1, Object.defineProperty(nt, "__esModule", {
|
|
4625
4619
|
value: !0
|
|
@@ -4699,7 +4693,7 @@ function Oh() {
|
|
|
4699
4693
|
zs = 1, Object.defineProperty(ke, "__esModule", {
|
|
4700
4694
|
value: !0
|
|
4701
4695
|
}), ke.test = ke.serialize = ke.default = void 0;
|
|
4702
|
-
var e =
|
|
4696
|
+
var e = ka(), t = (function() {
|
|
4703
4697
|
return typeof globalThis < "u" ? globalThis : typeof t < "u" ? t : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
4704
4698
|
})(), r = t["jest-symbol-do-not-touch"] || t.Symbol;
|
|
4705
4699
|
const n = typeof r == "function" && r.for ? r.for("jest.asymmetricMatcher") : 1267621, o = " ", a = (u, c, f, d, b, v) => {
|
|
@@ -4729,15 +4723,15 @@ function Oh() {
|
|
|
4729
4723
|
};
|
|
4730
4724
|
return ke.default = l, ke;
|
|
4731
4725
|
}
|
|
4732
|
-
var De = {},
|
|
4726
|
+
var De = {}, Ua, Vs;
|
|
4733
4727
|
function Mh() {
|
|
4734
|
-
return Vs || (Vs = 1,
|
|
4728
|
+
return Vs || (Vs = 1, Ua = ({ onlyFirst: e = !1 } = {}) => {
|
|
4735
4729
|
const t = [
|
|
4736
4730
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
4737
4731
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
4738
4732
|
].join("|");
|
|
4739
4733
|
return new RegExp(t, e ? void 0 : "g");
|
|
4740
|
-
}),
|
|
4734
|
+
}), Ua;
|
|
4741
4735
|
}
|
|
4742
4736
|
var Hs;
|
|
4743
4737
|
function Ih() {
|
|
@@ -4809,7 +4803,7 @@ function Nh() {
|
|
|
4809
4803
|
Ws = 1, Object.defineProperty(je, "__esModule", {
|
|
4810
4804
|
value: !0
|
|
4811
4805
|
}), je.test = je.serialize = je.default = void 0;
|
|
4812
|
-
var e =
|
|
4806
|
+
var e = ka();
|
|
4813
4807
|
const t = " ", r = ["DOMStringMap", "NamedNodeMap"], n = /^(HTML\w*Collection|NodeList)$/, o = (c) => r.indexOf(c) !== -1 || n.test(c), a = (c) => c && c.constructor && !!c.constructor.name && o(c.constructor.name);
|
|
4814
4808
|
je.test = a;
|
|
4815
4809
|
const i = (c) => c.constructor.name === "NamedNodeMap", s = (c, f, d, b, v, R) => {
|
|
@@ -4837,16 +4831,16 @@ function Nh() {
|
|
|
4837
4831
|
};
|
|
4838
4832
|
return je.default = u, je;
|
|
4839
4833
|
}
|
|
4840
|
-
var $e = {}, ve = {},
|
|
4834
|
+
var $e = {}, ve = {}, Wo = {}, Gs;
|
|
4841
4835
|
function kh() {
|
|
4842
|
-
if (Gs) return
|
|
4843
|
-
Gs = 1, Object.defineProperty(
|
|
4836
|
+
if (Gs) return Wo;
|
|
4837
|
+
Gs = 1, Object.defineProperty(Wo, "__esModule", {
|
|
4844
4838
|
value: !0
|
|
4845
|
-
}),
|
|
4839
|
+
}), Wo.default = e;
|
|
4846
4840
|
function e(t) {
|
|
4847
4841
|
return t.replace(/</g, "<").replace(/>/g, ">");
|
|
4848
4842
|
}
|
|
4849
|
-
return
|
|
4843
|
+
return Wo;
|
|
4850
4844
|
}
|
|
4851
4845
|
var Ks;
|
|
4852
4846
|
function ms() {
|
|
@@ -4965,7 +4959,7 @@ function jh() {
|
|
|
4965
4959
|
Xs = 1, Object.defineProperty(Be, "__esModule", {
|
|
4966
4960
|
value: !0
|
|
4967
4961
|
}), Be.test = Be.serialize = Be.default = void 0;
|
|
4968
|
-
var e =
|
|
4962
|
+
var e = ka();
|
|
4969
4963
|
const t = "@@__IMMUTABLE_ITERABLE__@@", r = "@@__IMMUTABLE_LIST__@@", n = "@@__IMMUTABLE_KEYED__@@", o = "@@__IMMUTABLE_MAP__@@", a = "@@__IMMUTABLE_ORDERED__@@", i = "@@__IMMUTABLE_RECORD__@@", s = "@@__IMMUTABLE_SEQ__@@", l = "@@__IMMUTABLE_SET__@@", u = "@@__IMMUTABLE_STACK__@@", c = (g) => "Immutable." + g, f = (g) => "[" + g + "]", d = " ", b = "…", v = (g, E, O, D, j, B, A) => ++D > E.maxDepth ? f(c(A)) : c(A) + d + "{" + (0, e.printIteratorEntries)(
|
|
4970
4964
|
g.entries(),
|
|
4971
4965
|
E,
|
|
@@ -5072,7 +5066,7 @@ function jh() {
|
|
|
5072
5066
|
};
|
|
5073
5067
|
return Be.default = y, Be;
|
|
5074
5068
|
}
|
|
5075
|
-
var Le = {},
|
|
5069
|
+
var Le = {}, Go = { exports: {} }, ee = {};
|
|
5076
5070
|
var Js;
|
|
5077
5071
|
function $h() {
|
|
5078
5072
|
if (Js) return ee;
|
|
@@ -5231,7 +5225,7 @@ function Bh() {
|
|
|
5231
5225
|
}
|
|
5232
5226
|
var Zs;
|
|
5233
5227
|
function Lh() {
|
|
5234
|
-
return Zs || (Zs = 1, process.env.NODE_ENV === "production" ?
|
|
5228
|
+
return Zs || (Zs = 1, process.env.NODE_ENV === "production" ? Go.exports = $h() : Go.exports = Bh()), Go.exports;
|
|
5235
5229
|
}
|
|
5236
5230
|
var el;
|
|
5237
5231
|
function Fh() {
|
|
@@ -5375,7 +5369,7 @@ function zh() {
|
|
|
5375
5369
|
rl = 1, Object.defineProperty(Te, "__esModule", {
|
|
5376
5370
|
value: !0
|
|
5377
5371
|
}), Te.default = Te.DEFAULT_OPTIONS = void 0, Te.format = he, Te.plugins = void 0;
|
|
5378
|
-
var e = u(Of()), t =
|
|
5372
|
+
var e = u(Of()), t = ka(), r = u(
|
|
5379
5373
|
Oh()
|
|
5380
5374
|
), n = u(Ih()), o = u(Nh()), a = u(Dh()), i = u(jh()), s = u(Fh()), l = u(
|
|
5381
5375
|
Uh()
|
|
@@ -5908,7 +5902,7 @@ function ne(e) {
|
|
|
5908
5902
|
function kf(e) {
|
|
5909
5903
|
return ne(e) && pe(e) === "caption";
|
|
5910
5904
|
}
|
|
5911
|
-
function
|
|
5905
|
+
function ta(e) {
|
|
5912
5906
|
return ne(e) && pe(e) === "input";
|
|
5913
5907
|
}
|
|
5914
5908
|
function lb(e) {
|
|
@@ -5947,7 +5941,7 @@ function vb(e) {
|
|
|
5947
5941
|
function yb(e) {
|
|
5948
5942
|
return bb(e) && pe(e) === "title";
|
|
5949
5943
|
}
|
|
5950
|
-
function
|
|
5944
|
+
function ha(e, t) {
|
|
5951
5945
|
if (ne(e) && e.hasAttribute(t)) {
|
|
5952
5946
|
var r = e.getAttribute(t).split(" "), n = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
5953
5947
|
return r.map(function(o) {
|
|
@@ -5990,7 +5984,7 @@ function Df(e, t) {
|
|
|
5990
5984
|
}
|
|
5991
5985
|
function nl(e, t) {
|
|
5992
5986
|
var r = qe(e.querySelectorAll(t));
|
|
5993
|
-
return
|
|
5987
|
+
return ha(e, "aria-owns").forEach(function(n) {
|
|
5994
5988
|
r.push.apply(r, qe(n.querySelectorAll(t)));
|
|
5995
5989
|
}), r;
|
|
5996
5990
|
}
|
|
@@ -6010,7 +6004,7 @@ function qb(e) {
|
|
|
6010
6004
|
return !1;
|
|
6011
6005
|
}
|
|
6012
6006
|
function Pb(e) {
|
|
6013
|
-
return
|
|
6007
|
+
return ta(e) || db(e) ? e.value : e.textContent || "";
|
|
6014
6008
|
}
|
|
6015
6009
|
function ol(e) {
|
|
6016
6010
|
var t = e.getPropertyValue("content");
|
|
@@ -6062,7 +6056,7 @@ function Bf(e) {
|
|
|
6062
6056
|
var T = u(p, "::before"), P = ol(T);
|
|
6063
6057
|
q = "".concat(P, " ").concat(q);
|
|
6064
6058
|
}
|
|
6065
|
-
var y = hb(p) ? Ab(p) : qe(p.childNodes).concat(
|
|
6059
|
+
var y = hb(p) ? Ab(p) : qe(p.childNodes).concat(ha(p, "aria-owns"));
|
|
6066
6060
|
if (y.forEach(function(O) {
|
|
6067
6061
|
var D = S(O, {
|
|
6068
6062
|
isEmbeddedInLabel: _.isEmbeddedInLabel,
|
|
@@ -6125,7 +6119,7 @@ function Bf(e) {
|
|
|
6125
6119
|
if (B !== null)
|
|
6126
6120
|
return B;
|
|
6127
6121
|
}
|
|
6128
|
-
if (
|
|
6122
|
+
if (ta(p) && (p.type === "button" || p.type === "submit" || p.type === "reset")) {
|
|
6129
6123
|
var A = b(p, "value");
|
|
6130
6124
|
if (A !== null)
|
|
6131
6125
|
return A;
|
|
@@ -6145,7 +6139,7 @@ function Bf(e) {
|
|
|
6145
6139
|
}).filter(function(se) {
|
|
6146
6140
|
return se.length > 0;
|
|
6147
6141
|
}).join(" ");
|
|
6148
|
-
if (
|
|
6142
|
+
if (ta(p) && p.type === "image") {
|
|
6149
6143
|
var F = b(p, "alt");
|
|
6150
6144
|
if (F !== null)
|
|
6151
6145
|
return F;
|
|
@@ -6166,7 +6160,7 @@ function Bf(e) {
|
|
|
6166
6160
|
return "";
|
|
6167
6161
|
if (!f && Rb(p, u) && !_.isReferenced)
|
|
6168
6162
|
return r.add(p), "";
|
|
6169
|
-
var q = ne(p) ? p.getAttributeNode("aria-labelledby") : null, T = q !== null && !r.has(q) ?
|
|
6163
|
+
var q = ne(p) ? p.getAttributeNode("aria-labelledby") : null, T = q !== null && !r.has(q) ? ha(p, "aria-labelledby") : [];
|
|
6170
6164
|
if (a === "name" && !_.isReferenced && T.length > 0)
|
|
6171
6165
|
return r.add(q), T.map(function(j) {
|
|
6172
6166
|
return S(j, {
|
|
@@ -6195,7 +6189,7 @@ function Bf(e) {
|
|
|
6195
6189
|
if (ze(p, ["combobox", "listbox"])) {
|
|
6196
6190
|
r.add(p);
|
|
6197
6191
|
var E = Eb(p);
|
|
6198
|
-
return E.length === 0 ?
|
|
6192
|
+
return E.length === 0 ? ta(p) ? p.value : "" : qe(E).map(function(j) {
|
|
6199
6193
|
return S(j, {
|
|
6200
6194
|
isEmbeddedInLabel: _.isEmbeddedInLabel,
|
|
6201
6195
|
isReferenced: !1,
|
|
@@ -6278,7 +6272,7 @@ function Ib(e, t) {
|
|
|
6278
6272
|
return (t === "string" ? String : Number)(e);
|
|
6279
6273
|
}
|
|
6280
6274
|
function Lf(e) {
|
|
6281
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r =
|
|
6275
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = ha(e, "aria-describedby").map(function(o) {
|
|
6282
6276
|
return Bf(o, il(il({}, t), {}, {
|
|
6283
6277
|
compute: "description"
|
|
6284
6278
|
}));
|
|
@@ -6296,7 +6290,7 @@ function hs(e) {
|
|
|
6296
6290
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6297
6291
|
return Nb(e) ? "" : Bf(e, t);
|
|
6298
6292
|
}
|
|
6299
|
-
var ge = {}, Mt = {},
|
|
6293
|
+
var ge = {}, Mt = {}, Ko = {}, It = {}, sl;
|
|
6300
6294
|
function kb() {
|
|
6301
6295
|
if (sl) return It;
|
|
6302
6296
|
sl = 1, Object.defineProperty(It, "__esModule", {
|
|
@@ -6327,10 +6321,10 @@ function kb() {
|
|
|
6327
6321
|
}
|
|
6328
6322
|
var ll;
|
|
6329
6323
|
function Lo() {
|
|
6330
|
-
if (ll) return
|
|
6331
|
-
ll = 1, Object.defineProperty(
|
|
6324
|
+
if (ll) return Ko;
|
|
6325
|
+
ll = 1, Object.defineProperty(Ko, "__esModule", {
|
|
6332
6326
|
value: !0
|
|
6333
|
-
}),
|
|
6327
|
+
}), Ko.default = n;
|
|
6334
6328
|
var e = t(kb());
|
|
6335
6329
|
function t(o) {
|
|
6336
6330
|
return o && o.__esModule ? o : { default: o };
|
|
@@ -6348,7 +6342,7 @@ function Lo() {
|
|
|
6348
6342
|
value: e.default.bind(a)
|
|
6349
6343
|
}), o;
|
|
6350
6344
|
}
|
|
6351
|
-
return
|
|
6345
|
+
return Ko;
|
|
6352
6346
|
}
|
|
6353
6347
|
var ul;
|
|
6354
6348
|
function Db() {
|
|
@@ -11995,9 +11989,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11995
11989
|
}, S = (0, o.default)(R, R.entries());
|
|
11996
11990
|
return kt.default = S, kt;
|
|
11997
11991
|
}
|
|
11998
|
-
var vo = {},
|
|
11992
|
+
var vo = {}, za = {}, Hc;
|
|
11999
11993
|
function vg() {
|
|
12000
|
-
if (Hc) return
|
|
11994
|
+
if (Hc) return za;
|
|
12001
11995
|
Hc = 1;
|
|
12002
11996
|
var e = Object.prototype.hasOwnProperty;
|
|
12003
11997
|
function t(r, n) {
|
|
@@ -12020,7 +12014,7 @@ function vg() {
|
|
|
12020
12014
|
}
|
|
12021
12015
|
return r !== r && n !== n;
|
|
12022
12016
|
}
|
|
12023
|
-
return
|
|
12017
|
+
return za.dequal = t, za;
|
|
12024
12018
|
}
|
|
12025
12019
|
var Wc;
|
|
12026
12020
|
function yg() {
|
|
@@ -12330,7 +12324,7 @@ function Rg() {
|
|
|
12330
12324
|
var c = o.default;
|
|
12331
12325
|
return ge.roleElements = c, ge;
|
|
12332
12326
|
}
|
|
12333
|
-
var Ee = Rg(),
|
|
12327
|
+
var Ee = Rg(), Va = { exports: {} }, Yc;
|
|
12334
12328
|
function wg() {
|
|
12335
12329
|
return Yc || (Yc = 1, (function(e) {
|
|
12336
12330
|
var t = (function() {
|
|
@@ -12526,7 +12520,7 @@ function wg() {
|
|
|
12526
12520
|
e != null ? e.exports = t : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
12527
12521
|
return t;
|
|
12528
12522
|
});
|
|
12529
|
-
})(
|
|
12523
|
+
})(Va)), Va.exports;
|
|
12530
12524
|
}
|
|
12531
12525
|
var Eg = wg();
|
|
12532
12526
|
const Cg = /* @__PURE__ */ Ym(Eg);
|
|
@@ -12573,7 +12567,7 @@ function Ig(e) {
|
|
|
12573
12567
|
function Ng(e) {
|
|
12574
12568
|
return e.nodeType === Vf;
|
|
12575
12569
|
}
|
|
12576
|
-
function
|
|
12570
|
+
function Ha(e) {
|
|
12577
12571
|
return e.nodeType === Hf;
|
|
12578
12572
|
}
|
|
12579
12573
|
function kg(e) {
|
|
@@ -12587,8 +12581,8 @@ function kg(e) {
|
|
|
12587
12581
|
return Uf(t.data, r);
|
|
12588
12582
|
if (Ng(t))
|
|
12589
12583
|
return Pg(t.data, r);
|
|
12590
|
-
const s =
|
|
12591
|
-
return ++o > r.maxDepth ? Sg(s, r) : Tg(s, xg(
|
|
12584
|
+
const s = Ha(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
12585
|
+
return ++o > r.maxDepth ? Sg(s, r) : Tg(s, xg(Ha(t) ? [] : Array.from(t.attributes).map((l) => l.name).sort(), Ha(t) ? {} : Array.from(t.attributes).reduce((l, u) => (l[u.name] = u.value, l), {}), r, n + r.indent, o, a, i), qg(Array.prototype.slice.call(t.childNodes || t.children).filter(e), r, n + r.indent, o, a, i), r, n);
|
|
12592
12586
|
}
|
|
12593
12587
|
};
|
|
12594
12588
|
}
|
|
@@ -12627,7 +12621,7 @@ function jg() {
|
|
|
12627
12621
|
return Dg(t);
|
|
12628
12622
|
}
|
|
12629
12623
|
const Kf = 3;
|
|
12630
|
-
function
|
|
12624
|
+
function Wa() {
|
|
12631
12625
|
return typeof jest < "u" && jest !== null ? (
|
|
12632
12626
|
// legacy timers
|
|
12633
12627
|
setTimeout._isMockFunction === !0 || // modern timers
|
|
@@ -12673,7 +12667,7 @@ const Bg = () => {
|
|
|
12673
12667
|
function zg(e) {
|
|
12674
12668
|
return e.nodeType !== Ug && (e.nodeType !== Fg || !e.matches(Q().defaultIgnore));
|
|
12675
12669
|
}
|
|
12676
|
-
function
|
|
12670
|
+
function ba(e, t, r) {
|
|
12677
12671
|
if (r === void 0 && (r = {}), e || (e = gs().body), typeof t != "number" && (t = typeof process < "u" && typeof process.env < "u" && process.env.DEBUG_PRINT_LIMIT || 7e3), t === 0)
|
|
12678
12672
|
return "";
|
|
12679
12673
|
e.documentElement && (e = e.documentElement);
|
|
@@ -12693,11 +12687,11 @@ function va(e, t, r) {
|
|
|
12693
12687
|
}
|
|
12694
12688
|
const Xc = function() {
|
|
12695
12689
|
const e = jg();
|
|
12696
|
-
console.log(e ?
|
|
12690
|
+
console.log(e ? ba(...arguments) + `
|
|
12697
12691
|
|
|
12698
|
-
` + e :
|
|
12692
|
+
` + e : ba(...arguments));
|
|
12699
12693
|
};
|
|
12700
|
-
let
|
|
12694
|
+
let va = {
|
|
12701
12695
|
testIdAttribute: "data-testid",
|
|
12702
12696
|
asyncUtilTimeout: 1e3,
|
|
12703
12697
|
// asyncWrapper and advanceTimersWrapper is to support React's async `act` function.
|
|
@@ -12720,7 +12714,7 @@ let ya = {
|
|
|
12720
12714
|
throwSuggestions: !1,
|
|
12721
12715
|
// called when getBy* queries fail. (message, container) => Error
|
|
12722
12716
|
getElementError(e, t) {
|
|
12723
|
-
const r =
|
|
12717
|
+
const r = ba(t), n = new Error([e, "Ignored nodes: comments, " + va.defaultIgnore + `
|
|
12724
12718
|
` + r].filter(Boolean).join(`
|
|
12725
12719
|
|
|
12726
12720
|
`));
|
|
@@ -12731,19 +12725,19 @@ let ya = {
|
|
|
12731
12725
|
};
|
|
12732
12726
|
function Vg(e) {
|
|
12733
12727
|
try {
|
|
12734
|
-
return
|
|
12728
|
+
return va._disableExpensiveErrorDiagnostics = !0, e();
|
|
12735
12729
|
} finally {
|
|
12736
|
-
|
|
12730
|
+
va._disableExpensiveErrorDiagnostics = !1;
|
|
12737
12731
|
}
|
|
12738
12732
|
}
|
|
12739
12733
|
function Q() {
|
|
12740
|
-
return
|
|
12734
|
+
return va;
|
|
12741
12735
|
}
|
|
12742
12736
|
const Hg = ["button", "meter", "output", "progress", "select", "textarea", "input"];
|
|
12743
12737
|
function Yf(e) {
|
|
12744
12738
|
return Hg.includes(e.nodeName.toLowerCase()) ? "" : e.nodeType === Kf ? e.textContent : Array.from(e.childNodes).map((t) => Yf(t)).join("");
|
|
12745
12739
|
}
|
|
12746
|
-
function
|
|
12740
|
+
function fi(e) {
|
|
12747
12741
|
let t;
|
|
12748
12742
|
return e.tagName.toLowerCase() === "label" ? t = Yf(e) : t = e.value || e.textContent, t;
|
|
12749
12743
|
}
|
|
@@ -12767,14 +12761,14 @@ function Jf(e, t, r) {
|
|
|
12767
12761
|
return a.length ? a.map((i) => {
|
|
12768
12762
|
const s = e.querySelector('[id="' + i + '"]');
|
|
12769
12763
|
return s ? {
|
|
12770
|
-
content:
|
|
12764
|
+
content: fi(s),
|
|
12771
12765
|
formControl: null
|
|
12772
12766
|
} : {
|
|
12773
12767
|
content: "",
|
|
12774
12768
|
formControl: null
|
|
12775
12769
|
};
|
|
12776
12770
|
}) : Array.from(Xf(t)).map((i) => {
|
|
12777
|
-
const s =
|
|
12771
|
+
const s = fi(i), u = Array.from(i.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((c) => c.matches(n))[0];
|
|
12778
12772
|
return {
|
|
12779
12773
|
content: s,
|
|
12780
12774
|
formControl: u
|
|
@@ -12831,7 +12825,7 @@ function ep(e, t) {
|
|
|
12831
12825
|
const r = e.test(t);
|
|
12832
12826
|
return e.global && e.lastIndex !== 0 && (console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."), e.lastIndex = 0), r;
|
|
12833
12827
|
}
|
|
12834
|
-
function
|
|
12828
|
+
function Da(e) {
|
|
12835
12829
|
return e.matches("input[type=submit], input[type=button], input[type=reset]") ? e.value : Array.from(e.childNodes).filter((t) => t.nodeType === Kf && !!t.textContent).map((t) => t.textContent).join("");
|
|
12836
12830
|
}
|
|
12837
12831
|
const Gg = Kg(Ee.elementRoles);
|
|
@@ -12948,7 +12942,7 @@ function Xg(e, t) {
|
|
|
12948
12942
|
const f = 'Name "' + hs(c, {
|
|
12949
12943
|
computedStyleSupportsPseudoElements: Q().computedStyleSupportsPseudoElements
|
|
12950
12944
|
}) + `":
|
|
12951
|
-
`, d =
|
|
12945
|
+
`, d = ba(c.cloneNode(!1));
|
|
12952
12946
|
if (n) {
|
|
12953
12947
|
const b = 'Description "' + Lf(c, {
|
|
12954
12948
|
computedStyleSupportsPseudoElements: Q().computedStyleSupportsPseudoElements
|
|
@@ -13058,7 +13052,7 @@ function Ye(e, t, r, n) {
|
|
|
13058
13052
|
function Xe(e, t, r) {
|
|
13059
13053
|
return r && !0;
|
|
13060
13054
|
}
|
|
13061
|
-
function
|
|
13055
|
+
function pi(e, t, r) {
|
|
13062
13056
|
var n, o;
|
|
13063
13057
|
if (t === void 0 && (t = "get"), e.matches(Q().defaultIgnore))
|
|
13064
13058
|
return;
|
|
@@ -13080,7 +13074,7 @@ function mi(e, t, r) {
|
|
|
13080
13074
|
return Ye("PlaceholderText", e, s, {
|
|
13081
13075
|
variant: t
|
|
13082
13076
|
});
|
|
13083
|
-
const l = Jc(
|
|
13077
|
+
const l = Jc(Da(e));
|
|
13084
13078
|
if (Xe("Text", r, l))
|
|
13085
13079
|
return Ye("Text", e, l, {
|
|
13086
13080
|
variant: t
|
|
@@ -13105,7 +13099,7 @@ function mi(e, t, r) {
|
|
|
13105
13099
|
variant: t
|
|
13106
13100
|
});
|
|
13107
13101
|
}
|
|
13108
|
-
function
|
|
13102
|
+
function Yo(e, t) {
|
|
13109
13103
|
e.stack = t.stack.replace(t.message, e.message);
|
|
13110
13104
|
}
|
|
13111
13105
|
function uR(e, t) {
|
|
@@ -13129,15 +13123,15 @@ function uR(e, t) {
|
|
|
13129
13123
|
throw new TypeError("Received `callback` arg must be a function");
|
|
13130
13124
|
return new Promise(async (u, c) => {
|
|
13131
13125
|
let f, d, b, v = !1, R = "idle";
|
|
13132
|
-
const S = setTimeout(P, n), p =
|
|
13126
|
+
const S = setTimeout(P, n), p = Wa();
|
|
13133
13127
|
if (p) {
|
|
13134
13128
|
const {
|
|
13135
13129
|
unstable_advanceTimersWrapper: y
|
|
13136
13130
|
} = Q();
|
|
13137
13131
|
for (T(); !v; ) {
|
|
13138
|
-
if (!
|
|
13132
|
+
if (!Wa()) {
|
|
13139
13133
|
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");
|
|
13140
|
-
o ||
|
|
13134
|
+
o || Yo(g, a), c(g);
|
|
13141
13135
|
return;
|
|
13142
13136
|
}
|
|
13143
13137
|
if (await y(async () => {
|
|
@@ -13163,9 +13157,9 @@ function uR(e, t) {
|
|
|
13163
13157
|
v = !0, clearTimeout(S), p || (clearInterval(d), b.disconnect()), y ? c(y) : u(g);
|
|
13164
13158
|
}
|
|
13165
13159
|
function q() {
|
|
13166
|
-
if (
|
|
13160
|
+
if (Wa()) {
|
|
13167
13161
|
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");
|
|
13168
|
-
return o ||
|
|
13162
|
+
return o || Yo(y, a), c(y);
|
|
13169
13163
|
} else
|
|
13170
13164
|
return T();
|
|
13171
13165
|
}
|
|
@@ -13184,7 +13178,7 @@ function uR(e, t) {
|
|
|
13184
13178
|
}
|
|
13185
13179
|
function P() {
|
|
13186
13180
|
let y;
|
|
13187
|
-
f ? (y = f, !o && y.name === "TestingLibraryElementError" &&
|
|
13181
|
+
f ? (y = f, !o && y.name === "TestingLibraryElementError" && Yo(y, a)) : (y = new Error("Timed out in waitFor."), o || Yo(y, a)), _(s(y), null);
|
|
13188
13182
|
}
|
|
13189
13183
|
});
|
|
13190
13184
|
}
|
|
@@ -13201,7 +13195,7 @@ function rp(e, t) {
|
|
|
13201
13195
|
function dR(e, t) {
|
|
13202
13196
|
return rp(e + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", t);
|
|
13203
13197
|
}
|
|
13204
|
-
function
|
|
13198
|
+
function ja(e, t, r, n) {
|
|
13205
13199
|
let {
|
|
13206
13200
|
exact: o = !0,
|
|
13207
13201
|
collapseWhitespace: a,
|
|
@@ -13215,7 +13209,7 @@ function $a(e, t, r, n) {
|
|
|
13215
13209
|
});
|
|
13216
13210
|
return Array.from(t.querySelectorAll("[" + e + "]")).filter((c) => l(c.getAttribute(e), c, r, u));
|
|
13217
13211
|
}
|
|
13218
|
-
function
|
|
13212
|
+
function ya(e, t) {
|
|
13219
13213
|
return function(r) {
|
|
13220
13214
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
13221
13215
|
o[a - 1] = arguments[a];
|
|
@@ -13248,7 +13242,7 @@ function fR(e, t) {
|
|
|
13248
13242
|
return i;
|
|
13249
13243
|
};
|
|
13250
13244
|
}
|
|
13251
|
-
function
|
|
13245
|
+
function ga(e) {
|
|
13252
13246
|
return (t, r, n, o) => cR(() => e(t, r, n), {
|
|
13253
13247
|
container: t,
|
|
13254
13248
|
...o
|
|
@@ -13261,7 +13255,7 @@ const vt = (e, t, r) => function(n) {
|
|
|
13261
13255
|
suggest: l = Q().throwSuggestions
|
|
13262
13256
|
} = {}] = a.slice(-1);
|
|
13263
13257
|
if (s && l) {
|
|
13264
|
-
const u =
|
|
13258
|
+
const u = pi(s, r);
|
|
13265
13259
|
if (u && !t.endsWith(u.queryName))
|
|
13266
13260
|
throw np(u.toString(), n);
|
|
13267
13261
|
}
|
|
@@ -13275,13 +13269,13 @@ const vt = (e, t, r) => function(n) {
|
|
|
13275
13269
|
if (s.length && l) {
|
|
13276
13270
|
const u = [...new Set(s.map((c) => {
|
|
13277
13271
|
var f;
|
|
13278
|
-
return (f =
|
|
13272
|
+
return (f = pi(c, r)) == null ? void 0 : f.toString();
|
|
13279
13273
|
}))];
|
|
13280
13274
|
if (
|
|
13281
13275
|
// only want to suggest if all the els have the same suggestion.
|
|
13282
13276
|
u.length === 1 && !t.endsWith(
|
|
13283
13277
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime?
|
|
13284
|
-
|
|
13278
|
+
pi(s[0], r).queryName
|
|
13285
13279
|
)
|
|
13286
13280
|
)
|
|
13287
13281
|
throw np(u[0], n);
|
|
@@ -13289,13 +13283,13 @@ const vt = (e, t, r) => function(n) {
|
|
|
13289
13283
|
return s;
|
|
13290
13284
|
};
|
|
13291
13285
|
function ht(e, t, r) {
|
|
13292
|
-
const n = vt(
|
|
13286
|
+
const n = vt(ya(e, t), e.name, "query"), o = fR(e, r), a = ya(o, t), i = vt(a, e.name, "get"), s = xe(o, e.name.replace("query", "get"), "getAll"), l = ga(xe(o, e.name, "findAll")), u = ga(vt(a, e.name, "find"));
|
|
13293
13287
|
return [n, s, i, l, u];
|
|
13294
13288
|
}
|
|
13295
13289
|
function pR(e) {
|
|
13296
13290
|
return Array.from(e.querySelectorAll("label,input")).map((t) => ({
|
|
13297
13291
|
node: t,
|
|
13298
|
-
textToMatch:
|
|
13292
|
+
textToMatch: fi(t)
|
|
13299
13293
|
})).filter((t) => {
|
|
13300
13294
|
let {
|
|
13301
13295
|
textToMatch: r
|
|
@@ -13353,7 +13347,7 @@ const mR = function(e, t, r) {
|
|
|
13353
13347
|
const p = [...v];
|
|
13354
13348
|
p.splice(S, 1), p.length > 1 && l(p.join(" "), d, t, u) && f.push(d);
|
|
13355
13349
|
}), f;
|
|
13356
|
-
}, []).concat(
|
|
13350
|
+
}, []).concat(ja("aria-label", e, t, {
|
|
13357
13351
|
exact: o,
|
|
13358
13352
|
normalizer: u
|
|
13359
13353
|
}));
|
|
@@ -13381,11 +13375,11 @@ function hR(e, t) {
|
|
|
13381
13375
|
const n = e.querySelector('[id="' + r + '"]');
|
|
13382
13376
|
return n ? n.tagName.toLowerCase() : null;
|
|
13383
13377
|
}
|
|
13384
|
-
const op = (e, t) => "Found multiple elements with the text of: " + t, bR = vt(
|
|
13378
|
+
const op = (e, t) => "Found multiple elements with the text of: " + t, bR = vt(ya(Oo, op), Oo.name, "query"), ap = ya(ft, op), vR = ga(xe(ft, ft.name, "findAll")), yR = ga(vt(ap, ft.name, "find")), gR = xe(ft, ft.name, "getAll"), RR = vt(ap, ft.name, "get"), wR = xe(Oo, Oo.name, "queryAll"), mi = function() {
|
|
13385
13379
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
13386
13380
|
t[r] = arguments[r];
|
|
13387
|
-
return Ke(t[0]),
|
|
13388
|
-
}, ER = (e, t) => "Found multiple elements with the placeholder text of: " + t, CR = (e, t) => "Unable to find an element with the placeholder text of: " + t, xR = xe(
|
|
13381
|
+
return Ke(t[0]), ja("placeholder", ...t);
|
|
13382
|
+
}, ER = (e, t) => "Found multiple elements with the placeholder text of: " + t, CR = (e, t) => "Unable to find an element with the placeholder text of: " + t, xR = xe(mi, mi.name, "queryAll"), [_R, qR, PR, TR, SR] = ht(mi, ER, CR), hi = function(e, t, r) {
|
|
13389
13383
|
let {
|
|
13390
13384
|
selector: n = "*",
|
|
13391
13385
|
exact: o = !0,
|
|
@@ -13401,7 +13395,7 @@ const op = (e, t) => "Found multiple elements with the text of: " + t, bR = vt(g
|
|
|
13401
13395
|
normalizer: l
|
|
13402
13396
|
});
|
|
13403
13397
|
let f = [];
|
|
13404
|
-
return typeof e.matches == "function" && e.matches(n) && (f = [e]), [...f, ...Array.from(e.querySelectorAll(n))].filter((d) => !s || !d.matches(s)).filter((d) => u(
|
|
13398
|
+
return typeof e.matches == "function" && e.matches(n) && (f = [e]), [...f, ...Array.from(e.querySelectorAll(n))].filter((d) => !s || !d.matches(s)).filter((d) => u(Da(d), d, t, c));
|
|
13405
13399
|
}, AR = (e, t) => "Found multiple elements with the text: " + t, OR = function(e, t, r) {
|
|
13406
13400
|
r === void 0 && (r = {});
|
|
13407
13401
|
const {
|
|
@@ -13415,7 +13409,7 @@ const op = (e, t) => "Found multiple elements with the text of: " + t, bR = vt(g
|
|
|
13415
13409
|
normalizer: a
|
|
13416
13410
|
})(t.toString()), u = l !== t.toString(), c = (i ?? "*") !== "*";
|
|
13417
13411
|
return "Unable to find an element with the text: " + (u ? l + " (normalized from '" + t + "')" : t) + (c ? ", which matches selector '" + i + "'" : "") + ". 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.";
|
|
13418
|
-
}, MR = xe(
|
|
13412
|
+
}, MR = xe(hi, hi.name, "queryAll"), [IR, NR, kR, DR, jR] = ht(hi, AR, OR), bi = function(e, t, r) {
|
|
13419
13413
|
let {
|
|
13420
13414
|
exact: n = !0,
|
|
13421
13415
|
collapseWhitespace: o,
|
|
@@ -13428,13 +13422,13 @@ const op = (e, t) => "Found multiple elements with the text of: " + t, bR = vt(g
|
|
|
13428
13422
|
trim: a,
|
|
13429
13423
|
normalizer: i
|
|
13430
13424
|
});
|
|
13431
|
-
return Array.from(e.querySelectorAll("input,textarea,select")).filter((u) => u.tagName === "SELECT" ? Array.from(u.options).filter((f) => f.selected).some((f) => s(
|
|
13432
|
-
}, $R = (e, t) => "Found multiple elements with the display value: " + t + ".", BR = (e, t) => "Unable to find an element with the display value: " + t + ".", LR = xe(
|
|
13433
|
-
return r === void 0 && (r = {}), Ke(e),
|
|
13434
|
-
}, GR = (e, t) => "Found multiple elements with the alt text: " + t, KR = (e, t) => "Unable to find an element with the alt text: " + t, YR = xe(
|
|
13425
|
+
return Array.from(e.querySelectorAll("input,textarea,select")).filter((u) => u.tagName === "SELECT" ? Array.from(u.options).filter((f) => f.selected).some((f) => s(Da(f), f, t, l)) : s(u.value, u, t, l));
|
|
13426
|
+
}, $R = (e, t) => "Found multiple elements with the display value: " + t + ".", BR = (e, t) => "Unable to find an element with the display value: " + t + ".", LR = xe(bi, bi.name, "queryAll"), [FR, UR, zR, VR, HR] = ht(bi, $R, BR), WR = /^(img|input|area|.+-.+)$/i, vi = function(e, t, r) {
|
|
13427
|
+
return r === void 0 && (r = {}), Ke(e), ja("alt", e, t, r).filter((n) => WR.test(n.tagName));
|
|
13428
|
+
}, GR = (e, t) => "Found multiple elements with the alt text: " + t, KR = (e, t) => "Unable to find an element with the alt text: " + t, YR = xe(vi, vi.name, "queryAll"), [XR, JR, QR, ZR, ew] = ht(vi, GR, KR), tw = (e) => {
|
|
13435
13429
|
var t;
|
|
13436
13430
|
return e.tagName.toLowerCase() === "title" && ((t = e.parentElement) == null ? void 0 : t.tagName.toLowerCase()) === "svg";
|
|
13437
|
-
},
|
|
13431
|
+
}, yi = function(e, t, r) {
|
|
13438
13432
|
let {
|
|
13439
13433
|
exact: n = !0,
|
|
13440
13434
|
collapseWhitespace: o,
|
|
@@ -13447,8 +13441,8 @@ const op = (e, t) => "Found multiple elements with the text of: " + t, bR = vt(g
|
|
|
13447
13441
|
trim: a,
|
|
13448
13442
|
normalizer: i
|
|
13449
13443
|
});
|
|
13450
|
-
return Array.from(e.querySelectorAll("[title], svg > title")).filter((u) => s(u.getAttribute("title"), u, t, l) || tw(u) && s(
|
|
13451
|
-
}, rw = (e, t) => "Found multiple elements with the title: " + t + ".", nw = (e, t) => "Unable to find an element with the title: " + t + ".", ow = xe(
|
|
13444
|
+
return Array.from(e.querySelectorAll("[title], svg > title")).filter((u) => s(u.getAttribute("title"), u, t, l) || tw(u) && s(Da(u), u, t, l));
|
|
13445
|
+
}, rw = (e, t) => "Found multiple elements with the title: " + t + ".", nw = (e, t) => "Unable to find an element with the title: " + t + ".", ow = xe(yi, yi.name, "queryAll"), [aw, iw, sw, lw, uw] = ht(yi, rw, nw), gi = function(e, t, r) {
|
|
13452
13446
|
let {
|
|
13453
13447
|
hidden: n = Q().defaultHidden,
|
|
13454
13448
|
name: o,
|
|
@@ -13617,12 +13611,12 @@ Here are the ` + (n === !1 ? "accessible" : "available") + ` roles:
|
|
|
13617
13611
|
Unable to find an ` + (n === !1 ? "accessible " : "") + 'element with the role "' + t + '"' + l + u + `
|
|
13618
13612
|
|
|
13619
13613
|
` + s).trim();
|
|
13620
|
-
}, pw = xe(
|
|
13614
|
+
}, pw = xe(gi, gi.name, "queryAll"), [mw, hw, bw, vw, yw] = ht(gi, dw, fw), Es = () => Q().testIdAttribute, Ri = function() {
|
|
13621
13615
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
13622
13616
|
t[r] = arguments[r];
|
|
13623
|
-
return Ke(t[0]),
|
|
13624
|
-
}, gw = (e, t) => "Found multiple elements by: [" + Es() + '="' + t + '"]', Rw = (e, t) => "Unable to find an element by: [" + Es() + '="' + t + '"]', ww = xe(
|
|
13625
|
-
var
|
|
13617
|
+
return Ke(t[0]), ja(Es(), ...t);
|
|
13618
|
+
}, gw = (e, t) => "Found multiple elements by: [" + Es() + '="' + t + '"]', Rw = (e, t) => "Unable to find an element by: [" + Es() + '="' + t + '"]', ww = xe(Ri, Ri.name, "queryAll"), [Ew, Cw, xw, _w, qw] = ht(Ri, gw, Rw);
|
|
13619
|
+
var wi = /* @__PURE__ */ Object.freeze({
|
|
13626
13620
|
__proto__: null,
|
|
13627
13621
|
queryAllByLabelText: wR,
|
|
13628
13622
|
queryByLabelText: bR,
|
|
@@ -13674,7 +13668,7 @@ var Ei = /* @__PURE__ */ Object.freeze({
|
|
|
13674
13668
|
findByTestId: qw
|
|
13675
13669
|
});
|
|
13676
13670
|
function Pw(e, t, r) {
|
|
13677
|
-
return t === void 0 && (t =
|
|
13671
|
+
return t === void 0 && (t = wi), r === void 0 && (r = {}), Object.keys(t).reduce((n, o) => {
|
|
13678
13672
|
const a = t[o];
|
|
13679
13673
|
return n[o] = a.bind(null, e), n;
|
|
13680
13674
|
}, r);
|
|
@@ -14419,7 +14413,7 @@ const Mw = (e, t, r) => Array.isArray(e) ? e.forEach((n) => Xc(n, t, r)) : Xc(e,
|
|
|
14419
14413
|
debug: Mw,
|
|
14420
14414
|
logTestingPlaygroundURL: Iw
|
|
14421
14415
|
};
|
|
14422
|
-
typeof document < "u" && document.body ? Pw(document.body,
|
|
14416
|
+
typeof document < "u" && document.body ? Pw(document.body, wi, ed) : Object.keys(wi).reduce((e, t) => (e[t] = () => {
|
|
14423
14417
|
throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
|
|
14424
14418
|
}, e), ed);
|
|
14425
14419
|
function Ct(e, t) {
|
|
@@ -14446,7 +14440,7 @@ tt.click = (e, t, r) => {
|
|
|
14446
14440
|
Nw(t), t.dispatchEvent(new (_e(t)).Event("fileDialog")), et(t);
|
|
14447
14441
|
};
|
|
14448
14442
|
};
|
|
14449
|
-
const xt = Symbol("Displayed value in UI"), Ve = Symbol("Displayed selection in UI"),
|
|
14443
|
+
const xt = Symbol("Displayed value in UI"), Ve = Symbol("Displayed selection in UI"), Ra = Symbol("Initial value to compare on blur");
|
|
14450
14444
|
function kw(e) {
|
|
14451
14445
|
return typeof e == "object" && xt in e;
|
|
14452
14446
|
}
|
|
@@ -14454,7 +14448,7 @@ function Dw(e) {
|
|
|
14454
14448
|
return !!e && typeof e == "object" && Ve in e;
|
|
14455
14449
|
}
|
|
14456
14450
|
function jw(e, t) {
|
|
14457
|
-
e[
|
|
14451
|
+
e[Ra] === void 0 && (e[Ra] = e.value), e[xt] = t, e.value = Object.assign(new String(t), {
|
|
14458
14452
|
[xt]: !0
|
|
14459
14453
|
});
|
|
14460
14454
|
}
|
|
@@ -14465,10 +14459,10 @@ function Cs(e) {
|
|
|
14465
14459
|
e[xt] = void 0;
|
|
14466
14460
|
}
|
|
14467
14461
|
function sp(e) {
|
|
14468
|
-
e[
|
|
14462
|
+
e[Ra] = void 0;
|
|
14469
14463
|
}
|
|
14470
14464
|
function $w(e) {
|
|
14471
|
-
return e[
|
|
14465
|
+
return e[Ra];
|
|
14472
14466
|
}
|
|
14473
14467
|
function Bw(e, t) {
|
|
14474
14468
|
e[Ve] = t;
|
|
@@ -14503,15 +14497,15 @@ function Mo(e) {
|
|
|
14503
14497
|
function Lw(e) {
|
|
14504
14498
|
return !!e[Ve];
|
|
14505
14499
|
}
|
|
14506
|
-
function
|
|
14500
|
+
function ra(e) {
|
|
14507
14501
|
e[Ve] = void 0;
|
|
14508
14502
|
}
|
|
14509
|
-
const
|
|
14503
|
+
const wa = globalThis.parseInt;
|
|
14510
14504
|
function Fw(e) {
|
|
14511
14505
|
const t = e.replace(/\D/g, "");
|
|
14512
14506
|
if (t.length < 2)
|
|
14513
14507
|
return e;
|
|
14514
|
-
const r =
|
|
14508
|
+
const r = wa(t[0], 10), n = wa(t[1], 10);
|
|
14515
14509
|
if (r >= 3 || r === 2 && n >= 4) {
|
|
14516
14510
|
let o;
|
|
14517
14511
|
return r >= 3 ? o = 1 : o = 2, td(t, o);
|
|
@@ -14519,7 +14513,7 @@ function Fw(e) {
|
|
|
14519
14513
|
return e.length === 2 ? e : td(t, 2);
|
|
14520
14514
|
}
|
|
14521
14515
|
function td(e, t) {
|
|
14522
|
-
const r = e.slice(0, t), n = Math.min(
|
|
14516
|
+
const r = e.slice(0, t), n = Math.min(wa(r, 10), 23), o = e.slice(t), a = wa(o, 10), i = Math.min(a, 59);
|
|
14523
14517
|
return `${n.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
|
|
14524
14518
|
}
|
|
14525
14519
|
function lp(e, t) {
|
|
@@ -14538,37 +14532,37 @@ function zw(e) {
|
|
|
14538
14532
|
return H(e, "textarea") || H(e, "input") && e.type in up;
|
|
14539
14533
|
}
|
|
14540
14534
|
function cp(e, t, r, n) {
|
|
14541
|
-
if (
|
|
14535
|
+
if (na(e) && t + r >= 0 && t + r <= e.nodeValue.length)
|
|
14542
14536
|
return {
|
|
14543
14537
|
node: e,
|
|
14544
14538
|
offset: t + r
|
|
14545
14539
|
};
|
|
14546
14540
|
const o = rd(e, t, r);
|
|
14547
14541
|
if (o) {
|
|
14548
|
-
if (
|
|
14542
|
+
if (na(o))
|
|
14549
14543
|
return {
|
|
14550
14544
|
node: o,
|
|
14551
14545
|
offset: r > 0 ? Math.min(1, o.nodeValue.length) : Math.max(o.nodeValue.length - 1, 0)
|
|
14552
14546
|
};
|
|
14553
14547
|
if (H(o, "br")) {
|
|
14554
14548
|
const a = rd(o, void 0, r);
|
|
14555
|
-
return a ?
|
|
14549
|
+
return a ? na(a) ? {
|
|
14556
14550
|
node: a,
|
|
14557
14551
|
offset: r > 0 ? 0 : a.nodeValue.length
|
|
14558
14552
|
} : r < 0 && H(a, "br") ? {
|
|
14559
14553
|
node: o.parentNode,
|
|
14560
|
-
offset:
|
|
14554
|
+
offset: Xo(o)
|
|
14561
14555
|
} : {
|
|
14562
14556
|
node: a.parentNode,
|
|
14563
|
-
offset:
|
|
14557
|
+
offset: Xo(a) + (r > 0 ? 0 : 1)
|
|
14564
14558
|
} : r < 0 && n === "deleteContentBackward" ? {
|
|
14565
14559
|
node: o.parentNode,
|
|
14566
|
-
offset:
|
|
14560
|
+
offset: Xo(o)
|
|
14567
14561
|
} : void 0;
|
|
14568
14562
|
} else
|
|
14569
14563
|
return {
|
|
14570
14564
|
node: o.parentNode,
|
|
14571
|
-
offset:
|
|
14565
|
+
offset: Xo(o) + (r > 0 ? 1 : 0)
|
|
14572
14566
|
};
|
|
14573
14567
|
}
|
|
14574
14568
|
}
|
|
@@ -14577,7 +14571,7 @@ function rd(e, t, r) {
|
|
|
14577
14571
|
return t !== void 0 && xs(e) && n >= 0 && n < e.children.length && (e = e.children[n]), Hw(e, r === 1 ? "next" : "previous", Vw);
|
|
14578
14572
|
}
|
|
14579
14573
|
function Vw(e) {
|
|
14580
|
-
if (
|
|
14574
|
+
if (na(e))
|
|
14581
14575
|
return !0;
|
|
14582
14576
|
if (xs(e)) {
|
|
14583
14577
|
if (H(e, [
|
|
@@ -14590,7 +14584,7 @@ function Vw(e) {
|
|
|
14590
14584
|
}
|
|
14591
14585
|
return !1;
|
|
14592
14586
|
}
|
|
14593
|
-
function
|
|
14587
|
+
function Xo(e) {
|
|
14594
14588
|
let t = 0;
|
|
14595
14589
|
for (; e.previousSibling; )
|
|
14596
14590
|
t++, e = e.previousSibling;
|
|
@@ -14599,7 +14593,7 @@ function Jo(e) {
|
|
|
14599
14593
|
function xs(e) {
|
|
14600
14594
|
return e.nodeType === 1;
|
|
14601
14595
|
}
|
|
14602
|
-
function
|
|
14596
|
+
function na(e) {
|
|
14603
14597
|
return e.nodeType === 3;
|
|
14604
14598
|
}
|
|
14605
14599
|
function Hw(e, t, r) {
|
|
@@ -14880,7 +14874,7 @@ function wo(e, t, r) {
|
|
|
14880
14874
|
});
|
|
14881
14875
|
throw new Error("Not implemented. The result of this interaction is unreliable.");
|
|
14882
14876
|
}
|
|
14883
|
-
function
|
|
14877
|
+
function Jo(e, t, r) {
|
|
14884
14878
|
const n = _e(t), o = Array.from(t.ownerDocument.querySelectorAll(t.name ? `input[type="radio"][name="${n.CSS.escape(t.name)}"]` : 'input[type="radio"][name=""], input[type="radio"]:not([name])'));
|
|
14885
14879
|
for (let a = o.findIndex((i) => i === t) + r; ; a += r) {
|
|
14886
14880
|
if (o[a] || (a = r > 0 ? 0 : o.length - 1), o[a] === t)
|
|
@@ -14900,19 +14894,19 @@ const ad = {
|
|
|
14900
14894
|
if (H(t, "input", {
|
|
14901
14895
|
type: "radio"
|
|
14902
14896
|
}))
|
|
14903
|
-
return () =>
|
|
14897
|
+
return () => Jo(r, t, 1);
|
|
14904
14898
|
},
|
|
14905
14899
|
ArrowLeft: (e, t, r) => H(t, "input", {
|
|
14906
14900
|
type: "radio"
|
|
14907
|
-
}) ? () =>
|
|
14901
|
+
}) ? () => Jo(r, t, -1) : () => od(t, -1),
|
|
14908
14902
|
ArrowRight: (e, t, r) => H(t, "input", {
|
|
14909
14903
|
type: "radio"
|
|
14910
|
-
}) ? () =>
|
|
14904
|
+
}) ? () => Jo(r, t, 1) : () => od(t, 1),
|
|
14911
14905
|
ArrowUp: (e, t, r) => {
|
|
14912
14906
|
if (H(t, "input", {
|
|
14913
14907
|
type: "radio"
|
|
14914
14908
|
}))
|
|
14915
|
-
return () =>
|
|
14909
|
+
return () => Jo(r, t, -1);
|
|
14916
14910
|
},
|
|
14917
14911
|
Backspace: (e, t, r) => {
|
|
14918
14912
|
if (Et(t))
|
|
@@ -15319,18 +15313,18 @@ const pE = {
|
|
|
15319
15313
|
],
|
|
15320
15314
|
MouseEvent: [
|
|
15321
15315
|
go,
|
|
15322
|
-
|
|
15316
|
+
Ga,
|
|
15323
15317
|
sd
|
|
15324
15318
|
],
|
|
15325
15319
|
PointerEvent: [
|
|
15326
15320
|
go,
|
|
15327
|
-
|
|
15321
|
+
Ga,
|
|
15328
15322
|
sd,
|
|
15329
15323
|
gE
|
|
15330
15324
|
],
|
|
15331
15325
|
KeyboardEvent: [
|
|
15332
15326
|
go,
|
|
15333
|
-
|
|
15327
|
+
Ga,
|
|
15334
15328
|
yE
|
|
15335
15329
|
]
|
|
15336
15330
|
};
|
|
@@ -15434,7 +15428,7 @@ function go(e, { view: t, detail: r }) {
|
|
|
15434
15428
|
detail: ae(r ?? 0)
|
|
15435
15429
|
});
|
|
15436
15430
|
}
|
|
15437
|
-
function
|
|
15431
|
+
function Ga(e, { altKey: t, ctrlKey: r, metaKey: n, shiftKey: o, modifierAltGraph: a, modifierCapsLock: i, modifierFn: s, modifierFnLock: l, modifierNumLock: u, modifierScrollLock: c, modifierSymbol: f, modifierSymbolLock: d }) {
|
|
15438
15432
|
rt(e, {
|
|
15439
15433
|
altKey: !!t,
|
|
15440
15434
|
ctrlKey: !!r,
|
|
@@ -15585,16 +15579,16 @@ function ud(e) {
|
|
|
15585
15579
|
const t = Bo(e);
|
|
15586
15580
|
return t?.tagName === "BODY" ? null : t;
|
|
15587
15581
|
}
|
|
15588
|
-
const
|
|
15582
|
+
const Ka = Symbol("Interceptor for programmatical calls");
|
|
15589
15583
|
function bt(e, t, r) {
|
|
15590
15584
|
const n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), o = Object.getOwnPropertyDescriptor(e, t), a = n?.set ? "set" : "value";
|
|
15591
|
-
if (typeof n?.[a] != "function" || n[a][
|
|
15585
|
+
if (typeof n?.[a] != "function" || n[a][Ka])
|
|
15592
15586
|
throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);
|
|
15593
15587
|
function i(...s) {
|
|
15594
15588
|
const { applyNative: l = !1, realArgs: u, then: c } = r.call(this, ...s), f = (!l && o || n)[a];
|
|
15595
15589
|
a === "set" ? f.call(this, u) : f.call(this, ...u), c?.();
|
|
15596
15590
|
}
|
|
15597
|
-
i[
|
|
15591
|
+
i[Ka] = Ka, Object.defineProperty(e, t, {
|
|
15598
15592
|
...o ?? n,
|
|
15599
15593
|
[a]: i
|
|
15600
15594
|
});
|
|
@@ -15623,17 +15617,17 @@ function CE(e) {
|
|
|
15623
15617
|
Number(r),
|
|
15624
15618
|
...n
|
|
15625
15619
|
],
|
|
15626
|
-
then: () => o ? void 0 :
|
|
15620
|
+
then: () => o ? void 0 : ra(e)
|
|
15627
15621
|
};
|
|
15628
15622
|
}), bt(e, "selectionStart", function(r) {
|
|
15629
15623
|
return {
|
|
15630
15624
|
realArgs: r,
|
|
15631
|
-
then: () =>
|
|
15625
|
+
then: () => ra(e)
|
|
15632
15626
|
};
|
|
15633
15627
|
}), bt(e, "selectionEnd", function(r) {
|
|
15634
15628
|
return {
|
|
15635
15629
|
realArgs: r,
|
|
15636
|
-
then: () =>
|
|
15630
|
+
then: () => ra(e)
|
|
15637
15631
|
};
|
|
15638
15632
|
}), bt(e, "select", function() {
|
|
15639
15633
|
return {
|
|
@@ -15650,7 +15644,7 @@ function xE(e) {
|
|
|
15650
15644
|
return {
|
|
15651
15645
|
realArgs: r,
|
|
15652
15646
|
then: () => {
|
|
15653
|
-
Cs(e),
|
|
15647
|
+
Cs(e), ra(e);
|
|
15654
15648
|
}
|
|
15655
15649
|
};
|
|
15656
15650
|
});
|
|
@@ -15689,7 +15683,7 @@ var we = /* @__PURE__ */ (function(e) {
|
|
|
15689
15683
|
function Eo(e, t) {
|
|
15690
15684
|
e.levelRefs[t] = {};
|
|
15691
15685
|
}
|
|
15692
|
-
function
|
|
15686
|
+
function Qo(e, t) {
|
|
15693
15687
|
return e.levelRefs[t];
|
|
15694
15688
|
}
|
|
15695
15689
|
function qt(e) {
|
|
@@ -15700,7 +15694,7 @@ function qt(e) {
|
|
|
15700
15694
|
e.advanceTimers(t)
|
|
15701
15695
|
]);
|
|
15702
15696
|
}
|
|
15703
|
-
var
|
|
15697
|
+
var oa = /* @__PURE__ */ (function(e) {
|
|
15704
15698
|
return e[e.EachTrigger = 4] = "EachTrigger", e[e.EachApiCall = 2] = "EachApiCall", e[e.EachTarget = 1] = "EachTarget", e[e.Never = 0] = "Never", e;
|
|
15705
15699
|
})({});
|
|
15706
15700
|
function ot(e, t, r) {
|
|
@@ -15745,13 +15739,13 @@ class SE {
|
|
|
15745
15739
|
}
|
|
15746
15740
|
/** Press a key */
|
|
15747
15741
|
async keydown(t, r) {
|
|
15748
|
-
const n = String(r.key), o = String(r.code), a =
|
|
15742
|
+
const n = String(r.key), o = String(r.code), a = Fa(t.config.document);
|
|
15749
15743
|
this.setKeydownTarget(a), this.pressed.add(o, r), dd(n) && (this.modifiers[n] = !0);
|
|
15750
15744
|
const i = t.dispatchUIEvent(a, "keydown", {
|
|
15751
15745
|
key: n,
|
|
15752
15746
|
code: o
|
|
15753
15747
|
});
|
|
15754
|
-
fd(n) && !this.modifiers[n] && (this.modifiers[n] = !0, this.modifierLockStart[n] = !0), i && this.pressed.setUnprevented(o), i && this.hasKeyPress(n) && t.dispatchUIEvent(
|
|
15748
|
+
fd(n) && !this.modifiers[n] && (this.modifiers[n] = !0, this.modifierLockStart[n] = !0), i && this.pressed.setUnprevented(o), i && this.hasKeyPress(n) && t.dispatchUIEvent(Fa(t.config.document), "keypress", {
|
|
15755
15749
|
key: n,
|
|
15756
15750
|
code: o,
|
|
15757
15751
|
charCode: r.key === "Enter" ? 13 : String(r.key).charCodeAt(0)
|
|
@@ -15760,7 +15754,7 @@ class SE {
|
|
|
15760
15754
|
/** Release a key */
|
|
15761
15755
|
async keyup(t, r) {
|
|
15762
15756
|
const n = String(r.key), o = String(r.code), a = this.pressed.isUnprevented(o);
|
|
15763
|
-
this.pressed.delete(o), dd(n) && !this.pressed.values().find((i) => i.keyDef.key === n) && (this.modifiers[n] = !1), t.dispatchUIEvent(
|
|
15757
|
+
this.pressed.delete(o), dd(n) && !this.pressed.values().find((i) => i.keyDef.key === n) && (this.modifiers[n] = !1), t.dispatchUIEvent(Fa(t.config.document), "keyup", {
|
|
15764
15758
|
key: n,
|
|
15765
15759
|
code: o
|
|
15766
15760
|
}, !a), fd(n) && this.modifiers[n] && (this.modifierLockStart[n] ? this.modifierLockStart[n] = !1 : this.modifiers[n] = !1);
|
|
@@ -16030,7 +16024,7 @@ class Rp {
|
|
|
16030
16024
|
return t;
|
|
16031
16025
|
}
|
|
16032
16026
|
down(t) {
|
|
16033
|
-
const r =
|
|
16027
|
+
const r = Ei(t.button);
|
|
16034
16028
|
if (r in this.pressed) {
|
|
16035
16029
|
this.pressed[r].push(t);
|
|
16036
16030
|
return;
|
|
@@ -16040,7 +16034,7 @@ class Rp {
|
|
|
16040
16034
|
], r;
|
|
16041
16035
|
}
|
|
16042
16036
|
up(t) {
|
|
16043
|
-
const r =
|
|
16037
|
+
const r = Ei(t.button);
|
|
16044
16038
|
if (r in this.pressed && (this.pressed[r] = this.pressed[r].filter((n) => n.name !== t.name), this.pressed[r].length === 0))
|
|
16045
16039
|
return delete this.pressed[r], r;
|
|
16046
16040
|
}
|
|
@@ -16057,15 +16051,15 @@ const pd = {
|
|
|
16057
16051
|
forward: 4,
|
|
16058
16052
|
X2: 4
|
|
16059
16053
|
};
|
|
16060
|
-
function
|
|
16054
|
+
function Ei(e = 0) {
|
|
16061
16055
|
return e in pd ? pd[e] : Number(e);
|
|
16062
16056
|
}
|
|
16063
16057
|
const md = {
|
|
16064
16058
|
1: 2,
|
|
16065
16059
|
2: 1
|
|
16066
16060
|
};
|
|
16067
|
-
function
|
|
16068
|
-
return e =
|
|
16061
|
+
function Ci(e) {
|
|
16062
|
+
return e = Ei(e), e in md ? md[e] : e;
|
|
16069
16063
|
}
|
|
16070
16064
|
function IE(e, t, r) {
|
|
16071
16065
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -16108,7 +16102,7 @@ function qo(e, t) {
|
|
|
16108
16102
|
n.slice(n.length - o)
|
|
16109
16103
|
];
|
|
16110
16104
|
}
|
|
16111
|
-
function
|
|
16105
|
+
function xi({ target: e, node: t, offset: r }) {
|
|
16112
16106
|
return Oe(e) ? {
|
|
16113
16107
|
node: e,
|
|
16114
16108
|
offset: r ?? Me(e).length
|
|
@@ -16164,11 +16158,11 @@ function kE({ document: e, target: t, clickCount: r, node: n, offset: o }) {
|
|
|
16164
16158
|
end: l ?? i.length
|
|
16165
16159
|
};
|
|
16166
16160
|
{
|
|
16167
|
-
const { node: u, offset: c } =
|
|
16161
|
+
const { node: u, offset: c } = xi({
|
|
16168
16162
|
target: t,
|
|
16169
16163
|
node: n,
|
|
16170
16164
|
offset: s
|
|
16171
|
-
}), { node: f, offset: d } =
|
|
16165
|
+
}), { node: f, offset: d } = xi({
|
|
16172
16166
|
target: t,
|
|
16173
16167
|
node: n,
|
|
16174
16168
|
offset: l
|
|
@@ -16198,7 +16192,7 @@ function DE(e, t, r) {
|
|
|
16198
16192
|
];
|
|
16199
16193
|
}
|
|
16200
16194
|
function jE(e, { document: t, target: r, node: n, offset: o }) {
|
|
16201
|
-
const a =
|
|
16195
|
+
const a = xi({
|
|
16202
16196
|
target: r,
|
|
16203
16197
|
node: n,
|
|
16204
16198
|
offset: o
|
|
@@ -16255,7 +16249,7 @@ class $E {
|
|
|
16255
16249
|
const a = this.getTarget(t);
|
|
16256
16250
|
this.buttonDownTarget[o] = a;
|
|
16257
16251
|
const i = this.getEventInit("mousedown", r.button), s = We(a);
|
|
16258
|
-
!n && (s || t.dispatchUIEvent(a, "mousedown", i)) && (this.startSelecting(t, i.detail), et(a)), !s &&
|
|
16252
|
+
!n && (s || t.dispatchUIEvent(a, "mousedown", i)) && (this.startSelecting(t, i.detail), et(a)), !s && Ci(r.button) === 2 && t.dispatchUIEvent(a, "contextmenu", this.getEventInit("contextmenu", r.button));
|
|
16259
16253
|
}
|
|
16260
16254
|
up(t, r, n) {
|
|
16261
16255
|
const o = this.buttons.up(r);
|
|
@@ -16284,7 +16278,7 @@ class $E {
|
|
|
16284
16278
|
const n = {
|
|
16285
16279
|
...this.position.coords
|
|
16286
16280
|
};
|
|
16287
|
-
return n.button =
|
|
16281
|
+
return n.button = Ci(r), n.buttons = this.buttons.getButtons(), t === "mousedown" ? n.detail = this.clickCount.getOnDown(n.button) : t === "mouseup" ? n.detail = this.clickCount.getOnUp(n.button) : (t === "click" || t === "auxclick") && (n.detail = this.clickCount.incOnClick(n.button)), n;
|
|
16288
16282
|
}
|
|
16289
16283
|
getTarget(t) {
|
|
16290
16284
|
var r;
|
|
@@ -16342,7 +16336,7 @@ class $E {
|
|
|
16342
16336
|
}());
|
|
16343
16337
|
}
|
|
16344
16338
|
}
|
|
16345
|
-
function
|
|
16339
|
+
function Ea(e, t) {
|
|
16346
16340
|
var r;
|
|
16347
16341
|
return ((r = Cp(e, t)) === null || r === void 0 ? void 0 : r.pointerEvents) !== "none";
|
|
16348
16342
|
}
|
|
@@ -16364,12 +16358,12 @@ function BE(e) {
|
|
|
16364
16358
|
const hd = Symbol("Last check for pointer-events");
|
|
16365
16359
|
function Cp(e, t) {
|
|
16366
16360
|
const r = t[hd];
|
|
16367
|
-
if (!(e.config.pointerEventsCheck !==
|
|
16361
|
+
if (!(e.config.pointerEventsCheck !== oa.Never && (!r || bd(e.config.pointerEventsCheck, oa.EachApiCall) && r[we.Call] !== Qo(e, we.Call) || bd(e.config.pointerEventsCheck, oa.EachTrigger) && r[we.Trigger] !== Qo(e, we.Trigger))))
|
|
16368
16362
|
return r?.result;
|
|
16369
16363
|
const o = BE(t);
|
|
16370
16364
|
return t[hd] = {
|
|
16371
|
-
[we.Call]:
|
|
16372
|
-
[we.Trigger]:
|
|
16365
|
+
[we.Call]: Qo(e, we.Call),
|
|
16366
|
+
[we.Trigger]: Qo(e, we.Trigger),
|
|
16373
16367
|
result: o
|
|
16374
16368
|
}, o;
|
|
16375
16369
|
}
|
|
@@ -16445,7 +16439,7 @@ class UE {
|
|
|
16445
16439
|
const a = this.getTarget(t), i = this.getEventInit(-1), [s, l] = qo(o, a);
|
|
16446
16440
|
return {
|
|
16447
16441
|
leave: () => {
|
|
16448
|
-
|
|
16442
|
+
Ea(t, o) && o !== a && (t.dispatchUIEvent(o, "pointerout", i), s.forEach((u) => t.dispatchUIEvent(u, "pointerleave", i)));
|
|
16449
16443
|
},
|
|
16450
16444
|
enter: () => {
|
|
16451
16445
|
Co(t, a), o !== a && (t.dispatchUIEvent(a, "pointerover", i), l.forEach((u) => t.dispatchUIEvent(u, "pointerenter", i)));
|
|
@@ -16469,7 +16463,7 @@ class UE {
|
|
|
16469
16463
|
}
|
|
16470
16464
|
release(t) {
|
|
16471
16465
|
const r = this.getTarget(t), [n] = qo(r, null), o = this.getEventInit();
|
|
16472
|
-
|
|
16466
|
+
Ea(t, r) && (t.dispatchUIEvent(r, "pointerout", o), n.forEach((a) => t.dispatchUIEvent(a, "pointerleave", o))), this.isCancelled = !0;
|
|
16473
16467
|
}
|
|
16474
16468
|
getTarget(t) {
|
|
16475
16469
|
var r;
|
|
@@ -16481,7 +16475,7 @@ class UE {
|
|
|
16481
16475
|
pointerId: this.pointerId,
|
|
16482
16476
|
pointerType: this.pointerType,
|
|
16483
16477
|
isPrimary: this.isPrimary,
|
|
16484
|
-
button:
|
|
16478
|
+
button: Ci(t),
|
|
16485
16479
|
buttons: this.buttons.getButtons()
|
|
16486
16480
|
};
|
|
16487
16481
|
}
|
|
@@ -16899,11 +16893,11 @@ async function Sp(e, t, r) {
|
|
|
16899
16893
|
if (H(t, "select"))
|
|
16900
16894
|
if (t.multiple)
|
|
16901
16895
|
for (const s of a) {
|
|
16902
|
-
const l = this.config.pointerEventsCheck === 0 ? !0 :
|
|
16896
|
+
const l = this.config.pointerEventsCheck === 0 ? !0 : Ea(this, s);
|
|
16903
16897
|
l && (this.dispatchUIEvent(s, "pointerover"), this.dispatchUIEvent(t, "pointerenter"), this.dispatchUIEvent(s, "mouseover"), this.dispatchUIEvent(t, "mouseenter"), this.dispatchUIEvent(s, "pointermove"), this.dispatchUIEvent(s, "mousemove"), this.dispatchUIEvent(s, "pointerdown"), this.dispatchUIEvent(s, "mousedown")), et(t), l && (this.dispatchUIEvent(s, "pointerup"), this.dispatchUIEvent(s, "mouseup")), i(s), l && this.dispatchUIEvent(s, "click"), await qt(this.config);
|
|
16904
16898
|
}
|
|
16905
16899
|
else if (a.length === 1) {
|
|
16906
|
-
const s = this.config.pointerEventsCheck === 0 ? !0 :
|
|
16900
|
+
const s = this.config.pointerEventsCheck === 0 ? !0 : Ea(this, t);
|
|
16907
16901
|
s ? await this.click(t) : et(t), i(a[0]), s && (this.dispatchUIEvent(t, "pointerover"), this.dispatchUIEvent(t, "pointerenter"), this.dispatchUIEvent(t, "mouseover"), this.dispatchUIEvent(t, "mouseenter"), this.dispatchUIEvent(t, "pointerup"), this.dispatchUIEvent(t, "mouseup"), this.dispatchUIEvent(t, "click")), await qt(this.config);
|
|
16908
16902
|
} else
|
|
16909
16903
|
throw Q().getElementError("Cannot select multiple options on a non-multiple select", t);
|
|
@@ -16917,7 +16911,7 @@ async function mC(e, t, { skipClick: r = this.config.skipClick, skipAutoClose: n
|
|
|
16917
16911
|
e.disabled || (r || await this.click(e), o !== void 0 && wo(e, o, a ?? o), await this.keyboard(t), n || await rC(this));
|
|
16918
16912
|
}
|
|
16919
16913
|
const Rd = Symbol("files and value properties are mocked");
|
|
16920
|
-
function
|
|
16914
|
+
function Ya(e, t, r) {
|
|
16921
16915
|
r ? Object.defineProperty(e, t, r) : delete e[t];
|
|
16922
16916
|
}
|
|
16923
16917
|
function hC(e, t) {
|
|
@@ -16925,7 +16919,7 @@ function hC(e, t) {
|
|
|
16925
16919
|
(r = e[Rd]) === null || r === void 0 || r.restore();
|
|
16926
16920
|
const n = Object.getOwnPropertyDescriptor(e, "type"), o = Object.getOwnPropertyDescriptor(e, "value"), a = Object.getOwnPropertyDescriptor(e, "files");
|
|
16927
16921
|
function i() {
|
|
16928
|
-
|
|
16922
|
+
Ya(e, "type", n), Ya(e, "value", o), Ya(e, "files", a);
|
|
16929
16923
|
}
|
|
16930
16924
|
e[Rd] = {
|
|
16931
16925
|
restore: i
|
|
@@ -16973,7 +16967,7 @@ async function bC(e, t) {
|
|
|
16973
16967
|
};
|
|
16974
16968
|
r.addEventListener("fileDialog", o), await this.click(e), r.removeEventListener("fileDialog", o);
|
|
16975
16969
|
}
|
|
16976
|
-
function
|
|
16970
|
+
function Zo(e) {
|
|
16977
16971
|
return e.toLowerCase().replace(/(\.|\/)jpg\b/g, "$1jpeg");
|
|
16978
16972
|
}
|
|
16979
16973
|
function vC(e, t) {
|
|
@@ -16984,7 +16978,7 @@ function vC(e, t) {
|
|
|
16984
16978
|
"image/*",
|
|
16985
16979
|
"video/*"
|
|
16986
16980
|
];
|
|
16987
|
-
return
|
|
16981
|
+
return Zo(t).trim().split(/\s*,\s*/).some((n) => n.startsWith(".") ? Zo(e.name).endsWith(n) : r.includes(n) ? Zo(e.type).startsWith(n.replace("*", "")) : Zo(e.type) === n);
|
|
16988
16982
|
}
|
|
16989
16983
|
const wd = {
|
|
16990
16984
|
click: VE,
|
|
@@ -17014,7 +17008,7 @@ const Ap = {
|
|
|
17014
17008
|
document: globalThis.document,
|
|
17015
17009
|
keyboardMap: AE,
|
|
17016
17010
|
pointerMap: OE,
|
|
17017
|
-
pointerEventsCheck:
|
|
17011
|
+
pointerEventsCheck: oa.EachApiCall,
|
|
17018
17012
|
skipAutoClose: !1,
|
|
17019
17013
|
skipClick: !1,
|
|
17020
17014
|
skipHover: !1,
|
|
@@ -17199,7 +17193,7 @@ const px = Mp(FC);
|
|
|
17199
17193
|
fe.truncateThreshold = 0;
|
|
17200
17194
|
export {
|
|
17201
17195
|
GC as TWDSidebar,
|
|
17202
|
-
|
|
17196
|
+
pa as expect,
|
|
17203
17197
|
KC as initTests,
|
|
17204
17198
|
qm as twd,
|
|
17205
17199
|
px as userEvent
|