@layerzerolabs/typescript-utils 0.2.6 → 0.2.7
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/.turbo/turbo-build.log +130 -128
- package/.turbo/turbo-lint.log +4 -0
- package/dist/{U7VZULNU.cjs → 24WEKBY3.cjs} +5 -12
- package/dist/24WEKBY3.cjs.map +1 -0
- package/dist/2MZ52QXI.cjs +8 -0
- package/dist/{M2FMGCRF.cjs.map → 2MZ52QXI.cjs.map} +1 -1
- package/dist/2OSBYVBM.cjs +8 -0
- package/dist/{Q74ZLWCL.cjs.map → 2OSBYVBM.cjs.map} +1 -1
- package/dist/2SJJDCZI.cjs +8 -0
- package/dist/{44IBECAR.cjs.map → 2SJJDCZI.cjs.map} +1 -1
- package/dist/4W25K7RR.cjs +8 -0
- package/dist/{VLOINXK2.cjs.map → 4W25K7RR.cjs.map} +1 -1
- package/dist/53OHF4EH.cjs +8 -0
- package/dist/{BPWNPHCG.cjs.map → 53OHF4EH.cjs.map} +1 -1
- package/dist/574X5FJM.cjs +8 -0
- package/dist/{HKAX3PXE.cjs.map → 574X5FJM.cjs.map} +1 -1
- package/dist/62TVLGZP.js +6 -0
- package/dist/{62A6WP5R.js.map → 62TVLGZP.js.map} +1 -1
- package/dist/{4RNWLMHM.js → 6AHA7PAZ.js} +8 -13
- package/dist/6AHA7PAZ.js.map +1 -0
- package/dist/6IUBP3YE.js +6 -0
- package/dist/{DXU6T5SS.js.map → 6IUBP3YE.js.map} +1 -1
- package/dist/{Q3ERQ4ME.cjs → 7BSTQVJO.cjs} +957 -884
- package/dist/7BSTQVJO.cjs.map +1 -0
- package/dist/7RPBI4LQ.cjs +8 -0
- package/dist/{5UH6HTHX.cjs.map → 7RPBI4LQ.cjs.map} +1 -1
- package/dist/AKBGASRF.cjs +8 -0
- package/dist/{Y53SFKBY.cjs.map → AKBGASRF.cjs.map} +1 -1
- package/dist/B5GSIBEU.js +6 -0
- package/dist/{7MFOZW3L.js.map → B5GSIBEU.js.map} +1 -1
- package/dist/C7GMKBCN.cjs +8 -0
- package/dist/{TOWGFQYX.cjs.map → C7GMKBCN.cjs.map} +1 -1
- package/dist/CFTTK4D6.js +6 -0
- package/dist/{TU2BPRNU.js.map → CFTTK4D6.js.map} +1 -1
- package/dist/{AYCOZKHR.js → CI7BVOAG.js} +539 -466
- package/dist/CI7BVOAG.js.map +1 -0
- package/dist/DDDCRYAA.js +6 -0
- package/dist/{HVKBLL5V.js.map → DDDCRYAA.js.map} +1 -1
- package/dist/EFBUJ7T4.cjs +8 -0
- package/dist/{GKC44C4P.cjs.map → EFBUJ7T4.cjs.map} +1 -1
- package/dist/ENRZFLLD.js +6 -0
- package/dist/{GHCFU27L.js.map → ENRZFLLD.js.map} +1 -1
- package/dist/{AMF2EES3.cjs → EUBM3LSR.cjs} +42 -27
- package/dist/EUBM3LSR.cjs.map +1 -0
- package/dist/FQ2L5NQU.js +6 -0
- package/dist/{TML6PHUW.js.map → FQ2L5NQU.js.map} +1 -1
- package/dist/{XM743A75.js → GGKJNPTT.js} +22 -7
- package/dist/GGKJNPTT.js.map +1 -0
- package/dist/I5NXBMAF.js +6 -0
- package/dist/{FPWOFXCL.js.map → I5NXBMAF.js.map} +1 -1
- package/dist/K3FZ3EZT.cjs +8 -0
- package/dist/{KLHW5WN3.cjs.map → K3FZ3EZT.cjs.map} +1 -1
- package/dist/KEJFF7VD.js +6 -0
- package/dist/{C2AO2CD6.js.map → KEJFF7VD.js.map} +1 -1
- package/dist/KZQATXOW.js +6 -0
- package/dist/{TDMZOP4J.js.map → KZQATXOW.js.map} +1 -1
- package/dist/MLSONTXK.cjs +8 -0
- package/dist/{B77ZZJ5J.cjs.map → MLSONTXK.cjs.map} +1 -1
- package/dist/NKWLAYNJ.cjs +8 -0
- package/dist/{FQTDMGIM.cjs.map → NKWLAYNJ.cjs.map} +1 -1
- package/dist/P3JODCMF.js +6 -0
- package/dist/{MNZ3MKHF.js.map → P3JODCMF.js.map} +1 -1
- package/dist/Q35ZNXMT.cjs +8 -0
- package/dist/{JRGCWPQC.cjs.map → Q35ZNXMT.cjs.map} +1 -1
- package/dist/Q6UBIYTZ.js +6 -0
- package/dist/{FSZMZLCN.js.map → Q6UBIYTZ.js.map} +1 -1
- package/dist/TQNP6GIE.js +6 -0
- package/dist/{ZPWIEOJR.js.map → TQNP6GIE.js.map} +1 -1
- package/dist/TVCGTTL5.cjs +8 -0
- package/dist/{ZLF3Y44J.cjs.map → TVCGTTL5.cjs.map} +1 -1
- package/dist/V353KAGF.js +6 -0
- package/dist/{N3MJTAM7.js.map → V353KAGF.js.map} +1 -1
- package/dist/X6GYSLZB.js +6 -0
- package/dist/{3OBHE7MG.js.map → X6GYSLZB.js.map} +1 -1
- package/dist/ZDGUYQPS.cjs +8 -0
- package/dist/{ATSF4XM5.cjs.map → ZDGUYQPS.cjs.map} +1 -1
- package/dist/ZS6LQCLY.js +6 -0
- package/dist/{BLALMGVL.js.map → ZS6LQCLY.js.map} +1 -1
- package/dist/advancedRecord.cjs +2 -2
- package/dist/advancedRecord.js +2 -2
- package/dist/branded.cjs +2 -2
- package/dist/branded.js +2 -2
- package/dist/constructor.cjs +2 -2
- package/dist/constructor.js +2 -2
- package/dist/deep.cjs +2 -2
- package/dist/deep.js +2 -2
- package/dist/deep.test-d.cjs +8 -8
- package/dist/deep.test-d.cjs.map +1 -1
- package/dist/deep.test-d.js +2 -2
- package/dist/disallowedAny.cjs +2 -2
- package/dist/disallowedAny.js +2 -2
- package/dist/identity.cjs +2 -2
- package/dist/identity.js +2 -2
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -17
- package/dist/lastOf.cjs +2 -2
- package/dist/lastOf.js +2 -2
- package/dist/maybeUndefined.cjs +2 -2
- package/dist/maybeUndefined.js +2 -2
- package/dist/merge.cjs +2 -2
- package/dist/merge.js +2 -2
- package/dist/methodOf.cjs +2 -2
- package/dist/methodOf.js +2 -2
- package/dist/removeNever.cjs +2 -2
- package/dist/removeNever.js +2 -2
- package/dist/strings.cjs +2 -2
- package/dist/strings.js +2 -2
- package/dist/strings.test-d.cjs +13 -13
- package/dist/strings.test-d.cjs.map +1 -1
- package/dist/strings.test-d.js +2 -2
- package/dist/tuples.cjs +2 -2
- package/dist/tuples.js +2 -2
- package/dist/valueOf.cjs +2 -2
- package/dist/valueOf.js +2 -2
- package/dist/viem.cjs +2 -2
- package/dist/viem.js +2 -2
- package/dist/withRequired.cjs +2 -2
- package/dist/withRequired.js +2 -2
- package/package.json +3 -3
- package/dist/3OBHE7MG.js +0 -6
- package/dist/44IBECAR.cjs +0 -8
- package/dist/4RNWLMHM.js.map +0 -1
- package/dist/5UH6HTHX.cjs +0 -8
- package/dist/62A6WP5R.js +0 -6
- package/dist/7MFOZW3L.js +0 -6
- package/dist/AMF2EES3.cjs.map +0 -1
- package/dist/ATSF4XM5.cjs +0 -8
- package/dist/AYCOZKHR.js.map +0 -1
- package/dist/B77ZZJ5J.cjs +0 -8
- package/dist/BLALMGVL.js +0 -6
- package/dist/BPWNPHCG.cjs +0 -8
- package/dist/C2AO2CD6.js +0 -6
- package/dist/DXU6T5SS.js +0 -6
- package/dist/FPWOFXCL.js +0 -6
- package/dist/FQTDMGIM.cjs +0 -8
- package/dist/FSZMZLCN.js +0 -6
- package/dist/GHCFU27L.js +0 -6
- package/dist/GKC44C4P.cjs +0 -8
- package/dist/HKAX3PXE.cjs +0 -8
- package/dist/HVKBLL5V.js +0 -6
- package/dist/JRGCWPQC.cjs +0 -8
- package/dist/KLHW5WN3.cjs +0 -8
- package/dist/M2FMGCRF.cjs +0 -8
- package/dist/MNZ3MKHF.js +0 -6
- package/dist/N3MJTAM7.js +0 -6
- package/dist/Q3ERQ4ME.cjs.map +0 -1
- package/dist/Q74ZLWCL.cjs +0 -8
- package/dist/TDMZOP4J.js +0 -6
- package/dist/TML6PHUW.js +0 -6
- package/dist/TOWGFQYX.cjs +0 -8
- package/dist/TU2BPRNU.js +0 -6
- package/dist/U7VZULNU.cjs.map +0 -1
- package/dist/VLOINXK2.cjs +0 -8
- package/dist/XM743A75.js.map +0 -1
- package/dist/Y53SFKBY.cjs +0 -8
- package/dist/ZLF3Y44J.cjs +0 -8
- package/dist/ZPWIEOJR.js +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _24WEKBY3_cjs = require('./24WEKBY3.cjs');
|
|
4
4
|
var tty = require('tty');
|
|
5
5
|
|
|
6
6
|
// ../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
|
|
7
|
-
var require_js_tokens =
|
|
8
|
-
"../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js"(exports, module) {
|
|
9
|
-
|
|
7
|
+
var require_js_tokens = _24WEKBY3_cjs.__commonJS({
|
|
8
|
+
"../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js"(exports$1, module) {
|
|
9
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
10
10
|
var HashbangComment;
|
|
11
11
|
var Identifier;
|
|
12
12
|
var JSXIdentifier;
|
|
@@ -47,7 +47,7 @@ var require_js_tokens = U7VZULNU_cjs.__commonJS({
|
|
|
47
47
|
KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;
|
|
48
48
|
KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;
|
|
49
49
|
Newline = RegExp(LineTerminatorSequence.source);
|
|
50
|
-
module.exports = /* @__PURE__ */
|
|
50
|
+
module.exports = /* @__PURE__ */ _24WEKBY3_cjs.__name(function* (input, { jsx = false } = {}) {
|
|
51
51
|
var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
|
|
52
52
|
({ length } = input);
|
|
53
53
|
lastIndex = 0;
|
|
@@ -435,57 +435,57 @@ var require_js_tokens = U7VZULNU_cjs.__commonJS({
|
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
|
|
438
|
-
// ../../node_modules/.pnpm/expect-type@1.2.
|
|
439
|
-
var require_branding =
|
|
440
|
-
"../../node_modules/.pnpm/expect-type@1.2.
|
|
441
|
-
|
|
442
|
-
Object.defineProperty(exports, "__esModule", {
|
|
438
|
+
// ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js
|
|
439
|
+
var require_branding = _24WEKBY3_cjs.__commonJS({
|
|
440
|
+
"../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js"(exports$1) {
|
|
441
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
442
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
443
443
|
value: true
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
|
|
448
|
-
// ../../node_modules/.pnpm/expect-type@1.2.
|
|
449
|
-
var require_messages =
|
|
450
|
-
"../../node_modules/.pnpm/expect-type@1.2.
|
|
451
|
-
|
|
452
|
-
Object.defineProperty(exports, "__esModule", {
|
|
448
|
+
// ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js
|
|
449
|
+
var require_messages = _24WEKBY3_cjs.__commonJS({
|
|
450
|
+
"../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js"(exports$1) {
|
|
451
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
452
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
453
453
|
value: true
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
457
|
|
|
458
|
-
// ../../node_modules/.pnpm/expect-type@1.2.
|
|
459
|
-
var require_overloads =
|
|
460
|
-
"../../node_modules/.pnpm/expect-type@1.2.
|
|
461
|
-
|
|
462
|
-
Object.defineProperty(exports, "__esModule", {
|
|
458
|
+
// ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js
|
|
459
|
+
var require_overloads = _24WEKBY3_cjs.__commonJS({
|
|
460
|
+
"../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js"(exports$1) {
|
|
461
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
462
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
463
463
|
value: true
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
});
|
|
467
467
|
|
|
468
|
-
// ../../node_modules/.pnpm/expect-type@1.2.
|
|
469
|
-
var require_utils =
|
|
470
|
-
"../../node_modules/.pnpm/expect-type@1.2.
|
|
471
|
-
|
|
472
|
-
Object.defineProperty(exports, "__esModule", {
|
|
468
|
+
// ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js
|
|
469
|
+
var require_utils = _24WEKBY3_cjs.__commonJS({
|
|
470
|
+
"../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js"(exports$1) {
|
|
471
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
472
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
473
473
|
value: true
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
});
|
|
477
477
|
|
|
478
|
-
// ../../node_modules/.pnpm/expect-type@1.2.
|
|
479
|
-
var require_dist =
|
|
480
|
-
"../../node_modules/.pnpm/expect-type@1.2.
|
|
481
|
-
|
|
482
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2, k, k2) {
|
|
478
|
+
// ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js
|
|
479
|
+
var require_dist = _24WEKBY3_cjs.__commonJS({
|
|
480
|
+
"../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js"(exports$1) {
|
|
481
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
482
|
+
var __createBinding = exports$1 && exports$1.__createBinding || (Object.create ? function(o, m2, k, k2) {
|
|
483
483
|
if (k2 === void 0) k2 = k;
|
|
484
484
|
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
|
485
485
|
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
486
486
|
desc = {
|
|
487
487
|
enumerable: true,
|
|
488
|
-
get: /* @__PURE__ */
|
|
488
|
+
get: /* @__PURE__ */ _24WEKBY3_cjs.__name(function() {
|
|
489
489
|
return m2[k];
|
|
490
490
|
}, "get")
|
|
491
491
|
};
|
|
@@ -495,19 +495,19 @@ var require_dist = U7VZULNU_cjs.__commonJS({
|
|
|
495
495
|
if (k2 === void 0) k2 = k;
|
|
496
496
|
o[k2] = m2[k];
|
|
497
497
|
});
|
|
498
|
-
var __exportStar = exports && exports.__exportStar || function(m2, exports1) {
|
|
498
|
+
var __exportStar = exports$1 && exports$1.__exportStar || function(m2, exports1) {
|
|
499
499
|
for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports1, p2)) __createBinding(exports1, m2, p2);
|
|
500
500
|
};
|
|
501
|
-
Object.defineProperty(exports, "__esModule", {
|
|
501
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
502
502
|
value: true
|
|
503
503
|
});
|
|
504
|
-
exports.expectTypeOf = void 0;
|
|
505
|
-
__exportStar(require_branding(), exports);
|
|
506
|
-
__exportStar(require_messages(), exports);
|
|
507
|
-
__exportStar(require_overloads(), exports);
|
|
508
|
-
__exportStar(require_utils(), exports);
|
|
509
|
-
var fn = /* @__PURE__ */
|
|
510
|
-
var expectTypeOf2 = /* @__PURE__ */
|
|
504
|
+
exports$1.expectTypeOf = void 0;
|
|
505
|
+
__exportStar(require_branding(), exports$1);
|
|
506
|
+
__exportStar(require_messages(), exports$1);
|
|
507
|
+
__exportStar(require_overloads(), exports$1);
|
|
508
|
+
__exportStar(require_utils(), exports$1);
|
|
509
|
+
var fn = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => true, "fn");
|
|
510
|
+
var expectTypeOf2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((_actual) => {
|
|
511
511
|
const nonFunctionProperties = [
|
|
512
512
|
"parameters",
|
|
513
513
|
"returns",
|
|
@@ -543,42 +543,42 @@ var require_dist = U7VZULNU_cjs.__commonJS({
|
|
|
543
543
|
toBeConstructibleWith: fn,
|
|
544
544
|
toMatchObjectType: fn,
|
|
545
545
|
toExtend: fn,
|
|
546
|
-
map: exports.expectTypeOf,
|
|
547
|
-
toBeCallableWith: exports.expectTypeOf,
|
|
548
|
-
extract: exports.expectTypeOf,
|
|
549
|
-
exclude: exports.expectTypeOf,
|
|
550
|
-
pick: exports.expectTypeOf,
|
|
551
|
-
omit: exports.expectTypeOf,
|
|
552
|
-
toHaveProperty: exports.expectTypeOf,
|
|
553
|
-
parameter: exports.expectTypeOf
|
|
546
|
+
map: exports$1.expectTypeOf,
|
|
547
|
+
toBeCallableWith: exports$1.expectTypeOf,
|
|
548
|
+
extract: exports$1.expectTypeOf,
|
|
549
|
+
exclude: exports$1.expectTypeOf,
|
|
550
|
+
pick: exports$1.expectTypeOf,
|
|
551
|
+
omit: exports$1.expectTypeOf,
|
|
552
|
+
toHaveProperty: exports$1.expectTypeOf,
|
|
553
|
+
parameter: exports$1.expectTypeOf
|
|
554
554
|
};
|
|
555
555
|
const getterProperties = nonFunctionProperties;
|
|
556
556
|
getterProperties.forEach((prop) => Object.defineProperty(obj, prop, {
|
|
557
|
-
get: /* @__PURE__ */
|
|
557
|
+
get: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => (0, exports$1.expectTypeOf)({}), "get")
|
|
558
558
|
}));
|
|
559
559
|
return obj;
|
|
560
560
|
}, "expectTypeOf");
|
|
561
|
-
exports.expectTypeOf = expectTypeOf2;
|
|
561
|
+
exports$1.expectTypeOf = expectTypeOf2;
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
564
|
|
|
565
|
-
// ../../node_modules/.pnpm/@vitest+runner@3.2.
|
|
566
|
-
|
|
565
|
+
// ../../node_modules/.pnpm/@vitest+runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js
|
|
566
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
567
567
|
|
|
568
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
569
|
-
|
|
568
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/index.js
|
|
569
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
570
570
|
|
|
571
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
572
|
-
|
|
571
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
572
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
573
573
|
|
|
574
|
-
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.
|
|
575
|
-
|
|
574
|
+
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js
|
|
575
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
576
576
|
|
|
577
577
|
// ../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js
|
|
578
|
-
|
|
578
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
579
579
|
|
|
580
580
|
// ../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
581
|
-
|
|
581
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
582
582
|
var f = {
|
|
583
583
|
reset: [
|
|
584
584
|
0,
|
|
@@ -751,38 +751,38 @@ var h = Object.entries(f);
|
|
|
751
751
|
function a(n) {
|
|
752
752
|
return String(n);
|
|
753
753
|
}
|
|
754
|
-
|
|
754
|
+
_24WEKBY3_cjs.__name(a, "a");
|
|
755
755
|
a.open = "";
|
|
756
756
|
a.close = "";
|
|
757
757
|
function C(n = false) {
|
|
758
758
|
let e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];
|
|
759
759
|
return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome;
|
|
760
760
|
}
|
|
761
|
-
|
|
761
|
+
_24WEKBY3_cjs.__name(C, "C");
|
|
762
762
|
function p(n = false) {
|
|
763
|
-
let e = C(n), i = /* @__PURE__ */
|
|
763
|
+
let e = C(n), i = /* @__PURE__ */ _24WEKBY3_cjs.__name((r2, t, c, o) => {
|
|
764
764
|
let l = "", s2 = 0;
|
|
765
765
|
do
|
|
766
766
|
l += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
|
|
767
767
|
while (~o);
|
|
768
768
|
return l + r2.substring(s2);
|
|
769
|
-
}, "i"), g = /* @__PURE__ */
|
|
770
|
-
let o = /* @__PURE__ */
|
|
769
|
+
}, "i"), g = /* @__PURE__ */ _24WEKBY3_cjs.__name((r2, t, c = r2) => {
|
|
770
|
+
let o = /* @__PURE__ */ _24WEKBY3_cjs.__name((l) => {
|
|
771
771
|
let s2 = String(l), b = s2.indexOf(t, r2.length);
|
|
772
772
|
return ~b ? r2 + i(s2, t, c, b) + t : r2 + s2 + t;
|
|
773
773
|
}, "o");
|
|
774
774
|
return o.open = r2, o.close = t, o;
|
|
775
775
|
}, "g"), u2 = {
|
|
776
776
|
isColorSupported: e
|
|
777
|
-
}, d = /* @__PURE__ */
|
|
777
|
+
}, d = /* @__PURE__ */ _24WEKBY3_cjs.__name((r2) => `\x1B[${r2}m`, "d");
|
|
778
778
|
for (let [r2, t] of h) u2[r2] = e ? g(d(t[0]), d(t[1]), t[2]) : a;
|
|
779
779
|
return u2;
|
|
780
780
|
}
|
|
781
|
-
|
|
781
|
+
_24WEKBY3_cjs.__name(p, "p");
|
|
782
782
|
var r = process.env.FORCE_TTY !== void 0 || tty.isatty(1);
|
|
783
783
|
p(r);
|
|
784
784
|
|
|
785
|
-
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.
|
|
785
|
+
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js
|
|
786
786
|
function _mergeNamespaces$1(n, m2) {
|
|
787
787
|
m2.forEach(function(e) {
|
|
788
788
|
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
@@ -790,7 +790,7 @@ function _mergeNamespaces$1(n, m2) {
|
|
|
790
790
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
791
791
|
Object.defineProperty(n, k, d.get ? d : {
|
|
792
792
|
enumerable: true,
|
|
793
|
-
get: /* @__PURE__ */
|
|
793
|
+
get: /* @__PURE__ */ _24WEKBY3_cjs.__name(function() {
|
|
794
794
|
return e[k];
|
|
795
795
|
}, "get")
|
|
796
796
|
});
|
|
@@ -799,7 +799,7 @@ function _mergeNamespaces$1(n, m2) {
|
|
|
799
799
|
});
|
|
800
800
|
return Object.freeze(n);
|
|
801
801
|
}
|
|
802
|
-
|
|
802
|
+
_24WEKBY3_cjs.__name(_mergeNamespaces$1, "_mergeNamespaces");
|
|
803
803
|
function getKeysOfEnumerableProperties(object, compareKeys) {
|
|
804
804
|
const rawKeys = Object.keys(object);
|
|
805
805
|
const keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);
|
|
@@ -812,7 +812,7 @@ function getKeysOfEnumerableProperties(object, compareKeys) {
|
|
|
812
812
|
}
|
|
813
813
|
return keys;
|
|
814
814
|
}
|
|
815
|
-
|
|
815
|
+
_24WEKBY3_cjs.__name(getKeysOfEnumerableProperties, "getKeysOfEnumerableProperties");
|
|
816
816
|
function printIteratorEntries(iterator, config2, indentation, depth, refs, printer, separator = ": ") {
|
|
817
817
|
let result = "";
|
|
818
818
|
let width = 0;
|
|
@@ -840,7 +840,7 @@ function printIteratorEntries(iterator, config2, indentation, depth, refs, print
|
|
|
840
840
|
}
|
|
841
841
|
return result;
|
|
842
842
|
}
|
|
843
|
-
|
|
843
|
+
_24WEKBY3_cjs.__name(printIteratorEntries, "printIteratorEntries");
|
|
844
844
|
function printIteratorValues(iterator, config2, indentation, depth, refs, printer) {
|
|
845
845
|
let result = "";
|
|
846
846
|
let width = 0;
|
|
@@ -866,11 +866,11 @@ function printIteratorValues(iterator, config2, indentation, depth, refs, printe
|
|
|
866
866
|
}
|
|
867
867
|
return result;
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
_24WEKBY3_cjs.__name(printIteratorValues, "printIteratorValues");
|
|
870
870
|
function printListItems(list, config2, indentation, depth, refs, printer) {
|
|
871
871
|
let result = "";
|
|
872
872
|
list = list instanceof ArrayBuffer ? new DataView(list) : list;
|
|
873
|
-
const isDataView = /* @__PURE__ */
|
|
873
|
+
const isDataView = /* @__PURE__ */ _24WEKBY3_cjs.__name((l) => l instanceof DataView, "isDataView");
|
|
874
874
|
const length = isDataView(list) ? list.byteLength : list.length;
|
|
875
875
|
if (length > 0) {
|
|
876
876
|
result += config2.spacingOuter;
|
|
@@ -894,7 +894,7 @@ function printListItems(list, config2, indentation, depth, refs, printer) {
|
|
|
894
894
|
}
|
|
895
895
|
return result;
|
|
896
896
|
}
|
|
897
|
-
|
|
897
|
+
_24WEKBY3_cjs.__name(printListItems, "printListItems");
|
|
898
898
|
function printObjectProperties(val, config2, indentation, depth, refs, printer) {
|
|
899
899
|
let result = "";
|
|
900
900
|
const keys = getKeysOfEnumerableProperties(val, config2.compareKeys);
|
|
@@ -916,7 +916,7 @@ function printObjectProperties(val, config2, indentation, depth, refs, printer)
|
|
|
916
916
|
}
|
|
917
917
|
return result;
|
|
918
918
|
}
|
|
919
|
-
|
|
919
|
+
_24WEKBY3_cjs.__name(printObjectProperties, "printObjectProperties");
|
|
920
920
|
var OBJECT_NAMES = /* @__PURE__ */ new Set([
|
|
921
921
|
"DOMStringMap",
|
|
922
922
|
"NamedNodeMap"
|
|
@@ -925,15 +925,15 @@ var ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
|
|
|
925
925
|
function testName(name) {
|
|
926
926
|
return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
|
|
927
927
|
}
|
|
928
|
-
|
|
928
|
+
_24WEKBY3_cjs.__name(testName, "testName");
|
|
929
929
|
function isNamedNodeMap(collection) {
|
|
930
930
|
return collection.constructor.name === "NamedNodeMap";
|
|
931
931
|
}
|
|
932
|
-
|
|
932
|
+
_24WEKBY3_cjs.__name(isNamedNodeMap, "isNamedNodeMap");
|
|
933
933
|
function escapeHTML(str) {
|
|
934
934
|
return str.replaceAll("<", "<").replaceAll(">", ">");
|
|
935
935
|
}
|
|
936
|
-
|
|
936
|
+
_24WEKBY3_cjs.__name(escapeHTML, "escapeHTML");
|
|
937
937
|
function printProps(keys, props, config2, indentation, depth, refs, printer) {
|
|
938
938
|
const indentationNext = indentation + config2.indent;
|
|
939
939
|
const colors = config2.colors;
|
|
@@ -949,31 +949,31 @@ function printProps(keys, props, config2, indentation, depth, refs, printer) {
|
|
|
949
949
|
return `${config2.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
|
|
950
950
|
}).join("");
|
|
951
951
|
}
|
|
952
|
-
|
|
952
|
+
_24WEKBY3_cjs.__name(printProps, "printProps");
|
|
953
953
|
function printChildren(children, config2, indentation, depth, refs, printer) {
|
|
954
954
|
return children.map((child) => config2.spacingOuter + indentation + (typeof child === "string" ? printText(child, config2) : printer(child, config2, indentation, depth, refs))).join("");
|
|
955
955
|
}
|
|
956
|
-
|
|
956
|
+
_24WEKBY3_cjs.__name(printChildren, "printChildren");
|
|
957
957
|
function printText(text, config2) {
|
|
958
958
|
const contentColor = config2.colors.content;
|
|
959
959
|
return contentColor.open + escapeHTML(text) + contentColor.close;
|
|
960
960
|
}
|
|
961
|
-
|
|
961
|
+
_24WEKBY3_cjs.__name(printText, "printText");
|
|
962
962
|
function printComment(comment, config2) {
|
|
963
963
|
const commentColor = config2.colors.comment;
|
|
964
964
|
return `${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`;
|
|
965
965
|
}
|
|
966
|
-
|
|
966
|
+
_24WEKBY3_cjs.__name(printComment, "printComment");
|
|
967
967
|
function printElement(type3, printedProps, printedChildren, config2, indentation) {
|
|
968
968
|
const tagColor = config2.colors.tag;
|
|
969
969
|
return `${tagColor.open}<${type3}${printedProps && tagColor.close + printedProps + config2.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config2.spacingOuter}${indentation}${tagColor.open}</${type3}` : `${printedProps && !config2.min ? "" : " "}/`}>${tagColor.close}`;
|
|
970
970
|
}
|
|
971
|
-
|
|
971
|
+
_24WEKBY3_cjs.__name(printElement, "printElement");
|
|
972
972
|
function printElementAsLeaf(type3, config2) {
|
|
973
973
|
const tagColor = config2.colors.tag;
|
|
974
974
|
return `${tagColor.open}<${type3}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
|
|
975
975
|
}
|
|
976
|
-
|
|
976
|
+
_24WEKBY3_cjs.__name(printElementAsLeaf, "printElementAsLeaf");
|
|
977
977
|
var ELEMENT_NODE = 1;
|
|
978
978
|
var TEXT_NODE = 3;
|
|
979
979
|
var COMMENT_NODE = 8;
|
|
@@ -986,35 +986,35 @@ function testHasAttribute(val) {
|
|
|
986
986
|
return false;
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
|
|
989
|
+
_24WEKBY3_cjs.__name(testHasAttribute, "testHasAttribute");
|
|
990
990
|
function testNode(val) {
|
|
991
991
|
const constructorName = val.constructor.name;
|
|
992
992
|
const { nodeType, tagName } = val;
|
|
993
993
|
const isCustomElement = typeof tagName === "string" && tagName.includes("-") || testHasAttribute(val);
|
|
994
994
|
return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
|
|
995
995
|
}
|
|
996
|
-
|
|
996
|
+
_24WEKBY3_cjs.__name(testNode, "testNode");
|
|
997
997
|
function nodeIsText(node) {
|
|
998
998
|
return node.nodeType === TEXT_NODE;
|
|
999
999
|
}
|
|
1000
|
-
|
|
1000
|
+
_24WEKBY3_cjs.__name(nodeIsText, "nodeIsText");
|
|
1001
1001
|
function nodeIsComment(node) {
|
|
1002
1002
|
return node.nodeType === COMMENT_NODE;
|
|
1003
1003
|
}
|
|
1004
|
-
|
|
1004
|
+
_24WEKBY3_cjs.__name(nodeIsComment, "nodeIsComment");
|
|
1005
1005
|
function nodeIsFragment(node) {
|
|
1006
1006
|
return node.nodeType === FRAGMENT_NODE;
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1008
|
+
_24WEKBY3_cjs.__name(nodeIsFragment, "nodeIsFragment");
|
|
1009
1009
|
var IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@";
|
|
1010
|
-
var getImmutableName = /* @__PURE__ */
|
|
1011
|
-
var printAsLeaf = /* @__PURE__ */
|
|
1010
|
+
var getImmutableName = /* @__PURE__ */ _24WEKBY3_cjs.__name((name) => `Immutable.${name}`, "getImmutableName");
|
|
1011
|
+
var printAsLeaf = /* @__PURE__ */ _24WEKBY3_cjs.__name((name) => `[${name}]`, "printAsLeaf");
|
|
1012
1012
|
var SPACE = " ";
|
|
1013
1013
|
var LAZY = "\u2026";
|
|
1014
1014
|
function printImmutableEntries(val, config2, indentation, depth, refs, printer, type3) {
|
|
1015
1015
|
return ++depth > config2.maxDepth ? printAsLeaf(getImmutableName(type3)) : `${getImmutableName(type3) + SPACE}{${printIteratorEntries(val.entries(), config2, indentation, depth, refs, printer)}}`;
|
|
1016
1016
|
}
|
|
1017
|
-
|
|
1017
|
+
_24WEKBY3_cjs.__name(printImmutableEntries, "printImmutableEntries");
|
|
1018
1018
|
function getRecordEntries(val) {
|
|
1019
1019
|
let i = 0;
|
|
1020
1020
|
return {
|
|
@@ -1036,12 +1036,12 @@ function getRecordEntries(val) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1039
|
+
_24WEKBY3_cjs.__name(getRecordEntries, "getRecordEntries");
|
|
1040
1040
|
function printImmutableRecord(val, config2, indentation, depth, refs, printer) {
|
|
1041
1041
|
const name = getImmutableName(val._name || "Record");
|
|
1042
1042
|
return ++depth > config2.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config2, indentation, depth, refs, printer)}}`;
|
|
1043
1043
|
}
|
|
1044
|
-
|
|
1044
|
+
_24WEKBY3_cjs.__name(printImmutableRecord, "printImmutableRecord");
|
|
1045
1045
|
function printImmutableSeq(val, config2, indentation, depth, refs, printer) {
|
|
1046
1046
|
const name = getImmutableName("Seq");
|
|
1047
1047
|
if (++depth > config2.maxDepth) {
|
|
@@ -1052,15 +1052,15 @@ function printImmutableSeq(val, config2, indentation, depth, refs, printer) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config2, indentation, depth, refs, printer) : LAZY}]`;
|
|
1054
1054
|
}
|
|
1055
|
-
|
|
1055
|
+
_24WEKBY3_cjs.__name(printImmutableSeq, "printImmutableSeq");
|
|
1056
1056
|
function printImmutableValues(val, config2, indentation, depth, refs, printer, type3) {
|
|
1057
1057
|
return ++depth > config2.maxDepth ? printAsLeaf(getImmutableName(type3)) : `${getImmutableName(type3) + SPACE}[${printIteratorValues(val.values(), config2, indentation, depth, refs, printer)}]`;
|
|
1058
1058
|
}
|
|
1059
|
-
|
|
1059
|
+
_24WEKBY3_cjs.__name(printImmutableValues, "printImmutableValues");
|
|
1060
1060
|
function getDefaultExportFromCjs(x) {
|
|
1061
1061
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1062
1062
|
}
|
|
1063
|
-
|
|
1063
|
+
_24WEKBY3_cjs.__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
|
1064
1064
|
var reactIs$1 = {
|
|
1065
1065
|
exports: {}
|
|
1066
1066
|
};
|
|
@@ -1102,7 +1102,7 @@ function requireReactIs_production() {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
|
-
|
|
1105
|
+
_24WEKBY3_cjs.__name(typeOf, "typeOf");
|
|
1106
1106
|
reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
1107
1107
|
reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
|
|
1108
1108
|
reactIs_production.Element = REACT_ELEMENT_TYPE;
|
|
@@ -1157,7 +1157,7 @@ function requireReactIs_production() {
|
|
|
1157
1157
|
reactIs_production.typeOf = typeOf;
|
|
1158
1158
|
return reactIs_production;
|
|
1159
1159
|
}
|
|
1160
|
-
|
|
1160
|
+
_24WEKBY3_cjs.__name(requireReactIs_production, "requireReactIs_production");
|
|
1161
1161
|
var reactIs_development$1 = {};
|
|
1162
1162
|
var hasRequiredReactIs_development$1;
|
|
1163
1163
|
function requireReactIs_development$1() {
|
|
@@ -1195,7 +1195,7 @@ function requireReactIs_development$1() {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
|
-
|
|
1198
|
+
_24WEKBY3_cjs.__name(typeOf, "typeOf");
|
|
1199
1199
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1200
1200
|
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
1201
1201
|
reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
@@ -1253,7 +1253,7 @@ function requireReactIs_development$1() {
|
|
|
1253
1253
|
})();
|
|
1254
1254
|
return reactIs_development$1;
|
|
1255
1255
|
}
|
|
1256
|
-
|
|
1256
|
+
_24WEKBY3_cjs.__name(requireReactIs_development$1, "requireReactIs_development$1");
|
|
1257
1257
|
var hasRequiredReactIs$1;
|
|
1258
1258
|
function requireReactIs$1() {
|
|
1259
1259
|
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
@@ -1265,7 +1265,7 @@ function requireReactIs$1() {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
return reactIs$1.exports;
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1268
|
+
_24WEKBY3_cjs.__name(requireReactIs$1, "requireReactIs$1");
|
|
1269
1269
|
var reactIsExports$1 = requireReactIs$1();
|
|
1270
1270
|
var index$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports$1);
|
|
1271
1271
|
var ReactIs19 = /* @__PURE__ */ _mergeNamespaces$1({
|
|
@@ -1314,7 +1314,7 @@ function requireReactIs_production_min() {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
|
-
|
|
1317
|
+
_24WEKBY3_cjs.__name(v, "v");
|
|
1318
1318
|
reactIs_production_min.ContextConsumer = h2;
|
|
1319
1319
|
reactIs_production_min.ContextProvider = g;
|
|
1320
1320
|
reactIs_production_min.Element = b;
|
|
@@ -1375,7 +1375,7 @@ function requireReactIs_production_min() {
|
|
|
1375
1375
|
reactIs_production_min.typeOf = v;
|
|
1376
1376
|
return reactIs_production_min;
|
|
1377
1377
|
}
|
|
1378
|
-
|
|
1378
|
+
_24WEKBY3_cjs.__name(requireReactIs_production_min, "requireReactIs_production_min");
|
|
1379
1379
|
var reactIs_development = {};
|
|
1380
1380
|
var hasRequiredReactIs_development;
|
|
1381
1381
|
function requireReactIs_development() {
|
|
@@ -1424,7 +1424,7 @@ function requireReactIs_development() {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
return false;
|
|
1426
1426
|
}
|
|
1427
|
-
|
|
1427
|
+
_24WEKBY3_cjs.__name(isValidElementType, "isValidElementType");
|
|
1428
1428
|
function typeOf(object) {
|
|
1429
1429
|
if (typeof object === "object" && object !== null) {
|
|
1430
1430
|
var $$typeof = object.$$typeof;
|
|
@@ -1458,7 +1458,7 @@ function requireReactIs_development() {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
return void 0;
|
|
1460
1460
|
}
|
|
1461
|
-
|
|
1461
|
+
_24WEKBY3_cjs.__name(typeOf, "typeOf");
|
|
1462
1462
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1463
1463
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1464
1464
|
var Element = REACT_ELEMENT_TYPE;
|
|
@@ -1482,7 +1482,7 @@ function requireReactIs_development() {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
return false;
|
|
1484
1484
|
}
|
|
1485
|
-
|
|
1485
|
+
_24WEKBY3_cjs.__name(isAsyncMode, "isAsyncMode");
|
|
1486
1486
|
function isConcurrentMode(object) {
|
|
1487
1487
|
{
|
|
1488
1488
|
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
@@ -1492,55 +1492,55 @@ function requireReactIs_development() {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
return false;
|
|
1494
1494
|
}
|
|
1495
|
-
|
|
1495
|
+
_24WEKBY3_cjs.__name(isConcurrentMode, "isConcurrentMode");
|
|
1496
1496
|
function isContextConsumer(object) {
|
|
1497
1497
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1498
1498
|
}
|
|
1499
|
-
|
|
1499
|
+
_24WEKBY3_cjs.__name(isContextConsumer, "isContextConsumer");
|
|
1500
1500
|
function isContextProvider(object) {
|
|
1501
1501
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1502
1502
|
}
|
|
1503
|
-
|
|
1503
|
+
_24WEKBY3_cjs.__name(isContextProvider, "isContextProvider");
|
|
1504
1504
|
function isElement(object) {
|
|
1505
1505
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1506
1506
|
}
|
|
1507
|
-
|
|
1507
|
+
_24WEKBY3_cjs.__name(isElement, "isElement");
|
|
1508
1508
|
function isForwardRef(object) {
|
|
1509
1509
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1510
1510
|
}
|
|
1511
|
-
|
|
1511
|
+
_24WEKBY3_cjs.__name(isForwardRef, "isForwardRef");
|
|
1512
1512
|
function isFragment(object) {
|
|
1513
1513
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1514
1514
|
}
|
|
1515
|
-
|
|
1515
|
+
_24WEKBY3_cjs.__name(isFragment, "isFragment");
|
|
1516
1516
|
function isLazy(object) {
|
|
1517
1517
|
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1518
1518
|
}
|
|
1519
|
-
|
|
1519
|
+
_24WEKBY3_cjs.__name(isLazy, "isLazy");
|
|
1520
1520
|
function isMemo(object) {
|
|
1521
1521
|
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
_24WEKBY3_cjs.__name(isMemo, "isMemo");
|
|
1524
1524
|
function isPortal(object) {
|
|
1525
1525
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1526
1526
|
}
|
|
1527
|
-
|
|
1527
|
+
_24WEKBY3_cjs.__name(isPortal, "isPortal");
|
|
1528
1528
|
function isProfiler(object) {
|
|
1529
1529
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1530
1530
|
}
|
|
1531
|
-
|
|
1531
|
+
_24WEKBY3_cjs.__name(isProfiler, "isProfiler");
|
|
1532
1532
|
function isStrictMode(object) {
|
|
1533
1533
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1534
1534
|
}
|
|
1535
|
-
|
|
1535
|
+
_24WEKBY3_cjs.__name(isStrictMode, "isStrictMode");
|
|
1536
1536
|
function isSuspense(object) {
|
|
1537
1537
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1538
1538
|
}
|
|
1539
|
-
|
|
1539
|
+
_24WEKBY3_cjs.__name(isSuspense, "isSuspense");
|
|
1540
1540
|
function isSuspenseList(object) {
|
|
1541
1541
|
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
1542
1542
|
}
|
|
1543
|
-
|
|
1543
|
+
_24WEKBY3_cjs.__name(isSuspenseList, "isSuspenseList");
|
|
1544
1544
|
reactIs_development.ContextConsumer = ContextConsumer;
|
|
1545
1545
|
reactIs_development.ContextProvider = ContextProvider;
|
|
1546
1546
|
reactIs_development.Element = Element;
|
|
@@ -1573,7 +1573,7 @@ function requireReactIs_development() {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
return reactIs_development;
|
|
1575
1575
|
}
|
|
1576
|
-
|
|
1576
|
+
_24WEKBY3_cjs.__name(requireReactIs_development, "requireReactIs_development");
|
|
1577
1577
|
var hasRequiredReactIs;
|
|
1578
1578
|
function requireReactIs() {
|
|
1579
1579
|
if (hasRequiredReactIs) return reactIs.exports;
|
|
@@ -1585,7 +1585,7 @@ function requireReactIs() {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
return reactIs.exports;
|
|
1587
1587
|
}
|
|
1588
|
-
|
|
1588
|
+
_24WEKBY3_cjs.__name(requireReactIs, "requireReactIs");
|
|
1589
1589
|
var reactIsExports = requireReactIs();
|
|
1590
1590
|
var index = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports);
|
|
1591
1591
|
var ReactIs18 = /* @__PURE__ */ _mergeNamespaces$1({
|
|
@@ -1625,7 +1625,7 @@ function getChildren(arg, children = []) {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
return children;
|
|
1627
1627
|
}
|
|
1628
|
-
|
|
1628
|
+
_24WEKBY3_cjs.__name(getChildren, "getChildren");
|
|
1629
1629
|
function getType(element) {
|
|
1630
1630
|
const type3 = element.type;
|
|
1631
1631
|
if (typeof type3 === "string") {
|
|
@@ -1661,30 +1661,30 @@ function getType(element) {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
return "UNDEFINED";
|
|
1663
1663
|
}
|
|
1664
|
-
|
|
1664
|
+
_24WEKBY3_cjs.__name(getType, "getType");
|
|
1665
1665
|
function getPropKeys$1(element) {
|
|
1666
1666
|
const { props } = element;
|
|
1667
1667
|
return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
|
|
1668
1668
|
}
|
|
1669
|
-
|
|
1669
|
+
_24WEKBY3_cjs.__name(getPropKeys$1, "getPropKeys$1");
|
|
1670
1670
|
function getPropKeys(object) {
|
|
1671
1671
|
const { props } = object;
|
|
1672
1672
|
return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
|
|
1673
1673
|
}
|
|
1674
|
-
|
|
1674
|
+
_24WEKBY3_cjs.__name(getPropKeys, "getPropKeys");
|
|
1675
1675
|
function getConstructorName(val) {
|
|
1676
1676
|
return typeof val.constructor === "function" && val.constructor.name || "Object";
|
|
1677
1677
|
}
|
|
1678
|
-
|
|
1678
|
+
_24WEKBY3_cjs.__name(getConstructorName, "getConstructorName");
|
|
1679
1679
|
|
|
1680
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
1681
|
-
|
|
1680
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js
|
|
1681
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1682
1682
|
|
|
1683
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
1684
|
-
|
|
1683
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js
|
|
1684
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1685
1685
|
|
|
1686
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
1687
|
-
|
|
1686
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js
|
|
1687
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1688
1688
|
var ansiColors = {
|
|
1689
1689
|
bold: [
|
|
1690
1690
|
"1",
|
|
@@ -1806,7 +1806,7 @@ function colorise(value, styleType) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
return `\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`;
|
|
1808
1808
|
}
|
|
1809
|
-
|
|
1809
|
+
_24WEKBY3_cjs.__name(colorise, "colorise");
|
|
1810
1810
|
function normaliseOptions({
|
|
1811
1811
|
showHidden = false,
|
|
1812
1812
|
depth = 2,
|
|
@@ -1838,11 +1838,11 @@ function normaliseOptions({
|
|
|
1838
1838
|
}
|
|
1839
1839
|
return options;
|
|
1840
1840
|
}
|
|
1841
|
-
|
|
1841
|
+
_24WEKBY3_cjs.__name(normaliseOptions, "normaliseOptions");
|
|
1842
1842
|
function isHighSurrogate(char) {
|
|
1843
1843
|
return char >= "\uD800" && char <= "\uDBFF";
|
|
1844
1844
|
}
|
|
1845
|
-
|
|
1845
|
+
_24WEKBY3_cjs.__name(isHighSurrogate, "isHighSurrogate");
|
|
1846
1846
|
function truncate(string, length, tail = truncator) {
|
|
1847
1847
|
string = String(string);
|
|
1848
1848
|
const tailLength = tail.length;
|
|
@@ -1859,7 +1859,7 @@ function truncate(string, length, tail = truncator) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
return string;
|
|
1861
1861
|
}
|
|
1862
|
-
|
|
1862
|
+
_24WEKBY3_cjs.__name(truncate, "truncate");
|
|
1863
1863
|
function inspectList(list, options, inspectItem, separator = ", ") {
|
|
1864
1864
|
inspectItem = inspectItem || options.inspect;
|
|
1865
1865
|
const size = list.length;
|
|
@@ -1896,14 +1896,14 @@ function inspectList(list, options, inspectItem, separator = ", ") {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
return `${output}${truncated}`;
|
|
1898
1898
|
}
|
|
1899
|
-
|
|
1899
|
+
_24WEKBY3_cjs.__name(inspectList, "inspectList");
|
|
1900
1900
|
function quoteComplexKey(key) {
|
|
1901
1901
|
if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {
|
|
1902
1902
|
return key;
|
|
1903
1903
|
}
|
|
1904
1904
|
return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
1905
1905
|
}
|
|
1906
|
-
|
|
1906
|
+
_24WEKBY3_cjs.__name(quoteComplexKey, "quoteComplexKey");
|
|
1907
1907
|
function inspectProperty([key, value], options) {
|
|
1908
1908
|
options.truncate -= 2;
|
|
1909
1909
|
if (typeof key === "string") {
|
|
@@ -1915,9 +1915,9 @@ function inspectProperty([key, value], options) {
|
|
|
1915
1915
|
value = options.inspect(value, options);
|
|
1916
1916
|
return `${key}: ${value}`;
|
|
1917
1917
|
}
|
|
1918
|
-
|
|
1918
|
+
_24WEKBY3_cjs.__name(inspectProperty, "inspectProperty");
|
|
1919
1919
|
|
|
1920
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
1920
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js
|
|
1921
1921
|
function inspectArray(array, options) {
|
|
1922
1922
|
const nonIndexProperties = Object.keys(array).slice(array.length);
|
|
1923
1923
|
if (!array.length && !nonIndexProperties.length) return "[]";
|
|
@@ -1933,11 +1933,11 @@ function inspectArray(array, options) {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
1935
1935
|
}
|
|
1936
|
-
|
|
1936
|
+
_24WEKBY3_cjs.__name(inspectArray, "inspectArray");
|
|
1937
1937
|
|
|
1938
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
1939
|
-
|
|
1940
|
-
var getArrayName = /* @__PURE__ */
|
|
1938
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js
|
|
1939
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1940
|
+
var getArrayName = /* @__PURE__ */ _24WEKBY3_cjs.__name((array) => {
|
|
1941
1941
|
if (typeof Buffer === "function" && array instanceof Buffer) {
|
|
1942
1942
|
return "Buffer";
|
|
1943
1943
|
}
|
|
@@ -1970,10 +1970,10 @@ function inspectTypedArray(array, options) {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
1972
1972
|
}
|
|
1973
|
-
|
|
1973
|
+
_24WEKBY3_cjs.__name(inspectTypedArray, "inspectTypedArray");
|
|
1974
1974
|
|
|
1975
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
1976
|
-
|
|
1975
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js
|
|
1976
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1977
1977
|
function inspectDate(dateObject, options) {
|
|
1978
1978
|
const stringRepresentation = dateObject.toJSON();
|
|
1979
1979
|
if (stringRepresentation === null) {
|
|
@@ -1983,10 +1983,10 @@ function inspectDate(dateObject, options) {
|
|
|
1983
1983
|
const date = split[0];
|
|
1984
1984
|
return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
|
|
1985
1985
|
}
|
|
1986
|
-
|
|
1986
|
+
_24WEKBY3_cjs.__name(inspectDate, "inspectDate");
|
|
1987
1987
|
|
|
1988
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
1989
|
-
|
|
1988
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js
|
|
1989
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
1990
1990
|
function inspectFunction(func, options) {
|
|
1991
1991
|
const functionType = func[Symbol.toStringTag] || "Function";
|
|
1992
1992
|
const name = func.name;
|
|
@@ -1995,10 +1995,10 @@ function inspectFunction(func, options) {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
|
|
1997
1997
|
}
|
|
1998
|
-
|
|
1998
|
+
_24WEKBY3_cjs.__name(inspectFunction, "inspectFunction");
|
|
1999
1999
|
|
|
2000
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2001
|
-
|
|
2000
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js
|
|
2001
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2002
2002
|
function inspectMapEntry([key, value], options) {
|
|
2003
2003
|
options.truncate -= 4;
|
|
2004
2004
|
key = options.inspect(key, options);
|
|
@@ -2006,7 +2006,7 @@ function inspectMapEntry([key, value], options) {
|
|
|
2006
2006
|
value = options.inspect(value, options);
|
|
2007
2007
|
return `${key} => ${value}`;
|
|
2008
2008
|
}
|
|
2009
|
-
|
|
2009
|
+
_24WEKBY3_cjs.__name(inspectMapEntry, "inspectMapEntry");
|
|
2010
2010
|
function mapToEntries(map) {
|
|
2011
2011
|
const entries = [];
|
|
2012
2012
|
map.forEach((value, key) => {
|
|
@@ -2017,16 +2017,16 @@ function mapToEntries(map) {
|
|
|
2017
2017
|
});
|
|
2018
2018
|
return entries;
|
|
2019
2019
|
}
|
|
2020
|
-
|
|
2020
|
+
_24WEKBY3_cjs.__name(mapToEntries, "mapToEntries");
|
|
2021
2021
|
function inspectMap(map, options) {
|
|
2022
2022
|
if (map.size === 0) return "Map{}";
|
|
2023
2023
|
options.truncate -= 7;
|
|
2024
2024
|
return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;
|
|
2025
2025
|
}
|
|
2026
|
-
|
|
2026
|
+
_24WEKBY3_cjs.__name(inspectMap, "inspectMap");
|
|
2027
2027
|
|
|
2028
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2029
|
-
|
|
2028
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js
|
|
2029
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2030
2030
|
var isNaN = Number.isNaN || ((i) => i !== i);
|
|
2031
2031
|
function inspectNumber(number, options) {
|
|
2032
2032
|
if (isNaN(number)) {
|
|
@@ -2043,29 +2043,29 @@ function inspectNumber(number, options) {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
return options.stylize(truncate(String(number), options.truncate), "number");
|
|
2045
2045
|
}
|
|
2046
|
-
|
|
2046
|
+
_24WEKBY3_cjs.__name(inspectNumber, "inspectNumber");
|
|
2047
2047
|
|
|
2048
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2049
|
-
|
|
2048
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js
|
|
2049
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2050
2050
|
function inspectBigInt(number, options) {
|
|
2051
2051
|
let nums = truncate(number.toString(), options.truncate - 1);
|
|
2052
2052
|
if (nums !== truncator) nums += "n";
|
|
2053
2053
|
return options.stylize(nums, "bigint");
|
|
2054
2054
|
}
|
|
2055
|
-
|
|
2055
|
+
_24WEKBY3_cjs.__name(inspectBigInt, "inspectBigInt");
|
|
2056
2056
|
|
|
2057
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2058
|
-
|
|
2057
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js
|
|
2058
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2059
2059
|
function inspectRegExp(value, options) {
|
|
2060
2060
|
const flags = value.toString().split("/")[2];
|
|
2061
2061
|
const sourceLength = options.truncate - (2 + flags.length);
|
|
2062
2062
|
const source = value.source;
|
|
2063
2063
|
return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
|
|
2064
2064
|
}
|
|
2065
|
-
|
|
2065
|
+
_24WEKBY3_cjs.__name(inspectRegExp, "inspectRegExp");
|
|
2066
2066
|
|
|
2067
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2068
|
-
|
|
2067
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js
|
|
2068
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2069
2069
|
function arrayFromSet(set2) {
|
|
2070
2070
|
const values = [];
|
|
2071
2071
|
set2.forEach((value) => {
|
|
@@ -2073,16 +2073,16 @@ function arrayFromSet(set2) {
|
|
|
2073
2073
|
});
|
|
2074
2074
|
return values;
|
|
2075
2075
|
}
|
|
2076
|
-
|
|
2076
|
+
_24WEKBY3_cjs.__name(arrayFromSet, "arrayFromSet");
|
|
2077
2077
|
function inspectSet(set2, options) {
|
|
2078
2078
|
if (set2.size === 0) return "Set{}";
|
|
2079
2079
|
options.truncate -= 7;
|
|
2080
2080
|
return `Set{ ${inspectList(arrayFromSet(set2), options)} }`;
|
|
2081
2081
|
}
|
|
2082
|
-
|
|
2082
|
+
_24WEKBY3_cjs.__name(inspectSet, "inspectSet");
|
|
2083
2083
|
|
|
2084
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2085
|
-
|
|
2084
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js
|
|
2085
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2086
2086
|
var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
2087
2087
|
var escapeCharacters = {
|
|
2088
2088
|
"\b": "\\b",
|
|
@@ -2097,48 +2097,35 @@ var hex = 16;
|
|
|
2097
2097
|
function escape(char) {
|
|
2098
2098
|
return escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-4)}`;
|
|
2099
2099
|
}
|
|
2100
|
-
|
|
2100
|
+
_24WEKBY3_cjs.__name(escape, "escape");
|
|
2101
2101
|
function inspectString(string, options) {
|
|
2102
2102
|
if (stringEscapeChars.test(string)) {
|
|
2103
2103
|
string = string.replace(stringEscapeChars, escape);
|
|
2104
2104
|
}
|
|
2105
2105
|
return options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
|
|
2106
2106
|
}
|
|
2107
|
-
|
|
2107
|
+
_24WEKBY3_cjs.__name(inspectString, "inspectString");
|
|
2108
2108
|
|
|
2109
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2110
|
-
|
|
2109
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js
|
|
2110
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2111
2111
|
function inspectSymbol(value) {
|
|
2112
2112
|
if ("description" in Symbol.prototype) {
|
|
2113
2113
|
return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
2114
2114
|
}
|
|
2115
2115
|
return value.toString();
|
|
2116
2116
|
}
|
|
2117
|
-
|
|
2117
|
+
_24WEKBY3_cjs.__name(inspectSymbol, "inspectSymbol");
|
|
2118
2118
|
|
|
2119
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2120
|
-
|
|
2121
|
-
var getPromiseValue = /* @__PURE__ */
|
|
2122
|
-
try {
|
|
2123
|
-
const { getPromiseDetails, kPending, kRejected } = process.binding("util");
|
|
2124
|
-
if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
|
|
2125
|
-
getPromiseValue = /* @__PURE__ */ U7VZULNU_cjs.__name((value, options) => {
|
|
2126
|
-
const [state, innerValue] = getPromiseDetails(value);
|
|
2127
|
-
if (state === kPending) {
|
|
2128
|
-
return "Promise{<pending>}";
|
|
2129
|
-
}
|
|
2130
|
-
return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
|
|
2131
|
-
}, "getPromiseValue");
|
|
2132
|
-
}
|
|
2133
|
-
} catch (notNode) {
|
|
2134
|
-
}
|
|
2119
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js
|
|
2120
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2121
|
+
var getPromiseValue = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => "Promise{\u2026}", "getPromiseValue");
|
|
2135
2122
|
var promise_default = getPromiseValue;
|
|
2136
2123
|
|
|
2137
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2138
|
-
|
|
2124
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js
|
|
2125
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2139
2126
|
|
|
2140
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2141
|
-
|
|
2127
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js
|
|
2128
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2142
2129
|
function inspectObject(object, options) {
|
|
2143
2130
|
const properties = Object.getOwnPropertyNames(object);
|
|
2144
2131
|
const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
|
|
@@ -2166,9 +2153,9 @@ function inspectObject(object, options) {
|
|
|
2166
2153
|
}
|
|
2167
2154
|
return `{ ${propertyContents}${sep}${symbolContents} }`;
|
|
2168
2155
|
}
|
|
2169
|
-
|
|
2156
|
+
_24WEKBY3_cjs.__name(inspectObject, "inspectObject");
|
|
2170
2157
|
|
|
2171
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2158
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js
|
|
2172
2159
|
var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
|
|
2173
2160
|
function inspectClass(value, options) {
|
|
2174
2161
|
let name = "";
|
|
@@ -2182,19 +2169,19 @@ function inspectClass(value, options) {
|
|
|
2182
2169
|
options.truncate -= name.length;
|
|
2183
2170
|
return `${name}${inspectObject(value, options)}`;
|
|
2184
2171
|
}
|
|
2185
|
-
|
|
2172
|
+
_24WEKBY3_cjs.__name(inspectClass, "inspectClass");
|
|
2186
2173
|
|
|
2187
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2188
|
-
|
|
2174
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js
|
|
2175
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2189
2176
|
function inspectArguments(args, options) {
|
|
2190
2177
|
if (args.length === 0) return "Arguments[]";
|
|
2191
2178
|
options.truncate -= 13;
|
|
2192
2179
|
return `Arguments[ ${inspectList(args, options)} ]`;
|
|
2193
2180
|
}
|
|
2194
|
-
|
|
2181
|
+
_24WEKBY3_cjs.__name(inspectArguments, "inspectArguments");
|
|
2195
2182
|
|
|
2196
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2197
|
-
|
|
2183
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js
|
|
2184
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2198
2185
|
var errorKeys = [
|
|
2199
2186
|
"stack",
|
|
2200
2187
|
"line",
|
|
@@ -2231,10 +2218,10 @@ function inspectObject2(error, options) {
|
|
|
2231
2218
|
]), options, inspectProperty);
|
|
2232
2219
|
return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
|
|
2233
2220
|
}
|
|
2234
|
-
|
|
2221
|
+
_24WEKBY3_cjs.__name(inspectObject2, "inspectObject");
|
|
2235
2222
|
|
|
2236
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2237
|
-
|
|
2223
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js
|
|
2224
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2238
2225
|
function inspectAttribute([key, value], options) {
|
|
2239
2226
|
options.truncate -= 3;
|
|
2240
2227
|
if (!value) {
|
|
@@ -2242,11 +2229,22 @@ function inspectAttribute([key, value], options) {
|
|
|
2242
2229
|
}
|
|
2243
2230
|
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
2244
2231
|
}
|
|
2245
|
-
|
|
2246
|
-
function
|
|
2247
|
-
return inspectList(collection, options,
|
|
2232
|
+
_24WEKBY3_cjs.__name(inspectAttribute, "inspectAttribute");
|
|
2233
|
+
function inspectNodeCollection(collection, options) {
|
|
2234
|
+
return inspectList(collection, options, inspectNode, "\n");
|
|
2235
|
+
}
|
|
2236
|
+
_24WEKBY3_cjs.__name(inspectNodeCollection, "inspectNodeCollection");
|
|
2237
|
+
function inspectNode(node, options) {
|
|
2238
|
+
switch (node.nodeType) {
|
|
2239
|
+
case 1:
|
|
2240
|
+
return inspectHTML(node, options);
|
|
2241
|
+
case 3:
|
|
2242
|
+
return options.inspect(node.data, options);
|
|
2243
|
+
default:
|
|
2244
|
+
return options.inspect(node, options);
|
|
2245
|
+
}
|
|
2248
2246
|
}
|
|
2249
|
-
|
|
2247
|
+
_24WEKBY3_cjs.__name(inspectNode, "inspectNode");
|
|
2250
2248
|
function inspectHTML(element, options) {
|
|
2251
2249
|
const properties = element.getAttributeNames();
|
|
2252
2250
|
const name = element.tagName.toLowerCase();
|
|
@@ -2264,31 +2262,25 @@ function inspectHTML(element, options) {
|
|
|
2264
2262
|
}
|
|
2265
2263
|
options.truncate -= propertyContents.length;
|
|
2266
2264
|
const truncate3 = options.truncate;
|
|
2267
|
-
let children =
|
|
2265
|
+
let children = inspectNodeCollection(element.children, options);
|
|
2268
2266
|
if (children && children.length > truncate3) {
|
|
2269
2267
|
children = `${truncator}(${element.children.length})`;
|
|
2270
2268
|
}
|
|
2271
2269
|
return `${head}${propertyContents}${headClose}${children}${tail}`;
|
|
2272
2270
|
}
|
|
2273
|
-
|
|
2271
|
+
_24WEKBY3_cjs.__name(inspectHTML, "inspectHTML");
|
|
2274
2272
|
|
|
2275
|
-
// ../../node_modules/.pnpm/loupe@3.1
|
|
2273
|
+
// ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js
|
|
2276
2274
|
var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";
|
|
2277
2275
|
var chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
2278
|
-
var nodeInspect =
|
|
2279
|
-
try {
|
|
2280
|
-
const nodeUtil = U7VZULNU_cjs.__require("util");
|
|
2281
|
-
nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
|
|
2282
|
-
} catch (noNodeInspect) {
|
|
2283
|
-
nodeInspect = false;
|
|
2284
|
-
}
|
|
2276
|
+
var nodeInspect = Symbol.for("nodejs.util.inspect.custom");
|
|
2285
2277
|
var constructorMap = /* @__PURE__ */ new WeakMap();
|
|
2286
2278
|
var stringTagMap = {};
|
|
2287
2279
|
var baseTypesMap = {
|
|
2288
|
-
undefined: /* @__PURE__ */
|
|
2289
|
-
null: /* @__PURE__ */
|
|
2290
|
-
boolean: /* @__PURE__ */
|
|
2291
|
-
Boolean: /* @__PURE__ */
|
|
2280
|
+
undefined: /* @__PURE__ */ _24WEKBY3_cjs.__name((value, options) => options.stylize("undefined", "undefined"), "undefined"),
|
|
2281
|
+
null: /* @__PURE__ */ _24WEKBY3_cjs.__name((value, options) => options.stylize("null", "null"), "null"),
|
|
2282
|
+
boolean: /* @__PURE__ */ _24WEKBY3_cjs.__name((value, options) => options.stylize(String(value), "boolean"), "boolean"),
|
|
2283
|
+
Boolean: /* @__PURE__ */ _24WEKBY3_cjs.__name((value, options) => options.stylize(String(value), "boolean"), "Boolean"),
|
|
2292
2284
|
number: inspectNumber,
|
|
2293
2285
|
Number: inspectNumber,
|
|
2294
2286
|
bigint: inspectBigInt,
|
|
@@ -2307,8 +2299,8 @@ var baseTypesMap = {
|
|
|
2307
2299
|
RegExp: inspectRegExp,
|
|
2308
2300
|
Promise: promise_default,
|
|
2309
2301
|
// WeakSet, WeakMap are totally opaque to us
|
|
2310
|
-
WeakSet: /* @__PURE__ */
|
|
2311
|
-
WeakMap: /* @__PURE__ */
|
|
2302
|
+
WeakSet: /* @__PURE__ */ _24WEKBY3_cjs.__name((value, options) => options.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
|
|
2303
|
+
WeakMap: /* @__PURE__ */ _24WEKBY3_cjs.__name((value, options) => options.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
|
|
2312
2304
|
Arguments: inspectArguments,
|
|
2313
2305
|
Int8Array: inspectTypedArray,
|
|
2314
2306
|
Uint8Array: inspectTypedArray,
|
|
@@ -2319,19 +2311,19 @@ var baseTypesMap = {
|
|
|
2319
2311
|
Uint32Array: inspectTypedArray,
|
|
2320
2312
|
Float32Array: inspectTypedArray,
|
|
2321
2313
|
Float64Array: inspectTypedArray,
|
|
2322
|
-
Generator: /* @__PURE__ */
|
|
2323
|
-
DataView: /* @__PURE__ */
|
|
2324
|
-
ArrayBuffer: /* @__PURE__ */
|
|
2314
|
+
Generator: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => "", "Generator"),
|
|
2315
|
+
DataView: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => "", "DataView"),
|
|
2316
|
+
ArrayBuffer: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => "", "ArrayBuffer"),
|
|
2325
2317
|
Error: inspectObject2,
|
|
2326
|
-
HTMLCollection:
|
|
2327
|
-
NodeList:
|
|
2318
|
+
HTMLCollection: inspectNodeCollection,
|
|
2319
|
+
NodeList: inspectNodeCollection
|
|
2328
2320
|
};
|
|
2329
|
-
var inspectCustom = /* @__PURE__ */
|
|
2321
|
+
var inspectCustom = /* @__PURE__ */ _24WEKBY3_cjs.__name((value, options, type3, inspectFn) => {
|
|
2330
2322
|
if (chaiInspect in value && typeof value[chaiInspect] === "function") {
|
|
2331
2323
|
return value[chaiInspect](options);
|
|
2332
2324
|
}
|
|
2333
|
-
if (nodeInspect
|
|
2334
|
-
return value[nodeInspect](options.depth, options);
|
|
2325
|
+
if (nodeInspect in value && typeof value[nodeInspect] === "function") {
|
|
2326
|
+
return value[nodeInspect](options.depth, options, inspectFn);
|
|
2335
2327
|
}
|
|
2336
2328
|
if ("inspect" in value && typeof value.inspect === "function") {
|
|
2337
2329
|
return value.inspect(options.depth, options);
|
|
@@ -2356,7 +2348,7 @@ function inspect(value, opts = {}) {
|
|
|
2356
2348
|
return baseTypesMap[type3](value, options);
|
|
2357
2349
|
}
|
|
2358
2350
|
if (customInspect && value) {
|
|
2359
|
-
const output = inspectCustom(value, options, type3);
|
|
2351
|
+
const output = inspectCustom(value, options, type3, inspect);
|
|
2360
2352
|
if (output) {
|
|
2361
2353
|
if (typeof output === "string") return output;
|
|
2362
2354
|
return inspect(output, options);
|
|
@@ -2380,7 +2372,7 @@ function inspect(value, opts = {}) {
|
|
|
2380
2372
|
}
|
|
2381
2373
|
return options.stylize(String(value), type3);
|
|
2382
2374
|
}
|
|
2383
|
-
|
|
2375
|
+
_24WEKBY3_cjs.__name(inspect, "inspect");
|
|
2384
2376
|
var formatRegExp = /%[sdjifoOc%]/g;
|
|
2385
2377
|
function format2(...args) {
|
|
2386
2378
|
if (typeof args[0] !== "string") {
|
|
@@ -2473,14 +2465,14 @@ function format2(...args) {
|
|
|
2473
2465
|
}
|
|
2474
2466
|
return str;
|
|
2475
2467
|
}
|
|
2476
|
-
|
|
2468
|
+
_24WEKBY3_cjs.__name(format2, "format");
|
|
2477
2469
|
function inspect2(obj, options = {}) {
|
|
2478
2470
|
if (options.truncate === 0) {
|
|
2479
2471
|
options.truncate = Number.POSITIVE_INFINITY;
|
|
2480
2472
|
}
|
|
2481
2473
|
return inspect(obj, options);
|
|
2482
2474
|
}
|
|
2483
|
-
|
|
2475
|
+
_24WEKBY3_cjs.__name(inspect2, "inspect");
|
|
2484
2476
|
function objDisplay(obj, options = {}) {
|
|
2485
2477
|
if (typeof options.truncate === "undefined") {
|
|
2486
2478
|
options.truncate = 40;
|
|
@@ -2503,10 +2495,10 @@ function objDisplay(obj, options = {}) {
|
|
|
2503
2495
|
}
|
|
2504
2496
|
return str;
|
|
2505
2497
|
}
|
|
2506
|
-
|
|
2498
|
+
_24WEKBY3_cjs.__name(objDisplay, "objDisplay");
|
|
2507
2499
|
|
|
2508
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
2509
|
-
|
|
2500
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js
|
|
2501
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
2510
2502
|
function assertTypes(value, name, types) {
|
|
2511
2503
|
const receivedType = typeof value;
|
|
2512
2504
|
const pass = types.includes(receivedType);
|
|
@@ -2514,7 +2506,7 @@ function assertTypes(value, name, types) {
|
|
|
2514
2506
|
throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`);
|
|
2515
2507
|
}
|
|
2516
2508
|
}
|
|
2517
|
-
|
|
2509
|
+
_24WEKBY3_cjs.__name(assertTypes, "assertTypes");
|
|
2518
2510
|
function toArray(array) {
|
|
2519
2511
|
if (array === null || array === void 0) {
|
|
2520
2512
|
array = [];
|
|
@@ -2526,11 +2518,11 @@ function toArray(array) {
|
|
|
2526
2518
|
array
|
|
2527
2519
|
];
|
|
2528
2520
|
}
|
|
2529
|
-
|
|
2521
|
+
_24WEKBY3_cjs.__name(toArray, "toArray");
|
|
2530
2522
|
function isObject(item) {
|
|
2531
2523
|
return item != null && typeof item === "object" && !Array.isArray(item);
|
|
2532
2524
|
}
|
|
2533
|
-
|
|
2525
|
+
_24WEKBY3_cjs.__name(isObject, "isObject");
|
|
2534
2526
|
function objectAttr(source, path, defaultValue = void 0) {
|
|
2535
2527
|
const paths = path.replace(/\[(\d+)\]/g, ".$1").split(".");
|
|
2536
2528
|
let result = source;
|
|
@@ -2542,7 +2534,7 @@ function objectAttr(source, path, defaultValue = void 0) {
|
|
|
2542
2534
|
}
|
|
2543
2535
|
return result;
|
|
2544
2536
|
}
|
|
2545
|
-
|
|
2537
|
+
_24WEKBY3_cjs.__name(objectAttr, "objectAttr");
|
|
2546
2538
|
function createDefer() {
|
|
2547
2539
|
let resolve2 = null;
|
|
2548
2540
|
let reject = null;
|
|
@@ -2554,7 +2546,7 @@ function createDefer() {
|
|
|
2554
2546
|
p2.reject = reject;
|
|
2555
2547
|
return p2;
|
|
2556
2548
|
}
|
|
2557
|
-
|
|
2549
|
+
_24WEKBY3_cjs.__name(createDefer, "createDefer");
|
|
2558
2550
|
function isNegativeNaN(val) {
|
|
2559
2551
|
if (!Number.isNaN(val)) {
|
|
2560
2552
|
return false;
|
|
@@ -2565,9 +2557,9 @@ function isNegativeNaN(val) {
|
|
|
2565
2557
|
const isNegative = u32[1] >>> 31 === 1;
|
|
2566
2558
|
return isNegative;
|
|
2567
2559
|
}
|
|
2568
|
-
|
|
2560
|
+
_24WEKBY3_cjs.__name(isNegativeNaN, "isNegativeNaN");
|
|
2569
2561
|
|
|
2570
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
2562
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/index.js
|
|
2571
2563
|
var jsTokens_1;
|
|
2572
2564
|
var hasRequiredJsTokens;
|
|
2573
2565
|
function requireJsTokens() {
|
|
@@ -2593,7 +2585,7 @@ function requireJsTokens() {
|
|
|
2593
2585
|
KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;
|
|
2594
2586
|
KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;
|
|
2595
2587
|
Newline = RegExp(LineTerminatorSequence.source);
|
|
2596
|
-
jsTokens_1 = /* @__PURE__ */
|
|
2588
|
+
jsTokens_1 = /* @__PURE__ */ _24WEKBY3_cjs.__name(function* (input, { jsx = false } = {}) {
|
|
2597
2589
|
var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
|
|
2598
2590
|
({ length } = input);
|
|
2599
2591
|
lastIndex = 0;
|
|
@@ -2973,7 +2965,7 @@ function requireJsTokens() {
|
|
|
2973
2965
|
}, "jsTokens_1");
|
|
2974
2966
|
return jsTokens_1;
|
|
2975
2967
|
}
|
|
2976
|
-
|
|
2968
|
+
_24WEKBY3_cjs.__name(requireJsTokens, "requireJsTokens");
|
|
2977
2969
|
requireJsTokens();
|
|
2978
2970
|
var reservedWords = {
|
|
2979
2971
|
keyword: [
|
|
@@ -3031,7 +3023,7 @@ var SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
|
3031
3023
|
function getSafeTimers() {
|
|
3032
3024
|
const { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
|
3033
3025
|
const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || {
|
|
3034
|
-
nextTick: /* @__PURE__ */
|
|
3026
|
+
nextTick: /* @__PURE__ */ _24WEKBY3_cjs.__name((cb) => cb(), "nextTick")
|
|
3035
3027
|
};
|
|
3036
3028
|
return {
|
|
3037
3029
|
nextTick: safeNextTick,
|
|
@@ -3044,10 +3036,10 @@ function getSafeTimers() {
|
|
|
3044
3036
|
queueMicrotask: safeQueueMicrotask
|
|
3045
3037
|
};
|
|
3046
3038
|
}
|
|
3047
|
-
|
|
3039
|
+
_24WEKBY3_cjs.__name(getSafeTimers, "getSafeTimers");
|
|
3048
3040
|
|
|
3049
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
3050
|
-
|
|
3041
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js
|
|
3042
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3051
3043
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
3052
3044
|
var intToChar = new Uint8Array(64);
|
|
3053
3045
|
var charToInt = new Uint8Array(128);
|
|
@@ -3073,7 +3065,7 @@ function normalizeWindowsPath(input = "") {
|
|
|
3073
3065
|
}
|
|
3074
3066
|
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r2) => r2.toUpperCase());
|
|
3075
3067
|
}
|
|
3076
|
-
|
|
3068
|
+
_24WEKBY3_cjs.__name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
3077
3069
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
3078
3070
|
function cwd() {
|
|
3079
3071
|
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
@@ -3081,8 +3073,8 @@ function cwd() {
|
|
|
3081
3073
|
}
|
|
3082
3074
|
return "/";
|
|
3083
3075
|
}
|
|
3084
|
-
|
|
3085
|
-
var resolve = /* @__PURE__ */
|
|
3076
|
+
_24WEKBY3_cjs.__name(cwd, "cwd");
|
|
3077
|
+
var resolve = /* @__PURE__ */ _24WEKBY3_cjs.__name(function(...arguments_) {
|
|
3086
3078
|
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
3087
3079
|
let resolvedPath = "";
|
|
3088
3080
|
let resolvedAbsolute = false;
|
|
@@ -3160,8 +3152,8 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
3160
3152
|
}
|
|
3161
3153
|
return res;
|
|
3162
3154
|
}
|
|
3163
|
-
|
|
3164
|
-
var isAbsolute = /* @__PURE__ */
|
|
3155
|
+
_24WEKBY3_cjs.__name(normalizeString, "normalizeString");
|
|
3156
|
+
var isAbsolute = /* @__PURE__ */ _24WEKBY3_cjs.__name(function(p2) {
|
|
3165
3157
|
return _IS_ABSOLUTE_RE.test(p2);
|
|
3166
3158
|
}, "isAbsolute");
|
|
3167
3159
|
var CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
|
|
@@ -3199,7 +3191,7 @@ function extractLocation(urlLike) {
|
|
|
3199
3191
|
parts[3] || void 0
|
|
3200
3192
|
];
|
|
3201
3193
|
}
|
|
3202
|
-
|
|
3194
|
+
_24WEKBY3_cjs.__name(extractLocation, "extractLocation");
|
|
3203
3195
|
function parseSingleFFOrSafariStack(raw) {
|
|
3204
3196
|
let line = raw.trim();
|
|
3205
3197
|
if (SAFARI_NATIVE_CODE_REGEXP.test(line)) {
|
|
@@ -3225,7 +3217,7 @@ function parseSingleFFOrSafariStack(raw) {
|
|
|
3225
3217
|
column: Number.parseInt(columnNumber)
|
|
3226
3218
|
};
|
|
3227
3219
|
}
|
|
3228
|
-
|
|
3220
|
+
_24WEKBY3_cjs.__name(parseSingleFFOrSafariStack, "parseSingleFFOrSafariStack");
|
|
3229
3221
|
function parseSingleStack(raw) {
|
|
3230
3222
|
const line = raw.trim();
|
|
3231
3223
|
if (!CHROME_IE_STACK_REGEXP.test(line)) {
|
|
@@ -3233,7 +3225,7 @@ function parseSingleStack(raw) {
|
|
|
3233
3225
|
}
|
|
3234
3226
|
return parseSingleV8Stack(line);
|
|
3235
3227
|
}
|
|
3236
|
-
|
|
3228
|
+
_24WEKBY3_cjs.__name(parseSingleStack, "parseSingleStack");
|
|
3237
3229
|
function parseSingleV8Stack(raw) {
|
|
3238
3230
|
let line = raw.trim();
|
|
3239
3231
|
if (!CHROME_IE_STACK_REGEXP.test(line)) {
|
|
@@ -3271,94 +3263,82 @@ function parseSingleV8Stack(raw) {
|
|
|
3271
3263
|
column: Number.parseInt(columnNumber)
|
|
3272
3264
|
};
|
|
3273
3265
|
}
|
|
3274
|
-
|
|
3266
|
+
_24WEKBY3_cjs.__name(parseSingleV8Stack, "parseSingleV8Stack");
|
|
3275
3267
|
|
|
3276
|
-
// ../../node_modules/.pnpm/strip-literal@3.
|
|
3277
|
-
|
|
3278
|
-
var import_js_tokens =
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
}
|
|
3291
|
-
if (token.type === "MultiLineComment") {
|
|
3292
|
-
result += token.value.replace(/[^\n]/g, FILL_COMMENT);
|
|
3293
|
-
continue;
|
|
3268
|
+
// ../../node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs
|
|
3269
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
3270
|
+
var import_js_tokens = _24WEKBY3_cjs.__toESM(require_js_tokens(), 1);
|
|
3271
|
+
var FILL_COMMENT = " ";
|
|
3272
|
+
function stripLiteralFromToken(token, fillChar, filter) {
|
|
3273
|
+
if (token.type === "SingleLineComment") {
|
|
3274
|
+
return FILL_COMMENT.repeat(token.value.length);
|
|
3275
|
+
}
|
|
3276
|
+
if (token.type === "MultiLineComment") {
|
|
3277
|
+
return token.value.replace(/[^\n]/g, FILL_COMMENT);
|
|
3278
|
+
}
|
|
3279
|
+
if (token.type === "StringLiteral") {
|
|
3280
|
+
if (!token.closed) {
|
|
3281
|
+
return token.value;
|
|
3294
3282
|
}
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
continue;
|
|
3299
|
-
}
|
|
3300
|
-
const body = token.value.slice(1, -1);
|
|
3301
|
-
if (filter(body)) {
|
|
3302
|
-
result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1];
|
|
3303
|
-
continue;
|
|
3304
|
-
}
|
|
3283
|
+
const body = token.value.slice(1, -1);
|
|
3284
|
+
if (filter(body)) {
|
|
3285
|
+
return token.value[0] + fillChar.repeat(body.length) + token.value[token.value.length - 1];
|
|
3305
3286
|
}
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
}
|
|
3287
|
+
}
|
|
3288
|
+
if (token.type === "NoSubstitutionTemplate") {
|
|
3289
|
+
const body = token.value.slice(1, -1);
|
|
3290
|
+
if (filter(body)) {
|
|
3291
|
+
return `\`${body.replace(/[^\n]/g, fillChar)}\``;
|
|
3312
3292
|
}
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
}
|
|
3293
|
+
}
|
|
3294
|
+
if (token.type === "RegularExpressionLiteral") {
|
|
3295
|
+
const body = token.value;
|
|
3296
|
+
if (filter(body)) {
|
|
3297
|
+
return body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${fillChar.repeat($1.length)}/${$2}`);
|
|
3319
3298
|
}
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
}
|
|
3299
|
+
}
|
|
3300
|
+
if (token.type === "TemplateHead") {
|
|
3301
|
+
const body = token.value.slice(1, -2);
|
|
3302
|
+
if (filter(body)) {
|
|
3303
|
+
return `\`${body.replace(/[^\n]/g, fillChar)}\${`;
|
|
3326
3304
|
}
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
}
|
|
3305
|
+
}
|
|
3306
|
+
if (token.type === "TemplateTail") {
|
|
3307
|
+
const body = token.value.slice(0, -2);
|
|
3308
|
+
if (filter(body)) {
|
|
3309
|
+
return `}${body.replace(/[^\n]/g, fillChar)}\``;
|
|
3333
3310
|
}
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
}
|
|
3311
|
+
}
|
|
3312
|
+
if (token.type === "TemplateMiddle") {
|
|
3313
|
+
const body = token.value.slice(1, -2);
|
|
3314
|
+
if (filter(body)) {
|
|
3315
|
+
return `}${body.replace(/[^\n]/g, fillChar)}\${`;
|
|
3340
3316
|
}
|
|
3341
|
-
result += token.value;
|
|
3342
3317
|
}
|
|
3318
|
+
return token.value;
|
|
3319
|
+
}
|
|
3320
|
+
_24WEKBY3_cjs.__name(stripLiteralFromToken, "stripLiteralFromToken");
|
|
3321
|
+
function optionsWithDefaults(options) {
|
|
3343
3322
|
return {
|
|
3344
|
-
|
|
3345
|
-
|
|
3323
|
+
fillChar: options?.fillChar ?? " ",
|
|
3324
|
+
filter: options?.filter ?? (() => true)
|
|
3346
3325
|
};
|
|
3347
3326
|
}
|
|
3348
|
-
|
|
3327
|
+
_24WEKBY3_cjs.__name(optionsWithDefaults, "optionsWithDefaults");
|
|
3349
3328
|
function stripLiteral(code, options) {
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3329
|
+
let result = "";
|
|
3330
|
+
const _options = optionsWithDefaults(options);
|
|
3331
|
+
for (const token of (0, import_js_tokens.default)(code, { jsx: false })) {
|
|
3332
|
+
result += stripLiteralFromToken(token, _options.fillChar, _options.filter);
|
|
3333
|
+
}
|
|
3334
|
+
return result;
|
|
3355
3335
|
}
|
|
3356
|
-
|
|
3336
|
+
_24WEKBY3_cjs.__name(stripLiteral, "stripLiteral");
|
|
3357
3337
|
|
|
3358
|
-
// ../../node_modules/.pnpm/@vitest+runner@3.2.
|
|
3338
|
+
// ../../node_modules/.pnpm/@vitest+runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js
|
|
3359
3339
|
var PendingError = class PendingError2 extends Error {
|
|
3360
3340
|
static {
|
|
3361
|
-
|
|
3341
|
+
_24WEKBY3_cjs.__name(this, "PendingError");
|
|
3362
3342
|
}
|
|
3363
3343
|
code = "VITEST_PENDING";
|
|
3364
3344
|
taskId;
|
|
@@ -3375,23 +3355,23 @@ var hooksMap = /* @__PURE__ */ new WeakMap();
|
|
|
3375
3355
|
function setFn(key, fn) {
|
|
3376
3356
|
fnMap.set(key, fn);
|
|
3377
3357
|
}
|
|
3378
|
-
|
|
3358
|
+
_24WEKBY3_cjs.__name(setFn, "setFn");
|
|
3379
3359
|
function setTestFixture(key, fixture) {
|
|
3380
3360
|
testFixtureMap.set(key, fixture);
|
|
3381
3361
|
}
|
|
3382
|
-
|
|
3362
|
+
_24WEKBY3_cjs.__name(setTestFixture, "setTestFixture");
|
|
3383
3363
|
function getTestFixture(key) {
|
|
3384
3364
|
return testFixtureMap.get(key);
|
|
3385
3365
|
}
|
|
3386
|
-
|
|
3366
|
+
_24WEKBY3_cjs.__name(getTestFixture, "getTestFixture");
|
|
3387
3367
|
function setHooks(key, hooks) {
|
|
3388
3368
|
hooksMap.set(key, hooks);
|
|
3389
3369
|
}
|
|
3390
|
-
|
|
3370
|
+
_24WEKBY3_cjs.__name(setHooks, "setHooks");
|
|
3391
3371
|
function getHooks(key) {
|
|
3392
3372
|
return hooksMap.get(key);
|
|
3393
3373
|
}
|
|
3394
|
-
|
|
3374
|
+
_24WEKBY3_cjs.__name(getHooks, "getHooks");
|
|
3395
3375
|
function mergeScopedFixtures(testFixtures, scopedFixtures) {
|
|
3396
3376
|
const scopedFixturesMap = scopedFixtures.reduce((map, fixture) => {
|
|
3397
3377
|
map[fixture.prop] = fixture;
|
|
@@ -3411,7 +3391,7 @@ function mergeScopedFixtures(testFixtures, scopedFixtures) {
|
|
|
3411
3391
|
}
|
|
3412
3392
|
return Object.values(newFixtures);
|
|
3413
3393
|
}
|
|
3414
|
-
|
|
3394
|
+
_24WEKBY3_cjs.__name(mergeScopedFixtures, "mergeScopedFixtures");
|
|
3415
3395
|
function mergeContextFixtures(fixtures, context, runner2) {
|
|
3416
3396
|
const fixtureOptionKeys = [
|
|
3417
3397
|
"auto",
|
|
@@ -3466,7 +3446,7 @@ function mergeContextFixtures(fixtures, context, runner2) {
|
|
|
3466
3446
|
});
|
|
3467
3447
|
return context;
|
|
3468
3448
|
}
|
|
3469
|
-
|
|
3449
|
+
_24WEKBY3_cjs.__name(mergeContextFixtures, "mergeContextFixtures");
|
|
3470
3450
|
var fixtureValueMaps = /* @__PURE__ */ new Map();
|
|
3471
3451
|
var cleanupFnArrayMap = /* @__PURE__ */ new Map();
|
|
3472
3452
|
function withFixtures(runner2, fn, testContext) {
|
|
@@ -3512,11 +3492,11 @@ function withFixtures(runner2, fn, testContext) {
|
|
|
3512
3492
|
}
|
|
3513
3493
|
}
|
|
3514
3494
|
}
|
|
3515
|
-
|
|
3495
|
+
_24WEKBY3_cjs.__name(resolveFixtures, "resolveFixtures");
|
|
3516
3496
|
return resolveFixtures().then(() => fn(context));
|
|
3517
3497
|
};
|
|
3518
3498
|
}
|
|
3519
|
-
|
|
3499
|
+
_24WEKBY3_cjs.__name(withFixtures, "withFixtures");
|
|
3520
3500
|
var globalFixturePromise = /* @__PURE__ */ new WeakMap();
|
|
3521
3501
|
function resolveFixtureValue(runner2, fixture, context, cleanupFnArray) {
|
|
3522
3502
|
var _runner$getWorkerCont;
|
|
@@ -3561,7 +3541,7 @@ function resolveFixtureValue(runner2, fixture, context, cleanupFnArray) {
|
|
|
3561
3541
|
globalFixturePromise.set(fixture, promise);
|
|
3562
3542
|
return promise;
|
|
3563
3543
|
}
|
|
3564
|
-
|
|
3544
|
+
_24WEKBY3_cjs.__name(resolveFixtureValue, "resolveFixtureValue");
|
|
3565
3545
|
async function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) {
|
|
3566
3546
|
const useFnArgPromise = createDefer();
|
|
3567
3547
|
let isUseFnArgResolved = false;
|
|
@@ -3583,7 +3563,7 @@ async function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) {
|
|
|
3583
3563
|
});
|
|
3584
3564
|
return useFnArgPromise;
|
|
3585
3565
|
}
|
|
3586
|
-
|
|
3566
|
+
_24WEKBY3_cjs.__name(resolveFixtureFunction, "resolveFixtureFunction");
|
|
3587
3567
|
function resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtures = []) {
|
|
3588
3568
|
fixtures.forEach((fixture) => {
|
|
3589
3569
|
if (pendingFixtures.includes(fixture)) {
|
|
@@ -3605,7 +3585,7 @@ function resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtur
|
|
|
3605
3585
|
});
|
|
3606
3586
|
return pendingFixtures;
|
|
3607
3587
|
}
|
|
3608
|
-
|
|
3588
|
+
_24WEKBY3_cjs.__name(resolveDeps, "resolveDeps");
|
|
3609
3589
|
function getUsedProps(fn) {
|
|
3610
3590
|
let fnString = stripLiteral(fn.toString());
|
|
3611
3591
|
if (/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(fnString)) {
|
|
@@ -3639,7 +3619,7 @@ function getUsedProps(fn) {
|
|
|
3639
3619
|
}
|
|
3640
3620
|
return props;
|
|
3641
3621
|
}
|
|
3642
|
-
|
|
3622
|
+
_24WEKBY3_cjs.__name(getUsedProps, "getUsedProps");
|
|
3643
3623
|
function splitByComma(s2) {
|
|
3644
3624
|
const result = [];
|
|
3645
3625
|
const stack = [];
|
|
@@ -3663,15 +3643,15 @@ function splitByComma(s2) {
|
|
|
3663
3643
|
}
|
|
3664
3644
|
return result;
|
|
3665
3645
|
}
|
|
3666
|
-
|
|
3646
|
+
_24WEKBY3_cjs.__name(splitByComma, "splitByComma");
|
|
3667
3647
|
var _test;
|
|
3668
3648
|
function getCurrentTest() {
|
|
3669
3649
|
return _test;
|
|
3670
3650
|
}
|
|
3671
|
-
|
|
3651
|
+
_24WEKBY3_cjs.__name(getCurrentTest, "getCurrentTest");
|
|
3672
3652
|
function createChainable(keys, fn) {
|
|
3673
3653
|
function create(context) {
|
|
3674
|
-
const chain2 = /* @__PURE__ */
|
|
3654
|
+
const chain2 = /* @__PURE__ */ _24WEKBY3_cjs.__name(function(...args) {
|
|
3675
3655
|
return fn.apply(context, args);
|
|
3676
3656
|
}, "chain");
|
|
3677
3657
|
Object.assign(chain2, fn);
|
|
@@ -3694,12 +3674,12 @@ function createChainable(keys, fn) {
|
|
|
3694
3674
|
}
|
|
3695
3675
|
return chain2;
|
|
3696
3676
|
}
|
|
3697
|
-
|
|
3677
|
+
_24WEKBY3_cjs.__name(create, "create");
|
|
3698
3678
|
const chain = create({});
|
|
3699
3679
|
chain.fn = fn;
|
|
3700
3680
|
return chain;
|
|
3701
3681
|
}
|
|
3702
|
-
|
|
3682
|
+
_24WEKBY3_cjs.__name(createChainable, "createChainable");
|
|
3703
3683
|
var suite = createSuite();
|
|
3704
3684
|
var test2 = createTest(function(name, optionsOrFn, optionsOrTest) {
|
|
3705
3685
|
getCurrentSuite().test.fn.call(this, formatName(name), optionsOrFn, optionsOrTest);
|
|
@@ -3712,22 +3692,22 @@ function assert(condition, message) {
|
|
|
3712
3692
|
throw new Error(`Vitest failed to find ${message}. This is a bug in Vitest. Please, open an issue with reproduction.`);
|
|
3713
3693
|
}
|
|
3714
3694
|
}
|
|
3715
|
-
|
|
3695
|
+
_24WEKBY3_cjs.__name(assert, "assert");
|
|
3716
3696
|
function getTestFilepath() {
|
|
3717
3697
|
return currentTestFilepath;
|
|
3718
3698
|
}
|
|
3719
|
-
|
|
3699
|
+
_24WEKBY3_cjs.__name(getTestFilepath, "getTestFilepath");
|
|
3720
3700
|
function getRunner() {
|
|
3721
3701
|
assert(runner, "the runner");
|
|
3722
3702
|
return runner;
|
|
3723
3703
|
}
|
|
3724
|
-
|
|
3704
|
+
_24WEKBY3_cjs.__name(getRunner, "getRunner");
|
|
3725
3705
|
function getCurrentSuite() {
|
|
3726
3706
|
const currentSuite = collectorContext.currentSuite || defaultSuite;
|
|
3727
3707
|
assert(currentSuite, "the current suite");
|
|
3728
3708
|
return currentSuite;
|
|
3729
3709
|
}
|
|
3730
|
-
|
|
3710
|
+
_24WEKBY3_cjs.__name(getCurrentSuite, "getCurrentSuite");
|
|
3731
3711
|
function createSuiteHooks() {
|
|
3732
3712
|
return {
|
|
3733
3713
|
beforeAll: [],
|
|
@@ -3736,10 +3716,10 @@ function createSuiteHooks() {
|
|
|
3736
3716
|
afterEach: []
|
|
3737
3717
|
};
|
|
3738
3718
|
}
|
|
3739
|
-
|
|
3719
|
+
_24WEKBY3_cjs.__name(createSuiteHooks, "createSuiteHooks");
|
|
3740
3720
|
function parseArguments(optionsOrFn, optionsOrTest) {
|
|
3741
3721
|
let options = {};
|
|
3742
|
-
let fn = /* @__PURE__ */
|
|
3722
|
+
let fn = /* @__PURE__ */ _24WEKBY3_cjs.__name(() => {
|
|
3743
3723
|
}, "fn");
|
|
3744
3724
|
if (typeof optionsOrTest === "object") {
|
|
3745
3725
|
if (typeof optionsOrFn === "object") {
|
|
@@ -3767,13 +3747,13 @@ function parseArguments(optionsOrFn, optionsOrTest) {
|
|
|
3767
3747
|
handler: fn
|
|
3768
3748
|
};
|
|
3769
3749
|
}
|
|
3770
|
-
|
|
3750
|
+
_24WEKBY3_cjs.__name(parseArguments, "parseArguments");
|
|
3771
3751
|
function createSuiteCollector(name, factory = () => {
|
|
3772
3752
|
}, mode, each, suiteOptions, parentCollectorFixtures) {
|
|
3773
3753
|
const tasks = [];
|
|
3774
3754
|
let suite2;
|
|
3775
3755
|
initSuite();
|
|
3776
|
-
const task = /* @__PURE__ */
|
|
3756
|
+
const task = /* @__PURE__ */ _24WEKBY3_cjs.__name(function(name2 = "", options = {}) {
|
|
3777
3757
|
var _collectorContext$cur;
|
|
3778
3758
|
const timeout = (options === null || options === void 0 ? void 0 : options.timeout) ?? runner.config.testTimeout;
|
|
3779
3759
|
const task2 = {
|
|
@@ -3864,7 +3844,7 @@ function createSuiteCollector(name, factory = () => {
|
|
|
3864
3844
|
function addHook(name2, ...fn) {
|
|
3865
3845
|
getHooks(suite2)[name2].push(...fn);
|
|
3866
3846
|
}
|
|
3867
|
-
|
|
3847
|
+
_24WEKBY3_cjs.__name(addHook, "addHook");
|
|
3868
3848
|
function initSuite(includeLocation) {
|
|
3869
3849
|
var _collectorContext$cur2;
|
|
3870
3850
|
if (typeof suiteOptions === "number") {
|
|
@@ -3887,12 +3867,12 @@ function createSuiteCollector(name, factory = () => {
|
|
|
3887
3867
|
};
|
|
3888
3868
|
setHooks(suite2, createSuiteHooks());
|
|
3889
3869
|
}
|
|
3890
|
-
|
|
3870
|
+
_24WEKBY3_cjs.__name(initSuite, "initSuite");
|
|
3891
3871
|
function clear() {
|
|
3892
3872
|
tasks.length = 0;
|
|
3893
3873
|
initSuite();
|
|
3894
3874
|
}
|
|
3895
|
-
|
|
3875
|
+
_24WEKBY3_cjs.__name(clear, "clear");
|
|
3896
3876
|
async function collect(file) {
|
|
3897
3877
|
if (!file) {
|
|
3898
3878
|
throw new TypeError("File is required to collect tasks.");
|
|
@@ -3911,11 +3891,11 @@ function createSuiteCollector(name, factory = () => {
|
|
|
3911
3891
|
});
|
|
3912
3892
|
return suite2;
|
|
3913
3893
|
}
|
|
3914
|
-
|
|
3894
|
+
_24WEKBY3_cjs.__name(collect, "collect");
|
|
3915
3895
|
collectTask(collector);
|
|
3916
3896
|
return collector;
|
|
3917
3897
|
}
|
|
3918
|
-
|
|
3898
|
+
_24WEKBY3_cjs.__name(createSuiteCollector, "createSuiteCollector");
|
|
3919
3899
|
function withAwaitAsyncAssertions(fn, task) {
|
|
3920
3900
|
return async (...args) => {
|
|
3921
3901
|
const fnResult = await fn(...args);
|
|
@@ -3929,7 +3909,7 @@ function withAwaitAsyncAssertions(fn, task) {
|
|
|
3929
3909
|
return fnResult;
|
|
3930
3910
|
};
|
|
3931
3911
|
}
|
|
3932
|
-
|
|
3912
|
+
_24WEKBY3_cjs.__name(withAwaitAsyncAssertions, "withAwaitAsyncAssertions");
|
|
3933
3913
|
function createSuite() {
|
|
3934
3914
|
function suiteFn(name, factoryOrOptions, optionsOrFactory) {
|
|
3935
3915
|
var _currentSuite$options;
|
|
@@ -3949,7 +3929,7 @@ function createSuite() {
|
|
|
3949
3929
|
options.sequential = isSequential && !isConcurrent;
|
|
3950
3930
|
return createSuiteCollector(formatName(name), factory, mode, this.each, options, currentSuite === null || currentSuite === void 0 ? void 0 : currentSuite.fixtures());
|
|
3951
3931
|
}
|
|
3952
|
-
|
|
3932
|
+
_24WEKBY3_cjs.__name(suiteFn, "suiteFn");
|
|
3953
3933
|
suiteFn.each = function(cases, ...args) {
|
|
3954
3934
|
const suite2 = this.withContext();
|
|
3955
3935
|
this.setContext("each", true);
|
|
@@ -4005,7 +3985,7 @@ function createSuite() {
|
|
|
4005
3985
|
"todo"
|
|
4006
3986
|
], suiteFn);
|
|
4007
3987
|
}
|
|
4008
|
-
|
|
3988
|
+
_24WEKBY3_cjs.__name(createSuite, "createSuite");
|
|
4009
3989
|
function createTaskCollector(fn, context) {
|
|
4010
3990
|
const taskFn = fn;
|
|
4011
3991
|
taskFn.each = function(cases, ...args) {
|
|
@@ -4049,7 +4029,7 @@ function createTaskCollector(fn, context) {
|
|
|
4049
4029
|
const _name = formatName(name);
|
|
4050
4030
|
const { options, handler } = parseArguments(optionsOrFn, fnOrOptions);
|
|
4051
4031
|
cases.forEach((item, idx) => {
|
|
4052
|
-
const handlerWrapper = /* @__PURE__ */
|
|
4032
|
+
const handlerWrapper = /* @__PURE__ */ _24WEKBY3_cjs.__name((ctx) => handler(item, ctx), "handlerWrapper");
|
|
4053
4033
|
handlerWrapper.__VITEST_FIXTURE_INDEX__ = 1;
|
|
4054
4034
|
handlerWrapper.toString = () => handler.toString();
|
|
4055
4035
|
test4(formatTitle(_name, toArray(item), idx), options, handlerWrapper);
|
|
@@ -4068,7 +4048,8 @@ function createTaskCollector(fn, context) {
|
|
|
4068
4048
|
};
|
|
4069
4049
|
taskFn.extend = function(fixtures) {
|
|
4070
4050
|
const _context = mergeContextFixtures(fixtures, context || {}, runner);
|
|
4071
|
-
|
|
4051
|
+
const originalWrapper = fn;
|
|
4052
|
+
return createTest(function(name, optionsOrFn, optionsOrTest) {
|
|
4072
4053
|
const collector = getCurrentSuite();
|
|
4073
4054
|
const scopedFixtures = collector.fixtures();
|
|
4074
4055
|
const context2 = {
|
|
@@ -4077,8 +4058,10 @@ function createTaskCollector(fn, context) {
|
|
|
4077
4058
|
if (scopedFixtures) {
|
|
4078
4059
|
context2.fixtures = mergeScopedFixtures(context2.fixtures || [], scopedFixtures);
|
|
4079
4060
|
}
|
|
4080
|
-
|
|
4081
|
-
|
|
4061
|
+
const { handler, options } = parseArguments(optionsOrFn, optionsOrTest);
|
|
4062
|
+
const timeout = options.timeout ?? (void 0 );
|
|
4063
|
+
originalWrapper.call(context2, formatName(name), handler, timeout);
|
|
4064
|
+
}, _context);
|
|
4082
4065
|
};
|
|
4083
4066
|
const _test2 = createChainable([
|
|
4084
4067
|
"concurrent",
|
|
@@ -4093,15 +4076,15 @@ function createTaskCollector(fn, context) {
|
|
|
4093
4076
|
}
|
|
4094
4077
|
return _test2;
|
|
4095
4078
|
}
|
|
4096
|
-
|
|
4079
|
+
_24WEKBY3_cjs.__name(createTaskCollector, "createTaskCollector");
|
|
4097
4080
|
function createTest(fn, context) {
|
|
4098
4081
|
return createTaskCollector(fn, context);
|
|
4099
4082
|
}
|
|
4100
|
-
|
|
4083
|
+
_24WEKBY3_cjs.__name(createTest, "createTest");
|
|
4101
4084
|
function formatName(name) {
|
|
4102
4085
|
return typeof name === "string" ? name : typeof name === "function" ? name.name || "<anonymous>" : String(name);
|
|
4103
4086
|
}
|
|
4104
|
-
|
|
4087
|
+
_24WEKBY3_cjs.__name(formatName, "formatName");
|
|
4105
4088
|
function formatTitle(template, items, idx) {
|
|
4106
4089
|
if (template.includes("%#") || template.includes("%$")) {
|
|
4107
4090
|
template = template.replace(/%%/g, "__vitest_escaped_%__").replace(/%#/g, `${idx}`).replace(/%\$/g, `${idx + 1}`).replace(/__vitest_escaped_%__/g, "%%");
|
|
@@ -4134,7 +4117,7 @@ function formatTitle(template, items, idx) {
|
|
|
4134
4117
|
});
|
|
4135
4118
|
return formatted;
|
|
4136
4119
|
}
|
|
4137
|
-
|
|
4120
|
+
_24WEKBY3_cjs.__name(formatTitle, "formatTitle");
|
|
4138
4121
|
function formatTemplateString(cases, args) {
|
|
4139
4122
|
const header = cases.join("").trim().replace(/ /g, "").split("\n").map((i) => i.split("|"))[0];
|
|
4140
4123
|
const res = [];
|
|
@@ -4147,7 +4130,7 @@ function formatTemplateString(cases, args) {
|
|
|
4147
4130
|
}
|
|
4148
4131
|
return res;
|
|
4149
4132
|
}
|
|
4150
|
-
|
|
4133
|
+
_24WEKBY3_cjs.__name(formatTemplateString, "formatTemplateString");
|
|
4151
4134
|
function findTestFileStackTrace(error) {
|
|
4152
4135
|
const testFilePath = getTestFilepath();
|
|
4153
4136
|
const lines = error.split("\n").slice(1);
|
|
@@ -4161,7 +4144,7 @@ function findTestFileStackTrace(error) {
|
|
|
4161
4144
|
}
|
|
4162
4145
|
}
|
|
4163
4146
|
}
|
|
4164
|
-
|
|
4147
|
+
_24WEKBY3_cjs.__name(findTestFileStackTrace, "findTestFileStackTrace");
|
|
4165
4148
|
globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
|
|
4166
4149
|
globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
|
|
4167
4150
|
var unixNow = Date.now;
|
|
@@ -4189,16 +4172,16 @@ function sendTasksUpdate(runner2) {
|
|
|
4189
4172
|
packs.clear();
|
|
4190
4173
|
}
|
|
4191
4174
|
}
|
|
4192
|
-
|
|
4175
|
+
_24WEKBY3_cjs.__name(sendTasksUpdate, "sendTasksUpdate");
|
|
4193
4176
|
async function finishSendTasksUpdate(runner2) {
|
|
4194
4177
|
sendTasksUpdate(runner2);
|
|
4195
4178
|
await Promise.all(pendingTasksUpdates);
|
|
4196
4179
|
}
|
|
4197
|
-
|
|
4180
|
+
_24WEKBY3_cjs.__name(finishSendTasksUpdate, "finishSendTasksUpdate");
|
|
4198
4181
|
function throttle(fn, ms) {
|
|
4199
4182
|
let last = 0;
|
|
4200
4183
|
let pendingCall;
|
|
4201
|
-
return /* @__PURE__ */
|
|
4184
|
+
return /* @__PURE__ */ _24WEKBY3_cjs.__name(function call2(...args) {
|
|
4202
4185
|
const now2 = unixNow();
|
|
4203
4186
|
if (now2 - last > ms) {
|
|
4204
4187
|
last = now2;
|
|
@@ -4209,7 +4192,7 @@ function throttle(fn, ms) {
|
|
|
4209
4192
|
pendingCall ?? (pendingCall = setTimeout(() => call2.bind(this)(...args), ms));
|
|
4210
4193
|
}, "call");
|
|
4211
4194
|
}
|
|
4212
|
-
|
|
4195
|
+
_24WEKBY3_cjs.__name(throttle, "throttle");
|
|
4213
4196
|
var now = Date.now;
|
|
4214
4197
|
var collectorContext = {
|
|
4215
4198
|
currentSuite: null
|
|
@@ -4218,20 +4201,20 @@ function collectTask(task) {
|
|
|
4218
4201
|
var _collectorContext$cur;
|
|
4219
4202
|
(_collectorContext$cur = collectorContext.currentSuite) === null || _collectorContext$cur === void 0 ? void 0 : _collectorContext$cur.tasks.push(task);
|
|
4220
4203
|
}
|
|
4221
|
-
|
|
4204
|
+
_24WEKBY3_cjs.__name(collectTask, "collectTask");
|
|
4222
4205
|
async function runWithSuite(suite2, fn) {
|
|
4223
4206
|
const prev = collectorContext.currentSuite;
|
|
4224
4207
|
collectorContext.currentSuite = suite2;
|
|
4225
4208
|
await fn();
|
|
4226
4209
|
collectorContext.currentSuite = prev;
|
|
4227
4210
|
}
|
|
4228
|
-
|
|
4211
|
+
_24WEKBY3_cjs.__name(runWithSuite, "runWithSuite");
|
|
4229
4212
|
function withTimeout(fn, timeout, isHook = false, stackTraceError, onTimeout) {
|
|
4230
4213
|
if (timeout <= 0 || timeout === Number.POSITIVE_INFINITY) {
|
|
4231
4214
|
return fn;
|
|
4232
4215
|
}
|
|
4233
4216
|
const { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = getSafeTimers();
|
|
4234
|
-
return /* @__PURE__ */
|
|
4217
|
+
return /* @__PURE__ */ _24WEKBY3_cjs.__name(function runWithTimeout(...args) {
|
|
4235
4218
|
const startTime = now();
|
|
4236
4219
|
const runner2 = getRunner();
|
|
4237
4220
|
runner2._currentTaskStartTime = startTime;
|
|
@@ -4248,7 +4231,7 @@ function withTimeout(fn, timeout, isHook = false, stackTraceError, onTimeout) {
|
|
|
4248
4231
|
onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout(args, error);
|
|
4249
4232
|
reject_(error);
|
|
4250
4233
|
}
|
|
4251
|
-
|
|
4234
|
+
_24WEKBY3_cjs.__name(rejectTimeoutError, "rejectTimeoutError");
|
|
4252
4235
|
function resolve2(result) {
|
|
4253
4236
|
runner2._currentTaskStartTime = void 0;
|
|
4254
4237
|
runner2._currentTaskTimeout = void 0;
|
|
@@ -4259,14 +4242,14 @@ function withTimeout(fn, timeout, isHook = false, stackTraceError, onTimeout) {
|
|
|
4259
4242
|
}
|
|
4260
4243
|
resolve_(result);
|
|
4261
4244
|
}
|
|
4262
|
-
|
|
4245
|
+
_24WEKBY3_cjs.__name(resolve2, "resolve");
|
|
4263
4246
|
function reject(error) {
|
|
4264
4247
|
runner2._currentTaskStartTime = void 0;
|
|
4265
4248
|
runner2._currentTaskTimeout = void 0;
|
|
4266
4249
|
clearTimeout2(timer);
|
|
4267
4250
|
reject_(error);
|
|
4268
4251
|
}
|
|
4269
|
-
|
|
4252
|
+
_24WEKBY3_cjs.__name(reject, "reject");
|
|
4270
4253
|
try {
|
|
4271
4254
|
const result = fn(...args);
|
|
4272
4255
|
if (typeof result === "object" && result != null && typeof result.then === "function") {
|
|
@@ -4280,22 +4263,22 @@ function withTimeout(fn, timeout, isHook = false, stackTraceError, onTimeout) {
|
|
|
4280
4263
|
});
|
|
4281
4264
|
}, "runWithTimeout");
|
|
4282
4265
|
}
|
|
4283
|
-
|
|
4266
|
+
_24WEKBY3_cjs.__name(withTimeout, "withTimeout");
|
|
4284
4267
|
var abortControllers = /* @__PURE__ */ new WeakMap();
|
|
4285
4268
|
function abortIfTimeout([context], error) {
|
|
4286
4269
|
if (context) {
|
|
4287
4270
|
abortContextSignal(context, error);
|
|
4288
4271
|
}
|
|
4289
4272
|
}
|
|
4290
|
-
|
|
4273
|
+
_24WEKBY3_cjs.__name(abortIfTimeout, "abortIfTimeout");
|
|
4291
4274
|
function abortContextSignal(context, error) {
|
|
4292
4275
|
const abortController = abortControllers.get(context);
|
|
4293
4276
|
abortController === null || abortController === void 0 ? void 0 : abortController.abort(error);
|
|
4294
4277
|
}
|
|
4295
|
-
|
|
4278
|
+
_24WEKBY3_cjs.__name(abortContextSignal, "abortContextSignal");
|
|
4296
4279
|
function createTestContext(test4, runner2) {
|
|
4297
4280
|
var _runner$extendTaskCon;
|
|
4298
|
-
const context = /* @__PURE__ */
|
|
4281
|
+
const context = /* @__PURE__ */ _24WEKBY3_cjs.__name(function() {
|
|
4299
4282
|
throw new Error("done() callback is deprecated, use promise instead");
|
|
4300
4283
|
}, "context");
|
|
4301
4284
|
let abortController = abortControllers.get(context);
|
|
@@ -4343,7 +4326,7 @@ function createTestContext(test4, runner2) {
|
|
|
4343
4326
|
test4.annotations.push(resolvedAnnotation);
|
|
4344
4327
|
return resolvedAnnotation;
|
|
4345
4328
|
}
|
|
4346
|
-
|
|
4329
|
+
_24WEKBY3_cjs.__name(annotate, "annotate");
|
|
4347
4330
|
context.annotate = (message, type3, attachment) => {
|
|
4348
4331
|
if (test4.result && test4.result.state !== "run") {
|
|
4349
4332
|
throw new Error(`Cannot annotate tests outside of the test run. The test "${test4.name}" finished running with the "${test4.result.state}" state already.`);
|
|
@@ -4376,7 +4359,7 @@ function createTestContext(test4, runner2) {
|
|
|
4376
4359
|
};
|
|
4377
4360
|
return ((_runner$extendTaskCon = runner2.extendTaskContext) === null || _runner$extendTaskCon === void 0 ? void 0 : _runner$extendTaskCon.call(runner2, context)) || context;
|
|
4378
4361
|
}
|
|
4379
|
-
|
|
4362
|
+
_24WEKBY3_cjs.__name(createTestContext, "createTestContext");
|
|
4380
4363
|
function makeTimeoutError(isHook, timeout, stackTraceError) {
|
|
4381
4364
|
const message = `${isHook ? "Hook" : "Test"} timed out in ${timeout}ms.
|
|
4382
4365
|
If this is a long-running ${isHook ? "hook" : "test"}, pass a timeout value as the last argument or configure it globally with "${isHook ? "hookTimeout" : "testTimeout"}".`;
|
|
@@ -4386,7 +4369,7 @@ If this is a long-running ${isHook ? "hook" : "test"}, pass a timeout value as t
|
|
|
4386
4369
|
}
|
|
4387
4370
|
return error;
|
|
4388
4371
|
}
|
|
4389
|
-
|
|
4372
|
+
_24WEKBY3_cjs.__name(makeTimeoutError, "makeTimeoutError");
|
|
4390
4373
|
var fileContexts = /* @__PURE__ */ new WeakMap();
|
|
4391
4374
|
function getFileContext(file) {
|
|
4392
4375
|
const context = fileContexts.get(file);
|
|
@@ -4395,7 +4378,7 @@ function getFileContext(file) {
|
|
|
4395
4378
|
}
|
|
4396
4379
|
return context;
|
|
4397
4380
|
}
|
|
4398
|
-
|
|
4381
|
+
_24WEKBY3_cjs.__name(getFileContext, "getFileContext");
|
|
4399
4382
|
var table = [];
|
|
4400
4383
|
for (let i = 65; i < 91; i++) {
|
|
4401
4384
|
table.push(String.fromCharCode(i));
|
|
@@ -4437,7 +4420,7 @@ function encodeUint8Array(bytes) {
|
|
|
4437
4420
|
}
|
|
4438
4421
|
return base64;
|
|
4439
4422
|
}
|
|
4440
|
-
|
|
4423
|
+
_24WEKBY3_cjs.__name(encodeUint8Array, "encodeUint8Array");
|
|
4441
4424
|
function recordAsyncAnnotation(test4, promise) {
|
|
4442
4425
|
promise = promise.finally(() => {
|
|
4443
4426
|
if (!test4.promises) {
|
|
@@ -4454,11 +4437,11 @@ function recordAsyncAnnotation(test4, promise) {
|
|
|
4454
4437
|
test4.promises.push(promise);
|
|
4455
4438
|
return promise;
|
|
4456
4439
|
}
|
|
4457
|
-
|
|
4440
|
+
_24WEKBY3_cjs.__name(recordAsyncAnnotation, "recordAsyncAnnotation");
|
|
4458
4441
|
function getDefaultHookTimeout() {
|
|
4459
4442
|
return getRunner().config.hookTimeout;
|
|
4460
4443
|
}
|
|
4461
|
-
|
|
4444
|
+
_24WEKBY3_cjs.__name(getDefaultHookTimeout, "getDefaultHookTimeout");
|
|
4462
4445
|
function createTestHook(name, handler) {
|
|
4463
4446
|
return (fn, timeout) => {
|
|
4464
4447
|
assertTypes(fn, `"${name}" callback`, [
|
|
@@ -4469,92 +4452,82 @@ function createTestHook(name, handler) {
|
|
|
4469
4452
|
}
|
|
4470
4453
|
};
|
|
4471
4454
|
}
|
|
4472
|
-
|
|
4455
|
+
_24WEKBY3_cjs.__name(createTestHook, "createTestHook");
|
|
4473
4456
|
|
|
4474
|
-
// ../../node_modules/.pnpm/@vitest+runner@3.2.
|
|
4475
|
-
|
|
4457
|
+
// ../../node_modules/.pnpm/@vitest+runner@3.2.4/node_modules/@vitest/runner/dist/index.js
|
|
4458
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4476
4459
|
|
|
4477
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
4478
|
-
|
|
4460
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@22.19.1_jiti@2.6.1_lightningcss@1.30.1_terser@5.44.1_tsx@4.20.6_yaml@2.8.1/node_modules/vitest/dist/index.js
|
|
4461
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4479
4462
|
|
|
4480
|
-
// ../../node_modules/.pnpm/chai@5.
|
|
4481
|
-
|
|
4463
|
+
// ../../node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js
|
|
4464
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
4482
4465
|
var __defProp = Object.defineProperty;
|
|
4483
|
-
var
|
|
4484
|
-
var __name2 = /* @__PURE__ */ U7VZULNU_cjs.__name((target, value) => __defProp(target, "name", {
|
|
4466
|
+
var __name2 = /* @__PURE__ */ _24WEKBY3_cjs.__name((target, value) => __defProp(target, "name", {
|
|
4485
4467
|
value,
|
|
4486
4468
|
configurable: true
|
|
4487
4469
|
}), "__name");
|
|
4488
|
-
var
|
|
4489
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
|
|
4490
|
-
exports: {}
|
|
4491
|
-
}).exports, mod), mod.exports;
|
|
4492
|
-
}, "__require"), "__commonJS");
|
|
4493
|
-
var __export = /* @__PURE__ */ U7VZULNU_cjs.__name((target, all) => {
|
|
4470
|
+
var __export = /* @__PURE__ */ _24WEKBY3_cjs.__name((target, all) => {
|
|
4494
4471
|
for (var name in all) __defProp(target, name, {
|
|
4495
4472
|
get: all[name],
|
|
4496
4473
|
enumerable: true
|
|
4497
4474
|
});
|
|
4498
4475
|
}, "__export");
|
|
4499
|
-
var require_util = __commonJS2({
|
|
4500
|
-
"(disabled):util"() {
|
|
4501
|
-
}
|
|
4502
|
-
});
|
|
4503
4476
|
var utils_exports = {};
|
|
4504
4477
|
__export(utils_exports, {
|
|
4505
|
-
addChainableMethod: /* @__PURE__ */
|
|
4506
|
-
addLengthGuard: /* @__PURE__ */
|
|
4507
|
-
addMethod: /* @__PURE__ */
|
|
4508
|
-
addProperty: /* @__PURE__ */
|
|
4509
|
-
checkError: /* @__PURE__ */
|
|
4510
|
-
compareByInspect: /* @__PURE__ */
|
|
4511
|
-
eql: /* @__PURE__ */
|
|
4512
|
-
expectTypes: /* @__PURE__ */
|
|
4513
|
-
flag: /* @__PURE__ */
|
|
4514
|
-
getActual: /* @__PURE__ */
|
|
4515
|
-
getMessage: /* @__PURE__ */
|
|
4516
|
-
getName: /* @__PURE__ */
|
|
4517
|
-
getOperator: /* @__PURE__ */
|
|
4518
|
-
getOwnEnumerableProperties: /* @__PURE__ */
|
|
4519
|
-
getOwnEnumerablePropertySymbols: /* @__PURE__ */
|
|
4520
|
-
getPathInfo: /* @__PURE__ */
|
|
4521
|
-
hasProperty: /* @__PURE__ */
|
|
4522
|
-
inspect: /* @__PURE__ */
|
|
4523
|
-
isNaN: /* @__PURE__ */
|
|
4524
|
-
isNumeric: /* @__PURE__ */
|
|
4525
|
-
isProxyEnabled: /* @__PURE__ */
|
|
4526
|
-
isRegExp: /* @__PURE__ */
|
|
4527
|
-
objDisplay: /* @__PURE__ */
|
|
4528
|
-
overwriteChainableMethod: /* @__PURE__ */
|
|
4529
|
-
overwriteMethod: /* @__PURE__ */
|
|
4530
|
-
overwriteProperty: /* @__PURE__ */
|
|
4531
|
-
proxify: /* @__PURE__ */
|
|
4532
|
-
test: /* @__PURE__ */
|
|
4533
|
-
transferFlags: /* @__PURE__ */
|
|
4534
|
-
type: /* @__PURE__ */
|
|
4478
|
+
addChainableMethod: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => addChainableMethod, "addChainableMethod"),
|
|
4479
|
+
addLengthGuard: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => addLengthGuard, "addLengthGuard"),
|
|
4480
|
+
addMethod: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => addMethod, "addMethod"),
|
|
4481
|
+
addProperty: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => addProperty, "addProperty"),
|
|
4482
|
+
checkError: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => check_error_exports, "checkError"),
|
|
4483
|
+
compareByInspect: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => compareByInspect, "compareByInspect"),
|
|
4484
|
+
eql: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => deep_eql_default, "eql"),
|
|
4485
|
+
expectTypes: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => expectTypes, "expectTypes"),
|
|
4486
|
+
flag: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => flag, "flag"),
|
|
4487
|
+
getActual: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getActual, "getActual"),
|
|
4488
|
+
getMessage: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getMessage2, "getMessage"),
|
|
4489
|
+
getName: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getName, "getName"),
|
|
4490
|
+
getOperator: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getOperator, "getOperator"),
|
|
4491
|
+
getOwnEnumerableProperties: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getOwnEnumerableProperties, "getOwnEnumerableProperties"),
|
|
4492
|
+
getOwnEnumerablePropertySymbols: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getOwnEnumerablePropertySymbols, "getOwnEnumerablePropertySymbols"),
|
|
4493
|
+
getPathInfo: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getPathInfo, "getPathInfo"),
|
|
4494
|
+
hasProperty: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => hasProperty, "hasProperty"),
|
|
4495
|
+
inspect: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => inspect22, "inspect"),
|
|
4496
|
+
isNaN: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => isNaN22, "isNaN"),
|
|
4497
|
+
isNumeric: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => isNumeric, "isNumeric"),
|
|
4498
|
+
isProxyEnabled: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => isProxyEnabled, "isProxyEnabled"),
|
|
4499
|
+
isRegExp: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => isRegExp2, "isRegExp"),
|
|
4500
|
+
objDisplay: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => objDisplay2, "objDisplay"),
|
|
4501
|
+
overwriteChainableMethod: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => overwriteChainableMethod, "overwriteChainableMethod"),
|
|
4502
|
+
overwriteMethod: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => overwriteMethod, "overwriteMethod"),
|
|
4503
|
+
overwriteProperty: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => overwriteProperty, "overwriteProperty"),
|
|
4504
|
+
proxify: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => proxify, "proxify"),
|
|
4505
|
+
test: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => test3, "test"),
|
|
4506
|
+
transferFlags: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => transferFlags, "transferFlags"),
|
|
4507
|
+
type: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => type, "type")
|
|
4535
4508
|
});
|
|
4536
4509
|
var check_error_exports = {};
|
|
4537
4510
|
__export(check_error_exports, {
|
|
4538
|
-
compatibleConstructor: /* @__PURE__ */
|
|
4539
|
-
compatibleInstance: /* @__PURE__ */
|
|
4540
|
-
compatibleMessage: /* @__PURE__ */
|
|
4541
|
-
getConstructorName: /* @__PURE__ */
|
|
4542
|
-
getMessage: /* @__PURE__ */
|
|
4511
|
+
compatibleConstructor: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => compatibleConstructor, "compatibleConstructor"),
|
|
4512
|
+
compatibleInstance: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => compatibleInstance, "compatibleInstance"),
|
|
4513
|
+
compatibleMessage: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => compatibleMessage, "compatibleMessage"),
|
|
4514
|
+
getConstructorName: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getConstructorName2, "getConstructorName"),
|
|
4515
|
+
getMessage: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => getMessage, "getMessage")
|
|
4543
4516
|
});
|
|
4544
4517
|
function isErrorInstance(obj) {
|
|
4545
4518
|
return obj instanceof Error || Object.prototype.toString.call(obj) === "[object Error]";
|
|
4546
4519
|
}
|
|
4547
|
-
|
|
4520
|
+
_24WEKBY3_cjs.__name(isErrorInstance, "isErrorInstance");
|
|
4548
4521
|
__name2(isErrorInstance, "isErrorInstance");
|
|
4549
4522
|
function isRegExp(obj) {
|
|
4550
4523
|
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
4551
4524
|
}
|
|
4552
|
-
|
|
4525
|
+
_24WEKBY3_cjs.__name(isRegExp, "isRegExp");
|
|
4553
4526
|
__name2(isRegExp, "isRegExp");
|
|
4554
4527
|
function compatibleInstance(thrown, errorLike) {
|
|
4555
4528
|
return isErrorInstance(errorLike) && thrown === errorLike;
|
|
4556
4529
|
}
|
|
4557
|
-
|
|
4530
|
+
_24WEKBY3_cjs.__name(compatibleInstance, "compatibleInstance");
|
|
4558
4531
|
__name2(compatibleInstance, "compatibleInstance");
|
|
4559
4532
|
function compatibleConstructor(thrown, errorLike) {
|
|
4560
4533
|
if (isErrorInstance(errorLike)) {
|
|
@@ -4564,7 +4537,7 @@ function compatibleConstructor(thrown, errorLike) {
|
|
|
4564
4537
|
}
|
|
4565
4538
|
return false;
|
|
4566
4539
|
}
|
|
4567
|
-
|
|
4540
|
+
_24WEKBY3_cjs.__name(compatibleConstructor, "compatibleConstructor");
|
|
4568
4541
|
__name2(compatibleConstructor, "compatibleConstructor");
|
|
4569
4542
|
function compatibleMessage(thrown, errMatcher) {
|
|
4570
4543
|
const comparisonString = typeof thrown === "string" ? thrown : thrown.message;
|
|
@@ -4575,7 +4548,7 @@ function compatibleMessage(thrown, errMatcher) {
|
|
|
4575
4548
|
}
|
|
4576
4549
|
return false;
|
|
4577
4550
|
}
|
|
4578
|
-
|
|
4551
|
+
_24WEKBY3_cjs.__name(compatibleMessage, "compatibleMessage");
|
|
4579
4552
|
__name2(compatibleMessage, "compatibleMessage");
|
|
4580
4553
|
function getConstructorName2(errorLike) {
|
|
4581
4554
|
let constructorName = errorLike;
|
|
@@ -4590,7 +4563,7 @@ function getConstructorName2(errorLike) {
|
|
|
4590
4563
|
}
|
|
4591
4564
|
return constructorName;
|
|
4592
4565
|
}
|
|
4593
|
-
|
|
4566
|
+
_24WEKBY3_cjs.__name(getConstructorName2, "getConstructorName");
|
|
4594
4567
|
__name2(getConstructorName2, "getConstructorName");
|
|
4595
4568
|
function getMessage(errorLike) {
|
|
4596
4569
|
let msg = "";
|
|
@@ -4601,23 +4574,23 @@ function getMessage(errorLike) {
|
|
|
4601
4574
|
}
|
|
4602
4575
|
return msg;
|
|
4603
4576
|
}
|
|
4604
|
-
|
|
4577
|
+
_24WEKBY3_cjs.__name(getMessage, "getMessage");
|
|
4605
4578
|
__name2(getMessage, "getMessage");
|
|
4606
4579
|
function flag(obj, key, value) {
|
|
4607
|
-
|
|
4580
|
+
let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
|
|
4608
4581
|
if (arguments.length === 3) {
|
|
4609
4582
|
flags[key] = value;
|
|
4610
4583
|
} else {
|
|
4611
4584
|
return flags[key];
|
|
4612
4585
|
}
|
|
4613
4586
|
}
|
|
4614
|
-
|
|
4587
|
+
_24WEKBY3_cjs.__name(flag, "flag");
|
|
4615
4588
|
__name2(flag, "flag");
|
|
4616
4589
|
function test3(obj, args) {
|
|
4617
|
-
|
|
4590
|
+
let negate = flag(obj, "negate"), expr = args[0];
|
|
4618
4591
|
return negate ? !expr : expr;
|
|
4619
4592
|
}
|
|
4620
|
-
|
|
4593
|
+
_24WEKBY3_cjs.__name(test3, "test");
|
|
4621
4594
|
__name2(test3, "test");
|
|
4622
4595
|
function type(obj) {
|
|
4623
4596
|
if (typeof obj === "undefined") {
|
|
@@ -4633,12 +4606,12 @@ function type(obj) {
|
|
|
4633
4606
|
const type3 = Object.prototype.toString.call(obj).slice(8, -1);
|
|
4634
4607
|
return type3;
|
|
4635
4608
|
}
|
|
4636
|
-
|
|
4609
|
+
_24WEKBY3_cjs.__name(type, "type");
|
|
4637
4610
|
__name2(type, "type");
|
|
4638
4611
|
var canElideFrames = "captureStackTrace" in Error;
|
|
4639
4612
|
var AssertionError = class _AssertionError extends Error {
|
|
4640
4613
|
static {
|
|
4641
|
-
|
|
4614
|
+
_24WEKBY3_cjs.__name(this, "_AssertionError");
|
|
4642
4615
|
}
|
|
4643
4616
|
static {
|
|
4644
4617
|
__name2(this, "AssertionError");
|
|
@@ -4673,38 +4646,38 @@ var AssertionError = class _AssertionError extends Error {
|
|
|
4673
4646
|
}
|
|
4674
4647
|
};
|
|
4675
4648
|
function expectTypes(obj, types) {
|
|
4676
|
-
|
|
4677
|
-
|
|
4649
|
+
let flagMsg = flag(obj, "message");
|
|
4650
|
+
let ssfi = flag(obj, "ssfi");
|
|
4678
4651
|
flagMsg = flagMsg ? flagMsg + ": " : "";
|
|
4679
4652
|
obj = flag(obj, "object");
|
|
4680
4653
|
types = types.map(function(t) {
|
|
4681
4654
|
return t.toLowerCase();
|
|
4682
4655
|
});
|
|
4683
4656
|
types.sort();
|
|
4684
|
-
|
|
4685
|
-
|
|
4657
|
+
let str = types.map(function(t, index2) {
|
|
4658
|
+
let art = ~[
|
|
4686
4659
|
"a",
|
|
4687
4660
|
"e",
|
|
4688
4661
|
"i",
|
|
4689
4662
|
"o",
|
|
4690
4663
|
"u"
|
|
4691
4664
|
].indexOf(t.charAt(0)) ? "an" : "a";
|
|
4692
|
-
|
|
4665
|
+
let or = types.length > 1 && index2 === types.length - 1 ? "or " : "";
|
|
4693
4666
|
return or + art + " " + t;
|
|
4694
4667
|
}).join(", ");
|
|
4695
|
-
|
|
4668
|
+
let objType = type(obj).toLowerCase();
|
|
4696
4669
|
if (!types.some(function(expected) {
|
|
4697
4670
|
return objType === expected;
|
|
4698
4671
|
})) {
|
|
4699
4672
|
throw new AssertionError(flagMsg + "object tested must be " + str + ", but " + objType + " given", void 0, ssfi);
|
|
4700
4673
|
}
|
|
4701
4674
|
}
|
|
4702
|
-
|
|
4675
|
+
_24WEKBY3_cjs.__name(expectTypes, "expectTypes");
|
|
4703
4676
|
__name2(expectTypes, "expectTypes");
|
|
4704
4677
|
function getActual(obj, args) {
|
|
4705
4678
|
return args.length > 4 ? args[4] : obj._obj;
|
|
4706
4679
|
}
|
|
4707
|
-
|
|
4680
|
+
_24WEKBY3_cjs.__name(getActual, "getActual");
|
|
4708
4681
|
__name2(getActual, "getActual");
|
|
4709
4682
|
var ansiColors2 = {
|
|
4710
4683
|
bold: [
|
|
@@ -4827,7 +4800,7 @@ function colorise2(value, styleType) {
|
|
|
4827
4800
|
}
|
|
4828
4801
|
return `\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`;
|
|
4829
4802
|
}
|
|
4830
|
-
|
|
4803
|
+
_24WEKBY3_cjs.__name(colorise2, "colorise");
|
|
4831
4804
|
__name2(colorise2, "colorise");
|
|
4832
4805
|
function normaliseOptions2({
|
|
4833
4806
|
showHidden = false,
|
|
@@ -4860,12 +4833,12 @@ function normaliseOptions2({
|
|
|
4860
4833
|
}
|
|
4861
4834
|
return options;
|
|
4862
4835
|
}
|
|
4863
|
-
|
|
4836
|
+
_24WEKBY3_cjs.__name(normaliseOptions2, "normaliseOptions");
|
|
4864
4837
|
__name2(normaliseOptions2, "normaliseOptions");
|
|
4865
4838
|
function isHighSurrogate2(char) {
|
|
4866
4839
|
return char >= "\uD800" && char <= "\uDBFF";
|
|
4867
4840
|
}
|
|
4868
|
-
|
|
4841
|
+
_24WEKBY3_cjs.__name(isHighSurrogate2, "isHighSurrogate");
|
|
4869
4842
|
__name2(isHighSurrogate2, "isHighSurrogate");
|
|
4870
4843
|
function truncate2(string, length, tail = truncator2) {
|
|
4871
4844
|
string = String(string);
|
|
@@ -4883,7 +4856,7 @@ function truncate2(string, length, tail = truncator2) {
|
|
|
4883
4856
|
}
|
|
4884
4857
|
return string;
|
|
4885
4858
|
}
|
|
4886
|
-
|
|
4859
|
+
_24WEKBY3_cjs.__name(truncate2, "truncate");
|
|
4887
4860
|
__name2(truncate2, "truncate");
|
|
4888
4861
|
function inspectList2(list, options, inspectItem, separator = ", ") {
|
|
4889
4862
|
inspectItem = inspectItem || options.inspect;
|
|
@@ -4921,7 +4894,7 @@ function inspectList2(list, options, inspectItem, separator = ", ") {
|
|
|
4921
4894
|
}
|
|
4922
4895
|
return `${output}${truncated}`;
|
|
4923
4896
|
}
|
|
4924
|
-
|
|
4897
|
+
_24WEKBY3_cjs.__name(inspectList2, "inspectList");
|
|
4925
4898
|
__name2(inspectList2, "inspectList");
|
|
4926
4899
|
function quoteComplexKey2(key) {
|
|
4927
4900
|
if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {
|
|
@@ -4929,7 +4902,7 @@ function quoteComplexKey2(key) {
|
|
|
4929
4902
|
}
|
|
4930
4903
|
return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
4931
4904
|
}
|
|
4932
|
-
|
|
4905
|
+
_24WEKBY3_cjs.__name(quoteComplexKey2, "quoteComplexKey");
|
|
4933
4906
|
__name2(quoteComplexKey2, "quoteComplexKey");
|
|
4934
4907
|
function inspectProperty2([key, value], options) {
|
|
4935
4908
|
options.truncate -= 2;
|
|
@@ -4942,7 +4915,7 @@ function inspectProperty2([key, value], options) {
|
|
|
4942
4915
|
value = options.inspect(value, options);
|
|
4943
4916
|
return `${key}: ${value}`;
|
|
4944
4917
|
}
|
|
4945
|
-
|
|
4918
|
+
_24WEKBY3_cjs.__name(inspectProperty2, "inspectProperty");
|
|
4946
4919
|
__name2(inspectProperty2, "inspectProperty");
|
|
4947
4920
|
function inspectArray2(array, options) {
|
|
4948
4921
|
const nonIndexProperties = Object.keys(array).slice(array.length);
|
|
@@ -4959,7 +4932,7 @@ function inspectArray2(array, options) {
|
|
|
4959
4932
|
}
|
|
4960
4933
|
return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
4961
4934
|
}
|
|
4962
|
-
|
|
4935
|
+
_24WEKBY3_cjs.__name(inspectArray2, "inspectArray");
|
|
4963
4936
|
__name2(inspectArray2, "inspectArray");
|
|
4964
4937
|
var getArrayName2 = /* @__PURE__ */ __name2((array) => {
|
|
4965
4938
|
if (typeof Buffer === "function" && array instanceof Buffer) {
|
|
@@ -4994,7 +4967,7 @@ function inspectTypedArray2(array, options) {
|
|
|
4994
4967
|
}
|
|
4995
4968
|
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
4996
4969
|
}
|
|
4997
|
-
|
|
4970
|
+
_24WEKBY3_cjs.__name(inspectTypedArray2, "inspectTypedArray");
|
|
4998
4971
|
__name2(inspectTypedArray2, "inspectTypedArray");
|
|
4999
4972
|
function inspectDate2(dateObject, options) {
|
|
5000
4973
|
const stringRepresentation = dateObject.toJSON();
|
|
@@ -5005,7 +4978,7 @@ function inspectDate2(dateObject, options) {
|
|
|
5005
4978
|
const date = split[0];
|
|
5006
4979
|
return options.stylize(`${date}T${truncate2(split[1], options.truncate - date.length - 1)}`, "date");
|
|
5007
4980
|
}
|
|
5008
|
-
|
|
4981
|
+
_24WEKBY3_cjs.__name(inspectDate2, "inspectDate");
|
|
5009
4982
|
__name2(inspectDate2, "inspectDate");
|
|
5010
4983
|
function inspectFunction2(func, options) {
|
|
5011
4984
|
const functionType = func[Symbol.toStringTag] || "Function";
|
|
@@ -5015,7 +4988,7 @@ function inspectFunction2(func, options) {
|
|
|
5015
4988
|
}
|
|
5016
4989
|
return options.stylize(`[${functionType} ${truncate2(name, options.truncate - 11)}]`, "special");
|
|
5017
4990
|
}
|
|
5018
|
-
|
|
4991
|
+
_24WEKBY3_cjs.__name(inspectFunction2, "inspectFunction");
|
|
5019
4992
|
__name2(inspectFunction2, "inspectFunction");
|
|
5020
4993
|
function inspectMapEntry2([key, value], options) {
|
|
5021
4994
|
options.truncate -= 4;
|
|
@@ -5024,7 +4997,7 @@ function inspectMapEntry2([key, value], options) {
|
|
|
5024
4997
|
value = options.inspect(value, options);
|
|
5025
4998
|
return `${key} => ${value}`;
|
|
5026
4999
|
}
|
|
5027
|
-
|
|
5000
|
+
_24WEKBY3_cjs.__name(inspectMapEntry2, "inspectMapEntry");
|
|
5028
5001
|
__name2(inspectMapEntry2, "inspectMapEntry");
|
|
5029
5002
|
function mapToEntries2(map) {
|
|
5030
5003
|
const entries = [];
|
|
@@ -5036,17 +5009,14 @@ function mapToEntries2(map) {
|
|
|
5036
5009
|
});
|
|
5037
5010
|
return entries;
|
|
5038
5011
|
}
|
|
5039
|
-
|
|
5012
|
+
_24WEKBY3_cjs.__name(mapToEntries2, "mapToEntries");
|
|
5040
5013
|
__name2(mapToEntries2, "mapToEntries");
|
|
5041
5014
|
function inspectMap2(map, options) {
|
|
5042
|
-
|
|
5043
|
-
if (size <= 0) {
|
|
5044
|
-
return "Map{}";
|
|
5045
|
-
}
|
|
5015
|
+
if (map.size === 0) return "Map{}";
|
|
5046
5016
|
options.truncate -= 7;
|
|
5047
5017
|
return `Map{ ${inspectList2(mapToEntries2(map), options, inspectMapEntry2)} }`;
|
|
5048
5018
|
}
|
|
5049
|
-
|
|
5019
|
+
_24WEKBY3_cjs.__name(inspectMap2, "inspectMap");
|
|
5050
5020
|
__name2(inspectMap2, "inspectMap");
|
|
5051
5021
|
var isNaN2 = Number.isNaN || ((i) => i !== i);
|
|
5052
5022
|
function inspectNumber2(number, options) {
|
|
@@ -5064,14 +5034,14 @@ function inspectNumber2(number, options) {
|
|
|
5064
5034
|
}
|
|
5065
5035
|
return options.stylize(truncate2(String(number), options.truncate), "number");
|
|
5066
5036
|
}
|
|
5067
|
-
|
|
5037
|
+
_24WEKBY3_cjs.__name(inspectNumber2, "inspectNumber");
|
|
5068
5038
|
__name2(inspectNumber2, "inspectNumber");
|
|
5069
5039
|
function inspectBigInt2(number, options) {
|
|
5070
5040
|
let nums = truncate2(number.toString(), options.truncate - 1);
|
|
5071
5041
|
if (nums !== truncator2) nums += "n";
|
|
5072
5042
|
return options.stylize(nums, "bigint");
|
|
5073
5043
|
}
|
|
5074
|
-
|
|
5044
|
+
_24WEKBY3_cjs.__name(inspectBigInt2, "inspectBigInt");
|
|
5075
5045
|
__name2(inspectBigInt2, "inspectBigInt");
|
|
5076
5046
|
function inspectRegExp2(value, options) {
|
|
5077
5047
|
const flags = value.toString().split("/")[2];
|
|
@@ -5079,7 +5049,7 @@ function inspectRegExp2(value, options) {
|
|
|
5079
5049
|
const source = value.source;
|
|
5080
5050
|
return options.stylize(`/${truncate2(source, sourceLength)}/${flags}`, "regexp");
|
|
5081
5051
|
}
|
|
5082
|
-
|
|
5052
|
+
_24WEKBY3_cjs.__name(inspectRegExp2, "inspectRegExp");
|
|
5083
5053
|
__name2(inspectRegExp2, "inspectRegExp");
|
|
5084
5054
|
function arrayFromSet2(set2) {
|
|
5085
5055
|
const values = [];
|
|
@@ -5088,14 +5058,14 @@ function arrayFromSet2(set2) {
|
|
|
5088
5058
|
});
|
|
5089
5059
|
return values;
|
|
5090
5060
|
}
|
|
5091
|
-
|
|
5061
|
+
_24WEKBY3_cjs.__name(arrayFromSet2, "arrayFromSet");
|
|
5092
5062
|
__name2(arrayFromSet2, "arrayFromSet");
|
|
5093
5063
|
function inspectSet2(set2, options) {
|
|
5094
5064
|
if (set2.size === 0) return "Set{}";
|
|
5095
5065
|
options.truncate -= 7;
|
|
5096
5066
|
return `Set{ ${inspectList2(arrayFromSet2(set2), options)} }`;
|
|
5097
5067
|
}
|
|
5098
|
-
|
|
5068
|
+
_24WEKBY3_cjs.__name(inspectSet2, "inspectSet");
|
|
5099
5069
|
__name2(inspectSet2, "inspectSet");
|
|
5100
5070
|
var stringEscapeChars2 = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
5101
5071
|
var escapeCharacters2 = {
|
|
@@ -5111,7 +5081,7 @@ var hex2 = 16;
|
|
|
5111
5081
|
function escape2(char) {
|
|
5112
5082
|
return escapeCharacters2[char] || `\\u${`0000${char.charCodeAt(0).toString(hex2)}`.slice(-4)}`;
|
|
5113
5083
|
}
|
|
5114
|
-
|
|
5084
|
+
_24WEKBY3_cjs.__name(escape2, "escape");
|
|
5115
5085
|
__name2(escape2, "escape");
|
|
5116
5086
|
function inspectString2(string, options) {
|
|
5117
5087
|
if (stringEscapeChars2.test(string)) {
|
|
@@ -5119,7 +5089,7 @@ function inspectString2(string, options) {
|
|
|
5119
5089
|
}
|
|
5120
5090
|
return options.stylize(`'${truncate2(string, options.truncate - 2)}'`, "string");
|
|
5121
5091
|
}
|
|
5122
|
-
|
|
5092
|
+
_24WEKBY3_cjs.__name(inspectString2, "inspectString");
|
|
5123
5093
|
__name2(inspectString2, "inspectString");
|
|
5124
5094
|
function inspectSymbol2(value) {
|
|
5125
5095
|
if ("description" in Symbol.prototype) {
|
|
@@ -5127,22 +5097,9 @@ function inspectSymbol2(value) {
|
|
|
5127
5097
|
}
|
|
5128
5098
|
return value.toString();
|
|
5129
5099
|
}
|
|
5130
|
-
|
|
5100
|
+
_24WEKBY3_cjs.__name(inspectSymbol2, "inspectSymbol");
|
|
5131
5101
|
__name2(inspectSymbol2, "inspectSymbol");
|
|
5132
5102
|
var getPromiseValue2 = /* @__PURE__ */ __name2(() => "Promise{\u2026}", "getPromiseValue");
|
|
5133
|
-
try {
|
|
5134
|
-
const { getPromiseDetails, kPending, kRejected } = process.binding("util");
|
|
5135
|
-
if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
|
|
5136
|
-
getPromiseValue2 = /* @__PURE__ */ __name2((value, options) => {
|
|
5137
|
-
const [state, innerValue] = getPromiseDetails(value);
|
|
5138
|
-
if (state === kPending) {
|
|
5139
|
-
return "Promise{<pending>}";
|
|
5140
|
-
}
|
|
5141
|
-
return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
|
|
5142
|
-
}, "getPromiseValue");
|
|
5143
|
-
}
|
|
5144
|
-
} catch (notNode) {
|
|
5145
|
-
}
|
|
5146
5103
|
var promise_default2 = getPromiseValue2;
|
|
5147
5104
|
function inspectObject3(object, options) {
|
|
5148
5105
|
const properties = Object.getOwnPropertyNames(object);
|
|
@@ -5171,7 +5128,7 @@ function inspectObject3(object, options) {
|
|
|
5171
5128
|
}
|
|
5172
5129
|
return `{ ${propertyContents}${sep}${symbolContents} }`;
|
|
5173
5130
|
}
|
|
5174
|
-
|
|
5131
|
+
_24WEKBY3_cjs.__name(inspectObject3, "inspectObject");
|
|
5175
5132
|
__name2(inspectObject3, "inspectObject");
|
|
5176
5133
|
var toStringTag2 = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
|
|
5177
5134
|
function inspectClass2(value, options) {
|
|
@@ -5186,14 +5143,14 @@ function inspectClass2(value, options) {
|
|
|
5186
5143
|
options.truncate -= name.length;
|
|
5187
5144
|
return `${name}${inspectObject3(value, options)}`;
|
|
5188
5145
|
}
|
|
5189
|
-
|
|
5146
|
+
_24WEKBY3_cjs.__name(inspectClass2, "inspectClass");
|
|
5190
5147
|
__name2(inspectClass2, "inspectClass");
|
|
5191
5148
|
function inspectArguments2(args, options) {
|
|
5192
5149
|
if (args.length === 0) return "Arguments[]";
|
|
5193
5150
|
options.truncate -= 13;
|
|
5194
5151
|
return `Arguments[ ${inspectList2(args, options)} ]`;
|
|
5195
5152
|
}
|
|
5196
|
-
|
|
5153
|
+
_24WEKBY3_cjs.__name(inspectArguments2, "inspectArguments");
|
|
5197
5154
|
__name2(inspectArguments2, "inspectArguments");
|
|
5198
5155
|
var errorKeys2 = [
|
|
5199
5156
|
"stack",
|
|
@@ -5231,7 +5188,7 @@ function inspectObject22(error, options) {
|
|
|
5231
5188
|
]), options, inspectProperty2);
|
|
5232
5189
|
return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
|
|
5233
5190
|
}
|
|
5234
|
-
|
|
5191
|
+
_24WEKBY3_cjs.__name(inspectObject22, "inspectObject2");
|
|
5235
5192
|
__name2(inspectObject22, "inspectObject");
|
|
5236
5193
|
function inspectAttribute2([key, value], options) {
|
|
5237
5194
|
options.truncate -= 3;
|
|
@@ -5240,13 +5197,25 @@ function inspectAttribute2([key, value], options) {
|
|
|
5240
5197
|
}
|
|
5241
5198
|
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
5242
5199
|
}
|
|
5243
|
-
|
|
5200
|
+
_24WEKBY3_cjs.__name(inspectAttribute2, "inspectAttribute");
|
|
5244
5201
|
__name2(inspectAttribute2, "inspectAttribute");
|
|
5245
|
-
function
|
|
5246
|
-
return inspectList2(collection, options,
|
|
5202
|
+
function inspectNodeCollection2(collection, options) {
|
|
5203
|
+
return inspectList2(collection, options, inspectNode2, "\n");
|
|
5204
|
+
}
|
|
5205
|
+
_24WEKBY3_cjs.__name(inspectNodeCollection2, "inspectNodeCollection");
|
|
5206
|
+
__name2(inspectNodeCollection2, "inspectNodeCollection");
|
|
5207
|
+
function inspectNode2(node, options) {
|
|
5208
|
+
switch (node.nodeType) {
|
|
5209
|
+
case 1:
|
|
5210
|
+
return inspectHTML2(node, options);
|
|
5211
|
+
case 3:
|
|
5212
|
+
return options.inspect(node.data, options);
|
|
5213
|
+
default:
|
|
5214
|
+
return options.inspect(node, options);
|
|
5215
|
+
}
|
|
5247
5216
|
}
|
|
5248
|
-
|
|
5249
|
-
__name2(
|
|
5217
|
+
_24WEKBY3_cjs.__name(inspectNode2, "inspectNode");
|
|
5218
|
+
__name2(inspectNode2, "inspectNode");
|
|
5250
5219
|
function inspectHTML2(element, options) {
|
|
5251
5220
|
const properties = element.getAttributeNames();
|
|
5252
5221
|
const name = element.tagName.toLowerCase();
|
|
@@ -5264,30 +5233,24 @@ function inspectHTML2(element, options) {
|
|
|
5264
5233
|
}
|
|
5265
5234
|
options.truncate -= propertyContents.length;
|
|
5266
5235
|
const truncate22 = options.truncate;
|
|
5267
|
-
let children =
|
|
5236
|
+
let children = inspectNodeCollection2(element.children, options);
|
|
5268
5237
|
if (children && children.length > truncate22) {
|
|
5269
5238
|
children = `${truncator2}(${element.children.length})`;
|
|
5270
5239
|
}
|
|
5271
5240
|
return `${head}${propertyContents}${headClose}${children}${tail}`;
|
|
5272
5241
|
}
|
|
5273
|
-
|
|
5242
|
+
_24WEKBY3_cjs.__name(inspectHTML2, "inspectHTML");
|
|
5274
5243
|
__name2(inspectHTML2, "inspectHTML");
|
|
5275
5244
|
var symbolsSupported2 = typeof Symbol === "function" && typeof Symbol.for === "function";
|
|
5276
5245
|
var chaiInspect2 = symbolsSupported2 ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
5277
|
-
var nodeInspect2 =
|
|
5278
|
-
try {
|
|
5279
|
-
const nodeUtil = require_util();
|
|
5280
|
-
nodeInspect2 = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
|
|
5281
|
-
} catch (noNodeInspect) {
|
|
5282
|
-
nodeInspect2 = false;
|
|
5283
|
-
}
|
|
5246
|
+
var nodeInspect2 = Symbol.for("nodejs.util.inspect.custom");
|
|
5284
5247
|
var constructorMap2 = /* @__PURE__ */ new WeakMap();
|
|
5285
5248
|
var stringTagMap2 = {};
|
|
5286
5249
|
var baseTypesMap2 = {
|
|
5287
|
-
undefined: /* @__PURE__ */
|
|
5288
|
-
null: /* @__PURE__ */
|
|
5289
|
-
boolean: /* @__PURE__ */
|
|
5290
|
-
Boolean: /* @__PURE__ */
|
|
5250
|
+
undefined: /* @__PURE__ */ __name2((value, options) => options.stylize("undefined", "undefined"), "undefined"),
|
|
5251
|
+
null: /* @__PURE__ */ __name2((value, options) => options.stylize("null", "null"), "null"),
|
|
5252
|
+
boolean: /* @__PURE__ */ __name2((value, options) => options.stylize(String(value), "boolean"), "boolean"),
|
|
5253
|
+
Boolean: /* @__PURE__ */ __name2((value, options) => options.stylize(String(value), "boolean"), "Boolean"),
|
|
5291
5254
|
number: inspectNumber2,
|
|
5292
5255
|
Number: inspectNumber2,
|
|
5293
5256
|
bigint: inspectBigInt2,
|
|
@@ -5306,8 +5269,8 @@ var baseTypesMap2 = {
|
|
|
5306
5269
|
RegExp: inspectRegExp2,
|
|
5307
5270
|
Promise: promise_default2,
|
|
5308
5271
|
// WeakSet, WeakMap are totally opaque to us
|
|
5309
|
-
WeakSet: /* @__PURE__ */
|
|
5310
|
-
WeakMap: /* @__PURE__ */
|
|
5272
|
+
WeakSet: /* @__PURE__ */ __name2((value, options) => options.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
|
|
5273
|
+
WeakMap: /* @__PURE__ */ __name2((value, options) => options.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
|
|
5311
5274
|
Arguments: inspectArguments2,
|
|
5312
5275
|
Int8Array: inspectTypedArray2,
|
|
5313
5276
|
Uint8Array: inspectTypedArray2,
|
|
@@ -5318,18 +5281,18 @@ var baseTypesMap2 = {
|
|
|
5318
5281
|
Uint32Array: inspectTypedArray2,
|
|
5319
5282
|
Float32Array: inspectTypedArray2,
|
|
5320
5283
|
Float64Array: inspectTypedArray2,
|
|
5321
|
-
Generator: /* @__PURE__ */
|
|
5322
|
-
DataView: /* @__PURE__ */
|
|
5323
|
-
ArrayBuffer: /* @__PURE__ */
|
|
5284
|
+
Generator: /* @__PURE__ */ __name2(() => "", "Generator"),
|
|
5285
|
+
DataView: /* @__PURE__ */ __name2(() => "", "DataView"),
|
|
5286
|
+
ArrayBuffer: /* @__PURE__ */ __name2(() => "", "ArrayBuffer"),
|
|
5324
5287
|
Error: inspectObject22,
|
|
5325
|
-
HTMLCollection:
|
|
5326
|
-
NodeList:
|
|
5288
|
+
HTMLCollection: inspectNodeCollection2,
|
|
5289
|
+
NodeList: inspectNodeCollection2
|
|
5327
5290
|
};
|
|
5328
5291
|
var inspectCustom2 = /* @__PURE__ */ __name2((value, options, type3) => {
|
|
5329
5292
|
if (chaiInspect2 in value && typeof value[chaiInspect2] === "function") {
|
|
5330
5293
|
return value[chaiInspect2](options);
|
|
5331
5294
|
}
|
|
5332
|
-
if (nodeInspect2
|
|
5295
|
+
if (nodeInspect2 in value && typeof value[nodeInspect2] === "function") {
|
|
5333
5296
|
return value[nodeInspect2](options.depth, options);
|
|
5334
5297
|
}
|
|
5335
5298
|
if ("inspect" in value && typeof value.inspect === "function") {
|
|
@@ -5379,7 +5342,7 @@ function inspect3(value, opts = {}) {
|
|
|
5379
5342
|
}
|
|
5380
5343
|
return options.stylize(String(value), type3);
|
|
5381
5344
|
}
|
|
5382
|
-
|
|
5345
|
+
_24WEKBY3_cjs.__name(inspect3, "inspect");
|
|
5383
5346
|
__name2(inspect3, "inspect");
|
|
5384
5347
|
var config = {
|
|
5385
5348
|
/**
|
|
@@ -5494,7 +5457,7 @@ var config = {
|
|
|
5494
5457
|
deepEqual: null
|
|
5495
5458
|
};
|
|
5496
5459
|
function inspect22(obj, showHidden, depth, colors) {
|
|
5497
|
-
|
|
5460
|
+
let options = {
|
|
5498
5461
|
colors,
|
|
5499
5462
|
depth: typeof depth === "undefined" ? 2 : depth,
|
|
5500
5463
|
showHidden,
|
|
@@ -5502,17 +5465,17 @@ function inspect22(obj, showHidden, depth, colors) {
|
|
|
5502
5465
|
};
|
|
5503
5466
|
return inspect3(obj, options);
|
|
5504
5467
|
}
|
|
5505
|
-
|
|
5468
|
+
_24WEKBY3_cjs.__name(inspect22, "inspect2");
|
|
5506
5469
|
__name2(inspect22, "inspect");
|
|
5507
5470
|
function objDisplay2(obj) {
|
|
5508
|
-
|
|
5471
|
+
let str = inspect22(obj), type3 = Object.prototype.toString.call(obj);
|
|
5509
5472
|
if (config.truncateThreshold && str.length >= config.truncateThreshold) {
|
|
5510
5473
|
if (type3 === "[object Function]") {
|
|
5511
5474
|
return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]";
|
|
5512
5475
|
} else if (type3 === "[object Array]") {
|
|
5513
5476
|
return "[ Array(" + obj.length + ") ]";
|
|
5514
5477
|
} else if (type3 === "[object Object]") {
|
|
5515
|
-
|
|
5478
|
+
let keys = Object.keys(obj), kstr = keys.length > 2 ? keys.splice(0, 2).join(", ") + ", ..." : keys.join(", ");
|
|
5516
5479
|
return "{ Object (" + kstr + ") }";
|
|
5517
5480
|
} else {
|
|
5518
5481
|
return str;
|
|
@@ -5521,10 +5484,15 @@ function objDisplay2(obj) {
|
|
|
5521
5484
|
return str;
|
|
5522
5485
|
}
|
|
5523
5486
|
}
|
|
5524
|
-
|
|
5487
|
+
_24WEKBY3_cjs.__name(objDisplay2, "objDisplay");
|
|
5525
5488
|
__name2(objDisplay2, "objDisplay");
|
|
5526
5489
|
function getMessage2(obj, args) {
|
|
5527
|
-
|
|
5490
|
+
let negate = flag(obj, "negate");
|
|
5491
|
+
let val = flag(obj, "object");
|
|
5492
|
+
let expected = args[3];
|
|
5493
|
+
let actual = getActual(obj, args);
|
|
5494
|
+
let msg = negate ? args[2] : args[1];
|
|
5495
|
+
let flagMsg = flag(obj, "message");
|
|
5528
5496
|
if (typeof msg === "function") msg = msg();
|
|
5529
5497
|
msg = msg || "";
|
|
5530
5498
|
msg = msg.replace(/#\{this\}/g, function() {
|
|
@@ -5536,21 +5504,21 @@ function getMessage2(obj, args) {
|
|
|
5536
5504
|
});
|
|
5537
5505
|
return flagMsg ? flagMsg + ": " + msg : msg;
|
|
5538
5506
|
}
|
|
5539
|
-
|
|
5507
|
+
_24WEKBY3_cjs.__name(getMessage2, "getMessage2");
|
|
5540
5508
|
__name2(getMessage2, "getMessage");
|
|
5541
5509
|
function transferFlags(assertion, object, includeAll) {
|
|
5542
|
-
|
|
5510
|
+
let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
|
|
5543
5511
|
if (!object.__flags) {
|
|
5544
5512
|
object.__flags = /* @__PURE__ */ Object.create(null);
|
|
5545
5513
|
}
|
|
5546
5514
|
includeAll = arguments.length === 3 ? includeAll : true;
|
|
5547
|
-
for (
|
|
5515
|
+
for (let flag3 in flags) {
|
|
5548
5516
|
if (includeAll || flag3 !== "object" && flag3 !== "ssfi" && flag3 !== "lockSsfi" && flag3 != "message") {
|
|
5549
5517
|
object.__flags[flag3] = flags[flag3];
|
|
5550
5518
|
}
|
|
5551
5519
|
}
|
|
5552
5520
|
}
|
|
5553
|
-
|
|
5521
|
+
_24WEKBY3_cjs.__name(transferFlags, "transferFlags");
|
|
5554
5522
|
__name2(transferFlags, "transferFlags");
|
|
5555
5523
|
function type2(obj) {
|
|
5556
5524
|
if (typeof obj === "undefined") {
|
|
@@ -5567,18 +5535,18 @@ function type2(obj) {
|
|
|
5567
5535
|
const sliceEnd = -1;
|
|
5568
5536
|
return Object.prototype.toString.call(obj).slice(sliceStart, sliceEnd);
|
|
5569
5537
|
}
|
|
5570
|
-
|
|
5538
|
+
_24WEKBY3_cjs.__name(type2, "type2");
|
|
5571
5539
|
__name2(type2, "type");
|
|
5572
5540
|
function FakeMap() {
|
|
5573
5541
|
this._key = "chai/deep-eql__" + Math.random() + Date.now();
|
|
5574
5542
|
}
|
|
5575
|
-
|
|
5543
|
+
_24WEKBY3_cjs.__name(FakeMap, "FakeMap");
|
|
5576
5544
|
__name2(FakeMap, "FakeMap");
|
|
5577
5545
|
FakeMap.prototype = {
|
|
5578
|
-
get: /* @__PURE__ */ __name2(/* @__PURE__ */
|
|
5546
|
+
get: /* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function get(key) {
|
|
5579
5547
|
return key[this._key];
|
|
5580
5548
|
}, "get"), "get"),
|
|
5581
|
-
set: /* @__PURE__ */ __name2(/* @__PURE__ */
|
|
5549
|
+
set: /* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function set(key, value) {
|
|
5582
5550
|
if (Object.isExtensible(key)) {
|
|
5583
5551
|
Object.defineProperty(key, this._key, {
|
|
5584
5552
|
value,
|
|
@@ -5601,7 +5569,7 @@ function memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {
|
|
|
5601
5569
|
}
|
|
5602
5570
|
return null;
|
|
5603
5571
|
}
|
|
5604
|
-
|
|
5572
|
+
_24WEKBY3_cjs.__name(memoizeCompare, "memoizeCompare");
|
|
5605
5573
|
__name2(memoizeCompare, "memoizeCompare");
|
|
5606
5574
|
function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {
|
|
5607
5575
|
if (!memoizeMap || isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand)) {
|
|
@@ -5616,7 +5584,7 @@ function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {
|
|
|
5616
5584
|
memoizeMap.set(leftHandOperand, leftHandMap);
|
|
5617
5585
|
}
|
|
5618
5586
|
}
|
|
5619
|
-
|
|
5587
|
+
_24WEKBY3_cjs.__name(memoizeSet, "memoizeSet");
|
|
5620
5588
|
__name2(memoizeSet, "memoizeSet");
|
|
5621
5589
|
var deep_eql_default = deepEqual;
|
|
5622
5590
|
function deepEqual(leftHandOperand, rightHandOperand, options) {
|
|
@@ -5629,7 +5597,7 @@ function deepEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
5629
5597
|
}
|
|
5630
5598
|
return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);
|
|
5631
5599
|
}
|
|
5632
|
-
|
|
5600
|
+
_24WEKBY3_cjs.__name(deepEqual, "deepEqual");
|
|
5633
5601
|
__name2(deepEqual, "deepEqual");
|
|
5634
5602
|
function simpleEqual(leftHandOperand, rightHandOperand) {
|
|
5635
5603
|
if (leftHandOperand === rightHandOperand) {
|
|
@@ -5644,7 +5612,7 @@ function simpleEqual(leftHandOperand, rightHandOperand) {
|
|
|
5644
5612
|
}
|
|
5645
5613
|
return null;
|
|
5646
5614
|
}
|
|
5647
|
-
|
|
5615
|
+
_24WEKBY3_cjs.__name(simpleEqual, "simpleEqual");
|
|
5648
5616
|
__name2(simpleEqual, "simpleEqual");
|
|
5649
5617
|
function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {
|
|
5650
5618
|
options = options || {};
|
|
@@ -5679,7 +5647,7 @@ function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
5679
5647
|
memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result);
|
|
5680
5648
|
return result;
|
|
5681
5649
|
}
|
|
5682
|
-
|
|
5650
|
+
_24WEKBY3_cjs.__name(extensiveDeepEqual, "extensiveDeepEqual");
|
|
5683
5651
|
__name2(extensiveDeepEqual, "extensiveDeepEqual");
|
|
5684
5652
|
function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {
|
|
5685
5653
|
switch (leftHandType) {
|
|
@@ -5741,12 +5709,12 @@ function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandTyp
|
|
|
5741
5709
|
return objectEqual(leftHandOperand, rightHandOperand, options);
|
|
5742
5710
|
}
|
|
5743
5711
|
}
|
|
5744
|
-
|
|
5712
|
+
_24WEKBY3_cjs.__name(extensiveDeepEqualByType, "extensiveDeepEqualByType");
|
|
5745
5713
|
__name2(extensiveDeepEqualByType, "extensiveDeepEqualByType");
|
|
5746
5714
|
function regexpEqual(leftHandOperand, rightHandOperand) {
|
|
5747
5715
|
return leftHandOperand.toString() === rightHandOperand.toString();
|
|
5748
5716
|
}
|
|
5749
|
-
|
|
5717
|
+
_24WEKBY3_cjs.__name(regexpEqual, "regexpEqual");
|
|
5750
5718
|
__name2(regexpEqual, "regexpEqual");
|
|
5751
5719
|
function entriesEqual(leftHandOperand, rightHandOperand, options) {
|
|
5752
5720
|
try {
|
|
@@ -5761,13 +5729,13 @@ function entriesEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
5761
5729
|
}
|
|
5762
5730
|
var leftHandItems = [];
|
|
5763
5731
|
var rightHandItems = [];
|
|
5764
|
-
leftHandOperand.forEach(/* @__PURE__ */ __name2(/* @__PURE__ */
|
|
5732
|
+
leftHandOperand.forEach(/* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function gatherEntries(key, value) {
|
|
5765
5733
|
leftHandItems.push([
|
|
5766
5734
|
key,
|
|
5767
5735
|
value
|
|
5768
5736
|
]);
|
|
5769
5737
|
}, "gatherEntries"), "gatherEntries"));
|
|
5770
|
-
rightHandOperand.forEach(/* @__PURE__ */ __name2(/* @__PURE__ */
|
|
5738
|
+
rightHandOperand.forEach(/* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function gatherEntries(key, value) {
|
|
5771
5739
|
rightHandItems.push([
|
|
5772
5740
|
key,
|
|
5773
5741
|
value
|
|
@@ -5775,7 +5743,7 @@ function entriesEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
5775
5743
|
}, "gatherEntries"), "gatherEntries"));
|
|
5776
5744
|
return iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);
|
|
5777
5745
|
}
|
|
5778
|
-
|
|
5746
|
+
_24WEKBY3_cjs.__name(entriesEqual, "entriesEqual");
|
|
5779
5747
|
__name2(entriesEqual, "entriesEqual");
|
|
5780
5748
|
function iterableEqual(leftHandOperand, rightHandOperand, options) {
|
|
5781
5749
|
var length = leftHandOperand.length;
|
|
@@ -5793,17 +5761,17 @@ function iterableEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
5793
5761
|
}
|
|
5794
5762
|
return true;
|
|
5795
5763
|
}
|
|
5796
|
-
|
|
5764
|
+
_24WEKBY3_cjs.__name(iterableEqual, "iterableEqual");
|
|
5797
5765
|
__name2(iterableEqual, "iterableEqual");
|
|
5798
5766
|
function generatorEqual(leftHandOperand, rightHandOperand, options) {
|
|
5799
5767
|
return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);
|
|
5800
5768
|
}
|
|
5801
|
-
|
|
5769
|
+
_24WEKBY3_cjs.__name(generatorEqual, "generatorEqual");
|
|
5802
5770
|
__name2(generatorEqual, "generatorEqual");
|
|
5803
5771
|
function hasIteratorFunction(target) {
|
|
5804
5772
|
return typeof Symbol !== "undefined" && typeof target === "object" && typeof Symbol.iterator !== "undefined" && typeof target[Symbol.iterator] === "function";
|
|
5805
5773
|
}
|
|
5806
|
-
|
|
5774
|
+
_24WEKBY3_cjs.__name(hasIteratorFunction, "hasIteratorFunction");
|
|
5807
5775
|
__name2(hasIteratorFunction, "hasIteratorFunction");
|
|
5808
5776
|
function getIteratorEntries(target) {
|
|
5809
5777
|
if (hasIteratorFunction(target)) {
|
|
@@ -5815,7 +5783,7 @@ function getIteratorEntries(target) {
|
|
|
5815
5783
|
}
|
|
5816
5784
|
return [];
|
|
5817
5785
|
}
|
|
5818
|
-
|
|
5786
|
+
_24WEKBY3_cjs.__name(getIteratorEntries, "getIteratorEntries");
|
|
5819
5787
|
__name2(getIteratorEntries, "getIteratorEntries");
|
|
5820
5788
|
function getGeneratorEntries(generator) {
|
|
5821
5789
|
var generatorResult = generator.next();
|
|
@@ -5828,7 +5796,7 @@ function getGeneratorEntries(generator) {
|
|
|
5828
5796
|
}
|
|
5829
5797
|
return accumulator;
|
|
5830
5798
|
}
|
|
5831
|
-
|
|
5799
|
+
_24WEKBY3_cjs.__name(getGeneratorEntries, "getGeneratorEntries");
|
|
5832
5800
|
__name2(getGeneratorEntries, "getGeneratorEntries");
|
|
5833
5801
|
function getEnumerableKeys(target) {
|
|
5834
5802
|
var keys = [];
|
|
@@ -5837,7 +5805,7 @@ function getEnumerableKeys(target) {
|
|
|
5837
5805
|
}
|
|
5838
5806
|
return keys;
|
|
5839
5807
|
}
|
|
5840
|
-
|
|
5808
|
+
_24WEKBY3_cjs.__name(getEnumerableKeys, "getEnumerableKeys");
|
|
5841
5809
|
__name2(getEnumerableKeys, "getEnumerableKeys");
|
|
5842
5810
|
function getEnumerableSymbols(target) {
|
|
5843
5811
|
var keys = [];
|
|
@@ -5850,7 +5818,7 @@ function getEnumerableSymbols(target) {
|
|
|
5850
5818
|
}
|
|
5851
5819
|
return keys;
|
|
5852
5820
|
}
|
|
5853
|
-
|
|
5821
|
+
_24WEKBY3_cjs.__name(getEnumerableSymbols, "getEnumerableSymbols");
|
|
5854
5822
|
__name2(getEnumerableSymbols, "getEnumerableSymbols");
|
|
5855
5823
|
function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
|
|
5856
5824
|
var length = keys.length;
|
|
@@ -5864,7 +5832,7 @@ function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
|
|
|
5864
5832
|
}
|
|
5865
5833
|
return true;
|
|
5866
5834
|
}
|
|
5867
|
-
|
|
5835
|
+
_24WEKBY3_cjs.__name(keysEqual, "keysEqual");
|
|
5868
5836
|
__name2(keysEqual, "keysEqual");
|
|
5869
5837
|
function objectEqual(leftHandOperand, rightHandOperand, options) {
|
|
5870
5838
|
var leftHandKeys = getEnumerableKeys(leftHandOperand);
|
|
@@ -5891,22 +5859,22 @@ function objectEqual(leftHandOperand, rightHandOperand, options) {
|
|
|
5891
5859
|
}
|
|
5892
5860
|
return false;
|
|
5893
5861
|
}
|
|
5894
|
-
|
|
5862
|
+
_24WEKBY3_cjs.__name(objectEqual, "objectEqual");
|
|
5895
5863
|
__name2(objectEqual, "objectEqual");
|
|
5896
5864
|
function isPrimitive2(value) {
|
|
5897
5865
|
return value === null || typeof value !== "object";
|
|
5898
5866
|
}
|
|
5899
|
-
|
|
5867
|
+
_24WEKBY3_cjs.__name(isPrimitive2, "isPrimitive");
|
|
5900
5868
|
__name2(isPrimitive2, "isPrimitive");
|
|
5901
5869
|
function mapSymbols(arr) {
|
|
5902
|
-
return arr.map(/* @__PURE__ */ __name2(/* @__PURE__ */
|
|
5870
|
+
return arr.map(/* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function mapSymbol(entry) {
|
|
5903
5871
|
if (typeof entry === "symbol") {
|
|
5904
5872
|
return entry.toString();
|
|
5905
5873
|
}
|
|
5906
5874
|
return entry;
|
|
5907
5875
|
}, "mapSymbol"), "mapSymbol"));
|
|
5908
5876
|
}
|
|
5909
|
-
|
|
5877
|
+
_24WEKBY3_cjs.__name(mapSymbols, "mapSymbols");
|
|
5910
5878
|
__name2(mapSymbols, "mapSymbols");
|
|
5911
5879
|
function hasProperty(obj, name) {
|
|
5912
5880
|
if (typeof obj === "undefined" || obj === null) {
|
|
@@ -5914,7 +5882,7 @@ function hasProperty(obj, name) {
|
|
|
5914
5882
|
}
|
|
5915
5883
|
return name in Object(obj);
|
|
5916
5884
|
}
|
|
5917
|
-
|
|
5885
|
+
_24WEKBY3_cjs.__name(hasProperty, "hasProperty");
|
|
5918
5886
|
__name2(hasProperty, "hasProperty");
|
|
5919
5887
|
function parsePath(path) {
|
|
5920
5888
|
const str = path.replace(/([^\\])\[/g, "$1.[");
|
|
@@ -5938,7 +5906,7 @@ function parsePath(path) {
|
|
|
5938
5906
|
return parsed;
|
|
5939
5907
|
});
|
|
5940
5908
|
}
|
|
5941
|
-
|
|
5909
|
+
_24WEKBY3_cjs.__name(parsePath, "parsePath");
|
|
5942
5910
|
__name2(parsePath, "parsePath");
|
|
5943
5911
|
function internalGetPathValue(obj, parsed, pathDepth) {
|
|
5944
5912
|
let temporaryValue = obj;
|
|
@@ -5959,7 +5927,7 @@ function internalGetPathValue(obj, parsed, pathDepth) {
|
|
|
5959
5927
|
}
|
|
5960
5928
|
return res;
|
|
5961
5929
|
}
|
|
5962
|
-
|
|
5930
|
+
_24WEKBY3_cjs.__name(internalGetPathValue, "internalGetPathValue");
|
|
5963
5931
|
__name2(internalGetPathValue, "internalGetPathValue");
|
|
5964
5932
|
function getPathInfo(obj, path) {
|
|
5965
5933
|
const parsed = parsePath(path);
|
|
@@ -5972,114 +5940,210 @@ function getPathInfo(obj, path) {
|
|
|
5972
5940
|
info.exists = hasProperty(info.parent, info.name);
|
|
5973
5941
|
return info;
|
|
5974
5942
|
}
|
|
5975
|
-
|
|
5943
|
+
_24WEKBY3_cjs.__name(getPathInfo, "getPathInfo");
|
|
5976
5944
|
__name2(getPathInfo, "getPathInfo");
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
}
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5945
|
+
var Assertion = class _Assertion {
|
|
5946
|
+
static {
|
|
5947
|
+
_24WEKBY3_cjs.__name(this, "_Assertion");
|
|
5948
|
+
}
|
|
5949
|
+
static {
|
|
5950
|
+
__name2(this, "Assertion");
|
|
5951
|
+
}
|
|
5952
|
+
/** @type {{}} */
|
|
5953
|
+
__flags = {};
|
|
5954
|
+
/**
|
|
5955
|
+
* Creates object for chaining.
|
|
5956
|
+
* `Assertion` objects contain metadata in the form of flags. Three flags can
|
|
5957
|
+
* be assigned during instantiation by passing arguments to this constructor:
|
|
5958
|
+
*
|
|
5959
|
+
* - `object`: This flag contains the target of the assertion. For example, in
|
|
5960
|
+
* the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
|
|
5961
|
+
* contain `numKittens` so that the `equal` assertion can reference it when
|
|
5962
|
+
* needed.
|
|
5963
|
+
*
|
|
5964
|
+
* - `message`: This flag contains an optional custom error message to be
|
|
5965
|
+
* prepended to the error message that's generated by the assertion when it
|
|
5966
|
+
* fails.
|
|
5967
|
+
*
|
|
5968
|
+
* - `ssfi`: This flag stands for "start stack function indicator". It
|
|
5969
|
+
* contains a function reference that serves as the starting point for
|
|
5970
|
+
* removing frames from the stack trace of the error that's created by the
|
|
5971
|
+
* assertion when it fails. The goal is to provide a cleaner stack trace to
|
|
5972
|
+
* end users by removing Chai's internal functions. Note that it only works
|
|
5973
|
+
* in environments that support `Error.captureStackTrace`, and only when
|
|
5974
|
+
* `Chai.config.includeStack` hasn't been set to `false`.
|
|
5975
|
+
*
|
|
5976
|
+
* - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
|
|
5977
|
+
* should retain its current value, even as assertions are chained off of
|
|
5978
|
+
* this object. This is usually set to `true` when creating a new assertion
|
|
5979
|
+
* from within another assertion. It's also temporarily set to `true` before
|
|
5980
|
+
* an overwritten assertion gets called by the overwriting assertion.
|
|
5981
|
+
*
|
|
5982
|
+
* - `eql`: This flag contains the deepEqual function to be used by the assertion.
|
|
5983
|
+
*
|
|
5984
|
+
* @param {unknown} obj target of the assertion
|
|
5985
|
+
* @param {string} [msg] (optional) custom error message
|
|
5986
|
+
* @param {Function} [ssfi] (optional) starting point for removing stack frames
|
|
5987
|
+
* @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked
|
|
5988
|
+
*/
|
|
5989
|
+
constructor(obj, msg, ssfi, lockSsfi) {
|
|
5990
|
+
flag(this, "ssfi", ssfi || _Assertion);
|
|
5991
|
+
flag(this, "lockSsfi", lockSsfi);
|
|
5992
|
+
flag(this, "object", obj);
|
|
5993
|
+
flag(this, "message", msg);
|
|
5994
|
+
flag(this, "eql", config.deepEqual || deep_eql_default);
|
|
5995
|
+
return proxify(this);
|
|
5996
|
+
}
|
|
5997
|
+
/** @returns {boolean} */
|
|
5998
|
+
static get includeStack() {
|
|
5989
5999
|
console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead.");
|
|
5990
6000
|
return config.includeStack;
|
|
5991
|
-
}
|
|
5992
|
-
|
|
6001
|
+
}
|
|
6002
|
+
/** @param {boolean} value */
|
|
6003
|
+
static set includeStack(value) {
|
|
5993
6004
|
console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead.");
|
|
5994
6005
|
config.includeStack = value;
|
|
5995
|
-
}
|
|
5996
|
-
}
|
|
5997
|
-
|
|
5998
|
-
get: /* @__PURE__ */ U7VZULNU_cjs.__name(function() {
|
|
6006
|
+
}
|
|
6007
|
+
/** @returns {boolean} */
|
|
6008
|
+
static get showDiff() {
|
|
5999
6009
|
console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead.");
|
|
6000
6010
|
return config.showDiff;
|
|
6001
|
-
}
|
|
6002
|
-
|
|
6011
|
+
}
|
|
6012
|
+
/** @param {boolean} value */
|
|
6013
|
+
static set showDiff(value) {
|
|
6003
6014
|
console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead.");
|
|
6004
6015
|
config.showDiff = value;
|
|
6005
|
-
}
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
}
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
}
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
}
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6016
|
+
}
|
|
6017
|
+
/**
|
|
6018
|
+
* @param {string} name
|
|
6019
|
+
* @param {Function} fn
|
|
6020
|
+
*/
|
|
6021
|
+
static addProperty(name, fn) {
|
|
6022
|
+
addProperty(this.prototype, name, fn);
|
|
6023
|
+
}
|
|
6024
|
+
/**
|
|
6025
|
+
* @param {string} name
|
|
6026
|
+
* @param {Function} fn
|
|
6027
|
+
*/
|
|
6028
|
+
static addMethod(name, fn) {
|
|
6029
|
+
addMethod(this.prototype, name, fn);
|
|
6030
|
+
}
|
|
6031
|
+
/**
|
|
6032
|
+
* @param {string} name
|
|
6033
|
+
* @param {Function} fn
|
|
6034
|
+
* @param {Function} chainingBehavior
|
|
6035
|
+
*/
|
|
6036
|
+
static addChainableMethod(name, fn, chainingBehavior) {
|
|
6037
|
+
addChainableMethod(this.prototype, name, fn, chainingBehavior);
|
|
6038
|
+
}
|
|
6039
|
+
/**
|
|
6040
|
+
* @param {string} name
|
|
6041
|
+
* @param {Function} fn
|
|
6042
|
+
*/
|
|
6043
|
+
static overwriteProperty(name, fn) {
|
|
6044
|
+
overwriteProperty(this.prototype, name, fn);
|
|
6045
|
+
}
|
|
6046
|
+
/**
|
|
6047
|
+
* @param {string} name
|
|
6048
|
+
* @param {Function} fn
|
|
6049
|
+
*/
|
|
6050
|
+
static overwriteMethod(name, fn) {
|
|
6051
|
+
overwriteMethod(this.prototype, name, fn);
|
|
6052
|
+
}
|
|
6053
|
+
/**
|
|
6054
|
+
* @param {string} name
|
|
6055
|
+
* @param {Function} fn
|
|
6056
|
+
* @param {Function} chainingBehavior
|
|
6057
|
+
*/
|
|
6058
|
+
static overwriteChainableMethod(name, fn, chainingBehavior) {
|
|
6059
|
+
overwriteChainableMethod(this.prototype, name, fn, chainingBehavior);
|
|
6060
|
+
}
|
|
6061
|
+
/**
|
|
6062
|
+
* ### .assert(expression, message, negateMessage, expected, actual, showDiff)
|
|
6063
|
+
*
|
|
6064
|
+
* Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.
|
|
6065
|
+
*
|
|
6066
|
+
* @name assert
|
|
6067
|
+
* @param {unknown} _expr to be tested
|
|
6068
|
+
* @param {string | Function} msg or function that returns message to display if expression fails
|
|
6069
|
+
* @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails
|
|
6070
|
+
* @param {unknown} expected value (remember to check for negation)
|
|
6071
|
+
* @param {unknown} _actual (optional) will default to `this.obj`
|
|
6072
|
+
* @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails
|
|
6073
|
+
* @returns {void}
|
|
6074
|
+
*/
|
|
6075
|
+
assert(_expr, msg, _negateMsg, expected, _actual, showDiff) {
|
|
6076
|
+
const ok = test3(this, arguments);
|
|
6077
|
+
if (false !== showDiff) showDiff = true;
|
|
6078
|
+
if (void 0 === expected && void 0 === _actual) showDiff = false;
|
|
6079
|
+
if (true !== config.showDiff) showDiff = false;
|
|
6080
|
+
if (!ok) {
|
|
6081
|
+
msg = getMessage2(this, arguments);
|
|
6082
|
+
const actual = getActual(this, arguments);
|
|
6083
|
+
const assertionErrorObjectProperties = {
|
|
6084
|
+
actual,
|
|
6085
|
+
expected,
|
|
6086
|
+
showDiff
|
|
6087
|
+
};
|
|
6088
|
+
const operator = getOperator(this, arguments);
|
|
6089
|
+
if (operator) {
|
|
6090
|
+
assertionErrorObjectProperties.operator = operator;
|
|
6091
|
+
}
|
|
6092
|
+
throw new AssertionError(
|
|
6093
|
+
msg,
|
|
6094
|
+
assertionErrorObjectProperties,
|
|
6095
|
+
// @ts-expect-error Not sure what to do about these types yet
|
|
6096
|
+
config.includeStack ? this.assert : flag(this, "ssfi")
|
|
6097
|
+
);
|
|
6041
6098
|
}
|
|
6042
|
-
throw new AssertionError(msg, assertionErrorObjectProperties, config.includeStack ? this.assert : flag(this, "ssfi"));
|
|
6043
6099
|
}
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6100
|
+
/**
|
|
6101
|
+
* Quick reference to stored `actual` value for plugin developers.
|
|
6102
|
+
*
|
|
6103
|
+
* @returns {unknown}
|
|
6104
|
+
*/
|
|
6105
|
+
get _obj() {
|
|
6047
6106
|
return flag(this, "object");
|
|
6048
|
-
}
|
|
6049
|
-
|
|
6107
|
+
}
|
|
6108
|
+
/**
|
|
6109
|
+
* Quick reference to stored `actual` value for plugin developers.
|
|
6110
|
+
*
|
|
6111
|
+
* @param {unknown} val
|
|
6112
|
+
*/
|
|
6113
|
+
set _obj(val) {
|
|
6050
6114
|
flag(this, "object", val);
|
|
6051
|
-
}
|
|
6052
|
-
}
|
|
6115
|
+
}
|
|
6116
|
+
};
|
|
6053
6117
|
function isProxyEnabled() {
|
|
6054
6118
|
return config.useProxy && typeof Proxy !== "undefined" && typeof Reflect !== "undefined";
|
|
6055
6119
|
}
|
|
6056
|
-
|
|
6120
|
+
_24WEKBY3_cjs.__name(isProxyEnabled, "isProxyEnabled");
|
|
6057
6121
|
__name2(isProxyEnabled, "isProxyEnabled");
|
|
6058
6122
|
function addProperty(ctx, name, getter) {
|
|
6059
6123
|
getter = getter === void 0 ? function() {
|
|
6060
6124
|
} : getter;
|
|
6061
6125
|
Object.defineProperty(ctx, name, {
|
|
6062
|
-
get: /* @__PURE__ */ __name2(/* @__PURE__ */
|
|
6126
|
+
get: /* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function propertyGetter() {
|
|
6063
6127
|
if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
|
|
6064
6128
|
flag(this, "ssfi", propertyGetter);
|
|
6065
6129
|
}
|
|
6066
|
-
|
|
6130
|
+
let result = getter.call(this);
|
|
6067
6131
|
if (result !== void 0) return result;
|
|
6068
|
-
|
|
6132
|
+
let newAssertion = new Assertion();
|
|
6069
6133
|
transferFlags(this, newAssertion);
|
|
6070
6134
|
return newAssertion;
|
|
6071
6135
|
}, "propertyGetter"), "propertyGetter"),
|
|
6072
6136
|
configurable: true
|
|
6073
6137
|
});
|
|
6074
6138
|
}
|
|
6075
|
-
|
|
6139
|
+
_24WEKBY3_cjs.__name(addProperty, "addProperty");
|
|
6076
6140
|
__name2(addProperty, "addProperty");
|
|
6077
6141
|
var fnLengthDesc = Object.getOwnPropertyDescriptor(function() {
|
|
6078
6142
|
}, "length");
|
|
6079
6143
|
function addLengthGuard(fn, assertionName, isChainable) {
|
|
6080
6144
|
if (!fnLengthDesc.configurable) return fn;
|
|
6081
6145
|
Object.defineProperty(fn, "length", {
|
|
6082
|
-
get: /* @__PURE__ */
|
|
6146
|
+
get: /* @__PURE__ */ __name2(function() {
|
|
6083
6147
|
if (isChainable) {
|
|
6084
6148
|
throw Error("Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.');
|
|
6085
6149
|
}
|
|
@@ -6088,25 +6152,25 @@ function addLengthGuard(fn, assertionName, isChainable) {
|
|
|
6088
6152
|
});
|
|
6089
6153
|
return fn;
|
|
6090
6154
|
}
|
|
6091
|
-
|
|
6155
|
+
_24WEKBY3_cjs.__name(addLengthGuard, "addLengthGuard");
|
|
6092
6156
|
__name2(addLengthGuard, "addLengthGuard");
|
|
6093
6157
|
function getProperties(object) {
|
|
6094
|
-
|
|
6158
|
+
let result = Object.getOwnPropertyNames(object);
|
|
6095
6159
|
function addProperty2(property) {
|
|
6096
6160
|
if (result.indexOf(property) === -1) {
|
|
6097
6161
|
result.push(property);
|
|
6098
6162
|
}
|
|
6099
6163
|
}
|
|
6100
|
-
|
|
6164
|
+
_24WEKBY3_cjs.__name(addProperty2, "addProperty2");
|
|
6101
6165
|
__name2(addProperty2, "addProperty");
|
|
6102
|
-
|
|
6166
|
+
let proto = Object.getPrototypeOf(object);
|
|
6103
6167
|
while (proto !== null) {
|
|
6104
6168
|
Object.getOwnPropertyNames(proto).forEach(addProperty2);
|
|
6105
6169
|
proto = Object.getPrototypeOf(proto);
|
|
6106
6170
|
}
|
|
6107
6171
|
return result;
|
|
6108
6172
|
}
|
|
6109
|
-
|
|
6173
|
+
_24WEKBY3_cjs.__name(getProperties, "getProperties");
|
|
6110
6174
|
__name2(getProperties, "getProperties");
|
|
6111
6175
|
var builtins = [
|
|
6112
6176
|
"__flags",
|
|
@@ -6117,20 +6181,20 @@ var builtins = [
|
|
|
6117
6181
|
function proxify(obj, nonChainableMethodName) {
|
|
6118
6182
|
if (!isProxyEnabled()) return obj;
|
|
6119
6183
|
return new Proxy(obj, {
|
|
6120
|
-
get: /* @__PURE__ */ __name2(/* @__PURE__ */
|
|
6184
|
+
get: /* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function proxyGetter(target, property) {
|
|
6121
6185
|
if (typeof property === "string" && config.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {
|
|
6122
6186
|
if (nonChainableMethodName) {
|
|
6123
6187
|
throw Error("Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".');
|
|
6124
6188
|
}
|
|
6125
|
-
|
|
6126
|
-
|
|
6189
|
+
let suggestion = null;
|
|
6190
|
+
let suggestionDistance = 4;
|
|
6127
6191
|
getProperties(target).forEach(function(prop) {
|
|
6128
6192
|
if (
|
|
6129
6193
|
// we actually mean to check `Object.prototype` here
|
|
6130
6194
|
// eslint-disable-next-line no-prototype-builtins
|
|
6131
6195
|
!Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1
|
|
6132
6196
|
) {
|
|
6133
|
-
|
|
6197
|
+
let dist = stringDistanceCapped(property, prop, suggestionDistance);
|
|
6134
6198
|
if (dist < suggestionDistance) {
|
|
6135
6199
|
suggestion = prop;
|
|
6136
6200
|
suggestionDistance = dist;
|
|
@@ -6150,13 +6214,13 @@ function proxify(obj, nonChainableMethodName) {
|
|
|
6150
6214
|
}, "proxyGetter"), "proxyGetter")
|
|
6151
6215
|
});
|
|
6152
6216
|
}
|
|
6153
|
-
|
|
6217
|
+
_24WEKBY3_cjs.__name(proxify, "proxify");
|
|
6154
6218
|
__name2(proxify, "proxify");
|
|
6155
6219
|
function stringDistanceCapped(strA, strB, cap) {
|
|
6156
6220
|
if (Math.abs(strA.length - strB.length) >= cap) {
|
|
6157
6221
|
return cap;
|
|
6158
6222
|
}
|
|
6159
|
-
|
|
6223
|
+
let memo = [];
|
|
6160
6224
|
for (let i = 0; i <= strA.length; i++) {
|
|
6161
6225
|
memo[i] = Array(strB.length + 1).fill(0);
|
|
6162
6226
|
memo[i][0] = i;
|
|
@@ -6165,7 +6229,7 @@ function stringDistanceCapped(strA, strB, cap) {
|
|
|
6165
6229
|
memo[0][j] = j;
|
|
6166
6230
|
}
|
|
6167
6231
|
for (let i = 1; i <= strA.length; i++) {
|
|
6168
|
-
|
|
6232
|
+
let ch = strA.charCodeAt(i - 1);
|
|
6169
6233
|
for (let j = 1; j <= strB.length; j++) {
|
|
6170
6234
|
if (Math.abs(i - j) >= cap) {
|
|
6171
6235
|
memo[i][j] = cap;
|
|
@@ -6176,79 +6240,79 @@ function stringDistanceCapped(strA, strB, cap) {
|
|
|
6176
6240
|
}
|
|
6177
6241
|
return memo[strA.length][strB.length];
|
|
6178
6242
|
}
|
|
6179
|
-
|
|
6243
|
+
_24WEKBY3_cjs.__name(stringDistanceCapped, "stringDistanceCapped");
|
|
6180
6244
|
__name2(stringDistanceCapped, "stringDistanceCapped");
|
|
6181
6245
|
function addMethod(ctx, name, method) {
|
|
6182
|
-
|
|
6246
|
+
let methodWrapper = /* @__PURE__ */ __name2(function() {
|
|
6183
6247
|
if (!flag(this, "lockSsfi")) {
|
|
6184
6248
|
flag(this, "ssfi", methodWrapper);
|
|
6185
6249
|
}
|
|
6186
|
-
|
|
6250
|
+
let result = method.apply(this, arguments);
|
|
6187
6251
|
if (result !== void 0) return result;
|
|
6188
|
-
|
|
6252
|
+
let newAssertion = new Assertion();
|
|
6189
6253
|
transferFlags(this, newAssertion);
|
|
6190
6254
|
return newAssertion;
|
|
6191
6255
|
}, "methodWrapper");
|
|
6192
6256
|
addLengthGuard(methodWrapper, name, false);
|
|
6193
6257
|
ctx[name] = proxify(methodWrapper, name);
|
|
6194
6258
|
}
|
|
6195
|
-
|
|
6259
|
+
_24WEKBY3_cjs.__name(addMethod, "addMethod");
|
|
6196
6260
|
__name2(addMethod, "addMethod");
|
|
6197
6261
|
function overwriteProperty(ctx, name, getter) {
|
|
6198
|
-
|
|
6262
|
+
let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ __name2(function() {
|
|
6199
6263
|
}, "_super");
|
|
6200
6264
|
if (_get && "function" === typeof _get.get) _super = _get.get;
|
|
6201
6265
|
Object.defineProperty(ctx, name, {
|
|
6202
|
-
get: /* @__PURE__ */ __name2(/* @__PURE__ */
|
|
6266
|
+
get: /* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function overwritingPropertyGetter() {
|
|
6203
6267
|
if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
|
|
6204
6268
|
flag(this, "ssfi", overwritingPropertyGetter);
|
|
6205
6269
|
}
|
|
6206
|
-
|
|
6270
|
+
let origLockSsfi = flag(this, "lockSsfi");
|
|
6207
6271
|
flag(this, "lockSsfi", true);
|
|
6208
|
-
|
|
6272
|
+
let result = getter(_super).call(this);
|
|
6209
6273
|
flag(this, "lockSsfi", origLockSsfi);
|
|
6210
6274
|
if (result !== void 0) {
|
|
6211
6275
|
return result;
|
|
6212
6276
|
}
|
|
6213
|
-
|
|
6277
|
+
let newAssertion = new Assertion();
|
|
6214
6278
|
transferFlags(this, newAssertion);
|
|
6215
6279
|
return newAssertion;
|
|
6216
6280
|
}, "overwritingPropertyGetter"), "overwritingPropertyGetter"),
|
|
6217
6281
|
configurable: true
|
|
6218
6282
|
});
|
|
6219
6283
|
}
|
|
6220
|
-
|
|
6284
|
+
_24WEKBY3_cjs.__name(overwriteProperty, "overwriteProperty");
|
|
6221
6285
|
__name2(overwriteProperty, "overwriteProperty");
|
|
6222
6286
|
function overwriteMethod(ctx, name, method) {
|
|
6223
|
-
|
|
6287
|
+
let _method = ctx[name], _super = /* @__PURE__ */ __name2(function() {
|
|
6224
6288
|
throw new Error(name + " is not a function");
|
|
6225
6289
|
}, "_super");
|
|
6226
6290
|
if (_method && "function" === typeof _method) _super = _method;
|
|
6227
|
-
|
|
6291
|
+
let overwritingMethodWrapper = /* @__PURE__ */ __name2(function() {
|
|
6228
6292
|
if (!flag(this, "lockSsfi")) {
|
|
6229
6293
|
flag(this, "ssfi", overwritingMethodWrapper);
|
|
6230
6294
|
}
|
|
6231
|
-
|
|
6295
|
+
let origLockSsfi = flag(this, "lockSsfi");
|
|
6232
6296
|
flag(this, "lockSsfi", true);
|
|
6233
|
-
|
|
6297
|
+
let result = method(_super).apply(this, arguments);
|
|
6234
6298
|
flag(this, "lockSsfi", origLockSsfi);
|
|
6235
6299
|
if (result !== void 0) {
|
|
6236
6300
|
return result;
|
|
6237
6301
|
}
|
|
6238
|
-
|
|
6302
|
+
let newAssertion = new Assertion();
|
|
6239
6303
|
transferFlags(this, newAssertion);
|
|
6240
6304
|
return newAssertion;
|
|
6241
6305
|
}, "overwritingMethodWrapper");
|
|
6242
6306
|
addLengthGuard(overwritingMethodWrapper, name, false);
|
|
6243
6307
|
ctx[name] = proxify(overwritingMethodWrapper, name);
|
|
6244
6308
|
}
|
|
6245
|
-
|
|
6309
|
+
_24WEKBY3_cjs.__name(overwriteMethod, "overwriteMethod");
|
|
6246
6310
|
__name2(overwriteMethod, "overwriteMethod");
|
|
6247
6311
|
var canSetPrototype = typeof Object.setPrototypeOf === "function";
|
|
6248
6312
|
var testFn = /* @__PURE__ */ __name2(function() {
|
|
6249
6313
|
}, "testFn");
|
|
6250
6314
|
var excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {
|
|
6251
|
-
|
|
6315
|
+
let propDesc = Object.getOwnPropertyDescriptor(testFn, name);
|
|
6252
6316
|
if (typeof propDesc !== "object") return true;
|
|
6253
6317
|
return !propDesc.configurable;
|
|
6254
6318
|
});
|
|
@@ -6259,7 +6323,7 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
6259
6323
|
chainingBehavior = /* @__PURE__ */ __name2(function() {
|
|
6260
6324
|
}, "chainingBehavior");
|
|
6261
6325
|
}
|
|
6262
|
-
|
|
6326
|
+
let chainableBehavior = {
|
|
6263
6327
|
method,
|
|
6264
6328
|
chainingBehavior
|
|
6265
6329
|
};
|
|
@@ -6268,33 +6332,33 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
6268
6332
|
}
|
|
6269
6333
|
ctx.__methods[name] = chainableBehavior;
|
|
6270
6334
|
Object.defineProperty(ctx, name, {
|
|
6271
|
-
get: /* @__PURE__ */ __name2(/* @__PURE__ */
|
|
6335
|
+
get: /* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function chainableMethodGetter() {
|
|
6272
6336
|
chainableBehavior.chainingBehavior.call(this);
|
|
6273
|
-
|
|
6337
|
+
let chainableMethodWrapper = /* @__PURE__ */ __name2(function() {
|
|
6274
6338
|
if (!flag(this, "lockSsfi")) {
|
|
6275
6339
|
flag(this, "ssfi", chainableMethodWrapper);
|
|
6276
6340
|
}
|
|
6277
|
-
|
|
6341
|
+
let result = chainableBehavior.method.apply(this, arguments);
|
|
6278
6342
|
if (result !== void 0) {
|
|
6279
6343
|
return result;
|
|
6280
6344
|
}
|
|
6281
|
-
|
|
6345
|
+
let newAssertion = new Assertion();
|
|
6282
6346
|
transferFlags(this, newAssertion);
|
|
6283
6347
|
return newAssertion;
|
|
6284
6348
|
}, "chainableMethodWrapper");
|
|
6285
6349
|
addLengthGuard(chainableMethodWrapper, name, true);
|
|
6286
6350
|
if (canSetPrototype) {
|
|
6287
|
-
|
|
6351
|
+
let prototype = Object.create(this);
|
|
6288
6352
|
prototype.call = call;
|
|
6289
6353
|
prototype.apply = apply;
|
|
6290
6354
|
Object.setPrototypeOf(chainableMethodWrapper, prototype);
|
|
6291
6355
|
} else {
|
|
6292
|
-
|
|
6356
|
+
let asserterNames = Object.getOwnPropertyNames(ctx);
|
|
6293
6357
|
asserterNames.forEach(function(asserterName) {
|
|
6294
6358
|
if (excludeNames.indexOf(asserterName) !== -1) {
|
|
6295
6359
|
return;
|
|
6296
6360
|
}
|
|
6297
|
-
|
|
6361
|
+
let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
|
|
6298
6362
|
Object.defineProperty(chainableMethodWrapper, asserterName, pd);
|
|
6299
6363
|
});
|
|
6300
6364
|
}
|
|
@@ -6304,37 +6368,37 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
6304
6368
|
configurable: true
|
|
6305
6369
|
});
|
|
6306
6370
|
}
|
|
6307
|
-
|
|
6371
|
+
_24WEKBY3_cjs.__name(addChainableMethod, "addChainableMethod");
|
|
6308
6372
|
__name2(addChainableMethod, "addChainableMethod");
|
|
6309
6373
|
function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
chainableBehavior.chainingBehavior = /* @__PURE__ */ __name2(/* @__PURE__ */
|
|
6313
|
-
|
|
6374
|
+
let chainableBehavior = ctx.__methods[name];
|
|
6375
|
+
let _chainingBehavior = chainableBehavior.chainingBehavior;
|
|
6376
|
+
chainableBehavior.chainingBehavior = /* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function overwritingChainableMethodGetter() {
|
|
6377
|
+
let result = chainingBehavior(_chainingBehavior).call(this);
|
|
6314
6378
|
if (result !== void 0) {
|
|
6315
6379
|
return result;
|
|
6316
6380
|
}
|
|
6317
|
-
|
|
6381
|
+
let newAssertion = new Assertion();
|
|
6318
6382
|
transferFlags(this, newAssertion);
|
|
6319
6383
|
return newAssertion;
|
|
6320
6384
|
}, "overwritingChainableMethodGetter"), "overwritingChainableMethodGetter");
|
|
6321
|
-
|
|
6322
|
-
chainableBehavior.method = /* @__PURE__ */ __name2(/* @__PURE__ */
|
|
6323
|
-
|
|
6385
|
+
let _method = chainableBehavior.method;
|
|
6386
|
+
chainableBehavior.method = /* @__PURE__ */ __name2(/* @__PURE__ */ _24WEKBY3_cjs.__name(function overwritingChainableMethodWrapper() {
|
|
6387
|
+
let result = method(_method).apply(this, arguments);
|
|
6324
6388
|
if (result !== void 0) {
|
|
6325
6389
|
return result;
|
|
6326
6390
|
}
|
|
6327
|
-
|
|
6391
|
+
let newAssertion = new Assertion();
|
|
6328
6392
|
transferFlags(this, newAssertion);
|
|
6329
6393
|
return newAssertion;
|
|
6330
6394
|
}, "overwritingChainableMethodWrapper"), "overwritingChainableMethodWrapper");
|
|
6331
6395
|
}
|
|
6332
|
-
|
|
6396
|
+
_24WEKBY3_cjs.__name(overwriteChainableMethod, "overwriteChainableMethod");
|
|
6333
6397
|
__name2(overwriteChainableMethod, "overwriteChainableMethod");
|
|
6334
6398
|
function compareByInspect(a2, b) {
|
|
6335
6399
|
return inspect22(a2) < inspect22(b) ? -1 : 1;
|
|
6336
6400
|
}
|
|
6337
|
-
|
|
6401
|
+
_24WEKBY3_cjs.__name(compareByInspect, "compareByInspect");
|
|
6338
6402
|
__name2(compareByInspect, "compareByInspect");
|
|
6339
6403
|
function getOwnEnumerablePropertySymbols(obj) {
|
|
6340
6404
|
if (typeof Object.getOwnPropertySymbols !== "function") return [];
|
|
@@ -6342,30 +6406,30 @@ function getOwnEnumerablePropertySymbols(obj) {
|
|
|
6342
6406
|
return Object.getOwnPropertyDescriptor(obj, sym).enumerable;
|
|
6343
6407
|
});
|
|
6344
6408
|
}
|
|
6345
|
-
|
|
6409
|
+
_24WEKBY3_cjs.__name(getOwnEnumerablePropertySymbols, "getOwnEnumerablePropertySymbols");
|
|
6346
6410
|
__name2(getOwnEnumerablePropertySymbols, "getOwnEnumerablePropertySymbols");
|
|
6347
6411
|
function getOwnEnumerableProperties(obj) {
|
|
6348
6412
|
return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));
|
|
6349
6413
|
}
|
|
6350
|
-
|
|
6414
|
+
_24WEKBY3_cjs.__name(getOwnEnumerableProperties, "getOwnEnumerableProperties");
|
|
6351
6415
|
__name2(getOwnEnumerableProperties, "getOwnEnumerableProperties");
|
|
6352
6416
|
var isNaN22 = Number.isNaN;
|
|
6353
6417
|
function isObjectType(obj) {
|
|
6354
|
-
|
|
6355
|
-
|
|
6418
|
+
let objectType = type(obj);
|
|
6419
|
+
let objectTypes = [
|
|
6356
6420
|
"Array",
|
|
6357
6421
|
"Object",
|
|
6358
6422
|
"Function"
|
|
6359
6423
|
];
|
|
6360
6424
|
return objectTypes.indexOf(objectType) !== -1;
|
|
6361
6425
|
}
|
|
6362
|
-
|
|
6426
|
+
_24WEKBY3_cjs.__name(isObjectType, "isObjectType");
|
|
6363
6427
|
__name2(isObjectType, "isObjectType");
|
|
6364
6428
|
function getOperator(obj, args) {
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6429
|
+
let operator = flag(obj, "operator");
|
|
6430
|
+
let negate = flag(obj, "negate");
|
|
6431
|
+
let expected = args[3];
|
|
6432
|
+
let msg = negate ? args[2] : args[1];
|
|
6369
6433
|
if (operator) {
|
|
6370
6434
|
return operator;
|
|
6371
6435
|
}
|
|
@@ -6377,23 +6441,23 @@ function getOperator(obj, args) {
|
|
|
6377
6441
|
if (/\shave\s/.test(msg)) {
|
|
6378
6442
|
return void 0;
|
|
6379
6443
|
}
|
|
6380
|
-
|
|
6444
|
+
let isObject2 = isObjectType(expected);
|
|
6381
6445
|
if (/\snot\s/.test(msg)) {
|
|
6382
6446
|
return isObject2 ? "notDeepStrictEqual" : "notStrictEqual";
|
|
6383
6447
|
}
|
|
6384
6448
|
return isObject2 ? "deepStrictEqual" : "strictEqual";
|
|
6385
6449
|
}
|
|
6386
|
-
|
|
6450
|
+
_24WEKBY3_cjs.__name(getOperator, "getOperator");
|
|
6387
6451
|
__name2(getOperator, "getOperator");
|
|
6388
6452
|
function getName(fn) {
|
|
6389
6453
|
return fn.name;
|
|
6390
6454
|
}
|
|
6391
|
-
|
|
6455
|
+
_24WEKBY3_cjs.__name(getName, "getName");
|
|
6392
6456
|
__name2(getName, "getName");
|
|
6393
6457
|
function isRegExp2(obj) {
|
|
6394
6458
|
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
6395
6459
|
}
|
|
6396
|
-
|
|
6460
|
+
_24WEKBY3_cjs.__name(isRegExp2, "isRegExp2");
|
|
6397
6461
|
__name2(isRegExp2, "isRegExp");
|
|
6398
6462
|
function isNumeric(obj) {
|
|
6399
6463
|
return [
|
|
@@ -6401,7 +6465,7 @@ function isNumeric(obj) {
|
|
|
6401
6465
|
"BigInt"
|
|
6402
6466
|
].includes(type(obj));
|
|
6403
6467
|
}
|
|
6404
|
-
|
|
6468
|
+
_24WEKBY3_cjs.__name(isNumeric, "isNumeric");
|
|
6405
6469
|
__name2(isNumeric, "isNumeric");
|
|
6406
6470
|
var { flag: flag2 } = utils_exports;
|
|
6407
6471
|
[
|
|
@@ -6470,7 +6534,7 @@ var functionTypes = {
|
|
|
6470
6534
|
function an(type3, msg) {
|
|
6471
6535
|
if (msg) flag2(this, "message", msg);
|
|
6472
6536
|
type3 = type3.toLowerCase();
|
|
6473
|
-
|
|
6537
|
+
let obj = flag2(this, "object"), article = ~[
|
|
6474
6538
|
"a",
|
|
6475
6539
|
"e",
|
|
6476
6540
|
"i",
|
|
@@ -6484,25 +6548,25 @@ function an(type3, msg) {
|
|
|
6484
6548
|
this.assert(type3 === detectedType, "expected #{this} to be " + article + type3, "expected #{this} not to be " + article + type3);
|
|
6485
6549
|
}
|
|
6486
6550
|
}
|
|
6487
|
-
|
|
6551
|
+
_24WEKBY3_cjs.__name(an, "an");
|
|
6488
6552
|
__name2(an, "an");
|
|
6489
6553
|
Assertion.addChainableMethod("an", an);
|
|
6490
6554
|
Assertion.addChainableMethod("a", an);
|
|
6491
6555
|
function SameValueZero(a2, b) {
|
|
6492
6556
|
return isNaN22(a2) && isNaN22(b) || a2 === b;
|
|
6493
6557
|
}
|
|
6494
|
-
|
|
6558
|
+
_24WEKBY3_cjs.__name(SameValueZero, "SameValueZero");
|
|
6495
6559
|
__name2(SameValueZero, "SameValueZero");
|
|
6496
6560
|
function includeChainingBehavior() {
|
|
6497
6561
|
flag2(this, "contains", true);
|
|
6498
6562
|
}
|
|
6499
|
-
|
|
6563
|
+
_24WEKBY3_cjs.__name(includeChainingBehavior, "includeChainingBehavior");
|
|
6500
6564
|
__name2(includeChainingBehavior, "includeChainingBehavior");
|
|
6501
6565
|
function include(val, msg) {
|
|
6502
6566
|
if (msg) flag2(this, "message", msg);
|
|
6503
|
-
|
|
6567
|
+
let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), negate = flag2(this, "negate"), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag2(this, "eql") : SameValueZero;
|
|
6504
6568
|
flagMsg = flagMsg ? flagMsg + ": " : "";
|
|
6505
|
-
|
|
6569
|
+
let included = false;
|
|
6506
6570
|
switch (objType) {
|
|
6507
6571
|
case "string":
|
|
6508
6572
|
included = obj.indexOf(val) !== -1;
|
|
@@ -6536,13 +6600,15 @@ function include(val, msg) {
|
|
|
6536
6600
|
included = obj.indexOf(val) !== -1;
|
|
6537
6601
|
}
|
|
6538
6602
|
break;
|
|
6539
|
-
default:
|
|
6603
|
+
default: {
|
|
6540
6604
|
if (val !== Object(val)) {
|
|
6541
6605
|
throw new AssertionError(flagMsg + "the given combination of arguments (" + objType + " and " + type(val).toLowerCase() + ") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a " + type(val).toLowerCase(), void 0, ssfi);
|
|
6542
6606
|
}
|
|
6543
|
-
|
|
6607
|
+
let props = Object.keys(val);
|
|
6608
|
+
let firstErr = null;
|
|
6609
|
+
let numErrs = 0;
|
|
6544
6610
|
props.forEach(function(prop) {
|
|
6545
|
-
|
|
6611
|
+
let propAssertion = new Assertion(obj);
|
|
6546
6612
|
transferFlags(this, propAssertion, true);
|
|
6547
6613
|
flag2(propAssertion, "lockSsfi", true);
|
|
6548
6614
|
if (!negate || props.length === 1) {
|
|
@@ -6563,10 +6629,11 @@ function include(val, msg) {
|
|
|
6563
6629
|
throw firstErr;
|
|
6564
6630
|
}
|
|
6565
6631
|
return;
|
|
6632
|
+
}
|
|
6566
6633
|
}
|
|
6567
6634
|
this.assert(included, "expected #{this} to " + descriptor + "include " + inspect22(val), "expected #{this} to not " + descriptor + "include " + inspect22(val));
|
|
6568
6635
|
}
|
|
6569
|
-
|
|
6636
|
+
_24WEKBY3_cjs.__name(include, "include");
|
|
6570
6637
|
__name2(include, "include");
|
|
6571
6638
|
Assertion.addChainableMethod("include", include, includeChainingBehavior);
|
|
6572
6639
|
Assertion.addChainableMethod("contain", include, includeChainingBehavior);
|
|
@@ -6615,15 +6682,15 @@ Assertion.addProperty("NaN", function() {
|
|
|
6615
6682
|
this.assert(isNaN22(flag2(this, "object")), "expected #{this} to be NaN", "expected #{this} not to be NaN");
|
|
6616
6683
|
});
|
|
6617
6684
|
function assertExist() {
|
|
6618
|
-
|
|
6685
|
+
let val = flag2(this, "object");
|
|
6619
6686
|
this.assert(val !== null && val !== void 0, "expected #{this} to exist", "expected #{this} to not exist");
|
|
6620
6687
|
}
|
|
6621
|
-
|
|
6688
|
+
_24WEKBY3_cjs.__name(assertExist, "assertExist");
|
|
6622
6689
|
__name2(assertExist, "assertExist");
|
|
6623
6690
|
Assertion.addProperty("exist", assertExist);
|
|
6624
6691
|
Assertion.addProperty("exists", assertExist);
|
|
6625
6692
|
Assertion.addProperty("empty", function() {
|
|
6626
|
-
|
|
6693
|
+
let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount;
|
|
6627
6694
|
flagMsg = flagMsg ? flagMsg + ": " : "";
|
|
6628
6695
|
switch (type(val).toLowerCase()) {
|
|
6629
6696
|
case "array":
|
|
@@ -6637,9 +6704,10 @@ Assertion.addProperty("empty", function() {
|
|
|
6637
6704
|
case "weakmap":
|
|
6638
6705
|
case "weakset":
|
|
6639
6706
|
throw new AssertionError(flagMsg + ".empty was passed a weak collection", void 0, ssfi);
|
|
6640
|
-
case "function":
|
|
6641
|
-
|
|
6707
|
+
case "function": {
|
|
6708
|
+
const msg = flagMsg + ".empty was passed a function " + getName(val);
|
|
6642
6709
|
throw new AssertionError(msg.trim(), void 0, ssfi);
|
|
6710
|
+
}
|
|
6643
6711
|
default:
|
|
6644
6712
|
if (val !== Object(val)) {
|
|
6645
6713
|
throw new AssertionError(flagMsg + ".empty was passed non-string primitive " + inspect22(val), void 0, ssfi);
|
|
@@ -6649,18 +6717,18 @@ Assertion.addProperty("empty", function() {
|
|
|
6649
6717
|
this.assert(0 === itemsCount, "expected #{this} to be empty", "expected #{this} not to be empty");
|
|
6650
6718
|
});
|
|
6651
6719
|
function checkArguments() {
|
|
6652
|
-
|
|
6720
|
+
let obj = flag2(this, "object"), type3 = type(obj);
|
|
6653
6721
|
this.assert("Arguments" === type3, "expected #{this} to be arguments but got " + type3, "expected #{this} to not be arguments");
|
|
6654
6722
|
}
|
|
6655
|
-
|
|
6723
|
+
_24WEKBY3_cjs.__name(checkArguments, "checkArguments");
|
|
6656
6724
|
__name2(checkArguments, "checkArguments");
|
|
6657
6725
|
Assertion.addProperty("arguments", checkArguments);
|
|
6658
6726
|
Assertion.addProperty("Arguments", checkArguments);
|
|
6659
6727
|
function assertEqual(val, msg) {
|
|
6660
6728
|
if (msg) flag2(this, "message", msg);
|
|
6661
|
-
|
|
6729
|
+
let obj = flag2(this, "object");
|
|
6662
6730
|
if (flag2(this, "deep")) {
|
|
6663
|
-
|
|
6731
|
+
let prevLockSsfi = flag2(this, "lockSsfi");
|
|
6664
6732
|
flag2(this, "lockSsfi", true);
|
|
6665
6733
|
this.eql(val);
|
|
6666
6734
|
flag2(this, "lockSsfi", prevLockSsfi);
|
|
@@ -6668,23 +6736,23 @@ function assertEqual(val, msg) {
|
|
|
6668
6736
|
this.assert(val === obj, "expected #{this} to equal #{exp}", "expected #{this} to not equal #{exp}", val, this._obj, true);
|
|
6669
6737
|
}
|
|
6670
6738
|
}
|
|
6671
|
-
|
|
6739
|
+
_24WEKBY3_cjs.__name(assertEqual, "assertEqual");
|
|
6672
6740
|
__name2(assertEqual, "assertEqual");
|
|
6673
6741
|
Assertion.addMethod("equal", assertEqual);
|
|
6674
6742
|
Assertion.addMethod("equals", assertEqual);
|
|
6675
6743
|
Assertion.addMethod("eq", assertEqual);
|
|
6676
6744
|
function assertEql(obj, msg) {
|
|
6677
6745
|
if (msg) flag2(this, "message", msg);
|
|
6678
|
-
|
|
6746
|
+
let eql = flag2(this, "eql");
|
|
6679
6747
|
this.assert(eql(obj, flag2(this, "object")), "expected #{this} to deeply equal #{exp}", "expected #{this} to not deeply equal #{exp}", obj, this._obj, true);
|
|
6680
6748
|
}
|
|
6681
|
-
|
|
6749
|
+
_24WEKBY3_cjs.__name(assertEql, "assertEql");
|
|
6682
6750
|
__name2(assertEql, "assertEql");
|
|
6683
6751
|
Assertion.addMethod("eql", assertEql);
|
|
6684
6752
|
Assertion.addMethod("eqls", assertEql);
|
|
6685
6753
|
function assertAbove(n, msg) {
|
|
6686
6754
|
if (msg) flag2(this, "message", msg);
|
|
6687
|
-
|
|
6755
|
+
let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase();
|
|
6688
6756
|
if (doLength && objType !== "map" && objType !== "set") {
|
|
6689
6757
|
new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
|
|
6690
6758
|
}
|
|
@@ -6693,11 +6761,11 @@ function assertAbove(n, msg) {
|
|
|
6693
6761
|
} else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
|
|
6694
6762
|
throw new AssertionError(msgPrefix + "the argument to above must be a number", void 0, ssfi);
|
|
6695
6763
|
} else if (!doLength && objType !== "date" && !isNumeric(obj)) {
|
|
6696
|
-
|
|
6764
|
+
let printObj = objType === "string" ? "'" + obj + "'" : obj;
|
|
6697
6765
|
throw new AssertionError(msgPrefix + "expected " + printObj + " to be a number or a date", void 0, ssfi);
|
|
6698
6766
|
}
|
|
6699
6767
|
if (doLength) {
|
|
6700
|
-
|
|
6768
|
+
let descriptor = "length", itemsCount;
|
|
6701
6769
|
if (objType === "map" || objType === "set") {
|
|
6702
6770
|
descriptor = "size";
|
|
6703
6771
|
itemsCount = obj.size;
|
|
@@ -6709,14 +6777,14 @@ function assertAbove(n, msg) {
|
|
|
6709
6777
|
this.assert(obj > n, "expected #{this} to be above #{exp}", "expected #{this} to be at most #{exp}", n);
|
|
6710
6778
|
}
|
|
6711
6779
|
}
|
|
6712
|
-
|
|
6780
|
+
_24WEKBY3_cjs.__name(assertAbove, "assertAbove");
|
|
6713
6781
|
__name2(assertAbove, "assertAbove");
|
|
6714
6782
|
Assertion.addMethod("above", assertAbove);
|
|
6715
6783
|
Assertion.addMethod("gt", assertAbove);
|
|
6716
6784
|
Assertion.addMethod("greaterThan", assertAbove);
|
|
6717
6785
|
function assertLeast(n, msg) {
|
|
6718
6786
|
if (msg) flag2(this, "message", msg);
|
|
6719
|
-
|
|
6787
|
+
let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
|
|
6720
6788
|
if (doLength && objType !== "map" && objType !== "set") {
|
|
6721
6789
|
new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
|
|
6722
6790
|
}
|
|
@@ -6725,7 +6793,7 @@ function assertLeast(n, msg) {
|
|
|
6725
6793
|
} else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
|
|
6726
6794
|
errorMessage = msgPrefix + "the argument to least must be a number";
|
|
6727
6795
|
} else if (!doLength && objType !== "date" && !isNumeric(obj)) {
|
|
6728
|
-
|
|
6796
|
+
let printObj = objType === "string" ? "'" + obj + "'" : obj;
|
|
6729
6797
|
errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
|
|
6730
6798
|
} else {
|
|
6731
6799
|
shouldThrow = false;
|
|
@@ -6734,7 +6802,7 @@ function assertLeast(n, msg) {
|
|
|
6734
6802
|
throw new AssertionError(errorMessage, void 0, ssfi);
|
|
6735
6803
|
}
|
|
6736
6804
|
if (doLength) {
|
|
6737
|
-
|
|
6805
|
+
let descriptor = "length", itemsCount;
|
|
6738
6806
|
if (objType === "map" || objType === "set") {
|
|
6739
6807
|
descriptor = "size";
|
|
6740
6808
|
itemsCount = obj.size;
|
|
@@ -6746,14 +6814,14 @@ function assertLeast(n, msg) {
|
|
|
6746
6814
|
this.assert(obj >= n, "expected #{this} to be at least #{exp}", "expected #{this} to be below #{exp}", n);
|
|
6747
6815
|
}
|
|
6748
6816
|
}
|
|
6749
|
-
|
|
6817
|
+
_24WEKBY3_cjs.__name(assertLeast, "assertLeast");
|
|
6750
6818
|
__name2(assertLeast, "assertLeast");
|
|
6751
6819
|
Assertion.addMethod("least", assertLeast);
|
|
6752
6820
|
Assertion.addMethod("gte", assertLeast);
|
|
6753
6821
|
Assertion.addMethod("greaterThanOrEqual", assertLeast);
|
|
6754
6822
|
function assertBelow(n, msg) {
|
|
6755
6823
|
if (msg) flag2(this, "message", msg);
|
|
6756
|
-
|
|
6824
|
+
let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
|
|
6757
6825
|
if (doLength && objType !== "map" && objType !== "set") {
|
|
6758
6826
|
new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
|
|
6759
6827
|
}
|
|
@@ -6762,7 +6830,7 @@ function assertBelow(n, msg) {
|
|
|
6762
6830
|
} else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
|
|
6763
6831
|
errorMessage = msgPrefix + "the argument to below must be a number";
|
|
6764
6832
|
} else if (!doLength && objType !== "date" && !isNumeric(obj)) {
|
|
6765
|
-
|
|
6833
|
+
let printObj = objType === "string" ? "'" + obj + "'" : obj;
|
|
6766
6834
|
errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
|
|
6767
6835
|
} else {
|
|
6768
6836
|
shouldThrow = false;
|
|
@@ -6771,7 +6839,7 @@ function assertBelow(n, msg) {
|
|
|
6771
6839
|
throw new AssertionError(errorMessage, void 0, ssfi);
|
|
6772
6840
|
}
|
|
6773
6841
|
if (doLength) {
|
|
6774
|
-
|
|
6842
|
+
let descriptor = "length", itemsCount;
|
|
6775
6843
|
if (objType === "map" || objType === "set") {
|
|
6776
6844
|
descriptor = "size";
|
|
6777
6845
|
itemsCount = obj.size;
|
|
@@ -6783,14 +6851,14 @@ function assertBelow(n, msg) {
|
|
|
6783
6851
|
this.assert(obj < n, "expected #{this} to be below #{exp}", "expected #{this} to be at least #{exp}", n);
|
|
6784
6852
|
}
|
|
6785
6853
|
}
|
|
6786
|
-
|
|
6854
|
+
_24WEKBY3_cjs.__name(assertBelow, "assertBelow");
|
|
6787
6855
|
__name2(assertBelow, "assertBelow");
|
|
6788
6856
|
Assertion.addMethod("below", assertBelow);
|
|
6789
6857
|
Assertion.addMethod("lt", assertBelow);
|
|
6790
6858
|
Assertion.addMethod("lessThan", assertBelow);
|
|
6791
6859
|
function assertMost(n, msg) {
|
|
6792
6860
|
if (msg) flag2(this, "message", msg);
|
|
6793
|
-
|
|
6861
|
+
let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
|
|
6794
6862
|
if (doLength && objType !== "map" && objType !== "set") {
|
|
6795
6863
|
new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
|
|
6796
6864
|
}
|
|
@@ -6799,7 +6867,7 @@ function assertMost(n, msg) {
|
|
|
6799
6867
|
} else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
|
|
6800
6868
|
errorMessage = msgPrefix + "the argument to most must be a number";
|
|
6801
6869
|
} else if (!doLength && objType !== "date" && !isNumeric(obj)) {
|
|
6802
|
-
|
|
6870
|
+
let printObj = objType === "string" ? "'" + obj + "'" : obj;
|
|
6803
6871
|
errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
|
|
6804
6872
|
} else {
|
|
6805
6873
|
shouldThrow = false;
|
|
@@ -6808,7 +6876,7 @@ function assertMost(n, msg) {
|
|
|
6808
6876
|
throw new AssertionError(errorMessage, void 0, ssfi);
|
|
6809
6877
|
}
|
|
6810
6878
|
if (doLength) {
|
|
6811
|
-
|
|
6879
|
+
let descriptor = "length", itemsCount;
|
|
6812
6880
|
if (objType === "map" || objType === "set") {
|
|
6813
6881
|
descriptor = "size";
|
|
6814
6882
|
itemsCount = obj.size;
|
|
@@ -6820,14 +6888,14 @@ function assertMost(n, msg) {
|
|
|
6820
6888
|
this.assert(obj <= n, "expected #{this} to be at most #{exp}", "expected #{this} to be above #{exp}", n);
|
|
6821
6889
|
}
|
|
6822
6890
|
}
|
|
6823
|
-
|
|
6891
|
+
_24WEKBY3_cjs.__name(assertMost, "assertMost");
|
|
6824
6892
|
__name2(assertMost, "assertMost");
|
|
6825
6893
|
Assertion.addMethod("most", assertMost);
|
|
6826
6894
|
Assertion.addMethod("lte", assertMost);
|
|
6827
6895
|
Assertion.addMethod("lessThanOrEqual", assertMost);
|
|
6828
6896
|
Assertion.addMethod("within", function(start, finish, msg) {
|
|
6829
6897
|
if (msg) flag2(this, "message", msg);
|
|
6830
|
-
|
|
6898
|
+
let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), startType = type(start).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = true, range = startType === "date" && finishType === "date" ? start.toISOString() + ".." + finish.toISOString() : start + ".." + finish;
|
|
6831
6899
|
if (doLength && objType !== "map" && objType !== "set") {
|
|
6832
6900
|
new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
|
|
6833
6901
|
}
|
|
@@ -6836,7 +6904,7 @@ Assertion.addMethod("within", function(start, finish, msg) {
|
|
|
6836
6904
|
} else if ((!isNumeric(start) || !isNumeric(finish)) && (doLength || isNumeric(obj))) {
|
|
6837
6905
|
errorMessage = msgPrefix + "the arguments to within must be numbers";
|
|
6838
6906
|
} else if (!doLength && objType !== "date" && !isNumeric(obj)) {
|
|
6839
|
-
|
|
6907
|
+
let printObj = objType === "string" ? "'" + obj + "'" : obj;
|
|
6840
6908
|
errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
|
|
6841
6909
|
} else {
|
|
6842
6910
|
shouldThrow = false;
|
|
@@ -6845,7 +6913,7 @@ Assertion.addMethod("within", function(start, finish, msg) {
|
|
|
6845
6913
|
throw new AssertionError(errorMessage, void 0, ssfi);
|
|
6846
6914
|
}
|
|
6847
6915
|
if (doLength) {
|
|
6848
|
-
|
|
6916
|
+
let descriptor = "length", itemsCount;
|
|
6849
6917
|
if (objType === "map" || objType === "set") {
|
|
6850
6918
|
descriptor = "size";
|
|
6851
6919
|
itemsCount = obj.size;
|
|
@@ -6859,11 +6927,12 @@ Assertion.addMethod("within", function(start, finish, msg) {
|
|
|
6859
6927
|
});
|
|
6860
6928
|
function assertInstanceOf(constructor, msg) {
|
|
6861
6929
|
if (msg) flag2(this, "message", msg);
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6930
|
+
let target = flag2(this, "object");
|
|
6931
|
+
let ssfi = flag2(this, "ssfi");
|
|
6932
|
+
let flagMsg = flag2(this, "message");
|
|
6933
|
+
let isInstanceOf;
|
|
6865
6934
|
try {
|
|
6866
|
-
|
|
6935
|
+
isInstanceOf = target instanceof constructor;
|
|
6867
6936
|
} catch (err) {
|
|
6868
6937
|
if (err instanceof TypeError) {
|
|
6869
6938
|
flagMsg = flagMsg ? flagMsg + ": " : "";
|
|
@@ -6871,19 +6940,19 @@ function assertInstanceOf(constructor, msg) {
|
|
|
6871
6940
|
}
|
|
6872
6941
|
throw err;
|
|
6873
6942
|
}
|
|
6874
|
-
|
|
6943
|
+
let name = getName(constructor);
|
|
6875
6944
|
if (name == null) {
|
|
6876
6945
|
name = "an unnamed constructor";
|
|
6877
6946
|
}
|
|
6878
6947
|
this.assert(isInstanceOf, "expected #{this} to be an instance of " + name, "expected #{this} to not be an instance of " + name);
|
|
6879
6948
|
}
|
|
6880
|
-
|
|
6949
|
+
_24WEKBY3_cjs.__name(assertInstanceOf, "assertInstanceOf");
|
|
6881
6950
|
__name2(assertInstanceOf, "assertInstanceOf");
|
|
6882
6951
|
Assertion.addMethod("instanceof", assertInstanceOf);
|
|
6883
6952
|
Assertion.addMethod("instanceOf", assertInstanceOf);
|
|
6884
6953
|
function assertProperty(name, val, msg) {
|
|
6885
6954
|
if (msg) flag2(this, "message", msg);
|
|
6886
|
-
|
|
6955
|
+
let isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name;
|
|
6887
6956
|
flagMsg = flagMsg ? flagMsg + ": " : "";
|
|
6888
6957
|
if (isNested) {
|
|
6889
6958
|
if (nameType !== "string") {
|
|
@@ -6900,13 +6969,13 @@ function assertProperty(name, val, msg) {
|
|
|
6900
6969
|
if (obj === null || obj === void 0) {
|
|
6901
6970
|
throw new AssertionError(flagMsg + "Target cannot be null or undefined.", void 0, ssfi);
|
|
6902
6971
|
}
|
|
6903
|
-
|
|
6904
|
-
|
|
6972
|
+
let isDeep = flag2(this, "deep"), negate = flag2(this, "negate"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
|
|
6973
|
+
let descriptor = "";
|
|
6905
6974
|
if (isDeep) descriptor += "deep ";
|
|
6906
6975
|
if (isOwn) descriptor += "own ";
|
|
6907
6976
|
if (isNested) descriptor += "nested ";
|
|
6908
6977
|
descriptor += "property ";
|
|
6909
|
-
|
|
6978
|
+
let hasProperty2;
|
|
6910
6979
|
if (isOwn) hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name);
|
|
6911
6980
|
else if (isNested) hasProperty2 = pathInfo.exists;
|
|
6912
6981
|
else hasProperty2 = hasProperty(obj, name);
|
|
@@ -6918,14 +6987,14 @@ function assertProperty(name, val, msg) {
|
|
|
6918
6987
|
}
|
|
6919
6988
|
flag2(this, "object", value);
|
|
6920
6989
|
}
|
|
6921
|
-
|
|
6990
|
+
_24WEKBY3_cjs.__name(assertProperty, "assertProperty");
|
|
6922
6991
|
__name2(assertProperty, "assertProperty");
|
|
6923
6992
|
Assertion.addMethod("property", assertProperty);
|
|
6924
6993
|
function assertOwnProperty(_name, _value, _msg) {
|
|
6925
6994
|
flag2(this, "own", true);
|
|
6926
6995
|
assertProperty.apply(this, arguments);
|
|
6927
6996
|
}
|
|
6928
|
-
|
|
6997
|
+
_24WEKBY3_cjs.__name(assertOwnProperty, "assertOwnProperty");
|
|
6929
6998
|
__name2(assertOwnProperty, "assertOwnProperty");
|
|
6930
6999
|
Assertion.addMethod("ownProperty", assertOwnProperty);
|
|
6931
7000
|
Assertion.addMethod("haveOwnProperty", assertOwnProperty);
|
|
@@ -6935,9 +7004,9 @@ function assertOwnPropertyDescriptor(name, descriptor, msg) {
|
|
|
6935
7004
|
descriptor = null;
|
|
6936
7005
|
}
|
|
6937
7006
|
if (msg) flag2(this, "message", msg);
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
7007
|
+
let obj = flag2(this, "object");
|
|
7008
|
+
let actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);
|
|
7009
|
+
let eql = flag2(this, "eql");
|
|
6941
7010
|
if (actualDescriptor && descriptor) {
|
|
6942
7011
|
this.assert(eql(descriptor, actualDescriptor), "expected the own property descriptor for " + inspect22(name) + " on #{this} to match " + inspect22(descriptor) + ", got " + inspect22(actualDescriptor), "expected the own property descriptor for " + inspect22(name) + " on #{this} to not match " + inspect22(descriptor), descriptor, actualDescriptor, true);
|
|
6943
7012
|
} else {
|
|
@@ -6945,18 +7014,18 @@ function assertOwnPropertyDescriptor(name, descriptor, msg) {
|
|
|
6945
7014
|
}
|
|
6946
7015
|
flag2(this, "object", actualDescriptor);
|
|
6947
7016
|
}
|
|
6948
|
-
|
|
7017
|
+
_24WEKBY3_cjs.__name(assertOwnPropertyDescriptor, "assertOwnPropertyDescriptor");
|
|
6949
7018
|
__name2(assertOwnPropertyDescriptor, "assertOwnPropertyDescriptor");
|
|
6950
7019
|
Assertion.addMethod("ownPropertyDescriptor", assertOwnPropertyDescriptor);
|
|
6951
7020
|
Assertion.addMethod("haveOwnPropertyDescriptor", assertOwnPropertyDescriptor);
|
|
6952
7021
|
function assertLengthChain() {
|
|
6953
7022
|
flag2(this, "doLength", true);
|
|
6954
7023
|
}
|
|
6955
|
-
|
|
7024
|
+
_24WEKBY3_cjs.__name(assertLengthChain, "assertLengthChain");
|
|
6956
7025
|
__name2(assertLengthChain, "assertLengthChain");
|
|
6957
7026
|
function assertLength(n, msg) {
|
|
6958
7027
|
if (msg) flag2(this, "message", msg);
|
|
6959
|
-
|
|
7028
|
+
let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount;
|
|
6960
7029
|
switch (objType) {
|
|
6961
7030
|
case "map":
|
|
6962
7031
|
case "set":
|
|
@@ -6969,29 +7038,29 @@ function assertLength(n, msg) {
|
|
|
6969
7038
|
}
|
|
6970
7039
|
this.assert(itemsCount == n, "expected #{this} to have a " + descriptor + " of #{exp} but got #{act}", "expected #{this} to not have a " + descriptor + " of #{act}", n, itemsCount);
|
|
6971
7040
|
}
|
|
6972
|
-
|
|
7041
|
+
_24WEKBY3_cjs.__name(assertLength, "assertLength");
|
|
6973
7042
|
__name2(assertLength, "assertLength");
|
|
6974
7043
|
Assertion.addChainableMethod("length", assertLength, assertLengthChain);
|
|
6975
7044
|
Assertion.addChainableMethod("lengthOf", assertLength, assertLengthChain);
|
|
6976
7045
|
function assertMatch(re, msg) {
|
|
6977
7046
|
if (msg) flag2(this, "message", msg);
|
|
6978
|
-
|
|
7047
|
+
let obj = flag2(this, "object");
|
|
6979
7048
|
this.assert(re.exec(obj), "expected #{this} to match " + re, "expected #{this} not to match " + re);
|
|
6980
7049
|
}
|
|
6981
|
-
|
|
7050
|
+
_24WEKBY3_cjs.__name(assertMatch, "assertMatch");
|
|
6982
7051
|
__name2(assertMatch, "assertMatch");
|
|
6983
7052
|
Assertion.addMethod("match", assertMatch);
|
|
6984
7053
|
Assertion.addMethod("matches", assertMatch);
|
|
6985
7054
|
Assertion.addMethod("string", function(str, msg) {
|
|
6986
7055
|
if (msg) flag2(this, "message", msg);
|
|
6987
|
-
|
|
7056
|
+
let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
|
|
6988
7057
|
new Assertion(obj, flagMsg, ssfi, true).is.a("string");
|
|
6989
7058
|
this.assert(~obj.indexOf(str), "expected #{this} to contain " + inspect22(str), "expected #{this} to not contain " + inspect22(str));
|
|
6990
7059
|
});
|
|
6991
7060
|
function assertKeys(keys) {
|
|
6992
|
-
|
|
7061
|
+
let obj = flag2(this, "object"), objType = type(obj), keysType = type(keys), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), str, deepStr = "", actual, ok = true, flagMsg = flag2(this, "message");
|
|
6993
7062
|
flagMsg = flagMsg ? flagMsg + ": " : "";
|
|
6994
|
-
|
|
7063
|
+
let mixedArgsMsg = flagMsg + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";
|
|
6995
7064
|
if (objType === "Map" || objType === "Set") {
|
|
6996
7065
|
deepStr = isDeep ? "deeply " : "";
|
|
6997
7066
|
actual = [];
|
|
@@ -7025,7 +7094,7 @@ function assertKeys(keys) {
|
|
|
7025
7094
|
if (!keys.length) {
|
|
7026
7095
|
throw new AssertionError(flagMsg + "keys required", void 0, ssfi);
|
|
7027
7096
|
}
|
|
7028
|
-
|
|
7097
|
+
let len = keys.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
|
|
7029
7098
|
if (!any && !all) {
|
|
7030
7099
|
all = true;
|
|
7031
7100
|
}
|
|
@@ -7050,7 +7119,7 @@ function assertKeys(keys) {
|
|
|
7050
7119
|
keys = keys.map(function(key) {
|
|
7051
7120
|
return inspect22(key);
|
|
7052
7121
|
});
|
|
7053
|
-
|
|
7122
|
+
let last = keys.pop();
|
|
7054
7123
|
if (all) {
|
|
7055
7124
|
str = keys.join(", ") + ", and " + last;
|
|
7056
7125
|
}
|
|
@@ -7064,13 +7133,13 @@ function assertKeys(keys) {
|
|
|
7064
7133
|
str = (flag2(this, "contains") ? "contain " : "have ") + str;
|
|
7065
7134
|
this.assert(ok, "expected #{this} to " + deepStr + str, "expected #{this} to not " + deepStr + str, expected.slice(0).sort(compareByInspect), actual.sort(compareByInspect), true);
|
|
7066
7135
|
}
|
|
7067
|
-
|
|
7136
|
+
_24WEKBY3_cjs.__name(assertKeys, "assertKeys");
|
|
7068
7137
|
__name2(assertKeys, "assertKeys");
|
|
7069
7138
|
Assertion.addMethod("keys", assertKeys);
|
|
7070
7139
|
Assertion.addMethod("key", assertKeys);
|
|
7071
7140
|
function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
7072
7141
|
if (msg) flag2(this, "message", msg);
|
|
7073
|
-
|
|
7142
|
+
let obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || false;
|
|
7074
7143
|
new Assertion(obj, flagMsg, ssfi, true).is.a("function");
|
|
7075
7144
|
if (isRegExp2(errorLike) || typeof errorLike === "string") {
|
|
7076
7145
|
errMsgMatcher = errorLike;
|
|
@@ -7084,12 +7153,12 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
|
7084
7153
|
errorWasThrown = true;
|
|
7085
7154
|
caughtErr = err;
|
|
7086
7155
|
}
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7156
|
+
let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0;
|
|
7157
|
+
let everyArgIsDefined = Boolean(errorLike && errMsgMatcher);
|
|
7158
|
+
let errorLikeFail = false;
|
|
7159
|
+
let errMsgMatcherFail = false;
|
|
7091
7160
|
if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {
|
|
7092
|
-
|
|
7161
|
+
let errorLikeString = "an error";
|
|
7093
7162
|
if (errorLike instanceof Error) {
|
|
7094
7163
|
errorLikeString = "#{exp}";
|
|
7095
7164
|
} else if (errorLike) {
|
|
@@ -7110,7 +7179,7 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
|
7110
7179
|
}
|
|
7111
7180
|
if (errorLike && caughtErr) {
|
|
7112
7181
|
if (errorLike instanceof Error) {
|
|
7113
|
-
|
|
7182
|
+
let isCompatibleInstance = check_error_exports.compatibleInstance(caughtErr, errorLike);
|
|
7114
7183
|
if (isCompatibleInstance === negate) {
|
|
7115
7184
|
if (everyArgIsDefined && negate) {
|
|
7116
7185
|
errorLikeFail = true;
|
|
@@ -7119,7 +7188,7 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
|
7119
7188
|
}
|
|
7120
7189
|
}
|
|
7121
7190
|
}
|
|
7122
|
-
|
|
7191
|
+
let isCompatibleConstructor = check_error_exports.compatibleConstructor(caughtErr, errorLike);
|
|
7123
7192
|
if (isCompatibleConstructor === negate) {
|
|
7124
7193
|
if (everyArgIsDefined && negate) {
|
|
7125
7194
|
errorLikeFail = true;
|
|
@@ -7129,11 +7198,11 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
|
7129
7198
|
}
|
|
7130
7199
|
}
|
|
7131
7200
|
if (caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) {
|
|
7132
|
-
|
|
7201
|
+
let placeholder = "including";
|
|
7133
7202
|
if (isRegExp2(errMsgMatcher)) {
|
|
7134
7203
|
placeholder = "matching";
|
|
7135
7204
|
}
|
|
7136
|
-
|
|
7205
|
+
let isCompatibleMessage = check_error_exports.compatibleMessage(caughtErr, errMsgMatcher);
|
|
7137
7206
|
if (isCompatibleMessage === negate) {
|
|
7138
7207
|
if (everyArgIsDefined && negate) {
|
|
7139
7208
|
errMsgMatcherFail = true;
|
|
@@ -7147,17 +7216,17 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
|
7147
7216
|
}
|
|
7148
7217
|
flag2(this, "object", caughtErr);
|
|
7149
7218
|
}
|
|
7150
|
-
|
|
7219
|
+
_24WEKBY3_cjs.__name(assertThrows, "assertThrows");
|
|
7151
7220
|
__name2(assertThrows, "assertThrows");
|
|
7152
7221
|
Assertion.addMethod("throw", assertThrows);
|
|
7153
7222
|
Assertion.addMethod("throws", assertThrows);
|
|
7154
7223
|
Assertion.addMethod("Throw", assertThrows);
|
|
7155
7224
|
function respondTo(method, msg) {
|
|
7156
7225
|
if (msg) flag2(this, "message", msg);
|
|
7157
|
-
|
|
7226
|
+
let obj = flag2(this, "object"), itself = flag2(this, "itself"), context = "function" === typeof obj && !itself ? obj.prototype[method] : obj[method];
|
|
7158
7227
|
this.assert("function" === typeof context, "expected #{this} to respond to " + inspect22(method), "expected #{this} to not respond to " + inspect22(method));
|
|
7159
7228
|
}
|
|
7160
|
-
|
|
7229
|
+
_24WEKBY3_cjs.__name(respondTo, "respondTo");
|
|
7161
7230
|
__name2(respondTo, "respondTo");
|
|
7162
7231
|
Assertion.addMethod("respondTo", respondTo);
|
|
7163
7232
|
Assertion.addMethod("respondsTo", respondTo);
|
|
@@ -7166,29 +7235,33 @@ Assertion.addProperty("itself", function() {
|
|
|
7166
7235
|
});
|
|
7167
7236
|
function satisfy(matcher, msg) {
|
|
7168
7237
|
if (msg) flag2(this, "message", msg);
|
|
7169
|
-
|
|
7170
|
-
|
|
7238
|
+
let obj = flag2(this, "object");
|
|
7239
|
+
let result = matcher(obj);
|
|
7171
7240
|
this.assert(result, "expected #{this} to satisfy " + objDisplay2(matcher), "expected #{this} to not satisfy" + objDisplay2(matcher), flag2(this, "negate") ? false : true, result);
|
|
7172
7241
|
}
|
|
7173
|
-
|
|
7242
|
+
_24WEKBY3_cjs.__name(satisfy, "satisfy");
|
|
7174
7243
|
__name2(satisfy, "satisfy");
|
|
7175
7244
|
Assertion.addMethod("satisfy", satisfy);
|
|
7176
7245
|
Assertion.addMethod("satisfies", satisfy);
|
|
7177
7246
|
function closeTo(expected, delta, msg) {
|
|
7178
7247
|
if (msg) flag2(this, "message", msg);
|
|
7179
|
-
|
|
7248
|
+
let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
|
|
7180
7249
|
new Assertion(obj, flagMsg, ssfi, true).is.numeric;
|
|
7181
7250
|
let message = "A `delta` value is required for `closeTo`";
|
|
7182
|
-
if (delta == void 0)
|
|
7251
|
+
if (delta == void 0) {
|
|
7252
|
+
throw new AssertionError(flagMsg ? `${flagMsg}: ${message}` : message, void 0, ssfi);
|
|
7253
|
+
}
|
|
7183
7254
|
new Assertion(delta, flagMsg, ssfi, true).is.numeric;
|
|
7184
7255
|
message = "A `expected` value is required for `closeTo`";
|
|
7185
|
-
if (expected == void 0)
|
|
7256
|
+
if (expected == void 0) {
|
|
7257
|
+
throw new AssertionError(flagMsg ? `${flagMsg}: ${message}` : message, void 0, ssfi);
|
|
7258
|
+
}
|
|
7186
7259
|
new Assertion(expected, flagMsg, ssfi, true).is.numeric;
|
|
7187
7260
|
const abs = /* @__PURE__ */ __name2((x) => x < 0n ? -x : x, "abs");
|
|
7188
7261
|
const strip = /* @__PURE__ */ __name2((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
|
|
7189
7262
|
this.assert(strip(abs(obj - expected)) <= delta, "expected #{this} to be close to " + expected + " +/- " + delta, "expected #{this} not to be close to " + expected + " +/- " + delta);
|
|
7190
7263
|
}
|
|
7191
|
-
|
|
7264
|
+
_24WEKBY3_cjs.__name(closeTo, "closeTo");
|
|
7192
7265
|
__name2(closeTo, "closeTo");
|
|
7193
7266
|
Assertion.addMethod("closeTo", closeTo);
|
|
7194
7267
|
Assertion.addMethod("approximately", closeTo);
|
|
@@ -7202,28 +7275,28 @@ function isSubsetOf(_subset, _superset, cmp, contains, ordered) {
|
|
|
7202
7275
|
return subset.every(function(elem, idx) {
|
|
7203
7276
|
if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
|
|
7204
7277
|
if (!cmp) {
|
|
7205
|
-
|
|
7278
|
+
let matchIdx = superset.indexOf(elem);
|
|
7206
7279
|
if (matchIdx === -1) return false;
|
|
7207
7280
|
if (!contains) superset.splice(matchIdx, 1);
|
|
7208
7281
|
return true;
|
|
7209
7282
|
}
|
|
7210
|
-
return superset.some(function(elem2,
|
|
7283
|
+
return superset.some(function(elem2, matchIdx) {
|
|
7211
7284
|
if (!cmp(elem, elem2)) return false;
|
|
7212
|
-
if (!contains) superset.splice(
|
|
7285
|
+
if (!contains) superset.splice(matchIdx, 1);
|
|
7213
7286
|
return true;
|
|
7214
7287
|
});
|
|
7215
7288
|
});
|
|
7216
7289
|
}
|
|
7217
|
-
|
|
7290
|
+
_24WEKBY3_cjs.__name(isSubsetOf, "isSubsetOf");
|
|
7218
7291
|
__name2(isSubsetOf, "isSubsetOf");
|
|
7219
7292
|
Assertion.addMethod("members", function(subset, msg) {
|
|
7220
7293
|
if (msg) flag2(this, "message", msg);
|
|
7221
|
-
|
|
7294
|
+
let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
|
|
7222
7295
|
new Assertion(obj, flagMsg, ssfi, true).to.be.iterable;
|
|
7223
7296
|
new Assertion(subset, flagMsg, ssfi, true).to.be.iterable;
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7297
|
+
let contains = flag2(this, "contains");
|
|
7298
|
+
let ordered = flag2(this, "ordered");
|
|
7299
|
+
let subject, failMsg, failNegateMsg;
|
|
7227
7300
|
if (contains) {
|
|
7228
7301
|
subject = ordered ? "an ordered superset" : "a superset";
|
|
7229
7302
|
failMsg = "expected #{this} to be " + subject + " of #{exp}";
|
|
@@ -7233,17 +7306,17 @@ Assertion.addMethod("members", function(subset, msg) {
|
|
|
7233
7306
|
failMsg = "expected #{this} to have the same " + subject + " as #{exp}";
|
|
7234
7307
|
failNegateMsg = "expected #{this} to not have the same " + subject + " as #{exp}";
|
|
7235
7308
|
}
|
|
7236
|
-
|
|
7309
|
+
let cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0;
|
|
7237
7310
|
this.assert(isSubsetOf(subset, obj, cmp, contains, ordered), failMsg, failNegateMsg, subset, obj, true);
|
|
7238
7311
|
});
|
|
7239
7312
|
Assertion.addProperty("iterable", function(msg) {
|
|
7240
7313
|
if (msg) flag2(this, "message", msg);
|
|
7241
|
-
|
|
7314
|
+
let obj = flag2(this, "object");
|
|
7242
7315
|
this.assert(obj != void 0 && obj[Symbol.iterator], "expected #{this} to be an iterable", "expected #{this} to not be an iterable", obj);
|
|
7243
7316
|
});
|
|
7244
7317
|
function oneOf(list, msg) {
|
|
7245
7318
|
if (msg) flag2(this, "message", msg);
|
|
7246
|
-
|
|
7319
|
+
let expected = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), contains = flag2(this, "contains"), isDeep = flag2(this, "deep"), eql = flag2(this, "eql");
|
|
7247
7320
|
new Assertion(list, flagMsg, ssfi, true).to.be.an("array");
|
|
7248
7321
|
if (contains) {
|
|
7249
7322
|
this.assert(list.some(function(possibility) {
|
|
@@ -7259,14 +7332,14 @@ function oneOf(list, msg) {
|
|
|
7259
7332
|
}
|
|
7260
7333
|
}
|
|
7261
7334
|
}
|
|
7262
|
-
|
|
7335
|
+
_24WEKBY3_cjs.__name(oneOf, "oneOf");
|
|
7263
7336
|
__name2(oneOf, "oneOf");
|
|
7264
7337
|
Assertion.addMethod("oneOf", oneOf);
|
|
7265
7338
|
function assertChanges(subject, prop, msg) {
|
|
7266
7339
|
if (msg) flag2(this, "message", msg);
|
|
7267
|
-
|
|
7340
|
+
let fn = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
|
|
7268
7341
|
new Assertion(fn, flagMsg, ssfi, true).is.a("function");
|
|
7269
|
-
|
|
7342
|
+
let initial;
|
|
7270
7343
|
if (!prop) {
|
|
7271
7344
|
new Assertion(subject, flagMsg, ssfi, true).is.a("function");
|
|
7272
7345
|
initial = subject();
|
|
@@ -7275,8 +7348,8 @@ function assertChanges(subject, prop, msg) {
|
|
|
7275
7348
|
initial = subject[prop];
|
|
7276
7349
|
}
|
|
7277
7350
|
fn();
|
|
7278
|
-
|
|
7279
|
-
|
|
7351
|
+
let final = prop === void 0 || prop === null ? subject() : subject[prop];
|
|
7352
|
+
let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
|
|
7280
7353
|
flag2(this, "deltaMsgObj", msgObj);
|
|
7281
7354
|
flag2(this, "initialDeltaValue", initial);
|
|
7282
7355
|
flag2(this, "finalDeltaValue", final);
|
|
@@ -7284,15 +7357,15 @@ function assertChanges(subject, prop, msg) {
|
|
|
7284
7357
|
flag2(this, "realDelta", final !== initial);
|
|
7285
7358
|
this.assert(initial !== final, "expected " + msgObj + " to change", "expected " + msgObj + " to not change");
|
|
7286
7359
|
}
|
|
7287
|
-
|
|
7360
|
+
_24WEKBY3_cjs.__name(assertChanges, "assertChanges");
|
|
7288
7361
|
__name2(assertChanges, "assertChanges");
|
|
7289
7362
|
Assertion.addMethod("change", assertChanges);
|
|
7290
7363
|
Assertion.addMethod("changes", assertChanges);
|
|
7291
7364
|
function assertIncreases(subject, prop, msg) {
|
|
7292
7365
|
if (msg) flag2(this, "message", msg);
|
|
7293
|
-
|
|
7366
|
+
let fn = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
|
|
7294
7367
|
new Assertion(fn, flagMsg, ssfi, true).is.a("function");
|
|
7295
|
-
|
|
7368
|
+
let initial;
|
|
7296
7369
|
if (!prop) {
|
|
7297
7370
|
new Assertion(subject, flagMsg, ssfi, true).is.a("function");
|
|
7298
7371
|
initial = subject();
|
|
@@ -7302,8 +7375,8 @@ function assertIncreases(subject, prop, msg) {
|
|
|
7302
7375
|
}
|
|
7303
7376
|
new Assertion(initial, flagMsg, ssfi, true).is.a("number");
|
|
7304
7377
|
fn();
|
|
7305
|
-
|
|
7306
|
-
|
|
7378
|
+
let final = prop === void 0 || prop === null ? subject() : subject[prop];
|
|
7379
|
+
let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
|
|
7307
7380
|
flag2(this, "deltaMsgObj", msgObj);
|
|
7308
7381
|
flag2(this, "initialDeltaValue", initial);
|
|
7309
7382
|
flag2(this, "finalDeltaValue", final);
|
|
@@ -7311,15 +7384,15 @@ function assertIncreases(subject, prop, msg) {
|
|
|
7311
7384
|
flag2(this, "realDelta", final - initial);
|
|
7312
7385
|
this.assert(final - initial > 0, "expected " + msgObj + " to increase", "expected " + msgObj + " to not increase");
|
|
7313
7386
|
}
|
|
7314
|
-
|
|
7387
|
+
_24WEKBY3_cjs.__name(assertIncreases, "assertIncreases");
|
|
7315
7388
|
__name2(assertIncreases, "assertIncreases");
|
|
7316
7389
|
Assertion.addMethod("increase", assertIncreases);
|
|
7317
7390
|
Assertion.addMethod("increases", assertIncreases);
|
|
7318
7391
|
function assertDecreases(subject, prop, msg) {
|
|
7319
7392
|
if (msg) flag2(this, "message", msg);
|
|
7320
|
-
|
|
7393
|
+
let fn = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
|
|
7321
7394
|
new Assertion(fn, flagMsg, ssfi, true).is.a("function");
|
|
7322
|
-
|
|
7395
|
+
let initial;
|
|
7323
7396
|
if (!prop) {
|
|
7324
7397
|
new Assertion(subject, flagMsg, ssfi, true).is.a("function");
|
|
7325
7398
|
initial = subject();
|
|
@@ -7329,8 +7402,8 @@ function assertDecreases(subject, prop, msg) {
|
|
|
7329
7402
|
}
|
|
7330
7403
|
new Assertion(initial, flagMsg, ssfi, true).is.a("number");
|
|
7331
7404
|
fn();
|
|
7332
|
-
|
|
7333
|
-
|
|
7405
|
+
let final = prop === void 0 || prop === null ? subject() : subject[prop];
|
|
7406
|
+
let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
|
|
7334
7407
|
flag2(this, "deltaMsgObj", msgObj);
|
|
7335
7408
|
flag2(this, "initialDeltaValue", initial);
|
|
7336
7409
|
flag2(this, "finalDeltaValue", final);
|
|
@@ -7338,18 +7411,18 @@ function assertDecreases(subject, prop, msg) {
|
|
|
7338
7411
|
flag2(this, "realDelta", initial - final);
|
|
7339
7412
|
this.assert(final - initial < 0, "expected " + msgObj + " to decrease", "expected " + msgObj + " to not decrease");
|
|
7340
7413
|
}
|
|
7341
|
-
|
|
7414
|
+
_24WEKBY3_cjs.__name(assertDecreases, "assertDecreases");
|
|
7342
7415
|
__name2(assertDecreases, "assertDecreases");
|
|
7343
7416
|
Assertion.addMethod("decrease", assertDecreases);
|
|
7344
7417
|
Assertion.addMethod("decreases", assertDecreases);
|
|
7345
7418
|
function assertDelta(delta, msg) {
|
|
7346
7419
|
if (msg) flag2(this, "message", msg);
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7420
|
+
let msgObj = flag2(this, "deltaMsgObj");
|
|
7421
|
+
let initial = flag2(this, "initialDeltaValue");
|
|
7422
|
+
let final = flag2(this, "finalDeltaValue");
|
|
7423
|
+
let behavior = flag2(this, "deltaBehavior");
|
|
7424
|
+
let realDelta = flag2(this, "realDelta");
|
|
7425
|
+
let expression;
|
|
7353
7426
|
if (behavior === "change") {
|
|
7354
7427
|
expression = Math.abs(final - initial) === Math.abs(delta);
|
|
7355
7428
|
} else {
|
|
@@ -7357,26 +7430,26 @@ function assertDelta(delta, msg) {
|
|
|
7357
7430
|
}
|
|
7358
7431
|
this.assert(expression, "expected " + msgObj + " to " + behavior + " by " + delta, "expected " + msgObj + " to not " + behavior + " by " + delta);
|
|
7359
7432
|
}
|
|
7360
|
-
|
|
7433
|
+
_24WEKBY3_cjs.__name(assertDelta, "assertDelta");
|
|
7361
7434
|
__name2(assertDelta, "assertDelta");
|
|
7362
7435
|
Assertion.addMethod("by", assertDelta);
|
|
7363
7436
|
Assertion.addProperty("extensible", function() {
|
|
7364
|
-
|
|
7365
|
-
|
|
7437
|
+
let obj = flag2(this, "object");
|
|
7438
|
+
let isExtensible = obj === Object(obj) && Object.isExtensible(obj);
|
|
7366
7439
|
this.assert(isExtensible, "expected #{this} to be extensible", "expected #{this} to not be extensible");
|
|
7367
7440
|
});
|
|
7368
7441
|
Assertion.addProperty("sealed", function() {
|
|
7369
|
-
|
|
7370
|
-
|
|
7442
|
+
let obj = flag2(this, "object");
|
|
7443
|
+
let isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;
|
|
7371
7444
|
this.assert(isSealed, "expected #{this} to be sealed", "expected #{this} to not be sealed");
|
|
7372
7445
|
});
|
|
7373
7446
|
Assertion.addProperty("frozen", function() {
|
|
7374
|
-
|
|
7375
|
-
|
|
7447
|
+
let obj = flag2(this, "object");
|
|
7448
|
+
let isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;
|
|
7376
7449
|
this.assert(isFrozen, "expected #{this} to be frozen", "expected #{this} to not be frozen");
|
|
7377
7450
|
});
|
|
7378
7451
|
Assertion.addProperty("finite", function(_msg) {
|
|
7379
|
-
|
|
7452
|
+
let obj = flag2(this, "object");
|
|
7380
7453
|
this.assert(typeof obj === "number" && isFinite(obj), "expected #{this} to be a finite number", "expected #{this} to not be a finite number");
|
|
7381
7454
|
});
|
|
7382
7455
|
function compareSubset(expected, actual) {
|
|
@@ -7410,8 +7483,8 @@ function compareSubset(expected, actual) {
|
|
|
7410
7483
|
}
|
|
7411
7484
|
}
|
|
7412
7485
|
return Object.keys(expected).every(function(key) {
|
|
7413
|
-
|
|
7414
|
-
|
|
7486
|
+
let expectedValue = expected[key];
|
|
7487
|
+
let actualValue = actual[key];
|
|
7415
7488
|
if (typeof expectedValue === "object" && expectedValue !== null && actualValue !== null) {
|
|
7416
7489
|
return compareSubset(expectedValue, actualValue);
|
|
7417
7490
|
}
|
|
@@ -7421,7 +7494,7 @@ function compareSubset(expected, actual) {
|
|
|
7421
7494
|
return actualValue === expectedValue;
|
|
7422
7495
|
});
|
|
7423
7496
|
}
|
|
7424
|
-
|
|
7497
|
+
_24WEKBY3_cjs.__name(compareSubset, "compareSubset");
|
|
7425
7498
|
__name2(compareSubset, "compareSubset");
|
|
7426
7499
|
Assertion.addMethod("containSubset", function(expected) {
|
|
7427
7500
|
const actual = flag(this, "object");
|
|
@@ -7431,7 +7504,7 @@ Assertion.addMethod("containSubset", function(expected) {
|
|
|
7431
7504
|
function expect(val, message) {
|
|
7432
7505
|
return new Assertion(val, message);
|
|
7433
7506
|
}
|
|
7434
|
-
|
|
7507
|
+
_24WEKBY3_cjs.__name(expect, "expect");
|
|
7435
7508
|
__name2(expect, "expect");
|
|
7436
7509
|
expect.fail = function(actual, expected, message, operator) {
|
|
7437
7510
|
if (arguments.length < 2) {
|
|
@@ -7447,8 +7520,8 @@ expect.fail = function(actual, expected, message, operator) {
|
|
|
7447
7520
|
};
|
|
7448
7521
|
var should_exports = {};
|
|
7449
7522
|
__export(should_exports, {
|
|
7450
|
-
Should: /* @__PURE__ */
|
|
7451
|
-
should: /* @__PURE__ */
|
|
7523
|
+
Should: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => Should, "Should"),
|
|
7524
|
+
should: /* @__PURE__ */ _24WEKBY3_cjs.__name(() => should, "should")
|
|
7452
7525
|
});
|
|
7453
7526
|
function loadShould() {
|
|
7454
7527
|
function shouldGetter() {
|
|
@@ -7457,7 +7530,7 @@ function loadShould() {
|
|
|
7457
7530
|
}
|
|
7458
7531
|
return new Assertion(this, null, shouldGetter);
|
|
7459
7532
|
}
|
|
7460
|
-
|
|
7533
|
+
_24WEKBY3_cjs.__name(shouldGetter, "shouldGetter");
|
|
7461
7534
|
__name2(shouldGetter, "shouldGetter");
|
|
7462
7535
|
function shouldSetter(value) {
|
|
7463
7536
|
Object.defineProperty(this, "should", {
|
|
@@ -7467,14 +7540,14 @@ function loadShould() {
|
|
|
7467
7540
|
writable: true
|
|
7468
7541
|
});
|
|
7469
7542
|
}
|
|
7470
|
-
|
|
7543
|
+
_24WEKBY3_cjs.__name(shouldSetter, "shouldSetter");
|
|
7471
7544
|
__name2(shouldSetter, "shouldSetter");
|
|
7472
7545
|
Object.defineProperty(Object.prototype, "should", {
|
|
7473
7546
|
set: shouldSetter,
|
|
7474
7547
|
get: shouldGetter,
|
|
7475
7548
|
configurable: true
|
|
7476
7549
|
});
|
|
7477
|
-
|
|
7550
|
+
let should2 = {};
|
|
7478
7551
|
should2.fail = function(actual, expected, message, operator) {
|
|
7479
7552
|
if (arguments.length < 2) {
|
|
7480
7553
|
message = actual;
|
|
@@ -7510,15 +7583,15 @@ function loadShould() {
|
|
|
7510
7583
|
should2.not["throw"] = should2.not["Throw"];
|
|
7511
7584
|
return should2;
|
|
7512
7585
|
}
|
|
7513
|
-
|
|
7586
|
+
_24WEKBY3_cjs.__name(loadShould, "loadShould");
|
|
7514
7587
|
__name2(loadShould, "loadShould");
|
|
7515
7588
|
var should = loadShould;
|
|
7516
7589
|
var Should = loadShould;
|
|
7517
7590
|
function assert2(express, errmsg) {
|
|
7518
|
-
|
|
7591
|
+
let test22 = new Assertion(null, null, assert2, true);
|
|
7519
7592
|
test22.assert(express, errmsg, "[ negation message unavailable ]");
|
|
7520
7593
|
}
|
|
7521
|
-
|
|
7594
|
+
_24WEKBY3_cjs.__name(assert2, "assert");
|
|
7522
7595
|
__name2(assert2, "assert");
|
|
7523
7596
|
assert2.fail = function(actual, expected, message, operator) {
|
|
7524
7597
|
if (arguments.length < 2) {
|
|
@@ -7539,11 +7612,11 @@ assert2.isNotOk = function(val, msg) {
|
|
|
7539
7612
|
new Assertion(val, msg, assert2.isNotOk, true).is.not.ok;
|
|
7540
7613
|
};
|
|
7541
7614
|
assert2.equal = function(act, exp, msg) {
|
|
7542
|
-
|
|
7615
|
+
let test22 = new Assertion(act, msg, assert2.equal, true);
|
|
7543
7616
|
test22.assert(exp == flag(test22, "object"), "expected #{this} to equal #{exp}", "expected #{this} to not equal #{act}", exp, act, true);
|
|
7544
7617
|
};
|
|
7545
7618
|
assert2.notEqual = function(act, exp, msg) {
|
|
7546
|
-
|
|
7619
|
+
let test22 = new Assertion(act, msg, assert2.notEqual, true);
|
|
7547
7620
|
test22.assert(exp != flag(test22, "object"), "expected #{this} to not equal #{exp}", "expected #{this} to equal #{act}", exp, act, true);
|
|
7548
7621
|
};
|
|
7549
7622
|
assert2.strictEqual = function(act, exp, msg) {
|
|
@@ -7797,7 +7870,7 @@ assert2.throws = function(fn, errorLike, errMsgMatcher, msg) {
|
|
|
7797
7870
|
errMsgMatcher = errorLike;
|
|
7798
7871
|
errorLike = null;
|
|
7799
7872
|
}
|
|
7800
|
-
|
|
7873
|
+
let assertErr = new Assertion(fn, msg, assert2.throws, true).to.throw(errorLike, errMsgMatcher);
|
|
7801
7874
|
return flag(assertErr, "object");
|
|
7802
7875
|
};
|
|
7803
7876
|
assert2.doesNotThrow = function(fn, errorLike, errMsgMatcher, message) {
|
|
@@ -7808,7 +7881,7 @@ assert2.doesNotThrow = function(fn, errorLike, errMsgMatcher, message) {
|
|
|
7808
7881
|
new Assertion(fn, message, assert2.doesNotThrow, true).to.not.throw(errorLike, errMsgMatcher);
|
|
7809
7882
|
};
|
|
7810
7883
|
assert2.operator = function(val, operator, val2, msg) {
|
|
7811
|
-
|
|
7884
|
+
let ok;
|
|
7812
7885
|
switch (operator) {
|
|
7813
7886
|
case "==":
|
|
7814
7887
|
ok = val == val2;
|
|
@@ -7838,7 +7911,7 @@ assert2.operator = function(val, operator, val2, msg) {
|
|
|
7838
7911
|
msg = msg ? msg + ": " : msg;
|
|
7839
7912
|
throw new AssertionError(msg + 'Invalid operator "' + operator + '"', void 0, assert2.operator);
|
|
7840
7913
|
}
|
|
7841
|
-
|
|
7914
|
+
let test22 = new Assertion(ok, msg, assert2.operator, true);
|
|
7842
7915
|
test22.assert(true === flag(test22, "object"), "expected " + inspect22(val) + " to be " + operator + " " + inspect22(val2), "expected " + inspect22(val) + " to not be " + operator + " " + inspect22(val2));
|
|
7843
7916
|
};
|
|
7844
7917
|
assert2.closeTo = function(act, exp, delta, msg) {
|
|
@@ -7913,7 +7986,7 @@ assert2.changes = function(fn, obj, prop, msg) {
|
|
|
7913
7986
|
};
|
|
7914
7987
|
assert2.changesBy = function(fn, obj, prop, delta, msg) {
|
|
7915
7988
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
7916
|
-
|
|
7989
|
+
let tmpMsg = delta;
|
|
7917
7990
|
delta = prop;
|
|
7918
7991
|
msg = tmpMsg;
|
|
7919
7992
|
} else if (arguments.length === 3) {
|
|
@@ -7931,7 +8004,7 @@ assert2.doesNotChange = function(fn, obj, prop, msg) {
|
|
|
7931
8004
|
};
|
|
7932
8005
|
assert2.changesButNotBy = function(fn, obj, prop, delta, msg) {
|
|
7933
8006
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
7934
|
-
|
|
8007
|
+
let tmpMsg = delta;
|
|
7935
8008
|
delta = prop;
|
|
7936
8009
|
msg = tmpMsg;
|
|
7937
8010
|
} else if (arguments.length === 3) {
|
|
@@ -7949,7 +8022,7 @@ assert2.increases = function(fn, obj, prop, msg) {
|
|
|
7949
8022
|
};
|
|
7950
8023
|
assert2.increasesBy = function(fn, obj, prop, delta, msg) {
|
|
7951
8024
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
7952
|
-
|
|
8025
|
+
let tmpMsg = delta;
|
|
7953
8026
|
delta = prop;
|
|
7954
8027
|
msg = tmpMsg;
|
|
7955
8028
|
} else if (arguments.length === 3) {
|
|
@@ -7967,7 +8040,7 @@ assert2.doesNotIncrease = function(fn, obj, prop, msg) {
|
|
|
7967
8040
|
};
|
|
7968
8041
|
assert2.increasesButNotBy = function(fn, obj, prop, delta, msg) {
|
|
7969
8042
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
7970
|
-
|
|
8043
|
+
let tmpMsg = delta;
|
|
7971
8044
|
delta = prop;
|
|
7972
8045
|
msg = tmpMsg;
|
|
7973
8046
|
} else if (arguments.length === 3) {
|
|
@@ -7985,7 +8058,7 @@ assert2.decreases = function(fn, obj, prop, msg) {
|
|
|
7985
8058
|
};
|
|
7986
8059
|
assert2.decreasesBy = function(fn, obj, prop, delta, msg) {
|
|
7987
8060
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
7988
|
-
|
|
8061
|
+
let tmpMsg = delta;
|
|
7989
8062
|
delta = prop;
|
|
7990
8063
|
msg = tmpMsg;
|
|
7991
8064
|
} else if (arguments.length === 3) {
|
|
@@ -8003,7 +8076,7 @@ assert2.doesNotDecrease = function(fn, obj, prop, msg) {
|
|
|
8003
8076
|
};
|
|
8004
8077
|
assert2.doesNotDecreaseBy = function(fn, obj, prop, delta, msg) {
|
|
8005
8078
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
8006
|
-
|
|
8079
|
+
let tmpMsg = delta;
|
|
8007
8080
|
delta = prop;
|
|
8008
8081
|
msg = tmpMsg;
|
|
8009
8082
|
} else if (arguments.length === 3) {
|
|
@@ -8014,7 +8087,7 @@ assert2.doesNotDecreaseBy = function(fn, obj, prop, delta, msg) {
|
|
|
8014
8087
|
};
|
|
8015
8088
|
assert2.decreasesButNotBy = function(fn, obj, prop, delta, msg) {
|
|
8016
8089
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
8017
|
-
|
|
8090
|
+
let tmpMsg = delta;
|
|
8018
8091
|
delta = prop;
|
|
8019
8092
|
msg = tmpMsg;
|
|
8020
8093
|
} else if (arguments.length === 3) {
|
|
@@ -8125,7 +8198,7 @@ for (const [name, as] of aliases) {
|
|
|
8125
8198
|
}
|
|
8126
8199
|
var used = [];
|
|
8127
8200
|
function use(fn) {
|
|
8128
|
-
const exports = {
|
|
8201
|
+
const exports$1 = {
|
|
8129
8202
|
use,
|
|
8130
8203
|
AssertionError,
|
|
8131
8204
|
util: utils_exports,
|
|
@@ -8136,19 +8209,19 @@ function use(fn) {
|
|
|
8136
8209
|
...should_exports
|
|
8137
8210
|
};
|
|
8138
8211
|
if (!~used.indexOf(fn)) {
|
|
8139
|
-
fn(exports, utils_exports);
|
|
8212
|
+
fn(exports$1, utils_exports);
|
|
8140
8213
|
used.push(fn);
|
|
8141
8214
|
}
|
|
8142
|
-
return exports;
|
|
8215
|
+
return exports$1;
|
|
8143
8216
|
}
|
|
8144
|
-
|
|
8217
|
+
_24WEKBY3_cjs.__name(use, "use");
|
|
8145
8218
|
__name2(use, "use");
|
|
8146
8219
|
|
|
8147
|
-
// ../../node_modules/.pnpm/@vitest+runner@3.2.
|
|
8148
|
-
|
|
8220
|
+
// ../../node_modules/.pnpm/@vitest+runner@3.2.4/node_modules/@vitest/runner/dist/utils.js
|
|
8221
|
+
_24WEKBY3_cjs.init_cjs_shims();
|
|
8149
8222
|
|
|
8150
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
8151
|
-
var import_expect_type =
|
|
8223
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@22.19.1_jiti@2.6.1_lightningcss@1.30.1_terser@5.44.1_tsx@4.20.6_yaml@2.8.1/node_modules/vitest/dist/index.js
|
|
8224
|
+
var import_expect_type = _24WEKBY3_cjs.__toESM(require_dist(), 1);
|
|
8152
8225
|
/*! Bundled license information:
|
|
8153
8226
|
|
|
8154
8227
|
@vitest/pretty-format/dist/index.js:
|
|
@@ -8189,7 +8262,7 @@ var import_expect_type = U7VZULNU_cjs.__toESM(require_dist(), 1);
|
|
|
8189
8262
|
* LICENSE file in the root directory of this source tree.
|
|
8190
8263
|
*)
|
|
8191
8264
|
|
|
8192
|
-
chai/
|
|
8265
|
+
chai/index.js:
|
|
8193
8266
|
(*!
|
|
8194
8267
|
* Chai - flag utility
|
|
8195
8268
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
@@ -8434,5 +8507,5 @@ chai/chai.js:
|
|
|
8434
8507
|
|
|
8435
8508
|
exports.import_expect_type = import_expect_type;
|
|
8436
8509
|
exports.test = test2;
|
|
8437
|
-
//# sourceMappingURL=
|
|
8438
|
-
//# sourceMappingURL=
|
|
8510
|
+
//# sourceMappingURL=7BSTQVJO.cjs.map
|
|
8511
|
+
//# sourceMappingURL=7BSTQVJO.cjs.map
|