@malloydata/render 0.0.203-dev241021134413 → 0.0.203-dev241021171612
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/module/index.mjs +254 -244
- package/dist/module/index.umd.js +48 -48
- package/dist/register/register.mjs +3176 -3166
- package/dist/register/register.umd.js +80 -80
- package/dist/webcomponent/malloy-render.mjs +3176 -3166
- package/dist/webcomponent/malloy-render.umd.js +85 -85
- package/package.json +2 -2
package/dist/module/index.mjs
CHANGED
|
@@ -4881,14 +4881,14 @@ var rb = function() {
|
|
|
4881
4881
|
return rb;
|
|
4882
4882
|
}
|
|
4883
4883
|
}
|
|
4884
|
-
}() : rb, ux = _fe(), zfe = Tfe(),
|
|
4884
|
+
}() : rb, ux = _fe(), zfe = Tfe(), Gn = Object.getPrototypeOf || (zfe ? function(t) {
|
|
4885
4885
|
return t.__proto__;
|
|
4886
|
-
} : null), _x = {}, Qfe = typeof Uint8Array > "u" || !
|
|
4886
|
+
} : null), _x = {}, Qfe = typeof Uint8Array > "u" || !Gn ? mt : Gn(Uint8Array), Rc = {
|
|
4887
4887
|
__proto__: null,
|
|
4888
4888
|
"%AggregateError%": typeof AggregateError > "u" ? mt : AggregateError,
|
|
4889
4889
|
"%Array%": Array,
|
|
4890
4890
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? mt : ArrayBuffer,
|
|
4891
|
-
"%ArrayIteratorPrototype%": ux &&
|
|
4891
|
+
"%ArrayIteratorPrototype%": ux && Gn ? Gn([][Symbol.iterator]()) : mt,
|
|
4892
4892
|
"%AsyncFromSyncIteratorPrototype%": mt,
|
|
4893
4893
|
"%AsyncFunction%": _x,
|
|
4894
4894
|
"%AsyncGenerator%": _x,
|
|
@@ -4919,10 +4919,10 @@ var rb = function() {
|
|
|
4919
4919
|
"%Int32Array%": typeof Int32Array > "u" ? mt : Int32Array,
|
|
4920
4920
|
"%isFinite%": isFinite,
|
|
4921
4921
|
"%isNaN%": isNaN,
|
|
4922
|
-
"%IteratorPrototype%": ux &&
|
|
4922
|
+
"%IteratorPrototype%": ux && Gn ? Gn(Gn([][Symbol.iterator]())) : mt,
|
|
4923
4923
|
"%JSON%": typeof JSON == "object" ? JSON : mt,
|
|
4924
4924
|
"%Map%": typeof Map > "u" ? mt : Map,
|
|
4925
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !ux || !
|
|
4925
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ux || !Gn ? mt : Gn((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
4926
4926
|
"%Math%": Math,
|
|
4927
4927
|
"%Number%": Number,
|
|
4928
4928
|
"%Object%": Object,
|
|
@@ -4935,10 +4935,10 @@ var rb = function() {
|
|
|
4935
4935
|
"%Reflect%": typeof Reflect > "u" ? mt : Reflect,
|
|
4936
4936
|
"%RegExp%": RegExp,
|
|
4937
4937
|
"%Set%": typeof Set > "u" ? mt : Set,
|
|
4938
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !ux || !
|
|
4938
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ux || !Gn ? mt : Gn((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
4939
4939
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? mt : SharedArrayBuffer,
|
|
4940
4940
|
"%String%": String,
|
|
4941
|
-
"%StringIteratorPrototype%": ux &&
|
|
4941
|
+
"%StringIteratorPrototype%": ux && Gn ? Gn(""[Symbol.iterator]()) : mt,
|
|
4942
4942
|
"%Symbol%": ux ? Symbol : mt,
|
|
4943
4943
|
"%SyntaxError%": Kx,
|
|
4944
4944
|
"%ThrowTypeError%": Hfe,
|
|
@@ -4953,11 +4953,11 @@ var rb = function() {
|
|
|
4953
4953
|
"%WeakRef%": typeof WeakRef > "u" ? mt : WeakRef,
|
|
4954
4954
|
"%WeakSet%": typeof WeakSet > "u" ? mt : WeakSet
|
|
4955
4955
|
};
|
|
4956
|
-
if (
|
|
4956
|
+
if (Gn)
|
|
4957
4957
|
try {
|
|
4958
4958
|
null.error;
|
|
4959
4959
|
} catch (t) {
|
|
4960
|
-
var Gfe =
|
|
4960
|
+
var Gfe = Gn(Gn(t));
|
|
4961
4961
|
Rc["%Error.prototype%"] = Gfe;
|
|
4962
4962
|
}
|
|
4963
4963
|
var Wfe = function t(e) {
|
|
@@ -4973,7 +4973,7 @@ var Wfe = function t(e) {
|
|
|
4973
4973
|
r && (n = r.prototype);
|
|
4974
4974
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
4975
4975
|
var i = t("%AsyncGenerator%");
|
|
4976
|
-
i &&
|
|
4976
|
+
i && Gn && (n = Gn(i.prototype));
|
|
4977
4977
|
}
|
|
4978
4978
|
return Rc[e] = n, n;
|
|
4979
4979
|
}, sB = {
|
|
@@ -10285,7 +10285,7 @@ var Ru = D && D.__decorate || function(t, e, n, r) {
|
|
|
10285
10285
|
Object.defineProperty(h0, "__esModule", { value: !0 });
|
|
10286
10286
|
h0.Recognizer = void 0;
|
|
10287
10287
|
const bde = Ig, Rde = Zd, us = Ee, QB = zt, Ode = xn;
|
|
10288
|
-
class
|
|
10288
|
+
class kn {
|
|
10289
10289
|
constructor() {
|
|
10290
10290
|
this._listeners = [bde.ConsoleErrorListener.INSTANCE], this._stateNumber = -1;
|
|
10291
10291
|
}
|
|
@@ -10295,7 +10295,7 @@ class Bn {
|
|
|
10295
10295
|
* Used for XPath and tree pattern compilation.
|
|
10296
10296
|
*/
|
|
10297
10297
|
getTokenTypeMap() {
|
|
10298
|
-
let e = this.vocabulary, n =
|
|
10298
|
+
let e = this.vocabulary, n = kn.tokenTypeMapCache.get(e);
|
|
10299
10299
|
if (n == null) {
|
|
10300
10300
|
let r = /* @__PURE__ */ new Map();
|
|
10301
10301
|
for (let i = 0; i <= this.atn.maxTokenType; i++) {
|
|
@@ -10304,7 +10304,7 @@ class Bn {
|
|
|
10304
10304
|
let o = e.getSymbolicName(i);
|
|
10305
10305
|
o != null && r.set(o, i);
|
|
10306
10306
|
}
|
|
10307
|
-
r.set("EOF", QB.Token.EOF), n = r,
|
|
10307
|
+
r.set("EOF", QB.Token.EOF), n = r, kn.tokenTypeMapCache.set(e, n);
|
|
10308
10308
|
}
|
|
10309
10309
|
return n;
|
|
10310
10310
|
}
|
|
@@ -10317,8 +10317,8 @@ class Bn {
|
|
|
10317
10317
|
let e = this.ruleNames;
|
|
10318
10318
|
if (e == null)
|
|
10319
10319
|
throw new Error("The current recognizer does not provide a list of rule names.");
|
|
10320
|
-
let n =
|
|
10321
|
-
return n == null && (n = Ode.toMap(e),
|
|
10320
|
+
let n = kn.ruleIndexMapCache.get(e);
|
|
10321
|
+
return n == null && (n = Ode.toMap(e), kn.ruleIndexMapCache.set(e, n)), n;
|
|
10322
10322
|
}
|
|
10323
10323
|
getTokenType(e) {
|
|
10324
10324
|
let n = this.getTokenTypeMap().get(e);
|
|
@@ -10420,43 +10420,43 @@ class Bn {
|
|
|
10420
10420
|
this._stateNumber = e;
|
|
10421
10421
|
}
|
|
10422
10422
|
}
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10423
|
+
kn.EOF = -1;
|
|
10424
|
+
kn.tokenTypeMapCache = /* @__PURE__ */ new WeakMap();
|
|
10425
|
+
kn.ruleIndexMapCache = /* @__PURE__ */ new WeakMap();
|
|
10426
10426
|
Ru([
|
|
10427
10427
|
us.SuppressWarnings("serial"),
|
|
10428
10428
|
us.NotNull
|
|
10429
|
-
],
|
|
10429
|
+
], kn.prototype, "_listeners", void 0);
|
|
10430
10430
|
Ru([
|
|
10431
10431
|
us.NotNull
|
|
10432
|
-
],
|
|
10432
|
+
], kn.prototype, "getTokenTypeMap", null);
|
|
10433
10433
|
Ru([
|
|
10434
10434
|
us.NotNull
|
|
10435
|
-
],
|
|
10435
|
+
], kn.prototype, "getRuleIndexMap", null);
|
|
10436
10436
|
Ru([
|
|
10437
10437
|
us.NotNull
|
|
10438
|
-
],
|
|
10438
|
+
], kn.prototype, "serializedATN", null);
|
|
10439
10439
|
Ru([
|
|
10440
10440
|
us.NotNull
|
|
10441
|
-
],
|
|
10441
|
+
], kn.prototype, "atn", null);
|
|
10442
10442
|
Ru([
|
|
10443
10443
|
us.NotNull,
|
|
10444
10444
|
sS(0, us.NotNull)
|
|
10445
|
-
],
|
|
10445
|
+
], kn.prototype, "interpreter", null);
|
|
10446
10446
|
Ru([
|
|
10447
10447
|
us.NotNull,
|
|
10448
10448
|
sS(0, us.NotNull)
|
|
10449
|
-
],
|
|
10449
|
+
], kn.prototype, "getErrorHeader", null);
|
|
10450
10450
|
Ru([
|
|
10451
10451
|
sS(0, us.NotNull)
|
|
10452
|
-
],
|
|
10452
|
+
], kn.prototype, "addErrorListener", null);
|
|
10453
10453
|
Ru([
|
|
10454
10454
|
sS(0, us.NotNull)
|
|
10455
|
-
],
|
|
10455
|
+
], kn.prototype, "removeErrorListener", null);
|
|
10456
10456
|
Ru([
|
|
10457
10457
|
us.NotNull
|
|
10458
|
-
],
|
|
10459
|
-
h0.Recognizer =
|
|
10458
|
+
], kn.prototype, "getErrorListeners", null);
|
|
10459
|
+
h0.Recognizer = kn;
|
|
10460
10460
|
var ps = {};
|
|
10461
10461
|
/*!
|
|
10462
10462
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -16573,8 +16573,8 @@ function lh() {
|
|
|
16573
16573
|
)));
|
|
16574
16574
|
let ye = Qe.toInt(L[H++]);
|
|
16575
16575
|
for (let G = 0; G < ye; G++) {
|
|
16576
|
-
let ce = Qe.toInt(L[H]), Ne = Qe.toInt(L[H + 1]), He = Qe.toInt(L[H + 2]), tt = Qe.toInt(L[H + 3]), gt = Qe.toInt(L[H + 4]), nt = Qe.toInt(L[H + 5]),
|
|
16577
|
-
ue.states[ce].addTransition(
|
|
16576
|
+
let ce = Qe.toInt(L[H]), Ne = Qe.toInt(L[H + 1]), He = Qe.toInt(L[H + 2]), tt = Qe.toInt(L[H + 3]), gt = Qe.toInt(L[H + 4]), nt = Qe.toInt(L[H + 5]), Qn = this.edgeFactory(ue, He, ce, Ne, tt, gt, nt, we);
|
|
16577
|
+
ue.states[ce].addTransition(Qn), H += 6;
|
|
16578
16578
|
}
|
|
16579
16579
|
let K = new r.Array2DHashSet({
|
|
16580
16580
|
hashCode: (G) => G.stopState ^ G.returnState ^ G.outermostPrecedenceReturn,
|
|
@@ -16591,8 +16591,8 @@ function lh() {
|
|
|
16591
16591
|
continue;
|
|
16592
16592
|
let nt = -1;
|
|
16593
16593
|
ue.ruleToStartState[tt.target.ruleIndex].isPrecedenceRule && tt.precedence === 0 && (nt = tt.target.ruleIndex);
|
|
16594
|
-
let
|
|
16595
|
-
K.add(
|
|
16594
|
+
let Qn = { stopState: tt.target.ruleIndex, returnState: tt.followState.stateNumber, outermostPrecedenceReturn: nt };
|
|
16595
|
+
K.add(Qn) && te.push(Qn);
|
|
16596
16596
|
}
|
|
16597
16597
|
}
|
|
16598
16598
|
for (let G of te) {
|
|
@@ -16667,8 +16667,8 @@ function lh() {
|
|
|
16667
16667
|
for (let nt of ue.states) {
|
|
16668
16668
|
if (nt.ruleIndex !== G || !(nt instanceof M.StarLoopEntryState))
|
|
16669
16669
|
continue;
|
|
16670
|
-
let
|
|
16671
|
-
if (
|
|
16670
|
+
let Qn = nt.transition(nt.numberOfTransitions - 1).target;
|
|
16671
|
+
if (Qn instanceof O.LoopEndState && Qn.epsilonOnlyTransitions && Qn.transition(0).target instanceof ae.RuleStopState) {
|
|
16672
16672
|
He = nt;
|
|
16673
16673
|
break;
|
|
16674
16674
|
}
|
|
@@ -16679,8 +16679,8 @@ function lh() {
|
|
|
16679
16679
|
} else
|
|
16680
16680
|
He = ue.ruleToStopState[G];
|
|
16681
16681
|
for (let nt of ue.states)
|
|
16682
|
-
for (let
|
|
16683
|
-
let sl = nt.transition(
|
|
16682
|
+
for (let Qn = 0; Qn < nt.numberOfTransitions; Qn++) {
|
|
16683
|
+
let sl = nt.transition(Qn);
|
|
16684
16684
|
sl !== tt && sl.target === He && (sl.target = Ne);
|
|
16685
16685
|
}
|
|
16686
16686
|
for (; ue.ruleToStartState[G].numberOfTransitions > 0; ) {
|
|
@@ -24627,7 +24627,7 @@ class qo {
|
|
|
24627
24627
|
if (n.fieldUsage.type === "result") {
|
|
24628
24628
|
if (cr(n.f))
|
|
24629
24629
|
return "nested";
|
|
24630
|
-
n.f instanceof
|
|
24630
|
+
n.f instanceof $n && (e = "inline");
|
|
24631
24631
|
}
|
|
24632
24632
|
return e;
|
|
24633
24633
|
}
|
|
@@ -24795,7 +24795,7 @@ class SW extends YE {
|
|
|
24795
24795
|
}
|
|
24796
24796
|
class u1e {
|
|
24797
24797
|
static nextStructDef(e, n) {
|
|
24798
|
-
const r = new
|
|
24798
|
+
const r = new $n(e, void 0, {
|
|
24799
24799
|
model: new _W(void 0)
|
|
24800
24800
|
}, {}), i = {
|
|
24801
24801
|
type: "turtle",
|
|
@@ -24819,7 +24819,7 @@ class Fs extends YE {
|
|
|
24819
24819
|
static makeQuery(e, n, r = void 0, i) {
|
|
24820
24820
|
let s = n, o = n.applyStructFiltersToTurtleDef(e);
|
|
24821
24821
|
const u = o.pipeline[0], a = n.structDef;
|
|
24822
|
-
switch (r !== void 0 && (0, ke.isQuerySegment)(u) && u.extendSource !== void 0 && (s = new
|
|
24822
|
+
switch (r !== void 0 && (0, ke.isQuerySegment)(u) && u.extendSource !== void 0 && (s = new $n({
|
|
24823
24823
|
...a,
|
|
24824
24824
|
fields: [...a.fields, ...u.extendSource]
|
|
24825
24825
|
}, n.sourceArguments, s.parent ? { struct: s } : { model: s.model }, s.prepareResultOptions), o = {
|
|
@@ -24857,7 +24857,7 @@ class Fs extends YE {
|
|
|
24857
24857
|
let u;
|
|
24858
24858
|
if (o instanceof YE)
|
|
24859
24859
|
u = o.parent;
|
|
24860
|
-
else if (o instanceof
|
|
24860
|
+
else if (o instanceof $n)
|
|
24861
24861
|
u = o;
|
|
24862
24862
|
else
|
|
24863
24863
|
throw new Error("Internal Error: Unknown object type");
|
|
@@ -24935,7 +24935,18 @@ class Fs extends YE {
|
|
|
24935
24935
|
return r;
|
|
24936
24936
|
}
|
|
24937
24937
|
prepare(e) {
|
|
24938
|
-
this.prepared || (this.expandFields(this.rootResult), this.rootResult.addStructToJoin(this.parent, this, void 0, []), this.rootResult.findJoins(this), this.rootResult.calculateSymmetricAggregates(), this.prepared = !0);
|
|
24938
|
+
this.prepared || (this.expandFields(this.rootResult), this.rootResult.addStructToJoin(this.parent, this, void 0, []), this.rootResult.findJoins(this), this.addAlwaysJoins(this.rootResult), this.rootResult.calculateSymmetricAggregates(), this.prepared = !0);
|
|
24939
|
+
}
|
|
24940
|
+
addAlwaysJoins(e) {
|
|
24941
|
+
var n;
|
|
24942
|
+
const r = this.fieldDef.pipeline[0];
|
|
24943
|
+
if (r.type !== "raw") {
|
|
24944
|
+
const i = (n = r.alwaysJoins) !== null && n !== void 0 ? n : [];
|
|
24945
|
+
for (const s of i) {
|
|
24946
|
+
const o = this.parent.getChildByName(s);
|
|
24947
|
+
o instanceof $n && e.addStructToJoin(o, this, void 0, []);
|
|
24948
|
+
}
|
|
24949
|
+
}
|
|
24939
24950
|
}
|
|
24940
24951
|
// get the source fieldname and filters associated with the field (so we can drill later)
|
|
24941
24952
|
getResultMetadata(e) {
|
|
@@ -25456,7 +25467,7 @@ FROM ${n}
|
|
|
25456
25467
|
fields: i.fields,
|
|
25457
25468
|
connection: i.connection,
|
|
25458
25469
|
dialect: i.dialect
|
|
25459
|
-
}, f = new
|
|
25470
|
+
}, f = new $n(c, void 0, { model: this.parent.getModel() }, this.parent.prepareResultOptions);
|
|
25460
25471
|
u = Fs.makeQuery(l, f, n, this.isJoinedSubquery).generateSQLFromPipeline(n), i = u.outputStruct;
|
|
25461
25472
|
}
|
|
25462
25473
|
return i.annotation = e.turtleDef.annotation, {
|
|
@@ -25489,7 +25500,7 @@ FROM ${n}
|
|
|
25489
25500
|
};
|
|
25490
25501
|
i.shift();
|
|
25491
25502
|
for (const o of i) {
|
|
25492
|
-
const u = new
|
|
25503
|
+
const u = new $n(s, void 0, {
|
|
25493
25504
|
model: this.parent.getModel()
|
|
25494
25505
|
}, this.parent.prepareResultOptions), a = Fs.makeQuery({ type: "turtle", name: "~computeLastStage~", pipeline: [o] }, u, e, this.isJoinedSubquery);
|
|
25495
25506
|
a.prepare(e), n = a.generateSQL(e), r = a.getResultStructDef(), s = {
|
|
@@ -25629,7 +25640,7 @@ class x1e extends Fs {
|
|
|
25629
25640
|
const i = EW(r.path.slice(0, r.path.length - 1)), s = n[i];
|
|
25630
25641
|
if (s === void 0) {
|
|
25631
25642
|
const o = this.parent.nameMap.get(r.path[0]);
|
|
25632
|
-
if (o instanceof
|
|
25643
|
+
if (o instanceof $n && (0, ke.isJoined)(o.structDef) && o.structDef.join === "many" && o.structDef.fields.length > 1) {
|
|
25633
25644
|
const u = [r];
|
|
25634
25645
|
n[i] = u, this.stages.push(u);
|
|
25635
25646
|
continue;
|
|
@@ -25686,7 +25697,7 @@ class x1e extends Fs {
|
|
|
25686
25697
|
return this.parent.structDef.modelAnnotation && (e.modelAnnotation = this.parent.structDef.modelAnnotation), e;
|
|
25687
25698
|
}
|
|
25688
25699
|
}
|
|
25689
|
-
class
|
|
25700
|
+
class $n extends AW {
|
|
25690
25701
|
constructor(e, n, r, i, s) {
|
|
25691
25702
|
if (super(s), this.structDef = e, this.sourceArguments = n, this.prepareResultOptions = i, this.nameMap = /* @__PURE__ */ new Map(), this._arguments = void 0, this.setParent(r), "model" in r)
|
|
25692
25703
|
if (this.model = r.model, this.pathAliasMap = /* @__PURE__ */ new Map(), (0, ke.isSourceDef)(e))
|
|
@@ -25746,7 +25757,7 @@ class Vn extends AW {
|
|
|
25746
25757
|
addFieldsFromFieldList(e) {
|
|
25747
25758
|
for (const n of e) {
|
|
25748
25759
|
const r = (0, ke.getIdentifier)(n);
|
|
25749
|
-
(0, ke.isJoined)(n) ? this.addFieldToNameMap(r, new
|
|
25760
|
+
(0, ke.isJoined)(n) ? this.addFieldToNameMap(r, new $n(n, void 0, { struct: this }, this.prepareResultOptions)) : n.type === "turtle" ? this.addFieldToNameMap(r, Fs.makeQuery(n, this, void 0, !1)) : this.addFieldToNameMap(r, this.makeQueryField(n));
|
|
25750
25761
|
}
|
|
25751
25762
|
this.nameMap.has("__distinct_key") || this.addFieldToNameMap("__distinct_key", new i1e({ type: "string", name: "__distinct_key" }, this));
|
|
25752
25763
|
}
|
|
@@ -25824,7 +25835,7 @@ class Vn extends AW {
|
|
|
25824
25835
|
this.structDef = n, !this.structDef.primaryKey && e.primaryKey && (this.structDef.primaryKey = e.primaryKey);
|
|
25825
25836
|
}
|
|
25826
25837
|
for (const [, e] of this.nameMap)
|
|
25827
|
-
e instanceof
|
|
25838
|
+
e instanceof $n && e.resolveQueryFields();
|
|
25828
25839
|
}
|
|
25829
25840
|
getModel() {
|
|
25830
25841
|
if (this.model)
|
|
@@ -25908,7 +25919,7 @@ class Vn extends AW {
|
|
|
25908
25919
|
// structs referenced in queries are converted to fields.
|
|
25909
25920
|
getQueryFieldByName(e) {
|
|
25910
25921
|
const n = this.getFieldByName(e);
|
|
25911
|
-
if (n instanceof
|
|
25922
|
+
if (n instanceof $n)
|
|
25912
25923
|
throw new Error(`Cannot reference ${e.join(".")} as a scalar'`);
|
|
25913
25924
|
return n;
|
|
25914
25925
|
}
|
|
@@ -25917,9 +25928,9 @@ class Vn extends AW {
|
|
|
25917
25928
|
if (n) {
|
|
25918
25929
|
if (r.parent === void 0)
|
|
25919
25930
|
throw new Error("Unexpected reference to orphaned query field");
|
|
25920
|
-
if (r instanceof
|
|
25931
|
+
if (r instanceof $n) {
|
|
25921
25932
|
const i = { ...r.structDef, annotation: n };
|
|
25922
|
-
return new
|
|
25933
|
+
return new $n(i, void 0, r.parent, {}, r.referenceId);
|
|
25923
25934
|
} else {
|
|
25924
25935
|
const i = { ...r.fieldDef, annotation: n };
|
|
25925
25936
|
return r.parent.makeQueryField(i, r.referenceId);
|
|
@@ -25943,7 +25954,7 @@ class Vn extends AW {
|
|
|
25943
25954
|
/** returns a query object for the given name */
|
|
25944
25955
|
getStructByName(e) {
|
|
25945
25956
|
const n = this.getFieldByName(e);
|
|
25946
|
-
if (n instanceof
|
|
25957
|
+
if (n instanceof $n)
|
|
25947
25958
|
return n;
|
|
25948
25959
|
throw new Error(`Error: Path to structure not found '${e.join(".")}'`);
|
|
25949
25960
|
}
|
|
@@ -25975,7 +25986,7 @@ class _W {
|
|
|
25975
25986
|
for (const n of Object.values(this.modelDef.contents)) {
|
|
25976
25987
|
let r;
|
|
25977
25988
|
if ((0, ke.isSourceDef)(n))
|
|
25978
|
-
r = new
|
|
25989
|
+
r = new $n(n, void 0, { model: this }, {}), this.structs.set((0, ke.getIdentifier)(n), r), r.resolveQueryFields();
|
|
25979
25990
|
else if (n.type !== "query")
|
|
25980
25991
|
throw new Error("Internal Error: Unknown structure type");
|
|
25981
25992
|
}
|
|
@@ -25990,9 +26001,9 @@ class _W {
|
|
|
25990
26001
|
var i;
|
|
25991
26002
|
if (r ?? (r = {}), typeof e == "string") {
|
|
25992
26003
|
const s = this.getStructByName(e);
|
|
25993
|
-
return n !== void 0 ? new
|
|
26004
|
+
return n !== void 0 ? new $n(s.structDef, n, (i = s.parent) !== null && i !== void 0 ? i : { model: this }, r) : s;
|
|
25994
26005
|
}
|
|
25995
|
-
return new
|
|
26006
|
+
return new $n(e, n, { model: this }, r);
|
|
25996
26007
|
}
|
|
25997
26008
|
loadQuery(e, n, r, i = !1, s = !1) {
|
|
25998
26009
|
const o = "";
|
|
@@ -26041,7 +26052,7 @@ class _W {
|
|
|
26041
26052
|
const o = this.getStructByName(n);
|
|
26042
26053
|
let u = [];
|
|
26043
26054
|
for (const [y, E] of o.nameMap)
|
|
26044
|
-
E instanceof
|
|
26055
|
+
E instanceof $n || cr(E) && E.includeInWildcard() && u.push({ type: "fieldref", path: [y] });
|
|
26045
26056
|
u = u.sort((y, E) => y.path[0].localeCompare(E.path[0]));
|
|
26046
26057
|
const a = {
|
|
26047
26058
|
structRef: n,
|
|
@@ -39424,7 +39435,7 @@ class Fme extends bme.DefinitionList {
|
|
|
39424
39435
|
}
|
|
39425
39436
|
queryExecute(e) {
|
|
39426
39437
|
for (const n of this.list)
|
|
39427
|
-
e.inputFS.extendSource(n);
|
|
39438
|
+
e.inputFS.extendSource(n), e.alwaysJoins.push(n.name.refString);
|
|
39428
39439
|
}
|
|
39429
39440
|
}
|
|
39430
39441
|
bi.JoinStatement = Fme;
|
|
@@ -42470,7 +42481,7 @@ class mve extends gve.ExpressionDef {
|
|
|
42470
42481
|
}
|
|
42471
42482
|
}
|
|
42472
42483
|
n5.ForRange = mve;
|
|
42473
|
-
var
|
|
42484
|
+
var Wn = {};
|
|
42474
42485
|
class qf extends Error {
|
|
42475
42486
|
}
|
|
42476
42487
|
class yve extends qf {
|
|
@@ -47252,12 +47263,12 @@ const gSe = "2.5.2", mSe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
47252
47263
|
VERSION: gSe,
|
|
47253
47264
|
Zone: Ih
|
|
47254
47265
|
}, Symbol.toStringTag, { value: "Module" })), IJ = /* @__PURE__ */ Kz(mSe);
|
|
47255
|
-
Object.defineProperty(
|
|
47256
|
-
|
|
47266
|
+
Object.defineProperty(Wn, "__esModule", { value: !0 });
|
|
47267
|
+
Wn.LiteralYear = Wn.LiteralQuarter = Wn.LiteralMonth = Wn.LiteralWeek = Wn.LiteralDay = Wn.LiteralHour = Wn.LiteralTimestamp = Wn.TimeFormatError = void 0;
|
|
47257
47268
|
const Ql = IJ, ySe = oe, ESe = C0, cM = Nh, vO = ut;
|
|
47258
47269
|
class ASe extends Error {
|
|
47259
47270
|
}
|
|
47260
|
-
|
|
47271
|
+
Wn.TimeFormatError = ASe;
|
|
47261
47272
|
function Hf(t, e) {
|
|
47262
47273
|
const n = t.slice(1);
|
|
47263
47274
|
if (e) {
|
|
@@ -47324,7 +47335,7 @@ class Cw extends MJ {
|
|
|
47324
47335
|
}
|
|
47325
47336
|
}
|
|
47326
47337
|
}
|
|
47327
|
-
|
|
47338
|
+
Wn.LiteralTimestamp = Cw;
|
|
47328
47339
|
class Tw extends MJ {
|
|
47329
47340
|
constructor(e, n, r, i) {
|
|
47330
47341
|
super(e, n, r), this.nextLit = i, this.elementType = "granularTimeLiteral";
|
|
@@ -47360,7 +47371,7 @@ class bw extends Tw {
|
|
|
47360
47371
|
return n.text = n.text + ":00:00", r = i.plus({ hour: 1 }).toFormat(SO), new bw(n, r);
|
|
47361
47372
|
}
|
|
47362
47373
|
}
|
|
47363
|
-
|
|
47374
|
+
Wn.LiteralHour = bw;
|
|
47364
47375
|
class Pm extends Tw {
|
|
47365
47376
|
constructor(e, n, r) {
|
|
47366
47377
|
super(e, n, "date", r);
|
|
@@ -47386,7 +47397,7 @@ class Rw extends Pm {
|
|
|
47386
47397
|
return r = i.plus({ day: 1 }).toFormat(Ls), new Rw(n, r);
|
|
47387
47398
|
}
|
|
47388
47399
|
}
|
|
47389
|
-
|
|
47400
|
+
Wn.LiteralDay = Rw;
|
|
47390
47401
|
class Ow extends Pm {
|
|
47391
47402
|
constructor(e, n) {
|
|
47392
47403
|
super(e, "week", n), this.elementType = "literal:week";
|
|
@@ -47401,7 +47412,7 @@ class Ow extends Pm {
|
|
|
47401
47412
|
}
|
|
47402
47413
|
}
|
|
47403
47414
|
}
|
|
47404
|
-
|
|
47415
|
+
Wn.LiteralWeek = Ow;
|
|
47405
47416
|
class Dw extends Pm {
|
|
47406
47417
|
constructor(e, n) {
|
|
47407
47418
|
super(e, "month", n), this.elementType = "literal:month";
|
|
@@ -47416,7 +47427,7 @@ class Dw extends Pm {
|
|
|
47416
47427
|
}
|
|
47417
47428
|
}
|
|
47418
47429
|
}
|
|
47419
|
-
|
|
47430
|
+
Wn.LiteralMonth = Dw;
|
|
47420
47431
|
class Nw extends Pm {
|
|
47421
47432
|
constructor(e, n) {
|
|
47422
47433
|
super(e, "quarter", n), this.elementType = "literal:quarter";
|
|
@@ -47434,7 +47445,7 @@ class Nw extends Pm {
|
|
|
47434
47445
|
}
|
|
47435
47446
|
}
|
|
47436
47447
|
}
|
|
47437
|
-
|
|
47448
|
+
Wn.LiteralQuarter = Nw;
|
|
47438
47449
|
class ww extends Pm {
|
|
47439
47450
|
constructor(e, n) {
|
|
47440
47451
|
super(e, "year", n), this.elementType = "literal:year";
|
|
@@ -47449,7 +47460,7 @@ class ww extends Pm {
|
|
|
47449
47460
|
}
|
|
47450
47461
|
}
|
|
47451
47462
|
}
|
|
47452
|
-
|
|
47463
|
+
Wn.LiteralYear = ww;
|
|
47453
47464
|
var u5 = {};
|
|
47454
47465
|
Object.defineProperty(u5, "__esModule", { value: !0 });
|
|
47455
47466
|
u5.PartialCompare = void 0;
|
|
@@ -48126,7 +48137,7 @@ m5.IndexBuilder = void 0;
|
|
|
48126
48137
|
const s6 = oe, T_e = zr, b_e = ho, R_e = Um, O_e = b0, D_e = qm, N_e = y5;
|
|
48127
48138
|
class w_e {
|
|
48128
48139
|
constructor(e, n, r, i) {
|
|
48129
|
-
this.filters = [], this.type = "index", this.resultFS = new N_e.IndexFieldSpace(e, n, r, i), this.inputFS = this.resultFS.inputSpace();
|
|
48140
|
+
this.filters = [], this.alwaysJoins = [], this.type = "index", this.resultFS = new N_e.IndexFieldSpace(e, n, r, i), this.inputFS = this.resultFS.inputSpace();
|
|
48130
48141
|
}
|
|
48131
48142
|
execute(e) {
|
|
48132
48143
|
e instanceof b_e.Filter ? this.filters.push(...e.getFilterList(this.inputFS)) : e instanceof O_e.Limit ? (this.limit && this.limit.logError("index-limit-already-specified", "Ignored, too many limit: statements"), this.limit = e) : e instanceof R_e.Index ? (this.resultFS.pushFields(...e.fields.list), e.weightBy && (this.indexOn && this.indexOn.logError("index-by-already-specified", "Ignoring previous BY"), this.indexOn = e.weightBy)) : e instanceof D_e.SampleProperty ? this.sample = e.sampling() : e.logError("illegal-operation-for-index", "Not legal in an index query operation");
|
|
@@ -48135,7 +48146,7 @@ class w_e {
|
|
|
48135
48146
|
if (e && !(0, s6.isIndexSegment)(e) && !(0, s6.isPartialSegment)(e))
|
|
48136
48147
|
return this.resultFS.logError("refinement-of-index-segment", `Can't refine index with ${e.type}`), T_e.ErrorFactory.indexSegment;
|
|
48137
48148
|
const n = this.resultFS.getPipeSegment(e), r = (e == null ? void 0 : e.filterList) || [];
|
|
48138
|
-
return this.filters.length > 0 && !r ? n.filterList = this.filters : r && (n.filterList = [...r, ...this.filters]), e != null && e.limit && (n.limit = e.limit), this.limit && (n.limit = this.limit.limit), this.indexOn && (n.weightMeasure = this.indexOn.refString), e && (0, s6.isIndexSegment)(e) && (e != null && e.sample) && (n.sample = e.sample), this.sample && (n.sample = this.sample), n;
|
|
48149
|
+
return this.filters.length > 0 && !r ? n.filterList = this.filters : r && (n.filterList = [...r, ...this.filters]), e != null && e.limit && (n.limit = e.limit), this.limit && (n.limit = this.limit.limit), this.indexOn && (n.weightMeasure = this.indexOn.refString), e && (0, s6.isIndexSegment)(e) && (e != null && e.sample) && (n.sample = e.sample), this.sample && (n.sample = this.sample), this.alwaysJoins.length > 0 && (n.alwaysJoins = [...this.alwaysJoins]), n;
|
|
48139
48150
|
}
|
|
48140
48151
|
}
|
|
48141
48152
|
m5.IndexBuilder = w_e;
|
|
@@ -48222,7 +48233,7 @@ Gl.ReduceBuilder = Gl.QuerySegmentBuilder = void 0;
|
|
|
48222
48233
|
const SM = oe, z_e = zr, Q_e = ho, G_e = b0, _M = tf, CM = zm, W_e = ao, V_e = ms;
|
|
48223
48234
|
class UJ {
|
|
48224
48235
|
constructor() {
|
|
48225
|
-
this.filters = [];
|
|
48236
|
+
this.alwaysJoins = [], this.filters = [];
|
|
48226
48237
|
}
|
|
48227
48238
|
execute(e) {
|
|
48228
48239
|
if (e.queryExecute) {
|
|
@@ -48244,7 +48255,7 @@ class UJ {
|
|
|
48244
48255
|
}
|
|
48245
48256
|
this.order instanceof _M.Ordering && (n.orderBy = this.order.getOrderBy(this.inputFS));
|
|
48246
48257
|
const r = (e == null ? void 0 : e.filterList) || [];
|
|
48247
|
-
this.filters.length > 0 && !r ? n.filterList = this.filters : r && (n.filterList = [...r, ...this.filters]);
|
|
48258
|
+
this.filters.length > 0 && !r ? n.filterList = this.filters : r && (n.filterList = [...r, ...this.filters]), this.alwaysJoins.length > 0 && (n.alwaysJoins = [...this.alwaysJoins]);
|
|
48248
48259
|
}
|
|
48249
48260
|
}
|
|
48250
48261
|
Gl.QuerySegmentBuilder = UJ;
|
|
@@ -48919,7 +48930,7 @@ L5.isFieldPropStatement = TCe;
|
|
|
48919
48930
|
for (var s in r)
|
|
48920
48931
|
s !== "default" && !Object.prototype.hasOwnProperty.call(i, s) && e(i, r, s);
|
|
48921
48932
|
};
|
|
48922
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), n(M1, t), n(fd, t), n(xd, t), n(Oo, t), n(Am, t), n(ku, t), n(C_, t), n(T_, t), n(R_, t), n(Cm, t), n(D_, t), n(Sh, t), n(_h, t), n(Hl, t), n(Ch, t), n(Th, t), n(N_, t), n(wh, t), n(w_, t), n(zl, t), n(F_, t), n(Ga, t), n(L_, t), n(Fh, t), n(I_, t), n($_, t), n(B_, t), n(ma, t), n(k_, t), n(P_, t), n(M_, t), n(Lm, t), n(wm, t), n(jf, t), n(j_, t), n(U_, t), n(q_, t), n(H_, t), n(z_, t), n(Q_, t), n(G_, t), n(W_, t), n(V_, t), n(Y_, t), n(J_, t), n(X_, t), n(K_, t), n(Z_, t), n(e5, t), n(n5, t), n(
|
|
48933
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), n(M1, t), n(fd, t), n(xd, t), n(Oo, t), n(Am, t), n(ku, t), n(C_, t), n(T_, t), n(R_, t), n(Cm, t), n(D_, t), n(Sh, t), n(_h, t), n(Hl, t), n(Ch, t), n(Th, t), n(N_, t), n(wh, t), n(w_, t), n(zl, t), n(F_, t), n(Ga, t), n(L_, t), n(Fh, t), n(I_, t), n($_, t), n(B_, t), n(ma, t), n(k_, t), n(P_, t), n(M_, t), n(Lm, t), n(wm, t), n(jf, t), n(j_, t), n(U_, t), n(q_, t), n(H_, t), n(z_, t), n(Q_, t), n(G_, t), n(W_, t), n(V_, t), n(Y_, t), n(J_, t), n(X_, t), n(K_, t), n(Z_, t), n(e5, t), n(n5, t), n(Wn, t), n(u5, t), n(Lh, t), n(hd, t), n(pd, t), n(gd, t), n(C0, t), n(a5, t), n(l5, t), n(Im, t), n(Nl, t), n(q1, t), n(c5, t), n(f5, t), n(x5, t), n(Rh, t), n(bh, t), n(O0, t), n(d5, t), n(h5, t), n(p5, t), n(g5, t), n(ln, t), n(ht, t), n(S5, t), n(_5, t), n(_0, t), n(Qm, t), n(q1, t), n(ho, t), n(Hm, t), n(Um, t), n(bi, t), n(ym, t), n(b0, t), n(Gm, t), n(M1, t), n(C5, t), n(tf, t), n(T5, t), n(jm, t), n(qm, t), n(zm, t), n(Oh, t), n(Mf, t), n(Dm, t), n(wl, t), n(b5, t), n(ql, t), n(uo, t), n(R5, t), n(O5, t), n(ut, t), n(D5, t), n(R0, t), n(We, t), n(N5, t), n(VJ, t), n(w5, t), n(F5, t), n(L5, t);
|
|
48923
48934
|
})(m_);
|
|
48924
48935
|
var I5 = {}, md = {};
|
|
48925
48936
|
Object.defineProperty(md, "__esModule", { value: !0 });
|
|
@@ -49241,8 +49252,7 @@ class BCe extends wCe.AbstractParseTreeVisitor {
|
|
|
49241
49252
|
return i ? { joinFrom: this.astAt(new Z.SQReference(r, this.getSQArguments(i)), e), notes: [], joinAs: r } : { joinAs: r, joinFrom: new Z.SQReference(r), notes: [] };
|
|
49242
49253
|
}
|
|
49243
49254
|
visitQueryJoinStatement(e) {
|
|
49244
|
-
|
|
49245
|
-
return this.m4advisory(e, "join-statement-in-view", "Joins in queries are deprecated, move into an `extend:` block."), n;
|
|
49255
|
+
return this.astAt(this.visit(e.joinStatement()), e);
|
|
49246
49256
|
}
|
|
49247
49257
|
visitJoinOn(e) {
|
|
49248
49258
|
var n;
|
|
@@ -54877,8 +54887,8 @@ var YX = { exports: {} };
|
|
|
54877
54887
|
return G = h(te, 0), K.length <= G.length ? G : ue(K.substr(0, K.length - G.length)) + G;
|
|
54878
54888
|
if (ce = K.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
54879
54889
|
G = "" + te.toFixed(Math.min(ce[2].length, 10)).replace(/([^0])0+$/, "$1"), Ne = G.indexOf(".");
|
|
54880
|
-
var
|
|
54881
|
-
return ue(K.substr(0,
|
|
54890
|
+
var Qn = K.indexOf(".") - Ne, sl = K.length - G.length - Qn;
|
|
54891
|
+
return ue(K.substr(0, Qn) + G + K.substr(K.length - sl));
|
|
54882
54892
|
}
|
|
54883
54893
|
if (ce = K.match(/^00,000\.([#0]*0)$/))
|
|
54884
54894
|
return Ne = st(te, ce[1].length), te < 0 ? "-" + re(ye, K, -te) : ge(X(te)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(zi) {
|
|
@@ -54978,8 +54988,8 @@ var YX = { exports: {} };
|
|
|
54978
54988
|
return G = "" + te, K.length <= G.length ? G : ue(K.substr(0, K.length - G.length)) + G;
|
|
54979
54989
|
if (ce = K.match(/^([#0]+)\.([#0]+)$/)) {
|
|
54980
54990
|
G = "" + te.toFixed(Math.min(ce[2].length, 10)).replace(/([^0])0+$/, "$1"), Ne = G.indexOf(".");
|
|
54981
|
-
var
|
|
54982
|
-
return ue(K.substr(0,
|
|
54991
|
+
var Qn = K.indexOf(".") - Ne, sl = K.length - G.length - Qn;
|
|
54992
|
+
return ue(K.substr(0, Qn) + G + K.substr(K.length - sl));
|
|
54983
54993
|
}
|
|
54984
54994
|
if (ce = K.match(/^00,000\.([#0]*0)$/))
|
|
54985
54995
|
return te < 0 ? "-" + we(ye, K, -te) : ge("" + te).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(zi) {
|
|
@@ -108205,7 +108215,7 @@ function EK(t) {
|
|
|
108205
108215
|
function J1(t) {
|
|
108206
108216
|
return t ? Wa(t).length : 0;
|
|
108207
108217
|
}
|
|
108208
|
-
function
|
|
108218
|
+
function jn(...t) {
|
|
108209
108219
|
for (const e of t)
|
|
108210
108220
|
if (e !== void 0)
|
|
108211
108221
|
return e;
|
|
@@ -108903,7 +108913,7 @@ function Bt(t, e, n, r = {}) {
|
|
|
108903
108913
|
return i && e[i] !== void 0 ? e[i] : e[t] !== void 0 ? e[t] : s && (!i || i === t) ? void 0 : of(t, e, n, r);
|
|
108904
108914
|
}
|
|
108905
108915
|
function of(t, e, n, { vgChannel: r } = {}) {
|
|
108906
|
-
return
|
|
108916
|
+
return jn(
|
|
108907
108917
|
// style config has highest precedence
|
|
108908
108918
|
r ? DA(t, e, n.style) : void 0,
|
|
108909
108919
|
DA(t, e, n.style),
|
|
@@ -110217,7 +110227,7 @@ function yZ(t, e) {
|
|
|
110217
110227
|
return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, _d(e) - _d(t)) + 1;
|
|
110218
110228
|
}
|
|
110219
110229
|
const v6 = /* @__PURE__ */ new Date(), S6 = /* @__PURE__ */ new Date();
|
|
110220
|
-
function
|
|
110230
|
+
function qn(t, e, n, r) {
|
|
110221
110231
|
function i(s) {
|
|
110222
110232
|
return t(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
|
|
110223
110233
|
}
|
|
@@ -110233,7 +110243,7 @@ function Un(t, e, n, r) {
|
|
|
110233
110243
|
a.push(l = /* @__PURE__ */ new Date(+s)), e(s, u), t(s);
|
|
110234
110244
|
while (l < s && s < o);
|
|
110235
110245
|
return a;
|
|
110236
|
-
}, i.filter = (s) =>
|
|
110246
|
+
}, i.filter = (s) => qn((o) => {
|
|
110237
110247
|
if (o >= o)
|
|
110238
110248
|
for (; t(o), !s(o); )
|
|
110239
110249
|
o.setTime(o - 1);
|
|
@@ -110249,67 +110259,67 @@ function Un(t, e, n, r) {
|
|
|
110249
110259
|
;
|
|
110250
110260
|
}), n && (i.count = (s, o) => (v6.setTime(+s), S6.setTime(+o), t(v6), t(S6), Math.floor(n(v6, S6))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(r ? (o) => r(o) % s === 0 : (o) => i.count(0, o) % s === 0) : i)), i;
|
|
110251
110261
|
}
|
|
110252
|
-
const Cd =
|
|
110262
|
+
const Cd = qn(() => {
|
|
110253
110263
|
}, (t, e) => {
|
|
110254
110264
|
t.setTime(+t + e);
|
|
110255
110265
|
}, (t, e) => e - t);
|
|
110256
|
-
Cd.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ?
|
|
110266
|
+
Cd.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? qn((e) => {
|
|
110257
110267
|
e.setTime(Math.floor(e / t) * t);
|
|
110258
110268
|
}, (e, n) => {
|
|
110259
110269
|
e.setTime(+e + n * t);
|
|
110260
110270
|
}, (e, n) => (n - e) / t) : Cd);
|
|
110261
110271
|
Cd.range;
|
|
110262
|
-
const ca = 1e3, Os = ca * 60, fa = Os * 60, La = fa * 24, TF = La * 7, Cj = La * 30, _6 = La * 365, xa =
|
|
110272
|
+
const ca = 1e3, Os = ca * 60, fa = Os * 60, La = fa * 24, TF = La * 7, Cj = La * 30, _6 = La * 365, xa = qn((t) => {
|
|
110263
110273
|
t.setTime(t - t.getMilliseconds());
|
|
110264
110274
|
}, (t, e) => {
|
|
110265
110275
|
t.setTime(+t + e * ca);
|
|
110266
110276
|
}, (t, e) => (e - t) / ca, (t) => t.getUTCSeconds());
|
|
110267
110277
|
xa.range;
|
|
110268
|
-
const xC =
|
|
110278
|
+
const xC = qn((t) => {
|
|
110269
110279
|
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ca);
|
|
110270
110280
|
}, (t, e) => {
|
|
110271
110281
|
t.setTime(+t + e * Os);
|
|
110272
110282
|
}, (t, e) => (e - t) / Os, (t) => t.getMinutes());
|
|
110273
110283
|
xC.range;
|
|
110274
|
-
const dC =
|
|
110284
|
+
const dC = qn((t) => {
|
|
110275
110285
|
t.setUTCSeconds(0, 0);
|
|
110276
110286
|
}, (t, e) => {
|
|
110277
110287
|
t.setTime(+t + e * Os);
|
|
110278
110288
|
}, (t, e) => (e - t) / Os, (t) => t.getUTCMinutes());
|
|
110279
110289
|
dC.range;
|
|
110280
|
-
const hC =
|
|
110290
|
+
const hC = qn((t) => {
|
|
110281
110291
|
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ca - t.getMinutes() * Os);
|
|
110282
110292
|
}, (t, e) => {
|
|
110283
110293
|
t.setTime(+t + e * fa);
|
|
110284
110294
|
}, (t, e) => (e - t) / fa, (t) => t.getHours());
|
|
110285
110295
|
hC.range;
|
|
110286
|
-
const pC =
|
|
110296
|
+
const pC = qn((t) => {
|
|
110287
110297
|
t.setUTCMinutes(0, 0, 0);
|
|
110288
110298
|
}, (t, e) => {
|
|
110289
110299
|
t.setTime(+t + e * fa);
|
|
110290
110300
|
}, (t, e) => (e - t) / fa, (t) => t.getUTCHours());
|
|
110291
110301
|
pC.range;
|
|
110292
|
-
const _a =
|
|
110302
|
+
const _a = qn(
|
|
110293
110303
|
(t) => t.setHours(0, 0, 0, 0),
|
|
110294
110304
|
(t, e) => t.setDate(t.getDate() + e),
|
|
110295
110305
|
(t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * Os) / La,
|
|
110296
110306
|
(t) => t.getDate() - 1
|
|
110297
110307
|
);
|
|
110298
110308
|
_a.range;
|
|
110299
|
-
const Fl =
|
|
110309
|
+
const Fl = qn((t) => {
|
|
110300
110310
|
t.setUTCHours(0, 0, 0, 0);
|
|
110301
110311
|
}, (t, e) => {
|
|
110302
110312
|
t.setUTCDate(t.getUTCDate() + e);
|
|
110303
110313
|
}, (t, e) => (e - t) / La, (t) => t.getUTCDate() - 1);
|
|
110304
110314
|
Fl.range;
|
|
110305
|
-
const EZ =
|
|
110315
|
+
const EZ = qn((t) => {
|
|
110306
110316
|
t.setUTCHours(0, 0, 0, 0);
|
|
110307
110317
|
}, (t, e) => {
|
|
110308
110318
|
t.setUTCDate(t.getUTCDate() + e);
|
|
110309
110319
|
}, (t, e) => (e - t) / La, (t) => Math.floor(t / La));
|
|
110310
110320
|
EZ.range;
|
|
110311
110321
|
function Yf(t) {
|
|
110312
|
-
return
|
|
110322
|
+
return qn((e) => {
|
|
110313
110323
|
e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
|
|
110314
110324
|
}, (e, n) => {
|
|
110315
110325
|
e.setDate(e.getDate() + n * 7);
|
|
@@ -110324,7 +110334,7 @@ Td.range;
|
|
|
110324
110334
|
$Ne.range;
|
|
110325
110335
|
BNe.range;
|
|
110326
110336
|
function Jf(t) {
|
|
110327
|
-
return
|
|
110337
|
+
return qn((e) => {
|
|
110328
110338
|
e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
|
|
110329
110339
|
}, (e, n) => {
|
|
110330
110340
|
e.setUTCDate(e.getUTCDate() + n * 7);
|
|
@@ -110338,35 +110348,35 @@ PNe.range;
|
|
|
110338
110348
|
bd.range;
|
|
110339
110349
|
MNe.range;
|
|
110340
110350
|
jNe.range;
|
|
110341
|
-
const K1 =
|
|
110351
|
+
const K1 = qn((t) => {
|
|
110342
110352
|
t.setDate(1), t.setHours(0, 0, 0, 0);
|
|
110343
110353
|
}, (t, e) => {
|
|
110344
110354
|
t.setMonth(t.getMonth() + e);
|
|
110345
110355
|
}, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
|
|
110346
110356
|
K1.range;
|
|
110347
|
-
const Z1 =
|
|
110357
|
+
const Z1 = qn((t) => {
|
|
110348
110358
|
t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
|
|
110349
110359
|
}, (t, e) => {
|
|
110350
110360
|
t.setUTCMonth(t.getUTCMonth() + e);
|
|
110351
110361
|
}, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
|
|
110352
110362
|
Z1.range;
|
|
110353
|
-
const du =
|
|
110363
|
+
const du = qn((t) => {
|
|
110354
110364
|
t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
|
|
110355
110365
|
}, (t, e) => {
|
|
110356
110366
|
t.setFullYear(t.getFullYear() + e);
|
|
110357
110367
|
}, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
|
|
110358
|
-
du.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null :
|
|
110368
|
+
du.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : qn((e) => {
|
|
110359
110369
|
e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
|
|
110360
110370
|
}, (e, n) => {
|
|
110361
110371
|
e.setFullYear(e.getFullYear() + n * t);
|
|
110362
110372
|
});
|
|
110363
110373
|
du.range;
|
|
110364
|
-
const hu =
|
|
110374
|
+
const hu = qn((t) => {
|
|
110365
110375
|
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
110366
110376
|
}, (t, e) => {
|
|
110367
110377
|
t.setUTCFullYear(t.getUTCFullYear() + e);
|
|
110368
110378
|
}, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
|
|
110369
|
-
hu.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null :
|
|
110379
|
+
hu.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : qn((e) => {
|
|
110370
110380
|
e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
110371
110381
|
}, (e, n) => {
|
|
110372
110382
|
e.setUTCFullYear(e.getUTCFullYear() + n * t);
|
|
@@ -117480,7 +117490,7 @@ function L9(t, e, n) {
|
|
|
117480
117490
|
const r = t - e + n * 2;
|
|
117481
117491
|
return t ? r > 0 ? r : 1 : 0;
|
|
117482
117492
|
}
|
|
117483
|
-
const gIe = "identity", Nd = "linear", Ba = "log", x3 = "pow", d3 = "sqrt", NC = "symlog", lf = "time", cf = "utc", iu = "sequential", Wh = "diverging", wd = "quantile", wC = "quantize", FC = "threshold", I9 = "ordinal", uD = "point", Wte = "band", $9 = "bin-ordinal",
|
|
117493
|
+
const gIe = "identity", Nd = "linear", Ba = "log", x3 = "pow", d3 = "sqrt", NC = "symlog", lf = "time", cf = "utc", iu = "sequential", Wh = "diverging", wd = "quantile", wC = "quantize", FC = "threshold", I9 = "ordinal", uD = "point", Wte = "band", $9 = "bin-ordinal", Hn = "continuous", h3 = "discrete", p3 = "discretizing", Qs = "interpolating", B9 = "temporal";
|
|
117484
117494
|
function mIe(t) {
|
|
117485
117495
|
return function(e) {
|
|
117486
117496
|
let n = e[0], r = e[1], i;
|
|
@@ -117589,24 +117599,24 @@ function Lt(t, e, n) {
|
|
|
117589
117599
|
return arguments.length > 1 ? (WA.set(t, CIe(t, e, n)), this) : Kte(t) ? WA.get(t) : void 0;
|
|
117590
117600
|
}
|
|
117591
117601
|
Lt(gIe, $te);
|
|
117592
|
-
Lt(Nd, Ite,
|
|
117593
|
-
Lt(Ba, kte, [
|
|
117594
|
-
Lt(x3, O9,
|
|
117595
|
-
Lt(d3, lIe,
|
|
117596
|
-
Lt(NC, Pte,
|
|
117597
|
-
Lt(lf, xIe, [
|
|
117598
|
-
Lt(cf, dIe, [
|
|
117599
|
-
Lt(iu, N9, [
|
|
117600
|
-
Lt(`${iu}-${Nd}`, N9, [
|
|
117601
|
-
Lt(`${iu}-${Ba}`, qte, [
|
|
117602
|
-
Lt(`${iu}-${x3}`, w9, [
|
|
117603
|
-
Lt(`${iu}-${d3}`, hIe, [
|
|
117604
|
-
Lt(`${iu}-${NC}`, Hte, [
|
|
117605
|
-
Lt(`${Wh}-${Nd}`, zte, [
|
|
117606
|
-
Lt(`${Wh}-${Ba}`, Qte, [
|
|
117607
|
-
Lt(`${Wh}-${x3}`, F9, [
|
|
117608
|
-
Lt(`${Wh}-${d3}`, pIe, [
|
|
117609
|
-
Lt(`${Wh}-${NC}`, Gte, [
|
|
117602
|
+
Lt(Nd, Ite, Hn);
|
|
117603
|
+
Lt(Ba, kte, [Hn, Ba]);
|
|
117604
|
+
Lt(x3, O9, Hn);
|
|
117605
|
+
Lt(d3, lIe, Hn);
|
|
117606
|
+
Lt(NC, Pte, Hn);
|
|
117607
|
+
Lt(lf, xIe, [Hn, B9]);
|
|
117608
|
+
Lt(cf, dIe, [Hn, B9]);
|
|
117609
|
+
Lt(iu, N9, [Hn, Qs]);
|
|
117610
|
+
Lt(`${iu}-${Nd}`, N9, [Hn, Qs]);
|
|
117611
|
+
Lt(`${iu}-${Ba}`, qte, [Hn, Qs, Ba]);
|
|
117612
|
+
Lt(`${iu}-${x3}`, w9, [Hn, Qs]);
|
|
117613
|
+
Lt(`${iu}-${d3}`, hIe, [Hn, Qs]);
|
|
117614
|
+
Lt(`${iu}-${NC}`, Hte, [Hn, Qs]);
|
|
117615
|
+
Lt(`${Wh}-${Nd}`, zte, [Hn, Qs]);
|
|
117616
|
+
Lt(`${Wh}-${Ba}`, Qte, [Hn, Qs, Ba]);
|
|
117617
|
+
Lt(`${Wh}-${x3}`, F9, [Hn, Qs]);
|
|
117618
|
+
Lt(`${Wh}-${d3}`, pIe, [Hn, Qs]);
|
|
117619
|
+
Lt(`${Wh}-${NC}`, Gte, [Hn, Qs]);
|
|
117610
117620
|
Lt(wd, Mte, [p3, wd]);
|
|
117611
117621
|
Lt(wC, jte, p3);
|
|
117612
117622
|
Lt(FC, Ute, p3);
|
|
@@ -117622,7 +117632,7 @@ function Zf(t, e) {
|
|
|
117622
117632
|
return n && n.metadata[e];
|
|
117623
117633
|
}
|
|
117624
117634
|
function P9(t) {
|
|
117625
|
-
return Zf(t,
|
|
117635
|
+
return Zf(t, Hn);
|
|
117626
117636
|
}
|
|
117627
117637
|
function Fd(t) {
|
|
117628
117638
|
return Zf(t, h3);
|
|
@@ -118363,12 +118373,12 @@ function Q9(t, e, n) {
|
|
|
118363
118373
|
});
|
|
118364
118374
|
return ft(r) ? o.path = r(null) : z9(n) ? o.path = Vh(null, n, 0, 0) : (o.width = n.width || 0, o.height = n.height || 0), "url(#" + s + ")";
|
|
118365
118375
|
}
|
|
118366
|
-
function
|
|
118376
|
+
function Un(t) {
|
|
118367
118377
|
this.clear(), t && this.union(t);
|
|
118368
118378
|
}
|
|
118369
|
-
|
|
118379
|
+
Un.prototype = {
|
|
118370
118380
|
clone() {
|
|
118371
|
-
return new
|
|
118381
|
+
return new Un(this);
|
|
118372
118382
|
},
|
|
118373
118383
|
clear() {
|
|
118374
118384
|
return this.x1 = +Number.MAX_VALUE, this.y1 = +Number.MAX_VALUE, this.x2 = -Number.MAX_VALUE, this.y2 = -Number.MAX_VALUE, this;
|
|
@@ -118436,7 +118446,7 @@ jn.prototype = {
|
|
|
118436
118446
|
}
|
|
118437
118447
|
};
|
|
118438
118448
|
function G9(t) {
|
|
118439
|
-
this.mark = t, this.bounds = this.bounds || new
|
|
118449
|
+
this.mark = t, this.bounds = this.bounds || new Un();
|
|
118440
118450
|
}
|
|
118441
118451
|
function W9(t) {
|
|
118442
118452
|
G9.call(this, t), this.items = this.items || [];
|
|
@@ -118556,7 +118566,7 @@ function $U(t, e, n, r, i) {
|
|
|
118556
118566
|
return o * s * e + 3 * o * t * n + 3 * s * u * r + u * t * i;
|
|
118557
118567
|
}
|
|
118558
118568
|
var Il = (Il = Ll(1, 1)) ? Il.getContext("2d") : null;
|
|
118559
|
-
const dD = new
|
|
118569
|
+
const dD = new Un();
|
|
118560
118570
|
function yne(t) {
|
|
118561
118571
|
return function(e, n) {
|
|
118562
118572
|
if (!Il)
|
|
@@ -119114,7 +119124,7 @@ const MBe = {
|
|
|
119114
119124
|
left: "start",
|
|
119115
119125
|
center: "middle",
|
|
119116
119126
|
right: "end"
|
|
119117
|
-
}, g1 = new
|
|
119127
|
+
}, g1 = new Un();
|
|
119118
119128
|
function jC(t) {
|
|
119119
119129
|
var e = t.x || 0, n = t.y || 0, r = t.radius || 0, i;
|
|
119120
119130
|
return r && (i = (t.theta || 0) - hc, e += r * Math.cos(i), n += r * Math.sin(i)), g1.x1 = e, g1.y1 = n, g1;
|
|
@@ -119182,7 +119192,7 @@ var zBe = {
|
|
|
119182
119192
|
};
|
|
119183
119193
|
function MU(t, e, n) {
|
|
119184
119194
|
var r = js[t.mark.marktype], i = e || r.bound;
|
|
119185
|
-
return r.nested && (t = t.mark), i(t.bounds || (t.bounds = new
|
|
119195
|
+
return r.nested && (t = t.mark), i(t.bounds || (t.bounds = new Un()), t, n);
|
|
119186
119196
|
}
|
|
119187
119197
|
var jU = {
|
|
119188
119198
|
mark: null
|
|
@@ -119191,7 +119201,7 @@ function GBe(t, e, n) {
|
|
|
119191
119201
|
var r = js[t.marktype], i = r.bound, s = t.items, o = s && s.length, u, a, l, c;
|
|
119192
119202
|
if (r.nested)
|
|
119193
119203
|
return o ? l = s[0] : (jU.mark = t, l = jU), c = MU(l, i, n), e = e && e.union(c) || c, e;
|
|
119194
|
-
if (e = e || t.bounds && t.bounds.clear() || new
|
|
119204
|
+
if (e = e || t.bounds && t.bounds.clear() || new Un(), o)
|
|
119195
119205
|
for (u = 0, a = s.length; u < a; ++u)
|
|
119196
119206
|
e.union(MU(s[u], i, n));
|
|
119197
119207
|
return t.bounds = e;
|
|
@@ -119316,7 +119326,7 @@ Ine.prototype = {
|
|
|
119316
119326
|
};
|
|
119317
119327
|
function $ne(t, e) {
|
|
119318
119328
|
const n = {
|
|
119319
|
-
bounds: new
|
|
119329
|
+
bounds: new Un(),
|
|
119320
119330
|
clip: !!t.clip,
|
|
119321
119331
|
group: e,
|
|
119322
119332
|
interactive: t.interactive !== !1,
|
|
@@ -119755,9 +119765,9 @@ function lke(t, e, n, r, i, s) {
|
|
|
119755
119765
|
return o && a !== 1 && (t.style.width = e + "px", t.style.height = n + "px"), u.pixelRatio = a, u.setTransform(a, 0, 0, a, a * r[0], a * r[1]), t;
|
|
119756
119766
|
}
|
|
119757
119767
|
function ED(t) {
|
|
119758
|
-
el.call(this, t), this._options = {}, this._redraw = !1, this._dirty = new
|
|
119768
|
+
el.call(this, t), this._options = {}, this._redraw = !1, this._dirty = new Un(), this._tempb = new Un();
|
|
119759
119769
|
}
|
|
119760
|
-
const zU = el.prototype, cke = (t, e, n) => new
|
|
119770
|
+
const zU = el.prototype, cke = (t, e, n) => new Un().set(0, 0, e, n).translate(-t[0], -t[1]);
|
|
119761
119771
|
function fke(t, e, n) {
|
|
119762
119772
|
return e.expand(1).round(), t.pixelRatio % 1 && e.scale(t.pixelRatio).round().scale(1 / t.pixelRatio), e.translate(-(n[0] % 1), -(n[1] % 1)), t.beginPath(), t.rect(e.x1, e.y1, e.width(), e.height()), t.clip(), e;
|
|
119763
119773
|
}
|
|
@@ -119975,7 +119985,7 @@ const nv = {
|
|
|
119975
119985
|
}, Kne = {
|
|
119976
119986
|
fill: "none",
|
|
119977
119987
|
"stroke-miterlimit": 10
|
|
119978
|
-
}, _p = 0, VU = "http://www.w3.org/2000/xmlns/",
|
|
119988
|
+
}, _p = 0, VU = "http://www.w3.org/2000/xmlns/", Bn = ug.xmlns;
|
|
119979
119989
|
function Zne(t) {
|
|
119980
119990
|
el.call(this, t), this._dirtyID = 0, this._dirty = [], this._svg = null, this._root = null, this._defs = null;
|
|
119981
119991
|
}
|
|
@@ -119993,7 +120003,7 @@ De(Zne, el, {
|
|
|
119993
120003
|
* @return {SVGRenderer} - This renderer instance.
|
|
119994
120004
|
*/
|
|
119995
120005
|
initialize(t, e, n, r, i) {
|
|
119996
|
-
return this._defs = {}, this._clearDefs(), t && (this._svg = Zi(t, 0, "svg",
|
|
120006
|
+
return this._defs = {}, this._clearDefs(), t && (this._svg = Zi(t, 0, "svg", Bn), this._svg.setAttributeNS(VU, "xmlns", Bn), this._svg.setAttributeNS(VU, "xmlns:xlink", ug["xmlns:xlink"]), this._svg.setAttribute("version", ug.version), this._svg.setAttribute("class", "marks"), Vo(t, 1), this._root = Zi(this._svg, _p, "g", Bn), _l(this._root, Kne), Vo(this._svg, _p + 1)), this.background(this._bgcolor), z6.initialize.call(this, t, e, n, r, i);
|
|
119997
120007
|
},
|
|
119998
120008
|
/**
|
|
119999
120009
|
* Get / set the background color.
|
|
@@ -120034,7 +120044,7 @@ De(Zne, el, {
|
|
|
120034
120044
|
if (!t)
|
|
120035
120045
|
return null;
|
|
120036
120046
|
let n;
|
|
120037
|
-
e && (t.removeAttribute("style"), n = Zi(t, _p, "rect",
|
|
120047
|
+
e && (t.removeAttribute("style"), n = Zi(t, _p, "rect", Bn), _l(n, {
|
|
120038
120048
|
width: this._width,
|
|
120039
120049
|
height: this._height,
|
|
120040
120050
|
fill: e
|
|
@@ -120148,9 +120158,9 @@ De(Zne, el, {
|
|
|
120148
120158
|
const t = this._svg, e = this._defs;
|
|
120149
120159
|
let n = e.el, r = 0;
|
|
120150
120160
|
for (const i in e.gradient)
|
|
120151
|
-
n || (e.el = n = Zi(t, _p + 1, "defs",
|
|
120161
|
+
n || (e.el = n = Zi(t, _p + 1, "defs", Bn)), r = vke(n, e.gradient[i], r);
|
|
120152
120162
|
for (const i in e.clipping)
|
|
120153
|
-
n || (e.el = n = Zi(t, _p + 1, "defs",
|
|
120163
|
+
n || (e.el = n = Zi(t, _p + 1, "defs", Bn)), r = Ske(n, e.clipping[i], r);
|
|
120154
120164
|
n && (r === 0 ? (t.removeChild(n), e.el = null) : Vo(n, r));
|
|
120155
120165
|
},
|
|
120156
120166
|
/**
|
|
@@ -120171,18 +120181,18 @@ function YU(t, e) {
|
|
|
120171
120181
|
function vke(t, e, n) {
|
|
120172
120182
|
let r, i, s;
|
|
120173
120183
|
if (e.gradient === "radial") {
|
|
120174
|
-
let o = Zi(t, n++, "pattern",
|
|
120184
|
+
let o = Zi(t, n++, "pattern", Bn);
|
|
120175
120185
|
_l(o, {
|
|
120176
120186
|
id: VA + e.id,
|
|
120177
120187
|
viewBox: "0,0,1,1",
|
|
120178
120188
|
width: "100%",
|
|
120179
120189
|
height: "100%",
|
|
120180
120190
|
preserveAspectRatio: "xMidYMid slice"
|
|
120181
|
-
}), o = Zi(o, 0, "rect",
|
|
120191
|
+
}), o = Zi(o, 0, "rect", Bn), _l(o, {
|
|
120182
120192
|
width: 1,
|
|
120183
120193
|
height: 1,
|
|
120184
120194
|
fill: `url(${ere()}#${e.id})`
|
|
120185
|
-
}), t = Zi(t, n++, "radialGradient",
|
|
120195
|
+
}), t = Zi(t, n++, "radialGradient", Bn), _l(t, {
|
|
120186
120196
|
id: e.id,
|
|
120187
120197
|
fx: e.x1,
|
|
120188
120198
|
fy: e.y1,
|
|
@@ -120192,7 +120202,7 @@ function vke(t, e, n) {
|
|
|
120192
120202
|
r: e.r2
|
|
120193
120203
|
});
|
|
120194
120204
|
} else
|
|
120195
|
-
t = Zi(t, n++, "linearGradient",
|
|
120205
|
+
t = Zi(t, n++, "linearGradient", Bn), _l(t, {
|
|
120196
120206
|
id: e.id,
|
|
120197
120207
|
x1: e.x1,
|
|
120198
120208
|
x2: e.x2,
|
|
@@ -120200,12 +120210,12 @@ function vke(t, e, n) {
|
|
|
120200
120210
|
y2: e.y2
|
|
120201
120211
|
});
|
|
120202
120212
|
for (r = 0, i = e.stops.length; r < i; ++r)
|
|
120203
|
-
s = Zi(t, r, "stop",
|
|
120213
|
+
s = Zi(t, r, "stop", Bn), s.setAttribute("offset", e.stops[r].offset), s.setAttribute("stop-color", e.stops[r].color);
|
|
120204
120214
|
return Vo(t, r), n;
|
|
120205
120215
|
}
|
|
120206
120216
|
function Ske(t, e, n) {
|
|
120207
120217
|
let r;
|
|
120208
|
-
return t = Zi(t, n, "clipPath",
|
|
120218
|
+
return t = Zi(t, n, "clipPath", Bn), t.setAttribute("id", e.id), e.path ? (r = Zi(t, 0, "path", Bn), r.setAttribute("d", e.path)) : (r = Zi(t, 0, "rect", Bn), _l(r, {
|
|
120209
120219
|
x: 0,
|
|
120210
120220
|
y: 0,
|
|
120211
120221
|
width: e.width,
|
|
@@ -120221,14 +120231,14 @@ function _ke(t, e, n) {
|
|
|
120221
120231
|
}
|
|
120222
120232
|
function JU(t, e, n, r, i) {
|
|
120223
120233
|
let s = t._svg, o;
|
|
120224
|
-
if (!s && (o = e.ownerDocument, s = _c(o, r,
|
|
120234
|
+
if (!s && (o = e.ownerDocument, s = _c(o, r, Bn), t._svg = s, t.mark && (s.__data__ = t, s.__values__ = {
|
|
120225
120235
|
fill: "default"
|
|
120226
120236
|
}, r === "g"))) {
|
|
120227
|
-
const u = _c(o, "path",
|
|
120237
|
+
const u = _c(o, "path", Bn);
|
|
120228
120238
|
s.appendChild(u), u.__data__ = t;
|
|
120229
|
-
const a = _c(o, "g",
|
|
120239
|
+
const a = _c(o, "g", Bn);
|
|
120230
120240
|
s.appendChild(a), a.__data__ = t;
|
|
120231
|
-
const l = _c(o, "path",
|
|
120241
|
+
const l = _c(o, "path", Bn);
|
|
120232
120242
|
s.appendChild(l), l.__data__ = t, l.__values__ = {
|
|
120233
120243
|
fill: "default"
|
|
120234
120244
|
};
|
|
@@ -120260,7 +120270,7 @@ const Tke = {
|
|
|
120260
120270
|
let i, s, o, u;
|
|
120261
120271
|
Se(r) ? (s = r.map((a) => e0(n, a)), i = s.join(`
|
|
120262
120272
|
`), i !== Fr.text && (Vo(e, 0), o = e.ownerDocument, u = ff(n), s.forEach((a, l) => {
|
|
120263
|
-
const c = _c(o, "tspan",
|
|
120273
|
+
const c = _c(o, "tspan", Bn);
|
|
120264
120274
|
c.__data__ = n, c.textContent = a, l && (c.setAttribute("x", 0), c.setAttribute("dy", u)), e.appendChild(c);
|
|
120265
120275
|
}), Fr.text = i)) : (s = e0(n, r), s !== Fr.text && (e.textContent = s, Fr.text = s)), Wr(e, "font-family", MC(n)), Wr(e, "font-size", Za(n) + "px"), Wr(e, "font-style", n.fontStyle), Wr(e, "font-variant", n.fontVariant), Wr(e, "font-weight", n.fontWeight);
|
|
120266
120276
|
}
|
|
@@ -120481,7 +120491,7 @@ function fL(t, e) {
|
|
|
120481
120491
|
return t = String(t || "").toLowerCase(), arguments.length > 1 ? ($d[t] = e, this) : $d[t];
|
|
120482
120492
|
}
|
|
120483
120493
|
function Oke(t, e, n) {
|
|
120484
|
-
const r = [], i = new
|
|
120494
|
+
const r = [], i = new Un().union(e), s = t.marktype;
|
|
120485
120495
|
return s ? ore(t, i, n, r) : s === "group" ? ure(t, i, n, r) : ve("Intersect scene must be mark node or group item.");
|
|
120486
120496
|
}
|
|
120487
120497
|
function ore(t, e, n, r) {
|
|
@@ -120518,7 +120528,7 @@ function are(t, e, n) {
|
|
|
120518
120528
|
const r = t.bounds;
|
|
120519
120529
|
return e.encloses(r) || e.intersects(r) && n(t, e);
|
|
120520
120530
|
}
|
|
120521
|
-
const Q6 = new
|
|
120531
|
+
const Q6 = new Un();
|
|
120522
120532
|
function Nke(t) {
|
|
120523
120533
|
const e = t.clip;
|
|
120524
120534
|
if (ft(e))
|
|
@@ -120617,7 +120627,7 @@ const KU = {
|
|
|
120617
120627
|
const e = t.bounds;
|
|
120618
120628
|
return e.width() > 1 && e.height() > 1;
|
|
120619
120629
|
}, Qke = (t, e, n) => {
|
|
120620
|
-
var r = t.range(), i = new
|
|
120630
|
+
var r = t.range(), i = new Un();
|
|
120621
120631
|
return e === Bd || e === t0 ? i.set(r[0], -1 / 0, r[1], 1 / 0) : i.set(-1 / 0, r[0], 1 / 0, r[1]), i.expand(n || 1), (s) => i.encloses(s.bounds);
|
|
120622
120632
|
}, eq = (t) => (t.forEach((e) => e.opacity = 1), t), tq = (t, e) => t.reflow(e.modified()).modifies("opacity");
|
|
120623
120633
|
De(Are, me, {
|
|
@@ -120657,7 +120667,7 @@ De(Sre, me, {
|
|
|
120657
120667
|
}
|
|
120658
120668
|
}
|
|
120659
120669
|
});
|
|
120660
|
-
const Nr = new
|
|
120670
|
+
const Nr = new Un();
|
|
120661
120671
|
function Fx(t, e, n) {
|
|
120662
120672
|
return t[e] === n ? 0 : (t[e] = n, 1);
|
|
120663
120673
|
}
|
|
@@ -120748,7 +120758,7 @@ function Yke(t) {
|
|
|
120748
120758
|
return o;
|
|
120749
120759
|
}
|
|
120750
120760
|
function Jke(t) {
|
|
120751
|
-
return new
|
|
120761
|
+
return new Un().set(0, 0, t.width || 0, t.height || 0);
|
|
120752
120762
|
}
|
|
120753
120763
|
function Xke(t) {
|
|
120754
120764
|
const e = t.bounds.clone();
|
|
@@ -121055,7 +121065,7 @@ function lPe(t) {
|
|
|
121055
121065
|
return t && t.mark.role !== "legend-entry";
|
|
121056
121066
|
}
|
|
121057
121067
|
function cPe(t, e, n) {
|
|
121058
|
-
var r = e.items, i = Math.max(0, e.width || 0), s = Math.max(0, e.height || 0), o = new
|
|
121068
|
+
var r = e.items, i = Math.max(0, e.width || 0), s = Math.max(0, e.height || 0), o = new Un().set(0, 0, i, s), u = o.clone(), a = o.clone(), l = [], c, f, x, h, p, m;
|
|
121059
121069
|
for (p = 0, m = r.length; p < m; ++p)
|
|
121060
121070
|
switch (f = r[p], f.role) {
|
|
121061
121071
|
case dL:
|
|
@@ -128970,7 +128980,7 @@ function cGe() {
|
|
|
128970
128980
|
function Ase(t, e, n) {
|
|
128971
128981
|
if (!t)
|
|
128972
128982
|
return [];
|
|
128973
|
-
const [r, i] = t, s = new
|
|
128983
|
+
const [r, i] = t, s = new Un().set(r[0], r[1], i[0], i[1]), o = n || this.context.dataflow.scenegraph().root;
|
|
128974
128984
|
return Oke(o, s, fGe(e));
|
|
128975
128985
|
}
|
|
128976
128986
|
function fGe(t) {
|
|
@@ -128998,7 +129008,7 @@ function hGe(t, e, n) {
|
|
|
128998
129008
|
x: r,
|
|
128999
129009
|
y: i,
|
|
129000
129010
|
mark: s
|
|
129001
|
-
} = n, o = new
|
|
129011
|
+
} = n, o = new Un().set(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER);
|
|
129002
129012
|
for (const [a, l] of e)
|
|
129003
129013
|
a < o.x1 && (o.x1 = a), a > o.x2 && (o.x2 = a), l < o.y1 && (o.y1 = l), l > o.y2 && (o.y2 = l);
|
|
129004
129014
|
return o.translate(r, i), Ase([[o.x1, o.y1], [o.x2, o.y2]], t, s).filter((a) => pGe(a.x, a.y, e));
|
|
@@ -129138,28 +129148,28 @@ function yGe(t) {
|
|
|
129138
129148
|
e[n] = vse + n;
|
|
129139
129149
|
return ct(e, DQe(t, mg, pI)), e;
|
|
129140
129150
|
}
|
|
129141
|
-
function
|
|
129151
|
+
function zn(t, e, n) {
|
|
129142
129152
|
return arguments.length === 1 ? mg[t] : (mg[t] = e, n && (pI[t] = n), l7 && (l7.functions[t] = vse + t), this);
|
|
129143
129153
|
}
|
|
129144
|
-
|
|
129145
|
-
|
|
129146
|
-
|
|
129147
|
-
|
|
129148
|
-
|
|
129149
|
-
|
|
129150
|
-
|
|
129151
|
-
|
|
129152
|
-
|
|
129153
|
-
|
|
129154
|
-
|
|
129155
|
-
|
|
129156
|
-
|
|
129157
|
-
|
|
129158
|
-
|
|
129159
|
-
|
|
129160
|
-
|
|
129161
|
-
|
|
129162
|
-
|
|
129154
|
+
zn("bandwidth", XQe, Di);
|
|
129155
|
+
zn("copy", KQe, Di);
|
|
129156
|
+
zn("domain", ZQe, Di);
|
|
129157
|
+
zn("range", tGe, Di);
|
|
129158
|
+
zn("invert", eGe, Di);
|
|
129159
|
+
zn("scale", nGe, Di);
|
|
129160
|
+
zn("gradient", rGe, Di);
|
|
129161
|
+
zn("geoArea", NQe, Di);
|
|
129162
|
+
zn("geoBounds", wQe, Di);
|
|
129163
|
+
zn("geoCentroid", FQe, Di);
|
|
129164
|
+
zn("geoShape", iGe, Di);
|
|
129165
|
+
zn("indata", pQe, OQe);
|
|
129166
|
+
zn("data", xse, cI);
|
|
129167
|
+
zn("treePath", oGe, cI);
|
|
129168
|
+
zn("treeAncestors", uGe, cI);
|
|
129169
|
+
zn("vlSelectionTest", uQe, lI);
|
|
129170
|
+
zn("vlSelectionIdTest", cQe, lI);
|
|
129171
|
+
zn("vlSelectionResolve", xQe, lI);
|
|
129172
|
+
zn("vlSelectionTuples", fQe);
|
|
129163
129173
|
function yu(t, e) {
|
|
129164
129174
|
const n = {};
|
|
129165
129175
|
let r;
|
|
@@ -130454,14 +130464,14 @@ function rT(t, e) {
|
|
|
130454
130464
|
return (t && t.signal ? "$" + t.signal : t || "") + (t && e ? "_" : "") + (e && e.signal ? "$" + e.signal : e || "");
|
|
130455
130465
|
}
|
|
130456
130466
|
const _I = "scope", h7 = "view";
|
|
130457
|
-
function
|
|
130467
|
+
function Mn(t) {
|
|
130458
130468
|
return t && t.signal;
|
|
130459
130469
|
}
|
|
130460
130470
|
function bVe(t) {
|
|
130461
130471
|
return t && t.expr;
|
|
130462
130472
|
}
|
|
130463
130473
|
function wE(t) {
|
|
130464
|
-
if (
|
|
130474
|
+
if (Mn(t))
|
|
130465
130475
|
return !0;
|
|
130466
130476
|
if (ze(t)) {
|
|
130467
130477
|
for (const e in t)
|
|
@@ -131154,11 +131164,11 @@ function JYe(t, e, n) {
|
|
|
131154
131164
|
if (r === "projection")
|
|
131155
131165
|
return n.projectionRef(e[t.name]);
|
|
131156
131166
|
}
|
|
131157
|
-
return t.array && !
|
|
131167
|
+
return t.array && !Mn(i) ? i.map((s) => qH(t, s, n)) : qH(t, i, n);
|
|
131158
131168
|
}
|
|
131159
131169
|
function qH(t, e, n) {
|
|
131160
131170
|
const r = t.type;
|
|
131161
|
-
if (
|
|
131171
|
+
if (Mn(e))
|
|
131162
131172
|
return zH(r) ? ve("Expression references can not be signals.") : _R(r) ? n.fieldRef(e) : QH(r) ? n.compareRef(e) : n.signalRef(e.signal);
|
|
131163
131173
|
{
|
|
131164
131174
|
const i = t.expr || _R(r);
|
|
@@ -131364,15 +131374,15 @@ function aT(t, e) {
|
|
|
131364
131374
|
}
|
|
131365
131375
|
function sJe(t, e, n) {
|
|
131366
131376
|
const r = t.method, i = t.bound, s = t.separation, o = {
|
|
131367
|
-
separation:
|
|
131368
|
-
method:
|
|
131377
|
+
separation: Mn(s) ? n.signalRef(s.signal) : s,
|
|
131378
|
+
method: Mn(r) ? n.signalRef(r.signal) : r,
|
|
131369
131379
|
pulse: e
|
|
131370
131380
|
};
|
|
131371
131381
|
if (t.order && (o.sort = n.compareRef({
|
|
131372
131382
|
field: t.order
|
|
131373
131383
|
})), i) {
|
|
131374
131384
|
const u = i.tolerance;
|
|
131375
|
-
o.boundTolerance =
|
|
131385
|
+
o.boundTolerance = Mn(u) ? n.signalRef(u.signal) : +u, o.boundScale = n.scaleRef(i.scale), o.boundOrient = i.orient;
|
|
131376
131386
|
}
|
|
131377
131387
|
return Ye(n.add(VVe(o)));
|
|
131378
131388
|
}
|
|
@@ -131619,7 +131629,7 @@ function yJe(t, e) {
|
|
|
131619
131629
|
function EJe(t, e, n) {
|
|
131620
131630
|
const r = [];
|
|
131621
131631
|
let i = null, s = !1, o = !1, u, a, l, c, f;
|
|
131622
|
-
for (t.values ?
|
|
131632
|
+
for (t.values ? Mn(t.values) || wE(t.format) ? (r.push(VH(e, t)), r.push(i = rc())) : r.push(i = rc({
|
|
131623
131633
|
$ingest: t.values,
|
|
131624
131634
|
$format: t.format
|
|
131625
131635
|
})) : t.url ? wE(t.url) || wE(t.format) ? (r.push(VH(e, t)), r.push(i = rc())) : r.push(i = rc({
|
|
@@ -131646,11 +131656,11 @@ function VH(t, e) {
|
|
|
131646
131656
|
format: t.objectProperty(e.format)
|
|
131647
131657
|
});
|
|
131648
131658
|
}
|
|
131649
|
-
const doe = (t) => t === n0 || t === Io, lT = (t, e, n) =>
|
|
131659
|
+
const doe = (t) => t === n0 || t === Io, lT = (t, e, n) => Mn(t) ? _Je(t.signal, e, n) : t === Xh || t === Io ? e : n, nr = (t, e, n) => Mn(t) ? vJe(t.signal, e, n) : doe(t) ? e : n, lo = (t, e, n) => Mn(t) ? SJe(t.signal, e, n) : doe(t) ? n : e, hoe = (t, e, n) => Mn(t) ? CJe(t.signal, e, n) : t === Io ? {
|
|
131650
131660
|
value: e
|
|
131651
131661
|
} : {
|
|
131652
131662
|
value: n
|
|
131653
|
-
}, AJe = (t, e, n) =>
|
|
131663
|
+
}, AJe = (t, e, n) => Mn(t) ? TJe(t.signal, e, n) : t === Kh ? {
|
|
131654
131664
|
value: e
|
|
131655
131665
|
} : {
|
|
131656
131666
|
value: n
|
|
@@ -131662,7 +131672,7 @@ const doe = (t) => t === n0 || t === Io, lT = (t, e, n) => Pn(t) ? _Je(t.signal,
|
|
|
131662
131672
|
signal: `${t} ? (${$x(e)}) : (${$x(n)})`
|
|
131663
131673
|
}), bJe = (t, e, n, r, i) => ({
|
|
131664
131674
|
signal: (r != null ? `${t} === '${Xh}' ? (${$x(r)}) : ` : "") + (n != null ? `${t} === '${n0}' ? (${$x(n)}) : ` : "") + (i != null ? `${t} === '${Kh}' ? (${$x(i)}) : ` : "") + (e != null ? `${t} === '${Io}' ? (${$x(e)}) : ` : "") + "(null)"
|
|
131665
|
-
}), $x = (t) =>
|
|
131675
|
+
}), $x = (t) => Mn(t) ? t.signal : t == null ? null : Fe(t), RJe = (t, e) => e === 0 ? 0 : Mn(t) ? {
|
|
131666
131676
|
signal: `(${t.signal}) * ${e}`
|
|
131667
131677
|
} : {
|
|
131668
131678
|
value: t * e
|
|
@@ -131712,7 +131722,7 @@ function JH(t) {
|
|
|
131712
131722
|
}
|
|
131713
131723
|
function OJe(t, e) {
|
|
131714
131724
|
var n = e.config, r = n.style, i = n.axis, s = e.scaleType(t.scale) === "band" && n.axisBand, o = t.orient, u, a, l;
|
|
131715
|
-
if (
|
|
131725
|
+
if (Mn(o)) {
|
|
131716
131726
|
const f = JH([n.axisX, n.axisY]), x = JH([n.axisTop, n.axisBottom, n.axisLeft, n.axisRight]);
|
|
131717
131727
|
u = {};
|
|
131718
131728
|
for (l of f)
|
|
@@ -131821,7 +131831,7 @@ function NJe(t, e, n, r, i) {
|
|
|
131821
131831
|
function wJe(t, e) {
|
|
131822
131832
|
if (e !== 1)
|
|
131823
131833
|
if (!ze(t))
|
|
131824
|
-
t =
|
|
131834
|
+
t = Mn(e) ? {
|
|
131825
131835
|
signal: `(${e.signal}) * (${t || 0})`
|
|
131826
131836
|
} : e * (t || 0);
|
|
131827
131837
|
else {
|
|
@@ -131830,7 +131840,7 @@ function wJe(t, e) {
|
|
|
131830
131840
|
if (ze(n.mult))
|
|
131831
131841
|
n = n.mult = ct({}, n.mult);
|
|
131832
131842
|
else
|
|
131833
|
-
return n.mult =
|
|
131843
|
+
return n.mult = Mn(e) ? {
|
|
131834
131844
|
signal: `(${n.mult}) * (${e.signal})`
|
|
131835
131845
|
} : n.mult * e, t;
|
|
131836
131846
|
n.mult = e;
|
|
@@ -132226,7 +132236,7 @@ moe.prototype = KH.prototype = {
|
|
|
132226
132236
|
},
|
|
132227
132237
|
compareRef(t) {
|
|
132228
132238
|
let e = !1;
|
|
132229
|
-
const n = (s) =>
|
|
132239
|
+
const n = (s) => Mn(s) ? (e = !0, this.signalRef(s.signal)) : bVe(s) ? (e = !0, this.exprRef(s.expr)) : s, r = Pe(t.field).map(n), i = Pe(t.order).map(n);
|
|
132230
132240
|
return e ? Ye(this.add(PH({
|
|
132231
132241
|
fields: r,
|
|
132232
132242
|
orders: i
|
|
@@ -132234,7 +132244,7 @@ moe.prototype = KH.prototype = {
|
|
|
132234
132244
|
},
|
|
132235
132245
|
keyRef(t, e) {
|
|
132236
132246
|
let n = !1;
|
|
132237
|
-
const r = (s) =>
|
|
132247
|
+
const r = (s) => Mn(s) ? (n = !0, Ye(i[s.signal])) : s, i = this.signals;
|
|
132238
132248
|
return t = Pe(t).map(r), n ? Ye(this.add(qVe({
|
|
132239
132249
|
fields: t,
|
|
132240
132250
|
flat: e
|
|
@@ -133413,7 +133423,7 @@ function Wx(t, e, { allowDisabling: n, includeDefault: r = !0 }) {
|
|
|
133413
133423
|
if (!Le(t))
|
|
133414
133424
|
return o ?? t.title;
|
|
133415
133425
|
const u = t, a = r ? YI(u, e) : void 0;
|
|
133416
|
-
return n ?
|
|
133426
|
+
return n ? jn(o, u.title, a) : (s = o ?? u.title) !== null && s !== void 0 ? s : a;
|
|
133417
133427
|
}
|
|
133418
133428
|
function VI(t) {
|
|
133419
133429
|
if (WI(t) && t.axis)
|
|
@@ -133474,7 +133484,7 @@ function Au(t) {
|
|
|
133474
133484
|
if (yT(t))
|
|
133475
133485
|
return t.condition;
|
|
133476
133486
|
}
|
|
133477
|
-
function
|
|
133487
|
+
function Pn(t) {
|
|
133478
133488
|
if (it(t))
|
|
133479
133489
|
return t;
|
|
133480
133490
|
if (L3(t))
|
|
@@ -134201,7 +134211,7 @@ function T7(t, e, n, r = !0) {
|
|
|
134201
134211
|
}
|
|
134202
134212
|
function ZI(t) {
|
|
134203
134213
|
const { title: e, field: n } = t;
|
|
134204
|
-
return
|
|
134214
|
+
return jn(e, n);
|
|
134205
134215
|
}
|
|
134206
134216
|
function e$(t, e, n, r, i) {
|
|
134207
134217
|
const { scale: s, axis: o } = n;
|
|
@@ -134943,7 +134953,7 @@ function Vv(t, e) {
|
|
|
134943
134953
|
function Yv(t, e) {
|
|
134944
134954
|
var n;
|
|
134945
134955
|
const r = (n = t[e]) !== null && n !== void 0 ? n : t[e === "width" ? "discreteWidth" : "discreteHeight"];
|
|
134946
|
-
return
|
|
134956
|
+
return jn(r, { step: t.step });
|
|
134947
134957
|
}
|
|
134948
134958
|
const yue = 20, TKe = {
|
|
134949
134959
|
continuousWidth: 200,
|
|
@@ -135952,7 +135962,7 @@ class il {
|
|
|
135952
135962
|
return Object.assign(Object.assign({}, this.explicit), this.implicit);
|
|
135953
135963
|
}
|
|
135954
135964
|
get(e) {
|
|
135955
|
-
return
|
|
135965
|
+
return jn(this.explicit[e], this.implicit[e]);
|
|
135956
135966
|
}
|
|
135957
135967
|
getWithExplicit(e) {
|
|
135958
135968
|
return this.explicit[e] !== void 0 ? { explicit: !0, value: this.explicit[e] } : this.implicit[e] !== void 0 ? { explicit: !1, value: this.implicit[e] } : { explicit: !1, value: void 0 };
|
|
@@ -137593,7 +137603,7 @@ function u1(t, e, n, r = { header: !1 }) {
|
|
|
137593
137603
|
maxExtent: 0,
|
|
137594
137604
|
minExtent: 0,
|
|
137595
137605
|
ticks: !1,
|
|
137596
|
-
zindex:
|
|
137606
|
+
zindex: jn(x, 0)
|
|
137597
137607
|
// put grid behind marks by default
|
|
137598
137608
|
});
|
|
137599
137609
|
} else {
|
|
@@ -137614,7 +137624,7 @@ function u1(t, e, n, r = { header: !1 }) {
|
|
|
137614
137624
|
orient: a,
|
|
137615
137625
|
grid: !1
|
|
137616
137626
|
}, p ? { title: p } : {}), h), n.aria === !1 ? { aria: !1 } : {}), {
|
|
137617
|
-
zindex:
|
|
137627
|
+
zindex: jn(x, 0)
|
|
137618
137628
|
// put axis line above marks by default
|
|
137619
137629
|
});
|
|
137620
137630
|
}
|
|
@@ -137909,7 +137919,7 @@ function OT(t, e) {
|
|
|
137909
137919
|
}
|
|
137910
137920
|
function Jd(t, e, n, r) {
|
|
137911
137921
|
const i = r === "row" ? n.headerRow : r === "column" ? n.headerColumn : n.headerFacet;
|
|
137912
|
-
return
|
|
137922
|
+
return jn((e || {})[t], i[t], n.header[t]);
|
|
137913
137923
|
}
|
|
137914
137924
|
function DT(t, e, n, r) {
|
|
137915
137925
|
const i = {};
|
|
@@ -138085,7 +138095,7 @@ function Nz(t, e) {
|
|
|
138085
138095
|
return Ve(e.step) ? { name: n, update: e.step.signal } : { name: n, value: e.step };
|
|
138086
138096
|
}
|
|
138087
138097
|
function aae(t, e, n) {
|
|
138088
|
-
const r = e.get("type"), i = e.get("padding"), s =
|
|
138098
|
+
const r = e.get("type"), i = e.get("padding"), s = jn(e.get("paddingOuter"), i);
|
|
138089
138099
|
let o = e.get("paddingInner");
|
|
138090
138100
|
return o = r === "band" ? (
|
|
138091
138101
|
// only band has real paddingInner
|
|
@@ -138164,7 +138174,7 @@ function ket(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
|
|
|
138164
138174
|
else if (A.stroke.field || S)
|
|
138165
138175
|
delete A.stroke;
|
|
138166
138176
|
else if (Se(A.stroke)) {
|
|
138167
|
-
const T =
|
|
138177
|
+
const T = jn(k7(m.stroke || m.color), p.stroke, E ? p.color : void 0);
|
|
138168
138178
|
T && (A.stroke = { value: T });
|
|
138169
138179
|
}
|
|
138170
138180
|
}
|
|
@@ -138204,7 +138214,7 @@ function dae(t) {
|
|
|
138204
138214
|
return hae(t, (e, n) => Math.max(e, n.value));
|
|
138205
138215
|
}
|
|
138206
138216
|
function k7(t) {
|
|
138207
|
-
return hae(t, (e, n) =>
|
|
138217
|
+
return hae(t, (e, n) => jn(e, n.value));
|
|
138208
138218
|
}
|
|
138209
138219
|
function hae(t, e) {
|
|
138210
138220
|
if (FXe(t))
|
|
@@ -138289,7 +138299,7 @@ function qet(t, e, n, r) {
|
|
|
138289
138299
|
}
|
|
138290
138300
|
function Het(t) {
|
|
138291
138301
|
const { legend: e } = t;
|
|
138292
|
-
return
|
|
138302
|
+
return jn(e.type, zet(t));
|
|
138293
138303
|
}
|
|
138294
138304
|
function zet({ channel: t, timeUnit: e, scaleType: n }) {
|
|
138295
138305
|
if (qx(t)) {
|
|
@@ -138337,7 +138347,7 @@ function gae(t) {
|
|
|
138337
138347
|
function Yet(t) {
|
|
138338
138348
|
const { encoding: e } = t, n = {};
|
|
138339
138349
|
for (const r of [Li, ...pue]) {
|
|
138340
|
-
const i =
|
|
138350
|
+
const i = Pn(e[r]);
|
|
138341
138351
|
!i || !t.getScaleComponent(r) || r === Ii && Le(i) && i.type === Zh || (n[r] = Ket(t, r));
|
|
138342
138352
|
}
|
|
138343
138353
|
return n;
|
|
@@ -138373,7 +138383,7 @@ function Ket(t, e) {
|
|
|
138373
138383
|
if (c.set("disable", f, s !== void 0), f)
|
|
138374
138384
|
return c;
|
|
138375
138385
|
s = s || {};
|
|
138376
|
-
const x = t.getScaleComponent(e).get("type"), h =
|
|
138386
|
+
const x = t.getScaleComponent(e).get("type"), h = Pn(u[e]), p = Le(h) ? (n = hi(h.timeUnit)) === null || n === void 0 ? void 0 : n.unit : void 0, m = s.orient || a.legend.orient || "right", g = Het({ legend: s, channel: e, timeUnit: p, scaleType: x }), y = Qet({ legend: s, legendType: g, orient: m, legendConfig: l }), E = {
|
|
138377
138387
|
legend: s,
|
|
138378
138388
|
channel: e,
|
|
138379
138389
|
model: t,
|
|
@@ -138576,7 +138586,7 @@ function att(t) {
|
|
|
138576
138586
|
[qu, Uu],
|
|
138577
138587
|
[ks, wo]
|
|
138578
138588
|
])
|
|
138579
|
-
(
|
|
138589
|
+
(Pn(n[r[0]]) || Pn(n[r[1]])) && e.push({
|
|
138580
138590
|
signal: t.getName(`geojson_${e.length}`)
|
|
138581
138591
|
});
|
|
138582
138592
|
return t.channelHasField(Ii) && t.typedFieldDef(Ii).type === Zh && e.push({
|
|
@@ -139513,7 +139523,7 @@ class Ta extends jt {
|
|
|
139513
139523
|
const { stack: r, groupby: i, as: s, offset: o = "zero" } = n, u = [], a = [];
|
|
139514
139524
|
if (n.sort !== void 0)
|
|
139515
139525
|
for (const f of n.sort)
|
|
139516
|
-
u.push(f.field), a.push(
|
|
139526
|
+
u.push(f.field), a.push(jn(f.order, "ascending"));
|
|
139517
139527
|
const l = {
|
|
139518
139528
|
field: u,
|
|
139519
139529
|
order: a
|
|
@@ -139798,7 +139808,7 @@ function jtt(t, e, n, r) {
|
|
|
139798
139808
|
}
|
|
139799
139809
|
function Utt(t, e) {
|
|
139800
139810
|
const n = t.getScaleComponent(e).get("type"), { encoding: r } = t, i = jtt(t.scaleDomain(e), t.typedFieldDef(e), n, t.config.scale);
|
|
139801
|
-
return i !== t.scaleDomain(e) && (t.specifiedScales[e] = Object.assign(Object.assign({}, t.specifiedScales[e]), { domain: i })), e === "x" &&
|
|
139811
|
+
return i !== t.scaleDomain(e) && (t.specifiedScales[e] = Object.assign(Object.assign({}, t.specifiedScales[e]), { domain: i })), e === "x" && Pn(r.x2) ? Pn(r.x) ? r0(xl(n, i, t, "x"), xl(n, i, t, "x2"), "domain", "scale", U7) : xl(n, i, t, "x2") : e === "y" && Pn(r.y2) ? Pn(r.y) ? r0(xl(n, i, t, "y"), xl(n, i, t, "y2"), "domain", "scale", U7) : xl(n, i, t, "y2") : xl(n, i, t, e);
|
|
139802
139812
|
}
|
|
139803
139813
|
function qtt(t, e, n) {
|
|
139804
139814
|
return t.map((r) => ({ signal: `{data: ${AT(r, { timeUnit: n, type: e })}}` }));
|
|
@@ -139809,7 +139819,7 @@ function NR(t, e, n) {
|
|
|
139809
139819
|
return e === "temporal" || i ? qtt(t, e, i) : [t];
|
|
139810
139820
|
}
|
|
139811
139821
|
function xl(t, e, n, r) {
|
|
139812
|
-
const { encoding: i } = n, s =
|
|
139822
|
+
const { encoding: i } = n, s = Pn(i[r]), { type: o } = s, u = s.timeUnit;
|
|
139813
139823
|
if (eXe(e)) {
|
|
139814
139824
|
const f = xl(t, void 0, n, r), x = NR(e.unionWith, o, u);
|
|
139815
139825
|
return zo([...f.value, ...x]);
|
|
@@ -140177,7 +140187,7 @@ function Xtt(t) {
|
|
|
140177
140187
|
return ZJe(t) ? Object.assign({ scheme: t.name }, Is(t, ["name"])) : { scheme: t };
|
|
140178
140188
|
}
|
|
140179
140189
|
function Ktt(t, e) {
|
|
140180
|
-
const { size: n, config: r, mark: i, encoding: s } = e, o = e.getSignalName.bind(e), { type: u } =
|
|
140190
|
+
const { size: n, config: r, mark: i, encoding: s } = e, o = e.getSignalName.bind(e), { type: u } = Pn(s[t]), l = e.getScaleComponent(t).get("type"), { domain: c, domainMid: f } = e.specifiedScales[t];
|
|
140181
140191
|
switch (t) {
|
|
140182
140192
|
case pn:
|
|
140183
140193
|
case ir: {
|
|
@@ -140350,7 +140360,7 @@ function wae(t, e) {
|
|
|
140350
140360
|
function rnt(t, e) {
|
|
140351
140361
|
const n = t.component.scales, { config: r, encoding: i, markDef: s, specifiedScales: o } = t;
|
|
140352
140362
|
for (const u of be(n)) {
|
|
140353
|
-
const a = o[u], l = n[u], c = t.getScaleComponent(u), f =
|
|
140363
|
+
const a = o[u], l = n[u], c = t.getScaleComponent(u), f = Pn(i[u]), x = a[e], h = c.get("type"), p = c.get("padding"), m = c.get("paddingInner"), g = A7(h, e), y = Coe(u, e);
|
|
140354
140364
|
if (x !== void 0 && (g ? y && Te(y) : Te(zK(h, e, u))), g && y === void 0)
|
|
140355
140365
|
if (x !== void 0) {
|
|
140356
140366
|
const E = f.timeUnit, A = f.type;
|
|
@@ -140455,7 +140465,7 @@ function ant(t, e, n, r, i, s = !1) {
|
|
|
140455
140465
|
if (t === void 0) {
|
|
140456
140466
|
if (Er(e)) {
|
|
140457
140467
|
const { bandPaddingInner: o, barBandPaddingInner: u, rectBandPaddingInner: a, bandWithNestedOffsetPaddingInner: l } = i;
|
|
140458
|
-
return s ? l :
|
|
140468
|
+
return s ? l : jn(o, n === "bar" ? u : a);
|
|
140459
140469
|
} else if (Uh(e) && r === Ni.BAND)
|
|
140460
140470
|
return i.offsetBandPaddingInner;
|
|
140461
140471
|
}
|
|
@@ -140467,7 +140477,7 @@ function lnt(t, e, n, r, i, s = !1) {
|
|
|
140467
140477
|
if (s)
|
|
140468
140478
|
return u;
|
|
140469
140479
|
if (n === Ni.BAND)
|
|
140470
|
-
return
|
|
140480
|
+
return jn(
|
|
140471
140481
|
o,
|
|
140472
140482
|
/* By default, paddingOuter is paddingInner / 2. The reason is that
|
|
140473
140483
|
size (width/height) = step * (cardinality - paddingInner + 2 * paddingOuter).
|
|
@@ -140546,7 +140556,7 @@ function Iae(t) {
|
|
|
140546
140556
|
function pnt(t) {
|
|
140547
140557
|
const { encoding: e, mark: n, markDef: r } = t, i = {};
|
|
140548
140558
|
for (const s of aC) {
|
|
140549
|
-
const o =
|
|
140559
|
+
const o = Pn(e[s]);
|
|
140550
140560
|
if (o && n === Roe && s === Ii && o.type === Zh)
|
|
140551
140561
|
continue;
|
|
140552
140562
|
let u = o && o.scale;
|
|
@@ -141013,7 +141023,7 @@ class Yx extends jt {
|
|
|
141013
141023
|
[ks, wo]
|
|
141014
141024
|
]) {
|
|
141015
141025
|
const s = i.map((o) => {
|
|
141016
|
-
const u =
|
|
141026
|
+
const u = Pn(n.encoding[o]);
|
|
141017
141027
|
return Le(u) ? u.field : Yu(u) ? { expr: `${u.datum}` } : Eo(u) ? { expr: `${u.value}` } : void 0;
|
|
141018
141028
|
});
|
|
141019
141029
|
(s[0] || s[1]) && (e = new Yx(e, s, null, n.getName(`geojson_${r++}`)));
|
|
@@ -141062,7 +141072,7 @@ class Tg extends jt {
|
|
|
141062
141072
|
[ks, wo]
|
|
141063
141073
|
]) {
|
|
141064
141074
|
const i = r.map((o) => {
|
|
141065
|
-
const u =
|
|
141075
|
+
const u = Pn(n.encoding[o]);
|
|
141066
141076
|
return Le(u) ? u.field : Yu(u) ? { expr: `${u.datum}` } : Eo(u) ? { expr: `${u.value}` } : void 0;
|
|
141067
141077
|
}), s = r[0] === ks ? "2" : "";
|
|
141068
141078
|
(i[0] || i[1]) && (e = new Tg(e, n.projectionName(), i, [
|
|
@@ -141427,7 +141437,7 @@ function bnt(t, e) {
|
|
|
141427
141437
|
includeDefault: a === void 0 || !!a
|
|
141428
141438
|
});
|
|
141429
141439
|
s.component.layoutHeaders[e].title && (l = Se(l) ? l.join(", ") : l, l += ` / ${s.component.layoutHeaders[e].title}`, s.component.layoutHeaders[e].title = null);
|
|
141430
|
-
const c = Jd("labelOrient", u.header, i, e), f = u.header !== null ?
|
|
141440
|
+
const c = Jd("labelOrient", u.header, i, e), f = u.header !== null ? jn((n = u.header) === null || n === void 0 ? void 0 : n.labels, i.header.labels, !0) : !1, x = bt(["bottom", "right"], c) ? "footer" : "header";
|
|
141431
141441
|
o.layoutHeaders[e] = {
|
|
141432
141442
|
title: u.header !== null ? l : null,
|
|
141433
141443
|
facetFieldDef: u,
|
|
@@ -141962,7 +141972,7 @@ class O$ extends il {
|
|
|
141962
141972
|
}
|
|
141963
141973
|
function knt(t, e, n) {
|
|
141964
141974
|
var r;
|
|
141965
|
-
const { encoding: i, config: s } = t, o = (r =
|
|
141975
|
+
const { encoding: i, config: s } = t, o = (r = Pn(i[e])) !== null && r !== void 0 ? r : Pn(i[Ka(e)]), u = t.axis(e) || {}, { format: a, formatType: l } = u;
|
|
141966
141976
|
return vf(l) ? Object.assign({ text: zI({
|
|
141967
141977
|
fieldOrDatumDef: o,
|
|
141968
141978
|
field: "datum.value",
|
|
@@ -142046,7 +142056,7 @@ function qnt(t, e) {
|
|
|
142046
142056
|
case "gridScale":
|
|
142047
142057
|
return {
|
|
142048
142058
|
explicit: i.explicit,
|
|
142049
|
-
value:
|
|
142059
|
+
value: jn(i.value, s.value)
|
|
142050
142060
|
};
|
|
142051
142061
|
}
|
|
142052
142062
|
return TT(i, s, n, "axis");
|
|
@@ -142088,7 +142098,7 @@ const znt = /* @__PURE__ */ new Set([
|
|
|
142088
142098
|
function Qnt(t, e) {
|
|
142089
142099
|
var n, r, i;
|
|
142090
142100
|
let s = e.axis(t);
|
|
142091
|
-
const o = new O$(), u =
|
|
142101
|
+
const o = new O$(), u = Pn(e.encoding[t]), { mark: a, config: l } = e, c = (s == null ? void 0 : s.orient) || ((n = l[t === "x" ? "axisX" : "axisY"]) === null || n === void 0 ? void 0 : n.orient) || ((r = l.axis) === null || r === void 0 ? void 0 : r.orient) || Cet(t), f = e.getScaleComponent(t).get("type"), x = get(t, f, c, e.config), h = s !== void 0 ? !s : I7("disable", l.style, s == null ? void 0 : s.style, x).configValue;
|
|
142092
142102
|
if (o.set("disable", h, s !== void 0), h)
|
|
142093
142103
|
return o;
|
|
142094
142104
|
s = s || {};
|
|
@@ -142158,7 +142168,7 @@ function Jnt(t, e, { graticule: n }) {
|
|
|
142158
142168
|
if (n)
|
|
142159
142169
|
return !1;
|
|
142160
142170
|
const r = of("filled", t, e), i = t.type;
|
|
142161
|
-
return
|
|
142171
|
+
return jn(r, i !== dT && i !== xT && i !== qv);
|
|
142162
142172
|
}
|
|
142163
142173
|
function Xnt(t, e, n) {
|
|
142164
142174
|
switch (t) {
|
|
@@ -142587,7 +142597,7 @@ function Ert(t) {
|
|
|
142587
142597
|
}
|
|
142588
142598
|
}
|
|
142589
142599
|
function N$(t, e = { fromPrefix: "" }) {
|
|
142590
|
-
const { mark: n, markDef: r, encoding: i, config: s } = t, o =
|
|
142600
|
+
const { mark: n, markDef: r, encoding: i, config: s } = t, o = jn(r.clip, Art(t), vrt(t)), u = $K(r), a = i.key, l = Ert(t), c = Srt(t), f = Bt("aria", r, s), x = Yy[n].postEncodingTransform ? Yy[n].postEncodingTransform(t) : null;
|
|
142591
142601
|
return [
|
|
142592
142602
|
Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ name: t.getName("marks"), type: Yy[n].vgMark }, o ? { clip: !0 } : {}), u ? { style: u } : {}), a ? { key: a.field } : {}), l ? { sort: l } : {}), c || {}), f === !1 ? { aria: f } : {}), { from: { data: e.fromPrefix + t.requestDataName(Gt.Main) }, encode: {
|
|
142593
142603
|
update: Yy[n].encodeEntry(t)
|
|
@@ -142650,7 +142660,7 @@ class jae extends $ae {
|
|
|
142650
142660
|
initScales(e, n) {
|
|
142651
142661
|
return aC.reduce((r, i) => {
|
|
142652
142662
|
var s;
|
|
142653
|
-
const o =
|
|
142663
|
+
const o = Pn(n[i]);
|
|
142654
142664
|
return o && (r[i] = this.initScale((s = o.scale) !== null && s !== void 0 ? s : {})), r;
|
|
142655
142665
|
}, {});
|
|
142656
142666
|
}
|
|
@@ -142678,7 +142688,7 @@ class jae extends $ae {
|
|
|
142678
142688
|
}
|
|
142679
142689
|
initLegends(e) {
|
|
142680
142690
|
return fDe.reduce((n, r) => {
|
|
142681
|
-
const i =
|
|
142691
|
+
const i = Pn(e[r]);
|
|
142682
142692
|
if (i && dDe(r)) {
|
|
142683
142693
|
const s = i.legend;
|
|
142684
142694
|
n[r] = s && Si(s);
|
|
@@ -144263,9 +144273,9 @@ const m4 = class m4 extends on {
|
|
|
144263
144273
|
};
|
|
144264
144274
|
m4.instance = new m4();
|
|
144265
144275
|
let tN = m4;
|
|
144266
|
-
var D1 = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds = "pound", t))(D1 || {}), yc = /* @__PURE__ */ ((t) => (t.Bytes = "bytes", t.Kilobytes = "kb", t.Megabytes = "mb", t.Gigabytes = "gb", t.Terabytes = "tb", t))(yc || {}),
|
|
144276
|
+
var D1 = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds = "pound", t))(D1 || {}), yc = /* @__PURE__ */ ((t) => (t.Bytes = "bytes", t.Kilobytes = "kb", t.Megabytes = "mb", t.Gigabytes = "gb", t.Terabytes = "tb", t))(yc || {}), Vn = /* @__PURE__ */ ((t) => (t.Nanoseconds = "nanoseconds", t.Microseconds = "microseconds", t.Milliseconds = "milliseconds", t.Seconds = "seconds", t.Minutes = "minutes", t.Hours = "hours", t.Days = "days", t))(Vn || {});
|
|
144267
144277
|
function Prt(t) {
|
|
144268
|
-
return Object.values(
|
|
144278
|
+
return Object.values(Vn).includes(t);
|
|
144269
144279
|
}
|
|
144270
144280
|
class Mrt extends w0 {
|
|
144271
144281
|
constructor(e, n) {
|
|
@@ -144480,24 +144490,24 @@ function Jz(t, e, n = {}) {
|
|
|
144480
144490
|
return n.terse ? r = Qrt.get(e) ?? r : t === 1 && (r = r.substring(0, r.length - 1)), `${n.numFormat ? JX.format(n.numFormat, t) : t.toLocaleString()}${n.terse ? "" : " "}${r}`;
|
|
144481
144491
|
}
|
|
144482
144492
|
const Qrt = /* @__PURE__ */ new Map([
|
|
144483
|
-
[
|
|
144484
|
-
[
|
|
144485
|
-
[
|
|
144486
|
-
[
|
|
144487
|
-
[
|
|
144488
|
-
[
|
|
144489
|
-
[
|
|
144493
|
+
[Vn.Nanoseconds, "ns"],
|
|
144494
|
+
[Vn.Microseconds, "µs"],
|
|
144495
|
+
[Vn.Milliseconds, "ms"],
|
|
144496
|
+
[Vn.Seconds, "s"],
|
|
144497
|
+
[Vn.Minutes, "m"],
|
|
144498
|
+
[Vn.Hours, "h"],
|
|
144499
|
+
[Vn.Days, "d"]
|
|
144490
144500
|
]), Grt = /* @__PURE__ */ new Map([
|
|
144491
|
-
[
|
|
144492
|
-
[
|
|
144493
|
-
[
|
|
144494
|
-
[
|
|
144495
|
-
[
|
|
144496
|
-
[
|
|
144497
|
-
[
|
|
144501
|
+
[Vn.Nanoseconds, 1e3],
|
|
144502
|
+
[Vn.Microseconds, 1e3],
|
|
144503
|
+
[Vn.Milliseconds, 1e3],
|
|
144504
|
+
[Vn.Seconds, 60],
|
|
144505
|
+
[Vn.Minutes, 60],
|
|
144506
|
+
[Vn.Hours, 24],
|
|
144507
|
+
[Vn.Days, Number.MAX_VALUE]
|
|
144498
144508
|
]);
|
|
144499
144509
|
function Wrt(t, e, n) {
|
|
144500
|
-
const r = n.durationUnit && Prt(n.durationUnit) ? n.durationUnit :
|
|
144510
|
+
const r = n.durationUnit && Prt(n.durationUnit) ? n.durationUnit : Vn.Seconds, i = t.tagParse().tag, s = i.text("number"), o = i.has("duration", "terse");
|
|
144501
144511
|
let u = e, a = 0, l = [], c = !1;
|
|
144502
144512
|
for (const [f, x] of Grt)
|
|
144503
144513
|
if (f === r && (c = !0), !!c && (a = u % x, u = Math.floor(u /= x), a > 0 && (l = [
|
|
@@ -144526,7 +144536,7 @@ class Vrt extends w0 {
|
|
|
144526
144536
|
const T4 = class T4 extends on {
|
|
144527
144537
|
constructor() {
|
|
144528
144538
|
super(), this.addExtractor((e, n) => {
|
|
144529
|
-
e.duration_unit = (n == null ? void 0 : n.text()) ??
|
|
144539
|
+
e.duration_unit = (n == null ? void 0 : n.text()) ?? Vn.Seconds;
|
|
144530
144540
|
}, this.rendererName);
|
|
144531
144541
|
}
|
|
144532
144542
|
create(e, n, r, i, s) {
|
|
@@ -144751,7 +144761,7 @@ function Ky(t, e, n, r, i) {
|
|
|
144751
144761
|
export {
|
|
144752
144762
|
D1 as Currency,
|
|
144753
144763
|
yc as DataVolumeUnit,
|
|
144754
|
-
|
|
144764
|
+
Vn as DurationUnit,
|
|
144755
144765
|
xst as HTMLView,
|
|
144756
144766
|
dst as JSONView,
|
|
144757
144767
|
GX as getDrillQuery,
|