extra-request 4.0.2 → 4.1.0

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.
Files changed (44) hide show
  1. package/README.md +6 -31
  2. package/dist/es2015/index.min.mjs +2 -2
  3. package/dist/es2015/index.min.mjs.map +1 -1
  4. package/dist/es2015/index.mjs +1917 -788
  5. package/dist/es2015/index.mjs.map +1 -1
  6. package/dist/es2015/index.umd.js +1917 -787
  7. package/dist/es2015/index.umd.js.map +1 -1
  8. package/dist/es2015/index.umd.min.js +2 -2
  9. package/dist/es2015/index.umd.min.js.map +1 -1
  10. package/dist/es2018/index.min.mjs +2 -2
  11. package/dist/es2018/index.min.mjs.map +1 -1
  12. package/dist/es2018/index.mjs +1958 -826
  13. package/dist/es2018/index.mjs.map +1 -1
  14. package/dist/es2018/index.umd.js +1958 -825
  15. package/dist/es2018/index.umd.js.map +1 -1
  16. package/dist/es2018/index.umd.min.js +2 -2
  17. package/dist/es2018/index.umd.min.js.map +1 -1
  18. package/lib/es2015/request.d.ts +1 -1
  19. package/lib/es2015/request.js +2 -2
  20. package/lib/es2015/request.js.map +1 -1
  21. package/lib/es2015/transformers/append-pathname.d.ts +2 -0
  22. package/lib/es2015/transformers/append-pathname.js +24 -0
  23. package/lib/es2015/transformers/append-pathname.js.map +1 -0
  24. package/lib/es2015/transformers/csv.js +2 -2
  25. package/lib/es2015/transformers/csv.js.map +1 -1
  26. package/lib/es2015/transformers/form-data-field.js +2 -2
  27. package/lib/es2015/transformers/form-data-field.js.map +1 -1
  28. package/lib/es2015/transformers/index.d.ts +1 -0
  29. package/lib/es2015/transformers/index.js +1 -0
  30. package/lib/es2015/transformers/index.js.map +1 -1
  31. package/lib/es2018/request.d.ts +1 -1
  32. package/lib/es2018/request.js +2 -2
  33. package/lib/es2018/request.js.map +1 -1
  34. package/lib/es2018/transformers/append-pathname.d.ts +2 -0
  35. package/lib/es2018/transformers/append-pathname.js +27 -0
  36. package/lib/es2018/transformers/append-pathname.js.map +1 -0
  37. package/lib/es2018/transformers/csv.js +2 -2
  38. package/lib/es2018/transformers/csv.js.map +1 -1
  39. package/lib/es2018/transformers/form-data-field.js +2 -2
  40. package/lib/es2018/transformers/form-data-field.js.map +1 -1
  41. package/lib/es2018/transformers/index.d.ts +1 -0
  42. package/lib/es2018/transformers/index.js +1 -0
  43. package/lib/es2018/transformers/index.js.map +1 -1
  44. package/package.json +12 -11
@@ -1,6 +1,6 @@
1
1
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
2
 
3
- var es2018$5 = {};
3
+ var es2018$d = {};
4
4
 
5
5
  var fetch_browser = {};
6
6
 
@@ -71,209 +71,497 @@ __exportStar(abortError_browser, exports);
71
71
  __exportStar(blob_browser, exports);
72
72
  __exportStar(eventSource_browser, exports);
73
73
 
74
- }(es2018$5));
74
+ }(es2018$d));
75
75
 
76
- var es2018$4 = {};
76
+ var es2018$c = {};
77
77
 
78
- var array = {};
78
+ var es2018$b = {};
79
79
 
80
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
81
- function isArray(val) {
80
+ var customError = {};
81
+
82
+ var es2018$a = {};
83
+
84
+ var middleware = {};
85
+
86
+ var chunkAsync$1 = {};
87
+
88
+ var es2018$9 = {};
89
+
90
+ var go$3 = {};
91
+
92
+ go$3.go = void 0;
93
+ function go$2(fn) {
94
+ return fn();
95
+ }
96
+ go$3.go = go$2;
97
+
98
+ var goMicrotask$3 = {};
99
+
100
+ goMicrotask$3.goMicrotask = void 0;
101
+ function goMicrotask$2(fn) {
102
+ return new Promise((resolve, reject) => {
103
+ queueMicrotask(async () => {
104
+ try {
105
+ resolve(await fn());
106
+ }
107
+ catch (e) {
108
+ reject(e);
109
+ }
110
+ });
111
+ });
112
+ }
113
+ goMicrotask$3.goMicrotask = goMicrotask$2;
114
+
115
+ var goMacrotask$3 = {};
116
+
117
+ var es2018$8 = {};
118
+
119
+ var exponentialBackoff = {};
120
+
121
+ var es2018$7 = {};
122
+
123
+ var random$1 = {};
124
+
125
+ random$1.random = void 0;
126
+ function random(min, max) {
127
+ return Math.random() * (max - min) + min;
128
+ }
129
+ random$1.random = random;
130
+
131
+ var randomInt$1 = {};
132
+
133
+ randomInt$1.randomInt = void 0;
134
+ function randomInt(min, max) {
135
+ min = Math.ceil(min);
136
+ max = Math.floor(max);
137
+ return Math.floor(Math.random() * (max - min)) + min;
138
+ }
139
+ randomInt$1.randomInt = randomInt;
140
+
141
+ var randomIntInclusive$1 = {};
142
+
143
+ randomIntInclusive$1.randomIntInclusive = void 0;
144
+ function randomIntInclusive(min, max) {
145
+ min = Math.ceil(min);
146
+ max = Math.floor(max);
147
+ return Math.floor(Math.random() * (max - min + 1)) + min;
148
+ }
149
+ randomIntInclusive$1.randomIntInclusive = randomIntInclusive;
150
+
151
+ (function (exports) {
152
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
153
+ if (k2 === undefined) k2 = k;
154
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
155
+ }) : (function(o, m, k, k2) {
156
+ if (k2 === undefined) k2 = k;
157
+ o[k2] = m[k];
158
+ }));
159
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
160
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
161
+ };__exportStar(random$1, exports);
162
+ __exportStar(randomInt$1, exports);
163
+ __exportStar(randomIntInclusive$1, exports);
164
+
165
+ }(es2018$7));
166
+
167
+ exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
168
+ const extra_rand_1 = es2018$7;
169
+ function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
170
+ const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
171
+ if (jitter) {
172
+ return (0, extra_rand_1.randomIntInclusive)(0, timeout);
173
+ }
174
+ else {
175
+ return timeout;
176
+ }
177
+ }
178
+ exponentialBackoff.calculateExponentialBackoffTimeout = calculateExponentialBackoffTimeout;
179
+
180
+ var setTimeout$2 = {};
181
+
182
+ setTimeout$2.setTimeout = void 0;
183
+ function setTimeout$1(timeout, cb) {
184
+ const timer = globalThis.setTimeout(cb, timeout);
185
+ return () => clearTimeout(timer);
186
+ }
187
+ setTimeout$2.setTimeout = setTimeout$1;
188
+
189
+ var setSchedule$1 = {};
190
+
191
+ setSchedule$1.setSchedule = void 0;
192
+ const set_timeout_1$3 = setTimeout$2;
193
+ function setSchedule(timestamp, cb) {
194
+ const timeout = timestamp - Date.now();
195
+ return (0, set_timeout_1$3.setTimeout)(timeout, cb);
196
+ }
197
+ setSchedule$1.setSchedule = setSchedule;
198
+
199
+ var setInterval$1 = {};
200
+
201
+ setInterval$1.setInterval = void 0;
202
+ function setInterval(timeout, cb) {
203
+ const timer = globalThis.setInterval(cb, timeout);
204
+ return () => clearInterval(timer);
205
+ }
206
+ setInterval$1.setInterval = setInterval;
207
+
208
+ var setImmediate$1 = {};
209
+
210
+ setImmediate$1.setImmediate = void 0;
211
+ const set_timeout_1$2 = setTimeout$2;
212
+ function setImmediate(cb) {
213
+ if (globalThis.setImmediate) {
214
+ const timer = globalThis.setImmediate(cb);
215
+ return () => clearImmediate(timer);
216
+ }
217
+ else {
218
+ return (0, set_timeout_1$2.setTimeout)(0, cb);
219
+ }
220
+ }
221
+ setImmediate$1.setImmediate = setImmediate;
222
+
223
+ var setTimeoutLoop$1 = {};
224
+
225
+ setTimeoutLoop$1.setTimeoutLoop = void 0;
226
+ const set_timeout_1$1 = setTimeout$2;
227
+ function setTimeoutLoop(timeout, cb) {
228
+ let isCancelled = false;
229
+ let cancel = (0, set_timeout_1$1.setTimeout)(timeout, loop);
230
+ return () => {
231
+ isCancelled = true;
232
+ cancel();
233
+ };
234
+ async function loop() {
235
+ await cb();
236
+ if (!isCancelled) {
237
+ cancel = (0, set_timeout_1$1.setTimeout)(timeout, loop);
238
+ }
239
+ }
240
+ }
241
+ setTimeoutLoop$1.setTimeoutLoop = setTimeoutLoop;
242
+
243
+ var setDynamicTimeoutLoop$1 = {};
244
+
245
+ setDynamicTimeoutLoop$1.setDynamicTimeoutLoop = void 0;
246
+ const set_timeout_1 = setTimeout$2;
247
+ function setDynamicTimeoutLoop(timeout, cb) {
248
+ let isCancelled = false;
249
+ let cancel = (0, set_timeout_1.setTimeout)(timeout, loop);
250
+ return () => {
251
+ isCancelled = true;
252
+ cancel();
253
+ };
254
+ async function loop() {
255
+ const start = Date.now();
256
+ await cb();
257
+ const elapsed = Date.now() - start;
258
+ if (!isCancelled) {
259
+ cancel = (0, set_timeout_1.setTimeout)(Math.max(timeout - elapsed, 0), loop);
260
+ }
261
+ }
262
+ }
263
+ setDynamicTimeoutLoop$1.setDynamicTimeoutLoop = setDynamicTimeoutLoop;
264
+
265
+ (function (exports) {
266
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
267
+ if (k2 === undefined) k2 = k;
268
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
269
+ }) : (function(o, m, k, k2) {
270
+ if (k2 === undefined) k2 = k;
271
+ o[k2] = m[k];
272
+ }));
273
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
274
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
275
+ };__exportStar(exponentialBackoff, exports);
276
+ __exportStar(setTimeout$2, exports);
277
+ __exportStar(setSchedule$1, exports);
278
+ __exportStar(setInterval$1, exports);
279
+ __exportStar(setImmediate$1, exports);
280
+ __exportStar(setTimeoutLoop$1, exports);
281
+ __exportStar(setDynamicTimeoutLoop$1, exports);
282
+
283
+ }(es2018$8));
284
+
285
+ goMacrotask$3.goMacrotask = void 0;
286
+ const extra_timers_1$1 = es2018$8;
287
+ function goMacrotask$2(fn) {
288
+ return new Promise((resolve, reject) => {
289
+ (0, extra_timers_1$1.setImmediate)(async () => {
290
+ try {
291
+ resolve(await fn());
292
+ }
293
+ catch (e) {
294
+ reject(e);
295
+ }
296
+ });
297
+ });
298
+ }
299
+ goMacrotask$3.goMacrotask = goMacrotask$2;
300
+
301
+ (function (exports) {
302
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
303
+ if (k2 === undefined) k2 = k;
304
+ var desc = Object.getOwnPropertyDescriptor(m, k);
305
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
306
+ desc = { enumerable: true, get: function() { return m[k]; } };
307
+ }
308
+ Object.defineProperty(o, k2, desc);
309
+ }) : (function(o, m, k, k2) {
310
+ if (k2 === undefined) k2 = k;
311
+ o[k2] = m[k];
312
+ }));
313
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
314
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
315
+ };__exportStar(go$3, exports);
316
+ __exportStar(goMicrotask$3, exports);
317
+ __exportStar(goMacrotask$3, exports);
318
+
319
+ }(es2018$9));
320
+
321
+ chunkAsync$1.chunkAsync = void 0;
322
+ const go_1$g = es2018$9;
323
+ const errors_1$f = es2018$b;
324
+ function chunkAsync(iterable, size) {
325
+ (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
326
+ (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
327
+ return (0, go_1$g.go)(async function* () {
328
+ let buffer = [];
329
+ for await (const element of iterable) {
330
+ buffer.push(element);
331
+ if (buffer.length >= size) {
332
+ yield buffer;
333
+ buffer = [];
334
+ }
335
+ }
336
+ if (buffer.length)
337
+ yield buffer;
338
+ });
339
+ }
340
+ chunkAsync$1.chunkAsync = chunkAsync;
341
+
342
+ var chunkByAsync$1 = {};
343
+
344
+ var es2018$6 = {};
345
+
346
+ var array$1 = {};
347
+
348
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
349
+ function isArray$1(val) {
82
350
  return Array.isArray(val);
83
351
  }
84
- array.isArray = isArray;
85
- function isntArray(val) {
86
- return !isArray(val);
352
+ array$1.isArray = isArray$1;
353
+ function isntArray$1(val) {
354
+ return !isArray$1(val);
87
355
  }
88
- array.isntArray = isntArray;
89
- function isEmptyArray(val) {
356
+ array$1.isntArray = isntArray$1;
357
+ function isEmptyArray$1(val) {
90
358
  return val.length === 0;
91
359
  }
92
- array.isEmptyArray = isEmptyArray;
93
- function isntEmptyArray(val) {
360
+ array$1.isEmptyArray = isEmptyArray$1;
361
+ function isntEmptyArray$1(val) {
94
362
  return val.length !== 0;
95
363
  }
96
- array.isntEmptyArray = isntEmptyArray;
364
+ array$1.isntEmptyArray = isntEmptyArray$1;
97
365
 
98
- var asyncIterable = {};
366
+ var asyncIterable$1 = {};
99
367
 
100
- var _null = {};
368
+ var _null$1 = {};
101
369
 
102
- _null.isntNull = _null.isNull = void 0;
103
- function isNull(val) {
370
+ _null$1.isntNull = _null$1.isNull = void 0;
371
+ function isNull$1(val) {
104
372
  return val === null;
105
373
  }
106
- _null.isNull = isNull;
107
- function isntNull(val) {
108
- return !isNull(val);
374
+ _null$1.isNull = isNull$1;
375
+ function isntNull$1(val) {
376
+ return !isNull$1(val);
109
377
  }
110
- _null.isntNull = isntNull;
378
+ _null$1.isntNull = isntNull$1;
111
379
 
112
- var _undefined = {};
380
+ var _undefined$1 = {};
113
381
 
114
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
115
- function isUndefined(val) {
382
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
383
+ function isUndefined$1(val) {
116
384
  return val === undefined;
117
385
  }
118
- _undefined.isUndefined = isUndefined;
119
- function isntUndefined(val) {
120
- return !isUndefined(val);
386
+ _undefined$1.isUndefined = isUndefined$1;
387
+ function isntUndefined$1(val) {
388
+ return !isUndefined$1(val);
121
389
  }
122
- _undefined.isntUndefined = isntUndefined;
390
+ _undefined$1.isntUndefined = isntUndefined$1;
123
391
 
124
- var _function = {};
392
+ var _function$1 = {};
125
393
 
126
- _function.isntFunction = _function.isFunction = void 0;
127
- function isFunction(val) {
394
+ _function$1.isntFunction = _function$1.isFunction = void 0;
395
+ function isFunction$1(val) {
128
396
  return typeof val === 'function';
129
397
  }
130
- _function.isFunction = isFunction;
131
- function isntFunction(val) {
132
- return !isFunction(val);
398
+ _function$1.isFunction = isFunction$1;
399
+ function isntFunction$1(val) {
400
+ return !isFunction$1(val);
133
401
  }
134
- _function.isntFunction = isntFunction;
402
+ _function$1.isntFunction = isntFunction$1;
135
403
 
136
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
137
- const null_1$2 = _null;
138
- const undefined_1$1 = _undefined;
139
- const function_1$2 = _function;
140
- function isAsyncIterable(val) {
141
- return (0, null_1$2.isntNull)(val)
142
- && (0, undefined_1$1.isntUndefined)(val)
143
- && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
404
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
405
+ const null_1$5 = _null$1;
406
+ const undefined_1$3 = _undefined$1;
407
+ const function_1$5 = _function$1;
408
+ function isAsyncIterable$1(val) {
409
+ return (0, null_1$5.isntNull)(val)
410
+ && (0, undefined_1$3.isntUndefined)(val)
411
+ && (0, function_1$5.isFunction)(val[Symbol.asyncIterator]);
144
412
  }
145
- asyncIterable.isAsyncIterable = isAsyncIterable;
146
- function isntAsyncIterable(val) {
147
- return !isAsyncIterable(val);
413
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
414
+ function isntAsyncIterable$1(val) {
415
+ return !isAsyncIterable$1(val);
148
416
  }
149
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
417
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
150
418
 
151
- var bigint = {};
419
+ var bigint$1 = {};
152
420
 
153
- bigint.isntBigInt = bigint.isBigInt = void 0;
154
- function isBigInt(val) {
421
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
422
+ function isBigInt$1(val) {
155
423
  return typeof val === 'bigint';
156
424
  }
157
- bigint.isBigInt = isBigInt;
158
- function isntBigInt(val) {
159
- return !isBigInt(val);
425
+ bigint$1.isBigInt = isBigInt$1;
426
+ function isntBigInt$1(val) {
427
+ return !isBigInt$1(val);
160
428
  }
161
- bigint.isntBigInt = isntBigInt;
429
+ bigint$1.isntBigInt = isntBigInt$1;
162
430
 
163
- var boolean = {};
431
+ var boolean$1 = {};
164
432
 
165
- boolean.isntBoolean = boolean.isBoolean = void 0;
166
- function isBoolean(val) {
433
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
434
+ function isBoolean$1(val) {
167
435
  return typeof val === 'boolean';
168
436
  }
169
- boolean.isBoolean = isBoolean;
170
- function isntBoolean(val) {
171
- return !isBoolean(val);
437
+ boolean$1.isBoolean = isBoolean$1;
438
+ function isntBoolean$1(val) {
439
+ return !isBoolean$1(val);
172
440
  }
173
- boolean.isntBoolean = isntBoolean;
441
+ boolean$1.isntBoolean = isntBoolean$1;
174
442
 
175
- var char = {};
443
+ var char$1 = {};
176
444
 
177
- var string = {};
445
+ var string$1 = {};
178
446
 
179
- string.isntString = string.isString = void 0;
180
- function isString(val) {
447
+ string$1.isntString = string$1.isString = void 0;
448
+ function isString$1(val) {
181
449
  return typeof val === 'string';
182
450
  }
183
- string.isString = isString;
184
- function isntString(val) {
185
- return !isString(val);
451
+ string$1.isString = isString$1;
452
+ function isntString$1(val) {
453
+ return !isString$1(val);
186
454
  }
187
- string.isntString = isntString;
455
+ string$1.isntString = isntString$1;
188
456
 
189
- char.isntChar = char.isChar = void 0;
190
- const string_1$1 = string;
191
- function isChar(val) {
192
- return (0, string_1$1.isString)(val)
457
+ char$1.isntChar = char$1.isChar = void 0;
458
+ const string_1$3 = string$1;
459
+ function isChar$1(val) {
460
+ return (0, string_1$3.isString)(val)
193
461
  && val.length === 1;
194
462
  }
195
- char.isChar = isChar;
196
- function isntChar(val) {
197
- return !isChar(val);
463
+ char$1.isChar = isChar$1;
464
+ function isntChar$1(val) {
465
+ return !isChar$1(val);
198
466
  }
199
- char.isntChar = isntChar;
467
+ char$1.isntChar = isntChar$1;
200
468
 
201
- var date = {};
469
+ var date$1 = {};
202
470
 
203
- date.isntDate = date.isDate = void 0;
204
- function isDate(val) {
471
+ date$1.isntDate = date$1.isDate = void 0;
472
+ function isDate$1(val) {
205
473
  return val instanceof Date;
206
474
  }
207
- date.isDate = isDate;
208
- function isntDate(val) {
209
- return !isDate(val);
475
+ date$1.isDate = isDate$1;
476
+ function isntDate$1(val) {
477
+ return !isDate$1(val);
210
478
  }
211
- date.isntDate = isntDate;
479
+ date$1.isntDate = isntDate$1;
212
480
 
213
- var _enum = {};
481
+ var _enum$1 = {};
214
482
 
215
- _enum.inEnum = void 0;
216
- function inEnum(val, _enum) {
483
+ _enum$1.inEnum = void 0;
484
+ function inEnum$1(val, _enum) {
217
485
  return Object.values(_enum).includes(val);
218
486
  }
219
- _enum.inEnum = inEnum;
487
+ _enum$1.inEnum = inEnum$1;
220
488
 
221
- var error = {};
489
+ var error$1 = {};
222
490
 
223
- error.isntError = error.isError = void 0;
224
- function isError(val) {
491
+ error$1.isntError = error$1.isError = void 0;
492
+ function isError$1(val) {
225
493
  return val instanceof Error;
226
494
  }
227
- error.isError = isError;
228
- function isntError(val) {
229
- return !isError(val);
495
+ error$1.isError = isError$1;
496
+ function isntError$1(val) {
497
+ return !isError$1(val);
230
498
  }
231
- error.isntError = isntError;
499
+ error$1.isntError = isntError$1;
232
500
 
233
- var falsy = {};
501
+ var falsy$1 = {};
234
502
 
235
- falsy.isntFalsy = falsy.isFalsy = void 0;
236
- function isFalsy(val) {
503
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
504
+ function isFalsy$1(val) {
237
505
  return !val;
238
506
  }
239
- falsy.isFalsy = isFalsy;
240
- function isntFalsy(val) {
241
- return !isFalsy(val);
507
+ falsy$1.isFalsy = isFalsy$1;
508
+ function isntFalsy$1(val) {
509
+ return !isFalsy$1(val);
242
510
  }
243
- falsy.isntFalsy = isntFalsy;
511
+ falsy$1.isntFalsy = isntFalsy$1;
244
512
 
245
- var iterable = {};
513
+ var iterable$1 = {};
246
514
 
247
- iterable.isntIterable = iterable.isIterable = void 0;
248
- const null_1$1 = _null;
249
- const undefined_1 = _undefined;
250
- const function_1$1 = _function;
251
- function isIterable(val) {
252
- return (0, null_1$1.isntNull)(val)
253
- && (0, undefined_1.isntUndefined)(val)
254
- && (0, function_1$1.isFunction)(val[Symbol.iterator]);
515
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
516
+ const null_1$4 = _null$1;
517
+ const undefined_1$2 = _undefined$1;
518
+ const function_1$4 = _function$1;
519
+ function isIterable$1(val) {
520
+ return (0, null_1$4.isntNull)(val)
521
+ && (0, undefined_1$2.isntUndefined)(val)
522
+ && (0, function_1$4.isFunction)(val[Symbol.iterator]);
255
523
  }
256
- iterable.isIterable = isIterable;
257
- function isntIterable(val) {
258
- return !isIterable(val);
524
+ iterable$1.isIterable = isIterable$1;
525
+ function isntIterable$1(val) {
526
+ return !isIterable$1(val);
259
527
  }
260
- iterable.isntIterable = isntIterable;
528
+ iterable$1.isntIterable = isntIterable$1;
261
529
 
262
- var json$1 = {};
530
+ var json$2 = {};
263
531
 
264
- var number = {};
532
+ var number$1 = {};
265
533
 
266
- number.isntNumber = number.isNumber = void 0;
267
- function isNumber(val) {
534
+ number$1.isntNaN = number$1.isNaN = number$1.isNegativeInfinity = number$1.isPositiveInfinity = number$1.isFinite = number$1.isntNumber = number$1.isNumber = void 0;
535
+ function isNumber$1(val) {
268
536
  return typeof val === 'number';
269
537
  }
270
- number.isNumber = isNumber;
271
- function isntNumber(val) {
272
- return !isNumber(val);
538
+ number$1.isNumber = isNumber$1;
539
+ function isntNumber$1(val) {
540
+ return !isNumber$1(val);
273
541
  }
274
- number.isntNumber = isntNumber;
542
+ number$1.isntNumber = isntNumber$1;
543
+ function isFinite$1(val) {
544
+ return Number.isFinite(val);
545
+ }
546
+ number$1.isFinite = isFinite$1;
547
+ function isPositiveInfinity$1(val) {
548
+ return val === Infinity;
549
+ }
550
+ number$1.isPositiveInfinity = isPositiveInfinity$1;
551
+ function isNegativeInfinity$1(val) {
552
+ return val === -Infinity;
553
+ }
554
+ number$1.isNegativeInfinity = isNegativeInfinity$1;
555
+ function isNaN$1(val) {
556
+ return Number.isNaN(val);
557
+ }
558
+ number$1.isNaN = isNaN$1;
559
+ function isntNaN$1(val) {
560
+ return !isNaN$1(val);
561
+ }
562
+ number$1.isntNaN = isntNaN$1;
275
563
 
276
- var object = {};
564
+ var object$1 = {};
277
565
 
278
566
  /** Detect free variable `global` from Node.js. */
279
567
 
@@ -501,7 +789,7 @@ var objectCtorString = funcToString.call(Object);
501
789
  * _.isPlainObject(Object.create(null));
502
790
  * // => true
503
791
  */
504
- function isPlainObject$1(value) {
792
+ function isPlainObject$2(value) {
505
793
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
506
794
  return false;
507
795
  }
@@ -514,59 +802,59 @@ function isPlainObject$1(value) {
514
802
  funcToString.call(Ctor) == objectCtorString;
515
803
  }
516
804
 
517
- var isPlainObject_1$1 = isPlainObject$1;
805
+ var isPlainObject_1$2 = isPlainObject$2;
518
806
 
519
- var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
807
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
520
808
  return (mod && mod.__esModule) ? mod : { "default": mod };
521
- };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
522
- const isPlainObject_1 = __importDefault(isPlainObject_1$1);
523
- function isObject(val) {
809
+ };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
810
+ const isPlainObject_1$1 = __importDefault$1(isPlainObject_1$2);
811
+ function isObject$1(val) {
524
812
  return val !== null
525
813
  && typeof val === 'object';
526
814
  }
527
- object.isObject = isObject;
528
- function isntObject(val) {
529
- return !isObject(val);
815
+ object$1.isObject = isObject$1;
816
+ function isntObject$1(val) {
817
+ return !isObject$1(val);
530
818
  }
531
- object.isntObject = isntObject;
532
- function isPlainObject(val) {
533
- return (0, isPlainObject_1.default)(val);
819
+ object$1.isntObject = isntObject$1;
820
+ function isPlainObject$1(val) {
821
+ return (0, isPlainObject_1$1.default)(val);
534
822
  }
535
- object.isPlainObject = isPlainObject;
536
- function isntPlainObject(val) {
537
- return !isPlainObject(val);
823
+ object$1.isPlainObject = isPlainObject$1;
824
+ function isntPlainObject$1(val) {
825
+ return !isPlainObject$1(val);
538
826
  }
539
- object.isntPlainObject = isntPlainObject;
540
- function isEmptyObject(val) {
827
+ object$1.isntPlainObject = isntPlainObject$1;
828
+ function isEmptyObject$1(val) {
541
829
  return Object.keys(val).length === 0;
542
830
  }
543
- object.isEmptyObject = isEmptyObject;
544
- function isntEmptyObject(val) {
831
+ object$1.isEmptyObject = isEmptyObject$1;
832
+ function isntEmptyObject$1(val) {
545
833
  return Object.keys(val).length !== 0;
546
834
  }
547
- object.isntEmptyObject = isntEmptyObject;
548
-
549
- json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
550
- const null_1 = _null;
551
- const boolean_1 = boolean;
552
- const string_1 = string;
553
- const number_1 = number;
554
- const array_1 = array;
555
- const object_1$1 = object;
556
- function isJson(val) {
557
- return (0, null_1.isNull)(val)
558
- || (0, boolean_1.isBoolean)(val)
559
- || (0, string_1.isString)(val)
560
- || (0, number_1.isNumber)(val)
561
- || ((0, array_1.isArray)(val) && val.every(isJson))
562
- || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
563
- }
564
- json$1.isJson = isJson;
565
- function isntJson(val) {
566
- return !isJson(val);
567
- }
568
- json$1.isntJson = isntJson;
569
- function isJsonable(val) {
835
+ object$1.isntEmptyObject = isntEmptyObject$1;
836
+
837
+ json$2.isntJsonable = json$2.isJsonable = json$2.isntJson = json$2.isJson = void 0;
838
+ const null_1$3 = _null$1;
839
+ const boolean_1$1 = boolean$1;
840
+ const string_1$2 = string$1;
841
+ const number_1$1 = number$1;
842
+ const array_1$1 = array$1;
843
+ const object_1$3 = object$1;
844
+ function isJson$1(val) {
845
+ return (0, null_1$3.isNull)(val)
846
+ || (0, boolean_1$1.isBoolean)(val)
847
+ || (0, string_1$2.isString)(val)
848
+ || (0, number_1$1.isNumber)(val)
849
+ || ((0, array_1$1.isArray)(val) && val.every(isJson$1))
850
+ || ((0, object_1$3.isPlainObject)(val) && Object.values(val).every(isJson$1));
851
+ }
852
+ json$2.isJson = isJson$1;
853
+ function isntJson$1(val) {
854
+ return !isJson$1(val);
855
+ }
856
+ json$2.isntJson = isntJson$1;
857
+ function isJsonable$1(val) {
570
858
  try {
571
859
  JSON.stringify(val);
572
860
  return true;
@@ -575,39 +863,39 @@ function isJsonable(val) {
575
863
  return false;
576
864
  }
577
865
  }
578
- json$1.isJsonable = isJsonable;
579
- function isntJsonable(val) {
580
- return !isntJsonable();
866
+ json$2.isJsonable = isJsonable$1;
867
+ function isntJsonable$1(val) {
868
+ return !isntJsonable$1();
581
869
  }
582
- json$1.isntJsonable = isntJsonable;
870
+ json$2.isntJsonable = isntJsonable$1;
583
871
 
584
- var promise = {};
872
+ var promise$1 = {};
585
873
 
586
- promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
587
- const object_1 = object;
588
- const function_1 = _function;
589
- function isPromise(val) {
874
+ promise$1.isPromiseLike = promise$1.isntPromiseLike = promise$1.isntPromise = promise$1.isPromise = void 0;
875
+ const object_1$2 = object$1;
876
+ const function_1$3 = _function$1;
877
+ function isPromise$1(val) {
590
878
  return val instanceof Promise;
591
879
  }
592
- promise.isPromise = isPromise;
593
- function isntPromise(val) {
594
- return !isPromise(val);
880
+ promise$1.isPromise = isPromise$1;
881
+ function isntPromise$1(val) {
882
+ return !isPromise$1(val);
595
883
  }
596
- promise.isntPromise = isntPromise;
597
- function isntPromiseLike(val) {
598
- return !isPromiseLike(val);
884
+ promise$1.isntPromise = isntPromise$1;
885
+ function isntPromiseLike$1(val) {
886
+ return !isPromiseLike$1(val);
599
887
  }
600
- promise.isntPromiseLike = isntPromiseLike;
601
- function isPromiseLike(val) {
602
- return (0, object_1.isObject)(val)
603
- && (0, function_1.isFunction)(val.then);
888
+ promise$1.isntPromiseLike = isntPromiseLike$1;
889
+ function isPromiseLike$1(val) {
890
+ return (0, object_1$2.isObject)(val)
891
+ && (0, function_1$3.isFunction)(val.then);
604
892
  }
605
- promise.isPromiseLike = isPromiseLike;
893
+ promise$1.isPromiseLike = isPromiseLike$1;
606
894
 
607
- var url$1 = {};
895
+ var url$2 = {};
608
896
 
609
- url$1.isAbsoluteURL = void 0;
610
- function isAbsoluteURL(str) {
897
+ url$2.isAbsoluteURL = void 0;
898
+ function isAbsoluteURL$1(str) {
611
899
  try {
612
900
  new URL(str);
613
901
  return true;
@@ -616,210 +904,109 @@ function isAbsoluteURL(str) {
616
904
  return false;
617
905
  }
618
906
  }
619
- url$1.isAbsoluteURL = isAbsoluteURL;
907
+ url$2.isAbsoluteURL = isAbsoluteURL$1;
620
908
 
621
- (function (exports) {
622
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
623
- if (k2 === undefined) k2 = k;
624
- var desc = Object.getOwnPropertyDescriptor(m, k);
625
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
626
- desc = { enumerable: true, get: function() { return m[k]; } };
627
- }
628
- Object.defineProperty(o, k2, desc);
629
- }) : (function(o, m, k, k2) {
630
- if (k2 === undefined) k2 = k;
631
- o[k2] = m[k];
632
- }));
633
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
634
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
635
- };__exportStar(array, exports);
636
- __exportStar(asyncIterable, exports);
637
- __exportStar(bigint, exports);
638
- __exportStar(boolean, exports);
639
- __exportStar(char, exports);
640
- __exportStar(date, exports);
641
- __exportStar(_enum, exports);
642
- __exportStar(error, exports);
643
- __exportStar(falsy, exports);
644
- __exportStar(_function, exports);
645
- __exportStar(iterable, exports);
646
- __exportStar(json$1, exports);
647
- __exportStar(_null, exports);
648
- __exportStar(number, exports);
649
- __exportStar(object, exports);
650
- __exportStar(promise, exports);
651
- __exportStar(string, exports);
652
- __exportStar(_undefined, exports);
653
- __exportStar(url$1, exports);
654
-
655
- }(es2018$4));
909
+ var regexp$1 = {};
656
910
 
657
- function get(...transformers) {
658
- return request('GET', ...transformers);
659
- }
660
- function head(...transformers) {
661
- return request('HEAD', ...transformers);
662
- }
663
- function post(...transformers) {
664
- return request('POST', ...transformers);
665
- }
666
- function put(...transformers) {
667
- return request('PUT', ...transformers);
668
- }
669
- function patch(...transformers) {
670
- return request('PATCH', ...transformers);
671
- }
672
- function del(...transformers) {
673
- return request('DELETE', ...transformers);
674
- }
675
- function request(method, ...transformers) {
676
- const options = transformers.reduce((options, trans) => es2018$4.isFunction(trans) ? trans(options) : options, {
677
- url: new URL('http://localhost'),
678
- headers: new es2018$5.Headers()
679
- });
680
- const headers = new es2018$5.Headers(options.headers);
681
- return new es2018$5.Request(options.url.href, {
682
- method,
683
- headers,
684
- signal: options.signal,
685
- body: options.payload,
686
- keepalive: options.keepalive
687
- });
911
+ regexp$1.isntRegExp = regexp$1.isRegExp = void 0;
912
+ function isRegExp$1(val) {
913
+ return val instanceof RegExp;
688
914
  }
689
-
690
- function url(...urls) {
691
- return (options) => {
692
- const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
693
- return Object.assign(Object.assign({}, options), { url });
694
- };
915
+ regexp$1.isRegExp = isRegExp$1;
916
+ function isntRegExp$1(val) {
917
+ return !isRegExp$1(val);
695
918
  }
919
+ regexp$1.isntRegExp = isntRegExp$1;
696
920
 
697
- function text(payload) {
698
- return (options) => {
699
- const headers = new es2018$5.Headers(options.headers);
700
- headers.set('Content-Type', 'application/x-www-form-urlencoded');
701
- return Object.assign(Object.assign({}, options), { headers,
702
- payload });
703
- };
704
- }
921
+ var symbol$1 = {};
705
922
 
706
- function json(payload) {
707
- return (options) => {
708
- const headers = new es2018$5.Headers(options.headers);
709
- headers.set('Content-Type', 'application/json');
710
- return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
711
- };
923
+ symbol$1.isntSymbol = symbol$1.isSymbol = void 0;
924
+ function isSymbol$1(val) {
925
+ return typeof val === 'symbol';
712
926
  }
713
-
714
- var papaparse_min = {exports: {}};
715
-
716
- /* @license
717
- Papa Parse
718
- v5.3.2
719
- https://github.com/mholt/PapaParse
720
- License: MIT
721
- */
722
-
723
- (function (module, exports) {
724
- !function(e,t){module.exports=t();}(commonjsGlobal,function s(){var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=n&&/blob:/i.test((f.location||{}).protocol),a={},h=0,b={parse:function(e,t){var i=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var r=function(){if(!b.WORKERS_SUPPORTED)return !1;var e=(i=f.URL||f.webkitURL||null,r=s.toString(),b.BLOB_URL||(b.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var i,r;return t.onmessage=_,t.id=h++,a[t.id]=t}();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new l(t):new p(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,i=!1,r=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");r=t.columns;}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/);}();var h=new RegExp(j(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if("object"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if("object"==typeof e)return "string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||r),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error("Unable to serialize unrecognized input");function u(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=v(e[a],a);0<t.length&&(r+=y);}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c]);}u=""===d.join("").trim();}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(r+=m);var g=n&&s?e[p]:p;r+=v(t[o][g],p);}o<t.length-1&&(!i||0<h&&!f)&&(r+=y);}}return r}function v(e,t){if(null==e)return "";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,i=!0);var r=e.toString().replace(h,a);return (i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return !0;return !1}(r,b.BAD_DELIMITERS)||-1<r.indexOf(m)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?s+r+s:r}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=i,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return !0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)});}),e(),this;function e(){if(0!==h.length){var e,t,i,r,n=h[0];if(M(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,i=n.inputElem,r=s.reason,void(M(o.error)&&o.error({name:e},t,i,r));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config));}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){M(a)&&a(e,n.file,n.inputElem),u();},b.parse(n.file,n.instanceConfig);}else M(o.complete)&&o.complete();}function u(){h.splice(0,1),e();}};}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t;}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i);}this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=r.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(M(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0;}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!M(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0;},this._sendError=function(e){M(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1});};}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded();}:function(){this._readChunk();},this.stream=function(e){this._input=e,this._nextChunk();},this._readChunk=function(){if(this._finished)this._chunkLoaded();else {if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)r.setRequestHeader(t,e[t]);}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+i);}try{r.send(this._config.downloadRequestBody);}catch(e){this._chunkError(e.message);}n&&0===r.status&&this._chunkError();}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return -1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)));},this._chunkError=function(e){var t=r.statusText||e;this._sendError(new Error(t));};}function c(e){var r,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),u.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)):r=new FileReaderSync,this._nextChunk();},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk();},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t);}var i=r.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:i}});},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result);},this._chunkError=function(){this._sendError(r.error);};}function p(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=i.substring(0,t),i=i.substring(t)):(e=i,i=""),this._finished=!i,this.parseChunk(e)}};}function g(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause();},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume();},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError);},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0);},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0;},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()));}catch(e){this._streamError(e);}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e);},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("");},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError);},this);}function i(m){var a,o,h,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,t=this,i=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(M(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else {if(g(),0===c.data.length)return;i+=e.data.length,m.preview&&i>m.preview?o.abort():(c.data=c.data[0],p(c,t));}};}function y(e){return "greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return !y(e)})),_()&&function(){if(!c)return;function e(e,t){M(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e);}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1);}else c.data.forEach(e);}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var i,r=m.header?{}:[];for(i=0;i<e.length;i++){var n=i,s=e[i];m.header&&(n=i>=l.length?"__parsed_extra":l[i]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(s)):r[n]=s;}return m.header&&(i>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+i,f+t):i<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+i,f+t)),r}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return i=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[i]&&(m.dynamicTyping[i]=m.dynamicTypingFunction(i)),!0===(m.dynamicTyping[i]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return !0}return !1}(t)?parseFloat(t):u.test(t)?new Date(t):""===t?null:t):t;var i;}function k(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),c.errors.push(n);}this.parse=function(e,t,i){var r=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(j(t)+"([^]*?)"+j(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return "\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(e,r)),h=!1,m.delimiter)M(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else {var n=function(e,t,i,r,n){var s,a,o,h;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var u=0;u<n.length;u++){var f=n[u],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(i&&y(p.data[g]))c++;else {var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_;}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===h||h<l)&&1.99<l&&(a=d,s=f,h=l);}return {successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(h=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter;}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,i),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=M(m.chunk)?"":a.substring(o.getCharIndex());},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3);},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,M(m.complete)&&m.complete(c),a="";};}function j(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e){var S,O=(e=e||{}).delimiter,x=e.newline,I=e.comments,T=e.step,D=e.preview,A=e.fastMode,L=S=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<b.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");!0===I?I="#":("string"!=typeof I||-1<b.BAD_DELIMITERS.indexOf(I))&&(I=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var F=0,z=!1;this.parse=function(r,t,i){if("string"!=typeof r)throw new Error("Input must be a string");var n=r.length,e=O.length,s=x.length,a=I.length,o=M(T),h=[],u=[],f=[],d=F=0;if(!r)return C();if(A||!1!==A&&-1===r.indexOf(S)){for(var l=r.split(x),c=0;c<l.length;c++){if(f=l[c],F+=f.length,c!==l.length-1)F+=x.length;else if(i)return C();if(!I||f.substring(0,a)!==I){if(o){if(h=[],k(f.split(O)),R(),z)return C()}else k(f.split(O));if(D&&D<=c)return h=h.slice(0,D),C(!0)}}return C()}for(var p=r.indexOf(O,F),g=r.indexOf(x,F),_=new RegExp(j(L)+j(S),"g"),m=r.indexOf(S,F);;)if(r[F]!==S)if(I&&0===f.length&&r.substring(F,F+a)===I){if(-1===g)return C();F=g+s,g=r.indexOf(x,F),p=r.indexOf(O,F);}else if(-1!==p&&(p<g||-1===g))f.push(r.substring(F,p)),F=p+e,p=r.indexOf(O,F);else {if(-1===g)break;if(f.push(r.substring(F,g)),w(g+s),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0)}else for(m=F,F++;;){if(-1===(m=r.indexOf(S,m+1)))return i||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:F}),E();if(m===n-1)return E(r.substring(F,m).replace(_,S));if(S!==L||r[m+1]!==L){if(S===L||0===m||r[m-1]!==L){-1!==p&&p<m+1&&(p=r.indexOf(O,m+1)),-1!==g&&g<m+1&&(g=r.indexOf(x,m+1));var y=b(-1===g?p:Math.min(p,g));if(r.substr(m+1+y,e)===O){f.push(r.substring(F,m).replace(_,S)),r[F=m+1+y+e]!==S&&(m=r.indexOf(S,F)),p=r.indexOf(O,F),g=r.indexOf(x,F);break}var v=b(g);if(r.substring(m+1+v,m+1+v+s)===x){if(f.push(r.substring(F,m).replace(_,S)),w(m+1+v+s),p=r.indexOf(O,F),m=r.indexOf(S,F),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:F}),m++;}}else m++;}return E();function k(e){h.push(e),d=F;}function b(e){var t=0;if(-1!==e){var i=r.substring(m+1,e);i&&""===i.trim()&&(t=i.length);}return t}function E(e){return i||(void 0===e&&(e=r.substring(F)),f.push(e),F=n,k(f),o&&R()),C()}function w(e){F=e,k(f),f=[],g=r.indexOf(x,F);}function C(e){return {data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:z,truncated:!!e,cursor:d+(t||0)}}}function R(){T(C()),h=[],u=[];}},this.abort=function(){z=!0;},this.getCharIndex=function(){return F};}function _(e){var t=e.data,i=a[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}});},pause:y,resume:y};if(M(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results;}else M(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results);}t.finished&&!r&&m(t.workerId,t.results);}function m(e,t){var i=a[e];M(i.userComplete)&&i.userComplete(t),i.terminate(),delete a[e];}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=w(e[i]);return t}function v(e,t){return function(){e.apply(t,arguments);}}function M(e){return "function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var i=b.parse(t.input,t.config);i&&f.postMessage({workerId:b.WORKER_ID,results:i,finished:!0});}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(u.prototype)).constructor=g,b});
725
- }(papaparse_min));
726
-
727
- var es2018$3 = {};
728
-
729
- var customError = {};
730
-
731
- var es2018$2 = {};
732
-
733
- var middleware = {};
734
-
735
- var chunkAsync$1 = {};
736
-
737
- var es2018$1 = {};
738
-
739
- var go$1 = {};
740
-
741
- go$1.go = void 0;
742
- function go(fn) {
743
- return fn();
927
+ symbol$1.isSymbol = isSymbol$1;
928
+ function isntSymbol$1(val) {
929
+ return !isSymbol$1(val);
744
930
  }
745
- go$1.go = go;
931
+ symbol$1.isntSymbol = isntSymbol$1;
746
932
 
747
933
  (function (exports) {
748
934
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
749
935
  if (k2 === undefined) k2 = k;
750
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
936
+ var desc = Object.getOwnPropertyDescriptor(m, k);
937
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
938
+ desc = { enumerable: true, get: function() { return m[k]; } };
939
+ }
940
+ Object.defineProperty(o, k2, desc);
751
941
  }) : (function(o, m, k, k2) {
752
942
  if (k2 === undefined) k2 = k;
753
943
  o[k2] = m[k];
754
944
  }));
755
945
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
756
946
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
757
- };__exportStar(go$1, exports);
758
-
759
- }(es2018$1));
760
-
761
- chunkAsync$1.chunkAsync = void 0;
762
- const go_1$f = es2018$1;
763
- const errors_1$f = es2018$3;
764
- function chunkAsync(iterable, size) {
765
- (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
766
- (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
767
- return (0, go_1$f.go)(async function* () {
768
- let buffer = [];
769
- for await (const element of iterable) {
770
- buffer.push(element);
771
- if (buffer.length >= size) {
772
- yield buffer;
773
- buffer = [];
774
- }
775
- }
776
- if (buffer.length)
777
- yield buffer;
778
- });
779
- }
780
- chunkAsync$1.chunkAsync = chunkAsync;
781
-
782
- var chunkByAsync$1 = {};
947
+ };__exportStar(array$1, exports);
948
+ __exportStar(asyncIterable$1, exports);
949
+ __exportStar(bigint$1, exports);
950
+ __exportStar(boolean$1, exports);
951
+ __exportStar(char$1, exports);
952
+ __exportStar(date$1, exports);
953
+ __exportStar(_enum$1, exports);
954
+ __exportStar(error$1, exports);
955
+ __exportStar(falsy$1, exports);
956
+ __exportStar(_function$1, exports);
957
+ __exportStar(iterable$1, exports);
958
+ __exportStar(json$2, exports);
959
+ __exportStar(_null$1, exports);
960
+ __exportStar(number$1, exports);
961
+ __exportStar(object$1, exports);
962
+ __exportStar(promise$1, exports);
963
+ __exportStar(string$1, exports);
964
+ __exportStar(_undefined$1, exports);
965
+ __exportStar(url$2, exports);
966
+ __exportStar(regexp$1, exports);
967
+ __exportStar(symbol$1, exports);
968
+
969
+ }(es2018$6));
783
970
 
784
971
  chunkByAsync$1.chunkByAsync = void 0;
785
- const types_1$k = es2018$4;
972
+ const types_1$m = es2018$6;
786
973
  function chunkByAsync(iterable, predicate) {
787
- if ((0, types_1$k.isAsyncIterable)(iterable)) {
788
- return chunkByAsyncIterable(iterable);
974
+ if ((0, types_1$m.isAsyncIterable)(iterable)) {
975
+ return chunkByAsyncIterable(iterable, predicate);
789
976
  }
790
977
  else {
791
- return chunkByIterable(iterable);
978
+ return chunkByIterable(iterable, predicate);
792
979
  }
793
- async function* chunkByAsyncIterable(iterable) {
794
- let buffer = [];
795
- let index = 0;
796
- for await (const element of iterable) {
797
- buffer.push(element);
798
- if (await predicate(element, index)) {
799
- yield buffer;
800
- buffer = [];
801
- }
802
- index++;
803
- }
804
- if (buffer.length)
980
+ }
981
+ chunkByAsync$1.chunkByAsync = chunkByAsync;
982
+ async function* chunkByAsyncIterable(iterable, predicate) {
983
+ let buffer = [];
984
+ let index = 0;
985
+ for await (const element of iterable) {
986
+ buffer.push(element);
987
+ if (await predicate(element, index)) {
805
988
  yield buffer;
806
- }
807
- async function* chunkByIterable(iterable) {
808
- let buffer = [];
809
- let index = 0;
810
- for (const element of iterable) {
811
- buffer.push(element);
812
- if (await predicate(element, index)) {
813
- yield buffer;
814
- buffer = [];
815
- }
816
- index++;
989
+ buffer = [];
817
990
  }
818
- if (buffer.length)
991
+ index++;
992
+ }
993
+ if (buffer.length)
994
+ yield buffer;
995
+ }
996
+ async function* chunkByIterable(iterable, predicate) {
997
+ let buffer = [];
998
+ let index = 0;
999
+ for (const element of iterable) {
1000
+ buffer.push(element);
1001
+ if (await predicate(element, index)) {
819
1002
  yield buffer;
1003
+ buffer = [];
1004
+ }
1005
+ index++;
820
1006
  }
1007
+ if (buffer.length)
1008
+ yield buffer;
821
1009
  }
822
- chunkByAsync$1.chunkByAsync = chunkByAsync;
823
1010
 
824
1011
  var chunkBy$1 = {};
825
1012
 
@@ -843,12 +1030,12 @@ chunkBy$1.chunkBy = chunkBy;
843
1030
  var chunk$1 = {};
844
1031
 
845
1032
  chunk$1.chunk = void 0;
846
- const go_1$e = es2018$1;
847
- const errors_1$e = es2018$3;
1033
+ const go_1$f = es2018$9;
1034
+ const errors_1$e = es2018$b;
848
1035
  function chunk(iterable, size) {
849
1036
  (0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
850
1037
  (0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
851
- return (0, go_1$e.go)(function* () {
1038
+ return (0, go_1$f.go)(function* () {
852
1039
  let buffer = [];
853
1040
  for (const element of iterable) {
854
1041
  buffer.push(element);
@@ -866,12 +1053,12 @@ chunk$1.chunk = chunk;
866
1053
  var concatAsync$1 = {};
867
1054
 
868
1055
  concatAsync$1.concatAsync = void 0;
869
- const types_1$j = es2018$4;
870
- const go_1$d = es2018$1;
1056
+ const types_1$l = es2018$6;
1057
+ const go_1$e = es2018$9;
871
1058
  function concatAsync(iterable, ...otherIterables) {
872
- return (0, go_1$d.go)(async function* () {
1059
+ return (0, go_1$e.go)(async function* () {
873
1060
  for (const iter of [iterable, ...otherIterables]) {
874
- if ((0, types_1$j.isAsyncIterable)(iter)) {
1061
+ if ((0, types_1$l.isAsyncIterable)(iter)) {
875
1062
  for await (const element of iter) {
876
1063
  yield element;
877
1064
  }
@@ -889,9 +1076,9 @@ concatAsync$1.concatAsync = concatAsync;
889
1076
  var concat$1 = {};
890
1077
 
891
1078
  concat$1.concat = void 0;
892
- const go_1$c = es2018$1;
1079
+ const go_1$d = es2018$9;
893
1080
  function concat(iterable, ...otherIterables) {
894
- return (0, go_1$c.go)(function* () {
1081
+ return (0, go_1$d.go)(function* () {
895
1082
  for (const iter of [iterable, ...otherIterables]) {
896
1083
  yield* iter;
897
1084
  }
@@ -918,15 +1105,15 @@ function* copyIterable(iterable) {
918
1105
  utils.copyIterable = copyIterable;
919
1106
 
920
1107
  dropAsync$1.dropAsync = void 0;
921
- const go_1$b = es2018$1;
1108
+ const go_1$c = es2018$9;
922
1109
  const utils_1$3 = utils;
923
- const errors_1$d = es2018$3;
1110
+ const errors_1$d = es2018$b;
924
1111
  function dropAsync(iterable, count) {
925
1112
  (0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
926
1113
  (0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
927
1114
  if (count === 0)
928
1115
  return (0, utils_1$3.copyAsyncIterable)(iterable);
929
- return (0, go_1$b.go)(async function* () {
1116
+ return (0, go_1$c.go)(async function* () {
930
1117
  var _a;
931
1118
  const iterator = iterable[Symbol.asyncIterator]();
932
1119
  let done;
@@ -953,15 +1140,15 @@ dropAsync$1.dropAsync = dropAsync;
953
1140
  var dropRightAsync$1 = {};
954
1141
 
955
1142
  dropRightAsync$1.dropRightAsync = void 0;
956
- const go_1$a = es2018$1;
1143
+ const go_1$b = es2018$9;
957
1144
  const utils_1$2 = utils;
958
- const errors_1$c = es2018$3;
1145
+ const errors_1$c = es2018$b;
959
1146
  function dropRightAsync(iterable, count) {
960
1147
  (0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
961
1148
  (0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
962
1149
  if (count === 0)
963
1150
  return (0, utils_1$2.copyAsyncIterable)(iterable);
964
- return (0, go_1$a.go)(async function* () {
1151
+ return (0, go_1$b.go)(async function* () {
965
1152
  const arr = await toArrayAsync$2(iterable);
966
1153
  const result = arr.slice(0, -count);
967
1154
  for (const value of result) {
@@ -981,15 +1168,15 @@ async function toArrayAsync$2(iterable) {
981
1168
  var dropRight$1 = {};
982
1169
 
983
1170
  dropRight$1.dropRight = void 0;
984
- const go_1$9 = es2018$1;
1171
+ const go_1$a = es2018$9;
985
1172
  const utils_1$1 = utils;
986
- const errors_1$b = es2018$3;
1173
+ const errors_1$b = es2018$b;
987
1174
  function dropRight(iterable, count) {
988
1175
  (0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
989
1176
  (0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
990
1177
  if (count === 0)
991
1178
  return (0, utils_1$1.copyIterable)(iterable);
992
- return (0, go_1$9.go)(function* () {
1179
+ return (0, go_1$a.go)(function* () {
993
1180
  const arr = Array.from(iterable);
994
1181
  yield* arr.slice(0, -count);
995
1182
  });
@@ -999,58 +1186,58 @@ dropRight$1.dropRight = dropRight;
999
1186
  var dropUntilAsync$1 = {};
1000
1187
 
1001
1188
  dropUntilAsync$1.dropUntilAsync = void 0;
1002
- const types_1$i = es2018$4;
1189
+ const types_1$k = es2018$6;
1003
1190
  function dropUntilAsync(iterable, predicate) {
1004
- if ((0, types_1$i.isAsyncIterable)(iterable)) {
1005
- return dropUntilAsyncIterable(iterable);
1191
+ if ((0, types_1$k.isAsyncIterable)(iterable)) {
1192
+ return dropUntilAsyncIterable(iterable, predicate);
1006
1193
  }
1007
1194
  else {
1008
- return dropUntilIterable(iterable);
1195
+ return dropUntilIterable(iterable, predicate);
1009
1196
  }
1010
- async function* dropUntilAsyncIterable(iterable) {
1011
- var _a;
1012
- const iterator = iterable[Symbol.asyncIterator]();
1013
- let done;
1014
- try {
1015
- let index = 0;
1016
- let value;
1017
- while ({ value, done } = await iterator.next(), !done) {
1018
- if (await predicate(value, index++))
1019
- break;
1020
- }
1021
- while (!done) {
1022
- yield value;
1023
- ({ value, done } = await iterator.next());
1024
- }
1197
+ }
1198
+ dropUntilAsync$1.dropUntilAsync = dropUntilAsync;
1199
+ async function* dropUntilAsyncIterable(iterable, predicate) {
1200
+ var _a;
1201
+ const iterator = iterable[Symbol.asyncIterator]();
1202
+ let done;
1203
+ try {
1204
+ let index = 0;
1205
+ let value;
1206
+ while ({ value, done } = await iterator.next(), !done) {
1207
+ if (await predicate(value, index++))
1208
+ break;
1025
1209
  }
1026
- finally {
1027
- if (!done)
1028
- await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1210
+ while (!done) {
1211
+ yield value;
1212
+ ({ value, done } = await iterator.next());
1029
1213
  }
1030
1214
  }
1031
- async function* dropUntilIterable(iterable) {
1032
- var _a;
1033
- const iterator = iterable[Symbol.iterator]();
1034
- let done;
1035
- try {
1036
- let index = 0;
1037
- let value;
1038
- while ({ value, done } = iterator.next(), !done) {
1039
- if (await predicate(value, index++))
1040
- break;
1041
- }
1042
- while (!done) {
1043
- yield value;
1044
- ({ value, done } = iterator.next());
1045
- }
1215
+ finally {
1216
+ if (!done)
1217
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1218
+ }
1219
+ }
1220
+ async function* dropUntilIterable(iterable, predicate) {
1221
+ var _a;
1222
+ const iterator = iterable[Symbol.iterator]();
1223
+ let done;
1224
+ try {
1225
+ let index = 0;
1226
+ let value;
1227
+ while ({ value, done } = iterator.next(), !done) {
1228
+ if (await predicate(value, index++))
1229
+ break;
1046
1230
  }
1047
- finally {
1048
- if (!done)
1049
- (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1231
+ while (!done) {
1232
+ yield value;
1233
+ ({ value, done } = iterator.next());
1050
1234
  }
1051
1235
  }
1236
+ finally {
1237
+ if (!done)
1238
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1239
+ }
1052
1240
  }
1053
- dropUntilAsync$1.dropUntilAsync = dropUntilAsync;
1054
1241
 
1055
1242
  var dropUntil$1 = {};
1056
1243
 
@@ -1081,15 +1268,15 @@ dropUntil$1.dropUntil = dropUntil;
1081
1268
  var drop$1 = {};
1082
1269
 
1083
1270
  drop$1.drop = void 0;
1084
- const go_1$8 = es2018$1;
1271
+ const go_1$9 = es2018$9;
1085
1272
  const utils_1 = utils;
1086
- const errors_1$a = es2018$3;
1273
+ const errors_1$a = es2018$b;
1087
1274
  function drop(iterable, count) {
1088
1275
  (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1089
1276
  (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1090
1277
  if (count === 0)
1091
1278
  return (0, utils_1.copyIterable)(iterable);
1092
- return (0, go_1$8.go)(function* () {
1279
+ return (0, go_1$9.go)(function* () {
1093
1280
  var _a;
1094
1281
  const iterator = iterable[Symbol.iterator]();
1095
1282
  let done;
@@ -1116,32 +1303,32 @@ drop$1.drop = drop;
1116
1303
  var filterAsync$1 = {};
1117
1304
 
1118
1305
  filterAsync$1.filterAsync = void 0;
1119
- const types_1$h = es2018$4;
1306
+ const types_1$j = es2018$6;
1120
1307
  function filterAsync(iterable, predicate) {
1121
- if ((0, types_1$h.isAsyncIterable)(iterable)) {
1122
- return filterAsyncIterable(iterable);
1308
+ if ((0, types_1$j.isAsyncIterable)(iterable)) {
1309
+ return filterAsyncIterable(iterable, predicate);
1123
1310
  }
1124
1311
  else {
1125
- return filterIterable(iterable);
1312
+ return filterIterable(iterable, predicate);
1126
1313
  }
1127
- async function* filterAsyncIterable(iterable) {
1128
- let index = 0;
1129
- for await (const element of iterable) {
1130
- if (await predicate(element, index))
1131
- yield element;
1132
- index++;
1133
- }
1314
+ }
1315
+ filterAsync$1.filterAsync = filterAsync;
1316
+ async function* filterAsyncIterable(iterable, predicate) {
1317
+ let index = 0;
1318
+ for await (const element of iterable) {
1319
+ if (await predicate(element, index))
1320
+ yield element;
1321
+ index++;
1134
1322
  }
1135
- async function* filterIterable(iterable) {
1136
- let index = 0;
1137
- for (const element of iterable) {
1138
- if (await predicate(element, index))
1139
- yield element;
1140
- index++;
1141
- }
1323
+ }
1324
+ async function* filterIterable(iterable, predicate) {
1325
+ let index = 0;
1326
+ for (const element of iterable) {
1327
+ if (await predicate(element, index))
1328
+ yield element;
1329
+ index++;
1142
1330
  }
1143
1331
  }
1144
- filterAsync$1.filterAsync = filterAsync;
1145
1332
 
1146
1333
  var filter$1 = {};
1147
1334
 
@@ -1163,47 +1350,47 @@ var flattenDeepAsync$1 = {};
1163
1350
  var flattenByAsync$1 = {};
1164
1351
 
1165
1352
  flattenByAsync$1.flattenByAsync = void 0;
1166
- const types_1$g = es2018$4;
1353
+ const types_1$i = es2018$6;
1167
1354
  function flattenByAsync(iterable, predicate) {
1168
- if ((0, types_1$g.isAsyncIterable)(iterable)) {
1169
- return flattenByAsyncIterable(iterable);
1355
+ if ((0, types_1$i.isAsyncIterable)(iterable)) {
1356
+ return flattenByAsyncIterable(iterable, predicate);
1170
1357
  }
1171
1358
  else {
1172
- return flattenByIterable(iterable);
1359
+ return flattenByIterable(iterable, predicate);
1173
1360
  }
1174
- async function* flattenByAsyncIterable(iterable) {
1175
- const level = 1;
1176
- for await (const element of iterable) {
1177
- if (isFiniteIterable$1(element) && await predicate(element, level)) {
1178
- yield* flatten(element, level + 1);
1179
- }
1180
- else {
1181
- yield element;
1182
- }
1361
+ }
1362
+ flattenByAsync$1.flattenByAsync = flattenByAsync;
1363
+ async function* flattenByAsyncIterable(iterable, predicate) {
1364
+ const level = 1;
1365
+ for await (const element of iterable) {
1366
+ if (isFiniteIterable$1(element) && await predicate(element, level)) {
1367
+ yield* flatten$3(element, predicate, level + 1);
1368
+ }
1369
+ else {
1370
+ yield element;
1183
1371
  }
1184
1372
  }
1185
- function flattenByIterable(iterable) {
1186
- return flatten(iterable, 1);
1187
- }
1188
- async function* flatten(iterable, level) {
1189
- for (const element of iterable) {
1190
- if (isFiniteIterable$1(element) && await predicate(element, level)) {
1191
- yield* flatten(element, level + 1);
1192
- }
1193
- else {
1194
- yield element;
1195
- }
1373
+ }
1374
+ function flattenByIterable(iterable, predicate) {
1375
+ return flatten$3(iterable, predicate, 1);
1376
+ }
1377
+ async function* flatten$3(iterable, predicate, level) {
1378
+ for (const element of iterable) {
1379
+ if (isFiniteIterable$1(element) && await predicate(element, level)) {
1380
+ yield* flatten$3(element, predicate, level + 1);
1381
+ }
1382
+ else {
1383
+ yield element;
1196
1384
  }
1197
1385
  }
1198
1386
  }
1199
- flattenByAsync$1.flattenByAsync = flattenByAsync;
1200
1387
  function isFiniteIterable$1(val) {
1201
- return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
1388
+ return (0, types_1$i.isIterable)(val) && (0, types_1$i.isntChar)(val);
1202
1389
  }
1203
1390
 
1204
1391
  flattenDeepAsync$1.flattenDeepAsync = void 0;
1205
1392
  const flatten_by_async_1 = flattenByAsync$1;
1206
- const errors_1$9 = es2018$3;
1393
+ const errors_1$9 = es2018$b;
1207
1394
  function flattenDeepAsync(iterable, depth = Infinity) {
1208
1395
  (0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1209
1396
  (0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1221,30 +1408,30 @@ flattenAsync$1.flattenAsync = flattenAsync;
1221
1408
  var flattenBy$1 = {};
1222
1409
 
1223
1410
  flattenBy$1.flattenBy = void 0;
1224
- const types_1$f = es2018$4;
1411
+ const types_1$h = es2018$6;
1225
1412
  function flattenBy(iterable, predicate) {
1226
- return flatten(iterable, 1);
1227
- function* flatten(iterable, level) {
1228
- for (const element of iterable) {
1229
- if (isFiniteIterable(element) && predicate(element, level)) {
1230
- yield* flatten(element, level + 1);
1231
- }
1232
- else {
1233
- yield element;
1234
- }
1413
+ return flatten$2(iterable, predicate, 1);
1414
+ }
1415
+ flattenBy$1.flattenBy = flattenBy;
1416
+ function* flatten$2(iterable, predicate, level) {
1417
+ for (const element of iterable) {
1418
+ if (isFiniteIterable(element) && predicate(element, level)) {
1419
+ yield* flatten$2(element, predicate, level + 1);
1420
+ }
1421
+ else {
1422
+ yield element;
1235
1423
  }
1236
1424
  }
1237
1425
  }
1238
- flattenBy$1.flattenBy = flattenBy;
1239
1426
  function isFiniteIterable(val) {
1240
- return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
1427
+ return (0, types_1$h.isIterable)(val) && (0, types_1$h.isntChar)(val);
1241
1428
  }
1242
1429
 
1243
1430
  var flattenDeep$1 = {};
1244
1431
 
1245
1432
  flattenDeep$1.flattenDeep = void 0;
1246
1433
  const flatten_by_1 = flattenBy$1;
1247
- const errors_1$8 = es2018$3;
1434
+ const errors_1$8 = es2018$b;
1248
1435
  function flattenDeep(iterable, depth = Infinity) {
1249
1436
  (0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1250
1437
  (0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1264,30 +1451,30 @@ flatten$1.flatten = flatten;
1264
1451
  var mapAsync$1 = {};
1265
1452
 
1266
1453
  mapAsync$1.mapAsync = void 0;
1267
- const types_1$e = es2018$4;
1454
+ const types_1$g = es2018$6;
1268
1455
  function mapAsync(iterable, fn) {
1269
- if ((0, types_1$e.isAsyncIterable)(iterable)) {
1270
- return mapAsyncIterable(iterable);
1456
+ if ((0, types_1$g.isAsyncIterable)(iterable)) {
1457
+ return mapAsyncIterable(iterable, fn);
1271
1458
  }
1272
1459
  else {
1273
- return mapIterable(iterable);
1460
+ return mapIterable(iterable, fn);
1274
1461
  }
1275
- async function* mapAsyncIterable(iterable) {
1276
- let index = 0;
1277
- for await (const element of iterable) {
1278
- yield await fn(element, index);
1279
- index++;
1280
- }
1462
+ }
1463
+ mapAsync$1.mapAsync = mapAsync;
1464
+ async function* mapAsyncIterable(iterable, fn) {
1465
+ let index = 0;
1466
+ for await (const element of iterable) {
1467
+ yield await fn(element, index);
1468
+ index++;
1281
1469
  }
1282
- async function* mapIterable(iterable) {
1283
- let index = 0;
1284
- for (const element of iterable) {
1285
- yield await fn(element, index);
1286
- index++;
1287
- }
1470
+ }
1471
+ async function* mapIterable(iterable, fn) {
1472
+ let index = 0;
1473
+ for (const element of iterable) {
1474
+ yield await fn(element, index);
1475
+ index++;
1288
1476
  }
1289
1477
  }
1290
- mapAsync$1.mapAsync = mapAsync;
1291
1478
 
1292
1479
  var map$1 = {};
1293
1480
 
@@ -1304,14 +1491,14 @@ map$1.map = map;
1304
1491
  var repeatAsync$1 = {};
1305
1492
 
1306
1493
  repeatAsync$1.repeatAsync = void 0;
1307
- const go_1$7 = es2018$1;
1308
- const errors_1$7 = es2018$3;
1494
+ const go_1$8 = es2018$9;
1495
+ const errors_1$7 = es2018$b;
1309
1496
  function repeatAsync(iterable, times) {
1310
1497
  (0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1311
1498
  (0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1312
1499
  if (times === Infinity)
1313
1500
  warnInfiniteLoop$1();
1314
- return (0, go_1$7.go)(async function* () {
1501
+ return (0, go_1$8.go)(async function* () {
1315
1502
  const cache = [];
1316
1503
  if (times > 0) {
1317
1504
  for await (const element of iterable) {
@@ -1339,14 +1526,14 @@ function isProduction$1() {
1339
1526
  var repeat$1 = {};
1340
1527
 
1341
1528
  repeat$1.repeat = void 0;
1342
- const go_1$6 = es2018$1;
1343
- const errors_1$6 = es2018$3;
1529
+ const go_1$7 = es2018$9;
1530
+ const errors_1$6 = es2018$b;
1344
1531
  function repeat(iterable, times) {
1345
1532
  (0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1346
1533
  (0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1347
1534
  if (times === Infinity)
1348
1535
  warnInfiniteLoop();
1349
- return (0, go_1$6.go)(function* () {
1536
+ return (0, go_1$7.go)(function* () {
1350
1537
  const cache = [];
1351
1538
  if (times > 0) {
1352
1539
  for (const element of iterable) {
@@ -1374,14 +1561,14 @@ function isProduction() {
1374
1561
  var sliceAsync$1 = {};
1375
1562
 
1376
1563
  sliceAsync$1.sliceAsync = void 0;
1377
- const go_1$5 = es2018$1;
1378
- const errors_1$5 = es2018$3;
1564
+ const go_1$6 = es2018$9;
1565
+ const errors_1$5 = es2018$b;
1379
1566
  function sliceAsync(iterable, start, end = Infinity) {
1380
1567
  (0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1381
1568
  (0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1382
1569
  (0, errors_1$5.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1383
1570
  (0, errors_1$5.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1384
- return (0, go_1$5.go)(async function* () {
1571
+ return (0, go_1$6.go)(async function* () {
1385
1572
  let index = 0;
1386
1573
  for await (const element of iterable) {
1387
1574
  if (index >= end)
@@ -1397,14 +1584,14 @@ sliceAsync$1.sliceAsync = sliceAsync;
1397
1584
  var slice$1 = {};
1398
1585
 
1399
1586
  slice$1.slice = void 0;
1400
- const go_1$4 = es2018$1;
1401
- const errors_1$4 = es2018$3;
1587
+ const go_1$5 = es2018$9;
1588
+ const errors_1$4 = es2018$b;
1402
1589
  function slice(iterable, start, end = Infinity) {
1403
1590
  (0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1404
1591
  (0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1405
1592
  (0, errors_1$4.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1406
1593
  (0, errors_1$4.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1407
- return (0, go_1$4.go)(function* () {
1594
+ return (0, go_1$5.go)(function* () {
1408
1595
  let index = 0;
1409
1596
  for (const element of iterable) {
1410
1597
  if (index >= end)
@@ -1438,46 +1625,46 @@ splitAsync$1.splitAsync = splitAsync;
1438
1625
  var splitByAsync$1 = {};
1439
1626
 
1440
1627
  splitByAsync$1.splitByAsync = void 0;
1441
- const types_1$d = es2018$4;
1628
+ const types_1$f = es2018$6;
1442
1629
  function splitByAsync(iterable, predicate) {
1443
- if ((0, types_1$d.isAsyncIterable)(iterable)) {
1444
- return splitByAsyncIterable(iterable);
1630
+ if ((0, types_1$f.isAsyncIterable)(iterable)) {
1631
+ return splitByAsyncIterable(iterable, predicate);
1445
1632
  }
1446
1633
  else {
1447
- return splitByIterable(iterable);
1634
+ return splitByIterable(iterable, predicate);
1448
1635
  }
1449
- async function* splitByIterable(iterable) {
1450
- let buffer = [];
1451
- let index = 0;
1452
- for (const element of iterable) {
1453
- if (await predicate(element, index)) {
1454
- yield buffer;
1455
- buffer = [];
1456
- }
1457
- else {
1458
- buffer.push(element);
1459
- }
1460
- index++;
1636
+ }
1637
+ splitByAsync$1.splitByAsync = splitByAsync;
1638
+ async function* splitByIterable(iterable, predicate) {
1639
+ let buffer = [];
1640
+ let index = 0;
1641
+ for (const element of iterable) {
1642
+ if (await predicate(element, index)) {
1643
+ yield buffer;
1644
+ buffer = [];
1461
1645
  }
1462
- yield buffer;
1646
+ else {
1647
+ buffer.push(element);
1648
+ }
1649
+ index++;
1463
1650
  }
1464
- async function* splitByAsyncIterable(iterable) {
1465
- let buffer = [];
1466
- let index = 0;
1467
- for await (const element of iterable) {
1468
- if (await predicate(element, index)) {
1469
- yield buffer;
1470
- buffer = [];
1471
- }
1472
- else {
1473
- buffer.push(element);
1474
- }
1475
- index++;
1651
+ yield buffer;
1652
+ }
1653
+ async function* splitByAsyncIterable(iterable, predicate) {
1654
+ let buffer = [];
1655
+ let index = 0;
1656
+ for await (const element of iterable) {
1657
+ if (await predicate(element, index)) {
1658
+ yield buffer;
1659
+ buffer = [];
1476
1660
  }
1477
- yield buffer;
1661
+ else {
1662
+ buffer.push(element);
1663
+ }
1664
+ index++;
1478
1665
  }
1666
+ yield buffer;
1479
1667
  }
1480
- splitByAsync$1.splitByAsync = splitByAsync;
1481
1668
 
1482
1669
  var splitBy$1 = {};
1483
1670
 
@@ -1520,12 +1707,12 @@ split$1.split = split;
1520
1707
  var takeAsync$1 = {};
1521
1708
 
1522
1709
  takeAsync$1.takeAsync = void 0;
1523
- const go_1$3 = es2018$1;
1524
- const errors_1$3 = es2018$3;
1710
+ const go_1$4 = es2018$9;
1711
+ const errors_1$3 = es2018$b;
1525
1712
  function takeAsync(iterable, count) {
1526
1713
  (0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1527
1714
  (0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1528
- return (0, go_1$3.go)(async function* () {
1715
+ return (0, go_1$4.go)(async function* () {
1529
1716
  if (count === 0)
1530
1717
  return;
1531
1718
  for await (const element of iterable) {
@@ -1541,12 +1728,12 @@ takeAsync$1.takeAsync = takeAsync;
1541
1728
  var takeRightAsync$1 = {};
1542
1729
 
1543
1730
  takeRightAsync$1.takeRightAsync = void 0;
1544
- const go_1$2 = es2018$1;
1545
- const errors_1$2 = es2018$3;
1731
+ const go_1$3 = es2018$9;
1732
+ const errors_1$2 = es2018$b;
1546
1733
  function takeRightAsync(iterable, count) {
1547
1734
  (0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1548
1735
  (0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1549
- return (0, go_1$2.go)(async function* () {
1736
+ return (0, go_1$3.go)(async function* () {
1550
1737
  var _a;
1551
1738
  const iterator = iterable[Symbol.asyncIterator]();
1552
1739
  let done;
@@ -1571,12 +1758,12 @@ takeRightAsync$1.takeRightAsync = takeRightAsync;
1571
1758
  var takeRight$1 = {};
1572
1759
 
1573
1760
  takeRight$1.takeRight = void 0;
1574
- const go_1$1 = es2018$1;
1575
- const errors_1$1 = es2018$3;
1761
+ const go_1$2 = es2018$9;
1762
+ const errors_1$1 = es2018$b;
1576
1763
  function takeRight(iterable, count) {
1577
1764
  (0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1578
1765
  (0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1579
- return (0, go_1$1.go)(function* () {
1766
+ return (0, go_1$2.go)(function* () {
1580
1767
  var _a;
1581
1768
  const iterator = iterable[Symbol.iterator]();
1582
1769
  let done;
@@ -1601,34 +1788,34 @@ takeRight$1.takeRight = takeRight;
1601
1788
  var takeUntilAsync$1 = {};
1602
1789
 
1603
1790
  takeUntilAsync$1.takeUntilAsync = void 0;
1604
- const types_1$c = es2018$4;
1791
+ const types_1$e = es2018$6;
1605
1792
  function takeUntilAsync(iterable, predicate) {
1606
- if ((0, types_1$c.isAsyncIterable)(iterable)) {
1607
- return takeUntilAsyncIterable(iterable);
1793
+ if ((0, types_1$e.isAsyncIterable)(iterable)) {
1794
+ return takeUntilAsyncIterable(iterable, predicate);
1608
1795
  }
1609
1796
  else {
1610
- return takeUntilIterable(iterable);
1797
+ return takeUntilIterable(iterable, predicate);
1611
1798
  }
1612
- async function* takeUntilAsyncIterable(iterable) {
1613
- let index = 0;
1614
- for await (const element of iterable) {
1615
- if (await predicate(element, index))
1616
- break;
1617
- yield element;
1618
- index++;
1619
- }
1799
+ }
1800
+ takeUntilAsync$1.takeUntilAsync = takeUntilAsync;
1801
+ async function* takeUntilAsyncIterable(iterable, predicate) {
1802
+ let index = 0;
1803
+ for await (const element of iterable) {
1804
+ if (await predicate(element, index))
1805
+ break;
1806
+ yield element;
1807
+ index++;
1620
1808
  }
1621
- async function* takeUntilIterable(iterable) {
1622
- let index = 0;
1623
- for (const element of iterable) {
1624
- if (await predicate(element, index))
1625
- break;
1626
- yield element;
1627
- index++;
1628
- }
1809
+ }
1810
+ async function* takeUntilIterable(iterable, predicate) {
1811
+ let index = 0;
1812
+ for (const element of iterable) {
1813
+ if (await predicate(element, index))
1814
+ break;
1815
+ yield element;
1816
+ index++;
1629
1817
  }
1630
1818
  }
1631
- takeUntilAsync$1.takeUntilAsync = takeUntilAsync;
1632
1819
 
1633
1820
  var takeUntil$1 = {};
1634
1821
 
@@ -1647,12 +1834,12 @@ takeUntil$1.takeUntil = takeUntil;
1647
1834
  var take$1 = {};
1648
1835
 
1649
1836
  take$1.take = void 0;
1650
- const go_1 = es2018$1;
1651
- const errors_1 = es2018$3;
1837
+ const go_1$1 = es2018$9;
1838
+ const errors_1 = es2018$b;
1652
1839
  function take(iterable, count) {
1653
1840
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1654
1841
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1655
- return (0, go_1.go)(function* () {
1842
+ return (0, go_1$1.go)(function* () {
1656
1843
  if (count === 0)
1657
1844
  return;
1658
1845
  for (const element of iterable) {
@@ -1668,32 +1855,32 @@ take$1.take = take;
1668
1855
  var tapAsync$1 = {};
1669
1856
 
1670
1857
  tapAsync$1.tapAsync = void 0;
1671
- const types_1$b = es2018$4;
1858
+ const types_1$d = es2018$6;
1672
1859
  function tapAsync(iterable, fn) {
1673
- if ((0, types_1$b.isAsyncIterable)(iterable)) {
1674
- return tapAsyncIterable(iterable);
1860
+ if ((0, types_1$d.isAsyncIterable)(iterable)) {
1861
+ return tapAsyncIterable(iterable, fn);
1675
1862
  }
1676
1863
  else {
1677
- return tapIterable(iterable);
1864
+ return tapIterable(iterable, fn);
1678
1865
  }
1679
- async function* tapIterable(iterable) {
1680
- let index = 0;
1681
- for (const element of iterable) {
1682
- await fn(element, index);
1683
- yield element;
1684
- index++;
1685
- }
1866
+ }
1867
+ tapAsync$1.tapAsync = tapAsync;
1868
+ async function* tapIterable(iterable, fn) {
1869
+ let index = 0;
1870
+ for (const element of iterable) {
1871
+ await fn(element, index);
1872
+ yield element;
1873
+ index++;
1686
1874
  }
1687
- async function* tapAsyncIterable(iterable) {
1688
- let index = 0;
1689
- for await (const element of iterable) {
1690
- await fn(element, index);
1691
- yield element;
1692
- index++;
1693
- }
1875
+ }
1876
+ async function* tapAsyncIterable(iterable, fn) {
1877
+ let index = 0;
1878
+ for await (const element of iterable) {
1879
+ await fn(element, index);
1880
+ yield element;
1881
+ index++;
1694
1882
  }
1695
1883
  }
1696
- tapAsync$1.tapAsync = tapAsync;
1697
1884
 
1698
1885
  var tap$1 = {};
1699
1886
 
@@ -1751,40 +1938,40 @@ uniqAsync$1.uniqAsync = uniqAsync;
1751
1938
  var uniqByAsync$1 = {};
1752
1939
 
1753
1940
  uniqByAsync$1.uniqByAsync = void 0;
1754
- const types_1$a = es2018$4;
1941
+ const types_1$c = es2018$6;
1755
1942
  function uniqByAsync(iterable, fn) {
1756
- if ((0, types_1$a.isAsyncIterable)(iterable)) {
1757
- return uniqByAsyncIterable(iterable);
1943
+ if ((0, types_1$c.isAsyncIterable)(iterable)) {
1944
+ return uniqByAsyncIterable(iterable, fn);
1758
1945
  }
1759
1946
  else {
1760
- return uniqByIterable(iterable);
1947
+ return uniqByIterable(iterable, fn);
1761
1948
  }
1762
- async function* uniqByAsyncIterable(iterable) {
1763
- const bucket = new Set();
1764
- let index = 0;
1765
- for await (const element of iterable) {
1766
- const result = await fn(element, index);
1767
- if (!bucket.has(result)) {
1768
- yield element;
1769
- bucket.add(result);
1770
- }
1771
- index++;
1949
+ }
1950
+ uniqByAsync$1.uniqByAsync = uniqByAsync;
1951
+ async function* uniqByAsyncIterable(iterable, fn) {
1952
+ const bucket = new Set();
1953
+ let index = 0;
1954
+ for await (const element of iterable) {
1955
+ const result = await fn(element, index);
1956
+ if (!bucket.has(result)) {
1957
+ yield element;
1958
+ bucket.add(result);
1772
1959
  }
1960
+ index++;
1773
1961
  }
1774
- async function* uniqByIterable(iterable) {
1775
- const bucket = new Set();
1776
- let index = 0;
1777
- for (const element of iterable) {
1778
- const result = await fn(element, index);
1779
- if (!bucket.has(result)) {
1780
- yield element;
1781
- bucket.add(result);
1782
- }
1783
- index++;
1962
+ }
1963
+ async function* uniqByIterable(iterable, fn) {
1964
+ const bucket = new Set();
1965
+ let index = 0;
1966
+ for (const element of iterable) {
1967
+ const result = await fn(element, index);
1968
+ if (!bucket.has(result)) {
1969
+ yield element;
1970
+ bucket.add(result);
1784
1971
  }
1972
+ index++;
1785
1973
  }
1786
1974
  }
1787
- uniqByAsync$1.uniqByAsync = uniqByAsync;
1788
1975
 
1789
1976
  var uniqBy$1 = {};
1790
1977
 
@@ -1820,7 +2007,7 @@ uniq$1.uniq = uniq;
1820
2007
  var zipAsync$1 = {};
1821
2008
 
1822
2009
  zipAsync$1.zipAsync = void 0;
1823
- const types_1$9 = es2018$4;
2010
+ const types_1$b = es2018$6;
1824
2011
  var Kind;
1825
2012
  (function (Kind) {
1826
2013
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -1834,7 +2021,7 @@ async function* zipWithSize$1(...iterables) {
1834
2021
  var _a, _b, _c, _d;
1835
2022
  const length = iterables.length;
1836
2023
  const iterators = iterables.map(iterable => {
1837
- if ((0, types_1$9.isAsyncIterable)(iterable)) {
2024
+ if ((0, types_1$b.isAsyncIterable)(iterable)) {
1838
2025
  return [Kind.Async, iterable[Symbol.asyncIterator]()];
1839
2026
  }
1840
2027
  else {
@@ -1984,30 +2171,30 @@ consume$1.consume = consume;
1984
2171
  var eachAsync$1 = {};
1985
2172
 
1986
2173
  eachAsync$1.eachAsync = void 0;
1987
- const types_1$8 = es2018$4;
2174
+ const types_1$a = es2018$6;
1988
2175
  function eachAsync(iterable, fn) {
1989
- if ((0, types_1$8.isAsyncIterable)(iterable)) {
1990
- return eachAsyncIterable(iterable);
2176
+ if ((0, types_1$a.isAsyncIterable)(iterable)) {
2177
+ return eachAsyncIterable(iterable, fn);
1991
2178
  }
1992
2179
  else {
1993
- return eachIterable(iterable);
2180
+ return eachIterable(iterable, fn);
1994
2181
  }
1995
- async function eachAsyncIterable(iterable) {
1996
- let index = 0;
1997
- for await (const element of iterable) {
1998
- await fn(element, index);
1999
- index++;
2000
- }
2182
+ }
2183
+ eachAsync$1.eachAsync = eachAsync;
2184
+ async function eachAsyncIterable(iterable, fn) {
2185
+ let index = 0;
2186
+ for await (const element of iterable) {
2187
+ await fn(element, index);
2188
+ index++;
2001
2189
  }
2002
- async function eachIterable(iterable) {
2003
- let index = 0;
2004
- for (const element of iterable) {
2005
- await fn(element, index);
2006
- index++;
2007
- }
2190
+ }
2191
+ async function eachIterable(iterable, fn) {
2192
+ let index = 0;
2193
+ for (const element of iterable) {
2194
+ await fn(element, index);
2195
+ index++;
2008
2196
  }
2009
2197
  }
2010
- eachAsync$1.eachAsync = eachAsync;
2011
2198
 
2012
2199
  var each$1 = {};
2013
2200
 
@@ -2024,34 +2211,34 @@ each$1.each = each;
2024
2211
  var everyAsync$1 = {};
2025
2212
 
2026
2213
  everyAsync$1.everyAsync = void 0;
2027
- const types_1$7 = es2018$4;
2214
+ const types_1$9 = es2018$6;
2028
2215
  function everyAsync(iterable, predicate) {
2029
- if ((0, types_1$7.isAsyncIterable)(iterable)) {
2030
- return everyAsyncIterable(iterable);
2216
+ if ((0, types_1$9.isAsyncIterable)(iterable)) {
2217
+ return everyAsyncIterable(iterable, predicate);
2031
2218
  }
2032
2219
  else {
2033
- return everyIterable(iterable);
2220
+ return everyIterable(iterable, predicate);
2034
2221
  }
2035
- async function everyIterable(iterable) {
2036
- let index = 0;
2037
- for (const element of iterable) {
2038
- if (!await predicate(element, index))
2039
- return false;
2040
- index++;
2041
- }
2042
- return true;
2222
+ }
2223
+ everyAsync$1.everyAsync = everyAsync;
2224
+ async function everyIterable(iterable, predicate) {
2225
+ let index = 0;
2226
+ for (const element of iterable) {
2227
+ if (!await predicate(element, index))
2228
+ return false;
2229
+ index++;
2043
2230
  }
2044
- async function everyAsyncIterable(iterable) {
2045
- let index = 0;
2046
- for await (const element of iterable) {
2047
- if (!await predicate(element, index))
2048
- return false;
2049
- index++;
2050
- }
2051
- return true;
2231
+ return true;
2232
+ }
2233
+ async function everyAsyncIterable(iterable, predicate) {
2234
+ let index = 0;
2235
+ for await (const element of iterable) {
2236
+ if (!await predicate(element, index))
2237
+ return false;
2238
+ index++;
2052
2239
  }
2240
+ return true;
2053
2241
  }
2054
- everyAsync$1.everyAsync = everyAsync;
2055
2242
 
2056
2243
  var every$1 = {};
2057
2244
 
@@ -2070,34 +2257,34 @@ every$1.every = every;
2070
2257
  var findAsync$1 = {};
2071
2258
 
2072
2259
  findAsync$1.findAsync = void 0;
2073
- const types_1$6 = es2018$4;
2260
+ const types_1$8 = es2018$6;
2074
2261
  function findAsync(iterable, predicate) {
2075
- if ((0, types_1$6.isAsyncIterable)(iterable)) {
2076
- return findAsyncIterable(iterable);
2262
+ if ((0, types_1$8.isAsyncIterable)(iterable)) {
2263
+ return findAsyncIterable(iterable, predicate);
2077
2264
  }
2078
2265
  else {
2079
- return findIterable(iterable);
2266
+ return findIterable(iterable, predicate);
2080
2267
  }
2081
- async function findIterable(iterable) {
2082
- let index = 0;
2083
- for (const element of iterable) {
2084
- if (await predicate(element, index))
2085
- return element;
2086
- index++;
2087
- }
2088
- return undefined;
2268
+ }
2269
+ findAsync$1.findAsync = findAsync;
2270
+ async function findIterable(iterable, predicate) {
2271
+ let index = 0;
2272
+ for (const element of iterable) {
2273
+ if (await predicate(element, index))
2274
+ return element;
2275
+ index++;
2089
2276
  }
2090
- async function findAsyncIterable(iterable) {
2091
- let index = 0;
2092
- for await (const element of iterable) {
2093
- if (await predicate(element, index))
2094
- return element;
2095
- index++;
2096
- }
2097
- return undefined;
2277
+ return undefined;
2278
+ }
2279
+ async function findAsyncIterable(iterable, predicate) {
2280
+ let index = 0;
2281
+ for await (const element of iterable) {
2282
+ if (await predicate(element, index))
2283
+ return element;
2284
+ index++;
2098
2285
  }
2286
+ return undefined;
2099
2287
  }
2100
- findAsync$1.findAsync = findAsync;
2101
2288
 
2102
2289
  var find$1 = {};
2103
2290
 
@@ -2194,9 +2381,9 @@ match$1.match = match;
2194
2381
  var reduceAsync$1 = {};
2195
2382
 
2196
2383
  reduceAsync$1.reduceAsync = void 0;
2197
- const types_1$5 = es2018$4;
2384
+ const types_1$7 = es2018$6;
2198
2385
  function reduceAsync(iterable, fn, initialValue) {
2199
- if ((0, types_1$5.isUndefined)(initialValue)) {
2386
+ if ((0, types_1$7.isUndefined)(initialValue)) {
2200
2387
  return reduceAsyncWithoutInitialValue(iterable, fn);
2201
2388
  }
2202
2389
  else {
@@ -2205,7 +2392,7 @@ function reduceAsync(iterable, fn, initialValue) {
2205
2392
  }
2206
2393
  reduceAsync$1.reduceAsync = reduceAsync;
2207
2394
  function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
2208
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
2395
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
2209
2396
  return reduceAsyncIterable(iterable);
2210
2397
  }
2211
2398
  else {
@@ -2227,7 +2414,7 @@ function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
2227
2414
  }
2228
2415
  }
2229
2416
  function reduceAsyncWithoutInitialValue(iterable, fn) {
2230
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
2417
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
2231
2418
  return reduceAsyncIterable(iterable);
2232
2419
  }
2233
2420
  else {
@@ -2290,9 +2477,9 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
2290
2477
  var reduce$1 = {};
2291
2478
 
2292
2479
  reduce$1.reduce = void 0;
2293
- const types_1$4 = es2018$4;
2480
+ const types_1$6 = es2018$6;
2294
2481
  function reduce(iterable, fn, initialValue) {
2295
- if ((0, types_1$4.isUndefined)(initialValue)) {
2482
+ if ((0, types_1$6.isUndefined)(initialValue)) {
2296
2483
  return reduceWithoutInitialValue(iterable, fn);
2297
2484
  }
2298
2485
  else {
@@ -2337,34 +2524,34 @@ function reduceWithoutInitialValue(iterable, fn) {
2337
2524
  var someAsync$1 = {};
2338
2525
 
2339
2526
  someAsync$1.someAsync = void 0;
2340
- const types_1$3 = es2018$4;
2527
+ const types_1$5 = es2018$6;
2341
2528
  function someAsync(iterable, predicate) {
2342
- if ((0, types_1$3.isAsyncIterable)(iterable)) {
2343
- return someAsyncIterable(iterable);
2529
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2530
+ return someAsyncIterable(iterable, predicate);
2344
2531
  }
2345
2532
  else {
2346
- return someIterable(iterable);
2533
+ return someIterable(iterable, predicate);
2347
2534
  }
2348
- async function someIterable(iterable) {
2349
- let index = 0;
2350
- for (const element of iterable) {
2351
- if (await predicate(element, index))
2352
- return true;
2353
- index++;
2354
- }
2355
- return false;
2535
+ }
2536
+ someAsync$1.someAsync = someAsync;
2537
+ async function someIterable(iterable, predicate) {
2538
+ let index = 0;
2539
+ for (const element of iterable) {
2540
+ if (await predicate(element, index))
2541
+ return true;
2542
+ index++;
2356
2543
  }
2357
- async function someAsyncIterable(iterable) {
2358
- let index = 0;
2359
- for await (const element of iterable) {
2360
- if (await predicate(element, index))
2361
- return true;
2362
- index++;
2363
- }
2364
- return false;
2544
+ return false;
2545
+ }
2546
+ async function someAsyncIterable(iterable, predicate) {
2547
+ let index = 0;
2548
+ for await (const element of iterable) {
2549
+ if (await predicate(element, index))
2550
+ return true;
2551
+ index++;
2365
2552
  }
2553
+ return false;
2366
2554
  }
2367
- someAsync$1.someAsync = someAsync;
2368
2555
 
2369
2556
  var some$1 = {};
2370
2557
 
@@ -2472,6 +2659,64 @@ function toSet(iterable) {
2472
2659
  }
2473
2660
  toSet$1.toSet = toSet;
2474
2661
 
2662
+ var count$1 = {};
2663
+
2664
+ count$1.count = void 0;
2665
+ function count(iterable) {
2666
+ let count = 0;
2667
+ for (const _ of iterable) {
2668
+ count++;
2669
+ }
2670
+ return count;
2671
+ }
2672
+ count$1.count = count;
2673
+
2674
+ var countAsync$1 = {};
2675
+
2676
+ countAsync$1.countAsync = void 0;
2677
+ async function countAsync(iterable) {
2678
+ let count = 0;
2679
+ for await (const _ of iterable) {
2680
+ count++;
2681
+ }
2682
+ return count;
2683
+ }
2684
+ countAsync$1.countAsync = countAsync;
2685
+
2686
+ var groupBy$1 = {};
2687
+
2688
+ groupBy$1.groupBy = void 0;
2689
+ const each_1 = each$1;
2690
+ function groupBy(iterable, fn) {
2691
+ const map = new Map();
2692
+ (0, each_1.each)(iterable, (element, index) => {
2693
+ const group = fn(element, index);
2694
+ if (!map.has(group)) {
2695
+ map.set(group, []);
2696
+ }
2697
+ map.get(group).push(element);
2698
+ });
2699
+ return map;
2700
+ }
2701
+ groupBy$1.groupBy = groupBy;
2702
+
2703
+ var groupByAsync$1 = {};
2704
+
2705
+ groupByAsync$1.groupByAsync = void 0;
2706
+ const each_async_1 = eachAsync$1;
2707
+ async function groupByAsync(iterable, fn) {
2708
+ const map = new Map();
2709
+ await (0, each_async_1.eachAsync)(iterable, async (element, index) => {
2710
+ const group = await fn(element, index);
2711
+ if (!map.has(group)) {
2712
+ map.set(group, []);
2713
+ }
2714
+ map.get(group).push(element);
2715
+ });
2716
+ return map;
2717
+ }
2718
+ groupByAsync$1.groupByAsync = groupByAsync;
2719
+
2475
2720
  (function (exports) {
2476
2721
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2477
2722
  if (k2 === undefined) k2 = k;
@@ -2509,6 +2754,10 @@ __exportStar(toArrayAsync$1, exports);
2509
2754
  __exportStar(toArray$1, exports);
2510
2755
  __exportStar(toSetAsync$1, exports);
2511
2756
  __exportStar(toSet$1, exports);
2757
+ __exportStar(count$1, exports);
2758
+ __exportStar(countAsync$1, exports);
2759
+ __exportStar(groupBy$1, exports);
2760
+ __exportStar(groupByAsync$1, exports);
2512
2761
 
2513
2762
  }(output));
2514
2763
 
@@ -2529,7 +2778,7 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
2529
2778
  };__exportStar(middleware, exports);
2530
2779
  __exportStar(output, exports);
2531
2780
 
2532
- }(es2018$2));
2781
+ }(es2018$a));
2533
2782
 
2534
2783
  var getErrorNames$1 = {};
2535
2784
 
@@ -2547,11 +2796,11 @@ function* traverseErrorPrototypeChain(err) {
2547
2796
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
2548
2797
 
2549
2798
  getErrorNames$1.getErrorNames = void 0;
2550
- const types_1$2 = es2018$4;
2799
+ const types_1$4 = es2018$6;
2551
2800
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
2552
2801
  function* getErrorNames(err) {
2553
2802
  var _a;
2554
- if ((0, types_1$2.isError)(err)) {
2803
+ if ((0, types_1$4.isError)(err)) {
2555
2804
  for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
2556
2805
  if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
2557
2806
  yield prototype.constructor.name;
@@ -2568,20 +2817,20 @@ getErrorNames$1.getErrorNames = getErrorNames;
2568
2817
  var serializableError = {};
2569
2818
 
2570
2819
  serializableError.isSerializableError = void 0;
2571
- const types_1$1 = es2018$4;
2820
+ const types_1$3 = es2018$6;
2572
2821
  function isSerializableError(val) {
2573
- return (0, types_1$1.isObject)(val)
2574
- && (0, types_1$1.isString)(val.name)
2575
- && (0, types_1$1.isString)(val.message)
2576
- && ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
2577
- && ((0, types_1$1.isArray)(val.ancestors) && val.ancestors.every(types_1$1.isString));
2822
+ return (0, types_1$3.isObject)(val)
2823
+ && (0, types_1$3.isString)(val.name)
2824
+ && (0, types_1$3.isString)(val.message)
2825
+ && ((0, types_1$3.isString)(val.stack) || (0, types_1$3.isNull)(val.stack))
2826
+ && ((0, types_1$3.isArray)(val.ancestors) && val.ancestors.every(types_1$3.isString));
2578
2827
  }
2579
2828
  serializableError.isSerializableError = isSerializableError;
2580
2829
 
2581
2830
  customError.CustomError = void 0;
2582
- const iterable_operator_1$1 = es2018$2;
2831
+ const iterable_operator_1$1 = es2018$a;
2583
2832
  const get_error_names_1$1 = getErrorNames$1;
2584
- const types_1 = es2018$4;
2833
+ const types_1$2 = es2018$6;
2585
2834
  const serializable_error_1 = serializableError;
2586
2835
  class CustomError extends Error {
2587
2836
  get name() {
@@ -2590,7 +2839,7 @@ class CustomError extends Error {
2590
2839
  }
2591
2840
  static [Symbol.hasInstance](instance) {
2592
2841
  var _a;
2593
- if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
2842
+ if ((0, types_1$2.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
2594
2843
  const reversedClassNames = [
2595
2844
  (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
2596
2845
  ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
@@ -2617,7 +2866,7 @@ var normalize$1 = {};
2617
2866
 
2618
2867
  normalize$1.normalize = void 0;
2619
2868
  const get_error_names_1 = getErrorNames$1;
2620
- const iterable_operator_1 = es2018$2;
2869
+ const iterable_operator_1 = es2018$a;
2621
2870
  function normalize(err) {
2622
2871
  var _a;
2623
2872
  const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
@@ -2632,13 +2881,13 @@ normalize$1.normalize = normalize;
2632
2881
 
2633
2882
  var hydrate$1 = {};
2634
2883
 
2635
- var es2018 = {};
2884
+ var es2018$5 = {};
2636
2885
 
2637
- var pass$1 = {};
2886
+ var pass$3 = {};
2638
2887
 
2639
- pass$1.pass = void 0;
2640
- function pass() { }
2641
- pass$1.pass = pass;
2888
+ pass$3.pass = void 0;
2889
+ function pass$2() { }
2890
+ pass$3.pass = pass$2;
2642
2891
 
2643
2892
  (function (exports) {
2644
2893
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -2650,12 +2899,12 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
2650
2899
  }));
2651
2900
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2652
2901
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2653
- };__exportStar(pass$1, exports);
2902
+ };__exportStar(pass$3, exports);
2654
2903
 
2655
- }(es2018));
2904
+ }(es2018$5));
2656
2905
 
2657
2906
  hydrate$1.hydrate = void 0;
2658
- const pass_1 = es2018;
2907
+ const pass_1 = es2018$5;
2659
2908
  function hydrate(err) {
2660
2909
  var _a;
2661
2910
  const errorNames = [err.name, ...err.ancestors]
@@ -2713,71 +2962,932 @@ __exportStar(assert$1, exports);
2713
2962
  __exportStar(getErrorNames$1, exports);
2714
2963
  __exportStar(traverseErrorPrototypeChain$1, exports);
2715
2964
 
2716
- }(es2018$3));
2965
+ }(es2018$b));
2717
2966
 
2718
- function csv(payload) {
2719
- es2018$3.assert(payload.length > 0, 'payload must be a non-empty array');
2720
- return (options) => {
2721
- const headers = new es2018$5.Headers(options.headers);
2722
- headers.set('Content-Type', 'text/csv');
2723
- return Object.assign(Object.assign({}, options), { headers, payload: stringify(payload) });
2724
- };
2725
- }
2726
- function stringify(data) {
2727
- const fields = Object.keys(data[0]);
2728
- return papaparse_min.exports.unparse({ data, fields });
2729
- }
2967
+ var es2018$4 = {};
2730
2968
 
2731
- function signal(signal) {
2732
- return (options) => {
2733
- return Object.assign(Object.assign({}, options), { signal });
2734
- };
2969
+ var log$1 = {};
2970
+
2971
+ log$1.log = void 0;
2972
+ function log(...data) {
2973
+ console.log(...data);
2974
+ return data[data.length - 1];
2735
2975
  }
2976
+ log$1.log = log;
2736
2977
 
2737
- function header(name, value) {
2738
- return (options) => {
2739
- const headers = new es2018$5.Headers(options.headers);
2740
- headers.set(name, value);
2741
- return Object.assign(Object.assign({}, options), { headers });
2742
- };
2978
+ var time$1 = {};
2979
+
2980
+ var highResolutionTimestamp_browser = {};
2981
+
2982
+ highResolutionTimestamp_browser.elapsed = highResolutionTimestamp_browser.now = void 0;
2983
+ function now() {
2984
+ return performance.now();
2743
2985
  }
2986
+ highResolutionTimestamp_browser.now = now;
2987
+ function elapsed(startTime, endTime) {
2988
+ return `${endTime - startTime}ms`;
2989
+ }
2990
+ highResolutionTimestamp_browser.elapsed = elapsed;
2744
2991
 
2745
- function appendHeader(name, value) {
2746
- return (options) => {
2747
- const headers = new es2018$5.Headers(options.headers);
2748
- headers.append(name, value);
2749
- return Object.assign(Object.assign({}, options), { headers });
2750
- };
2992
+ var es2018$3 = {};
2993
+
2994
+ var array = {};
2995
+
2996
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
2997
+ function isArray(val) {
2998
+ return Array.isArray(val);
2999
+ }
3000
+ array.isArray = isArray;
3001
+ function isntArray(val) {
3002
+ return !isArray(val);
3003
+ }
3004
+ array.isntArray = isntArray;
3005
+ function isEmptyArray(val) {
3006
+ return val.length === 0;
3007
+ }
3008
+ array.isEmptyArray = isEmptyArray;
3009
+ function isntEmptyArray(val) {
3010
+ return val.length !== 0;
2751
3011
  }
3012
+ array.isntEmptyArray = isntEmptyArray;
2752
3013
 
2753
- function headers(headers) {
2754
- return (options) => {
2755
- const newHeaders = new es2018$5.Headers(options.headers);
2756
- for (const [name, value] of Object.entries(headers)) {
2757
- newHeaders.set(name, value);
2758
- }
2759
- return Object.assign(Object.assign({}, options), { headers: newHeaders });
2760
- };
3014
+ var asyncIterable = {};
3015
+
3016
+ var _null = {};
3017
+
3018
+ _null.isntNull = _null.isNull = void 0;
3019
+ function isNull(val) {
3020
+ return val === null;
3021
+ }
3022
+ _null.isNull = isNull;
3023
+ function isntNull(val) {
3024
+ return !isNull(val);
2761
3025
  }
3026
+ _null.isntNull = isntNull;
2762
3027
 
2763
- function accept(accept) {
2764
- return appendHeader('Accept', accept);
3028
+ var _undefined = {};
3029
+
3030
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
3031
+ function isUndefined(val) {
3032
+ return val === undefined;
2765
3033
  }
3034
+ _undefined.isUndefined = isUndefined;
3035
+ function isntUndefined(val) {
3036
+ return !isUndefined(val);
3037
+ }
3038
+ _undefined.isntUndefined = isntUndefined;
2766
3039
 
2767
- function host(host) {
2768
- return (options) => {
2769
- const url = new URL(options.url.href);
2770
- url.host = host;
2771
- return Object.assign(Object.assign({}, options), { url });
2772
- };
3040
+ var _function = {};
3041
+
3042
+ _function.isntFunction = _function.isFunction = void 0;
3043
+ function isFunction(val) {
3044
+ return typeof val === 'function';
2773
3045
  }
3046
+ _function.isFunction = isFunction;
3047
+ function isntFunction(val) {
3048
+ return !isFunction(val);
3049
+ }
3050
+ _function.isntFunction = isntFunction;
2774
3051
 
2775
- function port(port) {
2776
- return (options) => {
2777
- const url = new URL(options.url.href);
2778
- url.port = port.toString();
2779
- return Object.assign(Object.assign({}, options), { url });
2780
- };
3052
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
3053
+ const null_1$2 = _null;
3054
+ const undefined_1$1 = _undefined;
3055
+ const function_1$2 = _function;
3056
+ function isAsyncIterable(val) {
3057
+ return (0, null_1$2.isntNull)(val)
3058
+ && (0, undefined_1$1.isntUndefined)(val)
3059
+ && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
3060
+ }
3061
+ asyncIterable.isAsyncIterable = isAsyncIterable;
3062
+ function isntAsyncIterable(val) {
3063
+ return !isAsyncIterable(val);
3064
+ }
3065
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
3066
+
3067
+ var bigint = {};
3068
+
3069
+ bigint.isntBigInt = bigint.isBigInt = void 0;
3070
+ function isBigInt(val) {
3071
+ return typeof val === 'bigint';
3072
+ }
3073
+ bigint.isBigInt = isBigInt;
3074
+ function isntBigInt(val) {
3075
+ return !isBigInt(val);
3076
+ }
3077
+ bigint.isntBigInt = isntBigInt;
3078
+
3079
+ var boolean = {};
3080
+
3081
+ boolean.isntBoolean = boolean.isBoolean = void 0;
3082
+ function isBoolean(val) {
3083
+ return typeof val === 'boolean';
3084
+ }
3085
+ boolean.isBoolean = isBoolean;
3086
+ function isntBoolean(val) {
3087
+ return !isBoolean(val);
3088
+ }
3089
+ boolean.isntBoolean = isntBoolean;
3090
+
3091
+ var char = {};
3092
+
3093
+ var string = {};
3094
+
3095
+ string.isntString = string.isString = void 0;
3096
+ function isString(val) {
3097
+ return typeof val === 'string';
3098
+ }
3099
+ string.isString = isString;
3100
+ function isntString(val) {
3101
+ return !isString(val);
3102
+ }
3103
+ string.isntString = isntString;
3104
+
3105
+ char.isntChar = char.isChar = void 0;
3106
+ const string_1$1 = string;
3107
+ function isChar(val) {
3108
+ return (0, string_1$1.isString)(val)
3109
+ && val.length === 1;
3110
+ }
3111
+ char.isChar = isChar;
3112
+ function isntChar(val) {
3113
+ return !isChar(val);
3114
+ }
3115
+ char.isntChar = isntChar;
3116
+
3117
+ var date = {};
3118
+
3119
+ date.isntDate = date.isDate = void 0;
3120
+ function isDate(val) {
3121
+ return val instanceof Date;
3122
+ }
3123
+ date.isDate = isDate;
3124
+ function isntDate(val) {
3125
+ return !isDate(val);
3126
+ }
3127
+ date.isntDate = isntDate;
3128
+
3129
+ var _enum = {};
3130
+
3131
+ _enum.inEnum = void 0;
3132
+ function inEnum(val, _enum) {
3133
+ return Object.values(_enum).includes(val);
3134
+ }
3135
+ _enum.inEnum = inEnum;
3136
+
3137
+ var error = {};
3138
+
3139
+ error.isntError = error.isError = void 0;
3140
+ function isError(val) {
3141
+ return val instanceof Error;
3142
+ }
3143
+ error.isError = isError;
3144
+ function isntError(val) {
3145
+ return !isError(val);
3146
+ }
3147
+ error.isntError = isntError;
3148
+
3149
+ var falsy = {};
3150
+
3151
+ falsy.isntFalsy = falsy.isFalsy = void 0;
3152
+ function isFalsy(val) {
3153
+ return !val;
3154
+ }
3155
+ falsy.isFalsy = isFalsy;
3156
+ function isntFalsy(val) {
3157
+ return !isFalsy(val);
3158
+ }
3159
+ falsy.isntFalsy = isntFalsy;
3160
+
3161
+ var iterable = {};
3162
+
3163
+ iterable.isntIterable = iterable.isIterable = void 0;
3164
+ const null_1$1 = _null;
3165
+ const undefined_1 = _undefined;
3166
+ const function_1$1 = _function;
3167
+ function isIterable(val) {
3168
+ return (0, null_1$1.isntNull)(val)
3169
+ && (0, undefined_1.isntUndefined)(val)
3170
+ && (0, function_1$1.isFunction)(val[Symbol.iterator]);
3171
+ }
3172
+ iterable.isIterable = isIterable;
3173
+ function isntIterable(val) {
3174
+ return !isIterable(val);
3175
+ }
3176
+ iterable.isntIterable = isntIterable;
3177
+
3178
+ var json$1 = {};
3179
+
3180
+ var number = {};
3181
+
3182
+ number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
3183
+ function isNumber(val) {
3184
+ return typeof val === 'number';
3185
+ }
3186
+ number.isNumber = isNumber;
3187
+ function isntNumber(val) {
3188
+ return !isNumber(val);
3189
+ }
3190
+ number.isntNumber = isntNumber;
3191
+ function isFinite(val) {
3192
+ return Number.isFinite(val);
3193
+ }
3194
+ number.isFinite = isFinite;
3195
+ function isPositiveInfinity(val) {
3196
+ return val === Infinity;
3197
+ }
3198
+ number.isPositiveInfinity = isPositiveInfinity;
3199
+ function isNegativeInfinity(val) {
3200
+ return val === -Infinity;
3201
+ }
3202
+ number.isNegativeInfinity = isNegativeInfinity;
3203
+ function isNaN(val) {
3204
+ return Number.isNaN(val);
3205
+ }
3206
+ number.isNaN = isNaN;
3207
+ function isntNaN(val) {
3208
+ return !isNaN(val);
3209
+ }
3210
+ number.isntNaN = isntNaN;
3211
+
3212
+ var object = {};
3213
+
3214
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3215
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3216
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
3217
+ const isPlainObject_1 = __importDefault(isPlainObject_1$2);
3218
+ function isObject(val) {
3219
+ return val !== null
3220
+ && typeof val === 'object';
3221
+ }
3222
+ object.isObject = isObject;
3223
+ function isntObject(val) {
3224
+ return !isObject(val);
3225
+ }
3226
+ object.isntObject = isntObject;
3227
+ function isPlainObject(val) {
3228
+ return (0, isPlainObject_1.default)(val);
3229
+ }
3230
+ object.isPlainObject = isPlainObject;
3231
+ function isntPlainObject(val) {
3232
+ return !isPlainObject(val);
3233
+ }
3234
+ object.isntPlainObject = isntPlainObject;
3235
+ function isEmptyObject(val) {
3236
+ return Object.keys(val).length === 0;
3237
+ }
3238
+ object.isEmptyObject = isEmptyObject;
3239
+ function isntEmptyObject(val) {
3240
+ return Object.keys(val).length !== 0;
3241
+ }
3242
+ object.isntEmptyObject = isntEmptyObject;
3243
+
3244
+ json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
3245
+ const null_1 = _null;
3246
+ const boolean_1 = boolean;
3247
+ const string_1 = string;
3248
+ const number_1 = number;
3249
+ const array_1 = array;
3250
+ const object_1$1 = object;
3251
+ function isJson(val) {
3252
+ return (0, null_1.isNull)(val)
3253
+ || (0, boolean_1.isBoolean)(val)
3254
+ || (0, string_1.isString)(val)
3255
+ || (0, number_1.isNumber)(val)
3256
+ || ((0, array_1.isArray)(val) && val.every(isJson))
3257
+ || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
3258
+ }
3259
+ json$1.isJson = isJson;
3260
+ function isntJson(val) {
3261
+ return !isJson(val);
3262
+ }
3263
+ json$1.isntJson = isntJson;
3264
+ function isJsonable(val) {
3265
+ try {
3266
+ JSON.stringify(val);
3267
+ return true;
3268
+ }
3269
+ catch (_a) {
3270
+ return false;
3271
+ }
3272
+ }
3273
+ json$1.isJsonable = isJsonable;
3274
+ function isntJsonable(val) {
3275
+ return !isntJsonable();
3276
+ }
3277
+ json$1.isntJsonable = isntJsonable;
3278
+
3279
+ var promise = {};
3280
+
3281
+ promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
3282
+ const object_1 = object;
3283
+ const function_1 = _function;
3284
+ function isPromise(val) {
3285
+ return val instanceof Promise;
3286
+ }
3287
+ promise.isPromise = isPromise;
3288
+ function isntPromise(val) {
3289
+ return !isPromise(val);
3290
+ }
3291
+ promise.isntPromise = isntPromise;
3292
+ function isntPromiseLike(val) {
3293
+ return !isPromiseLike(val);
3294
+ }
3295
+ promise.isntPromiseLike = isntPromiseLike;
3296
+ function isPromiseLike(val) {
3297
+ return (0, object_1.isObject)(val)
3298
+ && (0, function_1.isFunction)(val.then);
3299
+ }
3300
+ promise.isPromiseLike = isPromiseLike;
3301
+
3302
+ var url$1 = {};
3303
+
3304
+ url$1.isAbsoluteURL = void 0;
3305
+ function isAbsoluteURL(str) {
3306
+ try {
3307
+ new URL(str);
3308
+ return true;
3309
+ }
3310
+ catch (_a) {
3311
+ return false;
3312
+ }
3313
+ }
3314
+ url$1.isAbsoluteURL = isAbsoluteURL;
3315
+
3316
+ var regexp = {};
3317
+
3318
+ regexp.isntRegExp = regexp.isRegExp = void 0;
3319
+ function isRegExp(val) {
3320
+ return val instanceof RegExp;
3321
+ }
3322
+ regexp.isRegExp = isRegExp;
3323
+ function isntRegExp(val) {
3324
+ return !isRegExp(val);
3325
+ }
3326
+ regexp.isntRegExp = isntRegExp;
3327
+
3328
+ var symbol = {};
3329
+
3330
+ symbol.isntSymbol = symbol.isSymbol = void 0;
3331
+ function isSymbol(val) {
3332
+ return typeof val === 'symbol';
3333
+ }
3334
+ symbol.isSymbol = isSymbol;
3335
+ function isntSymbol(val) {
3336
+ return !isSymbol(val);
3337
+ }
3338
+ symbol.isntSymbol = isntSymbol;
3339
+
3340
+ (function (exports) {
3341
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3342
+ if (k2 === undefined) k2 = k;
3343
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3344
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3345
+ desc = { enumerable: true, get: function() { return m[k]; } };
3346
+ }
3347
+ Object.defineProperty(o, k2, desc);
3348
+ }) : (function(o, m, k, k2) {
3349
+ if (k2 === undefined) k2 = k;
3350
+ o[k2] = m[k];
3351
+ }));
3352
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3353
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3354
+ };__exportStar(array, exports);
3355
+ __exportStar(asyncIterable, exports);
3356
+ __exportStar(bigint, exports);
3357
+ __exportStar(boolean, exports);
3358
+ __exportStar(char, exports);
3359
+ __exportStar(date, exports);
3360
+ __exportStar(_enum, exports);
3361
+ __exportStar(error, exports);
3362
+ __exportStar(falsy, exports);
3363
+ __exportStar(_function, exports);
3364
+ __exportStar(iterable, exports);
3365
+ __exportStar(json$1, exports);
3366
+ __exportStar(_null, exports);
3367
+ __exportStar(number, exports);
3368
+ __exportStar(object, exports);
3369
+ __exportStar(promise, exports);
3370
+ __exportStar(string, exports);
3371
+ __exportStar(_undefined, exports);
3372
+ __exportStar(url$1, exports);
3373
+ __exportStar(regexp, exports);
3374
+ __exportStar(symbol, exports);
3375
+
3376
+ }(es2018$3));
3377
+
3378
+ time$1.time = void 0;
3379
+ const high_resolution_timestamp_1$2 = highResolutionTimestamp_browser;
3380
+ const types_1$1 = es2018$3;
3381
+ function time(message, fn) {
3382
+ const startTime = (0, high_resolution_timestamp_1$2.now)();
3383
+ const result = fn();
3384
+ if ((0, types_1$1.isPromiseLike)(result)) {
3385
+ return result.then(() => {
3386
+ const endTime = (0, high_resolution_timestamp_1$2.now)();
3387
+ console.log(message, (0, high_resolution_timestamp_1$2.elapsed)(startTime, endTime));
3388
+ return result;
3389
+ });
3390
+ }
3391
+ else {
3392
+ const endTime = (0, high_resolution_timestamp_1$2.now)();
3393
+ console.log(message, (0, high_resolution_timestamp_1$2.elapsed)(startTime, endTime));
3394
+ return result;
3395
+ }
3396
+ }
3397
+ time$1.time = time;
3398
+
3399
+ var timeFunction$1 = {};
3400
+
3401
+ timeFunction$1.timeFunction = void 0;
3402
+ const high_resolution_timestamp_1$1 = highResolutionTimestamp_browser;
3403
+ function timeFunction(message, fn) {
3404
+ return function (...args) {
3405
+ const startTime = (0, high_resolution_timestamp_1$1.now)();
3406
+ const result = fn(...args);
3407
+ const endTime = (0, high_resolution_timestamp_1$1.now)();
3408
+ console.log(message, (0, high_resolution_timestamp_1$1.elapsed)(startTime, endTime));
3409
+ return result;
3410
+ };
3411
+ }
3412
+ timeFunction$1.timeFunction = timeFunction;
3413
+
3414
+ var timeAsyncFunction$1 = {};
3415
+
3416
+ timeAsyncFunction$1.timeAsyncFunction = void 0;
3417
+ const high_resolution_timestamp_1 = highResolutionTimestamp_browser;
3418
+ function timeAsyncFunction(message, fn) {
3419
+ return async function (...args) {
3420
+ const startTime = (0, high_resolution_timestamp_1.now)();
3421
+ const result = await fn(...args);
3422
+ const endTime = (0, high_resolution_timestamp_1.now)();
3423
+ console.log(message, (0, high_resolution_timestamp_1.elapsed)(startTime, endTime));
3424
+ return result;
3425
+ };
3426
+ }
3427
+ timeAsyncFunction$1.timeAsyncFunction = timeAsyncFunction;
3428
+
3429
+ var group$1 = {};
3430
+
3431
+ var es2018$2 = {};
3432
+
3433
+ var go$1 = {};
3434
+
3435
+ go$1.go = void 0;
3436
+ function go(fn) {
3437
+ return fn();
3438
+ }
3439
+ go$1.go = go;
3440
+
3441
+ var goMicrotask$1 = {};
3442
+
3443
+ goMicrotask$1.goMicrotask = void 0;
3444
+ function goMicrotask(fn) {
3445
+ return new Promise((resolve, reject) => {
3446
+ queueMicrotask(async () => {
3447
+ try {
3448
+ resolve(await fn());
3449
+ }
3450
+ catch (e) {
3451
+ reject(e);
3452
+ }
3453
+ });
3454
+ });
3455
+ }
3456
+ goMicrotask$1.goMicrotask = goMicrotask;
3457
+
3458
+ var goMacrotask$1 = {};
3459
+
3460
+ goMacrotask$1.goMacrotask = void 0;
3461
+ const extra_timers_1 = es2018$8;
3462
+ function goMacrotask(fn) {
3463
+ return new Promise((resolve, reject) => {
3464
+ (0, extra_timers_1.setImmediate)(async () => {
3465
+ try {
3466
+ resolve(await fn());
3467
+ }
3468
+ catch (e) {
3469
+ reject(e);
3470
+ }
3471
+ });
3472
+ });
3473
+ }
3474
+ goMacrotask$1.goMacrotask = goMacrotask;
3475
+
3476
+ (function (exports) {
3477
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3478
+ if (k2 === undefined) k2 = k;
3479
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3480
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3481
+ desc = { enumerable: true, get: function() { return m[k]; } };
3482
+ }
3483
+ Object.defineProperty(o, k2, desc);
3484
+ }) : (function(o, m, k, k2) {
3485
+ if (k2 === undefined) k2 = k;
3486
+ o[k2] = m[k];
3487
+ }));
3488
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3489
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3490
+ };__exportStar(go$1, exports);
3491
+ __exportStar(goMicrotask$1, exports);
3492
+ __exportStar(goMacrotask$1, exports);
3493
+
3494
+ }(es2018$2));
3495
+
3496
+ group$1.group = void 0;
3497
+ const go_1 = es2018$2;
3498
+ const types_1 = es2018$3;
3499
+ function group(...args) {
3500
+ const [label, fn] = (0, go_1.go)(() => {
3501
+ if (args.length === 1) {
3502
+ const [fn] = args;
3503
+ return [undefined, fn];
3504
+ }
3505
+ else {
3506
+ const [label, fn] = args;
3507
+ return [label, fn];
3508
+ }
3509
+ });
3510
+ if ((0, types_1.isUndefined)(label)) {
3511
+ console.group();
3512
+ }
3513
+ else {
3514
+ console.group(label);
3515
+ }
3516
+ const result = fn();
3517
+ console.groupEnd();
3518
+ return result;
3519
+ }
3520
+ group$1.group = group;
3521
+
3522
+ (function (exports) {
3523
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3524
+ if (k2 === undefined) k2 = k;
3525
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3526
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3527
+ desc = { enumerable: true, get: function() { return m[k]; } };
3528
+ }
3529
+ Object.defineProperty(o, k2, desc);
3530
+ }) : (function(o, m, k, k2) {
3531
+ if (k2 === undefined) k2 = k;
3532
+ o[k2] = m[k];
3533
+ }));
3534
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3535
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3536
+ };__exportStar(log$1, exports);
3537
+ __exportStar(time$1, exports);
3538
+ __exportStar(timeFunction$1, exports);
3539
+ __exportStar(timeAsyncFunction$1, exports);
3540
+ __exportStar(group$1, exports);
3541
+
3542
+ }(es2018$4));
3543
+
3544
+ var es2018$1 = {};
3545
+
3546
+ var lazy$1 = {};
3547
+
3548
+ lazy$1.lazy = void 0;
3549
+ function lazy(getter) {
3550
+ let resultExists = false;
3551
+ let result;
3552
+ return function () {
3553
+ if (!resultExists) {
3554
+ result = getter();
3555
+ resultExists = true;
3556
+ }
3557
+ return result;
3558
+ };
3559
+ }
3560
+ lazy$1.lazy = lazy;
3561
+
3562
+ var lazyFunction$1 = {};
3563
+
3564
+ lazyFunction$1.lazyFunction = void 0;
3565
+ const lazy_1$1 = lazy$1;
3566
+ function lazyFunction(getter) {
3567
+ const getFn = (0, lazy_1$1.lazy)(getter);
3568
+ return (...args) => getFn()(...args);
3569
+ }
3570
+ lazyFunction$1.lazyFunction = lazyFunction;
3571
+
3572
+ var lazyAsyncFunction$1 = {};
3573
+
3574
+ lazyAsyncFunction$1.lazyAsyncFunction = void 0;
3575
+ const lazy_1 = lazy$1;
3576
+ function lazyAsyncFunction(getter) {
3577
+ const getFn = (0, lazy_1.lazy)(getter);
3578
+ return async (...args) => {
3579
+ const fn = await getFn();
3580
+ return fn(...args);
3581
+ };
3582
+ }
3583
+ lazyAsyncFunction$1.lazyAsyncFunction = lazyAsyncFunction;
3584
+
3585
+ var lazyStatic$1 = {};
3586
+
3587
+ lazyStatic$1.lazyStatic = lazyStatic$1.withLazyStatic = void 0;
3588
+ const contexts = [];
3589
+ function withLazyStatic(fn) {
3590
+ const cache = [];
3591
+ return (...args) => {
3592
+ contexts.push({ cache, index: 0 });
3593
+ try {
3594
+ return fn(...args);
3595
+ }
3596
+ finally {
3597
+ contexts.pop();
3598
+ }
3599
+ };
3600
+ }
3601
+ lazyStatic$1.withLazyStatic = withLazyStatic;
3602
+ function lazyStatic(getter, deps = []) {
3603
+ if (contexts.length) {
3604
+ const context = contexts[contexts.length - 1];
3605
+ const index = context.index++;
3606
+ const isFirstRun = index === context.cache.length;
3607
+ if (isFirstRun) {
3608
+ updateCache();
3609
+ }
3610
+ else {
3611
+ const oldDeps = context.cache[index].deps;
3612
+ if (deps.length === oldDeps.length) {
3613
+ if (deps.some((x, i) => x !== oldDeps[i])) {
3614
+ updateCache();
3615
+ }
3616
+ }
3617
+ else {
3618
+ updateCache();
3619
+ }
3620
+ }
3621
+ const result = context.cache[index].value;
3622
+ return result;
3623
+ function updateCache() {
3624
+ context.cache[index] = null;
3625
+ context.cache[index] = {
3626
+ value: getter(),
3627
+ deps: Array.from(deps)
3628
+ };
3629
+ }
3630
+ }
3631
+ else {
3632
+ throw new Error('lazyStatic can only be called in the function wrapped by withlazyStatic.');
3633
+ }
3634
+ }
3635
+ lazyStatic$1.lazyStatic = lazyStatic;
3636
+
3637
+ (function (exports) {
3638
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3639
+ if (k2 === undefined) k2 = k;
3640
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3641
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3642
+ desc = { enumerable: true, get: function() { return m[k]; } };
3643
+ }
3644
+ Object.defineProperty(o, k2, desc);
3645
+ }) : (function(o, m, k, k2) {
3646
+ if (k2 === undefined) k2 = k;
3647
+ o[k2] = m[k];
3648
+ }));
3649
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3650
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3651
+ };__exportStar(lazy$1, exports);
3652
+ __exportStar(lazyFunction$1, exports);
3653
+ __exportStar(lazyAsyncFunction$1, exports);
3654
+ __exportStar(lazyStatic$1, exports);
3655
+
3656
+ }(es2018$1));
3657
+
3658
+ var es2018 = {};
3659
+
3660
+ var pass$1 = {};
3661
+
3662
+ pass$1.pass = void 0;
3663
+ function pass() { }
3664
+ pass$1.pass = pass;
3665
+
3666
+ var passAsync$1 = {};
3667
+
3668
+ passAsync$1.passAsync = void 0;
3669
+ async function passAsync() { }
3670
+ passAsync$1.passAsync = passAsync;
3671
+
3672
+ (function (exports) {
3673
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3674
+ if (k2 === undefined) k2 = k;
3675
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3676
+ }) : (function(o, m, k, k2) {
3677
+ if (k2 === undefined) k2 = k;
3678
+ o[k2] = m[k];
3679
+ }));
3680
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3681
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3682
+ };__exportStar(pass$1, exports);
3683
+ __exportStar(passAsync$1, exports);
3684
+
3685
+ }(es2018));
3686
+
3687
+ (function (exports) {
3688
+ exports.isntNumber = exports.isntNull = exports.isntJson = exports.isntIterable = exports.isntFunction = exports.isntFalsy = exports.isntError = exports.isntEmptyObject = exports.isntEmptyArray = exports.isntDate = exports.isntChar = exports.isntBoolean = exports.isntBigInt = exports.isntAsyncIterable = exports.isntArray = exports.isSymbol = exports.isRegExp = exports.isUndefined = exports.isString = exports.isPromiseLike = exports.isPromise = exports.isPlainObject = exports.isObject = exports.isntNaN = exports.isNaN = exports.isNegativeInfinity = exports.isPositiveInfinity = exports.isFinite = exports.isNumber = exports.isNull = exports.isJson = exports.isIterable = exports.isFunction = exports.isFalsy = exports.isError = exports.isEmptyObject = exports.isEmptyArray = exports.isDate = exports.isChar = exports.isBoolean = exports.isBigInt = exports.isAsyncIterable = exports.isArray = exports.toArrayAsync = exports.toArray = exports.pass = exports.lazy = exports.log = exports.go = exports.assert = void 0;
3689
+ exports.isntSymbol = exports.isntRegExp = exports.isntUndefined = exports.isntString = exports.isntPromiseLike = exports.isntPromise = exports.isntPlainObject = exports.isntObject = void 0;
3690
+ var errors_1 = es2018$b;
3691
+ Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return errors_1.assert; } });
3692
+ var go_1 = es2018$9;
3693
+ Object.defineProperty(exports, "go", { enumerable: true, get: function () { return go_1.go; } });
3694
+ var log_1 = es2018$4;
3695
+ Object.defineProperty(exports, "log", { enumerable: true, get: function () { return log_1.log; } });
3696
+ var extra_lazy_1 = es2018$1;
3697
+ Object.defineProperty(exports, "lazy", { enumerable: true, get: function () { return extra_lazy_1.lazy; } });
3698
+ var pass_1 = es2018;
3699
+ Object.defineProperty(exports, "pass", { enumerable: true, get: function () { return pass_1.pass; } });
3700
+ var iterable_operator_1 = es2018$a;
3701
+ Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return iterable_operator_1.toArray; } });
3702
+ Object.defineProperty(exports, "toArrayAsync", { enumerable: true, get: function () { return iterable_operator_1.toArrayAsync; } });
3703
+ var types_1 = es2018$6;
3704
+ Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return types_1.isArray; } });
3705
+ Object.defineProperty(exports, "isAsyncIterable", { enumerable: true, get: function () { return types_1.isAsyncIterable; } });
3706
+ Object.defineProperty(exports, "isBigInt", { enumerable: true, get: function () { return types_1.isBigInt; } });
3707
+ Object.defineProperty(exports, "isBoolean", { enumerable: true, get: function () { return types_1.isBoolean; } });
3708
+ Object.defineProperty(exports, "isChar", { enumerable: true, get: function () { return types_1.isChar; } });
3709
+ Object.defineProperty(exports, "isDate", { enumerable: true, get: function () { return types_1.isDate; } });
3710
+ Object.defineProperty(exports, "isEmptyArray", { enumerable: true, get: function () { return types_1.isEmptyArray; } });
3711
+ Object.defineProperty(exports, "isEmptyObject", { enumerable: true, get: function () { return types_1.isEmptyObject; } });
3712
+ Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return types_1.isError; } });
3713
+ Object.defineProperty(exports, "isFalsy", { enumerable: true, get: function () { return types_1.isFalsy; } });
3714
+ Object.defineProperty(exports, "isFunction", { enumerable: true, get: function () { return types_1.isFunction; } });
3715
+ Object.defineProperty(exports, "isIterable", { enumerable: true, get: function () { return types_1.isIterable; } });
3716
+ Object.defineProperty(exports, "isJson", { enumerable: true, get: function () { return types_1.isJson; } });
3717
+ Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return types_1.isNull; } });
3718
+ Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return types_1.isNumber; } });
3719
+ Object.defineProperty(exports, "isFinite", { enumerable: true, get: function () { return types_1.isFinite; } });
3720
+ Object.defineProperty(exports, "isPositiveInfinity", { enumerable: true, get: function () { return types_1.isPositiveInfinity; } });
3721
+ Object.defineProperty(exports, "isNegativeInfinity", { enumerable: true, get: function () { return types_1.isNegativeInfinity; } });
3722
+ Object.defineProperty(exports, "isNaN", { enumerable: true, get: function () { return types_1.isNaN; } });
3723
+ Object.defineProperty(exports, "isntNaN", { enumerable: true, get: function () { return types_1.isntNaN; } });
3724
+ Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return types_1.isObject; } });
3725
+ Object.defineProperty(exports, "isPlainObject", { enumerable: true, get: function () { return types_1.isPlainObject; } });
3726
+ Object.defineProperty(exports, "isPromise", { enumerable: true, get: function () { return types_1.isPromise; } });
3727
+ Object.defineProperty(exports, "isPromiseLike", { enumerable: true, get: function () { return types_1.isPromiseLike; } });
3728
+ Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return types_1.isString; } });
3729
+ Object.defineProperty(exports, "isUndefined", { enumerable: true, get: function () { return types_1.isUndefined; } });
3730
+ Object.defineProperty(exports, "isRegExp", { enumerable: true, get: function () { return types_1.isRegExp; } });
3731
+ Object.defineProperty(exports, "isSymbol", { enumerable: true, get: function () { return types_1.isSymbol; } });
3732
+ Object.defineProperty(exports, "isntArray", { enumerable: true, get: function () { return types_1.isntArray; } });
3733
+ Object.defineProperty(exports, "isntAsyncIterable", { enumerable: true, get: function () { return types_1.isntAsyncIterable; } });
3734
+ Object.defineProperty(exports, "isntBigInt", { enumerable: true, get: function () { return types_1.isntBigInt; } });
3735
+ Object.defineProperty(exports, "isntBoolean", { enumerable: true, get: function () { return types_1.isntBoolean; } });
3736
+ Object.defineProperty(exports, "isntChar", { enumerable: true, get: function () { return types_1.isntChar; } });
3737
+ Object.defineProperty(exports, "isntDate", { enumerable: true, get: function () { return types_1.isntDate; } });
3738
+ Object.defineProperty(exports, "isntEmptyArray", { enumerable: true, get: function () { return types_1.isntEmptyArray; } });
3739
+ Object.defineProperty(exports, "isntEmptyObject", { enumerable: true, get: function () { return types_1.isntEmptyObject; } });
3740
+ Object.defineProperty(exports, "isntError", { enumerable: true, get: function () { return types_1.isntError; } });
3741
+ Object.defineProperty(exports, "isntFalsy", { enumerable: true, get: function () { return types_1.isntFalsy; } });
3742
+ Object.defineProperty(exports, "isntFunction", { enumerable: true, get: function () { return types_1.isntFunction; } });
3743
+ Object.defineProperty(exports, "isntIterable", { enumerable: true, get: function () { return types_1.isntIterable; } });
3744
+ Object.defineProperty(exports, "isntJson", { enumerable: true, get: function () { return types_1.isntJson; } });
3745
+ Object.defineProperty(exports, "isntNull", { enumerable: true, get: function () { return types_1.isntNull; } });
3746
+ Object.defineProperty(exports, "isntNumber", { enumerable: true, get: function () { return types_1.isntNumber; } });
3747
+ Object.defineProperty(exports, "isntObject", { enumerable: true, get: function () { return types_1.isntObject; } });
3748
+ Object.defineProperty(exports, "isntPlainObject", { enumerable: true, get: function () { return types_1.isntPlainObject; } });
3749
+ Object.defineProperty(exports, "isntPromise", { enumerable: true, get: function () { return types_1.isntPromise; } });
3750
+ Object.defineProperty(exports, "isntPromiseLike", { enumerable: true, get: function () { return types_1.isntPromiseLike; } });
3751
+ Object.defineProperty(exports, "isntString", { enumerable: true, get: function () { return types_1.isntString; } });
3752
+ Object.defineProperty(exports, "isntUndefined", { enumerable: true, get: function () { return types_1.isntUndefined; } });
3753
+ Object.defineProperty(exports, "isntRegExp", { enumerable: true, get: function () { return types_1.isntRegExp; } });
3754
+ Object.defineProperty(exports, "isntSymbol", { enumerable: true, get: function () { return types_1.isntSymbol; } });
3755
+
3756
+ }(es2018$c));
3757
+
3758
+ function get(...transformers) {
3759
+ return request('GET', ...transformers);
3760
+ }
3761
+ function head(...transformers) {
3762
+ return request('HEAD', ...transformers);
3763
+ }
3764
+ function post(...transformers) {
3765
+ return request('POST', ...transformers);
3766
+ }
3767
+ function put(...transformers) {
3768
+ return request('PUT', ...transformers);
3769
+ }
3770
+ function patch(...transformers) {
3771
+ return request('PATCH', ...transformers);
3772
+ }
3773
+ function del(...transformers) {
3774
+ return request('DELETE', ...transformers);
3775
+ }
3776
+ function request(method, ...transformers) {
3777
+ const options = transformers.reduce((options, trans) => es2018$c.isFunction(trans) ? trans(options) : options, {
3778
+ url: new URL('http://localhost'),
3779
+ headers: new es2018$d.Headers()
3780
+ });
3781
+ const headers = new es2018$d.Headers(options.headers);
3782
+ return new es2018$d.Request(options.url.href, {
3783
+ method,
3784
+ headers,
3785
+ signal: options.signal,
3786
+ body: options.payload,
3787
+ keepalive: options.keepalive
3788
+ });
3789
+ }
3790
+
3791
+ function url(...urls) {
3792
+ return (options) => {
3793
+ const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
3794
+ return Object.assign(Object.assign({}, options), { url });
3795
+ };
3796
+ }
3797
+
3798
+ function text(payload) {
3799
+ return (options) => {
3800
+ const headers = new es2018$d.Headers(options.headers);
3801
+ headers.set('Content-Type', 'application/x-www-form-urlencoded');
3802
+ return Object.assign(Object.assign({}, options), { headers,
3803
+ payload });
3804
+ };
3805
+ }
3806
+
3807
+ function json(payload) {
3808
+ return (options) => {
3809
+ const headers = new es2018$d.Headers(options.headers);
3810
+ headers.set('Content-Type', 'application/json');
3811
+ return Object.assign(Object.assign({}, options), { headers, payload: JSON.stringify(payload) });
3812
+ };
3813
+ }
3814
+
3815
+ var papaparse_min = {exports: {}};
3816
+
3817
+ /* @license
3818
+ Papa Parse
3819
+ v5.3.2
3820
+ https://github.com/mholt/PapaParse
3821
+ License: MIT
3822
+ */
3823
+
3824
+ (function (module, exports) {
3825
+ !function(e,t){module.exports=t();}(commonjsGlobal,function s(){var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=n&&/blob:/i.test((f.location||{}).protocol),a={},h=0,b={parse:function(e,t){var i=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var r=function(){if(!b.WORKERS_SUPPORTED)return !1;var e=(i=f.URL||f.webkitURL||null,r=s.toString(),b.BLOB_URL||(b.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var i,r;return t.onmessage=_,t.id=h++,a[t.id]=t}();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new l(t):new p(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,i=!1,r=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");r=t.columns;}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/);}();var h=new RegExp(j(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if("object"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if("object"==typeof e)return "string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||r),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error("Unable to serialize unrecognized input");function u(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=v(e[a],a);0<t.length&&(r+=y);}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c]);}u=""===d.join("").trim();}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(r+=m);var g=n&&s?e[p]:p;r+=v(t[o][g],p);}o<t.length-1&&(!i||0<h&&!f)&&(r+=y);}}return r}function v(e,t){if(null==e)return "";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,i=!0);var r=e.toString().replace(h,a);return (i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return !0;return !1}(r,b.BAD_DELIMITERS)||-1<r.indexOf(m)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?s+r+s:r}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=i,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return !0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)});}),e(),this;function e(){if(0!==h.length){var e,t,i,r,n=h[0];if(M(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,i=n.inputElem,r=s.reason,void(M(o.error)&&o.error({name:e},t,i,r));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config));}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){M(a)&&a(e,n.file,n.inputElem),u();},b.parse(n.file,n.instanceConfig);}else M(o.complete)&&o.complete();}function u(){h.splice(0,1),e();}};}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t;}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i);}this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=r.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(M(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0;}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!M(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0;},this._sendError=function(e){M(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1});};}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded();}:function(){this._readChunk();},this.stream=function(e){this._input=e,this._nextChunk();},this._readChunk=function(){if(this._finished)this._chunkLoaded();else {if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)r.setRequestHeader(t,e[t]);}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+i);}try{r.send(this._config.downloadRequestBody);}catch(e){this._chunkError(e.message);}n&&0===r.status&&this._chunkError();}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return -1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)));},this._chunkError=function(e){var t=r.statusText||e;this._sendError(new Error(t));};}function c(e){var r,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),u.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)):r=new FileReaderSync,this._nextChunk();},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk();},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t);}var i=r.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:i}});},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result);},this._chunkError=function(){this._sendError(r.error);};}function p(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=i.substring(0,t),i=i.substring(t)):(e=i,i=""),this._finished=!i,this.parseChunk(e)}};}function g(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause();},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume();},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError);},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0);},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0;},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()));}catch(e){this._streamError(e);}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e);},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("");},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError);},this);}function i(m){var a,o,h,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,t=this,i=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(M(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else {if(g(),0===c.data.length)return;i+=e.data.length,m.preview&&i>m.preview?o.abort():(c.data=c.data[0],p(c,t));}};}function y(e){return "greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return !y(e)})),_()&&function(){if(!c)return;function e(e,t){M(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e);}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1);}else c.data.forEach(e);}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var i,r=m.header?{}:[];for(i=0;i<e.length;i++){var n=i,s=e[i];m.header&&(n=i>=l.length?"__parsed_extra":l[i]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(s)):r[n]=s;}return m.header&&(i>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+i,f+t):i<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+i,f+t)),r}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return i=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[i]&&(m.dynamicTyping[i]=m.dynamicTypingFunction(i)),!0===(m.dynamicTyping[i]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return !0}return !1}(t)?parseFloat(t):u.test(t)?new Date(t):""===t?null:t):t;var i;}function k(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),c.errors.push(n);}this.parse=function(e,t,i){var r=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(j(t)+"([^]*?)"+j(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return "\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(e,r)),h=!1,m.delimiter)M(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else {var n=function(e,t,i,r,n){var s,a,o,h;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var u=0;u<n.length;u++){var f=n[u],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(i&&y(p.data[g]))c++;else {var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_;}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===h||h<l)&&1.99<l&&(a=d,s=f,h=l);}return {successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(h=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter;}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,i),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=M(m.chunk)?"":a.substring(o.getCharIndex());},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3);},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,M(m.complete)&&m.complete(c),a="";};}function j(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e){var S,O=(e=e||{}).delimiter,x=e.newline,I=e.comments,T=e.step,D=e.preview,A=e.fastMode,L=S=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<b.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");!0===I?I="#":("string"!=typeof I||-1<b.BAD_DELIMITERS.indexOf(I))&&(I=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var F=0,z=!1;this.parse=function(r,t,i){if("string"!=typeof r)throw new Error("Input must be a string");var n=r.length,e=O.length,s=x.length,a=I.length,o=M(T),h=[],u=[],f=[],d=F=0;if(!r)return C();if(A||!1!==A&&-1===r.indexOf(S)){for(var l=r.split(x),c=0;c<l.length;c++){if(f=l[c],F+=f.length,c!==l.length-1)F+=x.length;else if(i)return C();if(!I||f.substring(0,a)!==I){if(o){if(h=[],k(f.split(O)),R(),z)return C()}else k(f.split(O));if(D&&D<=c)return h=h.slice(0,D),C(!0)}}return C()}for(var p=r.indexOf(O,F),g=r.indexOf(x,F),_=new RegExp(j(L)+j(S),"g"),m=r.indexOf(S,F);;)if(r[F]!==S)if(I&&0===f.length&&r.substring(F,F+a)===I){if(-1===g)return C();F=g+s,g=r.indexOf(x,F),p=r.indexOf(O,F);}else if(-1!==p&&(p<g||-1===g))f.push(r.substring(F,p)),F=p+e,p=r.indexOf(O,F);else {if(-1===g)break;if(f.push(r.substring(F,g)),w(g+s),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0)}else for(m=F,F++;;){if(-1===(m=r.indexOf(S,m+1)))return i||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:F}),E();if(m===n-1)return E(r.substring(F,m).replace(_,S));if(S!==L||r[m+1]!==L){if(S===L||0===m||r[m-1]!==L){-1!==p&&p<m+1&&(p=r.indexOf(O,m+1)),-1!==g&&g<m+1&&(g=r.indexOf(x,m+1));var y=b(-1===g?p:Math.min(p,g));if(r.substr(m+1+y,e)===O){f.push(r.substring(F,m).replace(_,S)),r[F=m+1+y+e]!==S&&(m=r.indexOf(S,F)),p=r.indexOf(O,F),g=r.indexOf(x,F);break}var v=b(g);if(r.substring(m+1+v,m+1+v+s)===x){if(f.push(r.substring(F,m).replace(_,S)),w(m+1+v+s),p=r.indexOf(O,F),m=r.indexOf(S,F),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:F}),m++;}}else m++;}return E();function k(e){h.push(e),d=F;}function b(e){var t=0;if(-1!==e){var i=r.substring(m+1,e);i&&""===i.trim()&&(t=i.length);}return t}function E(e){return i||(void 0===e&&(e=r.substring(F)),f.push(e),F=n,k(f),o&&R()),C()}function w(e){F=e,k(f),f=[],g=r.indexOf(x,F);}function C(e){return {data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:z,truncated:!!e,cursor:d+(t||0)}}}function R(){T(C()),h=[],u=[];}},this.abort=function(){z=!0;},this.getCharIndex=function(){return F};}function _(e){var t=e.data,i=a[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}});},pause:y,resume:y};if(M(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results;}else M(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results);}t.finished&&!r&&m(t.workerId,t.results);}function m(e,t){var i=a[e];M(i.userComplete)&&i.userComplete(t),i.terminate(),delete a[e];}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=w(e[i]);return t}function v(e,t){return function(){e.apply(t,arguments);}}function M(e){return "function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var i=b.parse(t.input,t.config);i&&f.postMessage({workerId:b.WORKER_ID,results:i,finished:!0});}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(u.prototype)).constructor=g,b});
3826
+ }(papaparse_min));
3827
+
3828
+ function csv(payload) {
3829
+ es2018$c.assert(payload.length > 0, 'payload must be a non-empty array');
3830
+ return (options) => {
3831
+ const headers = new es2018$d.Headers(options.headers);
3832
+ headers.set('Content-Type', 'text/csv');
3833
+ return Object.assign(Object.assign({}, options), { headers, payload: stringify(payload) });
3834
+ };
3835
+ }
3836
+ function stringify(data) {
3837
+ const fields = Object.keys(data[0]);
3838
+ return papaparse_min.exports.unparse({ data, fields });
3839
+ }
3840
+
3841
+ function signal(signal) {
3842
+ return (options) => {
3843
+ return Object.assign(Object.assign({}, options), { signal });
3844
+ };
3845
+ }
3846
+
3847
+ function header(name, value) {
3848
+ return (options) => {
3849
+ const headers = new es2018$d.Headers(options.headers);
3850
+ headers.set(name, value);
3851
+ return Object.assign(Object.assign({}, options), { headers });
3852
+ };
3853
+ }
3854
+
3855
+ function appendHeader(name, value) {
3856
+ return (options) => {
3857
+ const headers = new es2018$d.Headers(options.headers);
3858
+ headers.append(name, value);
3859
+ return Object.assign(Object.assign({}, options), { headers });
3860
+ };
3861
+ }
3862
+
3863
+ function headers(headers) {
3864
+ return (options) => {
3865
+ const newHeaders = new es2018$d.Headers(options.headers);
3866
+ for (const [name, value] of Object.entries(headers)) {
3867
+ newHeaders.set(name, value);
3868
+ }
3869
+ return Object.assign(Object.assign({}, options), { headers: newHeaders });
3870
+ };
3871
+ }
3872
+
3873
+ function accept(accept) {
3874
+ return appendHeader('Accept', accept);
3875
+ }
3876
+
3877
+ function host(host) {
3878
+ return (options) => {
3879
+ const url = new URL(options.url.href);
3880
+ url.host = host;
3881
+ return Object.assign(Object.assign({}, options), { url });
3882
+ };
3883
+ }
3884
+
3885
+ function port(port) {
3886
+ return (options) => {
3887
+ const url = new URL(options.url.href);
3888
+ url.port = port.toString();
3889
+ return Object.assign(Object.assign({}, options), { url });
3890
+ };
2781
3891
  }
2782
3892
 
2783
3893
  function pathname(pathname) {
@@ -2788,6 +3898,25 @@ function pathname(pathname) {
2788
3898
  };
2789
3899
  }
2790
3900
 
3901
+ function appendPathname(pathname) {
3902
+ return (options) => {
3903
+ const base = es2018$c.go(() => {
3904
+ const directoryPathname = es2018$c.go(() => {
3905
+ let pathname = options.url.pathname;
3906
+ if (!options.url.pathname.endsWith('/')) {
3907
+ pathname += '/';
3908
+ }
3909
+ return pathname;
3910
+ });
3911
+ const url = new URL(options.url.href);
3912
+ url.pathname = directoryPathname;
3913
+ return url;
3914
+ });
3915
+ const url = new URL(pathname, base);
3916
+ return Object.assign(Object.assign({}, options), { url });
3917
+ };
3918
+ }
3919
+
2791
3920
  function search(search) {
2792
3921
  return (options) => {
2793
3922
  const url = new URL(options.url.href);
@@ -2830,10 +3959,10 @@ function appendSearchParam(name, value) {
2830
3959
 
2831
3960
  function formDataField(name, value) {
2832
3961
  return (options) => {
2833
- const formData = options.payload instanceof es2018$5.FormData
3962
+ const formData = options.payload instanceof es2018$d.FormData
2834
3963
  ? cloneFormData(options.payload)
2835
- : new es2018$5.FormData();
2836
- if (es2018$4.isArray(value)) {
3964
+ : new es2018$d.FormData();
3965
+ if (es2018$c.isArray(value)) {
2837
3966
  value.forEach(x => formData.append(name, x));
2838
3967
  }
2839
3968
  else {
@@ -2843,7 +3972,7 @@ function formDataField(name, value) {
2843
3972
  };
2844
3973
  }
2845
3974
  function cloneFormData(formData) {
2846
- const result = new es2018$5.FormData();
3975
+ const result = new es2018$d.FormData();
2847
3976
  for (const [name, value] of formData.entries()) {
2848
3977
  result.append(name, value);
2849
3978
  }
@@ -2919,5 +4048,5 @@ function keepalive(val = true) {
2919
4048
  };
2920
4049
  }
2921
4050
 
2922
- export { accept, appendHeader, appendSearchParam, basicAuth, bearerAuth, csv, del, formDataField, get, head, header, headers, host, json, keepalive, patch, pathname, port, post, put, search, searchParam, searchParams, signal, text, url };
4051
+ export { accept, appendHeader, appendPathname, appendSearchParam, basicAuth, bearerAuth, csv, del, formDataField, get, head, header, headers, host, json, keepalive, patch, pathname, port, post, put, search, searchParam, searchParams, signal, text, url };
2923
4052
  //# sourceMappingURL=index.mjs.map