extra-request 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs +3 -3
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +598 -927
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +599 -928
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +3 -3
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +3 -3
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +606 -935
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +607 -936
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +3 -3
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/browser.js +5 -1
- package/lib/es2015/browser.js.map +1 -1
- package/lib/es2015/index.js +5 -1
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2015/transformers/index.js +5 -1
- package/lib/es2015/transformers/index.js.map +1 -1
- package/lib/es2018/browser.js +5 -1
- package/lib/es2018/browser.js.map +1 -1
- package/lib/es2018/index.js +5 -1
- package/lib/es2018/index.js.map +1 -1
- package/lib/es2018/transformers/index.js +5 -1
- package/lib/es2018/transformers/index.js.map +1 -1
- package/package.json +5 -5
package/dist/es2018/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
2
|
|
|
3
|
-
var es2018$
|
|
3
|
+
var es2018$5 = {};
|
|
4
4
|
|
|
5
5
|
var fetch_browser = {};
|
|
6
6
|
|
|
@@ -45,7 +45,11 @@ eventSource_browser.EventSource = globalThis.EventSource;
|
|
|
45
45
|
(function (exports) {
|
|
46
46
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
47
47
|
if (k2 === undefined) k2 = k;
|
|
48
|
-
Object.
|
|
48
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
49
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
50
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
51
|
+
}
|
|
52
|
+
Object.defineProperty(o, k2, desc);
|
|
49
53
|
}) : (function(o, m, k, k2) {
|
|
50
54
|
if (k2 === undefined) k2 = k;
|
|
51
55
|
o[k2] = m[k];
|
|
@@ -61,227 +65,333 @@ __exportStar(abortController_browser, exports);
|
|
|
61
65
|
__exportStar(blob_browser, exports);
|
|
62
66
|
__exportStar(eventSource_browser, exports);
|
|
63
67
|
|
|
64
|
-
}(es2018$
|
|
68
|
+
}(es2018$5));
|
|
65
69
|
|
|
66
|
-
var es2018$
|
|
70
|
+
var es2018$4 = {};
|
|
67
71
|
|
|
68
|
-
var array
|
|
72
|
+
var array = {};
|
|
69
73
|
|
|
70
|
-
array
|
|
71
|
-
function isArray
|
|
74
|
+
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
75
|
+
function isArray(val) {
|
|
72
76
|
return Array.isArray(val);
|
|
73
77
|
}
|
|
74
|
-
array
|
|
75
|
-
function isntArray
|
|
76
|
-
return !isArray
|
|
78
|
+
array.isArray = isArray;
|
|
79
|
+
function isntArray(val) {
|
|
80
|
+
return !isArray(val);
|
|
77
81
|
}
|
|
78
|
-
array
|
|
79
|
-
function isEmptyArray
|
|
82
|
+
array.isntArray = isntArray;
|
|
83
|
+
function isEmptyArray(val) {
|
|
80
84
|
return val.length === 0;
|
|
81
85
|
}
|
|
82
|
-
array
|
|
83
|
-
function isntEmptyArray
|
|
86
|
+
array.isEmptyArray = isEmptyArray;
|
|
87
|
+
function isntEmptyArray(val) {
|
|
84
88
|
return val.length !== 0;
|
|
85
89
|
}
|
|
86
|
-
array
|
|
90
|
+
array.isntEmptyArray = isntEmptyArray;
|
|
87
91
|
|
|
88
|
-
var asyncIterable
|
|
92
|
+
var asyncIterable = {};
|
|
89
93
|
|
|
90
|
-
var _null
|
|
94
|
+
var _null = {};
|
|
91
95
|
|
|
92
|
-
_null
|
|
93
|
-
function isNull
|
|
96
|
+
_null.isntNull = _null.isNull = void 0;
|
|
97
|
+
function isNull(val) {
|
|
94
98
|
return val === null;
|
|
95
99
|
}
|
|
96
|
-
_null
|
|
97
|
-
function isntNull
|
|
98
|
-
return !isNull
|
|
100
|
+
_null.isNull = isNull;
|
|
101
|
+
function isntNull(val) {
|
|
102
|
+
return !isNull(val);
|
|
99
103
|
}
|
|
100
|
-
_null
|
|
104
|
+
_null.isntNull = isntNull;
|
|
101
105
|
|
|
102
|
-
var _undefined
|
|
106
|
+
var _undefined = {};
|
|
103
107
|
|
|
104
|
-
_undefined
|
|
105
|
-
function isUndefined
|
|
108
|
+
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
109
|
+
function isUndefined(val) {
|
|
106
110
|
return val === undefined;
|
|
107
111
|
}
|
|
108
|
-
_undefined
|
|
109
|
-
function isntUndefined
|
|
110
|
-
return !isUndefined
|
|
112
|
+
_undefined.isUndefined = isUndefined;
|
|
113
|
+
function isntUndefined(val) {
|
|
114
|
+
return !isUndefined(val);
|
|
115
|
+
}
|
|
116
|
+
_undefined.isntUndefined = isntUndefined;
|
|
117
|
+
|
|
118
|
+
var _function = {};
|
|
119
|
+
|
|
120
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
121
|
+
function isFunction(val) {
|
|
122
|
+
return typeof val === 'function';
|
|
123
|
+
}
|
|
124
|
+
_function.isFunction = isFunction;
|
|
125
|
+
function isntFunction(val) {
|
|
126
|
+
return !isFunction(val);
|
|
111
127
|
}
|
|
112
|
-
|
|
128
|
+
_function.isntFunction = isntFunction;
|
|
113
129
|
|
|
114
|
-
asyncIterable
|
|
115
|
-
const null_1$
|
|
116
|
-
const undefined_1$
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
&&
|
|
130
|
+
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
131
|
+
const null_1$2 = _null;
|
|
132
|
+
const undefined_1$1 = _undefined;
|
|
133
|
+
const function_1$2 = _function;
|
|
134
|
+
function isAsyncIterable(val) {
|
|
135
|
+
return (0, null_1$2.isntNull)(val)
|
|
136
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
137
|
+
&& (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
|
|
121
138
|
}
|
|
122
|
-
asyncIterable
|
|
123
|
-
function isntAsyncIterable
|
|
124
|
-
return !isAsyncIterable
|
|
139
|
+
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
140
|
+
function isntAsyncIterable(val) {
|
|
141
|
+
return !isAsyncIterable(val);
|
|
125
142
|
}
|
|
126
|
-
asyncIterable
|
|
143
|
+
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
127
144
|
|
|
128
|
-
var bigint
|
|
145
|
+
var bigint = {};
|
|
129
146
|
|
|
130
|
-
bigint
|
|
131
|
-
function isBigInt
|
|
147
|
+
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
148
|
+
function isBigInt(val) {
|
|
132
149
|
return typeof val === 'bigint';
|
|
133
150
|
}
|
|
134
|
-
bigint
|
|
135
|
-
function isntBigInt
|
|
136
|
-
return !isBigInt
|
|
151
|
+
bigint.isBigInt = isBigInt;
|
|
152
|
+
function isntBigInt(val) {
|
|
153
|
+
return !isBigInt(val);
|
|
137
154
|
}
|
|
138
|
-
bigint
|
|
155
|
+
bigint.isntBigInt = isntBigInt;
|
|
139
156
|
|
|
140
|
-
var boolean
|
|
157
|
+
var boolean = {};
|
|
141
158
|
|
|
142
|
-
boolean
|
|
143
|
-
function isBoolean
|
|
159
|
+
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
160
|
+
function isBoolean(val) {
|
|
144
161
|
return typeof val === 'boolean';
|
|
145
162
|
}
|
|
146
|
-
boolean
|
|
147
|
-
function isntBoolean
|
|
148
|
-
return !isBoolean
|
|
163
|
+
boolean.isBoolean = isBoolean;
|
|
164
|
+
function isntBoolean(val) {
|
|
165
|
+
return !isBoolean(val);
|
|
149
166
|
}
|
|
150
|
-
boolean
|
|
167
|
+
boolean.isntBoolean = isntBoolean;
|
|
151
168
|
|
|
152
|
-
var char
|
|
169
|
+
var char = {};
|
|
153
170
|
|
|
154
|
-
var string
|
|
171
|
+
var string = {};
|
|
155
172
|
|
|
156
|
-
string
|
|
157
|
-
function isString
|
|
173
|
+
string.isntString = string.isString = void 0;
|
|
174
|
+
function isString(val) {
|
|
158
175
|
return typeof val === 'string';
|
|
159
176
|
}
|
|
160
|
-
string
|
|
161
|
-
function isntString
|
|
162
|
-
return !isString
|
|
177
|
+
string.isString = isString;
|
|
178
|
+
function isntString(val) {
|
|
179
|
+
return !isString(val);
|
|
163
180
|
}
|
|
164
|
-
string
|
|
181
|
+
string.isntString = isntString;
|
|
165
182
|
|
|
166
|
-
char
|
|
167
|
-
const string_1$
|
|
168
|
-
function isChar
|
|
169
|
-
return (0, string_1$
|
|
183
|
+
char.isntChar = char.isChar = void 0;
|
|
184
|
+
const string_1$1 = string;
|
|
185
|
+
function isChar(val) {
|
|
186
|
+
return (0, string_1$1.isString)(val)
|
|
170
187
|
&& val.length === 1;
|
|
171
188
|
}
|
|
172
|
-
char
|
|
173
|
-
function isntChar
|
|
174
|
-
return !isChar
|
|
189
|
+
char.isChar = isChar;
|
|
190
|
+
function isntChar(val) {
|
|
191
|
+
return !isChar(val);
|
|
175
192
|
}
|
|
176
|
-
char
|
|
193
|
+
char.isntChar = isntChar;
|
|
177
194
|
|
|
178
|
-
var date
|
|
195
|
+
var date = {};
|
|
179
196
|
|
|
180
|
-
date
|
|
181
|
-
function isDate
|
|
197
|
+
date.isntDate = date.isDate = void 0;
|
|
198
|
+
function isDate(val) {
|
|
182
199
|
return val instanceof Date;
|
|
183
200
|
}
|
|
184
|
-
date
|
|
185
|
-
function isntDate
|
|
186
|
-
return !isDate
|
|
201
|
+
date.isDate = isDate;
|
|
202
|
+
function isntDate(val) {
|
|
203
|
+
return !isDate(val);
|
|
187
204
|
}
|
|
188
|
-
date
|
|
205
|
+
date.isntDate = isntDate;
|
|
189
206
|
|
|
190
|
-
var _enum
|
|
207
|
+
var _enum = {};
|
|
191
208
|
|
|
192
|
-
_enum
|
|
193
|
-
function inEnum
|
|
209
|
+
_enum.inEnum = void 0;
|
|
210
|
+
function inEnum(val, _enum) {
|
|
194
211
|
return Object.values(_enum).includes(val);
|
|
195
212
|
}
|
|
196
|
-
_enum
|
|
213
|
+
_enum.inEnum = inEnum;
|
|
197
214
|
|
|
198
|
-
var error
|
|
215
|
+
var error = {};
|
|
199
216
|
|
|
200
|
-
error
|
|
201
|
-
function isError
|
|
217
|
+
error.isntError = error.isError = void 0;
|
|
218
|
+
function isError(val) {
|
|
202
219
|
return val instanceof Error;
|
|
203
220
|
}
|
|
204
|
-
error
|
|
205
|
-
function isntError
|
|
206
|
-
return !isError
|
|
221
|
+
error.isError = isError;
|
|
222
|
+
function isntError(val) {
|
|
223
|
+
return !isError(val);
|
|
207
224
|
}
|
|
208
|
-
error
|
|
225
|
+
error.isntError = isntError;
|
|
209
226
|
|
|
210
|
-
var falsy
|
|
227
|
+
var falsy = {};
|
|
211
228
|
|
|
212
|
-
falsy
|
|
213
|
-
function isFalsy
|
|
229
|
+
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
230
|
+
function isFalsy(val) {
|
|
214
231
|
return !val;
|
|
215
232
|
}
|
|
216
|
-
falsy
|
|
217
|
-
function isntFalsy
|
|
218
|
-
return !isFalsy
|
|
233
|
+
falsy.isFalsy = isFalsy;
|
|
234
|
+
function isntFalsy(val) {
|
|
235
|
+
return !isFalsy(val);
|
|
219
236
|
}
|
|
220
|
-
falsy
|
|
237
|
+
falsy.isntFalsy = isntFalsy;
|
|
221
238
|
|
|
222
|
-
var
|
|
239
|
+
var iterable = {};
|
|
223
240
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
241
|
+
iterable.isntIterable = iterable.isIterable = void 0;
|
|
242
|
+
const null_1$1 = _null;
|
|
243
|
+
const undefined_1 = _undefined;
|
|
244
|
+
const function_1$1 = _function;
|
|
245
|
+
function isIterable(val) {
|
|
246
|
+
return (0, null_1$1.isntNull)(val)
|
|
247
|
+
&& (0, undefined_1.isntUndefined)(val)
|
|
248
|
+
&& (0, function_1$1.isFunction)(val[Symbol.iterator]);
|
|
227
249
|
}
|
|
228
|
-
|
|
229
|
-
function
|
|
230
|
-
return !
|
|
250
|
+
iterable.isIterable = isIterable;
|
|
251
|
+
function isntIterable(val) {
|
|
252
|
+
return !isIterable(val);
|
|
231
253
|
}
|
|
232
|
-
|
|
254
|
+
iterable.isntIterable = isntIterable;
|
|
233
255
|
|
|
234
|
-
var
|
|
256
|
+
var json$1 = {};
|
|
235
257
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
function
|
|
240
|
-
return
|
|
241
|
-
|
|
242
|
-
|
|
258
|
+
var number = {};
|
|
259
|
+
|
|
260
|
+
number.isntNumber = number.isNumber = void 0;
|
|
261
|
+
function isNumber(val) {
|
|
262
|
+
return typeof val === 'number';
|
|
263
|
+
}
|
|
264
|
+
number.isNumber = isNumber;
|
|
265
|
+
function isntNumber(val) {
|
|
266
|
+
return !isNumber(val);
|
|
243
267
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
268
|
+
number.isntNumber = isntNumber;
|
|
269
|
+
|
|
270
|
+
var object = {};
|
|
271
|
+
|
|
272
|
+
/** Detect free variable `global` from Node.js. */
|
|
273
|
+
|
|
274
|
+
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
275
|
+
|
|
276
|
+
var _freeGlobal = freeGlobal$1;
|
|
277
|
+
|
|
278
|
+
var freeGlobal = _freeGlobal;
|
|
279
|
+
|
|
280
|
+
/** Detect free variable `self`. */
|
|
281
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
282
|
+
|
|
283
|
+
/** Used as a reference to the global object. */
|
|
284
|
+
var root$1 = freeGlobal || freeSelf || Function('return this')();
|
|
285
|
+
|
|
286
|
+
var _root = root$1;
|
|
287
|
+
|
|
288
|
+
var root = _root;
|
|
289
|
+
|
|
290
|
+
/** Built-in value references. */
|
|
291
|
+
var Symbol$3 = root.Symbol;
|
|
292
|
+
|
|
293
|
+
var _Symbol = Symbol$3;
|
|
294
|
+
|
|
295
|
+
var Symbol$2 = _Symbol;
|
|
296
|
+
|
|
297
|
+
/** Used for built-in method references. */
|
|
298
|
+
var objectProto$2 = Object.prototype;
|
|
299
|
+
|
|
300
|
+
/** Used to check objects for own properties. */
|
|
301
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Used to resolve the
|
|
305
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
306
|
+
* of values.
|
|
307
|
+
*/
|
|
308
|
+
var nativeObjectToString$1 = objectProto$2.toString;
|
|
309
|
+
|
|
310
|
+
/** Built-in value references. */
|
|
311
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
315
|
+
*
|
|
316
|
+
* @private
|
|
317
|
+
* @param {*} value The value to query.
|
|
318
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
319
|
+
*/
|
|
320
|
+
function getRawTag$1(value) {
|
|
321
|
+
var isOwn = hasOwnProperty$1.call(value, symToStringTag$1),
|
|
322
|
+
tag = value[symToStringTag$1];
|
|
323
|
+
|
|
324
|
+
try {
|
|
325
|
+
value[symToStringTag$1] = undefined;
|
|
326
|
+
var unmasked = true;
|
|
327
|
+
} catch (e) {}
|
|
328
|
+
|
|
329
|
+
var result = nativeObjectToString$1.call(value);
|
|
330
|
+
if (unmasked) {
|
|
331
|
+
if (isOwn) {
|
|
332
|
+
value[symToStringTag$1] = tag;
|
|
333
|
+
} else {
|
|
334
|
+
delete value[symToStringTag$1];
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
return result;
|
|
247
338
|
}
|
|
248
|
-
iterable$1.isntIterable = isntIterable$1;
|
|
249
339
|
|
|
250
|
-
var
|
|
340
|
+
var _getRawTag = getRawTag$1;
|
|
341
|
+
|
|
342
|
+
/** Used for built-in method references. */
|
|
343
|
+
|
|
344
|
+
var objectProto$1 = Object.prototype;
|
|
251
345
|
|
|
252
|
-
|
|
346
|
+
/**
|
|
347
|
+
* Used to resolve the
|
|
348
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
349
|
+
* of values.
|
|
350
|
+
*/
|
|
351
|
+
var nativeObjectToString = objectProto$1.toString;
|
|
253
352
|
|
|
254
353
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
354
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
355
|
+
*
|
|
356
|
+
* @private
|
|
357
|
+
* @param {*} value The value to convert.
|
|
358
|
+
* @returns {string} Returns the converted string.
|
|
261
359
|
*/
|
|
360
|
+
function objectToString$1(value) {
|
|
361
|
+
return nativeObjectToString.call(value);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
var _objectToString = objectToString$1;
|
|
365
|
+
|
|
366
|
+
var Symbol$1 = _Symbol,
|
|
367
|
+
getRawTag = _getRawTag,
|
|
368
|
+
objectToString = _objectToString;
|
|
262
369
|
|
|
263
370
|
/** `Object#toString` result references. */
|
|
264
|
-
var
|
|
371
|
+
var nullTag = '[object Null]',
|
|
372
|
+
undefinedTag = '[object Undefined]';
|
|
373
|
+
|
|
374
|
+
/** Built-in value references. */
|
|
375
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
265
376
|
|
|
266
377
|
/**
|
|
267
|
-
*
|
|
378
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
268
379
|
*
|
|
269
380
|
* @private
|
|
270
|
-
* @param {*} value The value to
|
|
271
|
-
* @returns {
|
|
381
|
+
* @param {*} value The value to query.
|
|
382
|
+
* @returns {string} Returns the `toStringTag`.
|
|
272
383
|
*/
|
|
273
|
-
function
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
var result = false;
|
|
277
|
-
if (value != null && typeof value.toString != 'function') {
|
|
278
|
-
try {
|
|
279
|
-
result = !!(value + '');
|
|
280
|
-
} catch (e) {}
|
|
384
|
+
function baseGetTag$1(value) {
|
|
385
|
+
if (value == null) {
|
|
386
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
281
387
|
}
|
|
282
|
-
return
|
|
388
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
389
|
+
? getRawTag(value)
|
|
390
|
+
: objectToString(value);
|
|
283
391
|
}
|
|
284
392
|
|
|
393
|
+
var _baseGetTag = baseGetTag$1;
|
|
394
|
+
|
|
285
395
|
/**
|
|
286
396
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
287
397
|
*
|
|
@@ -290,34 +400,21 @@ function isHostObject(value) {
|
|
|
290
400
|
* @param {Function} transform The argument transform.
|
|
291
401
|
* @returns {Function} Returns the new function.
|
|
292
402
|
*/
|
|
293
|
-
|
|
403
|
+
|
|
404
|
+
function overArg$1(func, transform) {
|
|
294
405
|
return function(arg) {
|
|
295
406
|
return func(transform(arg));
|
|
296
407
|
};
|
|
297
408
|
}
|
|
298
409
|
|
|
299
|
-
|
|
300
|
-
var funcProto = Function.prototype,
|
|
301
|
-
objectProto = Object.prototype;
|
|
302
|
-
|
|
303
|
-
/** Used to resolve the decompiled source of functions. */
|
|
304
|
-
var funcToString = funcProto.toString;
|
|
305
|
-
|
|
306
|
-
/** Used to check objects for own properties. */
|
|
307
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
308
|
-
|
|
309
|
-
/** Used to infer the `Object` constructor. */
|
|
310
|
-
var objectCtorString = funcToString.call(Object);
|
|
410
|
+
var _overArg = overArg$1;
|
|
311
411
|
|
|
312
|
-
|
|
313
|
-
* Used to resolve the
|
|
314
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
315
|
-
* of values.
|
|
316
|
-
*/
|
|
317
|
-
var objectToString = objectProto.toString;
|
|
412
|
+
var overArg = _overArg;
|
|
318
413
|
|
|
319
414
|
/** Built-in value references. */
|
|
320
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
415
|
+
var getPrototype$1 = overArg(Object.getPrototypeOf, Object);
|
|
416
|
+
|
|
417
|
+
var _getPrototype = getPrototype$1;
|
|
321
418
|
|
|
322
419
|
/**
|
|
323
420
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -343,643 +440,97 @@ var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
|
343
440
|
* _.isObjectLike(null);
|
|
344
441
|
* // => false
|
|
345
442
|
*/
|
|
346
|
-
function isObjectLike(value) {
|
|
347
|
-
return !!value && typeof value == 'object';
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Checks if `value` is a plain object, that is, an object created by the
|
|
352
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
353
|
-
*
|
|
354
|
-
* @static
|
|
355
|
-
* @memberOf _
|
|
356
|
-
* @since 0.8.0
|
|
357
|
-
* @category Lang
|
|
358
|
-
* @param {*} value The value to check.
|
|
359
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
360
|
-
* @example
|
|
361
|
-
*
|
|
362
|
-
* function Foo() {
|
|
363
|
-
* this.a = 1;
|
|
364
|
-
* }
|
|
365
|
-
*
|
|
366
|
-
* _.isPlainObject(new Foo);
|
|
367
|
-
* // => false
|
|
368
|
-
*
|
|
369
|
-
* _.isPlainObject([1, 2, 3]);
|
|
370
|
-
* // => false
|
|
371
|
-
*
|
|
372
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
373
|
-
* // => true
|
|
374
|
-
*
|
|
375
|
-
* _.isPlainObject(Object.create(null));
|
|
376
|
-
* // => true
|
|
377
|
-
*/
|
|
378
|
-
function isPlainObject$1(value) {
|
|
379
|
-
if (!isObjectLike(value) ||
|
|
380
|
-
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
381
|
-
return false;
|
|
382
|
-
}
|
|
383
|
-
var proto = getPrototype(value);
|
|
384
|
-
if (proto === null) {
|
|
385
|
-
return true;
|
|
386
|
-
}
|
|
387
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
388
|
-
return (typeof Ctor == 'function' &&
|
|
389
|
-
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
var lodash_isplainobject = isPlainObject$1;
|
|
393
443
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
};object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
|
|
397
|
-
const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
|
|
398
|
-
function isObject$1(val) {
|
|
399
|
-
return val !== null
|
|
400
|
-
&& typeof val === 'object';
|
|
401
|
-
}
|
|
402
|
-
object$1.isObject = isObject$1;
|
|
403
|
-
function isntObject$1(val) {
|
|
404
|
-
return !isObject$1(val);
|
|
405
|
-
}
|
|
406
|
-
object$1.isntObject = isntObject$1;
|
|
407
|
-
function isPlainObject(val) {
|
|
408
|
-
return (0, lodash_isplainobject_1.default)(val);
|
|
409
|
-
}
|
|
410
|
-
object$1.isPlainObject = isPlainObject;
|
|
411
|
-
function isntPlainObject(val) {
|
|
412
|
-
return !isPlainObject(val);
|
|
413
|
-
}
|
|
414
|
-
object$1.isntPlainObject = isntPlainObject;
|
|
415
|
-
function isEmptyObject$1(val) {
|
|
416
|
-
return Object.keys(val).length === 0;
|
|
417
|
-
}
|
|
418
|
-
object$1.isEmptyObject = isEmptyObject$1;
|
|
419
|
-
function isntEmptyObject$1(val) {
|
|
420
|
-
return Object.keys(val).length !== 0;
|
|
444
|
+
function isObjectLike$1(value) {
|
|
445
|
+
return value != null && typeof value == 'object';
|
|
421
446
|
}
|
|
422
|
-
object$1.isntEmptyObject = isntEmptyObject$1;
|
|
423
447
|
|
|
424
|
-
var
|
|
448
|
+
var isObjectLike_1 = isObjectLike$1;
|
|
425
449
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
number$1.isNumber = isNumber$1;
|
|
431
|
-
function isntNumber$1(val) {
|
|
432
|
-
return !isNumber$1(val);
|
|
433
|
-
}
|
|
434
|
-
number$1.isntNumber = isntNumber$1;
|
|
435
|
-
|
|
436
|
-
jsonRpc$1.isntJsonRpcError = jsonRpc$1.isJsonRpcError = jsonRpc$1.isntJsonRpcSuccess = jsonRpc$1.isJsonRpcSuccess = jsonRpc$1.isntJsonRpcRequest = jsonRpc$1.isJsonRpcRequest = jsonRpc$1.isntJsonRpcNotification = jsonRpc$1.isJsonRpcNotification = void 0;
|
|
437
|
-
const array_1$1 = array$1;
|
|
438
|
-
const object_1$1 = object$1;
|
|
439
|
-
const string_1$2 = string$1;
|
|
440
|
-
const number_1$1 = number$1;
|
|
441
|
-
const undefined_1$3 = _undefined$1;
|
|
442
|
-
function isJsonRpcId$1(val) {
|
|
443
|
-
return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
|
|
444
|
-
}
|
|
445
|
-
function isJsonRpcParams$1(val) {
|
|
446
|
-
return (0, array_1$1.isArray)(val) || (0, object_1$1.isObject)(val);
|
|
447
|
-
}
|
|
448
|
-
function isJsonRpcNotification$1(val) {
|
|
449
|
-
return (0, object_1$1.isPlainObject)(val)
|
|
450
|
-
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
451
|
-
&& (0, string_1$2.isString)(val.method)
|
|
452
|
-
&& (0, undefined_1$3.isUndefined)(val.id)
|
|
453
|
-
&& isJsonRpcParams$1(val.params);
|
|
454
|
-
}
|
|
455
|
-
jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
|
|
456
|
-
function isntJsonRpcNotification$1(val) {
|
|
457
|
-
return !isJsonRpcNotification$1(val);
|
|
458
|
-
}
|
|
459
|
-
jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
|
|
460
|
-
function isJsonRpcRequest$1(val) {
|
|
461
|
-
return (0, object_1$1.isPlainObject)(val)
|
|
462
|
-
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
463
|
-
&& (0, string_1$2.isString)(val.method)
|
|
464
|
-
&& isJsonRpcId$1(val.id)
|
|
465
|
-
&& isJsonRpcParams$1(val.params);
|
|
466
|
-
}
|
|
467
|
-
jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
|
|
468
|
-
function isntJsonRpcRequest$1(val) {
|
|
469
|
-
return !isJsonRpcRequest$1(val);
|
|
470
|
-
}
|
|
471
|
-
jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
|
|
472
|
-
function isJsonRpcSuccess$1(val) {
|
|
473
|
-
return (0, object_1$1.isPlainObject)(val)
|
|
474
|
-
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
475
|
-
&& (0, string_1$2.isString)(val.id)
|
|
476
|
-
&& 'result' in val;
|
|
477
|
-
}
|
|
478
|
-
jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
|
|
479
|
-
function isntJsonRpcSuccess$1(val) {
|
|
480
|
-
return !isJsonRpcSuccess$1(val);
|
|
481
|
-
}
|
|
482
|
-
jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
|
|
483
|
-
function isJsonRpcError$1(val) {
|
|
484
|
-
return (0, object_1$1.isPlainObject)(val)
|
|
485
|
-
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
486
|
-
&& isJsonRpcId$1(val.id)
|
|
487
|
-
&& isJsonRpcErrorObject$1(val.error);
|
|
488
|
-
}
|
|
489
|
-
jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
|
|
490
|
-
function isntJsonRpcError$1(val) {
|
|
491
|
-
return !isJsonRpcError$1(val);
|
|
492
|
-
}
|
|
493
|
-
jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
|
|
494
|
-
function isJsonRpcErrorObject$1(val) {
|
|
495
|
-
return (0, object_1$1.isPlainObject)(val)
|
|
496
|
-
&& (0, number_1$1.isNumber)(val.code)
|
|
497
|
-
&& (0, string_1$2.isString)(val.message)
|
|
498
|
-
&& ((0, undefined_1$3.isUndefined)(val.data) || (0, object_1$1.isObject)(val.data));
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
var json$2 = {};
|
|
502
|
-
|
|
503
|
-
json$2.isntJson = json$2.isJson = void 0;
|
|
504
|
-
function isJson$1(val) {
|
|
505
|
-
try {
|
|
506
|
-
JSON.stringify(val);
|
|
507
|
-
return true;
|
|
508
|
-
}
|
|
509
|
-
catch (_a) {
|
|
510
|
-
return false;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
json$2.isJson = isJson$1;
|
|
514
|
-
function isntJson$1(val) {
|
|
515
|
-
return !isntJson$1();
|
|
516
|
-
}
|
|
517
|
-
json$2.isntJson = isntJson$1;
|
|
518
|
-
|
|
519
|
-
var url$2 = {};
|
|
520
|
-
|
|
521
|
-
url$2.isAbsoluteURL = void 0;
|
|
522
|
-
function isAbsoluteURL$1(str) {
|
|
523
|
-
try {
|
|
524
|
-
new URL(str);
|
|
525
|
-
return true;
|
|
526
|
-
}
|
|
527
|
-
catch (_a) {
|
|
528
|
-
return false;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
url$2.isAbsoluteURL = isAbsoluteURL$1;
|
|
532
|
-
|
|
533
|
-
(function (exports) {
|
|
534
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
535
|
-
if (k2 === undefined) k2 = k;
|
|
536
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
537
|
-
}) : (function(o, m, k, k2) {
|
|
538
|
-
if (k2 === undefined) k2 = k;
|
|
539
|
-
o[k2] = m[k];
|
|
540
|
-
}));
|
|
541
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
542
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
543
|
-
};__exportStar(array$1, exports);
|
|
544
|
-
__exportStar(asyncIterable$1, exports);
|
|
545
|
-
__exportStar(bigint$1, exports);
|
|
546
|
-
__exportStar(boolean$1, exports);
|
|
547
|
-
__exportStar(char$1, exports);
|
|
548
|
-
__exportStar(date$1, exports);
|
|
549
|
-
__exportStar(_enum$1, exports);
|
|
550
|
-
__exportStar(error$1, exports);
|
|
551
|
-
__exportStar(falsy$1, exports);
|
|
552
|
-
__exportStar(_function$1, exports);
|
|
553
|
-
__exportStar(iterable$1, exports);
|
|
554
|
-
__exportStar(jsonRpc$1, exports);
|
|
555
|
-
__exportStar(json$2, exports);
|
|
556
|
-
__exportStar(_null$1, exports);
|
|
557
|
-
__exportStar(number$1, exports);
|
|
558
|
-
__exportStar(object$1, exports);
|
|
559
|
-
__exportStar(string$1, exports);
|
|
560
|
-
__exportStar(_undefined$1, exports);
|
|
561
|
-
__exportStar(url$2, exports);
|
|
562
|
-
|
|
563
|
-
}(es2018$6));
|
|
564
|
-
|
|
565
|
-
function get(...transformers) {
|
|
566
|
-
return request('GET', ...transformers);
|
|
567
|
-
}
|
|
568
|
-
function head(...transformers) {
|
|
569
|
-
return request('HEAD', ...transformers);
|
|
570
|
-
}
|
|
571
|
-
function post(...transformers) {
|
|
572
|
-
return request('POST', ...transformers);
|
|
573
|
-
}
|
|
574
|
-
function put(...transformers) {
|
|
575
|
-
return request('PUT', ...transformers);
|
|
576
|
-
}
|
|
577
|
-
function patch(...transformers) {
|
|
578
|
-
return request('PATCH', ...transformers);
|
|
579
|
-
}
|
|
580
|
-
function del(...transformers) {
|
|
581
|
-
return request('DELETE', ...transformers);
|
|
582
|
-
}
|
|
583
|
-
function request(method, ...transformers) {
|
|
584
|
-
const options = transformers.reduce((options, trans) => es2018$6.isFunction(trans) ? trans(options) : options, {
|
|
585
|
-
url: new URL('http://localhost'),
|
|
586
|
-
headers: new es2018$7.Headers()
|
|
587
|
-
});
|
|
588
|
-
const headers = new es2018$7.Headers(options.headers);
|
|
589
|
-
return new es2018$7.Request(options.url.href, {
|
|
590
|
-
method,
|
|
591
|
-
headers,
|
|
592
|
-
signal: options.signal,
|
|
593
|
-
body: options.payload,
|
|
594
|
-
keepalive: options.keepalive
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
function url$1(...urls) {
|
|
599
|
-
return (options) => {
|
|
600
|
-
const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
|
|
601
|
-
return {
|
|
602
|
-
...options,
|
|
603
|
-
url
|
|
604
|
-
};
|
|
605
|
-
};
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
function text(payload) {
|
|
609
|
-
return (options) => {
|
|
610
|
-
const headers = new es2018$7.Headers(options.headers);
|
|
611
|
-
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
612
|
-
return {
|
|
613
|
-
...options,
|
|
614
|
-
headers,
|
|
615
|
-
payload
|
|
616
|
-
};
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
function json$1(payload) {
|
|
621
|
-
return (options) => {
|
|
622
|
-
const headers = new es2018$7.Headers(options.headers);
|
|
623
|
-
headers.set('Content-Type', 'application/json');
|
|
624
|
-
return {
|
|
625
|
-
...options,
|
|
626
|
-
headers,
|
|
627
|
-
payload: JSON.stringify(payload)
|
|
628
|
-
};
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
var papaparse_min = {exports: {}};
|
|
633
|
-
|
|
634
|
-
/* @license
|
|
635
|
-
Papa Parse
|
|
636
|
-
v5.3.1
|
|
637
|
-
https://github.com/mholt/PapaParse
|
|
638
|
-
License: MIT
|
|
639
|
-
*/
|
|
640
|
-
|
|
641
|
-
(function (module, exports) {
|
|
642
|
-
!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&&(o=t.escapeFormulae);}();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),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);!0===o&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var i=e.toString().replace(h,a),r="boolean"==typeof n&&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}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1);return r?s+i+s:i}}};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(){if(c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines)for(var e=0;e<c.data.length;e++)y(c.data[e])&&c.data.splice(e--,1);return _()&&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?'"':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[m+1+y]===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});
|
|
643
|
-
}(papaparse_min));
|
|
644
|
-
|
|
645
|
-
var es2018$5 = {};
|
|
646
|
-
|
|
647
|
-
var customError$1 = {};
|
|
648
|
-
|
|
649
|
-
var es2018$4 = {};
|
|
650
|
-
|
|
651
|
-
var middleware = {};
|
|
652
|
-
|
|
653
|
-
var chunkAsync$1 = {};
|
|
654
|
-
|
|
655
|
-
var es2018$3 = {};
|
|
656
|
-
|
|
657
|
-
var go$1 = {};
|
|
658
|
-
|
|
659
|
-
go$1.go = void 0;
|
|
660
|
-
function go(fn) {
|
|
661
|
-
return fn();
|
|
662
|
-
}
|
|
663
|
-
go$1.go = go;
|
|
664
|
-
|
|
665
|
-
(function (exports) {
|
|
666
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
667
|
-
if (k2 === undefined) k2 = k;
|
|
668
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
669
|
-
}) : (function(o, m, k, k2) {
|
|
670
|
-
if (k2 === undefined) k2 = k;
|
|
671
|
-
o[k2] = m[k];
|
|
672
|
-
}));
|
|
673
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
674
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
675
|
-
};__exportStar(go$1, exports);
|
|
676
|
-
|
|
677
|
-
}(es2018$3));
|
|
678
|
-
|
|
679
|
-
var es2018$2 = {};
|
|
680
|
-
|
|
681
|
-
var customError = {};
|
|
682
|
-
|
|
683
|
-
customError.CustomError = void 0;
|
|
684
|
-
class CustomError$1 extends Error {
|
|
685
|
-
get name() {
|
|
686
|
-
return this.constructor.name;
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
customError.CustomError = CustomError$1;
|
|
690
|
-
|
|
691
|
-
var expectedError = {};
|
|
692
|
-
|
|
693
|
-
expectedError.ExpectedError = void 0;
|
|
694
|
-
const custom_error_1$2 = customError;
|
|
695
|
-
class ExpectedError extends custom_error_1$2.CustomError {
|
|
696
|
-
}
|
|
697
|
-
expectedError.ExpectedError = ExpectedError;
|
|
698
|
-
|
|
699
|
-
var assertionError$1 = {};
|
|
700
|
-
|
|
701
|
-
assertionError$1.AssertionError = void 0;
|
|
702
|
-
const custom_error_1$1 = customError;
|
|
703
|
-
class AssertionError$1 extends custom_error_1$1.CustomError {
|
|
704
|
-
}
|
|
705
|
-
assertionError$1.AssertionError = AssertionError$1;
|
|
706
|
-
|
|
707
|
-
var normalize$3 = {};
|
|
708
|
-
|
|
709
|
-
normalize$3.normalize = void 0;
|
|
710
|
-
function normalize$2(err) {
|
|
711
|
-
var _a;
|
|
712
|
-
return {
|
|
713
|
-
name: err.name,
|
|
714
|
-
message: err.message,
|
|
715
|
-
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
normalize$3.normalize = normalize$2;
|
|
719
|
-
|
|
720
|
-
var refute$1 = {};
|
|
721
|
-
|
|
722
|
-
refute$1.refute = void 0;
|
|
723
|
-
const expected_error_1 = expectedError;
|
|
724
|
-
function refute(condition, message) {
|
|
725
|
-
if (condition)
|
|
726
|
-
throw new expected_error_1.ExpectedError(message);
|
|
727
|
-
}
|
|
728
|
-
refute$1.refute = refute;
|
|
729
|
-
|
|
730
|
-
var assert$3 = {};
|
|
731
|
-
|
|
732
|
-
assert$3.assert = void 0;
|
|
733
|
-
const assertion_error_1$1 = assertionError$1;
|
|
734
|
-
function assert$2(condition, message) {
|
|
735
|
-
if (!condition)
|
|
736
|
-
throw new assertion_error_1$1.AssertionError(message);
|
|
737
|
-
}
|
|
738
|
-
assert$3.assert = assert$2;
|
|
739
|
-
|
|
740
|
-
(function (exports) {
|
|
741
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
742
|
-
if (k2 === undefined) k2 = k;
|
|
743
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
744
|
-
}) : (function(o, m, k, k2) {
|
|
745
|
-
if (k2 === undefined) k2 = k;
|
|
746
|
-
o[k2] = m[k];
|
|
747
|
-
}));
|
|
748
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
749
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
750
|
-
};__exportStar(customError, exports);
|
|
751
|
-
__exportStar(expectedError, exports);
|
|
752
|
-
__exportStar(assertionError$1, exports);
|
|
753
|
-
__exportStar(normalize$3, exports);
|
|
754
|
-
__exportStar(refute$1, exports);
|
|
755
|
-
__exportStar(assert$3, exports);
|
|
756
|
-
|
|
757
|
-
}(es2018$2));
|
|
758
|
-
|
|
759
|
-
chunkAsync$1.chunkAsync = void 0;
|
|
760
|
-
const go_1$f = es2018$3;
|
|
761
|
-
const errors_1$f = es2018$2;
|
|
762
|
-
function chunkAsync(iterable, size) {
|
|
763
|
-
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
764
|
-
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
765
|
-
return (0, go_1$f.go)(async function* () {
|
|
766
|
-
let buffer = [];
|
|
767
|
-
for await (const element of iterable) {
|
|
768
|
-
buffer.push(element);
|
|
769
|
-
if (buffer.length >= size) {
|
|
770
|
-
yield buffer;
|
|
771
|
-
buffer = [];
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
if (buffer.length)
|
|
775
|
-
yield buffer;
|
|
776
|
-
});
|
|
777
|
-
}
|
|
778
|
-
chunkAsync$1.chunkAsync = chunkAsync;
|
|
779
|
-
|
|
780
|
-
var chunkByAsync$1 = {};
|
|
781
|
-
|
|
782
|
-
var es2018$1 = {};
|
|
783
|
-
|
|
784
|
-
var array = {};
|
|
785
|
-
|
|
786
|
-
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
787
|
-
function isArray(val) {
|
|
788
|
-
return Array.isArray(val);
|
|
789
|
-
}
|
|
790
|
-
array.isArray = isArray;
|
|
791
|
-
function isntArray(val) {
|
|
792
|
-
return !isArray(val);
|
|
793
|
-
}
|
|
794
|
-
array.isntArray = isntArray;
|
|
795
|
-
function isEmptyArray(val) {
|
|
796
|
-
return val.length === 0;
|
|
797
|
-
}
|
|
798
|
-
array.isEmptyArray = isEmptyArray;
|
|
799
|
-
function isntEmptyArray(val) {
|
|
800
|
-
return val.length !== 0;
|
|
801
|
-
}
|
|
802
|
-
array.isntEmptyArray = isntEmptyArray;
|
|
803
|
-
|
|
804
|
-
var asyncIterable = {};
|
|
805
|
-
|
|
806
|
-
var _null = {};
|
|
807
|
-
|
|
808
|
-
_null.isntNull = _null.isNull = void 0;
|
|
809
|
-
function isNull(val) {
|
|
810
|
-
return val === null;
|
|
811
|
-
}
|
|
812
|
-
_null.isNull = isNull;
|
|
813
|
-
function isntNull(val) {
|
|
814
|
-
return !isNull(val);
|
|
815
|
-
}
|
|
816
|
-
_null.isntNull = isntNull;
|
|
817
|
-
|
|
818
|
-
var _undefined = {};
|
|
819
|
-
|
|
820
|
-
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
821
|
-
function isUndefined(val) {
|
|
822
|
-
return val === undefined;
|
|
823
|
-
}
|
|
824
|
-
_undefined.isUndefined = isUndefined;
|
|
825
|
-
function isntUndefined(val) {
|
|
826
|
-
return !isUndefined(val);
|
|
827
|
-
}
|
|
828
|
-
_undefined.isntUndefined = isntUndefined;
|
|
829
|
-
|
|
830
|
-
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
831
|
-
const null_1$1 = _null;
|
|
832
|
-
const undefined_1$2 = _undefined;
|
|
833
|
-
function isAsyncIterable(val) {
|
|
834
|
-
return (0, null_1$1.isntNull)(val)
|
|
835
|
-
&& (0, undefined_1$2.isntUndefined)(val)
|
|
836
|
-
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
837
|
-
}
|
|
838
|
-
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
839
|
-
function isntAsyncIterable(val) {
|
|
840
|
-
return !isAsyncIterable(val);
|
|
841
|
-
}
|
|
842
|
-
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
843
|
-
|
|
844
|
-
var bigint = {};
|
|
845
|
-
|
|
846
|
-
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
847
|
-
function isBigInt(val) {
|
|
848
|
-
return typeof val === 'bigint';
|
|
849
|
-
}
|
|
850
|
-
bigint.isBigInt = isBigInt;
|
|
851
|
-
function isntBigInt(val) {
|
|
852
|
-
return !isBigInt(val);
|
|
853
|
-
}
|
|
854
|
-
bigint.isntBigInt = isntBigInt;
|
|
855
|
-
|
|
856
|
-
var boolean = {};
|
|
857
|
-
|
|
858
|
-
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
859
|
-
function isBoolean(val) {
|
|
860
|
-
return typeof val === 'boolean';
|
|
861
|
-
}
|
|
862
|
-
boolean.isBoolean = isBoolean;
|
|
863
|
-
function isntBoolean(val) {
|
|
864
|
-
return !isBoolean(val);
|
|
865
|
-
}
|
|
866
|
-
boolean.isntBoolean = isntBoolean;
|
|
867
|
-
|
|
868
|
-
var char = {};
|
|
869
|
-
|
|
870
|
-
var string = {};
|
|
871
|
-
|
|
872
|
-
string.isntString = string.isString = void 0;
|
|
873
|
-
function isString(val) {
|
|
874
|
-
return typeof val === 'string';
|
|
875
|
-
}
|
|
876
|
-
string.isString = isString;
|
|
877
|
-
function isntString(val) {
|
|
878
|
-
return !isString(val);
|
|
879
|
-
}
|
|
880
|
-
string.isntString = isntString;
|
|
881
|
-
|
|
882
|
-
char.isntChar = char.isChar = void 0;
|
|
883
|
-
const string_1$1 = string;
|
|
884
|
-
function isChar(val) {
|
|
885
|
-
return (0, string_1$1.isString)(val)
|
|
886
|
-
&& val.length === 1;
|
|
887
|
-
}
|
|
888
|
-
char.isChar = isChar;
|
|
889
|
-
function isntChar(val) {
|
|
890
|
-
return !isChar(val);
|
|
891
|
-
}
|
|
892
|
-
char.isntChar = isntChar;
|
|
893
|
-
|
|
894
|
-
var date = {};
|
|
895
|
-
|
|
896
|
-
date.isntDate = date.isDate = void 0;
|
|
897
|
-
function isDate(val) {
|
|
898
|
-
return val instanceof Date;
|
|
899
|
-
}
|
|
900
|
-
date.isDate = isDate;
|
|
901
|
-
function isntDate(val) {
|
|
902
|
-
return !isDate(val);
|
|
903
|
-
}
|
|
904
|
-
date.isntDate = isntDate;
|
|
905
|
-
|
|
906
|
-
var _enum = {};
|
|
907
|
-
|
|
908
|
-
_enum.inEnum = void 0;
|
|
909
|
-
function inEnum(val, _enum) {
|
|
910
|
-
return Object.values(_enum).includes(val);
|
|
911
|
-
}
|
|
912
|
-
_enum.inEnum = inEnum;
|
|
913
|
-
|
|
914
|
-
var error = {};
|
|
915
|
-
|
|
916
|
-
error.isntError = error.isError = void 0;
|
|
917
|
-
function isError(val) {
|
|
918
|
-
return val instanceof Error;
|
|
919
|
-
}
|
|
920
|
-
error.isError = isError;
|
|
921
|
-
function isntError(val) {
|
|
922
|
-
return !isError(val);
|
|
923
|
-
}
|
|
924
|
-
error.isntError = isntError;
|
|
450
|
+
var baseGetTag = _baseGetTag,
|
|
451
|
+
getPrototype = _getPrototype,
|
|
452
|
+
isObjectLike = isObjectLike_1;
|
|
925
453
|
|
|
926
|
-
|
|
454
|
+
/** `Object#toString` result references. */
|
|
455
|
+
var objectTag = '[object Object]';
|
|
927
456
|
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
}
|
|
932
|
-
falsy.isFalsy = isFalsy;
|
|
933
|
-
function isntFalsy(val) {
|
|
934
|
-
return !isFalsy(val);
|
|
935
|
-
}
|
|
936
|
-
falsy.isntFalsy = isntFalsy;
|
|
457
|
+
/** Used for built-in method references. */
|
|
458
|
+
var funcProto = Function.prototype,
|
|
459
|
+
objectProto = Object.prototype;
|
|
937
460
|
|
|
938
|
-
|
|
461
|
+
/** Used to resolve the decompiled source of functions. */
|
|
462
|
+
var funcToString = funcProto.toString;
|
|
939
463
|
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
return typeof val === 'function';
|
|
943
|
-
}
|
|
944
|
-
_function.isFunction = isFunction;
|
|
945
|
-
function isntFunction(val) {
|
|
946
|
-
return !isFunction(val);
|
|
947
|
-
}
|
|
948
|
-
_function.isntFunction = isntFunction;
|
|
464
|
+
/** Used to check objects for own properties. */
|
|
465
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
949
466
|
|
|
950
|
-
|
|
467
|
+
/** Used to infer the `Object` constructor. */
|
|
468
|
+
var objectCtorString = funcToString.call(Object);
|
|
951
469
|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
470
|
+
/**
|
|
471
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
472
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
473
|
+
*
|
|
474
|
+
* @static
|
|
475
|
+
* @memberOf _
|
|
476
|
+
* @since 0.8.0
|
|
477
|
+
* @category Lang
|
|
478
|
+
* @param {*} value The value to check.
|
|
479
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
480
|
+
* @example
|
|
481
|
+
*
|
|
482
|
+
* function Foo() {
|
|
483
|
+
* this.a = 1;
|
|
484
|
+
* }
|
|
485
|
+
*
|
|
486
|
+
* _.isPlainObject(new Foo);
|
|
487
|
+
* // => false
|
|
488
|
+
*
|
|
489
|
+
* _.isPlainObject([1, 2, 3]);
|
|
490
|
+
* // => false
|
|
491
|
+
*
|
|
492
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
493
|
+
* // => true
|
|
494
|
+
*
|
|
495
|
+
* _.isPlainObject(Object.create(null));
|
|
496
|
+
* // => true
|
|
497
|
+
*/
|
|
498
|
+
function isPlainObject$1(value) {
|
|
499
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
500
|
+
return false;
|
|
501
|
+
}
|
|
502
|
+
var proto = getPrototype(value);
|
|
503
|
+
if (proto === null) {
|
|
504
|
+
return true;
|
|
505
|
+
}
|
|
506
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
507
|
+
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
508
|
+
funcToString.call(Ctor) == objectCtorString;
|
|
963
509
|
}
|
|
964
|
-
iterable.isntIterable = isntIterable;
|
|
965
510
|
|
|
966
|
-
var
|
|
967
|
-
|
|
968
|
-
var object = {};
|
|
511
|
+
var isPlainObject_1$1 = isPlainObject$1;
|
|
969
512
|
|
|
970
|
-
|
|
513
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
514
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
515
|
+
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
516
|
+
const isPlainObject_1 = __importDefault(isPlainObject_1$1);
|
|
971
517
|
function isObject(val) {
|
|
972
|
-
return val !== null
|
|
518
|
+
return val !== null
|
|
519
|
+
&& typeof val === 'object';
|
|
973
520
|
}
|
|
974
521
|
object.isObject = isObject;
|
|
975
522
|
function isntObject(val) {
|
|
976
523
|
return !isObject(val);
|
|
977
524
|
}
|
|
978
525
|
object.isntObject = isntObject;
|
|
979
|
-
function
|
|
980
|
-
return
|
|
526
|
+
function isPlainObject(val) {
|
|
527
|
+
return (0, isPlainObject_1.default)(val);
|
|
528
|
+
}
|
|
529
|
+
object.isPlainObject = isPlainObject;
|
|
530
|
+
function isntPlainObject(val) {
|
|
531
|
+
return !isPlainObject(val);
|
|
981
532
|
}
|
|
982
|
-
object.
|
|
533
|
+
object.isntPlainObject = isntPlainObject;
|
|
983
534
|
function isEmptyObject(val) {
|
|
984
535
|
return Object.keys(val).length === 0;
|
|
985
536
|
}
|
|
@@ -989,87 +540,27 @@ function isntEmptyObject(val) {
|
|
|
989
540
|
}
|
|
990
541
|
object.isntEmptyObject = isntEmptyObject;
|
|
991
542
|
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
function isNumber(val) {
|
|
996
|
-
return typeof val === 'number';
|
|
997
|
-
}
|
|
998
|
-
number.isNumber = isNumber;
|
|
999
|
-
function isntNumber(val) {
|
|
1000
|
-
return !isNumber(val);
|
|
1001
|
-
}
|
|
1002
|
-
number.isntNumber = isntNumber;
|
|
1003
|
-
|
|
1004
|
-
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
1005
|
-
const array_1 = array;
|
|
1006
|
-
const object_1 = object;
|
|
543
|
+
json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
|
|
544
|
+
const null_1 = _null;
|
|
545
|
+
const boolean_1 = boolean;
|
|
1007
546
|
const string_1 = string;
|
|
1008
547
|
const number_1 = number;
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1011
|
-
return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
|
|
1012
|
-
}
|
|
1013
|
-
function isJsonRpcParams(val) {
|
|
1014
|
-
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
1015
|
-
}
|
|
1016
|
-
function isJsonRpcNotification(val) {
|
|
1017
|
-
return (0, object_1.isRecord)(val)
|
|
1018
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1019
|
-
&& (0, string_1.isString)(val.method)
|
|
1020
|
-
&& (0, undefined_1.isUndefined)(val.id)
|
|
1021
|
-
&& isJsonRpcParams(val.params);
|
|
1022
|
-
}
|
|
1023
|
-
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
1024
|
-
function isntJsonRpcNotification(val) {
|
|
1025
|
-
return !isJsonRpcNotification(val);
|
|
1026
|
-
}
|
|
1027
|
-
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
1028
|
-
function isJsonRpcRequest(val) {
|
|
1029
|
-
return (0, object_1.isRecord)(val)
|
|
1030
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1031
|
-
&& (0, string_1.isString)(val.method)
|
|
1032
|
-
&& isJsonRpcId(val.id)
|
|
1033
|
-
&& isJsonRpcParams(val.params);
|
|
1034
|
-
}
|
|
1035
|
-
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
1036
|
-
function isntJsonRpcRequest(val) {
|
|
1037
|
-
return !isJsonRpcRequest(val);
|
|
1038
|
-
}
|
|
1039
|
-
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
1040
|
-
function isJsonRpcSuccess(val) {
|
|
1041
|
-
return (0, object_1.isRecord)(val)
|
|
1042
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1043
|
-
&& (0, string_1.isString)(val.id)
|
|
1044
|
-
&& (0, undefined_1.isntUndefined)(val.result);
|
|
1045
|
-
}
|
|
1046
|
-
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
1047
|
-
function isntJsonRpcSuccess(val) {
|
|
1048
|
-
return !isJsonRpcSuccess(val);
|
|
1049
|
-
}
|
|
1050
|
-
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
1051
|
-
function isJsonRpcError(val) {
|
|
1052
|
-
return (0, object_1.isRecord)(val)
|
|
1053
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
1054
|
-
&& isJsonRpcId(val.id)
|
|
1055
|
-
&& isJsonRpcErrorObject(val.error);
|
|
1056
|
-
}
|
|
1057
|
-
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
1058
|
-
function isntJsonRpcError(val) {
|
|
1059
|
-
return !isJsonRpcError(val);
|
|
1060
|
-
}
|
|
1061
|
-
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
1062
|
-
function isJsonRpcErrorObject(val) {
|
|
1063
|
-
return (0, object_1.isRecord)(val)
|
|
1064
|
-
&& (0, number_1.isNumber)(val.code)
|
|
1065
|
-
&& (0, string_1.isString)(val.message)
|
|
1066
|
-
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
var json = {};
|
|
1070
|
-
|
|
1071
|
-
json.isntJson = json.isJson = void 0;
|
|
548
|
+
const array_1 = array;
|
|
549
|
+
const object_1$1 = object;
|
|
1072
550
|
function isJson(val) {
|
|
551
|
+
return (0, null_1.isNull)(val)
|
|
552
|
+
|| (0, boolean_1.isBoolean)(val)
|
|
553
|
+
|| (0, string_1.isString)(val)
|
|
554
|
+
|| (0, number_1.isNumber)(val)
|
|
555
|
+
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
556
|
+
|| ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
|
|
557
|
+
}
|
|
558
|
+
json$1.isJson = isJson;
|
|
559
|
+
function isntJson(val) {
|
|
560
|
+
return !isJson(val);
|
|
561
|
+
}
|
|
562
|
+
json$1.isntJson = isntJson;
|
|
563
|
+
function isJsonable(val) {
|
|
1073
564
|
try {
|
|
1074
565
|
JSON.stringify(val);
|
|
1075
566
|
return true;
|
|
@@ -1078,15 +569,38 @@ function isJson(val) {
|
|
|
1078
569
|
return false;
|
|
1079
570
|
}
|
|
1080
571
|
}
|
|
1081
|
-
json.
|
|
1082
|
-
function
|
|
1083
|
-
return !
|
|
572
|
+
json$1.isJsonable = isJsonable;
|
|
573
|
+
function isntJsonable(val) {
|
|
574
|
+
return !isntJsonable();
|
|
575
|
+
}
|
|
576
|
+
json$1.isntJsonable = isntJsonable;
|
|
577
|
+
|
|
578
|
+
var promise = {};
|
|
579
|
+
|
|
580
|
+
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
581
|
+
const object_1 = object;
|
|
582
|
+
const function_1 = _function;
|
|
583
|
+
function isPromise(val) {
|
|
584
|
+
return val instanceof Promise;
|
|
1084
585
|
}
|
|
1085
|
-
|
|
586
|
+
promise.isPromise = isPromise;
|
|
587
|
+
function isntPromise(val) {
|
|
588
|
+
return !isPromise(val);
|
|
589
|
+
}
|
|
590
|
+
promise.isntPromise = isntPromise;
|
|
591
|
+
function isntPromiseLike(val) {
|
|
592
|
+
return !isPromiseLike(val);
|
|
593
|
+
}
|
|
594
|
+
promise.isntPromiseLike = isntPromiseLike;
|
|
595
|
+
function isPromiseLike(val) {
|
|
596
|
+
return (0, object_1.isObject)(val)
|
|
597
|
+
&& (0, function_1.isFunction)(val.then);
|
|
598
|
+
}
|
|
599
|
+
promise.isPromiseLike = isPromiseLike;
|
|
1086
600
|
|
|
1087
|
-
var url = {};
|
|
601
|
+
var url$1 = {};
|
|
1088
602
|
|
|
1089
|
-
url.isAbsoluteURL = void 0;
|
|
603
|
+
url$1.isAbsoluteURL = void 0;
|
|
1090
604
|
function isAbsoluteURL(str) {
|
|
1091
605
|
try {
|
|
1092
606
|
new URL(str);
|
|
@@ -1096,12 +610,16 @@ function isAbsoluteURL(str) {
|
|
|
1096
610
|
return false;
|
|
1097
611
|
}
|
|
1098
612
|
}
|
|
1099
|
-
url.isAbsoluteURL = isAbsoluteURL;
|
|
613
|
+
url$1.isAbsoluteURL = isAbsoluteURL;
|
|
1100
614
|
|
|
1101
615
|
(function (exports) {
|
|
1102
616
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1103
617
|
if (k2 === undefined) k2 = k;
|
|
1104
|
-
Object.
|
|
618
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
619
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
620
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
621
|
+
}
|
|
622
|
+
Object.defineProperty(o, k2, desc);
|
|
1105
623
|
}) : (function(o, m, k, k2) {
|
|
1106
624
|
if (k2 === undefined) k2 = k;
|
|
1107
625
|
o[k2] = m[k];
|
|
@@ -1119,19 +637,156 @@ __exportStar(error, exports);
|
|
|
1119
637
|
__exportStar(falsy, exports);
|
|
1120
638
|
__exportStar(_function, exports);
|
|
1121
639
|
__exportStar(iterable, exports);
|
|
1122
|
-
__exportStar(
|
|
1123
|
-
__exportStar(json, exports);
|
|
640
|
+
__exportStar(json$1, exports);
|
|
1124
641
|
__exportStar(_null, exports);
|
|
1125
642
|
__exportStar(number, exports);
|
|
1126
643
|
__exportStar(object, exports);
|
|
644
|
+
__exportStar(promise, exports);
|
|
1127
645
|
__exportStar(string, exports);
|
|
1128
646
|
__exportStar(_undefined, exports);
|
|
1129
|
-
__exportStar(url, exports);
|
|
647
|
+
__exportStar(url$1, exports);
|
|
648
|
+
|
|
649
|
+
}(es2018$4));
|
|
650
|
+
|
|
651
|
+
function get(...transformers) {
|
|
652
|
+
return request('GET', ...transformers);
|
|
653
|
+
}
|
|
654
|
+
function head(...transformers) {
|
|
655
|
+
return request('HEAD', ...transformers);
|
|
656
|
+
}
|
|
657
|
+
function post(...transformers) {
|
|
658
|
+
return request('POST', ...transformers);
|
|
659
|
+
}
|
|
660
|
+
function put(...transformers) {
|
|
661
|
+
return request('PUT', ...transformers);
|
|
662
|
+
}
|
|
663
|
+
function patch(...transformers) {
|
|
664
|
+
return request('PATCH', ...transformers);
|
|
665
|
+
}
|
|
666
|
+
function del(...transformers) {
|
|
667
|
+
return request('DELETE', ...transformers);
|
|
668
|
+
}
|
|
669
|
+
function request(method, ...transformers) {
|
|
670
|
+
const options = transformers.reduce((options, trans) => es2018$4.isFunction(trans) ? trans(options) : options, {
|
|
671
|
+
url: new URL('http://localhost'),
|
|
672
|
+
headers: new es2018$5.Headers()
|
|
673
|
+
});
|
|
674
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
675
|
+
return new es2018$5.Request(options.url.href, {
|
|
676
|
+
method,
|
|
677
|
+
headers,
|
|
678
|
+
signal: options.signal,
|
|
679
|
+
body: options.payload,
|
|
680
|
+
keepalive: options.keepalive
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
function url(...urls) {
|
|
685
|
+
return (options) => {
|
|
686
|
+
const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
|
|
687
|
+
return {
|
|
688
|
+
...options,
|
|
689
|
+
url
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
function text(payload) {
|
|
695
|
+
return (options) => {
|
|
696
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
697
|
+
headers.set('Content-Type', 'application/x-www-form-urlencoded');
|
|
698
|
+
return {
|
|
699
|
+
...options,
|
|
700
|
+
headers,
|
|
701
|
+
payload
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
function json(payload) {
|
|
707
|
+
return (options) => {
|
|
708
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
709
|
+
headers.set('Content-Type', 'application/json');
|
|
710
|
+
return {
|
|
711
|
+
...options,
|
|
712
|
+
headers,
|
|
713
|
+
payload: JSON.stringify(payload)
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
var papaparse_min = {exports: {}};
|
|
719
|
+
|
|
720
|
+
/* @license
|
|
721
|
+
Papa Parse
|
|
722
|
+
v5.3.2
|
|
723
|
+
https://github.com/mholt/PapaParse
|
|
724
|
+
License: MIT
|
|
725
|
+
*/
|
|
726
|
+
|
|
727
|
+
(function (module, exports) {
|
|
728
|
+
!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});
|
|
729
|
+
}(papaparse_min));
|
|
730
|
+
|
|
731
|
+
var es2018$3 = {};
|
|
732
|
+
|
|
733
|
+
var customError = {};
|
|
734
|
+
|
|
735
|
+
var es2018$2 = {};
|
|
736
|
+
|
|
737
|
+
var middleware = {};
|
|
738
|
+
|
|
739
|
+
var chunkAsync$1 = {};
|
|
740
|
+
|
|
741
|
+
var es2018$1 = {};
|
|
742
|
+
|
|
743
|
+
var go$1 = {};
|
|
744
|
+
|
|
745
|
+
go$1.go = void 0;
|
|
746
|
+
function go(fn) {
|
|
747
|
+
return fn();
|
|
748
|
+
}
|
|
749
|
+
go$1.go = go;
|
|
750
|
+
|
|
751
|
+
(function (exports) {
|
|
752
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
753
|
+
if (k2 === undefined) k2 = k;
|
|
754
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
755
|
+
}) : (function(o, m, k, k2) {
|
|
756
|
+
if (k2 === undefined) k2 = k;
|
|
757
|
+
o[k2] = m[k];
|
|
758
|
+
}));
|
|
759
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
760
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
761
|
+
};__exportStar(go$1, exports);
|
|
1130
762
|
|
|
1131
763
|
}(es2018$1));
|
|
1132
764
|
|
|
765
|
+
chunkAsync$1.chunkAsync = void 0;
|
|
766
|
+
const go_1$f = es2018$1;
|
|
767
|
+
const errors_1$f = es2018$3;
|
|
768
|
+
function chunkAsync(iterable, size) {
|
|
769
|
+
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
770
|
+
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
771
|
+
return (0, go_1$f.go)(async function* () {
|
|
772
|
+
let buffer = [];
|
|
773
|
+
for await (const element of iterable) {
|
|
774
|
+
buffer.push(element);
|
|
775
|
+
if (buffer.length >= size) {
|
|
776
|
+
yield buffer;
|
|
777
|
+
buffer = [];
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
if (buffer.length)
|
|
781
|
+
yield buffer;
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
chunkAsync$1.chunkAsync = chunkAsync;
|
|
785
|
+
|
|
786
|
+
var chunkByAsync$1 = {};
|
|
787
|
+
|
|
1133
788
|
chunkByAsync$1.chunkByAsync = void 0;
|
|
1134
|
-
const types_1$k = es2018$
|
|
789
|
+
const types_1$k = es2018$4;
|
|
1135
790
|
function chunkByAsync(iterable, predicate) {
|
|
1136
791
|
if ((0, types_1$k.isAsyncIterable)(iterable)) {
|
|
1137
792
|
return chunkByAsyncIterable(iterable);
|
|
@@ -1192,8 +847,8 @@ chunkBy$1.chunkBy = chunkBy;
|
|
|
1192
847
|
var chunk$1 = {};
|
|
1193
848
|
|
|
1194
849
|
chunk$1.chunk = void 0;
|
|
1195
|
-
const go_1$e = es2018$
|
|
1196
|
-
const errors_1$e = es2018$
|
|
850
|
+
const go_1$e = es2018$1;
|
|
851
|
+
const errors_1$e = es2018$3;
|
|
1197
852
|
function chunk(iterable, size) {
|
|
1198
853
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
1199
854
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -1215,8 +870,8 @@ chunk$1.chunk = chunk;
|
|
|
1215
870
|
var concatAsync$1 = {};
|
|
1216
871
|
|
|
1217
872
|
concatAsync$1.concatAsync = void 0;
|
|
1218
|
-
const types_1$j = es2018$
|
|
1219
|
-
const go_1$d = es2018$
|
|
873
|
+
const types_1$j = es2018$4;
|
|
874
|
+
const go_1$d = es2018$1;
|
|
1220
875
|
function concatAsync(iterable, ...otherIterables) {
|
|
1221
876
|
return (0, go_1$d.go)(async function* () {
|
|
1222
877
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1238,7 +893,7 @@ concatAsync$1.concatAsync = concatAsync;
|
|
|
1238
893
|
var concat$1 = {};
|
|
1239
894
|
|
|
1240
895
|
concat$1.concat = void 0;
|
|
1241
|
-
const go_1$c = es2018$
|
|
896
|
+
const go_1$c = es2018$1;
|
|
1242
897
|
function concat(iterable, ...otherIterables) {
|
|
1243
898
|
return (0, go_1$c.go)(function* () {
|
|
1244
899
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -1267,9 +922,9 @@ function* copyIterable(iterable) {
|
|
|
1267
922
|
utils.copyIterable = copyIterable;
|
|
1268
923
|
|
|
1269
924
|
dropAsync$1.dropAsync = void 0;
|
|
1270
|
-
const go_1$b = es2018$
|
|
925
|
+
const go_1$b = es2018$1;
|
|
1271
926
|
const utils_1$3 = utils;
|
|
1272
|
-
const errors_1$d = es2018$
|
|
927
|
+
const errors_1$d = es2018$3;
|
|
1273
928
|
function dropAsync(iterable, count) {
|
|
1274
929
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1275
930
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1302,9 +957,9 @@ dropAsync$1.dropAsync = dropAsync;
|
|
|
1302
957
|
var dropRightAsync$1 = {};
|
|
1303
958
|
|
|
1304
959
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
1305
|
-
const go_1$a = es2018$
|
|
960
|
+
const go_1$a = es2018$1;
|
|
1306
961
|
const utils_1$2 = utils;
|
|
1307
|
-
const errors_1$c = es2018$
|
|
962
|
+
const errors_1$c = es2018$3;
|
|
1308
963
|
function dropRightAsync(iterable, count) {
|
|
1309
964
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1310
965
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1330,9 +985,9 @@ async function toArrayAsync$2(iterable) {
|
|
|
1330
985
|
var dropRight$1 = {};
|
|
1331
986
|
|
|
1332
987
|
dropRight$1.dropRight = void 0;
|
|
1333
|
-
const go_1$9 = es2018$
|
|
988
|
+
const go_1$9 = es2018$1;
|
|
1334
989
|
const utils_1$1 = utils;
|
|
1335
|
-
const errors_1$b = es2018$
|
|
990
|
+
const errors_1$b = es2018$3;
|
|
1336
991
|
function dropRight(iterable, count) {
|
|
1337
992
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1338
993
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1348,7 +1003,7 @@ dropRight$1.dropRight = dropRight;
|
|
|
1348
1003
|
var dropUntilAsync$1 = {};
|
|
1349
1004
|
|
|
1350
1005
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
1351
|
-
const types_1$i = es2018$
|
|
1006
|
+
const types_1$i = es2018$4;
|
|
1352
1007
|
function dropUntilAsync(iterable, predicate) {
|
|
1353
1008
|
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
1354
1009
|
return dropUntilAsyncIterable(iterable);
|
|
@@ -1430,9 +1085,9 @@ dropUntil$1.dropUntil = dropUntil;
|
|
|
1430
1085
|
var drop$1 = {};
|
|
1431
1086
|
|
|
1432
1087
|
drop$1.drop = void 0;
|
|
1433
|
-
const go_1$8 = es2018$
|
|
1088
|
+
const go_1$8 = es2018$1;
|
|
1434
1089
|
const utils_1 = utils;
|
|
1435
|
-
const errors_1$a = es2018$
|
|
1090
|
+
const errors_1$a = es2018$3;
|
|
1436
1091
|
function drop(iterable, count) {
|
|
1437
1092
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1438
1093
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1465,7 +1120,7 @@ drop$1.drop = drop;
|
|
|
1465
1120
|
var filterAsync$1 = {};
|
|
1466
1121
|
|
|
1467
1122
|
filterAsync$1.filterAsync = void 0;
|
|
1468
|
-
const types_1$h = es2018$
|
|
1123
|
+
const types_1$h = es2018$4;
|
|
1469
1124
|
function filterAsync(iterable, predicate) {
|
|
1470
1125
|
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
1471
1126
|
return filterAsyncIterable(iterable);
|
|
@@ -1512,7 +1167,7 @@ var flattenDeepAsync$1 = {};
|
|
|
1512
1167
|
var flattenByAsync$1 = {};
|
|
1513
1168
|
|
|
1514
1169
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
1515
|
-
const types_1$g = es2018$
|
|
1170
|
+
const types_1$g = es2018$4;
|
|
1516
1171
|
function flattenByAsync(iterable, predicate) {
|
|
1517
1172
|
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
1518
1173
|
return flattenByAsyncIterable(iterable);
|
|
@@ -1552,7 +1207,7 @@ function isFiniteIterable$1(val) {
|
|
|
1552
1207
|
|
|
1553
1208
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1554
1209
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1555
|
-
const errors_1$9 = es2018$
|
|
1210
|
+
const errors_1$9 = es2018$3;
|
|
1556
1211
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1557
1212
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1558
1213
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1570,7 +1225,7 @@ flattenAsync$1.flattenAsync = flattenAsync;
|
|
|
1570
1225
|
var flattenBy$1 = {};
|
|
1571
1226
|
|
|
1572
1227
|
flattenBy$1.flattenBy = void 0;
|
|
1573
|
-
const types_1$f = es2018$
|
|
1228
|
+
const types_1$f = es2018$4;
|
|
1574
1229
|
function flattenBy(iterable, predicate) {
|
|
1575
1230
|
return flatten(iterable, 1);
|
|
1576
1231
|
function* flatten(iterable, level) {
|
|
@@ -1593,7 +1248,7 @@ var flattenDeep$1 = {};
|
|
|
1593
1248
|
|
|
1594
1249
|
flattenDeep$1.flattenDeep = void 0;
|
|
1595
1250
|
const flatten_by_1 = flattenBy$1;
|
|
1596
|
-
const errors_1$8 = es2018$
|
|
1251
|
+
const errors_1$8 = es2018$3;
|
|
1597
1252
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1598
1253
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1599
1254
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1613,7 +1268,7 @@ flatten$1.flatten = flatten;
|
|
|
1613
1268
|
var mapAsync$1 = {};
|
|
1614
1269
|
|
|
1615
1270
|
mapAsync$1.mapAsync = void 0;
|
|
1616
|
-
const types_1$e = es2018$
|
|
1271
|
+
const types_1$e = es2018$4;
|
|
1617
1272
|
function mapAsync(iterable, fn) {
|
|
1618
1273
|
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1619
1274
|
return mapAsyncIterable(iterable);
|
|
@@ -1653,8 +1308,8 @@ map$1.map = map;
|
|
|
1653
1308
|
var repeatAsync$1 = {};
|
|
1654
1309
|
|
|
1655
1310
|
repeatAsync$1.repeatAsync = void 0;
|
|
1656
|
-
const go_1$7 = es2018$
|
|
1657
|
-
const errors_1$7 = es2018$
|
|
1311
|
+
const go_1$7 = es2018$1;
|
|
1312
|
+
const errors_1$7 = es2018$3;
|
|
1658
1313
|
function repeatAsync(iterable, times) {
|
|
1659
1314
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1660
1315
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1688,8 +1343,8 @@ function isProduction$1() {
|
|
|
1688
1343
|
var repeat$1 = {};
|
|
1689
1344
|
|
|
1690
1345
|
repeat$1.repeat = void 0;
|
|
1691
|
-
const go_1$6 = es2018$
|
|
1692
|
-
const errors_1$6 = es2018$
|
|
1346
|
+
const go_1$6 = es2018$1;
|
|
1347
|
+
const errors_1$6 = es2018$3;
|
|
1693
1348
|
function repeat(iterable, times) {
|
|
1694
1349
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1695
1350
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1723,8 +1378,8 @@ function isProduction() {
|
|
|
1723
1378
|
var sliceAsync$1 = {};
|
|
1724
1379
|
|
|
1725
1380
|
sliceAsync$1.sliceAsync = void 0;
|
|
1726
|
-
const go_1$5 = es2018$
|
|
1727
|
-
const errors_1$5 = es2018$
|
|
1381
|
+
const go_1$5 = es2018$1;
|
|
1382
|
+
const errors_1$5 = es2018$3;
|
|
1728
1383
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1729
1384
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1730
1385
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1746,8 +1401,8 @@ sliceAsync$1.sliceAsync = sliceAsync;
|
|
|
1746
1401
|
var slice$1 = {};
|
|
1747
1402
|
|
|
1748
1403
|
slice$1.slice = void 0;
|
|
1749
|
-
const go_1$4 = es2018$
|
|
1750
|
-
const errors_1$4 = es2018$
|
|
1404
|
+
const go_1$4 = es2018$1;
|
|
1405
|
+
const errors_1$4 = es2018$3;
|
|
1751
1406
|
function slice(iterable, start, end = Infinity) {
|
|
1752
1407
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1753
1408
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1787,7 +1442,7 @@ splitAsync$1.splitAsync = splitAsync;
|
|
|
1787
1442
|
var splitByAsync$1 = {};
|
|
1788
1443
|
|
|
1789
1444
|
splitByAsync$1.splitByAsync = void 0;
|
|
1790
|
-
const types_1$d = es2018$
|
|
1445
|
+
const types_1$d = es2018$4;
|
|
1791
1446
|
function splitByAsync(iterable, predicate) {
|
|
1792
1447
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1793
1448
|
return splitByAsyncIterable(iterable);
|
|
@@ -1869,8 +1524,8 @@ split$1.split = split;
|
|
|
1869
1524
|
var takeAsync$1 = {};
|
|
1870
1525
|
|
|
1871
1526
|
takeAsync$1.takeAsync = void 0;
|
|
1872
|
-
const go_1$3 = es2018$
|
|
1873
|
-
const errors_1$3 = es2018$
|
|
1527
|
+
const go_1$3 = es2018$1;
|
|
1528
|
+
const errors_1$3 = es2018$3;
|
|
1874
1529
|
function takeAsync(iterable, count) {
|
|
1875
1530
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1876
1531
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1890,8 +1545,8 @@ takeAsync$1.takeAsync = takeAsync;
|
|
|
1890
1545
|
var takeRightAsync$1 = {};
|
|
1891
1546
|
|
|
1892
1547
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1893
|
-
const go_1$2 = es2018$
|
|
1894
|
-
const errors_1$2 = es2018$
|
|
1548
|
+
const go_1$2 = es2018$1;
|
|
1549
|
+
const errors_1$2 = es2018$3;
|
|
1895
1550
|
function takeRightAsync(iterable, count) {
|
|
1896
1551
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1897
1552
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1920,8 +1575,8 @@ takeRightAsync$1.takeRightAsync = takeRightAsync;
|
|
|
1920
1575
|
var takeRight$1 = {};
|
|
1921
1576
|
|
|
1922
1577
|
takeRight$1.takeRight = void 0;
|
|
1923
|
-
const go_1$1 = es2018$
|
|
1924
|
-
const errors_1$1 = es2018$
|
|
1578
|
+
const go_1$1 = es2018$1;
|
|
1579
|
+
const errors_1$1 = es2018$3;
|
|
1925
1580
|
function takeRight(iterable, count) {
|
|
1926
1581
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1927
1582
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1950,7 +1605,7 @@ takeRight$1.takeRight = takeRight;
|
|
|
1950
1605
|
var takeUntilAsync$1 = {};
|
|
1951
1606
|
|
|
1952
1607
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1953
|
-
const types_1$c = es2018$
|
|
1608
|
+
const types_1$c = es2018$4;
|
|
1954
1609
|
function takeUntilAsync(iterable, predicate) {
|
|
1955
1610
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1956
1611
|
return takeUntilAsyncIterable(iterable);
|
|
@@ -1996,8 +1651,8 @@ takeUntil$1.takeUntil = takeUntil;
|
|
|
1996
1651
|
var take$1 = {};
|
|
1997
1652
|
|
|
1998
1653
|
take$1.take = void 0;
|
|
1999
|
-
const go_1 = es2018$
|
|
2000
|
-
const errors_1 = es2018$
|
|
1654
|
+
const go_1 = es2018$1;
|
|
1655
|
+
const errors_1 = es2018$3;
|
|
2001
1656
|
function take(iterable, count) {
|
|
2002
1657
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
2003
1658
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -2017,7 +1672,7 @@ take$1.take = take;
|
|
|
2017
1672
|
var tapAsync$1 = {};
|
|
2018
1673
|
|
|
2019
1674
|
tapAsync$1.tapAsync = void 0;
|
|
2020
|
-
const types_1$b = es2018$
|
|
1675
|
+
const types_1$b = es2018$4;
|
|
2021
1676
|
function tapAsync(iterable, fn) {
|
|
2022
1677
|
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
2023
1678
|
return tapAsyncIterable(iterable);
|
|
@@ -2100,7 +1755,7 @@ uniqAsync$1.uniqAsync = uniqAsync;
|
|
|
2100
1755
|
var uniqByAsync$1 = {};
|
|
2101
1756
|
|
|
2102
1757
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
2103
|
-
const types_1$a = es2018$
|
|
1758
|
+
const types_1$a = es2018$4;
|
|
2104
1759
|
function uniqByAsync(iterable, fn) {
|
|
2105
1760
|
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
2106
1761
|
return uniqByAsyncIterable(iterable);
|
|
@@ -2169,7 +1824,7 @@ uniq$1.uniq = uniq;
|
|
|
2169
1824
|
var zipAsync$1 = {};
|
|
2170
1825
|
|
|
2171
1826
|
zipAsync$1.zipAsync = void 0;
|
|
2172
|
-
const types_1$9 = es2018$
|
|
1827
|
+
const types_1$9 = es2018$4;
|
|
2173
1828
|
var Kind;
|
|
2174
1829
|
(function (Kind) {
|
|
2175
1830
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -2259,7 +1914,11 @@ function* zipWithSize(...iterables) {
|
|
|
2259
1914
|
(function (exports) {
|
|
2260
1915
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2261
1916
|
if (k2 === undefined) k2 = k;
|
|
2262
|
-
Object.
|
|
1917
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1918
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1919
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
1920
|
+
}
|
|
1921
|
+
Object.defineProperty(o, k2, desc);
|
|
2263
1922
|
}) : (function(o, m, k, k2) {
|
|
2264
1923
|
if (k2 === undefined) k2 = k;
|
|
2265
1924
|
o[k2] = m[k];
|
|
@@ -2329,7 +1988,7 @@ consume$1.consume = consume;
|
|
|
2329
1988
|
var eachAsync$1 = {};
|
|
2330
1989
|
|
|
2331
1990
|
eachAsync$1.eachAsync = void 0;
|
|
2332
|
-
const types_1$8 = es2018$
|
|
1991
|
+
const types_1$8 = es2018$4;
|
|
2333
1992
|
function eachAsync(iterable, fn) {
|
|
2334
1993
|
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
2335
1994
|
return eachAsyncIterable(iterable);
|
|
@@ -2369,7 +2028,7 @@ each$1.each = each;
|
|
|
2369
2028
|
var everyAsync$1 = {};
|
|
2370
2029
|
|
|
2371
2030
|
everyAsync$1.everyAsync = void 0;
|
|
2372
|
-
const types_1$7 = es2018$
|
|
2031
|
+
const types_1$7 = es2018$4;
|
|
2373
2032
|
function everyAsync(iterable, predicate) {
|
|
2374
2033
|
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
2375
2034
|
return everyAsyncIterable(iterable);
|
|
@@ -2415,7 +2074,7 @@ every$1.every = every;
|
|
|
2415
2074
|
var findAsync$1 = {};
|
|
2416
2075
|
|
|
2417
2076
|
findAsync$1.findAsync = void 0;
|
|
2418
|
-
const types_1$6 = es2018$
|
|
2077
|
+
const types_1$6 = es2018$4;
|
|
2419
2078
|
function findAsync(iterable, predicate) {
|
|
2420
2079
|
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
2421
2080
|
return findAsyncIterable(iterable);
|
|
@@ -2539,7 +2198,7 @@ match$1.match = match;
|
|
|
2539
2198
|
var reduceAsync$1 = {};
|
|
2540
2199
|
|
|
2541
2200
|
reduceAsync$1.reduceAsync = void 0;
|
|
2542
|
-
const types_1$5 = es2018$
|
|
2201
|
+
const types_1$5 = es2018$4;
|
|
2543
2202
|
function reduceAsync(iterable, fn, initialValue) {
|
|
2544
2203
|
if ((0, types_1$5.isUndefined)(initialValue)) {
|
|
2545
2204
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -2635,7 +2294,7 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
|
2635
2294
|
var reduce$1 = {};
|
|
2636
2295
|
|
|
2637
2296
|
reduce$1.reduce = void 0;
|
|
2638
|
-
const types_1$4 = es2018$
|
|
2297
|
+
const types_1$4 = es2018$4;
|
|
2639
2298
|
function reduce(iterable, fn, initialValue) {
|
|
2640
2299
|
if ((0, types_1$4.isUndefined)(initialValue)) {
|
|
2641
2300
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -2682,7 +2341,7 @@ function reduceWithoutInitialValue(iterable, fn) {
|
|
|
2682
2341
|
var someAsync$1 = {};
|
|
2683
2342
|
|
|
2684
2343
|
someAsync$1.someAsync = void 0;
|
|
2685
|
-
const types_1$3 = es2018$
|
|
2344
|
+
const types_1$3 = es2018$4;
|
|
2686
2345
|
function someAsync(iterable, predicate) {
|
|
2687
2346
|
if ((0, types_1$3.isAsyncIterable)(iterable)) {
|
|
2688
2347
|
return someAsyncIterable(iterable);
|
|
@@ -2820,7 +2479,11 @@ toSet$1.toSet = toSet;
|
|
|
2820
2479
|
(function (exports) {
|
|
2821
2480
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2822
2481
|
if (k2 === undefined) k2 = k;
|
|
2823
|
-
Object.
|
|
2482
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2483
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2484
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2485
|
+
}
|
|
2486
|
+
Object.defineProperty(o, k2, desc);
|
|
2824
2487
|
}) : (function(o, m, k, k2) {
|
|
2825
2488
|
if (k2 === undefined) k2 = k;
|
|
2826
2489
|
o[k2] = m[k];
|
|
@@ -2856,7 +2519,11 @@ __exportStar(toSet$1, exports);
|
|
|
2856
2519
|
(function (exports) {
|
|
2857
2520
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2858
2521
|
if (k2 === undefined) k2 = k;
|
|
2859
|
-
Object.
|
|
2522
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2523
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2524
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2525
|
+
}
|
|
2526
|
+
Object.defineProperty(o, k2, desc);
|
|
2860
2527
|
}) : (function(o, m, k, k2) {
|
|
2861
2528
|
if (k2 === undefined) k2 = k;
|
|
2862
2529
|
o[k2] = m[k];
|
|
@@ -2866,7 +2533,7 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
2866
2533
|
};__exportStar(middleware, exports);
|
|
2867
2534
|
__exportStar(output, exports);
|
|
2868
2535
|
|
|
2869
|
-
}(es2018$
|
|
2536
|
+
}(es2018$2));
|
|
2870
2537
|
|
|
2871
2538
|
var getErrorNames$1 = {};
|
|
2872
2539
|
|
|
@@ -2884,7 +2551,7 @@ function* traverseErrorPrototypeChain(err) {
|
|
|
2884
2551
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2885
2552
|
|
|
2886
2553
|
getErrorNames$1.getErrorNames = void 0;
|
|
2887
|
-
const types_1$2 = es2018$
|
|
2554
|
+
const types_1$2 = es2018$4;
|
|
2888
2555
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2889
2556
|
function* getErrorNames(err) {
|
|
2890
2557
|
var _a;
|
|
@@ -2905,7 +2572,7 @@ getErrorNames$1.getErrorNames = getErrorNames;
|
|
|
2905
2572
|
var serializableError = {};
|
|
2906
2573
|
|
|
2907
2574
|
serializableError.isSerializableError = void 0;
|
|
2908
|
-
const types_1$1 = es2018$
|
|
2575
|
+
const types_1$1 = es2018$4;
|
|
2909
2576
|
function isSerializableError(val) {
|
|
2910
2577
|
return (0, types_1$1.isObject)(val)
|
|
2911
2578
|
&& (0, types_1$1.isString)(val.name)
|
|
@@ -2915,10 +2582,10 @@ function isSerializableError(val) {
|
|
|
2915
2582
|
}
|
|
2916
2583
|
serializableError.isSerializableError = isSerializableError;
|
|
2917
2584
|
|
|
2918
|
-
customError
|
|
2919
|
-
const iterable_operator_1$1 = es2018$
|
|
2585
|
+
customError.CustomError = void 0;
|
|
2586
|
+
const iterable_operator_1$1 = es2018$2;
|
|
2920
2587
|
const get_error_names_1$1 = getErrorNames$1;
|
|
2921
|
-
const types_1 = es2018$
|
|
2588
|
+
const types_1 = es2018$4;
|
|
2922
2589
|
const serializable_error_1 = serializableError;
|
|
2923
2590
|
class CustomError extends Error {
|
|
2924
2591
|
get name() {
|
|
@@ -2940,12 +2607,12 @@ class CustomError extends Error {
|
|
|
2940
2607
|
}
|
|
2941
2608
|
}
|
|
2942
2609
|
}
|
|
2943
|
-
customError
|
|
2610
|
+
customError.CustomError = CustomError;
|
|
2944
2611
|
|
|
2945
2612
|
var assertionError = {};
|
|
2946
2613
|
|
|
2947
2614
|
assertionError.AssertionError = void 0;
|
|
2948
|
-
const custom_error_1 = customError
|
|
2615
|
+
const custom_error_1 = customError;
|
|
2949
2616
|
class AssertionError extends custom_error_1.CustomError {
|
|
2950
2617
|
}
|
|
2951
2618
|
assertionError.AssertionError = AssertionError;
|
|
@@ -2954,7 +2621,7 @@ var normalize$1 = {};
|
|
|
2954
2621
|
|
|
2955
2622
|
normalize$1.normalize = void 0;
|
|
2956
2623
|
const get_error_names_1 = getErrorNames$1;
|
|
2957
|
-
const iterable_operator_1 = es2018$
|
|
2624
|
+
const iterable_operator_1 = es2018$2;
|
|
2958
2625
|
function normalize(err) {
|
|
2959
2626
|
var _a;
|
|
2960
2627
|
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
@@ -3030,14 +2697,18 @@ assert$1.assert = assert;
|
|
|
3030
2697
|
(function (exports) {
|
|
3031
2698
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3032
2699
|
if (k2 === undefined) k2 = k;
|
|
3033
|
-
Object.
|
|
2700
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2701
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2702
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2703
|
+
}
|
|
2704
|
+
Object.defineProperty(o, k2, desc);
|
|
3034
2705
|
}) : (function(o, m, k, k2) {
|
|
3035
2706
|
if (k2 === undefined) k2 = k;
|
|
3036
2707
|
o[k2] = m[k];
|
|
3037
2708
|
}));
|
|
3038
2709
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3039
2710
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3040
|
-
};__exportStar(customError
|
|
2711
|
+
};__exportStar(customError, exports);
|
|
3041
2712
|
__exportStar(assertionError, exports);
|
|
3042
2713
|
__exportStar(serializableError, exports);
|
|
3043
2714
|
__exportStar(normalize$1, exports);
|
|
@@ -3046,12 +2717,12 @@ __exportStar(assert$1, exports);
|
|
|
3046
2717
|
__exportStar(getErrorNames$1, exports);
|
|
3047
2718
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
3048
2719
|
|
|
3049
|
-
}(es2018$
|
|
2720
|
+
}(es2018$3));
|
|
3050
2721
|
|
|
3051
2722
|
function csv(payload) {
|
|
3052
|
-
es2018$
|
|
2723
|
+
es2018$3.assert(payload.length > 0, 'payload must be a non-empty array');
|
|
3053
2724
|
return (options) => {
|
|
3054
|
-
const headers = new es2018$
|
|
2725
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3055
2726
|
headers.set('Content-Type', 'text/csv');
|
|
3056
2727
|
return {
|
|
3057
2728
|
...options,
|
|
@@ -3076,7 +2747,7 @@ function signal(signal) {
|
|
|
3076
2747
|
|
|
3077
2748
|
function header(name, value) {
|
|
3078
2749
|
return (options) => {
|
|
3079
|
-
const headers = new es2018$
|
|
2750
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3080
2751
|
headers.set(name, value);
|
|
3081
2752
|
return {
|
|
3082
2753
|
...options,
|
|
@@ -3087,7 +2758,7 @@ function header(name, value) {
|
|
|
3087
2758
|
|
|
3088
2759
|
function appendHeader(name, value) {
|
|
3089
2760
|
return (options) => {
|
|
3090
|
-
const headers = new es2018$
|
|
2761
|
+
const headers = new es2018$5.Headers(options.headers);
|
|
3091
2762
|
headers.append(name, value);
|
|
3092
2763
|
return {
|
|
3093
2764
|
...options,
|
|
@@ -3098,7 +2769,7 @@ function appendHeader(name, value) {
|
|
|
3098
2769
|
|
|
3099
2770
|
function headers(headers) {
|
|
3100
2771
|
return (options) => {
|
|
3101
|
-
const newHeaders = new es2018$
|
|
2772
|
+
const newHeaders = new es2018$5.Headers(options.headers);
|
|
3102
2773
|
for (const [name, value] of Object.entries(headers)) {
|
|
3103
2774
|
newHeaders.set(name, value);
|
|
3104
2775
|
}
|
|
@@ -3200,10 +2871,10 @@ function appendSearchParam(name, value) {
|
|
|
3200
2871
|
|
|
3201
2872
|
function formDataField(name, value) {
|
|
3202
2873
|
return (options) => {
|
|
3203
|
-
const formData = options.payload instanceof es2018$
|
|
2874
|
+
const formData = options.payload instanceof es2018$5.FormData
|
|
3204
2875
|
? cloneFormData(options.payload)
|
|
3205
|
-
: new es2018$
|
|
3206
|
-
if (es2018$
|
|
2876
|
+
: new es2018$5.FormData();
|
|
2877
|
+
if (es2018$4.isArray(value)) {
|
|
3207
2878
|
value.forEach(x => formData.append(name, x));
|
|
3208
2879
|
}
|
|
3209
2880
|
else {
|
|
@@ -3216,7 +2887,7 @@ function formDataField(name, value) {
|
|
|
3216
2887
|
};
|
|
3217
2888
|
}
|
|
3218
2889
|
function cloneFormData(formData) {
|
|
3219
|
-
const result = new es2018$
|
|
2890
|
+
const result = new es2018$5.FormData();
|
|
3220
2891
|
for (const [name, value] of formData.entries()) {
|
|
3221
2892
|
result.append(name, value);
|
|
3222
2893
|
}
|
|
@@ -3295,5 +2966,5 @@ function keepalive(val = true) {
|
|
|
3295
2966
|
};
|
|
3296
2967
|
}
|
|
3297
2968
|
|
|
3298
|
-
export { accept, appendHeader, appendSearchParam, basicAuth, bearerAuth, csv, del, formDataField, get, head, header, headers, host, json
|
|
2969
|
+
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 };
|
|
3299
2970
|
//# sourceMappingURL=index.mjs.map
|