@teselagen/ove 0.7.10 → 0.7.12
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/index.cjs.js +231 -260
- package/index.es.js +231 -260
- package/index.umd.js +231 -260
- package/package.json +4 -4
package/index.umd.js
CHANGED
|
@@ -24298,7 +24298,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24298
24298
|
var papaparse_min = { exports: {} };
|
|
24299
24299
|
/* @license
|
|
24300
24300
|
Papa Parse
|
|
24301
|
-
v5.
|
|
24301
|
+
v5.3.2
|
|
24302
24302
|
https://github.com/mholt/PapaParse
|
|
24303
24303
|
License: MIT
|
|
24304
24304
|
*/
|
|
@@ -24307,28 +24307,24 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24307
24307
|
module2.exports = t2();
|
|
24308
24308
|
}(commonjsGlobal, /* @__PURE__ */ __name(function s2() {
|
|
24309
24309
|
var f2 = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== f2 ? f2 : {};
|
|
24310
|
-
var n2 = !f2.document && !!f2.postMessage, o2 = f2.
|
|
24311
|
-
var
|
|
24312
|
-
|
|
24313
|
-
if (t2.dynamicTyping =
|
|
24314
|
-
var
|
|
24310
|
+
var n2 = !f2.document && !!f2.postMessage, o2 = n2 && /blob:/i.test((f2.location || {}).protocol), a2 = {}, h2 = 0, b3 = { parse: function(e2, t2) {
|
|
24311
|
+
var i3 = (t2 = t2 || {}).dynamicTyping || false;
|
|
24312
|
+
M2(i3) && (t2.dynamicTypingFunction = i3, i3 = {});
|
|
24313
|
+
if (t2.dynamicTyping = i3, t2.transform = !!M2(t2.transform) && t2.transform, t2.worker && b3.WORKERS_SUPPORTED) {
|
|
24314
|
+
var r2 = function() {
|
|
24315
24315
|
if (!b3.WORKERS_SUPPORTED)
|
|
24316
24316
|
return false;
|
|
24317
|
-
var e3 = (
|
|
24318
|
-
var
|
|
24319
|
-
return t3.onmessage = _2, t3.id =
|
|
24317
|
+
var e3 = (i4 = f2.URL || f2.webkitURL || null, r3 = s2.toString(), b3.BLOB_URL || (b3.BLOB_URL = i4.createObjectURL(new Blob(["(", r3, ")();"], { type: "text/javascript" })))), t3 = new f2.Worker(e3);
|
|
24318
|
+
var i4, r3;
|
|
24319
|
+
return t3.onmessage = _2, t3.id = h2++, a2[t3.id] = t3;
|
|
24320
24320
|
}();
|
|
24321
|
-
return
|
|
24321
|
+
return r2.userStep = t2.step, r2.userChunk = t2.chunk, r2.userComplete = t2.complete, r2.userError = t2.error, t2.step = M2(t2.step), t2.chunk = M2(t2.chunk), t2.complete = M2(t2.complete), t2.error = M2(t2.error), delete t2.worker, void r2.postMessage({ input: e2, config: t2, workerId: r2.id });
|
|
24322
24322
|
}
|
|
24323
24323
|
var n3 = null;
|
|
24324
|
-
b3.NODE_STREAM_INPUT, "string" == typeof e2 ? (e2 =
|
|
24325
|
-
if (65279 === e3.charCodeAt(0))
|
|
24326
|
-
return e3.slice(1);
|
|
24327
|
-
return e3;
|
|
24328
|
-
}(e2), n3 = t2.download ? new l2(t2) : new p2(t2)) : true === e2.readable && J2(e2.read) && J2(e2.on) ? n3 = new g2(t2) : (f2.File && e2 instanceof File || e2 instanceof Object) && (n3 = new c2(t2));
|
|
24324
|
+
b3.NODE_STREAM_INPUT, "string" == typeof e2 ? n3 = t2.download ? new l2(t2) : new p2(t2) : true === e2.readable && M2(e2.read) && M2(e2.on) ? n3 = new g2(t2) : (f2.File && e2 instanceof File || e2 instanceof Object) && (n3 = new c2(t2));
|
|
24329
24325
|
return n3.stream(e2);
|
|
24330
24326
|
}, unparse: function(e2, t2) {
|
|
24331
|
-
var n3 = false, _3 = true, m3 = ",", y3 = "\r\n", s3 = '"', a3 = s3 + s3,
|
|
24327
|
+
var n3 = false, _3 = true, m3 = ",", y3 = "\r\n", s3 = '"', a3 = s3 + s3, i3 = false, r2 = null, o3 = false;
|
|
24332
24328
|
!function() {
|
|
24333
24329
|
if ("object" != typeof t2)
|
|
24334
24330
|
return;
|
|
@@ -24336,149 +24332,149 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24336
24332
|
return -1 !== t2.delimiter.indexOf(e3);
|
|
24337
24333
|
}).length || (m3 = t2.delimiter);
|
|
24338
24334
|
("boolean" == typeof t2.quotes || "function" == typeof t2.quotes || Array.isArray(t2.quotes)) && (n3 = t2.quotes);
|
|
24339
|
-
"boolean" != typeof t2.skipEmptyLines && "string" != typeof t2.skipEmptyLines || (
|
|
24335
|
+
"boolean" != typeof t2.skipEmptyLines && "string" != typeof t2.skipEmptyLines || (i3 = t2.skipEmptyLines);
|
|
24340
24336
|
"string" == typeof t2.newline && (y3 = t2.newline);
|
|
24341
24337
|
"string" == typeof t2.quoteChar && (s3 = t2.quoteChar);
|
|
24342
24338
|
"boolean" == typeof t2.header && (_3 = t2.header);
|
|
24343
24339
|
if (Array.isArray(t2.columns)) {
|
|
24344
24340
|
if (0 === t2.columns.length)
|
|
24345
24341
|
throw new Error("Option columns is empty");
|
|
24346
|
-
|
|
24342
|
+
r2 = t2.columns;
|
|
24347
24343
|
}
|
|
24348
24344
|
void 0 !== t2.escapeChar && (a3 = t2.escapeChar + s3);
|
|
24349
24345
|
("boolean" == typeof t2.escapeFormulae || t2.escapeFormulae instanceof RegExp) && (o3 = t2.escapeFormulae instanceof RegExp ? t2.escapeFormulae : /^[=+\-@\t\r].*$/);
|
|
24350
24346
|
}();
|
|
24351
|
-
var
|
|
24347
|
+
var h3 = new RegExp(j2(s3), "g");
|
|
24352
24348
|
"string" == typeof e2 && (e2 = JSON.parse(e2));
|
|
24353
24349
|
if (Array.isArray(e2)) {
|
|
24354
24350
|
if (!e2.length || Array.isArray(e2[0]))
|
|
24355
|
-
return
|
|
24351
|
+
return u3(null, e2, i3);
|
|
24356
24352
|
if ("object" == typeof e2[0])
|
|
24357
|
-
return
|
|
24353
|
+
return u3(r2 || Object.keys(e2[0]), e2, i3);
|
|
24358
24354
|
} else if ("object" == typeof e2)
|
|
24359
|
-
return "string" == typeof e2.data && (e2.data = JSON.parse(e2.data)), Array.isArray(e2.data) && (e2.fields || (e2.fields = e2.meta && e2.meta.fields ||
|
|
24355
|
+
return "string" == typeof e2.data && (e2.data = JSON.parse(e2.data)), Array.isArray(e2.data) && (e2.fields || (e2.fields = e2.meta && e2.meta.fields || r2), e2.fields || (e2.fields = Array.isArray(e2.data[0]) ? e2.fields : "object" == typeof e2.data[0] ? Object.keys(e2.data[0]) : []), Array.isArray(e2.data[0]) || "object" == typeof e2.data[0] || (e2.data = [e2.data])), u3(e2.fields || [], e2.data || [], i3);
|
|
24360
24356
|
throw new Error("Unable to serialize unrecognized input");
|
|
24361
|
-
function
|
|
24362
|
-
var
|
|
24357
|
+
function u3(e3, t3, i4) {
|
|
24358
|
+
var r3 = "";
|
|
24363
24359
|
"string" == typeof e3 && (e3 = JSON.parse(e3)), "string" == typeof t3 && (t3 = JSON.parse(t3));
|
|
24364
24360
|
var n4 = Array.isArray(e3) && 0 < e3.length, s4 = !Array.isArray(t3[0]);
|
|
24365
24361
|
if (n4 && _3) {
|
|
24366
24362
|
for (var a4 = 0; a4 < e3.length; a4++)
|
|
24367
|
-
0 < a4 && (
|
|
24368
|
-
0 < t3.length && (
|
|
24363
|
+
0 < a4 && (r3 += m3), r3 += v3(e3[a4], a4);
|
|
24364
|
+
0 < t3.length && (r3 += y3);
|
|
24369
24365
|
}
|
|
24370
24366
|
for (var o4 = 0; o4 < t3.length; o4++) {
|
|
24371
|
-
var
|
|
24372
|
-
if (
|
|
24373
|
-
for (var d3 = [], l3 = 0; l3 <
|
|
24367
|
+
var h4 = n4 ? e3.length : t3[o4].length, u4 = false, f3 = n4 ? 0 === Object.keys(t3[o4]).length : 0 === t3[o4].length;
|
|
24368
|
+
if (i4 && !n4 && (u4 = "greedy" === i4 ? "" === t3[o4].join("").trim() : 1 === t3[o4].length && 0 === t3[o4][0].length), "greedy" === i4 && n4) {
|
|
24369
|
+
for (var d3 = [], l3 = 0; l3 < h4; l3++) {
|
|
24374
24370
|
var c3 = s4 ? e3[l3] : l3;
|
|
24375
24371
|
d3.push(t3[o4][c3]);
|
|
24376
24372
|
}
|
|
24377
|
-
|
|
24373
|
+
u4 = "" === d3.join("").trim();
|
|
24378
24374
|
}
|
|
24379
|
-
if (!
|
|
24380
|
-
for (var p3 = 0; p3 <
|
|
24381
|
-
0 < p3 && !f3 && (
|
|
24375
|
+
if (!u4) {
|
|
24376
|
+
for (var p3 = 0; p3 < h4; p3++) {
|
|
24377
|
+
0 < p3 && !f3 && (r3 += m3);
|
|
24382
24378
|
var g3 = n4 && s4 ? e3[p3] : p3;
|
|
24383
|
-
|
|
24379
|
+
r3 += v3(t3[o4][g3], p3);
|
|
24384
24380
|
}
|
|
24385
|
-
o4 < t3.length - 1 && (!
|
|
24381
|
+
o4 < t3.length - 1 && (!i4 || 0 < h4 && !f3) && (r3 += y3);
|
|
24386
24382
|
}
|
|
24387
24383
|
}
|
|
24388
|
-
return
|
|
24384
|
+
return r3;
|
|
24389
24385
|
}
|
|
24390
|
-
__name(
|
|
24386
|
+
__name(u3, "u");
|
|
24391
24387
|
function v3(e3, t3) {
|
|
24392
24388
|
if (null == e3)
|
|
24393
24389
|
return "";
|
|
24394
24390
|
if (e3.constructor === Date)
|
|
24395
24391
|
return JSON.stringify(e3).slice(1, 25);
|
|
24396
|
-
var
|
|
24397
|
-
o3 && "string" == typeof e3 && o3.test(e3) && (e3 = "'" + e3,
|
|
24398
|
-
var
|
|
24399
|
-
return (
|
|
24400
|
-
for (var
|
|
24401
|
-
if (-1 < e4.indexOf(t4[
|
|
24392
|
+
var i4 = false;
|
|
24393
|
+
o3 && "string" == typeof e3 && o3.test(e3) && (e3 = "'" + e3, i4 = true);
|
|
24394
|
+
var r3 = e3.toString().replace(h3, a3);
|
|
24395
|
+
return (i4 = i4 || true === n3 || "function" == typeof n3 && n3(e3, t3) || Array.isArray(n3) && n3[t3] || function(e4, t4) {
|
|
24396
|
+
for (var i5 = 0; i5 < t4.length; i5++)
|
|
24397
|
+
if (-1 < e4.indexOf(t4[i5]))
|
|
24402
24398
|
return true;
|
|
24403
24399
|
return false;
|
|
24404
|
-
}(
|
|
24400
|
+
}(r3, b3.BAD_DELIMITERS) || -1 < r3.indexOf(m3) || " " === r3.charAt(0) || " " === r3.charAt(r3.length - 1)) ? s3 + r3 + s3 : r3;
|
|
24405
24401
|
}
|
|
24406
24402
|
__name(v3, "v");
|
|
24407
24403
|
} };
|
|
24408
|
-
if (b3.RECORD_SEP = String.fromCharCode(30), b3.UNIT_SEP = String.fromCharCode(31), b3.BYTE_ORDER_MARK = "\uFEFF", b3.BAD_DELIMITERS = ["\r", "\n", '"', b3.BYTE_ORDER_MARK], b3.WORKERS_SUPPORTED = !n2 && !!f2.Worker, b3.NODE_STREAM_INPUT = 1, b3.LocalChunkSize = 10485760, b3.RemoteChunkSize = 5242880, b3.DefaultDelimiter = ",", b3.Parser = E2, b3.ParserHandle =
|
|
24404
|
+
if (b3.RECORD_SEP = String.fromCharCode(30), b3.UNIT_SEP = String.fromCharCode(31), b3.BYTE_ORDER_MARK = "\uFEFF", b3.BAD_DELIMITERS = ["\r", "\n", '"', b3.BYTE_ORDER_MARK], b3.WORKERS_SUPPORTED = !n2 && !!f2.Worker, b3.NODE_STREAM_INPUT = 1, b3.LocalChunkSize = 10485760, b3.RemoteChunkSize = 5242880, b3.DefaultDelimiter = ",", b3.Parser = E2, b3.ParserHandle = i2, b3.NetworkStreamer = l2, b3.FileStreamer = c2, b3.StringStreamer = p2, b3.ReadableStreamStreamer = g2, f2.jQuery) {
|
|
24409
24405
|
var d2 = f2.jQuery;
|
|
24410
24406
|
d2.fn.parse = function(o3) {
|
|
24411
|
-
var
|
|
24407
|
+
var i3 = o3.config || {}, h3 = [];
|
|
24412
24408
|
return this.each(function(e3) {
|
|
24413
24409
|
if (!("INPUT" === d2(this).prop("tagName").toUpperCase() && "file" === d2(this).attr("type").toLowerCase() && f2.FileReader) || !this.files || 0 === this.files.length)
|
|
24414
24410
|
return true;
|
|
24415
24411
|
for (var t2 = 0; t2 < this.files.length; t2++)
|
|
24416
|
-
|
|
24412
|
+
h3.push({ file: this.files[t2], inputElem: this, instanceConfig: d2.extend({}, i3) });
|
|
24417
24413
|
}), e2(), this;
|
|
24418
24414
|
function e2() {
|
|
24419
|
-
if (0 !==
|
|
24420
|
-
var e3, t2,
|
|
24421
|
-
if (
|
|
24415
|
+
if (0 !== h3.length) {
|
|
24416
|
+
var e3, t2, i4, r2, n3 = h3[0];
|
|
24417
|
+
if (M2(o3.before)) {
|
|
24422
24418
|
var s3 = o3.before(n3.file, n3.inputElem);
|
|
24423
24419
|
if ("object" == typeof s3) {
|
|
24424
24420
|
if ("abort" === s3.action)
|
|
24425
|
-
return e3 = "AbortError", t2 = n3.file,
|
|
24421
|
+
return e3 = "AbortError", t2 = n3.file, i4 = n3.inputElem, r2 = s3.reason, void (M2(o3.error) && o3.error({ name: e3 }, t2, i4, r2));
|
|
24426
24422
|
if ("skip" === s3.action)
|
|
24427
|
-
return void
|
|
24423
|
+
return void u3();
|
|
24428
24424
|
"object" == typeof s3.config && (n3.instanceConfig = d2.extend(n3.instanceConfig, s3.config));
|
|
24429
24425
|
} else if ("skip" === s3)
|
|
24430
|
-
return void
|
|
24426
|
+
return void u3();
|
|
24431
24427
|
}
|
|
24432
24428
|
var a3 = n3.instanceConfig.complete;
|
|
24433
24429
|
n3.instanceConfig.complete = function(e4) {
|
|
24434
|
-
|
|
24430
|
+
M2(a3) && a3(e4, n3.file, n3.inputElem), u3();
|
|
24435
24431
|
}, b3.parse(n3.file, n3.instanceConfig);
|
|
24436
24432
|
} else
|
|
24437
|
-
|
|
24433
|
+
M2(o3.complete) && o3.complete();
|
|
24438
24434
|
}
|
|
24439
24435
|
__name(e2, "e");
|
|
24440
|
-
function
|
|
24441
|
-
|
|
24436
|
+
function u3() {
|
|
24437
|
+
h3.splice(0, 1), e2();
|
|
24442
24438
|
}
|
|
24443
|
-
__name(
|
|
24439
|
+
__name(u3, "u");
|
|
24444
24440
|
};
|
|
24445
24441
|
}
|
|
24446
|
-
function
|
|
24442
|
+
function u2(e2) {
|
|
24447
24443
|
this._handle = null, this._finished = false, this._completed = false, this._halted = false, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = true, this._completeResults = { data: [], errors: [], meta: {} }, function(e3) {
|
|
24448
24444
|
var t2 = w2(e3);
|
|
24449
24445
|
t2.chunkSize = parseInt(t2.chunkSize), e3.step || e3.chunk || (t2.chunkSize = null);
|
|
24450
|
-
this._handle = new
|
|
24446
|
+
this._handle = new i2(t2), (this._handle.streamer = this)._config = t2;
|
|
24451
24447
|
}.call(this, e2), this.parseChunk = function(e3, t2) {
|
|
24452
|
-
if (this.isFirstChunk &&
|
|
24453
|
-
var
|
|
24454
|
-
void 0 !==
|
|
24448
|
+
if (this.isFirstChunk && M2(this._config.beforeFirstChunk)) {
|
|
24449
|
+
var i3 = this._config.beforeFirstChunk(e3);
|
|
24450
|
+
void 0 !== i3 && (e3 = i3);
|
|
24455
24451
|
}
|
|
24456
24452
|
this.isFirstChunk = false, this._halted = false;
|
|
24457
|
-
var
|
|
24453
|
+
var r2 = this._partialLine + e3;
|
|
24458
24454
|
this._partialLine = "";
|
|
24459
|
-
var n3 = this._handle.parse(
|
|
24455
|
+
var n3 = this._handle.parse(r2, this._baseIndex, !this._finished);
|
|
24460
24456
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
24461
24457
|
var s3 = n3.meta.cursor;
|
|
24462
|
-
this._finished || (this._partialLine =
|
|
24458
|
+
this._finished || (this._partialLine = r2.substring(s3 - this._baseIndex), this._baseIndex = s3), n3 && n3.data && (this._rowCount += n3.data.length);
|
|
24463
24459
|
var a3 = this._finished || this._config.preview && this._rowCount >= this._config.preview;
|
|
24464
24460
|
if (o2)
|
|
24465
24461
|
f2.postMessage({ results: n3, workerId: b3.WORKER_ID, finished: a3 });
|
|
24466
|
-
else if (
|
|
24462
|
+
else if (M2(this._config.chunk) && !t2) {
|
|
24467
24463
|
if (this._config.chunk(n3, this._handle), this._handle.paused() || this._handle.aborted())
|
|
24468
24464
|
return void (this._halted = true);
|
|
24469
24465
|
n3 = void 0, this._completeResults = void 0;
|
|
24470
24466
|
}
|
|
24471
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(n3.data), this._completeResults.errors = this._completeResults.errors.concat(n3.errors), this._completeResults.meta = n3.meta), this._completed || !a3 || !
|
|
24467
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(n3.data), this._completeResults.errors = this._completeResults.errors.concat(n3.errors), this._completeResults.meta = n3.meta), this._completed || !a3 || !M2(this._config.complete) || n3 && n3.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = true), a3 || n3 && n3.meta.paused || this._nextChunk(), n3;
|
|
24472
24468
|
}
|
|
24473
24469
|
this._halted = true;
|
|
24474
24470
|
}, this._sendError = function(e3) {
|
|
24475
|
-
|
|
24471
|
+
M2(this._config.error) ? this._config.error(e3) : o2 && this._config.error && f2.postMessage({ workerId: b3.WORKER_ID, error: e3, finished: false });
|
|
24476
24472
|
};
|
|
24477
24473
|
}
|
|
24478
|
-
__name(
|
|
24474
|
+
__name(u2, "u");
|
|
24479
24475
|
function l2(e2) {
|
|
24480
|
-
var
|
|
24481
|
-
(e2 = e2 || {}).chunkSize || (e2.chunkSize = b3.RemoteChunkSize),
|
|
24476
|
+
var r2;
|
|
24477
|
+
(e2 = e2 || {}).chunkSize || (e2.chunkSize = b3.RemoteChunkSize), u2.call(this, e2), this._nextChunk = n2 ? function() {
|
|
24482
24478
|
this._readChunk(), this._chunkLoaded();
|
|
24483
24479
|
} : function() {
|
|
24484
24480
|
this._readChunk();
|
|
@@ -24488,41 +24484,41 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24488
24484
|
if (this._finished)
|
|
24489
24485
|
this._chunkLoaded();
|
|
24490
24486
|
else {
|
|
24491
|
-
if (
|
|
24487
|
+
if (r2 = new XMLHttpRequest(), this._config.withCredentials && (r2.withCredentials = this._config.withCredentials), n2 || (r2.onload = v2(this._chunkLoaded, this), r2.onerror = v2(this._chunkError, this)), r2.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !n2), this._config.downloadRequestHeaders) {
|
|
24492
24488
|
var e3 = this._config.downloadRequestHeaders;
|
|
24493
24489
|
for (var t2 in e3)
|
|
24494
|
-
|
|
24490
|
+
r2.setRequestHeader(t2, e3[t2]);
|
|
24495
24491
|
}
|
|
24496
24492
|
if (this._config.chunkSize) {
|
|
24497
|
-
var
|
|
24498
|
-
|
|
24493
|
+
var i3 = this._start + this._config.chunkSize - 1;
|
|
24494
|
+
r2.setRequestHeader("Range", "bytes=" + this._start + "-" + i3);
|
|
24499
24495
|
}
|
|
24500
24496
|
try {
|
|
24501
|
-
|
|
24497
|
+
r2.send(this._config.downloadRequestBody);
|
|
24502
24498
|
} catch (e4) {
|
|
24503
24499
|
this._chunkError(e4.message);
|
|
24504
24500
|
}
|
|
24505
|
-
n2 && 0 ===
|
|
24501
|
+
n2 && 0 === r2.status && this._chunkError();
|
|
24506
24502
|
}
|
|
24507
24503
|
}, this._chunkLoaded = function() {
|
|
24508
|
-
4 ===
|
|
24504
|
+
4 === r2.readyState && (r2.status < 200 || 400 <= r2.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : r2.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(e3) {
|
|
24509
24505
|
var t2 = e3.getResponseHeader("Content-Range");
|
|
24510
24506
|
if (null === t2)
|
|
24511
24507
|
return -1;
|
|
24512
24508
|
return parseInt(t2.substring(t2.lastIndexOf("/") + 1));
|
|
24513
|
-
}(
|
|
24509
|
+
}(r2), this.parseChunk(r2.responseText)));
|
|
24514
24510
|
}, this._chunkError = function(e3) {
|
|
24515
|
-
var t2 =
|
|
24511
|
+
var t2 = r2.statusText || e3;
|
|
24516
24512
|
this._sendError(new Error(t2));
|
|
24517
24513
|
};
|
|
24518
24514
|
}
|
|
24519
24515
|
__name(l2, "l");
|
|
24520
24516
|
function c2(e2) {
|
|
24521
|
-
var
|
|
24522
|
-
(e2 = e2 || {}).chunkSize || (e2.chunkSize = b3.LocalChunkSize),
|
|
24517
|
+
var r2, n3;
|
|
24518
|
+
(e2 = e2 || {}).chunkSize || (e2.chunkSize = b3.LocalChunkSize), u2.call(this, e2);
|
|
24523
24519
|
var s3 = "undefined" != typeof FileReader;
|
|
24524
24520
|
this.stream = function(e3) {
|
|
24525
|
-
this._input = e3, n3 = e3.slice || e3.webkitSlice || e3.mozSlice, s3 ? ((
|
|
24521
|
+
this._input = e3, n3 = e3.slice || e3.webkitSlice || e3.mozSlice, s3 ? ((r2 = new FileReader()).onload = v2(this._chunkLoaded, this), r2.onerror = v2(this._chunkError, this)) : r2 = new FileReaderSync(), this._nextChunk();
|
|
24526
24522
|
}, this._nextChunk = function() {
|
|
24527
24523
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
24528
24524
|
}, this._readChunk = function() {
|
|
@@ -24531,58 +24527,58 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24531
24527
|
var t2 = Math.min(this._start + this._config.chunkSize, this._input.size);
|
|
24532
24528
|
e3 = n3.call(e3, this._start, t2);
|
|
24533
24529
|
}
|
|
24534
|
-
var
|
|
24535
|
-
s3 || this._chunkLoaded({ target: { result:
|
|
24530
|
+
var i3 = r2.readAsText(e3, this._config.encoding);
|
|
24531
|
+
s3 || this._chunkLoaded({ target: { result: i3 } });
|
|
24536
24532
|
}, this._chunkLoaded = function(e3) {
|
|
24537
24533
|
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(e3.target.result);
|
|
24538
24534
|
}, this._chunkError = function() {
|
|
24539
|
-
this._sendError(
|
|
24535
|
+
this._sendError(r2.error);
|
|
24540
24536
|
};
|
|
24541
24537
|
}
|
|
24542
24538
|
__name(c2, "c");
|
|
24543
24539
|
function p2(e2) {
|
|
24544
|
-
var
|
|
24545
|
-
|
|
24546
|
-
return
|
|
24540
|
+
var i3;
|
|
24541
|
+
u2.call(this, e2 = e2 || {}), this.stream = function(e3) {
|
|
24542
|
+
return i3 = e3, this._nextChunk();
|
|
24547
24543
|
}, this._nextChunk = function() {
|
|
24548
24544
|
if (!this._finished) {
|
|
24549
24545
|
var e3, t2 = this._config.chunkSize;
|
|
24550
|
-
return t2 ? (e3 =
|
|
24546
|
+
return t2 ? (e3 = i3.substring(0, t2), i3 = i3.substring(t2)) : (e3 = i3, i3 = ""), this._finished = !i3, this.parseChunk(e3);
|
|
24551
24547
|
}
|
|
24552
24548
|
};
|
|
24553
24549
|
}
|
|
24554
24550
|
__name(p2, "p");
|
|
24555
24551
|
function g2(e2) {
|
|
24556
|
-
|
|
24557
|
-
var t2 = [],
|
|
24552
|
+
u2.call(this, e2 = e2 || {});
|
|
24553
|
+
var t2 = [], i3 = true, r2 = false;
|
|
24558
24554
|
this.pause = function() {
|
|
24559
|
-
|
|
24555
|
+
u2.prototype.pause.apply(this, arguments), this._input.pause();
|
|
24560
24556
|
}, this.resume = function() {
|
|
24561
|
-
|
|
24557
|
+
u2.prototype.resume.apply(this, arguments), this._input.resume();
|
|
24562
24558
|
}, this.stream = function(e3) {
|
|
24563
24559
|
this._input = e3, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
24564
24560
|
}, this._checkIsFinished = function() {
|
|
24565
|
-
|
|
24561
|
+
r2 && 1 === t2.length && (this._finished = true);
|
|
24566
24562
|
}, this._nextChunk = function() {
|
|
24567
|
-
this._checkIsFinished(), t2.length ? this.parseChunk(t2.shift()) :
|
|
24563
|
+
this._checkIsFinished(), t2.length ? this.parseChunk(t2.shift()) : i3 = true;
|
|
24568
24564
|
}, this._streamData = v2(function(e3) {
|
|
24569
24565
|
try {
|
|
24570
|
-
t2.push("string" == typeof e3 ? e3 : e3.toString(this._config.encoding)),
|
|
24566
|
+
t2.push("string" == typeof e3 ? e3 : e3.toString(this._config.encoding)), i3 && (i3 = false, this._checkIsFinished(), this.parseChunk(t2.shift()));
|
|
24571
24567
|
} catch (e4) {
|
|
24572
24568
|
this._streamError(e4);
|
|
24573
24569
|
}
|
|
24574
24570
|
}, this), this._streamError = v2(function(e3) {
|
|
24575
24571
|
this._streamCleanUp(), this._sendError(e3);
|
|
24576
24572
|
}, this), this._streamEnd = v2(function() {
|
|
24577
|
-
this._streamCleanUp(),
|
|
24573
|
+
this._streamCleanUp(), r2 = true, this._streamData("");
|
|
24578
24574
|
}, this), this._streamCleanUp = v2(function() {
|
|
24579
24575
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
24580
24576
|
}, this);
|
|
24581
24577
|
}
|
|
24582
24578
|
__name(g2, "g");
|
|
24583
|
-
function
|
|
24584
|
-
var a3, o3,
|
|
24585
|
-
if (
|
|
24579
|
+
function i2(m3) {
|
|
24580
|
+
var a3, o3, h3, r2 = Math.pow(2, 53), n3 = -r2, s3 = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, u3 = /^(\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))$/, t2 = this, i3 = 0, f3 = 0, d3 = false, e2 = false, l3 = [], c3 = { data: [], errors: [], meta: {} };
|
|
24581
|
+
if (M2(m3.step)) {
|
|
24586
24582
|
var p3 = m3.step;
|
|
24587
24583
|
m3.step = function(e3) {
|
|
24588
24584
|
if (c3 = e3, _3())
|
|
@@ -24590,7 +24586,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24590
24586
|
else {
|
|
24591
24587
|
if (g3(), 0 === c3.data.length)
|
|
24592
24588
|
return;
|
|
24593
|
-
|
|
24589
|
+
i3 += e3.data.length, m3.preview && i3 > m3.preview ? o3.abort() : (c3.data = c3.data[0], p3(c3, t2));
|
|
24594
24590
|
}
|
|
24595
24591
|
};
|
|
24596
24592
|
}
|
|
@@ -24599,13 +24595,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24599
24595
|
}
|
|
24600
24596
|
__name(y3, "y");
|
|
24601
24597
|
function g3() {
|
|
24602
|
-
return c3 &&
|
|
24598
|
+
return c3 && h3 && (k2("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + b3.DefaultDelimiter + "'"), h3 = false), m3.skipEmptyLines && (c3.data = c3.data.filter(function(e3) {
|
|
24603
24599
|
return !y3(e3);
|
|
24604
24600
|
})), _3() && function() {
|
|
24605
24601
|
if (!c3)
|
|
24606
24602
|
return;
|
|
24607
24603
|
function e3(e4, t4) {
|
|
24608
|
-
|
|
24604
|
+
M2(m3.transformHeader) && (e4 = m3.transformHeader(e4, t4)), l3.push(e4);
|
|
24609
24605
|
}
|
|
24610
24606
|
__name(e3, "e");
|
|
24611
24607
|
if (Array.isArray(c3.data[0])) {
|
|
@@ -24618,12 +24614,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24618
24614
|
if (!c3 || !m3.header && !m3.dynamicTyping && !m3.transform)
|
|
24619
24615
|
return c3;
|
|
24620
24616
|
function e3(e4, t4) {
|
|
24621
|
-
var
|
|
24622
|
-
for (
|
|
24623
|
-
var n4 =
|
|
24624
|
-
m3.header && (n4 =
|
|
24617
|
+
var i4, r3 = m3.header ? {} : [];
|
|
24618
|
+
for (i4 = 0; i4 < e4.length; i4++) {
|
|
24619
|
+
var n4 = i4, s4 = e4[i4];
|
|
24620
|
+
m3.header && (n4 = i4 >= l3.length ? "__parsed_extra" : l3[i4]), m3.transform && (s4 = m3.transform(s4, n4)), s4 = v3(n4, s4), "__parsed_extra" === n4 ? (r3[n4] = r3[n4] || [], r3[n4].push(s4)) : r3[n4] = s4;
|
|
24625
24621
|
}
|
|
24626
|
-
return m3.header && (
|
|
24622
|
+
return m3.header && (i4 > l3.length ? k2("FieldMismatch", "TooManyFields", "Too many fields: expected " + l3.length + " fields but parsed " + i4, f3 + t4) : i4 < l3.length && k2("FieldMismatch", "TooFewFields", "Too few fields: expected " + l3.length + " fields but parsed " + i4, f3 + t4)), r3;
|
|
24627
24623
|
}
|
|
24628
24624
|
__name(e3, "e");
|
|
24629
24625
|
var t3 = 1;
|
|
@@ -24638,219 +24634,204 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24638
24634
|
}
|
|
24639
24635
|
__name(_3, "_");
|
|
24640
24636
|
function v3(e3, t3) {
|
|
24641
|
-
return
|
|
24637
|
+
return i4 = e3, m3.dynamicTypingFunction && void 0 === m3.dynamicTyping[i4] && (m3.dynamicTyping[i4] = m3.dynamicTypingFunction(i4)), true === (m3.dynamicTyping[i4] || m3.dynamicTyping) ? "true" === t3 || "TRUE" === t3 || "false" !== t3 && "FALSE" !== t3 && (function(e4) {
|
|
24642
24638
|
if (s3.test(e4)) {
|
|
24643
24639
|
var t4 = parseFloat(e4);
|
|
24644
|
-
if (n3 < t4 && t4 <
|
|
24640
|
+
if (n3 < t4 && t4 < r2)
|
|
24645
24641
|
return true;
|
|
24646
24642
|
}
|
|
24647
24643
|
return false;
|
|
24648
|
-
}(t3) ? parseFloat(t3) :
|
|
24649
|
-
var
|
|
24644
|
+
}(t3) ? parseFloat(t3) : u3.test(t3) ? new Date(t3) : "" === t3 ? null : t3) : t3;
|
|
24645
|
+
var i4;
|
|
24650
24646
|
}
|
|
24651
24647
|
__name(v3, "v");
|
|
24652
|
-
function k2(e3, t3,
|
|
24653
|
-
var n4 = { type: e3, code: t3, message:
|
|
24654
|
-
void 0 !==
|
|
24648
|
+
function k2(e3, t3, i4, r3) {
|
|
24649
|
+
var n4 = { type: e3, code: t3, message: i4 };
|
|
24650
|
+
void 0 !== r3 && (n4.row = r3), c3.errors.push(n4);
|
|
24655
24651
|
}
|
|
24656
24652
|
__name(k2, "k");
|
|
24657
|
-
this.parse = function(e3, t3,
|
|
24658
|
-
var
|
|
24653
|
+
this.parse = function(e3, t3, i4) {
|
|
24654
|
+
var r3 = m3.quoteChar || '"';
|
|
24659
24655
|
if (m3.newline || (m3.newline = function(e4, t4) {
|
|
24660
24656
|
e4 = e4.substring(0, 1048576);
|
|
24661
|
-
var
|
|
24662
|
-
if (1 ===
|
|
24657
|
+
var i5 = new RegExp(j2(t4) + "([^]*?)" + j2(t4), "gm"), r4 = (e4 = e4.replace(i5, "")).split("\r"), n5 = e4.split("\n"), s5 = 1 < n5.length && n5[0].length < r4[0].length;
|
|
24658
|
+
if (1 === r4.length || s5)
|
|
24663
24659
|
return "\n";
|
|
24664
|
-
for (var a4 = 0, o4 = 0; o4 <
|
|
24665
|
-
"\n" ===
|
|
24666
|
-
return a4 >=
|
|
24667
|
-
}(e3,
|
|
24668
|
-
|
|
24660
|
+
for (var a4 = 0, o4 = 0; o4 < r4.length; o4++)
|
|
24661
|
+
"\n" === r4[o4][0] && a4++;
|
|
24662
|
+
return a4 >= r4.length / 2 ? "\r\n" : "\r";
|
|
24663
|
+
}(e3, r3)), h3 = false, m3.delimiter)
|
|
24664
|
+
M2(m3.delimiter) && (m3.delimiter = m3.delimiter(e3), c3.meta.delimiter = m3.delimiter);
|
|
24669
24665
|
else {
|
|
24670
|
-
var n4 = function(e4, t4,
|
|
24671
|
-
var s5, a4, o4,
|
|
24666
|
+
var n4 = function(e4, t4, i5, r4, n5) {
|
|
24667
|
+
var s5, a4, o4, h4;
|
|
24672
24668
|
n5 = n5 || [",", " ", "|", ";", b3.RECORD_SEP, b3.UNIT_SEP];
|
|
24673
|
-
for (var
|
|
24674
|
-
var f4 = n5[
|
|
24669
|
+
for (var u4 = 0; u4 < n5.length; u4++) {
|
|
24670
|
+
var f4 = n5[u4], d4 = 0, l4 = 0, c4 = 0;
|
|
24675
24671
|
o4 = void 0;
|
|
24676
|
-
for (var p4 = new E2({ comments:
|
|
24677
|
-
if (
|
|
24672
|
+
for (var p4 = new E2({ comments: r4, delimiter: f4, newline: t4, preview: 10 }).parse(e4), g4 = 0; g4 < p4.data.length; g4++)
|
|
24673
|
+
if (i5 && y3(p4.data[g4]))
|
|
24678
24674
|
c4++;
|
|
24679
24675
|
else {
|
|
24680
24676
|
var _4 = p4.data[g4].length;
|
|
24681
24677
|
l4 += _4, void 0 !== o4 ? 0 < _4 && (d4 += Math.abs(_4 - o4), o4 = _4) : o4 = _4;
|
|
24682
24678
|
}
|
|
24683
|
-
0 < p4.data.length && (l4 /= p4.data.length - c4), (void 0 === a4 || d4 <= a4) && (void 0 ===
|
|
24679
|
+
0 < p4.data.length && (l4 /= p4.data.length - c4), (void 0 === a4 || d4 <= a4) && (void 0 === h4 || h4 < l4) && 1.99 < l4 && (a4 = d4, s5 = f4, h4 = l4);
|
|
24684
24680
|
}
|
|
24685
24681
|
return { successful: !!(m3.delimiter = s5), bestDelimiter: s5 };
|
|
24686
24682
|
}(e3, m3.newline, m3.skipEmptyLines, m3.comments, m3.delimitersToGuess);
|
|
24687
|
-
n4.successful ? m3.delimiter = n4.bestDelimiter : (
|
|
24683
|
+
n4.successful ? m3.delimiter = n4.bestDelimiter : (h3 = true, m3.delimiter = b3.DefaultDelimiter), c3.meta.delimiter = m3.delimiter;
|
|
24688
24684
|
}
|
|
24689
24685
|
var s4 = w2(m3);
|
|
24690
|
-
return m3.preview && m3.header && s4.preview++, a3 = e3, o3 = new E2(s4), c3 = o3.parse(a3, t3,
|
|
24686
|
+
return m3.preview && m3.header && s4.preview++, a3 = e3, o3 = new E2(s4), c3 = o3.parse(a3, t3, i4), g3(), d3 ? { meta: { paused: true } } : c3 || { meta: { paused: false } };
|
|
24691
24687
|
}, this.paused = function() {
|
|
24692
24688
|
return d3;
|
|
24693
24689
|
}, this.pause = function() {
|
|
24694
|
-
d3 = true, o3.abort(), a3 =
|
|
24690
|
+
d3 = true, o3.abort(), a3 = M2(m3.chunk) ? "" : a3.substring(o3.getCharIndex());
|
|
24695
24691
|
}, this.resume = function() {
|
|
24696
24692
|
t2.streamer._halted ? (d3 = false, t2.streamer.parseChunk(a3, true)) : setTimeout(t2.resume, 3);
|
|
24697
24693
|
}, this.aborted = function() {
|
|
24698
24694
|
return e2;
|
|
24699
24695
|
}, this.abort = function() {
|
|
24700
|
-
e2 = true, o3.abort(), c3.meta.aborted = true,
|
|
24696
|
+
e2 = true, o3.abort(), c3.meta.aborted = true, M2(m3.complete) && m3.complete(c3), a3 = "";
|
|
24701
24697
|
};
|
|
24702
24698
|
}
|
|
24703
|
-
__name(
|
|
24704
|
-
function
|
|
24699
|
+
__name(i2, "i");
|
|
24700
|
+
function j2(e2) {
|
|
24705
24701
|
return e2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
24706
24702
|
}
|
|
24707
|
-
__name(
|
|
24708
|
-
function E2(
|
|
24709
|
-
var
|
|
24710
|
-
if (void 0 !==
|
|
24703
|
+
__name(j2, "j");
|
|
24704
|
+
function E2(e2) {
|
|
24705
|
+
var S2, O2 = (e2 = e2 || {}).delimiter, x2 = e2.newline, I2 = e2.comments, T2 = e2.step, D2 = e2.preview, A2 = e2.fastMode, L2 = S2 = void 0 === e2.quoteChar || null === e2.quoteChar ? '"' : e2.quoteChar;
|
|
24706
|
+
if (void 0 !== e2.escapeChar && (L2 = e2.escapeChar), ("string" != typeof O2 || -1 < b3.BAD_DELIMITERS.indexOf(O2)) && (O2 = ","), I2 === O2)
|
|
24711
24707
|
throw new Error("Comment character same as delimiter");
|
|
24712
|
-
true ===
|
|
24713
|
-
var
|
|
24714
|
-
this.parse = function(
|
|
24715
|
-
if ("string" != typeof
|
|
24708
|
+
true === I2 ? I2 = "#" : ("string" != typeof I2 || -1 < b3.BAD_DELIMITERS.indexOf(I2)) && (I2 = false), "\n" !== x2 && "\r" !== x2 && "\r\n" !== x2 && (x2 = "\n");
|
|
24709
|
+
var F2 = 0, z2 = false;
|
|
24710
|
+
this.parse = function(r2, t2, i3) {
|
|
24711
|
+
if ("string" != typeof r2)
|
|
24716
24712
|
throw new Error("Input must be a string");
|
|
24717
|
-
var n3 =
|
|
24718
|
-
if (!
|
|
24719
|
-
return
|
|
24720
|
-
if (
|
|
24721
|
-
var l3 =
|
|
24722
|
-
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
24726
|
-
|
|
24727
|
-
y3 = y3 + "_" + v3;
|
|
24728
|
-
c3.push(y3);
|
|
24729
|
-
}
|
|
24730
|
-
if (g3) {
|
|
24731
|
-
var k2 = i2.split(P2);
|
|
24732
|
-
k2[0] = c3.join(M2), i2 = k2.join(P2);
|
|
24733
|
-
}
|
|
24734
|
-
}
|
|
24735
|
-
if (B3 || false !== B3 && -1 === i2.indexOf(z2)) {
|
|
24736
|
-
for (var b5 = i2.split(P2), E3 = 0; E3 < b5.length; E3++) {
|
|
24737
|
-
if (f3 = b5[E3], W2 += f3.length, E3 !== b5.length - 1)
|
|
24738
|
-
W2 += P2.length;
|
|
24739
|
-
else if (r3)
|
|
24740
|
-
return L2();
|
|
24741
|
-
if (!U2 || f3.substring(0, a3) !== U2) {
|
|
24713
|
+
var n3 = r2.length, e3 = O2.length, s3 = x2.length, a3 = I2.length, o3 = M2(T2), h3 = [], u3 = [], f3 = [], d3 = F2 = 0;
|
|
24714
|
+
if (!r2)
|
|
24715
|
+
return C2();
|
|
24716
|
+
if (A2 || false !== A2 && -1 === r2.indexOf(S2)) {
|
|
24717
|
+
for (var l3 = r2.split(x2), c3 = 0; c3 < l3.length; c3++) {
|
|
24718
|
+
if (f3 = l3[c3], F2 += f3.length, c3 !== l3.length - 1)
|
|
24719
|
+
F2 += x2.length;
|
|
24720
|
+
else if (i3)
|
|
24721
|
+
return C2();
|
|
24722
|
+
if (!I2 || f3.substring(0, a3) !== I2) {
|
|
24742
24723
|
if (o3) {
|
|
24743
|
-
if (
|
|
24744
|
-
return
|
|
24724
|
+
if (h3 = [], k2(f3.split(O2)), R2(), z2)
|
|
24725
|
+
return C2();
|
|
24745
24726
|
} else
|
|
24746
|
-
|
|
24747
|
-
if (
|
|
24748
|
-
return
|
|
24727
|
+
k2(f3.split(O2));
|
|
24728
|
+
if (D2 && D2 <= c3)
|
|
24729
|
+
return h3 = h3.slice(0, D2), C2(true);
|
|
24749
24730
|
}
|
|
24750
24731
|
}
|
|
24751
|
-
return
|
|
24732
|
+
return C2();
|
|
24752
24733
|
}
|
|
24753
|
-
for (var
|
|
24754
|
-
if (
|
|
24755
|
-
if (
|
|
24756
|
-
if (-1 ===
|
|
24757
|
-
return
|
|
24758
|
-
|
|
24759
|
-
} else if (-1 !==
|
|
24760
|
-
f3.push(
|
|
24734
|
+
for (var p3 = r2.indexOf(O2, F2), g3 = r2.indexOf(x2, F2), _3 = new RegExp(j2(L2) + j2(S2), "g"), m3 = r2.indexOf(S2, F2); ; )
|
|
24735
|
+
if (r2[F2] !== S2)
|
|
24736
|
+
if (I2 && 0 === f3.length && r2.substring(F2, F2 + a3) === I2) {
|
|
24737
|
+
if (-1 === g3)
|
|
24738
|
+
return C2();
|
|
24739
|
+
F2 = g3 + s3, g3 = r2.indexOf(x2, F2), p3 = r2.indexOf(O2, F2);
|
|
24740
|
+
} else if (-1 !== p3 && (p3 < g3 || -1 === g3))
|
|
24741
|
+
f3.push(r2.substring(F2, p3)), F2 = p3 + e3, p3 = r2.indexOf(O2, F2);
|
|
24761
24742
|
else {
|
|
24762
|
-
if (-1 ===
|
|
24743
|
+
if (-1 === g3)
|
|
24763
24744
|
break;
|
|
24764
|
-
if (f3.push(
|
|
24765
|
-
return
|
|
24766
|
-
if (
|
|
24767
|
-
return
|
|
24745
|
+
if (f3.push(r2.substring(F2, g3)), w3(g3 + s3), o3 && (R2(), z2))
|
|
24746
|
+
return C2();
|
|
24747
|
+
if (D2 && h3.length >= D2)
|
|
24748
|
+
return C2(true);
|
|
24768
24749
|
}
|
|
24769
24750
|
else
|
|
24770
|
-
for (
|
|
24771
|
-
if (-1 === (
|
|
24772
|
-
return
|
|
24773
|
-
if (
|
|
24774
|
-
return
|
|
24775
|
-
if (
|
|
24776
|
-
if (
|
|
24777
|
-
-1 !==
|
|
24778
|
-
var
|
|
24779
|
-
if (
|
|
24780
|
-
f3.push(
|
|
24751
|
+
for (m3 = F2, F2++; ; ) {
|
|
24752
|
+
if (-1 === (m3 = r2.indexOf(S2, m3 + 1)))
|
|
24753
|
+
return i3 || u3.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: h3.length, index: F2 }), E3();
|
|
24754
|
+
if (m3 === n3 - 1)
|
|
24755
|
+
return E3(r2.substring(F2, m3).replace(_3, S2));
|
|
24756
|
+
if (S2 !== L2 || r2[m3 + 1] !== L2) {
|
|
24757
|
+
if (S2 === L2 || 0 === m3 || r2[m3 - 1] !== L2) {
|
|
24758
|
+
-1 !== p3 && p3 < m3 + 1 && (p3 = r2.indexOf(O2, m3 + 1)), -1 !== g3 && g3 < m3 + 1 && (g3 = r2.indexOf(x2, m3 + 1));
|
|
24759
|
+
var y3 = b5(-1 === g3 ? p3 : Math.min(p3, g3));
|
|
24760
|
+
if (r2.substr(m3 + 1 + y3, e3) === O2) {
|
|
24761
|
+
f3.push(r2.substring(F2, m3).replace(_3, S2)), r2[F2 = m3 + 1 + y3 + e3] !== S2 && (m3 = r2.indexOf(S2, F2)), p3 = r2.indexOf(O2, F2), g3 = r2.indexOf(x2, F2);
|
|
24781
24762
|
break;
|
|
24782
24763
|
}
|
|
24783
|
-
var
|
|
24784
|
-
if (
|
|
24785
|
-
if (f3.push(
|
|
24786
|
-
return
|
|
24787
|
-
if (
|
|
24788
|
-
return
|
|
24764
|
+
var v3 = b5(g3);
|
|
24765
|
+
if (r2.substring(m3 + 1 + v3, m3 + 1 + v3 + s3) === x2) {
|
|
24766
|
+
if (f3.push(r2.substring(F2, m3).replace(_3, S2)), w3(m3 + 1 + v3 + s3), p3 = r2.indexOf(O2, F2), m3 = r2.indexOf(S2, F2), o3 && (R2(), z2))
|
|
24767
|
+
return C2();
|
|
24768
|
+
if (D2 && h3.length >= D2)
|
|
24769
|
+
return C2(true);
|
|
24789
24770
|
break;
|
|
24790
24771
|
}
|
|
24791
|
-
|
|
24772
|
+
u3.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: h3.length, index: F2 }), m3++;
|
|
24792
24773
|
}
|
|
24793
24774
|
} else
|
|
24794
|
-
|
|
24775
|
+
m3++;
|
|
24795
24776
|
}
|
|
24796
|
-
return
|
|
24797
|
-
function
|
|
24798
|
-
|
|
24777
|
+
return E3();
|
|
24778
|
+
function k2(e4) {
|
|
24779
|
+
h3.push(e4), d3 = F2;
|
|
24799
24780
|
}
|
|
24800
|
-
__name(
|
|
24801
|
-
function
|
|
24781
|
+
__name(k2, "k");
|
|
24782
|
+
function b5(e4) {
|
|
24802
24783
|
var t3 = 0;
|
|
24803
|
-
if (-1 !==
|
|
24804
|
-
var
|
|
24805
|
-
|
|
24784
|
+
if (-1 !== e4) {
|
|
24785
|
+
var i4 = r2.substring(m3 + 1, e4);
|
|
24786
|
+
i4 && "" === i4.trim() && (t3 = i4.length);
|
|
24806
24787
|
}
|
|
24807
24788
|
return t3;
|
|
24808
24789
|
}
|
|
24809
|
-
__name(
|
|
24810
|
-
function
|
|
24811
|
-
return
|
|
24790
|
+
__name(b5, "b");
|
|
24791
|
+
function E3(e4) {
|
|
24792
|
+
return i3 || (void 0 === e4 && (e4 = r2.substring(F2)), f3.push(e4), F2 = n3, k2(f3), o3 && R2()), C2();
|
|
24812
24793
|
}
|
|
24813
|
-
__name(
|
|
24814
|
-
function
|
|
24815
|
-
|
|
24794
|
+
__name(E3, "E");
|
|
24795
|
+
function w3(e4) {
|
|
24796
|
+
F2 = e4, k2(f3), f3 = [], g3 = r2.indexOf(x2, F2);
|
|
24816
24797
|
}
|
|
24817
|
-
__name(
|
|
24818
|
-
function
|
|
24819
|
-
return { data:
|
|
24798
|
+
__name(w3, "w");
|
|
24799
|
+
function C2(e4) {
|
|
24800
|
+
return { data: h3, errors: u3, meta: { delimiter: O2, linebreak: x2, aborted: z2, truncated: !!e4, cursor: d3 + (t2 || 0) } };
|
|
24820
24801
|
}
|
|
24821
|
-
__name(
|
|
24822
|
-
function
|
|
24823
|
-
|
|
24802
|
+
__name(C2, "C");
|
|
24803
|
+
function R2() {
|
|
24804
|
+
T2(C2()), h3 = [], u3 = [];
|
|
24824
24805
|
}
|
|
24825
|
-
__name(
|
|
24806
|
+
__name(R2, "R");
|
|
24826
24807
|
}, this.abort = function() {
|
|
24827
|
-
|
|
24808
|
+
z2 = true;
|
|
24828
24809
|
}, this.getCharIndex = function() {
|
|
24829
|
-
return
|
|
24810
|
+
return F2;
|
|
24830
24811
|
};
|
|
24831
24812
|
}
|
|
24832
24813
|
__name(E2, "E");
|
|
24833
24814
|
function _2(e2) {
|
|
24834
|
-
var t2 = e2.data,
|
|
24815
|
+
var t2 = e2.data, i3 = a2[t2.workerId], r2 = false;
|
|
24835
24816
|
if (t2.error)
|
|
24836
|
-
|
|
24817
|
+
i3.userError(t2.error, t2.file);
|
|
24837
24818
|
else if (t2.results && t2.results.data) {
|
|
24838
24819
|
var n3 = { abort: function() {
|
|
24839
|
-
|
|
24820
|
+
r2 = true, m2(t2.workerId, { data: [], errors: [], meta: { aborted: true } });
|
|
24840
24821
|
}, pause: y2, resume: y2 };
|
|
24841
|
-
if (
|
|
24842
|
-
for (var s3 = 0; s3 < t2.results.data.length && (
|
|
24822
|
+
if (M2(i3.userStep)) {
|
|
24823
|
+
for (var s3 = 0; s3 < t2.results.data.length && (i3.userStep({ data: t2.results.data[s3], errors: t2.results.errors, meta: t2.results.meta }, n3), !r2); s3++)
|
|
24843
24824
|
;
|
|
24844
24825
|
delete t2.results;
|
|
24845
24826
|
} else
|
|
24846
|
-
|
|
24827
|
+
M2(i3.userChunk) && (i3.userChunk(t2.results, n3, t2.file), delete t2.results);
|
|
24847
24828
|
}
|
|
24848
|
-
t2.finished && !
|
|
24829
|
+
t2.finished && !r2 && m2(t2.workerId, t2.results);
|
|
24849
24830
|
}
|
|
24850
24831
|
__name(_2, "_");
|
|
24851
24832
|
function m2(e2, t2) {
|
|
24852
|
-
var
|
|
24853
|
-
|
|
24833
|
+
var i3 = a2[e2];
|
|
24834
|
+
M2(i3.userComplete) && i3.userComplete(t2), i3.terminate(), delete a2[e2];
|
|
24854
24835
|
}
|
|
24855
24836
|
__name(m2, "m");
|
|
24856
24837
|
function y2() {
|
|
@@ -24861,8 +24842,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24861
24842
|
if ("object" != typeof e2 || null === e2)
|
|
24862
24843
|
return e2;
|
|
24863
24844
|
var t2 = Array.isArray(e2) ? [] : {};
|
|
24864
|
-
for (var
|
|
24865
|
-
t2[
|
|
24845
|
+
for (var i3 in e2)
|
|
24846
|
+
t2[i3] = w2(e2[i3]);
|
|
24866
24847
|
return t2;
|
|
24867
24848
|
}
|
|
24868
24849
|
__name(w2, "w");
|
|
@@ -24872,20 +24853,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24872
24853
|
};
|
|
24873
24854
|
}
|
|
24874
24855
|
__name(v2, "v");
|
|
24875
|
-
function
|
|
24856
|
+
function M2(e2) {
|
|
24876
24857
|
return "function" == typeof e2;
|
|
24877
24858
|
}
|
|
24878
|
-
__name(
|
|
24859
|
+
__name(M2, "M");
|
|
24879
24860
|
return o2 && (f2.onmessage = function(e2) {
|
|
24880
24861
|
var t2 = e2.data;
|
|
24881
24862
|
void 0 === b3.WORKER_ID && t2 && (b3.WORKER_ID = t2.workerId);
|
|
24882
24863
|
if ("string" == typeof t2.input)
|
|
24883
24864
|
f2.postMessage({ workerId: b3.WORKER_ID, results: b3.parse(t2.input, t2.config), finished: true });
|
|
24884
24865
|
else if (f2.File && t2.input instanceof File || t2.input instanceof Object) {
|
|
24885
|
-
var
|
|
24886
|
-
|
|
24866
|
+
var i3 = b3.parse(t2.input, t2.config);
|
|
24867
|
+
i3 && f2.postMessage({ workerId: b3.WORKER_ID, results: i3, finished: true });
|
|
24887
24868
|
}
|
|
24888
|
-
}), (l2.prototype = Object.create(
|
|
24869
|
+
}), (l2.prototype = Object.create(u2.prototype)).constructor = l2, (c2.prototype = Object.create(u2.prototype)).constructor = c2, (p2.prototype = Object.create(p2.prototype)).constructor = p2, (g2.prototype = Object.create(u2.prototype)).constructor = g2, b3;
|
|
24889
24870
|
}, "s"));
|
|
24890
24871
|
})(papaparse_min);
|
|
24891
24872
|
var papaparse_minExports = papaparse_min.exports;
|
|
@@ -96058,16 +96039,6 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
96058
96039
|
return transHeader;
|
|
96059
96040
|
};
|
|
96060
96041
|
}
|
|
96061
|
-
const transformToAlwaysRun = /* @__PURE__ */ __name((header) => header.trim(), "transformToAlwaysRun");
|
|
96062
|
-
if (parserOptions.transformHeader) {
|
|
96063
|
-
const existingTransformHeader = parserOptions.transformHeader;
|
|
96064
|
-
papaParseOpts.transformHeader = (header) => {
|
|
96065
|
-
const trimmedHeader = transformToAlwaysRun(header);
|
|
96066
|
-
return existingTransformHeader(trimmedHeader);
|
|
96067
|
-
};
|
|
96068
|
-
} else {
|
|
96069
|
-
papaParseOpts.transformHeader = transformToAlwaysRun;
|
|
96070
|
-
}
|
|
96071
96042
|
return papaParseOpts;
|
|
96072
96043
|
}, "setupCsvParserOptions");
|
|
96073
96044
|
const parseCsvFile = /* @__PURE__ */ __name((csvFile, parserOptions = {}) => {
|
|
@@ -151003,7 +150974,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
151003
150974
|
}
|
|
151004
150975
|
__name(showFileDialog, "showFileDialog");
|
|
151005
150976
|
const name = "@teselagen/ove";
|
|
151006
|
-
const version = "0.7.
|
|
150977
|
+
const version = "0.7.11";
|
|
151007
150978
|
const main = "./src/index.js";
|
|
151008
150979
|
const type = "module";
|
|
151009
150980
|
const exports$1 = {
|