@milaboratories/milaboratories.pool-explorer.model 1.0.37 → 1.0.39

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
@@ -35,7 +35,7 @@
35
35
  }, "");
36
36
  return `{${values}}`;
37
37
  };
38
- const Le = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
38
+ const De = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
39
39
  var util;
40
40
  (function(util2) {
41
41
  util2.assertEqual = (val) => val;
@@ -87,7 +87,7 @@
87
87
  return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
88
88
  }
89
89
  util2.joinValues = joinValues;
90
- util2.jsonStringifyReplacer = (_2, value) => {
90
+ util2.jsonStringifyReplacer = (_, value) => {
91
91
  if (typeof value === "bigint") {
92
92
  return value.toString();
93
93
  }
@@ -3105,29 +3105,29 @@
3105
3105
  const params = { errorMap: ctx.common.contextualErrorMap };
3106
3106
  const fn = ctx.data;
3107
3107
  if (this._def.returns instanceof ZodPromise) {
3108
- const me = this;
3108
+ const me2 = this;
3109
3109
  return OK(async function(...args) {
3110
3110
  const error = new ZodError([]);
3111
- const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
3111
+ const parsedArgs = await me2._def.args.parseAsync(args, params).catch((e) => {
3112
3112
  error.addIssue(makeArgsIssue(args, e));
3113
3113
  throw error;
3114
3114
  });
3115
3115
  const result = await Reflect.apply(fn, this, parsedArgs);
3116
- const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
3116
+ const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e) => {
3117
3117
  error.addIssue(makeReturnsIssue(result, e));
3118
3118
  throw error;
3119
3119
  });
3120
3120
  return parsedReturns;
3121
3121
  });
3122
3122
  } else {
3123
- const me = this;
3123
+ const me2 = this;
3124
3124
  return OK(function(...args) {
3125
- const parsedArgs = me._def.args.safeParse(args, params);
3125
+ const parsedArgs = me2._def.args.safeParse(args, params);
3126
3126
  if (!parsedArgs.success) {
3127
3127
  throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
3128
3128
  }
3129
3129
  const result = Reflect.apply(fn, this, parsedArgs.data);
3130
- const parsedReturns = me._def.returns.safeParse(result, params);
3130
+ const parsedReturns = me2._def.returns.safeParse(result, params);
3131
3131
  if (!parsedReturns.success) {
3132
3132
  throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
3133
3133
  }
@@ -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$1(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$1(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4021
4021
  }
4022
4022
  function hn(n2) {
4023
4023
  switch (n2.type) {
@@ -4081,27 +4081,30 @@
4081
4081
  }
4082
4082
  }
4083
4083
  }
4084
- function m$1(n2) {
4084
+ function p$1(n2) {
4085
4085
  const { type: e, name: t, domain: r } = n2;
4086
4086
  return { type: e, name: t, ...r && { domain: r } };
4087
4087
  }
4088
+ function C(n2) {
4089
+ return n2.map(p$1);
4090
+ }
4088
4091
  function Jn(n2) {
4089
- return Le(m$1(n2));
4092
+ return De(p$1(n2));
4090
4093
  }
4091
- function z(n2, e) {
4094
+ function z$1(n2, e) {
4092
4095
  if (n2 === void 0) return e === void 0;
4093
4096
  if (e === void 0) return true;
4094
4097
  for (const t in e)
4095
4098
  if (n2[t] !== e[t]) return false;
4096
4099
  return true;
4097
4100
  }
4098
- function X$1(n2, e) {
4099
- return n2.name === e.name && z(n2.domain, e.domain);
4101
+ function X(n2, e) {
4102
+ return n2.name === e.name && z$1(n2.domain, e.domain);
4100
4103
  }
4101
4104
  function On(n2, e) {
4102
- return { ...n2, src: y$1(n2.src, e) };
4105
+ return { ...n2, src: h(n2.src, e) };
4103
4106
  }
4104
- function y$1(n2, e) {
4107
+ function h(n2, e) {
4105
4108
  switch (n2.type) {
4106
4109
  case "column":
4107
4110
  return {
@@ -4121,28 +4124,28 @@
4121
4124
  case "full":
4122
4125
  return {
4123
4126
  type: n2.type,
4124
- entries: n2.entries.map((t) => y$1(t, e))
4127
+ entries: n2.entries.map((t) => h(t, e))
4125
4128
  };
4126
4129
  case "outer":
4127
4130
  return {
4128
4131
  type: "outer",
4129
- primary: y$1(n2.primary, e),
4130
- secondary: n2.secondary.map((t) => y$1(t, e))
4132
+ primary: h(n2.primary, e),
4133
+ secondary: n2.secondary.map((t) => h(t, e))
4131
4134
  };
4132
4135
  default:
4133
4136
  w(n2);
4134
4137
  }
4135
4138
  }
4136
4139
  function G$1(n2) {
4137
- return Le(n2);
4140
+ return De(n2);
4138
4141
  }
4139
4142
  function x(n2) {
4140
- return Le(m$1(n2));
4143
+ return De(p$1(n2));
4141
4144
  }
4142
4145
  function A(n2, e) {
4143
4146
  return JSON.stringify([n2, e]);
4144
4147
  }
4145
- class In {
4148
+ class $n {
4146
4149
  /**
4147
4150
  * Creates a new anchor context from a set of anchor column specifications
4148
4151
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -4204,7 +4207,7 @@
4204
4207
  }
4205
4208
  if (r.axes = e.axesSpec.map((a) => {
4206
4209
  const i = x(a), u2 = this.axes.get(i);
4207
- return u2 === void 0 ? m$1(a) : u2;
4210
+ return u2 === void 0 ? p$1(a) : u2;
4208
4211
  }), !t || t.length === 0)
4209
4212
  return r;
4210
4213
  const s2 = [];
@@ -4263,9 +4266,9 @@
4263
4266
  }
4264
4267
  r.domain = s2;
4265
4268
  }
4266
- return r.axes && (r.axes = r.axes.map((s2) => Q(n2, s2))), r;
4269
+ return r.axes && (r.axes = r.axes.map((s2) => Q$1(n2, s2))), r;
4267
4270
  }
4268
- function Q(n2, e) {
4271
+ function Q$1(n2, e) {
4269
4272
  if (!Y(e))
4270
4273
  return e;
4271
4274
  const t = e.anchor, r = n2[t];
@@ -4283,7 +4286,7 @@
4283
4286
  throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
4284
4287
  return o[0];
4285
4288
  } else if ("id" in e) {
4286
- const o = r.axesSpec.filter((s2) => X$1(e.id, m$1(s2)));
4289
+ const o = r.axesSpec.filter((s2) => X(e.id, p$1(s2)));
4287
4290
  if (o.length > 1)
4288
4291
  throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4289
4292
  if (o.length === 0)
@@ -4295,14 +4298,14 @@
4295
4298
  function Y(n2) {
4296
4299
  return typeof n2 == "object" && "anchor" in n2;
4297
4300
  }
4298
- function f(n2) {
4301
+ function f$1(n2) {
4299
4302
  return n2.kind === "PColumn";
4300
4303
  }
4301
- function Z$1(n2) {
4302
- return f(n2.spec);
4304
+ function Z(n2) {
4305
+ return f$1(n2.spec);
4303
4306
  }
4304
4307
  function jn(n2) {
4305
- if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4308
+ if (!Z(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4306
4309
  return n2;
4307
4310
  }
4308
4311
  function Fn(n2, e) {
@@ -4371,7 +4374,7 @@
4371
4374
  return false;
4372
4375
  }
4373
4376
  if (e.axes !== void 0) {
4374
- const t = n2.axesSpec.map(m$1);
4377
+ const t = n2.axesSpec.map(p$1);
4375
4378
  if (e.partialAxesMatch) {
4376
4379
  for (const r of e.axes)
4377
4380
  if (!t.some((o) => k(r, o)))
@@ -4401,20 +4404,27 @@
4401
4404
  return true;
4402
4405
  }
4403
4406
  function Kn(n2) {
4404
- return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
4407
+ return Array.isArray(n2) ? (e) => n2.some((t) => f$1(e) && N(e, t)) : (e) => f$1(e) && N(e, n2);
4408
+ }
4409
+ function Rn(n2) {
4410
+ const e = {
4411
+ kind: n2.kind,
4412
+ name: n2.name
4413
+ };
4414
+ return n2.domain !== void 0 && (e.domain = n2.domain), f$1(n2) && (e.axesSpec = C(n2.axesSpec)), De(e);
4405
4415
  }
4406
- z$1.object({
4407
- __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4408
- blockId: z$1.string().describe("Upstream block id"),
4409
- name: z$1.string().describe("Name of the output provided to the upstream block's output context"),
4410
- 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")
4416
+ z$2.object({
4417
+ __isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4418
+ blockId: z$2.string().describe("Upstream block id"),
4419
+ name: z$2.string().describe("Name of the output provided to the upstream block's output context"),
4420
+ 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")
4411
4421
  }).describe(
4412
4422
  "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."
4413
4423
  ).readonly();
4414
4424
  function Mn(n2) {
4415
4425
  return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
4416
4426
  }
4417
- function vn(n2, e = true) {
4427
+ function Hn(n2, e = true) {
4418
4428
  if (e)
4419
4429
  return {
4420
4430
  ...n2,
@@ -4425,11 +4435,11 @@
4425
4435
  return r;
4426
4436
  }
4427
4437
  }
4428
- function qn(n2, e) {
4438
+ function Wn(n2, e) {
4429
4439
  return n2.ok ? { ok: true, value: e(n2.value) } : n2;
4430
4440
  }
4431
4441
  const sn = 24;
4432
- z$1.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4442
+ z$2.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4433
4443
  var stringify = { exports: {} };
4434
4444
  (function(module2, exports3) {
4435
4445
  exports3 = module2.exports = stringify2;
@@ -4454,82 +4464,82 @@
4454
4464
  };
4455
4465
  }
4456
4466
  })(stringify, stringify.exports);
4457
- const l = z$1.object({
4458
- type: z$1.literal("PlError"),
4459
- name: z$1.string(),
4460
- message: z$1.string(),
4467
+ const l = z$2.object({
4468
+ type: z$2.literal("PlError"),
4469
+ name: z$2.string(),
4470
+ message: z$2.string(),
4461
4471
  /** The message with all details needed for SDK developers. */
4462
- fullMessage: z$1.string().optional(),
4463
- stack: z$1.string().optional()
4472
+ fullMessage: z$2.string().optional(),
4473
+ stack: z$2.string().optional()
4464
4474
  }), c = l.extend({
4465
- cause: z$1.lazy(() => s).optional(),
4466
- errors: z$1.lazy(() => s.array()).optional()
4467
- }), m = z$1.object({
4468
- type: z$1.literal("StandardError"),
4469
- name: z$1.string(),
4470
- message: z$1.string(),
4471
- stack: z$1.string().optional()
4475
+ cause: z$2.lazy(() => s).optional(),
4476
+ errors: z$2.lazy(() => s.array()).optional()
4477
+ }), m = z$2.object({
4478
+ type: z$2.literal("StandardError"),
4479
+ name: z$2.string(),
4480
+ message: z$2.string(),
4481
+ stack: z$2.string().optional()
4472
4482
  }), p = m.extend({
4473
- cause: z$1.lazy(() => s).optional(),
4474
- errors: z$1.lazy(() => s.array()).optional()
4475
- }), s = z$1.union([p, c]);
4476
- const u = z$1.object({
4477
- name: z$1.string(),
4478
- message: z$1.string(),
4479
- fullMessage: z$1.string().optional(),
4480
- stack: z$1.string().optional()
4483
+ cause: z$2.lazy(() => s).optional(),
4484
+ errors: z$2.lazy(() => s.array()).optional()
4485
+ }), s = z$2.union([p, c]);
4486
+ const u = z$2.object({
4487
+ name: z$2.string(),
4488
+ message: z$2.string(),
4489
+ fullMessage: z$2.string().optional(),
4490
+ stack: z$2.string().optional()
4481
4491
  }), n = u.extend({
4482
- cause: z$1.lazy(() => n).optional(),
4483
- errors: z$1.lazy(() => n.array()).optional()
4492
+ cause: z$2.lazy(() => n).optional(),
4493
+ errors: z$2.lazy(() => n.array()).optional()
4484
4494
  });
4485
- var Me = Object.defineProperty;
4486
- var We = (t, e, n2) => e in t ? Me(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4487
- var T = (t, e, n2) => We(t, typeof e != "symbol" ? e + "" : e, n2);
4488
- function Z(t) {
4495
+ var ze = Object.defineProperty;
4496
+ var Ye = (t, e, n2) => e in t ? ze(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4497
+ var F = (t, e, n2) => Ye(t, typeof e != "symbol" ? e + "" : e, n2);
4498
+ function ne(t) {
4489
4499
  return { type: "Immediate", value: t };
4490
4500
  }
4491
- function st() {
4501
+ function ct() {
4492
4502
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4493
4503
  }
4494
- function Ee(t) {
4504
+ function Oe(t) {
4495
4505
  if (t && typeof globalThis.getPlatforma == "function")
4496
4506
  return globalThis.getPlatforma(t);
4497
4507
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4498
4508
  throw new Error("Can't get platforma instance.");
4499
4509
  }
4500
- function ot() {
4510
+ function dt() {
4501
4511
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4502
4512
  }
4503
- function y() {
4513
+ function f() {
4504
4514
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4505
4515
  throw new Error("Not in config rendering context");
4506
4516
  }
4507
- function B(t, e) {
4508
- const n2 = ot();
4517
+ function G(t, e) {
4518
+ const n2 = dt();
4509
4519
  if (n2 === void 0) return false;
4510
4520
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4511
4521
  return n2.callbackRegistry[t] = e, true;
4512
4522
  }
4513
- const ae = /* @__PURE__ */ new Map();
4514
- function at(t, e) {
4515
- t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
4516
- for (const r of ae.get(t))
4523
+ const ue = /* @__PURE__ */ new Map();
4524
+ function pt(t, e) {
4525
+ t in f().callbackRegistry || (f().callbackRegistry[t] = (n2) => {
4526
+ for (const r of ue.get(t))
4517
4527
  r(n2);
4518
- }, ae.set(t, [])), ae.get(t).push(e);
4528
+ }, ue.set(t, [])), ue.get(t).push(e);
4519
4529
  }
4520
- class S {
4530
+ class I {
4521
4531
  constructor(e, n2 = (r) => r) {
4522
- T(this, "isResolved", false);
4523
- T(this, "resolvedValue");
4524
- this.handle = e, this.postProcess = n2, at(e, (r) => {
4532
+ F(this, "isResolved", false);
4533
+ F(this, "resolvedValue");
4534
+ this.handle = e, this.postProcess = n2, pt(e, (r) => {
4525
4535
  this.resolvedValue = n2(r), this.isResolved = true;
4526
4536
  });
4527
4537
  }
4528
4538
  map(e) {
4529
- return new S(this.handle, (n2) => e(this.postProcess(n2)));
4539
+ return new I(this.handle, (n2) => e(this.postProcess(n2)));
4530
4540
  }
4531
4541
  mapDefined(e) {
4532
- return new S(this.handle, (n2) => {
4542
+ return new I(this.handle, (n2) => {
4533
4543
  const r = this.postProcess(n2);
4534
4544
  return r ? e(r) : void 0;
4535
4545
  });
@@ -4541,7 +4551,7 @@
4541
4551
  function pe(t, e) {
4542
4552
  return t === void 0 ? void 0 : e(t);
4543
4553
  }
4544
- class I {
4554
+ class E {
4545
4555
  constructor(e, n2) {
4546
4556
  this.handle = e, this.resolvePath = n2;
4547
4557
  }
@@ -4581,46 +4591,46 @@
4581
4591
  ...n2.map((i) => typeof i == "string" ? i : i.field)
4582
4592
  ];
4583
4593
  return pe(
4584
- y().resolveWithCommon(this.handle, e, ...n2),
4585
- (i) => new I(i, r)
4594
+ f().resolveWithCommon(this.handle, e, ...n2),
4595
+ (i) => new E(i, r)
4586
4596
  );
4587
4597
  }
4588
4598
  get resourceType() {
4589
- return y().getResourceType(this.handle);
4599
+ return f().getResourceType(this.handle);
4590
4600
  }
4591
4601
  getInputsLocked() {
4592
- return y().getInputsLocked(this.handle);
4602
+ return f().getInputsLocked(this.handle);
4593
4603
  }
4594
4604
  getOutputsLocked() {
4595
- return y().getOutputsLocked(this.handle);
4605
+ return f().getOutputsLocked(this.handle);
4596
4606
  }
4597
4607
  getIsReadyOrError() {
4598
- return y().getIsReadyOrError(this.handle);
4608
+ return f().getIsReadyOrError(this.handle);
4599
4609
  }
4600
4610
  getIsFinal() {
4601
- return y().getIsFinal(this.handle);
4611
+ return f().getIsFinal(this.handle);
4602
4612
  }
4603
4613
  getError() {
4604
4614
  const e = [...this.resolvePath, "error"];
4605
4615
  return pe(
4606
- y().getError(this.handle),
4607
- (n2) => new I(n2, e)
4616
+ f().getError(this.handle),
4617
+ (n2) => new E(n2, e)
4608
4618
  );
4609
4619
  }
4610
4620
  listInputFields() {
4611
- return y().listInputFields(this.handle);
4621
+ return f().listInputFields(this.handle);
4612
4622
  }
4613
4623
  listOutputFields() {
4614
- return y().listOutputFields(this.handle);
4624
+ return f().listOutputFields(this.handle);
4615
4625
  }
4616
4626
  listDynamicFields() {
4617
- return y().listDynamicFields(this.handle);
4627
+ return f().listDynamicFields(this.handle);
4618
4628
  }
4619
4629
  getKeyValueBase64(e) {
4620
- return y().getKeyValueBase64(this.handle, e);
4630
+ return f().getKeyValueBase64(this.handle, e);
4621
4631
  }
4622
4632
  getKeyValueAsString(e) {
4623
- return y().getKeyValueAsString(this.handle, e);
4633
+ return f().getKeyValueAsString(this.handle, e);
4624
4634
  }
4625
4635
  getKeyValueAsJson(e) {
4626
4636
  const n2 = this.getKeyValueAsString(e);
@@ -4628,10 +4638,10 @@
4628
4638
  return JSON.parse(n2);
4629
4639
  }
4630
4640
  getDataBase64() {
4631
- return y().getDataBase64(this.handle);
4641
+ return f().getDataBase64(this.handle);
4632
4642
  }
4633
4643
  getDataAsString() {
4634
- return y().getDataAsString(this.handle);
4644
+ return f().getDataAsString(this.handle);
4635
4645
  }
4636
4646
  getDataAsJson() {
4637
4647
  const e = this.getDataAsString();
@@ -4644,7 +4654,7 @@
4644
4654
  getPColumns(e = false, n2 = "") {
4645
4655
  const r = this.parsePObjectCollection(e, n2);
4646
4656
  return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
4647
- if (!Z$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4657
+ if (!Z(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4648
4658
  return s2;
4649
4659
  });
4650
4660
  }
@@ -4652,7 +4662,7 @@
4652
4662
  *
4653
4663
  */
4654
4664
  parsePObjectCollection(e = false, n2 = "") {
4655
- const r = y().parsePObjectCollection(
4665
+ const r = f().parsePObjectCollection(
4656
4666
  this.handle,
4657
4667
  e,
4658
4668
  n2,
@@ -4662,19 +4672,19 @@
4662
4672
  const i = {};
4663
4673
  for (const [s2, o] of Object.entries(r)) {
4664
4674
  const a = [...this.resolvePath, s2];
4665
- i[s2] = Fn(o, (l2) => new I(l2, a));
4675
+ i[s2] = Fn(o, (l2) => new E(l2, a));
4666
4676
  }
4667
4677
  return i;
4668
4678
  }
4669
4679
  getFileContentAsBase64() {
4670
- return new S(y().getBlobContentAsBase64(this.handle));
4680
+ return new I(f().getBlobContentAsBase64(this.handle));
4671
4681
  }
4672
4682
  getFileContentAsString() {
4673
- return new S(y().getBlobContentAsString(this.handle));
4683
+ return new I(f().getBlobContentAsString(this.handle));
4674
4684
  }
4675
4685
  getFileContentAsJson() {
4676
- return new S(
4677
- y().getBlobContentAsString(this.handle)
4686
+ return new I(
4687
+ f().getBlobContentAsString(this.handle)
4678
4688
  ).mapDefined((e) => JSON.parse(e));
4679
4689
  }
4680
4690
  /**
@@ -4693,7 +4703,7 @@
4693
4703
  * @returns downloaded file handle
4694
4704
  */
4695
4705
  getFileHandle() {
4696
- return new S(y().getDownloadedBlobContentHandle(this.handle));
4706
+ return new I(f().getDownloadedBlobContentHandle(this.handle));
4697
4707
  }
4698
4708
  /**
4699
4709
  * @deprecated use getFileHandle
@@ -4705,7 +4715,7 @@
4705
4715
  * @returns downloaded file handle
4706
4716
  */
4707
4717
  getRemoteFileHandle() {
4708
- return new S(y().getOnDemandBlobContentHandle(this.handle));
4718
+ return new I(f().getOnDemandBlobContentHandle(this.handle));
4709
4719
  }
4710
4720
  /**
4711
4721
  * @deprecated use getRemoteFileHandle
@@ -4717,22 +4727,22 @@
4717
4727
  * @returns the url to the extracted folder
4718
4728
  */
4719
4729
  extractArchiveAndGetURL(e) {
4720
- return new S(y().extractArchiveAndGetURL(this.handle, e));
4730
+ return new I(f().extractArchiveAndGetURL(this.handle, e));
4721
4731
  }
4722
4732
  getImportProgress() {
4723
- return new S(y().getImportProgress(this.handle));
4733
+ return new I(f().getImportProgress(this.handle));
4724
4734
  }
4725
4735
  getLastLogs(e) {
4726
- return new S(y().getLastLogs(this.handle, e));
4736
+ return new I(f().getLastLogs(this.handle, e));
4727
4737
  }
4728
4738
  getProgressLog(e) {
4729
- return new S(y().getProgressLog(this.handle, e));
4739
+ return new I(f().getProgressLog(this.handle, e));
4730
4740
  }
4731
4741
  getProgressLogWithInfo(e) {
4732
- return new S(y().getProgressLogWithInfo(this.handle, e));
4742
+ return new I(f().getProgressLogWithInfo(this.handle, e));
4733
4743
  }
4734
4744
  getLogHandle() {
4735
- return new S(y().getLogHandle(this.handle));
4745
+ return new I(f().getLogHandle(this.handle));
4736
4746
  }
4737
4747
  allFieldsResolved(e = "Input") {
4738
4748
  switch (e) {
@@ -4761,131 +4771,132 @@
4761
4771
  return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, p2]) => o(u2, p2));
4762
4772
  }
4763
4773
  }
4764
- const Fe = "staging", Oe = "main";
4765
- const ct = "pl7.app/label", pt = "pl7.app/trace", dt = z$1.object({
4766
- type: z$1.string(),
4767
- importance: z$1.number().optional(),
4768
- id: z$1.string().optional(),
4769
- label: z$1.string()
4770
- }), ft = z$1.array(dt), ht = 1e-3, gt = "__LABEL__", xe = "__LABEL__@1";
4771
- function Re(t, e, n2 = {}) {
4772
- const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
4773
- var z2, F;
4774
- const g = e(f2);
4775
- let h, P, c2;
4776
- "spec" in g && typeof g.spec == "object" ? (h = g.spec, P = g.prefixTrace, c2 = g.suffixTrace) : h = g;
4777
- 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 = [
4778
- ...P ?? [],
4779
- ...w2,
4780
- ...c2 ?? []
4774
+ const Re = "staging", ke = "main";
4775
+ const gt = "pl7.app/label", mt = "pl7.app/trace", yt = z$2.object({
4776
+ type: z$2.string(),
4777
+ importance: z$2.number().optional(),
4778
+ id: z$2.string().optional(),
4779
+ label: z$2.string()
4780
+ }), vt = z$2.array(yt), bt = 1e-3, wt = "__LABEL__", Ce = "__LABEL__@1";
4781
+ function Ve(t, e, n2 = {}) {
4782
+ 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((g) => {
4783
+ var S, R;
4784
+ const m2 = e(g);
4785
+ let c2, y, d;
4786
+ "spec" in m2 && typeof m2.spec == "object" ? (c2 = m2.spec, y = m2.prefixTrace, d = m2.suffixTrace) : c2 = m2;
4787
+ const b = (S = c2.annotations) == null ? void 0 : S[gt], A2 = (R = c2.annotations) == null ? void 0 : R[mt], v = (A2 ? vt.safeParse(JSON.parse(A2)).data : void 0) ?? [], P = [
4788
+ ...y ?? [],
4789
+ ...v,
4790
+ ...d ?? []
4781
4791
  ];
4782
- if (b) {
4783
- const L = { label: b, type: gt, importance: -2 };
4784
- n2.addLabelAsSuffix ? A2.push(L) : A2.splice(0, 0, L);
4785
- }
4786
- const O = [], J = /* @__PURE__ */ new Map();
4787
- for (let L = A2.length - 1; L >= 0; --L) {
4788
- const { type: k2 } = A2[L], se = A2[L].importance ?? 0, N2 = (J.get(k2) ?? 0) + 1;
4789
- J.set(k2, N2);
4790
- const x2 = `${k2}@${N2}`;
4791
- i.set(x2, (i.get(x2) ?? 0) + 1), r.set(
4792
- x2,
4792
+ if (b !== void 0) {
4793
+ const D2 = { label: b, type: wt, importance: -2 };
4794
+ n2.addLabelAsSuffix ? P.push(D2) : P.splice(0, 0, D2);
4795
+ }
4796
+ const x2 = [], T = /* @__PURE__ */ new Map();
4797
+ for (let D2 = P.length - 1; D2 >= 0; --D2) {
4798
+ const { type: M } = P[D2], j = P[D2].importance ?? 0, $2 = (T.get(M) ?? 0) + 1;
4799
+ T.set(M, $2);
4800
+ const k2 = `${M}@${$2}`;
4801
+ s2.set(k2, (s2.get(k2) ?? 0) + 1), r.set(
4802
+ k2,
4793
4803
  Math.max(
4794
- r.get(x2) ?? Number.NEGATIVE_INFINITY,
4795
- se - (A2.length - L) * ht
4804
+ r.get(k2) ?? Number.NEGATIVE_INFINITY,
4805
+ j - (P.length - D2) * bt
4796
4806
  )
4797
- ), O.push({ ...A2[L], fullType: x2, occurrenceIndex: N2 });
4807
+ ), x2.push({ ...P[D2], fullType: k2, occurrenceIndex: $2 });
4798
4808
  }
4799
- return O.reverse(), {
4800
- value: f2,
4801
- spec: h,
4809
+ return x2.reverse(), {
4810
+ value: g,
4811
+ spec: c2,
4802
4812
  label: b,
4803
- fullTrace: O
4813
+ fullTrace: x2
4804
4814
  };
4805
- }), o = [], a = [], l2 = [...r];
4806
- l2.sort(([, f2], [, g]) => g - f2);
4807
- for (const [f2] of l2)
4808
- f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
4809
- const u2 = (f2) => {
4810
- const g = [];
4811
- for (let h = 0; h < s2.length; h++) {
4812
- const P = s2[h], c2 = P.fullTrace.filter((w2) => f2.has(w2.fullType));
4813
- if (c2.length === 0)
4814
- return;
4815
- const b = c2.map((w2) => w2.label), m2 = n2.separator ?? " / ";
4816
- g.push({
4817
- label: b.join(m2),
4818
- value: P.value
4815
+ }), a = [], l2 = [], u2 = [...r];
4816
+ u2.sort(([, g], [, m2]) => m2 - g);
4817
+ for (const [g] of u2)
4818
+ g.endsWith("@1") || s2.get(g) === t.length ? a.push(g) : l2.push(g);
4819
+ const p2 = (g, m2 = false) => {
4820
+ const c2 = [];
4821
+ for (let y = 0; y < o.length; y++) {
4822
+ const d = o[y], b = d.fullTrace.filter((P) => g.has(P.fullType) || i && i.has(P.type));
4823
+ if (b.length === 0)
4824
+ if (m2)
4825
+ c2.push({
4826
+ label: "Unlabeled",
4827
+ value: d.value
4828
+ });
4829
+ else return;
4830
+ const A2 = b.map((P) => P.label), v = n2.separator ?? " / ";
4831
+ c2.push({
4832
+ label: A2.join(v),
4833
+ value: d.value
4819
4834
  });
4820
4835
  }
4821
- return g;
4836
+ return c2;
4822
4837
  };
4823
- if (o.length === 0) {
4824
- if (a.length !== 0) throw new Error("Assertion error.");
4825
- const f2 = u2(new Set(xe));
4826
- if (f2 === void 0) throw new Error("Assertion error.");
4827
- return f2;
4828
- }
4829
- let p2 = 0, v = 0;
4830
- for (; p2 < o.length; ) {
4831
- const f2 = /* @__PURE__ */ new Set();
4832
- n2.includeNativeLabel && f2.add(xe);
4833
- for (let h = 0; h < p2; ++h) f2.add(o[h]);
4834
- f2.add(o[v]);
4835
- const g = u2(f2);
4836
- if (g !== void 0 && new Set(g.map((h) => h.label)).size === t.length) return g;
4837
- v++, v >= o.length && (p2++, v = p2);
4838
- }
4839
- const d = u2(/* @__PURE__ */ new Set([...o, ...a]));
4840
- if (d === void 0) throw new Error("Assertion error.");
4841
- return d;
4838
+ if (a.length === 0) {
4839
+ if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
4840
+ return p2(new Set(Ce), true);
4841
+ }
4842
+ let h2 = 0, w2 = -1;
4843
+ for (; h2 < a.length; ) {
4844
+ const g = /* @__PURE__ */ new Set();
4845
+ n2.includeNativeLabel && g.add(Ce);
4846
+ for (let c2 = 0; c2 < h2; ++c2) g.add(a[c2]);
4847
+ w2 >= 0 && g.add(a[w2]);
4848
+ const m2 = p2(g);
4849
+ if (m2 !== void 0 && new Set(m2.map((c2) => c2.label)).size === t.length) return m2;
4850
+ w2++, w2 >= a.length && (h2++, w2 = h2);
4851
+ }
4852
+ return p2(/* @__PURE__ */ new Set([...a, ...l2]), true);
4842
4853
  }
4843
- const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", M = q + "JsonPartitioned", $ = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", W = ke + "BinaryPartitioned";
4844
- const fe = (t) => {
4854
+ const Q = "PColumnData/", se = Q + "ResourceMap", oe = Q + "Partitioned/ResourceMap", H = Q + "JsonPartitioned", B = Q + "BinaryPartitioned", Ke = Q + "Partitioned/", ae = Ke + "JsonPartitioned", q = Ke + "BinaryPartitioned";
4855
+ const he = (t) => {
4845
4856
  if (t.endsWith(".index"))
4846
4857
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
4847
4858
  if (t.endsWith(".values"))
4848
4859
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
4849
4860
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
4850
4861
  };
4851
- function mt(t) {
4862
+ function At(t) {
4852
4863
  if (!t) return;
4853
4864
  const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
4854
4865
  let i = 0;
4855
4866
  switch (e) {
4856
- case ne:
4867
+ case se:
4857
4868
  i = n2.keyLength;
4858
4869
  break;
4859
- case re:
4870
+ case oe:
4860
4871
  i = n2.partitionKeyLength + n2.keyLength;
4861
4872
  break;
4862
- case M:
4863
- case $:
4873
+ case H:
4874
+ case B:
4864
4875
  i = n2.partitionKeyLength;
4865
4876
  break;
4866
- case W:
4867
- case ie:
4877
+ case q:
4878
+ case ae:
4868
4879
  i = n2.superPartitionKeyLength + n2.partitionKeyLength;
4869
4880
  break;
4870
4881
  }
4871
4882
  switch (e) {
4872
- case ne:
4873
- case M:
4874
- case $:
4883
+ case se:
4884
+ case H:
4885
+ case B:
4875
4886
  for (let s2 of t.listInputFields()) {
4876
- e === $ && (s2 = fe(s2).baseKey);
4887
+ e === B && (s2 = he(s2).baseKey);
4877
4888
  const o = [...JSON.parse(s2)];
4878
4889
  r.push(o);
4879
4890
  }
4880
4891
  break;
4881
- case re:
4882
- case W:
4883
- case ie:
4892
+ case oe:
4893
+ case q:
4894
+ case ae:
4884
4895
  for (const s2 of t.listInputFields()) {
4885
4896
  const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
4886
4897
  if (a !== void 0)
4887
4898
  for (let l2 of a.listInputFields()) {
4888
- e === W && (l2 = fe(l2).baseKey);
4899
+ e === q && (l2 = he(l2).baseKey);
4889
4900
  const u2 = [...o, ...JSON.parse(l2)];
4890
4901
  r.push(u2);
4891
4902
  }
@@ -4894,7 +4905,7 @@
4894
4905
  }
4895
4906
  return { data: r, keyLength: i };
4896
4907
  }
4897
- function yt(t) {
4908
+ function xt(t) {
4898
4909
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
4899
4910
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
4900
4911
  const { parts: e, partitionKeyLength: n2 } = t, r = [];
@@ -4913,11 +4924,11 @@
4913
4924
  }
4914
4925
  return r.map((i) => Array.from(i.values()));
4915
4926
  }
4916
- function vt(t) {
4927
+ function Pt(t) {
4917
4928
  if (t === void 0) return;
4918
- if (j(t))
4919
- return yt(t);
4920
- const e = mt(t);
4929
+ if (F$1(t))
4930
+ return xt(t);
4931
+ const e = At(t);
4921
4932
  if (!e) return;
4922
4933
  const { data: n2, keyLength: r } = e, i = [];
4923
4934
  for (let s2 = 0; s2 < r; ++s2)
@@ -4930,16 +4941,16 @@
4930
4941
  }
4931
4942
  return i.map((s2) => Array.from(s2.values()));
4932
4943
  }
4933
- function he(t, e = []) {
4944
+ function ge(t, e = []) {
4934
4945
  if (t === void 0 || !t.getIsReadyOrError()) return;
4935
4946
  const n2 = t.resourceType.name, r = t.getDataAsJson();
4936
- if (e.length > 0 && (n2 === ie || n2 === W))
4947
+ if (e.length > 0 && (n2 === ae || n2 === q))
4937
4948
  throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
4938
4949
  switch (n2) {
4939
- case ne:
4940
- case re:
4950
+ case se:
4951
+ case oe:
4941
4952
  throw new Error(`Only data columns are supported, got: ${n2}`);
4942
- case M: {
4953
+ case H: {
4943
4954
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4944
4955
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4945
4956
  const i = [];
@@ -4955,12 +4966,12 @@
4955
4966
  parts: i
4956
4967
  };
4957
4968
  }
4958
- case $: {
4969
+ case B: {
4959
4970
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4960
4971
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4961
4972
  const i = [], s2 = /* @__PURE__ */ new Map();
4962
4973
  for (const o of t.listInputFields()) {
4963
- const a = fe(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
4974
+ const a = he(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
4964
4975
  if (l2 === void 0) return;
4965
4976
  let u2 = s2.get(a.baseKey);
4966
4977
  u2 || (u2 = {}, s2.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
@@ -4982,16 +4993,16 @@
4982
4993
  parts: i
4983
4994
  };
4984
4995
  }
4985
- case ie: {
4996
+ case ae: {
4986
4997
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4987
4998
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
4988
4999
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
4989
5000
  for (const o of t.listInputFields()) {
4990
5001
  const a = t.resolve({ field: o, assertFieldType: "Input" });
4991
5002
  if (a === void 0) return;
4992
- if (a.resourceType.name !== M)
4993
- throw new Error(`Expected ${M} inside ${n2}, but got ${a.resourceType.name}`);
4994
- const l2 = he(a, JSON.parse(o));
5003
+ if (a.resourceType.name !== H)
5004
+ throw new Error(`Expected ${H} inside ${n2}, but got ${a.resourceType.name}`);
5005
+ const l2 = ge(a, JSON.parse(o));
4995
5006
  if (l2 === void 0) return;
4996
5007
  if (l2.type !== "JsonPartitioned")
4997
5008
  throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
@@ -5003,16 +5014,16 @@
5003
5014
  parts: s2
5004
5015
  };
5005
5016
  }
5006
- case W: {
5017
+ case q: {
5007
5018
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
5008
5019
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
5009
5020
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
5010
5021
  for (const o of t.listInputFields()) {
5011
5022
  const a = t.resolve({ field: o, assertFieldType: "Input" });
5012
5023
  if (a === void 0) return;
5013
- if (a.resourceType.name !== $)
5014
- throw new Error(`Expected ${$} inside ${n2}, but got ${a.resourceType.name}`);
5015
- const l2 = he(a, JSON.parse(o));
5024
+ if (a.resourceType.name !== B)
5025
+ throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
5026
+ const l2 = ge(a, JSON.parse(o));
5016
5027
  if (l2 === void 0) return;
5017
5028
  if (l2.type !== "BinaryPartitioned")
5018
5029
  throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
@@ -5028,15 +5039,15 @@
5028
5039
  throw new Error(`Unknown resource type: ${n2}`);
5029
5040
  }
5030
5041
  }
5031
- function bt(t) {
5042
+ function Ct(t) {
5032
5043
  if (t !== void 0) {
5033
- if (j(t)) return t;
5034
- if (mn(t)) return hn(t);
5035
- if (t instanceof I) return he(t);
5044
+ if (F$1(t)) return t;
5045
+ if (pn(t)) return hn(t);
5046
+ if (t instanceof E) return ge(t);
5036
5047
  throw new Error(`Unexpected input type: ${typeof t}`);
5037
5048
  }
5038
5049
  }
5039
- function wt(t, e) {
5050
+ function St(t, e) {
5040
5051
  const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
5041
5052
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5042
5053
  const { partitionKeyLength: s2 } = t;
@@ -5096,7 +5107,7 @@
5096
5107
  }
5097
5108
  }
5098
5109
  }
5099
- class At {
5110
+ class _t {
5100
5111
  constructor(e) {
5101
5112
  this.columns = e;
5102
5113
  }
@@ -5105,7 +5116,7 @@
5105
5116
  return this.columns.filter((r) => n2(r.spec));
5106
5117
  }
5107
5118
  }
5108
- function xt(t) {
5119
+ function It(t) {
5109
5120
  if (t)
5110
5121
  return t.map((e) => ({
5111
5122
  type: `split:${Jn(e.axisId)}`,
@@ -5114,21 +5125,21 @@
5114
5125
  // High importance for split filters in labels
5115
5126
  }));
5116
5127
  }
5117
- function Pt(t) {
5128
+ function Tt(t) {
5118
5129
  if (t)
5119
5130
  return t.map((e) => [e.axisIdx, e.value]);
5120
5131
  }
5121
- function Ct(t, e) {
5132
+ function Lt(t, e) {
5122
5133
  if (!e || e.length === 0) return t;
5123
5134
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5124
- return Le({ id: t, axisFilters: n2 });
5135
+ return De({ id: t, axisFilters: n2 });
5125
5136
  }
5126
- function St(t) {
5137
+ function Se(t) {
5127
5138
  if (!t || typeof t != "object") return false;
5128
5139
  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);
5129
5140
  return !!e.domainAnchor || n2 || r;
5130
5141
  }
5131
- function _t(t) {
5142
+ function Et(t) {
5132
5143
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5133
5144
  return [];
5134
5145
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5136,11 +5147,11 @@
5136
5147
  throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
5137
5148
  return e.sort((n2, r) => n2 - r), e;
5138
5149
  }
5139
- class ge {
5150
+ class me {
5140
5151
  constructor() {
5141
- T(this, "defaultProviderStore", []);
5142
- T(this, "providers", [new At(this.defaultProviderStore)]);
5143
- T(this, "axisLabelProviders", []);
5152
+ F(this, "defaultProviderStore", []);
5153
+ F(this, "providers", [new _t(this.defaultProviderStore)]);
5154
+ F(this, "axisLabelProviders", []);
5144
5155
  }
5145
5156
  addColumnProvider(e) {
5146
5157
  return this.providers.push(e), this;
@@ -5162,117 +5173,133 @@
5162
5173
  }
5163
5174
  }
5164
5175
  getUniversalEntries(e, n2) {
5165
- const { anchorCtx: r, labelOps: i, dontWaitAllData: s2 = false, overrideLabelAnnotation: o = false } = n2 ?? {}, a = {
5176
+ const { anchorCtx: r, labelOps: i, dontWaitAllData: s2 = false, overrideLabelAnnotation: o = false, exclude: a } = n2 ?? {}, l2 = {
5166
5177
  ...o && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
5167
5178
  ...i ?? {}
5168
- }, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
5169
- for (const d of l2) {
5170
- const f$1 = St(d);
5171
- let g;
5172
- if (f$1) {
5179
+ };
5180
+ let u2 = () => false;
5181
+ if (a) {
5182
+ const c2 = (Array.isArray(a) ? a : [a]).map((y) => {
5183
+ if (Se(y)) {
5184
+ if (!r)
5185
+ throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5186
+ return Kn(Dn(r.anchors, y, n2));
5187
+ } else
5188
+ return Kn(y);
5189
+ });
5190
+ u2 = (y) => c2.some((d) => d(y));
5191
+ }
5192
+ const p2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], h2 = [], w2 = /* @__PURE__ */ new Set();
5193
+ for (const c2 of p2) {
5194
+ const y = Se(c2);
5195
+ let d;
5196
+ if (y) {
5173
5197
  if (!r)
5174
5198
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5175
- g = Dn(r.anchors, d, n2);
5199
+ d = Dn(r.anchors, c2, n2);
5176
5200
  } else
5177
- g = d;
5178
- const h = /* @__PURE__ */ new Set(), P = [];
5179
- for (const m2 of this.providers) {
5180
- const w2 = m2.selectColumns(g);
5181
- for (const A2 of w2) {
5182
- if (h.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${m2.constructor.name}`);
5183
- h.add(A2.id), P.push(A2);
5201
+ d = c2;
5202
+ const b = /* @__PURE__ */ new Set(), A2 = [];
5203
+ for (const x2 of this.providers) {
5204
+ const T = x2.selectColumns(d);
5205
+ for (const S of T) {
5206
+ if (u2(S.spec)) continue;
5207
+ if (b.has(S.id))
5208
+ throw new Error(`Duplicate column id ${S.id} in provider ${x2.constructor.name}`);
5209
+ const R = Rn(S.spec);
5210
+ w2.has(R) || (b.add(S.id), w2.add(R), A2.push(S));
5184
5211
  }
5185
5212
  }
5186
- if (P.length === 0) continue;
5187
- const c2 = _t(d), b = c2.length > 0;
5188
- for (const m2 of P) {
5189
- if (!f(m2.spec)) continue;
5190
- const w2 = m2.spec;
5191
- if (b) {
5192
- const A2 = bt(m2.data);
5193
- if (!A2) {
5213
+ if (A2.length === 0) continue;
5214
+ const v = Et(c2), P = v.length > 0;
5215
+ for (const x2 of A2) {
5216
+ if (!f$1(x2.spec)) continue;
5217
+ const T = x2.spec;
5218
+ if (P) {
5219
+ const S = Ct(x2.data);
5220
+ if (!S) {
5194
5221
  if (s2) continue;
5195
5222
  return;
5196
5223
  }
5197
- if (!yn(A2))
5198
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${m2.id}`);
5199
- const O = vt(A2), J = c2[c2.length - 1];
5200
- if (J >= A2.partitionKeyLength)
5201
- throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${J}) in column ${w2.name}`);
5202
- const z2 = c2.map((x2) => this.findLabels(m$1(w2.axesSpec[x2]))), F = [], L = (x2, U) => {
5203
- if (U >= c2.length) {
5204
- if (F.push([...x2]), F.length > 1e4)
5224
+ if (!yn(S))
5225
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${x2.id}`);
5226
+ const R = Pt(S), D2 = v[v.length - 1];
5227
+ if (D2 >= S.partitionKeyLength)
5228
+ throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${D2}) in column ${T.name}`);
5229
+ const M = v.map((_) => this.findLabels(p$1(T.axesSpec[_]))), j = [], $2 = (_, W) => {
5230
+ if (W >= v.length) {
5231
+ if (j.push([..._]), j.length > 1e4)
5205
5232
  throw new Error("Too many key combinations, aborting.");
5206
5233
  return;
5207
5234
  }
5208
- const D = c2[U];
5209
- if (D >= O.length)
5210
- throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${m2.id}`);
5211
- const j2 = O[D];
5212
- if (!j2 || j2.length === 0) {
5213
- F.length = 0;
5235
+ const V = v[W];
5236
+ if (V >= R.length)
5237
+ throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${x2.id}`);
5238
+ const J = R[V];
5239
+ if (!J || J.length === 0) {
5240
+ j.length = 0;
5214
5241
  return;
5215
5242
  }
5216
- for (const Y2 of j2)
5217
- x2.push(Y2), L(x2, U + 1), x2.pop();
5243
+ for (const Z2 of J)
5244
+ _.push(Z2), $2(_, W + 1), _.pop();
5218
5245
  };
5219
- if (L([], 0), F.length === 0)
5246
+ if ($2([], 0), j.length === 0)
5220
5247
  continue;
5221
- const k2 = [...w2.axesSpec], se = c2.map((x2) => x2);
5222
- for (let x2 = c2.length - 1; x2 >= 0; x2--)
5223
- k2.splice(c2[x2], 1);
5224
- const N2 = { ...w2, axesSpec: k2 };
5225
- for (const x2 of F) {
5226
- const U = x2.map((D, j2) => {
5227
- const Y2 = se[j2], Ue = m$1(w2.axesSpec[Y2]), oe = z2[j2], Be = (oe == null ? void 0 : oe[D]) ?? String(D);
5228
- return { axisIdx: Y2, axisId: Ue, value: D, label: Be };
5248
+ const k2 = [...T.axesSpec], We = v.map((_) => _);
5249
+ for (let _ = v.length - 1; _ >= 0; _--)
5250
+ k2.splice(v[_], 1);
5251
+ const Ge = { ...T, axesSpec: k2 };
5252
+ for (const _ of j) {
5253
+ const W = _.map((V, J) => {
5254
+ const Z2 = We[J], He = p$1(T.axesSpec[Z2]), le = M[J], qe = (le == null ? void 0 : le[V]) ?? String(V);
5255
+ return { axisIdx: Z2, axisId: He, value: V, label: qe };
5229
5256
  });
5230
- u2.push({
5257
+ h2.push({
5231
5258
  type: "split",
5232
- originalColumn: m2,
5233
- spec: w2,
5234
- adjustedSpec: N2,
5235
- dataEntries: A2,
5236
- axisFilters: U
5259
+ originalColumn: x2,
5260
+ spec: T,
5261
+ adjustedSpec: Ge,
5262
+ dataEntries: S,
5263
+ axisFilters: W
5237
5264
  });
5238
5265
  }
5239
5266
  } else
5240
- u2.push({
5267
+ h2.push({
5241
5268
  type: "direct",
5242
- originalColumn: m2,
5243
- spec: w2,
5244
- adjustedSpec: w2
5269
+ originalColumn: x2,
5270
+ spec: T,
5271
+ adjustedSpec: T
5245
5272
  });
5246
5273
  }
5247
5274
  }
5248
- if (u2.length === 0) return [];
5249
- const p2 = Re(
5250
- u2,
5251
- (d) => ({
5252
- spec: d.spec,
5253
- suffixTrace: d.type === "split" ? xt(d.axisFilters) : void 0
5275
+ if (h2.length === 0) return [];
5276
+ const g = Ve(
5277
+ h2,
5278
+ (c2) => ({
5279
+ spec: c2.spec,
5280
+ suffixTrace: c2.type === "split" ? It(c2.axisFilters) : void 0
5254
5281
  }),
5255
- a
5256
- ), v = [];
5257
- for (const { value: d, label: f2 } of p2) {
5258
- const { originalColumn: g, spec: h } = d, P = d.type === "split" ? d.axisFilters : void 0, c2 = Pt(P);
5259
- let b;
5260
- r ? b = r.deriveS(h, c2) : b = Ct(g.id, c2);
5261
- let m2 = { ...d.adjustedSpec };
5262
- o && (m2 = {
5263
- ...m2,
5282
+ l2
5283
+ ), m2 = [];
5284
+ for (const { value: c2, label: y } of g) {
5285
+ const { originalColumn: d, spec: b } = c2, A2 = c2.type === "split" ? c2.axisFilters : void 0, v = Tt(A2);
5286
+ let P;
5287
+ r ? P = r.deriveS(b, v) : P = Lt(d.id, v);
5288
+ let x2 = { ...c2.adjustedSpec };
5289
+ o && (x2 = {
5290
+ ...x2,
5264
5291
  annotations: {
5265
- ...m2.annotations ?? {},
5266
- "pl7.app/label": f2
5292
+ ...x2.annotations ?? {},
5293
+ "pl7.app/label": y
5267
5294
  }
5268
- }), v.push({
5269
- id: b,
5270
- spec: m2,
5271
- data: () => d.type === "split" ? gn(wt(d.dataEntries, c2)) : d.originalColumn.data,
5272
- label: f2
5295
+ }), m2.push({
5296
+ id: P,
5297
+ spec: x2,
5298
+ data: () => c2.type === "split" ? gn(St(c2.dataEntries, v)) : c2.originalColumn.data,
5299
+ label: y
5273
5300
  });
5274
5301
  }
5275
- return v;
5302
+ return m2;
5276
5303
  }
5277
5304
  getColumns(e, n2) {
5278
5305
  const r = this.getUniversalEntries(e, {
@@ -5297,19 +5324,19 @@
5297
5324
  return i;
5298
5325
  }
5299
5326
  }
5300
- function le(t, e) {
5327
+ function ce(t, e) {
5301
5328
  if (t === void 0) return e === void 0;
5302
5329
  if (e === void 0) return true;
5303
5330
  for (const n2 in e)
5304
5331
  if (t[n2] !== e[n2]) return false;
5305
5332
  return true;
5306
5333
  }
5307
- function Pe(t) {
5308
- return Fn(t, (e) => e instanceof I ? e.handle : mn(e) ? ln(e, (n2) => n2.handle) : e);
5334
+ function _e(t) {
5335
+ return Fn(t, (e) => e instanceof E ? e.handle : pn(e) ? ln(e, (n2) => n2.handle) : e);
5309
5336
  }
5310
- class It {
5337
+ class Dt {
5311
5338
  constructor() {
5312
- T(this, "ctx", y());
5339
+ F(this, "ctx", f());
5313
5340
  }
5314
5341
  /**
5315
5342
  * @deprecated use getOptions()
@@ -5320,16 +5347,16 @@
5320
5347
  getOptions(e, n2) {
5321
5348
  const r = typeof e == "function" ? e : Kn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5322
5349
  let s2 = {}, o = false;
5323
- 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 }) => ({
5324
- ref: vn(a, o),
5350
+ 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" ? Ve(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5351
+ ref: Hn(a, o),
5325
5352
  label: l2
5326
5353
  })) : i.map(({ ref: a, obj: l2 }) => ({
5327
- ref: vn(a, o),
5354
+ ref: Hn(a, o),
5328
5355
  label: s2(l2, a)
5329
5356
  }));
5330
5357
  }
5331
5358
  resolveAnchorCtx(e) {
5332
- if (e instanceof In) return e;
5359
+ if (e instanceof $n) return e;
5333
5360
  const n2 = {};
5334
5361
  for (const [r, i] of Object.entries(e))
5335
5362
  if (Mn(i)) {
@@ -5339,7 +5366,7 @@
5339
5366
  n2[r] = s2;
5340
5367
  } else
5341
5368
  n2[r] = i;
5342
- return new In(n2);
5369
+ return new $n(n2);
5343
5370
  }
5344
5371
  /**
5345
5372
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5352,7 +5379,7 @@
5352
5379
  getAnchoredPColumns(e, n2, r) {
5353
5380
  const i = this.resolveAnchorCtx(e);
5354
5381
  if (i)
5355
- return new ge().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
5382
+ return new me().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
5356
5383
  ...r,
5357
5384
  anchorCtx: i
5358
5385
  });
@@ -5389,7 +5416,7 @@
5389
5416
  getCanonicalOptions(e, n2, r) {
5390
5417
  const i = this.resolveAnchorCtx(e);
5391
5418
  if (!i) return;
5392
- const s2 = new ge().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
5419
+ const s2 = new me().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
5393
5420
  ...r,
5394
5421
  anchorCtx: i
5395
5422
  });
@@ -5413,7 +5440,7 @@
5413
5440
  ref: n2.ref,
5414
5441
  obj: {
5415
5442
  ...n2.obj,
5416
- data: new I(n2.obj.data, [n2.ref.blockId, n2.ref.name])
5443
+ data: new E(n2.obj.data, [n2.ref.blockId, n2.ref.name])
5417
5444
  }
5418
5445
  }))
5419
5446
  };
@@ -5432,9 +5459,9 @@
5432
5459
  ref: n2.ref,
5433
5460
  obj: {
5434
5461
  ...n2.obj,
5435
- data: qn(
5462
+ data: Wn(
5436
5463
  n2.obj.data,
5437
- (r) => new I(r, [n2.ref.blockId, n2.ref.name])
5464
+ (r) => new E(r, [n2.ref.blockId, n2.ref.name])
5438
5465
  )
5439
5466
  }
5440
5467
  }))
@@ -5463,7 +5490,7 @@
5463
5490
  if (n2)
5464
5491
  return Fn(
5465
5492
  n2,
5466
- (i) => new I(i, [e.blockId, e.name])
5493
+ (i) => new E(i, [e.blockId, e.name])
5467
5494
  );
5468
5495
  }
5469
5496
  /**
@@ -5484,7 +5511,7 @@
5484
5511
  getPColumnSpecByRef(e) {
5485
5512
  const n2 = this.getSpecByRef(e);
5486
5513
  if (n2) {
5487
- if (!f(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
5514
+ if (!f$1(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
5488
5515
  return n2;
5489
5516
  }
5490
5517
  }
@@ -5503,13 +5530,13 @@
5503
5530
  findDataWithCompatibleSpec(e) {
5504
5531
  const n2 = [];
5505
5532
  e: for (const r of this.getData().entries) {
5506
- if (!f(r.obj.spec))
5533
+ if (!f$1(r.obj.spec))
5507
5534
  continue;
5508
5535
  const i = r.obj.spec;
5509
- if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && le(e.domain, i.domain)) {
5536
+ if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ce(e.domain, i.domain)) {
5510
5537
  for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
5511
5538
  const o = e.axesSpec[s2], a = i.axesSpec[s2];
5512
- if (o.name !== a.name || o.type !== a.type || !le(o.domain, a.domain))
5539
+ if (o.name !== a.name || o.type !== a.type || !ce(o.domain, a.domain))
5513
5540
  continue e;
5514
5541
  }
5515
5542
  n2.push(r.obj);
@@ -5524,9 +5551,9 @@
5524
5551
  findLabels(e) {
5525
5552
  const n2 = this.getData();
5526
5553
  for (const r of n2.entries) {
5527
- if (!Z$1(r.obj)) continue;
5554
+ if (!Z(r.obj)) continue;
5528
5555
  const i = r.obj.spec;
5529
- 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)) {
5556
+ if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && ce(e.domain, i.axesSpec[0].domain)) {
5530
5557
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
5531
5558
  throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
5532
5559
  return Object.fromEntries(
@@ -5546,12 +5573,12 @@
5546
5573
  */
5547
5574
  selectColumns(e) {
5548
5575
  const n2 = typeof e == "function" ? e : Kn(e);
5549
- return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
5576
+ return this.getSpecs().entries.filter(({ obj: i }) => f$1(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
5550
5577
  const o = s2;
5551
5578
  let a = null;
5552
5579
  const l2 = this;
5553
5580
  return {
5554
- id: Le(i),
5581
+ id: De(i),
5555
5582
  spec: o,
5556
5583
  get data() {
5557
5584
  var u2;
@@ -5576,14 +5603,14 @@
5576
5603
  return r;
5577
5604
  }
5578
5605
  }
5579
- class X {
5606
+ class ee {
5580
5607
  constructor() {
5581
- T(this, "ctx");
5582
- T(this, "args");
5583
- T(this, "uiState");
5584
- T(this, "_activeArgsCache");
5585
- T(this, "resultPool", new It());
5586
- this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5608
+ F(this, "ctx");
5609
+ F(this, "args");
5610
+ F(this, "uiState");
5611
+ F(this, "_activeArgsCache");
5612
+ F(this, "resultPool", new Dt());
5613
+ this.ctx = f(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5587
5614
  }
5588
5615
  /**
5589
5616
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -5601,14 +5628,14 @@
5601
5628
  getNamedAccessor(e) {
5602
5629
  return pe(
5603
5630
  this.ctx.getAccessorHandleByName(e),
5604
- (n2) => new I(n2, [e])
5631
+ (n2) => new E(n2, [e])
5605
5632
  );
5606
5633
  }
5607
5634
  get prerun() {
5608
- return this.getNamedAccessor(Fe);
5635
+ return this.getNamedAccessor(Re);
5609
5636
  }
5610
5637
  get outputs() {
5611
- return this.getNamedAccessor(Oe);
5638
+ return this.getNamedAccessor(ke);
5612
5639
  }
5613
5640
  /**
5614
5641
  * Find labels data for a given axis id. It will search for a label column and return its data as a map.
@@ -5620,13 +5647,13 @@
5620
5647
  }
5621
5648
  verifyInlineAndExplicitColumnsSupport(e) {
5622
5649
  var i;
5623
- const n2 = e.some((s2) => !(s2.data instanceof I) || mn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5650
+ const n2 = e.some((s2) => !(s2.data instanceof E) || pn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5624
5651
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5625
5652
  }
5626
5653
  // TODO remove all non-PColumn fields
5627
5654
  createPFrame(e) {
5628
5655
  return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
5629
- e.map((n2) => Pe(n2))
5656
+ e.map((n2) => _e(n2))
5630
5657
  );
5631
5658
  }
5632
5659
  createPTable(e) {
@@ -5639,7 +5666,7 @@
5639
5666
  filters: e.filters ?? [],
5640
5667
  sorting: e.sorting ?? []
5641
5668
  } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Un(n2.src)), this.ctx.createPTable(
5642
- On(n2, (r) => Pe(r))
5669
+ On(n2, (r) => _e(r))
5643
5670
  );
5644
5671
  }
5645
5672
  /** @deprecated scheduled for removal from SDK */
@@ -5650,26 +5677,26 @@
5650
5677
  return this.ctx.getCurrentUnstableMarker();
5651
5678
  }
5652
5679
  }
5653
- const G = "1.30.21";
5654
- function Lt(t) {
5680
+ const z = "1.30.26";
5681
+ function Ft(t) {
5655
5682
  return t.__renderLambda === true;
5656
5683
  }
5657
- function ue(t) {
5684
+ function de(t) {
5658
5685
  if (t !== void 0)
5659
- return Lt(t) ? t.handle : t;
5686
+ return Ft(t) ? t.handle : t;
5660
5687
  }
5661
- class _ {
5688
+ class L {
5662
5689
  constructor(e, n2, r, i, s2, o, a, l2) {
5663
5690
  this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
5664
5691
  }
5665
5692
  static create(e = "Heavy") {
5666
- return new _(
5693
+ return new L(
5667
5694
  e,
5668
5695
  void 0,
5669
5696
  {},
5670
5697
  {},
5671
- Z(true),
5672
- Z([]),
5698
+ ne(true),
5699
+ ne([]),
5673
5700
  void 0,
5674
5701
  void 0
5675
5702
  );
@@ -5677,7 +5704,7 @@
5677
5704
  output(e, n2, r = {}) {
5678
5705
  if (typeof n2 == "function") {
5679
5706
  const i = `output#${e}`;
5680
- return B(i, () => n2(new X())), new _(
5707
+ return G(i, () => n2(new ee())), new L(
5681
5708
  this._renderingMode,
5682
5709
  this._initialArgs,
5683
5710
  this._initialUiState,
@@ -5695,7 +5722,7 @@
5695
5722
  this._enrichmentTargets
5696
5723
  );
5697
5724
  } else
5698
- return new _(
5725
+ return new L(
5699
5726
  this._renderingMode,
5700
5727
  this._initialArgs,
5701
5728
  this._initialUiState,
@@ -5714,7 +5741,7 @@
5714
5741
  return this.output(e, n2, { retentive: true });
5715
5742
  }
5716
5743
  argsValid(e) {
5717
- return typeof e == "function" ? (B("inputsValid", () => e(new X())), new _(
5744
+ return typeof e == "function" ? (G("inputsValid", () => e(new ee())), new L(
5718
5745
  this._renderingMode,
5719
5746
  this._initialArgs,
5720
5747
  this._initialUiState,
@@ -5726,7 +5753,7 @@
5726
5753
  this._sections,
5727
5754
  this._title,
5728
5755
  this._enrichmentTargets
5729
- )) : new _(
5756
+ )) : new L(
5730
5757
  this._renderingMode,
5731
5758
  this._initialArgs,
5732
5759
  this._initialUiState,
@@ -5738,7 +5765,7 @@
5738
5765
  );
5739
5766
  }
5740
5767
  sections(e) {
5741
- return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (B("sections", () => e(new X())), new _(
5768
+ return Array.isArray(e) ? this.sections(ne(e)) : typeof e == "function" ? (G("sections", () => e(new ee())), new L(
5742
5769
  this._renderingMode,
5743
5770
  this._initialArgs,
5744
5771
  this._initialUiState,
@@ -5747,7 +5774,7 @@
5747
5774
  { __renderLambda: true, handle: "sections" },
5748
5775
  this._title,
5749
5776
  this._enrichmentTargets
5750
- )) : new _(
5777
+ )) : new L(
5751
5778
  this._renderingMode,
5752
5779
  this._initialArgs,
5753
5780
  this._initialUiState,
@@ -5760,7 +5787,7 @@
5760
5787
  }
5761
5788
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5762
5789
  title(e) {
5763
- return B("title", () => e(new X())), new _(
5790
+ return G("title", () => e(new ee())), new L(
5764
5791
  this._renderingMode,
5765
5792
  this._initialArgs,
5766
5793
  this._initialUiState,
@@ -5776,7 +5803,7 @@
5776
5803
  * @deprecated use {@link withArgs}
5777
5804
  * */
5778
5805
  initialArgs(e) {
5779
- return new _(
5806
+ return new L(
5780
5807
  this._renderingMode,
5781
5808
  e,
5782
5809
  this._initialUiState,
@@ -5789,7 +5816,7 @@
5789
5816
  }
5790
5817
  /** Sets initial args for the block, this value must be specified. */
5791
5818
  withArgs(e) {
5792
- return new _(
5819
+ return new L(
5793
5820
  this._renderingMode,
5794
5821
  e,
5795
5822
  this._initialUiState,
@@ -5802,7 +5829,7 @@
5802
5829
  }
5803
5830
  /** Defines type and sets initial value for block UiState. */
5804
5831
  withUiState(e) {
5805
- return new _(
5832
+ return new L(
5806
5833
  this._renderingMode,
5807
5834
  this._initialArgs,
5808
5835
  e,
@@ -5818,7 +5845,7 @@
5818
5845
  * Influences dependency graph construction.
5819
5846
  */
5820
5847
  enriches(e) {
5821
- return B("enrichmentTargets", e), new _(
5848
+ return G("enrichmentTargets", e), new L(
5822
5849
  this._renderingMode,
5823
5850
  this._initialArgs,
5824
5851
  this._initialUiState,
@@ -5836,7 +5863,7 @@
5836
5863
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
5837
5864
  const e = {
5838
5865
  v3: {
5839
- sdkVersion: G,
5866
+ sdkVersion: z,
5840
5867
  renderingMode: this._renderingMode,
5841
5868
  initialArgs: this._initialArgs,
5842
5869
  initialUiState: this._initialUiState,
@@ -5847,19 +5874,19 @@
5847
5874
  enrichmentTargets: this._enrichmentTargets
5848
5875
  },
5849
5876
  // fields below are added to allow previous desktop versions read generated configs
5850
- sdkVersion: G,
5877
+ sdkVersion: z,
5851
5878
  renderingMode: this._renderingMode,
5852
5879
  initialArgs: this._initialArgs,
5853
- inputsValid: ue(this._inputsValid),
5854
- sections: ue(this._sections),
5880
+ inputsValid: de(this._inputsValid),
5881
+ sections: de(this._sections),
5855
5882
  outputs: Object.fromEntries(
5856
- Object.entries(this._outputs).map(([n2, r]) => [n2, ue(r)])
5883
+ Object.entries(this._outputs).map(([n2, r]) => [n2, de(r)])
5857
5884
  )
5858
5885
  };
5859
- return st() ? Ee({ sdkVersion: G }) : { config: e };
5886
+ return ct() ? Oe({ sdkVersion: z }) : { config: e };
5860
5887
  }
5861
5888
  }
5862
- const platforma = _.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5889
+ const platforma = L.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5863
5890
  return [{ type: "link", href: "/", label: "Main" }];
5864
5891
  }).title((ctx) => "Pool explorer").done();
5865
5892
  exports2.platforma = platforma;