@milaboratories/pl-model-common 1.17.0 → 1.19.0
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/drivers/index.d.ts +1 -1
- package/dist/drivers/index.d.ts.map +1 -1
- package/dist/drivers/ls.d.ts +2 -0
- package/dist/drivers/ls.d.ts.map +1 -1
- package/dist/drivers/urls.d.ts +19 -0
- package/dist/drivers/urls.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +194 -186
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/drivers/index.ts +1 -1
- package/src/drivers/ls.ts +3 -0
- package/src/drivers/urls.ts +30 -0
- package/dist/drivers/blob_to_url.d.ts +0 -9
- package/dist/drivers/blob_to_url.d.ts.map +0 -1
- package/src/drivers/blob_to_url.ts +0 -10
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var R = Object.defineProperty;
|
|
2
2
|
var L = (e, n, t) => n in e ? R(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var d = (e, n, t) => L(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { z as
|
|
4
|
+
import { z as p } 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,11 +11,11 @@ function Ee(e) {
|
|
|
11
11
|
featureFlags: e.featureFlags
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function m(e) {
|
|
15
15
|
if (e !== void 0)
|
|
16
16
|
return typeof e == "string" ? { __renderLambda: !0, handle: e, retentive: !1 } : e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ee(e) {
|
|
19
19
|
if (e.v3 !== void 0) {
|
|
20
20
|
const {
|
|
21
21
|
initialArgs: n,
|
|
@@ -53,10 +53,10 @@ function ke(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, m(f)])
|
|
57
57
|
),
|
|
58
|
-
inputsValid:
|
|
59
|
-
sections:
|
|
58
|
+
inputsValid: m(o),
|
|
59
|
+
sections: m(i),
|
|
60
60
|
initialUiState: void 0,
|
|
61
61
|
code: s
|
|
62
62
|
};
|
|
@@ -71,10 +71,10 @@ function ke(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, m(f)])
|
|
75
75
|
),
|
|
76
|
-
inputsValid:
|
|
77
|
-
sections:
|
|
76
|
+
inputsValid: m(t),
|
|
77
|
+
sections: m(i),
|
|
78
78
|
initialUiState: void 0,
|
|
79
79
|
code: s
|
|
80
80
|
};
|
|
@@ -85,36 +85,42 @@ function ke(e) {
|
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
function xe(e) {
|
|
89
|
+
return new URL(e).protocol == "plblob+folder:";
|
|
90
|
+
}
|
|
91
|
+
function Se(e) {
|
|
92
|
+
return new URL(e).protocol == "block-ui:";
|
|
93
|
+
}
|
|
94
|
+
const ve = p.object({
|
|
89
95
|
/** Included left border. */
|
|
90
|
-
from:
|
|
96
|
+
from: p.number(),
|
|
91
97
|
/** Excluded right border. */
|
|
92
|
-
to:
|
|
98
|
+
to: p.number()
|
|
93
99
|
});
|
|
94
|
-
function
|
|
100
|
+
function Ne(e, n) {
|
|
95
101
|
if (!(e == null || n == null))
|
|
96
102
|
return { from: e, to: n };
|
|
97
103
|
}
|
|
98
|
-
function
|
|
104
|
+
function Oe(e, n) {
|
|
99
105
|
if (e.from < 0 || e.to < 0 || e.from >= e.to)
|
|
100
106
|
throw new Error(`${n}: invalid bytes range: ${e}`);
|
|
101
107
|
}
|
|
102
|
-
function
|
|
108
|
+
function Fe(e) {
|
|
103
109
|
return e !== void 0 && e.startsWith("log+live://log/");
|
|
104
110
|
}
|
|
105
111
|
function A(e) {
|
|
106
112
|
throw new Error("Unexpected object: " + e);
|
|
107
113
|
}
|
|
108
|
-
const O = "upload://upload/",
|
|
114
|
+
const O = "upload://upload/", F = "index://index/";
|
|
109
115
|
function B(e) {
|
|
110
116
|
return e.startsWith(O);
|
|
111
117
|
}
|
|
112
118
|
function U(e) {
|
|
113
|
-
return e.startsWith(
|
|
119
|
+
return e.startsWith(F);
|
|
114
120
|
}
|
|
115
121
|
function K(e) {
|
|
116
122
|
if (U(e)) {
|
|
117
|
-
const n = e.slice(
|
|
123
|
+
const n = e.slice(F.length);
|
|
118
124
|
return JSON.parse(decodeURIComponent(n)).path;
|
|
119
125
|
} else if (B(e)) {
|
|
120
126
|
const n = e.slice(O.length);
|
|
@@ -125,10 +131,10 @@ function K(e) {
|
|
|
125
131
|
function M(e) {
|
|
126
132
|
return e.replace(/^.*[\\/]/, "");
|
|
127
133
|
}
|
|
128
|
-
function
|
|
134
|
+
function Ce(e) {
|
|
129
135
|
return M(K(e));
|
|
130
136
|
}
|
|
131
|
-
function
|
|
137
|
+
function $e(e) {
|
|
132
138
|
if (!e || typeof e != "object")
|
|
133
139
|
return !1;
|
|
134
140
|
const n = e;
|
|
@@ -145,7 +151,7 @@ function Ce(e) {
|
|
|
145
151
|
return !1;
|
|
146
152
|
}
|
|
147
153
|
}
|
|
148
|
-
function
|
|
154
|
+
function Ve(e, n) {
|
|
149
155
|
if (e !== void 0)
|
|
150
156
|
switch (e.type) {
|
|
151
157
|
case "Json":
|
|
@@ -173,7 +179,7 @@ function Fe(e, n) {
|
|
|
173
179
|
}
|
|
174
180
|
}
|
|
175
181
|
}
|
|
176
|
-
function
|
|
182
|
+
function je(e, n) {
|
|
177
183
|
switch (e.type) {
|
|
178
184
|
case "Json":
|
|
179
185
|
break;
|
|
@@ -206,10 +212,10 @@ function _(e) {
|
|
|
206
212
|
return !1;
|
|
207
213
|
}
|
|
208
214
|
}
|
|
209
|
-
function
|
|
215
|
+
function Ie(e) {
|
|
210
216
|
return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : !1;
|
|
211
217
|
}
|
|
212
|
-
function
|
|
218
|
+
function Je(e) {
|
|
213
219
|
switch (e.type) {
|
|
214
220
|
case "Json": {
|
|
215
221
|
const n = Object.entries(e.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
@@ -237,7 +243,7 @@ function je(e) {
|
|
|
237
243
|
}
|
|
238
244
|
}
|
|
239
245
|
}
|
|
240
|
-
function
|
|
246
|
+
function De(e) {
|
|
241
247
|
switch (e.type) {
|
|
242
248
|
case "Json": {
|
|
243
249
|
const n = {};
|
|
@@ -271,7 +277,7 @@ function Ie(e) {
|
|
|
271
277
|
}
|
|
272
278
|
}
|
|
273
279
|
}
|
|
274
|
-
function
|
|
280
|
+
function Re(e, n) {
|
|
275
281
|
if (e !== void 0)
|
|
276
282
|
switch (e.type) {
|
|
277
283
|
case "Json":
|
|
@@ -301,13 +307,13 @@ function Je(e, n) {
|
|
|
301
307
|
}
|
|
302
308
|
}
|
|
303
309
|
}
|
|
304
|
-
const q = -2147483648,
|
|
305
|
-
function
|
|
310
|
+
const q = -2147483648, E = -9007199254740991n, Le = NaN, Be = NaN, T = null, z = null;
|
|
311
|
+
function g(e, n) {
|
|
306
312
|
switch (n) {
|
|
307
313
|
case "Int":
|
|
308
314
|
return e === q;
|
|
309
315
|
case "Long":
|
|
310
|
-
return e === Number(
|
|
316
|
+
return e === Number(E) || e === E;
|
|
311
317
|
case "Float":
|
|
312
318
|
return Number.isNaN(e);
|
|
313
319
|
case "Double":
|
|
@@ -320,14 +326,14 @@ function b(e, n) {
|
|
|
320
326
|
throw Error(`unsupported data type: ${n}`);
|
|
321
327
|
}
|
|
322
328
|
}
|
|
323
|
-
function
|
|
329
|
+
function Ue(e) {
|
|
324
330
|
if (!H(e)) throw new Error(`Expected not-NA PValue, got ${e}`);
|
|
325
331
|
return e;
|
|
326
332
|
}
|
|
327
333
|
function H(e, n) {
|
|
328
334
|
if (!n)
|
|
329
335
|
return typeof e == "string" || typeof e == "number" && isFinite(e) || typeof e == "bigint";
|
|
330
|
-
if (
|
|
336
|
+
if (g(e, n)) return !1;
|
|
331
337
|
switch (n) {
|
|
332
338
|
case "Int":
|
|
333
339
|
return typeof e == "number";
|
|
@@ -348,7 +354,7 @@ function H(e, n) {
|
|
|
348
354
|
function W(e, n) {
|
|
349
355
|
if (!n)
|
|
350
356
|
return e === null || typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
351
|
-
if (
|
|
357
|
+
if (g(e, n)) return !0;
|
|
352
358
|
switch (n) {
|
|
353
359
|
case "Int":
|
|
354
360
|
return typeof e == "number";
|
|
@@ -366,14 +372,14 @@ function W(e, n) {
|
|
|
366
372
|
throw Error(`unsupported data type: ${n}`);
|
|
367
373
|
}
|
|
368
374
|
}
|
|
369
|
-
function
|
|
375
|
+
function Ke(e) {
|
|
370
376
|
if (e === null || typeof e == "string" || typeof e == "number") return e;
|
|
371
377
|
if (typeof e == "bigint") return { bigint: e.toString() };
|
|
372
378
|
throw new Error(`Type ${typeof e} (value ${e}) not yet supported.`);
|
|
373
379
|
}
|
|
374
380
|
function G(e, n) {
|
|
375
381
|
if (e === null || typeof e == "string" || typeof e == "number" || typeof e == "bigint") {
|
|
376
|
-
if (n && !
|
|
382
|
+
if (n && !g(e, n) && !W(e, n))
|
|
377
383
|
throw new Error(`Unexpected value type, got ${typeof e}, expected ${n}`);
|
|
378
384
|
return e;
|
|
379
385
|
}
|
|
@@ -384,7 +390,7 @@ function G(e, n) {
|
|
|
384
390
|
}
|
|
385
391
|
throw new Error(`Unsupported type ${typeof e} (value ${e}).`);
|
|
386
392
|
}
|
|
387
|
-
function
|
|
393
|
+
function Me(e) {
|
|
388
394
|
if (e = X(e), e === null) throw new Error("Value is null");
|
|
389
395
|
return e;
|
|
390
396
|
}
|
|
@@ -404,14 +410,14 @@ function Q(e, n) {
|
|
|
404
410
|
return (e[t] & r) > 0;
|
|
405
411
|
}
|
|
406
412
|
const Y = { type: "absent" }, Z = null;
|
|
407
|
-
function
|
|
413
|
+
function _e(e) {
|
|
408
414
|
return typeof e == "object" && e !== null && e.type === "absent";
|
|
409
415
|
}
|
|
410
|
-
function
|
|
416
|
+
function qe(e, n, t = {}) {
|
|
411
417
|
if (Q(e.absent, n))
|
|
412
418
|
return t.absent === void 0 ? Y : t.absent;
|
|
413
419
|
const r = e.data[n], o = e.type;
|
|
414
|
-
if (
|
|
420
|
+
if (g(r, o)) return t.na === void 0 ? Z : t.na;
|
|
415
421
|
switch (o) {
|
|
416
422
|
case "Int":
|
|
417
423
|
return r;
|
|
@@ -429,17 +435,17 @@ function Me(e, n, t = {}) {
|
|
|
429
435
|
throw Error(`unsupported data type: ${o}`);
|
|
430
436
|
}
|
|
431
437
|
}
|
|
432
|
-
function
|
|
438
|
+
function Te(e) {
|
|
433
439
|
return {
|
|
434
440
|
kind: e.kind,
|
|
435
441
|
valueType: e.valueType,
|
|
436
442
|
name: e.name,
|
|
437
443
|
domain: e.domain,
|
|
438
444
|
parentAxes: e.parentAxes,
|
|
439
|
-
axesId:
|
|
445
|
+
axesId: C(e.axesSpec)
|
|
440
446
|
};
|
|
441
447
|
}
|
|
442
|
-
function
|
|
448
|
+
function ze(e) {
|
|
443
449
|
return {
|
|
444
450
|
columnId: e.id,
|
|
445
451
|
spec: e.spec
|
|
@@ -449,10 +455,10 @@ function y(e) {
|
|
|
449
455
|
const { type: n, name: t, domain: r } = e, o = { type: n, name: t };
|
|
450
456
|
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
451
457
|
}
|
|
452
|
-
function
|
|
458
|
+
function C(e) {
|
|
453
459
|
return e.map(y);
|
|
454
460
|
}
|
|
455
|
-
function
|
|
461
|
+
function He(e) {
|
|
456
462
|
return h(y(e));
|
|
457
463
|
}
|
|
458
464
|
function ee(e, n) {
|
|
@@ -465,10 +471,10 @@ function ee(e, n) {
|
|
|
465
471
|
function ne(e, n) {
|
|
466
472
|
return e.name === n.name && ee(e.domain, n.domain);
|
|
467
473
|
}
|
|
468
|
-
function
|
|
469
|
-
return { ...e, src:
|
|
474
|
+
function We(e, n) {
|
|
475
|
+
return { ...e, src: b(e.src, n) };
|
|
470
476
|
}
|
|
471
|
-
function
|
|
477
|
+
function b(e, n) {
|
|
472
478
|
switch (e.type) {
|
|
473
479
|
case "column":
|
|
474
480
|
return {
|
|
@@ -488,19 +494,19 @@ function g(e, n) {
|
|
|
488
494
|
case "full":
|
|
489
495
|
return {
|
|
490
496
|
type: e.type,
|
|
491
|
-
entries: e.entries.map((t) =>
|
|
497
|
+
entries: e.entries.map((t) => b(t, n))
|
|
492
498
|
};
|
|
493
499
|
case "outer":
|
|
494
500
|
return {
|
|
495
501
|
type: "outer",
|
|
496
|
-
primary:
|
|
497
|
-
secondary: e.secondary.map((t) =>
|
|
502
|
+
primary: b(e.primary, n),
|
|
503
|
+
secondary: e.secondary.map((t) => b(t, n))
|
|
498
504
|
};
|
|
499
505
|
default:
|
|
500
506
|
A(e);
|
|
501
507
|
}
|
|
502
508
|
}
|
|
503
|
-
function
|
|
509
|
+
function Ge(e) {
|
|
504
510
|
switch (e.type) {
|
|
505
511
|
case "axis":
|
|
506
512
|
return {
|
|
@@ -517,7 +523,7 @@ function He(e) {
|
|
|
517
523
|
function te(e) {
|
|
518
524
|
return h(e);
|
|
519
525
|
}
|
|
520
|
-
function
|
|
526
|
+
function Xe(e) {
|
|
521
527
|
return JSON.parse(e);
|
|
522
528
|
}
|
|
523
529
|
function x(e) {
|
|
@@ -526,7 +532,7 @@ function x(e) {
|
|
|
526
532
|
function S(e, n) {
|
|
527
533
|
return JSON.stringify([e, n]);
|
|
528
534
|
}
|
|
529
|
-
class
|
|
535
|
+
class Qe {
|
|
530
536
|
/**
|
|
531
537
|
* Creates a new anchor context from a set of anchor column specifications
|
|
532
538
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -627,7 +633,7 @@ class Ge {
|
|
|
627
633
|
return te(this.derive(n, t));
|
|
628
634
|
}
|
|
629
635
|
}
|
|
630
|
-
function
|
|
636
|
+
function Ye(e, n, t) {
|
|
631
637
|
const r = { ...n }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? !1;
|
|
632
638
|
if (r.domainAnchor !== void 0) {
|
|
633
639
|
const i = e[r.domainAnchor];
|
|
@@ -686,7 +692,7 @@ function re(e, n) {
|
|
|
686
692
|
function oe(e) {
|
|
687
693
|
return typeof e == "object" && "anchor" in e;
|
|
688
694
|
}
|
|
689
|
-
function
|
|
695
|
+
function Ze(e) {
|
|
690
696
|
return typeof e == "object" && e !== null && "source" in e && "axisFilters" in e;
|
|
691
697
|
}
|
|
692
698
|
function l(e) {
|
|
@@ -695,23 +701,23 @@ function l(e) {
|
|
|
695
701
|
function ie(e) {
|
|
696
702
|
return l(e.spec);
|
|
697
703
|
}
|
|
698
|
-
function
|
|
704
|
+
function en(e) {
|
|
699
705
|
return l(e.obj);
|
|
700
706
|
}
|
|
701
|
-
function
|
|
707
|
+
function nn(e) {
|
|
702
708
|
return l(e.obj.spec);
|
|
703
709
|
}
|
|
704
|
-
function
|
|
710
|
+
function tn(e) {
|
|
705
711
|
if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
706
712
|
return e;
|
|
707
713
|
}
|
|
708
|
-
function
|
|
714
|
+
function rn(e, n) {
|
|
709
715
|
return e === void 0 ? void 0 : {
|
|
710
716
|
...e,
|
|
711
717
|
data: n(e.data)
|
|
712
718
|
};
|
|
713
719
|
}
|
|
714
|
-
function
|
|
720
|
+
function on(e) {
|
|
715
721
|
const n = /* @__PURE__ */ new Map(), t = (r) => {
|
|
716
722
|
switch (r.type) {
|
|
717
723
|
case "column":
|
|
@@ -835,28 +841,28 @@ function N(e, n) {
|
|
|
835
841
|
}
|
|
836
842
|
return !0;
|
|
837
843
|
}
|
|
838
|
-
function
|
|
844
|
+
function sn(e) {
|
|
839
845
|
return Array.isArray(e) ? (n) => e.some((t) => l(n) && N(n, t)) : (n) => l(n) && N(n, e);
|
|
840
846
|
}
|
|
841
|
-
function
|
|
847
|
+
function an(e) {
|
|
842
848
|
const n = {
|
|
843
849
|
kind: e.kind,
|
|
844
850
|
name: e.name
|
|
845
851
|
};
|
|
846
|
-
return e.domain !== void 0 && (n.domain = e.domain), l(e) && (n.axesSpec =
|
|
852
|
+
return e.domain !== void 0 && (n.domain = e.domain), l(e) && (n.axesSpec = C(e.axesSpec)), h(n);
|
|
847
853
|
}
|
|
848
|
-
const
|
|
849
|
-
__isRef:
|
|
850
|
-
blockId:
|
|
851
|
-
name:
|
|
852
|
-
requireEnrichments:
|
|
854
|
+
const un = { href: "/" }, cn = p.object({
|
|
855
|
+
__isRef: p.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
856
|
+
blockId: p.string().describe("Upstream block id"),
|
|
857
|
+
name: p.string().describe("Name of the output provided to the upstream block's output context"),
|
|
858
|
+
requireEnrichments: p.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")
|
|
853
859
|
}).describe(
|
|
854
860
|
"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."
|
|
855
861
|
).readonly();
|
|
856
|
-
function
|
|
862
|
+
function fn(e) {
|
|
857
863
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === !0 && "blockId" in e && "name" in e;
|
|
858
864
|
}
|
|
859
|
-
function
|
|
865
|
+
function dn(e, n, t = !1) {
|
|
860
866
|
return t ? {
|
|
861
867
|
__isRef: !0,
|
|
862
868
|
blockId: e,
|
|
@@ -868,7 +874,7 @@ function cn(e, n, t = !1) {
|
|
|
868
874
|
name: n
|
|
869
875
|
};
|
|
870
876
|
}
|
|
871
|
-
function
|
|
877
|
+
function ln(e, n = !0) {
|
|
872
878
|
if (n)
|
|
873
879
|
return {
|
|
874
880
|
...e,
|
|
@@ -879,10 +885,10 @@ function fn(e, n = !0) {
|
|
|
879
885
|
return r;
|
|
880
886
|
}
|
|
881
887
|
}
|
|
882
|
-
function
|
|
888
|
+
function pn(e, n, t = !1) {
|
|
883
889
|
return e.blockId === n.blockId && e.name === n.name && (t || e.requireEnrichments === n.requireEnrichments);
|
|
884
890
|
}
|
|
885
|
-
function
|
|
891
|
+
function mn(e, n) {
|
|
886
892
|
return e.ok ? { ok: !0, value: n(e.value) } : e;
|
|
887
893
|
}
|
|
888
894
|
function ae(e) {
|
|
@@ -921,8 +927,8 @@ function $(e, n, t) {
|
|
|
921
927
|
c += "=";
|
|
922
928
|
return c;
|
|
923
929
|
}
|
|
924
|
-
const V = 15, de = 24, j =
|
|
925
|
-
function
|
|
930
|
+
const V = 15, de = 24, j = p.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
931
|
+
function yn() {
|
|
926
932
|
const e = new Uint8Array(V);
|
|
927
933
|
return crypto.getRandomValues(e), j.parse($(e, "RFC4648"));
|
|
928
934
|
}
|
|
@@ -930,56 +936,56 @@ function le(e) {
|
|
|
930
936
|
if (e.length !== V) throw new Error(`Wrong number of bytes: ${e.length}`);
|
|
931
937
|
return j.parse($(e, "RFC4648"));
|
|
932
938
|
}
|
|
933
|
-
async function
|
|
939
|
+
async function hn(e) {
|
|
934
940
|
const n = new TextEncoder(), t = await crypto.subtle.digest("SHA-256", n.encode(e));
|
|
935
941
|
return le(new Uint8Array(t.slice(0, 15)));
|
|
936
942
|
}
|
|
937
|
-
function
|
|
943
|
+
function bn(e) {
|
|
938
944
|
return JSON.stringify(e);
|
|
939
945
|
}
|
|
940
|
-
function
|
|
946
|
+
function gn(e) {
|
|
941
947
|
return h(e);
|
|
942
948
|
}
|
|
943
|
-
function
|
|
949
|
+
function wn(e) {
|
|
944
950
|
return JSON.parse(e);
|
|
945
951
|
}
|
|
946
|
-
class
|
|
952
|
+
class An extends Error {
|
|
947
953
|
constructor() {
|
|
948
954
|
super(...arguments);
|
|
949
955
|
d(this, "name", "AbortError");
|
|
950
956
|
}
|
|
951
957
|
}
|
|
952
|
-
class
|
|
958
|
+
class kn extends Error {
|
|
953
959
|
constructor() {
|
|
954
960
|
super(...arguments);
|
|
955
961
|
d(this, "name", "UiError");
|
|
956
962
|
}
|
|
957
963
|
}
|
|
958
|
-
function
|
|
964
|
+
function Pn(e) {
|
|
959
965
|
return e instanceof Error && e.name === "AbortError";
|
|
960
966
|
}
|
|
961
|
-
function
|
|
962
|
-
return e instanceof Error ? e.name === "AbortError" ||
|
|
967
|
+
function pe(e) {
|
|
968
|
+
return e instanceof Error ? e.name === "AbortError" || pe(e.cause) : !1;
|
|
963
969
|
}
|
|
964
|
-
function
|
|
970
|
+
function En(e) {
|
|
965
971
|
return e instanceof Error && e.name === "AggregateError";
|
|
966
972
|
}
|
|
967
|
-
class
|
|
973
|
+
class me extends Error {
|
|
968
974
|
constructor() {
|
|
969
975
|
super(...arguments);
|
|
970
976
|
d(this, "name", "PFrameError");
|
|
971
977
|
}
|
|
972
978
|
}
|
|
973
|
-
function
|
|
979
|
+
function xn(e) {
|
|
974
980
|
return e instanceof Error && e.name === "PFrameError";
|
|
975
981
|
}
|
|
976
|
-
class
|
|
982
|
+
class Sn extends me {
|
|
977
983
|
constructor() {
|
|
978
984
|
super(...arguments);
|
|
979
985
|
d(this, "name", "PFrameError.Driver");
|
|
980
986
|
}
|
|
981
987
|
}
|
|
982
|
-
function
|
|
988
|
+
function vn(e) {
|
|
983
989
|
return e instanceof Error && e.name === "PFrameError.Driver";
|
|
984
990
|
}
|
|
985
991
|
function ye(e) {
|
|
@@ -993,15 +999,15 @@ function ye(e) {
|
|
|
993
999
|
}
|
|
994
1000
|
return `Non-Error value (${typeof e}) was thrown: ${e}`;
|
|
995
1001
|
}
|
|
996
|
-
function
|
|
1002
|
+
function k(e) {
|
|
997
1003
|
return e instanceof Error ? e : new Error(ye(e));
|
|
998
1004
|
}
|
|
999
|
-
function
|
|
1000
|
-
const n = e.cause ?
|
|
1005
|
+
function P(e) {
|
|
1006
|
+
const n = e.cause ? P(e.cause) : void 0, t = new Error(e.message, n !== void 0 ? { cause: n } : void 0);
|
|
1001
1007
|
return t.name = e.name || "Error", t.stack = e.stack, t;
|
|
1002
1008
|
}
|
|
1003
1009
|
function I(e) {
|
|
1004
|
-
const n =
|
|
1010
|
+
const n = k(e), t = n.cause ? I(n.cause) : void 0;
|
|
1005
1011
|
return {
|
|
1006
1012
|
name: n.name,
|
|
1007
1013
|
message: n.message,
|
|
@@ -1009,57 +1015,57 @@ function I(e) {
|
|
|
1009
1015
|
...n.cause !== void 0 && { cause: t }
|
|
1010
1016
|
};
|
|
1011
1017
|
}
|
|
1012
|
-
function
|
|
1018
|
+
function Nn(e) {
|
|
1013
1019
|
if (e.error)
|
|
1014
|
-
throw e.error instanceof Error ? e.error :
|
|
1020
|
+
throw e.error instanceof Error ? e.error : P(e.error);
|
|
1015
1021
|
return e.value;
|
|
1016
1022
|
}
|
|
1017
1023
|
function J(e) {
|
|
1018
1024
|
return e.error ? { error: I(e.error) } : { value: e.value };
|
|
1019
1025
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return e.error ? { error:
|
|
1026
|
+
function On(e) {
|
|
1027
|
+
return e.error ? { error: P(e.error) } : { value: e.value };
|
|
1022
1028
|
}
|
|
1023
1029
|
function he(e) {
|
|
1024
1030
|
try {
|
|
1025
1031
|
return { value: e() };
|
|
1026
1032
|
} catch (n) {
|
|
1027
|
-
return { error:
|
|
1033
|
+
return { error: k(n) };
|
|
1028
1034
|
}
|
|
1029
1035
|
}
|
|
1030
|
-
async function
|
|
1036
|
+
async function be(e) {
|
|
1031
1037
|
try {
|
|
1032
1038
|
return { value: await e() };
|
|
1033
1039
|
} catch (n) {
|
|
1034
|
-
return { error:
|
|
1040
|
+
return { error: k(n) };
|
|
1035
1041
|
}
|
|
1036
1042
|
}
|
|
1037
|
-
function
|
|
1043
|
+
function Fn(e) {
|
|
1038
1044
|
const n = he(e);
|
|
1039
1045
|
return J(n);
|
|
1040
1046
|
}
|
|
1041
|
-
async function
|
|
1042
|
-
const n = await
|
|
1047
|
+
async function Cn(e) {
|
|
1048
|
+
const n = await be(e);
|
|
1043
1049
|
return J(n);
|
|
1044
1050
|
}
|
|
1045
|
-
const
|
|
1046
|
-
function
|
|
1051
|
+
const $n = ["supportsLazyState"], Vn = ["requiresUIAPIVersion", "requiresModelAPIVersion"];
|
|
1052
|
+
function jn(e, n, t = !0) {
|
|
1047
1053
|
return e === void 0 ? !1 : e[n] === t;
|
|
1048
1054
|
}
|
|
1049
|
-
function
|
|
1055
|
+
function In(e) {
|
|
1050
1056
|
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, t]) => n.startsWith("requires") && t === !0).map(([n]) => n));
|
|
1051
1057
|
}
|
|
1052
|
-
function
|
|
1058
|
+
function Jn(e) {
|
|
1053
1059
|
return e === void 0 ? /* @__PURE__ */ new Set() : new Set(Object.entries(e).filter(([n, t]) => n.startsWith("supports") && t === !0).map(([n]) => n));
|
|
1054
1060
|
}
|
|
1055
|
-
class
|
|
1061
|
+
class ge extends Error {
|
|
1056
1062
|
constructor(t) {
|
|
1057
1063
|
super(`Some of the block requirements are not supported by the runtime: ${Array.from(t.entries()).map(([r, o]) => `${r}: ${o}`).join(", ")}`);
|
|
1058
1064
|
d(this, "name", "IncompatibleFlagsError");
|
|
1059
1065
|
this.incompatibleFlags = t;
|
|
1060
1066
|
}
|
|
1061
1067
|
}
|
|
1062
|
-
class
|
|
1068
|
+
class Dn {
|
|
1063
1069
|
constructor() {
|
|
1064
1070
|
d(this, "supportedRequirements", /* @__PURE__ */ new Map());
|
|
1065
1071
|
}
|
|
@@ -1103,114 +1109,116 @@ class In {
|
|
|
1103
1109
|
throwIfIncompatible(n) {
|
|
1104
1110
|
const t = this.getIncompatibleFlags(n);
|
|
1105
1111
|
if (t !== void 0)
|
|
1106
|
-
throw new
|
|
1112
|
+
throw new ge(t);
|
|
1107
1113
|
}
|
|
1108
1114
|
}
|
|
1109
1115
|
export {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1116
|
+
An as AbortError,
|
|
1117
|
+
Vn as AllRequiresFeatureFlags,
|
|
1118
|
+
$n as AllSupportsFeatureFlags,
|
|
1119
|
+
Qe as AnchoredIdDeriver,
|
|
1120
|
+
un as DefaultNavigationState,
|
|
1121
|
+
ge as IncompatibleFlagsError,
|
|
1122
|
+
Sn as PFrameDriverError,
|
|
1123
|
+
me as PFrameError,
|
|
1118
1124
|
Y as PTableAbsent,
|
|
1119
1125
|
Z as PTableNA,
|
|
1120
1126
|
z as PValueBytesNA,
|
|
1121
|
-
|
|
1122
|
-
|
|
1127
|
+
Be as PValueDoubleNA,
|
|
1128
|
+
Le as PValueFloatNA,
|
|
1123
1129
|
q as PValueIntNA,
|
|
1124
|
-
|
|
1130
|
+
E as PValueLongNA,
|
|
1125
1131
|
T as PValueStringNA,
|
|
1126
1132
|
j as PlId,
|
|
1127
1133
|
V as PlIdBytes,
|
|
1128
1134
|
de as PlIdLength,
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1135
|
+
cn as PlRef,
|
|
1136
|
+
ve as RangeBytes,
|
|
1137
|
+
Dn as RuntimeCapabilities,
|
|
1138
|
+
kn as UiError,
|
|
1139
|
+
He as canonicalizeAxisId,
|
|
1140
|
+
gn as canonicalizeJson,
|
|
1141
|
+
jn as checkBlockFlag,
|
|
1142
|
+
dn as createPlRef,
|
|
1143
|
+
Je as dataInfoToEntries,
|
|
1144
|
+
an as deriveNativeId,
|
|
1145
|
+
P as deserializeError,
|
|
1146
|
+
On as deserializeResult,
|
|
1147
|
+
hn as digestPlId,
|
|
1148
|
+
k as ensureError,
|
|
1149
|
+
Ue as ensureNotNAPValue,
|
|
1150
|
+
tn as ensurePColumn,
|
|
1151
|
+
De as entriesToDataInfo,
|
|
1146
1152
|
w as executePSpecPredicate,
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
+
on as extractAllColumns,
|
|
1154
|
+
In as extractAllRequirements,
|
|
1155
|
+
Jn as extractAllSupports,
|
|
1156
|
+
Pe as extractCodeWithInfo,
|
|
1157
|
+
Ee as extractConfigGeneric,
|
|
1158
|
+
C as getAxesId,
|
|
1153
1159
|
y as getAxisId,
|
|
1154
|
-
|
|
1155
|
-
|
|
1160
|
+
ze as getColumnIdAndSpec,
|
|
1161
|
+
Ce as getFileNameFromHandle,
|
|
1156
1162
|
K as getFilePathFromHandle,
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
+
Te as getPColumnSpecId,
|
|
1164
|
+
Ge as getPTableColumnId,
|
|
1165
|
+
pe as hasAbortError,
|
|
1166
|
+
Pn as isAbortError,
|
|
1167
|
+
En as isAggregateError,
|
|
1168
|
+
Se as isBlockUIURL,
|
|
1169
|
+
$e as isDataInfo,
|
|
1163
1170
|
_ as isDataInfoEntries,
|
|
1164
|
-
|
|
1171
|
+
Ze as isFilteredPColumn,
|
|
1172
|
+
xe as isFolderURL,
|
|
1165
1173
|
U as isImportFileHandleIndex,
|
|
1166
1174
|
B as isImportFileHandleUpload,
|
|
1167
|
-
|
|
1175
|
+
Fe as isLiveLog,
|
|
1168
1176
|
H as isNotNAPValue,
|
|
1169
1177
|
ie as isPColumn,
|
|
1170
|
-
|
|
1178
|
+
nn as isPColumnResult,
|
|
1171
1179
|
l as isPColumnSpec,
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1180
|
+
en as isPColumnSpecResult,
|
|
1181
|
+
vn as isPFrameDriverError,
|
|
1182
|
+
xn as isPFrameError,
|
|
1183
|
+
_e as isPTableAbsent,
|
|
1176
1184
|
W as isPValue,
|
|
1177
|
-
|
|
1178
|
-
|
|
1185
|
+
Ie as isPartitionedDataInfoEntries,
|
|
1186
|
+
fn as isPlRef,
|
|
1179
1187
|
Q as isValueAbsent,
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1188
|
+
g as isValueNA,
|
|
1189
|
+
Ve as mapDataInfo,
|
|
1190
|
+
Re as mapDataInfoEntries,
|
|
1191
|
+
b as mapJoinEntry,
|
|
1192
|
+
rn as mapPObjectData,
|
|
1193
|
+
We as mapPTableDef,
|
|
1194
|
+
mn as mapValueInVOE,
|
|
1187
1195
|
v as matchAxis,
|
|
1188
1196
|
ne as matchAxisId,
|
|
1189
1197
|
N as matchPColumn,
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1198
|
+
Ne as newRangeBytesOpt,
|
|
1199
|
+
qe as pTableValue,
|
|
1200
|
+
Me as pValueToStringOrNumber,
|
|
1193
1201
|
X as pValueToStringOrNumberOrNull,
|
|
1194
|
-
|
|
1195
|
-
|
|
1202
|
+
Xe as parseColumnId,
|
|
1203
|
+
wn as parseJson,
|
|
1196
1204
|
le as plId,
|
|
1197
|
-
|
|
1198
|
-
|
|
1205
|
+
pn as plRefsEqual,
|
|
1206
|
+
Ye as resolveAnchors,
|
|
1199
1207
|
G as safeConvertToPValue,
|
|
1200
|
-
|
|
1208
|
+
sn as selectorsToPredicate,
|
|
1201
1209
|
I as serializeError,
|
|
1202
1210
|
J as serializeResult,
|
|
1203
1211
|
te as stringifyColumnId,
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1212
|
+
bn as stringifyJson,
|
|
1213
|
+
Ke as toJsonSafePValue,
|
|
1214
|
+
yn as uniquePlId,
|
|
1215
|
+
Nn as unwrapResult,
|
|
1216
|
+
Oe as validateRangeBytes,
|
|
1217
|
+
je as visitDataInfo,
|
|
1218
|
+
ln as withEnrichments,
|
|
1219
|
+
Fn as wrapAndSerialize,
|
|
1220
|
+
Cn as wrapAndSerializeAsync,
|
|
1221
|
+
be as wrapAsyncCallback,
|
|
1214
1222
|
he as wrapCallback
|
|
1215
1223
|
};
|
|
1216
1224
|
//# sourceMappingURL=index.mjs.map
|