extra-request 4.0.3 → 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 +9 -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,220 +904,109 @@ function isAbsoluteURL(str) {
616
904
  return false;
617
905
  }
618
906
  }
619
- url$1.isAbsoluteURL = isAbsoluteURL;
620
-
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);
907
+ url$2.isAbsoluteURL = isAbsoluteURL$1;
654
908
 
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 {
694
- ...options,
695
- url
696
- };
697
- };
915
+ regexp$1.isRegExp = isRegExp$1;
916
+ function isntRegExp$1(val) {
917
+ return !isRegExp$1(val);
698
918
  }
919
+ regexp$1.isntRegExp = isntRegExp$1;
699
920
 
700
- function text(payload) {
701
- return (options) => {
702
- const headers = new es2018$5.Headers(options.headers);
703
- headers.set('Content-Type', 'application/x-www-form-urlencoded');
704
- return {
705
- ...options,
706
- headers,
707
- payload
708
- };
709
- };
710
- }
921
+ var symbol$1 = {};
711
922
 
712
- function json(payload) {
713
- return (options) => {
714
- const headers = new es2018$5.Headers(options.headers);
715
- headers.set('Content-Type', 'application/json');
716
- return {
717
- ...options,
718
- headers,
719
- payload: JSON.stringify(payload)
720
- };
721
- };
923
+ symbol$1.isntSymbol = symbol$1.isSymbol = void 0;
924
+ function isSymbol$1(val) {
925
+ return typeof val === 'symbol';
722
926
  }
723
-
724
- var papaparse_min = {exports: {}};
725
-
726
- /* @license
727
- Papa Parse
728
- v5.3.2
729
- https://github.com/mholt/PapaParse
730
- License: MIT
731
- */
732
-
733
- (function (module, exports) {
734
- !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});
735
- }(papaparse_min));
736
-
737
- var es2018$3 = {};
738
-
739
- var customError = {};
740
-
741
- var es2018$2 = {};
742
-
743
- var middleware = {};
744
-
745
- var chunkAsync$1 = {};
746
-
747
- var es2018$1 = {};
748
-
749
- var go$1 = {};
750
-
751
- go$1.go = void 0;
752
- function go(fn) {
753
- return fn();
927
+ symbol$1.isSymbol = isSymbol$1;
928
+ function isntSymbol$1(val) {
929
+ return !isSymbol$1(val);
754
930
  }
755
- go$1.go = go;
931
+ symbol$1.isntSymbol = isntSymbol$1;
756
932
 
757
933
  (function (exports) {
758
934
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
759
935
  if (k2 === undefined) k2 = k;
760
- 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);
761
941
  }) : (function(o, m, k, k2) {
762
942
  if (k2 === undefined) k2 = k;
763
943
  o[k2] = m[k];
764
944
  }));
765
945
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
766
946
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
767
- };__exportStar(go$1, exports);
768
-
769
- }(es2018$1));
770
-
771
- chunkAsync$1.chunkAsync = void 0;
772
- const go_1$f = es2018$1;
773
- const errors_1$f = es2018$3;
774
- function chunkAsync(iterable, size) {
775
- (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
776
- (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
777
- return (0, go_1$f.go)(async function* () {
778
- let buffer = [];
779
- for await (const element of iterable) {
780
- buffer.push(element);
781
- if (buffer.length >= size) {
782
- yield buffer;
783
- buffer = [];
784
- }
785
- }
786
- if (buffer.length)
787
- yield buffer;
788
- });
789
- }
790
- chunkAsync$1.chunkAsync = chunkAsync;
791
-
792
- 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));
793
970
 
794
971
  chunkByAsync$1.chunkByAsync = void 0;
795
- const types_1$k = es2018$4;
972
+ const types_1$m = es2018$6;
796
973
  function chunkByAsync(iterable, predicate) {
797
- if ((0, types_1$k.isAsyncIterable)(iterable)) {
798
- return chunkByAsyncIterable(iterable);
974
+ if ((0, types_1$m.isAsyncIterable)(iterable)) {
975
+ return chunkByAsyncIterable(iterable, predicate);
799
976
  }
800
977
  else {
801
- return chunkByIterable(iterable);
978
+ return chunkByIterable(iterable, predicate);
802
979
  }
803
- async function* chunkByAsyncIterable(iterable) {
804
- let buffer = [];
805
- let index = 0;
806
- for await (const element of iterable) {
807
- buffer.push(element);
808
- if (await predicate(element, index)) {
809
- yield buffer;
810
- buffer = [];
811
- }
812
- index++;
813
- }
814
- 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)) {
815
988
  yield buffer;
816
- }
817
- async function* chunkByIterable(iterable) {
818
- let buffer = [];
819
- let index = 0;
820
- for (const element of iterable) {
821
- buffer.push(element);
822
- if (await predicate(element, index)) {
823
- yield buffer;
824
- buffer = [];
825
- }
826
- index++;
989
+ buffer = [];
827
990
  }
828
- 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)) {
829
1002
  yield buffer;
1003
+ buffer = [];
1004
+ }
1005
+ index++;
830
1006
  }
1007
+ if (buffer.length)
1008
+ yield buffer;
831
1009
  }
832
- chunkByAsync$1.chunkByAsync = chunkByAsync;
833
1010
 
834
1011
  var chunkBy$1 = {};
835
1012
 
@@ -853,12 +1030,12 @@ chunkBy$1.chunkBy = chunkBy;
853
1030
  var chunk$1 = {};
854
1031
 
855
1032
  chunk$1.chunk = void 0;
856
- const go_1$e = es2018$1;
857
- const errors_1$e = es2018$3;
1033
+ const go_1$f = es2018$9;
1034
+ const errors_1$e = es2018$b;
858
1035
  function chunk(iterable, size) {
859
1036
  (0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
860
1037
  (0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
861
- return (0, go_1$e.go)(function* () {
1038
+ return (0, go_1$f.go)(function* () {
862
1039
  let buffer = [];
863
1040
  for (const element of iterable) {
864
1041
  buffer.push(element);
@@ -876,12 +1053,12 @@ chunk$1.chunk = chunk;
876
1053
  var concatAsync$1 = {};
877
1054
 
878
1055
  concatAsync$1.concatAsync = void 0;
879
- const types_1$j = es2018$4;
880
- const go_1$d = es2018$1;
1056
+ const types_1$l = es2018$6;
1057
+ const go_1$e = es2018$9;
881
1058
  function concatAsync(iterable, ...otherIterables) {
882
- return (0, go_1$d.go)(async function* () {
1059
+ return (0, go_1$e.go)(async function* () {
883
1060
  for (const iter of [iterable, ...otherIterables]) {
884
- if ((0, types_1$j.isAsyncIterable)(iter)) {
1061
+ if ((0, types_1$l.isAsyncIterable)(iter)) {
885
1062
  for await (const element of iter) {
886
1063
  yield element;
887
1064
  }
@@ -899,9 +1076,9 @@ concatAsync$1.concatAsync = concatAsync;
899
1076
  var concat$1 = {};
900
1077
 
901
1078
  concat$1.concat = void 0;
902
- const go_1$c = es2018$1;
1079
+ const go_1$d = es2018$9;
903
1080
  function concat(iterable, ...otherIterables) {
904
- return (0, go_1$c.go)(function* () {
1081
+ return (0, go_1$d.go)(function* () {
905
1082
  for (const iter of [iterable, ...otherIterables]) {
906
1083
  yield* iter;
907
1084
  }
@@ -928,15 +1105,15 @@ function* copyIterable(iterable) {
928
1105
  utils.copyIterable = copyIterable;
929
1106
 
930
1107
  dropAsync$1.dropAsync = void 0;
931
- const go_1$b = es2018$1;
1108
+ const go_1$c = es2018$9;
932
1109
  const utils_1$3 = utils;
933
- const errors_1$d = es2018$3;
1110
+ const errors_1$d = es2018$b;
934
1111
  function dropAsync(iterable, count) {
935
1112
  (0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
936
1113
  (0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
937
1114
  if (count === 0)
938
1115
  return (0, utils_1$3.copyAsyncIterable)(iterable);
939
- return (0, go_1$b.go)(async function* () {
1116
+ return (0, go_1$c.go)(async function* () {
940
1117
  var _a;
941
1118
  const iterator = iterable[Symbol.asyncIterator]();
942
1119
  let done;
@@ -963,15 +1140,15 @@ dropAsync$1.dropAsync = dropAsync;
963
1140
  var dropRightAsync$1 = {};
964
1141
 
965
1142
  dropRightAsync$1.dropRightAsync = void 0;
966
- const go_1$a = es2018$1;
1143
+ const go_1$b = es2018$9;
967
1144
  const utils_1$2 = utils;
968
- const errors_1$c = es2018$3;
1145
+ const errors_1$c = es2018$b;
969
1146
  function dropRightAsync(iterable, count) {
970
1147
  (0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
971
1148
  (0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
972
1149
  if (count === 0)
973
1150
  return (0, utils_1$2.copyAsyncIterable)(iterable);
974
- return (0, go_1$a.go)(async function* () {
1151
+ return (0, go_1$b.go)(async function* () {
975
1152
  const arr = await toArrayAsync$2(iterable);
976
1153
  const result = arr.slice(0, -count);
977
1154
  for (const value of result) {
@@ -991,15 +1168,15 @@ async function toArrayAsync$2(iterable) {
991
1168
  var dropRight$1 = {};
992
1169
 
993
1170
  dropRight$1.dropRight = void 0;
994
- const go_1$9 = es2018$1;
1171
+ const go_1$a = es2018$9;
995
1172
  const utils_1$1 = utils;
996
- const errors_1$b = es2018$3;
1173
+ const errors_1$b = es2018$b;
997
1174
  function dropRight(iterable, count) {
998
1175
  (0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
999
1176
  (0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1000
1177
  if (count === 0)
1001
1178
  return (0, utils_1$1.copyIterable)(iterable);
1002
- return (0, go_1$9.go)(function* () {
1179
+ return (0, go_1$a.go)(function* () {
1003
1180
  const arr = Array.from(iterable);
1004
1181
  yield* arr.slice(0, -count);
1005
1182
  });
@@ -1009,58 +1186,58 @@ dropRight$1.dropRight = dropRight;
1009
1186
  var dropUntilAsync$1 = {};
1010
1187
 
1011
1188
  dropUntilAsync$1.dropUntilAsync = void 0;
1012
- const types_1$i = es2018$4;
1189
+ const types_1$k = es2018$6;
1013
1190
  function dropUntilAsync(iterable, predicate) {
1014
- if ((0, types_1$i.isAsyncIterable)(iterable)) {
1015
- return dropUntilAsyncIterable(iterable);
1191
+ if ((0, types_1$k.isAsyncIterable)(iterable)) {
1192
+ return dropUntilAsyncIterable(iterable, predicate);
1016
1193
  }
1017
1194
  else {
1018
- return dropUntilIterable(iterable);
1195
+ return dropUntilIterable(iterable, predicate);
1019
1196
  }
1020
- async function* dropUntilAsyncIterable(iterable) {
1021
- var _a;
1022
- const iterator = iterable[Symbol.asyncIterator]();
1023
- let done;
1024
- try {
1025
- let index = 0;
1026
- let value;
1027
- while ({ value, done } = await iterator.next(), !done) {
1028
- if (await predicate(value, index++))
1029
- break;
1030
- }
1031
- while (!done) {
1032
- yield value;
1033
- ({ value, done } = await iterator.next());
1034
- }
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;
1035
1209
  }
1036
- finally {
1037
- if (!done)
1038
- 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());
1039
1213
  }
1040
1214
  }
1041
- async function* dropUntilIterable(iterable) {
1042
- var _a;
1043
- const iterator = iterable[Symbol.iterator]();
1044
- let done;
1045
- try {
1046
- let index = 0;
1047
- let value;
1048
- while ({ value, done } = iterator.next(), !done) {
1049
- if (await predicate(value, index++))
1050
- break;
1051
- }
1052
- while (!done) {
1053
- yield value;
1054
- ({ value, done } = iterator.next());
1055
- }
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;
1056
1230
  }
1057
- finally {
1058
- if (!done)
1059
- (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1231
+ while (!done) {
1232
+ yield value;
1233
+ ({ value, done } = iterator.next());
1060
1234
  }
1061
1235
  }
1236
+ finally {
1237
+ if (!done)
1238
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1239
+ }
1062
1240
  }
1063
- dropUntilAsync$1.dropUntilAsync = dropUntilAsync;
1064
1241
 
1065
1242
  var dropUntil$1 = {};
1066
1243
 
@@ -1091,15 +1268,15 @@ dropUntil$1.dropUntil = dropUntil;
1091
1268
  var drop$1 = {};
1092
1269
 
1093
1270
  drop$1.drop = void 0;
1094
- const go_1$8 = es2018$1;
1271
+ const go_1$9 = es2018$9;
1095
1272
  const utils_1 = utils;
1096
- const errors_1$a = es2018$3;
1273
+ const errors_1$a = es2018$b;
1097
1274
  function drop(iterable, count) {
1098
1275
  (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1099
1276
  (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1100
1277
  if (count === 0)
1101
1278
  return (0, utils_1.copyIterable)(iterable);
1102
- return (0, go_1$8.go)(function* () {
1279
+ return (0, go_1$9.go)(function* () {
1103
1280
  var _a;
1104
1281
  const iterator = iterable[Symbol.iterator]();
1105
1282
  let done;
@@ -1126,32 +1303,32 @@ drop$1.drop = drop;
1126
1303
  var filterAsync$1 = {};
1127
1304
 
1128
1305
  filterAsync$1.filterAsync = void 0;
1129
- const types_1$h = es2018$4;
1306
+ const types_1$j = es2018$6;
1130
1307
  function filterAsync(iterable, predicate) {
1131
- if ((0, types_1$h.isAsyncIterable)(iterable)) {
1132
- return filterAsyncIterable(iterable);
1308
+ if ((0, types_1$j.isAsyncIterable)(iterable)) {
1309
+ return filterAsyncIterable(iterable, predicate);
1133
1310
  }
1134
1311
  else {
1135
- return filterIterable(iterable);
1312
+ return filterIterable(iterable, predicate);
1136
1313
  }
1137
- async function* filterAsyncIterable(iterable) {
1138
- let index = 0;
1139
- for await (const element of iterable) {
1140
- if (await predicate(element, index))
1141
- yield element;
1142
- index++;
1143
- }
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++;
1144
1322
  }
1145
- async function* filterIterable(iterable) {
1146
- let index = 0;
1147
- for (const element of iterable) {
1148
- if (await predicate(element, index))
1149
- yield element;
1150
- index++;
1151
- }
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++;
1152
1330
  }
1153
1331
  }
1154
- filterAsync$1.filterAsync = filterAsync;
1155
1332
 
1156
1333
  var filter$1 = {};
1157
1334
 
@@ -1173,47 +1350,47 @@ var flattenDeepAsync$1 = {};
1173
1350
  var flattenByAsync$1 = {};
1174
1351
 
1175
1352
  flattenByAsync$1.flattenByAsync = void 0;
1176
- const types_1$g = es2018$4;
1353
+ const types_1$i = es2018$6;
1177
1354
  function flattenByAsync(iterable, predicate) {
1178
- if ((0, types_1$g.isAsyncIterable)(iterable)) {
1179
- return flattenByAsyncIterable(iterable);
1355
+ if ((0, types_1$i.isAsyncIterable)(iterable)) {
1356
+ return flattenByAsyncIterable(iterable, predicate);
1180
1357
  }
1181
1358
  else {
1182
- return flattenByIterable(iterable);
1359
+ return flattenByIterable(iterable, predicate);
1183
1360
  }
1184
- async function* flattenByAsyncIterable(iterable) {
1185
- const level = 1;
1186
- for await (const element of iterable) {
1187
- if (isFiniteIterable$1(element) && await predicate(element, level)) {
1188
- yield* flatten(element, level + 1);
1189
- }
1190
- else {
1191
- yield element;
1192
- }
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;
1193
1371
  }
1194
1372
  }
1195
- function flattenByIterable(iterable) {
1196
- return flatten(iterable, 1);
1197
- }
1198
- async function* flatten(iterable, level) {
1199
- for (const element of iterable) {
1200
- if (isFiniteIterable$1(element) && await predicate(element, level)) {
1201
- yield* flatten(element, level + 1);
1202
- }
1203
- else {
1204
- yield element;
1205
- }
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;
1206
1384
  }
1207
1385
  }
1208
1386
  }
1209
- flattenByAsync$1.flattenByAsync = flattenByAsync;
1210
1387
  function isFiniteIterable$1(val) {
1211
- 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);
1212
1389
  }
1213
1390
 
1214
1391
  flattenDeepAsync$1.flattenDeepAsync = void 0;
1215
1392
  const flatten_by_async_1 = flattenByAsync$1;
1216
- const errors_1$9 = es2018$3;
1393
+ const errors_1$9 = es2018$b;
1217
1394
  function flattenDeepAsync(iterable, depth = Infinity) {
1218
1395
  (0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1219
1396
  (0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1231,30 +1408,30 @@ flattenAsync$1.flattenAsync = flattenAsync;
1231
1408
  var flattenBy$1 = {};
1232
1409
 
1233
1410
  flattenBy$1.flattenBy = void 0;
1234
- const types_1$f = es2018$4;
1411
+ const types_1$h = es2018$6;
1235
1412
  function flattenBy(iterable, predicate) {
1236
- return flatten(iterable, 1);
1237
- function* flatten(iterable, level) {
1238
- for (const element of iterable) {
1239
- if (isFiniteIterable(element) && predicate(element, level)) {
1240
- yield* flatten(element, level + 1);
1241
- }
1242
- else {
1243
- yield element;
1244
- }
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;
1245
1423
  }
1246
1424
  }
1247
1425
  }
1248
- flattenBy$1.flattenBy = flattenBy;
1249
1426
  function isFiniteIterable(val) {
1250
- 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);
1251
1428
  }
1252
1429
 
1253
1430
  var flattenDeep$1 = {};
1254
1431
 
1255
1432
  flattenDeep$1.flattenDeep = void 0;
1256
1433
  const flatten_by_1 = flattenBy$1;
1257
- const errors_1$8 = es2018$3;
1434
+ const errors_1$8 = es2018$b;
1258
1435
  function flattenDeep(iterable, depth = Infinity) {
1259
1436
  (0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1260
1437
  (0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1274,30 +1451,30 @@ flatten$1.flatten = flatten;
1274
1451
  var mapAsync$1 = {};
1275
1452
 
1276
1453
  mapAsync$1.mapAsync = void 0;
1277
- const types_1$e = es2018$4;
1454
+ const types_1$g = es2018$6;
1278
1455
  function mapAsync(iterable, fn) {
1279
- if ((0, types_1$e.isAsyncIterable)(iterable)) {
1280
- return mapAsyncIterable(iterable);
1456
+ if ((0, types_1$g.isAsyncIterable)(iterable)) {
1457
+ return mapAsyncIterable(iterable, fn);
1281
1458
  }
1282
1459
  else {
1283
- return mapIterable(iterable);
1460
+ return mapIterable(iterable, fn);
1284
1461
  }
1285
- async function* mapAsyncIterable(iterable) {
1286
- let index = 0;
1287
- for await (const element of iterable) {
1288
- yield await fn(element, index);
1289
- index++;
1290
- }
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++;
1291
1469
  }
1292
- async function* mapIterable(iterable) {
1293
- let index = 0;
1294
- for (const element of iterable) {
1295
- yield await fn(element, index);
1296
- index++;
1297
- }
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++;
1298
1476
  }
1299
1477
  }
1300
- mapAsync$1.mapAsync = mapAsync;
1301
1478
 
1302
1479
  var map$1 = {};
1303
1480
 
@@ -1314,14 +1491,14 @@ map$1.map = map;
1314
1491
  var repeatAsync$1 = {};
1315
1492
 
1316
1493
  repeatAsync$1.repeatAsync = void 0;
1317
- const go_1$7 = es2018$1;
1318
- const errors_1$7 = es2018$3;
1494
+ const go_1$8 = es2018$9;
1495
+ const errors_1$7 = es2018$b;
1319
1496
  function repeatAsync(iterable, times) {
1320
1497
  (0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1321
1498
  (0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1322
1499
  if (times === Infinity)
1323
1500
  warnInfiniteLoop$1();
1324
- return (0, go_1$7.go)(async function* () {
1501
+ return (0, go_1$8.go)(async function* () {
1325
1502
  const cache = [];
1326
1503
  if (times > 0) {
1327
1504
  for await (const element of iterable) {
@@ -1349,14 +1526,14 @@ function isProduction$1() {
1349
1526
  var repeat$1 = {};
1350
1527
 
1351
1528
  repeat$1.repeat = void 0;
1352
- const go_1$6 = es2018$1;
1353
- const errors_1$6 = es2018$3;
1529
+ const go_1$7 = es2018$9;
1530
+ const errors_1$6 = es2018$b;
1354
1531
  function repeat(iterable, times) {
1355
1532
  (0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1356
1533
  (0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1357
1534
  if (times === Infinity)
1358
1535
  warnInfiniteLoop();
1359
- return (0, go_1$6.go)(function* () {
1536
+ return (0, go_1$7.go)(function* () {
1360
1537
  const cache = [];
1361
1538
  if (times > 0) {
1362
1539
  for (const element of iterable) {
@@ -1384,14 +1561,14 @@ function isProduction() {
1384
1561
  var sliceAsync$1 = {};
1385
1562
 
1386
1563
  sliceAsync$1.sliceAsync = void 0;
1387
- const go_1$5 = es2018$1;
1388
- const errors_1$5 = es2018$3;
1564
+ const go_1$6 = es2018$9;
1565
+ const errors_1$5 = es2018$b;
1389
1566
  function sliceAsync(iterable, start, end = Infinity) {
1390
1567
  (0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1391
1568
  (0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1392
1569
  (0, errors_1$5.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1393
1570
  (0, errors_1$5.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1394
- return (0, go_1$5.go)(async function* () {
1571
+ return (0, go_1$6.go)(async function* () {
1395
1572
  let index = 0;
1396
1573
  for await (const element of iterable) {
1397
1574
  if (index >= end)
@@ -1407,14 +1584,14 @@ sliceAsync$1.sliceAsync = sliceAsync;
1407
1584
  var slice$1 = {};
1408
1585
 
1409
1586
  slice$1.slice = void 0;
1410
- const go_1$4 = es2018$1;
1411
- const errors_1$4 = es2018$3;
1587
+ const go_1$5 = es2018$9;
1588
+ const errors_1$4 = es2018$b;
1412
1589
  function slice(iterable, start, end = Infinity) {
1413
1590
  (0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1414
1591
  (0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1415
1592
  (0, errors_1$4.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1416
1593
  (0, errors_1$4.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1417
- return (0, go_1$4.go)(function* () {
1594
+ return (0, go_1$5.go)(function* () {
1418
1595
  let index = 0;
1419
1596
  for (const element of iterable) {
1420
1597
  if (index >= end)
@@ -1448,46 +1625,46 @@ splitAsync$1.splitAsync = splitAsync;
1448
1625
  var splitByAsync$1 = {};
1449
1626
 
1450
1627
  splitByAsync$1.splitByAsync = void 0;
1451
- const types_1$d = es2018$4;
1628
+ const types_1$f = es2018$6;
1452
1629
  function splitByAsync(iterable, predicate) {
1453
- if ((0, types_1$d.isAsyncIterable)(iterable)) {
1454
- return splitByAsyncIterable(iterable);
1630
+ if ((0, types_1$f.isAsyncIterable)(iterable)) {
1631
+ return splitByAsyncIterable(iterable, predicate);
1455
1632
  }
1456
1633
  else {
1457
- return splitByIterable(iterable);
1634
+ return splitByIterable(iterable, predicate);
1458
1635
  }
1459
- async function* splitByIterable(iterable) {
1460
- let buffer = [];
1461
- let index = 0;
1462
- for (const element of iterable) {
1463
- if (await predicate(element, index)) {
1464
- yield buffer;
1465
- buffer = [];
1466
- }
1467
- else {
1468
- buffer.push(element);
1469
- }
1470
- 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 = [];
1471
1645
  }
1472
- yield buffer;
1646
+ else {
1647
+ buffer.push(element);
1648
+ }
1649
+ index++;
1473
1650
  }
1474
- async function* splitByAsyncIterable(iterable) {
1475
- let buffer = [];
1476
- let index = 0;
1477
- for await (const element of iterable) {
1478
- if (await predicate(element, index)) {
1479
- yield buffer;
1480
- buffer = [];
1481
- }
1482
- else {
1483
- buffer.push(element);
1484
- }
1485
- 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 = [];
1486
1660
  }
1487
- yield buffer;
1661
+ else {
1662
+ buffer.push(element);
1663
+ }
1664
+ index++;
1488
1665
  }
1666
+ yield buffer;
1489
1667
  }
1490
- splitByAsync$1.splitByAsync = splitByAsync;
1491
1668
 
1492
1669
  var splitBy$1 = {};
1493
1670
 
@@ -1530,12 +1707,12 @@ split$1.split = split;
1530
1707
  var takeAsync$1 = {};
1531
1708
 
1532
1709
  takeAsync$1.takeAsync = void 0;
1533
- const go_1$3 = es2018$1;
1534
- const errors_1$3 = es2018$3;
1710
+ const go_1$4 = es2018$9;
1711
+ const errors_1$3 = es2018$b;
1535
1712
  function takeAsync(iterable, count) {
1536
1713
  (0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1537
1714
  (0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1538
- return (0, go_1$3.go)(async function* () {
1715
+ return (0, go_1$4.go)(async function* () {
1539
1716
  if (count === 0)
1540
1717
  return;
1541
1718
  for await (const element of iterable) {
@@ -1551,12 +1728,12 @@ takeAsync$1.takeAsync = takeAsync;
1551
1728
  var takeRightAsync$1 = {};
1552
1729
 
1553
1730
  takeRightAsync$1.takeRightAsync = void 0;
1554
- const go_1$2 = es2018$1;
1555
- const errors_1$2 = es2018$3;
1731
+ const go_1$3 = es2018$9;
1732
+ const errors_1$2 = es2018$b;
1556
1733
  function takeRightAsync(iterable, count) {
1557
1734
  (0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1558
1735
  (0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1559
- return (0, go_1$2.go)(async function* () {
1736
+ return (0, go_1$3.go)(async function* () {
1560
1737
  var _a;
1561
1738
  const iterator = iterable[Symbol.asyncIterator]();
1562
1739
  let done;
@@ -1581,12 +1758,12 @@ takeRightAsync$1.takeRightAsync = takeRightAsync;
1581
1758
  var takeRight$1 = {};
1582
1759
 
1583
1760
  takeRight$1.takeRight = void 0;
1584
- const go_1$1 = es2018$1;
1585
- const errors_1$1 = es2018$3;
1761
+ const go_1$2 = es2018$9;
1762
+ const errors_1$1 = es2018$b;
1586
1763
  function takeRight(iterable, count) {
1587
1764
  (0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1588
1765
  (0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1589
- return (0, go_1$1.go)(function* () {
1766
+ return (0, go_1$2.go)(function* () {
1590
1767
  var _a;
1591
1768
  const iterator = iterable[Symbol.iterator]();
1592
1769
  let done;
@@ -1611,34 +1788,34 @@ takeRight$1.takeRight = takeRight;
1611
1788
  var takeUntilAsync$1 = {};
1612
1789
 
1613
1790
  takeUntilAsync$1.takeUntilAsync = void 0;
1614
- const types_1$c = es2018$4;
1791
+ const types_1$e = es2018$6;
1615
1792
  function takeUntilAsync(iterable, predicate) {
1616
- if ((0, types_1$c.isAsyncIterable)(iterable)) {
1617
- return takeUntilAsyncIterable(iterable);
1793
+ if ((0, types_1$e.isAsyncIterable)(iterable)) {
1794
+ return takeUntilAsyncIterable(iterable, predicate);
1618
1795
  }
1619
1796
  else {
1620
- return takeUntilIterable(iterable);
1797
+ return takeUntilIterable(iterable, predicate);
1621
1798
  }
1622
- async function* takeUntilAsyncIterable(iterable) {
1623
- let index = 0;
1624
- for await (const element of iterable) {
1625
- if (await predicate(element, index))
1626
- break;
1627
- yield element;
1628
- index++;
1629
- }
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++;
1630
1808
  }
1631
- async function* takeUntilIterable(iterable) {
1632
- let index = 0;
1633
- for (const element of iterable) {
1634
- if (await predicate(element, index))
1635
- break;
1636
- yield element;
1637
- index++;
1638
- }
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++;
1639
1817
  }
1640
1818
  }
1641
- takeUntilAsync$1.takeUntilAsync = takeUntilAsync;
1642
1819
 
1643
1820
  var takeUntil$1 = {};
1644
1821
 
@@ -1657,12 +1834,12 @@ takeUntil$1.takeUntil = takeUntil;
1657
1834
  var take$1 = {};
1658
1835
 
1659
1836
  take$1.take = void 0;
1660
- const go_1 = es2018$1;
1661
- const errors_1 = es2018$3;
1837
+ const go_1$1 = es2018$9;
1838
+ const errors_1 = es2018$b;
1662
1839
  function take(iterable, count) {
1663
1840
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1664
1841
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1665
- return (0, go_1.go)(function* () {
1842
+ return (0, go_1$1.go)(function* () {
1666
1843
  if (count === 0)
1667
1844
  return;
1668
1845
  for (const element of iterable) {
@@ -1678,32 +1855,32 @@ take$1.take = take;
1678
1855
  var tapAsync$1 = {};
1679
1856
 
1680
1857
  tapAsync$1.tapAsync = void 0;
1681
- const types_1$b = es2018$4;
1858
+ const types_1$d = es2018$6;
1682
1859
  function tapAsync(iterable, fn) {
1683
- if ((0, types_1$b.isAsyncIterable)(iterable)) {
1684
- return tapAsyncIterable(iterable);
1860
+ if ((0, types_1$d.isAsyncIterable)(iterable)) {
1861
+ return tapAsyncIterable(iterable, fn);
1685
1862
  }
1686
1863
  else {
1687
- return tapIterable(iterable);
1864
+ return tapIterable(iterable, fn);
1688
1865
  }
1689
- async function* tapIterable(iterable) {
1690
- let index = 0;
1691
- for (const element of iterable) {
1692
- await fn(element, index);
1693
- yield element;
1694
- index++;
1695
- }
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++;
1696
1874
  }
1697
- async function* tapAsyncIterable(iterable) {
1698
- let index = 0;
1699
- for await (const element of iterable) {
1700
- await fn(element, index);
1701
- yield element;
1702
- index++;
1703
- }
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++;
1704
1882
  }
1705
1883
  }
1706
- tapAsync$1.tapAsync = tapAsync;
1707
1884
 
1708
1885
  var tap$1 = {};
1709
1886
 
@@ -1761,40 +1938,40 @@ uniqAsync$1.uniqAsync = uniqAsync;
1761
1938
  var uniqByAsync$1 = {};
1762
1939
 
1763
1940
  uniqByAsync$1.uniqByAsync = void 0;
1764
- const types_1$a = es2018$4;
1941
+ const types_1$c = es2018$6;
1765
1942
  function uniqByAsync(iterable, fn) {
1766
- if ((0, types_1$a.isAsyncIterable)(iterable)) {
1767
- return uniqByAsyncIterable(iterable);
1943
+ if ((0, types_1$c.isAsyncIterable)(iterable)) {
1944
+ return uniqByAsyncIterable(iterable, fn);
1768
1945
  }
1769
1946
  else {
1770
- return uniqByIterable(iterable);
1947
+ return uniqByIterable(iterable, fn);
1771
1948
  }
1772
- async function* uniqByAsyncIterable(iterable) {
1773
- const bucket = new Set();
1774
- let index = 0;
1775
- for await (const element of iterable) {
1776
- const result = await fn(element, index);
1777
- if (!bucket.has(result)) {
1778
- yield element;
1779
- bucket.add(result);
1780
- }
1781
- 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);
1782
1959
  }
1960
+ index++;
1783
1961
  }
1784
- async function* uniqByIterable(iterable) {
1785
- const bucket = new Set();
1786
- let index = 0;
1787
- for (const element of iterable) {
1788
- const result = await fn(element, index);
1789
- if (!bucket.has(result)) {
1790
- yield element;
1791
- bucket.add(result);
1792
- }
1793
- 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);
1794
1971
  }
1972
+ index++;
1795
1973
  }
1796
1974
  }
1797
- uniqByAsync$1.uniqByAsync = uniqByAsync;
1798
1975
 
1799
1976
  var uniqBy$1 = {};
1800
1977
 
@@ -1830,7 +2007,7 @@ uniq$1.uniq = uniq;
1830
2007
  var zipAsync$1 = {};
1831
2008
 
1832
2009
  zipAsync$1.zipAsync = void 0;
1833
- const types_1$9 = es2018$4;
2010
+ const types_1$b = es2018$6;
1834
2011
  var Kind;
1835
2012
  (function (Kind) {
1836
2013
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -1844,7 +2021,7 @@ async function* zipWithSize$1(...iterables) {
1844
2021
  var _a, _b, _c, _d;
1845
2022
  const length = iterables.length;
1846
2023
  const iterators = iterables.map(iterable => {
1847
- if ((0, types_1$9.isAsyncIterable)(iterable)) {
2024
+ if ((0, types_1$b.isAsyncIterable)(iterable)) {
1848
2025
  return [Kind.Async, iterable[Symbol.asyncIterator]()];
1849
2026
  }
1850
2027
  else {
@@ -1994,30 +2171,30 @@ consume$1.consume = consume;
1994
2171
  var eachAsync$1 = {};
1995
2172
 
1996
2173
  eachAsync$1.eachAsync = void 0;
1997
- const types_1$8 = es2018$4;
2174
+ const types_1$a = es2018$6;
1998
2175
  function eachAsync(iterable, fn) {
1999
- if ((0, types_1$8.isAsyncIterable)(iterable)) {
2000
- return eachAsyncIterable(iterable);
2176
+ if ((0, types_1$a.isAsyncIterable)(iterable)) {
2177
+ return eachAsyncIterable(iterable, fn);
2001
2178
  }
2002
2179
  else {
2003
- return eachIterable(iterable);
2180
+ return eachIterable(iterable, fn);
2004
2181
  }
2005
- async function eachAsyncIterable(iterable) {
2006
- let index = 0;
2007
- for await (const element of iterable) {
2008
- await fn(element, index);
2009
- index++;
2010
- }
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++;
2011
2189
  }
2012
- async function eachIterable(iterable) {
2013
- let index = 0;
2014
- for (const element of iterable) {
2015
- await fn(element, index);
2016
- index++;
2017
- }
2190
+ }
2191
+ async function eachIterable(iterable, fn) {
2192
+ let index = 0;
2193
+ for (const element of iterable) {
2194
+ await fn(element, index);
2195
+ index++;
2018
2196
  }
2019
2197
  }
2020
- eachAsync$1.eachAsync = eachAsync;
2021
2198
 
2022
2199
  var each$1 = {};
2023
2200
 
@@ -2034,34 +2211,34 @@ each$1.each = each;
2034
2211
  var everyAsync$1 = {};
2035
2212
 
2036
2213
  everyAsync$1.everyAsync = void 0;
2037
- const types_1$7 = es2018$4;
2214
+ const types_1$9 = es2018$6;
2038
2215
  function everyAsync(iterable, predicate) {
2039
- if ((0, types_1$7.isAsyncIterable)(iterable)) {
2040
- return everyAsyncIterable(iterable);
2216
+ if ((0, types_1$9.isAsyncIterable)(iterable)) {
2217
+ return everyAsyncIterable(iterable, predicate);
2041
2218
  }
2042
2219
  else {
2043
- return everyIterable(iterable);
2220
+ return everyIterable(iterable, predicate);
2044
2221
  }
2045
- async function everyIterable(iterable) {
2046
- let index = 0;
2047
- for (const element of iterable) {
2048
- if (!await predicate(element, index))
2049
- return false;
2050
- index++;
2051
- }
2052
- 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++;
2053
2230
  }
2054
- async function everyAsyncIterable(iterable) {
2055
- let index = 0;
2056
- for await (const element of iterable) {
2057
- if (!await predicate(element, index))
2058
- return false;
2059
- index++;
2060
- }
2061
- 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++;
2062
2239
  }
2240
+ return true;
2063
2241
  }
2064
- everyAsync$1.everyAsync = everyAsync;
2065
2242
 
2066
2243
  var every$1 = {};
2067
2244
 
@@ -2080,34 +2257,34 @@ every$1.every = every;
2080
2257
  var findAsync$1 = {};
2081
2258
 
2082
2259
  findAsync$1.findAsync = void 0;
2083
- const types_1$6 = es2018$4;
2260
+ const types_1$8 = es2018$6;
2084
2261
  function findAsync(iterable, predicate) {
2085
- if ((0, types_1$6.isAsyncIterable)(iterable)) {
2086
- return findAsyncIterable(iterable);
2262
+ if ((0, types_1$8.isAsyncIterable)(iterable)) {
2263
+ return findAsyncIterable(iterable, predicate);
2087
2264
  }
2088
2265
  else {
2089
- return findIterable(iterable);
2266
+ return findIterable(iterable, predicate);
2090
2267
  }
2091
- async function findIterable(iterable) {
2092
- let index = 0;
2093
- for (const element of iterable) {
2094
- if (await predicate(element, index))
2095
- return element;
2096
- index++;
2097
- }
2098
- 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++;
2099
2276
  }
2100
- async function findAsyncIterable(iterable) {
2101
- let index = 0;
2102
- for await (const element of iterable) {
2103
- if (await predicate(element, index))
2104
- return element;
2105
- index++;
2106
- }
2107
- 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++;
2108
2285
  }
2286
+ return undefined;
2109
2287
  }
2110
- findAsync$1.findAsync = findAsync;
2111
2288
 
2112
2289
  var find$1 = {};
2113
2290
 
@@ -2204,9 +2381,9 @@ match$1.match = match;
2204
2381
  var reduceAsync$1 = {};
2205
2382
 
2206
2383
  reduceAsync$1.reduceAsync = void 0;
2207
- const types_1$5 = es2018$4;
2384
+ const types_1$7 = es2018$6;
2208
2385
  function reduceAsync(iterable, fn, initialValue) {
2209
- if ((0, types_1$5.isUndefined)(initialValue)) {
2386
+ if ((0, types_1$7.isUndefined)(initialValue)) {
2210
2387
  return reduceAsyncWithoutInitialValue(iterable, fn);
2211
2388
  }
2212
2389
  else {
@@ -2215,7 +2392,7 @@ function reduceAsync(iterable, fn, initialValue) {
2215
2392
  }
2216
2393
  reduceAsync$1.reduceAsync = reduceAsync;
2217
2394
  function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
2218
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
2395
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
2219
2396
  return reduceAsyncIterable(iterable);
2220
2397
  }
2221
2398
  else {
@@ -2237,7 +2414,7 @@ function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
2237
2414
  }
2238
2415
  }
2239
2416
  function reduceAsyncWithoutInitialValue(iterable, fn) {
2240
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
2417
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
2241
2418
  return reduceAsyncIterable(iterable);
2242
2419
  }
2243
2420
  else {
@@ -2300,9 +2477,9 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
2300
2477
  var reduce$1 = {};
2301
2478
 
2302
2479
  reduce$1.reduce = void 0;
2303
- const types_1$4 = es2018$4;
2480
+ const types_1$6 = es2018$6;
2304
2481
  function reduce(iterable, fn, initialValue) {
2305
- if ((0, types_1$4.isUndefined)(initialValue)) {
2482
+ if ((0, types_1$6.isUndefined)(initialValue)) {
2306
2483
  return reduceWithoutInitialValue(iterable, fn);
2307
2484
  }
2308
2485
  else {
@@ -2347,34 +2524,34 @@ function reduceWithoutInitialValue(iterable, fn) {
2347
2524
  var someAsync$1 = {};
2348
2525
 
2349
2526
  someAsync$1.someAsync = void 0;
2350
- const types_1$3 = es2018$4;
2527
+ const types_1$5 = es2018$6;
2351
2528
  function someAsync(iterable, predicate) {
2352
- if ((0, types_1$3.isAsyncIterable)(iterable)) {
2353
- return someAsyncIterable(iterable);
2529
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2530
+ return someAsyncIterable(iterable, predicate);
2354
2531
  }
2355
2532
  else {
2356
- return someIterable(iterable);
2533
+ return someIterable(iterable, predicate);
2357
2534
  }
2358
- async function someIterable(iterable) {
2359
- let index = 0;
2360
- for (const element of iterable) {
2361
- if (await predicate(element, index))
2362
- return true;
2363
- index++;
2364
- }
2365
- 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++;
2366
2543
  }
2367
- async function someAsyncIterable(iterable) {
2368
- let index = 0;
2369
- for await (const element of iterable) {
2370
- if (await predicate(element, index))
2371
- return true;
2372
- index++;
2373
- }
2374
- 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++;
2375
2552
  }
2553
+ return false;
2376
2554
  }
2377
- someAsync$1.someAsync = someAsync;
2378
2555
 
2379
2556
  var some$1 = {};
2380
2557
 
@@ -2482,6 +2659,64 @@ function toSet(iterable) {
2482
2659
  }
2483
2660
  toSet$1.toSet = toSet;
2484
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
+
2485
2720
  (function (exports) {
2486
2721
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2487
2722
  if (k2 === undefined) k2 = k;
@@ -2519,6 +2754,10 @@ __exportStar(toArrayAsync$1, exports);
2519
2754
  __exportStar(toArray$1, exports);
2520
2755
  __exportStar(toSetAsync$1, exports);
2521
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);
2522
2761
 
2523
2762
  }(output));
2524
2763
 
@@ -2539,7 +2778,7 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
2539
2778
  };__exportStar(middleware, exports);
2540
2779
  __exportStar(output, exports);
2541
2780
 
2542
- }(es2018$2));
2781
+ }(es2018$a));
2543
2782
 
2544
2783
  var getErrorNames$1 = {};
2545
2784
 
@@ -2557,11 +2796,11 @@ function* traverseErrorPrototypeChain(err) {
2557
2796
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
2558
2797
 
2559
2798
  getErrorNames$1.getErrorNames = void 0;
2560
- const types_1$2 = es2018$4;
2799
+ const types_1$4 = es2018$6;
2561
2800
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
2562
2801
  function* getErrorNames(err) {
2563
2802
  var _a;
2564
- if ((0, types_1$2.isError)(err)) {
2803
+ if ((0, types_1$4.isError)(err)) {
2565
2804
  for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
2566
2805
  if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
2567
2806
  yield prototype.constructor.name;
@@ -2578,20 +2817,20 @@ getErrorNames$1.getErrorNames = getErrorNames;
2578
2817
  var serializableError = {};
2579
2818
 
2580
2819
  serializableError.isSerializableError = void 0;
2581
- const types_1$1 = es2018$4;
2820
+ const types_1$3 = es2018$6;
2582
2821
  function isSerializableError(val) {
2583
- return (0, types_1$1.isObject)(val)
2584
- && (0, types_1$1.isString)(val.name)
2585
- && (0, types_1$1.isString)(val.message)
2586
- && ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
2587
- && ((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));
2588
2827
  }
2589
2828
  serializableError.isSerializableError = isSerializableError;
2590
2829
 
2591
2830
  customError.CustomError = void 0;
2592
- const iterable_operator_1$1 = es2018$2;
2831
+ const iterable_operator_1$1 = es2018$a;
2593
2832
  const get_error_names_1$1 = getErrorNames$1;
2594
- const types_1 = es2018$4;
2833
+ const types_1$2 = es2018$6;
2595
2834
  const serializable_error_1 = serializableError;
2596
2835
  class CustomError extends Error {
2597
2836
  get name() {
@@ -2600,7 +2839,7 @@ class CustomError extends Error {
2600
2839
  }
2601
2840
  static [Symbol.hasInstance](instance) {
2602
2841
  var _a;
2603
- 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)) {
2604
2843
  const reversedClassNames = [
2605
2844
  (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
2606
2845
  ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
@@ -2627,7 +2866,7 @@ var normalize$1 = {};
2627
2866
 
2628
2867
  normalize$1.normalize = void 0;
2629
2868
  const get_error_names_1 = getErrorNames$1;
2630
- const iterable_operator_1 = es2018$2;
2869
+ const iterable_operator_1 = es2018$a;
2631
2870
  function normalize(err) {
2632
2871
  var _a;
2633
2872
  const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
@@ -2642,13 +2881,13 @@ normalize$1.normalize = normalize;
2642
2881
 
2643
2882
  var hydrate$1 = {};
2644
2883
 
2645
- var es2018 = {};
2884
+ var es2018$5 = {};
2646
2885
 
2647
- var pass$1 = {};
2886
+ var pass$3 = {};
2648
2887
 
2649
- pass$1.pass = void 0;
2650
- function pass() { }
2651
- pass$1.pass = pass;
2888
+ pass$3.pass = void 0;
2889
+ function pass$2() { }
2890
+ pass$3.pass = pass$2;
2652
2891
 
2653
2892
  (function (exports) {
2654
2893
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -2660,12 +2899,12 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
2660
2899
  }));
2661
2900
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2662
2901
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2663
- };__exportStar(pass$1, exports);
2902
+ };__exportStar(pass$3, exports);
2664
2903
 
2665
- }(es2018));
2904
+ }(es2018$5));
2666
2905
 
2667
2906
  hydrate$1.hydrate = void 0;
2668
- const pass_1 = es2018;
2907
+ const pass_1 = es2018$5;
2669
2908
  function hydrate(err) {
2670
2909
  var _a;
2671
2910
  const errorNames = [err.name, ...err.ancestors]
@@ -2723,98 +2962,969 @@ __exportStar(assert$1, exports);
2723
2962
  __exportStar(getErrorNames$1, exports);
2724
2963
  __exportStar(traverseErrorPrototypeChain$1, exports);
2725
2964
 
2726
- }(es2018$3));
2965
+ }(es2018$b));
2727
2966
 
2728
- function csv(payload) {
2729
- es2018$3.assert(payload.length > 0, 'payload must be a non-empty array');
2730
- return (options) => {
2731
- const headers = new es2018$5.Headers(options.headers);
2732
- headers.set('Content-Type', 'text/csv');
2733
- return {
2734
- ...options,
2735
- headers,
2736
- payload: stringify(payload)
2737
- };
2738
- };
2739
- }
2740
- function stringify(data) {
2741
- const fields = Object.keys(data[0]);
2742
- return papaparse_min.exports.unparse({ data, fields });
2743
- }
2967
+ var es2018$4 = {};
2744
2968
 
2745
- function signal(signal) {
2746
- return (options) => {
2747
- return {
2748
- ...options,
2749
- signal
2750
- };
2751
- };
2752
- }
2969
+ var log$1 = {};
2753
2970
 
2754
- function header(name, value) {
2755
- return (options) => {
2756
- const headers = new es2018$5.Headers(options.headers);
2757
- headers.set(name, value);
2758
- return {
2759
- ...options,
2760
- headers
2761
- };
2762
- };
2971
+ log$1.log = void 0;
2972
+ function log(...data) {
2973
+ console.log(...data);
2974
+ return data[data.length - 1];
2763
2975
  }
2976
+ log$1.log = log;
2764
2977
 
2765
- function appendHeader(name, value) {
2766
- return (options) => {
2767
- const headers = new es2018$5.Headers(options.headers);
2768
- headers.append(name, value);
2769
- return {
2770
- ...options,
2771
- headers
2772
- };
2773
- };
2774
- }
2978
+ var time$1 = {};
2775
2979
 
2776
- function headers(headers) {
2777
- return (options) => {
2778
- const newHeaders = new es2018$5.Headers(options.headers);
2779
- for (const [name, value] of Object.entries(headers)) {
2780
- newHeaders.set(name, value);
2781
- }
2782
- return {
2783
- ...options,
2784
- headers: newHeaders
2785
- };
2786
- };
2787
- }
2980
+ var highResolutionTimestamp_browser = {};
2788
2981
 
2789
- function accept(accept) {
2790
- return appendHeader('Accept', accept);
2982
+ highResolutionTimestamp_browser.elapsed = highResolutionTimestamp_browser.now = void 0;
2983
+ function now() {
2984
+ return performance.now();
2791
2985
  }
2986
+ highResolutionTimestamp_browser.now = now;
2987
+ function elapsed(startTime, endTime) {
2988
+ return `${endTime - startTime}ms`;
2989
+ }
2990
+ highResolutionTimestamp_browser.elapsed = elapsed;
2792
2991
 
2793
- function host(host) {
2794
- return (options) => {
2795
- const url = new URL(options.url.href);
2796
- url.host = host;
2797
- return {
2798
- ...options,
2799
- url
2800
- };
2801
- };
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;
2802
3011
  }
3012
+ array.isntEmptyArray = isntEmptyArray;
2803
3013
 
2804
- function port(port) {
2805
- return (options) => {
2806
- const url = new URL(options.url.href);
2807
- url.port = port.toString();
2808
- return {
2809
- ...options,
2810
- url
2811
- };
2812
- };
3014
+ var asyncIterable = {};
3015
+
3016
+ var _null = {};
3017
+
3018
+ _null.isntNull = _null.isNull = void 0;
3019
+ function isNull(val) {
3020
+ return val === null;
2813
3021
  }
3022
+ _null.isNull = isNull;
3023
+ function isntNull(val) {
3024
+ return !isNull(val);
3025
+ }
3026
+ _null.isntNull = isntNull;
2814
3027
 
2815
- function pathname(pathname) {
2816
- return (options) => {
2817
- const url = new URL(options.url.href);
3028
+ var _undefined = {};
3029
+
3030
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
3031
+ function isUndefined(val) {
3032
+ return val === undefined;
3033
+ }
3034
+ _undefined.isUndefined = isUndefined;
3035
+ function isntUndefined(val) {
3036
+ return !isUndefined(val);
3037
+ }
3038
+ _undefined.isntUndefined = isntUndefined;
3039
+
3040
+ var _function = {};
3041
+
3042
+ _function.isntFunction = _function.isFunction = void 0;
3043
+ function isFunction(val) {
3044
+ return typeof val === 'function';
3045
+ }
3046
+ _function.isFunction = isFunction;
3047
+ function isntFunction(val) {
3048
+ return !isFunction(val);
3049
+ }
3050
+ _function.isntFunction = isntFunction;
3051
+
3052
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
3053
+ const null_1$2 = _null;
3054
+ const undefined_1$1 = _undefined;
3055
+ const function_1$2 = _function;
3056
+ function isAsyncIterable(val) {
3057
+ return (0, null_1$2.isntNull)(val)
3058
+ && (0, undefined_1$1.isntUndefined)(val)
3059
+ && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
3060
+ }
3061
+ asyncIterable.isAsyncIterable = isAsyncIterable;
3062
+ function isntAsyncIterable(val) {
3063
+ return !isAsyncIterable(val);
3064
+ }
3065
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
3066
+
3067
+ var bigint = {};
3068
+
3069
+ bigint.isntBigInt = bigint.isBigInt = void 0;
3070
+ function isBigInt(val) {
3071
+ return typeof val === 'bigint';
3072
+ }
3073
+ bigint.isBigInt = isBigInt;
3074
+ function isntBigInt(val) {
3075
+ return !isBigInt(val);
3076
+ }
3077
+ bigint.isntBigInt = isntBigInt;
3078
+
3079
+ var boolean = {};
3080
+
3081
+ boolean.isntBoolean = boolean.isBoolean = void 0;
3082
+ function isBoolean(val) {
3083
+ return typeof val === 'boolean';
3084
+ }
3085
+ boolean.isBoolean = isBoolean;
3086
+ function isntBoolean(val) {
3087
+ return !isBoolean(val);
3088
+ }
3089
+ boolean.isntBoolean = isntBoolean;
3090
+
3091
+ var char = {};
3092
+
3093
+ var string = {};
3094
+
3095
+ string.isntString = string.isString = void 0;
3096
+ function isString(val) {
3097
+ return typeof val === 'string';
3098
+ }
3099
+ string.isString = isString;
3100
+ function isntString(val) {
3101
+ return !isString(val);
3102
+ }
3103
+ string.isntString = isntString;
3104
+
3105
+ char.isntChar = char.isChar = void 0;
3106
+ const string_1$1 = string;
3107
+ function isChar(val) {
3108
+ return (0, string_1$1.isString)(val)
3109
+ && val.length === 1;
3110
+ }
3111
+ char.isChar = isChar;
3112
+ function isntChar(val) {
3113
+ return !isChar(val);
3114
+ }
3115
+ char.isntChar = isntChar;
3116
+
3117
+ var date = {};
3118
+
3119
+ date.isntDate = date.isDate = void 0;
3120
+ function isDate(val) {
3121
+ return val instanceof Date;
3122
+ }
3123
+ date.isDate = isDate;
3124
+ function isntDate(val) {
3125
+ return !isDate(val);
3126
+ }
3127
+ date.isntDate = isntDate;
3128
+
3129
+ var _enum = {};
3130
+
3131
+ _enum.inEnum = void 0;
3132
+ function inEnum(val, _enum) {
3133
+ return Object.values(_enum).includes(val);
3134
+ }
3135
+ _enum.inEnum = inEnum;
3136
+
3137
+ var error = {};
3138
+
3139
+ error.isntError = error.isError = void 0;
3140
+ function isError(val) {
3141
+ return val instanceof Error;
3142
+ }
3143
+ error.isError = isError;
3144
+ function isntError(val) {
3145
+ return !isError(val);
3146
+ }
3147
+ error.isntError = isntError;
3148
+
3149
+ var falsy = {};
3150
+
3151
+ falsy.isntFalsy = falsy.isFalsy = void 0;
3152
+ function isFalsy(val) {
3153
+ return !val;
3154
+ }
3155
+ falsy.isFalsy = isFalsy;
3156
+ function isntFalsy(val) {
3157
+ return !isFalsy(val);
3158
+ }
3159
+ falsy.isntFalsy = isntFalsy;
3160
+
3161
+ var iterable = {};
3162
+
3163
+ iterable.isntIterable = iterable.isIterable = void 0;
3164
+ const null_1$1 = _null;
3165
+ const undefined_1 = _undefined;
3166
+ const function_1$1 = _function;
3167
+ function isIterable(val) {
3168
+ return (0, null_1$1.isntNull)(val)
3169
+ && (0, undefined_1.isntUndefined)(val)
3170
+ && (0, function_1$1.isFunction)(val[Symbol.iterator]);
3171
+ }
3172
+ iterable.isIterable = isIterable;
3173
+ function isntIterable(val) {
3174
+ return !isIterable(val);
3175
+ }
3176
+ iterable.isntIterable = isntIterable;
3177
+
3178
+ var json$1 = {};
3179
+
3180
+ var number = {};
3181
+
3182
+ number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
3183
+ function isNumber(val) {
3184
+ return typeof val === 'number';
3185
+ }
3186
+ number.isNumber = isNumber;
3187
+ function isntNumber(val) {
3188
+ return !isNumber(val);
3189
+ }
3190
+ number.isntNumber = isntNumber;
3191
+ function isFinite(val) {
3192
+ return Number.isFinite(val);
3193
+ }
3194
+ number.isFinite = isFinite;
3195
+ function isPositiveInfinity(val) {
3196
+ return val === Infinity;
3197
+ }
3198
+ number.isPositiveInfinity = isPositiveInfinity;
3199
+ function isNegativeInfinity(val) {
3200
+ return val === -Infinity;
3201
+ }
3202
+ number.isNegativeInfinity = isNegativeInfinity;
3203
+ function isNaN(val) {
3204
+ return Number.isNaN(val);
3205
+ }
3206
+ number.isNaN = isNaN;
3207
+ function isntNaN(val) {
3208
+ return !isNaN(val);
3209
+ }
3210
+ number.isntNaN = isntNaN;
3211
+
3212
+ var object = {};
3213
+
3214
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3215
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3216
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
3217
+ const isPlainObject_1 = __importDefault(isPlainObject_1$2);
3218
+ function isObject(val) {
3219
+ return val !== null
3220
+ && typeof val === 'object';
3221
+ }
3222
+ object.isObject = isObject;
3223
+ function isntObject(val) {
3224
+ return !isObject(val);
3225
+ }
3226
+ object.isntObject = isntObject;
3227
+ function isPlainObject(val) {
3228
+ return (0, isPlainObject_1.default)(val);
3229
+ }
3230
+ object.isPlainObject = isPlainObject;
3231
+ function isntPlainObject(val) {
3232
+ return !isPlainObject(val);
3233
+ }
3234
+ object.isntPlainObject = isntPlainObject;
3235
+ function isEmptyObject(val) {
3236
+ return Object.keys(val).length === 0;
3237
+ }
3238
+ object.isEmptyObject = isEmptyObject;
3239
+ function isntEmptyObject(val) {
3240
+ return Object.keys(val).length !== 0;
3241
+ }
3242
+ object.isntEmptyObject = isntEmptyObject;
3243
+
3244
+ json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
3245
+ const null_1 = _null;
3246
+ const boolean_1 = boolean;
3247
+ const string_1 = string;
3248
+ const number_1 = number;
3249
+ const array_1 = array;
3250
+ const object_1$1 = object;
3251
+ function isJson(val) {
3252
+ return (0, null_1.isNull)(val)
3253
+ || (0, boolean_1.isBoolean)(val)
3254
+ || (0, string_1.isString)(val)
3255
+ || (0, number_1.isNumber)(val)
3256
+ || ((0, array_1.isArray)(val) && val.every(isJson))
3257
+ || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
3258
+ }
3259
+ json$1.isJson = isJson;
3260
+ function isntJson(val) {
3261
+ return !isJson(val);
3262
+ }
3263
+ json$1.isntJson = isntJson;
3264
+ function isJsonable(val) {
3265
+ try {
3266
+ JSON.stringify(val);
3267
+ return true;
3268
+ }
3269
+ catch (_a) {
3270
+ return false;
3271
+ }
3272
+ }
3273
+ json$1.isJsonable = isJsonable;
3274
+ function isntJsonable(val) {
3275
+ return !isntJsonable();
3276
+ }
3277
+ json$1.isntJsonable = isntJsonable;
3278
+
3279
+ var promise = {};
3280
+
3281
+ promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
3282
+ const object_1 = object;
3283
+ const function_1 = _function;
3284
+ function isPromise(val) {
3285
+ return val instanceof Promise;
3286
+ }
3287
+ promise.isPromise = isPromise;
3288
+ function isntPromise(val) {
3289
+ return !isPromise(val);
3290
+ }
3291
+ promise.isntPromise = isntPromise;
3292
+ function isntPromiseLike(val) {
3293
+ return !isPromiseLike(val);
3294
+ }
3295
+ promise.isntPromiseLike = isntPromiseLike;
3296
+ function isPromiseLike(val) {
3297
+ return (0, object_1.isObject)(val)
3298
+ && (0, function_1.isFunction)(val.then);
3299
+ }
3300
+ promise.isPromiseLike = isPromiseLike;
3301
+
3302
+ var url$1 = {};
3303
+
3304
+ url$1.isAbsoluteURL = void 0;
3305
+ function isAbsoluteURL(str) {
3306
+ try {
3307
+ new URL(str);
3308
+ return true;
3309
+ }
3310
+ catch (_a) {
3311
+ return false;
3312
+ }
3313
+ }
3314
+ url$1.isAbsoluteURL = isAbsoluteURL;
3315
+
3316
+ var regexp = {};
3317
+
3318
+ regexp.isntRegExp = regexp.isRegExp = void 0;
3319
+ function isRegExp(val) {
3320
+ return val instanceof RegExp;
3321
+ }
3322
+ regexp.isRegExp = isRegExp;
3323
+ function isntRegExp(val) {
3324
+ return !isRegExp(val);
3325
+ }
3326
+ regexp.isntRegExp = isntRegExp;
3327
+
3328
+ var symbol = {};
3329
+
3330
+ symbol.isntSymbol = symbol.isSymbol = void 0;
3331
+ function isSymbol(val) {
3332
+ return typeof val === 'symbol';
3333
+ }
3334
+ symbol.isSymbol = isSymbol;
3335
+ function isntSymbol(val) {
3336
+ return !isSymbol(val);
3337
+ }
3338
+ symbol.isntSymbol = isntSymbol;
3339
+
3340
+ (function (exports) {
3341
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3342
+ if (k2 === undefined) k2 = k;
3343
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3344
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3345
+ desc = { enumerable: true, get: function() { return m[k]; } };
3346
+ }
3347
+ Object.defineProperty(o, k2, desc);
3348
+ }) : (function(o, m, k, k2) {
3349
+ if (k2 === undefined) k2 = k;
3350
+ o[k2] = m[k];
3351
+ }));
3352
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3353
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3354
+ };__exportStar(array, exports);
3355
+ __exportStar(asyncIterable, exports);
3356
+ __exportStar(bigint, exports);
3357
+ __exportStar(boolean, exports);
3358
+ __exportStar(char, exports);
3359
+ __exportStar(date, exports);
3360
+ __exportStar(_enum, exports);
3361
+ __exportStar(error, exports);
3362
+ __exportStar(falsy, exports);
3363
+ __exportStar(_function, exports);
3364
+ __exportStar(iterable, exports);
3365
+ __exportStar(json$1, exports);
3366
+ __exportStar(_null, exports);
3367
+ __exportStar(number, exports);
3368
+ __exportStar(object, exports);
3369
+ __exportStar(promise, exports);
3370
+ __exportStar(string, exports);
3371
+ __exportStar(_undefined, exports);
3372
+ __exportStar(url$1, exports);
3373
+ __exportStar(regexp, exports);
3374
+ __exportStar(symbol, exports);
3375
+
3376
+ }(es2018$3));
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 {
3795
+ ...options,
3796
+ url
3797
+ };
3798
+ };
3799
+ }
3800
+
3801
+ function text(payload) {
3802
+ return (options) => {
3803
+ const headers = new es2018$d.Headers(options.headers);
3804
+ headers.set('Content-Type', 'application/x-www-form-urlencoded');
3805
+ return {
3806
+ ...options,
3807
+ headers,
3808
+ payload
3809
+ };
3810
+ };
3811
+ }
3812
+
3813
+ function json(payload) {
3814
+ return (options) => {
3815
+ const headers = new es2018$d.Headers(options.headers);
3816
+ headers.set('Content-Type', 'application/json');
3817
+ return {
3818
+ ...options,
3819
+ headers,
3820
+ payload: JSON.stringify(payload)
3821
+ };
3822
+ };
3823
+ }
3824
+
3825
+ var papaparse_min = {exports: {}};
3826
+
3827
+ /* @license
3828
+ Papa Parse
3829
+ v5.3.2
3830
+ https://github.com/mholt/PapaParse
3831
+ License: MIT
3832
+ */
3833
+
3834
+ (function (module, exports) {
3835
+ !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});
3836
+ }(papaparse_min));
3837
+
3838
+ function csv(payload) {
3839
+ es2018$c.assert(payload.length > 0, 'payload must be a non-empty array');
3840
+ return (options) => {
3841
+ const headers = new es2018$d.Headers(options.headers);
3842
+ headers.set('Content-Type', 'text/csv');
3843
+ return {
3844
+ ...options,
3845
+ headers,
3846
+ payload: stringify(payload)
3847
+ };
3848
+ };
3849
+ }
3850
+ function stringify(data) {
3851
+ const fields = Object.keys(data[0]);
3852
+ return papaparse_min.exports.unparse({ data, fields });
3853
+ }
3854
+
3855
+ function signal(signal) {
3856
+ return (options) => {
3857
+ return {
3858
+ ...options,
3859
+ signal
3860
+ };
3861
+ };
3862
+ }
3863
+
3864
+ function header(name, value) {
3865
+ return (options) => {
3866
+ const headers = new es2018$d.Headers(options.headers);
3867
+ headers.set(name, value);
3868
+ return {
3869
+ ...options,
3870
+ headers
3871
+ };
3872
+ };
3873
+ }
3874
+
3875
+ function appendHeader(name, value) {
3876
+ return (options) => {
3877
+ const headers = new es2018$d.Headers(options.headers);
3878
+ headers.append(name, value);
3879
+ return {
3880
+ ...options,
3881
+ headers
3882
+ };
3883
+ };
3884
+ }
3885
+
3886
+ function headers(headers) {
3887
+ return (options) => {
3888
+ const newHeaders = new es2018$d.Headers(options.headers);
3889
+ for (const [name, value] of Object.entries(headers)) {
3890
+ newHeaders.set(name, value);
3891
+ }
3892
+ return {
3893
+ ...options,
3894
+ headers: newHeaders
3895
+ };
3896
+ };
3897
+ }
3898
+
3899
+ function accept(accept) {
3900
+ return appendHeader('Accept', accept);
3901
+ }
3902
+
3903
+ function host(host) {
3904
+ return (options) => {
3905
+ const url = new URL(options.url.href);
3906
+ url.host = host;
3907
+ return {
3908
+ ...options,
3909
+ url
3910
+ };
3911
+ };
3912
+ }
3913
+
3914
+ function port(port) {
3915
+ return (options) => {
3916
+ const url = new URL(options.url.href);
3917
+ url.port = port.toString();
3918
+ return {
3919
+ ...options,
3920
+ url
3921
+ };
3922
+ };
3923
+ }
3924
+
3925
+ function pathname(pathname) {
3926
+ return (options) => {
3927
+ const url = new URL(options.url.href);
2818
3928
  url.pathname = pathname;
2819
3929
  return {
2820
3930
  ...options,
@@ -2823,6 +3933,28 @@ function pathname(pathname) {
2823
3933
  };
2824
3934
  }
2825
3935
 
3936
+ function appendPathname(pathname) {
3937
+ return (options) => {
3938
+ const base = es2018$c.go(() => {
3939
+ const directoryPathname = es2018$c.go(() => {
3940
+ let pathname = options.url.pathname;
3941
+ if (!options.url.pathname.endsWith('/')) {
3942
+ pathname += '/';
3943
+ }
3944
+ return pathname;
3945
+ });
3946
+ const url = new URL(options.url.href);
3947
+ url.pathname = directoryPathname;
3948
+ return url;
3949
+ });
3950
+ const url = new URL(pathname, base);
3951
+ return {
3952
+ ...options,
3953
+ url
3954
+ };
3955
+ };
3956
+ }
3957
+
2826
3958
  function search(search) {
2827
3959
  return (options) => {
2828
3960
  const url = new URL(options.url.href);
@@ -2877,10 +4009,10 @@ function appendSearchParam(name, value) {
2877
4009
 
2878
4010
  function formDataField(name, value) {
2879
4011
  return (options) => {
2880
- const formData = options.payload instanceof es2018$5.FormData
4012
+ const formData = options.payload instanceof es2018$d.FormData
2881
4013
  ? cloneFormData(options.payload)
2882
- : new es2018$5.FormData();
2883
- if (es2018$4.isArray(value)) {
4014
+ : new es2018$d.FormData();
4015
+ if (es2018$c.isArray(value)) {
2884
4016
  value.forEach(x => formData.append(name, x));
2885
4017
  }
2886
4018
  else {
@@ -2893,7 +4025,7 @@ function formDataField(name, value) {
2893
4025
  };
2894
4026
  }
2895
4027
  function cloneFormData(formData) {
2896
- const result = new es2018$5.FormData();
4028
+ const result = new es2018$d.FormData();
2897
4029
  for (const [name, value] of formData.entries()) {
2898
4030
  result.append(name, value);
2899
4031
  }
@@ -2972,5 +4104,5 @@ function keepalive(val = true) {
2972
4104
  };
2973
4105
  }
2974
4106
 
2975
- 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 };
4107
+ 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 };
2976
4108
  //# sourceMappingURL=index.mjs.map