@milaboratories/milaboratories.pool-explorer.model 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -35,7 +35,7 @@
35
35
  }, "");
36
36
  return `{${values}}`;
37
37
  };
38
- const _e = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
38
+ const Le = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
39
39
  var util;
40
40
  (function(util2) {
41
41
  util2.assertEqual = (val) => val;
@@ -87,7 +87,7 @@
87
87
  return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
88
88
  }
89
89
  util2.joinValues = joinValues;
90
- util2.jsonStringifyReplacer = (_, value) => {
90
+ util2.jsonStringifyReplacer = (_2, value) => {
91
91
  if (typeof value === "bigint") {
92
92
  return value.toString();
93
93
  }
@@ -3832,7 +3832,7 @@
3832
3832
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
3833
3833
  };
3834
3834
  const NEVER = INVALID;
3835
- var z = /* @__PURE__ */ Object.freeze({
3835
+ var z$1 = /* @__PURE__ */ Object.freeze({
3836
3836
  __proto__: null,
3837
3837
  defaultErrorMap: errorMap,
3838
3838
  setErrorMap,
@@ -3948,53 +3948,53 @@
3948
3948
  quotelessJson,
3949
3949
  ZodError
3950
3950
  });
3951
- var I$1 = Object.defineProperty;
3952
- var $ = (n2, t, e) => t in n2 ? I$1(n2, t, { enumerable: true, configurable: true, writable: true, value: e }) : n2[t] = e;
3953
- var m$2 = (n2, t, e) => $(n2, typeof t != "symbol" ? t + "" : t, e);
3951
+ var $ = Object.defineProperty;
3952
+ var I$1 = (n2, e, t) => e in n2 ? $(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3953
+ var l$1 = (n2, e, t) => I$1(n2, typeof e != "symbol" ? e + "" : e, t);
3954
3954
  function w(n2) {
3955
3955
  throw new Error("Unexpected object: " + n2);
3956
3956
  }
3957
3957
  function mn(n2) {
3958
3958
  if (!n2 || typeof n2 != "object")
3959
3959
  return false;
3960
- const t = n2;
3961
- if (!("type" in t))
3960
+ const e = n2;
3961
+ if (!("type" in e))
3962
3962
  return false;
3963
- switch (t.type) {
3963
+ switch (e.type) {
3964
3964
  case "Json":
3965
- return typeof t.keyLength == "number" && t.data !== void 0 && typeof t.data == "object";
3965
+ return typeof e.keyLength == "number" && e.data !== void 0 && typeof e.data == "object";
3966
3966
  case "JsonPartitioned":
3967
- return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
3967
+ return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
3968
3968
  case "BinaryPartitioned":
3969
- return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
3969
+ return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
3970
3970
  default:
3971
3971
  return false;
3972
3972
  }
3973
3973
  }
3974
- function yn(n2, t) {
3974
+ function ln(n2, e) {
3975
3975
  if (n2 !== void 0)
3976
3976
  switch (n2.type) {
3977
3977
  case "Json":
3978
3978
  return n2;
3979
3979
  case "JsonPartitioned": {
3980
- const e = {};
3980
+ const t = {};
3981
3981
  for (const [r, o] of Object.entries(n2.parts))
3982
- e[r] = t(o);
3982
+ t[r] = e(o);
3983
3983
  return {
3984
3984
  ...n2,
3985
- parts: e
3985
+ parts: t
3986
3986
  };
3987
3987
  }
3988
3988
  case "BinaryPartitioned": {
3989
- const e = {};
3989
+ const t = {};
3990
3990
  for (const [r, o] of Object.entries(n2.parts))
3991
- e[r] = {
3992
- index: t(o.index),
3993
- values: t(o.values)
3991
+ t[r] = {
3992
+ index: e(o.index),
3993
+ values: e(o.values)
3994
3994
  };
3995
3995
  return {
3996
3996
  ...n2,
3997
- parts: e
3997
+ parts: t
3998
3998
  };
3999
3999
  }
4000
4000
  }
@@ -4002,47 +4002,47 @@
4002
4002
  function j(n2) {
4003
4003
  if (!n2 || typeof n2 != "object")
4004
4004
  return false;
4005
- const t = n2;
4006
- if (!("type" in t))
4005
+ const e = n2;
4006
+ if (!("type" in e))
4007
4007
  return false;
4008
- switch (t.type) {
4008
+ switch (e.type) {
4009
4009
  case "Json":
4010
- return typeof t.keyLength == "number" && Array.isArray(t.data);
4010
+ return typeof e.keyLength == "number" && Array.isArray(e.data);
4011
4011
  case "JsonPartitioned":
4012
- return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
4012
+ return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
4013
4013
  case "BinaryPartitioned":
4014
- return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
4014
+ return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
4015
4015
  default:
4016
4016
  return false;
4017
4017
  }
4018
4018
  }
4019
- function ln(n2) {
4019
+ function yn(n2) {
4020
4020
  return j(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4021
4021
  }
4022
4022
  function hn(n2) {
4023
4023
  switch (n2.type) {
4024
4024
  case "Json": {
4025
- const t = Object.entries(n2.data).map(([e, r]) => ({ key: JSON.parse(e), value: r }));
4025
+ const e = Object.entries(n2.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
4026
4026
  return {
4027
4027
  type: "Json",
4028
4028
  keyLength: n2.keyLength,
4029
- data: t
4029
+ data: e
4030
4030
  };
4031
4031
  }
4032
4032
  case "JsonPartitioned": {
4033
- const t = Object.entries(n2.parts).map(([e, r]) => ({ key: JSON.parse(e), value: r }));
4033
+ const e = Object.entries(n2.parts).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
4034
4034
  return {
4035
4035
  type: "JsonPartitioned",
4036
4036
  partitionKeyLength: n2.partitionKeyLength,
4037
- parts: t
4037
+ parts: e
4038
4038
  };
4039
4039
  }
4040
4040
  case "BinaryPartitioned": {
4041
- const t = Object.entries(n2.parts).map(([e, r]) => ({ key: JSON.parse(e), value: r }));
4041
+ const e = Object.entries(n2.parts).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
4042
4042
  return {
4043
4043
  type: "BinaryPartitioned",
4044
4044
  partitionKeyLength: n2.partitionKeyLength,
4045
- parts: t
4045
+ parts: e
4046
4046
  };
4047
4047
  }
4048
4048
  }
@@ -4050,68 +4050,68 @@
4050
4050
  function gn(n2) {
4051
4051
  switch (n2.type) {
4052
4052
  case "Json": {
4053
- const t = {};
4054
- for (const e of n2.data)
4055
- t[JSON.stringify(e.key)] = e.value;
4053
+ const e = {};
4054
+ for (const t of n2.data)
4055
+ e[JSON.stringify(t.key)] = t.value;
4056
4056
  return {
4057
4057
  type: "Json",
4058
4058
  keyLength: n2.keyLength,
4059
- data: t
4059
+ data: e
4060
4060
  };
4061
4061
  }
4062
4062
  case "JsonPartitioned": {
4063
- const t = {};
4064
- for (const e of n2.parts)
4065
- t[JSON.stringify(e.key)] = e.value;
4063
+ const e = {};
4064
+ for (const t of n2.parts)
4065
+ e[JSON.stringify(t.key)] = t.value;
4066
4066
  return {
4067
4067
  type: "JsonPartitioned",
4068
4068
  partitionKeyLength: n2.partitionKeyLength,
4069
- parts: t
4069
+ parts: e
4070
4070
  };
4071
4071
  }
4072
4072
  case "BinaryPartitioned": {
4073
- const t = {};
4074
- for (const e of n2.parts)
4075
- t[JSON.stringify(e.key)] = e.value;
4073
+ const e = {};
4074
+ for (const t of n2.parts)
4075
+ e[JSON.stringify(t.key)] = t.value;
4076
4076
  return {
4077
4077
  type: "BinaryPartitioned",
4078
4078
  partitionKeyLength: n2.partitionKeyLength,
4079
- parts: t
4079
+ parts: e
4080
4080
  };
4081
4081
  }
4082
4082
  }
4083
4083
  }
4084
- function p$1(n2) {
4085
- const { type: t, name: e, domain: r } = n2;
4086
- return { type: t, name: e, ...r && { domain: r } };
4084
+ function m$2(n2) {
4085
+ const { type: e, name: t, domain: r } = n2;
4086
+ return { type: e, name: t, ...r && { domain: r } };
4087
4087
  }
4088
4088
  function Jn(n2) {
4089
- return _e(p$1(n2));
4089
+ return Le(m$2(n2));
4090
4090
  }
4091
- function X$1(n2, t) {
4092
- if (n2 === void 0) return t === void 0;
4093
- if (t === void 0) return true;
4094
- for (const e in t)
4095
- if (n2[e] !== t[e]) return false;
4091
+ function z(n2, e) {
4092
+ if (n2 === void 0) return e === void 0;
4093
+ if (e === void 0) return true;
4094
+ for (const t in e)
4095
+ if (n2[t] !== e[t]) return false;
4096
4096
  return true;
4097
4097
  }
4098
- function G(n2, t) {
4099
- return n2.name === t.name && X$1(n2.domain, t.domain);
4098
+ function X$1(n2, e) {
4099
+ return n2.name === e.name && z(n2.domain, e.domain);
4100
4100
  }
4101
- function On(n2, t) {
4102
- return { ...n2, src: l$1(n2.src, t) };
4101
+ function On(n2, e) {
4102
+ return { ...n2, src: y(n2.src, e) };
4103
4103
  }
4104
- function l$1(n2, t) {
4104
+ function y(n2, e) {
4105
4105
  switch (n2.type) {
4106
4106
  case "column":
4107
4107
  return {
4108
4108
  type: "column",
4109
- column: t(n2.column)
4109
+ column: e(n2.column)
4110
4110
  };
4111
4111
  case "slicedColumn":
4112
4112
  return {
4113
4113
  type: "slicedColumn",
4114
- column: t(n2.column),
4114
+ column: e(n2.column),
4115
4115
  newId: n2.newId,
4116
4116
  axisFilters: n2.axisFilters
4117
4117
  };
@@ -4119,41 +4119,41 @@
4119
4119
  case "full":
4120
4120
  return {
4121
4121
  type: n2.type,
4122
- entries: n2.entries.map((e) => l$1(e, t))
4122
+ entries: n2.entries.map((t) => y(t, e))
4123
4123
  };
4124
4124
  case "outer":
4125
4125
  return {
4126
4126
  type: "outer",
4127
- primary: l$1(n2.primary, t),
4128
- secondary: n2.secondary.map((e) => l$1(e, t))
4127
+ primary: y(n2.primary, e),
4128
+ secondary: n2.secondary.map((t) => y(t, e))
4129
4129
  };
4130
4130
  default:
4131
4131
  w(n2);
4132
4132
  }
4133
4133
  }
4134
- function Q(n2) {
4135
- return _e(n2);
4134
+ function G(n2) {
4135
+ return Le(n2);
4136
4136
  }
4137
4137
  function x(n2) {
4138
- return _e(p$1(n2));
4138
+ return Le(m$2(n2));
4139
4139
  }
4140
- function A(n2, t) {
4141
- return JSON.stringify([n2, t]);
4140
+ function A(n2, e) {
4141
+ return JSON.stringify([n2, e]);
4142
4142
  }
4143
- class $n {
4143
+ class In {
4144
4144
  /**
4145
4145
  * Creates a new anchor context from a set of anchor column specifications
4146
4146
  * @param anchors Record of anchor column specifications indexed by anchor ID
4147
4147
  */
4148
- constructor(t) {
4149
- m$2(this, "domains", /* @__PURE__ */ new Map());
4150
- m$2(this, "axes", /* @__PURE__ */ new Map());
4151
- m$2(this, "domainPacks", []);
4152
- m$2(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4153
- this.anchors = t;
4154
- const e = Object.entries(t);
4155
- e.sort((r, o) => r[0].localeCompare(o[0]));
4156
- for (const [r, o] of e) {
4148
+ constructor(e) {
4149
+ l$1(this, "domains", /* @__PURE__ */ new Map());
4150
+ l$1(this, "axes", /* @__PURE__ */ new Map());
4151
+ l$1(this, "domainPacks", []);
4152
+ l$1(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4153
+ this.anchors = e;
4154
+ const t = Object.entries(e);
4155
+ t.sort((r, o) => r[0].localeCompare(o[0]));
4156
+ for (const [r, o] of t) {
4157
4157
  for (let s2 = 0; s2 < o.axesSpec.length; s2++) {
4158
4158
  const a = o.axesSpec[s2], i = x(a);
4159
4159
  this.axes.set(i, { anchor: r, idx: s2 });
@@ -4171,18 +4171,18 @@
4171
4171
  /**
4172
4172
  * Implementation of derive method
4173
4173
  */
4174
- derive(t, e) {
4174
+ derive(e, t) {
4175
4175
  const r = {
4176
- name: t.name,
4176
+ name: e.name,
4177
4177
  axes: []
4178
4178
  };
4179
4179
  let o;
4180
- if (t.domain !== void 0)
4180
+ if (e.domain !== void 0)
4181
4181
  n:
4182
4182
  for (const a of this.domainPacks) {
4183
4183
  const i = [];
4184
4184
  for (const c2 of a) {
4185
- const d = t.domain[c2];
4185
+ const d = e.domain[c2];
4186
4186
  if (d !== void 0)
4187
4187
  i.push([c2, d]);
4188
4188
  else
@@ -4194,26 +4194,26 @@
4194
4194
  break;
4195
4195
  }
4196
4196
  }
4197
- for (const [a, i] of Object.entries(t.domain ?? {})) {
4197
+ for (const [a, i] of Object.entries(e.domain ?? {})) {
4198
4198
  if (o !== void 0 && o.has(a))
4199
4199
  continue;
4200
4200
  const u2 = A(a, i), c2 = this.domains.get(u2);
4201
4201
  r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
4202
4202
  }
4203
- if (r.axes = t.axesSpec.map((a) => {
4203
+ if (r.axes = e.axesSpec.map((a) => {
4204
4204
  const i = x(a), u2 = this.axes.get(i);
4205
- return u2 === void 0 ? p$1(a) : u2;
4206
- }), !e || e.length === 0)
4205
+ return u2 === void 0 ? m$2(a) : u2;
4206
+ }), !t || t.length === 0)
4207
4207
  return r;
4208
4208
  const s2 = [];
4209
- for (const a of e) {
4209
+ for (const a of t) {
4210
4210
  const [i, u2] = a;
4211
4211
  if (typeof i == "number") {
4212
- if (i < 0 || i >= t.axesSpec.length)
4213
- throw new Error(`Axis index ${i} is out of bounds (0-${t.axesSpec.length - 1})`);
4212
+ if (i < 0 || i >= e.axesSpec.length)
4213
+ throw new Error(`Axis index ${i} is out of bounds (0-${e.axesSpec.length - 1})`);
4214
4214
  s2.push([i, u2]);
4215
4215
  } else {
4216
- const c2 = t.axesSpec.findIndex((d) => d.name === i);
4216
+ const c2 = e.axesSpec.findIndex((d) => d.name === i);
4217
4217
  if (c2 === -1)
4218
4218
  throw new Error(`Axis with name "${i}" not found in the column specification`);
4219
4219
  s2.push([c2, u2]);
@@ -4230,12 +4230,12 @@
4230
4230
  * @param axisFilters Optional axis filters to apply to the column
4231
4231
  * @returns A canonicalized string representation of the anchored column identifier
4232
4232
  */
4233
- deriveS(t, e) {
4234
- return Q(this.derive(t, e));
4233
+ deriveS(e, t) {
4234
+ return G(this.derive(e, t));
4235
4235
  }
4236
4236
  }
4237
- function Dn(n2, t, e) {
4238
- const r = { ...t }, o = (e == null ? void 0 : e.ignoreMissingDomains) ?? false;
4237
+ function Dn(n2, e, t) {
4238
+ const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
4239
4239
  if (r.domainAnchor !== void 0) {
4240
4240
  const s2 = n2[r.domainAnchor];
4241
4241
  if (!s2)
@@ -4261,135 +4261,135 @@
4261
4261
  }
4262
4262
  r.domain = s2;
4263
4263
  }
4264
- return r.axes && (r.axes = r.axes.map((s2) => Y$1(n2, s2))), r;
4264
+ return r.axes && (r.axes = r.axes.map((s2) => Q(n2, s2))), r;
4265
4265
  }
4266
- function Y$1(n2, t) {
4267
- if (!Z$1(t))
4268
- return t;
4269
- const e = t.anchor, r = n2[e];
4266
+ function Q(n2, e) {
4267
+ if (!Y(e))
4268
+ return e;
4269
+ const t = e.anchor, r = n2[t];
4270
4270
  if (!r)
4271
- throw new Error(`Anchor "${e}" not found for axis reference`);
4272
- if ("idx" in t) {
4273
- if (t.idx < 0 || t.idx >= r.axesSpec.length)
4274
- throw new Error(`Axis index ${t.idx} out of bounds for anchor "${e}"`);
4275
- return r.axesSpec[t.idx];
4276
- } else if ("name" in t) {
4277
- const o = r.axesSpec.filter((s2) => s2.name === t.name);
4271
+ throw new Error(`Anchor "${t}" not found for axis reference`);
4272
+ if ("idx" in e) {
4273
+ if (e.idx < 0 || e.idx >= r.axesSpec.length)
4274
+ throw new Error(`Axis index ${e.idx} out of bounds for anchor "${t}"`);
4275
+ return r.axesSpec[e.idx];
4276
+ } else if ("name" in e) {
4277
+ const o = r.axesSpec.filter((s2) => s2.name === e.name);
4278
4278
  if (o.length > 1)
4279
- throw new Error(`Multiple axes with name "${t.name}" found in anchor "${e}"`);
4279
+ throw new Error(`Multiple axes with name "${e.name}" found in anchor "${t}"`);
4280
4280
  if (o.length === 0)
4281
- throw new Error(`Axis with name "${t.name}" not found in anchor "${e}"`);
4281
+ throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
4282
4282
  return o[0];
4283
- } else if ("id" in t) {
4284
- const o = r.axesSpec.filter((s2) => G(t.id, p$1(s2)));
4283
+ } else if ("id" in e) {
4284
+ const o = r.axesSpec.filter((s2) => X$1(e.id, m$2(s2)));
4285
4285
  if (o.length > 1)
4286
- throw new Error(`Multiple matching axes found for matcher in anchor "${e}"`);
4286
+ throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4287
4287
  if (o.length === 0)
4288
- throw new Error(`No matching axis found for matcher in anchor "${e}"`);
4288
+ throw new Error(`No matching axis found for matcher in anchor "${t}"`);
4289
4289
  return o[0];
4290
4290
  }
4291
4291
  throw new Error("Unsupported axis reference type");
4292
4292
  }
4293
- function Z$1(n2) {
4293
+ function Y(n2) {
4294
4294
  return typeof n2 == "object" && "anchor" in n2;
4295
4295
  }
4296
4296
  function f(n2) {
4297
4297
  return n2.kind === "PColumn";
4298
4298
  }
4299
- function q(n2) {
4299
+ function Z$1(n2) {
4300
4300
  return f(n2.spec);
4301
4301
  }
4302
4302
  function jn(n2) {
4303
- if (!q(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4303
+ if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4304
4304
  return n2;
4305
4305
  }
4306
- function Fn(n2, t) {
4306
+ function Fn(n2, e) {
4307
4307
  return n2 === void 0 ? void 0 : {
4308
4308
  ...n2,
4309
- data: t(n2.data)
4309
+ data: e(n2.data)
4310
4310
  };
4311
4311
  }
4312
4312
  function Un(n2) {
4313
- const t = /* @__PURE__ */ new Map(), e = (r) => {
4313
+ const e = /* @__PURE__ */ new Map(), t = (r) => {
4314
4314
  switch (r.type) {
4315
4315
  case "column":
4316
- t.set(r.column.id, r.column);
4316
+ e.set(r.column.id, r.column);
4317
4317
  return;
4318
4318
  case "slicedColumn":
4319
- t.set(r.column.id, r.column);
4319
+ e.set(r.column.id, r.column);
4320
4320
  return;
4321
4321
  case "full":
4322
4322
  case "inner":
4323
- for (const o of r.entries) e(o);
4323
+ for (const o of r.entries) t(o);
4324
4324
  return;
4325
4325
  case "outer":
4326
- e(r.primary);
4327
- for (const o of r.secondary) e(o);
4326
+ t(r.primary);
4327
+ for (const o of r.secondary) t(o);
4328
4328
  return;
4329
4329
  default:
4330
4330
  w(r);
4331
4331
  }
4332
4332
  };
4333
- return e(n2), [...t.values()];
4333
+ return t(n2), [...e.values()];
4334
4334
  }
4335
- function k(n2, t) {
4336
- if (n2.name !== void 0 && n2.name !== t.name)
4335
+ function k(n2, e) {
4336
+ if (n2.name !== void 0 && n2.name !== e.name)
4337
4337
  return false;
4338
4338
  if (n2.type !== void 0) {
4339
4339
  if (Array.isArray(n2.type)) {
4340
- if (!n2.type.includes(t.type))
4340
+ if (!n2.type.includes(e.type))
4341
4341
  return false;
4342
- } else if (n2.type !== t.type)
4342
+ } else if (n2.type !== e.type)
4343
4343
  return false;
4344
4344
  }
4345
4345
  if (n2.domain !== void 0) {
4346
- const e = t.domain || {};
4346
+ const t = e.domain || {};
4347
4347
  for (const [r, o] of Object.entries(n2.domain))
4348
- if (e[r] !== o)
4348
+ if (t[r] !== o)
4349
4349
  return false;
4350
4350
  }
4351
4351
  return true;
4352
4352
  }
4353
- function N(n2, t) {
4354
- if (t.name !== void 0 && n2.name !== t.name || t.namePattern !== void 0 && !new RegExp(t.namePattern).test(n2.name))
4353
+ function N(n2, e) {
4354
+ if (e.name !== void 0 && n2.name !== e.name || e.namePattern !== void 0 && !new RegExp(e.namePattern).test(n2.name))
4355
4355
  return false;
4356
- if (t.type !== void 0) {
4357
- if (Array.isArray(t.type)) {
4358
- if (!t.type.includes(n2.valueType))
4356
+ if (e.type !== void 0) {
4357
+ if (Array.isArray(e.type)) {
4358
+ if (!e.type.includes(n2.valueType))
4359
4359
  return false;
4360
- } else if (t.type !== n2.valueType)
4360
+ } else if (e.type !== n2.valueType)
4361
4361
  return false;
4362
4362
  }
4363
- if (t.domain !== void 0) {
4364
- const e = n2.domain || {};
4365
- for (const [r, o] of Object.entries(t.domain))
4366
- if (e[r] !== o)
4363
+ if (e.domain !== void 0) {
4364
+ const t = n2.domain || {};
4365
+ for (const [r, o] of Object.entries(e.domain))
4366
+ if (t[r] !== o)
4367
4367
  return false;
4368
4368
  }
4369
- if (t.axes !== void 0) {
4370
- const e = n2.axesSpec.map(p$1);
4371
- if (t.partialAxesMatch) {
4372
- for (const r of t.axes)
4373
- if (!e.some((o) => k(r, o)))
4369
+ if (e.axes !== void 0) {
4370
+ const t = n2.axesSpec.map(m$2);
4371
+ if (e.partialAxesMatch) {
4372
+ for (const r of e.axes)
4373
+ if (!t.some((o) => k(r, o)))
4374
4374
  return false;
4375
4375
  } else {
4376
- if (e.length !== t.axes.length)
4376
+ if (t.length !== e.axes.length)
4377
4377
  return false;
4378
- for (let r = 0; r < t.axes.length; r++)
4379
- if (!k(t.axes[r], e[r]))
4378
+ for (let r = 0; r < e.axes.length; r++)
4379
+ if (!k(e.axes[r], t[r]))
4380
4380
  return false;
4381
4381
  }
4382
4382
  }
4383
- if (t.annotations !== void 0) {
4384
- const e = n2.annotations || {};
4385
- for (const [r, o] of Object.entries(t.annotations))
4386
- if (e[r] !== o)
4383
+ if (e.annotations !== void 0) {
4384
+ const t = n2.annotations || {};
4385
+ for (const [r, o] of Object.entries(e.annotations))
4386
+ if (t[r] !== o)
4387
4387
  return false;
4388
4388
  }
4389
- if (t.annotationPatterns !== void 0) {
4390
- const e = n2.annotations || {};
4391
- for (const [r, o] of Object.entries(t.annotationPatterns)) {
4392
- const s2 = e[r];
4389
+ if (e.annotationPatterns !== void 0) {
4390
+ const t = n2.annotations || {};
4391
+ for (const [r, o] of Object.entries(e.annotationPatterns)) {
4392
+ const s2 = t[r];
4393
4393
  if (s2 === void 0 || !new RegExp(o).test(s2))
4394
4394
  return false;
4395
4395
  }
@@ -4397,23 +4397,35 @@
4397
4397
  return true;
4398
4398
  }
4399
4399
  function Kn(n2) {
4400
- return Array.isArray(n2) ? (t) => n2.some((e) => f(t) && N(t, e)) : (t) => f(t) && N(t, n2);
4400
+ return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
4401
4401
  }
4402
- z.object({
4403
- __isRef: z.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4404
- blockId: z.string().describe("Upstream block id"),
4405
- name: z.string().describe("Name of the output provided to the upstream block's output context")
4402
+ z$1.object({
4403
+ __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4404
+ blockId: z$1.string().describe("Upstream block id"),
4405
+ name: z$1.string().describe("Name of the output provided to the upstream block's output context"),
4406
+ requireEnrichments: z$1.literal(true).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
4406
4407
  }).describe(
4407
4408
  "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."
4408
- ).strict().readonly();
4409
- function Tn(n2) {
4409
+ ).readonly();
4410
+ function Mn(n2) {
4410
4411
  return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
4411
4412
  }
4412
- function _n(n2, t) {
4413
- return n2.ok ? { ok: true, value: t(n2.value) } : n2;
4413
+ function vn(n2, e = true) {
4414
+ if (e)
4415
+ return {
4416
+ ...n2,
4417
+ requireEnrichments: true
4418
+ };
4419
+ {
4420
+ const { requireEnrichments: t, ...r } = n2;
4421
+ return r;
4422
+ }
4423
+ }
4424
+ function qn(n2, e) {
4425
+ return n2.ok ? { ok: true, value: e(n2.value) } : n2;
4414
4426
  }
4415
4427
  const sn = 24;
4416
- z.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4428
+ z$1.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4417
4429
  var stringify = { exports: {} };
4418
4430
  (function(module2, exports3) {
4419
4431
  exports3 = module2.exports = stringify2;
@@ -4438,82 +4450,82 @@
4438
4450
  };
4439
4451
  }
4440
4452
  })(stringify, stringify.exports);
4441
- const l = z.object({
4442
- type: z.literal("PlError"),
4443
- name: z.string(),
4444
- message: z.string(),
4453
+ const l = z$1.object({
4454
+ type: z$1.literal("PlError"),
4455
+ name: z$1.string(),
4456
+ message: z$1.string(),
4445
4457
  /** The message with all details needed for SDK developers. */
4446
- fullMessage: z.string().optional(),
4447
- stack: z.string().optional()
4458
+ fullMessage: z$1.string().optional(),
4459
+ stack: z$1.string().optional()
4448
4460
  }), c = l.extend({
4449
- cause: z.lazy(() => s).optional(),
4450
- errors: z.lazy(() => s.array()).optional()
4451
- }), m$1 = z.object({
4452
- type: z.literal("StandardError"),
4453
- name: z.string(),
4454
- message: z.string(),
4455
- stack: z.string().optional()
4461
+ cause: z$1.lazy(() => s).optional(),
4462
+ errors: z$1.lazy(() => s.array()).optional()
4463
+ }), m$1 = z$1.object({
4464
+ type: z$1.literal("StandardError"),
4465
+ name: z$1.string(),
4466
+ message: z$1.string(),
4467
+ stack: z$1.string().optional()
4456
4468
  }), p = m$1.extend({
4457
- cause: z.lazy(() => s).optional(),
4458
- errors: z.lazy(() => s.array()).optional()
4459
- }), s = z.union([p, c]);
4460
- const u = z.object({
4461
- name: z.string(),
4462
- message: z.string(),
4463
- fullMessage: z.string().optional(),
4464
- stack: z.string().optional()
4469
+ cause: z$1.lazy(() => s).optional(),
4470
+ errors: z$1.lazy(() => s.array()).optional()
4471
+ }), s = z$1.union([p, c]);
4472
+ const u = z$1.object({
4473
+ name: z$1.string(),
4474
+ message: z$1.string(),
4475
+ fullMessage: z$1.string().optional(),
4476
+ stack: z$1.string().optional()
4465
4477
  }), n = u.extend({
4466
- cause: z.lazy(() => n).optional(),
4467
- errors: z.lazy(() => n.array()).optional()
4478
+ cause: z$1.lazy(() => n).optional(),
4479
+ errors: z$1.lazy(() => n.array()).optional()
4468
4480
  });
4469
- var Ue = Object.defineProperty;
4470
- var Me = (t, e, n2) => e in t ? Ue(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4471
- var L = (t, e, n2) => Me(t, typeof e != "symbol" ? e + "" : e, n2);
4481
+ var Me = Object.defineProperty;
4482
+ var We = (t, e, n2) => e in t ? Me(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4483
+ var T = (t, e, n2) => We(t, typeof e != "symbol" ? e + "" : e, n2);
4472
4484
  function Z(t) {
4473
4485
  return { type: "Immediate", value: t };
4474
4486
  }
4475
- function it() {
4487
+ function st() {
4476
4488
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4477
4489
  }
4478
- function Te(t) {
4490
+ function Ee(t) {
4479
4491
  if (t && typeof globalThis.getPlatforma == "function")
4480
4492
  return globalThis.getPlatforma(t);
4481
4493
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4482
4494
  throw new Error("Can't get platforma instance.");
4483
4495
  }
4484
- function st() {
4496
+ function ot() {
4485
4497
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4486
4498
  }
4487
4499
  function m() {
4488
4500
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4489
4501
  throw new Error("Not in config rendering context");
4490
4502
  }
4491
- function Y(t, e) {
4492
- const n2 = st();
4503
+ function U(t, e) {
4504
+ const n2 = ot();
4493
4505
  if (n2 === void 0) return false;
4494
4506
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4495
4507
  return n2.callbackRegistry[t] = e, true;
4496
4508
  }
4497
4509
  const ae = /* @__PURE__ */ new Map();
4498
- function ot(t, e) {
4510
+ function at(t, e) {
4499
4511
  t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
4500
4512
  for (const r of ae.get(t))
4501
4513
  r(n2);
4502
4514
  }, ae.set(t, [])), ae.get(t).push(e);
4503
4515
  }
4504
- class S {
4516
+ class C {
4505
4517
  constructor(e, n2 = (r) => r) {
4506
- L(this, "isResolved", false);
4507
- L(this, "resolvedValue");
4508
- this.handle = e, this.postProcess = n2, ot(e, (r) => {
4518
+ T(this, "isResolved", false);
4519
+ T(this, "resolvedValue");
4520
+ this.handle = e, this.postProcess = n2, at(e, (r) => {
4509
4521
  this.resolvedValue = n2(r), this.isResolved = true;
4510
4522
  });
4511
4523
  }
4512
4524
  map(e) {
4513
- return new S(this.handle, (n2) => e(this.postProcess(n2)));
4525
+ return new C(this.handle, (n2) => e(this.postProcess(n2)));
4514
4526
  }
4515
4527
  mapDefined(e) {
4516
- return new S(this.handle, (n2) => {
4528
+ return new C(this.handle, (n2) => {
4517
4529
  const r = this.postProcess(n2);
4518
4530
  return r ? e(r) : void 0;
4519
4531
  });
@@ -4522,7 +4534,7 @@
4522
4534
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
4523
4535
  }
4524
4536
  }
4525
- function pe(t, e) {
4537
+ function de(t, e) {
4526
4538
  return t === void 0 ? void 0 : e(t);
4527
4539
  }
4528
4540
  class I {
@@ -4564,7 +4576,7 @@
4564
4576
  ...this.resolvePath,
4565
4577
  ...n2.map((i) => typeof i == "string" ? i : i.field)
4566
4578
  ];
4567
- return pe(
4579
+ return de(
4568
4580
  m().resolveWithCommon(this.handle, e, ...n2),
4569
4581
  (i) => new I(i, r)
4570
4582
  );
@@ -4586,7 +4598,7 @@
4586
4598
  }
4587
4599
  getError() {
4588
4600
  const e = [...this.resolvePath, "error"];
4589
- return pe(
4601
+ return de(
4590
4602
  m().getError(this.handle),
4591
4603
  (n2) => new I(n2, e)
4592
4604
  );
@@ -4628,7 +4640,7 @@
4628
4640
  getPColumns(e = false, n2 = "") {
4629
4641
  const r = this.parsePObjectCollection(e, n2);
4630
4642
  return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
4631
- if (!q(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4643
+ if (!Z$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4632
4644
  return s2;
4633
4645
  });
4634
4646
  }
@@ -4651,13 +4663,13 @@
4651
4663
  return i;
4652
4664
  }
4653
4665
  getFileContentAsBase64() {
4654
- return new S(m().getBlobContentAsBase64(this.handle));
4666
+ return new C(m().getBlobContentAsBase64(this.handle));
4655
4667
  }
4656
4668
  getFileContentAsString() {
4657
- return new S(m().getBlobContentAsString(this.handle));
4669
+ return new C(m().getBlobContentAsString(this.handle));
4658
4670
  }
4659
4671
  getFileContentAsJson() {
4660
- return new S(
4672
+ return new C(
4661
4673
  m().getBlobContentAsString(this.handle)
4662
4674
  ).mapDefined((e) => JSON.parse(e));
4663
4675
  }
@@ -4677,7 +4689,7 @@
4677
4689
  * @returns downloaded file handle
4678
4690
  */
4679
4691
  getFileHandle() {
4680
- return new S(m().getDownloadedBlobContentHandle(this.handle));
4692
+ return new C(m().getDownloadedBlobContentHandle(this.handle));
4681
4693
  }
4682
4694
  /**
4683
4695
  * @deprecated use getFileHandle
@@ -4689,7 +4701,7 @@
4689
4701
  * @returns downloaded file handle
4690
4702
  */
4691
4703
  getRemoteFileHandle() {
4692
- return new S(m().getOnDemandBlobContentHandle(this.handle));
4704
+ return new C(m().getOnDemandBlobContentHandle(this.handle));
4693
4705
  }
4694
4706
  /**
4695
4707
  * @deprecated use getRemoteFileHandle
@@ -4701,22 +4713,22 @@
4701
4713
  * @returns the url to the extracted folder
4702
4714
  */
4703
4715
  extractArchiveAndGetURL(e) {
4704
- return new S(m().extractArchiveAndGetURL(this.handle, e));
4716
+ return new C(m().extractArchiveAndGetURL(this.handle, e));
4705
4717
  }
4706
4718
  getImportProgress() {
4707
- return new S(m().getImportProgress(this.handle));
4719
+ return new C(m().getImportProgress(this.handle));
4708
4720
  }
4709
4721
  getLastLogs(e) {
4710
- return new S(m().getLastLogs(this.handle, e));
4722
+ return new C(m().getLastLogs(this.handle, e));
4711
4723
  }
4712
4724
  getProgressLog(e) {
4713
- return new S(m().getProgressLog(this.handle, e));
4725
+ return new C(m().getProgressLog(this.handle, e));
4714
4726
  }
4715
4727
  getProgressLogWithInfo(e) {
4716
- return new S(m().getProgressLogWithInfo(this.handle, e));
4728
+ return new C(m().getProgressLogWithInfo(this.handle, e));
4717
4729
  }
4718
4730
  getLogHandle() {
4719
- return new S(m().getLogHandle(this.handle));
4731
+ return new C(m().getLogHandle(this.handle));
4720
4732
  }
4721
4733
  allFieldsResolved(e = "Input") {
4722
4734
  switch (e) {
@@ -4742,47 +4754,47 @@
4742
4754
  let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4743
4755
  (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4744
4756
  );
4745
- return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, y]) => o(u2, y));
4757
+ return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, y2]) => o(u2, y2));
4746
4758
  }
4747
4759
  }
4748
- const Ee = "staging", Fe = "main";
4749
- const ut = "pl7.app/label", ct = "pl7.app/trace", pt = z.object({
4750
- type: z.string(),
4751
- importance: z.number().optional(),
4752
- id: z.string().optional(),
4753
- label: z.string()
4754
- }), dt = z.array(pt), ft = 1e-3, ht = "__LABEL__", Ae = "__LABEL__@1";
4755
- function Oe(t, e, n2 = {}) {
4760
+ const Fe = "staging", De = "main";
4761
+ const ct = "pl7.app/label", dt = "pl7.app/trace", pt = z$1.object({
4762
+ type: z$1.string(),
4763
+ importance: z$1.number().optional(),
4764
+ id: z$1.string().optional(),
4765
+ label: z$1.string()
4766
+ }), ft = z$1.array(pt), ht = 1e-3, gt = "__LABEL__", Pe = "__LABEL__@1";
4767
+ function Re(t, e, n2 = {}) {
4756
4768
  const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
4757
- var q2, F;
4769
+ var z2, F;
4758
4770
  const h = e(f2);
4759
- let d, x2, c2;
4760
- "spec" in h && typeof h.spec == "object" ? (d = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : d = h;
4761
- const v = (q2 = d.annotations) == null ? void 0 : q2[ut], g = (F = d.annotations) == null ? void 0 : F[ct], b = (g ? dt.safeParse(JSON.parse(g)).data : void 0) ?? [], A2 = [
4771
+ let p2, x2, c2;
4772
+ "spec" in h && typeof h.spec == "object" ? (p2 = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : p2 = h;
4773
+ const v = (z2 = p2.annotations) == null ? void 0 : z2[ct], g = (F = p2.annotations) == null ? void 0 : F[dt], b = (g ? ft.safeParse(JSON.parse(g)).data : void 0) ?? [], A2 = [
4762
4774
  ...x2 ?? [],
4763
4775
  ...b,
4764
4776
  ...c2 ?? []
4765
4777
  ];
4766
4778
  if (v) {
4767
- const _ = { label: v, type: ht, importance: -2 };
4768
- n2.addLabelAsSuffix ? A2.push(_) : A2.splice(0, 0, _);
4779
+ const L = { label: v, type: gt, importance: -2 };
4780
+ n2.addLabelAsSuffix ? A2.push(L) : A2.splice(0, 0, L);
4769
4781
  }
4770
4782
  const D = [], $2 = /* @__PURE__ */ new Map();
4771
- for (let _ = A2.length - 1; _ >= 0; --_) {
4772
- const { type: R } = A2[_], se = A2[_].importance ?? 0, J = ($2.get(R) ?? 0) + 1;
4783
+ for (let L = A2.length - 1; L >= 0; --L) {
4784
+ const { type: R } = A2[L], se = A2[L].importance ?? 0, J = ($2.get(R) ?? 0) + 1;
4773
4785
  $2.set(R, J);
4774
4786
  const P = `${R}@${J}`;
4775
4787
  i.set(P, (i.get(P) ?? 0) + 1), r.set(
4776
4788
  P,
4777
4789
  Math.max(
4778
4790
  r.get(P) ?? Number.NEGATIVE_INFINITY,
4779
- se - (A2.length - _) * ft
4791
+ se - (A2.length - L) * ht
4780
4792
  )
4781
- ), D.push({ ...A2[_], fullType: P, occurenceIndex: J });
4793
+ ), D.push({ ...A2[L], fullType: P, occurenceIndex: J });
4782
4794
  }
4783
4795
  return D.reverse(), {
4784
4796
  value: f2,
4785
- spec: d,
4797
+ spec: p2,
4786
4798
  label: v,
4787
4799
  fullTrace: D
4788
4800
  };
@@ -4792,8 +4804,8 @@
4792
4804
  f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
4793
4805
  const u2 = (f2) => {
4794
4806
  const h = [];
4795
- for (let d = 0; d < s2.length; d++) {
4796
- const x2 = s2[d], c2 = x2.fullTrace.filter((b) => f2.has(b.fullType));
4807
+ for (let p2 = 0; p2 < s2.length; p2++) {
4808
+ const x2 = s2[p2], c2 = x2.fullTrace.filter((b) => f2.has(b.fullType));
4797
4809
  if (c2.length === 0)
4798
4810
  return;
4799
4811
  const v = c2.map((b) => b.label), g = n2.separator ?? " / ";
@@ -4806,25 +4818,25 @@
4806
4818
  };
4807
4819
  if (o.length === 0) {
4808
4820
  if (a.length !== 0) throw new Error("Assertion error.");
4809
- const f2 = u2(new Set(Ae));
4821
+ const f2 = u2(new Set(Pe));
4810
4822
  if (f2 === void 0) throw new Error("Assertion error.");
4811
4823
  return f2;
4812
4824
  }
4813
- let y = 0, w2 = 0;
4814
- for (; y < o.length; ) {
4825
+ let y2 = 0, w2 = 0;
4826
+ for (; y2 < o.length; ) {
4815
4827
  const f2 = /* @__PURE__ */ new Set();
4816
- n2.includeNativeLabel && f2.add(Ae);
4817
- for (let d = 0; d < y; ++d) f2.add(o[d]);
4828
+ n2.includeNativeLabel && f2.add(Pe);
4829
+ for (let p2 = 0; p2 < y2; ++p2) f2.add(o[p2]);
4818
4830
  f2.add(o[w2]);
4819
4831
  const h = u2(f2);
4820
- if (h !== void 0 && new Set(h.map((d) => d.label)).size === t.length) return h;
4821
- w2++, w2 >= o.length && (y++, w2 = y);
4832
+ if (h !== void 0 && new Set(h.map((p2) => p2.label)).size === t.length) return h;
4833
+ w2++, w2 >= o.length && (y2++, w2 = y2);
4822
4834
  }
4823
- const p2 = u2(/* @__PURE__ */ new Set([...o, ...a]));
4824
- if (p2 === void 0) throw new Error("Assertion error.");
4825
- return p2;
4835
+ const d = u2(/* @__PURE__ */ new Set([...o, ...a]));
4836
+ if (d === void 0) throw new Error("Assertion error.");
4837
+ return d;
4826
4838
  }
4827
- const H = "PColumnData/", ne = H + "ResourceMap", re = H + "Partitioned/ResourceMap", B = H + "JsonPartitioned", K = H + "BinaryPartitioned", Re = H + "Partitioned/", ie = Re + "JsonPartitioned", U = Re + "BinaryPartitioned";
4839
+ const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", B = q + "JsonPartitioned", K = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", M = ke + "BinaryPartitioned";
4828
4840
  const fe = (t) => {
4829
4841
  if (t.endsWith(".index"))
4830
4842
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
@@ -4832,7 +4844,7 @@
4832
4844
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
4833
4845
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
4834
4846
  };
4835
- function gt(t) {
4847
+ function mt(t) {
4836
4848
  if (!t) return;
4837
4849
  const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
4838
4850
  let i = 0;
@@ -4847,7 +4859,7 @@
4847
4859
  case K:
4848
4860
  i = n2.partitionKeyLength;
4849
4861
  break;
4850
- case U:
4862
+ case M:
4851
4863
  case ie:
4852
4864
  i = n2.superPartitionKeyLength + n2.partitionKeyLength;
4853
4865
  break;
@@ -4863,13 +4875,13 @@
4863
4875
  }
4864
4876
  break;
4865
4877
  case re:
4866
- case U:
4878
+ case M:
4867
4879
  case ie:
4868
4880
  for (const s2 of t.listInputFields()) {
4869
4881
  const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
4870
4882
  if (a !== void 0)
4871
4883
  for (let l2 of a.listInputFields()) {
4872
- e === U && (l2 = fe(l2).baseKey);
4884
+ e === M && (l2 = fe(l2).baseKey);
4873
4885
  const u2 = [...o, ...JSON.parse(l2)];
4874
4886
  r.push(u2);
4875
4887
  }
@@ -4878,7 +4890,7 @@
4878
4890
  }
4879
4891
  return { data: r, keyLength: i };
4880
4892
  }
4881
- function mt(t) {
4893
+ function yt(t) {
4882
4894
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
4883
4895
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
4884
4896
  const { parts: e, partitionKeyLength: n2 } = t, r = [];
@@ -4897,11 +4909,11 @@
4897
4909
  }
4898
4910
  return r.map((i) => Array.from(i.values()));
4899
4911
  }
4900
- function yt(t) {
4912
+ function vt(t) {
4901
4913
  if (t === void 0) return;
4902
4914
  if (j(t))
4903
- return mt(t);
4904
- const e = gt(t);
4915
+ return yt(t);
4916
+ const e = mt(t);
4905
4917
  if (!e) return;
4906
4918
  const { data: n2, keyLength: r } = e, i = [];
4907
4919
  for (let s2 = 0; s2 < r; ++s2)
@@ -4917,7 +4929,7 @@
4917
4929
  function he(t, e = []) {
4918
4930
  if (t === void 0 || !t.getIsReadyOrError()) return;
4919
4931
  const n2 = t.resourceType.name, r = t.getDataAsJson();
4920
- if (e.length > 0 && (n2 === ie || n2 === U))
4932
+ if (e.length > 0 && (n2 === ie || n2 === M))
4921
4933
  throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
4922
4934
  switch (n2) {
4923
4935
  case ne:
@@ -4987,7 +4999,7 @@
4987
4999
  parts: s2
4988
5000
  };
4989
5001
  }
4990
- case U: {
5002
+ case M: {
4991
5003
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4992
5004
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
4993
5005
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
@@ -5012,7 +5024,7 @@
5012
5024
  throw new Error(`Unknown resource type: ${n2}`);
5013
5025
  }
5014
5026
  }
5015
- function vt(t) {
5027
+ function bt(t) {
5016
5028
  if (t !== void 0) {
5017
5029
  if (j(t)) return t;
5018
5030
  if (mn(t)) return hn(t);
@@ -5020,7 +5032,7 @@
5020
5032
  throw new Error(`Unexpected input type: ${typeof t}`);
5021
5033
  }
5022
5034
  }
5023
- function bt(t, e) {
5035
+ function wt(t, e) {
5024
5036
  const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
5025
5037
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5026
5038
  const { partitionKeyLength: s2 } = t;
@@ -5080,7 +5092,7 @@
5080
5092
  }
5081
5093
  }
5082
5094
  }
5083
- class wt {
5095
+ class At {
5084
5096
  constructor(e) {
5085
5097
  this.columns = e;
5086
5098
  }
@@ -5089,7 +5101,7 @@
5089
5101
  return this.columns.filter((r) => n2(r.spec));
5090
5102
  }
5091
5103
  }
5092
- function At(t) {
5104
+ function Pt(t) {
5093
5105
  if (t)
5094
5106
  return t.map((e) => ({
5095
5107
  type: `split:${Jn(e.axisId)}`,
@@ -5098,21 +5110,21 @@
5098
5110
  // High importance for split filters in labels
5099
5111
  }));
5100
5112
  }
5101
- function Pt(t) {
5113
+ function xt(t) {
5102
5114
  if (t)
5103
5115
  return t.map((e) => [e.axisIdx, e.value]);
5104
5116
  }
5105
- function xt(t, e) {
5117
+ function St(t, e) {
5106
5118
  if (!e || e.length === 0) return t;
5107
5119
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5108
- return _e({ id: t, axisFilters: n2 });
5120
+ return Le({ id: t, axisFilters: n2 });
5109
5121
  }
5110
5122
  function Ct(t) {
5111
5123
  if (!t || typeof t != "object") return false;
5112
5124
  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);
5113
5125
  return !!e.domainAnchor || n2 || r;
5114
5126
  }
5115
- function St(t) {
5127
+ function _t(t) {
5116
5128
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5117
5129
  return [];
5118
5130
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5122,9 +5134,9 @@
5122
5134
  }
5123
5135
  class ge {
5124
5136
  constructor() {
5125
- L(this, "defaultProviderStore", []);
5126
- L(this, "providers", [new wt(this.defaultProviderStore)]);
5127
- L(this, "axisLabelProviders", []);
5137
+ T(this, "defaultProviderStore", []);
5138
+ T(this, "providers", [new At(this.defaultProviderStore)]);
5139
+ T(this, "axisLabelProviders", []);
5128
5140
  }
5129
5141
  addColumnProvider(e) {
5130
5142
  return this.providers.push(e), this;
@@ -5150,40 +5162,40 @@
5150
5162
  ...o && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
5151
5163
  ...i ?? {}
5152
5164
  }, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
5153
- for (const p2 of l2) {
5154
- const f$1 = Ct(p2);
5165
+ for (const d of l2) {
5166
+ const f$1 = Ct(d);
5155
5167
  let h;
5156
5168
  if (f$1) {
5157
5169
  if (!r)
5158
5170
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5159
- h = Dn(r.anchors, p2, n2);
5171
+ h = Dn(r.anchors, d, n2);
5160
5172
  } else
5161
- h = p2;
5162
- const d = /* @__PURE__ */ new Set(), x2 = [];
5173
+ h = d;
5174
+ const p2 = /* @__PURE__ */ new Set(), x2 = [];
5163
5175
  for (const g of this.providers) {
5164
5176
  const b = g.selectColumns(h);
5165
5177
  for (const A2 of b) {
5166
- if (d.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
5167
- d.add(A2.id), x2.push(A2);
5178
+ if (p2.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
5179
+ p2.add(A2.id), x2.push(A2);
5168
5180
  }
5169
5181
  }
5170
5182
  if (x2.length === 0) continue;
5171
- const c2 = St(p2), v = c2.length > 0;
5183
+ const c2 = _t(d), v = c2.length > 0;
5172
5184
  for (const g of x2) {
5173
5185
  if (!f(g.spec)) continue;
5174
5186
  const b = g.spec;
5175
5187
  if (v) {
5176
- const A2 = vt(g.data);
5188
+ const A2 = bt(g.data);
5177
5189
  if (!A2) {
5178
5190
  if (s2) continue;
5179
5191
  return;
5180
5192
  }
5181
- if (!ln(A2))
5193
+ if (!yn(A2))
5182
5194
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${g.id}`);
5183
- const D = yt(A2), $2 = c2[c2.length - 1];
5195
+ const D = vt(A2), $2 = c2[c2.length - 1];
5184
5196
  if ($2 >= A2.partitionKeyLength)
5185
5197
  throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${b.name}`);
5186
- const q2 = c2.map((P) => this.findLabels(p$1(b.axesSpec[P]))), F = [], _ = (P, N2) => {
5198
+ const z2 = c2.map((P) => this.findLabels(m$2(b.axesSpec[P]))), F = [], L = (P, N2) => {
5187
5199
  if (N2 >= c2.length) {
5188
5200
  if (F.push([...P]), F.length > 1e4)
5189
5201
  throw new Error("Too many key combinations, aborting.");
@@ -5197,10 +5209,10 @@
5197
5209
  F.length = 0;
5198
5210
  return;
5199
5211
  }
5200
- for (const z2 of k2)
5201
- P.push(z2), _(P, N2 + 1), P.pop();
5212
+ for (const Y2 of k2)
5213
+ P.push(Y2), L(P, N2 + 1), P.pop();
5202
5214
  };
5203
- if (_([], 0), F.length === 0)
5215
+ if (L([], 0), F.length === 0)
5204
5216
  continue;
5205
5217
  const R = [...b.axesSpec], se = c2.map((P) => P);
5206
5218
  for (let P = c2.length - 1; P >= 0; P--)
@@ -5208,8 +5220,8 @@
5208
5220
  const J = { ...b, axesSpec: R };
5209
5221
  for (const P of F) {
5210
5222
  const N2 = P.map((O, k2) => {
5211
- const z2 = se[k2], Ne = p$1(b.axesSpec[z2]), oe = q2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5212
- return { axisIdx: z2, axisId: Ne, value: O, label: Be };
5223
+ const Y2 = se[k2], Ue = m$2(b.axesSpec[Y2]), oe = z2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5224
+ return { axisIdx: Y2, axisId: Ue, value: O, label: Be };
5213
5225
  });
5214
5226
  u2.push({
5215
5227
  type: "split",
@@ -5230,19 +5242,19 @@
5230
5242
  }
5231
5243
  }
5232
5244
  if (u2.length === 0) return [];
5233
- const y = Oe(
5245
+ const y2 = Re(
5234
5246
  u2,
5235
- (p2) => ({
5236
- spec: p2.spec,
5237
- suffixTrace: p2.type === "split" ? At(p2.axisFilters) : void 0
5247
+ (d) => ({
5248
+ spec: d.spec,
5249
+ suffixTrace: d.type === "split" ? Pt(d.axisFilters) : void 0
5238
5250
  }),
5239
5251
  a
5240
5252
  ), w2 = [];
5241
- for (const { value: p2, label: f2 } of y) {
5242
- const { originalColumn: h, spec: d } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, c2 = Pt(x2);
5253
+ for (const { value: d, label: f2 } of y2) {
5254
+ const { originalColumn: h, spec: p2 } = d, x2 = d.type === "split" ? d.axisFilters : void 0, c2 = xt(x2);
5243
5255
  let v;
5244
- r ? v = r.deriveS(d, c2) : v = xt(h.id, c2);
5245
- let g = { ...p2.adjustedSpec };
5256
+ r ? v = r.deriveS(p2, c2) : v = St(h.id, c2);
5257
+ let g = { ...d.adjustedSpec };
5246
5258
  o && (g = {
5247
5259
  ...g,
5248
5260
  annotations: {
@@ -5252,7 +5264,7 @@
5252
5264
  }), w2.push({
5253
5265
  id: v,
5254
5266
  spec: g,
5255
- data: () => p2.type === "split" ? gn(bt(p2.dataEntries, c2)) : p2.originalColumn.data,
5267
+ data: () => d.type === "split" ? gn(wt(d.dataEntries, c2)) : d.originalColumn.data,
5256
5268
  label: f2
5257
5269
  });
5258
5270
  }
@@ -5288,12 +5300,12 @@
5288
5300
  if (t[n2] !== e[n2]) return false;
5289
5301
  return true;
5290
5302
  }
5291
- function Pe(t) {
5292
- return Fn(t, (e) => e instanceof I ? e.handle : mn(e) ? yn(e, (n2) => n2.handle) : e);
5303
+ function xe(t) {
5304
+ return Fn(t, (e) => e instanceof I ? e.handle : mn(e) ? ln(e, (n2) => n2.handle) : e);
5293
5305
  }
5294
5306
  class It {
5295
5307
  constructor() {
5296
- L(this, "ctx", m());
5308
+ T(this, "ctx", m());
5297
5309
  }
5298
5310
  /**
5299
5311
  * @deprecated use getOptions()
@@ -5302,27 +5314,28 @@
5302
5314
  return this.ctx.calculateOptions(e);
5303
5315
  }
5304
5316
  getOptions(e, n2) {
5305
- const r = typeof e == "function" ? e : Kn(e), i = this.getSpecs().entries.filter((s2) => r(s2.obj));
5306
- return typeof n2 == "object" || typeof n2 > "u" ? Oe(i, (s2) => s2.obj, n2 ?? {}).map(({ value: { ref: s2 }, label: o }) => ({
5307
- ref: s2,
5308
- label: o
5309
- })) : i.map((s2) => ({
5310
- ref: s2.ref,
5311
- label: n2(s2.obj, s2.ref)
5317
+ const r = typeof e == "function" ? e : Kn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5318
+ let s2 = {}, o = false;
5319
+ return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.requireEnrichments ?? false))), typeof s2 == "object" ? Re(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5320
+ ref: vn(a, o),
5321
+ label: l2
5322
+ })) : i.map(({ ref: a, obj: l2 }) => ({
5323
+ ref: vn(a, o),
5324
+ label: s2(l2, a)
5312
5325
  }));
5313
5326
  }
5314
5327
  resolveAnchorCtx(e) {
5315
- if (e instanceof $n) return e;
5328
+ if (e instanceof In) return e;
5316
5329
  const n2 = {};
5317
5330
  for (const [r, i] of Object.entries(e))
5318
- if (Tn(i)) {
5331
+ if (Mn(i)) {
5319
5332
  const s2 = this.getPColumnSpecByRef(i);
5320
5333
  if (!s2)
5321
5334
  return;
5322
5335
  n2[r] = s2;
5323
5336
  } else
5324
5337
  n2[r] = i;
5325
- return new $n(n2);
5338
+ return new In(n2);
5326
5339
  }
5327
5340
  /**
5328
5341
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5415,7 +5428,7 @@
5415
5428
  ref: n2.ref,
5416
5429
  obj: {
5417
5430
  ...n2.obj,
5418
- data: _n(
5431
+ data: qn(
5419
5432
  n2.obj.data,
5420
5433
  (r) => new I(r, [n2.ref.blockId, n2.ref.name])
5421
5434
  )
@@ -5507,7 +5520,7 @@
5507
5520
  findLabels(e) {
5508
5521
  const n2 = this.getData();
5509
5522
  for (const r of n2.entries) {
5510
- if (!q(r.obj)) continue;
5523
+ if (!Z$1(r.obj)) continue;
5511
5524
  const i = r.obj.spec;
5512
5525
  if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && le(e.domain, i.axesSpec[0].domain)) {
5513
5526
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -5534,7 +5547,7 @@
5534
5547
  let a = null;
5535
5548
  const l2 = this;
5536
5549
  return {
5537
- id: _e(i),
5550
+ id: Le(i),
5538
5551
  spec: o,
5539
5552
  get data() {
5540
5553
  var u2;
@@ -5561,11 +5574,11 @@
5561
5574
  }
5562
5575
  class X {
5563
5576
  constructor() {
5564
- L(this, "ctx");
5565
- L(this, "args");
5566
- L(this, "uiState");
5567
- L(this, "_activeArgsCache");
5568
- L(this, "resultPool", new It());
5577
+ T(this, "ctx");
5578
+ T(this, "args");
5579
+ T(this, "uiState");
5580
+ T(this, "_activeArgsCache");
5581
+ T(this, "resultPool", new It());
5569
5582
  this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5570
5583
  }
5571
5584
  /**
@@ -5582,16 +5595,16 @@
5582
5595
  // return this.ctx.featureFlags;
5583
5596
  // }
5584
5597
  getNamedAccessor(e) {
5585
- return pe(
5598
+ return de(
5586
5599
  this.ctx.getAccessorHandleByName(e),
5587
5600
  (n2) => new I(n2, [e])
5588
5601
  );
5589
5602
  }
5590
5603
  get prerun() {
5591
- return this.getNamedAccessor(Ee);
5604
+ return this.getNamedAccessor(Fe);
5592
5605
  }
5593
5606
  get outputs() {
5594
- return this.getNamedAccessor(Fe);
5607
+ return this.getNamedAccessor(De);
5595
5608
  }
5596
5609
  /**
5597
5610
  * Find labels data for a given axis id. It will search for a label column and return its data as a map.
@@ -5609,7 +5622,7 @@
5609
5622
  // TODO remove all non-PColumn fields
5610
5623
  createPFrame(e) {
5611
5624
  return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
5612
- e.map((n2) => Pe(n2))
5625
+ e.map((n2) => xe(n2))
5613
5626
  );
5614
5627
  }
5615
5628
  createPTable(e) {
@@ -5622,7 +5635,7 @@
5622
5635
  filters: e.filters ?? [],
5623
5636
  sorting: e.sorting ?? []
5624
5637
  } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Un(n2.src)), this.ctx.createPTable(
5625
- On(n2, (r) => Pe(r))
5638
+ On(n2, (r) => xe(r))
5626
5639
  );
5627
5640
  }
5628
5641
  /** @deprecated scheduled for removal from SDK */
@@ -5630,37 +5643,37 @@
5630
5643
  return this.ctx.getBlockLabel(e);
5631
5644
  }
5632
5645
  getCurrentUnstableMarker() {
5633
- if (!(typeof this.ctx.getCurrentUnstableMarker > "u"))
5634
- return this.ctx.getCurrentUnstableMarker();
5646
+ return this.ctx.getCurrentUnstableMarker();
5635
5647
  }
5636
5648
  }
5637
- const M = "1.29.22";
5638
- function _t(t) {
5649
+ const W = "1.30.0";
5650
+ function Lt(t) {
5639
5651
  return t.__renderLambda === true;
5640
5652
  }
5641
5653
  function ue(t) {
5642
5654
  if (t !== void 0)
5643
- return _t(t) ? t.handle : t;
5655
+ return Lt(t) ? t.handle : t;
5644
5656
  }
5645
- class T {
5646
- constructor(e, n2, r, i, s2, o, a) {
5647
- this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a;
5657
+ class _ {
5658
+ constructor(e, n2, r, i, s2, o, a, l2) {
5659
+ this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
5648
5660
  }
5649
5661
  static create(e = "Heavy") {
5650
- return new T(
5662
+ return new _(
5651
5663
  e,
5652
5664
  void 0,
5653
5665
  {},
5654
5666
  {},
5655
5667
  Z(true),
5656
5668
  Z([]),
5669
+ void 0,
5657
5670
  void 0
5658
5671
  );
5659
5672
  }
5660
5673
  output(e, n2, r = {}) {
5661
5674
  if (typeof n2 == "function") {
5662
5675
  const i = `output#${e}`;
5663
- return Y(i, () => n2(new X())), new T(
5676
+ return U(i, () => n2(new X())), new _(
5664
5677
  this._renderingMode,
5665
5678
  this._initialArgs,
5666
5679
  this._initialUiState,
@@ -5674,10 +5687,11 @@
5674
5687
  },
5675
5688
  this._inputsValid,
5676
5689
  this._sections,
5677
- this._title
5690
+ this._title,
5691
+ this._enrichmentTargets
5678
5692
  );
5679
5693
  } else
5680
- return new T(
5694
+ return new _(
5681
5695
  this._renderingMode,
5682
5696
  this._initialArgs,
5683
5697
  this._initialUiState,
@@ -5687,7 +5701,8 @@
5687
5701
  },
5688
5702
  this._inputsValid,
5689
5703
  this._sections,
5690
- this._title
5704
+ this._title,
5705
+ this._enrichmentTargets
5691
5706
  );
5692
5707
  }
5693
5708
  /** Shortcut for {@link output} with retentive flag set to true. */
@@ -5695,7 +5710,7 @@
5695
5710
  return this.output(e, n2, { retentive: true });
5696
5711
  }
5697
5712
  argsValid(e) {
5698
- return typeof e == "function" ? (Y("inputsValid", () => e(new X())), new T(
5713
+ return typeof e == "function" ? (U("inputsValid", () => e(new X())), new _(
5699
5714
  this._renderingMode,
5700
5715
  this._initialArgs,
5701
5716
  this._initialUiState,
@@ -5705,46 +5720,51 @@
5705
5720
  handle: "inputsValid"
5706
5721
  },
5707
5722
  this._sections,
5708
- this._title
5709
- )) : new T(
5723
+ this._title,
5724
+ this._enrichmentTargets
5725
+ )) : new _(
5710
5726
  this._renderingMode,
5711
5727
  this._initialArgs,
5712
5728
  this._initialUiState,
5713
5729
  this._outputs,
5714
5730
  e,
5715
5731
  this._sections,
5716
- this._title
5732
+ this._title,
5733
+ this._enrichmentTargets
5717
5734
  );
5718
5735
  }
5719
5736
  sections(e) {
5720
- return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (Y("sections", () => e(new X())), new T(
5737
+ return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (U("sections", () => e(new X())), new _(
5721
5738
  this._renderingMode,
5722
5739
  this._initialArgs,
5723
5740
  this._initialUiState,
5724
5741
  this._outputs,
5725
5742
  this._inputsValid,
5726
5743
  { __renderLambda: true, handle: "sections" },
5727
- this._title
5728
- )) : new T(
5744
+ this._title,
5745
+ this._enrichmentTargets
5746
+ )) : new _(
5729
5747
  this._renderingMode,
5730
5748
  this._initialArgs,
5731
5749
  this._initialUiState,
5732
5750
  this._outputs,
5733
5751
  this._inputsValid,
5734
5752
  e,
5735
- this._title
5753
+ this._title,
5754
+ this._enrichmentTargets
5736
5755
  );
5737
5756
  }
5738
5757
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5739
5758
  title(e) {
5740
- return Y("title", () => e(new X())), new T(
5759
+ return U("title", () => e(new X())), new _(
5741
5760
  this._renderingMode,
5742
5761
  this._initialArgs,
5743
5762
  this._initialUiState,
5744
5763
  this._outputs,
5745
5764
  this._inputsValid,
5746
5765
  this._sections,
5747
- { __renderLambda: true, handle: "title" }
5766
+ { __renderLambda: true, handle: "title" },
5767
+ this._enrichmentTargets
5748
5768
  );
5749
5769
  }
5750
5770
  /**
@@ -5752,38 +5772,57 @@
5752
5772
  * @deprecated use {@link withArgs}
5753
5773
  * */
5754
5774
  initialArgs(e) {
5755
- return new T(
5775
+ return new _(
5756
5776
  this._renderingMode,
5757
5777
  e,
5758
5778
  this._initialUiState,
5759
5779
  this._outputs,
5760
5780
  this._inputsValid,
5761
5781
  this._sections,
5762
- this._title
5782
+ this._title,
5783
+ this._enrichmentTargets
5763
5784
  );
5764
5785
  }
5765
5786
  /** Sets initial args for the block, this value must be specified. */
5766
5787
  withArgs(e) {
5767
- return new T(
5788
+ return new _(
5768
5789
  this._renderingMode,
5769
5790
  e,
5770
5791
  this._initialUiState,
5771
5792
  this._outputs,
5772
5793
  this._inputsValid,
5773
5794
  this._sections,
5774
- this._title
5795
+ this._title,
5796
+ this._enrichmentTargets
5775
5797
  );
5776
5798
  }
5777
5799
  /** Defines type and sets initial value for block UiState. */
5778
5800
  withUiState(e) {
5779
- return new T(
5801
+ return new _(
5780
5802
  this._renderingMode,
5781
5803
  this._initialArgs,
5782
5804
  e,
5783
5805
  this._outputs,
5784
5806
  this._inputsValid,
5785
5807
  this._sections,
5786
- this._title
5808
+ this._title,
5809
+ this._enrichmentTargets
5810
+ );
5811
+ }
5812
+ /**
5813
+ * Defines how to derive list of upstream references this block is meant to enrich with its exports from block args.
5814
+ * Influences dependency graph construction.
5815
+ */
5816
+ enriches(e) {
5817
+ return U("enrichmentTargets", e), new _(
5818
+ this._renderingMode,
5819
+ this._initialArgs,
5820
+ this._initialUiState,
5821
+ this._outputs,
5822
+ this._inputsValid,
5823
+ this._sections,
5824
+ this._title,
5825
+ { __renderLambda: true, handle: "enrichmentTargets" }
5787
5826
  );
5788
5827
  }
5789
5828
  /** Renders all provided block settings into a pre-configured platforma API
@@ -5793,17 +5832,18 @@
5793
5832
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
5794
5833
  const e = {
5795
5834
  v3: {
5796
- sdkVersion: M,
5835
+ sdkVersion: W,
5797
5836
  renderingMode: this._renderingMode,
5798
5837
  initialArgs: this._initialArgs,
5799
5838
  initialUiState: this._initialUiState,
5800
5839
  inputsValid: this._inputsValid,
5801
5840
  sections: this._sections,
5802
5841
  title: this._title,
5803
- outputs: this._outputs
5842
+ outputs: this._outputs,
5843
+ enrichmentTargets: this._enrichmentTargets
5804
5844
  },
5805
5845
  // fields below are added to allow previous desktop versions read generated configs
5806
- sdkVersion: M,
5846
+ sdkVersion: W,
5807
5847
  renderingMode: this._renderingMode,
5808
5848
  initialArgs: this._initialArgs,
5809
5849
  inputsValid: ue(this._inputsValid),
@@ -5812,10 +5852,10 @@
5812
5852
  Object.entries(this._outputs).map(([n2, r]) => [n2, ue(r)])
5813
5853
  )
5814
5854
  };
5815
- return it() ? Te({ sdkVersion: M }) : { config: e };
5855
+ return st() ? Ee({ sdkVersion: W }) : { config: e };
5816
5856
  }
5817
5857
  }
5818
- const platforma = T.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5858
+ const platforma = _.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5819
5859
  return [{ type: "link", href: "/", label: "Main" }];
5820
5860
  }).title((ctx) => "Pool explorer").done();
5821
5861
  exports2.platforma = platforma;