@milaboratories/milaboratories.ui-examples.model 1.1.55 → 1.1.56

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/bundle.js CHANGED
@@ -3832,7 +3832,7 @@
3832
3832
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
3833
3833
  };
3834
3834
  const NEVER = INVALID;
3835
- var z$1 = /* @__PURE__ */ Object.freeze({
3835
+ var z$2 = /* @__PURE__ */ Object.freeze({
3836
3836
  __proto__: null,
3837
3837
  defaultErrorMap: errorMap,
3838
3838
  setErrorMap,
@@ -3948,13 +3948,13 @@
3948
3948
  quotelessJson,
3949
3949
  ZodError
3950
3950
  });
3951
- var $$1 = Object.defineProperty;
3952
- var I$1 = (n2, e, t) => e in n2 ? $$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3953
- var l$1 = (n2, e, t) => I$1(n2, typeof e != "symbol" ? e + "" : e, t);
3951
+ var $ = Object.defineProperty;
3952
+ var D = (n2, e, t) => e in n2 ? $(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3953
+ var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
3954
3954
  function w(n2) {
3955
3955
  throw new Error("Unexpected object: " + n2);
3956
3956
  }
3957
- function mn(n2) {
3957
+ function pn(n2) {
3958
3958
  if (!n2 || typeof n2 != "object")
3959
3959
  return false;
3960
3960
  const e = n2;
@@ -3999,7 +3999,7 @@
3999
3999
  }
4000
4000
  }
4001
4001
  }
4002
- function j(n2) {
4002
+ function F(n2) {
4003
4003
  if (!n2 || typeof n2 != "object")
4004
4004
  return false;
4005
4005
  const e = n2;
@@ -4017,7 +4017,7 @@
4017
4017
  }
4018
4018
  }
4019
4019
  function yn(n2) {
4020
- return j(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4020
+ return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4021
4021
  }
4022
4022
  function hn(n2) {
4023
4023
  switch (n2.type) {
@@ -4081,33 +4081,36 @@
4081
4081
  }
4082
4082
  }
4083
4083
  }
4084
- function Cn$1(n2) {
4084
+ function Cn(n2) {
4085
4085
  return {
4086
4086
  columnId: n2.id,
4087
4087
  spec: n2.spec
4088
4088
  };
4089
4089
  }
4090
- function m$1(n2) {
4090
+ function p$1(n2) {
4091
4091
  const { type: e, name: t, domain: r } = n2;
4092
4092
  return { type: e, name: t, ...r && { domain: r } };
4093
4093
  }
4094
+ function C(n2) {
4095
+ return n2.map(p$1);
4096
+ }
4094
4097
  function Jn(n2) {
4095
- return Le(m$1(n2));
4098
+ return Le(p$1(n2));
4096
4099
  }
4097
- function z(n2, e) {
4100
+ function z$1(n2, e) {
4098
4101
  if (n2 === void 0) return e === void 0;
4099
4102
  if (e === void 0) return true;
4100
4103
  for (const t in e)
4101
4104
  if (n2[t] !== e[t]) return false;
4102
4105
  return true;
4103
4106
  }
4104
- function X$1(n2, e) {
4105
- return n2.name === e.name && z(n2.domain, e.domain);
4107
+ function X(n2, e) {
4108
+ return n2.name === e.name && z$1(n2.domain, e.domain);
4106
4109
  }
4107
4110
  function On(n2, e) {
4108
- return { ...n2, src: y$1(n2.src, e) };
4111
+ return { ...n2, src: h(n2.src, e) };
4109
4112
  }
4110
- function y$1(n2, e) {
4113
+ function h(n2, e) {
4111
4114
  switch (n2.type) {
4112
4115
  case "column":
4113
4116
  return {
@@ -4127,13 +4130,13 @@
4127
4130
  case "full":
4128
4131
  return {
4129
4132
  type: n2.type,
4130
- entries: n2.entries.map((t) => y$1(t, e))
4133
+ entries: n2.entries.map((t) => h(t, e))
4131
4134
  };
4132
4135
  case "outer":
4133
4136
  return {
4134
4137
  type: "outer",
4135
- primary: y$1(n2.primary, e),
4136
- secondary: n2.secondary.map((t) => y$1(t, e))
4138
+ primary: h(n2.primary, e),
4139
+ secondary: n2.secondary.map((t) => h(t, e))
4137
4140
  };
4138
4141
  default:
4139
4142
  w(n2);
@@ -4143,12 +4146,12 @@
4143
4146
  return Le(n2);
4144
4147
  }
4145
4148
  function x(n2) {
4146
- return Le(m$1(n2));
4149
+ return Le(p$1(n2));
4147
4150
  }
4148
4151
  function A(n2, e) {
4149
4152
  return JSON.stringify([n2, e]);
4150
4153
  }
4151
- class In {
4154
+ class $n {
4152
4155
  /**
4153
4156
  * Creates a new anchor context from a set of anchor column specifications
4154
4157
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -4210,7 +4213,7 @@
4210
4213
  }
4211
4214
  if (r.axes = e.axesSpec.map((a) => {
4212
4215
  const i = x(a), u2 = this.axes.get(i);
4213
- return u2 === void 0 ? m$1(a) : u2;
4216
+ return u2 === void 0 ? p$1(a) : u2;
4214
4217
  }), !t || t.length === 0)
4215
4218
  return r;
4216
4219
  const s2 = [];
@@ -4269,9 +4272,9 @@
4269
4272
  }
4270
4273
  r.domain = s2;
4271
4274
  }
4272
- return r.axes && (r.axes = r.axes.map((s2) => Q(n2, s2))), r;
4275
+ return r.axes && (r.axes = r.axes.map((s2) => Q$1(n2, s2))), r;
4273
4276
  }
4274
- function Q(n2, e) {
4277
+ function Q$1(n2, e) {
4275
4278
  if (!Y(e))
4276
4279
  return e;
4277
4280
  const t = e.anchor, r = n2[t];
@@ -4289,7 +4292,7 @@
4289
4292
  throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
4290
4293
  return o[0];
4291
4294
  } else if ("id" in e) {
4292
- const o = r.axesSpec.filter((s2) => X$1(e.id, m$1(s2)));
4295
+ const o = r.axesSpec.filter((s2) => X(e.id, p$1(s2)));
4293
4296
  if (o.length > 1)
4294
4297
  throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4295
4298
  if (o.length === 0)
@@ -4304,11 +4307,11 @@
4304
4307
  function f(n2) {
4305
4308
  return n2.kind === "PColumn";
4306
4309
  }
4307
- function Z$1(n2) {
4310
+ function Z(n2) {
4308
4311
  return f(n2.spec);
4309
4312
  }
4310
4313
  function jn(n2) {
4311
- if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4314
+ if (!Z(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4312
4315
  return n2;
4313
4316
  }
4314
4317
  function Fn(n2, e) {
@@ -4360,7 +4363,7 @@
4360
4363
  }
4361
4364
  return true;
4362
4365
  }
4363
- function N(n2, e) {
4366
+ function N$1(n2, e) {
4364
4367
  if (e.name !== void 0 && n2.name !== e.name || e.namePattern !== void 0 && !new RegExp(e.namePattern).test(n2.name))
4365
4368
  return false;
4366
4369
  if (e.type !== void 0) {
@@ -4377,7 +4380,7 @@
4377
4380
  return false;
4378
4381
  }
4379
4382
  if (e.axes !== void 0) {
4380
- const t = n2.axesSpec.map(m$1);
4383
+ const t = n2.axesSpec.map(p$1);
4381
4384
  if (e.partialAxesMatch) {
4382
4385
  for (const r of e.axes)
4383
4386
  if (!t.some((o) => k(r, o)))
@@ -4407,20 +4410,27 @@
4407
4410
  return true;
4408
4411
  }
4409
4412
  function Kn(n2) {
4410
- return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
4413
+ return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N$1(e, t)) : (e) => f(e) && N$1(e, n2);
4414
+ }
4415
+ function Rn(n2) {
4416
+ const e = {
4417
+ kind: n2.kind,
4418
+ name: n2.name
4419
+ };
4420
+ return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), Le(e);
4411
4421
  }
4412
- z$1.object({
4413
- __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4414
- blockId: z$1.string().describe("Upstream block id"),
4415
- name: z$1.string().describe("Name of the output provided to the upstream block's output context"),
4416
- requireEnrichments: z$1.literal(true).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")
4422
+ z$2.object({
4423
+ __isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4424
+ blockId: z$2.string().describe("Upstream block id"),
4425
+ name: z$2.string().describe("Name of the output provided to the upstream block's output context"),
4426
+ requireEnrichments: z$2.literal(true).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")
4417
4427
  }).describe(
4418
4428
  "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."
4419
4429
  ).readonly();
4420
4430
  function Mn(n2) {
4421
4431
  return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
4422
4432
  }
4423
- function vn(n2, e = true) {
4433
+ function Hn(n2, e = true) {
4424
4434
  if (e)
4425
4435
  return {
4426
4436
  ...n2,
@@ -4431,11 +4441,11 @@
4431
4441
  return r;
4432
4442
  }
4433
4443
  }
4434
- function qn(n2, e) {
4444
+ function Wn(n2, e) {
4435
4445
  return n2.ok ? { ok: true, value: e(n2.value) } : n2;
4436
4446
  }
4437
4447
  const sn = 24;
4438
- z$1.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4448
+ z$2.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4439
4449
  var stringify = { exports: {} };
4440
4450
  (function(module2, exports3) {
4441
4451
  exports3 = module2.exports = stringify2;
@@ -4460,41 +4470,41 @@
4460
4470
  };
4461
4471
  }
4462
4472
  })(stringify, stringify.exports);
4463
- const l = z$1.object({
4464
- type: z$1.literal("PlError"),
4465
- name: z$1.string(),
4466
- message: z$1.string(),
4473
+ const l = z$2.object({
4474
+ type: z$2.literal("PlError"),
4475
+ name: z$2.string(),
4476
+ message: z$2.string(),
4467
4477
  /** The message with all details needed for SDK developers. */
4468
- fullMessage: z$1.string().optional(),
4469
- stack: z$1.string().optional()
4478
+ fullMessage: z$2.string().optional(),
4479
+ stack: z$2.string().optional()
4470
4480
  }), c = l.extend({
4471
- cause: z$1.lazy(() => s).optional(),
4472
- errors: z$1.lazy(() => s.array()).optional()
4473
- }), m = z$1.object({
4474
- type: z$1.literal("StandardError"),
4475
- name: z$1.string(),
4476
- message: z$1.string(),
4477
- stack: z$1.string().optional()
4481
+ cause: z$2.lazy(() => s).optional(),
4482
+ errors: z$2.lazy(() => s.array()).optional()
4483
+ }), m = z$2.object({
4484
+ type: z$2.literal("StandardError"),
4485
+ name: z$2.string(),
4486
+ message: z$2.string(),
4487
+ stack: z$2.string().optional()
4478
4488
  }), p = m.extend({
4479
- cause: z$1.lazy(() => s).optional(),
4480
- errors: z$1.lazy(() => s.array()).optional()
4481
- }), s = z$1.union([p, c]);
4482
- const u = z$1.object({
4483
- name: z$1.string(),
4484
- message: z$1.string(),
4485
- fullMessage: z$1.string().optional(),
4486
- stack: z$1.string().optional()
4489
+ cause: z$2.lazy(() => s).optional(),
4490
+ errors: z$2.lazy(() => s.array()).optional()
4491
+ }), s = z$2.union([p, c]);
4492
+ const u = z$2.object({
4493
+ name: z$2.string(),
4494
+ message: z$2.string(),
4495
+ fullMessage: z$2.string().optional(),
4496
+ stack: z$2.string().optional()
4487
4497
  }), n = u.extend({
4488
- cause: z$1.lazy(() => n).optional(),
4489
- errors: z$1.lazy(() => n.array()).optional()
4498
+ cause: z$2.lazy(() => n).optional(),
4499
+ errors: z$2.lazy(() => n.array()).optional()
4490
4500
  });
4491
- var Me = Object.defineProperty;
4492
- var We = (t, e, n2) => e in t ? Me(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4493
- var T = (t, e, n2) => We(t, typeof e != "symbol" ? e + "" : e, n2);
4494
- function Z(t) {
4501
+ var We = Object.defineProperty;
4502
+ var Ge = (t, e, n2) => e in t ? We(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4503
+ var T = (t, e, n2) => Ge(t, typeof e != "symbol" ? e + "" : e, n2);
4504
+ function ee(t) {
4495
4505
  return { type: "Immediate", value: t };
4496
4506
  }
4497
- function st() {
4507
+ function at() {
4498
4508
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4499
4509
  }
4500
4510
  function Ee(t) {
@@ -4503,39 +4513,39 @@
4503
4513
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4504
4514
  throw new Error("Can't get platforma instance.");
4505
4515
  }
4506
- function ot() {
4516
+ function lt() {
4507
4517
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4508
4518
  }
4509
4519
  function y() {
4510
4520
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4511
4521
  throw new Error("Not in config rendering context");
4512
4522
  }
4513
- function B(t, e) {
4514
- const n2 = ot();
4523
+ function M(t, e) {
4524
+ const n2 = lt();
4515
4525
  if (n2 === void 0) return false;
4516
4526
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4517
4527
  return n2.callbackRegistry[t] = e, true;
4518
4528
  }
4519
4529
  const ae = /* @__PURE__ */ new Map();
4520
- function at(t, e) {
4530
+ function ut(t, e) {
4521
4531
  t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
4522
4532
  for (const r of ae.get(t))
4523
4533
  r(n2);
4524
4534
  }, ae.set(t, [])), ae.get(t).push(e);
4525
4535
  }
4526
- class S {
4536
+ class _ {
4527
4537
  constructor(e, n2 = (r) => r) {
4528
4538
  T(this, "isResolved", false);
4529
4539
  T(this, "resolvedValue");
4530
- this.handle = e, this.postProcess = n2, at(e, (r) => {
4540
+ this.handle = e, this.postProcess = n2, ut(e, (r) => {
4531
4541
  this.resolvedValue = n2(r), this.isResolved = true;
4532
4542
  });
4533
4543
  }
4534
4544
  map(e) {
4535
- return new S(this.handle, (n2) => e(this.postProcess(n2)));
4545
+ return new _(this.handle, (n2) => e(this.postProcess(n2)));
4536
4546
  }
4537
4547
  mapDefined(e) {
4538
- return new S(this.handle, (n2) => {
4548
+ return new _(this.handle, (n2) => {
4539
4549
  const r = this.postProcess(n2);
4540
4550
  return r ? e(r) : void 0;
4541
4551
  });
@@ -4547,7 +4557,7 @@
4547
4557
  function pe(t, e) {
4548
4558
  return t === void 0 ? void 0 : e(t);
4549
4559
  }
4550
- class I {
4560
+ class L {
4551
4561
  constructor(e, n2) {
4552
4562
  this.handle = e, this.resolvePath = n2;
4553
4563
  }
@@ -4588,7 +4598,7 @@
4588
4598
  ];
4589
4599
  return pe(
4590
4600
  y().resolveWithCommon(this.handle, e, ...n2),
4591
- (i) => new I(i, r)
4601
+ (i) => new L(i, r)
4592
4602
  );
4593
4603
  }
4594
4604
  get resourceType() {
@@ -4610,7 +4620,7 @@
4610
4620
  const e = [...this.resolvePath, "error"];
4611
4621
  return pe(
4612
4622
  y().getError(this.handle),
4613
- (n2) => new I(n2, e)
4623
+ (n2) => new L(n2, e)
4614
4624
  );
4615
4625
  }
4616
4626
  listInputFields() {
@@ -4650,7 +4660,7 @@
4650
4660
  getPColumns(e = false, n2 = "") {
4651
4661
  const r = this.parsePObjectCollection(e, n2);
4652
4662
  return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
4653
- if (!Z$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4663
+ if (!Z(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4654
4664
  return s2;
4655
4665
  });
4656
4666
  }
@@ -4668,18 +4678,18 @@
4668
4678
  const i = {};
4669
4679
  for (const [s2, o] of Object.entries(r)) {
4670
4680
  const a = [...this.resolvePath, s2];
4671
- i[s2] = Fn(o, (l2) => new I(l2, a));
4681
+ i[s2] = Fn(o, (l2) => new L(l2, a));
4672
4682
  }
4673
4683
  return i;
4674
4684
  }
4675
4685
  getFileContentAsBase64() {
4676
- return new S(y().getBlobContentAsBase64(this.handle));
4686
+ return new _(y().getBlobContentAsBase64(this.handle));
4677
4687
  }
4678
4688
  getFileContentAsString() {
4679
- return new S(y().getBlobContentAsString(this.handle));
4689
+ return new _(y().getBlobContentAsString(this.handle));
4680
4690
  }
4681
4691
  getFileContentAsJson() {
4682
- return new S(
4692
+ return new _(
4683
4693
  y().getBlobContentAsString(this.handle)
4684
4694
  ).mapDefined((e) => JSON.parse(e));
4685
4695
  }
@@ -4699,7 +4709,7 @@
4699
4709
  * @returns downloaded file handle
4700
4710
  */
4701
4711
  getFileHandle() {
4702
- return new S(y().getDownloadedBlobContentHandle(this.handle));
4712
+ return new _(y().getDownloadedBlobContentHandle(this.handle));
4703
4713
  }
4704
4714
  /**
4705
4715
  * @deprecated use getFileHandle
@@ -4711,7 +4721,7 @@
4711
4721
  * @returns downloaded file handle
4712
4722
  */
4713
4723
  getRemoteFileHandle() {
4714
- return new S(y().getOnDemandBlobContentHandle(this.handle));
4724
+ return new _(y().getOnDemandBlobContentHandle(this.handle));
4715
4725
  }
4716
4726
  /**
4717
4727
  * @deprecated use getRemoteFileHandle
@@ -4723,22 +4733,22 @@
4723
4733
  * @returns the url to the extracted folder
4724
4734
  */
4725
4735
  extractArchiveAndGetURL(e) {
4726
- return new S(y().extractArchiveAndGetURL(this.handle, e));
4736
+ return new _(y().extractArchiveAndGetURL(this.handle, e));
4727
4737
  }
4728
4738
  getImportProgress() {
4729
- return new S(y().getImportProgress(this.handle));
4739
+ return new _(y().getImportProgress(this.handle));
4730
4740
  }
4731
4741
  getLastLogs(e) {
4732
- return new S(y().getLastLogs(this.handle, e));
4742
+ return new _(y().getLastLogs(this.handle, e));
4733
4743
  }
4734
4744
  getProgressLog(e) {
4735
- return new S(y().getProgressLog(this.handle, e));
4745
+ return new _(y().getProgressLog(this.handle, e));
4736
4746
  }
4737
4747
  getProgressLogWithInfo(e) {
4738
- return new S(y().getProgressLogWithInfo(this.handle, e));
4748
+ return new _(y().getProgressLogWithInfo(this.handle, e));
4739
4749
  }
4740
4750
  getLogHandle() {
4741
- return new S(y().getLogHandle(this.handle));
4751
+ return new _(y().getLogHandle(this.handle));
4742
4752
  }
4743
4753
  allFieldsResolved(e = "Input") {
4744
4754
  switch (e) {
@@ -4764,89 +4774,90 @@
4764
4774
  let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4765
4775
  (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4766
4776
  );
4767
- return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, p2]) => o(u2, p2));
4777
+ return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
4768
4778
  }
4769
4779
  }
4770
4780
  const Fe = "staging", Oe = "main";
4771
- const ct = "pl7.app/label", pt = "pl7.app/trace", dt = z$1.object({
4772
- type: z$1.string(),
4773
- importance: z$1.number().optional(),
4774
- id: z$1.string().optional(),
4775
- label: z$1.string()
4776
- }), ft = z$1.array(dt), ht = 1e-3, gt = "__LABEL__", xe = "__LABEL__@1";
4781
+ const dt = "pl7.app/label", ft = "pl7.app/trace", ht = z$2.object({
4782
+ type: z$2.string(),
4783
+ importance: z$2.number().optional(),
4784
+ id: z$2.string().optional(),
4785
+ label: z$2.string()
4786
+ }), gt = z$2.array(ht), mt = 1e-3, yt = "__LABEL__", xe = "__LABEL__@1";
4777
4787
  function Re(t, e, n2 = {}) {
4778
- const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
4779
- var z2, F;
4780
- const g = e(f2);
4781
- let h, P, c2;
4782
- "spec" in g && typeof g.spec == "object" ? (h = g.spec, P = g.prefixTrace, c2 = g.suffixTrace) : h = g;
4783
- const b = (z2 = h.annotations) == null ? void 0 : z2[ct], m2 = (F = h.annotations) == null ? void 0 : F[pt], w2 = (m2 ? ft.safeParse(JSON.parse(m2)).data : void 0) ?? [], A2 = [
4784
- ...P ?? [],
4788
+ const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((h2) => {
4789
+ var O, U;
4790
+ const c2 = e(h2);
4791
+ let m2, b, A2;
4792
+ "spec" in c2 && typeof c2.spec == "object" ? (m2 = c2.spec, b = c2.prefixTrace, A2 = c2.suffixTrace) : m2 = c2;
4793
+ const p2 = (O = m2.annotations) == null ? void 0 : O[dt], g = (U = m2.annotations) == null ? void 0 : U[ft], w2 = (g ? gt.safeParse(JSON.parse(g)).data : void 0) ?? [], f2 = [
4794
+ ...b ?? [],
4785
4795
  ...w2,
4786
- ...c2 ?? []
4796
+ ...A2 ?? []
4787
4797
  ];
4788
- if (b) {
4789
- const L = { label: b, type: gt, importance: -2 };
4790
- n2.addLabelAsSuffix ? A2.push(L) : A2.splice(0, 0, L);
4791
- }
4792
- const O = [], J = /* @__PURE__ */ new Map();
4793
- for (let L = A2.length - 1; L >= 0; --L) {
4794
- const { type: k2 } = A2[L], se = A2[L].importance ?? 0, N2 = (J.get(k2) ?? 0) + 1;
4795
- J.set(k2, N2);
4796
- const x2 = `${k2}@${N2}`;
4797
- i.set(x2, (i.get(x2) ?? 0) + 1), r.set(
4798
- x2,
4798
+ if (p2 !== void 0) {
4799
+ const F2 = { label: p2, type: yt, importance: -2 };
4800
+ n2.addLabelAsSuffix ? f2.push(F2) : f2.splice(0, 0, F2);
4801
+ }
4802
+ const C2 = [], P = /* @__PURE__ */ new Map();
4803
+ for (let F2 = f2.length - 1; F2 >= 0; --F2) {
4804
+ const { type: D2 } = f2[F2], Y2 = f2[F2].importance ?? 0, V = (P.get(D2) ?? 0) + 1;
4805
+ P.set(D2, V);
4806
+ const R = `${D2}@${V}`;
4807
+ i.set(R, (i.get(R) ?? 0) + 1), r.set(
4808
+ R,
4799
4809
  Math.max(
4800
- r.get(x2) ?? Number.NEGATIVE_INFINITY,
4801
- se - (A2.length - L) * ht
4810
+ r.get(R) ?? Number.NEGATIVE_INFINITY,
4811
+ Y2 - (f2.length - F2) * mt
4802
4812
  )
4803
- ), O.push({ ...A2[L], fullType: x2, occurrenceIndex: N2 });
4813
+ ), C2.push({ ...f2[F2], fullType: R, occurrenceIndex: V });
4804
4814
  }
4805
- return O.reverse(), {
4806
- value: f2,
4807
- spec: h,
4808
- label: b,
4809
- fullTrace: O
4815
+ return C2.reverse(), {
4816
+ value: h2,
4817
+ spec: m2,
4818
+ label: p2,
4819
+ fullTrace: C2
4810
4820
  };
4811
4821
  }), o = [], a = [], l2 = [...r];
4812
- l2.sort(([, f2], [, g]) => g - f2);
4813
- for (const [f2] of l2)
4814
- f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
4815
- const u2 = (f2) => {
4816
- const g = [];
4817
- for (let h = 0; h < s2.length; h++) {
4818
- const P = s2[h], c2 = P.fullTrace.filter((w2) => f2.has(w2.fullType));
4819
- if (c2.length === 0)
4820
- return;
4821
- const b = c2.map((w2) => w2.label), m2 = n2.separator ?? " / ";
4822
- g.push({
4823
- label: b.join(m2),
4824
- value: P.value
4822
+ l2.sort(([, h2], [, c2]) => c2 - h2);
4823
+ for (const [h2] of l2)
4824
+ h2.endsWith("@1") || i.get(h2) === t.length ? o.push(h2) : a.push(h2);
4825
+ const u2 = (h2, c2 = false) => {
4826
+ const m2 = [];
4827
+ for (let b = 0; b < s2.length; b++) {
4828
+ const A2 = s2[b], p2 = A2.fullTrace.filter((f2) => h2.has(f2.fullType));
4829
+ if (p2.length === 0)
4830
+ if (c2)
4831
+ m2.push({
4832
+ label: "Unlabeled",
4833
+ value: A2.value
4834
+ });
4835
+ else return;
4836
+ const g = p2.map((f2) => f2.label), w2 = n2.separator ?? " / ";
4837
+ m2.push({
4838
+ label: g.join(w2),
4839
+ value: A2.value
4825
4840
  });
4826
4841
  }
4827
- return g;
4842
+ return m2;
4828
4843
  };
4829
4844
  if (o.length === 0) {
4830
- if (a.length !== 0) throw new Error("Assertion error.");
4831
- const f2 = u2(new Set(xe));
4832
- if (f2 === void 0) throw new Error("Assertion error.");
4833
- return f2;
4834
- }
4835
- let p2 = 0, v = 0;
4836
- for (; p2 < o.length; ) {
4837
- const f2 = /* @__PURE__ */ new Set();
4838
- n2.includeNativeLabel && f2.add(xe);
4839
- for (let h = 0; h < p2; ++h) f2.add(o[h]);
4840
- f2.add(o[v]);
4841
- const g = u2(f2);
4842
- if (g !== void 0 && new Set(g.map((h) => h.label)).size === t.length) return g;
4843
- v++, v >= o.length && (p2++, v = p2);
4844
- }
4845
- const d = u2(/* @__PURE__ */ new Set([...o, ...a]));
4846
- if (d === void 0) throw new Error("Assertion error.");
4847
- return d;
4848
- }
4849
- const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", M = q + "JsonPartitioned", $ = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", W = ke + "BinaryPartitioned";
4845
+ if (a.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
4846
+ return u2(new Set(xe), true);
4847
+ }
4848
+ let d = 0, v = -1;
4849
+ for (; d < o.length; ) {
4850
+ const h2 = /* @__PURE__ */ new Set();
4851
+ n2.includeNativeLabel && h2.add(xe);
4852
+ for (let m2 = 0; m2 < d; ++m2) h2.add(o[m2]);
4853
+ v >= 0 && h2.add(o[v]);
4854
+ const c2 = u2(h2);
4855
+ if (c2 !== void 0 && new Set(c2.map((m2) => m2.label)).size === t.length) return c2;
4856
+ v++, v >= o.length && (d++, v = d);
4857
+ }
4858
+ return u2(/* @__PURE__ */ new Set([...o, ...a]), true);
4859
+ }
4860
+ const z = "PColumnData/", re = z + "ResourceMap", ie = z + "Partitioned/ResourceMap", W = z + "JsonPartitioned", N = z + "BinaryPartitioned", ke = z + "Partitioned/", se = ke + "JsonPartitioned", G = ke + "BinaryPartitioned";
4850
4861
  const fe = (t) => {
4851
4862
  if (t.endsWith(".index"))
4852
4863
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
@@ -4854,44 +4865,44 @@
4854
4865
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
4855
4866
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
4856
4867
  };
4857
- function mt(t) {
4868
+ function vt(t) {
4858
4869
  if (!t) return;
4859
4870
  const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
4860
4871
  let i = 0;
4861
4872
  switch (e) {
4862
- case ne:
4873
+ case re:
4863
4874
  i = n2.keyLength;
4864
4875
  break;
4865
- case re:
4876
+ case ie:
4866
4877
  i = n2.partitionKeyLength + n2.keyLength;
4867
4878
  break;
4868
- case M:
4869
- case $:
4879
+ case W:
4880
+ case N:
4870
4881
  i = n2.partitionKeyLength;
4871
4882
  break;
4872
- case W:
4873
- case ie:
4883
+ case G:
4884
+ case se:
4874
4885
  i = n2.superPartitionKeyLength + n2.partitionKeyLength;
4875
4886
  break;
4876
4887
  }
4877
4888
  switch (e) {
4878
- case ne:
4879
- case M:
4880
- case $:
4889
+ case re:
4890
+ case W:
4891
+ case N:
4881
4892
  for (let s2 of t.listInputFields()) {
4882
- e === $ && (s2 = fe(s2).baseKey);
4893
+ e === N && (s2 = fe(s2).baseKey);
4883
4894
  const o = [...JSON.parse(s2)];
4884
4895
  r.push(o);
4885
4896
  }
4886
4897
  break;
4887
- case re:
4888
- case W:
4889
4898
  case ie:
4899
+ case G:
4900
+ case se:
4890
4901
  for (const s2 of t.listInputFields()) {
4891
4902
  const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
4892
4903
  if (a !== void 0)
4893
4904
  for (let l2 of a.listInputFields()) {
4894
- e === W && (l2 = fe(l2).baseKey);
4905
+ e === G && (l2 = fe(l2).baseKey);
4895
4906
  const u2 = [...o, ...JSON.parse(l2)];
4896
4907
  r.push(u2);
4897
4908
  }
@@ -4900,7 +4911,7 @@
4900
4911
  }
4901
4912
  return { data: r, keyLength: i };
4902
4913
  }
4903
- function yt(t) {
4914
+ function bt(t) {
4904
4915
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
4905
4916
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
4906
4917
  const { parts: e, partitionKeyLength: n2 } = t, r = [];
@@ -4919,11 +4930,11 @@
4919
4930
  }
4920
4931
  return r.map((i) => Array.from(i.values()));
4921
4932
  }
4922
- function vt(t) {
4933
+ function wt(t) {
4923
4934
  if (t === void 0) return;
4924
- if (j(t))
4925
- return yt(t);
4926
- const e = mt(t);
4935
+ if (F(t))
4936
+ return bt(t);
4937
+ const e = vt(t);
4927
4938
  if (!e) return;
4928
4939
  const { data: n2, keyLength: r } = e, i = [];
4929
4940
  for (let s2 = 0; s2 < r; ++s2)
@@ -4939,13 +4950,13 @@
4939
4950
  function he(t, e = []) {
4940
4951
  if (t === void 0 || !t.getIsReadyOrError()) return;
4941
4952
  const n2 = t.resourceType.name, r = t.getDataAsJson();
4942
- if (e.length > 0 && (n2 === ie || n2 === W))
4953
+ if (e.length > 0 && (n2 === se || n2 === G))
4943
4954
  throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
4944
4955
  switch (n2) {
4945
- case ne:
4946
4956
  case re:
4957
+ case ie:
4947
4958
  throw new Error(`Only data columns are supported, got: ${n2}`);
4948
- case M: {
4959
+ case W: {
4949
4960
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4950
4961
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4951
4962
  const i = [];
@@ -4961,7 +4972,7 @@
4961
4972
  parts: i
4962
4973
  };
4963
4974
  }
4964
- case $: {
4975
+ case N: {
4965
4976
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4966
4977
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4967
4978
  const i = [], s2 = /* @__PURE__ */ new Map();
@@ -4988,15 +4999,15 @@
4988
4999
  parts: i
4989
5000
  };
4990
5001
  }
4991
- case ie: {
5002
+ case se: {
4992
5003
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4993
5004
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
4994
5005
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
4995
5006
  for (const o of t.listInputFields()) {
4996
5007
  const a = t.resolve({ field: o, assertFieldType: "Input" });
4997
5008
  if (a === void 0) return;
4998
- if (a.resourceType.name !== M)
4999
- throw new Error(`Expected ${M} inside ${n2}, but got ${a.resourceType.name}`);
5009
+ if (a.resourceType.name !== W)
5010
+ throw new Error(`Expected ${W} inside ${n2}, but got ${a.resourceType.name}`);
5000
5011
  const l2 = he(a, JSON.parse(o));
5001
5012
  if (l2 === void 0) return;
5002
5013
  if (l2.type !== "JsonPartitioned")
@@ -5009,15 +5020,15 @@
5009
5020
  parts: s2
5010
5021
  };
5011
5022
  }
5012
- case W: {
5023
+ case G: {
5013
5024
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
5014
5025
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
5015
5026
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
5016
5027
  for (const o of t.listInputFields()) {
5017
5028
  const a = t.resolve({ field: o, assertFieldType: "Input" });
5018
5029
  if (a === void 0) return;
5019
- if (a.resourceType.name !== $)
5020
- throw new Error(`Expected ${$} inside ${n2}, but got ${a.resourceType.name}`);
5030
+ if (a.resourceType.name !== N)
5031
+ throw new Error(`Expected ${N} inside ${n2}, but got ${a.resourceType.name}`);
5021
5032
  const l2 = he(a, JSON.parse(o));
5022
5033
  if (l2 === void 0) return;
5023
5034
  if (l2.type !== "BinaryPartitioned")
@@ -5034,15 +5045,15 @@
5034
5045
  throw new Error(`Unknown resource type: ${n2}`);
5035
5046
  }
5036
5047
  }
5037
- function bt(t) {
5048
+ function At(t) {
5038
5049
  if (t !== void 0) {
5039
- if (j(t)) return t;
5040
- if (mn(t)) return hn(t);
5041
- if (t instanceof I) return he(t);
5050
+ if (F(t)) return t;
5051
+ if (pn(t)) return hn(t);
5052
+ if (t instanceof L) return he(t);
5042
5053
  throw new Error(`Unexpected input type: ${typeof t}`);
5043
5054
  }
5044
5055
  }
5045
- function wt(t, e) {
5056
+ function xt(t, e) {
5046
5057
  const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
5047
5058
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5048
5059
  const { partitionKeyLength: s2 } = t;
@@ -5102,7 +5113,7 @@
5102
5113
  }
5103
5114
  }
5104
5115
  }
5105
- class At {
5116
+ class Pt {
5106
5117
  constructor(e) {
5107
5118
  this.columns = e;
5108
5119
  }
@@ -5111,7 +5122,7 @@
5111
5122
  return this.columns.filter((r) => n2(r.spec));
5112
5123
  }
5113
5124
  }
5114
- function xt(t) {
5125
+ function Ct(t) {
5115
5126
  if (t)
5116
5127
  return t.map((e) => ({
5117
5128
  type: `split:${Jn(e.axisId)}`,
@@ -5120,21 +5131,21 @@
5120
5131
  // High importance for split filters in labels
5121
5132
  }));
5122
5133
  }
5123
- function Pt(t) {
5134
+ function St(t) {
5124
5135
  if (t)
5125
5136
  return t.map((e) => [e.axisIdx, e.value]);
5126
5137
  }
5127
- function Ct(t, e) {
5138
+ function _t(t, e) {
5128
5139
  if (!e || e.length === 0) return t;
5129
5140
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5130
5141
  return Le({ id: t, axisFilters: n2 });
5131
5142
  }
5132
- function St(t) {
5143
+ function It(t) {
5133
5144
  if (!t || typeof t != "object") return false;
5134
5145
  const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
5135
5146
  return !!e.domainAnchor || n2 || r;
5136
5147
  }
5137
- function _t(t) {
5148
+ function Lt(t) {
5138
5149
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5139
5150
  return [];
5140
5151
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5145,7 +5156,7 @@
5145
5156
  class ge {
5146
5157
  constructor() {
5147
5158
  T(this, "defaultProviderStore", []);
5148
- T(this, "providers", [new At(this.defaultProviderStore)]);
5159
+ T(this, "providers", [new Pt(this.defaultProviderStore)]);
5149
5160
  T(this, "axisLabelProviders", []);
5150
5161
  }
5151
5162
  addColumnProvider(e) {
@@ -5171,114 +5182,116 @@
5171
5182
  const { anchorCtx: r, labelOps: i, dontWaitAllData: s2 = false, overrideLabelAnnotation: o = false } = n2 ?? {}, a = {
5172
5183
  ...o && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
5173
5184
  ...i ?? {}
5174
- }, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
5175
- for (const d of l2) {
5176
- const f$1 = St(d);
5177
- let g;
5178
- if (f$1) {
5185
+ }, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [], d = /* @__PURE__ */ new Set();
5186
+ for (const c2 of l2) {
5187
+ const m2 = It(c2);
5188
+ let b;
5189
+ if (m2) {
5179
5190
  if (!r)
5180
5191
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5181
- g = Dn(r.anchors, d, n2);
5192
+ b = Dn(r.anchors, c2, n2);
5182
5193
  } else
5183
- g = d;
5184
- const h = /* @__PURE__ */ new Set(), P = [];
5185
- for (const m2 of this.providers) {
5186
- const w2 = m2.selectColumns(g);
5187
- for (const A2 of w2) {
5188
- if (h.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${m2.constructor.name}`);
5189
- h.add(A2.id), P.push(A2);
5194
+ b = c2;
5195
+ const A2 = /* @__PURE__ */ new Set(), p2 = [];
5196
+ for (const f2 of this.providers) {
5197
+ const C2 = f2.selectColumns(b);
5198
+ for (const P of C2) {
5199
+ if (A2.has(P.id))
5200
+ throw new Error(`Duplicate column id ${P.id} in provider ${f2.constructor.name}`);
5201
+ const O = Rn(P.spec);
5202
+ d.has(O) || (A2.add(P.id), d.add(O), p2.push(P));
5190
5203
  }
5191
5204
  }
5192
- if (P.length === 0) continue;
5193
- const c2 = _t(d), b = c2.length > 0;
5194
- for (const m2 of P) {
5195
- if (!f(m2.spec)) continue;
5196
- const w2 = m2.spec;
5197
- if (b) {
5198
- const A2 = bt(m2.data);
5199
- if (!A2) {
5205
+ if (p2.length === 0) continue;
5206
+ const g = Lt(c2), w2 = g.length > 0;
5207
+ for (const f$1 of p2) {
5208
+ if (!f(f$1.spec)) continue;
5209
+ const C2 = f$1.spec;
5210
+ if (w2) {
5211
+ const P = At(f$1.data);
5212
+ if (!P) {
5200
5213
  if (s2) continue;
5201
5214
  return;
5202
5215
  }
5203
- if (!yn(A2))
5204
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${m2.id}`);
5205
- const O = vt(A2), J = c2[c2.length - 1];
5206
- if (J >= A2.partitionKeyLength)
5207
- throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${J}) in column ${w2.name}`);
5208
- const z2 = c2.map((x2) => this.findLabels(m$1(w2.axesSpec[x2]))), F = [], L = (x2, U) => {
5209
- if (U >= c2.length) {
5210
- if (F.push([...x2]), F.length > 1e4)
5216
+ if (!yn(P))
5217
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${f$1.id}`);
5218
+ const O = wt(P), U = g[g.length - 1];
5219
+ if (U >= P.partitionKeyLength)
5220
+ throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${U}) in column ${C2.name}`);
5221
+ const F2 = g.map((S) => this.findLabels(p$1(C2.axesSpec[S]))), D2 = [], Y2 = (S, B) => {
5222
+ if (B >= g.length) {
5223
+ if (D2.push([...S]), D2.length > 1e4)
5211
5224
  throw new Error("Too many key combinations, aborting.");
5212
5225
  return;
5213
5226
  }
5214
- const D = c2[U];
5215
- if (D >= O.length)
5216
- throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${m2.id}`);
5217
- const j2 = O[D];
5218
- if (!j2 || j2.length === 0) {
5219
- F.length = 0;
5227
+ const k2 = g[B];
5228
+ if (k2 >= O.length)
5229
+ throw new Error(`Axis index ${k2} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${f$1.id}`);
5230
+ const K = O[k2];
5231
+ if (!K || K.length === 0) {
5232
+ D2.length = 0;
5220
5233
  return;
5221
5234
  }
5222
- for (const Y2 of j2)
5223
- x2.push(Y2), L(x2, U + 1), x2.pop();
5235
+ for (const X2 of K)
5236
+ S.push(X2), Y2(S, B + 1), S.pop();
5224
5237
  };
5225
- if (L([], 0), F.length === 0)
5238
+ if (Y2([], 0), D2.length === 0)
5226
5239
  continue;
5227
- const k2 = [...w2.axesSpec], se = c2.map((x2) => x2);
5228
- for (let x2 = c2.length - 1; x2 >= 0; x2--)
5229
- k2.splice(c2[x2], 1);
5230
- const N2 = { ...w2, axesSpec: k2 };
5231
- for (const x2 of F) {
5232
- const U = x2.map((D, j2) => {
5233
- const Y2 = se[j2], Ue = m$1(w2.axesSpec[Y2]), oe = z2[j2], Be = (oe == null ? void 0 : oe[D]) ?? String(D);
5234
- return { axisIdx: Y2, axisId: Ue, value: D, label: Be };
5240
+ const V = [...C2.axesSpec], R = g.map((S) => S);
5241
+ for (let S = g.length - 1; S >= 0; S--)
5242
+ V.splice(g[S], 1);
5243
+ const Ue = { ...C2, axesSpec: V };
5244
+ for (const S of D2) {
5245
+ const B = S.map((k2, K) => {
5246
+ const X2 = R[K], Be = p$1(C2.axesSpec[X2]), oe = F2[K], Me = (oe == null ? void 0 : oe[k2]) ?? String(k2);
5247
+ return { axisIdx: X2, axisId: Be, value: k2, label: Me };
5235
5248
  });
5236
5249
  u2.push({
5237
5250
  type: "split",
5238
- originalColumn: m2,
5239
- spec: w2,
5240
- adjustedSpec: N2,
5241
- dataEntries: A2,
5242
- axisFilters: U
5251
+ originalColumn: f$1,
5252
+ spec: C2,
5253
+ adjustedSpec: Ue,
5254
+ dataEntries: P,
5255
+ axisFilters: B
5243
5256
  });
5244
5257
  }
5245
5258
  } else
5246
5259
  u2.push({
5247
5260
  type: "direct",
5248
- originalColumn: m2,
5249
- spec: w2,
5250
- adjustedSpec: w2
5261
+ originalColumn: f$1,
5262
+ spec: C2,
5263
+ adjustedSpec: C2
5251
5264
  });
5252
5265
  }
5253
5266
  }
5254
5267
  if (u2.length === 0) return [];
5255
- const p2 = Re(
5268
+ const v = Re(
5256
5269
  u2,
5257
- (d) => ({
5258
- spec: d.spec,
5259
- suffixTrace: d.type === "split" ? xt(d.axisFilters) : void 0
5270
+ (c2) => ({
5271
+ spec: c2.spec,
5272
+ suffixTrace: c2.type === "split" ? Ct(c2.axisFilters) : void 0
5260
5273
  }),
5261
5274
  a
5262
- ), v = [];
5263
- for (const { value: d, label: f2 } of p2) {
5264
- const { originalColumn: g, spec: h } = d, P = d.type === "split" ? d.axisFilters : void 0, c2 = Pt(P);
5265
- let b;
5266
- r ? b = r.deriveS(h, c2) : b = Ct(g.id, c2);
5267
- let m2 = { ...d.adjustedSpec };
5268
- o && (m2 = {
5269
- ...m2,
5275
+ ), h2 = [];
5276
+ for (const { value: c2, label: m2 } of v) {
5277
+ const { originalColumn: b, spec: A2 } = c2, p2 = c2.type === "split" ? c2.axisFilters : void 0, g = St(p2);
5278
+ let w2;
5279
+ r ? w2 = r.deriveS(A2, g) : w2 = _t(b.id, g);
5280
+ let f2 = { ...c2.adjustedSpec };
5281
+ o && (f2 = {
5282
+ ...f2,
5270
5283
  annotations: {
5271
- ...m2.annotations ?? {},
5272
- "pl7.app/label": f2
5284
+ ...f2.annotations ?? {},
5285
+ "pl7.app/label": m2
5273
5286
  }
5274
- }), v.push({
5275
- id: b,
5276
- spec: m2,
5277
- data: () => d.type === "split" ? gn(wt(d.dataEntries, c2)) : d.originalColumn.data,
5278
- label: f2
5287
+ }), h2.push({
5288
+ id: w2,
5289
+ spec: f2,
5290
+ data: () => c2.type === "split" ? gn(xt(c2.dataEntries, g)) : c2.originalColumn.data,
5291
+ label: m2
5279
5292
  });
5280
5293
  }
5281
- return v;
5294
+ return h2;
5282
5295
  }
5283
5296
  getColumns(e, n2) {
5284
5297
  const r = this.getUniversalEntries(e, {
@@ -5311,9 +5324,9 @@
5311
5324
  return true;
5312
5325
  }
5313
5326
  function Pe(t) {
5314
- return Fn(t, (e) => e instanceof I ? e.handle : mn(e) ? ln(e, (n2) => n2.handle) : e);
5327
+ return Fn(t, (e) => e instanceof L ? e.handle : pn(e) ? ln(e, (n2) => n2.handle) : e);
5315
5328
  }
5316
- class It {
5329
+ class Tt {
5317
5330
  constructor() {
5318
5331
  T(this, "ctx", y());
5319
5332
  }
@@ -5327,15 +5340,15 @@
5327
5340
  const r = typeof e == "function" ? e : Kn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5328
5341
  let s2 = {}, o = false;
5329
5342
  return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? Re(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5330
- ref: vn(a, o),
5343
+ ref: Hn(a, o),
5331
5344
  label: l2
5332
5345
  })) : i.map(({ ref: a, obj: l2 }) => ({
5333
- ref: vn(a, o),
5346
+ ref: Hn(a, o),
5334
5347
  label: s2(l2, a)
5335
5348
  }));
5336
5349
  }
5337
5350
  resolveAnchorCtx(e) {
5338
- if (e instanceof In) return e;
5351
+ if (e instanceof $n) return e;
5339
5352
  const n2 = {};
5340
5353
  for (const [r, i] of Object.entries(e))
5341
5354
  if (Mn(i)) {
@@ -5345,7 +5358,7 @@
5345
5358
  n2[r] = s2;
5346
5359
  } else
5347
5360
  n2[r] = i;
5348
- return new In(n2);
5361
+ return new $n(n2);
5349
5362
  }
5350
5363
  /**
5351
5364
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5419,7 +5432,7 @@
5419
5432
  ref: n2.ref,
5420
5433
  obj: {
5421
5434
  ...n2.obj,
5422
- data: new I(n2.obj.data, [n2.ref.blockId, n2.ref.name])
5435
+ data: new L(n2.obj.data, [n2.ref.blockId, n2.ref.name])
5423
5436
  }
5424
5437
  }))
5425
5438
  };
@@ -5438,9 +5451,9 @@
5438
5451
  ref: n2.ref,
5439
5452
  obj: {
5440
5453
  ...n2.obj,
5441
- data: qn(
5454
+ data: Wn(
5442
5455
  n2.obj.data,
5443
- (r) => new I(r, [n2.ref.blockId, n2.ref.name])
5456
+ (r) => new L(r, [n2.ref.blockId, n2.ref.name])
5444
5457
  )
5445
5458
  }
5446
5459
  }))
@@ -5469,7 +5482,7 @@
5469
5482
  if (n2)
5470
5483
  return Fn(
5471
5484
  n2,
5472
- (i) => new I(i, [e.blockId, e.name])
5485
+ (i) => new L(i, [e.blockId, e.name])
5473
5486
  );
5474
5487
  }
5475
5488
  /**
@@ -5530,7 +5543,7 @@
5530
5543
  findLabels(e) {
5531
5544
  const n2 = this.getData();
5532
5545
  for (const r of n2.entries) {
5533
- if (!Z$1(r.obj)) continue;
5546
+ if (!Z(r.obj)) continue;
5534
5547
  const i = r.obj.spec;
5535
5548
  if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && le(e.domain, i.axesSpec[0].domain)) {
5536
5549
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -5582,13 +5595,13 @@
5582
5595
  return r;
5583
5596
  }
5584
5597
  }
5585
- class X {
5598
+ class Q {
5586
5599
  constructor() {
5587
5600
  T(this, "ctx");
5588
5601
  T(this, "args");
5589
5602
  T(this, "uiState");
5590
5603
  T(this, "_activeArgsCache");
5591
- T(this, "resultPool", new It());
5604
+ T(this, "resultPool", new Tt());
5592
5605
  this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5593
5606
  }
5594
5607
  /**
@@ -5607,7 +5620,7 @@
5607
5620
  getNamedAccessor(e) {
5608
5621
  return pe(
5609
5622
  this.ctx.getAccessorHandleByName(e),
5610
- (n2) => new I(n2, [e])
5623
+ (n2) => new L(n2, [e])
5611
5624
  );
5612
5625
  }
5613
5626
  get prerun() {
@@ -5626,7 +5639,7 @@
5626
5639
  }
5627
5640
  verifyInlineAndExplicitColumnsSupport(e) {
5628
5641
  var i;
5629
- const n2 = e.some((s2) => !(s2.data instanceof I) || mn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5642
+ const n2 = e.some((s2) => !(s2.data instanceof L) || pn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5630
5643
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5631
5644
  }
5632
5645
  // TODO remove all non-PColumn fields
@@ -5656,26 +5669,26 @@
5656
5669
  return this.ctx.getCurrentUnstableMarker();
5657
5670
  }
5658
5671
  }
5659
- const G = "1.30.21";
5660
- function Lt(t) {
5672
+ const H = "1.30.24";
5673
+ function Et(t) {
5661
5674
  return t.__renderLambda === true;
5662
5675
  }
5663
5676
  function ue(t) {
5664
5677
  if (t !== void 0)
5665
- return Lt(t) ? t.handle : t;
5678
+ return Et(t) ? t.handle : t;
5666
5679
  }
5667
- class _ {
5680
+ class I {
5668
5681
  constructor(e, n2, r, i, s2, o, a, l2) {
5669
5682
  this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
5670
5683
  }
5671
5684
  static create(e = "Heavy") {
5672
- return new _(
5685
+ return new I(
5673
5686
  e,
5674
5687
  void 0,
5675
5688
  {},
5676
5689
  {},
5677
- Z(true),
5678
- Z([]),
5690
+ ee(true),
5691
+ ee([]),
5679
5692
  void 0,
5680
5693
  void 0
5681
5694
  );
@@ -5683,7 +5696,7 @@
5683
5696
  output(e, n2, r = {}) {
5684
5697
  if (typeof n2 == "function") {
5685
5698
  const i = `output#${e}`;
5686
- return B(i, () => n2(new X())), new _(
5699
+ return M(i, () => n2(new Q())), new I(
5687
5700
  this._renderingMode,
5688
5701
  this._initialArgs,
5689
5702
  this._initialUiState,
@@ -5701,7 +5714,7 @@
5701
5714
  this._enrichmentTargets
5702
5715
  );
5703
5716
  } else
5704
- return new _(
5717
+ return new I(
5705
5718
  this._renderingMode,
5706
5719
  this._initialArgs,
5707
5720
  this._initialUiState,
@@ -5720,7 +5733,7 @@
5720
5733
  return this.output(e, n2, { retentive: true });
5721
5734
  }
5722
5735
  argsValid(e) {
5723
- return typeof e == "function" ? (B("inputsValid", () => e(new X())), new _(
5736
+ return typeof e == "function" ? (M("inputsValid", () => e(new Q())), new I(
5724
5737
  this._renderingMode,
5725
5738
  this._initialArgs,
5726
5739
  this._initialUiState,
@@ -5732,7 +5745,7 @@
5732
5745
  this._sections,
5733
5746
  this._title,
5734
5747
  this._enrichmentTargets
5735
- )) : new _(
5748
+ )) : new I(
5736
5749
  this._renderingMode,
5737
5750
  this._initialArgs,
5738
5751
  this._initialUiState,
@@ -5744,7 +5757,7 @@
5744
5757
  );
5745
5758
  }
5746
5759
  sections(e) {
5747
- return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (B("sections", () => e(new X())), new _(
5760
+ return Array.isArray(e) ? this.sections(ee(e)) : typeof e == "function" ? (M("sections", () => e(new Q())), new I(
5748
5761
  this._renderingMode,
5749
5762
  this._initialArgs,
5750
5763
  this._initialUiState,
@@ -5753,7 +5766,7 @@
5753
5766
  { __renderLambda: true, handle: "sections" },
5754
5767
  this._title,
5755
5768
  this._enrichmentTargets
5756
- )) : new _(
5769
+ )) : new I(
5757
5770
  this._renderingMode,
5758
5771
  this._initialArgs,
5759
5772
  this._initialUiState,
@@ -5766,7 +5779,7 @@
5766
5779
  }
5767
5780
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5768
5781
  title(e) {
5769
- return B("title", () => e(new X())), new _(
5782
+ return M("title", () => e(new Q())), new I(
5770
5783
  this._renderingMode,
5771
5784
  this._initialArgs,
5772
5785
  this._initialUiState,
@@ -5782,7 +5795,7 @@
5782
5795
  * @deprecated use {@link withArgs}
5783
5796
  * */
5784
5797
  initialArgs(e) {
5785
- return new _(
5798
+ return new I(
5786
5799
  this._renderingMode,
5787
5800
  e,
5788
5801
  this._initialUiState,
@@ -5795,7 +5808,7 @@
5795
5808
  }
5796
5809
  /** Sets initial args for the block, this value must be specified. */
5797
5810
  withArgs(e) {
5798
- return new _(
5811
+ return new I(
5799
5812
  this._renderingMode,
5800
5813
  e,
5801
5814
  this._initialUiState,
@@ -5808,7 +5821,7 @@
5808
5821
  }
5809
5822
  /** Defines type and sets initial value for block UiState. */
5810
5823
  withUiState(e) {
5811
- return new _(
5824
+ return new I(
5812
5825
  this._renderingMode,
5813
5826
  this._initialArgs,
5814
5827
  e,
@@ -5824,7 +5837,7 @@
5824
5837
  * Influences dependency graph construction.
5825
5838
  */
5826
5839
  enriches(e) {
5827
- return B("enrichmentTargets", e), new _(
5840
+ return M("enrichmentTargets", e), new I(
5828
5841
  this._renderingMode,
5829
5842
  this._initialArgs,
5830
5843
  this._initialUiState,
@@ -5842,7 +5855,7 @@
5842
5855
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
5843
5856
  const e = {
5844
5857
  v3: {
5845
- sdkVersion: G,
5858
+ sdkVersion: H,
5846
5859
  renderingMode: this._renderingMode,
5847
5860
  initialArgs: this._initialArgs,
5848
5861
  initialUiState: this._initialUiState,
@@ -5853,7 +5866,7 @@
5853
5866
  enrichmentTargets: this._enrichmentTargets
5854
5867
  },
5855
5868
  // fields below are added to allow previous desktop versions read generated configs
5856
- sdkVersion: G,
5869
+ sdkVersion: H,
5857
5870
  renderingMode: this._renderingMode,
5858
5871
  initialArgs: this._initialArgs,
5859
5872
  inputsValid: ue(this._inputsValid),
@@ -5862,13 +5875,13 @@
5862
5875
  Object.entries(this._outputs).map(([n2, r]) => [n2, ue(r)])
5863
5876
  )
5864
5877
  };
5865
- return st() ? Ee({ sdkVersion: G }) : { config: e };
5878
+ return at() ? Ee({ sdkVersion: H }) : { config: e };
5866
5879
  }
5867
5880
  }
5868
- function Tt(t) {
5881
+ function Ft(t) {
5869
5882
  return JSON.parse(t);
5870
5883
  }
5871
- function Et(t) {
5884
+ function Ot(t) {
5872
5885
  return t.axesSpec.length === 1 && t.name === "pl7.app/label";
5873
5886
  }
5874
5887
  function Ve(t) {
@@ -5881,42 +5894,42 @@
5881
5894
  function Ke(t, e) {
5882
5895
  const n2 = [], r = [];
5883
5896
  for (const a of t)
5884
- Et(a.spec) ? n2.push(a) : r.push(a);
5897
+ Ot(a.spec) ? n2.push(a) : r.push(a);
5885
5898
  const i = [];
5886
5899
  for (const a of r)
5887
5900
  for (const l2 of a.spec.axesSpec) {
5888
- const u2 = m$1(l2);
5889
- i.some((p2) => X$1(p2, u2)) || i.push(u2);
5901
+ const u2 = p$1(l2);
5902
+ i.some((d) => X(d, u2)) || i.push(u2);
5890
5903
  }
5891
5904
  for (const a of n2) {
5892
- const l2 = m$1(a.spec.axesSpec[0]), u2 = i.findIndex((p2) => X$1(p2, l2));
5905
+ const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((d) => X(d, l2));
5893
5906
  u2 !== -1 && i.splice(u2, 1);
5894
5907
  }
5895
5908
  const s2 = (a, l2) => {
5896
5909
  let u2 = a.toString();
5897
5910
  if (l2)
5898
- for (const p2 in l2)
5899
- u2 += p2, u2 += l2[p2];
5911
+ for (const d in l2)
5912
+ u2 += d, u2 += l2[d];
5900
5913
  return u2;
5901
5914
  }, o = [];
5902
5915
  for (const a of e) {
5903
- const l2 = a.spec.axesSpec[0], u2 = m$1(l2), p2 = i.findIndex((v) => X$1(v, u2));
5904
- if (p2 !== -1) {
5905
- const v = i[p2], d = Object.keys(v.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
5906
- d > f2 ? o.push({
5916
+ const l2 = a.spec.axesSpec[0], u2 = p$1(l2), d = i.findIndex((v) => X(v, u2));
5917
+ if (d !== -1) {
5918
+ const v = i[d], h2 = Object.keys(v.domain ?? {}).length, c2 = Object.keys(l2.domain ?? {}).length;
5919
+ h2 > c2 ? o.push({
5907
5920
  id: s2(a.id, v.domain),
5908
5921
  spec: {
5909
5922
  ...a.spec,
5910
5923
  axesSpec: [{ ...v, annotations: l2.annotations }]
5911
5924
  },
5912
5925
  data: a.data
5913
- }) : o.push(a), i.splice(p2, 1);
5926
+ }) : o.push(a), i.splice(d, 1);
5914
5927
  }
5915
5928
  }
5916
5929
  return o;
5917
5930
  }
5918
5931
  function $e(t) {
5919
- const e = (i) => Array.isArray(i), n2 = (i) => i instanceof I, r = (i) => typeof i == "object" && "type" in i;
5932
+ const e = (i) => Array.isArray(i), n2 = (i) => i instanceof L, r = (i) => typeof i == "object" && "type" in i;
5920
5933
  return t.map((i) => i.data).every((i) => {
5921
5934
  if (e(i))
5922
5935
  return true;
@@ -5956,56 +5969,56 @@
5956
5969
  sorting: i
5957
5970
  };
5958
5971
  }
5959
- function Cn(t, e, n2, r) {
5960
- var u2, p2;
5972
+ function _n(t, e, n2, r) {
5973
+ var u2, d;
5961
5974
  Array.isArray(r) && (r = { filters: r });
5962
- const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((p2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : p2.sorting) ?? [], a = Ve(t.resultPool);
5975
+ const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Ve(t.resultPool);
5963
5976
  if (!a) return;
5964
- const l2 = Ke(e.map(Cn$1), a);
5977
+ const l2 = Ke(e.map(Cn), a);
5965
5978
  if ($e([...e, ...l2]))
5966
5979
  return t.createPTable(
5967
5980
  Je(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
5968
5981
  );
5969
5982
  }
5970
- function Ft(t) {
5983
+ function Dt(t) {
5971
5984
  var e;
5972
5985
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
5973
5986
  }
5974
- function Sn(t, e, n2, r, i) {
5975
- var h, P;
5976
- const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((h = r == null ? void 0 : r.pTableParams) == null ? void 0 : h.filters) ?? []], a = ((P = r == null ? void 0 : r.pTableParams) == null ? void 0 : P.sorting) ?? [], l2 = e.find((c2) => n2(c2.spec));
5987
+ function In(t, e, n2, r, i) {
5988
+ var b, A2;
5989
+ const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.filters) ?? []], a = ((A2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : A2.sorting) ?? [], l2 = e.find((p2) => n2(p2.spec));
5977
5990
  if (!l2) return;
5978
5991
  const u2 = Ve(t.resultPool);
5979
5992
  if (!u2) return;
5980
- const p2 = new Set((() => {
5981
- var b, m2;
5993
+ const d = new Set((() => {
5994
+ var g, w2;
5982
5995
  if (s2 === "inner") return [];
5983
- const c2 = (m2 = (b = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : b.hiddenColIds) == null ? void 0 : m2.map(Tt).filter((w2) => w2.type === "column").map((w2) => w2.id);
5984
- return c2 || e.filter((w2) => Ft(w2.spec)).map((w2) => w2.id);
5996
+ const p2 = (w2 = (g = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : g.hiddenColIds) == null ? void 0 : w2.map(Ft).filter((f2) => f2.type === "column").map((f2) => f2.id);
5997
+ return p2 || e.filter((f2) => Dt(f2.spec)).map((f2) => f2.id);
5985
5998
  })());
5986
- p2.delete(l2.id), [...o.map((c2) => c2.column), ...a.map((c2) => c2.column)].filter((c2) => c2.type === "column").map((c2) => p2.delete(c2.id));
5987
- const v = e.filter((c2) => !p2.has(c2.id)), d = Ke(v.map(Cn$1), u2), f2 = [
5988
- ...l2.spec.axesSpec.map((c2) => ({
5999
+ d.delete(l2.id), [...o.map((p2) => p2.column), ...a.map((p2) => p2.column)].filter((p2) => p2.type === "column").map((p2) => d.delete(p2.id));
6000
+ const v = e.filter((p2) => !d.has(p2.id)), h2 = Ke(v.map(Cn), u2), c2 = [
6001
+ ...l2.spec.axesSpec.map((p2) => ({
5989
6002
  type: "axis",
5990
- id: m$1(c2),
5991
- spec: c2
6003
+ id: p$1(p2),
6004
+ spec: p2
5992
6005
  })),
5993
- ...[...e, ...d].map((c2) => ({
6006
+ ...[...e, ...h2].map((p2) => ({
5994
6007
  type: "column",
5995
- id: c2.id,
5996
- spec: c2.spec
6008
+ id: p2.id,
6009
+ spec: p2.spec
5997
6010
  }))
5998
6011
  ];
5999
- if (!$e([...v, ...d])) return;
6000
- const g = t.createPTable(
6001
- Je(e, d, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
6012
+ if (!$e([...v, ...h2])) return;
6013
+ const m2 = t.createPTable(
6014
+ Je(e, h2, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
6002
6015
  );
6003
6016
  return {
6004
- tableSpec: f2,
6005
- tableHandle: g
6017
+ tableSpec: c2,
6018
+ tableHandle: m2
6006
6019
  };
6007
6020
  }
6008
- const ImportFileHandleSchema = z$1.string().optional().refine(
6021
+ const ImportFileHandleSchema = z$2.string().optional().refine(
6009
6022
  (_a) => true
6010
6023
  );
6011
6024
  function* range(from, to, step = 1) {
@@ -6023,12 +6036,12 @@
6023
6036
  function times(n2, cb) {
6024
6037
  return toList(range(0, n2)).map(cb);
6025
6038
  }
6026
- const $BlockArgs = z$1.object({
6027
- tableNumRows: z$1.number().default(100),
6028
- numbers: z$1.array(z$1.coerce.number()),
6029
- handles: z$1.array(ImportFileHandleSchema)
6039
+ const $BlockArgs = z$2.object({
6040
+ tableNumRows: z$2.number().default(100),
6041
+ numbers: z$2.array(z$2.coerce.number()),
6042
+ handles: z$2.array(ImportFileHandleSchema)
6030
6043
  });
6031
- const platforma = _.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
6044
+ const platforma = I.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
6032
6045
  if (ctx.args.numbers.length === 5) {
6033
6046
  throw new Error("argsValid: test error");
6034
6047
  }
@@ -6051,7 +6064,7 @@
6051
6064
  val: v.toString()
6052
6065
  };
6053
6066
  });
6054
- return Cn(
6067
+ return _n(
6055
6068
  ctx,
6056
6069
  [
6057
6070
  {
@@ -6104,7 +6117,7 @@
6104
6117
  val: v.toString()
6105
6118
  };
6106
6119
  });
6107
- return Sn(
6120
+ return In(
6108
6121
  ctx,
6109
6122
  [
6110
6123
  {