@milaboratories/pl-model-common 1.13.6 → 1.13.8
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/pframe/spec/spec.d.ts +18 -0
- package/dist/drivers/pframe/spec/spec.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +152 -129
- package/dist/index.mjs.map +1 -1
- package/dist/json.d.ts +19 -0
- package/dist/json.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/drivers/pframe/spec/spec.ts +34 -0
- package/src/index.ts +1 -0
- package/src/json.ts +37 -0
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = (n, t, e) =>
|
|
4
|
-
import
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var $ = (n, t, e) => t in n ? I(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var m = (n, t, e) => $(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import h from "canonicalize";
|
|
5
5
|
import { z as y } from "zod";
|
|
6
|
-
function
|
|
6
|
+
function dn(n) {
|
|
7
7
|
return n !== void 0 && n.startsWith("log+live://log/");
|
|
8
8
|
}
|
|
9
9
|
function w(n) {
|
|
10
10
|
throw new Error("Unexpected object: " + n);
|
|
11
11
|
}
|
|
12
12
|
const S = "upload://upload/", E = "index://index/";
|
|
13
|
-
function
|
|
13
|
+
function D(n) {
|
|
14
14
|
return n.startsWith(S);
|
|
15
15
|
}
|
|
16
16
|
function L(n) {
|
|
@@ -20,7 +20,7 @@ function V(n) {
|
|
|
20
20
|
if (L(n)) {
|
|
21
21
|
const t = n.slice(E.length);
|
|
22
22
|
return JSON.parse(decodeURIComponent(t)).path;
|
|
23
|
-
} else if (
|
|
23
|
+
} else if (D(n)) {
|
|
24
24
|
const t = n.slice(S.length);
|
|
25
25
|
return JSON.parse(decodeURIComponent(t)).localPath;
|
|
26
26
|
}
|
|
@@ -29,10 +29,10 @@ function V(n) {
|
|
|
29
29
|
function B(n) {
|
|
30
30
|
return n.replace(/^.*[\\/]/, "");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function pn(n) {
|
|
33
33
|
return B(V(n));
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function mn(n) {
|
|
36
36
|
if (!n || typeof n != "object")
|
|
37
37
|
return !1;
|
|
38
38
|
const t = n;
|
|
@@ -49,7 +49,7 @@ function pn(n) {
|
|
|
49
49
|
return !1;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function yn(n, t) {
|
|
53
53
|
if (n !== void 0)
|
|
54
54
|
switch (n.type) {
|
|
55
55
|
case "Json":
|
|
@@ -94,10 +94,10 @@ function j(n) {
|
|
|
94
94
|
return !1;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function ln(n) {
|
|
98
98
|
return j(n) ? n.type === "JsonPartitioned" || n.type === "BinaryPartitioned" : !1;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function hn(n) {
|
|
101
101
|
switch (n.type) {
|
|
102
102
|
case "Json": {
|
|
103
103
|
const t = Object.entries(n.data).map(([e, r]) => ({ key: JSON.parse(e), value: r }));
|
|
@@ -125,7 +125,7 @@ function ln(n) {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function gn(n) {
|
|
129
129
|
switch (n.type) {
|
|
130
130
|
case "Json": {
|
|
131
131
|
const t = {};
|
|
@@ -159,7 +159,7 @@ function hn(n) {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function bn(n, t) {
|
|
163
163
|
if (n !== void 0)
|
|
164
164
|
switch (n.type) {
|
|
165
165
|
case "Json":
|
|
@@ -189,8 +189,8 @@ function gn(n, t) {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
const F = -2147483648, P = -9007199254740991n,
|
|
193
|
-
function
|
|
192
|
+
const F = -2147483648, P = -9007199254740991n, wn = NaN, Pn = NaN, U = null, K = null;
|
|
193
|
+
function g(n, t) {
|
|
194
194
|
switch (t) {
|
|
195
195
|
case "Int":
|
|
196
196
|
return n === F;
|
|
@@ -208,14 +208,14 @@ function h(n, t) {
|
|
|
208
208
|
throw Error(`unsupported data type: ${t}`);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function xn(n) {
|
|
212
212
|
if (!R(n)) throw new Error(`Expected not-NA PValue, got ${n}`);
|
|
213
213
|
return n;
|
|
214
214
|
}
|
|
215
215
|
function R(n, t) {
|
|
216
216
|
if (!t)
|
|
217
217
|
return typeof n == "string" || typeof n == "number" && isFinite(n) || typeof n == "bigint";
|
|
218
|
-
if (
|
|
218
|
+
if (g(n, t)) return !1;
|
|
219
219
|
switch (t) {
|
|
220
220
|
case "Int":
|
|
221
221
|
return typeof n == "number";
|
|
@@ -236,7 +236,7 @@ function R(n, t) {
|
|
|
236
236
|
function M(n, t) {
|
|
237
237
|
if (!t)
|
|
238
238
|
return n === null || typeof n == "string" || typeof n == "number" || typeof n == "bigint";
|
|
239
|
-
if (
|
|
239
|
+
if (g(n, t)) return !0;
|
|
240
240
|
switch (t) {
|
|
241
241
|
case "Int":
|
|
242
242
|
return typeof n == "number";
|
|
@@ -259,9 +259,9 @@ function An(n) {
|
|
|
259
259
|
if (typeof n == "bigint") return { bigint: n.toString() };
|
|
260
260
|
throw new Error(`Type ${typeof n} (value ${n}) not yet supported.`);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function T(n, t) {
|
|
263
263
|
if (n === null || typeof n == "string" || typeof n == "number" || typeof n == "bigint") {
|
|
264
|
-
if (t && !
|
|
264
|
+
if (t && !g(n, t) && !M(n, t))
|
|
265
265
|
throw new Error(`Unexpected value type, got ${typeof n}, expected ${t}`);
|
|
266
266
|
return n;
|
|
267
267
|
}
|
|
@@ -272,12 +272,12 @@ function _(n, t) {
|
|
|
272
272
|
}
|
|
273
273
|
throw new Error(`Unsupported type ${typeof n} (value ${n}).`);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
if (n =
|
|
275
|
+
function kn(n) {
|
|
276
|
+
if (n = v(n), n === null) throw new Error("Value is null");
|
|
277
277
|
return n;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
if (n =
|
|
279
|
+
function v(n) {
|
|
280
|
+
if (n = T(n), n === null) return null;
|
|
281
281
|
if (typeof n == "string") return n;
|
|
282
282
|
if (typeof n == "number") {
|
|
283
283
|
if (!isFinite(n)) throw new Error(`Value is not finite (${n})`);
|
|
@@ -287,19 +287,19 @@ function H(n) {
|
|
|
287
287
|
return Number(n);
|
|
288
288
|
throw new Error(`Unexpected value type: ${typeof n}`);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function _(n, t) {
|
|
291
291
|
const e = Math.floor(t / 8), r = 1 << 7 - t % 8;
|
|
292
292
|
return (n[e] & r) > 0;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
295
|
-
function
|
|
294
|
+
const H = { type: "absent" }, W = null;
|
|
295
|
+
function Nn(n) {
|
|
296
296
|
return typeof n == "object" && n !== null && n.type === "absent";
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
if (
|
|
300
|
-
return e.absent === void 0 ?
|
|
298
|
+
function Sn(n, t, e = {}) {
|
|
299
|
+
if (_(n.absent, t))
|
|
300
|
+
return e.absent === void 0 ? H : e.absent;
|
|
301
301
|
const r = n.data[t], o = n.type;
|
|
302
|
-
if (
|
|
302
|
+
if (g(r, o)) return e.na === void 0 ? W : e.na;
|
|
303
303
|
switch (o) {
|
|
304
304
|
case "Int":
|
|
305
305
|
return r;
|
|
@@ -317,7 +317,17 @@ function Nn(n, t, e = {}) {
|
|
|
317
317
|
throw Error(`unsupported data type: ${o}`);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function En(n) {
|
|
321
|
+
return {
|
|
322
|
+
kind: n.kind,
|
|
323
|
+
valueType: n.valueType,
|
|
324
|
+
name: n.name,
|
|
325
|
+
domain: n.domain,
|
|
326
|
+
parentAxes: n.parentAxes,
|
|
327
|
+
axesId: z(n.axesSpec)
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function Cn(n) {
|
|
321
331
|
return {
|
|
322
332
|
columnId: n.id,
|
|
323
333
|
spec: n.spec
|
|
@@ -327,11 +337,11 @@ function p(n) {
|
|
|
327
337
|
const { type: t, name: e, domain: r } = n;
|
|
328
338
|
return { type: t, name: e, ...r && { domain: r } };
|
|
329
339
|
}
|
|
330
|
-
function
|
|
340
|
+
function z(n) {
|
|
331
341
|
return n.map(p);
|
|
332
342
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
343
|
+
function Jn(n) {
|
|
344
|
+
return h(p(n));
|
|
335
345
|
}
|
|
336
346
|
function X(n, t) {
|
|
337
347
|
if (n === void 0) return t === void 0;
|
|
@@ -340,10 +350,10 @@ function X(n, t) {
|
|
|
340
350
|
if (n[e] !== t[e]) return !1;
|
|
341
351
|
return !0;
|
|
342
352
|
}
|
|
343
|
-
function
|
|
353
|
+
function G(n, t) {
|
|
344
354
|
return n.name === t.name && X(n.domain, t.domain);
|
|
345
355
|
}
|
|
346
|
-
function
|
|
356
|
+
function On(n, t) {
|
|
347
357
|
return { ...n, src: l(n.src, t) };
|
|
348
358
|
}
|
|
349
359
|
function l(n, t) {
|
|
@@ -376,16 +386,16 @@ function l(n, t) {
|
|
|
376
386
|
w(n);
|
|
377
387
|
}
|
|
378
388
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
389
|
+
function Q(n) {
|
|
390
|
+
return h(n);
|
|
381
391
|
}
|
|
382
|
-
function
|
|
392
|
+
function In(n) {
|
|
383
393
|
return JSON.parse(n);
|
|
384
394
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
395
|
+
function x(n) {
|
|
396
|
+
return h(p(n));
|
|
387
397
|
}
|
|
388
|
-
function
|
|
398
|
+
function A(n, t) {
|
|
389
399
|
return JSON.stringify([n, t]);
|
|
390
400
|
}
|
|
391
401
|
class $n {
|
|
@@ -410,14 +420,14 @@ class $n {
|
|
|
410
420
|
e.sort((r, o) => r[0].localeCompare(o[0]));
|
|
411
421
|
for (const [r, o] of e) {
|
|
412
422
|
for (let s = 0; s < o.axesSpec.length; s++) {
|
|
413
|
-
const a = o.axesSpec[s], i =
|
|
423
|
+
const a = o.axesSpec[s], i = x(a);
|
|
414
424
|
this.axes.set(i, { anchor: r, idx: s });
|
|
415
425
|
}
|
|
416
426
|
if (o.domain !== void 0) {
|
|
417
427
|
const s = Object.entries(o.domain);
|
|
418
428
|
s.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s), r), this.domainPacks.push(s.map(([a]) => a));
|
|
419
429
|
for (const [a, i] of s) {
|
|
420
|
-
const u =
|
|
430
|
+
const u = A(a, i);
|
|
421
431
|
this.domains.set(u, r);
|
|
422
432
|
}
|
|
423
433
|
}
|
|
@@ -452,11 +462,11 @@ class $n {
|
|
|
452
462
|
for (const [a, i] of Object.entries(t.domain ?? {})) {
|
|
453
463
|
if (o !== void 0 && o.has(a))
|
|
454
464
|
continue;
|
|
455
|
-
const u =
|
|
465
|
+
const u = A(a, i), c = this.domains.get(u);
|
|
456
466
|
r.domain ?? (r.domain = {}), r.domain[a] = c ? { anchor: c } : i;
|
|
457
467
|
}
|
|
458
468
|
if (r.axes = t.axesSpec.map((a) => {
|
|
459
|
-
const i =
|
|
469
|
+
const i = x(a), u = this.axes.get(i);
|
|
460
470
|
return u === void 0 ? p(a) : u;
|
|
461
471
|
}), !e || e.length === 0)
|
|
462
472
|
return r;
|
|
@@ -486,7 +496,7 @@ class $n {
|
|
|
486
496
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
487
497
|
*/
|
|
488
498
|
deriveS(t, e) {
|
|
489
|
-
return
|
|
499
|
+
return Q(this.derive(t, e));
|
|
490
500
|
}
|
|
491
501
|
}
|
|
492
502
|
function Dn(n, t, e) {
|
|
@@ -516,10 +526,10 @@ function Dn(n, t, e) {
|
|
|
516
526
|
}
|
|
517
527
|
r.domain = s;
|
|
518
528
|
}
|
|
519
|
-
return r.axes && (r.axes = r.axes.map((s) =>
|
|
529
|
+
return r.axes && (r.axes = r.axes.map((s) => Y(n, s))), r;
|
|
520
530
|
}
|
|
521
|
-
function
|
|
522
|
-
if (!
|
|
531
|
+
function Y(n, t) {
|
|
532
|
+
if (!Z(t))
|
|
523
533
|
return t;
|
|
524
534
|
const e = t.anchor, r = n[e];
|
|
525
535
|
if (!r)
|
|
@@ -536,7 +546,7 @@ function Q(n, t) {
|
|
|
536
546
|
throw new Error(`Axis with name "${t.name}" not found in anchor "${e}"`);
|
|
537
547
|
return o[0];
|
|
538
548
|
} else if ("id" in t) {
|
|
539
|
-
const o = r.axesSpec.filter((s) =>
|
|
549
|
+
const o = r.axesSpec.filter((s) => G(t.id, p(s)));
|
|
540
550
|
if (o.length > 1)
|
|
541
551
|
throw new Error(`Multiple matching axes found for matcher in anchor "${e}"`);
|
|
542
552
|
if (o.length === 0)
|
|
@@ -545,35 +555,35 @@ function Q(n, t) {
|
|
|
545
555
|
}
|
|
546
556
|
throw new Error("Unsupported axis reference type");
|
|
547
557
|
}
|
|
548
|
-
function
|
|
558
|
+
function Z(n) {
|
|
549
559
|
return typeof n == "object" && "anchor" in n;
|
|
550
560
|
}
|
|
551
|
-
function
|
|
561
|
+
function Ln(n) {
|
|
552
562
|
return typeof n == "object" && n !== null && "source" in n && "axisFilters" in n;
|
|
553
563
|
}
|
|
554
564
|
function f(n) {
|
|
555
565
|
return n.kind === "PColumn";
|
|
556
566
|
}
|
|
557
|
-
function
|
|
567
|
+
function q(n) {
|
|
558
568
|
return f(n.spec);
|
|
559
569
|
}
|
|
560
|
-
function
|
|
570
|
+
function Vn(n) {
|
|
561
571
|
return f(n.obj);
|
|
562
572
|
}
|
|
563
|
-
function
|
|
573
|
+
function Bn(n) {
|
|
564
574
|
return f(n.obj.spec);
|
|
565
575
|
}
|
|
566
|
-
function
|
|
567
|
-
if (!
|
|
576
|
+
function jn(n) {
|
|
577
|
+
if (!q(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
|
|
568
578
|
return n;
|
|
569
579
|
}
|
|
570
|
-
function
|
|
580
|
+
function Fn(n, t) {
|
|
571
581
|
return n === void 0 ? void 0 : {
|
|
572
582
|
...n,
|
|
573
583
|
data: t(n.data)
|
|
574
584
|
};
|
|
575
585
|
}
|
|
576
|
-
function
|
|
586
|
+
function Un(n) {
|
|
577
587
|
const t = /* @__PURE__ */ new Map(), e = (r) => {
|
|
578
588
|
switch (r.type) {
|
|
579
589
|
case "column":
|
|
@@ -596,21 +606,21 @@ function Fn(n) {
|
|
|
596
606
|
};
|
|
597
607
|
return e(n), [...t.values()];
|
|
598
608
|
}
|
|
599
|
-
function
|
|
609
|
+
function nn(n) {
|
|
600
610
|
throw new Error("Unexpected object: " + n);
|
|
601
611
|
}
|
|
602
|
-
function
|
|
612
|
+
function b(n, t) {
|
|
603
613
|
switch (n.type) {
|
|
604
614
|
case "and":
|
|
605
615
|
for (const e of n.operands)
|
|
606
|
-
if (!
|
|
616
|
+
if (!b(e, t)) return !1;
|
|
607
617
|
return !0;
|
|
608
618
|
case "or":
|
|
609
619
|
for (const e of n.operands)
|
|
610
|
-
if (
|
|
620
|
+
if (b(e, t)) return !0;
|
|
611
621
|
return !1;
|
|
612
622
|
case "not":
|
|
613
|
-
return !
|
|
623
|
+
return !b(n.operand, t);
|
|
614
624
|
case "name":
|
|
615
625
|
return f(t) && t.name === n.name;
|
|
616
626
|
case "name_pattern":
|
|
@@ -628,7 +638,7 @@ function g(n, t) {
|
|
|
628
638
|
)
|
|
629
639
|
);
|
|
630
640
|
default:
|
|
631
|
-
|
|
641
|
+
nn(n);
|
|
632
642
|
}
|
|
633
643
|
}
|
|
634
644
|
function k(n, t) {
|
|
@@ -695,26 +705,26 @@ function N(n, t) {
|
|
|
695
705
|
}
|
|
696
706
|
return !0;
|
|
697
707
|
}
|
|
698
|
-
function
|
|
708
|
+
function Kn(n) {
|
|
699
709
|
return Array.isArray(n) ? (t) => n.some((e) => f(t) && N(t, e)) : (t) => f(t) && N(t, n);
|
|
700
710
|
}
|
|
701
|
-
const
|
|
711
|
+
const Rn = { href: "/" }, Mn = y.object({
|
|
702
712
|
__isRef: y.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
703
713
|
blockId: y.string().describe("Upstream block id"),
|
|
704
714
|
name: y.string().describe("Name of the output provided to the upstream block's output context")
|
|
705
715
|
}).describe(
|
|
706
716
|
"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."
|
|
707
717
|
).strict().readonly();
|
|
708
|
-
function
|
|
718
|
+
function Tn(n) {
|
|
709
719
|
return typeof n == "object" && n !== null && "__isRef" in n && n.__isRef === !0 && "blockId" in n && "name" in n;
|
|
710
720
|
}
|
|
711
|
-
function
|
|
721
|
+
function vn(n, t) {
|
|
712
722
|
return n.blockId === t.blockId && n.name === t.name;
|
|
713
723
|
}
|
|
714
|
-
function
|
|
724
|
+
function _n(n, t) {
|
|
715
725
|
return n.ok ? { ok: !0, value: t(n.value) } : n;
|
|
716
726
|
}
|
|
717
|
-
function
|
|
727
|
+
function tn(n) {
|
|
718
728
|
if (n instanceof Int8Array || n instanceof Uint8Array || n instanceof Uint8ClampedArray)
|
|
719
729
|
return new DataView(n.buffer, n.byteOffset, n.byteLength);
|
|
720
730
|
if (n instanceof ArrayBuffer) return new DataView(n);
|
|
@@ -722,25 +732,25 @@ function nn(n) {
|
|
|
722
732
|
"Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray"
|
|
723
733
|
);
|
|
724
734
|
}
|
|
725
|
-
const
|
|
735
|
+
const en = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", rn = "0123456789ABCDEFGHIJKLMNOPQRSTUV", on = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
726
736
|
function C(n, t, e) {
|
|
727
737
|
e = e || {};
|
|
728
738
|
let r, o;
|
|
729
739
|
switch (t) {
|
|
730
740
|
case "RFC3548":
|
|
731
741
|
case "RFC4648":
|
|
732
|
-
r =
|
|
742
|
+
r = en, o = !0;
|
|
733
743
|
break;
|
|
734
744
|
case "RFC4648-HEX":
|
|
735
|
-
r =
|
|
745
|
+
r = rn, o = !0;
|
|
736
746
|
break;
|
|
737
747
|
case "Crockford":
|
|
738
|
-
r =
|
|
748
|
+
r = on, o = !1;
|
|
739
749
|
break;
|
|
740
750
|
default:
|
|
741
751
|
throw new Error("Unknown base32 variant: " + String(t));
|
|
742
752
|
}
|
|
743
|
-
const s = e.padding !== void 0 ? e.padding : o, a =
|
|
753
|
+
const s = e.padding !== void 0 ? e.padding : o, a = tn(n);
|
|
744
754
|
let i = 0, u = 0, c = "";
|
|
745
755
|
for (let d = 0; d < a.byteLength; d++)
|
|
746
756
|
for (u = u << 8 | a.getUint8(d), i += 8; i >= 5; )
|
|
@@ -750,84 +760,97 @@ function C(n, t, e) {
|
|
|
750
760
|
c += "=";
|
|
751
761
|
return c;
|
|
752
762
|
}
|
|
753
|
-
const J = 15,
|
|
754
|
-
function
|
|
763
|
+
const J = 15, sn = 24, O = y.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
764
|
+
function Hn() {
|
|
755
765
|
const n = new Uint8Array(J);
|
|
756
766
|
return crypto.getRandomValues(n), O.parse(C(n, "RFC4648"));
|
|
757
767
|
}
|
|
758
|
-
function
|
|
768
|
+
function an(n) {
|
|
759
769
|
if (n.length !== J) throw new Error(`Wrong number of bytes: ${n.length}`);
|
|
760
770
|
return O.parse(C(n, "RFC4648"));
|
|
761
771
|
}
|
|
762
|
-
async function
|
|
772
|
+
async function Wn(n) {
|
|
763
773
|
const t = new TextEncoder(), e = await crypto.subtle.digest("SHA-256", t.encode(n));
|
|
764
|
-
return
|
|
774
|
+
return an(new Uint8Array(e.slice(0, 15)));
|
|
775
|
+
}
|
|
776
|
+
function zn(n) {
|
|
777
|
+
return JSON.stringify(n);
|
|
778
|
+
}
|
|
779
|
+
function Xn(n) {
|
|
780
|
+
return h(n);
|
|
781
|
+
}
|
|
782
|
+
function Gn(n) {
|
|
783
|
+
return JSON.parse(n);
|
|
765
784
|
}
|
|
766
785
|
export {
|
|
767
786
|
$n as AnchoredIdDeriver,
|
|
768
|
-
|
|
769
|
-
|
|
787
|
+
Rn as DefaultNavigationState,
|
|
788
|
+
H as PTableAbsent,
|
|
770
789
|
W as PTableNA,
|
|
771
790
|
K as PValueBytesNA,
|
|
772
|
-
|
|
773
|
-
|
|
791
|
+
Pn as PValueDoubleNA,
|
|
792
|
+
wn as PValueFloatNA,
|
|
774
793
|
F as PValueIntNA,
|
|
775
794
|
P as PValueLongNA,
|
|
776
795
|
U as PValueStringNA,
|
|
777
796
|
O as PlId,
|
|
778
797
|
J as PlIdBytes,
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
798
|
+
sn as PlIdLength,
|
|
799
|
+
Mn as PlRef,
|
|
800
|
+
Jn as canonicalizeAxisId,
|
|
801
|
+
Xn as canonicalizeJson,
|
|
802
|
+
hn as dataInfoToEntries,
|
|
803
|
+
Wn as digestPlId,
|
|
804
|
+
xn as ensureNotNAPValue,
|
|
805
|
+
jn as ensurePColumn,
|
|
806
|
+
gn as entriesToDataInfo,
|
|
807
|
+
b as executePSpecPredicate,
|
|
808
|
+
Un as extractAllColumns,
|
|
809
|
+
z as getAxesId,
|
|
790
810
|
p as getAxisId,
|
|
791
|
-
|
|
792
|
-
|
|
811
|
+
Cn as getColumnIdAndSpec,
|
|
812
|
+
pn as getFileNameFromHandle,
|
|
793
813
|
V as getFilePathFromHandle,
|
|
794
|
-
|
|
814
|
+
En as getPColumnSpecId,
|
|
815
|
+
mn as isDataInfo,
|
|
795
816
|
j as isDataInfoEntries,
|
|
796
|
-
|
|
817
|
+
Ln as isFilteredPColumn,
|
|
797
818
|
L as isImportFileHandleIndex,
|
|
798
|
-
|
|
799
|
-
|
|
819
|
+
D as isImportFileHandleUpload,
|
|
820
|
+
dn as isLiveLog,
|
|
800
821
|
R as isNotNAPValue,
|
|
801
|
-
|
|
802
|
-
|
|
822
|
+
q as isPColumn,
|
|
823
|
+
Bn as isPColumnResult,
|
|
803
824
|
f as isPColumnSpec,
|
|
804
|
-
|
|
805
|
-
|
|
825
|
+
Vn as isPColumnSpecResult,
|
|
826
|
+
Nn as isPTableAbsent,
|
|
806
827
|
M as isPValue,
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
828
|
+
ln as isPartitionedDataInfoEntries,
|
|
829
|
+
Tn as isPlRef,
|
|
830
|
+
_ as isValueAbsent,
|
|
831
|
+
g as isValueNA,
|
|
832
|
+
yn as mapDataInfo,
|
|
833
|
+
bn as mapDataInfoEntries,
|
|
813
834
|
l as mapJoinEntry,
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
835
|
+
Fn as mapPObjectData,
|
|
836
|
+
On as mapPTableDef,
|
|
837
|
+
_n as mapValueInVOE,
|
|
817
838
|
k as matchAxis,
|
|
818
|
-
|
|
839
|
+
G as matchAxisId,
|
|
819
840
|
N as matchPColumn,
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
841
|
+
Sn as pTableValue,
|
|
842
|
+
kn as pValueToStringOrNumber,
|
|
843
|
+
v as pValueToStringOrNumberOrNull,
|
|
844
|
+
In as parseColumnId,
|
|
845
|
+
Gn as parseJson,
|
|
846
|
+
an as plId,
|
|
847
|
+
vn as plRefsEqual,
|
|
826
848
|
Dn as resolveAnchors,
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
849
|
+
T as safeConvertToPValue,
|
|
850
|
+
Kn as selectorsToPredicate,
|
|
851
|
+
Q as stringifyColumnId,
|
|
852
|
+
zn as stringifyJson,
|
|
830
853
|
An as toJsonSafePValue,
|
|
831
|
-
|
|
854
|
+
Hn as uniquePlId
|
|
832
855
|
};
|
|
833
856
|
//# sourceMappingURL=index.mjs.map
|