@eluvio/elv-player-js 2.0.3 → 2.0.4
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/.vite/manifest.json +43 -35
- package/dist/Analytics-CYJLgx_a.js +29 -0
- package/dist/{Analytics-tzT177LT.mjs → Analytics-SL78DnFJ.mjs} +794 -949
- package/dist/dash.all.min-Csr27tOz.js +26 -0
- package/dist/dash.all.min-dlsJq_zB.mjs +18042 -0
- package/dist/elv-player-js.cjs.js +1 -1
- package/dist/elv-player-js.css +1 -1
- package/dist/elv-player-js.es.js +1 -1
- package/dist/{hls-1eCRapWm.mjs → hls-B8WS8h-m.mjs} +42 -80
- package/dist/{hls-6O5SV1FQ.js → hls-agwebW2Y.js} +1 -1
- package/dist/{index-eJYk3d_H.mjs → index-CO5vQxYj.mjs} +194 -236
- package/dist/index-CTZLSJgI.js +366 -0
- package/dist/{index-fK0-ixyS.js → index-DXZS88KZ.js} +2 -2
- package/dist/{index-OO3pB9-0.mjs → index-DiL5zcI4.mjs} +29885 -29467
- package/lib/player/Controls.js +24 -0
- package/lib/player/Player.js +66 -1
- package/lib/player/PlayerParameters.js +6 -1
- package/lib/static/icons/Icons.js +31 -28
- package/lib/static/icons/svgs/content-credentials.svg +3 -0
- package/lib/static/icons/svgs/copy.svg +1 -0
- package/lib/static/icons/svgs/shield.svg +4 -0
- package/lib/static/stylesheets/common.module.scss +158 -3
- package/lib/static/stylesheets/controls-web.module.scss +27 -1
- package/lib/ui/BuildIcons.cjs +4 -1
- package/lib/ui/Components.jsx +168 -3
- package/lib/ui/Observers.js +13 -2
- package/lib/ui/TVControls.jsx +30 -1
- package/lib/ui/WebControls.jsx +40 -3
- package/package.json +2 -2
- package/dist/Analytics-PI86_hOX.js +0 -29
- package/dist/dash.all.min-BHQ284vX.mjs +0 -19428
- package/dist/dash.all.min-YnvCBRhl.js +0 -25
- package/dist/index-uOiYcy0J.js +0 -367
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-
|
|
1
|
+
import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-DiL5zcI4.mjs";
|
|
2
2
|
class EA {
|
|
3
3
|
constructor(I) {
|
|
4
4
|
this.wasm = I;
|
|
@@ -47,8 +47,7 @@ class EA {
|
|
|
47
47
|
ptr: null,
|
|
48
48
|
len: 0
|
|
49
49
|
};
|
|
50
|
-
if (!I)
|
|
51
|
-
return Q;
|
|
50
|
+
if (!I) return Q;
|
|
52
51
|
let C = null;
|
|
53
52
|
if (I instanceof Uint8Array || typeof Buffer < "u" && I instanceof Buffer)
|
|
54
53
|
C = I;
|
|
@@ -109,8 +108,7 @@ class yI {
|
|
|
109
108
|
this.scratchBuf.clear();
|
|
110
109
|
}
|
|
111
110
|
free() {
|
|
112
|
-
if (!this.context)
|
|
113
|
-
return;
|
|
111
|
+
if (!this.context) return;
|
|
114
112
|
const I = this.wasm;
|
|
115
113
|
I._FreeCryptoContext(this.context), this.scratchBuf.free(), I._free(this.skBuf.ptr), I._free(this.symKeyBuf.ptr), this.context = null, this.scratchBuf = null, this.sk = null, this.skBuf = null, this.symKey = null, this.symKeyBuf = null, this.utils = null, this.wasm = null;
|
|
116
114
|
}
|
|
@@ -131,8 +129,7 @@ class lI {
|
|
|
131
129
|
this.scratchBuf.clear();
|
|
132
130
|
}
|
|
133
131
|
free() {
|
|
134
|
-
if (!this.context)
|
|
135
|
-
return;
|
|
132
|
+
if (!this.context) return;
|
|
136
133
|
const I = this.wasm;
|
|
137
134
|
I._FreeCryptoContext(this.context), I._free(this.pkBuf.ptr), this.scratchBuf.free(), I._free(this.symKeyBuf.ptr), this.context = null, this.iv = null, this.pk = null, this.pkBuf = null, this.scratchBuf = null, this.sk = null, this.skBuf = null, this.symKey = null, this.symKeyBuf = null, this.wasm = null, this.utils = null;
|
|
138
135
|
}
|
|
@@ -159,10 +156,10 @@ var uI = (() => {
|
|
|
159
156
|
Object.assign(A, o), o = null, A.arguments && A.arguments, A.thisProgram && A.thisProgram, A.quit && A.quit;
|
|
160
157
|
var G;
|
|
161
158
|
A.wasmBinary && (G = A.wasmBinary), A.noExitRuntime, typeof WebAssembly != "object" && IA("no native wasm support detected");
|
|
162
|
-
var N, b = !1, q,
|
|
159
|
+
var N, b = !1, q, d, R, y, w, H, F;
|
|
163
160
|
function l() {
|
|
164
161
|
var i = N.buffer;
|
|
165
|
-
A.HEAP8 = q = new Int8Array(i), A.HEAP16 = R = new Int16Array(i), A.HEAPU8 =
|
|
162
|
+
A.HEAP8 = q = new Int8Array(i), A.HEAP16 = R = new Int16Array(i), A.HEAPU8 = d = new Uint8Array(i), A.HEAPU16 = new Uint16Array(i), A.HEAP32 = y = new Int32Array(i), A.HEAPU32 = w = new Uint32Array(i), A.HEAPF32 = H = new Float32Array(i), A.HEAPF64 = F = new Float64Array(i);
|
|
166
163
|
}
|
|
167
164
|
var k = [], Y = [], W = [];
|
|
168
165
|
function J() {
|
|
@@ -221,13 +218,13 @@ var uI = (() => {
|
|
|
221
218
|
function BA(i) {
|
|
222
219
|
return Promise.resolve().then(() => nA(i));
|
|
223
220
|
}
|
|
224
|
-
function wA(i, s,
|
|
225
|
-
return BA(i).then((u) => WebAssembly.instantiate(u, s)).then((u) => u).then(
|
|
221
|
+
function wA(i, s, S) {
|
|
222
|
+
return BA(i).then((u) => WebAssembly.instantiate(u, s)).then((u) => u).then(S, (u) => {
|
|
226
223
|
D(`failed to asynchronously prepare wasm: ${u}`), IA(u);
|
|
227
224
|
});
|
|
228
225
|
}
|
|
229
|
-
function yA(i, s,
|
|
230
|
-
return wA(s,
|
|
226
|
+
function yA(i, s, S, u) {
|
|
227
|
+
return wA(s, S, u);
|
|
231
228
|
}
|
|
232
229
|
function t() {
|
|
233
230
|
var i = { a: UA };
|
|
@@ -235,7 +232,7 @@ var uI = (() => {
|
|
|
235
232
|
return U = u.exports, N = U.f, l(), DA(U.g), AA(), U;
|
|
236
233
|
}
|
|
237
234
|
cA();
|
|
238
|
-
function
|
|
235
|
+
function S(u) {
|
|
239
236
|
s(u.instance);
|
|
240
237
|
}
|
|
241
238
|
if (A.instantiateWasm)
|
|
@@ -244,7 +241,7 @@ var uI = (() => {
|
|
|
244
241
|
} catch (u) {
|
|
245
242
|
D(`Module.instantiateWasm callback failed with error: ${u}`), C(u);
|
|
246
243
|
}
|
|
247
|
-
return yA(G, $, i,
|
|
244
|
+
return yA(G, $, i, S).catch(C), {};
|
|
248
245
|
}
|
|
249
246
|
var e = (i) => {
|
|
250
247
|
for (; i.length > 0; )
|
|
@@ -259,7 +256,7 @@ var uI = (() => {
|
|
|
259
256
|
case "i16":
|
|
260
257
|
return R[i >> 1];
|
|
261
258
|
case "i32":
|
|
262
|
-
return
|
|
259
|
+
return y[i >> 2];
|
|
263
260
|
case "i64":
|
|
264
261
|
IA("to do getValue(i64) use WASM_BIGINT");
|
|
265
262
|
case "float":
|
|
@@ -267,34 +264,33 @@ var uI = (() => {
|
|
|
267
264
|
case "double":
|
|
268
265
|
return F[i >> 3];
|
|
269
266
|
case "*":
|
|
270
|
-
return
|
|
267
|
+
return w[i >> 2];
|
|
271
268
|
default:
|
|
272
269
|
IA(`invalid type for getValue: ${s}`);
|
|
273
270
|
}
|
|
274
271
|
}
|
|
275
272
|
var M = () => Date.now(), _ = () => 2147483648, g = (i) => {
|
|
276
|
-
var s = N.buffer,
|
|
273
|
+
var s = N.buffer, S = (i - s.byteLength + 65535) / 65536;
|
|
277
274
|
try {
|
|
278
|
-
return N.grow(
|
|
275
|
+
return N.grow(S), l(), 1;
|
|
279
276
|
} catch {
|
|
280
277
|
}
|
|
281
278
|
}, B = (i) => {
|
|
282
|
-
var s =
|
|
279
|
+
var s = d.length;
|
|
283
280
|
i >>>= 0;
|
|
284
|
-
var
|
|
285
|
-
if (i >
|
|
281
|
+
var S = _();
|
|
282
|
+
if (i > S)
|
|
286
283
|
return !1;
|
|
287
284
|
for (var u = (x, Z) => x + (Z - x % Z) % Z, L = 1; L <= 4; L *= 2) {
|
|
288
285
|
var m = s * (1 + 0.2 / L);
|
|
289
286
|
m = Math.min(m, i + 100663296);
|
|
290
|
-
var T = Math.min(
|
|
287
|
+
var T = Math.min(S, u(Math.max(i, m), 65536)), P = g(T);
|
|
291
288
|
if (P)
|
|
292
289
|
return !0;
|
|
293
290
|
}
|
|
294
291
|
return !1;
|
|
295
|
-
}, n = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0,
|
|
296
|
-
for (var u = s +
|
|
297
|
-
++L;
|
|
292
|
+
}, n = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, c = (i, s, S) => {
|
|
293
|
+
for (var u = s + S, L = s; i[L] && !(L >= u); ) ++L;
|
|
298
294
|
if (L - s > 16 && i.buffer && n)
|
|
299
295
|
return n.decode(i.subarray(s, L));
|
|
300
296
|
for (var m = ""; s < L; ) {
|
|
@@ -318,30 +314,30 @@ var uI = (() => {
|
|
|
318
314
|
}
|
|
319
315
|
return m;
|
|
320
316
|
}, O = (i) => 52;
|
|
321
|
-
function K(i, s,
|
|
317
|
+
function K(i, s, S, u, L) {
|
|
322
318
|
return 70;
|
|
323
319
|
}
|
|
324
320
|
var v = [null, [], []], eA = (i, s) => {
|
|
325
|
-
var
|
|
326
|
-
s === 0 || s === 10 ? ((i === 1 ? r : D)(
|
|
327
|
-
}, sA = (i, s,
|
|
328
|
-
for (var L = 0, m = 0; m <
|
|
329
|
-
var T =
|
|
321
|
+
var S = v[i];
|
|
322
|
+
s === 0 || s === 10 ? ((i === 1 ? r : D)(c(S, 0)), S.length = 0) : S.push(s);
|
|
323
|
+
}, sA = (i, s, S, u) => {
|
|
324
|
+
for (var L = 0, m = 0; m < S; m++) {
|
|
325
|
+
var T = w[s >> 2], P = w[s + 4 >> 2];
|
|
330
326
|
s += 8;
|
|
331
327
|
for (var x = 0; x < P; x++)
|
|
332
|
-
eA(i,
|
|
328
|
+
eA(i, d[T + x]);
|
|
333
329
|
L += P;
|
|
334
330
|
}
|
|
335
|
-
return
|
|
331
|
+
return w[u >> 2] = L, 0;
|
|
336
332
|
}, RA = (i, s) => {
|
|
337
333
|
q.set(i, s);
|
|
338
334
|
}, UA = { e: M, b: B, d: O, a: K, c: sA }, U = t();
|
|
339
|
-
A._EMS_AES_KEY_SIZE_ = () => (A._EMS_AES_KEY_SIZE_ = U.h)(), A._EMS_CRYPTO_TYPE_TARGET_ = () => (A._EMS_CRYPTO_TYPE_TARGET_ = U.i)(), A._EMS_CRYPTO_TYPE_PRIMARY_ = () => (A._EMS_CRYPTO_TYPE_PRIMARY_ = U.j)(), A._EMS_TARGET_BLOCK_KEY_SIZE_ = () => (A._EMS_TARGET_BLOCK_KEY_SIZE_ = U.k)(), A._EMS_TARGET_PK_KEY_SIZE_ = () => (A._EMS_TARGET_PK_KEY_SIZE_ = U.l)(), A._EMS_ECIES_PK_KEY_SIZE_ = () => (A._EMS_ECIES_PK_KEY_SIZE_ = U.m)(), A._EMS_ECIES_SK_KEY_SIZE_ = () => (A._EMS_ECIES_SK_KEY_SIZE_ = U.n)(), A._EMS_IV_SIZE_ = () => (A._EMS_IV_SIZE_ = U.o)(), A._EMS_PRIMARY_BLOCK_KEY_SIZE_ = () => (A._EMS_PRIMARY_BLOCK_KEY_SIZE_ = U.p)(), A._EMS_PRIMARY_PK_KEY_SIZE_ = () => (A._EMS_PRIMARY_PK_KEY_SIZE_ = U.q)(), A._EMS_RE_ENCRYPTION_KEY_SIZE_ = () => (A._EMS_RE_ENCRYPTION_KEY_SIZE_ = U.r)(), A._EMS_SECRET_KEY_SIZE_ = () => (A._EMS_SECRET_KEY_SIZE_ = U.s)(), A._EMS_SEED_SIZE_ = () => (A._EMS_SEED_SIZE_ = U.t)(), A._EMS_TAG_SIZE_ = () => (A._EMS_TAG_SIZE_ = U.u)(), A._free = (i) => (A._free = U.v)(i), A._malloc = (i) => (A._malloc = U.w)(i), A._DeriveTargetKeys = (i, s,
|
|
335
|
+
A._EMS_AES_KEY_SIZE_ = () => (A._EMS_AES_KEY_SIZE_ = U.h)(), A._EMS_CRYPTO_TYPE_TARGET_ = () => (A._EMS_CRYPTO_TYPE_TARGET_ = U.i)(), A._EMS_CRYPTO_TYPE_PRIMARY_ = () => (A._EMS_CRYPTO_TYPE_PRIMARY_ = U.j)(), A._EMS_TARGET_BLOCK_KEY_SIZE_ = () => (A._EMS_TARGET_BLOCK_KEY_SIZE_ = U.k)(), A._EMS_TARGET_PK_KEY_SIZE_ = () => (A._EMS_TARGET_PK_KEY_SIZE_ = U.l)(), A._EMS_ECIES_PK_KEY_SIZE_ = () => (A._EMS_ECIES_PK_KEY_SIZE_ = U.m)(), A._EMS_ECIES_SK_KEY_SIZE_ = () => (A._EMS_ECIES_SK_KEY_SIZE_ = U.n)(), A._EMS_IV_SIZE_ = () => (A._EMS_IV_SIZE_ = U.o)(), A._EMS_PRIMARY_BLOCK_KEY_SIZE_ = () => (A._EMS_PRIMARY_BLOCK_KEY_SIZE_ = U.p)(), A._EMS_PRIMARY_PK_KEY_SIZE_ = () => (A._EMS_PRIMARY_PK_KEY_SIZE_ = U.q)(), A._EMS_RE_ENCRYPTION_KEY_SIZE_ = () => (A._EMS_RE_ENCRYPTION_KEY_SIZE_ = U.r)(), A._EMS_SECRET_KEY_SIZE_ = () => (A._EMS_SECRET_KEY_SIZE_ = U.s)(), A._EMS_SEED_SIZE_ = () => (A._EMS_SEED_SIZE_ = U.t)(), A._EMS_TAG_SIZE_ = () => (A._EMS_TAG_SIZE_ = U.u)(), A._free = (i) => (A._free = U.v)(i), A._malloc = (i) => (A._malloc = U.w)(i), A._DeriveTargetKeys = (i, s, S, u) => (A._DeriveTargetKeys = U.x)(i, s, S, u), A._CalcEncByteCount = (i) => (A._CalcEncByteCount = U.y)(i), A._CalcEncByteCountFromTargetH = (i) => (A._CalcEncByteCountFromTargetH = U.z)(i), A._CalcEncByteCountH = (i, s) => (A._CalcEncByteCountH = U.A)(i, s), A._CalcEncECIESByteCount = (i) => (A._CalcEncECIESByteCount = U.B)(i), A._CalcTargetByteCountH = (i) => (A._CalcTargetByteCountH = U.C)(i), A._DecryptAES = (i, s, S, u, L, m) => (A._DecryptAES = U.D)(i, s, S, u, L, m), A._DecryptECIES = (i, s, S, u, L, m, T) => (A._DecryptECIES = U.E)(i, s, S, u, L, m, T), A._DecryptH = (i, s, S, u, L, m, T, P) => (A._DecryptH = U.F)(i, s, S, u, L, m, T, P), A._DecryptTarget = (i, s, S, u, L, m, T, P, x, Z) => (A._DecryptTarget = U.G)(i, s, S, u, L, m, T, P, x, Z), A._DecryptPrimary = (i, s, S, u, L, m, T, P, x, Z) => (A._DecryptPrimary = U.H)(i, s, S, u, L, m, T, P, x, Z), A._EncryptAES = (i, s, S, u, L, m) => (A._EncryptAES = U.I)(i, s, S, u, L, m), A._EncryptECIES = (i, s, S, u, L, m, T, P, x) => (A._EncryptECIES = U.J)(i, s, S, u, L, m, T, P, x), A._EncryptPrimary = (i, s, S, u, L, m, T, P, x, Z) => (A._EncryptPrimary = U.K)(i, s, S, u, L, m, T, P, x, Z), A._EncryptPrimaryH = (i, s, S, u, L, m, T) => (A._EncryptPrimaryH = U.L)(i, s, S, u, L, m, T), A._FreeCryptoContext = (i) => (A._FreeCryptoContext = U.M)(i), A._GeneratePrimaryKeys = (i, s, S, u) => (A._GeneratePrimaryKeys = U.N)(i, s, S, u), A._GenerateReEncryptionKey = (i, s, S) => (A._GenerateReEncryptionKey = U.O)(i, s, S), A._GenerateTargetKeys = (i, s, S, u) => (A._GenerateTargetKeys = U.P)(i, s, S, u), A._GenerateSymmetricKeys = (i, s, S, u) => (A._GenerateSymmetricKeys = U.Q)(i, s, S, u), A._NewCryptoContext = (i, s) => (A._NewCryptoContext = U.R)(i, s), A._ReEncryptBlockKey = (i, s, S) => (A._ReEncryptBlockKey = U.S)(i, s, S), A._ReEncryptH = (i, s, S, u, L) => (A._ReEncryptH = U.T)(i, s, S, u, L);
|
|
340
336
|
function lA(i) {
|
|
341
337
|
try {
|
|
342
|
-
for (var s = atob(i),
|
|
343
|
-
|
|
344
|
-
return
|
|
338
|
+
for (var s = atob(i), S = new Uint8Array(s.length), u = 0; u < s.length; ++u)
|
|
339
|
+
S[u] = s.charCodeAt(u);
|
|
340
|
+
return S;
|
|
345
341
|
} catch {
|
|
346
342
|
throw new Error("Converting base64 string to bytes failed.");
|
|
347
343
|
}
|
|
@@ -376,94 +372,91 @@ var uI = (() => {
|
|
|
376
372
|
const SI = uI;
|
|
377
373
|
var GA = { exports: {} }, mA = { exports: {} }, iI = CI.EventEmitter, pA, ZA;
|
|
378
374
|
function dI() {
|
|
379
|
-
if (ZA)
|
|
380
|
-
return pA;
|
|
375
|
+
if (ZA) return pA;
|
|
381
376
|
ZA = 1;
|
|
382
|
-
function E(
|
|
383
|
-
var
|
|
377
|
+
function E(d, R) {
|
|
378
|
+
var y = Object.keys(d);
|
|
384
379
|
if (Object.getOwnPropertySymbols) {
|
|
385
|
-
var
|
|
386
|
-
R && (
|
|
387
|
-
return Object.getOwnPropertyDescriptor(
|
|
388
|
-
})),
|
|
380
|
+
var w = Object.getOwnPropertySymbols(d);
|
|
381
|
+
R && (w = w.filter(function(H) {
|
|
382
|
+
return Object.getOwnPropertyDescriptor(d, H).enumerable;
|
|
383
|
+
})), y.push.apply(y, w);
|
|
389
384
|
}
|
|
390
|
-
return
|
|
385
|
+
return y;
|
|
391
386
|
}
|
|
392
|
-
function I(
|
|
387
|
+
function I(d) {
|
|
393
388
|
for (var R = 1; R < arguments.length; R++) {
|
|
394
|
-
var
|
|
395
|
-
R % 2 ? E(Object(
|
|
396
|
-
A(
|
|
397
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
398
|
-
Object.defineProperty(
|
|
389
|
+
var y = arguments[R] != null ? arguments[R] : {};
|
|
390
|
+
R % 2 ? E(Object(y), !0).forEach(function(w) {
|
|
391
|
+
A(d, w, y[w]);
|
|
392
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(y)) : E(Object(y)).forEach(function(w) {
|
|
393
|
+
Object.defineProperty(d, w, Object.getOwnPropertyDescriptor(y, w));
|
|
399
394
|
});
|
|
400
395
|
}
|
|
401
|
-
return
|
|
396
|
+
return d;
|
|
402
397
|
}
|
|
403
|
-
function A(
|
|
404
|
-
return R = a(R), R in
|
|
398
|
+
function A(d, R, y) {
|
|
399
|
+
return R = a(R), R in d ? Object.defineProperty(d, R, { value: y, enumerable: !0, configurable: !0, writable: !0 }) : d[R] = y, d;
|
|
405
400
|
}
|
|
406
|
-
function Q(
|
|
407
|
-
if (!(
|
|
401
|
+
function Q(d, R) {
|
|
402
|
+
if (!(d instanceof R))
|
|
408
403
|
throw new TypeError("Cannot call a class as a function");
|
|
409
404
|
}
|
|
410
|
-
function C(
|
|
411
|
-
for (var
|
|
412
|
-
var
|
|
413
|
-
|
|
405
|
+
function C(d, R) {
|
|
406
|
+
for (var y = 0; y < R.length; y++) {
|
|
407
|
+
var w = R[y];
|
|
408
|
+
w.enumerable = w.enumerable || !1, w.configurable = !0, "value" in w && (w.writable = !0), Object.defineProperty(d, a(w.key), w);
|
|
414
409
|
}
|
|
415
410
|
}
|
|
416
|
-
function o(
|
|
417
|
-
return R && C(
|
|
411
|
+
function o(d, R, y) {
|
|
412
|
+
return R && C(d.prototype, R), Object.defineProperty(d, "prototype", { writable: !1 }), d;
|
|
418
413
|
}
|
|
419
|
-
function a(
|
|
420
|
-
var R = h(
|
|
414
|
+
function a(d) {
|
|
415
|
+
var R = h(d, "string");
|
|
421
416
|
return typeof R == "symbol" ? R : String(R);
|
|
422
417
|
}
|
|
423
|
-
function h(
|
|
424
|
-
if (typeof
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
if (typeof y != "object")
|
|
430
|
-
return y;
|
|
418
|
+
function h(d, R) {
|
|
419
|
+
if (typeof d != "object" || d === null) return d;
|
|
420
|
+
var y = d[Symbol.toPrimitive];
|
|
421
|
+
if (y !== void 0) {
|
|
422
|
+
var w = y.call(d, R || "default");
|
|
423
|
+
if (typeof w != "object") return w;
|
|
431
424
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
432
425
|
}
|
|
433
|
-
return (R === "string" ? String : Number)(
|
|
426
|
+
return (R === "string" ? String : Number)(d);
|
|
434
427
|
}
|
|
435
428
|
var r = vA(), D = r.Buffer, G = eI, N = G.inspect, b = N && N.custom || "inspect";
|
|
436
|
-
function q(
|
|
437
|
-
D.prototype.copy.call(
|
|
429
|
+
function q(d, R, y) {
|
|
430
|
+
D.prototype.copy.call(d, R, y);
|
|
438
431
|
}
|
|
439
432
|
return pA = /* @__PURE__ */ function() {
|
|
440
|
-
function
|
|
441
|
-
Q(this,
|
|
433
|
+
function d() {
|
|
434
|
+
Q(this, d), this.head = null, this.tail = null, this.length = 0;
|
|
442
435
|
}
|
|
443
|
-
return o(
|
|
436
|
+
return o(d, [{
|
|
444
437
|
key: "push",
|
|
445
|
-
value: function(
|
|
446
|
-
var
|
|
447
|
-
data:
|
|
438
|
+
value: function(y) {
|
|
439
|
+
var w = {
|
|
440
|
+
data: y,
|
|
448
441
|
next: null
|
|
449
442
|
};
|
|
450
|
-
this.length > 0 ? this.tail.next =
|
|
443
|
+
this.length > 0 ? this.tail.next = w : this.head = w, this.tail = w, ++this.length;
|
|
451
444
|
}
|
|
452
445
|
}, {
|
|
453
446
|
key: "unshift",
|
|
454
|
-
value: function(
|
|
455
|
-
var
|
|
456
|
-
data:
|
|
447
|
+
value: function(y) {
|
|
448
|
+
var w = {
|
|
449
|
+
data: y,
|
|
457
450
|
next: this.head
|
|
458
451
|
};
|
|
459
|
-
this.length === 0 && (this.tail =
|
|
452
|
+
this.length === 0 && (this.tail = w), this.head = w, ++this.length;
|
|
460
453
|
}
|
|
461
454
|
}, {
|
|
462
455
|
key: "shift",
|
|
463
456
|
value: function() {
|
|
464
457
|
if (this.length !== 0) {
|
|
465
|
-
var
|
|
466
|
-
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length,
|
|
458
|
+
var y = this.head.data;
|
|
459
|
+
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, y;
|
|
467
460
|
}
|
|
468
461
|
}
|
|
469
462
|
}, {
|
|
@@ -473,28 +466,25 @@ function dI() {
|
|
|
473
466
|
}
|
|
474
467
|
}, {
|
|
475
468
|
key: "join",
|
|
476
|
-
value: function(
|
|
477
|
-
if (this.length === 0)
|
|
478
|
-
|
|
479
|
-
for (var y = this.head, H = "" + y.data; y = y.next; )
|
|
480
|
-
H += c + y.data;
|
|
469
|
+
value: function(y) {
|
|
470
|
+
if (this.length === 0) return "";
|
|
471
|
+
for (var w = this.head, H = "" + w.data; w = w.next; ) H += y + w.data;
|
|
481
472
|
return H;
|
|
482
473
|
}
|
|
483
474
|
}, {
|
|
484
475
|
key: "concat",
|
|
485
|
-
value: function(
|
|
486
|
-
if (this.length === 0)
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
return y;
|
|
476
|
+
value: function(y) {
|
|
477
|
+
if (this.length === 0) return D.alloc(0);
|
|
478
|
+
for (var w = D.allocUnsafe(y >>> 0), H = this.head, F = 0; H; )
|
|
479
|
+
q(H.data, w, F), F += H.data.length, H = H.next;
|
|
480
|
+
return w;
|
|
491
481
|
}
|
|
492
482
|
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
493
483
|
}, {
|
|
494
484
|
key: "consume",
|
|
495
|
-
value: function(
|
|
485
|
+
value: function(y, w) {
|
|
496
486
|
var H;
|
|
497
|
-
return
|
|
487
|
+
return y < this.head.data.length ? (H = this.head.data.slice(0, y), this.head.data = this.head.data.slice(y)) : y === this.head.data.length ? H = this.shift() : H = w ? this._getString(y) : this._getBuffer(y), H;
|
|
498
488
|
}
|
|
499
489
|
}, {
|
|
500
490
|
key: "first",
|
|
@@ -504,12 +494,12 @@ function dI() {
|
|
|
504
494
|
// Consumes a specified amount of characters from the buffered data.
|
|
505
495
|
}, {
|
|
506
496
|
key: "_getString",
|
|
507
|
-
value: function(
|
|
508
|
-
var
|
|
509
|
-
for (
|
|
510
|
-
var l =
|
|
511
|
-
if (k === l.length ? F += l : F += l.slice(0,
|
|
512
|
-
k === l.length ? (++H,
|
|
497
|
+
value: function(y) {
|
|
498
|
+
var w = this.head, H = 1, F = w.data;
|
|
499
|
+
for (y -= F.length; w = w.next; ) {
|
|
500
|
+
var l = w.data, k = y > l.length ? l.length : y;
|
|
501
|
+
if (k === l.length ? F += l : F += l.slice(0, y), y -= k, y === 0) {
|
|
502
|
+
k === l.length ? (++H, w.next ? this.head = w.next : this.head = this.tail = null) : (this.head = w, w.data = l.slice(k));
|
|
513
503
|
break;
|
|
514
504
|
}
|
|
515
505
|
++H;
|
|
@@ -519,30 +509,30 @@ function dI() {
|
|
|
519
509
|
// Consumes a specified amount of bytes from the buffered data.
|
|
520
510
|
}, {
|
|
521
511
|
key: "_getBuffer",
|
|
522
|
-
value: function(
|
|
523
|
-
var
|
|
524
|
-
for (H.data.copy(
|
|
525
|
-
var l = H.data, k =
|
|
526
|
-
if (l.copy(
|
|
512
|
+
value: function(y) {
|
|
513
|
+
var w = D.allocUnsafe(y), H = this.head, F = 1;
|
|
514
|
+
for (H.data.copy(w), y -= H.data.length; H = H.next; ) {
|
|
515
|
+
var l = H.data, k = y > l.length ? l.length : y;
|
|
516
|
+
if (l.copy(w, w.length - y, 0, k), y -= k, y === 0) {
|
|
527
517
|
k === l.length ? (++F, H.next ? this.head = H.next : this.head = this.tail = null) : (this.head = H, H.data = l.slice(k));
|
|
528
518
|
break;
|
|
529
519
|
}
|
|
530
520
|
++F;
|
|
531
521
|
}
|
|
532
|
-
return this.length -= F,
|
|
522
|
+
return this.length -= F, w;
|
|
533
523
|
}
|
|
534
524
|
// Make sure the linked list only shows the minimal necessary information.
|
|
535
525
|
}, {
|
|
536
526
|
key: b,
|
|
537
|
-
value: function(
|
|
538
|
-
return N(this, I(I({},
|
|
527
|
+
value: function(y, w) {
|
|
528
|
+
return N(this, I(I({}, w), {}, {
|
|
539
529
|
// Only inspect one level.
|
|
540
530
|
depth: 0,
|
|
541
531
|
// It should not recurse.
|
|
542
532
|
customInspect: !1
|
|
543
533
|
}));
|
|
544
534
|
}
|
|
545
|
-
}]),
|
|
535
|
+
}]), d;
|
|
546
536
|
}(), pA;
|
|
547
537
|
}
|
|
548
538
|
function RI(E, I) {
|
|
@@ -600,7 +590,7 @@ function VA(E, I) {
|
|
|
600
590
|
return "of ".concat(I, " ").concat(String(E));
|
|
601
591
|
}
|
|
602
592
|
function NI(E, I, A) {
|
|
603
|
-
return E.substr(
|
|
593
|
+
return E.substr(0, I.length) === I;
|
|
604
594
|
}
|
|
605
595
|
function kI(E, I, A) {
|
|
606
596
|
return (A === void 0 || A > E.length) && (A = E.length), E.substring(A - I.length, A) === I;
|
|
@@ -674,8 +664,7 @@ function _I(E, I) {
|
|
|
674
664
|
}
|
|
675
665
|
function HA(E) {
|
|
676
666
|
try {
|
|
677
|
-
if (!fA.localStorage)
|
|
678
|
-
return !1;
|
|
667
|
+
if (!fA.localStorage) return !1;
|
|
679
668
|
} catch {
|
|
680
669
|
return !1;
|
|
681
670
|
}
|
|
@@ -684,8 +673,7 @@ function HA(E) {
|
|
|
684
673
|
}
|
|
685
674
|
var YA, XA;
|
|
686
675
|
function oI() {
|
|
687
|
-
if (XA)
|
|
688
|
-
return YA;
|
|
676
|
+
if (XA) return YA;
|
|
689
677
|
XA = 1, YA = J;
|
|
690
678
|
function E(t) {
|
|
691
679
|
var e = this;
|
|
@@ -705,7 +693,7 @@ function oI() {
|
|
|
705
693
|
function h(t) {
|
|
706
694
|
return C.isBuffer(t) || t instanceof o;
|
|
707
695
|
}
|
|
708
|
-
var r = tI, D = aI, G = D.getHighWaterMark, N = oA.codes, b = N.ERR_INVALID_ARG_TYPE, q = N.ERR_METHOD_NOT_IMPLEMENTED,
|
|
696
|
+
var r = tI, D = aI, G = D.getHighWaterMark, N = oA.codes, b = N.ERR_INVALID_ARG_TYPE, q = N.ERR_METHOD_NOT_IMPLEMENTED, d = N.ERR_MULTIPLE_CALLBACK, R = N.ERR_STREAM_CANNOT_PIPE, y = N.ERR_STREAM_DESTROYED, w = N.ERR_STREAM_NULL_VALUES, H = N.ERR_STREAM_WRITE_AFTER_END, F = N.ERR_UNKNOWN_ENCODING, l = r.errorOrDestroy;
|
|
709
697
|
dA(J, Q);
|
|
710
698
|
function k() {
|
|
711
699
|
}
|
|
@@ -741,8 +729,7 @@ function oI() {
|
|
|
741
729
|
function J(t) {
|
|
742
730
|
I = I || hA();
|
|
743
731
|
var e = this instanceof I;
|
|
744
|
-
if (!e && !W.call(J, this))
|
|
745
|
-
return new J(t);
|
|
732
|
+
if (!e && !W.call(J, this)) return new J(t);
|
|
746
733
|
this._writableState = new Y(t, this, e), this.writable = !0, t && (typeof t.write == "function" && (this._write = t.write), typeof t.writev == "function" && (this._writev = t.writev), typeof t.destroy == "function" && (this._destroy = t.destroy), typeof t.final == "function" && (this._final = t.final)), Q.call(this);
|
|
747
734
|
}
|
|
748
735
|
J.prototype.pipe = function() {
|
|
@@ -754,7 +741,7 @@ function oI() {
|
|
|
754
741
|
}
|
|
755
742
|
function V(t, e, f, M) {
|
|
756
743
|
var _;
|
|
757
|
-
return f === null ? _ = new
|
|
744
|
+
return f === null ? _ = new w() : typeof f != "string" && !e.objectMode && (_ = new b("chunk", ["string", "Buffer"], f)), _ ? (l(t, _), process.nextTick(M, _), !1) : !0;
|
|
758
745
|
}
|
|
759
746
|
J.prototype.write = function(t, e, f) {
|
|
760
747
|
var M = this._writableState, _ = !1, g = !M.objectMode && h(t);
|
|
@@ -765,8 +752,7 @@ function oI() {
|
|
|
765
752
|
var t = this._writableState;
|
|
766
753
|
t.corked && (t.corked--, !t.writing && !t.corked && !t.bufferProcessing && t.bufferedRequest && gA(this, t));
|
|
767
754
|
}, J.prototype.setDefaultEncoding = function(e) {
|
|
768
|
-
if (typeof e == "string" && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1))
|
|
769
|
-
throw new F(e);
|
|
755
|
+
if (typeof e == "string" && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1)) throw new F(e);
|
|
770
756
|
return this._writableState.defaultEncoding = e, this;
|
|
771
757
|
}, Object.defineProperty(J.prototype, "writableBuffer", {
|
|
772
758
|
// making it explicit this property is not enumerable
|
|
@@ -796,8 +782,8 @@ function oI() {
|
|
|
796
782
|
}
|
|
797
783
|
var n = e.objectMode ? 1 : M.length;
|
|
798
784
|
e.length += n;
|
|
799
|
-
var
|
|
800
|
-
if (
|
|
785
|
+
var c = e.length < e.highWaterMark;
|
|
786
|
+
if (c || (e.needDrain = !0), e.writing || e.corked) {
|
|
801
787
|
var O = e.lastBufferedRequest;
|
|
802
788
|
e.lastBufferedRequest = {
|
|
803
789
|
chunk: M,
|
|
@@ -808,10 +794,10 @@ function oI() {
|
|
|
808
794
|
}, O ? O.next = e.lastBufferedRequest : e.bufferedRequest = e.lastBufferedRequest, e.bufferedRequestCount += 1;
|
|
809
795
|
} else
|
|
810
796
|
CA(t, e, !1, n, M, _, g);
|
|
811
|
-
return
|
|
797
|
+
return c;
|
|
812
798
|
}
|
|
813
799
|
function CA(t, e, f, M, _, g, B) {
|
|
814
|
-
e.writelen = M, e.writecb = B, e.writing = !0, e.sync = !0, e.destroyed ? e.onwrite(new
|
|
800
|
+
e.writelen = M, e.writecb = B, e.writing = !0, e.sync = !0, e.destroyed ? e.onwrite(new y("write")) : f ? t._writev(_, e.onwrite) : t._write(_, g, e.onwrite), e.sync = !1;
|
|
815
801
|
}
|
|
816
802
|
function X(t, e, f, M, _) {
|
|
817
803
|
--e.pendingcb, f ? (process.nextTick(_, M), process.nextTick(BA, t, e), t._writableState.errorEmitted = !0, l(t, M)) : (_(M), t._writableState.errorEmitted = !0, l(t, M), BA(t, e));
|
|
@@ -821,10 +807,8 @@ function oI() {
|
|
|
821
807
|
}
|
|
822
808
|
function cA(t, e) {
|
|
823
809
|
var f = t._writableState, M = f.sync, _ = f.writecb;
|
|
824
|
-
if (typeof _ != "function")
|
|
825
|
-
|
|
826
|
-
if (z(f), e)
|
|
827
|
-
X(t, f, M, e, _);
|
|
810
|
+
if (typeof _ != "function") throw new d();
|
|
811
|
+
if (z(f), e) X(t, f, M, e, _);
|
|
828
812
|
else {
|
|
829
813
|
var g = aA(f) || t.destroyed;
|
|
830
814
|
!g && !f.corked && !f.bufferProcessing && f.bufferedRequest && gA(t, f), M ? process.nextTick(AA, t, f, g, _) : AA(t, f, g, _);
|
|
@@ -847,8 +831,8 @@ function oI() {
|
|
|
847
831
|
_.allBuffers = n, CA(t, e, !0, e.length, _, "", g.finish), e.pendingcb++, e.lastBufferedRequest = null, g.next ? (e.corkedRequestsFree = g.next, g.next = null) : e.corkedRequestsFree = new E(e), e.bufferedRequestCount = 0;
|
|
848
832
|
} else {
|
|
849
833
|
for (; f; ) {
|
|
850
|
-
var
|
|
851
|
-
if (CA(t, e, !1, v,
|
|
834
|
+
var c = f.chunk, O = f.encoding, K = f.callback, v = e.objectMode ? 1 : c.length;
|
|
835
|
+
if (CA(t, e, !1, v, c, O, K), f = f.next, e.bufferedRequestCount--, e.writing)
|
|
852
836
|
break;
|
|
853
837
|
}
|
|
854
838
|
f === null && (e.lastBufferedRequest = null);
|
|
@@ -916,13 +900,11 @@ function oI() {
|
|
|
916
900
|
}
|
|
917
901
|
var KA, zA;
|
|
918
902
|
function hA() {
|
|
919
|
-
if (zA)
|
|
920
|
-
return KA;
|
|
903
|
+
if (zA) return KA;
|
|
921
904
|
zA = 1;
|
|
922
905
|
var E = Object.keys || function(D) {
|
|
923
906
|
var G = [];
|
|
924
|
-
for (var N in D)
|
|
925
|
-
G.push(N);
|
|
907
|
+
for (var N in D) G.push(N);
|
|
926
908
|
return G;
|
|
927
909
|
};
|
|
928
910
|
KA = a;
|
|
@@ -933,8 +915,7 @@ function hA() {
|
|
|
933
915
|
a.prototype[o] || (a.prototype[o] = A.prototype[o]);
|
|
934
916
|
}
|
|
935
917
|
function a(D) {
|
|
936
|
-
if (!(this instanceof a))
|
|
937
|
-
return new a(D);
|
|
918
|
+
if (!(this instanceof a)) return new a(D);
|
|
938
919
|
I.call(this, D), A.call(this, D), this.allowHalfOpen = !0, D && (D.readable === !1 && (this.readable = !1), D.writable === !1 && (this.writable = !1), D.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", h)));
|
|
939
920
|
}
|
|
940
921
|
Object.defineProperty(a.prototype, "writableHighWaterMark", {
|
|
@@ -999,8 +980,7 @@ function qI(E) {
|
|
|
999
980
|
return E.setHeader && typeof E.abort == "function";
|
|
1000
981
|
}
|
|
1001
982
|
function nI(E, I, A) {
|
|
1002
|
-
if (typeof I == "function")
|
|
1003
|
-
return nI(E, null, I);
|
|
983
|
+
if (typeof I == "function") return nI(E, null, I);
|
|
1004
984
|
I || (I = {}), A = JI(A || LI);
|
|
1005
985
|
var Q = I.readable || I.readable !== !1 && E.readable, C = I.writable || I.writable !== !1 && E.writable, o = function() {
|
|
1006
986
|
E.writable || h();
|
|
@@ -1008,14 +988,14 @@ function nI(E, I, A) {
|
|
|
1008
988
|
C = !1, a = !0, Q || A.call(E);
|
|
1009
989
|
}, r = E._readableState && E._readableState.endEmitted, D = function() {
|
|
1010
990
|
Q = !1, r = !0, C || A.call(E);
|
|
1011
|
-
}, G = function(
|
|
1012
|
-
A.call(E,
|
|
991
|
+
}, G = function(d) {
|
|
992
|
+
A.call(E, d);
|
|
1013
993
|
}, N = function() {
|
|
1014
|
-
var
|
|
994
|
+
var d;
|
|
1015
995
|
if (Q && !r)
|
|
1016
|
-
return (!E._readableState || !E._readableState.ended) && (
|
|
996
|
+
return (!E._readableState || !E._readableState.ended) && (d = new $A()), A.call(E, d);
|
|
1017
997
|
if (C && !a)
|
|
1018
|
-
return (!E._writableState || !E._writableState.ended) && (
|
|
998
|
+
return (!E._writableState || !E._writableState.ended) && (d = new $A()), A.call(E, d);
|
|
1019
999
|
}, b = function() {
|
|
1020
1000
|
E.req.on("finish", h);
|
|
1021
1001
|
};
|
|
@@ -1025,8 +1005,7 @@ function nI(E, I, A) {
|
|
|
1025
1005
|
}
|
|
1026
1006
|
var WA = nI, _A, AI;
|
|
1027
1007
|
function bI() {
|
|
1028
|
-
if (AI)
|
|
1029
|
-
return _A;
|
|
1008
|
+
if (AI) return _A;
|
|
1030
1009
|
AI = 1;
|
|
1031
1010
|
var E;
|
|
1032
1011
|
function I(F, l, k) {
|
|
@@ -1037,13 +1016,11 @@ function bI() {
|
|
|
1037
1016
|
return typeof l == "symbol" ? l : String(l);
|
|
1038
1017
|
}
|
|
1039
1018
|
function Q(F, l) {
|
|
1040
|
-
if (typeof F != "object" || F === null)
|
|
1041
|
-
return F;
|
|
1019
|
+
if (typeof F != "object" || F === null) return F;
|
|
1042
1020
|
var k = F[Symbol.toPrimitive];
|
|
1043
1021
|
if (k !== void 0) {
|
|
1044
1022
|
var Y = k.call(F, l || "default");
|
|
1045
|
-
if (typeof Y != "object")
|
|
1046
|
-
return Y;
|
|
1023
|
+
if (typeof Y != "object") return Y;
|
|
1047
1024
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1048
1025
|
}
|
|
1049
1026
|
return (l === "string" ? String : Number)(F);
|
|
@@ -1062,7 +1039,7 @@ function bI() {
|
|
|
1062
1039
|
k !== null && (F[D] = null, F[o] = null, F[a] = null, l(b(k, !1)));
|
|
1063
1040
|
}
|
|
1064
1041
|
}
|
|
1065
|
-
function
|
|
1042
|
+
function d(F) {
|
|
1066
1043
|
process.nextTick(q, F);
|
|
1067
1044
|
}
|
|
1068
1045
|
function R(F, l) {
|
|
@@ -1076,8 +1053,8 @@ function bI() {
|
|
|
1076
1053
|
}, Y);
|
|
1077
1054
|
};
|
|
1078
1055
|
}
|
|
1079
|
-
var
|
|
1080
|
-
}),
|
|
1056
|
+
var y = Object.getPrototypeOf(function() {
|
|
1057
|
+
}), w = Object.setPrototypeOf((E = {
|
|
1081
1058
|
get stream() {
|
|
1082
1059
|
return this[N];
|
|
1083
1060
|
},
|
|
@@ -1117,8 +1094,8 @@ function bI() {
|
|
|
1117
1094
|
k(b(void 0, !0));
|
|
1118
1095
|
});
|
|
1119
1096
|
});
|
|
1120
|
-
}), E),
|
|
1121
|
-
var k, Y = Object.create(
|
|
1097
|
+
}), E), y), H = function(l) {
|
|
1098
|
+
var k, Y = Object.create(w, (k = {}, I(k, N, {
|
|
1122
1099
|
value: l,
|
|
1123
1100
|
writable: !0
|
|
1124
1101
|
}), I(k, o, {
|
|
@@ -1148,7 +1125,7 @@ function bI() {
|
|
|
1148
1125
|
}
|
|
1149
1126
|
var p = Y[o];
|
|
1150
1127
|
p !== null && (Y[D] = null, Y[o] = null, Y[a] = null, p(b(void 0, !0))), Y[r] = !0;
|
|
1151
|
-
}), l.on("readable",
|
|
1128
|
+
}), l.on("readable", d.bind(null, Y)), Y;
|
|
1152
1129
|
};
|
|
1153
1130
|
return _A = H, _A;
|
|
1154
1131
|
}
|
|
@@ -1160,8 +1137,7 @@ function mI() {
|
|
|
1160
1137
|
}
|
|
1161
1138
|
var LA, gI;
|
|
1162
1139
|
function sI() {
|
|
1163
|
-
if (gI)
|
|
1164
|
-
return LA;
|
|
1140
|
+
if (gI) return LA;
|
|
1165
1141
|
gI = 1, LA = p;
|
|
1166
1142
|
var E;
|
|
1167
1143
|
p.ReadableState = J, CI.EventEmitter;
|
|
@@ -1178,20 +1154,18 @@ function sI() {
|
|
|
1178
1154
|
var h = eI, r;
|
|
1179
1155
|
h && h.debuglog ? r = h.debuglog("stream") : r = function() {
|
|
1180
1156
|
};
|
|
1181
|
-
var D = dI(), G = tI, N = aI, b = N.getHighWaterMark, q = oA.codes,
|
|
1157
|
+
var D = dI(), G = tI, N = aI, b = N.getHighWaterMark, q = oA.codes, d = q.ERR_INVALID_ARG_TYPE, R = q.ERR_STREAM_PUSH_AFTER_EOF, y = q.ERR_METHOD_NOT_IMPLEMENTED, w = q.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, H, F, l;
|
|
1182
1158
|
dA(p, A);
|
|
1183
1159
|
var k = G.errorOrDestroy, Y = ["error", "close", "destroy", "pause", "resume"];
|
|
1184
1160
|
function W(g, B, n) {
|
|
1185
|
-
if (typeof g.prependListener == "function")
|
|
1186
|
-
return g.prependListener(B, n);
|
|
1161
|
+
if (typeof g.prependListener == "function") return g.prependListener(B, n);
|
|
1187
1162
|
!g._events || !g._events[B] ? g.on(B, n) : Array.isArray(g._events[B]) ? g._events[B].unshift(n) : g._events[B] = [n, g._events[B]];
|
|
1188
1163
|
}
|
|
1189
1164
|
function J(g, B, n) {
|
|
1190
1165
|
E = E || hA(), g = g || {}, typeof n != "boolean" && (n = B instanceof E), this.objectMode = !!g.objectMode, n && (this.objectMode = this.objectMode || !!g.readableObjectMode), this.highWaterMark = b(this, g, "readableHighWaterMark", n), this.buffer = new D(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = g.emitClose !== !1, this.autoDestroy = !!g.autoDestroy, this.destroyed = !1, this.defaultEncoding = g.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, g.encoding && (H || (H = xA.StringDecoder), this.decoder = new H(g.encoding), this.encoding = g.encoding);
|
|
1191
1166
|
}
|
|
1192
1167
|
function p(g) {
|
|
1193
|
-
if (E = E || hA(), !(this instanceof p))
|
|
1194
|
-
return new p(g);
|
|
1168
|
+
if (E = E || hA(), !(this instanceof p)) return new p(g);
|
|
1195
1169
|
var B = this instanceof E;
|
|
1196
1170
|
this._readableState = new J(g, this, B), this.readable = !0, g && (typeof g.read == "function" && (this._read = g.read), typeof g.destroy == "function" && (this._destroy = g.destroy)), A.call(this);
|
|
1197
1171
|
}
|
|
@@ -1209,12 +1183,12 @@ function sI() {
|
|
|
1209
1183
|
}), p.prototype.destroy = G.destroy, p.prototype._undestroy = G.undestroy, p.prototype._destroy = function(g, B) {
|
|
1210
1184
|
B(g);
|
|
1211
1185
|
}, p.prototype.push = function(g, B) {
|
|
1212
|
-
var n = this._readableState,
|
|
1213
|
-
return n.objectMode ?
|
|
1186
|
+
var n = this._readableState, c;
|
|
1187
|
+
return n.objectMode ? c = !0 : typeof g == "string" && (B = B || n.defaultEncoding, B !== n.encoding && (g = Q.from(g, B), B = ""), c = !0), V(this, g, B, !1, c);
|
|
1214
1188
|
}, p.prototype.unshift = function(g) {
|
|
1215
1189
|
return V(this, g, null, !0, !1);
|
|
1216
1190
|
};
|
|
1217
|
-
function V(g, B, n,
|
|
1191
|
+
function V(g, B, n, c, O) {
|
|
1218
1192
|
r("readableAddChunk", B);
|
|
1219
1193
|
var K = g._readableState;
|
|
1220
1194
|
if (B === null)
|
|
@@ -1224,8 +1198,8 @@ function sI() {
|
|
|
1224
1198
|
if (O || (v = DA(K, B)), v)
|
|
1225
1199
|
k(g, v);
|
|
1226
1200
|
else if (K.objectMode || B && B.length > 0)
|
|
1227
|
-
if (typeof B != "string" && !K.objectMode && Object.getPrototypeOf(B) !== Q.prototype && (B = o(B)),
|
|
1228
|
-
K.endEmitted ? k(g, new
|
|
1201
|
+
if (typeof B != "string" && !K.objectMode && Object.getPrototypeOf(B) !== Q.prototype && (B = o(B)), c)
|
|
1202
|
+
K.endEmitted ? k(g, new w()) : rA(g, K, B, !0);
|
|
1229
1203
|
else if (K.ended)
|
|
1230
1204
|
k(g, new R());
|
|
1231
1205
|
else {
|
|
@@ -1233,17 +1207,16 @@ function sI() {
|
|
|
1233
1207
|
return !1;
|
|
1234
1208
|
K.reading = !1, K.decoder && !n ? (B = K.decoder.write(B), K.objectMode || B.length !== 0 ? rA(g, K, B, !1) : gA(g, K)) : rA(g, K, B, !1);
|
|
1235
1209
|
}
|
|
1236
|
-
else
|
|
1237
|
-
w || (K.reading = !1, gA(g, K));
|
|
1210
|
+
else c || (K.reading = !1, gA(g, K));
|
|
1238
1211
|
}
|
|
1239
1212
|
return !K.ended && (K.length < K.highWaterMark || K.length === 0);
|
|
1240
1213
|
}
|
|
1241
|
-
function rA(g, B, n,
|
|
1242
|
-
B.flowing && B.length === 0 && !B.sync ? (B.awaitDrain = 0, g.emit("data", n)) : (B.length += B.objectMode ? 1 : n.length,
|
|
1214
|
+
function rA(g, B, n, c) {
|
|
1215
|
+
B.flowing && B.length === 0 && !B.sync ? (B.awaitDrain = 0, g.emit("data", n)) : (B.length += B.objectMode ? 1 : n.length, c ? B.buffer.unshift(n) : B.buffer.push(n), B.needReadable && AA(g)), gA(g, B);
|
|
1243
1216
|
}
|
|
1244
1217
|
function DA(g, B) {
|
|
1245
1218
|
var n;
|
|
1246
|
-
return !a(B) && typeof B != "string" && B !== void 0 && !g.objectMode && (n = new
|
|
1219
|
+
return !a(B) && typeof B != "string" && B !== void 0 && !g.objectMode && (n = new d("chunk", ["string", "Buffer", "Uint8Array"], B)), n;
|
|
1247
1220
|
}
|
|
1248
1221
|
p.prototype.isPaused = function() {
|
|
1249
1222
|
return this._readableState.flowing === !1;
|
|
@@ -1251,9 +1224,9 @@ function sI() {
|
|
|
1251
1224
|
H || (H = xA.StringDecoder);
|
|
1252
1225
|
var B = new H(g);
|
|
1253
1226
|
this._readableState.decoder = B, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
1254
|
-
for (var n = this._readableState.buffer.head,
|
|
1255
|
-
|
|
1256
|
-
return this._readableState.buffer.clear(),
|
|
1227
|
+
for (var n = this._readableState.buffer.head, c = ""; n !== null; )
|
|
1228
|
+
c += B.write(n.data), n = n.next;
|
|
1229
|
+
return this._readableState.buffer.clear(), c !== "" && this._readableState.buffer.push(c), this._readableState.length = c.length, this;
|
|
1257
1230
|
};
|
|
1258
1231
|
var CA = 1073741824;
|
|
1259
1232
|
function X(g) {
|
|
@@ -1269,8 +1242,8 @@ function sI() {
|
|
|
1269
1242
|
return r("read: emitReadable", B.length, B.ended), B.length === 0 && B.ended ? f(this) : AA(this), null;
|
|
1270
1243
|
if (g = z(g, B), g === 0 && B.ended)
|
|
1271
1244
|
return B.length === 0 && f(this), null;
|
|
1272
|
-
var
|
|
1273
|
-
r("need readable",
|
|
1245
|
+
var c = B.needReadable;
|
|
1246
|
+
r("need readable", c), (B.length === 0 || B.length - g < B.highWaterMark) && (c = !0, r("length less than watermark", c)), B.ended || B.reading ? (c = !1, r("reading or ended", c)) : c && (r("do read"), B.reading = !0, B.sync = !0, B.length === 0 && (B.needReadable = !0), this._read(B.highWaterMark), B.sync = !1, B.reading || (g = z(n, B)));
|
|
1274
1247
|
var O;
|
|
1275
1248
|
return g > 0 ? O = e(g, B) : O = null, O === null ? (B.needReadable = B.length <= B.highWaterMark, g = 0) : (B.length -= g, B.awaitDrain = 0), B.length === 0 && (B.ended || (B.needReadable = !0), n !== g && B.ended && f(this)), O !== null && this.emit("data", O), O;
|
|
1276
1249
|
};
|
|
@@ -1303,23 +1276,23 @@ function sI() {
|
|
|
1303
1276
|
B.readingMore = !1;
|
|
1304
1277
|
}
|
|
1305
1278
|
p.prototype._read = function(g) {
|
|
1306
|
-
k(this, new
|
|
1279
|
+
k(this, new y("_read()"));
|
|
1307
1280
|
}, p.prototype.pipe = function(g, B) {
|
|
1308
|
-
var n = this,
|
|
1309
|
-
switch (
|
|
1281
|
+
var n = this, c = this._readableState;
|
|
1282
|
+
switch (c.pipesCount) {
|
|
1310
1283
|
case 0:
|
|
1311
|
-
|
|
1284
|
+
c.pipes = g;
|
|
1312
1285
|
break;
|
|
1313
1286
|
case 1:
|
|
1314
|
-
|
|
1287
|
+
c.pipes = [c.pipes, g];
|
|
1315
1288
|
break;
|
|
1316
1289
|
default:
|
|
1317
|
-
|
|
1290
|
+
c.pipes.push(g);
|
|
1318
1291
|
break;
|
|
1319
1292
|
}
|
|
1320
|
-
|
|
1293
|
+
c.pipesCount += 1, r("pipe count=%d opts=%j", c.pipesCount, B);
|
|
1321
1294
|
var O = (!B || B.end !== !1) && g !== process.stdout && g !== process.stderr, K = O ? eA : tA;
|
|
1322
|
-
|
|
1295
|
+
c.endEmitted ? process.nextTick(K) : n.once("end", K), g.on("unpipe", v);
|
|
1323
1296
|
function v(i, s) {
|
|
1324
1297
|
r("onunpipe"), i === n && s && s.hasUnpiped === !1 && (s.hasUnpiped = !0, UA());
|
|
1325
1298
|
}
|
|
@@ -1330,13 +1303,13 @@ function sI() {
|
|
|
1330
1303
|
g.on("drain", sA);
|
|
1331
1304
|
var RA = !1;
|
|
1332
1305
|
function UA() {
|
|
1333
|
-
r("cleanup"), g.removeListener("close", uA), g.removeListener("finish", iA), g.removeListener("drain", sA), g.removeListener("error", lA), g.removeListener("unpipe", v), n.removeListener("end", eA), n.removeListener("end", tA), n.removeListener("data", U), RA = !0,
|
|
1306
|
+
r("cleanup"), g.removeListener("close", uA), g.removeListener("finish", iA), g.removeListener("drain", sA), g.removeListener("error", lA), g.removeListener("unpipe", v), n.removeListener("end", eA), n.removeListener("end", tA), n.removeListener("data", U), RA = !0, c.awaitDrain && (!g._writableState || g._writableState.needDrain) && sA();
|
|
1334
1307
|
}
|
|
1335
1308
|
n.on("data", U);
|
|
1336
1309
|
function U(i) {
|
|
1337
1310
|
r("ondata");
|
|
1338
1311
|
var s = g.write(i);
|
|
1339
|
-
r("dest.write", s), s === !1 && ((
|
|
1312
|
+
r("dest.write", s), s === !1 && ((c.pipesCount === 1 && c.pipes === g || c.pipesCount > 1 && _(c.pipes, g) !== -1) && !RA && (r("false write response, pause", c.awaitDrain), c.awaitDrain++), n.pause());
|
|
1340
1313
|
}
|
|
1341
1314
|
function lA(i) {
|
|
1342
1315
|
r("onerror", i), tA(), g.removeListener("error", lA), I(g, "error") === 0 && k(g, i);
|
|
@@ -1353,7 +1326,7 @@ function sI() {
|
|
|
1353
1326
|
function tA() {
|
|
1354
1327
|
r("unpipe"), n.unpipe(g);
|
|
1355
1328
|
}
|
|
1356
|
-
return g.emit("pipe", n),
|
|
1329
|
+
return g.emit("pipe", n), c.flowing || (r("pipe resume"), n.resume()), g;
|
|
1357
1330
|
};
|
|
1358
1331
|
function $(g) {
|
|
1359
1332
|
return function() {
|
|
@@ -1365,24 +1338,22 @@ function sI() {
|
|
|
1365
1338
|
var B = this._readableState, n = {
|
|
1366
1339
|
hasUnpiped: !1
|
|
1367
1340
|
};
|
|
1368
|
-
if (B.pipesCount === 0)
|
|
1369
|
-
return this;
|
|
1341
|
+
if (B.pipesCount === 0) return this;
|
|
1370
1342
|
if (B.pipesCount === 1)
|
|
1371
1343
|
return g && g !== B.pipes ? this : (g || (g = B.pipes), B.pipes = null, B.pipesCount = 0, B.flowing = !1, g && g.emit("unpipe", this, n), this);
|
|
1372
1344
|
if (!g) {
|
|
1373
|
-
var
|
|
1345
|
+
var c = B.pipes, O = B.pipesCount;
|
|
1374
1346
|
B.pipes = null, B.pipesCount = 0, B.flowing = !1;
|
|
1375
|
-
for (var K = 0; K < O; K++)
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
});
|
|
1347
|
+
for (var K = 0; K < O; K++) c[K].emit("unpipe", this, {
|
|
1348
|
+
hasUnpiped: !1
|
|
1349
|
+
});
|
|
1379
1350
|
return this;
|
|
1380
1351
|
}
|
|
1381
1352
|
var v = _(B.pipes, g);
|
|
1382
1353
|
return v === -1 ? this : (B.pipes.splice(v, 1), B.pipesCount -= 1, B.pipesCount === 1 && (B.pipes = B.pipes[0]), g.emit("unpipe", this, n), this);
|
|
1383
1354
|
}, p.prototype.on = function(g, B) {
|
|
1384
|
-
var n = A.prototype.on.call(this, g, B),
|
|
1385
|
-
return g === "data" ? (
|
|
1355
|
+
var n = A.prototype.on.call(this, g, B), c = this._readableState;
|
|
1356
|
+
return g === "data" ? (c.readableListening = this.listenerCount("readable") > 0, c.flowing !== !1 && this.resume()) : g === "readable" && !c.endEmitted && !c.readableListening && (c.readableListening = c.needReadable = !0, c.flowing = !1, c.emittedReadable = !1, r("on readable", c.length, c.reading), c.length ? AA(this) : c.reading || process.nextTick(BA, this)), n;
|
|
1386
1357
|
}, p.prototype.addListener = p.prototype.on, p.prototype.removeListener = function(g, B) {
|
|
1387
1358
|
var n = A.prototype.removeListener.call(this, g, B);
|
|
1388
1359
|
return g === "readable" && process.nextTick(nA, this), n;
|
|
@@ -1412,11 +1383,10 @@ function sI() {
|
|
|
1412
1383
|
};
|
|
1413
1384
|
function t(g) {
|
|
1414
1385
|
var B = g._readableState;
|
|
1415
|
-
for (r("flow", B.flowing); B.flowing && g.read() !== null; )
|
|
1416
|
-
;
|
|
1386
|
+
for (r("flow", B.flowing); B.flowing && g.read() !== null; ) ;
|
|
1417
1387
|
}
|
|
1418
1388
|
p.prototype.wrap = function(g) {
|
|
1419
|
-
var B = this, n = this._readableState,
|
|
1389
|
+
var B = this, n = this._readableState, c = !1;
|
|
1420
1390
|
g.on("end", function() {
|
|
1421
1391
|
if (r("wrapped end"), n.decoder && !n.ended) {
|
|
1422
1392
|
var v = n.decoder.end();
|
|
@@ -1426,7 +1396,7 @@ function sI() {
|
|
|
1426
1396
|
}), g.on("data", function(v) {
|
|
1427
1397
|
if (r("wrapped data"), n.decoder && (v = n.decoder.write(v)), !(n.objectMode && v == null) && !(!n.objectMode && (!v || !v.length))) {
|
|
1428
1398
|
var eA = B.push(v);
|
|
1429
|
-
eA || (
|
|
1399
|
+
eA || (c = !0, g.pause());
|
|
1430
1400
|
}
|
|
1431
1401
|
});
|
|
1432
1402
|
for (var O in g)
|
|
@@ -1438,7 +1408,7 @@ function sI() {
|
|
|
1438
1408
|
for (var K = 0; K < Y.length; K++)
|
|
1439
1409
|
g.on(Y[K], this.emit.bind(this, Y[K]));
|
|
1440
1410
|
return this._read = function(v) {
|
|
1441
|
-
r("wrapped _read", v),
|
|
1411
|
+
r("wrapped _read", v), c && (c = !1, g.resume());
|
|
1442
1412
|
}, this;
|
|
1443
1413
|
}, typeof Symbol == "function" && (p.prototype[Symbol.asyncIterator] = function() {
|
|
1444
1414
|
return F === void 0 && (F = bI()), F(this);
|
|
@@ -1479,8 +1449,7 @@ function sI() {
|
|
|
1479
1449
|
}
|
|
1480
1450
|
});
|
|
1481
1451
|
function e(g, B) {
|
|
1482
|
-
if (B.length === 0)
|
|
1483
|
-
return null;
|
|
1452
|
+
if (B.length === 0) return null;
|
|
1484
1453
|
var n;
|
|
1485
1454
|
return B.objectMode ? n = B.buffer.shift() : !g || g >= B.length ? (B.decoder ? n = B.buffer.join("") : B.buffer.length === 1 ? n = B.buffer.first() : n = B.buffer.concat(B.length), B.buffer.clear()) : n = B.buffer.consume(g, B.decoder), n;
|
|
1486
1455
|
}
|
|
@@ -1498,9 +1467,8 @@ function sI() {
|
|
|
1498
1467
|
return l === void 0 && (l = mI()), l(p, g, B);
|
|
1499
1468
|
});
|
|
1500
1469
|
function _(g, B) {
|
|
1501
|
-
for (var n = 0,
|
|
1502
|
-
if (g[n] === B)
|
|
1503
|
-
return n;
|
|
1470
|
+
for (var n = 0, c = g.length; n < c; n++)
|
|
1471
|
+
if (g[n] === B) return n;
|
|
1504
1472
|
return -1;
|
|
1505
1473
|
}
|
|
1506
1474
|
return LA;
|
|
@@ -1518,8 +1486,7 @@ function PI(E, I) {
|
|
|
1518
1486
|
C.reading = !1, (C.needReadable || C.length < C.highWaterMark) && this._read(C.highWaterMark);
|
|
1519
1487
|
}
|
|
1520
1488
|
function QA(E) {
|
|
1521
|
-
if (!(this instanceof QA))
|
|
1522
|
-
return new QA(E);
|
|
1489
|
+
if (!(this instanceof QA)) return new QA(E);
|
|
1523
1490
|
kA.call(this, E), this._transformState = {
|
|
1524
1491
|
afterTransform: PI.bind(this),
|
|
1525
1492
|
needTransform: !1,
|
|
@@ -1558,19 +1525,15 @@ QA.prototype._destroy = function(E, I) {
|
|
|
1558
1525
|
});
|
|
1559
1526
|
};
|
|
1560
1527
|
function BI(E, I, A) {
|
|
1561
|
-
if (I)
|
|
1562
|
-
|
|
1563
|
-
if (
|
|
1564
|
-
throw new WI();
|
|
1565
|
-
if (E._transformState.transforming)
|
|
1566
|
-
throw new OI();
|
|
1528
|
+
if (I) return E.emit("error", I);
|
|
1529
|
+
if (A != null && E.push(A), E._writableState.length) throw new WI();
|
|
1530
|
+
if (E._transformState.transforming) throw new OI();
|
|
1567
1531
|
return E.push(null);
|
|
1568
1532
|
}
|
|
1569
1533
|
var ZI = SA, hI = fI;
|
|
1570
1534
|
dA(SA, hI);
|
|
1571
1535
|
function SA(E) {
|
|
1572
|
-
if (!(this instanceof SA))
|
|
1573
|
-
return new SA(E);
|
|
1536
|
+
if (!(this instanceof SA)) return new SA(E);
|
|
1574
1537
|
hI.call(this, E);
|
|
1575
1538
|
}
|
|
1576
1539
|
SA.prototype._transform = function(E, I, A) {
|
|
@@ -1585,8 +1548,7 @@ function jI(E) {
|
|
|
1585
1548
|
}
|
|
1586
1549
|
var DI = oA.codes, VI = DI.ERR_MISSING_ARGS, XI = DI.ERR_STREAM_DESTROYED;
|
|
1587
1550
|
function EI(E) {
|
|
1588
|
-
if (E)
|
|
1589
|
-
throw E;
|
|
1551
|
+
if (E) throw E;
|
|
1590
1552
|
}
|
|
1591
1553
|
function zI(E) {
|
|
1592
1554
|
return E.setHeader && typeof E.abort == "function";
|
|
@@ -1600,17 +1562,14 @@ function $I(E, I, A, Q) {
|
|
|
1600
1562
|
readable: I,
|
|
1601
1563
|
writable: A
|
|
1602
1564
|
}, function(a) {
|
|
1603
|
-
if (a)
|
|
1604
|
-
return Q(a);
|
|
1565
|
+
if (a) return Q(a);
|
|
1605
1566
|
C = !0, Q();
|
|
1606
1567
|
});
|
|
1607
1568
|
var o = !1;
|
|
1608
1569
|
return function(a) {
|
|
1609
1570
|
if (!C && !o) {
|
|
1610
|
-
if (o = !0, zI(E))
|
|
1611
|
-
|
|
1612
|
-
if (typeof E.destroy == "function")
|
|
1613
|
-
return E.destroy();
|
|
1571
|
+
if (o = !0, zI(E)) return E.abort();
|
|
1572
|
+
if (typeof E.destroy == "function") return E.destroy();
|
|
1614
1573
|
Q(a || new XI("pipe"));
|
|
1615
1574
|
}
|
|
1616
1575
|
};
|
|
@@ -1773,8 +1732,7 @@ class ag {
|
|
|
1773
1732
|
b,
|
|
1774
1733
|
N
|
|
1775
1734
|
);
|
|
1776
|
-
if (q === -1)
|
|
1777
|
-
throw new Error("_DecryptECIES failed");
|
|
1735
|
+
if (q === -1) throw new Error("_DecryptECIES failed");
|
|
1778
1736
|
return new Uint8Array(o.HEAPU8.buffer, b, q);
|
|
1779
1737
|
}
|
|
1780
1738
|
/*
|