@milaboratories/milaboratories.pool-explorer.model 1.0.49 → 1.0.51
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +13 -0
- package/dist/bundle.js +166 -166
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -3955,7 +3955,7 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3958
|
+
const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
3959
|
var I = Object.defineProperty;
|
|
3960
3960
|
var D = (n2, e, t) => e in n2 ? I(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
|
|
3961
3961
|
var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
|
|
@@ -4096,14 +4096,14 @@
|
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
4098
|
function p$1(n2) {
|
|
4099
|
-
const { type: e, name: t, domain: r } = n2;
|
|
4100
|
-
return
|
|
4099
|
+
const { type: e, name: t, domain: r } = n2, o = { type: e, name: t };
|
|
4100
|
+
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
4101
4101
|
}
|
|
4102
4102
|
function C(n2) {
|
|
4103
4103
|
return n2.map(p$1);
|
|
4104
4104
|
}
|
|
4105
4105
|
function In(n2) {
|
|
4106
|
-
return
|
|
4106
|
+
return ke(p$1(n2));
|
|
4107
4107
|
}
|
|
4108
4108
|
function z$1(n2, e) {
|
|
4109
4109
|
if (n2 === void 0) return e === void 0;
|
|
@@ -4151,10 +4151,10 @@
|
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
4153
4153
|
function G(n2) {
|
|
4154
|
-
return
|
|
4154
|
+
return ke(n2);
|
|
4155
4155
|
}
|
|
4156
4156
|
function x(n2) {
|
|
4157
|
-
return
|
|
4157
|
+
return ke(p$1(n2));
|
|
4158
4158
|
}
|
|
4159
4159
|
function A(n2, e) {
|
|
4160
4160
|
return JSON.stringify([n2, e]);
|
|
@@ -4353,7 +4353,7 @@
|
|
|
4353
4353
|
};
|
|
4354
4354
|
return t(n2), [...e.values()];
|
|
4355
4355
|
}
|
|
4356
|
-
function k
|
|
4356
|
+
function k(n2, e) {
|
|
4357
4357
|
if (n2.name !== void 0 && n2.name !== e.name)
|
|
4358
4358
|
return false;
|
|
4359
4359
|
if (n2.type !== void 0) {
|
|
@@ -4391,13 +4391,13 @@
|
|
|
4391
4391
|
const t = n2.axesSpec.map(p$1);
|
|
4392
4392
|
if (e.partialAxesMatch) {
|
|
4393
4393
|
for (const r of e.axes)
|
|
4394
|
-
if (!t.some((o) => k
|
|
4394
|
+
if (!t.some((o) => k(r, o)))
|
|
4395
4395
|
return false;
|
|
4396
4396
|
} else {
|
|
4397
4397
|
if (t.length !== e.axes.length)
|
|
4398
4398
|
return false;
|
|
4399
4399
|
for (let r = 0; r < e.axes.length; r++)
|
|
4400
|
-
if (!k
|
|
4400
|
+
if (!k(e.axes[r], t[r]))
|
|
4401
4401
|
return false;
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
@@ -4425,7 +4425,7 @@
|
|
|
4425
4425
|
kind: n2.kind,
|
|
4426
4426
|
name: n2.name
|
|
4427
4427
|
};
|
|
4428
|
-
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)),
|
|
4428
|
+
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), ke(e);
|
|
4429
4429
|
}
|
|
4430
4430
|
z$2.object({
|
|
4431
4431
|
__isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4495,12 +4495,12 @@
|
|
|
4495
4495
|
}), c = l.extend({
|
|
4496
4496
|
cause: z$2.lazy(() => s).optional(),
|
|
4497
4497
|
errors: z$2.lazy(() => s.array()).optional()
|
|
4498
|
-
}), m = z$2.object({
|
|
4498
|
+
}), m$1 = z$2.object({
|
|
4499
4499
|
type: z$2.literal("StandardError"),
|
|
4500
4500
|
name: z$2.string(),
|
|
4501
4501
|
message: z$2.string(),
|
|
4502
4502
|
stack: z$2.string().optional()
|
|
4503
|
-
}), p = m.extend({
|
|
4503
|
+
}), p = m$1.extend({
|
|
4504
4504
|
cause: z$2.lazy(() => s).optional(),
|
|
4505
4505
|
errors: z$2.lazy(() => s.array()).optional()
|
|
4506
4506
|
}), s = z$2.union([p, c]);
|
|
@@ -4515,14 +4515,14 @@
|
|
|
4515
4515
|
});
|
|
4516
4516
|
var qe = Object.defineProperty;
|
|
4517
4517
|
var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4518
|
-
var
|
|
4518
|
+
var O = (t, e, n2) => ze(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4519
4519
|
function re(t) {
|
|
4520
4520
|
return { type: "Immediate", value: t };
|
|
4521
4521
|
}
|
|
4522
4522
|
function dt() {
|
|
4523
4523
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function De(t) {
|
|
4526
4526
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4527
4527
|
return globalThis.getPlatforma(t);
|
|
4528
4528
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
@@ -4531,7 +4531,7 @@
|
|
|
4531
4531
|
function pt() {
|
|
4532
4532
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function m() {
|
|
4535
4535
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4536
4536
|
throw new Error("Not in config rendering context");
|
|
4537
4537
|
}
|
|
@@ -4543,15 +4543,15 @@
|
|
|
4543
4543
|
}
|
|
4544
4544
|
const ce = /* @__PURE__ */ new Map();
|
|
4545
4545
|
function ft(t, e) {
|
|
4546
|
-
t in
|
|
4546
|
+
t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
|
|
4547
4547
|
for (const r of ce.get(t))
|
|
4548
4548
|
r(n2);
|
|
4549
4549
|
}, ce.set(t, [])), ce.get(t).push(e);
|
|
4550
4550
|
}
|
|
4551
4551
|
class _ {
|
|
4552
4552
|
constructor(e, n2 = (r) => r) {
|
|
4553
|
-
|
|
4554
|
-
|
|
4553
|
+
O(this, "isResolved", false);
|
|
4554
|
+
O(this, "resolvedValue");
|
|
4555
4555
|
this.handle = e, this.postProcess = n2, ft(e, (r) => {
|
|
4556
4556
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4557
4557
|
});
|
|
@@ -4612,46 +4612,46 @@
|
|
|
4612
4612
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4613
4613
|
];
|
|
4614
4614
|
return he(
|
|
4615
|
-
|
|
4615
|
+
m().resolveWithCommon(this.handle, e, ...n2),
|
|
4616
4616
|
(i) => new E(i, r)
|
|
4617
4617
|
);
|
|
4618
4618
|
}
|
|
4619
4619
|
get resourceType() {
|
|
4620
|
-
return
|
|
4620
|
+
return m().getResourceType(this.handle);
|
|
4621
4621
|
}
|
|
4622
4622
|
getInputsLocked() {
|
|
4623
|
-
return
|
|
4623
|
+
return m().getInputsLocked(this.handle);
|
|
4624
4624
|
}
|
|
4625
4625
|
getOutputsLocked() {
|
|
4626
|
-
return
|
|
4626
|
+
return m().getOutputsLocked(this.handle);
|
|
4627
4627
|
}
|
|
4628
4628
|
getIsReadyOrError() {
|
|
4629
|
-
return
|
|
4629
|
+
return m().getIsReadyOrError(this.handle);
|
|
4630
4630
|
}
|
|
4631
4631
|
getIsFinal() {
|
|
4632
|
-
return
|
|
4632
|
+
return m().getIsFinal(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getError() {
|
|
4635
4635
|
const e = [...this.resolvePath, "error"];
|
|
4636
4636
|
return he(
|
|
4637
|
-
|
|
4637
|
+
m().getError(this.handle),
|
|
4638
4638
|
(n2) => new E(n2, e)
|
|
4639
4639
|
);
|
|
4640
4640
|
}
|
|
4641
4641
|
listInputFields() {
|
|
4642
|
-
return
|
|
4642
|
+
return m().listInputFields(this.handle);
|
|
4643
4643
|
}
|
|
4644
4644
|
listOutputFields() {
|
|
4645
|
-
return
|
|
4645
|
+
return m().listOutputFields(this.handle);
|
|
4646
4646
|
}
|
|
4647
4647
|
listDynamicFields() {
|
|
4648
|
-
return
|
|
4648
|
+
return m().listDynamicFields(this.handle);
|
|
4649
4649
|
}
|
|
4650
4650
|
getKeyValueBase64(e) {
|
|
4651
|
-
return
|
|
4651
|
+
return m().getKeyValueBase64(this.handle, e);
|
|
4652
4652
|
}
|
|
4653
4653
|
getKeyValueAsString(e) {
|
|
4654
|
-
return
|
|
4654
|
+
return m().getKeyValueAsString(this.handle, e);
|
|
4655
4655
|
}
|
|
4656
4656
|
getKeyValueAsJson(e) {
|
|
4657
4657
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4659,10 +4659,10 @@
|
|
|
4659
4659
|
return JSON.parse(n2);
|
|
4660
4660
|
}
|
|
4661
4661
|
getDataBase64() {
|
|
4662
|
-
return
|
|
4662
|
+
return m().getDataBase64(this.handle);
|
|
4663
4663
|
}
|
|
4664
4664
|
getDataAsString() {
|
|
4665
|
-
return
|
|
4665
|
+
return m().getDataAsString(this.handle);
|
|
4666
4666
|
}
|
|
4667
4667
|
getDataAsJson() {
|
|
4668
4668
|
const e = this.getDataAsString();
|
|
@@ -4683,7 +4683,7 @@
|
|
|
4683
4683
|
*
|
|
4684
4684
|
*/
|
|
4685
4685
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4686
|
-
const r =
|
|
4686
|
+
const r = m().parsePObjectCollection(
|
|
4687
4687
|
this.handle,
|
|
4688
4688
|
e,
|
|
4689
4689
|
n2,
|
|
@@ -4698,14 +4698,14 @@
|
|
|
4698
4698
|
return i;
|
|
4699
4699
|
}
|
|
4700
4700
|
getFileContentAsBase64(e) {
|
|
4701
|
-
return new _(
|
|
4701
|
+
return new _(m().getBlobContentAsBase64(this.handle, e));
|
|
4702
4702
|
}
|
|
4703
4703
|
getFileContentAsString(e) {
|
|
4704
|
-
return new _(
|
|
4704
|
+
return new _(m().getBlobContentAsString(this.handle, e));
|
|
4705
4705
|
}
|
|
4706
4706
|
getFileContentAsJson(e) {
|
|
4707
4707
|
return new _(
|
|
4708
|
-
|
|
4708
|
+
m().getBlobContentAsString(this.handle, e)
|
|
4709
4709
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4710
4710
|
}
|
|
4711
4711
|
/**
|
|
@@ -4724,7 +4724,7 @@
|
|
|
4724
4724
|
* @returns downloaded file handle
|
|
4725
4725
|
*/
|
|
4726
4726
|
getFileHandle() {
|
|
4727
|
-
return new _(
|
|
4727
|
+
return new _(m().getDownloadedBlobContentHandle(this.handle));
|
|
4728
4728
|
}
|
|
4729
4729
|
/**
|
|
4730
4730
|
* @deprecated use getFileHandle
|
|
@@ -4736,7 +4736,7 @@
|
|
|
4736
4736
|
* @returns downloaded file handle
|
|
4737
4737
|
*/
|
|
4738
4738
|
getRemoteFileHandle() {
|
|
4739
|
-
return new _(
|
|
4739
|
+
return new _(m().getOnDemandBlobContentHandle(this.handle));
|
|
4740
4740
|
}
|
|
4741
4741
|
/**
|
|
4742
4742
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4748,22 +4748,22 @@
|
|
|
4748
4748
|
* @returns the url to the extracted folder
|
|
4749
4749
|
*/
|
|
4750
4750
|
extractArchiveAndGetURL(e) {
|
|
4751
|
-
return new _(
|
|
4751
|
+
return new _(m().extractArchiveAndGetURL(this.handle, e));
|
|
4752
4752
|
}
|
|
4753
4753
|
getImportProgress() {
|
|
4754
|
-
return new _(
|
|
4754
|
+
return new _(m().getImportProgress(this.handle));
|
|
4755
4755
|
}
|
|
4756
4756
|
getLastLogs(e) {
|
|
4757
|
-
return new _(
|
|
4757
|
+
return new _(m().getLastLogs(this.handle, e));
|
|
4758
4758
|
}
|
|
4759
4759
|
getProgressLog(e) {
|
|
4760
|
-
return new _(
|
|
4760
|
+
return new _(m().getProgressLog(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getProgressLogWithInfo(e) {
|
|
4763
|
-
return new _(
|
|
4763
|
+
return new _(m().getProgressLogWithInfo(this.handle, e));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLogHandle() {
|
|
4766
|
-
return new _(
|
|
4766
|
+
return new _(m().getLogHandle(this.handle));
|
|
4767
4767
|
}
|
|
4768
4768
|
allFieldsResolved(e = "Input") {
|
|
4769
4769
|
switch (e) {
|
|
@@ -4792,7 +4792,7 @@
|
|
|
4792
4792
|
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, c2]) => o(u2, c2));
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
4795
|
-
const
|
|
4795
|
+
const Re = "staging", Fe = "main";
|
|
4796
4796
|
const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$2.object({
|
|
4797
4797
|
type: z$2.string(),
|
|
4798
4798
|
importance: z$2.number().optional(),
|
|
@@ -4801,36 +4801,36 @@
|
|
|
4801
4801
|
}), bt = z$2.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
|
|
4802
4802
|
function Ve(t, e, n2 = {}) {
|
|
4803
4803
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
|
|
4804
|
-
var P,
|
|
4804
|
+
var P, F2;
|
|
4805
4805
|
const w2 = e(f2);
|
|
4806
|
-
let
|
|
4807
|
-
"spec" in w2 && typeof w2.spec == "object" ? (
|
|
4808
|
-
const
|
|
4809
|
-
...
|
|
4806
|
+
let p2, g, b;
|
|
4807
|
+
"spec" in w2 && typeof w2.spec == "object" ? (p2 = w2.spec, g = w2.prefixTrace, b = w2.suffixTrace) : p2 = w2;
|
|
4808
|
+
const h2 = (P = p2.annotations) == null ? void 0 : P[mt], I2 = (F2 = p2.annotations) == null ? void 0 : F2[yt], x2 = (I2 ? bt.safeParse(JSON.parse(I2)).data : void 0) ?? [], v = [
|
|
4809
|
+
...g ?? [],
|
|
4810
4810
|
...x2,
|
|
4811
4811
|
...b ?? []
|
|
4812
4812
|
];
|
|
4813
|
-
if (
|
|
4814
|
-
const
|
|
4815
|
-
n2.addLabelAsSuffix ?
|
|
4816
|
-
}
|
|
4817
|
-
const A2 = [],
|
|
4818
|
-
for (let
|
|
4819
|
-
const { type: W } =
|
|
4820
|
-
|
|
4821
|
-
const
|
|
4822
|
-
s2.set(
|
|
4823
|
-
|
|
4813
|
+
if (h2 !== void 0) {
|
|
4814
|
+
const k2 = { label: h2, type: At, importance: -2 };
|
|
4815
|
+
n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
|
|
4816
|
+
}
|
|
4817
|
+
const A2 = [], L = /* @__PURE__ */ new Map();
|
|
4818
|
+
for (let k2 = v.length - 1; k2 >= 0; --k2) {
|
|
4819
|
+
const { type: W } = v[k2], V = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
|
|
4820
|
+
L.set(W, $);
|
|
4821
|
+
const K = `${W}@${$}`;
|
|
4822
|
+
s2.set(K, (s2.get(K) ?? 0) + 1), r.set(
|
|
4823
|
+
K,
|
|
4824
4824
|
Math.max(
|
|
4825
|
-
r.get(
|
|
4826
|
-
V - (
|
|
4825
|
+
r.get(K) ?? Number.NEGATIVE_INFINITY,
|
|
4826
|
+
V - (v.length - k2) * wt
|
|
4827
4827
|
)
|
|
4828
|
-
), A2.push({ ...
|
|
4828
|
+
), A2.push({ ...v[k2], fullType: K, occurrenceIndex: $ });
|
|
4829
4829
|
}
|
|
4830
4830
|
return A2.reverse(), {
|
|
4831
4831
|
value: f2,
|
|
4832
|
-
spec:
|
|
4833
|
-
label:
|
|
4832
|
+
spec: p2,
|
|
4833
|
+
label: h2,
|
|
4834
4834
|
fullTrace: A2
|
|
4835
4835
|
};
|
|
4836
4836
|
}), a = [], l2 = [], u2 = [...r];
|
|
@@ -4838,37 +4838,37 @@
|
|
|
4838
4838
|
for (const [f2] of u2)
|
|
4839
4839
|
f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
|
|
4840
4840
|
const c2 = (f2, w2 = false) => {
|
|
4841
|
-
const
|
|
4842
|
-
for (let
|
|
4843
|
-
const b = o[
|
|
4844
|
-
if (
|
|
4841
|
+
const p2 = [];
|
|
4842
|
+
for (let g = 0; g < o.length; g++) {
|
|
4843
|
+
const b = o[g], h2 = b.fullTrace.filter((v) => f2.has(v.fullType) || i && i.has(v.type));
|
|
4844
|
+
if (h2.length === 0)
|
|
4845
4845
|
if (w2)
|
|
4846
|
-
|
|
4846
|
+
p2.push({
|
|
4847
4847
|
label: "Unlabeled",
|
|
4848
4848
|
value: b.value
|
|
4849
4849
|
});
|
|
4850
4850
|
else return;
|
|
4851
|
-
const I2 =
|
|
4852
|
-
|
|
4851
|
+
const I2 = h2.map((v) => v.label), x2 = n2.separator ?? " / ";
|
|
4852
|
+
p2.push({
|
|
4853
4853
|
label: I2.join(x2),
|
|
4854
4854
|
value: b.value
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
4857
|
-
return
|
|
4857
|
+
return p2;
|
|
4858
4858
|
};
|
|
4859
4859
|
if (a.length === 0) {
|
|
4860
4860
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4861
4861
|
return c2(new Set(Pe), true);
|
|
4862
4862
|
}
|
|
4863
|
-
let
|
|
4864
|
-
for (;
|
|
4863
|
+
let d = 0, y = -1;
|
|
4864
|
+
for (; d < a.length; ) {
|
|
4865
4865
|
const f2 = /* @__PURE__ */ new Set();
|
|
4866
4866
|
n2.includeNativeLabel && f2.add(Pe);
|
|
4867
|
-
for (let
|
|
4868
|
-
|
|
4867
|
+
for (let p2 = 0; p2 < d; ++p2) f2.add(a[p2]);
|
|
4868
|
+
y >= 0 && f2.add(a[y]);
|
|
4869
4869
|
const w2 = c2(f2);
|
|
4870
|
-
if (w2 !== void 0 && new Set(w2.map((
|
|
4871
|
-
|
|
4870
|
+
if (w2 !== void 0 && new Set(w2.map((p2) => p2.label)).size === t.length) return w2;
|
|
4871
|
+
y++, y >= a.length && (d++, y = d);
|
|
4872
4872
|
}
|
|
4873
4873
|
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4874
4874
|
}
|
|
@@ -5134,7 +5134,7 @@
|
|
|
5134
5134
|
const e = t[0];
|
|
5135
5135
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5136
5136
|
}
|
|
5137
|
-
class
|
|
5137
|
+
class Lt {
|
|
5138
5138
|
constructor(e) {
|
|
5139
5139
|
this.columns = e;
|
|
5140
5140
|
}
|
|
@@ -5143,7 +5143,7 @@
|
|
|
5143
5143
|
return this.columns.filter((r) => n2(r.spec));
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
|
-
function
|
|
5146
|
+
function Tt(t) {
|
|
5147
5147
|
if (t)
|
|
5148
5148
|
return t.map((e) => ({
|
|
5149
5149
|
type: `split:${In(e.axisId)}`,
|
|
@@ -5156,17 +5156,17 @@
|
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5158
5158
|
}
|
|
5159
|
-
function
|
|
5159
|
+
function kt(t, e) {
|
|
5160
5160
|
if (!e || e.length === 0) return t;
|
|
5161
5161
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5162
|
-
return
|
|
5162
|
+
return ke({ id: t, axisFilters: n2 });
|
|
5163
5163
|
}
|
|
5164
5164
|
function Se(t) {
|
|
5165
5165
|
if (!t || typeof t != "object") return false;
|
|
5166
5166
|
const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
|
|
5167
5167
|
return !!e.domainAnchor || n2 || r;
|
|
5168
5168
|
}
|
|
5169
|
-
function
|
|
5169
|
+
function Ot(t) {
|
|
5170
5170
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5171
5171
|
return [];
|
|
5172
5172
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5176,9 +5176,9 @@
|
|
|
5176
5176
|
}
|
|
5177
5177
|
class le {
|
|
5178
5178
|
constructor() {
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5179
|
+
O(this, "defaultProviderStore", []);
|
|
5180
|
+
O(this, "providers", [new Lt(this.defaultProviderStore)]);
|
|
5181
|
+
O(this, "axisLabelProviders", []);
|
|
5182
5182
|
}
|
|
5183
5183
|
addColumnProvider(e) {
|
|
5184
5184
|
return this.providers.push(e), this;
|
|
@@ -5206,43 +5206,43 @@
|
|
|
5206
5206
|
};
|
|
5207
5207
|
let u2 = () => false;
|
|
5208
5208
|
if (a) {
|
|
5209
|
-
const
|
|
5210
|
-
if (Se(
|
|
5209
|
+
const p2 = (Array.isArray(a) ? a : [a]).map((g) => {
|
|
5210
|
+
if (Se(g)) {
|
|
5211
5211
|
if (!r)
|
|
5212
5212
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5213
|
-
return _n(Bn(r.anchors,
|
|
5213
|
+
return _n(Bn(r.anchors, g, n2));
|
|
5214
5214
|
} else
|
|
5215
|
-
return _n(
|
|
5215
|
+
return _n(g);
|
|
5216
5216
|
});
|
|
5217
|
-
u2 = (
|
|
5217
|
+
u2 = (g) => p2.some((b) => b(g));
|
|
5218
5218
|
}
|
|
5219
|
-
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e],
|
|
5220
|
-
for (const
|
|
5221
|
-
const
|
|
5219
|
+
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], y = /* @__PURE__ */ new Set();
|
|
5220
|
+
for (const p2 of c2) {
|
|
5221
|
+
const g = Se(p2);
|
|
5222
5222
|
let b;
|
|
5223
|
-
if (
|
|
5223
|
+
if (g) {
|
|
5224
5224
|
if (!r)
|
|
5225
5225
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5226
|
-
b = Bn(r.anchors,
|
|
5226
|
+
b = Bn(r.anchors, p2, n2);
|
|
5227
5227
|
} else
|
|
5228
|
-
b =
|
|
5229
|
-
const
|
|
5228
|
+
b = p2;
|
|
5229
|
+
const h2 = /* @__PURE__ */ new Set(), I2 = [];
|
|
5230
5230
|
for (const A2 of this.providers) {
|
|
5231
|
-
const
|
|
5232
|
-
for (const P of
|
|
5231
|
+
const L = A2.selectColumns(b);
|
|
5232
|
+
for (const P of L) {
|
|
5233
5233
|
if (u2(P.spec)) continue;
|
|
5234
|
-
if (
|
|
5234
|
+
if (h2.has(P.id))
|
|
5235
5235
|
throw new Error(`Duplicate column id ${P.id} in provider ${A2.constructor.name}`);
|
|
5236
|
-
const
|
|
5237
|
-
|
|
5236
|
+
const F2 = Mn(P.spec);
|
|
5237
|
+
y.has(F2) || (h2.add(P.id), y.add(F2), I2.push(P));
|
|
5238
5238
|
}
|
|
5239
5239
|
}
|
|
5240
5240
|
if (I2.length === 0) continue;
|
|
5241
|
-
const x2 =
|
|
5241
|
+
const x2 = Ot(p2), v = x2.length > 0;
|
|
5242
5242
|
for (const A2 of I2) {
|
|
5243
5243
|
if (!f(A2.spec)) continue;
|
|
5244
|
-
const
|
|
5245
|
-
if (
|
|
5244
|
+
const L = A2.spec;
|
|
5245
|
+
if (v) {
|
|
5246
5246
|
if (It(A2.data))
|
|
5247
5247
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A2.id}`);
|
|
5248
5248
|
const P = St(A2.data);
|
|
@@ -5252,19 +5252,19 @@
|
|
|
5252
5252
|
}
|
|
5253
5253
|
if (!bn(P))
|
|
5254
5254
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A2.id}`);
|
|
5255
|
-
const
|
|
5256
|
-
if (
|
|
5257
|
-
throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${
|
|
5258
|
-
const W = x2.map((S) => this.findLabels(p$1(
|
|
5255
|
+
const F2 = Pt(P), k2 = x2[x2.length - 1];
|
|
5256
|
+
if (k2 >= P.partitionKeyLength)
|
|
5257
|
+
throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
|
|
5258
|
+
const W = x2.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], $ = (S, G2) => {
|
|
5259
5259
|
if (G2 >= x2.length) {
|
|
5260
5260
|
if (V.push([...S]), V.length > 1e4)
|
|
5261
5261
|
throw new Error("Too many key combinations, aborting.");
|
|
5262
5262
|
return;
|
|
5263
5263
|
}
|
|
5264
5264
|
const j = x2[G2];
|
|
5265
|
-
if (j >=
|
|
5266
|
-
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${
|
|
5267
|
-
const N2 =
|
|
5265
|
+
if (j >= F2.length)
|
|
5266
|
+
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${F2.length}) during split key generation for column ${A2.id}`);
|
|
5267
|
+
const N2 = F2[j];
|
|
5268
5268
|
if (!N2 || N2.length === 0) {
|
|
5269
5269
|
V.length = 0;
|
|
5270
5270
|
return;
|
|
@@ -5274,58 +5274,58 @@
|
|
|
5274
5274
|
};
|
|
5275
5275
|
if ($([], 0), V.length === 0)
|
|
5276
5276
|
continue;
|
|
5277
|
-
const
|
|
5277
|
+
const K = [...L.axesSpec], Be = x2.map((S) => S);
|
|
5278
5278
|
for (let S = x2.length - 1; S >= 0; S--)
|
|
5279
|
-
|
|
5280
|
-
const We = { ...
|
|
5279
|
+
K.splice(x2[S], 1);
|
|
5280
|
+
const We = { ...L, axesSpec: K };
|
|
5281
5281
|
for (const S of V) {
|
|
5282
5282
|
const G2 = S.map((j, N2) => {
|
|
5283
|
-
const ee = Be[N2], Ge = p$1(
|
|
5283
|
+
const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[j]) ?? String(j);
|
|
5284
5284
|
return { axisIdx: ee, axisId: Ge, value: j, label: He };
|
|
5285
5285
|
});
|
|
5286
|
-
|
|
5286
|
+
d.push({
|
|
5287
5287
|
type: "split",
|
|
5288
5288
|
originalColumn: A2,
|
|
5289
|
-
spec:
|
|
5289
|
+
spec: L,
|
|
5290
5290
|
adjustedSpec: We,
|
|
5291
5291
|
dataEntries: P,
|
|
5292
5292
|
axisFilters: G2
|
|
5293
5293
|
});
|
|
5294
5294
|
}
|
|
5295
5295
|
} else
|
|
5296
|
-
|
|
5296
|
+
d.push({
|
|
5297
5297
|
type: "direct",
|
|
5298
5298
|
originalColumn: A2,
|
|
5299
|
-
spec:
|
|
5300
|
-
adjustedSpec:
|
|
5299
|
+
spec: L,
|
|
5300
|
+
adjustedSpec: L
|
|
5301
5301
|
});
|
|
5302
5302
|
}
|
|
5303
5303
|
}
|
|
5304
|
-
if (
|
|
5304
|
+
if (d.length === 0) return [];
|
|
5305
5305
|
const f$1 = Ve(
|
|
5306
|
-
|
|
5307
|
-
(
|
|
5308
|
-
spec:
|
|
5309
|
-
suffixTrace:
|
|
5306
|
+
d,
|
|
5307
|
+
(p2) => ({
|
|
5308
|
+
spec: p2.spec,
|
|
5309
|
+
suffixTrace: p2.type === "split" ? Tt(p2.axisFilters) : void 0
|
|
5310
5310
|
}),
|
|
5311
5311
|
l2
|
|
5312
5312
|
), w2 = [];
|
|
5313
|
-
for (const { value:
|
|
5314
|
-
const { originalColumn: b, spec:
|
|
5315
|
-
let
|
|
5316
|
-
r ?
|
|
5317
|
-
let A2 = { ...
|
|
5313
|
+
for (const { value: p2, label: g } of f$1) {
|
|
5314
|
+
const { originalColumn: b, spec: h2 } = p2, I2 = p2.type === "split" ? p2.axisFilters : void 0, x2 = Et(I2);
|
|
5315
|
+
let v;
|
|
5316
|
+
r ? v = r.deriveS(h2, x2) : v = kt(b.id, x2);
|
|
5317
|
+
let A2 = { ...p2.adjustedSpec };
|
|
5318
5318
|
o && (A2 = {
|
|
5319
5319
|
...A2,
|
|
5320
5320
|
annotations: {
|
|
5321
5321
|
...A2.annotations ?? {},
|
|
5322
|
-
"pl7.app/label":
|
|
5322
|
+
"pl7.app/label": g
|
|
5323
5323
|
}
|
|
5324
5324
|
}), w2.push({
|
|
5325
|
-
id:
|
|
5325
|
+
id: v,
|
|
5326
5326
|
spec: A2,
|
|
5327
|
-
data: () =>
|
|
5328
|
-
label:
|
|
5327
|
+
data: () => p2.type === "split" ? Pn(_t(p2.dataEntries, x2)) : p2.originalColumn.data,
|
|
5328
|
+
label: g
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
5331
5331
|
return w2;
|
|
@@ -5363,9 +5363,9 @@
|
|
|
5363
5363
|
function _e(t) {
|
|
5364
5364
|
return Kn(t, (e) => e instanceof E ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
|
|
5365
5365
|
}
|
|
5366
|
-
class
|
|
5366
|
+
class Dt {
|
|
5367
5367
|
constructor() {
|
|
5368
|
-
|
|
5368
|
+
O(this, "ctx", m());
|
|
5369
5369
|
}
|
|
5370
5370
|
/**
|
|
5371
5371
|
* @deprecated use getOptions()
|
|
@@ -5607,7 +5607,7 @@
|
|
|
5607
5607
|
let a = null;
|
|
5608
5608
|
const l2 = this;
|
|
5609
5609
|
return {
|
|
5610
|
-
id:
|
|
5610
|
+
id: ke(i),
|
|
5611
5611
|
spec: o,
|
|
5612
5612
|
get data() {
|
|
5613
5613
|
var u2;
|
|
@@ -5634,12 +5634,12 @@
|
|
|
5634
5634
|
}
|
|
5635
5635
|
class te {
|
|
5636
5636
|
constructor() {
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
this.ctx =
|
|
5637
|
+
O(this, "ctx");
|
|
5638
|
+
O(this, "args");
|
|
5639
|
+
O(this, "uiState");
|
|
5640
|
+
O(this, "_activeArgsCache");
|
|
5641
|
+
O(this, "resultPool", new Dt());
|
|
5642
|
+
this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5643
5643
|
}
|
|
5644
5644
|
/**
|
|
5645
5645
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5661,7 +5661,7 @@
|
|
|
5661
5661
|
);
|
|
5662
5662
|
}
|
|
5663
5663
|
get prerun() {
|
|
5664
|
-
return this.getNamedAccessor(
|
|
5664
|
+
return this.getNamedAccessor(Re);
|
|
5665
5665
|
}
|
|
5666
5666
|
get outputs() {
|
|
5667
5667
|
return this.getNamedAccessor(Fe);
|
|
@@ -5715,20 +5715,20 @@
|
|
|
5715
5715
|
this.ctx.logError(e);
|
|
5716
5716
|
}
|
|
5717
5717
|
}
|
|
5718
|
-
const Y = "1.33.
|
|
5719
|
-
function
|
|
5718
|
+
const Y = "1.33.16";
|
|
5719
|
+
function Rt(t) {
|
|
5720
5720
|
return t.__renderLambda === true;
|
|
5721
5721
|
}
|
|
5722
5722
|
function pe(t) {
|
|
5723
5723
|
if (t !== void 0)
|
|
5724
|
-
return
|
|
5724
|
+
return Rt(t) ? t.handle : t;
|
|
5725
5725
|
}
|
|
5726
|
-
class
|
|
5726
|
+
class T {
|
|
5727
5727
|
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
5728
5728
|
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
|
|
5729
5729
|
}
|
|
5730
5730
|
static create(e = "Heavy") {
|
|
5731
|
-
return new
|
|
5731
|
+
return new T(
|
|
5732
5732
|
e,
|
|
5733
5733
|
void 0,
|
|
5734
5734
|
{},
|
|
@@ -5742,7 +5742,7 @@
|
|
|
5742
5742
|
output(e, n2, r = {}) {
|
|
5743
5743
|
if (typeof n2 == "function") {
|
|
5744
5744
|
const i = `output#${e}`;
|
|
5745
|
-
return H(i, () => n2(new te())), new
|
|
5745
|
+
return H(i, () => n2(new te())), new T(
|
|
5746
5746
|
this._renderingMode,
|
|
5747
5747
|
this._initialArgs,
|
|
5748
5748
|
this._initialUiState,
|
|
@@ -5760,7 +5760,7 @@
|
|
|
5760
5760
|
this._enrichmentTargets
|
|
5761
5761
|
);
|
|
5762
5762
|
} else
|
|
5763
|
-
return new
|
|
5763
|
+
return new T(
|
|
5764
5764
|
this._renderingMode,
|
|
5765
5765
|
this._initialArgs,
|
|
5766
5766
|
this._initialUiState,
|
|
@@ -5779,7 +5779,7 @@
|
|
|
5779
5779
|
return this.output(e, n2, { retentive: true });
|
|
5780
5780
|
}
|
|
5781
5781
|
argsValid(e) {
|
|
5782
|
-
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new
|
|
5782
|
+
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new T(
|
|
5783
5783
|
this._renderingMode,
|
|
5784
5784
|
this._initialArgs,
|
|
5785
5785
|
this._initialUiState,
|
|
@@ -5791,7 +5791,7 @@
|
|
|
5791
5791
|
this._sections,
|
|
5792
5792
|
this._title,
|
|
5793
5793
|
this._enrichmentTargets
|
|
5794
|
-
)) : new
|
|
5794
|
+
)) : new T(
|
|
5795
5795
|
this._renderingMode,
|
|
5796
5796
|
this._initialArgs,
|
|
5797
5797
|
this._initialUiState,
|
|
@@ -5803,7 +5803,7 @@
|
|
|
5803
5803
|
);
|
|
5804
5804
|
}
|
|
5805
5805
|
sections(e) {
|
|
5806
|
-
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new
|
|
5806
|
+
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new T(
|
|
5807
5807
|
this._renderingMode,
|
|
5808
5808
|
this._initialArgs,
|
|
5809
5809
|
this._initialUiState,
|
|
@@ -5812,7 +5812,7 @@
|
|
|
5812
5812
|
{ __renderLambda: true, handle: "sections" },
|
|
5813
5813
|
this._title,
|
|
5814
5814
|
this._enrichmentTargets
|
|
5815
|
-
)) : new
|
|
5815
|
+
)) : new T(
|
|
5816
5816
|
this._renderingMode,
|
|
5817
5817
|
this._initialArgs,
|
|
5818
5818
|
this._initialUiState,
|
|
@@ -5825,7 +5825,7 @@
|
|
|
5825
5825
|
}
|
|
5826
5826
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5827
5827
|
title(e) {
|
|
5828
|
-
return H("title", () => e(new te())), new
|
|
5828
|
+
return H("title", () => e(new te())), new T(
|
|
5829
5829
|
this._renderingMode,
|
|
5830
5830
|
this._initialArgs,
|
|
5831
5831
|
this._initialUiState,
|
|
@@ -5841,7 +5841,7 @@
|
|
|
5841
5841
|
* @deprecated use {@link withArgs}
|
|
5842
5842
|
* */
|
|
5843
5843
|
initialArgs(e) {
|
|
5844
|
-
return new
|
|
5844
|
+
return new T(
|
|
5845
5845
|
this._renderingMode,
|
|
5846
5846
|
e,
|
|
5847
5847
|
this._initialUiState,
|
|
@@ -5854,7 +5854,7 @@
|
|
|
5854
5854
|
}
|
|
5855
5855
|
/** Sets initial args for the block, this value must be specified. */
|
|
5856
5856
|
withArgs(e) {
|
|
5857
|
-
return new
|
|
5857
|
+
return new T(
|
|
5858
5858
|
this._renderingMode,
|
|
5859
5859
|
e,
|
|
5860
5860
|
this._initialUiState,
|
|
@@ -5867,7 +5867,7 @@
|
|
|
5867
5867
|
}
|
|
5868
5868
|
/** Defines type and sets initial value for block UiState. */
|
|
5869
5869
|
withUiState(e) {
|
|
5870
|
-
return new
|
|
5870
|
+
return new T(
|
|
5871
5871
|
this._renderingMode,
|
|
5872
5872
|
this._initialArgs,
|
|
5873
5873
|
e,
|
|
@@ -5883,7 +5883,7 @@
|
|
|
5883
5883
|
* Influences dependency graph construction.
|
|
5884
5884
|
*/
|
|
5885
5885
|
enriches(e) {
|
|
5886
|
-
return H("enrichmentTargets", e), new
|
|
5886
|
+
return H("enrichmentTargets", e), new T(
|
|
5887
5887
|
this._renderingMode,
|
|
5888
5888
|
this._initialArgs,
|
|
5889
5889
|
this._initialUiState,
|
|
@@ -5921,10 +5921,10 @@
|
|
|
5921
5921
|
Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
|
|
5922
5922
|
)
|
|
5923
5923
|
};
|
|
5924
|
-
return dt() ?
|
|
5924
|
+
return dt() ? De({ sdkVersion: Y }) : { config: e };
|
|
5925
5925
|
}
|
|
5926
5926
|
}
|
|
5927
|
-
const platforma =
|
|
5927
|
+
const platforma = T.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
5928
5928
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
5929
5929
|
}).title((ctx) => "Pool explorer").done();
|
|
5930
5930
|
exports2.platforma = platforma;
|