@milaboratories/milaboratories.pool-explorer.model 1.0.44 → 1.0.45
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 +7 -0
- package/dist/bundle.js +268 -268
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}, "");
|
|
36
36
|
return `{${values}}`;
|
|
37
37
|
};
|
|
38
|
-
const
|
|
38
|
+
const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
|
|
39
39
|
var util;
|
|
40
40
|
(function(util2) {
|
|
41
41
|
util2.assertEqual = (val) => val;
|
|
@@ -3999,7 +3999,7 @@
|
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
4001
|
}
|
|
4002
|
-
function F
|
|
4002
|
+
function F(n2) {
|
|
4003
4003
|
if (!n2 || typeof n2 != "object")
|
|
4004
4004
|
return false;
|
|
4005
4005
|
const e = n2;
|
|
@@ -4017,7 +4017,7 @@
|
|
|
4017
4017
|
}
|
|
4018
4018
|
}
|
|
4019
4019
|
function gn(n2) {
|
|
4020
|
-
return F
|
|
4020
|
+
return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4021
4021
|
}
|
|
4022
4022
|
function bn(n2) {
|
|
4023
4023
|
switch (n2.type) {
|
|
@@ -4089,7 +4089,7 @@
|
|
|
4089
4089
|
return n2.map(p$1);
|
|
4090
4090
|
}
|
|
4091
4091
|
function $n(n2) {
|
|
4092
|
-
return
|
|
4092
|
+
return ke(p$1(n2));
|
|
4093
4093
|
}
|
|
4094
4094
|
function z$1(n2, e) {
|
|
4095
4095
|
if (n2 === void 0) return e === void 0;
|
|
@@ -4102,9 +4102,9 @@
|
|
|
4102
4102
|
return n2.name === e.name && z$1(n2.domain, e.domain);
|
|
4103
4103
|
}
|
|
4104
4104
|
function In(n2, e) {
|
|
4105
|
-
return { ...n2, src: h(n2.src, e) };
|
|
4105
|
+
return { ...n2, src: h$1(n2.src, e) };
|
|
4106
4106
|
}
|
|
4107
|
-
function h(n2, e) {
|
|
4107
|
+
function h$1(n2, e) {
|
|
4108
4108
|
switch (n2.type) {
|
|
4109
4109
|
case "column":
|
|
4110
4110
|
return {
|
|
@@ -4124,23 +4124,23 @@
|
|
|
4124
4124
|
case "full":
|
|
4125
4125
|
return {
|
|
4126
4126
|
type: n2.type,
|
|
4127
|
-
entries: n2.entries.map((t) => h(t, e))
|
|
4127
|
+
entries: n2.entries.map((t) => h$1(t, e))
|
|
4128
4128
|
};
|
|
4129
4129
|
case "outer":
|
|
4130
4130
|
return {
|
|
4131
4131
|
type: "outer",
|
|
4132
|
-
primary: h(n2.primary, e),
|
|
4133
|
-
secondary: n2.secondary.map((t) => h(t, e))
|
|
4132
|
+
primary: h$1(n2.primary, e),
|
|
4133
|
+
secondary: n2.secondary.map((t) => h$1(t, e))
|
|
4134
4134
|
};
|
|
4135
4135
|
default:
|
|
4136
4136
|
w(n2);
|
|
4137
4137
|
}
|
|
4138
4138
|
}
|
|
4139
4139
|
function G(n2) {
|
|
4140
|
-
return
|
|
4140
|
+
return ke(n2);
|
|
4141
4141
|
}
|
|
4142
4142
|
function x(n2) {
|
|
4143
|
-
return
|
|
4143
|
+
return ke(p$1(n2));
|
|
4144
4144
|
}
|
|
4145
4145
|
function A(n2, e) {
|
|
4146
4146
|
return JSON.stringify([n2, e]);
|
|
@@ -4298,11 +4298,11 @@
|
|
|
4298
4298
|
function Y$1(n2) {
|
|
4299
4299
|
return typeof n2 == "object" && "anchor" in n2;
|
|
4300
4300
|
}
|
|
4301
|
-
function f
|
|
4301
|
+
function f(n2) {
|
|
4302
4302
|
return n2.kind === "PColumn";
|
|
4303
4303
|
}
|
|
4304
4304
|
function Z$1(n2) {
|
|
4305
|
-
return f
|
|
4305
|
+
return f(n2.spec);
|
|
4306
4306
|
}
|
|
4307
4307
|
function Un(n2) {
|
|
4308
4308
|
if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
@@ -4404,14 +4404,14 @@
|
|
|
4404
4404
|
return true;
|
|
4405
4405
|
}
|
|
4406
4406
|
function vn(n2) {
|
|
4407
|
-
return Array.isArray(n2) ? (e) => n2.some((t) => f
|
|
4407
|
+
return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
|
|
4408
4408
|
}
|
|
4409
4409
|
function _n(n2) {
|
|
4410
4410
|
const e = {
|
|
4411
4411
|
kind: n2.kind,
|
|
4412
4412
|
name: n2.name
|
|
4413
4413
|
};
|
|
4414
|
-
return n2.domain !== void 0 && (e.domain = n2.domain), f
|
|
4414
|
+
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), ke(e);
|
|
4415
4415
|
}
|
|
4416
4416
|
z$2.object({
|
|
4417
4417
|
__isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4492,46 +4492,46 @@
|
|
|
4492
4492
|
cause: z$2.lazy(() => n).optional(),
|
|
4493
4493
|
errors: z$2.lazy(() => n.array()).optional()
|
|
4494
4494
|
});
|
|
4495
|
-
var
|
|
4496
|
-
var
|
|
4497
|
-
var
|
|
4495
|
+
var Xe = Object.defineProperty;
|
|
4496
|
+
var Qe = (t, e, n2) => e in t ? Xe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4497
|
+
var R = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4498
4498
|
function re(t) {
|
|
4499
4499
|
return { type: "Immediate", value: t };
|
|
4500
4500
|
}
|
|
4501
|
-
function
|
|
4501
|
+
function ht() {
|
|
4502
4502
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4503
4503
|
}
|
|
4504
|
-
function
|
|
4504
|
+
function De(t) {
|
|
4505
4505
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4506
4506
|
return globalThis.getPlatforma(t);
|
|
4507
4507
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4508
4508
|
throw new Error("Can't get platforma instance.");
|
|
4509
4509
|
}
|
|
4510
|
-
function
|
|
4510
|
+
function gt() {
|
|
4511
4511
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4512
4512
|
}
|
|
4513
|
-
function
|
|
4513
|
+
function h() {
|
|
4514
4514
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4515
4515
|
throw new Error("Not in config rendering context");
|
|
4516
4516
|
}
|
|
4517
4517
|
function H(t, e) {
|
|
4518
|
-
const n2 =
|
|
4518
|
+
const n2 = gt();
|
|
4519
4519
|
if (n2 === void 0) return false;
|
|
4520
4520
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4521
4521
|
return n2.callbackRegistry[t] = e, true;
|
|
4522
4522
|
}
|
|
4523
|
-
const
|
|
4524
|
-
function
|
|
4525
|
-
t in
|
|
4526
|
-
for (const r of
|
|
4523
|
+
const ce = /* @__PURE__ */ new Map();
|
|
4524
|
+
function mt(t, e) {
|
|
4525
|
+
t in h().callbackRegistry || (h().callbackRegistry[t] = (n2) => {
|
|
4526
|
+
for (const r of ce.get(t))
|
|
4527
4527
|
r(n2);
|
|
4528
|
-
},
|
|
4528
|
+
}, ce.set(t, [])), ce.get(t).push(e);
|
|
4529
4529
|
}
|
|
4530
4530
|
class I {
|
|
4531
4531
|
constructor(e, n2 = (r) => r) {
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
this.handle = e, this.postProcess = n2,
|
|
4532
|
+
R(this, "isResolved", false);
|
|
4533
|
+
R(this, "resolvedValue");
|
|
4534
|
+
this.handle = e, this.postProcess = n2, mt(e, (r) => {
|
|
4535
4535
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4536
4536
|
});
|
|
4537
4537
|
}
|
|
@@ -4548,10 +4548,10 @@
|
|
|
4548
4548
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4549
4549
|
}
|
|
4550
4550
|
}
|
|
4551
|
-
function
|
|
4551
|
+
function he(t, e) {
|
|
4552
4552
|
return t === void 0 ? void 0 : e(t);
|
|
4553
4553
|
}
|
|
4554
|
-
class
|
|
4554
|
+
class O {
|
|
4555
4555
|
constructor(e, n2) {
|
|
4556
4556
|
this.handle = e, this.resolvePath = n2;
|
|
4557
4557
|
}
|
|
@@ -4590,47 +4590,47 @@
|
|
|
4590
4590
|
...this.resolvePath,
|
|
4591
4591
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4592
4592
|
];
|
|
4593
|
-
return
|
|
4594
|
-
|
|
4595
|
-
(i) => new
|
|
4593
|
+
return he(
|
|
4594
|
+
h().resolveWithCommon(this.handle, e, ...n2),
|
|
4595
|
+
(i) => new O(i, r)
|
|
4596
4596
|
);
|
|
4597
4597
|
}
|
|
4598
4598
|
get resourceType() {
|
|
4599
|
-
return
|
|
4599
|
+
return h().getResourceType(this.handle);
|
|
4600
4600
|
}
|
|
4601
4601
|
getInputsLocked() {
|
|
4602
|
-
return
|
|
4602
|
+
return h().getInputsLocked(this.handle);
|
|
4603
4603
|
}
|
|
4604
4604
|
getOutputsLocked() {
|
|
4605
|
-
return
|
|
4605
|
+
return h().getOutputsLocked(this.handle);
|
|
4606
4606
|
}
|
|
4607
4607
|
getIsReadyOrError() {
|
|
4608
|
-
return
|
|
4608
|
+
return h().getIsReadyOrError(this.handle);
|
|
4609
4609
|
}
|
|
4610
4610
|
getIsFinal() {
|
|
4611
|
-
return
|
|
4611
|
+
return h().getIsFinal(this.handle);
|
|
4612
4612
|
}
|
|
4613
4613
|
getError() {
|
|
4614
4614
|
const e = [...this.resolvePath, "error"];
|
|
4615
|
-
return
|
|
4616
|
-
|
|
4617
|
-
(n2) => new
|
|
4615
|
+
return he(
|
|
4616
|
+
h().getError(this.handle),
|
|
4617
|
+
(n2) => new O(n2, e)
|
|
4618
4618
|
);
|
|
4619
4619
|
}
|
|
4620
4620
|
listInputFields() {
|
|
4621
|
-
return
|
|
4621
|
+
return h().listInputFields(this.handle);
|
|
4622
4622
|
}
|
|
4623
4623
|
listOutputFields() {
|
|
4624
|
-
return
|
|
4624
|
+
return h().listOutputFields(this.handle);
|
|
4625
4625
|
}
|
|
4626
4626
|
listDynamicFields() {
|
|
4627
|
-
return
|
|
4627
|
+
return h().listDynamicFields(this.handle);
|
|
4628
4628
|
}
|
|
4629
4629
|
getKeyValueBase64(e) {
|
|
4630
|
-
return
|
|
4630
|
+
return h().getKeyValueBase64(this.handle, e);
|
|
4631
4631
|
}
|
|
4632
4632
|
getKeyValueAsString(e) {
|
|
4633
|
-
return
|
|
4633
|
+
return h().getKeyValueAsString(this.handle, e);
|
|
4634
4634
|
}
|
|
4635
4635
|
getKeyValueAsJson(e) {
|
|
4636
4636
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4638,10 +4638,10 @@
|
|
|
4638
4638
|
return JSON.parse(n2);
|
|
4639
4639
|
}
|
|
4640
4640
|
getDataBase64() {
|
|
4641
|
-
return
|
|
4641
|
+
return h().getDataBase64(this.handle);
|
|
4642
4642
|
}
|
|
4643
4643
|
getDataAsString() {
|
|
4644
|
-
return
|
|
4644
|
+
return h().getDataAsString(this.handle);
|
|
4645
4645
|
}
|
|
4646
4646
|
getDataAsJson() {
|
|
4647
4647
|
const e = this.getDataAsString();
|
|
@@ -4662,7 +4662,7 @@
|
|
|
4662
4662
|
*
|
|
4663
4663
|
*/
|
|
4664
4664
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4665
|
-
const r =
|
|
4665
|
+
const r = h().parsePObjectCollection(
|
|
4666
4666
|
this.handle,
|
|
4667
4667
|
e,
|
|
4668
4668
|
n2,
|
|
@@ -4672,19 +4672,19 @@
|
|
|
4672
4672
|
const i = {};
|
|
4673
4673
|
for (const [s2, o] of Object.entries(r)) {
|
|
4674
4674
|
const a = [...this.resolvePath, s2];
|
|
4675
|
-
i[s2] = Kn(o, (l2) => new
|
|
4675
|
+
i[s2] = Kn(o, (l2) => new O(l2, a));
|
|
4676
4676
|
}
|
|
4677
4677
|
return i;
|
|
4678
4678
|
}
|
|
4679
4679
|
getFileContentAsBase64(e) {
|
|
4680
|
-
return new I(
|
|
4680
|
+
return new I(h().getBlobContentAsBase64(this.handle, e));
|
|
4681
4681
|
}
|
|
4682
4682
|
getFileContentAsString(e) {
|
|
4683
|
-
return new I(
|
|
4683
|
+
return new I(h().getBlobContentAsString(this.handle, e));
|
|
4684
4684
|
}
|
|
4685
4685
|
getFileContentAsJson(e) {
|
|
4686
4686
|
return new I(
|
|
4687
|
-
|
|
4687
|
+
h().getBlobContentAsString(this.handle, e)
|
|
4688
4688
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4689
4689
|
}
|
|
4690
4690
|
/**
|
|
@@ -4703,7 +4703,7 @@
|
|
|
4703
4703
|
* @returns downloaded file handle
|
|
4704
4704
|
*/
|
|
4705
4705
|
getFileHandle() {
|
|
4706
|
-
return new I(
|
|
4706
|
+
return new I(h().getDownloadedBlobContentHandle(this.handle));
|
|
4707
4707
|
}
|
|
4708
4708
|
/**
|
|
4709
4709
|
* @deprecated use getFileHandle
|
|
@@ -4715,7 +4715,7 @@
|
|
|
4715
4715
|
* @returns downloaded file handle
|
|
4716
4716
|
*/
|
|
4717
4717
|
getRemoteFileHandle() {
|
|
4718
|
-
return new I(
|
|
4718
|
+
return new I(h().getOnDemandBlobContentHandle(this.handle));
|
|
4719
4719
|
}
|
|
4720
4720
|
/**
|
|
4721
4721
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4727,22 +4727,22 @@
|
|
|
4727
4727
|
* @returns the url to the extracted folder
|
|
4728
4728
|
*/
|
|
4729
4729
|
extractArchiveAndGetURL(e) {
|
|
4730
|
-
return new I(
|
|
4730
|
+
return new I(h().extractArchiveAndGetURL(this.handle, e));
|
|
4731
4731
|
}
|
|
4732
4732
|
getImportProgress() {
|
|
4733
|
-
return new I(
|
|
4733
|
+
return new I(h().getImportProgress(this.handle));
|
|
4734
4734
|
}
|
|
4735
4735
|
getLastLogs(e) {
|
|
4736
|
-
return new I(
|
|
4736
|
+
return new I(h().getLastLogs(this.handle, e));
|
|
4737
4737
|
}
|
|
4738
4738
|
getProgressLog(e) {
|
|
4739
|
-
return new I(
|
|
4739
|
+
return new I(h().getProgressLog(this.handle, e));
|
|
4740
4740
|
}
|
|
4741
4741
|
getProgressLogWithInfo(e) {
|
|
4742
|
-
return new I(
|
|
4742
|
+
return new I(h().getProgressLogWithInfo(this.handle, e));
|
|
4743
4743
|
}
|
|
4744
4744
|
getLogHandle() {
|
|
4745
|
-
return new I(
|
|
4745
|
+
return new I(h().getLogHandle(this.handle));
|
|
4746
4746
|
}
|
|
4747
4747
|
allFieldsResolved(e = "Input") {
|
|
4748
4748
|
switch (e) {
|
|
@@ -4771,95 +4771,95 @@
|
|
|
4771
4771
|
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
|
|
4772
4772
|
}
|
|
4773
4773
|
}
|
|
4774
|
-
const
|
|
4775
|
-
const
|
|
4774
|
+
const Fe = "staging", Ke = "main";
|
|
4775
|
+
const bt = "pl7.app/label", wt = "pl7.app/trace", At = z$2.object({
|
|
4776
4776
|
type: z$2.string(),
|
|
4777
4777
|
importance: z$2.number().optional(),
|
|
4778
4778
|
id: z$2.string().optional(),
|
|
4779
4779
|
label: z$2.string()
|
|
4780
|
-
}),
|
|
4780
|
+
}), xt = z$2.array(At), Ct = 1e-3, Pt = "__LABEL__", Se = "__LABEL__@1";
|
|
4781
4781
|
function Ve(t, e, n2 = {}) {
|
|
4782
|
-
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((
|
|
4783
|
-
var S,
|
|
4784
|
-
const
|
|
4785
|
-
let c2,
|
|
4786
|
-
"spec" in
|
|
4787
|
-
const p2 = (S = c2.annotations) == null ? void 0 : S[
|
|
4788
|
-
...
|
|
4789
|
-
...
|
|
4790
|
-
...
|
|
4782
|
+
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) => {
|
|
4783
|
+
var S, D2;
|
|
4784
|
+
const w2 = e(f2);
|
|
4785
|
+
let c2, g, x2;
|
|
4786
|
+
"spec" in w2 && typeof w2.spec == "object" ? (c2 = w2.spec, g = w2.prefixTrace, x2 = w2.suffixTrace) : c2 = w2;
|
|
4787
|
+
const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (D2 = c2.annotations) == null ? void 0 : D2[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
|
|
4788
|
+
...g ?? [],
|
|
4789
|
+
...m2,
|
|
4790
|
+
...x2 ?? []
|
|
4791
4791
|
];
|
|
4792
4792
|
if (p2 !== void 0) {
|
|
4793
|
-
const
|
|
4794
|
-
n2.addLabelAsSuffix ?
|
|
4795
|
-
}
|
|
4796
|
-
const
|
|
4797
|
-
for (let
|
|
4798
|
-
const { type: W } =
|
|
4799
|
-
|
|
4800
|
-
const
|
|
4801
|
-
s2.set(
|
|
4802
|
-
|
|
4793
|
+
const k2 = { label: p2, type: Pt, importance: -2 };
|
|
4794
|
+
n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
|
|
4795
|
+
}
|
|
4796
|
+
const C2 = [], L = /* @__PURE__ */ new Map();
|
|
4797
|
+
for (let k2 = v.length - 1; k2 >= 0; --k2) {
|
|
4798
|
+
const { type: W } = v[k2], V = v[k2].importance ?? 0, N2 = (L.get(W) ?? 0) + 1;
|
|
4799
|
+
L.set(W, N2);
|
|
4800
|
+
const j = `${W}@${N2}`;
|
|
4801
|
+
s2.set(j, (s2.get(j) ?? 0) + 1), r.set(
|
|
4802
|
+
j,
|
|
4803
4803
|
Math.max(
|
|
4804
|
-
r.get(
|
|
4805
|
-
|
|
4804
|
+
r.get(j) ?? Number.NEGATIVE_INFINITY,
|
|
4805
|
+
V - (v.length - k2) * Ct
|
|
4806
4806
|
)
|
|
4807
|
-
),
|
|
4807
|
+
), C2.push({ ...v[k2], fullType: j, occurrenceIndex: N2 });
|
|
4808
4808
|
}
|
|
4809
|
-
return
|
|
4810
|
-
value:
|
|
4809
|
+
return C2.reverse(), {
|
|
4810
|
+
value: f2,
|
|
4811
4811
|
spec: c2,
|
|
4812
4812
|
label: p2,
|
|
4813
|
-
fullTrace:
|
|
4813
|
+
fullTrace: C2
|
|
4814
4814
|
};
|
|
4815
4815
|
}), a = [], l2 = [], u2 = [...r];
|
|
4816
|
-
u2.sort(([,
|
|
4817
|
-
for (const [
|
|
4818
|
-
|
|
4819
|
-
const d = (
|
|
4816
|
+
u2.sort(([, f2], [, w2]) => w2 - f2);
|
|
4817
|
+
for (const [f2] of u2)
|
|
4818
|
+
f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
|
|
4819
|
+
const d = (f2, w2 = false) => {
|
|
4820
4820
|
const c2 = [];
|
|
4821
|
-
for (let
|
|
4822
|
-
const
|
|
4821
|
+
for (let g = 0; g < o.length; g++) {
|
|
4822
|
+
const x2 = o[g], p2 = x2.fullTrace.filter((v) => f2.has(v.fullType) || i && i.has(v.type));
|
|
4823
4823
|
if (p2.length === 0)
|
|
4824
|
-
if (
|
|
4824
|
+
if (w2)
|
|
4825
4825
|
c2.push({
|
|
4826
4826
|
label: "Unlabeled",
|
|
4827
|
-
value:
|
|
4827
|
+
value: x2.value
|
|
4828
4828
|
});
|
|
4829
4829
|
else return;
|
|
4830
|
-
const A2 = p2.map((
|
|
4830
|
+
const A2 = p2.map((v) => v.label), m2 = n2.separator ?? " / ";
|
|
4831
4831
|
c2.push({
|
|
4832
|
-
label: A2.join(
|
|
4833
|
-
value:
|
|
4832
|
+
label: A2.join(m2),
|
|
4833
|
+
value: x2.value
|
|
4834
4834
|
});
|
|
4835
4835
|
}
|
|
4836
4836
|
return c2;
|
|
4837
4837
|
};
|
|
4838
4838
|
if (a.length === 0) {
|
|
4839
4839
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4840
|
-
return d(new Set(
|
|
4841
|
-
}
|
|
4842
|
-
let
|
|
4843
|
-
for (;
|
|
4844
|
-
const
|
|
4845
|
-
n2.includeNativeLabel &&
|
|
4846
|
-
for (let c2 = 0; c2 <
|
|
4847
|
-
|
|
4848
|
-
const
|
|
4849
|
-
if (
|
|
4850
|
-
|
|
4840
|
+
return d(new Set(Se), true);
|
|
4841
|
+
}
|
|
4842
|
+
let y = 0, b = -1;
|
|
4843
|
+
for (; y < a.length; ) {
|
|
4844
|
+
const f2 = /* @__PURE__ */ new Set();
|
|
4845
|
+
n2.includeNativeLabel && f2.add(Se);
|
|
4846
|
+
for (let c2 = 0; c2 < y; ++c2) f2.add(a[c2]);
|
|
4847
|
+
b >= 0 && f2.add(a[b]);
|
|
4848
|
+
const w2 = d(f2);
|
|
4849
|
+
if (w2 !== void 0 && new Set(w2.map((c2) => c2.label)).size === t.length) return w2;
|
|
4850
|
+
b++, b >= a.length && (y++, b = y);
|
|
4851
4851
|
}
|
|
4852
4852
|
return d(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4853
4853
|
}
|
|
4854
|
-
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned",
|
|
4855
|
-
const
|
|
4854
|
+
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", $e = Z + "Partitioned/", ae = $e + "JsonPartitioned", z = $e + "BinaryPartitioned";
|
|
4855
|
+
const me = (t) => {
|
|
4856
4856
|
if (t.endsWith(".index"))
|
|
4857
4857
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
4858
4858
|
if (t.endsWith(".values"))
|
|
4859
4859
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4860
4860
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4861
4861
|
};
|
|
4862
|
-
function
|
|
4862
|
+
function St(t) {
|
|
4863
4863
|
if (!t) return;
|
|
4864
4864
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4865
4865
|
let i = 0;
|
|
@@ -4884,7 +4884,7 @@
|
|
|
4884
4884
|
case q:
|
|
4885
4885
|
case B:
|
|
4886
4886
|
for (let s2 of t.listInputFields()) {
|
|
4887
|
-
e === B && (s2 =
|
|
4887
|
+
e === B && (s2 = me(s2).baseKey);
|
|
4888
4888
|
const o = [...JSON.parse(s2)];
|
|
4889
4889
|
r.push(o);
|
|
4890
4890
|
}
|
|
@@ -4896,7 +4896,7 @@
|
|
|
4896
4896
|
const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4897
4897
|
if (a !== void 0)
|
|
4898
4898
|
for (let l2 of a.listInputFields()) {
|
|
4899
|
-
e === z && (l2 =
|
|
4899
|
+
e === z && (l2 = me(l2).baseKey);
|
|
4900
4900
|
const u2 = [...o, ...JSON.parse(l2)];
|
|
4901
4901
|
r.push(u2);
|
|
4902
4902
|
}
|
|
@@ -4905,7 +4905,7 @@
|
|
|
4905
4905
|
}
|
|
4906
4906
|
return { data: r, keyLength: i };
|
|
4907
4907
|
}
|
|
4908
|
-
function
|
|
4908
|
+
function _t(t) {
|
|
4909
4909
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4910
4910
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4911
4911
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4924,11 +4924,11 @@
|
|
|
4924
4924
|
}
|
|
4925
4925
|
return r.map((i) => Array.from(i.values()));
|
|
4926
4926
|
}
|
|
4927
|
-
function
|
|
4927
|
+
function It(t) {
|
|
4928
4928
|
if (t === void 0) return;
|
|
4929
|
-
if (F
|
|
4930
|
-
return
|
|
4931
|
-
const e =
|
|
4929
|
+
if (F(t))
|
|
4930
|
+
return _t(t);
|
|
4931
|
+
const e = St(t);
|
|
4932
4932
|
if (!e) return;
|
|
4933
4933
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4934
4934
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -4941,7 +4941,7 @@
|
|
|
4941
4941
|
}
|
|
4942
4942
|
return i.map((s2) => Array.from(s2.values()));
|
|
4943
4943
|
}
|
|
4944
|
-
function
|
|
4944
|
+
function ye(t, e = []) {
|
|
4945
4945
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4946
4946
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4947
4947
|
if (e.length > 0 && (n2 === ae || n2 === z))
|
|
@@ -4971,7 +4971,7 @@
|
|
|
4971
4971
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4972
4972
|
const i = [], s2 = /* @__PURE__ */ new Map();
|
|
4973
4973
|
for (const o of t.listInputFields()) {
|
|
4974
|
-
const a =
|
|
4974
|
+
const a = me(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4975
4975
|
if (l2 === void 0) return;
|
|
4976
4976
|
let u2 = s2.get(a.baseKey);
|
|
4977
4977
|
u2 || (u2 = {}, s2.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
|
|
@@ -5002,7 +5002,7 @@
|
|
|
5002
5002
|
if (a === void 0) return;
|
|
5003
5003
|
if (a.resourceType.name !== q)
|
|
5004
5004
|
throw new Error(`Expected ${q} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5005
|
-
const l2 =
|
|
5005
|
+
const l2 = ye(a, JSON.parse(o));
|
|
5006
5006
|
if (l2 === void 0) return;
|
|
5007
5007
|
if (l2.type !== "JsonPartitioned")
|
|
5008
5008
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5023,7 +5023,7 @@
|
|
|
5023
5023
|
if (a === void 0) return;
|
|
5024
5024
|
if (a.resourceType.name !== B)
|
|
5025
5025
|
throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5026
|
-
const l2 =
|
|
5026
|
+
const l2 = ye(a, JSON.parse(o));
|
|
5027
5027
|
if (l2 === void 0) return;
|
|
5028
5028
|
if (l2.type !== "BinaryPartitioned")
|
|
5029
5029
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5039,15 +5039,15 @@
|
|
|
5039
5039
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5040
5040
|
}
|
|
5041
5041
|
}
|
|
5042
|
-
function
|
|
5042
|
+
function Tt(t) {
|
|
5043
5043
|
if (t !== void 0) {
|
|
5044
|
-
if (F
|
|
5044
|
+
if (F(t)) return t;
|
|
5045
5045
|
if (yn(t)) return bn(t);
|
|
5046
|
-
if (t instanceof
|
|
5046
|
+
if (t instanceof O) return ye(t);
|
|
5047
5047
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5048
5048
|
}
|
|
5049
5049
|
}
|
|
5050
|
-
function
|
|
5050
|
+
function Lt(t, e) {
|
|
5051
5051
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5052
5052
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5053
5053
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5107,7 +5107,7 @@
|
|
|
5107
5107
|
}
|
|
5108
5108
|
}
|
|
5109
5109
|
}
|
|
5110
|
-
class
|
|
5110
|
+
class Et {
|
|
5111
5111
|
constructor(e) {
|
|
5112
5112
|
this.columns = e;
|
|
5113
5113
|
}
|
|
@@ -5116,7 +5116,7 @@
|
|
|
5116
5116
|
return this.columns.filter((r) => n2(r.spec));
|
|
5117
5117
|
}
|
|
5118
5118
|
}
|
|
5119
|
-
function
|
|
5119
|
+
function Ot(t) {
|
|
5120
5120
|
if (t)
|
|
5121
5121
|
return t.map((e) => ({
|
|
5122
5122
|
type: `split:${$n(e.axisId)}`,
|
|
@@ -5125,21 +5125,21 @@
|
|
|
5125
5125
|
// High importance for split filters in labels
|
|
5126
5126
|
}));
|
|
5127
5127
|
}
|
|
5128
|
-
function
|
|
5128
|
+
function kt(t) {
|
|
5129
5129
|
if (t)
|
|
5130
5130
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5131
5131
|
}
|
|
5132
|
-
function
|
|
5132
|
+
function Rt(t, e) {
|
|
5133
5133
|
if (!e || e.length === 0) return t;
|
|
5134
5134
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5135
|
-
return
|
|
5135
|
+
return ke({ id: t, axisFilters: n2 });
|
|
5136
5136
|
}
|
|
5137
|
-
function
|
|
5137
|
+
function _e(t) {
|
|
5138
5138
|
if (!t || typeof t != "object") return false;
|
|
5139
5139
|
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);
|
|
5140
5140
|
return !!e.domainAnchor || n2 || r;
|
|
5141
5141
|
}
|
|
5142
|
-
function
|
|
5142
|
+
function Dt(t) {
|
|
5143
5143
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5144
5144
|
return [];
|
|
5145
5145
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5147,11 +5147,11 @@
|
|
|
5147
5147
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
5148
5148
|
return e.sort((n2, r) => n2 - r), e;
|
|
5149
5149
|
}
|
|
5150
|
-
class
|
|
5150
|
+
class ve {
|
|
5151
5151
|
constructor() {
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5152
|
+
R(this, "defaultProviderStore", []);
|
|
5153
|
+
R(this, "providers", [new Et(this.defaultProviderStore)]);
|
|
5154
|
+
R(this, "axisLabelProviders", []);
|
|
5155
5155
|
}
|
|
5156
5156
|
addColumnProvider(e) {
|
|
5157
5157
|
return this.providers.push(e), this;
|
|
@@ -5179,127 +5179,127 @@
|
|
|
5179
5179
|
};
|
|
5180
5180
|
let u2 = () => false;
|
|
5181
5181
|
if (a) {
|
|
5182
|
-
const c2 = (Array.isArray(a) ? a : [a]).map((
|
|
5183
|
-
if (
|
|
5182
|
+
const c2 = (Array.isArray(a) ? a : [a]).map((g) => {
|
|
5183
|
+
if (_e(g)) {
|
|
5184
5184
|
if (!r)
|
|
5185
5185
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5186
|
-
return vn(Vn(r.anchors,
|
|
5186
|
+
return vn(Vn(r.anchors, g, n2));
|
|
5187
5187
|
} else
|
|
5188
|
-
return vn(
|
|
5188
|
+
return vn(g);
|
|
5189
5189
|
});
|
|
5190
|
-
u2 = (
|
|
5190
|
+
u2 = (g) => c2.some((x2) => x2(g));
|
|
5191
5191
|
}
|
|
5192
|
-
const d = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e],
|
|
5192
|
+
const d = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], y = [], b = /* @__PURE__ */ new Set();
|
|
5193
5193
|
for (const c2 of d) {
|
|
5194
|
-
const
|
|
5195
|
-
let
|
|
5196
|
-
if (
|
|
5194
|
+
const g = _e(c2);
|
|
5195
|
+
let x2;
|
|
5196
|
+
if (g) {
|
|
5197
5197
|
if (!r)
|
|
5198
5198
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5199
|
-
|
|
5199
|
+
x2 = Vn(r.anchors, c2, n2);
|
|
5200
5200
|
} else
|
|
5201
|
-
|
|
5201
|
+
x2 = c2;
|
|
5202
5202
|
const p2 = /* @__PURE__ */ new Set(), A2 = [];
|
|
5203
|
-
for (const
|
|
5204
|
-
const
|
|
5205
|
-
for (const S of
|
|
5203
|
+
for (const C2 of this.providers) {
|
|
5204
|
+
const L = C2.selectColumns(x2);
|
|
5205
|
+
for (const S of L) {
|
|
5206
5206
|
if (u2(S.spec)) continue;
|
|
5207
5207
|
if (p2.has(S.id))
|
|
5208
|
-
throw new Error(`Duplicate column id ${S.id} in provider ${
|
|
5209
|
-
const
|
|
5210
|
-
|
|
5208
|
+
throw new Error(`Duplicate column id ${S.id} in provider ${C2.constructor.name}`);
|
|
5209
|
+
const D2 = _n(S.spec);
|
|
5210
|
+
b.has(D2) || (p2.add(S.id), b.add(D2), A2.push(S));
|
|
5211
5211
|
}
|
|
5212
5212
|
}
|
|
5213
5213
|
if (A2.length === 0) continue;
|
|
5214
|
-
const
|
|
5215
|
-
for (const
|
|
5216
|
-
if (!f
|
|
5217
|
-
const
|
|
5218
|
-
if (
|
|
5219
|
-
const S =
|
|
5214
|
+
const m2 = Dt(c2), v = m2.length > 0;
|
|
5215
|
+
for (const C2 of A2) {
|
|
5216
|
+
if (!f(C2.spec)) continue;
|
|
5217
|
+
const L = C2.spec;
|
|
5218
|
+
if (v) {
|
|
5219
|
+
const S = Tt(C2.data);
|
|
5220
5220
|
if (!S) {
|
|
5221
5221
|
if (s2) continue;
|
|
5222
5222
|
return;
|
|
5223
5223
|
}
|
|
5224
5224
|
if (!gn(S))
|
|
5225
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${
|
|
5226
|
-
const
|
|
5227
|
-
if (
|
|
5228
|
-
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${
|
|
5229
|
-
const W =
|
|
5230
|
-
if (G2 >=
|
|
5231
|
-
if (
|
|
5225
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${C2.id}`);
|
|
5226
|
+
const D2 = It(S), k2 = m2[m2.length - 1];
|
|
5227
|
+
if (k2 >= S.partitionKeyLength)
|
|
5228
|
+
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
|
|
5229
|
+
const W = m2.map((_) => this.findLabels(p$1(L.axesSpec[_]))), V = [], N2 = (_, G2) => {
|
|
5230
|
+
if (G2 >= m2.length) {
|
|
5231
|
+
if (V.push([..._]), V.length > 1e4)
|
|
5232
5232
|
throw new Error("Too many key combinations, aborting.");
|
|
5233
5233
|
return;
|
|
5234
5234
|
}
|
|
5235
|
-
const
|
|
5236
|
-
if (
|
|
5237
|
-
throw new Error(`Axis index ${
|
|
5238
|
-
const J =
|
|
5235
|
+
const $ = m2[G2];
|
|
5236
|
+
if ($ >= D2.length)
|
|
5237
|
+
throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${D2.length}) during split key generation for column ${C2.id}`);
|
|
5238
|
+
const J = D2[$];
|
|
5239
5239
|
if (!J || J.length === 0) {
|
|
5240
|
-
|
|
5240
|
+
V.length = 0;
|
|
5241
5241
|
return;
|
|
5242
5242
|
}
|
|
5243
5243
|
for (const ee of J)
|
|
5244
|
-
_.push(ee),
|
|
5244
|
+
_.push(ee), N2(_, G2 + 1), _.pop();
|
|
5245
5245
|
};
|
|
5246
|
-
if (
|
|
5246
|
+
if (N2([], 0), V.length === 0)
|
|
5247
5247
|
continue;
|
|
5248
|
-
const
|
|
5249
|
-
for (let _ =
|
|
5250
|
-
|
|
5251
|
-
const
|
|
5252
|
-
for (const _ of
|
|
5253
|
-
const G2 = _.map((
|
|
5254
|
-
const ee =
|
|
5255
|
-
return { axisIdx: ee, axisId:
|
|
5248
|
+
const j = [...L.axesSpec], He = m2.map((_) => _);
|
|
5249
|
+
for (let _ = m2.length - 1; _ >= 0; _--)
|
|
5250
|
+
j.splice(m2[_], 1);
|
|
5251
|
+
const qe = { ...L, axesSpec: j };
|
|
5252
|
+
for (const _ of V) {
|
|
5253
|
+
const G2 = _.map(($, J) => {
|
|
5254
|
+
const ee = He[J], ze = p$1(L.axesSpec[ee]), le = W[J], Ye = (le == null ? void 0 : le[$]) ?? String($);
|
|
5255
|
+
return { axisIdx: ee, axisId: ze, value: $, label: Ye };
|
|
5256
5256
|
});
|
|
5257
|
-
|
|
5257
|
+
y.push({
|
|
5258
5258
|
type: "split",
|
|
5259
|
-
originalColumn:
|
|
5260
|
-
spec:
|
|
5261
|
-
adjustedSpec:
|
|
5259
|
+
originalColumn: C2,
|
|
5260
|
+
spec: L,
|
|
5261
|
+
adjustedSpec: qe,
|
|
5262
5262
|
dataEntries: S,
|
|
5263
5263
|
axisFilters: G2
|
|
5264
5264
|
});
|
|
5265
5265
|
}
|
|
5266
5266
|
} else
|
|
5267
|
-
|
|
5267
|
+
y.push({
|
|
5268
5268
|
type: "direct",
|
|
5269
|
-
originalColumn:
|
|
5270
|
-
spec:
|
|
5271
|
-
adjustedSpec:
|
|
5269
|
+
originalColumn: C2,
|
|
5270
|
+
spec: L,
|
|
5271
|
+
adjustedSpec: L
|
|
5272
5272
|
});
|
|
5273
5273
|
}
|
|
5274
5274
|
}
|
|
5275
|
-
if (
|
|
5276
|
-
const
|
|
5277
|
-
|
|
5275
|
+
if (y.length === 0) return [];
|
|
5276
|
+
const f$1 = Ve(
|
|
5277
|
+
y,
|
|
5278
5278
|
(c2) => ({
|
|
5279
5279
|
spec: c2.spec,
|
|
5280
|
-
suffixTrace: c2.type === "split" ?
|
|
5280
|
+
suffixTrace: c2.type === "split" ? Ot(c2.axisFilters) : void 0
|
|
5281
5281
|
}),
|
|
5282
5282
|
l2
|
|
5283
|
-
),
|
|
5284
|
-
for (const { value: c2, label:
|
|
5285
|
-
const { originalColumn:
|
|
5286
|
-
let
|
|
5287
|
-
r ?
|
|
5288
|
-
let
|
|
5289
|
-
o && (
|
|
5290
|
-
...
|
|
5283
|
+
), w2 = [];
|
|
5284
|
+
for (const { value: c2, label: g } of f$1) {
|
|
5285
|
+
const { originalColumn: x2, spec: p2 } = c2, A2 = c2.type === "split" ? c2.axisFilters : void 0, m2 = kt(A2);
|
|
5286
|
+
let v;
|
|
5287
|
+
r ? v = r.deriveS(p2, m2) : v = Rt(x2.id, m2);
|
|
5288
|
+
let C2 = { ...c2.adjustedSpec };
|
|
5289
|
+
o && (C2 = {
|
|
5290
|
+
...C2,
|
|
5291
5291
|
annotations: {
|
|
5292
|
-
...
|
|
5293
|
-
"pl7.app/label":
|
|
5292
|
+
...C2.annotations ?? {},
|
|
5293
|
+
"pl7.app/label": g
|
|
5294
5294
|
}
|
|
5295
|
-
}),
|
|
5296
|
-
id:
|
|
5297
|
-
spec:
|
|
5298
|
-
data: () => c2.type === "split" ? wn(
|
|
5299
|
-
label:
|
|
5295
|
+
}), w2.push({
|
|
5296
|
+
id: v,
|
|
5297
|
+
spec: C2,
|
|
5298
|
+
data: () => c2.type === "split" ? wn(Lt(c2.dataEntries, m2)) : c2.originalColumn.data,
|
|
5299
|
+
label: g
|
|
5300
5300
|
});
|
|
5301
5301
|
}
|
|
5302
|
-
return
|
|
5302
|
+
return w2;
|
|
5303
5303
|
}
|
|
5304
5304
|
getColumns(e, n2) {
|
|
5305
5305
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5324,19 +5324,19 @@
|
|
|
5324
5324
|
return i;
|
|
5325
5325
|
}
|
|
5326
5326
|
}
|
|
5327
|
-
function
|
|
5327
|
+
function pe(t, e) {
|
|
5328
5328
|
if (t === void 0) return e === void 0;
|
|
5329
5329
|
if (e === void 0) return true;
|
|
5330
5330
|
for (const n2 in e)
|
|
5331
5331
|
if (t[n2] !== e[n2]) return false;
|
|
5332
5332
|
return true;
|
|
5333
5333
|
}
|
|
5334
|
-
function
|
|
5335
|
-
return Kn(t, (e) => e instanceof
|
|
5334
|
+
function Ie(t) {
|
|
5335
|
+
return Kn(t, (e) => e instanceof O ? e.handle : yn(e) ? hn(e, (n2) => n2.handle) : e);
|
|
5336
5336
|
}
|
|
5337
|
-
class
|
|
5337
|
+
class Ft {
|
|
5338
5338
|
constructor() {
|
|
5339
|
-
|
|
5339
|
+
R(this, "ctx", h());
|
|
5340
5340
|
}
|
|
5341
5341
|
/**
|
|
5342
5342
|
* @deprecated use getOptions()
|
|
@@ -5379,7 +5379,7 @@
|
|
|
5379
5379
|
getAnchoredPColumns(e, n2, r) {
|
|
5380
5380
|
const i = this.resolveAnchorCtx(e);
|
|
5381
5381
|
if (i)
|
|
5382
|
-
return new
|
|
5382
|
+
return new ve().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
|
|
5383
5383
|
...r,
|
|
5384
5384
|
anchorCtx: i
|
|
5385
5385
|
});
|
|
@@ -5416,7 +5416,7 @@
|
|
|
5416
5416
|
getCanonicalOptions(e, n2, r) {
|
|
5417
5417
|
const i = this.resolveAnchorCtx(e);
|
|
5418
5418
|
if (!i) return;
|
|
5419
|
-
const s2 = new
|
|
5419
|
+
const s2 = new ve().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
|
|
5420
5420
|
...r,
|
|
5421
5421
|
anchorCtx: i
|
|
5422
5422
|
});
|
|
@@ -5440,7 +5440,7 @@
|
|
|
5440
5440
|
ref: n2.ref,
|
|
5441
5441
|
obj: {
|
|
5442
5442
|
...n2.obj,
|
|
5443
|
-
data: new
|
|
5443
|
+
data: new O(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5444
5444
|
}
|
|
5445
5445
|
}))
|
|
5446
5446
|
};
|
|
@@ -5461,7 +5461,7 @@
|
|
|
5461
5461
|
...n2.obj,
|
|
5462
5462
|
data: Xn(
|
|
5463
5463
|
n2.obj.data,
|
|
5464
|
-
(r) => new
|
|
5464
|
+
(r) => new O(r, [n2.ref.blockId, n2.ref.name])
|
|
5465
5465
|
)
|
|
5466
5466
|
}
|
|
5467
5467
|
}))
|
|
@@ -5490,7 +5490,7 @@
|
|
|
5490
5490
|
if (n2)
|
|
5491
5491
|
return Kn(
|
|
5492
5492
|
n2,
|
|
5493
|
-
(i) => new
|
|
5493
|
+
(i) => new O(i, [e.blockId, e.name])
|
|
5494
5494
|
);
|
|
5495
5495
|
}
|
|
5496
5496
|
/**
|
|
@@ -5511,7 +5511,7 @@
|
|
|
5511
5511
|
getPColumnSpecByRef(e) {
|
|
5512
5512
|
const n2 = this.getSpecByRef(e);
|
|
5513
5513
|
if (n2) {
|
|
5514
|
-
if (!f
|
|
5514
|
+
if (!f(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
|
|
5515
5515
|
return n2;
|
|
5516
5516
|
}
|
|
5517
5517
|
}
|
|
@@ -5530,13 +5530,13 @@
|
|
|
5530
5530
|
findDataWithCompatibleSpec(e) {
|
|
5531
5531
|
const n2 = [];
|
|
5532
5532
|
e: for (const r of this.getData().entries) {
|
|
5533
|
-
if (!f
|
|
5533
|
+
if (!f(r.obj.spec))
|
|
5534
5534
|
continue;
|
|
5535
5535
|
const i = r.obj.spec;
|
|
5536
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5536
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && pe(e.domain, i.domain)) {
|
|
5537
5537
|
for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
|
|
5538
5538
|
const o = e.axesSpec[s2], a = i.axesSpec[s2];
|
|
5539
|
-
if (o.name !== a.name || o.type !== a.type || !
|
|
5539
|
+
if (o.name !== a.name || o.type !== a.type || !pe(o.domain, a.domain))
|
|
5540
5540
|
continue e;
|
|
5541
5541
|
}
|
|
5542
5542
|
n2.push(r.obj);
|
|
@@ -5553,7 +5553,7 @@
|
|
|
5553
5553
|
for (const r of n2.entries) {
|
|
5554
5554
|
if (!Z$1(r.obj)) continue;
|
|
5555
5555
|
const i = r.obj.spec;
|
|
5556
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5556
|
+
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && pe(e.domain, i.axesSpec[0].domain)) {
|
|
5557
5557
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5558
5558
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5559
5559
|
return Object.fromEntries(
|
|
@@ -5573,12 +5573,12 @@
|
|
|
5573
5573
|
*/
|
|
5574
5574
|
selectColumns(e) {
|
|
5575
5575
|
const n2 = typeof e == "function" ? e : vn(e);
|
|
5576
|
-
return this.getSpecs().entries.filter(({ obj: i }) => f
|
|
5576
|
+
return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
|
|
5577
5577
|
const o = s2;
|
|
5578
5578
|
let a = null;
|
|
5579
5579
|
const l2 = this;
|
|
5580
5580
|
return {
|
|
5581
|
-
id:
|
|
5581
|
+
id: ke(i),
|
|
5582
5582
|
spec: o,
|
|
5583
5583
|
get data() {
|
|
5584
5584
|
var u2;
|
|
@@ -5605,12 +5605,12 @@
|
|
|
5605
5605
|
}
|
|
5606
5606
|
class te {
|
|
5607
5607
|
constructor() {
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
this.ctx =
|
|
5608
|
+
R(this, "ctx");
|
|
5609
|
+
R(this, "args");
|
|
5610
|
+
R(this, "uiState");
|
|
5611
|
+
R(this, "_activeArgsCache");
|
|
5612
|
+
R(this, "resultPool", new Ft());
|
|
5613
|
+
this.ctx = h(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5614
5614
|
}
|
|
5615
5615
|
/**
|
|
5616
5616
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5626,16 +5626,16 @@
|
|
|
5626
5626
|
// return this.ctx.featureFlags;
|
|
5627
5627
|
// }
|
|
5628
5628
|
getNamedAccessor(e) {
|
|
5629
|
-
return
|
|
5629
|
+
return he(
|
|
5630
5630
|
this.ctx.getAccessorHandleByName(e),
|
|
5631
|
-
(n2) => new
|
|
5631
|
+
(n2) => new O(n2, [e])
|
|
5632
5632
|
);
|
|
5633
5633
|
}
|
|
5634
5634
|
get prerun() {
|
|
5635
|
-
return this.getNamedAccessor(
|
|
5635
|
+
return this.getNamedAccessor(Fe);
|
|
5636
5636
|
}
|
|
5637
5637
|
get outputs() {
|
|
5638
|
-
return this.getNamedAccessor(
|
|
5638
|
+
return this.getNamedAccessor(Ke);
|
|
5639
5639
|
}
|
|
5640
5640
|
/**
|
|
5641
5641
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5647,13 +5647,13 @@
|
|
|
5647
5647
|
}
|
|
5648
5648
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5649
5649
|
var i;
|
|
5650
|
-
const n2 = e.some((s2) => !(s2.data instanceof
|
|
5650
|
+
const n2 = e.some((s2) => !(s2.data instanceof O) || yn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5651
5651
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5652
5652
|
}
|
|
5653
5653
|
// TODO remove all non-PColumn fields
|
|
5654
5654
|
createPFrame(e) {
|
|
5655
5655
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5656
|
-
e.map((n2) =>
|
|
5656
|
+
e.map((n2) => Ie(n2))
|
|
5657
5657
|
);
|
|
5658
5658
|
}
|
|
5659
5659
|
createPTable(e) {
|
|
@@ -5666,7 +5666,7 @@
|
|
|
5666
5666
|
filters: e.filters ?? [],
|
|
5667
5667
|
sorting: e.sorting ?? []
|
|
5668
5668
|
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Rn(n2.src)), this.ctx.createPTable(
|
|
5669
|
-
In(n2, (r) =>
|
|
5669
|
+
In(n2, (r) => Ie(r))
|
|
5670
5670
|
);
|
|
5671
5671
|
}
|
|
5672
5672
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5677,20 +5677,20 @@
|
|
|
5677
5677
|
return this.ctx.getCurrentUnstableMarker();
|
|
5678
5678
|
}
|
|
5679
5679
|
}
|
|
5680
|
-
const Y = "1.31.
|
|
5681
|
-
function
|
|
5680
|
+
const Y = "1.31.17";
|
|
5681
|
+
function Kt(t) {
|
|
5682
5682
|
return t.__renderLambda === true;
|
|
5683
5683
|
}
|
|
5684
|
-
function
|
|
5684
|
+
function de(t) {
|
|
5685
5685
|
if (t !== void 0)
|
|
5686
|
-
return
|
|
5686
|
+
return Kt(t) ? t.handle : t;
|
|
5687
5687
|
}
|
|
5688
|
-
class
|
|
5688
|
+
class E {
|
|
5689
5689
|
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
5690
5690
|
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
|
|
5691
5691
|
}
|
|
5692
5692
|
static create(e = "Heavy") {
|
|
5693
|
-
return new
|
|
5693
|
+
return new E(
|
|
5694
5694
|
e,
|
|
5695
5695
|
void 0,
|
|
5696
5696
|
{},
|
|
@@ -5704,7 +5704,7 @@
|
|
|
5704
5704
|
output(e, n2, r = {}) {
|
|
5705
5705
|
if (typeof n2 == "function") {
|
|
5706
5706
|
const i = `output#${e}`;
|
|
5707
|
-
return H(i, () => n2(new te())), new
|
|
5707
|
+
return H(i, () => n2(new te())), new E(
|
|
5708
5708
|
this._renderingMode,
|
|
5709
5709
|
this._initialArgs,
|
|
5710
5710
|
this._initialUiState,
|
|
@@ -5722,7 +5722,7 @@
|
|
|
5722
5722
|
this._enrichmentTargets
|
|
5723
5723
|
);
|
|
5724
5724
|
} else
|
|
5725
|
-
return new
|
|
5725
|
+
return new E(
|
|
5726
5726
|
this._renderingMode,
|
|
5727
5727
|
this._initialArgs,
|
|
5728
5728
|
this._initialUiState,
|
|
@@ -5741,7 +5741,7 @@
|
|
|
5741
5741
|
return this.output(e, n2, { retentive: true });
|
|
5742
5742
|
}
|
|
5743
5743
|
argsValid(e) {
|
|
5744
|
-
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new
|
|
5744
|
+
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new E(
|
|
5745
5745
|
this._renderingMode,
|
|
5746
5746
|
this._initialArgs,
|
|
5747
5747
|
this._initialUiState,
|
|
@@ -5753,7 +5753,7 @@
|
|
|
5753
5753
|
this._sections,
|
|
5754
5754
|
this._title,
|
|
5755
5755
|
this._enrichmentTargets
|
|
5756
|
-
)) : new
|
|
5756
|
+
)) : new E(
|
|
5757
5757
|
this._renderingMode,
|
|
5758
5758
|
this._initialArgs,
|
|
5759
5759
|
this._initialUiState,
|
|
@@ -5765,7 +5765,7 @@
|
|
|
5765
5765
|
);
|
|
5766
5766
|
}
|
|
5767
5767
|
sections(e) {
|
|
5768
|
-
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new
|
|
5768
|
+
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new E(
|
|
5769
5769
|
this._renderingMode,
|
|
5770
5770
|
this._initialArgs,
|
|
5771
5771
|
this._initialUiState,
|
|
@@ -5774,7 +5774,7 @@
|
|
|
5774
5774
|
{ __renderLambda: true, handle: "sections" },
|
|
5775
5775
|
this._title,
|
|
5776
5776
|
this._enrichmentTargets
|
|
5777
|
-
)) : new
|
|
5777
|
+
)) : new E(
|
|
5778
5778
|
this._renderingMode,
|
|
5779
5779
|
this._initialArgs,
|
|
5780
5780
|
this._initialUiState,
|
|
@@ -5787,7 +5787,7 @@
|
|
|
5787
5787
|
}
|
|
5788
5788
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5789
5789
|
title(e) {
|
|
5790
|
-
return H("title", () => e(new te())), new
|
|
5790
|
+
return H("title", () => e(new te())), new E(
|
|
5791
5791
|
this._renderingMode,
|
|
5792
5792
|
this._initialArgs,
|
|
5793
5793
|
this._initialUiState,
|
|
@@ -5803,7 +5803,7 @@
|
|
|
5803
5803
|
* @deprecated use {@link withArgs}
|
|
5804
5804
|
* */
|
|
5805
5805
|
initialArgs(e) {
|
|
5806
|
-
return new
|
|
5806
|
+
return new E(
|
|
5807
5807
|
this._renderingMode,
|
|
5808
5808
|
e,
|
|
5809
5809
|
this._initialUiState,
|
|
@@ -5816,7 +5816,7 @@
|
|
|
5816
5816
|
}
|
|
5817
5817
|
/** Sets initial args for the block, this value must be specified. */
|
|
5818
5818
|
withArgs(e) {
|
|
5819
|
-
return new
|
|
5819
|
+
return new E(
|
|
5820
5820
|
this._renderingMode,
|
|
5821
5821
|
e,
|
|
5822
5822
|
this._initialUiState,
|
|
@@ -5829,7 +5829,7 @@
|
|
|
5829
5829
|
}
|
|
5830
5830
|
/** Defines type and sets initial value for block UiState. */
|
|
5831
5831
|
withUiState(e) {
|
|
5832
|
-
return new
|
|
5832
|
+
return new E(
|
|
5833
5833
|
this._renderingMode,
|
|
5834
5834
|
this._initialArgs,
|
|
5835
5835
|
e,
|
|
@@ -5845,7 +5845,7 @@
|
|
|
5845
5845
|
* Influences dependency graph construction.
|
|
5846
5846
|
*/
|
|
5847
5847
|
enriches(e) {
|
|
5848
|
-
return H("enrichmentTargets", e), new
|
|
5848
|
+
return H("enrichmentTargets", e), new E(
|
|
5849
5849
|
this._renderingMode,
|
|
5850
5850
|
this._initialArgs,
|
|
5851
5851
|
this._initialUiState,
|
|
@@ -5877,16 +5877,16 @@
|
|
|
5877
5877
|
sdkVersion: Y,
|
|
5878
5878
|
renderingMode: this._renderingMode,
|
|
5879
5879
|
initialArgs: this._initialArgs,
|
|
5880
|
-
inputsValid:
|
|
5881
|
-
sections:
|
|
5880
|
+
inputsValid: de(this._inputsValid),
|
|
5881
|
+
sections: de(this._sections),
|
|
5882
5882
|
outputs: Object.fromEntries(
|
|
5883
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
5883
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, de(r)])
|
|
5884
5884
|
)
|
|
5885
5885
|
};
|
|
5886
|
-
return
|
|
5886
|
+
return ht() ? De({ sdkVersion: Y }) : { config: e };
|
|
5887
5887
|
}
|
|
5888
5888
|
}
|
|
5889
|
-
const platforma =
|
|
5889
|
+
const platforma = E.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
5890
5890
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
5891
5891
|
}).title((ctx) => "Pool explorer").done();
|
|
5892
5892
|
exports2.platforma = platforma;
|