@milaboratories/milaboratories.pool-explorer.model 1.0.81 → 1.0.82

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
@@ -20,10 +20,10 @@
20
20
  return obj;
21
21
  };
22
22
  util2.getValidEnumValues = (obj) => {
23
- const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
23
+ const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
24
24
  const filtered = {};
25
- for (const k of validKeys) {
26
- filtered[k] = obj[k];
25
+ for (const k2 of validKeys) {
26
+ filtered[k2] = obj[k2];
27
27
  }
28
28
  return util2.objectValues(filtered);
29
29
  };
@@ -53,7 +53,7 @@
53
53
  return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
54
54
  }
55
55
  util2.joinValues = joinValues;
56
- util2.jsonStringifyReplacer = (_2, value) => {
56
+ util2.jsonStringifyReplacer = (_, value) => {
57
57
  if (typeof value === "bigint") {
58
58
  return value.toString();
59
59
  }
@@ -458,11 +458,11 @@
458
458
  const isDirty = (x2) => x2.status === "dirty";
459
459
  const isValid = (x2) => x2.status === "valid";
460
460
  const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
461
- function __classPrivateFieldGet(receiver, state, kind, f) {
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);
464
464
  }
465
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
465
+ function __classPrivateFieldSet(receiver, state, value, kind, f2) {
466
466
  if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
467
467
  return state.set(receiver, value), value;
468
468
  }
@@ -3955,17 +3955,17 @@
3955
3955
  return canonicalize;
3956
3956
  }
3957
3957
  var canonicalizeExports = requireCanonicalize();
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);
3958
+ const $e = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
+ var T = Object.defineProperty;
3960
+ var I = (e, n2, r) => n2 in e ? T(e, n2, { enumerable: true, configurable: true, writable: true, value: r }) : e[n2] = r;
3961
+ var f = (e, n2, r) => I(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 g(e) {
3968
+ function b$1(e) {
3969
3969
  throw new Error("Unexpected object: " + e);
3970
3970
  }
3971
3971
  function Se(e) {
@@ -3978,8 +3978,8 @@
3978
3978
  case "Json":
3979
3979
  return typeof n2.keyLength == "number" && n2.data !== void 0 && typeof n2.data == "object";
3980
3980
  case "JsonPartitioned":
3981
- return typeof n2.partitionKeyLength == "number" && n2.parts !== void 0 && typeof n2.parts == "object";
3982
3981
  case "BinaryPartitioned":
3982
+ case "ParquetPartitioned":
3983
3983
  return typeof n2.partitionKeyLength == "number" && n2.parts !== void 0 && typeof n2.parts == "object";
3984
3984
  default:
3985
3985
  return false;
@@ -3992,8 +3992,8 @@
3992
3992
  return e;
3993
3993
  case "JsonPartitioned": {
3994
3994
  const r = {};
3995
- for (const [t, o] of Object.entries(e.parts))
3996
- r[t] = n2(o);
3995
+ for (const [t, i] of Object.entries(e.parts))
3996
+ r[t] = n2(i);
3997
3997
  return {
3998
3998
  ...e,
3999
3999
  parts: r
@@ -4001,19 +4001,28 @@
4001
4001
  }
4002
4002
  case "BinaryPartitioned": {
4003
4003
  const r = {};
4004
- for (const [t, o] of Object.entries(e.parts))
4004
+ for (const [t, i] of Object.entries(e.parts))
4005
4005
  r[t] = {
4006
- index: n2(o.index),
4007
- values: n2(o.values)
4006
+ index: n2(i.index),
4007
+ values: n2(i.values)
4008
4008
  };
4009
4009
  return {
4010
4010
  ...e,
4011
4011
  parts: r
4012
4012
  };
4013
4013
  }
4014
+ case "ParquetPartitioned": {
4015
+ const r = {};
4016
+ for (const [t, i] of Object.entries(e.parts))
4017
+ r[t] = n2(i);
4018
+ return {
4019
+ ...e,
4020
+ parts: r
4021
+ };
4022
+ }
4014
4023
  }
4015
4024
  }
4016
- function _(e) {
4025
+ function M(e) {
4017
4026
  if (!e || typeof e != "object")
4018
4027
  return false;
4019
4028
  const n2 = e;
@@ -4023,87 +4032,101 @@
4023
4032
  case "Json":
4024
4033
  return typeof n2.keyLength == "number" && Array.isArray(n2.data);
4025
4034
  case "JsonPartitioned":
4026
- return typeof n2.partitionKeyLength == "number" && Array.isArray(n2.parts);
4027
4035
  case "BinaryPartitioned":
4036
+ case "ParquetPartitioned":
4028
4037
  return typeof n2.partitionKeyLength == "number" && Array.isArray(n2.parts);
4029
4038
  default:
4030
4039
  return false;
4031
4040
  }
4032
4041
  }
4033
- function Fe(e) {
4034
- return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : false;
4042
+ function Ce$1(e) {
4043
+ if (!M(e)) return false;
4044
+ switch (e.type) {
4045
+ case "JsonPartitioned":
4046
+ case "BinaryPartitioned":
4047
+ case "ParquetPartitioned":
4048
+ return true;
4049
+ default:
4050
+ return false;
4051
+ }
4035
4052
  }
4036
- function je(e) {
4053
+ function Fe(e) {
4037
4054
  switch (e.type) {
4038
- case "Json": {
4039
- const n2 = Object.entries(e.data).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
4055
+ case "Json":
4040
4056
  return {
4041
4057
  type: "Json",
4042
4058
  keyLength: e.keyLength,
4043
- data: n2
4059
+ data: Object.entries(e.data).map(([n2, r]) => ({ key: JSON.parse(n2), value: r }))
4044
4060
  };
4045
- }
4046
- case "JsonPartitioned": {
4047
- const n2 = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
4061
+ case "JsonPartitioned":
4048
4062
  return {
4049
4063
  type: "JsonPartitioned",
4050
4064
  partitionKeyLength: e.partitionKeyLength,
4051
- parts: n2
4065
+ parts: Object.entries(e.parts).map(([n2, r]) => ({ key: JSON.parse(n2), value: r }))
4052
4066
  };
4053
- }
4054
- case "BinaryPartitioned": {
4055
- const n2 = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
4067
+ case "BinaryPartitioned":
4056
4068
  return {
4057
4069
  type: "BinaryPartitioned",
4058
4070
  partitionKeyLength: e.partitionKeyLength,
4059
- parts: n2
4071
+ parts: Object.entries(e.parts).map(([n2, r]) => ({ key: JSON.parse(n2), value: r }))
4060
4072
  };
4061
- }
4073
+ case "ParquetPartitioned":
4074
+ return {
4075
+ type: "ParquetPartitioned",
4076
+ partitionKeyLength: e.partitionKeyLength,
4077
+ parts: Object.entries(e.parts).map(([n2, r]) => ({ key: JSON.parse(n2), value: r }))
4078
+ };
4079
+ default:
4080
+ b$1(e);
4062
4081
  }
4063
4082
  }
4064
- function Ie(e) {
4083
+ function Je$1(e) {
4065
4084
  switch (e.type) {
4066
- case "Json": {
4067
- const n2 = {};
4068
- for (const r of e.data)
4069
- n2[JSON.stringify(r.key)] = r.value;
4085
+ case "Json":
4070
4086
  return {
4071
4087
  type: "Json",
4072
4088
  keyLength: e.keyLength,
4073
- data: n2
4089
+ data: Object.fromEntries(
4090
+ e.data.map(({ key: n2, value: r }) => [JSON.stringify(n2), r])
4091
+ )
4074
4092
  };
4075
- }
4076
- case "JsonPartitioned": {
4077
- const n2 = {};
4078
- for (const r of e.parts)
4079
- n2[JSON.stringify(r.key)] = r.value;
4093
+ case "JsonPartitioned":
4080
4094
  return {
4081
4095
  type: "JsonPartitioned",
4082
4096
  partitionKeyLength: e.partitionKeyLength,
4083
- parts: n2
4097
+ parts: Object.fromEntries(
4098
+ e.parts.map(({ key: n2, value: r }) => [JSON.stringify(n2), r])
4099
+ )
4084
4100
  };
4085
- }
4086
- case "BinaryPartitioned": {
4087
- const n2 = {};
4088
- for (const r of e.parts)
4089
- n2[JSON.stringify(r.key)] = r.value;
4101
+ case "BinaryPartitioned":
4090
4102
  return {
4091
4103
  type: "BinaryPartitioned",
4092
4104
  partitionKeyLength: e.partitionKeyLength,
4093
- parts: n2
4105
+ parts: Object.fromEntries(
4106
+ e.parts.map(({ key: n2, value: r }) => [JSON.stringify(n2), r])
4107
+ )
4094
4108
  };
4095
- }
4109
+ case "ParquetPartitioned":
4110
+ return {
4111
+ type: "ParquetPartitioned",
4112
+ partitionKeyLength: e.partitionKeyLength,
4113
+ parts: Object.fromEntries(
4114
+ e.parts.map(({ key: n2, value: r }) => [JSON.stringify(n2), r])
4115
+ )
4116
+ };
4117
+ default:
4118
+ b$1(e);
4096
4119
  }
4097
4120
  }
4098
4121
  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;
4122
+ const { type: n2, name: r, domain: t } = e, i = { type: n2, name: r };
4123
+ return t && Object.entries(t).length > 0 && Object.assign(i, { domain: t }), i;
4101
4124
  }
4102
- function I(e) {
4125
+ function J(e) {
4103
4126
  return e.map(h);
4104
4127
  }
4105
- function Te$1(e) {
4106
- return Be$1(h(e));
4128
+ function Ie(e) {
4129
+ return $e(h(e));
4107
4130
  }
4108
4131
  function G$1(e, n2) {
4109
4132
  if (e === void 0) return n2 === void 0;
@@ -4116,9 +4139,9 @@
4116
4139
  return e.name === n2.name && G$1(e.domain, n2.domain);
4117
4140
  }
4118
4141
  function Be(e, n2) {
4119
- return { ...e, src: b$1(e.src, n2) };
4142
+ return { ...e, src: v(e.src, n2) };
4120
4143
  }
4121
- function b$1(e, n2) {
4144
+ function v(e, n2) {
4122
4145
  switch (e.type) {
4123
4146
  case "column":
4124
4147
  return {
@@ -4138,50 +4161,50 @@
4138
4161
  case "full":
4139
4162
  return {
4140
4163
  type: e.type,
4141
- entries: e.entries.map((r) => b$1(r, n2))
4164
+ entries: e.entries.map((r) => v(r, n2))
4142
4165
  };
4143
4166
  case "outer":
4144
4167
  return {
4145
4168
  type: "outer",
4146
- primary: b$1(e.primary, n2),
4147
- secondary: e.secondary.map((r) => b$1(r, n2))
4169
+ primary: v(e.primary, n2),
4170
+ secondary: e.secondary.map((r) => v(r, n2))
4148
4171
  };
4149
4172
  default:
4150
- g(e);
4173
+ b$1(e);
4151
4174
  }
4152
4175
  }
4153
4176
  function Q$1(e) {
4154
- return Be$1(e);
4177
+ return $e(e);
4155
4178
  }
4156
- function A(e) {
4157
- return Be$1(h(e));
4179
+ function k(e) {
4180
+ return $e(h(e));
4158
4181
  }
4159
- function x(e, n2) {
4182
+ function A$1(e, n2) {
4160
4183
  return JSON.stringify([e, n2]);
4161
4184
  }
4162
- class Me {
4185
+ class Ke {
4163
4186
  /**
4164
4187
  * Creates a new anchor context from a set of anchor column specifications
4165
4188
  * @param anchors Record of anchor column specifications indexed by anchor ID
4166
4189
  */
4167
4190
  constructor(n2) {
4168
- d(this, "domains", /* @__PURE__ */ new Map());
4169
- d(this, "axes", /* @__PURE__ */ new Map());
4170
- d(this, "domainPacks", []);
4171
- d(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4191
+ f(this, "domains", /* @__PURE__ */ new Map());
4192
+ f(this, "axes", /* @__PURE__ */ new Map());
4193
+ f(this, "domainPacks", []);
4194
+ f(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4172
4195
  this.anchors = n2;
4173
4196
  const r = Object.entries(n2);
4174
- r.sort((t, o) => t[0].localeCompare(o[0]));
4175
- for (const [t, o] of r) {
4176
- for (let i = 0; i < o.axesSpec.length; i++) {
4177
- const s2 = o.axesSpec[i], a = A(s2);
4178
- this.axes.set(a, { anchor: t, idx: i });
4197
+ r.sort((t, i) => t[0].localeCompare(i[0]));
4198
+ for (const [t, i] of r) {
4199
+ for (let o = 0; o < i.axesSpec.length; o++) {
4200
+ const s2 = i.axesSpec[o], a = k(s2);
4201
+ this.axes.set(a, { anchor: t, idx: o });
4179
4202
  }
4180
- if (o.domain !== void 0) {
4181
- const i = Object.entries(o.domain);
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);
4203
+ if (i.domain !== void 0) {
4204
+ const o = Object.entries(i.domain);
4205
+ o.sort((s2, a) => s2[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(o), t), this.domainPacks.push(o.map(([s2]) => s2));
4206
+ for (const [s2, a] of o) {
4207
+ const u2 = A$1(s2, a);
4185
4208
  this.domains.set(u2, t);
4186
4209
  }
4187
4210
  }
@@ -4195,52 +4218,52 @@
4195
4218
  name: n2.name,
4196
4219
  axes: []
4197
4220
  };
4198
- let o;
4221
+ let i;
4199
4222
  if (n2.domain !== void 0)
4200
4223
  e:
4201
4224
  for (const s2 of this.domainPacks) {
4202
4225
  const a = [];
4203
4226
  for (const c2 of s2) {
4204
- const f = n2.domain[c2];
4205
- if (f !== void 0)
4206
- a.push([c2, f]);
4227
+ const d = n2.domain[c2];
4228
+ if (d !== void 0)
4229
+ a.push([c2, d]);
4207
4230
  else
4208
4231
  break e;
4209
4232
  }
4210
4233
  const u2 = this.domainPackToAnchor.get(JSON.stringify(a));
4211
4234
  if (u2 !== void 0) {
4212
- t.domainAnchor = u2, o = new Set(s2);
4235
+ t.domainAnchor = u2, i = new Set(s2);
4213
4236
  break;
4214
4237
  }
4215
4238
  }
4216
4239
  for (const [s2, a] of Object.entries(n2.domain ?? {})) {
4217
- if (o !== void 0 && o.has(s2))
4240
+ if (i !== void 0 && i.has(s2))
4218
4241
  continue;
4219
- const u2 = x(s2, a), c2 = this.domains.get(u2);
4242
+ const u2 = A$1(s2, a), c2 = this.domains.get(u2);
4220
4243
  t.domain ?? (t.domain = {}), t.domain[s2] = c2 ? { anchor: c2 } : a;
4221
4244
  }
4222
4245
  if (t.axes = n2.axesSpec.map((s2) => {
4223
- const a = A(s2), u2 = this.axes.get(a);
4246
+ const a = k(s2), u2 = this.axes.get(a);
4224
4247
  return u2 === void 0 ? h(s2) : u2;
4225
4248
  }), !r || r.length === 0)
4226
4249
  return t;
4227
- const i = [];
4250
+ const o = [];
4228
4251
  for (const s2 of r) {
4229
4252
  const [a, u2] = s2;
4230
4253
  if (typeof a == "number") {
4231
4254
  if (a < 0 || a >= n2.axesSpec.length)
4232
4255
  throw new Error(`Axis index ${a} is out of bounds (0-${n2.axesSpec.length - 1})`);
4233
- i.push([a, u2]);
4256
+ o.push([a, u2]);
4234
4257
  } else {
4235
- const c2 = n2.axesSpec.findIndex((f) => f.name === a);
4258
+ const c2 = n2.axesSpec.findIndex((d) => d.name === a);
4236
4259
  if (c2 === -1)
4237
4260
  throw new Error(`Axis with name "${a}" not found in the column specification`);
4238
- i.push([c2, u2]);
4261
+ o.push([c2, u2]);
4239
4262
  }
4240
4263
  }
4241
- return i.sort((s2, a) => s2[0] - a[0]), {
4264
+ return o.sort((s2, a) => s2[0] - a[0]), {
4242
4265
  source: t,
4243
- axisFilters: i
4266
+ axisFilters: o
4244
4267
  };
4245
4268
  }
4246
4269
  /**
@@ -4253,34 +4276,34 @@
4253
4276
  return Q$1(this.derive(n2, r));
4254
4277
  }
4255
4278
  }
4256
- function _e(e, n2, r) {
4257
- const t = { ...n2 }, o = (r == null ? void 0 : r.ignoreMissingDomains) ?? false;
4279
+ function Me(e, n2, r) {
4280
+ const t = { ...n2 }, i = (r == null ? void 0 : r.ignoreMissingDomains) ?? false;
4258
4281
  if (t.domainAnchor !== void 0) {
4259
- const i = e[t.domainAnchor];
4260
- if (!i)
4282
+ const o = e[t.domainAnchor];
4283
+ if (!o)
4261
4284
  throw new Error(`Anchor "${t.domainAnchor}" not found`);
4262
- const s2 = i.domain || {};
4285
+ const s2 = o.domain || {};
4263
4286
  t.domain = { ...s2, ...t.domain }, delete t.domainAnchor;
4264
4287
  }
4265
4288
  if (t.domain) {
4266
- const i = {};
4289
+ const o = {};
4267
4290
  for (const [s2, a] of Object.entries(t.domain))
4268
4291
  if (typeof a == "string")
4269
- i[s2] = a;
4292
+ o[s2] = a;
4270
4293
  else {
4271
4294
  const u2 = e[a.anchor];
4272
4295
  if (!u2)
4273
4296
  throw new Error(`Anchor "${a.anchor}" not found for domain key "${s2}"`);
4274
4297
  if (!u2.domain || u2.domain[s2] === void 0) {
4275
- if (!o)
4298
+ if (!i)
4276
4299
  throw new Error(`Domain key "${s2}" not found in anchor "${a.anchor}"`);
4277
4300
  continue;
4278
4301
  }
4279
- i[s2] = u2.domain[s2];
4302
+ o[s2] = u2.domain[s2];
4280
4303
  }
4281
- t.domain = i;
4304
+ t.domain = o;
4282
4305
  }
4283
- return t.axes && (t.axes = t.axes.map((i) => Y(e, i))), t;
4306
+ return t.axes && (t.axes = t.axes.map((o) => Y(e, o))), t;
4284
4307
  }
4285
4308
  function Y(e, n2) {
4286
4309
  if (!Z(n2))
@@ -4293,19 +4316,19 @@
4293
4316
  throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${r}"`);
4294
4317
  return t.axesSpec[n2.idx];
4295
4318
  } else if ("name" in n2) {
4296
- const o = t.axesSpec.filter((i) => i.name === n2.name);
4297
- if (o.length > 1)
4319
+ const i = t.axesSpec.filter((o) => o.name === n2.name);
4320
+ if (i.length > 1)
4298
4321
  throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${r}"`);
4299
- if (o.length === 0)
4322
+ if (i.length === 0)
4300
4323
  throw new Error(`Axis with name "${n2.name}" not found in anchor "${r}"`);
4301
- return o[0];
4324
+ return i[0];
4302
4325
  } else if ("id" in n2) {
4303
- const o = t.axesSpec.filter((i) => X$1(n2.id, h(i)));
4304
- if (o.length > 1)
4326
+ const i = t.axesSpec.filter((o) => X$1(n2.id, h(o)));
4327
+ if (i.length > 1)
4305
4328
  throw new Error(`Multiple matching axes found for matcher in anchor "${r}"`);
4306
- if (o.length === 0)
4329
+ if (i.length === 0)
4307
4330
  throw new Error(`No matching axis found for matcher in anchor "${r}"`);
4308
- return o[0];
4331
+ return i[0];
4309
4332
  }
4310
4333
  throw new Error("Unsupported axis reference type");
4311
4334
  }
@@ -4341,19 +4364,19 @@
4341
4364
  return;
4342
4365
  case "full":
4343
4366
  case "inner":
4344
- for (const o of t.entries) r(o);
4367
+ for (const i of t.entries) r(i);
4345
4368
  return;
4346
4369
  case "outer":
4347
4370
  r(t.primary);
4348
- for (const o of t.secondary) r(o);
4371
+ for (const i of t.secondary) r(i);
4349
4372
  return;
4350
4373
  default:
4351
- g(t);
4374
+ b$1(t);
4352
4375
  }
4353
4376
  };
4354
4377
  return r(e), [...n2.values()];
4355
4378
  }
4356
- function P(e, n2) {
4379
+ function x(e, n2) {
4357
4380
  if (e.name !== void 0 && e.name !== n2.name)
4358
4381
  return false;
4359
4382
  if (e.type !== void 0) {
@@ -4365,8 +4388,8 @@
4365
4388
  }
4366
4389
  if (e.domain !== void 0) {
4367
4390
  const r = n2.domain || {};
4368
- for (const [t, o] of Object.entries(e.domain))
4369
- if (r[t] !== o)
4391
+ for (const [t, i] of Object.entries(e.domain))
4392
+ if (r[t] !== i)
4370
4393
  return false;
4371
4394
  }
4372
4395
  return true;
@@ -4383,35 +4406,35 @@
4383
4406
  }
4384
4407
  if (n2.domain !== void 0) {
4385
4408
  const r = e.domain || {};
4386
- for (const [t, o] of Object.entries(n2.domain))
4387
- if (r[t] !== o)
4409
+ for (const [t, i] of Object.entries(n2.domain))
4410
+ if (r[t] !== i)
4388
4411
  return false;
4389
4412
  }
4390
4413
  if (n2.axes !== void 0) {
4391
4414
  const r = e.axesSpec.map(h);
4392
4415
  if (n2.partialAxesMatch) {
4393
4416
  for (const t of n2.axes)
4394
- if (!r.some((o) => P(t, o)))
4417
+ if (!r.some((i) => x(t, i)))
4395
4418
  return false;
4396
4419
  } else {
4397
4420
  if (r.length !== n2.axes.length)
4398
4421
  return false;
4399
4422
  for (let t = 0; t < n2.axes.length; t++)
4400
- if (!P(n2.axes[t], r[t]))
4423
+ if (!x(n2.axes[t], r[t]))
4401
4424
  return false;
4402
4425
  }
4403
4426
  }
4404
4427
  if (n2.annotations !== void 0) {
4405
4428
  const r = e.annotations || {};
4406
- for (const [t, o] of Object.entries(n2.annotations))
4407
- if (r[t] !== o)
4429
+ for (const [t, i] of Object.entries(n2.annotations))
4430
+ if (r[t] !== i)
4408
4431
  return false;
4409
4432
  }
4410
4433
  if (n2.annotationPatterns !== void 0) {
4411
4434
  const r = e.annotations || {};
4412
- for (const [t, o] of Object.entries(n2.annotationPatterns)) {
4413
- const i = r[t];
4414
- if (i === void 0 || !new RegExp(o).test(i))
4435
+ for (const [t, i] of Object.entries(n2.annotationPatterns)) {
4436
+ const o = r[t];
4437
+ if (o === void 0 || !new RegExp(i).test(o))
4415
4438
  return false;
4416
4439
  }
4417
4440
  }
@@ -4425,7 +4448,7 @@
4425
4448
  kind: e.kind,
4426
4449
  name: e.name
4427
4450
  };
4428
- return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = I(e.axesSpec)), Be$1(n2);
4451
+ return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = J(e.axesSpec)), $e(n2);
4429
4452
  }
4430
4453
  z$1.object({
4431
4454
  __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
@@ -4522,13 +4545,13 @@
4522
4545
  function Pt() {
4523
4546
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4524
4547
  }
4525
- function $e(t) {
4548
+ function Je(t) {
4526
4549
  if (t && typeof globalThis.getPlatforma == "function")
4527
4550
  return globalThis.getPlatforma(t);
4528
4551
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4529
4552
  throw new Error("Can't get platforma instance.");
4530
4553
  }
4531
- function At() {
4554
+ function wt() {
4532
4555
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4533
4556
  }
4534
4557
  function b() {
@@ -4536,13 +4559,13 @@
4536
4559
  throw new Error("Not in config rendering context");
4537
4560
  }
4538
4561
  function G(t, e) {
4539
- const n2 = At();
4562
+ const n2 = wt();
4540
4563
  if (n2 === void 0) return false;
4541
4564
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4542
4565
  return n2.callbackRegistry[t] = e, true;
4543
4566
  }
4544
4567
  const fe = /* @__PURE__ */ new Map();
4545
- function wt(t, e) {
4568
+ function At(t, e) {
4546
4569
  t in b().callbackRegistry || (b().callbackRegistry[t] = (n2) => {
4547
4570
  for (const r of fe.get(t))
4548
4571
  r(n2);
@@ -4552,7 +4575,7 @@
4552
4575
  constructor(e, n2 = (r) => r) {
4553
4576
  V(this, "isResolved", false);
4554
4577
  V(this, "resolvedValue");
4555
- this.handle = e, this.postProcess = n2, wt(e, (r) => {
4578
+ this.handle = e, this.postProcess = n2, At(e, (r) => {
4556
4579
  this.resolvedValue = n2(r), this.isResolved = true;
4557
4580
  });
4558
4581
  }
@@ -4800,47 +4823,47 @@
4800
4823
  label: z$1.string()
4801
4824
  }), Et = z$1.array(Lt), Vt = 1e-3, kt = "__LABEL__", Ee = "__LABEL__@1";
4802
4825
  function ze(t, e, n2 = {}) {
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, 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 ?? [],
4826
+ 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((d) => {
4827
+ var c2, v2;
4828
+ const y = e(d);
4829
+ let p2, g, C;
4830
+ "spec" in y && typeof y.spec == "object" ? (p2 = y.spec, g = y.prefixTrace, C = y.suffixTrace) : p2 = y;
4831
+ const E2 = (c2 = p2.annotations) == null ? void 0 : c2[It], F = (v2 = p2.annotations) == null ? void 0 : v2[_t], S = (F ? Et.safeParse(JSON.parse(F)).data : void 0) ?? [], P = [
4832
+ ...g ?? [],
4810
4833
  ...S,
4811
4834
  ...C ?? []
4812
4835
  ];
4813
4836
  if (E2 !== void 0) {
4814
4837
  const I2 = { label: E2, type: kt, importance: -2 };
4815
- n2.addLabelAsSuffix ? P2.push(I2) : P2.splice(0, 0, I2);
4838
+ n2.addLabelAsSuffix ? P.push(I2) : P.splice(0, 0, I2);
4816
4839
  }
4817
4840
  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}`;
4841
+ for (let I2 = P.length - 1; I2 >= 0; --I2) {
4842
+ const { type: J2 } = P[I2], K = P[I2].importance ?? 0, q = (x2.get(J2) ?? 0) + 1;
4843
+ x2.set(J2, q);
4844
+ const N = `${J2}@${q}`;
4822
4845
  o.set(N, (o.get(N) ?? 0) + 1), r.set(
4823
4846
  N,
4824
4847
  Math.max(
4825
4848
  r.get(N) ?? Number.NEGATIVE_INFINITY,
4826
- K - (P2.length - I2) * Vt
4849
+ K - (P.length - I2) * Vt
4827
4850
  )
4828
- ), T2.push({ ...P2[I2], fullType: N, occurrenceIndex: j });
4851
+ ), T2.push({ ...P[I2], fullType: N, occurrenceIndex: q });
4829
4852
  }
4830
4853
  return T2.reverse(), {
4831
- value: d2,
4854
+ value: d,
4832
4855
  spec: p2,
4833
4856
  label: E2,
4834
4857
  fullTrace: T2
4835
4858
  };
4836
4859
  }), a = [], l2 = [], u2 = [...r];
4837
- u2.sort(([, d2], [, y]) => y - d2);
4838
- for (const [d2] of u2)
4839
- d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
4840
- const h2 = (d2, y = false) => {
4860
+ u2.sort(([, d], [, y]) => y - d);
4861
+ for (const [d] of u2)
4862
+ d.endsWith("@1") || o.get(d) === t.length ? a.push(d) : l2.push(d);
4863
+ const h2 = (d, y = false) => {
4841
4864
  const p2 = [];
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));
4865
+ for (let g = 0; g < s2.length; g++) {
4866
+ const C = s2[g], E2 = C.fullTrace.filter((P) => d.has(P.fullType) || i && i.has(P.type));
4844
4867
  if (E2.length === 0)
4845
4868
  if (y)
4846
4869
  p2.push({
@@ -4848,7 +4871,7 @@
4848
4871
  value: C.value
4849
4872
  });
4850
4873
  else return;
4851
- const F = E2.map((P2) => P2.label), S = n2.separator ?? " / ";
4874
+ const F = E2.map((P) => P.label), S = n2.separator ?? " / ";
4852
4875
  p2.push({
4853
4876
  label: F.join(S),
4854
4877
  value: C.value
@@ -4860,19 +4883,19 @@
4860
4883
  if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
4861
4884
  return h2(new Set(Ee), true);
4862
4885
  }
4863
- let f = 0, m2 = -1;
4864
- for (; f < a.length; ) {
4865
- const d2 = /* @__PURE__ */ new Set();
4866
- n2.includeNativeLabel && d2.add(Ee);
4867
- for (let p2 = 0; p2 < f; ++p2) d2.add(a[p2]);
4868
- m2 >= 0 && d2.add(a[m2]);
4869
- const y = h2(d2);
4886
+ let f2 = 0, m2 = -1;
4887
+ for (; f2 < a.length; ) {
4888
+ const d = /* @__PURE__ */ new Set();
4889
+ n2.includeNativeLabel && d.add(Ee);
4890
+ for (let p2 = 0; p2 < f2; ++p2) d.add(a[p2]);
4891
+ m2 >= 0 && d.add(a[m2]);
4892
+ const y = h2(d);
4870
4893
  if (y !== void 0 && new Set(y.map((p2) => p2.label)).size === t.length) return y;
4871
- m2++, m2 >= a.length && (f++, m2 = f);
4894
+ m2++, m2 >= a.length && (f2++, m2 = f2);
4872
4895
  }
4873
4896
  return h2(/* @__PURE__ */ new Set([...a, ...l2]), true);
4874
4897
  }
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";
4898
+ const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", B = ee + "BinaryPartitioned", Xe = ee + "Partitioned/", ce = Xe + "JsonPartitioned", z = Xe + "BinaryPartitioned";
4876
4899
  const ve = (t) => {
4877
4900
  if (t.endsWith(".index"))
4878
4901
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
@@ -4892,7 +4915,7 @@
4892
4915
  i = n2.partitionKeyLength + n2.keyLength;
4893
4916
  break;
4894
4917
  case H:
4895
- case J:
4918
+ case B:
4896
4919
  i = n2.partitionKeyLength;
4897
4920
  break;
4898
4921
  case z:
@@ -4903,9 +4926,9 @@
4903
4926
  switch (e) {
4904
4927
  case le:
4905
4928
  case H:
4906
- case J:
4929
+ case B:
4907
4930
  for (let o of t.listInputFields()) {
4908
- e === J && (o = ve(o).baseKey);
4931
+ e === B && (o = ve(o).baseKey);
4909
4932
  const s2 = [...JSON.parse(o)];
4910
4933
  r.push(s2);
4911
4934
  }
@@ -4947,7 +4970,7 @@
4947
4970
  }
4948
4971
  function Rt(t) {
4949
4972
  if (t === void 0) return;
4950
- if (_(t))
4973
+ if (M(t))
4951
4974
  return Dt(t);
4952
4975
  const e = Ot(t);
4953
4976
  if (!e) return;
@@ -4987,7 +5010,7 @@
4987
5010
  parts: i
4988
5011
  };
4989
5012
  }
4990
- case J: {
5013
+ case B: {
4991
5014
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4992
5015
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4993
5016
  const i = [], o = /* @__PURE__ */ new Map();
@@ -5042,8 +5065,8 @@
5042
5065
  for (const s2 of t.listInputFields()) {
5043
5066
  const a = t.resolve({ field: s2, assertFieldType: "Input" });
5044
5067
  if (a === void 0) return;
5045
- if (a.resourceType.name !== J)
5046
- throw new Error(`Expected ${J} inside ${n2}, but got ${a.resourceType.name}`);
5068
+ if (a.resourceType.name !== B)
5069
+ throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
5047
5070
  const l2 = Ce(a, JSON.parse(s2));
5048
5071
  if (l2 === void 0) return;
5049
5072
  if (l2.type !== "BinaryPartitioned")
@@ -5062,70 +5085,82 @@
5062
5085
  }
5063
5086
  function Nt(t) {
5064
5087
  if (t !== void 0) {
5065
- if (_(t)) return t;
5066
- if (Se(t)) return je(t);
5088
+ if (M(t)) return t;
5089
+ if (Se(t)) return Fe(t);
5067
5090
  if (t instanceof O) return Ce(t);
5068
5091
  throw new Error(`Unexpected input type: ${typeof t}`);
5069
5092
  }
5070
5093
  }
5071
5094
  function Ut(t, e) {
5072
- const n2 = [...e].sort((o, s2) => s2[0] - o[0]);
5073
- if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5074
- const { partitionKeyLength: o } = t;
5075
- for (const [s2] of e)
5076
- if (s2 >= o)
5077
- throw new Error(`Can't filter on non-partitioned axis ${s2}. Must be >= ${o}`);
5078
- } else if (t.type === "Json") {
5079
- const { keyLength: o } = t;
5080
- for (const [s2] of e)
5081
- if (s2 >= o)
5082
- throw new Error(`Can't filter on non-data axis ${s2}. Must be >= ${o}`);
5083
- }
5084
- const r = (o) => {
5085
- for (const [s2, a] of n2)
5086
- if (o[s2] !== a)
5095
+ const n2 = [...e].sort((s2, a) => a[0] - s2[0]), { type: r } = t;
5096
+ switch (r) {
5097
+ case "Json": {
5098
+ const { keyLength: s2 } = t;
5099
+ for (const [a] of e)
5100
+ if (a >= s2)
5101
+ throw new Error(`Can't filter on non-data axis ${a}. Must be >= ${s2}`);
5102
+ break;
5103
+ }
5104
+ case "JsonPartitioned":
5105
+ case "BinaryPartitioned":
5106
+ case "ParquetPartitioned": {
5107
+ const { partitionKeyLength: s2 } = t;
5108
+ for (const [a] of e)
5109
+ if (a >= s2)
5110
+ throw new Error(`Can't filter on non-partitioned axis ${a}. Must be >= ${s2}`);
5111
+ break;
5112
+ }
5113
+ default:
5114
+ throw new Error(`Unsupported data info type: ${r}`);
5115
+ }
5116
+ const i = (s2) => {
5117
+ for (const [a, l2] of n2)
5118
+ if (s2[a] !== l2)
5087
5119
  return false;
5088
5120
  return true;
5089
- }, i = (o) => {
5090
- const s2 = [...o];
5091
- for (const [a] of n2)
5092
- s2.splice(a, 1);
5093
- return s2;
5121
+ }, o = (s2) => {
5122
+ const a = [...s2];
5123
+ for (const [l2] of n2)
5124
+ a.splice(l2, 1);
5125
+ return a;
5094
5126
  };
5095
5127
  switch (t.type) {
5096
- case "Json": {
5097
- const o = t.data.filter((s2) => r(s2.key)).map((s2) => ({
5098
- key: i(s2.key),
5099
- value: s2.value
5100
- }));
5128
+ case "Json":
5101
5129
  return {
5102
5130
  type: "Json",
5103
5131
  keyLength: t.keyLength - e.length,
5104
- data: o
5132
+ data: t.data.filter((s2) => i(s2.key)).map((s2) => ({
5133
+ key: o(s2.key),
5134
+ value: s2.value
5135
+ }))
5105
5136
  };
5106
- }
5107
- case "JsonPartitioned": {
5108
- const o = t.parts.filter((s2) => r(s2.key)).map((s2) => ({
5109
- key: i(s2.key),
5110
- value: s2.value
5111
- }));
5137
+ case "JsonPartitioned":
5112
5138
  return {
5113
5139
  type: "JsonPartitioned",
5114
5140
  partitionKeyLength: t.partitionKeyLength - e.length,
5115
- parts: o
5141
+ parts: t.parts.filter((s2) => i(s2.key)).map((s2) => ({
5142
+ key: o(s2.key),
5143
+ value: s2.value
5144
+ }))
5116
5145
  };
5117
- }
5118
- case "BinaryPartitioned": {
5119
- const o = t.parts.filter((s2) => r(s2.key)).map((s2) => ({
5120
- key: i(s2.key),
5121
- value: s2.value
5122
- }));
5146
+ case "BinaryPartitioned":
5123
5147
  return {
5124
5148
  type: "BinaryPartitioned",
5125
5149
  partitionKeyLength: t.partitionKeyLength - e.length,
5126
- parts: o
5150
+ parts: t.parts.filter((s2) => i(s2.key)).map((s2) => ({
5151
+ key: o(s2.key),
5152
+ value: s2.value
5153
+ }))
5154
+ };
5155
+ case "ParquetPartitioned":
5156
+ return {
5157
+ type: "ParquetPartitioned",
5158
+ partitionKeyLength: t.partitionKeyLength - e.length,
5159
+ parts: t.parts.filter((s2) => i(s2.key)).map((s2) => ({
5160
+ key: o(s2.key),
5161
+ value: s2.value
5162
+ }))
5127
5163
  };
5128
- }
5129
5164
  }
5130
5165
  }
5131
5166
  function Kt(t) {
@@ -5143,30 +5178,30 @@
5143
5178
  return this.columns.filter((r) => n2(r.spec));
5144
5179
  }
5145
5180
  }
5146
- function jt(t) {
5181
+ function qt(t) {
5147
5182
  if (t)
5148
5183
  return t.map((e) => ({
5149
- type: `split:${Te$1(e.axisId)}`,
5184
+ type: `split:${Ie(e.axisId)}`,
5150
5185
  label: e.label,
5151
5186
  importance: 1e6
5152
5187
  // High importance for split filters in labels
5153
5188
  }));
5154
5189
  }
5155
- function qt(t) {
5190
+ function jt(t) {
5156
5191
  if (t)
5157
5192
  return t.map((e) => [e.axisIdx, e.value]);
5158
5193
  }
5159
- function Bt(t, e) {
5194
+ function $t(t, e) {
5160
5195
  if (!e || e.length === 0) return t;
5161
5196
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5162
- return Be$1({ id: t, axisFilters: n2 });
5197
+ return $e({ id: t, axisFilters: n2 });
5163
5198
  }
5164
5199
  function Ve(t) {
5165
5200
  if (!t || typeof t != "object") return false;
5166
5201
  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
5202
  return !!e.domainAnchor || n2 || r;
5168
5203
  }
5169
- function Jt(t) {
5204
+ function Bt(t) {
5170
5205
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5171
5206
  return [];
5172
5207
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5206,24 +5241,24 @@
5206
5241
  };
5207
5242
  let u2 = () => false;
5208
5243
  if (a) {
5209
- const p2 = (Array.isArray(a) ? a : [a]).map((g2) => {
5210
- if (Ve(g2)) {
5244
+ const p2 = (Array.isArray(a) ? a : [a]).map((g) => {
5245
+ if (Ve(g)) {
5211
5246
  if (!r)
5212
5247
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5213
- return Qe(_e(r.anchors, g2, n2));
5248
+ return Qe(Me(r.anchors, g, n2));
5214
5249
  } else
5215
- return Qe(g2);
5250
+ return Qe(g);
5216
5251
  });
5217
- u2 = (g2) => p2.some((C) => C(g2));
5252
+ u2 = (g) => p2.some((C) => C(g));
5218
5253
  }
5219
- const h$1 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
5254
+ const h$1 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f2 = [], m2 = /* @__PURE__ */ new Set();
5220
5255
  for (const p2 of h$1) {
5221
- const g2 = Ve(p2);
5256
+ const g = Ve(p2);
5222
5257
  let C;
5223
- if (g2) {
5258
+ if (g) {
5224
5259
  if (!r)
5225
5260
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5226
- C = _e(r.anchors, p2, n2);
5261
+ C = Me(r.anchors, p2, n2);
5227
5262
  } else
5228
5263
  C = p2;
5229
5264
  const E2 = /* @__PURE__ */ new Set(), F = [];
@@ -5233,16 +5268,16 @@
5233
5268
  if (u2(c2.spec)) continue;
5234
5269
  if (E2.has(c2.id))
5235
5270
  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));
5271
+ const v2 = Ye(c2.spec);
5272
+ m2.has(v2) || (E2.add(c2.id), m2.add(v2), F.push(c2));
5238
5273
  }
5239
5274
  }
5240
5275
  if (F.length === 0) continue;
5241
- const S = Jt(p2), P2 = S.length > 0;
5276
+ const S = Bt(p2), P = S.length > 0;
5242
5277
  for (const T2 of F) {
5243
5278
  if (!l$1(T2.spec)) continue;
5244
5279
  const x2 = T2.spec;
5245
- if (P2) {
5280
+ if (P) {
5246
5281
  if (Kt(T2.data))
5247
5282
  throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T2.id}`);
5248
5283
  const c2 = Nt(T2.data);
@@ -5250,40 +5285,40 @@
5250
5285
  if (o) continue;
5251
5286
  return;
5252
5287
  }
5253
- if (!Fe(c2))
5288
+ if (!Ce$1(c2))
5254
5289
  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];
5290
+ const v2 = Rt(c2), I2 = S[S.length - 1];
5256
5291
  if (I2 >= c2.partitionKeyLength)
5257
5292
  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) => {
5293
+ const J2 = S.map((_) => this.findLabels(h(x2.axesSpec[_]))), K = [], q = (_, W) => {
5259
5294
  if (W >= S.length) {
5260
- if (K.push([..._2]), K.length > 1e4)
5295
+ if (K.push([..._]), K.length > 1e4)
5261
5296
  throw new Error("Too many key combinations, aborting.");
5262
5297
  return;
5263
5298
  }
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
- if (!q || q.length === 0) {
5299
+ const M2 = S[W];
5300
+ if (M2 >= v2.length)
5301
+ throw new Error(`Axis index ${M2} out of bounds for unique keys array (length ${v2.length}) during split key generation for column ${T2.id}`);
5302
+ const j = v2[M2];
5303
+ if (!j || j.length === 0) {
5269
5304
  K.length = 0;
5270
5305
  return;
5271
5306
  }
5272
- for (const te of q)
5273
- _2.push(te), j(_2, W + 1), _2.pop();
5307
+ for (const te of j)
5308
+ _.push(te), q(_, W + 1), _.pop();
5274
5309
  };
5275
- if (j([], 0), K.length === 0)
5310
+ if (q([], 0), K.length === 0)
5276
5311
  continue;
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);
5312
+ const N = [...x2.axesSpec], et = S.map((_) => _);
5313
+ for (let _ = S.length - 1; _ >= 0; _--)
5314
+ N.splice(S[_], 1);
5280
5315
  const tt = { ...x2, axesSpec: N };
5281
- for (const _2 of K) {
5282
- const W = _2.map((M, q) => {
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 };
5316
+ for (const _ of K) {
5317
+ const W = _.map((M2, j) => {
5318
+ const te = et[j], nt = h(x2.axesSpec[te]), de = J2[j], rt = (de == null ? void 0 : de[M2]) ?? String(M2);
5319
+ return { axisIdx: te, axisId: nt, value: M2, label: rt };
5285
5320
  });
5286
- f.push({
5321
+ f2.push({
5287
5322
  type: "split",
5288
5323
  originalColumn: T2,
5289
5324
  spec: x2,
@@ -5293,7 +5328,7 @@
5293
5328
  });
5294
5329
  }
5295
5330
  } else
5296
- f.push({
5331
+ f2.push({
5297
5332
  type: "direct",
5298
5333
  originalColumn: T2,
5299
5334
  spec: x2,
@@ -5301,31 +5336,31 @@
5301
5336
  });
5302
5337
  }
5303
5338
  }
5304
- if (f.length === 0) return [];
5305
- const d2 = ze(
5306
- f,
5339
+ if (f2.length === 0) return [];
5340
+ const d = ze(
5341
+ f2,
5307
5342
  (p2) => ({
5308
5343
  spec: p2.spec,
5309
- suffixTrace: p2.type === "split" ? jt(p2.axisFilters) : void 0
5344
+ suffixTrace: p2.type === "split" ? qt(p2.axisFilters) : void 0
5310
5345
  }),
5311
5346
  l2
5312
5347
  ), 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);
5348
+ for (const { value: p2, label: g } of d) {
5349
+ const { originalColumn: C, spec: E2 } = p2, F = p2.type === "split" ? p2.axisFilters : void 0, S = jt(F);
5350
+ let P;
5351
+ r ? P = r.deriveS(E2, S) : P = $t(C.id, S);
5317
5352
  let T2 = { ...p2.adjustedSpec };
5318
5353
  s2 && (T2 = {
5319
5354
  ...T2,
5320
5355
  annotations: {
5321
5356
  ...T2.annotations ?? {},
5322
- "pl7.app/label": g2
5357
+ "pl7.app/label": g
5323
5358
  }
5324
5359
  }), y.push({
5325
- id: P2,
5360
+ id: P,
5326
5361
  spec: T2,
5327
- data: () => p2.type === "split" ? Ie(Ut(p2.dataEntries, S)) : p2.originalColumn.data,
5328
- label: g2
5362
+ data: () => p2.type === "split" ? Je$1(Ut(p2.dataEntries, S)) : p2.originalColumn.data,
5363
+ label: g
5329
5364
  });
5330
5365
  }
5331
5366
  return y;
@@ -5396,7 +5431,7 @@
5396
5431
  function ke(t) {
5397
5432
  return Ge$1(t, (e) => e instanceof O ? e.handle : Se(e) ? Oe$1(e, (n2) => n2.handle) : e);
5398
5433
  }
5399
- class $t {
5434
+ class Jt {
5400
5435
  constructor() {
5401
5436
  V(this, "ctx", b());
5402
5437
  }
@@ -5418,7 +5453,7 @@
5418
5453
  }));
5419
5454
  }
5420
5455
  resolveAnchorCtx(e) {
5421
- if (e instanceof Me) return e;
5456
+ if (e instanceof Ke) return e;
5422
5457
  const n2 = {};
5423
5458
  for (const [r, i] of Object.entries(e))
5424
5459
  if (nn(i)) {
@@ -5428,7 +5463,7 @@
5428
5463
  n2[r] = o;
5429
5464
  } else
5430
5465
  n2[r] = i;
5431
- return new Me(n2);
5466
+ return new Ke(n2);
5432
5467
  }
5433
5468
  /**
5434
5469
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5640,7 +5675,7 @@
5640
5675
  let a = null;
5641
5676
  const l2 = this;
5642
5677
  return {
5643
- id: Be$1(i),
5678
+ id: $e(i),
5644
5679
  spec: s2,
5645
5680
  get data() {
5646
5681
  var u2;
@@ -5671,7 +5706,7 @@
5671
5706
  V(this, "_argsCache");
5672
5707
  V(this, "_uiStateCache");
5673
5708
  V(this, "_activeArgsCache");
5674
- V(this, "resultPool", new $t());
5709
+ V(this, "resultPool", new Jt());
5675
5710
  this.ctx = b();
5676
5711
  }
5677
5712
  get args() {
@@ -5779,7 +5814,7 @@
5779
5814
  this.ctx.logError(e);
5780
5815
  }
5781
5816
  }
5782
- const Wt = "1.42.10", X = Wt;
5817
+ const Wt = "1.42.15", X = Wt;
5783
5818
  function Gt(t) {
5784
5819
  return t.__renderLambda === true;
5785
5820
  }
@@ -5787,12 +5822,12 @@
5787
5822
  if (t !== void 0)
5788
5823
  return Gt(t) ? t.handle : t;
5789
5824
  }
5790
- const w = class w2 {
5825
+ const A = class A2 {
5791
5826
  constructor(e, n2, r, i, o, s2, a, l2, u2) {
5792
5827
  this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s2, this._title = a, this._enrichmentTargets = l2, this._featureFlags = u2;
5793
5828
  }
5794
5829
  static create(e = "Heavy") {
5795
- return new w2(
5830
+ return new A2(
5796
5831
  e,
5797
5832
  void 0,
5798
5833
  {},
@@ -5801,13 +5836,13 @@
5801
5836
  se([]),
5802
5837
  void 0,
5803
5838
  void 0,
5804
- { ...w2.INITIAL_BLOCK_FEATURE_FLAGS }
5839
+ { ...A2.INITIAL_BLOCK_FEATURE_FLAGS }
5805
5840
  );
5806
5841
  }
5807
5842
  output(e, n2, r = {}) {
5808
5843
  if (typeof n2 == "function") {
5809
5844
  const i = `output#${e}`;
5810
- return G(i, () => n2(new ne())), new w2(
5845
+ return G(i, () => n2(new ne())), new A2(
5811
5846
  this._renderingMode,
5812
5847
  this._initialArgs,
5813
5848
  this._initialUiState,
@@ -5826,7 +5861,7 @@
5826
5861
  this._featureFlags
5827
5862
  );
5828
5863
  } else
5829
- return new w2(
5864
+ return new A2(
5830
5865
  this._renderingMode,
5831
5866
  this._initialArgs,
5832
5867
  this._initialUiState,
@@ -5846,7 +5881,7 @@
5846
5881
  return this.output(e, n2, { retentive: true });
5847
5882
  }
5848
5883
  argsValid(e) {
5849
- return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new w2(
5884
+ return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new A2(
5850
5885
  this._renderingMode,
5851
5886
  this._initialArgs,
5852
5887
  this._initialUiState,
@@ -5859,7 +5894,7 @@
5859
5894
  this._title,
5860
5895
  this._enrichmentTargets,
5861
5896
  this._featureFlags
5862
- )) : new w2(
5897
+ )) : new A2(
5863
5898
  this._renderingMode,
5864
5899
  this._initialArgs,
5865
5900
  this._initialUiState,
@@ -5872,7 +5907,7 @@
5872
5907
  );
5873
5908
  }
5874
5909
  sections(e) {
5875
- return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new w2(
5910
+ return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new A2(
5876
5911
  this._renderingMode,
5877
5912
  this._initialArgs,
5878
5913
  this._initialUiState,
@@ -5882,7 +5917,7 @@
5882
5917
  this._title,
5883
5918
  this._enrichmentTargets,
5884
5919
  this._featureFlags
5885
- )) : new w2(
5920
+ )) : new A2(
5886
5921
  this._renderingMode,
5887
5922
  this._initialArgs,
5888
5923
  this._initialUiState,
@@ -5896,7 +5931,7 @@
5896
5931
  }
5897
5932
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5898
5933
  title(e) {
5899
- return G("title", () => e(new ne())), new w2(
5934
+ return G("title", () => e(new ne())), new A2(
5900
5935
  this._renderingMode,
5901
5936
  this._initialArgs,
5902
5937
  this._initialUiState,
@@ -5913,7 +5948,7 @@
5913
5948
  * @deprecated use {@link withArgs}
5914
5949
  * */
5915
5950
  initialArgs(e) {
5916
- return new w2(
5951
+ return new A2(
5917
5952
  this._renderingMode,
5918
5953
  e,
5919
5954
  this._initialUiState,
@@ -5927,7 +5962,7 @@
5927
5962
  }
5928
5963
  /** Sets initial args for the block, this value must be specified. */
5929
5964
  withArgs(e) {
5930
- return new w2(
5965
+ return new A2(
5931
5966
  this._renderingMode,
5932
5967
  e,
5933
5968
  this._initialUiState,
@@ -5941,7 +5976,7 @@
5941
5976
  }
5942
5977
  /** Defines type and sets initial value for block UiState. */
5943
5978
  withUiState(e) {
5944
- return new w2(
5979
+ return new A2(
5945
5980
  this._renderingMode,
5946
5981
  this._initialArgs,
5947
5982
  e,
@@ -5955,7 +5990,7 @@
5955
5990
  }
5956
5991
  /** Sets or overrides feature flags for the block. */
5957
5992
  withFeatureFlags(e) {
5958
- return new w2(
5993
+ return new A2(
5959
5994
  this._renderingMode,
5960
5995
  this._initialArgs,
5961
5996
  this._initialUiState,
@@ -5972,7 +6007,7 @@
5972
6007
  * Influences dependency graph construction.
5973
6008
  */
5974
6009
  enriches(e) {
5975
- return G("enrichmentTargets", e), new w2(
6010
+ return G("enrichmentTargets", e), new A2(
5976
6011
  this._renderingMode,
5977
6012
  this._initialArgs,
5978
6013
  this._initialUiState,
@@ -6019,15 +6054,15 @@
6019
6054
  Object.entries(this._outputs).map(([r, i]) => [r, me(i)])
6020
6055
  )
6021
6056
  };
6022
- return globalThis.platformaApiVersion = e, Pt() ? $e({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
6057
+ return globalThis.platformaApiVersion = e, Pt() ? Je({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
6023
6058
  }
6024
6059
  };
6025
- V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
6060
+ V(A, "INITIAL_BLOCK_FEATURE_FLAGS", {
6026
6061
  supportsLazyState: true,
6027
6062
  requiresUIAPIVersion: 1,
6028
6063
  requiresModelAPIVersion: 1
6029
6064
  });
6030
- let Oe = w;
6065
+ let Oe = A;
6031
6066
  const platforma = Oe.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
6032
6067
  return [{ type: "link", href: "/", label: "Main" }];
6033
6068
  }).title((ctx) => "Pool explorer").done();