@carbon/charts-vue 1.24.0 → 1.25.0

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/index.mjs CHANGED
@@ -3516,7 +3516,7 @@ function mT(e) {
3516
3516
  d = Ki(d);
3517
3517
  var h = d.fill, p = d.align, f = d.sign, m = d.symbol, g = d.zero, v = d.width, b = d.comma, _ = d.precision, E = d.trim, x = d.type;
3518
3518
  x === "n" ? (b = !0, x = "g") : Eh[x] || (_ === void 0 && (_ = 12), E = !0, x = "g"), (g || h === "0" && p === "=") && (g = !0, h = "0", p = "=");
3519
- var S = m === "$" ? n : m === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", M = m === "$" ? r : /[%p]/.test(x) ? a : "", D = Eh[x], A = /[defgprs%]/.test(x);
3519
+ var S = m === "$" ? n : m === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", M = m === "$" ? r : /[%p]/.test(x) ? a : "", D = Eh[x], C = /[defgprs%]/.test(x);
3520
3520
  _ = _ === void 0 ? 6 : /[gprs]/.test(x) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
3521
3521
  function R($) {
3522
3522
  var H = S, P = M, B, O, w;
@@ -3525,7 +3525,7 @@ function mT(e) {
3525
3525
  else {
3526
3526
  $ = +$;
3527
3527
  var L = $ < 0 || 1 / $ < 0;
3528
- if ($ = isNaN($) ? l : D(Math.abs($), _), E && ($ = fT($)), L && +$ == 0 && f !== "+" && (L = !1), H = (L ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Th[8 + yg / 3] : "") + P + (L && f === "(" ? ")" : ""), A) {
3528
+ if ($ = isNaN($) ? l : D(Math.abs($), _), E && ($ = fT($)), L && +$ == 0 && f !== "+" && (L = !1), H = (L ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Th[8 + yg / 3] : "") + P + (L && f === "(" ? ")" : ""), C) {
3529
3529
  for (B = -1, O = $.length; ++B < O; )
3530
3530
  if (w = $.charCodeAt(B), 48 > w || w > 57) {
3531
3531
  P = (w === 46 ? i + $.slice(B + 1) : $.slice(B)) + P, $ = $.slice(0, B);
@@ -7023,8 +7023,8 @@ function ma(e, t, n) {
7023
7023
  return c = S, o = setTimeout(v, t), u ? p(S) : a;
7024
7024
  }
7025
7025
  function m(S) {
7026
- var M = S - l, D = S - c, A = t - M;
7027
- return d ? y$(A, s - D) : A;
7026
+ var M = S - l, D = S - c, C = t - M;
7027
+ return d ? y$(C, s - D) : C;
7028
7028
  }
7029
7029
  function g(S) {
7030
7030
  var M = S - l, D = S - c;
@@ -7395,7 +7395,7 @@ function I$(e) {
7395
7395
  L: Z$,
7396
7396
  m: W$,
7397
7397
  M: Y$,
7398
- p: A,
7398
+ p: C,
7399
7399
  q: j$,
7400
7400
  Q: J$,
7401
7401
  s: tM,
@@ -7444,7 +7444,7 @@ function I$(e) {
7444
7444
  }
7445
7445
  return V;
7446
7446
  }
7447
- function A(z, W, X) {
7447
+ function C(z, W, X) {
7448
7448
  var V = c.exec(W.slice(X));
7449
7449
  return V ? (z.p = u.get(V[0].toLowerCase()), X + V[0].length) : -1;
7450
7450
  }
@@ -8956,10 +8956,10 @@ function BC() {
8956
8956
  function so(e, t) {
8957
8957
  var n = [], r = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === Ys || e === Ti ? -1 : 1, u = e === Ti || e === Xs ? "x" : "y", d = e === Ys || e === Ll ? IC : NC;
8958
8958
  function h(p) {
8959
- var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), m = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : RC), g = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? UC : PC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), M = x.selectAll(".tick").data(f, t).order(), D = M.exit(), A = M.enter().append("g").attr("class", "tick"), R = M.select("line"), $ = M.select("text");
8960
- S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), M = M.merge(A), R = R.merge(A.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), $ = $.merge(A.append("text").attr("fill", "currentColor").attr(u, c * g).attr("dy", e === Ys ? "0em" : e === Ll ? "0.71em" : "0.32em")), p !== x && (S = S.transition(p), M = M.transition(p), R = R.transition(p), $ = $.transition(p), D = D.transition(p).attr("opacity", pd).attr("transform", function(H) {
8959
+ var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), m = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : RC), g = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? UC : PC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), M = x.selectAll(".tick").data(f, t).order(), D = M.exit(), C = M.enter().append("g").attr("class", "tick"), R = M.select("line"), $ = M.select("text");
8960
+ S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), M = M.merge(C), R = R.merge(C.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), $ = $.merge(C.append("text").attr("fill", "currentColor").attr(u, c * g).attr("dy", e === Ys ? "0em" : e === Ll ? "0.71em" : "0.32em")), p !== x && (S = S.transition(p), M = M.transition(p), R = R.transition(p), $ = $.transition(p), D = D.transition(p).attr("opacity", pd).attr("transform", function(H) {
8961
8961
  return isFinite(H = E(H)) ? d(H + l) : this.getAttribute("transform");
8962
- }), A.attr("opacity", pd).attr("transform", function(H) {
8962
+ }), C.attr("opacity", pd).attr("transform", function(H) {
8963
8963
  var P = this.parentNode.__axis;
8964
8964
  return d((P && isFinite(P = P(H)) ? P : E(H)) + l);
8965
8965
  })), D.remove(), S.attr("d", e === Ti || e === Xs ? a ? "M" + c * a + "," + b + "H" + l + "V" + _ + "H" + c * a : "M" + l + "," + b + "V" + _ : a ? "M" + b + "," + c * a + "V" + l + "H" + _ + "V" + c * a : "M" + b + "," + l + "H" + _), M.attr("opacity", 1).attr("transform", function(H) {
@@ -9155,10 +9155,10 @@ function tA(e) {
9155
9155
  u(this, arguments).end(_);
9156
9156
  }).tween("brush", function() {
9157
9157
  var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection, M = e.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), D = hs(S, M);
9158
- function A(R) {
9158
+ function C(R) {
9159
9159
  E.selection = R === 1 && M === null ? null : D(R), c.call(_), x.brush();
9160
9160
  }
9161
- return S !== null && M !== null ? A : A(1);
9161
+ return S !== null && M !== null ? C : C(1);
9162
9162
  }) : g.each(function() {
9163
9163
  var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent), M = u(_, E).beforestart();
9164
9164
  Ol(_), x.selection = S === null ? null : S, c.call(_), M.start(b).brush(b).end(b);
@@ -9216,7 +9216,7 @@ function tA(e) {
9216
9216
  };
9217
9217
  function h(g) {
9218
9218
  if (o && !g.touches || !n.apply(this, arguments)) return;
9219
- var v = this, b = g.target.__data__.type, _ = (i && g.metaKey ? b = "overlay" : b) === "selection" ? fd : i && g.altKey ? Sr : Or, E = e === Go ? null : YC[b], x = e === Zs ? null : XC[b], S = zo(v), M = S.extent, D = S.selection, A = M[0][0], R, $, H = M[0][1], P, B, O = M[1][0], w, L, k = M[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && g.shiftKey, Q, q, tt = Array.from(g.touches || [g], (nt) => {
9219
+ var v = this, b = g.target.__data__.type, _ = (i && g.metaKey ? b = "overlay" : b) === "selection" ? fd : i && g.altKey ? Sr : Or, E = e === Go ? null : YC[b], x = e === Zs ? null : XC[b], S = zo(v), M = S.extent, D = S.selection, C = M[0][0], R, $, H = M[0][1], P, B, O = M[1][0], w, L, k = M[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && g.shiftKey, Q, q, tt = Array.from(g.touches || [g], (nt) => {
9220
9220
  const yt = nt.identifier;
9221
9221
  return nt = tr(nt, v), nt.point0 = nt.slice(), nt.identifier = yt, nt;
9222
9222
  });
@@ -9226,7 +9226,7 @@ function tA(e) {
9226
9226
  D && (Y = !0);
9227
9227
  const nt = [tt[0], tt[1] || tt[0]];
9228
9228
  S.selection = D = [[
9229
- R = e === Go ? A : te(nt[0][0], nt[1][0]),
9229
+ R = e === Go ? C : te(nt[0][0], nt[1][0]),
9230
9230
  P = e === Zs ? H : te(nt[0][1], nt[1][1])
9231
9231
  ], [
9232
9232
  w = e === Go ? O : Jt(nt[0][0], nt[1][0]),
@@ -9261,15 +9261,15 @@ function tA(e) {
9261
9261
  switch (j = yt[0] - Oe[0], F = yt[1] - Oe[1], _) {
9262
9262
  case Vo:
9263
9263
  case fd: {
9264
- E && (j = Jt(A - R, te(O - w, j)), $ = R + j, L = w + j), x && (F = Jt(H - P, te(k - U, F)), B = P + F, Z = U + F);
9264
+ E && (j = Jt(C - R, te(O - w, j)), $ = R + j, L = w + j), x && (F = Jt(H - P, te(k - U, F)), B = P + F, Z = U + F);
9265
9265
  break;
9266
9266
  }
9267
9267
  case Or: {
9268
- tt[1] ? (E && ($ = Jt(A, te(O, tt[0][0])), L = Jt(A, te(O, tt[1][0])), E = 1), x && (B = Jt(H, te(k, tt[0][1])), Z = Jt(H, te(k, tt[1][1])), x = 1)) : (E < 0 ? (j = Jt(A - R, te(O - R, j)), $ = R + j, L = w) : E > 0 && (j = Jt(A - w, te(O - w, j)), $ = R, L = w + j), x < 0 ? (F = Jt(H - P, te(k - P, F)), B = P + F, Z = U) : x > 0 && (F = Jt(H - U, te(k - U, F)), B = P, Z = U + F));
9268
+ tt[1] ? (E && ($ = Jt(C, te(O, tt[0][0])), L = Jt(C, te(O, tt[1][0])), E = 1), x && (B = Jt(H, te(k, tt[0][1])), Z = Jt(H, te(k, tt[1][1])), x = 1)) : (E < 0 ? (j = Jt(C - R, te(O - R, j)), $ = R + j, L = w) : E > 0 && (j = Jt(C - w, te(O - w, j)), $ = R, L = w + j), x < 0 ? (F = Jt(H - P, te(k - P, F)), B = P + F, Z = U) : x > 0 && (F = Jt(H - U, te(k - U, F)), B = P, Z = U + F));
9269
9269
  break;
9270
9270
  }
9271
9271
  case Sr: {
9272
- E && ($ = Jt(A, te(O, R - j * E)), L = Jt(A, te(O, w + j * E))), x && (B = Jt(H, te(k, P - F * x)), Z = Jt(H, te(k, U + F * x)));
9272
+ E && ($ = Jt(C, te(O, R - j * E)), L = Jt(C, te(O, w + j * E))), x && (B = Jt(H, te(k, P - F * x)), Z = Jt(H, te(k, U + F * x)));
9273
9273
  break;
9274
9274
  }
9275
9275
  }
@@ -9638,8 +9638,8 @@ function uA(e, t) {
9638
9638
  for (var c = 0, u = e.length; c < u; ++c)
9639
9639
  if (h = (d = e[c]).length)
9640
9640
  for (var d, h, p = d[h - 1], f = jo(p), m = p[1] / 2 + bd, g = xt(m), v = Tt(m), b = 0; b < h; ++b, f = E, g = S, v = M, p = _) {
9641
- var _ = d[b], E = jo(_), x = _[1] / 2 + bd, S = xt(x), M = Tt(x), D = E - f, A = D >= 0 ? 1 : -1, R = A * D, $ = R > ft, H = g * S;
9642
- if (l.add(sr(H * A * xt(R), v * M + H * Tt(R))), a += $ ? D + A * _e : D, $ ^ f >= n ^ E >= n) {
9641
+ var _ = d[b], E = jo(_), x = _[1] / 2 + bd, S = xt(x), M = Tt(x), D = E - f, C = D >= 0 ? 1 : -1, R = C * D, $ = R > ft, H = g * S;
9642
+ if (l.add(sr(H * C * xt(R), v * M + H * Tt(R))), a += $ ? D + C * _e : D, $ ^ f >= n ^ E >= n) {
9643
9643
  var P = Sa(Qr(p), Qr(_));
9644
9644
  Bl(P);
9645
9645
  var B = Sa(s, P);
@@ -9688,11 +9688,11 @@ function Rm(e, t, n, r) {
9688
9688
  }
9689
9689
  function _() {
9690
9690
  v(d[0][0], d[0][1]), o.lineEnd();
9691
- var E = o.clean(), x = a.result(), S, M = x.length, D, A, R;
9691
+ var E = o.clean(), x = a.result(), S, M = x.length, D, C, R;
9692
9692
  if (d.pop(), c.push(d), d = null, !!M) {
9693
9693
  if (E & 1) {
9694
- if (A = x[0], (D = A.length - 1) > 0) {
9695
- for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < D; ++S) i.point((R = A[S])[0], R[1]);
9694
+ if (C = x[0], (D = C.length - 1) > 0) {
9695
+ for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < D; ++S) i.point((R = C[S])[0], R[1]);
9696
9696
  i.lineEnd();
9697
9697
  }
9698
9698
  return;
@@ -9788,15 +9788,15 @@ function mA(e) {
9788
9788
  if (!_) return !h && u;
9789
9789
  var E = t * v / _, x = -t * b / _, S = Sa(m, g), M = As(m, E), D = As(g, x);
9790
9790
  Fo(M, D);
9791
- var A = S, R = Cs(M, A), $ = Cs(A, A), H = R * R - $ * (Cs(M, M) - 1);
9791
+ var C = S, R = Cs(M, C), $ = Cs(C, C), H = R * R - $ * (Cs(M, M) - 1);
9792
9792
  if (!(H < 0)) {
9793
- var P = Fe(H), B = As(A, (-R - P) / $);
9793
+ var P = Fe(H), B = As(C, (-R - P) / $);
9794
9794
  if (Fo(B, M), B = Ul(B), !h) return B;
9795
9795
  var O = u[0], w = d[0], L = u[1], k = d[1], U;
9796
9796
  w < O && (U = O, O = w, w = U);
9797
9797
  var Z = w - O, j = St(Z - ft) < Ot, F = j || Z < Ot;
9798
9798
  if (!j && k < L && (U = L, L = k, k = U), F ? j ? L + k > 0 ^ B[1] < (St(B[0] - O) < Ot ? L : k) : L <= B[1] && B[1] <= k : Z > ft ^ (O <= B[0] && B[0] <= w)) {
9799
- var Y = As(A, (-R + P) / $);
9799
+ var Y = As(C, (-R + P) / $);
9800
9800
  return Fo(Y, M), [B, Ul(Y)];
9801
9801
  }
9802
9802
  }
@@ -9882,7 +9882,7 @@ function yA(e, t, n, r) {
9882
9882
  function D(O, w) {
9883
9883
  i(O, w) && u.point(O, w);
9884
9884
  }
9885
- function A() {
9885
+ function C() {
9886
9886
  for (var O = 0, w = 0, L = p.length; w < L; ++w)
9887
9887
  for (var k = p[w], U = 1, Z = k.length, j = k[0], F, Y, ot = j[0], Q = j[1]; U < Z; ++U)
9888
9888
  F = ot, Y = Q, j = k[U], ot = j[0], Q = j[1], Y <= r ? Q > r && (ot - F) * (r - Y) > (Q - Y) * (e - F) && ++O : Q <= r && (ot - F) * (r - Y) < (Q - Y) * (e - F) && --O;
@@ -9892,7 +9892,7 @@ function yA(e, t, n, r) {
9892
9892
  u = d, h = [], p = [], S = !0;
9893
9893
  }
9894
9894
  function $() {
9895
- var O = A(), w = S && O, L = (h = Tm(h)).length;
9895
+ var O = C(), w = S && O, L = (h = Tm(h)).length;
9896
9896
  (w || L) && (c.polygonStart(), w && (c.lineStart(), s(null, null, 1, c), c.lineEnd()), L && Dm(h, o, O, s, c), c.polygonEnd()), u = c, h = p = f = null;
9897
9897
  }
9898
9898
  function H() {
@@ -10230,8 +10230,8 @@ function NA(e, t) {
10230
10230
  function n(r, i, s, a, o, l, c, u, d, h, p, f, m, g) {
10231
10231
  var v = c - r, b = u - i, _ = v * v + b * b;
10232
10232
  if (_ > 4 * t && m--) {
10233
- var E = a + h, x = o + p, S = l + f, M = Fe(E * E + x * x + S * S), D = Mn(S /= M), A = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : sr(x, E), R = e(A, D), $ = R[0], H = R[1], P = $ - r, B = H - i, O = b * P - v * B;
10234
- (O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < RA) && (n(r, i, s, a, o, l, $, H, A, E /= M, x /= M, S, m, g), g.point($, H), n($, H, A, E, x, S, c, u, d, h, p, f, m, g));
10233
+ var E = a + h, x = o + p, S = l + f, M = Fe(E * E + x * x + S * S), D = Mn(S /= M), C = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : sr(x, E), R = e(C, D), $ = R[0], H = R[1], P = $ - r, B = H - i, O = b * P - v * B;
10234
+ (O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < RA) && (n(r, i, s, a, o, l, $, H, C, E /= M, x /= M, S, m, g), g.point($, H), n($, H, C, E, x, S, c, u, d, h, p, f, m, g));
10235
10235
  }
10236
10236
  }
10237
10237
  return function(r) {
@@ -10246,14 +10246,14 @@ function NA(e, t) {
10246
10246
  r.polygonEnd(), g.lineStart = b;
10247
10247
  }
10248
10248
  };
10249
- function v(D, A) {
10250
- D = e(D, A), r.point(D[0], D[1]);
10249
+ function v(D, C) {
10250
+ D = e(D, C), r.point(D[0], D[1]);
10251
10251
  }
10252
10252
  function b() {
10253
10253
  d = NaN, g.point = _, r.lineStart();
10254
10254
  }
10255
- function _(D, A) {
10256
- var R = Qr([D, A]), $ = e(D, A);
10255
+ function _(D, C) {
10256
+ var R = Qr([D, C]), $ = e(D, C);
10257
10257
  n(d, h, u, p, f, m, d = $[0], h = $[1], u = D, p = R[0], f = R[1], m = R[2], Nd, r), r.point(d, h);
10258
10258
  }
10259
10259
  function E() {
@@ -10262,8 +10262,8 @@ function NA(e, t) {
10262
10262
  function x() {
10263
10263
  b(), g.point = S, g.lineEnd = M;
10264
10264
  }
10265
- function S(D, A) {
10266
- _(i = D, A), s = d, a = h, o = p, l = f, c = m, g.point = _;
10265
+ function S(D, C) {
10266
+ _(i = D, C), s = d, a = h, o = p, l = f, c = m, g.point = _;
10267
10267
  }
10268
10268
  function M() {
10269
10269
  n(d, h, u, p, f, m, s, a, i, o, l, c, Nd, r), g.lineEnd = E, E();
@@ -10308,7 +10308,7 @@ function ao(e) {
10308
10308
  })();
10309
10309
  }
10310
10310
  function qm(e) {
10311
- var t, n = 150, r = 480, i = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, d = 0, h = 1, p = 1, f = null, m = Cd, g = null, v, b, _, E = Gl, x = 0.5, S, M, D, A, R;
10311
+ var t, n = 150, r = 480, i = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, d = 0, h = 1, p = 1, f = null, m = Cd, g = null, v, b, _, E = Gl, x = 0.5, S, M, D, C, R;
10312
10312
  function $(O) {
10313
10313
  return D(O[0] * Ut, O[1] * Ut);
10314
10314
  }
@@ -10316,7 +10316,7 @@ function qm(e) {
10316
10316
  return O = D.invert(O[0], O[1]), O && [O[0] * ie, O[1] * ie];
10317
10317
  }
10318
10318
  $.stream = function(O) {
10319
- return A && R === O ? A : A = PA(UA(u)(m(S(E(R = O)))));
10319
+ return C && R === O ? C : C = PA(UA(u)(m(S(E(R = O)))));
10320
10320
  }, $.preclip = function(O) {
10321
10321
  return arguments.length ? (m = O, f = void 0, B()) : m;
10322
10322
  }, $.postclip = function(O) {
@@ -10355,7 +10355,7 @@ function qm(e) {
10355
10355
  return u = Lm(o, l, c), M = Hl(t, w), D = Hl(u, M), S = Pd(M, x), B();
10356
10356
  }
10357
10357
  function B() {
10358
- return A = R = null, $;
10358
+ return C = R = null, $;
10359
10359
  }
10360
10360
  return function() {
10361
10361
  return t = e.apply(this, arguments), $.invert = t.invert && H, P();
@@ -10752,10 +10752,10 @@ function Li(e, t) {
10752
10752
  };
10753
10753
  }
10754
10754
  function tv(e, t, n) {
10755
- var r = e.x, i = e.y, s = e.r, a = t.x, o = t.y, l = t.r, c = n.x, u = n.y, d = n.r, h = r - a, p = r - c, f = i - o, m = i - u, g = l - s, v = d - s, b = r * r + i * i - s * s, _ = b - a * a - o * o + l * l, E = b - c * c - u * u + d * d, x = p * f - h * m, S = (f * E - m * _) / (x * 2) - r, M = (m * g - f * v) / x, D = (p * _ - h * E) / (x * 2) - i, A = (h * v - p * g) / x, R = M * M + A * A - 1, $ = 2 * (s + S * M + D * A), H = S * S + D * D - s * s, P = -(Math.abs(R) > 1e-6 ? ($ + Math.sqrt($ * $ - 4 * R * H)) / (2 * R) : H / $);
10755
+ var r = e.x, i = e.y, s = e.r, a = t.x, o = t.y, l = t.r, c = n.x, u = n.y, d = n.r, h = r - a, p = r - c, f = i - o, m = i - u, g = l - s, v = d - s, b = r * r + i * i - s * s, _ = b - a * a - o * o + l * l, E = b - c * c - u * u + d * d, x = p * f - h * m, S = (f * E - m * _) / (x * 2) - r, M = (m * g - f * v) / x, D = (p * _ - h * E) / (x * 2) - i, C = (h * v - p * g) / x, R = M * M + C * C - 1, $ = 2 * (s + S * M + D * C), H = S * S + D * D - s * s, P = -(Math.abs(R) > 1e-6 ? ($ + Math.sqrt($ * $ - 4 * R * H)) / (2 * R) : H / $);
10756
10756
  return {
10757
10757
  x: r + S + M * P,
10758
- y: i + D + A * P,
10758
+ y: i + D + C * P,
10759
10759
  r: P
10760
10760
  };
10761
10761
  }
@@ -11027,14 +11027,14 @@ function nk(e, t, n, r, i, s, a, o) {
11027
11027
  return h = (u * (t - s) - d * (e - i)) / h, [e + h * l, t + h * c];
11028
11028
  }
11029
11029
  function Is(e, t, n, r, i, s, a) {
11030
- var o = e - n, l = t - r, c = (a ? s : -s) / Pr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, m = r + d, g = (h + f) / 2, v = (p + m) / 2, b = f - h, _ = m - p, E = b * b + _ * _, x = i - s, S = h * m - f * p, M = (_ < 0 ? -1 : 1) * Pr(UM(0, x * x * E - S * S)), D = (S * _ - b * M) / E, A = (-S * b - _ * M) / E, R = (S * _ + b * M) / E, $ = (-S * b + _ * M) / E, H = D - g, P = A - v, B = R - g, O = $ - v;
11031
- return H * H + P * P > B * B + O * O && (D = R, A = $), {
11030
+ var o = e - n, l = t - r, c = (a ? s : -s) / Pr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, m = r + d, g = (h + f) / 2, v = (p + m) / 2, b = f - h, _ = m - p, E = b * b + _ * _, x = i - s, S = h * m - f * p, M = (_ < 0 ? -1 : 1) * Pr(UM(0, x * x * E - S * S)), D = (S * _ - b * M) / E, C = (-S * b - _ * M) / E, R = (S * _ + b * M) / E, $ = (-S * b + _ * M) / E, H = D - g, P = C - v, B = R - g, O = $ - v;
11031
+ return H * H + P * P > B * B + O * O && (D = R, C = $), {
11032
11032
  cx: D,
11033
- cy: A,
11033
+ cy: C,
11034
11034
  x01: -u,
11035
11035
  y01: -d,
11036
11036
  x11: D * (i / x - 1),
11037
- y11: A * (i / x - 1)
11037
+ y11: C * (i / x - 1)
11038
11038
  };
11039
11039
  }
11040
11040
  function rs() {
@@ -11045,9 +11045,9 @@ function rs() {
11045
11045
  else if (g > qs - ee)
11046
11046
  o.moveTo(p * Fn(f), p * Xe(f)), o.arc(0, 0, p, f, m, !v), h > ee && (o.moveTo(h * Fn(m), h * Xe(m)), o.arc(0, 0, h, m, f, v));
11047
11047
  else {
11048
- var b = f, _ = m, E = f, x = m, S = g, M = g, D = a.apply(this, arguments) / 2, A = D > ee && (r ? +r.apply(this, arguments) : Pr(h * h + p * p)), R = Po(Jh(p - h) / 2, +n.apply(this, arguments)), $ = R, H = R, P, B;
11049
- if (A > ee) {
11050
- var O = td(A / h * Xe(D)), w = td(A / p * Xe(D));
11048
+ var b = f, _ = m, E = f, x = m, S = g, M = g, D = a.apply(this, arguments) / 2, C = D > ee && (r ? +r.apply(this, arguments) : Pr(h * h + p * p)), R = Po(Jh(p - h) / 2, +n.apply(this, arguments)), $ = R, H = R, P, B;
11049
+ if (C > ee) {
11050
+ var O = td(C / h * Xe(D)), w = td(C / p * Xe(D));
11051
11051
  (S -= O * 2) > ee ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + m) / 2), (M -= w * 2) > ee ? (w *= v ? 1 : -1, b += w, _ -= w) : (M = 0, b = _ = (f + m) / 2);
11052
11052
  }
11053
11053
  var L = p * Fn(b), k = p * Xe(b), U = h * Fn(x), Z = h * Xe(x);
@@ -11517,7 +11517,7 @@ const bi = {
11517
11517
  };
11518
11518
  function ov() {
11519
11519
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Rk();
11520
- const t = (C) => ov(C);
11520
+ const t = (A) => ov(A);
11521
11521
  if (t.version = "3.2.6", t.removed = [], !e || !e.document || e.document.nodeType !== bi.document || !e.Element)
11522
11522
  return t.isSupported = !1, t;
11523
11523
  let {
@@ -11535,15 +11535,15 @@ function ov() {
11535
11535
  trustedTypes: p
11536
11536
  } = e, f = l.prototype, m = xi(f, "cloneNode"), g = xi(f, "remove"), v = xi(f, "nextSibling"), b = xi(f, "childNodes"), _ = xi(f, "parentNode");
11537
11537
  if (typeof a == "function") {
11538
- const C = n.createElement("template");
11539
- C.content && C.content.ownerDocument && (n = C.content.ownerDocument);
11538
+ const A = n.createElement("template");
11539
+ A.content && A.content.ownerDocument && (n = A.content.ownerDocument);
11540
11540
  }
11541
11541
  let E, x = "";
11542
11542
  const {
11543
11543
  implementation: S,
11544
11544
  createNodeIterator: M,
11545
11545
  createDocumentFragment: D,
11546
- getElementsByTagName: A
11546
+ getElementsByTagName: C
11547
11547
  } = n, {
11548
11548
  importNode: R
11549
11549
  } = r;
@@ -11599,43 +11599,43 @@ function ov() {
11599
11599
  let ai = null;
11600
11600
  const Jv = ["application/xhtml+xml", "text/html"], t1 = "text/html";
11601
11601
  let Wt = null, yr = null;
11602
- const e1 = n.createElement("form"), mu = function(C) {
11603
- return C instanceof RegExp || C instanceof Function;
11602
+ const e1 = n.createElement("form"), mu = function(A) {
11603
+ return A instanceof RegExp || A instanceof Function;
11604
11604
  }, vo = function() {
11605
- let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11606
- if (!(yr && yr === C)) {
11607
- if ((!C || typeof C != "object") && (C = {}), C = fn(C), ai = // eslint-disable-next-line unicorn/prefer-includes
11608
- Jv.indexOf(C.PARSER_MEDIA_TYPE) === -1 ? t1 : C.PARSER_MEDIA_TYPE, Wt = ai === "application/xhtml+xml" ? Qo : Js, j = Pe(C, "ALLOWED_TAGS") ? pt({}, C.ALLOWED_TAGS, Wt) : F, Y = Pe(C, "ALLOWED_ATTR") ? pt({}, C.ALLOWED_ATTR, Wt) : ot, mo = Pe(C, "ALLOWED_NAMESPACES") ? pt({}, C.ALLOWED_NAMESPACES, Qo) : Kv, fo = Pe(C, "ADD_URI_SAFE_ATTR") ? pt(fn(gu), C.ADD_URI_SAFE_ATTR, Wt) : gu, pu = Pe(C, "ADD_DATA_URI_TAGS") ? pt(fn(fu), C.ADD_DATA_URI_TAGS, Wt) : fu, mr = Pe(C, "FORBID_CONTENTS") ? pt({}, C.FORBID_CONTENTS, Wt) : du, q = Pe(C, "FORBID_TAGS") ? pt({}, C.FORBID_TAGS, Wt) : fn({}), tt = Pe(C, "FORBID_ATTR") ? pt({}, C.FORBID_ATTR, Wt) : fn({}), gr = Pe(C, "USE_PROFILES") ? C.USE_PROFILES : !1, lt = C.ALLOW_ARIA_ATTR !== !1, z = C.ALLOW_DATA_ATTR !== !1, W = C.ALLOW_UNKNOWN_PROTOCOLS || !1, X = C.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = C.SAFE_FOR_TEMPLATES || !1, ut = C.SAFE_FOR_XML !== !1, st = C.WHOLE_DOCUMENT || !1, nt = C.RETURN_DOM || !1, yt = C.RETURN_DOM_FRAGMENT || !1, Oe = C.RETURN_TRUSTED_TYPE || !1, It = C.FORCE_BODY || !1, ge = C.SANITIZE_DOM !== !1, ii = C.SANITIZE_NAMED_PROPS || !1, Vn = C.KEEP_CONTENT !== !1, Re = C.IN_PLACE || !1, Z = C.ALLOWED_URI_REGEXP || sv, vr = C.NAMESPACE || an, bs = C.MATHML_TEXT_INTEGRATION_POINTS || bs, _s = C.HTML_INTEGRATION_POINTS || _s, Q = C.CUSTOM_ELEMENT_HANDLING || {}, C.CUSTOM_ELEMENT_HANDLING && mu(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = C.CUSTOM_ELEMENT_HANDLING.tagNameCheck), C.CUSTOM_ELEMENT_HANDLING && mu(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), C.CUSTOM_ELEMENT_HANDLING && typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (z = !1), yt && (nt = !0), gr && (j = pt({}, Xd), Y = [], gr.html === !0 && (pt(j, Yd), pt(Y, Zd)), gr.svg === !0 && (pt(j, Jo), pt(Y, nl), pt(Y, Ps)), gr.svgFilters === !0 && (pt(j, tl), pt(Y, nl), pt(Y, Ps)), gr.mathMl === !0 && (pt(j, el), pt(Y, Kd), pt(Y, Ps))), C.ADD_TAGS && (j === F && (j = fn(j)), pt(j, C.ADD_TAGS, Wt)), C.ADD_ATTR && (Y === ot && (Y = fn(Y)), pt(Y, C.ADD_ATTR, Wt)), C.ADD_URI_SAFE_ATTR && pt(fo, C.ADD_URI_SAFE_ATTR, Wt), C.FORBID_CONTENTS && (mr === du && (mr = fn(mr)), pt(mr, C.FORBID_CONTENTS, Wt)), Vn && (j["#text"] = !0), st && pt(j, ["html", "head", "body"]), j.table && (pt(j, ["tbody"]), delete q.tbody), C.TRUSTED_TYPES_POLICY) {
11609
- if (typeof C.TRUSTED_TYPES_POLICY.createHTML != "function")
11605
+ let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11606
+ if (!(yr && yr === A)) {
11607
+ if ((!A || typeof A != "object") && (A = {}), A = fn(A), ai = // eslint-disable-next-line unicorn/prefer-includes
11608
+ Jv.indexOf(A.PARSER_MEDIA_TYPE) === -1 ? t1 : A.PARSER_MEDIA_TYPE, Wt = ai === "application/xhtml+xml" ? Qo : Js, j = Pe(A, "ALLOWED_TAGS") ? pt({}, A.ALLOWED_TAGS, Wt) : F, Y = Pe(A, "ALLOWED_ATTR") ? pt({}, A.ALLOWED_ATTR, Wt) : ot, mo = Pe(A, "ALLOWED_NAMESPACES") ? pt({}, A.ALLOWED_NAMESPACES, Qo) : Kv, fo = Pe(A, "ADD_URI_SAFE_ATTR") ? pt(fn(gu), A.ADD_URI_SAFE_ATTR, Wt) : gu, pu = Pe(A, "ADD_DATA_URI_TAGS") ? pt(fn(fu), A.ADD_DATA_URI_TAGS, Wt) : fu, mr = Pe(A, "FORBID_CONTENTS") ? pt({}, A.FORBID_CONTENTS, Wt) : du, q = Pe(A, "FORBID_TAGS") ? pt({}, A.FORBID_TAGS, Wt) : fn({}), tt = Pe(A, "FORBID_ATTR") ? pt({}, A.FORBID_ATTR, Wt) : fn({}), gr = Pe(A, "USE_PROFILES") ? A.USE_PROFILES : !1, lt = A.ALLOW_ARIA_ATTR !== !1, z = A.ALLOW_DATA_ATTR !== !1, W = A.ALLOW_UNKNOWN_PROTOCOLS || !1, X = A.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = A.SAFE_FOR_TEMPLATES || !1, ut = A.SAFE_FOR_XML !== !1, st = A.WHOLE_DOCUMENT || !1, nt = A.RETURN_DOM || !1, yt = A.RETURN_DOM_FRAGMENT || !1, Oe = A.RETURN_TRUSTED_TYPE || !1, It = A.FORCE_BODY || !1, ge = A.SANITIZE_DOM !== !1, ii = A.SANITIZE_NAMED_PROPS || !1, Vn = A.KEEP_CONTENT !== !1, Re = A.IN_PLACE || !1, Z = A.ALLOWED_URI_REGEXP || sv, vr = A.NAMESPACE || an, bs = A.MATHML_TEXT_INTEGRATION_POINTS || bs, _s = A.HTML_INTEGRATION_POINTS || _s, Q = A.CUSTOM_ELEMENT_HANDLING || {}, A.CUSTOM_ELEMENT_HANDLING && mu(A.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = A.CUSTOM_ELEMENT_HANDLING.tagNameCheck), A.CUSTOM_ELEMENT_HANDLING && mu(A.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = A.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), A.CUSTOM_ELEMENT_HANDLING && typeof A.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = A.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (z = !1), yt && (nt = !0), gr && (j = pt({}, Xd), Y = [], gr.html === !0 && (pt(j, Yd), pt(Y, Zd)), gr.svg === !0 && (pt(j, Jo), pt(Y, nl), pt(Y, Ps)), gr.svgFilters === !0 && (pt(j, tl), pt(Y, nl), pt(Y, Ps)), gr.mathMl === !0 && (pt(j, el), pt(Y, Kd), pt(Y, Ps))), A.ADD_TAGS && (j === F && (j = fn(j)), pt(j, A.ADD_TAGS, Wt)), A.ADD_ATTR && (Y === ot && (Y = fn(Y)), pt(Y, A.ADD_ATTR, Wt)), A.ADD_URI_SAFE_ATTR && pt(fo, A.ADD_URI_SAFE_ATTR, Wt), A.FORBID_CONTENTS && (mr === du && (mr = fn(mr)), pt(mr, A.FORBID_CONTENTS, Wt)), Vn && (j["#text"] = !0), st && pt(j, ["html", "head", "body"]), j.table && (pt(j, ["tbody"]), delete q.tbody), A.TRUSTED_TYPES_POLICY) {
11609
+ if (typeof A.TRUSTED_TYPES_POLICY.createHTML != "function")
11610
11610
  throw yi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
11611
- if (typeof C.TRUSTED_TYPES_POLICY.createScriptURL != "function")
11611
+ if (typeof A.TRUSTED_TYPES_POLICY.createScriptURL != "function")
11612
11612
  throw yi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
11613
- E = C.TRUSTED_TYPES_POLICY, x = E.createHTML("");
11613
+ E = A.TRUSTED_TYPES_POLICY, x = E.createHTML("");
11614
11614
  } else
11615
11615
  E === void 0 && (E = Ik(p, i)), E !== null && typeof x == "string" && (x = E.createHTML(""));
11616
- ae && ae(C), yr = C;
11616
+ ae && ae(A), yr = A;
11617
11617
  }
11618
- }, vu = pt({}, [...Jo, ...tl, ...Sk]), yu = pt({}, [...el, ...Tk]), n1 = function(C) {
11619
- let J = _(C);
11618
+ }, vu = pt({}, [...Jo, ...tl, ...Sk]), yu = pt({}, [...el, ...Tk]), n1 = function(A) {
11619
+ let J = _(A);
11620
11620
  (!J || !J.tagName) && (J = {
11621
11621
  namespaceURI: vr,
11622
11622
  tagName: "template"
11623
11623
  });
11624
- const K = Js(C.tagName), bt = Js(J.tagName);
11625
- return mo[C.namespaceURI] ? C.namespaceURI === xs ? J.namespaceURI === an ? K === "svg" : J.namespaceURI === ys ? K === "svg" && (bt === "annotation-xml" || bs[bt]) : !!vu[K] : C.namespaceURI === ys ? J.namespaceURI === an ? K === "math" : J.namespaceURI === xs ? K === "math" && _s[bt] : !!yu[K] : C.namespaceURI === an ? J.namespaceURI === xs && !_s[bt] || J.namespaceURI === ys && !bs[bt] ? !1 : !yu[K] && (Qv[K] || !vu[K]) : !!(ai === "application/xhtml+xml" && mo[C.namespaceURI]) : !1;
11626
- }, Gn = function(C) {
11624
+ const K = Js(A.tagName), bt = Js(J.tagName);
11625
+ return mo[A.namespaceURI] ? A.namespaceURI === xs ? J.namespaceURI === an ? K === "svg" : J.namespaceURI === ys ? K === "svg" && (bt === "annotation-xml" || bs[bt]) : !!vu[K] : A.namespaceURI === ys ? J.namespaceURI === an ? K === "math" : J.namespaceURI === xs ? K === "math" && _s[bt] : !!yu[K] : A.namespaceURI === an ? J.namespaceURI === xs && !_s[bt] || J.namespaceURI === ys && !bs[bt] ? !1 : !yu[K] && (Qv[K] || !vu[K]) : !!(ai === "application/xhtml+xml" && mo[A.namespaceURI]) : !1;
11626
+ }, Gn = function(A) {
11627
11627
  mi(t.removed, {
11628
- element: C
11628
+ element: A
11629
11629
  });
11630
11630
  try {
11631
- _(C).removeChild(C);
11631
+ _(A).removeChild(A);
11632
11632
  } catch {
11633
- g(C);
11633
+ g(A);
11634
11634
  }
11635
- }, xr = function(C, J) {
11635
+ }, xr = function(A, J) {
11636
11636
  try {
11637
11637
  mi(t.removed, {
11638
- attribute: J.getAttributeNode(C),
11638
+ attribute: J.getAttributeNode(A),
11639
11639
  from: J
11640
11640
  });
11641
11641
  } catch {
@@ -11644,7 +11644,7 @@ function ov() {
11644
11644
  from: J
11645
11645
  });
11646
11646
  }
11647
- if (J.removeAttribute(C), C === "is")
11647
+ if (J.removeAttribute(A), A === "is")
11648
11648
  if (nt || yt)
11649
11649
  try {
11650
11650
  Gn(J);
@@ -11652,19 +11652,19 @@ function ov() {
11652
11652
  }
11653
11653
  else
11654
11654
  try {
11655
- J.setAttribute(C, "");
11655
+ J.setAttribute(A, "");
11656
11656
  } catch {
11657
11657
  }
11658
- }, xu = function(C) {
11658
+ }, xu = function(A) {
11659
11659
  let J = null, K = null;
11660
11660
  if (It)
11661
- C = "<remove></remove>" + C;
11661
+ A = "<remove></remove>" + A;
11662
11662
  else {
11663
- const Nt = qd(C, /^[\r\n\t ]+/);
11663
+ const Nt = qd(A, /^[\r\n\t ]+/);
11664
11664
  K = Nt && Nt[0];
11665
11665
  }
11666
- ai === "application/xhtml+xml" && vr === an && (C = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + C + "</body></html>");
11667
- const bt = E ? E.createHTML(C) : C;
11666
+ ai === "application/xhtml+xml" && vr === an && (A = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + A + "</body></html>");
11667
+ const bt = E ? E.createHTML(A) : A;
11668
11668
  if (vr === an)
11669
11669
  try {
11670
11670
  J = new h().parseFromString(bt, ai);
@@ -11678,56 +11678,56 @@ function ov() {
11678
11678
  }
11679
11679
  }
11680
11680
  const Yt = J.body || J.documentElement;
11681
- return C && K && Yt.insertBefore(n.createTextNode(K), Yt.childNodes[0] || null), vr === an ? A.call(J, st ? "html" : "body")[0] : st ? J.documentElement : Yt;
11682
- }, bu = function(C) {
11681
+ return A && K && Yt.insertBefore(n.createTextNode(K), Yt.childNodes[0] || null), vr === an ? C.call(J, st ? "html" : "body")[0] : st ? J.documentElement : Yt;
11682
+ }, bu = function(A) {
11683
11683
  return M.call(
11684
- C.ownerDocument || C,
11685
- C,
11684
+ A.ownerDocument || A,
11685
+ A,
11686
11686
  // eslint-disable-next-line no-bitwise
11687
11687
  c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
11688
11688
  null
11689
11689
  );
11690
- }, yo = function(C) {
11691
- return C instanceof d && (typeof C.nodeName != "string" || typeof C.textContent != "string" || typeof C.removeChild != "function" || !(C.attributes instanceof u) || typeof C.removeAttribute != "function" || typeof C.setAttribute != "function" || typeof C.namespaceURI != "string" || typeof C.insertBefore != "function" || typeof C.hasChildNodes != "function");
11692
- }, _u = function(C) {
11693
- return typeof o == "function" && C instanceof o;
11690
+ }, yo = function(A) {
11691
+ return A instanceof d && (typeof A.nodeName != "string" || typeof A.textContent != "string" || typeof A.removeChild != "function" || !(A.attributes instanceof u) || typeof A.removeAttribute != "function" || typeof A.setAttribute != "function" || typeof A.namespaceURI != "string" || typeof A.insertBefore != "function" || typeof A.hasChildNodes != "function");
11692
+ }, _u = function(A) {
11693
+ return typeof o == "function" && A instanceof o;
11694
11694
  };
11695
- function on(C, J, K) {
11696
- Ns(C, (bt) => {
11695
+ function on(A, J, K) {
11696
+ Ns(A, (bt) => {
11697
11697
  bt.call(t, J, K, yr);
11698
11698
  });
11699
11699
  }
11700
- const Eu = function(C) {
11700
+ const Eu = function(A) {
11701
11701
  let J = null;
11702
- if (on($.beforeSanitizeElements, C, null), yo(C))
11703
- return Gn(C), !0;
11704
- const K = Wt(C.nodeName);
11705
- if (on($.uponSanitizeElement, C, {
11702
+ if (on($.beforeSanitizeElements, A, null), yo(A))
11703
+ return Gn(A), !0;
11704
+ const K = Wt(A.nodeName);
11705
+ if (on($.uponSanitizeElement, A, {
11706
11706
  tagName: K,
11707
11707
  allowedTags: j
11708
- }), ut && C.hasChildNodes() && !_u(C.firstElementChild) && re(/<[/\w!]/g, C.innerHTML) && re(/<[/\w!]/g, C.textContent) || C.nodeType === bi.progressingInstruction || ut && C.nodeType === bi.comment && re(/<[/\w]/g, C.data))
11709
- return Gn(C), !0;
11708
+ }), ut && A.hasChildNodes() && !_u(A.firstElementChild) && re(/<[/\w!]/g, A.innerHTML) && re(/<[/\w!]/g, A.textContent) || A.nodeType === bi.progressingInstruction || ut && A.nodeType === bi.comment && re(/<[/\w]/g, A.data))
11709
+ return Gn(A), !0;
11710
11710
  if (!j[K] || q[K]) {
11711
11711
  if (!q[K] && Su(K) && (Q.tagNameCheck instanceof RegExp && re(Q.tagNameCheck, K) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(K)))
11712
11712
  return !1;
11713
11713
  if (Vn && !mr[K]) {
11714
- const bt = _(C) || C.parentNode, Yt = b(C) || C.childNodes;
11714
+ const bt = _(A) || A.parentNode, Yt = b(A) || A.childNodes;
11715
11715
  if (Yt && bt) {
11716
11716
  const Nt = Yt.length;
11717
11717
  for (let ln = Nt - 1; ln >= 0; --ln) {
11718
11718
  const Ie = m(Yt[ln], !0);
11719
- Ie.__removalCount = (C.__removalCount || 0) + 1, bt.insertBefore(Ie, v(C));
11719
+ Ie.__removalCount = (A.__removalCount || 0) + 1, bt.insertBefore(Ie, v(A));
11720
11720
  }
11721
11721
  }
11722
11722
  }
11723
- return Gn(C), !0;
11723
+ return Gn(A), !0;
11724
11724
  }
11725
- return C instanceof l && !n1(C) || (K === "noscript" || K === "noembed" || K === "noframes") && re(/<\/no(script|embed|frames)/i, C.innerHTML) ? (Gn(C), !0) : (V && C.nodeType === bi.text && (J = C.textContent, Ns([H, P, B], (bt) => {
11725
+ return A instanceof l && !n1(A) || (K === "noscript" || K === "noembed" || K === "noframes") && re(/<\/no(script|embed|frames)/i, A.innerHTML) ? (Gn(A), !0) : (V && A.nodeType === bi.text && (J = A.textContent, Ns([H, P, B], (bt) => {
11726
11726
  J = vi(J, bt, " ");
11727
- }), C.textContent !== J && (mi(t.removed, {
11728
- element: C.cloneNode()
11729
- }), C.textContent = J)), on($.afterSanitizeElements, C, null), !1);
11730
- }, Ou = function(C, J, K) {
11727
+ }), A.textContent !== J && (mi(t.removed, {
11728
+ element: A.cloneNode()
11729
+ }), A.textContent = J)), on($.afterSanitizeElements, A, null), !1);
11730
+ }, Ou = function(A, J, K) {
11731
11731
  if (ge && (J === "id" || J === "name") && (K in n || K in e1))
11732
11732
  return !1;
11733
11733
  if (!(z && !tt[J] && re(O, J)) && !(lt && re(w, J))) {
@@ -11736,22 +11736,22 @@ function ov() {
11736
11736
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
11737
11737
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
11738
11738
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
11739
- !(Su(C) && (Q.tagNameCheck instanceof RegExp && re(Q.tagNameCheck, C) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(C)) && (Q.attributeNameCheck instanceof RegExp && re(Q.attributeNameCheck, J) || Q.attributeNameCheck instanceof Function && Q.attributeNameCheck(J)) || // Alternative, second condition checks if it's an `is`-attribute, AND
11739
+ !(Su(A) && (Q.tagNameCheck instanceof RegExp && re(Q.tagNameCheck, A) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(A)) && (Q.attributeNameCheck instanceof RegExp && re(Q.attributeNameCheck, J) || Q.attributeNameCheck instanceof Function && Q.attributeNameCheck(J)) || // Alternative, second condition checks if it's an `is`-attribute, AND
11740
11740
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
11741
11741
  J === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && re(Q.tagNameCheck, K) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(K)))
11742
11742
  ) return !1;
11743
- } else if (!fo[J] && !re(Z, vi(K, k, "")) && !((J === "src" || J === "xlink:href" || J === "href") && C !== "script" && bk(K, "data:") === 0 && pu[C]) && !(W && !re(L, vi(K, k, ""))) && K)
11743
+ } else if (!fo[J] && !re(Z, vi(K, k, "")) && !((J === "src" || J === "xlink:href" || J === "href") && A !== "script" && bk(K, "data:") === 0 && pu[A]) && !(W && !re(L, vi(K, k, ""))) && K)
11744
11744
  return !1;
11745
11745
  }
11746
11746
  return !0;
11747
- }, Su = function(C) {
11748
- return C !== "annotation-xml" && qd(C, U);
11749
- }, Tu = function(C) {
11750
- on($.beforeSanitizeAttributes, C, null);
11747
+ }, Su = function(A) {
11748
+ return A !== "annotation-xml" && qd(A, U);
11749
+ }, Tu = function(A) {
11750
+ on($.beforeSanitizeAttributes, A, null);
11751
11751
  const {
11752
11752
  attributes: J
11753
- } = C;
11754
- if (!J || yo(C))
11753
+ } = A;
11754
+ if (!J || yo(A))
11755
11755
  return;
11756
11756
  const K = {
11757
11757
  attrName: "",
@@ -11768,26 +11768,26 @@ function ov() {
11768
11768
  value: Ie
11769
11769
  } = Yt, Ye = Wt(Nt), xo = Ie;
11770
11770
  let Kt = Nt === "value" ? xo : _k(xo);
11771
- if (K.attrName = Ye, K.attrValue = Kt, K.keepAttr = !0, K.forceKeepAttr = void 0, on($.uponSanitizeAttribute, C, K), Kt = K.attrValue, ii && (Ye === "id" || Ye === "name") && (xr(Nt, C), Kt = si + Kt), ut && re(/((--!?|])>)|<\/(style|title)/i, Kt)) {
11772
- xr(Nt, C);
11771
+ if (K.attrName = Ye, K.attrValue = Kt, K.keepAttr = !0, K.forceKeepAttr = void 0, on($.uponSanitizeAttribute, A, K), Kt = K.attrValue, ii && (Ye === "id" || Ye === "name") && (xr(Nt, A), Kt = si + Kt), ut && re(/((--!?|])>)|<\/(style|title)/i, Kt)) {
11772
+ xr(Nt, A);
11773
11773
  continue;
11774
11774
  }
11775
11775
  if (K.forceKeepAttr)
11776
11776
  continue;
11777
11777
  if (!K.keepAttr) {
11778
- xr(Nt, C);
11778
+ xr(Nt, A);
11779
11779
  continue;
11780
11780
  }
11781
11781
  if (!X && re(/\/>/i, Kt)) {
11782
- xr(Nt, C);
11782
+ xr(Nt, A);
11783
11783
  continue;
11784
11784
  }
11785
11785
  V && Ns([H, P, B], (i1) => {
11786
11786
  Kt = vi(Kt, i1, " ");
11787
11787
  });
11788
- const wu = Wt(C.nodeName);
11788
+ const wu = Wt(A.nodeName);
11789
11789
  if (!Ou(wu, Ye, Kt)) {
11790
- xr(Nt, C);
11790
+ xr(Nt, A);
11791
11791
  continue;
11792
11792
  }
11793
11793
  if (E && typeof p == "object" && typeof p.getAttributeType == "function" && !ln)
@@ -11803,50 +11803,50 @@ function ov() {
11803
11803
  }
11804
11804
  if (Kt !== xo)
11805
11805
  try {
11806
- ln ? C.setAttributeNS(ln, Nt, Kt) : C.setAttribute(Nt, Kt), yo(C) ? Gn(C) : Wd(t.removed);
11806
+ ln ? A.setAttributeNS(ln, Nt, Kt) : A.setAttribute(Nt, Kt), yo(A) ? Gn(A) : Wd(t.removed);
11807
11807
  } catch {
11808
- xr(Nt, C);
11808
+ xr(Nt, A);
11809
11809
  }
11810
11810
  }
11811
- on($.afterSanitizeAttributes, C, null);
11812
- }, r1 = function C(J) {
11811
+ on($.afterSanitizeAttributes, A, null);
11812
+ }, r1 = function A(J) {
11813
11813
  let K = null;
11814
11814
  const bt = bu(J);
11815
11815
  for (on($.beforeSanitizeShadowDOM, J, null); K = bt.nextNode(); )
11816
- on($.uponSanitizeShadowNode, K, null), Eu(K), Tu(K), K.content instanceof s && C(K.content);
11816
+ on($.uponSanitizeShadowNode, K, null), Eu(K), Tu(K), K.content instanceof s && A(K.content);
11817
11817
  on($.afterSanitizeShadowDOM, J, null);
11818
11818
  };
11819
- return t.sanitize = function(C) {
11819
+ return t.sanitize = function(A) {
11820
11820
  let J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, K = null, bt = null, Yt = null, Nt = null;
11821
- if (go = !C, go && (C = "<!-->"), typeof C != "string" && !_u(C))
11822
- if (typeof C.toString == "function") {
11823
- if (C = C.toString(), typeof C != "string")
11821
+ if (go = !A, go && (A = "<!-->"), typeof A != "string" && !_u(A))
11822
+ if (typeof A.toString == "function") {
11823
+ if (A = A.toString(), typeof A != "string")
11824
11824
  throw yi("dirty is not a string, aborting");
11825
11825
  } else
11826
11826
  throw yi("toString is not a function");
11827
11827
  if (!t.isSupported)
11828
- return C;
11829
- if (kt || vo(J), t.removed = [], typeof C == "string" && (Re = !1), Re) {
11830
- if (C.nodeName) {
11831
- const Ye = Wt(C.nodeName);
11828
+ return A;
11829
+ if (kt || vo(J), t.removed = [], typeof A == "string" && (Re = !1), Re) {
11830
+ if (A.nodeName) {
11831
+ const Ye = Wt(A.nodeName);
11832
11832
  if (!j[Ye] || q[Ye])
11833
11833
  throw yi("root node is forbidden and cannot be sanitized in-place");
11834
11834
  }
11835
- } else if (C instanceof o)
11836
- K = xu("<!---->"), bt = K.ownerDocument.importNode(C, !0), bt.nodeType === bi.element && bt.nodeName === "BODY" || bt.nodeName === "HTML" ? K = bt : K.appendChild(bt);
11835
+ } else if (A instanceof o)
11836
+ K = xu("<!---->"), bt = K.ownerDocument.importNode(A, !0), bt.nodeType === bi.element && bt.nodeName === "BODY" || bt.nodeName === "HTML" ? K = bt : K.appendChild(bt);
11837
11837
  else {
11838
11838
  if (!nt && !V && !st && // eslint-disable-next-line unicorn/prefer-includes
11839
- C.indexOf("<") === -1)
11840
- return E && Oe ? E.createHTML(C) : C;
11841
- if (K = xu(C), !K)
11839
+ A.indexOf("<") === -1)
11840
+ return E && Oe ? E.createHTML(A) : A;
11841
+ if (K = xu(A), !K)
11842
11842
  return nt ? null : Oe ? x : "";
11843
11843
  }
11844
11844
  K && It && Gn(K.firstChild);
11845
- const ln = bu(Re ? C : K);
11845
+ const ln = bu(Re ? A : K);
11846
11846
  for (; Yt = ln.nextNode(); )
11847
11847
  Eu(Yt), Tu(Yt), Yt.content instanceof s && r1(Yt.content);
11848
11848
  if (Re)
11849
- return C;
11849
+ return A;
11850
11850
  if (nt) {
11851
11851
  if (yt)
11852
11852
  for (Nt = D.call(K.ownerDocument); K.firstChild; )
@@ -11861,24 +11861,24 @@ function ov() {
11861
11861
  Ie = vi(Ie, Ye, " ");
11862
11862
  }), E && Oe ? E.createHTML(Ie) : Ie;
11863
11863
  }, t.setConfig = function() {
11864
- let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11865
- vo(C), kt = !0;
11864
+ let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11865
+ vo(A), kt = !0;
11866
11866
  }, t.clearConfig = function() {
11867
11867
  yr = null, kt = !1;
11868
- }, t.isValidAttribute = function(C, J, K) {
11868
+ }, t.isValidAttribute = function(A, J, K) {
11869
11869
  yr || vo({});
11870
- const bt = Wt(C), Yt = Wt(J);
11870
+ const bt = Wt(A), Yt = Wt(J);
11871
11871
  return Ou(bt, Yt, K);
11872
- }, t.addHook = function(C, J) {
11873
- typeof J == "function" && mi($[C], J);
11874
- }, t.removeHook = function(C, J) {
11872
+ }, t.addHook = function(A, J) {
11873
+ typeof J == "function" && mi($[A], J);
11874
+ }, t.removeHook = function(A, J) {
11875
11875
  if (J !== void 0) {
11876
- const K = yk($[C], J);
11877
- return K === -1 ? void 0 : xk($[C], K, 1)[0];
11876
+ const K = yk($[A], J);
11877
+ return K === -1 ? void 0 : xk($[A], K, 1)[0];
11878
11878
  }
11879
- return Wd($[C]);
11880
- }, t.removeHooks = function(C) {
11881
- $[C] = [];
11879
+ return Wd($[A]);
11880
+ }, t.removeHooks = function(A) {
11881
+ $[A] = [];
11882
11882
  }, t.removeAllHooks = function() {
11883
11883
  $ = Jd();
11884
11884
  }, t;
@@ -13030,17 +13030,17 @@ const pv = class ta extends gt {
13030
13030
  const m = (x) => {
13031
13031
  const S = x[1] - x[0];
13032
13032
  let M = "0," + S.toString();
13033
- const D = Math.floor(l / ta.DASH_LENGTH), A = D * ta.DASH_LENGTH;
13033
+ const D = Math.floor(l / ta.DASH_LENGTH), C = D * ta.DASH_LENGTH;
13034
13034
  for (let R = 0; R < D; R++)
13035
13035
  M += "," + ta.DASH_LENGTH;
13036
- M += "," + (l - A), D % 2 === 1 && (M += ",0"), M += "," + S.toString(), M += "," + l.toString(), p.attr("stroke-dasharray", M);
13036
+ M += "," + (l - C), D % 2 === 1 && (M += ",0"), M += "," + S.toString(), M += "," + l.toString(), p.attr("stroke-dasharray", M);
13037
13037
  }, g = (x) => {
13038
13038
  const S = x.selection;
13039
13039
  S === null || S[0] === S[1] || (p.attr("x", parseFloat(a.attr("x")) + parseFloat(i.attr("x"))).attr("y", a.attr("y")).attr("width", a.attr("width")).attr("height", a.attr("height")).style("cursor", "pointer").style("display", null), m(S));
13040
13040
  }, v = (x, S) => {
13041
13041
  const M = Zg().range([0, o]).domain(f);
13042
- let D = [M.invert(x), M.invert(S)];
13043
- D[0].valueOf() === D[1].valueOf() && (D = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== D[0].valueOf() || f[1].valueOf() !== D[1].valueOf()) && this.services.zoom.handleDomainChange(D);
13042
+ let D = [M.invert(x), M.invert(S)], C = "manual";
13043
+ D[0].valueOf() === D[1].valueOf() ? (D = this.services.zoom.getDefaultZoomBarDomain(), C = "reset") : C = "manual", (f[0].valueOf() !== D[0].valueOf() || f[1].valueOf() !== D[1].valueOf()) && this.services.zoom.handleDomainChange(D, { dispatchEvent: !0, type: C });
13044
13044
  };
13045
13045
  let b;
13046
13046
  const _ = (x) => {
@@ -13057,8 +13057,8 @@ const pv = class ta extends gt {
13057
13057
  const S = this.services.domUtils.getHolder(), M = tr(s.node(), S)[0];
13058
13058
  let D = M - o * E / 2;
13059
13059
  D < 0 && (D = 0);
13060
- let A = M + o * E / 2;
13061
- A > o && (A = o), v(D, A);
13060
+ let C = M + o * E / 2;
13061
+ C > o && (C = o), v(D, C);
13062
13062
  }
13063
13063
  });
13064
13064
  }
@@ -13130,17 +13130,17 @@ class Bk extends gt {
13130
13130
  ), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Ge(g, (S) => S.value));
13131
13131
  const E = this.model.get("zoomDomain");
13132
13132
  if (s === Ze.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", g, null), this.updateClipPath(n, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", g, this.clipId), this.renderZoomBarBaseline(d, c, l), a)) {
13133
- const S = a.highlightStartMapsTo, M = a.highlightEndMapsTo, D = a.color, A = a.labelMapsTo;
13133
+ const S = a.highlightStartMapsTo, M = a.highlightEndMapsTo, D = a.color, C = a.labelMapsTo;
13134
13134
  a.data.forEach((R, $) => {
13135
13135
  N.appendOrSelect(d, `rect.highlight-${$}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[S])).attr(
13136
13136
  "width",
13137
13137
  this.xScale(R[M]) - this.xScale(R[S])
13138
13138
  ).style(
13139
13139
  "fill",
13140
- D && D.scale[R[A]] ? D.scale[R[A]] : null
13140
+ D && D.scale[R[C]] ? D.scale[R[C]] : null
13141
13141
  ).style("fill-opacity", 0.1).style(
13142
13142
  "stroke",
13143
- D && D.scale[R[A]] ? D.scale[R[A]] : null
13143
+ D && D.scale[R[C]] ? D.scale[R[C]] : null
13144
13144
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
13145
13145
  });
13146
13146
  }
@@ -13169,13 +13169,20 @@ class Bk extends gt {
13169
13169
  handleBrushedEvent(t, n, r, i) {
13170
13170
  const s = [r.invert(i[0]), r.invert(i[1])];
13171
13171
  if (this.updateBrushHandle(this.getComponentContainer(), i), t.sourceEvent != null && (t.sourceEvent.type === "mousemove" || t.sourceEvent.type === "mouseup" || t.sourceEvent.type === "mousedown" || t.sourceEvent.type === "touchstart" || t.sourceEvent.type === "touchmove" || t.sourceEvent.type === "touchend")) {
13172
+ let a = "manual";
13173
+ if (n && n[0] && n[1]) {
13174
+ const l = this.services.zoom.getDefaultZoomBarDomain();
13175
+ s[0].valueOf() === l[0].valueOf() && s[1].valueOf() === l[1].valueOf() ? a = "reset" : a = "manual";
13176
+ }
13172
13177
  (n === void 0 || n[0] !== s[0] || n[1] !== s[1]) && this.services.zoom.handleDomainChange(s, {
13173
- dispatchEvent: !1
13178
+ dispatchEvent: !1,
13179
+ type: a
13174
13180
  });
13175
- let a;
13176
- t.type === "start" ? a = T.ZoomBar.SELECTION_START : t.type === "brush" ? a = T.ZoomBar.SELECTION_IN_PROGRESS : t.type === "end" && (a = T.ZoomBar.SELECTION_END, this.services.events.dispatchEvent(T.ZoomDomain.CHANGE, {
13177
- newDomain: s
13178
- })), this.services.events.dispatchEvent(a, {
13181
+ let o;
13182
+ t.type === "start" ? o = T.ZoomBar.SELECTION_START : t.type === "brush" ? o = T.ZoomBar.SELECTION_IN_PROGRESS : t.type === "end" && (o = T.ZoomBar.SELECTION_END, this.services.events.dispatchEvent(T.ZoomDomain.CHANGE, {
13183
+ newDomain: s,
13184
+ type: a
13185
+ })), this.services.events.dispatchEvent(o, {
13179
13186
  selection: i,
13180
13187
  newDomain: s
13181
13188
  });
@@ -13302,8 +13309,8 @@ class Hk extends gt {
13302
13309
  x,
13303
13310
  S,
13304
13311
  E
13305
- ), A = I(this);
13306
- c === G.TOP || c === G.BOTTOM ? (A.selectAll("line.threshold-line").transition().call(
13312
+ ), C = I(this);
13313
+ c === G.TOP || c === G.BOTTOM ? (C.selectAll("line.threshold-line").transition().call(
13307
13314
  (R) => l.services.transitions.setupTransition({
13308
13315
  transition: R,
13309
13316
  name: "threshold-line-update",
@@ -13315,7 +13322,7 @@ class Hk extends gt {
13315
13322
  ).attr(
13316
13323
  "x2",
13317
13324
  ({ datum: R }) => M(R) + (f ? u.step() / 2 : 0)
13318
- ).style("stroke", ({ fillColor: R }) => R), A.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) => -M(R)).attr("width", Math.abs(v - b)).classed("rotate", !0)) : (A.selectAll("line.threshold-line").transition().call(
13325
+ ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) => -M(R)).attr("width", Math.abs(v - b)).classed("rotate", !0)) : (C.selectAll("line.threshold-line").transition().call(
13319
13326
  (R) => l.services.transitions.setupTransition({
13320
13327
  transition: R,
13321
13328
  name: "threshold-line-update",
@@ -13327,7 +13334,7 @@ class Hk extends gt {
13327
13334
  ).attr(
13328
13335
  "y2",
13329
13336
  ({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
13330
- ).style("stroke", ({ fillColor: R }) => R), A.selectAll("rect.threshold-hoverable-area").attr("x", m).attr("y", ({ datum: R }) => D(R)).attr("width", Math.abs(g - m)).classed("rotate", !1));
13337
+ ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", m).attr("y", ({ datum: R }) => D(R)).attr("width", Math.abs(g - m)).classed("rotate", !1));
13331
13338
  }), this.services.events.addEventListener(T.Threshold.SHOW, (c) => {
13332
13339
  this.setThresholdLabelPosition(c.detail), this.label.classed("hidden", !1);
13333
13340
  }), this.services.events.addEventListener(T.Threshold.HIDE, () => {
@@ -13449,8 +13456,8 @@ class Vk extends gt {
13449
13456
  })
13450
13457
  ).attr("y", Math.max(m + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: M, ...D }) => E(D[M])).attr(
13451
13458
  "width",
13452
- ({ highlightStartMapsTo: M, highlightEndMapsTo: D, ...A }) => Math.max(E(A[D]) - E(A[M]), 0)
13453
- ).style("stroke", ({ color: M, labelMapsTo: D, ...A }) => M && M.scale[A[D]] ? M.scale[A[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: D, ...A }) => M && M.scale[A[D]] ? M.scale[A[D]] : null) : S.selectAll("rect.highlight-bar").transition().call(
13459
+ ({ highlightStartMapsTo: M, highlightEndMapsTo: D, ...C }) => Math.max(E(C[D]) - E(C[M]), 0)
13460
+ ).style("stroke", ({ color: M, labelMapsTo: D, ...C }) => M && M.scale[C[D]] ? M.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: D, ...C }) => M && M.scale[C[D]] ? M.scale[C[D]] : null) : S.selectAll("rect.highlight-bar").transition().call(
13454
13461
  (M) => l.services.transitions.setupTransition({
13455
13462
  transition: M,
13456
13463
  name: "highlight-bar-update",
@@ -13458,8 +13465,8 @@ class Vk extends gt {
13458
13465
  })
13459
13466
  ).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo: M, ...D }) => x(D[M])).attr(
13460
13467
  "height",
13461
- ({ highlightStartMapsTo: M, highlightEndMapsTo: D, ...A }) => Math.max(x(A[M]) - x(A[D]), 0)
13462
- ).style("stroke", ({ color: M, labelMapsTo: D, ...A }) => M && M.scale[A[D]] ? M.scale[A[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: D, ...A }) => M && M.scale[A[D]] ? M.scale[A[D]] : null);
13468
+ ({ highlightStartMapsTo: M, highlightEndMapsTo: D, ...C }) => Math.max(x(C[M]) - x(C[D]), 0)
13469
+ ).style("stroke", ({ color: M, labelMapsTo: D, ...C }) => M && M.scale[C[D]] ? M.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: D, ...C }) => M && M.scale[C[D]] ? M.scale[C[D]] : null);
13463
13470
  });
13464
13471
  }
13465
13472
  }
@@ -13778,9 +13785,9 @@ function Yk() {
13778
13785
  }
13779
13786
  function D(O, w) {
13780
13787
  const L = O.length >> 1, k = O[L];
13781
- R(O, k.y0 - a, L - 1, w), A(O, k.y1 + a, L + 1, w), R(O, r, O.length - 1, w), A(O, t, 0, w);
13788
+ R(O, k.y0 - a, L - 1, w), C(O, k.y1 + a, L + 1, w), R(O, r, O.length - 1, w), C(O, t, 0, w);
13782
13789
  }
13783
- function A(O, w, L, k) {
13790
+ function C(O, w, L, k) {
13784
13791
  for (; L < O.length; ++L) {
13785
13792
  const U = O[L], Z = (w - U.y0) * k;
13786
13793
  Z > 1e-6 && (U.y0 += Z, U.y1 += Z), w = U.y1 + a;
@@ -14843,7 +14850,7 @@ class yv extends gt {
14843
14850
  f.attr("aria-hidden", !0);
14844
14851
  return;
14845
14852
  }
14846
- const E = y(g, "scaleType"), x = y(r, "data", "loading"), S = y(g, "ticks", "number"), M = y(g, "ticks", "values"), D = y(g, "truncation", "type"), A = y(g, "truncation", "threshold"), R = y(g, "truncation", "numCharacter"), $ = S !== null, H = y(r, "timeScale"), P = N.appendOrSelect(m, "g.tick"), B = N.appendOrSelect(P, "text").text("0"), O = N.getSVGElementSize(B.node(), {
14853
+ const E = y(g, "scaleType"), x = y(r, "data", "loading"), S = y(g, "ticks", "number"), M = y(g, "ticks", "values"), D = y(g, "truncation", "type"), C = y(g, "truncation", "threshold"), R = y(g, "truncation", "numCharacter"), $ = S !== null, H = y(r, "timeScale"), P = N.appendOrSelect(m, "g.tick"), B = N.appendOrSelect(P, "text").text("0"), O = N.getSVGElementSize(B.node(), {
14847
14854
  useBBox: !0
14848
14855
  }).height;
14849
14856
  P.remove();
@@ -15006,9 +15013,9 @@ class yv extends gt {
15006
15013
  l.selectAll("g.ticks g.tick").html(tt);
15007
15014
  const lt = this;
15008
15015
  l.selectAll("g.tick text").data(q).text(function(z) {
15009
- return z.length > A ? (lt.truncation[n] = !0, Qi(z, D, R)) : z;
15016
+ return z.length > C ? (lt.truncation[n] = !0, Qi(z, D, R)) : z;
15010
15017
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(q).text(function(z) {
15011
- return z.length > A ? Qi(z, D, R) : z;
15018
+ return z.length > C ? Qi(z, D, R) : z;
15012
15019
  }), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(q);
15013
15020
  }
15014
15021
  }
@@ -15449,7 +15456,7 @@ class uD extends gt {
15449
15456
  const H = f.getDomainValue($[i]) - E / 4, P = H + E / 2, B = f.getRangeValue($.whiskers.max), O = f.getRangeValue($.whiskers.max);
15450
15457
  return se({ x0: H, x1: P, y0: B, y1: O }, m);
15451
15458
  });
15452
- const A = D.selectAll("circle.outlier").data(
15459
+ const C = D.selectAll("circle.outlier").data(
15453
15460
  ($) => $.outliers.map((H) => ({
15454
15461
  min: $.whiskers.min,
15455
15462
  max: $.whiskers.max,
@@ -15457,9 +15464,9 @@ class uD extends gt {
15457
15464
  value: H
15458
15465
  }))
15459
15466
  );
15460
- A.exit().remove();
15461
- const R = A.enter().append("circle");
15462
- A.merge(R).attr("r", Se.circle.radius).attr(
15467
+ C.exit().remove();
15468
+ const R = C.enter().append("circle");
15469
+ C.merge(R).attr("r", Se.circle.radius).attr(
15463
15470
  "class",
15464
15471
  () => this.model.getColorClassName({
15465
15472
  classNameTypes: [it.FILL, it.STROKE],
@@ -16154,8 +16161,8 @@ class xv extends eu {
16154
16161
  }
16155
16162
  const c = !Ue(s), u = Ug(this.model.getDisplayData()), d = !(i <= Rt.color.barWidth), h = d ? Rt.color.barWidth : i, p = N.appendOrSelect(r, "g.legend"), f = N.appendOrSelect(p, "g.legend-axis");
16156
16163
  if (l) {
16157
- const A = N.appendOrSelect(r, "g.legend-title");
16158
- N.appendOrSelect(A, "text").text(l).attr("dy", "0.7em"), p.attr("transform", "translate(0, 16)");
16164
+ const C = N.appendOrSelect(r, "g.legend-title");
16165
+ N.appendOrSelect(C, "text").text(l).attr("dy", "0.7em"), p.attr("transform", "translate(0, 16)");
16159
16166
  }
16160
16167
  const m = u[0] < 0 && u[1] > 0 ? "diverge" : "mono";
16161
16168
  (o < 1 && o > 4 && m === "mono" || o < 1 && o > 2 && m === "diverge") && (o = 1);
@@ -16164,12 +16171,12 @@ class xv extends eu {
16164
16171
  if (c)
16165
16172
  g = s;
16166
16173
  else
16167
- for (let A = 1; A < v + 1; A++)
16174
+ for (let C = 1; C < v + 1; C++)
16168
16175
  g.push(
16169
- a === zs.LINEAR ? `stop-color-${m}-${o}-${A}` : `fill-${m}-${o}-${A}`
16176
+ a === zs.LINEAR ? `stop-color-${m}-${o}-${C}` : `fill-${m}-${o}-${C}`
16170
16177
  );
16171
16178
  const b = ye(u[0], u[1]), _ = FC(b, 3), E = ze().domain(u).range([0, h]), x = qc(E).tickSize(0).tickValues(_), { code: S, number: M } = y(n, "locale");
16172
- x.tickFormat((A) => M(A, S));
16179
+ x.tickFormat((C) => M(C, S));
16173
16180
  let D;
16174
16181
  switch (a) {
16175
16182
  case zs.LINEAR:
@@ -16557,55 +16564,55 @@ class bv extends gt {
16557
16564
  ariaLabel: "pie graph"
16558
16565
  }), i = this.getOptions(), { groupMapsTo: s } = i.data, { valueMapsTo: a } = i.pie;
16559
16566
  this.isRendering = !0;
16560
- const o = this.model.getDisplayData().filter((A) => A[a] > 0), l = this.computeRadius();
16567
+ const o = this.model.getDisplayData().filter((C) => C[a] > 0), l = this.computeRadius();
16561
16568
  this.arc = rs().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = rs().innerRadius(this.getInnerRadius()).outerRadius(l + Mt.hoverArc.outerRadiusOffset);
16562
- const c = sk().value((A) => A[a]).sort(y(i, "pie", "sortFunction")).padAngle(Mt.padAngle)(o), u = N.appendOrSelect(r, "g.slices").attr("role", ht.GROUP).attr("data-name", "slices").selectAll("path.slice").data(c, (A) => A.data[s]);
16569
+ const c = sk().value((C) => C[a]).sort(y(i, "pie", "sortFunction")).padAngle(Mt.padAngle)(o), u = N.appendOrSelect(r, "g.slices").attr("role", ht.GROUP).attr("data-name", "slices").selectAll("path.slice").data(c, (C) => C.data[s]);
16563
16570
  u.exit().attr("opacity", 0).remove(), u.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(u).attr(
16564
16571
  "class",
16565
- (A) => this.model.getColorClassName({
16572
+ (C) => this.model.getColorClassName({
16566
16573
  classNameTypes: [it.FILL],
16567
- dataGroupName: A.data[s],
16574
+ dataGroupName: C.data[s],
16568
16575
  originalClassName: "slice"
16569
16576
  })
16570
- ).style("fill", (A) => n.model.getFillColor(A.data[s], null, A.data)).attr("d", this.arc).transition().call(
16571
- (A) => this.services.transitions.setupTransition({
16572
- transition: A,
16577
+ ).style("fill", (C) => n.model.getFillColor(C.data[s], null, C.data)).attr("d", this.arc).transition().call(
16578
+ (C) => this.services.transitions.setupTransition({
16579
+ transition: C,
16573
16580
  name: "pie_slice_enter_update",
16574
16581
  animate: t
16575
16582
  })
16576
- ).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr("aria-label", (A) => [
16577
- A[a],
16578
- wo(A.data[a], o, a) + "%",
16579
- A.data[s]
16580
- ].filter(Boolean).join(", ")).attrTween("d", function(A) {
16581
- return SD.bind(this)(A, n.arc);
16583
+ ).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr("aria-label", (C) => [
16584
+ C[a],
16585
+ wo(C.data[a], o, a) + "%",
16586
+ C.data[s]
16587
+ ].filter(Boolean).join(", ")).attrTween("d", function(C) {
16588
+ return SD.bind(this)(C, n.arc);
16582
16589
  }).on("end", () => {
16583
16590
  n.isRendering = !1;
16584
16591
  });
16585
- const { code: d, number: h } = y(i, "locale"), p = i.pie.labels.enabled, f = p ? c.filter((A) => A.data[a] > 0) : [], m = N.appendOrSelect(r, "g.labels").attr("role", ht.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(f, (A) => A.data[s]);
16592
+ const { code: d, number: h } = y(i, "locale"), p = i.pie.labels.enabled, f = p ? c.filter((C) => C.data[a] > 0) : [], m = N.appendOrSelect(r, "g.labels").attr("role", ht.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(f, (C) => C.data[s]);
16586
16593
  m.exit().attr("opacity", 0).remove();
16587
16594
  const g = m.enter().append("text").classed("pie-label", !0), v = [];
16588
- g.merge(m).style("text-anchor", "middle").text((A) => i.pie.labels.formatter ? i.pie.labels.formatter({
16589
- ...A,
16595
+ g.merge(m).style("text-anchor", "middle").text((C) => i.pie.labels.formatter ? i.pie.labels.formatter({
16596
+ ...C,
16590
16597
  percentageValue: wo(
16591
- A.data[a],
16598
+ C.data[a],
16592
16599
  o,
16593
16600
  a,
16594
16601
  !0
16595
16602
  )
16596
16603
  }) : h(
16597
- wo(A.data[a], o, a),
16604
+ wo(C.data[a], o, a),
16598
16605
  d
16599
- ) + "%").datum(function(A) {
16600
- const R = l + 7, $ = (A.endAngle - A.startAngle) / 2 + A.startAngle, H = $ / Math.PI * 180, P = this.getComputedTextLength();
16601
- return A.textOffsetX = P / 2, A.textOffsetY = H > 90 && H < 270 ? 10 : 0, A.xPosition = (A.textOffsetX + R) * Math.sin($), A.yPosition = (A.textOffsetY + R) * -Math.cos($), A;
16602
- }).attr("transform", function(A, R) {
16603
- const $ = f.length, H = (A.endAngle - A.startAngle) * (180 / Math.PI);
16606
+ ) + "%").datum(function(C) {
16607
+ const R = l + 7, $ = (C.endAngle - C.startAngle) / 2 + C.startAngle, H = $ / Math.PI * 180, P = this.getComputedTextLength();
16608
+ return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin($), C.yPosition = (C.textOffsetY + R) * -Math.cos($), C;
16609
+ }).attr("transform", function(C, R) {
16610
+ const $ = f.length, H = (C.endAngle - C.startAngle) * (180 / Math.PI);
16604
16611
  if (R >= $ - 2 && H < Mt.callout.minSliceDegree) {
16605
16612
  let P, B;
16606
- return A.index === $ - 1 ? (P = A.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + A.textOffsetX, B = A.yPosition - Mt.callout.offsetY, A.direction = Hs.RIGHT, v.push(A)) : (P = A.xPosition - Mt.callout.offsetX - A.textOffsetX - Mt.callout.textMargin, B = A.yPosition - Mt.callout.offsetY, A.direction = Hs.LEFT, v.push(A)), `translate(${P}, ${B})`;
16613
+ return C.index === $ - 1 ? (P = C.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + C.textOffsetX, B = C.yPosition - Mt.callout.offsetY, C.direction = Hs.RIGHT, v.push(C)) : (P = C.xPosition - Mt.callout.offsetX - C.textOffsetX - Mt.callout.textMargin, B = C.yPosition - Mt.callout.offsetY, C.direction = Hs.LEFT, v.push(C)), `translate(${P}, ${B})`;
16607
16614
  }
16608
- return `translate(${A.xPosition}, ${A.yPosition})`;
16615
+ return `translate(${C.xPosition}, ${C.yPosition})`;
16609
16616
  }), this.renderCallouts(v);
16610
16617
  const b = y(i, "donut") ? "donut" : "pie", _ = y(i, b, "alignment"), { width: E } = N.getSVGElementSize(this.getParent(), {
16611
16618
  useAttrs: !0
@@ -16828,9 +16835,9 @@ class wD extends gt {
16828
16835
  "transform",
16829
16836
  `translate(0, ${d})`
16830
16837
  ), p = o(a), f = N.appendOrSelect(h, "g.gauge-value-number"), { code: m, number: g } = y(n, "locale"), v = y(n, "gauge", "numberFormatter"), b = f.selectAll("text.gauge-value-number").data([i]);
16831
- b.enter().append("text").attr("class", "gauge-value-number").merge(b).style("font-size", `${p}px`).attr("text-anchor", "middle").text((A) => {
16838
+ b.enter().append("text").attr("class", "gauge-value-number").merge(b).style("font-size", `${p}px`).attr("text-anchor", "middle").text((C) => {
16832
16839
  let R;
16833
- return A != null ? R = Number(A.toFixed(2)) % 1 !== 0 ? A.toFixed(2) : A.toFixed() : R = 0, v ? v(R) : g(Number(R), m);
16840
+ return C != null ? R = Number(C.toFixed(2)) % 1 !== 0 ? C.toFixed(2) : C.toFixed() : R = 0, v ? v(R) : g(Number(R), m);
16834
16841
  });
16835
16842
  const { width: _ } = N.getSVGElementSize(
16836
16843
  N.appendOrSelect(t, "text.gauge-value-number"),
@@ -17585,14 +17592,14 @@ class LD extends gt {
17585
17592
  const _ = ps().domain(this.fullDataNormalized.map((O) => O[u])).range([0, 2 * Math.PI].map((O) => O - Math.PI / 2)), E = Un(this.fullDataNormalized.map((O) => O[d])), x = ze().domain([
17586
17593
  E >= 0 ? 0 : E,
17587
17594
  Jn(this.fullDataNormalized.map((O) => O[d]))
17588
- ]).range([m, b]).nice(f), S = x.ticks(f), M = (O, w, L) => this.model.getFillColor(O, w, L), D = lk().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(Jg), A = this.uniqueKeys.map((O) => {
17595
+ ]).range([m, b]).nice(f), S = x.ticks(f), M = (O, w, L) => this.model.getFillColor(O, w, L), D = lk().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(Jg), C = this.uniqueKeys.map((O) => {
17589
17596
  const w = this.getLabelDimensions(O).width, L = R2(
17590
17597
  _(O),
17591
17598
  b
17592
17599
  );
17593
17600
  return w + L;
17594
17601
  }), R = {
17595
- x: Jn(A) + h,
17602
+ x: Jn(C) + h,
17596
17603
  y: i / 2
17597
17604
  }, $ = N.appendOrSelect(n, "g.y-axes").attr("role", ht.GROUP).selectAll("path").data(S, (O) => O), H = (O) => this.uniqueKeys.map((w) => ({ [u]: w, [d]: O }));
17598
17605
  $.join(
@@ -18273,17 +18280,17 @@ class DD extends gt {
18273
18280
  children: a
18274
18281
  }), p = 10, f = r / 6, m = (S) => {
18275
18282
  const M = h.descendants().reverse(), D = h.links();
18276
- let A = h, R = h;
18283
+ let C = h, R = h;
18277
18284
  h.eachBefore((k) => {
18278
- k.x < A.x && (A = k), k.x > R.x && (R = k);
18285
+ k.x < C.x && (C = k), k.x > R.x && (R = k);
18279
18286
  });
18280
- const $ = R.x - A.x, H = n.transition().call(
18287
+ const $ = R.x - C.x, H = n.transition().call(
18281
18288
  (k) => this.services.transitions.setupTransition({
18282
18289
  transition: k,
18283
18290
  name: "tree-update-viewbox",
18284
18291
  animate: !0
18285
18292
  })
18286
- ).attr("viewBox", [-d.left, A.x, r, $].join(" ")), P = x.selectAll("g").data(M, (k) => k.id), B = this, O = P.enter().append("g").attr("transform", () => `translate(${S.y0},${S.x0})`).attr(
18293
+ ).attr("viewBox", [-d.left, C.x, r, $].join(" ")), P = x.selectAll("g").data(M, (k) => k.id), B = this, O = P.enter().append("g").attr("transform", () => `translate(${S.y0},${S.x0})`).attr(
18287
18294
  "class",
18288
18295
  (k) => k.depth !== 0 && k.children && k.children.length > 0 ? "clickable" : null
18289
18296
  ).on("mouseover", function(k, U) {
@@ -18781,12 +18788,12 @@ function mN() {
18781
18788
  rectangular: g
18782
18789
  }, r = 64, i = 2048;
18783
18790
  sl = function() {
18784
- var E = [256, 256], x = s, S = a, M = l, D = o, A = o, R = c, $ = u, H = m, P = [], B = 1 / 0, O = e("word", "end"), w = null, L = Math.random, k = {}, U = b;
18791
+ var E = [256, 256], x = s, S = a, M = l, D = o, C = o, R = c, $ = u, H = m, P = [], B = 1 / 0, O = e("word", "end"), w = null, L = Math.random, k = {}, U = b;
18785
18792
  k.canvas = function(F) {
18786
18793
  return arguments.length ? (U = _(F), k) : U;
18787
18794
  }, k.start = function() {
18788
18795
  var F = Z(U()), Y = v((E[0] >> 5) * E[1]), ot = null, Q = P.length, q = -1, tt = [], lt = P.map(function(W, X) {
18789
- return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style = D.call(this, W, X), W.weight = A.call(this, W, X), W.rotate = R.call(this, W, X), W.size = ~~M.call(this, W, X), W.padding = $.call(this, W, X), W;
18796
+ return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style = D.call(this, W, X), W.weight = C.call(this, W, X), W.rotate = R.call(this, W, X), W.size = ~~M.call(this, W, X), W.padding = $.call(this, W, X), W;
18790
18797
  }).sort(function(W, X) {
18791
18798
  return X.size - W.size;
18792
18799
  });
@@ -18835,7 +18842,7 @@ function mN() {
18835
18842
  }, k.fontStyle = function(F) {
18836
18843
  return arguments.length ? (D = _(F), k) : D;
18837
18844
  }, k.fontWeight = function(F) {
18838
- return arguments.length ? (A = _(F), k) : A;
18845
+ return arguments.length ? (C = _(F), k) : C;
18839
18846
  }, k.rotate = function(F) {
18840
18847
  return arguments.length ? (R = _(F), k) : R;
18841
18848
  }, k.text = function(F) {
@@ -18873,22 +18880,22 @@ function mN() {
18873
18880
  }
18874
18881
  function d(E, x, S, M) {
18875
18882
  if (!x.sprite) {
18876
- var D = E.context, A = E.ratio;
18877
- D.clearRect(0, 0, (r << 5) / A, i / A);
18883
+ var D = E.context, C = E.ratio;
18884
+ D.clearRect(0, 0, (r << 5) / C, i / C);
18878
18885
  var R = 0, $ = 0, H = 0, P = S.length;
18879
18886
  for (--M; ++M < P; ) {
18880
- x = S[M], D.save(), D.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / A) + "px " + x.font;
18887
+ x = S[M], D.save(), D.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / C) + "px " + x.font;
18881
18888
  const X = D.measureText(x.text), V = -Math.floor(X.width / 2);
18882
- let ut = (X.width + 1) * A, st = x.size << 1;
18889
+ let ut = (X.width + 1) * C, st = x.size << 1;
18883
18890
  if (x.rotate) {
18884
18891
  var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, L = ut * B, k = st * O, U = st * B;
18885
18892
  ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(L + k), Math.abs(L - k));
18886
18893
  } else
18887
18894
  ut = ut + 31 >> 5 << 5;
18888
18895
  if (st > H && (H = st), R + ut >= r << 5 && (R = 0, $ += H, H = 0), $ + st >= i) break;
18889
- D.translate((R + (ut >> 1)) / A, ($ + (st >> 1)) / A), x.rotate && D.rotate(x.rotate * t), D.fillText(x.text, V, 0), x.padding && (D.lineWidth = 2 * x.padding, D.strokeText(x.text, V, 0)), D.restore(), x.width = ut, x.height = st, x.xoff = R, x.yoff = $, x.x1 = ut >> 1, x.y1 = st >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += ut;
18896
+ D.translate((R + (ut >> 1)) / C, ($ + (st >> 1)) / C), x.rotate && D.rotate(x.rotate * t), D.fillText(x.text, V, 0), x.padding && (D.lineWidth = 2 * x.padding, D.strokeText(x.text, V, 0)), D.restore(), x.width = ut, x.height = st, x.xoff = R, x.yoff = $, x.x1 = ut >> 1, x.y1 = st >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += ut;
18890
18897
  }
18891
- for (var Z = D.getImageData(0, 0, (r << 5) / A, i / A).data, j = []; --M >= 0; )
18898
+ for (var Z = D.getImageData(0, 0, (r << 5) / C, i / C).data, j = []; --M >= 0; )
18892
18899
  if (x = S[M], !!x.hasText) {
18893
18900
  for (var F = x.width, Y = F >> 5, ot = x.y1 - x.y0, Q = 0; Q < ot * Y; Q++) j[Q] = 0;
18894
18901
  if (R = x.xoff, R == null) return;
@@ -18906,7 +18913,7 @@ function mN() {
18906
18913
  }
18907
18914
  function h(E, x, S) {
18908
18915
  S >>= 5;
18909
- for (var M = E.sprite, D = E.width >> 5, A = E.x - (D << 4), R = A & 127, $ = 32 - R, H = E.y1 - E.y0, P = (E.y + E.y0) * S + (A >> 5), B, O = 0; O < H; O++) {
18916
+ for (var M = E.sprite, D = E.width >> 5, C = E.x - (D << 4), R = C & 127, $ = 32 - R, H = E.y1 - E.y0, P = (E.y + E.y0) * S + (C >> 5), B, O = 0; O < H; O++) {
18910
18917
  B = 0;
18911
18918
  for (var w = 0; w <= D; w++)
18912
18919
  if ((B << $ | (w < D ? (B = M[O * D + w]) >>> R : 0)) & x[P + w]) return !0;
@@ -18929,9 +18936,9 @@ function mN() {
18929
18936
  }
18930
18937
  function g(E) {
18931
18938
  var x = 4, S = x * E[0] / E[1], M = 0, D = 0;
18932
- return function(A) {
18933
- var R = A < 0 ? -1 : 1;
18934
- switch (Math.sqrt(1 + 4 * R * A) - R & 3) {
18939
+ return function(C) {
18940
+ var R = C < 0 ? -1 : 1;
18941
+ switch (Math.sqrt(1 + 4 * R * C) - R & 3) {
18935
18942
  case 0:
18936
18943
  M += S;
18937
18944
  break;
@@ -20516,8 +20523,8 @@ class gP extends kn {
20516
20523
  b.forEach((x) => {
20517
20524
  const { ...S } = x;
20518
20525
  let M = 0, D = 0;
20519
- Object.values(CN(S, "sharedStackKey")).forEach((A) => {
20520
- isNaN(A) || (A < 0 ? D += A : M += A);
20526
+ Object.values(CN(S, "sharedStackKey")).forEach((C) => {
20527
+ isNaN(C) || (C < 0 ? D += C : M += C);
20521
20528
  }), E.push([D, M]);
20522
20529
  }), m = [
20523
20530
  ...su(E),
@@ -20654,9 +20661,10 @@ class xP extends kn {
20654
20661
  Ge(n, (o) => o[s])
20655
20662
  );
20656
20663
  }
20657
- handleDomainChange(t, n = { dispatchEvent: !0 }) {
20664
+ handleDomainChange(t, n = { dispatchEvent: !0, type: "manual" }) {
20658
20665
  this.model.set({ zoomDomain: t }, { animate: !1 }), n.dispatchEvent && this.services.events?.dispatchEvent(T.ZoomDomain.CHANGE, {
20659
- newDomain: t
20666
+ newDomain: t,
20667
+ type: n.type
20660
20668
  });
20661
20669
  }
20662
20670
  getZoomRatio() {
@@ -20689,7 +20697,7 @@ class xP extends kn {
20689
20697
  let u = s + c, d = a - c;
20690
20698
  u >= d && (u = s + l / 2 - r / 2, d = a - l / 2 + r / 2);
20691
20699
  const h = [i.invert(u), i.invert(d)];
20692
- (n[0].valueOf() !== h[0].valueOf() || n[1].valueOf() !== h[1].valueOf()) && this.handleDomainChange(h);
20700
+ (n[0].valueOf() !== h[0].valueOf() || n[1].valueOf() !== h[1].valueOf()) && this.handleDomainChange(h, { dispatchEvent: !0, type: "in" });
20693
20701
  }
20694
20702
  zoomOut(t = this.getZoomRatio()) {
20695
20703
  const n = this.model.get("zoomDomain");
@@ -20697,11 +20705,11 @@ class xP extends kn {
20697
20705
  const r = this.services.cartesianScales.getMainXScale().copy();
20698
20706
  r.domain(this.getDefaultZoomBarDomain());
20699
20707
  const i = r(n[0]), s = r(n[1]), a = r.range(), o = (a[1] - a[0]) / 2 * (t / 2), l = Math.max(i - o, a[0]), c = Math.min(s + o, a[1]), u = [r.invert(l), r.invert(c)];
20700
- (n[0].valueOf() !== u[0].valueOf() || n[1].valueOf() !== u[1].valueOf()) && this.handleDomainChange(u);
20708
+ (n[0].valueOf() !== u[0].valueOf() || n[1].valueOf() !== u[1].valueOf()) && this.handleDomainChange(u, { dispatchEvent: !0, type: "out" });
20701
20709
  }
20702
20710
  resetZoomDomain() {
20703
20711
  const t = this.model.get("zoomDomain"), n = this.getDefaultZoomBarDomain();
20704
- (t[0].valueOf() !== n[0].valueOf() || t[1].valueOf() !== n[1].valueOf()) && this.handleDomainChange(n);
20712
+ (t[0].valueOf() !== n[0].valueOf() || t[1].valueOf() !== n[1].valueOf()) && this.handleDomainChange(n, { dispatchEvent: !0, type: "reset" });
20705
20713
  }
20706
20714
  // check if current zoom domain is already the min zoom domain
20707
20715
  // when toolbar is rendered, we don't render chart yet