@milaboratories/milaboratories.pool-explorer.model 1.0.78 → 1.0.80

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
@@ -3069,7 +3069,7 @@
3069
3069
  });
3070
3070
  }
3071
3071
  const params = { errorMap: ctx.common.contextualErrorMap };
3072
- const fn2 = ctx.data;
3072
+ const fn = 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(fn2, this, parsedArgs);
3081
+ const result = await Reflect.apply(fn, 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(fn2, this, parsedArgs.data);
3095
+ const result = Reflect.apply(fn, 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)]);
@@ -3955,20 +3955,20 @@
3955
3955
  return canonicalize;
3956
3956
  }
3957
3957
  var canonicalizeExports = requireCanonicalize();
3958
- const Be = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
- var R = Object.defineProperty;
3960
- var L$1 = (e, n2, t) => n2 in e ? R(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
3961
- var d = (e, n2, t) => L$1(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
3958
+ const Be$1 = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
+ var V$1 = Object.defineProperty;
3960
+ var T = (e, n2, r) => n2 in e ? V$1(e, n2, { enumerable: true, configurable: true, writable: true, value: r }) : e[n2] = r;
3961
+ var d = (e, n2, r) => T(e, typeof n2 != "symbol" ? n2 + "" : n2, r);
3962
3962
  z$1.object({
3963
3963
  /** Included left border. */
3964
3964
  from: z$1.number(),
3965
3965
  /** Excluded right border. */
3966
3966
  to: z$1.number()
3967
3967
  });
3968
- function A(e) {
3968
+ function g(e) {
3969
3969
  throw new Error("Unexpected object: " + e);
3970
3970
  }
3971
- function $e$1(e) {
3971
+ function Se(e) {
3972
3972
  if (!e || typeof e != "object")
3973
3973
  return false;
3974
3974
  const n2 = e;
@@ -3985,30 +3985,30 @@
3985
3985
  return false;
3986
3986
  }
3987
3987
  }
3988
- function Ve$1(e, n2) {
3988
+ function Oe$1(e, n2) {
3989
3989
  if (e !== void 0)
3990
3990
  switch (e.type) {
3991
3991
  case "Json":
3992
3992
  return e;
3993
3993
  case "JsonPartitioned": {
3994
- const t = {};
3995
- for (const [r, o] of Object.entries(e.parts))
3996
- t[r] = n2(o);
3994
+ const r = {};
3995
+ for (const [t, o] of Object.entries(e.parts))
3996
+ r[t] = n2(o);
3997
3997
  return {
3998
3998
  ...e,
3999
- parts: t
3999
+ parts: r
4000
4000
  };
4001
4001
  }
4002
4002
  case "BinaryPartitioned": {
4003
- const t = {};
4004
- for (const [r, o] of Object.entries(e.parts))
4005
- t[r] = {
4003
+ const r = {};
4004
+ for (const [t, o] of Object.entries(e.parts))
4005
+ r[t] = {
4006
4006
  index: n2(o.index),
4007
4007
  values: n2(o.values)
4008
4008
  };
4009
4009
  return {
4010
4010
  ...e,
4011
- parts: t
4011
+ parts: r
4012
4012
  };
4013
4013
  }
4014
4014
  }
@@ -4030,13 +4030,13 @@
4030
4030
  return false;
4031
4031
  }
4032
4032
  }
4033
- function Ie(e) {
4033
+ function Fe(e) {
4034
4034
  return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : false;
4035
4035
  }
4036
- function Je(e) {
4036
+ function je(e) {
4037
4037
  switch (e.type) {
4038
4038
  case "Json": {
4039
- const n2 = Object.entries(e.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
4039
+ const n2 = Object.entries(e.data).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
4040
4040
  return {
4041
4041
  type: "Json",
4042
4042
  keyLength: e.keyLength,
@@ -4044,7 +4044,7 @@
4044
4044
  };
4045
4045
  }
4046
4046
  case "JsonPartitioned": {
4047
- const n2 = Object.entries(e.parts).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
4047
+ const n2 = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
4048
4048
  return {
4049
4049
  type: "JsonPartitioned",
4050
4050
  partitionKeyLength: e.partitionKeyLength,
@@ -4052,7 +4052,7 @@
4052
4052
  };
4053
4053
  }
4054
4054
  case "BinaryPartitioned": {
4055
- const n2 = Object.entries(e.parts).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
4055
+ const n2 = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
4056
4056
  return {
4057
4057
  type: "BinaryPartitioned",
4058
4058
  partitionKeyLength: e.partitionKeyLength,
@@ -4061,12 +4061,12 @@
4061
4061
  }
4062
4062
  }
4063
4063
  }
4064
- function De(e) {
4064
+ function Ie(e) {
4065
4065
  switch (e.type) {
4066
4066
  case "Json": {
4067
4067
  const n2 = {};
4068
- for (const t of e.data)
4069
- n2[JSON.stringify(t.key)] = t.value;
4068
+ for (const r of e.data)
4069
+ n2[JSON.stringify(r.key)] = r.value;
4070
4070
  return {
4071
4071
  type: "Json",
4072
4072
  keyLength: e.keyLength,
@@ -4075,8 +4075,8 @@
4075
4075
  }
4076
4076
  case "JsonPartitioned": {
4077
4077
  const n2 = {};
4078
- for (const t of e.parts)
4079
- n2[JSON.stringify(t.key)] = t.value;
4078
+ for (const r of e.parts)
4079
+ n2[JSON.stringify(r.key)] = r.value;
4080
4080
  return {
4081
4081
  type: "JsonPartitioned",
4082
4082
  partitionKeyLength: e.partitionKeyLength,
@@ -4085,8 +4085,8 @@
4085
4085
  }
4086
4086
  case "BinaryPartitioned": {
4087
4087
  const n2 = {};
4088
- for (const t of e.parts)
4089
- n2[JSON.stringify(t.key)] = t.value;
4088
+ for (const r of e.parts)
4089
+ n2[JSON.stringify(r.key)] = r.value;
4090
4090
  return {
4091
4091
  type: "BinaryPartitioned",
4092
4092
  partitionKeyLength: e.partitionKeyLength,
@@ -4095,27 +4095,27 @@
4095
4095
  }
4096
4096
  }
4097
4097
  }
4098
- function y(e) {
4099
- const { type: n2, name: t, domain: r } = e, o = { type: n2, name: t };
4100
- return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
4098
+ function h(e) {
4099
+ const { type: n2, name: r, domain: t } = e, o = { type: n2, name: r };
4100
+ return t && Object.entries(t).length > 0 && Object.assign(o, { domain: t }), o;
4101
4101
  }
4102
- function C(e) {
4103
- return e.map(y);
4102
+ function I(e) {
4103
+ return e.map(h);
4104
4104
  }
4105
- function He(e) {
4106
- return Be(y(e));
4105
+ function Te$1(e) {
4106
+ return Be$1(h(e));
4107
4107
  }
4108
- function ee$1(e, n2) {
4108
+ function G$1(e, n2) {
4109
4109
  if (e === void 0) return n2 === void 0;
4110
4110
  if (n2 === void 0) return true;
4111
- for (const t in n2)
4112
- if (e[t] !== n2[t]) return false;
4111
+ for (const r in n2)
4112
+ if (e[r] !== n2[r]) return false;
4113
4113
  return true;
4114
4114
  }
4115
- function ne$1(e, n2) {
4116
- return e.name === n2.name && ee$1(e.domain, n2.domain);
4115
+ function X$1(e, n2) {
4116
+ return e.name === n2.name && G$1(e.domain, n2.domain);
4117
4117
  }
4118
- function We$1(e, n2) {
4118
+ function Be(e, n2) {
4119
4119
  return { ...e, src: b$1(e.src, n2) };
4120
4120
  }
4121
4121
  function b$1(e, n2) {
@@ -4138,28 +4138,28 @@
4138
4138
  case "full":
4139
4139
  return {
4140
4140
  type: e.type,
4141
- entries: e.entries.map((t) => b$1(t, n2))
4141
+ entries: e.entries.map((r) => b$1(r, n2))
4142
4142
  };
4143
4143
  case "outer":
4144
4144
  return {
4145
4145
  type: "outer",
4146
4146
  primary: b$1(e.primary, n2),
4147
- secondary: e.secondary.map((t) => b$1(t, n2))
4147
+ secondary: e.secondary.map((r) => b$1(r, n2))
4148
4148
  };
4149
4149
  default:
4150
- A(e);
4150
+ g(e);
4151
4151
  }
4152
4152
  }
4153
- function te(e) {
4154
- return Be(e);
4153
+ function Q$1(e) {
4154
+ return Be$1(e);
4155
4155
  }
4156
- function x(e) {
4157
- return Be(y(e));
4156
+ function A(e) {
4157
+ return Be$1(h(e));
4158
4158
  }
4159
- function S(e, n2) {
4159
+ function x(e, n2) {
4160
4160
  return JSON.stringify([e, n2]);
4161
4161
  }
4162
- class Qe {
4162
+ class Me {
4163
4163
  /**
4164
4164
  * Creates a new anchor context from a set of anchor column specifications
4165
4165
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -4170,19 +4170,19 @@
4170
4170
  d(this, "domainPacks", []);
4171
4171
  d(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4172
4172
  this.anchors = n2;
4173
- const t = Object.entries(n2);
4174
- t.sort((r, o) => r[0].localeCompare(o[0]));
4175
- for (const [r, o] of t) {
4173
+ const r = Object.entries(n2);
4174
+ r.sort((t, o) => t[0].localeCompare(o[0]));
4175
+ for (const [t, o] of r) {
4176
4176
  for (let i = 0; i < o.axesSpec.length; i++) {
4177
- const a = o.axesSpec[i], s2 = x(a);
4178
- this.axes.set(s2, { anchor: r, idx: i });
4177
+ const s2 = o.axesSpec[i], a = A(s2);
4178
+ this.axes.set(a, { anchor: t, idx: i });
4179
4179
  }
4180
4180
  if (o.domain !== void 0) {
4181
4181
  const i = Object.entries(o.domain);
4182
- i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
4183
- for (const [a, s2] of i) {
4184
- const u2 = S(a, s2);
4185
- this.domains.set(u2, r);
4182
+ i.sort((s2, a) => s2[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(i), t), this.domainPacks.push(i.map(([s2]) => s2));
4183
+ for (const [s2, a] of i) {
4184
+ const u2 = x(s2, a);
4185
+ this.domains.set(u2, t);
4186
4186
  }
4187
4187
  }
4188
4188
  }
@@ -4190,56 +4190,56 @@
4190
4190
  /**
4191
4191
  * Implementation of derive method
4192
4192
  */
4193
- derive(n2, t) {
4194
- const r = {
4193
+ derive(n2, r) {
4194
+ const t = {
4195
4195
  name: n2.name,
4196
4196
  axes: []
4197
4197
  };
4198
4198
  let o;
4199
4199
  if (n2.domain !== void 0)
4200
4200
  e:
4201
- for (const a of this.domainPacks) {
4202
- const s2 = [];
4203
- for (const c2 of a) {
4201
+ for (const s2 of this.domainPacks) {
4202
+ const a = [];
4203
+ for (const c2 of s2) {
4204
4204
  const f = n2.domain[c2];
4205
4205
  if (f !== void 0)
4206
- s2.push([c2, f]);
4206
+ a.push([c2, f]);
4207
4207
  else
4208
4208
  break e;
4209
4209
  }
4210
- const u2 = this.domainPackToAnchor.get(JSON.stringify(s2));
4210
+ const u2 = this.domainPackToAnchor.get(JSON.stringify(a));
4211
4211
  if (u2 !== void 0) {
4212
- r.domainAnchor = u2, o = new Set(a);
4212
+ t.domainAnchor = u2, o = new Set(s2);
4213
4213
  break;
4214
4214
  }
4215
4215
  }
4216
- for (const [a, s2] of Object.entries(n2.domain ?? {})) {
4217
- if (o !== void 0 && o.has(a))
4216
+ for (const [s2, a] of Object.entries(n2.domain ?? {})) {
4217
+ if (o !== void 0 && o.has(s2))
4218
4218
  continue;
4219
- const u2 = S(a, s2), c2 = this.domains.get(u2);
4220
- r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
4221
- }
4222
- if (r.axes = n2.axesSpec.map((a) => {
4223
- const s2 = x(a), u2 = this.axes.get(s2);
4224
- return u2 === void 0 ? y(a) : u2;
4225
- }), !t || t.length === 0)
4226
- return r;
4219
+ const u2 = x(s2, a), c2 = this.domains.get(u2);
4220
+ t.domain ?? (t.domain = {}), t.domain[s2] = c2 ? { anchor: c2 } : a;
4221
+ }
4222
+ if (t.axes = n2.axesSpec.map((s2) => {
4223
+ const a = A(s2), u2 = this.axes.get(a);
4224
+ return u2 === void 0 ? h(s2) : u2;
4225
+ }), !r || r.length === 0)
4226
+ return t;
4227
4227
  const i = [];
4228
- for (const a of t) {
4229
- const [s2, u2] = a;
4230
- if (typeof s2 == "number") {
4231
- if (s2 < 0 || s2 >= n2.axesSpec.length)
4232
- throw new Error(`Axis index ${s2} is out of bounds (0-${n2.axesSpec.length - 1})`);
4233
- i.push([s2, u2]);
4228
+ for (const s2 of r) {
4229
+ const [a, u2] = s2;
4230
+ if (typeof a == "number") {
4231
+ if (a < 0 || a >= n2.axesSpec.length)
4232
+ throw new Error(`Axis index ${a} is out of bounds (0-${n2.axesSpec.length - 1})`);
4233
+ i.push([a, u2]);
4234
4234
  } else {
4235
- const c2 = n2.axesSpec.findIndex((f) => f.name === s2);
4235
+ const c2 = n2.axesSpec.findIndex((f) => f.name === a);
4236
4236
  if (c2 === -1)
4237
- throw new Error(`Axis with name "${s2}" not found in the column specification`);
4237
+ throw new Error(`Axis with name "${a}" not found in the column specification`);
4238
4238
  i.push([c2, u2]);
4239
4239
  }
4240
4240
  }
4241
- return i.sort((a, s2) => a[0] - s2[0]), {
4242
- source: r,
4241
+ return i.sort((s2, a) => s2[0] - a[0]), {
4242
+ source: t,
4243
4243
  axisFilters: i
4244
4244
  };
4245
4245
  }
@@ -4249,111 +4249,111 @@
4249
4249
  * @param axisFilters Optional axis filters to apply to the column
4250
4250
  * @returns A canonicalized string representation of the anchored column identifier
4251
4251
  */
4252
- deriveS(n2, t) {
4253
- return te(this.derive(n2, t));
4252
+ deriveS(n2, r) {
4253
+ return Q$1(this.derive(n2, r));
4254
4254
  }
4255
4255
  }
4256
- function Ye(e, n2, t) {
4257
- const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
4258
- if (r.domainAnchor !== void 0) {
4259
- const i = e[r.domainAnchor];
4256
+ function _e(e, n2, r) {
4257
+ const t = { ...n2 }, o = (r == null ? void 0 : r.ignoreMissingDomains) ?? false;
4258
+ if (t.domainAnchor !== void 0) {
4259
+ const i = e[t.domainAnchor];
4260
4260
  if (!i)
4261
- throw new Error(`Anchor "${r.domainAnchor}" not found`);
4262
- const a = i.domain || {};
4263
- r.domain = { ...a, ...r.domain }, delete r.domainAnchor;
4261
+ throw new Error(`Anchor "${t.domainAnchor}" not found`);
4262
+ const s2 = i.domain || {};
4263
+ t.domain = { ...s2, ...t.domain }, delete t.domainAnchor;
4264
4264
  }
4265
- if (r.domain) {
4265
+ if (t.domain) {
4266
4266
  const i = {};
4267
- for (const [a, s2] of Object.entries(r.domain))
4268
- if (typeof s2 == "string")
4269
- i[a] = s2;
4267
+ for (const [s2, a] of Object.entries(t.domain))
4268
+ if (typeof a == "string")
4269
+ i[s2] = a;
4270
4270
  else {
4271
- const u2 = e[s2.anchor];
4271
+ const u2 = e[a.anchor];
4272
4272
  if (!u2)
4273
- throw new Error(`Anchor "${s2.anchor}" not found for domain key "${a}"`);
4274
- if (!u2.domain || u2.domain[a] === void 0) {
4273
+ throw new Error(`Anchor "${a.anchor}" not found for domain key "${s2}"`);
4274
+ if (!u2.domain || u2.domain[s2] === void 0) {
4275
4275
  if (!o)
4276
- throw new Error(`Domain key "${a}" not found in anchor "${s2.anchor}"`);
4276
+ throw new Error(`Domain key "${s2}" not found in anchor "${a.anchor}"`);
4277
4277
  continue;
4278
4278
  }
4279
- i[a] = u2.domain[a];
4279
+ i[s2] = u2.domain[s2];
4280
4280
  }
4281
- r.domain = i;
4281
+ t.domain = i;
4282
4282
  }
4283
- return r.axes && (r.axes = r.axes.map((i) => re(e, i))), r;
4283
+ return t.axes && (t.axes = t.axes.map((i) => Y(e, i))), t;
4284
4284
  }
4285
- function re(e, n2) {
4286
- if (!oe(n2))
4285
+ function Y(e, n2) {
4286
+ if (!Z(n2))
4287
4287
  return n2;
4288
- const t = n2.anchor, r = e[t];
4289
- if (!r)
4290
- throw new Error(`Anchor "${t}" not found for axis reference`);
4288
+ const r = n2.anchor, t = e[r];
4289
+ if (!t)
4290
+ throw new Error(`Anchor "${r}" not found for axis reference`);
4291
4291
  if ("idx" in n2) {
4292
- if (n2.idx < 0 || n2.idx >= r.axesSpec.length)
4293
- throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${t}"`);
4294
- return r.axesSpec[n2.idx];
4292
+ if (n2.idx < 0 || n2.idx >= t.axesSpec.length)
4293
+ throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${r}"`);
4294
+ return t.axesSpec[n2.idx];
4295
4295
  } else if ("name" in n2) {
4296
- const o = r.axesSpec.filter((i) => i.name === n2.name);
4296
+ const o = t.axesSpec.filter((i) => i.name === n2.name);
4297
4297
  if (o.length > 1)
4298
- throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${t}"`);
4298
+ throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${r}"`);
4299
4299
  if (o.length === 0)
4300
- throw new Error(`Axis with name "${n2.name}" not found in anchor "${t}"`);
4300
+ throw new Error(`Axis with name "${n2.name}" not found in anchor "${r}"`);
4301
4301
  return o[0];
4302
4302
  } else if ("id" in n2) {
4303
- const o = r.axesSpec.filter((i) => ne$1(n2.id, y(i)));
4303
+ const o = t.axesSpec.filter((i) => X$1(n2.id, h(i)));
4304
4304
  if (o.length > 1)
4305
- throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4305
+ throw new Error(`Multiple matching axes found for matcher in anchor "${r}"`);
4306
4306
  if (o.length === 0)
4307
- throw new Error(`No matching axis found for matcher in anchor "${t}"`);
4307
+ throw new Error(`No matching axis found for matcher in anchor "${r}"`);
4308
4308
  return o[0];
4309
4309
  }
4310
4310
  throw new Error("Unsupported axis reference type");
4311
4311
  }
4312
- function oe(e) {
4312
+ function Z(e) {
4313
4313
  return typeof e == "object" && "anchor" in e;
4314
4314
  }
4315
4315
  function l$1(e) {
4316
4316
  return e.kind === "PColumn";
4317
4317
  }
4318
- function ie(e) {
4318
+ function ee$1(e) {
4319
4319
  return l$1(e.spec);
4320
4320
  }
4321
- function tn(e) {
4322
- if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
4321
+ function We$1(e) {
4322
+ if (!ee$1(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
4323
4323
  return e;
4324
4324
  }
4325
- function rn(e, n2) {
4325
+ function Ge$1(e, n2) {
4326
4326
  return e === void 0 ? void 0 : {
4327
4327
  ...e,
4328
4328
  data: n2(e.data)
4329
4329
  };
4330
4330
  }
4331
- function on(e) {
4332
- const n2 = /* @__PURE__ */ new Map(), t = (r) => {
4333
- switch (r.type) {
4331
+ function Xe$1(e) {
4332
+ const n2 = /* @__PURE__ */ new Map(), r = (t) => {
4333
+ switch (t.type) {
4334
4334
  case "column":
4335
- n2.set(r.column.id, r.column);
4335
+ n2.set(t.column.id, t.column);
4336
4336
  return;
4337
4337
  case "slicedColumn":
4338
- n2.set(r.column.id, r.column);
4338
+ n2.set(t.column.id, t.column);
4339
4339
  return;
4340
4340
  case "inlineColumn":
4341
4341
  return;
4342
4342
  case "full":
4343
4343
  case "inner":
4344
- for (const o of r.entries) t(o);
4344
+ for (const o of t.entries) r(o);
4345
4345
  return;
4346
4346
  case "outer":
4347
- t(r.primary);
4348
- for (const o of r.secondary) t(o);
4347
+ r(t.primary);
4348
+ for (const o of t.secondary) r(o);
4349
4349
  return;
4350
4350
  default:
4351
- A(r);
4351
+ g(t);
4352
4352
  }
4353
4353
  };
4354
- return t(e), [...n2.values()];
4354
+ return r(e), [...n2.values()];
4355
4355
  }
4356
- function v(e, n2) {
4356
+ function P(e, n2) {
4357
4357
  if (e.name !== void 0 && e.name !== n2.name)
4358
4358
  return false;
4359
4359
  if (e.type !== void 0) {
@@ -4364,14 +4364,14 @@
4364
4364
  return false;
4365
4365
  }
4366
4366
  if (e.domain !== void 0) {
4367
- const t = n2.domain || {};
4368
- for (const [r, o] of Object.entries(e.domain))
4369
- if (t[r] !== o)
4367
+ const r = n2.domain || {};
4368
+ for (const [t, o] of Object.entries(e.domain))
4369
+ if (r[t] !== o)
4370
4370
  return false;
4371
4371
  }
4372
4372
  return true;
4373
4373
  }
4374
- function N(e, n2) {
4374
+ function E(e, n2) {
4375
4375
  if (n2.name !== void 0 && e.name !== n2.name || n2.namePattern !== void 0 && !new RegExp(n2.namePattern).test(e.name))
4376
4376
  return false;
4377
4377
  if (n2.type !== void 0) {
@@ -4382,50 +4382,50 @@
4382
4382
  return false;
4383
4383
  }
4384
4384
  if (n2.domain !== void 0) {
4385
- const t = e.domain || {};
4386
- for (const [r, o] of Object.entries(n2.domain))
4387
- if (t[r] !== o)
4385
+ const r = e.domain || {};
4386
+ for (const [t, o] of Object.entries(n2.domain))
4387
+ if (r[t] !== o)
4388
4388
  return false;
4389
4389
  }
4390
4390
  if (n2.axes !== void 0) {
4391
- const t = e.axesSpec.map(y);
4391
+ const r = e.axesSpec.map(h);
4392
4392
  if (n2.partialAxesMatch) {
4393
- for (const r of n2.axes)
4394
- if (!t.some((o) => v(r, o)))
4393
+ for (const t of n2.axes)
4394
+ if (!r.some((o) => P(t, o)))
4395
4395
  return false;
4396
4396
  } else {
4397
- if (t.length !== n2.axes.length)
4397
+ if (r.length !== n2.axes.length)
4398
4398
  return false;
4399
- for (let r = 0; r < n2.axes.length; r++)
4400
- if (!v(n2.axes[r], t[r]))
4399
+ for (let t = 0; t < n2.axes.length; t++)
4400
+ if (!P(n2.axes[t], r[t]))
4401
4401
  return false;
4402
4402
  }
4403
4403
  }
4404
4404
  if (n2.annotations !== void 0) {
4405
- const t = e.annotations || {};
4406
- for (const [r, o] of Object.entries(n2.annotations))
4407
- if (t[r] !== o)
4405
+ const r = e.annotations || {};
4406
+ for (const [t, o] of Object.entries(n2.annotations))
4407
+ if (r[t] !== o)
4408
4408
  return false;
4409
4409
  }
4410
4410
  if (n2.annotationPatterns !== void 0) {
4411
- const t = e.annotations || {};
4412
- for (const [r, o] of Object.entries(n2.annotationPatterns)) {
4413
- const i = t[r];
4411
+ const r = e.annotations || {};
4412
+ for (const [t, o] of Object.entries(n2.annotationPatterns)) {
4413
+ const i = r[t];
4414
4414
  if (i === void 0 || !new RegExp(o).test(i))
4415
4415
  return false;
4416
4416
  }
4417
4417
  }
4418
4418
  return true;
4419
4419
  }
4420
- function sn(e) {
4421
- return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && N(n2, t)) : (n2) => l$1(n2) && N(n2, e);
4420
+ function Qe(e) {
4421
+ return Array.isArray(e) ? (n2) => e.some((r) => l$1(n2) && E(n2, r)) : (n2) => l$1(n2) && E(n2, e);
4422
4422
  }
4423
- function an(e) {
4423
+ function Ye(e) {
4424
4424
  const n2 = {
4425
4425
  kind: e.kind,
4426
4426
  name: e.name
4427
4427
  };
4428
- return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)), Be(n2);
4428
+ return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = I(e.axesSpec)), Be$1(n2);
4429
4429
  }
4430
4430
  z$1.object({
4431
4431
  __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
@@ -4435,25 +4435,25 @@
4435
4435
  }).describe(
4436
4436
  "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."
4437
4437
  ).readonly();
4438
- function fn(e) {
4438
+ function nn(e) {
4439
4439
  return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === true && "blockId" in e && "name" in e;
4440
4440
  }
4441
- function ln(e, n2 = true) {
4441
+ function tn(e, n2 = true) {
4442
4442
  if (n2)
4443
4443
  return {
4444
4444
  ...e,
4445
4445
  requireEnrichments: true
4446
4446
  };
4447
4447
  {
4448
- const { requireEnrichments: t, ...r } = e;
4449
- return r;
4448
+ const { requireEnrichments: r, ...t } = e;
4449
+ return t;
4450
4450
  }
4451
4451
  }
4452
- function mn(e, n2) {
4452
+ function an(e, n2) {
4453
4453
  return e.ok ? { ok: true, value: n2(e.value) } : e;
4454
4454
  }
4455
- const de = 24;
4456
- z$1.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4455
+ const ae = 24;
4456
+ z$1.string().length(ae).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4457
4457
  var stringify = { exports: {} };
4458
4458
  var hasRequiredStringify;
4459
4459
  function requireStringify() {
@@ -4519,7 +4519,7 @@
4519
4519
  function se(t) {
4520
4520
  return { type: "Immediate", value: t };
4521
4521
  }
4522
- function At() {
4522
+ function Pt() {
4523
4523
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4524
4524
  }
4525
4525
  function $e(t) {
@@ -4528,7 +4528,7 @@
4528
4528
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4529
4529
  throw new Error("Can't get platforma instance.");
4530
4530
  }
4531
- function wt() {
4531
+ function At() {
4532
4532
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4533
4533
  }
4534
4534
  function b() {
@@ -4536,13 +4536,13 @@
4536
4536
  throw new Error("Not in config rendering context");
4537
4537
  }
4538
4538
  function G(t, e) {
4539
- const n2 = wt();
4539
+ const n2 = At();
4540
4540
  if (n2 === void 0) return false;
4541
4541
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4542
4542
  return n2.callbackRegistry[t] = e, true;
4543
4543
  }
4544
4544
  const fe = /* @__PURE__ */ new Map();
4545
- function xt(t, e) {
4545
+ function wt(t, e) {
4546
4546
  t in b().callbackRegistry || (b().callbackRegistry[t] = (n2) => {
4547
4547
  for (const r of fe.get(t))
4548
4548
  r(n2);
@@ -4552,7 +4552,7 @@
4552
4552
  constructor(e, n2 = (r) => r) {
4553
4553
  V(this, "isResolved", false);
4554
4554
  V(this, "resolvedValue");
4555
- this.handle = e, this.postProcess = n2, xt(e, (r) => {
4555
+ this.handle = e, this.postProcess = n2, wt(e, (r) => {
4556
4556
  this.resolvedValue = n2(r), this.isResolved = true;
4557
4557
  });
4558
4558
  }
@@ -4675,7 +4675,7 @@
4675
4675
  getPColumns(e = false, n2 = "") {
4676
4676
  const r = this.parsePObjectCollection(e, n2);
4677
4677
  return r === void 0 ? void 0 : Object.entries(r).map(([, o]) => {
4678
- if (!ie(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
4678
+ if (!ee$1(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
4679
4679
  return o;
4680
4680
  });
4681
4681
  }
@@ -4693,7 +4693,7 @@
4693
4693
  const i = {};
4694
4694
  for (const [o, s2] of Object.entries(r)) {
4695
4695
  const a = [...this.resolvePath, o];
4696
- i[o] = rn(s2, (l2) => new O(l2, a));
4696
+ i[o] = Ge$1(s2, (l2) => new O(l2, a));
4697
4697
  }
4698
4698
  return i;
4699
4699
  }
@@ -4789,76 +4789,76 @@
4789
4789
  let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4790
4790
  (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4791
4791
  );
4792
- return o && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h]) => s2(u2, h));
4792
+ return o && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h2]) => s2(u2, h2));
4793
4793
  }
4794
4794
  }
4795
4795
  const We = "staging", Ge = "main";
4796
- const _t = "pl7.app/label", Lt = "pl7.app/trace", Et = z$1.object({
4796
+ const It = "pl7.app/label", _t = "pl7.app/trace", Lt = z$1.object({
4797
4797
  type: z$1.string(),
4798
4798
  importance: z$1.number().optional(),
4799
4799
  id: z$1.string().optional(),
4800
4800
  label: z$1.string()
4801
- }), Vt = z$1.array(Et), kt = 1e-3, Ot = "__LABEL__", Ee = "__LABEL__@1";
4801
+ }), Et = z$1.array(Lt), Vt = 1e-3, kt = "__LABEL__", Ee = "__LABEL__@1";
4802
4802
  function ze(t, e, n2 = {}) {
4803
4803
  const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s2 = t.map((d2) => {
4804
- var c2, v2;
4805
- const y2 = e(d2);
4806
- let p2, g, C2;
4807
- "spec" in y2 && typeof y2.spec == "object" ? (p2 = y2.spec, g = y2.prefixTrace, C2 = y2.suffixTrace) : p2 = y2;
4808
- const E = (c2 = p2.annotations) == null ? void 0 : c2[_t], x2 = (v2 = p2.annotations) == null ? void 0 : v2[Lt], S2 = (x2 ? Vt.safeParse(JSON.parse(x2)).data : void 0) ?? [], P = [
4809
- ...g ?? [],
4810
- ...S2,
4811
- ...C2 ?? []
4804
+ var c2, v;
4805
+ const y = e(d2);
4806
+ let p2, g2, C;
4807
+ "spec" in y && typeof y.spec == "object" ? (p2 = y.spec, g2 = y.prefixTrace, C = y.suffixTrace) : p2 = y;
4808
+ const E2 = (c2 = p2.annotations) == null ? void 0 : c2[It], F = (v = p2.annotations) == null ? void 0 : v[_t], S = (F ? Et.safeParse(JSON.parse(F)).data : void 0) ?? [], P2 = [
4809
+ ...g2 ?? [],
4810
+ ...S,
4811
+ ...C ?? []
4812
4812
  ];
4813
- if (E !== void 0) {
4814
- const I = { label: E, type: Ot, importance: -2 };
4815
- n2.addLabelAsSuffix ? P.push(I) : P.splice(0, 0, I);
4816
- }
4817
- const T = [], F = /* @__PURE__ */ new Map();
4818
- for (let I = P.length - 1; I >= 0; --I) {
4819
- const { type: $ } = P[I], K = P[I].importance ?? 0, j = (F.get($) ?? 0) + 1;
4820
- F.set($, j);
4821
- const N2 = `${$}@${j}`;
4822
- o.set(N2, (o.get(N2) ?? 0) + 1), r.set(
4823
- N2,
4813
+ if (E2 !== void 0) {
4814
+ const I2 = { label: E2, type: kt, importance: -2 };
4815
+ n2.addLabelAsSuffix ? P2.push(I2) : P2.splice(0, 0, I2);
4816
+ }
4817
+ const T2 = [], x2 = /* @__PURE__ */ new Map();
4818
+ for (let I2 = P2.length - 1; I2 >= 0; --I2) {
4819
+ const { type: $ } = P2[I2], K = P2[I2].importance ?? 0, j = (x2.get($) ?? 0) + 1;
4820
+ x2.set($, j);
4821
+ const N = `${$}@${j}`;
4822
+ o.set(N, (o.get(N) ?? 0) + 1), r.set(
4823
+ N,
4824
4824
  Math.max(
4825
- r.get(N2) ?? Number.NEGATIVE_INFINITY,
4826
- K - (P.length - I) * kt
4825
+ r.get(N) ?? Number.NEGATIVE_INFINITY,
4826
+ K - (P2.length - I2) * Vt
4827
4827
  )
4828
- ), T.push({ ...P[I], fullType: N2, occurrenceIndex: j });
4828
+ ), T2.push({ ...P2[I2], fullType: N, occurrenceIndex: j });
4829
4829
  }
4830
- return T.reverse(), {
4830
+ return T2.reverse(), {
4831
4831
  value: d2,
4832
4832
  spec: p2,
4833
- label: E,
4834
- fullTrace: T
4833
+ label: E2,
4834
+ fullTrace: T2
4835
4835
  };
4836
4836
  }), a = [], l2 = [], u2 = [...r];
4837
- u2.sort(([, d2], [, y2]) => y2 - d2);
4837
+ u2.sort(([, d2], [, y]) => y - d2);
4838
4838
  for (const [d2] of u2)
4839
4839
  d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
4840
- const h = (d2, y2 = false) => {
4840
+ const h2 = (d2, y = false) => {
4841
4841
  const p2 = [];
4842
- for (let g = 0; g < s2.length; g++) {
4843
- const C2 = s2[g], E = C2.fullTrace.filter((P) => d2.has(P.fullType) || i && i.has(P.type));
4844
- if (E.length === 0)
4845
- if (y2)
4842
+ for (let g2 = 0; g2 < s2.length; g2++) {
4843
+ const C = s2[g2], E2 = C.fullTrace.filter((P2) => d2.has(P2.fullType) || i && i.has(P2.type));
4844
+ if (E2.length === 0)
4845
+ if (y)
4846
4846
  p2.push({
4847
4847
  label: "Unlabeled",
4848
- value: C2.value
4848
+ value: C.value
4849
4849
  });
4850
4850
  else return;
4851
- const x2 = E.map((P) => P.label), S2 = n2.separator ?? " / ";
4851
+ const F = E2.map((P2) => P2.label), S = n2.separator ?? " / ";
4852
4852
  p2.push({
4853
- label: x2.join(S2),
4854
- value: C2.value
4853
+ label: F.join(S),
4854
+ value: C.value
4855
4855
  });
4856
4856
  }
4857
4857
  return p2;
4858
4858
  };
4859
4859
  if (a.length === 0) {
4860
4860
  if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
4861
- return h(new Set(Ee), true);
4861
+ return h2(new Set(Ee), true);
4862
4862
  }
4863
4863
  let f = 0, m2 = -1;
4864
4864
  for (; f < a.length; ) {
@@ -4866,11 +4866,11 @@
4866
4866
  n2.includeNativeLabel && d2.add(Ee);
4867
4867
  for (let p2 = 0; p2 < f; ++p2) d2.add(a[p2]);
4868
4868
  m2 >= 0 && d2.add(a[m2]);
4869
- const y2 = h(d2);
4870
- if (y2 !== void 0 && new Set(y2.map((p2) => p2.label)).size === t.length) return y2;
4869
+ const y = h2(d2);
4870
+ if (y !== void 0 && new Set(y.map((p2) => p2.label)).size === t.length) return y;
4871
4871
  m2++, m2 >= a.length && (f++, m2 = f);
4872
4872
  }
4873
- return h(/* @__PURE__ */ new Set([...a, ...l2]), true);
4873
+ return h2(/* @__PURE__ */ new Set([...a, ...l2]), true);
4874
4874
  }
4875
4875
  const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", J = ee + "BinaryPartitioned", Xe = ee + "Partitioned/", ce = Xe + "JsonPartitioned", z = Xe + "BinaryPartitioned";
4876
4876
  const ve = (t) => {
@@ -4880,7 +4880,7 @@
4880
4880
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
4881
4881
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
4882
4882
  };
4883
- function Dt(t) {
4883
+ function Ot(t) {
4884
4884
  if (!t) return;
4885
4885
  const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
4886
4886
  let i = 0;
@@ -4926,7 +4926,7 @@
4926
4926
  }
4927
4927
  return { data: r, keyLength: i };
4928
4928
  }
4929
- function Rt(t) {
4929
+ function Dt(t) {
4930
4930
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
4931
4931
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
4932
4932
  const { parts: e, partitionKeyLength: n2 } = t, r = [];
@@ -4945,11 +4945,11 @@
4945
4945
  }
4946
4946
  return r.map((i) => Array.from(i.values()));
4947
4947
  }
4948
- function Nt(t) {
4948
+ function Rt(t) {
4949
4949
  if (t === void 0) return;
4950
4950
  if (_(t))
4951
- return Rt(t);
4952
- const e = Dt(t);
4951
+ return Dt(t);
4952
+ const e = Ot(t);
4953
4953
  if (!e) return;
4954
4954
  const { data: n2, keyLength: r } = e, i = [];
4955
4955
  for (let o = 0; o < r; ++o)
@@ -5060,15 +5060,15 @@
5060
5060
  throw new Error(`Unknown resource type: ${n2}`);
5061
5061
  }
5062
5062
  }
5063
- function Ut(t) {
5063
+ function Nt(t) {
5064
5064
  if (t !== void 0) {
5065
5065
  if (_(t)) return t;
5066
- if ($e$1(t)) return Je(t);
5066
+ if (Se(t)) return je(t);
5067
5067
  if (t instanceof O) return Ce(t);
5068
5068
  throw new Error(`Unexpected input type: ${typeof t}`);
5069
5069
  }
5070
5070
  }
5071
- function Kt(t, e) {
5071
+ function Ut(t, e) {
5072
5072
  const n2 = [...e].sort((o, s2) => s2[0] - o[0]);
5073
5073
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5074
5074
  const { partitionKeyLength: o } = t;
@@ -5128,45 +5128,45 @@
5128
5128
  }
5129
5129
  }
5130
5130
  }
5131
- function Mt(t) {
5131
+ function Kt(t) {
5132
5132
  if (!Array.isArray(t)) return false;
5133
5133
  if (t.length === 0) return true;
5134
5134
  const e = t[0];
5135
5135
  return typeof e == "object" && e !== null && "key" in e && "val" in e;
5136
5136
  }
5137
- class jt {
5137
+ class Mt {
5138
5138
  constructor(e) {
5139
5139
  this.columns = e;
5140
5140
  }
5141
5141
  selectColumns(e) {
5142
- const n2 = typeof e == "function" ? e : sn(e);
5142
+ const n2 = typeof e == "function" ? e : Qe(e);
5143
5143
  return this.columns.filter((r) => n2(r.spec));
5144
5144
  }
5145
5145
  }
5146
- function qt(t) {
5146
+ function jt(t) {
5147
5147
  if (t)
5148
5148
  return t.map((e) => ({
5149
- type: `split:${He(e.axisId)}`,
5149
+ type: `split:${Te$1(e.axisId)}`,
5150
5150
  label: e.label,
5151
5151
  importance: 1e6
5152
5152
  // High importance for split filters in labels
5153
5153
  }));
5154
5154
  }
5155
- function Bt(t) {
5155
+ function qt(t) {
5156
5156
  if (t)
5157
5157
  return t.map((e) => [e.axisIdx, e.value]);
5158
5158
  }
5159
- function Jt(t, e) {
5159
+ function Bt(t, e) {
5160
5160
  if (!e || e.length === 0) return t;
5161
5161
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5162
- return Be({ id: t, axisFilters: n2 });
5162
+ return Be$1({ id: t, axisFilters: n2 });
5163
5163
  }
5164
5164
  function Ve(t) {
5165
5165
  if (!t || typeof t != "object") return false;
5166
5166
  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);
5167
5167
  return !!e.domainAnchor || n2 || r;
5168
5168
  }
5169
- function $t(t) {
5169
+ function Jt(t) {
5170
5170
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5171
5171
  return [];
5172
5172
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5177,7 +5177,7 @@
5177
5177
  class Q {
5178
5178
  constructor() {
5179
5179
  V(this, "defaultProviderStore", []);
5180
- V(this, "providers", [new jt(this.defaultProviderStore)]);
5180
+ V(this, "providers", [new Mt(this.defaultProviderStore)]);
5181
5181
  V(this, "axisLabelProviders", []);
5182
5182
  }
5183
5183
  addColumnProvider(e) {
@@ -5206,87 +5206,87 @@
5206
5206
  };
5207
5207
  let u2 = () => false;
5208
5208
  if (a) {
5209
- const p2 = (Array.isArray(a) ? a : [a]).map((g) => {
5210
- if (Ve(g)) {
5209
+ const p2 = (Array.isArray(a) ? a : [a]).map((g2) => {
5210
+ if (Ve(g2)) {
5211
5211
  if (!r)
5212
5212
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5213
- return sn(Ye(r.anchors, g, n2));
5213
+ return Qe(_e(r.anchors, g2, n2));
5214
5214
  } else
5215
- return sn(g);
5215
+ return Qe(g2);
5216
5216
  });
5217
- u2 = (g) => p2.some((C2) => C2(g));
5217
+ u2 = (g2) => p2.some((C) => C(g2));
5218
5218
  }
5219
- const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
5220
- for (const p2 of h) {
5221
- const g = Ve(p2);
5222
- let C2;
5223
- if (g) {
5219
+ const h$1 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
5220
+ for (const p2 of h$1) {
5221
+ const g2 = Ve(p2);
5222
+ let C;
5223
+ if (g2) {
5224
5224
  if (!r)
5225
5225
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5226
- C2 = Ye(r.anchors, p2, n2);
5226
+ C = _e(r.anchors, p2, n2);
5227
5227
  } else
5228
- C2 = p2;
5229
- const E = /* @__PURE__ */ new Set(), x2 = [];
5230
- for (const T of this.providers) {
5231
- const F = T.selectColumns(C2);
5232
- for (const c2 of F) {
5228
+ C = p2;
5229
+ const E2 = /* @__PURE__ */ new Set(), F = [];
5230
+ for (const T2 of this.providers) {
5231
+ const x2 = T2.selectColumns(C);
5232
+ for (const c2 of x2) {
5233
5233
  if (u2(c2.spec)) continue;
5234
- if (E.has(c2.id))
5235
- throw new Error(`Duplicate column id ${c2.id} in provider ${T.constructor.name}`);
5236
- const v2 = an(c2.spec);
5237
- m2.has(v2) || (E.add(c2.id), m2.add(v2), x2.push(c2));
5234
+ if (E2.has(c2.id))
5235
+ throw new Error(`Duplicate column id ${c2.id} in provider ${T2.constructor.name}`);
5236
+ const v = Ye(c2.spec);
5237
+ m2.has(v) || (E2.add(c2.id), m2.add(v), F.push(c2));
5238
5238
  }
5239
5239
  }
5240
- if (x2.length === 0) continue;
5241
- const S2 = $t(p2), P = S2.length > 0;
5242
- for (const T of x2) {
5243
- if (!l$1(T.spec)) continue;
5244
- const F = T.spec;
5245
- if (P) {
5246
- if (Mt(T.data))
5247
- throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T.id}`);
5248
- const c2 = Ut(T.data);
5240
+ if (F.length === 0) continue;
5241
+ const S = Jt(p2), P2 = S.length > 0;
5242
+ for (const T2 of F) {
5243
+ if (!l$1(T2.spec)) continue;
5244
+ const x2 = T2.spec;
5245
+ if (P2) {
5246
+ if (Kt(T2.data))
5247
+ throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T2.id}`);
5248
+ const c2 = Nt(T2.data);
5249
5249
  if (!c2) {
5250
5250
  if (o) continue;
5251
5251
  return;
5252
5252
  }
5253
- if (!Ie(c2))
5254
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T.id}`);
5255
- const v2 = Nt(c2), I = S2[S2.length - 1];
5256
- if (I >= c2.partitionKeyLength)
5257
- throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${F.name}`);
5258
- const $ = S2.map((_2) => this.findLabels(y(F.axesSpec[_2]))), K = [], j = (_2, W) => {
5259
- if (W >= S2.length) {
5253
+ if (!Fe(c2))
5254
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T2.id}`);
5255
+ const v = Rt(c2), I2 = S[S.length - 1];
5256
+ if (I2 >= c2.partitionKeyLength)
5257
+ throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I2}) in column ${x2.name}`);
5258
+ const $ = S.map((_2) => this.findLabels(h(x2.axesSpec[_2]))), K = [], j = (_2, W) => {
5259
+ if (W >= S.length) {
5260
5260
  if (K.push([..._2]), K.length > 1e4)
5261
5261
  throw new Error("Too many key combinations, aborting.");
5262
5262
  return;
5263
5263
  }
5264
- const M = S2[W];
5265
- if (M >= v2.length)
5266
- throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${v2.length}) during split key generation for column ${T.id}`);
5267
- const q = v2[M];
5264
+ const M = S[W];
5265
+ if (M >= v.length)
5266
+ throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${v.length}) during split key generation for column ${T2.id}`);
5267
+ const q = v[M];
5268
5268
  if (!q || q.length === 0) {
5269
5269
  K.length = 0;
5270
5270
  return;
5271
5271
  }
5272
- for (const te2 of q)
5273
- _2.push(te2), j(_2, W + 1), _2.pop();
5272
+ for (const te of q)
5273
+ _2.push(te), j(_2, W + 1), _2.pop();
5274
5274
  };
5275
5275
  if (j([], 0), K.length === 0)
5276
5276
  continue;
5277
- const N2 = [...F.axesSpec], et = S2.map((_2) => _2);
5278
- for (let _2 = S2.length - 1; _2 >= 0; _2--)
5279
- N2.splice(S2[_2], 1);
5280
- const tt = { ...F, axesSpec: N2 };
5277
+ const N = [...x2.axesSpec], et = S.map((_2) => _2);
5278
+ for (let _2 = S.length - 1; _2 >= 0; _2--)
5279
+ N.splice(S[_2], 1);
5280
+ const tt = { ...x2, axesSpec: N };
5281
5281
  for (const _2 of K) {
5282
5282
  const W = _2.map((M, q) => {
5283
- const te2 = et[q], nt = y(F.axesSpec[te2]), de2 = $[q], rt = (de2 == null ? void 0 : de2[M]) ?? String(M);
5284
- return { axisIdx: te2, axisId: nt, value: M, label: rt };
5283
+ const te = et[q], nt = h(x2.axesSpec[te]), de = $[q], rt = (de == null ? void 0 : de[M]) ?? String(M);
5284
+ return { axisIdx: te, axisId: nt, value: M, label: rt };
5285
5285
  });
5286
5286
  f.push({
5287
5287
  type: "split",
5288
- originalColumn: T,
5289
- spec: F,
5288
+ originalColumn: T2,
5289
+ spec: x2,
5290
5290
  adjustedSpec: tt,
5291
5291
  dataEntries: c2,
5292
5292
  axisFilters: W
@@ -5295,9 +5295,9 @@
5295
5295
  } else
5296
5296
  f.push({
5297
5297
  type: "direct",
5298
- originalColumn: T,
5299
- spec: F,
5300
- adjustedSpec: F
5298
+ originalColumn: T2,
5299
+ spec: x2,
5300
+ adjustedSpec: x2
5301
5301
  });
5302
5302
  }
5303
5303
  }
@@ -5306,29 +5306,29 @@
5306
5306
  f,
5307
5307
  (p2) => ({
5308
5308
  spec: p2.spec,
5309
- suffixTrace: p2.type === "split" ? qt(p2.axisFilters) : void 0
5309
+ suffixTrace: p2.type === "split" ? jt(p2.axisFilters) : void 0
5310
5310
  }),
5311
5311
  l2
5312
- ), y$1 = [];
5313
- for (const { value: p2, label: g } of d2) {
5314
- const { originalColumn: C2, spec: E } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, S2 = Bt(x2);
5315
- let P;
5316
- r ? P = r.deriveS(E, S2) : P = Jt(C2.id, S2);
5317
- let T = { ...p2.adjustedSpec };
5318
- s2 && (T = {
5319
- ...T,
5312
+ ), y = [];
5313
+ for (const { value: p2, label: g2 } of d2) {
5314
+ const { originalColumn: C, spec: E2 } = p2, F = p2.type === "split" ? p2.axisFilters : void 0, S = qt(F);
5315
+ let P2;
5316
+ r ? P2 = r.deriveS(E2, S) : P2 = Bt(C.id, S);
5317
+ let T2 = { ...p2.adjustedSpec };
5318
+ s2 && (T2 = {
5319
+ ...T2,
5320
5320
  annotations: {
5321
- ...T.annotations ?? {},
5322
- "pl7.app/label": g
5321
+ ...T2.annotations ?? {},
5322
+ "pl7.app/label": g2
5323
5323
  }
5324
- }), y$1.push({
5325
- id: P,
5326
- spec: T,
5327
- data: () => p2.type === "split" ? De(Kt(p2.dataEntries, S2)) : p2.originalColumn.data,
5328
- label: g
5324
+ }), y.push({
5325
+ id: P2,
5326
+ spec: T2,
5327
+ data: () => p2.type === "split" ? Ie(Ut(p2.dataEntries, S)) : p2.originalColumn.data,
5328
+ label: g2
5329
5329
  });
5330
5330
  }
5331
- return y$1;
5331
+ return y;
5332
5332
  }
5333
5333
  getColumns(e, n2) {
5334
5334
  const r = this.getUniversalEntries(e, {
@@ -5394,9 +5394,9 @@
5394
5394
  return true;
5395
5395
  }
5396
5396
  function ke(t) {
5397
- return rn(t, (e) => e instanceof O ? e.handle : $e$1(e) ? Ve$1(e, (n2) => n2.handle) : e);
5397
+ return Ge$1(t, (e) => e instanceof O ? e.handle : Se(e) ? Oe$1(e, (n2) => n2.handle) : e);
5398
5398
  }
5399
- class Wt {
5399
+ class $t {
5400
5400
  constructor() {
5401
5401
  V(this, "ctx", b());
5402
5402
  }
@@ -5407,28 +5407,28 @@
5407
5407
  return this.ctx.calculateOptions(e);
5408
5408
  }
5409
5409
  getOptions(e, n2) {
5410
- const r = typeof e == "function" ? e : sn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5410
+ const r = typeof e == "function" ? e : Qe(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5411
5411
  let o = {}, s2 = false;
5412
5412
  return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5413
- ref: ln(a, s2),
5413
+ ref: tn(a, s2),
5414
5414
  label: l2
5415
5415
  })) : i.map(({ ref: a, obj: l2 }) => ({
5416
- ref: ln(a, s2),
5416
+ ref: tn(a, s2),
5417
5417
  label: o(l2, a)
5418
5418
  }));
5419
5419
  }
5420
5420
  resolveAnchorCtx(e) {
5421
- if (e instanceof Qe) return e;
5421
+ if (e instanceof Me) return e;
5422
5422
  const n2 = {};
5423
5423
  for (const [r, i] of Object.entries(e))
5424
- if (fn(i)) {
5424
+ if (nn(i)) {
5425
5425
  const o = this.getPColumnSpecByRef(i);
5426
5426
  if (!o)
5427
5427
  return;
5428
5428
  n2[r] = o;
5429
5429
  } else
5430
5430
  n2[r] = i;
5431
- return new Qe(n2);
5431
+ return new Me(n2);
5432
5432
  }
5433
5433
  /**
5434
5434
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5521,7 +5521,7 @@
5521
5521
  ref: n2.ref,
5522
5522
  obj: {
5523
5523
  ...n2.obj,
5524
- data: mn(
5524
+ data: an(
5525
5525
  n2.obj.data,
5526
5526
  (r) => new O(r, [n2.ref.blockId, n2.ref.name])
5527
5527
  )
@@ -5550,7 +5550,7 @@
5550
5550
  )) == null ? void 0 : r.obj;
5551
5551
  const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
5552
5552
  if (n2)
5553
- return rn(
5553
+ return Ge$1(
5554
5554
  n2,
5555
5555
  (i) => new O(i, [e.blockId, e.name])
5556
5556
  );
@@ -5563,7 +5563,7 @@
5563
5563
  getPColumnByRef(e) {
5564
5564
  const n2 = this.getDataByRef(e);
5565
5565
  if (n2)
5566
- return tn(n2);
5566
+ return We$1(n2);
5567
5567
  }
5568
5568
  /**
5569
5569
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -5613,7 +5613,7 @@
5613
5613
  findLabels(e) {
5614
5614
  const n2 = this.getData();
5615
5615
  for (const r of n2.entries) {
5616
- if (!ie(r.obj)) continue;
5616
+ if (!ee$1(r.obj)) continue;
5617
5617
  const i = r.obj.spec;
5618
5618
  if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && he(e.domain, i.axesSpec[0].domain)) {
5619
5619
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -5634,13 +5634,13 @@
5634
5634
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
5635
5635
  */
5636
5636
  selectColumns(e) {
5637
- const n2 = typeof e == "function" ? e : sn(e);
5637
+ const n2 = typeof e == "function" ? e : Qe(e);
5638
5638
  return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
5639
5639
  const s2 = o;
5640
5640
  let a = null;
5641
5641
  const l2 = this;
5642
5642
  return {
5643
- id: Be(i),
5643
+ id: Be$1(i),
5644
5644
  spec: s2,
5645
5645
  get data() {
5646
5646
  var u2;
@@ -5671,7 +5671,7 @@
5671
5671
  V(this, "_argsCache");
5672
5672
  V(this, "_uiStateCache");
5673
5673
  V(this, "_activeArgsCache");
5674
- V(this, "resultPool", new Wt());
5674
+ V(this, "resultPool", new $t());
5675
5675
  this.ctx = b();
5676
5676
  }
5677
5677
  get args() {
@@ -5727,7 +5727,7 @@
5727
5727
  }
5728
5728
  verifyInlineAndExplicitColumnsSupport(e) {
5729
5729
  var i;
5730
- const n2 = e.some((o) => !(o.data instanceof O) || $e$1(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5730
+ const n2 = e.some((o) => !(o.data instanceof O) || Se(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5731
5731
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5732
5732
  }
5733
5733
  patchPTableDef(e) {
@@ -5758,8 +5758,8 @@
5758
5758
  partitionFilters: e.filters ?? [],
5759
5759
  filters: [],
5760
5760
  sorting: e.sorting ?? []
5761
- }) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(on(n2.src)), this.ctx.createPTable(
5762
- We$1(n2, (r) => ke(r))
5761
+ }) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(Xe$1(n2.src)), this.ctx.createPTable(
5762
+ Be(n2, (r) => ke(r))
5763
5763
  );
5764
5764
  }
5765
5765
  /** @deprecated scheduled for removal from SDK */
@@ -5779,13 +5779,13 @@
5779
5779
  this.ctx.logError(e);
5780
5780
  }
5781
5781
  }
5782
- const Gt = "1.42.1", X = Gt;
5783
- function Ht(t) {
5782
+ const Wt = "1.42.8", X = Wt;
5783
+ function Gt(t) {
5784
5784
  return t.__renderLambda === true;
5785
5785
  }
5786
5786
  function me(t) {
5787
5787
  if (t !== void 0)
5788
- return Ht(t) ? t.handle : t;
5788
+ return Gt(t) ? t.handle : t;
5789
5789
  }
5790
5790
  const w = class w2 {
5791
5791
  constructor(e, n2, r, i, o, s2, a, l2, u2) {
@@ -6019,7 +6019,7 @@
6019
6019
  Object.entries(this._outputs).map(([r, i]) => [r, me(i)])
6020
6020
  )
6021
6021
  };
6022
- return globalThis.platformaApiVersion = e, At() ? $e({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
6022
+ return globalThis.platformaApiVersion = e, Pt() ? $e({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
6023
6023
  }
6024
6024
  };
6025
6025
  V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {