@fairfox/polly 0.91.0 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/polly.js +3 -3
- package/dist/cli/polly.js.map +3 -3
- package/dist/gallery/gallery.css +2 -2
- package/dist/gallery/gallery.js +248 -241
- package/dist/src/background/index.js +27 -11
- package/dist/src/background/index.js.map +2 -2
- package/dist/src/background/message-router.js +27 -11
- package/dist/src/background/message-router.js.map +2 -2
- package/dist/src/client/index.js +56 -56
- package/dist/src/client/index.js.map +4 -4
- package/dist/src/elysia/index.js +6 -6
- package/dist/src/elysia/index.js.map +3 -3
- package/dist/src/index.js +27 -11
- package/dist/src/index.js.map +2 -2
- package/dist/src/mesh.js +2 -2
- package/dist/src/mesh.js.map +3 -3
- package/dist/src/peer.js +6 -6
- package/dist/src/peer.js.map +3 -3
- package/dist/src/polly-ui/index.css +2 -2
- package/dist/src/polly-ui/markdown.js +1844 -1010
- package/dist/src/polly-ui/markdown.js.map +5 -5
- package/dist/src/polly-ui/styles.css +2 -2
- package/dist/src/shared/adapters/index.js +27 -11
- package/dist/src/shared/adapters/index.js.map +2 -2
- package/dist/src/shared/lib/context-helpers.js +27 -11
- package/dist/src/shared/lib/context-helpers.js.map +2 -2
- package/dist/src/shared/lib/message-bus.js +27 -11
- package/dist/src/shared/lib/message-bus.js.map +2 -2
- package/dist/src/shared/lib/resource.js +17 -1
- package/dist/src/shared/lib/resource.js.map +2 -2
- package/dist/src/shared/lib/state.js +17 -1
- package/dist/src/shared/lib/state.js.map +2 -2
- package/dist/src/shared/state/app-state.js +17 -1
- package/dist/src/shared/state/app-state.js.map +2 -2
- package/dist/tools/bdd/src/cli.js +20 -2
- package/dist/tools/bdd/src/cli.js.map +4 -4
- package/dist/tools/bdd/src/index.js +20 -2
- package/dist/tools/bdd/src/index.js.map +3 -3
- package/dist/tools/init/templates/pwa/package.json.template +2 -3
- package/dist/tools/mutate/src/args.d.ts +25 -3
- package/dist/tools/mutate/src/cli.js +3234 -312
- package/dist/tools/mutate/src/cli.js.map +32 -12
- package/dist/tools/mutate/src/config.d.ts +13 -2
- package/dist/tools/mutate/src/define.d.ts +76 -0
- package/dist/tools/mutate/src/engine/ast.d.ts +13 -0
- package/dist/tools/mutate/src/engine/baseline.d.ts +20 -0
- package/dist/tools/mutate/src/engine/cache.d.ts +32 -0
- package/dist/tools/mutate/src/engine/coverage.d.ts +60 -0
- package/dist/tools/mutate/src/engine/generate.d.ts +23 -0
- package/dist/tools/mutate/src/engine/graph.d.ts +11 -0
- package/dist/tools/mutate/src/engine/index.d.ts +16 -0
- package/dist/tools/mutate/src/engine/junit.d.ts +38 -0
- package/dist/tools/mutate/src/engine/operators.d.ts +14 -0
- package/dist/tools/mutate/src/engine/preload.d.ts +10 -0
- package/dist/tools/mutate/src/engine/preload.js +180 -0
- package/dist/tools/mutate/src/engine/preload.js.map +10 -0
- package/dist/tools/mutate/src/engine/probes.d.ts +12 -0
- package/dist/tools/mutate/src/engine/report-writer.d.ts +44 -0
- package/dist/tools/mutate/src/engine/runner.d.ts +31 -0
- package/dist/tools/mutate/src/engine/stray-writes.d.ts +25 -0
- package/dist/tools/mutate/src/engine/typecheck.d.ts +37 -0
- package/dist/tools/mutate/src/engine/types.d.ts +191 -0
- package/dist/tools/mutate/src/engine/verify-callsites.d.ts +9 -0
- package/dist/tools/mutate/src/engine/workdir.d.ts +16 -0
- package/dist/tools/mutate/src/engine-config.d.ts +7 -0
- package/dist/tools/mutate/src/index.d.ts +7 -3
- package/dist/tools/mutate/src/index.js +2701 -77
- package/dist/tools/mutate/src/index.js.map +26 -7
- package/dist/tools/mutate/src/ingest.d.ts +30 -1
- package/dist/tools/mutate/src/init.d.ts +2 -1
- package/dist/tools/mutate/src/migrate.d.ts +32 -0
- package/dist/tools/mutate/src/report.d.ts +3 -0
- package/dist/tools/mutate/src/run.d.ts +17 -8
- package/dist/tools/mutate/src/verify-matrix.d.ts +12 -15
- package/dist/tools/quality/src/cli.js +9 -9
- package/dist/tools/quality/src/cli.js.map +4 -4
- package/dist/tools/quality/src/index.js +9 -9
- package/dist/tools/quality/src/index.js.map +4 -4
- package/dist/tools/quality/src/no-tautology-ensures.d.ts +2 -2
- package/dist/tools/quality/src/plugins/import-checks.d.ts +1 -1
- package/dist/tools/test/src/adapters/index.js +3 -2
- package/dist/tools/test/src/adapters/index.js.map +3 -3
- package/dist/tools/test/src/coverage-policy/cli.d.ts +2 -2
- package/dist/tools/test/src/coverage-policy/cli.js +217 -17
- package/dist/tools/test/src/coverage-policy/cli.js.map +7 -5
- package/dist/tools/test/src/coverage-policy/index.d.ts +1 -1
- package/dist/tools/test/src/coverage-policy/index.js +213 -12
- package/dist/tools/test/src/coverage-policy/index.js.map +7 -5
- package/dist/tools/test/src/coverage-policy/mutate-targets.d.ts +29 -12
- package/dist/tools/test/src/e2e-mesh/index.js +6 -6
- package/dist/tools/test/src/e2e-mesh/index.js.map +4 -4
- package/dist/tools/test/src/e2e-relay/index.js +230 -226
- package/dist/tools/test/src/e2e-relay/index.js.map +7 -7
- package/dist/tools/test/src/index.js +3 -2
- package/dist/tools/test/src/index.js.map +3 -3
- package/dist/tools/test/src/visual/index.js +684 -511
- package/dist/tools/test/src/visual/index.js.map +11 -11
- package/dist/tools/verify/src/cli.js +2 -2
- package/dist/tools/verify/src/cli.js.map +3 -3
- package/dist/tools/verify/src/config.d.ts +1 -1
- package/dist/tools/verify/src/config.js +68 -3
- package/dist/tools/verify/src/config.js.map +4 -4
- package/dist/tools/verify/src/primitives/index.d.ts +34 -0
- package/package.json +29 -39
- package/dist/tools/verify/src/stryker/index.d.ts +0 -32
- package/dist/tools/verify/src/stryker/index.js +0 -86
- package/dist/tools/verify/src/stryker/index.js.map +0 -10
|
@@ -114,12 +114,12 @@ function format(f, ...args) {
|
|
|
114
114
|
objects.push(inspect(args[i]));
|
|
115
115
|
return objects.join(" ");
|
|
116
116
|
}
|
|
117
|
-
var i = 0, len = args.length, str = String(f).replace(formatRegExp, function(
|
|
118
|
-
if (
|
|
117
|
+
var i = 0, len = args.length, str = String(f).replace(formatRegExp, function(x) {
|
|
118
|
+
if (x === "%%")
|
|
119
119
|
return "%";
|
|
120
120
|
if (i >= len)
|
|
121
|
-
return
|
|
122
|
-
switch (
|
|
121
|
+
return x;
|
|
122
|
+
switch (x) {
|
|
123
123
|
case "%s":
|
|
124
124
|
return String(args[i++]);
|
|
125
125
|
case "%d":
|
|
@@ -131,7 +131,7 @@ function format(f, ...args) {
|
|
|
131
131
|
return "[Circular]";
|
|
132
132
|
}
|
|
133
133
|
default:
|
|
134
|
-
return
|
|
134
|
+
return x;
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
for (var x = args[i];i < len; x = args[++i])
|
|
@@ -405,8 +405,8 @@ function callbackify(original) {
|
|
|
405
405
|
var maybeCb = args.pop();
|
|
406
406
|
if (typeof maybeCb !== "function")
|
|
407
407
|
throw TypeError("The last argument must be of type Function");
|
|
408
|
-
var self = this, cb = function(...
|
|
409
|
-
return maybeCb.apply(self, ...
|
|
408
|
+
var self = this, cb = function(...args) {
|
|
409
|
+
return maybeCb.apply(self, ...args);
|
|
410
410
|
};
|
|
411
411
|
original.apply(this, args).then(function(ret) {
|
|
412
412
|
process.nextTick(cb.bind(null, null, ret));
|
|
@@ -503,26 +503,26 @@ __export(exports_buffer, {
|
|
|
503
503
|
transcode: () => transcode
|
|
504
504
|
});
|
|
505
505
|
function getLens(b64) {
|
|
506
|
-
var
|
|
507
|
-
if (
|
|
506
|
+
var len = b64.length;
|
|
507
|
+
if (len % 4 > 0)
|
|
508
508
|
throw Error("Invalid string. Length must be a multiple of 4");
|
|
509
509
|
var validLen = b64.indexOf("=");
|
|
510
510
|
if (validLen === -1)
|
|
511
|
-
validLen =
|
|
512
|
-
var placeHoldersLen = validLen ===
|
|
511
|
+
validLen = len;
|
|
512
|
+
var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
|
|
513
513
|
return [validLen, placeHoldersLen];
|
|
514
514
|
}
|
|
515
515
|
function _byteLength(validLen, placeHoldersLen) {
|
|
516
516
|
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
517
517
|
}
|
|
518
518
|
function toByteArray(b64) {
|
|
519
|
-
var tmp, lens = getLens(b64), validLen = lens[0], placeHoldersLen = lens[1], arr = new Uint8Array(_byteLength(validLen, placeHoldersLen)), curByte = 0,
|
|
520
|
-
for (
|
|
521
|
-
tmp = revLookup[b64.charCodeAt(
|
|
519
|
+
var tmp, lens = getLens(b64), validLen = lens[0], placeHoldersLen = lens[1], arr = new Uint8Array(_byteLength(validLen, placeHoldersLen)), curByte = 0, len = placeHoldersLen > 0 ? validLen - 4 : validLen, i;
|
|
520
|
+
for (i = 0;i < len; i += 4)
|
|
521
|
+
tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)], arr[curByte++] = tmp >> 16 & 255, arr[curByte++] = tmp >> 8 & 255, arr[curByte++] = tmp & 255;
|
|
522
522
|
if (placeHoldersLen === 2)
|
|
523
|
-
tmp = revLookup[b64.charCodeAt(
|
|
523
|
+
tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4, arr[curByte++] = tmp & 255;
|
|
524
524
|
if (placeHoldersLen === 1)
|
|
525
|
-
tmp = revLookup[b64.charCodeAt(
|
|
525
|
+
tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2, arr[curByte++] = tmp >> 8 & 255, arr[curByte++] = tmp & 255;
|
|
526
526
|
return arr;
|
|
527
527
|
}
|
|
528
528
|
function tripletToBase64(num) {
|
|
@@ -530,27 +530,27 @@ function tripletToBase64(num) {
|
|
|
530
530
|
}
|
|
531
531
|
function encodeChunk(uint8, start, end) {
|
|
532
532
|
var tmp, output = [];
|
|
533
|
-
for (var
|
|
534
|
-
tmp = (uint8[
|
|
533
|
+
for (var i = start;i < end; i += 3)
|
|
534
|
+
tmp = (uint8[i] << 16 & 16711680) + (uint8[i + 1] << 8 & 65280) + (uint8[i + 2] & 255), output.push(tripletToBase64(tmp));
|
|
535
535
|
return output.join("");
|
|
536
536
|
}
|
|
537
537
|
function fromByteArray(uint8) {
|
|
538
|
-
var tmp,
|
|
539
|
-
for (var
|
|
540
|
-
parts.push(encodeChunk(uint8,
|
|
538
|
+
var tmp, len = uint8.length, extraBytes = len % 3, parts = [], maxChunkLength = 16383;
|
|
539
|
+
for (var i = 0, len2 = len - extraBytes;i < len2; i += maxChunkLength)
|
|
540
|
+
parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));
|
|
541
541
|
if (extraBytes === 1)
|
|
542
|
-
tmp = uint8[
|
|
542
|
+
tmp = uint8[len - 1], parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==");
|
|
543
543
|
else if (extraBytes === 2)
|
|
544
|
-
tmp = (uint8[
|
|
544
|
+
tmp = (uint8[len - 2] << 8) + uint8[len - 1], parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=");
|
|
545
545
|
return parts.join("");
|
|
546
546
|
}
|
|
547
547
|
function read(buffer, offset, isLE, mLen, nBytes) {
|
|
548
|
-
var e, m, eLen = nBytes * 8 - mLen - 1, eMax = (1 << eLen) - 1, eBias = eMax >> 1, nBits = -7,
|
|
549
|
-
|
|
550
|
-
for (;nBits > 0; e = e * 256 + buffer[offset +
|
|
548
|
+
var e, m, eLen = nBytes * 8 - mLen - 1, eMax = (1 << eLen) - 1, eBias = eMax >> 1, nBits = -7, i = isLE ? nBytes - 1 : 0, d = isLE ? -1 : 1, s = buffer[offset + i];
|
|
549
|
+
i += d, e = s & (1 << -nBits) - 1, s >>= -nBits, nBits += eLen;
|
|
550
|
+
for (;nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8)
|
|
551
551
|
;
|
|
552
552
|
m = e & (1 << -nBits) - 1, e >>= -nBits, nBits += mLen;
|
|
553
|
-
for (;nBits > 0; m = m * 256 + buffer[offset +
|
|
553
|
+
for (;nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8)
|
|
554
554
|
;
|
|
555
555
|
if (e === 0)
|
|
556
556
|
e = 1 - eBias;
|
|
@@ -561,7 +561,7 @@ function read(buffer, offset, isLE, mLen, nBytes) {
|
|
|
561
561
|
return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
|
|
562
562
|
}
|
|
563
563
|
function write(buffer, value, offset, isLE, mLen, nBytes) {
|
|
564
|
-
var e, m, c, eLen = nBytes * 8 - mLen - 1, eMax = (1 << eLen) - 1, eBias = eMax >> 1, rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
|
|
564
|
+
var e, m, c, eLen = nBytes * 8 - mLen - 1, eMax = (1 << eLen) - 1, eBias = eMax >> 1, rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, i = isLE ? 0 : nBytes - 1, d = isLE ? 1 : -1, s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
|
|
565
565
|
if (value = Math.abs(value), isNaN(value) || value === 1 / 0)
|
|
566
566
|
m = isNaN(value) ? 1 : 0, e = eMax;
|
|
567
567
|
else {
|
|
@@ -580,12 +580,12 @@ function write(buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
580
580
|
else
|
|
581
581
|
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen), e = 0;
|
|
582
582
|
}
|
|
583
|
-
for (;mLen >= 8; buffer[offset +
|
|
583
|
+
for (;mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8)
|
|
584
584
|
;
|
|
585
585
|
e = e << mLen | m, eLen += mLen;
|
|
586
|
-
for (;eLen > 0; buffer[offset +
|
|
586
|
+
for (;eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8)
|
|
587
587
|
;
|
|
588
|
-
buffer[offset +
|
|
588
|
+
buffer[offset + i - d] |= s * 128;
|
|
589
589
|
}
|
|
590
590
|
function createBuffer(length) {
|
|
591
591
|
if (length > kMaxLength)
|
|
@@ -669,8 +669,8 @@ function fromString(string, encoding) {
|
|
|
669
669
|
}
|
|
670
670
|
function fromArrayLike(array) {
|
|
671
671
|
let length = array.length < 0 ? 0 : checked(array.length) | 0, buf = createBuffer(length);
|
|
672
|
-
for (let
|
|
673
|
-
buf[
|
|
672
|
+
for (let i = 0;i < length; i += 1)
|
|
673
|
+
buf[i] = array[i] & 255;
|
|
674
674
|
return buf;
|
|
675
675
|
}
|
|
676
676
|
function fromArrayView(arrayView) {
|
|
@@ -696,10 +696,10 @@ function fromArrayBuffer(array, byteOffset, length) {
|
|
|
696
696
|
}
|
|
697
697
|
function fromObject(obj) {
|
|
698
698
|
if (Buffer2.isBuffer(obj)) {
|
|
699
|
-
let
|
|
699
|
+
let len = checked(obj.length) | 0, buf = createBuffer(len);
|
|
700
700
|
if (buf.length === 0)
|
|
701
701
|
return buf;
|
|
702
|
-
return obj.copy(buf, 0, 0,
|
|
702
|
+
return obj.copy(buf, 0, 0, len), buf;
|
|
703
703
|
}
|
|
704
704
|
if (obj.length !== undefined) {
|
|
705
705
|
if (typeof obj.length !== "number" || Number.isNaN(obj.length))
|
|
@@ -721,8 +721,8 @@ function byteLength(string, encoding) {
|
|
|
721
721
|
return string.byteLength;
|
|
722
722
|
if (typeof string !== "string")
|
|
723
723
|
throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
|
|
724
|
-
let
|
|
725
|
-
if (!mustMatch &&
|
|
724
|
+
let len = string.length, mustMatch = arguments.length > 2 && arguments[2] === true;
|
|
725
|
+
if (!mustMatch && len === 0)
|
|
726
726
|
return 0;
|
|
727
727
|
let loweredCase = false;
|
|
728
728
|
for (;; )
|
|
@@ -730,7 +730,7 @@ function byteLength(string, encoding) {
|
|
|
730
730
|
case "ascii":
|
|
731
731
|
case "latin1":
|
|
732
732
|
case "binary":
|
|
733
|
-
return
|
|
733
|
+
return len;
|
|
734
734
|
case "utf8":
|
|
735
735
|
case "utf-8":
|
|
736
736
|
return utf8ToBytes(string).length;
|
|
@@ -738,9 +738,9 @@ function byteLength(string, encoding) {
|
|
|
738
738
|
case "ucs-2":
|
|
739
739
|
case "utf16le":
|
|
740
740
|
case "utf-16le":
|
|
741
|
-
return
|
|
741
|
+
return len * 2;
|
|
742
742
|
case "hex":
|
|
743
|
-
return
|
|
743
|
+
return len >>> 1;
|
|
744
744
|
case "base64":
|
|
745
745
|
return base64ToBytes(string).length;
|
|
746
746
|
default:
|
|
@@ -789,8 +789,8 @@ function slowToString(encoding, start, end) {
|
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
function swap(b, n, m) {
|
|
792
|
-
let
|
|
793
|
-
b[n] = b[m], b[m] =
|
|
792
|
+
let i = b[n];
|
|
793
|
+
b[n] = b[m], b[m] = i;
|
|
794
794
|
}
|
|
795
795
|
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
|
|
796
796
|
if (buffer.length === 0)
|
|
@@ -840,38 +840,38 @@ function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
|
|
|
840
840
|
indexSize = 2, arrLength /= 2, valLength /= 2, byteOffset /= 2;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function read(buf, i) {
|
|
844
844
|
if (indexSize === 1)
|
|
845
|
-
return buf[
|
|
845
|
+
return buf[i];
|
|
846
846
|
else
|
|
847
|
-
return buf.readUInt16BE(
|
|
847
|
+
return buf.readUInt16BE(i * indexSize);
|
|
848
848
|
}
|
|
849
|
-
let
|
|
849
|
+
let i;
|
|
850
850
|
if (dir) {
|
|
851
851
|
let foundIndex = -1;
|
|
852
|
-
for (
|
|
853
|
-
if (
|
|
852
|
+
for (i = byteOffset;i < arrLength; i++)
|
|
853
|
+
if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
|
|
854
854
|
if (foundIndex === -1)
|
|
855
|
-
foundIndex =
|
|
856
|
-
if (
|
|
855
|
+
foundIndex = i;
|
|
856
|
+
if (i - foundIndex + 1 === valLength)
|
|
857
857
|
return foundIndex * indexSize;
|
|
858
858
|
} else {
|
|
859
859
|
if (foundIndex !== -1)
|
|
860
|
-
|
|
860
|
+
i -= i - foundIndex;
|
|
861
861
|
foundIndex = -1;
|
|
862
862
|
}
|
|
863
863
|
} else {
|
|
864
864
|
if (byteOffset + valLength > arrLength)
|
|
865
865
|
byteOffset = arrLength - valLength;
|
|
866
|
-
for (
|
|
866
|
+
for (i = byteOffset;i >= 0; i--) {
|
|
867
867
|
let found = true;
|
|
868
868
|
for (let j = 0;j < valLength; j++)
|
|
869
|
-
if (
|
|
869
|
+
if (read(arr, i + j) !== read(val, j)) {
|
|
870
870
|
found = false;
|
|
871
871
|
break;
|
|
872
872
|
}
|
|
873
873
|
if (found)
|
|
874
|
-
return
|
|
874
|
+
return i;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
return -1;
|
|
@@ -886,14 +886,14 @@ function hexWrite(buf, string, offset, length) {
|
|
|
886
886
|
let strLen = string.length;
|
|
887
887
|
if (length > strLen / 2)
|
|
888
888
|
length = strLen / 2;
|
|
889
|
-
let
|
|
890
|
-
for (
|
|
891
|
-
let parsed = parseInt(string.substr(
|
|
889
|
+
let i;
|
|
890
|
+
for (i = 0;i < length; ++i) {
|
|
891
|
+
let parsed = parseInt(string.substr(i * 2, 2), 16);
|
|
892
892
|
if (Number.isNaN(parsed))
|
|
893
|
-
return
|
|
894
|
-
buf[offset +
|
|
893
|
+
return i;
|
|
894
|
+
buf[offset + i] = parsed;
|
|
895
895
|
}
|
|
896
|
-
return
|
|
896
|
+
return i;
|
|
897
897
|
}
|
|
898
898
|
function utf8Write(buf, string, offset, length) {
|
|
899
899
|
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
|
|
@@ -915,10 +915,10 @@ function base64Slice(buf, start, end) {
|
|
|
915
915
|
}
|
|
916
916
|
function utf8Slice(buf, start, end) {
|
|
917
917
|
end = Math.min(buf.length, end);
|
|
918
|
-
let res = [],
|
|
919
|
-
while (
|
|
920
|
-
let firstByte = buf[
|
|
921
|
-
if (
|
|
918
|
+
let res = [], i = start;
|
|
919
|
+
while (i < end) {
|
|
920
|
+
let firstByte = buf[i], codePoint = null, bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
|
|
921
|
+
if (i + bytesPerSequence <= end) {
|
|
922
922
|
let secondByte, thirdByte, fourthByte, tempCodePoint;
|
|
923
923
|
switch (bytesPerSequence) {
|
|
924
924
|
case 1:
|
|
@@ -926,19 +926,19 @@ function utf8Slice(buf, start, end) {
|
|
|
926
926
|
codePoint = firstByte;
|
|
927
927
|
break;
|
|
928
928
|
case 2:
|
|
929
|
-
if (secondByte = buf[
|
|
929
|
+
if (secondByte = buf[i + 1], (secondByte & 192) === 128) {
|
|
930
930
|
if (tempCodePoint = (firstByte & 31) << 6 | secondByte & 63, tempCodePoint > 127)
|
|
931
931
|
codePoint = tempCodePoint;
|
|
932
932
|
}
|
|
933
933
|
break;
|
|
934
934
|
case 3:
|
|
935
|
-
if (secondByte = buf[
|
|
935
|
+
if (secondByte = buf[i + 1], thirdByte = buf[i + 2], (secondByte & 192) === 128 && (thirdByte & 192) === 128) {
|
|
936
936
|
if (tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63, tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343))
|
|
937
937
|
codePoint = tempCodePoint;
|
|
938
938
|
}
|
|
939
939
|
break;
|
|
940
940
|
case 4:
|
|
941
|
-
if (secondByte = buf[
|
|
941
|
+
if (secondByte = buf[i + 1], thirdByte = buf[i + 2], fourthByte = buf[i + 3], (secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
|
|
942
942
|
if (tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63, tempCodePoint > 65535 && tempCodePoint < 1114112)
|
|
943
943
|
codePoint = tempCodePoint;
|
|
944
944
|
}
|
|
@@ -948,48 +948,48 @@ function utf8Slice(buf, start, end) {
|
|
|
948
948
|
codePoint = 65533, bytesPerSequence = 1;
|
|
949
949
|
else if (codePoint > 65535)
|
|
950
950
|
codePoint -= 65536, res.push(codePoint >>> 10 & 1023 | 55296), codePoint = 56320 | codePoint & 1023;
|
|
951
|
-
res.push(codePoint),
|
|
951
|
+
res.push(codePoint), i += bytesPerSequence;
|
|
952
952
|
}
|
|
953
953
|
return decodeCodePointsArray(res);
|
|
954
954
|
}
|
|
955
955
|
function decodeCodePointsArray(codePoints) {
|
|
956
|
-
let
|
|
957
|
-
if (
|
|
956
|
+
let len = codePoints.length;
|
|
957
|
+
if (len <= MAX_ARGUMENTS_LENGTH)
|
|
958
958
|
return String.fromCharCode.apply(String, codePoints);
|
|
959
|
-
let res = "",
|
|
960
|
-
while (
|
|
961
|
-
res += String.fromCharCode.apply(String, codePoints.slice(
|
|
959
|
+
let res = "", i = 0;
|
|
960
|
+
while (i < len)
|
|
961
|
+
res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
|
|
962
962
|
return res;
|
|
963
963
|
}
|
|
964
964
|
function asciiSlice(buf, start, end) {
|
|
965
965
|
let ret = "";
|
|
966
966
|
end = Math.min(buf.length, end);
|
|
967
|
-
for (let
|
|
968
|
-
ret += String.fromCharCode(buf[
|
|
967
|
+
for (let i = start;i < end; ++i)
|
|
968
|
+
ret += String.fromCharCode(buf[i] & 127);
|
|
969
969
|
return ret;
|
|
970
970
|
}
|
|
971
971
|
function latin1Slice(buf, start, end) {
|
|
972
972
|
let ret = "";
|
|
973
973
|
end = Math.min(buf.length, end);
|
|
974
|
-
for (let
|
|
975
|
-
ret += String.fromCharCode(buf[
|
|
974
|
+
for (let i = start;i < end; ++i)
|
|
975
|
+
ret += String.fromCharCode(buf[i]);
|
|
976
976
|
return ret;
|
|
977
977
|
}
|
|
978
978
|
function hexSlice(buf, start, end) {
|
|
979
|
-
let
|
|
979
|
+
let len = buf.length;
|
|
980
980
|
if (!start || start < 0)
|
|
981
981
|
start = 0;
|
|
982
|
-
if (!end || end < 0 || end >
|
|
983
|
-
end =
|
|
982
|
+
if (!end || end < 0 || end > len)
|
|
983
|
+
end = len;
|
|
984
984
|
let out = "";
|
|
985
|
-
for (let
|
|
986
|
-
out += hexSliceLookupTable[buf[
|
|
985
|
+
for (let i = start;i < end; ++i)
|
|
986
|
+
out += hexSliceLookupTable[buf[i]];
|
|
987
987
|
return out;
|
|
988
988
|
}
|
|
989
989
|
function utf16leSlice(buf, start, end) {
|
|
990
990
|
let bytes = buf.slice(start, end), res = "";
|
|
991
|
-
for (let
|
|
992
|
-
res += String.fromCharCode(bytes[
|
|
991
|
+
for (let i = 0;i < bytes.length - 1; i += 2)
|
|
992
|
+
res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
|
|
993
993
|
return res;
|
|
994
994
|
}
|
|
995
995
|
function checkOffset(offset, ext, length) {
|
|
@@ -1037,28 +1037,28 @@ function writeDouble(buf, value, offset, littleEndian, noAssert) {
|
|
|
1037
1037
|
return write(buf, value, offset, littleEndian, 52, 8), offset + 8;
|
|
1038
1038
|
}
|
|
1039
1039
|
function addNumericalSeparator(val) {
|
|
1040
|
-
let res = "",
|
|
1041
|
-
for (;
|
|
1042
|
-
res = `_${val.slice(
|
|
1043
|
-
return `${val.slice(0,
|
|
1040
|
+
let res = "", i = val.length, start = val[0] === "-" ? 1 : 0;
|
|
1041
|
+
for (;i >= start + 4; i -= 3)
|
|
1042
|
+
res = `_${val.slice(i - 3, i)}${res}`;
|
|
1043
|
+
return `${val.slice(0, i)}${res}`;
|
|
1044
1044
|
}
|
|
1045
|
-
function checkBounds(buf, offset,
|
|
1046
|
-
if (validateNumber(offset, "offset"), buf[offset] === undefined || buf[offset +
|
|
1047
|
-
boundsError(offset, buf.length - (
|
|
1045
|
+
function checkBounds(buf, offset, byteLength) {
|
|
1046
|
+
if (validateNumber(offset, "offset"), buf[offset] === undefined || buf[offset + byteLength] === undefined)
|
|
1047
|
+
boundsError(offset, buf.length - (byteLength + 1));
|
|
1048
1048
|
}
|
|
1049
|
-
function checkIntBI(value, min, max, buf, offset,
|
|
1049
|
+
function checkIntBI(value, min, max, buf, offset, byteLength) {
|
|
1050
1050
|
if (value > max || value < min) {
|
|
1051
1051
|
let n = typeof min === "bigint" ? "n" : "", range;
|
|
1052
|
-
if (
|
|
1052
|
+
if (byteLength > 3)
|
|
1053
1053
|
if (min === 0 || min === BigInt(0))
|
|
1054
|
-
range = `>= 0${n} and < 2${n} ** ${(
|
|
1054
|
+
range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`;
|
|
1055
1055
|
else
|
|
1056
|
-
range = `>= -(2${n} ** ${(
|
|
1056
|
+
range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength + 1) * 8 - 1}${n}`;
|
|
1057
1057
|
else
|
|
1058
1058
|
range = `>= ${min}${n} and <= ${max}${n}`;
|
|
1059
1059
|
throw new ERR_OUT_OF_RANGE("value", range, value);
|
|
1060
1060
|
}
|
|
1061
|
-
checkBounds(buf, offset,
|
|
1061
|
+
checkBounds(buf, offset, byteLength);
|
|
1062
1062
|
}
|
|
1063
1063
|
function validateNumber(value, name) {
|
|
1064
1064
|
if (typeof value !== "number")
|
|
@@ -1081,14 +1081,14 @@ function base64clean(str) {
|
|
|
1081
1081
|
function utf8ToBytes(string, units) {
|
|
1082
1082
|
units = units || 1 / 0;
|
|
1083
1083
|
let codePoint, length = string.length, leadSurrogate = null, bytes = [];
|
|
1084
|
-
for (let
|
|
1085
|
-
if (codePoint = string.charCodeAt(
|
|
1084
|
+
for (let i = 0;i < length; ++i) {
|
|
1085
|
+
if (codePoint = string.charCodeAt(i), codePoint > 55295 && codePoint < 57344) {
|
|
1086
1086
|
if (!leadSurrogate) {
|
|
1087
1087
|
if (codePoint > 56319) {
|
|
1088
1088
|
if ((units -= 3) > -1)
|
|
1089
1089
|
bytes.push(239, 191, 189);
|
|
1090
1090
|
continue;
|
|
1091
|
-
} else if (
|
|
1091
|
+
} else if (i + 1 === length) {
|
|
1092
1092
|
if ((units -= 3) > -1)
|
|
1093
1093
|
bytes.push(239, 191, 189);
|
|
1094
1094
|
continue;
|
|
@@ -1130,16 +1130,16 @@ function utf8ToBytes(string, units) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
function asciiToBytes(str) {
|
|
1132
1132
|
let byteArray = [];
|
|
1133
|
-
for (let
|
|
1134
|
-
byteArray.push(str.charCodeAt(
|
|
1133
|
+
for (let i = 0;i < str.length; ++i)
|
|
1134
|
+
byteArray.push(str.charCodeAt(i) & 255);
|
|
1135
1135
|
return byteArray;
|
|
1136
1136
|
}
|
|
1137
1137
|
function utf16leToBytes(str, units) {
|
|
1138
1138
|
let c, hi, lo, byteArray = [];
|
|
1139
|
-
for (let
|
|
1139
|
+
for (let i = 0;i < str.length; ++i) {
|
|
1140
1140
|
if ((units -= 2) < 0)
|
|
1141
1141
|
break;
|
|
1142
|
-
c = str.charCodeAt(
|
|
1142
|
+
c = str.charCodeAt(i), hi = c >> 8, lo = c % 256, byteArray.push(lo), byteArray.push(hi);
|
|
1143
1143
|
}
|
|
1144
1144
|
return byteArray;
|
|
1145
1145
|
}
|
|
@@ -1147,13 +1147,13 @@ function base64ToBytes(str) {
|
|
|
1147
1147
|
return toByteArray(base64clean(str));
|
|
1148
1148
|
}
|
|
1149
1149
|
function blitBuffer(src, dst, offset, length) {
|
|
1150
|
-
let
|
|
1151
|
-
for (
|
|
1152
|
-
if (
|
|
1150
|
+
let i;
|
|
1151
|
+
for (i = 0;i < length; ++i) {
|
|
1152
|
+
if (i + offset >= dst.length || i >= src.length)
|
|
1153
1153
|
break;
|
|
1154
|
-
dst[
|
|
1154
|
+
dst[i + offset] = src[i];
|
|
1155
1155
|
}
|
|
1156
|
-
return
|
|
1156
|
+
return i;
|
|
1157
1157
|
}
|
|
1158
1158
|
function isInstance(obj, type) {
|
|
1159
1159
|
return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
|
|
@@ -1183,10 +1183,7 @@ var init_buffer = __esm(() => {
|
|
|
1183
1183
|
revLookup[45] = 62;
|
|
1184
1184
|
revLookup[95] = 63;
|
|
1185
1185
|
customInspectSymbol = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
1186
|
-
btoa = globalThis
|
|
1187
|
-
atob = globalThis.atob;
|
|
1188
|
-
File = globalThis.File;
|
|
1189
|
-
Blob = globalThis.Blob;
|
|
1186
|
+
({ btoa, atob, File, Blob } = globalThis);
|
|
1190
1187
|
constants = { MAX_LENGTH: kMaxLength, MAX_STRING_LENGTH: kStringMaxLength };
|
|
1191
1188
|
ERR_BUFFER_OUT_OF_BOUNDS = E("ERR_BUFFER_OUT_OF_BOUNDS", function(name) {
|
|
1192
1189
|
if (name)
|
|
@@ -1245,9 +1242,9 @@ var init_buffer = __esm(() => {
|
|
|
1245
1242
|
if (a === b)
|
|
1246
1243
|
return 0;
|
|
1247
1244
|
let x = a.length, y = b.length;
|
|
1248
|
-
for (let
|
|
1249
|
-
if (a[
|
|
1250
|
-
x = a[
|
|
1245
|
+
for (let i = 0, len = Math.min(x, y);i < len; ++i)
|
|
1246
|
+
if (a[i] !== b[i]) {
|
|
1247
|
+
x = a[i], y = b[i];
|
|
1251
1248
|
break;
|
|
1252
1249
|
}
|
|
1253
1250
|
if (x < y)
|
|
@@ -1279,15 +1276,15 @@ var init_buffer = __esm(() => {
|
|
|
1279
1276
|
throw TypeError('"list" argument must be an Array of Buffers');
|
|
1280
1277
|
if (list.length === 0)
|
|
1281
1278
|
return Buffer2.alloc(0);
|
|
1282
|
-
let
|
|
1279
|
+
let i;
|
|
1283
1280
|
if (length === undefined) {
|
|
1284
1281
|
length = 0;
|
|
1285
|
-
for (
|
|
1286
|
-
length += list[
|
|
1282
|
+
for (i = 0;i < list.length; ++i)
|
|
1283
|
+
length += list[i].length;
|
|
1287
1284
|
}
|
|
1288
1285
|
let buffer = Buffer2.allocUnsafe(length), pos = 0;
|
|
1289
|
-
for (
|
|
1290
|
-
let buf = list[
|
|
1286
|
+
for (i = 0;i < list.length; ++i) {
|
|
1287
|
+
let buf = list[i];
|
|
1291
1288
|
if (isInstance(buf, Uint8Array))
|
|
1292
1289
|
if (pos + buf.length > buffer.length) {
|
|
1293
1290
|
if (!Buffer2.isBuffer(buf))
|
|
@@ -1306,27 +1303,27 @@ var init_buffer = __esm(() => {
|
|
|
1306
1303
|
Buffer2.byteLength = byteLength;
|
|
1307
1304
|
Buffer2.prototype._isBuffer = true;
|
|
1308
1305
|
Buffer2.prototype.swap16 = function() {
|
|
1309
|
-
let
|
|
1310
|
-
if (
|
|
1306
|
+
let len = this.length;
|
|
1307
|
+
if (len % 2 !== 0)
|
|
1311
1308
|
throw RangeError("Buffer size must be a multiple of 16-bits");
|
|
1312
|
-
for (let
|
|
1313
|
-
swap(this,
|
|
1309
|
+
for (let i = 0;i < len; i += 2)
|
|
1310
|
+
swap(this, i, i + 1);
|
|
1314
1311
|
return this;
|
|
1315
1312
|
};
|
|
1316
1313
|
Buffer2.prototype.swap32 = function() {
|
|
1317
|
-
let
|
|
1318
|
-
if (
|
|
1314
|
+
let len = this.length;
|
|
1315
|
+
if (len % 4 !== 0)
|
|
1319
1316
|
throw RangeError("Buffer size must be a multiple of 32-bits");
|
|
1320
|
-
for (let
|
|
1321
|
-
swap(this,
|
|
1317
|
+
for (let i = 0;i < len; i += 4)
|
|
1318
|
+
swap(this, i, i + 3), swap(this, i + 1, i + 2);
|
|
1322
1319
|
return this;
|
|
1323
1320
|
};
|
|
1324
1321
|
Buffer2.prototype.swap64 = function() {
|
|
1325
|
-
let
|
|
1326
|
-
if (
|
|
1322
|
+
let len = this.length;
|
|
1323
|
+
if (len % 8 !== 0)
|
|
1327
1324
|
throw RangeError("Buffer size must be a multiple of 64-bits");
|
|
1328
|
-
for (let
|
|
1329
|
-
swap(this,
|
|
1325
|
+
for (let i = 0;i < len; i += 8)
|
|
1326
|
+
swap(this, i, i + 7), swap(this, i + 1, i + 6), swap(this, i + 2, i + 5), swap(this, i + 3, i + 4);
|
|
1330
1327
|
return this;
|
|
1331
1328
|
};
|
|
1332
1329
|
Buffer2.prototype.toString = function() {
|
|
@@ -1376,10 +1373,10 @@ var init_buffer = __esm(() => {
|
|
|
1376
1373
|
return 1;
|
|
1377
1374
|
if (start >>>= 0, end >>>= 0, thisStart >>>= 0, thisEnd >>>= 0, this === target)
|
|
1378
1375
|
return 0;
|
|
1379
|
-
let x = thisEnd - thisStart, y = end - start,
|
|
1380
|
-
for (let
|
|
1381
|
-
if (thisCopy[
|
|
1382
|
-
x = thisCopy[
|
|
1376
|
+
let x = thisEnd - thisStart, y = end - start, len = Math.min(x, y), thisCopy = this.slice(thisStart, thisEnd), targetCopy = target.slice(start, end);
|
|
1377
|
+
for (let i = 0;i < len; ++i)
|
|
1378
|
+
if (thisCopy[i] !== targetCopy[i]) {
|
|
1379
|
+
x = thisCopy[i], y = targetCopy[i];
|
|
1383
1380
|
break;
|
|
1384
1381
|
}
|
|
1385
1382
|
if (x < y)
|
|
@@ -1446,36 +1443,36 @@ var init_buffer = __esm(() => {
|
|
|
1446
1443
|
return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
|
|
1447
1444
|
};
|
|
1448
1445
|
Buffer2.prototype.slice = function(start, end) {
|
|
1449
|
-
let
|
|
1450
|
-
if (start = ~~start, end = end === undefined ?
|
|
1451
|
-
if (start +=
|
|
1446
|
+
let len = this.length;
|
|
1447
|
+
if (start = ~~start, end = end === undefined ? len : ~~end, start < 0) {
|
|
1448
|
+
if (start += len, start < 0)
|
|
1452
1449
|
start = 0;
|
|
1453
|
-
} else if (start >
|
|
1454
|
-
start =
|
|
1450
|
+
} else if (start > len)
|
|
1451
|
+
start = len;
|
|
1455
1452
|
if (end < 0) {
|
|
1456
|
-
if (end +=
|
|
1453
|
+
if (end += len, end < 0)
|
|
1457
1454
|
end = 0;
|
|
1458
|
-
} else if (end >
|
|
1459
|
-
end =
|
|
1455
|
+
} else if (end > len)
|
|
1456
|
+
end = len;
|
|
1460
1457
|
if (end < start)
|
|
1461
1458
|
end = start;
|
|
1462
1459
|
let newBuf = this.subarray(start, end);
|
|
1463
1460
|
return Object.setPrototypeOf(newBuf, Buffer2.prototype), newBuf;
|
|
1464
1461
|
};
|
|
1465
|
-
Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function(offset,
|
|
1466
|
-
if (offset = offset >>> 0,
|
|
1467
|
-
checkOffset(offset,
|
|
1468
|
-
let val = this[offset], mul = 1,
|
|
1469
|
-
while (++
|
|
1470
|
-
val += this[offset +
|
|
1462
|
+
Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function(offset, byteLength, noAssert) {
|
|
1463
|
+
if (offset = offset >>> 0, byteLength = byteLength >>> 0, !noAssert)
|
|
1464
|
+
checkOffset(offset, byteLength, this.length);
|
|
1465
|
+
let val = this[offset], mul = 1, i = 0;
|
|
1466
|
+
while (++i < byteLength && (mul *= 256))
|
|
1467
|
+
val += this[offset + i] * mul;
|
|
1471
1468
|
return val;
|
|
1472
1469
|
};
|
|
1473
|
-
Buffer2.prototype.readUintBE = Buffer2.prototype.readUIntBE = function(offset,
|
|
1474
|
-
if (offset = offset >>> 0,
|
|
1475
|
-
checkOffset(offset,
|
|
1476
|
-
let val = this[offset + --
|
|
1477
|
-
while (
|
|
1478
|
-
val += this[offset + --
|
|
1470
|
+
Buffer2.prototype.readUintBE = Buffer2.prototype.readUIntBE = function(offset, byteLength, noAssert) {
|
|
1471
|
+
if (offset = offset >>> 0, byteLength = byteLength >>> 0, !noAssert)
|
|
1472
|
+
checkOffset(offset, byteLength, this.length);
|
|
1473
|
+
let val = this[offset + --byteLength], mul = 1;
|
|
1474
|
+
while (byteLength > 0 && (mul *= 256))
|
|
1475
|
+
val += this[offset + --byteLength] * mul;
|
|
1479
1476
|
return val;
|
|
1480
1477
|
};
|
|
1481
1478
|
Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = function(offset, noAssert) {
|
|
@@ -1519,24 +1516,24 @@ var init_buffer = __esm(() => {
|
|
|
1519
1516
|
let hi = first * 16777216 + this[++offset] * 65536 + this[++offset] * 256 + this[++offset], lo = this[++offset] * 16777216 + this[++offset] * 65536 + this[++offset] * 256 + last;
|
|
1520
1517
|
return (BigInt(hi) << BigInt(32)) + BigInt(lo);
|
|
1521
1518
|
});
|
|
1522
|
-
Buffer2.prototype.readIntLE = function(offset,
|
|
1523
|
-
if (offset = offset >>> 0,
|
|
1524
|
-
checkOffset(offset,
|
|
1525
|
-
let val = this[offset], mul = 1,
|
|
1526
|
-
while (++
|
|
1527
|
-
val += this[offset +
|
|
1519
|
+
Buffer2.prototype.readIntLE = function(offset, byteLength, noAssert) {
|
|
1520
|
+
if (offset = offset >>> 0, byteLength = byteLength >>> 0, !noAssert)
|
|
1521
|
+
checkOffset(offset, byteLength, this.length);
|
|
1522
|
+
let val = this[offset], mul = 1, i = 0;
|
|
1523
|
+
while (++i < byteLength && (mul *= 256))
|
|
1524
|
+
val += this[offset + i] * mul;
|
|
1528
1525
|
if (mul *= 128, val >= mul)
|
|
1529
|
-
val -= Math.pow(2, 8 *
|
|
1526
|
+
val -= Math.pow(2, 8 * byteLength);
|
|
1530
1527
|
return val;
|
|
1531
1528
|
};
|
|
1532
|
-
Buffer2.prototype.readIntBE = function(offset,
|
|
1533
|
-
if (offset = offset >>> 0,
|
|
1534
|
-
checkOffset(offset,
|
|
1535
|
-
let
|
|
1536
|
-
while (
|
|
1537
|
-
val += this[offset + --
|
|
1529
|
+
Buffer2.prototype.readIntBE = function(offset, byteLength, noAssert) {
|
|
1530
|
+
if (offset = offset >>> 0, byteLength = byteLength >>> 0, !noAssert)
|
|
1531
|
+
checkOffset(offset, byteLength, this.length);
|
|
1532
|
+
let i = byteLength, mul = 1, val = this[offset + --i];
|
|
1533
|
+
while (i > 0 && (mul *= 256))
|
|
1534
|
+
val += this[offset + --i] * mul;
|
|
1538
1535
|
if (mul *= 128, val >= mul)
|
|
1539
|
-
val -= Math.pow(2, 8 *
|
|
1536
|
+
val -= Math.pow(2, 8 * byteLength);
|
|
1540
1537
|
return val;
|
|
1541
1538
|
};
|
|
1542
1539
|
Buffer2.prototype.readInt8 = function(offset, noAssert) {
|
|
@@ -1604,27 +1601,27 @@ var init_buffer = __esm(() => {
|
|
|
1604
1601
|
checkOffset(offset, 8, this.length);
|
|
1605
1602
|
return read(this, offset, false, 52, 8);
|
|
1606
1603
|
};
|
|
1607
|
-
Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function(value, offset,
|
|
1608
|
-
if (value = +value, offset = offset >>> 0,
|
|
1609
|
-
let maxBytes = Math.pow(2, 8 *
|
|
1610
|
-
checkInt(this, value, offset,
|
|
1604
|
+
Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function(value, offset, byteLength, noAssert) {
|
|
1605
|
+
if (value = +value, offset = offset >>> 0, byteLength = byteLength >>> 0, !noAssert) {
|
|
1606
|
+
let maxBytes = Math.pow(2, 8 * byteLength) - 1;
|
|
1607
|
+
checkInt(this, value, offset, byteLength, maxBytes, 0);
|
|
1611
1608
|
}
|
|
1612
|
-
let mul = 1,
|
|
1609
|
+
let mul = 1, i = 0;
|
|
1613
1610
|
this[offset] = value & 255;
|
|
1614
|
-
while (++
|
|
1615
|
-
this[offset +
|
|
1616
|
-
return offset +
|
|
1611
|
+
while (++i < byteLength && (mul *= 256))
|
|
1612
|
+
this[offset + i] = value / mul & 255;
|
|
1613
|
+
return offset + byteLength;
|
|
1617
1614
|
};
|
|
1618
|
-
Buffer2.prototype.writeUintBE = Buffer2.prototype.writeUIntBE = function(value, offset,
|
|
1619
|
-
if (value = +value, offset = offset >>> 0,
|
|
1620
|
-
let maxBytes = Math.pow(2, 8 *
|
|
1621
|
-
checkInt(this, value, offset,
|
|
1615
|
+
Buffer2.prototype.writeUintBE = Buffer2.prototype.writeUIntBE = function(value, offset, byteLength, noAssert) {
|
|
1616
|
+
if (value = +value, offset = offset >>> 0, byteLength = byteLength >>> 0, !noAssert) {
|
|
1617
|
+
let maxBytes = Math.pow(2, 8 * byteLength) - 1;
|
|
1618
|
+
checkInt(this, value, offset, byteLength, maxBytes, 0);
|
|
1622
1619
|
}
|
|
1623
|
-
let
|
|
1624
|
-
this[offset +
|
|
1625
|
-
while (--
|
|
1626
|
-
this[offset +
|
|
1627
|
-
return offset +
|
|
1620
|
+
let i = byteLength - 1, mul = 1;
|
|
1621
|
+
this[offset + i] = value & 255;
|
|
1622
|
+
while (--i >= 0 && (mul *= 256))
|
|
1623
|
+
this[offset + i] = value / mul & 255;
|
|
1624
|
+
return offset + byteLength;
|
|
1628
1625
|
};
|
|
1629
1626
|
Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = function(value, offset, noAssert) {
|
|
1630
1627
|
if (value = +value, offset = offset >>> 0, !noAssert)
|
|
@@ -1657,33 +1654,33 @@ var init_buffer = __esm(() => {
|
|
|
1657
1654
|
Buffer2.prototype.writeBigUInt64BE = defineBigIntMethod(function(value, offset = 0) {
|
|
1658
1655
|
return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1659
1656
|
});
|
|
1660
|
-
Buffer2.prototype.writeIntLE = function(value, offset,
|
|
1657
|
+
Buffer2.prototype.writeIntLE = function(value, offset, byteLength, noAssert) {
|
|
1661
1658
|
if (value = +value, offset = offset >>> 0, !noAssert) {
|
|
1662
|
-
let limit = Math.pow(2, 8 *
|
|
1663
|
-
checkInt(this, value, offset,
|
|
1659
|
+
let limit = Math.pow(2, 8 * byteLength - 1);
|
|
1660
|
+
checkInt(this, value, offset, byteLength, limit - 1, -limit);
|
|
1664
1661
|
}
|
|
1665
|
-
let
|
|
1662
|
+
let i = 0, mul = 1, sub = 0;
|
|
1666
1663
|
this[offset] = value & 255;
|
|
1667
|
-
while (++
|
|
1668
|
-
if (value < 0 && sub === 0 && this[offset +
|
|
1664
|
+
while (++i < byteLength && (mul *= 256)) {
|
|
1665
|
+
if (value < 0 && sub === 0 && this[offset + i - 1] !== 0)
|
|
1669
1666
|
sub = 1;
|
|
1670
|
-
this[offset +
|
|
1667
|
+
this[offset + i] = (value / mul >> 0) - sub & 255;
|
|
1671
1668
|
}
|
|
1672
|
-
return offset +
|
|
1669
|
+
return offset + byteLength;
|
|
1673
1670
|
};
|
|
1674
|
-
Buffer2.prototype.writeIntBE = function(value, offset,
|
|
1671
|
+
Buffer2.prototype.writeIntBE = function(value, offset, byteLength, noAssert) {
|
|
1675
1672
|
if (value = +value, offset = offset >>> 0, !noAssert) {
|
|
1676
|
-
let limit = Math.pow(2, 8 *
|
|
1677
|
-
checkInt(this, value, offset,
|
|
1673
|
+
let limit = Math.pow(2, 8 * byteLength - 1);
|
|
1674
|
+
checkInt(this, value, offset, byteLength, limit - 1, -limit);
|
|
1678
1675
|
}
|
|
1679
|
-
let
|
|
1680
|
-
this[offset +
|
|
1681
|
-
while (--
|
|
1682
|
-
if (value < 0 && sub === 0 && this[offset +
|
|
1676
|
+
let i = byteLength - 1, mul = 1, sub = 0;
|
|
1677
|
+
this[offset + i] = value & 255;
|
|
1678
|
+
while (--i >= 0 && (mul *= 256)) {
|
|
1679
|
+
if (value < 0 && sub === 0 && this[offset + i + 1] !== 0)
|
|
1683
1680
|
sub = 1;
|
|
1684
|
-
this[offset +
|
|
1681
|
+
this[offset + i] = (value / mul >> 0) - sub & 255;
|
|
1685
1682
|
}
|
|
1686
|
-
return offset +
|
|
1683
|
+
return offset + byteLength;
|
|
1687
1684
|
};
|
|
1688
1685
|
Buffer2.prototype.writeInt8 = function(value, offset, noAssert) {
|
|
1689
1686
|
if (value = +value, offset = offset >>> 0, !noAssert)
|
|
@@ -1759,12 +1756,12 @@ var init_buffer = __esm(() => {
|
|
|
1759
1756
|
end = this.length;
|
|
1760
1757
|
if (target.length - targetStart < end - start)
|
|
1761
1758
|
end = target.length - targetStart + start;
|
|
1762
|
-
let
|
|
1759
|
+
let len = end - start;
|
|
1763
1760
|
if (this === target && typeof Uint8Array.prototype.copyWithin === "function")
|
|
1764
1761
|
this.copyWithin(targetStart, start, end);
|
|
1765
1762
|
else
|
|
1766
1763
|
Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
|
|
1767
|
-
return
|
|
1764
|
+
return len;
|
|
1768
1765
|
};
|
|
1769
1766
|
Buffer2.prototype.fill = function(val, start, end, encoding) {
|
|
1770
1767
|
if (typeof val === "string") {
|
|
@@ -1777,9 +1774,9 @@ var init_buffer = __esm(() => {
|
|
|
1777
1774
|
if (typeof encoding === "string" && !Buffer2.isEncoding(encoding))
|
|
1778
1775
|
throw TypeError("Unknown encoding: " + encoding);
|
|
1779
1776
|
if (val.length === 1) {
|
|
1780
|
-
let
|
|
1781
|
-
if (encoding === "utf8" &&
|
|
1782
|
-
val =
|
|
1777
|
+
let code = val.charCodeAt(0);
|
|
1778
|
+
if (encoding === "utf8" && code < 128 || encoding === "latin1")
|
|
1779
|
+
val = code;
|
|
1783
1780
|
}
|
|
1784
1781
|
} else if (typeof val === "number")
|
|
1785
1782
|
val = val & 255;
|
|
@@ -1791,26 +1788,26 @@ var init_buffer = __esm(() => {
|
|
|
1791
1788
|
return this;
|
|
1792
1789
|
if (start = start >>> 0, end = end === undefined ? this.length : end >>> 0, !val)
|
|
1793
1790
|
val = 0;
|
|
1794
|
-
let
|
|
1791
|
+
let i;
|
|
1795
1792
|
if (typeof val === "number")
|
|
1796
|
-
for (
|
|
1797
|
-
this[
|
|
1793
|
+
for (i = start;i < end; ++i)
|
|
1794
|
+
this[i] = val;
|
|
1798
1795
|
else {
|
|
1799
|
-
let bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding),
|
|
1800
|
-
if (
|
|
1796
|
+
let bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding), len = bytes.length;
|
|
1797
|
+
if (len === 0)
|
|
1801
1798
|
throw TypeError('The value "' + val + '" is invalid for argument "value"');
|
|
1802
|
-
for (
|
|
1803
|
-
this[
|
|
1799
|
+
for (i = 0;i < end - start; ++i)
|
|
1800
|
+
this[i + start] = bytes[i % len];
|
|
1804
1801
|
}
|
|
1805
1802
|
return this;
|
|
1806
1803
|
};
|
|
1807
1804
|
INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
|
|
1808
1805
|
hexSliceLookupTable = function() {
|
|
1809
1806
|
let table = Array(256);
|
|
1810
|
-
for (let
|
|
1811
|
-
let i16 =
|
|
1807
|
+
for (let i = 0;i < 16; ++i) {
|
|
1808
|
+
let i16 = i * 16;
|
|
1812
1809
|
for (let j = 0;j < 16; ++j)
|
|
1813
|
-
table[i16 + j] = "0123456789abcdef"[
|
|
1810
|
+
table[i16 + j] = "0123456789abcdef"[i] + "0123456789abcdef"[j];
|
|
1814
1811
|
}
|
|
1815
1812
|
return table;
|
|
1816
1813
|
}();
|
|
@@ -1864,7 +1861,7 @@ function overflowWarning(emitter, type, handlers) {
|
|
|
1864
1861
|
function onceWrapper(type, listener, ...args) {
|
|
1865
1862
|
this.removeListener(type, listener), listener.apply(this, args);
|
|
1866
1863
|
}
|
|
1867
|
-
function
|
|
1864
|
+
function once(emitter, type, options) {
|
|
1868
1865
|
var signal = options?.signal;
|
|
1869
1866
|
if (validateAbortSignal(signal, "options.signal"), signal?.aborted)
|
|
1870
1867
|
throw new AbortError(undefined, { cause: signal?.reason });
|
|
@@ -1892,7 +1889,7 @@ function once2(emitter, type, options) {
|
|
|
1892
1889
|
function getEventListeners(emitter, type) {
|
|
1893
1890
|
return emitter.listeners(type);
|
|
1894
1891
|
}
|
|
1895
|
-
function
|
|
1892
|
+
function setMaxListeners(n, ...eventTargets) {
|
|
1896
1893
|
validateNumber2(n, "setMaxListeners", 0);
|
|
1897
1894
|
var length;
|
|
1898
1895
|
if (eventTargets && (length = eventTargets.length))
|
|
@@ -1901,7 +1898,7 @@ function setMaxListeners2(n, ...eventTargets) {
|
|
|
1901
1898
|
else
|
|
1902
1899
|
defaultMaxListeners = n;
|
|
1903
1900
|
}
|
|
1904
|
-
function
|
|
1901
|
+
function listenerCount(emitter, type) {
|
|
1905
1902
|
return emitter.listenerCount(type);
|
|
1906
1903
|
}
|
|
1907
1904
|
function eventTargetAgnosticRemoveListener(emitter, name, listener, flags) {
|
|
@@ -1945,7 +1942,7 @@ function validateBoolean(value, name) {
|
|
|
1945
1942
|
if (typeof value !== "boolean")
|
|
1946
1943
|
throw ERR_INVALID_ARG_TYPE2(name, "boolean", value);
|
|
1947
1944
|
}
|
|
1948
|
-
function
|
|
1945
|
+
function getMaxListeners(emitterOrTarget) {
|
|
1949
1946
|
return emitterOrTarget?._maxListeners ?? defaultMaxListeners;
|
|
1950
1947
|
}
|
|
1951
1948
|
function addAbortListener(signal, listener) {
|
|
@@ -2177,18 +2174,16 @@ var init_events = __esm(() => {
|
|
|
2177
2174
|
return EventEmitterPrototype[kCapture];
|
|
2178
2175
|
}, set(value) {
|
|
2179
2176
|
validateBoolean(value, "EventEmitter.captureRejections"), EventEmitterPrototype[kCapture] = value;
|
|
2180
|
-
}, enumerable: true }, defaultMaxListeners: { enumerable: true, get: () => {
|
|
2181
|
-
return defaultMaxListeners;
|
|
2182
|
-
}, set: (arg) => {
|
|
2177
|
+
}, enumerable: true }, defaultMaxListeners: { enumerable: true, get: () => defaultMaxListeners, set: (arg) => {
|
|
2183
2178
|
validateNumber2(arg, "defaultMaxListeners", 0), defaultMaxListeners = arg;
|
|
2184
2179
|
} }, kMaxEventTargetListeners: { value: kMaxEventTargetListeners, enumerable: false, configurable: false, writable: false }, kMaxEventTargetListenersWarned: { value: kMaxEventTargetListenersWarned, enumerable: false, configurable: false, writable: false } });
|
|
2185
|
-
Object.assign(EventEmitter, { once
|
|
2180
|
+
Object.assign(EventEmitter, { once, getEventListeners, getMaxListeners, setMaxListeners, EventEmitter, usingDomains: false, captureRejectionSymbol, errorMonitor: kErrorMonitor, addAbortListener, init: EventEmitter, listenerCount });
|
|
2186
2181
|
});
|
|
2187
2182
|
|
|
2188
2183
|
// node:stream
|
|
2189
2184
|
var require_stream = __commonJS(function(exports, module) {
|
|
2190
2185
|
var __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
2191
|
-
var require_primordials = __commonJS2((exports2, module2)
|
|
2186
|
+
var require_primordials = __commonJS2(function(exports2, module2) {
|
|
2192
2187
|
|
|
2193
2188
|
class AggregateError2 extends Error {
|
|
2194
2189
|
constructor(errors) {
|
|
@@ -2254,7 +2249,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
2254
2249
|
return self.set(buf, len);
|
|
2255
2250
|
}, Boolean, Uint8Array };
|
|
2256
2251
|
});
|
|
2257
|
-
var require_inspect = __commonJS2((exports2, module2)
|
|
2252
|
+
var require_inspect = __commonJS2(function(exports2, module2) {
|
|
2258
2253
|
module2.exports = { format(format, ...args) {
|
|
2259
2254
|
return format.replace(/%([sdifj])/g, function(...[_unused, type]) {
|
|
2260
2255
|
let replacement = args.shift();
|
|
@@ -2293,7 +2288,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
2293
2288
|
}
|
|
2294
2289
|
} };
|
|
2295
2290
|
});
|
|
2296
|
-
var require_errors = __commonJS2((exports2, module2)
|
|
2291
|
+
var require_errors = __commonJS2(function(exports2, module2) {
|
|
2297
2292
|
var { format, inspect } = require_inspect(), { AggregateError: CustomAggregateError } = require_primordials(), AggregateError2 = globalThis.AggregateError || CustomAggregateError, kIsNodeError = Symbol("kIsNodeError"), kTypes = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], classRegExp = /^([A-Z][a-z0-9]*)+$/, codes = {};
|
|
2298
2293
|
function assert(value, message) {
|
|
2299
2294
|
if (!value)
|
|
@@ -2500,7 +2495,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
2500
2495
|
E("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError);
|
|
2501
2496
|
module2.exports = { AbortError, aggregateTwoErrors: hideStackFrames(aggregateTwoErrors), hideStackFrames, codes };
|
|
2502
2497
|
});
|
|
2503
|
-
var require_event_target_shim = __commonJS2((exports2, module2)
|
|
2498
|
+
var require_event_target_shim = __commonJS2(function(exports2, module2) {
|
|
2504
2499
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2505
2500
|
var privateData = new WeakMap, wrappers = new WeakMap;
|
|
2506
2501
|
function pd(event) {
|
|
@@ -2786,7 +2781,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
2786
2781
|
module2.exports.EventTarget = module2.exports.default = EventTarget;
|
|
2787
2782
|
module2.exports.defineEventAttribute = defineEventAttribute;
|
|
2788
2783
|
});
|
|
2789
|
-
var require_abort_controller = __commonJS2((exports2, module2)
|
|
2784
|
+
var require_abort_controller = __commonJS2(function(exports2, module2) {
|
|
2790
2785
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2791
2786
|
var eventTargetShim = require_event_target_shim();
|
|
2792
2787
|
|
|
@@ -2845,7 +2840,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
2845
2840
|
module2.exports.AbortController = module2.exports.default = AbortController;
|
|
2846
2841
|
module2.exports.AbortSignal = AbortSignal;
|
|
2847
2842
|
});
|
|
2848
|
-
var require_util = __commonJS2((exports2, module2)
|
|
2843
|
+
var require_util = __commonJS2(function(exports2, module2) {
|
|
2849
2844
|
var bufferModule = (init_buffer(), __toCommonJS(exports_buffer)), { format, inspect } = require_inspect(), { codes: { ERR_INVALID_ARG_TYPE } } = require_errors(), { kResistStopPropagation, AggregateError: AggregateError2, SymbolDispose } = require_primordials(), AbortSignal = globalThis.AbortSignal || require_abort_controller().AbortSignal, AbortController = globalThis.AbortController || require_abort_controller().AbortController, AsyncFunction = Object.getPrototypeOf(async function() {}).constructor, Blob = globalThis.Blob || bufferModule.Blob, isBlob = typeof Blob < "u" ? function(b) {
|
|
2850
2845
|
return b instanceof Blob;
|
|
2851
2846
|
} : function(b) {
|
|
@@ -2912,7 +2907,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
2912
2907
|
} };
|
|
2913
2908
|
module2.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom");
|
|
2914
2909
|
});
|
|
2915
|
-
var require_validators = __commonJS2((exports2, module2)
|
|
2910
|
+
var require_validators = __commonJS2(function(exports2, module2) {
|
|
2916
2911
|
var { ArrayIsArray, ArrayPrototypeIncludes, ArrayPrototypeJoin, ArrayPrototypeMap, NumberIsInteger, NumberIsNaN, NumberMAX_SAFE_INTEGER, NumberMIN_SAFE_INTEGER, NumberParseInt, ObjectPrototypeHasOwnProperty, RegExpPrototypeExec, String: String2, StringPrototypeToUpperCase, StringPrototypeTrim } = require_primordials(), { hideStackFrames, codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL } } = require_errors(), { normalizeEncoding } = require_util(), { isAsyncFunction, isArrayBufferView } = require_util().types, signals = {};
|
|
2917
2912
|
function isInt32(value) {
|
|
2918
2913
|
return value === (value | 0);
|
|
@@ -3072,10 +3067,10 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3072
3067
|
}
|
|
3073
3068
|
module2.exports = { isInt32, isUint32, parseFileMode, validateArray, validateStringArray, validateBooleanArray, validateAbortSignalArray, validateBoolean, validateBuffer, validateDictionary, validateEncoding, validateFunction, validateInt32, validateInteger, validateNumber, validateObject, validateOneOf, validatePlainFunction, validatePort, validateSignalName, validateString, validateUint32, validateUndefined, validateUnion, validateAbortSignal, validateLinkHeaderValue };
|
|
3074
3069
|
});
|
|
3075
|
-
var require_process = __commonJS2((exports2, module2)
|
|
3070
|
+
var require_process = __commonJS2(function(exports2, module2) {
|
|
3076
3071
|
module2.exports = globalThis.process;
|
|
3077
3072
|
});
|
|
3078
|
-
var require_utils = __commonJS2((exports2, module2)
|
|
3073
|
+
var require_utils = __commonJS2(function(exports2, module2) {
|
|
3079
3074
|
var { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials(), kIsDestroyed = SymbolFor("nodejs.stream.destroyed"), kIsErrored = SymbolFor("nodejs.stream.errored"), kIsReadable = SymbolFor("nodejs.stream.readable"), kIsWritable = SymbolFor("nodejs.stream.writable"), kIsDisturbed = SymbolFor("nodejs.stream.disturbed"), kIsClosedPromise = SymbolFor("nodejs.webstream.isClosedPromise"), kControllerErrorFunction = SymbolFor("nodejs.webstream.controllerErrorFunction");
|
|
3080
3075
|
function isReadableNodeStream(obj, strict = false) {
|
|
3081
3076
|
var _obj$_readableState;
|
|
@@ -3247,7 +3242,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3247
3242
|
}
|
|
3248
3243
|
module2.exports = { isDestroyed, kIsDestroyed, isDisturbed, kIsDisturbed, isErrored, kIsErrored, isReadable, kIsReadable, kIsClosedPromise, kControllerErrorFunction, kIsWritable, isClosed, isDuplexNodeStream, isFinished, isIterable, isReadableNodeStream, isReadableStream, isReadableEnded, isReadableFinished, isReadableErrored, isNodeStream, isWebStream, isWritable, isWritableNodeStream, isWritableStream, isWritableEnded, isWritableFinished, isWritableErrored, isServerRequest, isServerResponse, willEmitClose, isTransformStream };
|
|
3249
3244
|
});
|
|
3250
|
-
var require_end_of_stream = __commonJS2((exports2, module2)
|
|
3245
|
+
var require_end_of_stream = __commonJS2(function(exports2, module2) {
|
|
3251
3246
|
var process2 = require_process(), { AbortError, codes } = require_errors(), { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes, { kEmptyObject, once } = require_util(), { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require_validators(), { Promise: Promise2, PromisePrototypeThen, SymbolDispose } = require_primordials(), { isClosed, isReadable, isReadableNodeStream, isReadableStream, isReadableFinished, isReadableErrored, isWritable, isWritableNodeStream, isWritableStream, isWritableFinished, isWritableErrored, isNodeStream, willEmitClose: _willEmitClose, kIsClosedPromise } = require_utils(), addAbortListener;
|
|
3252
3247
|
function isRequest(stream) {
|
|
3253
3248
|
return stream.setHeader && typeof stream.abort === "function";
|
|
@@ -3265,7 +3260,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3265
3260
|
return eosWeb(stream, options, callback);
|
|
3266
3261
|
if (!isNodeStream(stream))
|
|
3267
3262
|
throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream);
|
|
3268
|
-
let readable = (_options$readable = options.readable) !== null && _options$readable !== undefined ? _options$readable : isReadableNodeStream(stream), writable = (_options$writable = options.writable) !== null && _options$writable !== undefined ? _options$writable : isWritableNodeStream(stream),
|
|
3263
|
+
let readable = (_options$readable = options.readable) !== null && _options$readable !== undefined ? _options$readable : isReadableNodeStream(stream), writable = (_options$writable = options.writable) !== null && _options$writable !== undefined ? _options$writable : isWritableNodeStream(stream), { _writableState: wState, _readableState: rState } = stream, onlegacyfinish = () => {
|
|
3269
3264
|
if (!stream.writable)
|
|
3270
3265
|
onfinish();
|
|
3271
3266
|
}, willEmitClose = _willEmitClose(stream) && isReadableNodeStream(stream) === readable && isWritableNodeStream(stream) === writable, writableFinished = isWritableFinished(stream, false), onfinish = () => {
|
|
@@ -3394,7 +3389,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3394
3389
|
module2.exports = eos;
|
|
3395
3390
|
module2.exports.finished = finished;
|
|
3396
3391
|
});
|
|
3397
|
-
var require_destroy = __commonJS2((exports2, module2)
|
|
3392
|
+
var require_destroy = __commonJS2(function(exports2, module2) {
|
|
3398
3393
|
var process2 = require_process(), { aggregateTwoErrors, codes: { ERR_MULTIPLE_CALLBACK }, AbortError } = require_errors(), { Symbol: Symbol2 } = require_primordials(), { kIsDestroyed, isDestroyed, isFinished, isServerRequest } = require_utils(), kDestroy = Symbol2("kDestroy"), kConstruct = Symbol2("kConstruct");
|
|
3399
3394
|
function checkError(err, w, r) {
|
|
3400
3395
|
if (err) {
|
|
@@ -3425,26 +3420,26 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3425
3420
|
}
|
|
3426
3421
|
function _destroy(self, err, cb) {
|
|
3427
3422
|
let called = false;
|
|
3428
|
-
function onDestroy(
|
|
3423
|
+
function onDestroy(err) {
|
|
3429
3424
|
if (called)
|
|
3430
3425
|
return;
|
|
3431
3426
|
called = true;
|
|
3432
3427
|
let { _readableState: r, _writableState: w } = self;
|
|
3433
|
-
if (checkError(
|
|
3428
|
+
if (checkError(err, w, r), w)
|
|
3434
3429
|
w.closed = true;
|
|
3435
3430
|
if (r)
|
|
3436
3431
|
r.closed = true;
|
|
3437
3432
|
if (typeof cb === "function")
|
|
3438
|
-
cb(
|
|
3439
|
-
if (
|
|
3440
|
-
process2.nextTick(emitErrorCloseNT, self,
|
|
3433
|
+
cb(err);
|
|
3434
|
+
if (err)
|
|
3435
|
+
process2.nextTick(emitErrorCloseNT, self, err);
|
|
3441
3436
|
else
|
|
3442
3437
|
process2.nextTick(emitCloseNT, self);
|
|
3443
3438
|
}
|
|
3444
3439
|
try {
|
|
3445
3440
|
self._destroy(err || null, onDestroy);
|
|
3446
|
-
} catch (
|
|
3447
|
-
onDestroy(
|
|
3441
|
+
} catch (err) {
|
|
3442
|
+
onDestroy(err);
|
|
3448
3443
|
}
|
|
3449
3444
|
}
|
|
3450
3445
|
function emitErrorCloseNT(self, err) {
|
|
@@ -3569,7 +3564,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3569
3564
|
}
|
|
3570
3565
|
module2.exports = { construct, destroyer, destroy, undestroy, errorOrDestroy };
|
|
3571
3566
|
});
|
|
3572
|
-
var require_legacy = __commonJS2((exports2, module2)
|
|
3567
|
+
var require_legacy = __commonJS2(function(exports2, module2) {
|
|
3573
3568
|
var { ArrayIsArray, ObjectSetPrototypeOf } = require_primordials(), { EventEmitter: EE } = (init_events(), __toCommonJS(exports_events));
|
|
3574
3569
|
function Stream(opts) {
|
|
3575
3570
|
EE.call(this, opts);
|
|
@@ -3623,7 +3618,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3623
3618
|
}
|
|
3624
3619
|
module2.exports = { Stream, prependListener };
|
|
3625
3620
|
});
|
|
3626
|
-
var require_add_abort_signal = __commonJS2((exports2, module2)
|
|
3621
|
+
var require_add_abort_signal = __commonJS2(function(exports2, module2) {
|
|
3627
3622
|
var { SymbolDispose } = require_primordials(), { AbortError, codes } = require_errors(), { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils(), eos = require_end_of_stream(), { ERR_INVALID_ARG_TYPE } = codes, addAbortListener, validateAbortSignal = (signal, name) => {
|
|
3628
3623
|
if (typeof signal !== "object" || !("aborted" in signal))
|
|
3629
3624
|
throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
|
|
@@ -3651,7 +3646,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3651
3646
|
return stream;
|
|
3652
3647
|
};
|
|
3653
3648
|
});
|
|
3654
|
-
var require_buffer_list = __commonJS2((exports2, module2)
|
|
3649
|
+
var require_buffer_list = __commonJS2(function(exports2, module2) {
|
|
3655
3650
|
var { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array: Uint8Array2 } = require_primordials(), { Buffer: Buffer2 } = (init_buffer(), __toCommonJS(exports_buffer)), { inspect } = require_util();
|
|
3656
3651
|
module2.exports = class {
|
|
3657
3652
|
constructor() {
|
|
@@ -3762,7 +3757,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3762
3757
|
}
|
|
3763
3758
|
};
|
|
3764
3759
|
});
|
|
3765
|
-
var require_state = __commonJS2((exports2, module2)
|
|
3760
|
+
var require_state = __commonJS2(function(exports2, module2) {
|
|
3766
3761
|
var { MathFloor, NumberIsInteger } = require_primordials(), { validateInteger } = require_validators(), { ERR_INVALID_ARG_VALUE } = require_errors().codes, defaultHighWaterMarkBytes = 16384, defaultHighWaterMarkObjectMode = 16;
|
|
3767
3762
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
3768
3763
|
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
@@ -3789,7 +3784,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3789
3784
|
}
|
|
3790
3785
|
module2.exports = { getHighWaterMark, getDefaultHighWaterMark, setDefaultHighWaterMark };
|
|
3791
3786
|
});
|
|
3792
|
-
var require_safe_buffer = __commonJS2((exports2, module2)
|
|
3787
|
+
var require_safe_buffer = __commonJS2(function(exports2, module2) {
|
|
3793
3788
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3794
3789
|
var buffer = (init_buffer(), __toCommonJS(exports_buffer)), Buffer2 = buffer.Buffer;
|
|
3795
3790
|
function copyProps(src, dst) {
|
|
@@ -3834,7 +3829,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
3834
3829
|
return buffer.SlowBuffer(size);
|
|
3835
3830
|
};
|
|
3836
3831
|
});
|
|
3837
|
-
var require_string_decoder = __commonJS2((exports2)
|
|
3832
|
+
var require_string_decoder = __commonJS2(function(exports2) {
|
|
3838
3833
|
var Buffer2 = require_safe_buffer().Buffer, isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
3839
3834
|
switch (encoding = "" + encoding, encoding && encoding.toLowerCase()) {
|
|
3840
3835
|
case "hex":
|
|
@@ -4044,7 +4039,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
4044
4039
|
return buf && buf.length ? this.write(buf) : "";
|
|
4045
4040
|
}
|
|
4046
4041
|
});
|
|
4047
|
-
var require_from = __commonJS2((exports2, module2)
|
|
4042
|
+
var require_from = __commonJS2(function(exports2, module2) {
|
|
4048
4043
|
var process2 = require_process(), { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials(), { Buffer: Buffer2 } = (init_buffer(), __toCommonJS(exports_buffer)), { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors().codes;
|
|
4049
4044
|
function from(Readable, iterable, opts) {
|
|
4050
4045
|
let iterator;
|
|
@@ -4103,7 +4098,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
4103
4098
|
}
|
|
4104
4099
|
module2.exports = from;
|
|
4105
4100
|
});
|
|
4106
|
-
var require_readable = __commonJS2((exports2, module2)
|
|
4101
|
+
var require_readable = __commonJS2(function(exports2, module2) {
|
|
4107
4102
|
var process2 = require_process(), { ArrayPrototypeIndexOf, NumberIsInteger, NumberIsNaN, NumberParseInt, ObjectDefineProperties, ObjectKeys, ObjectSetPrototypeOf, Promise: Promise2, SafeSet, SymbolAsyncDispose, SymbolAsyncIterator, Symbol: Symbol2 } = require_primordials();
|
|
4108
4103
|
module2.exports = Readable;
|
|
4109
4104
|
Readable.ReadableState = ReadableState;
|
|
@@ -4721,7 +4716,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
4721
4716
|
} }).wrap(src);
|
|
4722
4717
|
};
|
|
4723
4718
|
});
|
|
4724
|
-
var require_writable = __commonJS2((exports2, module2)
|
|
4719
|
+
var require_writable = __commonJS2(function(exports2, module2) {
|
|
4725
4720
|
var process2 = require_process(), { ArrayPrototypeSlice, Error: Error2, FunctionPrototypeSymbolHasInstance, ObjectDefineProperty, ObjectDefineProperties, ObjectSetPrototypeOf, StringPrototypeToLowerCase, Symbol: Symbol2, SymbolHasInstance } = require_primordials();
|
|
4726
4721
|
module2.exports = Writable;
|
|
4727
4722
|
Writable.WritableState = WritableState;
|
|
@@ -5020,11 +5015,11 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5020
5015
|
if (needFinish(state)) {
|
|
5021
5016
|
if (prefinish(stream, state), state.pendingcb === 0) {
|
|
5022
5017
|
if (sync)
|
|
5023
|
-
state.pendingcb++, process2.nextTick((
|
|
5024
|
-
if (needFinish(
|
|
5025
|
-
finish(
|
|
5018
|
+
state.pendingcb++, process2.nextTick((stream, state) => {
|
|
5019
|
+
if (needFinish(state))
|
|
5020
|
+
finish(stream, state);
|
|
5026
5021
|
else
|
|
5027
|
-
|
|
5022
|
+
state.pendingcb--;
|
|
5028
5023
|
}, stream, state);
|
|
5029
5024
|
else if (needFinish(state))
|
|
5030
5025
|
state.pendingcb++, finish(stream, state);
|
|
@@ -5106,7 +5101,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5106
5101
|
return lazyWebStreams().newWritableStreamFromStreamWritable(streamWritable);
|
|
5107
5102
|
};
|
|
5108
5103
|
});
|
|
5109
|
-
var require_duplexify = __commonJS2((exports2, module2)
|
|
5104
|
+
var require_duplexify = __commonJS2(function(exports2, module2) {
|
|
5110
5105
|
var process2 = require_process(), bufferModule = (init_buffer(), __toCommonJS(exports_buffer)), { isReadable, isWritable, isIterable, isNodeStream, isReadableNodeStream, isWritableNodeStream, isDuplexNodeStream, isReadableStream, isWritableStream } = require_utils(), eos = require_end_of_stream(), { AbortError, codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE } } = require_errors(), { destroyer } = require_destroy(), Duplex = require_duplex(), Readable = require_readable(), Writable = require_writable(), { createDeferredPromise } = require_util(), from = require_from(), Blob = globalThis.Blob || bufferModule.Blob, isBlob = typeof Blob < "u" ? function(b) {
|
|
5111
5106
|
return b instanceof Blob;
|
|
5112
5107
|
} : function(b) {
|
|
@@ -5139,9 +5134,9 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5139
5134
|
let { value, write, final, destroy } = fromAsyncGen(body);
|
|
5140
5135
|
if (isIterable(value))
|
|
5141
5136
|
return from(Duplexify, value, { objectMode: true, write, final, destroy });
|
|
5142
|
-
let
|
|
5143
|
-
if (typeof
|
|
5144
|
-
let d, promise = FunctionPrototypeCall(
|
|
5137
|
+
let then = value === null || value === undefined ? undefined : value.then;
|
|
5138
|
+
if (typeof then === "function") {
|
|
5139
|
+
let d, promise = FunctionPrototypeCall(then, value, (val) => {
|
|
5145
5140
|
if (val != null)
|
|
5146
5141
|
throw new ERR_INVALID_RETURN_VALUE("nully", "body", val);
|
|
5147
5142
|
}, (err) => {
|
|
@@ -5270,7 +5265,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5270
5265
|
}, d;
|
|
5271
5266
|
}
|
|
5272
5267
|
});
|
|
5273
|
-
var require_duplex = __commonJS2((exports2, module2)
|
|
5268
|
+
var require_duplex = __commonJS2(function(exports2, module2) {
|
|
5274
5269
|
var { ObjectDefineProperties, ObjectGetOwnPropertyDescriptor, ObjectKeys, ObjectSetPrototypeOf } = require_primordials();
|
|
5275
5270
|
module2.exports = Duplex;
|
|
5276
5271
|
var Readable = require_readable(), Writable = require_writable();
|
|
@@ -5322,7 +5317,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5322
5317
|
return duplexify(body, "body");
|
|
5323
5318
|
};
|
|
5324
5319
|
});
|
|
5325
|
-
var require_transform = __commonJS2((exports2, module2)
|
|
5320
|
+
var require_transform = __commonJS2(function(exports2, module2) {
|
|
5326
5321
|
var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials();
|
|
5327
5322
|
module2.exports = Transform;
|
|
5328
5323
|
var { ERR_METHOD_NOT_IMPLEMENTED } = require_errors().codes, Duplex = require_duplex(), { getHighWaterMark } = require_state();
|
|
@@ -5391,7 +5386,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5391
5386
|
}
|
|
5392
5387
|
};
|
|
5393
5388
|
});
|
|
5394
|
-
var require_passthrough = __commonJS2((exports2, module2)
|
|
5389
|
+
var require_passthrough = __commonJS2(function(exports2, module2) {
|
|
5395
5390
|
var { ObjectSetPrototypeOf } = require_primordials();
|
|
5396
5391
|
module2.exports = PassThrough;
|
|
5397
5392
|
var Transform = require_transform();
|
|
@@ -5406,7 +5401,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5406
5401
|
cb(null, chunk);
|
|
5407
5402
|
};
|
|
5408
5403
|
});
|
|
5409
|
-
var require_pipeline = __commonJS2((exports2, module2)
|
|
5404
|
+
var require_pipeline = __commonJS2(function(exports2, module2) {
|
|
5410
5405
|
var process2 = require_process(), { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials(), eos = require_end_of_stream(), { once } = require_util(), destroyImpl = require_destroy(), Duplex = require_duplex(), { aggregateTwoErrors, codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE, ERR_MISSING_ARGS, ERR_STREAM_DESTROYED, ERR_STREAM_PREMATURE_CLOSE }, AbortError } = require_errors(), { validateFunction, validateAbortSignal } = require_validators(), { isIterable, isReadable, isReadableNodeStream, isNodeStream, isTransformStream, isWebStream, isReadableStream, isReadableFinished } = require_utils(), AbortController = globalThis.AbortController || require_abort_controller().AbortController, PassThrough, Readable, addAbortListener;
|
|
5411
5406
|
function destroyer(stream, reading, writing) {
|
|
5412
5407
|
let finished = false;
|
|
@@ -5486,8 +5481,8 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5486
5481
|
} catch (err) {
|
|
5487
5482
|
try {
|
|
5488
5483
|
await writer.abort(err), finish(err);
|
|
5489
|
-
} catch (
|
|
5490
|
-
finish(
|
|
5484
|
+
} catch (err) {
|
|
5485
|
+
finish(err);
|
|
5491
5486
|
}
|
|
5492
5487
|
}
|
|
5493
5488
|
}
|
|
@@ -5646,7 +5641,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5646
5641
|
}
|
|
5647
5642
|
module2.exports = { pipelineImpl, pipeline };
|
|
5648
5643
|
});
|
|
5649
|
-
var require_compose = __commonJS2((exports2, module2)
|
|
5644
|
+
var require_compose = __commonJS2(function(exports2, module2) {
|
|
5650
5645
|
var { pipeline } = require_pipeline(), Duplex = require_duplex(), { destroyer } = require_destroy(), { isNodeStream, isReadable, isWritable, isWebStream, isTransformStream, isWritableStream, isReadableStream } = require_utils(), { AbortError, codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS } } = require_errors(), eos = require_end_of_stream();
|
|
5651
5646
|
module2.exports = function(...streams) {
|
|
5652
5647
|
if (streams.length === 0)
|
|
@@ -5766,7 +5761,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5766
5761
|
}, d;
|
|
5767
5762
|
};
|
|
5768
5763
|
});
|
|
5769
|
-
var require_operators = __commonJS2((exports2, module2)
|
|
5764
|
+
var require_operators = __commonJS2(function(exports2, module2) {
|
|
5770
5765
|
var AbortController = globalThis.AbortController || require_abort_controller().AbortController, { codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE }, AbortError } = require_errors(), { validateAbortSignal, validateInteger, validateObject } = require_validators(), kWeakHandler = require_primordials().Symbol("kWeak"), kResistStopPropagation = require_primordials().Symbol("kResistStopPropagation"), { finished } = require_end_of_stream(), staticCompose = require_compose(), { addAbortSignalNoValidate } = require_add_abort_signal(), { isWritable, isNodeStream } = require_utils(), { deprecate } = require_util(), { ArrayPrototypePush, Boolean: Boolean2, MathFloor, Number: Number2, NumberIsNaN, Promise: Promise2, PromiseReject, PromiseResolve, PromisePrototypeThen, Symbol: Symbol2 } = require_primordials(), kEmpty = Symbol2("kEmpty"), kEof = Symbol2("kEof");
|
|
5771
5766
|
function compose(stream, options) {
|
|
5772
5767
|
if (options != null)
|
|
@@ -5881,9 +5876,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5881
5876
|
async function every(fn, options = undefined) {
|
|
5882
5877
|
if (typeof fn !== "function")
|
|
5883
5878
|
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
|
|
5884
|
-
return !await some.call(this, async (...args) =>
|
|
5885
|
-
return !await fn(...args);
|
|
5886
|
-
}, options);
|
|
5879
|
+
return !await some.call(this, async (...args) => !await fn(...args), options);
|
|
5887
5880
|
}
|
|
5888
5881
|
async function find(fn, options) {
|
|
5889
5882
|
for await (let result of filter.call(this, fn, options))
|
|
@@ -5893,8 +5886,8 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5893
5886
|
async function forEach(fn, options) {
|
|
5894
5887
|
if (typeof fn !== "function")
|
|
5895
5888
|
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
|
|
5896
|
-
async function forEachFn(value,
|
|
5897
|
-
return await fn(value,
|
|
5889
|
+
async function forEachFn(value, options) {
|
|
5890
|
+
return await fn(value, options), kEmpty;
|
|
5898
5891
|
}
|
|
5899
5892
|
for await (let unused of map.call(this, forEachFn, options))
|
|
5900
5893
|
;
|
|
@@ -5902,8 +5895,8 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
5902
5895
|
function filter(fn, options) {
|
|
5903
5896
|
if (typeof fn !== "function")
|
|
5904
5897
|
throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
|
|
5905
|
-
async function filterFn(value,
|
|
5906
|
-
if (await fn(value,
|
|
5898
|
+
async function filterFn(value, options) {
|
|
5899
|
+
if (await fn(value, options))
|
|
5907
5900
|
return value;
|
|
5908
5901
|
return kEmpty;
|
|
5909
5902
|
}
|
|
@@ -6021,7 +6014,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
6021
6014
|
module2.exports.streamReturningOperators = { asIndexedPairs: deprecate(asIndexedPairs, "readable.asIndexedPairs will be removed in a future version."), drop, filter, flatMap, map, take, compose };
|
|
6022
6015
|
module2.exports.promiseReturningOperators = { every, forEach, reduce, toArray, some, find };
|
|
6023
6016
|
});
|
|
6024
|
-
var require_promises = __commonJS2((exports2, module2)
|
|
6017
|
+
var require_promises = __commonJS2(function(exports2, module2) {
|
|
6025
6018
|
var { ArrayPrototypePop, Promise: Promise2 } = require_primordials(), { isIterable, isNodeStream, isWebStream } = require_utils(), { pipelineImpl: pl } = require_pipeline(), { finished } = require_end_of_stream();
|
|
6026
6019
|
require_stream2();
|
|
6027
6020
|
function pipeline(...streams) {
|
|
@@ -6041,7 +6034,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
6041
6034
|
}
|
|
6042
6035
|
module2.exports = { finished, pipeline };
|
|
6043
6036
|
});
|
|
6044
|
-
var require_stream2 = __commonJS2((exports2, module2)
|
|
6037
|
+
var require_stream2 = __commonJS2(function(exports2, module2) {
|
|
6045
6038
|
var { Buffer: Buffer2 } = (init_buffer(), __toCommonJS(exports_buffer)), { ObjectDefineProperty, ObjectKeys, ReflectApply } = require_primordials(), { promisify: { custom: customPromisify } } = require_util(), { streamReturningOperators, promiseReturningOperators } = require_operators(), { codes: { ERR_ILLEGAL_CONSTRUCTOR } } = require_errors(), compose = require_compose(), { setDefaultHighWaterMark, getDefaultHighWaterMark } = require_state(), { pipeline } = require_pipeline(), { destroyer } = require_destroy(), eos = require_end_of_stream(), promises = require_promises(), utils = require_utils(), Stream = module2.exports = require_legacy().Stream;
|
|
6046
6039
|
Stream.isDestroyed = utils.isDestroyed;
|
|
6047
6040
|
Stream.isDisturbed = utils.isDisturbed;
|
|
@@ -6094,7 +6087,7 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
6094
6087
|
return Buffer2.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
6095
6088
|
};
|
|
6096
6089
|
});
|
|
6097
|
-
var require_ours = __commonJS2((exports2, module2)
|
|
6090
|
+
var require_ours = __commonJS2(function(exports2, module2) {
|
|
6098
6091
|
var Stream = require_stream();
|
|
6099
6092
|
{
|
|
6100
6093
|
let CustomStream = require_stream2(), promises = require_promises(), originalDestroy = CustomStream.Readable.destroy;
|
|
@@ -6143,10 +6136,12 @@ var __create2, __getProtoOf2, __defProp2, __getOwnPropNames2, __hasOwnProp2, __t
|
|
|
6143
6136
|
return cached;
|
|
6144
6137
|
}
|
|
6145
6138
|
target = mod != null ? __create2(__getProtoOf2(mod)) : {};
|
|
6146
|
-
let to = isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target;
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6139
|
+
let to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp2.call(mod, "default") ? __defProp2(target, "default", { value: mod, enumerable: true }) : target;
|
|
6140
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
6141
|
+
for (let key of __getOwnPropNames2(mod))
|
|
6142
|
+
if (!__hasOwnProp2.call(to, key))
|
|
6143
|
+
__defProp2(to, key, { get: __accessProp2.bind(mod, key), enumerable: true });
|
|
6144
|
+
}
|
|
6150
6145
|
if (canCache)
|
|
6151
6146
|
cache.set(mod, to);
|
|
6152
6147
|
return to;
|
|
@@ -6155,7 +6150,7 @@ var init_assert = __esm(() => {
|
|
|
6155
6150
|
__create2 = Object.create;
|
|
6156
6151
|
({ getPrototypeOf: __getProtoOf2, defineProperty: __defProp2, getOwnPropertyNames: __getOwnPropNames2 } = Object);
|
|
6157
6152
|
__hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
6158
|
-
require_shams = __commonJS2((exports, module)
|
|
6153
|
+
require_shams = __commonJS2(function(exports, module) {
|
|
6159
6154
|
module.exports = function() {
|
|
6160
6155
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function")
|
|
6161
6156
|
return false;
|
|
@@ -6189,60 +6184,60 @@ var init_assert = __esm(() => {
|
|
|
6189
6184
|
return true;
|
|
6190
6185
|
};
|
|
6191
6186
|
});
|
|
6192
|
-
require_shams2 = __commonJS2((exports, module)
|
|
6187
|
+
require_shams2 = __commonJS2(function(exports, module) {
|
|
6193
6188
|
var hasSymbols = require_shams();
|
|
6194
6189
|
module.exports = function() {
|
|
6195
6190
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
6196
6191
|
};
|
|
6197
6192
|
});
|
|
6198
|
-
require_es_object_atoms = __commonJS2((exports, module)
|
|
6193
|
+
require_es_object_atoms = __commonJS2(function(exports, module) {
|
|
6199
6194
|
module.exports = Object;
|
|
6200
6195
|
});
|
|
6201
|
-
require_es_errors = __commonJS2((exports, module)
|
|
6196
|
+
require_es_errors = __commonJS2(function(exports, module) {
|
|
6202
6197
|
module.exports = Error;
|
|
6203
6198
|
});
|
|
6204
|
-
require_eval = __commonJS2((exports, module)
|
|
6199
|
+
require_eval = __commonJS2(function(exports, module) {
|
|
6205
6200
|
module.exports = EvalError;
|
|
6206
6201
|
});
|
|
6207
|
-
require_range = __commonJS2((exports, module)
|
|
6202
|
+
require_range = __commonJS2(function(exports, module) {
|
|
6208
6203
|
module.exports = RangeError;
|
|
6209
6204
|
});
|
|
6210
|
-
require_ref = __commonJS2((exports, module)
|
|
6205
|
+
require_ref = __commonJS2(function(exports, module) {
|
|
6211
6206
|
module.exports = ReferenceError;
|
|
6212
6207
|
});
|
|
6213
|
-
require_syntax = __commonJS2((exports, module)
|
|
6208
|
+
require_syntax = __commonJS2(function(exports, module) {
|
|
6214
6209
|
module.exports = SyntaxError;
|
|
6215
6210
|
});
|
|
6216
|
-
require_type = __commonJS2((exports, module)
|
|
6211
|
+
require_type = __commonJS2(function(exports, module) {
|
|
6217
6212
|
module.exports = TypeError;
|
|
6218
6213
|
});
|
|
6219
|
-
require_uri = __commonJS2((exports, module)
|
|
6214
|
+
require_uri = __commonJS2(function(exports, module) {
|
|
6220
6215
|
module.exports = URIError;
|
|
6221
6216
|
});
|
|
6222
|
-
require_abs = __commonJS2((exports, module)
|
|
6217
|
+
require_abs = __commonJS2(function(exports, module) {
|
|
6223
6218
|
module.exports = Math.abs;
|
|
6224
6219
|
});
|
|
6225
|
-
require_floor = __commonJS2((exports, module)
|
|
6220
|
+
require_floor = __commonJS2(function(exports, module) {
|
|
6226
6221
|
module.exports = Math.floor;
|
|
6227
6222
|
});
|
|
6228
|
-
require_max = __commonJS2((exports, module)
|
|
6223
|
+
require_max = __commonJS2(function(exports, module) {
|
|
6229
6224
|
module.exports = Math.max;
|
|
6230
6225
|
});
|
|
6231
|
-
require_min = __commonJS2((exports, module)
|
|
6226
|
+
require_min = __commonJS2(function(exports, module) {
|
|
6232
6227
|
module.exports = Math.min;
|
|
6233
6228
|
});
|
|
6234
|
-
require_pow = __commonJS2((exports, module)
|
|
6229
|
+
require_pow = __commonJS2(function(exports, module) {
|
|
6235
6230
|
module.exports = Math.pow;
|
|
6236
6231
|
});
|
|
6237
|
-
require_round = __commonJS2((exports, module)
|
|
6232
|
+
require_round = __commonJS2(function(exports, module) {
|
|
6238
6233
|
module.exports = Math.round;
|
|
6239
6234
|
});
|
|
6240
|
-
require_isNaN = __commonJS2((exports, module)
|
|
6235
|
+
require_isNaN = __commonJS2(function(exports, module) {
|
|
6241
6236
|
module.exports = Number.isNaN || function(a) {
|
|
6242
6237
|
return a !== a;
|
|
6243
6238
|
};
|
|
6244
6239
|
});
|
|
6245
|
-
require_sign = __commonJS2((exports, module)
|
|
6240
|
+
require_sign = __commonJS2(function(exports, module) {
|
|
6246
6241
|
var $isNaN = require_isNaN();
|
|
6247
6242
|
module.exports = function(number) {
|
|
6248
6243
|
if ($isNaN(number) || number === 0)
|
|
@@ -6250,10 +6245,10 @@ var init_assert = __esm(() => {
|
|
|
6250
6245
|
return number < 0 ? -1 : 1;
|
|
6251
6246
|
};
|
|
6252
6247
|
});
|
|
6253
|
-
require_gOPD = __commonJS2((exports, module)
|
|
6248
|
+
require_gOPD = __commonJS2(function(exports, module) {
|
|
6254
6249
|
module.exports = Object.getOwnPropertyDescriptor;
|
|
6255
6250
|
});
|
|
6256
|
-
require_gopd = __commonJS2((exports, module)
|
|
6251
|
+
require_gopd = __commonJS2(function(exports, module) {
|
|
6257
6252
|
var $gOPD = require_gOPD();
|
|
6258
6253
|
if ($gOPD)
|
|
6259
6254
|
try {
|
|
@@ -6263,7 +6258,7 @@ var init_assert = __esm(() => {
|
|
|
6263
6258
|
}
|
|
6264
6259
|
module.exports = $gOPD;
|
|
6265
6260
|
});
|
|
6266
|
-
require_es_define_property = __commonJS2((exports, module)
|
|
6261
|
+
require_es_define_property = __commonJS2(function(exports, module) {
|
|
6267
6262
|
var $defineProperty = Object.defineProperty || false;
|
|
6268
6263
|
if ($defineProperty)
|
|
6269
6264
|
try {
|
|
@@ -6273,7 +6268,7 @@ var init_assert = __esm(() => {
|
|
|
6273
6268
|
}
|
|
6274
6269
|
module.exports = $defineProperty;
|
|
6275
6270
|
});
|
|
6276
|
-
require_has_symbols = __commonJS2((exports, module)
|
|
6271
|
+
require_has_symbols = __commonJS2(function(exports, module) {
|
|
6277
6272
|
var origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = require_shams();
|
|
6278
6273
|
module.exports = function() {
|
|
6279
6274
|
if (typeof origSymbol !== "function")
|
|
@@ -6287,14 +6282,14 @@ var init_assert = __esm(() => {
|
|
|
6287
6282
|
return hasSymbolSham();
|
|
6288
6283
|
};
|
|
6289
6284
|
});
|
|
6290
|
-
require_Reflect_getPrototypeOf = __commonJS2((exports, module)
|
|
6285
|
+
require_Reflect_getPrototypeOf = __commonJS2(function(exports, module) {
|
|
6291
6286
|
module.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
6292
6287
|
});
|
|
6293
|
-
require_Object_getPrototypeOf = __commonJS2((exports, module)
|
|
6288
|
+
require_Object_getPrototypeOf = __commonJS2(function(exports, module) {
|
|
6294
6289
|
var $Object = require_es_object_atoms();
|
|
6295
6290
|
module.exports = $Object.getPrototypeOf || null;
|
|
6296
6291
|
});
|
|
6297
|
-
require_implementation = __commonJS2((exports, module)
|
|
6292
|
+
require_implementation = __commonJS2(function(exports, module) {
|
|
6298
6293
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr = Object.prototype.toString, max = Math.max, funcType = "[object Function]", concatty = function(a, b) {
|
|
6299
6294
|
var arr = [];
|
|
6300
6295
|
for (var i = 0;i < a.length; i += 1)
|
|
@@ -6336,24 +6331,24 @@ var init_assert = __esm(() => {
|
|
|
6336
6331
|
return bound;
|
|
6337
6332
|
};
|
|
6338
6333
|
});
|
|
6339
|
-
require_function_bind = __commonJS2((exports, module)
|
|
6334
|
+
require_function_bind = __commonJS2(function(exports, module) {
|
|
6340
6335
|
var implementation = require_implementation();
|
|
6341
6336
|
module.exports = Function.prototype.bind || implementation;
|
|
6342
6337
|
});
|
|
6343
|
-
require_functionCall = __commonJS2((exports, module)
|
|
6338
|
+
require_functionCall = __commonJS2(function(exports, module) {
|
|
6344
6339
|
module.exports = Function.prototype.call;
|
|
6345
6340
|
});
|
|
6346
|
-
require_functionApply = __commonJS2((exports, module)
|
|
6341
|
+
require_functionApply = __commonJS2(function(exports, module) {
|
|
6347
6342
|
module.exports = Function.prototype.apply;
|
|
6348
6343
|
});
|
|
6349
|
-
require_reflectApply = __commonJS2((exports, module)
|
|
6344
|
+
require_reflectApply = __commonJS2(function(exports, module) {
|
|
6350
6345
|
module.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
6351
6346
|
});
|
|
6352
|
-
require_actualApply = __commonJS2((exports, module)
|
|
6347
|
+
require_actualApply = __commonJS2(function(exports, module) {
|
|
6353
6348
|
var bind = require_function_bind(), $apply = require_functionApply(), $call = require_functionCall(), $reflectApply = require_reflectApply();
|
|
6354
6349
|
module.exports = $reflectApply || bind.call($call, $apply);
|
|
6355
6350
|
});
|
|
6356
|
-
require_call_bind_apply_helpers = __commonJS2((exports, module)
|
|
6351
|
+
require_call_bind_apply_helpers = __commonJS2(function(exports, module) {
|
|
6357
6352
|
var bind = require_function_bind(), $TypeError = require_type(), $call = require_functionCall(), $actualApply = require_actualApply();
|
|
6358
6353
|
module.exports = function(args) {
|
|
6359
6354
|
if (args.length < 1 || typeof args[0] !== "function")
|
|
@@ -6361,7 +6356,7 @@ var init_assert = __esm(() => {
|
|
|
6361
6356
|
return $actualApply(bind, $call, args);
|
|
6362
6357
|
};
|
|
6363
6358
|
});
|
|
6364
|
-
require_get = __commonJS2((exports, module)
|
|
6359
|
+
require_get = __commonJS2(function(exports, module) {
|
|
6365
6360
|
var callBind = require_call_bind_apply_helpers(), gOPD = require_gopd(), hasProtoAccessor;
|
|
6366
6361
|
try {
|
|
6367
6362
|
hasProtoAccessor = [].__proto__ === Array.prototype;
|
|
@@ -6374,7 +6369,7 @@ var init_assert = __esm(() => {
|
|
|
6374
6369
|
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
6375
6370
|
} : false;
|
|
6376
6371
|
});
|
|
6377
|
-
require_get_proto = __commonJS2((exports, module)
|
|
6372
|
+
require_get_proto = __commonJS2(function(exports, module) {
|
|
6378
6373
|
var reflectGetProto = require_Reflect_getPrototypeOf(), originalGetProto = require_Object_getPrototypeOf(), getDunderProto = require_get();
|
|
6379
6374
|
module.exports = reflectGetProto ? function(O) {
|
|
6380
6375
|
return reflectGetProto(O);
|
|
@@ -6386,11 +6381,11 @@ var init_assert = __esm(() => {
|
|
|
6386
6381
|
return getDunderProto(O);
|
|
6387
6382
|
} : null;
|
|
6388
6383
|
});
|
|
6389
|
-
require_hasown = __commonJS2((exports, module)
|
|
6384
|
+
require_hasown = __commonJS2(function(exports, module) {
|
|
6390
6385
|
var call = Function.prototype.call, $hasOwn = Object.prototype.hasOwnProperty, bind = require_function_bind();
|
|
6391
6386
|
module.exports = bind.call(call, $hasOwn);
|
|
6392
6387
|
});
|
|
6393
|
-
require_get_intrinsic = __commonJS2((exports, module)
|
|
6388
|
+
require_get_intrinsic = __commonJS2(function(exports, module) {
|
|
6394
6389
|
var undefined2, $Object = require_es_object_atoms(), $Error = require_es_errors(), $EvalError = require_eval(), $RangeError = require_range(), $ReferenceError = require_ref(), $SyntaxError = require_syntax(), $TypeError = require_type(), $URIError = require_uri(), abs = require_abs(), floor = require_floor(), max = require_max(), min = require_min(), pow = require_pow(), round = require_round(), sign = require_sign(), $Function = Function, getEvalledConstructor = function(expressionSyntax) {
|
|
6395
6390
|
try {
|
|
6396
6391
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
@@ -6414,7 +6409,7 @@ var init_assert = __esm(() => {
|
|
|
6414
6409
|
} catch (e) {
|
|
6415
6410
|
errorProto = getProto(getProto(e)), INTRINSICS["%Error.prototype%"] = errorProto;
|
|
6416
6411
|
}
|
|
6417
|
-
var errorProto, doEval = function
|
|
6412
|
+
var errorProto, doEval = function doEval(name) {
|
|
6418
6413
|
var value;
|
|
6419
6414
|
if (name === "%AsyncFunction%")
|
|
6420
6415
|
value = getEvalledConstructor("async function () {}");
|
|
@@ -6423,11 +6418,11 @@ var init_assert = __esm(() => {
|
|
|
6423
6418
|
else if (name === "%AsyncGeneratorFunction%")
|
|
6424
6419
|
value = getEvalledConstructor("async function* () {}");
|
|
6425
6420
|
else if (name === "%AsyncGenerator%") {
|
|
6426
|
-
var fn =
|
|
6421
|
+
var fn = doEval("%AsyncGeneratorFunction%");
|
|
6427
6422
|
if (fn)
|
|
6428
6423
|
value = fn.prototype;
|
|
6429
6424
|
} else if (name === "%AsyncIteratorPrototype%") {
|
|
6430
|
-
var gen =
|
|
6425
|
+
var gen = doEval("%AsyncGenerator%");
|
|
6431
6426
|
if (gen && getProto)
|
|
6432
6427
|
value = getProto(gen.prototype);
|
|
6433
6428
|
}
|
|
@@ -6495,7 +6490,7 @@ var init_assert = __esm(() => {
|
|
|
6495
6490
|
return value;
|
|
6496
6491
|
};
|
|
6497
6492
|
});
|
|
6498
|
-
require_call_bound = __commonJS2((exports, module)
|
|
6493
|
+
require_call_bound = __commonJS2(function(exports, module) {
|
|
6499
6494
|
var GetIntrinsic = require_get_intrinsic(), callBindBasic = require_call_bind_apply_helpers(), $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
6500
6495
|
module.exports = function(name, allowMissing) {
|
|
6501
6496
|
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
@@ -6504,7 +6499,7 @@ var init_assert = __esm(() => {
|
|
|
6504
6499
|
return intrinsic;
|
|
6505
6500
|
};
|
|
6506
6501
|
});
|
|
6507
|
-
require_is_arguments = __commonJS2((exports, module)
|
|
6502
|
+
require_is_arguments = __commonJS2(function(exports, module) {
|
|
6508
6503
|
var hasToStringTag = require_shams2()(), callBound = require_call_bound(), $toString = callBound("Object.prototype.toString"), isStandardArguments = function(value) {
|
|
6509
6504
|
if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value)
|
|
6510
6505
|
return false;
|
|
@@ -6519,7 +6514,7 @@ var init_assert = __esm(() => {
|
|
|
6519
6514
|
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
6520
6515
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
6521
6516
|
});
|
|
6522
|
-
require_is_regex = __commonJS2((exports, module)
|
|
6517
|
+
require_is_regex = __commonJS2(function(exports, module) {
|
|
6523
6518
|
var callBound = require_call_bound(), hasToStringTag = require_shams2()(), hasOwn = require_hasown(), gOPD = require_gopd(), fn;
|
|
6524
6519
|
if (hasToStringTag) {
|
|
6525
6520
|
if ($exec = callBound("RegExp.prototype.exec"), isRegexMarker = {}, throwRegexMarker = function() {
|
|
@@ -6547,7 +6542,7 @@ var init_assert = __esm(() => {
|
|
|
6547
6542
|
var $exec, isRegexMarker, throwRegexMarker, badStringifier, $toString, regexClass;
|
|
6548
6543
|
module.exports = fn;
|
|
6549
6544
|
});
|
|
6550
|
-
require_safe_regex_test = __commonJS2((exports, module)
|
|
6545
|
+
require_safe_regex_test = __commonJS2(function(exports, module) {
|
|
6551
6546
|
var callBound = require_call_bound(), isRegex = require_is_regex(), $exec = callBound("RegExp.prototype.exec"), $TypeError = require_type();
|
|
6552
6547
|
module.exports = function(regex) {
|
|
6553
6548
|
if (!isRegex(regex))
|
|
@@ -6557,11 +6552,11 @@ var init_assert = __esm(() => {
|
|
|
6557
6552
|
};
|
|
6558
6553
|
};
|
|
6559
6554
|
});
|
|
6560
|
-
require_generator_function = __commonJS2((exports, module)
|
|
6555
|
+
require_generator_function = __commonJS2(function(exports, module) {
|
|
6561
6556
|
var cached = function* () {}.constructor;
|
|
6562
6557
|
module.exports = () => cached;
|
|
6563
6558
|
});
|
|
6564
|
-
require_is_generator_function = __commonJS2((exports, module)
|
|
6559
|
+
require_is_generator_function = __commonJS2(function(exports, module) {
|
|
6565
6560
|
var callBound = require_call_bound(), safeRegexTest = require_safe_regex_test(), isFnRegex = safeRegexTest(/^\s*(?:function)?\*/), hasToStringTag = require_shams2()(), getProto = require_get_proto(), toStr = callBound("Object.prototype.toString"), fnToStr = callBound("Function.prototype.toString"), getGeneratorFunction = require_generator_function();
|
|
6566
6561
|
module.exports = function(fn) {
|
|
6567
6562
|
if (typeof fn !== "function")
|
|
@@ -6578,7 +6573,7 @@ var init_assert = __esm(() => {
|
|
|
6578
6573
|
return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
|
|
6579
6574
|
};
|
|
6580
6575
|
});
|
|
6581
|
-
require_is_callable = __commonJS2((exports, module)
|
|
6576
|
+
require_is_callable = __commonJS2(function(exports, module) {
|
|
6582
6577
|
var fnToStr = Function.prototype.toString, reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply, badArrayLike, isCallableMarker;
|
|
6583
6578
|
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function")
|
|
6584
6579
|
try {
|
|
@@ -6654,7 +6649,7 @@ var init_assert = __esm(() => {
|
|
|
6654
6649
|
return tryFunctionObject(value);
|
|
6655
6650
|
};
|
|
6656
6651
|
});
|
|
6657
|
-
require_for_each = __commonJS2((exports, module)
|
|
6652
|
+
require_for_each = __commonJS2(function(exports, module) {
|
|
6658
6653
|
var isCallable = require_is_callable(), toStr = Object.prototype.toString, hasOwnProperty = Object.prototype.hasOwnProperty, forEachArray = function(array, iterator, receiver) {
|
|
6659
6654
|
for (var i = 0, len = array.length;i < len; i++)
|
|
6660
6655
|
if (hasOwnProperty.call(array, i))
|
|
@@ -6693,10 +6688,10 @@ var init_assert = __esm(() => {
|
|
|
6693
6688
|
forEachObject(list, iterator, receiver);
|
|
6694
6689
|
};
|
|
6695
6690
|
});
|
|
6696
|
-
require_possible_typed_array_names = __commonJS2((exports, module)
|
|
6691
|
+
require_possible_typed_array_names = __commonJS2(function(exports, module) {
|
|
6697
6692
|
module.exports = ["Float16Array", "Float32Array", "Float64Array", "Int8Array", "Int16Array", "Int32Array", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array"];
|
|
6698
6693
|
});
|
|
6699
|
-
require_available_typed_arrays = __commonJS2((exports, module)
|
|
6694
|
+
require_available_typed_arrays = __commonJS2(function(exports, module) {
|
|
6700
6695
|
var possibleNames = require_possible_typed_array_names(), g = typeof globalThis > "u" ? globalThis : globalThis;
|
|
6701
6696
|
module.exports = function() {
|
|
6702
6697
|
var out = [];
|
|
@@ -6706,7 +6701,7 @@ var init_assert = __esm(() => {
|
|
|
6706
6701
|
return out;
|
|
6707
6702
|
};
|
|
6708
6703
|
});
|
|
6709
|
-
require_define_data_property = __commonJS2((exports, module)
|
|
6704
|
+
require_define_data_property = __commonJS2(function(exports, module) {
|
|
6710
6705
|
var $defineProperty = require_es_define_property(), $SyntaxError = require_syntax(), $TypeError = require_type(), gopd = require_gopd();
|
|
6711
6706
|
module.exports = function(obj, property, value) {
|
|
6712
6707
|
if (!obj || typeof obj !== "object" && typeof obj !== "function")
|
|
@@ -6730,7 +6725,7 @@ var init_assert = __esm(() => {
|
|
|
6730
6725
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
6731
6726
|
};
|
|
6732
6727
|
});
|
|
6733
|
-
require_has_property_descriptors = __commonJS2((exports, module)
|
|
6728
|
+
require_has_property_descriptors = __commonJS2(function(exports, module) {
|
|
6734
6729
|
var $defineProperty = require_es_define_property(), hasPropertyDescriptors = function() {
|
|
6735
6730
|
return !!$defineProperty;
|
|
6736
6731
|
};
|
|
@@ -6745,7 +6740,7 @@ var init_assert = __esm(() => {
|
|
|
6745
6740
|
};
|
|
6746
6741
|
module.exports = hasPropertyDescriptors;
|
|
6747
6742
|
});
|
|
6748
|
-
require_set_function_length = __commonJS2((exports, module)
|
|
6743
|
+
require_set_function_length = __commonJS2(function(exports, module) {
|
|
6749
6744
|
var GetIntrinsic = require_get_intrinsic(), define = require_define_data_property(), hasDescriptors = require_has_property_descriptors()(), gOPD = require_gopd(), $TypeError = require_type(), $floor = GetIntrinsic("%Math.floor%");
|
|
6750
6745
|
module.exports = function(fn, length) {
|
|
6751
6746
|
if (typeof fn !== "function")
|
|
@@ -6768,13 +6763,13 @@ var init_assert = __esm(() => {
|
|
|
6768
6763
|
return fn;
|
|
6769
6764
|
};
|
|
6770
6765
|
});
|
|
6771
|
-
require_applyBind = __commonJS2((exports, module)
|
|
6766
|
+
require_applyBind = __commonJS2(function(exports, module) {
|
|
6772
6767
|
var bind = require_function_bind(), $apply = require_functionApply(), actualApply = require_actualApply();
|
|
6773
6768
|
module.exports = function() {
|
|
6774
6769
|
return actualApply(bind, $apply, arguments);
|
|
6775
6770
|
};
|
|
6776
6771
|
});
|
|
6777
|
-
require_call_bind = __commonJS2((exports, module)
|
|
6772
|
+
require_call_bind = __commonJS2(function(exports, module) {
|
|
6778
6773
|
var setFunctionLength = require_set_function_length(), $defineProperty = require_es_define_property(), callBindBasic = require_call_bind_apply_helpers(), applyBind = require_applyBind();
|
|
6779
6774
|
module.exports = function(originalFunction) {
|
|
6780
6775
|
var func = callBindBasic(arguments), adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
@@ -6785,7 +6780,7 @@ var init_assert = __esm(() => {
|
|
|
6785
6780
|
else
|
|
6786
6781
|
module.exports.apply = applyBind;
|
|
6787
6782
|
});
|
|
6788
|
-
require_which_typed_array = __commonJS2((exports, module)
|
|
6783
|
+
require_which_typed_array = __commonJS2(function(exports, module) {
|
|
6789
6784
|
var forEach = require_for_each(), availableTypedArrays = require_available_typed_arrays(), callBind = require_call_bind(), callBound = require_call_bound(), gOPD = require_gopd(), getProto = require_get_proto(), $toString = callBound("Object.prototype.toString"), hasToStringTag = require_shams2()(), g = typeof globalThis > "u" ? globalThis : globalThis, typedArrays = availableTypedArrays(), $slice = callBound("String.prototype.slice"), $indexOf = callBound("Array.prototype.indexOf", true) || function(array, value) {
|
|
6790
6785
|
for (var i = 0;i < array.length; i += 1)
|
|
6791
6786
|
if (array[i] === value)
|
|
@@ -6844,13 +6839,13 @@ var init_assert = __esm(() => {
|
|
|
6844
6839
|
return tryTypedArrays(value);
|
|
6845
6840
|
};
|
|
6846
6841
|
});
|
|
6847
|
-
require_is_typed_array = __commonJS2((exports, module)
|
|
6842
|
+
require_is_typed_array = __commonJS2(function(exports, module) {
|
|
6848
6843
|
var whichTypedArray = require_which_typed_array();
|
|
6849
6844
|
module.exports = function(value) {
|
|
6850
6845
|
return !!whichTypedArray(value);
|
|
6851
6846
|
};
|
|
6852
6847
|
});
|
|
6853
|
-
require_types = __commonJS2((exports)
|
|
6848
|
+
require_types = __commonJS2(function(exports) {
|
|
6854
6849
|
var isArgumentsObject = require_is_arguments(), isGeneratorFunction = require_is_generator_function(), whichTypedArray = require_which_typed_array(), isTypedArray = require_is_typed_array();
|
|
6855
6850
|
function uncurryThis(f) {
|
|
6856
6851
|
return f.call.bind(f);
|
|
@@ -7052,12 +7047,12 @@ var init_assert = __esm(() => {
|
|
|
7052
7047
|
} });
|
|
7053
7048
|
});
|
|
7054
7049
|
});
|
|
7055
|
-
require_isBuffer = __commonJS2((exports, module)
|
|
7050
|
+
require_isBuffer = __commonJS2(function(exports, module) {
|
|
7056
7051
|
module.exports = function(arg) {
|
|
7057
7052
|
return arg instanceof Buffer;
|
|
7058
7053
|
};
|
|
7059
7054
|
});
|
|
7060
|
-
require_inherits_browser = __commonJS2((exports, module)
|
|
7055
|
+
require_inherits_browser = __commonJS2(function(exports, module) {
|
|
7061
7056
|
if (typeof Object.create === "function")
|
|
7062
7057
|
module.exports = function(ctor, superCtor) {
|
|
7063
7058
|
if (superCtor)
|
|
@@ -7072,7 +7067,7 @@ var init_assert = __esm(() => {
|
|
|
7072
7067
|
}
|
|
7073
7068
|
};
|
|
7074
7069
|
});
|
|
7075
|
-
require_inherits = __commonJS2((exports, module)
|
|
7070
|
+
require_inherits = __commonJS2(function(exports, module) {
|
|
7076
7071
|
try {
|
|
7077
7072
|
if (util = (init_util(), __toCommonJS(exports_util)), typeof util.inherits !== "function")
|
|
7078
7073
|
throw "";
|
|
@@ -7082,7 +7077,7 @@ var init_assert = __esm(() => {
|
|
|
7082
7077
|
}
|
|
7083
7078
|
var util;
|
|
7084
7079
|
});
|
|
7085
|
-
require_util = __commonJS2((exports)
|
|
7080
|
+
require_util = __commonJS2(function(exports) {
|
|
7086
7081
|
var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function(obj) {
|
|
7087
7082
|
var keys = Object.keys(obj), descriptors = {};
|
|
7088
7083
|
for (var i = 0;i < keys.length; i++)
|
|
@@ -7096,12 +7091,12 @@ var init_assert = __esm(() => {
|
|
|
7096
7091
|
objects.push(inspect(arguments[i]));
|
|
7097
7092
|
return objects.join(" ");
|
|
7098
7093
|
}
|
|
7099
|
-
var i = 1, args = arguments, len = args.length, str = String(f).replace(formatRegExp, function(
|
|
7100
|
-
if (
|
|
7094
|
+
var i = 1, args = arguments, len = args.length, str = String(f).replace(formatRegExp, function(x) {
|
|
7095
|
+
if (x === "%%")
|
|
7101
7096
|
return "%";
|
|
7102
7097
|
if (i >= len)
|
|
7103
|
-
return
|
|
7104
|
-
switch (
|
|
7098
|
+
return x;
|
|
7099
|
+
switch (x) {
|
|
7105
7100
|
case "%s":
|
|
7106
7101
|
return String(args[i++]);
|
|
7107
7102
|
case "%d":
|
|
@@ -7113,7 +7108,7 @@ var init_assert = __esm(() => {
|
|
|
7113
7108
|
return "[Circular]";
|
|
7114
7109
|
}
|
|
7115
7110
|
default:
|
|
7116
|
-
return
|
|
7111
|
+
return x;
|
|
7117
7112
|
}
|
|
7118
7113
|
});
|
|
7119
7114
|
for (var x = args[i];i < len; x = args[++i])
|
|
@@ -7493,12 +7488,12 @@ var init_assert = __esm(() => {
|
|
|
7493
7488
|
}
|
|
7494
7489
|
exports.callbackify = callbackify;
|
|
7495
7490
|
});
|
|
7496
|
-
require_errors = __commonJS2((exports, module)
|
|
7491
|
+
require_errors = __commonJS2(function(exports, module) {
|
|
7497
7492
|
function _typeof(o) {
|
|
7498
|
-
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
7499
|
-
return typeof
|
|
7500
|
-
} : function(
|
|
7501
|
-
return
|
|
7493
|
+
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
|
|
7494
|
+
return typeof o;
|
|
7495
|
+
} : function(o) {
|
|
7496
|
+
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
7502
7497
|
}, _typeof(o);
|
|
7503
7498
|
}
|
|
7504
7499
|
function _defineProperties(target, props) {
|
|
@@ -7543,8 +7538,8 @@ var init_assert = __esm(() => {
|
|
|
7543
7538
|
_setPrototypeOf(subClass, superClass);
|
|
7544
7539
|
}
|
|
7545
7540
|
function _setPrototypeOf(o, p) {
|
|
7546
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
7547
|
-
return
|
|
7541
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, p) {
|
|
7542
|
+
return o.__proto__ = p, o;
|
|
7548
7543
|
}, _setPrototypeOf(o, p);
|
|
7549
7544
|
}
|
|
7550
7545
|
function _createSuper(Derived) {
|
|
@@ -7585,8 +7580,8 @@ var init_assert = __esm(() => {
|
|
|
7585
7580
|
}
|
|
7586
7581
|
}
|
|
7587
7582
|
function _getPrototypeOf(o) {
|
|
7588
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(
|
|
7589
|
-
return
|
|
7583
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(o) {
|
|
7584
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
7590
7585
|
}, _getPrototypeOf(o);
|
|
7591
7586
|
}
|
|
7592
7587
|
var codes = {}, assert, util;
|
|
@@ -7600,13 +7595,13 @@ var init_assert = __esm(() => {
|
|
|
7600
7595
|
return message(arg1, arg2, arg3);
|
|
7601
7596
|
}
|
|
7602
7597
|
var NodeError = function(_Base) {
|
|
7603
|
-
_inherits(
|
|
7604
|
-
var _super = _createSuper(
|
|
7605
|
-
function
|
|
7598
|
+
_inherits(NodeError, _Base);
|
|
7599
|
+
var _super = _createSuper(NodeError);
|
|
7600
|
+
function NodeError(arg1, arg2, arg3) {
|
|
7606
7601
|
var _this;
|
|
7607
|
-
return _classCallCheck(this,
|
|
7602
|
+
return _classCallCheck(this, NodeError), _this = _super.call(this, getMessage(arg1, arg2, arg3)), _this.code = code, _this;
|
|
7608
7603
|
}
|
|
7609
|
-
return _createClass(
|
|
7604
|
+
return _createClass(NodeError);
|
|
7610
7605
|
}(Base);
|
|
7611
7606
|
codes[code] = NodeError;
|
|
7612
7607
|
}
|
|
@@ -7700,13 +7695,13 @@ var init_assert = __esm(() => {
|
|
|
7700
7695
|
}, TypeError);
|
|
7701
7696
|
exports.codes = codes;
|
|
7702
7697
|
});
|
|
7703
|
-
require_assertion_error = __commonJS2((exports, module)
|
|
7698
|
+
require_assertion_error = __commonJS2(function(exports, module) {
|
|
7704
7699
|
function ownKeys(e, r) {
|
|
7705
7700
|
var t = Object.keys(e);
|
|
7706
7701
|
if (Object.getOwnPropertySymbols) {
|
|
7707
7702
|
var o = Object.getOwnPropertySymbols(e);
|
|
7708
|
-
r && (o = o.filter(function(
|
|
7709
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
7703
|
+
r && (o = o.filter(function(r) {
|
|
7704
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
7710
7705
|
})), t.push.apply(t, o);
|
|
7711
7706
|
}
|
|
7712
7707
|
return t;
|
|
@@ -7714,10 +7709,10 @@ var init_assert = __esm(() => {
|
|
|
7714
7709
|
function _objectSpread(e) {
|
|
7715
7710
|
for (var r = 1;r < arguments.length; r++) {
|
|
7716
7711
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
7717
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function(
|
|
7718
|
-
_defineProperty(e,
|
|
7719
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(
|
|
7720
|
-
Object.defineProperty(e,
|
|
7712
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r) {
|
|
7713
|
+
_defineProperty(e, r, t[r]);
|
|
7714
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
7715
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
7721
7716
|
});
|
|
7722
7717
|
}
|
|
7723
7718
|
return e;
|
|
@@ -7796,32 +7791,32 @@ var init_assert = __esm(() => {
|
|
|
7796
7791
|
}
|
|
7797
7792
|
function _wrapNativeSuper(Class) {
|
|
7798
7793
|
var _cache = typeof Map === "function" ? new Map : undefined;
|
|
7799
|
-
return _wrapNativeSuper = function(
|
|
7800
|
-
if (
|
|
7801
|
-
return
|
|
7802
|
-
if (typeof
|
|
7794
|
+
return _wrapNativeSuper = function(Class) {
|
|
7795
|
+
if (Class === null || !_isNativeFunction(Class))
|
|
7796
|
+
return Class;
|
|
7797
|
+
if (typeof Class !== "function")
|
|
7803
7798
|
throw TypeError("Super expression must either be null or a function");
|
|
7804
7799
|
if (typeof _cache < "u") {
|
|
7805
|
-
if (_cache.has(
|
|
7806
|
-
return _cache.get(
|
|
7807
|
-
_cache.set(
|
|
7800
|
+
if (_cache.has(Class))
|
|
7801
|
+
return _cache.get(Class);
|
|
7802
|
+
_cache.set(Class, Wrapper);
|
|
7808
7803
|
}
|
|
7809
7804
|
function Wrapper() {
|
|
7810
|
-
return _construct(
|
|
7805
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
7811
7806
|
}
|
|
7812
|
-
return Wrapper.prototype = Object.create(
|
|
7807
|
+
return Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }), _setPrototypeOf(Wrapper, Class);
|
|
7813
7808
|
}, _wrapNativeSuper(Class);
|
|
7814
7809
|
}
|
|
7815
7810
|
function _construct(Parent, args, Class) {
|
|
7816
7811
|
if (_isNativeReflectConstruct())
|
|
7817
7812
|
_construct = Reflect.construct.bind();
|
|
7818
7813
|
else
|
|
7819
|
-
_construct = function(
|
|
7814
|
+
_construct = function(Parent, args, Class) {
|
|
7820
7815
|
var a = [null];
|
|
7821
|
-
a.push.apply(a,
|
|
7822
|
-
var Constructor = Function.bind.apply(
|
|
7823
|
-
if (
|
|
7824
|
-
_setPrototypeOf(instance,
|
|
7816
|
+
a.push.apply(a, args);
|
|
7817
|
+
var Constructor = Function.bind.apply(Parent, a), instance = new Constructor;
|
|
7818
|
+
if (Class)
|
|
7819
|
+
_setPrototypeOf(instance, Class.prototype);
|
|
7825
7820
|
return instance;
|
|
7826
7821
|
};
|
|
7827
7822
|
return _construct.apply(null, arguments);
|
|
@@ -7843,20 +7838,20 @@ var init_assert = __esm(() => {
|
|
|
7843
7838
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
7844
7839
|
}
|
|
7845
7840
|
function _setPrototypeOf(o, p) {
|
|
7846
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
7847
|
-
return
|
|
7841
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, p) {
|
|
7842
|
+
return o.__proto__ = p, o;
|
|
7848
7843
|
}, _setPrototypeOf(o, p);
|
|
7849
7844
|
}
|
|
7850
7845
|
function _getPrototypeOf(o) {
|
|
7851
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(
|
|
7852
|
-
return
|
|
7846
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(o) {
|
|
7847
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
7853
7848
|
}, _getPrototypeOf(o);
|
|
7854
7849
|
}
|
|
7855
7850
|
function _typeof(o) {
|
|
7856
|
-
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
7857
|
-
return typeof
|
|
7858
|
-
} : function(
|
|
7859
|
-
return
|
|
7851
|
+
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
|
|
7852
|
+
return typeof o;
|
|
7853
|
+
} : function(o) {
|
|
7854
|
+
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
7860
7855
|
}, _typeof(o);
|
|
7861
7856
|
}
|
|
7862
7857
|
var _require = require_util(), inspect = _require.inspect, _require2 = require_errors(), ERR_INVALID_ARG_TYPE = _require2.codes.ERR_INVALID_ARG_TYPE;
|
|
@@ -8078,7 +8073,7 @@ should equal
|
|
|
8078
8073
|
}(_wrapNativeSuper(Error), inspect.custom);
|
|
8079
8074
|
module.exports = AssertionError2;
|
|
8080
8075
|
});
|
|
8081
|
-
require_isArguments = __commonJS2((exports, module)
|
|
8076
|
+
require_isArguments = __commonJS2(function(exports, module) {
|
|
8082
8077
|
var toStr = Object.prototype.toString;
|
|
8083
8078
|
module.exports = function(value) {
|
|
8084
8079
|
var str = toStr.call(value), isArgs = str === "[object Arguments]";
|
|
@@ -8087,7 +8082,7 @@ should equal
|
|
|
8087
8082
|
return isArgs;
|
|
8088
8083
|
};
|
|
8089
8084
|
});
|
|
8090
|
-
require_implementation2 = __commonJS2((exports, module)
|
|
8085
|
+
require_implementation2 = __commonJS2(function(exports, module) {
|
|
8091
8086
|
var keysShim;
|
|
8092
8087
|
if (!Object.keys)
|
|
8093
8088
|
has = Object.prototype.hasOwnProperty, toStr = Object.prototype.toString, isArgs = require_isArguments(), isEnumerable = Object.prototype.propertyIsEnumerable, hasDontEnumBug = !isEnumerable.call({ toString: null }, "toString"), hasProtoEnumBug = isEnumerable.call(function() {}, "prototype"), dontEnums = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"], equalsConstructorPrototype = function(o) {
|
|
@@ -8142,7 +8137,7 @@ should equal
|
|
|
8142
8137
|
var has, toStr, isArgs, isEnumerable, hasDontEnumBug, hasProtoEnumBug, dontEnums, equalsConstructorPrototype, excludedKeys, hasAutomationEqualityBug, equalsConstructorPrototypeIfNotBuggy;
|
|
8143
8138
|
module.exports = keysShim;
|
|
8144
8139
|
});
|
|
8145
|
-
require_object_keys = __commonJS2((exports, module)
|
|
8140
|
+
require_object_keys = __commonJS2(function(exports, module) {
|
|
8146
8141
|
var slice = Array.prototype.slice, isArgs = require_isArguments(), origKeys = Object.keys, keysShim = origKeys ? function(o) {
|
|
8147
8142
|
return origKeys(o);
|
|
8148
8143
|
} : require_implementation2(), originalKeys = Object.keys;
|
|
@@ -8164,7 +8159,7 @@ should equal
|
|
|
8164
8159
|
};
|
|
8165
8160
|
module.exports = keysShim;
|
|
8166
8161
|
});
|
|
8167
|
-
require_implementation3 = __commonJS2((exports, module)
|
|
8162
|
+
require_implementation3 = __commonJS2(function(exports, module) {
|
|
8168
8163
|
var objectKeys = require_object_keys(), hasSymbols = require_shams()(), callBound = require_call_bound(), $Object = require_es_object_atoms(), $push = callBound("Array.prototype.push"), $propIsEnumerable = callBound("Object.prototype.propertyIsEnumerable"), originalGetSymbols = hasSymbols ? $Object.getOwnPropertySymbols : null;
|
|
8169
8164
|
module.exports = function(target, source1) {
|
|
8170
8165
|
if (target == null)
|
|
@@ -8193,7 +8188,7 @@ should equal
|
|
|
8193
8188
|
return to;
|
|
8194
8189
|
};
|
|
8195
8190
|
});
|
|
8196
|
-
require_polyfill = __commonJS2((exports, module)
|
|
8191
|
+
require_polyfill = __commonJS2(function(exports, module) {
|
|
8197
8192
|
var implementation = require_implementation3(), lacksProperEnumerationOrder = function() {
|
|
8198
8193
|
if (!Object.assign)
|
|
8199
8194
|
return false;
|
|
@@ -8225,7 +8220,7 @@ should equal
|
|
|
8225
8220
|
return Object.assign;
|
|
8226
8221
|
};
|
|
8227
8222
|
});
|
|
8228
|
-
require_implementation4 = __commonJS2((exports, module)
|
|
8223
|
+
require_implementation4 = __commonJS2(function(exports, module) {
|
|
8229
8224
|
var numberIsNaN = function(value) {
|
|
8230
8225
|
return value !== value;
|
|
8231
8226
|
};
|
|
@@ -8239,13 +8234,13 @@ should equal
|
|
|
8239
8234
|
return false;
|
|
8240
8235
|
};
|
|
8241
8236
|
});
|
|
8242
|
-
require_polyfill2 = __commonJS2((exports, module)
|
|
8237
|
+
require_polyfill2 = __commonJS2(function(exports, module) {
|
|
8243
8238
|
var implementation = require_implementation4();
|
|
8244
8239
|
module.exports = function() {
|
|
8245
8240
|
return typeof Object.is === "function" ? Object.is : implementation;
|
|
8246
8241
|
};
|
|
8247
8242
|
});
|
|
8248
|
-
require_callBound = __commonJS2((exports, module)
|
|
8243
|
+
require_callBound = __commonJS2(function(exports, module) {
|
|
8249
8244
|
var GetIntrinsic = require_get_intrinsic(), callBind = require_call_bind(), $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
|
|
8250
8245
|
module.exports = function(name, allowMissing) {
|
|
8251
8246
|
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
@@ -8254,7 +8249,7 @@ should equal
|
|
|
8254
8249
|
return intrinsic;
|
|
8255
8250
|
};
|
|
8256
8251
|
});
|
|
8257
|
-
require_define_properties = __commonJS2((exports, module)
|
|
8252
|
+
require_define_properties = __commonJS2(function(exports, module) {
|
|
8258
8253
|
var keys = require_object_keys(), hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol", toStr = Object.prototype.toString, concat = Array.prototype.concat, defineDataProperty = require_define_data_property(), isFunction = function(fn) {
|
|
8259
8254
|
return typeof fn === "function" && toStr.call(fn) === "[object Function]";
|
|
8260
8255
|
}, supportsDescriptors = require_has_property_descriptors()(), defineProperty = function(object, name, value, predicate) {
|
|
@@ -8279,7 +8274,7 @@ should equal
|
|
|
8279
8274
|
defineProperties.supportsDescriptors = !!supportsDescriptors;
|
|
8280
8275
|
module.exports = defineProperties;
|
|
8281
8276
|
});
|
|
8282
|
-
require_shim = __commonJS2((exports, module)
|
|
8277
|
+
require_shim = __commonJS2(function(exports, module) {
|
|
8283
8278
|
var getPolyfill = require_polyfill2(), define = require_define_properties();
|
|
8284
8279
|
module.exports = function() {
|
|
8285
8280
|
var polyfill = getPolyfill();
|
|
@@ -8288,17 +8283,17 @@ should equal
|
|
|
8288
8283
|
} }), polyfill;
|
|
8289
8284
|
};
|
|
8290
8285
|
});
|
|
8291
|
-
require_object_is = __commonJS2((exports, module)
|
|
8286
|
+
require_object_is = __commonJS2(function(exports, module) {
|
|
8292
8287
|
var define = require_define_properties(), callBind = require_call_bind(), implementation = require_implementation4(), getPolyfill = require_polyfill2(), shim = require_shim(), polyfill = callBind(getPolyfill(), Object);
|
|
8293
8288
|
define(polyfill, { getPolyfill, implementation, shim });
|
|
8294
8289
|
module.exports = polyfill;
|
|
8295
8290
|
});
|
|
8296
|
-
require_implementation5 = __commonJS2((exports, module)
|
|
8291
|
+
require_implementation5 = __commonJS2(function(exports, module) {
|
|
8297
8292
|
module.exports = function(value) {
|
|
8298
8293
|
return value !== value;
|
|
8299
8294
|
};
|
|
8300
8295
|
});
|
|
8301
|
-
require_polyfill3 = __commonJS2((exports, module)
|
|
8296
|
+
require_polyfill3 = __commonJS2(function(exports, module) {
|
|
8302
8297
|
var implementation = require_implementation5();
|
|
8303
8298
|
module.exports = function() {
|
|
8304
8299
|
if (Number.isNaN && Number.isNaN(NaN) && !Number.isNaN("a"))
|
|
@@ -8306,7 +8301,7 @@ should equal
|
|
|
8306
8301
|
return implementation;
|
|
8307
8302
|
};
|
|
8308
8303
|
});
|
|
8309
|
-
require_shim2 = __commonJS2((exports, module)
|
|
8304
|
+
require_shim2 = __commonJS2(function(exports, module) {
|
|
8310
8305
|
var define = require_define_properties(), getPolyfill = require_polyfill3();
|
|
8311
8306
|
module.exports = function() {
|
|
8312
8307
|
var polyfill = getPolyfill();
|
|
@@ -8315,12 +8310,12 @@ should equal
|
|
|
8315
8310
|
} }), polyfill;
|
|
8316
8311
|
};
|
|
8317
8312
|
});
|
|
8318
|
-
require_is_nan = __commonJS2((exports, module)
|
|
8313
|
+
require_is_nan = __commonJS2(function(exports, module) {
|
|
8319
8314
|
var callBind = require_call_bind(), define = require_define_properties(), implementation = require_implementation5(), getPolyfill = require_polyfill3(), shim = require_shim2(), polyfill = callBind(getPolyfill(), Number);
|
|
8320
8315
|
define(polyfill, { getPolyfill, implementation, shim });
|
|
8321
8316
|
module.exports = polyfill;
|
|
8322
8317
|
});
|
|
8323
|
-
require_comparisons = __commonJS2((exports, module)
|
|
8318
|
+
require_comparisons = __commonJS2(function(exports, module) {
|
|
8324
8319
|
function _slicedToArray(arr, i) {
|
|
8325
8320
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
8326
8321
|
}
|
|
@@ -8360,8 +8355,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8360
8355
|
} else
|
|
8361
8356
|
for (;!(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
|
|
8362
8357
|
;
|
|
8363
|
-
} catch (
|
|
8364
|
-
o = true, n =
|
|
8358
|
+
} catch (r) {
|
|
8359
|
+
o = true, n = r;
|
|
8365
8360
|
} finally {
|
|
8366
8361
|
try {
|
|
8367
8362
|
if (!f && t.return != null && (u = t.return(), Object(u) !== u))
|
|
@@ -8379,10 +8374,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8379
8374
|
return arr;
|
|
8380
8375
|
}
|
|
8381
8376
|
function _typeof(o) {
|
|
8382
|
-
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
8383
|
-
return typeof
|
|
8384
|
-
} : function(
|
|
8385
|
-
return
|
|
8377
|
+
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
|
|
8378
|
+
return typeof o;
|
|
8379
|
+
} : function(o) {
|
|
8380
|
+
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8386
8381
|
}, _typeof(o);
|
|
8387
8382
|
}
|
|
8388
8383
|
var regexFlagsSupported = /a/g.flags !== undefined, arrayFromSet = function(set) {
|
|
@@ -8750,12 +8745,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8750
8745
|
}
|
|
8751
8746
|
module.exports = { isDeepEqual, isDeepStrictEqual };
|
|
8752
8747
|
});
|
|
8753
|
-
require_assert = __commonJS2((exports, module)
|
|
8748
|
+
require_assert = __commonJS2(function(exports, module) {
|
|
8754
8749
|
function _typeof(o) {
|
|
8755
|
-
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
8756
|
-
return typeof
|
|
8757
|
-
} : function(
|
|
8758
|
-
return
|
|
8750
|
+
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
|
|
8751
|
+
return typeof o;
|
|
8752
|
+
} : function(o) {
|
|
8753
|
+
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8759
8754
|
}, _typeof(o);
|
|
8760
8755
|
}
|
|
8761
8756
|
function _defineProperties(target, props) {
|
|
@@ -8905,9 +8900,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8905
8900
|
if (objectIs(actual, expected))
|
|
8906
8901
|
innerFail({ actual, expected, message, operator: "notStrictEqual", stackStartFn: notStrictEqual2 });
|
|
8907
8902
|
};
|
|
8908
|
-
var Comparison = _createClass(function
|
|
8903
|
+
var Comparison = _createClass(function Comparison(obj, keys, actual) {
|
|
8909
8904
|
var _this = this;
|
|
8910
|
-
_classCallCheck(this,
|
|
8905
|
+
_classCallCheck(this, Comparison), keys.forEach(function(key) {
|
|
8911
8906
|
if (key in obj)
|
|
8912
8907
|
if (actual !== undefined && typeof actual[key] === "string" && isRegExp(obj[key]) && RegExpPrototypeTest(obj[key], actual[key]))
|
|
8913
8908
|
_this[key] = actual[key];
|
|
@@ -9106,7 +9101,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9106
9101
|
assert.strict = objectAssign(strict2, assert, { equal: assert.strictEqual, deepEqual: assert.deepStrictEqual, notEqual: assert.notStrictEqual, notDeepEqual: assert.notDeepStrictEqual });
|
|
9107
9102
|
assert.strict.strict = assert.strict;
|
|
9108
9103
|
});
|
|
9109
|
-
assert = __toESM2(require_assert()
|
|
9104
|
+
assert = __toESM2(require_assert());
|
|
9110
9105
|
({ AssertionError, CallTracker, deepEqual, deepStrictEqual, doesNotMatch, doesNotReject, doesNotThrow, equal, fail, ifError, match, notDeepEqual, notDeepStrictEqual, notEqual, notStrictEqual, ok, rejects, strict, strictEqual, throws } = assert);
|
|
9111
9106
|
assert_default = assert;
|
|
9112
9107
|
});
|
|
@@ -9119,7 +9114,7 @@ function __exportSetter2(name, newValue) {
|
|
|
9119
9114
|
this[name] = __returnValue2.bind(null, newValue);
|
|
9120
9115
|
}
|
|
9121
9116
|
var __create3, __getProtoOf3, __defProp3, __getOwnPropNames3, __hasOwnProp3, __reExport = (target, mod, secondTarget) => {
|
|
9122
|
-
var keys = __getOwnPropNames3(mod);
|
|
9117
|
+
var keys = mod && typeof mod === "object" || typeof mod === "function" ? __getOwnPropNames3(mod) : [];
|
|
9123
9118
|
for (let key of keys)
|
|
9124
9119
|
if (!__hasOwnProp3.call(target, key) && key !== "default")
|
|
9125
9120
|
__defProp3(target, key, { get: __accessProp3.bind(mod, key), enumerable: true });
|
|
@@ -9137,10 +9132,12 @@ var __create3, __getProtoOf3, __defProp3, __getOwnPropNames3, __hasOwnProp3, __r
|
|
|
9137
9132
|
return cached;
|
|
9138
9133
|
}
|
|
9139
9134
|
target = mod != null ? __create3(__getProtoOf3(mod)) : {};
|
|
9140
|
-
let to = isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target;
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9135
|
+
let to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp3.call(mod, "default") ? __defProp3(target, "default", { value: mod, enumerable: true }) : target;
|
|
9136
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
9137
|
+
for (let key of __getOwnPropNames3(mod))
|
|
9138
|
+
if (!__hasOwnProp3.call(to, key))
|
|
9139
|
+
__defProp3(to, key, { get: __accessProp3.bind(mod, key), enumerable: true });
|
|
9140
|
+
}
|
|
9144
9141
|
if (canCache)
|
|
9145
9142
|
cache.set(mod, to);
|
|
9146
9143
|
return to;
|
|
@@ -9152,13 +9149,13 @@ var init_zlib = __esm(() => {
|
|
|
9152
9149
|
__create3 = Object.create;
|
|
9153
9150
|
({ getPrototypeOf: __getProtoOf3, defineProperty: __defProp3, getOwnPropertyNames: __getOwnPropNames3 } = Object);
|
|
9154
9151
|
__hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
9155
|
-
require_zstream = __commonJS3((exports, module)
|
|
9152
|
+
require_zstream = __commonJS3(function(exports, module) {
|
|
9156
9153
|
function ZStream() {
|
|
9157
9154
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
9158
9155
|
}
|
|
9159
9156
|
module.exports = ZStream;
|
|
9160
9157
|
});
|
|
9161
|
-
require_common = __commonJS3((exports)
|
|
9158
|
+
require_common = __commonJS3(function(exports) {
|
|
9162
9159
|
var TYPED_OK = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
9163
9160
|
function _has(obj, key) {
|
|
9164
9161
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
@@ -9214,7 +9211,7 @@ var init_zlib = __esm(() => {
|
|
|
9214
9211
|
};
|
|
9215
9212
|
exports.setTyped(TYPED_OK);
|
|
9216
9213
|
});
|
|
9217
|
-
require_trees = __commonJS3((exports)
|
|
9214
|
+
require_trees = __commonJS3(function(exports) {
|
|
9218
9215
|
var utils = require_common(), Z_FIXED = 4, Z_BINARY = 0, Z_TEXT = 1, Z_UNKNOWN = 2;
|
|
9219
9216
|
function zero(buf) {
|
|
9220
9217
|
var len = buf.length;
|
|
@@ -9544,7 +9541,7 @@ var init_zlib = __esm(() => {
|
|
|
9544
9541
|
exports._tr_tally = _tr_tally;
|
|
9545
9542
|
exports._tr_align = _tr_align;
|
|
9546
9543
|
});
|
|
9547
|
-
require_adler32 = __commonJS3((exports, module)
|
|
9544
|
+
require_adler32 = __commonJS3(function(exports, module) {
|
|
9548
9545
|
function adler32(adler, buf, len, pos) {
|
|
9549
9546
|
var s1 = adler & 65535 | 0, s2 = adler >>> 16 & 65535 | 0, n = 0;
|
|
9550
9547
|
while (len !== 0) {
|
|
@@ -9558,7 +9555,7 @@ var init_zlib = __esm(() => {
|
|
|
9558
9555
|
}
|
|
9559
9556
|
module.exports = adler32;
|
|
9560
9557
|
});
|
|
9561
|
-
require_crc32 = __commonJS3((exports, module)
|
|
9558
|
+
require_crc32 = __commonJS3(function(exports, module) {
|
|
9562
9559
|
function makeTable() {
|
|
9563
9560
|
var c, table = [];
|
|
9564
9561
|
for (var n = 0;n < 256; n++) {
|
|
@@ -9579,10 +9576,10 @@ var init_zlib = __esm(() => {
|
|
|
9579
9576
|
}
|
|
9580
9577
|
module.exports = crc32;
|
|
9581
9578
|
});
|
|
9582
|
-
require_messages = __commonJS3((exports, module)
|
|
9579
|
+
require_messages = __commonJS3(function(exports, module) {
|
|
9583
9580
|
module.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
9584
9581
|
});
|
|
9585
|
-
require_deflate = __commonJS3((exports)
|
|
9582
|
+
require_deflate = __commonJS3(function(exports) {
|
|
9586
9583
|
var utils = require_common(), trees = require_trees(), adler32 = require_adler32(), crc32 = require_crc32(), msg = require_messages(), Z_NO_FLUSH = 0, Z_PARTIAL_FLUSH = 1, Z_FULL_FLUSH = 3, Z_FINISH = 4, Z_BLOCK = 5, Z_OK = 0, Z_STREAM_END = 1, Z_STREAM_ERROR = -2, Z_DATA_ERROR = -3, Z_BUF_ERROR = -5, Z_DEFAULT_COMPRESSION = -1, Z_FILTERED = 1, Z_HUFFMAN_ONLY = 2, Z_RLE = 3, Z_FIXED = 4, Z_DEFAULT_STRATEGY = 0, Z_UNKNOWN = 2, Z_DEFLATED = 8, MAX_MEM_LEVEL = 9, MAX_WBITS = 15, DEF_MEM_LEVEL = 8, LENGTH_CODES = 29, LITERALS = 256, L_CODES = LITERALS + 1 + LENGTH_CODES, D_CODES = 30, BL_CODES = 19, HEAP_SIZE = 2 * L_CODES + 1, MAX_BITS = 15, MIN_MATCH = 3, MAX_MATCH = 258, MIN_LOOKAHEAD = MAX_MATCH + MIN_MATCH + 1, PRESET_DICT = 32, INIT_STATE = 42, EXTRA_STATE = 69, NAME_STATE = 73, COMMENT_STATE = 91, HCRC_STATE = 103, BUSY_STATE = 113, FINISH_STATE = 666, BS_NEED_MORE = 1, BS_BLOCK_DONE = 2, BS_FINISH_STARTED = 3, BS_FINISH_DONE = 4, OS_CODE = 3;
|
|
9587
9584
|
function err(strm, errorCode) {
|
|
9588
9585
|
return strm.msg = msg[errorCode], errorCode;
|
|
@@ -10097,7 +10094,7 @@ var init_zlib = __esm(() => {
|
|
|
10097
10094
|
exports.deflateSetDictionary = deflateSetDictionary;
|
|
10098
10095
|
exports.deflateInfo = "pako deflate (from Nodeca project)";
|
|
10099
10096
|
});
|
|
10100
|
-
require_inffast = __commonJS3((exports, module)
|
|
10097
|
+
require_inffast = __commonJS3(function(exports, module) {
|
|
10101
10098
|
var BAD = 30, TYPE = 12;
|
|
10102
10099
|
module.exports = function(strm, start) {
|
|
10103
10100
|
var state, _in, last, _out, beg, end, dmax, wsize, whave, wnext, s_window, hold, bits, lcode, dcode, lmask, dmask, here, op, len, dist, from, from_source, input, output;
|
|
@@ -10209,7 +10206,7 @@ var init_zlib = __esm(() => {
|
|
|
10209
10206
|
return;
|
|
10210
10207
|
};
|
|
10211
10208
|
});
|
|
10212
|
-
require_inftrees = __commonJS3((exports, module)
|
|
10209
|
+
require_inftrees = __commonJS3(function(exports, module) {
|
|
10213
10210
|
var utils = require_common(), MAXBITS = 15, ENOUGH_LENS = 852, ENOUGH_DISTS = 592, CODES = 0, LENS = 1, DISTS = 2, lbase = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], lext = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], dbase = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], dext = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
10214
10211
|
module.exports = function(type, lens, lens_index, codes, table, table_index, work, opts) {
|
|
10215
10212
|
var bits = opts.bits, len = 0, sym = 0, min = 0, max = 0, root = 0, curr = 0, drop = 0, left = 0, used = 0, huff = 0, incr, fill, low, mask, next, base = null, base_index = 0, end, count = new utils.Buf16(MAXBITS + 1), offs = new utils.Buf16(MAXBITS + 1), extra = null, extra_index = 0, here_bits, here_op, here_val;
|
|
@@ -10292,7 +10289,7 @@ var init_zlib = __esm(() => {
|
|
|
10292
10289
|
return opts.bits = root, 0;
|
|
10293
10290
|
};
|
|
10294
10291
|
});
|
|
10295
|
-
require_inflate = __commonJS3((exports)
|
|
10292
|
+
require_inflate = __commonJS3(function(exports) {
|
|
10296
10293
|
var utils = require_common(), adler32 = require_adler32(), crc32 = require_crc32(), inflate_fast = require_inffast(), inflate_table = require_inftrees(), CODES = 0, LENS = 1, DISTS = 2, Z_FINISH = 4, Z_BLOCK = 5, Z_TREES = 6, Z_OK = 0, Z_STREAM_END = 1, Z_NEED_DICT = 2, Z_STREAM_ERROR = -2, Z_DATA_ERROR = -3, Z_MEM_ERROR = -4, Z_BUF_ERROR = -5, Z_DEFLATED = 8, HEAD = 1, FLAGS = 2, TIME = 3, OS = 4, EXLEN = 5, EXTRA = 6, NAME = 7, COMMENT = 8, HCRC = 9, DICTID = 10, DICT = 11, TYPE = 12, TYPEDO = 13, STORED = 14, COPY_ = 15, COPY = 16, TABLE = 17, LENLENS = 18, CODELENS = 19, LEN_ = 20, LEN = 21, LENEXT = 22, DIST = 23, DISTEXT = 24, MATCH = 25, LIT = 26, CHECK = 27, LENGTH = 28, DONE = 29, BAD = 30, MEM = 31, SYNC = 32, ENOUGH_LENS = 852, ENOUGH_DISTS = 592, MAX_WBITS = 15, DEF_WBITS = MAX_WBITS;
|
|
10297
10294
|
function zswap32(q) {
|
|
10298
10295
|
return (q >>> 24 & 255) + (q >>> 8 & 65280) + ((q & 65280) << 8) + ((q & 255) << 24);
|
|
@@ -10922,10 +10919,10 @@ var init_zlib = __esm(() => {
|
|
|
10922
10919
|
exports.inflateSetDictionary = inflateSetDictionary;
|
|
10923
10920
|
exports.inflateInfo = "pako inflate (from Nodeca project)";
|
|
10924
10921
|
});
|
|
10925
|
-
require_constants = __commonJS3((exports, module)
|
|
10922
|
+
require_constants = __commonJS3(function(exports, module) {
|
|
10926
10923
|
module.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
|
|
10927
10924
|
});
|
|
10928
|
-
require_binding = __commonJS3((exports)
|
|
10925
|
+
require_binding = __commonJS3(function(exports) {
|
|
10929
10926
|
var assert = (init_assert(), __toCommonJS(exports_assert)), Zstream = require_zstream(), zlib_deflate = require_deflate(), zlib_inflate = require_inflate(), constants = require_constants();
|
|
10930
10927
|
for (key in constants)
|
|
10931
10928
|
exports[key] = constants[key];
|
|
@@ -11131,7 +11128,7 @@ var init_zlib = __esm(() => {
|
|
|
11131
11128
|
};
|
|
11132
11129
|
exports.Zlib = Zlib;
|
|
11133
11130
|
});
|
|
11134
|
-
require_lib = __commonJS3((exports)
|
|
11131
|
+
require_lib = __commonJS3(function(exports) {
|
|
11135
11132
|
var Buffer2 = (init_buffer(), __toCommonJS(exports_buffer)).Buffer, Transform = require_stream().Transform, binding = require_binding(), util = (init_util(), __toCommonJS(exports_util)), assert = (init_assert(), __toCommonJS(exports_assert)).ok, kMaxLength = (init_buffer(), __toCommonJS(exports_buffer)).kMaxLength, kRangeErrorMessage = "Cannot create final Buffer. It would be larger than 0x" + kMaxLength.toString(16) + " bytes";
|
|
11136
11133
|
binding.Z_MIN_WINDOWBITS = 8;
|
|
11137
11134
|
binding.Z_MAX_WINDOWBITS = 15;
|
|
@@ -11475,8 +11472,8 @@ var init_zlib = __esm(() => {
|
|
|
11475
11472
|
});
|
|
11476
11473
|
exports_zlib = {};
|
|
11477
11474
|
__export2(exports_zlib, { default: () => import_browserify_zlib.default });
|
|
11478
|
-
__reExport(exports_zlib, __toESM3(require_lib()
|
|
11479
|
-
import_browserify_zlib = __toESM3(require_lib()
|
|
11475
|
+
__reExport(exports_zlib, __toESM3(require_lib()));
|
|
11476
|
+
import_browserify_zlib = __toESM3(require_lib());
|
|
11480
11477
|
export_default = import_browserify_zlib.default;
|
|
11481
11478
|
});
|
|
11482
11479
|
|
|
@@ -13646,8 +13643,8 @@ function parse(path) {
|
|
|
13646
13643
|
var ret = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
13647
13644
|
if (path.length === 0)
|
|
13648
13645
|
return ret;
|
|
13649
|
-
var code = path.charCodeAt(0),
|
|
13650
|
-
if (
|
|
13646
|
+
var code = path.charCodeAt(0), isAbsolute = code === 47, start;
|
|
13647
|
+
if (isAbsolute)
|
|
13651
13648
|
ret.root = "/", start = 1;
|
|
13652
13649
|
else
|
|
13653
13650
|
start = 0;
|
|
@@ -13672,12 +13669,12 @@ function parse(path) {
|
|
|
13672
13669
|
}
|
|
13673
13670
|
if (startDot === -1 || end === -1 || preDotState === 0 || preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
13674
13671
|
if (end !== -1)
|
|
13675
|
-
if (startPart === 0 &&
|
|
13672
|
+
if (startPart === 0 && isAbsolute)
|
|
13676
13673
|
ret.base = ret.name = path.slice(1, end);
|
|
13677
13674
|
else
|
|
13678
13675
|
ret.base = ret.name = path.slice(startPart, end);
|
|
13679
13676
|
} else {
|
|
13680
|
-
if (startPart === 0 &&
|
|
13677
|
+
if (startPart === 0 && isAbsolute)
|
|
13681
13678
|
ret.name = path.slice(1, startDot), ret.base = path.slice(1, end);
|
|
13682
13679
|
else
|
|
13683
13680
|
ret.name = path.slice(startPart, startDot), ret.base = path.slice(startPart, end);
|
|
@@ -13685,7 +13682,7 @@ function parse(path) {
|
|
|
13685
13682
|
}
|
|
13686
13683
|
if (startPart > 0)
|
|
13687
13684
|
ret.dir = path.slice(0, startPart - 1);
|
|
13688
|
-
else if (
|
|
13685
|
+
else if (isAbsolute)
|
|
13689
13686
|
ret.dir = "/";
|
|
13690
13687
|
return ret;
|
|
13691
13688
|
}
|
|
@@ -13697,7 +13694,7 @@ var init_path = __esm(() => {
|
|
|
13697
13694
|
// tools/test/src/visual/compare.ts
|
|
13698
13695
|
var {readFileSync, writeFileSync} = (() => ({}));
|
|
13699
13696
|
|
|
13700
|
-
// ../../node_modules/.bun/pixelmatch@
|
|
13697
|
+
// ../../node_modules/.bun/pixelmatch@8.0.0/node_modules/pixelmatch/index.js
|
|
13701
13698
|
function pixelmatch(img1, img2, output, width, height, options = {}) {
|
|
13702
13699
|
const {
|
|
13703
13700
|
threshold = 0.1,
|
|
@@ -13705,22 +13702,26 @@ function pixelmatch(img1, img2, output, width, height, options = {}) {
|
|
|
13705
13702
|
aaColor = [255, 255, 0],
|
|
13706
13703
|
diffColor = [255, 0, 0],
|
|
13707
13704
|
checkerboard = true,
|
|
13705
|
+
windowSize = Infinity,
|
|
13708
13706
|
includeAA,
|
|
13709
13707
|
diffColorAlt,
|
|
13710
|
-
diffMask
|
|
13708
|
+
diffMask,
|
|
13709
|
+
ignoreMask
|
|
13711
13710
|
} = options;
|
|
13712
|
-
if (!isPixelData(img1) || !isPixelData(img2) || output && !isPixelData(output))
|
|
13711
|
+
if (!isPixelData(img1) || !isPixelData(img2) || output && !isPixelData(output) || ignoreMask && !isPixelData(ignoreMask))
|
|
13713
13712
|
throw new Error("Image data: Uint8Array, Uint8ClampedArray or Buffer expected.");
|
|
13714
13713
|
if (img1.length !== img2.length || output && output.length !== img1.length)
|
|
13715
13714
|
throw new Error(`Image sizes do not match. Image 1 size: ${img1.length}, image 2 size: ${img2.length}`);
|
|
13716
|
-
if (img1.length !== width * height * 4)
|
|
13717
|
-
throw new Error(`Image data size does not match width/height. Expecting ${width * height * 4}. Got ${img1.length}`);
|
|
13718
13715
|
const len = width * height;
|
|
13716
|
+
if (img1.length !== len * 4)
|
|
13717
|
+
throw new Error(`Image data size does not match width/height. Expecting ${len * 4}. Got ${img1.length}`);
|
|
13718
|
+
if (ignoreMask && ignoreMask.length !== len)
|
|
13719
|
+
throw new Error(`Ignore mask size does not match image width/height. Expecting ${len}. Got ${ignoreMask.length}`);
|
|
13719
13720
|
const a32 = new Uint32Array(img1.buffer, img1.byteOffset, len);
|
|
13720
13721
|
const b32 = new Uint32Array(img2.buffer, img2.byteOffset, len);
|
|
13721
13722
|
let identical = true;
|
|
13722
13723
|
for (let i = 0;i < len; i++) {
|
|
13723
|
-
if (a32[i] !== b32[i]) {
|
|
13724
|
+
if (a32[i] !== b32[i] && (!ignoreMask || !ignoreMask[i])) {
|
|
13724
13725
|
identical = false;
|
|
13725
13726
|
break;
|
|
13726
13727
|
}
|
|
@@ -13728,24 +13729,28 @@ function pixelmatch(img1, img2, output, width, height, options = {}) {
|
|
|
13728
13729
|
if (identical) {
|
|
13729
13730
|
if (output && !diffMask) {
|
|
13730
13731
|
for (let i = 0, pos = 0;i < len; i++, pos += 4)
|
|
13731
|
-
drawGrayPixel(
|
|
13732
|
+
drawGrayPixel(output, pos, img1, alpha);
|
|
13732
13733
|
}
|
|
13733
13734
|
return 0;
|
|
13734
13735
|
}
|
|
13735
|
-
const maxDelta = 35215 * threshold * threshold;
|
|
13736
13736
|
const [aaR, aaG, aaB] = aaColor;
|
|
13737
13737
|
const [diffR, diffG, diffB] = diffColor;
|
|
13738
13738
|
const [altR, altG, altB] = diffColorAlt || diffColor;
|
|
13739
13739
|
let diff = 0;
|
|
13740
|
+
const mask = Number.isFinite(windowSize) ? new Uint8Array(len) : null;
|
|
13741
|
+
let firstDiffY = -1;
|
|
13742
|
+
let lastDiffY = 0;
|
|
13740
13743
|
for (let i = 0, pos = 0;i < len; i++, pos += 4) {
|
|
13741
|
-
const delta = a32[i] === b32[i] ? 0 : colorDelta(img1, img2, pos,
|
|
13742
|
-
if (
|
|
13744
|
+
const delta = a32[i] === b32[i] || ignoreMask && ignoreMask[i] ? 0 : colorDelta(img1, img2, pos, checkerboard, threshold);
|
|
13745
|
+
if (delta) {
|
|
13743
13746
|
const x = i % width;
|
|
13744
13747
|
const y = i / width | 0;
|
|
13745
|
-
const isExcludedAA = !includeAA && (antialiased(img1, x, y, width, height, a32, b32
|
|
13748
|
+
const isExcludedAA = !includeAA && (antialiased(img1, x, y, width, height, a32, b32) || antialiased(img2, x, y, width, height, b32, a32));
|
|
13746
13749
|
if (isExcludedAA) {
|
|
13747
13750
|
if (output && !diffMask)
|
|
13748
13751
|
drawPixel(output, pos, aaR, aaG, aaB);
|
|
13752
|
+
if (mask)
|
|
13753
|
+
mask[i] = 2;
|
|
13749
13754
|
} else {
|
|
13750
13755
|
if (output) {
|
|
13751
13756
|
if (delta < 0) {
|
|
@@ -13754,22 +13759,66 @@ function pixelmatch(img1, img2, output, width, height, options = {}) {
|
|
|
13754
13759
|
drawPixel(output, pos, diffR, diffG, diffB);
|
|
13755
13760
|
}
|
|
13756
13761
|
}
|
|
13762
|
+
if (mask) {
|
|
13763
|
+
mask[i] = 1;
|
|
13764
|
+
if (firstDiffY < 0)
|
|
13765
|
+
firstDiffY = y;
|
|
13766
|
+
lastDiffY = y;
|
|
13767
|
+
}
|
|
13757
13768
|
diff++;
|
|
13758
13769
|
}
|
|
13759
13770
|
} else if (output && !diffMask) {
|
|
13760
|
-
drawGrayPixel(
|
|
13771
|
+
drawGrayPixel(output, pos, img1, alpha);
|
|
13772
|
+
}
|
|
13773
|
+
}
|
|
13774
|
+
if (!mask || !diff)
|
|
13775
|
+
return diff;
|
|
13776
|
+
const n = Math.min(Math.max(Math.floor(windowSize), 1), width, height);
|
|
13777
|
+
const colSum = new Uint16Array(width);
|
|
13778
|
+
let maxCount = 0;
|
|
13779
|
+
let bandTotal = 0;
|
|
13780
|
+
const yEnd = Math.min(height - 1, lastDiffY + n - 1);
|
|
13781
|
+
for (let y = firstDiffY;y <= yEnd; y++) {
|
|
13782
|
+
const rowStart = y * width;
|
|
13783
|
+
const leaving = y - n;
|
|
13784
|
+
if (leaving >= 0) {
|
|
13785
|
+
const leavingStart = leaving * width;
|
|
13786
|
+
for (let x = 0;x < width; x++) {
|
|
13787
|
+
const d = (mask[rowStart + x] & 1) - (mask[leavingStart + x] & 1);
|
|
13788
|
+
colSum[x] += d;
|
|
13789
|
+
bandTotal += d;
|
|
13790
|
+
}
|
|
13791
|
+
} else {
|
|
13792
|
+
for (let x = 0;x < width; x++) {
|
|
13793
|
+
const e = mask[rowStart + x] & 1;
|
|
13794
|
+
colSum[x] += e;
|
|
13795
|
+
bandTotal += e;
|
|
13796
|
+
}
|
|
13797
|
+
if (y < n - 1)
|
|
13798
|
+
continue;
|
|
13799
|
+
}
|
|
13800
|
+
if (bandTotal <= maxCount)
|
|
13801
|
+
continue;
|
|
13802
|
+
let windowSum = 0;
|
|
13803
|
+
for (let x = 0;x < n - 1; x++)
|
|
13804
|
+
windowSum += colSum[x];
|
|
13805
|
+
for (let x = n - 1;x < width; x++) {
|
|
13806
|
+
windowSum += colSum[x];
|
|
13807
|
+
if (windowSum > maxCount)
|
|
13808
|
+
maxCount = windowSum;
|
|
13809
|
+
windowSum -= colSum[x - n + 1];
|
|
13761
13810
|
}
|
|
13762
13811
|
}
|
|
13763
|
-
return
|
|
13812
|
+
return maxCount;
|
|
13764
13813
|
}
|
|
13765
13814
|
function isPixelData(arr) {
|
|
13766
13815
|
return ArrayBuffer.isView(arr) && arr.BYTES_PER_ELEMENT === 1;
|
|
13767
13816
|
}
|
|
13768
|
-
function antialiased(img, x1, y1, width, height, a32, b32
|
|
13769
|
-
const x0 =
|
|
13770
|
-
const y0 =
|
|
13771
|
-
const x2 =
|
|
13772
|
-
const y2 =
|
|
13817
|
+
function antialiased(img, x1, y1, width, height, a32, b32) {
|
|
13818
|
+
const x0 = x1 > 0 ? x1 - 1 : 0;
|
|
13819
|
+
const y0 = y1 > 0 ? y1 - 1 : 0;
|
|
13820
|
+
const x2 = x1 < width - 1 ? x1 + 1 : width - 1;
|
|
13821
|
+
const y2 = y1 < height - 1 ? y1 + 1 : height - 1;
|
|
13773
13822
|
const pos4 = (y1 * width + x1) * 4;
|
|
13774
13823
|
const cr = img[pos4];
|
|
13775
13824
|
const cg = img[pos4 + 1];
|
|
@@ -13782,11 +13831,13 @@ function antialiased(img, x1, y1, width, height, a32, b32, checkerboard) {
|
|
|
13782
13831
|
let minY = 0;
|
|
13783
13832
|
let maxX = 0;
|
|
13784
13833
|
let maxY = 0;
|
|
13834
|
+
const rowStep = width * 4;
|
|
13785
13835
|
for (let x = x0;x <= x2; x++) {
|
|
13786
|
-
|
|
13836
|
+
let m = (y0 * width + x) * 4;
|
|
13837
|
+
for (let y = y0;y <= y2; y++, m += rowStep) {
|
|
13787
13838
|
if (x === x1 && y === y1)
|
|
13788
13839
|
continue;
|
|
13789
|
-
const delta = brightnessDelta(img,
|
|
13840
|
+
const delta = brightnessDelta(img, m, cr, cg, cb, ca);
|
|
13790
13841
|
if (delta === 0) {
|
|
13791
13842
|
zeroes++;
|
|
13792
13843
|
if (zeroes > 2)
|
|
@@ -13807,54 +13858,180 @@ function antialiased(img, x1, y1, width, height, a32, b32, checkerboard) {
|
|
|
13807
13858
|
return hasManySiblings(a32, minX, minY, width, height) && hasManySiblings(b32, minX, minY, width, height) || hasManySiblings(a32, maxX, maxY, width, height) && hasManySiblings(b32, maxX, maxY, width, height);
|
|
13808
13859
|
}
|
|
13809
13860
|
function hasManySiblings(img, x1, y1, width, height) {
|
|
13810
|
-
const
|
|
13811
|
-
const
|
|
13812
|
-
|
|
13813
|
-
|
|
13814
|
-
|
|
13861
|
+
const pos1 = y1 * width + x1;
|
|
13862
|
+
const val = img[pos1];
|
|
13863
|
+
if (x1 > 0 && x1 < width - 1 && y1 > 0 && y1 < height - 1) {
|
|
13864
|
+
return +(val === img[pos1 - width - 1]) + +(val === img[pos1 - 1]) + +(val === img[pos1 + width - 1]) + +(val === img[pos1 - width]) + +(val === img[pos1 + width]) + +(val === img[pos1 - width + 1]) + +(val === img[pos1 + 1]) + +(val === img[pos1 + width + 1]) > 2;
|
|
13865
|
+
}
|
|
13866
|
+
const x0 = x1 > 0 ? x1 - 1 : 0;
|
|
13867
|
+
const y0 = y1 > 0 ? y1 - 1 : 0;
|
|
13868
|
+
const x2 = x1 < width - 1 ? x1 + 1 : width - 1;
|
|
13869
|
+
const y2 = y1 < height - 1 ? y1 + 1 : height - 1;
|
|
13815
13870
|
let zeroes = x1 === x0 || x1 === x2 || y1 === y0 || y1 === y2 ? 1 : 0;
|
|
13816
13871
|
for (let x = x0;x <= x2; x++) {
|
|
13817
|
-
|
|
13872
|
+
let pos = y0 * width + x;
|
|
13873
|
+
for (let y = y0;y <= y2; y++, pos += width) {
|
|
13818
13874
|
if (x === x1 && y === y1)
|
|
13819
13875
|
continue;
|
|
13820
|
-
zeroes += +(val === img[
|
|
13876
|
+
zeroes += +(val === img[pos]);
|
|
13821
13877
|
if (zeroes > 2)
|
|
13822
13878
|
return true;
|
|
13823
13879
|
}
|
|
13824
13880
|
}
|
|
13825
13881
|
return false;
|
|
13826
13882
|
}
|
|
13827
|
-
|
|
13883
|
+
var LIN = new Float64Array(257);
|
|
13884
|
+
for (let i = 0;i < 256; i++) {
|
|
13885
|
+
const c = i / 255;
|
|
13886
|
+
LIN[i] = c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
13887
|
+
}
|
|
13888
|
+
LIN[256] = LIN[255];
|
|
13889
|
+
var L_R = new Float64Array(256);
|
|
13890
|
+
var L_G = new Float64Array(256);
|
|
13891
|
+
var L_B = new Float64Array(256);
|
|
13892
|
+
var M_R = new Float64Array(256);
|
|
13893
|
+
var M_G = new Float64Array(256);
|
|
13894
|
+
var M_B = new Float64Array(256);
|
|
13895
|
+
var S_R = new Float64Array(256);
|
|
13896
|
+
var S_G = new Float64Array(256);
|
|
13897
|
+
var S_B = new Float64Array(256);
|
|
13898
|
+
for (let i = 0;i < 256; i++) {
|
|
13899
|
+
const lr = LIN[i];
|
|
13900
|
+
L_R[i] = 0.4122214708 * lr;
|
|
13901
|
+
M_R[i] = 0.2119034982 * lr;
|
|
13902
|
+
S_R[i] = 0.0883024619 * lr;
|
|
13903
|
+
L_G[i] = 0.5363325363 * lr;
|
|
13904
|
+
M_G[i] = 0.6806995451 * lr;
|
|
13905
|
+
S_G[i] = 0.2817188376 * lr;
|
|
13906
|
+
L_B[i] = 0.0514459929 * lr;
|
|
13907
|
+
M_B[i] = 0.1073969566 * lr;
|
|
13908
|
+
S_B[i] = 0.6299787005 * lr;
|
|
13909
|
+
}
|
|
13910
|
+
function linLUT(x) {
|
|
13911
|
+
const i = x | 0;
|
|
13912
|
+
return LIN[i] + (LIN[i + 1] - LIN[i]) * (x - i);
|
|
13913
|
+
}
|
|
13914
|
+
var CBRT_N = 4096;
|
|
13915
|
+
var CBRT = new Float64Array(CBRT_N + 2);
|
|
13916
|
+
for (let i = 0;i <= CBRT_N + 1; i++)
|
|
13917
|
+
CBRT[i] = Math.cbrt(i / CBRT_N);
|
|
13918
|
+
var CBRT_EXACT = 8;
|
|
13919
|
+
function cbrtLUT(x) {
|
|
13920
|
+
const t = x * CBRT_N;
|
|
13921
|
+
const i = t | 0;
|
|
13922
|
+
if (i < CBRT_EXACT)
|
|
13923
|
+
return Math.cbrt(x);
|
|
13924
|
+
return CBRT[i] + (CBRT[i + 1] - CBRT[i]) * (t - i);
|
|
13925
|
+
}
|
|
13926
|
+
var OKLAB_CACHE_BITS = 12;
|
|
13927
|
+
var OKLAB_CACHE_SHIFT = 32 - OKLAB_CACHE_BITS;
|
|
13928
|
+
var OKLAB_CACHE_SIZE = 1 << OKLAB_CACHE_BITS;
|
|
13929
|
+
var OKLAB_CACHE_KEYS = new Uint32Array(OKLAB_CACHE_SIZE);
|
|
13930
|
+
var OKLAB_CACHE_VALUES = new Float64Array(OKLAB_CACHE_SIZE * 4);
|
|
13931
|
+
var TOE_K1 = 0.206;
|
|
13932
|
+
var TOE_K2 = 0.03;
|
|
13933
|
+
var TOE_K3 = (1 + TOE_K1) / (1 + TOE_K2);
|
|
13934
|
+
function colorDelta(img1, img2, k, checkerboard, maxDelta) {
|
|
13828
13935
|
const r1 = img1[k];
|
|
13829
13936
|
const g1 = img1[k + 1];
|
|
13830
13937
|
const b1 = img1[k + 2];
|
|
13831
13938
|
const a1 = img1[k + 3];
|
|
13832
|
-
const r2 = img2[
|
|
13833
|
-
const g2 = img2[
|
|
13834
|
-
const b2 = img2[
|
|
13835
|
-
const a2 = img2[
|
|
13836
|
-
|
|
13837
|
-
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
|
|
13841
|
-
|
|
13842
|
-
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
|
|
13846
|
-
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13939
|
+
const r2 = img2[k];
|
|
13940
|
+
const g2 = img2[k + 1];
|
|
13941
|
+
const b2 = img2[k + 2];
|
|
13942
|
+
const a2 = img2[k + 3];
|
|
13943
|
+
if (a1 === 255 && a2 === 255) {
|
|
13944
|
+
return colorDeltaOpaque(r1, g1, b1, r2, g2, b2, maxDelta);
|
|
13945
|
+
}
|
|
13946
|
+
return colorDeltaTransparent(r1, g1, b1, a1, r2, g2, b2, a2, k, checkerboard, maxDelta);
|
|
13947
|
+
}
|
|
13948
|
+
function colorDeltaOpaque(r1, g1, b1, r2, g2, b2, maxDelta) {
|
|
13949
|
+
const key1 = r1 << 16 | g1 << 8 | b1;
|
|
13950
|
+
const slot1 = Math.imul(key1, 2654435761) >>> OKLAB_CACHE_SHIFT;
|
|
13951
|
+
const stored1 = key1 + 1;
|
|
13952
|
+
const offset1 = slot1 * 4;
|
|
13953
|
+
let l1, m1, s1, lr1;
|
|
13954
|
+
if (OKLAB_CACHE_KEYS[slot1] === stored1) {
|
|
13955
|
+
l1 = OKLAB_CACHE_VALUES[offset1];
|
|
13956
|
+
m1 = OKLAB_CACHE_VALUES[offset1 + 1];
|
|
13957
|
+
s1 = OKLAB_CACHE_VALUES[offset1 + 2];
|
|
13958
|
+
lr1 = OKLAB_CACHE_VALUES[offset1 + 3];
|
|
13959
|
+
} else {
|
|
13960
|
+
l1 = cbrtLUT(L_R[r1] + L_G[g1] + L_B[b1]);
|
|
13961
|
+
m1 = cbrtLUT(M_R[r1] + M_G[g1] + M_B[b1]);
|
|
13962
|
+
s1 = cbrtLUT(S_R[r1] + S_G[g1] + S_B[b1]);
|
|
13963
|
+
lr1 = lightness(l1, m1, s1);
|
|
13964
|
+
OKLAB_CACHE_KEYS[slot1] = stored1;
|
|
13965
|
+
OKLAB_CACHE_VALUES[offset1] = l1;
|
|
13966
|
+
OKLAB_CACHE_VALUES[offset1 + 1] = m1;
|
|
13967
|
+
OKLAB_CACHE_VALUES[offset1 + 2] = s1;
|
|
13968
|
+
OKLAB_CACHE_VALUES[offset1 + 3] = lr1;
|
|
13969
|
+
}
|
|
13970
|
+
const key2 = r2 << 16 | g2 << 8 | b2;
|
|
13971
|
+
const slot2 = Math.imul(key2, 2654435761) >>> OKLAB_CACHE_SHIFT;
|
|
13972
|
+
const stored2 = key2 + 1;
|
|
13973
|
+
const offset2 = slot2 * 4;
|
|
13974
|
+
let l2, m2, s2, lr2;
|
|
13975
|
+
if (OKLAB_CACHE_KEYS[slot2] === stored2) {
|
|
13976
|
+
l2 = OKLAB_CACHE_VALUES[offset2];
|
|
13977
|
+
m2 = OKLAB_CACHE_VALUES[offset2 + 1];
|
|
13978
|
+
s2 = OKLAB_CACHE_VALUES[offset2 + 2];
|
|
13979
|
+
lr2 = OKLAB_CACHE_VALUES[offset2 + 3];
|
|
13980
|
+
} else {
|
|
13981
|
+
l2 = cbrtLUT(L_R[r2] + L_G[g2] + L_B[b2]);
|
|
13982
|
+
m2 = cbrtLUT(M_R[r2] + M_G[g2] + M_B[b2]);
|
|
13983
|
+
s2 = cbrtLUT(S_R[r2] + S_G[g2] + S_B[b2]);
|
|
13984
|
+
lr2 = lightness(l2, m2, s2);
|
|
13985
|
+
OKLAB_CACHE_KEYS[slot2] = stored2;
|
|
13986
|
+
OKLAB_CACHE_VALUES[offset2] = l2;
|
|
13987
|
+
OKLAB_CACHE_VALUES[offset2 + 1] = m2;
|
|
13988
|
+
OKLAB_CACHE_VALUES[offset2 + 2] = s2;
|
|
13989
|
+
OKLAB_CACHE_VALUES[offset2 + 3] = lr2;
|
|
13850
13990
|
}
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
|
|
13855
|
-
|
|
13991
|
+
return oklabHyabDelta(lr1 - lr2, l1 - l2, m1 - m2, s1 - s2, maxDelta);
|
|
13992
|
+
}
|
|
13993
|
+
function colorDeltaTransparent(r1, g1, b1, a1, r2, g2, b2, a2, k, checkerboard, maxDelta) {
|
|
13994
|
+
let rb = 255, gb = 255, bb = 255;
|
|
13995
|
+
if (checkerboard) {
|
|
13996
|
+
const h = Math.imul(k >> 2, 2654435761);
|
|
13997
|
+
rb = 48 + 159 * (h >>> 31);
|
|
13998
|
+
gb = 48 + 159 * (h >>> 30 & 1);
|
|
13999
|
+
bb = 48 + 159 * (h >>> 29 & 1);
|
|
14000
|
+
}
|
|
14001
|
+
r1 = (r1 * a1 + rb * (255 - a1)) / 255;
|
|
14002
|
+
g1 = (g1 * a1 + gb * (255 - a1)) / 255;
|
|
14003
|
+
b1 = (b1 * a1 + bb * (255 - a1)) / 255;
|
|
14004
|
+
r2 = (r2 * a2 + rb * (255 - a2)) / 255;
|
|
14005
|
+
g2 = (g2 * a2 + gb * (255 - a2)) / 255;
|
|
14006
|
+
b2 = (b2 * a2 + bb * (255 - a2)) / 255;
|
|
14007
|
+
const lr1 = linLUT(r1), lg1 = linLUT(g1), lb1 = linLUT(b1);
|
|
14008
|
+
const lr2 = linLUT(r2), lg2 = linLUT(g2), lb2 = linLUT(b2);
|
|
14009
|
+
const l1 = cbrtLUT(0.4122214708 * lr1 + 0.5363325363 * lg1 + 0.0514459929 * lb1);
|
|
14010
|
+
const m1 = cbrtLUT(0.2119034982 * lr1 + 0.6806995451 * lg1 + 0.1073969566 * lb1);
|
|
14011
|
+
const s1 = cbrtLUT(0.0883024619 * lr1 + 0.2817188376 * lg1 + 0.6299787005 * lb1);
|
|
14012
|
+
const l2 = cbrtLUT(0.4122214708 * lr2 + 0.5363325363 * lg2 + 0.0514459929 * lb2);
|
|
14013
|
+
const m2 = cbrtLUT(0.2119034982 * lr2 + 0.6806995451 * lg2 + 0.1073969566 * lb2);
|
|
14014
|
+
const s2 = cbrtLUT(0.0883024619 * lr2 + 0.2817188376 * lg2 + 0.6299787005 * lb2);
|
|
14015
|
+
const Lr1 = lightness(l1, m1, s1);
|
|
14016
|
+
const Lr2 = lightness(l2, m2, s2);
|
|
14017
|
+
return oklabHyabDelta(Lr1 - Lr2, l1 - l2, m1 - m2, s1 - s2, maxDelta);
|
|
14018
|
+
}
|
|
14019
|
+
function oklabHyabDelta(dLr, dl, dm, ds, maxDelta) {
|
|
14020
|
+
const rest = maxDelta - Math.abs(dLr);
|
|
14021
|
+
if (rest >= 0) {
|
|
14022
|
+
const da = 1.9779984951 * dl - 2.428592205 * dm + 0.4505937099 * ds;
|
|
14023
|
+
const db = 0.0259040371 * dl + 0.7827717662 * dm - 0.808675766 * ds;
|
|
14024
|
+
if (da * da + db * db <= rest * rest)
|
|
14025
|
+
return 0;
|
|
14026
|
+
}
|
|
14027
|
+
return dLr > 0 ? -1 : 1;
|
|
14028
|
+
}
|
|
14029
|
+
function lightness(l, m, s) {
|
|
14030
|
+
const L = 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s;
|
|
14031
|
+
const x = TOE_K3 * L - TOE_K1;
|
|
14032
|
+
return 0.5 * (x + Math.sqrt(x * x + 4 * TOE_K2 * TOE_K3 * L));
|
|
13856
14033
|
}
|
|
13857
|
-
function brightnessDelta(img,
|
|
14034
|
+
function brightnessDelta(img, m, r1, g1, b1, a1) {
|
|
13858
14035
|
const r2 = img[m];
|
|
13859
14036
|
const g2 = img[m + 1];
|
|
13860
14037
|
const b2 = img[m + 2];
|
|
@@ -13866,15 +14043,11 @@ function brightnessDelta(img, k, m, r1, g1, b1, a1, checkerboard) {
|
|
|
13866
14043
|
if (!dr && !dg && !db && !da)
|
|
13867
14044
|
return 0;
|
|
13868
14045
|
if (a1 < 255 || a2 < 255) {
|
|
13869
|
-
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
|
|
13873
|
-
|
|
13874
|
-
}
|
|
13875
|
-
dr = (r1 * a1 - r2 * a2 - rb * da) / 255;
|
|
13876
|
-
dg = (g1 * a1 - g2 * a2 - gb * da) / 255;
|
|
13877
|
-
db = (b1 * a1 - b2 * a2 - bb * da) / 255;
|
|
14046
|
+
dr = (r1 * a1 - r2 * a2 - 255 * da) / 255;
|
|
14047
|
+
dg = (g1 * a1 - g2 * a2 - 255 * da) / 255;
|
|
14048
|
+
db = (b1 * a1 - b2 * a2 - 255 * da) / 255;
|
|
14049
|
+
const d = dr * 0.29889531 + dg * 0.58662247 + db * 0.11448223;
|
|
14050
|
+
return d === 0 && da ? da / 2 : d;
|
|
13878
14051
|
}
|
|
13879
14052
|
return dr * 0.29889531 + dg * 0.58662247 + db * 0.11448223;
|
|
13880
14053
|
}
|
|
@@ -13884,7 +14057,7 @@ function drawPixel(output, pos, r, g, b) {
|
|
|
13884
14057
|
output[pos + 2] = b;
|
|
13885
14058
|
output[pos + 3] = 255;
|
|
13886
14059
|
}
|
|
13887
|
-
function drawGrayPixel(
|
|
14060
|
+
function drawGrayPixel(output, i, img, alpha) {
|
|
13888
14061
|
const val = 255 + (img[i] * 0.29889531 + img[i + 1] * 0.58662247 + img[i + 2] * 0.11448223 - 255) * alpha * img[i + 3] / 255;
|
|
13889
14062
|
drawPixel(output, i, val, val, val);
|
|
13890
14063
|
}
|
|
@@ -14016,4 +14189,4 @@ export {
|
|
|
14016
14189
|
resolveVisualPaths
|
|
14017
14190
|
};
|
|
14018
14191
|
|
|
14019
|
-
//# debugId=
|
|
14192
|
+
//# debugId=6DA2B08A2421170464756E2164756E21
|