msgpack5 5.3.1 → 6.0.1
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/.github/workflows/ci.yml +1 -1
- package/dist/msgpack5.js +458 -350
- package/dist/msgpack5.min.js +1 -1
- package/lib/decoder.js +179 -181
- package/package.json +2 -2
- package/test/nested-containers.js +44 -0
package/dist/msgpack5.js
CHANGED
|
@@ -91,7 +91,7 @@ function msgpack (options) {
|
|
|
91
91
|
|
|
92
92
|
module.exports = msgpack
|
|
93
93
|
|
|
94
|
-
},{"./lib/codecs/DateCodec":2,"./lib/decoder":3,"./lib/encoder":4,"./lib/helpers.js":5,"./lib/streams":6,"assert":
|
|
94
|
+
},{"./lib/codecs/DateCodec":2,"./lib/decoder":3,"./lib/encoder":4,"./lib/helpers.js":5,"./lib/streams":6,"assert":7,"bl":14,"safe-buffer":52}],2:[function(require,module,exports){
|
|
95
95
|
(function (Buffer){(function (){
|
|
96
96
|
const type = -1
|
|
97
97
|
|
|
@@ -226,7 +226,7 @@ function decode (buf) {
|
|
|
226
226
|
module.exports = { check, type, encode, decode }
|
|
227
227
|
|
|
228
228
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
229
|
-
},{"buffer":
|
|
229
|
+
},{"buffer":16}],3:[function(require,module,exports){
|
|
230
230
|
'use strict'
|
|
231
231
|
|
|
232
232
|
const bl = require('bl')
|
|
@@ -267,238 +267,236 @@ function isValidDataSize (dataLength, bufLength, headerLength) {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
module.exports = function buildDecode (decodingTypes, options) {
|
|
270
|
+
const context = { decodingTypes, options, decode }
|
|
270
271
|
return decode
|
|
271
272
|
|
|
272
273
|
function decode (buf) {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
buf = bl().append(buf)
|
|
274
|
+
if (!bl.isBufferList(buf)) {
|
|
275
|
+
buf = bl(buf)
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
const result = tryDecode(buf, 0)
|
|
278
|
+
const result = tryDecode(buf, 0, context)
|
|
279
279
|
// Handle worst case ASAP and keep code flat
|
|
280
280
|
if (!result) throw new IncompleteBufferError()
|
|
281
281
|
|
|
282
282
|
buf.consume(result[1])
|
|
283
283
|
return result[0]
|
|
284
284
|
}
|
|
285
|
+
}
|
|
285
286
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
let offset = initialOffset
|
|
291
|
-
|
|
292
|
-
const first = buf.readUInt8(offset)
|
|
293
|
-
offset += 1
|
|
287
|
+
function decodeArray (buf, initialOffset, length, headerLength, context) {
|
|
288
|
+
let offset = initialOffset
|
|
289
|
+
const result = []
|
|
290
|
+
let i = 0
|
|
294
291
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
const inRange = (start, end) => first >= start && first <= end
|
|
299
|
-
|
|
300
|
-
if (first < 0x80) return [first, 1] // 7-bits positive ints
|
|
301
|
-
if ((first & 0xf0) === 0x80) {
|
|
302
|
-
const length = first & 0x0f
|
|
303
|
-
const headerSize = offset - initialOffset
|
|
304
|
-
// we have a map with less than 15 elements
|
|
305
|
-
return decodeMap(buf, offset, length, headerSize, options)
|
|
306
|
-
}
|
|
307
|
-
if ((first & 0xf0) === 0x90) {
|
|
308
|
-
const length = first & 0x0f
|
|
309
|
-
const headerSize = offset - initialOffset
|
|
310
|
-
// we have an array with less than 15 elements
|
|
311
|
-
return decodeArray(buf, offset, length, headerSize)
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
if ((first & 0xe0) === 0xa0) {
|
|
315
|
-
// fixstr up to 31 bytes
|
|
316
|
-
const length = first & 0x1f
|
|
317
|
-
if (!isValidDataSize(length, bufLength, 1)) return null
|
|
318
|
-
const result = buf.toString('utf8', offset, offset + length)
|
|
319
|
-
return [result, length + 1]
|
|
320
|
-
}
|
|
321
|
-
if (inRange(0xc0, 0xc3)) return decodeConstants(first)
|
|
322
|
-
if (inRange(0xc4, 0xc6)) {
|
|
323
|
-
const length = buf.readUIntBE(offset, size - 1)
|
|
324
|
-
offset += size - 1
|
|
325
|
-
|
|
326
|
-
if (!isValidDataSize(length, bufLength, size)) return null
|
|
327
|
-
const result = buf.slice(offset, offset + length)
|
|
328
|
-
return [result, size + length]
|
|
329
|
-
}
|
|
330
|
-
if (inRange(0xc7, 0xc9)) {
|
|
331
|
-
const length = buf.readUIntBE(offset, size - 2)
|
|
332
|
-
offset += size - 2
|
|
333
|
-
|
|
334
|
-
const type = buf.readInt8(offset)
|
|
335
|
-
offset += 1
|
|
336
|
-
|
|
337
|
-
if (!isValidDataSize(length, bufLength, size)) return null
|
|
338
|
-
return decodeExt(buf, offset, type, length, size)
|
|
339
|
-
}
|
|
340
|
-
if (inRange(0xca, 0xcb)) return decodeFloat(buf, offset, size - 1)
|
|
341
|
-
if (inRange(0xcc, 0xcf)) return decodeUnsignedInt(buf, offset, size - 1)
|
|
342
|
-
if (inRange(0xd0, 0xd3)) return decodeSigned(buf, offset, size - 1)
|
|
343
|
-
if (inRange(0xd4, 0xd8)) {
|
|
344
|
-
const type = buf.readInt8(offset) // Signed
|
|
345
|
-
offset += 1
|
|
346
|
-
return decodeExt(buf, offset, type, size - 2, 2)
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
if (inRange(0xd9, 0xdb)) {
|
|
350
|
-
const length = buf.readUIntBE(offset, size - 1)
|
|
351
|
-
offset += size - 1
|
|
352
|
-
|
|
353
|
-
if (!isValidDataSize(length, bufLength, size)) return null
|
|
354
|
-
const result = buf.toString('utf8', offset, offset + length)
|
|
355
|
-
return [result, size + length]
|
|
356
|
-
}
|
|
357
|
-
if (inRange(0xdc, 0xdd)) {
|
|
358
|
-
const length = buf.readUIntBE(offset, size - 1)
|
|
359
|
-
offset += size - 1
|
|
360
|
-
return decodeArray(buf, offset, length, size)
|
|
361
|
-
}
|
|
362
|
-
if (inRange(0xde, 0xdf)) {
|
|
363
|
-
let length
|
|
364
|
-
switch (first) {
|
|
365
|
-
case 0xde:
|
|
366
|
-
// maps up to 2^16 elements - 2 bytes
|
|
367
|
-
length = buf.readUInt16BE(offset)
|
|
368
|
-
offset += 2
|
|
369
|
-
// console.log(offset - initialOffset)
|
|
370
|
-
return decodeMap(buf, offset, length, 3, options)
|
|
371
|
-
|
|
372
|
-
case 0xdf:
|
|
373
|
-
length = buf.readUInt32BE(offset)
|
|
374
|
-
offset += 4
|
|
375
|
-
return decodeMap(buf, offset, length, 5, options)
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
if (first >= 0xe0) return [first - 0x100, 1] // 5 bits negative ints
|
|
292
|
+
while (i++ < length) {
|
|
293
|
+
const decodeResult = tryDecode(buf, offset, context)
|
|
294
|
+
if (!decodeResult) return null
|
|
379
295
|
|
|
380
|
-
|
|
296
|
+
result.push(decodeResult[0])
|
|
297
|
+
offset += decodeResult[1]
|
|
381
298
|
}
|
|
299
|
+
return [result, headerLength + offset - initialOffset]
|
|
300
|
+
}
|
|
382
301
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
302
|
+
function decodeMap (buf, offset, length, headerLength, context) {
|
|
303
|
+
const _temp = decodeArray(buf, offset, 2 * length, headerLength, context)
|
|
304
|
+
if (!_temp) return null
|
|
305
|
+
const [result, consumedBytes] = _temp
|
|
387
306
|
|
|
388
|
-
|
|
389
|
-
const decodeResult = tryDecode(buf, offset)
|
|
390
|
-
if (!decodeResult) return null
|
|
307
|
+
let isPlainObject = !context.options.preferMap
|
|
391
308
|
|
|
392
|
-
|
|
393
|
-
|
|
309
|
+
if (isPlainObject) {
|
|
310
|
+
for (let i = 0; i < 2 * length; i += 2) {
|
|
311
|
+
if (typeof result[i] !== 'string') {
|
|
312
|
+
isPlainObject = false
|
|
313
|
+
break
|
|
314
|
+
}
|
|
394
315
|
}
|
|
395
|
-
return [result, headerLength + offset - initialOffset]
|
|
396
316
|
}
|
|
397
317
|
|
|
398
|
-
|
|
399
|
-
const
|
|
400
|
-
|
|
401
|
-
|
|
318
|
+
if (isPlainObject) {
|
|
319
|
+
const object = {}
|
|
320
|
+
for (let i = 0; i < 2 * length; i += 2) {
|
|
321
|
+
const key = result[i]
|
|
322
|
+
const val = result[i + 1]
|
|
402
323
|
|
|
403
|
-
|
|
324
|
+
if (key === '__proto__') {
|
|
325
|
+
if (context.options.protoAction === 'error') {
|
|
326
|
+
throw new SyntaxError('Object contains forbidden prototype property')
|
|
327
|
+
}
|
|
404
328
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
if (typeof result[i] !== 'string') {
|
|
408
|
-
isPlainObject = false
|
|
409
|
-
break
|
|
329
|
+
if (context.options.protoAction === 'remove') {
|
|
330
|
+
continue
|
|
410
331
|
}
|
|
411
332
|
}
|
|
333
|
+
|
|
334
|
+
object[key] = val
|
|
335
|
+
}
|
|
336
|
+
return [object, consumedBytes]
|
|
337
|
+
} else {
|
|
338
|
+
const mapping = new Map()
|
|
339
|
+
for (let i = 0; i < 2 * length; i += 2) {
|
|
340
|
+
const key = result[i]
|
|
341
|
+
const val = result[i + 1]
|
|
342
|
+
mapping.set(key, val)
|
|
412
343
|
}
|
|
344
|
+
return [mapping, consumedBytes]
|
|
345
|
+
}
|
|
346
|
+
}
|
|
413
347
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
for (let i = 0; i < 2 * length; i += 2) {
|
|
417
|
-
const key = result[i]
|
|
418
|
-
const val = result[i + 1]
|
|
348
|
+
function tryDecode (buf, initialOffset, context) {
|
|
349
|
+
if (buf.length <= initialOffset) return null
|
|
419
350
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
throw new SyntaxError('Object contains forbidden prototype property')
|
|
423
|
-
}
|
|
351
|
+
const bufLength = buf.length - initialOffset
|
|
352
|
+
let offset = initialOffset
|
|
424
353
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
object[key] = val
|
|
431
|
-
}
|
|
432
|
-
return [object, consumedBytes]
|
|
433
|
-
} else {
|
|
434
|
-
const mapping = new Map()
|
|
435
|
-
for (let i = 0; i < 2 * length; i += 2) {
|
|
436
|
-
const key = result[i]
|
|
437
|
-
const val = result[i + 1]
|
|
438
|
-
mapping.set(key, val)
|
|
439
|
-
}
|
|
440
|
-
return [mapping, consumedBytes]
|
|
441
|
-
}
|
|
442
|
-
}
|
|
354
|
+
const first = buf.readUInt8(offset)
|
|
355
|
+
offset += 1
|
|
443
356
|
|
|
444
|
-
|
|
445
|
-
|
|
357
|
+
const size = SIZES[first] || -1
|
|
358
|
+
if (bufLength < size) return null
|
|
446
359
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
360
|
+
if (first < 0x80) return [first, 1] // 7-bits positive ints
|
|
361
|
+
if ((first & 0xf0) === 0x80) {
|
|
362
|
+
const length = first & 0x0f
|
|
363
|
+
const headerSize = offset - initialOffset
|
|
364
|
+
// we have a map with less than 15 elements
|
|
365
|
+
return decodeMap(buf, offset, length, headerSize, context)
|
|
366
|
+
}
|
|
367
|
+
if ((first & 0xf0) === 0x90) {
|
|
368
|
+
const length = first & 0x0f
|
|
369
|
+
const headerSize = offset - initialOffset
|
|
370
|
+
// we have an array with less than 15 elements
|
|
371
|
+
return decodeArray(buf, offset, length, headerSize, context)
|
|
372
|
+
}
|
|
455
373
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
374
|
+
if ((first & 0xe0) === 0xa0) {
|
|
375
|
+
// fixstr up to 31 bytes
|
|
376
|
+
const length = first & 0x1f
|
|
377
|
+
if (!isValidDataSize(length, bufLength, 1)) return null
|
|
378
|
+
const result = buf.toString('utf8', offset, offset + length)
|
|
379
|
+
return [result, length + 1]
|
|
459
380
|
}
|
|
381
|
+
if (first >= 0xc0 && first <= 0xc3) return decodeConstants(first)
|
|
382
|
+
if (first >= 0xc4 && first <= 0xc6) {
|
|
383
|
+
const length = buf.readUIntBE(offset, size - 1)
|
|
384
|
+
offset += size - 1
|
|
460
385
|
|
|
461
|
-
|
|
462
|
-
const
|
|
463
|
-
|
|
464
|
-
while (offset < maxOffset) { result += buf.readUInt8(offset++) * Math.pow(256, maxOffset - offset) }
|
|
465
|
-
return [result, size + 1]
|
|
386
|
+
if (!isValidDataSize(length, bufLength, size)) return null
|
|
387
|
+
const result = buf.slice(offset, offset + length)
|
|
388
|
+
return [result, size + length]
|
|
466
389
|
}
|
|
390
|
+
if (first >= 0xc7 && first <= 0xc9) {
|
|
391
|
+
const length = buf.readUIntBE(offset, size - 2)
|
|
392
|
+
offset += size - 2
|
|
393
|
+
|
|
394
|
+
const type = buf.readInt8(offset)
|
|
395
|
+
offset += 1
|
|
467
396
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
if (first === 0xc2) return [false, 1]
|
|
471
|
-
if (first === 0xc3) return [true, 1]
|
|
397
|
+
if (!isValidDataSize(length, bufLength, size)) return null
|
|
398
|
+
return decodeExt(buf, offset, type, length, size, context)
|
|
472
399
|
}
|
|
400
|
+
if (first >= 0xca && first <= 0xcb) return decodeFloat(buf, offset, size - 1)
|
|
401
|
+
if (first >= 0xcc && first <= 0xcf) return decodeUnsignedInt(buf, offset, size - 1)
|
|
402
|
+
if (first >= 0xd0 && first <= 0xd3) return decodeSigned(buf, offset, size - 1)
|
|
403
|
+
if (first >= 0xd4 && first <= 0xd8) {
|
|
404
|
+
const type = buf.readInt8(offset) // Signed
|
|
405
|
+
offset += 1
|
|
406
|
+
return decodeExt(buf, offset, type, size - 2, 2, context)
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (first >= 0xd9 && first <= 0xdb) {
|
|
410
|
+
const length = buf.readUIntBE(offset, size - 1)
|
|
411
|
+
offset += size - 1
|
|
473
412
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
if (size === 2) result = buf.readInt16BE(offset)
|
|
478
|
-
if (size === 4) result = buf.readInt32BE(offset)
|
|
479
|
-
if (size === 8) result = readInt64BE(buf.slice(offset, offset + 8), 0)
|
|
480
|
-
return [result, size + 1]
|
|
413
|
+
if (!isValidDataSize(length, bufLength, size)) return null
|
|
414
|
+
const result = buf.toString('utf8', offset, offset + length)
|
|
415
|
+
return [result, size + length]
|
|
481
416
|
}
|
|
417
|
+
if (first >= 0xdc && first <= 0xdd) {
|
|
418
|
+
const length = buf.readUIntBE(offset, size - 1)
|
|
419
|
+
offset += size - 1
|
|
420
|
+
return decodeArray(buf, offset, length, size, context)
|
|
421
|
+
}
|
|
422
|
+
if (first >= 0xde && first <= 0xdf) {
|
|
423
|
+
let length
|
|
424
|
+
switch (first) {
|
|
425
|
+
case 0xde:
|
|
426
|
+
// maps up to 2^16 elements - 2 bytes
|
|
427
|
+
length = buf.readUInt16BE(offset)
|
|
428
|
+
offset += 2
|
|
429
|
+
// console.log(offset - initialOffset)
|
|
430
|
+
return decodeMap(buf, offset, length, 3, context)
|
|
482
431
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
432
|
+
case 0xdf:
|
|
433
|
+
length = buf.readUInt32BE(offset)
|
|
434
|
+
offset += 4
|
|
435
|
+
return decodeMap(buf, offset, length, 5, context)
|
|
436
|
+
}
|
|
488
437
|
}
|
|
438
|
+
if (first >= 0xe0) return [first - 0x100, 1] // 5 bits negative ints
|
|
439
|
+
|
|
440
|
+
throw new Error('not implemented yet')
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
function decodeSigned (buf, offset, size) {
|
|
444
|
+
let result
|
|
445
|
+
if (size === 1) result = buf.readInt8(offset)
|
|
446
|
+
if (size === 2) result = buf.readInt16BE(offset)
|
|
447
|
+
if (size === 4) result = buf.readInt32BE(offset)
|
|
448
|
+
if (size === 8) result = readInt64BE(buf.slice(offset, offset + 8), 0)
|
|
449
|
+
return [result, size + 1]
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
function decodeExt (buf, offset, type, size, headerSize, context) {
|
|
453
|
+
const toDecode = buf.slice(offset, offset + size)
|
|
454
|
+
|
|
455
|
+
const decode = context.decodingTypes.get(type)
|
|
456
|
+
if (!decode) throw new Error('unable to find ext type ' + type)
|
|
457
|
+
|
|
458
|
+
const value = decode(toDecode)
|
|
459
|
+
return [value, headerSize + size]
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function decodeUnsignedInt (buf, offset, size) {
|
|
463
|
+
const maxOffset = offset + size
|
|
464
|
+
let result = 0
|
|
465
|
+
while (offset < maxOffset) { result += buf.readUInt8(offset++) * Math.pow(256, maxOffset - offset) }
|
|
466
|
+
return [result, size + 1]
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
function decodeConstants (first) {
|
|
470
|
+
if (first === 0xc0) return [null, 1]
|
|
471
|
+
if (first === 0xc2) return [false, 1]
|
|
472
|
+
if (first === 0xc3) return [true, 1]
|
|
473
|
+
}
|
|
489
474
|
|
|
490
|
-
|
|
491
|
-
|
|
475
|
+
function decodeFloat (buf, offset, size) {
|
|
476
|
+
let result
|
|
477
|
+
if (size === 4) result = buf.readFloatBE(offset)
|
|
478
|
+
if (size === 8) result = buf.readDoubleBE(offset)
|
|
479
|
+
return [result, size + 1]
|
|
480
|
+
}
|
|
492
481
|
|
|
493
|
-
|
|
494
|
-
|
|
482
|
+
function readInt64BE (buf, offset) {
|
|
483
|
+
var negate = (buf[offset] & 0x80) == 0x80; // eslint-disable-line
|
|
495
484
|
|
|
496
|
-
|
|
497
|
-
|
|
485
|
+
if (negate) {
|
|
486
|
+
let carry = 1
|
|
487
|
+
for (let i = offset + 7; i >= offset; i--) {
|
|
488
|
+
const v = (buf[i] ^ 0xff) + carry
|
|
489
|
+
buf[i] = v & 0xff
|
|
490
|
+
carry = v >> 8
|
|
491
|
+
}
|
|
498
492
|
}
|
|
493
|
+
|
|
494
|
+
const hi = buf.readUInt32BE(offset + 0)
|
|
495
|
+
const lo = buf.readUInt32BE(offset + 4)
|
|
496
|
+
return (hi * 4294967296 + lo) * (negate ? -1 : +1)
|
|
499
497
|
}
|
|
500
498
|
|
|
501
|
-
},{"./helpers.js":5,"bl":
|
|
499
|
+
},{"./helpers.js":5,"bl":14}],4:[function(require,module,exports){
|
|
502
500
|
'use strict'
|
|
503
501
|
|
|
504
502
|
const Buffer = require('safe-buffer').Buffer
|
|
@@ -777,7 +775,7 @@ function encodeNumber (obj, options) {
|
|
|
777
775
|
// return n
|
|
778
776
|
// }
|
|
779
777
|
|
|
780
|
-
},{"./helpers.js":5,"bl":
|
|
778
|
+
},{"./helpers.js":5,"bl":14,"safe-buffer":52}],5:[function(require,module,exports){
|
|
781
779
|
'use strict'
|
|
782
780
|
|
|
783
781
|
const util = require('util')
|
|
@@ -799,7 +797,7 @@ exports.isFloat = function isFloat (n) {
|
|
|
799
797
|
return n % 1 !== 0
|
|
800
798
|
}
|
|
801
799
|
|
|
802
|
-
},{"util":
|
|
800
|
+
},{"util":58}],6:[function(require,module,exports){
|
|
803
801
|
'use strict'
|
|
804
802
|
|
|
805
803
|
const Transform = require('readable-stream').Transform
|
|
@@ -891,34 +889,7 @@ Decoder.prototype._transform = function (buf, enc, done) {
|
|
|
891
889
|
module.exports.decoder = Decoder
|
|
892
890
|
module.exports.encoder = Encoder
|
|
893
891
|
|
|
894
|
-
},{"bl":
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Array#filter.
|
|
898
|
-
*
|
|
899
|
-
* @param {Array} arr
|
|
900
|
-
* @param {Function} fn
|
|
901
|
-
* @param {Object=} self
|
|
902
|
-
* @return {Array}
|
|
903
|
-
* @throw TypeError
|
|
904
|
-
*/
|
|
905
|
-
|
|
906
|
-
module.exports = function (arr, fn, self) {
|
|
907
|
-
if (arr.filter) return arr.filter(fn, self);
|
|
908
|
-
if (void 0 === arr || null === arr) throw new TypeError;
|
|
909
|
-
if ('function' != typeof fn) throw new TypeError;
|
|
910
|
-
var ret = [];
|
|
911
|
-
for (var i = 0; i < arr.length; i++) {
|
|
912
|
-
if (!hasOwn.call(arr, i)) continue;
|
|
913
|
-
var val = arr[i];
|
|
914
|
-
if (fn.call(self, val, i, arr)) ret.push(val);
|
|
915
|
-
}
|
|
916
|
-
return ret;
|
|
917
|
-
};
|
|
918
|
-
|
|
919
|
-
var hasOwn = Object.prototype.hasOwnProperty;
|
|
920
|
-
|
|
921
|
-
},{}],8:[function(require,module,exports){
|
|
892
|
+
},{"bl":14,"inherits":30,"readable-stream":51}],7:[function(require,module,exports){
|
|
922
893
|
(function (global){(function (){
|
|
923
894
|
'use strict';
|
|
924
895
|
|
|
@@ -1428,7 +1399,7 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
1428
1399
|
};
|
|
1429
1400
|
|
|
1430
1401
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
1431
|
-
},{"object-assign":
|
|
1402
|
+
},{"object-assign":35,"util/":10}],8:[function(require,module,exports){
|
|
1432
1403
|
if (typeof Object.create === 'function') {
|
|
1433
1404
|
// implementation from standard node.js 'util' module
|
|
1434
1405
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -1453,14 +1424,14 @@ if (typeof Object.create === 'function') {
|
|
|
1453
1424
|
}
|
|
1454
1425
|
}
|
|
1455
1426
|
|
|
1456
|
-
},{}],
|
|
1427
|
+
},{}],9:[function(require,module,exports){
|
|
1457
1428
|
module.exports = function isBuffer(arg) {
|
|
1458
1429
|
return arg && typeof arg === 'object'
|
|
1459
1430
|
&& typeof arg.copy === 'function'
|
|
1460
1431
|
&& typeof arg.fill === 'function'
|
|
1461
1432
|
&& typeof arg.readUInt8 === 'function';
|
|
1462
1433
|
}
|
|
1463
|
-
},{}],
|
|
1434
|
+
},{}],10:[function(require,module,exports){
|
|
1464
1435
|
(function (process,global){(function (){
|
|
1465
1436
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
1466
1437
|
//
|
|
@@ -2050,32 +2021,38 @@ function hasOwnProperty(obj, prop) {
|
|
|
2050
2021
|
}
|
|
2051
2022
|
|
|
2052
2023
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
2053
|
-
},{"./support/isBuffer":
|
|
2024
|
+
},{"./support/isBuffer":9,"_process":36,"inherits":8}],11:[function(require,module,exports){
|
|
2054
2025
|
(function (global){(function (){
|
|
2055
2026
|
'use strict';
|
|
2056
2027
|
|
|
2057
|
-
var
|
|
2028
|
+
var possibleNames = [
|
|
2029
|
+
'BigInt64Array',
|
|
2030
|
+
'BigUint64Array',
|
|
2031
|
+
'Float32Array',
|
|
2032
|
+
'Float64Array',
|
|
2033
|
+
'Int16Array',
|
|
2034
|
+
'Int32Array',
|
|
2035
|
+
'Int8Array',
|
|
2036
|
+
'Uint16Array',
|
|
2037
|
+
'Uint32Array',
|
|
2038
|
+
'Uint8Array',
|
|
2039
|
+
'Uint8ClampedArray'
|
|
2040
|
+
];
|
|
2041
|
+
|
|
2042
|
+
var g = typeof globalThis === 'undefined' ? global : globalThis;
|
|
2058
2043
|
|
|
2059
2044
|
module.exports = function availableTypedArrays() {
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
'
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
'Int8Array',
|
|
2068
|
-
'Uint16Array',
|
|
2069
|
-
'Uint32Array',
|
|
2070
|
-
'Uint8Array',
|
|
2071
|
-
'Uint8ClampedArray'
|
|
2072
|
-
], function (typedArray) {
|
|
2073
|
-
return typeof global[typedArray] === 'function';
|
|
2074
|
-
});
|
|
2045
|
+
var out = [];
|
|
2046
|
+
for (var i = 0; i < possibleNames.length; i++) {
|
|
2047
|
+
if (typeof g[possibleNames[i]] === 'function') {
|
|
2048
|
+
out[out.length] = possibleNames[i];
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
return out;
|
|
2075
2052
|
};
|
|
2076
2053
|
|
|
2077
2054
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
2078
|
-
},{
|
|
2055
|
+
},{}],12:[function(require,module,exports){
|
|
2079
2056
|
'use strict'
|
|
2080
2057
|
|
|
2081
2058
|
exports.byteLength = byteLength
|
|
@@ -2227,7 +2204,7 @@ function fromByteArray (uint8) {
|
|
|
2227
2204
|
return parts.join('')
|
|
2228
2205
|
}
|
|
2229
2206
|
|
|
2230
|
-
},{}],
|
|
2207
|
+
},{}],13:[function(require,module,exports){
|
|
2231
2208
|
'use strict'
|
|
2232
2209
|
|
|
2233
2210
|
const { Buffer } = require('buffer')
|
|
@@ -2625,7 +2602,7 @@ BufferList.isBufferList = function isBufferList (b) {
|
|
|
2625
2602
|
|
|
2626
2603
|
module.exports = BufferList
|
|
2627
2604
|
|
|
2628
|
-
},{"buffer":
|
|
2605
|
+
},{"buffer":16}],14:[function(require,module,exports){
|
|
2629
2606
|
'use strict'
|
|
2630
2607
|
|
|
2631
2608
|
const DuplexStream = require('readable-stream').Duplex
|
|
@@ -2711,9 +2688,9 @@ module.exports = BufferListStream
|
|
|
2711
2688
|
module.exports.BufferListStream = BufferListStream
|
|
2712
2689
|
module.exports.BufferList = BufferList
|
|
2713
2690
|
|
|
2714
|
-
},{"./BufferList":
|
|
2691
|
+
},{"./BufferList":13,"inherits":30,"readable-stream":51}],15:[function(require,module,exports){
|
|
2715
2692
|
|
|
2716
|
-
},{}],
|
|
2693
|
+
},{}],16:[function(require,module,exports){
|
|
2717
2694
|
(function (Buffer){(function (){
|
|
2718
2695
|
/*!
|
|
2719
2696
|
* The buffer module from node.js, for the browser.
|
|
@@ -4494,7 +4471,7 @@ function numberIsNaN (obj) {
|
|
|
4494
4471
|
}
|
|
4495
4472
|
|
|
4496
4473
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
4497
|
-
},{"base64-js":
|
|
4474
|
+
},{"base64-js":12,"buffer":16,"ieee754":29}],17:[function(require,module,exports){
|
|
4498
4475
|
'use strict';
|
|
4499
4476
|
|
|
4500
4477
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -4511,7 +4488,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
4511
4488
|
return intrinsic;
|
|
4512
4489
|
};
|
|
4513
4490
|
|
|
4514
|
-
},{"./":
|
|
4491
|
+
},{"./":18,"get-intrinsic":24}],18:[function(require,module,exports){
|
|
4515
4492
|
'use strict';
|
|
4516
4493
|
|
|
4517
4494
|
var bind = require('function-bind');
|
|
@@ -4560,12 +4537,12 @@ if ($defineProperty) {
|
|
|
4560
4537
|
module.exports.apply = applyBind;
|
|
4561
4538
|
}
|
|
4562
4539
|
|
|
4563
|
-
},{"function-bind":
|
|
4540
|
+
},{"function-bind":23,"get-intrinsic":24}],19:[function(require,module,exports){
|
|
4564
4541
|
'use strict';
|
|
4565
4542
|
|
|
4566
4543
|
var GetIntrinsic = require('get-intrinsic');
|
|
4567
4544
|
|
|
4568
|
-
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
4545
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
4569
4546
|
if ($gOPD) {
|
|
4570
4547
|
try {
|
|
4571
4548
|
$gOPD([], 'length');
|
|
@@ -4577,7 +4554,7 @@ if ($gOPD) {
|
|
|
4577
4554
|
|
|
4578
4555
|
module.exports = $gOPD;
|
|
4579
4556
|
|
|
4580
|
-
},{"get-intrinsic":
|
|
4557
|
+
},{"get-intrinsic":24}],20:[function(require,module,exports){
|
|
4581
4558
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
4582
4559
|
//
|
|
4583
4560
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -5076,31 +5053,71 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
|
5076
5053
|
}
|
|
5077
5054
|
}
|
|
5078
5055
|
|
|
5079
|
-
},{}],
|
|
5056
|
+
},{}],21:[function(require,module,exports){
|
|
5057
|
+
'use strict';
|
|
5080
5058
|
|
|
5081
|
-
var
|
|
5082
|
-
var toString = Object.prototype.toString;
|
|
5059
|
+
var isCallable = require('is-callable');
|
|
5083
5060
|
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5061
|
+
var toStr = Object.prototype.toString;
|
|
5062
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5063
|
+
|
|
5064
|
+
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
5065
|
+
for (var i = 0, len = array.length; i < len; i++) {
|
|
5066
|
+
if (hasOwnProperty.call(array, i)) {
|
|
5067
|
+
if (receiver == null) {
|
|
5068
|
+
iterator(array[i], i, array);
|
|
5069
|
+
} else {
|
|
5070
|
+
iterator.call(receiver, array[i], i, array);
|
|
5071
|
+
}
|
|
5072
|
+
}
|
|
5087
5073
|
}
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5074
|
+
};
|
|
5075
|
+
|
|
5076
|
+
var forEachString = function forEachString(string, iterator, receiver) {
|
|
5077
|
+
for (var i = 0, len = string.length; i < len; i++) {
|
|
5078
|
+
// no such thing as a sparse string.
|
|
5079
|
+
if (receiver == null) {
|
|
5080
|
+
iterator(string.charAt(i), i, string);
|
|
5081
|
+
} else {
|
|
5082
|
+
iterator.call(receiver, string.charAt(i), i, string);
|
|
5092
5083
|
}
|
|
5093
|
-
}
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5084
|
+
}
|
|
5085
|
+
};
|
|
5086
|
+
|
|
5087
|
+
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
5088
|
+
for (var k in object) {
|
|
5089
|
+
if (hasOwnProperty.call(object, k)) {
|
|
5090
|
+
if (receiver == null) {
|
|
5091
|
+
iterator(object[k], k, object);
|
|
5092
|
+
} else {
|
|
5093
|
+
iterator.call(receiver, object[k], k, object);
|
|
5097
5094
|
}
|
|
5098
5095
|
}
|
|
5099
5096
|
}
|
|
5100
5097
|
};
|
|
5101
5098
|
|
|
5099
|
+
var forEach = function forEach(list, iterator, thisArg) {
|
|
5100
|
+
if (!isCallable(iterator)) {
|
|
5101
|
+
throw new TypeError('iterator must be a function');
|
|
5102
|
+
}
|
|
5102
5103
|
|
|
5103
|
-
|
|
5104
|
+
var receiver;
|
|
5105
|
+
if (arguments.length >= 3) {
|
|
5106
|
+
receiver = thisArg;
|
|
5107
|
+
}
|
|
5108
|
+
|
|
5109
|
+
if (toStr.call(list) === '[object Array]') {
|
|
5110
|
+
forEachArray(list, iterator, receiver);
|
|
5111
|
+
} else if (typeof list === 'string') {
|
|
5112
|
+
forEachString(list, iterator, receiver);
|
|
5113
|
+
} else {
|
|
5114
|
+
forEachObject(list, iterator, receiver);
|
|
5115
|
+
}
|
|
5116
|
+
};
|
|
5117
|
+
|
|
5118
|
+
module.exports = forEach;
|
|
5119
|
+
|
|
5120
|
+
},{"is-callable":32}],22:[function(require,module,exports){
|
|
5104
5121
|
'use strict';
|
|
5105
5122
|
|
|
5106
5123
|
/* eslint no-invalid-this: 1 */
|
|
@@ -5154,14 +5171,14 @@ module.exports = function bind(that) {
|
|
|
5154
5171
|
return bound;
|
|
5155
5172
|
};
|
|
5156
5173
|
|
|
5157
|
-
},{}],
|
|
5174
|
+
},{}],23:[function(require,module,exports){
|
|
5158
5175
|
'use strict';
|
|
5159
5176
|
|
|
5160
5177
|
var implementation = require('./implementation');
|
|
5161
5178
|
|
|
5162
5179
|
module.exports = Function.prototype.bind || implementation;
|
|
5163
5180
|
|
|
5164
|
-
},{"./implementation":
|
|
5181
|
+
},{"./implementation":22}],24:[function(require,module,exports){
|
|
5165
5182
|
'use strict';
|
|
5166
5183
|
|
|
5167
5184
|
var undefined;
|
|
@@ -5493,7 +5510,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
5493
5510
|
return value;
|
|
5494
5511
|
};
|
|
5495
5512
|
|
|
5496
|
-
},{"function-bind":
|
|
5513
|
+
},{"function-bind":23,"has":28,"has-symbols":25}],25:[function(require,module,exports){
|
|
5497
5514
|
'use strict';
|
|
5498
5515
|
|
|
5499
5516
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
@@ -5508,7 +5525,7 @@ module.exports = function hasNativeSymbols() {
|
|
|
5508
5525
|
return hasSymbolSham();
|
|
5509
5526
|
};
|
|
5510
5527
|
|
|
5511
|
-
},{"./shams":
|
|
5528
|
+
},{"./shams":26}],26:[function(require,module,exports){
|
|
5512
5529
|
'use strict';
|
|
5513
5530
|
|
|
5514
5531
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
@@ -5552,14 +5569,23 @@ module.exports = function hasSymbols() {
|
|
|
5552
5569
|
return true;
|
|
5553
5570
|
};
|
|
5554
5571
|
|
|
5555
|
-
},{}],
|
|
5572
|
+
},{}],27:[function(require,module,exports){
|
|
5573
|
+
'use strict';
|
|
5574
|
+
|
|
5575
|
+
var hasSymbols = require('has-symbols/shams');
|
|
5576
|
+
|
|
5577
|
+
module.exports = function hasToStringTagShams() {
|
|
5578
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
5579
|
+
};
|
|
5580
|
+
|
|
5581
|
+
},{"has-symbols/shams":26}],28:[function(require,module,exports){
|
|
5556
5582
|
'use strict';
|
|
5557
5583
|
|
|
5558
5584
|
var bind = require('function-bind');
|
|
5559
5585
|
|
|
5560
5586
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
5561
5587
|
|
|
5562
|
-
},{"function-bind":
|
|
5588
|
+
},{"function-bind":23}],29:[function(require,module,exports){
|
|
5563
5589
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5564
5590
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
5565
5591
|
var e, m
|
|
@@ -5678,7 +5704,7 @@ if (typeof Object.create === 'function') {
|
|
|
5678
5704
|
},{}],31:[function(require,module,exports){
|
|
5679
5705
|
'use strict';
|
|
5680
5706
|
|
|
5681
|
-
var hasToStringTag =
|
|
5707
|
+
var hasToStringTag = require('has-tostringtag/shams')();
|
|
5682
5708
|
var callBound = require('call-bind/callBound');
|
|
5683
5709
|
|
|
5684
5710
|
var $toString = callBound('Object.prototype.toString');
|
|
@@ -5710,13 +5736,89 @@ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
|
5710
5736
|
|
|
5711
5737
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
5712
5738
|
|
|
5713
|
-
},{"call-bind/callBound":
|
|
5739
|
+
},{"call-bind/callBound":17,"has-tostringtag/shams":27}],32:[function(require,module,exports){
|
|
5740
|
+
'use strict';
|
|
5741
|
+
|
|
5742
|
+
var fnToStr = Function.prototype.toString;
|
|
5743
|
+
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
5744
|
+
var badArrayLike;
|
|
5745
|
+
var isCallableMarker;
|
|
5746
|
+
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
5747
|
+
try {
|
|
5748
|
+
badArrayLike = Object.defineProperty({}, 'length', {
|
|
5749
|
+
get: function () {
|
|
5750
|
+
throw isCallableMarker;
|
|
5751
|
+
}
|
|
5752
|
+
});
|
|
5753
|
+
isCallableMarker = {};
|
|
5754
|
+
// eslint-disable-next-line no-throw-literal
|
|
5755
|
+
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
5756
|
+
} catch (_) {
|
|
5757
|
+
if (_ !== isCallableMarker) {
|
|
5758
|
+
reflectApply = null;
|
|
5759
|
+
}
|
|
5760
|
+
}
|
|
5761
|
+
} else {
|
|
5762
|
+
reflectApply = null;
|
|
5763
|
+
}
|
|
5764
|
+
|
|
5765
|
+
var constructorRegex = /^\s*class\b/;
|
|
5766
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
5767
|
+
try {
|
|
5768
|
+
var fnStr = fnToStr.call(value);
|
|
5769
|
+
return constructorRegex.test(fnStr);
|
|
5770
|
+
} catch (e) {
|
|
5771
|
+
return false; // not a function
|
|
5772
|
+
}
|
|
5773
|
+
};
|
|
5774
|
+
|
|
5775
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
5776
|
+
try {
|
|
5777
|
+
if (isES6ClassFn(value)) { return false; }
|
|
5778
|
+
fnToStr.call(value);
|
|
5779
|
+
return true;
|
|
5780
|
+
} catch (e) {
|
|
5781
|
+
return false;
|
|
5782
|
+
}
|
|
5783
|
+
};
|
|
5784
|
+
var toStr = Object.prototype.toString;
|
|
5785
|
+
var fnClass = '[object Function]';
|
|
5786
|
+
var genClass = '[object GeneratorFunction]';
|
|
5787
|
+
var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`
|
|
5788
|
+
/* globals document: false */
|
|
5789
|
+
var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
|
|
5790
|
+
|
|
5791
|
+
module.exports = reflectApply
|
|
5792
|
+
? function isCallable(value) {
|
|
5793
|
+
if (value === documentDotAll) { return true; }
|
|
5794
|
+
if (!value) { return false; }
|
|
5795
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
5796
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
5797
|
+
try {
|
|
5798
|
+
reflectApply(value, null, badArrayLike);
|
|
5799
|
+
} catch (e) {
|
|
5800
|
+
if (e !== isCallableMarker) { return false; }
|
|
5801
|
+
}
|
|
5802
|
+
return !isES6ClassFn(value);
|
|
5803
|
+
}
|
|
5804
|
+
: function isCallable(value) {
|
|
5805
|
+
if (value === documentDotAll) { return true; }
|
|
5806
|
+
if (!value) { return false; }
|
|
5807
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
5808
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
5809
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
5810
|
+
if (isES6ClassFn(value)) { return false; }
|
|
5811
|
+
var strClass = toStr.call(value);
|
|
5812
|
+
return strClass === fnClass || strClass === genClass;
|
|
5813
|
+
};
|
|
5814
|
+
|
|
5815
|
+
},{}],33:[function(require,module,exports){
|
|
5714
5816
|
'use strict';
|
|
5715
5817
|
|
|
5716
5818
|
var toStr = Object.prototype.toString;
|
|
5717
5819
|
var fnToStr = Function.prototype.toString;
|
|
5718
5820
|
var isFnRegex = /^\s*(?:function)?\*/;
|
|
5719
|
-
var hasToStringTag =
|
|
5821
|
+
var hasToStringTag = require('has-tostringtag/shams')();
|
|
5720
5822
|
var getProto = Object.getPrototypeOf;
|
|
5721
5823
|
var getGeneratorFunc = function () { // eslint-disable-line consistent-return
|
|
5722
5824
|
if (!hasToStringTag) {
|
|
@@ -5727,8 +5829,7 @@ var getGeneratorFunc = function () { // eslint-disable-line consistent-return
|
|
|
5727
5829
|
} catch (e) {
|
|
5728
5830
|
}
|
|
5729
5831
|
};
|
|
5730
|
-
var
|
|
5731
|
-
var GeneratorFunction = getProto && generatorFunc ? getProto(generatorFunc) : false;
|
|
5832
|
+
var GeneratorFunction;
|
|
5732
5833
|
|
|
5733
5834
|
module.exports = function isGeneratorFunction(fn) {
|
|
5734
5835
|
if (typeof fn !== 'function') {
|
|
@@ -5741,21 +5842,28 @@ module.exports = function isGeneratorFunction(fn) {
|
|
|
5741
5842
|
var str = toStr.call(fn);
|
|
5742
5843
|
return str === '[object GeneratorFunction]';
|
|
5743
5844
|
}
|
|
5744
|
-
|
|
5845
|
+
if (!getProto) {
|
|
5846
|
+
return false;
|
|
5847
|
+
}
|
|
5848
|
+
if (typeof GeneratorFunction === 'undefined') {
|
|
5849
|
+
var generatorFunc = getGeneratorFunc();
|
|
5850
|
+
GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
|
|
5851
|
+
}
|
|
5852
|
+
return getProto(fn) === GeneratorFunction;
|
|
5745
5853
|
};
|
|
5746
5854
|
|
|
5747
|
-
},{}],
|
|
5855
|
+
},{"has-tostringtag/shams":27}],34:[function(require,module,exports){
|
|
5748
5856
|
(function (global){(function (){
|
|
5749
5857
|
'use strict';
|
|
5750
5858
|
|
|
5751
|
-
var forEach = require('
|
|
5859
|
+
var forEach = require('for-each');
|
|
5752
5860
|
var availableTypedArrays = require('available-typed-arrays');
|
|
5753
5861
|
var callBound = require('call-bind/callBound');
|
|
5754
5862
|
|
|
5755
5863
|
var $toString = callBound('Object.prototype.toString');
|
|
5756
|
-
var
|
|
5757
|
-
var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
|
|
5864
|
+
var hasToStringTag = require('has-tostringtag/shams')();
|
|
5758
5865
|
|
|
5866
|
+
var g = typeof globalThis === 'undefined' ? global : globalThis;
|
|
5759
5867
|
var typedArrays = availableTypedArrays();
|
|
5760
5868
|
|
|
5761
5869
|
var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
|
@@ -5772,17 +5880,16 @@ var gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
|
|
|
5772
5880
|
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
|
5773
5881
|
if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
5774
5882
|
forEach(typedArrays, function (typedArray) {
|
|
5775
|
-
var arr = new
|
|
5776
|
-
if (
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5883
|
+
var arr = new g[typedArray]();
|
|
5884
|
+
if (Symbol.toStringTag in arr) {
|
|
5885
|
+
var proto = getPrototypeOf(arr);
|
|
5886
|
+
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
5887
|
+
if (!descriptor) {
|
|
5888
|
+
var superProto = getPrototypeOf(proto);
|
|
5889
|
+
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
5890
|
+
}
|
|
5891
|
+
toStrTags[typedArray] = descriptor.get;
|
|
5784
5892
|
}
|
|
5785
|
-
toStrTags[typedArray] = descriptor.get;
|
|
5786
5893
|
});
|
|
5787
5894
|
}
|
|
5788
5895
|
|
|
@@ -5800,7 +5907,7 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
|
5800
5907
|
|
|
5801
5908
|
module.exports = function isTypedArray(value) {
|
|
5802
5909
|
if (!value || typeof value !== 'object') { return false; }
|
|
5803
|
-
if (!hasToStringTag) {
|
|
5910
|
+
if (!hasToStringTag || !(Symbol.toStringTag in value)) {
|
|
5804
5911
|
var tag = $slice($toString(value), 8, -1);
|
|
5805
5912
|
return $indexOf(typedArrays, tag) > -1;
|
|
5806
5913
|
}
|
|
@@ -5809,7 +5916,7 @@ module.exports = function isTypedArray(value) {
|
|
|
5809
5916
|
};
|
|
5810
5917
|
|
|
5811
5918
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
5812
|
-
},{"available-typed-arrays":
|
|
5919
|
+
},{"available-typed-arrays":11,"call-bind/callBound":17,"es-abstract/helpers/getOwnPropertyDescriptor":19,"for-each":21,"has-tostringtag/shams":27}],35:[function(require,module,exports){
|
|
5813
5920
|
/*
|
|
5814
5921
|
object-assign
|
|
5815
5922
|
(c) Sindre Sorhus
|
|
@@ -5901,7 +6008,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
5901
6008
|
return to;
|
|
5902
6009
|
};
|
|
5903
6010
|
|
|
5904
|
-
},{}],
|
|
6011
|
+
},{}],36:[function(require,module,exports){
|
|
5905
6012
|
// shim for using process in browser
|
|
5906
6013
|
var process = module.exports = {};
|
|
5907
6014
|
|
|
@@ -6087,7 +6194,7 @@ process.chdir = function (dir) {
|
|
|
6087
6194
|
};
|
|
6088
6195
|
process.umask = function() { return 0; };
|
|
6089
6196
|
|
|
6090
|
-
},{}],
|
|
6197
|
+
},{}],37:[function(require,module,exports){
|
|
6091
6198
|
'use strict';
|
|
6092
6199
|
|
|
6093
6200
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
|
@@ -6216,7 +6323,7 @@ createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
|
|
|
6216
6323
|
createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
|
|
6217
6324
|
module.exports.codes = codes;
|
|
6218
6325
|
|
|
6219
|
-
},{}],
|
|
6326
|
+
},{}],38:[function(require,module,exports){
|
|
6220
6327
|
(function (process){(function (){
|
|
6221
6328
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
6222
6329
|
//
|
|
@@ -6358,7 +6465,7 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
|
6358
6465
|
}
|
|
6359
6466
|
});
|
|
6360
6467
|
}).call(this)}).call(this,require('_process'))
|
|
6361
|
-
},{"./_stream_readable":
|
|
6468
|
+
},{"./_stream_readable":40,"./_stream_writable":42,"_process":36,"inherits":30}],39:[function(require,module,exports){
|
|
6362
6469
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
6363
6470
|
//
|
|
6364
6471
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -6398,7 +6505,7 @@ function PassThrough(options) {
|
|
|
6398
6505
|
PassThrough.prototype._transform = function (chunk, encoding, cb) {
|
|
6399
6506
|
cb(null, chunk);
|
|
6400
6507
|
};
|
|
6401
|
-
},{"./_stream_transform":
|
|
6508
|
+
},{"./_stream_transform":41,"inherits":30}],40:[function(require,module,exports){
|
|
6402
6509
|
(function (process,global){(function (){
|
|
6403
6510
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
6404
6511
|
//
|
|
@@ -7525,7 +7632,7 @@ function indexOf(xs, x) {
|
|
|
7525
7632
|
return -1;
|
|
7526
7633
|
}
|
|
7527
7634
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
7528
|
-
},{"../errors":
|
|
7635
|
+
},{"../errors":37,"./_stream_duplex":38,"./internal/streams/async_iterator":43,"./internal/streams/buffer_list":44,"./internal/streams/destroy":45,"./internal/streams/from":47,"./internal/streams/state":49,"./internal/streams/stream":50,"_process":36,"buffer":16,"events":20,"inherits":30,"string_decoder/":53,"util":15}],41:[function(require,module,exports){
|
|
7529
7636
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
7530
7637
|
//
|
|
7531
7638
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -7727,7 +7834,7 @@ function done(stream, er, data) {
|
|
|
7727
7834
|
if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
|
|
7728
7835
|
return stream.push(null);
|
|
7729
7836
|
}
|
|
7730
|
-
},{"../errors":
|
|
7837
|
+
},{"../errors":37,"./_stream_duplex":38,"inherits":30}],42:[function(require,module,exports){
|
|
7731
7838
|
(function (process,global){(function (){
|
|
7732
7839
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
7733
7840
|
//
|
|
@@ -8427,7 +8534,7 @@ Writable.prototype._destroy = function (err, cb) {
|
|
|
8427
8534
|
cb(err);
|
|
8428
8535
|
};
|
|
8429
8536
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
8430
|
-
},{"../errors":
|
|
8537
|
+
},{"../errors":37,"./_stream_duplex":38,"./internal/streams/destroy":45,"./internal/streams/state":49,"./internal/streams/stream":50,"_process":36,"buffer":16,"inherits":30,"util-deprecate":55}],43:[function(require,module,exports){
|
|
8431
8538
|
(function (process){(function (){
|
|
8432
8539
|
'use strict';
|
|
8433
8540
|
|
|
@@ -8637,7 +8744,7 @@ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterat
|
|
|
8637
8744
|
|
|
8638
8745
|
module.exports = createReadableStreamAsyncIterator;
|
|
8639
8746
|
}).call(this)}).call(this,require('_process'))
|
|
8640
|
-
},{"./end-of-stream":
|
|
8747
|
+
},{"./end-of-stream":46,"_process":36}],44:[function(require,module,exports){
|
|
8641
8748
|
'use strict';
|
|
8642
8749
|
|
|
8643
8750
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -8848,7 +8955,7 @@ function () {
|
|
|
8848
8955
|
|
|
8849
8956
|
return BufferList;
|
|
8850
8957
|
}();
|
|
8851
|
-
},{"buffer":
|
|
8958
|
+
},{"buffer":16,"util":15}],45:[function(require,module,exports){
|
|
8852
8959
|
(function (process){(function (){
|
|
8853
8960
|
'use strict'; // undocumented cb() API, needed for core, not for public API
|
|
8854
8961
|
|
|
@@ -8956,7 +9063,7 @@ module.exports = {
|
|
|
8956
9063
|
errorOrDestroy: errorOrDestroy
|
|
8957
9064
|
};
|
|
8958
9065
|
}).call(this)}).call(this,require('_process'))
|
|
8959
|
-
},{"_process":
|
|
9066
|
+
},{"_process":36}],46:[function(require,module,exports){
|
|
8960
9067
|
// Ported from https://github.com/mafintosh/end-of-stream with
|
|
8961
9068
|
// permission from the author, Mathias Buus (@mafintosh).
|
|
8962
9069
|
'use strict';
|
|
@@ -9061,12 +9168,12 @@ function eos(stream, opts, callback) {
|
|
|
9061
9168
|
}
|
|
9062
9169
|
|
|
9063
9170
|
module.exports = eos;
|
|
9064
|
-
},{"../../../errors":
|
|
9171
|
+
},{"../../../errors":37}],47:[function(require,module,exports){
|
|
9065
9172
|
module.exports = function () {
|
|
9066
9173
|
throw new Error('Readable.from is not available in the browser')
|
|
9067
9174
|
};
|
|
9068
9175
|
|
|
9069
|
-
},{}],
|
|
9176
|
+
},{}],48:[function(require,module,exports){
|
|
9070
9177
|
// Ported from https://github.com/mafintosh/pump with
|
|
9071
9178
|
// permission from the author, Mathias Buus (@mafintosh).
|
|
9072
9179
|
'use strict';
|
|
@@ -9164,7 +9271,7 @@ function pipeline() {
|
|
|
9164
9271
|
}
|
|
9165
9272
|
|
|
9166
9273
|
module.exports = pipeline;
|
|
9167
|
-
},{"../../../errors":
|
|
9274
|
+
},{"../../../errors":37,"./end-of-stream":46}],49:[function(require,module,exports){
|
|
9168
9275
|
'use strict';
|
|
9169
9276
|
|
|
9170
9277
|
var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;
|
|
@@ -9192,10 +9299,22 @@ function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
|
|
9192
9299
|
module.exports = {
|
|
9193
9300
|
getHighWaterMark: getHighWaterMark
|
|
9194
9301
|
};
|
|
9195
|
-
},{"../../../errors":
|
|
9302
|
+
},{"../../../errors":37}],50:[function(require,module,exports){
|
|
9196
9303
|
module.exports = require('events').EventEmitter;
|
|
9197
9304
|
|
|
9198
|
-
},{"events":
|
|
9305
|
+
},{"events":20}],51:[function(require,module,exports){
|
|
9306
|
+
exports = module.exports = require('./lib/_stream_readable.js');
|
|
9307
|
+
exports.Stream = exports;
|
|
9308
|
+
exports.Readable = exports;
|
|
9309
|
+
exports.Writable = require('./lib/_stream_writable.js');
|
|
9310
|
+
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
9311
|
+
exports.Transform = require('./lib/_stream_transform.js');
|
|
9312
|
+
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
9313
|
+
exports.finished = require('./lib/internal/streams/end-of-stream.js');
|
|
9314
|
+
exports.pipeline = require('./lib/internal/streams/pipeline.js');
|
|
9315
|
+
|
|
9316
|
+
},{"./lib/_stream_duplex.js":38,"./lib/_stream_passthrough.js":39,"./lib/_stream_readable.js":40,"./lib/_stream_transform.js":41,"./lib/_stream_writable.js":42,"./lib/internal/streams/end-of-stream.js":46,"./lib/internal/streams/pipeline.js":48}],52:[function(require,module,exports){
|
|
9317
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9199
9318
|
/* eslint-disable node/no-deprecated-api */
|
|
9200
9319
|
var buffer = require('buffer')
|
|
9201
9320
|
var Buffer = buffer.Buffer
|
|
@@ -9218,6 +9337,8 @@ function SafeBuffer (arg, encodingOrOffset, length) {
|
|
|
9218
9337
|
return Buffer(arg, encodingOrOffset, length)
|
|
9219
9338
|
}
|
|
9220
9339
|
|
|
9340
|
+
SafeBuffer.prototype = Object.create(Buffer.prototype)
|
|
9341
|
+
|
|
9221
9342
|
// Copy static methods from Buffer
|
|
9222
9343
|
copyProps(Buffer, SafeBuffer)
|
|
9223
9344
|
|
|
@@ -9259,7 +9380,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
|
|
|
9259
9380
|
return buffer.SlowBuffer(size)
|
|
9260
9381
|
}
|
|
9261
9382
|
|
|
9262
|
-
},{"buffer":
|
|
9383
|
+
},{"buffer":16}],53:[function(require,module,exports){
|
|
9263
9384
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
9264
9385
|
//
|
|
9265
9386
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -9556,19 +9677,7 @@ function simpleWrite(buf) {
|
|
|
9556
9677
|
function simpleEnd(buf) {
|
|
9557
9678
|
return buf && buf.length ? this.write(buf) : '';
|
|
9558
9679
|
}
|
|
9559
|
-
},{"safe-buffer":
|
|
9560
|
-
exports = module.exports = require('./lib/_stream_readable.js');
|
|
9561
|
-
exports.Stream = exports;
|
|
9562
|
-
exports.Readable = exports;
|
|
9563
|
-
exports.Writable = require('./lib/_stream_writable.js');
|
|
9564
|
-
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
9565
|
-
exports.Transform = require('./lib/_stream_transform.js');
|
|
9566
|
-
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
9567
|
-
exports.finished = require('./lib/internal/streams/end-of-stream.js');
|
|
9568
|
-
exports.pipeline = require('./lib/internal/streams/pipeline.js');
|
|
9569
|
-
|
|
9570
|
-
},{"./lib/_stream_duplex.js":37,"./lib/_stream_passthrough.js":38,"./lib/_stream_readable.js":39,"./lib/_stream_transform.js":40,"./lib/_stream_writable.js":41,"./lib/internal/streams/end-of-stream.js":45,"./lib/internal/streams/pipeline.js":47}],53:[function(require,module,exports){
|
|
9571
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9680
|
+
},{"safe-buffer":54}],54:[function(require,module,exports){
|
|
9572
9681
|
/* eslint-disable node/no-deprecated-api */
|
|
9573
9682
|
var buffer = require('buffer')
|
|
9574
9683
|
var Buffer = buffer.Buffer
|
|
@@ -9591,8 +9700,6 @@ function SafeBuffer (arg, encodingOrOffset, length) {
|
|
|
9591
9700
|
return Buffer(arg, encodingOrOffset, length)
|
|
9592
9701
|
}
|
|
9593
9702
|
|
|
9594
|
-
SafeBuffer.prototype = Object.create(Buffer.prototype)
|
|
9595
|
-
|
|
9596
9703
|
// Copy static methods from Buffer
|
|
9597
9704
|
copyProps(Buffer, SafeBuffer)
|
|
9598
9705
|
|
|
@@ -9634,7 +9741,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
|
|
|
9634
9741
|
return buffer.SlowBuffer(size)
|
|
9635
9742
|
}
|
|
9636
9743
|
|
|
9637
|
-
},{"buffer":
|
|
9744
|
+
},{"buffer":16}],55:[function(require,module,exports){
|
|
9638
9745
|
(function (global){(function (){
|
|
9639
9746
|
|
|
9640
9747
|
/**
|
|
@@ -9705,9 +9812,9 @@ function config (name) {
|
|
|
9705
9812
|
}
|
|
9706
9813
|
|
|
9707
9814
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
9708
|
-
},{}],
|
|
9709
|
-
arguments[4][
|
|
9710
|
-
},{"dup":
|
|
9815
|
+
},{}],56:[function(require,module,exports){
|
|
9816
|
+
arguments[4][9][0].apply(exports,arguments)
|
|
9817
|
+
},{"dup":9}],57:[function(require,module,exports){
|
|
9711
9818
|
// Currently in sync with Node.js lib/internal/util/types.js
|
|
9712
9819
|
// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
|
|
9713
9820
|
|
|
@@ -9945,21 +10052,23 @@ function isDataView(value) {
|
|
|
9945
10052
|
}
|
|
9946
10053
|
exports.isDataView = isDataView;
|
|
9947
10054
|
|
|
10055
|
+
// Store a copy of SharedArrayBuffer in case it's deleted elsewhere
|
|
10056
|
+
var SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined;
|
|
9948
10057
|
function isSharedArrayBufferToString(value) {
|
|
9949
10058
|
return ObjectToString(value) === '[object SharedArrayBuffer]';
|
|
9950
10059
|
}
|
|
9951
|
-
isSharedArrayBufferToString.working = (
|
|
9952
|
-
typeof SharedArrayBuffer !== 'undefined' &&
|
|
9953
|
-
isSharedArrayBufferToString(new SharedArrayBuffer())
|
|
9954
|
-
);
|
|
9955
10060
|
function isSharedArrayBuffer(value) {
|
|
9956
|
-
if (typeof
|
|
10061
|
+
if (typeof SharedArrayBufferCopy === 'undefined') {
|
|
9957
10062
|
return false;
|
|
9958
10063
|
}
|
|
9959
10064
|
|
|
10065
|
+
if (typeof isSharedArrayBufferToString.working === 'undefined') {
|
|
10066
|
+
isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
|
|
10067
|
+
}
|
|
10068
|
+
|
|
9960
10069
|
return isSharedArrayBufferToString.working
|
|
9961
10070
|
? isSharedArrayBufferToString(value)
|
|
9962
|
-
: value instanceof
|
|
10071
|
+
: value instanceof SharedArrayBufferCopy;
|
|
9963
10072
|
}
|
|
9964
10073
|
exports.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
9965
10074
|
|
|
@@ -10041,7 +10150,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
|
10041
10150
|
});
|
|
10042
10151
|
});
|
|
10043
10152
|
|
|
10044
|
-
},{"is-arguments":31,"is-generator-function":
|
|
10153
|
+
},{"is-arguments":31,"is-generator-function":33,"is-typed-array":34,"which-typed-array":59}],58:[function(require,module,exports){
|
|
10045
10154
|
(function (process){(function (){
|
|
10046
10155
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
10047
10156
|
//
|
|
@@ -10760,18 +10869,18 @@ function callbackify(original) {
|
|
|
10760
10869
|
exports.callbackify = callbackify;
|
|
10761
10870
|
|
|
10762
10871
|
}).call(this)}).call(this,require('_process'))
|
|
10763
|
-
},{"./support/isBuffer":
|
|
10872
|
+
},{"./support/isBuffer":56,"./support/types":57,"_process":36,"inherits":30}],59:[function(require,module,exports){
|
|
10764
10873
|
(function (global){(function (){
|
|
10765
10874
|
'use strict';
|
|
10766
10875
|
|
|
10767
|
-
var forEach = require('
|
|
10876
|
+
var forEach = require('for-each');
|
|
10768
10877
|
var availableTypedArrays = require('available-typed-arrays');
|
|
10769
10878
|
var callBound = require('call-bind/callBound');
|
|
10770
10879
|
|
|
10771
10880
|
var $toString = callBound('Object.prototype.toString');
|
|
10772
|
-
var
|
|
10773
|
-
var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
|
|
10881
|
+
var hasToStringTag = require('has-tostringtag/shams')();
|
|
10774
10882
|
|
|
10883
|
+
var g = typeof globalThis === 'undefined' ? global : globalThis;
|
|
10775
10884
|
var typedArrays = availableTypedArrays();
|
|
10776
10885
|
|
|
10777
10886
|
var $slice = callBound('String.prototype.slice');
|
|
@@ -10780,18 +10889,17 @@ var gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
|
|
|
10780
10889
|
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
|
10781
10890
|
if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
10782
10891
|
forEach(typedArrays, function (typedArray) {
|
|
10783
|
-
if (typeof
|
|
10784
|
-
var arr = new
|
|
10785
|
-
if (
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10892
|
+
if (typeof g[typedArray] === 'function') {
|
|
10893
|
+
var arr = new g[typedArray]();
|
|
10894
|
+
if (Symbol.toStringTag in arr) {
|
|
10895
|
+
var proto = getPrototypeOf(arr);
|
|
10896
|
+
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
10897
|
+
if (!descriptor) {
|
|
10898
|
+
var superProto = getPrototypeOf(proto);
|
|
10899
|
+
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
10900
|
+
}
|
|
10901
|
+
toStrTags[typedArray] = descriptor.get;
|
|
10793
10902
|
}
|
|
10794
|
-
toStrTags[typedArray] = descriptor.get;
|
|
10795
10903
|
}
|
|
10796
10904
|
});
|
|
10797
10905
|
}
|
|
@@ -10815,10 +10923,10 @@ var isTypedArray = require('is-typed-array');
|
|
|
10815
10923
|
|
|
10816
10924
|
module.exports = function whichTypedArray(value) {
|
|
10817
10925
|
if (!isTypedArray(value)) { return false; }
|
|
10818
|
-
if (!hasToStringTag) { return $slice($toString(value), 8, -1); }
|
|
10926
|
+
if (!hasToStringTag || !(Symbol.toStringTag in value)) { return $slice($toString(value), 8, -1); }
|
|
10819
10927
|
return tryTypedArrays(value);
|
|
10820
10928
|
};
|
|
10821
10929
|
|
|
10822
10930
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
10823
|
-
},{"available-typed-arrays":
|
|
10931
|
+
},{"available-typed-arrays":11,"call-bind/callBound":17,"es-abstract/helpers/getOwnPropertyDescriptor":19,"for-each":21,"has-tostringtag/shams":27,"is-typed-array":34}]},{},[1])(1)
|
|
10824
10932
|
});
|