@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/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- var D = Object.defineProperty;
2
- var L = (e, n, t) => n in e ? D(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var l = (e, n, t) => L(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { z as p } from "zod";
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 ke(e) {
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 m(e) {
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: R } = e;
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: R,
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, m(f)])
56
+ Object.entries(r).map(([c, f]) => [c, p(f)])
57
57
  ),
58
- inputsValid: m(o),
59
- sections: m(i),
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, m(f)])
74
+ Object.entries(o).map(([c, f]) => [c, p(f)])
75
75
  ),
76
- inputsValid: m(t),
77
- sections: m(i),
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 Pe = p.object({
88
+ const ke = m.object({
89
89
  /** Included left border. */
90
- from: p.number(),
90
+ from: m.number(),
91
91
  /** Excluded right border. */
92
- to: p.number()
92
+ to: m.number()
93
93
  });
94
- function Ee(e, n) {
94
+ function Se(e, n) {
95
95
  if (!(e == null || n == null))
96
96
  return { from: e, to: n };
97
97
  }
98
- function Se(e, n) {
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 ve(e) {
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 Ne(e) {
128
+ function Oe(e) {
129
129
  return M(K(e));
130
130
  }
131
- function Oe(e) {
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 Ce(e, n) {
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, x = -9007199254740991n, Fe = NaN, Je = NaN, T = null, z = null;
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(x) || e === x;
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 De(e) {
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 Le(e) {
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 Be(e) {
391
+ function Ue(e) {
392
392
  return typeof e == "object" && e !== null && e.type === "absent";
393
393
  }
394
- function Ue(e, n, t = {}) {
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 Ke(e) {
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 Me(e) {
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 _e(e) {
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 qe(e, n) {
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 Te(e) {
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 ze(e) {
504
+ function He(e) {
505
505
  return JSON.parse(e);
506
506
  }
507
- function P(e) {
507
+ function x(e) {
508
508
  return h(y(e));
509
509
  }
510
- function E(e, n) {
510
+ function k(e, n) {
511
511
  return JSON.stringify([e, n]);
512
512
  }
513
- class He {
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
- l(this, "domains", /* @__PURE__ */ new Map());
520
- l(this, "axes", /* @__PURE__ */ new Map());
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
- l(this, "domainPacks", []);
525
+ d(this, "domainPacks", []);
526
526
  /**
527
527
  * Maps domain packs to anchors
528
528
  */
529
- l(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
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 = P(a);
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 = E(a, s);
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 = E(a, s), c = this.domains.get(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 = P(a), u = this.axes.get(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 We(e, n, t) {
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 Ge(e) {
673
+ function Xe(e) {
674
674
  return typeof e == "object" && e !== null && "source" in e && "axisFilters" in e;
675
675
  }
676
- function d(e) {
676
+ function l(e) {
677
677
  return e.kind === "PColumn";
678
678
  }
679
679
  function ie(e) {
680
- return d(e.spec);
681
- }
682
- function Xe(e) {
683
- return d(e.obj);
680
+ return l(e.spec);
684
681
  }
685
682
  function Qe(e) {
686
- return d(e.obj.spec);
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 Ze(e, n) {
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 en(e) {
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 d(n) && n.name === e.name;
739
+ return l(n) && n.name === e.name;
740
740
  case "name_pattern":
741
- return d(n) && !!n.name.match(e.pattern);
741
+ return l(n) && !!n.name.match(e.pattern);
742
742
  case "annotation":
743
- return d(n) && n.annotations !== void 0 && n.annotations[e.annotation] === e.value;
743
+ return l(n) && n.annotations !== void 0 && n.annotations[e.annotation] === e.value;
744
744
  case "annotation_pattern":
745
- return d(n) && n.annotations !== void 0 && n.annotations[e.annotation] !== void 0 && !!n.annotations[e.annotation].match(e.pattern);
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 d(n) && e.axes.every(
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), d(e) && (n.axesSpec = C(e.axesSpec)), h(n);
830
+ return e.domain !== void 0 && (n.domain = e.domain), l(e) && (n.axesSpec = C(e.axesSpec)), h(n);
831
831
  }
832
- const rn = { href: "/" }, on = p.object({
833
- __isRef: p.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
834
- blockId: p.string().describe("Upstream block id"),
835
- name: p.string().describe("Name of the output provided to the upstream block's output context"),
836
- 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")
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 sn(e) {
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 an(e, n, t = !1) {
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 un(e, n = !0) {
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 cn(e, n, t = !1) {
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 fn(e, n) {
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 $(e, n, t) {
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 V = 15, de = 24, I = p.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
909
- function dn() {
910
- const e = new Uint8Array(V);
911
- return crypto.getRandomValues(e), I.parse($(e, "RFC4648"));
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 !== V) throw new Error(`Wrong number of bytes: ${e.length}`);
915
- return I.parse($(e, "RFC4648"));
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 ln(e) {
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 mn(e) {
924
+ function yn(e) {
925
925
  return h(e);
926
926
  }
927
- function yn(e) {
927
+ function hn(e) {
928
928
  return JSON.parse(e);
929
929
  }
930
- class hn extends Error {
930
+ class gn extends Error {
931
931
  constructor() {
932
932
  super(...arguments);
933
- l(this, "name", "AbortError");
933
+ d(this, "name", "AbortError");
934
934
  }
935
935
  }
936
- class gn extends Error {
936
+ class bn extends Error {
937
937
  constructor() {
938
938
  super(...arguments);
939
- l(this, "name", "UiError");
939
+ d(this, "name", "UiError");
940
940
  }
941
941
  }
942
- function bn(e) {
942
+ function wn(e) {
943
943
  return e instanceof Error && e.name === "AbortError";
944
944
  }
945
- function pe(e) {
946
- return e instanceof Error ? e.name === "AbortError" || pe(e.cause) : !1;
945
+ function me(e) {
946
+ return e instanceof Error ? e.name === "AbortError" || me(e.cause) : !1;
947
947
  }
948
- function wn(e) {
948
+ function An(e) {
949
949
  return e instanceof Error && e.name === "AggregateError";
950
950
  }
951
- function me(e) {
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 k(e) {
963
- return e instanceof Error ? e : new Error(me(e));
980
+ function E(e) {
981
+ return e instanceof Error ? e : new Error(ye(e));
964
982
  }
965
- function j(e) {
966
- const n = e.cause ? j(e.cause) : void 0, t = new Error(e.message, n !== void 0 ? { cause: n } : void 0);
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 F(e) {
970
- const n = k(e), t = n.cause ? F(n.cause) : void 0;
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 An(e) {
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 ye(e) {
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: k(n) };
1011
+ return { error: E(n) };
994
1012
  }
995
1013
  }
996
- async function he(e) {
1014
+ async function ge(e) {
997
1015
  try {
998
1016
  return { value: await e() };
999
1017
  } catch (n) {
1000
- return { error: k(n) };
1018
+ return { error: E(n) };
1001
1019
  }
1002
1020
  }
1003
- function xn(e) {
1004
- const n = ye(e);
1021
+ function vn(e) {
1022
+ const n = he(e);
1005
1023
  return J(n);
1006
1024
  }
1007
- async function Pn(e) {
1008
- const n = await he(e);
1025
+ async function Nn(e) {
1026
+ const n = await ge(e);
1009
1027
  return J(n);
1010
1028
  }
1011
- const En = ["supportsLazyState"], Sn = ["requiresUIAPIVersion", "requiresModelAPIVersion"];
1012
- function vn(e, n, t = !0) {
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 Nn(e) {
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 On(e) {
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 ge extends Error {
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
- l(this, "name", "IncompatibleFlagsError");
1042
+ d(this, "name", "IncompatibleFlagsError");
1025
1043
  this.incompatibleFlags = t;
1026
1044
  }
1027
1045
  }
1028
- class Cn {
1046
+ class In {
1029
1047
  constructor() {
1030
- l(this, "supportedRequirements", /* @__PURE__ */ new Map());
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 ge(t);
1090
+ throw new be(t);
1073
1091
  }
1074
1092
  }
1075
1093
  export {
1076
- hn as AbortError,
1077
- Sn as AllRequiresFeatureFlags,
1078
- En as AllSupportsFeatureFlags,
1079
- He as AnchoredIdDeriver,
1080
- rn as DefaultNavigationState,
1081
- ge as IncompatibleFlagsError,
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
- Je as PValueDoubleNA,
1086
- Fe as PValueFloatNA,
1105
+ De as PValueDoubleNA,
1106
+ Je as PValueFloatNA,
1087
1107
  q as PValueIntNA,
1088
- x as PValueLongNA,
1108
+ P as PValueLongNA,
1089
1109
  T as PValueStringNA,
1090
- I as PlId,
1091
- V as PlIdBytes,
1110
+ V as PlId,
1111
+ $ as PlIdBytes,
1092
1112
  de as PlIdLength,
1093
- on as PlRef,
1094
- Pe as RangeBytes,
1095
- Cn as RuntimeCapabilities,
1096
- gn as UiError,
1097
- _e as canonicalizeAxisId,
1098
- mn as canonicalizeJson,
1099
- vn as checkBlockFlag,
1100
- an as createPlRef,
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
- tn as deriveNativeId,
1103
- j as deserializeError,
1104
- kn as deserializeResult,
1105
- ln as digestPlId,
1106
- k as ensureError,
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
- Ye as ensurePColumn,
1128
+ Ze as ensurePColumn,
1109
1129
  Ie as entriesToDataInfo,
1110
1130
  w as executePSpecPredicate,
1111
- en as extractAllColumns,
1112
- Nn as extractAllRequirements,
1113
- On as extractAllSupports,
1114
- ke as extractCodeWithInfo,
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
- Me as getColumnIdAndSpec,
1119
- Ne as getFileNameFromHandle,
1138
+ _e as getColumnIdAndSpec,
1139
+ Oe as getFileNameFromHandle,
1120
1140
  K as getFilePathFromHandle,
1121
- Ke as getPColumnSpecId,
1122
- Te as getPTableColumnId,
1123
- pe as hasAbortError,
1124
- bn as isAbortError,
1125
- wn as isAggregateError,
1126
- Oe as isDataInfo,
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
- Ge as isFilteredPColumn,
1148
+ Xe as isFilteredPColumn,
1129
1149
  U as isImportFileHandleIndex,
1130
1150
  B as isImportFileHandleUpload,
1131
- ve as isLiveLog,
1151
+ Ne as isLiveLog,
1132
1152
  H as isNotNAPValue,
1133
1153
  ie as isPColumn,
1134
- Qe as isPColumnResult,
1135
- d as isPColumnSpec,
1136
- Xe as isPColumnSpecResult,
1137
- Be as isPTableAbsent,
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
- sn as isPlRef,
1162
+ an as isPlRef,
1141
1163
  Q as isValueAbsent,
1142
1164
  b as isValueNA,
1143
- Ce as mapDataInfo,
1165
+ Fe as mapDataInfo,
1144
1166
  je as mapDataInfoEntries,
1145
1167
  g as mapJoinEntry,
1146
- Ze as mapPObjectData,
1147
- qe as mapPTableDef,
1148
- fn as mapValueInVOE,
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
- Ee as newRangeBytesOpt,
1153
- Ue as pTableValue,
1154
- Le as pValueToStringOrNumber,
1174
+ Se as newRangeBytesOpt,
1175
+ Ke as pTableValue,
1176
+ Be as pValueToStringOrNumber,
1155
1177
  X as pValueToStringOrNumberOrNull,
1156
- ze as parseColumnId,
1157
- yn as parseJson,
1178
+ He as parseColumnId,
1179
+ hn as parseJson,
1158
1180
  le as plId,
1159
- cn as plRefsEqual,
1160
- We as resolveAnchors,
1181
+ fn as plRefsEqual,
1182
+ Ge as resolveAnchors,
1161
1183
  G as safeConvertToPValue,
1162
- nn as selectorsToPredicate,
1163
- F as serializeError,
1184
+ tn as selectorsToPredicate,
1185
+ j as serializeError,
1164
1186
  J as serializeResult,
1165
1187
  te as stringifyColumnId,
1166
1188
  pn as stringifyJson,
1167
- De as toJsonSafePValue,
1168
- dn as uniquePlId,
1169
- An as unwrapResult,
1170
- Se as validateRangeBytes,
1171
- un as withEnrichments,
1172
- xn as wrapAndSerialize,
1173
- Pn as wrapAndSerializeAsync,
1174
- he as wrapAsyncCallback,
1175
- ye as wrapCallback
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