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.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
2
|
|
|
3
|
-
var es2018$
|
|
3
|
+
var es2018$a = {};
|
|
4
4
|
|
|
5
5
|
var fetch_browser = {};
|
|
6
6
|
|
|
@@ -71,34 +71,34 @@ __exportStar(abortError_browser, exports);
|
|
|
71
71
|
__exportStar(blob_browser, exports);
|
|
72
72
|
__exportStar(eventSource_browser, exports);
|
|
73
73
|
|
|
74
|
-
}(es2018$
|
|
74
|
+
}(es2018$a));
|
|
75
75
|
|
|
76
|
-
var es2018$
|
|
76
|
+
var es2018$9 = {};
|
|
77
77
|
|
|
78
|
-
var es2018$
|
|
78
|
+
var es2018$8 = {};
|
|
79
79
|
|
|
80
80
|
var customError = {};
|
|
81
81
|
|
|
82
|
-
var es2018$
|
|
82
|
+
var es2018$7 = {};
|
|
83
83
|
|
|
84
|
-
var
|
|
84
|
+
var intermediate = {};
|
|
85
85
|
|
|
86
86
|
var chunkAsync$1 = {};
|
|
87
87
|
|
|
88
|
-
var es2018$
|
|
88
|
+
var es2018$6 = {};
|
|
89
89
|
|
|
90
|
-
var go$
|
|
90
|
+
var go$1 = {};
|
|
91
91
|
|
|
92
|
-
go$
|
|
93
|
-
function go
|
|
92
|
+
go$1.go = void 0;
|
|
93
|
+
function go(fn) {
|
|
94
94
|
return fn();
|
|
95
95
|
}
|
|
96
|
-
go$
|
|
96
|
+
go$1.go = go;
|
|
97
97
|
|
|
98
|
-
var goMicrotask$
|
|
98
|
+
var goMicrotask$1 = {};
|
|
99
99
|
|
|
100
|
-
goMicrotask$
|
|
101
|
-
function goMicrotask
|
|
100
|
+
goMicrotask$1.goMicrotask = void 0;
|
|
101
|
+
function goMicrotask(fn) {
|
|
102
102
|
return new Promise((resolve, reject) => {
|
|
103
103
|
queueMicrotask(async () => {
|
|
104
104
|
try {
|
|
@@ -110,15 +110,15 @@ function goMicrotask$2(fn) {
|
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
goMicrotask$
|
|
113
|
+
goMicrotask$1.goMicrotask = goMicrotask;
|
|
114
114
|
|
|
115
|
-
var goMacrotask$
|
|
115
|
+
var goMacrotask$1 = {};
|
|
116
116
|
|
|
117
|
-
var es2018$
|
|
117
|
+
var es2018$5 = {};
|
|
118
118
|
|
|
119
119
|
var exponentialBackoff = {};
|
|
120
120
|
|
|
121
|
-
var es2018$
|
|
121
|
+
var es2018$4 = {};
|
|
122
122
|
|
|
123
123
|
var random$1 = {};
|
|
124
124
|
|
|
@@ -162,10 +162,10 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
162
162
|
__exportStar(randomInt$1, exports);
|
|
163
163
|
__exportStar(randomIntInclusive$1, exports);
|
|
164
164
|
|
|
165
|
-
}(es2018$
|
|
165
|
+
}(es2018$4));
|
|
166
166
|
|
|
167
167
|
exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
|
|
168
|
-
const extra_rand_1 = es2018$
|
|
168
|
+
const extra_rand_1 = es2018$4;
|
|
169
169
|
function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
|
|
170
170
|
const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
|
|
171
171
|
if (jitter) {
|
|
@@ -280,13 +280,13 @@ __exportStar(setImmediate$1, exports);
|
|
|
280
280
|
__exportStar(setTimeoutLoop$1, exports);
|
|
281
281
|
__exportStar(setDynamicTimeoutLoop$1, exports);
|
|
282
282
|
|
|
283
|
-
}(es2018$
|
|
283
|
+
}(es2018$5));
|
|
284
284
|
|
|
285
|
-
goMacrotask$
|
|
286
|
-
const extra_timers_1
|
|
287
|
-
function goMacrotask
|
|
285
|
+
goMacrotask$1.goMacrotask = void 0;
|
|
286
|
+
const extra_timers_1 = es2018$5;
|
|
287
|
+
function goMacrotask(fn) {
|
|
288
288
|
return new Promise((resolve, reject) => {
|
|
289
|
-
(0, extra_timers_1
|
|
289
|
+
(0, extra_timers_1.setImmediate)(async () => {
|
|
290
290
|
try {
|
|
291
291
|
resolve(await fn());
|
|
292
292
|
}
|
|
@@ -296,7 +296,7 @@ function goMacrotask$2(fn) {
|
|
|
296
296
|
});
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
goMacrotask$
|
|
299
|
+
goMacrotask$1.goMacrotask = goMacrotask;
|
|
300
300
|
|
|
301
301
|
(function (exports) {
|
|
302
302
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -312,15 +312,15 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
312
312
|
}));
|
|
313
313
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
314
314
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
315
|
-
};__exportStar(go$
|
|
316
|
-
__exportStar(goMicrotask$
|
|
317
|
-
__exportStar(goMacrotask$
|
|
315
|
+
};__exportStar(go$1, exports);
|
|
316
|
+
__exportStar(goMicrotask$1, exports);
|
|
317
|
+
__exportStar(goMacrotask$1, exports);
|
|
318
318
|
|
|
319
|
-
}(es2018$
|
|
319
|
+
}(es2018$6));
|
|
320
320
|
|
|
321
321
|
chunkAsync$1.chunkAsync = void 0;
|
|
322
|
-
const go_1$g = es2018$
|
|
323
|
-
const errors_1$f = es2018$
|
|
322
|
+
const go_1$g = es2018$6;
|
|
323
|
+
const errors_1$f = es2018$8;
|
|
324
324
|
function chunkAsync(iterable, size) {
|
|
325
325
|
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
326
326
|
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -341,227 +341,227 @@ chunkAsync$1.chunkAsync = chunkAsync;
|
|
|
341
341
|
|
|
342
342
|
var chunkByAsync$1 = {};
|
|
343
343
|
|
|
344
|
-
var es2018$
|
|
344
|
+
var es2018$3 = {};
|
|
345
345
|
|
|
346
|
-
var array
|
|
346
|
+
var array = {};
|
|
347
347
|
|
|
348
|
-
array
|
|
349
|
-
function isArray
|
|
348
|
+
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
349
|
+
function isArray(val) {
|
|
350
350
|
return Array.isArray(val);
|
|
351
351
|
}
|
|
352
|
-
array
|
|
353
|
-
function isntArray
|
|
354
|
-
return !isArray
|
|
352
|
+
array.isArray = isArray;
|
|
353
|
+
function isntArray(val) {
|
|
354
|
+
return !isArray(val);
|
|
355
355
|
}
|
|
356
|
-
array
|
|
357
|
-
function isEmptyArray
|
|
356
|
+
array.isntArray = isntArray;
|
|
357
|
+
function isEmptyArray(val) {
|
|
358
358
|
return val.length === 0;
|
|
359
359
|
}
|
|
360
|
-
array
|
|
361
|
-
function isntEmptyArray
|
|
360
|
+
array.isEmptyArray = isEmptyArray;
|
|
361
|
+
function isntEmptyArray(val) {
|
|
362
362
|
return val.length !== 0;
|
|
363
363
|
}
|
|
364
|
-
array
|
|
364
|
+
array.isntEmptyArray = isntEmptyArray;
|
|
365
365
|
|
|
366
|
-
var asyncIterable
|
|
366
|
+
var asyncIterable = {};
|
|
367
367
|
|
|
368
|
-
var _null
|
|
368
|
+
var _null = {};
|
|
369
369
|
|
|
370
|
-
_null
|
|
371
|
-
function isNull
|
|
370
|
+
_null.isntNull = _null.isNull = void 0;
|
|
371
|
+
function isNull(val) {
|
|
372
372
|
return val === null;
|
|
373
373
|
}
|
|
374
|
-
_null
|
|
375
|
-
function isntNull
|
|
376
|
-
return !isNull
|
|
374
|
+
_null.isNull = isNull;
|
|
375
|
+
function isntNull(val) {
|
|
376
|
+
return !isNull(val);
|
|
377
377
|
}
|
|
378
|
-
_null
|
|
378
|
+
_null.isntNull = isntNull;
|
|
379
379
|
|
|
380
|
-
var _undefined
|
|
380
|
+
var _undefined = {};
|
|
381
381
|
|
|
382
|
-
_undefined
|
|
383
|
-
function isUndefined
|
|
382
|
+
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
383
|
+
function isUndefined(val) {
|
|
384
384
|
return val === undefined;
|
|
385
385
|
}
|
|
386
|
-
_undefined
|
|
387
|
-
function isntUndefined
|
|
388
|
-
return !isUndefined
|
|
386
|
+
_undefined.isUndefined = isUndefined;
|
|
387
|
+
function isntUndefined(val) {
|
|
388
|
+
return !isUndefined(val);
|
|
389
389
|
}
|
|
390
|
-
_undefined
|
|
390
|
+
_undefined.isntUndefined = isntUndefined;
|
|
391
391
|
|
|
392
|
-
var _function
|
|
392
|
+
var _function = {};
|
|
393
393
|
|
|
394
|
-
_function
|
|
395
|
-
function isFunction
|
|
394
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
395
|
+
function isFunction(val) {
|
|
396
396
|
return typeof val === 'function';
|
|
397
397
|
}
|
|
398
|
-
_function
|
|
399
|
-
function isntFunction
|
|
400
|
-
return !isFunction
|
|
398
|
+
_function.isFunction = isFunction;
|
|
399
|
+
function isntFunction(val) {
|
|
400
|
+
return !isFunction(val);
|
|
401
401
|
}
|
|
402
|
-
_function
|
|
402
|
+
_function.isntFunction = isntFunction;
|
|
403
403
|
|
|
404
|
-
asyncIterable
|
|
405
|
-
const null_1$
|
|
406
|
-
const undefined_1$
|
|
407
|
-
const function_1$
|
|
408
|
-
function isAsyncIterable
|
|
409
|
-
return (0, null_1$
|
|
410
|
-
&& (0, undefined_1$
|
|
411
|
-
&& (0, function_1$
|
|
404
|
+
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
405
|
+
const null_1$3 = _null;
|
|
406
|
+
const undefined_1$2 = _undefined;
|
|
407
|
+
const function_1$2 = _function;
|
|
408
|
+
function isAsyncIterable(val) {
|
|
409
|
+
return (0, null_1$3.isntNull)(val)
|
|
410
|
+
&& (0, undefined_1$2.isntUndefined)(val)
|
|
411
|
+
&& (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
|
|
412
412
|
}
|
|
413
|
-
asyncIterable
|
|
414
|
-
function isntAsyncIterable
|
|
415
|
-
return !isAsyncIterable
|
|
413
|
+
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
414
|
+
function isntAsyncIterable(val) {
|
|
415
|
+
return !isAsyncIterable(val);
|
|
416
416
|
}
|
|
417
|
-
asyncIterable
|
|
417
|
+
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
418
418
|
|
|
419
|
-
var bigint
|
|
419
|
+
var bigint = {};
|
|
420
420
|
|
|
421
|
-
bigint
|
|
422
|
-
function isBigInt
|
|
421
|
+
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
422
|
+
function isBigInt(val) {
|
|
423
423
|
return typeof val === 'bigint';
|
|
424
424
|
}
|
|
425
|
-
bigint
|
|
426
|
-
function isntBigInt
|
|
427
|
-
return !isBigInt
|
|
425
|
+
bigint.isBigInt = isBigInt;
|
|
426
|
+
function isntBigInt(val) {
|
|
427
|
+
return !isBigInt(val);
|
|
428
428
|
}
|
|
429
|
-
bigint
|
|
429
|
+
bigint.isntBigInt = isntBigInt;
|
|
430
430
|
|
|
431
|
-
var boolean
|
|
431
|
+
var boolean = {};
|
|
432
432
|
|
|
433
|
-
boolean
|
|
434
|
-
function isBoolean
|
|
433
|
+
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
434
|
+
function isBoolean(val) {
|
|
435
435
|
return typeof val === 'boolean';
|
|
436
436
|
}
|
|
437
|
-
boolean
|
|
438
|
-
function isntBoolean
|
|
439
|
-
return !isBoolean
|
|
437
|
+
boolean.isBoolean = isBoolean;
|
|
438
|
+
function isntBoolean(val) {
|
|
439
|
+
return !isBoolean(val);
|
|
440
440
|
}
|
|
441
|
-
boolean
|
|
441
|
+
boolean.isntBoolean = isntBoolean;
|
|
442
442
|
|
|
443
|
-
var char
|
|
443
|
+
var char = {};
|
|
444
444
|
|
|
445
|
-
var string
|
|
445
|
+
var string = {};
|
|
446
446
|
|
|
447
|
-
string
|
|
448
|
-
function isString
|
|
447
|
+
string.isntString = string.isString = void 0;
|
|
448
|
+
function isString(val) {
|
|
449
449
|
return typeof val === 'string';
|
|
450
450
|
}
|
|
451
|
-
string
|
|
452
|
-
function isntString
|
|
453
|
-
return !isString
|
|
451
|
+
string.isString = isString;
|
|
452
|
+
function isntString(val) {
|
|
453
|
+
return !isString(val);
|
|
454
454
|
}
|
|
455
|
-
string
|
|
455
|
+
string.isntString = isntString;
|
|
456
456
|
|
|
457
|
-
char
|
|
458
|
-
const string_1$
|
|
459
|
-
function isChar
|
|
460
|
-
return (0, string_1$
|
|
457
|
+
char.isntChar = char.isChar = void 0;
|
|
458
|
+
const string_1$1 = string;
|
|
459
|
+
function isChar(val) {
|
|
460
|
+
return (0, string_1$1.isString)(val)
|
|
461
461
|
&& val.length === 1;
|
|
462
462
|
}
|
|
463
|
-
char
|
|
464
|
-
function isntChar
|
|
465
|
-
return !isChar
|
|
463
|
+
char.isChar = isChar;
|
|
464
|
+
function isntChar(val) {
|
|
465
|
+
return !isChar(val);
|
|
466
466
|
}
|
|
467
|
-
char
|
|
467
|
+
char.isntChar = isntChar;
|
|
468
468
|
|
|
469
|
-
var date
|
|
469
|
+
var date = {};
|
|
470
470
|
|
|
471
|
-
date
|
|
472
|
-
function isDate
|
|
471
|
+
date.isntDate = date.isDate = void 0;
|
|
472
|
+
function isDate(val) {
|
|
473
473
|
return val instanceof Date;
|
|
474
474
|
}
|
|
475
|
-
date
|
|
476
|
-
function isntDate
|
|
477
|
-
return !isDate
|
|
475
|
+
date.isDate = isDate;
|
|
476
|
+
function isntDate(val) {
|
|
477
|
+
return !isDate(val);
|
|
478
478
|
}
|
|
479
|
-
date
|
|
479
|
+
date.isntDate = isntDate;
|
|
480
480
|
|
|
481
|
-
var _enum
|
|
481
|
+
var _enum = {};
|
|
482
482
|
|
|
483
|
-
_enum
|
|
484
|
-
function inEnum
|
|
483
|
+
_enum.inEnum = void 0;
|
|
484
|
+
function inEnum(val, _enum) {
|
|
485
485
|
return Object.values(_enum).includes(val);
|
|
486
486
|
}
|
|
487
|
-
_enum
|
|
487
|
+
_enum.inEnum = inEnum;
|
|
488
488
|
|
|
489
|
-
var error
|
|
489
|
+
var error = {};
|
|
490
490
|
|
|
491
|
-
error
|
|
492
|
-
function isError
|
|
491
|
+
error.isntError = error.isError = void 0;
|
|
492
|
+
function isError(val) {
|
|
493
493
|
return val instanceof Error;
|
|
494
494
|
}
|
|
495
|
-
error
|
|
496
|
-
function isntError
|
|
497
|
-
return !isError
|
|
495
|
+
error.isError = isError;
|
|
496
|
+
function isntError(val) {
|
|
497
|
+
return !isError(val);
|
|
498
498
|
}
|
|
499
|
-
error
|
|
499
|
+
error.isntError = isntError;
|
|
500
500
|
|
|
501
|
-
var falsy
|
|
501
|
+
var falsy = {};
|
|
502
502
|
|
|
503
|
-
falsy
|
|
504
|
-
function isFalsy
|
|
503
|
+
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
504
|
+
function isFalsy(val) {
|
|
505
505
|
return !val;
|
|
506
506
|
}
|
|
507
|
-
falsy
|
|
508
|
-
function isntFalsy
|
|
509
|
-
return !isFalsy
|
|
507
|
+
falsy.isFalsy = isFalsy;
|
|
508
|
+
function isntFalsy(val) {
|
|
509
|
+
return !isFalsy(val);
|
|
510
510
|
}
|
|
511
|
-
falsy
|
|
511
|
+
falsy.isntFalsy = isntFalsy;
|
|
512
512
|
|
|
513
|
-
var iterable
|
|
513
|
+
var iterable = {};
|
|
514
514
|
|
|
515
|
-
iterable
|
|
516
|
-
const null_1$
|
|
517
|
-
const undefined_1$
|
|
518
|
-
const function_1$
|
|
519
|
-
function isIterable
|
|
520
|
-
return (0, null_1$
|
|
521
|
-
&& (0, undefined_1$
|
|
522
|
-
&& (0, function_1$
|
|
515
|
+
iterable.isntIterable = iterable.isIterable = void 0;
|
|
516
|
+
const null_1$2 = _null;
|
|
517
|
+
const undefined_1$1 = _undefined;
|
|
518
|
+
const function_1$1 = _function;
|
|
519
|
+
function isIterable(val) {
|
|
520
|
+
return (0, null_1$2.isntNull)(val)
|
|
521
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
522
|
+
&& (0, function_1$1.isFunction)(val[Symbol.iterator]);
|
|
523
523
|
}
|
|
524
|
-
iterable
|
|
525
|
-
function isntIterable
|
|
526
|
-
return !isIterable
|
|
524
|
+
iterable.isIterable = isIterable;
|
|
525
|
+
function isntIterable(val) {
|
|
526
|
+
return !isIterable(val);
|
|
527
527
|
}
|
|
528
|
-
iterable
|
|
528
|
+
iterable.isntIterable = isntIterable;
|
|
529
529
|
|
|
530
|
-
var json$
|
|
530
|
+
var json$1 = {};
|
|
531
531
|
|
|
532
|
-
var number
|
|
532
|
+
var number = {};
|
|
533
533
|
|
|
534
|
-
number
|
|
535
|
-
function isNumber
|
|
534
|
+
number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
|
|
535
|
+
function isNumber(val) {
|
|
536
536
|
return typeof val === 'number';
|
|
537
537
|
}
|
|
538
|
-
number
|
|
539
|
-
function isntNumber
|
|
540
|
-
return !isNumber
|
|
538
|
+
number.isNumber = isNumber;
|
|
539
|
+
function isntNumber(val) {
|
|
540
|
+
return !isNumber(val);
|
|
541
541
|
}
|
|
542
|
-
number
|
|
543
|
-
function isFinite
|
|
542
|
+
number.isntNumber = isntNumber;
|
|
543
|
+
function isFinite(val) {
|
|
544
544
|
return Number.isFinite(val);
|
|
545
545
|
}
|
|
546
|
-
number
|
|
547
|
-
function isPositiveInfinity
|
|
546
|
+
number.isFinite = isFinite;
|
|
547
|
+
function isPositiveInfinity(val) {
|
|
548
548
|
return val === Infinity;
|
|
549
549
|
}
|
|
550
|
-
number
|
|
551
|
-
function isNegativeInfinity
|
|
550
|
+
number.isPositiveInfinity = isPositiveInfinity;
|
|
551
|
+
function isNegativeInfinity(val) {
|
|
552
552
|
return val === -Infinity;
|
|
553
553
|
}
|
|
554
|
-
number
|
|
555
|
-
function isNaN
|
|
554
|
+
number.isNegativeInfinity = isNegativeInfinity;
|
|
555
|
+
function isNaN(val) {
|
|
556
556
|
return Number.isNaN(val);
|
|
557
557
|
}
|
|
558
|
-
number
|
|
559
|
-
function isntNaN
|
|
560
|
-
return !isNaN
|
|
558
|
+
number.isNaN = isNaN;
|
|
559
|
+
function isntNaN(val) {
|
|
560
|
+
return !isNaN(val);
|
|
561
561
|
}
|
|
562
|
-
number
|
|
562
|
+
number.isntNaN = isntNaN;
|
|
563
563
|
|
|
564
|
-
var object
|
|
564
|
+
var object = {};
|
|
565
565
|
|
|
566
566
|
/** Detect free variable `global` from Node.js. */
|
|
567
567
|
|
|
@@ -789,7 +789,7 @@ var objectCtorString = funcToString.call(Object);
|
|
|
789
789
|
* _.isPlainObject(Object.create(null));
|
|
790
790
|
* // => true
|
|
791
791
|
*/
|
|
792
|
-
function isPlainObject$
|
|
792
|
+
function isPlainObject$1(value) {
|
|
793
793
|
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
794
794
|
return false;
|
|
795
795
|
}
|
|
@@ -802,59 +802,59 @@ function isPlainObject$2(value) {
|
|
|
802
802
|
funcToString.call(Ctor) == objectCtorString;
|
|
803
803
|
}
|
|
804
804
|
|
|
805
|
-
var isPlainObject_1$
|
|
805
|
+
var isPlainObject_1$1 = isPlainObject$1;
|
|
806
806
|
|
|
807
|
-
var __importDefault
|
|
807
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
808
808
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
809
|
-
};object
|
|
810
|
-
const isPlainObject_1
|
|
811
|
-
function isObject
|
|
809
|
+
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
810
|
+
const isPlainObject_1 = __importDefault(isPlainObject_1$1);
|
|
811
|
+
function isObject(val) {
|
|
812
812
|
return val !== null
|
|
813
813
|
&& typeof val === 'object';
|
|
814
814
|
}
|
|
815
|
-
object
|
|
816
|
-
function isntObject
|
|
817
|
-
return !isObject
|
|
815
|
+
object.isObject = isObject;
|
|
816
|
+
function isntObject(val) {
|
|
817
|
+
return !isObject(val);
|
|
818
818
|
}
|
|
819
|
-
object
|
|
820
|
-
function isPlainObject
|
|
821
|
-
return (0, isPlainObject_1
|
|
819
|
+
object.isntObject = isntObject;
|
|
820
|
+
function isPlainObject(val) {
|
|
821
|
+
return (0, isPlainObject_1.default)(val);
|
|
822
822
|
}
|
|
823
|
-
object
|
|
824
|
-
function isntPlainObject
|
|
825
|
-
return !isPlainObject
|
|
823
|
+
object.isPlainObject = isPlainObject;
|
|
824
|
+
function isntPlainObject(val) {
|
|
825
|
+
return !isPlainObject(val);
|
|
826
826
|
}
|
|
827
|
-
object
|
|
828
|
-
function isEmptyObject
|
|
827
|
+
object.isntPlainObject = isntPlainObject;
|
|
828
|
+
function isEmptyObject(val) {
|
|
829
829
|
return Object.keys(val).length === 0;
|
|
830
830
|
}
|
|
831
|
-
object
|
|
832
|
-
function isntEmptyObject
|
|
831
|
+
object.isEmptyObject = isEmptyObject;
|
|
832
|
+
function isntEmptyObject(val) {
|
|
833
833
|
return Object.keys(val).length !== 0;
|
|
834
834
|
}
|
|
835
|
-
object
|
|
836
|
-
|
|
837
|
-
json$
|
|
838
|
-
const null_1$
|
|
839
|
-
const boolean_1
|
|
840
|
-
const string_1
|
|
841
|
-
const number_1
|
|
842
|
-
const array_1
|
|
843
|
-
const object_1$
|
|
844
|
-
function isJson
|
|
845
|
-
return (0, null_1$
|
|
846
|
-
|| (0, boolean_1
|
|
847
|
-
|| (0, string_1
|
|
848
|
-
|| (0, number_1
|
|
849
|
-
|| ((0, array_1
|
|
850
|
-
|| ((0, object_1$
|
|
851
|
-
}
|
|
852
|
-
json$
|
|
853
|
-
function isntJson
|
|
854
|
-
return !isJson
|
|
855
|
-
}
|
|
856
|
-
json$
|
|
857
|
-
function isJsonable
|
|
835
|
+
object.isntEmptyObject = isntEmptyObject;
|
|
836
|
+
|
|
837
|
+
json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
|
|
838
|
+
const null_1$1 = _null;
|
|
839
|
+
const boolean_1 = boolean;
|
|
840
|
+
const string_1 = string;
|
|
841
|
+
const number_1 = number;
|
|
842
|
+
const array_1 = array;
|
|
843
|
+
const object_1$1 = object;
|
|
844
|
+
function isJson(val) {
|
|
845
|
+
return (0, null_1$1.isNull)(val)
|
|
846
|
+
|| (0, boolean_1.isBoolean)(val)
|
|
847
|
+
|| (0, string_1.isString)(val)
|
|
848
|
+
|| (0, number_1.isNumber)(val)
|
|
849
|
+
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
850
|
+
|| ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
|
|
851
|
+
}
|
|
852
|
+
json$1.isJson = isJson;
|
|
853
|
+
function isntJson(val) {
|
|
854
|
+
return !isJson(val);
|
|
855
|
+
}
|
|
856
|
+
json$1.isntJson = isntJson;
|
|
857
|
+
function isJsonable(val) {
|
|
858
858
|
try {
|
|
859
859
|
JSON.stringify(val);
|
|
860
860
|
return true;
|
|
@@ -863,39 +863,54 @@ function isJsonable$1(val) {
|
|
|
863
863
|
return false;
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
json$
|
|
867
|
-
function isntJsonable
|
|
868
|
-
return !isntJsonable
|
|
866
|
+
json$1.isJsonable = isJsonable;
|
|
867
|
+
function isntJsonable(val) {
|
|
868
|
+
return !isntJsonable();
|
|
869
|
+
}
|
|
870
|
+
json$1.isntJsonable = isntJsonable;
|
|
871
|
+
|
|
872
|
+
var nullish = {};
|
|
873
|
+
|
|
874
|
+
nullish.isntNullish = nullish.isNullish = void 0;
|
|
875
|
+
const null_1 = _null;
|
|
876
|
+
const undefined_1 = _undefined;
|
|
877
|
+
function isNullish(val) {
|
|
878
|
+
return (0, null_1.isNull)(val)
|
|
879
|
+
|| (0, undefined_1.isUndefined)(val);
|
|
880
|
+
}
|
|
881
|
+
nullish.isNullish = isNullish;
|
|
882
|
+
function isntNullish(val) {
|
|
883
|
+
return !isNullish(val);
|
|
869
884
|
}
|
|
870
|
-
|
|
885
|
+
nullish.isntNullish = isntNullish;
|
|
871
886
|
|
|
872
|
-
var promise
|
|
887
|
+
var promise = {};
|
|
873
888
|
|
|
874
|
-
promise
|
|
875
|
-
const object_1
|
|
876
|
-
const function_1
|
|
877
|
-
function isPromise
|
|
889
|
+
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
890
|
+
const object_1 = object;
|
|
891
|
+
const function_1 = _function;
|
|
892
|
+
function isPromise(val) {
|
|
878
893
|
return val instanceof Promise;
|
|
879
894
|
}
|
|
880
|
-
promise
|
|
881
|
-
function isntPromise
|
|
882
|
-
return !isPromise
|
|
895
|
+
promise.isPromise = isPromise;
|
|
896
|
+
function isntPromise(val) {
|
|
897
|
+
return !isPromise(val);
|
|
883
898
|
}
|
|
884
|
-
promise
|
|
885
|
-
function isntPromiseLike
|
|
886
|
-
return !isPromiseLike
|
|
899
|
+
promise.isntPromise = isntPromise;
|
|
900
|
+
function isntPromiseLike(val) {
|
|
901
|
+
return !isPromiseLike(val);
|
|
887
902
|
}
|
|
888
|
-
promise
|
|
889
|
-
function isPromiseLike
|
|
890
|
-
return (0, object_1
|
|
891
|
-
&& (0, function_1
|
|
903
|
+
promise.isntPromiseLike = isntPromiseLike;
|
|
904
|
+
function isPromiseLike(val) {
|
|
905
|
+
return (0, object_1.isObject)(val)
|
|
906
|
+
&& (0, function_1.isFunction)(val.then);
|
|
892
907
|
}
|
|
893
|
-
promise
|
|
908
|
+
promise.isPromiseLike = isPromiseLike;
|
|
894
909
|
|
|
895
|
-
var url$
|
|
910
|
+
var url$1 = {};
|
|
896
911
|
|
|
897
|
-
url$
|
|
898
|
-
function isAbsoluteURL
|
|
912
|
+
url$1.isAbsoluteURL = void 0;
|
|
913
|
+
function isAbsoluteURL(str) {
|
|
899
914
|
try {
|
|
900
915
|
new URL(str);
|
|
901
916
|
return true;
|
|
@@ -904,31 +919,31 @@ function isAbsoluteURL$1(str) {
|
|
|
904
919
|
return false;
|
|
905
920
|
}
|
|
906
921
|
}
|
|
907
|
-
url$
|
|
922
|
+
url$1.isAbsoluteURL = isAbsoluteURL;
|
|
908
923
|
|
|
909
|
-
var regexp
|
|
924
|
+
var regexp = {};
|
|
910
925
|
|
|
911
|
-
regexp
|
|
912
|
-
function isRegExp
|
|
926
|
+
regexp.isntRegExp = regexp.isRegExp = void 0;
|
|
927
|
+
function isRegExp(val) {
|
|
913
928
|
return val instanceof RegExp;
|
|
914
929
|
}
|
|
915
|
-
regexp
|
|
916
|
-
function isntRegExp
|
|
917
|
-
return !isRegExp
|
|
930
|
+
regexp.isRegExp = isRegExp;
|
|
931
|
+
function isntRegExp(val) {
|
|
932
|
+
return !isRegExp(val);
|
|
918
933
|
}
|
|
919
|
-
regexp
|
|
934
|
+
regexp.isntRegExp = isntRegExp;
|
|
920
935
|
|
|
921
|
-
var symbol
|
|
936
|
+
var symbol = {};
|
|
922
937
|
|
|
923
|
-
symbol
|
|
924
|
-
function isSymbol
|
|
938
|
+
symbol.isntSymbol = symbol.isSymbol = void 0;
|
|
939
|
+
function isSymbol(val) {
|
|
925
940
|
return typeof val === 'symbol';
|
|
926
941
|
}
|
|
927
|
-
symbol
|
|
928
|
-
function isntSymbol
|
|
929
|
-
return !isSymbol
|
|
942
|
+
symbol.isSymbol = isSymbol;
|
|
943
|
+
function isntSymbol(val) {
|
|
944
|
+
return !isSymbol(val);
|
|
930
945
|
}
|
|
931
|
-
symbol
|
|
946
|
+
symbol.isntSymbol = isntSymbol;
|
|
932
947
|
|
|
933
948
|
(function (exports) {
|
|
934
949
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -944,34 +959,35 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
944
959
|
}));
|
|
945
960
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
946
961
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
947
|
-
};__exportStar(array
|
|
948
|
-
__exportStar(asyncIterable
|
|
949
|
-
__exportStar(bigint
|
|
950
|
-
__exportStar(boolean
|
|
951
|
-
__exportStar(char
|
|
952
|
-
__exportStar(date
|
|
953
|
-
__exportStar(_enum
|
|
954
|
-
__exportStar(error
|
|
955
|
-
__exportStar(falsy
|
|
956
|
-
__exportStar(_function
|
|
957
|
-
__exportStar(iterable
|
|
958
|
-
__exportStar(json$
|
|
959
|
-
__exportStar(_null
|
|
960
|
-
__exportStar(
|
|
961
|
-
__exportStar(
|
|
962
|
-
__exportStar(
|
|
963
|
-
__exportStar(
|
|
964
|
-
__exportStar(
|
|
965
|
-
__exportStar(
|
|
966
|
-
__exportStar(
|
|
967
|
-
__exportStar(
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
962
|
+
};__exportStar(array, exports);
|
|
963
|
+
__exportStar(asyncIterable, exports);
|
|
964
|
+
__exportStar(bigint, exports);
|
|
965
|
+
__exportStar(boolean, exports);
|
|
966
|
+
__exportStar(char, exports);
|
|
967
|
+
__exportStar(date, exports);
|
|
968
|
+
__exportStar(_enum, exports);
|
|
969
|
+
__exportStar(error, exports);
|
|
970
|
+
__exportStar(falsy, exports);
|
|
971
|
+
__exportStar(_function, exports);
|
|
972
|
+
__exportStar(iterable, exports);
|
|
973
|
+
__exportStar(json$1, exports);
|
|
974
|
+
__exportStar(_null, exports);
|
|
975
|
+
__exportStar(nullish, exports);
|
|
976
|
+
__exportStar(number, exports);
|
|
977
|
+
__exportStar(object, exports);
|
|
978
|
+
__exportStar(promise, exports);
|
|
979
|
+
__exportStar(string, exports);
|
|
980
|
+
__exportStar(_undefined, exports);
|
|
981
|
+
__exportStar(url$1, exports);
|
|
982
|
+
__exportStar(regexp, exports);
|
|
983
|
+
__exportStar(symbol, exports);
|
|
984
|
+
|
|
985
|
+
}(es2018$3));
|
|
986
|
+
|
|
987
|
+
chunkByAsync$1.chunkByAsync = void 0;
|
|
988
|
+
const types_1$m = es2018$3;
|
|
989
|
+
function chunkByAsync(iterable, predicate) {
|
|
990
|
+
if ((0, types_1$m.isAsyncIterable)(iterable)) {
|
|
975
991
|
return chunkByAsyncIterable(iterable, predicate);
|
|
976
992
|
}
|
|
977
993
|
else {
|
|
@@ -1030,8 +1046,8 @@ chunkBy$1.chunkBy = chunkBy;
|
|
|
1030
1046
|
var chunk$1 = {};
|
|
1031
1047
|
|
|
1032
1048
|
chunk$1.chunk = void 0;
|
|
1033
|
-
const go_1$f = es2018$
|
|
1034
|
-
const errors_1$e = es2018$
|
|
1049
|
+
const go_1$f = es2018$6;
|
|
1050
|
+
const errors_1$e = es2018$8;
|
|
1035
1051
|
function chunk(iterable, size) {
|
|
1036
1052
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1037
1053
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -1053,8 +1069,8 @@ chunk$1.chunk = chunk;
|
|
|
1053
1069
|
var concatAsync$1 = {};
|
|
1054
1070
|
|
|
1055
1071
|
concatAsync$1.concatAsync = void 0;
|
|
1056
|
-
const types_1$l = es2018$
|
|
1057
|
-
const go_1$e = es2018$
|
|
1072
|
+
const types_1$l = es2018$3;
|
|
1073
|
+
const go_1$e = es2018$6;
|
|
1058
1074
|
function concatAsync(iterable, ...otherIterables) {
|
|
1059
1075
|
return (0, go_1$e.go)(async function* () {
|
|
1060
1076
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1076,7 +1092,7 @@ concatAsync$1.concatAsync = concatAsync;
|
|
|
1076
1092
|
var concat$1 = {};
|
|
1077
1093
|
|
|
1078
1094
|
concat$1.concat = void 0;
|
|
1079
|
-
const go_1$d = es2018$
|
|
1095
|
+
const go_1$d = es2018$6;
|
|
1080
1096
|
function concat(iterable, ...otherIterables) {
|
|
1081
1097
|
return (0, go_1$d.go)(function* () {
|
|
1082
1098
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1086,6 +1102,91 @@ function concat(iterable, ...otherIterables) {
|
|
|
1086
1102
|
}
|
|
1087
1103
|
concat$1.concat = concat;
|
|
1088
1104
|
|
|
1105
|
+
var differenceAsync$1 = {};
|
|
1106
|
+
|
|
1107
|
+
var filterAsync$1 = {};
|
|
1108
|
+
|
|
1109
|
+
filterAsync$1.filterAsync = void 0;
|
|
1110
|
+
const types_1$k = es2018$3;
|
|
1111
|
+
function filterAsync(iterable, predicate) {
|
|
1112
|
+
if ((0, types_1$k.isAsyncIterable)(iterable)) {
|
|
1113
|
+
return filterAsyncIterable(iterable, predicate);
|
|
1114
|
+
}
|
|
1115
|
+
else {
|
|
1116
|
+
return filterIterable(iterable, predicate);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
filterAsync$1.filterAsync = filterAsync;
|
|
1120
|
+
async function* filterAsyncIterable(iterable, predicate) {
|
|
1121
|
+
let index = 0;
|
|
1122
|
+
for await (const element of iterable) {
|
|
1123
|
+
if (await predicate(element, index))
|
|
1124
|
+
yield element;
|
|
1125
|
+
index++;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
async function* filterIterable(iterable, predicate) {
|
|
1129
|
+
let index = 0;
|
|
1130
|
+
for (const element of iterable) {
|
|
1131
|
+
if (await predicate(element, index))
|
|
1132
|
+
yield element;
|
|
1133
|
+
index++;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
var toSetAsync$1 = {};
|
|
1138
|
+
|
|
1139
|
+
toSetAsync$1.toSetAsync = void 0;
|
|
1140
|
+
async function toSetAsync(iterable) {
|
|
1141
|
+
const result = new Set();
|
|
1142
|
+
for await (const element of iterable) {
|
|
1143
|
+
result.add(await element);
|
|
1144
|
+
}
|
|
1145
|
+
return result;
|
|
1146
|
+
}
|
|
1147
|
+
toSetAsync$1.toSetAsync = toSetAsync;
|
|
1148
|
+
|
|
1149
|
+
differenceAsync$1.differenceAsync = void 0;
|
|
1150
|
+
const filter_async_1$1 = filterAsync$1;
|
|
1151
|
+
const to_set_async_1$1 = toSetAsync$1;
|
|
1152
|
+
async function* differenceAsync(left, right) {
|
|
1153
|
+
const rightSet = await (0, to_set_async_1$1.toSetAsync)(right);
|
|
1154
|
+
yield* (0, filter_async_1$1.filterAsync)(left, async (x) => !rightSet.has(await x));
|
|
1155
|
+
}
|
|
1156
|
+
differenceAsync$1.differenceAsync = differenceAsync;
|
|
1157
|
+
|
|
1158
|
+
var difference$1 = {};
|
|
1159
|
+
|
|
1160
|
+
var filter$1 = {};
|
|
1161
|
+
|
|
1162
|
+
filter$1.filter = void 0;
|
|
1163
|
+
function* filter(iterable, predicate) {
|
|
1164
|
+
let index = 0;
|
|
1165
|
+
for (const element of iterable) {
|
|
1166
|
+
if (predicate(element, index))
|
|
1167
|
+
yield element;
|
|
1168
|
+
index++;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
filter$1.filter = filter;
|
|
1172
|
+
|
|
1173
|
+
var toSet$1 = {};
|
|
1174
|
+
|
|
1175
|
+
toSet$1.toSet = void 0;
|
|
1176
|
+
function toSet(iterable) {
|
|
1177
|
+
return new Set(iterable);
|
|
1178
|
+
}
|
|
1179
|
+
toSet$1.toSet = toSet;
|
|
1180
|
+
|
|
1181
|
+
difference$1.difference = void 0;
|
|
1182
|
+
const filter_1$1 = filter$1;
|
|
1183
|
+
const to_set_1$1 = toSet$1;
|
|
1184
|
+
function difference(left, right) {
|
|
1185
|
+
const rightSet = (0, to_set_1$1.toSet)(right);
|
|
1186
|
+
return (0, filter_1$1.filter)(left, x => !rightSet.has(x));
|
|
1187
|
+
}
|
|
1188
|
+
difference$1.difference = difference;
|
|
1189
|
+
|
|
1089
1190
|
var dropAsync$1 = {};
|
|
1090
1191
|
|
|
1091
1192
|
var utils = {};
|
|
@@ -1105,9 +1206,9 @@ function* copyIterable(iterable) {
|
|
|
1105
1206
|
utils.copyIterable = copyIterable;
|
|
1106
1207
|
|
|
1107
1208
|
dropAsync$1.dropAsync = void 0;
|
|
1108
|
-
const go_1$c = es2018$
|
|
1209
|
+
const go_1$c = es2018$6;
|
|
1109
1210
|
const utils_1$3 = utils;
|
|
1110
|
-
const errors_1$d = es2018$
|
|
1211
|
+
const errors_1$d = es2018$8;
|
|
1111
1212
|
function dropAsync(iterable, count) {
|
|
1112
1213
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1113
1214
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1139,17 +1240,30 @@ dropAsync$1.dropAsync = dropAsync;
|
|
|
1139
1240
|
|
|
1140
1241
|
var dropRightAsync$1 = {};
|
|
1141
1242
|
|
|
1243
|
+
var toArrayAsync$1 = {};
|
|
1244
|
+
|
|
1245
|
+
toArrayAsync$1.toArrayAsync = void 0;
|
|
1246
|
+
async function toArrayAsync(iterable) {
|
|
1247
|
+
const result = [];
|
|
1248
|
+
for await (const element of iterable) {
|
|
1249
|
+
result.push(element);
|
|
1250
|
+
}
|
|
1251
|
+
return result;
|
|
1252
|
+
}
|
|
1253
|
+
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
1254
|
+
|
|
1142
1255
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
1143
|
-
const go_1$b = es2018$
|
|
1256
|
+
const go_1$b = es2018$6;
|
|
1144
1257
|
const utils_1$2 = utils;
|
|
1145
|
-
const errors_1$c = es2018$
|
|
1258
|
+
const errors_1$c = es2018$8;
|
|
1259
|
+
const to_array_async_1 = toArrayAsync$1;
|
|
1146
1260
|
function dropRightAsync(iterable, count) {
|
|
1147
1261
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1148
1262
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
1149
1263
|
if (count === 0)
|
|
1150
1264
|
return (0, utils_1$2.copyAsyncIterable)(iterable);
|
|
1151
1265
|
return (0, go_1$b.go)(async function* () {
|
|
1152
|
-
const arr = await toArrayAsync
|
|
1266
|
+
const arr = await (0, to_array_async_1.toArrayAsync)(iterable);
|
|
1153
1267
|
const result = arr.slice(0, -count);
|
|
1154
1268
|
for (const value of result) {
|
|
1155
1269
|
yield value;
|
|
@@ -1157,20 +1271,13 @@ function dropRightAsync(iterable, count) {
|
|
|
1157
1271
|
});
|
|
1158
1272
|
}
|
|
1159
1273
|
dropRightAsync$1.dropRightAsync = dropRightAsync;
|
|
1160
|
-
async function toArrayAsync$2(iterable) {
|
|
1161
|
-
const result = [];
|
|
1162
|
-
for await (const element of iterable) {
|
|
1163
|
-
result.push(element);
|
|
1164
|
-
}
|
|
1165
|
-
return result;
|
|
1166
|
-
}
|
|
1167
1274
|
|
|
1168
1275
|
var dropRight$1 = {};
|
|
1169
1276
|
|
|
1170
1277
|
dropRight$1.dropRight = void 0;
|
|
1171
|
-
const go_1$a = es2018$
|
|
1278
|
+
const go_1$a = es2018$6;
|
|
1172
1279
|
const utils_1$1 = utils;
|
|
1173
|
-
const errors_1$b = es2018$
|
|
1280
|
+
const errors_1$b = es2018$8;
|
|
1174
1281
|
function dropRight(iterable, count) {
|
|
1175
1282
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1176
1283
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1186,9 +1293,9 @@ dropRight$1.dropRight = dropRight;
|
|
|
1186
1293
|
var dropUntilAsync$1 = {};
|
|
1187
1294
|
|
|
1188
1295
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
1189
|
-
const types_1$
|
|
1296
|
+
const types_1$j = es2018$3;
|
|
1190
1297
|
function dropUntilAsync(iterable, predicate) {
|
|
1191
|
-
if ((0, types_1$
|
|
1298
|
+
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
|
1192
1299
|
return dropUntilAsyncIterable(iterable, predicate);
|
|
1193
1300
|
}
|
|
1194
1301
|
else {
|
|
@@ -1268,9 +1375,9 @@ dropUntil$1.dropUntil = dropUntil;
|
|
|
1268
1375
|
var drop$1 = {};
|
|
1269
1376
|
|
|
1270
1377
|
drop$1.drop = void 0;
|
|
1271
|
-
const go_1$9 = es2018$
|
|
1378
|
+
const go_1$9 = es2018$6;
|
|
1272
1379
|
const utils_1 = utils;
|
|
1273
|
-
const errors_1$a = es2018$
|
|
1380
|
+
const errors_1$a = es2018$8;
|
|
1274
1381
|
function drop(iterable, count) {
|
|
1275
1382
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1276
1383
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1300,49 +1407,6 @@ function drop(iterable, count) {
|
|
|
1300
1407
|
}
|
|
1301
1408
|
drop$1.drop = drop;
|
|
1302
1409
|
|
|
1303
|
-
var filterAsync$1 = {};
|
|
1304
|
-
|
|
1305
|
-
filterAsync$1.filterAsync = void 0;
|
|
1306
|
-
const types_1$j = es2018$6;
|
|
1307
|
-
function filterAsync(iterable, predicate) {
|
|
1308
|
-
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
|
1309
|
-
return filterAsyncIterable(iterable, predicate);
|
|
1310
|
-
}
|
|
1311
|
-
else {
|
|
1312
|
-
return filterIterable(iterable, predicate);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
filterAsync$1.filterAsync = filterAsync;
|
|
1316
|
-
async function* filterAsyncIterable(iterable, predicate) {
|
|
1317
|
-
let index = 0;
|
|
1318
|
-
for await (const element of iterable) {
|
|
1319
|
-
if (await predicate(element, index))
|
|
1320
|
-
yield element;
|
|
1321
|
-
index++;
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
async function* filterIterable(iterable, predicate) {
|
|
1325
|
-
let index = 0;
|
|
1326
|
-
for (const element of iterable) {
|
|
1327
|
-
if (await predicate(element, index))
|
|
1328
|
-
yield element;
|
|
1329
|
-
index++;
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
var filter$1 = {};
|
|
1334
|
-
|
|
1335
|
-
filter$1.filter = void 0;
|
|
1336
|
-
function* filter(iterable, predicate) {
|
|
1337
|
-
let index = 0;
|
|
1338
|
-
for (const element of iterable) {
|
|
1339
|
-
if (predicate(element, index))
|
|
1340
|
-
yield element;
|
|
1341
|
-
index++;
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
filter$1.filter = filter;
|
|
1345
|
-
|
|
1346
1410
|
var flattenAsync$1 = {};
|
|
1347
1411
|
|
|
1348
1412
|
var flattenDeepAsync$1 = {};
|
|
@@ -1350,7 +1414,7 @@ var flattenDeepAsync$1 = {};
|
|
|
1350
1414
|
var flattenByAsync$1 = {};
|
|
1351
1415
|
|
|
1352
1416
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
1353
|
-
const types_1$i = es2018$
|
|
1417
|
+
const types_1$i = es2018$3;
|
|
1354
1418
|
function flattenByAsync(iterable, predicate) {
|
|
1355
1419
|
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
1356
1420
|
return flattenByAsyncIterable(iterable, predicate);
|
|
@@ -1390,7 +1454,7 @@ function isFiniteIterable$1(val) {
|
|
|
1390
1454
|
|
|
1391
1455
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1392
1456
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1393
|
-
const errors_1$9 = es2018$
|
|
1457
|
+
const errors_1$9 = es2018$8;
|
|
1394
1458
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1395
1459
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1396
1460
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1408,7 +1472,7 @@ flattenAsync$1.flattenAsync = flattenAsync;
|
|
|
1408
1472
|
var flattenBy$1 = {};
|
|
1409
1473
|
|
|
1410
1474
|
flattenBy$1.flattenBy = void 0;
|
|
1411
|
-
const types_1$h = es2018$
|
|
1475
|
+
const types_1$h = es2018$3;
|
|
1412
1476
|
function flattenBy(iterable, predicate) {
|
|
1413
1477
|
return flatten$2(iterable, predicate, 1);
|
|
1414
1478
|
}
|
|
@@ -1431,7 +1495,7 @@ var flattenDeep$1 = {};
|
|
|
1431
1495
|
|
|
1432
1496
|
flattenDeep$1.flattenDeep = void 0;
|
|
1433
1497
|
const flatten_by_1 = flattenBy$1;
|
|
1434
|
-
const errors_1$8 = es2018$
|
|
1498
|
+
const errors_1$8 = es2018$8;
|
|
1435
1499
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1436
1500
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1437
1501
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1448,10 +1512,32 @@ function flatten(iterable) {
|
|
|
1448
1512
|
}
|
|
1449
1513
|
flatten$1.flatten = flatten;
|
|
1450
1514
|
|
|
1515
|
+
var intersectionAsync$1 = {};
|
|
1516
|
+
|
|
1517
|
+
intersectionAsync$1.intersectionAsync = void 0;
|
|
1518
|
+
const filter_async_1 = filterAsync$1;
|
|
1519
|
+
const to_set_async_1 = toSetAsync$1;
|
|
1520
|
+
async function* intersectionAsync(left, right) {
|
|
1521
|
+
const rightSet = await (0, to_set_async_1.toSetAsync)(right);
|
|
1522
|
+
yield* (0, filter_async_1.filterAsync)(left, async (x) => rightSet.has(await x));
|
|
1523
|
+
}
|
|
1524
|
+
intersectionAsync$1.intersectionAsync = intersectionAsync;
|
|
1525
|
+
|
|
1526
|
+
var intersection$1 = {};
|
|
1527
|
+
|
|
1528
|
+
intersection$1.intersection = void 0;
|
|
1529
|
+
const filter_1 = filter$1;
|
|
1530
|
+
const to_set_1 = toSet$1;
|
|
1531
|
+
function intersection(left, right) {
|
|
1532
|
+
const rightSet = (0, to_set_1.toSet)(right);
|
|
1533
|
+
return (0, filter_1.filter)(left, x => rightSet.has(x));
|
|
1534
|
+
}
|
|
1535
|
+
intersection$1.intersection = intersection;
|
|
1536
|
+
|
|
1451
1537
|
var mapAsync$1 = {};
|
|
1452
1538
|
|
|
1453
1539
|
mapAsync$1.mapAsync = void 0;
|
|
1454
|
-
const types_1$g = es2018$
|
|
1540
|
+
const types_1$g = es2018$3;
|
|
1455
1541
|
function mapAsync(iterable, fn) {
|
|
1456
1542
|
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
1457
1543
|
return mapAsyncIterable(iterable, fn);
|
|
@@ -1491,8 +1577,8 @@ map$1.map = map;
|
|
|
1491
1577
|
var repeatAsync$1 = {};
|
|
1492
1578
|
|
|
1493
1579
|
repeatAsync$1.repeatAsync = void 0;
|
|
1494
|
-
const go_1$8 = es2018$
|
|
1495
|
-
const errors_1$7 = es2018$
|
|
1580
|
+
const go_1$8 = es2018$6;
|
|
1581
|
+
const errors_1$7 = es2018$8;
|
|
1496
1582
|
function repeatAsync(iterable, times) {
|
|
1497
1583
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1498
1584
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1526,8 +1612,8 @@ function isProduction$1() {
|
|
|
1526
1612
|
var repeat$1 = {};
|
|
1527
1613
|
|
|
1528
1614
|
repeat$1.repeat = void 0;
|
|
1529
|
-
const go_1$7 = es2018$
|
|
1530
|
-
const errors_1$6 = es2018$
|
|
1615
|
+
const go_1$7 = es2018$6;
|
|
1616
|
+
const errors_1$6 = es2018$8;
|
|
1531
1617
|
function repeat(iterable, times) {
|
|
1532
1618
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1533
1619
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1561,8 +1647,8 @@ function isProduction() {
|
|
|
1561
1647
|
var sliceAsync$1 = {};
|
|
1562
1648
|
|
|
1563
1649
|
sliceAsync$1.sliceAsync = void 0;
|
|
1564
|
-
const go_1$6 = es2018$
|
|
1565
|
-
const errors_1$5 = es2018$
|
|
1650
|
+
const go_1$6 = es2018$6;
|
|
1651
|
+
const errors_1$5 = es2018$8;
|
|
1566
1652
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1567
1653
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1568
1654
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1584,8 +1670,8 @@ sliceAsync$1.sliceAsync = sliceAsync;
|
|
|
1584
1670
|
var slice$1 = {};
|
|
1585
1671
|
|
|
1586
1672
|
slice$1.slice = void 0;
|
|
1587
|
-
const go_1$5 = es2018$
|
|
1588
|
-
const errors_1$4 = es2018$
|
|
1673
|
+
const go_1$5 = es2018$6;
|
|
1674
|
+
const errors_1$4 = es2018$8;
|
|
1589
1675
|
function slice(iterable, start, end = Infinity) {
|
|
1590
1676
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1591
1677
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1625,7 +1711,7 @@ splitAsync$1.splitAsync = splitAsync;
|
|
|
1625
1711
|
var splitByAsync$1 = {};
|
|
1626
1712
|
|
|
1627
1713
|
splitByAsync$1.splitByAsync = void 0;
|
|
1628
|
-
const types_1$f = es2018$
|
|
1714
|
+
const types_1$f = es2018$3;
|
|
1629
1715
|
function splitByAsync(iterable, predicate) {
|
|
1630
1716
|
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
|
1631
1717
|
return splitByAsyncIterable(iterable, predicate);
|
|
@@ -1707,8 +1793,8 @@ split$1.split = split;
|
|
|
1707
1793
|
var takeAsync$1 = {};
|
|
1708
1794
|
|
|
1709
1795
|
takeAsync$1.takeAsync = void 0;
|
|
1710
|
-
const go_1$4 = es2018$
|
|
1711
|
-
const errors_1$3 = es2018$
|
|
1796
|
+
const go_1$4 = es2018$6;
|
|
1797
|
+
const errors_1$3 = es2018$8;
|
|
1712
1798
|
function takeAsync(iterable, count) {
|
|
1713
1799
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1714
1800
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1728,8 +1814,8 @@ takeAsync$1.takeAsync = takeAsync;
|
|
|
1728
1814
|
var takeRightAsync$1 = {};
|
|
1729
1815
|
|
|
1730
1816
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1731
|
-
const go_1$3 = es2018$
|
|
1732
|
-
const errors_1$2 = es2018$
|
|
1817
|
+
const go_1$3 = es2018$6;
|
|
1818
|
+
const errors_1$2 = es2018$8;
|
|
1733
1819
|
function takeRightAsync(iterable, count) {
|
|
1734
1820
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1735
1821
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1758,8 +1844,8 @@ takeRightAsync$1.takeRightAsync = takeRightAsync;
|
|
|
1758
1844
|
var takeRight$1 = {};
|
|
1759
1845
|
|
|
1760
1846
|
takeRight$1.takeRight = void 0;
|
|
1761
|
-
const go_1$2 = es2018$
|
|
1762
|
-
const errors_1$1 = es2018$
|
|
1847
|
+
const go_1$2 = es2018$6;
|
|
1848
|
+
const errors_1$1 = es2018$8;
|
|
1763
1849
|
function takeRight(iterable, count) {
|
|
1764
1850
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1765
1851
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1788,7 +1874,7 @@ takeRight$1.takeRight = takeRight;
|
|
|
1788
1874
|
var takeUntilAsync$1 = {};
|
|
1789
1875
|
|
|
1790
1876
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1791
|
-
const types_1$e = es2018$
|
|
1877
|
+
const types_1$e = es2018$3;
|
|
1792
1878
|
function takeUntilAsync(iterable, predicate) {
|
|
1793
1879
|
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1794
1880
|
return takeUntilAsyncIterable(iterable, predicate);
|
|
@@ -1834,8 +1920,8 @@ takeUntil$1.takeUntil = takeUntil;
|
|
|
1834
1920
|
var take$1 = {};
|
|
1835
1921
|
|
|
1836
1922
|
take$1.take = void 0;
|
|
1837
|
-
const go_1$1 = es2018$
|
|
1838
|
-
const errors_1 = es2018$
|
|
1923
|
+
const go_1$1 = es2018$6;
|
|
1924
|
+
const errors_1 = es2018$8;
|
|
1839
1925
|
function take(iterable, count) {
|
|
1840
1926
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1841
1927
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1855,7 +1941,7 @@ take$1.take = take;
|
|
|
1855
1941
|
var tapAsync$1 = {};
|
|
1856
1942
|
|
|
1857
1943
|
tapAsync$1.tapAsync = void 0;
|
|
1858
|
-
const types_1$d = es2018$
|
|
1944
|
+
const types_1$d = es2018$3;
|
|
1859
1945
|
function tapAsync(iterable, fn) {
|
|
1860
1946
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1861
1947
|
return tapAsyncIterable(iterable, fn);
|
|
@@ -1900,7 +1986,7 @@ var toAsyncIterable$1 = {};
|
|
|
1900
1986
|
toAsyncIterable$1.toAsyncIterable = void 0;
|
|
1901
1987
|
async function* toAsyncIterable(iterable) {
|
|
1902
1988
|
for (const value of iterable) {
|
|
1903
|
-
yield value;
|
|
1989
|
+
yield await value;
|
|
1904
1990
|
}
|
|
1905
1991
|
}
|
|
1906
1992
|
toAsyncIterable$1.toAsyncIterable = toAsyncIterable;
|
|
@@ -1938,7 +2024,7 @@ uniqAsync$1.uniqAsync = uniqAsync;
|
|
|
1938
2024
|
var uniqByAsync$1 = {};
|
|
1939
2025
|
|
|
1940
2026
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
1941
|
-
const types_1$c = es2018$
|
|
2027
|
+
const types_1$c = es2018$3;
|
|
1942
2028
|
function uniqByAsync(iterable, fn) {
|
|
1943
2029
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1944
2030
|
return uniqByAsyncIterable(iterable, fn);
|
|
@@ -2007,7 +2093,7 @@ uniq$1.uniq = uniq;
|
|
|
2007
2093
|
var zipAsync$1 = {};
|
|
2008
2094
|
|
|
2009
2095
|
zipAsync$1.zipAsync = void 0;
|
|
2010
|
-
const types_1$b = es2018$
|
|
2096
|
+
const types_1$b = es2018$3;
|
|
2011
2097
|
var Kind;
|
|
2012
2098
|
(function (Kind) {
|
|
2013
2099
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -2045,7 +2131,7 @@ async function* zipWithSize$1(...iterables) {
|
|
|
2045
2131
|
dones[i] = true;
|
|
2046
2132
|
return;
|
|
2047
2133
|
}
|
|
2048
|
-
result[i] = temp.value;
|
|
2134
|
+
result[i] = await temp.value;
|
|
2049
2135
|
}
|
|
2050
2136
|
yield result;
|
|
2051
2137
|
}
|
|
@@ -2114,6 +2200,8 @@ __exportStar(chunkBy$1, exports);
|
|
|
2114
2200
|
__exportStar(chunk$1, exports);
|
|
2115
2201
|
__exportStar(concatAsync$1, exports);
|
|
2116
2202
|
__exportStar(concat$1, exports);
|
|
2203
|
+
__exportStar(differenceAsync$1, exports);
|
|
2204
|
+
__exportStar(difference$1, exports);
|
|
2117
2205
|
__exportStar(dropAsync$1, exports);
|
|
2118
2206
|
__exportStar(dropRightAsync$1, exports);
|
|
2119
2207
|
__exportStar(dropRight$1, exports);
|
|
@@ -2128,6 +2216,8 @@ __exportStar(flattenBy$1, exports);
|
|
|
2128
2216
|
__exportStar(flattenDeepAsync$1, exports);
|
|
2129
2217
|
__exportStar(flattenDeep$1, exports);
|
|
2130
2218
|
__exportStar(flatten$1, exports);
|
|
2219
|
+
__exportStar(intersectionAsync$1, exports);
|
|
2220
|
+
__exportStar(intersection$1, exports);
|
|
2131
2221
|
__exportStar(mapAsync$1, exports);
|
|
2132
2222
|
__exportStar(map$1, exports);
|
|
2133
2223
|
__exportStar(repeatAsync$1, exports);
|
|
@@ -2156,9 +2246,9 @@ __exportStar(uniq$1, exports);
|
|
|
2156
2246
|
__exportStar(zipAsync$1, exports);
|
|
2157
2247
|
__exportStar(zip$1, exports);
|
|
2158
2248
|
|
|
2159
|
-
}(
|
|
2249
|
+
}(intermediate));
|
|
2160
2250
|
|
|
2161
|
-
var
|
|
2251
|
+
var terminal = {};
|
|
2162
2252
|
|
|
2163
2253
|
var consume$1 = {};
|
|
2164
2254
|
|
|
@@ -2168,10 +2258,18 @@ function consume(iterable, consumer) {
|
|
|
2168
2258
|
}
|
|
2169
2259
|
consume$1.consume = consume;
|
|
2170
2260
|
|
|
2261
|
+
var consumeAsync$1 = {};
|
|
2262
|
+
|
|
2263
|
+
consumeAsync$1.consumeAsync = void 0;
|
|
2264
|
+
async function consumeAsync(iterable, consumer) {
|
|
2265
|
+
return await consumer(iterable);
|
|
2266
|
+
}
|
|
2267
|
+
consumeAsync$1.consumeAsync = consumeAsync;
|
|
2268
|
+
|
|
2171
2269
|
var eachAsync$1 = {};
|
|
2172
2270
|
|
|
2173
2271
|
eachAsync$1.eachAsync = void 0;
|
|
2174
|
-
const types_1$a = es2018$
|
|
2272
|
+
const types_1$a = es2018$3;
|
|
2175
2273
|
function eachAsync(iterable, fn) {
|
|
2176
2274
|
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
2177
2275
|
return eachAsyncIterable(iterable, fn);
|
|
@@ -2211,7 +2309,7 @@ each$1.each = each;
|
|
|
2211
2309
|
var everyAsync$1 = {};
|
|
2212
2310
|
|
|
2213
2311
|
everyAsync$1.everyAsync = void 0;
|
|
2214
|
-
const types_1$9 = es2018$
|
|
2312
|
+
const types_1$9 = es2018$3;
|
|
2215
2313
|
function everyAsync(iterable, predicate) {
|
|
2216
2314
|
if ((0, types_1$9.isAsyncIterable)(iterable)) {
|
|
2217
2315
|
return everyAsyncIterable(iterable, predicate);
|
|
@@ -2257,7 +2355,7 @@ every$1.every = every;
|
|
|
2257
2355
|
var findAsync$1 = {};
|
|
2258
2356
|
|
|
2259
2357
|
findAsync$1.findAsync = void 0;
|
|
2260
|
-
const types_1$8 = es2018$
|
|
2358
|
+
const types_1$8 = es2018$3;
|
|
2261
2359
|
function findAsync(iterable, predicate) {
|
|
2262
2360
|
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
2263
2361
|
return findAsyncIterable(iterable, predicate);
|
|
@@ -2346,42 +2444,10 @@ function includes(iterable, value) {
|
|
|
2346
2444
|
}
|
|
2347
2445
|
includes$1.includes = includes;
|
|
2348
2446
|
|
|
2349
|
-
var matchAsync$1 = {};
|
|
2350
|
-
|
|
2351
|
-
matchAsync$1.matchAsync = void 0;
|
|
2352
|
-
async function matchAsync(iterable, sequence) {
|
|
2353
|
-
const sequenceLength = sequence.length;
|
|
2354
|
-
let matchCount = 0;
|
|
2355
|
-
for await (const element of iterable) {
|
|
2356
|
-
if (element === sequence[matchCount])
|
|
2357
|
-
matchCount++;
|
|
2358
|
-
if (matchCount === sequenceLength)
|
|
2359
|
-
return true;
|
|
2360
|
-
}
|
|
2361
|
-
return false;
|
|
2362
|
-
}
|
|
2363
|
-
matchAsync$1.matchAsync = matchAsync;
|
|
2364
|
-
|
|
2365
|
-
var match$1 = {};
|
|
2366
|
-
|
|
2367
|
-
match$1.match = void 0;
|
|
2368
|
-
function match(iterable, sequence) {
|
|
2369
|
-
const sequenceLength = sequence.length;
|
|
2370
|
-
let matchCount = 0;
|
|
2371
|
-
for (const element of iterable) {
|
|
2372
|
-
if (element === sequence[matchCount])
|
|
2373
|
-
matchCount++;
|
|
2374
|
-
if (matchCount === sequenceLength)
|
|
2375
|
-
return true;
|
|
2376
|
-
}
|
|
2377
|
-
return false;
|
|
2378
|
-
}
|
|
2379
|
-
match$1.match = match;
|
|
2380
|
-
|
|
2381
2447
|
var reduceAsync$1 = {};
|
|
2382
2448
|
|
|
2383
2449
|
reduceAsync$1.reduceAsync = void 0;
|
|
2384
|
-
const types_1$7 = es2018$
|
|
2450
|
+
const types_1$7 = es2018$3;
|
|
2385
2451
|
function reduceAsync(iterable, fn, initialValue) {
|
|
2386
2452
|
if ((0, types_1$7.isUndefined)(initialValue)) {
|
|
2387
2453
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -2477,7 +2543,7 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
|
2477
2543
|
var reduce$1 = {};
|
|
2478
2544
|
|
|
2479
2545
|
reduce$1.reduce = void 0;
|
|
2480
|
-
const types_1$6 = es2018$
|
|
2546
|
+
const types_1$6 = es2018$3;
|
|
2481
2547
|
function reduce(iterable, fn, initialValue) {
|
|
2482
2548
|
if ((0, types_1$6.isUndefined)(initialValue)) {
|
|
2483
2549
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -2524,7 +2590,7 @@ function reduceWithoutInitialValue(iterable, fn) {
|
|
|
2524
2590
|
var someAsync$1 = {};
|
|
2525
2591
|
|
|
2526
2592
|
someAsync$1.someAsync = void 0;
|
|
2527
|
-
const types_1$5 = es2018$
|
|
2593
|
+
const types_1$5 = es2018$3;
|
|
2528
2594
|
function someAsync(iterable, predicate) {
|
|
2529
2595
|
if ((0, types_1$5.isAsyncIterable)(iterable)) {
|
|
2530
2596
|
return someAsyncIterable(iterable, predicate);
|
|
@@ -2611,54 +2677,14 @@ function last(iterable) {
|
|
|
2611
2677
|
}
|
|
2612
2678
|
last$1.last = last;
|
|
2613
2679
|
|
|
2614
|
-
var toArrayAsync$1 = {};
|
|
2615
|
-
|
|
2616
|
-
toArrayAsync$1.toArrayAsync = void 0;
|
|
2617
|
-
const consume_1$3 = consume$1;
|
|
2618
|
-
function toArrayAsync(iterable) {
|
|
2619
|
-
return (0, consume_1$3.consume)(iterable, async (iterable) => {
|
|
2620
|
-
const result = [];
|
|
2621
|
-
for await (const element of iterable) {
|
|
2622
|
-
result.push(element);
|
|
2623
|
-
}
|
|
2624
|
-
return result;
|
|
2625
|
-
});
|
|
2626
|
-
}
|
|
2627
|
-
toArrayAsync$1.toArrayAsync = toArrayAsync;
|
|
2628
|
-
|
|
2629
2680
|
var toArray$1 = {};
|
|
2630
2681
|
|
|
2631
2682
|
toArray$1.toArray = void 0;
|
|
2632
|
-
const consume_1$2 = consume$1;
|
|
2633
2683
|
function toArray(iterable) {
|
|
2634
|
-
return
|
|
2684
|
+
return Array.from(iterable);
|
|
2635
2685
|
}
|
|
2636
2686
|
toArray$1.toArray = toArray;
|
|
2637
2687
|
|
|
2638
|
-
var toSetAsync$1 = {};
|
|
2639
|
-
|
|
2640
|
-
toSetAsync$1.toSetAsync = void 0;
|
|
2641
|
-
const consume_1$1 = consume$1;
|
|
2642
|
-
function toSetAsync(iterable) {
|
|
2643
|
-
return (0, consume_1$1.consume)(iterable, async (iterable) => {
|
|
2644
|
-
const result = new Set();
|
|
2645
|
-
for await (const element of iterable) {
|
|
2646
|
-
result.add(element);
|
|
2647
|
-
}
|
|
2648
|
-
return result;
|
|
2649
|
-
});
|
|
2650
|
-
}
|
|
2651
|
-
toSetAsync$1.toSetAsync = toSetAsync;
|
|
2652
|
-
|
|
2653
|
-
var toSet$1 = {};
|
|
2654
|
-
|
|
2655
|
-
toSet$1.toSet = void 0;
|
|
2656
|
-
const consume_1 = consume$1;
|
|
2657
|
-
function toSet(iterable) {
|
|
2658
|
-
return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
|
|
2659
|
-
}
|
|
2660
|
-
toSet$1.toSet = toSet;
|
|
2661
|
-
|
|
2662
2688
|
var count$1 = {};
|
|
2663
2689
|
|
|
2664
2690
|
count$1.count = void 0;
|
|
@@ -2732,6 +2758,7 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
2732
2758
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2733
2759
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2734
2760
|
};__exportStar(consume$1, exports);
|
|
2761
|
+
__exportStar(consumeAsync$1, exports);
|
|
2735
2762
|
__exportStar(eachAsync$1, exports);
|
|
2736
2763
|
__exportStar(each$1, exports);
|
|
2737
2764
|
__exportStar(everyAsync$1, exports);
|
|
@@ -2742,8 +2769,6 @@ __exportStar(firstAsync$1, exports);
|
|
|
2742
2769
|
__exportStar(first$1, exports);
|
|
2743
2770
|
__exportStar(includesAsync$1, exports);
|
|
2744
2771
|
__exportStar(includes$1, exports);
|
|
2745
|
-
__exportStar(matchAsync$1, exports);
|
|
2746
|
-
__exportStar(match$1, exports);
|
|
2747
2772
|
__exportStar(reduceAsync$1, exports);
|
|
2748
2773
|
__exportStar(reduce$1, exports);
|
|
2749
2774
|
__exportStar(someAsync$1, exports);
|
|
@@ -2759,7 +2784,7 @@ __exportStar(countAsync$1, exports);
|
|
|
2759
2784
|
__exportStar(groupBy$1, exports);
|
|
2760
2785
|
__exportStar(groupByAsync$1, exports);
|
|
2761
2786
|
|
|
2762
|
-
}(
|
|
2787
|
+
}(terminal));
|
|
2763
2788
|
|
|
2764
2789
|
(function (exports) {
|
|
2765
2790
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -2775,10 +2800,10 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
2775
2800
|
}));
|
|
2776
2801
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2777
2802
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2778
|
-
};__exportStar(
|
|
2779
|
-
__exportStar(
|
|
2803
|
+
};__exportStar(intermediate, exports);
|
|
2804
|
+
__exportStar(terminal, exports);
|
|
2780
2805
|
|
|
2781
|
-
}(es2018$
|
|
2806
|
+
}(es2018$7));
|
|
2782
2807
|
|
|
2783
2808
|
var getErrorNames$1 = {};
|
|
2784
2809
|
|
|
@@ -2796,7 +2821,7 @@ function* traverseErrorPrototypeChain(err) {
|
|
|
2796
2821
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2797
2822
|
|
|
2798
2823
|
getErrorNames$1.getErrorNames = void 0;
|
|
2799
|
-
const types_1$4 = es2018$
|
|
2824
|
+
const types_1$4 = es2018$3;
|
|
2800
2825
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2801
2826
|
function* getErrorNames(err) {
|
|
2802
2827
|
var _a;
|
|
@@ -2817,7 +2842,7 @@ getErrorNames$1.getErrorNames = getErrorNames;
|
|
|
2817
2842
|
var serializableError = {};
|
|
2818
2843
|
|
|
2819
2844
|
serializableError.isSerializableError = void 0;
|
|
2820
|
-
const types_1$3 = es2018$
|
|
2845
|
+
const types_1$3 = es2018$3;
|
|
2821
2846
|
function isSerializableError(val) {
|
|
2822
2847
|
return (0, types_1$3.isObject)(val)
|
|
2823
2848
|
&& (0, types_1$3.isString)(val.name)
|
|
@@ -2828,9 +2853,9 @@ function isSerializableError(val) {
|
|
|
2828
2853
|
serializableError.isSerializableError = isSerializableError;
|
|
2829
2854
|
|
|
2830
2855
|
customError.CustomError = void 0;
|
|
2831
|
-
const iterable_operator_1$1 = es2018$
|
|
2856
|
+
const iterable_operator_1$1 = es2018$7;
|
|
2832
2857
|
const get_error_names_1$1 = getErrorNames$1;
|
|
2833
|
-
const types_1$2 = es2018$
|
|
2858
|
+
const types_1$2 = es2018$3;
|
|
2834
2859
|
const serializable_error_1 = serializableError;
|
|
2835
2860
|
class CustomError extends Error {
|
|
2836
2861
|
get name() {
|
|
@@ -2866,7 +2891,7 @@ var normalize$1 = {};
|
|
|
2866
2891
|
|
|
2867
2892
|
normalize$1.normalize = void 0;
|
|
2868
2893
|
const get_error_names_1 = getErrorNames$1;
|
|
2869
|
-
const iterable_operator_1 = es2018$
|
|
2894
|
+
const iterable_operator_1 = es2018$7;
|
|
2870
2895
|
function normalize(err) {
|
|
2871
2896
|
var _a;
|
|
2872
2897
|
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
@@ -2881,13 +2906,19 @@ normalize$1.normalize = normalize;
|
|
|
2881
2906
|
|
|
2882
2907
|
var hydrate$1 = {};
|
|
2883
2908
|
|
|
2884
|
-
var es2018$
|
|
2909
|
+
var es2018$2 = {};
|
|
2910
|
+
|
|
2911
|
+
var pass$1 = {};
|
|
2885
2912
|
|
|
2886
|
-
|
|
2913
|
+
pass$1.pass = void 0;
|
|
2914
|
+
function pass() { }
|
|
2915
|
+
pass$1.pass = pass;
|
|
2916
|
+
|
|
2917
|
+
var passAsync$1 = {};
|
|
2887
2918
|
|
|
2888
|
-
|
|
2889
|
-
function
|
|
2890
|
-
|
|
2919
|
+
passAsync$1.passAsync = void 0;
|
|
2920
|
+
async function passAsync() { }
|
|
2921
|
+
passAsync$1.passAsync = passAsync;
|
|
2891
2922
|
|
|
2892
2923
|
(function (exports) {
|
|
2893
2924
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -2899,12 +2930,13 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
2899
2930
|
}));
|
|
2900
2931
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2901
2932
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2902
|
-
};__exportStar(pass$
|
|
2933
|
+
};__exportStar(pass$1, exports);
|
|
2934
|
+
__exportStar(passAsync$1, exports);
|
|
2903
2935
|
|
|
2904
|
-
}(es2018$
|
|
2936
|
+
}(es2018$2));
|
|
2905
2937
|
|
|
2906
2938
|
hydrate$1.hydrate = void 0;
|
|
2907
|
-
const pass_1 = es2018$
|
|
2939
|
+
const pass_1 = es2018$2;
|
|
2908
2940
|
function hydrate(err) {
|
|
2909
2941
|
var _a;
|
|
2910
2942
|
const errorNames = [err.name, ...err.ancestors]
|
|
@@ -2962,9 +2994,9 @@ __exportStar(assert$1, exports);
|
|
|
2962
2994
|
__exportStar(getErrorNames$1, exports);
|
|
2963
2995
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
2964
2996
|
|
|
2965
|
-
}(es2018$
|
|
2997
|
+
}(es2018$8));
|
|
2966
2998
|
|
|
2967
|
-
var es2018$
|
|
2999
|
+
var es2018$1 = {};
|
|
2968
3000
|
|
|
2969
3001
|
var log$1 = {};
|
|
2970
3002
|
|
|
@@ -2977,420 +3009,59 @@ log$1.log = log;
|
|
|
2977
3009
|
|
|
2978
3010
|
var time$1 = {};
|
|
2979
3011
|
|
|
2980
|
-
var
|
|
3012
|
+
var lib = {};
|
|
3013
|
+
|
|
3014
|
+
var performanceNow_browser = {};
|
|
2981
3015
|
|
|
2982
|
-
|
|
2983
|
-
function
|
|
3016
|
+
performanceNow_browser.performanceNow = void 0;
|
|
3017
|
+
function performanceNow() {
|
|
2984
3018
|
return performance.now();
|
|
2985
3019
|
}
|
|
2986
|
-
|
|
2987
|
-
function elapsed(startTime, endTime) {
|
|
2988
|
-
return `${endTime - startTime}ms`;
|
|
2989
|
-
}
|
|
2990
|
-
highResolutionTimestamp_browser.elapsed = elapsed;
|
|
3020
|
+
performanceNow_browser.performanceNow = performanceNow;
|
|
2991
3021
|
|
|
2992
|
-
|
|
3022
|
+
(function (exports) {
|
|
3023
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3024
|
+
if (k2 === undefined) k2 = k;
|
|
3025
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3026
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3027
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3028
|
+
}
|
|
3029
|
+
Object.defineProperty(o, k2, desc);
|
|
3030
|
+
}) : (function(o, m, k, k2) {
|
|
3031
|
+
if (k2 === undefined) k2 = k;
|
|
3032
|
+
o[k2] = m[k];
|
|
3033
|
+
}));
|
|
3034
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3035
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3036
|
+
};__exportStar(performanceNow_browser, exports);
|
|
2993
3037
|
|
|
2994
|
-
|
|
3038
|
+
}(lib));
|
|
2995
3039
|
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
function isntArray(val) {
|
|
3002
|
-
return !isArray(val);
|
|
3003
|
-
}
|
|
3004
|
-
array.isntArray = isntArray;
|
|
3005
|
-
function isEmptyArray(val) {
|
|
3006
|
-
return val.length === 0;
|
|
3040
|
+
var getElapsedTime$1 = {};
|
|
3041
|
+
|
|
3042
|
+
getElapsedTime$1.getElapsedTime = void 0;
|
|
3043
|
+
function getElapsedTime(startTime, endTime) {
|
|
3044
|
+
return `${endTime - startTime}ms`;
|
|
3007
3045
|
}
|
|
3008
|
-
|
|
3009
|
-
function isntEmptyArray(val) {
|
|
3010
|
-
return val.length !== 0;
|
|
3011
|
-
}
|
|
3012
|
-
array.isntEmptyArray = isntEmptyArray;
|
|
3013
|
-
|
|
3014
|
-
var asyncIterable = {};
|
|
3015
|
-
|
|
3016
|
-
var _null = {};
|
|
3017
|
-
|
|
3018
|
-
_null.isntNull = _null.isNull = void 0;
|
|
3019
|
-
function isNull(val) {
|
|
3020
|
-
return val === null;
|
|
3021
|
-
}
|
|
3022
|
-
_null.isNull = isNull;
|
|
3023
|
-
function isntNull(val) {
|
|
3024
|
-
return !isNull(val);
|
|
3025
|
-
}
|
|
3026
|
-
_null.isntNull = isntNull;
|
|
3027
|
-
|
|
3028
|
-
var _undefined = {};
|
|
3029
|
-
|
|
3030
|
-
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
3031
|
-
function isUndefined(val) {
|
|
3032
|
-
return val === undefined;
|
|
3033
|
-
}
|
|
3034
|
-
_undefined.isUndefined = isUndefined;
|
|
3035
|
-
function isntUndefined(val) {
|
|
3036
|
-
return !isUndefined(val);
|
|
3037
|
-
}
|
|
3038
|
-
_undefined.isntUndefined = isntUndefined;
|
|
3039
|
-
|
|
3040
|
-
var _function = {};
|
|
3041
|
-
|
|
3042
|
-
_function.isntFunction = _function.isFunction = void 0;
|
|
3043
|
-
function isFunction(val) {
|
|
3044
|
-
return typeof val === 'function';
|
|
3045
|
-
}
|
|
3046
|
-
_function.isFunction = isFunction;
|
|
3047
|
-
function isntFunction(val) {
|
|
3048
|
-
return !isFunction(val);
|
|
3049
|
-
}
|
|
3050
|
-
_function.isntFunction = isntFunction;
|
|
3051
|
-
|
|
3052
|
-
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
3053
|
-
const null_1$2 = _null;
|
|
3054
|
-
const undefined_1$1 = _undefined;
|
|
3055
|
-
const function_1$2 = _function;
|
|
3056
|
-
function isAsyncIterable(val) {
|
|
3057
|
-
return (0, null_1$2.isntNull)(val)
|
|
3058
|
-
&& (0, undefined_1$1.isntUndefined)(val)
|
|
3059
|
-
&& (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
|
|
3060
|
-
}
|
|
3061
|
-
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
3062
|
-
function isntAsyncIterable(val) {
|
|
3063
|
-
return !isAsyncIterable(val);
|
|
3064
|
-
}
|
|
3065
|
-
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
3066
|
-
|
|
3067
|
-
var bigint = {};
|
|
3068
|
-
|
|
3069
|
-
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
3070
|
-
function isBigInt(val) {
|
|
3071
|
-
return typeof val === 'bigint';
|
|
3072
|
-
}
|
|
3073
|
-
bigint.isBigInt = isBigInt;
|
|
3074
|
-
function isntBigInt(val) {
|
|
3075
|
-
return !isBigInt(val);
|
|
3076
|
-
}
|
|
3077
|
-
bigint.isntBigInt = isntBigInt;
|
|
3078
|
-
|
|
3079
|
-
var boolean = {};
|
|
3080
|
-
|
|
3081
|
-
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
3082
|
-
function isBoolean(val) {
|
|
3083
|
-
return typeof val === 'boolean';
|
|
3084
|
-
}
|
|
3085
|
-
boolean.isBoolean = isBoolean;
|
|
3086
|
-
function isntBoolean(val) {
|
|
3087
|
-
return !isBoolean(val);
|
|
3088
|
-
}
|
|
3089
|
-
boolean.isntBoolean = isntBoolean;
|
|
3090
|
-
|
|
3091
|
-
var char = {};
|
|
3092
|
-
|
|
3093
|
-
var string = {};
|
|
3094
|
-
|
|
3095
|
-
string.isntString = string.isString = void 0;
|
|
3096
|
-
function isString(val) {
|
|
3097
|
-
return typeof val === 'string';
|
|
3098
|
-
}
|
|
3099
|
-
string.isString = isString;
|
|
3100
|
-
function isntString(val) {
|
|
3101
|
-
return !isString(val);
|
|
3102
|
-
}
|
|
3103
|
-
string.isntString = isntString;
|
|
3104
|
-
|
|
3105
|
-
char.isntChar = char.isChar = void 0;
|
|
3106
|
-
const string_1$1 = string;
|
|
3107
|
-
function isChar(val) {
|
|
3108
|
-
return (0, string_1$1.isString)(val)
|
|
3109
|
-
&& val.length === 1;
|
|
3110
|
-
}
|
|
3111
|
-
char.isChar = isChar;
|
|
3112
|
-
function isntChar(val) {
|
|
3113
|
-
return !isChar(val);
|
|
3114
|
-
}
|
|
3115
|
-
char.isntChar = isntChar;
|
|
3116
|
-
|
|
3117
|
-
var date = {};
|
|
3118
|
-
|
|
3119
|
-
date.isntDate = date.isDate = void 0;
|
|
3120
|
-
function isDate(val) {
|
|
3121
|
-
return val instanceof Date;
|
|
3122
|
-
}
|
|
3123
|
-
date.isDate = isDate;
|
|
3124
|
-
function isntDate(val) {
|
|
3125
|
-
return !isDate(val);
|
|
3126
|
-
}
|
|
3127
|
-
date.isntDate = isntDate;
|
|
3128
|
-
|
|
3129
|
-
var _enum = {};
|
|
3130
|
-
|
|
3131
|
-
_enum.inEnum = void 0;
|
|
3132
|
-
function inEnum(val, _enum) {
|
|
3133
|
-
return Object.values(_enum).includes(val);
|
|
3134
|
-
}
|
|
3135
|
-
_enum.inEnum = inEnum;
|
|
3136
|
-
|
|
3137
|
-
var error = {};
|
|
3138
|
-
|
|
3139
|
-
error.isntError = error.isError = void 0;
|
|
3140
|
-
function isError(val) {
|
|
3141
|
-
return val instanceof Error;
|
|
3142
|
-
}
|
|
3143
|
-
error.isError = isError;
|
|
3144
|
-
function isntError(val) {
|
|
3145
|
-
return !isError(val);
|
|
3146
|
-
}
|
|
3147
|
-
error.isntError = isntError;
|
|
3148
|
-
|
|
3149
|
-
var falsy = {};
|
|
3150
|
-
|
|
3151
|
-
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
3152
|
-
function isFalsy(val) {
|
|
3153
|
-
return !val;
|
|
3154
|
-
}
|
|
3155
|
-
falsy.isFalsy = isFalsy;
|
|
3156
|
-
function isntFalsy(val) {
|
|
3157
|
-
return !isFalsy(val);
|
|
3158
|
-
}
|
|
3159
|
-
falsy.isntFalsy = isntFalsy;
|
|
3160
|
-
|
|
3161
|
-
var iterable = {};
|
|
3162
|
-
|
|
3163
|
-
iterable.isntIterable = iterable.isIterable = void 0;
|
|
3164
|
-
const null_1$1 = _null;
|
|
3165
|
-
const undefined_1 = _undefined;
|
|
3166
|
-
const function_1$1 = _function;
|
|
3167
|
-
function isIterable(val) {
|
|
3168
|
-
return (0, null_1$1.isntNull)(val)
|
|
3169
|
-
&& (0, undefined_1.isntUndefined)(val)
|
|
3170
|
-
&& (0, function_1$1.isFunction)(val[Symbol.iterator]);
|
|
3171
|
-
}
|
|
3172
|
-
iterable.isIterable = isIterable;
|
|
3173
|
-
function isntIterable(val) {
|
|
3174
|
-
return !isIterable(val);
|
|
3175
|
-
}
|
|
3176
|
-
iterable.isntIterable = isntIterable;
|
|
3177
|
-
|
|
3178
|
-
var json$1 = {};
|
|
3179
|
-
|
|
3180
|
-
var number = {};
|
|
3181
|
-
|
|
3182
|
-
number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
|
|
3183
|
-
function isNumber(val) {
|
|
3184
|
-
return typeof val === 'number';
|
|
3185
|
-
}
|
|
3186
|
-
number.isNumber = isNumber;
|
|
3187
|
-
function isntNumber(val) {
|
|
3188
|
-
return !isNumber(val);
|
|
3189
|
-
}
|
|
3190
|
-
number.isntNumber = isntNumber;
|
|
3191
|
-
function isFinite(val) {
|
|
3192
|
-
return Number.isFinite(val);
|
|
3193
|
-
}
|
|
3194
|
-
number.isFinite = isFinite;
|
|
3195
|
-
function isPositiveInfinity(val) {
|
|
3196
|
-
return val === Infinity;
|
|
3197
|
-
}
|
|
3198
|
-
number.isPositiveInfinity = isPositiveInfinity;
|
|
3199
|
-
function isNegativeInfinity(val) {
|
|
3200
|
-
return val === -Infinity;
|
|
3201
|
-
}
|
|
3202
|
-
number.isNegativeInfinity = isNegativeInfinity;
|
|
3203
|
-
function isNaN(val) {
|
|
3204
|
-
return Number.isNaN(val);
|
|
3205
|
-
}
|
|
3206
|
-
number.isNaN = isNaN;
|
|
3207
|
-
function isntNaN(val) {
|
|
3208
|
-
return !isNaN(val);
|
|
3209
|
-
}
|
|
3210
|
-
number.isntNaN = isntNaN;
|
|
3211
|
-
|
|
3212
|
-
var object = {};
|
|
3213
|
-
|
|
3214
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3215
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3216
|
-
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
3217
|
-
const isPlainObject_1 = __importDefault(isPlainObject_1$2);
|
|
3218
|
-
function isObject(val) {
|
|
3219
|
-
return val !== null
|
|
3220
|
-
&& typeof val === 'object';
|
|
3221
|
-
}
|
|
3222
|
-
object.isObject = isObject;
|
|
3223
|
-
function isntObject(val) {
|
|
3224
|
-
return !isObject(val);
|
|
3225
|
-
}
|
|
3226
|
-
object.isntObject = isntObject;
|
|
3227
|
-
function isPlainObject(val) {
|
|
3228
|
-
return (0, isPlainObject_1.default)(val);
|
|
3229
|
-
}
|
|
3230
|
-
object.isPlainObject = isPlainObject;
|
|
3231
|
-
function isntPlainObject(val) {
|
|
3232
|
-
return !isPlainObject(val);
|
|
3233
|
-
}
|
|
3234
|
-
object.isntPlainObject = isntPlainObject;
|
|
3235
|
-
function isEmptyObject(val) {
|
|
3236
|
-
return Object.keys(val).length === 0;
|
|
3237
|
-
}
|
|
3238
|
-
object.isEmptyObject = isEmptyObject;
|
|
3239
|
-
function isntEmptyObject(val) {
|
|
3240
|
-
return Object.keys(val).length !== 0;
|
|
3241
|
-
}
|
|
3242
|
-
object.isntEmptyObject = isntEmptyObject;
|
|
3243
|
-
|
|
3244
|
-
json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
|
|
3245
|
-
const null_1 = _null;
|
|
3246
|
-
const boolean_1 = boolean;
|
|
3247
|
-
const string_1 = string;
|
|
3248
|
-
const number_1 = number;
|
|
3249
|
-
const array_1 = array;
|
|
3250
|
-
const object_1$1 = object;
|
|
3251
|
-
function isJson(val) {
|
|
3252
|
-
return (0, null_1.isNull)(val)
|
|
3253
|
-
|| (0, boolean_1.isBoolean)(val)
|
|
3254
|
-
|| (0, string_1.isString)(val)
|
|
3255
|
-
|| (0, number_1.isNumber)(val)
|
|
3256
|
-
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
3257
|
-
|| ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
|
|
3258
|
-
}
|
|
3259
|
-
json$1.isJson = isJson;
|
|
3260
|
-
function isntJson(val) {
|
|
3261
|
-
return !isJson(val);
|
|
3262
|
-
}
|
|
3263
|
-
json$1.isntJson = isntJson;
|
|
3264
|
-
function isJsonable(val) {
|
|
3265
|
-
try {
|
|
3266
|
-
JSON.stringify(val);
|
|
3267
|
-
return true;
|
|
3268
|
-
}
|
|
3269
|
-
catch (_a) {
|
|
3270
|
-
return false;
|
|
3271
|
-
}
|
|
3272
|
-
}
|
|
3273
|
-
json$1.isJsonable = isJsonable;
|
|
3274
|
-
function isntJsonable(val) {
|
|
3275
|
-
return !isntJsonable();
|
|
3276
|
-
}
|
|
3277
|
-
json$1.isntJsonable = isntJsonable;
|
|
3278
|
-
|
|
3279
|
-
var promise = {};
|
|
3280
|
-
|
|
3281
|
-
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
3282
|
-
const object_1 = object;
|
|
3283
|
-
const function_1 = _function;
|
|
3284
|
-
function isPromise(val) {
|
|
3285
|
-
return val instanceof Promise;
|
|
3286
|
-
}
|
|
3287
|
-
promise.isPromise = isPromise;
|
|
3288
|
-
function isntPromise(val) {
|
|
3289
|
-
return !isPromise(val);
|
|
3290
|
-
}
|
|
3291
|
-
promise.isntPromise = isntPromise;
|
|
3292
|
-
function isntPromiseLike(val) {
|
|
3293
|
-
return !isPromiseLike(val);
|
|
3294
|
-
}
|
|
3295
|
-
promise.isntPromiseLike = isntPromiseLike;
|
|
3296
|
-
function isPromiseLike(val) {
|
|
3297
|
-
return (0, object_1.isObject)(val)
|
|
3298
|
-
&& (0, function_1.isFunction)(val.then);
|
|
3299
|
-
}
|
|
3300
|
-
promise.isPromiseLike = isPromiseLike;
|
|
3301
|
-
|
|
3302
|
-
var url$1 = {};
|
|
3303
|
-
|
|
3304
|
-
url$1.isAbsoluteURL = void 0;
|
|
3305
|
-
function isAbsoluteURL(str) {
|
|
3306
|
-
try {
|
|
3307
|
-
new URL(str);
|
|
3308
|
-
return true;
|
|
3309
|
-
}
|
|
3310
|
-
catch (_a) {
|
|
3311
|
-
return false;
|
|
3312
|
-
}
|
|
3313
|
-
}
|
|
3314
|
-
url$1.isAbsoluteURL = isAbsoluteURL;
|
|
3315
|
-
|
|
3316
|
-
var regexp = {};
|
|
3317
|
-
|
|
3318
|
-
regexp.isntRegExp = regexp.isRegExp = void 0;
|
|
3319
|
-
function isRegExp(val) {
|
|
3320
|
-
return val instanceof RegExp;
|
|
3321
|
-
}
|
|
3322
|
-
regexp.isRegExp = isRegExp;
|
|
3323
|
-
function isntRegExp(val) {
|
|
3324
|
-
return !isRegExp(val);
|
|
3325
|
-
}
|
|
3326
|
-
regexp.isntRegExp = isntRegExp;
|
|
3327
|
-
|
|
3328
|
-
var symbol = {};
|
|
3329
|
-
|
|
3330
|
-
symbol.isntSymbol = symbol.isSymbol = void 0;
|
|
3331
|
-
function isSymbol(val) {
|
|
3332
|
-
return typeof val === 'symbol';
|
|
3333
|
-
}
|
|
3334
|
-
symbol.isSymbol = isSymbol;
|
|
3335
|
-
function isntSymbol(val) {
|
|
3336
|
-
return !isSymbol(val);
|
|
3337
|
-
}
|
|
3338
|
-
symbol.isntSymbol = isntSymbol;
|
|
3339
|
-
|
|
3340
|
-
(function (exports) {
|
|
3341
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3342
|
-
if (k2 === undefined) k2 = k;
|
|
3343
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3344
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3345
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3346
|
-
}
|
|
3347
|
-
Object.defineProperty(o, k2, desc);
|
|
3348
|
-
}) : (function(o, m, k, k2) {
|
|
3349
|
-
if (k2 === undefined) k2 = k;
|
|
3350
|
-
o[k2] = m[k];
|
|
3351
|
-
}));
|
|
3352
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3353
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3354
|
-
};__exportStar(array, exports);
|
|
3355
|
-
__exportStar(asyncIterable, exports);
|
|
3356
|
-
__exportStar(bigint, exports);
|
|
3357
|
-
__exportStar(boolean, exports);
|
|
3358
|
-
__exportStar(char, exports);
|
|
3359
|
-
__exportStar(date, exports);
|
|
3360
|
-
__exportStar(_enum, exports);
|
|
3361
|
-
__exportStar(error, exports);
|
|
3362
|
-
__exportStar(falsy, exports);
|
|
3363
|
-
__exportStar(_function, exports);
|
|
3364
|
-
__exportStar(iterable, exports);
|
|
3365
|
-
__exportStar(json$1, exports);
|
|
3366
|
-
__exportStar(_null, exports);
|
|
3367
|
-
__exportStar(number, exports);
|
|
3368
|
-
__exportStar(object, exports);
|
|
3369
|
-
__exportStar(promise, exports);
|
|
3370
|
-
__exportStar(string, exports);
|
|
3371
|
-
__exportStar(_undefined, exports);
|
|
3372
|
-
__exportStar(url$1, exports);
|
|
3373
|
-
__exportStar(regexp, exports);
|
|
3374
|
-
__exportStar(symbol, exports);
|
|
3375
|
-
|
|
3376
|
-
}(es2018$3));
|
|
3046
|
+
getElapsedTime$1.getElapsedTime = getElapsedTime;
|
|
3377
3047
|
|
|
3378
3048
|
time$1.time = void 0;
|
|
3379
|
-
const
|
|
3049
|
+
const extra_compatible_1$2 = lib;
|
|
3050
|
+
const get_elapsed_time_1$2 = getElapsedTime$1;
|
|
3380
3051
|
const types_1$1 = es2018$3;
|
|
3381
3052
|
function time(message, fn) {
|
|
3382
|
-
const startTime = (0,
|
|
3053
|
+
const startTime = (0, extra_compatible_1$2.performanceNow)();
|
|
3383
3054
|
const result = fn();
|
|
3384
3055
|
if ((0, types_1$1.isPromiseLike)(result)) {
|
|
3385
3056
|
return result.then(() => {
|
|
3386
|
-
const endTime = (0,
|
|
3387
|
-
console.log(message, (0,
|
|
3057
|
+
const endTime = (0, extra_compatible_1$2.performanceNow)();
|
|
3058
|
+
console.log(message, (0, get_elapsed_time_1$2.getElapsedTime)(startTime, endTime));
|
|
3388
3059
|
return result;
|
|
3389
3060
|
});
|
|
3390
3061
|
}
|
|
3391
3062
|
else {
|
|
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
|
}
|
|
@@ -3399,13 +3070,14 @@ time$1.time = time;
|
|
|
3399
3070
|
var timeFunction$1 = {};
|
|
3400
3071
|
|
|
3401
3072
|
timeFunction$1.timeFunction = void 0;
|
|
3402
|
-
const
|
|
3073
|
+
const extra_compatible_1$1 = lib;
|
|
3074
|
+
const get_elapsed_time_1$1 = getElapsedTime$1;
|
|
3403
3075
|
function timeFunction(message, fn) {
|
|
3404
3076
|
return function (...args) {
|
|
3405
|
-
const startTime = (0,
|
|
3077
|
+
const startTime = (0, extra_compatible_1$1.performanceNow)();
|
|
3406
3078
|
const result = fn(...args);
|
|
3407
|
-
const endTime = (0,
|
|
3408
|
-
console.log(message, (0,
|
|
3079
|
+
const endTime = (0, extra_compatible_1$1.performanceNow)();
|
|
3080
|
+
console.log(message, (0, get_elapsed_time_1$1.getElapsedTime)(startTime, endTime));
|
|
3409
3081
|
return result;
|
|
3410
3082
|
};
|
|
3411
3083
|
}
|
|
@@ -3414,13 +3086,14 @@ timeFunction$1.timeFunction = timeFunction;
|
|
|
3414
3086
|
var timeAsyncFunction$1 = {};
|
|
3415
3087
|
|
|
3416
3088
|
timeAsyncFunction$1.timeAsyncFunction = void 0;
|
|
3417
|
-
const
|
|
3089
|
+
const extra_compatible_1 = lib;
|
|
3090
|
+
const get_elapsed_time_1 = getElapsedTime$1;
|
|
3418
3091
|
function timeAsyncFunction(message, fn) {
|
|
3419
3092
|
return async function (...args) {
|
|
3420
|
-
const startTime = (0,
|
|
3093
|
+
const startTime = (0, extra_compatible_1.performanceNow)();
|
|
3421
3094
|
const result = await fn(...args);
|
|
3422
|
-
const endTime = (0,
|
|
3423
|
-
console.log(message, (0,
|
|
3095
|
+
const endTime = (0, extra_compatible_1.performanceNow)();
|
|
3096
|
+
console.log(message, (0, get_elapsed_time_1.getElapsedTime)(startTime, endTime));
|
|
3424
3097
|
return result;
|
|
3425
3098
|
};
|
|
3426
3099
|
}
|
|
@@ -3428,73 +3101,8 @@ timeAsyncFunction$1.timeAsyncFunction = timeAsyncFunction;
|
|
|
3428
3101
|
|
|
3429
3102
|
var group$1 = {};
|
|
3430
3103
|
|
|
3431
|
-
var es2018$2 = {};
|
|
3432
|
-
|
|
3433
|
-
var go$1 = {};
|
|
3434
|
-
|
|
3435
|
-
go$1.go = void 0;
|
|
3436
|
-
function go(fn) {
|
|
3437
|
-
return fn();
|
|
3438
|
-
}
|
|
3439
|
-
go$1.go = go;
|
|
3440
|
-
|
|
3441
|
-
var goMicrotask$1 = {};
|
|
3442
|
-
|
|
3443
|
-
goMicrotask$1.goMicrotask = void 0;
|
|
3444
|
-
function goMicrotask(fn) {
|
|
3445
|
-
return new Promise((resolve, reject) => {
|
|
3446
|
-
queueMicrotask(async () => {
|
|
3447
|
-
try {
|
|
3448
|
-
resolve(await fn());
|
|
3449
|
-
}
|
|
3450
|
-
catch (e) {
|
|
3451
|
-
reject(e);
|
|
3452
|
-
}
|
|
3453
|
-
});
|
|
3454
|
-
});
|
|
3455
|
-
}
|
|
3456
|
-
goMicrotask$1.goMicrotask = goMicrotask;
|
|
3457
|
-
|
|
3458
|
-
var goMacrotask$1 = {};
|
|
3459
|
-
|
|
3460
|
-
goMacrotask$1.goMacrotask = void 0;
|
|
3461
|
-
const extra_timers_1 = es2018$8;
|
|
3462
|
-
function goMacrotask(fn) {
|
|
3463
|
-
return new Promise((resolve, reject) => {
|
|
3464
|
-
(0, extra_timers_1.setImmediate)(async () => {
|
|
3465
|
-
try {
|
|
3466
|
-
resolve(await fn());
|
|
3467
|
-
}
|
|
3468
|
-
catch (e) {
|
|
3469
|
-
reject(e);
|
|
3470
|
-
}
|
|
3471
|
-
});
|
|
3472
|
-
});
|
|
3473
|
-
}
|
|
3474
|
-
goMacrotask$1.goMacrotask = goMacrotask;
|
|
3475
|
-
|
|
3476
|
-
(function (exports) {
|
|
3477
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3478
|
-
if (k2 === undefined) k2 = k;
|
|
3479
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3480
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3481
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3482
|
-
}
|
|
3483
|
-
Object.defineProperty(o, k2, desc);
|
|
3484
|
-
}) : (function(o, m, k, k2) {
|
|
3485
|
-
if (k2 === undefined) k2 = k;
|
|
3486
|
-
o[k2] = m[k];
|
|
3487
|
-
}));
|
|
3488
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3489
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3490
|
-
};__exportStar(go$1, exports);
|
|
3491
|
-
__exportStar(goMicrotask$1, exports);
|
|
3492
|
-
__exportStar(goMacrotask$1, exports);
|
|
3493
|
-
|
|
3494
|
-
}(es2018$2));
|
|
3495
|
-
|
|
3496
3104
|
group$1.group = void 0;
|
|
3497
|
-
const go_1 = es2018$
|
|
3105
|
+
const go_1 = es2018$6;
|
|
3498
3106
|
const types_1 = es2018$3;
|
|
3499
3107
|
function group(...args) {
|
|
3500
3108
|
const [label, fn] = (0, go_1.go)(() => {
|
|
@@ -3539,9 +3147,9 @@ __exportStar(timeFunction$1, exports);
|
|
|
3539
3147
|
__exportStar(timeAsyncFunction$1, exports);
|
|
3540
3148
|
__exportStar(group$1, exports);
|
|
3541
3149
|
|
|
3542
|
-
}(es2018$
|
|
3150
|
+
}(es2018$1));
|
|
3543
3151
|
|
|
3544
|
-
var es2018
|
|
3152
|
+
var es2018 = {};
|
|
3545
3153
|
|
|
3546
3154
|
var lazy$1 = {};
|
|
3547
3155
|
|
|
@@ -3653,54 +3261,25 @@ __exportStar(lazyFunction$1, exports);
|
|
|
3653
3261
|
__exportStar(lazyAsyncFunction$1, exports);
|
|
3654
3262
|
__exportStar(lazyStatic$1, exports);
|
|
3655
3263
|
|
|
3656
|
-
}(es2018$1));
|
|
3657
|
-
|
|
3658
|
-
var es2018 = {};
|
|
3659
|
-
|
|
3660
|
-
var pass$1 = {};
|
|
3661
|
-
|
|
3662
|
-
pass$1.pass = void 0;
|
|
3663
|
-
function pass() { }
|
|
3664
|
-
pass$1.pass = pass;
|
|
3665
|
-
|
|
3666
|
-
var passAsync$1 = {};
|
|
3667
|
-
|
|
3668
|
-
passAsync$1.passAsync = void 0;
|
|
3669
|
-
async function passAsync() { }
|
|
3670
|
-
passAsync$1.passAsync = passAsync;
|
|
3671
|
-
|
|
3672
|
-
(function (exports) {
|
|
3673
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3674
|
-
if (k2 === undefined) k2 = k;
|
|
3675
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
3676
|
-
}) : (function(o, m, k, k2) {
|
|
3677
|
-
if (k2 === undefined) k2 = k;
|
|
3678
|
-
o[k2] = m[k];
|
|
3679
|
-
}));
|
|
3680
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3681
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3682
|
-
};__exportStar(pass$1, exports);
|
|
3683
|
-
__exportStar(passAsync$1, exports);
|
|
3684
|
-
|
|
3685
3264
|
}(es2018));
|
|
3686
3265
|
|
|
3687
3266
|
(function (exports) {
|
|
3688
|
-
exports.
|
|
3689
|
-
exports.isntSymbol = exports.isntRegExp = exports.isntUndefined = exports.isntString = exports.isntPromiseLike = exports.isntPromise = exports.isntPlainObject = exports.isntObject = void 0;
|
|
3690
|
-
var errors_1 = es2018$
|
|
3267
|
+
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;
|
|
3268
|
+
exports.isntSymbol = exports.isntRegExp = exports.isntUndefined = exports.isntString = exports.isntPromiseLike = exports.isntPromise = exports.isntPlainObject = exports.isntObject = exports.isntNumber = exports.isntNullish = void 0;
|
|
3269
|
+
var errors_1 = es2018$8;
|
|
3691
3270
|
Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return errors_1.assert; } });
|
|
3692
|
-
var go_1 = es2018$
|
|
3271
|
+
var go_1 = es2018$6;
|
|
3693
3272
|
Object.defineProperty(exports, "go", { enumerable: true, get: function () { return go_1.go; } });
|
|
3694
|
-
var log_1 = es2018$
|
|
3273
|
+
var log_1 = es2018$1;
|
|
3695
3274
|
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return log_1.log; } });
|
|
3696
|
-
var extra_lazy_1 = es2018
|
|
3275
|
+
var extra_lazy_1 = es2018;
|
|
3697
3276
|
Object.defineProperty(exports, "lazy", { enumerable: true, get: function () { return extra_lazy_1.lazy; } });
|
|
3698
|
-
var pass_1 = es2018;
|
|
3277
|
+
var pass_1 = es2018$2;
|
|
3699
3278
|
Object.defineProperty(exports, "pass", { enumerable: true, get: function () { return pass_1.pass; } });
|
|
3700
|
-
var iterable_operator_1 = es2018$
|
|
3279
|
+
var iterable_operator_1 = es2018$7;
|
|
3701
3280
|
Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return iterable_operator_1.toArray; } });
|
|
3702
3281
|
Object.defineProperty(exports, "toArrayAsync", { enumerable: true, get: function () { return iterable_operator_1.toArrayAsync; } });
|
|
3703
|
-
var types_1 = es2018$
|
|
3282
|
+
var types_1 = es2018$3;
|
|
3704
3283
|
Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return types_1.isArray; } });
|
|
3705
3284
|
Object.defineProperty(exports, "isAsyncIterable", { enumerable: true, get: function () { return types_1.isAsyncIterable; } });
|
|
3706
3285
|
Object.defineProperty(exports, "isBigInt", { enumerable: true, get: function () { return types_1.isBigInt; } });
|
|
@@ -3715,6 +3294,7 @@ Object.defineProperty(exports, "isFunction", { enumerable: true, get: function (
|
|
|
3715
3294
|
Object.defineProperty(exports, "isIterable", { enumerable: true, get: function () { return types_1.isIterable; } });
|
|
3716
3295
|
Object.defineProperty(exports, "isJson", { enumerable: true, get: function () { return types_1.isJson; } });
|
|
3717
3296
|
Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return types_1.isNull; } });
|
|
3297
|
+
Object.defineProperty(exports, "isNullish", { enumerable: true, get: function () { return types_1.isNullish; } });
|
|
3718
3298
|
Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return types_1.isNumber; } });
|
|
3719
3299
|
Object.defineProperty(exports, "isFinite", { enumerable: true, get: function () { return types_1.isFinite; } });
|
|
3720
3300
|
Object.defineProperty(exports, "isPositiveInfinity", { enumerable: true, get: function () { return types_1.isPositiveInfinity; } });
|
|
@@ -3743,6 +3323,7 @@ Object.defineProperty(exports, "isntFunction", { enumerable: true, get: function
|
|
|
3743
3323
|
Object.defineProperty(exports, "isntIterable", { enumerable: true, get: function () { return types_1.isntIterable; } });
|
|
3744
3324
|
Object.defineProperty(exports, "isntJson", { enumerable: true, get: function () { return types_1.isntJson; } });
|
|
3745
3325
|
Object.defineProperty(exports, "isntNull", { enumerable: true, get: function () { return types_1.isntNull; } });
|
|
3326
|
+
Object.defineProperty(exports, "isntNullish", { enumerable: true, get: function () { return types_1.isntNullish; } });
|
|
3746
3327
|
Object.defineProperty(exports, "isntNumber", { enumerable: true, get: function () { return types_1.isntNumber; } });
|
|
3747
3328
|
Object.defineProperty(exports, "isntObject", { enumerable: true, get: function () { return types_1.isntObject; } });
|
|
3748
3329
|
Object.defineProperty(exports, "isntPlainObject", { enumerable: true, get: function () { return types_1.isntPlainObject; } });
|
|
@@ -3753,7 +3334,7 @@ Object.defineProperty(exports, "isntUndefined", { enumerable: true, get: functio
|
|
|
3753
3334
|
Object.defineProperty(exports, "isntRegExp", { enumerable: true, get: function () { return types_1.isntRegExp; } });
|
|
3754
3335
|
Object.defineProperty(exports, "isntSymbol", { enumerable: true, get: function () { return types_1.isntSymbol; } });
|
|
3755
3336
|
|
|
3756
|
-
}(es2018$
|
|
3337
|
+
}(es2018$9));
|
|
3757
3338
|
|
|
3758
3339
|
function get(...transformers) {
|
|
3759
3340
|
return request('GET', ...transformers);
|
|
@@ -3774,12 +3355,12 @@ function del(...transformers) {
|
|
|
3774
3355
|
return request('DELETE', ...transformers);
|
|
3775
3356
|
}
|
|
3776
3357
|
function request(method, ...transformers) {
|
|
3777
|
-
const options = transformers.reduce((options, trans) => es2018$
|
|
3358
|
+
const options = transformers.reduce((options, trans) => es2018$9.isFunction(trans) ? trans(options) : options, {
|
|
3778
3359
|
url: new URL('http://localhost'),
|
|
3779
|
-
headers: new es2018$
|
|
3360
|
+
headers: new es2018$a.Headers()
|
|
3780
3361
|
});
|
|
3781
|
-
const headers = new es2018$
|
|
3782
|
-
return new es2018$
|
|
3362
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3363
|
+
return new es2018$a.Request(options.url.href, {
|
|
3783
3364
|
method,
|
|
3784
3365
|
headers,
|
|
3785
3366
|
signal: options.signal,
|
|
@@ -3797,7 +3378,7 @@ function url(...urls) {
|
|
|
3797
3378
|
|
|
3798
3379
|
function text(payload) {
|
|
3799
3380
|
return (options) => {
|
|
3800
|
-
const headers = new es2018$
|
|
3381
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3801
3382
|
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
3802
3383
|
return Object.assign(Object.assign({}, options), { headers,
|
|
3803
3384
|
payload });
|
|
@@ -3806,7 +3387,7 @@ function text(payload) {
|
|
|
3806
3387
|
|
|
3807
3388
|
function json(payload) {
|
|
3808
3389
|
return (options) => {
|
|
3809
|
-
const headers = new es2018$
|
|
3390
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3810
3391
|
headers.set('Content-Type', 'application/json');
|
|
3811
3392
|
return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
|
|
3812
3393
|
};
|
|
@@ -3826,9 +3407,9 @@ License: MIT
|
|
|
3826
3407
|
}(papaparse_min));
|
|
3827
3408
|
|
|
3828
3409
|
function csv(payload) {
|
|
3829
|
-
es2018$
|
|
3410
|
+
es2018$9.assert(payload.length > 0, 'payload must be a non-empty array');
|
|
3830
3411
|
return (options) => {
|
|
3831
|
-
const headers = new es2018$
|
|
3412
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3832
3413
|
headers.set('Content-Type', 'text/csv');
|
|
3833
3414
|
return Object.assign(Object.assign({}, options), { headers, payload: stringify(payload) });
|
|
3834
3415
|
};
|
|
@@ -3846,7 +3427,7 @@ function signal(signal) {
|
|
|
3846
3427
|
|
|
3847
3428
|
function header(name, value) {
|
|
3848
3429
|
return (options) => {
|
|
3849
|
-
const headers = new es2018$
|
|
3430
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3850
3431
|
headers.set(name, value);
|
|
3851
3432
|
return Object.assign(Object.assign({}, options), { headers });
|
|
3852
3433
|
};
|
|
@@ -3854,7 +3435,7 @@ function header(name, value) {
|
|
|
3854
3435
|
|
|
3855
3436
|
function appendHeader(name, value) {
|
|
3856
3437
|
return (options) => {
|
|
3857
|
-
const headers = new es2018$
|
|
3438
|
+
const headers = new es2018$a.Headers(options.headers);
|
|
3858
3439
|
headers.append(name, value);
|
|
3859
3440
|
return Object.assign(Object.assign({}, options), { headers });
|
|
3860
3441
|
};
|
|
@@ -3862,7 +3443,7 @@ function appendHeader(name, value) {
|
|
|
3862
3443
|
|
|
3863
3444
|
function headers(headers) {
|
|
3864
3445
|
return (options) => {
|
|
3865
|
-
const newHeaders = new es2018$
|
|
3446
|
+
const newHeaders = new es2018$a.Headers(options.headers);
|
|
3866
3447
|
for (const [name, value] of Object.entries(headers)) {
|
|
3867
3448
|
newHeaders.set(name, value);
|
|
3868
3449
|
}
|
|
@@ -3900,7 +3481,7 @@ function pathname(pathname) {
|
|
|
3900
3481
|
|
|
3901
3482
|
function appendPathname(pathname) {
|
|
3902
3483
|
return (options) => {
|
|
3903
|
-
const base = es2018$
|
|
3484
|
+
const base = es2018$9.go(() => {
|
|
3904
3485
|
const url = new URL(options.url.href);
|
|
3905
3486
|
url.pathname = url.pathname.endsWith('/')
|
|
3906
3487
|
? url.pathname
|
|
@@ -3956,10 +3537,10 @@ function appendSearchParam(name, value) {
|
|
|
3956
3537
|
|
|
3957
3538
|
function formDataField(name, value) {
|
|
3958
3539
|
return (options) => {
|
|
3959
|
-
const formData = options.payload instanceof es2018$
|
|
3540
|
+
const formData = options.payload instanceof es2018$a.FormData
|
|
3960
3541
|
? cloneFormData(options.payload)
|
|
3961
|
-
: new es2018$
|
|
3962
|
-
if (es2018$
|
|
3542
|
+
: new es2018$a.FormData();
|
|
3543
|
+
if (es2018$9.isArray(value)) {
|
|
3963
3544
|
value.forEach(x => formData.append(name, x));
|
|
3964
3545
|
}
|
|
3965
3546
|
else {
|
|
@@ -3969,7 +3550,7 @@ function formDataField(name, value) {
|
|
|
3969
3550
|
};
|
|
3970
3551
|
}
|
|
3971
3552
|
function cloneFormData(formData) {
|
|
3972
|
-
const result = new es2018$
|
|
3553
|
+
const result = new es2018$a.FormData();
|
|
3973
3554
|
for (const [name, value] of formData.entries()) {
|
|
3974
3555
|
result.append(name, value);
|
|
3975
3556
|
}
|