@milaboratories/pl-model-common 1.16.1 → 1.16.3
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/dist/errors.d.ts +8 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +209 -187
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/errors.ts +16 -0
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var L = (e, n, t) => n in e ?
|
|
3
|
-
var
|
|
4
|
-
import { z as
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var L = (e, n, t) => n in e ? R(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var d = (e, n, t) => L(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { z as m } from "zod";
|
|
5
5
|
import h from "canonicalize";
|
|
6
|
-
function
|
|
6
|
+
function Pe(e) {
|
|
7
7
|
if (e.code !== void 0)
|
|
8
8
|
return {
|
|
9
9
|
code: e.code,
|
|
@@ -11,7 +11,7 @@ function ke(e) {
|
|
|
11
11
|
featureFlags: e.featureFlags
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function p(e) {
|
|
15
15
|
if (e !== void 0)
|
|
16
16
|
return typeof e == "string" ? { __renderLambda: !0, handle: e, retentive: !1 } : e;
|
|
17
17
|
}
|
|
@@ -28,7 +28,7 @@ function xe(e) {
|
|
|
28
28
|
sections: u,
|
|
29
29
|
title: c,
|
|
30
30
|
enrichmentTargets: f
|
|
31
|
-
} = e.v3, { code:
|
|
31
|
+
} = e.v3, { code: D } = e;
|
|
32
32
|
return {
|
|
33
33
|
initialArgs: n,
|
|
34
34
|
initialUiState: t,
|
|
@@ -39,7 +39,7 @@ function xe(e) {
|
|
|
39
39
|
featureFlags: s,
|
|
40
40
|
sections: u,
|
|
41
41
|
title: c,
|
|
42
|
-
code:
|
|
42
|
+
code: D,
|
|
43
43
|
enrichmentTargets: f
|
|
44
44
|
};
|
|
45
45
|
} else if (e.inputsValid !== void 0) {
|
|
@@ -53,10 +53,10 @@ function xe(e) {
|
|
|
53
53
|
renderingMode: t,
|
|
54
54
|
initialArgs: a,
|
|
55
55
|
outputs: Object.fromEntries(
|
|
56
|
-
Object.entries(r).map(([c, f]) => [c,
|
|
56
|
+
Object.entries(r).map(([c, f]) => [c, p(f)])
|
|
57
57
|
),
|
|
58
|
-
inputsValid:
|
|
59
|
-
sections:
|
|
58
|
+
inputsValid: p(o),
|
|
59
|
+
sections: p(i),
|
|
60
60
|
initialUiState: void 0,
|
|
61
61
|
code: s
|
|
62
62
|
};
|
|
@@ -71,10 +71,10 @@ function xe(e) {
|
|
|
71
71
|
renderingMode: r,
|
|
72
72
|
initialArgs: a,
|
|
73
73
|
outputs: Object.fromEntries(
|
|
74
|
-
Object.entries(o).map(([c, f]) => [c,
|
|
74
|
+
Object.entries(o).map(([c, f]) => [c, p(f)])
|
|
75
75
|
),
|
|
76
|
-
inputsValid:
|
|
77
|
-
sections:
|
|
76
|
+
inputsValid: p(t),
|
|
77
|
+
sections: p(i),
|
|
78
78
|
initialUiState: void 0,
|
|
79
79
|
code: s
|
|
80
80
|
};
|
|
@@ -85,21 +85,21 @@ function xe(e) {
|
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const ke = m.object({
|
|
89
89
|
/** Included left border. */
|
|
90
|
-
from:
|
|
90
|
+
from: m.number(),
|
|
91
91
|
/** Excluded right border. */
|
|
92
|
-
to:
|
|
92
|
+
to: m.number()
|
|
93
93
|
});
|
|
94
|
-
function
|
|
94
|
+
function Se(e, n) {
|
|
95
95
|
if (!(e == null || n == null))
|
|
96
96
|
return { from: e, to: n };
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function ve(e, n) {
|
|
99
99
|
if (e.from < 0 || e.to < 0 || e.from >= e.to)
|
|
100
100
|
throw new Error(`${n}: invalid bytes range: ${e}`);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ne(e) {
|
|
103
103
|
return e !== void 0 && e.startsWith("log+live://log/");
|
|
104
104
|
}
|
|
105
105
|
function A(e) {
|
|
@@ -125,10 +125,10 @@ function K(e) {
|
|
|
125
125
|
function M(e) {
|
|
126
126
|
return e.replace(/^.*[\\/]/, "");
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Oe(e) {
|
|
129
129
|
return M(K(e));
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ce(e) {
|
|
132
132
|
if (!e || typeof e != "object")
|
|
133
133
|
return !1;
|
|
134
134
|
const n = e;
|
|
@@ -145,7 +145,7 @@ function Oe(e) {
|
|
|
145
145
|
return !1;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Fe(e, n) {
|
|
149
149
|
if (e !== void 0)
|
|
150
150
|
switch (e.type) {
|
|
151
151
|
case "Json":
|
|
@@ -285,13 +285,13 @@ function je(e, n) {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
const q = -2147483648,
|
|
288
|
+
const q = -2147483648, P = -9007199254740991n, Je = NaN, De = NaN, T = null, z = null;
|
|
289
289
|
function b(e, n) {
|
|
290
290
|
switch (n) {
|
|
291
291
|
case "Int":
|
|
292
292
|
return e === q;
|
|
293
293
|
case "Long":
|
|
294
|
-
return e === Number(
|
|
294
|
+
return e === Number(P) || e === P;
|
|
295
295
|
case "Float":
|
|
296
296
|
return Number.isNaN(e);
|
|
297
297
|
case "Double":
|
|
@@ -350,7 +350,7 @@ function W(e, n) {
|
|
|
350
350
|
throw Error(`unsupported data type: ${n}`);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Le(e) {
|
|
354
354
|
if (e === null || typeof e == "string" || typeof e == "number") return e;
|
|
355
355
|
if (typeof e == "bigint") return { bigint: e.toString() };
|
|
356
356
|
throw new Error(`Type ${typeof e} (value ${e}) not yet supported.`);
|
|
@@ -368,7 +368,7 @@ function G(e, n) {
|
|
|
368
368
|
}
|
|
369
369
|
throw new Error(`Unsupported type ${typeof e} (value ${e}).`);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Be(e) {
|
|
372
372
|
if (e = X(e), e === null) throw new Error("Value is null");
|
|
373
373
|
return e;
|
|
374
374
|
}
|
|
@@ -388,10 +388,10 @@ function Q(e, n) {
|
|
|
388
388
|
return (e[t] & r) > 0;
|
|
389
389
|
}
|
|
390
390
|
const Y = { type: "absent" }, Z = null;
|
|
391
|
-
function
|
|
391
|
+
function Ue(e) {
|
|
392
392
|
return typeof e == "object" && e !== null && e.type === "absent";
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Ke(e, n, t = {}) {
|
|
395
395
|
if (Q(e.absent, n))
|
|
396
396
|
return t.absent === void 0 ? Y : t.absent;
|
|
397
397
|
const r = e.data[n], o = e.type;
|
|
@@ -413,7 +413,7 @@ function Ue(e, n, t = {}) {
|
|
|
413
413
|
throw Error(`unsupported data type: ${o}`);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Me(e) {
|
|
417
417
|
return {
|
|
418
418
|
kind: e.kind,
|
|
419
419
|
valueType: e.valueType,
|
|
@@ -423,7 +423,7 @@ function Ke(e) {
|
|
|
423
423
|
axesId: C(e.axesSpec)
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function _e(e) {
|
|
427
427
|
return {
|
|
428
428
|
columnId: e.id,
|
|
429
429
|
spec: e.spec
|
|
@@ -436,7 +436,7 @@ function y(e) {
|
|
|
436
436
|
function C(e) {
|
|
437
437
|
return e.map(y);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function qe(e) {
|
|
440
440
|
return h(y(e));
|
|
441
441
|
}
|
|
442
442
|
function ee(e, n) {
|
|
@@ -449,7 +449,7 @@ function ee(e, n) {
|
|
|
449
449
|
function ne(e, n) {
|
|
450
450
|
return e.name === n.name && ee(e.domain, n.domain);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Te(e, n) {
|
|
453
453
|
return { ...e, src: g(e.src, n) };
|
|
454
454
|
}
|
|
455
455
|
function g(e, n) {
|
|
@@ -484,7 +484,7 @@ function g(e, n) {
|
|
|
484
484
|
A(e);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function ze(e) {
|
|
488
488
|
switch (e.type) {
|
|
489
489
|
case "axis":
|
|
490
490
|
return {
|
|
@@ -501,45 +501,45 @@ function Te(e) {
|
|
|
501
501
|
function te(e) {
|
|
502
502
|
return h(e);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function He(e) {
|
|
505
505
|
return JSON.parse(e);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function x(e) {
|
|
508
508
|
return h(y(e));
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function k(e, n) {
|
|
511
511
|
return JSON.stringify([e, n]);
|
|
512
512
|
}
|
|
513
|
-
class
|
|
513
|
+
class We {
|
|
514
514
|
/**
|
|
515
515
|
* Creates a new anchor context from a set of anchor column specifications
|
|
516
516
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
517
517
|
*/
|
|
518
518
|
constructor(n) {
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
d(this, "domains", /* @__PURE__ */ new Map());
|
|
520
|
+
d(this, "axes", /* @__PURE__ */ new Map());
|
|
521
521
|
/**
|
|
522
522
|
* Domain packs are used to group domain keys that can be anchored to the same anchor
|
|
523
523
|
* This is used to optimize the lookup of domain anchors
|
|
524
524
|
*/
|
|
525
|
-
|
|
525
|
+
d(this, "domainPacks", []);
|
|
526
526
|
/**
|
|
527
527
|
* Maps domain packs to anchors
|
|
528
528
|
*/
|
|
529
|
-
|
|
529
|
+
d(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
530
530
|
this.anchors = n;
|
|
531
531
|
const t = Object.entries(n);
|
|
532
532
|
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
533
533
|
for (const [r, o] of t) {
|
|
534
534
|
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
535
|
-
const a = o.axesSpec[i], s =
|
|
535
|
+
const a = o.axesSpec[i], s = x(a);
|
|
536
536
|
this.axes.set(s, { anchor: r, idx: i });
|
|
537
537
|
}
|
|
538
538
|
if (o.domain !== void 0) {
|
|
539
539
|
const i = Object.entries(o.domain);
|
|
540
540
|
i.sort((a, s) => a[0].localeCompare(s[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
541
541
|
for (const [a, s] of i) {
|
|
542
|
-
const u =
|
|
542
|
+
const u = k(a, s);
|
|
543
543
|
this.domains.set(u, r);
|
|
544
544
|
}
|
|
545
545
|
}
|
|
@@ -574,11 +574,11 @@ class He {
|
|
|
574
574
|
for (const [a, s] of Object.entries(n.domain ?? {})) {
|
|
575
575
|
if (o !== void 0 && o.has(a))
|
|
576
576
|
continue;
|
|
577
|
-
const u =
|
|
577
|
+
const u = k(a, s), c = this.domains.get(u);
|
|
578
578
|
r.domain ?? (r.domain = {}), r.domain[a] = c ? { anchor: c } : s;
|
|
579
579
|
}
|
|
580
580
|
if (r.axes = n.axesSpec.map((a) => {
|
|
581
|
-
const s =
|
|
581
|
+
const s = x(a), u = this.axes.get(s);
|
|
582
582
|
return u === void 0 ? y(a) : u;
|
|
583
583
|
}), !t || t.length === 0)
|
|
584
584
|
return r;
|
|
@@ -611,7 +611,7 @@ class He {
|
|
|
611
611
|
return te(this.derive(n, t));
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Ge(e, n, t) {
|
|
615
615
|
const r = { ...n }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? !1;
|
|
616
616
|
if (r.domainAnchor !== void 0) {
|
|
617
617
|
const i = e[r.domainAnchor];
|
|
@@ -670,32 +670,32 @@ function re(e, n) {
|
|
|
670
670
|
function oe(e) {
|
|
671
671
|
return typeof e == "object" && "anchor" in e;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Xe(e) {
|
|
674
674
|
return typeof e == "object" && e !== null && "source" in e && "axisFilters" in e;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function l(e) {
|
|
677
677
|
return e.kind === "PColumn";
|
|
678
678
|
}
|
|
679
679
|
function ie(e) {
|
|
680
|
-
return
|
|
681
|
-
}
|
|
682
|
-
function Xe(e) {
|
|
683
|
-
return d(e.obj);
|
|
680
|
+
return l(e.spec);
|
|
684
681
|
}
|
|
685
682
|
function Qe(e) {
|
|
686
|
-
return
|
|
683
|
+
return l(e.obj);
|
|
687
684
|
}
|
|
688
685
|
function Ye(e) {
|
|
686
|
+
return l(e.obj.spec);
|
|
687
|
+
}
|
|
688
|
+
function Ze(e) {
|
|
689
689
|
if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
690
690
|
return e;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function en(e, n) {
|
|
693
693
|
return e === void 0 ? void 0 : {
|
|
694
694
|
...e,
|
|
695
695
|
data: n(e.data)
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function nn(e) {
|
|
699
699
|
const n = /* @__PURE__ */ new Map(), t = (r) => {
|
|
700
700
|
switch (r.type) {
|
|
701
701
|
case "column":
|
|
@@ -736,15 +736,15 @@ function w(e, n) {
|
|
|
736
736
|
case "not":
|
|
737
737
|
return !w(e.operand, n);
|
|
738
738
|
case "name":
|
|
739
|
-
return
|
|
739
|
+
return l(n) && n.name === e.name;
|
|
740
740
|
case "name_pattern":
|
|
741
|
-
return
|
|
741
|
+
return l(n) && !!n.name.match(e.pattern);
|
|
742
742
|
case "annotation":
|
|
743
|
-
return
|
|
743
|
+
return l(n) && n.annotations !== void 0 && n.annotations[e.annotation] === e.value;
|
|
744
744
|
case "annotation_pattern":
|
|
745
|
-
return
|
|
745
|
+
return l(n) && n.annotations !== void 0 && n.annotations[e.annotation] !== void 0 && !!n.annotations[e.annotation].match(e.pattern);
|
|
746
746
|
case "has_axes":
|
|
747
|
-
return
|
|
747
|
+
return l(n) && e.axes.every(
|
|
748
748
|
(t) => n.axesSpec.some(
|
|
749
749
|
(r) => (t.type === void 0 || t.type === r.type) && (t.name === void 0 || t.name === r.name) && (t.domain === void 0 || Object.keys(t.domain).length === 0 || r.domain !== void 0 && Object.entries(t.domain).every(
|
|
750
750
|
([o, i]) => r.domain[o] === i
|
|
@@ -819,28 +819,28 @@ function v(e, n) {
|
|
|
819
819
|
}
|
|
820
820
|
return !0;
|
|
821
821
|
}
|
|
822
|
-
function nn(e) {
|
|
823
|
-
return Array.isArray(e) ? (n) => e.some((t) => d(n) && v(n, t)) : (n) => d(n) && v(n, e);
|
|
824
|
-
}
|
|
825
822
|
function tn(e) {
|
|
823
|
+
return Array.isArray(e) ? (n) => e.some((t) => l(n) && v(n, t)) : (n) => l(n) && v(n, e);
|
|
824
|
+
}
|
|
825
|
+
function rn(e) {
|
|
826
826
|
const n = {
|
|
827
827
|
kind: e.kind,
|
|
828
828
|
name: e.name
|
|
829
829
|
};
|
|
830
|
-
return e.domain !== void 0 && (n.domain = e.domain),
|
|
830
|
+
return e.domain !== void 0 && (n.domain = e.domain), l(e) && (n.axesSpec = C(e.axesSpec)), h(n);
|
|
831
831
|
}
|
|
832
|
-
const
|
|
833
|
-
__isRef:
|
|
834
|
-
blockId:
|
|
835
|
-
name:
|
|
836
|
-
requireEnrichments:
|
|
832
|
+
const on = { href: "/" }, sn = m.object({
|
|
833
|
+
__isRef: m.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
834
|
+
blockId: m.string().describe("Upstream block id"),
|
|
835
|
+
name: m.string().describe("Name of the output provided to the upstream block's output context"),
|
|
836
|
+
requireEnrichments: m.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
|
|
837
837
|
}).describe(
|
|
838
838
|
"Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
|
|
839
839
|
).readonly();
|
|
840
|
-
function
|
|
840
|
+
function an(e) {
|
|
841
841
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === !0 && "blockId" in e && "name" in e;
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function un(e, n, t = !1) {
|
|
844
844
|
return t ? {
|
|
845
845
|
__isRef: !0,
|
|
846
846
|
blockId: e,
|
|
@@ -852,7 +852,7 @@ function an(e, n, t = !1) {
|
|
|
852
852
|
name: n
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function cn(e, n = !0) {
|
|
856
856
|
if (n)
|
|
857
857
|
return {
|
|
858
858
|
...e,
|
|
@@ -863,10 +863,10 @@ function un(e, n = !0) {
|
|
|
863
863
|
return r;
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function fn(e, n, t = !1) {
|
|
867
867
|
return e.blockId === n.blockId && e.name === n.name && (t || e.requireEnrichments === n.requireEnrichments);
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function dn(e, n) {
|
|
870
870
|
return e.ok ? { ok: !0, value: n(e.value) } : e;
|
|
871
871
|
}
|
|
872
872
|
function ae(e) {
|
|
@@ -878,7 +878,7 @@ function ae(e) {
|
|
|
878
878
|
);
|
|
879
879
|
}
|
|
880
880
|
const ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", ce = "0123456789ABCDEFGHIJKLMNOPQRSTUV", fe = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
881
|
-
function
|
|
881
|
+
function F(e, n, t) {
|
|
882
882
|
t = t || {};
|
|
883
883
|
let r, o;
|
|
884
884
|
switch (n) {
|
|
@@ -905,50 +905,68 @@ function $(e, n, t) {
|
|
|
905
905
|
c += "=";
|
|
906
906
|
return c;
|
|
907
907
|
}
|
|
908
|
-
const
|
|
909
|
-
function
|
|
910
|
-
const e = new Uint8Array(
|
|
911
|
-
return crypto.getRandomValues(e),
|
|
908
|
+
const $ = 15, de = 24, V = m.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
909
|
+
function ln() {
|
|
910
|
+
const e = new Uint8Array($);
|
|
911
|
+
return crypto.getRandomValues(e), V.parse(F(e, "RFC4648"));
|
|
912
912
|
}
|
|
913
913
|
function le(e) {
|
|
914
|
-
if (e.length !==
|
|
915
|
-
return
|
|
914
|
+
if (e.length !== $) throw new Error(`Wrong number of bytes: ${e.length}`);
|
|
915
|
+
return V.parse(F(e, "RFC4648"));
|
|
916
916
|
}
|
|
917
|
-
async function
|
|
917
|
+
async function mn(e) {
|
|
918
918
|
const n = new TextEncoder(), t = await crypto.subtle.digest("SHA-256", n.encode(e));
|
|
919
919
|
return le(new Uint8Array(t.slice(0, 15)));
|
|
920
920
|
}
|
|
921
921
|
function pn(e) {
|
|
922
922
|
return JSON.stringify(e);
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function yn(e) {
|
|
925
925
|
return h(e);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function hn(e) {
|
|
928
928
|
return JSON.parse(e);
|
|
929
929
|
}
|
|
930
|
-
class
|
|
930
|
+
class gn extends Error {
|
|
931
931
|
constructor() {
|
|
932
932
|
super(...arguments);
|
|
933
|
-
|
|
933
|
+
d(this, "name", "AbortError");
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
-
class
|
|
936
|
+
class bn extends Error {
|
|
937
937
|
constructor() {
|
|
938
938
|
super(...arguments);
|
|
939
|
-
|
|
939
|
+
d(this, "name", "UiError");
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function wn(e) {
|
|
943
943
|
return e instanceof Error && e.name === "AbortError";
|
|
944
944
|
}
|
|
945
|
-
function
|
|
946
|
-
return e instanceof Error ? e.name === "AbortError" ||
|
|
945
|
+
function me(e) {
|
|
946
|
+
return e instanceof Error ? e.name === "AbortError" || me(e.cause) : !1;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function An(e) {
|
|
949
949
|
return e instanceof Error && e.name === "AggregateError";
|
|
950
950
|
}
|
|
951
|
-
|
|
951
|
+
class pe extends Error {
|
|
952
|
+
constructor() {
|
|
953
|
+
super(...arguments);
|
|
954
|
+
d(this, "name", "PFrameError");
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
function En(e) {
|
|
958
|
+
return e instanceof Error && e.name === "PFrameError";
|
|
959
|
+
}
|
|
960
|
+
class Pn extends pe {
|
|
961
|
+
constructor() {
|
|
962
|
+
super(...arguments);
|
|
963
|
+
d(this, "name", "PFrameError.Driver");
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
function xn(e) {
|
|
967
|
+
return e instanceof Error && e.name === "PFrameError.Driver";
|
|
968
|
+
}
|
|
969
|
+
function ye(e) {
|
|
952
970
|
if (typeof e == "string")
|
|
953
971
|
return `String value was thrown: ${e}`;
|
|
954
972
|
if (e && typeof e == "object")
|
|
@@ -959,15 +977,15 @@ function me(e) {
|
|
|
959
977
|
}
|
|
960
978
|
return `Non-Error value (${typeof e}) was thrown: ${e}`;
|
|
961
979
|
}
|
|
962
|
-
function
|
|
963
|
-
return e instanceof Error ? e : new Error(
|
|
980
|
+
function E(e) {
|
|
981
|
+
return e instanceof Error ? e : new Error(ye(e));
|
|
964
982
|
}
|
|
965
|
-
function
|
|
966
|
-
const n = e.cause ?
|
|
983
|
+
function I(e) {
|
|
984
|
+
const n = e.cause ? I(e.cause) : void 0, t = new Error(e.message, n !== void 0 ? { cause: n } : void 0);
|
|
967
985
|
return t.name = e.name || "Error", t.stack = e.stack, t;
|
|
968
986
|
}
|
|
969
|
-
function
|
|
970
|
-
const n =
|
|
987
|
+
function j(e) {
|
|
988
|
+
const n = E(e), t = n.cause ? j(n.cause) : void 0;
|
|
971
989
|
return {
|
|
972
990
|
name: n.name,
|
|
973
991
|
message: n.message,
|
|
@@ -975,59 +993,59 @@ function F(e) {
|
|
|
975
993
|
...n.cause !== void 0 && { cause: t }
|
|
976
994
|
};
|
|
977
995
|
}
|
|
978
|
-
function
|
|
996
|
+
function kn(e) {
|
|
979
997
|
if (e.error)
|
|
980
998
|
throw e.error;
|
|
981
999
|
return e.value;
|
|
982
1000
|
}
|
|
983
1001
|
function J(e) {
|
|
984
|
-
return e.error ? { error: F(e.error) } : { value: e.value };
|
|
985
|
-
}
|
|
986
|
-
function kn(e) {
|
|
987
1002
|
return e.error ? { error: j(e.error) } : { value: e.value };
|
|
988
1003
|
}
|
|
989
|
-
function
|
|
1004
|
+
function Sn(e) {
|
|
1005
|
+
return e.error ? { error: I(e.error) } : { value: e.value };
|
|
1006
|
+
}
|
|
1007
|
+
function he(e) {
|
|
990
1008
|
try {
|
|
991
1009
|
return { value: e() };
|
|
992
1010
|
} catch (n) {
|
|
993
|
-
return { error:
|
|
1011
|
+
return { error: E(n) };
|
|
994
1012
|
}
|
|
995
1013
|
}
|
|
996
|
-
async function
|
|
1014
|
+
async function ge(e) {
|
|
997
1015
|
try {
|
|
998
1016
|
return { value: await e() };
|
|
999
1017
|
} catch (n) {
|
|
1000
|
-
return { error:
|
|
1018
|
+
return { error: E(n) };
|
|
1001
1019
|
}
|
|
1002
1020
|
}
|
|
1003
|
-
function
|
|
1004
|
-
const n =
|
|
1021
|
+
function vn(e) {
|
|
1022
|
+
const n = he(e);
|
|
1005
1023
|
return J(n);
|
|
1006
1024
|
}
|
|
1007
|
-
async function
|
|
1008
|
-
const n = await
|
|
1025
|
+
async function Nn(e) {
|
|
1026
|
+
const n = await ge(e);
|
|
1009
1027
|
return J(n);
|
|
1010
1028
|
}
|
|
1011
|
-
const
|
|
1012
|
-
function
|
|
1029
|
+
const On = ["supportsLazyState"], Cn = ["requiresUIAPIVersion", "requiresModelAPIVersion"];
|
|
1030
|
+
function Fn(e, n, t = !0) {
|
|
1013
1031
|
return e === void 0 ? !1 : e[n] === t;
|
|
1014
1032
|
}
|
|
1015
|
-
function
|
|
1033
|
+
function $n(e) {
|
|
1016
1034
|
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, t]) => n.startsWith("requires") && t === !0).map(([n]) => n));
|
|
1017
1035
|
}
|
|
1018
|
-
function
|
|
1036
|
+
function Vn(e) {
|
|
1019
1037
|
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, t]) => n.startsWith("supports") && t === !0).map(([n]) => n));
|
|
1020
1038
|
}
|
|
1021
|
-
class
|
|
1039
|
+
class be extends Error {
|
|
1022
1040
|
constructor(t) {
|
|
1023
1041
|
super(`Some of the block requirements are not supported by the runtime: ${Array.from(t.entries()).map(([r, o]) => `${r}: ${o}`).join(", ")}`);
|
|
1024
|
-
|
|
1042
|
+
d(this, "name", "IncompatibleFlagsError");
|
|
1025
1043
|
this.incompatibleFlags = t;
|
|
1026
1044
|
}
|
|
1027
1045
|
}
|
|
1028
|
-
class
|
|
1046
|
+
class In {
|
|
1029
1047
|
constructor() {
|
|
1030
|
-
|
|
1048
|
+
d(this, "supportedRequirements", /* @__PURE__ */ new Map());
|
|
1031
1049
|
}
|
|
1032
1050
|
/**
|
|
1033
1051
|
* Adds a supported requirement to the runtime capabilities.
|
|
@@ -1069,109 +1087,113 @@ class Cn {
|
|
|
1069
1087
|
throwIfIncompatible(n) {
|
|
1070
1088
|
const t = this.getIncompatibleFlags(n);
|
|
1071
1089
|
if (t !== void 0)
|
|
1072
|
-
throw new
|
|
1090
|
+
throw new be(t);
|
|
1073
1091
|
}
|
|
1074
1092
|
}
|
|
1075
1093
|
export {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1094
|
+
gn as AbortError,
|
|
1095
|
+
Cn as AllRequiresFeatureFlags,
|
|
1096
|
+
On as AllSupportsFeatureFlags,
|
|
1097
|
+
We as AnchoredIdDeriver,
|
|
1098
|
+
on as DefaultNavigationState,
|
|
1099
|
+
be as IncompatibleFlagsError,
|
|
1100
|
+
Pn as PFrameDriverError,
|
|
1101
|
+
pe as PFrameError,
|
|
1082
1102
|
Y as PTableAbsent,
|
|
1083
1103
|
Z as PTableNA,
|
|
1084
1104
|
z as PValueBytesNA,
|
|
1085
|
-
|
|
1086
|
-
|
|
1105
|
+
De as PValueDoubleNA,
|
|
1106
|
+
Je as PValueFloatNA,
|
|
1087
1107
|
q as PValueIntNA,
|
|
1088
|
-
|
|
1108
|
+
P as PValueLongNA,
|
|
1089
1109
|
T as PValueStringNA,
|
|
1090
|
-
|
|
1091
|
-
|
|
1110
|
+
V as PlId,
|
|
1111
|
+
$ as PlIdBytes,
|
|
1092
1112
|
de as PlIdLength,
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1113
|
+
sn as PlRef,
|
|
1114
|
+
ke as RangeBytes,
|
|
1115
|
+
In as RuntimeCapabilities,
|
|
1116
|
+
bn as UiError,
|
|
1117
|
+
qe as canonicalizeAxisId,
|
|
1118
|
+
yn as canonicalizeJson,
|
|
1119
|
+
Fn as checkBlockFlag,
|
|
1120
|
+
un as createPlRef,
|
|
1101
1121
|
Ve as dataInfoToEntries,
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1122
|
+
rn as deriveNativeId,
|
|
1123
|
+
I as deserializeError,
|
|
1124
|
+
Sn as deserializeResult,
|
|
1125
|
+
mn as digestPlId,
|
|
1126
|
+
E as ensureError,
|
|
1107
1127
|
Re as ensureNotNAPValue,
|
|
1108
|
-
|
|
1128
|
+
Ze as ensurePColumn,
|
|
1109
1129
|
Ie as entriesToDataInfo,
|
|
1110
1130
|
w as executePSpecPredicate,
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1131
|
+
nn as extractAllColumns,
|
|
1132
|
+
$n as extractAllRequirements,
|
|
1133
|
+
Vn as extractAllSupports,
|
|
1134
|
+
Pe as extractCodeWithInfo,
|
|
1115
1135
|
xe as extractConfigGeneric,
|
|
1116
1136
|
C as getAxesId,
|
|
1117
1137
|
y as getAxisId,
|
|
1118
|
-
|
|
1119
|
-
|
|
1138
|
+
_e as getColumnIdAndSpec,
|
|
1139
|
+
Oe as getFileNameFromHandle,
|
|
1120
1140
|
K as getFilePathFromHandle,
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1141
|
+
Me as getPColumnSpecId,
|
|
1142
|
+
ze as getPTableColumnId,
|
|
1143
|
+
me as hasAbortError,
|
|
1144
|
+
wn as isAbortError,
|
|
1145
|
+
An as isAggregateError,
|
|
1146
|
+
Ce as isDataInfo,
|
|
1127
1147
|
_ as isDataInfoEntries,
|
|
1128
|
-
|
|
1148
|
+
Xe as isFilteredPColumn,
|
|
1129
1149
|
U as isImportFileHandleIndex,
|
|
1130
1150
|
B as isImportFileHandleUpload,
|
|
1131
|
-
|
|
1151
|
+
Ne as isLiveLog,
|
|
1132
1152
|
H as isNotNAPValue,
|
|
1133
1153
|
ie as isPColumn,
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1154
|
+
Ye as isPColumnResult,
|
|
1155
|
+
l as isPColumnSpec,
|
|
1156
|
+
Qe as isPColumnSpecResult,
|
|
1157
|
+
xn as isPFrameDriverError,
|
|
1158
|
+
En as isPFrameError,
|
|
1159
|
+
Ue as isPTableAbsent,
|
|
1138
1160
|
W as isPValue,
|
|
1139
1161
|
$e as isPartitionedDataInfoEntries,
|
|
1140
|
-
|
|
1162
|
+
an as isPlRef,
|
|
1141
1163
|
Q as isValueAbsent,
|
|
1142
1164
|
b as isValueNA,
|
|
1143
|
-
|
|
1165
|
+
Fe as mapDataInfo,
|
|
1144
1166
|
je as mapDataInfoEntries,
|
|
1145
1167
|
g as mapJoinEntry,
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1168
|
+
en as mapPObjectData,
|
|
1169
|
+
Te as mapPTableDef,
|
|
1170
|
+
dn as mapValueInVOE,
|
|
1149
1171
|
S as matchAxis,
|
|
1150
1172
|
ne as matchAxisId,
|
|
1151
1173
|
v as matchPColumn,
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1174
|
+
Se as newRangeBytesOpt,
|
|
1175
|
+
Ke as pTableValue,
|
|
1176
|
+
Be as pValueToStringOrNumber,
|
|
1155
1177
|
X as pValueToStringOrNumberOrNull,
|
|
1156
|
-
|
|
1157
|
-
|
|
1178
|
+
He as parseColumnId,
|
|
1179
|
+
hn as parseJson,
|
|
1158
1180
|
le as plId,
|
|
1159
|
-
|
|
1160
|
-
|
|
1181
|
+
fn as plRefsEqual,
|
|
1182
|
+
Ge as resolveAnchors,
|
|
1161
1183
|
G as safeConvertToPValue,
|
|
1162
|
-
|
|
1163
|
-
|
|
1184
|
+
tn as selectorsToPredicate,
|
|
1185
|
+
j as serializeError,
|
|
1164
1186
|
J as serializeResult,
|
|
1165
1187
|
te as stringifyColumnId,
|
|
1166
1188
|
pn as stringifyJson,
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1189
|
+
Le as toJsonSafePValue,
|
|
1190
|
+
ln as uniquePlId,
|
|
1191
|
+
kn as unwrapResult,
|
|
1192
|
+
ve as validateRangeBytes,
|
|
1193
|
+
cn as withEnrichments,
|
|
1194
|
+
vn as wrapAndSerialize,
|
|
1195
|
+
Nn as wrapAndSerializeAsync,
|
|
1196
|
+
ge as wrapAsyncCallback,
|
|
1197
|
+
he as wrapCallback
|
|
1176
1198
|
};
|
|
1177
1199
|
//# sourceMappingURL=index.mjs.map
|