@milaboratories/uikit 2.3.7 → 2.3.9

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.
@@ -1,13 +1,13 @@
1
- import { isDataInfo as ae, extractAllColumns as Ee, mapPTableDef as Te, selectorsToPredicate as W, withEnrichments as ce, AnchoredIdDeriver as he, isPlRef as Fe, mapValueInVOE as Oe, mapPObjectData as le, ensurePColumn as ke, isPColumnSpec as z, isPColumn as be, resolveAnchors as de, deriveNativeId as Re, isPartitionedDataInfoEntries as De, getAxisId as pe, entriesToDataInfo as $e, isDataInfoEntries as _e, dataInfoToEntries as Ke, canonicalizeAxisId as Ne, mapDataInfo as je } from "../../../lib/model/common/dist/index.js";
2
- import { PlIdLength as bt, getAxesId as _t, getFileNameFromHandle as wt, getFilePathFromHandle as Pt, isImportFileHandleIndex as At, isImportFileHandleUpload as xt, mapJoinEntry as It, matchAxis as St, matchAxisId as Ct, matchPColumn as Lt, stringifyColumnId as Et } from "../../../lib/model/common/dist/index.js";
1
+ import { isDataInfo as ae, extractAllColumns as Ee, mapPTableDef as Te, selectorsToPredicate as W, withEnrichments as ce, AnchoredIdDeriver as he, isPlRef as Fe, mapValueInVOE as Oe, mapPObjectData as le, ensurePColumn as ke, isPColumnSpec as G, isPColumn as be, resolveAnchors as pe, deriveNativeId as De, isPartitionedDataInfoEntries as Re, getAxisId as de, entriesToDataInfo as je, isDataInfoEntries as _e, dataInfoToEntries as Ke, canonicalizeAxisId as $e, mapDataInfo as Ne } from "../../../lib/model/common/dist/index.js";
2
+ import { PlIdLength as bt, getAxesId as _t, getFileNameFromHandle as wt, getFilePathFromHandle as Pt, isImportFileHandleIndex as At, isImportFileHandleUpload as xt, mapJoinEntry as It, matchAxis as St, matchAxisId as Lt, matchPColumn as Ct, stringifyColumnId as Et } from "../../../lib/model/common/dist/index.js";
3
3
  import we from "../../../_virtual/canonicalize.js";
4
4
  import K from "../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
5
- import { BasePlErrorLike as Ft, ErrorLike as Ot, PlErrorLike as kt, StandardErrorLike as Rt } from "../../../lib/model/pl-error-like/dist/index.js";
5
+ import { BasePlErrorLike as Ft, ErrorLike as Ot, PlErrorLike as kt, StandardErrorLike as Dt } from "../../../lib/model/pl-error-like/dist/index.js";
6
6
  var Be = Object.defineProperty, Je = (n, e, t) => e in n ? Be(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, I = (n, e, t) => Je(n, typeof e != "symbol" ? e + "" : e, t);
7
7
  function Q(n) {
8
8
  return { type: "Immediate", value: n };
9
9
  }
10
- function Ve() {
10
+ function Ue() {
11
11
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
12
12
  }
13
13
  function Pe(n) {
@@ -16,25 +16,25 @@ function Pe(n) {
16
16
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
17
17
  throw new Error("Can't get platforma instance.");
18
18
  }
19
- function Ue() {
19
+ function Ve() {
20
20
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
21
21
  }
22
22
  function c() {
23
23
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
24
24
  throw new Error("Not in config rendering context");
25
25
  }
26
- function V(n, e) {
27
- const t = Ue();
26
+ function U(n, e) {
27
+ const t = Ve();
28
28
  if (t === void 0) return !1;
29
29
  if (n in t.callbackRegistry) throw new Error(`Callback with key ${n} already registered.`);
30
30
  return t.callbackRegistry[n] = e, !0;
31
31
  }
32
- const X = /* @__PURE__ */ new Map();
32
+ const Z = /* @__PURE__ */ new Map();
33
33
  function Me(n, e) {
34
34
  n in c().callbackRegistry || (c().callbackRegistry[n] = (t) => {
35
- for (const r of X.get(n))
35
+ for (const r of Z.get(n))
36
36
  r(t);
37
- }, X.set(n, [])), X.get(n).push(e);
37
+ }, Z.set(n, [])), Z.get(n).push(e);
38
38
  }
39
39
  class w {
40
40
  constructor(e, t = (r) => r) {
@@ -278,64 +278,64 @@ class S {
278
278
  return s && (a = a.filter((l) => l[1] !== void 0)), a.map(([l, y]) => o(l, y));
279
279
  }
280
280
  }
281
- const We = "staging", He = "main", qe = "pl7.app/label", Ge = "pl7.app/trace", ze = K.object({
281
+ const We = "staging", He = "main", qe = "pl7.app/label", ze = "pl7.app/trace", Ge = K.object({
282
282
  type: K.string(),
283
283
  importance: K.number().optional(),
284
284
  id: K.string().optional(),
285
285
  label: K.string()
286
- }), Ye = K.array(ze), Ze = 1e-3, Qe = "__LABEL__", fe = "__LABEL__@1";
286
+ }), Ye = K.array(Ge), Xe = 1e-3, Qe = "__LABEL__", fe = "__LABEL__@1";
287
287
  function Ae(n, e, t = {}) {
288
288
  const r = /* @__PURE__ */ new Map(), i = t.forceTraceElements !== void 0 && t.forceTraceElements.length > 0 ? new Set(t.forceTraceElements) : void 0, s = /* @__PURE__ */ new Map(), o = n.map((f) => {
289
289
  var P, u;
290
290
  const h = e(f);
291
- let v, C, L;
292
- "spec" in h && typeof h.spec == "object" ? (v = h.spec, C = h.prefixTrace, L = h.suffixTrace) : v = h;
293
- const d = (P = v.annotations) == null ? void 0 : P[qe], A = (u = v.annotations) == null ? void 0 : u[Ge], p = (A ? Ye.safeParse(JSON.parse(A)).data : void 0) ?? [], g = [
294
- ...C ?? [],
295
- ...p,
296
- ...L ?? []
291
+ let v, L, C;
292
+ "spec" in h && typeof h.spec == "object" ? (v = h.spec, L = h.prefixTrace, C = h.suffixTrace) : v = h;
293
+ const p = (P = v.annotations) == null ? void 0 : P[qe], A = (u = v.annotations) == null ? void 0 : u[ze], d = (A ? Ye.safeParse(JSON.parse(A)).data : void 0) ?? [], g = [
294
+ ...L ?? [],
295
+ ...d,
296
+ ...C ?? []
297
297
  ];
298
- if (d !== void 0) {
299
- const x = { label: d, type: Qe, importance: -2 };
298
+ if (p !== void 0) {
299
+ const x = { label: p, type: Qe, importance: -2 };
300
300
  t.addLabelAsSuffix ? g.push(x) : g.splice(0, 0, x);
301
301
  }
302
302
  const m = [], T = /* @__PURE__ */ new Map();
303
303
  for (let x = g.length - 1; x >= 0; --x) {
304
- const { type: B } = g[x], k = g[x].importance ?? 0, D = (T.get(B) ?? 0) + 1;
305
- T.set(B, D);
306
- const O = `${B}@${D}`;
304
+ const { type: B } = g[x], k = g[x].importance ?? 0, R = (T.get(B) ?? 0) + 1;
305
+ T.set(B, R);
306
+ const O = `${B}@${R}`;
307
307
  s.set(O, (s.get(O) ?? 0) + 1), r.set(
308
308
  O,
309
309
  Math.max(
310
310
  r.get(O) ?? Number.NEGATIVE_INFINITY,
311
- k - (g.length - x) * Ze
311
+ k - (g.length - x) * Xe
312
312
  )
313
- ), m.push({ ...g[x], fullType: O, occurrenceIndex: D });
313
+ ), m.push({ ...g[x], fullType: O, occurrenceIndex: R });
314
314
  }
315
315
  return m.reverse(), {
316
316
  value: f,
317
317
  spec: v,
318
- label: d,
318
+ label: p,
319
319
  fullTrace: m
320
320
  };
321
321
  }), a = [], l = [], y = [...r];
322
322
  y.sort(([, f], [, P]) => P - f);
323
323
  for (const [f] of y)
324
324
  f.endsWith("@1") || s.get(f) === n.length ? a.push(f) : l.push(f);
325
- const j = (f, P = !1) => {
325
+ const N = (f, P = !1) => {
326
326
  const u = [];
327
327
  for (let h = 0; h < o.length; h++) {
328
- const v = o[h], C = v.fullTrace.filter((A) => f.has(A.fullType) || i && i.has(A.type));
329
- if (C.length === 0)
328
+ const v = o[h], L = v.fullTrace.filter((A) => f.has(A.fullType) || i && i.has(A.type));
329
+ if (L.length === 0)
330
330
  if (P)
331
331
  u.push({
332
332
  label: "Unlabeled",
333
333
  value: v.value
334
334
  });
335
335
  else return;
336
- const L = C.map((A) => A.label), d = t.separator ?? " / ";
336
+ const C = L.map((A) => A.label), p = t.separator ?? " / ";
337
337
  u.push({
338
- label: L.join(d),
338
+ label: C.join(p),
339
339
  value: v.value
340
340
  });
341
341
  }
@@ -343,7 +343,7 @@ function Ae(n, e, t = {}) {
343
343
  };
344
344
  if (a.length === 0) {
345
345
  if (l.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
346
- return j(new Set(fe), !0);
346
+ return N(new Set(fe), !0);
347
347
  }
348
348
  let E = 0, F = -1;
349
349
  for (; E < a.length; ) {
@@ -351,20 +351,20 @@ function Ae(n, e, t = {}) {
351
351
  t.includeNativeLabel && f.add(fe);
352
352
  for (let u = 0; u < E; ++u) f.add(a[u]);
353
353
  F >= 0 && f.add(a[F]);
354
- const P = j(f);
354
+ const P = N(f);
355
355
  if (P !== void 0 && new Set(P.map((u) => u.label)).size === n.length) return P;
356
356
  F++, F >= a.length && (E++, F = E);
357
357
  }
358
- return j(/* @__PURE__ */ new Set([...a, ...l]), !0);
358
+ return N(/* @__PURE__ */ new Set([...a, ...l]), !0);
359
359
  }
360
- const H = "PColumnData/", ne = H + "ResourceMap", ie = H + "Partitioned/ResourceMap", U = H + "JsonPartitioned", N = H + "BinaryPartitioned", xe = H + "Partitioned/", Z = xe + "JsonPartitioned", M = xe + "BinaryPartitioned", se = (n) => {
360
+ const H = "PColumnData/", ne = H + "ResourceMap", ie = H + "Partitioned/ResourceMap", V = H + "JsonPartitioned", $ = H + "BinaryPartitioned", xe = H + "Partitioned/", X = xe + "JsonPartitioned", M = xe + "BinaryPartitioned", se = (n) => {
361
361
  if (n.endsWith(".index"))
362
362
  return { baseKey: n.substring(0, n.length - 6), type: "index" };
363
363
  if (n.endsWith(".values"))
364
364
  return { baseKey: n.substring(0, n.length - 7), type: "values" };
365
365
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${n}`);
366
366
  };
367
- function Xe(n) {
367
+ function Ze(n) {
368
368
  if (!n) return;
369
369
  const e = n.resourceType.name, t = n.getDataAsJson(), r = [];
370
370
  let i = 0;
@@ -375,28 +375,28 @@ function Xe(n) {
375
375
  case ie:
376
376
  i = t.partitionKeyLength + t.keyLength;
377
377
  break;
378
- case U:
379
- case N:
378
+ case V:
379
+ case $:
380
380
  i = t.partitionKeyLength;
381
381
  break;
382
382
  case M:
383
- case Z:
383
+ case X:
384
384
  i = t.superPartitionKeyLength + t.partitionKeyLength;
385
385
  break;
386
386
  }
387
387
  switch (e) {
388
388
  case ne:
389
- case U:
390
- case N:
389
+ case V:
390
+ case $:
391
391
  for (let s of n.listInputFields()) {
392
- e === N && (s = se(s).baseKey);
392
+ e === $ && (s = se(s).baseKey);
393
393
  const o = [...JSON.parse(s)];
394
394
  r.push(o);
395
395
  }
396
396
  break;
397
397
  case ie:
398
398
  case M:
399
- case Z:
399
+ case X:
400
400
  for (const s of n.listInputFields()) {
401
401
  const o = [...JSON.parse(s)], a = n.resolve({ field: s, assertFieldType: "Input" });
402
402
  if (a !== void 0)
@@ -433,7 +433,7 @@ function tt(n) {
433
433
  if (n === void 0) return;
434
434
  if (_e(n))
435
435
  return et(n);
436
- const e = Xe(n);
436
+ const e = Ze(n);
437
437
  if (!e) return;
438
438
  const { data: t, keyLength: r } = e, i = [];
439
439
  for (let s = 0; s < r; ++s)
@@ -449,13 +449,13 @@ function tt(n) {
449
449
  function oe(n, e = []) {
450
450
  if (n === void 0 || !n.getIsReadyOrError()) return;
451
451
  const t = n.resourceType.name, r = n.getDataAsJson();
452
- if (e.length > 0 && (t === Z || t === M))
452
+ if (e.length > 0 && (t === X || t === M))
453
453
  throw new Error(`Unexpected nested super-partitioned resource: ${t}`);
454
454
  switch (t) {
455
455
  case ne:
456
456
  case ie:
457
457
  throw new Error(`Only data columns are supported, got: ${t}`);
458
- case U: {
458
+ case V: {
459
459
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
460
460
  throw new Error(`Missing partitionKeyLength in metadata for ${t}`);
461
461
  const i = [];
@@ -471,7 +471,7 @@ function oe(n, e = []) {
471
471
  parts: i
472
472
  };
473
473
  }
474
- case N: {
474
+ case $: {
475
475
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
476
476
  throw new Error(`Missing partitionKeyLength in metadata for ${t}`);
477
477
  const i = [], s = /* @__PURE__ */ new Map();
@@ -498,15 +498,15 @@ function oe(n, e = []) {
498
498
  parts: i
499
499
  };
500
500
  }
501
- case Z: {
501
+ case X: {
502
502
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
503
503
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${t}`);
504
504
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s = [];
505
505
  for (const o of n.listInputFields()) {
506
506
  const a = n.resolve({ field: o, assertFieldType: "Input" });
507
507
  if (a === void 0) return;
508
- if (a.resourceType.name !== U)
509
- throw new Error(`Expected ${U} inside ${t}, but got ${a.resourceType.name}`);
508
+ if (a.resourceType.name !== V)
509
+ throw new Error(`Expected ${V} inside ${t}, but got ${a.resourceType.name}`);
510
510
  const l = oe(a, JSON.parse(o));
511
511
  if (l === void 0) return;
512
512
  if (l.type !== "JsonPartitioned")
@@ -526,8 +526,8 @@ function oe(n, e = []) {
526
526
  for (const o of n.listInputFields()) {
527
527
  const a = n.resolve({ field: o, assertFieldType: "Input" });
528
528
  if (a === void 0) return;
529
- if (a.resourceType.name !== N)
530
- throw new Error(`Expected ${N} inside ${t}, but got ${a.resourceType.name}`);
529
+ if (a.resourceType.name !== $)
530
+ throw new Error(`Expected ${$} inside ${t}, but got ${a.resourceType.name}`);
531
531
  const l = oe(a, JSON.parse(o));
532
532
  if (l === void 0) return;
533
533
  if (l.type !== "BinaryPartitioned")
@@ -630,7 +630,7 @@ class st {
630
630
  function ot(n) {
631
631
  if (n)
632
632
  return n.map((e) => ({
633
- type: `split:${Ne(e.axisId)}`,
633
+ type: `split:${$e(e.axisId)}`,
634
634
  label: e.label,
635
635
  importance: 1e6
636
636
  // High importance for split filters in labels
@@ -692,82 +692,82 @@ class me {
692
692
  if (ge(h)) {
693
693
  if (!r)
694
694
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
695
- return W(de(r.anchors, h, t));
695
+ return W(pe(r.anchors, h, t));
696
696
  } else
697
697
  return W(h);
698
698
  });
699
699
  y = (h) => u.some((v) => v(h));
700
700
  }
701
- const j = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], E = [], F = /* @__PURE__ */ new Set();
702
- for (const u of j) {
701
+ const N = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], E = [], F = /* @__PURE__ */ new Set();
702
+ for (const u of N) {
703
703
  const h = ge(u);
704
704
  let v;
705
705
  if (h) {
706
706
  if (!r)
707
707
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
708
- v = de(r.anchors, u, t);
708
+ v = pe(r.anchors, u, t);
709
709
  } else
710
710
  v = u;
711
- const C = /* @__PURE__ */ new Set(), L = [];
712
- for (const p of this.providers) {
713
- const g = p.selectColumns(v);
711
+ const L = /* @__PURE__ */ new Set(), C = [];
712
+ for (const d of this.providers) {
713
+ const g = d.selectColumns(v);
714
714
  for (const m of g) {
715
715
  if (y(m.spec)) continue;
716
- if (C.has(m.id))
717
- throw new Error(`Duplicate column id ${m.id} in provider ${p.constructor.name}`);
718
- const T = Re(m.spec);
719
- F.has(T) || (C.add(m.id), F.add(T), L.push(m));
716
+ if (L.has(m.id))
717
+ throw new Error(`Duplicate column id ${m.id} in provider ${d.constructor.name}`);
718
+ const T = De(m.spec);
719
+ F.has(T) || (L.add(m.id), F.add(T), C.push(m));
720
720
  }
721
721
  }
722
- if (L.length === 0) continue;
723
- const d = ut(u), A = d.length > 0;
724
- for (const p of L) {
725
- if (!z(p.spec)) continue;
726
- const g = p.spec;
722
+ if (C.length === 0) continue;
723
+ const p = ut(u), A = p.length > 0;
724
+ for (const d of C) {
725
+ if (!G(d.spec)) continue;
726
+ const g = d.spec;
727
727
  if (A) {
728
- if (it(p.data))
729
- throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${p.id}`);
730
- const m = rt(p.data);
728
+ if (it(d.data))
729
+ throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${d.id}`);
730
+ const m = rt(d.data);
731
731
  if (!m) {
732
732
  if (s) continue;
733
733
  return;
734
734
  }
735
- if (!De(m))
736
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${m.type} for column ${p.id}`);
737
- const T = tt(m), x = d[d.length - 1];
735
+ if (!Re(m))
736
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${m.type} for column ${d.id}`);
737
+ const T = tt(m), x = p[p.length - 1];
738
738
  if (x >= m.partitionKeyLength)
739
739
  throw new Error(`Not enough partition keys (${m.partitionKeyLength}) for requested split axes (max index ${x}) in column ${g.name}`);
740
- const B = d.map((b) => this.findLabels(pe(g.axesSpec[b]))), k = [], D = (b, J) => {
741
- if (J >= d.length) {
740
+ const B = p.map((b) => this.findLabels(de(g.axesSpec[b]))), k = [], R = (b, J) => {
741
+ if (J >= p.length) {
742
742
  if (k.push([...b]), k.length > 1e4)
743
743
  throw new Error("Too many key combinations, aborting.");
744
744
  return;
745
745
  }
746
- const R = d[J];
747
- if (R >= T.length)
748
- throw new Error(`Axis index ${R} out of bounds for unique keys array (length ${T.length}) during split key generation for column ${p.id}`);
749
- const $ = T[R];
750
- if (!$ || $.length === 0) {
746
+ const D = p[J];
747
+ if (D >= T.length)
748
+ throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${T.length}) during split key generation for column ${d.id}`);
749
+ const j = T[D];
750
+ if (!j || j.length === 0) {
751
751
  k.length = 0;
752
752
  return;
753
753
  }
754
- for (const q of $)
755
- b.push(q), D(b, J + 1), b.pop();
754
+ for (const q of j)
755
+ b.push(q), R(b, J + 1), b.pop();
756
756
  };
757
- if (D([], 0), k.length === 0)
757
+ if (R([], 0), k.length === 0)
758
758
  continue;
759
- const O = [...g.axesSpec], Ie = d.map((b) => b);
760
- for (let b = d.length - 1; b >= 0; b--)
761
- O.splice(d[b], 1);
759
+ const O = [...g.axesSpec], Ie = p.map((b) => b);
760
+ for (let b = p.length - 1; b >= 0; b--)
761
+ O.splice(p[b], 1);
762
762
  const Se = { ...g, axesSpec: O };
763
763
  for (const b of k) {
764
- const J = b.map((R, $) => {
765
- const q = Ie[$], Ce = pe(g.axesSpec[q]), ue = B[$], Le = (ue == null ? void 0 : ue[R]) ?? String(R);
766
- return { axisIdx: q, axisId: Ce, value: R, label: Le };
764
+ const J = b.map((D, j) => {
765
+ const q = Ie[j], Le = de(g.axesSpec[q]), ue = B[j], Ce = (ue == null ? void 0 : ue[D]) ?? String(D);
766
+ return { axisIdx: q, axisId: Le, value: D, label: Ce };
767
767
  });
768
768
  E.push({
769
769
  type: "split",
770
- originalColumn: p,
770
+ originalColumn: d,
771
771
  spec: g,
772
772
  adjustedSpec: Se,
773
773
  dataEntries: m,
@@ -777,7 +777,7 @@ class me {
777
777
  } else
778
778
  E.push({
779
779
  type: "direct",
780
- originalColumn: p,
780
+ originalColumn: d,
781
781
  spec: g,
782
782
  adjustedSpec: g
783
783
  });
@@ -793,20 +793,20 @@ class me {
793
793
  l
794
794
  ), P = [];
795
795
  for (const { value: u, label: h } of f) {
796
- const { originalColumn: v, spec: C } = u, L = u.type === "split" ? u.axisFilters : void 0, d = at(L);
796
+ const { originalColumn: v, spec: L } = u, C = u.type === "split" ? u.axisFilters : void 0, p = at(C);
797
797
  let A;
798
- r ? A = r.deriveS(C, d) : A = lt(v.id, d);
799
- let p = { ...u.adjustedSpec };
800
- o && (p = {
801
- ...p,
798
+ r ? A = r.deriveS(L, p) : A = lt(v.id, p);
799
+ let d = { ...u.adjustedSpec };
800
+ o && (d = {
801
+ ...d,
802
802
  annotations: {
803
- ...p.annotations ?? {},
803
+ ...d.annotations ?? {},
804
804
  "pl7.app/label": h
805
805
  }
806
806
  }), P.push({
807
807
  id: A,
808
- spec: p,
809
- data: () => u.type === "split" ? $e(nt(u.dataEntries, d)) : u.originalColumn.data,
808
+ spec: d,
809
+ data: () => u.type === "split" ? je(nt(u.dataEntries, p)) : u.originalColumn.data,
810
810
  label: h
811
811
  });
812
812
  }
@@ -876,7 +876,7 @@ function ee(n, e) {
876
876
  return !0;
877
877
  }
878
878
  function ve(n) {
879
- return le(n, (e) => e instanceof S ? e.handle : ae(e) ? je(e, (t) => t.handle) : e);
879
+ return le(n, (e) => e instanceof S ? e.handle : ae(e) ? Ne(e, (t) => t.handle) : e);
880
880
  }
881
881
  class ct {
882
882
  constructor() {
@@ -1055,7 +1055,7 @@ class ct {
1055
1055
  getPColumnSpecByRef(e) {
1056
1056
  const t = this.getSpecByRef(e);
1057
1057
  if (t) {
1058
- if (!z(t)) throw new Error(`not a PColumn spec (kind = ${t.kind})`);
1058
+ if (!G(t)) throw new Error(`not a PColumn spec (kind = ${t.kind})`);
1059
1059
  return t;
1060
1060
  }
1061
1061
  }
@@ -1074,7 +1074,7 @@ class ct {
1074
1074
  findDataWithCompatibleSpec(e) {
1075
1075
  const t = [];
1076
1076
  e: for (const r of this.getData().entries) {
1077
- if (!z(r.obj.spec))
1077
+ if (!G(r.obj.spec))
1078
1078
  continue;
1079
1079
  const i = r.obj.spec;
1080
1080
  if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ee(e.domain, i.domain)) {
@@ -1117,7 +1117,7 @@ class ct {
1117
1117
  */
1118
1118
  selectColumns(e) {
1119
1119
  const t = typeof e == "function" ? e : W(e);
1120
- return this.getSpecs().entries.filter(({ obj: r }) => z(r) ? t(r) : !1).map(({ ref: r, obj: i }) => {
1120
+ return this.getSpecs().entries.filter(({ obj: r }) => G(r) ? t(r) : !1).map(({ ref: r, obj: i }) => {
1121
1121
  const s = i;
1122
1122
  let o = null;
1123
1123
  const a = this;
@@ -1147,7 +1147,7 @@ class ct {
1147
1147
  return i;
1148
1148
  }
1149
1149
  }
1150
- class G {
1150
+ class z {
1151
1151
  constructor() {
1152
1152
  I(this, "ctx"), I(this, "_argsCache"), I(this, "_uiStateCache"), I(this, "_activeArgsCache"), I(this, "resultPool", new ct()), this.ctx = c();
1153
1153
  }
@@ -1256,7 +1256,7 @@ class G {
1256
1256
  this.ctx.logError(e);
1257
1257
  }
1258
1258
  }
1259
- const Y = "1.39.8";
1259
+ const Y = "1.39.18";
1260
1260
  function ht(n) {
1261
1261
  return n.__renderLambda === !0;
1262
1262
  }
@@ -1264,7 +1264,7 @@ function te(n) {
1264
1264
  if (n !== void 0)
1265
1265
  return ht(n) ? n.handle : n;
1266
1266
  }
1267
- const dt = class _ {
1267
+ const pt = class _ {
1268
1268
  constructor(e, t, r, i, s, o, a, l, y) {
1269
1269
  this._renderingMode = e, this._initialArgs = t, this._initialUiState = r, this._outputs = i, this._inputsValid = s, this._sections = o, this._title = a, this._enrichmentTargets = l, this._featureFlags = y;
1270
1270
  }
@@ -1284,7 +1284,7 @@ const dt = class _ {
1284
1284
  output(e, t, r = {}) {
1285
1285
  if (typeof t == "function") {
1286
1286
  const i = `output#${e}`;
1287
- return V(i, () => t(new G())), new _(
1287
+ return U(i, () => t(new z())), new _(
1288
1288
  this._renderingMode,
1289
1289
  this._initialArgs,
1290
1290
  this._initialUiState,
@@ -1323,7 +1323,7 @@ const dt = class _ {
1323
1323
  return this.output(e, t, { retentive: !0 });
1324
1324
  }
1325
1325
  argsValid(e) {
1326
- return typeof e == "function" ? (V("inputsValid", () => e(new G())), new _(
1326
+ return typeof e == "function" ? (U("inputsValid", () => e(new z())), new _(
1327
1327
  this._renderingMode,
1328
1328
  this._initialArgs,
1329
1329
  this._initialUiState,
@@ -1349,7 +1349,7 @@ const dt = class _ {
1349
1349
  );
1350
1350
  }
1351
1351
  sections(e) {
1352
- return Array.isArray(e) ? this.sections(Q(e)) : typeof e == "function" ? (V("sections", () => e(new G())), new _(
1352
+ return Array.isArray(e) ? this.sections(Q(e)) : typeof e == "function" ? (U("sections", () => e(new z())), new _(
1353
1353
  this._renderingMode,
1354
1354
  this._initialArgs,
1355
1355
  this._initialUiState,
@@ -1373,7 +1373,7 @@ const dt = class _ {
1373
1373
  }
1374
1374
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1375
1375
  title(e) {
1376
- return V("title", () => e(new G())), new _(
1376
+ return U("title", () => e(new z())), new _(
1377
1377
  this._renderingMode,
1378
1378
  this._initialArgs,
1379
1379
  this._initialUiState,
@@ -1435,7 +1435,7 @@ const dt = class _ {
1435
1435
  * Influences dependency graph construction.
1436
1436
  */
1437
1437
  enriches(e) {
1438
- return V("enrichmentTargets", e), new _(
1438
+ return U("enrichmentTargets", e), new _(
1439
1439
  this._renderingMode,
1440
1440
  this._initialArgs,
1441
1441
  this._initialUiState,
@@ -1475,10 +1475,10 @@ const dt = class _ {
1475
1475
  Object.entries(this._outputs).map(([t, r]) => [t, te(r)])
1476
1476
  )
1477
1477
  };
1478
- return Ve() ? Pe({ sdkVersion: Y }) : { config: e };
1478
+ return Ue() ? Pe({ sdkVersion: Y }) : { config: e };
1479
1479
  }
1480
1480
  };
1481
- I(dt, "INITIAL_BLOCK_FEATURE_FLAGS", {
1481
+ I(pt, "INITIAL_BLOCK_FEATURE_FLAGS", {
1482
1482
  supportsLazyState: !0,
1483
1483
  requiresUIAPIVersion: 1,
1484
1484
  requiresModelAPIVersion: 1
@@ -1492,38 +1492,38 @@ export {
1492
1492
  Ot as ErrorLike,
1493
1493
  w as FutureRef,
1494
1494
  qe as PAnnotationLabel,
1495
- Ge as PAnnotationTrace,
1495
+ ze as PAnnotationTrace,
1496
1496
  me as PColumnCollection,
1497
1497
  kt as PlErrorLike,
1498
1498
  bt as PlIdLength,
1499
- N as RT_BINARY_PARTITIONED,
1499
+ $ as RT_BINARY_PARTITIONED,
1500
1500
  M as RT_BINARY_SUPER_PARTITIONED,
1501
- U as RT_JSON_PARTITIONED,
1502
- Z as RT_JSON_SUPER_PARTITIONED,
1501
+ V as RT_JSON_PARTITIONED,
1502
+ X as RT_JSON_SUPER_PARTITIONED,
1503
1503
  ne as RT_RESOURCE_MAP,
1504
1504
  ie as RT_RESOURCE_MAP_PARTITIONED,
1505
- G as RenderCtx,
1505
+ z as RenderCtx,
1506
1506
  ct as ResultPool,
1507
- Rt as StandardErrorLike,
1507
+ Dt as StandardErrorLike,
1508
1508
  Ye as Trace,
1509
- ze as TraceEntry,
1509
+ Ge as TraceEntry,
1510
1510
  S as TreeNodeAccessor,
1511
- Ne as canonicalizeAxisId,
1511
+ $e as canonicalizeAxisId,
1512
1512
  rt as convertOrParsePColumnData,
1513
1513
  Ke as dataInfoToEntries,
1514
1514
  Ae as deriveLabels,
1515
- Re as deriveNativeId,
1515
+ De as deriveNativeId,
1516
1516
  te as downgradeCfgOrLambda,
1517
1517
  ke as ensurePColumn,
1518
- $e as entriesToDataInfo,
1518
+ je as entriesToDataInfo,
1519
1519
  Ee as extractAllColumns,
1520
1520
  nt as filterDataInfoEntries,
1521
1521
  _t as getAxesId,
1522
- pe as getAxisId,
1522
+ de as getAxisId,
1523
1523
  wt as getFileNameFromHandle,
1524
1524
  Pt as getFilePathFromHandle,
1525
1525
  Q as getImmediate,
1526
- Xe as getPartitionKeysList,
1526
+ Ze as getPartitionKeysList,
1527
1527
  mt as getRawPlatformaInstance,
1528
1528
  tt as getUniquePartitionKeys,
1529
1529
  re as ifDef,
@@ -1533,19 +1533,19 @@ export {
1533
1533
  At as isImportFileHandleIndex,
1534
1534
  xt as isImportFileHandleUpload,
1535
1535
  be as isPColumn,
1536
- z as isPColumnSpec,
1537
- De as isPartitionedDataInfoEntries,
1536
+ G as isPColumnSpec,
1537
+ Re as isPartitionedDataInfoEntries,
1538
1538
  Fe as isPlRef,
1539
- je as mapDataInfo,
1539
+ Ne as mapDataInfo,
1540
1540
  It as mapJoinEntry,
1541
1541
  le as mapPObjectData,
1542
1542
  Te as mapPTableDef,
1543
1543
  Oe as mapValueInVOE,
1544
1544
  St as matchAxis,
1545
- Ct as matchAxisId,
1546
- Lt as matchPColumn,
1545
+ Lt as matchAxisId,
1546
+ Ct as matchPColumn,
1547
1547
  oe as parsePColumnData,
1548
- de as resolveAnchors,
1548
+ pe as resolveAnchors,
1549
1549
  W as selectorsToPredicate,
1550
1550
  Et as stringifyColumnId,
1551
1551
  ce as withEnrichments