@dpuse/dpuse-shared 1.0.185 → 1.0.187
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 -10
- package/dist/dpuse-shared.es.js +315 -208
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/connection/index.d.ts +2 -1
- package/dist/types/src/component/dataView/index.d.ts +148 -93
- package/dist/types/src/component/module/connector/index.d.ts +6 -6
- package/package.json +1 -1
- package/dist/types/src/component/dataView/dataFormatIcons.d.ts +0 -6
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -348,11 +348,11 @@ function ee(e) {
|
|
|
348
348
|
return t;
|
|
349
349
|
}
|
|
350
350
|
/* @__NO_SIDE_EFFECTS__ */
|
|
351
|
-
function
|
|
351
|
+
function te(e, t) {
|
|
352
352
|
return d({
|
|
353
353
|
kind: "schema",
|
|
354
354
|
type: "union",
|
|
355
|
-
reference:
|
|
355
|
+
reference: te,
|
|
356
356
|
expects: /* @__PURE__ */ u(e.map((e) => e.expects), "|"),
|
|
357
357
|
async: !1,
|
|
358
358
|
options: e,
|
|
@@ -380,7 +380,7 @@ function w(e, t) {
|
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
/* @__NO_SIDE_EFFECTS__ */
|
|
383
|
-
function
|
|
383
|
+
function ne(...e) {
|
|
384
384
|
return d({
|
|
385
385
|
...e[0],
|
|
386
386
|
pipe: e,
|
|
@@ -397,10 +397,10 @@ function te(...e) {
|
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
// src/locale/locale.schema.ts
|
|
400
|
-
var
|
|
400
|
+
var w = /* @__PURE__ */ S({
|
|
401
401
|
en: /* @__PURE__ */ C(),
|
|
402
402
|
es: /* @__PURE__ */ C()
|
|
403
|
-
}),
|
|
403
|
+
}), re = {
|
|
404
404
|
id: /* @__PURE__ */ C(),
|
|
405
405
|
label: /* @__PURE__ */ S({
|
|
406
406
|
en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
|
|
@@ -412,7 +412,7 @@ var T = /* @__PURE__ */ S({
|
|
|
412
412
|
}),
|
|
413
413
|
icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
414
414
|
iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C())
|
|
415
|
-
},
|
|
415
|
+
}, T = (e) => /* @__PURE__ */ te(e.map((e) => /* @__PURE__ */ _(e))), ie = T([
|
|
416
416
|
"app",
|
|
417
417
|
"connector",
|
|
418
418
|
"connectorConnection",
|
|
@@ -434,31 +434,31 @@ var T = /* @__PURE__ */ S({
|
|
|
434
434
|
"presenter",
|
|
435
435
|
"presenterPresentation",
|
|
436
436
|
"tool"
|
|
437
|
-
]),
|
|
437
|
+
]), ae = T([
|
|
438
438
|
"danger",
|
|
439
439
|
"success",
|
|
440
440
|
"warning"
|
|
441
|
-
]),
|
|
441
|
+
]), oe = T([
|
|
442
442
|
"alpha",
|
|
443
443
|
"beta",
|
|
444
444
|
"releaseCandidate",
|
|
445
445
|
"generalAvailability"
|
|
446
|
-
]),
|
|
447
|
-
color:
|
|
446
|
+
]), se = /* @__PURE__ */ S({
|
|
447
|
+
color: ae,
|
|
448
448
|
label: /* @__PURE__ */ C()
|
|
449
|
-
}),
|
|
450
|
-
...
|
|
451
|
-
typeId:
|
|
452
|
-
},
|
|
453
|
-
...
|
|
449
|
+
}), ce = {
|
|
450
|
+
...re,
|
|
451
|
+
typeId: ie
|
|
452
|
+
}, E = /* @__PURE__ */ S({
|
|
453
|
+
...ce,
|
|
454
454
|
order: /* @__PURE__ */ y(),
|
|
455
455
|
path: /* @__PURE__ */ C()
|
|
456
456
|
}), le = {
|
|
457
|
-
...
|
|
457
|
+
...ce,
|
|
458
458
|
firstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
459
459
|
lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
460
|
-
status: /* @__PURE__ */ v(
|
|
461
|
-
statusId: /* @__PURE__ */ v(
|
|
460
|
+
status: /* @__PURE__ */ v(se),
|
|
461
|
+
statusId: /* @__PURE__ */ v(oe)
|
|
462
462
|
}, ue = /* @__PURE__ */ S({ ...le }), de = [
|
|
463
463
|
{
|
|
464
464
|
id: "alpha",
|
|
@@ -507,72 +507,179 @@ function fe(e, t = "en") {
|
|
|
507
507
|
label: e
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
// src/component/
|
|
511
|
-
var pe =
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
510
|
+
// src/component/connection/index.ts
|
|
511
|
+
var pe = [",", "."], me = [
|
|
512
|
+
{
|
|
513
|
+
id: "arrow",
|
|
514
|
+
isTable: !1,
|
|
515
|
+
isText: !1,
|
|
516
|
+
supportId: "planned"
|
|
515
517
|
},
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
518
|
+
{
|
|
519
|
+
id: "avro",
|
|
520
|
+
isTable: !1,
|
|
521
|
+
isText: !1,
|
|
522
|
+
supportId: "planned"
|
|
519
523
|
},
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
524
|
+
{
|
|
525
|
+
id: "dtv",
|
|
526
|
+
isTable: !0,
|
|
527
|
+
isText: !0,
|
|
528
|
+
supportId: "supported"
|
|
523
529
|
},
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
530
|
+
{
|
|
531
|
+
id: "json",
|
|
532
|
+
isTable: !1,
|
|
533
|
+
isText: !1,
|
|
534
|
+
supportId: "planned"
|
|
527
535
|
},
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
536
|
+
{
|
|
537
|
+
id: "jsonl",
|
|
538
|
+
isTable: !1,
|
|
539
|
+
isText: !1,
|
|
540
|
+
supportId: "planned"
|
|
531
541
|
},
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
542
|
+
{
|
|
543
|
+
id: "markdown",
|
|
544
|
+
isTable: !1,
|
|
545
|
+
isText: !0,
|
|
546
|
+
supportId: "unsupported"
|
|
535
547
|
},
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
548
|
+
{
|
|
549
|
+
id: "ods",
|
|
550
|
+
isTable: !1,
|
|
551
|
+
isText: !1,
|
|
552
|
+
supportId: "planned"
|
|
539
553
|
},
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
554
|
+
{
|
|
555
|
+
id: "parquet",
|
|
556
|
+
isTable: !1,
|
|
557
|
+
isText: !1,
|
|
558
|
+
supportId: "planned"
|
|
543
559
|
},
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
560
|
+
{
|
|
561
|
+
id: "sav",
|
|
562
|
+
isTable: !1,
|
|
563
|
+
isText: !1,
|
|
564
|
+
supportId: "planned"
|
|
547
565
|
},
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
566
|
+
{
|
|
567
|
+
id: "sqlite",
|
|
568
|
+
isTable: !1,
|
|
569
|
+
isText: !1,
|
|
570
|
+
supportId: "planned"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
id: "xlsx",
|
|
574
|
+
isTable: !1,
|
|
575
|
+
isText: !1,
|
|
576
|
+
supportId: "planned"
|
|
551
577
|
},
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
578
|
+
{
|
|
579
|
+
id: "xml",
|
|
580
|
+
isTable: !1,
|
|
581
|
+
isText: !1,
|
|
582
|
+
supportId: "planned"
|
|
555
583
|
},
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
584
|
+
{
|
|
585
|
+
id: "unknown",
|
|
586
|
+
isTable: !1,
|
|
587
|
+
isText: !1,
|
|
588
|
+
supportId: "unsupported"
|
|
589
|
+
}
|
|
590
|
+
], D = [
|
|
591
|
+
{
|
|
592
|
+
id: ",",
|
|
593
|
+
character: ","
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
id: ";",
|
|
597
|
+
character: ";"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
id: " ",
|
|
601
|
+
character: " "
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
id: "|",
|
|
605
|
+
character: "|"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
id: " ",
|
|
609
|
+
character: " "
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
id: ":",
|
|
613
|
+
character: ":"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
id: "_",
|
|
617
|
+
character: "_"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
id: "!",
|
|
621
|
+
character: "!"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
id: "0x1F",
|
|
625
|
+
character: ""
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
id: "0x1E",
|
|
629
|
+
character: ""
|
|
630
|
+
}
|
|
631
|
+
], he = [
|
|
632
|
+
{
|
|
633
|
+
id: "string",
|
|
634
|
+
defaultSubtypeId: "plain",
|
|
635
|
+
isChoosable: !0,
|
|
636
|
+
subtypeIds: [
|
|
637
|
+
"plain",
|
|
638
|
+
"email",
|
|
639
|
+
"url",
|
|
640
|
+
"uuid",
|
|
641
|
+
"ulid",
|
|
642
|
+
"ipv4",
|
|
643
|
+
"ipv6"
|
|
644
|
+
]
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
id: "numeric",
|
|
648
|
+
defaultSubtypeId: "integer",
|
|
649
|
+
isChoosable: !0,
|
|
650
|
+
subtypeIds: [
|
|
651
|
+
"integer",
|
|
652
|
+
"decimal",
|
|
653
|
+
"bigint"
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
id: "temporal",
|
|
658
|
+
defaultSubtypeId: "dateTime",
|
|
659
|
+
isChoosable: !0,
|
|
660
|
+
subtypeIds: [
|
|
661
|
+
"date",
|
|
662
|
+
"dateTime",
|
|
663
|
+
"time"
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
id: "boolean",
|
|
668
|
+
defaultSubtypeId: void 0,
|
|
669
|
+
isChoosable: !0,
|
|
670
|
+
subtypeIds: []
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
id: "unknown",
|
|
674
|
+
defaultSubtypeId: void 0,
|
|
675
|
+
isChoosable: !1,
|
|
676
|
+
subtypeIds: []
|
|
559
677
|
}
|
|
560
|
-
};
|
|
561
|
-
// src/component/dataView/index.ts
|
|
562
|
-
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" });
|
|
563
|
-
var me = [
|
|
564
|
-
",",
|
|
565
|
-
";",
|
|
566
|
-
" ",
|
|
567
|
-
"|",
|
|
568
|
-
" ",
|
|
569
|
-
":",
|
|
570
|
-
"_",
|
|
571
|
-
"!",
|
|
572
|
-
"0x1F",
|
|
573
|
-
"0x1E"
|
|
574
678
|
];
|
|
575
|
-
|
|
679
|
+
function ge(e) {
|
|
680
|
+
return D.find(({ id: t }) => t === e)?.character ?? e;
|
|
681
|
+
}
|
|
682
|
+
T([
|
|
576
683
|
"app",
|
|
577
684
|
"engine",
|
|
578
685
|
"connector",
|
|
@@ -581,16 +688,16 @@ n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/New
|
|
|
581
688
|
"tool"
|
|
582
689
|
]);
|
|
583
690
|
// src/component/module/moduleConfig.schema.ts
|
|
584
|
-
var
|
|
691
|
+
var O = {
|
|
585
692
|
...le,
|
|
586
693
|
vendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
587
694
|
vendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
588
695
|
vendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
589
696
|
version: /* @__PURE__ */ C()
|
|
590
697
|
};
|
|
591
|
-
({ ...
|
|
698
|
+
({ ...O });
|
|
592
699
|
// src/component/module/connector/connectorConfig.schema.ts
|
|
593
|
-
var
|
|
700
|
+
var _e = T([
|
|
594
701
|
"abortOperation",
|
|
595
702
|
"auditObjectContent",
|
|
596
703
|
"closeStore",
|
|
@@ -610,22 +717,22 @@ var he = E([
|
|
|
610
717
|
"retrieveChunks",
|
|
611
718
|
"retrieveRecords",
|
|
612
719
|
"upsertRecords"
|
|
613
|
-
]),
|
|
720
|
+
]), ve = T([
|
|
614
721
|
"application",
|
|
615
722
|
"curatedDataset",
|
|
616
723
|
"database",
|
|
617
724
|
"fileStore"
|
|
618
|
-
]),
|
|
725
|
+
]), ye = /* @__PURE__ */ S({ label: w }), be = T([
|
|
619
726
|
"apiEndpoint",
|
|
620
727
|
"file",
|
|
621
728
|
"table"
|
|
622
|
-
]),
|
|
729
|
+
]), xe = T([
|
|
623
730
|
"bidirectional",
|
|
624
731
|
"destination",
|
|
625
732
|
"source",
|
|
626
733
|
"unknown"
|
|
627
|
-
]),
|
|
628
|
-
authMethodId:
|
|
734
|
+
]), Se = /* @__PURE__ */ S({ label: w }), Ce = /* @__PURE__ */ S({
|
|
735
|
+
authMethodId: T([
|
|
629
736
|
"apiKey",
|
|
630
737
|
"disabled",
|
|
631
738
|
"oAuth2",
|
|
@@ -634,20 +741,20 @@ var he = E([
|
|
|
634
741
|
activeConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),
|
|
635
742
|
canDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),
|
|
636
743
|
id: /* @__PURE__ */ b(/* @__PURE__ */ C()),
|
|
637
|
-
label: /* @__PURE__ */ b(
|
|
744
|
+
label: /* @__PURE__ */ b(w),
|
|
638
745
|
maxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
639
746
|
params: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
|
|
640
|
-
}),
|
|
641
|
-
...
|
|
747
|
+
}), we = /* @__PURE__ */ S({
|
|
748
|
+
...O,
|
|
642
749
|
typeId: /* @__PURE__ */ _("connector"),
|
|
643
|
-
actionNames: /* @__PURE__ */ h(
|
|
644
|
-
category: /* @__PURE__ */ v(
|
|
645
|
-
categoryId:
|
|
646
|
-
implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(),
|
|
647
|
-
itemTypeId:
|
|
648
|
-
usage: /* @__PURE__ */ v(
|
|
649
|
-
usageId: /* @__PURE__ */ v(
|
|
650
|
-
}),
|
|
750
|
+
actionNames: /* @__PURE__ */ h(_e),
|
|
751
|
+
category: /* @__PURE__ */ v(ye),
|
|
752
|
+
categoryId: ve,
|
|
753
|
+
implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), Ce),
|
|
754
|
+
itemTypeId: be,
|
|
755
|
+
usage: /* @__PURE__ */ v(Se),
|
|
756
|
+
usageId: /* @__PURE__ */ v(xe)
|
|
757
|
+
}), Te = {
|
|
651
758
|
arabic: {
|
|
652
759
|
id: "arabic",
|
|
653
760
|
label: {
|
|
@@ -802,7 +909,7 @@ var he = E([
|
|
|
802
909
|
es: "Occidental"
|
|
803
910
|
}
|
|
804
911
|
}
|
|
805
|
-
},
|
|
912
|
+
}, Ee = {
|
|
806
913
|
"armscii-8": {
|
|
807
914
|
id: "armscii-8",
|
|
808
915
|
groupId: "armenian",
|
|
@@ -1594,16 +1701,16 @@ var he = E([
|
|
|
1594
1701
|
textDecoderId: "windows-1257",
|
|
1595
1702
|
iconvLiteDecoderId: "windows1257"
|
|
1596
1703
|
}
|
|
1597
|
-
},
|
|
1704
|
+
}, De = Te, k = Ee;
|
|
1598
1705
|
function A(e) {
|
|
1599
1706
|
return Object.hasOwn(k, e);
|
|
1600
1707
|
}
|
|
1601
1708
|
function j(e) {
|
|
1602
1709
|
return A(e) ? k[e].textDecoderId ?? e : e;
|
|
1603
1710
|
}
|
|
1604
|
-
function
|
|
1711
|
+
function Oe(e = "en") {
|
|
1605
1712
|
return Array.from(Object.values(k), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {
|
|
1606
|
-
let o = t == null ? "" :
|
|
1713
|
+
let o = t == null ? "" : ke(t, e);
|
|
1607
1714
|
return {
|
|
1608
1715
|
id: r,
|
|
1609
1716
|
groupLabel: o,
|
|
@@ -1615,14 +1722,14 @@ function Te(e = "en") {
|
|
|
1615
1722
|
};
|
|
1616
1723
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));
|
|
1617
1724
|
}
|
|
1618
|
-
function
|
|
1619
|
-
let n =
|
|
1725
|
+
function ke(e, t) {
|
|
1726
|
+
let n = De[e].label;
|
|
1620
1727
|
return n[t] ?? n.en ?? e;
|
|
1621
1728
|
}
|
|
1622
1729
|
// src/errors/index.ts
|
|
1623
|
-
var M = 2048, N = "[REDACTED]",
|
|
1730
|
+
var M = 2048, N = "[REDACTED]", Ae = 10, je = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Me = [
|
|
1624
1731
|
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
|
|
1625
|
-
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) =>
|
|
1732
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => je.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
|
|
1626
1733
|
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
|
|
1627
1734
|
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
|
|
1628
1735
|
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
|
|
@@ -1636,15 +1743,15 @@ var M = 2048, N = "[REDACTED]", De = 10, Oe = /api[-_]?key|authori[sz]ation|cook
|
|
|
1636
1743
|
constructor(e, t, n, r) {
|
|
1637
1744
|
super(e, t, n, r), this.name = "AppError";
|
|
1638
1745
|
}
|
|
1639
|
-
},
|
|
1746
|
+
}, Ne = class extends P {
|
|
1640
1747
|
constructor(e, t, n, r) {
|
|
1641
1748
|
super(e, t, n, r), this.name = "APIError";
|
|
1642
1749
|
}
|
|
1643
|
-
},
|
|
1750
|
+
}, Pe = class extends P {
|
|
1644
1751
|
constructor(e, t, n, r) {
|
|
1645
1752
|
super(e, t, n, r), this.name = "EngineError";
|
|
1646
1753
|
}
|
|
1647
|
-
},
|
|
1754
|
+
}, Fe = class extends P {
|
|
1648
1755
|
constructor(e, t, n, r) {
|
|
1649
1756
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
1650
1757
|
}
|
|
@@ -1653,19 +1760,19 @@ var M = 2048, N = "[REDACTED]", De = 10, Oe = /api[-_]?key|authori[sz]ation|cook
|
|
|
1653
1760
|
super(e, t, n, r), this.name = "FetchError";
|
|
1654
1761
|
}
|
|
1655
1762
|
};
|
|
1656
|
-
async function
|
|
1763
|
+
async function Ie(e, t, n) {
|
|
1657
1764
|
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
1658
1765
|
try {
|
|
1659
1766
|
a = await e.text();
|
|
1660
1767
|
} catch (e) {
|
|
1661
1768
|
a = `<body unavailable: ${L(e).message}>`;
|
|
1662
1769
|
}
|
|
1663
|
-
return new I(i, n, { body:
|
|
1770
|
+
return new I(i, n, { body: We(a) });
|
|
1664
1771
|
}
|
|
1665
|
-
function
|
|
1772
|
+
function Le(e) {
|
|
1666
1773
|
return e.map((e) => e.message).join(" ");
|
|
1667
1774
|
}
|
|
1668
|
-
function
|
|
1775
|
+
function Re(e) {
|
|
1669
1776
|
try {
|
|
1670
1777
|
e();
|
|
1671
1778
|
} catch {}
|
|
@@ -1682,24 +1789,24 @@ function L(e) {
|
|
|
1682
1789
|
}
|
|
1683
1790
|
return /* @__PURE__ */ Error("Unknown error");
|
|
1684
1791
|
}
|
|
1685
|
-
function
|
|
1792
|
+
function ze(e) {
|
|
1686
1793
|
let t = /* @__PURE__ */ new Set(), n = [], r = L(e);
|
|
1687
1794
|
for (; r != null && !t.has(r);) {
|
|
1688
1795
|
t.add(r);
|
|
1689
|
-
let [e, i] =
|
|
1796
|
+
let [e, i] = Ge(r), a = Ue(e);
|
|
1690
1797
|
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
1691
1798
|
}
|
|
1692
1799
|
return n;
|
|
1693
1800
|
}
|
|
1694
|
-
function
|
|
1801
|
+
function Be(e) {
|
|
1695
1802
|
let t;
|
|
1696
1803
|
for (let n of e.toReversed()) {
|
|
1697
|
-
let e =
|
|
1804
|
+
let e = He(n, t);
|
|
1698
1805
|
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
1699
1806
|
}
|
|
1700
1807
|
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
1701
1808
|
}
|
|
1702
|
-
function
|
|
1809
|
+
function Ve(e) {
|
|
1703
1810
|
let t;
|
|
1704
1811
|
try {
|
|
1705
1812
|
t = JSON.stringify(e);
|
|
@@ -1708,12 +1815,12 @@ function Re(e) {
|
|
|
1708
1815
|
}
|
|
1709
1816
|
return t === "" && (t = "Unknown error"), t;
|
|
1710
1817
|
}
|
|
1711
|
-
function
|
|
1818
|
+
function He(e, t) {
|
|
1712
1819
|
switch (e.name) {
|
|
1713
|
-
case "APIError": return new
|
|
1820
|
+
case "APIError": return new Ne(e.message, e.locator, e.data, { cause: t });
|
|
1714
1821
|
case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
|
|
1715
|
-
case "ConnectorError": return new
|
|
1716
|
-
case "EngineError": return new
|
|
1822
|
+
case "ConnectorError": return new Fe(e.message, e.locator, e.data, { cause: t });
|
|
1823
|
+
case "EngineError": return new Pe(e.message, e.locator, e.data, { cause: t });
|
|
1717
1824
|
case "FetchError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
1718
1825
|
default: {
|
|
1719
1826
|
let n = e.name;
|
|
@@ -1723,7 +1830,7 @@ function ze(e, t) {
|
|
|
1723
1830
|
}
|
|
1724
1831
|
}
|
|
1725
1832
|
}
|
|
1726
|
-
function
|
|
1833
|
+
function Ue(e) {
|
|
1727
1834
|
let { data: t, message: n, stack: r } = e;
|
|
1728
1835
|
return {
|
|
1729
1836
|
...e,
|
|
@@ -1734,16 +1841,16 @@ function Be(e) {
|
|
|
1734
1841
|
}
|
|
1735
1842
|
function R(e) {
|
|
1736
1843
|
let t = e;
|
|
1737
|
-
for (let [e, n] of
|
|
1844
|
+
for (let [e, n] of Me) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
1738
1845
|
return t;
|
|
1739
1846
|
}
|
|
1740
1847
|
function z(e, t, n) {
|
|
1741
|
-
return typeof e == "string" ? R(e) : typeof e != "object" || !e ? e : n >=
|
|
1848
|
+
return typeof e == "string" ? R(e) : typeof e != "object" || !e ? e : n >= Ae ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => z(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && je.test(e) ? N : z(r, t, n + 1)])));
|
|
1742
1849
|
}
|
|
1743
|
-
function
|
|
1850
|
+
function We(e) {
|
|
1744
1851
|
if (e != null && e !== "") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;
|
|
1745
1852
|
}
|
|
1746
|
-
function
|
|
1853
|
+
function Ge(e) {
|
|
1747
1854
|
let t = e.cause == null ? null : L(e.cause);
|
|
1748
1855
|
if (e instanceof P) return [{
|
|
1749
1856
|
data: e.data,
|
|
@@ -1762,12 +1869,12 @@ function He(e) {
|
|
|
1762
1869
|
}, t] : [{
|
|
1763
1870
|
data: n,
|
|
1764
1871
|
locator: "",
|
|
1765
|
-
message:
|
|
1872
|
+
message: Ve(e),
|
|
1766
1873
|
name: "Error",
|
|
1767
1874
|
stack: void 0
|
|
1768
1875
|
}, null];
|
|
1769
1876
|
}
|
|
1770
|
-
var
|
|
1877
|
+
var Ke = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h(T([
|
|
1771
1878
|
"arrow",
|
|
1772
1879
|
"avro",
|
|
1773
1880
|
"dtv",
|
|
@@ -1780,15 +1887,15 @@ var Ue = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h
|
|
|
1780
1887
|
"sqlite",
|
|
1781
1888
|
"xlsx",
|
|
1782
1889
|
"xml"
|
|
1783
|
-
])), /* @__PURE__ */ f(1)) }),
|
|
1784
|
-
...
|
|
1890
|
+
])), /* @__PURE__ */ f(1)) }), qe = /* @__PURE__ */ h(/* @__PURE__ */ C()), Je = /* @__PURE__ */ S({
|
|
1891
|
+
...O,
|
|
1785
1892
|
typeId: /* @__PURE__ */ _("tool"),
|
|
1786
|
-
actionNames: /* @__PURE__ */ b(
|
|
1787
|
-
parser: /* @__PURE__ */ b(
|
|
1893
|
+
actionNames: /* @__PURE__ */ b(qe),
|
|
1894
|
+
parser: /* @__PURE__ */ b(Ke)
|
|
1788
1895
|
});
|
|
1789
1896
|
// src/component/module/tool/delimitedText.ts
|
|
1790
|
-
async function
|
|
1791
|
-
let r =
|
|
1897
|
+
async function Ye(e, t, n) {
|
|
1898
|
+
let r = Xe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ze(e, t.valueDelimiterIds, t.isComplete, n);
|
|
1792
1899
|
return {
|
|
1793
1900
|
issues: i,
|
|
1794
1901
|
parsedRecords: a,
|
|
@@ -1796,16 +1903,16 @@ async function Ke(e, t, n) {
|
|
|
1796
1903
|
valueDelimiterId: o
|
|
1797
1904
|
};
|
|
1798
1905
|
}
|
|
1799
|
-
function
|
|
1906
|
+
function Xe(e) {
|
|
1800
1907
|
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
1801
1908
|
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
1802
1909
|
}
|
|
1803
|
-
async function
|
|
1910
|
+
async function Ze(e, t, n, r) {
|
|
1804
1911
|
let i, a, o, s = [], c, l = !1;
|
|
1805
1912
|
for (let u of t) {
|
|
1806
1913
|
let { issues: t, records: d } = await r(e, u, n);
|
|
1807
1914
|
if (t.length > 0) {
|
|
1808
|
-
c =
|
|
1915
|
+
c = Qe(c, {
|
|
1809
1916
|
delimiter: u,
|
|
1810
1917
|
issues: t,
|
|
1811
1918
|
records: d
|
|
@@ -1813,7 +1920,7 @@ async function Je(e, t, n, r) {
|
|
|
1813
1920
|
continue;
|
|
1814
1921
|
}
|
|
1815
1922
|
if (l = !0, d.length === 0) continue;
|
|
1816
|
-
let { averageValueCount: f, sumOfValueCountDiffs: p } =
|
|
1923
|
+
let { averageValueCount: f, sumOfValueCountDiffs: p } = $e(d);
|
|
1817
1924
|
(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
|
|
1818
1925
|
}
|
|
1819
1926
|
if (!l && c != null) {
|
|
@@ -1830,10 +1937,10 @@ async function Je(e, t, n, r) {
|
|
|
1830
1937
|
valueDelimiterId: i != null && B(s) ? i : void 0
|
|
1831
1938
|
};
|
|
1832
1939
|
}
|
|
1833
|
-
function
|
|
1940
|
+
function Qe(e, t) {
|
|
1834
1941
|
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
1835
1942
|
}
|
|
1836
|
-
function
|
|
1943
|
+
function $e(e) {
|
|
1837
1944
|
let t = 0, n = 0, r;
|
|
1838
1945
|
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
1839
1946
|
return {
|
|
@@ -1848,7 +1955,7 @@ function B(e) {
|
|
|
1848
1955
|
return n > 1 && r * 2 > e.length;
|
|
1849
1956
|
}
|
|
1850
1957
|
// src/component/module/tool/index.ts
|
|
1851
|
-
var
|
|
1958
|
+
var et = "https://engine-eu.dpuse.app/tools", tt = { dtv: "dpuse-tool-rust-csv-core-parser" }, V = "dpuse-tool-";
|
|
1852
1959
|
function H(e, t) {
|
|
1853
1960
|
return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
|
|
1854
1961
|
}
|
|
@@ -1861,7 +1968,7 @@ function U(e, t, n) {
|
|
|
1861
1968
|
};
|
|
1862
1969
|
throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
1863
1970
|
}
|
|
1864
|
-
let a =
|
|
1971
|
+
let a = tt[t];
|
|
1865
1972
|
return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
|
|
1866
1973
|
}
|
|
1867
1974
|
async function W(e, t) {
|
|
@@ -1873,7 +1980,7 @@ async function W(e, t) {
|
|
|
1873
1980
|
};
|
|
1874
1981
|
throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
1875
1982
|
}
|
|
1876
|
-
let i = `${
|
|
1983
|
+
let i = `${et}/${t}_v${r.version}/${n}.es.js`;
|
|
1877
1984
|
try {
|
|
1878
1985
|
return new (await (import(
|
|
1879
1986
|
/* @vite-ignore */
|
|
@@ -1889,8 +1996,8 @@ async function W(e, t) {
|
|
|
1889
1996
|
}
|
|
1890
1997
|
}
|
|
1891
1998
|
// src/component/module/connector/objectParsing.ts
|
|
1892
|
-
var
|
|
1893
|
-
async function
|
|
1999
|
+
var nt = "\n", G = ",", rt = 13, K = 10, it = 34, q = 1048576;
|
|
2000
|
+
async function at(e) {
|
|
1894
2001
|
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;
|
|
1895
2002
|
if (u === 0) return {
|
|
1896
2003
|
contentAuditConfig: J({
|
|
@@ -1918,7 +2025,7 @@ async function nt(e) {
|
|
|
1918
2025
|
encodingId: void 0,
|
|
1919
2026
|
fileType: void 0,
|
|
1920
2027
|
hasHeaders: !1,
|
|
1921
|
-
recordDelimiterId:
|
|
2028
|
+
recordDelimiterId: nt,
|
|
1922
2029
|
valueDelimiterId: G
|
|
1923
2030
|
}
|
|
1924
2031
|
};
|
|
@@ -1947,7 +2054,7 @@ async function nt(e) {
|
|
|
1947
2054
|
valueDelimiterId: void 0
|
|
1948
2055
|
}
|
|
1949
2056
|
};
|
|
1950
|
-
let { parser: d, parserId: f } = await Y(o, c, i), p = s == null ?
|
|
2057
|
+
let { parser: d, parserId: f } = await Y(o, c, i), p = s == null ? D.map(({ id: e }) => e) : [s], m = await d.parseText(l, {
|
|
1951
2058
|
dataFormatId: c,
|
|
1952
2059
|
isComplete: n.isComplete,
|
|
1953
2060
|
valueDelimiterIds: p
|
|
@@ -1961,7 +2068,7 @@ async function nt(e) {
|
|
|
1961
2068
|
asAt: t,
|
|
1962
2069
|
columns: _.columnConfigs,
|
|
1963
2070
|
isComplete: n.isComplete,
|
|
1964
|
-
recordCount: Math.max(0, g.parsedRecords.length - +!!_.
|
|
2071
|
+
recordCount: Math.max(0, g.parsedRecords.length - +!!_.hasHeaders),
|
|
1965
2072
|
size: u,
|
|
1966
2073
|
startedAt: a
|
|
1967
2074
|
}),
|
|
@@ -1976,14 +2083,14 @@ async function nt(e) {
|
|
|
1976
2083
|
encodingConfidenceLevel: n.encodingConfidenceLevel,
|
|
1977
2084
|
encodingId: n.encodingId,
|
|
1978
2085
|
fileType: n.fileTypeConfig,
|
|
1979
|
-
hasHeaders: _.
|
|
2086
|
+
hasHeaders: _.hasHeaders,
|
|
1980
2087
|
parserId: f,
|
|
1981
2088
|
recordDelimiterId: g.recordDelimiterId,
|
|
1982
2089
|
valueDelimiterId: h ? s ?? g.valueDelimiterId ?? G : g.valueDelimiterId
|
|
1983
2090
|
}
|
|
1984
2091
|
};
|
|
1985
2092
|
}
|
|
1986
|
-
async function
|
|
2093
|
+
async function ot(e) {
|
|
1987
2094
|
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);
|
|
1988
2095
|
return await o.parseStream(i, {
|
|
1989
2096
|
abortSignal: r,
|
|
@@ -1993,8 +2100,8 @@ async function rt(e) {
|
|
|
1993
2100
|
valueDelimiterId: n.valueDelimiterId
|
|
1994
2101
|
}, t);
|
|
1995
2102
|
}
|
|
1996
|
-
async function
|
|
1997
|
-
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 Y(o, r.dataFormatId, r.parserId), d =
|
|
2103
|
+
async function st(e) {
|
|
2104
|
+
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 Y(o, r.dataFormatId, r.parserId), d = ut(a), f = ct(d.stream, r), p = await u.parseStream(f.stream, {
|
|
1998
2105
|
abortSignal: i,
|
|
1999
2106
|
chunkSize: r.chunkSize,
|
|
2000
2107
|
dataFormatId: r.dataFormatId,
|
|
@@ -2036,8 +2143,8 @@ function J(e) {
|
|
|
2036
2143
|
sourceWaitDuration: void 0
|
|
2037
2144
|
};
|
|
2038
2145
|
}
|
|
2039
|
-
function
|
|
2040
|
-
let n = e.getReader(), r =
|
|
2146
|
+
function ct(e, t) {
|
|
2147
|
+
let n = e.getReader(), r = lt(t.encodingId), i = 0, a = !1, o;
|
|
2041
2148
|
return {
|
|
2042
2149
|
byteCount: () => i,
|
|
2043
2150
|
isComplete: () => a,
|
|
@@ -2063,19 +2170,19 @@ function at(e, t) {
|
|
|
2063
2170
|
}, { highWaterMark: 0 })
|
|
2064
2171
|
};
|
|
2065
2172
|
}
|
|
2066
|
-
function
|
|
2173
|
+
function lt(e) {
|
|
2067
2174
|
let t = j(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
|
|
2068
2175
|
return (e, t, o) => {
|
|
2069
2176
|
for (let s = 0; s < e.length; s++) {
|
|
2070
2177
|
let c = e[s];
|
|
2071
|
-
if ((c ===
|
|
2072
|
-
if (c ===
|
|
2178
|
+
if ((c === it || c === K || c === rt) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
|
|
2179
|
+
if (c === it) a = !a;
|
|
2073
2180
|
else if (!a && s >= o && (c === K || e[s + r] !== K)) return s + r - i;
|
|
2074
2181
|
}
|
|
2075
2182
|
}
|
|
2076
2183
|
};
|
|
2077
2184
|
}
|
|
2078
|
-
function
|
|
2185
|
+
function ut(e) {
|
|
2079
2186
|
let t = e.getReader(), n = 0;
|
|
2080
2187
|
return {
|
|
2081
2188
|
stream: new ReadableStream({
|
|
@@ -2098,7 +2205,7 @@ async function Y(e, t, n) {
|
|
|
2098
2205
|
};
|
|
2099
2206
|
}
|
|
2100
2207
|
// src/component/module/connector/index.ts
|
|
2101
|
-
var
|
|
2208
|
+
var dt = [
|
|
2102
2209
|
{
|
|
2103
2210
|
id: "application",
|
|
2104
2211
|
label: {
|
|
@@ -2127,7 +2234,7 @@ var ct = [
|
|
|
2127
2234
|
es: "Almacén de Archivos"
|
|
2128
2235
|
}
|
|
2129
2236
|
}
|
|
2130
|
-
],
|
|
2237
|
+
], ft = [
|
|
2131
2238
|
{
|
|
2132
2239
|
id: "apiEndpoint",
|
|
2133
2240
|
label: {
|
|
@@ -2149,7 +2256,7 @@ var ct = [
|
|
|
2149
2256
|
es: "Tabla"
|
|
2150
2257
|
}
|
|
2151
2258
|
}
|
|
2152
|
-
],
|
|
2259
|
+
], pt = {
|
|
2153
2260
|
abortOperation: "Abort Operation",
|
|
2154
2261
|
auditObjectContent: "Audit Object Content",
|
|
2155
2262
|
closeStore: "Close Store",
|
|
@@ -2169,7 +2276,7 @@ var ct = [
|
|
|
2169
2276
|
retrieveChunks: "Retrieve Chunks",
|
|
2170
2277
|
retrieveRecords: "Retrieve Records",
|
|
2171
2278
|
upsertRecords: "Upsert Records"
|
|
2172
|
-
},
|
|
2279
|
+
}, mt = [
|
|
2173
2280
|
{
|
|
2174
2281
|
id: "bidirectional",
|
|
2175
2282
|
label: {
|
|
@@ -2198,13 +2305,13 @@ var ct = [
|
|
|
2198
2305
|
es: "Desconocido"
|
|
2199
2306
|
}
|
|
2200
2307
|
}
|
|
2201
|
-
],
|
|
2308
|
+
], ht = /* @__PURE__ */ new Set([
|
|
2202
2309
|
"createObject",
|
|
2203
2310
|
"dropObject",
|
|
2204
2311
|
"loadObjectRecords",
|
|
2205
2312
|
"removeRecords",
|
|
2206
2313
|
"upsertRecords"
|
|
2207
|
-
]),
|
|
2314
|
+
]), gt = /* @__PURE__ */ new Set([
|
|
2208
2315
|
"auditObjectContent",
|
|
2209
2316
|
"findObject",
|
|
2210
2317
|
"getInfo",
|
|
@@ -2216,13 +2323,13 @@ var ct = [
|
|
|
2216
2323
|
"retrieveChunks",
|
|
2217
2324
|
"retrieveRecords"
|
|
2218
2325
|
]);
|
|
2219
|
-
function
|
|
2326
|
+
function _t(e) {
|
|
2220
2327
|
let t = !1, n = !1;
|
|
2221
|
-
for (let r of e)
|
|
2328
|
+
for (let r of e) gt.has(r) && (t = !0), ht.has(r) && (n = !0);
|
|
2222
2329
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
2223
2330
|
}
|
|
2224
|
-
var
|
|
2225
|
-
let i =
|
|
2331
|
+
var vt = (e, t = "en") => {
|
|
2332
|
+
let i = dt.find((t) => t.id === e);
|
|
2226
2333
|
return i ? {
|
|
2227
2334
|
label: r(n(i.label), t) ?? i.id,
|
|
2228
2335
|
description: ""
|
|
@@ -2230,8 +2337,8 @@ var ht = (e, t = "en") => {
|
|
|
2230
2337
|
label: e,
|
|
2231
2338
|
description: ""
|
|
2232
2339
|
};
|
|
2233
|
-
},
|
|
2234
|
-
let i =
|
|
2340
|
+
}, yt = (e, t = "en") => {
|
|
2341
|
+
let i = ft.find((t) => t.id === e);
|
|
2235
2342
|
return i ? {
|
|
2236
2343
|
label: r(n(i.label), t) ?? i.id,
|
|
2237
2344
|
description: ""
|
|
@@ -2239,8 +2346,8 @@ var ht = (e, t = "en") => {
|
|
|
2239
2346
|
label: e,
|
|
2240
2347
|
description: ""
|
|
2241
2348
|
};
|
|
2242
|
-
},
|
|
2243
|
-
let i =
|
|
2349
|
+
}, bt = (e, t = "en") => {
|
|
2350
|
+
let i = mt.find((t) => t.id === e);
|
|
2244
2351
|
return i ? {
|
|
2245
2352
|
label: r(n(i.label), t) ?? i.id,
|
|
2246
2353
|
description: ""
|
|
@@ -2249,30 +2356,30 @@ var ht = (e, t = "en") => {
|
|
|
2249
2356
|
description: ""
|
|
2250
2357
|
};
|
|
2251
2358
|
};
|
|
2252
|
-
function
|
|
2359
|
+
function xt(e) {
|
|
2253
2360
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
2254
2361
|
n += "|:----|:-------:|\n";
|
|
2255
|
-
for (let e of Object.keys(
|
|
2362
|
+
for (let e of Object.keys(pt)) n += `| ${pt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
2256
2363
|
return n;
|
|
2257
2364
|
}
|
|
2258
2365
|
// src/component/module/cookbook/cookbookConfig.schema.ts
|
|
2259
|
-
var
|
|
2260
|
-
...
|
|
2366
|
+
var St = T(["list"]), Ct = /* @__PURE__ */ S({
|
|
2367
|
+
...O,
|
|
2261
2368
|
typeId: /* @__PURE__ */ _("cookbook"),
|
|
2262
|
-
actionNames: /* @__PURE__ */ h(
|
|
2263
|
-
recipes: /* @__PURE__ */ h(
|
|
2264
|
-
}),
|
|
2369
|
+
actionNames: /* @__PURE__ */ h(St),
|
|
2370
|
+
recipes: /* @__PURE__ */ h(E)
|
|
2371
|
+
}), wt = T([
|
|
2265
2372
|
"list",
|
|
2266
2373
|
"render",
|
|
2267
2374
|
"setColorMode"
|
|
2268
|
-
]),
|
|
2269
|
-
...
|
|
2375
|
+
]), Tt = /* @__PURE__ */ S({
|
|
2376
|
+
...O,
|
|
2270
2377
|
typeId: /* @__PURE__ */ _("presenter"),
|
|
2271
|
-
actionNames: /* @__PURE__ */ h(
|
|
2272
|
-
presentations: /* @__PURE__ */ h(
|
|
2273
|
-
}),
|
|
2274
|
-
async function
|
|
2275
|
-
let i = e.id, a = `${
|
|
2378
|
+
actionNames: /* @__PURE__ */ h(wt),
|
|
2379
|
+
presentations: /* @__PURE__ */ h(E)
|
|
2380
|
+
}), Et = "https://engine-eu.dpuse.app/presenters";
|
|
2381
|
+
async function Dt(e, t, n, r) {
|
|
2382
|
+
let i = e.id, a = `${Et}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
2276
2383
|
try {
|
|
2277
2384
|
return new (await (import(
|
|
2278
2385
|
/* @vite-ignore */
|
|
@@ -2288,7 +2395,7 @@ async function wt(e, t, n, r) {
|
|
|
2288
2395
|
}
|
|
2289
2396
|
}
|
|
2290
2397
|
// src/locale/index.ts
|
|
2291
|
-
function
|
|
2398
|
+
function Ot(e, t) {
|
|
2292
2399
|
return {
|
|
2293
2400
|
...e,
|
|
2294
2401
|
label: e.label[t] ?? e.id,
|
|
@@ -2296,7 +2403,7 @@ function Tt(e, t) {
|
|
|
2296
2403
|
verb: e.verb?.[t] ?? void 0
|
|
2297
2404
|
};
|
|
2298
2405
|
}
|
|
2299
|
-
function
|
|
2406
|
+
function kt(e, t, n = !1) {
|
|
2300
2407
|
let r = e.map((e) => ({
|
|
2301
2408
|
...e,
|
|
2302
2409
|
label: e.label[t] ?? e.id,
|
|
@@ -2305,7 +2412,7 @@ function Et(e, t, n = !1) {
|
|
|
2305
2412
|
}));
|
|
2306
2413
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
2307
2414
|
}
|
|
2308
|
-
function
|
|
2415
|
+
function At(e, t) {
|
|
2309
2416
|
return {
|
|
2310
2417
|
...e,
|
|
2311
2418
|
label: e.label[t] ?? e.id,
|
|
@@ -2313,7 +2420,7 @@ function Dt(e, t) {
|
|
|
2313
2420
|
};
|
|
2314
2421
|
}
|
|
2315
2422
|
// src/utilities/index.ts
|
|
2316
|
-
var
|
|
2423
|
+
var jt = /* @__PURE__ */ new Map([
|
|
2317
2424
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
2318
2425
|
["avro", "application/vnd.apache.avro"],
|
|
2319
2426
|
["bin", "application/octet-stream"],
|
|
@@ -2340,14 +2447,14 @@ var Ot = /* @__PURE__ */ new Map([
|
|
|
2340
2447
|
["minute", 6e4],
|
|
2341
2448
|
["second", 1e3],
|
|
2342
2449
|
["millisecond", 1]
|
|
2343
|
-
],
|
|
2450
|
+
], Mt = [
|
|
2344
2451
|
["byte", 1],
|
|
2345
2452
|
["kilobyte", 1024],
|
|
2346
2453
|
["megabyte", 1048576],
|
|
2347
2454
|
["gigabyte", 1073741824],
|
|
2348
2455
|
["terabyte", 1099511627776]
|
|
2349
|
-
], Q = /* @__PURE__ */ new Map(),
|
|
2350
|
-
function
|
|
2456
|
+
], Q = /* @__PURE__ */ new Map(), Nt = /* @__PURE__ */ new Map();
|
|
2457
|
+
function Pt(e, t = 2, n = t, r = X) {
|
|
2351
2458
|
return e == null ? "" : $(r, {
|
|
2352
2459
|
localeMatcher: "best fit",
|
|
2353
2460
|
maximumFractionDigits: t,
|
|
@@ -2357,18 +2464,18 @@ function jt(e, t = 2, n = t, r = X) {
|
|
|
2357
2464
|
useGrouping: !0
|
|
2358
2465
|
}).format(e);
|
|
2359
2466
|
}
|
|
2360
|
-
function
|
|
2361
|
-
return
|
|
2467
|
+
function Ft(e, t = X) {
|
|
2468
|
+
return Pt(e, 0, 0, t);
|
|
2362
2469
|
}
|
|
2363
|
-
function
|
|
2470
|
+
function It(e, t = 1, n = X) {
|
|
2364
2471
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
2365
2472
|
maximumFractionDigits: t,
|
|
2366
2473
|
notation: "compact"
|
|
2367
2474
|
}).format(e);
|
|
2368
2475
|
}
|
|
2369
|
-
function
|
|
2476
|
+
function Lt(e, t = 1, n = X) {
|
|
2370
2477
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2371
|
-
let [r, i] =
|
|
2478
|
+
let [r, i] = Mt.find(([, n]) => Kt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
2372
2479
|
return $(n, {
|
|
2373
2480
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
2374
2481
|
style: "unit",
|
|
@@ -2376,7 +2483,7 @@ function Pt(e, t = 1, n = X) {
|
|
|
2376
2483
|
unitDisplay: i === 1 ? "long" : "short"
|
|
2377
2484
|
}).format(e / i);
|
|
2378
2485
|
}
|
|
2379
|
-
function
|
|
2486
|
+
function Rt(e, t = "millisecond", n = X) {
|
|
2380
2487
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2381
2488
|
let r = Math.round(Math.abs(e)), i = Z.findIndex(([, e]) => r >= e), a = i === -1 ? Z.length - 1 : i, o = Z.findIndex(([e]) => e === t), s = Z.slice(a, Math.max(o, a) + 1), c = [];
|
|
2382
2489
|
for (let [t, i] of s) {
|
|
@@ -2390,25 +2497,25 @@ function Ft(e, t = "millisecond", n = X) {
|
|
|
2390
2497
|
unitDisplay: "short"
|
|
2391
2498
|
}).format(o));
|
|
2392
2499
|
}
|
|
2393
|
-
return
|
|
2500
|
+
return Gt(n).format(c);
|
|
2394
2501
|
}
|
|
2395
|
-
function
|
|
2502
|
+
function zt(e) {
|
|
2396
2503
|
if (!e) return;
|
|
2397
|
-
let t =
|
|
2504
|
+
let t = Wt(e);
|
|
2398
2505
|
return t === void 0 ? e : e.slice(0, t);
|
|
2399
2506
|
}
|
|
2400
|
-
function
|
|
2507
|
+
function Bt(e) {
|
|
2401
2508
|
if (!e) return;
|
|
2402
|
-
let t =
|
|
2509
|
+
let t = Wt(e);
|
|
2403
2510
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
2404
2511
|
}
|
|
2405
|
-
function
|
|
2406
|
-
return e != null &&
|
|
2512
|
+
function Vt(e) {
|
|
2513
|
+
return e != null && jt.has(e.toLowerCase());
|
|
2407
2514
|
}
|
|
2408
|
-
function
|
|
2409
|
-
return (e == null ? void 0 :
|
|
2515
|
+
function Ht(e) {
|
|
2516
|
+
return (e == null ? void 0 : jt.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
2410
2517
|
}
|
|
2411
|
-
function
|
|
2518
|
+
function Ut(e) {
|
|
2412
2519
|
switch (e) {
|
|
2413
2520
|
case "Edm.Boolean": return "boolean";
|
|
2414
2521
|
case "Edm.Byte":
|
|
@@ -2429,11 +2536,11 @@ function Bt(e) {
|
|
|
2429
2536
|
default: return "unknown";
|
|
2430
2537
|
}
|
|
2431
2538
|
}
|
|
2432
|
-
function
|
|
2539
|
+
function Wt(e) {
|
|
2433
2540
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
2434
2541
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
2435
2542
|
}
|
|
2436
|
-
function
|
|
2543
|
+
function Gt(e) {
|
|
2437
2544
|
let t = Q.get(e);
|
|
2438
2545
|
return t || (t = new Intl.ListFormat(e, {
|
|
2439
2546
|
style: "narrow",
|
|
@@ -2441,11 +2548,11 @@ function Ht(e) {
|
|
|
2441
2548
|
}), Q.set(e, t)), t;
|
|
2442
2549
|
}
|
|
2443
2550
|
function $(e, t) {
|
|
2444
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
2445
|
-
return r || (r = new Intl.NumberFormat(e, t),
|
|
2551
|
+
let n = `${e}|${JSON.stringify(t)}`, r = Nt.get(n);
|
|
2552
|
+
return r || (r = new Intl.NumberFormat(e, t), Nt.set(n, r)), r;
|
|
2446
2553
|
}
|
|
2447
|
-
function
|
|
2554
|
+
function Kt(e, t) {
|
|
2448
2555
|
let n = 10 ** t;
|
|
2449
2556
|
return Math.round(e * n) / n;
|
|
2450
2557
|
}
|
|
2451
|
-
export {
|
|
2558
|
+
export { Ne as APIError, F as AppError, Fe as ConnectorError, me as DATA_FORMAT_CONFIGS, he as DATA_TYPE_CONFIGS, pe as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, De as ENCODING_GROUP_CONFIG_MAP, k as ENCODING_TYPE_CONFIG_MAP, Pe as EngineError, I as FetchError, t as SUPPORTED_LANGUAGES, V as TOOL_NAME_PREFIX, D as VALUE_DELIMITER_CONFIGS, st as auditObjectContentWithParser, Ie as buildFetchError, at as buildPreviewObjectResult, ue as componentInstanceConfigSchema, Le as concatenateSerialisedErrorMessages, we as connectorConfigSchema, vt as constructConnectorCategoryConfig, yt as constructConnectorItemTypeConfig, bt as constructConnectorUsageConfig, Ut as convertODataTypeIdToUsageTypeId, Ct as cookbookConfigSchema, n as createLabelMap, _t as determineConnectorUsageId, Bt as extractExtensionFromPath, zt as extractPathWithoutExtension, Pt as formatNumberAsDecimalNumber, Rt as formatNumberAsDuration, It as formatNumberAsSize, Lt as formatNumberAsStorageSize, Ft as formatNumberAsWholeNumber, fe as getComponentStatus, xt as getConnectorActionsTable, Oe as getEncodingTypeConfigs, ge as getValueDelimiterCharacter, Vt as hasMimeTypeForExtension, Re as ignoreErrors, A as isEncodingTypeId, H as listParserToolConfigs, Dt as loadPresenter, W as loadTool, Ot as localiseConfig, kt as localiseConfigs, At as localiseReference, Ht as lookupMimeTypeForExtension, L as normalizeToError, Ye as parseDelimitedText, Tt as presenterConfigSchema, j as resolveDecoderId, r as resolveLabel, U as resolveParserToolConfig, ot as retrieveRecordsWithParser, ze as serialiseError, Je as toolConfigSchema, Be as unserialiseError };
|