@weblock-wallet/sdk 0.1.26 → 0.1.27
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/index.cjs +567 -508
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +566 -507
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
|
|
1
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
|
|
2
2
|
var exports$2 = {};
|
|
3
3
|
var _dewExec$2 = false;
|
|
4
4
|
function dew$2() {
|
|
@@ -1694,7 +1694,7 @@ function dew() {
|
|
|
1694
1694
|
function numberIsNaN(obj) {
|
|
1695
1695
|
return obj !== obj;
|
|
1696
1696
|
}
|
|
1697
|
-
const hexSliceLookupTable = function() {
|
|
1697
|
+
const hexSliceLookupTable = (function() {
|
|
1698
1698
|
const alphabet = "0123456789abcdef";
|
|
1699
1699
|
const table = new Array(256);
|
|
1700
1700
|
for (let i5 = 0; i5 < 16; ++i5) {
|
|
@@ -1704,7 +1704,7 @@ function dew() {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
1706
|
return table;
|
|
1707
|
-
}();
|
|
1707
|
+
})();
|
|
1708
1708
|
function defineBigIntMethod(fn) {
|
|
1709
1709
|
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
1710
1710
|
}
|
|
@@ -1714,7 +1714,7 @@ function dew() {
|
|
|
1714
1714
|
return exports;
|
|
1715
1715
|
}
|
|
1716
1716
|
|
|
1717
|
-
// node_modules/@jspm/core/nodelibs/browser/buffer.js
|
|
1717
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/buffer.js
|
|
1718
1718
|
var exports2 = dew();
|
|
1719
1719
|
exports2["Buffer"];
|
|
1720
1720
|
exports2["SlowBuffer"];
|
|
@@ -1890,7 +1890,7 @@ var AuthService = class {
|
|
|
1890
1890
|
};
|
|
1891
1891
|
|
|
1892
1892
|
// src/core/services/wallet.ts
|
|
1893
|
-
import { Wallet } from "ethers";
|
|
1893
|
+
import { Interface, Wallet } from "ethers";
|
|
1894
1894
|
import { generateMnemonic, mnemonicToSeed } from "bip39";
|
|
1895
1895
|
|
|
1896
1896
|
// src/utils/secrets.ts
|
|
@@ -1913,7 +1913,7 @@ var Secrets = {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
};
|
|
1915
1915
|
|
|
1916
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js
|
|
1916
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js
|
|
1917
1917
|
var exports$22 = {};
|
|
1918
1918
|
var _dewExec$12 = false;
|
|
1919
1919
|
function dew$12() {
|
|
@@ -2215,7 +2215,7 @@ var exports3 = dew2();
|
|
|
2215
2215
|
exports3["StringDecoder"];
|
|
2216
2216
|
var StringDecoder = exports3.StringDecoder;
|
|
2217
2217
|
|
|
2218
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-DEMDiNwt.js
|
|
2218
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DEMDiNwt.js
|
|
2219
2219
|
function unimplemented(name2) {
|
|
2220
2220
|
throw new Error("Node.js process " + name2 + " is not supported by JSPM core outside of Node.js");
|
|
2221
2221
|
}
|
|
@@ -2498,7 +2498,7 @@ var process = {
|
|
|
2498
2498
|
setSourceMapsEnabled
|
|
2499
2499
|
};
|
|
2500
2500
|
|
|
2501
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-CkFCi-G1.js
|
|
2501
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CkFCi-G1.js
|
|
2502
2502
|
var exports4 = {};
|
|
2503
2503
|
var _dewExec3 = false;
|
|
2504
2504
|
function dew3() {
|
|
@@ -2533,7 +2533,7 @@ function dew3() {
|
|
|
2533
2533
|
return exports4;
|
|
2534
2534
|
}
|
|
2535
2535
|
|
|
2536
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-tHuMsdT0.js
|
|
2536
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-tHuMsdT0.js
|
|
2537
2537
|
var e;
|
|
2538
2538
|
var t;
|
|
2539
2539
|
var n = "object" == typeof Reflect ? Reflect : null;
|
|
@@ -2580,10 +2580,10 @@ function h(e7, t5, n5) {
|
|
|
2580
2580
|
var r5 = e7._events;
|
|
2581
2581
|
if (void 0 === r5) return [];
|
|
2582
2582
|
var i5 = r5[t5];
|
|
2583
|
-
return void 0 === i5 ? [] : "function" == typeof i5 ? n5 ? [i5.listener || i5] : [i5] : n5 ? function(e8) {
|
|
2583
|
+
return void 0 === i5 ? [] : "function" == typeof i5 ? n5 ? [i5.listener || i5] : [i5] : n5 ? (function(e8) {
|
|
2584
2584
|
for (var t6 = new Array(e8.length), n6 = 0; n6 < t6.length; ++n6) t6[n6] = e8[n6].listener || e8[n6];
|
|
2585
2585
|
return t6;
|
|
2586
|
-
}(i5) : c(i5, i5.length);
|
|
2586
|
+
})(i5) : c(i5, i5.length);
|
|
2587
2587
|
}
|
|
2588
2588
|
function p(e7) {
|
|
2589
2589
|
var t5 = this._events;
|
|
@@ -2648,10 +2648,10 @@ Object.defineProperty(o, "defaultMaxListeners", { enumerable: true, get: functio
|
|
|
2648
2648
|
break;
|
|
2649
2649
|
}
|
|
2650
2650
|
if (i5 < 0) return this;
|
|
2651
|
-
0 === i5 ? n5.shift() : !function(e8, t6) {
|
|
2651
|
+
0 === i5 ? n5.shift() : !(function(e8, t6) {
|
|
2652
2652
|
for (; t6 + 1 < e8.length; t6++) e8[t6] = e8[t6 + 1];
|
|
2653
2653
|
e8.pop();
|
|
2654
|
-
}(n5, i5), 1 === n5.length && (r5[e7] = n5[0]), void 0 !== r5.removeListener && this.emit("removeListener", e7, s5 || t5);
|
|
2654
|
+
})(n5, i5), 1 === n5.length && (r5[e7] = n5[0]), void 0 !== r5.removeListener && this.emit("removeListener", e7, s5 || t5);
|
|
2655
2655
|
}
|
|
2656
2656
|
return this;
|
|
2657
2657
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.removeAllListeners = function(e7) {
|
|
@@ -2685,7 +2685,7 @@ y.defaultMaxListeners;
|
|
|
2685
2685
|
y.init;
|
|
2686
2686
|
y.listenerCount;
|
|
2687
2687
|
|
|
2688
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-DtDiafJB.js
|
|
2688
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-DtDiafJB.js
|
|
2689
2689
|
y.once = function(emitter, event) {
|
|
2690
2690
|
return new Promise((resolve, reject) => {
|
|
2691
2691
|
function eventListener(...args) {
|
|
@@ -2767,7 +2767,7 @@ y.on = function(emitter, event) {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
};
|
|
2769
2769
|
|
|
2770
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js
|
|
2770
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js
|
|
2771
2771
|
var e$2;
|
|
2772
2772
|
var t$3;
|
|
2773
2773
|
var n$2;
|
|
@@ -2792,7 +2792,7 @@ function c$2(e7) {
|
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
|
-
!function() {
|
|
2795
|
+
!(function() {
|
|
2796
2796
|
try {
|
|
2797
2797
|
t$3 = "function" == typeof setTimeout ? setTimeout : i$2;
|
|
2798
2798
|
} catch (e7) {
|
|
@@ -2803,7 +2803,7 @@ function c$2(e7) {
|
|
|
2803
2803
|
} catch (e7) {
|
|
2804
2804
|
n$2 = u$2;
|
|
2805
2805
|
}
|
|
2806
|
-
}();
|
|
2806
|
+
})();
|
|
2807
2807
|
var l$2;
|
|
2808
2808
|
var s$1 = [];
|
|
2809
2809
|
var f$1 = false;
|
|
@@ -2819,7 +2819,7 @@ function d$1() {
|
|
|
2819
2819
|
for (l$2 = s$1, s$1 = []; ++a$1 < t5; ) l$2 && l$2[a$1].run();
|
|
2820
2820
|
a$1 = -1, t5 = s$1.length;
|
|
2821
2821
|
}
|
|
2822
|
-
l$2 = null, f$1 = false, function(e8) {
|
|
2822
|
+
l$2 = null, f$1 = false, (function(e8) {
|
|
2823
2823
|
if (n$2 === clearTimeout) return clearTimeout(e8);
|
|
2824
2824
|
if ((n$2 === u$2 || !n$2) && clearTimeout) return n$2 = clearTimeout, clearTimeout(e8);
|
|
2825
2825
|
try {
|
|
@@ -2831,7 +2831,7 @@ function d$1() {
|
|
|
2831
2831
|
return n$2.call(this || r$2, e8);
|
|
2832
2832
|
}
|
|
2833
2833
|
}
|
|
2834
|
-
}(e7);
|
|
2834
|
+
})(e7);
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
2837
|
function m$1(e7, t5) {
|
|
@@ -2886,9 +2886,9 @@ var o2 = function(o5) {
|
|
|
2886
2886
|
var n2 = function(t5) {
|
|
2887
2887
|
return !!o2(t5) || null !== t5 && "object" == typeof t5 && "number" == typeof t5.length && t5.length >= 0 && "[object Array]" !== e2.call(t5) && "[object Function]" === e2.call(t5.callee);
|
|
2888
2888
|
};
|
|
2889
|
-
var r2 = function() {
|
|
2889
|
+
var r2 = (function() {
|
|
2890
2890
|
return o2(arguments);
|
|
2891
|
-
}();
|
|
2891
|
+
})();
|
|
2892
2892
|
o2.isLegacyArguments = n2;
|
|
2893
2893
|
var l2 = r2 ? o2 : n2;
|
|
2894
2894
|
var t$1 = Object.prototype.toString;
|
|
@@ -2896,13 +2896,13 @@ var o$1 = Function.prototype.toString;
|
|
|
2896
2896
|
var n$1 = /^\s*(?:function)?\*/;
|
|
2897
2897
|
var e$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag;
|
|
2898
2898
|
var r$1 = Object.getPrototypeOf;
|
|
2899
|
-
var c2 = function() {
|
|
2899
|
+
var c2 = (function() {
|
|
2900
2900
|
if (!e$1) return false;
|
|
2901
2901
|
try {
|
|
2902
2902
|
return Function("return function*() {}")();
|
|
2903
2903
|
} catch (t5) {
|
|
2904
2904
|
}
|
|
2905
|
-
}();
|
|
2905
|
+
})();
|
|
2906
2906
|
var u2 = c2 ? r$1(c2) : {};
|
|
2907
2907
|
var i2 = function(c5) {
|
|
2908
2908
|
return "function" == typeof c5 && (!!n$1.test(o$1.call(c5)) || (e$1 ? r$1(c5) === u2 : "[object GeneratorFunction]" === t$1.call(c5)));
|
|
@@ -3054,11 +3054,11 @@ o$2.isArgumentsObject = f2, o$2.isGeneratorFunction = a2, o$2.isPromise = functi
|
|
|
3054
3054
|
return H(e7) || Z(e7) || q(e7) || K(e7) || L(e7);
|
|
3055
3055
|
}, o$2.isAnyArrayBuffer = function(e7) {
|
|
3056
3056
|
return l$1 && (V(e7) || _(e7));
|
|
3057
|
-
}, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(e7) {
|
|
3057
|
+
}, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach((function(e7) {
|
|
3058
3058
|
Object.defineProperty(o$2, e7, { enumerable: false, value: function() {
|
|
3059
3059
|
throw new Error(e7 + " is not supported in userland");
|
|
3060
3060
|
} });
|
|
3061
|
-
});
|
|
3061
|
+
}));
|
|
3062
3062
|
var Q = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : global;
|
|
3063
3063
|
var X = {};
|
|
3064
3064
|
var Y = T$1;
|
|
@@ -3073,7 +3073,7 @@ X.format = function(e7) {
|
|
|
3073
3073
|
return t5.join(" ");
|
|
3074
3074
|
}
|
|
3075
3075
|
r5 = 1;
|
|
3076
|
-
for (var n5 = arguments, i5 = n5.length, o5 = String(e7).replace(te, function(e8) {
|
|
3076
|
+
for (var n5 = arguments, i5 = n5.length, o5 = String(e7).replace(te, (function(e8) {
|
|
3077
3077
|
if ("%%" === e8) return "%";
|
|
3078
3078
|
if (r5 >= i5) return e8;
|
|
3079
3079
|
switch (e8) {
|
|
@@ -3090,7 +3090,7 @@ X.format = function(e7) {
|
|
|
3090
3090
|
default:
|
|
3091
3091
|
return e8;
|
|
3092
3092
|
}
|
|
3093
|
-
}), u5 = n5[r5]; r5 < i5; u5 = n5[++r5]) le(u5) || !he(u5) ? o5 += " " + u5 : o5 += " " + oe(u5);
|
|
3093
|
+
})), u5 = n5[r5]; r5 < i5; u5 = n5[++r5]) le(u5) || !he(u5) ? o5 += " " + u5 : o5 += " " + oe(u5);
|
|
3094
3094
|
return o5;
|
|
3095
3095
|
}, X.deprecate = function(e7, t5) {
|
|
3096
3096
|
if (void 0 !== Y && true === Y.noDeprecation) return e7;
|
|
@@ -3129,7 +3129,7 @@ function ae(e7, t5, r5) {
|
|
|
3129
3129
|
var n5 = t5.inspect(r5, e7);
|
|
3130
3130
|
return ge(n5) || (n5 = ae(e7, n5, r5)), n5;
|
|
3131
3131
|
}
|
|
3132
|
-
var i5 = function(e8, t6) {
|
|
3132
|
+
var i5 = (function(e8, t6) {
|
|
3133
3133
|
if (be(t6)) return e8.stylize("undefined", "undefined");
|
|
3134
3134
|
if (ge(t6)) {
|
|
3135
3135
|
var r6 = "'" + JSON.stringify(t6).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
@@ -3138,14 +3138,14 @@ function ae(e7, t5, r5) {
|
|
|
3138
3138
|
if (de(t6)) return e8.stylize("" + t6, "number");
|
|
3139
3139
|
if (ye(t6)) return e8.stylize("" + t6, "boolean");
|
|
3140
3140
|
if (le(t6)) return e8.stylize("null", "null");
|
|
3141
|
-
}(e7, t5);
|
|
3141
|
+
})(e7, t5);
|
|
3142
3142
|
if (i5) return i5;
|
|
3143
|
-
var o5 = Object.keys(t5), u5 = function(e8) {
|
|
3143
|
+
var o5 = Object.keys(t5), u5 = (function(e8) {
|
|
3144
3144
|
var t6 = {};
|
|
3145
|
-
return e8.forEach(function(e9, r6) {
|
|
3145
|
+
return e8.forEach((function(e9, r6) {
|
|
3146
3146
|
t6[e9] = true;
|
|
3147
|
-
}), t6;
|
|
3148
|
-
}(o5);
|
|
3147
|
+
})), t6;
|
|
3148
|
+
})(o5);
|
|
3149
3149
|
if (e7.showHidden && (o5 = Object.getOwnPropertyNames(t5)), Ae(t5) && (o5.indexOf("message") >= 0 || o5.indexOf("description") >= 0)) return ce(t5);
|
|
3150
3150
|
if (0 === o5.length) {
|
|
3151
3151
|
if (we(t5)) {
|
|
@@ -3158,31 +3158,31 @@ function ae(e7, t5, r5) {
|
|
|
3158
3158
|
}
|
|
3159
3159
|
var a5, c5 = "", s5 = false, p5 = ["{", "}"];
|
|
3160
3160
|
(pe(t5) && (s5 = true, p5 = ["[", "]"]), we(t5)) && (c5 = " [Function" + (t5.name ? ": " + t5.name : "") + "]");
|
|
3161
|
-
return me(t5) && (c5 = " " + RegExp.prototype.toString.call(t5)), je(t5) && (c5 = " " + Date.prototype.toUTCString.call(t5)), Ae(t5) && (c5 = " " + ce(t5)), 0 !== o5.length || s5 && 0 != t5.length ? r5 < 0 ? me(t5) ? e7.stylize(RegExp.prototype.toString.call(t5), "regexp") : e7.stylize("[Object]", "special") : (e7.seen.push(t5), a5 = s5 ? function(e8, t6, r6, n6, i6) {
|
|
3161
|
+
return me(t5) && (c5 = " " + RegExp.prototype.toString.call(t5)), je(t5) && (c5 = " " + Date.prototype.toUTCString.call(t5)), Ae(t5) && (c5 = " " + ce(t5)), 0 !== o5.length || s5 && 0 != t5.length ? r5 < 0 ? me(t5) ? e7.stylize(RegExp.prototype.toString.call(t5), "regexp") : e7.stylize("[Object]", "special") : (e7.seen.push(t5), a5 = s5 ? (function(e8, t6, r6, n6, i6) {
|
|
3162
3162
|
for (var o6 = [], u6 = 0, f7 = t6.length; u6 < f7; ++u6) ke(t6, String(u6)) ? o6.push(se(e8, t6, r6, n6, String(u6), true)) : o6.push("");
|
|
3163
|
-
return i6.forEach(function(i7) {
|
|
3163
|
+
return i6.forEach((function(i7) {
|
|
3164
3164
|
i7.match(/^\d+$/) || o6.push(se(e8, t6, r6, n6, i7, true));
|
|
3165
|
-
}), o6;
|
|
3166
|
-
}(e7, t5, r5, u5, o5) : o5.map(function(n6) {
|
|
3165
|
+
})), o6;
|
|
3166
|
+
})(e7, t5, r5, u5, o5) : o5.map((function(n6) {
|
|
3167
3167
|
return se(e7, t5, r5, u5, n6, s5);
|
|
3168
|
-
}), e7.seen.pop(), function(e8, t6, r6) {
|
|
3168
|
+
})), e7.seen.pop(), (function(e8, t6, r6) {
|
|
3169
3169
|
var n6 = 0;
|
|
3170
|
-
if (e8.reduce(function(e9, t7) {
|
|
3170
|
+
if (e8.reduce((function(e9, t7) {
|
|
3171
3171
|
return n6++, t7.indexOf("\n") >= 0 && n6++, e9 + t7.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3172
|
-
}, 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e8.join(",\n ") + " " + r6[1];
|
|
3172
|
+
}), 0) > 60) return r6[0] + ("" === t6 ? "" : t6 + "\n ") + " " + e8.join(",\n ") + " " + r6[1];
|
|
3173
3173
|
return r6[0] + t6 + " " + e8.join(", ") + " " + r6[1];
|
|
3174
|
-
}(a5, c5, p5)) : p5[0] + c5 + p5[1];
|
|
3174
|
+
})(a5, c5, p5)) : p5[0] + c5 + p5[1];
|
|
3175
3175
|
}
|
|
3176
3176
|
function ce(e7) {
|
|
3177
3177
|
return "[" + Error.prototype.toString.call(e7) + "]";
|
|
3178
3178
|
}
|
|
3179
3179
|
function se(e7, t5, r5, n5, i5, o5) {
|
|
3180
3180
|
var u5, f6, a5;
|
|
3181
|
-
if ((a5 = Object.getOwnPropertyDescriptor(t5, i5) || { value: t5[i5] }).get ? f6 = a5.set ? e7.stylize("[Getter/Setter]", "special") : e7.stylize("[Getter]", "special") : a5.set && (f6 = e7.stylize("[Setter]", "special")), ke(n5, i5) || (u5 = "[" + i5 + "]"), f6 || (e7.seen.indexOf(a5.value) < 0 ? (f6 = le(r5) ? ae(e7, a5.value, null) : ae(e7, a5.value, r5 - 1)).indexOf("\n") > -1 && (f6 = o5 ? f6.split("\n").map(function(e8) {
|
|
3181
|
+
if ((a5 = Object.getOwnPropertyDescriptor(t5, i5) || { value: t5[i5] }).get ? f6 = a5.set ? e7.stylize("[Getter/Setter]", "special") : e7.stylize("[Getter]", "special") : a5.set && (f6 = e7.stylize("[Setter]", "special")), ke(n5, i5) || (u5 = "[" + i5 + "]"), f6 || (e7.seen.indexOf(a5.value) < 0 ? (f6 = le(r5) ? ae(e7, a5.value, null) : ae(e7, a5.value, r5 - 1)).indexOf("\n") > -1 && (f6 = o5 ? f6.split("\n").map((function(e8) {
|
|
3182
3182
|
return " " + e8;
|
|
3183
|
-
}).join("\n").substr(2) : "\n" + f6.split("\n").map(function(e8) {
|
|
3183
|
+
})).join("\n").substr(2) : "\n" + f6.split("\n").map((function(e8) {
|
|
3184
3184
|
return " " + e8;
|
|
3185
|
-
}).join("\n")) : f6 = e7.stylize("[Circular]", "special")), be(u5)) {
|
|
3185
|
+
})).join("\n")) : f6 = e7.stylize("[Circular]", "special")), be(u5)) {
|
|
3186
3186
|
if (o5 && i5.match(/^\d+$/)) return f6;
|
|
3187
3187
|
(u5 = JSON.stringify("" + i5)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (u5 = u5.substr(1, u5.length - 2), u5 = e7.stylize(u5, "name")) : (u5 = u5.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), u5 = e7.stylize(u5, "string"));
|
|
3188
3188
|
}
|
|
@@ -3275,12 +3275,12 @@ X.promisify = function(e7) {
|
|
|
3275
3275
|
return Object.defineProperty(t5, Ee, { value: t5, enumerable: false, writable: false, configurable: true }), t5;
|
|
3276
3276
|
}
|
|
3277
3277
|
function t5() {
|
|
3278
|
-
for (var t6, r5, n5 = new Promise(function(e8, n6) {
|
|
3278
|
+
for (var t6, r5, n5 = new Promise((function(e8, n6) {
|
|
3279
3279
|
t6 = e8, r5 = n6;
|
|
3280
|
-
}), i5 = [], o5 = 0; o5 < arguments.length; o5++) i5.push(arguments[o5]);
|
|
3281
|
-
i5.push(function(e8, n6) {
|
|
3280
|
+
})), i5 = [], o5 = 0; o5 < arguments.length; o5++) i5.push(arguments[o5]);
|
|
3281
|
+
i5.push((function(e8, n6) {
|
|
3282
3282
|
e8 ? r5(e8) : t6(n6);
|
|
3283
|
-
});
|
|
3283
|
+
}));
|
|
3284
3284
|
try {
|
|
3285
3285
|
e7.apply(this || Q, i5);
|
|
3286
3286
|
} catch (e8) {
|
|
@@ -3298,11 +3298,11 @@ X.promisify = function(e7) {
|
|
|
3298
3298
|
var i5 = this || Q, o5 = function() {
|
|
3299
3299
|
return n5.apply(i5, arguments);
|
|
3300
3300
|
};
|
|
3301
|
-
e7.apply(this || Q, t6).then(function(e8) {
|
|
3301
|
+
e7.apply(this || Q, t6).then((function(e8) {
|
|
3302
3302
|
Y.nextTick(o5.bind(null, null, e8));
|
|
3303
|
-
}, function(e8) {
|
|
3303
|
+
}), (function(e8) {
|
|
3304
3304
|
Y.nextTick(De.bind(null, e8, o5));
|
|
3305
|
-
});
|
|
3305
|
+
}));
|
|
3306
3306
|
}
|
|
3307
3307
|
return Object.setPrototypeOf(t5, Object.getPrototypeOf(e7)), Object.defineProperties(t5, ee(e7)), t5;
|
|
3308
3308
|
};
|
|
@@ -3356,7 +3356,7 @@ X.log;
|
|
|
3356
3356
|
var promisify = X.promisify;
|
|
3357
3357
|
X.types;
|
|
3358
3358
|
|
|
3359
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-b0rmRow7.js
|
|
3359
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-b0rmRow7.js
|
|
3360
3360
|
var exports5 = {};
|
|
3361
3361
|
var _dewExec4 = false;
|
|
3362
3362
|
var _global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -3545,14 +3545,14 @@ process2.umask;
|
|
|
3545
3545
|
process2.version;
|
|
3546
3546
|
process2.versions;
|
|
3547
3547
|
|
|
3548
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-B738Er4n.js
|
|
3548
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-B738Er4n.js
|
|
3549
3549
|
for (r$13 = { byteLength: function(r5) {
|
|
3550
3550
|
var t5 = u$22(r5), e7 = t5[0], n5 = t5[1];
|
|
3551
3551
|
return 3 * (e7 + n5) / 4 - n5;
|
|
3552
3552
|
}, toByteArray: function(r5) {
|
|
3553
|
-
var t5, o5, a5 = u$22(r5), h5 = a5[0], c5 = a5[1], d4 = new n$23(function(r6, t6, e7) {
|
|
3553
|
+
var t5, o5, a5 = u$22(r5), h5 = a5[0], c5 = a5[1], d4 = new n$23((function(r6, t6, e7) {
|
|
3554
3554
|
return 3 * (t6 + e7) / 4 - e7;
|
|
3555
|
-
}(0, h5, c5)), f6 = 0, A4 = c5 > 0 ? h5 - 4 : h5;
|
|
3555
|
+
})(0, h5, c5)), f6 = 0, A4 = c5 > 0 ? h5 - 4 : h5;
|
|
3556
3556
|
for (o5 = 0; o5 < A4; o5 += 4) t5 = e$23[r5.charCodeAt(o5)] << 18 | e$23[r5.charCodeAt(o5 + 1)] << 12 | e$23[r5.charCodeAt(o5 + 2)] << 6 | e$23[r5.charCodeAt(o5 + 3)], d4[f6++] = t5 >> 16 & 255, d4[f6++] = t5 >> 8 & 255, d4[f6++] = 255 & t5;
|
|
3557
3557
|
2 === c5 && (t5 = e$23[r5.charCodeAt(o5)] << 2 | e$23[r5.charCodeAt(o5 + 1)] >> 4, d4[f6++] = 255 & t5);
|
|
3558
3558
|
1 === c5 && (t5 = e$23[r5.charCodeAt(o5)] << 10 | e$23[r5.charCodeAt(o5 + 1)] << 4 | e$23[r5.charCodeAt(o5 + 2)] >> 2, d4[f6++] = t5 >> 8 & 255, d4[f6++] = 255 & t5);
|
|
@@ -3617,13 +3617,13 @@ function u$1$1(t5, r5, e7) {
|
|
|
3617
3617
|
return s$12(t5, r5, e7);
|
|
3618
3618
|
}
|
|
3619
3619
|
function s$12(t5, r5, e7) {
|
|
3620
|
-
if ("string" == typeof t5) return function(t6, r6) {
|
|
3620
|
+
if ("string" == typeof t5) return (function(t6, r6) {
|
|
3621
3621
|
"string" == typeof r6 && "" !== r6 || (r6 = "utf8");
|
|
3622
3622
|
if (!u$1$1.isEncoding(r6)) throw new TypeError("Unknown encoding: " + r6);
|
|
3623
3623
|
var e8 = 0 | y3(t6, r6), n6 = f$2(e8), i6 = n6.write(t6, r6);
|
|
3624
3624
|
i6 !== e8 && (n6 = n6.slice(0, i6));
|
|
3625
3625
|
return n6;
|
|
3626
|
-
}(t5, r5);
|
|
3626
|
+
})(t5, r5);
|
|
3627
3627
|
if (ArrayBuffer.isView(t5)) return p3(t5);
|
|
3628
3628
|
if (null == t5) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t5);
|
|
3629
3629
|
if (F2(t5, ArrayBuffer) || t5 && F2(t5.buffer, ArrayBuffer)) return c$1$1(t5, r5, e7);
|
|
@@ -3631,14 +3631,14 @@ function s$12(t5, r5, e7) {
|
|
|
3631
3631
|
if ("number" == typeof t5) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
|
3632
3632
|
var n5 = t5.valueOf && t5.valueOf();
|
|
3633
3633
|
if (null != n5 && n5 !== t5) return u$1$1.from(n5, r5, e7);
|
|
3634
|
-
var i5 = function(t6) {
|
|
3634
|
+
var i5 = (function(t6) {
|
|
3635
3635
|
if (u$1$1.isBuffer(t6)) {
|
|
3636
3636
|
var r6 = 0 | l$12(t6.length), e8 = f$2(r6);
|
|
3637
3637
|
return 0 === e8.length || t6.copy(e8, 0, 0, r6), e8;
|
|
3638
3638
|
}
|
|
3639
3639
|
if (void 0 !== t6.length) return "number" != typeof t6.length || N2(t6.length) ? f$2(0) : p3(t6);
|
|
3640
3640
|
if ("Buffer" === t6.type && Array.isArray(t6.data)) return p3(t6.data);
|
|
3641
|
-
}(t5);
|
|
3641
|
+
})(t5);
|
|
3642
3642
|
if (i5) return i5;
|
|
3643
3643
|
if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof t5[Symbol.toPrimitive]) return u$1$1.from(t5[Symbol.toPrimitive]("string"), r5, e7);
|
|
3644
3644
|
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t5);
|
|
@@ -3777,10 +3777,10 @@ function m2(t5, r5, e7, n5) {
|
|
|
3777
3777
|
return D2(_2(r5, t5.length - e7), t5, e7, n5);
|
|
3778
3778
|
}
|
|
3779
3779
|
function E2(t5, r5, e7, n5) {
|
|
3780
|
-
return D2(function(t6) {
|
|
3780
|
+
return D2((function(t6) {
|
|
3781
3781
|
for (var r6 = [], e8 = 0; e8 < t6.length; ++e8) r6.push(255 & t6.charCodeAt(e8));
|
|
3782
3782
|
return r6;
|
|
3783
|
-
}(r5), t5, e7, n5);
|
|
3783
|
+
})(r5), t5, e7, n5);
|
|
3784
3784
|
}
|
|
3785
3785
|
function B2(t5, r5, e7, n5) {
|
|
3786
3786
|
return E2(t5, r5, e7, n5);
|
|
@@ -3789,10 +3789,10 @@ function A2(t5, r5, e7, n5) {
|
|
|
3789
3789
|
return D2(z2(r5), t5, e7, n5);
|
|
3790
3790
|
}
|
|
3791
3791
|
function U2(t5, r5, e7, n5) {
|
|
3792
|
-
return D2(function(t6, r6) {
|
|
3792
|
+
return D2((function(t6, r6) {
|
|
3793
3793
|
for (var e8, n6, i5, o5 = [], f6 = 0; f6 < t6.length && !((r6 -= 2) < 0); ++f6) e8 = t6.charCodeAt(f6), n6 = e8 >> 8, i5 = e8 % 256, o5.push(i5), o5.push(n6);
|
|
3794
3794
|
return o5;
|
|
3795
|
-
}(r5, t5.length - e7), t5, e7, n5);
|
|
3795
|
+
})(r5, t5.length - e7), t5, e7, n5);
|
|
3796
3796
|
}
|
|
3797
3797
|
function T2(t5, r5, e7) {
|
|
3798
3798
|
return 0 === r5 && e7 === t5.length ? n$1$1.fromByteArray(t5) : n$1$1.fromByteArray(t5.slice(r5, e7));
|
|
@@ -3816,15 +3816,15 @@ function I2(t5, r5, e7) {
|
|
|
3816
3816
|
}
|
|
3817
3817
|
null === a5 ? (a5 = 65533, p5 = 1) : a5 > 65535 && (a5 -= 65536, n5.push(a5 >>> 10 & 1023 | 55296), a5 = 56320 | 1023 & a5), n5.push(a5), i5 += p5;
|
|
3818
3818
|
}
|
|
3819
|
-
return function(t6) {
|
|
3819
|
+
return (function(t6) {
|
|
3820
3820
|
var r6 = t6.length;
|
|
3821
3821
|
if (r6 <= 4096) return String.fromCharCode.apply(String, t6);
|
|
3822
3822
|
var e8 = "", n6 = 0;
|
|
3823
3823
|
for (; n6 < r6; ) e8 += String.fromCharCode.apply(String, t6.slice(n6, n6 += 4096));
|
|
3824
3824
|
return e8;
|
|
3825
|
-
}(n5);
|
|
3825
|
+
})(n5);
|
|
3826
3826
|
}
|
|
3827
|
-
e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = function() {
|
|
3827
|
+
e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = (function() {
|
|
3828
3828
|
try {
|
|
3829
3829
|
var t5 = new Uint8Array(1), r5 = { foo: function() {
|
|
3830
3830
|
return 42;
|
|
@@ -3833,16 +3833,16 @@ e$1$1.kMaxLength = 2147483647, u$1$1.TYPED_ARRAY_SUPPORT = function() {
|
|
|
3833
3833
|
} catch (t6) {
|
|
3834
3834
|
return false;
|
|
3835
3835
|
}
|
|
3836
|
-
}(), u$1$1.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), Object.defineProperty(u$1$1.prototype, "parent", { enumerable: true, get: function() {
|
|
3836
|
+
})(), u$1$1.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), Object.defineProperty(u$1$1.prototype, "parent", { enumerable: true, get: function() {
|
|
3837
3837
|
if (u$1$1.isBuffer(this)) return this.buffer;
|
|
3838
3838
|
} }), Object.defineProperty(u$1$1.prototype, "offset", { enumerable: true, get: function() {
|
|
3839
3839
|
if (u$1$1.isBuffer(this)) return this.byteOffset;
|
|
3840
3840
|
} }), u$1$1.poolSize = 8192, u$1$1.from = function(t5, r5, e7) {
|
|
3841
3841
|
return s$12(t5, r5, e7);
|
|
3842
3842
|
}, Object.setPrototypeOf(u$1$1.prototype, Uint8Array.prototype), Object.setPrototypeOf(u$1$1, Uint8Array), u$1$1.alloc = function(t5, r5, e7) {
|
|
3843
|
-
return function(t6, r6, e8) {
|
|
3843
|
+
return (function(t6, r6, e8) {
|
|
3844
3844
|
return h$1$1(t6), t6 <= 0 ? f$2(t6) : void 0 !== r6 ? "string" == typeof e8 ? f$2(t6).fill(r6, e8) : f$2(t6).fill(r6) : f$2(t6);
|
|
3845
|
-
}(t5, r5, e7);
|
|
3845
|
+
})(t5, r5, e7);
|
|
3846
3846
|
}, u$1$1.allocUnsafe = function(t5) {
|
|
3847
3847
|
return a$2(t5);
|
|
3848
3848
|
}, u$1$1.allocUnsafeSlow = function(t5) {
|
|
@@ -4186,11 +4186,11 @@ function _2(t5, r5) {
|
|
|
4186
4186
|
return o5;
|
|
4187
4187
|
}
|
|
4188
4188
|
function z2(t5) {
|
|
4189
|
-
return n$1$1.toByteArray(function(t6) {
|
|
4189
|
+
return n$1$1.toByteArray((function(t6) {
|
|
4190
4190
|
if ((t6 = (t6 = t6.split("=")[0]).trim().replace(j2, "")).length < 2) return "";
|
|
4191
4191
|
for (; t6.length % 4 != 0; ) t6 += "=";
|
|
4192
4192
|
return t6;
|
|
4193
|
-
}(t5));
|
|
4193
|
+
})(t5));
|
|
4194
4194
|
}
|
|
4195
4195
|
function D2(t5, r5, e7, n5) {
|
|
4196
4196
|
for (var i5 = 0; i5 < n5 && !(i5 + e7 >= r5.length || i5 >= t5.length); ++i5) r5[i5 + e7] = t5[i5];
|
|
@@ -4202,10 +4202,10 @@ function F2(t5, r5) {
|
|
|
4202
4202
|
function N2(t5) {
|
|
4203
4203
|
return t5 != t5;
|
|
4204
4204
|
}
|
|
4205
|
-
var Y2 = function() {
|
|
4205
|
+
var Y2 = (function() {
|
|
4206
4206
|
for (var t5 = new Array(256), r5 = 0; r5 < 16; ++r5) for (var e7 = 16 * r5, n5 = 0; n5 < 16; ++n5) t5[e7 + n5] = "0123456789abcdef"[r5] + "0123456789abcdef"[n5];
|
|
4207
4207
|
return t5;
|
|
4208
|
-
}();
|
|
4208
|
+
})();
|
|
4209
4209
|
e$1$1.Buffer;
|
|
4210
4210
|
e$1$1.INSPECT_MAX_BYTES;
|
|
4211
4211
|
e$1$1.kMaxLength;
|
|
@@ -4255,8 +4255,8 @@ var i3 = s3.isEncoding || function(t5) {
|
|
|
4255
4255
|
};
|
|
4256
4256
|
function a3(t5) {
|
|
4257
4257
|
var e7;
|
|
4258
|
-
switch (this.encoding = function(t6) {
|
|
4259
|
-
var e8 = function(t7) {
|
|
4258
|
+
switch (this.encoding = (function(t6) {
|
|
4259
|
+
var e8 = (function(t7) {
|
|
4260
4260
|
if (!t7) return "utf8";
|
|
4261
4261
|
for (var e9; ; ) switch (t7) {
|
|
4262
4262
|
case "utf8":
|
|
@@ -4278,10 +4278,10 @@ function a3(t5) {
|
|
|
4278
4278
|
if (e9) return;
|
|
4279
4279
|
t7 = ("" + t7).toLowerCase(), e9 = true;
|
|
4280
4280
|
}
|
|
4281
|
-
}(t6);
|
|
4281
|
+
})(t6);
|
|
4282
4282
|
if ("string" != typeof e8 && (s3.isEncoding === i3 || !i3(t6))) throw new Error("Unknown encoding: " + t6);
|
|
4283
4283
|
return e8 || t6;
|
|
4284
|
-
}(t5), this.encoding) {
|
|
4284
|
+
})(t5), this.encoding) {
|
|
4285
4285
|
case "utf16le":
|
|
4286
4286
|
this.text = h3, this.end = l3, e7 = 4;
|
|
4287
4287
|
break;
|
|
@@ -4300,13 +4300,13 @@ function r3(t5) {
|
|
|
4300
4300
|
return t5 <= 127 ? 0 : t5 >> 5 == 6 ? 2 : t5 >> 4 == 14 ? 3 : t5 >> 3 == 30 ? 4 : t5 >> 6 == 2 ? -1 : -2;
|
|
4301
4301
|
}
|
|
4302
4302
|
function n$12(t5) {
|
|
4303
|
-
var e7 = this.lastTotal - this.lastNeed, s5 = function(t6, e8, s6) {
|
|
4303
|
+
var e7 = this.lastTotal - this.lastNeed, s5 = (function(t6, e8, s6) {
|
|
4304
4304
|
if (128 != (192 & e8[0])) return t6.lastNeed = 0, "\uFFFD";
|
|
4305
4305
|
if (t6.lastNeed > 1 && e8.length > 1) {
|
|
4306
4306
|
if (128 != (192 & e8[1])) return t6.lastNeed = 1, "\uFFFD";
|
|
4307
4307
|
if (t6.lastNeed > 2 && e8.length > 2 && 128 != (192 & e8[2])) return t6.lastNeed = 2, "\uFFFD";
|
|
4308
4308
|
}
|
|
4309
|
-
}(this, t5);
|
|
4309
|
+
})(this, t5);
|
|
4310
4310
|
return void 0 !== s5 ? s5 : this.lastNeed <= t5.length ? (t5.copy(this.lastChar, e7, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (t5.copy(this.lastChar, e7, 0, t5.length), this.lastNeed -= t5.length, void 0);
|
|
4311
4311
|
}
|
|
4312
4312
|
function h3(t5, e7) {
|
|
@@ -4354,7 +4354,7 @@ e$12.StringDecoder = a3, a3.prototype.write = function(t5) {
|
|
|
4354
4354
|
var e7 = t5 && t5.length ? this.write(t5) : "";
|
|
4355
4355
|
return this.lastNeed ? e7 + "\uFFFD" : e7;
|
|
4356
4356
|
}, a3.prototype.text = function(t5, e7) {
|
|
4357
|
-
var s5 = function(t6, e8, s6) {
|
|
4357
|
+
var s5 = (function(t6, e8, s6) {
|
|
4358
4358
|
var i6 = e8.length - 1;
|
|
4359
4359
|
if (i6 < s6) return 0;
|
|
4360
4360
|
var a5 = r3(e8[i6]);
|
|
@@ -4364,7 +4364,7 @@ e$12.StringDecoder = a3, a3.prototype.write = function(t5) {
|
|
|
4364
4364
|
if (--i6 < s6 || -2 === a5) return 0;
|
|
4365
4365
|
if ((a5 = r3(e8[i6])) >= 0) return a5 > 0 && (2 === a5 ? a5 = 0 : t6.lastNeed = a5 - 3), a5;
|
|
4366
4366
|
return 0;
|
|
4367
|
-
}(this, t5, e7);
|
|
4367
|
+
})(this, t5, e7);
|
|
4368
4368
|
if (!this.lastNeed) return t5.toString("utf8", e7);
|
|
4369
4369
|
this.lastTotal = s5;
|
|
4370
4370
|
var i5 = t5.length - (s5 - this.lastNeed);
|
|
@@ -6068,7 +6068,7 @@ function dew$g() {
|
|
|
6068
6068
|
function numberIsNaN(obj) {
|
|
6069
6069
|
return obj !== obj;
|
|
6070
6070
|
}
|
|
6071
|
-
const hexSliceLookupTable = function() {
|
|
6071
|
+
const hexSliceLookupTable = (function() {
|
|
6072
6072
|
const alphabet = "0123456789abcdef";
|
|
6073
6073
|
const table = new Array(256);
|
|
6074
6074
|
for (let i5 = 0; i5 < 16; ++i5) {
|
|
@@ -6078,7 +6078,7 @@ function dew$g() {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
}
|
|
6080
6080
|
return table;
|
|
6081
|
-
}();
|
|
6081
|
+
})();
|
|
6082
6082
|
function defineBigIntMethod(fn) {
|
|
6083
6083
|
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
6084
6084
|
}
|
|
@@ -6202,7 +6202,7 @@ function dew$d() {
|
|
|
6202
6202
|
function copyBuffer(src, target, offset) {
|
|
6203
6203
|
Buffer2.prototype.copy.call(src, target, offset);
|
|
6204
6204
|
}
|
|
6205
|
-
exports$d = /* @__PURE__ */ function() {
|
|
6205
|
+
exports$d = /* @__PURE__ */ (function() {
|
|
6206
6206
|
function BufferList() {
|
|
6207
6207
|
_classCallCheck(this, BufferList);
|
|
6208
6208
|
this.head = null;
|
|
@@ -6366,7 +6366,7 @@ function dew$d() {
|
|
|
6366
6366
|
}
|
|
6367
6367
|
}]);
|
|
6368
6368
|
return BufferList;
|
|
6369
|
-
}();
|
|
6369
|
+
})();
|
|
6370
6370
|
return exports$d;
|
|
6371
6371
|
}
|
|
6372
6372
|
var exports$c = {};
|
|
@@ -8065,11 +8065,11 @@ function dew$3() {
|
|
|
8065
8065
|
});
|
|
8066
8066
|
for (var i5 in stream2) {
|
|
8067
8067
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
8068
|
-
this[i5] = /* @__PURE__ */ function methodWrap(method) {
|
|
8068
|
+
this[i5] = /* @__PURE__ */ (function methodWrap(method) {
|
|
8069
8069
|
return function methodWrapReturnFunction() {
|
|
8070
8070
|
return stream2[method].apply(stream2, arguments);
|
|
8071
8071
|
};
|
|
8072
|
-
}(i5);
|
|
8072
|
+
})(i5);
|
|
8073
8073
|
}
|
|
8074
8074
|
}
|
|
8075
8075
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -8384,7 +8384,7 @@ function dew5() {
|
|
|
8384
8384
|
return exports6;
|
|
8385
8385
|
}
|
|
8386
8386
|
|
|
8387
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-CbQqNoLO.js
|
|
8387
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-CbQqNoLO.js
|
|
8388
8388
|
X._extend;
|
|
8389
8389
|
X.callbackify;
|
|
8390
8390
|
X.debuglog;
|
|
@@ -8413,7 +8413,7 @@ X.types;
|
|
|
8413
8413
|
X.TextEncoder = globalThis.TextEncoder;
|
|
8414
8414
|
X.TextDecoder = globalThis.TextDecoder;
|
|
8415
8415
|
|
|
8416
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-B6-G-Ftj.js
|
|
8416
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-B6-G-Ftj.js
|
|
8417
8417
|
var exports$14 = {};
|
|
8418
8418
|
var _dewExec6 = false;
|
|
8419
8419
|
var _global3 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8515,7 +8515,7 @@ exports7.Stream;
|
|
|
8515
8515
|
pipeline: promisify2(exports7.pipeline)
|
|
8516
8516
|
});
|
|
8517
8517
|
|
|
8518
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-C4rKjYLo.js
|
|
8518
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-C4rKjYLo.js
|
|
8519
8519
|
var exports8 = {};
|
|
8520
8520
|
var _dewExec7 = false;
|
|
8521
8521
|
function dew7() {
|
|
@@ -8533,7 +8533,7 @@ function dew7() {
|
|
|
8533
8533
|
return exports8;
|
|
8534
8534
|
}
|
|
8535
8535
|
|
|
8536
|
-
// node_modules/@jspm/core/nodelibs/browser/chunk-BsRZ0PEC.js
|
|
8536
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/chunk-BsRZ0PEC.js
|
|
8537
8537
|
var exports9 = {};
|
|
8538
8538
|
var _dewExec8 = false;
|
|
8539
8539
|
var _global4 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8574,7 +8574,7 @@ function dew8() {
|
|
|
8574
8574
|
return exports9;
|
|
8575
8575
|
}
|
|
8576
8576
|
|
|
8577
|
-
// node_modules/@jspm/core/nodelibs/browser/vm.js
|
|
8577
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/vm.js
|
|
8578
8578
|
var exports$15 = {};
|
|
8579
8579
|
var _dewExec9 = false;
|
|
8580
8580
|
var _global5 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -8602,7 +8602,7 @@ function dew9() {
|
|
|
8602
8602
|
fn(xs[i5], i5, xs);
|
|
8603
8603
|
}
|
|
8604
8604
|
};
|
|
8605
|
-
var defineProp = function() {
|
|
8605
|
+
var defineProp = (function() {
|
|
8606
8606
|
try {
|
|
8607
8607
|
Object.defineProperty({}, "_", {});
|
|
8608
8608
|
return function(obj, name2, value) {
|
|
@@ -8618,7 +8618,7 @@ function dew9() {
|
|
|
8618
8618
|
obj[name2] = value;
|
|
8619
8619
|
};
|
|
8620
8620
|
}
|
|
8621
|
-
}();
|
|
8621
|
+
})();
|
|
8622
8622
|
var globals = ["Array", "Boolean", "Date", "Error", "EvalError", "Function", "Infinity", "JSON", "Math", "NaN", "Number", "Object", "RangeError", "ReferenceError", "RegExp", "String", "SyntaxError", "TypeError", "URIError", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "undefined", "unescape"];
|
|
8623
8623
|
function Context() {
|
|
8624
8624
|
}
|
|
@@ -8713,7 +8713,7 @@ var runInContext = exports10.runInContext;
|
|
|
8713
8713
|
var runInNewContext = exports10.runInNewContext;
|
|
8714
8714
|
var runInThisContext = exports10.runInThisContext;
|
|
8715
8715
|
|
|
8716
|
-
// node_modules/@jspm/core/nodelibs/browser/crypto.js
|
|
8716
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/crypto.js
|
|
8717
8717
|
var exports$3H = {};
|
|
8718
8718
|
var _dewExec$3G = false;
|
|
8719
8719
|
var _global$1e = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -11448,7 +11448,7 @@ function dew$30() {
|
|
|
11448
11448
|
return [t0, t1, t22, t32];
|
|
11449
11449
|
}
|
|
11450
11450
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
11451
|
-
var G3 = function() {
|
|
11451
|
+
var G3 = (function() {
|
|
11452
11452
|
var d4 = new Array(256);
|
|
11453
11453
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
11454
11454
|
if (j4 < 128) {
|
|
@@ -11494,7 +11494,7 @@ function dew$30() {
|
|
|
11494
11494
|
SUB_MIX,
|
|
11495
11495
|
INV_SUB_MIX
|
|
11496
11496
|
};
|
|
11497
|
-
}();
|
|
11497
|
+
})();
|
|
11498
11498
|
function AES(key) {
|
|
11499
11499
|
(this || _global$11)._key = asUInt32Array(key);
|
|
11500
11500
|
this._reset();
|
|
@@ -18709,7 +18709,7 @@ function dew$d$2() {
|
|
|
18709
18709
|
function copyBuffer(src, target, offset) {
|
|
18710
18710
|
Buffer2.prototype.copy.call(src, target, offset);
|
|
18711
18711
|
}
|
|
18712
|
-
exports$d$2 = /* @__PURE__ */ function() {
|
|
18712
|
+
exports$d$2 = /* @__PURE__ */ (function() {
|
|
18713
18713
|
function BufferList() {
|
|
18714
18714
|
_classCallCheck(this, BufferList);
|
|
18715
18715
|
this.head = null;
|
|
@@ -18873,7 +18873,7 @@ function dew$d$2() {
|
|
|
18873
18873
|
}
|
|
18874
18874
|
}]);
|
|
18875
18875
|
return BufferList;
|
|
18876
|
-
}();
|
|
18876
|
+
})();
|
|
18877
18877
|
return exports$d$2;
|
|
18878
18878
|
}
|
|
18879
18879
|
var exports$c$2 = {};
|
|
@@ -20572,11 +20572,11 @@ function dew$3$2() {
|
|
|
20572
20572
|
});
|
|
20573
20573
|
for (var i5 in stream2) {
|
|
20574
20574
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
20575
|
-
this[i5] = /* @__PURE__ */ function methodWrap(method) {
|
|
20575
|
+
this[i5] = /* @__PURE__ */ (function methodWrap(method) {
|
|
20576
20576
|
return function methodWrapReturnFunction() {
|
|
20577
20577
|
return stream2[method].apply(stream2, arguments);
|
|
20578
20578
|
};
|
|
20579
|
-
}(i5);
|
|
20579
|
+
})(i5);
|
|
20580
20580
|
}
|
|
20581
20581
|
}
|
|
20582
20582
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -22743,7 +22743,7 @@ function dew$25() {
|
|
|
22743
22743
|
return [t0, t1, t22, t32];
|
|
22744
22744
|
}
|
|
22745
22745
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
22746
|
-
var G3 = function() {
|
|
22746
|
+
var G3 = (function() {
|
|
22747
22747
|
var d4 = new Array(256);
|
|
22748
22748
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
22749
22749
|
if (j4 < 128) {
|
|
@@ -22789,7 +22789,7 @@ function dew$25() {
|
|
|
22789
22789
|
SUB_MIX,
|
|
22790
22790
|
INV_SUB_MIX
|
|
22791
22791
|
};
|
|
22792
|
-
}();
|
|
22792
|
+
})();
|
|
22793
22793
|
function AES(key) {
|
|
22794
22794
|
(this || _global$F)._key = asUInt32Array(key);
|
|
22795
22795
|
this._reset();
|
|
@@ -29858,9 +29858,9 @@ function n$q(e7, n5, r5) {
|
|
|
29858
29858
|
r5 || (r5 = Error);
|
|
29859
29859
|
class o5 extends r5 {
|
|
29860
29860
|
constructor(e8, t5, r6) {
|
|
29861
|
-
super(function(e9, t6, r7) {
|
|
29861
|
+
super((function(e9, t6, r7) {
|
|
29862
29862
|
return "string" == typeof n5 ? n5 : n5(e9, t6, r7);
|
|
29863
|
-
}(e8, t5, r6));
|
|
29863
|
+
})(e8, t5, r6));
|
|
29864
29864
|
}
|
|
29865
29865
|
}
|
|
29866
29866
|
o5.prototype.name = r5.name, o5.prototype.code = e7, t$c[e7] = o5;
|
|
@@ -29872,28 +29872,28 @@ function r$h(e7, t5) {
|
|
|
29872
29872
|
}
|
|
29873
29873
|
return `of ${t5} ${String(e7)}`;
|
|
29874
29874
|
}
|
|
29875
|
-
n$q("ERR_INVALID_OPT_VALUE", function(e7, t5) {
|
|
29875
|
+
n$q("ERR_INVALID_OPT_VALUE", (function(e7, t5) {
|
|
29876
29876
|
return 'The value "' + t5 + '" is invalid for option "' + e7 + '"';
|
|
29877
|
-
}, TypeError), n$q("ERR_INVALID_ARG_TYPE", function(e7, t5, n5) {
|
|
29877
|
+
}), TypeError), n$q("ERR_INVALID_ARG_TYPE", (function(e7, t5, n5) {
|
|
29878
29878
|
let o5;
|
|
29879
29879
|
var E4;
|
|
29880
29880
|
let u5;
|
|
29881
|
-
if ("string" == typeof t5 && (E4 = "not ", t5.substr(0, E4.length) === E4) ? (o5 = "must not be", t5 = t5.replace(/^not /, "")) : o5 = "must be", function(e8, t6, n6) {
|
|
29881
|
+
if ("string" == typeof t5 && (E4 = "not ", t5.substr(0, E4.length) === E4) ? (o5 = "must not be", t5 = t5.replace(/^not /, "")) : o5 = "must be", (function(e8, t6, n6) {
|
|
29882
29882
|
return (void 0 === n6 || n6 > e8.length) && (n6 = e8.length), e8.substring(n6 - t6.length, n6) === t6;
|
|
29883
|
-
}(e7, " argument")) u5 = `The ${e7} ${o5} ${r$h(t5, "type")}`;
|
|
29883
|
+
})(e7, " argument")) u5 = `The ${e7} ${o5} ${r$h(t5, "type")}`;
|
|
29884
29884
|
else {
|
|
29885
|
-
u5 = `The "${e7}" ${function(e8, t6, n6) {
|
|
29885
|
+
u5 = `The "${e7}" ${(function(e8, t6, n6) {
|
|
29886
29886
|
return "number" != typeof n6 && (n6 = 0), !(n6 + t6.length > e8.length) && -1 !== e8.indexOf(t6, n6);
|
|
29887
|
-
}(e7, ".") ? "property" : "argument"} ${o5} ${r$h(t5, "type")}`;
|
|
29887
|
+
})(e7, ".") ? "property" : "argument"} ${o5} ${r$h(t5, "type")}`;
|
|
29888
29888
|
}
|
|
29889
29889
|
return u5 += `. Received type ${typeof n5}`, u5;
|
|
29890
|
-
}, TypeError), n$q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n$q("ERR_METHOD_NOT_IMPLEMENTED", function(e7) {
|
|
29890
|
+
}), TypeError), n$q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n$q("ERR_METHOD_NOT_IMPLEMENTED", (function(e7) {
|
|
29891
29891
|
return "The " + e7 + " method is not implemented";
|
|
29892
|
-
}), n$q("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n$q("ERR_STREAM_DESTROYED", function(e7) {
|
|
29892
|
+
})), n$q("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n$q("ERR_STREAM_DESTROYED", (function(e7) {
|
|
29893
29893
|
return "Cannot call " + e7 + " after a stream was destroyed";
|
|
29894
|
-
}), n$q("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), n$q("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), n$q("ERR_STREAM_WRITE_AFTER_END", "write after end"), n$q("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), n$q("ERR_UNKNOWN_ENCODING", function(e7) {
|
|
29894
|
+
})), n$q("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), n$q("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), n$q("ERR_STREAM_WRITE_AFTER_END", "write after end"), n$q("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), n$q("ERR_UNKNOWN_ENCODING", (function(e7) {
|
|
29895
29895
|
return "Unknown encoding: " + e7;
|
|
29896
|
-
}, TypeError), n$q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), e$1$12.codes = t$c;
|
|
29896
|
+
}), TypeError), n$q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), e$1$12.codes = t$c;
|
|
29897
29897
|
var r$1$1 = function() {
|
|
29898
29898
|
throw new Error("Readable.from is not available in the browser");
|
|
29899
29899
|
};
|
|
@@ -29922,9 +29922,9 @@ function u$p(e7, t5) {
|
|
|
29922
29922
|
var n5 = Object.keys(e7);
|
|
29923
29923
|
if (Object.getOwnPropertySymbols) {
|
|
29924
29924
|
var r5 = Object.getOwnPropertySymbols(e7);
|
|
29925
|
-
t5 && (r5 = r5.filter(function(t6) {
|
|
29925
|
+
t5 && (r5 = r5.filter((function(t6) {
|
|
29926
29926
|
return Object.getOwnPropertyDescriptor(e7, t6).enumerable;
|
|
29927
|
-
})), n5.push.apply(n5, r5);
|
|
29927
|
+
}))), n5.push.apply(n5, r5);
|
|
29928
29928
|
}
|
|
29929
29929
|
return n5;
|
|
29930
29930
|
}
|
|
@@ -29940,11 +29940,11 @@ function h$l(e7, t5) {
|
|
|
29940
29940
|
var c$n = e$1$1.Buffer;
|
|
29941
29941
|
var b$j = X.inspect;
|
|
29942
29942
|
var p$s = b$j && b$j.custom || "inspect";
|
|
29943
|
-
var g$h = function() {
|
|
29943
|
+
var g$h = (function() {
|
|
29944
29944
|
function e7() {
|
|
29945
|
-
!function(e8, t6) {
|
|
29945
|
+
!(function(e8, t6) {
|
|
29946
29946
|
if (!(e8 instanceof t6)) throw new TypeError("Cannot call a class as a function");
|
|
29947
|
-
}(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
29947
|
+
})(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
29948
29948
|
}
|
|
29949
29949
|
var t5, n5;
|
|
29950
29950
|
return t5 = e7, (n5 = [{ key: "push", value: function(e8) {
|
|
@@ -29996,19 +29996,19 @@ var g$h = function() {
|
|
|
29996
29996
|
}
|
|
29997
29997
|
return this.length -= r5, t6;
|
|
29998
29998
|
} }, { key: p$s, value: function(e8, t6) {
|
|
29999
|
-
return b$j(this, function(e9) {
|
|
29999
|
+
return b$j(this, (function(e9) {
|
|
30000
30000
|
for (var t7 = 1; t7 < arguments.length; t7++) {
|
|
30001
30001
|
var n6 = null != arguments[t7] ? arguments[t7] : {};
|
|
30002
|
-
t7 % 2 ? u$p(Object(n6), true).forEach(function(t8) {
|
|
30002
|
+
t7 % 2 ? u$p(Object(n6), true).forEach((function(t8) {
|
|
30003
30003
|
f$v(e9, t8, n6[t8]);
|
|
30004
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : u$p(Object(n6)).forEach(function(t8) {
|
|
30004
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : u$p(Object(n6)).forEach((function(t8) {
|
|
30005
30005
|
Object.defineProperty(e9, t8, Object.getOwnPropertyDescriptor(n6, t8));
|
|
30006
|
-
});
|
|
30006
|
+
}));
|
|
30007
30007
|
}
|
|
30008
30008
|
return e9;
|
|
30009
|
-
}({}, t6, { depth: 0, customInspect: false }));
|
|
30009
|
+
})({}, t6, { depth: 0, customInspect: false }));
|
|
30010
30010
|
} }]) && h$l(t5.prototype, n5), e7;
|
|
30011
|
-
}();
|
|
30011
|
+
})();
|
|
30012
30012
|
var y$n = T$1;
|
|
30013
30013
|
function w$j(e7, t5) {
|
|
30014
30014
|
_$h(e7, t5), v$k(e7);
|
|
@@ -30021,9 +30021,9 @@ function _$h(e7, t5) {
|
|
|
30021
30021
|
}
|
|
30022
30022
|
var m$m = { destroy: function(e7, t5) {
|
|
30023
30023
|
var n5 = this, r5 = this._readableState && this._readableState.destroyed, i5 = this._writableState && this._writableState.destroyed;
|
|
30024
|
-
return r5 || i5 ? (t5 ? t5(e7) : e7 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, y$n.nextTick(_$h, this, e7)) : y$n.nextTick(_$h, this, e7)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e7 || null, function(e8) {
|
|
30024
|
+
return r5 || i5 ? (t5 ? t5(e7) : e7 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, y$n.nextTick(_$h, this, e7)) : y$n.nextTick(_$h, this, e7)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e7 || null, (function(e8) {
|
|
30025
30025
|
!t5 && e8 ? n5._writableState ? n5._writableState.errorEmitted ? y$n.nextTick(v$k, n5) : (n5._writableState.errorEmitted = true, y$n.nextTick(w$j, n5, e8)) : y$n.nextTick(w$j, n5, e8) : t5 ? (y$n.nextTick(v$k, n5), t5(e8)) : y$n.nextTick(v$k, n5);
|
|
30026
|
-
}), this);
|
|
30026
|
+
})), this);
|
|
30027
30027
|
}, undestroy: function() {
|
|
30028
30028
|
this._readableState && (this._readableState.destroyed = false, this._readableState.reading = false, this._readableState.ended = false, this._readableState.endEmitted = false), this._writableState && (this._writableState.destroyed = false, this._writableState.ended = false, this._writableState.ending = false, this._writableState.finalCalled = false, this._writableState.prefinished = false, this._writableState.finished = false, this._writableState.errorEmitted = false);
|
|
30029
30029
|
}, errorOrDestroy: function(e7, t5) {
|
|
@@ -30032,9 +30032,9 @@ var m$m = { destroy: function(e7, t5) {
|
|
|
30032
30032
|
} };
|
|
30033
30033
|
var S$e = e$1$12.codes.ERR_INVALID_OPT_VALUE;
|
|
30034
30034
|
var R$7 = { getHighWaterMark: function(e7, t5, n5, r5) {
|
|
30035
|
-
var i5 = function(e8, t6, n6) {
|
|
30035
|
+
var i5 = (function(e8, t6, n6) {
|
|
30036
30036
|
return null != e8.highWaterMark ? e8.highWaterMark : t6 ? e8[n6] : null;
|
|
30037
|
-
}(t5, r5, n5);
|
|
30037
|
+
})(t5, r5, n5);
|
|
30038
30038
|
if (null != i5) {
|
|
30039
30039
|
if (!isFinite(i5) || Math.floor(i5) !== i5 || i5 < 0) throw new S$e(r5 ? n5 : "highWaterMark", i5);
|
|
30040
30040
|
return Math.floor(i5);
|
|
@@ -30047,7 +30047,7 @@ function E$e() {
|
|
|
30047
30047
|
var M$a;
|
|
30048
30048
|
var j$a = function e4(t5, n5, r5) {
|
|
30049
30049
|
if ("function" == typeof n5) return e4(t5, null, n5);
|
|
30050
|
-
n5 || (n5 = {}), r5 = /* @__PURE__ */ function(e7) {
|
|
30050
|
+
n5 || (n5 = {}), r5 = /* @__PURE__ */ (function(e7) {
|
|
30051
30051
|
var t6 = false;
|
|
30052
30052
|
return function() {
|
|
30053
30053
|
if (!t6) {
|
|
@@ -30056,7 +30056,7 @@ var j$a = function e4(t5, n5, r5) {
|
|
|
30056
30056
|
e7.apply(this, r6);
|
|
30057
30057
|
}
|
|
30058
30058
|
};
|
|
30059
|
-
}(r5 || E$e);
|
|
30059
|
+
})(r5 || E$e);
|
|
30060
30060
|
var i5 = n5.readable || false !== n5.readable && t5.readable, a5 = n5.writable || false !== n5.writable && t5.writable, o5 = function() {
|
|
30061
30061
|
t5.writable || l5();
|
|
30062
30062
|
}, s5 = t5._writableState && t5._writableState.finished, l5 = function() {
|
|
@@ -30071,9 +30071,9 @@ var j$a = function e4(t5, n5, r5) {
|
|
|
30071
30071
|
}, c5 = function() {
|
|
30072
30072
|
t5.req.on("finish", l5);
|
|
30073
30073
|
};
|
|
30074
|
-
return !function(e7) {
|
|
30074
|
+
return !(function(e7) {
|
|
30075
30075
|
return e7.setHeader && "function" == typeof e7.abort;
|
|
30076
|
-
}(t5) ? a5 && !t5._writableState && (t5.on("end", o5), t5.on("close", o5)) : (t5.on("complete", l5), t5.on("abort", h5), t5.req ? c5() : t5.on("request", c5)), t5.on("end", u5), t5.on("finish", l5), false !== n5.error && t5.on("error", f6), t5.on("close", h5), function() {
|
|
30076
|
+
})(t5) ? a5 && !t5._writableState && (t5.on("end", o5), t5.on("close", o5)) : (t5.on("complete", l5), t5.on("abort", h5), t5.req ? c5() : t5.on("request", c5)), t5.on("end", u5), t5.on("finish", l5), false !== n5.error && t5.on("error", f6), t5.on("close", h5), function() {
|
|
30077
30077
|
t5.removeListener("complete", l5), t5.removeListener("abort", h5), t5.removeListener("request", c5), t5.req && t5.req.removeListener("finish", l5), t5.removeListener("end", o5), t5.removeListener("close", o5), t5.removeListener("finish", l5), t5.removeListener("end", u5), t5.removeListener("error", f6), t5.removeListener("close", h5);
|
|
30078
30078
|
};
|
|
30079
30079
|
};
|
|
@@ -30102,58 +30102,58 @@ function I$b(e7) {
|
|
|
30102
30102
|
function N$7(e7) {
|
|
30103
30103
|
O$8.nextTick(I$b, e7);
|
|
30104
30104
|
}
|
|
30105
|
-
var U$a = Object.getPrototypeOf(function() {
|
|
30106
|
-
});
|
|
30105
|
+
var U$a = Object.getPrototypeOf((function() {
|
|
30106
|
+
}));
|
|
30107
30107
|
var H$7 = Object.setPrototypeOf((T$8(M$a = { get stream() {
|
|
30108
30108
|
return this[W$5];
|
|
30109
30109
|
}, next: function() {
|
|
30110
30110
|
var e7 = this, t5 = this[D$9];
|
|
30111
30111
|
if (null !== t5) return Promise.reject(t5);
|
|
30112
30112
|
if (this[C$9]) return Promise.resolve(B$c(void 0, true));
|
|
30113
|
-
if (this[W$5].destroyed) return new Promise(function(t6, n6) {
|
|
30114
|
-
O$8.nextTick(function() {
|
|
30113
|
+
if (this[W$5].destroyed) return new Promise((function(t6, n6) {
|
|
30114
|
+
O$8.nextTick((function() {
|
|
30115
30115
|
e7[D$9] ? n6(e7[D$9]) : t6(B$c(void 0, true));
|
|
30116
|
-
});
|
|
30117
|
-
});
|
|
30116
|
+
}));
|
|
30117
|
+
}));
|
|
30118
30118
|
var n5, r5 = this[A$c];
|
|
30119
|
-
if (r5) n5 = new Promise(/* @__PURE__ */ function(e8, t6) {
|
|
30119
|
+
if (r5) n5 = new Promise(/* @__PURE__ */ (function(e8, t6) {
|
|
30120
30120
|
return function(n6, r6) {
|
|
30121
|
-
e8.then(function() {
|
|
30121
|
+
e8.then((function() {
|
|
30122
30122
|
if (t6[C$9]) return n6(B$c(void 0, true)), void 0;
|
|
30123
30123
|
t6[q$8](n6, r6);
|
|
30124
|
-
}, r6);
|
|
30124
|
+
}), r6);
|
|
30125
30125
|
};
|
|
30126
|
-
}(r5, this));
|
|
30126
|
+
})(r5, this));
|
|
30127
30127
|
else {
|
|
30128
30128
|
var i5 = this[W$5].read();
|
|
30129
30129
|
if (null !== i5) return Promise.resolve(B$c(i5, false));
|
|
30130
30130
|
n5 = new Promise(this[q$8]);
|
|
30131
30131
|
}
|
|
30132
30132
|
return this[A$c] = n5, n5;
|
|
30133
|
-
} }, Symbol.asyncIterator, function() {
|
|
30133
|
+
} }, Symbol.asyncIterator, (function() {
|
|
30134
30134
|
return this;
|
|
30135
|
-
}), T$8(M$a, "return", function() {
|
|
30135
|
+
})), T$8(M$a, "return", (function() {
|
|
30136
30136
|
var e7 = this;
|
|
30137
|
-
return new Promise(function(t5, n5) {
|
|
30138
|
-
e7[W$5].destroy(null, function(e8) {
|
|
30137
|
+
return new Promise((function(t5, n5) {
|
|
30138
|
+
e7[W$5].destroy(null, (function(e8) {
|
|
30139
30139
|
if (e8) return n5(e8), void 0;
|
|
30140
30140
|
t5(B$c(void 0, true));
|
|
30141
|
-
});
|
|
30142
|
-
});
|
|
30143
|
-
}), M$a), U$a);
|
|
30141
|
+
}));
|
|
30142
|
+
}));
|
|
30143
|
+
})), M$a), U$a);
|
|
30144
30144
|
var F$8 = function(e7) {
|
|
30145
30145
|
var t5, n5 = Object.create(H$7, (T$8(t5 = {}, W$5, { value: e7, writable: true }), T$8(t5, x$a, { value: null, writable: true }), T$8(t5, L$8, { value: null, writable: true }), T$8(t5, D$9, { value: null, writable: true }), T$8(t5, C$9, { value: e7._readableState.endEmitted, writable: true }), T$8(t5, q$8, { value: function(e8, t6) {
|
|
30146
30146
|
var r5 = n5[W$5].read();
|
|
30147
30147
|
r5 ? (n5[A$c] = null, n5[x$a] = null, n5[L$8] = null, e8(B$c(r5, false))) : (n5[x$a] = e8, n5[L$8] = t6);
|
|
30148
30148
|
}, writable: true }), t5));
|
|
30149
|
-
return n5[A$c] = null, P$8(e7, function(e8) {
|
|
30149
|
+
return n5[A$c] = null, P$8(e7, (function(e8) {
|
|
30150
30150
|
if (e8 && "ERR_STREAM_PREMATURE_CLOSE" !== e8.code) {
|
|
30151
30151
|
var t6 = n5[L$8];
|
|
30152
30152
|
return null !== t6 && (n5[A$c] = null, n5[x$a] = null, n5[L$8] = null, t6(e8)), n5[D$9] = e8, void 0;
|
|
30153
30153
|
}
|
|
30154
30154
|
var r5 = n5[x$a];
|
|
30155
30155
|
null !== r5 && (n5[A$c] = null, n5[x$a] = null, n5[L$8] = null, r5(B$c(void 0, true))), n5[C$9] = true;
|
|
30156
|
-
}), e7.on("readable", N$7.bind(null, n5)), n5;
|
|
30156
|
+
})), e7.on("readable", N$7.bind(null, n5)), n5;
|
|
30157
30157
|
};
|
|
30158
30158
|
var V$6 = {};
|
|
30159
30159
|
var G$5 = false;
|
|
@@ -30185,23 +30185,23 @@ function K$8() {
|
|
|
30185
30185
|
function A4(e7, t5, n5, r5, i5) {
|
|
30186
30186
|
p5("readableAddChunk", t5);
|
|
30187
30187
|
var a5, o5 = e7._readableState;
|
|
30188
|
-
if (null === t5) o5.reading = false, function(e8, t6) {
|
|
30188
|
+
if (null === t5) o5.reading = false, (function(e8, t6) {
|
|
30189
30189
|
if (p5("onEofChunk"), t6.ended) return;
|
|
30190
30190
|
if (t6.decoder) {
|
|
30191
30191
|
var n6 = t6.decoder.end();
|
|
30192
30192
|
n6 && n6.length && (t6.buffer.push(n6), t6.length += t6.objectMode ? 1 : n6.length);
|
|
30193
30193
|
}
|
|
30194
30194
|
t6.ended = true, t6.sync ? B4(e8) : (t6.needReadable = false, t6.emittedReadable || (t6.emittedReadable = true, I4(e8)));
|
|
30195
|
-
}(e7, o5);
|
|
30196
|
-
else if (i5 || (a5 = function(e8, t6) {
|
|
30195
|
+
})(e7, o5);
|
|
30196
|
+
else if (i5 || (a5 = (function(e8, t6) {
|
|
30197
30197
|
var n6;
|
|
30198
30198
|
r6 = t6, c5.isBuffer(r6) || r6 instanceof b4 || "string" == typeof t6 || void 0 === t6 || e8.objectMode || (n6 = new j4("chunk", ["string", "Buffer", "Uint8Array"], t6));
|
|
30199
30199
|
var r6;
|
|
30200
30200
|
return n6;
|
|
30201
|
-
}(o5, t5)), a5) x4(e7, a5);
|
|
30202
|
-
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = function(e8) {
|
|
30201
|
+
})(o5, t5)), a5) x4(e7, a5);
|
|
30202
|
+
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = (function(e8) {
|
|
30203
30203
|
return c5.from(e8);
|
|
30204
|
-
}(t5)), r5) o5.endEmitted ? x4(e7, new P4()) : q3(e7, o5, t5, true);
|
|
30204
|
+
})(t5)), r5) o5.endEmitted ? x4(e7, new P4()) : q3(e7, o5, t5, true);
|
|
30205
30205
|
else if (o5.ended) x4(e7, new O4());
|
|
30206
30206
|
else {
|
|
30207
30207
|
if (o5.destroyed) return false;
|
|
@@ -30234,9 +30234,9 @@ function K$8() {
|
|
|
30234
30234
|
return this._readableState.buffer.clear(), "" !== r5 && this._readableState.buffer.push(r5), this._readableState.length = r5.length, this;
|
|
30235
30235
|
};
|
|
30236
30236
|
function W3(e7, t5) {
|
|
30237
|
-
return e7 <= 0 || 0 === t5.length && t5.ended ? 0 : t5.objectMode ? 1 : e7 != e7 ? t5.flowing && t5.length ? t5.buffer.head.data.length : t5.length : (e7 > t5.highWaterMark && (t5.highWaterMark = function(e8) {
|
|
30237
|
+
return e7 <= 0 || 0 === t5.length && t5.ended ? 0 : t5.objectMode ? 1 : e7 != e7 ? t5.flowing && t5.length ? t5.buffer.head.data.length : t5.length : (e7 > t5.highWaterMark && (t5.highWaterMark = (function(e8) {
|
|
30238
30238
|
return e8 >= 1073741824 ? e8 = 1073741824 : (e8--, e8 |= e8 >>> 1, e8 |= e8 >>> 2, e8 |= e8 >>> 4, e8 |= e8 >>> 8, e8 |= e8 >>> 16, e8++), e8;
|
|
30239
|
-
}(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30239
|
+
})(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30240
30240
|
}
|
|
30241
30241
|
function B4(e7) {
|
|
30242
30242
|
var t5 = e7._readableState;
|
|
@@ -30318,12 +30318,12 @@ function K$8() {
|
|
|
30318
30318
|
p5("onend"), e7.end();
|
|
30319
30319
|
}
|
|
30320
30320
|
r5.endEmitted ? u5.nextTick(i5) : n5.once("end", i5), e7.on("unpipe", a5);
|
|
30321
|
-
var s5 = /* @__PURE__ */ function(e8) {
|
|
30321
|
+
var s5 = /* @__PURE__ */ (function(e8) {
|
|
30322
30322
|
return function() {
|
|
30323
30323
|
var t6 = e8._readableState;
|
|
30324
30324
|
p5("pipeOnDrain", t6.awaitDrain), t6.awaitDrain && t6.awaitDrain--, 0 === t6.awaitDrain && f6(e8, "data") && (t6.flowing = true, J3(e8));
|
|
30325
30325
|
};
|
|
30326
|
-
}(n5);
|
|
30326
|
+
})(n5);
|
|
30327
30327
|
e7.on("drain", s5);
|
|
30328
30328
|
var l5 = false;
|
|
30329
30329
|
function d5(t6) {
|
|
@@ -30343,10 +30343,10 @@ function K$8() {
|
|
|
30343
30343
|
function g4() {
|
|
30344
30344
|
p5("unpipe"), n5.unpipe(e7);
|
|
30345
30345
|
}
|
|
30346
|
-
return n5.on("data", d5), function(e8, t6, n6) {
|
|
30346
|
+
return n5.on("data", d5), (function(e8, t6, n6) {
|
|
30347
30347
|
if ("function" == typeof e8.prependListener) return e8.prependListener(t6, n6);
|
|
30348
30348
|
e8._events && e8._events[t6] ? Array.isArray(e8._events[t6]) ? e8._events[t6].unshift(n6) : e8._events[t6] = [n6, e8._events[t6]] : e8.on(t6, n6);
|
|
30349
|
-
}(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
30349
|
+
})(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
30350
30350
|
}, C4.prototype.unpipe = function(e7) {
|
|
30351
30351
|
var t5 = this._readableState, n5 = { hasUnpiped: false };
|
|
30352
30352
|
if (0 === t5.pipesCount) return this;
|
|
@@ -30370,26 +30370,26 @@ function K$8() {
|
|
|
30370
30370
|
return "readable" !== e7 && void 0 !== e7 || u5.nextTick(H3, this), t5;
|
|
30371
30371
|
}, C4.prototype.resume = function() {
|
|
30372
30372
|
var e7 = this._readableState;
|
|
30373
|
-
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, function(e8, t5) {
|
|
30373
|
+
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, (function(e8, t5) {
|
|
30374
30374
|
t5.resumeScheduled || (t5.resumeScheduled = true, u5.nextTick(z4, e8, t5));
|
|
30375
|
-
}(this, e7)), e7.paused = false, this;
|
|
30375
|
+
})(this, e7)), e7.paused = false, this;
|
|
30376
30376
|
}, C4.prototype.pause = function() {
|
|
30377
30377
|
return p5("call pause flowing=%j", this._readableState.flowing), false !== this._readableState.flowing && (p5("pause"), this._readableState.flowing = false, this.emit("pause")), this._readableState.paused = true, this;
|
|
30378
30378
|
}, C4.prototype.wrap = function(e7) {
|
|
30379
30379
|
var t5 = this, n5 = this._readableState, r5 = false;
|
|
30380
|
-
for (var i5 in e7.on("end", function() {
|
|
30380
|
+
for (var i5 in e7.on("end", (function() {
|
|
30381
30381
|
if (p5("wrapped end"), n5.decoder && !n5.ended) {
|
|
30382
30382
|
var e8 = n5.decoder.end();
|
|
30383
30383
|
e8 && e8.length && t5.push(e8);
|
|
30384
30384
|
}
|
|
30385
30385
|
t5.push(null);
|
|
30386
|
-
}), e7.on("data", function(i6) {
|
|
30386
|
+
})), e7.on("data", (function(i6) {
|
|
30387
30387
|
(p5("wrapped data"), n5.decoder && (i6 = n5.decoder.write(i6)), n5.objectMode && null == i6) || (n5.objectMode || i6 && i6.length) && (t5.push(i6) || (r5 = true, e7.pause()));
|
|
30388
|
-
}), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ function(t6) {
|
|
30388
|
+
})), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ (function(t6) {
|
|
30389
30389
|
return function() {
|
|
30390
30390
|
return e7[t6].apply(e7, arguments);
|
|
30391
30391
|
};
|
|
30392
|
-
}(i5));
|
|
30392
|
+
})(i5));
|
|
30393
30393
|
for (var a5 = 0; a5 < L4.length; a5++) e7.on(L4[a5], this.emit.bind(this, L4[a5]));
|
|
30394
30394
|
return this._read = function(t6) {
|
|
30395
30395
|
p5("wrapped _read", t6), r5 && (r5 = false, e7.resume());
|
|
@@ -30420,7 +30420,7 @@ function X$4() {
|
|
|
30420
30420
|
function s5(e7) {
|
|
30421
30421
|
var t5 = this;
|
|
30422
30422
|
this.next = null, this.entry = null, this.finish = function() {
|
|
30423
|
-
!function(e8, t6, n5) {
|
|
30423
|
+
!(function(e8, t6, n5) {
|
|
30424
30424
|
var r6 = e8.entry;
|
|
30425
30425
|
e8.entry = null;
|
|
30426
30426
|
for (; r6; ) {
|
|
@@ -30428,7 +30428,7 @@ function X$4() {
|
|
|
30428
30428
|
t6.pendingcb--, i5(n5), r6 = r6.next;
|
|
30429
30429
|
}
|
|
30430
30430
|
t6.corkedRequestsFree.next = e8;
|
|
30431
|
-
}(t5, e7);
|
|
30431
|
+
})(t5, e7);
|
|
30432
30432
|
};
|
|
30433
30433
|
}
|
|
30434
30434
|
z$9 = P4, P4.WritableState = T4;
|
|
@@ -30441,19 +30441,19 @@ function X$4() {
|
|
|
30441
30441
|
e$23 = e$23 || ee$1(), t5 = t5 || {}, "boolean" != typeof i5 && (i5 = n5 instanceof e$23), this.objectMode = !!t5.objectMode, i5 && (this.objectMode = this.objectMode || !!t5.writableObjectMode), this.highWaterMark = p5(this, t5, "writableHighWaterMark", i5), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
|
|
30442
30442
|
var a5 = false === t5.decodeStrings;
|
|
30443
30443
|
this.decodeStrings = !a5, this.defaultEncoding = t5.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(e7) {
|
|
30444
|
-
!function(e8, t6) {
|
|
30444
|
+
!(function(e8, t6) {
|
|
30445
30445
|
var n6 = e8._writableState, i6 = n6.sync, a6 = n6.writecb;
|
|
30446
30446
|
if ("function" != typeof a6) throw new v5();
|
|
30447
|
-
if (function(e9) {
|
|
30447
|
+
if ((function(e9) {
|
|
30448
30448
|
e9.writing = false, e9.writecb = null, e9.length -= e9.writelen, e9.writelen = 0;
|
|
30449
|
-
}(n6), t6) !function(e9, t7, n7, i7, a7) {
|
|
30449
|
+
})(n6), t6) !(function(e9, t7, n7, i7, a7) {
|
|
30450
30450
|
--t7.pendingcb, n7 ? (r5.nextTick(a7, i7), r5.nextTick(q3, e9, t7), e9._writableState.errorEmitted = true, j4(e9, i7)) : (a7(i7), e9._writableState.errorEmitted = true, j4(e9, i7), q3(e9, t7));
|
|
30451
|
-
}(e8, n6, i6, t6, a6);
|
|
30451
|
+
})(e8, n6, i6, t6, a6);
|
|
30452
30452
|
else {
|
|
30453
30453
|
var o5 = C4(n6) || e8.destroyed;
|
|
30454
30454
|
o5 || n6.corked || n6.bufferProcessing || !n6.bufferedRequest || D4(e8, n6), i6 ? r5.nextTick(L4, e8, n6, o5, a6) : L4(e8, n6, o5, a6);
|
|
30455
30455
|
}
|
|
30456
|
-
}(n5, e7);
|
|
30456
|
+
})(n5, e7);
|
|
30457
30457
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = false !== t5.emitClose, this.autoDestroy = !!t5.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new s5(this);
|
|
30458
30458
|
}
|
|
30459
30459
|
function P4(t5) {
|
|
@@ -30465,9 +30465,9 @@ function X$4() {
|
|
|
30465
30465
|
t5.writelen = r6, t5.writecb = o5, t5.writing = true, t5.sync = true, t5.destroyed ? t5.onwrite(new S4("write")) : n5 ? e7._writev(i5, t5.onwrite) : e7._write(i5, a5, t5.onwrite), t5.sync = false;
|
|
30466
30466
|
}
|
|
30467
30467
|
function L4(e7, t5, n5, r6) {
|
|
30468
|
-
n5 || !function(e8, t6) {
|
|
30468
|
+
n5 || !(function(e8, t6) {
|
|
30469
30469
|
0 === t6.length && t6.needDrain && (t6.needDrain = false, e8.emit("drain"));
|
|
30470
|
-
}(e7, t5), t5.pendingcb--, r6(), q3(e7, t5);
|
|
30470
|
+
})(e7, t5), t5.pendingcb--, r6(), q3(e7, t5);
|
|
30471
30471
|
}
|
|
30472
30472
|
function D4(e7, t5) {
|
|
30473
30473
|
t5.bufferProcessing = true;
|
|
@@ -30490,15 +30490,15 @@ function X$4() {
|
|
|
30490
30490
|
return e7.ending && 0 === e7.length && null === e7.bufferedRequest && !e7.finished && !e7.writing;
|
|
30491
30491
|
}
|
|
30492
30492
|
function A4(e7, t5) {
|
|
30493
|
-
e7._final(function(n5) {
|
|
30493
|
+
e7._final((function(n5) {
|
|
30494
30494
|
t5.pendingcb--, n5 && j4(e7, n5), t5.prefinished = true, e7.emit("prefinish"), q3(e7, t5);
|
|
30495
|
-
});
|
|
30495
|
+
}));
|
|
30496
30496
|
}
|
|
30497
30497
|
function q3(e7, t5) {
|
|
30498
30498
|
var n5 = C4(t5);
|
|
30499
|
-
if (n5 && (!function(e8, t6) {
|
|
30499
|
+
if (n5 && (!(function(e8, t6) {
|
|
30500
30500
|
t6.prefinished || t6.finalCalled || ("function" != typeof e8._final || t6.destroyed ? (t6.prefinished = true, e8.emit("prefinish")) : (t6.pendingcb++, t6.finalCalled = true, r5.nextTick(A4, e8, t6)));
|
|
30501
|
-
}(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
30501
|
+
})(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
30502
30502
|
var i5 = e7._readableState;
|
|
30503
30503
|
(!i5 || i5.autoDestroy && i5.endEmitted) && e7.destroy();
|
|
30504
30504
|
}
|
|
@@ -30507,14 +30507,14 @@ function X$4() {
|
|
|
30507
30507
|
return t$2(P4, u5), T4.prototype.getBuffer = function() {
|
|
30508
30508
|
for (var e7 = this.bufferedRequest, t5 = []; e7; ) t5.push(e7), e7 = e7.next;
|
|
30509
30509
|
return t5;
|
|
30510
|
-
}, function() {
|
|
30510
|
+
}, (function() {
|
|
30511
30511
|
try {
|
|
30512
|
-
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(function() {
|
|
30512
|
+
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate((function() {
|
|
30513
30513
|
return this.getBuffer();
|
|
30514
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
30514
|
+
}), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
30515
30515
|
} catch (e7) {
|
|
30516
30516
|
}
|
|
30517
|
-
}(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(P4, Symbol.hasInstance, { value: function(e7) {
|
|
30517
|
+
})(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(P4, Symbol.hasInstance, { value: function(e7) {
|
|
30518
30518
|
return !!c5.call(this, e7) || this === P4 && (e7 && e7._writableState instanceof T4);
|
|
30519
30519
|
} })) : c5 = function(e7) {
|
|
30520
30520
|
return e7 instanceof this;
|
|
@@ -30522,20 +30522,20 @@ function X$4() {
|
|
|
30522
30522
|
j4(this, new _4());
|
|
30523
30523
|
}, P4.prototype.write = function(e7, t5, n5) {
|
|
30524
30524
|
var i5, a5 = this._writableState, o5 = false, s6 = !a5.objectMode && (i5 = e7, f6.isBuffer(i5) || i5 instanceof h5);
|
|
30525
|
-
return s6 && !f6.isBuffer(e7) && (e7 = function(e8) {
|
|
30525
|
+
return s6 && !f6.isBuffer(e7) && (e7 = (function(e8) {
|
|
30526
30526
|
return f6.from(e8);
|
|
30527
|
-
}(e7)), "function" == typeof t5 && (n5 = t5, t5 = null), s6 ? t5 = "buffer" : t5 || (t5 = a5.defaultEncoding), "function" != typeof n5 && (n5 = O4), a5.ending ? function(e8, t6) {
|
|
30527
|
+
})(e7)), "function" == typeof t5 && (n5 = t5, t5 = null), s6 ? t5 = "buffer" : t5 || (t5 = a5.defaultEncoding), "function" != typeof n5 && (n5 = O4), a5.ending ? (function(e8, t6) {
|
|
30528
30528
|
var n6 = new E4();
|
|
30529
30529
|
j4(e8, n6), r5.nextTick(t6, n6);
|
|
30530
|
-
}(this, n5) : (s6 || function(e8, t6, n6, i6) {
|
|
30530
|
+
})(this, n5) : (s6 || (function(e8, t6, n6, i6) {
|
|
30531
30531
|
var a6;
|
|
30532
30532
|
return null === n6 ? a6 = new k4() : "string" == typeof n6 || t6.objectMode || (a6 = new y5("chunk", ["string", "Buffer"], n6)), !a6 || (j4(e8, a6), r5.nextTick(i6, a6), false);
|
|
30533
|
-
}(this, a5, e7, n5)) && (a5.pendingcb++, o5 = function(e8, t6, n6, r6, i6, a6) {
|
|
30533
|
+
})(this, a5, e7, n5)) && (a5.pendingcb++, o5 = (function(e8, t6, n6, r6, i6, a6) {
|
|
30534
30534
|
if (!n6) {
|
|
30535
|
-
var o6 = function(e9, t7, n7) {
|
|
30535
|
+
var o6 = (function(e9, t7, n7) {
|
|
30536
30536
|
e9.objectMode || false === e9.decodeStrings || "string" != typeof t7 || (t7 = f6.from(t7, n7));
|
|
30537
30537
|
return t7;
|
|
30538
|
-
}(t6, r6, i6);
|
|
30538
|
+
})(t6, r6, i6);
|
|
30539
30539
|
r6 !== o6 && (n6 = true, i6 = "buffer", r6 = o6);
|
|
30540
30540
|
}
|
|
30541
30541
|
var s7 = t6.objectMode ? 1 : r6.length;
|
|
@@ -30547,7 +30547,7 @@ function X$4() {
|
|
|
30547
30547
|
t6.lastBufferedRequest = { chunk: r6, encoding: i6, isBuf: n6, callback: a6, next: null }, d4 ? d4.next = t6.lastBufferedRequest : t6.bufferedRequest = t6.lastBufferedRequest, t6.bufferedRequestCount += 1;
|
|
30548
30548
|
} else x4(e8, t6, false, s7, r6, i6, a6);
|
|
30549
30549
|
return l6;
|
|
30550
|
-
}(this, a5, s6, e7, t5, n5)), o5;
|
|
30550
|
+
})(this, a5, s6, e7, t5, n5)), o5;
|
|
30551
30551
|
}, P4.prototype.cork = function() {
|
|
30552
30552
|
this._writableState.corked++;
|
|
30553
30553
|
}, P4.prototype.uncork = function() {
|
|
@@ -30564,10 +30564,10 @@ function X$4() {
|
|
|
30564
30564
|
n5(new w4("_write()"));
|
|
30565
30565
|
}, P4.prototype._writev = null, P4.prototype.end = function(e7, t5, n5) {
|
|
30566
30566
|
var i5 = this._writableState;
|
|
30567
|
-
return "function" == typeof e7 ? (n5 = e7, e7 = null, t5 = null) : "function" == typeof t5 && (n5 = t5, t5 = null), null != e7 && this.write(e7, t5), i5.corked && (i5.corked = 1, this.uncork()), i5.ending || function(e8, t6, n6) {
|
|
30567
|
+
return "function" == typeof e7 ? (n5 = e7, e7 = null, t5 = null) : "function" == typeof t5 && (n5 = t5, t5 = null), null != e7 && this.write(e7, t5), i5.corked && (i5.corked = 1, this.uncork()), i5.ending || (function(e8, t6, n6) {
|
|
30568
30568
|
t6.ending = true, q3(e8, t6), n6 && (t6.finished ? r5.nextTick(n6) : e8.once("finish", n6));
|
|
30569
30569
|
t6.ended = true, e8.writable = false;
|
|
30570
|
-
}(this, i5, n5), this;
|
|
30570
|
+
})(this, i5, n5), this;
|
|
30571
30571
|
}, Object.defineProperty(P4.prototype, "writableLength", { enumerable: false, get: function() {
|
|
30572
30572
|
return this._writableState.length;
|
|
30573
30573
|
} }), Object.defineProperty(P4.prototype, "destroyed", { enumerable: false, get: function() {
|
|
@@ -30623,7 +30623,7 @@ function t$3$1() {
|
|
|
30623
30623
|
}
|
|
30624
30624
|
var n$1$12 = function e5(n5, o5, a5) {
|
|
30625
30625
|
if ("function" == typeof o5) return e5(n5, null, o5);
|
|
30626
|
-
o5 || (o5 = {}), a5 = /* @__PURE__ */ function(e7) {
|
|
30626
|
+
o5 || (o5 = {}), a5 = /* @__PURE__ */ (function(e7) {
|
|
30627
30627
|
var r5 = false;
|
|
30628
30628
|
return function() {
|
|
30629
30629
|
if (!r5) {
|
|
@@ -30632,7 +30632,7 @@ var n$1$12 = function e5(n5, o5, a5) {
|
|
|
30632
30632
|
e7.apply(this, n6);
|
|
30633
30633
|
}
|
|
30634
30634
|
};
|
|
30635
|
-
}(a5 || t$3$1);
|
|
30635
|
+
})(a5 || t$3$1);
|
|
30636
30636
|
var i5 = o5.readable || false !== o5.readable && n5.readable, l5 = o5.writable || false !== o5.writable && n5.writable, c5 = function() {
|
|
30637
30637
|
n5.writable || s5();
|
|
30638
30638
|
}, f6 = n5._writableState && n5._writableState.finished, s5 = function() {
|
|
@@ -30647,9 +30647,9 @@ var n$1$12 = function e5(n5, o5, a5) {
|
|
|
30647
30647
|
}, m4 = function() {
|
|
30648
30648
|
n5.req.on("finish", s5);
|
|
30649
30649
|
};
|
|
30650
|
-
return !function(e7) {
|
|
30650
|
+
return !(function(e7) {
|
|
30651
30651
|
return e7.setHeader && "function" == typeof e7.abort;
|
|
30652
|
-
}(n5) ? l5 && !n5._writableState && (n5.on("end", c5), n5.on("close", c5)) : (n5.on("complete", s5), n5.on("abort", v5), n5.req ? m4() : n5.on("request", m4)), n5.on("end", d4), n5.on("finish", s5), false !== o5.error && n5.on("error", b4), n5.on("close", v5), function() {
|
|
30652
|
+
})(n5) ? l5 && !n5._writableState && (n5.on("end", c5), n5.on("close", c5)) : (n5.on("complete", s5), n5.on("abort", v5), n5.req ? m4() : n5.on("request", m4)), n5.on("end", d4), n5.on("finish", s5), false !== o5.error && n5.on("error", b4), n5.on("close", v5), function() {
|
|
30653
30653
|
n5.removeListener("complete", s5), n5.removeListener("abort", v5), n5.removeListener("request", m4), n5.req && n5.req.removeListener("finish", s5), n5.removeListener("end", c5), n5.removeListener("close", c5), n5.removeListener("finish", s5), n5.removeListener("end", d4), n5.removeListener("error", b4), n5.removeListener("close", v5);
|
|
30654
30654
|
};
|
|
30655
30655
|
};
|
|
@@ -30657,9 +30657,9 @@ function f$1$1(e7, t5) {
|
|
|
30657
30657
|
var n5 = Object.keys(e7);
|
|
30658
30658
|
if (Object.getOwnPropertySymbols) {
|
|
30659
30659
|
var r5 = Object.getOwnPropertySymbols(e7);
|
|
30660
|
-
t5 && (r5 = r5.filter(function(t6) {
|
|
30660
|
+
t5 && (r5 = r5.filter((function(t6) {
|
|
30661
30661
|
return Object.getOwnPropertyDescriptor(e7, t6).enumerable;
|
|
30662
|
-
})), n5.push.apply(n5, r5);
|
|
30662
|
+
}))), n5.push.apply(n5, r5);
|
|
30663
30663
|
}
|
|
30664
30664
|
return n5;
|
|
30665
30665
|
}
|
|
@@ -30675,11 +30675,11 @@ function c$1$12(e7, t5) {
|
|
|
30675
30675
|
var b$1$1 = e$1$1.Buffer;
|
|
30676
30676
|
var p$1$1 = X.inspect;
|
|
30677
30677
|
var g$1$1 = p$1$1 && p$1$1.custom || "inspect";
|
|
30678
|
-
var y$1$1 = function() {
|
|
30678
|
+
var y$1$1 = (function() {
|
|
30679
30679
|
function e7() {
|
|
30680
|
-
!function(e8, t6) {
|
|
30680
|
+
!(function(e8, t6) {
|
|
30681
30681
|
if (!(e8 instanceof t6)) throw new TypeError("Cannot call a class as a function");
|
|
30682
|
-
}(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
30682
|
+
})(this, e7), this.head = null, this.tail = null, this.length = 0;
|
|
30683
30683
|
}
|
|
30684
30684
|
var t5, n5;
|
|
30685
30685
|
return t5 = e7, (n5 = [{ key: "push", value: function(e8) {
|
|
@@ -30731,19 +30731,19 @@ var y$1$1 = function() {
|
|
|
30731
30731
|
}
|
|
30732
30732
|
return this.length -= r5, t6;
|
|
30733
30733
|
} }, { key: g$1$1, value: function(e8, t6) {
|
|
30734
|
-
return p$1$1(this, function(e9) {
|
|
30734
|
+
return p$1$1(this, (function(e9) {
|
|
30735
30735
|
for (var t7 = 1; t7 < arguments.length; t7++) {
|
|
30736
30736
|
var n6 = null != arguments[t7] ? arguments[t7] : {};
|
|
30737
|
-
t7 % 2 ? f$1$1(Object(n6), true).forEach(function(t8) {
|
|
30737
|
+
t7 % 2 ? f$1$1(Object(n6), true).forEach((function(t8) {
|
|
30738
30738
|
h$1$12(e9, t8, n6[t8]);
|
|
30739
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : f$1$1(Object(n6)).forEach(function(t8) {
|
|
30739
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e9, Object.getOwnPropertyDescriptors(n6)) : f$1$1(Object(n6)).forEach((function(t8) {
|
|
30740
30740
|
Object.defineProperty(e9, t8, Object.getOwnPropertyDescriptor(n6, t8));
|
|
30741
|
-
});
|
|
30741
|
+
}));
|
|
30742
30742
|
}
|
|
30743
30743
|
return e9;
|
|
30744
|
-
}({}, t6, { depth: 0, customInspect: false }));
|
|
30744
|
+
})({}, t6, { depth: 0, customInspect: false }));
|
|
30745
30745
|
} }]) && c$1$12(t5.prototype, n5), e7;
|
|
30746
|
-
}();
|
|
30746
|
+
})();
|
|
30747
30747
|
var w$1$1 = T$1;
|
|
30748
30748
|
function _$1$1(e7, t5) {
|
|
30749
30749
|
m$1$1(e7, t5), v$1$1(e7);
|
|
@@ -30756,9 +30756,9 @@ function m$1$1(e7, t5) {
|
|
|
30756
30756
|
}
|
|
30757
30757
|
var S$1$1 = { destroy: function(e7, t5) {
|
|
30758
30758
|
var n5 = this, r5 = this._readableState && this._readableState.destroyed, i5 = this._writableState && this._writableState.destroyed;
|
|
30759
|
-
return r5 || i5 ? (t5 ? t5(e7) : e7 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, w$1$1.nextTick(m$1$1, this, e7)) : w$1$1.nextTick(m$1$1, this, e7)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e7 || null, function(e8) {
|
|
30759
|
+
return r5 || i5 ? (t5 ? t5(e7) : e7 && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, w$1$1.nextTick(m$1$1, this, e7)) : w$1$1.nextTick(m$1$1, this, e7)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(e7 || null, (function(e8) {
|
|
30760
30760
|
!t5 && e8 ? n5._writableState ? n5._writableState.errorEmitted ? w$1$1.nextTick(v$1$1, n5) : (n5._writableState.errorEmitted = true, w$1$1.nextTick(_$1$1, n5, e8)) : w$1$1.nextTick(_$1$1, n5, e8) : t5 ? (w$1$1.nextTick(v$1$1, n5), t5(e8)) : w$1$1.nextTick(v$1$1, n5);
|
|
30761
|
-
}), this);
|
|
30761
|
+
})), this);
|
|
30762
30762
|
}, undestroy: function() {
|
|
30763
30763
|
this._readableState && (this._readableState.destroyed = false, this._readableState.reading = false, this._readableState.ended = false, this._readableState.endEmitted = false), this._writableState && (this._writableState.destroyed = false, this._writableState.ended = false, this._writableState.ending = false, this._writableState.finalCalled = false, this._writableState.prefinished = false, this._writableState.finished = false, this._writableState.errorEmitted = false);
|
|
30764
30764
|
}, errorOrDestroy: function(e7, t5) {
|
|
@@ -30768,9 +30768,9 @@ var S$1$1 = { destroy: function(e7, t5) {
|
|
|
30768
30768
|
var R$1$1 = e$1$12.codes.ERR_INVALID_OPT_VALUE;
|
|
30769
30769
|
var k$1$1;
|
|
30770
30770
|
var E$1$1 = { getHighWaterMark: function(e7, t5, n5, r5) {
|
|
30771
|
-
var i5 = function(e8, t6, n6) {
|
|
30771
|
+
var i5 = (function(e8, t6, n6) {
|
|
30772
30772
|
return null != e8.highWaterMark ? e8.highWaterMark : t6 ? e8[n6] : null;
|
|
30773
|
-
}(t5, r5, n5);
|
|
30773
|
+
})(t5, r5, n5);
|
|
30774
30774
|
if (null != i5) {
|
|
30775
30775
|
if (!isFinite(i5) || Math.floor(i5) !== i5 || i5 < 0) throw new R$1$1(r5 ? n5 : "highWaterMark", i5);
|
|
30776
30776
|
return Math.floor(i5);
|
|
@@ -30802,58 +30802,58 @@ function B$1$1(e7) {
|
|
|
30802
30802
|
function q$1$1(e7) {
|
|
30803
30803
|
M$1$1.nextTick(B$1$1, e7);
|
|
30804
30804
|
}
|
|
30805
|
-
var I$1$1 = Object.getPrototypeOf(function() {
|
|
30806
|
-
});
|
|
30805
|
+
var I$1$1 = Object.getPrototypeOf((function() {
|
|
30806
|
+
}));
|
|
30807
30807
|
var N$1$1 = Object.setPrototypeOf((j$1$1(k$1$1 = { get stream() {
|
|
30808
30808
|
return this[A$1$1];
|
|
30809
30809
|
}, next: function() {
|
|
30810
30810
|
var e7 = this, t5 = this[P$1$1];
|
|
30811
30811
|
if (null !== t5) return Promise.reject(t5);
|
|
30812
30812
|
if (this[D$1$1]) return Promise.resolve(W$1$1(void 0, true));
|
|
30813
|
-
if (this[A$1$1].destroyed) return new Promise(function(t6, n6) {
|
|
30814
|
-
M$1$1.nextTick(function() {
|
|
30813
|
+
if (this[A$1$1].destroyed) return new Promise((function(t6, n6) {
|
|
30814
|
+
M$1$1.nextTick((function() {
|
|
30815
30815
|
e7[P$1$1] ? n6(e7[P$1$1]) : t6(W$1$1(void 0, true));
|
|
30816
|
-
});
|
|
30817
|
-
});
|
|
30816
|
+
}));
|
|
30817
|
+
}));
|
|
30818
30818
|
var n5, r5 = this[L$1$1];
|
|
30819
|
-
if (r5) n5 = new Promise(/* @__PURE__ */ function(e8, t6) {
|
|
30819
|
+
if (r5) n5 = new Promise(/* @__PURE__ */ (function(e8, t6) {
|
|
30820
30820
|
return function(n6, r6) {
|
|
30821
|
-
e8.then(function() {
|
|
30821
|
+
e8.then((function() {
|
|
30822
30822
|
if (t6[D$1$1]) return n6(W$1$1(void 0, true)), void 0;
|
|
30823
30823
|
t6[C$1$1](n6, r6);
|
|
30824
|
-
}, r6);
|
|
30824
|
+
}), r6);
|
|
30825
30825
|
};
|
|
30826
|
-
}(r5, this));
|
|
30826
|
+
})(r5, this));
|
|
30827
30827
|
else {
|
|
30828
30828
|
var i5 = this[A$1$1].read();
|
|
30829
30829
|
if (null !== i5) return Promise.resolve(W$1$1(i5, false));
|
|
30830
30830
|
n5 = new Promise(this[C$1$1]);
|
|
30831
30831
|
}
|
|
30832
30832
|
return this[L$1$1] = n5, n5;
|
|
30833
|
-
} }, Symbol.asyncIterator, function() {
|
|
30833
|
+
} }, Symbol.asyncIterator, (function() {
|
|
30834
30834
|
return this;
|
|
30835
|
-
}), j$1$1(k$1$1, "return", function() {
|
|
30835
|
+
})), j$1$1(k$1$1, "return", (function() {
|
|
30836
30836
|
var e7 = this;
|
|
30837
|
-
return new Promise(function(t5, n5) {
|
|
30838
|
-
e7[A$1$1].destroy(null, function(e8) {
|
|
30837
|
+
return new Promise((function(t5, n5) {
|
|
30838
|
+
e7[A$1$1].destroy(null, (function(e8) {
|
|
30839
30839
|
if (e8) return n5(e8), void 0;
|
|
30840
30840
|
t5(W$1$1(void 0, true));
|
|
30841
|
-
});
|
|
30842
|
-
});
|
|
30843
|
-
}), k$1$1), I$1$1);
|
|
30841
|
+
}));
|
|
30842
|
+
}));
|
|
30843
|
+
})), k$1$1), I$1$1);
|
|
30844
30844
|
var U$1$1 = function(e7) {
|
|
30845
30845
|
var t5, n5 = Object.create(N$1$1, (j$1$1(t5 = {}, A$1$1, { value: e7, writable: true }), j$1$1(t5, T$1$1, { value: null, writable: true }), j$1$1(t5, x$1$1, { value: null, writable: true }), j$1$1(t5, P$1$1, { value: null, writable: true }), j$1$1(t5, D$1$1, { value: e7._readableState.endEmitted, writable: true }), j$1$1(t5, C$1$1, { value: function(e8, t6) {
|
|
30846
30846
|
var r5 = n5[A$1$1].read();
|
|
30847
30847
|
r5 ? (n5[L$1$1] = null, n5[T$1$1] = null, n5[x$1$1] = null, e8(W$1$1(r5, false))) : (n5[T$1$1] = e8, n5[x$1$1] = t6);
|
|
30848
30848
|
}, writable: true }), t5));
|
|
30849
|
-
return n5[L$1$1] = null, O$1$1(e7, function(e8) {
|
|
30849
|
+
return n5[L$1$1] = null, O$1$1(e7, (function(e8) {
|
|
30850
30850
|
if (e8 && "ERR_STREAM_PREMATURE_CLOSE" !== e8.code) {
|
|
30851
30851
|
var t6 = n5[x$1$1];
|
|
30852
30852
|
return null !== t6 && (n5[L$1$1] = null, n5[T$1$1] = null, n5[x$1$1] = null, t6(e8)), n5[P$1$1] = e8, void 0;
|
|
30853
30853
|
}
|
|
30854
30854
|
var r5 = n5[T$1$1];
|
|
30855
30855
|
null !== r5 && (n5[L$1$1] = null, n5[T$1$1] = null, n5[x$1$1] = null, r5(W$1$1(void 0, true))), n5[D$1$1] = true;
|
|
30856
|
-
}), e7.on("readable", q$1$1.bind(null, n5)), n5;
|
|
30856
|
+
})), e7.on("readable", q$1$1.bind(null, n5)), n5;
|
|
30857
30857
|
};
|
|
30858
30858
|
var H$1$1 = {};
|
|
30859
30859
|
var F$1$1 = false;
|
|
@@ -30885,23 +30885,23 @@ function G$1$1() {
|
|
|
30885
30885
|
function A4(e7, t5, n5, r5, i5) {
|
|
30886
30886
|
p5("readableAddChunk", t5);
|
|
30887
30887
|
var a5, o5 = e7._readableState;
|
|
30888
|
-
if (null === t5) o5.reading = false, function(e8, t6) {
|
|
30888
|
+
if (null === t5) o5.reading = false, (function(e8, t6) {
|
|
30889
30889
|
if (p5("onEofChunk"), t6.ended) return;
|
|
30890
30890
|
if (t6.decoder) {
|
|
30891
30891
|
var n6 = t6.decoder.end();
|
|
30892
30892
|
n6 && n6.length && (t6.buffer.push(n6), t6.length += t6.objectMode ? 1 : n6.length);
|
|
30893
30893
|
}
|
|
30894
30894
|
t6.ended = true, t6.sync ? q3(e8) : (t6.needReadable = false, t6.emittedReadable || (t6.emittedReadable = true, I4(e8)));
|
|
30895
|
-
}(e7, o5);
|
|
30896
|
-
else if (i5 || (a5 = function(e8, t6) {
|
|
30895
|
+
})(e7, o5);
|
|
30896
|
+
else if (i5 || (a5 = (function(e8, t6) {
|
|
30897
30897
|
var n6;
|
|
30898
30898
|
r6 = t6, c5.isBuffer(r6) || r6 instanceof b4 || "string" == typeof t6 || void 0 === t6 || e8.objectMode || (n6 = new j4("chunk", ["string", "Buffer", "Uint8Array"], t6));
|
|
30899
30899
|
var r6;
|
|
30900
30900
|
return n6;
|
|
30901
|
-
}(o5, t5)), a5) P4(e7, a5);
|
|
30902
|
-
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = function(e8) {
|
|
30901
|
+
})(o5, t5)), a5) P4(e7, a5);
|
|
30902
|
+
else if (o5.objectMode || t5 && t5.length > 0) if ("string" == typeof t5 || o5.objectMode || Object.getPrototypeOf(t5) === c5.prototype || (t5 = (function(e8) {
|
|
30903
30903
|
return c5.from(e8);
|
|
30904
|
-
}(t5)), r5) o5.endEmitted ? P4(e7, new x4()) : W3(e7, o5, t5, true);
|
|
30904
|
+
})(t5)), r5) o5.endEmitted ? P4(e7, new x4()) : W3(e7, o5, t5, true);
|
|
30905
30905
|
else if (o5.ended) P4(e7, new O4());
|
|
30906
30906
|
else {
|
|
30907
30907
|
if (o5.destroyed) return false;
|
|
@@ -30934,9 +30934,9 @@ function G$1$1() {
|
|
|
30934
30934
|
return this._readableState.buffer.clear(), "" !== r5 && this._readableState.buffer.push(r5), this._readableState.length = r5.length, this;
|
|
30935
30935
|
};
|
|
30936
30936
|
function B4(e7, t5) {
|
|
30937
|
-
return e7 <= 0 || 0 === t5.length && t5.ended ? 0 : t5.objectMode ? 1 : e7 != e7 ? t5.flowing && t5.length ? t5.buffer.head.data.length : t5.length : (e7 > t5.highWaterMark && (t5.highWaterMark = function(e8) {
|
|
30937
|
+
return e7 <= 0 || 0 === t5.length && t5.ended ? 0 : t5.objectMode ? 1 : e7 != e7 ? t5.flowing && t5.length ? t5.buffer.head.data.length : t5.length : (e7 > t5.highWaterMark && (t5.highWaterMark = (function(e8) {
|
|
30938
30938
|
return e8 >= 1073741824 ? e8 = 1073741824 : (e8--, e8 |= e8 >>> 1, e8 |= e8 >>> 2, e8 |= e8 >>> 4, e8 |= e8 >>> 8, e8 |= e8 >>> 16, e8++), e8;
|
|
30939
|
-
}(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30939
|
+
})(e7)), e7 <= t5.length ? e7 : t5.ended ? t5.length : (t5.needReadable = true, 0));
|
|
30940
30940
|
}
|
|
30941
30941
|
function q3(e7) {
|
|
30942
30942
|
var t5 = e7._readableState;
|
|
@@ -31018,12 +31018,12 @@ function G$1$1() {
|
|
|
31018
31018
|
p5("onend"), e7.end();
|
|
31019
31019
|
}
|
|
31020
31020
|
r5.endEmitted ? u5.nextTick(i5) : n5.once("end", i5), e7.on("unpipe", a5);
|
|
31021
|
-
var s5 = /* @__PURE__ */ function(e8) {
|
|
31021
|
+
var s5 = /* @__PURE__ */ (function(e8) {
|
|
31022
31022
|
return function() {
|
|
31023
31023
|
var t6 = e8._readableState;
|
|
31024
31024
|
p5("pipeOnDrain", t6.awaitDrain), t6.awaitDrain && t6.awaitDrain--, 0 === t6.awaitDrain && f6(e8, "data") && (t6.flowing = true, J3(e8));
|
|
31025
31025
|
};
|
|
31026
|
-
}(n5);
|
|
31026
|
+
})(n5);
|
|
31027
31027
|
e7.on("drain", s5);
|
|
31028
31028
|
var l6 = false;
|
|
31029
31029
|
function d4(t6) {
|
|
@@ -31043,10 +31043,10 @@ function G$1$1() {
|
|
|
31043
31043
|
function g5() {
|
|
31044
31044
|
p5("unpipe"), n5.unpipe(e7);
|
|
31045
31045
|
}
|
|
31046
|
-
return n5.on("data", d4), function(e8, t6, n6) {
|
|
31046
|
+
return n5.on("data", d4), (function(e8, t6, n6) {
|
|
31047
31047
|
if ("function" == typeof e8.prependListener) return e8.prependListener(t6, n6);
|
|
31048
31048
|
e8._events && e8._events[t6] ? Array.isArray(e8._events[t6]) ? e8._events[t6].unshift(n6) : e8._events[t6] = [n6, e8._events[t6]] : e8.on(t6, n6);
|
|
31049
|
-
}(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
31049
|
+
})(e7, "error", h6), e7.once("close", c6), e7.once("finish", b5), e7.emit("pipe", n5), r5.flowing || (p5("pipe resume"), n5.resume()), e7;
|
|
31050
31050
|
}, C4.prototype.unpipe = function(e7) {
|
|
31051
31051
|
var t5 = this._readableState, n5 = { hasUnpiped: false };
|
|
31052
31052
|
if (0 === t5.pipesCount) return this;
|
|
@@ -31070,26 +31070,26 @@ function G$1$1() {
|
|
|
31070
31070
|
return "readable" !== e7 && void 0 !== e7 || u5.nextTick(Y4, this), t5;
|
|
31071
31071
|
}, C4.prototype.resume = function() {
|
|
31072
31072
|
var e7 = this._readableState;
|
|
31073
|
-
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, function(e8, t5) {
|
|
31073
|
+
return e7.flowing || (p5("resume"), e7.flowing = !e7.readableListening, (function(e8, t5) {
|
|
31074
31074
|
t5.resumeScheduled || (t5.resumeScheduled = true, u5.nextTick(z4, e8, t5));
|
|
31075
|
-
}(this, e7)), e7.paused = false, this;
|
|
31075
|
+
})(this, e7)), e7.paused = false, this;
|
|
31076
31076
|
}, C4.prototype.pause = function() {
|
|
31077
31077
|
return p5("call pause flowing=%j", this._readableState.flowing), false !== this._readableState.flowing && (p5("pause"), this._readableState.flowing = false, this.emit("pause")), this._readableState.paused = true, this;
|
|
31078
31078
|
}, C4.prototype.wrap = function(e7) {
|
|
31079
31079
|
var t5 = this, n5 = this._readableState, r5 = false;
|
|
31080
|
-
for (var i5 in e7.on("end", function() {
|
|
31080
|
+
for (var i5 in e7.on("end", (function() {
|
|
31081
31081
|
if (p5("wrapped end"), n5.decoder && !n5.ended) {
|
|
31082
31082
|
var e8 = n5.decoder.end();
|
|
31083
31083
|
e8 && e8.length && t5.push(e8);
|
|
31084
31084
|
}
|
|
31085
31085
|
t5.push(null);
|
|
31086
|
-
}), e7.on("data", function(i6) {
|
|
31086
|
+
})), e7.on("data", (function(i6) {
|
|
31087
31087
|
(p5("wrapped data"), n5.decoder && (i6 = n5.decoder.write(i6)), n5.objectMode && null == i6) || (n5.objectMode || i6 && i6.length) && (t5.push(i6) || (r5 = true, e7.pause()));
|
|
31088
|
-
}), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ function(t6) {
|
|
31088
|
+
})), e7) void 0 === this[i5] && "function" == typeof e7[i5] && (this[i5] = /* @__PURE__ */ (function(t6) {
|
|
31089
31089
|
return function() {
|
|
31090
31090
|
return e7[t6].apply(e7, arguments);
|
|
31091
31091
|
};
|
|
31092
|
-
}(i5));
|
|
31092
|
+
})(i5));
|
|
31093
31093
|
for (var a5 = 0; a5 < D4.length; a5++) e7.on(D4[a5], this.emit.bind(this, D4[a5]));
|
|
31094
31094
|
return this._read = function(t6) {
|
|
31095
31095
|
p5("wrapped _read", t6), r5 && (r5 = false, e7.resume());
|
|
@@ -31120,7 +31120,7 @@ function J$1$1() {
|
|
|
31120
31120
|
function s5(e7) {
|
|
31121
31121
|
var t5 = this;
|
|
31122
31122
|
this.next = null, this.entry = null, this.finish = function() {
|
|
31123
|
-
!function(e8, t6, n5) {
|
|
31123
|
+
!(function(e8, t6, n5) {
|
|
31124
31124
|
var r6 = e8.entry;
|
|
31125
31125
|
e8.entry = null;
|
|
31126
31126
|
for (; r6; ) {
|
|
@@ -31128,7 +31128,7 @@ function J$1$1() {
|
|
|
31128
31128
|
t6.pendingcb--, i5(n5), r6 = r6.next;
|
|
31129
31129
|
}
|
|
31130
31130
|
t6.corkedRequestsFree.next = e8;
|
|
31131
|
-
}(t5, e7);
|
|
31131
|
+
})(t5, e7);
|
|
31132
31132
|
};
|
|
31133
31133
|
}
|
|
31134
31134
|
Y$1$1 = x4, x4.WritableState = T4;
|
|
@@ -31141,19 +31141,19 @@ function J$1$1() {
|
|
|
31141
31141
|
e$23 = e$23 || Z$1$1(), t5 = t5 || {}, "boolean" != typeof i5 && (i5 = n5 instanceof e$23), this.objectMode = !!t5.objectMode, i5 && (this.objectMode = this.objectMode || !!t5.writableObjectMode), this.highWaterMark = p5(this, t5, "writableHighWaterMark", i5), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
|
|
31142
31142
|
var a5 = false === t5.decodeStrings;
|
|
31143
31143
|
this.decodeStrings = !a5, this.defaultEncoding = t5.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(e7) {
|
|
31144
|
-
!function(e8, t6) {
|
|
31144
|
+
!(function(e8, t6) {
|
|
31145
31145
|
var n6 = e8._writableState, i6 = n6.sync, a6 = n6.writecb;
|
|
31146
31146
|
if ("function" != typeof a6) throw new _4();
|
|
31147
|
-
if (function(e9) {
|
|
31147
|
+
if ((function(e9) {
|
|
31148
31148
|
e9.writing = false, e9.writecb = null, e9.length -= e9.writelen, e9.writelen = 0;
|
|
31149
|
-
}(n6), t6) !function(e9, t7, n7, i7, a7) {
|
|
31149
|
+
})(n6), t6) !(function(e9, t7, n7, i7, a7) {
|
|
31150
31150
|
--t7.pendingcb, n7 ? (r5.nextTick(a7, i7), r5.nextTick(W3, e9, t7), e9._writableState.errorEmitted = true, j4(e9, i7)) : (a7(i7), e9._writableState.errorEmitted = true, j4(e9, i7), W3(e9, t7));
|
|
31151
|
-
}(e8, n6, i6, t6, a6);
|
|
31151
|
+
})(e8, n6, i6, t6, a6);
|
|
31152
31152
|
else {
|
|
31153
31153
|
var o5 = C4(n6) || e8.destroyed;
|
|
31154
31154
|
o5 || n6.corked || n6.bufferProcessing || !n6.bufferedRequest || L4(e8, n6), i6 ? r5.nextTick(D4, e8, n6, o5, a6) : D4(e8, n6, o5, a6);
|
|
31155
31155
|
}
|
|
31156
|
-
}(n5, e7);
|
|
31156
|
+
})(n5, e7);
|
|
31157
31157
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = false !== t5.emitClose, this.autoDestroy = !!t5.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new s5(this);
|
|
31158
31158
|
}
|
|
31159
31159
|
function x4(t5) {
|
|
@@ -31165,9 +31165,9 @@ function J$1$1() {
|
|
|
31165
31165
|
t5.writelen = r6, t5.writecb = o5, t5.writing = true, t5.sync = true, t5.destroyed ? t5.onwrite(new m4("write")) : n5 ? e7._writev(i5, t5.onwrite) : e7._write(i5, a5, t5.onwrite), t5.sync = false;
|
|
31166
31166
|
}
|
|
31167
31167
|
function D4(e7, t5, n5, r6) {
|
|
31168
|
-
n5 || !function(e8, t6) {
|
|
31168
|
+
n5 || !(function(e8, t6) {
|
|
31169
31169
|
0 === t6.length && t6.needDrain && (t6.needDrain = false, e8.emit("drain"));
|
|
31170
|
-
}(e7, t5), t5.pendingcb--, r6(), W3(e7, t5);
|
|
31170
|
+
})(e7, t5), t5.pendingcb--, r6(), W3(e7, t5);
|
|
31171
31171
|
}
|
|
31172
31172
|
function L4(e7, t5) {
|
|
31173
31173
|
t5.bufferProcessing = true;
|
|
@@ -31190,15 +31190,15 @@ function J$1$1() {
|
|
|
31190
31190
|
return e7.ending && 0 === e7.length && null === e7.bufferedRequest && !e7.finished && !e7.writing;
|
|
31191
31191
|
}
|
|
31192
31192
|
function A4(e7, t5) {
|
|
31193
|
-
e7._final(function(n5) {
|
|
31193
|
+
e7._final((function(n5) {
|
|
31194
31194
|
t5.pendingcb--, n5 && j4(e7, n5), t5.prefinished = true, e7.emit("prefinish"), W3(e7, t5);
|
|
31195
|
-
});
|
|
31195
|
+
}));
|
|
31196
31196
|
}
|
|
31197
31197
|
function W3(e7, t5) {
|
|
31198
31198
|
var n5 = C4(t5);
|
|
31199
|
-
if (n5 && (!function(e8, t6) {
|
|
31199
|
+
if (n5 && (!(function(e8, t6) {
|
|
31200
31200
|
t6.prefinished || t6.finalCalled || ("function" != typeof e8._final || t6.destroyed ? (t6.prefinished = true, e8.emit("prefinish")) : (t6.pendingcb++, t6.finalCalled = true, r5.nextTick(A4, e8, t6)));
|
|
31201
|
-
}(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
31201
|
+
})(e7, t5), 0 === t5.pendingcb && (t5.finished = true, e7.emit("finish"), t5.autoDestroy))) {
|
|
31202
31202
|
var i5 = e7._readableState;
|
|
31203
31203
|
(!i5 || i5.autoDestroy && i5.endEmitted) && e7.destroy();
|
|
31204
31204
|
}
|
|
@@ -31207,14 +31207,14 @@ function J$1$1() {
|
|
|
31207
31207
|
return t$2(x4, d4), T4.prototype.getBuffer = function() {
|
|
31208
31208
|
for (var e7 = this.bufferedRequest, t5 = []; e7; ) t5.push(e7), e7 = e7.next;
|
|
31209
31209
|
return t5;
|
|
31210
|
-
}, function() {
|
|
31210
|
+
}, (function() {
|
|
31211
31211
|
try {
|
|
31212
|
-
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate(function() {
|
|
31212
|
+
Object.defineProperty(T4.prototype, "buffer", { get: l5.deprecate((function() {
|
|
31213
31213
|
return this.getBuffer();
|
|
31214
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
31214
|
+
}), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
|
|
31215
31215
|
} catch (e7) {
|
|
31216
31216
|
}
|
|
31217
|
-
}(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(x4, Symbol.hasInstance, { value: function(e7) {
|
|
31217
|
+
})(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (c5 = Function.prototype[Symbol.hasInstance], Object.defineProperty(x4, Symbol.hasInstance, { value: function(e7) {
|
|
31218
31218
|
return !!c5.call(this, e7) || this === x4 && (e7 && e7._writableState instanceof T4);
|
|
31219
31219
|
} })) : c5 = function(e7) {
|
|
31220
31220
|
return e7 instanceof this;
|
|
@@ -31222,20 +31222,20 @@ function J$1$1() {
|
|
|
31222
31222
|
j4(this, new v5());
|
|
31223
31223
|
}, x4.prototype.write = function(e7, t5, n5) {
|
|
31224
31224
|
var i5, a5 = this._writableState, o5 = false, s6 = !a5.objectMode && (i5 = e7, f6.isBuffer(i5) || i5 instanceof h5);
|
|
31225
|
-
return s6 && !f6.isBuffer(e7) && (e7 = function(e8) {
|
|
31225
|
+
return s6 && !f6.isBuffer(e7) && (e7 = (function(e8) {
|
|
31226
31226
|
return f6.from(e8);
|
|
31227
|
-
}(e7)), "function" == typeof t5 && (n5 = t5, t5 = null), s6 ? t5 = "buffer" : t5 || (t5 = a5.defaultEncoding), "function" != typeof n5 && (n5 = O4), a5.ending ? function(e8, t6) {
|
|
31227
|
+
})(e7)), "function" == typeof t5 && (n5 = t5, t5 = null), s6 ? t5 = "buffer" : t5 || (t5 = a5.defaultEncoding), "function" != typeof n5 && (n5 = O4), a5.ending ? (function(e8, t6) {
|
|
31228
31228
|
var n6 = new k4();
|
|
31229
31229
|
j4(e8, n6), r5.nextTick(t6, n6);
|
|
31230
|
-
}(this, n5) : (s6 || function(e8, t6, n6, i6) {
|
|
31230
|
+
})(this, n5) : (s6 || (function(e8, t6, n6, i6) {
|
|
31231
31231
|
var a6;
|
|
31232
31232
|
return null === n6 ? a6 = new R4() : "string" == typeof n6 || t6.objectMode || (a6 = new y5("chunk", ["string", "Buffer"], n6)), !a6 || (j4(e8, a6), r5.nextTick(i6, a6), false);
|
|
31233
|
-
}(this, a5, e7, n5)) && (a5.pendingcb++, o5 = function(e8, t6, n6, r6, i6, a6) {
|
|
31233
|
+
})(this, a5, e7, n5)) && (a5.pendingcb++, o5 = (function(e8, t6, n6, r6, i6, a6) {
|
|
31234
31234
|
if (!n6) {
|
|
31235
|
-
var o6 = function(e9, t7, n7) {
|
|
31235
|
+
var o6 = (function(e9, t7, n7) {
|
|
31236
31236
|
e9.objectMode || false === e9.decodeStrings || "string" != typeof t7 || (t7 = f6.from(t7, n7));
|
|
31237
31237
|
return t7;
|
|
31238
|
-
}(t6, r6, i6);
|
|
31238
|
+
})(t6, r6, i6);
|
|
31239
31239
|
r6 !== o6 && (n6 = true, i6 = "buffer", r6 = o6);
|
|
31240
31240
|
}
|
|
31241
31241
|
var s7 = t6.objectMode ? 1 : r6.length;
|
|
@@ -31247,7 +31247,7 @@ function J$1$1() {
|
|
|
31247
31247
|
t6.lastBufferedRequest = { chunk: r6, encoding: i6, isBuf: n6, callback: a6, next: null }, d5 ? d5.next = t6.lastBufferedRequest : t6.bufferedRequest = t6.lastBufferedRequest, t6.bufferedRequestCount += 1;
|
|
31248
31248
|
} else P4(e8, t6, false, s7, r6, i6, a6);
|
|
31249
31249
|
return l6;
|
|
31250
|
-
}(this, a5, s6, e7, t5, n5)), o5;
|
|
31250
|
+
})(this, a5, s6, e7, t5, n5)), o5;
|
|
31251
31251
|
}, x4.prototype.cork = function() {
|
|
31252
31252
|
this._writableState.corked++;
|
|
31253
31253
|
}, x4.prototype.uncork = function() {
|
|
@@ -31264,10 +31264,10 @@ function J$1$1() {
|
|
|
31264
31264
|
n5(new w4("_write()"));
|
|
31265
31265
|
}, x4.prototype._writev = null, x4.prototype.end = function(e7, t5, n5) {
|
|
31266
31266
|
var i5 = this._writableState;
|
|
31267
|
-
return "function" == typeof e7 ? (n5 = e7, e7 = null, t5 = null) : "function" == typeof t5 && (n5 = t5, t5 = null), null != e7 && this.write(e7, t5), i5.corked && (i5.corked = 1, this.uncork()), i5.ending || function(e8, t6, n6) {
|
|
31267
|
+
return "function" == typeof e7 ? (n5 = e7, e7 = null, t5 = null) : "function" == typeof t5 && (n5 = t5, t5 = null), null != e7 && this.write(e7, t5), i5.corked && (i5.corked = 1, this.uncork()), i5.ending || (function(e8, t6, n6) {
|
|
31268
31268
|
t6.ending = true, W3(e8, t6), n6 && (t6.finished ? r5.nextTick(n6) : e8.once("finish", n6));
|
|
31269
31269
|
t6.ended = true, e8.writable = false;
|
|
31270
|
-
}(this, i5, n5), this;
|
|
31270
|
+
})(this, i5, n5), this;
|
|
31271
31271
|
}, Object.defineProperty(x4.prototype, "writableLength", { enumerable: false, get: function() {
|
|
31272
31272
|
return this._writableState.length;
|
|
31273
31273
|
} }), Object.defineProperty(x4.prototype, "destroyed", { enumerable: false, get: function() {
|
|
@@ -31342,9 +31342,9 @@ function u$1$12(t5) {
|
|
|
31342
31342
|
}
|
|
31343
31343
|
function m$2$1() {
|
|
31344
31344
|
var t5 = this;
|
|
31345
|
-
"function" != typeof this._flush || this._readableState.destroyed ? _$2$1(this, null, null) : this._flush(function(r5, e7) {
|
|
31345
|
+
"function" != typeof this._flush || this._readableState.destroyed ? _$2$1(this, null, null) : this._flush((function(r5, e7) {
|
|
31346
31346
|
_$2$1(t5, r5, e7);
|
|
31347
|
-
});
|
|
31347
|
+
}));
|
|
31348
31348
|
}
|
|
31349
31349
|
function _$2$1(t5, r5, e7) {
|
|
31350
31350
|
if (r5) return t5.emit("error", r5);
|
|
@@ -31366,9 +31366,9 @@ t$2(u$1$12, h$2$1), u$1$12.prototype.push = function(t5, r5) {
|
|
|
31366
31366
|
var r5 = this._transformState;
|
|
31367
31367
|
null === r5.writechunk || r5.transforming ? r5.needTransform = true : (r5.transforming = true, this._transform(r5.writechunk, r5.writeencoding, r5.afterTransform));
|
|
31368
31368
|
}, u$1$12.prototype._destroy = function(t5, r5) {
|
|
31369
|
-
h$2$1.prototype._destroy.call(this, t5, function(t6) {
|
|
31369
|
+
h$2$1.prototype._destroy.call(this, t5, (function(t6) {
|
|
31370
31370
|
r5(t6);
|
|
31371
|
-
});
|
|
31371
|
+
}));
|
|
31372
31372
|
};
|
|
31373
31373
|
var p$2$1 = n$2$1;
|
|
31374
31374
|
var o$1$12;
|
|
@@ -31390,24 +31390,24 @@ function i$2$1(r5) {
|
|
|
31390
31390
|
if (r5) throw r5;
|
|
31391
31391
|
}
|
|
31392
31392
|
function u$2$1(r5, o5, e7, i5) {
|
|
31393
|
-
i5 = /* @__PURE__ */ function(r6) {
|
|
31393
|
+
i5 = /* @__PURE__ */ (function(r6) {
|
|
31394
31394
|
var n5 = false;
|
|
31395
31395
|
return function() {
|
|
31396
31396
|
n5 || (n5 = true, r6.apply(void 0, arguments));
|
|
31397
31397
|
};
|
|
31398
|
-
}(i5);
|
|
31398
|
+
})(i5);
|
|
31399
31399
|
var u5 = false;
|
|
31400
|
-
r5.on("close", function() {
|
|
31400
|
+
r5.on("close", (function() {
|
|
31401
31401
|
u5 = true;
|
|
31402
|
-
}), void 0 === t$6$1 && (t$6$1 = n$1$12), t$6$1(r5, { readable: o5, writable: e7 }, function(r6) {
|
|
31402
|
+
})), void 0 === t$6$1 && (t$6$1 = n$1$12), t$6$1(r5, { readable: o5, writable: e7 }, (function(r6) {
|
|
31403
31403
|
if (r6) return i5(r6);
|
|
31404
31404
|
u5 = true, i5();
|
|
31405
|
-
});
|
|
31405
|
+
}));
|
|
31406
31406
|
var a5 = false;
|
|
31407
31407
|
return function(n5) {
|
|
31408
|
-
if (!u5 && !a5) return a5 = true, function(r6) {
|
|
31408
|
+
if (!u5 && !a5) return a5 = true, (function(r6) {
|
|
31409
31409
|
return r6.setHeader && "function" == typeof r6.abort;
|
|
31410
|
-
}(r5) ? r5.abort() : "function" == typeof r5.destroy ? r5.destroy() : (i5(n5 || new f$3$1("pipe")), void 0);
|
|
31410
|
+
})(r5) ? r5.abort() : "function" == typeof r5.destroy ? r5.destroy() : (i5(n5 || new f$3$1("pipe")), void 0);
|
|
31411
31411
|
};
|
|
31412
31412
|
}
|
|
31413
31413
|
function a$1$12(r5) {
|
|
@@ -31423,12 +31423,12 @@ var v$2$1 = function() {
|
|
|
31423
31423
|
for (var r5 = arguments.length, n5 = new Array(r5), t5 = 0; t5 < r5; t5++) n5[t5] = arguments[t5];
|
|
31424
31424
|
var o5, f6 = p$3$1(n5);
|
|
31425
31425
|
if (Array.isArray(n5[0]) && (n5 = n5[0]), n5.length < 2) throw new e$4$1("streams");
|
|
31426
|
-
var i5 = n5.map(function(r6, t6) {
|
|
31426
|
+
var i5 = n5.map((function(r6, t6) {
|
|
31427
31427
|
var e7 = t6 < n5.length - 1;
|
|
31428
|
-
return u$2$1(r6, e7, t6 > 0, function(r7) {
|
|
31428
|
+
return u$2$1(r6, e7, t6 > 0, (function(r7) {
|
|
31429
31429
|
o5 || (o5 = r7), r7 && i5.forEach(a$1$12), e7 || (i5.forEach(a$1$12), f6(o5));
|
|
31430
|
-
});
|
|
31431
|
-
});
|
|
31430
|
+
}));
|
|
31431
|
+
}));
|
|
31432
31432
|
return n5.reduce(c$2$1);
|
|
31433
31433
|
};
|
|
31434
31434
|
var l$r;
|
|
@@ -33232,7 +33232,7 @@ function dew$1c$1() {
|
|
|
33232
33232
|
return [t0, t1, t22, t32];
|
|
33233
33233
|
}
|
|
33234
33234
|
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
33235
|
-
var G3 = function() {
|
|
33235
|
+
var G3 = (function() {
|
|
33236
33236
|
var d4 = new Array(256);
|
|
33237
33237
|
for (var j4 = 0; j4 < 256; j4++) {
|
|
33238
33238
|
if (j4 < 128) {
|
|
@@ -33278,7 +33278,7 @@ function dew$1c$1() {
|
|
|
33278
33278
|
SUB_MIX,
|
|
33279
33279
|
INV_SUB_MIX
|
|
33280
33280
|
};
|
|
33281
|
-
}();
|
|
33281
|
+
})();
|
|
33282
33282
|
function AES(key) {
|
|
33283
33283
|
(this || _global$j$1)._key = asUInt32Array(key);
|
|
33284
33284
|
this._reset();
|
|
@@ -39316,7 +39316,7 @@ var forEach2 = function(e7, t5) {
|
|
|
39316
39316
|
if (e7.forEach) return e7.forEach(t5);
|
|
39317
39317
|
for (var n5 = 0; n5 < e7.length; n5++) t5(e7[n5], n5, e7);
|
|
39318
39318
|
};
|
|
39319
|
-
var defineProp2 = function() {
|
|
39319
|
+
var defineProp2 = (function() {
|
|
39320
39320
|
try {
|
|
39321
39321
|
return Object.defineProperty({}, "_", {}), function(e7, t5, n5) {
|
|
39322
39322
|
Object.defineProperty(e7, t5, { writable: true, enumerable: false, configurable: true, value: n5 });
|
|
@@ -39326,7 +39326,7 @@ var defineProp2 = function() {
|
|
|
39326
39326
|
e8[t5] = n5;
|
|
39327
39327
|
};
|
|
39328
39328
|
}
|
|
39329
|
-
}();
|
|
39329
|
+
})();
|
|
39330
39330
|
var globals2 = ["Array", "Boolean", "Date", "Error", "EvalError", "Function", "Infinity", "JSON", "Math", "NaN", "Number", "Object", "RangeError", "ReferenceError", "RegExp", "String", "SyntaxError", "TypeError", "URIError", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "undefined", "unescape"];
|
|
39331
39331
|
function Context2() {
|
|
39332
39332
|
}
|
|
@@ -39340,38 +39340,38 @@ Script3.prototype.runInContext = function(e7) {
|
|
|
39340
39340
|
var t5 = document.createElement("iframe");
|
|
39341
39341
|
t5.style || (t5.style = {}), t5.style.display = "none", document.body.appendChild(t5);
|
|
39342
39342
|
var n5 = t5.contentWindow, r5 = n5.eval, o5 = n5.execScript;
|
|
39343
|
-
!r5 && o5 && (o5.call(n5, "null"), r5 = n5.eval), forEach2(Object_keys2(e7), function(t6) {
|
|
39343
|
+
!r5 && o5 && (o5.call(n5, "null"), r5 = n5.eval), forEach2(Object_keys2(e7), (function(t6) {
|
|
39344
39344
|
n5[t6] = e7[t6];
|
|
39345
|
-
}), forEach2(globals2, function(t6) {
|
|
39345
|
+
})), forEach2(globals2, (function(t6) {
|
|
39346
39346
|
e7[t6] && (n5[t6] = e7[t6]);
|
|
39347
|
-
});
|
|
39347
|
+
}));
|
|
39348
39348
|
var c5 = Object_keys2(n5), i5 = r5.call(n5, (this || _global$b$1).code);
|
|
39349
|
-
return forEach2(Object_keys2(n5), function(t6) {
|
|
39349
|
+
return forEach2(Object_keys2(n5), (function(t6) {
|
|
39350
39350
|
(t6 in e7 || -1 === indexOf2(c5, t6)) && (e7[t6] = n5[t6]);
|
|
39351
|
-
}), forEach2(globals2, function(t6) {
|
|
39351
|
+
})), forEach2(globals2, (function(t6) {
|
|
39352
39352
|
t6 in e7 || defineProp2(e7, t6, n5[t6]);
|
|
39353
|
-
}), document.body.removeChild(t5), i5;
|
|
39353
|
+
})), document.body.removeChild(t5), i5;
|
|
39354
39354
|
}, Script3.prototype.runInThisContext = function() {
|
|
39355
39355
|
return eval((this || _global$b$1).code);
|
|
39356
39356
|
}, Script3.prototype.runInNewContext = function(e7) {
|
|
39357
39357
|
var t5 = Script3.createContext(e7), n5 = this.runInContext(t5);
|
|
39358
|
-
return e7 && forEach2(Object_keys2(t5), function(n6) {
|
|
39358
|
+
return e7 && forEach2(Object_keys2(t5), (function(n6) {
|
|
39359
39359
|
e7[n6] = t5[n6];
|
|
39360
|
-
}), n5;
|
|
39361
|
-
}, forEach2(Object_keys2(Script3.prototype), function(e7) {
|
|
39360
|
+
})), n5;
|
|
39361
|
+
}, forEach2(Object_keys2(Script3.prototype), (function(e7) {
|
|
39362
39362
|
exports$11$1[e7] = Script3[e7] = function(t5) {
|
|
39363
39363
|
var n5 = Script3(t5);
|
|
39364
39364
|
return n5[e7].apply(n5, [].slice.call(arguments, 1));
|
|
39365
39365
|
};
|
|
39366
|
-
}), exports$11$1.isContext = function(e7) {
|
|
39366
|
+
})), exports$11$1.isContext = function(e7) {
|
|
39367
39367
|
return e7 instanceof Context2;
|
|
39368
39368
|
}, exports$11$1.createScript = function(e7) {
|
|
39369
39369
|
return exports$11$1.Script(e7);
|
|
39370
39370
|
}, exports$11$1.createContext = Script3.createContext = function(e7) {
|
|
39371
39371
|
var t5 = new Context2();
|
|
39372
|
-
return "object" == typeof e7 && forEach2(Object_keys2(e7), function(n5) {
|
|
39372
|
+
return "object" == typeof e7 && forEach2(Object_keys2(e7), (function(n5) {
|
|
39373
39373
|
t5[n5] = e7[n5];
|
|
39374
|
-
}), t5;
|
|
39374
|
+
})), t5;
|
|
39375
39375
|
};
|
|
39376
39376
|
exports$11$1.Script;
|
|
39377
39377
|
exports$11$1.createContext;
|
|
@@ -39389,9 +39389,9 @@ var a4 = f4 && f4.getRandomValues ? function(e7, r5) {
|
|
|
39389
39389
|
var o5 = t4.allocUnsafe(e7);
|
|
39390
39390
|
if (e7 > 0) if (e7 > 65536) for (var a5 = 0; a5 < e7; a5 += 65536) f4.getRandomValues(o5.slice(a5, a5 + 65536));
|
|
39391
39391
|
else f4.getRandomValues(o5);
|
|
39392
|
-
if ("function" == typeof r5) return n4.nextTick(function() {
|
|
39392
|
+
if ("function" == typeof r5) return n4.nextTick((function() {
|
|
39393
39393
|
r5(null, o5);
|
|
39394
|
-
});
|
|
39394
|
+
}));
|
|
39395
39395
|
return o5;
|
|
39396
39396
|
} : function() {
|
|
39397
39397
|
throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
|
|
@@ -39418,9 +39418,9 @@ t$2(s4, o$13), s4.prototype._transform = function(t5, i5, r5) {
|
|
|
39418
39418
|
}
|
|
39419
39419
|
t5(i5);
|
|
39420
39420
|
}, s4.prototype.update = function(t5, i5) {
|
|
39421
|
-
if (!function(t6, i6) {
|
|
39421
|
+
if (!(function(t6, i6) {
|
|
39422
39422
|
if (!e6.isBuffer(t6) && "string" != typeof t6) throw new TypeError(i6 + " must be a string or a buffer");
|
|
39423
|
-
}(t5, "Data"), this._finalized) throw new Error("Digest already called");
|
|
39423
|
+
})(t5, "Data"), this._finalized) throw new Error("Digest already called");
|
|
39424
39424
|
e6.isBuffer(t5) || (t5 = e6.from(t5, i5));
|
|
39425
39425
|
for (var r5 = this._block, o5 = 0; this._blockOffset + t5.length - o5 >= this._blockSize; ) {
|
|
39426
39426
|
for (var s5 = this._blockOffset; s5 < this._blockSize; ) r5[s5++] = t5[o5++];
|
|
@@ -39881,14 +39881,14 @@ var w$4 = u3.Buffer;
|
|
|
39881
39881
|
var g$2 = w$4.alloc(128);
|
|
39882
39882
|
var B$1 = { md5: 16, sha1: 20, sha224: 28, sha256: 32, sha384: 48, sha512: 64, rmd160: 20, ripemd160: 20 };
|
|
39883
39883
|
function T$12(r5, e7, t5) {
|
|
39884
|
-
var n5 = /* @__PURE__ */ function(r6) {
|
|
39884
|
+
var n5 = /* @__PURE__ */ (function(r6) {
|
|
39885
39885
|
function e8(e9) {
|
|
39886
39886
|
return y$2(r6).update(e9).digest();
|
|
39887
39887
|
}
|
|
39888
39888
|
return "rmd160" === r6 || "ripemd160" === r6 ? function(r7) {
|
|
39889
39889
|
return new m$3().update(r7).digest();
|
|
39890
39890
|
} : "md5" === r6 ? d$4 : e8;
|
|
39891
|
-
}(r5), o5 = "sha512" === r5 || "sha384" === r5 ? 128 : 64;
|
|
39891
|
+
})(r5), o5 = "sha512" === r5 || "sha384" === r5 ? 128 : 64;
|
|
39892
39892
|
e7.length > o5 ? e7 = n5(e7) : e7.length < o5 && (e7 = w$4.concat([e7, g$2], o5));
|
|
39893
39893
|
for (var i5 = w$4.allocUnsafe(o5 + B$1[r5]), f6 = w$4.allocUnsafe(o5 + B$1[r5]), a5 = 0; a5 < o5; a5++) i5[a5] = 54 ^ e7[a5], f6[a5] = 92 ^ e7[a5];
|
|
39894
39894
|
var s5 = w$4.allocUnsafe(o5 + t5 + 4);
|
|
@@ -39922,16 +39922,16 @@ var x$1 = A$1.crypto && A$1.crypto.subtle;
|
|
|
39922
39922
|
var z$1 = { sha: "SHA-1", "sha-1": "SHA-1", sha1: "SHA-1", sha256: "SHA-256", "sha-256": "SHA-256", sha384: "SHA-384", "sha-384": "SHA-384", "sha-512": "SHA-512", sha512: "SHA-512" };
|
|
39923
39923
|
var I$2 = [];
|
|
39924
39924
|
function D$1(r5, e7, t5, n5, o5) {
|
|
39925
|
-
return x$1.importKey("raw", r5, { name: "PBKDF2" }, false, ["deriveBits"]).then(function(r6) {
|
|
39925
|
+
return x$1.importKey("raw", r5, { name: "PBKDF2" }, false, ["deriveBits"]).then((function(r6) {
|
|
39926
39926
|
return x$1.deriveBits({ name: "PBKDF2", salt: e7, iterations: t5, hash: { name: o5 } }, r6, n5 << 3);
|
|
39927
|
-
}).then(function(r6) {
|
|
39927
|
+
})).then((function(r6) {
|
|
39928
39928
|
return K$1.from(r6);
|
|
39929
|
-
});
|
|
39929
|
+
}));
|
|
39930
39930
|
}
|
|
39931
39931
|
var F$1 = function(r5, e7, t5, n5, o5, i5) {
|
|
39932
39932
|
"function" == typeof o5 && (i5 = o5, o5 = void 0);
|
|
39933
39933
|
var f6 = z$1[(o5 = o5 || "sha1").toLowerCase()];
|
|
39934
|
-
if (!f6 || "function" != typeof A$1.Promise) return H$1.nextTick(function() {
|
|
39934
|
+
if (!f6 || "function" != typeof A$1.Promise) return H$1.nextTick((function() {
|
|
39935
39935
|
var f7;
|
|
39936
39936
|
try {
|
|
39937
39937
|
f7 = U$1(r5, e7, t5, n5, o5);
|
|
@@ -39939,31 +39939,31 @@ var F$1 = function(r5, e7, t5, n5, o5, i5) {
|
|
|
39939
39939
|
return i5(r6);
|
|
39940
39940
|
}
|
|
39941
39941
|
i5(null, f7);
|
|
39942
|
-
});
|
|
39942
|
+
}));
|
|
39943
39943
|
if (E$2(r5, e7, t5, n5), "function" != typeof i5) throw new Error("No callback provided to pbkdf2");
|
|
39944
|
-
K$1.isBuffer(r5) || (r5 = K$1.from(r5, P$1)), K$1.isBuffer(e7) || (e7 = K$1.from(e7, P$1)), function(r6, e8) {
|
|
39945
|
-
r6.then(function(r7) {
|
|
39946
|
-
H$1.nextTick(function() {
|
|
39944
|
+
K$1.isBuffer(r5) || (r5 = K$1.from(r5, P$1)), K$1.isBuffer(e7) || (e7 = K$1.from(e7, P$1)), (function(r6, e8) {
|
|
39945
|
+
r6.then((function(r7) {
|
|
39946
|
+
H$1.nextTick((function() {
|
|
39947
39947
|
e8(null, r7);
|
|
39948
|
-
});
|
|
39949
|
-
}, function(r7) {
|
|
39950
|
-
H$1.nextTick(function() {
|
|
39948
|
+
}));
|
|
39949
|
+
}), (function(r7) {
|
|
39950
|
+
H$1.nextTick((function() {
|
|
39951
39951
|
e8(r7);
|
|
39952
|
-
});
|
|
39953
|
-
});
|
|
39954
|
-
}(function(r6) {
|
|
39952
|
+
}));
|
|
39953
|
+
}));
|
|
39954
|
+
})((function(r6) {
|
|
39955
39955
|
if (A$1.process && !A$1.process.browser) return Promise.resolve(false);
|
|
39956
39956
|
if (!x$1 || !x$1.importKey || !x$1.deriveBits) return Promise.resolve(false);
|
|
39957
39957
|
if (void 0 !== I$2[r6]) return I$2[r6];
|
|
39958
|
-
var e8 = D$1(k$3 = k$3 || K$1.alloc(8), k$3, 10, 128, r6).then(function() {
|
|
39958
|
+
var e8 = D$1(k$3 = k$3 || K$1.alloc(8), k$3, 10, 128, r6).then((function() {
|
|
39959
39959
|
return true;
|
|
39960
|
-
}).catch(function() {
|
|
39960
|
+
})).catch((function() {
|
|
39961
39961
|
return false;
|
|
39962
|
-
});
|
|
39962
|
+
}));
|
|
39963
39963
|
return I$2[r6] = e8, e8;
|
|
39964
|
-
}(f6).then(function(i6) {
|
|
39964
|
+
})(f6).then((function(i6) {
|
|
39965
39965
|
return i6 ? D$1(r5, e7, t5, n5, f6) : U$1(r5, e7, t5, n5, o5);
|
|
39966
|
-
}), i5);
|
|
39966
|
+
})), i5);
|
|
39967
39967
|
};
|
|
39968
39968
|
var M$1 = {};
|
|
39969
39969
|
M$1.pbkdf2 = F$1, M$1.pbkdf2Sync = S$1;
|
|
@@ -40334,7 +40334,7 @@ function l$9(t5, e7, i5, r5, n5) {
|
|
|
40334
40334
|
return a5 = (r5[p5 >>> 24] << 24 | r5[_4 >>> 16 & 255] << 16 | r5[d4 >>> 8 & 255] << 8 | r5[255 & y5]) ^ e7[B4++], h5 = (r5[_4 >>> 24] << 24 | r5[d4 >>> 16 & 255] << 16 | r5[y5 >>> 8 & 255] << 8 | r5[255 & p5]) ^ e7[B4++], o5 = (r5[d4 >>> 24] << 24 | r5[y5 >>> 16 & 255] << 16 | r5[p5 >>> 8 & 255] << 8 | r5[255 & _4]) ^ e7[B4++], s5 = (r5[y5 >>> 24] << 24 | r5[p5 >>> 16 & 255] << 16 | r5[_4 >>> 8 & 255] << 8 | r5[255 & d4]) ^ e7[B4++], [a5 >>>= 0, h5 >>>= 0, o5 >>>= 0, s5 >>>= 0];
|
|
40335
40335
|
}
|
|
40336
40336
|
var f$d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
|
|
40337
|
-
var u$8 = function() {
|
|
40337
|
+
var u$8 = (function() {
|
|
40338
40338
|
for (var t5 = new Array(256), e7 = 0; e7 < 256; e7++) t5[e7] = e7 < 128 ? e7 << 1 : e7 << 1 ^ 283;
|
|
40339
40339
|
for (var i5 = [], r5 = [], n5 = [[], [], [], []], a5 = [[], [], [], []], h5 = 0, o5 = 0, s5 = 0; s5 < 256; ++s5) {
|
|
40340
40340
|
var c5 = o5 ^ o5 << 1 ^ o5 << 2 ^ o5 << 3 ^ o5 << 4;
|
|
@@ -40343,7 +40343,7 @@ var u$8 = function() {
|
|
|
40343
40343
|
n5[0][h5] = p5 << 24 | p5 >>> 8, n5[1][h5] = p5 << 16 | p5 >>> 16, n5[2][h5] = p5 << 8 | p5 >>> 24, n5[3][h5] = p5, p5 = 16843009 * u5 ^ 65537 * f6 ^ 257 * l5 ^ 16843008 * h5, a5[0][c5] = p5 << 24 | p5 >>> 8, a5[1][c5] = p5 << 16 | p5 >>> 16, a5[2][c5] = p5 << 8 | p5 >>> 24, a5[3][c5] = p5, 0 === h5 ? h5 = o5 = 1 : (h5 = l5 ^ t5[t5[t5[u5 ^ l5]]], o5 ^= t5[t5[o5]]);
|
|
40344
40344
|
}
|
|
40345
40345
|
return { SBOX: i5, INV_SBOX: r5, SUB_MIX: n5, INV_SUB_MIX: a5 };
|
|
40346
|
-
}();
|
|
40346
|
+
})();
|
|
40347
40347
|
function p$9(t5) {
|
|
40348
40348
|
(this || a$b)._key = s$8(t5), this._reset();
|
|
40349
40349
|
}
|
|
@@ -40409,7 +40409,7 @@ function X$1(t5, e7, i5, r5) {
|
|
|
40409
40409
|
var n5 = U$4.alloc(4, 0);
|
|
40410
40410
|
(this || v$5)._cipher = new I$5.AES(e7);
|
|
40411
40411
|
var a5 = (this || v$5)._cipher.encryptBlock(n5);
|
|
40412
|
-
(this || v$5)._ghash = new m$6(a5), i5 = function(t6, e8, i6) {
|
|
40412
|
+
(this || v$5)._ghash = new m$6(a5), i5 = (function(t6, e8, i6) {
|
|
40413
40413
|
if (12 === e8.length) return t6._finID = U$4.concat([e8, U$4.from([0, 0, 0, 1])]), U$4.concat([e8, U$4.from([0, 0, 0, 2])]);
|
|
40414
40414
|
var r6 = new m$6(i6), n6 = e8.length, a6 = n6 % 16;
|
|
40415
40415
|
r6.update(e8), a6 && (a6 = 16 - a6, r6.update(U$4.alloc(a6, 0))), r6.update(U$4.alloc(8, 0));
|
|
@@ -40417,7 +40417,7 @@ function X$1(t5, e7, i5, r5) {
|
|
|
40417
40417
|
o5.writeUIntBE(h5, 0, 8), r6.update(o5), t6._finID = r6.state;
|
|
40418
40418
|
var s5 = U$4.from(t6._finID);
|
|
40419
40419
|
return b$6(s5), s5;
|
|
40420
|
-
}(this || v$5, i5, a5), (this || v$5)._prev = U$4.from(i5), (this || v$5)._cache = U$4.allocUnsafe(0), (this || v$5)._secCache = U$4.allocUnsafe(0), (this || v$5)._decrypt = r5, (this || v$5)._alen = 0, (this || v$5)._len = 0, (this || v$5)._mode = t5, (this || v$5)._authTag = null, (this || v$5)._called = false;
|
|
40420
|
+
})(this || v$5, i5, a5), (this || v$5)._prev = U$4.from(i5), (this || v$5)._cache = U$4.allocUnsafe(0), (this || v$5)._secCache = U$4.allocUnsafe(0), (this || v$5)._decrypt = r5, (this || v$5)._alen = 0, (this || v$5)._len = 0, (this || v$5)._mode = t5, (this || v$5)._authTag = null, (this || v$5)._called = false;
|
|
40421
40421
|
}
|
|
40422
40422
|
t$2(X$1, w$7), X$1.prototype._update = function(t5) {
|
|
40423
40423
|
if (!(this || v$5)._called && (this || v$5)._alen) {
|
|
@@ -40430,12 +40430,12 @@ t$2(X$1, w$7), X$1.prototype._update = function(t5) {
|
|
|
40430
40430
|
}, X$1.prototype._final = function() {
|
|
40431
40431
|
if ((this || v$5)._decrypt && !(this || v$5)._authTag) throw new Error("Unsupported state or unable to authenticate data");
|
|
40432
40432
|
var t5 = E$5((this || v$5)._ghash.final(8 * (this || v$5)._alen, 8 * (this || v$5)._len), (this || v$5)._cipher.encryptBlock((this || v$5)._finID));
|
|
40433
|
-
if ((this || v$5)._decrypt && function(t6, e7) {
|
|
40433
|
+
if ((this || v$5)._decrypt && (function(t6, e7) {
|
|
40434
40434
|
var i5 = 0;
|
|
40435
40435
|
t6.length !== e7.length && i5++;
|
|
40436
40436
|
for (var r5 = Math.min(t6.length, e7.length), n5 = 0; n5 < r5; ++n5) i5 += t6[n5] ^ e7[n5];
|
|
40437
40437
|
return i5;
|
|
40438
|
-
}(t5, (this || v$5)._authTag)) throw new Error("Unsupported state or unable to authenticate data");
|
|
40438
|
+
})(t5, (this || v$5)._authTag)) throw new Error("Unsupported state or unable to authenticate data");
|
|
40439
40439
|
(this || v$5)._authTag = t5, (this || v$5)._cipher.scrub();
|
|
40440
40440
|
}, X$1.prototype.getAuthTag = function() {
|
|
40441
40441
|
if ((this || v$5)._decrypt || !U$4.isBuffer((this || v$5)._authTag)) throw new Error("Attempting to get auth tag in unsupported state");
|
|
@@ -40509,14 +40509,14 @@ t$2(g$6, d$9), g$6.prototype._update = function(t5) {
|
|
|
40509
40509
|
return p$a.concat(i5);
|
|
40510
40510
|
}, g$6.prototype._final = function() {
|
|
40511
40511
|
var t5 = (this || c$9)._cache.flush();
|
|
40512
|
-
if ((this || c$9)._autopadding) return function(t6) {
|
|
40512
|
+
if ((this || c$9)._autopadding) return (function(t6) {
|
|
40513
40513
|
var e7 = t6[15];
|
|
40514
40514
|
if (e7 < 1 || e7 > 16) throw new Error("unable to decrypt data");
|
|
40515
40515
|
var r5 = -1;
|
|
40516
40516
|
for (; ++r5 < e7; ) if (t6[r5 + (16 - e7)] !== e7) throw new Error("unable to decrypt data");
|
|
40517
40517
|
if (16 === e7) return;
|
|
40518
40518
|
return t6.slice(0, 16 - e7);
|
|
40519
|
-
}((this || c$9)._mode.decrypt(this || c$9, t5));
|
|
40519
|
+
})((this || c$9)._mode.decrypt(this || c$9, t5));
|
|
40520
40520
|
if (t5) throw new Error("data not multiple of block length");
|
|
40521
40521
|
}, g$6.prototype.setAutoPadding = function(t5) {
|
|
40522
40522
|
return (this || c$9)._autopadding = !!t5, this || c$9;
|
|
@@ -40638,7 +40638,7 @@ var t$4 = Object.freeze({});
|
|
|
40638
40638
|
var i$3 = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : global;
|
|
40639
40639
|
var r$7 = {};
|
|
40640
40640
|
var h$a = { exports: r$7 };
|
|
40641
|
-
!function(r5, h5) {
|
|
40641
|
+
!(function(r5, h5) {
|
|
40642
40642
|
function n5(t5, i5) {
|
|
40643
40643
|
if (!t5) throw new Error(i5 || "Assertion failed");
|
|
40644
40644
|
}
|
|
@@ -40944,7 +40944,7 @@ var h$a = { exports: r$7 };
|
|
|
40944
40944
|
}
|
|
40945
40945
|
Math.imul || (p5 = d4), o5.prototype.mulTo = function(t5, r6) {
|
|
40946
40946
|
var h6 = (this || i$3).length + t5.length;
|
|
40947
|
-
return 10 === (this || i$3).length && 10 === t5.length ? p5(this || i$3, t5, r6) : h6 < 63 ? d4(this || i$3, t5, r6) : h6 < 1024 ? function(t6, i5, r7) {
|
|
40947
|
+
return 10 === (this || i$3).length && 10 === t5.length ? p5(this || i$3, t5, r6) : h6 < 63 ? d4(this || i$3, t5, r6) : h6 < 1024 ? (function(t6, i5, r7) {
|
|
40948
40948
|
r7.negative = i5.negative ^ t6.negative, r7.length = t6.length + i5.length;
|
|
40949
40949
|
for (var h7 = 0, n6 = 0, e8 = 0; e8 < r7.length - 1; e8++) {
|
|
40950
40950
|
var o6 = n6;
|
|
@@ -40956,7 +40956,7 @@ var h$a = { exports: r$7 };
|
|
|
40956
40956
|
r7.words[e8] = s6, h7 = o6, o6 = n6;
|
|
40957
40957
|
}
|
|
40958
40958
|
return 0 !== h7 ? r7.words[e8] = h7 : r7.length--, r7.strip();
|
|
40959
|
-
}(this || i$3, t5, r6) : M4(this || i$3, t5, r6);
|
|
40959
|
+
})(this || i$3, t5, r6) : M4(this || i$3, t5, r6);
|
|
40960
40960
|
}, v5.prototype.makeRBT = function(t5) {
|
|
40961
40961
|
for (var i5 = new Array(t5), r6 = o5.prototype._countBits(t5) - 1, h6 = 0; h6 < t5; h6++) i5[h6] = this.revBin(h6, r6, t5);
|
|
40962
40962
|
return i5;
|
|
@@ -41024,13 +41024,13 @@ var h$a = { exports: r$7 };
|
|
|
41024
41024
|
}, o5.prototype.isqr = function() {
|
|
41025
41025
|
return this.imul(this.clone());
|
|
41026
41026
|
}, o5.prototype.pow = function(t5) {
|
|
41027
|
-
var r6 = function(t6) {
|
|
41027
|
+
var r6 = (function(t6) {
|
|
41028
41028
|
for (var i5 = new Array(t6.bitLength()), r7 = 0; r7 < i5.length; r7++) {
|
|
41029
41029
|
var h7 = r7 / 26 | 0, n7 = r7 % 26;
|
|
41030
41030
|
i5[r7] = (t6.words[h7] & 1 << n7) >>> n7;
|
|
41031
41031
|
}
|
|
41032
41032
|
return i5;
|
|
41033
|
-
}(t5);
|
|
41033
|
+
})(t5);
|
|
41034
41034
|
if (0 === r6.length) return new o5(1);
|
|
41035
41035
|
for (var h6 = this || i$3, n6 = 0; n6 < r6.length && 0 === r6[n6]; n6++, h6 = h6.sqr()) ;
|
|
41036
41036
|
if (++n6 < r6.length) for (var e8 = h6.sqr(); n6 < r6.length; n6++, e8 = e8.sqr()) 0 !== r6[n6] && (h6 = h6.mul(e8));
|
|
@@ -41483,7 +41483,7 @@ var h$a = { exports: r$7 };
|
|
|
41483
41483
|
}, A4.prototype.invm = function(t5) {
|
|
41484
41484
|
return this.imod(t5._invmp((this || i$3).m).mul((this || i$3).r2))._forceRed(this || i$3);
|
|
41485
41485
|
};
|
|
41486
|
-
}(h$a, r$7);
|
|
41486
|
+
})(h$a, r$7);
|
|
41487
41487
|
var n$c = h$a.exports;
|
|
41488
41488
|
var t$5;
|
|
41489
41489
|
var e$a;
|
|
@@ -41645,7 +41645,7 @@ function A$5(f6, e7) {
|
|
|
41645
41645
|
return e7 ? c5.toString(e7) : c5;
|
|
41646
41646
|
}
|
|
41647
41647
|
Object.defineProperty(k$7.prototype, "verifyError", { enumerable: true, get: function() {
|
|
41648
|
-
return "number" != typeof (this || B$5)._primeCode && ((this || B$5)._primeCode = function(f6, e7) {
|
|
41648
|
+
return "number" != typeof (this || B$5)._primeCode && ((this || B$5)._primeCode = (function(f6, e7) {
|
|
41649
41649
|
var c5 = e7.toString("hex"), a5 = [c5, f6.toString(16)].join("_");
|
|
41650
41650
|
if (a5 in M$4) return M$4[a5];
|
|
41651
41651
|
var b4, d4 = 0;
|
|
@@ -41661,7 +41661,7 @@ Object.defineProperty(k$7.prototype, "verifyError", { enumerable: true, get: fun
|
|
|
41661
41661
|
d4 += 4;
|
|
41662
41662
|
}
|
|
41663
41663
|
return M$4[a5] = d4, d4;
|
|
41664
|
-
}((this || B$5).__prime, (this || B$5).__gen)), (this || B$5)._primeCode;
|
|
41664
|
+
})((this || B$5).__prime, (this || B$5).__gen)), (this || B$5)._primeCode;
|
|
41665
41665
|
} }), k$7.prototype.generateKeys = function() {
|
|
41666
41666
|
return (this || B$5)._priv || ((this || B$5)._priv = new R$1(j$1((this || B$5)._primeLen))), (this || B$5)._pub = (this || B$5)._gen.toRed((this || B$5)._prime).redPow((this || B$5)._priv).fromRed(), this.getPublicKey();
|
|
41667
41667
|
}, k$7.prototype.computeSecret = function(f6) {
|
|
@@ -41700,10 +41700,10 @@ var u$c = e$1$1.Buffer;
|
|
|
41700
41700
|
var n$g = n$c;
|
|
41701
41701
|
var d$d = a4;
|
|
41702
41702
|
function t$8(e7, o5) {
|
|
41703
|
-
var r5 = function(e8) {
|
|
41703
|
+
var r5 = (function(e8) {
|
|
41704
41704
|
var o6 = i$6(e8);
|
|
41705
41705
|
return { blinder: o6.toRed(n$g.mont(e8.modulus)).redPow(new n$g(e8.publicExponent)).fromRed(), unblinder: o6.invm(e8.modulus) };
|
|
41706
|
-
}(o5), m4 = o5.modulus.byteLength(), d4 = (n$g.mont(o5.modulus), new n$g(e7).mul(r5.blinder).umod(o5.modulus)), t5 = d4.toRed(n$g.mont(o5.prime1)), l5 = d4.toRed(n$g.mont(o5.prime2)), f6 = o5.coefficient, p5 = o5.prime1, b4 = o5.prime2, s5 = t5.redPow(o5.exponent1), a5 = l5.redPow(o5.exponent2);
|
|
41706
|
+
})(o5), m4 = o5.modulus.byteLength(), d4 = (n$g.mont(o5.modulus), new n$g(e7).mul(r5.blinder).umod(o5.modulus)), t5 = d4.toRed(n$g.mont(o5.prime1)), l5 = d4.toRed(n$g.mont(o5.prime2)), f6 = o5.coefficient, p5 = o5.prime1, b4 = o5.prime2, s5 = t5.redPow(o5.exponent1), a5 = l5.redPow(o5.exponent2);
|
|
41707
41707
|
s5 = s5.fromRed(), a5 = a5.fromRed();
|
|
41708
41708
|
var w4 = s5.isub(a5).imul(f6).umod(p5);
|
|
41709
41709
|
return w4.imul(b4), a5.iadd(w4), new u$c(a5.imul(r5.unblinder).umod(o5.modulus).toArray(false, m4));
|
|
@@ -42368,9 +42368,9 @@ m$f(A$8, S$9), l$j = A$8, A$8.prototype._getEndomorphism = function(e7) {
|
|
|
42368
42368
|
var t5 = this._getEndoRoots(this.n);
|
|
42369
42369
|
0 === this.g.mul(t5[0]).x.cmp(this.g.x.redMul(f6)) ? d4 = t5[0] : (d4 = t5[1], g$d(0 === this.g.mul(d4).x.cmp(this.g.x.redMul(f6))));
|
|
42370
42370
|
}
|
|
42371
|
-
return { beta: f6, lambda: d4, basis: e7.basis ? e7.basis.map(function(e8) {
|
|
42371
|
+
return { beta: f6, lambda: d4, basis: e7.basis ? e7.basis.map((function(e8) {
|
|
42372
42372
|
return { a: new y$e(e8.a, 16), b: new y$e(e8.b, 16) };
|
|
42373
|
-
}) : this._getEndoBasis(d4) };
|
|
42373
|
+
})) : this._getEndoBasis(d4) };
|
|
42374
42374
|
}
|
|
42375
42375
|
}, A$8.prototype._getEndoRoots = function(e7) {
|
|
42376
42376
|
var f6 = e7 === this.p ? this.red : y$e.mont(e7), d4 = new y$e(2).toRed(f6).redInvm(), c5 = d4.redNeg(), t5 = new y$e(3).toRed(f6).redNeg().redSqrt().redMul(d4);
|
|
@@ -42894,20 +42894,20 @@ ye2.fromPublic = function(e7, f6) {
|
|
|
42894
42894
|
return f6 instanceof ye2 ? f6 : new ye2(e7, { secret: f6 });
|
|
42895
42895
|
}, ye2.prototype.secret = function() {
|
|
42896
42896
|
return this._secret;
|
|
42897
|
-
}, ve2(ye2, "pubBytes", function() {
|
|
42897
|
+
}, ve2(ye2, "pubBytes", (function() {
|
|
42898
42898
|
return this.eddsa.encodePoint(this.pub());
|
|
42899
|
-
}), ve2(ye2, "pub", function() {
|
|
42899
|
+
})), ve2(ye2, "pub", (function() {
|
|
42900
42900
|
return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv());
|
|
42901
|
-
}), ve2(ye2, "privBytes", function() {
|
|
42901
|
+
})), ve2(ye2, "privBytes", (function() {
|
|
42902
42902
|
var e7 = this.eddsa, f6 = this.hash(), d4 = e7.encodingLength - 1, c5 = f6.slice(0, e7.encodingLength);
|
|
42903
42903
|
return c5[0] &= 248, c5[d4] &= 127, c5[d4] |= 64, c5;
|
|
42904
|
-
}), ve2(ye2, "priv", function() {
|
|
42904
|
+
})), ve2(ye2, "priv", (function() {
|
|
42905
42905
|
return this.eddsa.decodeInt(this.privBytes());
|
|
42906
|
-
}), ve2(ye2, "hash", function() {
|
|
42906
|
+
})), ve2(ye2, "hash", (function() {
|
|
42907
42907
|
return this.eddsa.hash().update(this.secret()).digest();
|
|
42908
|
-
}), ve2(ye2, "messagePrefix", function() {
|
|
42908
|
+
})), ve2(ye2, "messagePrefix", (function() {
|
|
42909
42909
|
return this.hash().slice(this.eddsa.encodingLength);
|
|
42910
|
-
}), ye2.prototype.sign = function(e7) {
|
|
42910
|
+
})), ye2.prototype.sign = function(e7) {
|
|
42911
42911
|
return pe2(this._secret, "KeyPair can only verify"), this.eddsa.sign(e7, this);
|
|
42912
42912
|
}, ye2.prototype.verify = function(e7, f6) {
|
|
42913
42913
|
return this.eddsa.verify(e7, f6, this);
|
|
@@ -42925,15 +42925,15 @@ var we2 = ge2.parseBytes;
|
|
|
42925
42925
|
function Me(e7, f6) {
|
|
42926
42926
|
this.eddsa = e7, "object" != typeof f6 && (f6 = we2(f6)), Array.isArray(f6) && (f6 = { R: f6.slice(0, e7.encodingLength), S: f6.slice(e7.encodingLength) }), Ae2(f6.R && f6.S, "Signature without R or S"), e7.isPoint(f6.R) && (this._R = f6.R), f6.S instanceof Se2 && (this._S = f6.S), this._Rencoded = Array.isArray(f6.R) ? f6.R : f6.Rencoded, this._Sencoded = Array.isArray(f6.S) ? f6.S : f6.Sencoded;
|
|
42927
42927
|
}
|
|
42928
|
-
Ie(Me, "S", function() {
|
|
42928
|
+
Ie(Me, "S", (function() {
|
|
42929
42929
|
return this.eddsa.decodeInt(this.Sencoded());
|
|
42930
|
-
}), Ie(Me, "R", function() {
|
|
42930
|
+
})), Ie(Me, "R", (function() {
|
|
42931
42931
|
return this.eddsa.decodePoint(this.Rencoded());
|
|
42932
|
-
}), Ie(Me, "Rencoded", function() {
|
|
42932
|
+
})), Ie(Me, "Rencoded", (function() {
|
|
42933
42933
|
return this.eddsa.encodePoint(this.R());
|
|
42934
|
-
}), Ie(Me, "Sencoded", function() {
|
|
42934
|
+
})), Ie(Me, "Sencoded", (function() {
|
|
42935
42935
|
return this.eddsa.encodeInt(this.S());
|
|
42936
|
-
}), Me.prototype.toBytes = function() {
|
|
42936
|
+
})), Me.prototype.toBytes = function() {
|
|
42937
42937
|
return this.Rencoded().concat(this.Sencoded());
|
|
42938
42938
|
}, Me.prototype.toHex = function() {
|
|
42939
42939
|
return ge2.encode(this.toBytes(), "hex").toUpperCase();
|
|
@@ -43024,9 +43024,9 @@ c$i.Reporter = l$k, l$k.prototype.isError = function(e7) {
|
|
|
43024
43024
|
return t5.obj = e7, r5;
|
|
43025
43025
|
}, l$k.prototype.error = function(e7) {
|
|
43026
43026
|
var t5, r5 = (this || u$j)._reporterState, n5 = e7 instanceof h$g;
|
|
43027
|
-
if (t5 = n5 ? e7 : new h$g(r5.path.map(function(e8) {
|
|
43027
|
+
if (t5 = n5 ? e7 : new h$g(r5.path.map((function(e8) {
|
|
43028
43028
|
return "[" + JSON.stringify(e8) + "]";
|
|
43029
|
-
}).join(""), e7.message || e7, e7.stack), !r5.options.partial) throw t5;
|
|
43029
|
+
})).join(""), e7.message || e7, e7.stack), !r5.options.partial) throw t5;
|
|
43030
43030
|
return n5 || r5.errors.push(t5), t5;
|
|
43031
43031
|
}, l$k.prototype.wrapResult = function(e7) {
|
|
43032
43032
|
var t5 = (this || u$j)._reporterState;
|
|
@@ -43051,9 +43051,9 @@ function y$f() {
|
|
|
43051
43051
|
(this || g$e).base = e8, (this || g$e).offset = 0, (this || g$e).length = e8.length;
|
|
43052
43052
|
}
|
|
43053
43053
|
function s5(e8, t5) {
|
|
43054
|
-
if (Array.isArray(e8)) (this || g$e).length = 0, (this || g$e).value = e8.map(function(e9) {
|
|
43054
|
+
if (Array.isArray(e8)) (this || g$e).length = 0, (this || g$e).value = e8.map((function(e9) {
|
|
43055
43055
|
return e9 instanceof s5 || (e9 = new s5(e9, t5)), (this || g$e).length += e9.length, e9;
|
|
43056
|
-
}, this || g$e);
|
|
43056
|
+
}), this || g$e);
|
|
43057
43057
|
else if ("number" == typeof e8) {
|
|
43058
43058
|
if (!(0 <= e8 && e8 <= 255)) return t5.error("non-byte EncoderBuffer value");
|
|
43059
43059
|
(this || g$e).value = e8, (this || g$e).length = 1;
|
|
@@ -43079,9 +43079,9 @@ function y$f() {
|
|
|
43079
43079
|
}, o5.prototype.raw = function(e8) {
|
|
43080
43080
|
return (this || g$e).base.slice(e8 ? e8.offset : (this || g$e).offset, (this || g$e).length);
|
|
43081
43081
|
}, p$k.EncoderBuffer = s5, s5.prototype.join = function(e8, t5) {
|
|
43082
|
-
return e8 || (e8 = new i5((this || g$e).length)), t5 || (t5 = 0), 0 === (this || g$e).length || (Array.isArray((this || g$e).value) ? (this || g$e).value.forEach(function(r6) {
|
|
43082
|
+
return e8 || (e8 = new i5((this || g$e).length)), t5 || (t5 = 0), 0 === (this || g$e).length || (Array.isArray((this || g$e).value) ? (this || g$e).value.forEach((function(r6) {
|
|
43083
43083
|
r6.join(e8, t5), t5 += r6.length;
|
|
43084
|
-
}) : ("number" == typeof (this || g$e).value ? e8[t5] = (this || g$e).value : "string" == typeof (this || g$e).value ? e8.write((this || g$e).value, t5) : i5.isBuffer((this || g$e).value) && (this || g$e).value.copy(e8, t5), t5 += (this || g$e).length)), e8;
|
|
43084
|
+
})) : ("number" == typeof (this || g$e).value ? e8[t5] = (this || g$e).value : "string" == typeof (this || g$e).value ? e8.write((this || g$e).value, t5) : i5.isBuffer((this || g$e).value) && (this || g$e).value.copy(e8, t5), t5 += (this || g$e).length)), e8;
|
|
43085
43085
|
}, p$k;
|
|
43086
43086
|
}
|
|
43087
43087
|
var _$e = {};
|
|
@@ -43093,7 +43093,7 @@ function E$9() {
|
|
|
43093
43093
|
if (S$a) return m$g;
|
|
43094
43094
|
S$a = true;
|
|
43095
43095
|
var e7 = m$g;
|
|
43096
|
-
return e7.Reporter = c$i.Reporter, e7.DecoderBuffer = y$f().DecoderBuffer, e7.EncoderBuffer = y$f().EncoderBuffer, e7.Node = function() {
|
|
43096
|
+
return e7.Reporter = c$i.Reporter, e7.DecoderBuffer = y$f().DecoderBuffer, e7.EncoderBuffer = y$f().EncoderBuffer, e7.Node = (function() {
|
|
43097
43097
|
if (v$f) return _$e;
|
|
43098
43098
|
v$f = true;
|
|
43099
43099
|
var e8 = E$9().Reporter, t5 = E$9().EncoderBuffer, r5 = E$9().DecoderBuffer, n5 = o$7, o5 = ["seq", "seqof", "set", "setof", "objid", "bool", "gentime", "utctime", "null_", "enum", "int", "objDesc", "bitstr", "bmpstr", "charstr", "genstr", "graphstr", "ia5str", "iso646str", "numstr", "octstr", "printstr", "t61str", "unistr", "utf8str", "videostr"], s5 = ["key", "obj", "use", "optional", "explicit", "implicit", "def", "choice", "any", "contains"].concat(o5);
|
|
@@ -43105,52 +43105,52 @@ function E$9() {
|
|
|
43105
43105
|
var u5 = ["enc", "parent", "children", "tag", "args", "reverseArgs", "choice", "optional", "any", "obj", "use", "alteredUse", "key", "default", "explicit", "implicit", "contains"];
|
|
43106
43106
|
return a5.prototype.clone = function() {
|
|
43107
43107
|
var e9 = (this || b$c)._baseState, t6 = {};
|
|
43108
|
-
u5.forEach(function(r7) {
|
|
43108
|
+
u5.forEach((function(r7) {
|
|
43109
43109
|
t6[r7] = e9[r7];
|
|
43110
|
-
});
|
|
43110
|
+
}));
|
|
43111
43111
|
var r6 = new (this || b$c).constructor(t6.parent);
|
|
43112
43112
|
return r6._baseState = t6, r6;
|
|
43113
43113
|
}, a5.prototype._wrap = function() {
|
|
43114
43114
|
var e9 = (this || b$c)._baseState;
|
|
43115
|
-
s5.forEach(function(t6) {
|
|
43115
|
+
s5.forEach((function(t6) {
|
|
43116
43116
|
(this || b$c)[t6] = function() {
|
|
43117
43117
|
var r6 = new (this || b$c).constructor(this || b$c);
|
|
43118
43118
|
return e9.children.push(r6), r6[t6].apply(r6, arguments);
|
|
43119
43119
|
};
|
|
43120
|
-
}, this || b$c);
|
|
43120
|
+
}), this || b$c);
|
|
43121
43121
|
}, a5.prototype._init = function(e9) {
|
|
43122
43122
|
var t6 = (this || b$c)._baseState;
|
|
43123
|
-
n5(null === t6.parent), e9.call(this || b$c), t6.children = t6.children.filter(function(e10) {
|
|
43123
|
+
n5(null === t6.parent), e9.call(this || b$c), t6.children = t6.children.filter((function(e10) {
|
|
43124
43124
|
return e10._baseState.parent === (this || b$c);
|
|
43125
|
-
}, this || b$c), n5.equal(t6.children.length, 1, "Root node can have only one child");
|
|
43125
|
+
}), this || b$c), n5.equal(t6.children.length, 1, "Root node can have only one child");
|
|
43126
43126
|
}, a5.prototype._useArgs = function(e9) {
|
|
43127
|
-
var t6 = (this || b$c)._baseState, r6 = e9.filter(function(e10) {
|
|
43127
|
+
var t6 = (this || b$c)._baseState, r6 = e9.filter((function(e10) {
|
|
43128
43128
|
return e10 instanceof (this || b$c).constructor;
|
|
43129
|
-
}, this || b$c);
|
|
43130
|
-
e9 = e9.filter(function(e10) {
|
|
43129
|
+
}), this || b$c);
|
|
43130
|
+
e9 = e9.filter((function(e10) {
|
|
43131
43131
|
return !(e10 instanceof (this || b$c).constructor);
|
|
43132
|
-
}, this || b$c), 0 !== r6.length && (n5(null === t6.children), t6.children = r6, r6.forEach(function(e10) {
|
|
43132
|
+
}), this || b$c), 0 !== r6.length && (n5(null === t6.children), t6.children = r6, r6.forEach((function(e10) {
|
|
43133
43133
|
e10._baseState.parent = this || b$c;
|
|
43134
|
-
}, this || b$c)), 0 !== e9.length && (n5(null === t6.args), t6.args = e9, t6.reverseArgs = e9.map(function(e10) {
|
|
43134
|
+
}), this || b$c)), 0 !== e9.length && (n5(null === t6.args), t6.args = e9, t6.reverseArgs = e9.map((function(e10) {
|
|
43135
43135
|
if ("object" != typeof e10 || e10.constructor !== Object) return e10;
|
|
43136
43136
|
var t7 = {};
|
|
43137
|
-
return Object.keys(e10).forEach(function(r7) {
|
|
43137
|
+
return Object.keys(e10).forEach((function(r7) {
|
|
43138
43138
|
r7 == (0 | r7) && (r7 |= 0);
|
|
43139
43139
|
var n6 = e10[r7];
|
|
43140
43140
|
t7[n6] = r7;
|
|
43141
|
-
}), t7;
|
|
43142
|
-
}));
|
|
43143
|
-
}, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach(function(e9) {
|
|
43141
|
+
})), t7;
|
|
43142
|
+
})));
|
|
43143
|
+
}, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach((function(e9) {
|
|
43144
43144
|
a5.prototype[e9] = function() {
|
|
43145
43145
|
var t6 = (this || b$c)._baseState;
|
|
43146
43146
|
throw new Error(e9 + " not implemented for encoding: " + t6.enc);
|
|
43147
43147
|
};
|
|
43148
|
-
}), o5.forEach(function(e9) {
|
|
43148
|
+
})), o5.forEach((function(e9) {
|
|
43149
43149
|
a5.prototype[e9] = function() {
|
|
43150
43150
|
var t6 = (this || b$c)._baseState, r6 = Array.prototype.slice.call(arguments);
|
|
43151
43151
|
return n5(null === t6.tag), t6.tag = e9, this._useArgs(r6), this || b$c;
|
|
43152
43152
|
};
|
|
43153
|
-
}), a5.prototype.use = function(e9) {
|
|
43153
|
+
})), a5.prototype.use = function(e9) {
|
|
43154
43154
|
n5(e9);
|
|
43155
43155
|
var t6 = (this || b$c)._baseState;
|
|
43156
43156
|
return n5(null === t6.use), t6.use = e9, this || b$c;
|
|
@@ -43175,9 +43175,9 @@ function E$9() {
|
|
|
43175
43175
|
return (this || b$c)._baseState.any = true, this || b$c;
|
|
43176
43176
|
}, a5.prototype.choice = function(e9) {
|
|
43177
43177
|
var t6 = (this || b$c)._baseState;
|
|
43178
|
-
return n5(null === t6.choice), t6.choice = e9, this._useArgs(Object.keys(e9).map(function(t7) {
|
|
43178
|
+
return n5(null === t6.choice), t6.choice = e9, this._useArgs(Object.keys(e9).map((function(t7) {
|
|
43179
43179
|
return e9[t7];
|
|
43180
|
-
})), this || b$c;
|
|
43180
|
+
}))), this || b$c;
|
|
43181
43181
|
}, a5.prototype.contains = function(e9) {
|
|
43182
43182
|
var t6 = (this || b$c)._baseState;
|
|
43183
43183
|
return n5(null === t6.use), t6.contains = e9, this || b$c;
|
|
@@ -43213,9 +43213,9 @@ function E$9() {
|
|
|
43213
43213
|
n6.any ? o6 = e9.raw(c5) : e9 = h5;
|
|
43214
43214
|
}
|
|
43215
43215
|
if (t6 && t6.track && null !== n6.tag && t6.track(e9.path(), l5, e9.length, "tagged"), t6 && t6.track && null !== n6.tag && t6.track(e9.path(), e9.offset, e9.length, "content"), o6 = n6.any ? o6 : null === n6.choice ? this._decodeGeneric(n6.tag, e9, t6) : this._decodeChoice(e9, t6), e9.isError(o6)) return o6;
|
|
43216
|
-
if (n6.any || null !== n6.choice || null === n6.children || n6.children.forEach(function(r6) {
|
|
43216
|
+
if (n6.any || null !== n6.choice || null === n6.children || n6.children.forEach((function(r6) {
|
|
43217
43217
|
r6._decode(e9, t6);
|
|
43218
|
-
}), n6.contains && ("octstr" === n6.tag || "bitstr" === n6.tag)) {
|
|
43218
|
+
})), n6.contains && ("octstr" === n6.tag || "bitstr" === n6.tag)) {
|
|
43219
43219
|
var p5 = new r5(o6);
|
|
43220
43220
|
o6 = this._getUse(n6.contains, e9._reporterState.obj)._decode(p5, t6);
|
|
43221
43221
|
}
|
|
@@ -43229,7 +43229,7 @@ function E$9() {
|
|
|
43229
43229
|
return r6.useDecoder = this._use(e9, t6), n5(null === r6.useDecoder._baseState.parent), r6.useDecoder = r6.useDecoder._baseState.children[0], r6.implicit !== r6.useDecoder._baseState.implicit && (r6.useDecoder = r6.useDecoder.clone(), r6.useDecoder._baseState.implicit = r6.implicit), r6.useDecoder;
|
|
43230
43230
|
}, a5.prototype._decodeChoice = function(e9, t6) {
|
|
43231
43231
|
var r6 = (this || b$c)._baseState, n6 = null, i5 = false;
|
|
43232
|
-
return Object.keys(r6.choice).some(function(o6) {
|
|
43232
|
+
return Object.keys(r6.choice).some((function(o6) {
|
|
43233
43233
|
var s6 = e9.save(), a6 = r6.choice[o6];
|
|
43234
43234
|
try {
|
|
43235
43235
|
var u6 = a6._decode(e9, t6);
|
|
@@ -43239,7 +43239,7 @@ function E$9() {
|
|
|
43239
43239
|
return e9.restore(s6), false;
|
|
43240
43240
|
}
|
|
43241
43241
|
return true;
|
|
43242
|
-
}, this || b$c), i5 ? n6 : e9.error("Choice not matched");
|
|
43242
|
+
}), this || b$c), i5 ? n6 : e9.error("Choice not matched");
|
|
43243
43243
|
}, a5.prototype._createEncoderBuffer = function(e9) {
|
|
43244
43244
|
return new t5(e9, (this || b$c).reporter);
|
|
43245
43245
|
}, a5.prototype._encode = function(e9, t6, r6) {
|
|
@@ -43260,24 +43260,24 @@ function E$9() {
|
|
|
43260
43260
|
if (i5.any) o6 = this._createEncoderBuffer(t6);
|
|
43261
43261
|
else if (i5.choice) o6 = this._encodeChoice(t6, r6);
|
|
43262
43262
|
else if (i5.contains) s6 = this._getUse(i5.contains, n6)._encode(t6, r6), a6 = true;
|
|
43263
|
-
else if (i5.children) s6 = i5.children.map(function(e9) {
|
|
43263
|
+
else if (i5.children) s6 = i5.children.map((function(e9) {
|
|
43264
43264
|
if ("null_" === e9._baseState.tag) return e9._encode(null, r6, t6);
|
|
43265
43265
|
if (null === e9._baseState.key) return r6.error("Child should have a key");
|
|
43266
43266
|
var n7 = r6.enterKey(e9._baseState.key);
|
|
43267
43267
|
if ("object" != typeof t6) return r6.error("Child expected, but input is not object");
|
|
43268
43268
|
var i6 = e9._encode(t6[e9._baseState.key], r6, t6);
|
|
43269
43269
|
return r6.leaveKey(n7), i6;
|
|
43270
|
-
}, this || b$c).filter(function(e9) {
|
|
43270
|
+
}), this || b$c).filter((function(e9) {
|
|
43271
43271
|
return e9;
|
|
43272
|
-
}), s6 = this._createEncoderBuffer(s6);
|
|
43272
|
+
})), s6 = this._createEncoderBuffer(s6);
|
|
43273
43273
|
else if ("seqof" === i5.tag || "setof" === i5.tag) {
|
|
43274
43274
|
if (!i5.args || 1 !== i5.args.length) return r6.error("Too many args for : " + i5.tag);
|
|
43275
43275
|
if (!Array.isArray(t6)) return r6.error("seqof/setof, but data is not Array");
|
|
43276
43276
|
var u6 = this.clone();
|
|
43277
|
-
u6._baseState.implicit = null, s6 = this._createEncoderBuffer(t6.map(function(e9) {
|
|
43277
|
+
u6._baseState.implicit = null, s6 = this._createEncoderBuffer(t6.map((function(e9) {
|
|
43278
43278
|
var n7 = (this || b$c)._baseState;
|
|
43279
43279
|
return this._getUse(n7.args[0], t6)._encode(e9, r6);
|
|
43280
|
-
}, u6));
|
|
43280
|
+
}), u6));
|
|
43281
43281
|
} else null !== i5.use ? o6 = this._getUse(i5.use, n6)._encode(t6, r6) : (s6 = this._encodePrimitive(i5.tag, t6), a6 = true);
|
|
43282
43282
|
if (!i5.any && null === i5.choice) {
|
|
43283
43283
|
var c5 = null !== i5.implicit ? i5.implicit : i5.tag, f6 = null === i5.implicit ? "universal" : "context";
|
|
@@ -43303,7 +43303,7 @@ function E$9() {
|
|
|
43303
43303
|
}, a5.prototype._isPrintstr = function(e9) {
|
|
43304
43304
|
return /^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e9);
|
|
43305
43305
|
}, _$e;
|
|
43306
|
-
}(), m$g;
|
|
43306
|
+
})(), m$g;
|
|
43307
43307
|
}
|
|
43308
43308
|
var j$6 = {};
|
|
43309
43309
|
var w$f = false;
|
|
@@ -43315,17 +43315,17 @@ function T$6() {
|
|
|
43315
43315
|
var e7 = B$9;
|
|
43316
43316
|
return e7._reverse = function(e8) {
|
|
43317
43317
|
var t5 = {};
|
|
43318
|
-
return Object.keys(e8).forEach(function(r5) {
|
|
43318
|
+
return Object.keys(e8).forEach((function(r5) {
|
|
43319
43319
|
(0 | r5) == r5 && (r5 |= 0);
|
|
43320
43320
|
var n5 = e8[r5];
|
|
43321
43321
|
t5[n5] = r5;
|
|
43322
|
-
}), t5;
|
|
43323
|
-
}, e7.der = function() {
|
|
43322
|
+
})), t5;
|
|
43323
|
+
}, e7.der = (function() {
|
|
43324
43324
|
if (w$f) return j$6;
|
|
43325
43325
|
w$f = true;
|
|
43326
43326
|
var e8 = T$6();
|
|
43327
43327
|
return j$6.tagClass = { 0: "universal", 1: "application", 2: "context", 3: "private" }, j$6.tagClassByName = e8._reverse(j$6.tagClass), j$6.tag = { 0: "end", 1: "bool", 2: "int", 3: "bitstr", 4: "octstr", 5: "null_", 6: "objid", 7: "objDesc", 8: "external", 9: "real", 10: "enum", 11: "embed", 12: "utf8str", 13: "relativeOid", 16: "seq", 17: "set", 18: "numstr", 19: "printstr", 20: "t61str", 21: "videostr", 22: "ia5str", 23: "utctime", 24: "gentime", 25: "graphstr", 26: "iso646str", 27: "genstr", 28: "unistr", 29: "charstr", 30: "bmpstr" }, j$6.tagByName = e8._reverse(j$6.tag), j$6;
|
|
43328
|
-
}(), B$9;
|
|
43328
|
+
})(), B$9;
|
|
43329
43329
|
}
|
|
43330
43330
|
var D$5 = {};
|
|
43331
43331
|
var U$7 = false;
|
|
@@ -43466,7 +43466,7 @@ function P$5() {
|
|
|
43466
43466
|
if (q$5) return I$9;
|
|
43467
43467
|
q$5 = true;
|
|
43468
43468
|
var e7 = I$9;
|
|
43469
|
-
return e7.der = C$6(), e7.pem = function() {
|
|
43469
|
+
return e7.der = C$6(), e7.pem = (function() {
|
|
43470
43470
|
if (A$9) return O$6;
|
|
43471
43471
|
A$9 = true;
|
|
43472
43472
|
var e8 = t$2, r5 = e$1$1.Buffer, i5 = C$6();
|
|
@@ -43492,7 +43492,7 @@ function P$5() {
|
|
|
43492
43492
|
var h5 = new r5(l5, "base64");
|
|
43493
43493
|
return i5.prototype.decode.call(this || x$7, h5, t5);
|
|
43494
43494
|
}, O$6;
|
|
43495
|
-
}(), I$9;
|
|
43495
|
+
})(), I$9;
|
|
43496
43496
|
}
|
|
43497
43497
|
var F$6 = {};
|
|
43498
43498
|
var K$5 = false;
|
|
@@ -43513,7 +43513,7 @@ function $$2() {
|
|
|
43513
43513
|
return F$6 = a5, a5.prototype.encode = function(e8, t5) {
|
|
43514
43514
|
return (this || R$4).tree._encode(e8, t5).join();
|
|
43515
43515
|
}, e7(u5, o5.Node), u5.prototype._encodeComposite = function(e8, t5, n5, i6) {
|
|
43516
|
-
var o6, a6 = function(e9, t6, r6, n6) {
|
|
43516
|
+
var o6, a6 = (function(e9, t6, r6, n6) {
|
|
43517
43517
|
var i7;
|
|
43518
43518
|
"seqof" === e9 ? e9 = "seq" : "setof" === e9 && (e9 = "set");
|
|
43519
43519
|
if (s5.tagByName.hasOwnProperty(e9)) i7 = s5.tagByName[e9];
|
|
@@ -43524,7 +43524,7 @@ function $$2() {
|
|
|
43524
43524
|
if (i7 >= 31) return n6.error("Multi-octet tag encoding unsupported");
|
|
43525
43525
|
t6 || (i7 |= 32);
|
|
43526
43526
|
return i7 |= s5.tagClassByName[r6 || "universal"] << 6;
|
|
43527
|
-
}(e8, t5, n5, (this || R$4).reporter);
|
|
43527
|
+
})(e8, t5, n5, (this || R$4).reporter);
|
|
43528
43528
|
if (i6.length < 128) return (o6 = new r5(2))[0] = a6, o6[1] = i6.length, this._createEncoderBuffer([o6, i6]);
|
|
43529
43529
|
for (var u6 = 1, c6 = i6.length; c6 >= 256; c6 >>= 8) u6++;
|
|
43530
43530
|
(o6 = new r5(2 + u6))[0] = a6, o6[1] = 128 | u6;
|
|
@@ -43613,7 +43613,7 @@ function Z$2() {
|
|
|
43613
43613
|
if (V$4) return J$4;
|
|
43614
43614
|
V$4 = true;
|
|
43615
43615
|
var e7 = J$4;
|
|
43616
|
-
return e7.der = $$2(), e7.pem = function() {
|
|
43616
|
+
return e7.der = $$2(), e7.pem = (function() {
|
|
43617
43617
|
if (L$5) return G$4;
|
|
43618
43618
|
L$5 = true;
|
|
43619
43619
|
var e8 = t$2, r5 = $$2();
|
|
@@ -43624,7 +43624,7 @@ function Z$2() {
|
|
|
43624
43624
|
for (var n6 = r5.prototype.encode.call(this || M$7, e9).toString("base64"), i5 = ["-----BEGIN " + t5.label + "-----"], o5 = 0; o5 < n6.length; o5 += 64) i5.push(n6.slice(o5, o5 + 64));
|
|
43625
43625
|
return i5.push("-----END " + t5.label + "-----"), i5.join("\n");
|
|
43626
43626
|
}, G$4;
|
|
43627
|
-
}(), J$4;
|
|
43627
|
+
})(), J$4;
|
|
43628
43628
|
}
|
|
43629
43629
|
var z$7 = {};
|
|
43630
43630
|
var H$6 = false;
|
|
@@ -43632,7 +43632,7 @@ function Y$3() {
|
|
|
43632
43632
|
if (H$6) return z$7;
|
|
43633
43633
|
H$6 = true;
|
|
43634
43634
|
var n5 = z$7;
|
|
43635
|
-
return n5.bignum = n$c, n5.define = function() {
|
|
43635
|
+
return n5.bignum = n$c, n5.define = (function() {
|
|
43636
43636
|
if (s$j) return o$n;
|
|
43637
43637
|
s$j = true;
|
|
43638
43638
|
var e7 = Y$3(), n6 = t$2;
|
|
@@ -43662,85 +43662,85 @@ function Y$3() {
|
|
|
43662
43662
|
}, i5.prototype.encode = function(e8, t5, r5) {
|
|
43663
43663
|
return this._getEncoder(t5).encode(e8, r5);
|
|
43664
43664
|
}, o$n;
|
|
43665
|
-
}().define, n5.base = E$9(), n5.constants = T$6(), n5.decoders = P$5(), n5.encoders = Z$2(), z$7;
|
|
43665
|
+
})().define, n5.base = E$9(), n5.constants = T$6(), n5.decoders = P$5(), n5.encoders = Z$2(), z$7;
|
|
43666
43666
|
}
|
|
43667
43667
|
var Q$3 = Y$3();
|
|
43668
43668
|
var e$f = Q$3;
|
|
43669
|
-
var t$a = e$f.define("Time", function() {
|
|
43669
|
+
var t$a = e$f.define("Time", (function() {
|
|
43670
43670
|
this.choice({ utcTime: this.utctime(), generalTime: this.gentime() });
|
|
43671
|
-
});
|
|
43672
|
-
var s$k = e$f.define("AttributeTypeValue", function() {
|
|
43671
|
+
}));
|
|
43672
|
+
var s$k = e$f.define("AttributeTypeValue", (function() {
|
|
43673
43673
|
this.seq().obj(this.key("type").objid(), this.key("value").any());
|
|
43674
|
-
});
|
|
43675
|
-
var n$n = e$f.define("AlgorithmIdentifier", function() {
|
|
43674
|
+
}));
|
|
43675
|
+
var n$n = e$f.define("AlgorithmIdentifier", (function() {
|
|
43676
43676
|
this.seq().obj(this.key("algorithm").objid(), this.key("parameters").optional(), this.key("curve").objid().optional());
|
|
43677
|
-
});
|
|
43678
|
-
var o$o = e$f.define("SubjectPublicKeyInfo", function() {
|
|
43677
|
+
}));
|
|
43678
|
+
var o$o = e$f.define("SubjectPublicKeyInfo", (function() {
|
|
43679
43679
|
this.seq().obj(this.key("algorithm").use(n$n), this.key("subjectPublicKey").bitstr());
|
|
43680
|
-
});
|
|
43681
|
-
var h$h = e$f.define("RelativeDistinguishedName", function() {
|
|
43680
|
+
}));
|
|
43681
|
+
var h$h = e$f.define("RelativeDistinguishedName", (function() {
|
|
43682
43682
|
this.setof(s$k);
|
|
43683
|
-
});
|
|
43684
|
-
var y$g = e$f.define("RDNSequence", function() {
|
|
43683
|
+
}));
|
|
43684
|
+
var y$g = e$f.define("RDNSequence", (function() {
|
|
43685
43685
|
this.seqof(h$h);
|
|
43686
|
-
});
|
|
43687
|
-
var r$g = e$f.define("Name", function() {
|
|
43686
|
+
}));
|
|
43687
|
+
var r$g = e$f.define("Name", (function() {
|
|
43688
43688
|
this.choice({ rdnSequence: this.use(y$g) });
|
|
43689
|
-
});
|
|
43690
|
-
var u$k = e$f.define("Validity", function() {
|
|
43689
|
+
}));
|
|
43690
|
+
var u$k = e$f.define("Validity", (function() {
|
|
43691
43691
|
this.seq().obj(this.key("notBefore").use(t$a), this.key("notAfter").use(t$a));
|
|
43692
|
-
});
|
|
43693
|
-
var a$n = e$f.define("Extension", function() {
|
|
43692
|
+
}));
|
|
43693
|
+
var a$n = e$f.define("Extension", (function() {
|
|
43694
43694
|
this.seq().obj(this.key("extnID").objid(), this.key("critical").bool().def(false), this.key("extnValue").octstr());
|
|
43695
|
-
});
|
|
43696
|
-
var c$j = e$f.define("TBSCertificate", function() {
|
|
43695
|
+
}));
|
|
43696
|
+
var c$j = e$f.define("TBSCertificate", (function() {
|
|
43697
43697
|
this.seq().obj(this.key("version").explicit(0).int().optional(), this.key("serialNumber").int(), this.key("signature").use(n$n), this.key("issuer").use(r$g), this.key("validity").use(u$k), this.key("subject").use(r$g), this.key("subjectPublicKeyInfo").use(o$o), this.key("issuerUniqueID").implicit(1).bitstr().optional(), this.key("subjectUniqueID").implicit(2).bitstr().optional(), this.key("extensions").explicit(3).seqof(a$n).optional());
|
|
43698
|
-
});
|
|
43699
|
-
var k$d = e$f.define("X509Certificate", function() {
|
|
43698
|
+
}));
|
|
43699
|
+
var k$d = e$f.define("X509Certificate", (function() {
|
|
43700
43700
|
this.seq().obj(this.key("tbsCertificate").use(c$j), this.key("signatureAlgorithm").use(n$n), this.key("signatureValue").bitstr());
|
|
43701
|
-
});
|
|
43701
|
+
}));
|
|
43702
43702
|
var f$o = {};
|
|
43703
43703
|
var b$d = Q$3;
|
|
43704
43704
|
f$o.certificate = k$d;
|
|
43705
|
-
var l$l = b$d.define("RSAPrivateKey", function() {
|
|
43705
|
+
var l$l = b$d.define("RSAPrivateKey", (function() {
|
|
43706
43706
|
this.seq().obj(this.key("version").int(), this.key("modulus").int(), this.key("publicExponent").int(), this.key("privateExponent").int(), this.key("prime1").int(), this.key("prime2").int(), this.key("exponent1").int(), this.key("exponent2").int(), this.key("coefficient").int());
|
|
43707
|
-
});
|
|
43707
|
+
}));
|
|
43708
43708
|
f$o.RSAPrivateKey = l$l;
|
|
43709
|
-
var d$j = b$d.define("RSAPublicKey", function() {
|
|
43709
|
+
var d$j = b$d.define("RSAPublicKey", (function() {
|
|
43710
43710
|
this.seq().obj(this.key("modulus").int(), this.key("publicExponent").int());
|
|
43711
|
-
});
|
|
43711
|
+
}));
|
|
43712
43712
|
f$o.RSAPublicKey = d$j;
|
|
43713
|
-
var p$l = b$d.define("SubjectPublicKeyInfo", function() {
|
|
43713
|
+
var p$l = b$d.define("SubjectPublicKeyInfo", (function() {
|
|
43714
43714
|
this.seq().obj(this.key("algorithm").use(j$7), this.key("subjectPublicKey").bitstr());
|
|
43715
|
-
});
|
|
43715
|
+
}));
|
|
43716
43716
|
f$o.PublicKey = p$l;
|
|
43717
|
-
var j$7 = b$d.define("AlgorithmIdentifier", function() {
|
|
43717
|
+
var j$7 = b$d.define("AlgorithmIdentifier", (function() {
|
|
43718
43718
|
this.seq().obj(this.key("algorithm").objid(), this.key("none").null_().optional(), this.key("curve").objid().optional(), this.key("params").seq().obj(this.key("p").int(), this.key("q").int(), this.key("g").int()).optional());
|
|
43719
|
-
});
|
|
43720
|
-
var v$g = b$d.define("PrivateKeyInfo", function() {
|
|
43719
|
+
}));
|
|
43720
|
+
var v$g = b$d.define("PrivateKeyInfo", (function() {
|
|
43721
43721
|
this.seq().obj(this.key("version").int(), this.key("algorithm").use(j$7), this.key("subjectPrivateKey").octstr());
|
|
43722
|
-
});
|
|
43722
|
+
}));
|
|
43723
43723
|
f$o.PrivateKey = v$g;
|
|
43724
|
-
var m$h = b$d.define("EncryptedPrivateKeyInfo", function() {
|
|
43724
|
+
var m$h = b$d.define("EncryptedPrivateKeyInfo", (function() {
|
|
43725
43725
|
this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(), this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(), this.key("kdeparams").seq().obj(this.key("salt").octstr(), this.key("iters").int())), this.key("cipher").seq().obj(this.key("algo").objid(), this.key("iv").octstr()))), this.key("subjectPrivateKey").octstr());
|
|
43726
|
-
});
|
|
43726
|
+
}));
|
|
43727
43727
|
f$o.EncryptedPrivateKey = m$h;
|
|
43728
|
-
var q$6 = b$d.define("DSAPrivateKey", function() {
|
|
43728
|
+
var q$6 = b$d.define("DSAPrivateKey", (function() {
|
|
43729
43729
|
this.seq().obj(this.key("version").int(), this.key("p").int(), this.key("q").int(), this.key("g").int(), this.key("pub_key").int(), this.key("priv_key").int());
|
|
43730
|
-
});
|
|
43731
|
-
f$o.DSAPrivateKey = q$6, f$o.DSAparam = b$d.define("DSAparam", function() {
|
|
43730
|
+
}));
|
|
43731
|
+
f$o.DSAPrivateKey = q$6, f$o.DSAparam = b$d.define("DSAparam", (function() {
|
|
43732
43732
|
this.int();
|
|
43733
|
-
});
|
|
43734
|
-
var K$6 = b$d.define("ECPrivateKey", function() {
|
|
43733
|
+
}));
|
|
43734
|
+
var K$6 = b$d.define("ECPrivateKey", (function() {
|
|
43735
43735
|
this.seq().obj(this.key("version").int(), this.key("privateKey").octstr(), this.key("parameters").optional().explicit(0).use(P$6), this.key("publicKey").optional().explicit(1).bitstr());
|
|
43736
|
-
});
|
|
43736
|
+
}));
|
|
43737
43737
|
f$o.ECPrivateKey = K$6;
|
|
43738
|
-
var P$6 = b$d.define("ECParameters", function() {
|
|
43738
|
+
var P$6 = b$d.define("ECParameters", (function() {
|
|
43739
43739
|
this.choice({ namedCurve: this.objid() });
|
|
43740
|
-
});
|
|
43741
|
-
f$o.signature = b$d.define("signature", function() {
|
|
43740
|
+
}));
|
|
43741
|
+
f$o.signature = b$d.define("signature", (function() {
|
|
43742
43742
|
this.seq().obj(this.key("r").int(), this.key("s").int());
|
|
43743
|
-
});
|
|
43743
|
+
}));
|
|
43744
43744
|
var s$l;
|
|
43745
43745
|
var i$a = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m;
|
|
43746
43746
|
var o$p = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m;
|
|
@@ -43783,10 +43783,10 @@ function l$m(e7) {
|
|
|
43783
43783
|
throw new Error("unknown key id " + a5);
|
|
43784
43784
|
}
|
|
43785
43785
|
case "ENCRYPTED PRIVATE KEY":
|
|
43786
|
-
i5 = function(e8, r6) {
|
|
43786
|
+
i5 = (function(e8, r6) {
|
|
43787
43787
|
var a6 = e8.algorithm.decrypt.kde.kdeparams.salt, t6 = parseInt(e8.algorithm.decrypt.kde.kdeparams.iters.toString(), 10), c6 = m$i[e8.algorithm.decrypt.cipher.algo.join(".")], s6 = e8.algorithm.decrypt.cipher.iv, i6 = e8.subjectPrivateKey, o5 = parseInt(c6.split("-")[1], 10) / 8, d4 = E$a.pbkdf2Sync(r6, a6, t6, o5, "sha1"), n5 = b$e.createDecipheriv(c6, d4, s6), p5 = [];
|
|
43788
43788
|
return p5.push(n5.update(i6)), p5.push(n5.final()), h$i.concat(p5);
|
|
43789
|
-
}(i5 = y$h.EncryptedPrivateKey.decode(i5, "der"), r5);
|
|
43789
|
+
})(i5 = y$h.EncryptedPrivateKey.decode(i5, "der"), r5);
|
|
43790
43790
|
case "PRIVATE KEY":
|
|
43791
43791
|
switch (a5 = (t5 = y$h.PrivateKey.decode(i5, "der")).algorithm.algorithm.join(".")) {
|
|
43792
43792
|
case "1.2.840.113549.1.1.1":
|
|
@@ -43826,7 +43826,7 @@ function y$i(e7, t5, r5, n5) {
|
|
|
43826
43826
|
var a5 = new f$q(t5.byteLength() - e7.length);
|
|
43827
43827
|
a5.fill(0), e7 = f$q.concat([a5, e7]);
|
|
43828
43828
|
}
|
|
43829
|
-
var o5 = r5.length, i5 = function(e8, t6) {
|
|
43829
|
+
var o5 = r5.length, i5 = (function(e8, t6) {
|
|
43830
43830
|
e8 = (e8 = b$f(e8, t6)).mod(t6);
|
|
43831
43831
|
var r6 = new f$q(e8.toArray());
|
|
43832
43832
|
if (r6.length < t6.byteLength()) {
|
|
@@ -43834,7 +43834,7 @@ function y$i(e7, t5, r5, n5) {
|
|
|
43834
43834
|
n6.fill(0), r6 = f$q.concat([n6, r6]);
|
|
43835
43835
|
}
|
|
43836
43836
|
return r6;
|
|
43837
|
-
}(r5, t5), s5 = new f$q(o5);
|
|
43837
|
+
})(r5, t5), s5 = new f$q(o5);
|
|
43838
43838
|
s5.fill(1);
|
|
43839
43839
|
var h5 = new f$q(o5);
|
|
43840
43840
|
return h5.fill(0), h5 = c$k(n5, h5).update(s5).update(new f$q([0])).update(e7).update(i5).digest(), s5 = c$k(n5, h5).update(s5).digest(), { k: h5 = c$k(n5, h5).update(s5).update(new f$q([1])).update(e7).update(i5).digest(), v: s5 = c$k(n5, h5).update(s5).digest() };
|
|
@@ -43858,25 +43858,25 @@ function k$e(e7, t5, r5, n5) {
|
|
|
43858
43858
|
var o5 = m$j(t5);
|
|
43859
43859
|
if (o5.curve) {
|
|
43860
43860
|
if ("ecdsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong private key type");
|
|
43861
|
-
return function(e8, t6) {
|
|
43861
|
+
return (function(e8, t6) {
|
|
43862
43862
|
var r6 = v$i[t6.curve.join(".")];
|
|
43863
43863
|
if (!r6) throw new Error("unknown curve " + t6.curve.join("."));
|
|
43864
43864
|
var n6 = new w$g(r6).keyFromPrivate(t6.privateKey).sign(e8);
|
|
43865
43865
|
return new f$q(n6.toDER());
|
|
43866
|
-
}(e7, o5);
|
|
43866
|
+
})(e7, o5);
|
|
43867
43867
|
}
|
|
43868
43868
|
if ("dsa" === o5.type) {
|
|
43869
43869
|
if ("dsa" !== n5) throw new Error("wrong private key type");
|
|
43870
|
-
return function(e8, t6, r6) {
|
|
43870
|
+
return (function(e8, t6, r6) {
|
|
43871
43871
|
var n6, a6 = t6.params.priv_key, o6 = t6.params.p, i6 = t6.params.q, s6 = t6.params.g, h6 = new l$n(0), u5 = b$f(e8, i6).mod(i6), p5 = false, d4 = y$i(a6, i6, e8, r6);
|
|
43872
43872
|
for (; false === p5; ) n6 = _$f(i6, d4, r6), h6 = k$e(s6, n6, o6, i6), 0 === (p5 = n6.invm(i6).imul(u5.add(a6.mul(h6))).mod(i6)).cmpn(0) && (p5 = false, h6 = new l$n(0));
|
|
43873
|
-
return function(e9, t7) {
|
|
43873
|
+
return (function(e9, t7) {
|
|
43874
43874
|
e9 = e9.toArray(), t7 = t7.toArray(), 128 & e9[0] && (e9 = [0].concat(e9));
|
|
43875
43875
|
128 & t7[0] && (t7 = [0].concat(t7));
|
|
43876
43876
|
var r7 = [48, e9.length + t7.length + 4, 2, e9.length];
|
|
43877
43877
|
return r7 = r7.concat(e9, [2, t7.length], t7), new f$q(r7);
|
|
43878
|
-
}(h6, p5);
|
|
43879
|
-
}(e7, o5, r5);
|
|
43878
|
+
})(h6, p5);
|
|
43879
|
+
})(e7, o5, r5);
|
|
43880
43880
|
}
|
|
43881
43881
|
if ("rsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong private key type");
|
|
43882
43882
|
e7 = f$q.concat([a5, e7]);
|
|
@@ -43899,21 +43899,21 @@ var K$7 = function(e7, t5, r5, n5, a5) {
|
|
|
43899
43899
|
var o5 = T$7(r5);
|
|
43900
43900
|
if ("ec" === o5.type) {
|
|
43901
43901
|
if ("ecdsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong public key type");
|
|
43902
|
-
return function(e8, t6, r6) {
|
|
43902
|
+
return (function(e8, t6, r6) {
|
|
43903
43903
|
var n6 = P$7[r6.data.algorithm.curve.join(".")];
|
|
43904
43904
|
if (!n6) throw new Error("unknown curve " + r6.data.algorithm.curve.join("."));
|
|
43905
43905
|
var a6 = new j$8(n6), o6 = r6.data.subjectPrivateKey.data;
|
|
43906
43906
|
return a6.verify(t6, e8, o6);
|
|
43907
|
-
}(e7, t5, o5);
|
|
43907
|
+
})(e7, t5, o5);
|
|
43908
43908
|
}
|
|
43909
43909
|
if ("dsa" === o5.type) {
|
|
43910
43910
|
if ("dsa" !== n5) throw new Error("wrong public key type");
|
|
43911
|
-
return function(e8, t6, r6) {
|
|
43911
|
+
return (function(e8, t6, r6) {
|
|
43912
43912
|
var n6 = r6.data.p, a6 = r6.data.q, o6 = r6.data.g, i6 = r6.data.pub_key, s6 = T$7.signature.decode(e8, "der"), h6 = s6.s, u6 = s6.r;
|
|
43913
43913
|
A$a(h6, a6), A$a(u6, a6);
|
|
43914
43914
|
var p6 = R$5.mont(n6), d5 = h6.invm(a6);
|
|
43915
43915
|
return 0 === o6.toRed(p6).redPow(new R$5(t6).mul(d5).mod(a6)).fromRed().mul(i6.toRed(p6).redPow(u6.mul(d5).mod(a6)).fromRed()).mod(n6).mod(a6).cmp(u6);
|
|
43916
|
-
}(e7, t5, o5);
|
|
43916
|
+
})(e7, t5, o5);
|
|
43917
43917
|
}
|
|
43918
43918
|
if ("rsa" !== n5 && "ecdsa/rsa" !== n5) throw new Error("wrong public key type");
|
|
43919
43919
|
t5 = L$6.concat([a5, t5]);
|
|
@@ -43953,9 +43953,9 @@ function M$8(e7) {
|
|
|
43953
43953
|
function O$7(e7) {
|
|
43954
43954
|
return new F$7(e7);
|
|
43955
43955
|
}
|
|
43956
|
-
Object.keys(C$7).forEach(function(e7) {
|
|
43956
|
+
Object.keys(C$7).forEach((function(e7) {
|
|
43957
43957
|
C$7[e7].id = new x$8(C$7[e7].id, "hex"), C$7[e7.toLowerCase()] = C$7[e7];
|
|
43958
|
-
}), q$7(D$6, S$b.Writable), D$6.prototype._write = function(e7, t5, r5) {
|
|
43958
|
+
})), q$7(D$6, S$b.Writable), D$6.prototype._write = function(e7, t5, r5) {
|
|
43959
43959
|
(this || W$4)._hash.update(e7), r5();
|
|
43960
43960
|
}, D$6.prototype.update = function(e7, t5) {
|
|
43961
43961
|
return "string" == typeof e7 && (e7 = new x$8(e7, t5)), (this || W$4)._hash.update(e7), this || W$4;
|
|
@@ -44043,22 +44043,22 @@ var x$9 = function(r5, n5, e7) {
|
|
|
44043
44043
|
var t5;
|
|
44044
44044
|
t5 = r5.padding ? r5.padding : e7 ? 1 : 4;
|
|
44045
44045
|
var o5, a5 = s$n(r5);
|
|
44046
|
-
if (4 === t5) o5 = function(r6, n6) {
|
|
44046
|
+
if (4 === t5) o5 = (function(r6, n6) {
|
|
44047
44047
|
var e8 = r6.modulus.byteLength(), t6 = n6.length, o6 = m$k("sha1").update(B$b.alloc(0)).digest(), a6 = o6.length, i5 = 2 * a6;
|
|
44048
44048
|
if (t6 > e8 - i5 - 2) throw new Error("message too long");
|
|
44049
44049
|
var l5 = B$b.alloc(e8 - t6 - i5 - 2), f6 = e8 - a6 - 1, u5 = g$g(a6), c5 = v$j(B$b.concat([o6, l5, B$b.alloc(1, 1), n6], f6), w$h(u5, f6)), p5 = v$j(u5, w$h(c5, a6));
|
|
44050
44050
|
return new y$k(B$b.concat([B$b.alloc(1), p5, c5], e8));
|
|
44051
|
-
}(a5, n5);
|
|
44052
|
-
else if (1 === t5) o5 = function(r6, n6, e8) {
|
|
44051
|
+
})(a5, n5);
|
|
44052
|
+
else if (1 === t5) o5 = (function(r6, n6, e8) {
|
|
44053
44053
|
var t6, o6 = n6.length, a6 = r6.modulus.byteLength();
|
|
44054
44054
|
if (o6 > a6 - 11) throw new Error("message too long");
|
|
44055
|
-
t6 = e8 ? B$b.alloc(a6 - o6 - 3, 255) : function(r7) {
|
|
44055
|
+
t6 = e8 ? B$b.alloc(a6 - o6 - 3, 255) : (function(r7) {
|
|
44056
44056
|
var n7, e9 = B$b.allocUnsafe(r7), t7 = 0, o7 = g$g(2 * r7), a7 = 0;
|
|
44057
44057
|
for (; t7 < r7; ) a7 === o7.length && (o7 = g$g(2 * r7), a7 = 0), (n7 = o7[a7++]) && (e9[t7++] = n7);
|
|
44058
44058
|
return e9;
|
|
44059
|
-
}(a6 - o6 - 3);
|
|
44059
|
+
})(a6 - o6 - 3);
|
|
44060
44060
|
return new y$k(B$b.concat([B$b.from([0, e8 ? 1 : 2]), t6, B$b.alloc(1), n6], a6));
|
|
44061
|
-
}(a5, n5, e7);
|
|
44061
|
+
})(a5, n5, e7);
|
|
44062
44062
|
else {
|
|
44063
44063
|
if (3 !== t5) throw new Error("unknown padding");
|
|
44064
44064
|
if ((o5 = new y$k(n5)).cmp(a5.modulus) >= 0) throw new Error("data too long for modulus");
|
|
@@ -44080,24 +44080,24 @@ var I$a = function(r5, n5, e7) {
|
|
|
44080
44080
|
if (n5.length > i5 || new U$9(n5).cmp(a5.modulus) >= 0) throw new Error("decryption error");
|
|
44081
44081
|
o5 = e7 ? j$9(new U$9(n5), a5) : R$6(n5, a5);
|
|
44082
44082
|
var l5 = A$b.alloc(i5 - o5.length);
|
|
44083
|
-
if (o5 = A$b.concat([l5, o5], i5), 4 === t5) return function(r6, n6) {
|
|
44083
|
+
if (o5 = A$b.concat([l5, o5], i5), 4 === t5) return (function(r6, n6) {
|
|
44084
44084
|
var e8 = r6.modulus.byteLength(), t6 = S$c("sha1").update(A$b.alloc(0)).digest(), o6 = t6.length;
|
|
44085
44085
|
if (0 !== n6[0]) throw new Error("decryption error");
|
|
44086
44086
|
var a6 = n6.slice(1, o6 + 1), i6 = n6.slice(o6 + 1), l6 = D$7(a6, k$f(i6, o6)), f6 = D$7(i6, k$f(l6, e8 - o6 - 1));
|
|
44087
|
-
if (function(r7, n7) {
|
|
44087
|
+
if ((function(r7, n7) {
|
|
44088
44088
|
r7 = A$b.from(r7), n7 = A$b.from(n7);
|
|
44089
44089
|
var e9 = 0, t7 = r7.length;
|
|
44090
44090
|
r7.length !== n7.length && (e9++, t7 = Math.min(r7.length, n7.length));
|
|
44091
44091
|
var o7 = -1;
|
|
44092
44092
|
for (; ++o7 < t7; ) e9 += r7[o7] ^ n7[o7];
|
|
44093
44093
|
return e9;
|
|
44094
|
-
}(t6, f6.slice(0, o6))) throw new Error("decryption error");
|
|
44094
|
+
})(t6, f6.slice(0, o6))) throw new Error("decryption error");
|
|
44095
44095
|
var u5 = o6;
|
|
44096
44096
|
for (; 0 === f6[u5]; ) u5++;
|
|
44097
44097
|
if (1 !== f6[u5++]) throw new Error("decryption error");
|
|
44098
44098
|
return f6.slice(u5);
|
|
44099
|
-
}(a5, o5);
|
|
44100
|
-
if (1 === t5) return function(r6, n6, e8) {
|
|
44099
|
+
})(a5, o5);
|
|
44100
|
+
if (1 === t5) return (function(r6, n6, e8) {
|
|
44101
44101
|
var t6 = n6.slice(0, 2), o6 = 2, a6 = 0;
|
|
44102
44102
|
for (; 0 !== n6[o6++]; ) if (o6 >= n6.length) {
|
|
44103
44103
|
a6++;
|
|
@@ -44108,7 +44108,7 @@ var I$a = function(r5, n5, e7) {
|
|
|
44108
44108
|
i6.length < 8 && a6++;
|
|
44109
44109
|
if (a6) throw new Error("decryption error");
|
|
44110
44110
|
return n6.slice(o6);
|
|
44111
|
-
}(0, o5, e7);
|
|
44111
|
+
})(0, o5, e7);
|
|
44112
44112
|
if (3 === t5) return o5;
|
|
44113
44113
|
throw new Error("unknown padding");
|
|
44114
44114
|
};
|
|
@@ -44143,14 +44143,14 @@ function b$h(r5, e7, n5) {
|
|
|
44143
44143
|
function w$i(r5, e7, n5, o5) {
|
|
44144
44144
|
if (f$t.browser) {
|
|
44145
44145
|
var t5 = r5.buffer, i5 = new Uint8Array(t5, e7, n5);
|
|
44146
|
-
return m$l.getRandomValues(i5), o5 ? (f$t.nextTick(function() {
|
|
44146
|
+
return m$l.getRandomValues(i5), o5 ? (f$t.nextTick((function() {
|
|
44147
44147
|
o5(null, r5);
|
|
44148
|
-
}), void 0) : r5;
|
|
44148
|
+
})), void 0) : r5;
|
|
44149
44149
|
}
|
|
44150
|
-
return o5 ? (a$o(n5, function(n6, t6) {
|
|
44150
|
+
return o5 ? (a$o(n5, (function(n6, t6) {
|
|
44151
44151
|
if (n6) return o5(n6);
|
|
44152
44152
|
t6.copy(r5, e7), o5(null, r5);
|
|
44153
|
-
}), void 0) : (a$o(n5).copy(r5, e7), r5);
|
|
44153
|
+
})), void 0) : (a$o(n5).copy(r5, e7), r5);
|
|
44154
44154
|
}
|
|
44155
44155
|
m$l && m$l.getRandomValues || !f$t.browser ? (t$b.randomFill = function(r5, e7, n5, t5) {
|
|
44156
44156
|
if (!(s$o.isBuffer(r5) || r5 instanceof o$r.Uint8Array)) throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
|
|
@@ -83291,7 +83291,7 @@ function dew$18() {
|
|
|
83291
83291
|
function copyBuffer(src, target, offset) {
|
|
83292
83292
|
src.copy(target, offset);
|
|
83293
83293
|
}
|
|
83294
|
-
exports$19 = function() {
|
|
83294
|
+
exports$19 = (function() {
|
|
83295
83295
|
function BufferList() {
|
|
83296
83296
|
_classCallCheck(this, BufferList);
|
|
83297
83297
|
this.head = null;
|
|
@@ -83351,7 +83351,7 @@ function dew$18() {
|
|
|
83351
83351
|
return ret;
|
|
83352
83352
|
};
|
|
83353
83353
|
return BufferList;
|
|
83354
|
-
}();
|
|
83354
|
+
})();
|
|
83355
83355
|
if (util && util.inspect && util.inspect.custom) {
|
|
83356
83356
|
exports$19.prototype[util.inspect.custom] = function() {
|
|
83357
83357
|
var obj = util.inspect({
|
|
@@ -84507,11 +84507,11 @@ function dew$14() {
|
|
|
84507
84507
|
});
|
|
84508
84508
|
for (var i5 in stream2) {
|
|
84509
84509
|
if (this[i5] === void 0 && typeof stream2[i5] === "function") {
|
|
84510
|
-
this[i5] = /* @__PURE__ */ function(method) {
|
|
84510
|
+
this[i5] = /* @__PURE__ */ (function(method) {
|
|
84511
84511
|
return function() {
|
|
84512
84512
|
return stream2[method].apply(stream2, arguments);
|
|
84513
84513
|
};
|
|
84514
|
-
}(i5);
|
|
84514
|
+
})(i5);
|
|
84515
84515
|
}
|
|
84516
84516
|
}
|
|
84517
84517
|
for (var n5 = 0; n5 < kProxyEvents.length; n5++) {
|
|
@@ -104101,6 +104101,11 @@ var DECIMALS = {
|
|
|
104101
104101
|
};
|
|
104102
104102
|
|
|
104103
104103
|
// src/core/services/wallet.ts
|
|
104104
|
+
var ERC20_ABI = [
|
|
104105
|
+
"function balanceOf(address owner) view returns (uint256)",
|
|
104106
|
+
"function decimals() view returns (uint8)",
|
|
104107
|
+
"function symbol() view returns (string)"
|
|
104108
|
+
];
|
|
104104
104109
|
var WalletService = class {
|
|
104105
104110
|
constructor(walletClient, rpcClient, orgHost, networkService) {
|
|
104106
104111
|
this.walletClient = walletClient;
|
|
@@ -104308,6 +104313,53 @@ var WalletService = class {
|
|
|
104308
104313
|
symbol: network?.symbol || "ETH"
|
|
104309
104314
|
};
|
|
104310
104315
|
}
|
|
104316
|
+
async getTokenBalance(tokenAddress, walletAddress, chainId) {
|
|
104317
|
+
const erc20 = new Interface(ERC20_ABI);
|
|
104318
|
+
const data = erc20.encodeFunctionData("balanceOf", [walletAddress]);
|
|
104319
|
+
const rawBalance = await this.rpcClient.sendRpc({
|
|
104320
|
+
chainId,
|
|
104321
|
+
method: "eth_call" /* ETH_CALL */,
|
|
104322
|
+
params: [
|
|
104323
|
+
{
|
|
104324
|
+
to: tokenAddress,
|
|
104325
|
+
data
|
|
104326
|
+
},
|
|
104327
|
+
"latest"
|
|
104328
|
+
]
|
|
104329
|
+
});
|
|
104330
|
+
const decimalsData = erc20.encodeFunctionData("decimals", []);
|
|
104331
|
+
const decimalsRes = await this.rpcClient.sendRpc({
|
|
104332
|
+
chainId,
|
|
104333
|
+
method: "eth_call" /* ETH_CALL */,
|
|
104334
|
+
params: [
|
|
104335
|
+
{
|
|
104336
|
+
to: tokenAddress,
|
|
104337
|
+
data: decimalsData
|
|
104338
|
+
},
|
|
104339
|
+
"latest"
|
|
104340
|
+
]
|
|
104341
|
+
});
|
|
104342
|
+
const decimals = parseInt(decimalsRes.result, 16);
|
|
104343
|
+
const symbolData = erc20.encodeFunctionData("symbol", []);
|
|
104344
|
+
const symbolRes = await this.rpcClient.sendRpc({
|
|
104345
|
+
chainId,
|
|
104346
|
+
method: "eth_call" /* ETH_CALL */,
|
|
104347
|
+
params: [
|
|
104348
|
+
{
|
|
104349
|
+
to: tokenAddress,
|
|
104350
|
+
data: symbolData
|
|
104351
|
+
},
|
|
104352
|
+
"latest"
|
|
104353
|
+
]
|
|
104354
|
+
});
|
|
104355
|
+
const symbol = erc20.decodeFunctionResult("symbol", symbolRes.result)[0];
|
|
104356
|
+
return {
|
|
104357
|
+
raw: rawBalance.result,
|
|
104358
|
+
formatted: TokenAmount.format(rawBalance.result, decimals),
|
|
104359
|
+
decimals,
|
|
104360
|
+
symbol
|
|
104361
|
+
};
|
|
104362
|
+
}
|
|
104311
104363
|
async getTransactionCount(address, chainId) {
|
|
104312
104364
|
const response = await this.rpcClient.sendRpc({
|
|
104313
104365
|
chainId,
|
|
@@ -104787,7 +104839,7 @@ var RpcClient = class {
|
|
|
104787
104839
|
};
|
|
104788
104840
|
|
|
104789
104841
|
// src/contract/contracts.ts
|
|
104790
|
-
var
|
|
104842
|
+
var ERC20_ABI2 = [
|
|
104791
104843
|
{
|
|
104792
104844
|
constant: true,
|
|
104793
104845
|
inputs: [],
|
|
@@ -104885,9 +104937,9 @@ var ERC20_ABI = [
|
|
|
104885
104937
|
];
|
|
104886
104938
|
|
|
104887
104939
|
// src/core/services/asset.ts
|
|
104888
|
-
import { Interface } from "ethers";
|
|
104940
|
+
import { Interface as Interface2 } from "ethers";
|
|
104889
104941
|
|
|
104890
|
-
// node_modules/@jspm/core/nodelibs/browser/events.js
|
|
104942
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/events.js
|
|
104891
104943
|
var exports$111 = {};
|
|
104892
104944
|
var _dewExec11 = false;
|
|
104893
104945
|
function dew11() {
|
|
@@ -105330,7 +105382,7 @@ var {
|
|
|
105330
105382
|
once: once2
|
|
105331
105383
|
} = exports12;
|
|
105332
105384
|
|
|
105333
|
-
// node_modules/@jspm/core/nodelibs/browser/timers.js
|
|
105385
|
+
// node_modules/.pnpm/@jspm+core@2.1.0/node_modules/@jspm/core/nodelibs/browser/timers.js
|
|
105334
105386
|
var exports$211 = {};
|
|
105335
105387
|
var _dewExec$111 = false;
|
|
105336
105388
|
var _global$111 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
|
|
@@ -105565,7 +105617,7 @@ var AssetService = class extends EventEmitter {
|
|
|
105565
105617
|
this.networkService = networkService;
|
|
105566
105618
|
this.userClient = userClient;
|
|
105567
105619
|
this.orgHost = orgHost;
|
|
105568
|
-
this.erc20Interface = new
|
|
105620
|
+
this.erc20Interface = new Interface2(ERC20_ABI2);
|
|
105569
105621
|
}
|
|
105570
105622
|
async getTokenInfo(params) {
|
|
105571
105623
|
try {
|
|
@@ -105898,6 +105950,7 @@ var InternalCoreImpl = class {
|
|
|
105898
105950
|
create: (password) => this.walletService.create(password),
|
|
105899
105951
|
retrieveWallet: (password) => this.walletService.retrieveWallet(password),
|
|
105900
105952
|
getBalance: (address, chainId) => this.walletService.getBalance(address, chainId),
|
|
105953
|
+
getTokenBalance: (tokenAddress, walletAddress, chainId) => this.walletService.getTokenBalance(tokenAddress, walletAddress, chainId),
|
|
105901
105954
|
getTransactionCount: (address, chainId) => this.walletService.getTransactionCount(address, chainId),
|
|
105902
105955
|
getBlockNumber: (chainId) => this.walletService.getBlockNumber(chainId),
|
|
105903
105956
|
sendRawTransaction: (signedTx, chainId) => this.walletService.sendRawTransaction(signedTx, chainId),
|
|
@@ -106110,6 +106163,9 @@ var WalletModule = class {
|
|
|
106110
106163
|
async getBalance(address, chainId) {
|
|
106111
106164
|
return this.core.wallet.getBalance(address, chainId);
|
|
106112
106165
|
}
|
|
106166
|
+
async getTokenBalance(address, tokenAddress, chainId) {
|
|
106167
|
+
return this.core.wallet.getTokenBalance(address, tokenAddress, chainId);
|
|
106168
|
+
}
|
|
106113
106169
|
async getTransactionCount(address, chainId) {
|
|
106114
106170
|
return this.core.wallet.getTransactionCount(address, chainId);
|
|
106115
106171
|
}
|
|
@@ -106289,6 +106345,13 @@ var WeBlockSDK = class {
|
|
|
106289
106345
|
getBalance: (address, chainId) => {
|
|
106290
106346
|
return this.walletModule.getBalance(address, chainId);
|
|
106291
106347
|
},
|
|
106348
|
+
getTokenBalance: (tokenAddress, walletAddress, chainId) => {
|
|
106349
|
+
return this.walletModule.getTokenBalance(
|
|
106350
|
+
tokenAddress,
|
|
106351
|
+
walletAddress,
|
|
106352
|
+
chainId
|
|
106353
|
+
);
|
|
106354
|
+
},
|
|
106292
106355
|
getTransactionCount: (address, chainId) => {
|
|
106293
106356
|
return this.walletModule.getTransactionCount(address, chainId);
|
|
106294
106357
|
},
|
|
@@ -106409,7 +106472,7 @@ var WeBlockSDK = class {
|
|
|
106409
106472
|
return this.initialized;
|
|
106410
106473
|
}
|
|
106411
106474
|
};
|
|
106412
|
-
var
|
|
106475
|
+
var index_default = WeBlockSDK;
|
|
106413
106476
|
export {
|
|
106414
106477
|
DECIMALS,
|
|
106415
106478
|
SDKError,
|
|
@@ -106420,19 +106483,15 @@ export {
|
|
|
106420
106483
|
TransactionStatus,
|
|
106421
106484
|
TransactionType,
|
|
106422
106485
|
WeBlockSDK,
|
|
106423
|
-
|
|
106486
|
+
index_default as default
|
|
106424
106487
|
};
|
|
106425
106488
|
/*! Bundled license information:
|
|
106426
106489
|
|
|
106427
106490
|
@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
|
|
106428
|
-
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106429
|
-
|
|
106430
|
-
@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js:
|
|
106431
|
-
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106432
|
-
|
|
106433
106491
|
@jspm/core/nodelibs/browser/chunk-B738Er4n.js:
|
|
106434
106492
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106435
106493
|
|
|
106494
|
+
@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js:
|
|
106436
106495
|
@jspm/core/nodelibs/browser/crypto.js:
|
|
106437
106496
|
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
106438
106497
|
*/
|