extra-request 4.1.2 → 4.1.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/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +578 -997
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +578 -997
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +578 -997
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +578 -997
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/es2015/index.umd.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
9
|
-
var es2018$
|
|
9
|
+
var es2018$a = {};
|
|
10
10
|
|
|
11
11
|
var fetch_browser = {};
|
|
12
12
|
|
|
@@ -77,34 +77,34 @@
|
|
|
77
77
|
__exportStar(blob_browser, exports);
|
|
78
78
|
__exportStar(eventSource_browser, exports);
|
|
79
79
|
|
|
80
|
-
}(es2018$
|
|
80
|
+
}(es2018$a));
|
|
81
81
|
|
|
82
|
-
var es2018$
|
|
82
|
+
var es2018$9 = {};
|
|
83
83
|
|
|
84
|
-
var es2018$
|
|
84
|
+
var es2018$8 = {};
|
|
85
85
|
|
|
86
86
|
var customError = {};
|
|
87
87
|
|
|
88
|
-
var es2018$
|
|
88
|
+
var es2018$7 = {};
|
|
89
89
|
|
|
90
|
-
var
|
|
90
|
+
var intermediate = {};
|
|
91
91
|
|
|
92
92
|
var chunkAsync$1 = {};
|
|
93
93
|
|
|
94
|
-
var es2018$
|
|
94
|
+
var es2018$6 = {};
|
|
95
95
|
|
|
96
|
-
var go$
|
|
96
|
+
var go$1 = {};
|
|
97
97
|
|
|
98
|
-
go$
|
|
99
|
-
function go
|
|
98
|
+
go$1.go = void 0;
|
|
99
|
+
function go(fn) {
|
|
100
100
|
return fn();
|
|
101
101
|
}
|
|
102
|
-
go$
|
|
102
|
+
go$1.go = go;
|
|
103
103
|
|
|
104
|
-
var goMicrotask$
|
|
104
|
+
var goMicrotask$1 = {};
|
|
105
105
|
|
|
106
|
-
goMicrotask$
|
|
107
|
-
function goMicrotask
|
|
106
|
+
goMicrotask$1.goMicrotask = void 0;
|
|
107
|
+
function goMicrotask(fn) {
|
|
108
108
|
return new Promise((resolve, reject) => {
|
|
109
109
|
queueMicrotask(async () => {
|
|
110
110
|
try {
|
|
@@ -116,15 +116,15 @@
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
goMicrotask$
|
|
119
|
+
goMicrotask$1.goMicrotask = goMicrotask;
|
|
120
120
|
|
|
121
|
-
var goMacrotask$
|
|
121
|
+
var goMacrotask$1 = {};
|
|
122
122
|
|
|
123
|
-
var es2018$
|
|
123
|
+
var es2018$5 = {};
|
|
124
124
|
|
|
125
125
|
var exponentialBackoff = {};
|
|
126
126
|
|
|
127
|
-
var es2018$
|
|
127
|
+
var es2018$4 = {};
|
|
128
128
|
|
|
129
129
|
var random$1 = {};
|
|
130
130
|
|
|
@@ -168,10 +168,10 @@
|
|
|
168
168
|
__exportStar(randomInt$1, exports);
|
|
169
169
|
__exportStar(randomIntInclusive$1, exports);
|
|
170
170
|
|
|
171
|
-
}(es2018$
|
|
171
|
+
}(es2018$4));
|
|
172
172
|
|
|
173
173
|
exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
|
|
174
|
-
const extra_rand_1 = es2018$
|
|
174
|
+
const extra_rand_1 = es2018$4;
|
|
175
175
|
function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
|
|
176
176
|
const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
|
|
177
177
|
if (jitter) {
|
|
@@ -286,13 +286,13 @@
|
|
|
286
286
|
__exportStar(setTimeoutLoop$1, exports);
|
|
287
287
|
__exportStar(setDynamicTimeoutLoop$1, exports);
|
|
288
288
|
|
|
289
|
-
}(es2018$
|
|
289
|
+
}(es2018$5));
|
|
290
290
|
|
|
291
|
-
goMacrotask$
|
|
292
|
-
const extra_timers_1
|
|
293
|
-
function goMacrotask
|
|
291
|
+
goMacrotask$1.goMacrotask = void 0;
|
|
292
|
+
const extra_timers_1 = es2018$5;
|
|
293
|
+
function goMacrotask(fn) {
|
|
294
294
|
return new Promise((resolve, reject) => {
|
|
295
|
-
(0, extra_timers_1
|
|
295
|
+
(0, extra_timers_1.setImmediate)(async () => {
|
|
296
296
|
try {
|
|
297
297
|
resolve(await fn());
|
|
298
298
|
}
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
});
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
goMacrotask$
|
|
305
|
+
goMacrotask$1.goMacrotask = goMacrotask;
|
|
306
306
|
|
|
307
307
|
(function (exports) {
|
|
308
308
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -318,15 +318,15 @@
|
|
|
318
318
|
}));
|
|
319
319
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
320
320
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
321
|
-
};__exportStar(go$
|
|
322
|
-
__exportStar(goMicrotask$
|
|
323
|
-
__exportStar(goMacrotask$
|
|
321
|
+
};__exportStar(go$1, exports);
|
|
322
|
+
__exportStar(goMicrotask$1, exports);
|
|
323
|
+
__exportStar(goMacrotask$1, exports);
|
|
324
324
|
|
|
325
|
-
}(es2018$
|
|
325
|
+
}(es2018$6));
|
|
326
326
|
|
|
327
327
|
chunkAsync$1.chunkAsync = void 0;
|
|
328
|
-
const go_1$g = es2018$
|
|
329
|
-
const errors_1$f = es2018$
|
|
328
|
+
const go_1$g = es2018$6;
|
|
329
|
+
const errors_1$f = es2018$8;
|
|
330
330
|
function chunkAsync(iterable, size) {
|
|
331
331
|
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
332
332
|
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -347,227 +347,227 @@
|
|
|
347
347
|
|
|
348
348
|
var chunkByAsync$1 = {};
|
|
349
349
|
|
|
350
|
-
var es2018$
|
|
350
|
+
var es2018$3 = {};
|
|
351
351
|
|
|
352
|
-
var array
|
|
352
|
+
var array = {};
|
|
353
353
|
|
|
354
|
-
array
|
|
355
|
-
function isArray
|
|
354
|
+
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
355
|
+
function isArray(val) {
|
|
356
356
|
return Array.isArray(val);
|
|
357
357
|
}
|
|
358
|
-
array
|
|
359
|
-
function isntArray
|
|
360
|
-
return !isArray
|
|
358
|
+
array.isArray = isArray;
|
|
359
|
+
function isntArray(val) {
|
|
360
|
+
return !isArray(val);
|
|
361
361
|
}
|
|
362
|
-
array
|
|
363
|
-
function isEmptyArray
|
|
362
|
+
array.isntArray = isntArray;
|
|
363
|
+
function isEmptyArray(val) {
|
|
364
364
|
return val.length === 0;
|
|
365
365
|
}
|
|
366
|
-
array
|
|
367
|
-
function isntEmptyArray
|
|
366
|
+
array.isEmptyArray = isEmptyArray;
|
|
367
|
+
function isntEmptyArray(val) {
|
|
368
368
|
return val.length !== 0;
|
|
369
369
|
}
|
|
370
|
-
array
|
|
370
|
+
array.isntEmptyArray = isntEmptyArray;
|
|
371
371
|
|
|
372
|
-
var asyncIterable
|
|
372
|
+
var asyncIterable = {};
|
|
373
373
|
|
|
374
|
-
var _null
|
|
374
|
+
var _null = {};
|
|
375
375
|
|
|
376
|
-
_null
|
|
377
|
-
function isNull
|
|
376
|
+
_null.isntNull = _null.isNull = void 0;
|
|
377
|
+
function isNull(val) {
|
|
378
378
|
return val === null;
|
|
379
379
|
}
|
|
380
|
-
_null
|
|
381
|
-
function isntNull
|
|
382
|
-
return !isNull
|
|
380
|
+
_null.isNull = isNull;
|
|
381
|
+
function isntNull(val) {
|
|
382
|
+
return !isNull(val);
|
|
383
383
|
}
|
|
384
|
-
_null
|
|
384
|
+
_null.isntNull = isntNull;
|
|
385
385
|
|
|
386
|
-
var _undefined
|
|
386
|
+
var _undefined = {};
|
|
387
387
|
|
|
388
|
-
_undefined
|
|
389
|
-
function isUndefined
|
|
388
|
+
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
389
|
+
function isUndefined(val) {
|
|
390
390
|
return val === undefined;
|
|
391
391
|
}
|
|
392
|
-
_undefined
|
|
393
|
-
function isntUndefined
|
|
394
|
-
return !isUndefined
|
|
392
|
+
_undefined.isUndefined = isUndefined;
|
|
393
|
+
function isntUndefined(val) {
|
|
394
|
+
return !isUndefined(val);
|
|
395
395
|
}
|
|
396
|
-
_undefined
|
|
396
|
+
_undefined.isntUndefined = isntUndefined;
|
|
397
397
|
|
|
398
|
-
var _function
|
|
398
|
+
var _function = {};
|
|
399
399
|
|
|
400
|
-
_function
|
|
401
|
-
function isFunction
|
|
400
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
401
|
+
function isFunction(val) {
|
|
402
402
|
return typeof val === 'function';
|
|
403
403
|
}
|
|
404
|
-
_function
|
|
405
|
-
function isntFunction
|
|
406
|
-
return !isFunction
|
|
404
|
+
_function.isFunction = isFunction;
|
|
405
|
+
function isntFunction(val) {
|
|
406
|
+
return !isFunction(val);
|
|
407
407
|
}
|
|
408
|
-
_function
|
|
408
|
+
_function.isntFunction = isntFunction;
|
|
409
409
|
|
|
410
|
-
asyncIterable
|
|
411
|
-
const null_1$
|
|
412
|
-
const undefined_1$
|
|
413
|
-
const function_1$
|
|
414
|
-
function isAsyncIterable
|
|
415
|
-
return (0, null_1$
|
|
416
|
-
&& (0, undefined_1$
|
|
417
|
-
&& (0, function_1$
|
|
410
|
+
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
411
|
+
const null_1$3 = _null;
|
|
412
|
+
const undefined_1$2 = _undefined;
|
|
413
|
+
const function_1$2 = _function;
|
|
414
|
+
function isAsyncIterable(val) {
|
|
415
|
+
return (0, null_1$3.isntNull)(val)
|
|
416
|
+
&& (0, undefined_1$2.isntUndefined)(val)
|
|
417
|
+
&& (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
|
|
418
418
|
}
|
|
419
|
-
asyncIterable
|
|
420
|
-
function isntAsyncIterable
|
|
421
|
-
return !isAsyncIterable
|
|
419
|
+
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
420
|
+
function isntAsyncIterable(val) {
|
|
421
|
+
return !isAsyncIterable(val);
|
|
422
422
|
}
|
|
423
|
-
asyncIterable
|
|
423
|
+
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
424
424
|
|
|
425
|
-
var bigint
|
|
425
|
+
var bigint = {};
|
|
426
426
|
|
|
427
|
-
bigint
|
|
428
|
-
function isBigInt
|
|
427
|
+
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
428
|
+
function isBigInt(val) {
|
|
429
429
|
return typeof val === 'bigint';
|
|
430
430
|
}
|
|
431
|
-
bigint
|
|
432
|
-
function isntBigInt
|
|
433
|
-
return !isBigInt
|
|
431
|
+
bigint.isBigInt = isBigInt;
|
|
432
|
+
function isntBigInt(val) {
|
|
433
|
+
return !isBigInt(val);
|
|
434
434
|
}
|
|
435
|
-
bigint
|
|
435
|
+
bigint.isntBigInt = isntBigInt;
|
|
436
436
|
|
|
437
|
-
var boolean
|
|
437
|
+
var boolean = {};
|
|
438
438
|
|
|
439
|
-
boolean
|
|
440
|
-
function isBoolean
|
|
439
|
+
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
440
|
+
function isBoolean(val) {
|
|
441
441
|
return typeof val === 'boolean';
|
|
442
442
|
}
|
|
443
|
-
boolean
|
|
444
|
-
function isntBoolean
|
|
445
|
-
return !isBoolean
|
|
443
|
+
boolean.isBoolean = isBoolean;
|
|
444
|
+
function isntBoolean(val) {
|
|
445
|
+
return !isBoolean(val);
|
|
446
446
|
}
|
|
447
|
-
boolean
|
|
447
|
+
boolean.isntBoolean = isntBoolean;
|
|
448
448
|
|
|
449
|
-
var char
|
|
449
|
+
var char = {};
|
|
450
450
|
|
|
451
|
-
var string
|
|
451
|
+
var string = {};
|
|
452
452
|
|
|
453
|
-
string
|
|
454
|
-
function isString
|
|
453
|
+
string.isntString = string.isString = void 0;
|
|
454
|
+
function isString(val) {
|
|
455
455
|
return typeof val === 'string';
|
|
456
456
|
}
|
|
457
|
-
string
|
|
458
|
-
function isntString
|
|
459
|
-
return !isString
|
|
457
|
+
string.isString = isString;
|
|
458
|
+
function isntString(val) {
|
|
459
|
+
return !isString(val);
|
|
460
460
|
}
|
|
461
|
-
string
|
|
461
|
+
string.isntString = isntString;
|
|
462
462
|
|
|
463
|
-
char
|
|
464
|
-
const string_1$
|
|
465
|
-
function isChar
|
|
466
|
-
return (0, string_1$
|
|
463
|
+
char.isntChar = char.isChar = void 0;
|
|
464
|
+
const string_1$1 = string;
|
|
465
|
+
function isChar(val) {
|
|
466
|
+
return (0, string_1$1.isString)(val)
|
|
467
467
|
&& val.length === 1;
|
|
468
468
|
}
|
|
469
|
-
char
|
|
470
|
-
function isntChar
|
|
471
|
-
return !isChar
|
|
469
|
+
char.isChar = isChar;
|
|
470
|
+
function isntChar(val) {
|
|
471
|
+
return !isChar(val);
|
|
472
472
|
}
|
|
473
|
-
char
|
|
473
|
+
char.isntChar = isntChar;
|
|
474
474
|
|
|
475
|
-
var date
|
|
475
|
+
var date = {};
|
|
476
476
|
|
|
477
|
-
date
|
|
478
|
-
function isDate
|
|
477
|
+
date.isntDate = date.isDate = void 0;
|
|
478
|
+
function isDate(val) {
|
|
479
479
|
return val instanceof Date;
|
|
480
480
|
}
|
|
481
|
-
date
|
|
482
|
-
function isntDate
|
|
483
|
-
return !isDate
|
|
481
|
+
date.isDate = isDate;
|
|
482
|
+
function isntDate(val) {
|
|
483
|
+
return !isDate(val);
|
|
484
484
|
}
|
|
485
|
-
date
|
|
485
|
+
date.isntDate = isntDate;
|
|
486
486
|
|
|
487
|
-
var _enum
|
|
487
|
+
var _enum = {};
|
|
488
488
|
|
|
489
|
-
_enum
|
|
490
|
-
function inEnum
|
|
489
|
+
_enum.inEnum = void 0;
|
|
490
|
+
function inEnum(val, _enum) {
|
|
491
491
|
return Object.values(_enum).includes(val);
|
|
492
492
|
}
|
|
493
|
-
_enum
|
|
493
|
+
_enum.inEnum = inEnum;
|
|
494
494
|
|
|
495
|
-
var error
|
|
495
|
+
var error = {};
|
|
496
496
|
|
|
497
|
-
error
|
|
498
|
-
function isError
|
|
497
|
+
error.isntError = error.isError = void 0;
|
|
498
|
+
function isError(val) {
|
|
499
499
|
return val instanceof Error;
|
|
500
500
|
}
|
|
501
|
-
error
|
|
502
|
-
function isntError
|
|
503
|
-
return !isError
|
|
501
|
+
error.isError = isError;
|
|
502
|
+
function isntError(val) {
|
|
503
|
+
return !isError(val);
|
|
504
504
|
}
|
|
505
|
-
error
|
|
505
|
+
error.isntError = isntError;
|
|
506
506
|
|
|
507
|
-
var falsy
|
|
507
|
+
var falsy = {};
|
|
508
508
|
|
|
509
|
-
falsy
|
|
510
|
-
function isFalsy
|
|
509
|
+
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
510
|
+
function isFalsy(val) {
|
|
511
511
|
return !val;
|
|
512
512
|
}
|
|
513
|
-
falsy
|
|
514
|
-
function isntFalsy
|
|
515
|
-
return !isFalsy
|
|
513
|
+
falsy.isFalsy = isFalsy;
|
|
514
|
+
function isntFalsy(val) {
|
|
515
|
+
return !isFalsy(val);
|
|
516
516
|
}
|
|
517
|
-
falsy
|
|
517
|
+
falsy.isntFalsy = isntFalsy;
|
|
518
518
|
|
|
519
|
-
var iterable
|
|
519
|
+
var iterable = {};
|
|
520
520
|
|
|
521
|
-
iterable
|
|
522
|
-
const null_1$
|
|
523
|
-
const undefined_1$
|
|
524
|
-
const function_1$
|
|
525
|
-
function isIterable
|
|
526
|
-
return (0, null_1$
|
|
527
|
-
&& (0, undefined_1$
|
|
528
|
-
&& (0, function_1$
|
|
521
|
+
iterable.isntIterable = iterable.isIterable = void 0;
|
|
522
|
+
const null_1$2 = _null;
|
|
523
|
+
const undefined_1$1 = _undefined;
|
|
524
|
+
const function_1$1 = _function;
|
|
525
|
+
function isIterable(val) {
|
|
526
|
+
return (0, null_1$2.isntNull)(val)
|
|
527
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
528
|
+
&& (0, function_1$1.isFunction)(val[Symbol.iterator]);
|
|
529
529
|
}
|
|
530
|
-
iterable
|
|
531
|
-
function isntIterable
|
|
532
|
-
return !isIterable
|
|
530
|
+
iterable.isIterable = isIterable;
|
|
531
|
+
function isntIterable(val) {
|
|
532
|
+
return !isIterable(val);
|
|
533
533
|
}
|
|
534
|
-
iterable
|
|
534
|
+
iterable.isntIterable = isntIterable;
|
|
535
535
|
|
|
536
|
-
var json$
|
|
536
|
+
var json$1 = {};
|
|
537
537
|
|
|
538
|
-
var number
|
|
538
|
+
var number = {};
|
|
539
539
|
|
|
540
|
-
number
|
|
541
|
-
function isNumber
|
|
540
|
+
number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
|
|
541
|
+
function isNumber(val) {
|
|
542
542
|
return typeof val === 'number';
|
|
543
543
|
}
|
|
544
|
-
number
|
|
545
|
-
function isntNumber
|
|
546
|
-
return !isNumber
|
|
544
|
+
number.isNumber = isNumber;
|
|
545
|
+
function isntNumber(val) {
|
|
546
|
+
return !isNumber(val);
|
|
547
547
|
}
|
|
548
|
-
number
|
|
549
|
-
function isFinite
|
|
548
|
+
number.isntNumber = isntNumber;
|
|
549
|
+
function isFinite(val) {
|
|
550
550
|
return Number.isFinite(val);
|
|
551
551
|
}
|
|
552
|
-
number
|
|
553
|
-
function isPositiveInfinity
|
|
552
|
+
number.isFinite = isFinite;
|
|
553
|
+
function isPositiveInfinity(val) {
|
|
554
554
|
return val === Infinity;
|
|
555
555
|
}
|
|
556
|
-
number
|
|
557
|
-
function isNegativeInfinity
|
|
556
|
+
number.isPositiveInfinity = isPositiveInfinity;
|
|
557
|
+
function isNegativeInfinity(val) {
|
|
558
558
|
return val === -Infinity;
|
|
559
559
|
}
|
|
560
|
-
number
|
|
561
|
-
function isNaN
|
|
560
|
+
number.isNegativeInfinity = isNegativeInfinity;
|
|
561
|
+
function isNaN(val) {
|
|
562
562
|
return Number.isNaN(val);
|
|
563
563
|
}
|
|
564
|
-
number
|
|
565
|
-
function isntNaN
|
|
566
|
-
return !isNaN
|
|
564
|
+
number.isNaN = isNaN;
|
|
565
|
+
function isntNaN(val) {
|
|
566
|
+
return !isNaN(val);
|
|
567
567
|
}
|
|
568
|
-
number
|
|
568
|
+
number.isntNaN = isntNaN;
|
|
569
569
|
|
|
570
|
-
var object
|
|
570
|
+
var object = {};
|
|
571
571
|
|
|
572
572
|
/** Detect free variable `global` from Node.js. */
|
|
573
573
|
|
|
@@ -795,7 +795,7 @@
|
|
|
795
795
|
* _.isPlainObject(Object.create(null));
|
|
796
796
|
* // => true
|
|
797
797
|
*/
|
|
798
|
-
function isPlainObject$
|
|
798
|
+
function isPlainObject$1(value) {
|
|
799
799
|
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
800
800
|
return false;
|
|
801
801
|
}
|
|
@@ -808,59 +808,59 @@
|
|
|
808
808
|
funcToString.call(Ctor) == objectCtorString;
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
-
var isPlainObject_1$
|
|
811
|
+
var isPlainObject_1$1 = isPlainObject$1;
|
|
812
812
|
|
|
813
|
-
var __importDefault
|
|
813
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
814
814
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
815
|
-
};object
|
|
816
|
-
const isPlainObject_1
|
|
817
|
-
function isObject
|
|
815
|
+
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
816
|
+
const isPlainObject_1 = __importDefault(isPlainObject_1$1);
|
|
817
|
+
function isObject(val) {
|
|
818
818
|
return val !== null
|
|
819
819
|
&& typeof val === 'object';
|
|
820
820
|
}
|
|
821
|
-
object
|
|
822
|
-
function isntObject
|
|
823
|
-
return !isObject
|
|
821
|
+
object.isObject = isObject;
|
|
822
|
+
function isntObject(val) {
|
|
823
|
+
return !isObject(val);
|
|
824
824
|
}
|
|
825
|
-
object
|
|
826
|
-
function isPlainObject
|
|
827
|
-
return (0, isPlainObject_1
|
|
825
|
+
object.isntObject = isntObject;
|
|
826
|
+
function isPlainObject(val) {
|
|
827
|
+
return (0, isPlainObject_1.default)(val);
|
|
828
828
|
}
|
|
829
|
-
object
|
|
830
|
-
function isntPlainObject
|
|
831
|
-
return !isPlainObject
|
|
829
|
+
object.isPlainObject = isPlainObject;
|
|
830
|
+
function isntPlainObject(val) {
|
|
831
|
+
return !isPlainObject(val);
|
|
832
832
|
}
|
|
833
|
-
object
|
|
834
|
-
function isEmptyObject
|
|
833
|
+
object.isntPlainObject = isntPlainObject;
|
|
834
|
+
function isEmptyObject(val) {
|
|
835
835
|
return Object.keys(val).length === 0;
|
|
836
836
|
}
|
|
837
|
-
object
|
|
838
|
-
function isntEmptyObject
|
|
837
|
+
object.isEmptyObject = isEmptyObject;
|
|
838
|
+
function isntEmptyObject(val) {
|
|
839
839
|
return Object.keys(val).length !== 0;
|
|
840
840
|
}
|
|
841
|
-
object
|
|
842
|
-
|
|
843
|
-
json$
|
|
844
|
-
const null_1$
|
|
845
|
-
const boolean_1
|
|
846
|
-
const string_1
|
|
847
|
-
const number_1
|
|
848
|
-
const array_1
|
|
849
|
-
const object_1$
|
|
850
|
-
function isJson
|
|
851
|
-
return (0, null_1$
|
|
852
|
-
|| (0, boolean_1
|
|
853
|
-
|| (0, string_1
|
|
854
|
-
|| (0, number_1
|
|
855
|
-
|| ((0, array_1
|
|
856
|
-
|| ((0, object_1$
|
|
857
|
-
}
|
|
858
|
-
json$
|
|
859
|
-
function isntJson
|
|
860
|
-
return !isJson
|
|
861
|
-
}
|
|
862
|
-
json$
|
|
863
|
-
function isJsonable
|
|
841
|
+
object.isntEmptyObject = isntEmptyObject;
|
|
842
|
+
|
|
843
|
+
json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
|
|
844
|
+
const null_1$1 = _null;
|
|
845
|
+
const boolean_1 = boolean;
|
|
846
|
+
const string_1 = string;
|
|
847
|
+
const number_1 = number;
|
|
848
|
+
const array_1 = array;
|
|
849
|
+
const object_1$1 = object;
|
|
850
|
+
function isJson(val) {
|
|
851
|
+
return (0, null_1$1.isNull)(val)
|
|
852
|
+
|| (0, boolean_1.isBoolean)(val)
|
|
853
|
+
|| (0, string_1.isString)(val)
|
|
854
|
+
|| (0, number_1.isNumber)(val)
|
|
855
|
+
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
856
|
+
|| ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
|
|
857
|
+
}
|
|
858
|
+
json$1.isJson = isJson;
|
|
859
|
+
function isntJson(val) {
|
|
860
|
+
return !isJson(val);
|
|
861
|
+
}
|
|
862
|
+
json$1.isntJson = isntJson;
|
|
863
|
+
function isJsonable(val) {
|
|
864
864
|
try {
|
|
865
865
|
JSON.stringify(val);
|
|
866
866
|
return true;
|
|
@@ -869,39 +869,54 @@
|
|
|
869
869
|
return false;
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
json$
|
|
873
|
-
function isntJsonable
|
|
874
|
-
return !isntJsonable
|
|
872
|
+
json$1.isJsonable = isJsonable;
|
|
873
|
+
function isntJsonable(val) {
|
|
874
|
+
return !isntJsonable();
|
|
875
|
+
}
|
|
876
|
+
json$1.isntJsonable = isntJsonable;
|
|
877
|
+
|
|
878
|
+
var nullish = {};
|
|
879
|
+
|
|
880
|
+
nullish.isntNullish = nullish.isNullish = void 0;
|
|
881
|
+
const null_1 = _null;
|
|
882
|
+
const undefined_1 = _undefined;
|
|
883
|
+
function isNullish(val) {
|
|
884
|
+
return (0, null_1.isNull)(val)
|
|
885
|
+
|| (0, undefined_1.isUndefined)(val);
|
|
886
|
+
}
|
|
887
|
+
nullish.isNullish = isNullish;
|
|
888
|
+
function isntNullish(val) {
|
|
889
|
+
return !isNullish(val);
|
|
875
890
|
}
|
|
876
|
-
|
|
891
|
+
nullish.isntNullish = isntNullish;
|
|
877
892
|
|
|
878
|
-
var promise
|
|
893
|
+
var promise = {};
|
|
879
894
|
|
|
880
|
-
promise
|
|
881
|
-
const object_1
|
|
882
|
-
const function_1
|
|
883
|
-
function isPromise
|
|
895
|
+
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
896
|
+
const object_1 = object;
|
|
897
|
+
const function_1 = _function;
|
|
898
|
+
function isPromise(val) {
|
|
884
899
|
return val instanceof Promise;
|
|
885
900
|
}
|
|
886
|
-
promise
|
|
887
|
-
function isntPromise
|
|
888
|
-
return !isPromise
|
|
901
|
+
promise.isPromise = isPromise;
|
|
902
|
+
function isntPromise(val) {
|
|
903
|
+
return !isPromise(val);
|
|
889
904
|
}
|
|
890
|
-
promise
|
|
891
|
-
function isntPromiseLike
|
|
892
|
-
return !isPromiseLike
|
|
905
|
+
promise.isntPromise = isntPromise;
|
|
906
|
+
function isntPromiseLike(val) {
|
|
907
|
+
return !isPromiseLike(val);
|
|
893
908
|
}
|
|
894
|
-
promise
|
|
895
|
-
function isPromiseLike
|
|
896
|
-
return (0, object_1
|
|
897
|
-
&& (0, function_1
|
|
909
|
+
promise.isntPromiseLike = isntPromiseLike;
|
|
910
|
+
function isPromiseLike(val) {
|
|
911
|
+
return (0, object_1.isObject)(val)
|
|
912
|
+
&& (0, function_1.isFunction)(val.then);
|
|
898
913
|
}
|
|
899
|
-
promise
|
|
914
|
+
promise.isPromiseLike = isPromiseLike;
|
|
900
915
|
|
|
901
|
-
var url$
|
|
916
|
+
var url$1 = {};
|
|
902
917
|
|
|
903
|
-
url$
|
|
904
|
-
function isAbsoluteURL
|
|
918
|
+
url$1.isAbsoluteURL = void 0;
|
|
919
|
+
function isAbsoluteURL(str) {
|
|
905
920
|
try {
|
|
906
921
|
new URL(str);
|
|
907
922
|
return true;
|
|
@@ -910,31 +925,31 @@
|
|
|
910
925
|
return false;
|
|
911
926
|
}
|
|
912
927
|
}
|
|
913
|
-
url$
|
|
928
|
+
url$1.isAbsoluteURL = isAbsoluteURL;
|
|
914
929
|
|
|
915
|
-
var regexp
|
|
930
|
+
var regexp = {};
|
|
916
931
|
|
|
917
|
-
regexp
|
|
918
|
-
function isRegExp
|
|
932
|
+
regexp.isntRegExp = regexp.isRegExp = void 0;
|
|
933
|
+
function isRegExp(val) {
|
|
919
934
|
return val instanceof RegExp;
|
|
920
935
|
}
|
|
921
|
-
regexp
|
|
922
|
-
function isntRegExp
|
|
923
|
-
return !isRegExp
|
|
936
|
+
regexp.isRegExp = isRegExp;
|
|
937
|
+
function isntRegExp(val) {
|
|
938
|
+
return !isRegExp(val);
|
|
924
939
|
}
|
|
925
|
-
regexp
|
|
940
|
+
regexp.isntRegExp = isntRegExp;
|
|
926
941
|
|
|
927
|
-
var symbol
|
|
942
|
+
var symbol = {};
|
|
928
943
|
|
|
929
|
-
symbol
|
|
930
|
-
function isSymbol
|
|
944
|
+
symbol.isntSymbol = symbol.isSymbol = void 0;
|
|
945
|
+
function isSymbol(val) {
|
|
931
946
|
return typeof val === 'symbol';
|
|
932
947
|
}
|
|
933
|
-
symbol
|
|
934
|
-
function isntSymbol
|
|
935
|
-
return !isSymbol
|
|
948
|
+
symbol.isSymbol = isSymbol;
|
|
949
|
+
function isntSymbol(val) {
|
|
950
|
+
return !isSymbol(val);
|
|
936
951
|
}
|
|
937
|
-
symbol
|
|
952
|
+
symbol.isntSymbol = isntSymbol;
|
|
938
953
|
|
|
939
954
|
(function (exports) {
|
|
940
955
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -950,34 +965,35 @@
|
|
|
950
965
|
}));
|
|
951
966
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
952
967
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
953
|
-
};__exportStar(array
|
|
954
|
-
__exportStar(asyncIterable
|
|
955
|
-
__exportStar(bigint
|
|
956
|
-
__exportStar(boolean
|
|
957
|
-
__exportStar(char
|
|
958
|
-
__exportStar(date
|
|
959
|
-
__exportStar(_enum
|
|
960
|
-
__exportStar(error
|
|
961
|
-
__exportStar(falsy
|
|
962
|
-
__exportStar(_function
|
|
963
|
-
__exportStar(iterable
|
|
964
|
-
__exportStar(json$
|
|
965
|
-
__exportStar(_null
|
|
966
|
-
__exportStar(
|
|
967
|
-
__exportStar(
|
|
968
|
-
__exportStar(
|
|
969
|
-
__exportStar(
|
|
970
|
-
__exportStar(
|
|
971
|
-
__exportStar(
|
|
972
|
-
__exportStar(
|
|
973
|
-
__exportStar(
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
968
|
+
};__exportStar(array, exports);
|
|
969
|
+
__exportStar(asyncIterable, exports);
|
|
970
|
+
__exportStar(bigint, exports);
|
|
971
|
+
__exportStar(boolean, exports);
|
|
972
|
+
__exportStar(char, exports);
|
|
973
|
+
__exportStar(date, exports);
|
|
974
|
+
__exportStar(_enum, exports);
|
|
975
|
+
__exportStar(error, exports);
|
|
976
|
+
__exportStar(falsy, exports);
|
|
977
|
+
__exportStar(_function, exports);
|
|
978
|
+
__exportStar(iterable, exports);
|
|
979
|
+
__exportStar(json$1, exports);
|
|
980
|
+
__exportStar(_null, exports);
|
|
981
|
+
__exportStar(nullish, exports);
|
|
982
|
+
__exportStar(number, exports);
|
|
983
|
+
__exportStar(object, exports);
|
|
984
|
+
__exportStar(promise, exports);
|
|
985
|
+
__exportStar(string, exports);
|
|
986
|
+
__exportStar(_undefined, exports);
|
|
987
|
+
__exportStar(url$1, exports);
|
|
988
|
+
__exportStar(regexp, exports);
|
|
989
|
+
__exportStar(symbol, exports);
|
|
990
|
+
|
|
991
|
+
}(es2018$3));
|
|
992
|
+
|
|
993
|
+
chunkByAsync$1.chunkByAsync = void 0;
|
|
994
|
+
const types_1$m = es2018$3;
|
|
995
|
+
function chunkByAsync(iterable, predicate) {
|
|
996
|
+
if ((0, types_1$m.isAsyncIterable)(iterable)) {
|
|
981
997
|
return chunkByAsyncIterable(iterable, predicate);
|
|
982
998
|
}
|
|
983
999
|
else {
|
|
@@ -1036,8 +1052,8 @@
|
|
|
1036
1052
|
var chunk$1 = {};
|
|
1037
1053
|
|
|
1038
1054
|
chunk$1.chunk = void 0;
|
|
1039
|
-
const go_1$f = es2018$
|
|
1040
|
-
const errors_1$e = es2018$
|
|
1055
|
+
const go_1$f = es2018$6;
|
|
1056
|
+
const errors_1$e = es2018$8;
|
|
1041
1057
|
function chunk(iterable, size) {
|
|
1042
1058
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1043
1059
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -1059,8 +1075,8 @@
|
|
|
1059
1075
|
var concatAsync$1 = {};
|
|
1060
1076
|
|
|
1061
1077
|
concatAsync$1.concatAsync = void 0;
|
|
1062
|
-
const types_1$l = es2018$
|
|
1063
|
-
const go_1$e = es2018$
|
|
1078
|
+
const types_1$l = es2018$3;
|
|
1079
|
+
const go_1$e = es2018$6;
|
|
1064
1080
|
function concatAsync(iterable, ...otherIterables) {
|
|
1065
1081
|
return (0, go_1$e.go)(async function* () {
|
|
1066
1082
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1082,7 +1098,7 @@
|
|
|
1082
1098
|
var concat$1 = {};
|
|
1083
1099
|
|
|
1084
1100
|
concat$1.concat = void 0;
|
|
1085
|
-
const go_1$d = es2018$
|
|
1101
|
+
const go_1$d = es2018$6;
|
|
1086
1102
|
function concat(iterable, ...otherIterables) {
|
|
1087
1103
|
return (0, go_1$d.go)(function* () {
|
|
1088
1104
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1092,6 +1108,91 @@
|
|
|
1092
1108
|
}
|
|
1093
1109
|
concat$1.concat = concat;
|
|
1094
1110
|
|
|
1111
|
+
var differenceAsync$1 = {};
|
|
1112
|
+
|
|
1113
|
+
var filterAsync$1 = {};
|
|
1114
|
+
|
|
1115
|
+
filterAsync$1.filterAsync = void 0;
|
|
1116
|
+
const types_1$k = es2018$3;
|
|
1117
|
+
function filterAsync(iterable, predicate) {
|
|
1118
|
+
if ((0, types_1$k.isAsyncIterable)(iterable)) {
|
|
1119
|
+
return filterAsyncIterable(iterable, predicate);
|
|
1120
|
+
}
|
|
1121
|
+
else {
|
|
1122
|
+
return filterIterable(iterable, predicate);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
filterAsync$1.filterAsync = filterAsync;
|
|
1126
|
+
async function* filterAsyncIterable(iterable, predicate) {
|
|
1127
|
+
let index = 0;
|
|
1128
|
+
for await (const element of iterable) {
|
|
1129
|
+
if (await predicate(element, index))
|
|
1130
|
+
yield element;
|
|
1131
|
+
index++;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
async function* filterIterable(iterable, predicate) {
|
|
1135
|
+
let index = 0;
|
|
1136
|
+
for (const element of iterable) {
|
|
1137
|
+
if (await predicate(element, index))
|
|
1138
|
+
yield element;
|
|
1139
|
+
index++;
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
var toSetAsync$1 = {};
|
|
1144
|
+
|
|
1145
|
+
toSetAsync$1.toSetAsync = void 0;
|
|
1146
|
+
async function toSetAsync(iterable) {
|
|
1147
|
+
const result = new Set();
|
|
1148
|
+
for await (const element of iterable) {
|
|
1149
|
+
result.add(await element);
|
|
1150
|
+
}
|
|
1151
|
+
return result;
|
|
1152
|
+
}
|
|
1153
|
+
toSetAsync$1.toSetAsync = toSetAsync;
|
|
1154
|
+
|
|
1155
|
+
differenceAsync$1.differenceAsync = void 0;
|
|
1156
|
+
const filter_async_1$1 = filterAsync$1;
|
|
1157
|
+
const to_set_async_1$1 = toSetAsync$1;
|
|
1158
|
+
async function* differenceAsync(left, right) {
|
|
1159
|
+
const rightSet = await (0, to_set_async_1$1.toSetAsync)(right);
|
|
1160
|
+
yield* (0, filter_async_1$1.filterAsync)(left, async (x) => !rightSet.has(await x));
|
|
1161
|
+
}
|
|
1162
|
+
differenceAsync$1.differenceAsync = differenceAsync;
|
|
1163
|
+
|
|
1164
|
+
var difference$1 = {};
|
|
1165
|
+
|
|
1166
|
+
var filter$1 = {};
|
|
1167
|
+
|
|
1168
|
+
filter$1.filter = void 0;
|
|
1169
|
+
function* filter(iterable, predicate) {
|
|
1170
|
+
let index = 0;
|
|
1171
|
+
for (const element of iterable) {
|
|
1172
|
+
if (predicate(element, index))
|
|
1173
|
+
yield element;
|
|
1174
|
+
index++;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
filter$1.filter = filter;
|
|
1178
|
+
|
|
1179
|
+
var toSet$1 = {};
|
|
1180
|
+
|
|
1181
|
+
toSet$1.toSet = void 0;
|
|
1182
|
+
function toSet(iterable) {
|
|
1183
|
+
return new Set(iterable);
|
|
1184
|
+
}
|
|
1185
|
+
toSet$1.toSet = toSet;
|
|
1186
|
+
|
|
1187
|
+
difference$1.difference = void 0;
|
|
1188
|
+
const filter_1$1 = filter$1;
|
|
1189
|
+
const to_set_1$1 = toSet$1;
|
|
1190
|
+
function difference(left, right) {
|
|
1191
|
+
const rightSet = (0, to_set_1$1.toSet)(right);
|
|
1192
|
+
return (0, filter_1$1.filter)(left, x => !rightSet.has(x));
|
|
1193
|
+
}
|
|
1194
|
+
difference$1.difference = difference;
|
|
1195
|
+
|
|
1095
1196
|
var dropAsync$1 = {};
|
|
1096
1197
|
|
|
1097
1198
|
var utils = {};
|
|
@@ -1111,9 +1212,9 @@
|
|
|
1111
1212
|
utils.copyIterable = copyIterable;
|
|
1112
1213
|
|
|
1113
1214
|
dropAsync$1.dropAsync = void 0;
|
|
1114
|
-
const go_1$c = es2018$
|
|
1215
|
+
const go_1$c = es2018$6;
|
|
1115
1216
|
const utils_1$3 = utils;
|
|
1116
|
-
const errors_1$d = es2018$
|
|
1217
|
+
const errors_1$d = es2018$8;
|
|
1117
1218
|
function dropAsync(iterable, count) {
|
|
1118
1219
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1119
1220
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1145,17 +1246,30 @@
|
|
|
1145
1246
|
|
|
1146
1247
|
var dropRightAsync$1 = {};
|
|
1147
1248
|
|
|
1249
|
+
var toArrayAsync$1 = {};
|
|
1250
|
+
|
|
1251
|
+
toArrayAsync$1.toArrayAsync = void 0;
|
|
1252
|
+
async function toArrayAsync(iterable) {
|
|
1253
|
+
const result = [];
|
|
1254
|
+
for await (const element of iterable) {
|
|
1255
|
+
result.push(element);
|
|
1256
|
+
}
|
|
1257
|
+
return result;
|
|
1258
|
+
}
|
|
1259
|
+
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
1260
|
+
|
|
1148
1261
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
1149
|
-
const go_1$b = es2018$
|
|
1262
|
+
const go_1$b = es2018$6;
|
|
1150
1263
|
const utils_1$2 = utils;
|
|
1151
|
-
const errors_1$c = es2018$
|
|
1264
|
+
const errors_1$c = es2018$8;
|
|
1265
|
+
const to_array_async_1 = toArrayAsync$1;
|
|
1152
1266
|
function dropRightAsync(iterable, count) {
|
|
1153
1267
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1154
1268
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1155
1269
|
if (count === 0)
|
|
1156
1270
|
return (0, utils_1$2.copyAsyncIterable)(iterable);
|
|
1157
1271
|
return (0, go_1$b.go)(async function* () {
|
|
1158
|
-
const arr = await toArrayAsync
|
|
1272
|
+
const arr = await (0, to_array_async_1.toArrayAsync)(iterable);
|
|
1159
1273
|
const result = arr.slice(0, -count);
|
|
1160
1274
|
for (const value of result) {
|
|
1161
1275
|
yield value;
|
|
@@ -1163,20 +1277,13 @@
|
|
|
1163
1277
|
});
|
|
1164
1278
|
}
|
|
1165
1279
|
dropRightAsync$1.dropRightAsync = dropRightAsync;
|
|
1166
|
-
async function toArrayAsync$2(iterable) {
|
|
1167
|
-
const result = [];
|
|
1168
|
-
for await (const element of iterable) {
|
|
1169
|
-
result.push(element);
|
|
1170
|
-
}
|
|
1171
|
-
return result;
|
|
1172
|
-
}
|
|
1173
1280
|
|
|
1174
1281
|
var dropRight$1 = {};
|
|
1175
1282
|
|
|
1176
1283
|
dropRight$1.dropRight = void 0;
|
|
1177
|
-
const go_1$a = es2018$
|
|
1284
|
+
const go_1$a = es2018$6;
|
|
1178
1285
|
const utils_1$1 = utils;
|
|
1179
|
-
const errors_1$b = es2018$
|
|
1286
|
+
const errors_1$b = es2018$8;
|
|
1180
1287
|
function dropRight(iterable, count) {
|
|
1181
1288
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1182
1289
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1192,9 +1299,9 @@
|
|
|
1192
1299
|
var dropUntilAsync$1 = {};
|
|
1193
1300
|
|
|
1194
1301
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
1195
|
-
const types_1$
|
|
1302
|
+
const types_1$j = es2018$3;
|
|
1196
1303
|
function dropUntilAsync(iterable, predicate) {
|
|
1197
|
-
if ((0, types_1$
|
|
1304
|
+
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
|
1198
1305
|
return dropUntilAsyncIterable(iterable, predicate);
|
|
1199
1306
|
}
|
|
1200
1307
|
else {
|
|
@@ -1274,9 +1381,9 @@
|
|
|
1274
1381
|
var drop$1 = {};
|
|
1275
1382
|
|
|
1276
1383
|
drop$1.drop = void 0;
|
|
1277
|
-
const go_1$9 = es2018$
|
|
1384
|
+
const go_1$9 = es2018$6;
|
|
1278
1385
|
const utils_1 = utils;
|
|
1279
|
-
const errors_1$a = es2018$
|
|
1386
|
+
const errors_1$a = es2018$8;
|
|
1280
1387
|
function drop(iterable, count) {
|
|
1281
1388
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1282
1389
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1306,49 +1413,6 @@
|
|
|
1306
1413
|
}
|
|
1307
1414
|
drop$1.drop = drop;
|
|
1308
1415
|
|
|
1309
|
-
var filterAsync$1 = {};
|
|
1310
|
-
|
|
1311
|
-
filterAsync$1.filterAsync = void 0;
|
|
1312
|
-
const types_1$j = es2018$6;
|
|
1313
|
-
function filterAsync(iterable, predicate) {
|
|
1314
|
-
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
|
1315
|
-
return filterAsyncIterable(iterable, predicate);
|
|
1316
|
-
}
|
|
1317
|
-
else {
|
|
1318
|
-
return filterIterable(iterable, predicate);
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
filterAsync$1.filterAsync = filterAsync;
|
|
1322
|
-
async function* filterAsyncIterable(iterable, predicate) {
|
|
1323
|
-
let index = 0;
|
|
1324
|
-
for await (const element of iterable) {
|
|
1325
|
-
if (await predicate(element, index))
|
|
1326
|
-
yield element;
|
|
1327
|
-
index++;
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
async function* filterIterable(iterable, predicate) {
|
|
1331
|
-
let index = 0;
|
|
1332
|
-
for (const element of iterable) {
|
|
1333
|
-
if (await predicate(element, index))
|
|
1334
|
-
yield element;
|
|
1335
|
-
index++;
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
var filter$1 = {};
|
|
1340
|
-
|
|
1341
|
-
filter$1.filter = void 0;
|
|
1342
|
-
function* filter(iterable, predicate) {
|
|
1343
|
-
let index = 0;
|
|
1344
|
-
for (const element of iterable) {
|
|
1345
|
-
if (predicate(element, index))
|
|
1346
|
-
yield element;
|
|
1347
|
-
index++;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
filter$1.filter = filter;
|
|
1351
|
-
|
|
1352
1416
|
var flattenAsync$1 = {};
|
|
1353
1417
|
|
|
1354
1418
|
var flattenDeepAsync$1 = {};
|
|
@@ -1356,7 +1420,7 @@
|
|
|
1356
1420
|
var flattenByAsync$1 = {};
|
|
1357
1421
|
|
|
1358
1422
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
1359
|
-
const types_1$i = es2018$
|
|
1423
|
+
const types_1$i = es2018$3;
|
|
1360
1424
|
function flattenByAsync(iterable, predicate) {
|
|
1361
1425
|
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
1362
1426
|
return flattenByAsyncIterable(iterable, predicate);
|
|
@@ -1396,7 +1460,7 @@
|
|
|
1396
1460
|
|
|
1397
1461
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1398
1462
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1399
|
-
const errors_1$9 = es2018$
|
|
1463
|
+
const errors_1$9 = es2018$8;
|
|
1400
1464
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1401
1465
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1402
1466
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1414,7 +1478,7 @@
|
|
|
1414
1478
|
var flattenBy$1 = {};
|
|
1415
1479
|
|
|
1416
1480
|
flattenBy$1.flattenBy = void 0;
|
|
1417
|
-
const types_1$h = es2018$
|
|
1481
|
+
const types_1$h = es2018$3;
|
|
1418
1482
|
function flattenBy(iterable, predicate) {
|
|
1419
1483
|
return flatten$2(iterable, predicate, 1);
|
|
1420
1484
|
}
|
|
@@ -1437,7 +1501,7 @@
|
|
|
1437
1501
|
|
|
1438
1502
|
flattenDeep$1.flattenDeep = void 0;
|
|
1439
1503
|
const flatten_by_1 = flattenBy$1;
|
|
1440
|
-
const errors_1$8 = es2018$
|
|
1504
|
+
const errors_1$8 = es2018$8;
|
|
1441
1505
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1442
1506
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1443
1507
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1454,10 +1518,32 @@
|
|
|
1454
1518
|
}
|
|
1455
1519
|
flatten$1.flatten = flatten;
|
|
1456
1520
|
|
|
1521
|
+
var intersectionAsync$1 = {};
|
|
1522
|
+
|
|
1523
|
+
intersectionAsync$1.intersectionAsync = void 0;
|
|
1524
|
+
const filter_async_1 = filterAsync$1;
|
|
1525
|
+
const to_set_async_1 = toSetAsync$1;
|
|
1526
|
+
async function* intersectionAsync(left, right) {
|
|
1527
|
+
const rightSet = await (0, to_set_async_1.toSetAsync)(right);
|
|
1528
|
+
yield* (0, filter_async_1.filterAsync)(left, async (x) => rightSet.has(await x));
|
|
1529
|
+
}
|
|
1530
|
+
intersectionAsync$1.intersectionAsync = intersectionAsync;
|
|
1531
|
+
|
|
1532
|
+
var intersection$1 = {};
|
|
1533
|
+
|
|
1534
|
+
intersection$1.intersection = void 0;
|
|
1535
|
+
const filter_1 = filter$1;
|
|
1536
|
+
const to_set_1 = toSet$1;
|
|
1537
|
+
function intersection(left, right) {
|
|
1538
|
+
const rightSet = (0, to_set_1.toSet)(right);
|
|
1539
|
+
return (0, filter_1.filter)(left, x => rightSet.has(x));
|
|
1540
|
+
}
|
|
1541
|
+
intersection$1.intersection = intersection;
|
|
1542
|
+
|
|
1457
1543
|
var mapAsync$1 = {};
|
|
1458
1544
|
|
|
1459
1545
|
mapAsync$1.mapAsync = void 0;
|
|
1460
|
-
const types_1$g = es2018$
|
|
1546
|
+
const types_1$g = es2018$3;
|
|
1461
1547
|
function mapAsync(iterable, fn) {
|
|
1462
1548
|
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
1463
1549
|
return mapAsyncIterable(iterable, fn);
|
|
@@ -1497,8 +1583,8 @@
|
|
|
1497
1583
|
var repeatAsync$1 = {};
|
|
1498
1584
|
|
|
1499
1585
|
repeatAsync$1.repeatAsync = void 0;
|
|
1500
|
-
const go_1$8 = es2018$
|
|
1501
|
-
const errors_1$7 = es2018$
|
|
1586
|
+
const go_1$8 = es2018$6;
|
|
1587
|
+
const errors_1$7 = es2018$8;
|
|
1502
1588
|
function repeatAsync(iterable, times) {
|
|
1503
1589
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1504
1590
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1532,8 +1618,8 @@
|
|
|
1532
1618
|
var repeat$1 = {};
|
|
1533
1619
|
|
|
1534
1620
|
repeat$1.repeat = void 0;
|
|
1535
|
-
const go_1$7 = es2018$
|
|
1536
|
-
const errors_1$6 = es2018$
|
|
1621
|
+
const go_1$7 = es2018$6;
|
|
1622
|
+
const errors_1$6 = es2018$8;
|
|
1537
1623
|
function repeat(iterable, times) {
|
|
1538
1624
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1539
1625
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1567,8 +1653,8 @@
|
|
|
1567
1653
|
var sliceAsync$1 = {};
|
|
1568
1654
|
|
|
1569
1655
|
sliceAsync$1.sliceAsync = void 0;
|
|
1570
|
-
const go_1$6 = es2018$
|
|
1571
|
-
const errors_1$5 = es2018$
|
|
1656
|
+
const go_1$6 = es2018$6;
|
|
1657
|
+
const errors_1$5 = es2018$8;
|
|
1572
1658
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1573
1659
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1574
1660
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1590,8 +1676,8 @@
|
|
|
1590
1676
|
var slice$1 = {};
|
|
1591
1677
|
|
|
1592
1678
|
slice$1.slice = void 0;
|
|
1593
|
-
const go_1$5 = es2018$
|
|
1594
|
-
const errors_1$4 = es2018$
|
|
1679
|
+
const go_1$5 = es2018$6;
|
|
1680
|
+
const errors_1$4 = es2018$8;
|
|
1595
1681
|
function slice(iterable, start, end = Infinity) {
|
|
1596
1682
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1597
1683
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1631,7 +1717,7 @@
|
|
|
1631
1717
|
var splitByAsync$1 = {};
|
|
1632
1718
|
|
|
1633
1719
|
splitByAsync$1.splitByAsync = void 0;
|
|
1634
|
-
const types_1$f = es2018$
|
|
1720
|
+
const types_1$f = es2018$3;
|
|
1635
1721
|
function splitByAsync(iterable, predicate) {
|
|
1636
1722
|
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
|
1637
1723
|
return splitByAsyncIterable(iterable, predicate);
|
|
@@ -1713,8 +1799,8 @@
|
|
|
1713
1799
|
var takeAsync$1 = {};
|
|
1714
1800
|
|
|
1715
1801
|
takeAsync$1.takeAsync = void 0;
|
|
1716
|
-
const go_1$4 = es2018$
|
|
1717
|
-
const errors_1$3 = es2018$
|
|
1802
|
+
const go_1$4 = es2018$6;
|
|
1803
|
+
const errors_1$3 = es2018$8;
|
|
1718
1804
|
function takeAsync(iterable, count) {
|
|
1719
1805
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1720
1806
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1734,8 +1820,8 @@
|
|
|
1734
1820
|
var takeRightAsync$1 = {};
|
|
1735
1821
|
|
|
1736
1822
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1737
|
-
const go_1$3 = es2018$
|
|
1738
|
-
const errors_1$2 = es2018$
|
|
1823
|
+
const go_1$3 = es2018$6;
|
|
1824
|
+
const errors_1$2 = es2018$8;
|
|
1739
1825
|
function takeRightAsync(iterable, count) {
|
|
1740
1826
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1741
1827
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1764,8 +1850,8 @@
|
|
|
1764
1850
|
var takeRight$1 = {};
|
|
1765
1851
|
|
|
1766
1852
|
takeRight$1.takeRight = void 0;
|
|
1767
|
-
const go_1$2 = es2018$
|
|
1768
|
-
const errors_1$1 = es2018$
|
|
1853
|
+
const go_1$2 = es2018$6;
|
|
1854
|
+
const errors_1$1 = es2018$8;
|
|
1769
1855
|
function takeRight(iterable, count) {
|
|
1770
1856
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1771
1857
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1794,7 +1880,7 @@
|
|
|
1794
1880
|
var takeUntilAsync$1 = {};
|
|
1795
1881
|
|
|
1796
1882
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1797
|
-
const types_1$e = es2018$
|
|
1883
|
+
const types_1$e = es2018$3;
|
|
1798
1884
|
function takeUntilAsync(iterable, predicate) {
|
|
1799
1885
|
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1800
1886
|
return takeUntilAsyncIterable(iterable, predicate);
|
|
@@ -1840,8 +1926,8 @@
|
|
|
1840
1926
|
var take$1 = {};
|
|
1841
1927
|
|
|
1842
1928
|
take$1.take = void 0;
|
|
1843
|
-
const go_1$1 = es2018$
|
|
1844
|
-
const errors_1 = es2018$
|
|
1929
|
+
const go_1$1 = es2018$6;
|
|
1930
|
+
const errors_1 = es2018$8;
|
|
1845
1931
|
function take(iterable, count) {
|
|
1846
1932
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1847
1933
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1861,7 +1947,7 @@
|
|
|
1861
1947
|
var tapAsync$1 = {};
|
|
1862
1948
|
|
|
1863
1949
|
tapAsync$1.tapAsync = void 0;
|
|
1864
|
-
const types_1$d = es2018$
|
|
1950
|
+
const types_1$d = es2018$3;
|
|
1865
1951
|
function tapAsync(iterable, fn) {
|
|
1866
1952
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1867
1953
|
return tapAsyncIterable(iterable, fn);
|
|
@@ -1906,7 +1992,7 @@
|
|
|
1906
1992
|
toAsyncIterable$1.toAsyncIterable = void 0;
|
|
1907
1993
|
async function* toAsyncIterable(iterable) {
|
|
1908
1994
|
for (const value of iterable) {
|
|
1909
|
-
yield value;
|
|
1995
|
+
yield await value;
|
|
1910
1996
|
}
|
|
1911
1997
|
}
|
|
1912
1998
|
toAsyncIterable$1.toAsyncIterable = toAsyncIterable;
|
|
@@ -1944,7 +2030,7 @@
|
|
|
1944
2030
|
var uniqByAsync$1 = {};
|
|
1945
2031
|
|
|
1946
2032
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
1947
|
-
const types_1$c = es2018$
|
|
2033
|
+
const types_1$c = es2018$3;
|
|
1948
2034
|
function uniqByAsync(iterable, fn) {
|
|
1949
2035
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1950
2036
|
return uniqByAsyncIterable(iterable, fn);
|
|
@@ -2013,7 +2099,7 @@
|
|
|
2013
2099
|
var zipAsync$1 = {};
|
|
2014
2100
|
|
|
2015
2101
|
zipAsync$1.zipAsync = void 0;
|
|
2016
|
-
const types_1$b = es2018$
|
|
2102
|
+
const types_1$b = es2018$3;
|
|
2017
2103
|
var Kind;
|
|
2018
2104
|
(function (Kind) {
|
|
2019
2105
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -2051,7 +2137,7 @@
|
|
|
2051
2137
|
dones[i] = true;
|
|
2052
2138
|
return;
|
|
2053
2139
|
}
|
|
2054
|
-
result[i] = temp.value;
|
|
2140
|
+
result[i] = await temp.value;
|
|
2055
2141
|
}
|
|
2056
2142
|
yield result;
|
|
2057
2143
|
}
|
|
@@ -2120,6 +2206,8 @@
|
|
|
2120
2206
|
__exportStar(chunk$1, exports);
|
|
2121
2207
|
__exportStar(concatAsync$1, exports);
|
|
2122
2208
|
__exportStar(concat$1, exports);
|
|
2209
|
+
__exportStar(differenceAsync$1, exports);
|
|
2210
|
+
__exportStar(difference$1, exports);
|
|
2123
2211
|
__exportStar(dropAsync$1, exports);
|
|
2124
2212
|
__exportStar(dropRightAsync$1, exports);
|
|
2125
2213
|
__exportStar(dropRight$1, exports);
|
|
@@ -2134,6 +2222,8 @@
|
|
|
2134
2222
|
__exportStar(flattenDeepAsync$1, exports);
|
|
2135
2223
|
__exportStar(flattenDeep$1, exports);
|
|
2136
2224
|
__exportStar(flatten$1, exports);
|
|
2225
|
+
__exportStar(intersectionAsync$1, exports);
|
|
2226
|
+
__exportStar(intersection$1, exports);
|
|
2137
2227
|
__exportStar(mapAsync$1, exports);
|
|
2138
2228
|
__exportStar(map$1, exports);
|
|
2139
2229
|
__exportStar(repeatAsync$1, exports);
|
|
@@ -2162,9 +2252,9 @@
|
|
|
2162
2252
|
__exportStar(zipAsync$1, exports);
|
|
2163
2253
|
__exportStar(zip$1, exports);
|
|
2164
2254
|
|
|
2165
|
-
}(
|
|
2255
|
+
}(intermediate));
|
|
2166
2256
|
|
|
2167
|
-
var
|
|
2257
|
+
var terminal = {};
|
|
2168
2258
|
|
|
2169
2259
|
var consume$1 = {};
|
|
2170
2260
|
|
|
@@ -2174,10 +2264,18 @@
|
|
|
2174
2264
|
}
|
|
2175
2265
|
consume$1.consume = consume;
|
|
2176
2266
|
|
|
2267
|
+
var consumeAsync$1 = {};
|
|
2268
|
+
|
|
2269
|
+
consumeAsync$1.consumeAsync = void 0;
|
|
2270
|
+
async function consumeAsync(iterable, consumer) {
|
|
2271
|
+
return await consumer(iterable);
|
|
2272
|
+
}
|
|
2273
|
+
consumeAsync$1.consumeAsync = consumeAsync;
|
|
2274
|
+
|
|
2177
2275
|
var eachAsync$1 = {};
|
|
2178
2276
|
|
|
2179
2277
|
eachAsync$1.eachAsync = void 0;
|
|
2180
|
-
const types_1$a = es2018$
|
|
2278
|
+
const types_1$a = es2018$3;
|
|
2181
2279
|
function eachAsync(iterable, fn) {
|
|
2182
2280
|
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
2183
2281
|
return eachAsyncIterable(iterable, fn);
|
|
@@ -2217,7 +2315,7 @@
|
|
|
2217
2315
|
var everyAsync$1 = {};
|
|
2218
2316
|
|
|
2219
2317
|
everyAsync$1.everyAsync = void 0;
|
|
2220
|
-
const types_1$9 = es2018$
|
|
2318
|
+
const types_1$9 = es2018$3;
|
|
2221
2319
|
function everyAsync(iterable, predicate) {
|
|
2222
2320
|
if ((0, types_1$9.isAsyncIterable)(iterable)) {
|
|
2223
2321
|
return everyAsyncIterable(iterable, predicate);
|
|
@@ -2263,7 +2361,7 @@
|
|
|
2263
2361
|
var findAsync$1 = {};
|
|
2264
2362
|
|
|
2265
2363
|
findAsync$1.findAsync = void 0;
|
|
2266
|
-
const types_1$8 = es2018$
|
|
2364
|
+
const types_1$8 = es2018$3;
|
|
2267
2365
|
function findAsync(iterable, predicate) {
|
|
2268
2366
|
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
2269
2367
|
return findAsyncIterable(iterable, predicate);
|
|
@@ -2352,42 +2450,10 @@
|
|
|
2352
2450
|
}
|
|
2353
2451
|
includes$1.includes = includes;
|
|
2354
2452
|
|
|
2355
|
-
var matchAsync$1 = {};
|
|
2356
|
-
|
|
2357
|
-
matchAsync$1.matchAsync = void 0;
|
|
2358
|
-
async function matchAsync(iterable, sequence) {
|
|
2359
|
-
const sequenceLength = sequence.length;
|
|
2360
|
-
let matchCount = 0;
|
|
2361
|
-
for await (const element of iterable) {
|
|
2362
|
-
if (element === sequence[matchCount])
|
|
2363
|
-
matchCount++;
|
|
2364
|
-
if (matchCount === sequenceLength)
|
|
2365
|
-
return true;
|
|
2366
|
-
}
|
|
2367
|
-
return false;
|
|
2368
|
-
}
|
|
2369
|
-
matchAsync$1.matchAsync = matchAsync;
|
|
2370
|
-
|
|
2371
|
-
var match$1 = {};
|
|
2372
|
-
|
|
2373
|
-
match$1.match = void 0;
|
|
2374
|
-
function match(iterable, sequence) {
|
|
2375
|
-
const sequenceLength = sequence.length;
|
|
2376
|
-
let matchCount = 0;
|
|
2377
|
-
for (const element of iterable) {
|
|
2378
|
-
if (element === sequence[matchCount])
|
|
2379
|
-
matchCount++;
|
|
2380
|
-
if (matchCount === sequenceLength)
|
|
2381
|
-
return true;
|
|
2382
|
-
}
|
|
2383
|
-
return false;
|
|
2384
|
-
}
|
|
2385
|
-
match$1.match = match;
|
|
2386
|
-
|
|
2387
2453
|
var reduceAsync$1 = {};
|
|
2388
2454
|
|
|
2389
2455
|
reduceAsync$1.reduceAsync = void 0;
|
|
2390
|
-
const types_1$7 = es2018$
|
|
2456
|
+
const types_1$7 = es2018$3;
|
|
2391
2457
|
function reduceAsync(iterable, fn, initialValue) {
|
|
2392
2458
|
if ((0, types_1$7.isUndefined)(initialValue)) {
|
|
2393
2459
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -2483,7 +2549,7 @@
|
|
|
2483
2549
|
var reduce$1 = {};
|
|
2484
2550
|
|
|
2485
2551
|
reduce$1.reduce = void 0;
|
|
2486
|
-
const types_1$6 = es2018$
|
|
2552
|
+
const types_1$6 = es2018$3;
|
|
2487
2553
|
function reduce(iterable, fn, initialValue) {
|
|
2488
2554
|
if ((0, types_1$6.isUndefined)(initialValue)) {
|
|
2489
2555
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -2530,7 +2596,7 @@
|
|
|
2530
2596
|
var someAsync$1 = {};
|
|
2531
2597
|
|
|
2532
2598
|
someAsync$1.someAsync = void 0;
|
|
2533
|
-
const types_1$5 = es2018$
|
|
2599
|
+
const types_1$5 = es2018$3;
|
|
2534
2600
|
function someAsync(iterable, predicate) {
|
|
2535
2601
|
if ((0, types_1$5.isAsyncIterable)(iterable)) {
|
|
2536
2602
|
return someAsyncIterable(iterable, predicate);
|
|
@@ -2617,54 +2683,14 @@
|
|
|
2617
2683
|
}
|
|
2618
2684
|
last$1.last = last;
|
|
2619
2685
|
|
|
2620
|
-
var toArrayAsync$1 = {};
|
|
2621
|
-
|
|
2622
|
-
toArrayAsync$1.toArrayAsync = void 0;
|
|
2623
|
-
const consume_1$3 = consume$1;
|
|
2624
|
-
function toArrayAsync(iterable) {
|
|
2625
|
-
return (0, consume_1$3.consume)(iterable, async (iterable) => {
|
|
2626
|
-
const result = [];
|
|
2627
|
-
for await (const element of iterable) {
|
|
2628
|
-
result.push(element);
|
|
2629
|
-
}
|
|
2630
|
-
return result;
|
|
2631
|
-
});
|
|
2632
|
-
}
|
|
2633
|
-
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
2634
|
-
|
|
2635
2686
|
var toArray$1 = {};
|
|
2636
2687
|
|
|
2637
2688
|
toArray$1.toArray = void 0;
|
|
2638
|
-
const consume_1$2 = consume$1;
|
|
2639
2689
|
function toArray(iterable) {
|
|
2640
|
-
return
|
|
2690
|
+
return Array.from(iterable);
|
|
2641
2691
|
}
|
|
2642
2692
|
toArray$1.toArray = toArray;
|
|
2643
2693
|
|
|
2644
|
-
var toSetAsync$1 = {};
|
|
2645
|
-
|
|
2646
|
-
toSetAsync$1.toSetAsync = void 0;
|
|
2647
|
-
const consume_1$1 = consume$1;
|
|
2648
|
-
function toSetAsync(iterable) {
|
|
2649
|
-
return (0, consume_1$1.consume)(iterable, async (iterable) => {
|
|
2650
|
-
const result = new Set();
|
|
2651
|
-
for await (const element of iterable) {
|
|
2652
|
-
result.add(element);
|
|
2653
|
-
}
|
|
2654
|
-
return result;
|
|
2655
|
-
});
|
|
2656
|
-
}
|
|
2657
|
-
toSetAsync$1.toSetAsync = toSetAsync;
|
|
2658
|
-
|
|
2659
|
-
var toSet$1 = {};
|
|
2660
|
-
|
|
2661
|
-
toSet$1.toSet = void 0;
|
|
2662
|
-
const consume_1 = consume$1;
|
|
2663
|
-
function toSet(iterable) {
|
|
2664
|
-
return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
|
|
2665
|
-
}
|
|
2666
|
-
toSet$1.toSet = toSet;
|
|
2667
|
-
|
|
2668
2694
|
var count$1 = {};
|
|
2669
2695
|
|
|
2670
2696
|
count$1.count = void 0;
|
|
@@ -2738,6 +2764,7 @@
|
|
|
2738
2764
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2739
2765
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2740
2766
|
};__exportStar(consume$1, exports);
|
|
2767
|
+
__exportStar(consumeAsync$1, exports);
|
|
2741
2768
|
__exportStar(eachAsync$1, exports);
|
|
2742
2769
|
__exportStar(each$1, exports);
|
|
2743
2770
|
__exportStar(everyAsync$1, exports);
|
|
@@ -2748,8 +2775,6 @@
|
|
|
2748
2775
|
__exportStar(first$1, exports);
|
|
2749
2776
|
__exportStar(includesAsync$1, exports);
|
|
2750
2777
|
__exportStar(includes$1, exports);
|
|
2751
|
-
__exportStar(matchAsync$1, exports);
|
|
2752
|
-
__exportStar(match$1, exports);
|
|
2753
2778
|
__exportStar(reduceAsync$1, exports);
|
|
2754
2779
|
__exportStar(reduce$1, exports);
|
|
2755
2780
|
__exportStar(someAsync$1, exports);
|
|
@@ -2765,7 +2790,7 @@
|
|
|
2765
2790
|
__exportStar(groupBy$1, exports);
|
|
2766
2791
|
__exportStar(groupByAsync$1, exports);
|
|
2767
2792
|
|
|
2768
|
-
}(
|
|
2793
|
+
}(terminal));
|
|
2769
2794
|
|
|
2770
2795
|
(function (exports) {
|
|
2771
2796
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -2781,10 +2806,10 @@
|
|
|
2781
2806
|
}));
|
|
2782
2807
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2783
2808
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2784
|
-
};__exportStar(
|
|
2785
|
-
__exportStar(
|
|
2809
|
+
};__exportStar(intermediate, exports);
|
|
2810
|
+
__exportStar(terminal, exports);
|
|
2786
2811
|
|
|
2787
|
-
}(es2018$
|
|
2812
|
+
}(es2018$7));
|
|
2788
2813
|
|
|
2789
2814
|
var getErrorNames$1 = {};
|
|
2790
2815
|
|
|
@@ -2802,7 +2827,7 @@
|
|
|
2802
2827
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2803
2828
|
|
|
2804
2829
|
getErrorNames$1.getErrorNames = void 0;
|
|
2805
|
-
const types_1$4 = es2018$
|
|
2830
|
+
const types_1$4 = es2018$3;
|
|
2806
2831
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2807
2832
|
function* getErrorNames(err) {
|
|
2808
2833
|
var _a;
|
|
@@ -2823,7 +2848,7 @@
|
|
|
2823
2848
|
var serializableError = {};
|
|
2824
2849
|
|
|
2825
2850
|
serializableError.isSerializableError = void 0;
|
|
2826
|
-
const types_1$3 = es2018$
|
|
2851
|
+
const types_1$3 = es2018$3;
|
|
2827
2852
|
function isSerializableError(val) {
|
|
2828
2853
|
return (0, types_1$3.isObject)(val)
|
|
2829
2854
|
&& (0, types_1$3.isString)(val.name)
|
|
@@ -2834,9 +2859,9 @@
|
|
|
2834
2859
|
serializableError.isSerializableError = isSerializableError;
|
|
2835
2860
|
|
|
2836
2861
|
customError.CustomError = void 0;
|
|
2837
|
-
const iterable_operator_1$1 = es2018$
|
|
2862
|
+
const iterable_operator_1$1 = es2018$7;
|
|
2838
2863
|
const get_error_names_1$1 = getErrorNames$1;
|
|
2839
|
-
const types_1$2 = es2018$
|
|
2864
|
+
const types_1$2 = es2018$3;
|
|
2840
2865
|
const serializable_error_1 = serializableError;
|
|
2841
2866
|
class CustomError extends Error {
|
|
2842
2867
|
get name() {
|
|
@@ -2872,7 +2897,7 @@
|
|
|
2872
2897
|
|
|
2873
2898
|
normalize$1.normalize = void 0;
|
|
2874
2899
|
const get_error_names_1 = getErrorNames$1;
|
|
2875
|
-
const iterable_operator_1 = es2018$
|
|
2900
|
+
const iterable_operator_1 = es2018$7;
|
|
2876
2901
|
function normalize(err) {
|
|
2877
2902
|
var _a;
|
|
2878
2903
|
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
@@ -2887,13 +2912,19 @@
|
|
|
2887
2912
|
|
|
2888
2913
|
var hydrate$1 = {};
|
|
2889
2914
|
|
|
2890
|
-
var es2018$
|
|
2915
|
+
var es2018$2 = {};
|
|
2916
|
+
|
|
2917
|
+
var pass$1 = {};
|
|
2891
2918
|
|
|
2892
|
-
|
|
2919
|
+
pass$1.pass = void 0;
|
|
2920
|
+
function pass() { }
|
|
2921
|
+
pass$1.pass = pass;
|
|
2922
|
+
|
|
2923
|
+
var passAsync$1 = {};
|
|
2893
2924
|
|
|
2894
|
-
|
|
2895
|
-
function
|
|
2896
|
-
|
|
2925
|
+
passAsync$1.passAsync = void 0;
|
|
2926
|
+
async function passAsync() { }
|
|
2927
|
+
passAsync$1.passAsync = passAsync;
|
|
2897
2928
|
|
|
2898
2929
|
(function (exports) {
|
|
2899
2930
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -2905,12 +2936,13 @@
|
|
|
2905
2936
|
}));
|
|
2906
2937
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2907
2938
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2908
|
-
};__exportStar(pass$
|
|
2939
|
+
};__exportStar(pass$1, exports);
|
|
2940
|
+
__exportStar(passAsync$1, exports);
|
|
2909
2941
|
|
|
2910
|
-
}(es2018$
|
|
2942
|
+
}(es2018$2));
|
|
2911
2943
|
|
|
2912
2944
|
hydrate$1.hydrate = void 0;
|
|
2913
|
-
const pass_1 = es2018$
|
|
2945
|
+
const pass_1 = es2018$2;
|
|
2914
2946
|
function hydrate(err) {
|
|
2915
2947
|
var _a;
|
|
2916
2948
|
const errorNames = [err.name, ...err.ancestors]
|
|
@@ -2968,9 +3000,9 @@
|
|
|
2968
3000
|
__exportStar(getErrorNames$1, exports);
|
|
2969
3001
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
2970
3002
|
|
|
2971
|
-
}(es2018$
|
|
3003
|
+
}(es2018$8));
|
|
2972
3004
|
|
|
2973
|
-
var es2018$
|
|
3005
|
+
var es2018$1 = {};
|
|
2974
3006
|
|
|
2975
3007
|
var log$1 = {};
|
|
2976
3008
|
|
|
@@ -2983,420 +3015,59 @@
|
|
|
2983
3015
|
|
|
2984
3016
|
var time$1 = {};
|
|
2985
3017
|
|
|
2986
|
-
var
|
|
3018
|
+
var lib = {};
|
|
3019
|
+
|
|
3020
|
+
var performanceNow_browser = {};
|
|
2987
3021
|
|
|
2988
|
-
|
|
2989
|
-
function
|
|
3022
|
+
performanceNow_browser.performanceNow = void 0;
|
|
3023
|
+
function performanceNow() {
|
|
2990
3024
|
return performance.now();
|
|
2991
3025
|
}
|
|
2992
|
-
|
|
2993
|
-
function elapsed(startTime, endTime) {
|
|
2994
|
-
return `${endTime - startTime}ms`;
|
|
2995
|
-
}
|
|
2996
|
-
highResolutionTimestamp_browser.elapsed = elapsed;
|
|
3026
|
+
performanceNow_browser.performanceNow = performanceNow;
|
|
2997
3027
|
|
|
2998
|
-
|
|
3028
|
+
(function (exports) {
|
|
3029
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3030
|
+
if (k2 === undefined) k2 = k;
|
|
3031
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3032
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3033
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3034
|
+
}
|
|
3035
|
+
Object.defineProperty(o, k2, desc);
|
|
3036
|
+
}) : (function(o, m, k, k2) {
|
|
3037
|
+
if (k2 === undefined) k2 = k;
|
|
3038
|
+
o[k2] = m[k];
|
|
3039
|
+
}));
|
|
3040
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3041
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3042
|
+
};__exportStar(performanceNow_browser, exports);
|
|
2999
3043
|
|
|
3000
|
-
|
|
3044
|
+
}(lib));
|
|
3001
3045
|
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
function isntArray(val) {
|
|
3008
|
-
return !isArray(val);
|
|
3009
|
-
}
|
|
3010
|
-
array.isntArray = isntArray;
|
|
3011
|
-
function isEmptyArray(val) {
|
|
3012
|
-
return val.length === 0;
|
|
3046
|
+
var getElapsedTime$1 = {};
|
|
3047
|
+
|
|
3048
|
+
getElapsedTime$1.getElapsedTime = void 0;
|
|
3049
|
+
function getElapsedTime(startTime, endTime) {
|
|
3050
|
+
return `${endTime - startTime}ms`;
|
|
3013
3051
|
}
|
|
3014
|
-
|
|
3015
|
-
function isntEmptyArray(val) {
|
|
3016
|
-
return val.length !== 0;
|
|
3017
|
-
}
|
|
3018
|
-
array.isntEmptyArray = isntEmptyArray;
|
|
3019
|
-
|
|
3020
|
-
var asyncIterable = {};
|
|
3021
|
-
|
|
3022
|
-
var _null = {};
|
|
3023
|
-
|
|
3024
|
-
_null.isntNull = _null.isNull = void 0;
|
|
3025
|
-
function isNull(val) {
|
|
3026
|
-
return val === null;
|
|
3027
|
-
}
|
|
3028
|
-
_null.isNull = isNull;
|
|
3029
|
-
function isntNull(val) {
|
|
3030
|
-
return !isNull(val);
|
|
3031
|
-
}
|
|
3032
|
-
_null.isntNull = isntNull;
|
|
3033
|
-
|
|
3034
|
-
var _undefined = {};
|
|
3035
|
-
|
|
3036
|
-
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
3037
|
-
function isUndefined(val) {
|
|
3038
|
-
return val === undefined;
|
|
3039
|
-
}
|
|
3040
|
-
_undefined.isUndefined = isUndefined;
|
|
3041
|
-
function isntUndefined(val) {
|
|
3042
|
-
return !isUndefined(val);
|
|
3043
|
-
}
|
|
3044
|
-
_undefined.isntUndefined = isntUndefined;
|
|
3045
|
-
|
|
3046
|
-
var _function = {};
|
|
3047
|
-
|
|
3048
|
-
_function.isntFunction = _function.isFunction = void 0;
|
|
3049
|
-
function isFunction(val) {
|
|
3050
|
-
return typeof val === 'function';
|
|
3051
|
-
}
|
|
3052
|
-
_function.isFunction = isFunction;
|
|
3053
|
-
function isntFunction(val) {
|
|
3054
|
-
return !isFunction(val);
|
|
3055
|
-
}
|
|
3056
|
-
_function.isntFunction = isntFunction;
|
|
3057
|
-
|
|
3058
|
-
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
3059
|
-
const null_1$2 = _null;
|
|
3060
|
-
const undefined_1$1 = _undefined;
|
|
3061
|
-
const function_1$2 = _function;
|
|
3062
|
-
function isAsyncIterable(val) {
|
|
3063
|
-
return (0, null_1$2.isntNull)(val)
|
|
3064
|
-
&& (0, undefined_1$1.isntUndefined)(val)
|
|
3065
|
-
&& (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
|
|
3066
|
-
}
|
|
3067
|
-
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
3068
|
-
function isntAsyncIterable(val) {
|
|
3069
|
-
return !isAsyncIterable(val);
|
|
3070
|
-
}
|
|
3071
|
-
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
3072
|
-
|
|
3073
|
-
var bigint = {};
|
|
3074
|
-
|
|
3075
|
-
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
3076
|
-
function isBigInt(val) {
|
|
3077
|
-
return typeof val === 'bigint';
|
|
3078
|
-
}
|
|
3079
|
-
bigint.isBigInt = isBigInt;
|
|
3080
|
-
function isntBigInt(val) {
|
|
3081
|
-
return !isBigInt(val);
|
|
3082
|
-
}
|
|
3083
|
-
bigint.isntBigInt = isntBigInt;
|
|
3084
|
-
|
|
3085
|
-
var boolean = {};
|
|
3086
|
-
|
|
3087
|
-
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
3088
|
-
function isBoolean(val) {
|
|
3089
|
-
return typeof val === 'boolean';
|
|
3090
|
-
}
|
|
3091
|
-
boolean.isBoolean = isBoolean;
|
|
3092
|
-
function isntBoolean(val) {
|
|
3093
|
-
return !isBoolean(val);
|
|
3094
|
-
}
|
|
3095
|
-
boolean.isntBoolean = isntBoolean;
|
|
3096
|
-
|
|
3097
|
-
var char = {};
|
|
3098
|
-
|
|
3099
|
-
var string = {};
|
|
3100
|
-
|
|
3101
|
-
string.isntString = string.isString = void 0;
|
|
3102
|
-
function isString(val) {
|
|
3103
|
-
return typeof val === 'string';
|
|
3104
|
-
}
|
|
3105
|
-
string.isString = isString;
|
|
3106
|
-
function isntString(val) {
|
|
3107
|
-
return !isString(val);
|
|
3108
|
-
}
|
|
3109
|
-
string.isntString = isntString;
|
|
3110
|
-
|
|
3111
|
-
char.isntChar = char.isChar = void 0;
|
|
3112
|
-
const string_1$1 = string;
|
|
3113
|
-
function isChar(val) {
|
|
3114
|
-
return (0, string_1$1.isString)(val)
|
|
3115
|
-
&& val.length === 1;
|
|
3116
|
-
}
|
|
3117
|
-
char.isChar = isChar;
|
|
3118
|
-
function isntChar(val) {
|
|
3119
|
-
return !isChar(val);
|
|
3120
|
-
}
|
|
3121
|
-
char.isntChar = isntChar;
|
|
3122
|
-
|
|
3123
|
-
var date = {};
|
|
3124
|
-
|
|
3125
|
-
date.isntDate = date.isDate = void 0;
|
|
3126
|
-
function isDate(val) {
|
|
3127
|
-
return val instanceof Date;
|
|
3128
|
-
}
|
|
3129
|
-
date.isDate = isDate;
|
|
3130
|
-
function isntDate(val) {
|
|
3131
|
-
return !isDate(val);
|
|
3132
|
-
}
|
|
3133
|
-
date.isntDate = isntDate;
|
|
3134
|
-
|
|
3135
|
-
var _enum = {};
|
|
3136
|
-
|
|
3137
|
-
_enum.inEnum = void 0;
|
|
3138
|
-
function inEnum(val, _enum) {
|
|
3139
|
-
return Object.values(_enum).includes(val);
|
|
3140
|
-
}
|
|
3141
|
-
_enum.inEnum = inEnum;
|
|
3142
|
-
|
|
3143
|
-
var error = {};
|
|
3144
|
-
|
|
3145
|
-
error.isntError = error.isError = void 0;
|
|
3146
|
-
function isError(val) {
|
|
3147
|
-
return val instanceof Error;
|
|
3148
|
-
}
|
|
3149
|
-
error.isError = isError;
|
|
3150
|
-
function isntError(val) {
|
|
3151
|
-
return !isError(val);
|
|
3152
|
-
}
|
|
3153
|
-
error.isntError = isntError;
|
|
3154
|
-
|
|
3155
|
-
var falsy = {};
|
|
3156
|
-
|
|
3157
|
-
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
3158
|
-
function isFalsy(val) {
|
|
3159
|
-
return !val;
|
|
3160
|
-
}
|
|
3161
|
-
falsy.isFalsy = isFalsy;
|
|
3162
|
-
function isntFalsy(val) {
|
|
3163
|
-
return !isFalsy(val);
|
|
3164
|
-
}
|
|
3165
|
-
falsy.isntFalsy = isntFalsy;
|
|
3166
|
-
|
|
3167
|
-
var iterable = {};
|
|
3168
|
-
|
|
3169
|
-
iterable.isntIterable = iterable.isIterable = void 0;
|
|
3170
|
-
const null_1$1 = _null;
|
|
3171
|
-
const undefined_1 = _undefined;
|
|
3172
|
-
const function_1$1 = _function;
|
|
3173
|
-
function isIterable(val) {
|
|
3174
|
-
return (0, null_1$1.isntNull)(val)
|
|
3175
|
-
&& (0, undefined_1.isntUndefined)(val)
|
|
3176
|
-
&& (0, function_1$1.isFunction)(val[Symbol.iterator]);
|
|
3177
|
-
}
|
|
3178
|
-
iterable.isIterable = isIterable;
|
|
3179
|
-
function isntIterable(val) {
|
|
3180
|
-
return !isIterable(val);
|
|
3181
|
-
}
|
|
3182
|
-
iterable.isntIterable = isntIterable;
|
|
3183
|
-
|
|
3184
|
-
var json$1 = {};
|
|
3185
|
-
|
|
3186
|
-
var number = {};
|
|
3187
|
-
|
|
3188
|
-
number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
|
|
3189
|
-
function isNumber(val) {
|
|
3190
|
-
return typeof val === 'number';
|
|
3191
|
-
}
|
|
3192
|
-
number.isNumber = isNumber;
|
|
3193
|
-
function isntNumber(val) {
|
|
3194
|
-
return !isNumber(val);
|
|
3195
|
-
}
|
|
3196
|
-
number.isntNumber = isntNumber;
|
|
3197
|
-
function isFinite(val) {
|
|
3198
|
-
return Number.isFinite(val);
|
|
3199
|
-
}
|
|
3200
|
-
number.isFinite = isFinite;
|
|
3201
|
-
function isPositiveInfinity(val) {
|
|
3202
|
-
return val === Infinity;
|
|
3203
|
-
}
|
|
3204
|
-
number.isPositiveInfinity = isPositiveInfinity;
|
|
3205
|
-
function isNegativeInfinity(val) {
|
|
3206
|
-
return val === -Infinity;
|
|
3207
|
-
}
|
|
3208
|
-
number.isNegativeInfinity = isNegativeInfinity;
|
|
3209
|
-
function isNaN(val) {
|
|
3210
|
-
return Number.isNaN(val);
|
|
3211
|
-
}
|
|
3212
|
-
number.isNaN = isNaN;
|
|
3213
|
-
function isntNaN(val) {
|
|
3214
|
-
return !isNaN(val);
|
|
3215
|
-
}
|
|
3216
|
-
number.isntNaN = isntNaN;
|
|
3217
|
-
|
|
3218
|
-
var object = {};
|
|
3219
|
-
|
|
3220
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3221
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3222
|
-
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
3223
|
-
const isPlainObject_1 = __importDefault(isPlainObject_1$2);
|
|
3224
|
-
function isObject(val) {
|
|
3225
|
-
return val !== null
|
|
3226
|
-
&& typeof val === 'object';
|
|
3227
|
-
}
|
|
3228
|
-
object.isObject = isObject;
|
|
3229
|
-
function isntObject(val) {
|
|
3230
|
-
return !isObject(val);
|
|
3231
|
-
}
|
|
3232
|
-
object.isntObject = isntObject;
|
|
3233
|
-
function isPlainObject(val) {
|
|
3234
|
-
return (0, isPlainObject_1.default)(val);
|
|
3235
|
-
}
|
|
3236
|
-
object.isPlainObject = isPlainObject;
|
|
3237
|
-
function isntPlainObject(val) {
|
|
3238
|
-
return !isPlainObject(val);
|
|
3239
|
-
}
|
|
3240
|
-
object.isntPlainObject = isntPlainObject;
|
|
3241
|
-
function isEmptyObject(val) {
|
|
3242
|
-
return Object.keys(val).length === 0;
|
|
3243
|
-
}
|
|
3244
|
-
object.isEmptyObject = isEmptyObject;
|
|
3245
|
-
function isntEmptyObject(val) {
|
|
3246
|
-
return Object.keys(val).length !== 0;
|
|
3247
|
-
}
|
|
3248
|
-
object.isntEmptyObject = isntEmptyObject;
|
|
3249
|
-
|
|
3250
|
-
json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
|
|
3251
|
-
const null_1 = _null;
|
|
3252
|
-
const boolean_1 = boolean;
|
|
3253
|
-
const string_1 = string;
|
|
3254
|
-
const number_1 = number;
|
|
3255
|
-
const array_1 = array;
|
|
3256
|
-
const object_1$1 = object;
|
|
3257
|
-
function isJson(val) {
|
|
3258
|
-
return (0, null_1.isNull)(val)
|
|
3259
|
-
|| (0, boolean_1.isBoolean)(val)
|
|
3260
|
-
|| (0, string_1.isString)(val)
|
|
3261
|
-
|| (0, number_1.isNumber)(val)
|
|
3262
|
-
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
3263
|
-
|| ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
|
|
3264
|
-
}
|
|
3265
|
-
json$1.isJson = isJson;
|
|
3266
|
-
function isntJson(val) {
|
|
3267
|
-
return !isJson(val);
|
|
3268
|
-
}
|
|
3269
|
-
json$1.isntJson = isntJson;
|
|
3270
|
-
function isJsonable(val) {
|
|
3271
|
-
try {
|
|
3272
|
-
JSON.stringify(val);
|
|
3273
|
-
return true;
|
|
3274
|
-
}
|
|
3275
|
-
catch (_a) {
|
|
3276
|
-
return false;
|
|
3277
|
-
}
|
|
3278
|
-
}
|
|
3279
|
-
json$1.isJsonable = isJsonable;
|
|
3280
|
-
function isntJsonable(val) {
|
|
3281
|
-
return !isntJsonable();
|
|
3282
|
-
}
|
|
3283
|
-
json$1.isntJsonable = isntJsonable;
|
|
3284
|
-
|
|
3285
|
-
var promise = {};
|
|
3286
|
-
|
|
3287
|
-
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
3288
|
-
const object_1 = object;
|
|
3289
|
-
const function_1 = _function;
|
|
3290
|
-
function isPromise(val) {
|
|
3291
|
-
return val instanceof Promise;
|
|
3292
|
-
}
|
|
3293
|
-
promise.isPromise = isPromise;
|
|
3294
|
-
function isntPromise(val) {
|
|
3295
|
-
return !isPromise(val);
|
|
3296
|
-
}
|
|
3297
|
-
promise.isntPromise = isntPromise;
|
|
3298
|
-
function isntPromiseLike(val) {
|
|
3299
|
-
return !isPromiseLike(val);
|
|
3300
|
-
}
|
|
3301
|
-
promise.isntPromiseLike = isntPromiseLike;
|
|
3302
|
-
function isPromiseLike(val) {
|
|
3303
|
-
return (0, object_1.isObject)(val)
|
|
3304
|
-
&& (0, function_1.isFunction)(val.then);
|
|
3305
|
-
}
|
|
3306
|
-
promise.isPromiseLike = isPromiseLike;
|
|
3307
|
-
|
|
3308
|
-
var url$1 = {};
|
|
3309
|
-
|
|
3310
|
-
url$1.isAbsoluteURL = void 0;
|
|
3311
|
-
function isAbsoluteURL(str) {
|
|
3312
|
-
try {
|
|
3313
|
-
new URL(str);
|
|
3314
|
-
return true;
|
|
3315
|
-
}
|
|
3316
|
-
catch (_a) {
|
|
3317
|
-
return false;
|
|
3318
|
-
}
|
|
3319
|
-
}
|
|
3320
|
-
url$1.isAbsoluteURL = isAbsoluteURL;
|
|
3321
|
-
|
|
3322
|
-
var regexp = {};
|
|
3323
|
-
|
|
3324
|
-
regexp.isntRegExp = regexp.isRegExp = void 0;
|
|
3325
|
-
function isRegExp(val) {
|
|
3326
|
-
return val instanceof RegExp;
|
|
3327
|
-
}
|
|
3328
|
-
regexp.isRegExp = isRegExp;
|
|
3329
|
-
function isntRegExp(val) {
|
|
3330
|
-
return !isRegExp(val);
|
|
3331
|
-
}
|
|
3332
|
-
regexp.isntRegExp = isntRegExp;
|
|
3333
|
-
|
|
3334
|
-
var symbol = {};
|
|
3335
|
-
|
|
3336
|
-
symbol.isntSymbol = symbol.isSymbol = void 0;
|
|
3337
|
-
function isSymbol(val) {
|
|
3338
|
-
return typeof val === 'symbol';
|
|
3339
|
-
}
|
|
3340
|
-
symbol.isSymbol = isSymbol;
|
|
3341
|
-
function isntSymbol(val) {
|
|
3342
|
-
return !isSymbol(val);
|
|
3343
|
-
}
|
|
3344
|
-
symbol.isntSymbol = isntSymbol;
|
|
3345
|
-
|
|
3346
|
-
(function (exports) {
|
|
3347
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3348
|
-
if (k2 === undefined) k2 = k;
|
|
3349
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3350
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3351
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3352
|
-
}
|
|
3353
|
-
Object.defineProperty(o, k2, desc);
|
|
3354
|
-
}) : (function(o, m, k, k2) {
|
|
3355
|
-
if (k2 === undefined) k2 = k;
|
|
3356
|
-
o[k2] = m[k];
|
|
3357
|
-
}));
|
|
3358
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3359
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3360
|
-
};__exportStar(array, exports);
|
|
3361
|
-
__exportStar(asyncIterable, exports);
|
|
3362
|
-
__exportStar(bigint, exports);
|
|
3363
|
-
__exportStar(boolean, exports);
|
|
3364
|
-
__exportStar(char, exports);
|
|
3365
|
-
__exportStar(date, exports);
|
|
3366
|
-
__exportStar(_enum, exports);
|
|
3367
|
-
__exportStar(error, exports);
|
|
3368
|
-
__exportStar(falsy, exports);
|
|
3369
|
-
__exportStar(_function, exports);
|
|
3370
|
-
__exportStar(iterable, exports);
|
|
3371
|
-
__exportStar(json$1, exports);
|
|
3372
|
-
__exportStar(_null, exports);
|
|
3373
|
-
__exportStar(number, exports);
|
|
3374
|
-
__exportStar(object, exports);
|
|
3375
|
-
__exportStar(promise, exports);
|
|
3376
|
-
__exportStar(string, exports);
|
|
3377
|
-
__exportStar(_undefined, exports);
|
|
3378
|
-
__exportStar(url$1, exports);
|
|
3379
|
-
__exportStar(regexp, exports);
|
|
3380
|
-
__exportStar(symbol, exports);
|
|
3381
|
-
|
|
3382
|
-
}(es2018$3));
|
|
3052
|
+
getElapsedTime$1.getElapsedTime = getElapsedTime;
|
|
3383
3053
|
|
|
3384
3054
|
time$1.time = void 0;
|
|
3385
|
-
const
|
|
3055
|
+
const extra_compatible_1$2 = lib;
|
|
3056
|
+
const get_elapsed_time_1$2 = getElapsedTime$1;
|
|
3386
3057
|
const types_1$1 = es2018$3;
|
|
3387
3058
|
function time(message, fn) {
|
|
3388
|
-
const startTime = (0,
|
|
3059
|
+
const startTime = (0, extra_compatible_1$2.performanceNow)();
|
|
3389
3060
|
const result = fn();
|
|
3390
3061
|
if ((0, types_1$1.isPromiseLike)(result)) {
|
|
3391
3062
|
return result.then(() => {
|
|
3392
|
-
const endTime = (0,
|
|
3393
|
-
console.log(message, (0,
|
|
3063
|
+
const endTime = (0, extra_compatible_1$2.performanceNow)();
|
|
3064
|
+
console.log(message, (0, get_elapsed_time_1$2.getElapsedTime)(startTime, endTime));
|
|
3394
3065
|
return result;
|
|
3395
3066
|
});
|
|
3396
3067
|
}
|
|
3397
3068
|
else {
|
|
3398
|
-
const endTime = (0,
|
|
3399
|
-
console.log(message, (0,
|
|
3069
|
+
const endTime = (0, extra_compatible_1$2.performanceNow)();
|
|
3070
|
+
console.log(message, (0, get_elapsed_time_1$2.getElapsedTime)(startTime, endTime));
|
|
3400
3071
|
return result;
|
|
3401
3072
|
}
|
|
3402
3073
|
}
|
|
@@ -3405,13 +3076,14 @@
|
|
|
3405
3076
|
var timeFunction$1 = {};
|
|
3406
3077
|
|
|
3407
3078
|
timeFunction$1.timeFunction = void 0;
|
|
3408
|
-
const
|
|
3079
|
+
const extra_compatible_1$1 = lib;
|
|
3080
|
+
const get_elapsed_time_1$1 = getElapsedTime$1;
|
|
3409
3081
|
function timeFunction(message, fn) {
|
|
3410
3082
|
return function (...args) {
|
|
3411
|
-
const startTime = (0,
|
|
3083
|
+
const startTime = (0, extra_compatible_1$1.performanceNow)();
|
|
3412
3084
|
const result = fn(...args);
|
|
3413
|
-
const endTime = (0,
|
|
3414
|
-
console.log(message, (0,
|
|
3085
|
+
const endTime = (0, extra_compatible_1$1.performanceNow)();
|
|
3086
|
+
console.log(message, (0, get_elapsed_time_1$1.getElapsedTime)(startTime, endTime));
|
|
3415
3087
|
return result;
|
|
3416
3088
|
};
|
|
3417
3089
|
}
|
|
@@ -3420,13 +3092,14 @@
|
|
|
3420
3092
|
var timeAsyncFunction$1 = {};
|
|
3421
3093
|
|
|
3422
3094
|
timeAsyncFunction$1.timeAsyncFunction = void 0;
|
|
3423
|
-
const
|
|
3095
|
+
const extra_compatible_1 = lib;
|
|
3096
|
+
const get_elapsed_time_1 = getElapsedTime$1;
|
|
3424
3097
|
function timeAsyncFunction(message, fn) {
|
|
3425
3098
|
return async function (...args) {
|
|
3426
|
-
const startTime = (0,
|
|
3099
|
+
const startTime = (0, extra_compatible_1.performanceNow)();
|
|
3427
3100
|
const result = await fn(...args);
|
|
3428
|
-
const endTime = (0,
|
|
3429
|
-
console.log(message, (0,
|
|
3101
|
+
const endTime = (0, extra_compatible_1.performanceNow)();
|
|
3102
|
+
console.log(message, (0, get_elapsed_time_1.getElapsedTime)(startTime, endTime));
|
|
3430
3103
|
return result;
|
|
3431
3104
|
};
|
|
3432
3105
|
}
|
|
@@ -3434,73 +3107,8 @@
|
|
|
3434
3107
|
|
|
3435
3108
|
var group$1 = {};
|
|
3436
3109
|
|
|
3437
|
-
var es2018$2 = {};
|
|
3438
|
-
|
|
3439
|
-
var go$1 = {};
|
|
3440
|
-
|
|
3441
|
-
go$1.go = void 0;
|
|
3442
|
-
function go(fn) {
|
|
3443
|
-
return fn();
|
|
3444
|
-
}
|
|
3445
|
-
go$1.go = go;
|
|
3446
|
-
|
|
3447
|
-
var goMicrotask$1 = {};
|
|
3448
|
-
|
|
3449
|
-
goMicrotask$1.goMicrotask = void 0;
|
|
3450
|
-
function goMicrotask(fn) {
|
|
3451
|
-
return new Promise((resolve, reject) => {
|
|
3452
|
-
queueMicrotask(async () => {
|
|
3453
|
-
try {
|
|
3454
|
-
resolve(await fn());
|
|
3455
|
-
}
|
|
3456
|
-
catch (e) {
|
|
3457
|
-
reject(e);
|
|
3458
|
-
}
|
|
3459
|
-
});
|
|
3460
|
-
});
|
|
3461
|
-
}
|
|
3462
|
-
goMicrotask$1.goMicrotask = goMicrotask;
|
|
3463
|
-
|
|
3464
|
-
var goMacrotask$1 = {};
|
|
3465
|
-
|
|
3466
|
-
goMacrotask$1.goMacrotask = void 0;
|
|
3467
|
-
const extra_timers_1 = es2018$8;
|
|
3468
|
-
function goMacrotask(fn) {
|
|
3469
|
-
return new Promise((resolve, reject) => {
|
|
3470
|
-
(0, extra_timers_1.setImmediate)(async () => {
|
|
3471
|
-
try {
|
|
3472
|
-
resolve(await fn());
|
|
3473
|
-
}
|
|
3474
|
-
catch (e) {
|
|
3475
|
-
reject(e);
|
|
3476
|
-
}
|
|
3477
|
-
});
|
|
3478
|
-
});
|
|
3479
|
-
}
|
|
3480
|
-
goMacrotask$1.goMacrotask = goMacrotask;
|
|
3481
|
-
|
|
3482
|
-
(function (exports) {
|
|
3483
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3484
|
-
if (k2 === undefined) k2 = k;
|
|
3485
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3486
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3487
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3488
|
-
}
|
|
3489
|
-
Object.defineProperty(o, k2, desc);
|
|
3490
|
-
}) : (function(o, m, k, k2) {
|
|
3491
|
-
if (k2 === undefined) k2 = k;
|
|
3492
|
-
o[k2] = m[k];
|
|
3493
|
-
}));
|
|
3494
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3495
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3496
|
-
};__exportStar(go$1, exports);
|
|
3497
|
-
__exportStar(goMicrotask$1, exports);
|
|
3498
|
-
__exportStar(goMacrotask$1, exports);
|
|
3499
|
-
|
|
3500
|
-
}(es2018$2));
|
|
3501
|
-
|
|
3502
3110
|
group$1.group = void 0;
|
|
3503
|
-
const go_1 = es2018$
|
|
3111
|
+
const go_1 = es2018$6;
|
|
3504
3112
|
const types_1 = es2018$3;
|
|
3505
3113
|
function group(...args) {
|
|
3506
3114
|
const [label, fn] = (0, go_1.go)(() => {
|
|
@@ -3545,9 +3153,9 @@
|
|
|
3545
3153
|
__exportStar(timeAsyncFunction$1, exports);
|
|
3546
3154
|
__exportStar(group$1, exports);
|
|
3547
3155
|
|
|
3548
|
-
}(es2018$
|
|
3156
|
+
}(es2018$1));
|
|
3549
3157
|
|
|
3550
|
-
var es2018
|
|
3158
|
+
var es2018 = {};
|
|
3551
3159
|
|
|
3552
3160
|
var lazy$1 = {};
|
|
3553
3161
|
|
|
@@ -3659,54 +3267,25 @@
|
|
|
3659
3267
|
__exportStar(lazyAsyncFunction$1, exports);
|
|
3660
3268
|
__exportStar(lazyStatic$1, exports);
|
|
3661
3269
|
|
|
3662
|
-
}(es2018$1));
|
|
3663
|
-
|
|
3664
|
-
var es2018 = {};
|
|
3665
|
-
|
|
3666
|
-
var pass$1 = {};
|
|
3667
|
-
|
|
3668
|
-
pass$1.pass = void 0;
|
|
3669
|
-
function pass() { }
|
|
3670
|
-
pass$1.pass = pass;
|
|
3671
|
-
|
|
3672
|
-
var passAsync$1 = {};
|
|
3673
|
-
|
|
3674
|
-
passAsync$1.passAsync = void 0;
|
|
3675
|
-
async function passAsync() { }
|
|
3676
|
-
passAsync$1.passAsync = passAsync;
|
|
3677
|
-
|
|
3678
|
-
(function (exports) {
|
|
3679
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3680
|
-
if (k2 === undefined) k2 = k;
|
|
3681
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
3682
|
-
}) : (function(o, m, k, k2) {
|
|
3683
|
-
if (k2 === undefined) k2 = k;
|
|
3684
|
-
o[k2] = m[k];
|
|
3685
|
-
}));
|
|
3686
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3687
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3688
|
-
};__exportStar(pass$1, exports);
|
|
3689
|
-
__exportStar(passAsync$1, exports);
|
|
3690
|
-
|
|
3691
3270
|
}(es2018));
|
|
3692
3271
|
|
|
3693
3272
|
(function (exports) {
|
|
3694
|
-
exports.
|
|
3695
|
-
exports.isntSymbol = exports.isntRegExp = exports.isntUndefined = exports.isntString = exports.isntPromiseLike = exports.isntPromise = exports.isntPlainObject = exports.isntObject = void 0;
|
|
3696
|
-
var errors_1 = es2018$
|
|
3273
|
+
exports.isntNull = exports.isntJson = exports.isntIterable = exports.isntFunction = exports.isntFalsy = exports.isntError = exports.isntEmptyObject = exports.isntEmptyArray = exports.isntDate = exports.isntChar = exports.isntBoolean = exports.isntBigInt = exports.isntAsyncIterable = exports.isntArray = exports.isSymbol = exports.isRegExp = exports.isUndefined = exports.isString = exports.isPromiseLike = exports.isPromise = exports.isPlainObject = exports.isObject = exports.isntNaN = exports.isNaN = exports.isNegativeInfinity = exports.isPositiveInfinity = exports.isFinite = exports.isNumber = exports.isNullish = exports.isNull = exports.isJson = exports.isIterable = exports.isFunction = exports.isFalsy = exports.isError = exports.isEmptyObject = exports.isEmptyArray = exports.isDate = exports.isChar = exports.isBoolean = exports.isBigInt = exports.isAsyncIterable = exports.isArray = exports.toArrayAsync = exports.toArray = exports.pass = exports.lazy = exports.log = exports.go = exports.assert = void 0;
|
|
3274
|
+
exports.isntSymbol = exports.isntRegExp = exports.isntUndefined = exports.isntString = exports.isntPromiseLike = exports.isntPromise = exports.isntPlainObject = exports.isntObject = exports.isntNumber = exports.isntNullish = void 0;
|
|
3275
|
+
var errors_1 = es2018$8;
|
|
3697
3276
|
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return errors_1.assert; } });
|
|
3698
|
-
var go_1 = es2018$
|
|
3277
|
+
var go_1 = es2018$6;
|
|
3699
3278
|
Object.defineProperty(exports, "go", { enumerable: true, get: function () { return go_1.go; } });
|
|
3700
|
-
var log_1 = es2018$
|
|
3279
|
+
var log_1 = es2018$1;
|
|
3701
3280
|
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return log_1.log; } });
|
|
3702
|
-
var extra_lazy_1 = es2018
|
|
3281
|
+
var extra_lazy_1 = es2018;
|
|
3703
3282
|
Object.defineProperty(exports, "lazy", { enumerable: true, get: function () { return extra_lazy_1.lazy; } });
|
|
3704
|
-
var pass_1 = es2018;
|
|
3283
|
+
var pass_1 = es2018$2;
|
|
3705
3284
|
Object.defineProperty(exports, "pass", { enumerable: true, get: function () { return pass_1.pass; } });
|
|
3706
|
-
var iterable_operator_1 = es2018$
|
|
3285
|
+
var iterable_operator_1 = es2018$7;
|
|
3707
3286
|
Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return iterable_operator_1.toArray; } });
|
|
3708
3287
|
Object.defineProperty(exports, "toArrayAsync", { enumerable: true, get: function () { return iterable_operator_1.toArrayAsync; } });
|
|
3709
|
-
var types_1 = es2018$
|
|
3288
|
+
var types_1 = es2018$3;
|
|
3710
3289
|
Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return types_1.isArray; } });
|
|
3711
3290
|
Object.defineProperty(exports, "isAsyncIterable", { enumerable: true, get: function () { return types_1.isAsyncIterable; } });
|
|
3712
3291
|
Object.defineProperty(exports, "isBigInt", { enumerable: true, get: function () { return types_1.isBigInt; } });
|
|
@@ -3721,6 +3300,7 @@
|
|
|
3721
3300
|
Object.defineProperty(exports, "isIterable", { enumerable: true, get: function () { return types_1.isIterable; } });
|
|
3722
3301
|
Object.defineProperty(exports, "isJson", { enumerable: true, get: function () { return types_1.isJson; } });
|
|
3723
3302
|
Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return types_1.isNull; } });
|
|
3303
|
+
Object.defineProperty(exports, "isNullish", { enumerable: true, get: function () { return types_1.isNullish; } });
|
|
3724
3304
|
Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return types_1.isNumber; } });
|
|
3725
3305
|
Object.defineProperty(exports, "isFinite", { enumerable: true, get: function () { return types_1.isFinite; } });
|
|
3726
3306
|
Object.defineProperty(exports, "isPositiveInfinity", { enumerable: true, get: function () { return types_1.isPositiveInfinity; } });
|
|
@@ -3749,6 +3329,7 @@
|
|
|
3749
3329
|
Object.defineProperty(exports, "isntIterable", { enumerable: true, get: function () { return types_1.isntIterable; } });
|
|
3750
3330
|
Object.defineProperty(exports, "isntJson", { enumerable: true, get: function () { return types_1.isntJson; } });
|
|
3751
3331
|
Object.defineProperty(exports, "isntNull", { enumerable: true, get: function () { return types_1.isntNull; } });
|
|
3332
|
+
Object.defineProperty(exports, "isntNullish", { enumerable: true, get: function () { return types_1.isntNullish; } });
|
|
3752
3333
|
Object.defineProperty(exports, "isntNumber", { enumerable: true, get: function () { return types_1.isntNumber; } });
|
|
3753
3334
|
Object.defineProperty(exports, "isntObject", { enumerable: true, get: function () { return types_1.isntObject; } });
|
|
3754
3335
|
Object.defineProperty(exports, "isntPlainObject", { enumerable: true, get: function () { return types_1.isntPlainObject; } });
|
|
@@ -3759,7 +3340,7 @@
|
|
|
3759
3340
|
Object.defineProperty(exports, "isntRegExp", { enumerable: true, get: function () { return types_1.isntRegExp; } });
|
|
3760
3341
|
Object.defineProperty(exports, "isntSymbol", { enumerable: true, get: function () { return types_1.isntSymbol; } });
|
|
3761
3342
|
|
|
3762
|
-
}(es2018$
|
|
3343
|
+
}(es2018$9));
|
|
3763
3344
|
|
|
3764
3345
|
function get(...transformers) {
|
|
3765
3346
|
return request('GET', ...transformers);
|
|
@@ -3780,12 +3361,12 @@
|
|
|
3780
3361
|
return request('DELETE', ...transformers);
|
|
3781
3362
|
}
|
|
3782
3363
|
function request(method, ...transformers) {
|
|
3783
|
-
const options = transformers.reduce((options, trans) => es2018$
|
|
3364
|
+
const options = transformers.reduce((options, trans) => es2018$9.isFunction(trans) ? trans(options) : options, {
|
|
3784
3365
|
url: new URL('http://localhost'),
|
|
3785
|
-
headers: new es2018$
|
|
3366
|
+
headers: new es2018$a.Headers()
|
|
3786
3367
|
});
|
|
3787
|
-
const headers = new es2018$
|
|
3788
|
-
return new es2018$
|
|
3368
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3369
|
+
return new es2018$a.Request(options.url.href, {
|
|
3789
3370
|
method,
|
|
3790
3371
|
headers,
|
|
3791
3372
|
signal: options.signal,
|
|
@@ -3803,7 +3384,7 @@
|
|
|
3803
3384
|
|
|
3804
3385
|
function text(payload) {
|
|
3805
3386
|
return (options) => {
|
|
3806
|
-
const headers = new es2018$
|
|
3387
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3807
3388
|
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
3808
3389
|
return Object.assign(Object.assign({}, options), { headers,
|
|
3809
3390
|
payload });
|
|
@@ -3812,7 +3393,7 @@
|
|
|
3812
3393
|
|
|
3813
3394
|
function json(payload) {
|
|
3814
3395
|
return (options) => {
|
|
3815
|
-
const headers = new es2018$
|
|
3396
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3816
3397
|
headers.set('Content-Type', 'application/json');
|
|
3817
3398
|
return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
|
|
3818
3399
|
};
|
|
@@ -3832,9 +3413,9 @@
|
|
|
3832
3413
|
}(papaparse_min));
|
|
3833
3414
|
|
|
3834
3415
|
function csv(payload) {
|
|
3835
|
-
es2018$
|
|
3416
|
+
es2018$9.assert(payload.length > 0, 'payload must be a non-empty array');
|
|
3836
3417
|
return (options) => {
|
|
3837
|
-
const headers = new es2018$
|
|
3418
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3838
3419
|
headers.set('Content-Type', 'text/csv');
|
|
3839
3420
|
return Object.assign(Object.assign({}, options), { headers, payload: stringify(payload) });
|
|
3840
3421
|
};
|
|
@@ -3852,7 +3433,7 @@
|
|
|
3852
3433
|
|
|
3853
3434
|
function header(name, value) {
|
|
3854
3435
|
return (options) => {
|
|
3855
|
-
const headers = new es2018$
|
|
3436
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3856
3437
|
headers.set(name, value);
|
|
3857
3438
|
return Object.assign(Object.assign({}, options), { headers });
|
|
3858
3439
|
};
|
|
@@ -3860,7 +3441,7 @@
|
|
|
3860
3441
|
|
|
3861
3442
|
function appendHeader(name, value) {
|
|
3862
3443
|
return (options) => {
|
|
3863
|
-
const headers = new es2018$
|
|
3444
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3864
3445
|
headers.append(name, value);
|
|
3865
3446
|
return Object.assign(Object.assign({}, options), { headers });
|
|
3866
3447
|
};
|
|
@@ -3868,7 +3449,7 @@
|
|
|
3868
3449
|
|
|
3869
3450
|
function headers(headers) {
|
|
3870
3451
|
return (options) => {
|
|
3871
|
-
const newHeaders = new es2018$
|
|
3452
|
+
const newHeaders = new es2018$a.Headers(options.headers);
|
|
3872
3453
|
for (const [name, value] of Object.entries(headers)) {
|
|
3873
3454
|
newHeaders.set(name, value);
|
|
3874
3455
|
}
|
|
@@ -3906,7 +3487,7 @@
|
|
|
3906
3487
|
|
|
3907
3488
|
function appendPathname(pathname) {
|
|
3908
3489
|
return (options) => {
|
|
3909
|
-
const base = es2018$
|
|
3490
|
+
const base = es2018$9.go(() => {
|
|
3910
3491
|
const url = new URL(options.url.href);
|
|
3911
3492
|
url.pathname = url.pathname.endsWith('/')
|
|
3912
3493
|
? url.pathname
|
|
@@ -3962,10 +3543,10 @@
|
|
|
3962
3543
|
|
|
3963
3544
|
function formDataField(name, value) {
|
|
3964
3545
|
return (options) => {
|
|
3965
|
-
const formData = options.payload instanceof es2018$
|
|
3546
|
+
const formData = options.payload instanceof es2018$a.FormData
|
|
3966
3547
|
? cloneFormData(options.payload)
|
|
3967
|
-
: new es2018$
|
|
3968
|
-
if (es2018$
|
|
3548
|
+
: new es2018$a.FormData();
|
|
3549
|
+
if (es2018$9.isArray(value)) {
|
|
3969
3550
|
value.forEach(x => formData.append(name, x));
|
|
3970
3551
|
}
|
|
3971
3552
|
else {
|
|
@@ -3975,7 +3556,7 @@
|
|
|
3975
3556
|
};
|
|
3976
3557
|
}
|
|
3977
3558
|
function cloneFormData(formData) {
|
|
3978
|
-
const result = new es2018$
|
|
3559
|
+
const result = new es2018$a.FormData();
|
|
3979
3560
|
for (const [name, value] of formData.entries()) {
|
|
3980
3561
|
result.append(name, value);
|
|
3981
3562
|
}
|