@iota-uz/sdk 0.5.4 → 0.5.5

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.
Files changed (33) hide show
  1. package/dist/client-host/identity.d.ts +4 -4
  2. package/dist/client-host/identity.js +2 -2
  3. package/dist/lens/{CascadePanel-CdeeYZsY.js → CascadePanel-DWRIo6Xv.js} +1 -1
  4. package/dist/lens/{ChartHost-DLcWF7pC.js → ChartHost-BGpwYPlh.js} +2 -2
  5. package/dist/lens/ChartPanel-Iqw_RITL.js +729 -0
  6. package/dist/lens/{CoveragePanel-C5Y50Ja8.js → CoveragePanel-Rq6Z7-u8.js} +1 -1
  7. package/dist/lens/{GaugePanel-QdD8-G_m.js → GaugePanel-CTDVSO0n.js} +1 -1
  8. package/dist/lens/{MapPanel-BYrx4srW.js → MapPanel-BJuQS56K.js} +2 -2
  9. package/dist/lens/{MetricFlowPanel-LreyGLdP.js → MetricFlowPanel-BF00TCYG.js} +2 -2
  10. package/dist/lens/{MetricHierarchyPanel-DvIh-llg.js → MetricHierarchyPanel-noemwonU.js} +2 -2
  11. package/dist/lens/{MetricRelationshipPanel-C-aL3I9t.js → MetricRelationshipPanel-CaJrg3cO.js} +2 -2
  12. package/dist/lens/{PrintReport-QqzDAR7K.js → PrintReport-4Zq5enGI.js} +5 -5
  13. package/dist/lens/{TablePanel-DFfsYjWR.js → TablePanel-Df87WuQ-.js} +1 -1
  14. package/dist/lens/{adapter-BoXhQplf.js → adapter-rxhzVMx3.js} +143 -124
  15. package/dist/lens/charts/echarts/options.d.ts.map +1 -1
  16. package/dist/lens/{index-D16WayLn.js → index-DF3Hl3Sd.js} +1 -1
  17. package/dist/lens/{index-C3g4ib1H.js → index-qRiVmQtS.js} +5 -5
  18. package/dist/lens/index.js +1 -1
  19. package/dist/lens/{install-Cw9b8dcU.js → install-CAkywSEN.js} +1 -1
  20. package/dist/lens/{install-DCnlqrJl.js → install-Cap6vjDJ.js} +1 -1
  21. package/dist/lens/{install-4afWuWQV.js → install-Djw5_7yc.js} +1 -1
  22. package/dist/lens/{install-DiwRwFDZ.js → install-RMvin9s4.js} +1 -1
  23. package/dist/lens/{metricViews-qsMUANFL.js → metricViews-BU7nWmUf.js} +1 -1
  24. package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
  25. package/dist/lens/{prefetch-3fl1oLRK.js → prefetch-sik_4zL1.js} +2 -2
  26. package/dist/lens/{prefetchPanels-DjyNoBKV.js → prefetchPanels-BQXqElQ3.js} +1 -1
  27. package/dist/lens/{print-D6eDEk5V.js → print-z1h5kzIq.js} +1 -1
  28. package/dist/lens/{scales-CuZBfqCM.js → scales-BMdWfL6A.js} +2 -2
  29. package/dist/sdk-identity.cjs +3 -3
  30. package/dist/sdk-identity.js +3 -3
  31. package/dist/sdk-identity.json +2 -2
  32. package/package.json +1 -1
  33. package/dist/lens/ChartPanel-DBX4StoU.js +0 -720
@@ -1,6 +1,6 @@
1
- import { X as sC, ao as Yi, ap as Ab, aq as lC, ar as uC } from "./index-C3g4ib1H.js";
1
+ import { X as sC, ao as Yi, ap as Ab, aq as lC, ar as uC } from "./index-qRiVmQtS.js";
2
2
  import { f as fC, r as cC } from "./keys-DenV5HsJ.js";
3
- import { s as vC, l as hC, c as dC, a as pC, e as gC, o as Et, d as mC, f as gd } from "./scales-CuZBfqCM.js";
3
+ import { s as vC, l as hC, c as dC, a as pC, e as gC, o as Et, d as mC, f as gd } from "./scales-BMdWfL6A.js";
4
4
  /*! *****************************************************************************
5
5
  Copyright (c) Microsoft Corporation.
6
6
 
@@ -288,7 +288,7 @@ function j(t) {
288
288
  function fu(t) {
289
289
  return Xi.call(t) === "[object String]";
290
290
  }
291
- function Le(t) {
291
+ function Ie(t) {
292
292
  return typeof t == "number";
293
293
  }
294
294
  function J(t) {
@@ -1140,8 +1140,8 @@ function mD(t, e, r, n, a) {
1140
1140
  }
1141
1141
  d < o.length && sc(i, o.substring(d, o.length), e, h);
1142
1142
  var m = [], y = 0, _ = 0, b = v === "truncate", S = e.lineOverflow === "truncate", x = {};
1143
- function w(se, Ee, Oe) {
1144
- se.width = Ee, se.lineHeight = Oe, y += Oe, _ = Math.max(_, Ee);
1143
+ function w(se, Le, Oe) {
1144
+ se.width = Le, se.lineHeight = Oe, y += Oe, _ = Math.max(_, Le);
1145
1145
  }
1146
1146
  e: for (var C = 0; C < i.lines.length; C++) {
1147
1147
  for (var T = i.lines[C], D = 0, M = 0, L = 0; L < T.tokens.length; L++) {
@@ -2078,8 +2078,8 @@ var lo = [0, 0, 0, 0], BD = function() {
2078
2078
  var a = this.keyframes, i = a.length, o = !1, s = $g, l = r;
2079
2079
  if (yt(r)) {
2080
2080
  var u = kD(r);
2081
- s = u, (u === 1 && !Le(r[0]) || u === 2 && !Le(r[0][0])) && (o = !0);
2082
- } else if (Le(r) && !Ea(r))
2081
+ s = u, (u === 1 && !Ie(r[0]) || u === 2 && !Ie(r[0][0])) && (o = !0);
2082
+ } else if (Ie(r) && !Ea(r))
2083
2083
  s = $s;
2084
2084
  else if (j(r))
2085
2085
  if (!isNaN(+r))
@@ -3334,12 +3334,12 @@ var jr = function() {
3334
3334
  break;
3335
3335
  }
3336
3336
  case Me.A:
3337
- var z = n[x++], G = n[x++], X = n[x++], q = n[x++], W = n[x++], ae = n[x++], se = n[x++], Ee = !n[x++], Oe = X > q ? X : q, _e = Fr(X - q) > 1e-3, De = W + ae, ee = !1;
3337
+ var z = n[x++], G = n[x++], X = n[x++], q = n[x++], W = n[x++], ae = n[x++], se = n[x++], Le = !n[x++], Oe = X > q ? X : q, _e = Fr(X - q) > 1e-3, De = W + ae, ee = !1;
3338
3338
  if (h) {
3339
3339
  var M = d[m++];
3340
3340
  g + M > y && (De = W + ae * (y - g) / M, ee = !0), g += M;
3341
3341
  }
3342
- if (_e && e.ellipse ? e.ellipse(z, G, X, q, se, W, De, Ee) : e.arc(z, G, Oe, W, De, Ee), ee)
3342
+ if (_e && e.ellipse ? e.ellipse(z, G, X, q, se, W, De, Le) : e.arc(z, G, Oe, W, De, Le), ee)
3343
3343
  break e;
3344
3344
  C && (s = Qn(W) * X + z, l = jn(W) * q + G), u = Qn(De) * X + z, f = jn(De) * q + G;
3345
3345
  break;
@@ -4502,7 +4502,7 @@ function Ko(t) {
4502
4502
  return mt(t, "");
4503
4503
  }
4504
4504
  function mt(t, e) {
4505
- return t == null ? e : j(t) ? t : Le(t) || fu(t) ? t + "" : e;
4505
+ return t == null ? e : j(t) ? t : Ie(t) || fu(t) ? t + "" : e;
4506
4506
  }
4507
4507
  function _m(t) {
4508
4508
  process.env.NODE_ENV !== "production" && Ge("`" + t + "` is invalid id or name. Must be a string or number.");
@@ -4666,7 +4666,7 @@ function T1(t, e, r, n, a) {
4666
4666
  var i = e == null || e === "auto";
4667
4667
  if (n == null)
4668
4668
  return n;
4669
- if (Le(n)) {
4669
+ if (Ie(n)) {
4670
4670
  var o = mm(r || 0, n, a);
4671
4671
  return ye(o, i ? Math.max(Ar(r || 0), Ar(n)) : e);
4672
4672
  } else {
@@ -5502,8 +5502,8 @@ function OA(t, e) {
5502
5502
  if (_ = Sr(G, m), b = Sr(G, y), S = Sr(G, p), x = Sr(G, g), T = w = Vo(_, b), D = C = Vo(S, x), (w > rr || C > rr) && (M = n * Qa(u), L = n * ta(u), E = a * Qa(l), I = a * ta(l), h < Z1)) {
5503
5503
  var X = IA(O, N, E, I, M, L, R, P);
5504
5504
  if (X) {
5505
- var q = O - X[0], W = N - X[1], ae = M - X[0], se = L - X[1], Ee = 1 / ta(LA((q * ae + W * se) / (Qo(q * q + W * W) * Qo(ae * ae + se * se))) / 2), Oe = Qo(X[0] * X[0] + X[1] * X[1]);
5506
- T = Sr(w, (n - Oe) / (Ee + 1)), D = Sr(C, (a - Oe) / (Ee - 1));
5505
+ var q = O - X[0], W = N - X[1], ae = M - X[0], se = L - X[1], Le = 1 / ta(LA((q * ae + W * se) / (Qo(q * q + W * W) * Qo(ae * ae + se * se))) / 2), Oe = Qo(X[0] * X[0] + X[1] * X[1]);
5506
+ T = Sr(w, (n - Oe) / (Le + 1)), D = Sr(C, (a - Oe) / (Le - 1));
5507
5507
  }
5508
5508
  }
5509
5509
  }
@@ -6147,7 +6147,7 @@ function lE(t) {
6147
6147
  return t <= 1e-6 && t >= -1e-6;
6148
6148
  }
6149
6149
  function Mu(t, e, r, n, a) {
6150
- return e == null || (Le(e) ? Ne[0] = Ne[1] = Ne[2] = Ne[3] = e : (process.env.NODE_ENV !== "production" && B(e.length === 4), Ne[0] = e[0], Ne[1] = e[1], Ne[2] = e[2], Ne[3] = e[3]), n && (Ne[0] = we(0, Ne[0]), Ne[1] = we(0, Ne[1]), Ne[2] = we(0, Ne[2]), Ne[3] = we(0, Ne[3])), r && (Ne[0] = -Ne[0], Ne[1] = -Ne[1], Ne[2] = -Ne[2], Ne[3] = -Ne[3]), Vm(t, Ne, "x", "width", 3, 1, a && a[0] || 0), Vm(t, Ne, "y", "height", 0, 2, a && a[1] || 0)), t;
6150
+ return e == null || (Ie(e) ? Ne[0] = Ne[1] = Ne[2] = Ne[3] = e : (process.env.NODE_ENV !== "production" && B(e.length === 4), Ne[0] = e[0], Ne[1] = e[1], Ne[2] = e[2], Ne[3] = e[3]), n && (Ne[0] = we(0, Ne[0]), Ne[1] = we(0, Ne[1]), Ne[2] = we(0, Ne[2]), Ne[3] = we(0, Ne[3])), r && (Ne[0] = -Ne[0], Ne[1] = -Ne[1], Ne[2] = -Ne[2], Ne[3] = -Ne[3]), Vm(t, Ne, "x", "width", 3, 1, a && a[0] || 0), Vm(t, Ne, "y", "height", 0, 2, a && a[1] || 0)), t;
6151
6151
  }
6152
6152
  var Ne = [0, 0, 0, 0];
6153
6153
  function Vm(t, e, r, n, a, i, o) {
@@ -6431,7 +6431,7 @@ function dE(t, e, r, n, a) {
6431
6431
  d && (t.lineOverflow = d);
6432
6432
  var p = t, g = e.get("minMargin");
6433
6433
  if (g != null)
6434
- g = Le(g) ? g / 2 : 0, p.margin = [g, g, g, g], p.__marginType = yi.minMargin;
6434
+ g = Ie(g) ? g / 2 : 0, p.margin = [g, g, g, g], p.__marginType = yi.minMargin;
6435
6435
  else {
6436
6436
  var m = e.get("textMargin");
6437
6437
  m != null && (p.margin = Sd(m), p.__marginType = yi.textMargin);
@@ -6966,7 +6966,7 @@ function LE(t, e, r, n, a) {
6966
6966
  var s = t;
6967
6967
  n === "auto" || n == null ? Xm(function(u) {
6968
6968
  u != null && u !== "-" && (j(u) ? o == null && (o = 1) : o = 0);
6969
- }, r, s, 10) : o = Le(n) ? n : n ? 1 : 0, !a && o === 1 && (a = [], Xm(function(u, f) {
6969
+ }, r, s, 10) : o = Ie(n) ? n : n ? 1 : 0, !a && o === 1 && (a = [], Xm(function(u, f) {
6970
6970
  a[f] = u != null ? u + "" : "";
6971
6971
  }, r, s, 1 / 0)), i = a ? a.length : r === za ? s.length : s[0] ? s[0].length : null;
6972
6972
  } else if (e === Jt)
@@ -7258,7 +7258,7 @@ var ql = (
7258
7258
  );
7259
7259
  function Cn(t, e) {
7260
7260
  var r = e && e.type;
7261
- return r === "ordinal" ? t : (r === "time" && !Le(t) && t != null && t !== "-" && (t = +Ki(t)), t == null || t === "" ? NaN : Number(t));
7261
+ return r === "ordinal" ? t : (r === "time" && !Ie(t) && t != null && t !== "-" && (t = +Ki(t)), t == null || t === "" ? NaN : Number(t));
7262
7262
  }
7263
7263
  Q({
7264
7264
  number: function(t) {
@@ -7279,7 +7279,7 @@ var zE = (
7279
7279
  this._resultLT = n ? 1 : -1, r == null && (r = n ? "min" : "max"), this._incomparable = r === "min" ? -1 / 0 : 1 / 0;
7280
7280
  }
7281
7281
  return t.prototype.evaluate = function(e, r) {
7282
- var n = Le(e) ? e : bu(e), a = Le(r) ? r : bu(r), i = isNaN(n), o = isNaN(a);
7282
+ var n = Ie(e) ? e : bu(e), a = Ie(r) ? r : bu(r), i = isNaN(n), o = isNaN(a);
7283
7283
  if (i && (n = this._incomparable), o && (a = this._incomparable), i && o) {
7284
7284
  var s = j(e), l = j(r);
7285
7285
  s && (n = l ? e : 0), l && (a = s ? r : 0);
@@ -7824,7 +7824,7 @@ var ho = J, un = Z, XE = typeof Int32Array > "u" ? Array : Int32Array, ZE = "e\0
7824
7824
  var n = this._getDimInfo(e);
7825
7825
  return n ? n.storeDimIndex : this._dimOmitted ? this._schema.getSourceDimensionIndex(e) : -1;
7826
7826
  }, t.prototype._recognizeDimIndex = function(e) {
7827
- if (Le(e) || e != null && !isNaN(e) && !this._getDimInfo(e) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(e) < 0))
7827
+ if (Ie(e) || e != null && !isNaN(e) && !this._getDimInfo(e) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(e) < 0))
7828
7828
  return +e;
7829
7829
  }, t.prototype._getStoreDimIndex = function(e) {
7830
7830
  var r = this.getDimensionIndex(e);
@@ -9094,7 +9094,7 @@ function Nh(t, e, r) {
9094
9094
  } else return Hf(l, n, r);
9095
9095
  }
9096
9096
  if (e === "ordinal")
9097
- return fu(t) ? a(t) : Le(t) && i(t) ? t + "" : "-";
9097
+ return fu(t) ? a(t) : Ie(t) && i(t) ? t + "" : "-";
9098
9098
  var u = bu(t);
9099
9099
  return i(u) ? $S(u) : fu(t) ? a(t) : typeof t == "boolean" ? t + "" : "-";
9100
9100
  }
@@ -9670,7 +9670,7 @@ function JL(t) {
9670
9670
  }
9671
9671
  function eI(t, e, r) {
9672
9672
  if (r != null) {
9673
- if (Le(r) || !isNaN(r) && !re(e, r))
9673
+ if (Ie(r) || !isNaN(r) && !re(e, r))
9674
9674
  return t[r];
9675
9675
  if (re(e, r))
9676
9676
  return e[r];
@@ -10936,7 +10936,7 @@ function sx(t, e, r) {
10936
10936
  }
10937
10937
  function PI(t, e) {
10938
10938
  var r = 0, n = t.scale.getExtent();
10939
- return e === "start" ? r = n[0] : e === "end" ? r = n[1] : Le(e) && !isNaN(e) ? r = e : n[0] > 0 ? r = n[0] : n[1] < 0 && (r = n[1]), r;
10939
+ return e === "start" ? r = n[0] : e === "end" ? r = n[1] : Ie(e) && !isNaN(e) ? r = e : n[0] > 0 ? r = n[0] : n[1] < 0 && (r = n[1]), r;
10940
10940
  }
10941
10941
  function lx(t, e, r, n) {
10942
10942
  var a = NaN;
@@ -11805,7 +11805,7 @@ var i2 = function(t, e, r, n) {
11805
11805
  }, e.prototype.setTimeInterval = function(r) {
11806
11806
  this._interval = r.interval, this._approxInterval = r.approxInterval, this._minLevelUnit = r.minLevelUnit;
11807
11807
  }, e.parse = function(r) {
11808
- return Le(r) ? Math.round(r) : +Ki(r);
11808
+ return Ie(r) ? Math.round(r) : +Ki(r);
11809
11809
  }, e.type = "time", e;
11810
11810
  }(pr)
11811
11811
  ), dl = [
@@ -11889,7 +11889,7 @@ function h2(t, e, r, n, a, i) {
11889
11889
  for (var G = 0; G < R.length - 1; G++) {
11890
11890
  var X = R[G].value, q = R[G + 1].value;
11891
11891
  if (X !== q) {
11892
- var W = void 0, ae = void 0, se = void 0, Ee = !1;
11892
+ var W = void 0, ae = void 0, se = void 0, Le = !1;
11893
11893
  switch (N) {
11894
11894
  case "year":
11895
11895
  W = Math.max(1, Math.round(e / Zt / 365)), ae = GS(r), se = BL(r);
@@ -11902,7 +11902,7 @@ function h2(t, e, r, n, a, i) {
11902
11902
  case "week":
11903
11903
  case "half-week":
11904
11904
  case "day":
11905
- W = s2(e), ae = sp(r), se = US(r), Ee = !0;
11905
+ W = s2(e), ae = sp(r), se = US(r), Le = !0;
11906
11906
  break;
11907
11907
  case "half-day":
11908
11908
  case "quarter-day":
@@ -11919,7 +11919,7 @@ function h2(t, e, r, n, a, i) {
11919
11919
  W = f2(e), ae = cp(r), se = ZS(r);
11920
11920
  break;
11921
11921
  }
11922
- q >= n[0] && X <= n[1] && u(W, X, q, ae, se, Ee, F), N === "year" && P.length > 1 && G === 0 && P.unshift({
11922
+ q >= n[0] && X <= n[1] && u(W, X, q, ae, se, Le, F), N === "year" && P.length > 1 && G === 0 && P.unshift({
11923
11923
  value: P[0].value - W
11924
11924
  });
11925
11925
  }
@@ -12260,7 +12260,7 @@ function My(t, e) {
12260
12260
  return Math.max(Math.abs(n[0] - o[0]), Math.abs(a[0] - s[0]), Math.abs(n[1] - o[1]), Math.abs(a[1] - s[1]));
12261
12261
  }
12262
12262
  function Ay(t) {
12263
- return Le(t) ? t : t ? 0.5 : 0;
12263
+ return Ie(t) ? t : t ? 0.5 : 0;
12264
12264
  }
12265
12265
  function C2(t, e, r) {
12266
12266
  if (r.valueDim == null)
@@ -12540,8 +12540,8 @@ var O2 = (
12540
12540
  }), this._polyline.onHoverStateChange = W, this._data = s, this._coordSys = i, this._stackedOnPoints = S, this._points = f, this._step = D, this._valueOrigin = _;
12541
12541
  var ae = r.get("triggerEvent"), se = r.get("triggerLineEvent");
12542
12542
  process.env.NODE_ENV !== "production" && se && qI("triggerLineEvent", "Use the `triggerEvent` option instead.");
12543
- var Ee = se === !0 || ae === !0 || ae === "line", Oe = se === !0 || ae === !0 || ae === "area";
12544
- this.packEventData(r, d, Ee), p && this.packEventData(r, p, Oe);
12543
+ var Le = se === !0 || ae === !0 || ae === "line", Oe = se === !0 || ae === !0 || ae === "area";
12544
+ this.packEventData(r, d, Le), p && this.packEventData(r, p, Oe);
12545
12545
  }, e.prototype.packEventData = function(r, n, a) {
12546
12546
  me(n).eventData = a ? {
12547
12547
  componentType: "series",
@@ -13611,7 +13611,7 @@ var Mn = (
13611
13611
  var m = n.get(["axisLine", "symbol"]);
13612
13612
  if (m != null) {
13613
13613
  var y = n.get(["axisLine", "symbolSize"]);
13614
- j(m) && (m = [m, m]), (j(y) || Le(y)) && (y = [y, y]);
13614
+ j(m) && (m = [m, m]), (j(y) || Ie(y)) && (y = [y, y]);
13615
13615
  var _ = Uf(n.get(["axisLine", "symbolOffset"]) || 0, y), b = y[0], S = y[1];
13616
13616
  A([{
13617
13617
  rotate: t.rotation + Math.PI / 2,
@@ -14715,7 +14715,7 @@ function vO(t, e) {
14715
14715
  };
14716
14716
  }
14717
14717
  function hO(t, e, r, n) {
14718
- if (Le(n)) {
14718
+ if (Ie(n)) {
14719
14719
  t.setTextConfig({
14720
14720
  rotation: n
14721
14721
  });
@@ -15581,7 +15581,7 @@ function kO(t, e, r) {
15581
15581
  }
15582
15582
  return u;
15583
15583
  }
15584
- var sr = new ne(), Ae = new ne(), ze = new ne(), Er = new ne(), Cr = new ne();
15584
+ var sr = new ne(), Ee = new ne(), ze = new ne(), Er = new ne(), Cr = new ne();
15585
15585
  function Qy(t, e) {
15586
15586
  if (t) {
15587
15587
  var r = t.getTextGuideLine(), n = t.getTextContent();
@@ -15592,9 +15592,9 @@ function Qy(t, e) {
15592
15592
  u && ze.copy(u);
15593
15593
  for (var h = 0; h < o.length; h++) {
15594
15594
  var d = o[h];
15595
- OO(d, 0, s, sr, Er), ne.scaleAndAdd(Ae, sr, Er, v), Ae.transform(c);
15596
- var p = t.getBoundingRect(), g = u ? u.distance(Ae) : t instanceof ge ? kO(Ae, t.path, ze) : RO(Ae, p, ze);
15597
- g < l && (l = g, Ae.transform(f), ze.transform(f), ze.toArray(i[0]), Ae.toArray(i[1]), sr.toArray(i[2]));
15595
+ OO(d, 0, s, sr, Er), ne.scaleAndAdd(Ee, sr, Er, v), Ee.transform(c);
15596
+ var p = t.getBoundingRect(), g = u ? u.distance(Ee) : t instanceof ge ? kO(Ee, t.path, ze) : RO(Ee, p, ze);
15597
+ g < l && (l = g, Ee.transform(f), ze.transform(f), ze.toArray(i[0]), Ee.toArray(i[1]), sr.toArray(i[2]));
15598
15598
  }
15599
15599
  cw(i, e.get("minTurnAngle")), r.setShape({
15600
15600
  points: i
@@ -15605,41 +15605,41 @@ function Qy(t, e) {
15605
15605
  var $u = [], dt = new ne();
15606
15606
  function cw(t, e) {
15607
15607
  if (e <= 180 && e > 0) {
15608
- e = e / 180 * Math.PI, sr.fromArray(t[0]), Ae.fromArray(t[1]), ze.fromArray(t[2]), ne.sub(Er, sr, Ae), ne.sub(Cr, ze, Ae);
15608
+ e = e / 180 * Math.PI, sr.fromArray(t[0]), Ee.fromArray(t[1]), ze.fromArray(t[2]), ne.sub(Er, sr, Ee), ne.sub(Cr, ze, Ee);
15609
15609
  var r = Er.len(), n = Cr.len();
15610
15610
  if (!(r < 1e-3 || n < 1e-3)) {
15611
15611
  Er.scale(1 / r), Cr.scale(1 / n);
15612
15612
  var a = Er.dot(Cr), i = Math.cos(e);
15613
15613
  if (i < a) {
15614
- var o = Zu(Ae.x, Ae.y, ze.x, ze.y, sr.x, sr.y, $u, !1);
15614
+ var o = Zu(Ee.x, Ee.y, ze.x, ze.y, sr.x, sr.y, $u, !1);
15615
15615
  dt.fromArray($u), dt.scaleAndAdd(Cr, o / Math.tan(Math.PI - e));
15616
- var s = ze.x !== Ae.x ? (dt.x - Ae.x) / (ze.x - Ae.x) : (dt.y - Ae.y) / (ze.y - Ae.y);
15616
+ var s = ze.x !== Ee.x ? (dt.x - Ee.x) / (ze.x - Ee.x) : (dt.y - Ee.y) / (ze.y - Ee.y);
15617
15617
  if (isNaN(s))
15618
15618
  return;
15619
- s < 0 ? ne.copy(dt, Ae) : s > 1 && ne.copy(dt, ze), dt.toArray(t[1]);
15619
+ s < 0 ? ne.copy(dt, Ee) : s > 1 && ne.copy(dt, ze), dt.toArray(t[1]);
15620
15620
  }
15621
15621
  }
15622
15622
  }
15623
15623
  }
15624
15624
  function BO(t, e, r) {
15625
15625
  if (r <= 180 && r > 0) {
15626
- r = r / 180 * Math.PI, sr.fromArray(t[0]), Ae.fromArray(t[1]), ze.fromArray(t[2]), ne.sub(Er, Ae, sr), ne.sub(Cr, ze, Ae);
15626
+ r = r / 180 * Math.PI, sr.fromArray(t[0]), Ee.fromArray(t[1]), ze.fromArray(t[2]), ne.sub(Er, Ee, sr), ne.sub(Cr, ze, Ee);
15627
15627
  var n = Er.len(), a = Cr.len();
15628
15628
  if (!(n < 1e-3 || a < 1e-3)) {
15629
15629
  Er.scale(1 / n), Cr.scale(1 / a);
15630
15630
  var i = Er.dot(e), o = Math.cos(r);
15631
15631
  if (i < o) {
15632
- var s = Zu(Ae.x, Ae.y, ze.x, ze.y, sr.x, sr.y, $u, !1);
15632
+ var s = Zu(Ee.x, Ee.y, ze.x, ze.y, sr.x, sr.y, $u, !1);
15633
15633
  dt.fromArray($u);
15634
15634
  var l = Math.PI / 2, u = Math.acos(Cr.dot(e)), f = l + u - r;
15635
15635
  if (f >= l)
15636
15636
  ne.copy(dt, ze);
15637
15637
  else {
15638
15638
  dt.scaleAndAdd(Cr, s / Math.tan(Math.PI / 2 - f));
15639
- var c = ze.x !== Ae.x ? (dt.x - Ae.x) / (ze.x - Ae.x) : (dt.y - Ae.y) / (ze.y - Ae.y);
15639
+ var c = ze.x !== Ee.x ? (dt.x - Ee.x) / (ze.x - Ee.x) : (dt.y - Ee.y) / (ze.y - Ee.y);
15640
15640
  if (isNaN(c))
15641
15641
  return;
15642
- c < 0 ? ne.copy(dt, Ae) : c > 1 && ne.copy(dt, ze);
15642
+ c < 0 ? ne.copy(dt, Ee) : c > 1 && ne.copy(dt, ze);
15643
15643
  }
15644
15644
  dt.toArray(t[1]);
15645
15645
  }
@@ -15815,21 +15815,21 @@ function HO(t) {
15815
15815
  return;
15816
15816
  }
15817
15817
  if (d(T)) {
15818
- var G = (C.startAngle + C.endAngle) / 2, X = Math.cos(G), q = Math.sin(G), W, ae, se, Ee;
15818
+ var G = (C.startAngle + C.endAngle) / 2, X = Math.cos(G), q = Math.sin(G), W, ae, se, Le;
15819
15819
  n = C.cx, a = C.cy;
15820
15820
  var Oe = E === "inside" || E === "inner";
15821
15821
  if (E === "center")
15822
- W = C.cx, ae = C.cy, Ee = "center";
15822
+ W = C.cx, ae = C.cy, Le = "center";
15823
15823
  else {
15824
15824
  var _e = (Oe ? (C.r + C.r0) / 2 * X : C.r * X) + n, De = (Oe ? (C.r + C.r0) / 2 * q : C.r * q) + a;
15825
15825
  if (W = _e + X * 3, ae = De + q * 3, !Oe) {
15826
15826
  var ee = _e + X * (F + l - C.r), he = De + q * (F + l - C.r), er = ee + (X < 0 ? -1 : 1) * z, We = he;
15827
15827
  O === "edge" ? W = X < 0 ? f + N : f + u - N : W = er + (X < 0 ? -I : I), ae = We, se = [[_e, De], [ee, he], [er, We]];
15828
15828
  }
15829
- Ee = Oe ? "center" : O === "edge" ? X > 0 ? "right" : "left" : X > 0 ? "left" : "right";
15829
+ Le = Oe ? "center" : O === "edge" ? X > 0 ? "right" : "left" : X > 0 ? "left" : "right";
15830
15830
  }
15831
15831
  var gr = Math.PI, kt = 0, tr = L.get("rotate");
15832
- if (Le(tr))
15832
+ if (Ie(tr))
15833
15833
  kt = tr * (gr / 180);
15834
15834
  else if (E === "center")
15835
15835
  kt = 0;
@@ -15846,7 +15846,7 @@ function HO(t) {
15846
15846
  verticalAlign: "middle"
15847
15847
  }), Oe) {
15848
15848
  T.setStyle({
15849
- align: Ee
15849
+ align: Le
15850
15850
  });
15851
15851
  var oo = T.states.select;
15852
15852
  oo && (oo.x += T.x, oo.y += T.y);
@@ -15862,7 +15862,7 @@ function HO(t) {
15862
15862
  maxSurfaceAngle: P.get("maxSurfaceAngle"),
15863
15863
  surfaceNormal: new ne(X, q),
15864
15864
  linePoints: se,
15865
- textAlign: Ee,
15865
+ textAlign: Le,
15866
15866
  labelDistance: I,
15867
15867
  labelAlignTo: O,
15868
15868
  edgeDistance: N,
@@ -16104,7 +16104,7 @@ function ZO(t) {
16104
16104
  var n = e.getData();
16105
16105
  n.filterSelf(function(a) {
16106
16106
  var i = n.mapDimension("value"), o = n.get(i, a);
16107
- return !(Le(o) && !isNaN(o) && o < 0);
16107
+ return !(Ie(o) && !isNaN(o) && o < 0);
16108
16108
  });
16109
16109
  }
16110
16110
  };
@@ -18801,7 +18801,7 @@ function Cl(t, e, r) {
18801
18801
  return (t[a] || Tl(s[n]) || Tl(t.style[n])) - (Tl(s[i]) || 0) - (Tl(s[o]) || 0) || 0;
18802
18802
  }
18803
18803
  function bR(t, e) {
18804
- return !t || t === "solid" || !(e > 0) ? null : t === "dashed" ? [4 * e, 2 * e] : t === "dotted" ? [e] : Le(t) ? [t] : U(t) ? t : null;
18804
+ return !t || t === "solid" || !(e > 0) ? null : t === "dashed" ? [4 * e, 2 * e] : t === "dotted" ? [e] : Ie(t) ? [t] : U(t) ? t : null;
18805
18805
  }
18806
18806
  function Rw(t) {
18807
18807
  var e = t.style, r = e.lineDash && e.lineWidth > 0 && bR(e.lineDash, e.lineWidth), n = e.lineDashOffset;
@@ -19024,7 +19024,7 @@ function z0(t, e) {
19024
19024
  function l(u) {
19025
19025
  for (var f = [r], c = !0, v = 0; v < F0.length; ++v) {
19026
19026
  var h = o[F0[v]];
19027
- if (h != null && !U(h) && !j(h) && !Le(h) && typeof h != "boolean") {
19027
+ if (h != null && !U(h) && !j(h) && !Ie(h) && typeof h != "boolean") {
19028
19028
  c = !1;
19029
19029
  break;
19030
19030
  }
@@ -19075,8 +19075,8 @@ function z0(t, e) {
19075
19075
  if (G <= 0)
19076
19076
  break;
19077
19077
  if (F % 2 === 0) {
19078
- var X = (1 - o.symbolSize) * 0.5, q = P + g[N][F] * X, W = E + m[I] * X, ae = g[N][F] * o.symbolSize, se = m[I] * o.symbolSize, Ee = z / 2 % y[R].length;
19079
- Oe(q, W, ae, se, y[R][Ee]);
19078
+ var X = (1 - o.symbolSize) * 0.5, q = P + g[N][F] * X, W = E + m[I] * X, ae = g[N][F] * o.symbolSize, se = m[I] * o.symbolSize, Le = z / 2 % y[R].length;
19079
+ Oe(q, W, ae, se, y[R][Le]);
19080
19080
  }
19081
19081
  P += g[N][F], ++z, ++F, F === g[N].length && (F = 0);
19082
19082
  }
@@ -19114,19 +19114,19 @@ function Fw(t) {
19114
19114
  function zw(t) {
19115
19115
  if (!t || t.length === 0)
19116
19116
  return [[0, 0]];
19117
- if (Le(t)) {
19117
+ if (Ie(t)) {
19118
19118
  var e = Math.ceil(t);
19119
19119
  return [[e, e]];
19120
19120
  }
19121
19121
  for (var r = !0, n = 0; n < t.length; ++n)
19122
- if (!Le(t[n])) {
19122
+ if (!Ie(t[n])) {
19123
19123
  r = !1;
19124
19124
  break;
19125
19125
  }
19126
19126
  if (r)
19127
19127
  return zw([t]);
19128
19128
  for (var a = [], n = 0; n < t.length; ++n)
19129
- if (Le(t[n])) {
19129
+ if (Ie(t[n])) {
19130
19130
  var e = Math.ceil(t[n]);
19131
19131
  a.push([e, e]);
19132
19132
  } else {
@@ -19140,7 +19140,7 @@ function zw(t) {
19140
19140
  function LR(t) {
19141
19141
  if (!t || typeof t == "object" && t.length === 0)
19142
19142
  return [0, 0];
19143
- if (Le(t)) {
19143
+ if (Ie(t)) {
19144
19144
  var e = Math.ceil(t);
19145
19145
  return [e, e];
19146
19146
  }
@@ -24628,7 +24628,7 @@ var wV = (
24628
24628
  };
24629
24629
  h.type = null, h.coord = [], h.coord[v] = -1 / 0, d.coord[v] = 1 / 0;
24630
24630
  var p = r.get("precision");
24631
- p >= 0 && Le(l) && (l = +l.toFixed(Math.min(p, 20))), h.coord[c] = d.coord[c] = l, i = [h, d, {
24631
+ p >= 0 && Ie(l) && (l = +l.toFixed(Math.min(p, 20))), h.coord[c] = d.coord[c] = l, i = [h, d, {
24632
24632
  type: o,
24633
24633
  valueIndex: n.valueIndex,
24634
24634
  // Force to use the value of calculated value.
@@ -25979,8 +25979,8 @@ function fd(t) {
25979
25979
  bi(E, O) && bi(I, N) || a.push(E, I, O, N, O, N);
25980
25980
  }
25981
25981
  function c(E, I, O, N, R, P) {
25982
- var F = Math.abs(I - E), z = Math.tan(F / 4) * 4 / 3, G = I < E ? -1 : 1, X = Math.cos(E), q = Math.sin(E), W = Math.cos(I), ae = Math.sin(I), se = X * R + O, Ee = q * P + N, Oe = W * R + O, _e = ae * P + N, De = R * z * G, ee = P * z * G;
25983
- a.push(se - De * q, Ee + ee * X, Oe + De * ae, _e - ee * W, Oe, _e);
25982
+ var F = Math.abs(I - E), z = Math.tan(F / 4) * 4 / 3, G = I < E ? -1 : 1, X = Math.cos(E), q = Math.sin(E), W = Math.cos(I), ae = Math.sin(I), se = X * R + O, Le = q * P + N, Oe = W * R + O, _e = ae * P + N, De = R * z * G, ee = P * z * G;
25983
+ a.push(se - De * q, Le + ee * X, Oe + De * ae, _e - ee * W, Oe, _e);
25984
25984
  }
25985
25985
  for (var v, h, d, p, g = 0; g < r; ) {
25986
25986
  var m = e[g++], y = g === 1;
@@ -27825,45 +27825,46 @@ function qT(t, e, r) {
27825
27825
  return !n || !a ? t : `#${n.map((o, s) => Math.round(o * r + a[s] * (1 - r))).map((o) => o.toString(16).padStart(2, "0")).join("")}`;
27826
27826
  }
27827
27827
  function t5(t, e) {
27828
- var g, m, y, _;
27828
+ var y, _, b, S;
27829
27829
  if (!t.map) throw new Error("map chart requires registered geometry");
27830
27830
  const r = It(t, t.encoding.id), n = It(t, t.encoding.label), a = It(t, t.encoding.value), i = /* @__PURE__ */ new Map();
27831
- for (const b of t.map.geoJSON.features) {
27832
- const S = Je(b.properties[t.map.featureProperty]), x = (t.map.labelProperty ? Je(b.properties[t.map.labelProperty]) : "") || (t.map.fallbackLabelProperty ? Je(b.properties[t.map.fallbackLabelProperty]) : "") || S;
27833
- S && i.set(S, x || S);
27831
+ for (const x of t.map.geoJSON.features) {
27832
+ const w = Je(x.properties[t.map.featureProperty]), C = (t.map.labelProperty ? Je(x.properties[t.map.labelProperty]) : "") || (t.map.fallbackLabelProperty ? Je(x.properties[t.map.fallbackLabelProperty]) : "") || w;
27833
+ w && i.set(w, C || w);
27834
27834
  }
27835
27835
  const o = /* @__PURE__ */ new Map(), s = [];
27836
- for (const b of t.frame.rows) {
27837
- const S = nn(b[a]);
27838
- typeof S == "number" && s.push(S);
27836
+ for (const x of t.frame.rows) {
27837
+ const w = nn(x[a]);
27838
+ typeof w == "number" && s.push(w);
27839
27839
  }
27840
- const l = ((g = t.presentation) == null ? void 0 : g.colorBy) === "rank", u = [...s].sort((b, S) => b - S), f = (b) => {
27840
+ const l = ((y = t.presentation) == null ? void 0 : y.colorBy) === "rank", u = [...s].sort((x, w) => x - w), f = (x) => {
27841
27841
  if (u.length <= 1) return 1;
27842
- const S = u.indexOf(b);
27843
- if (S < 0) return 0;
27844
- const x = u.lastIndexOf(b);
27845
- return (S + x) / 2 / (u.length - 1);
27846
- }, c = t.frame.rows.map((b) => {
27847
- const S = Je(b[r]), x = nn(b[a]), w = n >= 0 ? Je(b[n]) : "";
27848
- return S && w && o.set(S, w), {
27849
- name: S,
27842
+ const w = u.indexOf(x);
27843
+ if (w < 0) return 0;
27844
+ const C = u.lastIndexOf(x);
27845
+ return (w + C) / 2 / (u.length - 1);
27846
+ }, c = t.frame.rows.map((x) => {
27847
+ const w = Je(x[r]), C = nn(x[a]), T = n >= 0 ? Je(x[n]) : "";
27848
+ return w && T && o.set(w, T), {
27849
+ name: w,
27850
27850
  // `value` is what the visual mapping reads. The raw amount travels
27851
27851
  // beside it so tooltips remain truthful in both modes.
27852
- value: typeof x == "number" && l ? f(x) : x,
27853
- amount: x,
27854
- nodeKey: S,
27855
- displayLabel: w || i.get(S) || S
27852
+ value: typeof C == "number" && l ? f(C) : C,
27853
+ amount: C,
27854
+ nodeKey: w,
27855
+ displayLabel: T || i.get(w) || w
27856
27856
  };
27857
- }), v = s.length > 0 ? Math.min(...s) : 0, h = s.length > 0 ? Math.max(...s) : 0, d = v, p = h === v && h <= 0 ? 0 : h;
27857
+ }), v = s.length > 0 ? Math.min(...s) : 0, h = s.length > 0 ? Math.max(...s) : 0, d = v, p = h === v && h <= 0 ? 0 : h, g = c.find((x) => x.amount === h), m = g && typeof g.amount == "number" ? `${g.displayLabel}
27858
+ ${t.format(t.encoding.value ?? "", g.amount)}` : "";
27858
27859
  return {
27859
27860
  ...Bs(e),
27860
27861
  tooltip: {
27861
27862
  ...io(e),
27862
27863
  trigger: "item",
27863
- formatter: (b) => {
27864
- var M, L, E;
27865
- const S = b, x = S.name ?? "", w = ((M = S.data) == null ? void 0 : M.displayLabel) || o.get(x) || i.get(x) || x, C = (L = S.data) == null ? void 0 : L.amount, D = C == null || C === "-" ? { text: ((E = t.labels) == null ? void 0 : E.noData) ?? "No data", copy: "" } : _f(t, t.encoding.value ?? "", C);
27866
- return Qp("", [Kp(w, D.text, "", D.copy)], Yp(t.actionHint));
27864
+ formatter: (x) => {
27865
+ var E, I, O;
27866
+ const w = x, C = w.name ?? "", T = ((E = w.data) == null ? void 0 : E.displayLabel) || o.get(C) || i.get(C) || C, D = (I = w.data) == null ? void 0 : I.amount, L = D == null || D === "-" ? { text: ((O = t.labels) == null ? void 0 : O.noData) ?? "No data", copy: "" } : _f(t, t.encoding.value ?? "", D);
27867
+ return Qp("", [Kp(T, L.text, "", L.copy)], Yp(t.actionHint));
27867
27868
  }
27868
27869
  },
27869
27870
  visualMap: {
@@ -27879,21 +27880,39 @@ function t5(t, e) {
27879
27880
  bottom: 4,
27880
27881
  itemWidth: 12,
27881
27882
  itemHeight: 96,
27882
- text: [((m = t.formatAxis) == null ? void 0 : m.call(t, t.encoding.value ?? "", p)) ?? t.format(t.encoding.value ?? "", p), ((y = t.formatAxis) == null ? void 0 : y.call(t, t.encoding.value ?? "", d)) ?? t.format(t.encoding.value ?? "", d)],
27883
+ text: [((_ = t.formatAxis) == null ? void 0 : _.call(t, t.encoding.value ?? "", p)) ?? t.format(t.encoding.value ?? "", p), ((b = t.formatAxis) == null ? void 0 : b.call(t, t.encoding.value ?? "", d)) ?? t.format(t.encoding.value ?? "", d)],
27883
27884
  textStyle: { color: e.mutedText, fontSize: 10 },
27884
27885
  inRange: { color: [e.divider, t.theme.palette.accent ?? e.colors[0]] }
27885
27886
  },
27886
- ...v === h && s.length > 0 ? {
27887
- graphic: [{
27887
+ graphic: [
27888
+ ...v === h && s.length > 0 ? [{
27888
27889
  type: "group",
27889
27890
  left: "center",
27890
27891
  bottom: 8,
27891
27892
  children: [
27892
27893
  { type: "rect", shape: { x: 0, y: 1, width: 24, height: 10 }, style: { fill: t.theme.palette.accent ?? e.colors[0] } },
27893
- { type: "text", style: { x: 31, y: 0, text: ((_ = t.formatAxis) == null ? void 0 : _.call(t, t.encoding.value ?? "", h)) ?? t.format(t.encoding.value ?? "", h), fill: e.mutedText, fontSize: 10 } }
27894
+ { type: "text", style: { x: 31, y: 0, text: ((S = t.formatAxis) == null ? void 0 : S.call(t, t.encoding.value ?? "", h)) ?? t.format(t.encoding.value ?? "", h), fill: e.mutedText, fontSize: 10 } }
27894
27895
  ]
27895
- }]
27896
- } : {},
27896
+ }] : [],
27897
+ ...m ? [{
27898
+ type: "text",
27899
+ right: 12,
27900
+ top: 12,
27901
+ z: 100,
27902
+ style: {
27903
+ text: m,
27904
+ fill: e.text,
27905
+ fontSize: 11,
27906
+ fontWeight: 600,
27907
+ lineHeight: 16,
27908
+ backgroundColor: e.card,
27909
+ borderColor: e.divider,
27910
+ borderWidth: 1,
27911
+ borderRadius: 6,
27912
+ padding: [6, 8]
27913
+ }
27914
+ }] : []
27915
+ ],
27897
27916
  series: [{
27898
27917
  type: "map",
27899
27918
  map: t.map.name,
@@ -27908,7 +27927,7 @@ function t5(t, e) {
27908
27927
  // Also reserve a small clear zone between labels whose glyph bounds
27909
27928
  // merely touch; without it dense neighbouring names read as one line.
27910
27929
  padding: [4, 8],
27911
- formatter: (b) => o.get(b.name ?? "") ?? i.get(b.name ?? "") ?? b.name ?? ""
27930
+ formatter: (x) => o.get(x.name ?? "") ?? i.get(x.name ?? "") ?? x.name ?? ""
27912
27931
  },
27913
27932
  // Region centroids are fixed by the boundary geometry. Moving their
27914
27933
  // labels would visually associate names with the wrong region, so keep
@@ -28332,11 +28351,11 @@ function w5(t, e) {
28332
28351
  stacked: _,
28333
28352
  markCount: r.filter((k) => typeof k.value == "number").length
28334
28353
  }), S = (k, K) => {
28335
- var ue;
28336
- return ((ue = t.seriesColor) == null ? void 0 : ue.call(t, k, K)) ?? e.seriesColor(k) ?? e.colors[K % e.colors.length];
28354
+ var ue, Ae;
28355
+ return ((ue = t.rowColor) == null ? void 0 : ue.call(t, k, K)) ?? ((Ae = t.seriesColor) == null ? void 0 : Ae.call(t, k, K)) ?? e.seriesColor(k) ?? e.colors[K % e.colors.length];
28337
28356
  }, x = (k, K) => {
28338
- const ue = t.theme.palette.accent ?? e.colors[0] ?? e.accent, Ie = K <= 1 ? 1 : k / (K - 1);
28339
- return qT(ue, e.card, 0.25 + Ie * 0.75) ?? ue;
28357
+ const ue = t.theme.palette.accent ?? e.colors[0] ?? e.accent, Ae = K <= 1 ? 1 : k / (K - 1);
28358
+ return qT(ue, e.card, 0.25 + Ae * 0.75) ?? ue;
28340
28359
  }, w = dC({
28341
28360
  temporal: t.temporal,
28342
28361
  hasComparison: !!t.encoding.previous,
@@ -28356,12 +28375,12 @@ function w5(t, e) {
28356
28375
  e,
28357
28376
  D
28358
28377
  )) : n.map((K, ue) => {
28359
- const Ie = r.find((Vr) => Vr.category === K && Vr.series === k);
28360
- if (!Ie) return null;
28361
- const Ve = Cs(Ie, t, e), Ke = p ? S(K, ue) : g ? x(ue, n.length) : void 0;
28378
+ const Ae = r.find((Vr) => Vr.category === K && Vr.series === k);
28379
+ if (!Ae) return null;
28380
+ const Ve = Cs(Ae, t, e), Ke = p ? S(K, ue) : g ? x(ue, n.length) : void 0;
28362
28381
  return xb(
28363
28382
  Ke ? { ...Ve, itemStyle: { ...Ve.itemStyle, color: Ke } } : Ve,
28364
- Ie,
28383
+ Ae,
28365
28384
  t,
28366
28385
  e,
28367
28386
  D
@@ -28386,7 +28405,7 @@ function w5(t, e) {
28386
28405
  // painting two formatted values on top of each other.
28387
28406
  position: s ? l ? "right" : "top" : K % 2 === 0 ? "top" : "bottom",
28388
28407
  color: e.text,
28389
- formatter: (Ie) => o(Ds(Ie.value))
28408
+ formatter: (Ae) => o(Ds(Ae.value))
28390
28409
  } : void 0,
28391
28410
  // With the mark count capped above, `hideOverlap` is a last resort against
28392
28411
  // two labels that still touch rather than the rule that decides which
@@ -28405,20 +28424,20 @@ function w5(t, e) {
28405
28424
  };
28406
28425
  }), O = L ? a.flatMap((k, K) => {
28407
28426
  var Ke;
28408
- const ue = E[K] ?? [], Ie = ((Ke = t.seriesColor) == null ? void 0 : Ke.call(t, k, K)) ?? e.seriesColor(k) ?? e.colors[K % e.colors.length], Ve = ue.slice(-2);
28427
+ const ue = E[K] ?? [], Ae = ((Ke = t.seriesColor) == null ? void 0 : Ke.call(t, k, K)) ?? e.seriesColor(k) ?? e.colors[K % e.colors.length], Ve = ue.slice(-2);
28409
28428
  return Ve.length < 2 ? [] : [{
28410
28429
  type: "line",
28411
28430
  name: k || void 0,
28412
28431
  id: `lens-incomplete-tail-${K}`,
28413
28432
  z: 3,
28414
28433
  showSymbol: !0,
28415
- itemStyle: { color: Ie },
28416
- lineStyle: { type: "dashed", width: 2, color: Ie },
28417
- areaStyle: t.kind === "area" ? { opacity: 0.18, color: Ie } : void 0,
28434
+ itemStyle: { color: Ae },
28435
+ lineStyle: { type: "dashed", width: 2, color: Ae },
28436
+ areaStyle: t.kind === "area" ? { opacity: 0.18, color: Ae } : void 0,
28418
28437
  data: d ? Ve : n.map((Vr, so) => so >= ue.length - 2 ? ue[so] : null)
28419
28438
  }];
28420
28439
  }) : [], N = t.encoding.previous && C.has(Et.comparison) ? a.map((k, K) => {
28421
- var ue, Ie;
28440
+ var ue, Ae;
28422
28441
  return {
28423
28442
  type: s && !y.has(k) ? "bar" : "line",
28424
28443
  name: `${k ? `${k} · ` : ""}${((ue = t.labels) == null ? void 0 : ue.previous) ?? "Previous"}`,
@@ -28426,7 +28445,7 @@ function w5(t, e) {
28426
28445
  z: 0,
28427
28446
  barGap: s ? "-100%" : void 0,
28428
28447
  barWidth: s && m ? m : void 0,
28429
- itemStyle: { color: ((Ie = t.seriesColor) == null ? void 0 : Ie.call(t, k, K)) ?? e.seriesColor(k), opacity: 0.24 },
28448
+ itemStyle: { color: ((Ae = t.seriesColor) == null ? void 0 : Ae.call(t, k, K)) ?? e.seriesColor(k), opacity: 0.24 },
28430
28449
  lineStyle: { opacity: 0.38, type: "dashed", width: 2 },
28431
28450
  areaStyle: t.kind === "area" ? { opacity: 0.06 } : void 0,
28432
28451
  showSymbol: !1,
@@ -28451,10 +28470,10 @@ function w5(t, e) {
28451
28470
  data: Po(t, r, R.field, k, n, d)
28452
28471
  };
28453
28472
  }) : [], z = (((vg = t.temporal) == null ? void 0 : vg.movingAverages) ?? []).filter((k) => C.has(Et.average(k.window))).flatMap((k) => a.map((K, ue) => {
28454
- var Ie, Ve, Ke;
28473
+ var Ae, Ve, Ke;
28455
28474
  return {
28456
28475
  type: "line",
28457
- name: `${K ? `${K} · ` : ""}${k.label || ((Ve = (Ie = t.labels) == null ? void 0 : Ie.movingAverage) == null ? void 0 : Ve.call(Ie, k.window)) || `SMA ${k.window}`}`,
28476
+ name: `${K ? `${K} · ` : ""}${k.label || ((Ve = (Ae = t.labels) == null ? void 0 : Ae.movingAverage) == null ? void 0 : Ve.call(Ae, k.window)) || `SMA ${k.window}`}`,
28458
28477
  silent: !0,
28459
28478
  z: 5,
28460
28479
  showSymbol: !1,
@@ -28480,7 +28499,7 @@ function w5(t, e) {
28480
28499
  };
28481
28500
  }) : [], q = (pg = t.temporal) != null && pg.forecast && C.has(Et.forecast) ? a.flatMap((k, K) => {
28482
28501
  var Vr, so, zs, xg, Gs, wg;
28483
- const ue = t.temporal.forecast, Ie = ((Vr = t.seriesColor) == null ? void 0 : Vr.call(t, k, K)) ?? e.seriesColor(k) ?? e.colors[K % e.colors.length], Ve = `lens-forecast-${K}`, Ke = ue.label || ((so = t.labels) == null ? void 0 : so.forecast) || "Forecast";
28502
+ const ue = t.temporal.forecast, Ae = ((Vr = t.seriesColor) == null ? void 0 : Vr.call(t, k, K)) ?? e.seriesColor(k) ?? e.colors[K % e.colors.length], Ve = `lens-forecast-${K}`, Ke = ue.label || ((so = t.labels) == null ? void 0 : so.forecast) || "Forecast";
28484
28503
  return [
28485
28504
  {
28486
28505
  type: "line",
@@ -28488,8 +28507,8 @@ function w5(t, e) {
28488
28507
  silent: !0,
28489
28508
  z: 5,
28490
28509
  showSymbol: !1,
28491
- itemStyle: { color: Ie },
28492
- lineStyle: { type: "dashed", width: 2.5, color: Ie },
28510
+ itemStyle: { color: Ae },
28511
+ lineStyle: { type: "dashed", width: 2.5, color: Ae },
28493
28512
  data: Po(t, r, ue.valueField, k, n, d)
28494
28513
  },
28495
28514
  {
@@ -28513,7 +28532,7 @@ function w5(t, e) {
28513
28532
  stackStrategy: "all",
28514
28533
  showSymbol: !1,
28515
28534
  lineStyle: { opacity: 0 },
28516
- areaStyle: { color: Ie, opacity: 0.14 },
28535
+ areaStyle: { color: Ae, opacity: 0.14 },
28517
28536
  data: d5(t, r, ue.lowerField, ue.upperField, k, n, d)
28518
28537
  }
28519
28538
  ];
@@ -28537,15 +28556,15 @@ function w5(t, e) {
28537
28556
  fontWeight: 600
28538
28557
  }
28539
28558
  };
28540
- }), ae = (k) => d ? Ts(k) ?? k : k, se = d ? g5(r.flatMap((k) => k.timestamp === void 0 ? [] : [k.timestamp])) / 2 : 0, Ee = (k, K) => {
28559
+ }), ae = (k) => d ? Ts(k) ?? k : k, se = d ? g5(r.flatMap((k) => k.timestamp === void 0 ? [] : [k.timestamp])) / 2 : 0, Le = (k, K) => {
28541
28560
  const ue = ae(k);
28542
28561
  return typeof ue == "number" ? [{ xAxis: ue - se, itemStyle: K }, { xAxis: ue + se }] : [{ xAxis: ue, itemStyle: K }, { xAxis: ue }];
28543
28562
  }, Oe = (k, K) => {
28544
- const ue = ae(k), Ie = d ? M + se : n[n.length - 1] ?? ue;
28545
- return typeof ue == "number" ? [{ xAxis: ue - se, itemStyle: K }, { xAxis: Ie }] : [{ xAxis: ue, itemStyle: K }, { xAxis: Ie }];
28563
+ const ue = ae(k), Ae = d ? M + se : n[n.length - 1] ?? ue;
28564
+ return typeof ue == "number" ? [{ xAxis: ue - se, itemStyle: K }, { xAxis: Ae }] : [{ xAxis: ue, itemStyle: K }, { xAxis: Ae }];
28546
28565
  }, _e = [
28547
- ...D ? [Ee(T.category, { color: e.faintText, opacity: 0.12 })] : [],
28548
- ...(((mg = t.temporal) == null ? void 0 : mg.annotations) ?? []).filter((k, K) => C.has(Et.annotation(K))).map((k) => Ee(k.at, { color: e.accent, opacity: 0.09 })),
28566
+ ...D ? [Le(T.category, { color: e.faintText, opacity: 0.12 })] : [],
28567
+ ...(((mg = t.temporal) == null ? void 0 : mg.annotations) ?? []).filter((k, K) => C.has(Et.annotation(K))).map((k) => Le(k.at, { color: e.accent, opacity: 0.09 })),
28549
28568
  ...(yg = t.temporal) != null && yg.forecast && C.has(Et.forecast) ? [Oe(t.temporal.forecast.start, { color: e.faintText, opacity: 0.08 })] : []
28550
28569
  ], De = W.length > 0 ? { silent: !0, symbol: ["none", "none"], data: W } : void 0, ee = _e.length > 0 ? { silent: !0, data: _e } : void 0, he = I.map((k, K) => K === 0 && (De || ee && s) ? { ...k, ...De ? { markLine: De } : {}, ...ee && s ? { markArea: ee } : {} } : k), We = [
28551
28570
  ...ee && !s ? [{
@@ -28755,10 +28774,10 @@ const Db = 12, Xv = 8, A5 = /* @__PURE__ */ new Set(["boxplot", "heatmap", "map"
28755
28774
  let Mb;
28756
28775
  async function E5(t) {
28757
28776
  A5.has(t) && (Mb ?? (Mb = Promise.all([
28758
- import("./install-4afWuWQV.js"),
28759
- import("./install-Cw9b8dcU.js"),
28760
- import("./install-DCnlqrJl.js"),
28761
- import("./install-DiwRwFDZ.js")
28777
+ import("./install-Djw5_7yc.js"),
28778
+ import("./install-CAkywSEN.js"),
28779
+ import("./install-Cap6vjDJ.js"),
28780
+ import("./install-RMvin9s4.js")
28762
28781
  ]).then(([e, r, n, a]) => {
28763
28782
  Rn([
28764
28783
  e.install,
@@ -28858,7 +28877,7 @@ function oC(t = KR) {
28858
28877
  if (P == null || !i.encoding.category && !i.encoding.label) return;
28859
28878
  const F = (se = R.event) == null ? void 0 : se.event;
28860
28879
  if (!F) return;
28861
- const z = [i.encoding.category, i.encoding.label].find((Ee) => Ee !== void 0 && i.frame.columns.some((Oe) => Oe.name === Ee)) ?? "", G = i.format(z, P), X = y5(i, P);
28880
+ const z = [i.encoding.category, i.encoding.label].find((Le) => Le !== void 0 && i.frame.columns.some((Oe) => Oe.name === Le)) ?? "", G = i.format(z, P), X = y5(i, P);
28862
28881
  _(), y = document.createElement("div"), y.className = "lens-axis-label-tooltip", y.setAttribute("role", "tooltip"), y.textContent = [G, ...X].join(" · "), y.style.left = "0px", y.style.top = "0px", document.body.append(y);
28863
28882
  const q = y.getBoundingClientRect(), W = Math.max(
28864
28883
  Xv,