@carbon/charts 1.25.1 → 1.26.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/CHANGELOG.md +13 -0
- package/dist/{angle-utils-4EO2XuoV.mjs → angle-utils-BgkbNBqH.mjs} +2 -2
- package/dist/{angle-utils-4EO2XuoV.mjs.map → angle-utils-BgkbNBqH.mjs.map} +1 -1
- package/dist/{array-Ctg9nQNq.mjs → array-CmsYzTI6.mjs} +2 -2
- package/dist/{array-Ctg9nQNq.mjs.map → array-CmsYzTI6.mjs.map} +1 -1
- package/dist/{choropleth-BgycggQG.mjs → choropleth-CRH6Tnw6.mjs} +600 -587
- package/dist/{choropleth-BgycggQG.mjs.map → choropleth-CRH6Tnw6.mjs.map} +1 -1
- package/dist/{color-scale-utils-igrenh2d.mjs → color-scale-utils-BzjNNGXE.mjs} +3 -2
- package/dist/{color-scale-utils-igrenh2d.mjs.map → color-scale-utils-BzjNNGXE.mjs.map} +1 -1
- package/dist/components/graphs/bar-grouped.d.ts +3 -2
- package/dist/components/index.mjs +1 -1
- package/dist/{index-B-DZT7fS.mjs → index-BoV1aXvm.mjs} +3 -3
- package/dist/{index-B-DZT7fS.mjs.map → index-BoV1aXvm.mjs.map} +1 -1
- package/dist/index.mjs +7 -7
- package/dist/interfaces/components.d.ts +1 -0
- package/dist/model/index.mjs +2 -2
- package/dist/services/index.mjs +3 -3
- package/dist/umd/bundle.umd.cjs +9 -9
- package/dist/umd/bundle.umd.cjs.map +1 -1
- package/dist/umd/bundle.umd.js +9 -9
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as Br, $ as ol, i as ll, a0 as cl, a1 as zr, a2 as Ur, a3 as ul, a4 as hl, a5 as dl, a6 as pl, a7 as Fr, a8 as ya, a9 as an, g as O, p as Kt, a as sn, C as Ea, aa as xt, w as Mt, ab as kn, E as xa, H as jt, ac as Wr, ad as
|
|
2
|
-
import { y as at, $ as b, N as Tt, r as be, q as ze, L as Tl, A as te, m as nt, s as Me, W as Qe, S as kt, e as J, Z as Ue, i as Xt, f as ba, J as
|
|
1
|
+
import { t as Br, $ as ol, i as ll, a0 as cl, a1 as zr, a2 as Ur, a3 as ul, a4 as hl, a5 as dl, a6 as pl, a7 as Fr, a8 as ya, a9 as an, g as O, p as Kt, a as sn, C as Ea, aa as xt, w as Mt, ab as kn, E as xa, H as jt, ac as Wr, ad as Ls, c as fl, ae as xe, I as di, K as pi, e as se, af as yn, ag as ge, f as ye, x as ve, ah as gl, h as Je, O as ml, ai as Xr, aj as Re, z as Et, l as qt, ak as Gt, al as vl, M as yl, am as Yr, y as _t, q as dn, n as Bn, an as $s, ao as El, ap as xl, aq as fi, ar as Sa, A as Ae, as as Ta, at as Zr, au as Sl } from "./color-scale-utils-BzjNNGXE.mjs";
|
|
2
|
+
import { y as at, $ as b, N as Tt, r as be, q as ze, L as Tl, A as te, m as nt, s as Me, W as Qe, S as kt, e as J, Z as Ue, i as Xt, f as ba, J as Vs, d as bl, F as zn, n as Gs, H as Hs, C as Bs, p as Un, b as Oa, D as zs, U as Ol, x as we, a0 as Fn, O as Us } from "./axis-scales-CPuwbFQf.mjs";
|
|
3
3
|
import { R as lt } from "./a11y-ePqvrObQ.mjs";
|
|
4
|
-
import { t as ns, s as D, h as La, e as Ut, c as ss, f as Ce, g as oe, m as
|
|
5
|
-
import { b as qr, c as pt, a as Ui, s as _l } from "./array-
|
|
4
|
+
import { t as ns, s as D, h as La, e as Ut, c as ss, f as Ce, g as oe, m as Fs, i as Aa, j as Ma, k as tn, l as Dt, n as wa, o as Ll, q as Al, u as zi, D as I, v as Ml, w as gi, G as Ca, x as hs, y as wl, a as Cl, p as bt, r as ka, b as kl } from "./angle-utils-BgkbNBqH.mjs";
|
|
5
|
+
import { b as qr, c as pt, a as Ui, s as _l } from "./array-CmsYzTI6.mjs";
|
|
6
6
|
function Il(i, t, e, n) {
|
|
7
7
|
for (var s = -1, a = i == null ? 0 : i.length; ++s < a; )
|
|
8
8
|
e = t(e, i[s], s, i);
|
|
@@ -321,7 +321,7 @@ function ho(i) {
|
|
|
321
321
|
function Ic(i) {
|
|
322
322
|
return i;
|
|
323
323
|
}
|
|
324
|
-
var is = 1, as = 2,
|
|
324
|
+
var is = 1, as = 2, mi = 3, En = 4, Na = 1e-6;
|
|
325
325
|
function Rc(i) {
|
|
326
326
|
return "translate(" + i + ",0)";
|
|
327
327
|
}
|
|
@@ -337,16 +337,16 @@ function Pc(i, t) {
|
|
|
337
337
|
function $c() {
|
|
338
338
|
return !this.__axis;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
var e = [], n = null, s = null, a = 6, r = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = i === is || i === En ? -1 : 1, h = i === En || i === as ? "x" : "y", d = i === is || i ===
|
|
340
|
+
function As(i, t) {
|
|
341
|
+
var e = [], n = null, s = null, a = 6, r = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = i === is || i === En ? -1 : 1, h = i === En || i === as ? "x" : "y", d = i === is || i === mi ? Rc : Dc;
|
|
342
342
|
function u(p) {
|
|
343
|
-
var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), m = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : Ic), g = Math.max(a, 0) + o, v = t.range(), S = +v[0] + c, y = +v[v.length - 1] + c, E = (t.bandwidth ? Pc : Nc)(t.copy(), c), x = p.selection ? p.selection() : p, T = x.selectAll(".domain").data([null]),
|
|
344
|
-
T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")),
|
|
343
|
+
var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), m = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : Ic), g = Math.max(a, 0) + o, v = t.range(), S = +v[0] + c, y = +v[v.length - 1] + c, E = (t.bandwidth ? Pc : Nc)(t.copy(), c), x = p.selection ? p.selection() : p, T = x.selectAll(".domain").data([null]), C = x.selectAll(".tick").data(f, t).order(), _ = C.exit(), V = C.enter().append("g").attr("class", "tick"), R = C.select("line"), A = C.select("text");
|
|
344
|
+
T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), C = C.merge(V), R = R.merge(V.append("line").attr("stroke", "currentColor").attr(h + "2", l * a)), A = A.merge(V.append("text").attr("fill", "currentColor").attr(h, l * g).attr("dy", i === is ? "0em" : i === mi ? "0.71em" : "0.32em")), p !== x && (T = T.transition(p), C = C.transition(p), R = R.transition(p), A = A.transition(p), _ = _.transition(p).attr("opacity", Na).attr("transform", function(H) {
|
|
345
345
|
return isFinite(H = E(H)) ? d(H + c) : this.getAttribute("transform");
|
|
346
|
-
}),
|
|
346
|
+
}), V.attr("opacity", Na).attr("transform", function(H) {
|
|
347
347
|
var N = this.parentNode.__axis;
|
|
348
348
|
return d((N && isFinite(N = N(H)) ? N : E(H)) + c);
|
|
349
|
-
})), _.remove(), T.attr("d", i === En || i === as ? r ? "M" + l * r + "," + S + "H" + c + "V" + y + "H" + l * r : "M" + c + "," + S + "V" + y : r ? "M" + S + "," + l * r + "V" + c + "H" + y + "V" + l * r : "M" + S + "," + c + "H" + y),
|
|
349
|
+
})), _.remove(), T.attr("d", i === En || i === as ? r ? "M" + l * r + "," + S + "H" + c + "V" + y + "H" + l * r : "M" + c + "," + S + "V" + y : r ? "M" + S + "," + l * r + "V" + c + "H" + y + "V" + l * r : "M" + S + "," + c + "H" + y), C.attr("opacity", 1).attr("transform", function(H) {
|
|
350
350
|
return d(E(H) + c);
|
|
351
351
|
}), R.attr(h + "2", l * a), A.attr(h, l * g).text(m), x.filter($c).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", i === as ? "start" : i === En ? "end" : "middle"), x.each(function() {
|
|
352
352
|
this.__axis = E;
|
|
@@ -375,28 +375,28 @@ function Ls(i, t) {
|
|
|
375
375
|
}, u;
|
|
376
376
|
}
|
|
377
377
|
function Vc(i) {
|
|
378
|
-
return
|
|
378
|
+
return As(is, i);
|
|
379
379
|
}
|
|
380
380
|
function Gc(i) {
|
|
381
|
-
return
|
|
381
|
+
return As(as, i);
|
|
382
382
|
}
|
|
383
383
|
function Fi(i) {
|
|
384
|
-
return
|
|
384
|
+
return As(mi, i);
|
|
385
385
|
}
|
|
386
386
|
function po(i) {
|
|
387
|
-
return
|
|
387
|
+
return As(En, i);
|
|
388
388
|
}
|
|
389
|
-
const
|
|
390
|
-
function
|
|
389
|
+
const vi = { capture: !0, passive: !1 };
|
|
390
|
+
function yi(i) {
|
|
391
391
|
i.preventDefault(), i.stopImmediatePropagation();
|
|
392
392
|
}
|
|
393
393
|
function Hc(i) {
|
|
394
|
-
var t = i.document.documentElement, e = D(i).on("dragstart.drag",
|
|
395
|
-
"onselectstart" in t ? e.on("selectstart.drag",
|
|
394
|
+
var t = i.document.documentElement, e = D(i).on("dragstart.drag", yi, vi);
|
|
395
|
+
"onselectstart" in t ? e.on("selectstart.drag", yi, vi) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
|
396
396
|
}
|
|
397
397
|
function Bc(i, t) {
|
|
398
398
|
var e = i.document.documentElement, n = D(i).on("dragstart.drag", null);
|
|
399
|
-
t && (n.on("click.drag",
|
|
399
|
+
t && (n.on("click.drag", yi, vi), setTimeout(function() {
|
|
400
400
|
n.on("click.drag", null);
|
|
401
401
|
}, 0)), "onselectstart" in e ? n.on("selectstart.drag", null) : (e.style.MozUserSelect = e.__noselect, delete e.__noselect);
|
|
402
402
|
}
|
|
@@ -404,7 +404,7 @@ function zc(i, t) {
|
|
|
404
404
|
for (var e = new Array(t), n = 0; n < t; ++n) e[n] = i(n / (t - 1));
|
|
405
405
|
return e;
|
|
406
406
|
}
|
|
407
|
-
const Uc = (i) => +i,
|
|
407
|
+
const Uc = (i) => +i, Ws = (i) => () => i;
|
|
408
408
|
function Fc(i, {
|
|
409
409
|
sourceEvent: t,
|
|
410
410
|
target: e,
|
|
@@ -424,10 +424,10 @@ function Fc(i, {
|
|
|
424
424
|
function Wc(i) {
|
|
425
425
|
i.stopImmediatePropagation();
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function Xs(i) {
|
|
428
428
|
i.preventDefault(), i.stopImmediatePropagation();
|
|
429
429
|
}
|
|
430
|
-
var Pa = { name: "drag" },
|
|
430
|
+
var Pa = { name: "drag" }, Ys = { name: "space" }, We = { name: "handle" }, Xe = { name: "center" };
|
|
431
431
|
const { abs: $a, max: Nt, min: Pt } = Math;
|
|
432
432
|
function Va(i) {
|
|
433
433
|
return [+i[0], +i[1]];
|
|
@@ -437,14 +437,14 @@ function Ga(i) {
|
|
|
437
437
|
}
|
|
438
438
|
var rs = {
|
|
439
439
|
name: "x",
|
|
440
|
-
handles: ["w", "e"].map(
|
|
440
|
+
handles: ["w", "e"].map(Ei),
|
|
441
441
|
input: function(i, t) {
|
|
442
442
|
return i == null ? null : [[+i[0], t[0][1]], [+i[1], t[1][1]]];
|
|
443
443
|
},
|
|
444
444
|
output: function(i) {
|
|
445
445
|
return i && [i[0][0], i[1][0]];
|
|
446
446
|
}
|
|
447
|
-
},
|
|
447
|
+
}, Zs = {}, fe = {
|
|
448
448
|
overlay: "crosshair",
|
|
449
449
|
selection: "move",
|
|
450
450
|
n: "ns-resize",
|
|
@@ -492,7 +492,7 @@ var rs = {
|
|
|
492
492
|
se: 1,
|
|
493
493
|
sw: 1
|
|
494
494
|
};
|
|
495
|
-
function
|
|
495
|
+
function Ei(i) {
|
|
496
496
|
return { type: i };
|
|
497
497
|
}
|
|
498
498
|
function Zc(i) {
|
|
@@ -505,7 +505,7 @@ function qc() {
|
|
|
505
505
|
function jc() {
|
|
506
506
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function qs(i) {
|
|
509
509
|
for (; !i.__brush; ) if (!(i = i.parentNode)) return;
|
|
510
510
|
return i.__brush;
|
|
511
511
|
}
|
|
@@ -518,11 +518,11 @@ function fo() {
|
|
|
518
518
|
function Jc(i) {
|
|
519
519
|
var t = qc, e = Zc, n = jc, s = !0, a = pl("start", "brush", "end"), r = 6, o;
|
|
520
520
|
function c(g) {
|
|
521
|
-
var v = g.property("__brush", m).selectAll(".overlay").data([
|
|
521
|
+
var v = g.property("__brush", m).selectAll(".overlay").data([Ei("overlay")]);
|
|
522
522
|
v.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", fe.overlay).merge(v).each(function() {
|
|
523
|
-
var y =
|
|
523
|
+
var y = qs(this).extent;
|
|
524
524
|
D(this).attr("x", y[0][0]).attr("y", y[0][1]).attr("width", y[1][0] - y[0][0]).attr("height", y[1][1] - y[0][1]);
|
|
525
|
-
}), g.selectAll(".selection").data([
|
|
525
|
+
}), g.selectAll(".selection").data([Ei("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", fe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
|
|
526
526
|
var S = g.selectAll(".handle").data(i.handles, function(y) {
|
|
527
527
|
return y.type;
|
|
528
528
|
});
|
|
@@ -538,20 +538,20 @@ function Jc(i) {
|
|
|
538
538
|
}).on("interrupt.brush end.brush", function(y) {
|
|
539
539
|
h(this, arguments).end(y);
|
|
540
540
|
}).tween("brush", function() {
|
|
541
|
-
var y = this, E = y.__brush, x = h(y, arguments), T = E.selection,
|
|
542
|
-
function
|
|
543
|
-
E.selection = R === 1 &&
|
|
541
|
+
var y = this, E = y.__brush, x = h(y, arguments), T = E.selection, C = i.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), _ = Fr(T, C);
|
|
542
|
+
function V(R) {
|
|
543
|
+
E.selection = R === 1 && C === null ? null : _(R), l.call(y), x.brush();
|
|
544
544
|
}
|
|
545
|
-
return T !== null &&
|
|
545
|
+
return T !== null && C !== null ? V : V(1);
|
|
546
546
|
}) : g.each(function() {
|
|
547
|
-
var y = this, E = arguments, x = y.__brush, T = i.input(typeof v == "function" ? v.apply(y, E) : v, x.extent),
|
|
548
|
-
ya(y), x.selection = T === null ? null : T, l.call(y),
|
|
547
|
+
var y = this, E = arguments, x = y.__brush, T = i.input(typeof v == "function" ? v.apply(y, E) : v, x.extent), C = h(y, E).beforestart();
|
|
548
|
+
ya(y), x.selection = T === null ? null : T, l.call(y), C.start(S).brush(S).end(S);
|
|
549
549
|
});
|
|
550
550
|
}, c.clear = function(g, v) {
|
|
551
551
|
c.move(g, null, v);
|
|
552
552
|
};
|
|
553
553
|
function l() {
|
|
554
|
-
var g = D(this), v =
|
|
554
|
+
var g = D(this), v = qs(this).selection;
|
|
555
555
|
v ? (g.selectAll(".selection").style("display", null).attr("x", v[0][0]).attr("y", v[0][1]).attr("width", v[1][0] - v[0][0]).attr("height", v[1][1] - v[0][1]), g.selectAll(".handle").style("display", null).attr("x", function(S) {
|
|
556
556
|
return S.type[S.type.length - 1] === "e" ? v[1][0] - r / 2 : v[0][0] - r / 2;
|
|
557
557
|
}).attr("y", function(S) {
|
|
@@ -600,7 +600,7 @@ function Jc(i) {
|
|
|
600
600
|
};
|
|
601
601
|
function u(g) {
|
|
602
602
|
if (o && !g.touches || !e.apply(this, arguments)) return;
|
|
603
|
-
var v = this, S = g.target.__data__.type, y = (s && g.metaKey ? S = "overlay" : S) === "selection" ? Pa : s && g.altKey ? Xe : We, E = i ===
|
|
603
|
+
var v = this, S = g.target.__data__.type, y = (s && g.metaKey ? S = "overlay" : S) === "selection" ? Pa : s && g.altKey ? Xe : We, E = i === Zs ? null : Xc[S], x = i === rs ? null : Yc[S], T = qs(v), C = T.extent, _ = T.selection, V = C[0][0], R, A, H = C[0][1], N, M, L = C[1][0], P, $, k = C[1][1], G, q, X = 0, F = 0, Z, rt = E && x && s && g.shiftKey, j, Y, K = Array.from(g.touches || [g], (et) => {
|
|
604
604
|
const yt = et.identifier;
|
|
605
605
|
return et = an(et, v), et.point0 = et.slice(), et.identifier = yt, et;
|
|
606
606
|
});
|
|
@@ -610,15 +610,15 @@ function Jc(i) {
|
|
|
610
610
|
_ && (Z = !0);
|
|
611
611
|
const et = [K[0], K[1] || K[0]];
|
|
612
612
|
T.selection = _ = [[
|
|
613
|
-
R = i ===
|
|
613
|
+
R = i === Zs ? V : Pt(et[0][0], et[1][0]),
|
|
614
614
|
N = i === rs ? H : Pt(et[0][1], et[1][1])
|
|
615
615
|
], [
|
|
616
|
-
P = i ===
|
|
617
|
-
|
|
616
|
+
P = i === Zs ? L : Nt(et[0][0], et[1][0]),
|
|
617
|
+
G = i === rs ? k : Nt(et[0][1], et[1][1])
|
|
618
618
|
]], K.length > 1 && B(g);
|
|
619
619
|
} else
|
|
620
|
-
R = _[0][0], N = _[0][1], P = _[1][0],
|
|
621
|
-
A = R, M = N, $ = P, q =
|
|
620
|
+
R = _[0][0], N = _[0][1], P = _[1][0], G = _[1][1];
|
|
621
|
+
A = R, M = N, $ = P, q = G;
|
|
622
622
|
var ct = D(v).attr("pointer-events", "none"), st = ct.selectAll(".overlay").attr("cursor", fe[S]);
|
|
623
623
|
if (g.touches)
|
|
624
624
|
ot.moved = z, ot.ended = U;
|
|
@@ -637,27 +637,27 @@ function Jc(i) {
|
|
|
637
637
|
}
|
|
638
638
|
for (const yt of K)
|
|
639
639
|
yt.cur && (yt[0] = yt.cur[0], yt[1] = yt.cur[1]);
|
|
640
|
-
Z = !0,
|
|
640
|
+
Z = !0, Xs(et), B(et);
|
|
641
641
|
}
|
|
642
642
|
function B(et) {
|
|
643
643
|
const yt = K[0], Zt = yt.point0;
|
|
644
644
|
var Wt;
|
|
645
645
|
switch (X = yt[0] - Zt[0], F = yt[1] - Zt[1], y) {
|
|
646
|
-
case
|
|
646
|
+
case Ys:
|
|
647
647
|
case Pa: {
|
|
648
|
-
E && (X = Nt(
|
|
648
|
+
E && (X = Nt(V - R, Pt(L - P, X)), A = R + X, $ = P + X), x && (F = Nt(H - N, Pt(k - G, F)), M = N + F, q = G + F);
|
|
649
649
|
break;
|
|
650
650
|
}
|
|
651
651
|
case We: {
|
|
652
|
-
K[1] ? (E && (A = Nt(
|
|
652
|
+
K[1] ? (E && (A = Nt(V, Pt(L, K[0][0])), $ = Nt(V, Pt(L, K[1][0])), E = 1), x && (M = Nt(H, Pt(k, K[0][1])), q = Nt(H, Pt(k, K[1][1])), x = 1)) : (E < 0 ? (X = Nt(V - R, Pt(L - R, X)), A = R + X, $ = P) : E > 0 && (X = Nt(V - P, Pt(L - P, X)), A = R, $ = P + X), x < 0 ? (F = Nt(H - N, Pt(k - N, F)), M = N + F, q = G) : x > 0 && (F = Nt(H - G, Pt(k - G, F)), M = N, q = G + F));
|
|
653
653
|
break;
|
|
654
654
|
}
|
|
655
655
|
case Xe: {
|
|
656
|
-
E && (A = Nt(
|
|
656
|
+
E && (A = Nt(V, Pt(L, R - X * E)), $ = Nt(V, Pt(L, P + X * E))), x && (M = Nt(H, Pt(k, N - F * x)), q = Nt(H, Pt(k, G + F * x)));
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
$ < A && (E *= -1, Wt = R, R = P, P = Wt, Wt = A, A = $, $ = Wt, S in Ha && st.attr("cursor", fe[S = Ha[S]])), q < M && (x *= -1, Wt = N, N =
|
|
660
|
+
$ < A && (E *= -1, Wt = R, R = P, P = Wt, Wt = A, A = $, $ = Wt, S in Ha && st.attr("cursor", fe[S = Ha[S]])), q < M && (x *= -1, Wt = N, N = G, G = Wt, Wt = M, M = q, q = Wt, S in Ba && st.attr("cursor", fe[S = Ba[S]])), T.selection && (_ = T.selection), j && (A = _[0][0], $ = _[1][0]), Y && (M = _[0][1], q = _[1][1]), (_[0][0] !== A || _[0][1] !== M || _[1][0] !== $ || _[1][1] !== q) && (T.selection = [[A, M], [$, q]], l.call(v), ot.brush(et, y.name));
|
|
661
661
|
}
|
|
662
662
|
function U(et) {
|
|
663
663
|
if (Wc(et), et.touches) {
|
|
@@ -676,17 +676,17 @@ function Jc(i) {
|
|
|
676
676
|
break;
|
|
677
677
|
}
|
|
678
678
|
case 18: {
|
|
679
|
-
y === We && (E && (P = $ - X * E, R = A + X * E), x && (
|
|
679
|
+
y === We && (E && (P = $ - X * E, R = A + X * E), x && (G = q - F * x, N = M + F * x), y = Xe, B(et));
|
|
680
680
|
break;
|
|
681
681
|
}
|
|
682
682
|
case 32: {
|
|
683
|
-
(y === We || y === Xe) && (E < 0 ? P = $ - X : E > 0 && (R = A - X), x < 0 ?
|
|
683
|
+
(y === We || y === Xe) && (E < 0 ? P = $ - X : E > 0 && (R = A - X), x < 0 ? G = q - F : x > 0 && (N = M - F), y = Ys, st.attr("cursor", fe.selection), B(et));
|
|
684
684
|
break;
|
|
685
685
|
}
|
|
686
686
|
default:
|
|
687
687
|
return;
|
|
688
688
|
}
|
|
689
|
-
|
|
689
|
+
Xs(et);
|
|
690
690
|
}
|
|
691
691
|
function Te(et) {
|
|
692
692
|
switch (et.keyCode) {
|
|
@@ -695,17 +695,17 @@ function Jc(i) {
|
|
|
695
695
|
break;
|
|
696
696
|
}
|
|
697
697
|
case 18: {
|
|
698
|
-
y === Xe && (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ?
|
|
698
|
+
y === Xe && (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? G = q : x > 0 && (N = M), y = We, B(et));
|
|
699
699
|
break;
|
|
700
700
|
}
|
|
701
701
|
case 32: {
|
|
702
|
-
y ===
|
|
702
|
+
y === Ys && (et.altKey ? (E && (P = $ - X * E, R = A + X * E), x && (G = q - F * x, N = M + F * x), y = Xe) : (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? G = q : x > 0 && (N = M), y = We), st.attr("cursor", fe[S]), B(et));
|
|
703
703
|
break;
|
|
704
704
|
}
|
|
705
705
|
default:
|
|
706
706
|
return;
|
|
707
707
|
}
|
|
708
|
-
|
|
708
|
+
Xs(et);
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
function p(g) {
|
|
@@ -719,11 +719,11 @@ function Jc(i) {
|
|
|
719
719
|
return g.extent = Ga(t.apply(this, arguments)), g.dim = i, g;
|
|
720
720
|
}
|
|
721
721
|
return c.extent = function(g) {
|
|
722
|
-
return arguments.length ? (t = typeof g == "function" ? g :
|
|
722
|
+
return arguments.length ? (t = typeof g == "function" ? g : Ws(Ga(g)), c) : t;
|
|
723
723
|
}, c.filter = function(g) {
|
|
724
|
-
return arguments.length ? (e = typeof g == "function" ? g :
|
|
724
|
+
return arguments.length ? (e = typeof g == "function" ? g : Ws(!!g), c) : e;
|
|
725
725
|
}, c.touchable = function(g) {
|
|
726
|
-
return arguments.length ? (n = typeof g == "function" ? g :
|
|
726
|
+
return arguments.length ? (n = typeof g == "function" ? g : Ws(!!g), c) : n;
|
|
727
727
|
}, c.handleSize = function(g) {
|
|
728
728
|
return arguments.length ? (r = +g, c) : r;
|
|
729
729
|
}, c.keyModifiers = function(g) {
|
|
@@ -733,7 +733,7 @@ function Jc(i) {
|
|
|
733
733
|
return g === a ? c : g;
|
|
734
734
|
}, c;
|
|
735
735
|
}
|
|
736
|
-
const
|
|
736
|
+
const xi = Math.PI, Si = 2 * xi, ke = 1e-6, Qc = Si - ke;
|
|
737
737
|
function go(i) {
|
|
738
738
|
this._ += i[0];
|
|
739
739
|
for (let t = 1, e = i.length; t < e; ++t)
|
|
@@ -778,14 +778,14 @@ let Wi = class {
|
|
|
778
778
|
else if (u > ke) if (!(Math.abs(d * c - l * h) > ke) || !a)
|
|
779
779
|
this._append`L${this._x1 = t},${this._y1 = e}`;
|
|
780
780
|
else {
|
|
781
|
-
let p = n - r, f = s - o, m = c * c + l * l, g = p * p + f * f, v = Math.sqrt(m), S = Math.sqrt(u), y = a * Math.tan((
|
|
781
|
+
let p = n - r, f = s - o, m = c * c + l * l, g = p * p + f * f, v = Math.sqrt(m), S = Math.sqrt(u), y = a * Math.tan((xi - Math.acos((m + u - g) / (2 * v * S))) / 2), E = y / S, x = y / v;
|
|
782
782
|
Math.abs(E - 1) > ke && this._append`L${t + E * h},${e + E * d}`, this._append`A${a},${a},0,0,${+(d * p > h * f)},${this._x1 = t + x * c},${this._y1 = e + x * l}`;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
arc(t, e, n, s, a, r) {
|
|
786
786
|
if (t = +t, e = +e, n = +n, r = !!r, n < 0) throw new Error(`negative radius: ${n}`);
|
|
787
787
|
let o = n * Math.cos(s), c = n * Math.sin(s), l = t + o, h = e + c, d = 1 ^ r, u = r ? s - a : a - s;
|
|
788
|
-
this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > ke || Math.abs(this._y1 - h) > ke) && this._append`L${l},${h}`, n && (u < 0 && (u = u %
|
|
788
|
+
this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > ke || Math.abs(this._y1 - h) > ke) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Si + Si), u > Qc ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > ke && this._append`A${n},${n},0,${+(u >= xi)},${d},${this._x1 = t + n * Math.cos(a)},${this._y1 = e + n * Math.sin(a)}`);
|
|
789
789
|
}
|
|
790
790
|
rect(t, e, n, s) {
|
|
791
791
|
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +e}h${n = +n}v${+s}h${-n}Z`;
|
|
@@ -794,10 +794,10 @@ let Wi = class {
|
|
|
794
794
|
return this._;
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
|
-
function
|
|
797
|
+
function Ms() {
|
|
798
798
|
return new Wi();
|
|
799
799
|
}
|
|
800
|
-
|
|
800
|
+
Ms.prototype = Wi.prototype;
|
|
801
801
|
var gt = 1e-6, mo = 1e-12, ht = Math.PI, Ft = ht / 2, za = ht / 4, Yt = ht * 2, Vt = 180 / ht, Ot = ht / 180, mt = Math.abs, vo = Math.atan, Ne = Math.atan2, vt = Math.cos, eu = Math.exp, nu = Math.log, ft = Math.sin, Oe = Math.sign || function(i) {
|
|
802
802
|
return i > 0 ? 1 : i < 0 ? -1 : 0;
|
|
803
803
|
}, ae = Math.sqrt, su = Math.tan;
|
|
@@ -809,15 +809,15 @@ function Se(i) {
|
|
|
809
809
|
}
|
|
810
810
|
function Qt() {
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function ds(i, t) {
|
|
813
813
|
i && Fa.hasOwnProperty(i.type) && Fa[i.type](i, t);
|
|
814
814
|
}
|
|
815
815
|
var Ua = {
|
|
816
816
|
Feature: function(i, t) {
|
|
817
|
-
|
|
817
|
+
ds(i.geometry, t);
|
|
818
818
|
},
|
|
819
819
|
FeatureCollection: function(i, t) {
|
|
820
|
-
for (var e = i.features, n = -1, s = e.length; ++n < s; )
|
|
820
|
+
for (var e = i.features, n = -1, s = e.length; ++n < s; ) ds(e[n].geometry, t);
|
|
821
821
|
}
|
|
822
822
|
}, Fa = {
|
|
823
823
|
Sphere: function(i, t) {
|
|
@@ -830,10 +830,10 @@ var Ua = {
|
|
|
830
830
|
for (var e = i.coordinates, n = -1, s = e.length; ++n < s; ) i = e[n], t.point(i[0], i[1], i[2]);
|
|
831
831
|
},
|
|
832
832
|
LineString: function(i, t) {
|
|
833
|
-
|
|
833
|
+
Ti(i.coordinates, t, 0);
|
|
834
834
|
},
|
|
835
835
|
MultiLineString: function(i, t) {
|
|
836
|
-
for (var e = i.coordinates, n = -1, s = e.length; ++n < s; )
|
|
836
|
+
for (var e = i.coordinates, n = -1, s = e.length; ++n < s; ) Ti(e[n], t, 0);
|
|
837
837
|
},
|
|
838
838
|
Polygon: function(i, t) {
|
|
839
839
|
Wa(i.coordinates, t);
|
|
@@ -842,23 +842,23 @@ var Ua = {
|
|
|
842
842
|
for (var e = i.coordinates, n = -1, s = e.length; ++n < s; ) Wa(e[n], t);
|
|
843
843
|
},
|
|
844
844
|
GeometryCollection: function(i, t) {
|
|
845
|
-
for (var e = i.geometries, n = -1, s = e.length; ++n < s; )
|
|
845
|
+
for (var e = i.geometries, n = -1, s = e.length; ++n < s; ) ds(e[n], t);
|
|
846
846
|
}
|
|
847
847
|
};
|
|
848
|
-
function
|
|
848
|
+
function Ti(i, t, e) {
|
|
849
849
|
var n = -1, s = i.length - e, a;
|
|
850
850
|
for (t.lineStart(); ++n < s; ) a = i[n], t.point(a[0], a[1], a[2]);
|
|
851
851
|
t.lineEnd();
|
|
852
852
|
}
|
|
853
853
|
function Wa(i, t) {
|
|
854
854
|
var e = -1, n = i.length;
|
|
855
|
-
for (t.polygonStart(); ++e < n; )
|
|
855
|
+
for (t.polygonStart(); ++e < n; ) Ti(i[e], t, 1);
|
|
856
856
|
t.polygonEnd();
|
|
857
857
|
}
|
|
858
858
|
function je(i, t) {
|
|
859
|
-
i && Ua.hasOwnProperty(i.type) ? Ua[i.type](i, t) :
|
|
859
|
+
i && Ua.hasOwnProperty(i.type) ? Ua[i.type](i, t) : ds(i, t);
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function bi(i) {
|
|
862
862
|
return [Ne(i[1], i[0]), Se(i[2])];
|
|
863
863
|
}
|
|
864
864
|
function rn(i) {
|
|
@@ -868,20 +868,20 @@ function rn(i) {
|
|
|
868
868
|
function Wn(i, t) {
|
|
869
869
|
return i[0] * t[0] + i[1] * t[1] + i[2] * t[2];
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function ps(i, t) {
|
|
872
872
|
return [i[1] * t[2] - i[2] * t[1], i[2] * t[0] - i[0] * t[2], i[0] * t[1] - i[1] * t[0]];
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function js(i, t) {
|
|
875
875
|
i[0] += t[0], i[1] += t[1], i[2] += t[2];
|
|
876
876
|
}
|
|
877
877
|
function Xn(i, t) {
|
|
878
878
|
return [i[0] * t, i[1] * t, i[2] * t];
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Oi(i) {
|
|
881
881
|
var t = ae(i[0] * i[0] + i[1] * i[1] + i[2] * i[2]);
|
|
882
882
|
i[0] /= t, i[1] /= t, i[2] /= t;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Li(i, t) {
|
|
885
885
|
function e(n, s) {
|
|
886
886
|
return n = i(n, s), t(n[0], n[1]);
|
|
887
887
|
}
|
|
@@ -889,12 +889,12 @@ function Oi(i, t) {
|
|
|
889
889
|
return n = t.invert(n, s), n && i.invert(n[0], n[1]);
|
|
890
890
|
}), e;
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Ai(i, t) {
|
|
893
893
|
return mt(i) > ht && (i -= Math.round(i / Yt) * Yt), [i, t];
|
|
894
894
|
}
|
|
895
|
-
|
|
895
|
+
Ai.invert = Ai;
|
|
896
896
|
function yo(i, t, e) {
|
|
897
|
-
return (i %= Yt) ? t || e ?
|
|
897
|
+
return (i %= Yt) ? t || e ? Li(Ya(i), Za(t, e)) : Ya(i) : t || e ? Za(t, e) : Ai;
|
|
898
898
|
}
|
|
899
899
|
function Xa(i) {
|
|
900
900
|
return function(t, e) {
|
|
@@ -936,11 +936,11 @@ function ru(i, t, e, n, s, a) {
|
|
|
936
936
|
var r = vt(t), o = ft(t), c = n * e;
|
|
937
937
|
s == null ? (s = t + n * Yt, a = t - c / 2) : (s = qa(r, s), a = qa(r, a), (n > 0 ? s < a : s > a) && (s += n * Yt));
|
|
938
938
|
for (var l, h = s; n > 0 ? h > a : h < a; h -= c)
|
|
939
|
-
l =
|
|
939
|
+
l = bi([r, -o * vt(h), -o * ft(h)]), i.point(l[0], l[1]);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
function qa(i, t) {
|
|
943
|
-
t = rn(t), t[0] -= i,
|
|
943
|
+
t = rn(t), t[0] -= i, Oi(t);
|
|
944
944
|
var e = iu(-t[1]);
|
|
945
945
|
return ((-t[2] < 0 ? -e : e) + Yt - gt) % Yt;
|
|
946
946
|
}
|
|
@@ -1017,21 +1017,21 @@ function ja(i) {
|
|
|
1017
1017
|
n.n = s = i[0], s.p = n;
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function Ks(i) {
|
|
1021
1021
|
return mt(i[0]) <= ht ? i[0] : Oe(i[0]) * ((mt(i[0]) + ht) % Yt - ht);
|
|
1022
1022
|
}
|
|
1023
1023
|
function ou(i, t) {
|
|
1024
|
-
var e =
|
|
1024
|
+
var e = Ks(t), n = t[1], s = ft(n), a = [ft(e), -vt(e), 0], r = 0, o = 0, c = new De();
|
|
1025
1025
|
s === 1 ? n = Ft + gt : s === -1 && (n = -Ft - gt);
|
|
1026
1026
|
for (var l = 0, h = i.length; l < h; ++l)
|
|
1027
1027
|
if (u = (d = i[l]).length)
|
|
1028
|
-
for (var d, u, p = d[u - 1], f =
|
|
1029
|
-
var y = d[S], E =
|
|
1030
|
-
if (c.add(Ne(H *
|
|
1031
|
-
var N =
|
|
1032
|
-
|
|
1033
|
-
var M =
|
|
1034
|
-
|
|
1028
|
+
for (var d, u, p = d[u - 1], f = Ks(p), m = p[1] / 2 + za, g = ft(m), v = vt(m), S = 0; S < u; ++S, f = E, g = T, v = C, p = y) {
|
|
1029
|
+
var y = d[S], E = Ks(y), x = y[1] / 2 + za, T = ft(x), C = vt(x), _ = E - f, V = _ >= 0 ? 1 : -1, R = V * _, A = R > ht, H = g * T;
|
|
1030
|
+
if (c.add(Ne(H * V * ft(R), v * C + H * vt(R))), r += A ? _ + V * Yt : _, A ^ f >= e ^ E >= e) {
|
|
1031
|
+
var N = ps(rn(p), rn(y));
|
|
1032
|
+
Oi(N);
|
|
1033
|
+
var M = ps(a, N);
|
|
1034
|
+
Oi(M);
|
|
1035
1035
|
var L = (A ^ _ >= 0 ? -1 : 1) * Se(M[2]);
|
|
1036
1036
|
(n > L || n === L && (N[0] || N[1])) && (o += A ^ _ >= 0 ? 1 : -1);
|
|
1037
1037
|
}
|
|
@@ -1076,16 +1076,16 @@ function So(i, t, e, n) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
function y() {
|
|
1078
1078
|
v(d[0][0], d[0][1]), o.lineEnd();
|
|
1079
|
-
var E = o.clean(), x = r.result(), T,
|
|
1080
|
-
if (d.pop(), l.push(d), d = null, !!
|
|
1079
|
+
var E = o.clean(), x = r.result(), T, C = x.length, _, V, R;
|
|
1080
|
+
if (d.pop(), l.push(d), d = null, !!C) {
|
|
1081
1081
|
if (E & 1) {
|
|
1082
|
-
if (
|
|
1083
|
-
for (c || (s.polygonStart(), c = !0), s.lineStart(), T = 0; T < _; ++T) s.point((R =
|
|
1082
|
+
if (V = x[0], (_ = V.length - 1) > 0) {
|
|
1083
|
+
for (c || (s.polygonStart(), c = !0), s.lineStart(), T = 0; T < _; ++T) s.point((R = V[T])[0], R[1]);
|
|
1084
1084
|
s.lineEnd();
|
|
1085
1085
|
}
|
|
1086
1086
|
return;
|
|
1087
1087
|
}
|
|
1088
|
-
|
|
1088
|
+
C > 1 && E & 2 && x.push(x.pop().concat(x.shift())), h.push(x.filter(lu));
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
return u;
|
|
@@ -1172,20 +1172,20 @@ function pu(i) {
|
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
1174
|
function c(h, d, u) {
|
|
1175
|
-
var p = rn(h), f = rn(d), m = [1, 0, 0], g =
|
|
1175
|
+
var p = rn(h), f = rn(d), m = [1, 0, 0], g = ps(p, f), v = Wn(g, g), S = g[0], y = v - S * S;
|
|
1176
1176
|
if (!y) return !u && h;
|
|
1177
|
-
var E = t * v / y, x = -t * S / y, T =
|
|
1178
|
-
|
|
1179
|
-
var
|
|
1177
|
+
var E = t * v / y, x = -t * S / y, T = ps(m, g), C = Xn(m, E), _ = Xn(g, x);
|
|
1178
|
+
js(C, _);
|
|
1179
|
+
var V = T, R = Wn(C, V), A = Wn(V, V), H = R * R - A * (Wn(C, C) - 1);
|
|
1180
1180
|
if (!(H < 0)) {
|
|
1181
|
-
var N = ae(H), M = Xn(
|
|
1182
|
-
if (
|
|
1183
|
-
var L = h[0], P = d[0], $ = h[1],
|
|
1184
|
-
P < L && (
|
|
1181
|
+
var N = ae(H), M = Xn(V, (-R - N) / A);
|
|
1182
|
+
if (js(M, C), M = bi(M), !u) return M;
|
|
1183
|
+
var L = h[0], P = d[0], $ = h[1], k = d[1], G;
|
|
1184
|
+
P < L && (G = L, L = P, P = G);
|
|
1185
1185
|
var q = P - L, X = mt(q - ht) < gt, F = X || q < gt;
|
|
1186
|
-
if (!X &&
|
|
1187
|
-
var Z = Xn(
|
|
1188
|
-
return
|
|
1186
|
+
if (!X && k < $ && (G = $, $ = k, k = G), F ? X ? $ + k > 0 ^ M[1] < (mt(M[0] - L) < gt ? $ : k) : $ <= M[1] && M[1] <= k : q > ht ^ (L <= M[0] && M[0] <= P)) {
|
|
1187
|
+
var Z = Xn(V, (-R + N) / A);
|
|
1188
|
+
return js(Z, C), [M, bi(Z)];
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
@@ -1260,7 +1260,7 @@ function gu(i, t, e, n) {
|
|
|
1260
1260
|
return d !== u ? d - u : d === 0 ? h[1] - l[1] : d === 1 ? l[0] - h[0] : d === 2 ? l[1] - h[1] : h[0] - l[0];
|
|
1261
1261
|
}
|
|
1262
1262
|
return function(l) {
|
|
1263
|
-
var h = l, d = Eo(), u, p, f, m, g, v, S, y, E, x, T,
|
|
1263
|
+
var h = l, d = Eo(), u, p, f, m, g, v, S, y, E, x, T, C = {
|
|
1264
1264
|
point: _,
|
|
1265
1265
|
lineStart: H,
|
|
1266
1266
|
lineEnd: N,
|
|
@@ -1270,24 +1270,24 @@ function gu(i, t, e, n) {
|
|
|
1270
1270
|
function _(L, P) {
|
|
1271
1271
|
s(L, P) && h.point(L, P);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function V() {
|
|
1274
1274
|
for (var L = 0, P = 0, $ = p.length; P < $; ++P)
|
|
1275
|
-
for (var
|
|
1276
|
-
F = rt, Z = j, X =
|
|
1275
|
+
for (var k = p[P], G = 1, q = k.length, X = k[0], F, Z, rt = X[0], j = X[1]; G < q; ++G)
|
|
1276
|
+
F = rt, Z = j, X = k[G], rt = X[0], j = X[1], Z <= n ? j > n && (rt - F) * (n - Z) > (j - Z) * (i - F) && ++L : j <= n && (rt - F) * (n - Z) < (j - Z) * (i - F) && --L;
|
|
1277
1277
|
return L;
|
|
1278
1278
|
}
|
|
1279
1279
|
function R() {
|
|
1280
1280
|
h = d, u = [], p = [], T = !0;
|
|
1281
1281
|
}
|
|
1282
1282
|
function A() {
|
|
1283
|
-
var L =
|
|
1283
|
+
var L = V(), P = T && L, $ = (u = ho(u)).length;
|
|
1284
1284
|
(P || $) && (l.polygonStart(), P && (l.lineStart(), a(null, null, 1, l), l.lineEnd()), $ && xo(u, o, L, a, l), l.polygonEnd()), h = l, u = p = f = null;
|
|
1285
1285
|
}
|
|
1286
1286
|
function H() {
|
|
1287
|
-
|
|
1287
|
+
C.point = M, p && p.push(f = []), x = !0, E = !1, S = y = NaN;
|
|
1288
1288
|
}
|
|
1289
1289
|
function N() {
|
|
1290
|
-
u && (M(m, g), v && E && d.rejoin(), u.push(d.result())),
|
|
1290
|
+
u && (M(m, g), v && E && d.rejoin(), u.push(d.result())), C.point = _, E && h.lineEnd();
|
|
1291
1291
|
}
|
|
1292
1292
|
function M(L, P) {
|
|
1293
1293
|
var $ = s(L, P);
|
|
@@ -1295,16 +1295,16 @@ function gu(i, t, e, n) {
|
|
|
1295
1295
|
m = L, g = P, v = $, x = !1, $ && (h.lineStart(), h.point(L, P));
|
|
1296
1296
|
else if ($ && E) h.point(L, P);
|
|
1297
1297
|
else {
|
|
1298
|
-
var
|
|
1299
|
-
fu(
|
|
1298
|
+
var k = [S = Math.max(Zn, Math.min(xn, S)), y = Math.max(Zn, Math.min(xn, y))], G = [L = Math.max(Zn, Math.min(xn, L)), P = Math.max(Zn, Math.min(xn, P))];
|
|
1299
|
+
fu(k, G, i, t, e, n) ? (E || (h.lineStart(), h.point(k[0], k[1])), h.point(G[0], G[1]), $ || h.lineEnd(), T = !1) : $ && (h.lineStart(), h.point(L, P), T = !1);
|
|
1300
1300
|
}
|
|
1301
1301
|
S = L, y = P, E = $;
|
|
1302
1302
|
}
|
|
1303
|
-
return
|
|
1303
|
+
return C;
|
|
1304
1304
|
};
|
|
1305
1305
|
}
|
|
1306
|
-
const
|
|
1307
|
-
var
|
|
1306
|
+
const Mi = (i) => i;
|
|
1307
|
+
var Js = new De(), wi = new De(), To, bo, Ci, ki, Ee = {
|
|
1308
1308
|
point: Qt,
|
|
1309
1309
|
lineStart: Qt,
|
|
1310
1310
|
lineEnd: Qt,
|
|
@@ -1312,40 +1312,40 @@ var Ks = new De(), Mi = new De(), To, bo, wi, Ci, Ee = {
|
|
|
1312
1312
|
Ee.lineStart = mu, Ee.lineEnd = yu;
|
|
1313
1313
|
},
|
|
1314
1314
|
polygonEnd: function() {
|
|
1315
|
-
Ee.lineStart = Ee.lineEnd = Ee.point = Qt,
|
|
1315
|
+
Ee.lineStart = Ee.lineEnd = Ee.point = Qt, Js.add(mt(wi)), wi = new De();
|
|
1316
1316
|
},
|
|
1317
1317
|
result: function() {
|
|
1318
|
-
var i =
|
|
1319
|
-
return
|
|
1318
|
+
var i = Js / 2;
|
|
1319
|
+
return Js = new De(), i;
|
|
1320
1320
|
}
|
|
1321
1321
|
};
|
|
1322
1322
|
function mu() {
|
|
1323
1323
|
Ee.point = vu;
|
|
1324
1324
|
}
|
|
1325
1325
|
function vu(i, t) {
|
|
1326
|
-
Ee.point = Oo, To =
|
|
1326
|
+
Ee.point = Oo, To = Ci = i, bo = ki = t;
|
|
1327
1327
|
}
|
|
1328
1328
|
function Oo(i, t) {
|
|
1329
|
-
|
|
1329
|
+
wi.add(ki * i - Ci * t), Ci = i, ki = t;
|
|
1330
1330
|
}
|
|
1331
1331
|
function yu() {
|
|
1332
1332
|
Oo(To, bo);
|
|
1333
1333
|
}
|
|
1334
|
-
var on = 1 / 0,
|
|
1334
|
+
var on = 1 / 0, fs = on, _n = -on, gs = _n, ms = {
|
|
1335
1335
|
point: Eu,
|
|
1336
1336
|
lineStart: Qt,
|
|
1337
1337
|
lineEnd: Qt,
|
|
1338
1338
|
polygonStart: Qt,
|
|
1339
1339
|
polygonEnd: Qt,
|
|
1340
1340
|
result: function() {
|
|
1341
|
-
var i = [[on,
|
|
1342
|
-
return _n =
|
|
1341
|
+
var i = [[on, fs], [_n, gs]];
|
|
1342
|
+
return _n = gs = -(fs = on = 1 / 0), i;
|
|
1343
1343
|
}
|
|
1344
1344
|
};
|
|
1345
1345
|
function Eu(i, t) {
|
|
1346
|
-
i < on && (on = i), i > _n && (_n = i), t <
|
|
1346
|
+
i < on && (on = i), i > _n && (_n = i), t < fs && (fs = t), t > gs && (gs = t);
|
|
1347
1347
|
}
|
|
1348
|
-
var
|
|
1348
|
+
var _i = 0, Ii = 0, Sn = 0, vs = 0, ys = 0, en = 0, Ri = 0, Di = 0, Tn = 0, Lo, Ao, le, ce, Jt = {
|
|
1349
1349
|
point: Pe,
|
|
1350
1350
|
lineStart: Ja,
|
|
1351
1351
|
lineEnd: Qa,
|
|
@@ -1356,12 +1356,12 @@ var ki = 0, _i = 0, Sn = 0, ms = 0, vs = 0, en = 0, Ii = 0, Ri = 0, Tn = 0, Lo,
|
|
|
1356
1356
|
Jt.point = Pe, Jt.lineStart = Ja, Jt.lineEnd = Qa;
|
|
1357
1357
|
},
|
|
1358
1358
|
result: function() {
|
|
1359
|
-
var i = Tn ? [
|
|
1360
|
-
return
|
|
1359
|
+
var i = Tn ? [Ri / Tn, Di / Tn] : en ? [vs / en, ys / en] : Sn ? [_i / Sn, Ii / Sn] : [NaN, NaN];
|
|
1360
|
+
return _i = Ii = Sn = vs = ys = en = Ri = Di = Tn = 0, i;
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
1363
|
function Pe(i, t) {
|
|
1364
|
-
|
|
1364
|
+
_i += i, Ii += t, ++Sn;
|
|
1365
1365
|
}
|
|
1366
1366
|
function Ja() {
|
|
1367
1367
|
Jt.point = xu;
|
|
@@ -1371,7 +1371,7 @@ function xu(i, t) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
function Su(i, t) {
|
|
1373
1373
|
var e = i - le, n = t - ce, s = ae(e * e + n * n);
|
|
1374
|
-
|
|
1374
|
+
vs += s * (le + i) / 2, ys += s * (ce + t) / 2, en += s, Pe(le = i, ce = t);
|
|
1375
1375
|
}
|
|
1376
1376
|
function Qa() {
|
|
1377
1377
|
Jt.point = Pe;
|
|
@@ -1387,7 +1387,7 @@ function Ou(i, t) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
function Mo(i, t) {
|
|
1389
1389
|
var e = i - le, n = t - ce, s = ae(e * e + n * n);
|
|
1390
|
-
|
|
1390
|
+
vs += s * (le + i) / 2, ys += s * (ce + t) / 2, en += s, s = ce * i - le * t, Ri += s * (le + i), Di += s * (ce + t), Tn += s * 3, Pe(le = i, ce = t);
|
|
1391
1391
|
}
|
|
1392
1392
|
function wo(i) {
|
|
1393
1393
|
this._context = i;
|
|
@@ -1427,32 +1427,32 @@ wo.prototype = {
|
|
|
1427
1427
|
},
|
|
1428
1428
|
result: Qt
|
|
1429
1429
|
};
|
|
1430
|
-
var
|
|
1430
|
+
var Ni = new De(), Qs, Co, ko, bn, On, In = {
|
|
1431
1431
|
point: Qt,
|
|
1432
1432
|
lineStart: function() {
|
|
1433
1433
|
In.point = Lu;
|
|
1434
1434
|
},
|
|
1435
1435
|
lineEnd: function() {
|
|
1436
|
-
|
|
1436
|
+
Qs && _o(Co, ko), In.point = Qt;
|
|
1437
1437
|
},
|
|
1438
1438
|
polygonStart: function() {
|
|
1439
|
-
|
|
1439
|
+
Qs = !0;
|
|
1440
1440
|
},
|
|
1441
1441
|
polygonEnd: function() {
|
|
1442
|
-
|
|
1442
|
+
Qs = null;
|
|
1443
1443
|
},
|
|
1444
1444
|
result: function() {
|
|
1445
|
-
var i = +
|
|
1446
|
-
return
|
|
1445
|
+
var i = +Ni;
|
|
1446
|
+
return Ni = new De(), i;
|
|
1447
1447
|
}
|
|
1448
1448
|
};
|
|
1449
1449
|
function Lu(i, t) {
|
|
1450
1450
|
In.point = _o, Co = bn = i, ko = On = t;
|
|
1451
1451
|
}
|
|
1452
1452
|
function _o(i, t) {
|
|
1453
|
-
bn -= i, On -= t,
|
|
1453
|
+
bn -= i, On -= t, Ni.add(ae(bn * bn + On * On)), bn = i, On = t;
|
|
1454
1454
|
}
|
|
1455
|
-
let tr,
|
|
1455
|
+
let tr, Es, er, nr;
|
|
1456
1456
|
class sr {
|
|
1457
1457
|
constructor(t) {
|
|
1458
1458
|
this._append = t == null ? Io : Au(t), this._radius = 4.5, this._ = "";
|
|
@@ -1483,9 +1483,9 @@ class sr {
|
|
|
1483
1483
|
break;
|
|
1484
1484
|
}
|
|
1485
1485
|
default: {
|
|
1486
|
-
if (this._append`M${t},${e}`, this._radius !== er || this._append !==
|
|
1486
|
+
if (this._append`M${t},${e}`, this._radius !== er || this._append !== Es) {
|
|
1487
1487
|
const n = this._radius, s = this._;
|
|
1488
|
-
this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, er = n,
|
|
1488
|
+
this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, er = n, Es = this._append, nr = this._, this._ = s;
|
|
1489
1489
|
}
|
|
1490
1490
|
this._ += nr;
|
|
1491
1491
|
break;
|
|
@@ -1509,14 +1509,14 @@ function Au(i) {
|
|
|
1509
1509
|
if (t > 15) return Io;
|
|
1510
1510
|
if (t !== tr) {
|
|
1511
1511
|
const e = 10 ** t;
|
|
1512
|
-
tr = t,
|
|
1512
|
+
tr = t, Es = function(s) {
|
|
1513
1513
|
let a = 1;
|
|
1514
1514
|
this._ += s[0];
|
|
1515
1515
|
for (const r = s.length; a < r; ++a)
|
|
1516
1516
|
this._ += Math.round(arguments[a] * e) / e + s[a];
|
|
1517
1517
|
};
|
|
1518
1518
|
}
|
|
1519
|
-
return
|
|
1519
|
+
return Es;
|
|
1520
1520
|
}
|
|
1521
1521
|
function Mu(i, t) {
|
|
1522
1522
|
let e = 3, n = 4.5, s, a;
|
|
@@ -1528,11 +1528,11 @@ function Mu(i, t) {
|
|
|
1528
1528
|
}, r.measure = function(o) {
|
|
1529
1529
|
return je(o, s(In)), In.result();
|
|
1530
1530
|
}, r.bounds = function(o) {
|
|
1531
|
-
return je(o, s(
|
|
1531
|
+
return je(o, s(ms)), ms.result();
|
|
1532
1532
|
}, r.centroid = function(o) {
|
|
1533
1533
|
return je(o, s(Jt)), Jt.result();
|
|
1534
1534
|
}, r.projection = function(o) {
|
|
1535
|
-
return arguments.length ? (s = o == null ? (i = null,
|
|
1535
|
+
return arguments.length ? (s = o == null ? (i = null, Mi) : (i = o).stream, r) : i;
|
|
1536
1536
|
}, r.context = function(o) {
|
|
1537
1537
|
return arguments.length ? (a = o == null ? (t = null, new sr(e)) : new wo(t = o), typeof n != "function" && a.pointRadius(n), r) : t;
|
|
1538
1538
|
}, r.pointRadius = function(o) {
|
|
@@ -1550,15 +1550,15 @@ function Mu(i, t) {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
function Xi(i) {
|
|
1552
1552
|
return function(t) {
|
|
1553
|
-
var e = new
|
|
1553
|
+
var e = new Pi();
|
|
1554
1554
|
for (var n in i) e[n] = i[n];
|
|
1555
1555
|
return e.stream = t, e;
|
|
1556
1556
|
};
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function Pi() {
|
|
1559
1559
|
}
|
|
1560
|
-
|
|
1561
|
-
constructor:
|
|
1560
|
+
Pi.prototype = {
|
|
1561
|
+
constructor: Pi,
|
|
1562
1562
|
point: function(i, t) {
|
|
1563
1563
|
this.stream.point(i, t);
|
|
1564
1564
|
},
|
|
@@ -1580,7 +1580,7 @@ Ni.prototype = {
|
|
|
1580
1580
|
};
|
|
1581
1581
|
function Yi(i, t, e) {
|
|
1582
1582
|
var n = i.clipExtent && i.clipExtent();
|
|
1583
|
-
return i.scale(150).translate([0, 0]), n != null && i.clipExtent(null), je(e, i.stream(
|
|
1583
|
+
return i.scale(150).translate([0, 0]), n != null && i.clipExtent(null), je(e, i.stream(ms)), t(ms.result()), n != null && i.clipExtent(n), i;
|
|
1584
1584
|
}
|
|
1585
1585
|
function Ro(i, t, e) {
|
|
1586
1586
|
return Yi(i, function(n) {
|
|
@@ -1618,8 +1618,8 @@ function Ru(i, t) {
|
|
|
1618
1618
|
function e(n, s, a, r, o, c, l, h, d, u, p, f, m, g) {
|
|
1619
1619
|
var v = l - n, S = h - s, y = v * v + S * S;
|
|
1620
1620
|
if (y > 4 * t && m--) {
|
|
1621
|
-
var E = r + u, x = o + p, T = c + f,
|
|
1622
|
-
(L * L / y > t || mt((v * N + S * M) / y - 0.5) > 0.3 || r * u + o * p + c * f < _u) && (e(n, s, a, r, o, c, A, H,
|
|
1621
|
+
var E = r + u, x = o + p, T = c + f, C = ae(E * E + x * x + T * T), _ = Se(T /= C), V = mt(mt(T) - 1) < gt || mt(a - d) < gt ? (a + d) / 2 : Ne(x, E), R = i(V, _), A = R[0], H = R[1], N = A - n, M = H - s, L = S * N - v * M;
|
|
1622
|
+
(L * L / y > t || mt((v * N + S * M) / y - 0.5) > 0.3 || r * u + o * p + c * f < _u) && (e(n, s, a, r, o, c, A, H, V, E /= C, x /= C, T, m, g), g.point(A, H), e(A, H, V, E, x, T, l, h, d, u, p, f, m, g));
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
return function(n) {
|
|
@@ -1634,26 +1634,26 @@ function Ru(i, t) {
|
|
|
1634
1634
|
n.polygonEnd(), g.lineStart = S;
|
|
1635
1635
|
}
|
|
1636
1636
|
};
|
|
1637
|
-
function v(_,
|
|
1638
|
-
_ = i(_,
|
|
1637
|
+
function v(_, V) {
|
|
1638
|
+
_ = i(_, V), n.point(_[0], _[1]);
|
|
1639
1639
|
}
|
|
1640
1640
|
function S() {
|
|
1641
1641
|
d = NaN, g.point = y, n.lineStart();
|
|
1642
1642
|
}
|
|
1643
|
-
function y(_,
|
|
1644
|
-
var R = rn([_,
|
|
1643
|
+
function y(_, V) {
|
|
1644
|
+
var R = rn([_, V]), A = i(_, V);
|
|
1645
1645
|
e(d, u, h, p, f, m, d = A[0], u = A[1], h = _, p = R[0], f = R[1], m = R[2], ir, n), n.point(d, u);
|
|
1646
1646
|
}
|
|
1647
1647
|
function E() {
|
|
1648
1648
|
g.point = v, n.lineEnd();
|
|
1649
1649
|
}
|
|
1650
1650
|
function x() {
|
|
1651
|
-
S(), g.point = T, g.lineEnd =
|
|
1651
|
+
S(), g.point = T, g.lineEnd = C;
|
|
1652
1652
|
}
|
|
1653
|
-
function T(_,
|
|
1654
|
-
y(s = _,
|
|
1653
|
+
function T(_, V) {
|
|
1654
|
+
y(s = _, V), a = d, r = u, o = p, c = f, l = m, g.point = y;
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function C() {
|
|
1657
1657
|
e(d, u, h, p, f, m, a, r, s, o, c, l, ir, n), g.lineEnd = E, E();
|
|
1658
1658
|
}
|
|
1659
1659
|
return g;
|
|
@@ -1690,13 +1690,13 @@ function rr(i, t, e, n, s, a) {
|
|
|
1690
1690
|
return [n * (h * m - d * g + u), s * (p - d * m - h * g)];
|
|
1691
1691
|
}, f;
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function ws(i) {
|
|
1694
1694
|
return Do(function() {
|
|
1695
1695
|
return i;
|
|
1696
1696
|
})();
|
|
1697
1697
|
}
|
|
1698
1698
|
function Do(i) {
|
|
1699
|
-
var t, e = 150, n = 480, s = 250, a = 0, r = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, m = Ka, g = null, v, S, y, E =
|
|
1699
|
+
var t, e = 150, n = 480, s = 250, a = 0, r = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, m = Ka, g = null, v, S, y, E = Mi, x = 0.5, T, C, _, V, R;
|
|
1700
1700
|
function A(L) {
|
|
1701
1701
|
return _(L[0] * Ot, L[1] * Ot);
|
|
1702
1702
|
}
|
|
@@ -1704,7 +1704,7 @@ function Do(i) {
|
|
|
1704
1704
|
return L = _.invert(L[0], L[1]), L && [L[0] * Vt, L[1] * Vt];
|
|
1705
1705
|
}
|
|
1706
1706
|
A.stream = function(L) {
|
|
1707
|
-
return
|
|
1707
|
+
return V && R === L ? V : V = Du(Nu(h)(m(T(E(R = L)))));
|
|
1708
1708
|
}, A.preclip = function(L) {
|
|
1709
1709
|
return arguments.length ? (m = L, f = void 0, M()) : m;
|
|
1710
1710
|
}, A.postclip = function(L) {
|
|
@@ -1712,7 +1712,7 @@ function Do(i) {
|
|
|
1712
1712
|
}, A.clipAngle = function(L) {
|
|
1713
1713
|
return arguments.length ? (m = +L ? pu(f = L * Ot) : (f = null, Ka), M()) : f * Vt;
|
|
1714
1714
|
}, A.clipExtent = function(L) {
|
|
1715
|
-
return arguments.length ? (E = L == null ? (g = v = S = y = null,
|
|
1715
|
+
return arguments.length ? (E = L == null ? (g = v = S = y = null, Mi) : gu(g = +L[0][0], v = +L[0][1], S = +L[1][0], y = +L[1][1]), M()) : g == null ? null : [[g, v], [S, y]];
|
|
1716
1716
|
}, A.scale = function(L) {
|
|
1717
1717
|
return arguments.length ? (e = +L, N()) : e;
|
|
1718
1718
|
}, A.translate = function(L) {
|
|
@@ -1728,7 +1728,7 @@ function Do(i) {
|
|
|
1728
1728
|
}, A.reflectY = function(L) {
|
|
1729
1729
|
return arguments.length ? (p = L ? -1 : 1, N()) : p < 0;
|
|
1730
1730
|
}, A.precision = function(L) {
|
|
1731
|
-
return arguments.length ? (T = ar(
|
|
1731
|
+
return arguments.length ? (T = ar(C, x = L * L), M()) : ae(x);
|
|
1732
1732
|
}, A.fitExtent = function(L, P) {
|
|
1733
1733
|
return Ro(A, L, P);
|
|
1734
1734
|
}, A.fitSize = function(L, P) {
|
|
@@ -1740,10 +1740,10 @@ function Do(i) {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
function N() {
|
|
1742
1742
|
var L = rr(e, 0, 0, u, p, d).apply(null, t(a, r)), P = rr(e, n - L[0], s - L[1], u, p, d);
|
|
1743
|
-
return h = yo(o, c, l),
|
|
1743
|
+
return h = yo(o, c, l), C = Li(t, P), _ = Li(h, C), T = ar(C, x), M();
|
|
1744
1744
|
}
|
|
1745
1745
|
function M() {
|
|
1746
|
-
return
|
|
1746
|
+
return V = R = null, A;
|
|
1747
1747
|
}
|
|
1748
1748
|
return function() {
|
|
1749
1749
|
return t = i.apply(this, arguments), A.invert = t.invert && H, N();
|
|
@@ -1793,7 +1793,7 @@ function Hu() {
|
|
|
1793
1793
|
return Bu(Zi).scale(961 / Yt);
|
|
1794
1794
|
}
|
|
1795
1795
|
function Bu(i) {
|
|
1796
|
-
var t =
|
|
1796
|
+
var t = ws(i), e = t.center, n = t.scale, s = t.translate, a = t.clipExtent, r = null, o, c, l;
|
|
1797
1797
|
t.scale = function(d) {
|
|
1798
1798
|
return arguments.length ? (n(d), h()) : n();
|
|
1799
1799
|
}, t.translate = function(d) {
|
|
@@ -1809,16 +1809,16 @@ function Bu(i) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
return h();
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function xs(i, t) {
|
|
1813
1813
|
return [i, t];
|
|
1814
1814
|
}
|
|
1815
|
-
|
|
1815
|
+
xs.invert = xs;
|
|
1816
1816
|
function zu() {
|
|
1817
|
-
return
|
|
1817
|
+
return ws(xs).scale(152.63);
|
|
1818
1818
|
}
|
|
1819
1819
|
function Uu(i, t) {
|
|
1820
1820
|
var e = vt(i), n = i === t ? ft(i) : (e - vt(t)) / (t - i), s = e / n + i;
|
|
1821
|
-
if (mt(n) < gt) return
|
|
1821
|
+
if (mt(n) < gt) return xs;
|
|
1822
1822
|
function a(r, o) {
|
|
1823
1823
|
var c = s - o, l = n * r;
|
|
1824
1824
|
return [c * ft(l), s - c * vt(l)];
|
|
@@ -1831,11 +1831,11 @@ function Uu(i, t) {
|
|
|
1831
1831
|
function Fu() {
|
|
1832
1832
|
return No(Uu).scale(131.154).center([0, 13.9389]);
|
|
1833
1833
|
}
|
|
1834
|
-
var An = 1.340264, Mn = -0.081106, wn = 893e-6, Cn = 3796e-6,
|
|
1834
|
+
var An = 1.340264, Mn = -0.081106, wn = 893e-6, Cn = 3796e-6, Ss = ae(3) / 2, Wu = 12;
|
|
1835
1835
|
function $o(i, t) {
|
|
1836
|
-
var e = Se(
|
|
1836
|
+
var e = Se(Ss * ft(t)), n = e * e, s = n * n * n;
|
|
1837
1837
|
return [
|
|
1838
|
-
i * vt(e) / (
|
|
1838
|
+
i * vt(e) / (Ss * (An + 3 * Mn * n + s * (7 * wn + 9 * Cn * n))),
|
|
1839
1839
|
e * (An + Mn * n + s * (wn + Cn * n))
|
|
1840
1840
|
];
|
|
1841
1841
|
}
|
|
@@ -1843,12 +1843,12 @@ $o.invert = function(i, t) {
|
|
|
1843
1843
|
for (var e = t, n = e * e, s = n * n * n, a = 0, r, o, c; a < Wu && (o = e * (An + Mn * n + s * (wn + Cn * n)) - t, c = An + 3 * Mn * n + s * (7 * wn + 9 * Cn * n), e -= r = o / c, n = e * e, s = n * n * n, !(mt(r) < mo)); ++a)
|
|
1844
1844
|
;
|
|
1845
1845
|
return [
|
|
1846
|
-
|
|
1847
|
-
Se(ft(e) /
|
|
1846
|
+
Ss * i * (An + 3 * Mn * n + s * (7 * wn + 9 * Cn * n)) / vt(e),
|
|
1847
|
+
Se(ft(e) / Ss)
|
|
1848
1848
|
];
|
|
1849
1849
|
};
|
|
1850
1850
|
function Xu() {
|
|
1851
|
-
return
|
|
1851
|
+
return ws($o).scale(177.158);
|
|
1852
1852
|
}
|
|
1853
1853
|
function Vo(i, t) {
|
|
1854
1854
|
var e = t * t, n = e * e;
|
|
@@ -1869,7 +1869,7 @@ Vo.invert = function(i, t) {
|
|
|
1869
1869
|
];
|
|
1870
1870
|
};
|
|
1871
1871
|
function Yu() {
|
|
1872
|
-
return
|
|
1872
|
+
return ws(Vo).scale(175.295);
|
|
1873
1873
|
}
|
|
1874
1874
|
function Zu(i, t) {
|
|
1875
1875
|
return i.parent === t.parent ? 1 : 2;
|
|
@@ -2090,13 +2090,13 @@ function wh(i, t) {
|
|
|
2090
2090
|
}
|
|
2091
2091
|
function Ch(i, t) {
|
|
2092
2092
|
var e, n;
|
|
2093
|
-
if (
|
|
2093
|
+
if (ti(t, i)) return [t];
|
|
2094
2094
|
for (e = 0; e < i.length; ++e)
|
|
2095
|
-
if (qn(t, i[e]) &&
|
|
2095
|
+
if (qn(t, i[e]) && ti(Ln(i[e], t), i))
|
|
2096
2096
|
return [i[e], t];
|
|
2097
2097
|
for (e = 0; e < i.length - 1; ++e)
|
|
2098
2098
|
for (n = e + 1; n < i.length; ++n)
|
|
2099
|
-
if (qn(Ln(i[e], i[n]), t) && qn(Ln(i[e], t), i[n]) && qn(Ln(i[n], t), i[e]) &&
|
|
2099
|
+
if (qn(Ln(i[e], i[n]), t) && qn(Ln(i[e], t), i[n]) && qn(Ln(i[n], t), i[e]) && ti(Bo(i[e], i[n], t), i))
|
|
2100
2100
|
return [i[e], i[n], t];
|
|
2101
2101
|
throw new Error();
|
|
2102
2102
|
}
|
|
@@ -2108,7 +2108,7 @@ function Ho(i, t) {
|
|
|
2108
2108
|
var e = i.r - t.r + Math.max(i.r, t.r, 1) * 1e-9, n = t.x - i.x, s = t.y - i.y;
|
|
2109
2109
|
return e > 0 && e * e > n * n + s * s;
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function ti(i, t) {
|
|
2112
2112
|
for (var e = 0; e < t.length; ++e)
|
|
2113
2113
|
if (!Ho(i, t[e]))
|
|
2114
2114
|
return !1;
|
|
@@ -2140,10 +2140,10 @@ function Ln(i, t) {
|
|
|
2140
2140
|
};
|
|
2141
2141
|
}
|
|
2142
2142
|
function Bo(i, t, e) {
|
|
2143
|
-
var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, m = s - h, g = c - a, v = d - a, S = n * n + s * s - a * a, y = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * m, T = (f * E - m * y) / (x * 2) - n,
|
|
2143
|
+
var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, m = s - h, g = c - a, v = d - a, S = n * n + s * s - a * a, y = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * m, T = (f * E - m * y) / (x * 2) - n, C = (m * g - f * v) / x, _ = (p * y - u * E) / (x * 2) - s, V = (u * v - p * g) / x, R = C * C + V * V - 1, A = 2 * (a + T * C + _ * V), H = T * T + _ * _ - a * a, N = -(Math.abs(R) > 1e-6 ? (A + Math.sqrt(A * A - 4 * R * H)) / (2 * R) : H / A);
|
|
2144
2144
|
return {
|
|
2145
|
-
x: n + T +
|
|
2146
|
-
y: s + _ +
|
|
2145
|
+
x: n + T + C * N,
|
|
2146
|
+
y: s + _ + V * N,
|
|
2147
2147
|
r: N
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
@@ -2200,7 +2200,7 @@ function Dh() {
|
|
|
2200
2200
|
var i = null, t = 1, e = 1, n = Ie;
|
|
2201
2201
|
function s(a) {
|
|
2202
2202
|
const r = Lh();
|
|
2203
|
-
return a.x = t / 2, a.y = e / 2, i ? a.eachBefore(hr(i)).eachAfter(
|
|
2203
|
+
return a.x = t / 2, a.y = e / 2, i ? a.eachBefore(hr(i)).eachAfter(ei(n, 0.5, r)).eachBefore(dr(1)) : a.eachBefore(hr(Rh)).eachAfter(ei(Ie, 1, r)).eachAfter(ei(n, a.r / Math.min(t, e), r)).eachBefore(dr(Math.min(t, e) / (2 * a.r))), a;
|
|
2204
2204
|
}
|
|
2205
2205
|
return s.radius = function(a) {
|
|
2206
2206
|
return arguments.length ? (i = Th(a), s) : i;
|
|
@@ -2215,7 +2215,7 @@ function hr(i) {
|
|
|
2215
2215
|
t.children || (t.r = Math.max(0, +i(t) || 0));
|
|
2216
2216
|
};
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function ei(i, t, e) {
|
|
2219
2219
|
return function(n) {
|
|
2220
2220
|
if (s = n.children) {
|
|
2221
2221
|
var s, a, r = s.length, o = i(n) * t || 0, c;
|
|
@@ -2241,11 +2241,11 @@ function Ph(i, t, e, n, s) {
|
|
|
2241
2241
|
function $h(i, t) {
|
|
2242
2242
|
return i.parent === t.parent ? 1 : 2;
|
|
2243
2243
|
}
|
|
2244
|
-
function
|
|
2244
|
+
function ni(i) {
|
|
2245
2245
|
var t = i.children;
|
|
2246
2246
|
return t ? t[0] : i.t;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function si(i) {
|
|
2249
2249
|
var t = i.children;
|
|
2250
2250
|
return t ? t[t.length - 1] : i.t;
|
|
2251
2251
|
}
|
|
@@ -2302,9 +2302,9 @@ function zh() {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
function o(l, h, d) {
|
|
2304
2304
|
if (h) {
|
|
2305
|
-
for (var u = l, p = l, f = h, m = u.parent.children[0], g = u.m, v = p.m, S = f.m, y = m.m, E; f =
|
|
2306
|
-
m =
|
|
2307
|
-
f && !
|
|
2305
|
+
for (var u = l, p = l, f = h, m = u.parent.children[0], g = u.m, v = p.m, S = f.m, y = m.m, E; f = si(f), u = ni(u), f && u; )
|
|
2306
|
+
m = ni(m), p = si(p), p.a = l, E = f.z + S - u.z - g + i(f._, u._), E > 0 && (Vh(Hh(f, l, d), l, E), g += E, v += E), S += f.m, g += u.m, y += m.m, v += p.m;
|
|
2307
|
+
f && !si(p) && (p.t = f, p.m += S - v), u && !ni(m) && (m.t = u, m.m += g - y, d = l);
|
|
2308
2308
|
}
|
|
2309
2309
|
return d;
|
|
2310
2310
|
}
|
|
@@ -2380,7 +2380,7 @@ function Yh() {
|
|
|
2380
2380
|
return arguments.length ? (l = typeof u == "function" ? u : Ke(+u), h) : l;
|
|
2381
2381
|
}, h;
|
|
2382
2382
|
}
|
|
2383
|
-
function
|
|
2383
|
+
function Cs(i) {
|
|
2384
2384
|
let t = 3;
|
|
2385
2385
|
return i.digits = function(e) {
|
|
2386
2386
|
if (!arguments.length) return t;
|
|
@@ -2415,40 +2415,40 @@ function Qh(i, t, e, n, s, a, r, o) {
|
|
|
2415
2415
|
return u = (h * (t - a) - d * (i - s)) / u, [i + u * c, t + u * l];
|
|
2416
2416
|
}
|
|
2417
2417
|
function Kn(i, t, e, n, s, a, r) {
|
|
2418
|
-
var o = i - e, c = t - n, l = (r ? a : -a) / tn(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, m = n + d, g = (u + f) / 2, v = (p + m) / 2, S = f - u, y = m - p, E = S * S + y * y, x = s - a, T = u * m - f * p,
|
|
2419
|
-
return H * H + N * N > M * M + L * L && (_ = R,
|
|
2418
|
+
var o = i - e, c = t - n, l = (r ? a : -a) / tn(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, m = n + d, g = (u + f) / 2, v = (p + m) / 2, S = f - u, y = m - p, E = S * S + y * y, x = s - a, T = u * m - f * p, C = (y < 0 ? -1 : 1) * tn(Al(0, x * x * E - T * T)), _ = (T * y - S * C) / E, V = (-T * S - y * C) / E, R = (T * y + S * C) / E, A = (-T * S + y * C) / E, H = _ - g, N = V - v, M = R - g, L = A - v;
|
|
2419
|
+
return H * H + N * N > M * M + L * L && (_ = R, V = A), {
|
|
2420
2420
|
cx: _,
|
|
2421
|
-
cy:
|
|
2421
|
+
cy: V,
|
|
2422
2422
|
x01: -h,
|
|
2423
2423
|
y01: -d,
|
|
2424
2424
|
x11: _ * (s / x - 1),
|
|
2425
|
-
y11:
|
|
2425
|
+
y11: V * (s / x - 1)
|
|
2426
2426
|
};
|
|
2427
2427
|
}
|
|
2428
2428
|
function Dn() {
|
|
2429
|
-
var i = Zh, t = qh, e = pt(0), n = null, s = jh, a = Kh, r = Jh, o = null, c =
|
|
2429
|
+
var i = Zh, t = qh, e = pt(0), n = null, s = jh, a = Kh, r = Jh, o = null, c = Cs(l);
|
|
2430
2430
|
function l() {
|
|
2431
2431
|
var h, d, u = +i.apply(this, arguments), p = +t.apply(this, arguments), f = s.apply(this, arguments) - La, m = a.apply(this, arguments) - La, g = Aa(m - f), v = m > f;
|
|
2432
2432
|
if (o || (o = h = c()), p < u && (d = p, p = u, u = d), !(p > Ut)) o.moveTo(0, 0);
|
|
2433
2433
|
else if (g > ss - Ut)
|
|
2434
2434
|
o.moveTo(p * Ce(f), p * oe(f)), o.arc(0, 0, p, f, m, !v), u > Ut && (o.moveTo(u * Ce(m), u * oe(m)), o.arc(0, 0, u, m, f, v));
|
|
2435
2435
|
else {
|
|
2436
|
-
var S = f, y = m, E = f, x = m, T = g,
|
|
2437
|
-
if (
|
|
2438
|
-
var L = wa(
|
|
2439
|
-
(T -= L * 2) > Ut ? (L *= v ? 1 : -1, E += L, x -= L) : (T = 0, E = x = (f + m) / 2), (
|
|
2436
|
+
var S = f, y = m, E = f, x = m, T = g, C = g, _ = r.apply(this, arguments) / 2, V = _ > Ut && (n ? +n.apply(this, arguments) : tn(u * u + p * p)), R = Fs(Aa(p - u) / 2, +e.apply(this, arguments)), A = R, H = R, N, M;
|
|
2437
|
+
if (V > Ut) {
|
|
2438
|
+
var L = wa(V / u * oe(_)), P = wa(V / p * oe(_));
|
|
2439
|
+
(T -= L * 2) > Ut ? (L *= v ? 1 : -1, E += L, x -= L) : (T = 0, E = x = (f + m) / 2), (C -= P * 2) > Ut ? (P *= v ? 1 : -1, S += P, y -= P) : (C = 0, S = y = (f + m) / 2);
|
|
2440
2440
|
}
|
|
2441
|
-
var $ = p * Ce(S),
|
|
2441
|
+
var $ = p * Ce(S), k = p * oe(S), G = u * Ce(x), q = u * oe(x);
|
|
2442
2442
|
if (R > Ut) {
|
|
2443
2443
|
var X = p * Ce(y), F = p * oe(y), Z = u * Ce(E), rt = u * oe(E), j;
|
|
2444
2444
|
if (g < Ma)
|
|
2445
|
-
if (j = Qh($,
|
|
2446
|
-
var Y = $ - j[0], K =
|
|
2447
|
-
A =
|
|
2445
|
+
if (j = Qh($, k, Z, rt, X, F, G, q)) {
|
|
2446
|
+
var Y = $ - j[0], K = k - j[1], ot = X - j[0], ct = F - j[1], st = 1 / oe(Ll((Y * ot + K * ct) / (tn(Y * Y + K * K) * tn(ot * ot + ct * ct))) / 2), it = tn(j[0] * j[0] + j[1] * j[1]);
|
|
2447
|
+
A = Fs(R, (u - it) / (st - 1)), H = Fs(R, (p - it) / (st + 1));
|
|
2448
2448
|
} else
|
|
2449
2449
|
A = H = 0;
|
|
2450
2450
|
}
|
|
2451
|
-
|
|
2451
|
+
C > Ut ? H > Ut ? (N = Kn(Z, rt, $, k, p, H, v), M = Kn(X, F, G, q, p, H, v), o.moveTo(N.cx + N.x01, N.cy + N.y01), H < R ? o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, p, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), !v), o.arc(M.cx, M.cy, H, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : (o.moveTo($, k), o.arc(0, 0, p, S, y, !v)) : o.moveTo($, k), !(u > Ut) || !(T > Ut) ? o.lineTo(G, q) : A > Ut ? (N = Kn(G, q, X, F, u, -A, v), M = Kn($, k, Z, rt, u, -A, v), o.lineTo(N.cx + N.x01, N.cy + N.y01), A < R ? o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, u, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), v), o.arc(M.cx, M.cy, A, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : o.arc(0, 0, u, x, E, v);
|
|
2452
2452
|
}
|
|
2453
2453
|
if (o.closePath(), h) return o = null, h + "" || null;
|
|
2454
2454
|
}
|
|
@@ -2480,7 +2480,7 @@ function ji(i) {
|
|
|
2480
2480
|
return i[1];
|
|
2481
2481
|
}
|
|
2482
2482
|
function Pn(i, t) {
|
|
2483
|
-
var e = pt(!0), n = null, s =
|
|
2483
|
+
var e = pt(!0), n = null, s = zi, a = null, r = Cs(o);
|
|
2484
2484
|
i = typeof i == "function" ? i : i === void 0 ? qi : pt(i), t = typeof t == "function" ? t : t === void 0 ? ji : pt(t);
|
|
2485
2485
|
function o(c) {
|
|
2486
2486
|
var l, h = (c = Ui(c)).length, d, u = !1, p;
|
|
@@ -2501,7 +2501,7 @@ function Pn(i, t) {
|
|
|
2501
2501
|
}, o;
|
|
2502
2502
|
}
|
|
2503
2503
|
function Ki(i, t, e) {
|
|
2504
|
-
var n = null, s = pt(!0), a = null, r =
|
|
2504
|
+
var n = null, s = pt(!0), a = null, r = zi, o = null, c = Cs(l);
|
|
2505
2505
|
i = typeof i == "function" ? i : i === void 0 ? qi : pt(+i), t = typeof t == "function" ? t : t === void 0 ? pt(0) : pt(+t), e = typeof e == "function" ? e : e === void 0 ? ji : pt(+e);
|
|
2506
2506
|
function l(d) {
|
|
2507
2507
|
var u, p, f, m = (d = Ui(d)).length, g, v = !1, S, y = new Array(m), E = new Array(m);
|
|
@@ -2588,7 +2588,7 @@ function nd() {
|
|
|
2588
2588
|
return arguments.length ? (a = typeof o == "function" ? o : pt(+o), r) : a;
|
|
2589
2589
|
}, r;
|
|
2590
2590
|
}
|
|
2591
|
-
var sd = Uo(
|
|
2591
|
+
var sd = Uo(zi);
|
|
2592
2592
|
function zo(i) {
|
|
2593
2593
|
this._curve = i;
|
|
2594
2594
|
}
|
|
@@ -2667,7 +2667,7 @@ function cd(i) {
|
|
|
2667
2667
|
return i.target;
|
|
2668
2668
|
}
|
|
2669
2669
|
function ud(i) {
|
|
2670
|
-
let t = ld, e = cd, n = qi, s = ji, a = null, r = null, o =
|
|
2670
|
+
let t = ld, e = cd, n = qi, s = ji, a = null, r = null, o = Cs(c);
|
|
2671
2671
|
function c() {
|
|
2672
2672
|
let l;
|
|
2673
2673
|
const h = _l.call(arguments), d = t.apply(this, h), u = e.apply(this, h);
|
|
@@ -2770,8 +2770,8 @@ let {
|
|
|
2770
2770
|
seal: ee,
|
|
2771
2771
|
create: Wo
|
|
2772
2772
|
} = Object, {
|
|
2773
|
-
apply:
|
|
2774
|
-
construct:
|
|
2773
|
+
apply: $i,
|
|
2774
|
+
construct: Vi
|
|
2775
2775
|
} = typeof Reflect < "u" && Reflect;
|
|
2776
2776
|
Ht || (Ht = function(t) {
|
|
2777
2777
|
return t;
|
|
@@ -2779,26 +2779,26 @@ Ht || (Ht = function(t) {
|
|
|
2779
2779
|
ee || (ee = function(t) {
|
|
2780
2780
|
return t;
|
|
2781
2781
|
});
|
|
2782
|
-
|
|
2782
|
+
$i || ($i = function(t, e, n) {
|
|
2783
2783
|
return t.apply(e, n);
|
|
2784
2784
|
});
|
|
2785
|
-
|
|
2785
|
+
Vi || (Vi = function(t, e) {
|
|
2786
2786
|
return new t(...e);
|
|
2787
2787
|
});
|
|
2788
|
-
const Jn = Bt(Array.prototype.forEach), gd = Bt(Array.prototype.lastIndexOf), fr = Bt(Array.prototype.pop), pn = Bt(Array.prototype.push), md = Bt(Array.prototype.splice), cs = Bt(String.prototype.toLowerCase),
|
|
2788
|
+
const Jn = Bt(Array.prototype.forEach), gd = Bt(Array.prototype.lastIndexOf), fr = Bt(Array.prototype.pop), pn = Bt(Array.prototype.push), md = Bt(Array.prototype.splice), cs = Bt(String.prototype.toLowerCase), ii = Bt(String.prototype.toString), gr = Bt(String.prototype.match), fn = Bt(String.prototype.replace), vd = Bt(String.prototype.indexOf), yd = Bt(String.prototype.trim), ie = Bt(Object.prototype.hasOwnProperty), $t = Bt(RegExp.prototype.test), gn = Ed(TypeError);
|
|
2789
2789
|
function Bt(i) {
|
|
2790
2790
|
return function(t) {
|
|
2791
2791
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
2792
2792
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++)
|
|
2793
2793
|
n[s - 1] = arguments[s];
|
|
2794
|
-
return
|
|
2794
|
+
return $i(i, t, n);
|
|
2795
2795
|
};
|
|
2796
2796
|
}
|
|
2797
2797
|
function Ed(i) {
|
|
2798
2798
|
return function() {
|
|
2799
2799
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
2800
2800
|
e[n] = arguments[n];
|
|
2801
|
-
return
|
|
2801
|
+
return Vi(i, e);
|
|
2802
2802
|
};
|
|
2803
2803
|
}
|
|
2804
2804
|
function ut(i, t) {
|
|
@@ -2842,7 +2842,7 @@ function mn(i, t) {
|
|
|
2842
2842
|
}
|
|
2843
2843
|
return e;
|
|
2844
2844
|
}
|
|
2845
|
-
const mr = Ht(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
2845
|
+
const mr = Ht(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ai = Ht(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ri = Ht(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Sd = Ht(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), oi = Ht(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Td = Ht(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vr = Ht(["#text"]), yr = Ht(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), li = Ht(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Er = Ht(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qn = Ht(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bd = ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Od = ee(/<%[\w\W]*|[\w\W]*%>/gm), Ld = ee(/\$\{[\w\W]*/gm), Ad = ee(/^data-[\-\w.\u00B7-\uFFFF]+$/), Md = ee(/^aria-[\-\w]+$/), Xo = ee(
|
|
2846
2846
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2847
2847
|
// eslint-disable-line no-useless-escape
|
|
2848
2848
|
), wd = ee(/^(?:\w+script|data):/i), Cd = ee(
|
|
@@ -2929,9 +2929,9 @@ function Zo() {
|
|
|
2929
2929
|
let E, x = "";
|
|
2930
2930
|
const {
|
|
2931
2931
|
implementation: T,
|
|
2932
|
-
createNodeIterator:
|
|
2932
|
+
createNodeIterator: C,
|
|
2933
2933
|
createDocumentFragment: _,
|
|
2934
|
-
getElementsByTagName:
|
|
2934
|
+
getElementsByTagName: V
|
|
2935
2935
|
} = e, {
|
|
2936
2936
|
importNode: R
|
|
2937
2937
|
} = n;
|
|
@@ -2944,15 +2944,15 @@ function Zo() {
|
|
|
2944
2944
|
DATA_ATTR: L,
|
|
2945
2945
|
ARIA_ATTR: P,
|
|
2946
2946
|
IS_SCRIPT_OR_DATA: $,
|
|
2947
|
-
ATTR_WHITESPACE:
|
|
2948
|
-
CUSTOM_ELEMENT:
|
|
2947
|
+
ATTR_WHITESPACE: k,
|
|
2948
|
+
CUSTOM_ELEMENT: G
|
|
2949
2949
|
} = xr;
|
|
2950
2950
|
let {
|
|
2951
2951
|
IS_ALLOWED_URI: q
|
|
2952
2952
|
} = xr, X = null;
|
|
2953
|
-
const F = ut({}, [...mr, ...
|
|
2953
|
+
const F = ut({}, [...mr, ...ai, ...ri, ...oi, ...vr]);
|
|
2954
2954
|
let Z = null;
|
|
2955
|
-
const rt = ut({}, [...yr, ...
|
|
2955
|
+
const rt = ut({}, [...yr, ...li, ...Er, ...Qn]);
|
|
2956
2956
|
let j = Object.seal(Wo(null, {
|
|
2957
2957
|
tagNameCheck: {
|
|
2958
2958
|
writable: !0,
|
|
@@ -2978,10 +2978,10 @@ function Zo() {
|
|
|
2978
2978
|
const na = ut({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
2979
2979
|
let sa = null;
|
|
2980
2980
|
const ia = ut({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2981
|
-
let
|
|
2981
|
+
let _s = null;
|
|
2982
2982
|
const aa = ut({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", Vn = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
|
|
2983
|
-
let Ge = he,
|
|
2984
|
-
const tl = ut({}, [$n, Vn, he],
|
|
2983
|
+
let Ge = he, Is = !1, Rs = null;
|
|
2984
|
+
const tl = ut({}, [$n, Vn, he], ii);
|
|
2985
2985
|
let Gn = ut({}, ["mi", "mo", "mn", "ms", "mtext"]), Hn = ut({}, ["annotation-xml"]);
|
|
2986
2986
|
const el = ut({}, ["title", "style", "font", "a", "script"]);
|
|
2987
2987
|
let un = null;
|
|
@@ -2989,11 +2989,11 @@ function Zo() {
|
|
|
2989
2989
|
let Ct = null, He = null;
|
|
2990
2990
|
const il = e.createElement("form"), ra = function(w) {
|
|
2991
2991
|
return w instanceof RegExp || w instanceof Function;
|
|
2992
|
-
},
|
|
2992
|
+
}, Ds = function() {
|
|
2993
2993
|
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2994
2994
|
if (!(He && He === w)) {
|
|
2995
2995
|
if ((!w || typeof w != "object") && (w = {}), w = me(w), un = // eslint-disable-next-line unicorn/prefer-includes
|
|
2996
|
-
nl.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? sl : w.PARSER_MEDIA_TYPE, Ct = un === "application/xhtml+xml" ?
|
|
2996
|
+
nl.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? sl : w.PARSER_MEDIA_TYPE, Ct = un === "application/xhtml+xml" ? ii : cs, X = ie(w, "ALLOWED_TAGS") ? ut({}, w.ALLOWED_TAGS, Ct) : F, Z = ie(w, "ALLOWED_ATTR") ? ut({}, w.ALLOWED_ATTR, Ct) : rt, Rs = ie(w, "ALLOWED_NAMESPACES") ? ut({}, w.ALLOWED_NAMESPACES, ii) : tl, _s = ie(w, "ADD_URI_SAFE_ATTR") ? ut(me(aa), w.ADD_URI_SAFE_ATTR, Ct) : aa, sa = ie(w, "ADD_DATA_URI_TAGS") ? ut(me(ia), w.ADD_DATA_URI_TAGS, Ct) : ia, Ve = ie(w, "FORBID_CONTENTS") ? ut({}, w.FORBID_CONTENTS, Ct) : na, Y = ie(w, "FORBID_TAGS") ? ut({}, w.FORBID_TAGS, Ct) : me({}), K = ie(w, "FORBID_ATTR") ? ut({}, w.FORBID_ATTR, Ct) : me({}), $e = ie(w, "USE_PROFILES") ? w.USE_PROFILES : !1, ot = w.ALLOW_ARIA_ATTR !== !1, ct = w.ALLOW_DATA_ATTR !== !1, st = w.ALLOW_UNKNOWN_PROTOCOLS || !1, it = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = w.SAFE_FOR_TEMPLATES || !1, B = w.SAFE_FOR_XML !== !1, U = w.WHOLE_DOCUMENT || !1, et = w.RETURN_DOM || !1, yt = w.RETURN_DOM_FRAGMENT || !1, Zt = w.RETURN_TRUSTED_TYPE || !1, Te = w.FORCE_BODY || !1, Wt = w.SANITIZE_DOM !== !1, ln = w.SANITIZE_NAMED_PROPS || !1, Le = w.KEEP_CONTENT !== !1, ne = w.IN_PLACE || !1, q = w.ALLOWED_URI_REGEXP || Xo, Ge = w.NAMESPACE || he, Gn = w.MATHML_TEXT_INTEGRATION_POINTS || Gn, Hn = w.HTML_INTEGRATION_POINTS || Hn, j = w.CUSTOM_ELEMENT_HANDLING || {}, w.CUSTOM_ELEMENT_HANDLING && ra(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = w.CUSTOM_ELEMENT_HANDLING.tagNameCheck), w.CUSTOM_ELEMENT_HANDLING && ra(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), w.CUSTOM_ELEMENT_HANDLING && typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), z && (ct = !1), yt && (et = !0), $e && (X = ut({}, vr), Z = [], $e.html === !0 && (ut(X, mr), ut(Z, yr)), $e.svg === !0 && (ut(X, ai), ut(Z, li), ut(Z, Qn)), $e.svgFilters === !0 && (ut(X, ri), ut(Z, li), ut(Z, Qn)), $e.mathMl === !0 && (ut(X, oi), ut(Z, Er), ut(Z, Qn))), w.ADD_TAGS && (X === F && (X = me(X)), ut(X, w.ADD_TAGS, Ct)), w.ADD_ATTR && (Z === rt && (Z = me(Z)), ut(Z, w.ADD_ATTR, Ct)), w.ADD_URI_SAFE_ATTR && ut(_s, w.ADD_URI_SAFE_ATTR, Ct), w.FORBID_CONTENTS && (Ve === na && (Ve = me(Ve)), ut(Ve, w.FORBID_CONTENTS, Ct)), Le && (X["#text"] = !0), U && ut(X, ["html", "head", "body"]), X.table && (ut(X, ["tbody"]), delete Y.tbody), w.TRUSTED_TYPES_POLICY) {
|
|
2997
2997
|
if (typeof w.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2998
2998
|
throw gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2999
2999
|
if (typeof w.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -3003,14 +3003,14 @@ function Zo() {
|
|
|
3003
3003
|
E === void 0 && (E = Id(p, s)), E !== null && typeof x == "string" && (x = E.createHTML(""));
|
|
3004
3004
|
Ht && Ht(w), He = w;
|
|
3005
3005
|
}
|
|
3006
|
-
}, oa = ut({}, [...
|
|
3006
|
+
}, oa = ut({}, [...ai, ...ri, ...Sd]), la = ut({}, [...oi, ...Td]), al = function(w) {
|
|
3007
3007
|
let W = y(w);
|
|
3008
3008
|
(!W || !W.tagName) && (W = {
|
|
3009
3009
|
namespaceURI: Ge,
|
|
3010
3010
|
tagName: "template"
|
|
3011
3011
|
});
|
|
3012
3012
|
const Q = cs(w.tagName), St = cs(W.tagName);
|
|
3013
|
-
return
|
|
3013
|
+
return Rs[w.namespaceURI] ? w.namespaceURI === Vn ? W.namespaceURI === he ? Q === "svg" : W.namespaceURI === $n ? Q === "svg" && (St === "annotation-xml" || Gn[St]) : !!oa[Q] : w.namespaceURI === $n ? W.namespaceURI === he ? Q === "math" : W.namespaceURI === Vn ? Q === "math" && Hn[St] : !!la[Q] : w.namespaceURI === he ? W.namespaceURI === Vn && !Hn[St] || W.namespaceURI === $n && !Gn[St] ? !1 : !la[Q] && (el[Q] || !oa[Q]) : !!(un === "application/xhtml+xml" && Rs[w.namespaceURI]) : !1;
|
|
3014
3014
|
}, re = function(w) {
|
|
3015
3015
|
pn(t.removed, {
|
|
3016
3016
|
element: w
|
|
@@ -3061,21 +3061,21 @@ function Zo() {
|
|
|
3061
3061
|
if (!W || !W.documentElement) {
|
|
3062
3062
|
W = T.createDocument(Ge, "template", null);
|
|
3063
3063
|
try {
|
|
3064
|
-
W.documentElement.innerHTML =
|
|
3064
|
+
W.documentElement.innerHTML = Is ? x : St;
|
|
3065
3065
|
} catch {
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
3068
3068
|
const It = W.body || W.documentElement;
|
|
3069
|
-
return w && Q && It.insertBefore(e.createTextNode(Q), It.childNodes[0] || null), Ge === he ?
|
|
3069
|
+
return w && Q && It.insertBefore(e.createTextNode(Q), It.childNodes[0] || null), Ge === he ? V.call(W, U ? "html" : "body")[0] : U ? W.documentElement : It;
|
|
3070
3070
|
}, ua = function(w) {
|
|
3071
|
-
return
|
|
3071
|
+
return C.call(
|
|
3072
3072
|
w.ownerDocument || w,
|
|
3073
3073
|
w,
|
|
3074
3074
|
// eslint-disable-next-line no-bitwise
|
|
3075
3075
|
l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
|
|
3076
3076
|
null
|
|
3077
3077
|
);
|
|
3078
|
-
},
|
|
3078
|
+
}, Ns = function(w) {
|
|
3079
3079
|
return w instanceof d && (typeof w.nodeName != "string" || typeof w.textContent != "string" || typeof w.removeChild != "function" || !(w.attributes instanceof h) || typeof w.removeAttribute != "function" || typeof w.setAttribute != "function" || typeof w.namespaceURI != "string" || typeof w.insertBefore != "function" || typeof w.hasChildNodes != "function");
|
|
3080
3080
|
}, ha = function(w) {
|
|
3081
3081
|
return typeof o == "function" && w instanceof o;
|
|
@@ -3087,7 +3087,7 @@ function Zo() {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
const da = function(w) {
|
|
3089
3089
|
let W = null;
|
|
3090
|
-
if (de(A.beforeSanitizeElements, w, null),
|
|
3090
|
+
if (de(A.beforeSanitizeElements, w, null), Ns(w))
|
|
3091
3091
|
return re(w), !0;
|
|
3092
3092
|
const Q = Ct(w.nodeName);
|
|
3093
3093
|
if (de(A.uponSanitizeElement, w, {
|
|
@@ -3129,10 +3129,10 @@ function Zo() {
|
|
|
3129
3129
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3130
3130
|
W === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && $t(j.tagNameCheck, Q) || j.tagNameCheck instanceof Function && j.tagNameCheck(Q)))
|
|
3131
3131
|
) return !1;
|
|
3132
|
-
} else if (!
|
|
3133
|
-
if (!$t(q, fn(Q,
|
|
3132
|
+
} else if (!_s[W]) {
|
|
3133
|
+
if (!$t(q, fn(Q, k, ""))) {
|
|
3134
3134
|
if (!((W === "src" || W === "xlink:href" || W === "href") && w !== "script" && vd(Q, "data:") === 0 && sa[w])) {
|
|
3135
|
-
if (!(st && !$t($, fn(Q,
|
|
3135
|
+
if (!(st && !$t($, fn(Q, k, "")))) {
|
|
3136
3136
|
if (Q)
|
|
3137
3137
|
return !1;
|
|
3138
3138
|
}
|
|
@@ -3143,13 +3143,13 @@ function Zo() {
|
|
|
3143
3143
|
}
|
|
3144
3144
|
return !0;
|
|
3145
3145
|
}, fa = function(w) {
|
|
3146
|
-
return w !== "annotation-xml" && gr(w,
|
|
3146
|
+
return w !== "annotation-xml" && gr(w, G);
|
|
3147
3147
|
}, ga = function(w) {
|
|
3148
3148
|
de(A.beforeSanitizeAttributes, w, null);
|
|
3149
3149
|
const {
|
|
3150
3150
|
attributes: W
|
|
3151
3151
|
} = w;
|
|
3152
|
-
if (!W ||
|
|
3152
|
+
if (!W || Ns(w))
|
|
3153
3153
|
return;
|
|
3154
3154
|
const Q = {
|
|
3155
3155
|
attrName: "",
|
|
@@ -3164,8 +3164,8 @@ function Zo() {
|
|
|
3164
3164
|
name: At,
|
|
3165
3165
|
namespaceURI: zt,
|
|
3166
3166
|
value: pe
|
|
3167
|
-
} = It, hn = Ct(At),
|
|
3168
|
-
let Rt = At === "value" ?
|
|
3167
|
+
} = It, hn = Ct(At), Ps = pe;
|
|
3168
|
+
let Rt = At === "value" ? Ps : yd(Ps);
|
|
3169
3169
|
if (Q.attrName = hn, Q.attrValue = Rt, Q.keepAttr = !0, Q.forceKeepAttr = void 0, de(A.uponSanitizeAttribute, w, Q), Rt = Q.attrValue, ln && (hn === "id" || hn === "name") && (Be(At, w), Rt = cn + Rt), B && $t(/((--!?|])>)|<\/(style|title)/i, Rt)) {
|
|
3170
3170
|
Be(At, w);
|
|
3171
3171
|
continue;
|
|
@@ -3199,9 +3199,9 @@ function Zo() {
|
|
|
3199
3199
|
break;
|
|
3200
3200
|
}
|
|
3201
3201
|
}
|
|
3202
|
-
if (Rt !==
|
|
3202
|
+
if (Rt !== Ps)
|
|
3203
3203
|
try {
|
|
3204
|
-
zt ? w.setAttributeNS(zt, At, Rt) : w.setAttribute(At, Rt),
|
|
3204
|
+
zt ? w.setAttributeNS(zt, At, Rt) : w.setAttribute(At, Rt), Ns(w) ? re(w) : fr(t.removed);
|
|
3205
3205
|
} catch {
|
|
3206
3206
|
Be(At, w);
|
|
3207
3207
|
}
|
|
@@ -3216,7 +3216,7 @@ function Zo() {
|
|
|
3216
3216
|
};
|
|
3217
3217
|
return t.sanitize = function(tt) {
|
|
3218
3218
|
let w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, W = null, Q = null, St = null, It = null;
|
|
3219
|
-
if (
|
|
3219
|
+
if (Is = !tt, Is && (tt = "<!-->"), typeof tt != "string" && !ha(tt))
|
|
3220
3220
|
if (typeof tt.toString == "function") {
|
|
3221
3221
|
if (tt = tt.toString(), typeof tt != "string")
|
|
3222
3222
|
throw gn("dirty is not a string, aborting");
|
|
@@ -3224,7 +3224,7 @@ function Zo() {
|
|
|
3224
3224
|
throw gn("toString is not a function");
|
|
3225
3225
|
if (!t.isSupported)
|
|
3226
3226
|
return tt;
|
|
3227
|
-
if (wt ||
|
|
3227
|
+
if (wt || Ds(w), t.removed = [], typeof tt == "string" && (ne = !1), ne) {
|
|
3228
3228
|
if (tt.nodeName) {
|
|
3229
3229
|
const pe = Ct(tt.nodeName);
|
|
3230
3230
|
if (!X[pe] || Y[pe])
|
|
@@ -3260,11 +3260,11 @@ function Zo() {
|
|
|
3260
3260
|
}), E && Zt ? E.createHTML(zt) : zt;
|
|
3261
3261
|
}, t.setConfig = function() {
|
|
3262
3262
|
let tt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3263
|
-
|
|
3263
|
+
Ds(tt), wt = !0;
|
|
3264
3264
|
}, t.clearConfig = function() {
|
|
3265
3265
|
He = null, wt = !1;
|
|
3266
3266
|
}, t.isValidAttribute = function(tt, w, W) {
|
|
3267
|
-
He ||
|
|
3267
|
+
He || Ds({});
|
|
3268
3268
|
const Q = Ct(tt), St = Ct(w);
|
|
3269
3269
|
return pa(Q, St, W);
|
|
3270
3270
|
}, t.addHook = function(tt, w) {
|
|
@@ -3295,7 +3295,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3295
3295
|
svg: !0,
|
|
3296
3296
|
svgFilters: !0
|
|
3297
3297
|
}
|
|
3298
|
-
}), ue = (i) => Ji.sanitize(i, { ALLOWED_TAGS: [] }),
|
|
3298
|
+
}), ue = (i) => Ji.sanitize(i, { ALLOWED_TAGS: [] }), bs = class bs extends dt {
|
|
3299
3299
|
constructor() {
|
|
3300
3300
|
super(...arguments), this.type = "toolbar", this.renderType = at.HTML;
|
|
3301
3301
|
}
|
|
@@ -3474,7 +3474,7 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3474
3474
|
return e.forEach((r) => {
|
|
3475
3475
|
let o = null;
|
|
3476
3476
|
if (r.type === Tt.CUSTOM)
|
|
3477
|
-
O(r, "id") === null && (r.id = `toolbar-button-${
|
|
3477
|
+
O(r, "id") === null && (r.id = `toolbar-button-${bs.buttonID++}`), O(r, "shouldBeDisabled") === null && (r.shouldBeDisabled = () => !1), o = r;
|
|
3478
3478
|
else {
|
|
3479
3479
|
const c = this.services.domUtils.isFullScreenMode();
|
|
3480
3480
|
r.type === Tt.MAKE_FULLSCREEN && c ? r.type = Tt.EXIT_FULLSCREEN : r.type === Tt.EXIT_FULLSCREEN && !c && (r.type = Tt.MAKE_FULLSCREEN), o = this.getControlConfigByType(r.type);
|
|
@@ -3671,11 +3671,11 @@ const ts = (i) => Ji.sanitize(i, {
|
|
|
3671
3671
|
}
|
|
3672
3672
|
}
|
|
3673
3673
|
};
|
|
3674
|
-
|
|
3675
|
-
let Tr =
|
|
3676
|
-
const
|
|
3674
|
+
bs.buttonID = 0;
|
|
3675
|
+
let Tr = bs;
|
|
3676
|
+
const Os = class Os extends dt {
|
|
3677
3677
|
constructor(t, e, n, s) {
|
|
3678
|
-
super(t, e, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID =
|
|
3678
|
+
super(t, e, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = Os.instanceID++, this.init();
|
|
3679
3679
|
}
|
|
3680
3680
|
init() {
|
|
3681
3681
|
this.children.forEach((t) => {
|
|
@@ -3759,8 +3759,8 @@ const bs = class bs extends dt {
|
|
|
3759
3759
|
});
|
|
3760
3760
|
}
|
|
3761
3761
|
};
|
|
3762
|
-
|
|
3763
|
-
let br =
|
|
3762
|
+
Os.instanceID = Math.floor(Math.random() * 99999999999);
|
|
3763
|
+
let br = Os;
|
|
3764
3764
|
class lm extends dt {
|
|
3765
3765
|
constructor() {
|
|
3766
3766
|
super(...arguments), this.type = "spacer";
|
|
@@ -3972,15 +3972,15 @@ class Nd extends dt {
|
|
|
3972
3972
|
y.exit().remove();
|
|
3973
3973
|
const E = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr("role", "img").attr(
|
|
3974
3974
|
"aria-labelledby",
|
|
3975
|
-
(
|
|
3975
|
+
(C, _) => this.services.domUtils.generateElementIDString(
|
|
3976
3976
|
`legend-datagroup-${g.size() + _}-title`
|
|
3977
3977
|
)
|
|
3978
3978
|
);
|
|
3979
3979
|
E.selectAll("*").remove();
|
|
3980
3980
|
let x, T = 1;
|
|
3981
|
-
E.append("svg").classed("icon", !0).each(function(
|
|
3981
|
+
E.append("svg").classed("icon", !0).each(function(C) {
|
|
3982
3982
|
const _ = D(this);
|
|
3983
|
-
!x || x !=
|
|
3983
|
+
!x || x != C.type ? (x = C.type, T = 1) : T++, S.addAdditionalItem(_, C, T);
|
|
3984
3984
|
}), E.append("p").merge(E.select("p")), this.truncateLegendText();
|
|
3985
3985
|
}
|
|
3986
3986
|
d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && u.size() > 1 && this.addEventListeners();
|
|
@@ -4150,7 +4150,7 @@ var Or = (Ye = {}, Ye[Lt.LEFT] = function(i, t, e) {
|
|
|
4150
4150
|
}, Ye), Lr = typeof window < "u" ? window : {
|
|
4151
4151
|
innerHeight: 0,
|
|
4152
4152
|
innerWidth: 0
|
|
4153
|
-
},
|
|
4153
|
+
}, ks = (
|
|
4154
4154
|
/** @class */
|
|
4155
4155
|
function() {
|
|
4156
4156
|
function i(t) {
|
|
@@ -4238,10 +4238,10 @@ var Or = (Ye = {}, Ye[Lt.LEFT] = function(i, t, e) {
|
|
|
4238
4238
|
}, i;
|
|
4239
4239
|
}()
|
|
4240
4240
|
);
|
|
4241
|
-
new
|
|
4241
|
+
new ks();
|
|
4242
4242
|
class $d extends dt {
|
|
4243
4243
|
constructor(t, e, n) {
|
|
4244
|
-
super(t, e, n), this.type = "tooltip", this.renderType = at.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new
|
|
4244
|
+
super(t, e, n), this.type = "tooltip", this.renderType = at.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new ks(), this.handleShowTooltip = (s) => {
|
|
4245
4245
|
const a = s.detail.data || s.detail.items, r = D(s.detail.event.target).datum();
|
|
4246
4246
|
let o;
|
|
4247
4247
|
const c = this.formatItems(this.getItems(s));
|
|
@@ -4427,18 +4427,18 @@ const nn = class nn extends dt {
|
|
|
4427
4427
|
f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
|
|
4428
4428
|
const m = (x) => {
|
|
4429
4429
|
const T = x[1] - x[0];
|
|
4430
|
-
let
|
|
4431
|
-
const _ = Math.floor(c / nn.DASH_LENGTH),
|
|
4430
|
+
let C = "0," + T.toString();
|
|
4431
|
+
const _ = Math.floor(c / nn.DASH_LENGTH), V = _ * nn.DASH_LENGTH;
|
|
4432
4432
|
for (let R = 0; R < _; R++)
|
|
4433
|
-
|
|
4434
|
-
|
|
4433
|
+
C += "," + nn.DASH_LENGTH;
|
|
4434
|
+
C += "," + (c - V), _ % 2 === 1 && (C += ",0"), C += "," + T.toString(), C += "," + c.toString(), p.attr("stroke-dasharray", C);
|
|
4435
4435
|
}, g = (x) => {
|
|
4436
4436
|
const T = x.selection;
|
|
4437
4437
|
T === null || T[0] === T[1] || (p.attr("x", parseFloat(r.attr("x")) + parseFloat(s.attr("x"))).attr("y", r.attr("y")).attr("width", r.attr("width")).attr("height", r.attr("height")).style("cursor", "pointer").style("display", null), m(T));
|
|
4438
4438
|
}, v = (x, T) => {
|
|
4439
|
-
const
|
|
4440
|
-
let _ = [
|
|
4441
|
-
_[0].valueOf() === _[1].valueOf() ? (_ = this.services.zoom.getDefaultZoomBarDomain(),
|
|
4439
|
+
const C = Ml().range([0, o]).domain(f);
|
|
4440
|
+
let _ = [C.invert(x), C.invert(T)], V = "manual";
|
|
4441
|
+
_[0].valueOf() === _[1].valueOf() ? (_ = this.services.zoom.getDefaultZoomBarDomain(), V = "reset") : V = "manual", (f[0].valueOf() !== _[0].valueOf() || f[1].valueOf() !== _[1].valueOf()) && this.services.zoom.handleDomainChange(_, { dispatchEvent: !0, type: V });
|
|
4442
4442
|
};
|
|
4443
4443
|
let S;
|
|
4444
4444
|
const y = (x) => {
|
|
@@ -4452,11 +4452,11 @@ const nn = class nn extends dt {
|
|
|
4452
4452
|
const E = this.services.zoom.getZoomRatio();
|
|
4453
4453
|
s.on("click", function(x) {
|
|
4454
4454
|
if (x.shiftKey) {
|
|
4455
|
-
const T = this.services.domUtils.getHolder(),
|
|
4456
|
-
let _ =
|
|
4455
|
+
const T = this.services.domUtils.getHolder(), C = an(a.node(), T)[0];
|
|
4456
|
+
let _ = C - o * E / 2;
|
|
4457
4457
|
_ < 0 && (_ = 0);
|
|
4458
|
-
let
|
|
4459
|
-
|
|
4458
|
+
let V = C + o * E / 2;
|
|
4459
|
+
V > o && (V = o), v(_, V);
|
|
4460
4460
|
}
|
|
4461
4461
|
});
|
|
4462
4462
|
}
|
|
@@ -4525,20 +4525,20 @@ class hm extends dt {
|
|
|
4525
4525
|
zoomDomain: sn([], v)
|
|
4526
4526
|
},
|
|
4527
4527
|
{ skipUpdate: !0 }
|
|
4528
|
-
), this.xScale.range([l, c]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(
|
|
4528
|
+
), this.xScale.range([l, c]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Ls(g, (T) => T.value));
|
|
4529
4529
|
const E = this.model.get("zoomDomain");
|
|
4530
4530
|
if (a === Ue.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", g, null), this.updateClipPath(e, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", g, this.clipId), this.renderZoomBarBaseline(d, l, c), r)) {
|
|
4531
|
-
const T = r.highlightStartMapsTo,
|
|
4531
|
+
const T = r.highlightStartMapsTo, C = r.highlightEndMapsTo, _ = r.color, V = r.labelMapsTo;
|
|
4532
4532
|
r.data.forEach((R, A) => {
|
|
4533
4533
|
I.appendOrSelect(d, `rect.highlight-${A}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[T])).attr(
|
|
4534
4534
|
"width",
|
|
4535
|
-
this.xScale(R[
|
|
4535
|
+
this.xScale(R[C]) - this.xScale(R[T])
|
|
4536
4536
|
).style(
|
|
4537
4537
|
"fill",
|
|
4538
|
-
_ && _.scale[R[
|
|
4538
|
+
_ && _.scale[R[V]] ? _.scale[R[V]] : null
|
|
4539
4539
|
).style("fill-opacity", 0.1).style(
|
|
4540
4540
|
"stroke",
|
|
4541
|
-
_ && _.scale[R[
|
|
4541
|
+
_ && _.scale[R[V]] ? _.scale[R[V]] : null
|
|
4542
4542
|
).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
|
|
4543
4543
|
});
|
|
4544
4544
|
}
|
|
@@ -4547,7 +4547,7 @@ class hm extends dt {
|
|
|
4547
4547
|
if (E !== void 0) if (E[0].valueOf() === E[1].valueOf())
|
|
4548
4548
|
x.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
|
|
4549
4549
|
else {
|
|
4550
|
-
const T = E.map((
|
|
4550
|
+
const T = E.map((C) => this.xScale(C));
|
|
4551
4551
|
T[1] - T[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, T), this.updateBrushHandle(this.getComponentContainer(), T));
|
|
4552
4552
|
}
|
|
4553
4553
|
s && (this.brush.filter(() => !1), x.selectAll("rect").attr("cursor", "auto"));
|
|
@@ -4668,7 +4668,7 @@ class hm extends dt {
|
|
|
4668
4668
|
}
|
|
4669
4669
|
class dm extends dt {
|
|
4670
4670
|
constructor(t, e) {
|
|
4671
|
-
super(t, e), this.type = "threshold", this.renderType = at.SVG, this.positionService = new
|
|
4671
|
+
super(t, e), this.type = "threshold", this.renderType = at.SVG, this.positionService = new ks();
|
|
4672
4672
|
}
|
|
4673
4673
|
render(t = !1) {
|
|
4674
4674
|
const e = O(this.getOptions(), "axes"), n = [];
|
|
@@ -4703,10 +4703,10 @@ class dm extends dt {
|
|
|
4703
4703
|
), f = d.services.cartesianScales.getScaleTypeByPosition(u);
|
|
4704
4704
|
let m = null, g = null;
|
|
4705
4705
|
u === J.LEFT || u === J.RIGHT ? (g = p, m = d.services.cartesianScales.getMainXScale()) : (m = p, g = d.services.cartesianScales.getMainYScale());
|
|
4706
|
-
const v = f === kt.LABELS, [S, y] = m.range(), [E, x] = g.range(), { cartesianScales: T } = d.services,
|
|
4706
|
+
const v = f === kt.LABELS, [S, y] = m.range(), [E, x] = g.range(), { cartesianScales: T } = d.services, C = T.getOrientation(), _ = (N) => T.getDomainValue(N), V = (N) => T.getRangeValue(N), [R, A] = xe(
|
|
4707
4707
|
_,
|
|
4708
|
-
|
|
4709
|
-
|
|
4708
|
+
V,
|
|
4709
|
+
C
|
|
4710
4710
|
), H = D(this);
|
|
4711
4711
|
u === J.TOP || u === J.BOTTOM ? (H.selectAll("line.threshold-line").transition().call(
|
|
4712
4712
|
(N) => d.services.transitions.setupTransition({
|
|
@@ -4742,11 +4742,11 @@ class dm extends dt {
|
|
|
4742
4742
|
getFormattedValue(t) {
|
|
4743
4743
|
const { value: e, axisPosition: n } = t, s = this.getOptions(), a = this.services.cartesianScales.getScaleTypeByPosition(n), { code: r, number: o } = O(s, "locale");
|
|
4744
4744
|
if (a === kt.TIME) {
|
|
4745
|
-
const c = [J.LEFT, J.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = O(s, "timeScale"), p =
|
|
4745
|
+
const c = [J.LEFT, J.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = O(s, "timeScale"), p = di(
|
|
4746
4746
|
d.ticks(),
|
|
4747
4747
|
O(u, "timeInterval")
|
|
4748
4748
|
);
|
|
4749
|
-
return
|
|
4749
|
+
return pi(e, 0, d.ticks(), p, u, s.locale);
|
|
4750
4750
|
}
|
|
4751
4751
|
return o(e, r);
|
|
4752
4752
|
}
|
|
@@ -4809,7 +4809,7 @@ class dm extends dt {
|
|
|
4809
4809
|
}
|
|
4810
4810
|
class pm extends dt {
|
|
4811
4811
|
constructor(t, e) {
|
|
4812
|
-
super(t, e), this.type = "highlight", this.renderType = at.SVG, this.positionService = new
|
|
4812
|
+
super(t, e), this.type = "highlight", this.renderType = at.SVG, this.positionService = new ks(), this.highlightStrokeWidth = 1;
|
|
4813
4813
|
}
|
|
4814
4814
|
render(t = !1) {
|
|
4815
4815
|
const e = O(this.getOptions(), "axes"), n = [];
|
|
@@ -4841,21 +4841,21 @@ class pm extends dt {
|
|
|
4841
4841
|
l.append("rect").attr("class", "highlight-bar"), l.append("line").attr("class", "highlight-line"), l.merge(c).attr("class", "highlight-group");
|
|
4842
4842
|
const d = this;
|
|
4843
4843
|
o.each(function({ axisPosition: u }) {
|
|
4844
|
-
const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [m, g] = p.range(), [v, S] = f.range(), { cartesianScales: y } = d.services, E = y.getOrientation(), x = (R) => y.getDomainValue(R), T = (R) => y.getRangeValue(R), [
|
|
4844
|
+
const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [m, g] = p.range(), [v, S] = f.range(), { cartesianScales: y } = d.services, E = y.getOrientation(), x = (R) => y.getDomainValue(R), T = (R) => y.getRangeValue(R), [C, _] = xe(
|
|
4845
4845
|
x,
|
|
4846
4846
|
T,
|
|
4847
4847
|
E
|
|
4848
|
-
),
|
|
4849
|
-
u === J.TOP || u === J.BOTTOM ?
|
|
4848
|
+
), V = D(this);
|
|
4849
|
+
u === J.TOP || u === J.BOTTOM ? V.selectAll("rect.highlight-bar").transition().call(
|
|
4850
4850
|
(R) => d.services.transitions.setupTransition({
|
|
4851
4851
|
transition: R,
|
|
4852
4852
|
name: "highlight-bar-update",
|
|
4853
4853
|
animate: t
|
|
4854
4854
|
})
|
|
4855
|
-
).attr("y", Math.max(S + d.highlightStrokeWidth, 0)).attr("height", Math.max(v - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: R, ...A }) =>
|
|
4855
|
+
).attr("y", Math.max(S + d.highlightStrokeWidth, 0)).attr("height", Math.max(v - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: R, ...A }) => C(A[R])).attr(
|
|
4856
4856
|
"width",
|
|
4857
|
-
({ highlightStartMapsTo: R, highlightEndMapsTo: A, ...H }) => Math.max(
|
|
4858
|
-
).style("stroke", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null) :
|
|
4857
|
+
({ highlightStartMapsTo: R, highlightEndMapsTo: A, ...H }) => Math.max(C(H[A]) - C(H[R]), 0)
|
|
4858
|
+
).style("stroke", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null) : V.selectAll("rect.highlight-bar").transition().call(
|
|
4859
4859
|
(R) => d.services.transitions.setupTransition({
|
|
4860
4860
|
transition: R,
|
|
4861
4861
|
name: "highlight-bar-update",
|
|
@@ -4979,7 +4979,7 @@ function Vd(i, t) {
|
|
|
4979
4979
|
}
|
|
4980
4980
|
return e;
|
|
4981
4981
|
}
|
|
4982
|
-
function
|
|
4982
|
+
function ci(i, t) {
|
|
4983
4983
|
let e = 0;
|
|
4984
4984
|
if (t === void 0)
|
|
4985
4985
|
for (let n of i)
|
|
@@ -5006,15 +5006,15 @@ function es(i) {
|
|
|
5006
5006
|
};
|
|
5007
5007
|
}
|
|
5008
5008
|
function wr(i, t) {
|
|
5009
|
-
return
|
|
5009
|
+
return Ts(i.source, t.source) || i.index - t.index;
|
|
5010
5010
|
}
|
|
5011
5011
|
function Cr(i, t) {
|
|
5012
|
-
return
|
|
5012
|
+
return Ts(i.target, t.target) || i.index - t.index;
|
|
5013
5013
|
}
|
|
5014
|
-
function
|
|
5014
|
+
function Ts(i, t) {
|
|
5015
5015
|
return i.y0 - t.y0;
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function ui(i) {
|
|
5018
5018
|
return i.value;
|
|
5019
5019
|
}
|
|
5020
5020
|
function Bd(i) {
|
|
@@ -5072,71 +5072,71 @@ function Fd() {
|
|
|
5072
5072
|
return arguments.length ? (p = +L, f) : p;
|
|
5073
5073
|
};
|
|
5074
5074
|
function m({ nodes: L, links: P }) {
|
|
5075
|
-
for (const [
|
|
5076
|
-
|
|
5077
|
-
const $ = new Map(L.map((
|
|
5078
|
-
for (const [
|
|
5079
|
-
|
|
5080
|
-
let { source: q, target: X } =
|
|
5081
|
-
typeof q != "object" && (q =
|
|
5075
|
+
for (const [k, G] of L.entries())
|
|
5076
|
+
G.index = k, G.sourceLinks = [], G.targetLinks = [];
|
|
5077
|
+
const $ = new Map(L.map((k, G) => [o(k, G, L), k]));
|
|
5078
|
+
for (const [k, G] of P.entries()) {
|
|
5079
|
+
G.index = k;
|
|
5080
|
+
let { source: q, target: X } = G;
|
|
5081
|
+
typeof q != "object" && (q = G.source = kr($, q)), typeof X != "object" && (X = G.target = kr($, X)), q.sourceLinks.push(G), X.targetLinks.push(G);
|
|
5082
5082
|
}
|
|
5083
5083
|
if (h != null)
|
|
5084
|
-
for (const { sourceLinks:
|
|
5085
|
-
|
|
5084
|
+
for (const { sourceLinks: k, targetLinks: G } of L)
|
|
5085
|
+
k.sort(h), G.sort(h);
|
|
5086
5086
|
}
|
|
5087
5087
|
function g({ nodes: L }) {
|
|
5088
5088
|
for (const P of L)
|
|
5089
|
-
P.value = P.fixedValue === void 0 ? Math.max(
|
|
5089
|
+
P.value = P.fixedValue === void 0 ? Math.max(ci(P.sourceLinks, ui), ci(P.targetLinks, ui)) : P.fixedValue;
|
|
5090
5090
|
}
|
|
5091
5091
|
function v({ nodes: L }) {
|
|
5092
5092
|
const P = L.length;
|
|
5093
|
-
let $ = new Set(L),
|
|
5093
|
+
let $ = new Set(L), k = /* @__PURE__ */ new Set(), G = 0;
|
|
5094
5094
|
for (; $.size; ) {
|
|
5095
5095
|
for (const q of $) {
|
|
5096
|
-
q.depth =
|
|
5096
|
+
q.depth = G;
|
|
5097
5097
|
for (const { target: X } of q.sourceLinks)
|
|
5098
|
-
|
|
5098
|
+
k.add(X);
|
|
5099
5099
|
}
|
|
5100
|
-
if (++
|
|
5101
|
-
$ =
|
|
5100
|
+
if (++G > P) throw new Error("circular link");
|
|
5101
|
+
$ = k, k = /* @__PURE__ */ new Set();
|
|
5102
5102
|
}
|
|
5103
5103
|
}
|
|
5104
5104
|
function S({ nodes: L }) {
|
|
5105
5105
|
const P = L.length;
|
|
5106
|
-
let $ = new Set(L),
|
|
5106
|
+
let $ = new Set(L), k = /* @__PURE__ */ new Set(), G = 0;
|
|
5107
5107
|
for (; $.size; ) {
|
|
5108
5108
|
for (const q of $) {
|
|
5109
|
-
q.height =
|
|
5109
|
+
q.height = G;
|
|
5110
5110
|
for (const { source: X } of q.targetLinks)
|
|
5111
|
-
|
|
5111
|
+
k.add(X);
|
|
5112
5112
|
}
|
|
5113
|
-
if (++
|
|
5114
|
-
$ =
|
|
5113
|
+
if (++G > P) throw new Error("circular link");
|
|
5114
|
+
$ = k, k = /* @__PURE__ */ new Set();
|
|
5115
5115
|
}
|
|
5116
5116
|
}
|
|
5117
5117
|
function y({ nodes: L }) {
|
|
5118
|
-
const P = Mr(L, (
|
|
5119
|
-
for (const
|
|
5120
|
-
const q = Math.max(0, Math.min(P - 1, Math.floor(c.call(null,
|
|
5121
|
-
|
|
5118
|
+
const P = Mr(L, (G) => G.depth) + 1, $ = (e - i - s) / (P - 1), k = new Array(P);
|
|
5119
|
+
for (const G of L) {
|
|
5120
|
+
const q = Math.max(0, Math.min(P - 1, Math.floor(c.call(null, G, P))));
|
|
5121
|
+
G.layer = q, G.x0 = i + q * $, G.x1 = G.x0 + s, k[q] ? k[q].push(G) : k[q] = [G];
|
|
5122
5122
|
}
|
|
5123
|
-
if (l) for (const
|
|
5124
|
-
|
|
5125
|
-
return
|
|
5123
|
+
if (l) for (const G of k)
|
|
5124
|
+
G.sort(l);
|
|
5125
|
+
return k;
|
|
5126
5126
|
}
|
|
5127
5127
|
function E(L) {
|
|
5128
|
-
const P = Vd(L, ($) => (n - t - ($.length - 1) * r) /
|
|
5128
|
+
const P = Vd(L, ($) => (n - t - ($.length - 1) * r) / ci($, ui));
|
|
5129
5129
|
for (const $ of L) {
|
|
5130
|
-
let
|
|
5131
|
-
for (const
|
|
5132
|
-
|
|
5133
|
-
for (const q of
|
|
5130
|
+
let k = t;
|
|
5131
|
+
for (const G of $) {
|
|
5132
|
+
G.y0 = k, G.y1 = k + G.value * P, k = G.y1 + r;
|
|
5133
|
+
for (const q of G.sourceLinks)
|
|
5134
5134
|
q.width = q.value * P;
|
|
5135
5135
|
}
|
|
5136
|
-
|
|
5137
|
-
for (let
|
|
5138
|
-
const q = $[
|
|
5139
|
-
q.y0 +=
|
|
5136
|
+
k = (n - k + r) / ($.length + 1);
|
|
5137
|
+
for (let G = 0; G < $.length; ++G) {
|
|
5138
|
+
const q = $[G];
|
|
5139
|
+
q.y0 += k * (G + 1), q.y1 += k * (G + 1);
|
|
5140
5140
|
}
|
|
5141
5141
|
H($);
|
|
5142
5142
|
}
|
|
@@ -5145,13 +5145,13 @@ function Fd() {
|
|
|
5145
5145
|
const P = y(L);
|
|
5146
5146
|
r = Math.min(a, (n - t) / (Mr(P, ($) => $.length) - 1)), E(P);
|
|
5147
5147
|
for (let $ = 0; $ < p; ++$) {
|
|
5148
|
-
const
|
|
5149
|
-
|
|
5148
|
+
const k = Math.pow(0.99, $), G = Math.max(1 - k, ($ + 1) / p);
|
|
5149
|
+
C(P, k, G), T(P, k, G);
|
|
5150
5150
|
}
|
|
5151
5151
|
}
|
|
5152
5152
|
function T(L, P, $) {
|
|
5153
|
-
for (let
|
|
5154
|
-
const q = L[
|
|
5153
|
+
for (let k = 1, G = L.length; k < G; ++k) {
|
|
5154
|
+
const q = L[k];
|
|
5155
5155
|
for (const X of q) {
|
|
5156
5156
|
let F = 0, Z = 0;
|
|
5157
5157
|
for (const { source: j, value: Y } of X.targetLinks) {
|
|
@@ -5162,12 +5162,12 @@ function Fd() {
|
|
|
5162
5162
|
let rt = (F / Z - X.y0) * P;
|
|
5163
5163
|
X.y0 += rt, X.y1 += rt, A(X);
|
|
5164
5164
|
}
|
|
5165
|
-
l === void 0 && q.sort(
|
|
5165
|
+
l === void 0 && q.sort(Ts), _(q, $);
|
|
5166
5166
|
}
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5169
|
-
for (let
|
|
5170
|
-
const q = L[
|
|
5168
|
+
function C(L, P, $) {
|
|
5169
|
+
for (let k = L.length, G = k - 2; G >= 0; --G) {
|
|
5170
|
+
const q = L[G];
|
|
5171
5171
|
for (const X of q) {
|
|
5172
5172
|
let F = 0, Z = 0;
|
|
5173
5173
|
for (const { target: j, value: Y } of X.sourceLinks) {
|
|
@@ -5178,23 +5178,23 @@ function Fd() {
|
|
|
5178
5178
|
let rt = (F / Z - X.y0) * P;
|
|
5179
5179
|
X.y0 += rt, X.y1 += rt, A(X);
|
|
5180
5180
|
}
|
|
5181
|
-
l === void 0 && q.sort(
|
|
5181
|
+
l === void 0 && q.sort(Ts), _(q, $);
|
|
5182
5182
|
}
|
|
5183
5183
|
}
|
|
5184
5184
|
function _(L, P) {
|
|
5185
|
-
const $ = L.length >> 1,
|
|
5186
|
-
R(L,
|
|
5185
|
+
const $ = L.length >> 1, k = L[$];
|
|
5186
|
+
R(L, k.y0 - r, $ - 1, P), V(L, k.y1 + r, $ + 1, P), R(L, n, L.length - 1, P), V(L, t, 0, P);
|
|
5187
5187
|
}
|
|
5188
|
-
function
|
|
5188
|
+
function V(L, P, $, k) {
|
|
5189
5189
|
for (; $ < L.length; ++$) {
|
|
5190
|
-
const
|
|
5191
|
-
q > 1e-6 && (
|
|
5190
|
+
const G = L[$], q = (P - G.y0) * k;
|
|
5191
|
+
q > 1e-6 && (G.y0 += q, G.y1 += q), P = G.y1 + r;
|
|
5192
5192
|
}
|
|
5193
5193
|
}
|
|
5194
|
-
function R(L, P, $,
|
|
5194
|
+
function R(L, P, $, k) {
|
|
5195
5195
|
for (; $ >= 0; --$) {
|
|
5196
|
-
const
|
|
5197
|
-
q > 1e-6 && (
|
|
5196
|
+
const G = L[$], q = (G.y1 - P) * k;
|
|
5197
|
+
q > 1e-6 && (G.y0 -= q, G.y1 -= q), P = G.y0 - r;
|
|
5198
5198
|
}
|
|
5199
5199
|
}
|
|
5200
5200
|
function A({ sourceLinks: L, targetLinks: P }) {
|
|
@@ -5212,40 +5212,40 @@ function Fd() {
|
|
|
5212
5212
|
}
|
|
5213
5213
|
function N(L, P) {
|
|
5214
5214
|
let $ = L.y0 - (L.sourceLinks.length - 1) * r / 2;
|
|
5215
|
-
for (const { target:
|
|
5216
|
-
if (
|
|
5217
|
-
$ +=
|
|
5215
|
+
for (const { target: k, width: G } of L.sourceLinks) {
|
|
5216
|
+
if (k === P) break;
|
|
5217
|
+
$ += G + r;
|
|
5218
5218
|
}
|
|
5219
|
-
for (const { source:
|
|
5220
|
-
if (
|
|
5221
|
-
$ -=
|
|
5219
|
+
for (const { source: k, width: G } of P.targetLinks) {
|
|
5220
|
+
if (k === L) break;
|
|
5221
|
+
$ -= G;
|
|
5222
5222
|
}
|
|
5223
5223
|
return $;
|
|
5224
5224
|
}
|
|
5225
5225
|
function M(L, P) {
|
|
5226
5226
|
let $ = P.y0 - (P.targetLinks.length - 1) * r / 2;
|
|
5227
|
-
for (const { source:
|
|
5228
|
-
if (
|
|
5229
|
-
$ +=
|
|
5227
|
+
for (const { source: k, width: G } of P.targetLinks) {
|
|
5228
|
+
if (k === L) break;
|
|
5229
|
+
$ += G + r;
|
|
5230
5230
|
}
|
|
5231
|
-
for (const { target:
|
|
5232
|
-
if (
|
|
5233
|
-
$ -=
|
|
5231
|
+
for (const { target: k, width: G } of L.sourceLinks) {
|
|
5232
|
+
if (k === P) break;
|
|
5233
|
+
$ -= G;
|
|
5234
5234
|
}
|
|
5235
5235
|
return $;
|
|
5236
5236
|
}
|
|
5237
5237
|
return f;
|
|
5238
5238
|
}
|
|
5239
|
-
var
|
|
5240
|
-
function
|
|
5239
|
+
var Gi = Math.PI, Hi = 2 * Gi, _e = 1e-6, Wd = Hi - _e;
|
|
5240
|
+
function Bi() {
|
|
5241
5241
|
this._x0 = this._y0 = // start of current subpath
|
|
5242
5242
|
this._x1 = this._y1 = null, this._ = "";
|
|
5243
5243
|
}
|
|
5244
5244
|
function jo() {
|
|
5245
|
-
return new
|
|
5245
|
+
return new Bi();
|
|
5246
5246
|
}
|
|
5247
|
-
|
|
5248
|
-
constructor:
|
|
5247
|
+
Bi.prototype = jo.prototype = {
|
|
5248
|
+
constructor: Bi,
|
|
5249
5249
|
moveTo: function(i, t) {
|
|
5250
5250
|
this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +t);
|
|
5251
5251
|
},
|
|
@@ -5270,7 +5270,7 @@ Hi.prototype = jo.prototype = {
|
|
|
5270
5270
|
else if (d > _e) if (!(Math.abs(h * o - c * l) > _e) || !s)
|
|
5271
5271
|
this._ += "L" + (this._x1 = i) + "," + (this._y1 = t);
|
|
5272
5272
|
else {
|
|
5273
|
-
var u = e - a, p = n - r, f = o * o + c * c, m = u * u + p * p, g = Math.sqrt(f), v = Math.sqrt(d), S = s * Math.tan((
|
|
5273
|
+
var u = e - a, p = n - r, f = o * o + c * c, m = u * u + p * p, g = Math.sqrt(f), v = Math.sqrt(d), S = s * Math.tan((Gi - Math.acos((f + d - m) / (2 * g * v))) / 2), y = S / v, E = S / g;
|
|
5274
5274
|
Math.abs(y - 1) > _e && (this._ += "L" + (i + y * l) + "," + (t + y * h)), this._ += "A" + s + "," + s + ",0,0," + +(h * u > l * p) + "," + (this._x1 = i + E * o) + "," + (this._y1 = t + E * c);
|
|
5275
5275
|
}
|
|
5276
5276
|
},
|
|
@@ -5278,7 +5278,7 @@ Hi.prototype = jo.prototype = {
|
|
|
5278
5278
|
i = +i, t = +t, e = +e, a = !!a;
|
|
5279
5279
|
var r = e * Math.cos(n), o = e * Math.sin(n), c = i + r, l = t + o, h = 1 ^ a, d = a ? n - s : s - n;
|
|
5280
5280
|
if (e < 0) throw new Error("negative radius: " + e);
|
|
5281
|
-
this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d %
|
|
5281
|
+
this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d % Hi + Hi), d > Wd ? this._ += "A" + e + "," + e + ",0,1," + h + "," + (i - r) + "," + (t - o) + "A" + e + "," + e + ",0,1," + h + "," + (this._x1 = c) + "," + (this._y1 = l) : d > _e && (this._ += "A" + e + "," + e + ",0," + +(d >= Gi) + "," + h + "," + (this._x1 = i + e * Math.cos(s)) + "," + (this._y1 = t + e * Math.sin(s))));
|
|
5282
5282
|
},
|
|
5283
5283
|
rect: function(i, t, e, n) {
|
|
5284
5284
|
this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +t) + "h" + +e + "v" + +n + "h" + -e + "Z";
|
|
@@ -5385,8 +5385,8 @@ class gm extends dt {
|
|
|
5385
5385
|
), { width: T } = I.getSVGElementSize(D(`text#${x}`), {
|
|
5386
5386
|
useBBox: !0
|
|
5387
5387
|
});
|
|
5388
|
-
let
|
|
5389
|
-
return y +
|
|
5388
|
+
let C = 0;
|
|
5389
|
+
return y + C >= T && (C = -T + 4), C;
|
|
5390
5390
|
});
|
|
5391
5391
|
const f = e.append("g").attr("fill", "none").selectAll("g").data(this.graph.links);
|
|
5392
5392
|
if (f.exit().remove(), o) {
|
|
@@ -5440,13 +5440,13 @@ class gm extends dt {
|
|
|
5440
5440
|
`alluvial-node-text-${E}`
|
|
5441
5441
|
), { width: T } = I.getSVGElementSize(D(`text#${x}`), {
|
|
5442
5442
|
useBBox: !0
|
|
5443
|
-
}),
|
|
5443
|
+
}), C = (y.y1 - y.y0) / 2 - 9;
|
|
5444
5444
|
let _ = y.x1 - y.x0;
|
|
5445
|
-
return y.x1 >= T ? _ = _ - (T + 16) : _ += 4, `translate(${_}, ${
|
|
5445
|
+
return y.x1 >= T ? _ = _ - (T + 16) : _ += 4, `translate(${_}, ${C})`;
|
|
5446
5446
|
}), this.addLineEventListener(), this.addNodeEventListener();
|
|
5447
5447
|
}
|
|
5448
5448
|
addLineEventListener() {
|
|
5449
|
-
const t = this.getOptions(), e = this, { number: n, code: s } = O(this.getOptions(), "locale"), a =
|
|
5449
|
+
const t = this.getOptions(), e = this, { number: n, code: s } = O(this.getOptions(), "locale"), a = gi((r, o = "mouseover") => {
|
|
5450
5450
|
const c = e.parent.selectAll("path.link").transition().call(
|
|
5451
5451
|
(l) => e.services.transitions.setupTransition({
|
|
5452
5452
|
transition: l,
|
|
@@ -5504,7 +5504,7 @@ class gm extends dt {
|
|
|
5504
5504
|
});
|
|
5505
5505
|
}
|
|
5506
5506
|
addNodeEventListener() {
|
|
5507
|
-
const t = this, e =
|
|
5507
|
+
const t = this, e = gi((n = [], s = "mouseover") => {
|
|
5508
5508
|
if (s === "mouseout" || n.length === 0) {
|
|
5509
5509
|
t.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (r) => r.index).order().style("stroke-opacity", se.opacity.default);
|
|
5510
5510
|
return;
|
|
@@ -5713,8 +5713,8 @@ class vm extends dt {
|
|
|
5713
5713
|
const e = this.getComponentContainer({ ariaLabel: "area graphs", withinChartClip: !0 }), n = this.getOptions();
|
|
5714
5714
|
let s = [0, 0];
|
|
5715
5715
|
const { cartesianScales: a } = this.services, r = a.getOrientation(), o = Ki().curve(this.services.curves.getD3Curve()).defined((x) => {
|
|
5716
|
-
const T = a.getRangeIdentifier(),
|
|
5717
|
-
return
|
|
5716
|
+
const T = a.getRangeIdentifier(), C = x[T];
|
|
5717
|
+
return C != null;
|
|
5718
5718
|
}), c = this.model.getGroupedData(this.configs.groups), l = O(n, "bounds"), h = l && c && c.length === 1;
|
|
5719
5719
|
!h && l && console.warn(
|
|
5720
5720
|
`Bounds can only be shown when having 1 single datagroup, you've supplied ${c.length}`
|
|
@@ -5742,10 +5742,10 @@ class vm extends dt {
|
|
|
5742
5742
|
"stroke"
|
|
5743
5743
|
);
|
|
5744
5744
|
else {
|
|
5745
|
-
const
|
|
5746
|
-
if (
|
|
5747
|
-
const _ = Object.keys(
|
|
5748
|
-
T =
|
|
5745
|
+
const C = O(this.model.getOptions(), "color", "scale");
|
|
5746
|
+
if (C !== null) {
|
|
5747
|
+
const _ = Object.keys(C);
|
|
5748
|
+
T = C[_[0]];
|
|
5749
5749
|
}
|
|
5750
5750
|
}
|
|
5751
5751
|
Ca.appendOrUpdateLinearGradient({
|
|
@@ -5844,12 +5844,12 @@ class ym extends dt {
|
|
|
5844
5844
|
const x = this.services.cartesianScales.getDomainIdentifier(E), T = this.services.cartesianScales.getRangeIdentifier(E);
|
|
5845
5845
|
return {
|
|
5846
5846
|
name: O(E, 0, S),
|
|
5847
|
-
data: E.map((
|
|
5848
|
-
[x]:
|
|
5849
|
-
[S]:
|
|
5850
|
-
[T]:
|
|
5847
|
+
data: E.map((C) => ({
|
|
5848
|
+
[x]: C.data.sharedStackKey,
|
|
5849
|
+
[S]: C[S],
|
|
5850
|
+
[T]: C[1]
|
|
5851
5851
|
})),
|
|
5852
|
-
hidden: !kc(E, (
|
|
5852
|
+
hidden: !kc(E, (C) => C[0] !== C[1])
|
|
5853
5853
|
};
|
|
5854
5854
|
});
|
|
5855
5855
|
} else
|
|
@@ -6248,7 +6248,7 @@ class Jo extends dt {
|
|
|
6248
6248
|
f.attr("aria-hidden", !0);
|
|
6249
6249
|
return;
|
|
6250
6250
|
}
|
|
6251
|
-
const E = O(g, "scaleType"), x = O(n, "data", "loading"), T = O(g, "ticks", "number"),
|
|
6251
|
+
const E = O(g, "scaleType"), x = O(n, "data", "loading"), T = O(g, "ticks", "number"), C = O(g, "ticks", "values"), _ = O(g, "truncation", "type"), V = O(g, "truncation", "threshold"), R = O(g, "truncation", "numCharacter"), A = T !== null, H = O(n, "timeScale"), N = I.appendOrSelect(m, "g.tick"), M = I.appendOrSelect(N, "text").text("0"), L = I.getSVGElementSize(M.node(), {
|
|
6252
6252
|
useBBox: !0
|
|
6253
6253
|
}).height;
|
|
6254
6254
|
N.remove();
|
|
@@ -6269,15 +6269,15 @@ class Jo extends dt {
|
|
|
6269
6269
|
K && st.length > 2 && !ot && (st.splice(st.length - 1, 1), st.splice(0, 1)), $.tickValues(st);
|
|
6270
6270
|
}
|
|
6271
6271
|
}
|
|
6272
|
-
let
|
|
6273
|
-
const
|
|
6272
|
+
let k;
|
|
6273
|
+
const G = O(g, "ticks", "formatter"), { code: q, number: X } = O(n, "locale");
|
|
6274
6274
|
if (v) {
|
|
6275
|
-
const Y =
|
|
6275
|
+
const Y = di(
|
|
6276
6276
|
$.tickValues(),
|
|
6277
6277
|
O(n, "timeScale", "timeInterval")
|
|
6278
6278
|
);
|
|
6279
|
-
|
|
6280
|
-
const ct =
|
|
6279
|
+
G === null ? k = (K, ot) => pi(K, ot, $.tickValues(), Y, H, n.locale) : k = (K, ot) => {
|
|
6280
|
+
const ct = pi(
|
|
6281
6281
|
K,
|
|
6282
6282
|
ot,
|
|
6283
6283
|
$.tickValues(),
|
|
@@ -6285,26 +6285,26 @@ class Jo extends dt {
|
|
|
6285
6285
|
H,
|
|
6286
6286
|
n.locale
|
|
6287
6287
|
);
|
|
6288
|
-
return
|
|
6288
|
+
return G(K, ot, ct);
|
|
6289
6289
|
};
|
|
6290
6290
|
} else
|
|
6291
|
-
|
|
6292
|
-
$.tickFormat(
|
|
6291
|
+
G === null ? P === kt.LINEAR && (k = (Y) => X(Y, q)) : k = G;
|
|
6292
|
+
$.tickFormat(k);
|
|
6293
6293
|
const [F, Z] = this.services.cartesianScales.getScaleByPosition(e).domain();
|
|
6294
6294
|
let rt;
|
|
6295
|
-
if (
|
|
6295
|
+
if (C) {
|
|
6296
6296
|
if (v)
|
|
6297
|
-
|
|
6298
|
-
Y.getTime === void 0 && (
|
|
6299
|
-
}), rt =
|
|
6297
|
+
C.forEach((Y, K) => {
|
|
6298
|
+
Y.getTime === void 0 && (C[K] = new Date(Y));
|
|
6299
|
+
}), rt = C.filter((Y) => {
|
|
6300
6300
|
const K = Y.getTime();
|
|
6301
6301
|
return K >= new Date(F).getTime() && K <= new Date(Z).getTime();
|
|
6302
6302
|
});
|
|
6303
6303
|
else if (E === kt.LABELS) {
|
|
6304
6304
|
const Y = this.services.cartesianScales.getScaleByPosition(e).domain();
|
|
6305
|
-
rt =
|
|
6305
|
+
rt = C.filter((K) => Y.includes(K));
|
|
6306
6306
|
} else
|
|
6307
|
-
rt =
|
|
6307
|
+
rt = C.filter(
|
|
6308
6308
|
(Y) => Y >= F && Y <= Z
|
|
6309
6309
|
);
|
|
6310
6310
|
$.tickValues(rt);
|
|
@@ -6354,7 +6354,7 @@ class Jo extends dt {
|
|
|
6354
6354
|
}
|
|
6355
6355
|
}
|
|
6356
6356
|
if (v) {
|
|
6357
|
-
const Y =
|
|
6357
|
+
const Y = di(
|
|
6358
6358
|
$.tickValues(),
|
|
6359
6359
|
O(n, "timeScale", "timeInterval")
|
|
6360
6360
|
), K = H.showDayName, ot = f;
|
|
@@ -6379,11 +6379,11 @@ class Jo extends dt {
|
|
|
6379
6379
|
if (m.call($), e === J.BOTTOM || e === J.TOP) {
|
|
6380
6380
|
let Y = !1;
|
|
6381
6381
|
const K = O(g, "ticks", "rotation");
|
|
6382
|
-
if (K ===
|
|
6382
|
+
if (K === Vs.ALWAYS)
|
|
6383
6383
|
Y = !0;
|
|
6384
|
-
else if (K ===
|
|
6384
|
+
else if (K === Vs.NEVER)
|
|
6385
6385
|
Y = !1;
|
|
6386
|
-
else if (!K || K ===
|
|
6386
|
+
else if (!K || K === Vs.AUTO)
|
|
6387
6387
|
if (d.step)
|
|
6388
6388
|
Y = m.selectAll("g.tick text").nodes().some(
|
|
6389
6389
|
(ct) => I.getSVGElementSize(ct, {
|
|
@@ -6405,16 +6405,16 @@ class Jo extends dt {
|
|
|
6405
6405
|
this.getNumberOfFittingTicks(r, L, Je.ticks.horizontalSpaceRatio)
|
|
6406
6406
|
), m.call($), f.call($)), c.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", e === J.TOP ? "start" : "end")) : c.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
|
|
6407
6407
|
}
|
|
6408
|
-
if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), m.selectAll("g.tick").attr("aria-label", (Y) => Y), _ !== Qe.NONE && E === kt.LABELS && !
|
|
6408
|
+
if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), m.selectAll("g.tick").attr("aria-label", (Y) => Y), _ !== Qe.NONE && E === kt.LABELS && !C) {
|
|
6409
6409
|
const Y = this.services.cartesianScales.getScaleDomain(e);
|
|
6410
6410
|
if (Y.length > 0) {
|
|
6411
6411
|
const K = a.select(`g.axis.${e} g.ticks g.tick`).html();
|
|
6412
6412
|
c.selectAll("g.ticks g.tick").html(K);
|
|
6413
6413
|
const ot = this;
|
|
6414
6414
|
c.selectAll("g.tick text").data(Y).text(function(ct) {
|
|
6415
|
-
return ct.length >
|
|
6415
|
+
return ct.length > V ? (ot.truncation[e] = !0, kn(ct, _, R)) : ct;
|
|
6416
6416
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(Y).text(function(ct) {
|
|
6417
|
-
return ct.length >
|
|
6417
|
+
return ct.length > V ? kn(ct, _, R) : ct;
|
|
6418
6418
|
}), c.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), c.selectAll("g.tick text").data(Y);
|
|
6419
6419
|
}
|
|
6420
6420
|
}
|
|
@@ -6764,8 +6764,8 @@ class xm extends dt {
|
|
|
6764
6764
|
m
|
|
6765
6765
|
), y = Math.floor((g ? u : p) / a.length), E = Math.min(y / 2, 16), x = this.model.getBoxplotData(), T = e.selectAll(".box-group").data(x);
|
|
6766
6766
|
T.exit().remove();
|
|
6767
|
-
const
|
|
6768
|
-
|
|
6767
|
+
const C = T.enter().append("g").attr("class", "box-group"), _ = T.merge(C);
|
|
6768
|
+
C.append("path").merge(T.select("path.vertical-line.start")).attr(
|
|
6769
6769
|
"class",
|
|
6770
6770
|
() => this.model.getColorClassName({
|
|
6771
6771
|
classNameTypes: [nt.STROKE],
|
|
@@ -6780,7 +6780,7 @@ class xm extends dt {
|
|
|
6780
6780
|
).attr("d", (A) => {
|
|
6781
6781
|
const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.quartiles.q_25);
|
|
6782
6782
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
|
|
6783
|
-
}),
|
|
6783
|
+
}), C.append("path").merge(T.select("path.vertical-line.end")).attr(
|
|
6784
6784
|
"class",
|
|
6785
6785
|
() => this.model.getColorClassName({
|
|
6786
6786
|
classNameTypes: [nt.STROKE],
|
|
@@ -6795,7 +6795,7 @@ class xm extends dt {
|
|
|
6795
6795
|
).attr("d", (A) => {
|
|
6796
6796
|
const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.quartiles.q_75);
|
|
6797
6797
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
|
|
6798
|
-
}),
|
|
6798
|
+
}), C.append("path").merge(T.select("path.box")).attr(
|
|
6799
6799
|
"class",
|
|
6800
6800
|
() => this.model.getColorClassName({
|
|
6801
6801
|
classNameTypes: [nt.FILL, nt.STROKE],
|
|
@@ -6814,10 +6814,10 @@ class xm extends dt {
|
|
|
6814
6814
|
f.getRangeValue(A.quartiles.q_75) - f.getRangeValue(A.quartiles.q_25)
|
|
6815
6815
|
);
|
|
6816
6816
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
|
|
6817
|
-
}),
|
|
6817
|
+
}), C.append("path").merge(T.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (A) => {
|
|
6818
6818
|
const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.max);
|
|
6819
6819
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
|
|
6820
|
-
}),
|
|
6820
|
+
}), C.append("path").merge(T.select("path.whisker.start")).attr(
|
|
6821
6821
|
"class",
|
|
6822
6822
|
() => this.model.getColorClassName({
|
|
6823
6823
|
classNameTypes: [nt.STROKE],
|
|
@@ -6832,7 +6832,7 @@ class xm extends dt {
|
|
|
6832
6832
|
).attr("d", (A) => {
|
|
6833
6833
|
const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.min);
|
|
6834
6834
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
|
|
6835
|
-
}),
|
|
6835
|
+
}), C.append("path").merge(T.select("path.median")).attr("fill", "none").attr(
|
|
6836
6836
|
"class",
|
|
6837
6837
|
() => this.model.getColorClassName({
|
|
6838
6838
|
classNameTypes: [nt.STROKE],
|
|
@@ -6847,7 +6847,7 @@ class xm extends dt {
|
|
|
6847
6847
|
).attr("d", (A) => {
|
|
6848
6848
|
const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.quartiles.q_50);
|
|
6849
6849
|
return Gt({ x0: H, x1: N, y0: M, y1: M }, m);
|
|
6850
|
-
}),
|
|
6850
|
+
}), C.append("path").merge(T.select("path.whisker.end")).attr(
|
|
6851
6851
|
"class",
|
|
6852
6852
|
() => this.model.getColorClassName({
|
|
6853
6853
|
classNameTypes: [nt.STROKE],
|
|
@@ -6863,7 +6863,7 @@ class xm extends dt {
|
|
|
6863
6863
|
const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.whiskers.max);
|
|
6864
6864
|
return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
|
|
6865
6865
|
});
|
|
6866
|
-
const
|
|
6866
|
+
const V = _.selectAll("circle.outlier").data(
|
|
6867
6867
|
(A) => A.outliers.map((H) => ({
|
|
6868
6868
|
min: A.whiskers.min,
|
|
6869
6869
|
max: A.whiskers.max,
|
|
@@ -6871,9 +6871,9 @@ class xm extends dt {
|
|
|
6871
6871
|
value: H
|
|
6872
6872
|
}))
|
|
6873
6873
|
);
|
|
6874
|
-
|
|
6875
|
-
const R =
|
|
6876
|
-
|
|
6874
|
+
V.exit().remove();
|
|
6875
|
+
const R = V.enter().append("circle");
|
|
6876
|
+
V.merge(R).attr("r", qt.circle.radius).attr(
|
|
6877
6877
|
"class",
|
|
6878
6878
|
() => this.model.getColorClassName({
|
|
6879
6879
|
classNameTypes: [nt.FILL, nt.STROKE],
|
|
@@ -7050,7 +7050,7 @@ class Tm extends Qi {
|
|
|
7050
7050
|
super(...arguments), this.type = "bubble", this.renderType = at.SVG;
|
|
7051
7051
|
}
|
|
7052
7052
|
getRadiusScale(t) {
|
|
7053
|
-
const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, s = t.data(), a = s.map((l) => l[n]).filter((l) => l), r = I.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = a.length > 0, c = o ?
|
|
7053
|
+
const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, s = t.data(), a = s.map((l) => l[n]).filter((l) => l), r = I.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = a.length > 0, c = o ? Ls(a) : [1, 1];
|
|
7054
7054
|
return Re().domain(c).range(o ? e.bubble.radiusRange(r, s) : [4, 4]);
|
|
7055
7055
|
}
|
|
7056
7056
|
styleCircles(t, e) {
|
|
@@ -7139,9 +7139,9 @@ class bm extends dt {
|
|
|
7139
7139
|
animate: t
|
|
7140
7140
|
})
|
|
7141
7141
|
).attr("d", (S) => {
|
|
7142
|
-
let E, x, T,
|
|
7143
|
-
return S.order === 1 ? (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = l - 2,
|
|
7144
|
-
{ x0: E, x1: x, y0: T, y1:
|
|
7142
|
+
let E, x, T, C;
|
|
7143
|
+
return S.order === 1 ? (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = l - 2, C = c + 1) : (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = this.services.cartesianScales.getRangeValue(S.value), C = l), Gt(
|
|
7144
|
+
{ x0: E, x1: x, y0: T, y1: C },
|
|
7145
7145
|
this.services.cartesianScales.getOrientation()
|
|
7146
7146
|
);
|
|
7147
7147
|
}).attr("opacity", 1);
|
|
@@ -7208,9 +7208,9 @@ class bm extends dt {
|
|
|
7208
7208
|
).attr("d", ({ datum: S, value: y }) => {
|
|
7209
7209
|
let E = 4;
|
|
7210
7210
|
S.ranges && S.ranges.indexOf(y) !== -1 && (E = 8);
|
|
7211
|
-
const x = this.services.cartesianScales.getDomainValue(S) - E / 2, T = x + E,
|
|
7211
|
+
const x = this.services.cartesianScales.getDomainValue(S) - E / 2, T = x + E, C = this.services.cartesianScales.getRangeValue(y);
|
|
7212
7212
|
return Gt(
|
|
7213
|
-
{ x0: x, x1: T, y0:
|
|
7213
|
+
{ x0: x, x1: T, y0: C, y1: C },
|
|
7214
7214
|
this.services.cartesianScales.getOrientation()
|
|
7215
7215
|
);
|
|
7216
7216
|
}).attr("opacity", 1);
|
|
@@ -7486,14 +7486,14 @@ class Om extends Ko {
|
|
|
7486
7486
|
});
|
|
7487
7487
|
if (g.size() > 0) {
|
|
7488
7488
|
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !uo(this.elementsToHighlight, g) && this.hideRuler(), g.dispatch("mouseover"), this.elementsToHighlight = g;
|
|
7489
|
-
const v = D(g.nodes()[0]).datum(), S = parseFloat(xt(v, "data.x0")), y = parseFloat(xt(v, "data.x1")), E = this.model.getActiveDataGroupNames(), x = E.reverse().map((
|
|
7490
|
-
label:
|
|
7491
|
-
value: xt(v, `data.${
|
|
7489
|
+
const v = D(g.nodes()[0]).datum(), S = parseFloat(xt(v, "data.x0")), y = parseFloat(xt(v, "data.x1")), E = this.model.getActiveDataGroupNames(), x = E.reverse().map((C) => ({
|
|
7490
|
+
label: C,
|
|
7491
|
+
value: xt(v, `data.${C}`),
|
|
7492
7492
|
class: this.model.getColorClassName({
|
|
7493
7493
|
classNameTypes: [nt.TOOLTIP],
|
|
7494
|
-
dataGroupName:
|
|
7494
|
+
dataGroupName: C
|
|
7495
7495
|
})
|
|
7496
|
-
})).filter((
|
|
7496
|
+
})).filter((C) => C.value !== 0);
|
|
7497
7497
|
if (x.length > 0) {
|
|
7498
7498
|
this.services.events.dispatchEvent(b.Tooltip.SHOW, {
|
|
7499
7499
|
event: t,
|
|
@@ -7509,15 +7509,15 @@ class Om extends Ko {
|
|
|
7509
7509
|
{
|
|
7510
7510
|
label: xt(a, "locale.translations.total") || xt(a, "tooltip.totalLabel") || "Total",
|
|
7511
7511
|
value: E.reduce(
|
|
7512
|
-
(_,
|
|
7512
|
+
(_, V) => _ + parseFloat(xt(v, `data.${V}`)),
|
|
7513
7513
|
0
|
|
7514
7514
|
)
|
|
7515
7515
|
}
|
|
7516
7516
|
] : []
|
|
7517
7517
|
]
|
|
7518
7518
|
}), p.attr("opacity", 1);
|
|
7519
|
-
const
|
|
7520
|
-
o === "horizontal" ? f.attr("x1", h).attr("x2", l).attr("y1",
|
|
7519
|
+
const C = d((S + y) / 2);
|
|
7520
|
+
o === "horizontal" ? f.attr("x1", h).attr("x2", l).attr("y1", C).attr("y2", C) : f.attr("y1", h).attr("y2", l).attr("x1", C).attr("x2", C);
|
|
7521
7521
|
} else
|
|
7522
7522
|
this.hideRuler();
|
|
7523
7523
|
} else
|
|
@@ -7530,13 +7530,13 @@ class Lm extends Ko {
|
|
|
7530
7530
|
}
|
|
7531
7531
|
}
|
|
7532
7532
|
const Am = (i, t) => {
|
|
7533
|
-
const e = i.x, n = i.y, s = t.x, a = t.y, r =
|
|
7533
|
+
const e = i.x, n = i.y, s = t.x, a = t.y, r = Ms();
|
|
7534
7534
|
return r.moveTo(e, n), r.lineTo(s, a), r.toString();
|
|
7535
7535
|
}, Mm = (i, t, e = 0.5) => {
|
|
7536
|
-
const n = i.x, s = i.y, a = t.x, r = t.y, o =
|
|
7536
|
+
const n = i.x, s = i.y, a = t.x, r = t.y, o = Ms();
|
|
7537
7537
|
return o.moveTo(n, s), o.lineTo(n + (a - n) * e, s), o.lineTo(n + (a - n) * e, r), o.lineTo(a, r), o.toString();
|
|
7538
7538
|
}, wm = (i, t, e, n, s, a) => {
|
|
7539
|
-
const r = i.x, o = i.y, c = t.x, l = t.y, h =
|
|
7539
|
+
const r = i.x, o = i.y, c = t.x, l = t.y, h = Ms();
|
|
7540
7540
|
return h.moveTo(r, o), h.bezierCurveTo(e, n, s, a, c, l), h.toString();
|
|
7541
7541
|
}, Cm = {
|
|
7542
7542
|
d: "M7 0v8L0 4z",
|
|
@@ -7620,23 +7620,23 @@ class Nm extends Nd {
|
|
|
7620
7620
|
else
|
|
7621
7621
|
for (let R = 1; R < S + 1; R++)
|
|
7622
7622
|
v.push(
|
|
7623
|
-
r ===
|
|
7623
|
+
r === Gs.LINEAR ? `stop-color-${g}-${o}-${R}` : `fill-${g}-${o}-${R}`
|
|
7624
7624
|
);
|
|
7625
|
-
const y = Yr(d[0], d[1]), E = zc(y, 3), x = Re().domain(d).range([0, p]), T = Fi(x).tickSize(0).tickValues(E), { code:
|
|
7626
|
-
T.tickFormat((R) => _(R,
|
|
7627
|
-
let
|
|
7625
|
+
const y = Yr(d[0], d[1]), E = zc(y, 3), x = Re().domain(d).range([0, p]), T = Fi(x).tickSize(0).tickValues(E), { code: C, number: _ } = O(e, "locale");
|
|
7626
|
+
T.tickFormat((R) => _(R, C));
|
|
7627
|
+
let V;
|
|
7628
7628
|
switch (r) {
|
|
7629
|
-
case
|
|
7629
|
+
case Gs.LINEAR:
|
|
7630
7630
|
this.drawLinear(v, f, p);
|
|
7631
7631
|
break;
|
|
7632
|
-
case
|
|
7633
|
-
|
|
7632
|
+
case Gs.QUANTIZE:
|
|
7633
|
+
V = this.drawQuantize(
|
|
7634
7634
|
v,
|
|
7635
7635
|
g,
|
|
7636
7636
|
h,
|
|
7637
7637
|
f,
|
|
7638
7638
|
p
|
|
7639
|
-
), x.range([
|
|
7639
|
+
), x.range([V, p]);
|
|
7640
7640
|
break;
|
|
7641
7641
|
default:
|
|
7642
7642
|
throw Error("Entered color legend type is not supported.");
|
|
@@ -7657,7 +7657,7 @@ class Nm extends Nd {
|
|
|
7657
7657
|
*/
|
|
7658
7658
|
drawQuantize(t, e, n, s, a) {
|
|
7659
7659
|
!n && e === "diverge" && t.splice(t.length / 2, 1);
|
|
7660
|
-
const r =
|
|
7660
|
+
const r = hs().domain(t).range([0, a]);
|
|
7661
7661
|
return I.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(r.domain()).join("rect").attr("x", (c) => r(c)).attr("y", 0).attr("width", Math.max(0, r.bandwidth() - 1)).attr("height", Mt.color.barHeight).attr("class", (c) => c).attr("fill", (c) => c), (!n && e) === "mono" ? r.bandwidth() - 1 : 0;
|
|
7662
7662
|
}
|
|
7663
7663
|
destroy() {
|
|
@@ -7760,11 +7760,11 @@ class Pm extends Dd {
|
|
|
7760
7760
|
*/
|
|
7761
7761
|
getStatusIconPathString(t) {
|
|
7762
7762
|
switch (t) {
|
|
7763
|
-
case
|
|
7763
|
+
case Hs.SUCCESS:
|
|
7764
7764
|
return "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";
|
|
7765
|
-
case
|
|
7765
|
+
case Hs.DANGER:
|
|
7766
7766
|
return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
|
|
7767
|
-
case
|
|
7767
|
+
case Hs.WARNING:
|
|
7768
7768
|
return "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z";
|
|
7769
7769
|
}
|
|
7770
7770
|
}
|
|
@@ -8029,7 +8029,7 @@ class gp extends dt {
|
|
|
8029
8029
|
})
|
|
8030
8030
|
).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr("aria-label", (M) => [
|
|
8031
8031
|
M[r],
|
|
8032
|
-
|
|
8032
|
+
$s(M.data[r], o, r) + "%",
|
|
8033
8033
|
M.data[a]
|
|
8034
8034
|
].filter(Boolean).join(", ")).attrTween("d", function(M) {
|
|
8035
8035
|
return fp.bind(this)(M, e.arc);
|
|
@@ -8041,31 +8041,31 @@ class gp extends dt {
|
|
|
8041
8041
|
const x = E.enter().append("text").classed("pie-label", !0), T = [];
|
|
8042
8042
|
x.merge(E).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
|
|
8043
8043
|
...M,
|
|
8044
|
-
percentageValue:
|
|
8044
|
+
percentageValue: $s(
|
|
8045
8045
|
M.data[r],
|
|
8046
8046
|
o,
|
|
8047
8047
|
r,
|
|
8048
8048
|
!0
|
|
8049
8049
|
)
|
|
8050
8050
|
}) : g(
|
|
8051
|
-
|
|
8051
|
+
$s(M.data[r], o, r),
|
|
8052
8052
|
m
|
|
8053
8053
|
) + "%").datum(function(M) {
|
|
8054
|
-
const L = c + 7, P = (M.endAngle - M.startAngle) / 2 + M.startAngle, $ = P / Math.PI * 180,
|
|
8055
|
-
return M.textOffsetX =
|
|
8054
|
+
const L = c + 7, P = (M.endAngle - M.startAngle) / 2 + M.startAngle, $ = P / Math.PI * 180, k = this.getComputedTextLength();
|
|
8055
|
+
return M.textOffsetX = k / 2, M.textOffsetY = $ > 90 && $ < 270 ? 10 : 0, M.xPosition = (M.textOffsetX + L) * Math.sin(P), M.yPosition = (M.textOffsetY + L) * -Math.cos(P), M;
|
|
8056
8056
|
}).attr("transform", function(M, L) {
|
|
8057
8057
|
const P = S.length, $ = (M.endAngle - M.startAngle) * (180 / Math.PI);
|
|
8058
8058
|
if (L >= P - 2 && $ < Et.callout.minSliceDegree) {
|
|
8059
|
-
let
|
|
8060
|
-
return M.index === P - 1 ? (
|
|
8059
|
+
let k, G;
|
|
8060
|
+
return M.index === P - 1 ? (k = M.xPosition + Et.callout.offsetX + Et.callout.textMargin + M.textOffsetX, G = M.yPosition - Et.callout.offsetY, M.direction = Bs.RIGHT, T.push(M)) : (k = M.xPosition - Et.callout.offsetX - M.textOffsetX - Et.callout.textMargin, G = M.yPosition - Et.callout.offsetY, M.direction = Bs.LEFT, T.push(M)), `translate(${k}, ${G})`;
|
|
8061
8061
|
}
|
|
8062
8062
|
return `translate(${M.xPosition}, ${M.yPosition})`;
|
|
8063
8063
|
}), this.renderCallouts(T);
|
|
8064
|
-
const
|
|
8064
|
+
const C = O(s, "donut") ? "donut" : "pie", _ = O(s, C, "alignment"), { width: V } = I.getSVGElementSize(this.getParent(), {
|
|
8065
8065
|
useAttrs: !0
|
|
8066
8066
|
}), R = v ? Et.xOffset : 0, A = v ? Et.yOffset : 0;
|
|
8067
8067
|
let H = c + R;
|
|
8068
|
-
_ === te.CENTER ? H =
|
|
8068
|
+
_ === te.CENTER ? H = V / 2 : _ === te.RIGHT && (H = V - c - Et.xOffset);
|
|
8069
8069
|
let N = c + A;
|
|
8070
8070
|
T.length > 0 && (N += Et.yOffsetCallout), n.attr("x", H + 7).attr("y", N), this.addEventListeners();
|
|
8071
8071
|
}
|
|
@@ -8075,7 +8075,7 @@ class gp extends dt {
|
|
|
8075
8075
|
const s = n.enter().append("g").classed("callout", !0).attr("role", lt.GROUP).attr("aria-roledescription", "label callout");
|
|
8076
8076
|
s.merge(n).datum(function(o) {
|
|
8077
8077
|
const { xPosition: c, yPosition: l, direction: h } = o;
|
|
8078
|
-
return h ===
|
|
8078
|
+
return h === Bs.RIGHT ? (o.startPos = {
|
|
8079
8079
|
x: c,
|
|
8080
8080
|
y: l + o.textOffsetY
|
|
8081
8081
|
}, o.endPos = {
|
|
@@ -8282,17 +8282,17 @@ class Gm extends dt {
|
|
|
8282
8282
|
"transform",
|
|
8283
8283
|
`translate(0, ${d})`
|
|
8284
8284
|
), p = o(r), f = I.appendOrSelect(u, "g.gauge-value-number"), { code: m, number: g } = O(e, "locale"), v = O(e, "gauge", "numberFormatter"), S = f.selectAll("text.gauge-value-number").data([s]);
|
|
8285
|
-
S.enter().append("text").attr("class", "gauge-value-number").merge(S).style("font-size", `${p}px`).attr("text-anchor", "middle").text((
|
|
8285
|
+
S.enter().append("text").attr("class", "gauge-value-number").merge(S).style("font-size", `${p}px`).attr("text-anchor", "middle").text((V) => {
|
|
8286
8286
|
let R;
|
|
8287
|
-
return
|
|
8287
|
+
return V != null ? R = Number(V.toFixed(2)) % 1 !== 0 ? V.toFixed(2) : V.toFixed() : R = 0, v ? v(R) : g(Number(R), m);
|
|
8288
8288
|
});
|
|
8289
8289
|
const { width: y } = I.getSVGElementSize(
|
|
8290
8290
|
I.appendOrSelect(t, "text.gauge-value-number"),
|
|
8291
8291
|
{ useBBox: !0 }
|
|
8292
|
-
), E = p / 2, x = h ? "%" : "", T = I.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", y / 2).text(x), { width:
|
|
8292
|
+
), E = p / 2, x = h ? "%" : "", T = I.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", y / 2).text(x), { width: C, height: _ } = I.getSVGElementSize(T, {
|
|
8293
8293
|
useBBox: !0
|
|
8294
8294
|
});
|
|
8295
|
-
T.attr("y", `-${_ / 2}px`), f.attr("transform", `translate(-${
|
|
8295
|
+
T.attr("y", `-${_ / 2}px`), f.attr("transform", `translate(-${C / 2}, 0)`);
|
|
8296
8296
|
}
|
|
8297
8297
|
/**
|
|
8298
8298
|
* adds the delta number for the gauge
|
|
@@ -8406,7 +8406,7 @@ class Hm extends ea {
|
|
|
8406
8406
|
animate: t
|
|
8407
8407
|
})
|
|
8408
8408
|
).attr("transform", (u) => {
|
|
8409
|
-
const f = this.services.cartesianScales.getDomainValue(u) - this.getGroupWidth() / 2;
|
|
8409
|
+
const f = this.services.cartesianScales.getDomainValue(u) - this.getGroupWidth(u) / 2;
|
|
8410
8410
|
return this.services.cartesianScales.getOrientation() === Xt.VERTICAL ? `translate(${f}, 0)` : `translate(0, ${f})`;
|
|
8411
8411
|
});
|
|
8412
8412
|
const h = l.selectAll("path.bar").data(
|
|
@@ -8430,10 +8430,10 @@ class Hm extends ea {
|
|
|
8430
8430
|
const p = this.services.cartesianScales.getDomainIdentifier(u);
|
|
8431
8431
|
return this.model.getFillColor(u[s], u[p], u);
|
|
8432
8432
|
}).attr("d", (u) => {
|
|
8433
|
-
const p = this.
|
|
8434
|
-
if (!this.isOutsideZoomedDomain(
|
|
8433
|
+
const p = this.services.cartesianScales.getDomainIdentifier(u), f = u[p] && typeof u[p].toString == "function" ? u[p].toString() : u[p], g = this.getGroupScaleForLabel(f)(u[s]), v = this.getBarWidth(), S = g, y = g + v, E = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), x = this.services.cartesianScales.getDomainLowerBound(E), T = this.services.cartesianScales.getValueThroughAxisPosition(E, x), C = this.services.cartesianScales.getRangeValue(u), _ = this.services.cartesianScales.getDomainValue(u) - v / 2, V = _ + v;
|
|
8434
|
+
if (!this.isOutsideZoomedDomain(_, V))
|
|
8435
8435
|
return Gt(
|
|
8436
|
-
{ x0:
|
|
8436
|
+
{ x0: S, x1: y, y0: T, y1: C },
|
|
8437
8437
|
this.services.cartesianScales.getOrientation()
|
|
8438
8438
|
);
|
|
8439
8439
|
}).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (u) => u.value), this.addEventListeners();
|
|
@@ -8488,9 +8488,14 @@ class Hm extends ea {
|
|
|
8488
8488
|
return n[s].toString() === t;
|
|
8489
8489
|
});
|
|
8490
8490
|
}
|
|
8491
|
-
getGroupWidth() {
|
|
8492
|
-
const
|
|
8493
|
-
|
|
8491
|
+
getGroupWidth(t) {
|
|
8492
|
+
const e = this.getOptions();
|
|
8493
|
+
if (!(O(e, "bars", "preserveSpaceForMissingBars") !== !1) && t) {
|
|
8494
|
+
const r = this.getDataCorrespondingToLabel(t), o = this.getTotalGroupPadding(r.length);
|
|
8495
|
+
return this.getBarWidth() * r.length + o;
|
|
8496
|
+
}
|
|
8497
|
+
const s = this.model.getGroupedData(this.configs.groups), a = this.getTotalGroupPadding();
|
|
8498
|
+
return this.getBarWidth() * s.length + a;
|
|
8494
8499
|
}
|
|
8495
8500
|
getDomainScaleStep() {
|
|
8496
8501
|
const t = this.services.cartesianScales.getDomainScale(), e = this.model.getGroupedData(this.configs.groups);
|
|
@@ -8508,9 +8513,9 @@ class Hm extends ea {
|
|
|
8508
8513
|
}
|
|
8509
8514
|
return n;
|
|
8510
8515
|
}
|
|
8511
|
-
getTotalGroupPadding() {
|
|
8512
|
-
const
|
|
8513
|
-
return
|
|
8516
|
+
getTotalGroupPadding(t) {
|
|
8517
|
+
const e = this.model.getGroupedData(this.configs.groups), n = t !== void 0 ? t : e.length;
|
|
8518
|
+
return n === 1 ? 0 : Math.min(5, 5 * (this.getDomainScaleStep() / this.defaultStepFactor)) * (n - 1);
|
|
8514
8519
|
}
|
|
8515
8520
|
// Gets the correct width for bars based on options & configurations
|
|
8516
8521
|
getBarWidth() {
|
|
@@ -8525,7 +8530,15 @@ class Hm extends ea {
|
|
|
8525
8530
|
}
|
|
8526
8531
|
setGroupScale() {
|
|
8527
8532
|
const t = this.model.getActiveDataGroupNames(this.configs.groups);
|
|
8528
|
-
this.groupScale =
|
|
8533
|
+
this.groupScale = hs().domain(t).rangeRound([0, this.getGroupWidth()]);
|
|
8534
|
+
}
|
|
8535
|
+
getGroupScaleForLabel(t) {
|
|
8536
|
+
const e = this.getOptions();
|
|
8537
|
+
if (!(O(e, "bars", "preserveSpaceForMissingBars") !== !1)) {
|
|
8538
|
+
const s = this.getDataCorrespondingToLabel(t), { groupMapsTo: a } = e.data, r = s.map((o) => o[a]);
|
|
8539
|
+
return hs().domain(r).rangeRound([0, this.getGroupWidth(t)]);
|
|
8540
|
+
}
|
|
8541
|
+
return this.groupScale;
|
|
8529
8542
|
}
|
|
8530
8543
|
}
|
|
8531
8544
|
class Bm extends dt {
|
|
@@ -8554,7 +8567,7 @@ class Bm extends dt {
|
|
|
8554
8567
|
}
|
|
8555
8568
|
d += m, u = m < u ? m : u, p = m > p ? m : p;
|
|
8556
8569
|
}
|
|
8557
|
-
})), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${
|
|
8570
|
+
})), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${fi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${fi(c.range())},${l(n)})`), this.services.events.dispatchEvent(b.Tooltip.SHOW, {
|
|
8558
8571
|
event: e.event,
|
|
8559
8572
|
hoveredElement: D(t.detail.element),
|
|
8560
8573
|
items: [
|
|
@@ -8636,7 +8649,7 @@ class Bm extends dt {
|
|
|
8636
8649
|
}
|
|
8637
8650
|
determineDividerStatus() {
|
|
8638
8651
|
const t = O(this.getOptions(), "heatmap", "divider", "state");
|
|
8639
|
-
return t !==
|
|
8652
|
+
return t !== zs.OFF && (t === zs.AUTO && Sa.minCellDividerDimension <= this.xBandwidth && Sa.minCellDividerDimension <= this.yBandwidth || t === zs.ON);
|
|
8640
8653
|
}
|
|
8641
8654
|
addEventListener() {
|
|
8642
8655
|
const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), s = xt(n, "locale.translations.total") || xt(n, "tooltip.totalLabel") || "Total", a = e.getDomainIdentifier(), r = e.getRangeIdentifier(), o = e.getDomainLabel(), c = e.getRangeLabel();
|
|
@@ -9041,10 +9054,10 @@ class Wm extends dt {
|
|
|
9041
9054
|
const S = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), x = (Math.min(n, s) - S) / 2;
|
|
9042
9055
|
if (x <= 0)
|
|
9043
9056
|
return;
|
|
9044
|
-
const T =
|
|
9045
|
-
|
|
9057
|
+
const T = hs().domain(this.fullDataNormalized.map((z) => z[h])).range([0, 2 * Math.PI].map((z) => z - Math.PI / 2)), C = fi(this.fullDataNormalized.map((z) => z[d])), _ = Re().domain([
|
|
9058
|
+
C >= 0 ? 0 : C,
|
|
9046
9059
|
Ta(this.fullDataNormalized.map((z) => z[d]))
|
|
9047
|
-
]).range([m, x]).nice(f),
|
|
9060
|
+
]).range([m, x]).nice(f), V = _.ticks(f), R = (z, B, U) => this.model.getFillColor(z, B, U), A = ad().angle((z) => T(z[h]) + Math.PI / 2).radius((z) => _(z[d])).curve(wl), H = this.uniqueKeys.map((z) => {
|
|
9048
9061
|
const B = this.getLabelDimensions(z).width, U = Cl(
|
|
9049
9062
|
T(z),
|
|
9050
9063
|
x
|
|
@@ -9053,7 +9066,7 @@ class Wm extends dt {
|
|
|
9053
9066
|
}), M = {
|
|
9054
9067
|
x: Ta(H) + u,
|
|
9055
9068
|
y: s / 2
|
|
9056
|
-
}, P = I.appendOrSelect(e, "g.y-axes").attr("role", lt.GROUP).selectAll("path").data(
|
|
9069
|
+
}, P = I.appendOrSelect(e, "g.y-axes").attr("role", lt.GROUP).selectAll("path").data(V, (z) => z), $ = (z) => this.uniqueKeys.map((B) => ({ [h]: B, [d]: z }));
|
|
9057
9070
|
P.join(
|
|
9058
9071
|
(z) => z.append("path").attr("opacity", 0).attr("transform", `translate(${M.x}, ${M.y})`).attr("fill", "none").call(
|
|
9059
9072
|
(B) => B.transition().call(
|
|
@@ -9223,7 +9236,7 @@ class Wm extends dt {
|
|
|
9223
9236
|
(z) => z.remove()
|
|
9224
9237
|
).attr("x", M.x).attr("y", M.y - g / 2).attr("width", _.range()[1]).attr("height", g).style("fill", "red").style("fill-opacity", 0).attr("transform", (z) => `rotate(${kl(T(z))}, ${M.x}, ${M.y})`);
|
|
9225
9238
|
const { code: ot, number: ct } = O(o, "locale");
|
|
9226
|
-
I.appendOrSelect(e, "g.y-labels").attr("role", lt.GROUP).selectAll("text").data(
|
|
9239
|
+
I.appendOrSelect(e, "g.y-labels").attr("role", lt.GROUP).selectAll("text").data(Ls(V)).join(
|
|
9227
9240
|
(z) => z.append("text").attr("opacity", 0).text((B) => ct(B, ot)).attr(
|
|
9228
9241
|
"x",
|
|
9229
9242
|
(B) => bt(-Math.PI / 2, _(B), M).x + p
|
|
@@ -9731,49 +9744,49 @@ class Km extends dt {
|
|
|
9731
9744
|
name: o,
|
|
9732
9745
|
children: r
|
|
9733
9746
|
}), p = 10, f = n / 6, m = (T) => {
|
|
9734
|
-
const
|
|
9735
|
-
let
|
|
9736
|
-
u.eachBefore((
|
|
9737
|
-
|
|
9738
|
-
});
|
|
9739
|
-
const A = R.x -
|
|
9740
|
-
(
|
|
9741
|
-
transition:
|
|
9747
|
+
const C = u.descendants().reverse(), _ = u.links();
|
|
9748
|
+
let V = u, R = u;
|
|
9749
|
+
u.eachBefore((k) => {
|
|
9750
|
+
k.x < V.x && (V = k), k.x > R.x && (R = k);
|
|
9751
|
+
});
|
|
9752
|
+
const A = R.x - V.x, H = e.transition().call(
|
|
9753
|
+
(k) => this.services.transitions.setupTransition({
|
|
9754
|
+
transition: k,
|
|
9742
9755
|
name: "tree-update-viewbox",
|
|
9743
9756
|
animate: !0
|
|
9744
9757
|
})
|
|
9745
|
-
).attr("viewBox", [-d.left,
|
|
9758
|
+
).attr("viewBox", [-d.left, V.x, n, A].join(" ")), N = x.selectAll("g").data(C, (k) => k.id), M = this, L = N.enter().append("g").attr("transform", () => `translate(${T.y0},${T.x0})`).attr(
|
|
9746
9759
|
"class",
|
|
9747
|
-
(
|
|
9748
|
-
).on("mouseover", function(
|
|
9760
|
+
(k) => k.depth !== 0 && k.children && k.children.length > 0 ? "clickable" : null
|
|
9761
|
+
).on("mouseover", function(k, G) {
|
|
9749
9762
|
M.services.events.dispatchEvent(b.Tree.NODE_MOUSEOVER, {
|
|
9750
|
-
event:
|
|
9763
|
+
event: k,
|
|
9751
9764
|
element: D(this),
|
|
9752
|
-
datum:
|
|
9765
|
+
datum: G
|
|
9753
9766
|
});
|
|
9754
|
-
}).on("click", function(
|
|
9755
|
-
|
|
9756
|
-
event:
|
|
9767
|
+
}).on("click", function(k, G) {
|
|
9768
|
+
G.depth !== 0 && (G.children = G.children ? null : G._children, m(G)), M.services.events.dispatchEvent(b.Tree.NODE_CLICK, {
|
|
9769
|
+
event: k,
|
|
9757
9770
|
element: D(this),
|
|
9758
|
-
datum:
|
|
9771
|
+
datum: G
|
|
9759
9772
|
});
|
|
9760
|
-
}).on("mouseout", function(
|
|
9773
|
+
}).on("mouseout", function(k, G) {
|
|
9761
9774
|
M.services.events.dispatchEvent(b.Tree.NODE_MOUSEOUT, {
|
|
9762
|
-
event:
|
|
9775
|
+
event: k,
|
|
9763
9776
|
element: D(this),
|
|
9764
|
-
datum:
|
|
9777
|
+
datum: G
|
|
9765
9778
|
});
|
|
9766
9779
|
});
|
|
9767
|
-
L.append("circle").attr("r", 2.5).attr("class", (
|
|
9768
|
-
const P = E.selectAll("path").data(_, (
|
|
9769
|
-
const
|
|
9770
|
-
return y({ source:
|
|
9780
|
+
L.append("circle").attr("r", 2.5).attr("class", (k) => k._children ? "parent" : "child").attr("stroke-width", 10), L.append("text").attr("dy", "0.31em").attr("x", (k) => k._children ? -Ze : Ze).attr("text-anchor", (k) => k._children ? "end" : "start").text((k) => k.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(L).transition(H).attr("transform", (k) => `translate(${k.y},${k.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${T.y},${T.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
|
|
9781
|
+
const P = E.selectAll("path").data(_, (k) => k.target.id), $ = P.enter().append("path").attr("d", () => {
|
|
9782
|
+
const k = { x: T.x0, y: T.y0 };
|
|
9783
|
+
return y({ source: k, target: k });
|
|
9771
9784
|
});
|
|
9772
9785
|
P.merge($).transition(H).attr("d", y), P.exit().transition(H).remove().attr("d", () => {
|
|
9773
|
-
const
|
|
9774
|
-
return y({ source:
|
|
9775
|
-
}), u.eachBefore((
|
|
9776
|
-
|
|
9786
|
+
const k = { x: T.x, y: T.y };
|
|
9787
|
+
return y({ source: k, target: k });
|
|
9788
|
+
}), u.eachBefore((k) => {
|
|
9789
|
+
k.x0 = k.x, k.y0 = k.y;
|
|
9777
9790
|
});
|
|
9778
9791
|
}, g = u.descendants(), v = g[g.length - 1].depth, S = O(a, "tree", "type") === Ol.DENDROGRAM ? eh().size([
|
|
9779
9792
|
s,
|
|
@@ -9782,8 +9795,8 @@ class Km extends dt {
|
|
|
9782
9795
|
s,
|
|
9783
9796
|
n - h - v * Ze - c
|
|
9784
9797
|
]), y = hd().x((T) => T.y).y((T) => T.x);
|
|
9785
|
-
u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((T,
|
|
9786
|
-
T.id =
|
|
9798
|
+
u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((T, C) => {
|
|
9799
|
+
T.id = C, T._children = T.children;
|
|
9787
9800
|
}), S(u), e.attr("viewBox", [-d.left, -0, n, p]).style("user-select", "none");
|
|
9788
9801
|
const E = e.append("g").attr("class", "links"), x = e.append("g").attr("class", "nodes");
|
|
9789
9802
|
m(u);
|
|
@@ -10231,37 +10244,37 @@ const jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10231
10244
|
__proto__: null,
|
|
10232
10245
|
dispatch: Qo
|
|
10233
10246
|
}, Symbol.toStringTag, { value: "Module" })), Kg = /* @__PURE__ */ Xg(jg);
|
|
10234
|
-
var
|
|
10247
|
+
var hi, Hr;
|
|
10235
10248
|
function Jg() {
|
|
10236
|
-
if (Hr) return
|
|
10249
|
+
if (Hr) return hi;
|
|
10237
10250
|
Hr = 1;
|
|
10238
10251
|
const i = Kg.dispatch, t = Math.PI / 180, e = {
|
|
10239
10252
|
archimedean: m,
|
|
10240
10253
|
rectangular: g
|
|
10241
10254
|
}, n = 64, s = 2048;
|
|
10242
|
-
|
|
10243
|
-
var E = [256, 256], x = a, T = r,
|
|
10244
|
-
|
|
10245
|
-
return arguments.length ? (
|
|
10246
|
-
},
|
|
10247
|
-
var F = q(
|
|
10248
|
-
return st.text = x.call(this, st, it), st.font = T.call(this, st, it), st.style = _.call(this, st, it), st.weight =
|
|
10255
|
+
hi = function() {
|
|
10256
|
+
var E = [256, 256], x = a, T = r, C = c, _ = o, V = o, R = l, A = h, H = m, N = [], M = 1 / 0, L = i("word", "end"), P = null, $ = Math.random, k = {}, G = S;
|
|
10257
|
+
k.canvas = function(F) {
|
|
10258
|
+
return arguments.length ? (G = y(F), k) : G;
|
|
10259
|
+
}, k.start = function() {
|
|
10260
|
+
var F = q(G()), Z = v((E[0] >> 5) * E[1]), rt = null, j = N.length, Y = -1, K = [], ot = N.map(function(st, it) {
|
|
10261
|
+
return st.text = x.call(this, st, it), st.font = T.call(this, st, it), st.style = _.call(this, st, it), st.weight = V.call(this, st, it), st.rotate = R.call(this, st, it), st.size = ~~C.call(this, st, it), st.padding = A.call(this, st, it), st;
|
|
10249
10262
|
}).sort(function(st, it) {
|
|
10250
10263
|
return it.size - st.size;
|
|
10251
10264
|
});
|
|
10252
|
-
return P && clearInterval(P), P = setInterval(ct, 0), ct(),
|
|
10265
|
+
return P && clearInterval(P), P = setInterval(ct, 0), ct(), k;
|
|
10253
10266
|
function ct() {
|
|
10254
10267
|
for (var st = Date.now(); Date.now() - st < M && ++Y < j && P; ) {
|
|
10255
10268
|
var it = ot[Y];
|
|
10256
|
-
it.x = E[0] * ($() + 0.5) >> 1, it.y = E[1] * ($() + 0.5) >> 1, d(F, it, ot, Y), it.hasText && X(Z, it, rt) && (K.push(it), L.call("word",
|
|
10269
|
+
it.x = E[0] * ($() + 0.5) >> 1, it.y = E[1] * ($() + 0.5) >> 1, d(F, it, ot, Y), it.hasText && X(Z, it, rt) && (K.push(it), L.call("word", k, it), rt ? p(rt, it) : rt = [{ x: it.x + it.x0, y: it.y + it.y0 }, { x: it.x + it.x1, y: it.y + it.y1 }], it.x -= E[0] >> 1, it.y -= E[1] >> 1);
|
|
10257
10270
|
}
|
|
10258
|
-
Y >= j && (
|
|
10271
|
+
Y >= j && (k.stop(), L.call("end", k, K, rt));
|
|
10259
10272
|
}
|
|
10260
|
-
},
|
|
10273
|
+
}, k.stop = function() {
|
|
10261
10274
|
P && (clearInterval(P), P = null);
|
|
10262
10275
|
for (const F of N)
|
|
10263
10276
|
delete F.sprite;
|
|
10264
|
-
return
|
|
10277
|
+
return k;
|
|
10265
10278
|
};
|
|
10266
10279
|
function q(F) {
|
|
10267
10280
|
const Z = F.getContext("2d", { willReadFrequently: !0 });
|
|
@@ -10283,34 +10296,34 @@ function Jg() {
|
|
|
10283
10296
|
}
|
|
10284
10297
|
return !1;
|
|
10285
10298
|
}
|
|
10286
|
-
return
|
|
10287
|
-
return arguments.length ? (M = F ?? 1 / 0,
|
|
10288
|
-
},
|
|
10289
|
-
return arguments.length ? (N = F,
|
|
10290
|
-
},
|
|
10291
|
-
return arguments.length ? (E = [+F[0], +F[1]],
|
|
10292
|
-
},
|
|
10293
|
-
return arguments.length ? (T = y(F),
|
|
10294
|
-
},
|
|
10295
|
-
return arguments.length ? (_ = y(F),
|
|
10296
|
-
},
|
|
10297
|
-
return arguments.length ? (
|
|
10298
|
-
},
|
|
10299
|
-
return arguments.length ? (R = y(F),
|
|
10300
|
-
},
|
|
10301
|
-
return arguments.length ? (x = y(F),
|
|
10302
|
-
},
|
|
10303
|
-
return arguments.length ? (H = e[F] || F,
|
|
10304
|
-
},
|
|
10305
|
-
return arguments.length ? (
|
|
10306
|
-
},
|
|
10307
|
-
return arguments.length ? (A = y(F),
|
|
10308
|
-
},
|
|
10309
|
-
return arguments.length ? ($ = F,
|
|
10310
|
-
},
|
|
10299
|
+
return k.timeInterval = function(F) {
|
|
10300
|
+
return arguments.length ? (M = F ?? 1 / 0, k) : M;
|
|
10301
|
+
}, k.words = function(F) {
|
|
10302
|
+
return arguments.length ? (N = F, k) : N;
|
|
10303
|
+
}, k.size = function(F) {
|
|
10304
|
+
return arguments.length ? (E = [+F[0], +F[1]], k) : E;
|
|
10305
|
+
}, k.font = function(F) {
|
|
10306
|
+
return arguments.length ? (T = y(F), k) : T;
|
|
10307
|
+
}, k.fontStyle = function(F) {
|
|
10308
|
+
return arguments.length ? (_ = y(F), k) : _;
|
|
10309
|
+
}, k.fontWeight = function(F) {
|
|
10310
|
+
return arguments.length ? (V = y(F), k) : V;
|
|
10311
|
+
}, k.rotate = function(F) {
|
|
10312
|
+
return arguments.length ? (R = y(F), k) : R;
|
|
10313
|
+
}, k.text = function(F) {
|
|
10314
|
+
return arguments.length ? (x = y(F), k) : x;
|
|
10315
|
+
}, k.spiral = function(F) {
|
|
10316
|
+
return arguments.length ? (H = e[F] || F, k) : H;
|
|
10317
|
+
}, k.fontSize = function(F) {
|
|
10318
|
+
return arguments.length ? (C = y(F), k) : C;
|
|
10319
|
+
}, k.padding = function(F) {
|
|
10320
|
+
return arguments.length ? (A = y(F), k) : A;
|
|
10321
|
+
}, k.random = function(F) {
|
|
10322
|
+
return arguments.length ? ($ = F, k) : $;
|
|
10323
|
+
}, k.on = function() {
|
|
10311
10324
|
var F = L.on.apply(L, arguments);
|
|
10312
|
-
return F === L ?
|
|
10313
|
-
},
|
|
10325
|
+
return F === L ? k : F;
|
|
10326
|
+
}, k;
|
|
10314
10327
|
};
|
|
10315
10328
|
function a(E) {
|
|
10316
10329
|
return E.text;
|
|
@@ -10330,25 +10343,25 @@ function Jg() {
|
|
|
10330
10343
|
function h() {
|
|
10331
10344
|
return 1;
|
|
10332
10345
|
}
|
|
10333
|
-
function d(E, x, T,
|
|
10346
|
+
function d(E, x, T, C) {
|
|
10334
10347
|
if (!x.sprite) {
|
|
10335
|
-
var _ = E.context,
|
|
10336
|
-
_.clearRect(0, 0, (n << 5) /
|
|
10348
|
+
var _ = E.context, V = E.ratio;
|
|
10349
|
+
_.clearRect(0, 0, (n << 5) / V, s / V);
|
|
10337
10350
|
var R = 0, A = 0, H = 0, N = T.length;
|
|
10338
|
-
for (--
|
|
10339
|
-
x = T[
|
|
10351
|
+
for (--C; ++C < N; ) {
|
|
10352
|
+
x = T[C], _.save(), _.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / V) + "px " + x.font;
|
|
10340
10353
|
const it = _.measureText(x.text), z = -Math.floor(it.width / 2);
|
|
10341
|
-
let B = (it.width + 1) *
|
|
10354
|
+
let B = (it.width + 1) * V, U = x.size << 1;
|
|
10342
10355
|
if (x.rotate) {
|
|
10343
|
-
var M = Math.sin(x.rotate * t), L = Math.cos(x.rotate * t), P = B * L, $ = B * M,
|
|
10344
|
-
B = Math.max(Math.abs(P +
|
|
10356
|
+
var M = Math.sin(x.rotate * t), L = Math.cos(x.rotate * t), P = B * L, $ = B * M, k = U * L, G = U * M;
|
|
10357
|
+
B = Math.max(Math.abs(P + G), Math.abs(P - G)) + 31 >> 5 << 5, U = ~~Math.max(Math.abs($ + k), Math.abs($ - k));
|
|
10345
10358
|
} else
|
|
10346
10359
|
B = B + 31 >> 5 << 5;
|
|
10347
10360
|
if (U > H && (H = U), R + B >= n << 5 && (R = 0, A += H, H = 0), A + U >= s) break;
|
|
10348
|
-
_.translate((R + (B >> 1)) /
|
|
10361
|
+
_.translate((R + (B >> 1)) / V, (A + (U >> 1)) / V), x.rotate && _.rotate(x.rotate * t), _.fillText(x.text, z, 0), x.padding && (_.lineWidth = 2 * x.padding, _.strokeText(x.text, z, 0)), _.restore(), x.width = B, x.height = U, x.xoff = R, x.yoff = A, x.x1 = B >> 1, x.y1 = U >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += B;
|
|
10349
10362
|
}
|
|
10350
|
-
for (var q = _.getImageData(0, 0, (n << 5) /
|
|
10351
|
-
if (x = T[
|
|
10363
|
+
for (var q = _.getImageData(0, 0, (n << 5) / V, s / V).data, X = []; --C >= 0; )
|
|
10364
|
+
if (x = T[C], !!x.hasText) {
|
|
10352
10365
|
for (var F = x.width, Z = F >> 5, rt = x.y1 - x.y0, j = 0; j < rt * Z; j++) X[j] = 0;
|
|
10353
10366
|
if (R = x.xoff, R == null) return;
|
|
10354
10367
|
A = x.yoff;
|
|
@@ -10365,17 +10378,17 @@ function Jg() {
|
|
|
10365
10378
|
}
|
|
10366
10379
|
function u(E, x, T) {
|
|
10367
10380
|
T >>= 5;
|
|
10368
|
-
for (var
|
|
10381
|
+
for (var C = E.sprite, _ = E.width >> 5, V = E.x - (_ << 4), R = V & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) * T + (V >> 5), M, L = 0; L < H; L++) {
|
|
10369
10382
|
M = 0;
|
|
10370
10383
|
for (var P = 0; P <= _; P++)
|
|
10371
|
-
if ((M << A | (P < _ ? (M =
|
|
10384
|
+
if ((M << A | (P < _ ? (M = C[L * _ + P]) >>> R : 0)) & x[N + P]) return !0;
|
|
10372
10385
|
N += T;
|
|
10373
10386
|
}
|
|
10374
10387
|
return !1;
|
|
10375
10388
|
}
|
|
10376
10389
|
function p(E, x) {
|
|
10377
|
-
var T = E[0],
|
|
10378
|
-
x.x + x.x0 < T.x && (T.x = x.x + x.x0), x.y + x.y0 < T.y && (T.y = x.y + x.y0), x.x + x.x1 >
|
|
10390
|
+
var T = E[0], C = E[1];
|
|
10391
|
+
x.x + x.x0 < T.x && (T.x = x.x + x.x0), x.y + x.y0 < T.y && (T.y = x.y + x.y0), x.x + x.x1 > C.x && (C.x = x.x + x.x1), x.y + x.y1 > C.y && (C.y = x.y + x.y1);
|
|
10379
10392
|
}
|
|
10380
10393
|
function f(E, x) {
|
|
10381
10394
|
return E.x + E.x1 > x[0].x && E.x + E.x0 < x[1].x && E.y + E.y1 > x[0].y && E.y + E.y0 < x[1].y;
|
|
@@ -10387,24 +10400,24 @@ function Jg() {
|
|
|
10387
10400
|
};
|
|
10388
10401
|
}
|
|
10389
10402
|
function g(E) {
|
|
10390
|
-
var x = 4, T = x * E[0] / E[1],
|
|
10391
|
-
return function(
|
|
10392
|
-
var R =
|
|
10393
|
-
switch (Math.sqrt(1 + 4 * R *
|
|
10403
|
+
var x = 4, T = x * E[0] / E[1], C = 0, _ = 0;
|
|
10404
|
+
return function(V) {
|
|
10405
|
+
var R = V < 0 ? -1 : 1;
|
|
10406
|
+
switch (Math.sqrt(1 + 4 * R * V) - R & 3) {
|
|
10394
10407
|
case 0:
|
|
10395
|
-
|
|
10408
|
+
C += T;
|
|
10396
10409
|
break;
|
|
10397
10410
|
case 1:
|
|
10398
10411
|
_ += x;
|
|
10399
10412
|
break;
|
|
10400
10413
|
case 2:
|
|
10401
|
-
|
|
10414
|
+
C -= T;
|
|
10402
10415
|
break;
|
|
10403
10416
|
default:
|
|
10404
10417
|
_ -= x;
|
|
10405
10418
|
break;
|
|
10406
10419
|
}
|
|
10407
|
-
return [
|
|
10420
|
+
return [C, _];
|
|
10408
10421
|
};
|
|
10409
10422
|
}
|
|
10410
10423
|
function v(E) {
|
|
@@ -10419,7 +10432,7 @@ function Jg() {
|
|
|
10419
10432
|
return E;
|
|
10420
10433
|
};
|
|
10421
10434
|
}
|
|
10422
|
-
return
|
|
10435
|
+
return hi;
|
|
10423
10436
|
}
|
|
10424
10437
|
var Qg = Jg();
|
|
10425
10438
|
const tm = /* @__PURE__ */ Wg(Qg);
|
|
@@ -10494,11 +10507,11 @@ class Qm extends dt {
|
|
|
10494
10507
|
this.addEventListeners();
|
|
10495
10508
|
}
|
|
10496
10509
|
getFontSizeScale(t) {
|
|
10497
|
-
const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, s = t.map((c) => c[n]).filter((c) => c), a = I.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = s.length > 0, o = r ?
|
|
10510
|
+
const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, s = t.map((c) => c[n]).filter((c) => c), a = I.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = s.length > 0, o = r ? Ls(s) : [1, 1];
|
|
10498
10511
|
return Re().domain(o).range(r ? e.wordCloud.fontSizeRange(a, t) : [4, 4]);
|
|
10499
10512
|
}
|
|
10500
10513
|
addEventListeners() {
|
|
10501
|
-
const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, s =
|
|
10514
|
+
const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, s = gi((a) => {
|
|
10502
10515
|
const r = n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
|
|
10503
10516
|
(o) => n.services.transitions.setupTransition({
|
|
10504
10517
|
transition: o,
|
|
@@ -10662,7 +10675,7 @@ class tv extends em {
|
|
|
10662
10675
|
event: n,
|
|
10663
10676
|
element: a,
|
|
10664
10677
|
datum: e[s.properties.NAME]
|
|
10665
|
-
}), t.services.events.dispatchEvent(
|
|
10678
|
+
}), t.services.events.dispatchEvent(Us.SHOW, {
|
|
10666
10679
|
event: n,
|
|
10667
10680
|
hoveredElement: a,
|
|
10668
10681
|
items: [
|
|
@@ -10677,7 +10690,7 @@ class tv extends em {
|
|
|
10677
10690
|
event: n,
|
|
10678
10691
|
element: D(this),
|
|
10679
10692
|
datum: e[s.properties.NAME]
|
|
10680
|
-
}), t.services.events.dispatchEvent(
|
|
10693
|
+
}), t.services.events.dispatchEvent(Us.MOVE, {
|
|
10681
10694
|
event: n
|
|
10682
10695
|
});
|
|
10683
10696
|
}).on("click", function(n, s) {
|
|
@@ -10692,7 +10705,7 @@ class tv extends em {
|
|
|
10692
10705
|
event: n,
|
|
10693
10706
|
element: a,
|
|
10694
10707
|
datum: e[s.properties.NAME]
|
|
10695
|
-
}), t.services.events.dispatchEvent(
|
|
10708
|
+
}), t.services.events.dispatchEvent(Us.HIDE, {
|
|
10696
10709
|
event: n,
|
|
10697
10710
|
hoveredElement: a
|
|
10698
10711
|
});
|
|
@@ -10765,4 +10778,4 @@ export {
|
|
|
10765
10778
|
jm as y,
|
|
10766
10779
|
Gm as z
|
|
10767
10780
|
};
|
|
10768
|
-
//# sourceMappingURL=choropleth-
|
|
10781
|
+
//# sourceMappingURL=choropleth-CRH6Tnw6.mjs.map
|