@dpuse/dpuse-shared 1.0.164 → 1.0.166

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.
@@ -135,11 +135,11 @@ function h(e, t) {
135
135
  });
136
136
  }
137
137
  /* @__NO_SIDE_EFFECTS__ */
138
- function ee(e) {
138
+ function g(e) {
139
139
  return d({
140
140
  kind: "schema",
141
141
  type: "boolean",
142
- reference: ee,
142
+ reference: g,
143
143
  expects: "boolean",
144
144
  async: !1,
145
145
  message: e,
@@ -149,11 +149,11 @@ function ee(e) {
149
149
  });
150
150
  }
151
151
  /* @__NO_SIDE_EFFECTS__ */
152
- function g(e, t) {
152
+ function _(e, t) {
153
153
  return d({
154
154
  kind: "schema",
155
155
  type: "literal",
156
- reference: g,
156
+ reference: _,
157
157
  expects: /* @__PURE__ */ o(e),
158
158
  async: !1,
159
159
  literal: e,
@@ -164,11 +164,11 @@ function g(e, t) {
164
164
  });
165
165
  }
166
166
  /* @__NO_SIDE_EFFECTS__ */
167
- function _(e, t) {
167
+ function v(e, t) {
168
168
  return d({
169
169
  kind: "schema",
170
170
  type: "nullable",
171
- reference: _,
171
+ reference: v,
172
172
  expects: `(${e.expects} | null)`,
173
173
  async: !1,
174
174
  wrapped: e,
@@ -179,11 +179,11 @@ function _(e, t) {
179
179
  });
180
180
  }
181
181
  /* @__NO_SIDE_EFFECTS__ */
182
- function v(e) {
182
+ function y(e) {
183
183
  return d({
184
184
  kind: "schema",
185
185
  type: "number",
186
- reference: v,
186
+ reference: y,
187
187
  expects: "number",
188
188
  async: !1,
189
189
  message: e,
@@ -193,11 +193,11 @@ function v(e) {
193
193
  });
194
194
  }
195
195
  /* @__NO_SIDE_EFFECTS__ */
196
- function y(e, t) {
196
+ function b(e, t) {
197
197
  return d({
198
198
  kind: "schema",
199
199
  type: "optional",
200
- reference: y,
200
+ reference: b,
201
201
  expects: `(${e.expects} | undefined)`,
202
202
  async: !1,
203
203
  wrapped: e,
@@ -208,11 +208,11 @@ function y(e, t) {
208
208
  });
209
209
  }
210
210
  /* @__NO_SIDE_EFFECTS__ */
211
- function b(e, t, n) {
211
+ function x(e, t, n) {
212
212
  return d({
213
213
  kind: "schema",
214
214
  type: "record",
215
- reference: b,
215
+ reference: x,
216
216
  expects: "Object",
217
217
  async: !1,
218
218
  key: e,
@@ -261,11 +261,11 @@ function b(e, t, n) {
261
261
  });
262
262
  }
263
263
  /* @__NO_SIDE_EFFECTS__ */
264
- function x(e, t) {
264
+ function S(e, t) {
265
265
  return d({
266
266
  kind: "schema",
267
267
  type: "strict_object",
268
- reference: x,
268
+ reference: S,
269
269
  expects: "Object",
270
270
  async: !1,
271
271
  entries: e,
@@ -328,11 +328,11 @@ function x(e, t) {
328
328
  });
329
329
  }
330
330
  /* @__NO_SIDE_EFFECTS__ */
331
- function S(e) {
331
+ function C(e) {
332
332
  return d({
333
333
  kind: "schema",
334
334
  type: "string",
335
- reference: S,
335
+ reference: C,
336
336
  expects: "string",
337
337
  async: !1,
338
338
  message: e,
@@ -342,7 +342,7 @@ function S(e) {
342
342
  });
343
343
  }
344
344
  /* @__NO_SIDE_EFFECTS__ */
345
- function C(e) {
345
+ function ee(e) {
346
346
  let t;
347
347
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
348
348
  else t = n.issues;
@@ -373,9 +373,9 @@ function w(e, t) {
373
373
  if (n) return n;
374
374
  if (r) {
375
375
  if (r.length === 1) return r[0];
376
- s(this, "type", e, t, { issues: /* @__PURE__ */ C(r) }), e.typed = !0;
376
+ s(this, "type", e, t, { issues: /* @__PURE__ */ ee(r) }), e.typed = !0;
377
377
  } else if (i?.length === 1) return i[0];
378
- else s(this, "type", e, t, { issues: /* @__PURE__ */ C(i) });
378
+ else s(this, "type", e, t, { issues: /* @__PURE__ */ ee(i) });
379
379
  return e;
380
380
  }
381
381
  });
@@ -399,22 +399,22 @@ function te(...e) {
399
399
  }
400
400
  //#endregion
401
401
  //#region src/locale/locale.schema.ts
402
- var T = /* @__PURE__ */ x({
403
- en: /* @__PURE__ */ S(),
404
- es: /* @__PURE__ */ S()
402
+ var T = /* @__PURE__ */ S({
403
+ en: /* @__PURE__ */ C(),
404
+ es: /* @__PURE__ */ C()
405
405
  }), ne = {
406
- id: /* @__PURE__ */ S(),
407
- label: /* @__PURE__ */ x({
408
- en: /* @__PURE__ */ y(/* @__PURE__ */ S()),
409
- es: /* @__PURE__ */ y(/* @__PURE__ */ S())
406
+ id: /* @__PURE__ */ C(),
407
+ label: /* @__PURE__ */ S({
408
+ en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
409
+ es: /* @__PURE__ */ b(/* @__PURE__ */ C())
410
410
  }),
411
- description: /* @__PURE__ */ x({
412
- en: /* @__PURE__ */ y(/* @__PURE__ */ S()),
413
- es: /* @__PURE__ */ y(/* @__PURE__ */ S())
411
+ description: /* @__PURE__ */ S({
412
+ en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
413
+ es: /* @__PURE__ */ b(/* @__PURE__ */ C())
414
414
  }),
415
- icon: /* @__PURE__ */ _(/* @__PURE__ */ S()),
416
- iconDark: /* @__PURE__ */ _(/* @__PURE__ */ S())
417
- }, E = (e) => /* @__PURE__ */ w(e.map((e) => /* @__PURE__ */ g(e))), re = E([
415
+ icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
416
+ iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C())
417
+ }, E = (e) => /* @__PURE__ */ w(e.map((e) => /* @__PURE__ */ _(e))), re = E([
418
418
  "app",
419
419
  "connector",
420
420
  "connectorConnection",
@@ -445,23 +445,23 @@ var T = /* @__PURE__ */ x({
445
445
  "beta",
446
446
  "releaseCandidate",
447
447
  "generalAvailability"
448
- ]), oe = /* @__PURE__ */ x({
448
+ ]), oe = /* @__PURE__ */ S({
449
449
  color: ie,
450
- label: /* @__PURE__ */ S()
450
+ label: /* @__PURE__ */ C()
451
451
  }), D = {
452
452
  ...ne,
453
453
  typeId: re
454
- }, O = /* @__PURE__ */ x({
454
+ }, se = /* @__PURE__ */ S({
455
455
  ...D,
456
- order: /* @__PURE__ */ v(),
457
- path: /* @__PURE__ */ S()
458
- }), k = {
456
+ order: /* @__PURE__ */ y(),
457
+ path: /* @__PURE__ */ C()
458
+ }), O = {
459
459
  ...D,
460
- firstCreatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
461
- lastUpdatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
462
- status: /* @__PURE__ */ _(oe),
463
- statusId: /* @__PURE__ */ _(ae)
464
- }, se = /* @__PURE__ */ x({ ...k }), ce = [
460
+ firstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
461
+ lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
462
+ status: /* @__PURE__ */ v(oe),
463
+ statusId: /* @__PURE__ */ v(ae)
464
+ }, ce = /* @__PURE__ */ S({ ...O }), le = [
465
465
  {
466
466
  id: "alpha",
467
467
  color: "danger",
@@ -495,8 +495,8 @@ var T = /* @__PURE__ */ x({
495
495
  }
496
496
  }
497
497
  ];
498
- function le(e, t = "en") {
499
- let n = ce.find((t) => t.id === e);
498
+ function ue(e, t = "en") {
499
+ let n = le.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 le(e, t = "en") {
511
511
  }
512
512
  //#endregion
513
513
  //#region src/component/dataView/dataFormatIcons.ts
514
- var ue = {
514
+ var de = {
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 ue = {
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 A = [
567
+ var k = [
568
568
  ",",
569
569
  ";",
570
570
  " ",
@@ -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 j = {
590
- ...k,
591
- vendorAccountURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
592
- vendorDocumentationURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
593
- vendorHomeURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
594
- version: /* @__PURE__ */ S()
589
+ var A = {
590
+ ...O,
591
+ vendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
592
+ vendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
593
+ vendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
594
+ version: /* @__PURE__ */ C()
595
595
  };
596
- ({ ...j });
596
+ ({ ...A });
597
597
  //#endregion
598
598
  //#region src/component/module/connector/connectorConfig.schema.ts
599
- var de = E([
599
+ var fe = E([
600
600
  "abortOperation",
601
601
  "auditObjectContent",
602
602
  "closeStore",
@@ -616,94 +616,94 @@ var de = E([
616
616
  "retrieveChunks",
617
617
  "retrieveRecords",
618
618
  "upsertRecords"
619
- ]), fe = E([
619
+ ]), pe = E([
620
620
  "application",
621
621
  "curatedDataset",
622
622
  "database",
623
623
  "fileStore"
624
- ]), pe = /* @__PURE__ */ x({ label: T }), me = E([
624
+ ]), me = /* @__PURE__ */ S({ label: T }), he = E([
625
625
  "apiEndpoint",
626
626
  "file",
627
627
  "table"
628
- ]), he = E([
628
+ ]), ge = E([
629
629
  "bidirectional",
630
630
  "destination",
631
631
  "source",
632
632
  "unknown"
633
- ]), ge = /* @__PURE__ */ x({ label: T }), _e = /* @__PURE__ */ x({
633
+ ]), _e = /* @__PURE__ */ S({ label: T }), ve = /* @__PURE__ */ S({
634
634
  authMethodId: E([
635
635
  "apiKey",
636
636
  "disabled",
637
637
  "oAuth2",
638
638
  "none"
639
639
  ]),
640
- activeConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ v()),
641
- canDescribe: /* @__PURE__ */ y(/* @__PURE__ */ ee()),
642
- id: /* @__PURE__ */ y(/* @__PURE__ */ S()),
643
- label: /* @__PURE__ */ y(T),
644
- maxConnectionCount: /* @__PURE__ */ _(/* @__PURE__ */ v()),
645
- params: /* @__PURE__ */ y(/* @__PURE__ */ h(/* @__PURE__ */ b(/* @__PURE__ */ S(), /* @__PURE__ */ S())))
646
- }), ve = /* @__PURE__ */ x({
647
- ...j,
648
- typeId: /* @__PURE__ */ g("connector"),
649
- actionNames: /* @__PURE__ */ h(de),
650
- category: /* @__PURE__ */ _(pe),
651
- categoryId: fe,
652
- implementations: /* @__PURE__ */ b(/* @__PURE__ */ S(), _e),
653
- itemTypeId: me,
654
- usage: /* @__PURE__ */ _(ge),
655
- usageId: /* @__PURE__ */ _(he)
656
- }), M = 2048, N = "[REDACTED]", ye = 10, P = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, be = [
657
- [/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
658
- [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => P.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
659
- [/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
660
- [/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
661
- [/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
662
- ], F = class extends Error {
640
+ activeConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),
641
+ canDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),
642
+ id: /* @__PURE__ */ b(/* @__PURE__ */ C()),
643
+ label: /* @__PURE__ */ b(T),
644
+ maxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),
645
+ params: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
646
+ }), ye = /* @__PURE__ */ S({
647
+ ...A,
648
+ typeId: /* @__PURE__ */ _("connector"),
649
+ actionNames: /* @__PURE__ */ h(fe),
650
+ category: /* @__PURE__ */ v(me),
651
+ categoryId: pe,
652
+ implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), ve),
653
+ itemTypeId: he,
654
+ usage: /* @__PURE__ */ v(_e),
655
+ usageId: /* @__PURE__ */ v(ge)
656
+ }), j = 2048, M = "[REDACTED]", be = 10, N = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, xe = [
657
+ [/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${M}`],
658
+ [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => N.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${M}` : e],
659
+ [/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => M],
660
+ [/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => M],
661
+ [/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => M]
662
+ ], P = class extends Error {
663
663
  data;
664
664
  locator;
665
665
  constructor(e, t, n, r) {
666
666
  super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
667
667
  }
668
- }, I = class extends F {
668
+ }, F = class extends P {
669
669
  constructor(e, t, n, r) {
670
670
  super(e, t, n, r), this.name = "AppError";
671
671
  }
672
- }, L = class extends F {
672
+ }, I = class extends P {
673
673
  constructor(e, t, n, r) {
674
674
  super(e, t, n, r), this.name = "APIError";
675
675
  }
676
- }, R = class extends F {
676
+ }, L = class extends P {
677
677
  constructor(e, t, n, r) {
678
678
  super(e, t, n, r), this.name = "EngineError";
679
679
  }
680
- }, z = class extends F {
680
+ }, R = class extends P {
681
681
  constructor(e, t, n, r) {
682
682
  super(e, t, n, r), this.name = "ConnectorError";
683
683
  }
684
- }, B = class extends F {
684
+ }, z = class extends P {
685
685
  constructor(e, t, n, r) {
686
686
  super(e, t, n, r), this.name = "FetchError";
687
687
  }
688
688
  };
689
- async function xe(e, t, n) {
689
+ async function Se(e, t, n) {
690
690
  let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
691
691
  try {
692
692
  a = await e.text();
693
693
  } catch (e) {
694
- a = `<body unavailable: ${V(e).message}>`;
694
+ a = `<body unavailable: ${B(e).message}>`;
695
695
  }
696
- return new B(i, n, { body: ke(a) });
696
+ return new z(i, n, { body: Ae(a) });
697
697
  }
698
- function Se(e) {
698
+ function Ce(e) {
699
699
  return e.map((e) => e.message).join(" ");
700
700
  }
701
- function Ce(e) {
701
+ function we(e) {
702
702
  try {
703
703
  e();
704
704
  } catch {}
705
705
  }
706
- function V(e) {
706
+ function B(e) {
707
707
  if (e instanceof Error) return e;
708
708
  if (typeof e == "string") return Error(e);
709
709
  if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
@@ -715,24 +715,24 @@ function V(e) {
715
715
  }
716
716
  return /* @__PURE__ */ Error("Unknown error");
717
717
  }
718
- function we(e) {
719
- let t = /* @__PURE__ */ new Set(), n = [], r = V(e);
718
+ function Te(e) {
719
+ let t = /* @__PURE__ */ new Set(), n = [], r = B(e);
720
720
  for (; r != null && !t.has(r);) {
721
721
  t.add(r);
722
- let [e, i] = Ae(r), a = Oe(e);
722
+ let [e, i] = je(r), a = ke(e);
723
723
  /(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
724
724
  }
725
725
  return n;
726
726
  }
727
- function Te(e) {
727
+ function Ee(e) {
728
728
  let t;
729
729
  for (let n of e.toReversed()) {
730
- let e = De(n, t);
730
+ let e = Oe(n, t);
731
731
  n.stack !== void 0 && (e.stack = n.stack), t = e;
732
732
  }
733
733
  return t ?? /* @__PURE__ */ Error("No error to unserialise.");
734
734
  }
735
- function Ee(e) {
735
+ function De(e) {
736
736
  let t;
737
737
  try {
738
738
  t = JSON.stringify(e);
@@ -741,13 +741,13 @@ function Ee(e) {
741
741
  }
742
742
  return t === "" && (t = "Unknown error"), t;
743
743
  }
744
- function De(e, t) {
744
+ function Oe(e, t) {
745
745
  switch (e.name) {
746
- case "APIError": return new L(e.message, e.locator, e.data, { cause: t });
747
- case "AppError": return new I(e.message, e.locator, e.data, { cause: t });
748
- case "ConnectorError": return new z(e.message, e.locator, e.data, { cause: t });
749
- case "EngineError": return new R(e.message, e.locator, e.data, { cause: t });
750
- case "FetchError": return new B(e.message, e.locator, e.data, { cause: t });
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
751
  default: {
752
752
  let n = e.name;
753
753
  return new class extends Error {
@@ -756,29 +756,29 @@ function De(e, t) {
756
756
  }
757
757
  }
758
758
  }
759
- function Oe(e) {
759
+ function ke(e) {
760
760
  let { data: t, message: n, stack: r } = e;
761
761
  return {
762
762
  ...e,
763
- data: t === void 0 ? void 0 : U(t, /* @__PURE__ */ new WeakSet(), 0),
764
- message: H(n),
765
- stack: r === void 0 ? void 0 : H(r)
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
766
  };
767
767
  }
768
- function H(e) {
768
+ function V(e) {
769
769
  let t = e;
770
- for (let [e, n] of be) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
770
+ for (let [e, n] of xe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
771
771
  return t;
772
772
  }
773
- function U(e, t, n) {
774
- return typeof e == "string" ? H(e) : typeof e != "object" || !e ? e : n >= ye ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => U(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && P.test(e) ? N : U(r, t, n + 1)])));
775
- }
776
- function ke(e) {
777
- if (e != null && e !== "") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;
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)])));
778
775
  }
779
776
  function Ae(e) {
780
- let t = e.cause == null ? null : V(e.cause);
781
- if (e instanceof F) return [{
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
782
  data: e.data,
783
783
  locator: e.locator,
784
784
  message: e.message,
@@ -795,12 +795,12 @@ function Ae(e) {
795
795
  }, t] : [{
796
796
  data: n,
797
797
  locator: "",
798
- message: Ee(e),
798
+ message: De(e),
799
799
  name: "Error",
800
800
  stack: void 0
801
801
  }, null];
802
802
  }
803
- var je = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(E([
803
+ var Me = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(E([
804
804
  "arrow",
805
805
  "avro",
806
806
  "dtv",
@@ -813,16 +813,16 @@ var je = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h
813
813
  "sqlite",
814
814
  "xlsx",
815
815
  "xml"
816
- ])), /* @__PURE__ */ f(1)) }), Me = /* @__PURE__ */ h(/* @__PURE__ */ S()), Ne = /* @__PURE__ */ x({
817
- ...j,
818
- typeId: /* @__PURE__ */ g("tool"),
819
- actionNames: /* @__PURE__ */ y(Me),
820
- parser: /* @__PURE__ */ y(je)
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
821
  });
822
822
  //#endregion
823
823
  //#region src/component/module/tool/delimitedText.ts
824
- async function Pe(e, t, n) {
825
- let r = Fe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ie(e, t.valueDelimiterIds, t.isComplete, n);
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
826
  return {
827
827
  issues: i,
828
828
  parsedRecords: a,
@@ -830,16 +830,16 @@ async function Pe(e, t, n) {
830
830
  valueDelimiterId: o
831
831
  };
832
832
  }
833
- function Fe(e) {
833
+ function Ie(e) {
834
834
  let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
835
835
  return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
836
836
  }
837
- async function Ie(e, t, n, r) {
837
+ async function Le(e, t, n, r) {
838
838
  let i, a, o, s = [], c, l = !1;
839
839
  for (let u of t) {
840
840
  let { issues: t, records: d } = await r(e, u, n);
841
841
  if (t.length > 0) {
842
- c = Le(c, {
842
+ c = Re(c, {
843
843
  delimiter: u,
844
844
  issues: t,
845
845
  records: d
@@ -847,7 +847,7 @@ async function Ie(e, t, n, r) {
847
847
  continue;
848
848
  }
849
849
  if (l = !0, d.length === 0) continue;
850
- let { averageValueCount: f, sumOfValueCountDiffs: p } = Re(d);
850
+ let { averageValueCount: f, sumOfValueCountDiffs: p } = ze(d);
851
851
  (!o || p <= o) && (!a || f > a) && (i = u, a = f, o = p, s = d);
852
852
  }
853
853
  if (!l && c != null) {
@@ -855,19 +855,19 @@ async function Ie(e, t, n, r) {
855
855
  return {
856
856
  issues: t,
857
857
  parsedRecords: n,
858
- valueDelimiterId: W(n) ? e : void 0
858
+ valueDelimiterId: U(n) ? e : void 0
859
859
  };
860
860
  }
861
861
  return {
862
862
  issues: [],
863
863
  parsedRecords: s,
864
- valueDelimiterId: i != null && W(s) ? i : void 0
864
+ valueDelimiterId: i != null && U(s) ? i : void 0
865
865
  };
866
866
  }
867
- function Le(e, t) {
867
+ function Re(e, t) {
868
868
  return e == null || t.issues.length < e.issues.length ? t : e;
869
869
  }
870
- function Re(e) {
870
+ function ze(e) {
871
871
  let t = 0, n = 0, r;
872
872
  for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
873
873
  return {
@@ -875,7 +875,7 @@ function Re(e) {
875
875
  sumOfValueCountDiffs: n
876
876
  };
877
877
  }
878
- function W(e) {
878
+ function U(e) {
879
879
  let t = /* @__PURE__ */ new Map();
880
880
  for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
881
881
  let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
@@ -883,31 +883,32 @@ function W(e) {
883
883
  }
884
884
  //#endregion
885
885
  //#region src/component/module/tool/index.ts
886
- var ze = "https://engine-eu.dpuse.app/tools", G = "dpuse-tool-";
887
- function K(e, t) {
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
888
  return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
889
889
  }
890
- function q(e, t, n) {
891
- let r = K(e, t), [i] = r;
890
+ function K(e, t, n) {
891
+ let r = G(e, t), [i] = r;
892
892
  if (i === void 0) {
893
893
  let n = {
894
894
  availableToolIds: e.map((e) => e.id),
895
895
  dataFormatId: t
896
896
  };
897
- throw new I(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
897
+ throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
898
898
  }
899
- return r.find((e) => e.id === n) ?? i;
899
+ let a = Ve[t];
900
+ return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
900
901
  }
901
- async function Be(e, t) {
902
- let n = `${G}${t}`, r = e.find((e) => e.id === n);
902
+ async function He(e, t) {
903
+ let n = `${W}${t}`, r = e.find((e) => e.id === n);
903
904
  if (!r) {
904
905
  let r = {
905
906
  availableToolIds: e.map((e) => e.id),
906
907
  toolName: n
907
908
  };
908
- throw new I(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
909
+ throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
909
910
  }
910
- let i = `${ze}/${t}_v${r.version}/${n}.es.js`;
911
+ let i = `${Be}/${t}_v${r.version}/${n}.es.js`;
911
912
  try {
912
913
  return new (await (import(
913
914
  /* @vite-ignore */
@@ -919,15 +920,15 @@ async function Be(e, t) {
919
920
  url: i,
920
921
  version: r.version
921
922
  };
922
- throw new I(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
923
+ throw new F(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
923
924
  }
924
925
  }
925
926
  //#endregion
926
927
  //#region src/component/module/connector/objectParsing.ts
927
- var Ve = "\n", J = ",";
928
- async function He(e) {
929
- let { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o } = e, { dataFormatId: s, text: c } = n, l = n.bytes.length;
930
- if (l === 0) return {
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 {
931
932
  asAt: t,
932
933
  columnConfigs: [],
933
934
  dataFormatId: "dtv",
@@ -936,7 +937,7 @@ async function He(e) {
936
937
  encodingConfidenceLevel: void 0,
937
938
  fileType: void 0,
938
939
  hasHeaders: !1,
939
- recordDelimiterId: Ve,
940
+ recordDelimiterId: Ue,
940
941
  parsedRecords: [],
941
942
  issues: [{
942
943
  id: "empty",
@@ -946,12 +947,12 @@ async function He(e) {
946
947
  }],
947
948
  size: 0,
948
949
  text: void 0,
949
- valueDelimiterId: J
950
+ valueDelimiterId: q
950
951
  };
951
- if (s == null || c == null || K(o, s).length === 0) return {
952
+ if (c == null || l == null || G(o, c).length === 0) return {
952
953
  asAt: t,
953
954
  columnConfigs: [],
954
- dataFormatId: s ?? "unknown",
955
+ dataFormatId: c ?? "unknown",
955
956
  duration: performance.now() - a,
956
957
  encodingId: n.encodingId,
957
958
  encodingConfidenceLevel: n.encodingConfidenceLevel,
@@ -960,39 +961,39 @@ async function He(e) {
960
961
  recordDelimiterId: void 0,
961
962
  parsedRecords: [],
962
963
  issues: [],
963
- size: l,
964
- text: c,
964
+ size: u,
965
+ text: l,
965
966
  valueDelimiterId: void 0
966
967
  };
967
- let { parser: u, parserId: d } = await Y(o, s, i), f = await u.parseText(c, {
968
- dataFormatId: s,
968
+ let { parser: d, parserId: f } = await J(o, c, i), p = s == null ? k : [s], m = await d.parseText(l, {
969
+ dataFormatId: c,
969
970
  isComplete: n.isComplete,
970
- valueDelimiterIds: A
971
- }), p = s === "dtv", m = p && f.valueDelimiterId == null ? await u.parseText(c, {
972
- dataFormatId: s,
971
+ valueDelimiterIds: p
972
+ }), h = c === "dtv", g = h && s == null && m.valueDelimiterId == null ? await d.parseText(l, {
973
+ dataFormatId: c,
973
974
  isComplete: n.isComplete,
974
- valueDelimiterIds: [J]
975
- }) : f, h = r(m.parsedRecords);
975
+ valueDelimiterIds: [q]
976
+ }) : m, _ = r(g.parsedRecords);
976
977
  return {
977
978
  asAt: t,
978
- columnConfigs: h.columnConfigs,
979
- dataFormatId: s,
979
+ columnConfigs: _.columnConfigs,
980
+ dataFormatId: c,
980
981
  duration: performance.now() - a,
981
982
  encodingId: n.encodingId,
982
983
  encodingConfidenceLevel: n.encodingConfidenceLevel,
983
984
  fileType: n.fileTypeConfig,
984
- hasHeaders: h.hasHeaderRow,
985
- recordDelimiterId: m.recordDelimiterId,
986
- parsedRecords: m.parsedRecords,
987
- parserId: d,
988
- issues: m.issues,
989
- size: l,
990
- text: c,
991
- valueDelimiterId: p ? m.valueDelimiterId ?? J : m.valueDelimiterId
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
992
993
  };
993
994
  }
994
- async function Ue(e) {
995
- let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);
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);
996
997
  return await o.parseStream(i, {
997
998
  abortSignal: r,
998
999
  chunkSize: n.chunkSize,
@@ -1001,8 +1002,8 @@ async function Ue(e) {
1001
1002
  valueDelimiterId: n.valueDelimiterId
1002
1003
  }, t);
1003
1004
  }
1004
- async function We(e) {
1005
- 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 = Ge(a), f = await u.parseStream(d.stream, {
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, {
1006
1007
  abortSignal: i,
1007
1008
  chunkSize: r.chunkSize,
1008
1009
  dataFormatId: r.dataFormatId,
@@ -1023,7 +1024,7 @@ async function We(e) {
1023
1024
  sourceWaitDuration: d.waitDuration()
1024
1025
  };
1025
1026
  }
1026
- function Ge(e) {
1027
+ function qe(e) {
1027
1028
  let t = e.getReader(), n = 0;
1028
1029
  return {
1029
1030
  stream: new ReadableStream({
@@ -1038,16 +1039,16 @@ function Ge(e) {
1038
1039
  waitDuration: () => n
1039
1040
  };
1040
1041
  }
1041
- async function Y(e, t, n) {
1042
- let r = q(e, t, n);
1042
+ async function J(e, t, n) {
1043
+ let r = K(e, t, n);
1043
1044
  return {
1044
- parser: await Be(e, r.id.slice(G.length)),
1045
+ parser: await He(e, r.id.slice(W.length)),
1045
1046
  parserId: r.id
1046
1047
  };
1047
1048
  }
1048
1049
  //#endregion
1049
1050
  //#region src/component/module/connector/index.ts
1050
- var Ke = [
1051
+ var Je = [
1051
1052
  {
1052
1053
  id: "application",
1053
1054
  label: {
@@ -1076,7 +1077,7 @@ var Ke = [
1076
1077
  es: "Almacén de Archivos"
1077
1078
  }
1078
1079
  }
1079
- ], qe = [
1080
+ ], Ye = [
1080
1081
  {
1081
1082
  id: "apiEndpoint",
1082
1083
  label: {
@@ -1098,7 +1099,7 @@ var Ke = [
1098
1099
  es: "Tabla"
1099
1100
  }
1100
1101
  }
1101
- ], Je = {
1102
+ ], Xe = {
1102
1103
  abortOperation: "Abort Operation",
1103
1104
  auditObjectContent: "Audit Object Content",
1104
1105
  closeStore: "Close Store",
@@ -1118,7 +1119,7 @@ var Ke = [
1118
1119
  retrieveChunks: "Retrieve Chunks",
1119
1120
  retrieveRecords: "Retrieve Records",
1120
1121
  upsertRecords: "Upsert Records"
1121
- }, Ye = [
1122
+ }, Ze = [
1122
1123
  {
1123
1124
  id: "bidirectional",
1124
1125
  label: {
@@ -1147,13 +1148,13 @@ var Ke = [
1147
1148
  es: "Desconocido"
1148
1149
  }
1149
1150
  }
1150
- ], Xe = /* @__PURE__ */ new Set([
1151
+ ], Qe = /* @__PURE__ */ new Set([
1151
1152
  "createObject",
1152
1153
  "dropObject",
1153
1154
  "loadObjectRecords",
1154
1155
  "removeRecords",
1155
1156
  "upsertRecords"
1156
- ]), Ze = /* @__PURE__ */ new Set([
1157
+ ]), $e = /* @__PURE__ */ new Set([
1157
1158
  "auditObjectContent",
1158
1159
  "findObject",
1159
1160
  "getInfo",
@@ -1165,13 +1166,13 @@ var Ke = [
1165
1166
  "retrieveChunks",
1166
1167
  "retrieveRecords"
1167
1168
  ]);
1168
- function Qe(e) {
1169
+ function et(e) {
1169
1170
  let t = !1, n = !1;
1170
- for (let r of e) Ze.has(r) && (t = !0), Xe.has(r) && (n = !0);
1171
+ for (let r of e) $e.has(r) && (t = !0), Qe.has(r) && (n = !0);
1171
1172
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
1172
1173
  }
1173
- var $e = (e, t = "en") => {
1174
- let i = Ke.find((t) => t.id === e);
1174
+ var tt = (e, t = "en") => {
1175
+ let i = Je.find((t) => t.id === e);
1175
1176
  return i ? {
1176
1177
  label: r(n(i.label), t) ?? i.id,
1177
1178
  description: ""
@@ -1179,8 +1180,8 @@ var $e = (e, t = "en") => {
1179
1180
  label: e,
1180
1181
  description: ""
1181
1182
  };
1182
- }, et = (e, t = "en") => {
1183
- let i = qe.find((t) => t.id === e);
1183
+ }, nt = (e, t = "en") => {
1184
+ let i = Ye.find((t) => t.id === e);
1184
1185
  return i ? {
1185
1186
  label: r(n(i.label), t) ?? i.id,
1186
1187
  description: ""
@@ -1188,8 +1189,8 @@ var $e = (e, t = "en") => {
1188
1189
  label: e,
1189
1190
  description: ""
1190
1191
  };
1191
- }, tt = (e, t = "en") => {
1192
- let i = Ye.find((t) => t.id === e);
1192
+ }, rt = (e, t = "en") => {
1193
+ let i = Ze.find((t) => t.id === e);
1193
1194
  return i ? {
1194
1195
  label: r(n(i.label), t) ?? i.id,
1195
1196
  description: ""
@@ -1198,31 +1199,31 @@ var $e = (e, t = "en") => {
1198
1199
  description: ""
1199
1200
  };
1200
1201
  };
1201
- function nt(e) {
1202
+ function it(e) {
1202
1203
  let t = new Set(e), n = "|Action|Supported|\n";
1203
1204
  n += "|:----|:-------:|\n";
1204
- for (let e of Object.keys(Je)) n += `| ${Je[e]} | ${t.has(e) ? "✓" : ""} |\n`;
1205
+ for (let e of Object.keys(Xe)) n += `| ${Xe[e]} | ${t.has(e) ? "✓" : ""} |\n`;
1205
1206
  return n;
1206
1207
  }
1207
1208
  //#endregion
1208
1209
  //#region src/component/module/cookbook/cookbookConfig.schema.ts
1209
- var rt = E(["list"]), it = /* @__PURE__ */ x({
1210
- ...j,
1211
- typeId: /* @__PURE__ */ g("cookbook"),
1212
- actionNames: /* @__PURE__ */ h(rt),
1213
- recipes: /* @__PURE__ */ h(O)
1214
- }), at = E([
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([
1215
1216
  "list",
1216
1217
  "render",
1217
1218
  "setColorMode"
1218
- ]), ot = /* @__PURE__ */ x({
1219
- ...j,
1220
- typeId: /* @__PURE__ */ g("presenter"),
1221
- actionNames: /* @__PURE__ */ h(at),
1222
- presentations: /* @__PURE__ */ h(O)
1223
- }), st = "https://engine-eu.dpuse.app/presenters";
1224
- async function ct(e, t, n, r) {
1225
- let i = e.id, a = `${st}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
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`;
1226
1227
  try {
1227
1228
  return new (await (import(
1228
1229
  /* @vite-ignore */
@@ -1234,12 +1235,12 @@ async function ct(e, t, n, r) {
1234
1235
  url: a,
1235
1236
  version: e.version
1236
1237
  };
1237
- throw new I(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
1238
+ throw new F(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
1238
1239
  }
1239
1240
  }
1240
1241
  //#endregion
1241
1242
  //#region src/encoding/index.ts
1242
- var lt = {
1243
+ var dt = {
1243
1244
  arabic: {
1244
1245
  id: "arabic",
1245
1246
  label: {
@@ -1387,7 +1388,7 @@ var lt = {
1387
1388
  es: "Occidental"
1388
1389
  }
1389
1390
  }
1390
- }, ut = {
1391
+ }, ft = {
1391
1392
  ascii: {
1392
1393
  id: "ascii",
1393
1394
  groupId: null,
@@ -1818,16 +1819,16 @@ var lt = {
1818
1819
  groupId: "baltic",
1819
1820
  decoderId: "windows-1257"
1820
1821
  }
1821
- }, dt = lt, X = ut;
1822
- function ft(e) {
1823
- return Object.hasOwn(X, e);
1822
+ }, pt = dt, Y = ft;
1823
+ function mt(e) {
1824
+ return Object.hasOwn(Y, e);
1824
1825
  }
1825
- function pt(e) {
1826
- return ft(e) ? X[e].decoderId ?? e : e;
1826
+ function ht(e) {
1827
+ return mt(e) ? Y[e].decoderId ?? e : e;
1827
1828
  }
1828
- function mt(e = "en") {
1829
- return Array.from(Object.values(X), ({ decoderId: t, groupId: n, id: r }) => {
1830
- let i = n == null ? "" : ht(n, e);
1829
+ function gt(e = "en") {
1830
+ return Array.from(Object.values(Y), ({ decoderId: t, groupId: n, id: r }) => {
1831
+ let i = n == null ? "" : _t(n, e);
1831
1832
  return {
1832
1833
  id: r,
1833
1834
  groupLabel: i,
@@ -1837,13 +1838,13 @@ function mt(e = "en") {
1837
1838
  };
1838
1839
  }).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
1839
1840
  }
1840
- function ht(e, t) {
1841
- let n = dt[e].label;
1841
+ function _t(e, t) {
1842
+ let n = pt[e].label;
1842
1843
  return n[t] ?? n.en ?? e;
1843
1844
  }
1844
1845
  //#endregion
1845
1846
  //#region src/locale/index.ts
1846
- function gt(e, t) {
1847
+ function vt(e, t) {
1847
1848
  return {
1848
1849
  ...e,
1849
1850
  label: e.label[t] ?? e.id,
@@ -1851,7 +1852,7 @@ function gt(e, t) {
1851
1852
  verb: e.verb?.[t] ?? void 0
1852
1853
  };
1853
1854
  }
1854
- function _t(e, t, n = !1) {
1855
+ function yt(e, t, n = !1) {
1855
1856
  let r = e.map((e) => ({
1856
1857
  ...e,
1857
1858
  label: e.label[t] ?? e.id,
@@ -1860,7 +1861,7 @@ function _t(e, t, n = !1) {
1860
1861
  }));
1861
1862
  return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
1862
1863
  }
1863
- function vt(e, t) {
1864
+ function bt(e, t) {
1864
1865
  return {
1865
1866
  ...e,
1866
1867
  label: e.label[t] ?? e.id,
@@ -1869,7 +1870,7 @@ function vt(e, t) {
1869
1870
  }
1870
1871
  //#endregion
1871
1872
  //#region src/utilities/index.ts
1872
- var yt = /* @__PURE__ */ new Map([
1873
+ var xt = /* @__PURE__ */ new Map([
1873
1874
  ["arrow", "application/vnd.apache.arrow.file"],
1874
1875
  ["avro", "application/vnd.apache.avro"],
1875
1876
  ["bin", "application/octet-stream"],
@@ -1890,20 +1891,20 @@ var yt = /* @__PURE__ */ new Map([
1890
1891
  ["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
1891
1892
  ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1892
1893
  ["xml", "application/xml"]
1893
- ]), Z = "en", Q = [
1894
+ ]), X = "en", Z = [
1894
1895
  ["day", 864e5],
1895
1896
  ["hour", 36e5],
1896
1897
  ["minute", 6e4],
1897
1898
  ["second", 1e3],
1898
1899
  ["millisecond", 1]
1899
- ], bt = [
1900
+ ], St = [
1900
1901
  ["byte", 1],
1901
1902
  ["kilobyte", 1024],
1902
1903
  ["megabyte", 1048576],
1903
1904
  ["gigabyte", 1073741824],
1904
1905
  ["terabyte", 1099511627776]
1905
- ], xt = /* @__PURE__ */ new Map(), St = /* @__PURE__ */ new Map();
1906
- function Ct(e, t = 2, n = t, r = Z) {
1906
+ ], Ct = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map();
1907
+ function Tt(e, t = 2, n = t, r = X) {
1907
1908
  return e == null ? "" : $(r, {
1908
1909
  localeMatcher: "best fit",
1909
1910
  maximumFractionDigits: t,
@@ -1913,18 +1914,18 @@ function Ct(e, t = 2, n = t, r = Z) {
1913
1914
  useGrouping: !0
1914
1915
  }).format(e);
1915
1916
  }
1916
- function wt(e, t = Z) {
1917
- return Ct(e, 0, 0, t);
1917
+ function Et(e, t = X) {
1918
+ return Tt(e, 0, 0, t);
1918
1919
  }
1919
- function Tt(e, t = 1, n = Z) {
1920
+ function Dt(e, t = 1, n = X) {
1920
1921
  return e == null || !Number.isFinite(e) ? "" : $(n, {
1921
1922
  maximumFractionDigits: t,
1922
1923
  notation: "compact"
1923
1924
  }).format(e);
1924
1925
  }
1925
- function Et(e, t = 1, n = Z) {
1926
+ function Ot(e, t = 1, n = X) {
1926
1927
  if (e == null || !Number.isFinite(e)) return "";
1927
- let [r, i] = bt.find(([, n]) => Ft(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
1928
+ let [r, i] = St.find(([, n]) => It(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
1928
1929
  return $(n, {
1929
1930
  maximumFractionDigits: i === 1 ? 0 : t,
1930
1931
  style: "unit",
@@ -1932,9 +1933,9 @@ function Et(e, t = 1, n = Z) {
1932
1933
  unitDisplay: i === 1 ? "long" : "short"
1933
1934
  }).format(e / i);
1934
1935
  }
1935
- function Dt(e, t = "millisecond", n = Z) {
1936
+ function kt(e, t = "millisecond", n = X) {
1936
1937
  if (e == null || !Number.isFinite(e)) return "";
1937
- 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 = [];
1938
+ 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 = [];
1938
1939
  for (let [t, i] of s) {
1939
1940
  let a = Math.floor(r / i);
1940
1941
  if (a === 0 && c.length > 0) continue;
@@ -1946,25 +1947,25 @@ function Dt(e, t = "millisecond", n = Z) {
1946
1947
  unitDisplay: "short"
1947
1948
  }).format(o));
1948
1949
  }
1949
- return Pt(n).format(c);
1950
+ return Ft(n).format(c);
1950
1951
  }
1951
- function Ot(e) {
1952
+ function At(e) {
1952
1953
  if (!e) return;
1953
- let t = Nt(e);
1954
+ let t = Q(e);
1954
1955
  return t === void 0 ? e : e.slice(0, t);
1955
1956
  }
1956
- function kt(e) {
1957
+ function jt(e) {
1957
1958
  if (!e) return;
1958
- let t = Nt(e);
1959
+ let t = Q(e);
1959
1960
  return t === void 0 ? void 0 : e.slice(t + 1);
1960
1961
  }
1961
- function At(e) {
1962
- return e != null && yt.has(e.toLowerCase());
1962
+ function Mt(e) {
1963
+ return e != null && xt.has(e.toLowerCase());
1963
1964
  }
1964
- function jt(e) {
1965
- return (e == null ? void 0 : yt.get(e.toLowerCase())) ?? "application/octet-stream";
1965
+ function Nt(e) {
1966
+ return (e == null ? void 0 : xt.get(e.toLowerCase())) ?? "application/octet-stream";
1966
1967
  }
1967
- function Mt(e) {
1968
+ function Pt(e) {
1968
1969
  switch (e) {
1969
1970
  case "Edm.Boolean": return "boolean";
1970
1971
  case "Edm.Byte":
@@ -1985,24 +1986,24 @@ function Mt(e) {
1985
1986
  default: return "unknown";
1986
1987
  }
1987
1988
  }
1988
- function Nt(e) {
1989
+ function Q(e) {
1989
1990
  let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
1990
1991
  return n > t && n < e.length - 1 ? n : void 0;
1991
1992
  }
1992
- function Pt(e) {
1993
- let t = xt.get(e);
1993
+ function Ft(e) {
1994
+ let t = Ct.get(e);
1994
1995
  return t || (t = new Intl.ListFormat(e, {
1995
1996
  style: "narrow",
1996
1997
  type: "unit"
1997
- }), xt.set(e, t)), t;
1998
+ }), Ct.set(e, t)), t;
1998
1999
  }
1999
2000
  function $(e, t) {
2000
- let n = `${e}|${JSON.stringify(t)}`, r = St.get(n);
2001
- return r || (r = new Intl.NumberFormat(e, t), St.set(n, r)), r;
2001
+ let n = `${e}|${JSON.stringify(t)}`, r = wt.get(n);
2002
+ return r || (r = new Intl.NumberFormat(e, t), wt.set(n, r)), r;
2002
2003
  }
2003
- function Ft(e, t) {
2004
+ function It(e, t) {
2004
2005
  let n = 10 ** t;
2005
2006
  return Math.round(e * n) / n;
2006
2007
  }
2007
2008
  //#endregion
2008
- export { L as APIError, I as AppError, z as ConnectorError, ue as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, dt as ENCODING_GROUP_CONFIG_MAP, X as ENCODING_TYPE_CONFIG_MAP, R as EngineError, B as FetchError, A as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, G as TOOL_NAME_PREFIX, We as auditObjectContentWithParser, xe as buildFetchError, He as buildPreviewConfig, se as componentInstanceConfigSchema, Se as concatenateSerialisedErrorMessages, ve as connectorConfigSchema, $e as constructConnectorCategoryConfig, et as constructConnectorItemTypeConfig, tt as constructConnectorUsageConfig, Mt as convertODataTypeIdToUsageTypeId, it as cookbookConfigSchema, n as createLabelMap, Qe as determineConnectorUsageId, kt as extractExtensionFromPath, Ot as extractPathWithoutExtension, Ct as formatNumberAsDecimalNumber, Dt as formatNumberAsDuration, Tt as formatNumberAsSize, Et as formatNumberAsStorageSize, wt as formatNumberAsWholeNumber, le as getComponentStatus, nt as getConnectorActionsTable, mt as getEncodingTypeConfigs, At as hasMimeTypeForExtension, Ce as ignoreErrors, ft as isEncodingTypeId, K as listParserToolConfigs, ct as loadPresenter, Be as loadTool, gt as localiseConfig, _t as localiseConfigs, vt as localiseReference, jt as lookupMimeTypeForExtension, V as normalizeToError, Pe as parseDelimitedText, ot as presenterConfigSchema, pt as resolveDecoderId, r as resolveLabel, q as resolveParserToolConfig, Ue as retrieveRecordsWithParser, we as serialiseError, Ne as toolConfigSchema, Te as unserialiseError };
2009
+ export { I as APIError, F as AppError, R as ConnectorError, de as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, pt as ENCODING_GROUP_CONFIG_MAP, Y as ENCODING_TYPE_CONFIG_MAP, L as EngineError, z as FetchError, k as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, W as TOOL_NAME_PREFIX, Ke as auditObjectContentWithParser, Se as buildFetchError, We as buildPreviewConfig, ce as componentInstanceConfigSchema, Ce as concatenateSerialisedErrorMessages, ye as connectorConfigSchema, tt as constructConnectorCategoryConfig, nt as constructConnectorItemTypeConfig, rt as constructConnectorUsageConfig, Pt as convertODataTypeIdToUsageTypeId, ot as cookbookConfigSchema, n as createLabelMap, et as determineConnectorUsageId, jt as extractExtensionFromPath, At as extractPathWithoutExtension, Tt as formatNumberAsDecimalNumber, kt as formatNumberAsDuration, Dt as formatNumberAsSize, Ot as formatNumberAsStorageSize, Et as formatNumberAsWholeNumber, ue as getComponentStatus, it as getConnectorActionsTable, gt as getEncodingTypeConfigs, Mt as hasMimeTypeForExtension, we as ignoreErrors, mt as isEncodingTypeId, G as listParserToolConfigs, ut as loadPresenter, He as loadTool, vt as localiseConfig, yt as localiseConfigs, bt as localiseReference, Nt as lookupMimeTypeForExtension, B as normalizeToError, Fe as parseDelimitedText, ct as presenterConfigSchema, ht as resolveDecoderId, r as resolveLabel, K as resolveParserToolConfig, Ge as retrieveRecordsWithParser, Te as serialiseError, Pe as toolConfigSchema, Ee as unserialiseError };