@platforma-open/milaboratories.repertoire-diversity-2.model 1.3.0 → 1.3.1

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,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/work/repertoire-diversity/repertoire-diversity/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.repertoire-diversity-2.model@1.3.0 build /home/runner/work/repertoire-diversity/repertoire-diversity/model
3
+ > @platforma-open/milaboratories.repertoire-diversity-2.model@1.3.1 build /home/runner/work/repertoire-diversity/repertoire-diversity/model
4
4
  > tsup && vite build && block-tools build-model
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -11,14 +11,14 @@
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
14
+ DTS Build start
14
15
  ESM dist/index.js 2.38 KB
15
16
  ESM dist/index.js.map 6.07 KB
16
- ESM ⚡️ Build success in 112ms
17
+ ESM ⚡️ Build success in 306ms
17
18
  CJS dist/index.cjs 2.38 KB
18
19
  CJS dist/index.cjs.map 6.13 KB
19
- CJS ⚡️ Build success in 114ms
20
- DTS Build start
21
- DTS ⚡️ Build success in 2218ms
20
+ CJS ⚡️ Build success in 307ms
21
+ DTS ⚡️ Build success in 3198ms
22
22
  DTS dist/index.d.cts 2.49 KB
23
23
  DTS dist/index.d.ts 2.49 KB
24
24
  vite v6.2.6 building for production...
@@ -26,6 +26,6 @@ transforming...
26
26
  ✓ 11 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 189.06 kB │ gzip: 36.89 kB │ map: 405.47 kB
30
- dist/bundle.js 202.05 kB │ gzip: 37.55 kB │ map: 407.04 kB
31
- ✓ built in 669ms
29
+ dist/bundle.js 189.23 kB │ gzip: 36.91 kB │ map: 405.74 kB
30
+ dist/bundle.js 202.24 kB │ gzip: 37.57 kB │ map: 407.31 kB
31
+ ✓ built in 832ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-open/milaboratories.repertoire-diversity-2.model
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f95c059: Update SDK
8
+
3
9
  ## 1.3.0
4
10
 
5
11
  ### Minor Changes
package/dist/bundle.js CHANGED
@@ -4507,12 +4507,12 @@
4507
4507
  }), c = l.extend({
4508
4508
  cause: z$1.lazy(() => s).optional(),
4509
4509
  errors: z$1.lazy(() => s.array()).optional()
4510
- }), m$1 = z$1.object({
4510
+ }), m = z$1.object({
4511
4511
  type: z$1.literal("StandardError"),
4512
4512
  name: z$1.string(),
4513
4513
  message: z$1.string(),
4514
4514
  stack: z$1.string().optional()
4515
- }), p = m$1.extend({
4515
+ }), p = m.extend({
4516
4516
  cause: z$1.lazy(() => s).optional(),
4517
4517
  errors: z$1.lazy(() => s.array()).optional()
4518
4518
  }), s = z$1.union([p, c]);
@@ -4543,7 +4543,7 @@
4543
4543
  function ft() {
4544
4544
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4545
4545
  }
4546
- function m() {
4546
+ function y() {
4547
4547
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4548
4548
  throw new Error("Not in config rendering context");
4549
4549
  }
@@ -4555,7 +4555,7 @@
4555
4555
  }
4556
4556
  const ce = /* @__PURE__ */ new Map();
4557
4557
  function ht(t, e) {
4558
- t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
4558
+ t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
4559
4559
  for (const r of ce.get(t))
4560
4560
  r(n2);
4561
4561
  }, ce.set(t, [])), ce.get(t).push(e);
@@ -4624,46 +4624,46 @@
4624
4624
  ...n2.map((i) => typeof i == "string" ? i : i.field)
4625
4625
  ];
4626
4626
  return he(
4627
- m().resolveWithCommon(this.handle, e, ...n2),
4627
+ y().resolveWithCommon(this.handle, e, ...n2),
4628
4628
  (i) => new E(i, r)
4629
4629
  );
4630
4630
  }
4631
4631
  get resourceType() {
4632
- return m().getResourceType(this.handle);
4632
+ return y().getResourceType(this.handle);
4633
4633
  }
4634
4634
  getInputsLocked() {
4635
- return m().getInputsLocked(this.handle);
4635
+ return y().getInputsLocked(this.handle);
4636
4636
  }
4637
4637
  getOutputsLocked() {
4638
- return m().getOutputsLocked(this.handle);
4638
+ return y().getOutputsLocked(this.handle);
4639
4639
  }
4640
4640
  getIsReadyOrError() {
4641
- return m().getIsReadyOrError(this.handle);
4641
+ return y().getIsReadyOrError(this.handle);
4642
4642
  }
4643
4643
  getIsFinal() {
4644
- return m().getIsFinal(this.handle);
4644
+ return y().getIsFinal(this.handle);
4645
4645
  }
4646
4646
  getError() {
4647
4647
  const e = [...this.resolvePath, "error"];
4648
4648
  return he(
4649
- m().getError(this.handle),
4649
+ y().getError(this.handle),
4650
4650
  (n2) => new E(n2, e)
4651
4651
  );
4652
4652
  }
4653
4653
  listInputFields() {
4654
- return m().listInputFields(this.handle);
4654
+ return y().listInputFields(this.handle);
4655
4655
  }
4656
4656
  listOutputFields() {
4657
- return m().listOutputFields(this.handle);
4657
+ return y().listOutputFields(this.handle);
4658
4658
  }
4659
4659
  listDynamicFields() {
4660
- return m().listDynamicFields(this.handle);
4660
+ return y().listDynamicFields(this.handle);
4661
4661
  }
4662
4662
  getKeyValueBase64(e) {
4663
- return m().getKeyValueBase64(this.handle, e);
4663
+ return y().getKeyValueBase64(this.handle, e);
4664
4664
  }
4665
4665
  getKeyValueAsString(e) {
4666
- return m().getKeyValueAsString(this.handle, e);
4666
+ return y().getKeyValueAsString(this.handle, e);
4667
4667
  }
4668
4668
  getKeyValueAsJson(e) {
4669
4669
  const n2 = this.getKeyValueAsString(e);
@@ -4671,10 +4671,10 @@
4671
4671
  return JSON.parse(n2);
4672
4672
  }
4673
4673
  getDataBase64() {
4674
- return m().getDataBase64(this.handle);
4674
+ return y().getDataBase64(this.handle);
4675
4675
  }
4676
4676
  getDataAsString() {
4677
- return m().getDataAsString(this.handle);
4677
+ return y().getDataAsString(this.handle);
4678
4678
  }
4679
4679
  getDataAsJson() {
4680
4680
  const e = this.getDataAsString();
@@ -4695,7 +4695,7 @@
4695
4695
  *
4696
4696
  */
4697
4697
  parsePObjectCollection(e = false, n2 = "") {
4698
- const r = m().parsePObjectCollection(
4698
+ const r = y().parsePObjectCollection(
4699
4699
  this.handle,
4700
4700
  e,
4701
4701
  n2,
@@ -4710,14 +4710,14 @@
4710
4710
  return i;
4711
4711
  }
4712
4712
  getFileContentAsBase64(e) {
4713
- return new _(m().getBlobContentAsBase64(this.handle, e));
4713
+ return new _(y().getBlobContentAsBase64(this.handle, e));
4714
4714
  }
4715
4715
  getFileContentAsString(e) {
4716
- return new _(m().getBlobContentAsString(this.handle, e));
4716
+ return new _(y().getBlobContentAsString(this.handle, e));
4717
4717
  }
4718
4718
  getFileContentAsJson(e) {
4719
4719
  return new _(
4720
- m().getBlobContentAsString(this.handle, e)
4720
+ y().getBlobContentAsString(this.handle, e)
4721
4721
  ).mapDefined((n2) => JSON.parse(n2));
4722
4722
  }
4723
4723
  /**
@@ -4736,7 +4736,7 @@
4736
4736
  * @returns downloaded file handle
4737
4737
  */
4738
4738
  getFileHandle() {
4739
- return new _(m().getDownloadedBlobContentHandle(this.handle));
4739
+ return new _(y().getDownloadedBlobContentHandle(this.handle));
4740
4740
  }
4741
4741
  /**
4742
4742
  * @deprecated use getFileHandle
@@ -4748,7 +4748,7 @@
4748
4748
  * @returns downloaded file handle
4749
4749
  */
4750
4750
  getRemoteFileHandle() {
4751
- return new _(m().getOnDemandBlobContentHandle(this.handle));
4751
+ return new _(y().getOnDemandBlobContentHandle(this.handle));
4752
4752
  }
4753
4753
  /**
4754
4754
  * @deprecated use getRemoteFileHandle
@@ -4760,22 +4760,22 @@
4760
4760
  * @returns the url to the extracted folder
4761
4761
  */
4762
4762
  extractArchiveAndGetURL(e) {
4763
- return new _(m().extractArchiveAndGetURL(this.handle, e));
4763
+ return new _(y().extractArchiveAndGetURL(this.handle, e));
4764
4764
  }
4765
4765
  getImportProgress() {
4766
- return new _(m().getImportProgress(this.handle));
4766
+ return new _(y().getImportProgress(this.handle));
4767
4767
  }
4768
4768
  getLastLogs(e) {
4769
- return new _(m().getLastLogs(this.handle, e));
4769
+ return new _(y().getLastLogs(this.handle, e));
4770
4770
  }
4771
4771
  getProgressLog(e) {
4772
- return new _(m().getProgressLog(this.handle, e));
4772
+ return new _(y().getProgressLog(this.handle, e));
4773
4773
  }
4774
4774
  getProgressLogWithInfo(e) {
4775
- return new _(m().getProgressLogWithInfo(this.handle, e));
4775
+ return new _(y().getProgressLogWithInfo(this.handle, e));
4776
4776
  }
4777
4777
  getLogHandle() {
4778
- return new _(m().getLogHandle(this.handle));
4778
+ return new _(y().getLogHandle(this.handle));
4779
4779
  }
4780
4780
  allFieldsResolved(e = "Input") {
4781
4781
  switch (e) {
@@ -4812,75 +4812,75 @@
4812
4812
  label: z$1.string()
4813
4813
  }), wt = z$1.array(bt), At = 1e-3, xt = "__LABEL__", Pe = "__LABEL__@1";
4814
4814
  function je(t, e, n2 = {}) {
4815
- const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
4815
+ const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((p2) => {
4816
4816
  var P2, R;
4817
- const w2 = e(f2);
4818
- let p2, g, b;
4819
- "spec" in w2 && typeof w2.spec == "object" ? (p2 = w2.spec, g = w2.prefixTrace, b = w2.suffixTrace) : p2 = w2;
4820
- const h2 = (P2 = p2.annotations) == null ? void 0 : P2[yt], I = (R = p2.annotations) == null ? void 0 : R[vt], x = (I ? wt.safeParse(JSON.parse(I)).data : void 0) ?? [], v = [
4821
- ...g ?? [],
4817
+ const v = e(p2);
4818
+ let f2, m2, w2;
4819
+ "spec" in v && typeof v.spec == "object" ? (f2 = v.spec, m2 = v.prefixTrace, w2 = v.suffixTrace) : f2 = v;
4820
+ const h2 = (P2 = f2.annotations) == null ? void 0 : P2[yt], I = (R = f2.annotations) == null ? void 0 : R[vt], x = (I ? wt.safeParse(JSON.parse(I)).data : void 0) ?? [], b = [
4821
+ ...m2 ?? [],
4822
4822
  ...x,
4823
- ...b ?? []
4823
+ ...w2 ?? []
4824
4824
  ];
4825
4825
  if (h2 !== void 0) {
4826
4826
  const k2 = { label: h2, type: xt, importance: -2 };
4827
- n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
4827
+ n2.addLabelAsSuffix ? b.push(k2) : b.splice(0, 0, k2);
4828
4828
  }
4829
4829
  const A = [], L = /* @__PURE__ */ new Map();
4830
- for (let k2 = v.length - 1; k2 >= 0; --k2) {
4831
- const { type: W } = v[k2], j2 = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
4832
- L.set(W, $);
4833
- const F = `${W}@${$}`;
4830
+ for (let k2 = b.length - 1; k2 >= 0; --k2) {
4831
+ const { type: W } = b[k2], V = b[k2].importance ?? 0, N2 = (L.get(W) ?? 0) + 1;
4832
+ L.set(W, N2);
4833
+ const F = `${W}@${N2}`;
4834
4834
  s2.set(F, (s2.get(F) ?? 0) + 1), r.set(
4835
4835
  F,
4836
4836
  Math.max(
4837
4837
  r.get(F) ?? Number.NEGATIVE_INFINITY,
4838
- j2 - (v.length - k2) * At
4838
+ V - (b.length - k2) * At
4839
4839
  )
4840
- ), A.push({ ...v[k2], fullType: F, occurrenceIndex: $ });
4840
+ ), A.push({ ...b[k2], fullType: F, occurrenceIndex: N2 });
4841
4841
  }
4842
4842
  return A.reverse(), {
4843
- value: f2,
4844
- spec: p2,
4843
+ value: p2,
4844
+ spec: f2,
4845
4845
  label: h2,
4846
4846
  fullTrace: A
4847
4847
  };
4848
4848
  }), a = [], l2 = [], u2 = [...r];
4849
- u2.sort(([, f2], [, w2]) => w2 - f2);
4850
- for (const [f2] of u2)
4851
- f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
4852
- const c2 = (f2, w2 = false) => {
4853
- const p2 = [];
4854
- for (let g = 0; g < o.length; g++) {
4855
- const b = o[g], h2 = b.fullTrace.filter((v) => f2.has(v.fullType) || i && i.has(v.type));
4849
+ u2.sort(([, p2], [, v]) => v - p2);
4850
+ for (const [p2] of u2)
4851
+ p2.endsWith("@1") || s2.get(p2) === t.length ? a.push(p2) : l2.push(p2);
4852
+ const c2 = (p2, v = false) => {
4853
+ const f2 = [];
4854
+ for (let m2 = 0; m2 < o.length; m2++) {
4855
+ const w2 = o[m2], h2 = w2.fullTrace.filter((b) => p2.has(b.fullType) || i && i.has(b.type));
4856
4856
  if (h2.length === 0)
4857
- if (w2)
4858
- p2.push({
4857
+ if (v)
4858
+ f2.push({
4859
4859
  label: "Unlabeled",
4860
- value: b.value
4860
+ value: w2.value
4861
4861
  });
4862
4862
  else return;
4863
- const I = h2.map((v) => v.label), x = n2.separator ?? " / ";
4864
- p2.push({
4863
+ const I = h2.map((b) => b.label), x = n2.separator ?? " / ";
4864
+ f2.push({
4865
4865
  label: I.join(x),
4866
- value: b.value
4866
+ value: w2.value
4867
4867
  });
4868
4868
  }
4869
- return p2;
4869
+ return f2;
4870
4870
  };
4871
4871
  if (a.length === 0) {
4872
4872
  if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
4873
4873
  return c2(new Set(Pe), true);
4874
4874
  }
4875
- let d = 0, y = -1;
4875
+ let d = 0, g = -1;
4876
4876
  for (; d < a.length; ) {
4877
- const f2 = /* @__PURE__ */ new Set();
4878
- n2.includeNativeLabel && f2.add(Pe);
4879
- for (let p2 = 0; p2 < d; ++p2) f2.add(a[p2]);
4880
- y >= 0 && f2.add(a[y]);
4881
- const w2 = c2(f2);
4882
- if (w2 !== void 0 && new Set(w2.map((p2) => p2.label)).size === t.length) return w2;
4883
- y++, y >= a.length && (d++, y = d);
4877
+ const p2 = /* @__PURE__ */ new Set();
4878
+ n2.includeNativeLabel && p2.add(Pe);
4879
+ for (let f2 = 0; f2 < d; ++f2) p2.add(a[f2]);
4880
+ g >= 0 && p2.add(a[g]);
4881
+ const v = c2(p2);
4882
+ if (v !== void 0 && new Set(v.map((f2) => f2.label)).size === t.length) return v;
4883
+ g++, g >= a.length && (d++, g = d);
4884
4884
  }
4885
4885
  return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
4886
4886
  }
@@ -5218,43 +5218,43 @@
5218
5218
  };
5219
5219
  let u2 = () => false;
5220
5220
  if (a) {
5221
- const p2 = (Array.isArray(a) ? a : [a]).map((g) => {
5222
- if (Se(g)) {
5221
+ const f2 = (Array.isArray(a) ? a : [a]).map((m2) => {
5222
+ if (Se(m2)) {
5223
5223
  if (!r)
5224
5224
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5225
- return Gn(Mn(r.anchors, g, n2));
5225
+ return Gn(Mn(r.anchors, m2, n2));
5226
5226
  } else
5227
- return Gn(g);
5227
+ return Gn(m2);
5228
5228
  });
5229
- u2 = (g) => p2.some((b) => b(g));
5229
+ u2 = (m2) => f2.some((w2) => w2(m2));
5230
5230
  }
5231
- const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], y = /* @__PURE__ */ new Set();
5232
- for (const p2 of c2) {
5233
- const g = Se(p2);
5234
- let b;
5235
- if (g) {
5231
+ const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], g = /* @__PURE__ */ new Set();
5232
+ for (const f$1 of c2) {
5233
+ const m2 = Se(f$1);
5234
+ let w2;
5235
+ if (m2) {
5236
5236
  if (!r)
5237
5237
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5238
- b = Mn(r.anchors, p2, n2);
5238
+ w2 = Mn(r.anchors, f$1, n2);
5239
5239
  } else
5240
- b = p2;
5240
+ w2 = f$1;
5241
5241
  const h2 = /* @__PURE__ */ new Set(), I = [];
5242
5242
  for (const A of this.providers) {
5243
- const L = A.selectColumns(b);
5243
+ const L = A.selectColumns(w2);
5244
5244
  for (const P2 of L) {
5245
5245
  if (u2(P2.spec)) continue;
5246
5246
  if (h2.has(P2.id))
5247
5247
  throw new Error(`Duplicate column id ${P2.id} in provider ${A.constructor.name}`);
5248
5248
  const R = Qn(P2.spec);
5249
- y.has(R) || (h2.add(P2.id), y.add(R), I.push(P2));
5249
+ g.has(R) || (h2.add(P2.id), g.add(R), I.push(P2));
5250
5250
  }
5251
5251
  }
5252
5252
  if (I.length === 0) continue;
5253
- const x = Dt(p2), v = x.length > 0;
5253
+ const x = Dt(f$1), b = x.length > 0;
5254
5254
  for (const A of I) {
5255
5255
  if (!f(A.spec)) continue;
5256
5256
  const L = A.spec;
5257
- if (v) {
5257
+ if (b) {
5258
5258
  if (Lt(A.data))
5259
5259
  throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
5260
5260
  const P2 = _t(A.data);
@@ -5267,33 +5267,33 @@
5267
5267
  const R = St(P2), k2 = x[x.length - 1];
5268
5268
  if (k2 >= P2.partitionKeyLength)
5269
5269
  throw new Error(`Not enough partition keys (${P2.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5270
- const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))), j2 = [], $ = (S, G) => {
5270
+ const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], N2 = (S, G) => {
5271
5271
  if (G >= x.length) {
5272
- if (j2.push([...S]), j2.length > 1e4)
5272
+ if (V.push([...S]), V.length > 1e4)
5273
5273
  throw new Error("Too many key combinations, aborting.");
5274
5274
  return;
5275
5275
  }
5276
- const V = x[G];
5277
- if (V >= R.length)
5278
- throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
5279
- const N2 = R[V];
5280
- if (!N2 || N2.length === 0) {
5281
- j2.length = 0;
5276
+ const $ = x[G];
5277
+ if ($ >= R.length)
5278
+ throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
5279
+ const J2 = R[$];
5280
+ if (!J2 || J2.length === 0) {
5281
+ V.length = 0;
5282
5282
  return;
5283
5283
  }
5284
- for (const ee of N2)
5285
- S.push(ee), $(S, G + 1), S.pop();
5284
+ for (const ee of J2)
5285
+ S.push(ee), N2(S, G + 1), S.pop();
5286
5286
  };
5287
- if ($([], 0), j2.length === 0)
5287
+ if (N2([], 0), V.length === 0)
5288
5288
  continue;
5289
5289
  const F = [...L.axesSpec], Be = x.map((S) => S);
5290
5290
  for (let S = x.length - 1; S >= 0; S--)
5291
5291
  F.splice(x[S], 1);
5292
5292
  const We = { ...L, axesSpec: F };
5293
- for (const S of j2) {
5294
- const G = S.map((V, N2) => {
5295
- const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue2 = W[N2], He = (ue2 == null ? void 0 : ue2[V]) ?? String(V);
5296
- return { axisIdx: ee, axisId: Ge, value: V, label: He };
5293
+ for (const S of V) {
5294
+ const G = S.map(($, J2) => {
5295
+ const ee = Be[J2], Ge = p$1(L.axesSpec[ee]), ue2 = W[J2], He = (ue2 == null ? void 0 : ue2[$]) ?? String($);
5296
+ return { axisIdx: ee, axisId: Ge, value: $, label: He };
5297
5297
  });
5298
5298
  d.push({
5299
5299
  type: "split",
@@ -5314,33 +5314,33 @@
5314
5314
  }
5315
5315
  }
5316
5316
  if (d.length === 0) return [];
5317
- const f$1 = je(
5317
+ const p2 = je(
5318
5318
  d,
5319
- (p2) => ({
5320
- spec: p2.spec,
5321
- suffixTrace: p2.type === "split" ? Et(p2.axisFilters) : void 0
5319
+ (f2) => ({
5320
+ spec: f2.spec,
5321
+ suffixTrace: f2.type === "split" ? Et(f2.axisFilters) : void 0
5322
5322
  }),
5323
5323
  l2
5324
- ), w2 = [];
5325
- for (const { value: p2, label: g } of f$1) {
5326
- const { originalColumn: b, spec: h2 } = p2, I = p2.type === "split" ? p2.axisFilters : void 0, x = kt(I);
5327
- let v;
5328
- r ? v = r.deriveS(h2, x) : v = Ot(b.id, x);
5329
- let A = { ...p2.adjustedSpec };
5324
+ ), v = [];
5325
+ for (const { value: f2, label: m2 } of p2) {
5326
+ const { originalColumn: w2, spec: h2 } = f2, I = f2.type === "split" ? f2.axisFilters : void 0, x = kt(I);
5327
+ let b;
5328
+ r ? b = r.deriveS(h2, x) : b = Ot(w2.id, x);
5329
+ let A = { ...f2.adjustedSpec };
5330
5330
  o && (A = {
5331
5331
  ...A,
5332
5332
  annotations: {
5333
5333
  ...A.annotations ?? {},
5334
- "pl7.app/label": g
5334
+ "pl7.app/label": m2
5335
5335
  }
5336
- }), w2.push({
5337
- id: v,
5336
+ }), v.push({
5337
+ id: b,
5338
5338
  spec: A,
5339
- data: () => p2.type === "split" ? Jn(It(p2.dataEntries, x)) : p2.originalColumn.data,
5340
- label: g
5339
+ data: () => f2.type === "split" ? Jn(It(f2.dataEntries, x)) : f2.originalColumn.data,
5340
+ label: m2
5341
5341
  });
5342
5342
  }
5343
- return w2;
5343
+ return v;
5344
5344
  }
5345
5345
  getColumns(e, n2) {
5346
5346
  const r = this.getUniversalEntries(e, {
@@ -5377,7 +5377,7 @@
5377
5377
  }
5378
5378
  class Rt {
5379
5379
  constructor() {
5380
- O(this, "ctx", m());
5380
+ O(this, "ctx", y());
5381
5381
  }
5382
5382
  /**
5383
5383
  * @deprecated use getOptions()
@@ -5651,7 +5651,7 @@
5651
5651
  O(this, "uiState");
5652
5652
  O(this, "_activeArgsCache");
5653
5653
  O(this, "resultPool", new Rt());
5654
- this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5654
+ this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5655
5655
  }
5656
5656
  /**
5657
5657
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -5727,7 +5727,7 @@
5727
5727
  this.ctx.logError(e);
5728
5728
  }
5729
5729
  }
5730
- const Y = "1.34.8";
5730
+ const Y = "1.34.10";
5731
5731
  function Ft(t) {
5732
5732
  return t.__renderLambda === true;
5733
5733
  }
@@ -5970,8 +5970,8 @@
5970
5970
  for (const a of e) {
5971
5971
  const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => Z$1(d, u2));
5972
5972
  if (c2 !== -1) {
5973
- const d = i[c2], y = Object.keys(d.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
5974
- y > f2 ? o.push({
5973
+ const d = i[c2], g = Object.keys(d.domain ?? {}).length, p2 = Object.keys(l2.domain ?? {}).length;
5974
+ g > p2 ? o.push({
5975
5975
  id: s2(a.id, d.domain),
5976
5976
  spec: {
5977
5977
  ...a.spec,
@@ -6104,21 +6104,21 @@
6104
6104
  return [e];
6105
6105
  const r = n2.map((u2) => {
6106
6106
  const c2 = [];
6107
- for (const [d, y] of t)
6108
- Z$1(y, u2) && !Z$1(u2, y) && c2.push(y);
6107
+ for (const [d, g] of t)
6108
+ Z$1(g, u2) && !Z$1(u2, g) && c2.push(g);
6109
6109
  return c2;
6110
6110
  }), i = $t(r), s2 = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), a = i.map((u2) => {
6111
6111
  const c2 = /* @__PURE__ */ new Set();
6112
- return u2.map((d, y) => {
6113
- const f2 = e.spec.axesSpec[y].domain, w2 = d.domain;
6114
- return Object.entries(w2 ?? {}).forEach(([p2, g]) => {
6115
- if ((f2 == null ? void 0 : f2[p2]) === void 0) {
6116
- const b = JSON.stringify([p2, g]);
6117
- c2.add(b), s2.add(b);
6112
+ return u2.map((d, g) => {
6113
+ const p2 = e.spec.axesSpec[g].domain, v = d.domain;
6114
+ return Object.entries(v ?? {}).forEach(([f2, m2]) => {
6115
+ if ((p2 == null ? void 0 : p2[f2]) === void 0) {
6116
+ const w2 = JSON.stringify([f2, m2]);
6117
+ c2.add(w2), s2.add(w2);
6118
6118
  }
6119
6119
  }), {
6120
6120
  ...d,
6121
- annotations: e.spec.axesSpec[y].annotations
6121
+ annotations: e.spec.axesSpec[g].annotations
6122
6122
  };
6123
6123
  }), c2;
6124
6124
  });
@@ -6126,23 +6126,23 @@
6126
6126
  a.some((c2) => !c2.has(u2)) && o.add(u2);
6127
6127
  });
6128
6128
  const l2 = i.map((u2, c2) => {
6129
- var p2;
6130
- const d = Vt(e.id, u2.map((g) => g.domain)), y = ((p2 = e.spec.annotations) == null ? void 0 : p2[Ie]) ?? "", f2 = [...a[c2]].filter((g) => o.has(g)).sort().map((g) => {
6131
- var b;
6132
- return (b = JSON.parse(g)) == null ? void 0 : b[1];
6133
- }).join(" / "), w2 = {
6129
+ var f2;
6130
+ const d = Vt(e.id, u2.map((m2) => m2.domain)), g = ((f2 = e.spec.annotations) == null ? void 0 : f2[Ie]) ?? "", p2 = [...a[c2]].filter((m2) => o.has(m2)).sort().map((m2) => {
6131
+ var w2;
6132
+ return (w2 = JSON.parse(m2)) == null ? void 0 : w2[1];
6133
+ }).join(" / "), v = {
6134
6134
  ...e.spec.annotations,
6135
6135
  [Jt]: "true"
6136
6136
  };
6137
- return (y || f2) && (w2[Ie] = y && f2 ? y + " / " + f2 : y + f2), {
6137
+ return (g || p2) && (v[Ie] = g && p2 ? g + " / " + p2 : g + p2), {
6138
6138
  id: d,
6139
6139
  spec: {
6140
6140
  ...e.spec,
6141
- axesSpec: u2.map((g, b) => ({
6142
- ...g,
6143
- annotations: e.spec.axesSpec[b].annotations
6141
+ axesSpec: u2.map((m2, w2) => ({
6142
+ ...m2,
6143
+ annotations: e.spec.axesSpec[w2].annotations
6144
6144
  })),
6145
- annotations: w2
6145
+ annotations: v
6146
6146
  },
6147
6147
  data: e.data
6148
6148
  };
@@ -6155,26 +6155,32 @@
6155
6155
  n2.addColumnProvider(t.resultPool), n2.addColumns(e);
6156
6156
  const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
6157
6157
  for (const d of e)
6158
- for (const y of d.spec.axesSpec) {
6159
- const f2 = p$1(y);
6160
- r.set(ue(f2), f2), i.set(ue(f2), f2);
6158
+ for (const g of d.spec.axesSpec) {
6159
+ const p2 = p$1(g);
6160
+ r.set(ue(p2), p2), i.set(ue(p2), p2);
6161
6161
  }
6162
6162
  const s2 = n2.getColumns((d) => Nt(d)) ?? [], o = Bt(s2, r);
6163
6163
  for (const d of o)
6164
6164
  r.set(...d), i.set(...d);
6165
- const a = (n2.getColumns([...r.values()].map((d) => ({
6166
- axes: [d],
6167
- partialAxesMatch: true
6168
- })), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((d) => !ve(d.spec));
6165
+ const a = (n2.getColumns((d) => d.axesSpec.some((g) => {
6166
+ const p2 = p$1(g);
6167
+ for (const v of r.values())
6168
+ if (Z$1(v, p2))
6169
+ return true;
6170
+ return false;
6171
+ }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((d) => !ve(d.spec));
6169
6172
  for (const d of a)
6170
- for (const y of d.spec.axesSpec) {
6171
- const f2 = p$1(y);
6172
- i.set(ue(f2), f2);
6173
- }
6174
- const l2 = (n2.getColumns([...i.values()].map((d) => ({
6175
- axes: [d],
6176
- partialAxesMatch: true
6177
- })), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((d) => ve(d.spec)), u2 = [...a, ...l2], c2 = Wt(r, u2);
6173
+ for (const g of d.spec.axesSpec) {
6174
+ const p2 = p$1(g);
6175
+ i.set(ue(p2), p2);
6176
+ }
6177
+ const l2 = (n2.getColumns((d) => d.axesSpec.some((g) => {
6178
+ const p2 = p$1(g);
6179
+ for (const v of i.values())
6180
+ if (Z$1(v, p2))
6181
+ return true;
6182
+ return false;
6183
+ }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((d) => ve(d.spec)), u2 = [...a, ...l2], c2 = Wt(r, u2);
6178
6184
  if (!c2.some(
6179
6185
  (d) => d.data instanceof E && !d.data.getIsReadyOrError()
6180
6186
  ))