@blackglory/structures 0.6.5 → 0.6.8

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.
@@ -21,227 +21,227 @@
21
21
 
22
22
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
23
23
 
24
- var es2018$d = {};
24
+ var es2018$e = {};
25
25
 
26
- var array$1 = {};
26
+ var array$2 = {};
27
27
 
28
- array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
29
- function isArray$1(val) {
28
+ array$2.isntEmptyArray = array$2.isEmptyArray = array$2.isntArray = array$2.isArray = void 0;
29
+ function isArray$2(val) {
30
30
  return Array.isArray(val);
31
31
  }
32
- array$1.isArray = isArray$1;
33
- function isntArray$1(val) {
34
- return !isArray$1(val);
32
+ array$2.isArray = isArray$2;
33
+ function isntArray$2(val) {
34
+ return !isArray$2(val);
35
35
  }
36
- array$1.isntArray = isntArray$1;
37
- function isEmptyArray$1(val) {
36
+ array$2.isntArray = isntArray$2;
37
+ function isEmptyArray$2(val) {
38
38
  return val.length === 0;
39
39
  }
40
- array$1.isEmptyArray = isEmptyArray$1;
41
- function isntEmptyArray$1(val) {
40
+ array$2.isEmptyArray = isEmptyArray$2;
41
+ function isntEmptyArray$2(val) {
42
42
  return val.length !== 0;
43
43
  }
44
- array$1.isntEmptyArray = isntEmptyArray$1;
44
+ array$2.isntEmptyArray = isntEmptyArray$2;
45
45
 
46
- var asyncIterable$1 = {};
46
+ var asyncIterable$2 = {};
47
47
 
48
- var _null$1 = {};
48
+ var _null$2 = {};
49
49
 
50
- _null$1.isntNull = _null$1.isNull = void 0;
51
- function isNull$1(val) {
50
+ _null$2.isntNull = _null$2.isNull = void 0;
51
+ function isNull$2(val) {
52
52
  return val === null;
53
53
  }
54
- _null$1.isNull = isNull$1;
55
- function isntNull$1(val) {
56
- return !isNull$1(val);
54
+ _null$2.isNull = isNull$2;
55
+ function isntNull$2(val) {
56
+ return !isNull$2(val);
57
57
  }
58
- _null$1.isntNull = isntNull$1;
58
+ _null$2.isntNull = isntNull$2;
59
59
 
60
- var _undefined$1 = {};
60
+ var _undefined$2 = {};
61
61
 
62
- _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
63
- function isUndefined$1(val) {
62
+ _undefined$2.isntUndefined = _undefined$2.isUndefined = void 0;
63
+ function isUndefined$2(val) {
64
64
  return val === undefined;
65
65
  }
66
- _undefined$1.isUndefined = isUndefined$1;
67
- function isntUndefined$1(val) {
68
- return !isUndefined$1(val);
66
+ _undefined$2.isUndefined = isUndefined$2;
67
+ function isntUndefined$2(val) {
68
+ return !isUndefined$2(val);
69
69
  }
70
- _undefined$1.isntUndefined = isntUndefined$1;
70
+ _undefined$2.isntUndefined = isntUndefined$2;
71
71
 
72
- var _function$1 = {};
72
+ var _function$2 = {};
73
73
 
74
- _function$1.isntFunction = _function$1.isFunction = void 0;
75
- function isFunction$2(val) {
74
+ _function$2.isntFunction = _function$2.isFunction = void 0;
75
+ function isFunction$3(val) {
76
76
  return typeof val === 'function';
77
77
  }
78
- _function$1.isFunction = isFunction$2;
79
- function isntFunction$1(val) {
80
- return !isFunction$2(val);
78
+ _function$2.isFunction = isFunction$3;
79
+ function isntFunction$2(val) {
80
+ return !isFunction$3(val);
81
81
  }
82
- _function$1.isntFunction = isntFunction$1;
82
+ _function$2.isntFunction = isntFunction$2;
83
83
 
84
- asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
85
- const null_1$4 = _null$1;
86
- const undefined_1$4 = _undefined$1;
87
- const function_1$2 = _function$1;
88
- function isAsyncIterable$1(val) {
89
- return (0, null_1$4.isntNull)(val)
90
- && (0, undefined_1$4.isntUndefined)(val)
91
- && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
84
+ asyncIterable$2.isntAsyncIterable = asyncIterable$2.isAsyncIterable = void 0;
85
+ const null_1$7 = _null$2;
86
+ const undefined_1$6 = _undefined$2;
87
+ const function_1$5 = _function$2;
88
+ function isAsyncIterable$2(val) {
89
+ return (0, null_1$7.isntNull)(val)
90
+ && (0, undefined_1$6.isntUndefined)(val)
91
+ && (0, function_1$5.isFunction)(val[Symbol.asyncIterator]);
92
92
  }
93
- asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
94
- function isntAsyncIterable$1(val) {
95
- return !isAsyncIterable$1(val);
93
+ asyncIterable$2.isAsyncIterable = isAsyncIterable$2;
94
+ function isntAsyncIterable$2(val) {
95
+ return !isAsyncIterable$2(val);
96
96
  }
97
- asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
97
+ asyncIterable$2.isntAsyncIterable = isntAsyncIterable$2;
98
98
 
99
- var bigint$1 = {};
99
+ var bigint$2 = {};
100
100
 
101
- bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
102
- function isBigInt$1(val) {
101
+ bigint$2.isntBigInt = bigint$2.isBigInt = void 0;
102
+ function isBigInt$2(val) {
103
103
  return typeof val === 'bigint';
104
104
  }
105
- bigint$1.isBigInt = isBigInt$1;
106
- function isntBigInt$1(val) {
107
- return !isBigInt$1(val);
105
+ bigint$2.isBigInt = isBigInt$2;
106
+ function isntBigInt$2(val) {
107
+ return !isBigInt$2(val);
108
108
  }
109
- bigint$1.isntBigInt = isntBigInt$1;
109
+ bigint$2.isntBigInt = isntBigInt$2;
110
110
 
111
- var boolean$1 = {};
111
+ var boolean$2 = {};
112
112
 
113
- boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
114
- function isBoolean$1(val) {
113
+ boolean$2.isntBoolean = boolean$2.isBoolean = void 0;
114
+ function isBoolean$2(val) {
115
115
  return typeof val === 'boolean';
116
116
  }
117
- boolean$1.isBoolean = isBoolean$1;
118
- function isntBoolean$1(val) {
119
- return !isBoolean$1(val);
117
+ boolean$2.isBoolean = isBoolean$2;
118
+ function isntBoolean$2(val) {
119
+ return !isBoolean$2(val);
120
120
  }
121
- boolean$1.isntBoolean = isntBoolean$1;
121
+ boolean$2.isntBoolean = isntBoolean$2;
122
122
 
123
- var char$1 = {};
123
+ var char$2 = {};
124
124
 
125
- var string$1 = {};
125
+ var string$2 = {};
126
126
 
127
- string$1.isntString = string$1.isString = void 0;
128
- function isString$1(val) {
127
+ string$2.isntString = string$2.isString = void 0;
128
+ function isString$2(val) {
129
129
  return typeof val === 'string';
130
130
  }
131
- string$1.isString = isString$1;
132
- function isntString$1(val) {
133
- return !isString$1(val);
131
+ string$2.isString = isString$2;
132
+ function isntString$2(val) {
133
+ return !isString$2(val);
134
134
  }
135
- string$1.isntString = isntString$1;
135
+ string$2.isntString = isntString$2;
136
136
 
137
- char$1.isntChar = char$1.isChar = void 0;
138
- const string_1$3 = string$1;
139
- function isChar$1(val) {
140
- return (0, string_1$3.isString)(val)
137
+ char$2.isntChar = char$2.isChar = void 0;
138
+ const string_1$5 = string$2;
139
+ function isChar$2(val) {
140
+ return (0, string_1$5.isString)(val)
141
141
  && val.length === 1;
142
142
  }
143
- char$1.isChar = isChar$1;
144
- function isntChar$1(val) {
145
- return !isChar$1(val);
143
+ char$2.isChar = isChar$2;
144
+ function isntChar$2(val) {
145
+ return !isChar$2(val);
146
146
  }
147
- char$1.isntChar = isntChar$1;
147
+ char$2.isntChar = isntChar$2;
148
148
 
149
- var date$1 = {};
149
+ var date$2 = {};
150
150
 
151
- date$1.isntDate = date$1.isDate = void 0;
152
- function isDate$1(val) {
151
+ date$2.isntDate = date$2.isDate = void 0;
152
+ function isDate$2(val) {
153
153
  return val instanceof Date;
154
154
  }
155
- date$1.isDate = isDate$1;
156
- function isntDate$1(val) {
157
- return !isDate$1(val);
155
+ date$2.isDate = isDate$2;
156
+ function isntDate$2(val) {
157
+ return !isDate$2(val);
158
158
  }
159
- date$1.isntDate = isntDate$1;
159
+ date$2.isntDate = isntDate$2;
160
160
 
161
- var _enum$1 = {};
161
+ var _enum$2 = {};
162
162
 
163
- _enum$1.inEnum = void 0;
164
- function inEnum$1(val, _enum) {
163
+ _enum$2.inEnum = void 0;
164
+ function inEnum$2(val, _enum) {
165
165
  return Object.values(_enum).includes(val);
166
166
  }
167
- _enum$1.inEnum = inEnum$1;
167
+ _enum$2.inEnum = inEnum$2;
168
168
 
169
- var error$1 = {};
169
+ var error$2 = {};
170
170
 
171
- error$1.isntError = error$1.isError = void 0;
172
- function isError$1(val) {
171
+ error$2.isntError = error$2.isError = void 0;
172
+ function isError$2(val) {
173
173
  return val instanceof Error;
174
174
  }
175
- error$1.isError = isError$1;
176
- function isntError$1(val) {
177
- return !isError$1(val);
175
+ error$2.isError = isError$2;
176
+ function isntError$2(val) {
177
+ return !isError$2(val);
178
178
  }
179
- error$1.isntError = isntError$1;
179
+ error$2.isntError = isntError$2;
180
180
 
181
- var falsy$1 = {};
181
+ var falsy$2 = {};
182
182
 
183
- falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
184
- function isFalsy$1(val) {
183
+ falsy$2.isntFalsy = falsy$2.isFalsy = void 0;
184
+ function isFalsy$2(val) {
185
185
  return !val;
186
186
  }
187
- falsy$1.isFalsy = isFalsy$1;
188
- function isntFalsy$1(val) {
189
- return !isFalsy$1(val);
187
+ falsy$2.isFalsy = isFalsy$2;
188
+ function isntFalsy$2(val) {
189
+ return !isFalsy$2(val);
190
190
  }
191
- falsy$1.isntFalsy = isntFalsy$1;
191
+ falsy$2.isntFalsy = isntFalsy$2;
192
192
 
193
- var iterable$1 = {};
193
+ var iterable$2 = {};
194
194
 
195
- iterable$1.isntIterable = iterable$1.isIterable = void 0;
196
- const null_1$3 = _null$1;
197
- const undefined_1$3 = _undefined$1;
198
- const function_1$1 = _function$1;
199
- function isIterable$1(val) {
200
- return (0, null_1$3.isntNull)(val)
201
- && (0, undefined_1$3.isntUndefined)(val)
202
- && (0, function_1$1.isFunction)(val[Symbol.iterator]);
195
+ iterable$2.isntIterable = iterable$2.isIterable = void 0;
196
+ const null_1$6 = _null$2;
197
+ const undefined_1$5 = _undefined$2;
198
+ const function_1$4 = _function$2;
199
+ function isIterable$2(val) {
200
+ return (0, null_1$6.isntNull)(val)
201
+ && (0, undefined_1$5.isntUndefined)(val)
202
+ && (0, function_1$4.isFunction)(val[Symbol.iterator]);
203
203
  }
204
- iterable$1.isIterable = isIterable$1;
205
- function isntIterable$1(val) {
206
- return !isIterable$1(val);
204
+ iterable$2.isIterable = isIterable$2;
205
+ function isntIterable$2(val) {
206
+ return !isIterable$2(val);
207
207
  }
208
- iterable$1.isntIterable = isntIterable$1;
208
+ iterable$2.isntIterable = isntIterable$2;
209
209
 
210
- var json$1 = {};
210
+ var json$2 = {};
211
211
 
212
- var number$1 = {};
212
+ var number$2 = {};
213
213
 
214
- number$1.isntNaN = number$1.isNaN = number$1.isNegativeInfinity = number$1.isPositiveInfinity = number$1.isFinite = number$1.isntNumber = number$1.isNumber = void 0;
215
- function isNumber$1(val) {
214
+ number$2.isntNaN = number$2.isNaN = number$2.isNegativeInfinity = number$2.isPositiveInfinity = number$2.isFinite = number$2.isntNumber = number$2.isNumber = void 0;
215
+ function isNumber$2(val) {
216
216
  return typeof val === 'number';
217
217
  }
218
- number$1.isNumber = isNumber$1;
219
- function isntNumber$1(val) {
220
- return !isNumber$1(val);
218
+ number$2.isNumber = isNumber$2;
219
+ function isntNumber$2(val) {
220
+ return !isNumber$2(val);
221
221
  }
222
- number$1.isntNumber = isntNumber$1;
223
- function isFinite(val) {
222
+ number$2.isntNumber = isntNumber$2;
223
+ function isFinite$1(val) {
224
224
  return Number.isFinite(val);
225
225
  }
226
- number$1.isFinite = isFinite;
227
- function isPositiveInfinity(val) {
226
+ number$2.isFinite = isFinite$1;
227
+ function isPositiveInfinity$1(val) {
228
228
  return val === Infinity;
229
229
  }
230
- number$1.isPositiveInfinity = isPositiveInfinity;
231
- function isNegativeInfinity(val) {
230
+ number$2.isPositiveInfinity = isPositiveInfinity$1;
231
+ function isNegativeInfinity$1(val) {
232
232
  return val === -Infinity;
233
233
  }
234
- number$1.isNegativeInfinity = isNegativeInfinity;
235
- function isNaN(val) {
234
+ number$2.isNegativeInfinity = isNegativeInfinity$1;
235
+ function isNaN$1(val) {
236
236
  return Number.isNaN(val);
237
237
  }
238
- number$1.isNaN = isNaN;
239
- function isntNaN(val) {
240
- return !isNaN(val);
238
+ number$2.isNaN = isNaN$1;
239
+ function isntNaN$1(val) {
240
+ return !isNaN$1(val);
241
241
  }
242
- number$1.isntNaN = isntNaN;
242
+ number$2.isntNaN = isntNaN$1;
243
243
 
244
- var object$1 = {};
244
+ var object$2 = {};
245
245
 
246
246
  /** Detect free variable `global` from Node.js. */
247
247
 
@@ -469,7 +469,7 @@
469
469
  * _.isPlainObject(Object.create(null));
470
470
  * // => true
471
471
  */
472
- function isPlainObject$3(value) {
472
+ function isPlainObject$4(value) {
473
473
  if (!isObjectLike$1(value) || baseGetTag(value) != objectTag$1) {
474
474
  return false;
475
475
  }
@@ -482,59 +482,59 @@
482
482
  funcToString$1.call(Ctor) == objectCtorString$1;
483
483
  }
484
484
 
485
- var isPlainObject_1$1 = isPlainObject$3;
485
+ var isPlainObject_1$2 = isPlainObject$4;
486
486
 
487
- var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
487
+ var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
488
488
  return (mod && mod.__esModule) ? mod : { "default": mod };
489
- };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
490
- const isPlainObject_1 = __importDefault$1(isPlainObject_1$1);
491
- function isObject$1(val) {
489
+ };object$2.isntEmptyObject = object$2.isEmptyObject = object$2.isntPlainObject = object$2.isPlainObject = object$2.isntObject = object$2.isObject = void 0;
490
+ const isPlainObject_1$1 = __importDefault$2(isPlainObject_1$2);
491
+ function isObject$2(val) {
492
492
  return val !== null
493
493
  && typeof val === 'object';
494
494
  }
495
- object$1.isObject = isObject$1;
496
- function isntObject$1(val) {
497
- return !isObject$1(val);
495
+ object$2.isObject = isObject$2;
496
+ function isntObject$2(val) {
497
+ return !isObject$2(val);
498
498
  }
499
- object$1.isntObject = isntObject$1;
500
- function isPlainObject$2(val) {
501
- return (0, isPlainObject_1.default)(val);
499
+ object$2.isntObject = isntObject$2;
500
+ function isPlainObject$3(val) {
501
+ return (0, isPlainObject_1$1.default)(val);
502
502
  }
503
- object$1.isPlainObject = isPlainObject$2;
504
- function isntPlainObject$1(val) {
505
- return !isPlainObject$2(val);
503
+ object$2.isPlainObject = isPlainObject$3;
504
+ function isntPlainObject$2(val) {
505
+ return !isPlainObject$3(val);
506
506
  }
507
- object$1.isntPlainObject = isntPlainObject$1;
508
- function isEmptyObject$1(val) {
507
+ object$2.isntPlainObject = isntPlainObject$2;
508
+ function isEmptyObject$2(val) {
509
509
  return Object.keys(val).length === 0;
510
510
  }
511
- object$1.isEmptyObject = isEmptyObject$1;
512
- function isntEmptyObject$1(val) {
511
+ object$2.isEmptyObject = isEmptyObject$2;
512
+ function isntEmptyObject$2(val) {
513
513
  return Object.keys(val).length !== 0;
514
514
  }
515
- object$1.isntEmptyObject = isntEmptyObject$1;
516
-
517
- json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
518
- const null_1$2 = _null$1;
519
- const boolean_1 = boolean$1;
520
- const string_1$2 = string$1;
521
- const number_1$1 = number$1;
522
- const array_1$1 = array$1;
523
- const object_1$2 = object$1;
524
- function isJson$1(val) {
525
- return (0, null_1$2.isNull)(val)
526
- || (0, boolean_1.isBoolean)(val)
527
- || (0, string_1$2.isString)(val)
528
- || (0, number_1$1.isNumber)(val)
529
- || ((0, array_1$1.isArray)(val) && val.every(isJson$1))
530
- || ((0, object_1$2.isPlainObject)(val) && Object.values(val).every(isJson$1));
531
- }
532
- json$1.isJson = isJson$1;
533
- function isntJson$1(val) {
534
- return !isJson$1(val);
535
- }
536
- json$1.isntJson = isntJson$1;
537
- function isJsonable(val) {
515
+ object$2.isntEmptyObject = isntEmptyObject$2;
516
+
517
+ json$2.isntJsonable = json$2.isJsonable = json$2.isntJson = json$2.isJson = void 0;
518
+ const null_1$5 = _null$2;
519
+ const boolean_1$1 = boolean$2;
520
+ const string_1$4 = string$2;
521
+ const number_1$2 = number$2;
522
+ const array_1$2 = array$2;
523
+ const object_1$4 = object$2;
524
+ function isJson$2(val) {
525
+ return (0, null_1$5.isNull)(val)
526
+ || (0, boolean_1$1.isBoolean)(val)
527
+ || (0, string_1$4.isString)(val)
528
+ || (0, number_1$2.isNumber)(val)
529
+ || ((0, array_1$2.isArray)(val) && val.every(isJson$2))
530
+ || ((0, object_1$4.isPlainObject)(val) && Object.values(val).every(isJson$2));
531
+ }
532
+ json$2.isJson = isJson$2;
533
+ function isntJson$2(val) {
534
+ return !isJson$2(val);
535
+ }
536
+ json$2.isntJson = isntJson$2;
537
+ function isJsonable$1(val) {
538
538
  try {
539
539
  JSON.stringify(val);
540
540
  return true;
@@ -543,39 +543,39 @@
543
543
  return false;
544
544
  }
545
545
  }
546
- json$1.isJsonable = isJsonable;
547
- function isntJsonable(val) {
548
- return !isntJsonable();
546
+ json$2.isJsonable = isJsonable$1;
547
+ function isntJsonable$1(val) {
548
+ return !isntJsonable$1();
549
549
  }
550
- json$1.isntJsonable = isntJsonable;
550
+ json$2.isntJsonable = isntJsonable$1;
551
551
 
552
- var promise = {};
552
+ var promise$1 = {};
553
553
 
554
- promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
555
- const object_1$1 = object$1;
556
- const function_1 = _function$1;
557
- function isPromise(val) {
554
+ promise$1.isPromiseLike = promise$1.isntPromiseLike = promise$1.isntPromise = promise$1.isPromise = void 0;
555
+ const object_1$3 = object$2;
556
+ const function_1$3 = _function$2;
557
+ function isPromise$1(val) {
558
558
  return val instanceof Promise;
559
559
  }
560
- promise.isPromise = isPromise;
561
- function isntPromise(val) {
562
- return !isPromise(val);
560
+ promise$1.isPromise = isPromise$1;
561
+ function isntPromise$1(val) {
562
+ return !isPromise$1(val);
563
563
  }
564
- promise.isntPromise = isntPromise;
565
- function isntPromiseLike(val) {
566
- return !isPromiseLike(val);
564
+ promise$1.isntPromise = isntPromise$1;
565
+ function isntPromiseLike$1(val) {
566
+ return !isPromiseLike$1(val);
567
567
  }
568
- promise.isntPromiseLike = isntPromiseLike;
569
- function isPromiseLike(val) {
570
- return (0, object_1$1.isObject)(val)
571
- && (0, function_1.isFunction)(val.then);
568
+ promise$1.isntPromiseLike = isntPromiseLike$1;
569
+ function isPromiseLike$1(val) {
570
+ return (0, object_1$3.isObject)(val)
571
+ && (0, function_1$3.isFunction)(val.then);
572
572
  }
573
- promise.isPromiseLike = isPromiseLike;
573
+ promise$1.isPromiseLike = isPromiseLike$1;
574
574
 
575
- var url$1 = {};
575
+ var url$2 = {};
576
576
 
577
- url$1.isAbsoluteURL = void 0;
578
- function isAbsoluteURL$1(str) {
577
+ url$2.isAbsoluteURL = void 0;
578
+ function isAbsoluteURL$2(str) {
579
579
  try {
580
580
  new URL(str);
581
581
  return true;
@@ -584,7 +584,19 @@
584
584
  return false;
585
585
  }
586
586
  }
587
- url$1.isAbsoluteURL = isAbsoluteURL$1;
587
+ url$2.isAbsoluteURL = isAbsoluteURL$2;
588
+
589
+ var regexp = {};
590
+
591
+ regexp.isntRegExp = regexp.isRegExp = void 0;
592
+ function isRegExp(val) {
593
+ return val instanceof RegExp;
594
+ }
595
+ regexp.isRegExp = isRegExp;
596
+ function isntRegExp(val) {
597
+ return !isRegExp(val);
598
+ }
599
+ regexp.isntRegExp = isntRegExp;
588
600
 
589
601
  (function (exports) {
590
602
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -600,30 +612,31 @@
600
612
  }));
601
613
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
602
614
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
603
- };__exportStar(array$1, exports);
604
- __exportStar(asyncIterable$1, exports);
605
- __exportStar(bigint$1, exports);
606
- __exportStar(boolean$1, exports);
607
- __exportStar(char$1, exports);
608
- __exportStar(date$1, exports);
609
- __exportStar(_enum$1, exports);
610
- __exportStar(error$1, exports);
611
- __exportStar(falsy$1, exports);
612
- __exportStar(_function$1, exports);
613
- __exportStar(iterable$1, exports);
614
- __exportStar(json$1, exports);
615
- __exportStar(_null$1, exports);
616
- __exportStar(number$1, exports);
617
- __exportStar(object$1, exports);
618
- __exportStar(promise, exports);
619
- __exportStar(string$1, exports);
620
- __exportStar(_undefined$1, exports);
621
- __exportStar(url$1, exports);
615
+ };__exportStar(array$2, exports);
616
+ __exportStar(asyncIterable$2, exports);
617
+ __exportStar(bigint$2, exports);
618
+ __exportStar(boolean$2, exports);
619
+ __exportStar(char$2, exports);
620
+ __exportStar(date$2, exports);
621
+ __exportStar(_enum$2, exports);
622
+ __exportStar(error$2, exports);
623
+ __exportStar(falsy$2, exports);
624
+ __exportStar(_function$2, exports);
625
+ __exportStar(iterable$2, exports);
626
+ __exportStar(json$2, exports);
627
+ __exportStar(_null$2, exports);
628
+ __exportStar(number$2, exports);
629
+ __exportStar(object$2, exports);
630
+ __exportStar(promise$1, exports);
631
+ __exportStar(string$2, exports);
632
+ __exportStar(_undefined$2, exports);
633
+ __exportStar(url$2, exports);
634
+ __exportStar(regexp, exports);
622
635
 
623
- } (es2018$d));
636
+ } (es2018$e));
624
637
 
625
638
  function convertConsToArray([value, next]) {
626
- if (es2018$d.isNull(next)) {
639
+ if (es2018$e.isNull(next)) {
627
640
  return [value];
628
641
  }
629
642
  else {
@@ -762,17 +775,17 @@
762
775
  }
763
776
  }
764
777
 
765
- var es2018$c = {};
778
+ var es2018$d = {};
766
779
 
767
780
  var customError$2 = {};
768
781
 
769
- var es2018$b = {};
782
+ var es2018$c = {};
770
783
 
771
784
  var middleware$2 = {};
772
785
 
773
786
  var chunkAsync$5 = {};
774
787
 
775
- var es2018$a = {};
788
+ var es2018$b = {};
776
789
 
777
790
  var go$3 = {};
778
791
 
@@ -794,19 +807,19 @@
794
807
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
795
808
  };__exportStar(go$3, exports);
796
809
 
797
- } (es2018$a));
810
+ } (es2018$b));
798
811
 
799
- var es2018$9 = {};
812
+ var es2018$a = {};
800
813
 
801
814
  var customError$1 = {};
802
815
 
803
- var es2018$8 = {};
816
+ var es2018$9 = {};
804
817
 
805
818
  var middleware$1 = {};
806
819
 
807
820
  var chunkAsync$4 = {};
808
821
 
809
- var es2018$7 = {};
822
+ var es2018$8 = {};
810
823
 
811
824
  var customError = {};
812
825
 
@@ -884,11 +897,11 @@
884
897
  __exportStar(refute$1, exports);
885
898
  __exportStar(assert$5, exports);
886
899
 
887
- } (es2018$7));
900
+ } (es2018$8));
888
901
 
889
902
  chunkAsync$4.chunkAsync = void 0;
890
- const go_1$L = es2018$a;
891
- const errors_1$L = es2018$7;
903
+ const go_1$L = es2018$b;
904
+ const errors_1$L = es2018$8;
892
905
  function chunkAsync$3(iterable, size) {
893
906
  (0, errors_1$L.assert)(Number.isInteger(size), 'The parameter size must be an integer');
894
907
  (0, errors_1$L.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -909,193 +922,193 @@
909
922
 
910
923
  var chunkByAsync$5 = {};
911
924
 
912
- var es2018$6 = {};
925
+ var es2018$7 = {};
913
926
 
914
- var array = {};
927
+ var array$1 = {};
915
928
 
916
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
917
- function isArray(val) {
929
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
930
+ function isArray$1(val) {
918
931
  return Array.isArray(val);
919
932
  }
920
- array.isArray = isArray;
921
- function isntArray(val) {
922
- return !isArray(val);
933
+ array$1.isArray = isArray$1;
934
+ function isntArray$1(val) {
935
+ return !isArray$1(val);
923
936
  }
924
- array.isntArray = isntArray;
925
- function isEmptyArray(val) {
937
+ array$1.isntArray = isntArray$1;
938
+ function isEmptyArray$1(val) {
926
939
  return val.length === 0;
927
940
  }
928
- array.isEmptyArray = isEmptyArray;
929
- function isntEmptyArray(val) {
941
+ array$1.isEmptyArray = isEmptyArray$1;
942
+ function isntEmptyArray$1(val) {
930
943
  return val.length !== 0;
931
944
  }
932
- array.isntEmptyArray = isntEmptyArray;
945
+ array$1.isntEmptyArray = isntEmptyArray$1;
933
946
 
934
- var asyncIterable = {};
947
+ var asyncIterable$1 = {};
935
948
 
936
- var _null = {};
949
+ var _null$1 = {};
937
950
 
938
- _null.isntNull = _null.isNull = void 0;
939
- function isNull(val) {
951
+ _null$1.isntNull = _null$1.isNull = void 0;
952
+ function isNull$1(val) {
940
953
  return val === null;
941
954
  }
942
- _null.isNull = isNull;
943
- function isntNull(val) {
944
- return !isNull(val);
955
+ _null$1.isNull = isNull$1;
956
+ function isntNull$1(val) {
957
+ return !isNull$1(val);
945
958
  }
946
- _null.isntNull = isntNull;
959
+ _null$1.isntNull = isntNull$1;
947
960
 
948
- var _undefined = {};
961
+ var _undefined$1 = {};
949
962
 
950
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
951
- function isUndefined(val) {
963
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
964
+ function isUndefined$1(val) {
952
965
  return val === undefined;
953
966
  }
954
- _undefined.isUndefined = isUndefined;
955
- function isntUndefined(val) {
956
- return !isUndefined(val);
967
+ _undefined$1.isUndefined = isUndefined$1;
968
+ function isntUndefined$1(val) {
969
+ return !isUndefined$1(val);
957
970
  }
958
- _undefined.isntUndefined = isntUndefined;
971
+ _undefined$1.isntUndefined = isntUndefined$1;
959
972
 
960
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
961
- const null_1$1 = _null;
962
- const undefined_1$2 = _undefined;
963
- function isAsyncIterable(val) {
964
- return (0, null_1$1.isntNull)(val)
965
- && (0, undefined_1$2.isntUndefined)(val)
973
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
974
+ const null_1$4 = _null$1;
975
+ const undefined_1$4 = _undefined$1;
976
+ function isAsyncIterable$1(val) {
977
+ return (0, null_1$4.isntNull)(val)
978
+ && (0, undefined_1$4.isntUndefined)(val)
966
979
  && typeof val[Symbol.asyncIterator] === 'function';
967
980
  }
968
- asyncIterable.isAsyncIterable = isAsyncIterable;
969
- function isntAsyncIterable(val) {
970
- return !isAsyncIterable(val);
981
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
982
+ function isntAsyncIterable$1(val) {
983
+ return !isAsyncIterable$1(val);
971
984
  }
972
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
985
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
973
986
 
974
- var bigint = {};
987
+ var bigint$1 = {};
975
988
 
976
- bigint.isntBigInt = bigint.isBigInt = void 0;
977
- function isBigInt(val) {
989
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
990
+ function isBigInt$1(val) {
978
991
  return typeof val === 'bigint';
979
992
  }
980
- bigint.isBigInt = isBigInt;
981
- function isntBigInt(val) {
982
- return !isBigInt(val);
993
+ bigint$1.isBigInt = isBigInt$1;
994
+ function isntBigInt$1(val) {
995
+ return !isBigInt$1(val);
983
996
  }
984
- bigint.isntBigInt = isntBigInt;
997
+ bigint$1.isntBigInt = isntBigInt$1;
985
998
 
986
- var boolean = {};
999
+ var boolean$1 = {};
987
1000
 
988
- boolean.isntBoolean = boolean.isBoolean = void 0;
989
- function isBoolean(val) {
1001
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
1002
+ function isBoolean$1(val) {
990
1003
  return typeof val === 'boolean';
991
1004
  }
992
- boolean.isBoolean = isBoolean;
993
- function isntBoolean(val) {
994
- return !isBoolean(val);
1005
+ boolean$1.isBoolean = isBoolean$1;
1006
+ function isntBoolean$1(val) {
1007
+ return !isBoolean$1(val);
995
1008
  }
996
- boolean.isntBoolean = isntBoolean;
1009
+ boolean$1.isntBoolean = isntBoolean$1;
997
1010
 
998
- var char = {};
1011
+ var char$1 = {};
999
1012
 
1000
- var string = {};
1013
+ var string$1 = {};
1001
1014
 
1002
- string.isntString = string.isString = void 0;
1003
- function isString(val) {
1015
+ string$1.isntString = string$1.isString = void 0;
1016
+ function isString$1(val) {
1004
1017
  return typeof val === 'string';
1005
1018
  }
1006
- string.isString = isString;
1007
- function isntString(val) {
1008
- return !isString(val);
1019
+ string$1.isString = isString$1;
1020
+ function isntString$1(val) {
1021
+ return !isString$1(val);
1009
1022
  }
1010
- string.isntString = isntString;
1023
+ string$1.isntString = isntString$1;
1011
1024
 
1012
- char.isntChar = char.isChar = void 0;
1013
- const string_1$1 = string;
1014
- function isChar(val) {
1015
- return (0, string_1$1.isString)(val)
1025
+ char$1.isntChar = char$1.isChar = void 0;
1026
+ const string_1$3 = string$1;
1027
+ function isChar$1(val) {
1028
+ return (0, string_1$3.isString)(val)
1016
1029
  && val.length === 1;
1017
1030
  }
1018
- char.isChar = isChar;
1019
- function isntChar(val) {
1020
- return !isChar(val);
1031
+ char$1.isChar = isChar$1;
1032
+ function isntChar$1(val) {
1033
+ return !isChar$1(val);
1021
1034
  }
1022
- char.isntChar = isntChar;
1035
+ char$1.isntChar = isntChar$1;
1023
1036
 
1024
- var date = {};
1037
+ var date$1 = {};
1025
1038
 
1026
- date.isntDate = date.isDate = void 0;
1027
- function isDate(val) {
1039
+ date$1.isntDate = date$1.isDate = void 0;
1040
+ function isDate$1(val) {
1028
1041
  return val instanceof Date;
1029
1042
  }
1030
- date.isDate = isDate;
1031
- function isntDate(val) {
1032
- return !isDate(val);
1043
+ date$1.isDate = isDate$1;
1044
+ function isntDate$1(val) {
1045
+ return !isDate$1(val);
1033
1046
  }
1034
- date.isntDate = isntDate;
1047
+ date$1.isntDate = isntDate$1;
1035
1048
 
1036
- var _enum = {};
1049
+ var _enum$1 = {};
1037
1050
 
1038
- _enum.inEnum = void 0;
1039
- function inEnum(val, _enum) {
1051
+ _enum$1.inEnum = void 0;
1052
+ function inEnum$1(val, _enum) {
1040
1053
  return Object.values(_enum).includes(val);
1041
1054
  }
1042
- _enum.inEnum = inEnum;
1055
+ _enum$1.inEnum = inEnum$1;
1043
1056
 
1044
- var error = {};
1057
+ var error$1 = {};
1045
1058
 
1046
- error.isntError = error.isError = void 0;
1047
- function isError(val) {
1059
+ error$1.isntError = error$1.isError = void 0;
1060
+ function isError$1(val) {
1048
1061
  return val instanceof Error;
1049
1062
  }
1050
- error.isError = isError;
1051
- function isntError(val) {
1052
- return !isError(val);
1063
+ error$1.isError = isError$1;
1064
+ function isntError$1(val) {
1065
+ return !isError$1(val);
1053
1066
  }
1054
- error.isntError = isntError;
1067
+ error$1.isntError = isntError$1;
1055
1068
 
1056
- var falsy = {};
1069
+ var falsy$1 = {};
1057
1070
 
1058
- falsy.isntFalsy = falsy.isFalsy = void 0;
1059
- function isFalsy(val) {
1071
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
1072
+ function isFalsy$1(val) {
1060
1073
  return !val;
1061
1074
  }
1062
- falsy.isFalsy = isFalsy;
1063
- function isntFalsy(val) {
1064
- return !isFalsy(val);
1075
+ falsy$1.isFalsy = isFalsy$1;
1076
+ function isntFalsy$1(val) {
1077
+ return !isFalsy$1(val);
1065
1078
  }
1066
- falsy.isntFalsy = isntFalsy;
1079
+ falsy$1.isntFalsy = isntFalsy$1;
1067
1080
 
1068
- var _function = {};
1081
+ var _function$1 = {};
1069
1082
 
1070
- _function.isntFunction = _function.isFunction = void 0;
1071
- function isFunction$1(val) {
1083
+ _function$1.isntFunction = _function$1.isFunction = void 0;
1084
+ function isFunction$2(val) {
1072
1085
  return typeof val === 'function';
1073
1086
  }
1074
- _function.isFunction = isFunction$1;
1075
- function isntFunction(val) {
1076
- return !isFunction$1(val);
1087
+ _function$1.isFunction = isFunction$2;
1088
+ function isntFunction$1(val) {
1089
+ return !isFunction$2(val);
1077
1090
  }
1078
- _function.isntFunction = isntFunction;
1091
+ _function$1.isntFunction = isntFunction$1;
1079
1092
 
1080
- var iterable = {};
1093
+ var iterable$1 = {};
1081
1094
 
1082
- iterable.isntIterable = iterable.isIterable = void 0;
1083
- const null_1 = _null;
1084
- const undefined_1$1 = _undefined;
1085
- function isIterable(val) {
1086
- return (0, null_1.isntNull)(val)
1087
- && (0, undefined_1$1.isntUndefined)(val)
1095
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
1096
+ const null_1$3 = _null$1;
1097
+ const undefined_1$3 = _undefined$1;
1098
+ function isIterable$1(val) {
1099
+ return (0, null_1$3.isntNull)(val)
1100
+ && (0, undefined_1$3.isntUndefined)(val)
1088
1101
  && typeof val[Symbol.iterator] === 'function';
1089
1102
  }
1090
- iterable.isIterable = isIterable;
1091
- function isntIterable(val) {
1092
- return !isIterable(val);
1103
+ iterable$1.isIterable = isIterable$1;
1104
+ function isntIterable$1(val) {
1105
+ return !isIterable$1(val);
1093
1106
  }
1094
- iterable.isntIterable = isntIterable;
1107
+ iterable$1.isntIterable = isntIterable$1;
1095
1108
 
1096
1109
  var jsonRpc = {};
1097
1110
 
1098
- var object = {};
1111
+ var object$1 = {};
1099
1112
 
1100
1113
  /**
1101
1114
  * lodash (Custom Build) <https://lodash.com/>
@@ -1221,7 +1234,7 @@
1221
1234
  * _.isPlainObject(Object.create(null));
1222
1235
  * // => true
1223
1236
  */
1224
- function isPlainObject$1(value) {
1237
+ function isPlainObject$2(value) {
1225
1238
  if (!isObjectLike(value) ||
1226
1239
  objectToString.call(value) != objectTag || isHostObject(value)) {
1227
1240
  return false;
@@ -1235,67 +1248,67 @@
1235
1248
  Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
1236
1249
  }
1237
1250
 
1238
- var lodash_isplainobject = isPlainObject$1;
1251
+ var lodash_isplainobject = isPlainObject$2;
1239
1252
 
1240
- var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
1253
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
1241
1254
  return (mod && mod.__esModule) ? mod : { "default": mod };
1242
- };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
1243
- const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
1244
- function isObject(val) {
1255
+ };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
1256
+ const lodash_isplainobject_1 = __importDefault$1(lodash_isplainobject);
1257
+ function isObject$1(val) {
1245
1258
  return val !== null
1246
1259
  && typeof val === 'object';
1247
1260
  }
1248
- object.isObject = isObject;
1249
- function isntObject(val) {
1250
- return !isObject(val);
1261
+ object$1.isObject = isObject$1;
1262
+ function isntObject$1(val) {
1263
+ return !isObject$1(val);
1251
1264
  }
1252
- object.isntObject = isntObject;
1253
- function isPlainObject(val) {
1265
+ object$1.isntObject = isntObject$1;
1266
+ function isPlainObject$1(val) {
1254
1267
  return (0, lodash_isplainobject_1.default)(val);
1255
1268
  }
1256
- object.isPlainObject = isPlainObject;
1257
- function isntPlainObject(val) {
1258
- return !isPlainObject(val);
1269
+ object$1.isPlainObject = isPlainObject$1;
1270
+ function isntPlainObject$1(val) {
1271
+ return !isPlainObject$1(val);
1259
1272
  }
1260
- object.isntPlainObject = isntPlainObject;
1261
- function isEmptyObject(val) {
1273
+ object$1.isntPlainObject = isntPlainObject$1;
1274
+ function isEmptyObject$1(val) {
1262
1275
  return Object.keys(val).length === 0;
1263
1276
  }
1264
- object.isEmptyObject = isEmptyObject;
1265
- function isntEmptyObject(val) {
1277
+ object$1.isEmptyObject = isEmptyObject$1;
1278
+ function isntEmptyObject$1(val) {
1266
1279
  return Object.keys(val).length !== 0;
1267
1280
  }
1268
- object.isntEmptyObject = isntEmptyObject;
1281
+ object$1.isntEmptyObject = isntEmptyObject$1;
1269
1282
 
1270
- var number = {};
1283
+ var number$1 = {};
1271
1284
 
1272
- number.isntNumber = number.isNumber = void 0;
1273
- function isNumber(val) {
1285
+ number$1.isntNumber = number$1.isNumber = void 0;
1286
+ function isNumber$1(val) {
1274
1287
  return typeof val === 'number';
1275
1288
  }
1276
- number.isNumber = isNumber;
1277
- function isntNumber(val) {
1278
- return !isNumber(val);
1289
+ number$1.isNumber = isNumber$1;
1290
+ function isntNumber$1(val) {
1291
+ return !isNumber$1(val);
1279
1292
  }
1280
- number.isntNumber = isntNumber;
1293
+ number$1.isntNumber = isntNumber$1;
1281
1294
 
1282
1295
  jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
1283
- const array_1 = array;
1284
- const object_1 = object;
1285
- const string_1 = string;
1286
- const number_1 = number;
1287
- const undefined_1 = _undefined;
1296
+ const array_1$1 = array$1;
1297
+ const object_1$2 = object$1;
1298
+ const string_1$2 = string$1;
1299
+ const number_1$1 = number$1;
1300
+ const undefined_1$2 = _undefined$1;
1288
1301
  function isJsonRpcId(val) {
1289
- return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
1302
+ return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
1290
1303
  }
1291
1304
  function isJsonRpcParams(val) {
1292
- return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
1305
+ return (0, array_1$1.isArray)(val) || (0, object_1$2.isObject)(val);
1293
1306
  }
1294
1307
  function isJsonRpcNotification(val) {
1295
- return (0, object_1.isPlainObject)(val)
1296
- && (0, string_1.isString)(val.jsonrpc)
1297
- && (0, string_1.isString)(val.method)
1298
- && (0, undefined_1.isUndefined)(val.id)
1308
+ return (0, object_1$2.isPlainObject)(val)
1309
+ && (0, string_1$2.isString)(val.jsonrpc)
1310
+ && (0, string_1$2.isString)(val.method)
1311
+ && (0, undefined_1$2.isUndefined)(val.id)
1299
1312
  && isJsonRpcParams(val.params);
1300
1313
  }
1301
1314
  jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
@@ -1304,9 +1317,9 @@
1304
1317
  }
1305
1318
  jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
1306
1319
  function isJsonRpcRequest(val) {
1307
- return (0, object_1.isPlainObject)(val)
1308
- && (0, string_1.isString)(val.jsonrpc)
1309
- && (0, string_1.isString)(val.method)
1320
+ return (0, object_1$2.isPlainObject)(val)
1321
+ && (0, string_1$2.isString)(val.jsonrpc)
1322
+ && (0, string_1$2.isString)(val.method)
1310
1323
  && isJsonRpcId(val.id)
1311
1324
  && isJsonRpcParams(val.params);
1312
1325
  }
@@ -1316,9 +1329,9 @@
1316
1329
  }
1317
1330
  jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
1318
1331
  function isJsonRpcSuccess(val) {
1319
- return (0, object_1.isPlainObject)(val)
1320
- && (0, string_1.isString)(val.jsonrpc)
1321
- && (0, string_1.isString)(val.id)
1332
+ return (0, object_1$2.isPlainObject)(val)
1333
+ && (0, string_1$2.isString)(val.jsonrpc)
1334
+ && (0, string_1$2.isString)(val.id)
1322
1335
  && 'result' in val;
1323
1336
  }
1324
1337
  jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
@@ -1327,8 +1340,8 @@
1327
1340
  }
1328
1341
  jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
1329
1342
  function isJsonRpcError(val) {
1330
- return (0, object_1.isPlainObject)(val)
1331
- && (0, string_1.isString)(val.jsonrpc)
1343
+ return (0, object_1$2.isPlainObject)(val)
1344
+ && (0, string_1$2.isString)(val.jsonrpc)
1332
1345
  && isJsonRpcId(val.id)
1333
1346
  && isJsonRpcErrorObject(val.error);
1334
1347
  }
@@ -1338,16 +1351,16 @@
1338
1351
  }
1339
1352
  jsonRpc.isntJsonRpcError = isntJsonRpcError;
1340
1353
  function isJsonRpcErrorObject(val) {
1341
- return (0, object_1.isPlainObject)(val)
1342
- && (0, number_1.isNumber)(val.code)
1343
- && (0, string_1.isString)(val.message)
1344
- && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
1354
+ return (0, object_1$2.isPlainObject)(val)
1355
+ && (0, number_1$1.isNumber)(val.code)
1356
+ && (0, string_1$2.isString)(val.message)
1357
+ && ((0, undefined_1$2.isUndefined)(val.data) || (0, object_1$2.isObject)(val.data));
1345
1358
  }
1346
1359
 
1347
- var json = {};
1360
+ var json$1 = {};
1348
1361
 
1349
- json.isntJson = json.isJson = void 0;
1350
- function isJson(val) {
1362
+ json$1.isntJson = json$1.isJson = void 0;
1363
+ function isJson$1(val) {
1351
1364
  try {
1352
1365
  JSON.stringify(val);
1353
1366
  return true;
@@ -1356,16 +1369,16 @@
1356
1369
  return false;
1357
1370
  }
1358
1371
  }
1359
- json.isJson = isJson;
1360
- function isntJson(val) {
1361
- return !isntJson();
1372
+ json$1.isJson = isJson$1;
1373
+ function isntJson$1(val) {
1374
+ return !isntJson$1();
1362
1375
  }
1363
- json.isntJson = isntJson;
1376
+ json$1.isntJson = isntJson$1;
1364
1377
 
1365
- var url = {};
1378
+ var url$1 = {};
1366
1379
 
1367
- url.isAbsoluteURL = void 0;
1368
- function isAbsoluteURL(str) {
1380
+ url$1.isAbsoluteURL = void 0;
1381
+ function isAbsoluteURL$1(str) {
1369
1382
  try {
1370
1383
  new URL(str);
1371
1384
  return true;
@@ -1374,7 +1387,7 @@
1374
1387
  return false;
1375
1388
  }
1376
1389
  }
1377
- url.isAbsoluteURL = isAbsoluteURL;
1390
+ url$1.isAbsoluteURL = isAbsoluteURL$1;
1378
1391
 
1379
1392
  (function (exports) {
1380
1393
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -1386,30 +1399,30 @@
1386
1399
  }));
1387
1400
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1388
1401
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1389
- };__exportStar(array, exports);
1390
- __exportStar(asyncIterable, exports);
1391
- __exportStar(bigint, exports);
1392
- __exportStar(boolean, exports);
1393
- __exportStar(char, exports);
1394
- __exportStar(date, exports);
1395
- __exportStar(_enum, exports);
1396
- __exportStar(error, exports);
1397
- __exportStar(falsy, exports);
1398
- __exportStar(_function, exports);
1399
- __exportStar(iterable, exports);
1400
- __exportStar(jsonRpc, exports);
1401
- __exportStar(json, exports);
1402
- __exportStar(_null, exports);
1403
- __exportStar(number, exports);
1404
- __exportStar(object, exports);
1405
- __exportStar(string, exports);
1406
- __exportStar(_undefined, exports);
1407
- __exportStar(url, exports);
1402
+ };__exportStar(array$1, exports);
1403
+ __exportStar(asyncIterable$1, exports);
1404
+ __exportStar(bigint$1, exports);
1405
+ __exportStar(boolean$1, exports);
1406
+ __exportStar(char$1, exports);
1407
+ __exportStar(date$1, exports);
1408
+ __exportStar(_enum$1, exports);
1409
+ __exportStar(error$1, exports);
1410
+ __exportStar(falsy$1, exports);
1411
+ __exportStar(_function$1, exports);
1412
+ __exportStar(iterable$1, exports);
1413
+ __exportStar(jsonRpc, exports);
1414
+ __exportStar(json$1, exports);
1415
+ __exportStar(_null$1, exports);
1416
+ __exportStar(number$1, exports);
1417
+ __exportStar(object$1, exports);
1418
+ __exportStar(string$1, exports);
1419
+ __exportStar(_undefined$1, exports);
1420
+ __exportStar(url$1, exports);
1408
1421
 
1409
- } (es2018$6));
1422
+ } (es2018$7));
1410
1423
 
1411
1424
  chunkByAsync$5.chunkByAsync = void 0;
1412
- const types_1$X = es2018$6;
1425
+ const types_1$X = es2018$7;
1413
1426
  function chunkByAsync$4(iterable, predicate) {
1414
1427
  if ((0, types_1$X.isAsyncIterable)(iterable)) {
1415
1428
  return chunkByAsyncIterable(iterable);
@@ -1470,8 +1483,8 @@
1470
1483
  var chunk$5 = {};
1471
1484
 
1472
1485
  chunk$5.chunk = void 0;
1473
- const go_1$K = es2018$a;
1474
- const errors_1$K = es2018$7;
1486
+ const go_1$K = es2018$b;
1487
+ const errors_1$K = es2018$8;
1475
1488
  function chunk$4(iterable, size) {
1476
1489
  (0, errors_1$K.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1477
1490
  (0, errors_1$K.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -1493,8 +1506,8 @@
1493
1506
  var concatAsync$5 = {};
1494
1507
 
1495
1508
  concatAsync$5.concatAsync = void 0;
1496
- const types_1$W = es2018$6;
1497
- const go_1$J = es2018$a;
1509
+ const types_1$W = es2018$7;
1510
+ const go_1$J = es2018$b;
1498
1511
  function concatAsync$4(iterable, ...otherIterables) {
1499
1512
  return (0, go_1$J.go)(async function* () {
1500
1513
  for (const iter of [iterable, ...otherIterables]) {
@@ -1516,7 +1529,7 @@
1516
1529
  var concat$5 = {};
1517
1530
 
1518
1531
  concat$5.concat = void 0;
1519
- const go_1$I = es2018$a;
1532
+ const go_1$I = es2018$b;
1520
1533
  function concat$4(iterable, ...otherIterables) {
1521
1534
  return (0, go_1$I.go)(function* () {
1522
1535
  for (const iter of [iterable, ...otherIterables]) {
@@ -1545,9 +1558,9 @@
1545
1558
  utils$2.copyIterable = copyIterable$2;
1546
1559
 
1547
1560
  dropAsync$5.dropAsync = void 0;
1548
- const go_1$H = es2018$a;
1561
+ const go_1$H = es2018$b;
1549
1562
  const utils_1$b = utils$2;
1550
- const errors_1$J = es2018$7;
1563
+ const errors_1$J = es2018$8;
1551
1564
  function dropAsync$4(iterable, count) {
1552
1565
  (0, errors_1$J.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1553
1566
  (0, errors_1$J.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1580,9 +1593,9 @@
1580
1593
  var dropRightAsync$5 = {};
1581
1594
 
1582
1595
  dropRightAsync$5.dropRightAsync = void 0;
1583
- const go_1$G = es2018$a;
1596
+ const go_1$G = es2018$b;
1584
1597
  const utils_1$a = utils$2;
1585
- const errors_1$I = es2018$7;
1598
+ const errors_1$I = es2018$8;
1586
1599
  function dropRightAsync$4(iterable, count) {
1587
1600
  (0, errors_1$I.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1588
1601
  (0, errors_1$I.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1608,9 +1621,9 @@
1608
1621
  var dropRight$5 = {};
1609
1622
 
1610
1623
  dropRight$5.dropRight = void 0;
1611
- const go_1$F = es2018$a;
1624
+ const go_1$F = es2018$b;
1612
1625
  const utils_1$9 = utils$2;
1613
- const errors_1$H = es2018$7;
1626
+ const errors_1$H = es2018$8;
1614
1627
  function dropRight$4(iterable, count) {
1615
1628
  (0, errors_1$H.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1616
1629
  (0, errors_1$H.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1626,7 +1639,7 @@
1626
1639
  var dropUntilAsync$5 = {};
1627
1640
 
1628
1641
  dropUntilAsync$5.dropUntilAsync = void 0;
1629
- const types_1$V = es2018$6;
1642
+ const types_1$V = es2018$7;
1630
1643
  function dropUntilAsync$4(iterable, predicate) {
1631
1644
  if ((0, types_1$V.isAsyncIterable)(iterable)) {
1632
1645
  return dropUntilAsyncIterable(iterable);
@@ -1708,9 +1721,9 @@
1708
1721
  var drop$5 = {};
1709
1722
 
1710
1723
  drop$5.drop = void 0;
1711
- const go_1$E = es2018$a;
1724
+ const go_1$E = es2018$b;
1712
1725
  const utils_1$8 = utils$2;
1713
- const errors_1$G = es2018$7;
1726
+ const errors_1$G = es2018$8;
1714
1727
  function drop$4(iterable, count) {
1715
1728
  (0, errors_1$G.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1716
1729
  (0, errors_1$G.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1743,7 +1756,7 @@
1743
1756
  var filterAsync$5 = {};
1744
1757
 
1745
1758
  filterAsync$5.filterAsync = void 0;
1746
- const types_1$U = es2018$6;
1759
+ const types_1$U = es2018$7;
1747
1760
  function filterAsync$4(iterable, predicate) {
1748
1761
  if ((0, types_1$U.isAsyncIterable)(iterable)) {
1749
1762
  return filterAsyncIterable(iterable);
@@ -1790,7 +1803,7 @@
1790
1803
  var flattenByAsync$5 = {};
1791
1804
 
1792
1805
  flattenByAsync$5.flattenByAsync = void 0;
1793
- const types_1$T = es2018$6;
1806
+ const types_1$T = es2018$7;
1794
1807
  function flattenByAsync$4(iterable, predicate) {
1795
1808
  if ((0, types_1$T.isAsyncIterable)(iterable)) {
1796
1809
  return flattenByAsyncIterable(iterable);
@@ -1830,7 +1843,7 @@
1830
1843
 
1831
1844
  flattenDeepAsync$5.flattenDeepAsync = void 0;
1832
1845
  const flatten_by_async_1$2 = flattenByAsync$5;
1833
- const errors_1$F = es2018$7;
1846
+ const errors_1$F = es2018$8;
1834
1847
  function flattenDeepAsync$4(iterable, depth = Infinity) {
1835
1848
  (0, errors_1$F.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1836
1849
  (0, errors_1$F.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1848,7 +1861,7 @@
1848
1861
  var flattenBy$5 = {};
1849
1862
 
1850
1863
  flattenBy$5.flattenBy = void 0;
1851
- const types_1$S = es2018$6;
1864
+ const types_1$S = es2018$7;
1852
1865
  function flattenBy$4(iterable, predicate) {
1853
1866
  return flatten(iterable, 1);
1854
1867
  function* flatten(iterable, level) {
@@ -1871,7 +1884,7 @@
1871
1884
 
1872
1885
  flattenDeep$5.flattenDeep = void 0;
1873
1886
  const flatten_by_1$2 = flattenBy$5;
1874
- const errors_1$E = es2018$7;
1887
+ const errors_1$E = es2018$8;
1875
1888
  function flattenDeep$4(iterable, depth = Infinity) {
1876
1889
  (0, errors_1$E.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1877
1890
  (0, errors_1$E.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1891,7 +1904,7 @@
1891
1904
  var mapAsync$5 = {};
1892
1905
 
1893
1906
  mapAsync$5.mapAsync = void 0;
1894
- const types_1$R = es2018$6;
1907
+ const types_1$R = es2018$7;
1895
1908
  function mapAsync$4(iterable, fn) {
1896
1909
  if ((0, types_1$R.isAsyncIterable)(iterable)) {
1897
1910
  return mapAsyncIterable(iterable);
@@ -1931,8 +1944,8 @@
1931
1944
  var repeatAsync$5 = {};
1932
1945
 
1933
1946
  repeatAsync$5.repeatAsync = void 0;
1934
- const go_1$D = es2018$a;
1935
- const errors_1$D = es2018$7;
1947
+ const go_1$D = es2018$b;
1948
+ const errors_1$D = es2018$8;
1936
1949
  function repeatAsync$4(iterable, times) {
1937
1950
  (0, errors_1$D.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1938
1951
  (0, errors_1$D.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -1966,8 +1979,8 @@
1966
1979
  var repeat$5 = {};
1967
1980
 
1968
1981
  repeat$5.repeat = void 0;
1969
- const go_1$C = es2018$a;
1970
- const errors_1$C = es2018$7;
1982
+ const go_1$C = es2018$b;
1983
+ const errors_1$C = es2018$8;
1971
1984
  function repeat$4(iterable, times) {
1972
1985
  (0, errors_1$C.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1973
1986
  (0, errors_1$C.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -2001,8 +2014,8 @@
2001
2014
  var sliceAsync$5 = {};
2002
2015
 
2003
2016
  sliceAsync$5.sliceAsync = void 0;
2004
- const go_1$B = es2018$a;
2005
- const errors_1$B = es2018$7;
2017
+ const go_1$B = es2018$b;
2018
+ const errors_1$B = es2018$8;
2006
2019
  function sliceAsync$4(iterable, start, end = Infinity) {
2007
2020
  (0, errors_1$B.assert)(Number.isInteger(start), 'The parameter start must be an integer');
2008
2021
  (0, errors_1$B.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -2024,8 +2037,8 @@
2024
2037
  var slice$5 = {};
2025
2038
 
2026
2039
  slice$5.slice = void 0;
2027
- const go_1$A = es2018$a;
2028
- const errors_1$A = es2018$7;
2040
+ const go_1$A = es2018$b;
2041
+ const errors_1$A = es2018$8;
2029
2042
  function slice$4(iterable, start, end = Infinity) {
2030
2043
  (0, errors_1$A.assert)(Number.isInteger(start), 'The parameter start must be an integer');
2031
2044
  (0, errors_1$A.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -2065,7 +2078,7 @@
2065
2078
  var splitByAsync$5 = {};
2066
2079
 
2067
2080
  splitByAsync$5.splitByAsync = void 0;
2068
- const types_1$Q = es2018$6;
2081
+ const types_1$Q = es2018$7;
2069
2082
  function splitByAsync$4(iterable, predicate) {
2070
2083
  if ((0, types_1$Q.isAsyncIterable)(iterable)) {
2071
2084
  return splitByAsyncIterable(iterable);
@@ -2147,8 +2160,8 @@
2147
2160
  var takeAsync$5 = {};
2148
2161
 
2149
2162
  takeAsync$5.takeAsync = void 0;
2150
- const go_1$z = es2018$a;
2151
- const errors_1$z = es2018$7;
2163
+ const go_1$z = es2018$b;
2164
+ const errors_1$z = es2018$8;
2152
2165
  function takeAsync$4(iterable, count) {
2153
2166
  (0, errors_1$z.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2154
2167
  (0, errors_1$z.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2168,8 +2181,8 @@
2168
2181
  var takeRightAsync$5 = {};
2169
2182
 
2170
2183
  takeRightAsync$5.takeRightAsync = void 0;
2171
- const go_1$y = es2018$a;
2172
- const errors_1$y = es2018$7;
2184
+ const go_1$y = es2018$b;
2185
+ const errors_1$y = es2018$8;
2173
2186
  function takeRightAsync$4(iterable, count) {
2174
2187
  (0, errors_1$y.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2175
2188
  (0, errors_1$y.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2198,8 +2211,8 @@
2198
2211
  var takeRight$5 = {};
2199
2212
 
2200
2213
  takeRight$5.takeRight = void 0;
2201
- const go_1$x = es2018$a;
2202
- const errors_1$x = es2018$7;
2214
+ const go_1$x = es2018$b;
2215
+ const errors_1$x = es2018$8;
2203
2216
  function takeRight$4(iterable, count) {
2204
2217
  (0, errors_1$x.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2205
2218
  (0, errors_1$x.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2228,7 +2241,7 @@
2228
2241
  var takeUntilAsync$5 = {};
2229
2242
 
2230
2243
  takeUntilAsync$5.takeUntilAsync = void 0;
2231
- const types_1$P = es2018$6;
2244
+ const types_1$P = es2018$7;
2232
2245
  function takeUntilAsync$4(iterable, predicate) {
2233
2246
  if ((0, types_1$P.isAsyncIterable)(iterable)) {
2234
2247
  return takeUntilAsyncIterable(iterable);
@@ -2274,8 +2287,8 @@
2274
2287
  var take$5 = {};
2275
2288
 
2276
2289
  take$5.take = void 0;
2277
- const go_1$w = es2018$a;
2278
- const errors_1$w = es2018$7;
2290
+ const go_1$w = es2018$b;
2291
+ const errors_1$w = es2018$8;
2279
2292
  function take$4(iterable, count) {
2280
2293
  (0, errors_1$w.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2281
2294
  (0, errors_1$w.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -2295,7 +2308,7 @@
2295
2308
  var tapAsync$5 = {};
2296
2309
 
2297
2310
  tapAsync$5.tapAsync = void 0;
2298
- const types_1$O = es2018$6;
2311
+ const types_1$O = es2018$7;
2299
2312
  function tapAsync$4(iterable, fn) {
2300
2313
  if ((0, types_1$O.isAsyncIterable)(iterable)) {
2301
2314
  return tapAsyncIterable(iterable);
@@ -2378,7 +2391,7 @@
2378
2391
  var uniqByAsync$5 = {};
2379
2392
 
2380
2393
  uniqByAsync$5.uniqByAsync = void 0;
2381
- const types_1$N = es2018$6;
2394
+ const types_1$N = es2018$7;
2382
2395
  function uniqByAsync$4(iterable, fn) {
2383
2396
  if ((0, types_1$N.isAsyncIterable)(iterable)) {
2384
2397
  return uniqByAsyncIterable(iterable);
@@ -2447,7 +2460,7 @@
2447
2460
  var zipAsync$5 = {};
2448
2461
 
2449
2462
  zipAsync$5.zipAsync = void 0;
2450
- const types_1$M = es2018$6;
2463
+ const types_1$M = es2018$7;
2451
2464
  var Kind$2;
2452
2465
  (function (Kind) {
2453
2466
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -2607,7 +2620,7 @@
2607
2620
  var eachAsync$5 = {};
2608
2621
 
2609
2622
  eachAsync$5.eachAsync = void 0;
2610
- const types_1$L = es2018$6;
2623
+ const types_1$L = es2018$7;
2611
2624
  function eachAsync$4(iterable, fn) {
2612
2625
  if ((0, types_1$L.isAsyncIterable)(iterable)) {
2613
2626
  return eachAsyncIterable(iterable);
@@ -2647,7 +2660,7 @@
2647
2660
  var everyAsync$5 = {};
2648
2661
 
2649
2662
  everyAsync$5.everyAsync = void 0;
2650
- const types_1$K = es2018$6;
2663
+ const types_1$K = es2018$7;
2651
2664
  function everyAsync$4(iterable, predicate) {
2652
2665
  if ((0, types_1$K.isAsyncIterable)(iterable)) {
2653
2666
  return everyAsyncIterable(iterable);
@@ -2693,7 +2706,7 @@
2693
2706
  var findAsync$5 = {};
2694
2707
 
2695
2708
  findAsync$5.findAsync = void 0;
2696
- const types_1$J = es2018$6;
2709
+ const types_1$J = es2018$7;
2697
2710
  function findAsync$4(iterable, predicate) {
2698
2711
  if ((0, types_1$J.isAsyncIterable)(iterable)) {
2699
2712
  return findAsyncIterable(iterable);
@@ -2817,7 +2830,7 @@
2817
2830
  var reduceAsync$5 = {};
2818
2831
 
2819
2832
  reduceAsync$5.reduceAsync = void 0;
2820
- const types_1$I = es2018$6;
2833
+ const types_1$I = es2018$7;
2821
2834
  function reduceAsync$4(iterable, fn, initialValue) {
2822
2835
  if ((0, types_1$I.isUndefined)(initialValue)) {
2823
2836
  return reduceAsyncWithoutInitialValue$2(iterable, fn);
@@ -2913,7 +2926,7 @@
2913
2926
  var reduce$5 = {};
2914
2927
 
2915
2928
  reduce$5.reduce = void 0;
2916
- const types_1$H = es2018$6;
2929
+ const types_1$H = es2018$7;
2917
2930
  function reduce$4(iterable, fn, initialValue) {
2918
2931
  if ((0, types_1$H.isUndefined)(initialValue)) {
2919
2932
  return reduceWithoutInitialValue$2(iterable, fn);
@@ -2960,7 +2973,7 @@
2960
2973
  var someAsync$5 = {};
2961
2974
 
2962
2975
  someAsync$5.someAsync = void 0;
2963
- const types_1$G = es2018$6;
2976
+ const types_1$G = es2018$7;
2964
2977
  function someAsync$4(iterable, predicate) {
2965
2978
  if ((0, types_1$G.isAsyncIterable)(iterable)) {
2966
2979
  return someAsyncIterable(iterable);
@@ -3144,7 +3157,7 @@
3144
3157
  };__exportStar(middleware$1, exports);
3145
3158
  __exportStar(output$2, exports);
3146
3159
 
3147
- } (es2018$8));
3160
+ } (es2018$9));
3148
3161
 
3149
3162
  var getErrorNames$3 = {};
3150
3163
 
@@ -3162,7 +3175,7 @@
3162
3175
  traverseErrorPrototypeChain$3.traverseErrorPrototypeChain = traverseErrorPrototypeChain$2;
3163
3176
 
3164
3177
  getErrorNames$3.getErrorNames = void 0;
3165
- const types_1$F = es2018$6;
3178
+ const types_1$F = es2018$7;
3166
3179
  const traverse_error_prototype_chain_1$1 = traverseErrorPrototypeChain$3;
3167
3180
  function* getErrorNames$2(err) {
3168
3181
  var _a;
@@ -3183,7 +3196,7 @@
3183
3196
  var serializableError$1 = {};
3184
3197
 
3185
3198
  serializableError$1.isSerializableError = void 0;
3186
- const types_1$E = es2018$6;
3199
+ const types_1$E = es2018$7;
3187
3200
  function isSerializableError$1(val) {
3188
3201
  return (0, types_1$E.isObject)(val)
3189
3202
  && (0, types_1$E.isString)(val.name)
@@ -3194,9 +3207,9 @@
3194
3207
  serializableError$1.isSerializableError = isSerializableError$1;
3195
3208
 
3196
3209
  customError$1.CustomError = void 0;
3197
- const iterable_operator_1$3 = es2018$8;
3210
+ const iterable_operator_1$3 = es2018$9;
3198
3211
  const get_error_names_1$3 = getErrorNames$3;
3199
- const types_1$D = es2018$6;
3212
+ const types_1$D = es2018$7;
3200
3213
  const serializable_error_1$1 = serializableError$1;
3201
3214
  class CustomError$1 extends Error {
3202
3215
  get name() {
@@ -3232,7 +3245,7 @@
3232
3245
 
3233
3246
  normalize$3.normalize = void 0;
3234
3247
  const get_error_names_1$2 = getErrorNames$3;
3235
- const iterable_operator_1$2 = es2018$8;
3248
+ const iterable_operator_1$2 = es2018$9;
3236
3249
  function normalize$2(err) {
3237
3250
  var _a;
3238
3251
  const [name, ...ancestors] = (0, iterable_operator_1$2.toArray)((0, get_error_names_1$2.getErrorNames)(err));
@@ -3247,7 +3260,7 @@
3247
3260
 
3248
3261
  var hydrate$3 = {};
3249
3262
 
3250
- var es2018$5 = {};
3263
+ var es2018$6 = {};
3251
3264
 
3252
3265
  var pass$3 = {};
3253
3266
 
@@ -3267,10 +3280,10 @@
3267
3280
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3268
3281
  };__exportStar(pass$3, exports);
3269
3282
 
3270
- } (es2018$5));
3283
+ } (es2018$6));
3271
3284
 
3272
3285
  hydrate$3.hydrate = void 0;
3273
- const pass_1$1 = es2018$5;
3286
+ const pass_1$1 = es2018$6;
3274
3287
  function hydrate$2(err) {
3275
3288
  var _a;
3276
3289
  const errorNames = [err.name, ...err.ancestors]
@@ -3324,11 +3337,11 @@
3324
3337
  __exportStar(getErrorNames$3, exports);
3325
3338
  __exportStar(traverseErrorPrototypeChain$3, exports);
3326
3339
 
3327
- } (es2018$9));
3340
+ } (es2018$a));
3328
3341
 
3329
3342
  chunkAsync$5.chunkAsync = void 0;
3330
- const go_1$v = es2018$a;
3331
- const errors_1$v = es2018$9;
3343
+ const go_1$v = es2018$b;
3344
+ const errors_1$v = es2018$a;
3332
3345
  function chunkAsync$2(iterable, size) {
3333
3346
  (0, errors_1$v.assert)(Number.isInteger(size), 'The parameter size must be an integer');
3334
3347
  (0, errors_1$v.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -3350,7 +3363,7 @@
3350
3363
  var chunkByAsync$3 = {};
3351
3364
 
3352
3365
  chunkByAsync$3.chunkByAsync = void 0;
3353
- const types_1$C = es2018$6;
3366
+ const types_1$C = es2018$7;
3354
3367
  function chunkByAsync$2(iterable, predicate) {
3355
3368
  if ((0, types_1$C.isAsyncIterable)(iterable)) {
3356
3369
  return chunkByAsyncIterable(iterable);
@@ -3411,8 +3424,8 @@
3411
3424
  var chunk$3 = {};
3412
3425
 
3413
3426
  chunk$3.chunk = void 0;
3414
- const go_1$u = es2018$a;
3415
- const errors_1$u = es2018$9;
3427
+ const go_1$u = es2018$b;
3428
+ const errors_1$u = es2018$a;
3416
3429
  function chunk$2(iterable, size) {
3417
3430
  (0, errors_1$u.assert)(Number.isInteger(size), 'The parameter size must be an integer');
3418
3431
  (0, errors_1$u.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -3434,8 +3447,8 @@
3434
3447
  var concatAsync$3 = {};
3435
3448
 
3436
3449
  concatAsync$3.concatAsync = void 0;
3437
- const types_1$B = es2018$6;
3438
- const go_1$t = es2018$a;
3450
+ const types_1$B = es2018$7;
3451
+ const go_1$t = es2018$b;
3439
3452
  function concatAsync$2(iterable, ...otherIterables) {
3440
3453
  return (0, go_1$t.go)(async function* () {
3441
3454
  for (const iter of [iterable, ...otherIterables]) {
@@ -3457,7 +3470,7 @@
3457
3470
  var concat$3 = {};
3458
3471
 
3459
3472
  concat$3.concat = void 0;
3460
- const go_1$s = es2018$a;
3473
+ const go_1$s = es2018$b;
3461
3474
  function concat$2(iterable, ...otherIterables) {
3462
3475
  return (0, go_1$s.go)(function* () {
3463
3476
  for (const iter of [iterable, ...otherIterables]) {
@@ -3486,9 +3499,9 @@
3486
3499
  utils$1.copyIterable = copyIterable$1;
3487
3500
 
3488
3501
  dropAsync$3.dropAsync = void 0;
3489
- const go_1$r = es2018$a;
3502
+ const go_1$r = es2018$b;
3490
3503
  const utils_1$7 = utils$1;
3491
- const errors_1$t = es2018$9;
3504
+ const errors_1$t = es2018$a;
3492
3505
  function dropAsync$2(iterable, count) {
3493
3506
  (0, errors_1$t.assert)(Number.isInteger(count), 'The parameter count must be an integer');
3494
3507
  (0, errors_1$t.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -3521,9 +3534,9 @@
3521
3534
  var dropRightAsync$3 = {};
3522
3535
 
3523
3536
  dropRightAsync$3.dropRightAsync = void 0;
3524
- const go_1$q = es2018$a;
3537
+ const go_1$q = es2018$b;
3525
3538
  const utils_1$6 = utils$1;
3526
- const errors_1$s = es2018$9;
3539
+ const errors_1$s = es2018$a;
3527
3540
  function dropRightAsync$2(iterable, count) {
3528
3541
  (0, errors_1$s.assert)(Number.isInteger(count), 'The parameter count must be an integer');
3529
3542
  (0, errors_1$s.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -3549,9 +3562,9 @@
3549
3562
  var dropRight$3 = {};
3550
3563
 
3551
3564
  dropRight$3.dropRight = void 0;
3552
- const go_1$p = es2018$a;
3565
+ const go_1$p = es2018$b;
3553
3566
  const utils_1$5 = utils$1;
3554
- const errors_1$r = es2018$9;
3567
+ const errors_1$r = es2018$a;
3555
3568
  function dropRight$2(iterable, count) {
3556
3569
  (0, errors_1$r.assert)(Number.isInteger(count), 'The parameter count must be an integer');
3557
3570
  (0, errors_1$r.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -3567,7 +3580,7 @@
3567
3580
  var dropUntilAsync$3 = {};
3568
3581
 
3569
3582
  dropUntilAsync$3.dropUntilAsync = void 0;
3570
- const types_1$A = es2018$6;
3583
+ const types_1$A = es2018$7;
3571
3584
  function dropUntilAsync$2(iterable, predicate) {
3572
3585
  if ((0, types_1$A.isAsyncIterable)(iterable)) {
3573
3586
  return dropUntilAsyncIterable(iterable);
@@ -3649,9 +3662,9 @@
3649
3662
  var drop$3 = {};
3650
3663
 
3651
3664
  drop$3.drop = void 0;
3652
- const go_1$o = es2018$a;
3665
+ const go_1$o = es2018$b;
3653
3666
  const utils_1$4 = utils$1;
3654
- const errors_1$q = es2018$9;
3667
+ const errors_1$q = es2018$a;
3655
3668
  function drop$2(iterable, count) {
3656
3669
  (0, errors_1$q.assert)(Number.isInteger(count), 'The parameter count must be an integer');
3657
3670
  (0, errors_1$q.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -3684,7 +3697,7 @@
3684
3697
  var filterAsync$3 = {};
3685
3698
 
3686
3699
  filterAsync$3.filterAsync = void 0;
3687
- const types_1$z = es2018$6;
3700
+ const types_1$z = es2018$7;
3688
3701
  function filterAsync$2(iterable, predicate) {
3689
3702
  if ((0, types_1$z.isAsyncIterable)(iterable)) {
3690
3703
  return filterAsyncIterable(iterable);
@@ -3731,7 +3744,7 @@
3731
3744
  var flattenByAsync$3 = {};
3732
3745
 
3733
3746
  flattenByAsync$3.flattenByAsync = void 0;
3734
- const types_1$y = es2018$6;
3747
+ const types_1$y = es2018$7;
3735
3748
  function flattenByAsync$2(iterable, predicate) {
3736
3749
  if ((0, types_1$y.isAsyncIterable)(iterable)) {
3737
3750
  return flattenByAsyncIterable(iterable);
@@ -3771,7 +3784,7 @@
3771
3784
 
3772
3785
  flattenDeepAsync$3.flattenDeepAsync = void 0;
3773
3786
  const flatten_by_async_1$1 = flattenByAsync$3;
3774
- const errors_1$p = es2018$9;
3787
+ const errors_1$p = es2018$a;
3775
3788
  function flattenDeepAsync$2(iterable, depth = Infinity) {
3776
3789
  (0, errors_1$p.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
3777
3790
  (0, errors_1$p.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -3789,7 +3802,7 @@
3789
3802
  var flattenBy$3 = {};
3790
3803
 
3791
3804
  flattenBy$3.flattenBy = void 0;
3792
- const types_1$x = es2018$6;
3805
+ const types_1$x = es2018$7;
3793
3806
  function flattenBy$2(iterable, predicate) {
3794
3807
  return flatten(iterable, 1);
3795
3808
  function* flatten(iterable, level) {
@@ -3812,7 +3825,7 @@
3812
3825
 
3813
3826
  flattenDeep$3.flattenDeep = void 0;
3814
3827
  const flatten_by_1$1 = flattenBy$3;
3815
- const errors_1$o = es2018$9;
3828
+ const errors_1$o = es2018$a;
3816
3829
  function flattenDeep$2(iterable, depth = Infinity) {
3817
3830
  (0, errors_1$o.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
3818
3831
  (0, errors_1$o.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -3832,7 +3845,7 @@
3832
3845
  var mapAsync$3 = {};
3833
3846
 
3834
3847
  mapAsync$3.mapAsync = void 0;
3835
- const types_1$w = es2018$6;
3848
+ const types_1$w = es2018$7;
3836
3849
  function mapAsync$2(iterable, fn) {
3837
3850
  if ((0, types_1$w.isAsyncIterable)(iterable)) {
3838
3851
  return mapAsyncIterable(iterable);
@@ -3872,8 +3885,8 @@
3872
3885
  var repeatAsync$3 = {};
3873
3886
 
3874
3887
  repeatAsync$3.repeatAsync = void 0;
3875
- const go_1$n = es2018$a;
3876
- const errors_1$n = es2018$9;
3888
+ const go_1$n = es2018$b;
3889
+ const errors_1$n = es2018$a;
3877
3890
  function repeatAsync$2(iterable, times) {
3878
3891
  (0, errors_1$n.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
3879
3892
  (0, errors_1$n.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -3907,8 +3920,8 @@
3907
3920
  var repeat$3 = {};
3908
3921
 
3909
3922
  repeat$3.repeat = void 0;
3910
- const go_1$m = es2018$a;
3911
- const errors_1$m = es2018$9;
3923
+ const go_1$m = es2018$b;
3924
+ const errors_1$m = es2018$a;
3912
3925
  function repeat$2(iterable, times) {
3913
3926
  (0, errors_1$m.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
3914
3927
  (0, errors_1$m.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -3942,8 +3955,8 @@
3942
3955
  var sliceAsync$3 = {};
3943
3956
 
3944
3957
  sliceAsync$3.sliceAsync = void 0;
3945
- const go_1$l = es2018$a;
3946
- const errors_1$l = es2018$9;
3958
+ const go_1$l = es2018$b;
3959
+ const errors_1$l = es2018$a;
3947
3960
  function sliceAsync$2(iterable, start, end = Infinity) {
3948
3961
  (0, errors_1$l.assert)(Number.isInteger(start), 'The parameter start must be an integer');
3949
3962
  (0, errors_1$l.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -3965,8 +3978,8 @@
3965
3978
  var slice$3 = {};
3966
3979
 
3967
3980
  slice$3.slice = void 0;
3968
- const go_1$k = es2018$a;
3969
- const errors_1$k = es2018$9;
3981
+ const go_1$k = es2018$b;
3982
+ const errors_1$k = es2018$a;
3970
3983
  function slice$2(iterable, start, end = Infinity) {
3971
3984
  (0, errors_1$k.assert)(Number.isInteger(start), 'The parameter start must be an integer');
3972
3985
  (0, errors_1$k.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -4006,7 +4019,7 @@
4006
4019
  var splitByAsync$3 = {};
4007
4020
 
4008
4021
  splitByAsync$3.splitByAsync = void 0;
4009
- const types_1$v = es2018$6;
4022
+ const types_1$v = es2018$7;
4010
4023
  function splitByAsync$2(iterable, predicate) {
4011
4024
  if ((0, types_1$v.isAsyncIterable)(iterable)) {
4012
4025
  return splitByAsyncIterable(iterable);
@@ -4088,8 +4101,8 @@
4088
4101
  var takeAsync$3 = {};
4089
4102
 
4090
4103
  takeAsync$3.takeAsync = void 0;
4091
- const go_1$j = es2018$a;
4092
- const errors_1$j = es2018$9;
4104
+ const go_1$j = es2018$b;
4105
+ const errors_1$j = es2018$a;
4093
4106
  function takeAsync$2(iterable, count) {
4094
4107
  (0, errors_1$j.assert)(Number.isInteger(count), 'The parameter count must be an integer');
4095
4108
  (0, errors_1$j.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -4109,8 +4122,8 @@
4109
4122
  var takeRightAsync$3 = {};
4110
4123
 
4111
4124
  takeRightAsync$3.takeRightAsync = void 0;
4112
- const go_1$i = es2018$a;
4113
- const errors_1$i = es2018$9;
4125
+ const go_1$i = es2018$b;
4126
+ const errors_1$i = es2018$a;
4114
4127
  function takeRightAsync$2(iterable, count) {
4115
4128
  (0, errors_1$i.assert)(Number.isInteger(count), 'The parameter count must be an integer');
4116
4129
  (0, errors_1$i.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -4139,8 +4152,8 @@
4139
4152
  var takeRight$3 = {};
4140
4153
 
4141
4154
  takeRight$3.takeRight = void 0;
4142
- const go_1$h = es2018$a;
4143
- const errors_1$h = es2018$9;
4155
+ const go_1$h = es2018$b;
4156
+ const errors_1$h = es2018$a;
4144
4157
  function takeRight$2(iterable, count) {
4145
4158
  (0, errors_1$h.assert)(Number.isInteger(count), 'The parameter count must be an integer');
4146
4159
  (0, errors_1$h.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -4169,7 +4182,7 @@
4169
4182
  var takeUntilAsync$3 = {};
4170
4183
 
4171
4184
  takeUntilAsync$3.takeUntilAsync = void 0;
4172
- const types_1$u = es2018$6;
4185
+ const types_1$u = es2018$7;
4173
4186
  function takeUntilAsync$2(iterable, predicate) {
4174
4187
  if ((0, types_1$u.isAsyncIterable)(iterable)) {
4175
4188
  return takeUntilAsyncIterable(iterable);
@@ -4215,8 +4228,8 @@
4215
4228
  var take$3 = {};
4216
4229
 
4217
4230
  take$3.take = void 0;
4218
- const go_1$g = es2018$a;
4219
- const errors_1$g = es2018$9;
4231
+ const go_1$g = es2018$b;
4232
+ const errors_1$g = es2018$a;
4220
4233
  function take$2(iterable, count) {
4221
4234
  (0, errors_1$g.assert)(Number.isInteger(count), 'The parameter count must be an integer');
4222
4235
  (0, errors_1$g.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -4236,7 +4249,7 @@
4236
4249
  var tapAsync$3 = {};
4237
4250
 
4238
4251
  tapAsync$3.tapAsync = void 0;
4239
- const types_1$t = es2018$6;
4252
+ const types_1$t = es2018$7;
4240
4253
  function tapAsync$2(iterable, fn) {
4241
4254
  if ((0, types_1$t.isAsyncIterable)(iterable)) {
4242
4255
  return tapAsyncIterable(iterable);
@@ -4319,7 +4332,7 @@
4319
4332
  var uniqByAsync$3 = {};
4320
4333
 
4321
4334
  uniqByAsync$3.uniqByAsync = void 0;
4322
- const types_1$s = es2018$6;
4335
+ const types_1$s = es2018$7;
4323
4336
  function uniqByAsync$2(iterable, fn) {
4324
4337
  if ((0, types_1$s.isAsyncIterable)(iterable)) {
4325
4338
  return uniqByAsyncIterable(iterable);
@@ -4388,7 +4401,7 @@
4388
4401
  var zipAsync$3 = {};
4389
4402
 
4390
4403
  zipAsync$3.zipAsync = void 0;
4391
- const types_1$r = es2018$6;
4404
+ const types_1$r = es2018$7;
4392
4405
  var Kind$1;
4393
4406
  (function (Kind) {
4394
4407
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -4548,7 +4561,7 @@
4548
4561
  var eachAsync$3 = {};
4549
4562
 
4550
4563
  eachAsync$3.eachAsync = void 0;
4551
- const types_1$q = es2018$6;
4564
+ const types_1$q = es2018$7;
4552
4565
  function eachAsync$2(iterable, fn) {
4553
4566
  if ((0, types_1$q.isAsyncIterable)(iterable)) {
4554
4567
  return eachAsyncIterable(iterable);
@@ -4588,7 +4601,7 @@
4588
4601
  var everyAsync$3 = {};
4589
4602
 
4590
4603
  everyAsync$3.everyAsync = void 0;
4591
- const types_1$p = es2018$6;
4604
+ const types_1$p = es2018$7;
4592
4605
  function everyAsync$2(iterable, predicate) {
4593
4606
  if ((0, types_1$p.isAsyncIterable)(iterable)) {
4594
4607
  return everyAsyncIterable(iterable);
@@ -4634,7 +4647,7 @@
4634
4647
  var findAsync$3 = {};
4635
4648
 
4636
4649
  findAsync$3.findAsync = void 0;
4637
- const types_1$o = es2018$6;
4650
+ const types_1$o = es2018$7;
4638
4651
  function findAsync$2(iterable, predicate) {
4639
4652
  if ((0, types_1$o.isAsyncIterable)(iterable)) {
4640
4653
  return findAsyncIterable(iterable);
@@ -4758,7 +4771,7 @@
4758
4771
  var reduceAsync$3 = {};
4759
4772
 
4760
4773
  reduceAsync$3.reduceAsync = void 0;
4761
- const types_1$n = es2018$6;
4774
+ const types_1$n = es2018$7;
4762
4775
  function reduceAsync$2(iterable, fn, initialValue) {
4763
4776
  if ((0, types_1$n.isUndefined)(initialValue)) {
4764
4777
  return reduceAsyncWithoutInitialValue$1(iterable, fn);
@@ -4854,7 +4867,7 @@
4854
4867
  var reduce$3 = {};
4855
4868
 
4856
4869
  reduce$3.reduce = void 0;
4857
- const types_1$m = es2018$6;
4870
+ const types_1$m = es2018$7;
4858
4871
  function reduce$2(iterable, fn, initialValue) {
4859
4872
  if ((0, types_1$m.isUndefined)(initialValue)) {
4860
4873
  return reduceWithoutInitialValue$1(iterable, fn);
@@ -4901,7 +4914,7 @@
4901
4914
  var someAsync$3 = {};
4902
4915
 
4903
4916
  someAsync$3.someAsync = void 0;
4904
- const types_1$l = es2018$6;
4917
+ const types_1$l = es2018$7;
4905
4918
  function someAsync$2(iterable, predicate) {
4906
4919
  if ((0, types_1$l.isAsyncIterable)(iterable)) {
4907
4920
  return someAsyncIterable(iterable);
@@ -5085,7 +5098,7 @@
5085
5098
  };__exportStar(middleware$2, exports);
5086
5099
  __exportStar(output$1, exports);
5087
5100
 
5088
- } (es2018$b));
5101
+ } (es2018$c));
5089
5102
 
5090
5103
  var getErrorNames$1 = {};
5091
5104
 
@@ -5103,7 +5116,7 @@
5103
5116
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
5104
5117
 
5105
5118
  getErrorNames$1.getErrorNames = void 0;
5106
- const types_1$k = es2018$6;
5119
+ const types_1$k = es2018$7;
5107
5120
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
5108
5121
  function* getErrorNames(err) {
5109
5122
  var _a;
@@ -5124,7 +5137,7 @@
5124
5137
  var serializableError = {};
5125
5138
 
5126
5139
  serializableError.isSerializableError = void 0;
5127
- const types_1$j = es2018$6;
5140
+ const types_1$j = es2018$7;
5128
5141
  function isSerializableError(val) {
5129
5142
  return (0, types_1$j.isObject)(val)
5130
5143
  && (0, types_1$j.isString)(val.name)
@@ -5135,116 +5148,518 @@
5135
5148
  serializableError.isSerializableError = isSerializableError;
5136
5149
 
5137
5150
  customError$2.CustomError = void 0;
5138
- const iterable_operator_1$1 = es2018$b;
5151
+ const iterable_operator_1$1 = es2018$c;
5139
5152
  const get_error_names_1$1 = getErrorNames$1;
5140
- const types_1$i = es2018$6;
5153
+ const types_1$i = es2018$7;
5141
5154
  const serializable_error_1 = serializableError;
5142
5155
  class CustomError extends Error {
5143
5156
  get name() {
5144
5157
  var _a, _b;
5145
5158
  return (_b = (_a = (0, iterable_operator_1$1.first)((0, get_error_names_1$1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
5146
5159
  }
5147
- static [Symbol.hasInstance](instance) {
5148
- var _a;
5149
- if ((0, types_1$i.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
5150
- const reversedClassNames = [
5151
- (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
5152
- ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
5153
- ].reverse();
5154
- const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
5155
- return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
5156
- }
5157
- else {
5158
- return false;
5159
- }
5160
+ static [Symbol.hasInstance](instance) {
5161
+ var _a;
5162
+ if ((0, types_1$i.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
5163
+ const reversedClassNames = [
5164
+ (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
5165
+ ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
5166
+ ].reverse();
5167
+ const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
5168
+ return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
5169
+ }
5170
+ else {
5171
+ return false;
5172
+ }
5173
+ }
5174
+ }
5175
+ customError$2.CustomError = CustomError;
5176
+
5177
+ var assertionError = {};
5178
+
5179
+ assertionError.AssertionError = void 0;
5180
+ const custom_error_1 = customError$2;
5181
+ class AssertionError extends custom_error_1.CustomError {
5182
+ }
5183
+ assertionError.AssertionError = AssertionError;
5184
+
5185
+ var normalize$1 = {};
5186
+
5187
+ normalize$1.normalize = void 0;
5188
+ const get_error_names_1 = getErrorNames$1;
5189
+ const iterable_operator_1 = es2018$c;
5190
+ function normalize(err) {
5191
+ var _a;
5192
+ const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
5193
+ return {
5194
+ name,
5195
+ ancestors,
5196
+ message: err.message,
5197
+ stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
5198
+ };
5199
+ }
5200
+ normalize$1.normalize = normalize;
5201
+
5202
+ var hydrate$1 = {};
5203
+
5204
+ var es2018$5 = {};
5205
+
5206
+ var pass$1 = {};
5207
+
5208
+ pass$1.pass = void 0;
5209
+ function pass() { }
5210
+ pass$1.pass = pass;
5211
+
5212
+ (function (exports) {
5213
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5214
+ if (k2 === undefined) k2 = k;
5215
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5216
+ }) : (function(o, m, k, k2) {
5217
+ if (k2 === undefined) k2 = k;
5218
+ o[k2] = m[k];
5219
+ }));
5220
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
5221
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5222
+ };__exportStar(pass$1, exports);
5223
+
5224
+ } (es2018$5));
5225
+
5226
+ hydrate$1.hydrate = void 0;
5227
+ const pass_1 = es2018$5;
5228
+ function hydrate(err) {
5229
+ var _a;
5230
+ const errorNames = [err.name, ...err.ancestors]
5231
+ .slice(0, -1)
5232
+ .reverse();
5233
+ let errorConstructor = Error;
5234
+ for (const name of errorNames) {
5235
+ errorConstructor = createChildErrorConstructor(errorConstructor, name);
5236
+ }
5237
+ const result = new errorConstructor();
5238
+ result.name = err.name;
5239
+ result.message = err.message;
5240
+ result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
5241
+ return result;
5242
+ }
5243
+ hydrate$1.hydrate = hydrate;
5244
+ function createChildErrorConstructor(parentErrorConstructor, name) {
5245
+ const constructor = function () { (0, pass_1.pass)(); };
5246
+ constructor.prototype = Object.create(parentErrorConstructor.prototype);
5247
+ constructor.prototype.constructor = constructor;
5248
+ Object.defineProperty(constructor, 'name', { value: name });
5249
+ return constructor;
5250
+ }
5251
+
5252
+ var assert$1 = {};
5253
+
5254
+ assert$1.assert = void 0;
5255
+ const assertion_error_1 = assertionError;
5256
+ function assert(condition, message) {
5257
+ if (!condition)
5258
+ throw new assertion_error_1.AssertionError(message);
5259
+ }
5260
+ assert$1.assert = assert;
5261
+
5262
+ (function (exports) {
5263
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5264
+ if (k2 === undefined) k2 = k;
5265
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5266
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5267
+ desc = { enumerable: true, get: function() { return m[k]; } };
5268
+ }
5269
+ Object.defineProperty(o, k2, desc);
5270
+ }) : (function(o, m, k, k2) {
5271
+ if (k2 === undefined) k2 = k;
5272
+ o[k2] = m[k];
5273
+ }));
5274
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
5275
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5276
+ };__exportStar(customError$2, exports);
5277
+ __exportStar(assertionError, exports);
5278
+ __exportStar(serializableError, exports);
5279
+ __exportStar(normalize$1, exports);
5280
+ __exportStar(hydrate$1, exports);
5281
+ __exportStar(assert$1, exports);
5282
+ __exportStar(getErrorNames$1, exports);
5283
+ __exportStar(traverseErrorPrototypeChain$1, exports);
5284
+
5285
+ } (es2018$d));
5286
+
5287
+ var es2018$4 = {};
5288
+
5289
+ var middleware = {};
5290
+
5291
+ var chunkAsync$1 = {};
5292
+
5293
+ var es2018$3 = {};
5294
+
5295
+ var go$1 = {};
5296
+
5297
+ go$1.go = void 0;
5298
+ function go(fn) {
5299
+ return fn();
5300
+ }
5301
+ go$1.go = go;
5302
+
5303
+ (function (exports) {
5304
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5305
+ if (k2 === undefined) k2 = k;
5306
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5307
+ }) : (function(o, m, k, k2) {
5308
+ if (k2 === undefined) k2 = k;
5309
+ o[k2] = m[k];
5310
+ }));
5311
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
5312
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5313
+ };__exportStar(go$1, exports);
5314
+
5315
+ } (es2018$3));
5316
+
5317
+ chunkAsync$1.chunkAsync = void 0;
5318
+ const go_1$f = es2018$3;
5319
+ const errors_1$f = es2018$d;
5320
+ function chunkAsync(iterable, size) {
5321
+ (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
5322
+ (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
5323
+ return (0, go_1$f.go)(async function* () {
5324
+ let buffer = [];
5325
+ for await (const element of iterable) {
5326
+ buffer.push(element);
5327
+ if (buffer.length >= size) {
5328
+ yield buffer;
5329
+ buffer = [];
5330
+ }
5331
+ }
5332
+ if (buffer.length)
5333
+ yield buffer;
5334
+ });
5335
+ }
5336
+ chunkAsync$1.chunkAsync = chunkAsync;
5337
+
5338
+ var chunkByAsync$1 = {};
5339
+
5340
+ var es2018$2 = {};
5341
+
5342
+ var array = {};
5343
+
5344
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
5345
+ function isArray(val) {
5346
+ return Array.isArray(val);
5347
+ }
5348
+ array.isArray = isArray;
5349
+ function isntArray(val) {
5350
+ return !isArray(val);
5351
+ }
5352
+ array.isntArray = isntArray;
5353
+ function isEmptyArray(val) {
5354
+ return val.length === 0;
5355
+ }
5356
+ array.isEmptyArray = isEmptyArray;
5357
+ function isntEmptyArray(val) {
5358
+ return val.length !== 0;
5359
+ }
5360
+ array.isntEmptyArray = isntEmptyArray;
5361
+
5362
+ var asyncIterable = {};
5363
+
5364
+ var _null = {};
5365
+
5366
+ _null.isntNull = _null.isNull = void 0;
5367
+ function isNull(val) {
5368
+ return val === null;
5369
+ }
5370
+ _null.isNull = isNull;
5371
+ function isntNull(val) {
5372
+ return !isNull(val);
5373
+ }
5374
+ _null.isntNull = isntNull;
5375
+
5376
+ var _undefined = {};
5377
+
5378
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
5379
+ function isUndefined(val) {
5380
+ return val === undefined;
5381
+ }
5382
+ _undefined.isUndefined = isUndefined;
5383
+ function isntUndefined(val) {
5384
+ return !isUndefined(val);
5385
+ }
5386
+ _undefined.isntUndefined = isntUndefined;
5387
+
5388
+ var _function = {};
5389
+
5390
+ _function.isntFunction = _function.isFunction = void 0;
5391
+ function isFunction$1(val) {
5392
+ return typeof val === 'function';
5393
+ }
5394
+ _function.isFunction = isFunction$1;
5395
+ function isntFunction(val) {
5396
+ return !isFunction$1(val);
5397
+ }
5398
+ _function.isntFunction = isntFunction;
5399
+
5400
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
5401
+ const null_1$2 = _null;
5402
+ const undefined_1$1 = _undefined;
5403
+ const function_1$2 = _function;
5404
+ function isAsyncIterable(val) {
5405
+ return (0, null_1$2.isntNull)(val)
5406
+ && (0, undefined_1$1.isntUndefined)(val)
5407
+ && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
5408
+ }
5409
+ asyncIterable.isAsyncIterable = isAsyncIterable;
5410
+ function isntAsyncIterable(val) {
5411
+ return !isAsyncIterable(val);
5412
+ }
5413
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
5414
+
5415
+ var bigint = {};
5416
+
5417
+ bigint.isntBigInt = bigint.isBigInt = void 0;
5418
+ function isBigInt(val) {
5419
+ return typeof val === 'bigint';
5420
+ }
5421
+ bigint.isBigInt = isBigInt;
5422
+ function isntBigInt(val) {
5423
+ return !isBigInt(val);
5424
+ }
5425
+ bigint.isntBigInt = isntBigInt;
5426
+
5427
+ var boolean = {};
5428
+
5429
+ boolean.isntBoolean = boolean.isBoolean = void 0;
5430
+ function isBoolean(val) {
5431
+ return typeof val === 'boolean';
5432
+ }
5433
+ boolean.isBoolean = isBoolean;
5434
+ function isntBoolean(val) {
5435
+ return !isBoolean(val);
5436
+ }
5437
+ boolean.isntBoolean = isntBoolean;
5438
+
5439
+ var char = {};
5440
+
5441
+ var string = {};
5442
+
5443
+ string.isntString = string.isString = void 0;
5444
+ function isString(val) {
5445
+ return typeof val === 'string';
5446
+ }
5447
+ string.isString = isString;
5448
+ function isntString(val) {
5449
+ return !isString(val);
5450
+ }
5451
+ string.isntString = isntString;
5452
+
5453
+ char.isntChar = char.isChar = void 0;
5454
+ const string_1$1 = string;
5455
+ function isChar(val) {
5456
+ return (0, string_1$1.isString)(val)
5457
+ && val.length === 1;
5458
+ }
5459
+ char.isChar = isChar;
5460
+ function isntChar(val) {
5461
+ return !isChar(val);
5462
+ }
5463
+ char.isntChar = isntChar;
5464
+
5465
+ var date = {};
5466
+
5467
+ date.isntDate = date.isDate = void 0;
5468
+ function isDate(val) {
5469
+ return val instanceof Date;
5470
+ }
5471
+ date.isDate = isDate;
5472
+ function isntDate(val) {
5473
+ return !isDate(val);
5474
+ }
5475
+ date.isntDate = isntDate;
5476
+
5477
+ var _enum = {};
5478
+
5479
+ _enum.inEnum = void 0;
5480
+ function inEnum(val, _enum) {
5481
+ return Object.values(_enum).includes(val);
5482
+ }
5483
+ _enum.inEnum = inEnum;
5484
+
5485
+ var error = {};
5486
+
5487
+ error.isntError = error.isError = void 0;
5488
+ function isError(val) {
5489
+ return val instanceof Error;
5490
+ }
5491
+ error.isError = isError;
5492
+ function isntError(val) {
5493
+ return !isError(val);
5494
+ }
5495
+ error.isntError = isntError;
5496
+
5497
+ var falsy = {};
5498
+
5499
+ falsy.isntFalsy = falsy.isFalsy = void 0;
5500
+ function isFalsy(val) {
5501
+ return !val;
5502
+ }
5503
+ falsy.isFalsy = isFalsy;
5504
+ function isntFalsy(val) {
5505
+ return !isFalsy(val);
5506
+ }
5507
+ falsy.isntFalsy = isntFalsy;
5508
+
5509
+ var iterable = {};
5510
+
5511
+ iterable.isntIterable = iterable.isIterable = void 0;
5512
+ const null_1$1 = _null;
5513
+ const undefined_1 = _undefined;
5514
+ const function_1$1 = _function;
5515
+ function isIterable(val) {
5516
+ return (0, null_1$1.isntNull)(val)
5517
+ && (0, undefined_1.isntUndefined)(val)
5518
+ && (0, function_1$1.isFunction)(val[Symbol.iterator]);
5519
+ }
5520
+ iterable.isIterable = isIterable;
5521
+ function isntIterable(val) {
5522
+ return !isIterable(val);
5523
+ }
5524
+ iterable.isntIterable = isntIterable;
5525
+
5526
+ var json = {};
5527
+
5528
+ var number = {};
5529
+
5530
+ number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
5531
+ function isNumber(val) {
5532
+ return typeof val === 'number';
5533
+ }
5534
+ number.isNumber = isNumber;
5535
+ function isntNumber(val) {
5536
+ return !isNumber(val);
5537
+ }
5538
+ number.isntNumber = isntNumber;
5539
+ function isFinite(val) {
5540
+ return Number.isFinite(val);
5541
+ }
5542
+ number.isFinite = isFinite;
5543
+ function isPositiveInfinity(val) {
5544
+ return val === Infinity;
5545
+ }
5546
+ number.isPositiveInfinity = isPositiveInfinity;
5547
+ function isNegativeInfinity(val) {
5548
+ return val === -Infinity;
5549
+ }
5550
+ number.isNegativeInfinity = isNegativeInfinity;
5551
+ function isNaN(val) {
5552
+ return Number.isNaN(val);
5553
+ }
5554
+ number.isNaN = isNaN;
5555
+ function isntNaN(val) {
5556
+ return !isNaN(val);
5557
+ }
5558
+ number.isntNaN = isntNaN;
5559
+
5560
+ var object = {};
5561
+
5562
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
5563
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5564
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
5565
+ const isPlainObject_1 = __importDefault(isPlainObject_1$2);
5566
+ function isObject(val) {
5567
+ return val !== null
5568
+ && typeof val === 'object';
5569
+ }
5570
+ object.isObject = isObject;
5571
+ function isntObject(val) {
5572
+ return !isObject(val);
5573
+ }
5574
+ object.isntObject = isntObject;
5575
+ function isPlainObject(val) {
5576
+ return (0, isPlainObject_1.default)(val);
5577
+ }
5578
+ object.isPlainObject = isPlainObject;
5579
+ function isntPlainObject(val) {
5580
+ return !isPlainObject(val);
5581
+ }
5582
+ object.isntPlainObject = isntPlainObject;
5583
+ function isEmptyObject(val) {
5584
+ return Object.keys(val).length === 0;
5585
+ }
5586
+ object.isEmptyObject = isEmptyObject;
5587
+ function isntEmptyObject(val) {
5588
+ return Object.keys(val).length !== 0;
5589
+ }
5590
+ object.isntEmptyObject = isntEmptyObject;
5591
+
5592
+ json.isntJsonable = json.isJsonable = json.isntJson = json.isJson = void 0;
5593
+ const null_1 = _null;
5594
+ const boolean_1 = boolean;
5595
+ const string_1 = string;
5596
+ const number_1 = number;
5597
+ const array_1 = array;
5598
+ const object_1$1 = object;
5599
+ function isJson(val) {
5600
+ return (0, null_1.isNull)(val)
5601
+ || (0, boolean_1.isBoolean)(val)
5602
+ || (0, string_1.isString)(val)
5603
+ || (0, number_1.isNumber)(val)
5604
+ || ((0, array_1.isArray)(val) && val.every(isJson))
5605
+ || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
5606
+ }
5607
+ json.isJson = isJson;
5608
+ function isntJson(val) {
5609
+ return !isJson(val);
5610
+ }
5611
+ json.isntJson = isntJson;
5612
+ function isJsonable(val) {
5613
+ try {
5614
+ JSON.stringify(val);
5615
+ return true;
5616
+ }
5617
+ catch (_a) {
5618
+ return false;
5160
5619
  }
5161
5620
  }
5162
- customError$2.CustomError = CustomError;
5163
-
5164
- var assertionError = {};
5165
-
5166
- assertionError.AssertionError = void 0;
5167
- const custom_error_1 = customError$2;
5168
- class AssertionError extends custom_error_1.CustomError {
5621
+ json.isJsonable = isJsonable;
5622
+ function isntJsonable(val) {
5623
+ return !isntJsonable();
5169
5624
  }
5170
- assertionError.AssertionError = AssertionError;
5625
+ json.isntJsonable = isntJsonable;
5171
5626
 
5172
- var normalize$1 = {};
5627
+ var promise = {};
5173
5628
 
5174
- normalize$1.normalize = void 0;
5175
- const get_error_names_1 = getErrorNames$1;
5176
- const iterable_operator_1 = es2018$b;
5177
- function normalize(err) {
5178
- var _a;
5179
- const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
5180
- return {
5181
- name,
5182
- ancestors,
5183
- message: err.message,
5184
- stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
5185
- };
5629
+ promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
5630
+ const object_1 = object;
5631
+ const function_1 = _function;
5632
+ function isPromise(val) {
5633
+ return val instanceof Promise;
5186
5634
  }
5187
- normalize$1.normalize = normalize;
5188
-
5189
- var hydrate$1 = {};
5190
-
5191
- var es2018$4 = {};
5192
-
5193
- var pass$1 = {};
5194
-
5195
- pass$1.pass = void 0;
5196
- function pass() { }
5197
- pass$1.pass = pass;
5198
-
5199
- (function (exports) {
5200
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5201
- if (k2 === undefined) k2 = k;
5202
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5203
- }) : (function(o, m, k, k2) {
5204
- if (k2 === undefined) k2 = k;
5205
- o[k2] = m[k];
5206
- }));
5207
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
5208
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5209
- };__exportStar(pass$1, exports);
5210
-
5211
- } (es2018$4));
5212
-
5213
- hydrate$1.hydrate = void 0;
5214
- const pass_1 = es2018$4;
5215
- function hydrate(err) {
5216
- var _a;
5217
- const errorNames = [err.name, ...err.ancestors]
5218
- .slice(0, -1)
5219
- .reverse();
5220
- let errorConstructor = Error;
5221
- for (const name of errorNames) {
5222
- errorConstructor = createChildErrorConstructor(errorConstructor, name);
5223
- }
5224
- const result = new errorConstructor();
5225
- result.name = err.name;
5226
- result.message = err.message;
5227
- result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
5228
- return result;
5635
+ promise.isPromise = isPromise;
5636
+ function isntPromise(val) {
5637
+ return !isPromise(val);
5229
5638
  }
5230
- hydrate$1.hydrate = hydrate;
5231
- function createChildErrorConstructor(parentErrorConstructor, name) {
5232
- const constructor = function () { (0, pass_1.pass)(); };
5233
- constructor.prototype = Object.create(parentErrorConstructor.prototype);
5234
- constructor.prototype.constructor = constructor;
5235
- Object.defineProperty(constructor, 'name', { value: name });
5236
- return constructor;
5639
+ promise.isntPromise = isntPromise;
5640
+ function isntPromiseLike(val) {
5641
+ return !isPromiseLike(val);
5642
+ }
5643
+ promise.isntPromiseLike = isntPromiseLike;
5644
+ function isPromiseLike(val) {
5645
+ return (0, object_1.isObject)(val)
5646
+ && (0, function_1.isFunction)(val.then);
5237
5647
  }
5648
+ promise.isPromiseLike = isPromiseLike;
5238
5649
 
5239
- var assert$1 = {};
5650
+ var url = {};
5240
5651
 
5241
- assert$1.assert = void 0;
5242
- const assertion_error_1 = assertionError;
5243
- function assert(condition, message) {
5244
- if (!condition)
5245
- throw new assertion_error_1.AssertionError(message);
5652
+ url.isAbsoluteURL = void 0;
5653
+ function isAbsoluteURL(str) {
5654
+ try {
5655
+ new URL(str);
5656
+ return true;
5657
+ }
5658
+ catch (_a) {
5659
+ return false;
5660
+ }
5246
5661
  }
5247
- assert$1.assert = assert;
5662
+ url.isAbsoluteURL = isAbsoluteURL;
5248
5663
 
5249
5664
  (function (exports) {
5250
5665
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -5260,72 +5675,30 @@
5260
5675
  }));
5261
5676
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
5262
5677
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5263
- };__exportStar(customError$2, exports);
5264
- __exportStar(assertionError, exports);
5265
- __exportStar(serializableError, exports);
5266
- __exportStar(normalize$1, exports);
5267
- __exportStar(hydrate$1, exports);
5268
- __exportStar(assert$1, exports);
5269
- __exportStar(getErrorNames$1, exports);
5270
- __exportStar(traverseErrorPrototypeChain$1, exports);
5271
-
5272
- } (es2018$c));
5273
-
5274
- var es2018$3 = {};
5275
-
5276
- var middleware = {};
5277
-
5278
- var chunkAsync$1 = {};
5279
-
5280
- var es2018$2 = {};
5281
-
5282
- var go$1 = {};
5283
-
5284
- go$1.go = void 0;
5285
- function go(fn) {
5286
- return fn();
5287
- }
5288
- go$1.go = go;
5289
-
5290
- (function (exports) {
5291
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5292
- if (k2 === undefined) k2 = k;
5293
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5294
- }) : (function(o, m, k, k2) {
5295
- if (k2 === undefined) k2 = k;
5296
- o[k2] = m[k];
5297
- }));
5298
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
5299
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5300
- };__exportStar(go$1, exports);
5678
+ };__exportStar(array, exports);
5679
+ __exportStar(asyncIterable, exports);
5680
+ __exportStar(bigint, exports);
5681
+ __exportStar(boolean, exports);
5682
+ __exportStar(char, exports);
5683
+ __exportStar(date, exports);
5684
+ __exportStar(_enum, exports);
5685
+ __exportStar(error, exports);
5686
+ __exportStar(falsy, exports);
5687
+ __exportStar(_function, exports);
5688
+ __exportStar(iterable, exports);
5689
+ __exportStar(json, exports);
5690
+ __exportStar(_null, exports);
5691
+ __exportStar(number, exports);
5692
+ __exportStar(object, exports);
5693
+ __exportStar(promise, exports);
5694
+ __exportStar(string, exports);
5695
+ __exportStar(_undefined, exports);
5696
+ __exportStar(url, exports);
5301
5697
 
5302
5698
  } (es2018$2));
5303
5699
 
5304
- chunkAsync$1.chunkAsync = void 0;
5305
- const go_1$f = es2018$2;
5306
- const errors_1$f = es2018$c;
5307
- function chunkAsync(iterable, size) {
5308
- (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
5309
- (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
5310
- return (0, go_1$f.go)(async function* () {
5311
- let buffer = [];
5312
- for await (const element of iterable) {
5313
- buffer.push(element);
5314
- if (buffer.length >= size) {
5315
- yield buffer;
5316
- buffer = [];
5317
- }
5318
- }
5319
- if (buffer.length)
5320
- yield buffer;
5321
- });
5322
- }
5323
- chunkAsync$1.chunkAsync = chunkAsync;
5324
-
5325
- var chunkByAsync$1 = {};
5326
-
5327
5700
  chunkByAsync$1.chunkByAsync = void 0;
5328
- const types_1$h = es2018$d;
5701
+ const types_1$h = es2018$2;
5329
5702
  function chunkByAsync(iterable, predicate) {
5330
5703
  if ((0, types_1$h.isAsyncIterable)(iterable)) {
5331
5704
  return chunkByAsyncIterable(iterable);
@@ -5386,8 +5759,8 @@
5386
5759
  var chunk$1 = {};
5387
5760
 
5388
5761
  chunk$1.chunk = void 0;
5389
- const go_1$e = es2018$2;
5390
- const errors_1$e = es2018$c;
5762
+ const go_1$e = es2018$3;
5763
+ const errors_1$e = es2018$d;
5391
5764
  function chunk(iterable, size) {
5392
5765
  (0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
5393
5766
  (0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -5409,8 +5782,8 @@
5409
5782
  var concatAsync$1 = {};
5410
5783
 
5411
5784
  concatAsync$1.concatAsync = void 0;
5412
- const types_1$g = es2018$d;
5413
- const go_1$d = es2018$2;
5785
+ const types_1$g = es2018$2;
5786
+ const go_1$d = es2018$3;
5414
5787
  function concatAsync(iterable, ...otherIterables) {
5415
5788
  return (0, go_1$d.go)(async function* () {
5416
5789
  for (const iter of [iterable, ...otherIterables]) {
@@ -5432,7 +5805,7 @@
5432
5805
  var concat$1 = {};
5433
5806
 
5434
5807
  concat$1.concat = void 0;
5435
- const go_1$c = es2018$2;
5808
+ const go_1$c = es2018$3;
5436
5809
  function concat(iterable, ...otherIterables) {
5437
5810
  return (0, go_1$c.go)(function* () {
5438
5811
  for (const iter of [iterable, ...otherIterables]) {
@@ -5461,9 +5834,9 @@
5461
5834
  utils.copyIterable = copyIterable;
5462
5835
 
5463
5836
  dropAsync$1.dropAsync = void 0;
5464
- const go_1$b = es2018$2;
5837
+ const go_1$b = es2018$3;
5465
5838
  const utils_1$3 = utils;
5466
- const errors_1$d = es2018$c;
5839
+ const errors_1$d = es2018$d;
5467
5840
  function dropAsync(iterable, count) {
5468
5841
  (0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
5469
5842
  (0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -5496,9 +5869,9 @@
5496
5869
  var dropRightAsync$1 = {};
5497
5870
 
5498
5871
  dropRightAsync$1.dropRightAsync = void 0;
5499
- const go_1$a = es2018$2;
5872
+ const go_1$a = es2018$3;
5500
5873
  const utils_1$2 = utils;
5501
- const errors_1$c = es2018$c;
5874
+ const errors_1$c = es2018$d;
5502
5875
  function dropRightAsync(iterable, count) {
5503
5876
  (0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
5504
5877
  (0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -5524,9 +5897,9 @@
5524
5897
  var dropRight$1 = {};
5525
5898
 
5526
5899
  dropRight$1.dropRight = void 0;
5527
- const go_1$9 = es2018$2;
5900
+ const go_1$9 = es2018$3;
5528
5901
  const utils_1$1 = utils;
5529
- const errors_1$b = es2018$c;
5902
+ const errors_1$b = es2018$d;
5530
5903
  function dropRight(iterable, count) {
5531
5904
  (0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
5532
5905
  (0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -5542,7 +5915,7 @@
5542
5915
  var dropUntilAsync$1 = {};
5543
5916
 
5544
5917
  dropUntilAsync$1.dropUntilAsync = void 0;
5545
- const types_1$f = es2018$d;
5918
+ const types_1$f = es2018$2;
5546
5919
  function dropUntilAsync(iterable, predicate) {
5547
5920
  if ((0, types_1$f.isAsyncIterable)(iterable)) {
5548
5921
  return dropUntilAsyncIterable(iterable);
@@ -5624,9 +5997,9 @@
5624
5997
  var drop$1 = {};
5625
5998
 
5626
5999
  drop$1.drop = void 0;
5627
- const go_1$8 = es2018$2;
6000
+ const go_1$8 = es2018$3;
5628
6001
  const utils_1 = utils;
5629
- const errors_1$a = es2018$c;
6002
+ const errors_1$a = es2018$d;
5630
6003
  function drop(iterable, count) {
5631
6004
  (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
5632
6005
  (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -5659,7 +6032,7 @@
5659
6032
  var filterAsync$1 = {};
5660
6033
 
5661
6034
  filterAsync$1.filterAsync = void 0;
5662
- const types_1$e = es2018$d;
6035
+ const types_1$e = es2018$2;
5663
6036
  function filterAsync(iterable, predicate) {
5664
6037
  if ((0, types_1$e.isAsyncIterable)(iterable)) {
5665
6038
  return filterAsyncIterable(iterable);
@@ -5706,7 +6079,7 @@
5706
6079
  var flattenByAsync$1 = {};
5707
6080
 
5708
6081
  flattenByAsync$1.flattenByAsync = void 0;
5709
- const types_1$d = es2018$d;
6082
+ const types_1$d = es2018$2;
5710
6083
  function flattenByAsync(iterable, predicate) {
5711
6084
  if ((0, types_1$d.isAsyncIterable)(iterable)) {
5712
6085
  return flattenByAsyncIterable(iterable);
@@ -5746,7 +6119,7 @@
5746
6119
 
5747
6120
  flattenDeepAsync$1.flattenDeepAsync = void 0;
5748
6121
  const flatten_by_async_1 = flattenByAsync$1;
5749
- const errors_1$9 = es2018$c;
6122
+ const errors_1$9 = es2018$d;
5750
6123
  function flattenDeepAsync(iterable, depth = Infinity) {
5751
6124
  (0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
5752
6125
  (0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -5764,7 +6137,7 @@
5764
6137
  var flattenBy$1 = {};
5765
6138
 
5766
6139
  flattenBy$1.flattenBy = void 0;
5767
- const types_1$c = es2018$d;
6140
+ const types_1$c = es2018$2;
5768
6141
  function flattenBy(iterable, predicate) {
5769
6142
  return flatten(iterable, 1);
5770
6143
  function* flatten(iterable, level) {
@@ -5787,7 +6160,7 @@
5787
6160
 
5788
6161
  flattenDeep$1.flattenDeep = void 0;
5789
6162
  const flatten_by_1 = flattenBy$1;
5790
- const errors_1$8 = es2018$c;
6163
+ const errors_1$8 = es2018$d;
5791
6164
  function flattenDeep(iterable, depth = Infinity) {
5792
6165
  (0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
5793
6166
  (0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -5807,7 +6180,7 @@
5807
6180
  var mapAsync$1 = {};
5808
6181
 
5809
6182
  mapAsync$1.mapAsync = void 0;
5810
- const types_1$b = es2018$d;
6183
+ const types_1$b = es2018$2;
5811
6184
  function mapAsync(iterable, fn) {
5812
6185
  if ((0, types_1$b.isAsyncIterable)(iterable)) {
5813
6186
  return mapAsyncIterable(iterable);
@@ -5847,8 +6220,8 @@
5847
6220
  var repeatAsync$1 = {};
5848
6221
 
5849
6222
  repeatAsync$1.repeatAsync = void 0;
5850
- const go_1$7 = es2018$2;
5851
- const errors_1$7 = es2018$c;
6223
+ const go_1$7 = es2018$3;
6224
+ const errors_1$7 = es2018$d;
5852
6225
  function repeatAsync(iterable, times) {
5853
6226
  (0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
5854
6227
  (0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -5882,8 +6255,8 @@
5882
6255
  var repeat$1 = {};
5883
6256
 
5884
6257
  repeat$1.repeat = void 0;
5885
- const go_1$6 = es2018$2;
5886
- const errors_1$6 = es2018$c;
6258
+ const go_1$6 = es2018$3;
6259
+ const errors_1$6 = es2018$d;
5887
6260
  function repeat(iterable, times) {
5888
6261
  (0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
5889
6262
  (0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -5917,8 +6290,8 @@
5917
6290
  var sliceAsync$1 = {};
5918
6291
 
5919
6292
  sliceAsync$1.sliceAsync = void 0;
5920
- const go_1$5 = es2018$2;
5921
- const errors_1$5 = es2018$c;
6293
+ const go_1$5 = es2018$3;
6294
+ const errors_1$5 = es2018$d;
5922
6295
  function sliceAsync(iterable, start, end = Infinity) {
5923
6296
  (0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
5924
6297
  (0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -5940,8 +6313,8 @@
5940
6313
  var slice$1 = {};
5941
6314
 
5942
6315
  slice$1.slice = void 0;
5943
- const go_1$4 = es2018$2;
5944
- const errors_1$4 = es2018$c;
6316
+ const go_1$4 = es2018$3;
6317
+ const errors_1$4 = es2018$d;
5945
6318
  function slice(iterable, start, end = Infinity) {
5946
6319
  (0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
5947
6320
  (0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -5981,7 +6354,7 @@
5981
6354
  var splitByAsync$1 = {};
5982
6355
 
5983
6356
  splitByAsync$1.splitByAsync = void 0;
5984
- const types_1$a = es2018$d;
6357
+ const types_1$a = es2018$2;
5985
6358
  function splitByAsync(iterable, predicate) {
5986
6359
  if ((0, types_1$a.isAsyncIterable)(iterable)) {
5987
6360
  return splitByAsyncIterable(iterable);
@@ -6063,8 +6436,8 @@
6063
6436
  var takeAsync$1 = {};
6064
6437
 
6065
6438
  takeAsync$1.takeAsync = void 0;
6066
- const go_1$3 = es2018$2;
6067
- const errors_1$3 = es2018$c;
6439
+ const go_1$3 = es2018$3;
6440
+ const errors_1$3 = es2018$d;
6068
6441
  function takeAsync(iterable, count) {
6069
6442
  (0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
6070
6443
  (0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -6084,8 +6457,8 @@
6084
6457
  var takeRightAsync$1 = {};
6085
6458
 
6086
6459
  takeRightAsync$1.takeRightAsync = void 0;
6087
- const go_1$2 = es2018$2;
6088
- const errors_1$2 = es2018$c;
6460
+ const go_1$2 = es2018$3;
6461
+ const errors_1$2 = es2018$d;
6089
6462
  function takeRightAsync(iterable, count) {
6090
6463
  (0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
6091
6464
  (0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -6114,8 +6487,8 @@
6114
6487
  var takeRight$1 = {};
6115
6488
 
6116
6489
  takeRight$1.takeRight = void 0;
6117
- const go_1$1 = es2018$2;
6118
- const errors_1$1 = es2018$c;
6490
+ const go_1$1 = es2018$3;
6491
+ const errors_1$1 = es2018$d;
6119
6492
  function takeRight(iterable, count) {
6120
6493
  (0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
6121
6494
  (0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -6144,7 +6517,7 @@
6144
6517
  var takeUntilAsync$1 = {};
6145
6518
 
6146
6519
  takeUntilAsync$1.takeUntilAsync = void 0;
6147
- const types_1$9 = es2018$d;
6520
+ const types_1$9 = es2018$2;
6148
6521
  function takeUntilAsync(iterable, predicate) {
6149
6522
  if ((0, types_1$9.isAsyncIterable)(iterable)) {
6150
6523
  return takeUntilAsyncIterable(iterable);
@@ -6190,8 +6563,8 @@
6190
6563
  var take$1 = {};
6191
6564
 
6192
6565
  take$1.take = void 0;
6193
- const go_1 = es2018$2;
6194
- const errors_1 = es2018$c;
6566
+ const go_1 = es2018$3;
6567
+ const errors_1 = es2018$d;
6195
6568
  function take(iterable, count) {
6196
6569
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
6197
6570
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -6211,7 +6584,7 @@
6211
6584
  var tapAsync$1 = {};
6212
6585
 
6213
6586
  tapAsync$1.tapAsync = void 0;
6214
- const types_1$8 = es2018$d;
6587
+ const types_1$8 = es2018$2;
6215
6588
  function tapAsync(iterable, fn) {
6216
6589
  if ((0, types_1$8.isAsyncIterable)(iterable)) {
6217
6590
  return tapAsyncIterable(iterable);
@@ -6294,7 +6667,7 @@
6294
6667
  var uniqByAsync$1 = {};
6295
6668
 
6296
6669
  uniqByAsync$1.uniqByAsync = void 0;
6297
- const types_1$7 = es2018$d;
6670
+ const types_1$7 = es2018$2;
6298
6671
  function uniqByAsync(iterable, fn) {
6299
6672
  if ((0, types_1$7.isAsyncIterable)(iterable)) {
6300
6673
  return uniqByAsyncIterable(iterable);
@@ -6363,7 +6736,7 @@
6363
6736
  var zipAsync$1 = {};
6364
6737
 
6365
6738
  zipAsync$1.zipAsync = void 0;
6366
- const types_1$6 = es2018$d;
6739
+ const types_1$6 = es2018$2;
6367
6740
  var Kind;
6368
6741
  (function (Kind) {
6369
6742
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -6527,7 +6900,7 @@
6527
6900
  var eachAsync$1 = {};
6528
6901
 
6529
6902
  eachAsync$1.eachAsync = void 0;
6530
- const types_1$5 = es2018$d;
6903
+ const types_1$5 = es2018$2;
6531
6904
  function eachAsync(iterable, fn) {
6532
6905
  if ((0, types_1$5.isAsyncIterable)(iterable)) {
6533
6906
  return eachAsyncIterable(iterable);
@@ -6567,7 +6940,7 @@
6567
6940
  var everyAsync$1 = {};
6568
6941
 
6569
6942
  everyAsync$1.everyAsync = void 0;
6570
- const types_1$4 = es2018$d;
6943
+ const types_1$4 = es2018$2;
6571
6944
  function everyAsync(iterable, predicate) {
6572
6945
  if ((0, types_1$4.isAsyncIterable)(iterable)) {
6573
6946
  return everyAsyncIterable(iterable);
@@ -6613,7 +6986,7 @@
6613
6986
  var findAsync$1 = {};
6614
6987
 
6615
6988
  findAsync$1.findAsync = void 0;
6616
- const types_1$3 = es2018$d;
6989
+ const types_1$3 = es2018$2;
6617
6990
  function findAsync(iterable, predicate) {
6618
6991
  if ((0, types_1$3.isAsyncIterable)(iterable)) {
6619
6992
  return findAsyncIterable(iterable);
@@ -6737,7 +7110,7 @@
6737
7110
  var reduceAsync$1 = {};
6738
7111
 
6739
7112
  reduceAsync$1.reduceAsync = void 0;
6740
- const types_1$2 = es2018$d;
7113
+ const types_1$2 = es2018$2;
6741
7114
  function reduceAsync(iterable, fn, initialValue) {
6742
7115
  if ((0, types_1$2.isUndefined)(initialValue)) {
6743
7116
  return reduceAsyncWithoutInitialValue(iterable, fn);
@@ -6833,7 +7206,7 @@
6833
7206
  var reduce$1 = {};
6834
7207
 
6835
7208
  reduce$1.reduce = void 0;
6836
- const types_1$1 = es2018$d;
7209
+ const types_1$1 = es2018$2;
6837
7210
  function reduce(iterable, fn, initialValue) {
6838
7211
  if ((0, types_1$1.isUndefined)(initialValue)) {
6839
7212
  return reduceWithoutInitialValue(iterable, fn);
@@ -6880,7 +7253,7 @@
6880
7253
  var someAsync$1 = {};
6881
7254
 
6882
7255
  someAsync$1.someAsync = void 0;
6883
- const types_1 = es2018$d;
7256
+ const types_1 = es2018$2;
6884
7257
  function someAsync(iterable, predicate) {
6885
7258
  if ((0, types_1.isAsyncIterable)(iterable)) {
6886
7259
  return someAsyncIterable(iterable);
@@ -7098,13 +7471,13 @@
7098
7471
  };__exportStar(middleware, exports);
7099
7472
  __exportStar(output, exports);
7100
7473
 
7101
- } (es2018$3));
7474
+ } (es2018$4));
7102
7475
 
7103
7476
  class LRUMap {
7104
7477
  constructor(limit) {
7105
7478
  this.map = new Map();
7106
- es2018$c.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
7107
- es2018$c.assert(limit > 0, 'The parameter limit must be a positive value');
7479
+ es2018$d.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
7480
+ es2018$d.assert(limit > 0, 'The parameter limit must be a positive value');
7108
7481
  this.limit = limit;
7109
7482
  }
7110
7483
  get [Symbol.toStringTag]() {
@@ -7152,7 +7525,7 @@
7152
7525
  * Return the earliest key inserted in the Map
7153
7526
  */
7154
7527
  getColdestKey() {
7155
- return es2018$3.first(this.map.keys());
7528
+ return es2018$4.first(this.map.keys());
7156
7529
  }
7157
7530
  }
7158
7531
 
@@ -7433,8 +7806,8 @@
7433
7806
  * 按过期时间升序排列所有项目的元数据
7434
7807
  */
7435
7808
  this.itemMetadataSortedByExpirationTime = [];
7436
- es2018$c.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
7437
- es2018$c.assert(limit > 0, 'The parameter limit must be a positive value');
7809
+ es2018$d.assert(Number.isInteger(limit), 'The parameter limit must be an integer');
7810
+ es2018$d.assert(limit > 0, 'The parameter limit must be a positive value');
7438
7811
  this.limit = limit;
7439
7812
  }
7440
7813
  get [Symbol.toStringTag]() {
@@ -7553,7 +7926,7 @@
7553
7926
  * Return the earliest key inserted in the Map
7554
7927
  */
7555
7928
  getColdestKey() {
7556
- return es2018$3.first(this.map.keys());
7929
+ return es2018$4.first(this.map.keys());
7557
7930
  }
7558
7931
  }
7559
7932
 
@@ -7575,7 +7948,7 @@
7575
7948
  function* dfs(node, paths) {
7576
7949
  for (const [path, childNode] of node.children) {
7577
7950
  const newPaths = [...paths, path];
7578
- if (es2018$d.isntUndefined(childNode.value)) {
7951
+ if (es2018$e.isntUndefined(childNode.value)) {
7579
7952
  yield [newPaths, childNode.value];
7580
7953
  }
7581
7954
  yield* dfs(childNode, newPaths);
@@ -7583,10 +7956,10 @@
7583
7956
  }
7584
7957
  }
7585
7958
  keys() {
7586
- return es2018$3.map(this.entries(), ([key]) => key);
7959
+ return es2018$4.map(this.entries(), ([key]) => key);
7587
7960
  }
7588
7961
  values() {
7589
- return es2018$3.map(this.entries(), ([_, value]) => value);
7962
+ return es2018$4.map(this.entries(), ([_, value]) => value);
7590
7963
  }
7591
7964
  set(key, value) {
7592
7965
  let node = this.root;
@@ -7638,7 +8011,7 @@
7638
8011
  delete node.value;
7639
8012
  // 如果节点没有后缀, 则代表这是末端节点, 往前删除其前缀
7640
8013
  if (node.children.size === 0) {
7641
- for (const [part, parentNode] of es2018$3.toArray(es2018$3.zip(key, parentNodes)).reverse()) {
8014
+ for (const [part, parentNode] of es2018$4.toArray(es2018$4.zip(key, parentNodes)).reverse()) {
7642
8015
  parentNode.children.delete(part);
7643
8016
  if (parentNode.children.size !== 0)
7644
8017
  break;
@@ -7677,7 +8050,7 @@
7677
8050
  }
7678
8051
  }
7679
8052
  }
7680
- class BadEventError extends es2018$c.CustomError {
8053
+ class BadEventError extends es2018$d.CustomError {
7681
8054
  constructor(state, event) {
7682
8055
  super(`State ${state} cannot react to event ${event}`);
7683
8056
  }
@@ -9268,7 +9641,7 @@
9268
9641
  super.send(event);
9269
9642
  const newState = this.state;
9270
9643
  this.stateChanges.next({ event, oldState, newState });
9271
- if (es2018$d.isEmptyObject(this.schema[newState])) {
9644
+ if (es2018$e.isEmptyObject(this.schema[newState])) {
9272
9645
  this.stateChanges.complete();
9273
9646
  }
9274
9647
  }
@@ -9288,8 +9661,10 @@
9288
9661
  }
9289
9662
  }
9290
9663
  has(value) {
9291
- // 跟一般的实现不同, 不需要访问values数组.
9292
- return es2018$d.isntUndefined(this.valueToValueIndex[value]);
9664
+ const index = this.valueToValueIndex[value];
9665
+ return es2018$e.isUndefined(index)
9666
+ ? false
9667
+ : this.values[index] === value;
9293
9668
  }
9294
9669
  add(value) {
9295
9670
  if (!this.has(value)) {
@@ -9305,15 +9680,134 @@
9305
9680
  const indexOfValue = this.valueToValueIndex[value];
9306
9681
  this.values[indexOfValue] = lastValue;
9307
9682
  this.valueToValueIndex[lastValue] = indexOfValue;
9308
- // 跟一般的实现不同, 直接删除值的索引.
9309
- this.valueToValueIndex[value] = undefined;
9310
9683
  }
9311
9684
  }
9312
9685
  }
9313
9686
  }
9314
9687
 
9688
+ // 相关提案: https://github.com/tc39/proposal-resizablearraybuffer
9689
+ class DynamicTypedArray {
9690
+ constructor(typedArrayConstructor, { capacity = 0, growthFactor = 1.5 } = {}) {
9691
+ this.typedArrayConstructor = typedArrayConstructor;
9692
+ this._length = 0;
9693
+ es2018$d.assert(Number.isInteger(capacity), 'capacity must be an integer');
9694
+ es2018$d.assert(capacity >= 0, 'capacity must be greater than or equal to 0');
9695
+ es2018$d.assert(growthFactor > 1, 'growthFactory must be greater than or equal to 1');
9696
+ this.array = new typedArrayConstructor(capacity);
9697
+ this.growthFactor = growthFactor;
9698
+ }
9699
+ get internalTypedArray() {
9700
+ return this.array;
9701
+ }
9702
+ get [Symbol.toStringTag]() {
9703
+ return this.constructor.name;
9704
+ }
9705
+ /**
9706
+ * 数组当前的容量.
9707
+ */
9708
+ get capacity() {
9709
+ return this.array.length;
9710
+ }
9711
+ /**
9712
+ * 数组逻辑上的长度, 总是小于或等于capacity.
9713
+ */
9714
+ get length() {
9715
+ return this._length;
9716
+ }
9717
+ set(index, value) {
9718
+ if (index >= this.capacity) {
9719
+ const newCapacity = computeNewCapacity(this.capacity, index + 1, this.growthFactor);
9720
+ this.resize(newCapacity);
9721
+ }
9722
+ if (index >= this._length) {
9723
+ this._length = index + 1;
9724
+ }
9725
+ this.array[index] = value;
9726
+ }
9727
+ get(index) {
9728
+ return index < this._length
9729
+ ? this.array[index]
9730
+ : undefined;
9731
+ }
9732
+ push(...values) {
9733
+ const newLength = this._length + values.length;
9734
+ if (newLength > this.capacity) {
9735
+ const newCapacity = computeNewCapacity(this.capacity, newLength, this.growthFactor);
9736
+ this.resize(newCapacity);
9737
+ }
9738
+ for (const value of values) {
9739
+ this.array[this._length++] = value;
9740
+ }
9741
+ }
9742
+ pop() {
9743
+ if (this._length > 0) {
9744
+ const value = this.array[this._length - 1];
9745
+ this._length--;
9746
+ const newCapacity = computeNewCapacity(this.capacity, this.length, this.growthFactor);
9747
+ this.resize(newCapacity);
9748
+ return value;
9749
+ }
9750
+ else {
9751
+ return undefined;
9752
+ }
9753
+ }
9754
+ resize(newCapacity) {
9755
+ if (this.array.length === newCapacity) {
9756
+ return;
9757
+ }
9758
+ else if (this.array.length < newCapacity) {
9759
+ const newArray = new this.typedArrayConstructor(newCapacity);
9760
+ newArray.set(this.array);
9761
+ this.array = newArray;
9762
+ }
9763
+ else if (this.array.length > newCapacity) {
9764
+ const newArray = new this.typedArrayConstructor(newCapacity);
9765
+ // 不需要的部分将被舍弃.
9766
+ for (let i = newCapacity; i--;) {
9767
+ newArray[i] = this.array[i];
9768
+ }
9769
+ this.array = newArray;
9770
+ }
9771
+ }
9772
+ }
9773
+ function computeNewCapacity(oldCapacity, targetLength, growthFactor) {
9774
+ if (oldCapacity === targetLength) {
9775
+ return targetLength;
9776
+ }
9777
+ else if (oldCapacity < targetLength) {
9778
+ // 增加容量以适配targetLength
9779
+ let newCapacity = Math.max(oldCapacity, 1);
9780
+ while (newCapacity < targetLength) {
9781
+ newCapacity *= growthFactor;
9782
+ }
9783
+ return Math.floor(newCapacity);
9784
+ }
9785
+ else {
9786
+ // 尝试减少容量以适配targetLength
9787
+ // `targetLength = 0`是特殊情况,
9788
+ // 此时无论怎么将oldCapacity除以growthFactory几次, 都不可能得到比targetLength小的结果.
9789
+ if (targetLength === 0) {
9790
+ return 0;
9791
+ }
9792
+ else {
9793
+ let newCapacity = oldCapacity;
9794
+ while (true) {
9795
+ const temp = newCapacity / growthFactor;
9796
+ if (temp < targetLength) {
9797
+ break;
9798
+ }
9799
+ else {
9800
+ newCapacity = temp;
9801
+ }
9802
+ }
9803
+ return Math.floor(newCapacity);
9804
+ }
9805
+ }
9806
+ }
9807
+
9315
9808
  exports.BadEventError = BadEventError;
9316
9809
  exports.Box = Box;
9810
+ exports.DynamicTypedArray = DynamicTypedArray;
9317
9811
  exports.Emitter = Emitter;
9318
9812
  exports.ExpirableMap = ExpirableMap;
9319
9813
  exports.FiniteStateMachine = FiniteStateMachine;