katucharts.js 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interaction/Zoom.d.ts +14 -0
- package/dist/katucharts.es.js +336 -311
- package/dist/katucharts.umd.js +5 -5
- package/dist/react/KatuChartsReact.d.ts +5 -4
- package/package.json +1 -1
package/dist/katucharts.es.js
CHANGED
|
@@ -9,9 +9,9 @@ function rf(n, t) {
|
|
|
9
9
|
for (var i in t) e[i] = t[i];
|
|
10
10
|
return e;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Xr() {
|
|
13
13
|
}
|
|
14
|
-
var
|
|
14
|
+
var zr = 0.7, Io = 1 / zr, zi = "\\s*([+-]?\\d+)\\s*", Br = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Rp = /^#([0-9a-f]{3,8})$/, Dp = new RegExp(`^rgb\\(${zi},${zi},${zi}\\)$`), zp = new RegExp(`^rgb\\(${Mn},${Mn},${Mn}\\)$`), Bp = new RegExp(`^rgba\\(${zi},${zi},${zi},${Br}\\)$`), Op = new RegExp(`^rgba\\(${Mn},${Mn},${Mn},${Br}\\)$`), Np = new RegExp(`^hsl\\(${Br},${Mn},${Mn}\\)$`), Wp = new RegExp(`^hsla\\(${Br},${Mn},${Mn},${Br}\\)$`), kl = {
|
|
15
15
|
aliceblue: 15792383,
|
|
16
16
|
antiquewhite: 16444375,
|
|
17
17
|
aqua: 65535,
|
|
@@ -161,7 +161,7 @@ var Dr = 0.7, Lo = 1 / Dr, zi = "\\s*([+-]?\\d+)\\s*", zr = "\\s*([+-]?(?:\\d*\\
|
|
|
161
161
|
yellow: 16776960,
|
|
162
162
|
yellowgreen: 10145074
|
|
163
163
|
};
|
|
164
|
-
bc(
|
|
164
|
+
bc(Xr, ae, {
|
|
165
165
|
copy(n) {
|
|
166
166
|
return Object.assign(new this.constructor(), this, n);
|
|
167
167
|
},
|
|
@@ -190,16 +190,16 @@ function Al() {
|
|
|
190
190
|
}
|
|
191
191
|
function ae(n) {
|
|
192
192
|
var t, e;
|
|
193
|
-
return n = (n + "").trim().toLowerCase(), (t = Rp.exec(n)) ? (e = t[1].length, t = parseInt(t[1], 16), e === 6 ? Sl(t) : e === 3 ? new We(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : e === 8 ?
|
|
193
|
+
return n = (n + "").trim().toLowerCase(), (t = Rp.exec(n)) ? (e = t[1].length, t = parseInt(t[1], 16), e === 6 ? Sl(t) : e === 3 ? new We(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : e === 8 ? Jr(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : e === 4 ? Jr(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Dp.exec(n)) ? new We(t[1], t[2], t[3], 1) : (t = zp.exec(n)) ? new We(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Bp.exec(n)) ? Jr(t[1], t[2], t[3], t[4]) : (t = Op.exec(n)) ? Jr(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Np.exec(n)) ? Pl(t[1], t[2] / 100, t[3] / 100, 1) : (t = Wp.exec(n)) ? Pl(t[1], t[2] / 100, t[3] / 100, t[4]) : kl.hasOwnProperty(n) ? Sl(kl[n]) : n === "transparent" ? new We(NaN, NaN, NaN, 0) : null;
|
|
194
194
|
}
|
|
195
195
|
function Sl(n) {
|
|
196
196
|
return new We(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Jr(n, t, e, i) {
|
|
199
199
|
return i <= 0 && (n = t = e = NaN), new We(n, t, e, i);
|
|
200
200
|
}
|
|
201
201
|
function Gp(n) {
|
|
202
|
-
return n instanceof
|
|
202
|
+
return n instanceof Xr || (n = ae(n)), n ? (n = n.rgb(), new We(n.r, n.g, n.b, n.opacity)) : new We();
|
|
203
203
|
}
|
|
204
204
|
function Xe(n, t, e, i) {
|
|
205
205
|
return arguments.length === 1 ? Gp(n) : new We(n, t, e, i ?? 1);
|
|
@@ -207,18 +207,18 @@ function Xe(n, t, e, i) {
|
|
|
207
207
|
function We(n, t, e, i) {
|
|
208
208
|
this.r = +n, this.g = +t, this.b = +e, this.opacity = +i;
|
|
209
209
|
}
|
|
210
|
-
bc(We, Xe, rf(
|
|
210
|
+
bc(We, Xe, rf(Xr, {
|
|
211
211
|
brighter(n) {
|
|
212
|
-
return n = n == null ?
|
|
212
|
+
return n = n == null ? Io : Math.pow(Io, n), new We(this.r * n, this.g * n, this.b * n, this.opacity);
|
|
213
213
|
},
|
|
214
214
|
darker(n) {
|
|
215
|
-
return n = n == null ?
|
|
215
|
+
return n = n == null ? zr : Math.pow(zr, n), new We(this.r * n, this.g * n, this.b * n, this.opacity);
|
|
216
216
|
},
|
|
217
217
|
rgb() {
|
|
218
218
|
return this;
|
|
219
219
|
},
|
|
220
220
|
clamp() {
|
|
221
|
-
return new We(di(this.r), di(this.g), di(this.b),
|
|
221
|
+
return new We(di(this.r), di(this.g), di(this.b), Fo(this.opacity));
|
|
222
222
|
},
|
|
223
223
|
displayable() {
|
|
224
224
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -237,10 +237,10 @@ function Yp() {
|
|
|
237
237
|
return `#${ai(this.r)}${ai(this.g)}${ai(this.b)}${ai((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
238
238
|
}
|
|
239
239
|
function Cl() {
|
|
240
|
-
const n =
|
|
240
|
+
const n = Fo(this.opacity);
|
|
241
241
|
return `${n === 1 ? "rgb(" : "rgba("}${di(this.r)}, ${di(this.g)}, ${di(this.b)}${n === 1 ? ")" : `, ${n})`}`;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Fo(n) {
|
|
244
244
|
return isNaN(n) ? 1 : Math.max(0, Math.min(1, n));
|
|
245
245
|
}
|
|
246
246
|
function di(n) {
|
|
@@ -254,7 +254,7 @@ function Pl(n, t, e, i) {
|
|
|
254
254
|
}
|
|
255
255
|
function of(n) {
|
|
256
256
|
if (n instanceof pn) return new pn(n.h, n.s, n.l, n.opacity);
|
|
257
|
-
if (n instanceof
|
|
257
|
+
if (n instanceof Xr || (n = ae(n)), !n) return new pn();
|
|
258
258
|
if (n instanceof pn) return n;
|
|
259
259
|
n = n.rgb();
|
|
260
260
|
var t = n.r / 255, e = n.g / 255, i = n.b / 255, r = Math.min(t, e, i), o = Math.max(t, e, i), s = NaN, a = o - r, l = (o + r) / 2;
|
|
@@ -266,12 +266,12 @@ function pi(n, t, e, i) {
|
|
|
266
266
|
function pn(n, t, e, i) {
|
|
267
267
|
this.h = +n, this.s = +t, this.l = +e, this.opacity = +i;
|
|
268
268
|
}
|
|
269
|
-
bc(pn, pi, rf(
|
|
269
|
+
bc(pn, pi, rf(Xr, {
|
|
270
270
|
brighter(n) {
|
|
271
|
-
return n = n == null ?
|
|
271
|
+
return n = n == null ? Io : Math.pow(Io, n), new pn(this.h, this.s, this.l * n, this.opacity);
|
|
272
272
|
},
|
|
273
273
|
darker(n) {
|
|
274
|
-
return n = n == null ?
|
|
274
|
+
return n = n == null ? zr : Math.pow(zr, n), new pn(this.h, this.s, this.l * n, this.opacity);
|
|
275
275
|
},
|
|
276
276
|
rgb() {
|
|
277
277
|
var n = this.h % 360 + (this.h < 0) * 360, t = isNaN(n) || isNaN(this.s) ? 0 : this.s, e = this.l, i = e + (e < 0.5 ? e : 1 - e) * t, r = 2 * e - i;
|
|
@@ -283,28 +283,28 @@ bc(pn, pi, rf(Yr, {
|
|
|
283
283
|
);
|
|
284
284
|
},
|
|
285
285
|
clamp() {
|
|
286
|
-
return new pn(El(this.h),
|
|
286
|
+
return new pn(El(this.h), Qr(this.s), Qr(this.l), Fo(this.opacity));
|
|
287
287
|
},
|
|
288
288
|
displayable() {
|
|
289
289
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
290
290
|
},
|
|
291
291
|
formatHsl() {
|
|
292
|
-
const n =
|
|
293
|
-
return `${n === 1 ? "hsl(" : "hsla("}${El(this.h)}, ${
|
|
292
|
+
const n = Fo(this.opacity);
|
|
293
|
+
return `${n === 1 ? "hsl(" : "hsla("}${El(this.h)}, ${Qr(this.s) * 100}%, ${Qr(this.l) * 100}%${n === 1 ? ")" : `, ${n})`}`;
|
|
294
294
|
}
|
|
295
295
|
}));
|
|
296
296
|
function El(n) {
|
|
297
297
|
return n = (n || 0) % 360, n < 0 ? n + 360 : n;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Qr(n) {
|
|
300
300
|
return Math.max(0, Math.min(1, n || 0));
|
|
301
301
|
}
|
|
302
302
|
function Ls(n, t, e) {
|
|
303
303
|
return (n < 60 ? t + (e - t) * n / 60 : n < 180 ? e : n < 240 ? t + (e - t) * (240 - n) / 60 : t) * 255;
|
|
304
304
|
}
|
|
305
|
-
const
|
|
305
|
+
const to = /* @__PURE__ */ new Map(), Xp = 256;
|
|
306
306
|
function va(n) {
|
|
307
|
-
const t = n || "rgba(0,0,0,0)", e =
|
|
307
|
+
const t = n || "rgba(0,0,0,0)", e = to.get(t);
|
|
308
308
|
if (e) return e;
|
|
309
309
|
const i = "rgba(0,0,0,0)", r = ae(n || i), o = Xe(r || i), s = {
|
|
310
310
|
r: Math.round(o.r),
|
|
@@ -327,9 +327,9 @@ function va(n) {
|
|
|
327
327
|
return this.a < 1 ? `rgba(${this.r},${this.g},${this.b},${this.a})` : Xe(this.r, this.g, this.b).formatHex();
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
return
|
|
330
|
+
return to.size >= Xp && to.clear(), to.set(t, s), s;
|
|
331
331
|
}
|
|
332
|
-
const
|
|
332
|
+
const Ro = {
|
|
333
333
|
default: ["#4e79a7", "#f28e2b", "#e15759", "#76b7b2", "#59a14f", "#edc948", "#b07aa1", "#ff9da7", "#9c755f", "#bab0ac"],
|
|
334
334
|
tableau10: ["#4e79a7", "#f28e2b", "#e15759", "#76b7b2", "#59a14f", "#edc948", "#b07aa1", "#ff9da7", "#9c755f", "#bab0ac"],
|
|
335
335
|
d3classic: ["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", "#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf"],
|
|
@@ -352,9 +352,9 @@ const Fo = {
|
|
|
352
352
|
monochrome: ["#1f2933", "#3e4c59", "#52606d", "#7b8794", "#9aa5b1", "#616e7c", "#cbd2d9", "#323f4b", "#7b8794", "#b8c0c9"]
|
|
353
353
|
};
|
|
354
354
|
function sf(n) {
|
|
355
|
-
return
|
|
355
|
+
return Ro[n] || Ro.default;
|
|
356
356
|
}
|
|
357
|
-
const Up =
|
|
357
|
+
const Up = Ro.default, qp = {
|
|
358
358
|
textStrong: "#1f2933",
|
|
359
359
|
textSoft: "#52606d",
|
|
360
360
|
axis: "#6b7280",
|
|
@@ -446,14 +446,14 @@ const Is = {
|
|
|
446
446
|
monochrome: { light: "#ffffff", dark: "#1a1f24" },
|
|
447
447
|
nordic: { light: "#eceff4", dark: "#2e3440" },
|
|
448
448
|
pastel: { light: "#ffffff", dark: "#232026" }
|
|
449
|
-
},
|
|
449
|
+
}, Do = (() => {
|
|
450
450
|
const n = {};
|
|
451
451
|
for (const t of Object.keys(Is))
|
|
452
452
|
n[t] = Tl(Is[t].light, $l[t].light, qp), n[`${t}-dark`] = Tl(Is[t].dark, $l[t].dark, jp);
|
|
453
453
|
return n.light = n.monochrome, n.dark = n["monochrome-dark"], n;
|
|
454
|
-
})(), Zp = Object.keys(
|
|
454
|
+
})(), Zp = Object.keys(Do);
|
|
455
455
|
function af(n) {
|
|
456
|
-
return
|
|
456
|
+
return Do[n];
|
|
457
457
|
}
|
|
458
458
|
const Mt = "12px", Ee = "#000000", Ll = "#1a1a1a", Kp = "#ffffff", Jp = 3;
|
|
459
459
|
function Fs(n) {
|
|
@@ -497,9 +497,9 @@ function Ae(n) {
|
|
|
497
497
|
const e = parseFloat(t);
|
|
498
498
|
return isNaN(e) ? 12 : e;
|
|
499
499
|
}
|
|
500
|
-
let
|
|
500
|
+
let eo = null;
|
|
501
501
|
function tg() {
|
|
502
|
-
return
|
|
502
|
+
return eo || (typeof document > "u" ? null : (eo = document.createElement("canvas").getContext("2d"), eo));
|
|
503
503
|
}
|
|
504
504
|
function tn(n, t, e = "normal", i = "sans-serif") {
|
|
505
505
|
const r = tg();
|
|
@@ -898,7 +898,7 @@ function uf(n, t, e) {
|
|
|
898
898
|
}
|
|
899
899
|
return i;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function no(n) {
|
|
902
902
|
return wa(n, /* @__PURE__ */ new WeakSet(), 0);
|
|
903
903
|
}
|
|
904
904
|
function wa(n, t, e) {
|
|
@@ -1102,9 +1102,9 @@ const be = /* @__PURE__ */ Uint32Array.from([
|
|
|
1102
1102
|
4215389547,
|
|
1103
1103
|
1541459225,
|
|
1104
1104
|
327033209
|
|
1105
|
-
]),
|
|
1105
|
+
]), io = /* @__PURE__ */ BigInt(2 ** 32 - 1), Bl = /* @__PURE__ */ BigInt(32);
|
|
1106
1106
|
function dg(n, t = !1) {
|
|
1107
|
-
return t ? { h: Number(n &
|
|
1107
|
+
return t ? { h: Number(n & io), l: Number(n >> Bl & io) } : { h: Number(n >> Bl & io) | 0, l: Number(n & io) | 0 };
|
|
1108
1108
|
}
|
|
1109
1109
|
function pg(n, t = !1) {
|
|
1110
1110
|
const e = n.length;
|
|
@@ -1115,7 +1115,7 @@ function pg(n, t = !1) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
return [i, r];
|
|
1117
1117
|
}
|
|
1118
|
-
const Ol = (n, t, e) => n >>> e, Nl = (n, t, e) => n << 32 - e | t >>> e, _i = (n, t, e) => n >>> e | t << 32 - e, Ci = (n, t, e) => n << 32 - e | t >>> e,
|
|
1118
|
+
const Ol = (n, t, e) => n >>> e, Nl = (n, t, e) => n << 32 - e | t >>> e, _i = (n, t, e) => n >>> e | t << 32 - e, Ci = (n, t, e) => n << 32 - e | t >>> e, ro = (n, t, e) => n << 64 - e | t >>> e - 32, oo = (n, t, e) => n >>> e - 32 | t << 64 - e;
|
|
1119
1119
|
function En(n, t, e, i) {
|
|
1120
1120
|
const r = (t >>> 0) + (i >>> 0);
|
|
1121
1121
|
return { h: n + e + (r / 2 ** 32 | 0) | 0, l: r | 0 };
|
|
@@ -1219,12 +1219,12 @@ class Mg extends fg {
|
|
|
1219
1219
|
for (let v = 0; v < 16; v++, e += 4)
|
|
1220
1220
|
Xn[v] = t.getUint32(e), Un[v] = t.getUint32(e += 4);
|
|
1221
1221
|
for (let v = 16; v < 80; v++) {
|
|
1222
|
-
const b = Xn[v - 15] | 0, k = Un[v - 15] | 0, M = _i(b, k, 1) ^ _i(b, k, 8) ^ Ol(b, k, 7), C = Ci(b, k, 1) ^ Ci(b, k, 8) ^ Nl(b, k, 7), L = Xn[v - 2] | 0, _ = Un[v - 2] | 0, T = _i(L, _, 19) ^
|
|
1222
|
+
const b = Xn[v - 15] | 0, k = Un[v - 15] | 0, M = _i(b, k, 1) ^ _i(b, k, 8) ^ Ol(b, k, 7), C = Ci(b, k, 1) ^ Ci(b, k, 8) ^ Nl(b, k, 7), L = Xn[v - 2] | 0, _ = Un[v - 2] | 0, T = _i(L, _, 19) ^ ro(L, _, 61) ^ Ol(L, _, 6), I = Ci(L, _, 19) ^ oo(L, _, 61) ^ Nl(L, _, 6), E = yg(C, I, Un[v - 7], Un[v - 16]), P = xg(E, M, T, Xn[v - 7], Xn[v - 16]);
|
|
1223
1223
|
Xn[v] = P | 0, Un[v] = E | 0;
|
|
1224
1224
|
}
|
|
1225
1225
|
let { Ah: i, Al: r, Bh: o, Bl: s, Ch: a, Cl: l, Dh: c, Dl: h, Eh: f, El: u, Fh: d, Fl: p, Gh: y, Gl: g, Hh: m, Hl: x } = this;
|
|
1226
1226
|
for (let v = 0; v < 80; v++) {
|
|
1227
|
-
const b = _i(f, u, 14) ^ _i(f, u, 18) ^
|
|
1227
|
+
const b = _i(f, u, 14) ^ _i(f, u, 18) ^ ro(f, u, 41), k = Ci(f, u, 14) ^ Ci(f, u, 18) ^ oo(f, u, 41), M = f & d ^ ~f & y, C = u & p ^ ~u & g, L = bg(x, k, C, kg[v], Un[v]), _ = vg(L, m, b, M, wg[v], Xn[v]), T = L | 0, I = _i(i, r, 28) ^ ro(i, r, 34) ^ ro(i, r, 39), E = Ci(i, r, 28) ^ oo(i, r, 34) ^ oo(i, r, 39), P = i & o ^ i & a ^ o & a, S = r & s ^ r & l ^ s & l;
|
|
1228
1228
|
m = y | 0, x = g | 0, y = d | 0, g = p | 0, d = f | 0, p = u | 0, { h: f, l: u } = En(c | 0, h | 0, _ | 0, T | 0), c = a | 0, h = l | 0, a = o | 0, l = s | 0, o = i | 0, s = r | 0;
|
|
1229
1229
|
const w = gg(T, E, S);
|
|
1230
1230
|
i = mg(w, _, I, P), r = w | 0;
|
|
@@ -1264,8 +1264,8 @@ const Sg = /* @__PURE__ */ lg(
|
|
|
1264
1264
|
/* @__PURE__ */ ug(3)
|
|
1265
1265
|
);
|
|
1266
1266
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
1267
|
-
const Le = (n, t, e) => wi(n, t, e), gf = vc, mf = wc, Wl = (...n) => cg(...n), _g = (n) => kc(n), Cg = ff, Pg = (n) => hg(n),
|
|
1268
|
-
function
|
|
1267
|
+
const Le = (n, t, e) => wi(n, t, e), gf = vc, mf = wc, Wl = (...n) => cg(...n), _g = (n) => kc(n), Cg = ff, Pg = (n) => hg(n), zo = /* @__PURE__ */ BigInt(0), Ma = /* @__PURE__ */ BigInt(1);
|
|
1268
|
+
function Bo(n, t = "") {
|
|
1269
1269
|
if (typeof n != "boolean") {
|
|
1270
1270
|
const e = t && `"${t}" `;
|
|
1271
1271
|
throw new TypeError(e + "expected boolean, got type=" + typeof n);
|
|
@@ -1274,7 +1274,7 @@ function zo(n, t = "") {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
function Eg(n) {
|
|
1276
1276
|
if (typeof n == "bigint") {
|
|
1277
|
-
if (!
|
|
1277
|
+
if (!vo(n))
|
|
1278
1278
|
throw new RangeError("positive bigint expected, got " + n);
|
|
1279
1279
|
} else
|
|
1280
1280
|
gf(n);
|
|
@@ -1293,12 +1293,12 @@ function Aa(n, t = "") {
|
|
|
1293
1293
|
function yf(n) {
|
|
1294
1294
|
if (typeof n != "string")
|
|
1295
1295
|
throw new TypeError("hex string expected, got " + typeof n);
|
|
1296
|
-
return n === "" ?
|
|
1296
|
+
return n === "" ? zo : BigInt("0x" + n);
|
|
1297
1297
|
}
|
|
1298
1298
|
function Tg(n) {
|
|
1299
1299
|
return yf(wc(n));
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Or(n) {
|
|
1302
1302
|
return yf(wc(Sa(wi(n)).reverse()));
|
|
1303
1303
|
}
|
|
1304
1304
|
function xf(n, t) {
|
|
@@ -1324,19 +1324,19 @@ function Lg(n, t) {
|
|
|
1324
1324
|
function Sa(n) {
|
|
1325
1325
|
return Uint8Array.from(Le(n));
|
|
1326
1326
|
}
|
|
1327
|
-
const
|
|
1327
|
+
const vo = (n) => typeof n == "bigint" && zo <= n;
|
|
1328
1328
|
function Ig(n, t, e) {
|
|
1329
|
-
return
|
|
1329
|
+
return vo(n) && vo(t) && vo(e) && t <= n && n < e;
|
|
1330
1330
|
}
|
|
1331
1331
|
function Hl(n, t, e, i) {
|
|
1332
1332
|
if (!Ig(t, e, i))
|
|
1333
1333
|
throw new RangeError("expected valid " + n + ": " + e + " <= n < " + i + ", got " + t);
|
|
1334
1334
|
}
|
|
1335
1335
|
function Fg(n) {
|
|
1336
|
-
if (n <
|
|
1336
|
+
if (n < zo)
|
|
1337
1337
|
throw new Error("expected non-negative bigint, got " + n);
|
|
1338
1338
|
let t;
|
|
1339
|
-
for (t = 0; n >
|
|
1339
|
+
for (t = 0; n > zo; n >>= Ma, t += 1)
|
|
1340
1340
|
;
|
|
1341
1341
|
return t;
|
|
1342
1342
|
}
|
|
@@ -1613,7 +1613,7 @@ class Cf {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
if (t.length !== r)
|
|
1615
1615
|
throw new Error("Field.fromBytes: expected " + r + " bytes, got " + t.length);
|
|
1616
|
-
let l = o ?
|
|
1616
|
+
let l = o ? Or(t) : Tg(t);
|
|
1617
1617
|
if (a && (l = oe(l, s)), !e && !this.isValid(l))
|
|
1618
1618
|
throw new Error("invalid field element: outside of range 0..ORDER");
|
|
1619
1619
|
return l;
|
|
@@ -1625,7 +1625,7 @@ class Cf {
|
|
|
1625
1625
|
// We can't move this out because Fp6, Fp12 implement it
|
|
1626
1626
|
// and it's unclear what to return in there.
|
|
1627
1627
|
cmov(t, e, i) {
|
|
1628
|
-
return
|
|
1628
|
+
return Bo(i, "condition"), i ? e : t;
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
1631
|
Object.freeze(Cf.prototype);
|
|
@@ -1633,7 +1633,7 @@ function Sc(n, t = {}) {
|
|
|
1633
1633
|
return new Cf(n, t);
|
|
1634
1634
|
}
|
|
1635
1635
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
1636
|
-
const
|
|
1636
|
+
const Oo = /* @__PURE__ */ BigInt(0), _a = /* @__PURE__ */ BigInt(1);
|
|
1637
1637
|
function Ul(n, t) {
|
|
1638
1638
|
const e = t.negate();
|
|
1639
1639
|
return n ? e : t;
|
|
@@ -1663,7 +1663,7 @@ function Ns(n) {
|
|
|
1663
1663
|
return Ef.get(n) || 1;
|
|
1664
1664
|
}
|
|
1665
1665
|
function jl(n) {
|
|
1666
|
-
if (n !==
|
|
1666
|
+
if (n !== Oo)
|
|
1667
1667
|
throw new Error("invalid wNAF");
|
|
1668
1668
|
}
|
|
1669
1669
|
class Yg {
|
|
@@ -1678,7 +1678,7 @@ class Yg {
|
|
|
1678
1678
|
// non-const time multiplication ladder
|
|
1679
1679
|
_unsafeLadder(t, e, i = this.ZERO) {
|
|
1680
1680
|
let r = t;
|
|
1681
|
-
for (; e >
|
|
1681
|
+
for (; e > Oo; )
|
|
1682
1682
|
e & _a && (i = i.add(r)), r = r.double(), e >>= _a;
|
|
1683
1683
|
return i;
|
|
1684
1684
|
}
|
|
@@ -1730,7 +1730,7 @@ class Yg {
|
|
|
1730
1730
|
*/
|
|
1731
1731
|
wNAFUnsafe(t, e, i, r = this.ZERO) {
|
|
1732
1732
|
const o = Bs(t, this.bits);
|
|
1733
|
-
for (let s = 0; s < o.windows && i !==
|
|
1733
|
+
for (let s = 0; s < o.windows && i !== Oo; s++) {
|
|
1734
1734
|
const { nextN: a, offset: l, isZero: c, isNeg: h } = ql(i, s, o);
|
|
1735
1735
|
if (i = a, !c) {
|
|
1736
1736
|
const f = e[l];
|
|
@@ -1774,7 +1774,7 @@ function Xg(n, t, e = {}, i) {
|
|
|
1774
1774
|
throw new Error(`expected valid ${n} CURVE object`);
|
|
1775
1775
|
for (const l of ["p", "n", "h"]) {
|
|
1776
1776
|
const c = t[l];
|
|
1777
|
-
if (!(typeof c == "bigint" && c >
|
|
1777
|
+
if (!(typeof c == "bigint" && c > Oo))
|
|
1778
1778
|
throw new Error(`CURVE.${l} must be positive bigint`);
|
|
1779
1779
|
}
|
|
1780
1780
|
const r = Zl(t.p, e.Fp, i), o = Zl(t.n, e.Fn, i), a = ["Gx", "Gy", "a", "d"];
|
|
@@ -1842,10 +1842,10 @@ function Zg(n, t = {}) {
|
|
|
1842
1842
|
// Uses algo from RFC8032 5.1.3.
|
|
1843
1843
|
static fromBytes(m, x = !1) {
|
|
1844
1844
|
const v = r.BYTES, { a: b, d: k } = s;
|
|
1845
|
-
m = Sa(Le(m, v, "point")),
|
|
1845
|
+
m = Sa(Le(m, v, "point")), Bo(x, "zip215");
|
|
1846
1846
|
const M = Sa(m), C = m[v - 1];
|
|
1847
1847
|
M[v - 1] = C & -129;
|
|
1848
|
-
const L =
|
|
1848
|
+
const L = Or(M), _ = x ? l : r.ORDER;
|
|
1849
1849
|
Hl("point.y", L, qn, _);
|
|
1850
1850
|
const T = c(L * L), I = c(T - ue), E = c(k * T - b);
|
|
1851
1851
|
let { isValid: P, value: S } = h(I, E);
|
|
@@ -2067,12 +2067,12 @@ function Kg(n, t, e = {}) {
|
|
|
2067
2067
|
if (c !== void 0 && (Aa(c, "hash.outputLen"), c !== h))
|
|
2068
2068
|
throw new Error(`hash.outputLen must be ${h}, got ${c}`);
|
|
2069
2069
|
const f = r.randomBytes === void 0 ? Pg : r.randomBytes, u = r.adjustScalarBytes === void 0 ? (E) => E : r.adjustScalarBytes, d = r.domain === void 0 ? (E, P, S) => {
|
|
2070
|
-
if (
|
|
2070
|
+
if (Bo(S, "phflag"), P.length || S)
|
|
2071
2071
|
throw new Error("Contexts/pre-hash are not supported");
|
|
2072
2072
|
return E;
|
|
2073
2073
|
} : r.domain;
|
|
2074
2074
|
function p(E) {
|
|
2075
|
-
return l.create(
|
|
2075
|
+
return l.create(Or(E));
|
|
2076
2076
|
}
|
|
2077
2077
|
function y(E) {
|
|
2078
2078
|
const P = C.secretKey;
|
|
@@ -2104,8 +2104,8 @@ function Kg(n, t, e = {}) {
|
|
|
2104
2104
|
};
|
|
2105
2105
|
function k(E, P, S, w = b) {
|
|
2106
2106
|
const { context: A } = w, $ = w.zip215 === void 0 ? !!b.zip215 : w.zip215, R = C.signature;
|
|
2107
|
-
E = Le(E, R, "signature"), P = Le(P, void 0, "message"), S = Le(S, C.publicKey, "publicKey"), $ !== void 0 &&
|
|
2108
|
-
const F = R / 2, D = E.subarray(0, F), z =
|
|
2107
|
+
E = Le(E, R, "signature"), P = Le(P, void 0, "message"), S = Le(S, C.publicKey, "publicKey"), $ !== void 0 && Bo($, "zip215"), o && (P = o(P));
|
|
2108
|
+
const F = R / 2, D = E.subarray(0, F), z = Or(E.subarray(F, R));
|
|
2109
2109
|
let B, H, J;
|
|
2110
2110
|
try {
|
|
2111
2111
|
B = n.fromBytes(S, $), H = n.fromBytes(D, $), J = s.multiplyUnsafe(z);
|
|
@@ -2175,8 +2175,8 @@ function Kg(n, t, e = {}) {
|
|
|
2175
2175
|
});
|
|
2176
2176
|
}
|
|
2177
2177
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
2178
|
-
const Jg = /* @__PURE__ */ BigInt(0), Pr = /* @__PURE__ */ BigInt(1), Kl = /* @__PURE__ */ BigInt(2), Qg = /* @__PURE__ */ BigInt(5), t0 = /* @__PURE__ */ BigInt(8),
|
|
2179
|
-
p:
|
|
2178
|
+
const Jg = /* @__PURE__ */ BigInt(0), Pr = /* @__PURE__ */ BigInt(1), Kl = /* @__PURE__ */ BigInt(2), Qg = /* @__PURE__ */ BigInt(5), t0 = /* @__PURE__ */ BigInt(8), Nr = /* @__PURE__ */ BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"), Tf = {
|
|
2179
|
+
p: Nr,
|
|
2180
2180
|
n: BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),
|
|
2181
2181
|
h: t0,
|
|
2182
2182
|
a: BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),
|
|
@@ -2185,7 +2185,7 @@ const Jg = /* @__PURE__ */ BigInt(0), Pr = /* @__PURE__ */ BigInt(1), Kl = /* @_
|
|
|
2185
2185
|
Gy: BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")
|
|
2186
2186
|
};
|
|
2187
2187
|
function e0(n) {
|
|
2188
|
-
const t = BigInt(10), e = BigInt(20), i = BigInt(40), r = BigInt(80), o =
|
|
2188
|
+
const t = BigInt(10), e = BigInt(20), i = BigInt(40), r = BigInt(80), o = Nr, a = n * n % o * n % o, l = bn(a, Kl, o) * a % o, c = bn(l, Pr, o) * n % o, h = bn(c, Qg, o) * c % o, f = bn(h, t, o) * h % o, u = bn(f, e, o) * f % o, d = bn(u, i, o) * u % o, p = bn(d, r, o) * d % o, y = bn(p, r, o) * d % o, g = bn(y, t, o) * h % o;
|
|
2189
2189
|
return { pow_p_5_8: bn(g, Kl, o) * n % o, b2: a };
|
|
2190
2190
|
}
|
|
2191
2191
|
function n0(n) {
|
|
@@ -2193,7 +2193,7 @@ function n0(n) {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
const Ca = /* @__PURE__ */ BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");
|
|
2195
2195
|
function $f(n, t) {
|
|
2196
|
-
const e =
|
|
2196
|
+
const e = Nr, i = oe(t * t * t, e), r = oe(i * i * t, e), o = e0(n * r).pow_p_5_8;
|
|
2197
2197
|
let s = oe(n * i * o, e);
|
|
2198
2198
|
const a = oe(t * s * s, e), l = s, c = oe(s * Ca, e), h = a === n, f = a === oe(-n, e), u = a === oe(-n * Ca, e);
|
|
2199
2199
|
return h && (s = l), (f || u) && (s = c), ii(s, e) && (s = oe(-s, e)), { isValid: h || f, value: s };
|
|
@@ -2202,7 +2202,7 @@ const li = /* @__PURE__ */ Zg(Tf, { uvRatio: $f }), ri = li.Fp, i0 = li.Fn;
|
|
|
2202
2202
|
function r0(n) {
|
|
2203
2203
|
return Kg(li, Sg, Object.assign({ adjustScalarBytes: n0, zip215: !0 }, n));
|
|
2204
2204
|
}
|
|
2205
|
-
const o0 = /* @__PURE__ */ r0({}), Jl = Ca, s0 = /* @__PURE__ */ BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"), Ql = (n) => $f(Pr, n), a0 = /* @__PURE__ */ BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), c0 = (n) => ri.create(
|
|
2205
|
+
const o0 = /* @__PURE__ */ r0({}), Jl = Ca, s0 = /* @__PURE__ */ BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"), Ql = (n) => $f(Pr, n), a0 = /* @__PURE__ */ BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), c0 = (n) => ri.create(Or(n) & a0), Ne = class Ne extends xr {
|
|
2206
2206
|
constructor(t) {
|
|
2207
2207
|
super(t);
|
|
2208
2208
|
}
|
|
@@ -2224,7 +2224,7 @@ const o0 = /* @__PURE__ */ r0({}), Jl = Ca, s0 = /* @__PURE__ */ BigInt("5446930
|
|
|
2224
2224
|
}
|
|
2225
2225
|
static fromBytes(t) {
|
|
2226
2226
|
wi(t, 32);
|
|
2227
|
-
const { a: e, d: i } = Tf, r =
|
|
2227
|
+
const { a: e, d: i } = Tf, r = Nr, o = (b) => ri.create(b), s = c0(t);
|
|
2228
2228
|
if (!Lg(ri.toBytes(s), t) || ii(s, r))
|
|
2229
2229
|
throw new Error("invalid ristretto255 encoding 1");
|
|
2230
2230
|
const a = o(s * s), l = o(Pr + e * a), c = o(Pr - e * a), h = o(l * l), f = o(c * c), u = o(e * i * h - f), { isValid: d, value: p } = Ql(o(u * f)), y = o(p * c), g = o(p * y * u);
|
|
@@ -2249,7 +2249,7 @@ const o0 = /* @__PURE__ */ r0({}), Jl = Ca, s0 = /* @__PURE__ */ BigInt("5446930
|
|
|
2249
2249
|
*/
|
|
2250
2250
|
toBytes() {
|
|
2251
2251
|
let { X: t, Y: e, Z: i, T: r } = this.ep;
|
|
2252
|
-
const o =
|
|
2252
|
+
const o = Nr, s = (g) => ri.create(g), a = s(s(i + e) * s(i - e)), l = s(t * e), c = s(l * l), { value: h } = Ql(s(a * c)), f = s(h * a), u = s(h * l), d = s(f * u * r);
|
|
2253
2253
|
let p;
|
|
2254
2254
|
if (ii(r * d, o)) {
|
|
2255
2255
|
let g = s(e * Jl), m = s(t * Jl);
|
|
@@ -2572,12 +2572,12 @@ function M0(n) {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
return t.map((e, i) => ({ ...e, index: i }));
|
|
2574
2574
|
}
|
|
2575
|
-
let
|
|
2575
|
+
let No = {};
|
|
2576
2576
|
function rh(n) {
|
|
2577
|
-
|
|
2577
|
+
No = fe(No, n);
|
|
2578
2578
|
}
|
|
2579
2579
|
function A0() {
|
|
2580
|
-
return
|
|
2580
|
+
return No;
|
|
2581
2581
|
}
|
|
2582
2582
|
const jn = class jn {
|
|
2583
2583
|
parse(t) {
|
|
@@ -2595,7 +2595,7 @@ const jn = class jn {
|
|
|
2595
2595
|
mergeWithDefaults(t, e) {
|
|
2596
2596
|
return fe(
|
|
2597
2597
|
fe({}, Rs),
|
|
2598
|
-
|
|
2598
|
+
No,
|
|
2599
2599
|
e ?? {},
|
|
2600
2600
|
t
|
|
2601
2601
|
);
|
|
@@ -2972,11 +2972,11 @@ function Df(n) {
|
|
|
2972
2972
|
function H0() {
|
|
2973
2973
|
return new Ue(this._enter || this._groups.map(Df), this._parents);
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function Wo(n, t) {
|
|
2976
2976
|
this.ownerDocument = n.ownerDocument, this.namespaceURI = n.namespaceURI, this._next = null, this._parent = n, this.__data__ = t;
|
|
2977
2977
|
}
|
|
2978
|
-
|
|
2979
|
-
constructor:
|
|
2978
|
+
Wo.prototype = {
|
|
2979
|
+
constructor: Wo,
|
|
2980
2980
|
appendChild: function(n) {
|
|
2981
2981
|
return this._parent.insertBefore(n, this._next);
|
|
2982
2982
|
},
|
|
@@ -2997,7 +2997,7 @@ function V0(n) {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
function G0(n, t, e, i, r, o) {
|
|
2999
2999
|
for (var s = 0, a, l = t.length, c = o.length; s < c; ++s)
|
|
3000
|
-
(a = t[s]) ? (a.__data__ = o[s], i[s] = a) : e[s] = new
|
|
3000
|
+
(a = t[s]) ? (a.__data__ = o[s], i[s] = a) : e[s] = new Wo(n, o[s]);
|
|
3001
3001
|
for (; s < l; ++s)
|
|
3002
3002
|
(a = t[s]) && (r[s] = a);
|
|
3003
3003
|
}
|
|
@@ -3006,7 +3006,7 @@ function Y0(n, t, e, i, r, o, s) {
|
|
|
3006
3006
|
for (a = 0; a < h; ++a)
|
|
3007
3007
|
(l = t[a]) && (u[a] = d = s.call(l, l.__data__, a, t) + "", c.has(d) ? r[a] = l : c.set(d, l));
|
|
3008
3008
|
for (a = 0; a < f; ++a)
|
|
3009
|
-
d = s.call(n, o[a], a, o) + "", (l = c.get(d)) ? (i[a] = l, l.__data__ = o[a], c.delete(d)) : e[a] = new
|
|
3009
|
+
d = s.call(n, o[a], a, o) + "", (l = c.get(d)) ? (i[a] = l, l.__data__ = o[a], c.delete(d)) : e[a] = new Wo(n, o[a]);
|
|
3010
3010
|
for (a = 0; a < h; ++a)
|
|
3011
3011
|
(l = t[a]) && c.get(u[a]) === l && (r[a] = l);
|
|
3012
3012
|
}
|
|
@@ -3388,13 +3388,13 @@ var Vf = [null];
|
|
|
3388
3388
|
function Ue(n, t) {
|
|
3389
3389
|
this._groups = n, this._parents = t;
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function Ur() {
|
|
3392
3392
|
return new Ue([[document.documentElement]], Vf);
|
|
3393
3393
|
}
|
|
3394
3394
|
function ny() {
|
|
3395
3395
|
return this;
|
|
3396
3396
|
}
|
|
3397
|
-
Ue.prototype =
|
|
3397
|
+
Ue.prototype = Ur.prototype = {
|
|
3398
3398
|
constructor: Ue,
|
|
3399
3399
|
select: P0,
|
|
3400
3400
|
selectAll: L0,
|
|
@@ -3871,7 +3871,7 @@ class hy {
|
|
|
3871
3871
|
return i || 40;
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
|
-
function
|
|
3874
|
+
function wo(n, t) {
|
|
3875
3875
|
return n == null || t == null ? NaN : n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
|
|
3876
3876
|
}
|
|
3877
3877
|
function uy(n, t) {
|
|
@@ -3879,7 +3879,7 @@ function uy(n, t) {
|
|
|
3879
3879
|
}
|
|
3880
3880
|
function Pc(n) {
|
|
3881
3881
|
let t, e, i;
|
|
3882
|
-
n.length !== 2 ? (t =
|
|
3882
|
+
n.length !== 2 ? (t = wo, e = (a, l) => wo(n(a), l), i = (a, l) => n(a) - l) : (t = n === wo || n === uy ? n : fy, e = n, i = n);
|
|
3883
3883
|
function r(a, l, c = 0, h = a.length) {
|
|
3884
3884
|
if (c < h) {
|
|
3885
3885
|
if (t(l, l) !== 0) return h;
|
|
@@ -3912,7 +3912,7 @@ function fy() {
|
|
|
3912
3912
|
function dy(n) {
|
|
3913
3913
|
return n === null ? NaN : +n;
|
|
3914
3914
|
}
|
|
3915
|
-
const py = Pc(
|
|
3915
|
+
const py = Pc(wo), gy = py.right;
|
|
3916
3916
|
Pc(dy).center;
|
|
3917
3917
|
class yi {
|
|
3918
3918
|
constructor() {
|
|
@@ -3971,15 +3971,15 @@ function xy(n) {
|
|
|
3971
3971
|
return n !== null && typeof n == "object" ? n.valueOf() : n;
|
|
3972
3972
|
}
|
|
3973
3973
|
const by = Math.sqrt(50), vy = Math.sqrt(10), wy = Math.sqrt(2);
|
|
3974
|
-
function
|
|
3974
|
+
function Ho(n, t, e) {
|
|
3975
3975
|
const i = (t - n) / Math.max(0, e), r = Math.floor(Math.log10(i)), o = i / Math.pow(10, r), s = o >= by ? 10 : o >= vy ? 5 : o >= wy ? 2 : 1;
|
|
3976
3976
|
let a, l, c;
|
|
3977
|
-
return r < 0 ? (c = Math.pow(10, -r) / s, a = Math.round(n * c), l = Math.round(t * c), a / c < n && ++a, l / c > t && --l, c = -c) : (c = Math.pow(10, r) * s, a = Math.round(n / c), l = Math.round(t / c), a * c < n && ++a, l * c > t && --l), l < a && 0.5 <= e && e < 2 ?
|
|
3977
|
+
return r < 0 ? (c = Math.pow(10, -r) / s, a = Math.round(n * c), l = Math.round(t * c), a / c < n && ++a, l / c > t && --l, c = -c) : (c = Math.pow(10, r) * s, a = Math.round(n / c), l = Math.round(t / c), a * c < n && ++a, l * c > t && --l), l < a && 0.5 <= e && e < 2 ? Ho(n, t, e * 2) : [a, l, c];
|
|
3978
3978
|
}
|
|
3979
3979
|
function La(n, t, e) {
|
|
3980
3980
|
if (t = +t, n = +n, e = +e, !(e > 0)) return [];
|
|
3981
3981
|
if (n === t) return [n];
|
|
3982
|
-
const i = t < n, [r, o, s] = i ?
|
|
3982
|
+
const i = t < n, [r, o, s] = i ? Ho(t, n, e) : Ho(n, t, e);
|
|
3983
3983
|
if (!(o >= r)) return [];
|
|
3984
3984
|
const a = o - r + 1, l = new Array(a);
|
|
3985
3985
|
if (i)
|
|
@@ -3990,7 +3990,7 @@ function La(n, t, e) {
|
|
|
3990
3990
|
return l;
|
|
3991
3991
|
}
|
|
3992
3992
|
function Ia(n, t, e) {
|
|
3993
|
-
return t = +t, n = +n, e = +e,
|
|
3993
|
+
return t = +t, n = +n, e = +e, Ho(n, t, e)[2];
|
|
3994
3994
|
}
|
|
3995
3995
|
function Fa(n, t, e) {
|
|
3996
3996
|
t = +t, n = +n, e = +e;
|
|
@@ -4239,13 +4239,13 @@ function Zf(n, t, e, i, r, o) {
|
|
|
4239
4239
|
scaleY: a
|
|
4240
4240
|
};
|
|
4241
4241
|
}
|
|
4242
|
-
var
|
|
4242
|
+
var so;
|
|
4243
4243
|
function By(n) {
|
|
4244
4244
|
const t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(n + "");
|
|
4245
4245
|
return t.isIdentity ? Da : Zf(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
4246
4246
|
}
|
|
4247
4247
|
function Oy(n) {
|
|
4248
|
-
return n == null || (
|
|
4248
|
+
return n == null || (so || (so = document.createElementNS("http://www.w3.org/2000/svg", "g")), so.setAttribute("transform", n), !(n = so.transform.baseVal.consolidate())) ? Da : (n = n.matrix, Zf(n.a, n.b, n.c, n.d, n.e, n.f));
|
|
4249
4249
|
}
|
|
4250
4250
|
function Kf(n, t, e, i) {
|
|
4251
4251
|
function r(c) {
|
|
@@ -4390,7 +4390,7 @@ function Jf() {
|
|
|
4390
4390
|
function Ky(n) {
|
|
4391
4391
|
return Math.abs(n = Math.round(n)) >= 1e21 ? n.toLocaleString("en").replace(/,/g, "") : n.toString(10);
|
|
4392
4392
|
}
|
|
4393
|
-
function
|
|
4393
|
+
function Vo(n, t) {
|
|
4394
4394
|
if (!isFinite(n) || n === 0) return null;
|
|
4395
4395
|
var e = (n = t ? n.toExponential(t - 1) : n.toExponential()).indexOf("e"), i = n.slice(0, e);
|
|
4396
4396
|
return [
|
|
@@ -4399,7 +4399,7 @@ function Ho(n, t) {
|
|
|
4399
4399
|
];
|
|
4400
4400
|
}
|
|
4401
4401
|
function Vi(n) {
|
|
4402
|
-
return n =
|
|
4402
|
+
return n = Vo(Math.abs(n)), n ? n[1] : NaN;
|
|
4403
4403
|
}
|
|
4404
4404
|
function Jy(n, t) {
|
|
4405
4405
|
return function(e, i) {
|
|
@@ -4416,7 +4416,7 @@ function Qy(n) {
|
|
|
4416
4416
|
};
|
|
4417
4417
|
}
|
|
4418
4418
|
var tx = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
4419
|
-
function
|
|
4419
|
+
function Wr(n) {
|
|
4420
4420
|
if (!(t = tx.exec(n))) throw new Error("invalid format: " + n);
|
|
4421
4421
|
var t;
|
|
4422
4422
|
return new $c({
|
|
@@ -4432,7 +4432,7 @@ function Nr(n) {
|
|
|
4432
4432
|
type: t[10]
|
|
4433
4433
|
});
|
|
4434
4434
|
}
|
|
4435
|
-
|
|
4435
|
+
Wr.prototype = $c.prototype;
|
|
4436
4436
|
function $c(n) {
|
|
4437
4437
|
this.fill = n.fill === void 0 ? " " : n.fill + "", this.align = n.align === void 0 ? ">" : n.align + "", this.sign = n.sign === void 0 ? "-" : n.sign + "", this.symbol = n.symbol === void 0 ? "" : n.symbol + "", this.zero = !!n.zero, this.width = n.width === void 0 ? void 0 : +n.width, this.comma = !!n.comma, this.precision = n.precision === void 0 ? void 0 : +n.precision, this.trim = !!n.trim, this.type = n.type === void 0 ? "" : n.type + "";
|
|
4438
4438
|
}
|
|
@@ -4455,15 +4455,15 @@ function ex(n) {
|
|
|
4455
4455
|
}
|
|
4456
4456
|
return i > 0 ? n.slice(0, i) + n.slice(r + 1) : n;
|
|
4457
4457
|
}
|
|
4458
|
-
var
|
|
4458
|
+
var Go;
|
|
4459
4459
|
function nx(n, t) {
|
|
4460
|
-
var e =
|
|
4461
|
-
if (!e) return
|
|
4462
|
-
var i = e[0], r = e[1], o = r - (
|
|
4463
|
-
return o === s ? i : o > s ? i + new Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + new Array(1 - o).join("0") +
|
|
4460
|
+
var e = Vo(n, t);
|
|
4461
|
+
if (!e) return Go = void 0, n.toPrecision(t);
|
|
4462
|
+
var i = e[0], r = e[1], o = r - (Go = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, s = i.length;
|
|
4463
|
+
return o === s ? i : o > s ? i + new Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + new Array(1 - o).join("0") + Vo(n, Math.max(0, t + o - 1))[0];
|
|
4464
4464
|
}
|
|
4465
4465
|
function dh(n, t) {
|
|
4466
|
-
var e =
|
|
4466
|
+
var e = Vo(n, t);
|
|
4467
4467
|
if (!e) return n + "";
|
|
4468
4468
|
var i = e[0], r = e[1];
|
|
4469
4469
|
return r < 0 ? "0." + new Array(-r).join("0") + i : i.length > r + 1 ? i.slice(0, r + 1) + "." + i.slice(r + 1) : i + new Array(r - i.length + 2).join("0");
|
|
@@ -4490,7 +4490,7 @@ var mh = Array.prototype.map, yh = ["y", "z", "a", "f", "p", "n", "µ", "m", "",
|
|
|
4490
4490
|
function ix(n) {
|
|
4491
4491
|
var t = n.grouping === void 0 || n.thousands === void 0 ? gh : Jy(mh.call(n.grouping, Number), n.thousands + ""), e = n.currency === void 0 ? "" : n.currency[0] + "", i = n.currency === void 0 ? "" : n.currency[1] + "", r = n.decimal === void 0 ? "." : n.decimal + "", o = n.numerals === void 0 ? gh : Qy(mh.call(n.numerals, String)), s = n.percent === void 0 ? "%" : n.percent + "", a = n.minus === void 0 ? "−" : n.minus + "", l = n.nan === void 0 ? "NaN" : n.nan + "";
|
|
4492
4492
|
function c(f, u) {
|
|
4493
|
-
f =
|
|
4493
|
+
f = Wr(f);
|
|
4494
4494
|
var d = f.fill, p = f.align, y = f.sign, g = f.symbol, m = f.zero, x = f.width, v = f.comma, b = f.precision, k = f.trim, M = f.type;
|
|
4495
4495
|
M === "n" ? (v = !0, M = "g") : ph[M] || (b === void 0 && (b = 12), k = !0, M = "g"), (m || d === "0" && p === "=") && (m = !0, d = "0", p = "=");
|
|
4496
4496
|
var C = (u && u.prefix !== void 0 ? u.prefix : "") + (g === "$" ? e : g === "#" && /[boxX]/.test(M) ? "0" + M.toLowerCase() : ""), L = (g === "$" ? i : /[%p]/.test(M) ? s : "") + (u && u.suffix !== void 0 ? u.suffix : ""), _ = ph[M], T = /[defgprs%]/.test(M);
|
|
@@ -4502,7 +4502,7 @@ function ix(n) {
|
|
|
4502
4502
|
else {
|
|
4503
4503
|
E = +E;
|
|
4504
4504
|
var R = E < 0 || 1 / E < 0;
|
|
4505
|
-
if (E = isNaN(E) ? l : _(Math.abs(E), b), k && (E = ex(E)), R && +E == 0 && y !== "+" && (R = !1), P = (R ? y === "(" ? y : a : y === "-" || y === "(" ? "" : y) + P, S = (M === "s" && !isNaN(E) &&
|
|
4505
|
+
if (E = isNaN(E) ? l : _(Math.abs(E), b), k && (E = ex(E)), R && +E == 0 && y !== "+" && (R = !1), P = (R ? y === "(" ? y : a : y === "-" || y === "(" ? "" : y) + P, S = (M === "s" && !isNaN(E) && Go !== void 0 ? yh[8 + Go / 3] : "") + S + (R && y === "(" ? ")" : ""), T) {
|
|
4506
4506
|
for (w = -1, A = E.length; ++w < A; )
|
|
4507
4507
|
if ($ = E.charCodeAt(w), 48 > $ || $ > 57) {
|
|
4508
4508
|
S = ($ === 46 ? r + E.slice(w + 1) : E.slice(w)) + S, E = E.slice(0, w);
|
|
@@ -4533,7 +4533,7 @@ function ix(n) {
|
|
|
4533
4533
|
}, I;
|
|
4534
4534
|
}
|
|
4535
4535
|
function h(f, u) {
|
|
4536
|
-
var d = Math.max(-8, Math.min(8, Math.floor(Vi(u) / 3))) * 3, p = Math.pow(10, -d), y = c((f =
|
|
4536
|
+
var d = Math.max(-8, Math.min(8, Math.floor(Vi(u) / 3))) * 3, p = Math.pow(10, -d), y = c((f = Wr(f), f.type = "f", f), { suffix: yh[8 + d / 3] });
|
|
4537
4537
|
return function(g) {
|
|
4538
4538
|
return y(p * g);
|
|
4539
4539
|
};
|
|
@@ -4543,14 +4543,14 @@ function ix(n) {
|
|
|
4543
4543
|
formatPrefix: h
|
|
4544
4544
|
};
|
|
4545
4545
|
}
|
|
4546
|
-
var
|
|
4546
|
+
var ao, qr, Qf;
|
|
4547
4547
|
rx({
|
|
4548
4548
|
thousands: ",",
|
|
4549
4549
|
grouping: [3],
|
|
4550
4550
|
currency: ["$", ""]
|
|
4551
4551
|
});
|
|
4552
4552
|
function rx(n) {
|
|
4553
|
-
return
|
|
4553
|
+
return ao = ix(n), qr = ao.format, Qf = ao.formatPrefix, ao;
|
|
4554
4554
|
}
|
|
4555
4555
|
function ox(n) {
|
|
4556
4556
|
return Math.max(0, -Vi(Math.abs(n)));
|
|
@@ -4563,7 +4563,7 @@ function ax(n, t) {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
function cx(n, t, e, i) {
|
|
4565
4565
|
var r = Fa(n, t, e), o;
|
|
4566
|
-
switch (i =
|
|
4566
|
+
switch (i = Wr(i ?? ",f"), i.type) {
|
|
4567
4567
|
case "s": {
|
|
4568
4568
|
var s = Math.max(Math.abs(n), Math.abs(t));
|
|
4569
4569
|
return i.precision == null && !isNaN(o = sx(r, s)) && (i.precision = o), Qf(i, s);
|
|
@@ -4582,7 +4582,7 @@ function cx(n, t, e, i) {
|
|
|
4582
4582
|
break;
|
|
4583
4583
|
}
|
|
4584
4584
|
}
|
|
4585
|
-
return
|
|
4585
|
+
return qr(i);
|
|
4586
4586
|
}
|
|
4587
4587
|
function Lc(n) {
|
|
4588
4588
|
var t = n.domain;
|
|
@@ -4681,7 +4681,7 @@ function px(n) {
|
|
|
4681
4681
|
m = La(u, d, Math.min(d - u, g)).map(o);
|
|
4682
4682
|
return f ? m.reverse() : m;
|
|
4683
4683
|
}, t.tickFormat = (a, l) => {
|
|
4684
|
-
if (a == null && (a = 10), l == null && (l = i === 10 ? "s" : ","), typeof l != "function" && (!(i % 1) && (l =
|
|
4684
|
+
if (a == null && (a = 10), l == null && (l = i === 10 ? "s" : ","), typeof l != "function" && (!(i % 1) && (l = Wr(l)).precision == null && (l.trim = !0), l = qr(l)), a === 1 / 0) return l;
|
|
4685
4685
|
const c = Math.max(1, i * a / t.ticks().length);
|
|
4686
4686
|
return (h) => {
|
|
4687
4687
|
let f = h / o(Math.round(r(h)));
|
|
@@ -4753,16 +4753,16 @@ function ce(n, t, e, i) {
|
|
|
4753
4753
|
;
|
|
4754
4754
|
}), e && (r.count = (o, s) => (Ys.setTime(+o), Xs.setTime(+s), n(Ys), n(Xs), Math.floor(e(Ys, Xs))), r.every = (o) => (o = Math.floor(o), !isFinite(o) || !(o > 0) ? null : o > 1 ? r.filter(i ? (s) => i(s) % o === 0 : (s) => r.count(0, s) % o === 0) : r)), r;
|
|
4755
4755
|
}
|
|
4756
|
-
const
|
|
4756
|
+
const Yo = ce(() => {
|
|
4757
4757
|
}, (n, t) => {
|
|
4758
4758
|
n.setTime(+n + t);
|
|
4759
4759
|
}, (n, t) => t - n);
|
|
4760
|
-
|
|
4760
|
+
Yo.every = (n) => (n = Math.floor(n), !isFinite(n) || !(n > 0) ? null : n > 1 ? ce((t) => {
|
|
4761
4761
|
t.setTime(Math.floor(t / n) * n);
|
|
4762
4762
|
}, (t, e) => {
|
|
4763
4763
|
t.setTime(+t + e * n);
|
|
4764
|
-
}, (t, e) => (e - t) / n) :
|
|
4765
|
-
|
|
4764
|
+
}, (t, e) => (e - t) / n) : Yo);
|
|
4765
|
+
Yo.range;
|
|
4766
4766
|
const In = 1e3, on = In * 60, Fn = on * 60, zn = Fn * 24, Ic = zn * 7, kh = zn * 30, Us = zn * 365, fi = ce((n) => {
|
|
4767
4767
|
n.setTime(n - n.getMilliseconds());
|
|
4768
4768
|
}, (n, t) => {
|
|
@@ -4793,13 +4793,13 @@ const zc = ce((n) => {
|
|
|
4793
4793
|
n.setTime(+n + t * Fn);
|
|
4794
4794
|
}, (n, t) => (t - n) / Fn, (n) => n.getUTCHours());
|
|
4795
4795
|
zc.range;
|
|
4796
|
-
const
|
|
4796
|
+
const jr = ce(
|
|
4797
4797
|
(n) => n.setHours(0, 0, 0, 0),
|
|
4798
4798
|
(n, t) => n.setDate(n.getDate() + t),
|
|
4799
4799
|
(n, t) => (t - n - (t.getTimezoneOffset() - n.getTimezoneOffset()) * on) / zn,
|
|
4800
4800
|
(n) => n.getDate() - 1
|
|
4801
4801
|
);
|
|
4802
|
-
|
|
4802
|
+
jr.range;
|
|
4803
4803
|
const gs = ce((n) => {
|
|
4804
4804
|
n.setUTCHours(0, 0, 0, 0);
|
|
4805
4805
|
}, (n, t) => {
|
|
@@ -4819,9 +4819,9 @@ function Mi(n) {
|
|
|
4819
4819
|
t.setDate(t.getDate() + e * 7);
|
|
4820
4820
|
}, (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * on) / Ic);
|
|
4821
4821
|
}
|
|
4822
|
-
const ms = Mi(0),
|
|
4822
|
+
const ms = Mi(0), Xo = Mi(1), bx = Mi(2), vx = Mi(3), Gi = Mi(4), wx = Mi(5), kx = Mi(6);
|
|
4823
4823
|
ms.range;
|
|
4824
|
-
|
|
4824
|
+
Xo.range;
|
|
4825
4825
|
bx.range;
|
|
4826
4826
|
vx.range;
|
|
4827
4827
|
Gi.range;
|
|
@@ -4834,9 +4834,9 @@ function Ai(n) {
|
|
|
4834
4834
|
t.setUTCDate(t.getUTCDate() + e * 7);
|
|
4835
4835
|
}, (t, e) => (e - t) / Ic);
|
|
4836
4836
|
}
|
|
4837
|
-
const ys = Ai(0),
|
|
4837
|
+
const ys = Ai(0), Uo = Ai(1), Mx = Ai(2), Ax = Ai(3), Yi = Ai(4), Sx = Ai(5), _x = Ai(6);
|
|
4838
4838
|
ys.range;
|
|
4839
|
-
|
|
4839
|
+
Uo.range;
|
|
4840
4840
|
Mx.range;
|
|
4841
4841
|
Ax.range;
|
|
4842
4842
|
Yi.range;
|
|
@@ -4906,13 +4906,13 @@ function id(n, t, e, i, r, o) {
|
|
|
4906
4906
|
function l(c, h, f) {
|
|
4907
4907
|
const u = Math.abs(h - c) / f, d = Pc(([, , g]) => g).right(s, u);
|
|
4908
4908
|
if (d === s.length) return n.every(Fa(c / Us, h / Us, f));
|
|
4909
|
-
if (d === 0) return
|
|
4909
|
+
if (d === 0) return Yo.every(Math.max(Fa(c, h, f), 1));
|
|
4910
4910
|
const [p, y] = s[u / s[d - 1][2] < s[d][2] / u ? d - 1 : d];
|
|
4911
4911
|
return p.every(y);
|
|
4912
4912
|
}
|
|
4913
4913
|
return [a, l];
|
|
4914
4914
|
}
|
|
4915
|
-
const [Cx, Px] = id(On, Oc, ys, nd, zc, Rc), [Ex, Tx] = id(Bn, Bc, ms,
|
|
4915
|
+
const [Cx, Px] = id(On, Oc, ys, nd, zc, Rc), [Ex, Tx] = id(Bn, Bc, ms, jr, Dc, Fc);
|
|
4916
4916
|
function qs(n) {
|
|
4917
4917
|
if (0 <= n.y && n.y < 100) {
|
|
4918
4918
|
var t = new Date(-1, n.m, n.d, n.H, n.M, n.S, n.L);
|
|
@@ -5048,7 +5048,7 @@ function $x(n) {
|
|
|
5048
5048
|
if ("s" in O) return new Date(O.s * 1e3 + ("L" in O ? O.L : 0));
|
|
5049
5049
|
if (N && !("Z" in O) && (O.Z = 0), "p" in O && (O.H = O.H % 12 + O.p * 12), O.m === void 0 && (O.m = "q" in O ? O.q : 0), "V" in O) {
|
|
5050
5050
|
if (O.V < 1 || O.V > 53) return null;
|
|
5051
|
-
"w" in O || (O.w = 1), "Z" in O ? (it = js(lr(O.y, 0, 1)), ft = it.getUTCDay(), it = ft > 4 || ft === 0 ?
|
|
5051
|
+
"w" in O || (O.w = 1), "Z" in O ? (it = js(lr(O.y, 0, 1)), ft = it.getUTCDay(), it = ft > 4 || ft === 0 ? Uo.ceil(it) : Uo(it), it = gs.offset(it, (O.V - 1) * 7), O.y = it.getUTCFullYear(), O.m = it.getUTCMonth(), O.d = it.getUTCDate() + (O.w + 6) % 7) : (it = qs(lr(O.y, 0, 1)), ft = it.getDay(), it = ft > 4 || ft === 0 ? Xo.ceil(it) : Xo(it), it = jr.offset(it, (O.V - 1) * 7), O.y = it.getFullYear(), O.m = it.getMonth(), O.d = it.getDate() + (O.w + 6) % 7);
|
|
5052
5052
|
} else ("W" in O || "U" in O) && ("w" in O || (O.w = "u" in O ? O.u % 7 : "W" in O ? 1 : 0), ft = "Z" in O ? js(lr(O.y, 0, 1)).getUTCDay() : qs(lr(O.y, 0, 1)).getDay(), O.m = 0, O.d = "W" in O ? (O.w + 6) % 7 + O.W * 7 - (ft + 5) % 7 : O.w + O.U * 7 - (ft + 6) % 7);
|
|
5053
5053
|
return "Z" in O ? (O.H += O.Z / 100 | 0, O.M += O.Z % 100, js(O)) : qs(O);
|
|
5054
5054
|
};
|
|
@@ -5259,7 +5259,7 @@ function Jx(n, t) {
|
|
|
5259
5259
|
return Yt(n.getHours() % 12 || 12, t, 2);
|
|
5260
5260
|
}
|
|
5261
5261
|
function Qx(n, t) {
|
|
5262
|
-
return Yt(1 +
|
|
5262
|
+
return Yt(1 + jr.count(Bn(n), n), t, 3);
|
|
5263
5263
|
}
|
|
5264
5264
|
function rd(n, t) {
|
|
5265
5265
|
return Yt(n.getMilliseconds(), t, 3);
|
|
@@ -5294,7 +5294,7 @@ function a1(n) {
|
|
|
5294
5294
|
return n.getDay();
|
|
5295
5295
|
}
|
|
5296
5296
|
function c1(n, t) {
|
|
5297
|
-
return Yt(
|
|
5297
|
+
return Yt(Xo.count(Bn(n) - 1, n), t, 2);
|
|
5298
5298
|
}
|
|
5299
5299
|
function l1(n, t) {
|
|
5300
5300
|
return Yt(n.getFullYear() % 100, t, 2);
|
|
@@ -5358,7 +5358,7 @@ function A1(n) {
|
|
|
5358
5358
|
return n.getUTCDay();
|
|
5359
5359
|
}
|
|
5360
5360
|
function S1(n, t) {
|
|
5361
|
-
return Yt(
|
|
5361
|
+
return Yt(Uo.count(On(n) - 1, n), t, 2);
|
|
5362
5362
|
}
|
|
5363
5363
|
function _1(n, t) {
|
|
5364
5364
|
return Yt(n.getUTCFullYear() % 100, t, 2);
|
|
@@ -5427,7 +5427,7 @@ function Nc(n, t, e, i, r, o, s, a, l, c) {
|
|
|
5427
5427
|
}, h;
|
|
5428
5428
|
}
|
|
5429
5429
|
function F1() {
|
|
5430
|
-
return ki.apply(Nc(Ex, Tx, Bn, Bc, ms,
|
|
5430
|
+
return ki.apply(Nc(Ex, Tx, Bn, Bc, ms, jr, Dc, Fc, fi, xs).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
5431
5431
|
}
|
|
5432
5432
|
function R1() {
|
|
5433
5433
|
return ki.apply(Nc(Cx, Px, On, Oc, ys, gs, zc, Rc, fi, bs).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
|
|
@@ -5468,7 +5468,7 @@ function cd() {
|
|
|
5468
5468
|
function B1(n) {
|
|
5469
5469
|
return n;
|
|
5470
5470
|
}
|
|
5471
|
-
var
|
|
5471
|
+
var ko = 1, Mo = 2, Ba = 3, br = 4, Ih = 1e-6;
|
|
5472
5472
|
function O1(n) {
|
|
5473
5473
|
return "translate(" + n + ",0)";
|
|
5474
5474
|
}
|
|
@@ -5485,17 +5485,17 @@ function V1() {
|
|
|
5485
5485
|
return !this.__axis;
|
|
5486
5486
|
}
|
|
5487
5487
|
function vs(n, t) {
|
|
5488
|
-
var e = [], i = null, r = null, o = 6, s = 6, a = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = n ===
|
|
5488
|
+
var e = [], i = null, r = null, o = 6, s = 6, a = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = n === ko || n === br ? -1 : 1, h = n === br || n === Mo ? "x" : "y", f = n === ko || n === Ba ? O1 : N1;
|
|
5489
5489
|
function u(d) {
|
|
5490
5490
|
var p = i ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), y = r ?? (t.tickFormat ? t.tickFormat.apply(t, e) : B1), g = Math.max(o, 0) + a, m = t.range(), x = +m[0] + l, v = +m[m.length - 1] + l, b = (t.bandwidth ? H1 : W1)(t.copy(), l), k = d.selection ? d.selection() : d, M = k.selectAll(".domain").data([null]), C = k.selectAll(".tick").data(p, t).order(), L = C.exit(), _ = C.enter().append("g").attr("class", "tick"), T = C.select("line"), I = C.select("text");
|
|
5491
|
-
M = M.merge(M.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), C = C.merge(_), T = T.merge(_.append("line").attr("stroke", "currentColor").attr(h + "2", c * o)), I = I.merge(_.append("text").attr("fill", "currentColor").attr(h, c * g).attr("dy", n ===
|
|
5491
|
+
M = M.merge(M.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), C = C.merge(_), T = T.merge(_.append("line").attr("stroke", "currentColor").attr(h + "2", c * o)), I = I.merge(_.append("text").attr("fill", "currentColor").attr(h, c * g).attr("dy", n === ko ? "0em" : n === Ba ? "0.71em" : "0.32em")), d !== k && (M = M.transition(d), C = C.transition(d), T = T.transition(d), I = I.transition(d), L = L.transition(d).attr("opacity", Ih).attr("transform", function(E) {
|
|
5492
5492
|
return isFinite(E = b(E)) ? f(E + l) : this.getAttribute("transform");
|
|
5493
5493
|
}), _.attr("opacity", Ih).attr("transform", function(E) {
|
|
5494
5494
|
var P = this.parentNode.__axis;
|
|
5495
5495
|
return f((P && isFinite(P = P(E)) ? P : b(E)) + l);
|
|
5496
|
-
})), L.remove(), M.attr("d", n === br || n ===
|
|
5496
|
+
})), L.remove(), M.attr("d", n === br || n === Mo ? s ? "M" + c * s + "," + x + "H" + l + "V" + v + "H" + c * s : "M" + l + "," + x + "V" + v : s ? "M" + x + "," + c * s + "V" + l + "H" + v + "V" + c * s : "M" + x + "," + l + "H" + v), C.attr("opacity", 1).attr("transform", function(E) {
|
|
5497
5497
|
return f(b(E) + l);
|
|
5498
|
-
}), T.attr(h + "2", c * o), I.attr(h, c * g).text(y), k.filter(V1).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", n ===
|
|
5498
|
+
}), T.attr(h + "2", c * o), I.attr(h, c * g).text(y), k.filter(V1).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", n === Mo ? "start" : n === br ? "end" : "middle"), k.each(function() {
|
|
5499
5499
|
this.__axis = b;
|
|
5500
5500
|
});
|
|
5501
5501
|
}
|
|
@@ -5522,10 +5522,10 @@ function vs(n, t) {
|
|
|
5522
5522
|
}, u;
|
|
5523
5523
|
}
|
|
5524
5524
|
function Oa(n) {
|
|
5525
|
-
return vs(
|
|
5525
|
+
return vs(ko, n);
|
|
5526
5526
|
}
|
|
5527
5527
|
function Fh(n) {
|
|
5528
|
-
return vs(
|
|
5528
|
+
return vs(Mo, n);
|
|
5529
5529
|
}
|
|
5530
5530
|
function Rh(n) {
|
|
5531
5531
|
return vs(Ba, n);
|
|
@@ -5540,9 +5540,9 @@ function Ji() {
|
|
|
5540
5540
|
if (!(i = arguments[n] + "") || i in e || /[\s.]/.test(i)) throw new Error("illegal type: " + i);
|
|
5541
5541
|
e[i] = [];
|
|
5542
5542
|
}
|
|
5543
|
-
return new
|
|
5543
|
+
return new Ao(e);
|
|
5544
5544
|
}
|
|
5545
|
-
function
|
|
5545
|
+
function Ao(n) {
|
|
5546
5546
|
this._ = n;
|
|
5547
5547
|
}
|
|
5548
5548
|
function Y1(n, t) {
|
|
@@ -5552,8 +5552,8 @@ function Y1(n, t) {
|
|
|
5552
5552
|
return { type: e, name: i };
|
|
5553
5553
|
});
|
|
5554
5554
|
}
|
|
5555
|
-
|
|
5556
|
-
constructor:
|
|
5555
|
+
Ao.prototype = Ji.prototype = {
|
|
5556
|
+
constructor: Ao,
|
|
5557
5557
|
on: function(n, t) {
|
|
5558
5558
|
var e = this._, i = Y1(n + "", e), r, o = -1, s = i.length;
|
|
5559
5559
|
if (arguments.length < 2) {
|
|
@@ -5569,7 +5569,7 @@ Mo.prototype = Ji.prototype = {
|
|
|
5569
5569
|
copy: function() {
|
|
5570
5570
|
var n = {}, t = this._;
|
|
5571
5571
|
for (var e in t) n[e] = t[e].slice();
|
|
5572
|
-
return new
|
|
5572
|
+
return new Ao(n);
|
|
5573
5573
|
},
|
|
5574
5574
|
call: function(n, t) {
|
|
5575
5575
|
if ((r = arguments.length - 2) > 0) for (var e = new Array(r), i = 0, r, o; i < r; ++i) e[i] = arguments[i + 2];
|
|
@@ -5594,40 +5594,40 @@ function zh(n, t, e) {
|
|
|
5594
5594
|
}
|
|
5595
5595
|
return e != null && n.push({ name: t, value: e }), n;
|
|
5596
5596
|
}
|
|
5597
|
-
var Xi = 0, vr = 0, fr = 0, ld = 1e3,
|
|
5597
|
+
var Xi = 0, vr = 0, fr = 0, ld = 1e3, qo, wr, jo = 0, bi = 0, ws = 0, Hr = typeof performance == "object" && performance.now ? performance : Date, hd = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(n) {
|
|
5598
5598
|
setTimeout(n, 17);
|
|
5599
5599
|
};
|
|
5600
5600
|
function Wc() {
|
|
5601
|
-
return bi || (hd(U1), bi =
|
|
5601
|
+
return bi || (hd(U1), bi = Hr.now() + ws);
|
|
5602
5602
|
}
|
|
5603
5603
|
function U1() {
|
|
5604
5604
|
bi = 0;
|
|
5605
5605
|
}
|
|
5606
|
-
function
|
|
5606
|
+
function Zo() {
|
|
5607
5607
|
this._call = this._time = this._next = null;
|
|
5608
5608
|
}
|
|
5609
|
-
|
|
5610
|
-
constructor:
|
|
5609
|
+
Zo.prototype = ks.prototype = {
|
|
5610
|
+
constructor: Zo,
|
|
5611
5611
|
restart: function(n, t, e) {
|
|
5612
5612
|
if (typeof n != "function") throw new TypeError("callback is not a function");
|
|
5613
|
-
e = (e == null ? Wc() : +e) + (t == null ? 0 : +t), !this._next && wr !== this && (wr ? wr._next = this :
|
|
5613
|
+
e = (e == null ? Wc() : +e) + (t == null ? 0 : +t), !this._next && wr !== this && (wr ? wr._next = this : qo = this, wr = this), this._call = n, this._time = e, Na();
|
|
5614
5614
|
},
|
|
5615
5615
|
stop: function() {
|
|
5616
5616
|
this._call && (this._call = null, this._time = 1 / 0, Na());
|
|
5617
5617
|
}
|
|
5618
5618
|
};
|
|
5619
5619
|
function ks(n, t, e) {
|
|
5620
|
-
var i = new
|
|
5620
|
+
var i = new Zo();
|
|
5621
5621
|
return i.restart(n, t, e), i;
|
|
5622
5622
|
}
|
|
5623
5623
|
function q1() {
|
|
5624
5624
|
Wc(), ++Xi;
|
|
5625
|
-
for (var n =
|
|
5625
|
+
for (var n = qo, t; n; )
|
|
5626
5626
|
(t = bi - n._time) >= 0 && n._call.call(void 0, t), n = n._next;
|
|
5627
5627
|
--Xi;
|
|
5628
5628
|
}
|
|
5629
5629
|
function Bh() {
|
|
5630
|
-
bi = (
|
|
5630
|
+
bi = (jo = Hr.now()) + ws, Xi = vr = 0;
|
|
5631
5631
|
try {
|
|
5632
5632
|
q1();
|
|
5633
5633
|
} finally {
|
|
@@ -5635,28 +5635,28 @@ function Bh() {
|
|
|
5635
5635
|
}
|
|
5636
5636
|
}
|
|
5637
5637
|
function j1() {
|
|
5638
|
-
var n =
|
|
5639
|
-
t > ld && (ws -= t,
|
|
5638
|
+
var n = Hr.now(), t = n - jo;
|
|
5639
|
+
t > ld && (ws -= t, jo = n);
|
|
5640
5640
|
}
|
|
5641
5641
|
function Z1() {
|
|
5642
|
-
for (var n, t =
|
|
5643
|
-
t._call ? (i > t._time && (i = t._time), n = t, t = t._next) : (e = t._next, t._next = null, t = n ? n._next = e :
|
|
5642
|
+
for (var n, t = qo, e, i = 1 / 0; t; )
|
|
5643
|
+
t._call ? (i > t._time && (i = t._time), n = t, t = t._next) : (e = t._next, t._next = null, t = n ? n._next = e : qo = e);
|
|
5644
5644
|
wr = n, Na(i);
|
|
5645
5645
|
}
|
|
5646
5646
|
function Na(n) {
|
|
5647
5647
|
if (!Xi) {
|
|
5648
5648
|
vr && (vr = clearTimeout(vr));
|
|
5649
5649
|
var t = n - bi;
|
|
5650
|
-
t > 24 ? (n < 1 / 0 && (vr = setTimeout(Bh, n -
|
|
5650
|
+
t > 24 ? (n < 1 / 0 && (vr = setTimeout(Bh, n - Hr.now() - ws)), fr && (fr = clearInterval(fr))) : (fr || (jo = Hr.now(), fr = setInterval(j1, ld)), Xi = 1, hd(Bh));
|
|
5651
5651
|
}
|
|
5652
5652
|
}
|
|
5653
5653
|
function Oh(n, t, e) {
|
|
5654
|
-
var i = new
|
|
5654
|
+
var i = new Zo();
|
|
5655
5655
|
return t = t == null ? 0 : +t, i.restart((r) => {
|
|
5656
5656
|
i.stop(), n(r + t);
|
|
5657
5657
|
}, t, e), i;
|
|
5658
5658
|
}
|
|
5659
|
-
var K1 = Ji("start", "end", "cancel", "interrupt"), J1 = [], ud = 0, Nh = 1, Wa = 2,
|
|
5659
|
+
var K1 = Ji("start", "end", "cancel", "interrupt"), J1 = [], ud = 0, Nh = 1, Wa = 2, So = 3, Wh = 4, Ha = 5, _o = 6;
|
|
5660
5660
|
function Ms(n, t, e, i, r, o) {
|
|
5661
5661
|
var s = n.__transition;
|
|
5662
5662
|
if (!s) n.__transition = {};
|
|
@@ -5684,7 +5684,7 @@ function Hc(n, t) {
|
|
|
5684
5684
|
}
|
|
5685
5685
|
function An(n, t) {
|
|
5686
5686
|
var e = gn(n, t);
|
|
5687
|
-
if (e.state >
|
|
5687
|
+
if (e.state > So) throw new Error("too late; already running");
|
|
5688
5688
|
return e;
|
|
5689
5689
|
}
|
|
5690
5690
|
function gn(n, t) {
|
|
@@ -5703,13 +5703,13 @@ function Q1(n, t, e) {
|
|
|
5703
5703
|
if (e.state !== Nh) return l();
|
|
5704
5704
|
for (h in i)
|
|
5705
5705
|
if (d = i[h], d.name === e.name) {
|
|
5706
|
-
if (d.state ===
|
|
5707
|
-
d.state === Wh ? (d.state =
|
|
5706
|
+
if (d.state === So) return Oh(s);
|
|
5707
|
+
d.state === Wh ? (d.state = _o, d.timer.stop(), d.on.call("interrupt", n, n.__data__, d.index, d.group), delete i[h]) : +h < t && (d.state = _o, d.timer.stop(), d.on.call("cancel", n, n.__data__, d.index, d.group), delete i[h]);
|
|
5708
5708
|
}
|
|
5709
5709
|
if (Oh(function() {
|
|
5710
|
-
e.state ===
|
|
5710
|
+
e.state === So && (e.state = Wh, e.timer.restart(a, e.delay, e.time), a(c));
|
|
5711
5711
|
}), e.state = Wa, e.on.call("start", n, n.__data__, e.index, e.group), e.state === Wa) {
|
|
5712
|
-
for (e.state =
|
|
5712
|
+
for (e.state = So, r = new Array(u = e.tween.length), h = 0, f = -1; h < u; ++h)
|
|
5713
5713
|
(d = e.tween[h].value.call(n, n.__data__, e.index, e.group)) && (r[++f] = d);
|
|
5714
5714
|
r.length = f + 1;
|
|
5715
5715
|
}
|
|
@@ -5720,7 +5720,7 @@ function Q1(n, t, e) {
|
|
|
5720
5720
|
e.state === Ha && (e.on.call("end", n, n.__data__, e.index, e.group), l());
|
|
5721
5721
|
}
|
|
5722
5722
|
function l() {
|
|
5723
|
-
e.state =
|
|
5723
|
+
e.state = _o, e.timer.stop(), delete i[t];
|
|
5724
5724
|
for (var c in i) return;
|
|
5725
5725
|
delete n.__transition;
|
|
5726
5726
|
}
|
|
@@ -5734,7 +5734,7 @@ function Oi(n, t) {
|
|
|
5734
5734
|
o = !1;
|
|
5735
5735
|
continue;
|
|
5736
5736
|
}
|
|
5737
|
-
r = i.state > Wa && i.state < Ha, i.state =
|
|
5737
|
+
r = i.state > Wa && i.state < Ha, i.state = _o, i.timer.stop(), i.on.call(r ? "interrupt" : "cancel", n, n.__data__, i.index, i.group), delete e[s];
|
|
5738
5738
|
}
|
|
5739
5739
|
o && delete n.__transition;
|
|
5740
5740
|
}
|
|
@@ -5987,7 +5987,7 @@ function Fb(n) {
|
|
|
5987
5987
|
}
|
|
5988
5988
|
return new Nn(o, s, t, e);
|
|
5989
5989
|
}
|
|
5990
|
-
var Rb =
|
|
5990
|
+
var Rb = Ur.prototype.constructor;
|
|
5991
5991
|
function Db() {
|
|
5992
5992
|
return new Rb(this._groups, this._parents);
|
|
5993
5993
|
}
|
|
@@ -6115,7 +6115,7 @@ function Nn(n, t, e, i) {
|
|
|
6115
6115
|
function pd() {
|
|
6116
6116
|
return ++Qb;
|
|
6117
6117
|
}
|
|
6118
|
-
var Tn =
|
|
6118
|
+
var Tn = Ur.prototype;
|
|
6119
6119
|
Nn.prototype = {
|
|
6120
6120
|
constructor: Nn,
|
|
6121
6121
|
select: Ib,
|
|
@@ -6176,8 +6176,8 @@ function iv(n) {
|
|
|
6176
6176
|
(l = s[c]) && Ms(l, n, t, c, s, e || nv(l, t));
|
|
6177
6177
|
return new Nn(i, this._parents, n, t);
|
|
6178
6178
|
}
|
|
6179
|
-
|
|
6180
|
-
|
|
6179
|
+
Ur.prototype.interrupt = tb;
|
|
6180
|
+
Ur.prototype.transition = iv;
|
|
6181
6181
|
let Gc = !0;
|
|
6182
6182
|
function rv(n) {
|
|
6183
6183
|
Gc = n;
|
|
@@ -6263,7 +6263,7 @@ function Jt(n, t, e = !1) {
|
|
|
6263
6263
|
h = String(c);
|
|
6264
6264
|
else
|
|
6265
6265
|
try {
|
|
6266
|
-
h =
|
|
6266
|
+
h = qr(a)(f);
|
|
6267
6267
|
} catch {
|
|
6268
6268
|
h = String(c);
|
|
6269
6269
|
}
|
|
@@ -6283,7 +6283,7 @@ function Jn(n) {
|
|
|
6283
6283
|
return String(n).replace(lv, (t) => hv[t]);
|
|
6284
6284
|
}
|
|
6285
6285
|
const uv = /^[=+\-@\t\r]/, fv = /^-?\d+(?:[.,]\d+)?$/;
|
|
6286
|
-
function
|
|
6286
|
+
function co(n, t = ",") {
|
|
6287
6287
|
let e = n == null ? "" : String(n);
|
|
6288
6288
|
return uv.test(e) && !fv.test(e) && (e = "'" + e), (e.includes(t) || e.includes('"') || e.includes(`
|
|
6289
6289
|
`) || e.includes("\r")) && (e = '"' + e.replace(/"/g, '""') + '"'), e;
|
|
@@ -6966,7 +6966,7 @@ function vv(n, t) {
|
|
|
6966
6966
|
}, t);
|
|
6967
6967
|
};
|
|
6968
6968
|
}
|
|
6969
|
-
const
|
|
6969
|
+
const Dr = class Dr {
|
|
6970
6970
|
constructor(t, e, i, r) {
|
|
6971
6971
|
if (this.element = null, this.splitElements = [], this.hideTimeout = null, this.categories = null, this.isDatetime = !1, this.sharedPoints = [], this.sharedProvider = null, this.lastMouseEvent = null, this.boundHandlers = [], this.config = t, this.container = t.outside ? document.body : e, this.plotArea = i, t.enabled !== !1) {
|
|
6972
6972
|
if (r.on("point:mouseover", (o) => this.show(o)), r.on("point:mouseout", (o) => {
|
|
@@ -7165,7 +7165,7 @@ const Rr = class Rr {
|
|
|
7165
7165
|
}
|
|
7166
7166
|
const i = this.resolveKey(t), r = t.point.name ?? (this.categories && typeof t.point.x == "number" ? this.categories[t.point.x] : void 0) ?? i, o = (e == null ? void 0 : e.valueDecimals) ?? this.config.valueDecimals, s = (e == null ? void 0 : e.valuePrefix) ?? this.config.valuePrefix ?? "", a = (e == null ? void 0 : e.valueSuffix) ?? this.config.valueSuffix ?? "", l = this.formatValueWith(t.point.y, o, s, a);
|
|
7167
7167
|
let c = r;
|
|
7168
|
-
const h = (e == null ? void 0 : e.xDateFormat) ?? this.config.xDateFormat ?? (this.isDatetime ?
|
|
7168
|
+
const h = (e == null ? void 0 : e.xDateFormat) ?? this.config.xDateFormat ?? (this.isDatetime ? Dr.DEFAULT_DATE_FORMAT : void 0);
|
|
7169
7169
|
h && typeof t.point.x == "number" && t.point.name === void 0 && (c = Va(h, t.point.x));
|
|
7170
7170
|
const f = {
|
|
7171
7171
|
point: this.buildFormatterPoint(t, {
|
|
@@ -7300,7 +7300,7 @@ const Rr = class Rr {
|
|
|
7300
7300
|
if (t.name !== void 0 && t.name !== null) return t.name;
|
|
7301
7301
|
const i = t.x;
|
|
7302
7302
|
if (typeof i == "number") {
|
|
7303
|
-
const r = (e == null ? void 0 : e.xDateFormat) ?? this.config.xDateFormat ?? (this.isDatetime ?
|
|
7303
|
+
const r = (e == null ? void 0 : e.xDateFormat) ?? this.config.xDateFormat ?? (this.isDatetime ? Dr.DEFAULT_DATE_FORMAT : void 0);
|
|
7304
7304
|
if (r) return Va(r, i);
|
|
7305
7305
|
}
|
|
7306
7306
|
return i ?? "";
|
|
@@ -7312,8 +7312,8 @@ const Rr = class Rr {
|
|
|
7312
7312
|
this.boundHandlers = [], Gh(this.element), this.element = null, this.hideSplitElements();
|
|
7313
7313
|
}
|
|
7314
7314
|
};
|
|
7315
|
-
|
|
7316
|
-
let Ya =
|
|
7315
|
+
Dr.DEFAULT_DATE_FORMAT = "%A, %b %e, %Y";
|
|
7316
|
+
let Ya = Dr;
|
|
7317
7317
|
class Uc {
|
|
7318
7318
|
constructor(t, e, i) {
|
|
7319
7319
|
this.series = [], this.scrollOffset = 0, this.contentHeight = 0, this.visibleHeight = 0, this.config = t, this.events = i, t.enabled !== !1 && (this.group = e.append("g").attr("class", `katucharts-legend${t.className ? " " + t.className : ""}`));
|
|
@@ -8103,7 +8103,7 @@ class Tv {
|
|
|
8103
8103
|
return t.callback ? t.callback() : !(t.maxWidth !== void 0 && e > t.maxWidth || t.minWidth !== void 0 && e < t.minWidth || t.maxHeight !== void 0 && i > t.maxHeight || t.minHeight !== void 0 && i < t.minHeight);
|
|
8104
8104
|
}
|
|
8105
8105
|
}
|
|
8106
|
-
function
|
|
8106
|
+
function Co(n) {
|
|
8107
8107
|
return `${n._internalType}__${n.stack ?? "_default"}`;
|
|
8108
8108
|
}
|
|
8109
8109
|
function Li(n, t) {
|
|
@@ -8445,8 +8445,8 @@ const jt = class jt {
|
|
|
8445
8445
|
h.push(p);
|
|
8446
8446
|
}
|
|
8447
8447
|
const f = [
|
|
8448
|
-
a.map((d) =>
|
|
8449
|
-
...h.map((d) => d.map((p) =>
|
|
8448
|
+
a.map((d) => co(d, r)).join(r),
|
|
8449
|
+
...h.map((d) => d.map((p) => co(p, r)).join(r))
|
|
8450
8450
|
].join(o), u = new Blob([f], { type: "text/csv;charset=utf-8" });
|
|
8451
8451
|
jt.downloadBlob(u, `${e}.csv`);
|
|
8452
8452
|
}
|
|
@@ -8478,8 +8478,8 @@ const jt = class jt {
|
|
|
8478
8478
|
c.push(f);
|
|
8479
8479
|
}
|
|
8480
8480
|
return [
|
|
8481
|
-
s.map((h) =>
|
|
8482
|
-
...c.map((h) => h.map((f) =>
|
|
8481
|
+
s.map((h) => co(h, i)).join(i),
|
|
8482
|
+
...c.map((h) => h.map((f) => co(f, i)).join(i))
|
|
8483
8483
|
].join(r);
|
|
8484
8484
|
}
|
|
8485
8485
|
static getDataRows(t) {
|
|
@@ -8819,7 +8819,7 @@ class Fv {
|
|
|
8819
8819
|
for (let g = 0; g < h.length; g++) {
|
|
8820
8820
|
const m = h[g], x = c[g];
|
|
8821
8821
|
if (x != null && x.stacking) {
|
|
8822
|
-
const v =
|
|
8822
|
+
const v = Co(x);
|
|
8823
8823
|
d.has(v) || d.set(v, /* @__PURE__ */ new Map()), Li(m.data, d.get(v));
|
|
8824
8824
|
} else {
|
|
8825
8825
|
const v = m.getDataExtents();
|
|
@@ -9068,7 +9068,7 @@ class Rv {
|
|
|
9068
9068
|
this.events.off("point:click", this.pointClickHandler), this.breadcrumbsEl && (this.breadcrumbsEl.remove(), this.breadcrumbsEl = null);
|
|
9069
9069
|
}
|
|
9070
9070
|
}
|
|
9071
|
-
const Dv = { passive: !1 },
|
|
9071
|
+
const Dv = { passive: !1 }, Vr = { capture: !0, passive: !1 };
|
|
9072
9072
|
function Qs(n) {
|
|
9073
9073
|
n.stopImmediatePropagation();
|
|
9074
9074
|
}
|
|
@@ -9076,16 +9076,16 @@ function Ni(n) {
|
|
|
9076
9076
|
n.preventDefault(), n.stopImmediatePropagation();
|
|
9077
9077
|
}
|
|
9078
9078
|
function qc(n) {
|
|
9079
|
-
var t = n.document.documentElement, e = rt(n).on("dragstart.drag", Ni,
|
|
9080
|
-
"onselectstart" in t ? e.on("selectstart.drag", Ni,
|
|
9079
|
+
var t = n.document.documentElement, e = rt(n).on("dragstart.drag", Ni, Vr);
|
|
9080
|
+
"onselectstart" in t ? e.on("selectstart.drag", Ni, Vr) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
|
9081
9081
|
}
|
|
9082
9082
|
function jc(n, t) {
|
|
9083
9083
|
var e = n.document.documentElement, i = rt(n).on("dragstart.drag", null);
|
|
9084
|
-
t && (i.on("click.drag", Ni,
|
|
9084
|
+
t && (i.on("click.drag", Ni, Vr), setTimeout(function() {
|
|
9085
9085
|
i.on("click.drag", null);
|
|
9086
9086
|
}, 0)), "onselectstart" in e ? i.on("selectstart.drag", null) : (e.style.MozUserSelect = e.__noselect, delete e.__noselect);
|
|
9087
9087
|
}
|
|
9088
|
-
const
|
|
9088
|
+
const lo = (n) => () => n;
|
|
9089
9089
|
function Xa(n, {
|
|
9090
9090
|
sourceEvent: t,
|
|
9091
9091
|
subject: e,
|
|
@@ -9136,7 +9136,7 @@ function bd() {
|
|
|
9136
9136
|
function d(b, k) {
|
|
9137
9137
|
if (!(h || !n.call(this, b, k))) {
|
|
9138
9138
|
var M = v(this, t.call(this, b, k), b, k, "mouse");
|
|
9139
|
-
M && (rt(b.view).on("mousemove.drag", p,
|
|
9139
|
+
M && (rt(b.view).on("mousemove.drag", p, Vr).on("mouseup.drag", y, Vr), qc(b.view), Qs(b), c = !1, a = b.clientX, l = b.clientY, M("start", b));
|
|
9140
9140
|
}
|
|
9141
9141
|
}
|
|
9142
9142
|
function p(b) {
|
|
@@ -9213,13 +9213,13 @@ function bd() {
|
|
|
9213
9213
|
};
|
|
9214
9214
|
}
|
|
9215
9215
|
return u.filter = function(b) {
|
|
9216
|
-
return arguments.length ? (n = typeof b == "function" ? b :
|
|
9216
|
+
return arguments.length ? (n = typeof b == "function" ? b : lo(!!b), u) : n;
|
|
9217
9217
|
}, u.container = function(b) {
|
|
9218
|
-
return arguments.length ? (t = typeof b == "function" ? b :
|
|
9218
|
+
return arguments.length ? (t = typeof b == "function" ? b : lo(b), u) : t;
|
|
9219
9219
|
}, u.subject = function(b) {
|
|
9220
|
-
return arguments.length ? (e = typeof b == "function" ? b :
|
|
9220
|
+
return arguments.length ? (e = typeof b == "function" ? b : lo(b), u) : e;
|
|
9221
9221
|
}, u.touchable = function(b) {
|
|
9222
|
-
return arguments.length ? (i = typeof b == "function" ? b :
|
|
9222
|
+
return arguments.length ? (i = typeof b == "function" ? b : lo(!!b), u) : i;
|
|
9223
9223
|
}, u.on = function() {
|
|
9224
9224
|
var b = o.on.apply(o, arguments);
|
|
9225
9225
|
return b === o ? u : b;
|
|
@@ -9227,7 +9227,7 @@ function bd() {
|
|
|
9227
9227
|
return arguments.length ? (f = (b = +b) * b, u) : Math.sqrt(f);
|
|
9228
9228
|
}, u;
|
|
9229
9229
|
}
|
|
9230
|
-
const
|
|
9230
|
+
const ho = (n) => () => n;
|
|
9231
9231
|
function Wv(n, {
|
|
9232
9232
|
sourceEvent: t,
|
|
9233
9233
|
target: e,
|
|
@@ -9281,7 +9281,7 @@ Rn.prototype = {
|
|
|
9281
9281
|
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
9282
9282
|
}
|
|
9283
9283
|
};
|
|
9284
|
-
var
|
|
9284
|
+
var Er = new Rn(1, 0, 0);
|
|
9285
9285
|
Rn.prototype;
|
|
9286
9286
|
function ta(n) {
|
|
9287
9287
|
n.stopImmediatePropagation();
|
|
@@ -9297,7 +9297,7 @@ function Vv() {
|
|
|
9297
9297
|
return n instanceof SVGElement ? (n = n.ownerSVGElement || n, n.hasAttribute("viewBox") ? (n = n.viewBox.baseVal, [[n.x, n.y], [n.x + n.width, n.y + n.height]]) : [[0, 0], [n.width.baseVal.value, n.height.baseVal.value]]) : [[0, 0], [n.clientWidth, n.clientHeight]];
|
|
9298
9298
|
}
|
|
9299
9299
|
function jh() {
|
|
9300
|
-
return this.__zoom ||
|
|
9300
|
+
return this.__zoom || Er;
|
|
9301
9301
|
}
|
|
9302
9302
|
function Gv(n) {
|
|
9303
9303
|
return -n.deltaY * (n.deltaMode === 1 ? 0.05 : n.deltaMode ? 1 : 2e-3) * (n.ctrlKey ? 10 : 1);
|
|
@@ -9342,7 +9342,7 @@ function vd() {
|
|
|
9342
9342
|
}, m.translateTo = function(S, w, A, $, R) {
|
|
9343
9343
|
m.transform(S, function() {
|
|
9344
9344
|
var F = t.apply(this, arguments), D = this.__zoom, z = $ == null ? b(F) : typeof $ == "function" ? $.apply(this, arguments) : $;
|
|
9345
|
-
return e(
|
|
9345
|
+
return e(Er.translate(z[0], z[1]).scale(D.k).translate(
|
|
9346
9346
|
typeof w == "function" ? -w.apply(this, arguments) : -w,
|
|
9347
9347
|
typeof A == "function" ? -A.apply(this, arguments) : -A
|
|
9348
9348
|
), F, s);
|
|
@@ -9482,13 +9482,13 @@ function vd() {
|
|
|
9482
9482
|
}
|
|
9483
9483
|
}
|
|
9484
9484
|
return m.wheelDelta = function(S) {
|
|
9485
|
-
return arguments.length ? (i = typeof S == "function" ? S :
|
|
9485
|
+
return arguments.length ? (i = typeof S == "function" ? S : ho(+S), m) : i;
|
|
9486
9486
|
}, m.filter = function(S) {
|
|
9487
|
-
return arguments.length ? (n = typeof S == "function" ? S :
|
|
9487
|
+
return arguments.length ? (n = typeof S == "function" ? S : ho(!!S), m) : n;
|
|
9488
9488
|
}, m.touchable = function(S) {
|
|
9489
|
-
return arguments.length ? (r = typeof S == "function" ? S :
|
|
9489
|
+
return arguments.length ? (r = typeof S == "function" ? S : ho(!!S), m) : r;
|
|
9490
9490
|
}, m.extent = function(S) {
|
|
9491
|
-
return arguments.length ? (t = typeof S == "function" ? S :
|
|
9491
|
+
return arguments.length ? (t = typeof S == "function" ? S : ho([[+S[0][0], +S[0][1]], [+S[1][0], +S[1][1]]]), m) : t;
|
|
9492
9492
|
}, m.scaleExtent = function(S) {
|
|
9493
9493
|
return arguments.length ? (o[0] = +S[0], o[1] = +S[1], m) : [o[0], o[1]];
|
|
9494
9494
|
}, m.translateExtent = function(S) {
|
|
@@ -9512,7 +9512,7 @@ class Uv {
|
|
|
9512
9512
|
constructor(t, e, i, r, o) {
|
|
9513
9513
|
this.resetButton = null, this.selectionRect = null, this.selectionStart = null, this.resetClickHandler = null;
|
|
9514
9514
|
const s = typeof t == "string" ? { type: t } : t;
|
|
9515
|
-
this.zoomKey = s.key, this.panKey = s.panKey;
|
|
9515
|
+
this.zoomKey = s.key, this.panKey = s.panKey, this.plotGroup = e;
|
|
9516
9516
|
const a = s.panning;
|
|
9517
9517
|
typeof a == "object" ? (this.panningEnabled = a.enabled !== !1, this.panningType = a.type || s.type) : (this.panningEnabled = a === !0, this.panningType = s.type);
|
|
9518
9518
|
const l = this.isMouseWheelEnabled(s.mouseWheel), c = this.getMouseWheelSensitivity(s.mouseWheel);
|
|
@@ -9523,10 +9523,10 @@ class Uv {
|
|
|
9523
9523
|
const h = !!s.selectionHandler;
|
|
9524
9524
|
this.zoomBehavior.filter((f) => f.type === "wheel" ? l : f.type === "mousedown" || f.type === "touchstart" ? h ? !1 : this.zoomKey ? this.isKeyPressed(f, this.zoomKey) : !0 : !0), e.call(this.zoomBehavior), c !== 1 && l && e.on("wheel.zoom", (f) => {
|
|
9525
9525
|
f.preventDefault();
|
|
9526
|
-
const u = e.node().__zoom ||
|
|
9526
|
+
const u = e.node().__zoom || Er, d = f.deltaY > 0 ? 1 / (1 + 0.1 * c) : 1 + 0.1 * c, p = Math.max(1, Math.min(20, u.k * d));
|
|
9527
9527
|
e.transition().duration(100).call(this.zoomBehavior.scaleTo, p);
|
|
9528
9528
|
}), s.selectionHandler && this.setupSelectionZoom(e, i, s, o), this.panningEnabled && this.panKey && this.setupPanning(e, i, o), this.resetButton = this.createResetButton(s.resetButton), this.resetClickHandler = () => {
|
|
9529
|
-
e.transition().duration(300).call(this.zoomBehavior.transform,
|
|
9529
|
+
e.transition().duration(300).call(this.zoomBehavior.transform, Er), this.resetButton.style.display = "none";
|
|
9530
9530
|
}, this.resetButton.addEventListener("click", this.resetClickHandler), r.appendChild(this.resetButton), o.on("zoom:changed", () => {
|
|
9531
9531
|
this.resetButton && (this.resetButton.style.display = "block");
|
|
9532
9532
|
});
|
|
@@ -9599,8 +9599,14 @@ class Uv {
|
|
|
9599
9599
|
return !0;
|
|
9600
9600
|
}
|
|
9601
9601
|
}
|
|
9602
|
+
/**
|
|
9603
|
+
* Mouse-wheel zoom is opt-in. Enabled by default it hijacks the wheel from
|
|
9604
|
+
* page/plot scrolling — on a scrollable chart the user can no longer scroll,
|
|
9605
|
+
* and each tick re-zooms the axis — so it only turns on when explicitly asked
|
|
9606
|
+
* for via `mouseWheel: true` (or `{ enabled: true }`).
|
|
9607
|
+
*/
|
|
9602
9608
|
isMouseWheelEnabled(t) {
|
|
9603
|
-
return
|
|
9609
|
+
return t === !0 || typeof t == "object" && t.enabled !== !1;
|
|
9604
9610
|
}
|
|
9605
9611
|
getMouseWheelSensitivity(t) {
|
|
9606
9612
|
return typeof t == "object" && t.sensitivity !== void 0 ? t.sensitivity : 1;
|
|
@@ -9635,6 +9641,16 @@ class Uv {
|
|
|
9635
9641
|
setResetButtonVisible(t) {
|
|
9636
9642
|
this.resetButton && (this.resetButton.style.display = t ? "block" : "none");
|
|
9637
9643
|
}
|
|
9644
|
+
/**
|
|
9645
|
+
* Clears any accumulated wheel/pinch zoom transform back to identity without
|
|
9646
|
+
* emitting a `zoom:changed` event, so the reset button can restore the original
|
|
9647
|
+
* view (whose domains the caller has already put back) instead of leaving a
|
|
9648
|
+
* stale transform that would re-zoom on the next wheel tick.
|
|
9649
|
+
*/
|
|
9650
|
+
resetTransform() {
|
|
9651
|
+
const t = this.plotGroup.node();
|
|
9652
|
+
t && (t.__zoom = Er);
|
|
9653
|
+
}
|
|
9638
9654
|
destroy() {
|
|
9639
9655
|
this.resetButton && (this.resetClickHandler && this.resetButton.removeEventListener("click", this.resetClickHandler), this.resetButton.remove());
|
|
9640
9656
|
}
|
|
@@ -9861,19 +9877,28 @@ class jv {
|
|
|
9861
9877
|
*/
|
|
9862
9878
|
selectionHandler: (s) => this.applyBoxZoom(s, i)
|
|
9863
9879
|
}, o = this.host.getEvents();
|
|
9864
|
-
this.zoom = new Uv(r, this.host.getPlotGroup(), this.host.getLayout().plotArea, this.host.getContainer(), o), this.zoom.setResetHandler(() => this.resetBoxZoom()), o.on("zoom:changed", (s) => {
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
}
|
|
9876
|
-
this.host.
|
|
9880
|
+
t.chart.scrollablePlotArea && (r.mouseWheel = !1), this.zoom = new Uv(r, this.host.getPlotGroup(), this.host.getLayout().plotArea, this.host.getContainer(), o), this.zoom.setResetHandler(() => this.resetBoxZoom()), o.on("zoom:changed", (s) => {
|
|
9881
|
+
var f;
|
|
9882
|
+
const a = s.transform, l = s.type, c = this.host.getLayout().plotArea, h = !this.isBoxZoomed;
|
|
9883
|
+
(l === "x" || l === "xy") && this.host.getXAxes().forEach((u, d) => {
|
|
9884
|
+
h && (this.origXDomains[d] = u.scale.domain());
|
|
9885
|
+
const p = this.origXDomains[d];
|
|
9886
|
+
if (!p || typeof p[0] != "number" || typeof p[1] != "number") return;
|
|
9887
|
+
const y = p[1] - p[0], g = (0 - a.x) / a.k, m = (c.width - a.x) / a.k;
|
|
9888
|
+
u.updateDomain({
|
|
9889
|
+
min: p[0] + g / c.width * y,
|
|
9890
|
+
max: p[0] + m / c.width * y
|
|
9891
|
+
});
|
|
9892
|
+
}), (l === "y" || l === "xy") && this.host.getYAxes().forEach((u, d) => {
|
|
9893
|
+
h && (this.origYDomains[d] = u.scale.domain());
|
|
9894
|
+
const p = this.origYDomains[d];
|
|
9895
|
+
if (!p || typeof p[0] != "number" || typeof p[1] != "number") return;
|
|
9896
|
+
const y = p[1] - p[0], g = (0 - a.y) / a.k, m = (c.height - a.y) / a.k;
|
|
9897
|
+
u.updateDomain({
|
|
9898
|
+
max: p[1] - g / c.height * y,
|
|
9899
|
+
min: p[1] - m / c.height * y
|
|
9900
|
+
});
|
|
9901
|
+
}), this.isBoxZoomed = !0, (f = this.zoom) == null || f.setResetButtonVisible(!0), this.host.renderAfterZoom();
|
|
9877
9902
|
});
|
|
9878
9903
|
}
|
|
9879
9904
|
/**
|
|
@@ -9895,14 +9920,14 @@ class jv {
|
|
|
9895
9920
|
}), this.isBoxZoomed = !0, (r = this.zoom) == null || r.setResetButtonVisible(!0), this.host.renderAfterZoom(), this.host.getEvents().emit("chart:afterZoom"), !0;
|
|
9896
9921
|
}
|
|
9897
9922
|
resetBoxZoom() {
|
|
9898
|
-
var t;
|
|
9899
|
-
this.isBoxZoomed && (this.host.getXAxes().forEach((
|
|
9900
|
-
const
|
|
9901
|
-
|
|
9902
|
-
}), this.host.getYAxes().forEach((
|
|
9903
|
-
const
|
|
9904
|
-
|
|
9905
|
-
}), this.isBoxZoomed = !1, this.origXDomains = [], this.origYDomains = [], (t = this.zoom) == null || t.setResetButtonVisible(!1), this.host.renderAfterZoom(), this.host.getEvents().emit("chart:afterZoom"));
|
|
9923
|
+
var t, e;
|
|
9924
|
+
this.isBoxZoomed && (this.host.getXAxes().forEach((i, r) => {
|
|
9925
|
+
const o = this.origXDomains[r];
|
|
9926
|
+
o && i.updateDomain({ min: o[0], max: o[1] });
|
|
9927
|
+
}), this.host.getYAxes().forEach((i, r) => {
|
|
9928
|
+
const o = this.origYDomains[r];
|
|
9929
|
+
o && i.updateDomain({ min: o[0], max: o[1] });
|
|
9930
|
+
}), this.isBoxZoomed = !1, this.origXDomains = [], this.origYDomains = [], (t = this.zoom) == null || t.resetTransform(), (e = this.zoom) == null || e.setResetButtonVisible(!1), this.host.renderAfterZoom(), this.host.getEvents().emit("chart:afterZoom"));
|
|
9906
9931
|
}
|
|
9907
9932
|
setupAccessibility() {
|
|
9908
9933
|
var i;
|
|
@@ -9945,7 +9970,7 @@ function Jh(n) {
|
|
|
9945
9970
|
function Qh(n) {
|
|
9946
9971
|
return [Jh(n[0]), Jh(n[1])];
|
|
9947
9972
|
}
|
|
9948
|
-
var
|
|
9973
|
+
var Po = {
|
|
9949
9974
|
name: "x",
|
|
9950
9975
|
handles: ["w", "e"].map(Ua),
|
|
9951
9976
|
input: function(n, t) {
|
|
@@ -10023,7 +10048,7 @@ function i2(n) {
|
|
|
10023
10048
|
return n[0][0] === n[1][0] || n[0][1] === n[1][1];
|
|
10024
10049
|
}
|
|
10025
10050
|
function r2() {
|
|
10026
|
-
return o2(
|
|
10051
|
+
return o2(Po);
|
|
10027
10052
|
}
|
|
10028
10053
|
function o2(n) {
|
|
10029
10054
|
var t = e2, e = t2, i = n2, r = !0, o = Ji("start", "brush", "end"), s = 6, a;
|
|
@@ -10110,7 +10135,7 @@ function o2(n) {
|
|
|
10110
10135
|
};
|
|
10111
10136
|
function u(g) {
|
|
10112
10137
|
if (a && !g.touches || !e.apply(this, arguments)) return;
|
|
10113
|
-
var m = this, x = g.target.__data__.type, v = (r && g.metaKey ? x = "overlay" : x) === "selection" ? Zh : r && g.altKey ? $i : Ti, b = n === ra ? null : Jv[x], k = n ===
|
|
10138
|
+
var m = this, x = g.target.__data__.type, v = (r && g.metaKey ? x = "overlay" : x) === "selection" ? Zh : r && g.altKey ? $i : Ti, b = n === ra ? null : Jv[x], k = n === Po ? null : Qv[x], M = oa(m), C = M.extent, L = M.selection, _ = C[0][0], T, I, E = C[0][1], P, S, w = C[1][0], A, $, R = C[1][1], F, D, z = 0, B = 0, H, J = b && k && r && g.shiftKey, X, j, W = Array.from(g.touches || [g], (at) => {
|
|
10114
10139
|
const ot = at.identifier;
|
|
10115
10140
|
return at = un(at, m), at.point0 = at.slice(), at.identifier = ot, at;
|
|
10116
10141
|
});
|
|
@@ -10121,10 +10146,10 @@ function o2(n) {
|
|
|
10121
10146
|
const at = [W[0], W[1] || W[0]];
|
|
10122
10147
|
M.selection = L = [[
|
|
10123
10148
|
T = n === ra ? _ : we(at[0][0], at[1][0]),
|
|
10124
|
-
P = n ===
|
|
10149
|
+
P = n === Po ? E : we(at[0][1], at[1][1])
|
|
10125
10150
|
], [
|
|
10126
10151
|
A = n === ra ? w : ve(at[0][0], at[1][0]),
|
|
10127
|
-
F = n ===
|
|
10152
|
+
F = n === Po ? R : ve(at[0][1], at[1][1])
|
|
10128
10153
|
]], W.length > 1 && ct(g);
|
|
10129
10154
|
} else
|
|
10130
10155
|
T = L[0][0], P = L[0][1], A = L[1][0], F = L[1][1];
|
|
@@ -10248,7 +10273,7 @@ function Rt(n) {
|
|
|
10248
10273
|
return n;
|
|
10249
10274
|
};
|
|
10250
10275
|
}
|
|
10251
|
-
const nu = Math.abs, ke = Math.atan2, ni = Math.cos, s2 = Math.max, sa = Math.min, vn = Math.sin, Re = Math.sqrt, Me = 1e-12, Ui = Math.PI, Ko = Ui / 2,
|
|
10276
|
+
const nu = Math.abs, ke = Math.atan2, ni = Math.cos, s2 = Math.max, sa = Math.min, vn = Math.sin, Re = Math.sqrt, Me = 1e-12, Ui = Math.PI, Ko = Ui / 2, Tr = 2 * Ui;
|
|
10252
10277
|
function a2(n) {
|
|
10253
10278
|
return n > 1 ? 0 : n < -1 ? Ui : Math.acos(n);
|
|
10254
10279
|
}
|
|
@@ -10316,7 +10341,7 @@ let h2 = class {
|
|
|
10316
10341
|
return this._;
|
|
10317
10342
|
}
|
|
10318
10343
|
};
|
|
10319
|
-
function
|
|
10344
|
+
function Zr(n) {
|
|
10320
10345
|
let t = 3;
|
|
10321
10346
|
return n.digits = function(e) {
|
|
10322
10347
|
if (!arguments.length) return t;
|
|
@@ -10350,7 +10375,7 @@ function m2(n, t, e, i, r, o, s, a) {
|
|
|
10350
10375
|
if (!(u * u < Me))
|
|
10351
10376
|
return u = (h * (t - o) - f * (n - r)) / u, [n + u * l, t + u * c];
|
|
10352
10377
|
}
|
|
10353
|
-
function
|
|
10378
|
+
function uo(n, t, e, i, r, o, s) {
|
|
10354
10379
|
var a = n - e, l = t - i, c = (s ? o : -o) / Re(a * a + l * l), h = c * l, f = -c * a, u = n + h, d = t + f, p = e + h, y = i + f, g = (u + p) / 2, m = (d + y) / 2, x = p - u, v = y - d, b = x * x + v * v, k = r - o, M = u * y - p * d, C = (v < 0 ? -1 : 1) * Re(s2(0, k * k * b - M * M)), L = (M * v - x * C) / b, _ = (-M * x - v * C) / b, T = (M * v + x * C) / b, I = (-M * x + v * C) / b, E = L - g, P = _ - m, S = T - g, w = I - m;
|
|
10355
10380
|
return E * E + P * P > S * S + w * w && (L = T, _ = I), {
|
|
10356
10381
|
cx: L,
|
|
@@ -10362,11 +10387,11 @@ function ho(n, t, e, i, r, o, s) {
|
|
|
10362
10387
|
};
|
|
10363
10388
|
}
|
|
10364
10389
|
function Se() {
|
|
10365
|
-
var n = u2, t = f2, e = Rt(0), i = null, r = d2, o = p2, s = g2, a = null, l =
|
|
10390
|
+
var n = u2, t = f2, e = Rt(0), i = null, r = d2, o = p2, s = g2, a = null, l = Zr(c);
|
|
10366
10391
|
function c() {
|
|
10367
10392
|
var h, f, u = +n.apply(this, arguments), d = +t.apply(this, arguments), p = r.apply(this, arguments) - Ko, y = o.apply(this, arguments) - Ko, g = nu(y - p), m = y > p;
|
|
10368
10393
|
if (a || (a = h = l()), d < u && (f = d, d = u, u = f), !(d > Me)) a.moveTo(0, 0);
|
|
10369
|
-
else if (g >
|
|
10394
|
+
else if (g > Tr - Me)
|
|
10370
10395
|
a.moveTo(d * ni(p), d * vn(p)), a.arc(0, 0, d, p, y, !m), u > Me && (a.moveTo(u * ni(y), u * vn(y)), a.arc(0, 0, u, y, p, m));
|
|
10371
10396
|
else {
|
|
10372
10397
|
var x = p, v = y, b = p, k = y, M = g, C = g, L = s.apply(this, arguments) / 2, _ = L > Me && (i ? +i.apply(this, arguments) : Re(u * u + d * d)), T = sa(nu(d - u) / 2, +e.apply(this, arguments)), I = T, E = T, P, S;
|
|
@@ -10384,7 +10409,7 @@ function Se() {
|
|
|
10384
10409
|
} else
|
|
10385
10410
|
I = E = 0;
|
|
10386
10411
|
}
|
|
10387
|
-
C > Me ? E > Me ? (P =
|
|
10412
|
+
C > Me ? E > Me ? (P = uo(H, J, $, R, d, E, m), S = uo(z, B, F, D, d, E, m), a.moveTo(P.cx + P.x01, P.cy + P.y01), E < T ? a.arc(P.cx, P.cy, E, ke(P.y01, P.x01), ke(S.y01, S.x01), !m) : (a.arc(P.cx, P.cy, E, ke(P.y01, P.x01), ke(P.y11, P.x11), !m), a.arc(0, 0, d, ke(P.cy + P.y11, P.cx + P.x11), ke(S.cy + S.y11, S.cx + S.x11), !m), a.arc(S.cx, S.cy, E, ke(S.y11, S.x11), ke(S.y01, S.x01), !m))) : (a.moveTo($, R), a.arc(0, 0, d, x, v, !m)) : a.moveTo($, R), !(u > Me) || !(M > Me) ? a.lineTo(F, D) : I > Me ? (P = uo(F, D, z, B, u, -I, m), S = uo($, R, H, J, u, -I, m), a.lineTo(P.cx + P.x01, P.cy + P.y01), I < T ? a.arc(P.cx, P.cy, I, ke(P.y01, P.x01), ke(S.y01, S.x01), !m) : (a.arc(P.cx, P.cy, I, ke(P.y01, P.x01), ke(P.y11, P.x11), !m), a.arc(0, 0, u, ke(P.cy + P.y11, P.cx + P.x11), ke(S.cy + S.y11, S.cx + S.x11), m), a.arc(S.cx, S.cy, I, ke(S.y11, S.x11), ke(S.y01, S.x01), !m))) : a.arc(0, 0, u, k, b, m);
|
|
10388
10413
|
}
|
|
10389
10414
|
if (a.closePath(), h) return a = null, h + "" || null;
|
|
10390
10415
|
}
|
|
@@ -10452,7 +10477,7 @@ function Jc(n) {
|
|
|
10452
10477
|
return n[1];
|
|
10453
10478
|
}
|
|
10454
10479
|
function gi(n, t) {
|
|
10455
|
-
var e = Rt(!0), i = null, r = Qi, o = null, s =
|
|
10480
|
+
var e = Rt(!0), i = null, r = Qi, o = null, s = Zr(a);
|
|
10456
10481
|
n = typeof n == "function" ? n : n === void 0 ? Kc : Rt(n), t = typeof t == "function" ? t : t === void 0 ? Jc : Rt(t);
|
|
10457
10482
|
function a(l) {
|
|
10458
10483
|
var c, h = (l = Zc(l)).length, f, u = !1, d;
|
|
@@ -10473,7 +10498,7 @@ function gi(n, t) {
|
|
|
10473
10498
|
}, a;
|
|
10474
10499
|
}
|
|
10475
10500
|
function Ii(n, t, e) {
|
|
10476
|
-
var i = null, r = Rt(!0), o = null, s = Qi, a = null, l =
|
|
10501
|
+
var i = null, r = Rt(!0), o = null, s = Qi, a = null, l = Zr(c);
|
|
10477
10502
|
n = typeof n == "function" ? n : n === void 0 ? Kc : Rt(+n), t = typeof t == "function" ? t : Rt(t === void 0 ? 0 : +t), e = typeof e == "function" ? e : e === void 0 ? Jc : Rt(+e);
|
|
10478
10503
|
function c(f) {
|
|
10479
10504
|
var u, d, p, y = (f = Zc(f)).length, g, m = !1, x, v = new Array(y), b = new Array(y);
|
|
@@ -10526,9 +10551,9 @@ function b2(n) {
|
|
|
10526
10551
|
return n;
|
|
10527
10552
|
}
|
|
10528
10553
|
function v2() {
|
|
10529
|
-
var n = b2, t = x2, e = null, i = Rt(0), r = Rt(
|
|
10554
|
+
var n = b2, t = x2, e = null, i = Rt(0), r = Rt(Tr), o = Rt(0);
|
|
10530
10555
|
function s(a) {
|
|
10531
|
-
var l, c = (a = Zc(a)).length, h, f, u = 0, d = new Array(c), p = new Array(c), y = +i.apply(this, arguments), g = Math.min(
|
|
10556
|
+
var l, c = (a = Zc(a)).length, h, f, u = 0, d = new Array(c), p = new Array(c), y = +i.apply(this, arguments), g = Math.min(Tr, Math.max(-Tr, r.apply(this, arguments) - y)), m, x = Math.min(Math.abs(g) / c, o.apply(this, arguments)), v = x * (g < 0 ? -1 : 1), b;
|
|
10532
10557
|
for (l = 0; l < c; ++l)
|
|
10533
10558
|
(b = p[d[l] = l] = +n(a[l], l, a)) > 0 && (u += b);
|
|
10534
10559
|
for (t != null ? d.sort(function(k, M) {
|
|
@@ -10655,7 +10680,7 @@ function _2(n) {
|
|
|
10655
10680
|
return n.target;
|
|
10656
10681
|
}
|
|
10657
10682
|
function _d(n) {
|
|
10658
|
-
let t = S2, e = _2, i = Kc, r = Jc, o = null, s = null, a =
|
|
10683
|
+
let t = S2, e = _2, i = Kc, r = Jc, o = null, s = null, a = Zr(l);
|
|
10659
10684
|
function l() {
|
|
10660
10685
|
let c;
|
|
10661
10686
|
const h = y2.call(arguments), f = t.apply(this, h), u = e.apply(this, h);
|
|
@@ -10682,7 +10707,7 @@ function P2() {
|
|
|
10682
10707
|
const ti = {
|
|
10683
10708
|
draw(n, t) {
|
|
10684
10709
|
const e = Re(t / Ui);
|
|
10685
|
-
n.moveTo(e, 0), n.arc(0, 0, e, 0,
|
|
10710
|
+
n.moveTo(e, 0), n.arc(0, 0, e, 0, Tr);
|
|
10686
10711
|
}
|
|
10687
10712
|
}, tl = {
|
|
10688
10713
|
draw(n, t) {
|
|
@@ -10711,7 +10736,7 @@ const ti = {
|
|
|
10711
10736
|
}
|
|
10712
10737
|
};
|
|
10713
10738
|
function en(n, t) {
|
|
10714
|
-
let e = null, i =
|
|
10739
|
+
let e = null, i = Zr(r);
|
|
10715
10740
|
n = typeof n == "function" ? n : Rt(n || ti), t = typeof t == "function" ? t : Rt(t === void 0 ? 64 : +t);
|
|
10716
10741
|
function r() {
|
|
10717
10742
|
let o;
|
|
@@ -11157,7 +11182,7 @@ const Zn = class Zn {
|
|
|
11157
11182
|
var h, f;
|
|
11158
11183
|
this.xAxes = [], this.yAxes = [], this.seriesInstances = [], this.tooltip = null, this.legend = null, this.crosshair = null, this.credits = null, this.exportButton = null, this.responsiveEngine = null, this.stock = null, this.clipPathId = "", this.autoHeight = !1, this.resizeObserver = null, this.isResponsiveUpdate = !1, this.scrollableInner = null, this.scrollableOuterWidth = 0, this.scrollableOuterHeight = 0, this.useVerticalScroll = !1, this.useHorizontalScroll = !1, this.fixedAxisOverlay = null, this.container = bv(t), this.container.style.position = "relative";
|
|
11159
11184
|
const i = new hi();
|
|
11160
|
-
this.options = i.parse(e), this.originalUserOptions =
|
|
11185
|
+
this.options = i.parse(e), this.originalUserOptions = no(e), rv(((h = this.options.time) == null ? void 0 : h.useUTC) !== !1), this.events = new oy(), this.state = new sy(this.options, this.events), this.layoutEngine = new hy();
|
|
11161
11186
|
const r = Vh(this.container, this.getDefaultHeightAspectRatio()), o = this.options.chart.width || r.width || 600, s = this.resolveHeight(this.options.chart.height, r.height), a = this.options.chart.scrollablePlotArea, l = (a == null ? void 0 : a.minHeight) && a.minHeight > s, c = (a == null ? void 0 : a.minWidth) && a.minWidth > o;
|
|
11162
11187
|
this.autoHeight = this.options.chart.height == null && !r.heightMeasured, this.chartWidth = c ? a.minWidth : o, this.chartHeight = l ? a.minHeight : s, this.scrollableOuterWidth = o, this.scrollableOuterHeight = s, this.useVerticalScroll = !!l, this.useHorizontalScroll = !!c, (l || c) && (this.container.style.position = "relative", this.container.querySelectorAll(":scope > [data-katu-scrollable-inner]").forEach((p) => {
|
|
11163
11188
|
var y;
|
|
@@ -11419,7 +11444,7 @@ const Zn = class Zn {
|
|
|
11419
11444
|
if (r.length === 0) continue;
|
|
11420
11445
|
const o = /* @__PURE__ */ new Map();
|
|
11421
11446
|
for (const { series: a, cfg: l } of r) {
|
|
11422
|
-
const c =
|
|
11447
|
+
const c = Co(l);
|
|
11423
11448
|
o.has(c) || o.set(c, {
|
|
11424
11449
|
totals: /* @__PURE__ */ new Map(),
|
|
11425
11450
|
series: [],
|
|
@@ -11467,7 +11492,7 @@ const Zn = class Zn {
|
|
|
11467
11492
|
const u = f._internalType;
|
|
11468
11493
|
t.set(u, (t.get(u) || 0) + 1), e.set(u, 0);
|
|
11469
11494
|
}
|
|
11470
|
-
const i = this.options.chart.animation !== !1, r =
|
|
11495
|
+
const i = this.options.chart.animation !== !1, r = Co, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
11471
11496
|
for (let f = 0; f < this.options.series.length; f++) {
|
|
11472
11497
|
const u = this.options.series[f];
|
|
11473
11498
|
if (u.stacking) {
|
|
@@ -11608,7 +11633,7 @@ const Zn = class Zn {
|
|
|
11608
11633
|
const t = this.responsiveEngine.evaluate(this.chartWidth, this.chartHeight);
|
|
11609
11634
|
if (t.changed && t.matchingIndices.length > 0) {
|
|
11610
11635
|
const e = this.responsiveEngine.getRules();
|
|
11611
|
-
let i =
|
|
11636
|
+
let i = no(this.originalUserOptions);
|
|
11612
11637
|
for (const o of t.matchingIndices)
|
|
11613
11638
|
i = fe(i, e[o].chartOptions);
|
|
11614
11639
|
const r = new hi();
|
|
@@ -11653,7 +11678,7 @@ const Zn = class Zn {
|
|
|
11653
11678
|
update(t, e = !0) {
|
|
11654
11679
|
var a;
|
|
11655
11680
|
this.isResponsiveUpdate || (this.originalUserOptions = fe(
|
|
11656
|
-
|
|
11681
|
+
no(this.originalUserOptions),
|
|
11657
11682
|
t
|
|
11658
11683
|
));
|
|
11659
11684
|
const i = new hi(), r = fe(this.optionsToExternal(), t);
|
|
@@ -11681,7 +11706,7 @@ const Zn = class Zn {
|
|
|
11681
11706
|
c.animateAxis(this.axisGroup, this.layout.plotArea, t);
|
|
11682
11707
|
for (const c of this.yAxes)
|
|
11683
11708
|
c.animateAxis(this.axisGroup, this.layout.plotArea, t);
|
|
11684
|
-
const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a =
|
|
11709
|
+
const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = Co, l = /* @__PURE__ */ new Map();
|
|
11685
11710
|
for (const c of this.seriesInstances) {
|
|
11686
11711
|
if (!c.visible) continue;
|
|
11687
11712
|
const h = c.config._internalType;
|
|
@@ -11729,7 +11754,7 @@ const Zn = class Zn {
|
|
|
11729
11754
|
const o = this.responsiveEngine.evaluate(e, i);
|
|
11730
11755
|
if (o.changed) {
|
|
11731
11756
|
const s = this.responsiveEngine.getRules();
|
|
11732
|
-
let a =
|
|
11757
|
+
let a = no(this.originalUserOptions);
|
|
11733
11758
|
for (const l of o.matchingIndices)
|
|
11734
11759
|
a = fe(a, s[l].chartOptions);
|
|
11735
11760
|
this.isResponsiveUpdate = !0, this.update(a, !1), this.isResponsiveUpdate = !1;
|
|
@@ -14453,16 +14478,16 @@ function nk(n) {
|
|
|
14453
14478
|
function ik(n, t, e) {
|
|
14454
14479
|
return n.a.parent === t.parent ? n.a : e;
|
|
14455
14480
|
}
|
|
14456
|
-
function
|
|
14481
|
+
function Eo(n, t) {
|
|
14457
14482
|
this._ = n, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
|
|
14458
14483
|
}
|
|
14459
|
-
|
|
14484
|
+
Eo.prototype = Object.create(ji.prototype);
|
|
14460
14485
|
function rk(n) {
|
|
14461
|
-
for (var t = new
|
|
14486
|
+
for (var t = new Eo(n, 0), e, i = [t], r, o, s, a; e = i.pop(); )
|
|
14462
14487
|
if (o = e._.children)
|
|
14463
14488
|
for (e.children = new Array(a = o.length), s = a - 1; s >= 0; --s)
|
|
14464
|
-
i.push(r = e.children[s] = new
|
|
14465
|
-
return (t.parent = new
|
|
14489
|
+
i.push(r = e.children[s] = new Eo(o[s], s)), r.parent = e;
|
|
14490
|
+
return (t.parent = new Eo(null, 0)).children = [t], t;
|
|
14466
14491
|
}
|
|
14467
14492
|
function ok() {
|
|
14468
14493
|
var n = tk, t = 1, e = 1, i = null;
|
|
@@ -14512,7 +14537,7 @@ function ok() {
|
|
|
14512
14537
|
return arguments.length ? (i = !0, t = +c[0], e = +c[1], r) : i ? [t, e] : null;
|
|
14513
14538
|
}, r;
|
|
14514
14539
|
}
|
|
14515
|
-
function
|
|
14540
|
+
function $r(n, t, e, i, r) {
|
|
14516
14541
|
for (var o = n.children, s, a = -1, l = o.length, c = n.value && (r - e) / n.value; ++a < l; )
|
|
14517
14542
|
s = o[a], s.x0 = t, s.x1 = i, s.y0 = e, s.y1 = e += s.value * c;
|
|
14518
14543
|
}
|
|
@@ -14530,11 +14555,11 @@ function ak(n, t, e, i, r, o) {
|
|
|
14530
14555
|
}
|
|
14531
14556
|
b = v;
|
|
14532
14557
|
}
|
|
14533
|
-
s.push(l = { value: g, dice: d < p, children: a.slice(h, f) }), l.dice ? Ps(l, e, i, r, y ? i += p * g / y : o) :
|
|
14558
|
+
s.push(l = { value: g, dice: d < p, children: a.slice(h, f) }), l.dice ? Ps(l, e, i, r, y ? i += p * g / y : o) : $r(l, e, i, y ? e += d * g / y : r, o), y -= g, h = f;
|
|
14534
14559
|
}
|
|
14535
14560
|
return s;
|
|
14536
14561
|
}
|
|
14537
|
-
const
|
|
14562
|
+
const To = function n(t) {
|
|
14538
14563
|
function e(i, r, o, s, a) {
|
|
14539
14564
|
ak(t, i, r, o, s, a);
|
|
14540
14565
|
}
|
|
@@ -14543,7 +14568,7 @@ const Eo = function n(t) {
|
|
|
14543
14568
|
}, e;
|
|
14544
14569
|
}(sk);
|
|
14545
14570
|
function ck() {
|
|
14546
|
-
var n =
|
|
14571
|
+
var n = To, t = !1, e = 1, i = 1, r = [0], o = gr, s = gr, a = gr, l = gr, c = gr;
|
|
14547
14572
|
function h(u) {
|
|
14548
14573
|
return u.x0 = u.y0 = 0, u.x1 = e, u.y1 = i, u.eachBefore(f), r = [0], t && u.eachBefore(Yd), u;
|
|
14549
14574
|
}
|
|
@@ -14600,7 +14625,7 @@ function lk(n, t, e, i, r) {
|
|
|
14600
14625
|
}
|
|
14601
14626
|
}
|
|
14602
14627
|
function yr(n, t, e, i, r) {
|
|
14603
|
-
(n.depth & 1 ?
|
|
14628
|
+
(n.depth & 1 ? $r : Ps)(n, t, e, i, r);
|
|
14604
14629
|
}
|
|
14605
14630
|
function hk(n, t, e) {
|
|
14606
14631
|
return n ? n.split(/<br\s*\/?>/i).map((r) => {
|
|
@@ -14635,16 +14660,16 @@ class fk extends Xt {
|
|
|
14635
14660
|
render() {
|
|
14636
14661
|
var T, I, E;
|
|
14637
14662
|
const { plotArea: t, colors: e } = this.context, i = this.context.animate, r = this.data, o = this.config.levels || [], s = this.config.colorByPoint !== !1, a = this.config.allowTraversingTree === !0 || this.config.allowDrillToNode === !0, l = this.config.interactByLeaf ?? !a, c = this.config.alternateStartingDirection === !0, h = ((I = (T = this.config.states) == null ? void 0 : T.inactive) == null ? void 0 : I.opacity) ?? 0.4, f = this.buildHierarchy(r), u = a && this.currentRoot ? this.currentRoot : f, d = {
|
|
14638
|
-
squarify:
|
|
14639
|
-
squarified:
|
|
14663
|
+
squarify: To,
|
|
14664
|
+
squarified: To,
|
|
14640
14665
|
binary: lk,
|
|
14641
14666
|
dice: Ps,
|
|
14642
|
-
slice:
|
|
14667
|
+
slice: $r,
|
|
14643
14668
|
sliceDice: yr,
|
|
14644
14669
|
sliceAndDice: yr,
|
|
14645
|
-
strip:
|
|
14646
|
-
stripes:
|
|
14647
|
-
}, p = this.config.layoutAlgorithm || "squarified", y = d[p] ||
|
|
14670
|
+
strip: $r,
|
|
14671
|
+
stripes: $r
|
|
14672
|
+
}, p = this.config.layoutAlgorithm || "squarified", y = d[p] || To, g = this.config.layoutStartingDirection || "vertical", m = this.config.opacity ?? 1, x = c || p === "sliceAndDice" || p === "sliceDice" ? yr : y, v = (P, S) => {
|
|
14648
14673
|
var $, R;
|
|
14649
14674
|
const w = (($ = P.data) == null ? void 0 : $.sortIndex) ?? 0, A = ((R = S.data) == null ? void 0 : R.sortIndex) ?? 0;
|
|
14650
14675
|
return w !== A ? w - A : (S.value || 0) - (P.value || 0);
|
|
@@ -15421,7 +15446,7 @@ class gk extends Xt {
|
|
|
15421
15446
|
return { xMin: 0, xMax: 0, yMin: 0, yMax: 0 };
|
|
15422
15447
|
}
|
|
15423
15448
|
}
|
|
15424
|
-
const mk =
|
|
15449
|
+
const mk = qr("~s");
|
|
15425
15450
|
function yk(n) {
|
|
15426
15451
|
return n === 0 ? "0" : n >= 1e3 ? mk(n).replace("G", "B") : String(n);
|
|
15427
15452
|
}
|
|
@@ -15695,7 +15720,7 @@ class vk extends Xt {
|
|
|
15695
15720
|
return { xMin: t, xMax: e, yMin: 0, yMax: 0 };
|
|
15696
15721
|
}
|
|
15697
15722
|
}
|
|
15698
|
-
var At = 1e-6, Xd = 1e-12, zt = Math.PI, ee = zt / 2, yu = zt / 4, qe = zt * 2, Ie = 180 / zt, te = zt / 180, Gt = Math.abs, tr = Math.atan, Wn = Math.atan2, Dt = Math.cos,
|
|
15723
|
+
var At = 1e-6, Xd = 1e-12, zt = Math.PI, ee = zt / 2, yu = zt / 4, qe = zt * 2, Ie = 180 / zt, te = zt / 180, Gt = Math.abs, tr = Math.atan, Wn = Math.atan2, Dt = Math.cos, fo = Math.ceil, Ud = Math.exp, Qo = Math.log, da = Math.pow, Pt = Math.sin, an = Math.sign || function(n) {
|
|
15699
15724
|
return n > 0 ? 1 : n < 0 ? -1 : 0;
|
|
15700
15725
|
}, He = Math.sqrt, sl = Math.tan;
|
|
15701
15726
|
function qd(n) {
|
|
@@ -15762,7 +15787,7 @@ function Zi(n) {
|
|
|
15762
15787
|
var t = n[0], e = n[1], i = Dt(e);
|
|
15763
15788
|
return [i * Dt(t), i * Pt(t), Pt(e)];
|
|
15764
15789
|
}
|
|
15765
|
-
function
|
|
15790
|
+
function po(n, t) {
|
|
15766
15791
|
return n[0] * t[0] + n[1] * t[1] + n[2] * t[2];
|
|
15767
15792
|
}
|
|
15768
15793
|
function es(n, t) {
|
|
@@ -15771,7 +15796,7 @@ function es(n, t) {
|
|
|
15771
15796
|
function pa(n, t) {
|
|
15772
15797
|
n[0] += t[0], n[1] += t[1], n[2] += t[2];
|
|
15773
15798
|
}
|
|
15774
|
-
function
|
|
15799
|
+
function go(n, t) {
|
|
15775
15800
|
return [n[0] * t, n[1] * t, n[2] * t];
|
|
15776
15801
|
}
|
|
15777
15802
|
function ec(n) {
|
|
@@ -15860,10 +15885,10 @@ function Zd() {
|
|
|
15860
15885
|
}
|
|
15861
15886
|
};
|
|
15862
15887
|
}
|
|
15863
|
-
function
|
|
15888
|
+
function $o(n, t) {
|
|
15864
15889
|
return Gt(n[0] - t[0]) < At && Gt(n[1] - t[1]) < At;
|
|
15865
15890
|
}
|
|
15866
|
-
function
|
|
15891
|
+
function mo(n, t, e, i) {
|
|
15867
15892
|
this.x = n, this.z = t, this.o = e, this.e = i, this.v = !1, this.n = this.p = null;
|
|
15868
15893
|
}
|
|
15869
15894
|
function Kd(n, t, e, i, r) {
|
|
@@ -15871,7 +15896,7 @@ function Kd(n, t, e, i, r) {
|
|
|
15871
15896
|
if (n.forEach(function(p) {
|
|
15872
15897
|
if (!((y = p.length - 1) <= 0)) {
|
|
15873
15898
|
var y, g = p[0], m = p[y], x;
|
|
15874
|
-
if (
|
|
15899
|
+
if ($o(g, m)) {
|
|
15875
15900
|
if (!g[2] && !m[2]) {
|
|
15876
15901
|
for (r.lineStart(), a = 0; a < y; ++a) r.point((g = p[a])[0], g[1]);
|
|
15877
15902
|
r.lineEnd();
|
|
@@ -15879,7 +15904,7 @@ function Kd(n, t, e, i, r) {
|
|
|
15879
15904
|
}
|
|
15880
15905
|
m[0] += 2 * At;
|
|
15881
15906
|
}
|
|
15882
|
-
o.push(x = new
|
|
15907
|
+
o.push(x = new mo(g, p, null, !0)), s.push(x.o = new mo(g, null, x, !1)), o.push(x = new mo(m, p, null, !1)), s.push(x.o = new mo(m, null, x, !0));
|
|
15883
15908
|
}
|
|
15884
15909
|
}), !!o.length) {
|
|
15885
15910
|
for (s.sort(t), Su(o), Su(s), a = 0, l = s.length; a < l; ++a)
|
|
@@ -16050,13 +16075,13 @@ function Ek(n) {
|
|
|
16050
16075
|
},
|
|
16051
16076
|
point: function(g, m) {
|
|
16052
16077
|
var x = [g, m], v, b = s(g, m), k = i ? b ? 0 : c(g, m) : b ? c(g + (g < 0 ? zt : -zt), m) : 0;
|
|
16053
|
-
if (!f && (p = d = b) && h.lineStart(), b !== d && (v = l(f, x), (!v ||
|
|
16078
|
+
if (!f && (p = d = b) && h.lineStart(), b !== d && (v = l(f, x), (!v || $o(f, v) || $o(x, v)) && (x[2] = 1)), b !== d)
|
|
16054
16079
|
y = 0, b ? (h.lineStart(), v = l(x, f), h.point(v[0], v[1])) : (v = l(f, x), h.point(v[0], v[1], 2), h.lineEnd()), f = v;
|
|
16055
16080
|
else if (r && f && i ^ b) {
|
|
16056
16081
|
var M;
|
|
16057
16082
|
!(k & u) && (M = l(x, f, !0)) && (y = 0, i ? (h.lineStart(), h.point(M[0][0], M[0][1]), h.point(M[1][0], M[1][1]), h.lineEnd()) : (h.point(M[1][0], M[1][1]), h.lineEnd(), h.lineStart(), h.point(M[0][0], M[0][1], 3)));
|
|
16058
16083
|
}
|
|
16059
|
-
b && (!f ||
|
|
16084
|
+
b && (!f || !$o(f, x)) && h.point(x[0], x[1]), f = x, d = b, u = k;
|
|
16060
16085
|
},
|
|
16061
16086
|
lineEnd: function() {
|
|
16062
16087
|
d && h.lineEnd(), f = null;
|
|
@@ -16069,19 +16094,19 @@ function Ek(n) {
|
|
|
16069
16094
|
};
|
|
16070
16095
|
}
|
|
16071
16096
|
function l(h, f, u) {
|
|
16072
|
-
var d = Zi(h), p = Zi(f), y = [1, 0, 0], g = es(d, p), m =
|
|
16097
|
+
var d = Zi(h), p = Zi(f), y = [1, 0, 0], g = es(d, p), m = po(g, g), x = g[0], v = m - x * x;
|
|
16073
16098
|
if (!v) return !u && h;
|
|
16074
|
-
var b = t * m / v, k = -t * x / v, M = es(y, g), C =
|
|
16099
|
+
var b = t * m / v, k = -t * x / v, M = es(y, g), C = go(y, b), L = go(g, k);
|
|
16075
16100
|
pa(C, L);
|
|
16076
|
-
var _ = M, T =
|
|
16101
|
+
var _ = M, T = po(C, _), I = po(_, _), E = T * T - I * (po(C, C) - 1);
|
|
16077
16102
|
if (!(E < 0)) {
|
|
16078
|
-
var P = He(E), S =
|
|
16103
|
+
var P = He(E), S = go(_, (-T - P) / I);
|
|
16079
16104
|
if (pa(S, C), S = tc(S), !u) return S;
|
|
16080
16105
|
var w = h[0], A = f[0], $ = h[1], R = f[1], F;
|
|
16081
16106
|
A < w && (F = w, w = A, A = F);
|
|
16082
16107
|
var D = A - w, z = Gt(D - zt) < At, B = z || D < At;
|
|
16083
16108
|
if (!z && R < $ && (F = $, $ = R, R = F), B ? z ? $ + R > 0 ^ S[1] < (Gt(S[0] - w) < At ? $ : R) : $ <= S[1] && S[1] <= R : D > zt ^ (w <= S[0] && S[0] <= A)) {
|
|
16084
|
-
var H =
|
|
16109
|
+
var H = go(_, (-T + P) / I);
|
|
16085
16110
|
return pa(H, C), [S, tc(H)];
|
|
16086
16111
|
}
|
|
16087
16112
|
}
|
|
@@ -16132,7 +16157,7 @@ function Tk(n, t, e, i, r, o) {
|
|
|
16132
16157
|
}
|
|
16133
16158
|
}
|
|
16134
16159
|
}
|
|
16135
|
-
var Mr = 1e9,
|
|
16160
|
+
var Mr = 1e9, yo = -Mr;
|
|
16136
16161
|
function $k(n, t, e, i) {
|
|
16137
16162
|
function r(c, h) {
|
|
16138
16163
|
return n <= c && c <= e && t <= h && h <= i;
|
|
@@ -16192,7 +16217,7 @@ function $k(n, t, e, i) {
|
|
|
16192
16217
|
y = w, g = A, m = $, k = !1, $ && (h.lineStart(), h.point(w, A));
|
|
16193
16218
|
else if ($ && b) h.point(w, A);
|
|
16194
16219
|
else {
|
|
16195
|
-
var R = [x = Math.max(
|
|
16220
|
+
var R = [x = Math.max(yo, Math.min(Mr, x)), v = Math.max(yo, Math.min(Mr, v))], F = [w = Math.max(yo, Math.min(Mr, w)), A = Math.max(yo, Math.min(Mr, A))];
|
|
16196
16221
|
Tk(R, F, n, t, e, i) ? (b || (h.lineStart(), h.point(R[0], R[1])), h.point(F[0], F[1]), $ || h.lineEnd(), M = !1) : $ && (h.lineStart(), h.point(w, A), M = !1);
|
|
16197
16222
|
}
|
|
16198
16223
|
x = w, v = A, b = $;
|
|
@@ -16222,9 +16247,9 @@ function Lk() {
|
|
|
16222
16247
|
return { type: "MultiLineString", coordinates: x() };
|
|
16223
16248
|
}
|
|
16224
16249
|
function x() {
|
|
16225
|
-
return ui(
|
|
16250
|
+
return ui(fo(i / h) * h, e, h).map(p).concat(ui(fo(a / f) * f, s, f).map(y)).concat(ui(fo(t / l) * l, n, l).filter(function(v) {
|
|
16226
16251
|
return Gt(v % h) > At;
|
|
16227
|
-
}).map(u)).concat(ui(
|
|
16252
|
+
}).map(u)).concat(ui(fo(o / c) * c, r, c).filter(function(v) {
|
|
16228
16253
|
return Gt(v % f) > At;
|
|
16229
16254
|
}).map(d));
|
|
16230
16255
|
}
|
|
@@ -16287,19 +16312,19 @@ function ep(n, t) {
|
|
|
16287
16312
|
function Rk() {
|
|
16288
16313
|
ep(Qd, tp);
|
|
16289
16314
|
}
|
|
16290
|
-
var Ki = 1 / 0, ns = Ki,
|
|
16315
|
+
var Ki = 1 / 0, ns = Ki, Gr = -Ki, is = Gr, rs = {
|
|
16291
16316
|
point: Dk,
|
|
16292
16317
|
lineStart: cn,
|
|
16293
16318
|
lineEnd: cn,
|
|
16294
16319
|
polygonStart: cn,
|
|
16295
16320
|
polygonEnd: cn,
|
|
16296
16321
|
result: function() {
|
|
16297
|
-
var n = [[Ki, ns], [
|
|
16298
|
-
return
|
|
16322
|
+
var n = [[Ki, ns], [Gr, is]];
|
|
16323
|
+
return Gr = is = -(ns = Ki = 1 / 0), n;
|
|
16299
16324
|
}
|
|
16300
16325
|
};
|
|
16301
16326
|
function Dk(n, t) {
|
|
16302
|
-
n < Ki && (Ki = n), n >
|
|
16327
|
+
n < Ki && (Ki = n), n > Gr && (Gr = n), t < ns && (ns = t), t > is && (is = t);
|
|
16303
16328
|
}
|
|
16304
16329
|
var cc = 0, lc = 0, Ar = 0, os = 0, ss = 0, Ri = 0, hc = 0, uc = 0, Sr = 0, np, ip, wn, kn, nn = {
|
|
16305
16330
|
point: vi,
|
|
@@ -16383,13 +16408,13 @@ op.prototype = {
|
|
|
16383
16408
|
},
|
|
16384
16409
|
result: cn
|
|
16385
16410
|
};
|
|
16386
|
-
var fc = new yi(), ya, sp, ap, _r, Cr,
|
|
16411
|
+
var fc = new yi(), ya, sp, ap, _r, Cr, Yr = {
|
|
16387
16412
|
point: cn,
|
|
16388
16413
|
lineStart: function() {
|
|
16389
|
-
|
|
16414
|
+
Yr.point = Hk;
|
|
16390
16415
|
},
|
|
16391
16416
|
lineEnd: function() {
|
|
16392
|
-
ya && cp(sp, ap),
|
|
16417
|
+
ya && cp(sp, ap), Yr.point = cn;
|
|
16393
16418
|
},
|
|
16394
16419
|
polygonStart: function() {
|
|
16395
16420
|
ya = !0;
|
|
@@ -16403,7 +16428,7 @@ var fc = new yi(), ya, sp, ap, _r, Cr, Gr = {
|
|
|
16403
16428
|
}
|
|
16404
16429
|
};
|
|
16405
16430
|
function Hk(n, t) {
|
|
16406
|
-
|
|
16431
|
+
Yr.point = cp, sp = _r = n, ap = Cr = t;
|
|
16407
16432
|
}
|
|
16408
16433
|
function cp(n, t) {
|
|
16409
16434
|
_r -= n, Cr -= t, fc.add(He(_r * _r + Cr * Cr)), _r = n, Cr = t;
|
|
@@ -16482,7 +16507,7 @@ function Gk(n, t) {
|
|
|
16482
16507
|
return s.area = function(a) {
|
|
16483
16508
|
return Fi(a, r(Ln)), Ln.result();
|
|
16484
16509
|
}, s.measure = function(a) {
|
|
16485
|
-
return Fi(a, r(
|
|
16510
|
+
return Fi(a, r(Yr)), Yr.result();
|
|
16486
16511
|
}, s.bounds = function(a) {
|
|
16487
16512
|
return Fi(a, r(rs)), rs.result();
|
|
16488
16513
|
}, s.centroid = function(a) {
|
|
@@ -16806,7 +16831,7 @@ function gp(n) {
|
|
|
16806
16831
|
];
|
|
16807
16832
|
};
|
|
16808
16833
|
}
|
|
16809
|
-
function
|
|
16834
|
+
function Kr(n) {
|
|
16810
16835
|
return function(t, e) {
|
|
16811
16836
|
var i = He(t * t + e * e), r = n(i), o = Pt(r), s = Dt(r);
|
|
16812
16837
|
return [
|
|
@@ -16818,7 +16843,7 @@ function Zr(n) {
|
|
|
16818
16843
|
var mp = gp(function(n) {
|
|
16819
16844
|
return He(2 / (1 + n));
|
|
16820
16845
|
});
|
|
16821
|
-
mp.invert =
|
|
16846
|
+
mp.invert = Kr(function(n) {
|
|
16822
16847
|
return 2 * ln(n / 2);
|
|
16823
16848
|
});
|
|
16824
16849
|
function eM() {
|
|
@@ -16827,7 +16852,7 @@ function eM() {
|
|
|
16827
16852
|
var yp = gp(function(n) {
|
|
16828
16853
|
return (n = qd(n)) && n / Pt(n);
|
|
16829
16854
|
});
|
|
16830
|
-
yp.invert =
|
|
16855
|
+
yp.invert = Kr(function(n) {
|
|
16831
16856
|
return n;
|
|
16832
16857
|
});
|
|
16833
16858
|
function nM() {
|
|
@@ -16859,15 +16884,15 @@ function xp(n) {
|
|
|
16859
16884
|
}
|
|
16860
16885
|
return h();
|
|
16861
16886
|
}
|
|
16862
|
-
function
|
|
16887
|
+
function xo(n) {
|
|
16863
16888
|
return sl((ee + n) / 2);
|
|
16864
16889
|
}
|
|
16865
16890
|
function iM(n, t) {
|
|
16866
|
-
var e = Dt(n), i = n === t ? Pt(n) : Qo(e / Dt(t)) / Qo(
|
|
16891
|
+
var e = Dt(n), i = n === t ? Pt(n) : Qo(e / Dt(t)) / Qo(xo(t) / xo(n)), r = e * da(xo(n), i) / i;
|
|
16867
16892
|
if (!i) return Es;
|
|
16868
16893
|
function o(s, a) {
|
|
16869
16894
|
r > 0 ? a < -ee + At && (a = -ee + At) : a > ee - At && (a = ee - At);
|
|
16870
|
-
var l = r / da(
|
|
16895
|
+
var l = r / da(xo(a), i);
|
|
16871
16896
|
return [l * Pt(i * s), r - l * Dt(i * s)];
|
|
16872
16897
|
}
|
|
16873
16898
|
return o.invert = function(s, a) {
|
|
@@ -16900,19 +16925,19 @@ function sM(n, t) {
|
|
|
16900
16925
|
function aM() {
|
|
16901
16926
|
return hl(sM).scale(131.154).center([0, 13.9389]);
|
|
16902
16927
|
}
|
|
16903
|
-
var
|
|
16928
|
+
var Lr = 1.340264, Ir = -0.081106, Fr = 893e-6, Rr = 3796e-6, hs = He(3) / 2, cM = 12;
|
|
16904
16929
|
function bp(n, t) {
|
|
16905
16930
|
var e = ln(hs * Pt(t)), i = e * e, r = i * i * i;
|
|
16906
16931
|
return [
|
|
16907
|
-
n * Dt(e) / (hs * (
|
|
16908
|
-
e * (
|
|
16932
|
+
n * Dt(e) / (hs * (Lr + 3 * Ir * i + r * (7 * Fr + 9 * Rr * i))),
|
|
16933
|
+
e * (Lr + Ir * i + r * (Fr + Rr * i))
|
|
16909
16934
|
];
|
|
16910
16935
|
}
|
|
16911
16936
|
bp.invert = function(n, t) {
|
|
16912
|
-
for (var e = t, i = e * e, r = i * i * i, o = 0, s, a, l; o < cM && (a = e * (
|
|
16937
|
+
for (var e = t, i = e * e, r = i * i * i, o = 0, s, a, l; o < cM && (a = e * (Lr + Ir * i + r * (Fr + Rr * i)) - t, l = Lr + 3 * Ir * i + r * (7 * Fr + 9 * Rr * i), e -= s = a / l, i = e * e, r = i * i * i, !(Gt(s) < Xd)); ++o)
|
|
16913
16938
|
;
|
|
16914
16939
|
return [
|
|
16915
|
-
hs * n * (
|
|
16940
|
+
hs * n * (Lr + 3 * Ir * i + r * (7 * Fr + 9 * Rr * i)) / Dt(e),
|
|
16916
16941
|
ln(Pt(e) / hs)
|
|
16917
16942
|
];
|
|
16918
16943
|
};
|
|
@@ -16923,7 +16948,7 @@ function vp(n, t) {
|
|
|
16923
16948
|
var e = Dt(t), i = Dt(n) * e;
|
|
16924
16949
|
return [e * Pt(n) / i, Pt(t) / i];
|
|
16925
16950
|
}
|
|
16926
|
-
vp.invert =
|
|
16951
|
+
vp.invert = Kr(tr);
|
|
16927
16952
|
function lM() {
|
|
16928
16953
|
return Sn(vp).scale(144.049).clipAngle(60);
|
|
16929
16954
|
}
|
|
@@ -16951,7 +16976,7 @@ function pc() {
|
|
|
16951
16976
|
function kp(n, t) {
|
|
16952
16977
|
return [Dt(t) * Pt(n), Pt(t)];
|
|
16953
16978
|
}
|
|
16954
|
-
kp.invert =
|
|
16979
|
+
kp.invert = Kr(ln);
|
|
16955
16980
|
function Nu() {
|
|
16956
16981
|
return Sn(kp).scale(249.5).clipAngle(90 + At);
|
|
16957
16982
|
}
|
|
@@ -16959,7 +16984,7 @@ function Mp(n, t) {
|
|
|
16959
16984
|
var e = Dt(t), i = 1 + Dt(n) * e;
|
|
16960
16985
|
return [e * Pt(n) / i, Pt(t) / i];
|
|
16961
16986
|
}
|
|
16962
|
-
Mp.invert =
|
|
16987
|
+
Mp.invert = Kr(function(n) {
|
|
16963
16988
|
return 2 * tr(n);
|
|
16964
16989
|
});
|
|
16965
16990
|
function hM() {
|
|
@@ -18447,7 +18472,7 @@ function zM(n) {
|
|
|
18447
18472
|
function _p(n, t) {
|
|
18448
18473
|
return n.sourceLinks.length ? n.depth : t - 1;
|
|
18449
18474
|
}
|
|
18450
|
-
function
|
|
18475
|
+
function bo(n) {
|
|
18451
18476
|
return function() {
|
|
18452
18477
|
return n;
|
|
18453
18478
|
};
|
|
@@ -18496,9 +18521,9 @@ function WM() {
|
|
|
18496
18521
|
p.update = function(w) {
|
|
18497
18522
|
return ju(w), w;
|
|
18498
18523
|
}, p.nodeId = function(w) {
|
|
18499
|
-
return arguments.length ? (a = typeof w == "function" ? w :
|
|
18524
|
+
return arguments.length ? (a = typeof w == "function" ? w : bo(w), p) : a;
|
|
18500
18525
|
}, p.nodeAlign = function(w) {
|
|
18501
|
-
return arguments.length ? (l = typeof w == "function" ? w :
|
|
18526
|
+
return arguments.length ? (l = typeof w == "function" ? w : bo(w), p) : l;
|
|
18502
18527
|
}, p.nodeSort = function(w) {
|
|
18503
18528
|
return arguments.length ? (c = w, p) : c;
|
|
18504
18529
|
}, p.nodeWidth = function(w) {
|
|
@@ -18506,9 +18531,9 @@ function WM() {
|
|
|
18506
18531
|
}, p.nodePadding = function(w) {
|
|
18507
18532
|
return arguments.length ? (o = s = +w, p) : o;
|
|
18508
18533
|
}, p.nodes = function(w) {
|
|
18509
|
-
return arguments.length ? (f = typeof w == "function" ? w :
|
|
18534
|
+
return arguments.length ? (f = typeof w == "function" ? w : bo(w), p) : f;
|
|
18510
18535
|
}, p.links = function(w) {
|
|
18511
|
-
return arguments.length ? (u = typeof w == "function" ? w :
|
|
18536
|
+
return arguments.length ? (u = typeof w == "function" ? w : bo(w), p) : u;
|
|
18512
18537
|
}, p.linkSort = function(w) {
|
|
18513
18538
|
return arguments.length ? (h = w, p) : h;
|
|
18514
18539
|
}, p.size = function(w) {
|
|
@@ -20307,7 +20332,7 @@ class WA extends Xt {
|
|
|
20307
20332
|
function HA() {
|
|
20308
20333
|
It.registerType("sankey", rA), It.registerType("networkgraph", DA), It.registerType("dependencywheel", WA);
|
|
20309
20334
|
}
|
|
20310
|
-
class
|
|
20335
|
+
class Lo {
|
|
20311
20336
|
static group(t, e, i = "average", r, o) {
|
|
20312
20337
|
if (!t.length || e <= 0) return t;
|
|
20313
20338
|
const s = [...t].sort((f, u) => (f.x ?? 0) - (u.x ?? 0)), a = !(r != null && r.groupAll) && o ? s.filter((f) => {
|
|
@@ -20320,10 +20345,10 @@ class $o {
|
|
|
20320
20345
|
}
|
|
20321
20346
|
const c = (r == null ? void 0 : r.anchor) ?? "start", h = [];
|
|
20322
20347
|
for (const [f, u] of l) {
|
|
20323
|
-
const d =
|
|
20348
|
+
const d = Lo.applyAnchor(f, e, c), p = Lo.approximate(d, u, i);
|
|
20324
20349
|
h.push(p);
|
|
20325
20350
|
}
|
|
20326
|
-
return r != null && r.smoothed && h.length >= 3 ?
|
|
20351
|
+
return r != null && r.smoothed && h.length >= 3 ? Lo.smooth(h) : h;
|
|
20327
20352
|
}
|
|
20328
20353
|
static applyAnchor(t, e, i) {
|
|
20329
20354
|
switch (i) {
|
|
@@ -20549,17 +20574,17 @@ const GA = {
|
|
|
20549
20574
|
color(n) {
|
|
20550
20575
|
return va(n);
|
|
20551
20576
|
},
|
|
20552
|
-
palettes:
|
|
20577
|
+
palettes: Ro,
|
|
20553
20578
|
getPalette(n) {
|
|
20554
20579
|
return sf(n);
|
|
20555
20580
|
},
|
|
20556
|
-
themes:
|
|
20581
|
+
themes: Do,
|
|
20557
20582
|
themeNames: Zp,
|
|
20558
20583
|
getTheme(n) {
|
|
20559
20584
|
return af(n);
|
|
20560
20585
|
},
|
|
20561
20586
|
setTheme(n) {
|
|
20562
|
-
const t =
|
|
20587
|
+
const t = Do[n];
|
|
20563
20588
|
t && rh(t);
|
|
20564
20589
|
},
|
|
20565
20590
|
use(n) {
|
|
@@ -20583,7 +20608,7 @@ export {
|
|
|
20583
20608
|
It as ChartRegistry,
|
|
20584
20609
|
qA as CircularBuffer,
|
|
20585
20610
|
wv as Crosshair,
|
|
20586
|
-
|
|
20611
|
+
Lo as DataGrouping,
|
|
20587
20612
|
Xc as DataLabels,
|
|
20588
20613
|
Rv as Drilldown,
|
|
20589
20614
|
oy as EventBus,
|