@dpuse/dpuse-shared 1.0.169 → 1.0.171
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/README.md +9 -9
- package/dist/dpuse-shared.es.js +783 -705
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/dataView/index.d.ts +20 -9
- package/dist/types/src/component/module/connector/index.d.ts +16 -4
- package/dist/types/src/component/module/connector/objectParsing.d.ts +5 -5
- package/package.json +3 -3
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -349,11 +349,11 @@ function ee(e) {
|
|
|
349
349
|
return t;
|
|
350
350
|
}
|
|
351
351
|
/* @__NO_SIDE_EFFECTS__ */
|
|
352
|
-
function
|
|
352
|
+
function te(e, t) {
|
|
353
353
|
return d({
|
|
354
354
|
kind: "schema",
|
|
355
355
|
type: "union",
|
|
356
|
-
reference:
|
|
356
|
+
reference: te,
|
|
357
357
|
expects: /* @__PURE__ */ u(e.map((e) => e.expects), "|"),
|
|
358
358
|
async: !1,
|
|
359
359
|
options: e,
|
|
@@ -381,7 +381,7 @@ function w(e, t) {
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
/* @__NO_SIDE_EFFECTS__ */
|
|
384
|
-
function
|
|
384
|
+
function ne(...e) {
|
|
385
385
|
return d({
|
|
386
386
|
...e[0],
|
|
387
387
|
pipe: e,
|
|
@@ -399,10 +399,10 @@ function te(...e) {
|
|
|
399
399
|
}
|
|
400
400
|
//#endregion
|
|
401
401
|
//#region src/locale/locale.schema.ts
|
|
402
|
-
var
|
|
402
|
+
var w = /* @__PURE__ */ S({
|
|
403
403
|
en: /* @__PURE__ */ C(),
|
|
404
404
|
es: /* @__PURE__ */ C()
|
|
405
|
-
}),
|
|
405
|
+
}), re = {
|
|
406
406
|
id: /* @__PURE__ */ C(),
|
|
407
407
|
label: /* @__PURE__ */ S({
|
|
408
408
|
en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
|
|
@@ -414,7 +414,7 @@ var T = /* @__PURE__ */ S({
|
|
|
414
414
|
}),
|
|
415
415
|
icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
416
416
|
iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C())
|
|
417
|
-
},
|
|
417
|
+
}, T = (e) => /* @__PURE__ */ te(e.map((e) => /* @__PURE__ */ _(e))), ie = T([
|
|
418
418
|
"app",
|
|
419
419
|
"connector",
|
|
420
420
|
"connectorConnection",
|
|
@@ -436,32 +436,32 @@ var T = /* @__PURE__ */ S({
|
|
|
436
436
|
"presenter",
|
|
437
437
|
"presenterPresentation",
|
|
438
438
|
"tool"
|
|
439
|
-
]),
|
|
439
|
+
]), ae = T([
|
|
440
440
|
"danger",
|
|
441
441
|
"success",
|
|
442
442
|
"warning"
|
|
443
|
-
]),
|
|
443
|
+
]), oe = T([
|
|
444
444
|
"alpha",
|
|
445
445
|
"beta",
|
|
446
446
|
"releaseCandidate",
|
|
447
447
|
"generalAvailability"
|
|
448
|
-
]),
|
|
449
|
-
color:
|
|
448
|
+
]), se = /* @__PURE__ */ S({
|
|
449
|
+
color: ae,
|
|
450
450
|
label: /* @__PURE__ */ C()
|
|
451
|
-
}),
|
|
452
|
-
...
|
|
453
|
-
typeId:
|
|
454
|
-
},
|
|
455
|
-
...
|
|
451
|
+
}), E = {
|
|
452
|
+
...re,
|
|
453
|
+
typeId: ie
|
|
454
|
+
}, ce = /* @__PURE__ */ S({
|
|
455
|
+
...E,
|
|
456
456
|
order: /* @__PURE__ */ y(),
|
|
457
457
|
path: /* @__PURE__ */ C()
|
|
458
|
-
}),
|
|
459
|
-
...
|
|
458
|
+
}), le = {
|
|
459
|
+
...E,
|
|
460
460
|
firstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
461
461
|
lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
462
|
-
status: /* @__PURE__ */ v(
|
|
463
|
-
statusId: /* @__PURE__ */ v(
|
|
464
|
-
},
|
|
462
|
+
status: /* @__PURE__ */ v(se),
|
|
463
|
+
statusId: /* @__PURE__ */ v(oe)
|
|
464
|
+
}, ue = /* @__PURE__ */ S({ ...le }), de = [
|
|
465
465
|
{
|
|
466
466
|
id: "alpha",
|
|
467
467
|
color: "danger",
|
|
@@ -495,8 +495,8 @@ var T = /* @__PURE__ */ S({
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
];
|
|
498
|
-
function
|
|
499
|
-
let n =
|
|
498
|
+
function fe(e, t = "en") {
|
|
499
|
+
let n = de.find((t) => t.id === e);
|
|
500
500
|
if (n) {
|
|
501
501
|
let e = n.labels[t] ?? n.labels.en ?? n.id;
|
|
502
502
|
return {
|
|
@@ -511,7 +511,7 @@ function ue(e, t = "en") {
|
|
|
511
511
|
}
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/component/dataView/dataFormatIcons.ts
|
|
514
|
-
var
|
|
514
|
+
var pe = {
|
|
515
515
|
arrow: {
|
|
516
516
|
icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1350 1181.25\"><polygon fill=\"#000\" points=\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\"/><polygon fill=\"#000\" points=\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\"/><polygon fill=\"#000\" points=\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\"/></svg>",
|
|
517
517
|
iconDark: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1350 1181.25\"><polygon fill=\"#fff\" points=\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\"/><polygon fill=\"#fff\" points=\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\"/><polygon fill=\"#fff\" points=\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\"/></svg>"
|
|
@@ -564,7 +564,7 @@ var de = {
|
|
|
564
564
|
//#endregion
|
|
565
565
|
//#region src/component/dataView/index.ts
|
|
566
566
|
n({ en: "Arrow" }), n({ en: "Avro" }), n({ en: "Delimited text (CSV, TSV…)" }), n({ en: "JSON" }), n({ en: "JSON Lines (JSONL)" }), n({ en: "Markdown (MD)" }), n({ en: "OpenDocument spreadsheet (ODS)" }), n({ en: "Parquet" }), n({ en: "SPSS (SAV)" }), n({ en: "SQLite" }), n({ en: "Excel (XLSX, XLSM)" }), n({ en: "XML" });
|
|
567
|
-
var
|
|
567
|
+
var me = [
|
|
568
568
|
",",
|
|
569
569
|
";",
|
|
570
570
|
" ",
|
|
@@ -576,7 +576,7 @@ var k = [
|
|
|
576
576
|
"0x1F",
|
|
577
577
|
"0x1E"
|
|
578
578
|
];
|
|
579
|
-
n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/Newline" }), n({ en: "Colon" }), n({ en: "Comma" }), n({ en: "Exclamation Mark" }), n({ en: "Record Separator" }), n({ en: "Semicolon" }), n({ en: "Space" }), n({ en: "Tab" }), n({ en: "Underscore" }), n({ en: "Unit Separator" }), n({ en: "Vertical Bar" }),
|
|
579
|
+
n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/Newline" }), n({ en: "Colon" }), n({ en: "Comma" }), n({ en: "Exclamation Mark" }), n({ en: "Record Separator" }), n({ en: "Semicolon" }), n({ en: "Space" }), n({ en: "Tab" }), n({ en: "Underscore" }), n({ en: "Unit Separator" }), n({ en: "Vertical Bar" }), T([
|
|
580
580
|
"app",
|
|
581
581
|
"engine",
|
|
582
582
|
"connector",
|
|
@@ -586,17 +586,17 @@ n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/New
|
|
|
586
586
|
]);
|
|
587
587
|
//#endregion
|
|
588
588
|
//#region src/component/module/moduleConfig.schema.ts
|
|
589
|
-
var
|
|
590
|
-
...
|
|
589
|
+
var D = {
|
|
590
|
+
...le,
|
|
591
591
|
vendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
592
592
|
vendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
593
593
|
vendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
594
594
|
version: /* @__PURE__ */ C()
|
|
595
595
|
};
|
|
596
|
-
({ ...
|
|
596
|
+
({ ...D });
|
|
597
597
|
//#endregion
|
|
598
598
|
//#region src/component/module/connector/connectorConfig.schema.ts
|
|
599
|
-
var
|
|
599
|
+
var he = T([
|
|
600
600
|
"abortOperation",
|
|
601
601
|
"auditObjectContent",
|
|
602
602
|
"closeStore",
|
|
@@ -616,22 +616,22 @@ var fe = E([
|
|
|
616
616
|
"retrieveChunks",
|
|
617
617
|
"retrieveRecords",
|
|
618
618
|
"upsertRecords"
|
|
619
|
-
]),
|
|
619
|
+
]), ge = T([
|
|
620
620
|
"application",
|
|
621
621
|
"curatedDataset",
|
|
622
622
|
"database",
|
|
623
623
|
"fileStore"
|
|
624
|
-
]),
|
|
624
|
+
]), _e = /* @__PURE__ */ S({ label: w }), ve = T([
|
|
625
625
|
"apiEndpoint",
|
|
626
626
|
"file",
|
|
627
627
|
"table"
|
|
628
|
-
]),
|
|
628
|
+
]), ye = T([
|
|
629
629
|
"bidirectional",
|
|
630
630
|
"destination",
|
|
631
631
|
"source",
|
|
632
632
|
"unknown"
|
|
633
|
-
]),
|
|
634
|
-
authMethodId:
|
|
633
|
+
]), be = /* @__PURE__ */ S({ label: w }), xe = /* @__PURE__ */ S({
|
|
634
|
+
authMethodId: T([
|
|
635
635
|
"apiKey",
|
|
636
636
|
"disabled",
|
|
637
637
|
"oAuth2",
|
|
@@ -640,619 +640,32 @@ var fe = E([
|
|
|
640
640
|
activeConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),
|
|
641
641
|
canDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),
|
|
642
642
|
id: /* @__PURE__ */ b(/* @__PURE__ */ C()),
|
|
643
|
-
label: /* @__PURE__ */ b(
|
|
643
|
+
label: /* @__PURE__ */ b(w),
|
|
644
644
|
maxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
645
645
|
params: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
|
|
646
|
-
}),
|
|
647
|
-
...
|
|
646
|
+
}), Se = /* @__PURE__ */ S({
|
|
647
|
+
...D,
|
|
648
648
|
typeId: /* @__PURE__ */ _("connector"),
|
|
649
|
-
actionNames: /* @__PURE__ */ h(
|
|
650
|
-
category: /* @__PURE__ */ v(
|
|
651
|
-
categoryId:
|
|
652
|
-
implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(),
|
|
653
|
-
itemTypeId:
|
|
654
|
-
usage: /* @__PURE__ */ v(
|
|
655
|
-
usageId: /* @__PURE__ */ v(
|
|
656
|
-
}),
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
], P = class extends Error {
|
|
663
|
-
data;
|
|
664
|
-
locator;
|
|
665
|
-
constructor(e, t, n, r) {
|
|
666
|
-
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
667
|
-
}
|
|
668
|
-
}, F = class extends P {
|
|
669
|
-
constructor(e, t, n, r) {
|
|
670
|
-
super(e, t, n, r), this.name = "AppError";
|
|
671
|
-
}
|
|
672
|
-
}, I = class extends P {
|
|
673
|
-
constructor(e, t, n, r) {
|
|
674
|
-
super(e, t, n, r), this.name = "APIError";
|
|
675
|
-
}
|
|
676
|
-
}, L = class extends P {
|
|
677
|
-
constructor(e, t, n, r) {
|
|
678
|
-
super(e, t, n, r), this.name = "EngineError";
|
|
679
|
-
}
|
|
680
|
-
}, R = class extends P {
|
|
681
|
-
constructor(e, t, n, r) {
|
|
682
|
-
super(e, t, n, r), this.name = "ConnectorError";
|
|
683
|
-
}
|
|
684
|
-
}, z = class extends P {
|
|
685
|
-
constructor(e, t, n, r) {
|
|
686
|
-
super(e, t, n, r), this.name = "FetchError";
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
|
-
async function Se(e, t, n) {
|
|
690
|
-
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
691
|
-
try {
|
|
692
|
-
a = await e.text();
|
|
693
|
-
} catch (e) {
|
|
694
|
-
a = `<body unavailable: ${B(e).message}>`;
|
|
695
|
-
}
|
|
696
|
-
return new z(i, n, { body: Ae(a) });
|
|
697
|
-
}
|
|
698
|
-
function Ce(e) {
|
|
699
|
-
return e.map((e) => e.message).join(" ");
|
|
700
|
-
}
|
|
701
|
-
function we(e) {
|
|
702
|
-
try {
|
|
703
|
-
e();
|
|
704
|
-
} catch {}
|
|
705
|
-
}
|
|
706
|
-
function B(e) {
|
|
707
|
-
if (e instanceof Error) return e;
|
|
708
|
-
if (typeof e == "string") return Error(e);
|
|
709
|
-
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
710
|
-
if (typeof e == "symbol") return Error(e.description ?? "Unknown error");
|
|
711
|
-
if (typeof e == "object") try {
|
|
712
|
-
return Error(JSON.stringify(e));
|
|
713
|
-
} catch {
|
|
714
|
-
return /* @__PURE__ */ Error("Unknown error");
|
|
715
|
-
}
|
|
716
|
-
return /* @__PURE__ */ Error("Unknown error");
|
|
717
|
-
}
|
|
718
|
-
function Te(e) {
|
|
719
|
-
let t = /* @__PURE__ */ new Set(), n = [], r = B(e);
|
|
720
|
-
for (; r != null && !t.has(r);) {
|
|
721
|
-
t.add(r);
|
|
722
|
-
let [e, i] = je(r), a = ke(e);
|
|
723
|
-
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
724
|
-
}
|
|
725
|
-
return n;
|
|
726
|
-
}
|
|
727
|
-
function Ee(e) {
|
|
728
|
-
let t;
|
|
729
|
-
for (let n of e.toReversed()) {
|
|
730
|
-
let e = Oe(n, t);
|
|
731
|
-
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
732
|
-
}
|
|
733
|
-
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
734
|
-
}
|
|
735
|
-
function De(e) {
|
|
736
|
-
let t;
|
|
737
|
-
try {
|
|
738
|
-
t = JSON.stringify(e);
|
|
739
|
-
} catch {
|
|
740
|
-
t = typeof e == "symbol" ? e.description ?? "Unknown error" : typeof e == "bigint" ? e.toString() : "Unknown error";
|
|
741
|
-
}
|
|
742
|
-
return t === "" && (t = "Unknown error"), t;
|
|
743
|
-
}
|
|
744
|
-
function Oe(e, t) {
|
|
745
|
-
switch (e.name) {
|
|
746
|
-
case "APIError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
747
|
-
case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
|
|
748
|
-
case "ConnectorError": return new R(e.message, e.locator, e.data, { cause: t });
|
|
749
|
-
case "EngineError": return new L(e.message, e.locator, e.data, { cause: t });
|
|
750
|
-
case "FetchError": return new z(e.message, e.locator, e.data, { cause: t });
|
|
751
|
-
default: {
|
|
752
|
-
let n = e.name;
|
|
753
|
-
return new class extends Error {
|
|
754
|
-
name = n;
|
|
755
|
-
}(e.message, { cause: t });
|
|
649
|
+
actionNames: /* @__PURE__ */ h(he),
|
|
650
|
+
category: /* @__PURE__ */ v(_e),
|
|
651
|
+
categoryId: ge,
|
|
652
|
+
implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), xe),
|
|
653
|
+
itemTypeId: ve,
|
|
654
|
+
usage: /* @__PURE__ */ v(be),
|
|
655
|
+
usageId: /* @__PURE__ */ v(ye)
|
|
656
|
+
}), Ce = {
|
|
657
|
+
arabic: {
|
|
658
|
+
id: "arabic",
|
|
659
|
+
label: {
|
|
660
|
+
en: "Arabic",
|
|
661
|
+
es: "Árabe"
|
|
756
662
|
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
data: t === void 0 ? void 0 : H(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
764
|
-
message: V(n),
|
|
765
|
-
stack: r === void 0 ? void 0 : V(r)
|
|
766
|
-
};
|
|
767
|
-
}
|
|
768
|
-
function V(e) {
|
|
769
|
-
let t = e;
|
|
770
|
-
for (let [e, n] of xe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
771
|
-
return t;
|
|
772
|
-
}
|
|
773
|
-
function H(e, t, n) {
|
|
774
|
-
return typeof e == "string" ? V(e) : typeof e != "object" || !e ? e : n >= be ? M : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => H(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && N.test(e) ? M : H(r, t, n + 1)])));
|
|
775
|
-
}
|
|
776
|
-
function Ae(e) {
|
|
777
|
-
if (e != null && e !== "") return e.length > j ? `${e.slice(0, j)}... [truncated]` : e;
|
|
778
|
-
}
|
|
779
|
-
function je(e) {
|
|
780
|
-
let t = e.cause == null ? null : B(e.cause);
|
|
781
|
-
if (e instanceof P) return [{
|
|
782
|
-
data: e.data,
|
|
783
|
-
locator: e.locator,
|
|
784
|
-
message: e.message,
|
|
785
|
-
name: e.name,
|
|
786
|
-
stack: e.stack
|
|
787
|
-
}, t];
|
|
788
|
-
let n = Object.fromEntries(Object.entries(e).filter(([e]) => e !== "cause"));
|
|
789
|
-
return e.name ? [{
|
|
790
|
-
data: n,
|
|
791
|
-
locator: "",
|
|
792
|
-
message: e.message,
|
|
793
|
-
name: e.name,
|
|
794
|
-
stack: e.stack
|
|
795
|
-
}, t] : [{
|
|
796
|
-
data: n,
|
|
797
|
-
locator: "",
|
|
798
|
-
message: De(e),
|
|
799
|
-
name: "Error",
|
|
800
|
-
stack: void 0
|
|
801
|
-
}, null];
|
|
802
|
-
}
|
|
803
|
-
var Me = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(E([
|
|
804
|
-
"arrow",
|
|
805
|
-
"avro",
|
|
806
|
-
"dtv",
|
|
807
|
-
"json",
|
|
808
|
-
"jsonl",
|
|
809
|
-
"markdown",
|
|
810
|
-
"ods",
|
|
811
|
-
"parquet",
|
|
812
|
-
"sav",
|
|
813
|
-
"sqlite",
|
|
814
|
-
"xlsx",
|
|
815
|
-
"xml"
|
|
816
|
-
])), /* @__PURE__ */ f(1)) }), Ne = /* @__PURE__ */ h(/* @__PURE__ */ C()), Pe = /* @__PURE__ */ S({
|
|
817
|
-
...A,
|
|
818
|
-
typeId: /* @__PURE__ */ _("tool"),
|
|
819
|
-
actionNames: /* @__PURE__ */ b(Ne),
|
|
820
|
-
parser: /* @__PURE__ */ b(Me)
|
|
821
|
-
});
|
|
822
|
-
//#endregion
|
|
823
|
-
//#region src/component/module/tool/delimitedText.ts
|
|
824
|
-
async function Fe(e, t, n) {
|
|
825
|
-
let r = Ie(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Le(e, t.valueDelimiterIds, t.isComplete, n);
|
|
826
|
-
return {
|
|
827
|
-
issues: i,
|
|
828
|
-
parsedRecords: a,
|
|
829
|
-
recordDelimiterId: r,
|
|
830
|
-
valueDelimiterId: o
|
|
831
|
-
};
|
|
832
|
-
}
|
|
833
|
-
function Ie(e) {
|
|
834
|
-
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
835
|
-
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
836
|
-
}
|
|
837
|
-
async function Le(e, t, n, r) {
|
|
838
|
-
let i, a, o, s = [], c, l = !1;
|
|
839
|
-
for (let u of t) {
|
|
840
|
-
let { issues: t, records: d } = await r(e, u, n);
|
|
841
|
-
if (t.length > 0) {
|
|
842
|
-
c = Re(c, {
|
|
843
|
-
delimiter: u,
|
|
844
|
-
issues: t,
|
|
845
|
-
records: d
|
|
846
|
-
});
|
|
847
|
-
continue;
|
|
848
|
-
}
|
|
849
|
-
if (l = !0, d.length === 0) continue;
|
|
850
|
-
let { averageValueCount: f, sumOfValueCountDiffs: p } = ze(d);
|
|
851
|
-
(!o || p <= o) && (!a || f > a) && (i = u, a = f, o = p, s = d);
|
|
852
|
-
}
|
|
853
|
-
if (!l && c != null) {
|
|
854
|
-
let { delimiter: e, issues: t, records: n } = c;
|
|
855
|
-
return {
|
|
856
|
-
issues: t,
|
|
857
|
-
parsedRecords: n,
|
|
858
|
-
valueDelimiterId: U(n) ? e : void 0
|
|
859
|
-
};
|
|
860
|
-
}
|
|
861
|
-
return {
|
|
862
|
-
issues: [],
|
|
863
|
-
parsedRecords: s,
|
|
864
|
-
valueDelimiterId: i != null && U(s) ? i : void 0
|
|
865
|
-
};
|
|
866
|
-
}
|
|
867
|
-
function Re(e, t) {
|
|
868
|
-
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
869
|
-
}
|
|
870
|
-
function ze(e) {
|
|
871
|
-
let t = 0, n = 0, r;
|
|
872
|
-
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
873
|
-
return {
|
|
874
|
-
averageValueCount: t / e.length,
|
|
875
|
-
sumOfValueCountDiffs: n
|
|
876
|
-
};
|
|
877
|
-
}
|
|
878
|
-
function U(e) {
|
|
879
|
-
let t = /* @__PURE__ */ new Map();
|
|
880
|
-
for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
|
|
881
|
-
let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
|
|
882
|
-
return n > 1 && r * 2 > e.length;
|
|
883
|
-
}
|
|
884
|
-
//#endregion
|
|
885
|
-
//#region src/component/module/tool/index.ts
|
|
886
|
-
var Be = "https://engine-eu.dpuse.app/tools", Ve = { dtv: "dpuse-tool-rust-csv-core-parser" }, W = "dpuse-tool-";
|
|
887
|
-
function G(e, t) {
|
|
888
|
-
return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
|
|
889
|
-
}
|
|
890
|
-
function K(e, t, n) {
|
|
891
|
-
let r = G(e, t), [i] = r;
|
|
892
|
-
if (i === void 0) {
|
|
893
|
-
let n = {
|
|
894
|
-
availableToolIds: e.map((e) => e.id),
|
|
895
|
-
dataFormatId: t
|
|
896
|
-
};
|
|
897
|
-
throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
898
|
-
}
|
|
899
|
-
let a = Ve[t];
|
|
900
|
-
return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
|
|
901
|
-
}
|
|
902
|
-
async function He(e, t) {
|
|
903
|
-
let n = `${W}${t}`, r = e.find((e) => e.id === n);
|
|
904
|
-
if (!r) {
|
|
905
|
-
let r = {
|
|
906
|
-
availableToolIds: e.map((e) => e.id),
|
|
907
|
-
toolName: n
|
|
908
|
-
};
|
|
909
|
-
throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
910
|
-
}
|
|
911
|
-
let i = `${Be}/${t}_v${r.version}/${n}.es.js`;
|
|
912
|
-
try {
|
|
913
|
-
return new (await (import(
|
|
914
|
-
/* @vite-ignore */
|
|
915
|
-
i
|
|
916
|
-
))).Tool();
|
|
917
|
-
} catch (e) {
|
|
918
|
-
let t = {
|
|
919
|
-
toolName: n,
|
|
920
|
-
url: i,
|
|
921
|
-
version: r.version
|
|
922
|
-
};
|
|
923
|
-
throw new F(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
//#endregion
|
|
927
|
-
//#region src/component/module/connector/objectParsing.ts
|
|
928
|
-
var Ue = "\n", q = ",";
|
|
929
|
-
async function We(e) {
|
|
930
|
-
let { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o, valueDelimiterId: s } = e, { dataFormatId: c, text: l } = n, u = n.bytes.length;
|
|
931
|
-
if (u === 0) return {
|
|
932
|
-
asAt: t,
|
|
933
|
-
columnConfigs: [],
|
|
934
|
-
dataFormatId: "dtv",
|
|
935
|
-
duration: performance.now() - a,
|
|
936
|
-
encodingId: void 0,
|
|
937
|
-
encodingConfidenceLevel: void 0,
|
|
938
|
-
fileType: void 0,
|
|
939
|
-
hasHeaders: !1,
|
|
940
|
-
recordDelimiterId: Ue,
|
|
941
|
-
parsedRecords: [],
|
|
942
|
-
issues: [{
|
|
943
|
-
id: "empty",
|
|
944
|
-
lineNumber: void 0,
|
|
945
|
-
message: "The file is empty.",
|
|
946
|
-
severityId: "info"
|
|
947
|
-
}],
|
|
948
|
-
size: 0,
|
|
949
|
-
text: void 0,
|
|
950
|
-
valueDelimiterId: q
|
|
951
|
-
};
|
|
952
|
-
if (c == null || l == null || G(o, c).length === 0) return {
|
|
953
|
-
asAt: t,
|
|
954
|
-
columnConfigs: [],
|
|
955
|
-
dataFormatId: c ?? "unknown",
|
|
956
|
-
duration: performance.now() - a,
|
|
957
|
-
encodingId: n.encodingId,
|
|
958
|
-
encodingConfidenceLevel: n.encodingConfidenceLevel,
|
|
959
|
-
fileType: n.fileTypeConfig,
|
|
960
|
-
hasHeaders: void 0,
|
|
961
|
-
recordDelimiterId: void 0,
|
|
962
|
-
parsedRecords: [],
|
|
963
|
-
issues: [],
|
|
964
|
-
size: u,
|
|
965
|
-
text: l,
|
|
966
|
-
valueDelimiterId: void 0
|
|
967
|
-
};
|
|
968
|
-
let { parser: d, parserId: f } = await J(o, c, i), p = s == null ? k : [s], m = await d.parseText(l, {
|
|
969
|
-
dataFormatId: c,
|
|
970
|
-
isComplete: n.isComplete,
|
|
971
|
-
valueDelimiterIds: p
|
|
972
|
-
}), h = c === "dtv", g = h && s == null && m.valueDelimiterId == null ? await d.parseText(l, {
|
|
973
|
-
dataFormatId: c,
|
|
974
|
-
isComplete: n.isComplete,
|
|
975
|
-
valueDelimiterIds: [q]
|
|
976
|
-
}) : m, _ = r(g.parsedRecords);
|
|
977
|
-
return {
|
|
978
|
-
asAt: t,
|
|
979
|
-
columnConfigs: _.columnConfigs,
|
|
980
|
-
dataFormatId: c,
|
|
981
|
-
duration: performance.now() - a,
|
|
982
|
-
encodingId: n.encodingId,
|
|
983
|
-
encodingConfidenceLevel: n.encodingConfidenceLevel,
|
|
984
|
-
fileType: n.fileTypeConfig,
|
|
985
|
-
hasHeaders: _.hasHeaderRow,
|
|
986
|
-
recordDelimiterId: g.recordDelimiterId,
|
|
987
|
-
parsedRecords: g.parsedRecords,
|
|
988
|
-
parserId: f,
|
|
989
|
-
issues: g.issues,
|
|
990
|
-
size: u,
|
|
991
|
-
text: l,
|
|
992
|
-
valueDelimiterId: h ? s ?? g.valueDelimiterId ?? q : g.valueDelimiterId
|
|
993
|
-
};
|
|
994
|
-
}
|
|
995
|
-
async function Ge(e) {
|
|
996
|
-
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await J(a, n.dataFormatId, n.parserId);
|
|
997
|
-
return await o.parseStream(i, {
|
|
998
|
-
abortSignal: r,
|
|
999
|
-
chunkSize: n.chunkSize,
|
|
1000
|
-
dataFormatId: n.dataFormatId,
|
|
1001
|
-
encodingId: n.encodingId,
|
|
1002
|
-
valueDelimiterId: n.valueDelimiterId
|
|
1003
|
-
}, t);
|
|
1004
|
-
}
|
|
1005
|
-
async function Ke(e) {
|
|
1006
|
-
let { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await J(o, r.dataFormatId, r.parserId), d = qe(a), f = await u.parseStream(d.stream, {
|
|
1007
|
-
abortSignal: i,
|
|
1008
|
-
chunkSize: r.chunkSize,
|
|
1009
|
-
dataFormatId: r.dataFormatId,
|
|
1010
|
-
encodingId: r.encodingId,
|
|
1011
|
-
valueDelimiterId: r.valueDelimiterId
|
|
1012
|
-
}, (e, t) => {
|
|
1013
|
-
l.auditRecords(t), n(t.length);
|
|
1014
|
-
});
|
|
1015
|
-
return {
|
|
1016
|
-
asAt: s,
|
|
1017
|
-
columns: l.completeAudit(),
|
|
1018
|
-
commentLineCount: f.commentLineCount,
|
|
1019
|
-
duration: performance.now() - c,
|
|
1020
|
-
emptyLineCount: f.emptyLineCount,
|
|
1021
|
-
invalidFieldLengthCount: f.nonUniformRecordCount,
|
|
1022
|
-
lineCount: f.lineCount,
|
|
1023
|
-
recordCount: Math.max(0, f.recordCount - +!!r.hasHeaders),
|
|
1024
|
-
sourceWaitDuration: d.waitDuration()
|
|
1025
|
-
};
|
|
1026
|
-
}
|
|
1027
|
-
function qe(e) {
|
|
1028
|
-
let t = e.getReader(), n = 0;
|
|
1029
|
-
return {
|
|
1030
|
-
stream: new ReadableStream({
|
|
1031
|
-
async pull(e) {
|
|
1032
|
-
let r = performance.now(), i = await t.read();
|
|
1033
|
-
n += performance.now() - r, i.done ? e.close() : e.enqueue(i.value);
|
|
1034
|
-
},
|
|
1035
|
-
cancel(e) {
|
|
1036
|
-
return t.cancel(e);
|
|
1037
|
-
}
|
|
1038
|
-
}, { highWaterMark: 0 }),
|
|
1039
|
-
waitDuration: () => n
|
|
1040
|
-
};
|
|
1041
|
-
}
|
|
1042
|
-
async function J(e, t, n) {
|
|
1043
|
-
let r = K(e, t, n);
|
|
1044
|
-
return {
|
|
1045
|
-
parser: await He(e, r.id.slice(W.length)),
|
|
1046
|
-
parserId: r.id
|
|
1047
|
-
};
|
|
1048
|
-
}
|
|
1049
|
-
//#endregion
|
|
1050
|
-
//#region src/component/module/connector/index.ts
|
|
1051
|
-
var Je = [
|
|
1052
|
-
{
|
|
1053
|
-
id: "application",
|
|
1054
|
-
label: {
|
|
1055
|
-
en: "Application",
|
|
1056
|
-
es: "Aplicación"
|
|
1057
|
-
}
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
id: "curatedDataset",
|
|
1061
|
-
label: {
|
|
1062
|
-
en: "Curated Dataset",
|
|
1063
|
-
es: "Conjunto de Datos Curado"
|
|
1064
|
-
}
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
id: "database",
|
|
1068
|
-
label: {
|
|
1069
|
-
en: "Database",
|
|
1070
|
-
es: "Base de Datos"
|
|
1071
|
-
}
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
id: "fileStore",
|
|
1075
|
-
label: {
|
|
1076
|
-
en: "File Store",
|
|
1077
|
-
es: "Almacén de Archivos"
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
], Ye = [
|
|
1081
|
-
{
|
|
1082
|
-
id: "apiEndpoint",
|
|
1083
|
-
label: {
|
|
1084
|
-
en: "API Endpoint",
|
|
1085
|
-
es: "Endpoint de API"
|
|
1086
|
-
}
|
|
1087
|
-
},
|
|
1088
|
-
{
|
|
1089
|
-
id: "file",
|
|
1090
|
-
label: {
|
|
1091
|
-
en: "File",
|
|
1092
|
-
es: "Archivo"
|
|
1093
|
-
}
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
id: "table",
|
|
1097
|
-
label: {
|
|
1098
|
-
en: "Table",
|
|
1099
|
-
es: "Tabla"
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
], Xe = {
|
|
1103
|
-
abortOperation: "Abort Operation",
|
|
1104
|
-
auditObjectContent: "Audit Object Content",
|
|
1105
|
-
closeStore: "Close Store",
|
|
1106
|
-
createObject: "Create Object",
|
|
1107
|
-
describeConnection: "Describe Connection",
|
|
1108
|
-
dropObject: "Drop Object",
|
|
1109
|
-
findObject: "Find Object",
|
|
1110
|
-
getInfo: "Get Info",
|
|
1111
|
-
getReadableStream: "Get Readable Stream",
|
|
1112
|
-
getRecord: "Get Record",
|
|
1113
|
-
listNodes: "List Nodes",
|
|
1114
|
-
loadObjectRecords: "Load Object Records",
|
|
1115
|
-
openStore: "Open Store",
|
|
1116
|
-
previewObject: "Preview Object",
|
|
1117
|
-
queryRecords: "Query Records",
|
|
1118
|
-
removeRecords: "Remove Records",
|
|
1119
|
-
retrieveChunks: "Retrieve Chunks",
|
|
1120
|
-
retrieveRecords: "Retrieve Records",
|
|
1121
|
-
upsertRecords: "Upsert Records"
|
|
1122
|
-
}, Ze = [
|
|
1123
|
-
{
|
|
1124
|
-
id: "bidirectional",
|
|
1125
|
-
label: {
|
|
1126
|
-
en: "Bidirectional",
|
|
1127
|
-
es: "Bidireccional"
|
|
1128
|
-
}
|
|
1129
|
-
},
|
|
1130
|
-
{
|
|
1131
|
-
id: "destination",
|
|
1132
|
-
label: {
|
|
1133
|
-
en: "Destination",
|
|
1134
|
-
es: "Destino"
|
|
1135
|
-
}
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
id: "source",
|
|
1139
|
-
label: {
|
|
1140
|
-
en: "Source",
|
|
1141
|
-
es: "Origen"
|
|
1142
|
-
}
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
id: "unknown",
|
|
1146
|
-
label: {
|
|
1147
|
-
en: "Unknown",
|
|
1148
|
-
es: "Desconocido"
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
], Qe = /* @__PURE__ */ new Set([
|
|
1152
|
-
"createObject",
|
|
1153
|
-
"dropObject",
|
|
1154
|
-
"loadObjectRecords",
|
|
1155
|
-
"removeRecords",
|
|
1156
|
-
"upsertRecords"
|
|
1157
|
-
]), $e = /* @__PURE__ */ new Set([
|
|
1158
|
-
"auditObjectContent",
|
|
1159
|
-
"findObject",
|
|
1160
|
-
"getInfo",
|
|
1161
|
-
"getReadableStream",
|
|
1162
|
-
"getRecord",
|
|
1163
|
-
"listNodes",
|
|
1164
|
-
"previewObject",
|
|
1165
|
-
"queryRecords",
|
|
1166
|
-
"retrieveChunks",
|
|
1167
|
-
"retrieveRecords"
|
|
1168
|
-
]);
|
|
1169
|
-
function et(e) {
|
|
1170
|
-
let t = !1, n = !1;
|
|
1171
|
-
for (let r of e) $e.has(r) && (t = !0), Qe.has(r) && (n = !0);
|
|
1172
|
-
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
1173
|
-
}
|
|
1174
|
-
var tt = (e, t = "en") => {
|
|
1175
|
-
let i = Je.find((t) => t.id === e);
|
|
1176
|
-
return i ? {
|
|
1177
|
-
label: r(n(i.label), t) ?? i.id,
|
|
1178
|
-
description: ""
|
|
1179
|
-
} : {
|
|
1180
|
-
label: e,
|
|
1181
|
-
description: ""
|
|
1182
|
-
};
|
|
1183
|
-
}, nt = (e, t = "en") => {
|
|
1184
|
-
let i = Ye.find((t) => t.id === e);
|
|
1185
|
-
return i ? {
|
|
1186
|
-
label: r(n(i.label), t) ?? i.id,
|
|
1187
|
-
description: ""
|
|
1188
|
-
} : {
|
|
1189
|
-
label: e,
|
|
1190
|
-
description: ""
|
|
1191
|
-
};
|
|
1192
|
-
}, rt = (e, t = "en") => {
|
|
1193
|
-
let i = Ze.find((t) => t.id === e);
|
|
1194
|
-
return i ? {
|
|
1195
|
-
label: r(n(i.label), t) ?? i.id,
|
|
1196
|
-
description: ""
|
|
1197
|
-
} : {
|
|
1198
|
-
label: e,
|
|
1199
|
-
description: ""
|
|
1200
|
-
};
|
|
1201
|
-
};
|
|
1202
|
-
function it(e) {
|
|
1203
|
-
let t = new Set(e), n = "|Action|Supported|\n";
|
|
1204
|
-
n += "|:----|:-------:|\n";
|
|
1205
|
-
for (let e of Object.keys(Xe)) n += `| ${Xe[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
1206
|
-
return n;
|
|
1207
|
-
}
|
|
1208
|
-
//#endregion
|
|
1209
|
-
//#region src/component/module/cookbook/cookbookConfig.schema.ts
|
|
1210
|
-
var at = E(["list"]), ot = /* @__PURE__ */ S({
|
|
1211
|
-
...A,
|
|
1212
|
-
typeId: /* @__PURE__ */ _("cookbook"),
|
|
1213
|
-
actionNames: /* @__PURE__ */ h(at),
|
|
1214
|
-
recipes: /* @__PURE__ */ h(se)
|
|
1215
|
-
}), st = E([
|
|
1216
|
-
"list",
|
|
1217
|
-
"render",
|
|
1218
|
-
"setColorMode"
|
|
1219
|
-
]), ct = /* @__PURE__ */ S({
|
|
1220
|
-
...A,
|
|
1221
|
-
typeId: /* @__PURE__ */ _("presenter"),
|
|
1222
|
-
actionNames: /* @__PURE__ */ h(st),
|
|
1223
|
-
presentations: /* @__PURE__ */ h(se)
|
|
1224
|
-
}), lt = "https://engine-eu.dpuse.app/presenters";
|
|
1225
|
-
async function ut(e, t, n, r) {
|
|
1226
|
-
let i = e.id, a = `${lt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
1227
|
-
try {
|
|
1228
|
-
return new (await (import(
|
|
1229
|
-
/* @vite-ignore */
|
|
1230
|
-
a
|
|
1231
|
-
))).Presenter(t, n, r);
|
|
1232
|
-
} catch (t) {
|
|
1233
|
-
let n = {
|
|
1234
|
-
presenterName: i,
|
|
1235
|
-
url: a,
|
|
1236
|
-
version: e.version
|
|
1237
|
-
};
|
|
1238
|
-
throw new F(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
//#endregion
|
|
1242
|
-
//#region src/encoding/index.ts
|
|
1243
|
-
var dt = {
|
|
1244
|
-
arabic: {
|
|
1245
|
-
id: "arabic",
|
|
1246
|
-
label: {
|
|
1247
|
-
en: "Arabic",
|
|
1248
|
-
es: "Árabe"
|
|
1249
|
-
}
|
|
1250
|
-
},
|
|
1251
|
-
baltic: {
|
|
1252
|
-
id: "baltic",
|
|
1253
|
-
label: {
|
|
1254
|
-
en: "Baltic",
|
|
1255
|
-
es: "Báltico"
|
|
663
|
+
},
|
|
664
|
+
baltic: {
|
|
665
|
+
id: "baltic",
|
|
666
|
+
label: {
|
|
667
|
+
en: "Baltic",
|
|
668
|
+
es: "Báltico"
|
|
1256
669
|
}
|
|
1257
670
|
},
|
|
1258
671
|
celtic: {
|
|
@@ -1388,7 +801,7 @@ var dt = {
|
|
|
1388
801
|
es: "Occidental"
|
|
1389
802
|
}
|
|
1390
803
|
}
|
|
1391
|
-
},
|
|
804
|
+
}, we = {
|
|
1392
805
|
ascii: {
|
|
1393
806
|
id: "ascii",
|
|
1394
807
|
groupId: null,
|
|
@@ -1819,16 +1232,16 @@ var dt = {
|
|
|
1819
1232
|
groupId: "baltic",
|
|
1820
1233
|
decoderId: "windows-1257"
|
|
1821
1234
|
}
|
|
1822
|
-
},
|
|
1823
|
-
function
|
|
1824
|
-
return Object.hasOwn(
|
|
1235
|
+
}, O = Ce, k = we;
|
|
1236
|
+
function Te(e) {
|
|
1237
|
+
return Object.hasOwn(k, e);
|
|
1825
1238
|
}
|
|
1826
|
-
function
|
|
1827
|
-
return
|
|
1239
|
+
function A(e) {
|
|
1240
|
+
return Te(e) ? k[e].decoderId ?? e : e;
|
|
1828
1241
|
}
|
|
1829
|
-
function
|
|
1830
|
-
return Array.from(Object.values(
|
|
1831
|
-
let i = n == null ? "" :
|
|
1242
|
+
function Ee(e = "en") {
|
|
1243
|
+
return Array.from(Object.values(k), ({ decoderId: t, groupId: n, id: r }) => {
|
|
1244
|
+
let i = n == null ? "" : De(n, e);
|
|
1832
1245
|
return {
|
|
1833
1246
|
id: r,
|
|
1834
1247
|
groupLabel: i,
|
|
@@ -1838,39 +1251,704 @@ function gt(e = "en") {
|
|
|
1838
1251
|
};
|
|
1839
1252
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
|
|
1840
1253
|
}
|
|
1841
|
-
function
|
|
1842
|
-
let n =
|
|
1254
|
+
function De(e, t) {
|
|
1255
|
+
let n = O[e].label;
|
|
1843
1256
|
return n[t] ?? n.en ?? e;
|
|
1844
1257
|
}
|
|
1845
1258
|
//#endregion
|
|
1846
|
-
//#region src/
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1259
|
+
//#region src/errors/index.ts
|
|
1260
|
+
var j = 2048, M = "[REDACTED]", Oe = 10, ke = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Ae = [
|
|
1261
|
+
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${M}`],
|
|
1262
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => ke.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${M}` : e],
|
|
1263
|
+
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => M],
|
|
1264
|
+
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => M],
|
|
1265
|
+
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => M]
|
|
1266
|
+
], N = class extends Error {
|
|
1267
|
+
data;
|
|
1268
|
+
locator;
|
|
1269
|
+
constructor(e, t, n, r) {
|
|
1270
|
+
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
1271
|
+
}
|
|
1272
|
+
}, P = class extends N {
|
|
1273
|
+
constructor(e, t, n, r) {
|
|
1274
|
+
super(e, t, n, r), this.name = "AppError";
|
|
1275
|
+
}
|
|
1276
|
+
}, F = class extends N {
|
|
1277
|
+
constructor(e, t, n, r) {
|
|
1278
|
+
super(e, t, n, r), this.name = "APIError";
|
|
1279
|
+
}
|
|
1280
|
+
}, I = class extends N {
|
|
1281
|
+
constructor(e, t, n, r) {
|
|
1282
|
+
super(e, t, n, r), this.name = "EngineError";
|
|
1283
|
+
}
|
|
1284
|
+
}, L = class extends N {
|
|
1285
|
+
constructor(e, t, n, r) {
|
|
1286
|
+
super(e, t, n, r), this.name = "ConnectorError";
|
|
1287
|
+
}
|
|
1288
|
+
}, R = class extends N {
|
|
1289
|
+
constructor(e, t, n, r) {
|
|
1290
|
+
super(e, t, n, r), this.name = "FetchError";
|
|
1291
|
+
}
|
|
1292
|
+
};
|
|
1293
|
+
async function je(e, t, n) {
|
|
1294
|
+
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
1295
|
+
try {
|
|
1296
|
+
a = await e.text();
|
|
1297
|
+
} catch (e) {
|
|
1298
|
+
a = `<body unavailable: ${z(e).message}>`;
|
|
1299
|
+
}
|
|
1300
|
+
return new R(i, n, { body: ze(a) });
|
|
1854
1301
|
}
|
|
1855
|
-
function
|
|
1856
|
-
|
|
1857
|
-
...e,
|
|
1858
|
-
label: e.label[t] ?? e.id,
|
|
1859
|
-
description: e.description[t] ?? e.description.en ?? "",
|
|
1860
|
-
verb: e.verb?.[t] ?? void 0
|
|
1861
|
-
}));
|
|
1862
|
-
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
1302
|
+
function Me(e) {
|
|
1303
|
+
return e.map((e) => e.message).join(" ");
|
|
1863
1304
|
}
|
|
1864
|
-
function
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1305
|
+
function Ne(e) {
|
|
1306
|
+
try {
|
|
1307
|
+
e();
|
|
1308
|
+
} catch {}
|
|
1309
|
+
}
|
|
1310
|
+
function z(e) {
|
|
1311
|
+
if (e instanceof Error) return e;
|
|
1312
|
+
if (typeof e == "string") return Error(e);
|
|
1313
|
+
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
1314
|
+
if (typeof e == "symbol") return Error(e.description ?? "Unknown error");
|
|
1315
|
+
if (typeof e == "object") try {
|
|
1316
|
+
return Error(JSON.stringify(e));
|
|
1317
|
+
} catch {
|
|
1318
|
+
return /* @__PURE__ */ Error("Unknown error");
|
|
1319
|
+
}
|
|
1320
|
+
return /* @__PURE__ */ Error("Unknown error");
|
|
1321
|
+
}
|
|
1322
|
+
function Pe(e) {
|
|
1323
|
+
let t = /* @__PURE__ */ new Set(), n = [], r = z(e);
|
|
1324
|
+
for (; r != null && !t.has(r);) {
|
|
1325
|
+
t.add(r);
|
|
1326
|
+
let [e, i] = Be(r), a = Re(e);
|
|
1327
|
+
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
1328
|
+
}
|
|
1329
|
+
return n;
|
|
1330
|
+
}
|
|
1331
|
+
function Fe(e) {
|
|
1332
|
+
let t;
|
|
1333
|
+
for (let n of e.toReversed()) {
|
|
1334
|
+
let e = Le(n, t);
|
|
1335
|
+
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
1336
|
+
}
|
|
1337
|
+
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
1338
|
+
}
|
|
1339
|
+
function Ie(e) {
|
|
1340
|
+
let t;
|
|
1341
|
+
try {
|
|
1342
|
+
t = JSON.stringify(e);
|
|
1343
|
+
} catch {
|
|
1344
|
+
t = typeof e == "symbol" ? e.description ?? "Unknown error" : typeof e == "bigint" ? e.toString() : "Unknown error";
|
|
1345
|
+
}
|
|
1346
|
+
return t === "" && (t = "Unknown error"), t;
|
|
1347
|
+
}
|
|
1348
|
+
function Le(e, t) {
|
|
1349
|
+
switch (e.name) {
|
|
1350
|
+
case "APIError": return new F(e.message, e.locator, e.data, { cause: t });
|
|
1351
|
+
case "AppError": return new P(e.message, e.locator, e.data, { cause: t });
|
|
1352
|
+
case "ConnectorError": return new L(e.message, e.locator, e.data, { cause: t });
|
|
1353
|
+
case "EngineError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
1354
|
+
case "FetchError": return new R(e.message, e.locator, e.data, { cause: t });
|
|
1355
|
+
default: {
|
|
1356
|
+
let n = e.name;
|
|
1357
|
+
return new class extends Error {
|
|
1358
|
+
name = n;
|
|
1359
|
+
}(e.message, { cause: t });
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
function Re(e) {
|
|
1364
|
+
let { data: t, message: n, stack: r } = e;
|
|
1365
|
+
return {
|
|
1366
|
+
...e,
|
|
1367
|
+
data: t === void 0 ? void 0 : V(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
1368
|
+
message: B(n),
|
|
1369
|
+
stack: r === void 0 ? void 0 : B(r)
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
function B(e) {
|
|
1373
|
+
let t = e;
|
|
1374
|
+
for (let [e, n] of Ae) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
1375
|
+
return t;
|
|
1376
|
+
}
|
|
1377
|
+
function V(e, t, n) {
|
|
1378
|
+
return typeof e == "string" ? B(e) : typeof e != "object" || !e ? e : n >= Oe ? M : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => V(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && ke.test(e) ? M : V(r, t, n + 1)])));
|
|
1379
|
+
}
|
|
1380
|
+
function ze(e) {
|
|
1381
|
+
if (e != null && e !== "") return e.length > j ? `${e.slice(0, j)}... [truncated]` : e;
|
|
1382
|
+
}
|
|
1383
|
+
function Be(e) {
|
|
1384
|
+
let t = e.cause == null ? null : z(e.cause);
|
|
1385
|
+
if (e instanceof N) return [{
|
|
1386
|
+
data: e.data,
|
|
1387
|
+
locator: e.locator,
|
|
1388
|
+
message: e.message,
|
|
1389
|
+
name: e.name,
|
|
1390
|
+
stack: e.stack
|
|
1391
|
+
}, t];
|
|
1392
|
+
let n = Object.fromEntries(Object.entries(e).filter(([e]) => e !== "cause"));
|
|
1393
|
+
return e.name ? [{
|
|
1394
|
+
data: n,
|
|
1395
|
+
locator: "",
|
|
1396
|
+
message: e.message,
|
|
1397
|
+
name: e.name,
|
|
1398
|
+
stack: e.stack
|
|
1399
|
+
}, t] : [{
|
|
1400
|
+
data: n,
|
|
1401
|
+
locator: "",
|
|
1402
|
+
message: Ie(e),
|
|
1403
|
+
name: "Error",
|
|
1404
|
+
stack: void 0
|
|
1405
|
+
}, null];
|
|
1406
|
+
}
|
|
1407
|
+
var Ve = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h(T([
|
|
1408
|
+
"arrow",
|
|
1409
|
+
"avro",
|
|
1410
|
+
"dtv",
|
|
1411
|
+
"json",
|
|
1412
|
+
"jsonl",
|
|
1413
|
+
"markdown",
|
|
1414
|
+
"ods",
|
|
1415
|
+
"parquet",
|
|
1416
|
+
"sav",
|
|
1417
|
+
"sqlite",
|
|
1418
|
+
"xlsx",
|
|
1419
|
+
"xml"
|
|
1420
|
+
])), /* @__PURE__ */ f(1)) }), He = /* @__PURE__ */ h(/* @__PURE__ */ C()), Ue = /* @__PURE__ */ S({
|
|
1421
|
+
...D,
|
|
1422
|
+
typeId: /* @__PURE__ */ _("tool"),
|
|
1423
|
+
actionNames: /* @__PURE__ */ b(He),
|
|
1424
|
+
parser: /* @__PURE__ */ b(Ve)
|
|
1425
|
+
});
|
|
1426
|
+
//#endregion
|
|
1427
|
+
//#region src/component/module/tool/delimitedText.ts
|
|
1428
|
+
async function We(e, t, n) {
|
|
1429
|
+
let r = Ge(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ke(e, t.valueDelimiterIds, t.isComplete, n);
|
|
1430
|
+
return {
|
|
1431
|
+
issues: i,
|
|
1432
|
+
parsedRecords: a,
|
|
1433
|
+
recordDelimiterId: r,
|
|
1434
|
+
valueDelimiterId: o
|
|
1435
|
+
};
|
|
1436
|
+
}
|
|
1437
|
+
function Ge(e) {
|
|
1438
|
+
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
1439
|
+
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
1440
|
+
}
|
|
1441
|
+
async function Ke(e, t, n, r) {
|
|
1442
|
+
let i, a, o, s = [], c, l = !1;
|
|
1443
|
+
for (let u of t) {
|
|
1444
|
+
let { issues: t, records: d } = await r(e, u, n);
|
|
1445
|
+
if (t.length > 0) {
|
|
1446
|
+
c = qe(c, {
|
|
1447
|
+
delimiter: u,
|
|
1448
|
+
issues: t,
|
|
1449
|
+
records: d
|
|
1450
|
+
});
|
|
1451
|
+
continue;
|
|
1452
|
+
}
|
|
1453
|
+
if (l = !0, d.length === 0) continue;
|
|
1454
|
+
let { averageValueCount: f, sumOfValueCountDiffs: p } = Je(d);
|
|
1455
|
+
(!o || p <= o) && (!a || f > a) && (i = u, a = f, o = p, s = d);
|
|
1456
|
+
}
|
|
1457
|
+
if (!l && c != null) {
|
|
1458
|
+
let { delimiter: e, issues: t, records: n } = c;
|
|
1459
|
+
return {
|
|
1460
|
+
issues: t,
|
|
1461
|
+
parsedRecords: n,
|
|
1462
|
+
valueDelimiterId: H(n) ? e : void 0
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
return {
|
|
1466
|
+
issues: [],
|
|
1467
|
+
parsedRecords: s,
|
|
1468
|
+
valueDelimiterId: i != null && H(s) ? i : void 0
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1471
|
+
function qe(e, t) {
|
|
1472
|
+
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
1473
|
+
}
|
|
1474
|
+
function Je(e) {
|
|
1475
|
+
let t = 0, n = 0, r;
|
|
1476
|
+
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
1477
|
+
return {
|
|
1478
|
+
averageValueCount: t / e.length,
|
|
1479
|
+
sumOfValueCountDiffs: n
|
|
1480
|
+
};
|
|
1481
|
+
}
|
|
1482
|
+
function H(e) {
|
|
1483
|
+
let t = /* @__PURE__ */ new Map();
|
|
1484
|
+
for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
|
|
1485
|
+
let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
|
|
1486
|
+
return n > 1 && r * 2 > e.length;
|
|
1487
|
+
}
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region src/component/module/tool/index.ts
|
|
1490
|
+
var Ye = "https://engine-eu.dpuse.app/tools", Xe = { dtv: "dpuse-tool-rust-csv-core-parser" }, U = "dpuse-tool-";
|
|
1491
|
+
function W(e, t) {
|
|
1492
|
+
return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
|
|
1493
|
+
}
|
|
1494
|
+
function G(e, t, n) {
|
|
1495
|
+
let r = W(e, t), [i] = r;
|
|
1496
|
+
if (i === void 0) {
|
|
1497
|
+
let n = {
|
|
1498
|
+
availableToolIds: e.map((e) => e.id),
|
|
1499
|
+
dataFormatId: t
|
|
1500
|
+
};
|
|
1501
|
+
throw new P(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
1502
|
+
}
|
|
1503
|
+
let a = Xe[t];
|
|
1504
|
+
return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
|
|
1505
|
+
}
|
|
1506
|
+
async function K(e, t) {
|
|
1507
|
+
let n = `${U}${t}`, r = e.find((e) => e.id === n);
|
|
1508
|
+
if (!r) {
|
|
1509
|
+
let r = {
|
|
1510
|
+
availableToolIds: e.map((e) => e.id),
|
|
1511
|
+
toolName: n
|
|
1512
|
+
};
|
|
1513
|
+
throw new P(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
1514
|
+
}
|
|
1515
|
+
let i = `${Ye}/${t}_v${r.version}/${n}.es.js`;
|
|
1516
|
+
try {
|
|
1517
|
+
return new (await (import(
|
|
1518
|
+
/* @vite-ignore */
|
|
1519
|
+
i
|
|
1520
|
+
))).Tool();
|
|
1521
|
+
} catch (e) {
|
|
1522
|
+
let t = {
|
|
1523
|
+
toolName: n,
|
|
1524
|
+
url: i,
|
|
1525
|
+
version: r.version
|
|
1526
|
+
};
|
|
1527
|
+
throw new P(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
//#endregion
|
|
1531
|
+
//#region src/component/module/connector/objectParsing.ts
|
|
1532
|
+
var Ze = "\n", q = ",", Qe = 13, J = 10, $e = 34;
|
|
1533
|
+
async function et(e) {
|
|
1534
|
+
let { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o, valueDelimiterId: s } = e, { dataFormatId: c, text: l } = n, u = n.bytes.length;
|
|
1535
|
+
if (u === 0) return {
|
|
1536
|
+
contentAuditConfig: Y({
|
|
1537
|
+
asAt: t,
|
|
1538
|
+
columns: [],
|
|
1539
|
+
isComplete: !0,
|
|
1540
|
+
recordCount: 0,
|
|
1541
|
+
size: u,
|
|
1542
|
+
startedAt: a
|
|
1543
|
+
}),
|
|
1544
|
+
previewConfig: {
|
|
1545
|
+
issues: [{
|
|
1546
|
+
id: "empty",
|
|
1547
|
+
lineNumber: void 0,
|
|
1548
|
+
message: "The file is empty.",
|
|
1549
|
+
severityId: "info"
|
|
1550
|
+
}],
|
|
1551
|
+
parsedRecords: [],
|
|
1552
|
+
size: 0,
|
|
1553
|
+
text: void 0
|
|
1554
|
+
},
|
|
1555
|
+
readConfig: {
|
|
1556
|
+
dataFormatId: "dtv",
|
|
1557
|
+
encodingConfidenceLevel: void 0,
|
|
1558
|
+
encodingId: void 0,
|
|
1559
|
+
fileType: void 0,
|
|
1560
|
+
hasHeaders: !1,
|
|
1561
|
+
recordDelimiterId: Ze,
|
|
1562
|
+
valueDelimiterId: q
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
if (c == null || l == null || W(o, c).length === 0) return {
|
|
1566
|
+
contentAuditConfig: Y({
|
|
1567
|
+
asAt: t,
|
|
1568
|
+
columns: [],
|
|
1569
|
+
isComplete: n.isComplete,
|
|
1570
|
+
recordCount: 0,
|
|
1571
|
+
size: u,
|
|
1572
|
+
startedAt: a
|
|
1573
|
+
}),
|
|
1574
|
+
previewConfig: {
|
|
1575
|
+
issues: [],
|
|
1576
|
+
parsedRecords: [],
|
|
1577
|
+
size: u,
|
|
1578
|
+
text: l
|
|
1579
|
+
},
|
|
1580
|
+
readConfig: {
|
|
1581
|
+
dataFormatId: c ?? "unknown",
|
|
1582
|
+
encodingConfidenceLevel: n.encodingConfidenceLevel,
|
|
1583
|
+
encodingId: n.encodingId,
|
|
1584
|
+
fileType: n.fileTypeConfig,
|
|
1585
|
+
hasHeaders: void 0,
|
|
1586
|
+
recordDelimiterId: void 0,
|
|
1587
|
+
valueDelimiterId: void 0
|
|
1588
|
+
}
|
|
1589
|
+
};
|
|
1590
|
+
let { parser: d, parserId: f } = await X(o, c, i), p = s == null ? me : [s], m = await d.parseText(l, {
|
|
1591
|
+
dataFormatId: c,
|
|
1592
|
+
isComplete: n.isComplete,
|
|
1593
|
+
valueDelimiterIds: p
|
|
1594
|
+
}), h = c === "dtv", g = h && s == null && m.valueDelimiterId == null ? await d.parseText(l, {
|
|
1595
|
+
dataFormatId: c,
|
|
1596
|
+
isComplete: n.isComplete,
|
|
1597
|
+
valueDelimiterIds: [q]
|
|
1598
|
+
}) : m, _ = r(g.parsedRecords);
|
|
1599
|
+
return {
|
|
1600
|
+
contentAuditConfig: Y({
|
|
1601
|
+
asAt: t,
|
|
1602
|
+
columns: _.columnConfigs,
|
|
1603
|
+
isComplete: n.isComplete,
|
|
1604
|
+
recordCount: Math.max(0, g.parsedRecords.length - +!!_.hasHeaderRow),
|
|
1605
|
+
size: u,
|
|
1606
|
+
startedAt: a
|
|
1607
|
+
}),
|
|
1608
|
+
previewConfig: {
|
|
1609
|
+
issues: g.issues,
|
|
1610
|
+
parsedRecords: g.parsedRecords,
|
|
1611
|
+
size: u,
|
|
1612
|
+
text: l
|
|
1613
|
+
},
|
|
1614
|
+
readConfig: {
|
|
1615
|
+
dataFormatId: c,
|
|
1616
|
+
encodingConfidenceLevel: n.encodingConfidenceLevel,
|
|
1617
|
+
encodingId: n.encodingId,
|
|
1618
|
+
fileType: n.fileTypeConfig,
|
|
1619
|
+
hasHeaders: _.hasHeaderRow,
|
|
1620
|
+
parserId: f,
|
|
1621
|
+
recordDelimiterId: g.recordDelimiterId,
|
|
1622
|
+
valueDelimiterId: h ? s ?? g.valueDelimiterId ?? q : g.valueDelimiterId
|
|
1623
|
+
}
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
async function tt(e) {
|
|
1627
|
+
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await X(a, n.dataFormatId, n.parserId);
|
|
1628
|
+
return await o.parseStream(i, {
|
|
1629
|
+
abortSignal: r,
|
|
1630
|
+
chunkSize: n.chunkSize,
|
|
1631
|
+
dataFormatId: n.dataFormatId,
|
|
1632
|
+
encodingId: n.encodingId,
|
|
1633
|
+
valueDelimiterId: n.valueDelimiterId
|
|
1634
|
+
}, t);
|
|
1635
|
+
}
|
|
1636
|
+
async function nt(e) {
|
|
1637
|
+
let { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await X(o, r.dataFormatId, r.parserId), d = at(a), f = rt(d.stream, r), p = await u.parseStream(f.stream, {
|
|
1638
|
+
abortSignal: i,
|
|
1639
|
+
chunkSize: r.chunkSize,
|
|
1640
|
+
dataFormatId: r.dataFormatId,
|
|
1641
|
+
encodingId: r.encodingId,
|
|
1642
|
+
valueDelimiterId: r.valueDelimiterId
|
|
1643
|
+
}, (e, t) => {
|
|
1644
|
+
l.auditRecords(t), n(t.length, f.byteCount());
|
|
1645
|
+
});
|
|
1646
|
+
return {
|
|
1647
|
+
asAt: s,
|
|
1648
|
+
byteCount: f.byteCount(),
|
|
1649
|
+
columns: l.completeAudit(),
|
|
1650
|
+
commentLineCount: p.commentLineCount,
|
|
1651
|
+
duration: performance.now() - c,
|
|
1652
|
+
emptyLineCount: p.emptyLineCount,
|
|
1653
|
+
invalidFieldLengthCount: p.nonUniformRecordCount,
|
|
1654
|
+
isComplete: f.isComplete(),
|
|
1655
|
+
lineCount: p.lineCount,
|
|
1656
|
+
recordCount: Math.max(0, p.recordCount - +!!r.hasHeaders),
|
|
1657
|
+
sourceWaitDuration: d.waitDuration()
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1660
|
+
function Y(e) {
|
|
1661
|
+
let { asAt: t, columns: n, isComplete: r, recordCount: i, size: a, startedAt: o } = e;
|
|
1662
|
+
return {
|
|
1663
|
+
asAt: t,
|
|
1664
|
+
byteCount: a,
|
|
1665
|
+
columns: n,
|
|
1666
|
+
commentLineCount: void 0,
|
|
1667
|
+
duration: performance.now() - o,
|
|
1668
|
+
emptyLineCount: void 0,
|
|
1669
|
+
invalidFieldLengthCount: void 0,
|
|
1670
|
+
isComplete: r,
|
|
1671
|
+
lineCount: void 0,
|
|
1672
|
+
recordCount: i,
|
|
1673
|
+
sourceWaitDuration: void 0
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
function rt(e, t) {
|
|
1677
|
+
let n = e.getReader(), r = it(t.encodingId), i = 0, a = !1;
|
|
1678
|
+
return {
|
|
1679
|
+
byteCount: () => i,
|
|
1680
|
+
isComplete: () => a,
|
|
1681
|
+
stream: new ReadableStream({
|
|
1682
|
+
async pull(e) {
|
|
1683
|
+
let o = await n.read();
|
|
1684
|
+
if (o.done) {
|
|
1685
|
+
a = !0, e.close();
|
|
1686
|
+
return;
|
|
1687
|
+
}
|
|
1688
|
+
let s = t.stopSignal?.aborted === !0 ? i : t.byteLimit ?? Infinity, c = r(o.value, i, s - i);
|
|
1689
|
+
c == null ? (i += o.value.length, e.enqueue(o.value)) : (i += c, e.enqueue(o.value.subarray(0, c)), e.close(), await n.cancel());
|
|
1690
|
+
},
|
|
1691
|
+
cancel(e) {
|
|
1692
|
+
return n.cancel(e);
|
|
1693
|
+
}
|
|
1694
|
+
}, { highWaterMark: 0 })
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
function it(e) {
|
|
1698
|
+
let t = A(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
|
|
1699
|
+
return (e, t, o) => {
|
|
1700
|
+
for (let s = 0; s < e.length; s++) {
|
|
1701
|
+
let c = e[s];
|
|
1702
|
+
if ((c === $e || c === J || c === Qe) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
|
|
1703
|
+
if (c === $e) a = !a;
|
|
1704
|
+
else if (!a && s >= o && (c === J || e[s + r] !== J)) return s + r - i;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
};
|
|
1708
|
+
}
|
|
1709
|
+
function at(e) {
|
|
1710
|
+
let t = e.getReader(), n = 0;
|
|
1711
|
+
return {
|
|
1712
|
+
stream: new ReadableStream({
|
|
1713
|
+
async pull(e) {
|
|
1714
|
+
let r = performance.now(), i = await t.read();
|
|
1715
|
+
n += performance.now() - r, i.done ? e.close() : e.enqueue(i.value);
|
|
1716
|
+
},
|
|
1717
|
+
cancel(e) {
|
|
1718
|
+
return t.cancel(e);
|
|
1719
|
+
}
|
|
1720
|
+
}, { highWaterMark: 0 }),
|
|
1721
|
+
waitDuration: () => n
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
async function X(e, t, n) {
|
|
1725
|
+
let r = G(e, t, n);
|
|
1726
|
+
return {
|
|
1727
|
+
parser: await K(e, r.id.slice(U.length)),
|
|
1728
|
+
parserId: r.id
|
|
1729
|
+
};
|
|
1730
|
+
}
|
|
1731
|
+
//#endregion
|
|
1732
|
+
//#region src/component/module/connector/index.ts
|
|
1733
|
+
var ot = [
|
|
1734
|
+
{
|
|
1735
|
+
id: "application",
|
|
1736
|
+
label: {
|
|
1737
|
+
en: "Application",
|
|
1738
|
+
es: "Aplicación"
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
id: "curatedDataset",
|
|
1743
|
+
label: {
|
|
1744
|
+
en: "Curated Dataset",
|
|
1745
|
+
es: "Conjunto de Datos Curado"
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
id: "database",
|
|
1750
|
+
label: {
|
|
1751
|
+
en: "Database",
|
|
1752
|
+
es: "Base de Datos"
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
id: "fileStore",
|
|
1757
|
+
label: {
|
|
1758
|
+
en: "File Store",
|
|
1759
|
+
es: "Almacén de Archivos"
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
], st = [
|
|
1763
|
+
{
|
|
1764
|
+
id: "apiEndpoint",
|
|
1765
|
+
label: {
|
|
1766
|
+
en: "API Endpoint",
|
|
1767
|
+
es: "Endpoint de API"
|
|
1768
|
+
}
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
id: "file",
|
|
1772
|
+
label: {
|
|
1773
|
+
en: "File",
|
|
1774
|
+
es: "Archivo"
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
id: "table",
|
|
1779
|
+
label: {
|
|
1780
|
+
en: "Table",
|
|
1781
|
+
es: "Tabla"
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
], ct = {
|
|
1785
|
+
abortOperation: "Abort Operation",
|
|
1786
|
+
auditObjectContent: "Audit Object Content",
|
|
1787
|
+
closeStore: "Close Store",
|
|
1788
|
+
createObject: "Create Object",
|
|
1789
|
+
describeConnection: "Describe Connection",
|
|
1790
|
+
dropObject: "Drop Object",
|
|
1791
|
+
findObject: "Find Object",
|
|
1792
|
+
getInfo: "Get Info",
|
|
1793
|
+
getReadableStream: "Get Readable Stream",
|
|
1794
|
+
getRecord: "Get Record",
|
|
1795
|
+
listNodes: "List Nodes",
|
|
1796
|
+
loadObjectRecords: "Load Object Records",
|
|
1797
|
+
openStore: "Open Store",
|
|
1798
|
+
previewObject: "Preview Object",
|
|
1799
|
+
queryRecords: "Query Records",
|
|
1800
|
+
removeRecords: "Remove Records",
|
|
1801
|
+
retrieveChunks: "Retrieve Chunks",
|
|
1802
|
+
retrieveRecords: "Retrieve Records",
|
|
1803
|
+
upsertRecords: "Upsert Records"
|
|
1804
|
+
}, lt = [
|
|
1805
|
+
{
|
|
1806
|
+
id: "bidirectional",
|
|
1807
|
+
label: {
|
|
1808
|
+
en: "Bidirectional",
|
|
1809
|
+
es: "Bidireccional"
|
|
1810
|
+
}
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
id: "destination",
|
|
1814
|
+
label: {
|
|
1815
|
+
en: "Destination",
|
|
1816
|
+
es: "Destino"
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
id: "source",
|
|
1821
|
+
label: {
|
|
1822
|
+
en: "Source",
|
|
1823
|
+
es: "Origen"
|
|
1824
|
+
}
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
id: "unknown",
|
|
1828
|
+
label: {
|
|
1829
|
+
en: "Unknown",
|
|
1830
|
+
es: "Desconocido"
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
], ut = /* @__PURE__ */ new Set([
|
|
1834
|
+
"createObject",
|
|
1835
|
+
"dropObject",
|
|
1836
|
+
"loadObjectRecords",
|
|
1837
|
+
"removeRecords",
|
|
1838
|
+
"upsertRecords"
|
|
1839
|
+
]), dt = /* @__PURE__ */ new Set([
|
|
1840
|
+
"auditObjectContent",
|
|
1841
|
+
"findObject",
|
|
1842
|
+
"getInfo",
|
|
1843
|
+
"getReadableStream",
|
|
1844
|
+
"getRecord",
|
|
1845
|
+
"listNodes",
|
|
1846
|
+
"previewObject",
|
|
1847
|
+
"queryRecords",
|
|
1848
|
+
"retrieveChunks",
|
|
1849
|
+
"retrieveRecords"
|
|
1850
|
+
]);
|
|
1851
|
+
function ft(e) {
|
|
1852
|
+
let t = !1, n = !1;
|
|
1853
|
+
for (let r of e) dt.has(r) && (t = !0), ut.has(r) && (n = !0);
|
|
1854
|
+
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
1855
|
+
}
|
|
1856
|
+
var pt = (e, t = "en") => {
|
|
1857
|
+
let i = ot.find((t) => t.id === e);
|
|
1858
|
+
return i ? {
|
|
1859
|
+
label: r(n(i.label), t) ?? i.id,
|
|
1860
|
+
description: ""
|
|
1861
|
+
} : {
|
|
1862
|
+
label: e,
|
|
1863
|
+
description: ""
|
|
1864
|
+
};
|
|
1865
|
+
}, mt = (e, t = "en") => {
|
|
1866
|
+
let i = st.find((t) => t.id === e);
|
|
1867
|
+
return i ? {
|
|
1868
|
+
label: r(n(i.label), t) ?? i.id,
|
|
1869
|
+
description: ""
|
|
1870
|
+
} : {
|
|
1871
|
+
label: e,
|
|
1872
|
+
description: ""
|
|
1873
|
+
};
|
|
1874
|
+
}, ht = (e, t = "en") => {
|
|
1875
|
+
let i = lt.find((t) => t.id === e);
|
|
1876
|
+
return i ? {
|
|
1877
|
+
label: r(n(i.label), t) ?? i.id,
|
|
1878
|
+
description: ""
|
|
1879
|
+
} : {
|
|
1880
|
+
label: e,
|
|
1881
|
+
description: ""
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1884
|
+
function gt(e) {
|
|
1885
|
+
let t = new Set(e), n = "|Action|Supported|\n";
|
|
1886
|
+
n += "|:----|:-------:|\n";
|
|
1887
|
+
for (let e of Object.keys(ct)) n += `| ${ct[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
1888
|
+
return n;
|
|
1889
|
+
}
|
|
1890
|
+
//#endregion
|
|
1891
|
+
//#region src/component/module/cookbook/cookbookConfig.schema.ts
|
|
1892
|
+
var _t = T(["list"]), vt = /* @__PURE__ */ S({
|
|
1893
|
+
...D,
|
|
1894
|
+
typeId: /* @__PURE__ */ _("cookbook"),
|
|
1895
|
+
actionNames: /* @__PURE__ */ h(_t),
|
|
1896
|
+
recipes: /* @__PURE__ */ h(ce)
|
|
1897
|
+
}), yt = T([
|
|
1898
|
+
"list",
|
|
1899
|
+
"render",
|
|
1900
|
+
"setColorMode"
|
|
1901
|
+
]), bt = /* @__PURE__ */ S({
|
|
1902
|
+
...D,
|
|
1903
|
+
typeId: /* @__PURE__ */ _("presenter"),
|
|
1904
|
+
actionNames: /* @__PURE__ */ h(yt),
|
|
1905
|
+
presentations: /* @__PURE__ */ h(ce)
|
|
1906
|
+
}), xt = "https://engine-eu.dpuse.app/presenters";
|
|
1907
|
+
async function St(e, t, n, r) {
|
|
1908
|
+
let i = e.id, a = `${xt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
1909
|
+
try {
|
|
1910
|
+
return new (await (import(
|
|
1911
|
+
/* @vite-ignore */
|
|
1912
|
+
a
|
|
1913
|
+
))).Presenter(t, n, r);
|
|
1914
|
+
} catch (t) {
|
|
1915
|
+
let n = {
|
|
1916
|
+
presenterName: i,
|
|
1917
|
+
url: a,
|
|
1918
|
+
version: e.version
|
|
1919
|
+
};
|
|
1920
|
+
throw new P(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
//#endregion
|
|
1924
|
+
//#region src/locale/index.ts
|
|
1925
|
+
function Ct(e, t) {
|
|
1926
|
+
return {
|
|
1927
|
+
...e,
|
|
1928
|
+
label: e.label[t] ?? e.id,
|
|
1929
|
+
description: e.description[t] ?? e.description.en ?? "",
|
|
1930
|
+
verb: e.verb?.[t] ?? void 0
|
|
1931
|
+
};
|
|
1932
|
+
}
|
|
1933
|
+
function wt(e, t, n = !1) {
|
|
1934
|
+
let r = e.map((e) => ({
|
|
1935
|
+
...e,
|
|
1936
|
+
label: e.label[t] ?? e.id,
|
|
1937
|
+
description: e.description[t] ?? e.description.en ?? "",
|
|
1938
|
+
verb: e.verb?.[t] ?? void 0
|
|
1939
|
+
}));
|
|
1940
|
+
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
1941
|
+
}
|
|
1942
|
+
function Tt(e, t) {
|
|
1943
|
+
return {
|
|
1944
|
+
...e,
|
|
1945
|
+
label: e.label[t] ?? e.id,
|
|
1946
|
+
description: e.description[t] ?? e.description.en ?? ""
|
|
1869
1947
|
};
|
|
1870
1948
|
}
|
|
1871
1949
|
//#endregion
|
|
1872
1950
|
//#region src/utilities/index.ts
|
|
1873
|
-
var
|
|
1951
|
+
var Et = /* @__PURE__ */ new Map([
|
|
1874
1952
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
1875
1953
|
["avro", "application/vnd.apache.avro"],
|
|
1876
1954
|
["bin", "application/octet-stream"],
|
|
@@ -1891,20 +1969,20 @@ var xt = /* @__PURE__ */ new Map([
|
|
|
1891
1969
|
["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
|
|
1892
1970
|
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
1893
1971
|
["xml", "application/xml"]
|
|
1894
|
-
]),
|
|
1972
|
+
]), Z = "en", Q = [
|
|
1895
1973
|
["day", 864e5],
|
|
1896
1974
|
["hour", 36e5],
|
|
1897
1975
|
["minute", 6e4],
|
|
1898
1976
|
["second", 1e3],
|
|
1899
1977
|
["millisecond", 1]
|
|
1900
|
-
],
|
|
1978
|
+
], Dt = [
|
|
1901
1979
|
["byte", 1],
|
|
1902
1980
|
["kilobyte", 1024],
|
|
1903
1981
|
["megabyte", 1048576],
|
|
1904
1982
|
["gigabyte", 1073741824],
|
|
1905
1983
|
["terabyte", 1099511627776]
|
|
1906
|
-
],
|
|
1907
|
-
function
|
|
1984
|
+
], Ot = /* @__PURE__ */ new Map(), kt = /* @__PURE__ */ new Map();
|
|
1985
|
+
function At(e, t = 2, n = t, r = Z) {
|
|
1908
1986
|
return e == null ? "" : $(r, {
|
|
1909
1987
|
localeMatcher: "best fit",
|
|
1910
1988
|
maximumFractionDigits: t,
|
|
@@ -1914,18 +1992,18 @@ function Tt(e, t = 2, n = t, r = X) {
|
|
|
1914
1992
|
useGrouping: !0
|
|
1915
1993
|
}).format(e);
|
|
1916
1994
|
}
|
|
1917
|
-
function
|
|
1918
|
-
return
|
|
1995
|
+
function jt(e, t = Z) {
|
|
1996
|
+
return At(e, 0, 0, t);
|
|
1919
1997
|
}
|
|
1920
|
-
function
|
|
1998
|
+
function Mt(e, t = 1, n = Z) {
|
|
1921
1999
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
1922
2000
|
maximumFractionDigits: t,
|
|
1923
2001
|
notation: "compact"
|
|
1924
2002
|
}).format(e);
|
|
1925
2003
|
}
|
|
1926
|
-
function
|
|
2004
|
+
function Nt(e, t = 1, n = Z) {
|
|
1927
2005
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1928
|
-
let [r, i] =
|
|
2006
|
+
let [r, i] = Dt.find(([, n]) => Ht(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
1929
2007
|
return $(n, {
|
|
1930
2008
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
1931
2009
|
style: "unit",
|
|
@@ -1933,9 +2011,9 @@ function Ot(e, t = 1, n = X) {
|
|
|
1933
2011
|
unitDisplay: i === 1 ? "long" : "short"
|
|
1934
2012
|
}).format(e / i);
|
|
1935
2013
|
}
|
|
1936
|
-
function
|
|
2014
|
+
function Pt(e, t = "millisecond", n = Z) {
|
|
1937
2015
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1938
|
-
let r = Math.round(Math.abs(e)), i =
|
|
2016
|
+
let r = Math.round(Math.abs(e)), i = Q.findIndex(([, e]) => r >= e), a = i === -1 ? Q.length - 1 : i, o = Q.findIndex(([e]) => e === t), s = Q.slice(a, Math.max(o, a) + 1), c = [];
|
|
1939
2017
|
for (let [t, i] of s) {
|
|
1940
2018
|
let a = Math.floor(r / i);
|
|
1941
2019
|
if (a === 0 && c.length > 0) continue;
|
|
@@ -1947,25 +2025,25 @@ function kt(e, t = "millisecond", n = X) {
|
|
|
1947
2025
|
unitDisplay: "short"
|
|
1948
2026
|
}).format(o));
|
|
1949
2027
|
}
|
|
1950
|
-
return
|
|
2028
|
+
return Vt(n).format(c);
|
|
1951
2029
|
}
|
|
1952
|
-
function
|
|
2030
|
+
function Ft(e) {
|
|
1953
2031
|
if (!e) return;
|
|
1954
|
-
let t =
|
|
2032
|
+
let t = Bt(e);
|
|
1955
2033
|
return t === void 0 ? e : e.slice(0, t);
|
|
1956
2034
|
}
|
|
1957
|
-
function
|
|
2035
|
+
function It(e) {
|
|
1958
2036
|
if (!e) return;
|
|
1959
|
-
let t =
|
|
2037
|
+
let t = Bt(e);
|
|
1960
2038
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
1961
2039
|
}
|
|
1962
|
-
function
|
|
1963
|
-
return e != null &&
|
|
2040
|
+
function Lt(e) {
|
|
2041
|
+
return e != null && Et.has(e.toLowerCase());
|
|
1964
2042
|
}
|
|
1965
|
-
function
|
|
1966
|
-
return (e == null ? void 0 :
|
|
2043
|
+
function Rt(e) {
|
|
2044
|
+
return (e == null ? void 0 : Et.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
1967
2045
|
}
|
|
1968
|
-
function
|
|
2046
|
+
function zt(e) {
|
|
1969
2047
|
switch (e) {
|
|
1970
2048
|
case "Edm.Boolean": return "boolean";
|
|
1971
2049
|
case "Edm.Byte":
|
|
@@ -1986,24 +2064,24 @@ function Pt(e) {
|
|
|
1986
2064
|
default: return "unknown";
|
|
1987
2065
|
}
|
|
1988
2066
|
}
|
|
1989
|
-
function
|
|
2067
|
+
function Bt(e) {
|
|
1990
2068
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1991
2069
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
1992
2070
|
}
|
|
1993
|
-
function
|
|
1994
|
-
let t =
|
|
2071
|
+
function Vt(e) {
|
|
2072
|
+
let t = Ot.get(e);
|
|
1995
2073
|
return t || (t = new Intl.ListFormat(e, {
|
|
1996
2074
|
style: "narrow",
|
|
1997
2075
|
type: "unit"
|
|
1998
|
-
}),
|
|
2076
|
+
}), Ot.set(e, t)), t;
|
|
1999
2077
|
}
|
|
2000
2078
|
function $(e, t) {
|
|
2001
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
2002
|
-
return r || (r = new Intl.NumberFormat(e, t),
|
|
2079
|
+
let n = `${e}|${JSON.stringify(t)}`, r = kt.get(n);
|
|
2080
|
+
return r || (r = new Intl.NumberFormat(e, t), kt.set(n, r)), r;
|
|
2003
2081
|
}
|
|
2004
|
-
function
|
|
2082
|
+
function Ht(e, t) {
|
|
2005
2083
|
let n = 10 ** t;
|
|
2006
2084
|
return Math.round(e * n) / n;
|
|
2007
2085
|
}
|
|
2008
2086
|
//#endregion
|
|
2009
|
-
export {
|
|
2087
|
+
export { F as APIError, P as AppError, L as ConnectorError, pe as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, O as ENCODING_GROUP_CONFIG_MAP, k as ENCODING_TYPE_CONFIG_MAP, I as EngineError, R as FetchError, me as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, U as TOOL_NAME_PREFIX, nt as auditObjectContentWithParser, je as buildFetchError, et as buildPreviewObjectResult, ue as componentInstanceConfigSchema, Me as concatenateSerialisedErrorMessages, Se as connectorConfigSchema, pt as constructConnectorCategoryConfig, mt as constructConnectorItemTypeConfig, ht as constructConnectorUsageConfig, zt as convertODataTypeIdToUsageTypeId, vt as cookbookConfigSchema, n as createLabelMap, ft as determineConnectorUsageId, It as extractExtensionFromPath, Ft as extractPathWithoutExtension, At as formatNumberAsDecimalNumber, Pt as formatNumberAsDuration, Mt as formatNumberAsSize, Nt as formatNumberAsStorageSize, jt as formatNumberAsWholeNumber, fe as getComponentStatus, gt as getConnectorActionsTable, Ee as getEncodingTypeConfigs, Lt as hasMimeTypeForExtension, Ne as ignoreErrors, Te as isEncodingTypeId, W as listParserToolConfigs, St as loadPresenter, K as loadTool, Ct as localiseConfig, wt as localiseConfigs, Tt as localiseReference, Rt as lookupMimeTypeForExtension, z as normalizeToError, We as parseDelimitedText, bt as presenterConfigSchema, A as resolveDecoderId, r as resolveLabel, G as resolveParserToolConfig, tt as retrieveRecordsWithParser, Pe as serialiseError, Ue as toolConfigSchema, Fe as unserialiseError };
|