@dpuse/dpuse-shared 1.0.186 → 1.0.188
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 +323 -206
- 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 +141 -26
- package/dist/types/src/component/module/connector/index.d.ts +6 -5
- 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,189 @@ 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
|
+
"ipRange",
|
|
645
|
+
"macAddress",
|
|
646
|
+
"iban",
|
|
647
|
+
"isbn",
|
|
648
|
+
"paymentCard",
|
|
649
|
+
"hexColor",
|
|
650
|
+
"json",
|
|
651
|
+
"countryCode",
|
|
652
|
+
"currencyCode",
|
|
653
|
+
"languageCode"
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
id: "numeric",
|
|
658
|
+
defaultSubtypeId: "integer",
|
|
659
|
+
isChoosable: !0,
|
|
660
|
+
subtypeIds: [
|
|
661
|
+
"integer",
|
|
662
|
+
"decimal",
|
|
663
|
+
"bigint"
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
id: "temporal",
|
|
668
|
+
defaultSubtypeId: "dateTime",
|
|
669
|
+
isChoosable: !0,
|
|
670
|
+
subtypeIds: [
|
|
671
|
+
"date",
|
|
672
|
+
"dateTime",
|
|
673
|
+
"time"
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
id: "boolean",
|
|
678
|
+
defaultSubtypeId: void 0,
|
|
679
|
+
isChoosable: !0,
|
|
680
|
+
subtypeIds: []
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
id: "unknown",
|
|
684
|
+
defaultSubtypeId: void 0,
|
|
685
|
+
isChoosable: !1,
|
|
686
|
+
subtypeIds: []
|
|
559
687
|
}
|
|
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
688
|
];
|
|
575
|
-
|
|
689
|
+
function ge(e) {
|
|
690
|
+
return D.find(({ id: t }) => t === e)?.character ?? e;
|
|
691
|
+
}
|
|
692
|
+
T([
|
|
576
693
|
"app",
|
|
577
694
|
"engine",
|
|
578
695
|
"connector",
|
|
@@ -581,16 +698,16 @@ n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/New
|
|
|
581
698
|
"tool"
|
|
582
699
|
]);
|
|
583
700
|
// src/component/module/moduleConfig.schema.ts
|
|
584
|
-
var
|
|
701
|
+
var O = {
|
|
585
702
|
...le,
|
|
586
703
|
vendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
587
704
|
vendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
588
705
|
vendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
589
706
|
version: /* @__PURE__ */ C()
|
|
590
707
|
};
|
|
591
|
-
({ ...
|
|
708
|
+
({ ...O });
|
|
592
709
|
// src/component/module/connector/connectorConfig.schema.ts
|
|
593
|
-
var
|
|
710
|
+
var _e = T([
|
|
594
711
|
"abortOperation",
|
|
595
712
|
"auditObjectContent",
|
|
596
713
|
"closeStore",
|
|
@@ -610,22 +727,22 @@ var he = E([
|
|
|
610
727
|
"retrieveChunks",
|
|
611
728
|
"retrieveRecords",
|
|
612
729
|
"upsertRecords"
|
|
613
|
-
]),
|
|
730
|
+
]), ve = T([
|
|
614
731
|
"application",
|
|
615
732
|
"curatedDataset",
|
|
616
733
|
"database",
|
|
617
734
|
"fileStore"
|
|
618
|
-
]),
|
|
735
|
+
]), ye = /* @__PURE__ */ S({ label: w }), be = T([
|
|
619
736
|
"apiEndpoint",
|
|
620
737
|
"file",
|
|
621
738
|
"table"
|
|
622
|
-
]),
|
|
739
|
+
]), xe = T([
|
|
623
740
|
"bidirectional",
|
|
624
741
|
"destination",
|
|
625
742
|
"source",
|
|
626
743
|
"unknown"
|
|
627
|
-
]),
|
|
628
|
-
authMethodId:
|
|
744
|
+
]), Se = /* @__PURE__ */ S({ label: w }), Ce = /* @__PURE__ */ S({
|
|
745
|
+
authMethodId: T([
|
|
629
746
|
"apiKey",
|
|
630
747
|
"disabled",
|
|
631
748
|
"oAuth2",
|
|
@@ -634,20 +751,20 @@ var he = E([
|
|
|
634
751
|
activeConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),
|
|
635
752
|
canDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),
|
|
636
753
|
id: /* @__PURE__ */ b(/* @__PURE__ */ C()),
|
|
637
|
-
label: /* @__PURE__ */ b(
|
|
754
|
+
label: /* @__PURE__ */ b(w),
|
|
638
755
|
maxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
639
756
|
params: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
|
|
640
|
-
}),
|
|
641
|
-
...
|
|
757
|
+
}), we = /* @__PURE__ */ S({
|
|
758
|
+
...O,
|
|
642
759
|
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
|
-
}),
|
|
760
|
+
actionNames: /* @__PURE__ */ h(_e),
|
|
761
|
+
category: /* @__PURE__ */ v(ye),
|
|
762
|
+
categoryId: ve,
|
|
763
|
+
implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), Ce),
|
|
764
|
+
itemTypeId: be,
|
|
765
|
+
usage: /* @__PURE__ */ v(Se),
|
|
766
|
+
usageId: /* @__PURE__ */ v(xe)
|
|
767
|
+
}), Te = {
|
|
651
768
|
arabic: {
|
|
652
769
|
id: "arabic",
|
|
653
770
|
label: {
|
|
@@ -802,7 +919,7 @@ var he = E([
|
|
|
802
919
|
es: "Occidental"
|
|
803
920
|
}
|
|
804
921
|
}
|
|
805
|
-
},
|
|
922
|
+
}, Ee = {
|
|
806
923
|
"armscii-8": {
|
|
807
924
|
id: "armscii-8",
|
|
808
925
|
groupId: "armenian",
|
|
@@ -1594,16 +1711,16 @@ var he = E([
|
|
|
1594
1711
|
textDecoderId: "windows-1257",
|
|
1595
1712
|
iconvLiteDecoderId: "windows1257"
|
|
1596
1713
|
}
|
|
1597
|
-
},
|
|
1714
|
+
}, De = Te, k = Ee;
|
|
1598
1715
|
function A(e) {
|
|
1599
1716
|
return Object.hasOwn(k, e);
|
|
1600
1717
|
}
|
|
1601
1718
|
function j(e) {
|
|
1602
1719
|
return A(e) ? k[e].textDecoderId ?? e : e;
|
|
1603
1720
|
}
|
|
1604
|
-
function
|
|
1721
|
+
function Oe(e = "en") {
|
|
1605
1722
|
return Array.from(Object.values(k), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {
|
|
1606
|
-
let o = t == null ? "" :
|
|
1723
|
+
let o = t == null ? "" : ke(t, e);
|
|
1607
1724
|
return {
|
|
1608
1725
|
id: r,
|
|
1609
1726
|
groupLabel: o,
|
|
@@ -1615,14 +1732,14 @@ function Te(e = "en") {
|
|
|
1615
1732
|
};
|
|
1616
1733
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));
|
|
1617
1734
|
}
|
|
1618
|
-
function
|
|
1619
|
-
let n =
|
|
1735
|
+
function ke(e, t) {
|
|
1736
|
+
let n = De[e].label;
|
|
1620
1737
|
return n[t] ?? n.en ?? e;
|
|
1621
1738
|
}
|
|
1622
1739
|
// src/errors/index.ts
|
|
1623
|
-
var M = 2048, N = "[REDACTED]",
|
|
1740
|
+
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
1741
|
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
|
|
1625
|
-
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) =>
|
|
1742
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => je.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
|
|
1626
1743
|
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
|
|
1627
1744
|
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
|
|
1628
1745
|
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
|
|
@@ -1636,15 +1753,15 @@ var M = 2048, N = "[REDACTED]", De = 10, Oe = /api[-_]?key|authori[sz]ation|cook
|
|
|
1636
1753
|
constructor(e, t, n, r) {
|
|
1637
1754
|
super(e, t, n, r), this.name = "AppError";
|
|
1638
1755
|
}
|
|
1639
|
-
},
|
|
1756
|
+
}, Ne = class extends P {
|
|
1640
1757
|
constructor(e, t, n, r) {
|
|
1641
1758
|
super(e, t, n, r), this.name = "APIError";
|
|
1642
1759
|
}
|
|
1643
|
-
},
|
|
1760
|
+
}, Pe = class extends P {
|
|
1644
1761
|
constructor(e, t, n, r) {
|
|
1645
1762
|
super(e, t, n, r), this.name = "EngineError";
|
|
1646
1763
|
}
|
|
1647
|
-
},
|
|
1764
|
+
}, Fe = class extends P {
|
|
1648
1765
|
constructor(e, t, n, r) {
|
|
1649
1766
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
1650
1767
|
}
|
|
@@ -1653,19 +1770,19 @@ var M = 2048, N = "[REDACTED]", De = 10, Oe = /api[-_]?key|authori[sz]ation|cook
|
|
|
1653
1770
|
super(e, t, n, r), this.name = "FetchError";
|
|
1654
1771
|
}
|
|
1655
1772
|
};
|
|
1656
|
-
async function
|
|
1773
|
+
async function Ie(e, t, n) {
|
|
1657
1774
|
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
1658
1775
|
try {
|
|
1659
1776
|
a = await e.text();
|
|
1660
1777
|
} catch (e) {
|
|
1661
1778
|
a = `<body unavailable: ${L(e).message}>`;
|
|
1662
1779
|
}
|
|
1663
|
-
return new I(i, n, { body:
|
|
1780
|
+
return new I(i, n, { body: We(a) });
|
|
1664
1781
|
}
|
|
1665
|
-
function
|
|
1782
|
+
function Le(e) {
|
|
1666
1783
|
return e.map((e) => e.message).join(" ");
|
|
1667
1784
|
}
|
|
1668
|
-
function
|
|
1785
|
+
function Re(e) {
|
|
1669
1786
|
try {
|
|
1670
1787
|
e();
|
|
1671
1788
|
} catch {}
|
|
@@ -1682,24 +1799,24 @@ function L(e) {
|
|
|
1682
1799
|
}
|
|
1683
1800
|
return /* @__PURE__ */ Error("Unknown error");
|
|
1684
1801
|
}
|
|
1685
|
-
function
|
|
1802
|
+
function ze(e) {
|
|
1686
1803
|
let t = /* @__PURE__ */ new Set(), n = [], r = L(e);
|
|
1687
1804
|
for (; r != null && !t.has(r);) {
|
|
1688
1805
|
t.add(r);
|
|
1689
|
-
let [e, i] =
|
|
1806
|
+
let [e, i] = Ge(r), a = Ue(e);
|
|
1690
1807
|
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
1691
1808
|
}
|
|
1692
1809
|
return n;
|
|
1693
1810
|
}
|
|
1694
|
-
function
|
|
1811
|
+
function Be(e) {
|
|
1695
1812
|
let t;
|
|
1696
1813
|
for (let n of e.toReversed()) {
|
|
1697
|
-
let e =
|
|
1814
|
+
let e = He(n, t);
|
|
1698
1815
|
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
1699
1816
|
}
|
|
1700
1817
|
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
1701
1818
|
}
|
|
1702
|
-
function
|
|
1819
|
+
function Ve(e) {
|
|
1703
1820
|
let t;
|
|
1704
1821
|
try {
|
|
1705
1822
|
t = JSON.stringify(e);
|
|
@@ -1708,12 +1825,12 @@ function Re(e) {
|
|
|
1708
1825
|
}
|
|
1709
1826
|
return t === "" && (t = "Unknown error"), t;
|
|
1710
1827
|
}
|
|
1711
|
-
function
|
|
1828
|
+
function He(e, t) {
|
|
1712
1829
|
switch (e.name) {
|
|
1713
|
-
case "APIError": return new
|
|
1830
|
+
case "APIError": return new Ne(e.message, e.locator, e.data, { cause: t });
|
|
1714
1831
|
case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
|
|
1715
|
-
case "ConnectorError": return new
|
|
1716
|
-
case "EngineError": return new
|
|
1832
|
+
case "ConnectorError": return new Fe(e.message, e.locator, e.data, { cause: t });
|
|
1833
|
+
case "EngineError": return new Pe(e.message, e.locator, e.data, { cause: t });
|
|
1717
1834
|
case "FetchError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
1718
1835
|
default: {
|
|
1719
1836
|
let n = e.name;
|
|
@@ -1723,7 +1840,7 @@ function ze(e, t) {
|
|
|
1723
1840
|
}
|
|
1724
1841
|
}
|
|
1725
1842
|
}
|
|
1726
|
-
function
|
|
1843
|
+
function Ue(e) {
|
|
1727
1844
|
let { data: t, message: n, stack: r } = e;
|
|
1728
1845
|
return {
|
|
1729
1846
|
...e,
|
|
@@ -1734,16 +1851,16 @@ function Be(e) {
|
|
|
1734
1851
|
}
|
|
1735
1852
|
function R(e) {
|
|
1736
1853
|
let t = e;
|
|
1737
|
-
for (let [e, n] of
|
|
1854
|
+
for (let [e, n] of Me) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
1738
1855
|
return t;
|
|
1739
1856
|
}
|
|
1740
1857
|
function z(e, t, n) {
|
|
1741
|
-
return typeof e == "string" ? R(e) : typeof e != "object" || !e ? e : n >=
|
|
1858
|
+
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
1859
|
}
|
|
1743
|
-
function
|
|
1860
|
+
function We(e) {
|
|
1744
1861
|
if (e != null && e !== "") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;
|
|
1745
1862
|
}
|
|
1746
|
-
function
|
|
1863
|
+
function Ge(e) {
|
|
1747
1864
|
let t = e.cause == null ? null : L(e.cause);
|
|
1748
1865
|
if (e instanceof P) return [{
|
|
1749
1866
|
data: e.data,
|
|
@@ -1762,12 +1879,12 @@ function He(e) {
|
|
|
1762
1879
|
}, t] : [{
|
|
1763
1880
|
data: n,
|
|
1764
1881
|
locator: "",
|
|
1765
|
-
message:
|
|
1882
|
+
message: Ve(e),
|
|
1766
1883
|
name: "Error",
|
|
1767
1884
|
stack: void 0
|
|
1768
1885
|
}, null];
|
|
1769
1886
|
}
|
|
1770
|
-
var
|
|
1887
|
+
var Ke = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h(T([
|
|
1771
1888
|
"arrow",
|
|
1772
1889
|
"avro",
|
|
1773
1890
|
"dtv",
|
|
@@ -1780,15 +1897,15 @@ var Ue = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h
|
|
|
1780
1897
|
"sqlite",
|
|
1781
1898
|
"xlsx",
|
|
1782
1899
|
"xml"
|
|
1783
|
-
])), /* @__PURE__ */ f(1)) }),
|
|
1784
|
-
...
|
|
1900
|
+
])), /* @__PURE__ */ f(1)) }), qe = /* @__PURE__ */ h(/* @__PURE__ */ C()), Je = /* @__PURE__ */ S({
|
|
1901
|
+
...O,
|
|
1785
1902
|
typeId: /* @__PURE__ */ _("tool"),
|
|
1786
|
-
actionNames: /* @__PURE__ */ b(
|
|
1787
|
-
parser: /* @__PURE__ */ b(
|
|
1903
|
+
actionNames: /* @__PURE__ */ b(qe),
|
|
1904
|
+
parser: /* @__PURE__ */ b(Ke)
|
|
1788
1905
|
});
|
|
1789
1906
|
// src/component/module/tool/delimitedText.ts
|
|
1790
|
-
async function
|
|
1791
|
-
let r =
|
|
1907
|
+
async function Ye(e, t, n) {
|
|
1908
|
+
let r = Xe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ze(e, t.valueDelimiterIds, t.isComplete, n);
|
|
1792
1909
|
return {
|
|
1793
1910
|
issues: i,
|
|
1794
1911
|
parsedRecords: a,
|
|
@@ -1796,16 +1913,16 @@ async function Ke(e, t, n) {
|
|
|
1796
1913
|
valueDelimiterId: o
|
|
1797
1914
|
};
|
|
1798
1915
|
}
|
|
1799
|
-
function
|
|
1916
|
+
function Xe(e) {
|
|
1800
1917
|
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
1801
1918
|
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
1802
1919
|
}
|
|
1803
|
-
async function
|
|
1920
|
+
async function Ze(e, t, n, r) {
|
|
1804
1921
|
let i, a, o, s = [], c, l = !1;
|
|
1805
1922
|
for (let u of t) {
|
|
1806
1923
|
let { issues: t, records: d } = await r(e, u, n);
|
|
1807
1924
|
if (t.length > 0) {
|
|
1808
|
-
c =
|
|
1925
|
+
c = Qe(c, {
|
|
1809
1926
|
delimiter: u,
|
|
1810
1927
|
issues: t,
|
|
1811
1928
|
records: d
|
|
@@ -1813,7 +1930,7 @@ async function Je(e, t, n, r) {
|
|
|
1813
1930
|
continue;
|
|
1814
1931
|
}
|
|
1815
1932
|
if (l = !0, d.length === 0) continue;
|
|
1816
|
-
let { averageValueCount: f, sumOfValueCountDiffs: p } =
|
|
1933
|
+
let { averageValueCount: f, sumOfValueCountDiffs: p } = $e(d);
|
|
1817
1934
|
(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
|
|
1818
1935
|
}
|
|
1819
1936
|
if (!l && c != null) {
|
|
@@ -1830,10 +1947,10 @@ async function Je(e, t, n, r) {
|
|
|
1830
1947
|
valueDelimiterId: i != null && B(s) ? i : void 0
|
|
1831
1948
|
};
|
|
1832
1949
|
}
|
|
1833
|
-
function
|
|
1950
|
+
function Qe(e, t) {
|
|
1834
1951
|
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
1835
1952
|
}
|
|
1836
|
-
function
|
|
1953
|
+
function $e(e) {
|
|
1837
1954
|
let t = 0, n = 0, r;
|
|
1838
1955
|
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
1839
1956
|
return {
|
|
@@ -1848,7 +1965,7 @@ function B(e) {
|
|
|
1848
1965
|
return n > 1 && r * 2 > e.length;
|
|
1849
1966
|
}
|
|
1850
1967
|
// src/component/module/tool/index.ts
|
|
1851
|
-
var
|
|
1968
|
+
var et = "https://engine-eu.dpuse.app/tools", tt = { dtv: "dpuse-tool-rust-csv-core-parser" }, V = "dpuse-tool-";
|
|
1852
1969
|
function H(e, t) {
|
|
1853
1970
|
return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
|
|
1854
1971
|
}
|
|
@@ -1861,7 +1978,7 @@ function U(e, t, n) {
|
|
|
1861
1978
|
};
|
|
1862
1979
|
throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
1863
1980
|
}
|
|
1864
|
-
let a =
|
|
1981
|
+
let a = tt[t];
|
|
1865
1982
|
return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
|
|
1866
1983
|
}
|
|
1867
1984
|
async function W(e, t) {
|
|
@@ -1873,7 +1990,7 @@ async function W(e, t) {
|
|
|
1873
1990
|
};
|
|
1874
1991
|
throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
1875
1992
|
}
|
|
1876
|
-
let i = `${
|
|
1993
|
+
let i = `${et}/${t}_v${r.version}/${n}.es.js`;
|
|
1877
1994
|
try {
|
|
1878
1995
|
return new (await (import(
|
|
1879
1996
|
/* @vite-ignore */
|
|
@@ -1889,8 +2006,8 @@ async function W(e, t) {
|
|
|
1889
2006
|
}
|
|
1890
2007
|
}
|
|
1891
2008
|
// src/component/module/connector/objectParsing.ts
|
|
1892
|
-
var
|
|
1893
|
-
async function
|
|
2009
|
+
var nt = "\n", G = ",", rt = 13, K = 10, it = 34, q = 1048576;
|
|
2010
|
+
async function at(e) {
|
|
1894
2011
|
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
2012
|
if (u === 0) return {
|
|
1896
2013
|
contentAuditConfig: J({
|
|
@@ -1918,7 +2035,7 @@ async function nt(e) {
|
|
|
1918
2035
|
encodingId: void 0,
|
|
1919
2036
|
fileType: void 0,
|
|
1920
2037
|
hasHeaders: !1,
|
|
1921
|
-
recordDelimiterId:
|
|
2038
|
+
recordDelimiterId: nt,
|
|
1922
2039
|
valueDelimiterId: G
|
|
1923
2040
|
}
|
|
1924
2041
|
};
|
|
@@ -1947,7 +2064,7 @@ async function nt(e) {
|
|
|
1947
2064
|
valueDelimiterId: void 0
|
|
1948
2065
|
}
|
|
1949
2066
|
};
|
|
1950
|
-
let { parser: d, parserId: f } = await Y(o, c, i), p = s == null ?
|
|
2067
|
+
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
2068
|
dataFormatId: c,
|
|
1952
2069
|
isComplete: n.isComplete,
|
|
1953
2070
|
valueDelimiterIds: p
|
|
@@ -1983,7 +2100,7 @@ async function nt(e) {
|
|
|
1983
2100
|
}
|
|
1984
2101
|
};
|
|
1985
2102
|
}
|
|
1986
|
-
async function
|
|
2103
|
+
async function ot(e) {
|
|
1987
2104
|
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);
|
|
1988
2105
|
return await o.parseStream(i, {
|
|
1989
2106
|
abortSignal: r,
|
|
@@ -1993,8 +2110,8 @@ async function rt(e) {
|
|
|
1993
2110
|
valueDelimiterId: n.valueDelimiterId
|
|
1994
2111
|
}, t);
|
|
1995
2112
|
}
|
|
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 =
|
|
2113
|
+
async function st(e) {
|
|
2114
|
+
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
2115
|
abortSignal: i,
|
|
1999
2116
|
chunkSize: r.chunkSize,
|
|
2000
2117
|
dataFormatId: r.dataFormatId,
|
|
@@ -2036,8 +2153,8 @@ function J(e) {
|
|
|
2036
2153
|
sourceWaitDuration: void 0
|
|
2037
2154
|
};
|
|
2038
2155
|
}
|
|
2039
|
-
function
|
|
2040
|
-
let n = e.getReader(), r =
|
|
2156
|
+
function ct(e, t) {
|
|
2157
|
+
let n = e.getReader(), r = lt(t.encodingId), i = 0, a = !1, o;
|
|
2041
2158
|
return {
|
|
2042
2159
|
byteCount: () => i,
|
|
2043
2160
|
isComplete: () => a,
|
|
@@ -2063,19 +2180,19 @@ function at(e, t) {
|
|
|
2063
2180
|
}, { highWaterMark: 0 })
|
|
2064
2181
|
};
|
|
2065
2182
|
}
|
|
2066
|
-
function
|
|
2183
|
+
function lt(e) {
|
|
2067
2184
|
let t = j(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
|
|
2068
2185
|
return (e, t, o) => {
|
|
2069
2186
|
for (let s = 0; s < e.length; s++) {
|
|
2070
2187
|
let c = e[s];
|
|
2071
|
-
if ((c ===
|
|
2072
|
-
if (c ===
|
|
2188
|
+
if ((c === it || c === K || c === rt) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
|
|
2189
|
+
if (c === it) a = !a;
|
|
2073
2190
|
else if (!a && s >= o && (c === K || e[s + r] !== K)) return s + r - i;
|
|
2074
2191
|
}
|
|
2075
2192
|
}
|
|
2076
2193
|
};
|
|
2077
2194
|
}
|
|
2078
|
-
function
|
|
2195
|
+
function ut(e) {
|
|
2079
2196
|
let t = e.getReader(), n = 0;
|
|
2080
2197
|
return {
|
|
2081
2198
|
stream: new ReadableStream({
|
|
@@ -2098,7 +2215,7 @@ async function Y(e, t, n) {
|
|
|
2098
2215
|
};
|
|
2099
2216
|
}
|
|
2100
2217
|
// src/component/module/connector/index.ts
|
|
2101
|
-
var
|
|
2218
|
+
var dt = [
|
|
2102
2219
|
{
|
|
2103
2220
|
id: "application",
|
|
2104
2221
|
label: {
|
|
@@ -2127,7 +2244,7 @@ var ct = [
|
|
|
2127
2244
|
es: "Almacén de Archivos"
|
|
2128
2245
|
}
|
|
2129
2246
|
}
|
|
2130
|
-
],
|
|
2247
|
+
], ft = [
|
|
2131
2248
|
{
|
|
2132
2249
|
id: "apiEndpoint",
|
|
2133
2250
|
label: {
|
|
@@ -2149,7 +2266,7 @@ var ct = [
|
|
|
2149
2266
|
es: "Tabla"
|
|
2150
2267
|
}
|
|
2151
2268
|
}
|
|
2152
|
-
],
|
|
2269
|
+
], pt = {
|
|
2153
2270
|
abortOperation: "Abort Operation",
|
|
2154
2271
|
auditObjectContent: "Audit Object Content",
|
|
2155
2272
|
closeStore: "Close Store",
|
|
@@ -2169,7 +2286,7 @@ var ct = [
|
|
|
2169
2286
|
retrieveChunks: "Retrieve Chunks",
|
|
2170
2287
|
retrieveRecords: "Retrieve Records",
|
|
2171
2288
|
upsertRecords: "Upsert Records"
|
|
2172
|
-
},
|
|
2289
|
+
}, mt = [
|
|
2173
2290
|
{
|
|
2174
2291
|
id: "bidirectional",
|
|
2175
2292
|
label: {
|
|
@@ -2198,13 +2315,13 @@ var ct = [
|
|
|
2198
2315
|
es: "Desconocido"
|
|
2199
2316
|
}
|
|
2200
2317
|
}
|
|
2201
|
-
],
|
|
2318
|
+
], ht = /* @__PURE__ */ new Set([
|
|
2202
2319
|
"createObject",
|
|
2203
2320
|
"dropObject",
|
|
2204
2321
|
"loadObjectRecords",
|
|
2205
2322
|
"removeRecords",
|
|
2206
2323
|
"upsertRecords"
|
|
2207
|
-
]),
|
|
2324
|
+
]), gt = /* @__PURE__ */ new Set([
|
|
2208
2325
|
"auditObjectContent",
|
|
2209
2326
|
"findObject",
|
|
2210
2327
|
"getInfo",
|
|
@@ -2216,13 +2333,13 @@ var ct = [
|
|
|
2216
2333
|
"retrieveChunks",
|
|
2217
2334
|
"retrieveRecords"
|
|
2218
2335
|
]);
|
|
2219
|
-
function
|
|
2336
|
+
function _t(e) {
|
|
2220
2337
|
let t = !1, n = !1;
|
|
2221
|
-
for (let r of e)
|
|
2338
|
+
for (let r of e) gt.has(r) && (t = !0), ht.has(r) && (n = !0);
|
|
2222
2339
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
2223
2340
|
}
|
|
2224
|
-
var
|
|
2225
|
-
let i =
|
|
2341
|
+
var vt = (e, t = "en") => {
|
|
2342
|
+
let i = dt.find((t) => t.id === e);
|
|
2226
2343
|
return i ? {
|
|
2227
2344
|
label: r(n(i.label), t) ?? i.id,
|
|
2228
2345
|
description: ""
|
|
@@ -2230,8 +2347,8 @@ var ht = (e, t = "en") => {
|
|
|
2230
2347
|
label: e,
|
|
2231
2348
|
description: ""
|
|
2232
2349
|
};
|
|
2233
|
-
},
|
|
2234
|
-
let i =
|
|
2350
|
+
}, yt = (e, t = "en") => {
|
|
2351
|
+
let i = ft.find((t) => t.id === e);
|
|
2235
2352
|
return i ? {
|
|
2236
2353
|
label: r(n(i.label), t) ?? i.id,
|
|
2237
2354
|
description: ""
|
|
@@ -2239,8 +2356,8 @@ var ht = (e, t = "en") => {
|
|
|
2239
2356
|
label: e,
|
|
2240
2357
|
description: ""
|
|
2241
2358
|
};
|
|
2242
|
-
},
|
|
2243
|
-
let i =
|
|
2359
|
+
}, bt = (e, t = "en") => {
|
|
2360
|
+
let i = mt.find((t) => t.id === e);
|
|
2244
2361
|
return i ? {
|
|
2245
2362
|
label: r(n(i.label), t) ?? i.id,
|
|
2246
2363
|
description: ""
|
|
@@ -2249,30 +2366,30 @@ var ht = (e, t = "en") => {
|
|
|
2249
2366
|
description: ""
|
|
2250
2367
|
};
|
|
2251
2368
|
};
|
|
2252
|
-
function
|
|
2369
|
+
function xt(e) {
|
|
2253
2370
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
2254
2371
|
n += "|:----|:-------:|\n";
|
|
2255
|
-
for (let e of Object.keys(
|
|
2372
|
+
for (let e of Object.keys(pt)) n += `| ${pt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
2256
2373
|
return n;
|
|
2257
2374
|
}
|
|
2258
2375
|
// src/component/module/cookbook/cookbookConfig.schema.ts
|
|
2259
|
-
var
|
|
2260
|
-
...
|
|
2376
|
+
var St = T(["list"]), Ct = /* @__PURE__ */ S({
|
|
2377
|
+
...O,
|
|
2261
2378
|
typeId: /* @__PURE__ */ _("cookbook"),
|
|
2262
|
-
actionNames: /* @__PURE__ */ h(
|
|
2263
|
-
recipes: /* @__PURE__ */ h(
|
|
2264
|
-
}),
|
|
2379
|
+
actionNames: /* @__PURE__ */ h(St),
|
|
2380
|
+
recipes: /* @__PURE__ */ h(E)
|
|
2381
|
+
}), wt = T([
|
|
2265
2382
|
"list",
|
|
2266
2383
|
"render",
|
|
2267
2384
|
"setColorMode"
|
|
2268
|
-
]),
|
|
2269
|
-
...
|
|
2385
|
+
]), Tt = /* @__PURE__ */ S({
|
|
2386
|
+
...O,
|
|
2270
2387
|
typeId: /* @__PURE__ */ _("presenter"),
|
|
2271
|
-
actionNames: /* @__PURE__ */ h(
|
|
2272
|
-
presentations: /* @__PURE__ */ h(
|
|
2273
|
-
}),
|
|
2274
|
-
async function
|
|
2275
|
-
let i = e.id, a = `${
|
|
2388
|
+
actionNames: /* @__PURE__ */ h(wt),
|
|
2389
|
+
presentations: /* @__PURE__ */ h(E)
|
|
2390
|
+
}), Et = "https://engine-eu.dpuse.app/presenters";
|
|
2391
|
+
async function Dt(e, t, n, r) {
|
|
2392
|
+
let i = e.id, a = `${Et}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
2276
2393
|
try {
|
|
2277
2394
|
return new (await (import(
|
|
2278
2395
|
/* @vite-ignore */
|
|
@@ -2288,7 +2405,7 @@ async function wt(e, t, n, r) {
|
|
|
2288
2405
|
}
|
|
2289
2406
|
}
|
|
2290
2407
|
// src/locale/index.ts
|
|
2291
|
-
function
|
|
2408
|
+
function Ot(e, t) {
|
|
2292
2409
|
return {
|
|
2293
2410
|
...e,
|
|
2294
2411
|
label: e.label[t] ?? e.id,
|
|
@@ -2296,7 +2413,7 @@ function Tt(e, t) {
|
|
|
2296
2413
|
verb: e.verb?.[t] ?? void 0
|
|
2297
2414
|
};
|
|
2298
2415
|
}
|
|
2299
|
-
function
|
|
2416
|
+
function kt(e, t, n = !1) {
|
|
2300
2417
|
let r = e.map((e) => ({
|
|
2301
2418
|
...e,
|
|
2302
2419
|
label: e.label[t] ?? e.id,
|
|
@@ -2305,7 +2422,7 @@ function Et(e, t, n = !1) {
|
|
|
2305
2422
|
}));
|
|
2306
2423
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
2307
2424
|
}
|
|
2308
|
-
function
|
|
2425
|
+
function At(e, t) {
|
|
2309
2426
|
return {
|
|
2310
2427
|
...e,
|
|
2311
2428
|
label: e.label[t] ?? e.id,
|
|
@@ -2313,7 +2430,7 @@ function Dt(e, t) {
|
|
|
2313
2430
|
};
|
|
2314
2431
|
}
|
|
2315
2432
|
// src/utilities/index.ts
|
|
2316
|
-
var
|
|
2433
|
+
var jt = /* @__PURE__ */ new Map([
|
|
2317
2434
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
2318
2435
|
["avro", "application/vnd.apache.avro"],
|
|
2319
2436
|
["bin", "application/octet-stream"],
|
|
@@ -2340,14 +2457,14 @@ var Ot = /* @__PURE__ */ new Map([
|
|
|
2340
2457
|
["minute", 6e4],
|
|
2341
2458
|
["second", 1e3],
|
|
2342
2459
|
["millisecond", 1]
|
|
2343
|
-
],
|
|
2460
|
+
], Mt = [
|
|
2344
2461
|
["byte", 1],
|
|
2345
2462
|
["kilobyte", 1024],
|
|
2346
2463
|
["megabyte", 1048576],
|
|
2347
2464
|
["gigabyte", 1073741824],
|
|
2348
2465
|
["terabyte", 1099511627776]
|
|
2349
|
-
], Q = /* @__PURE__ */ new Map(),
|
|
2350
|
-
function
|
|
2466
|
+
], Q = /* @__PURE__ */ new Map(), Nt = /* @__PURE__ */ new Map();
|
|
2467
|
+
function Pt(e, t = 2, n = t, r = X) {
|
|
2351
2468
|
return e == null ? "" : $(r, {
|
|
2352
2469
|
localeMatcher: "best fit",
|
|
2353
2470
|
maximumFractionDigits: t,
|
|
@@ -2357,18 +2474,18 @@ function jt(e, t = 2, n = t, r = X) {
|
|
|
2357
2474
|
useGrouping: !0
|
|
2358
2475
|
}).format(e);
|
|
2359
2476
|
}
|
|
2360
|
-
function
|
|
2361
|
-
return
|
|
2477
|
+
function Ft(e, t = X) {
|
|
2478
|
+
return Pt(e, 0, 0, t);
|
|
2362
2479
|
}
|
|
2363
|
-
function
|
|
2480
|
+
function It(e, t = 1, n = X) {
|
|
2364
2481
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
2365
2482
|
maximumFractionDigits: t,
|
|
2366
2483
|
notation: "compact"
|
|
2367
2484
|
}).format(e);
|
|
2368
2485
|
}
|
|
2369
|
-
function
|
|
2486
|
+
function Lt(e, t = 1, n = X) {
|
|
2370
2487
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2371
|
-
let [r, i] =
|
|
2488
|
+
let [r, i] = Mt.find(([, n]) => Kt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
2372
2489
|
return $(n, {
|
|
2373
2490
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
2374
2491
|
style: "unit",
|
|
@@ -2376,7 +2493,7 @@ function Pt(e, t = 1, n = X) {
|
|
|
2376
2493
|
unitDisplay: i === 1 ? "long" : "short"
|
|
2377
2494
|
}).format(e / i);
|
|
2378
2495
|
}
|
|
2379
|
-
function
|
|
2496
|
+
function Rt(e, t = "millisecond", n = X) {
|
|
2380
2497
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2381
2498
|
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
2499
|
for (let [t, i] of s) {
|
|
@@ -2390,25 +2507,25 @@ function Ft(e, t = "millisecond", n = X) {
|
|
|
2390
2507
|
unitDisplay: "short"
|
|
2391
2508
|
}).format(o));
|
|
2392
2509
|
}
|
|
2393
|
-
return
|
|
2510
|
+
return Gt(n).format(c);
|
|
2394
2511
|
}
|
|
2395
|
-
function
|
|
2512
|
+
function zt(e) {
|
|
2396
2513
|
if (!e) return;
|
|
2397
|
-
let t =
|
|
2514
|
+
let t = Wt(e);
|
|
2398
2515
|
return t === void 0 ? e : e.slice(0, t);
|
|
2399
2516
|
}
|
|
2400
|
-
function
|
|
2517
|
+
function Bt(e) {
|
|
2401
2518
|
if (!e) return;
|
|
2402
|
-
let t =
|
|
2519
|
+
let t = Wt(e);
|
|
2403
2520
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
2404
2521
|
}
|
|
2405
|
-
function
|
|
2406
|
-
return e != null &&
|
|
2522
|
+
function Vt(e) {
|
|
2523
|
+
return e != null && jt.has(e.toLowerCase());
|
|
2407
2524
|
}
|
|
2408
|
-
function
|
|
2409
|
-
return (e == null ? void 0 :
|
|
2525
|
+
function Ht(e) {
|
|
2526
|
+
return (e == null ? void 0 : jt.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
2410
2527
|
}
|
|
2411
|
-
function
|
|
2528
|
+
function Ut(e) {
|
|
2412
2529
|
switch (e) {
|
|
2413
2530
|
case "Edm.Boolean": return "boolean";
|
|
2414
2531
|
case "Edm.Byte":
|
|
@@ -2429,11 +2546,11 @@ function Bt(e) {
|
|
|
2429
2546
|
default: return "unknown";
|
|
2430
2547
|
}
|
|
2431
2548
|
}
|
|
2432
|
-
function
|
|
2549
|
+
function Wt(e) {
|
|
2433
2550
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
2434
2551
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
2435
2552
|
}
|
|
2436
|
-
function
|
|
2553
|
+
function Gt(e) {
|
|
2437
2554
|
let t = Q.get(e);
|
|
2438
2555
|
return t || (t = new Intl.ListFormat(e, {
|
|
2439
2556
|
style: "narrow",
|
|
@@ -2441,11 +2558,11 @@ function Ht(e) {
|
|
|
2441
2558
|
}), Q.set(e, t)), t;
|
|
2442
2559
|
}
|
|
2443
2560
|
function $(e, t) {
|
|
2444
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
2445
|
-
return r || (r = new Intl.NumberFormat(e, t),
|
|
2561
|
+
let n = `${e}|${JSON.stringify(t)}`, r = Nt.get(n);
|
|
2562
|
+
return r || (r = new Intl.NumberFormat(e, t), Nt.set(n, r)), r;
|
|
2446
2563
|
}
|
|
2447
|
-
function
|
|
2564
|
+
function Kt(e, t) {
|
|
2448
2565
|
let n = 10 ** t;
|
|
2449
2566
|
return Math.round(e * n) / n;
|
|
2450
2567
|
}
|
|
2451
|
-
export {
|
|
2568
|
+
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 };
|