@milaboratories/milaboratories.ui-examples.model 1.1.69 → 1.1.71

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
@@ -391,7 +391,7 @@
391
391
  overrideMap,
392
392
  overrideMap === errorMap ? void 0 : errorMap
393
393
  // then global default map
394
- ].filter((x2) => !!x2)
394
+ ].filter((x) => !!x)
395
395
  });
396
396
  ctx.common.issues.push(issue);
397
397
  }
@@ -454,10 +454,10 @@
454
454
  });
455
455
  const DIRTY = (value) => ({ status: "dirty", value });
456
456
  const OK = (value) => ({ status: "valid", value });
457
- const isAborted = (x2) => x2.status === "aborted";
458
- const isDirty = (x2) => x2.status === "dirty";
459
- const isValid = (x2) => x2.status === "valid";
460
- const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
457
+ const isAborted = (x) => x.status === "aborted";
458
+ const isDirty = (x) => x.status === "dirty";
459
+ const isValid = (x) => x.status === "valid";
460
+ const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
461
461
  function __classPrivateFieldGet(receiver, state, kind, f2) {
462
462
  if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
463
463
  return state.get(receiver);
@@ -2787,7 +2787,7 @@
2787
2787
  if (!schema)
2788
2788
  return null;
2789
2789
  return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2790
- }).filter((x2) => !!x2);
2790
+ }).filter((x) => !!x);
2791
2791
  if (ctx.common.async) {
2792
2792
  return Promise.all(items).then((results) => {
2793
2793
  return ParseStatus.mergeArray(status, results);
@@ -3045,7 +3045,7 @@
3045
3045
  ctx.schemaErrorMap,
3046
3046
  getErrorMap(),
3047
3047
  errorMap
3048
- ].filter((x2) => !!x2),
3048
+ ].filter((x) => !!x),
3049
3049
  issueData: {
3050
3050
  code: ZodIssueCode.invalid_arguments,
3051
3051
  argumentsError: error
@@ -3061,7 +3061,7 @@
3061
3061
  ctx.schemaErrorMap,
3062
3062
  getErrorMap(),
3063
3063
  errorMap
3064
- ].filter((x2) => !!x2),
3064
+ ].filter((x) => !!x),
3065
3065
  issueData: {
3066
3066
  code: ZodIssueCode.invalid_return_type,
3067
3067
  returnTypeError: error
@@ -3069,7 +3069,7 @@
3069
3069
  });
3070
3070
  }
3071
3071
  const params = { errorMap: ctx.common.contextualErrorMap };
3072
- const fn = ctx.data;
3072
+ const fn2 = ctx.data;
3073
3073
  if (this._def.returns instanceof ZodPromise) {
3074
3074
  const me2 = this;
3075
3075
  return OK(async function(...args) {
@@ -3078,7 +3078,7 @@
3078
3078
  error.addIssue(makeArgsIssue(args, e));
3079
3079
  throw error;
3080
3080
  });
3081
- const result = await Reflect.apply(fn, this, parsedArgs);
3081
+ const result = await Reflect.apply(fn2, this, parsedArgs);
3082
3082
  const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e) => {
3083
3083
  error.addIssue(makeReturnsIssue(result, e));
3084
3084
  throw error;
@@ -3092,7 +3092,7 @@
3092
3092
  if (!parsedArgs.success) {
3093
3093
  throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
3094
3094
  }
3095
- const result = Reflect.apply(fn, this, parsedArgs.data);
3095
+ const result = Reflect.apply(fn2, this, parsedArgs.data);
3096
3096
  const parsedReturns = me2._def.returns.safeParse(result, params);
3097
3097
  if (!parsedReturns.success) {
3098
3098
  throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
@@ -3798,7 +3798,7 @@
3798
3798
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
3799
3799
  };
3800
3800
  const NEVER = INVALID;
3801
- var z$2 = /* @__PURE__ */ Object.freeze({
3801
+ var z$1 = /* @__PURE__ */ Object.freeze({
3802
3802
  __proto__: null,
3803
3803
  defaultErrorMap: errorMap,
3804
3804
  setErrorMap,
@@ -3914,8 +3914,8 @@
3914
3914
  quotelessJson,
3915
3915
  ZodError
3916
3916
  });
3917
- function getDefaultExportFromCjs(x2) {
3918
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
3917
+ function getDefaultExportFromCjs(x) {
3918
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
3919
3919
  }
3920
3920
  var canonicalize;
3921
3921
  var hasRequiredCanonicalize;
@@ -3956,19 +3956,19 @@
3956
3956
  }
3957
3957
  var canonicalizeExports = requireCanonicalize();
3958
3958
  const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
- var I = Object.defineProperty;
3960
- var D = (n2, e, t) => e in n2 ? I(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3961
- var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
3962
- z$2.object({
3959
+ var B$1 = Object.defineProperty;
3960
+ var j = (n2, e, t) => e in n2 ? B$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3961
+ var l$1 = (n2, e, t) => j(n2, typeof e != "symbol" ? e + "" : e, t);
3962
+ z$1.object({
3963
3963
  /** Included left border. */
3964
- from: z$2.number(),
3964
+ from: z$1.number(),
3965
3965
  /** Excluded right border. */
3966
- to: z$2.number()
3966
+ to: z$1.number()
3967
3967
  });
3968
3968
  function w(n2) {
3969
3969
  throw new Error("Unexpected object: " + n2);
3970
3970
  }
3971
- function hn(n2) {
3971
+ function En(n2) {
3972
3972
  if (!n2 || typeof n2 != "object")
3973
3973
  return false;
3974
3974
  const e = n2;
@@ -3985,7 +3985,7 @@
3985
3985
  return false;
3986
3986
  }
3987
3987
  }
3988
- function gn(n2, e) {
3988
+ function Nn(n2, e) {
3989
3989
  if (n2 !== void 0)
3990
3990
  switch (n2.type) {
3991
3991
  case "Json":
@@ -4013,7 +4013,7 @@
4013
4013
  }
4014
4014
  }
4015
4015
  }
4016
- function F(n2) {
4016
+ function K(n2) {
4017
4017
  if (!n2 || typeof n2 != "object")
4018
4018
  return false;
4019
4019
  const e = n2;
@@ -4030,10 +4030,10 @@
4030
4030
  return false;
4031
4031
  }
4032
4032
  }
4033
- function bn(n2) {
4034
- return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4033
+ function Sn(n2) {
4034
+ return K(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4035
4035
  }
4036
- function wn(n2) {
4036
+ function Cn(n2) {
4037
4037
  switch (n2.type) {
4038
4038
  case "Json": {
4039
4039
  const e = Object.entries(n2.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
@@ -4061,7 +4061,7 @@
4061
4061
  }
4062
4062
  }
4063
4063
  }
4064
- function Pn(n2) {
4064
+ function Jn(n2) {
4065
4065
  switch (n2.type) {
4066
4066
  case "Json": {
4067
4067
  const e = {};
@@ -4095,7 +4095,7 @@
4095
4095
  }
4096
4096
  }
4097
4097
  }
4098
- function $n(n2) {
4098
+ function Fn(n2) {
4099
4099
  return {
4100
4100
  columnId: n2.id,
4101
4101
  spec: n2.spec
@@ -4105,23 +4105,23 @@
4105
4105
  const { type: e, name: t, domain: r } = n2, o = { type: e, name: t };
4106
4106
  return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
4107
4107
  }
4108
- function C(n2) {
4108
+ function J(n2) {
4109
4109
  return n2.map(p$1);
4110
4110
  }
4111
- function In(n2) {
4111
+ function Rn$1(n2) {
4112
4112
  return ke(p$1(n2));
4113
4113
  }
4114
- function z$1(n2, e) {
4114
+ function Y$1(n2, e) {
4115
4115
  if (n2 === void 0) return e === void 0;
4116
4116
  if (e === void 0) return true;
4117
4117
  for (const t in e)
4118
4118
  if (n2[t] !== e[t]) return false;
4119
4119
  return true;
4120
4120
  }
4121
- function X(n2, e) {
4122
- return n2.name === e.name && z$1(n2.domain, e.domain);
4121
+ function Z$1(n2, e) {
4122
+ return n2.name === e.name && Y$1(n2.domain, e.domain);
4123
4123
  }
4124
- function Dn$1(n2, e) {
4124
+ function Un(n2, e) {
4125
4125
  return { ...n2, src: h(n2.src, e) };
4126
4126
  }
4127
4127
  function h(n2, e) {
@@ -4156,16 +4156,16 @@
4156
4156
  w(n2);
4157
4157
  }
4158
4158
  }
4159
- function G(n2) {
4159
+ function nn(n2) {
4160
4160
  return ke(n2);
4161
4161
  }
4162
- function x(n2) {
4162
+ function P(n2) {
4163
4163
  return ke(p$1(n2));
4164
4164
  }
4165
- function A(n2, e) {
4165
+ function k(n2, e) {
4166
4166
  return JSON.stringify([n2, e]);
4167
4167
  }
4168
- class Vn {
4168
+ class _n {
4169
4169
  /**
4170
4170
  * Creates a new anchor context from a set of anchor column specifications
4171
4171
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -4180,14 +4180,14 @@
4180
4180
  t.sort((r, o) => r[0].localeCompare(o[0]));
4181
4181
  for (const [r, o] of t) {
4182
4182
  for (let s2 = 0; s2 < o.axesSpec.length; s2++) {
4183
- const a = o.axesSpec[s2], i = x(a);
4183
+ const a = o.axesSpec[s2], i = P(a);
4184
4184
  this.axes.set(i, { anchor: r, idx: s2 });
4185
4185
  }
4186
4186
  if (o.domain !== void 0) {
4187
4187
  const s2 = Object.entries(o.domain);
4188
4188
  s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
4189
4189
  for (const [a, i] of s2) {
4190
- const u2 = A(a, i);
4190
+ const u2 = k(a, i);
4191
4191
  this.domains.set(u2, r);
4192
4192
  }
4193
4193
  }
@@ -4222,11 +4222,11 @@
4222
4222
  for (const [a, i] of Object.entries(e.domain ?? {})) {
4223
4223
  if (o !== void 0 && o.has(a))
4224
4224
  continue;
4225
- const u2 = A(a, i), c2 = this.domains.get(u2);
4225
+ const u2 = k(a, i), c2 = this.domains.get(u2);
4226
4226
  r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
4227
4227
  }
4228
4228
  if (r.axes = e.axesSpec.map((a) => {
4229
- const i = x(a), u2 = this.axes.get(i);
4229
+ const i = P(a), u2 = this.axes.get(i);
4230
4230
  return u2 === void 0 ? p$1(a) : u2;
4231
4231
  }), !t || t.length === 0)
4232
4232
  return r;
@@ -4256,10 +4256,10 @@
4256
4256
  * @returns A canonicalized string representation of the anchored column identifier
4257
4257
  */
4258
4258
  deriveS(e, t) {
4259
- return G(this.derive(e, t));
4259
+ return nn(this.derive(e, t));
4260
4260
  }
4261
4261
  }
4262
- function Bn(n2, e, t) {
4262
+ function Mn(n2, e, t) {
4263
4263
  const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
4264
4264
  if (r.domainAnchor !== void 0) {
4265
4265
  const s2 = n2[r.domainAnchor];
@@ -4286,10 +4286,10 @@
4286
4286
  }
4287
4287
  r.domain = s2;
4288
4288
  }
4289
- return r.axes && (r.axes = r.axes.map((s2) => Q(n2, s2))), r;
4289
+ return r.axes && (r.axes = r.axes.map((s2) => en(n2, s2))), r;
4290
4290
  }
4291
- function Q(n2, e) {
4292
- if (!Y$1(e))
4291
+ function en(n2, e) {
4292
+ if (!tn(e))
4293
4293
  return e;
4294
4294
  const t = e.anchor, r = n2[t];
4295
4295
  if (!r)
@@ -4306,7 +4306,7 @@
4306
4306
  throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
4307
4307
  return o[0];
4308
4308
  } else if ("id" in e) {
4309
- const o = r.axesSpec.filter((s2) => X(e.id, p$1(s2)));
4309
+ const o = r.axesSpec.filter((s2) => Z$1(e.id, p$1(s2)));
4310
4310
  if (o.length > 1)
4311
4311
  throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4312
4312
  if (o.length === 0)
@@ -4315,26 +4315,26 @@
4315
4315
  }
4316
4316
  throw new Error("Unsupported axis reference type");
4317
4317
  }
4318
- function Y$1(n2) {
4318
+ function tn(n2) {
4319
4319
  return typeof n2 == "object" && "anchor" in n2;
4320
4320
  }
4321
4321
  function f(n2) {
4322
4322
  return n2.kind === "PColumn";
4323
4323
  }
4324
- function Z$1(n2) {
4324
+ function rn(n2) {
4325
4325
  return f(n2.spec);
4326
4326
  }
4327
- function Un(n2) {
4328
- if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4327
+ function qn(n2) {
4328
+ if (!rn(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4329
4329
  return n2;
4330
4330
  }
4331
- function Kn(n2, e) {
4331
+ function Wn(n2, e) {
4332
4332
  return n2 === void 0 ? void 0 : {
4333
4333
  ...n2,
4334
4334
  data: e(n2.data)
4335
4335
  };
4336
4336
  }
4337
- function vn(n2) {
4337
+ function Xn(n2) {
4338
4338
  const e = /* @__PURE__ */ new Map(), t = (r) => {
4339
4339
  switch (r.type) {
4340
4340
  case "column":
@@ -4359,7 +4359,7 @@
4359
4359
  };
4360
4360
  return t(n2), [...e.values()];
4361
4361
  }
4362
- function k(n2, e) {
4362
+ function E$1(n2, e) {
4363
4363
  if (n2.name !== void 0 && n2.name !== e.name)
4364
4364
  return false;
4365
4365
  if (n2.type !== void 0) {
@@ -4397,13 +4397,13 @@
4397
4397
  const t = n2.axesSpec.map(p$1);
4398
4398
  if (e.partialAxesMatch) {
4399
4399
  for (const r of e.axes)
4400
- if (!t.some((o) => k(r, o)))
4400
+ if (!t.some((o) => E$1(r, o)))
4401
4401
  return false;
4402
4402
  } else {
4403
4403
  if (t.length !== e.axes.length)
4404
4404
  return false;
4405
4405
  for (let r = 0; r < e.axes.length; r++)
4406
- if (!k(e.axes[r], t[r]))
4406
+ if (!E$1(e.axes[r], t[r]))
4407
4407
  return false;
4408
4408
  }
4409
4409
  }
@@ -4423,28 +4423,28 @@
4423
4423
  }
4424
4424
  return true;
4425
4425
  }
4426
- function _n(n2) {
4426
+ function Gn(n2) {
4427
4427
  return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
4428
4428
  }
4429
- function Mn(n2) {
4429
+ function Qn(n2) {
4430
4430
  const e = {
4431
4431
  kind: n2.kind,
4432
4432
  name: n2.name
4433
4433
  };
4434
- return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), ke(e);
4434
+ return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = J(n2.axesSpec)), ke(e);
4435
4435
  }
4436
- z$2.object({
4437
- __isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4438
- blockId: z$2.string().describe("Upstream block id"),
4439
- name: z$2.string().describe("Name of the output provided to the upstream block's output context"),
4440
- 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")
4436
+ z$1.object({
4437
+ __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4438
+ blockId: z$1.string().describe("Upstream block id"),
4439
+ name: z$1.string().describe("Name of the output provided to the upstream block's output context"),
4440
+ 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")
4441
4441
  }).describe(
4442
4442
  "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."
4443
4443
  ).readonly();
4444
- function qn(n2) {
4444
+ function ne(n2) {
4445
4445
  return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
4446
4446
  }
4447
- function zn(n2, e = true) {
4447
+ function te$1(n2, e = true) {
4448
4448
  if (e)
4449
4449
  return {
4450
4450
  ...n2,
@@ -4455,12 +4455,12 @@
4455
4455
  return r;
4456
4456
  }
4457
4457
  }
4458
- function Gn(n2, e) {
4458
+ function oe$1(n2, e) {
4459
4459
  return n2.ok ? { ok: true, value: e(n2.value) } : n2;
4460
4460
  }
4461
- const sn = 24;
4462
- z$2.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4463
- function ee(n2) {
4461
+ const fn = 24;
4462
+ z$1.string().length(fn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4463
+ function ce$1(n2) {
4464
4464
  return JSON.parse(n2);
4465
4465
  }
4466
4466
  var stringify = { exports: {} };
@@ -4494,33 +4494,33 @@
4494
4494
  return stringify.exports;
4495
4495
  }
4496
4496
  requireStringify();
4497
- const l = z$2.object({
4498
- type: z$2.literal("PlError"),
4499
- name: z$2.string(),
4500
- message: z$2.string(),
4497
+ const l = z$1.object({
4498
+ type: z$1.literal("PlError"),
4499
+ name: z$1.string(),
4500
+ message: z$1.string(),
4501
4501
  /** The message with all details needed for SDK developers. */
4502
- fullMessage: z$2.string().optional(),
4503
- stack: z$2.string().optional()
4502
+ fullMessage: z$1.string().optional(),
4503
+ stack: z$1.string().optional()
4504
4504
  }), c = l.extend({
4505
- cause: z$2.lazy(() => s).optional(),
4506
- errors: z$2.lazy(() => s.array()).optional()
4507
- }), m$1 = z$2.object({
4508
- type: z$2.literal("StandardError"),
4509
- name: z$2.string(),
4510
- message: z$2.string(),
4511
- stack: z$2.string().optional()
4505
+ cause: z$1.lazy(() => s).optional(),
4506
+ errors: z$1.lazy(() => s.array()).optional()
4507
+ }), m$1 = z$1.object({
4508
+ type: z$1.literal("StandardError"),
4509
+ name: z$1.string(),
4510
+ message: z$1.string(),
4511
+ stack: z$1.string().optional()
4512
4512
  }), p = m$1.extend({
4513
- cause: z$2.lazy(() => s).optional(),
4514
- errors: z$2.lazy(() => s.array()).optional()
4515
- }), s = z$2.union([p, c]);
4516
- const u = z$2.object({
4517
- name: z$2.string(),
4518
- message: z$2.string(),
4519
- fullMessage: z$2.string().optional(),
4520
- stack: z$2.string().optional()
4513
+ cause: z$1.lazy(() => s).optional(),
4514
+ errors: z$1.lazy(() => s.array()).optional()
4515
+ }), s = z$1.union([p, c]);
4516
+ const u = z$1.object({
4517
+ name: z$1.string(),
4518
+ message: z$1.string(),
4519
+ fullMessage: z$1.string().optional(),
4520
+ stack: z$1.string().optional()
4521
4521
  }), n = u.extend({
4522
- cause: z$2.lazy(() => n).optional(),
4523
- errors: z$2.lazy(() => n.array()).optional()
4522
+ cause: z$1.lazy(() => n).optional(),
4523
+ errors: z$1.lazy(() => n.array()).optional()
4524
4524
  });
4525
4525
  var qe = Object.defineProperty;
4526
4526
  var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
@@ -4528,7 +4528,7 @@
4528
4528
  function re(t) {
4529
4529
  return { type: "Immediate", value: t };
4530
4530
  }
4531
- function dt() {
4531
+ function pt() {
4532
4532
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4533
4533
  }
4534
4534
  function De(t) {
@@ -4537,7 +4537,7 @@
4537
4537
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4538
4538
  throw new Error("Can't get platforma instance.");
4539
4539
  }
4540
- function pt() {
4540
+ function ft() {
4541
4541
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4542
4542
  }
4543
4543
  function m() {
@@ -4545,13 +4545,13 @@
4545
4545
  throw new Error("Not in config rendering context");
4546
4546
  }
4547
4547
  function H(t, e) {
4548
- const n2 = pt();
4548
+ const n2 = ft();
4549
4549
  if (n2 === void 0) return false;
4550
4550
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4551
4551
  return n2.callbackRegistry[t] = e, true;
4552
4552
  }
4553
4553
  const ce = /* @__PURE__ */ new Map();
4554
- function ft(t, e) {
4554
+ function ht(t, e) {
4555
4555
  t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
4556
4556
  for (const r of ce.get(t))
4557
4557
  r(n2);
@@ -4561,7 +4561,7 @@
4561
4561
  constructor(e, n2 = (r) => r) {
4562
4562
  O(this, "isResolved", false);
4563
4563
  O(this, "resolvedValue");
4564
- this.handle = e, this.postProcess = n2, ft(e, (r) => {
4564
+ this.handle = e, this.postProcess = n2, ht(e, (r) => {
4565
4565
  this.resolvedValue = n2(r), this.isResolved = true;
4566
4566
  });
4567
4567
  }
@@ -4684,7 +4684,7 @@
4684
4684
  getPColumns(e = false, n2 = "") {
4685
4685
  const r = this.parsePObjectCollection(e, n2);
4686
4686
  return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
4687
- if (!Z$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4687
+ if (!rn(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4688
4688
  return s2;
4689
4689
  });
4690
4690
  }
@@ -4702,7 +4702,7 @@
4702
4702
  const i = {};
4703
4703
  for (const [s2, o] of Object.entries(r)) {
4704
4704
  const a = [...this.resolvePath, s2];
4705
- i[s2] = Kn(o, (l2) => new E(l2, a));
4705
+ i[s2] = Wn(o, (l2) => new E(l2, a));
4706
4706
  }
4707
4707
  return i;
4708
4708
  }
@@ -4802,45 +4802,45 @@
4802
4802
  }
4803
4803
  }
4804
4804
  const Re = "staging", Fe = "main";
4805
- const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$2.object({
4806
- type: z$2.string(),
4807
- importance: z$2.number().optional(),
4808
- id: z$2.string().optional(),
4809
- label: z$2.string()
4810
- }), bt = z$2.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
4811
- function Ve(t, e, n2 = {}) {
4805
+ const yt = "pl7.app/label", vt = "pl7.app/trace", bt = z$1.object({
4806
+ type: z$1.string(),
4807
+ importance: z$1.number().optional(),
4808
+ id: z$1.string().optional(),
4809
+ label: z$1.string()
4810
+ }), wt = z$1.array(bt), At = 1e-3, xt = "__LABEL__", Pe = "__LABEL__@1";
4811
+ function je(t, e, n2 = {}) {
4812
4812
  const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
4813
- var P, F2;
4813
+ var P2, R;
4814
4814
  const w2 = e(f2);
4815
4815
  let p2, g, b;
4816
4816
  "spec" in w2 && typeof w2.spec == "object" ? (p2 = w2.spec, g = w2.prefixTrace, b = w2.suffixTrace) : p2 = w2;
4817
- const h2 = (P = p2.annotations) == null ? void 0 : P[mt], I2 = (F2 = p2.annotations) == null ? void 0 : F2[yt], x2 = (I2 ? bt.safeParse(JSON.parse(I2)).data : void 0) ?? [], v = [
4817
+ const h2 = (P2 = p2.annotations) == null ? void 0 : P2[yt], I = (R = p2.annotations) == null ? void 0 : R[vt], x = (I ? wt.safeParse(JSON.parse(I)).data : void 0) ?? [], v = [
4818
4818
  ...g ?? [],
4819
- ...x2,
4819
+ ...x,
4820
4820
  ...b ?? []
4821
4821
  ];
4822
4822
  if (h2 !== void 0) {
4823
- const k2 = { label: h2, type: At, importance: -2 };
4823
+ const k2 = { label: h2, type: xt, importance: -2 };
4824
4824
  n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
4825
4825
  }
4826
- const A2 = [], L = /* @__PURE__ */ new Map();
4826
+ const A = [], L = /* @__PURE__ */ new Map();
4827
4827
  for (let k2 = v.length - 1; k2 >= 0; --k2) {
4828
- const { type: W } = v[k2], V = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
4828
+ const { type: W } = v[k2], j2 = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
4829
4829
  L.set(W, $);
4830
- const K = `${W}@${$}`;
4831
- s2.set(K, (s2.get(K) ?? 0) + 1), r.set(
4832
- K,
4830
+ const F = `${W}@${$}`;
4831
+ s2.set(F, (s2.get(F) ?? 0) + 1), r.set(
4832
+ F,
4833
4833
  Math.max(
4834
- r.get(K) ?? Number.NEGATIVE_INFINITY,
4835
- V - (v.length - k2) * wt
4834
+ r.get(F) ?? Number.NEGATIVE_INFINITY,
4835
+ j2 - (v.length - k2) * At
4836
4836
  )
4837
- ), A2.push({ ...v[k2], fullType: K, occurrenceIndex: $ });
4837
+ ), A.push({ ...v[k2], fullType: F, occurrenceIndex: $ });
4838
4838
  }
4839
- return A2.reverse(), {
4839
+ return A.reverse(), {
4840
4840
  value: f2,
4841
4841
  spec: p2,
4842
4842
  label: h2,
4843
- fullTrace: A2
4843
+ fullTrace: A
4844
4844
  };
4845
4845
  }), a = [], l2 = [], u2 = [...r];
4846
4846
  u2.sort(([, f2], [, w2]) => w2 - f2);
@@ -4857,9 +4857,9 @@
4857
4857
  value: b.value
4858
4858
  });
4859
4859
  else return;
4860
- const I2 = h2.map((v) => v.label), x2 = n2.separator ?? " / ";
4860
+ const I = h2.map((v) => v.label), x = n2.separator ?? " / ";
4861
4861
  p2.push({
4862
- label: I2.join(x2),
4862
+ label: I.join(x),
4863
4863
  value: b.value
4864
4864
  });
4865
4865
  }
@@ -4881,7 +4881,7 @@
4881
4881
  }
4882
4882
  return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
4883
4883
  }
4884
- const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", je = Z + "Partitioned/", ae = je + "JsonPartitioned", z = je + "BinaryPartitioned";
4884
+ const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", Ve = Z + "Partitioned/", ae = Ve + "JsonPartitioned", z = Ve + "BinaryPartitioned";
4885
4885
  const me = (t) => {
4886
4886
  if (t.endsWith(".index"))
4887
4887
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
@@ -4889,7 +4889,7 @@
4889
4889
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
4890
4890
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
4891
4891
  };
4892
- function xt(t) {
4892
+ function Ct(t) {
4893
4893
  if (!t) return;
4894
4894
  const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
4895
4895
  let i = 0;
@@ -4935,7 +4935,7 @@
4935
4935
  }
4936
4936
  return { data: r, keyLength: i };
4937
4937
  }
4938
- function Ct(t) {
4938
+ function Pt(t) {
4939
4939
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
4940
4940
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
4941
4941
  const { parts: e, partitionKeyLength: n2 } = t, r = [];
@@ -4954,11 +4954,11 @@
4954
4954
  }
4955
4955
  return r.map((i) => Array.from(i.values()));
4956
4956
  }
4957
- function Pt(t) {
4957
+ function St(t) {
4958
4958
  if (t === void 0) return;
4959
- if (F(t))
4960
- return Ct(t);
4961
- const e = xt(t);
4959
+ if (K(t))
4960
+ return Pt(t);
4961
+ const e = Ct(t);
4962
4962
  if (!e) return;
4963
4963
  const { data: n2, keyLength: r } = e, i = [];
4964
4964
  for (let s2 = 0; s2 < r; ++s2)
@@ -5069,15 +5069,15 @@
5069
5069
  throw new Error(`Unknown resource type: ${n2}`);
5070
5070
  }
5071
5071
  }
5072
- function St(t) {
5072
+ function _t(t) {
5073
5073
  if (t !== void 0) {
5074
- if (F(t)) return t;
5075
- if (hn(t)) return wn(t);
5074
+ if (K(t)) return t;
5075
+ if (En(t)) return Cn(t);
5076
5076
  if (t instanceof E) return ye(t);
5077
5077
  throw new Error(`Unexpected input type: ${typeof t}`);
5078
5078
  }
5079
5079
  }
5080
- function _t(t, e) {
5080
+ function It(t, e) {
5081
5081
  const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
5082
5082
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5083
5083
  const { partitionKeyLength: s2 } = t;
@@ -5137,35 +5137,35 @@
5137
5137
  }
5138
5138
  }
5139
5139
  }
5140
- function It(t) {
5140
+ function Lt(t) {
5141
5141
  if (!Array.isArray(t)) return false;
5142
5142
  if (t.length === 0) return true;
5143
5143
  const e = t[0];
5144
5144
  return typeof e == "object" && e !== null && "key" in e && "val" in e;
5145
5145
  }
5146
- class Lt {
5146
+ class Tt {
5147
5147
  constructor(e) {
5148
5148
  this.columns = e;
5149
5149
  }
5150
5150
  selectColumns(e) {
5151
- const n2 = typeof e == "function" ? e : _n(e);
5151
+ const n2 = typeof e == "function" ? e : Gn(e);
5152
5152
  return this.columns.filter((r) => n2(r.spec));
5153
5153
  }
5154
5154
  }
5155
- function Tt(t) {
5155
+ function Et(t) {
5156
5156
  if (t)
5157
5157
  return t.map((e) => ({
5158
- type: `split:${In(e.axisId)}`,
5158
+ type: `split:${Rn$1(e.axisId)}`,
5159
5159
  label: e.label,
5160
5160
  importance: 1e6
5161
5161
  // High importance for split filters in labels
5162
5162
  }));
5163
5163
  }
5164
- function Et(t) {
5164
+ function kt(t) {
5165
5165
  if (t)
5166
5166
  return t.map((e) => [e.axisIdx, e.value]);
5167
5167
  }
5168
- function kt(t, e) {
5168
+ function Ot(t, e) {
5169
5169
  if (!e || e.length === 0) return t;
5170
5170
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5171
5171
  return ke({ id: t, axisFilters: n2 });
@@ -5175,7 +5175,7 @@
5175
5175
  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);
5176
5176
  return !!e.domainAnchor || n2 || r;
5177
5177
  }
5178
- function Ot(t) {
5178
+ function Dt(t) {
5179
5179
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5180
5180
  return [];
5181
5181
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5186,7 +5186,7 @@
5186
5186
  class le {
5187
5187
  constructor() {
5188
5188
  O(this, "defaultProviderStore", []);
5189
- O(this, "providers", [new Lt(this.defaultProviderStore)]);
5189
+ O(this, "providers", [new Tt(this.defaultProviderStore)]);
5190
5190
  O(this, "axisLabelProviders", []);
5191
5191
  }
5192
5192
  addColumnProvider(e) {
@@ -5219,9 +5219,9 @@
5219
5219
  if (Se(g)) {
5220
5220
  if (!r)
5221
5221
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5222
- return _n(Bn(r.anchors, g, n2));
5222
+ return Gn(Mn(r.anchors, g, n2));
5223
5223
  } else
5224
- return _n(g);
5224
+ return Gn(g);
5225
5225
  });
5226
5226
  u2 = (g) => p2.some((b) => b(g));
5227
5227
  }
@@ -5232,108 +5232,108 @@
5232
5232
  if (g) {
5233
5233
  if (!r)
5234
5234
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5235
- b = Bn(r.anchors, p2, n2);
5235
+ b = Mn(r.anchors, p2, n2);
5236
5236
  } else
5237
5237
  b = p2;
5238
- const h2 = /* @__PURE__ */ new Set(), I2 = [];
5239
- for (const A2 of this.providers) {
5240
- const L = A2.selectColumns(b);
5241
- for (const P of L) {
5242
- if (u2(P.spec)) continue;
5243
- if (h2.has(P.id))
5244
- throw new Error(`Duplicate column id ${P.id} in provider ${A2.constructor.name}`);
5245
- const F2 = Mn(P.spec);
5246
- y.has(F2) || (h2.add(P.id), y.add(F2), I2.push(P));
5238
+ const h2 = /* @__PURE__ */ new Set(), I = [];
5239
+ for (const A of this.providers) {
5240
+ const L = A.selectColumns(b);
5241
+ for (const P2 of L) {
5242
+ if (u2(P2.spec)) continue;
5243
+ if (h2.has(P2.id))
5244
+ throw new Error(`Duplicate column id ${P2.id} in provider ${A.constructor.name}`);
5245
+ const R = Qn(P2.spec);
5246
+ y.has(R) || (h2.add(P2.id), y.add(R), I.push(P2));
5247
5247
  }
5248
5248
  }
5249
- if (I2.length === 0) continue;
5250
- const x2 = Ot(p2), v = x2.length > 0;
5251
- for (const A2 of I2) {
5252
- if (!f(A2.spec)) continue;
5253
- const L = A2.spec;
5249
+ if (I.length === 0) continue;
5250
+ const x = Dt(p2), v = x.length > 0;
5251
+ for (const A of I) {
5252
+ if (!f(A.spec)) continue;
5253
+ const L = A.spec;
5254
5254
  if (v) {
5255
- if (It(A2.data))
5256
- throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A2.id}`);
5257
- const P = St(A2.data);
5258
- if (!P) {
5255
+ if (Lt(A.data))
5256
+ throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
5257
+ const P2 = _t(A.data);
5258
+ if (!P2) {
5259
5259
  if (s2) continue;
5260
5260
  return;
5261
5261
  }
5262
- if (!bn(P))
5263
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A2.id}`);
5264
- const F2 = Pt(P), k2 = x2[x2.length - 1];
5265
- if (k2 >= P.partitionKeyLength)
5266
- throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5267
- const W = x2.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], $ = (S, G2) => {
5268
- if (G2 >= x2.length) {
5269
- if (V.push([...S]), V.length > 1e4)
5262
+ if (!Sn(P2))
5263
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P2.type} for column ${A.id}`);
5264
+ const R = St(P2), k2 = x[x.length - 1];
5265
+ if (k2 >= P2.partitionKeyLength)
5266
+ throw new Error(`Not enough partition keys (${P2.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5267
+ const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))), j2 = [], $ = (S, G) => {
5268
+ if (G >= x.length) {
5269
+ if (j2.push([...S]), j2.length > 1e4)
5270
5270
  throw new Error("Too many key combinations, aborting.");
5271
5271
  return;
5272
5272
  }
5273
- const j = x2[G2];
5274
- if (j >= F2.length)
5275
- throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${F2.length}) during split key generation for column ${A2.id}`);
5276
- const N2 = F2[j];
5273
+ const V = x[G];
5274
+ if (V >= R.length)
5275
+ throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
5276
+ const N2 = R[V];
5277
5277
  if (!N2 || N2.length === 0) {
5278
- V.length = 0;
5278
+ j2.length = 0;
5279
5279
  return;
5280
5280
  }
5281
- for (const ee2 of N2)
5282
- S.push(ee2), $(S, G2 + 1), S.pop();
5281
+ for (const ee of N2)
5282
+ S.push(ee), $(S, G + 1), S.pop();
5283
5283
  };
5284
- if ($([], 0), V.length === 0)
5284
+ if ($([], 0), j2.length === 0)
5285
5285
  continue;
5286
- const K = [...L.axesSpec], Be = x2.map((S) => S);
5287
- for (let S = x2.length - 1; S >= 0; S--)
5288
- K.splice(x2[S], 1);
5289
- const We = { ...L, axesSpec: K };
5290
- for (const S of V) {
5291
- const G2 = S.map((j, N2) => {
5292
- const ee2 = Be[N2], Ge = p$1(L.axesSpec[ee2]), ue = W[N2], He = (ue == null ? void 0 : ue[j]) ?? String(j);
5293
- return { axisIdx: ee2, axisId: Ge, value: j, label: He };
5286
+ const F = [...L.axesSpec], Be = x.map((S) => S);
5287
+ for (let S = x.length - 1; S >= 0; S--)
5288
+ F.splice(x[S], 1);
5289
+ const We = { ...L, axesSpec: F };
5290
+ for (const S of j2) {
5291
+ const G = S.map((V, N2) => {
5292
+ const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[V]) ?? String(V);
5293
+ return { axisIdx: ee, axisId: Ge, value: V, label: He };
5294
5294
  });
5295
5295
  d.push({
5296
5296
  type: "split",
5297
- originalColumn: A2,
5297
+ originalColumn: A,
5298
5298
  spec: L,
5299
5299
  adjustedSpec: We,
5300
- dataEntries: P,
5301
- axisFilters: G2
5300
+ dataEntries: P2,
5301
+ axisFilters: G
5302
5302
  });
5303
5303
  }
5304
5304
  } else
5305
5305
  d.push({
5306
5306
  type: "direct",
5307
- originalColumn: A2,
5307
+ originalColumn: A,
5308
5308
  spec: L,
5309
5309
  adjustedSpec: L
5310
5310
  });
5311
5311
  }
5312
5312
  }
5313
5313
  if (d.length === 0) return [];
5314
- const f$1 = Ve(
5314
+ const f$1 = je(
5315
5315
  d,
5316
5316
  (p2) => ({
5317
5317
  spec: p2.spec,
5318
- suffixTrace: p2.type === "split" ? Tt(p2.axisFilters) : void 0
5318
+ suffixTrace: p2.type === "split" ? Et(p2.axisFilters) : void 0
5319
5319
  }),
5320
5320
  l2
5321
5321
  ), w2 = [];
5322
5322
  for (const { value: p2, label: g } of f$1) {
5323
- const { originalColumn: b, spec: h2 } = p2, I2 = p2.type === "split" ? p2.axisFilters : void 0, x2 = Et(I2);
5323
+ const { originalColumn: b, spec: h2 } = p2, I = p2.type === "split" ? p2.axisFilters : void 0, x = kt(I);
5324
5324
  let v;
5325
- r ? v = r.deriveS(h2, x2) : v = kt(b.id, x2);
5326
- let A2 = { ...p2.adjustedSpec };
5327
- o && (A2 = {
5328
- ...A2,
5325
+ r ? v = r.deriveS(h2, x) : v = Ot(b.id, x);
5326
+ let A = { ...p2.adjustedSpec };
5327
+ o && (A = {
5328
+ ...A,
5329
5329
  annotations: {
5330
- ...A2.annotations ?? {},
5330
+ ...A.annotations ?? {},
5331
5331
  "pl7.app/label": g
5332
5332
  }
5333
5333
  }), w2.push({
5334
5334
  id: v,
5335
- spec: A2,
5336
- data: () => p2.type === "split" ? Pn(_t(p2.dataEntries, x2)) : p2.originalColumn.data,
5335
+ spec: A,
5336
+ data: () => p2.type === "split" ? Jn(It(p2.dataEntries, x)) : p2.originalColumn.data,
5337
5337
  label: g
5338
5338
  });
5339
5339
  }
@@ -5370,9 +5370,9 @@
5370
5370
  return true;
5371
5371
  }
5372
5372
  function _e(t) {
5373
- return Kn(t, (e) => e instanceof E ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
5373
+ return Wn(t, (e) => e instanceof E ? e.handle : En(e) ? Nn(e, (n2) => n2.handle) : e);
5374
5374
  }
5375
- class Dt {
5375
+ class Rt {
5376
5376
  constructor() {
5377
5377
  O(this, "ctx", m());
5378
5378
  }
@@ -5383,28 +5383,28 @@
5383
5383
  return this.ctx.calculateOptions(e);
5384
5384
  }
5385
5385
  getOptions(e, n2) {
5386
- const r = typeof e == "function" ? e : _n(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5386
+ const r = typeof e == "function" ? e : Gn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5387
5387
  let s2 = {}, o = false;
5388
- 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 }) => ({
5389
- ref: zn(a, o),
5388
+ 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" ? je(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5389
+ ref: te$1(a, o),
5390
5390
  label: l2
5391
5391
  })) : i.map(({ ref: a, obj: l2 }) => ({
5392
- ref: zn(a, o),
5392
+ ref: te$1(a, o),
5393
5393
  label: s2(l2, a)
5394
5394
  }));
5395
5395
  }
5396
5396
  resolveAnchorCtx(e) {
5397
- if (e instanceof Vn) return e;
5397
+ if (e instanceof _n) return e;
5398
5398
  const n2 = {};
5399
5399
  for (const [r, i] of Object.entries(e))
5400
- if (qn(i)) {
5400
+ if (ne(i)) {
5401
5401
  const s2 = this.getPColumnSpecByRef(i);
5402
5402
  if (!s2)
5403
5403
  return;
5404
5404
  n2[r] = s2;
5405
5405
  } else
5406
5406
  n2[r] = i;
5407
- return new Vn(n2);
5407
+ return new _n(n2);
5408
5408
  }
5409
5409
  /**
5410
5410
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5497,7 +5497,7 @@
5497
5497
  ref: n2.ref,
5498
5498
  obj: {
5499
5499
  ...n2.obj,
5500
- data: Gn(
5500
+ data: oe$1(
5501
5501
  n2.obj.data,
5502
5502
  (r) => new E(r, [n2.ref.blockId, n2.ref.name])
5503
5503
  )
@@ -5526,7 +5526,7 @@
5526
5526
  )) == null ? void 0 : r.obj;
5527
5527
  const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
5528
5528
  if (n2)
5529
- return Kn(
5529
+ return Wn(
5530
5530
  n2,
5531
5531
  (i) => new E(i, [e.blockId, e.name])
5532
5532
  );
@@ -5539,7 +5539,7 @@
5539
5539
  getPColumnByRef(e) {
5540
5540
  const n2 = this.getDataByRef(e);
5541
5541
  if (n2)
5542
- return Un(n2);
5542
+ return qn(n2);
5543
5543
  }
5544
5544
  /**
5545
5545
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -5589,7 +5589,7 @@
5589
5589
  findLabels(e) {
5590
5590
  const n2 = this.getData();
5591
5591
  for (const r of n2.entries) {
5592
- if (!Z$1(r.obj)) continue;
5592
+ if (!rn(r.obj)) continue;
5593
5593
  const i = r.obj.spec;
5594
5594
  if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && de(e.domain, i.axesSpec[0].domain)) {
5595
5595
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -5610,7 +5610,7 @@
5610
5610
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
5611
5611
  */
5612
5612
  selectColumns(e) {
5613
- const n2 = typeof e == "function" ? e : _n(e);
5613
+ const n2 = typeof e == "function" ? e : Gn(e);
5614
5614
  return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
5615
5615
  const o = s2;
5616
5616
  let a = null;
@@ -5647,7 +5647,7 @@
5647
5647
  O(this, "args");
5648
5648
  O(this, "uiState");
5649
5649
  O(this, "_activeArgsCache");
5650
- O(this, "resultPool", new Dt());
5650
+ O(this, "resultPool", new Rt());
5651
5651
  this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5652
5652
  }
5653
5653
  /**
@@ -5685,7 +5685,7 @@
5685
5685
  }
5686
5686
  verifyInlineAndExplicitColumnsSupport(e) {
5687
5687
  var i;
5688
- const n2 = e.some((s2) => !(s2.data instanceof E) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5688
+ const n2 = e.some((s2) => !(s2.data instanceof E) || En(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5689
5689
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5690
5690
  }
5691
5691
  // TODO remove all non-PColumn fields
@@ -5703,8 +5703,8 @@
5703
5703
  },
5704
5704
  filters: e.filters ?? [],
5705
5705
  sorting: e.sorting ?? []
5706
- } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
5707
- Dn$1(n2, (r) => _e(r))
5706
+ } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Xn(n2.src)), this.ctx.createPTable(
5707
+ Un(n2, (r) => _e(r))
5708
5708
  );
5709
5709
  }
5710
5710
  /** @deprecated scheduled for removal from SDK */
@@ -5724,13 +5724,13 @@
5724
5724
  this.ctx.logError(e);
5725
5725
  }
5726
5726
  }
5727
- const Y = "1.33.16";
5728
- function Rt(t) {
5727
+ const Y = "1.34.0";
5728
+ function Ft(t) {
5729
5729
  return t.__renderLambda === true;
5730
5730
  }
5731
5731
  function pe(t) {
5732
5732
  if (t !== void 0)
5733
- return Rt(t) ? t.handle : t;
5733
+ return Ft(t) ? t.handle : t;
5734
5734
  }
5735
5735
  class T {
5736
5736
  constructor(e, n2, r, i, s2, o, a, l2) {
@@ -5930,7 +5930,7 @@
5930
5930
  Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
5931
5931
  )
5932
5932
  };
5933
- return dt() ? De({ sdkVersion: Y }) : { config: e };
5933
+ return pt() ? De({ sdkVersion: Y }) : { config: e };
5934
5934
  }
5935
5935
  }
5936
5936
  function ve(t) {
@@ -5951,10 +5951,10 @@
5951
5951
  for (const a of r)
5952
5952
  for (const l2 of a.spec.axesSpec) {
5953
5953
  const u2 = p$1(l2);
5954
- i.some((c2) => X(c2, u2)) || i.push(u2);
5954
+ i.some((c2) => Z$1(c2, u2)) || i.push(u2);
5955
5955
  }
5956
5956
  for (const a of n2) {
5957
- const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((c2) => X(c2, l2));
5957
+ const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((c2) => Z$1(c2, l2));
5958
5958
  u2 !== -1 && i.splice(u2, 1);
5959
5959
  }
5960
5960
  const s2 = (a, l2) => {
@@ -5965,7 +5965,7 @@
5965
5965
  return u2;
5966
5966
  }, o = [];
5967
5967
  for (const a of e) {
5968
- const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => X(d, u2));
5968
+ const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => Z$1(d, u2));
5969
5969
  if (c2 !== -1) {
5970
5970
  const d = i[c2], y = Object.keys(d.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
5971
5971
  y > f2 ? o.push({
@@ -6021,39 +6021,39 @@
6021
6021
  sorting: i
6022
6022
  };
6023
6023
  }
6024
- function On(t, e, n2, r) {
6024
+ function Dn(t, e, n2, r) {
6025
6025
  var u2, c2;
6026
6026
  Array.isArray(r) && (r = { filters: r });
6027
6027
  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 = ((c2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : c2.sorting) ?? [], a = Ne(t.resultPool);
6028
6028
  if (!a) return;
6029
- const l2 = Je(e.map($n), a);
6029
+ const l2 = Je(e.map(Fn), a);
6030
6030
  if (Me([...e, ...l2]))
6031
6031
  return t.createPTable(
6032
6032
  Ue(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
6033
6033
  );
6034
6034
  }
6035
- function Ft(t) {
6035
+ function Kt(t) {
6036
6036
  var e;
6037
6037
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
6038
6038
  }
6039
- function Kt(t) {
6039
+ function jt(t) {
6040
6040
  var e;
6041
6041
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
6042
6042
  }
6043
- function Dn(t, e, n2, r, i) {
6043
+ function Rn(t, e, n2, r, i) {
6044
6044
  var g, b;
6045
- const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l2 = e.filter((h2) => !Ft(h2.spec)), u2 = l2.find((h2) => n2(h2.spec));
6045
+ const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l2 = e.filter((h2) => !Kt(h2.spec)), u2 = l2.find((h2) => n2(h2.spec));
6046
6046
  if (!u2) return;
6047
6047
  const c2 = Ne(t.resultPool);
6048
6048
  if (!c2) return;
6049
6049
  const d = new Set((() => {
6050
- var I2, x2;
6050
+ var I, x;
6051
6051
  if (s2 === "inner") return [];
6052
- const h2 = (x2 = (I2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I2.hiddenColIds) == null ? void 0 : x2.map(ee).filter((v) => v.type === "column").map((v) => v.id);
6053
- return h2 || l2.filter((v) => Kt(v.spec)).map((v) => v.id);
6052
+ const h2 = (x = (I = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I.hiddenColIds) == null ? void 0 : x.map(ce$1).filter((v) => v.type === "column").map((v) => v.id);
6053
+ return h2 || l2.filter((v) => jt(v.spec)).map((v) => v.id);
6054
6054
  })());
6055
6055
  d.delete(u2.id), [...o.map((h2) => h2.column), ...a.map((h2) => h2.column)].filter((h2) => h2.type === "column").map((h2) => d.delete(h2.id));
6056
- const y = l2.filter((h2) => !d.has(h2.id)), f2 = Je(y.map($n), c2), w2 = [
6056
+ const y = l2.filter((h2) => !d.has(h2.id)), f2 = Je(y.map(Fn), c2), w2 = [
6057
6057
  ...u2.spec.axesSpec.map((h2) => ({
6058
6058
  type: "axis",
6059
6059
  id: p$1(h2),
@@ -6074,7 +6074,7 @@
6074
6074
  tableHandle: p2
6075
6075
  };
6076
6076
  }
6077
- const ImportFileHandleSchema = z$2.string().optional().refine(
6077
+ const ImportFileHandleSchema = z$1.string().optional().refine(
6078
6078
  (_a) => true
6079
6079
  );
6080
6080
  function* range(from, to, step = 1) {
@@ -6092,10 +6092,10 @@
6092
6092
  function times(n2, cb) {
6093
6093
  return toList(range(0, n2)).map(cb);
6094
6094
  }
6095
- const $BlockArgs = z$2.object({
6096
- tableNumRows: z$2.number().default(100),
6097
- numbers: z$2.array(z$2.coerce.number()),
6098
- handles: z$2.array(ImportFileHandleSchema)
6095
+ const $BlockArgs = z$1.object({
6096
+ tableNumRows: z$1.number().default(100),
6097
+ numbers: z$1.array(z$1.coerce.number()),
6098
+ handles: z$1.array(ImportFileHandleSchema)
6099
6099
  });
6100
6100
  const platforma = T.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
6101
6101
  if (ctx.args.numbers.length === 5) {
@@ -6120,7 +6120,7 @@
6120
6120
  val: v.toString()
6121
6121
  };
6122
6122
  });
6123
- return On(
6123
+ return Dn(
6124
6124
  ctx,
6125
6125
  [
6126
6126
  {
@@ -6173,7 +6173,7 @@
6173
6173
  val: v.toString()
6174
6174
  };
6175
6175
  });
6176
- return Dn(
6176
+ return Rn(
6177
6177
  ctx,
6178
6178
  [
6179
6179
  {
@@ -6208,7 +6208,7 @@
6208
6208
  data
6209
6209
  }
6210
6210
  ],
6211
- _n({
6211
+ Gn({
6212
6212
  name: "example"
6213
6213
  }),
6214
6214
  ctx.uiState.dataTableState.tableState,