@dpuse/dpuse-tool-d3-visualiser 0.0.33 → 0.0.41
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/README.md +660 -201
- package/dist/{band-DbExrcif.js → band-C1twWuW2.js} +3 -2
- package/dist/{band-DbExrcif.js.map → band-C1twWuW2.js.map} +1 -1
- package/dist/{billboardJs-jmaH9Gag.js → billboardJs-DS82ViEw.js} +1081 -1747
- package/dist/billboardJs-DS82ViEw.js.map +1 -0
- package/dist/chordDiagram-Cz0sVVgD.js +2911 -0
- package/dist/chordDiagram-Cz0sVVgD.js.map +1 -0
- package/dist/{d3BarChart-DEzayAyh.js → d3BarChart-DIN2KQsU.js} +7 -6
- package/dist/{d3BarChart-DEzayAyh.js.map → d3BarChart-DIN2KQsU.js.map} +1 -1
- package/dist/dpuse-tool-d3-visualiser.es.js +17 -7
- package/dist/dpuse-tool-d3-visualiser.es.js.map +1 -1
- package/dist/{drag-DLokvdmv.js → drag-DfL4uwqz.js} +25 -24
- package/dist/{drag-DLokvdmv.js.map → drag-DfL4uwqz.js.map} +1 -1
- package/dist/hierarchy-CDFAetye.js +151 -0
- package/dist/hierarchy-CDFAetye.js.map +1 -0
- package/dist/{linear-D3BD7E1p.js → linear-BnhqTvdX.js} +59 -85
- package/dist/linear-BnhqTvdX.js.map +1 -0
- package/dist/{link-DKK0Q0lG.js → link-D-9z7kEr.js} +16 -39
- package/dist/link-D-9z7kEr.js.map +1 -0
- package/dist/math-C5EhTgJw.js +12 -0
- package/dist/math-C5EhTgJw.js.map +1 -0
- package/dist/max-CPVNm4tn.js +14 -0
- package/dist/max-CPVNm4tn.js.map +1 -0
- package/dist/{networkDiagram-HS-SgOZ0.js → networkDiagram-yraPhqxN.js} +28 -28
- package/dist/{networkDiagram-HS-SgOZ0.js.map → networkDiagram-yraPhqxN.js.map} +1 -1
- package/dist/nodrag-Dq2tlBbe.js +51 -0
- package/dist/nodrag-Dq2tlBbe.js.map +1 -0
- package/dist/{observablePlot-B1CSEvcU.js → observablePlot-C7764aFq.js} +2366 -2417
- package/dist/observablePlot-C7764aFq.js.map +1 -0
- package/dist/ordinal-uZdoVxAx.js +30 -0
- package/dist/ordinal-uZdoVxAx.js.map +1 -0
- package/dist/palette-BuTjISrV.js +64 -0
- package/dist/palette-BuTjISrV.js.map +1 -0
- package/dist/{path-Bt1sPr2f.js → path-6kmCrmEz.js} +7 -4
- package/dist/{path-Bt1sPr2f.js.map → path-6kmCrmEz.js.map} +1 -1
- package/dist/point-6cHftmvM.js +27 -0
- package/dist/point-6cHftmvM.js.map +1 -0
- package/dist/pow-BFDPqS3s.js +86 -0
- package/dist/pow-BFDPqS3s.js.map +1 -0
- package/dist/{sankeyDiagram-BXTYCHPV.js → sankeyDiagram-BT2RCRpi.js} +93 -152
- package/dist/sankeyDiagram-BT2RCRpi.js.map +1 -0
- package/dist/{src-Br_t1-IV.js → src-WDualLFV.js} +40 -39
- package/dist/{src-Br_t1-IV.js.map → src-WDualLFV.js.map} +1 -1
- package/dist/{math-Dc0ICuib.js → src-Xlr4CcSw.js} +70 -75
- package/dist/src-Xlr4CcSw.js.map +1 -0
- package/dist/{src-Du_hPZAX.js → src-yL3ZdoR1.js} +235 -282
- package/dist/src-yL3ZdoR1.js.map +1 -0
- package/dist/step-DgCcZZ3W.js +670 -0
- package/dist/step-DgCcZZ3W.js.map +1 -0
- package/dist/{sum-BAZU479z.js → sum-CNP0Xric.js} +4 -15
- package/dist/sum-CNP0Xric.js.map +1 -0
- package/dist/{tanStackCharts-vvQteV9z.js → tanStackCharts-BJAX22lS.js} +164 -151
- package/dist/tanStackCharts-BJAX22lS.js.map +1 -0
- package/dist/treeDiagram-DsHUD8ou.js +130 -0
- package/dist/treeDiagram-DsHUD8ou.js.map +1 -0
- package/dist/types/src/chordDiagram.d.ts +25 -0
- package/dist/types/src/index.d.ts +3 -0
- package/package.json +6 -4
- package/dist/billboardJs-jmaH9Gag.js.map +0 -1
- package/dist/linear-D3BD7E1p.js.map +0 -1
- package/dist/link-DKK0Q0lG.js.map +0 -1
- package/dist/math-Dc0ICuib.js.map +0 -1
- package/dist/observablePlot-B1CSEvcU.js.map +0 -1
- package/dist/sankeyDiagram-BXTYCHPV.js.map +0 -1
- package/dist/src-Du_hPZAX.js.map +0 -1
- package/dist/sum-BAZU479z.js.map +0 -1
- package/dist/tanStackCharts-vvQteV9z.js.map +0 -1
- package/dist/treeDiagram-DemHfVnX.js +0 -277
- package/dist/treeDiagram-DemHfVnX.js.map +0 -1
|
@@ -0,0 +1,2911 @@
|
|
|
1
|
+
import { c as e, i as t, r as n, s as r, t as i } from "./pow-BFDPqS3s.js";
|
|
2
|
+
import { d as a } from "./linear-BnhqTvdX.js";
|
|
3
|
+
import { t as o } from "./max-CPVNm4tn.js";
|
|
4
|
+
import { n as s } from "./src-yL3ZdoR1.js";
|
|
5
|
+
import { t as c } from "./select-BIuoFcZG.js";
|
|
6
|
+
import { d as l, p as u } from "./string-CnCj7THX.js";
|
|
7
|
+
import { r as d, t as f } from "./array-Cv4-2llb.js";
|
|
8
|
+
import { a as p, c as m, d as h, f as g, i as _, l as v, n as y, p as b, r as x, s as S, t as C, u as w } from "./math-C5EhTgJw.js";
|
|
9
|
+
import { n as T } from "./path-6kmCrmEz.js";
|
|
10
|
+
import { n as E, r as D, t as O } from "./point-6cHftmvM.js";
|
|
11
|
+
import { _ as ee, a as te, c as ne, d as re, f as ie, g as ae, h as oe, i as se, l as k, m as A, n as j, o as M, p as ce, r as le, s as ue, t as de, u as fe, v as N } from "./step-DgCcZZ3W.js";
|
|
12
|
+
import { n as pe } from "./hierarchy-CDFAetye.js";
|
|
13
|
+
import { r as me, t as he } from "./palette-BuTjISrV.js";
|
|
14
|
+
//#region node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
15
|
+
function ge(e) {
|
|
16
|
+
if (e.sheet) return e.sheet;
|
|
17
|
+
/* istanbul ignore next */
|
|
18
|
+
for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t];
|
|
19
|
+
}
|
|
20
|
+
function P(e) {
|
|
21
|
+
var t = document.createElement("style");
|
|
22
|
+
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
23
|
+
}
|
|
24
|
+
var _e = /*#__PURE__*/ function() {
|
|
25
|
+
function e(e) {
|
|
26
|
+
var t = this;
|
|
27
|
+
this._insertTag = function(e) {
|
|
28
|
+
var n = t.tags.length === 0 ? t.insertionPoint ? t.insertionPoint.nextSibling : t.prepend ? t.container.firstChild : t.before : t.tags[t.tags.length - 1].nextSibling;
|
|
29
|
+
t.container.insertBefore(e, n), t.tags.push(e);
|
|
30
|
+
}, this.isSpeedy = e.speedy === void 0 || e.speedy, this.tags = [], this.ctr = 0, this.nonce = e.nonce, this.key = e.key, this.container = e.container, this.prepend = e.prepend, this.insertionPoint = e.insertionPoint, this.before = null;
|
|
31
|
+
}
|
|
32
|
+
var t = e.prototype;
|
|
33
|
+
return t.hydrate = function(e) {
|
|
34
|
+
e.forEach(this._insertTag);
|
|
35
|
+
}, t.insert = function(e) {
|
|
36
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(P(this));
|
|
37
|
+
var t = this.tags[this.tags.length - 1];
|
|
38
|
+
if (this.isSpeedy) {
|
|
39
|
+
var n = ge(t);
|
|
40
|
+
try {
|
|
41
|
+
n.insertRule(e, n.cssRules.length);
|
|
42
|
+
} catch {}
|
|
43
|
+
} else t.appendChild(document.createTextNode(e));
|
|
44
|
+
this.ctr++;
|
|
45
|
+
}, t.flush = function() {
|
|
46
|
+
this.tags.forEach(function(e) {
|
|
47
|
+
return e.parentNode?.removeChild(e);
|
|
48
|
+
}), this.tags = [], this.ctr = 0;
|
|
49
|
+
}, e;
|
|
50
|
+
}(), F = "-ms-", ve = "-moz-", I = "-webkit-", ye = "comm", be = "rule", xe = "decl", Se = "@import", Ce = "@keyframes", we = "@layer", Te = Math.abs, Ee = String.fromCharCode, De = Object.assign;
|
|
51
|
+
function Oe(e, t) {
|
|
52
|
+
return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
|
|
53
|
+
}
|
|
54
|
+
function ke(e) {
|
|
55
|
+
return e.trim();
|
|
56
|
+
}
|
|
57
|
+
function Ae(e, t) {
|
|
58
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
59
|
+
}
|
|
60
|
+
function L(e, t, n) {
|
|
61
|
+
return e.replace(t, n);
|
|
62
|
+
}
|
|
63
|
+
function je(e, t) {
|
|
64
|
+
return e.indexOf(t);
|
|
65
|
+
}
|
|
66
|
+
function R(e, t) {
|
|
67
|
+
return e.charCodeAt(t) | 0;
|
|
68
|
+
}
|
|
69
|
+
function Me(e, t, n) {
|
|
70
|
+
return e.slice(t, n);
|
|
71
|
+
}
|
|
72
|
+
function z(e) {
|
|
73
|
+
return e.length;
|
|
74
|
+
}
|
|
75
|
+
function Ne(e) {
|
|
76
|
+
return e.length;
|
|
77
|
+
}
|
|
78
|
+
function Pe(e, t) {
|
|
79
|
+
return t.push(e), e;
|
|
80
|
+
}
|
|
81
|
+
function Fe(e, t) {
|
|
82
|
+
return e.map(t).join("");
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region node_modules/stylis/src/Tokenizer.js
|
|
86
|
+
var Ie = 1, Le = 1, Re = 0, B = 0, V = 0, ze = "";
|
|
87
|
+
function Be(e, t, n, r, i, a, o) {
|
|
88
|
+
return {
|
|
89
|
+
value: e,
|
|
90
|
+
root: t,
|
|
91
|
+
parent: n,
|
|
92
|
+
type: r,
|
|
93
|
+
props: i,
|
|
94
|
+
children: a,
|
|
95
|
+
line: Ie,
|
|
96
|
+
column: Le,
|
|
97
|
+
length: o,
|
|
98
|
+
return: ""
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function Ve(e, t) {
|
|
102
|
+
return De(Be("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
103
|
+
}
|
|
104
|
+
function He() {
|
|
105
|
+
return V;
|
|
106
|
+
}
|
|
107
|
+
function Ue() {
|
|
108
|
+
return V = B > 0 ? R(ze, --B) : 0, Le--, V === 10 && (Le = 1, Ie--), V;
|
|
109
|
+
}
|
|
110
|
+
function H() {
|
|
111
|
+
return V = B < Re ? R(ze, B++) : 0, Le++, V === 10 && (Le = 1, Ie++), V;
|
|
112
|
+
}
|
|
113
|
+
function U() {
|
|
114
|
+
return R(ze, B);
|
|
115
|
+
}
|
|
116
|
+
function We() {
|
|
117
|
+
return B;
|
|
118
|
+
}
|
|
119
|
+
function Ge(e, t) {
|
|
120
|
+
return Me(ze, e, t);
|
|
121
|
+
}
|
|
122
|
+
function Ke(e) {
|
|
123
|
+
switch (e) {
|
|
124
|
+
case 0:
|
|
125
|
+
case 9:
|
|
126
|
+
case 10:
|
|
127
|
+
case 13:
|
|
128
|
+
case 32: return 5;
|
|
129
|
+
case 33:
|
|
130
|
+
case 43:
|
|
131
|
+
case 44:
|
|
132
|
+
case 47:
|
|
133
|
+
case 62:
|
|
134
|
+
case 64:
|
|
135
|
+
case 126:
|
|
136
|
+
case 59:
|
|
137
|
+
case 123:
|
|
138
|
+
case 125: return 4;
|
|
139
|
+
case 58: return 3;
|
|
140
|
+
case 34:
|
|
141
|
+
case 39:
|
|
142
|
+
case 40:
|
|
143
|
+
case 91: return 2;
|
|
144
|
+
case 41:
|
|
145
|
+
case 93: return 1;
|
|
146
|
+
}
|
|
147
|
+
return 0;
|
|
148
|
+
}
|
|
149
|
+
function qe(e) {
|
|
150
|
+
return Ie = Le = 1, Re = z(ze = e), B = 0, [];
|
|
151
|
+
}
|
|
152
|
+
function Je(e) {
|
|
153
|
+
return ze = "", e;
|
|
154
|
+
}
|
|
155
|
+
function Ye(e) {
|
|
156
|
+
return ke(Ge(B - 1, Qe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
157
|
+
}
|
|
158
|
+
function Xe(e) {
|
|
159
|
+
for (; (V = U()) && V < 33;) H();
|
|
160
|
+
return Ke(e) > 2 || Ke(V) > 3 ? "" : " ";
|
|
161
|
+
}
|
|
162
|
+
function Ze(e, t) {
|
|
163
|
+
for (; --t && H() && !(V < 48 || V > 102 || V > 57 && V < 65 || V > 70 && V < 97););
|
|
164
|
+
return Ge(e, We() + (t < 6 && U() == 32 && H() == 32));
|
|
165
|
+
}
|
|
166
|
+
function Qe(e) {
|
|
167
|
+
for (; H();) switch (V) {
|
|
168
|
+
case e: return B;
|
|
169
|
+
case 34:
|
|
170
|
+
case 39:
|
|
171
|
+
e !== 34 && e !== 39 && Qe(V);
|
|
172
|
+
break;
|
|
173
|
+
case 40:
|
|
174
|
+
e === 41 && Qe(e);
|
|
175
|
+
break;
|
|
176
|
+
case 92:
|
|
177
|
+
H();
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
return B;
|
|
181
|
+
}
|
|
182
|
+
function $e(e, t) {
|
|
183
|
+
for (; H() && e + V !== 57 && (e + V !== 84 || U() !== 47););
|
|
184
|
+
return "/*" + Ge(t, B - 1) + "*" + Ee(e === 47 ? e : H());
|
|
185
|
+
}
|
|
186
|
+
function et(e) {
|
|
187
|
+
for (; !Ke(U());) H();
|
|
188
|
+
return Ge(e, B);
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region node_modules/stylis/src/Parser.js
|
|
192
|
+
function tt(e) {
|
|
193
|
+
return Je(nt("", null, null, null, [""], e = qe(e), 0, [0], e));
|
|
194
|
+
}
|
|
195
|
+
function nt(e, t, n, r, i, a, o, s, c) {
|
|
196
|
+
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = H()) {
|
|
197
|
+
case 40: if (m != 108 && R(C, d - 1) == 58) {
|
|
198
|
+
je(C += L(Ye(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
case 34:
|
|
202
|
+
case 39:
|
|
203
|
+
case 91:
|
|
204
|
+
C += Ye(v);
|
|
205
|
+
break;
|
|
206
|
+
case 9:
|
|
207
|
+
case 10:
|
|
208
|
+
case 13:
|
|
209
|
+
case 32:
|
|
210
|
+
C += Xe(m);
|
|
211
|
+
break;
|
|
212
|
+
case 92:
|
|
213
|
+
C += Ze(We() - 1, 7);
|
|
214
|
+
continue;
|
|
215
|
+
case 47:
|
|
216
|
+
switch (U()) {
|
|
217
|
+
case 42:
|
|
218
|
+
case 47:
|
|
219
|
+
Pe(it($e(H(), We()), t, n), c);
|
|
220
|
+
break;
|
|
221
|
+
default: C += "/";
|
|
222
|
+
}
|
|
223
|
+
break;
|
|
224
|
+
case 123 * h: s[l++] = z(C) * _;
|
|
225
|
+
case 125 * h:
|
|
226
|
+
case 59:
|
|
227
|
+
case 0:
|
|
228
|
+
switch (v) {
|
|
229
|
+
case 0:
|
|
230
|
+
case 125: g = 0;
|
|
231
|
+
case 59 + u:
|
|
232
|
+
_ == -1 && (C = L(C, /\f/g, "")), p > 0 && z(C) - d && Pe(p > 32 ? at(C + ";", r, n, d - 1) : at(L(C, " ", "") + ";", r, n, d - 2), c);
|
|
233
|
+
break;
|
|
234
|
+
case 59: C += ";";
|
|
235
|
+
default: if (Pe(S = rt(C, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) if (u === 0) nt(C, t, S, S, b, a, d, s, x);
|
|
236
|
+
else switch (f === 99 && R(C, 3) === 110 ? 100 : f) {
|
|
237
|
+
case 100:
|
|
238
|
+
case 108:
|
|
239
|
+
case 109:
|
|
240
|
+
case 115:
|
|
241
|
+
nt(e, S, S, r && Pe(rt(e, S, S, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
|
|
242
|
+
break;
|
|
243
|
+
default: nt(C, S, S, S, [""], x, 0, s, x);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
l = u = p = 0, h = _ = 1, y = C = "", d = o;
|
|
247
|
+
break;
|
|
248
|
+
case 58: d = 1 + z(C), p = m;
|
|
249
|
+
default:
|
|
250
|
+
if (h < 1) {
|
|
251
|
+
if (v == 123) --h;
|
|
252
|
+
else if (v == 125 && h++ == 0 && Ue() == 125) continue;
|
|
253
|
+
}
|
|
254
|
+
switch (C += Ee(v), v * h) {
|
|
255
|
+
case 38:
|
|
256
|
+
_ = u > 0 ? 1 : (C += "\f", -1);
|
|
257
|
+
break;
|
|
258
|
+
case 44:
|
|
259
|
+
s[l++] = (z(C) - 1) * _, _ = 1;
|
|
260
|
+
break;
|
|
261
|
+
case 64:
|
|
262
|
+
U() === 45 && (C += Ye(H())), f = U(), u = d = z(y = C += et(We())), v++;
|
|
263
|
+
break;
|
|
264
|
+
case 45: m === 45 && z(C) == 2 && (h = 0);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return a;
|
|
268
|
+
}
|
|
269
|
+
function rt(e, t, n, r, i, a, o, s, c, l, u) {
|
|
270
|
+
for (var d = i - 1, f = i === 0 ? a : [""], p = Ne(f), m = 0, h = 0, g = 0; m < r; ++m) for (var _ = 0, v = Me(e, d + 1, d = Te(h = o[m])), y = e; _ < p; ++_) (y = ke(h > 0 ? f[_] + " " + v : L(v, /&\f/g, f[_]))) && (c[g++] = y);
|
|
271
|
+
return Be(e, t, n, i === 0 ? be : s, c, l, u);
|
|
272
|
+
}
|
|
273
|
+
function it(e, t, n) {
|
|
274
|
+
return Be(e, t, n, ye, Ee(He()), Me(e, 2, -2), 0);
|
|
275
|
+
}
|
|
276
|
+
function at(e, t, n, r) {
|
|
277
|
+
return Be(e, t, n, xe, Me(e, 0, r), Me(e, r + 1, -1), r);
|
|
278
|
+
}
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region node_modules/stylis/src/Serializer.js
|
|
281
|
+
function ot(e, t) {
|
|
282
|
+
for (var n = "", r = Ne(e), i = 0; i < r; i++) n += t(e[i], i, e, t) || "";
|
|
283
|
+
return n;
|
|
284
|
+
}
|
|
285
|
+
function st(e, t, n, r) {
|
|
286
|
+
switch (e.type) {
|
|
287
|
+
case we: if (e.children.length) break;
|
|
288
|
+
case Se:
|
|
289
|
+
case xe: return e.return = e.return || e.value;
|
|
290
|
+
case ye: return "";
|
|
291
|
+
case Ce: return e.return = e.value + "{" + ot(e.children, r) + "}";
|
|
292
|
+
case be: e.value = e.props.join(",");
|
|
293
|
+
}
|
|
294
|
+
return z(n = ot(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
295
|
+
}
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region node_modules/stylis/src/Middleware.js
|
|
298
|
+
function ct(e) {
|
|
299
|
+
var t = Ne(e);
|
|
300
|
+
return function(n, r, i, a) {
|
|
301
|
+
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
302
|
+
return o;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
function lt(e) {
|
|
306
|
+
return function(t) {
|
|
307
|
+
t.root || (t = t.return) && e(t);
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
312
|
+
function ut(e) {
|
|
313
|
+
var t = Object.create(null);
|
|
314
|
+
return function(n) {
|
|
315
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
320
|
+
var dt = function(e, t, n) {
|
|
321
|
+
for (var r = 0, i = 0; r = i, i = U(), r === 38 && i === 12 && (t[n] = 1), !Ke(i);) H();
|
|
322
|
+
return Ge(e, B);
|
|
323
|
+
}, ft = function(e, t) {
|
|
324
|
+
var n = -1, r = 44;
|
|
325
|
+
do
|
|
326
|
+
switch (Ke(r)) {
|
|
327
|
+
case 0:
|
|
328
|
+
r === 38 && U() === 12 && (t[n] = 1), e[n] += dt(B - 1, t, n);
|
|
329
|
+
break;
|
|
330
|
+
case 2:
|
|
331
|
+
e[n] += Ye(r);
|
|
332
|
+
break;
|
|
333
|
+
case 4: if (r === 44) {
|
|
334
|
+
e[++n] = U() === 58 ? "&\f" : "", t[n] = e[n].length;
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
default: e[n] += Ee(r);
|
|
338
|
+
}
|
|
339
|
+
while (r = H());
|
|
340
|
+
return e;
|
|
341
|
+
}, pt = function(e, t) {
|
|
342
|
+
return Je(ft(qe(e), t));
|
|
343
|
+
}, mt = /* #__PURE__ */ new WeakMap(), ht = function(e) {
|
|
344
|
+
if (!(e.type !== "rule" || !e.parent || e.length < 1)) {
|
|
345
|
+
for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule";) if (n = n.parent, !n) return;
|
|
346
|
+
if (!(e.props.length === 1 && t.charCodeAt(0) !== 58 && !mt.get(n)) && !r) {
|
|
347
|
+
mt.set(e, !0);
|
|
348
|
+
for (var i = [], a = pt(t, i), o = n.props, s = 0, c = 0; s < a.length; s++) for (var l = 0; l < o.length; l++, c++) e.props[c] = i[s] ? a[s].replace(/&\f/g, o[l]) : o[l] + " " + a[s];
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}, gt = function(e) {
|
|
352
|
+
if (e.type === "decl") {
|
|
353
|
+
var t = e.value;
|
|
354
|
+
t.charCodeAt(0) === 108 && t.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
function _t(e, t) {
|
|
358
|
+
switch (Oe(e, t)) {
|
|
359
|
+
case 5103: return I + "print-" + e + e;
|
|
360
|
+
case 5737:
|
|
361
|
+
case 4201:
|
|
362
|
+
case 3177:
|
|
363
|
+
case 3433:
|
|
364
|
+
case 1641:
|
|
365
|
+
case 4457:
|
|
366
|
+
case 2921:
|
|
367
|
+
case 5572:
|
|
368
|
+
case 6356:
|
|
369
|
+
case 5844:
|
|
370
|
+
case 3191:
|
|
371
|
+
case 6645:
|
|
372
|
+
case 3005:
|
|
373
|
+
case 6391:
|
|
374
|
+
case 5879:
|
|
375
|
+
case 5623:
|
|
376
|
+
case 6135:
|
|
377
|
+
case 4599:
|
|
378
|
+
case 4855:
|
|
379
|
+
case 4215:
|
|
380
|
+
case 6389:
|
|
381
|
+
case 5109:
|
|
382
|
+
case 5365:
|
|
383
|
+
case 5621:
|
|
384
|
+
case 3829: return I + e + e;
|
|
385
|
+
case 5349:
|
|
386
|
+
case 4246:
|
|
387
|
+
case 4810:
|
|
388
|
+
case 6968:
|
|
389
|
+
case 2756: return I + e + ve + e + F + e + e;
|
|
390
|
+
case 6828:
|
|
391
|
+
case 4268: return I + e + F + e + e;
|
|
392
|
+
case 6165: return I + e + F + "flex-" + e + e;
|
|
393
|
+
case 5187: return I + e + L(e, /(\w+).+(:[^]+)/, I + "box-$1$2" + F + "flex-$1$2") + e;
|
|
394
|
+
case 5443: return I + e + F + "flex-item-" + L(e, /flex-|-self/, "") + e;
|
|
395
|
+
case 4675: return I + e + F + "flex-line-pack" + L(e, /align-content|flex-|-self/, "") + e;
|
|
396
|
+
case 5548: return I + e + F + L(e, "shrink", "negative") + e;
|
|
397
|
+
case 5292: return I + e + F + L(e, "basis", "preferred-size") + e;
|
|
398
|
+
case 6060: return I + "box-" + L(e, "-grow", "") + I + e + F + L(e, "grow", "positive") + e;
|
|
399
|
+
case 4554: return I + L(e, /([^-])(transform)/g, "$1" + I + "$2") + e;
|
|
400
|
+
case 6187: return L(L(L(e, /(zoom-|grab)/, I + "$1"), /(image-set)/, I + "$1"), e, "") + e;
|
|
401
|
+
case 5495:
|
|
402
|
+
case 3959: return L(e, /(image-set\([^]*)/, I + "$1$`$1");
|
|
403
|
+
case 4968: return L(L(e, /(.+:)(flex-)?(.*)/, I + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + I + e + e;
|
|
404
|
+
case 4095:
|
|
405
|
+
case 3583:
|
|
406
|
+
case 4068:
|
|
407
|
+
case 2532: return L(e, /(.+)-inline(.+)/, I + "$1$2") + e;
|
|
408
|
+
case 8116:
|
|
409
|
+
case 7059:
|
|
410
|
+
case 5753:
|
|
411
|
+
case 5535:
|
|
412
|
+
case 5445:
|
|
413
|
+
case 5701:
|
|
414
|
+
case 4933:
|
|
415
|
+
case 4677:
|
|
416
|
+
case 5533:
|
|
417
|
+
case 5789:
|
|
418
|
+
case 5021:
|
|
419
|
+
case 4765:
|
|
420
|
+
if (z(e) - 1 - t > 6) switch (R(e, t + 1)) {
|
|
421
|
+
case 109: if (R(e, t + 4) !== 45) break;
|
|
422
|
+
case 102: return L(e, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + ve + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
423
|
+
case 115: return ~je(e, "stretch") ? _t(L(e, "stretch", "fill-available"), t) + e : e;
|
|
424
|
+
}
|
|
425
|
+
break;
|
|
426
|
+
case 4949: if (R(e, t + 1) !== 115) break;
|
|
427
|
+
case 6444:
|
|
428
|
+
switch (R(e, z(e) - 3 - (~je(e, "!important") && 10))) {
|
|
429
|
+
case 107: return L(e, ":", ":" + I) + e;
|
|
430
|
+
case 101: return L(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + I + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + I + "$2$3$1" + F + "$2box$3") + e;
|
|
431
|
+
}
|
|
432
|
+
break;
|
|
433
|
+
case 5936:
|
|
434
|
+
switch (R(e, t + 11)) {
|
|
435
|
+
case 114: return I + e + F + L(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
436
|
+
case 108: return I + e + F + L(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
437
|
+
case 45: return I + e + F + L(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
438
|
+
}
|
|
439
|
+
return I + e + F + e + e;
|
|
440
|
+
}
|
|
441
|
+
return e;
|
|
442
|
+
}
|
|
443
|
+
var vt = [function(e, t, n, r) {
|
|
444
|
+
if (e.length > -1 && !e.return) switch (e.type) {
|
|
445
|
+
case xe:
|
|
446
|
+
e.return = _t(e.value, e.length);
|
|
447
|
+
break;
|
|
448
|
+
case Ce: return ot([Ve(e, { value: L(e.value, "@", "@" + I) })], r);
|
|
449
|
+
case be: if (e.length) return Fe(e.props, function(t) {
|
|
450
|
+
switch (Ae(t, /(::plac\w+|:read-\w+)/)) {
|
|
451
|
+
case ":read-only":
|
|
452
|
+
case ":read-write": return ot([Ve(e, { props: [L(t, /:(read-\w+)/, ":" + ve + "$1")] })], r);
|
|
453
|
+
case "::placeholder": return ot([
|
|
454
|
+
Ve(e, { props: [L(t, /:(plac\w+)/, ":" + I + "input-$1")] }),
|
|
455
|
+
Ve(e, { props: [L(t, /:(plac\w+)/, ":" + ve + "$1")] }),
|
|
456
|
+
Ve(e, { props: [L(t, /:(plac\w+)/, F + "input-$1")] })
|
|
457
|
+
], r);
|
|
458
|
+
}
|
|
459
|
+
return "";
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
}], yt = function(e) {
|
|
463
|
+
var t = e.key;
|
|
464
|
+
if (t === "css") {
|
|
465
|
+
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
466
|
+
Array.prototype.forEach.call(n, function(e) {
|
|
467
|
+
e.getAttribute("data-emotion").indexOf(" ") !== -1 && (document.head.appendChild(e), e.setAttribute("data-s", ""));
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
var r = e.stylisPlugins || vt, i = {}, a, o = [];
|
|
471
|
+
a = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion^=\"" + t + " \"]"), function(e) {
|
|
472
|
+
for (var t = e.getAttribute("data-emotion").split(" "), n = 1; n < t.length; n++) i[t[n]] = !0;
|
|
473
|
+
o.push(e);
|
|
474
|
+
});
|
|
475
|
+
var s, c = [ht, gt], l, u = [st, lt(function(e) {
|
|
476
|
+
l.insert(e);
|
|
477
|
+
})], d = ct(c.concat(r, u)), f = function(e) {
|
|
478
|
+
return ot(tt(e), d);
|
|
479
|
+
};
|
|
480
|
+
s = function(e, t, n, r) {
|
|
481
|
+
l = n, f(e ? e + "{" + t.styles + "}" : t.styles), r && (p.inserted[t.name] = !0);
|
|
482
|
+
};
|
|
483
|
+
var p = {
|
|
484
|
+
key: t,
|
|
485
|
+
sheet: new _e({
|
|
486
|
+
key: t,
|
|
487
|
+
container: a,
|
|
488
|
+
nonce: e.nonce,
|
|
489
|
+
speedy: e.speedy,
|
|
490
|
+
prepend: e.prepend,
|
|
491
|
+
insertionPoint: e.insertionPoint
|
|
492
|
+
}),
|
|
493
|
+
nonce: e.nonce,
|
|
494
|
+
inserted: i,
|
|
495
|
+
registered: {},
|
|
496
|
+
insert: s
|
|
497
|
+
};
|
|
498
|
+
return p.sheet.hydrate(o), p;
|
|
499
|
+
};
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
502
|
+
function bt(e) {
|
|
503
|
+
for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4) n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= n >>> 24, t = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
504
|
+
switch (i) {
|
|
505
|
+
case 3: t ^= (e.charCodeAt(r + 2) & 255) << 16;
|
|
506
|
+
case 2: t ^= (e.charCodeAt(r + 1) & 255) << 8;
|
|
507
|
+
case 1: t ^= e.charCodeAt(r) & 255, t = (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
508
|
+
}
|
|
509
|
+
return t ^= t >>> 13, t = (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
510
|
+
}
|
|
511
|
+
//#endregion
|
|
512
|
+
//#region node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
513
|
+
var xt = {
|
|
514
|
+
animationIterationCount: 1,
|
|
515
|
+
aspectRatio: 1,
|
|
516
|
+
borderImageOutset: 1,
|
|
517
|
+
borderImageSlice: 1,
|
|
518
|
+
borderImageWidth: 1,
|
|
519
|
+
boxFlex: 1,
|
|
520
|
+
boxFlexGroup: 1,
|
|
521
|
+
boxOrdinalGroup: 1,
|
|
522
|
+
columnCount: 1,
|
|
523
|
+
columns: 1,
|
|
524
|
+
flex: 1,
|
|
525
|
+
flexGrow: 1,
|
|
526
|
+
flexPositive: 1,
|
|
527
|
+
flexShrink: 1,
|
|
528
|
+
flexNegative: 1,
|
|
529
|
+
flexOrder: 1,
|
|
530
|
+
gridRow: 1,
|
|
531
|
+
gridRowEnd: 1,
|
|
532
|
+
gridRowSpan: 1,
|
|
533
|
+
gridRowStart: 1,
|
|
534
|
+
gridColumn: 1,
|
|
535
|
+
gridColumnEnd: 1,
|
|
536
|
+
gridColumnSpan: 1,
|
|
537
|
+
gridColumnStart: 1,
|
|
538
|
+
msGridRow: 1,
|
|
539
|
+
msGridRowSpan: 1,
|
|
540
|
+
msGridColumn: 1,
|
|
541
|
+
msGridColumnSpan: 1,
|
|
542
|
+
fontWeight: 1,
|
|
543
|
+
lineHeight: 1,
|
|
544
|
+
opacity: 1,
|
|
545
|
+
order: 1,
|
|
546
|
+
orphans: 1,
|
|
547
|
+
scale: 1,
|
|
548
|
+
tabSize: 1,
|
|
549
|
+
widows: 1,
|
|
550
|
+
zIndex: 1,
|
|
551
|
+
zoom: 1,
|
|
552
|
+
WebkitLineClamp: 1,
|
|
553
|
+
fillOpacity: 1,
|
|
554
|
+
floodOpacity: 1,
|
|
555
|
+
stopOpacity: 1,
|
|
556
|
+
strokeDasharray: 1,
|
|
557
|
+
strokeDashoffset: 1,
|
|
558
|
+
strokeMiterlimit: 1,
|
|
559
|
+
strokeOpacity: 1,
|
|
560
|
+
strokeWidth: 1
|
|
561
|
+
}, St = /[A-Z]|^ms/g, Ct = /_EMO_([^_]+?)_([^]*?)_EMO_/g, wt = function(e) {
|
|
562
|
+
return e.charCodeAt(1) === 45;
|
|
563
|
+
}, Tt = function(e) {
|
|
564
|
+
return e != null && typeof e != "boolean";
|
|
565
|
+
}, Et = /* #__PURE__ */ ut(function(e) {
|
|
566
|
+
return wt(e) ? e : e.replace(St, "-$&").toLowerCase();
|
|
567
|
+
}), Dt = function(e, t) {
|
|
568
|
+
switch (e) {
|
|
569
|
+
case "animation":
|
|
570
|
+
case "animationName": if (typeof t == "string") return t.replace(Ct, function(e, t, n) {
|
|
571
|
+
return W = {
|
|
572
|
+
name: t,
|
|
573
|
+
styles: n,
|
|
574
|
+
next: W
|
|
575
|
+
}, t;
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
return xt[e] !== 1 && !wt(e) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
579
|
+
};
|
|
580
|
+
function Ot(e, t, n) {
|
|
581
|
+
if (n == null) return "";
|
|
582
|
+
var r = n;
|
|
583
|
+
if (r.__emotion_styles !== void 0) return r;
|
|
584
|
+
switch (typeof n) {
|
|
585
|
+
case "boolean": return "";
|
|
586
|
+
case "object":
|
|
587
|
+
var i = n;
|
|
588
|
+
if (i.anim === 1) return W = {
|
|
589
|
+
name: i.name,
|
|
590
|
+
styles: i.styles,
|
|
591
|
+
next: W
|
|
592
|
+
}, i.name;
|
|
593
|
+
var a = n;
|
|
594
|
+
if (a.styles !== void 0) {
|
|
595
|
+
var o = a.next;
|
|
596
|
+
if (o !== void 0) for (; o !== void 0;) W = {
|
|
597
|
+
name: o.name,
|
|
598
|
+
styles: o.styles,
|
|
599
|
+
next: W
|
|
600
|
+
}, o = o.next;
|
|
601
|
+
return a.styles + ";";
|
|
602
|
+
}
|
|
603
|
+
return kt(e, t, n);
|
|
604
|
+
case "function": if (e !== void 0) {
|
|
605
|
+
var s = W, c = n(e);
|
|
606
|
+
return W = s, Ot(e, t, c);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
var l = n;
|
|
610
|
+
if (t == null) return l;
|
|
611
|
+
var u = t[l];
|
|
612
|
+
return u === void 0 ? l : u;
|
|
613
|
+
}
|
|
614
|
+
function kt(e, t, n) {
|
|
615
|
+
var r = "";
|
|
616
|
+
if (Array.isArray(n)) for (var i = 0; i < n.length; i++) r += Ot(e, t, n[i]) + ";";
|
|
617
|
+
else for (var a in n) {
|
|
618
|
+
var o = n[a];
|
|
619
|
+
if (typeof o != "object") {
|
|
620
|
+
var s = o;
|
|
621
|
+
t != null && t[s] !== void 0 ? r += a + "{" + t[s] + "}" : Tt(s) && (r += Et(a) + ":" + Dt(a, s) + ";");
|
|
622
|
+
} else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0)) for (var c = 0; c < o.length; c++) Tt(o[c]) && (r += Et(a) + ":" + Dt(a, o[c]) + ";");
|
|
623
|
+
else {
|
|
624
|
+
var l = Ot(e, t, o);
|
|
625
|
+
switch (a) {
|
|
626
|
+
case "animation":
|
|
627
|
+
case "animationName":
|
|
628
|
+
r += Et(a) + ":" + l + ";";
|
|
629
|
+
break;
|
|
630
|
+
default: r += a + "{" + l + "}";
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
return r;
|
|
635
|
+
}
|
|
636
|
+
var At = /label:\s*([^\s;{]+)\s*(;|$)/g, W;
|
|
637
|
+
function jt(e, t, n) {
|
|
638
|
+
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0) return e[0];
|
|
639
|
+
var r = !0, i = "";
|
|
640
|
+
W = void 0;
|
|
641
|
+
var a = e[0];
|
|
642
|
+
a == null || a.raw === void 0 ? (r = !1, i += Ot(n, t, a)) : i += a[0];
|
|
643
|
+
for (var o = 1; o < e.length; o++) i += Ot(n, t, e[o]), r && (i += a[o]);
|
|
644
|
+
At.lastIndex = 0;
|
|
645
|
+
for (var s = "", c; (c = At.exec(i)) !== null;) s += "-" + c[1];
|
|
646
|
+
return {
|
|
647
|
+
name: bt(i) + s,
|
|
648
|
+
styles: i,
|
|
649
|
+
next: W
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
654
|
+
function Mt(e, t, n) {
|
|
655
|
+
var r = "";
|
|
656
|
+
return n.split(" ").forEach(function(n) {
|
|
657
|
+
e[n] === void 0 ? n && (r += n + " ") : t.push(e[n] + ";");
|
|
658
|
+
}), r;
|
|
659
|
+
}
|
|
660
|
+
var Nt = function(e, t, n) {
|
|
661
|
+
var r = e.key + "-" + t.name;
|
|
662
|
+
n === !1 && e.registered[r] === void 0 && (e.registered[r] = t.styles);
|
|
663
|
+
}, Pt = function(e, t, n) {
|
|
664
|
+
Nt(e, t, n);
|
|
665
|
+
var r = e.key + "-" + t.name;
|
|
666
|
+
if (e.inserted[t.name] === void 0) {
|
|
667
|
+
var i = t;
|
|
668
|
+
do
|
|
669
|
+
e.insert(t === i ? "." + r : "", i, e.sheet, !0), i = i.next;
|
|
670
|
+
while (i !== void 0);
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
//#endregion
|
|
674
|
+
//#region node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
|
|
675
|
+
function Ft(e, t) {
|
|
676
|
+
if (e.inserted[t.name] === void 0) return e.insert("", t, e.sheet, !0);
|
|
677
|
+
}
|
|
678
|
+
function It(e, t, n) {
|
|
679
|
+
var r = [], i = Mt(e, r, n);
|
|
680
|
+
return r.length < 2 ? n : i + t(r);
|
|
681
|
+
}
|
|
682
|
+
var Lt = function(e) {
|
|
683
|
+
var t = yt(e);
|
|
684
|
+
t.sheet.speedy = function(e) {
|
|
685
|
+
this.isSpeedy = e;
|
|
686
|
+
}, t.compat = !0;
|
|
687
|
+
var n = function() {
|
|
688
|
+
var e = jt([...arguments], t.registered, void 0);
|
|
689
|
+
return Pt(t, e, !1), t.key + "-" + e.name;
|
|
690
|
+
};
|
|
691
|
+
return {
|
|
692
|
+
css: n,
|
|
693
|
+
cx: function() {
|
|
694
|
+
var e = [...arguments];
|
|
695
|
+
return It(t.registered, n, Rt(e));
|
|
696
|
+
},
|
|
697
|
+
injectGlobal: function() {
|
|
698
|
+
Ft(t, jt([...arguments], t.registered));
|
|
699
|
+
},
|
|
700
|
+
keyframes: function() {
|
|
701
|
+
var e = jt([...arguments], t.registered), n = "animation-" + e.name;
|
|
702
|
+
return Ft(t, {
|
|
703
|
+
name: e.name,
|
|
704
|
+
styles: "@keyframes " + n + "{" + e.styles + "}"
|
|
705
|
+
}), n;
|
|
706
|
+
},
|
|
707
|
+
hydrate: function(e) {
|
|
708
|
+
e.forEach(function(e) {
|
|
709
|
+
t.inserted[e] = !0;
|
|
710
|
+
});
|
|
711
|
+
},
|
|
712
|
+
flush: function() {
|
|
713
|
+
t.registered = {}, t.inserted = {}, t.sheet.flush();
|
|
714
|
+
},
|
|
715
|
+
sheet: t.sheet,
|
|
716
|
+
cache: t,
|
|
717
|
+
getRegisteredStyles: Mt.bind(null, t.registered),
|
|
718
|
+
merge: It.bind(null, t.registered, n)
|
|
719
|
+
};
|
|
720
|
+
}, Rt = function e(t) {
|
|
721
|
+
for (var n = "", r = 0; r < t.length; r++) {
|
|
722
|
+
var i = t[r];
|
|
723
|
+
if (i != null) {
|
|
724
|
+
var a = void 0;
|
|
725
|
+
switch (typeof i) {
|
|
726
|
+
case "boolean": break;
|
|
727
|
+
case "object":
|
|
728
|
+
if (Array.isArray(i)) a = e(i);
|
|
729
|
+
else for (var o in a = "", i) i[o] && o && (a && (a += " "), a += o);
|
|
730
|
+
break;
|
|
731
|
+
default: a = i;
|
|
732
|
+
}
|
|
733
|
+
a && (n && (n += " "), n += a);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return n;
|
|
737
|
+
}, G = Lt({ key: "css" });
|
|
738
|
+
G.flush, G.hydrate, G.cx, G.merge, G.getRegisteredStyles;
|
|
739
|
+
var zt = G.injectGlobal;
|
|
740
|
+
G.keyframes;
|
|
741
|
+
var K = G.css;
|
|
742
|
+
G.sheet, G.cache;
|
|
743
|
+
//#endregion
|
|
744
|
+
//#region node_modules/throttle-debounce/esm/index.js
|
|
745
|
+
function Bt(e, t, n) {
|
|
746
|
+
var r = n || {}, i = r.noTrailing, a = i !== void 0 && i, o = r.noLeading, s = o !== void 0 && o, c = r.debounceMode, l = c === void 0 ? void 0 : c, u, d = !1, f = 0;
|
|
747
|
+
function p() {
|
|
748
|
+
u && clearTimeout(u);
|
|
749
|
+
}
|
|
750
|
+
function m(e) {
|
|
751
|
+
var t = (e || {}).upcomingOnly, n = t !== void 0 && t;
|
|
752
|
+
p(), d = !n;
|
|
753
|
+
}
|
|
754
|
+
function h() {
|
|
755
|
+
var n = [...arguments], r = this, i = Date.now() - f;
|
|
756
|
+
if (d) return;
|
|
757
|
+
function o() {
|
|
758
|
+
f = Date.now(), t.apply(r, n);
|
|
759
|
+
}
|
|
760
|
+
function c() {
|
|
761
|
+
u = void 0;
|
|
762
|
+
}
|
|
763
|
+
!s && l && !u && o(), p(), l === void 0 && i > e ? s ? (f = Date.now(), a || (u = setTimeout(l ? c : o, e))) : o() : a !== !0 && (u = setTimeout(l ? c : o, l === void 0 ? e - i : e));
|
|
764
|
+
}
|
|
765
|
+
return h.cancel = m, h;
|
|
766
|
+
}
|
|
767
|
+
//#endregion
|
|
768
|
+
//#region node_modules/@unovis/ts/utils/data.js
|
|
769
|
+
var Vt = (e) => typeof e == "number", Ht = (e) => typeof e == "function", Ut = (e) => e === void 0, Wt = (e) => typeof e == "string", Gt = (e) => Array.isArray(e), Kt = (e) => e instanceof Object, qt = (e) => e.constructor.name !== "Function" && e.constructor.name !== "Object", Jt = (e) => Kt(e) && !Gt(e) && !Ht(e) && !qt(e), Yt = (e, t, n = [], r = /* @__PURE__ */ new Set()) => {
|
|
770
|
+
if (Array.isArray(e)) {
|
|
771
|
+
if (!Array.isArray(t) || e.length !== t.length) return !1;
|
|
772
|
+
if (r.has(e)) return !0;
|
|
773
|
+
r.add(e);
|
|
774
|
+
for (let i = 0; i < e.length; i++) if (!Yt(e[i], t[i], n, r)) return !1;
|
|
775
|
+
return !0;
|
|
776
|
+
}
|
|
777
|
+
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
|
|
778
|
+
if (typeof e == "object" && e && t !== null) {
|
|
779
|
+
if (typeof t != "object") return !1;
|
|
780
|
+
if (e === t) return !0;
|
|
781
|
+
let i = Object.keys(e).filter((e) => !n.includes(e)), a = Object.keys(t).filter((e) => !n.includes(e));
|
|
782
|
+
if (i.length !== a.length) return !1;
|
|
783
|
+
if (r.has(e)) return !0;
|
|
784
|
+
r.add(e);
|
|
785
|
+
for (let a of i) if (!Yt(e[a], t[a], n, r)) return !1;
|
|
786
|
+
return !0;
|
|
787
|
+
}
|
|
788
|
+
return e === t;
|
|
789
|
+
}, Xt = (e, ...t) => e.filter((e) => !t.includes(e)), Zt = (e, t = /* @__PURE__ */ new Map()) => {
|
|
790
|
+
if (typeof e != "object" || !e) return e;
|
|
791
|
+
if (e instanceof Date) return new Date(e.getTime());
|
|
792
|
+
if (e instanceof Array) {
|
|
793
|
+
let n = [];
|
|
794
|
+
t.set(e, n);
|
|
795
|
+
for (let r of e) n.push(t.has(r) ? t.get(r) : Zt(r, t));
|
|
796
|
+
return n;
|
|
797
|
+
}
|
|
798
|
+
if (qt(e)) return e;
|
|
799
|
+
if (e instanceof Object) {
|
|
800
|
+
let n = {};
|
|
801
|
+
t.set(e, n);
|
|
802
|
+
let r = e;
|
|
803
|
+
return Object.keys(e).reduce((e, n) => (e[n] = t.has(r[n]) ? t.get(r[n]) : Zt(r[n], t), e), n), n;
|
|
804
|
+
}
|
|
805
|
+
return e;
|
|
806
|
+
}, Qt = (e, t, n = /* @__PURE__ */ new Map()) => {
|
|
807
|
+
if (!e || !t || e === t) return e;
|
|
808
|
+
let r = qt(e) ? e : Zt(e);
|
|
809
|
+
return n.has(t) ? n.get(t) : (n.set(t, r), Object.keys(t).forEach((i) => {
|
|
810
|
+
i !== "__proto__" && i !== "constructor" && (Jt(e[i]) && Jt(t[i]) ? r[i] = Qt(e[i], t[i], n) : qt(t) ? r[i] = t : r[i] = Zt(t[i]));
|
|
811
|
+
}), r);
|
|
812
|
+
}, $t = (e, t) => e.reduce((e, n, r, i, a = t(n, r)) => ((e[a] || (e[a] = [])).push(n), e), {}), en = (e, t, n) => Bt(t, e, n);
|
|
813
|
+
function tn(e, t, n) {
|
|
814
|
+
return Ht(t) ? t(e, n) : t;
|
|
815
|
+
}
|
|
816
|
+
function nn(e, t, n) {
|
|
817
|
+
return tn(e, t, n);
|
|
818
|
+
}
|
|
819
|
+
function q(e, t, n) {
|
|
820
|
+
return tn(e, t, n);
|
|
821
|
+
}
|
|
822
|
+
function rn(e, t, n) {
|
|
823
|
+
return Math.min(Math.max(e, t), n);
|
|
824
|
+
}
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region node_modules/d3-shape/src/arc.js
|
|
827
|
+
function an(e) {
|
|
828
|
+
return e.innerRadius;
|
|
829
|
+
}
|
|
830
|
+
function on(e) {
|
|
831
|
+
return e.outerRadius;
|
|
832
|
+
}
|
|
833
|
+
function sn(e) {
|
|
834
|
+
return e.startAngle;
|
|
835
|
+
}
|
|
836
|
+
function cn(e) {
|
|
837
|
+
return e.endAngle;
|
|
838
|
+
}
|
|
839
|
+
function ln(e) {
|
|
840
|
+
return e && e.padAngle;
|
|
841
|
+
}
|
|
842
|
+
function un(e, t, n, r, i, a, o, s) {
|
|
843
|
+
var c = n - e, l = r - t, u = o - i, d = s - a, f = d * c - u * l;
|
|
844
|
+
if (!(f * f < 1e-12)) return f = (u * (t - a) - d * (e - i)) / f, [e + f * c, t + f * l];
|
|
845
|
+
}
|
|
846
|
+
function dn(e, t, n, r, i, a, o) {
|
|
847
|
+
var s = e - n, c = t - r, l = (o ? a : -a) / g(s * s + c * c), u = l * c, d = -l * s, f = e + u, p = t + d, h = n + u, _ = r + d, v = (f + h) / 2, y = (p + _) / 2, b = h - f, x = _ - p, S = b * b + x * x, C = i - a, w = f * _ - h * p, T = (x < 0 ? -1 : 1) * g(m(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, ee = (-w * b + x * T) / S, te = E - v, ne = D - y, re = O - v, ie = ee - y;
|
|
848
|
+
return te * te + ne * ne > re * re + ie * ie && (E = O, D = ee), {
|
|
849
|
+
cx: E,
|
|
850
|
+
cy: D,
|
|
851
|
+
x01: -u,
|
|
852
|
+
y01: -d,
|
|
853
|
+
x11: E * (i / C - 1),
|
|
854
|
+
y11: D * (i / C - 1)
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
function fn() {
|
|
858
|
+
var e = an, t = on, n = d(0), r = null, i = sn, a = cn, o = ln, s = null, c = D(l);
|
|
859
|
+
function l() {
|
|
860
|
+
var l, u, d = +e.apply(this, arguments), f = +t.apply(this, arguments), m = i.apply(this, arguments) - S, T = a.apply(this, arguments) - S, E = C(T - m), D = T > m;
|
|
861
|
+
if (s ||= l = c(), f < d && (u = f, f = d, d = u), !(f > 1e-12)) s.moveTo(0, 0);
|
|
862
|
+
else if (E > b - 1e-12) s.moveTo(f * p(m), f * h(m)), s.arc(0, 0, f, m, T, !D), d > 1e-12 && (s.moveTo(d * p(T), d * h(T)), s.arc(0, 0, d, T, m, D));
|
|
863
|
+
else {
|
|
864
|
+
var O = m, ee = T, te = m, ne = T, re = E, ie = E, ae = o.apply(this, arguments) / 2, oe = ae > 1e-12 && (r ? +r.apply(this, arguments) : g(d * d + f * f)), se = v(C(f - d) / 2, +n.apply(this, arguments)), k = se, A = se, j, M;
|
|
865
|
+
if (oe > 1e-12) {
|
|
866
|
+
var ce = x(oe / d * h(ae)), le = x(oe / f * h(ae));
|
|
867
|
+
(re -= ce * 2) > 1e-12 ? (ce *= D ? 1 : -1, te += ce, ne -= ce) : (re = 0, te = ne = (m + T) / 2), (ie -= le * 2) > 1e-12 ? (le *= D ? 1 : -1, O += le, ee -= le) : (ie = 0, O = ee = (m + T) / 2);
|
|
868
|
+
}
|
|
869
|
+
var ue = f * p(O), de = f * h(O), fe = d * p(ne), N = d * h(ne);
|
|
870
|
+
if (se > 1e-12) {
|
|
871
|
+
var pe = f * p(ee), me = f * h(ee), he = d * p(te), ge = d * h(te), P;
|
|
872
|
+
if (E < w) if (P = un(ue, de, he, ge, pe, me, fe, N)) {
|
|
873
|
+
var _e = ue - P[0], F = de - P[1], ve = pe - P[0], I = me - P[1], ye = 1 / h(y((_e * ve + F * I) / (g(_e * _e + F * F) * g(ve * ve + I * I))) / 2), be = g(P[0] * P[0] + P[1] * P[1]);
|
|
874
|
+
k = v(se, (d - be) / (ye - 1)), A = v(se, (f - be) / (ye + 1));
|
|
875
|
+
} else k = A = 0;
|
|
876
|
+
}
|
|
877
|
+
ie > 1e-12 ? A > 1e-12 ? (j = dn(he, ge, ue, de, f, A, D), M = dn(pe, me, fe, N, f, A, D), s.moveTo(j.cx + j.x01, j.cy + j.y01), A < se ? s.arc(j.cx, j.cy, A, _(j.y01, j.x01), _(M.y01, M.x01), !D) : (s.arc(j.cx, j.cy, A, _(j.y01, j.x01), _(j.y11, j.x11), !D), s.arc(0, 0, f, _(j.cy + j.y11, j.cx + j.x11), _(M.cy + M.y11, M.cx + M.x11), !D), s.arc(M.cx, M.cy, A, _(M.y11, M.x11), _(M.y01, M.x01), !D))) : (s.moveTo(ue, de), s.arc(0, 0, f, O, ee, !D)) : s.moveTo(ue, de), !(d > 1e-12) || !(re > 1e-12) ? s.lineTo(fe, N) : k > 1e-12 ? (j = dn(fe, N, pe, me, d, -k, D), M = dn(ue, de, he, ge, d, -k, D), s.lineTo(j.cx + j.x01, j.cy + j.y01), k < se ? s.arc(j.cx, j.cy, k, _(j.y01, j.x01), _(M.y01, M.x01), !D) : (s.arc(j.cx, j.cy, k, _(j.y01, j.x01), _(j.y11, j.x11), !D), s.arc(0, 0, d, _(j.cy + j.y11, j.cx + j.x11), _(M.cy + M.y11, M.cx + M.x11), D), s.arc(M.cx, M.cy, k, _(M.y11, M.x11), _(M.y01, M.x01), !D))) : s.arc(0, 0, d, ne, te, D);
|
|
878
|
+
}
|
|
879
|
+
if (s.closePath(), l) return s = null, l + "" || null;
|
|
880
|
+
}
|
|
881
|
+
return l.centroid = function() {
|
|
882
|
+
var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, r = (+i.apply(this, arguments) + +a.apply(this, arguments)) / 2 - w / 2;
|
|
883
|
+
return [p(r) * n, h(r) * n];
|
|
884
|
+
}, l.innerRadius = function(t) {
|
|
885
|
+
return arguments.length ? (e = typeof t == "function" ? t : d(+t), l) : e;
|
|
886
|
+
}, l.outerRadius = function(e) {
|
|
887
|
+
return arguments.length ? (t = typeof e == "function" ? e : d(+e), l) : t;
|
|
888
|
+
}, l.cornerRadius = function(e) {
|
|
889
|
+
return arguments.length ? (n = typeof e == "function" ? e : d(+e), l) : n;
|
|
890
|
+
}, l.padRadius = function(e) {
|
|
891
|
+
return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : d(+e), l) : r;
|
|
892
|
+
}, l.startAngle = function(e) {
|
|
893
|
+
return arguments.length ? (i = typeof e == "function" ? e : d(+e), l) : i;
|
|
894
|
+
}, l.endAngle = function(e) {
|
|
895
|
+
return arguments.length ? (a = typeof e == "function" ? e : d(+e), l) : a;
|
|
896
|
+
}, l.padAngle = function(e) {
|
|
897
|
+
return arguments.length ? (o = typeof e == "function" ? e : d(+e), l) : o;
|
|
898
|
+
}, l.context = function(e) {
|
|
899
|
+
return arguments.length ? (s = e ?? null, l) : s;
|
|
900
|
+
}, l;
|
|
901
|
+
}
|
|
902
|
+
//#endregion
|
|
903
|
+
//#region node_modules/d3-shape/src/line.js
|
|
904
|
+
function pn(e, t) {
|
|
905
|
+
var n = d(!0), r = null, i = N, a = null, o = D(s);
|
|
906
|
+
e = typeof e == "function" ? e : e === void 0 ? O : d(e), t = typeof t == "function" ? t : t === void 0 ? E : d(t);
|
|
907
|
+
function s(s) {
|
|
908
|
+
var c, l = (s = f(s)).length, u, d = !1, p;
|
|
909
|
+
for (r ?? (a = i(p = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
|
|
910
|
+
if (p) return a = null, p + "" || null;
|
|
911
|
+
}
|
|
912
|
+
return s.x = function(t) {
|
|
913
|
+
return arguments.length ? (e = typeof t == "function" ? t : d(+t), s) : e;
|
|
914
|
+
}, s.y = function(e) {
|
|
915
|
+
return arguments.length ? (t = typeof e == "function" ? e : d(+e), s) : t;
|
|
916
|
+
}, s.defined = function(e) {
|
|
917
|
+
return arguments.length ? (n = typeof e == "function" ? e : d(!!e), s) : n;
|
|
918
|
+
}, s.curve = function(e) {
|
|
919
|
+
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
|
|
920
|
+
}, s.context = function(e) {
|
|
921
|
+
return arguments.length ? (e == null ? r = a = null : a = i(r = e), s) : r;
|
|
922
|
+
}, s;
|
|
923
|
+
}
|
|
924
|
+
//#endregion
|
|
925
|
+
//#region node_modules/d3-shape/src/area.js
|
|
926
|
+
function mn(e, t, n) {
|
|
927
|
+
var r = null, i = d(!0), a = null, o = N, s = null, c = D(l);
|
|
928
|
+
e = typeof e == "function" ? e : e === void 0 ? O : d(+e), t = typeof t == "function" ? t : d(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? E : d(+n);
|
|
929
|
+
function l(l) {
|
|
930
|
+
var u, d, p, m = (l = f(l)).length, h, g = !1, _, v = Array(m), y = Array(m);
|
|
931
|
+
for (a ?? (s = o(_ = c())), u = 0; u <= m; ++u) {
|
|
932
|
+
if (!(u < m && i(h = l[u], u, l)) === g) if (g = !g) d = u, s.areaStart(), s.lineStart();
|
|
933
|
+
else {
|
|
934
|
+
for (s.lineEnd(), s.lineStart(), p = u - 1; p >= d; --p) s.point(v[p], y[p]);
|
|
935
|
+
s.lineEnd(), s.areaEnd();
|
|
936
|
+
}
|
|
937
|
+
g && (v[u] = +e(h, u, l), y[u] = +t(h, u, l), s.point(r ? +r(h, u, l) : v[u], n ? +n(h, u, l) : y[u]));
|
|
938
|
+
}
|
|
939
|
+
if (_) return s = null, _ + "" || null;
|
|
940
|
+
}
|
|
941
|
+
function u() {
|
|
942
|
+
return pn().defined(i).curve(o).context(a);
|
|
943
|
+
}
|
|
944
|
+
return l.x = function(t) {
|
|
945
|
+
return arguments.length ? (e = typeof t == "function" ? t : d(+t), r = null, l) : e;
|
|
946
|
+
}, l.x0 = function(t) {
|
|
947
|
+
return arguments.length ? (e = typeof t == "function" ? t : d(+t), l) : e;
|
|
948
|
+
}, l.x1 = function(e) {
|
|
949
|
+
return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : d(+e), l) : r;
|
|
950
|
+
}, l.y = function(e) {
|
|
951
|
+
return arguments.length ? (t = typeof e == "function" ? e : d(+e), n = null, l) : t;
|
|
952
|
+
}, l.y0 = function(e) {
|
|
953
|
+
return arguments.length ? (t = typeof e == "function" ? e : d(+e), l) : t;
|
|
954
|
+
}, l.y1 = function(e) {
|
|
955
|
+
return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : d(+e), l) : n;
|
|
956
|
+
}, l.lineX0 = l.lineY0 = function() {
|
|
957
|
+
return u().x(e).y(t);
|
|
958
|
+
}, l.lineY1 = function() {
|
|
959
|
+
return u().x(e).y(n);
|
|
960
|
+
}, l.lineX1 = function() {
|
|
961
|
+
return u().x(r).y(t);
|
|
962
|
+
}, l.defined = function(e) {
|
|
963
|
+
return arguments.length ? (i = typeof e == "function" ? e : d(!!e), l) : i;
|
|
964
|
+
}, l.curve = function(e) {
|
|
965
|
+
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
|
|
966
|
+
}, l.context = function(e) {
|
|
967
|
+
return arguments.length ? (e == null ? a = s = null : s = o(a = e), l) : a;
|
|
968
|
+
}, l;
|
|
969
|
+
}
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region node_modules/d3-shape/src/descending.js
|
|
972
|
+
function hn(e, t) {
|
|
973
|
+
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
974
|
+
}
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region node_modules/d3-shape/src/identity.js
|
|
977
|
+
function gn(e) {
|
|
978
|
+
return e;
|
|
979
|
+
}
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region node_modules/d3-shape/src/pie.js
|
|
982
|
+
function _n() {
|
|
983
|
+
var e = gn, t = hn, n = null, r = d(0), i = d(b), a = d(0);
|
|
984
|
+
function o(o) {
|
|
985
|
+
var s, c = (o = f(o)).length, l, u, d = 0, p = Array(c), m = Array(c), h = +r.apply(this, arguments), g = Math.min(b, Math.max(-b, i.apply(this, arguments) - h)), _, v = Math.min(Math.abs(g) / c, a.apply(this, arguments)), y = v * (g < 0 ? -1 : 1), x;
|
|
986
|
+
for (s = 0; s < c; ++s) (x = m[p[s] = s] = +e(o[s], s, o)) > 0 && (d += x);
|
|
987
|
+
for (t == null ? n != null && p.sort(function(e, t) {
|
|
988
|
+
return n(o[e], o[t]);
|
|
989
|
+
}) : p.sort(function(e, n) {
|
|
990
|
+
return t(m[e], m[n]);
|
|
991
|
+
}), s = 0, u = d ? (g - c * y) / d : 0; s < c; ++s, h = _) l = p[s], x = m[l], _ = h + (x > 0 ? x * u : 0) + y, m[l] = {
|
|
992
|
+
data: o[l],
|
|
993
|
+
index: s,
|
|
994
|
+
value: x,
|
|
995
|
+
startAngle: h,
|
|
996
|
+
endAngle: _,
|
|
997
|
+
padAngle: v
|
|
998
|
+
};
|
|
999
|
+
return m;
|
|
1000
|
+
}
|
|
1001
|
+
return o.value = function(t) {
|
|
1002
|
+
return arguments.length ? (e = typeof t == "function" ? t : d(+t), o) : e;
|
|
1003
|
+
}, o.sortValues = function(e) {
|
|
1004
|
+
return arguments.length ? (t = e, n = null, o) : t;
|
|
1005
|
+
}, o.sort = function(e) {
|
|
1006
|
+
return arguments.length ? (n = e, t = null, o) : n;
|
|
1007
|
+
}, o.startAngle = function(e) {
|
|
1008
|
+
return arguments.length ? (r = typeof e == "function" ? e : d(+e), o) : r;
|
|
1009
|
+
}, o.endAngle = function(e) {
|
|
1010
|
+
return arguments.length ? (i = typeof e == "function" ? e : d(+e), o) : i;
|
|
1011
|
+
}, o.padAngle = function(e) {
|
|
1012
|
+
return arguments.length ? (a = typeof e == "function" ? e : d(+e), o) : a;
|
|
1013
|
+
}, o;
|
|
1014
|
+
}
|
|
1015
|
+
//#endregion
|
|
1016
|
+
//#region node_modules/d3-shape/src/curve/radial.js
|
|
1017
|
+
var vn = bn(N);
|
|
1018
|
+
function yn(e) {
|
|
1019
|
+
this._curve = e;
|
|
1020
|
+
}
|
|
1021
|
+
yn.prototype = {
|
|
1022
|
+
areaStart: function() {
|
|
1023
|
+
this._curve.areaStart();
|
|
1024
|
+
},
|
|
1025
|
+
areaEnd: function() {
|
|
1026
|
+
this._curve.areaEnd();
|
|
1027
|
+
},
|
|
1028
|
+
lineStart: function() {
|
|
1029
|
+
this._curve.lineStart();
|
|
1030
|
+
},
|
|
1031
|
+
lineEnd: function() {
|
|
1032
|
+
this._curve.lineEnd();
|
|
1033
|
+
},
|
|
1034
|
+
point: function(e, t) {
|
|
1035
|
+
this._curve.point(t * Math.sin(e), t * -Math.cos(e));
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
function bn(e) {
|
|
1039
|
+
function t(t) {
|
|
1040
|
+
return new yn(e(t));
|
|
1041
|
+
}
|
|
1042
|
+
return t._curve = e, t;
|
|
1043
|
+
}
|
|
1044
|
+
//#endregion
|
|
1045
|
+
//#region node_modules/d3-shape/src/lineRadial.js
|
|
1046
|
+
function xn(e) {
|
|
1047
|
+
var t = e.curve;
|
|
1048
|
+
return e.angle = e.x, delete e.x, e.radius = e.y, delete e.y, e.curve = function(e) {
|
|
1049
|
+
return arguments.length ? t(bn(e)) : t()._curve;
|
|
1050
|
+
}, e;
|
|
1051
|
+
}
|
|
1052
|
+
//#endregion
|
|
1053
|
+
//#region node_modules/d3-shape/src/areaRadial.js
|
|
1054
|
+
function Sn() {
|
|
1055
|
+
var e = mn().curve(vn), t = e.curve, n = e.lineX0, r = e.lineX1, i = e.lineY0, a = e.lineY1;
|
|
1056
|
+
return e.angle = e.x, delete e.x, e.startAngle = e.x0, delete e.x0, e.endAngle = e.x1, delete e.x1, e.radius = e.y, delete e.y, e.innerRadius = e.y0, delete e.y0, e.outerRadius = e.y1, delete e.y1, e.lineStartAngle = function() {
|
|
1057
|
+
return xn(n());
|
|
1058
|
+
}, delete e.lineX0, e.lineEndAngle = function() {
|
|
1059
|
+
return xn(r());
|
|
1060
|
+
}, delete e.lineX1, e.lineInnerRadius = function() {
|
|
1061
|
+
return xn(i());
|
|
1062
|
+
}, delete e.lineY0, e.lineOuterRadius = function() {
|
|
1063
|
+
return xn(a());
|
|
1064
|
+
}, delete e.lineY1, e.curve = function(e) {
|
|
1065
|
+
return arguments.length ? t(bn(e)) : t()._curve;
|
|
1066
|
+
}, e;
|
|
1067
|
+
}
|
|
1068
|
+
//#endregion
|
|
1069
|
+
//#region node_modules/d3-hierarchy/src/treemap/round.js
|
|
1070
|
+
function Cn(e) {
|
|
1071
|
+
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
1072
|
+
}
|
|
1073
|
+
//#endregion
|
|
1074
|
+
//#region node_modules/d3-hierarchy/src/treemap/dice.js
|
|
1075
|
+
function wn(e, t, n, r, i) {
|
|
1076
|
+
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
|
|
1077
|
+
}
|
|
1078
|
+
//#endregion
|
|
1079
|
+
//#region node_modules/d3-hierarchy/src/partition.js
|
|
1080
|
+
function Tn() {
|
|
1081
|
+
var e = 1, t = 1, n = 0, r = !1;
|
|
1082
|
+
function i(i) {
|
|
1083
|
+
var o = i.height + 1;
|
|
1084
|
+
return i.x0 = i.y0 = n, i.x1 = e, i.y1 = t / o, i.eachBefore(a(t, o)), r && i.eachBefore(Cn), i;
|
|
1085
|
+
}
|
|
1086
|
+
function a(e, t) {
|
|
1087
|
+
return function(r) {
|
|
1088
|
+
r.children && wn(r, r.x0, e * (r.depth + 1) / t, r.x1, e * (r.depth + 2) / t);
|
|
1089
|
+
var i = r.x0, a = r.y0, o = r.x1 - n, s = r.y1 - n;
|
|
1090
|
+
o < i && (i = o = (i + o) / 2), s < a && (a = s = (a + s) / 2), r.x0 = i, r.y0 = a, r.x1 = o, r.y1 = s;
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
return i.round = function(e) {
|
|
1094
|
+
return arguments.length ? (r = !!e, i) : r;
|
|
1095
|
+
}, i.size = function(n) {
|
|
1096
|
+
return arguments.length ? (e = +n[0], t = +n[1], i) : [e, t];
|
|
1097
|
+
}, i.padding = function(e) {
|
|
1098
|
+
return arguments.length ? (n = +e, i) : n;
|
|
1099
|
+
}, i;
|
|
1100
|
+
}
|
|
1101
|
+
//#endregion
|
|
1102
|
+
//#region node_modules/@unovis/ts/types/component.js
|
|
1103
|
+
var En;
|
|
1104
|
+
(function(e) {
|
|
1105
|
+
e[e.SVG = 0] = "SVG", e[e.HTML = 1] = "HTML";
|
|
1106
|
+
})(En ||= {});
|
|
1107
|
+
var J;
|
|
1108
|
+
(function(e) {
|
|
1109
|
+
e.Fit = "fit", e.Extend = "extend", e.FitWidth = "fit_width";
|
|
1110
|
+
})(J ||= {});
|
|
1111
|
+
//#endregion
|
|
1112
|
+
//#region node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js
|
|
1113
|
+
var Dn = [], On = function() {
|
|
1114
|
+
return Dn.some(function(e) {
|
|
1115
|
+
return e.activeTargets.length > 0;
|
|
1116
|
+
});
|
|
1117
|
+
}, kn = function() {
|
|
1118
|
+
return Dn.some(function(e) {
|
|
1119
|
+
return e.skippedTargets.length > 0;
|
|
1120
|
+
});
|
|
1121
|
+
}, An = "ResizeObserver loop completed with undelivered notifications.", jn = function() {
|
|
1122
|
+
var e;
|
|
1123
|
+
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", { message: An }) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = An), window.dispatchEvent(e);
|
|
1124
|
+
}, Mn;
|
|
1125
|
+
(function(e) {
|
|
1126
|
+
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1127
|
+
})(Mn ||= {});
|
|
1128
|
+
//#endregion
|
|
1129
|
+
//#region node_modules/@juggle/resize-observer/lib/utils/freeze.js
|
|
1130
|
+
var Nn = function(e) {
|
|
1131
|
+
return Object.freeze(e);
|
|
1132
|
+
}, Pn = function() {
|
|
1133
|
+
function e(e, t) {
|
|
1134
|
+
this.inlineSize = e, this.blockSize = t, Nn(this);
|
|
1135
|
+
}
|
|
1136
|
+
return e;
|
|
1137
|
+
}(), Fn = function() {
|
|
1138
|
+
function e(e, t, n, r) {
|
|
1139
|
+
return this.x = e, this.y = t, this.width = n, this.height = r, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Nn(this);
|
|
1140
|
+
}
|
|
1141
|
+
return e.prototype.toJSON = function() {
|
|
1142
|
+
var e = this;
|
|
1143
|
+
return {
|
|
1144
|
+
x: e.x,
|
|
1145
|
+
y: e.y,
|
|
1146
|
+
top: e.top,
|
|
1147
|
+
right: e.right,
|
|
1148
|
+
bottom: e.bottom,
|
|
1149
|
+
left: e.left,
|
|
1150
|
+
width: e.width,
|
|
1151
|
+
height: e.height
|
|
1152
|
+
};
|
|
1153
|
+
}, e.fromRect = function(t) {
|
|
1154
|
+
return new e(t.x, t.y, t.width, t.height);
|
|
1155
|
+
}, e;
|
|
1156
|
+
}(), In = function(e) {
|
|
1157
|
+
return e instanceof SVGElement && "getBBox" in e;
|
|
1158
|
+
}, Ln = function(e) {
|
|
1159
|
+
if (In(e)) {
|
|
1160
|
+
var t = e.getBBox(), n = t.width, r = t.height;
|
|
1161
|
+
return !n && !r;
|
|
1162
|
+
}
|
|
1163
|
+
var i = e, a = i.offsetWidth, o = i.offsetHeight;
|
|
1164
|
+
return !(a || o || e.getClientRects().length);
|
|
1165
|
+
}, Rn = function(e) {
|
|
1166
|
+
if (e instanceof Element) return !0;
|
|
1167
|
+
var t = e?.ownerDocument?.defaultView;
|
|
1168
|
+
return !!(t && e instanceof t.Element);
|
|
1169
|
+
}, zn = function(e) {
|
|
1170
|
+
switch (e.tagName) {
|
|
1171
|
+
case "INPUT": if (e.type !== "image") break;
|
|
1172
|
+
case "VIDEO":
|
|
1173
|
+
case "AUDIO":
|
|
1174
|
+
case "EMBED":
|
|
1175
|
+
case "OBJECT":
|
|
1176
|
+
case "CANVAS":
|
|
1177
|
+
case "IFRAME":
|
|
1178
|
+
case "IMG": return !0;
|
|
1179
|
+
}
|
|
1180
|
+
return !1;
|
|
1181
|
+
}, Bn = typeof window < "u" ? window : {}, Vn = /* @__PURE__ */ new WeakMap(), Hn = /auto|scroll/, Un = /^tb|vertical/, Wn = /msie|trident/i.test(Bn.navigator && Bn.navigator.userAgent), Y = function(e) {
|
|
1182
|
+
return parseFloat(e || "0");
|
|
1183
|
+
}, Gn = function(e, t, n) {
|
|
1184
|
+
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Pn((n ? t : e) || 0, (n ? e : t) || 0);
|
|
1185
|
+
}, Kn = Nn({
|
|
1186
|
+
devicePixelContentBoxSize: Gn(),
|
|
1187
|
+
borderBoxSize: Gn(),
|
|
1188
|
+
contentBoxSize: Gn(),
|
|
1189
|
+
contentRect: new Fn(0, 0, 0, 0)
|
|
1190
|
+
}), qn = function(e, t) {
|
|
1191
|
+
if (t === void 0 && (t = !1), Vn.has(e) && !t) return Vn.get(e);
|
|
1192
|
+
if (Ln(e)) return Vn.set(e, Kn), Kn;
|
|
1193
|
+
var n = getComputedStyle(e), r = In(e) && e.ownerSVGElement && e.getBBox(), i = !Wn && n.boxSizing === "border-box", a = Un.test(n.writingMode || ""), o = !r && Hn.test(n.overflowY || ""), s = !r && Hn.test(n.overflowX || ""), c = r ? 0 : Y(n.paddingTop), l = r ? 0 : Y(n.paddingRight), u = r ? 0 : Y(n.paddingBottom), d = r ? 0 : Y(n.paddingLeft), f = r ? 0 : Y(n.borderTopWidth), p = r ? 0 : Y(n.borderRightWidth), m = r ? 0 : Y(n.borderBottomWidth), h = r ? 0 : Y(n.borderLeftWidth), g = d + l, _ = c + u, v = h + p, y = f + m, b = s ? e.offsetHeight - y - e.clientHeight : 0, x = o ? e.offsetWidth - v - e.clientWidth : 0, S = i ? g + v : 0, C = i ? _ + y : 0, w = r ? r.width : Y(n.width) - S - x, T = r ? r.height : Y(n.height) - C - b, E = w + g + x + v, D = T + _ + b + y, O = Nn({
|
|
1194
|
+
devicePixelContentBoxSize: Gn(Math.round(w * devicePixelRatio), Math.round(T * devicePixelRatio), a),
|
|
1195
|
+
borderBoxSize: Gn(E, D, a),
|
|
1196
|
+
contentBoxSize: Gn(w, T, a),
|
|
1197
|
+
contentRect: new Fn(d, c, w, T)
|
|
1198
|
+
});
|
|
1199
|
+
return Vn.set(e, O), O;
|
|
1200
|
+
}, Jn = function(e, t, n) {
|
|
1201
|
+
var r = qn(e, n), i = r.borderBoxSize, a = r.contentBoxSize, o = r.devicePixelContentBoxSize;
|
|
1202
|
+
switch (t) {
|
|
1203
|
+
case Mn.DEVICE_PIXEL_CONTENT_BOX: return o;
|
|
1204
|
+
case Mn.BORDER_BOX: return i;
|
|
1205
|
+
default: return a;
|
|
1206
|
+
}
|
|
1207
|
+
}, Yn = function() {
|
|
1208
|
+
function e(e) {
|
|
1209
|
+
var t = qn(e);
|
|
1210
|
+
this.target = e, this.contentRect = t.contentRect, this.borderBoxSize = Nn([t.borderBoxSize]), this.contentBoxSize = Nn([t.contentBoxSize]), this.devicePixelContentBoxSize = Nn([t.devicePixelContentBoxSize]);
|
|
1211
|
+
}
|
|
1212
|
+
return e;
|
|
1213
|
+
}(), Xn = function(e) {
|
|
1214
|
+
if (Ln(e)) return Infinity;
|
|
1215
|
+
for (var t = 0, n = e.parentNode; n;) t += 1, n = n.parentNode;
|
|
1216
|
+
return t;
|
|
1217
|
+
}, Zn = function() {
|
|
1218
|
+
var e = Infinity, t = [];
|
|
1219
|
+
Dn.forEach(function(n) {
|
|
1220
|
+
if (n.activeTargets.length !== 0) {
|
|
1221
|
+
var r = [];
|
|
1222
|
+
n.activeTargets.forEach(function(t) {
|
|
1223
|
+
var n = new Yn(t.target), i = Xn(t.target);
|
|
1224
|
+
r.push(n), t.lastReportedSize = Jn(t.target, t.observedBox), i < e && (e = i);
|
|
1225
|
+
}), t.push(function() {
|
|
1226
|
+
n.callback.call(n.observer, r, n.observer);
|
|
1227
|
+
}), n.activeTargets.splice(0, n.activeTargets.length);
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
for (var n = 0, r = t; n < r.length; n++) {
|
|
1231
|
+
var i = r[n];
|
|
1232
|
+
i();
|
|
1233
|
+
}
|
|
1234
|
+
return e;
|
|
1235
|
+
}, Qn = function(e) {
|
|
1236
|
+
Dn.forEach(function(t) {
|
|
1237
|
+
t.activeTargets.splice(0, t.activeTargets.length), t.skippedTargets.splice(0, t.skippedTargets.length), t.observationTargets.forEach(function(n) {
|
|
1238
|
+
n.isActive() && (Xn(n.target) > e ? t.activeTargets.push(n) : t.skippedTargets.push(n));
|
|
1239
|
+
});
|
|
1240
|
+
});
|
|
1241
|
+
}, $n = function() {
|
|
1242
|
+
var e = 0;
|
|
1243
|
+
for (Qn(e); On();) e = Zn(), Qn(e);
|
|
1244
|
+
return kn() && jn(), e > 0;
|
|
1245
|
+
}, er, tr = [], nr = function() {
|
|
1246
|
+
return tr.splice(0).forEach(function(e) {
|
|
1247
|
+
return e();
|
|
1248
|
+
});
|
|
1249
|
+
}, rr = function(e) {
|
|
1250
|
+
if (!er) {
|
|
1251
|
+
var t = 0, n = document.createTextNode("");
|
|
1252
|
+
new MutationObserver(function() {
|
|
1253
|
+
return nr();
|
|
1254
|
+
}).observe(n, { characterData: !0 }), er = function() {
|
|
1255
|
+
n.textContent = `${t ? t-- : t++}`;
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
tr.push(e), er();
|
|
1259
|
+
}, ir = function(e) {
|
|
1260
|
+
rr(function() {
|
|
1261
|
+
requestAnimationFrame(e);
|
|
1262
|
+
});
|
|
1263
|
+
}, ar = 0, or = function() {
|
|
1264
|
+
return !!ar;
|
|
1265
|
+
}, sr = 250, cr = {
|
|
1266
|
+
attributes: !0,
|
|
1267
|
+
characterData: !0,
|
|
1268
|
+
childList: !0,
|
|
1269
|
+
subtree: !0
|
|
1270
|
+
}, lr = [
|
|
1271
|
+
"resize",
|
|
1272
|
+
"load",
|
|
1273
|
+
"transitionend",
|
|
1274
|
+
"animationend",
|
|
1275
|
+
"animationstart",
|
|
1276
|
+
"animationiteration",
|
|
1277
|
+
"keyup",
|
|
1278
|
+
"keydown",
|
|
1279
|
+
"mouseup",
|
|
1280
|
+
"mousedown",
|
|
1281
|
+
"mouseover",
|
|
1282
|
+
"mouseout",
|
|
1283
|
+
"blur",
|
|
1284
|
+
"focus"
|
|
1285
|
+
], ur = function(e) {
|
|
1286
|
+
return e === void 0 && (e = 0), Date.now() + e;
|
|
1287
|
+
}, dr = !1, fr = new (function() {
|
|
1288
|
+
function e() {
|
|
1289
|
+
var e = this;
|
|
1290
|
+
this.stopped = !0, this.listener = function() {
|
|
1291
|
+
return e.schedule();
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
return e.prototype.run = function(e) {
|
|
1295
|
+
var t = this;
|
|
1296
|
+
if (e === void 0 && (e = sr), !dr) {
|
|
1297
|
+
dr = !0;
|
|
1298
|
+
var n = ur(e);
|
|
1299
|
+
ir(function() {
|
|
1300
|
+
var r = !1;
|
|
1301
|
+
try {
|
|
1302
|
+
r = $n();
|
|
1303
|
+
} finally {
|
|
1304
|
+
if (dr = !1, e = n - ur(), !or()) return;
|
|
1305
|
+
r ? t.run(1e3) : e > 0 ? t.run(e) : t.start();
|
|
1306
|
+
}
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
}, e.prototype.schedule = function() {
|
|
1310
|
+
this.stop(), this.run();
|
|
1311
|
+
}, e.prototype.observe = function() {
|
|
1312
|
+
var e = this, t = function() {
|
|
1313
|
+
return e.observer && e.observer.observe(document.body, cr);
|
|
1314
|
+
};
|
|
1315
|
+
document.body ? t() : Bn.addEventListener("DOMContentLoaded", t);
|
|
1316
|
+
}, e.prototype.start = function() {
|
|
1317
|
+
var e = this;
|
|
1318
|
+
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), lr.forEach(function(t) {
|
|
1319
|
+
return Bn.addEventListener(t, e.listener, !0);
|
|
1320
|
+
}));
|
|
1321
|
+
}, e.prototype.stop = function() {
|
|
1322
|
+
var e = this;
|
|
1323
|
+
this.stopped ||= (this.observer && this.observer.disconnect(), lr.forEach(function(t) {
|
|
1324
|
+
return Bn.removeEventListener(t, e.listener, !0);
|
|
1325
|
+
}), !0);
|
|
1326
|
+
}, e;
|
|
1327
|
+
}())(), pr = function(e) {
|
|
1328
|
+
!ar && e > 0 && fr.start(), ar += e, !ar && fr.stop();
|
|
1329
|
+
}, mr = function(e) {
|
|
1330
|
+
return !In(e) && !zn(e) && getComputedStyle(e).display === "inline";
|
|
1331
|
+
}, hr = function() {
|
|
1332
|
+
function e(e, t) {
|
|
1333
|
+
this.target = e, this.observedBox = t || Mn.CONTENT_BOX, this.lastReportedSize = {
|
|
1334
|
+
inlineSize: 0,
|
|
1335
|
+
blockSize: 0
|
|
1336
|
+
};
|
|
1337
|
+
}
|
|
1338
|
+
return e.prototype.isActive = function() {
|
|
1339
|
+
var e = Jn(this.target, this.observedBox, !0);
|
|
1340
|
+
return mr(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
|
|
1341
|
+
}, e;
|
|
1342
|
+
}(), gr = function() {
|
|
1343
|
+
function e(e, t) {
|
|
1344
|
+
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = t;
|
|
1345
|
+
}
|
|
1346
|
+
return e;
|
|
1347
|
+
}(), _r = /* @__PURE__ */ new WeakMap(), vr = function(e, t) {
|
|
1348
|
+
for (var n = 0; n < e.length; n += 1) if (e[n].target === t) return n;
|
|
1349
|
+
return -1;
|
|
1350
|
+
}, yr = function() {
|
|
1351
|
+
function e() {}
|
|
1352
|
+
return e.connect = function(e, t) {
|
|
1353
|
+
var n = new gr(e, t);
|
|
1354
|
+
_r.set(e, n);
|
|
1355
|
+
}, e.observe = function(e, t, n) {
|
|
1356
|
+
var r = _r.get(e), i = r.observationTargets.length === 0;
|
|
1357
|
+
vr(r.observationTargets, t) < 0 && (i && Dn.push(r), r.observationTargets.push(new hr(t, n && n.box)), pr(1), fr.schedule());
|
|
1358
|
+
}, e.unobserve = function(e, t) {
|
|
1359
|
+
var n = _r.get(e), r = vr(n.observationTargets, t), i = n.observationTargets.length === 1;
|
|
1360
|
+
r >= 0 && (i && Dn.splice(Dn.indexOf(n), 1), n.observationTargets.splice(r, 1), pr(-1));
|
|
1361
|
+
}, e.disconnect = function(e) {
|
|
1362
|
+
var t = this, n = _r.get(e);
|
|
1363
|
+
n.observationTargets.slice().forEach(function(n) {
|
|
1364
|
+
return t.unobserve(e, n.target);
|
|
1365
|
+
}), n.activeTargets.splice(0, n.activeTargets.length);
|
|
1366
|
+
}, e;
|
|
1367
|
+
}(), br = function() {
|
|
1368
|
+
function e(e) {
|
|
1369
|
+
if (arguments.length === 0) throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1370
|
+
if (typeof e != "function") throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
1371
|
+
yr.connect(this, e);
|
|
1372
|
+
}
|
|
1373
|
+
return e.prototype.observe = function(e, t) {
|
|
1374
|
+
if (arguments.length === 0) throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1375
|
+
if (!Rn(e)) throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1376
|
+
yr.observe(this, e, t);
|
|
1377
|
+
}, e.prototype.unobserve = function(e) {
|
|
1378
|
+
if (arguments.length === 0) throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1379
|
+
if (!Rn(e)) throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1380
|
+
yr.unobserve(this, e);
|
|
1381
|
+
}, e.prototype.disconnect = function() {
|
|
1382
|
+
yr.disconnect(this);
|
|
1383
|
+
}, e.toString = function() {
|
|
1384
|
+
return "function ResizeObserver () { [polyfill code] }";
|
|
1385
|
+
}, e;
|
|
1386
|
+
}(), xr = globalThis.ResizeObserver || br, Sr = {
|
|
1387
|
+
duration: void 0,
|
|
1388
|
+
margin: {
|
|
1389
|
+
top: 0,
|
|
1390
|
+
bottom: 0,
|
|
1391
|
+
left: 0,
|
|
1392
|
+
right: 0
|
|
1393
|
+
},
|
|
1394
|
+
padding: {
|
|
1395
|
+
top: 0,
|
|
1396
|
+
bottom: 0,
|
|
1397
|
+
left: 0,
|
|
1398
|
+
right: 0
|
|
1399
|
+
},
|
|
1400
|
+
sizing: J.Fit,
|
|
1401
|
+
width: void 0,
|
|
1402
|
+
height: void 0,
|
|
1403
|
+
svgDefs: void 0,
|
|
1404
|
+
ariaLabel: void 0
|
|
1405
|
+
}, Cr = class e {
|
|
1406
|
+
constructor(t) {
|
|
1407
|
+
this._defaultConfig = Sr, this._isFirstRender = !0, this._renderAnimationFrameId = null, this._container = t;
|
|
1408
|
+
let n = c(this._container);
|
|
1409
|
+
n.attr("role", "figure"), this.svg = n.append("svg").style("display", "block").attr("xmlns", "http://www.w3.org/2000/svg").attr("height", e.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden", !0), this._svgDefs = this.svg.append("defs"), this._svgDefsExternal = this.svg.append("defs"), this.element = this.svg.node();
|
|
1410
|
+
}
|
|
1411
|
+
updateContainer(e) {
|
|
1412
|
+
this.prevConfig = this.config, this.config = Qt(this._defaultConfig, e), e?.svgDefs !== this.prevConfig?.svgDefs && (this._svgDefsExternal.selectAll("*").remove(), this._svgDefsExternal.html(e.svgDefs));
|
|
1413
|
+
}
|
|
1414
|
+
_preRender() {}
|
|
1415
|
+
_render(e) {
|
|
1416
|
+
let { config: t } = this;
|
|
1417
|
+
c(this._container).attr("aria-label", t.ariaLabel), this._isFirstRender = !1;
|
|
1418
|
+
}
|
|
1419
|
+
render(e = this.config.duration) {
|
|
1420
|
+
let t = this.config.width || this.containerWidth, n = this.config.height || this.containerHeight;
|
|
1421
|
+
this.svg.attr("width", t).attr("height", n), this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
|
|
1422
|
+
this._preRender(), this._render(e);
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
get containerWidth() {
|
|
1426
|
+
return this.config.width ? this.element.clientWidth : this._container.clientWidth || this._container.getBoundingClientRect().width;
|
|
1427
|
+
}
|
|
1428
|
+
get containerHeight() {
|
|
1429
|
+
return this.config.height ? this.element.clientHeight : this._container.clientHeight || this._container.getBoundingClientRect().height || e.DEFAULT_CONTAINER_HEIGHT;
|
|
1430
|
+
}
|
|
1431
|
+
get width() {
|
|
1432
|
+
return rn(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Infinity);
|
|
1433
|
+
}
|
|
1434
|
+
get height() {
|
|
1435
|
+
return rn(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Infinity);
|
|
1436
|
+
}
|
|
1437
|
+
_removeAllChildren() {
|
|
1438
|
+
for (; this.element.firstChild;) this.element.removeChild(this.element.firstChild);
|
|
1439
|
+
}
|
|
1440
|
+
_onResize() {
|
|
1441
|
+
let { config: e } = this;
|
|
1442
|
+
(e.sizing === J.Fit || e.sizing === J.FitWidth) && this.render(0);
|
|
1443
|
+
}
|
|
1444
|
+
_setUpResizeObserver() {
|
|
1445
|
+
if (this._resizeObserver) return;
|
|
1446
|
+
let e = this._container.getBoundingClientRect();
|
|
1447
|
+
this._containerSize = {
|
|
1448
|
+
width: e.width,
|
|
1449
|
+
height: e.height
|
|
1450
|
+
}, this._resizeObserver = new xr((e, t) => {
|
|
1451
|
+
cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {
|
|
1452
|
+
let e = this._container.getBoundingClientRect(), t = {
|
|
1453
|
+
width: e.width,
|
|
1454
|
+
height: e.height
|
|
1455
|
+
};
|
|
1456
|
+
!Yt(this._containerSize, t) && t.width && t.height && (this._containerSize = t, this._onResize());
|
|
1457
|
+
});
|
|
1458
|
+
}), this._resizeObserver.observe(this._container);
|
|
1459
|
+
}
|
|
1460
|
+
destroy() {
|
|
1461
|
+
var e;
|
|
1462
|
+
cancelAnimationFrame(this._renderAnimationFrameId), cancelAnimationFrame(this._resizeObserverAnimationFrameId), (e = this._resizeObserver) == null || e.disconnect(), this.svg.remove();
|
|
1463
|
+
}
|
|
1464
|
+
};
|
|
1465
|
+
Cr.DEFAULT_CONTAINER_HEIGHT = 300;
|
|
1466
|
+
//#endregion
|
|
1467
|
+
//#region node_modules/@unovis/ts/utils/to-px.js
|
|
1468
|
+
function wr(e) {
|
|
1469
|
+
return e = String(e), [parseFloat(e), e.match(/[\d.\-+]*\s*(.*)/)?.[1] || ""];
|
|
1470
|
+
}
|
|
1471
|
+
function Tr() {
|
|
1472
|
+
return typeof window < "u" && typeof document < "u";
|
|
1473
|
+
}
|
|
1474
|
+
function Er(e, t) {
|
|
1475
|
+
let n = wr(getComputedStyle(e).getPropertyValue(t));
|
|
1476
|
+
return n[0] * (Ar(n[1], e) ?? 1);
|
|
1477
|
+
}
|
|
1478
|
+
function Dr(e, t) {
|
|
1479
|
+
let n = document.createElement("div");
|
|
1480
|
+
n.style.height = `128${e}`, t.appendChild(n);
|
|
1481
|
+
let r = Er(n, "height") / 128;
|
|
1482
|
+
return t.removeChild(n), r;
|
|
1483
|
+
}
|
|
1484
|
+
var Or = null;
|
|
1485
|
+
function kr() {
|
|
1486
|
+
return Tr() ? (Or === null && (Or = Dr("in", document.body)), Or) : 96;
|
|
1487
|
+
}
|
|
1488
|
+
function Ar(e, t) {
|
|
1489
|
+
if (!e && e !== 0) return null;
|
|
1490
|
+
if (!Tr()) {
|
|
1491
|
+
let t = wr(String(e));
|
|
1492
|
+
if (!isNaN(t[0])) {
|
|
1493
|
+
let e = t[1]?.toLowerCase() || "px";
|
|
1494
|
+
if (e === "px" || e === "") return t[0];
|
|
1495
|
+
if (e === "em" || e === "rem") return t[0] * 16;
|
|
1496
|
+
if (e === "in") return t[0] * 96;
|
|
1497
|
+
if (e === "cm") return t[0] * (96 / 2.54);
|
|
1498
|
+
if (e === "mm") return t[0] * (96 / 25.4);
|
|
1499
|
+
if (e === "pt") return t[0] * (96 / 72);
|
|
1500
|
+
if (e === "pc") return t[0] * (96 / 6);
|
|
1501
|
+
}
|
|
1502
|
+
return null;
|
|
1503
|
+
}
|
|
1504
|
+
let n = document.body;
|
|
1505
|
+
t && t !== window && t !== document && (n = t);
|
|
1506
|
+
let r = (String(e) || "px").trim().toLowerCase();
|
|
1507
|
+
switch (r) {
|
|
1508
|
+
case "%": return n.clientHeight / 100;
|
|
1509
|
+
case "ch":
|
|
1510
|
+
case "ex": return Dr(r, n);
|
|
1511
|
+
case "em": return Er(n, "font-size");
|
|
1512
|
+
case "rem": return Er(document.body, "font-size");
|
|
1513
|
+
case "vw": return window.innerWidth / 100;
|
|
1514
|
+
case "vh": return window.innerHeight / 100;
|
|
1515
|
+
case "vmin": return Math.min(window.innerWidth, window.innerHeight) / 100;
|
|
1516
|
+
case "vmax": return Math.max(window.innerWidth, window.innerHeight) / 100;
|
|
1517
|
+
case "in": return kr();
|
|
1518
|
+
case "cm": return kr() / 2.54;
|
|
1519
|
+
case "mm": return kr() / 25.4;
|
|
1520
|
+
case "pt": return kr() / 72;
|
|
1521
|
+
case "pc": return kr() / 6;
|
|
1522
|
+
case "px": return 1;
|
|
1523
|
+
}
|
|
1524
|
+
let i = wr(r);
|
|
1525
|
+
if (!isNaN(i[0])) {
|
|
1526
|
+
if (i[1]) {
|
|
1527
|
+
let e = Ar(i[1], n);
|
|
1528
|
+
return typeof e == "number" ? i[0] * e : null;
|
|
1529
|
+
}
|
|
1530
|
+
return i[0];
|
|
1531
|
+
}
|
|
1532
|
+
return null;
|
|
1533
|
+
}
|
|
1534
|
+
//#endregion
|
|
1535
|
+
//#region node_modules/@unovis/ts/utils/misc.js
|
|
1536
|
+
function jr() {
|
|
1537
|
+
let e = () => Math.floor((1 + crypto.getRandomValues(/* @__PURE__ */ new Uint32Array(1))[0]) * 65536).toString(16).substring(1);
|
|
1538
|
+
return `${e() + e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`;
|
|
1539
|
+
}
|
|
1540
|
+
var Mr = /* @__PURE__ */ new WeakMap();
|
|
1541
|
+
function Nr(e, t) {
|
|
1542
|
+
if (!Wt(e)) return "";
|
|
1543
|
+
let n = e.substr(4, e.length - 5), r = Mr.get(t);
|
|
1544
|
+
if (r || (r = /* @__PURE__ */ new Map(), Mr.set(t, r)), r.has(n)) return r.get(n);
|
|
1545
|
+
let i = getComputedStyle(t).getPropertyValue(n);
|
|
1546
|
+
return r.set(n, i), i;
|
|
1547
|
+
}
|
|
1548
|
+
function Pr(e, t) {
|
|
1549
|
+
return Ar(Nr(e, t));
|
|
1550
|
+
}
|
|
1551
|
+
//#endregion
|
|
1552
|
+
//#region node_modules/@unovis/ts/utils/theme.js
|
|
1553
|
+
var Fr = "html[data-theme=\"dark\"],html.dark-theme,body.dark-theme,html.theme-dark,body.theme-dark", Ir = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS) || [
|
|
1554
|
+
"#4D8CFD",
|
|
1555
|
+
"#FF6B7E",
|
|
1556
|
+
"#F4B83E",
|
|
1557
|
+
"#A6CC74",
|
|
1558
|
+
"#00C19A",
|
|
1559
|
+
"#6859BE"
|
|
1560
|
+
], Lr = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS_DARK) || [
|
|
1561
|
+
"#4D8CFD",
|
|
1562
|
+
"#FF6B7E",
|
|
1563
|
+
"#FFC16D",
|
|
1564
|
+
"#A6CC74",
|
|
1565
|
+
"#00C19A",
|
|
1566
|
+
"#7887E0"
|
|
1567
|
+
], X = (e) => `--vis-${Vt(e) ? `color${e % Ir.length}` : e}`;
|
|
1568
|
+
function Rr(e, t = .4) {
|
|
1569
|
+
let n = u(e);
|
|
1570
|
+
return n.l *= 1 + t, n.formatHex();
|
|
1571
|
+
}
|
|
1572
|
+
function zr(e, t = .4, n = .6) {
|
|
1573
|
+
let r = u(e);
|
|
1574
|
+
return r.s *= 1 - n, r.l *= 1 - t, r.formatHex();
|
|
1575
|
+
}
|
|
1576
|
+
var Br = [
|
|
1577
|
+
{
|
|
1578
|
+
id: "stripes-diagonal",
|
|
1579
|
+
svg: "<path d=\"M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2\" stroke=\"#000\"/>"
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
id: "dots",
|
|
1583
|
+
svg: "<path d=\"m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3\" fill\"#000\"/>"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
id: "stripes-vertical",
|
|
1587
|
+
svg: "<path d=\"M 5,-1 L5,11\" stroke=\"#000\"/>"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
id: "crosshatch",
|
|
1591
|
+
svg: "<path d=\"M0 0L10 10ZM10 0L0 10Z\" stroke=\"#000\"/>"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
id: "waves",
|
|
1595
|
+
svg: "<path d=\"M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z\" fill=\"#000\"/>"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
id: "circles",
|
|
1599
|
+
svg: "<circle cx=\"5\" cy=\"5\" r=\"3\" stroke=\"#000\" fill=\"#fff\"/>"
|
|
1600
|
+
}
|
|
1601
|
+
], Vr = [
|
|
1602
|
+
{
|
|
1603
|
+
id: "circle",
|
|
1604
|
+
marker: "<circle cx=\"5\" cy=\"5\" r=\"5\"/>",
|
|
1605
|
+
dashArray: []
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
id: "triangle",
|
|
1609
|
+
marker: "<path d=\"M5,0 L10,9 L0,9Z\">",
|
|
1610
|
+
dashArray: [9, 1]
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
id: "diamond",
|
|
1614
|
+
marker: "<path d=\"M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z\">",
|
|
1615
|
+
dashArray: [2]
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
id: "arrow",
|
|
1619
|
+
marker: "<path d=\"M4 0 0 0 6 5 0 10 4 10 10 5Z\">",
|
|
1620
|
+
dashArray: [
|
|
1621
|
+
2,
|
|
1622
|
+
3,
|
|
1623
|
+
8,
|
|
1624
|
+
3
|
|
1625
|
+
]
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
id: "square",
|
|
1629
|
+
marker: "<rect x=\"1\" y=\"1\" width=\"8\" height=\"8\"/>",
|
|
1630
|
+
dashArray: [6]
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
id: "star",
|
|
1634
|
+
marker: "<path d=\"m2 9 3-9 3 9L0 3h10Z\"/>",
|
|
1635
|
+
dashArray: [1, 6]
|
|
1636
|
+
}
|
|
1637
|
+
];
|
|
1638
|
+
function Z(e) {
|
|
1639
|
+
return `vis-${`pattern-${e.svg ? "fill" : "marker"}`}-${e.id}`;
|
|
1640
|
+
}
|
|
1641
|
+
var Hr = (e) => `<mask id="${Z(e)}">
|
|
1642
|
+
<pattern id="${e.id}" viewBox="0 0 10 10" width="10" height="10" patternUnits="userSpaceOnUse">
|
|
1643
|
+
<rect width="100%" height="100%" fill="#fff"/>
|
|
1644
|
+
${e.svg}
|
|
1645
|
+
</pattern>
|
|
1646
|
+
<rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${e.id})"/>
|
|
1647
|
+
</mask>`, Ur = (e, t) => `<marker id="${Z(e)}"
|
|
1648
|
+
fill="var(${X(t)})"
|
|
1649
|
+
markerUnits="userSpaceOnUse"
|
|
1650
|
+
refX="5"
|
|
1651
|
+
refY="5"
|
|
1652
|
+
markerWidth="10"
|
|
1653
|
+
markerHeight="10">
|
|
1654
|
+
${e.marker}
|
|
1655
|
+
</marker>`;
|
|
1656
|
+
function Wr() {
|
|
1657
|
+
let e = Br.map(Hr).concat(Vr.map(Ur)).join(""), t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
1658
|
+
t.setAttribute("height", "100%"), t.setAttribute("width", "100%"), t.style.position = "fixed", t.style.zIndex = "-99999999", t.innerHTML = `<defs>${e}</defs>`, document.body.appendChild(t);
|
|
1659
|
+
}
|
|
1660
|
+
typeof window < "u" && Wr(), globalThis != null && globalThis.UNOVIS_ICON_FONT_FAMILY;
|
|
1661
|
+
var Gr = (globalThis == null ? void 0 : globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT) || .5;
|
|
1662
|
+
globalThis != null && globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT, globalThis != null && globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT;
|
|
1663
|
+
var Kr = (globalThis == null ? void 0 : globalThis.UNOVIS_TEXT_DEFAULT) || {
|
|
1664
|
+
text: "",
|
|
1665
|
+
fontSize: 12,
|
|
1666
|
+
fontFamily: "var(--vis-font-family)",
|
|
1667
|
+
lineHeight: 1.25,
|
|
1668
|
+
marginTop: 0,
|
|
1669
|
+
marginBottom: 0
|
|
1670
|
+
};
|
|
1671
|
+
zt`
|
|
1672
|
+
:root {
|
|
1673
|
+
label: vis-root-styles;
|
|
1674
|
+
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
1675
|
+
--vis-font-wh-ratio: ${Gr};
|
|
1676
|
+
--vis-color-main: var(${X(0)});
|
|
1677
|
+
--vis-color-main-light: ${Rr(Ir[0])};
|
|
1678
|
+
--vis-color-main-dark: ${zr(Ir[0])};
|
|
1679
|
+
--vis-color-grey: #2a2a2a;
|
|
1680
|
+
${Ir.map((e, t) => `${X(t)}: ${e};`)}
|
|
1681
|
+
${Lr.map((e, t) => `--vis-dark-color${t}: ${e};`)}
|
|
1682
|
+
${Br.map((e, t) => `
|
|
1683
|
+
--${Z(e)}: url(#${Z(e)});
|
|
1684
|
+
--vis-pattern-fill${t}: var(--${Z(e)});
|
|
1685
|
+
`)}
|
|
1686
|
+
${Vr.map((e, t) => `
|
|
1687
|
+
--${Z(e)}: url(#${Z(e)});
|
|
1688
|
+
--vis-pattern-marker${t}: var(--${Z(e)});
|
|
1689
|
+
--vis-pattern-dasharray${t}: ${e.dashArray?.join(" ")};
|
|
1690
|
+
`)}
|
|
1691
|
+
|
|
1692
|
+
${Fr} {
|
|
1693
|
+
${Ir.map((e, t) => `${X(t)}: var(--vis-dark-color${t});`)}
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
body.theme-patterns {
|
|
1697
|
+
${Br.map((e, t) => `path[style*="fill: var(${X(t)})"] {
|
|
1698
|
+
mask: var(--vis-pattern-fill${t});
|
|
1699
|
+
}`)}
|
|
1700
|
+
${Vr.map((e, t) => `
|
|
1701
|
+
path[stroke="var(${X(t)})"]:not([style*="fill"]),
|
|
1702
|
+
path[style*="stroke: var(${X(t)})"]:not([style*="fill"]) {
|
|
1703
|
+
marker: var(--vis-pattern-marker${t});
|
|
1704
|
+
stroke-dasharray: var(--vis-pattern-dasharray${t});
|
|
1705
|
+
}
|
|
1706
|
+
`)}
|
|
1707
|
+
}
|
|
1708
|
+
`;
|
|
1709
|
+
function qr(e = window == null ? void 0 : window.document.body) {
|
|
1710
|
+
return e ? +Nr("var(--vis-font-wh-ratio)", e) : Gr;
|
|
1711
|
+
}
|
|
1712
|
+
//#endregion
|
|
1713
|
+
//#region node_modules/@unovis/ts/utils/d3.js
|
|
1714
|
+
function Jr(e, t, n) {
|
|
1715
|
+
if (e.nodes().forEach((e) => s(e)), t) {
|
|
1716
|
+
let r = e.transition().duration(t);
|
|
1717
|
+
return n && r.ease(n), r;
|
|
1718
|
+
}
|
|
1719
|
+
return e;
|
|
1720
|
+
}
|
|
1721
|
+
//#endregion
|
|
1722
|
+
//#region node_modules/@unovis/ts/containers/single-container/config.js
|
|
1723
|
+
var Yr = Object.assign(Object.assign({}, Sr), {
|
|
1724
|
+
tooltip: void 0,
|
|
1725
|
+
annotations: void 0
|
|
1726
|
+
}), Xr = class extends Cr {
|
|
1727
|
+
constructor(e, t, n) {
|
|
1728
|
+
super(e), this._defaultConfig = Yr, this.config = this._defaultConfig, t && (this.updateContainer(t, !0), this.component = t.component), n && this.setData(n, !0), this.component?.datamodel.data && this.render();
|
|
1729
|
+
}
|
|
1730
|
+
setData(e, t) {
|
|
1731
|
+
var n;
|
|
1732
|
+
let { config: r } = this;
|
|
1733
|
+
this.component && this.component.setData(e), t || this.render(), (n = r.tooltip) == null || n.hide();
|
|
1734
|
+
}
|
|
1735
|
+
updateContainer(e, t) {
|
|
1736
|
+
super.updateContainer(e), this._removeAllChildren(), this.component = e.component, e.sizing && (this.component.sizing = e.sizing), this.element.appendChild(this.component.element);
|
|
1737
|
+
let n = e.tooltip;
|
|
1738
|
+
n && (n.hasContainer() || n.setContainer(this._container), n.setComponents([this.component]));
|
|
1739
|
+
let r = e.annotations;
|
|
1740
|
+
r && this.element.appendChild(r.element), this.element.appendChild(this._svgDefs.node()), this.element.appendChild(this._svgDefsExternal.node()), t || this.render();
|
|
1741
|
+
}
|
|
1742
|
+
updateComponent(e, t) {
|
|
1743
|
+
this.component.setConfig(e), t || this.render();
|
|
1744
|
+
}
|
|
1745
|
+
update(e, t, n) {
|
|
1746
|
+
e && this.updateContainer(e, !0), t && this.updateComponent(t, !0), n && this.setData(n, !0), this.render();
|
|
1747
|
+
}
|
|
1748
|
+
getFitWidthScale() {
|
|
1749
|
+
let { config: e, component: t } = this, n = t;
|
|
1750
|
+
if (!n.getWidth) return 1;
|
|
1751
|
+
let r = n.getWidth() + e.margin.left + e.margin.right;
|
|
1752
|
+
return this.width / r;
|
|
1753
|
+
}
|
|
1754
|
+
_preRender() {
|
|
1755
|
+
var e, t;
|
|
1756
|
+
super._preRender(), this.component.setSize(this.width, this.height, this.containerWidth, this.containerHeight), this.component.setContainerMargin(this.config.margin), (e = this.config.annotations) == null || e.setSize(this.width, this.height, this.containerWidth, this.containerHeight), (t = this.config.annotations) == null || t.setContainerMargin(this.config.margin);
|
|
1757
|
+
}
|
|
1758
|
+
_render(e) {
|
|
1759
|
+
var t, n;
|
|
1760
|
+
let { config: r, component: i } = this;
|
|
1761
|
+
super._render(e), i.g.attr("transform", `translate(${r.margin.left},${r.margin.top})`), i.render(e), (t = r.annotations) == null || t.render(e), r.tooltip && r.tooltip.update(), (n = r.onRenderComplete) == null || n.call(r, this.svg.node(), r.margin, this.containerWidth, this.containerHeight, this.width, this.height);
|
|
1762
|
+
}
|
|
1763
|
+
render(e = this.config.duration) {
|
|
1764
|
+
let { config: t, component: n } = this;
|
|
1765
|
+
if (t.sizing === J.Extend || t.sizing === J.FitWidth) {
|
|
1766
|
+
let r = t.sizing === J.FitWidth, i = n, a = i.getWidth() + t.margin.left + t.margin.right, o = i.getHeight() + t.margin.top + t.margin.bottom, s = r ? this.getFitWidthScale() : 1, c = this.svg.attr("width"), l = this.svg.attr("height"), u = a * s, d = o * s, f = c || l;
|
|
1767
|
+
Jr(this.svg, f ? e : 0).attr("width", u).attr("height", d).attr("viewBox", `0 0 ${a} ${r ? d : o}`).attr("preserveAspectRatio", "xMinYMin");
|
|
1768
|
+
} else this.svg.attr("width", this.config.width || this.containerWidth).attr("height", this.config.height || this.containerHeight);
|
|
1769
|
+
this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
|
|
1770
|
+
this._preRender(), this._render(e);
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
_onResize() {
|
|
1774
|
+
var e;
|
|
1775
|
+
let { config: t } = this;
|
|
1776
|
+
super._onResize(), (e = t.tooltip) == null || e.hide();
|
|
1777
|
+
}
|
|
1778
|
+
destroy() {
|
|
1779
|
+
var e, t;
|
|
1780
|
+
let { component: n, config: r } = this;
|
|
1781
|
+
super.destroy(), n?.destroy(), (e = r.tooltip) == null || e.destroy(), (t = r.annotations) == null || t.destroy();
|
|
1782
|
+
}
|
|
1783
|
+
}, Zr = class {
|
|
1784
|
+
constructor(e) {
|
|
1785
|
+
this.data = e;
|
|
1786
|
+
}
|
|
1787
|
+
get data() {
|
|
1788
|
+
return this._data;
|
|
1789
|
+
}
|
|
1790
|
+
set data(e) {
|
|
1791
|
+
this._data = e;
|
|
1792
|
+
}
|
|
1793
|
+
}, Qr = {
|
|
1794
|
+
duration: 600,
|
|
1795
|
+
events: {},
|
|
1796
|
+
attributes: {}
|
|
1797
|
+
}, $r = class {
|
|
1798
|
+
constructor(e = En.SVG) {
|
|
1799
|
+
this.type = En.SVG, this.datamodel = new Zr(), this.sizing = J.Fit, this.events = {}, this._defaultConfig = Qr, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._containerMargin = {
|
|
1800
|
+
top: 0,
|
|
1801
|
+
bottom: 0,
|
|
1802
|
+
left: 0,
|
|
1803
|
+
right: 0
|
|
1804
|
+
}, this._setUpComponentEventsThrottled = en(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = en(this._setCustomAttributes, 500), this.element = e === En.SVG ? document.createElementNS("http://www.w3.org/2000/svg", "g") : document.createElement("div"), this.uid = jr(), this.g = c(this.element);
|
|
1805
|
+
let t = this.constructor?.selectors?.root;
|
|
1806
|
+
t && this.g.attr("class", t);
|
|
1807
|
+
}
|
|
1808
|
+
setContainerMargin(e) {
|
|
1809
|
+
this._containerMargin = e;
|
|
1810
|
+
}
|
|
1811
|
+
setConfig(e) {
|
|
1812
|
+
this.prevConfig = this.config, this.config = Qt(this._defaultConfig, e);
|
|
1813
|
+
}
|
|
1814
|
+
setData(e) {
|
|
1815
|
+
this.datamodel.data = e;
|
|
1816
|
+
}
|
|
1817
|
+
setSize(e, t, n, r) {
|
|
1818
|
+
isFinite(e) && (this._width = e), isFinite(t) && (this._height = t), isFinite(n) && (this._containerWidth = n), isFinite(r) && (this._containerHeight = r);
|
|
1819
|
+
}
|
|
1820
|
+
render(e = this.config.duration) {
|
|
1821
|
+
this._render(e);
|
|
1822
|
+
let t = "animating";
|
|
1823
|
+
e && (this.g.attr(t, ""), this.g.transition(t).duration(e).on("end interrupt", () => {
|
|
1824
|
+
this.g.attr(t, null);
|
|
1825
|
+
})), this._setUpComponentEventsThrottled(), this._setCustomAttributesThrottled();
|
|
1826
|
+
}
|
|
1827
|
+
get bleed() {
|
|
1828
|
+
return {
|
|
1829
|
+
top: 0,
|
|
1830
|
+
bottom: 0,
|
|
1831
|
+
left: 0,
|
|
1832
|
+
right: 0
|
|
1833
|
+
};
|
|
1834
|
+
}
|
|
1835
|
+
_render(e = this.config.duration) {}
|
|
1836
|
+
_setCustomAttributes() {
|
|
1837
|
+
let e = this.config.attributes;
|
|
1838
|
+
Object.keys(e).forEach((t) => {
|
|
1839
|
+
Object.keys(e[t]).forEach((n) => {
|
|
1840
|
+
this.g.selectAll(`.${t}`).attr(n, e[t][n]);
|
|
1841
|
+
});
|
|
1842
|
+
});
|
|
1843
|
+
}
|
|
1844
|
+
_setUpComponentEvents() {
|
|
1845
|
+
this._bindEvents(this.events), this._bindEvents(this.config.events, ".user");
|
|
1846
|
+
}
|
|
1847
|
+
_mapEventDatum(e, t) {
|
|
1848
|
+
return {
|
|
1849
|
+
datum: e,
|
|
1850
|
+
index: t
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
_bindEvents(e = this.events, t = "") {
|
|
1854
|
+
Object.keys(e).forEach((n) => {
|
|
1855
|
+
Object.keys(e[n]).forEach((r) => {
|
|
1856
|
+
let i = this.g.selectAll(`.${n}`);
|
|
1857
|
+
i.on(r + t, (t, a) => {
|
|
1858
|
+
let o = i.nodes(), s = o.indexOf(t.currentTarget), c = e[n][r], { datum: l, index: u } = this._mapEventDatum(a, s);
|
|
1859
|
+
return c?.(l, t, u, o);
|
|
1860
|
+
});
|
|
1861
|
+
});
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
destroy() {
|
|
1865
|
+
var e;
|
|
1866
|
+
(e = this.g) == null || e.remove(), this.element = void 0;
|
|
1867
|
+
}
|
|
1868
|
+
isDestroyed() {
|
|
1869
|
+
return !this.element;
|
|
1870
|
+
}
|
|
1871
|
+
};
|
|
1872
|
+
//#endregion
|
|
1873
|
+
//#region node_modules/d3-interpolate-path/build/d3-interpolate-path.mjs
|
|
1874
|
+
function ei(e, t) {
|
|
1875
|
+
var n = Object.keys(e);
|
|
1876
|
+
if (Object.getOwnPropertySymbols) {
|
|
1877
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
1878
|
+
t && (r = r.filter(function(t) {
|
|
1879
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
1880
|
+
})), n.push.apply(n, r);
|
|
1881
|
+
}
|
|
1882
|
+
return n;
|
|
1883
|
+
}
|
|
1884
|
+
function ti(e) {
|
|
1885
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1886
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
1887
|
+
t % 2 ? ei(Object(n), !0).forEach(function(t) {
|
|
1888
|
+
ri(e, t, n[t]);
|
|
1889
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ei(Object(n)).forEach(function(t) {
|
|
1890
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1891
|
+
});
|
|
1892
|
+
}
|
|
1893
|
+
return e;
|
|
1894
|
+
}
|
|
1895
|
+
function ni(e) {
|
|
1896
|
+
"@babel/helpers - typeof";
|
|
1897
|
+
return ni = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1898
|
+
return typeof e;
|
|
1899
|
+
} : function(e) {
|
|
1900
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1901
|
+
}, ni(e);
|
|
1902
|
+
}
|
|
1903
|
+
function ri(e, t, n) {
|
|
1904
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
1905
|
+
value: n,
|
|
1906
|
+
enumerable: !0,
|
|
1907
|
+
configurable: !0,
|
|
1908
|
+
writable: !0
|
|
1909
|
+
}) : e[t] = n, e;
|
|
1910
|
+
}
|
|
1911
|
+
function ii() {
|
|
1912
|
+
return ii = Object.assign || function(e) {
|
|
1913
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1914
|
+
var n = arguments[t];
|
|
1915
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1916
|
+
}
|
|
1917
|
+
return e;
|
|
1918
|
+
}, ii.apply(this, arguments);
|
|
1919
|
+
}
|
|
1920
|
+
function ai(e, t) {
|
|
1921
|
+
if (e) {
|
|
1922
|
+
if (typeof e == "string") return oi(e, t);
|
|
1923
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1924
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
1925
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return oi(e, t);
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
function oi(e, t) {
|
|
1929
|
+
(t == null || t > e.length) && (t = e.length);
|
|
1930
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
1931
|
+
return r;
|
|
1932
|
+
}
|
|
1933
|
+
function si(e, t) {
|
|
1934
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1935
|
+
if (!n) {
|
|
1936
|
+
if (Array.isArray(e) || (n = ai(e)) || t && e && typeof e.length == "number") {
|
|
1937
|
+
n && (e = n);
|
|
1938
|
+
var r = 0, i = function() {};
|
|
1939
|
+
return {
|
|
1940
|
+
s: i,
|
|
1941
|
+
n: function() {
|
|
1942
|
+
return r >= e.length ? { done: !0 } : {
|
|
1943
|
+
done: !1,
|
|
1944
|
+
value: e[r++]
|
|
1945
|
+
};
|
|
1946
|
+
},
|
|
1947
|
+
e: function(e) {
|
|
1948
|
+
throw e;
|
|
1949
|
+
},
|
|
1950
|
+
f: i
|
|
1951
|
+
};
|
|
1952
|
+
}
|
|
1953
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1954
|
+
}
|
|
1955
|
+
var a = !0, o = !1, s;
|
|
1956
|
+
return {
|
|
1957
|
+
s: function() {
|
|
1958
|
+
n = n.call(e);
|
|
1959
|
+
},
|
|
1960
|
+
n: function() {
|
|
1961
|
+
var e = n.next();
|
|
1962
|
+
return a = e.done, e;
|
|
1963
|
+
},
|
|
1964
|
+
e: function(e) {
|
|
1965
|
+
o = !0, s = e;
|
|
1966
|
+
},
|
|
1967
|
+
f: function() {
|
|
1968
|
+
try {
|
|
1969
|
+
!a && n.return != null && n.return();
|
|
1970
|
+
} finally {
|
|
1971
|
+
if (o) throw s;
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
function ci(e, t) {
|
|
1977
|
+
var n = [], r = [];
|
|
1978
|
+
function i(e, t) {
|
|
1979
|
+
if (e.length === 1) n.push(e[0]), r.push(e[0]);
|
|
1980
|
+
else {
|
|
1981
|
+
for (var a = Array(e.length - 1), o = 0; o < a.length; o++) o === 0 && n.push(e[0]), o === a.length - 1 && r.push(e[o + 1]), a[o] = [(1 - t) * e[o][0] + t * e[o + 1][0], (1 - t) * e[o][1] + t * e[o + 1][1]];
|
|
1982
|
+
i(a, t);
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
return e.length && i(e, t), {
|
|
1986
|
+
left: n,
|
|
1987
|
+
right: r.reverse()
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
1990
|
+
function li(e) {
|
|
1991
|
+
var t = {};
|
|
1992
|
+
return e.length === 4 && (t.x2 = e[2][0], t.y2 = e[2][1]), e.length >= 3 && (t.x1 = e[1][0], t.y1 = e[1][1]), t.x = e[e.length - 1][0], t.y = e[e.length - 1][1], t.type = e.length === 4 ? "C" : e.length === 3 ? "Q" : "L", t;
|
|
1993
|
+
}
|
|
1994
|
+
function ui(e, t) {
|
|
1995
|
+
t ||= 2;
|
|
1996
|
+
for (var n = [], r = e, i = 1 / t, a = 0; a < t - 1; a++) {
|
|
1997
|
+
var o = i / (1 - i * a), s = ci(r, o);
|
|
1998
|
+
n.push(s.left), r = s.right;
|
|
1999
|
+
}
|
|
2000
|
+
return n.push(r), n;
|
|
2001
|
+
}
|
|
2002
|
+
function di(e, t, n) {
|
|
2003
|
+
var r = [[e.x, e.y]];
|
|
2004
|
+
return t.x1 != null && r.push([t.x1, t.y1]), t.x2 != null && r.push([t.x2, t.y2]), r.push([t.x, t.y]), ui(r, n).map(li);
|
|
2005
|
+
}
|
|
2006
|
+
var fi = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, pi = {
|
|
2007
|
+
M: ["x", "y"],
|
|
2008
|
+
L: ["x", "y"],
|
|
2009
|
+
H: ["x"],
|
|
2010
|
+
V: ["y"],
|
|
2011
|
+
C: [
|
|
2012
|
+
"x1",
|
|
2013
|
+
"y1",
|
|
2014
|
+
"x2",
|
|
2015
|
+
"y2",
|
|
2016
|
+
"x",
|
|
2017
|
+
"y"
|
|
2018
|
+
],
|
|
2019
|
+
S: [
|
|
2020
|
+
"x2",
|
|
2021
|
+
"y2",
|
|
2022
|
+
"x",
|
|
2023
|
+
"y"
|
|
2024
|
+
],
|
|
2025
|
+
Q: [
|
|
2026
|
+
"x1",
|
|
2027
|
+
"y1",
|
|
2028
|
+
"x",
|
|
2029
|
+
"y"
|
|
2030
|
+
],
|
|
2031
|
+
T: ["x", "y"],
|
|
2032
|
+
A: [
|
|
2033
|
+
"rx",
|
|
2034
|
+
"ry",
|
|
2035
|
+
"xAxisRotation",
|
|
2036
|
+
"largeArcFlag",
|
|
2037
|
+
"sweepFlag",
|
|
2038
|
+
"x",
|
|
2039
|
+
"y"
|
|
2040
|
+
],
|
|
2041
|
+
Z: []
|
|
2042
|
+
};
|
|
2043
|
+
Object.keys(pi).forEach(function(e) {
|
|
2044
|
+
pi[e.toLowerCase()] = pi[e];
|
|
2045
|
+
});
|
|
2046
|
+
function mi(e, t) {
|
|
2047
|
+
for (var n = Array(e), r = 0; r < e; r++) n[r] = t;
|
|
2048
|
+
return n;
|
|
2049
|
+
}
|
|
2050
|
+
function hi(e) {
|
|
2051
|
+
return `${e.type}${pi[e.type].map(function(t) {
|
|
2052
|
+
return e[t];
|
|
2053
|
+
}).join(",")}`;
|
|
2054
|
+
}
|
|
2055
|
+
function gi(e, t) {
|
|
2056
|
+
var n = {
|
|
2057
|
+
x1: "x",
|
|
2058
|
+
y1: "y",
|
|
2059
|
+
x2: "x",
|
|
2060
|
+
y2: "y"
|
|
2061
|
+
}, r = [
|
|
2062
|
+
"xAxisRotation",
|
|
2063
|
+
"largeArcFlag",
|
|
2064
|
+
"sweepFlag"
|
|
2065
|
+
];
|
|
2066
|
+
if (e.type !== t.type && t.type.toUpperCase() !== "M") {
|
|
2067
|
+
var i = {};
|
|
2068
|
+
Object.keys(t).forEach(function(a) {
|
|
2069
|
+
var o = t[a], s = e[a];
|
|
2070
|
+
s === void 0 && (r.includes(a) ? s = o : (s === void 0 && n[a] && (s = e[n[a]]), s === void 0 && (s = 0))), i[a] = s;
|
|
2071
|
+
}), i.type = t.type, e = i;
|
|
2072
|
+
}
|
|
2073
|
+
return e;
|
|
2074
|
+
}
|
|
2075
|
+
function _i(e, t, n) {
|
|
2076
|
+
var r = [];
|
|
2077
|
+
if (t.type === "L" || t.type === "Q" || t.type === "C") r = r.concat(di(e, t, n));
|
|
2078
|
+
else {
|
|
2079
|
+
var i = ii({}, e);
|
|
2080
|
+
i.type === "M" && (i.type = "L"), r = r.concat(mi(n - 1).map(function() {
|
|
2081
|
+
return i;
|
|
2082
|
+
})), r.push(t);
|
|
2083
|
+
}
|
|
2084
|
+
return r;
|
|
2085
|
+
}
|
|
2086
|
+
function vi(e, t, n) {
|
|
2087
|
+
var r = e.length - 1, i = t.length - 1, a = r / i, o = mi(i).reduce(function(t, r, i) {
|
|
2088
|
+
var o = Math.floor(a * i);
|
|
2089
|
+
if (n && o < e.length - 1 && n(e[o], e[o + 1])) {
|
|
2090
|
+
var s = a * i % 1 < .5;
|
|
2091
|
+
t[o] && (s ? o > 0 ? --o : o < e.length - 1 && (o += 1) : o < e.length - 1 ? o += 1 : o > 0 && --o);
|
|
2092
|
+
}
|
|
2093
|
+
return t[o] = (t[o] || 0) + 1, t;
|
|
2094
|
+
}, []).reduce(function(t, n, r) {
|
|
2095
|
+
if (r === e.length - 1) {
|
|
2096
|
+
var i = mi(n, ii({}, e[e.length - 1]));
|
|
2097
|
+
return i[0].type === "M" && i.forEach(function(e) {
|
|
2098
|
+
e.type = "L";
|
|
2099
|
+
}), t.concat(i);
|
|
2100
|
+
}
|
|
2101
|
+
return t.concat(_i(e[r], e[r + 1], n));
|
|
2102
|
+
}, []);
|
|
2103
|
+
return o.unshift(e[0]), o;
|
|
2104
|
+
}
|
|
2105
|
+
function yi(e) {
|
|
2106
|
+
for (var t = (e || "").match(fi) || [], n = [], r, i, a = 0; a < t.length; ++a) if (r = pi[t[a]], r) {
|
|
2107
|
+
i = { type: t[a] };
|
|
2108
|
+
for (var o = 0; o < r.length; ++o) i[r[o]] = +t[a + o + 1];
|
|
2109
|
+
a += r.length, n.push(i);
|
|
2110
|
+
}
|
|
2111
|
+
return n;
|
|
2112
|
+
}
|
|
2113
|
+
function bi(e, t, n) {
|
|
2114
|
+
var r = e == null ? [] : e.slice(), i = t == null ? [] : t.slice(), a = ni(n) === "object" ? n : {
|
|
2115
|
+
excludeSegment: n,
|
|
2116
|
+
snapEndsToInput: !0
|
|
2117
|
+
}, o = a.excludeSegment, s = a.snapEndsToInput;
|
|
2118
|
+
if (!r.length && !i.length) return function() {
|
|
2119
|
+
return [];
|
|
2120
|
+
};
|
|
2121
|
+
var c = (r.length === 0 || r[r.length - 1].type === "Z") && (i.length === 0 || i[i.length - 1].type === "Z");
|
|
2122
|
+
r.length > 0 && r[r.length - 1].type === "Z" && r.pop(), i.length > 0 && i[i.length - 1].type === "Z" && i.pop(), r.length ? i.length || i.push(r[0]) : r.push(i[0]), Math.abs(i.length - r.length) !== 0 && (i.length > r.length ? r = vi(r, i, o) : i.length < r.length && (i = vi(i, r, o))), r = r.map(function(e, t) {
|
|
2123
|
+
return gi(e, i[t]);
|
|
2124
|
+
});
|
|
2125
|
+
var l = r.map(function(e) {
|
|
2126
|
+
return ti({}, e);
|
|
2127
|
+
});
|
|
2128
|
+
return c && (l.push({ type: "Z" }), r.push({ type: "Z" })), function(e) {
|
|
2129
|
+
if (e === 1 && s) return t ?? [];
|
|
2130
|
+
if (e === 0) return r;
|
|
2131
|
+
for (var n = 0; n < l.length; ++n) {
|
|
2132
|
+
var a = r[n], o = i[n], c = l[n], u = si(pi[c.type]), d;
|
|
2133
|
+
try {
|
|
2134
|
+
for (u.s(); !(d = u.n()).done;) {
|
|
2135
|
+
var f = d.value;
|
|
2136
|
+
c[f] = (1 - e) * a[f] + e * o[f], (f === "largeArcFlag" || f === "sweepFlag") && (c[f] = Math.round(c[f]));
|
|
2137
|
+
}
|
|
2138
|
+
} catch (e) {
|
|
2139
|
+
u.e(e);
|
|
2140
|
+
} finally {
|
|
2141
|
+
u.f();
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
return l;
|
|
2145
|
+
};
|
|
2146
|
+
}
|
|
2147
|
+
function xi(e, t, n) {
|
|
2148
|
+
var r = yi(e), i = yi(t), a = ni(n) === "object" ? n : {
|
|
2149
|
+
excludeSegment: n,
|
|
2150
|
+
snapEndsToInput: !0
|
|
2151
|
+
}, o = a.excludeSegment, s = a.snapEndsToInput;
|
|
2152
|
+
if (!r.length && !i.length) return function() {
|
|
2153
|
+
return "";
|
|
2154
|
+
};
|
|
2155
|
+
var c = bi(r, i, {
|
|
2156
|
+
excludeSegment: o,
|
|
2157
|
+
snapEndsToInput: s
|
|
2158
|
+
});
|
|
2159
|
+
return function(e) {
|
|
2160
|
+
if (e === 1 && s) return t ?? "";
|
|
2161
|
+
var n = c(e), r = "", i = si(n), a;
|
|
2162
|
+
try {
|
|
2163
|
+
for (i.s(); !(a = i.n()).done;) {
|
|
2164
|
+
var o = a.value;
|
|
2165
|
+
r += hi(o);
|
|
2166
|
+
}
|
|
2167
|
+
} catch (e) {
|
|
2168
|
+
i.e(e);
|
|
2169
|
+
} finally {
|
|
2170
|
+
i.f();
|
|
2171
|
+
}
|
|
2172
|
+
return r;
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
2175
|
+
//#endregion
|
|
2176
|
+
//#region node_modules/@unovis/ts/utils/color.js
|
|
2177
|
+
function Si(e, t, n, r) {
|
|
2178
|
+
return Array.isArray(t) && isFinite(n) ? t[n % t.length] : nn(e, t, n) || (Vt(n) && !r ? `var(${X(n)})` : null);
|
|
2179
|
+
}
|
|
2180
|
+
function Ci(e) {
|
|
2181
|
+
let t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
|
|
2182
|
+
return t ? {
|
|
2183
|
+
r: parseInt(t[1], 16),
|
|
2184
|
+
g: parseInt(t[2], 16),
|
|
2185
|
+
b: parseInt(t[3], 16)
|
|
2186
|
+
} : {
|
|
2187
|
+
r: 0,
|
|
2188
|
+
g: 0,
|
|
2189
|
+
b: 0
|
|
2190
|
+
};
|
|
2191
|
+
}
|
|
2192
|
+
function wi(e) {
|
|
2193
|
+
return (.2126 * e.r + .7152 * e.g + .0722 * e.b) / 255;
|
|
2194
|
+
}
|
|
2195
|
+
function Ti(e) {
|
|
2196
|
+
return wi(Ci(e));
|
|
2197
|
+
}
|
|
2198
|
+
//#endregion
|
|
2199
|
+
//#region node_modules/@unovis/ts/types/curve.js
|
|
2200
|
+
var Q;
|
|
2201
|
+
(function(e) {
|
|
2202
|
+
e.Basis = "basis", e.BasisClosed = "basisClosed", e.BasisOpen = "basisOpen", e.Bundle = "bundle", e.Cardinal = "cardinal", e.CardinalClosed = "cardinalClosed", e.CardinalOpen = "cardinalOpen", e.CatmullRom = "catmullRom", e.CatmullRomClosed = "catmullRomClosed", e.CatmullRomOpen = "catmullRomOpen", e.Linear = "linear", e.LinearClosed = "linearClosed", e.MonotoneX = "monotoneX", e.MonotoneY = "monotoneY", e.Natural = "natural", e.Step = "step", e.StepAfter = "stepAfter", e.StepBefore = "stepBefore";
|
|
2203
|
+
})(Q ||= {});
|
|
2204
|
+
var Ei = {
|
|
2205
|
+
[Q.Basis]: ee,
|
|
2206
|
+
[Q.BasisClosed]: ae,
|
|
2207
|
+
[Q.BasisOpen]: oe,
|
|
2208
|
+
[Q.Bundle]: A,
|
|
2209
|
+
[Q.Cardinal]: ce,
|
|
2210
|
+
[Q.CardinalClosed]: ie,
|
|
2211
|
+
[Q.CardinalOpen]: re,
|
|
2212
|
+
[Q.CatmullRom]: fe,
|
|
2213
|
+
[Q.CatmullRomClosed]: k,
|
|
2214
|
+
[Q.CatmullRomOpen]: ne,
|
|
2215
|
+
[Q.Linear]: N,
|
|
2216
|
+
[Q.LinearClosed]: ue,
|
|
2217
|
+
[Q.MonotoneX]: te,
|
|
2218
|
+
[Q.MonotoneY]: M,
|
|
2219
|
+
[Q.Natural]: se,
|
|
2220
|
+
[Q.Step]: le,
|
|
2221
|
+
[Q.StepAfter]: de,
|
|
2222
|
+
[Q.StepBefore]: j
|
|
2223
|
+
};
|
|
2224
|
+
//#endregion
|
|
2225
|
+
//#region node_modules/@unovis/ts/utils/path.js
|
|
2226
|
+
function Di(e, t) {
|
|
2227
|
+
return e.toString().replace(/L(?<x>-?\d*\.?\d*),(?<y>-?\d+\.?\d*)/gm, (e, n, r) => `A ${t} ${t} 0 0 0 ${n} ${r}`);
|
|
2228
|
+
}
|
|
2229
|
+
//#endregion
|
|
2230
|
+
//#region node_modules/@unovis/ts/types/text.js
|
|
2231
|
+
var Oi;
|
|
2232
|
+
(function(e) {
|
|
2233
|
+
e.Start = "start", e.Middle = "middle", e.End = "end";
|
|
2234
|
+
})(Oi ||= {});
|
|
2235
|
+
var ki;
|
|
2236
|
+
(function(e) {
|
|
2237
|
+
e.Top = "top", e.Middle = "middle", e.Bottom = "bottom";
|
|
2238
|
+
})(ki ||= {});
|
|
2239
|
+
var Ai;
|
|
2240
|
+
(function(e) {
|
|
2241
|
+
e.Wrap = "wrap", e.Trim = "trim";
|
|
2242
|
+
})(Ai ||= {});
|
|
2243
|
+
var ji;
|
|
2244
|
+
(function(e) {
|
|
2245
|
+
e.Left = "left", e.Center = "center", e.Right = "right";
|
|
2246
|
+
})(ji ||= {}), (/* @__PURE__ */ r(((e, t) => {
|
|
2247
|
+
(function(e) {
|
|
2248
|
+
if (typeof n != "function") {
|
|
2249
|
+
var n = function(e) {
|
|
2250
|
+
return e;
|
|
2251
|
+
};
|
|
2252
|
+
n.nonNative = !0;
|
|
2253
|
+
}
|
|
2254
|
+
let r = n("plaintext"), i = n("html"), a = n("comment"), o = /<(\w*)>/g, s = /<\/?([^\s\/>]+)/;
|
|
2255
|
+
function c(e, t, n) {
|
|
2256
|
+
e ||= "", t ||= [], n ||= "";
|
|
2257
|
+
let r = u(t, n);
|
|
2258
|
+
return d(e, r);
|
|
2259
|
+
}
|
|
2260
|
+
function l(e, t) {
|
|
2261
|
+
e ||= [], t ||= "";
|
|
2262
|
+
let n = u(e, t);
|
|
2263
|
+
return function(e) {
|
|
2264
|
+
return d(e || "", n);
|
|
2265
|
+
};
|
|
2266
|
+
}
|
|
2267
|
+
c.init_streaming_mode = l;
|
|
2268
|
+
function u(e, t) {
|
|
2269
|
+
return e = f(e), {
|
|
2270
|
+
allowable_tags: e,
|
|
2271
|
+
tag_replacement: t,
|
|
2272
|
+
state: r,
|
|
2273
|
+
tag_buffer: "",
|
|
2274
|
+
depth: 0,
|
|
2275
|
+
in_quote_char: ""
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
function d(e, t) {
|
|
2279
|
+
if (typeof e != "string") throw TypeError("'html' parameter must be a string");
|
|
2280
|
+
let n = t.allowable_tags, o = t.tag_replacement, s = t.state, c = t.tag_buffer, l = t.depth, u = t.in_quote_char, d = "";
|
|
2281
|
+
for (let t = 0, f = e.length; t < f; t++) {
|
|
2282
|
+
let f = e[t];
|
|
2283
|
+
if (s === r) switch (f) {
|
|
2284
|
+
case "<":
|
|
2285
|
+
s = i, c += f;
|
|
2286
|
+
break;
|
|
2287
|
+
default: d += f;
|
|
2288
|
+
}
|
|
2289
|
+
else if (s === i) switch (f) {
|
|
2290
|
+
case "<":
|
|
2291
|
+
if (u) break;
|
|
2292
|
+
l++;
|
|
2293
|
+
break;
|
|
2294
|
+
case ">":
|
|
2295
|
+
if (u) break;
|
|
2296
|
+
if (l) {
|
|
2297
|
+
l--;
|
|
2298
|
+
break;
|
|
2299
|
+
}
|
|
2300
|
+
u = "", s = r, c += ">", n.has(p(c)) ? d += c : d += o, c = "";
|
|
2301
|
+
break;
|
|
2302
|
+
case "\"":
|
|
2303
|
+
case "'":
|
|
2304
|
+
f === u ? u = "" : u ||= f, c += f;
|
|
2305
|
+
break;
|
|
2306
|
+
case "-":
|
|
2307
|
+
c === "<!-" && (s = a), c += f;
|
|
2308
|
+
break;
|
|
2309
|
+
case " ":
|
|
2310
|
+
case "\n":
|
|
2311
|
+
if (c === "<") {
|
|
2312
|
+
s = r, d += "< ", c = "";
|
|
2313
|
+
break;
|
|
2314
|
+
}
|
|
2315
|
+
c += f;
|
|
2316
|
+
break;
|
|
2317
|
+
default: c += f;
|
|
2318
|
+
}
|
|
2319
|
+
else if (s === a) switch (f) {
|
|
2320
|
+
case ">":
|
|
2321
|
+
c.slice(-2) == "--" && (s = r), c = "";
|
|
2322
|
+
break;
|
|
2323
|
+
default: c += f;
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
return t.state = s, t.tag_buffer = c, t.depth = l, t.in_quote_char = u, d;
|
|
2327
|
+
}
|
|
2328
|
+
function f(e) {
|
|
2329
|
+
let t = /* @__PURE__ */ new Set();
|
|
2330
|
+
if (typeof e == "string") {
|
|
2331
|
+
let n;
|
|
2332
|
+
for (; n = o.exec(e);) t.add(n[1]);
|
|
2333
|
+
} else !n.nonNative && typeof e[n.iterator] == "function" ? t = new Set(e) : typeof e.forEach == "function" && e.forEach(t.add, t);
|
|
2334
|
+
return t;
|
|
2335
|
+
}
|
|
2336
|
+
function p(e) {
|
|
2337
|
+
let t = s.exec(e);
|
|
2338
|
+
return t ? t[1].toLowerCase() : null;
|
|
2339
|
+
}
|
|
2340
|
+
typeof define == "function" && define.amd ? define(function() {
|
|
2341
|
+
return c;
|
|
2342
|
+
}) : typeof t == "object" && t.exports ? t.exports = c : e.striptags = c;
|
|
2343
|
+
})(e);
|
|
2344
|
+
})))();
|
|
2345
|
+
function Mi(e, t = 15) {
|
|
2346
|
+
return e ? e.length > t ? `…${e.substr(e.length - t, t)}` : e : "";
|
|
2347
|
+
}
|
|
2348
|
+
function Ni(e, t = 15) {
|
|
2349
|
+
if (!e) return "";
|
|
2350
|
+
let n = Math.floor((t - 3) / 2);
|
|
2351
|
+
return e.length > t ? `${e.substr(0, n)}…${e.substr(-n, n)}` : e;
|
|
2352
|
+
}
|
|
2353
|
+
function Pi(e, t = 15) {
|
|
2354
|
+
return e ? e.length > t ? `${e.substr(0, t)}…` : e : "";
|
|
2355
|
+
}
|
|
2356
|
+
function Fi(e, t = 15, n = Oi.Middle) {
|
|
2357
|
+
if (!e) return "";
|
|
2358
|
+
let r = Pi(e, t);
|
|
2359
|
+
return n === Oi.Start ? r = Mi(e, t) : n === Oi.Middle && (r = Ni(e, t)), r;
|
|
2360
|
+
}
|
|
2361
|
+
function Ii(e, t, n, r, i, a) {
|
|
2362
|
+
t === void 0 && (t = 50), n === void 0 && (n = Oi.Middle), r === void 0 && (r = !0), i === void 0 && (i = Ar(window.getComputedStyle(e.node())?.fontSize || Kr.fontSize)), a === void 0 && (a = qr());
|
|
2363
|
+
let o = e.text() || "", s = o.length, c = r ? i * s * a : e.node().getComputedTextLength(), l = Math.ceil(s * t / (1.1 * c));
|
|
2364
|
+
return l < s && (e.text(Fi(o, l, n)), !0);
|
|
2365
|
+
}
|
|
2366
|
+
function Li(e, t, n = qr()) {
|
|
2367
|
+
return e.length * t * n || 0;
|
|
2368
|
+
}
|
|
2369
|
+
//#endregion
|
|
2370
|
+
//#region node_modules/@unovis/ts/components/chord-diagram/types.js
|
|
2371
|
+
var $;
|
|
2372
|
+
(function(e) {
|
|
2373
|
+
e.Along = "along", e.Perpendicular = "perpendicular";
|
|
2374
|
+
})($ ||= {});
|
|
2375
|
+
//#endregion
|
|
2376
|
+
//#region node_modules/@unovis/ts/data-models/graph.js
|
|
2377
|
+
var Ri = class extends Zr {
|
|
2378
|
+
constructor() {
|
|
2379
|
+
super(...arguments), this._nodes = [], this._links = [], this._inputNodesMap = /* @__PURE__ */ new Map(), this._nodesMap = /* @__PURE__ */ new Map(), this.nodeId = (e) => Wt(e.id) || isFinite(e.id) ? `${e.id}` : void 0, this.linkId = (e) => Wt(e.id) || isFinite(e.id) ? `${e.id}` : void 0;
|
|
2380
|
+
}
|
|
2381
|
+
getNodeById(e) {
|
|
2382
|
+
return this._nodesMap.get(e);
|
|
2383
|
+
}
|
|
2384
|
+
get data() {
|
|
2385
|
+
return this._data;
|
|
2386
|
+
}
|
|
2387
|
+
set data(e) {
|
|
2388
|
+
if (!e) return;
|
|
2389
|
+
this._data = e;
|
|
2390
|
+
let t = this.nodes, n = this.links;
|
|
2391
|
+
this._inputNodesMap.clear(), this._nodesMap.clear();
|
|
2392
|
+
let r = Zt(e?.nodes ?? []), i = Zt(e?.links ?? []);
|
|
2393
|
+
this.transferState(r, t, this.nodeId), this.transferState(i, n, this.linkId), r.forEach((t, n) => {
|
|
2394
|
+
t._index = n, t._id = this.nodeId(t) || `${n}`, this._inputNodesMap.set(t, e.nodes[n]), this._nodesMap.set(t._id, t);
|
|
2395
|
+
}), Ht(this.nodeSort) && r.sort(this.nodeSort), i.forEach((e, t) => {
|
|
2396
|
+
e._indexGlobal = t, e.source = this.findNode(r, e.source), e.target = this.findNode(r, e.target);
|
|
2397
|
+
}), i.forEach((e, t) => {
|
|
2398
|
+
if (!Ut(e._index) && !Ut(e._neighbours)) return;
|
|
2399
|
+
let n = i.filter((t) => e.source === t.source && e.target === t.target || e.source === t.target && e.target === t.source);
|
|
2400
|
+
n.forEach((t, r) => {
|
|
2401
|
+
t._index = r, t._id = this.linkId(t) || `${t.source?._id}-${t.target?._id}-${r}`, t._neighbours = n.length, t._direction = e.source === t.source && e.target === t.target ? 1 : -1;
|
|
2402
|
+
});
|
|
2403
|
+
}), r.forEach((e) => {
|
|
2404
|
+
e.links = i.filter((t) => t.source === e || t.target === e), e._isConnected = e.links.length !== 0;
|
|
2405
|
+
}), this._nonConnectedNodes = r.filter((e) => !e._isConnected), this._connectedNodes = Xt(r, ...this._nonConnectedNodes), this._nodes = r, this._links = i.filter((e) => e.source === e.target ? (console.warn(`Unovis | Graph Data Model: Skipping link ${e._id} because it has the same source and target`), !1) : e.source && e.target);
|
|
2406
|
+
}
|
|
2407
|
+
get nodes() {
|
|
2408
|
+
return this._nodes;
|
|
2409
|
+
}
|
|
2410
|
+
get links() {
|
|
2411
|
+
return this._links;
|
|
2412
|
+
}
|
|
2413
|
+
get connectedNodes() {
|
|
2414
|
+
return this._connectedNodes;
|
|
2415
|
+
}
|
|
2416
|
+
get nonConnectedNodes() {
|
|
2417
|
+
return this._nonConnectedNodes;
|
|
2418
|
+
}
|
|
2419
|
+
findNode(e, t) {
|
|
2420
|
+
let n;
|
|
2421
|
+
return Vt(t) ? n = e[t] : Wt(t) ? n = e.find((e) => this.nodeId(e) === t) : Kt(t) && (n = e.find((e) => Yt(this._inputNodesMap.get(e), t))), n || console.warn(`Unovis | Graph Data Model: Node ${t} is missing from the nodes list`), n;
|
|
2422
|
+
}
|
|
2423
|
+
transferState(e, t, n) {
|
|
2424
|
+
for (let r of e) {
|
|
2425
|
+
let e = t.find((e) => n(e) === n(r));
|
|
2426
|
+
r._state = e ? Object.assign({}, e._state) : {};
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
setNodeStateById(e, t) {
|
|
2430
|
+
let n = this.getNodeById(e);
|
|
2431
|
+
if (!n) {
|
|
2432
|
+
console.warn(`Unovis | Graph Data Model: Node ${e} not found`);
|
|
2433
|
+
return;
|
|
2434
|
+
}
|
|
2435
|
+
n._state = t;
|
|
2436
|
+
}
|
|
2437
|
+
}, zi = Object.assign(Object.assign({}, Qr), {
|
|
2438
|
+
duration: 800,
|
|
2439
|
+
highlightedNodeId: void 0,
|
|
2440
|
+
highlightedLinkIds: [],
|
|
2441
|
+
linkColor: void 0,
|
|
2442
|
+
linkValue: (e) => e.value,
|
|
2443
|
+
nodeLevels: [],
|
|
2444
|
+
nodeWidth: 15,
|
|
2445
|
+
nodeColor: (e) => e.color,
|
|
2446
|
+
nodeLabel: (e) => e.label ?? e.key,
|
|
2447
|
+
nodeLabelColor: void 0,
|
|
2448
|
+
nodeLabelAlignment: $.Along,
|
|
2449
|
+
padAngle: .02,
|
|
2450
|
+
cornerRadius: 2,
|
|
2451
|
+
angleRange: [0, 2 * Math.PI],
|
|
2452
|
+
radiusScaleExponent: 2
|
|
2453
|
+
});
|
|
2454
|
+
//#endregion
|
|
2455
|
+
//#region node_modules/@unovis/ts/components/chord-diagram/modules/node.js
|
|
2456
|
+
function Bi(e) {
|
|
2457
|
+
e.style("opacity", 0).each((e, t, n) => {
|
|
2458
|
+
let r = n[t], i = (e.x0 + e.x1) / 2, a = (e.x1 - e.x0) / 2;
|
|
2459
|
+
r._animState = {
|
|
2460
|
+
x0: i - a * .8,
|
|
2461
|
+
x1: i + a * .8,
|
|
2462
|
+
y0: e.y0,
|
|
2463
|
+
y1: e.y1
|
|
2464
|
+
};
|
|
2465
|
+
});
|
|
2466
|
+
}
|
|
2467
|
+
function Vi(e, t, n, r) {
|
|
2468
|
+
let i = (e) => Si(e.data, t.nodeColor, e.height);
|
|
2469
|
+
e.attr("id", (e) => e.uid).style("transition", `fill ${r}ms`).style("fill", i).style("stroke", i), r ? Jr(e, r).style("opacity", 1).attrTween("d", (e, t, r) => {
|
|
2470
|
+
let i = r[t], o = {
|
|
2471
|
+
x0: e.x0,
|
|
2472
|
+
x1: e.x1,
|
|
2473
|
+
y0: e.y0,
|
|
2474
|
+
y1: e.y1
|
|
2475
|
+
}, s = a(i._animState, o);
|
|
2476
|
+
return (e) => (i._animState = s(e), n(i._animState));
|
|
2477
|
+
}) : e.attr("d", (e) => n(e)).style("opacity", 1);
|
|
2478
|
+
}
|
|
2479
|
+
function Hi(e, t) {
|
|
2480
|
+
Jr(e, t).style("opacity", 0).remove();
|
|
2481
|
+
}
|
|
2482
|
+
//#endregion
|
|
2483
|
+
//#region node_modules/@unovis/ts/components/chord-diagram/style.js
|
|
2484
|
+
var Ui = /* @__PURE__ */ e({
|
|
2485
|
+
background: () => Ki,
|
|
2486
|
+
highlightedLink: () => na,
|
|
2487
|
+
highlightedNode: () => Zi,
|
|
2488
|
+
label: () => Qi,
|
|
2489
|
+
labelExit: () => ea,
|
|
2490
|
+
labelText: () => $i,
|
|
2491
|
+
labels: () => Yi,
|
|
2492
|
+
link: () => ta,
|
|
2493
|
+
links: () => Ji,
|
|
2494
|
+
node: () => Xi,
|
|
2495
|
+
nodes: () => qi,
|
|
2496
|
+
root: () => Wi,
|
|
2497
|
+
transparent: () => ra,
|
|
2498
|
+
variables: () => Gi
|
|
2499
|
+
}), Wi = K`
|
|
2500
|
+
label: chord-diagram-component;
|
|
2501
|
+
`, Gi = zt`
|
|
2502
|
+
:root {
|
|
2503
|
+
--vis-chord-diagram-link-fill-color: #cad5f6;
|
|
2504
|
+
--vis-chord-diagram-link-stroke-color: #777777;
|
|
2505
|
+
--vis-chord-diagram-link-opacity: 0.5;
|
|
2506
|
+
--vis-chord-diagram-link-stroke-opacity: 0.15;
|
|
2507
|
+
--vis-chord-diagram-link-highlighted-opacity: 0.9;
|
|
2508
|
+
--vis-chord-diagram-link-dimmed-opacity: 0.25;
|
|
2509
|
+
|
|
2510
|
+
--vis-chord-diagram-node-highlighted-opacity: 0.9;
|
|
2511
|
+
--vis-chord-diagram-node-dimmed-opacity: 0.25;
|
|
2512
|
+
|
|
2513
|
+
--vis-chord-diagram-label-text-fill-color-bright: #ffffff;
|
|
2514
|
+
--vis-chord-diagram-label-text-fill-color-dark: #a5abb2;
|
|
2515
|
+
--vis-chord-diagram-label-text-font-size: 1em;
|
|
2516
|
+
|
|
2517
|
+
--vis-dark-chord-diagram-link-fill-color: #575c65;
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
${Fr} ${`.${Wi}`} {
|
|
2521
|
+
--vis-chord-diagram-link-fill-color: var(--vis-dark-chord-diagram-link-fill-color);
|
|
2522
|
+
}
|
|
2523
|
+
`, Ki = K`
|
|
2524
|
+
label: background;
|
|
2525
|
+
`, qi = K`
|
|
2526
|
+
label: nodes;
|
|
2527
|
+
`, Ji = K`
|
|
2528
|
+
label: links;
|
|
2529
|
+
`, Yi = K`
|
|
2530
|
+
label: labels;
|
|
2531
|
+
`, Xi = K`
|
|
2532
|
+
label: node;
|
|
2533
|
+
stroke-width: 0;
|
|
2534
|
+
fill: var(--vis-color-main);
|
|
2535
|
+
stroke: var(--vis-color-main);
|
|
2536
|
+
transition: .1s fill-opacity;
|
|
2537
|
+
`, Zi = K`
|
|
2538
|
+
label: highlighted;
|
|
2539
|
+
fill-opacity: var(--vis-chord-diagram-node-highlighted-opacity);
|
|
2540
|
+
stroke-width: 1.5;
|
|
2541
|
+
`, Qi = K`
|
|
2542
|
+
label: label;
|
|
2543
|
+
`, $i = K`
|
|
2544
|
+
label: label-text;
|
|
2545
|
+
|
|
2546
|
+
dominant-baseline: middle;
|
|
2547
|
+
user-select: none;
|
|
2548
|
+
font-size: var(--vis-chord-diagram-label-text-font-size);
|
|
2549
|
+
|
|
2550
|
+
> textPath {
|
|
2551
|
+
dominant-baseline: central;
|
|
2552
|
+
}
|
|
2553
|
+
`, ea = K`
|
|
2554
|
+
label: label-exit;
|
|
2555
|
+
`, ta = K`
|
|
2556
|
+
label: link;
|
|
2557
|
+
|
|
2558
|
+
fill: var(--vis-chord-diagram-link-fill-color);
|
|
2559
|
+
fill-opacity: var(--vis-chord-diagram-link-opacity);
|
|
2560
|
+
stroke: var(--vis-chord-diagram-link-stroke-color);
|
|
2561
|
+
stroke-opacity: var(--vis-chord-diagram-link-stroke-opacity);
|
|
2562
|
+
transition: .1s fill-opacity;
|
|
2563
|
+
`, na = K`
|
|
2564
|
+
label: highlighted;
|
|
2565
|
+
fill-opacity: var(--vis-chord-diagram-link-highlighted-opacity);
|
|
2566
|
+
`, ra = K`
|
|
2567
|
+
label: transparent;
|
|
2568
|
+
|
|
2569
|
+
${`.${ta}`}:not(${`.${na}`}) {
|
|
2570
|
+
fill-opacity: var(--vis-chord-diagram-link-dimmed-opacity);
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
${`.${Xi}`}:not(${`.${Zi}`}) {
|
|
2574
|
+
fill-opacity: var(--vis-chord-diagram-node-dimmed-opacity);
|
|
2575
|
+
}
|
|
2576
|
+
`;
|
|
2577
|
+
function ia(e, t) {
|
|
2578
|
+
switch (tn(e.data, t.nodeLabelAlignment) ?? $.Along) {
|
|
2579
|
+
case $.Perpendicular: return Si(e.data, t.nodeColor, e.height);
|
|
2580
|
+
case $.Along: {
|
|
2581
|
+
let n = Si(e.data, t.nodeColor, e.height), r = l(n);
|
|
2582
|
+
return (r ? Ti(r.hex()) : 0) > .65 ? "var(--vis-chord-diagram-label-text-fill-color-dark)" : "var(--vis-chord-diagram-label-text-fill-color-bright)";
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
function aa(e, t) {
|
|
2587
|
+
switch (tn(e.data, t.nodeLabelAlignment) ?? $.Along) {
|
|
2588
|
+
case $.Perpendicular: return (e.x0 + e.x1) / 2 * 180 / Math.PI < 180 ? "start" : "end";
|
|
2589
|
+
case $.Along: return null;
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
function oa(e, t, n) {
|
|
2593
|
+
switch (tn(e.data, t.nodeLabelAlignment) ?? $.Along) {
|
|
2594
|
+
case $.Perpendicular: {
|
|
2595
|
+
let t = n(e.y1) + 3, r = (e.x0 + e.x1) / 2 - Math.PI / 2;
|
|
2596
|
+
return `translate(${t * Math.cos(r)}, ${t * Math.sin(r)})`;
|
|
2597
|
+
}
|
|
2598
|
+
case $.Along: return null;
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
function sa(e, t, n) {
|
|
2602
|
+
e.style("opacity", 0).attr("transform", (e) => oa(e, t, n)), e.append("text").attr("class", $i).style("fill", (e) => Si(e.data, t.nodeColor, e.height));
|
|
2603
|
+
}
|
|
2604
|
+
function ca(e, t, n, r, i) {
|
|
2605
|
+
let { nodeLabel: a, nodeLabelColor: o, nodeWidth: s } = t;
|
|
2606
|
+
Jr(e, i).attr("transform", (e) => oa(e, t, r)).style("opacity", 1);
|
|
2607
|
+
let l = e.select(`.${$i}`);
|
|
2608
|
+
l.selectAll("textPath").remove(), l.text((e) => nn(e.data, a)).style("transition", `fill ${i}ms`).style("fill", (e) => Si(e.data, o) ?? ia(e, t)).style("text-anchor", (e) => aa(e, t)).each((e, i, a) => {
|
|
2609
|
+
let o = tn(e.data, t.nodeLabelAlignment) ?? $.Along, l = e.x1 - e.x0 - q(e.data, t.padAngle) * 2, u = (r(e.y1) - q(e, t.nodeWidth) / 2) * l, d = o === $.Along ? u : n - 6, f = c(a[i]).call(Ii, d).attr("dx", o === $.Along ? 3 : null).attr("dy", o === $.Along ? q(e.data, s) / 2 : null), p = f.node().getComputedTextLength(), m = f.text();
|
|
2610
|
+
o === $.Along && (f.text(""), p <= d && f.append("textPath").attr("href", `#${e.uid}`).text(m));
|
|
2611
|
+
}), Jr(l, i).attr("transform", (e) => {
|
|
2612
|
+
if (tn(e.data, t.nodeLabelAlignment) !== $.Perpendicular) return null;
|
|
2613
|
+
let n = (e.x0 + e.x1) / 2 * 180 / Math.PI;
|
|
2614
|
+
return `rotate(${n < 180 ? n - 90 : n + 90})`;
|
|
2615
|
+
});
|
|
2616
|
+
}
|
|
2617
|
+
function la(e, t) {
|
|
2618
|
+
Jr(e, t).style("opacity", 0).remove();
|
|
2619
|
+
}
|
|
2620
|
+
//#endregion
|
|
2621
|
+
//#region node_modules/@unovis/ts/components/chord-diagram/modules/layout.js
|
|
2622
|
+
function ua(e) {
|
|
2623
|
+
let { height: t, depth: n } = e;
|
|
2624
|
+
if (t > 0) {
|
|
2625
|
+
let r = e.data, i = e;
|
|
2626
|
+
i.data = {
|
|
2627
|
+
key: r[0],
|
|
2628
|
+
values: r[1],
|
|
2629
|
+
depth: n,
|
|
2630
|
+
height: t,
|
|
2631
|
+
ancestors: i.ancestors().map((e) => e.data.key)
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
function da(e, t, r = []) {
|
|
2636
|
+
let i = r.map((e) => (t) => t[e]), a = r.length ? n(e, ...i) : {
|
|
2637
|
+
key: "root",
|
|
2638
|
+
children: e
|
|
2639
|
+
};
|
|
2640
|
+
return pe(a).sum((e) => q(e, t)).each(ua);
|
|
2641
|
+
}
|
|
2642
|
+
function fa(e, t, n = .95) {
|
|
2643
|
+
if (!e.children) return;
|
|
2644
|
+
let r = e.value > 0, i = e.x1 - e.x0, a = i * (e.y0 === 0 ? 1 : n), o = i - a, s = r ? t : a / e.children.length, c = _n().startAngle(e.x0 + o / 2).endAngle(e.x1 - o / 2).padAngle(s).value((e) => r ? e.value : 1).sort((t, n) => e.children.indexOf(t) - e.children.indexOf(n))(e.children);
|
|
2645
|
+
e.children.forEach((e, i) => {
|
|
2646
|
+
let a = c[i].startAngle, o = c[i].endAngle, s = (o - a) * (1 - n), l = (a + o) / 2;
|
|
2647
|
+
e.x0 = r ? a + s / 2 : l - t / 2, e.x1 = r ? o - s / 2 : l + t / 2;
|
|
2648
|
+
});
|
|
2649
|
+
}
|
|
2650
|
+
function pa(e, n, r) {
|
|
2651
|
+
let i = $t(n, (e) => e.source._id), a = $t(n, (e) => e.target._id), o = e.leaves(), s = t(o, (e) => e.data._id), c = (e, t, n, r = []) => (r[e.height] = e, r[n * 2 - t.height] = t, e.parent && t.parent && c(e.parent, t.parent, n, r), r), l = (e, t, n, i) => {
|
|
2652
|
+
e.forEach((e) => {
|
|
2653
|
+
e._state.points || (e._state.points = []);
|
|
2654
|
+
let a = s.get(e.source._id), o = s.get(e.target._id), l = c(t === "out" ? a : o, t === "out" ? o : a, i)[n], u = l.x1 - l.x0 - r, d = l._prevX1 ?? l.x0 + r / 2, f = d + u * e._state.value / l.value;
|
|
2655
|
+
l._prevX1 = f;
|
|
2656
|
+
let p = t === "out" ? n : i * 2 - 1 - n;
|
|
2657
|
+
e._state.points[p] = {
|
|
2658
|
+
a0: d,
|
|
2659
|
+
a1: f,
|
|
2660
|
+
r: l.y1
|
|
2661
|
+
};
|
|
2662
|
+
});
|
|
2663
|
+
};
|
|
2664
|
+
return o.forEach((e) => {
|
|
2665
|
+
let t = i[e.data._id] || [], n = a[e.data._id] || [];
|
|
2666
|
+
for (let r = 0; r < e.depth; r += 1) l(t, "out", r, e.depth), l(n, "in", r, e.depth);
|
|
2667
|
+
}), n.map((e) => ({
|
|
2668
|
+
source: s.get(e.source._id),
|
|
2669
|
+
target: s.get(e.target._id),
|
|
2670
|
+
data: e,
|
|
2671
|
+
points: e._state.points,
|
|
2672
|
+
_state: {}
|
|
2673
|
+
}));
|
|
2674
|
+
}
|
|
2675
|
+
//#endregion
|
|
2676
|
+
//#region node_modules/d3-chord/src/math.js
|
|
2677
|
+
var ma = Math.abs, ha = Math.cos, ga = Math.sin, _a = Math.PI, va = _a / 2;
|
|
2678
|
+
_a * 2;
|
|
2679
|
+
//#endregion
|
|
2680
|
+
//#region node_modules/d3-chord/src/array.js
|
|
2681
|
+
var ya = Array.prototype.slice;
|
|
2682
|
+
//#endregion
|
|
2683
|
+
//#region node_modules/d3-chord/src/constant.js
|
|
2684
|
+
function ba(e) {
|
|
2685
|
+
return function() {
|
|
2686
|
+
return e;
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
//#endregion
|
|
2690
|
+
//#region node_modules/d3-chord/src/ribbon.js
|
|
2691
|
+
function xa(e) {
|
|
2692
|
+
return e.source;
|
|
2693
|
+
}
|
|
2694
|
+
function Sa(e) {
|
|
2695
|
+
return e.target;
|
|
2696
|
+
}
|
|
2697
|
+
function Ca(e) {
|
|
2698
|
+
return e.radius;
|
|
2699
|
+
}
|
|
2700
|
+
function wa(e) {
|
|
2701
|
+
return e.startAngle;
|
|
2702
|
+
}
|
|
2703
|
+
function Ta(e) {
|
|
2704
|
+
return e.endAngle;
|
|
2705
|
+
}
|
|
2706
|
+
function Ea() {
|
|
2707
|
+
return 0;
|
|
2708
|
+
}
|
|
2709
|
+
function Da(e) {
|
|
2710
|
+
var t = xa, n = Sa, r = Ca, i = Ca, a = wa, o = Ta, s = Ea, c = null;
|
|
2711
|
+
function l() {
|
|
2712
|
+
var l, u = t.apply(this, arguments), d = n.apply(this, arguments), f = s.apply(this, arguments) / 2, p = ya.call(arguments), m = +r.apply(this, (p[0] = u, p)), h = a.apply(this, p) - va, g = o.apply(this, p) - va, _ = +i.apply(this, (p[0] = d, p)), v = a.apply(this, p) - va, y = o.apply(this, p) - va;
|
|
2713
|
+
if (c ||= l = T(), f > 1e-12 && (ma(g - h) > f * 2 + 1e-12 ? g > h ? (h += f, g -= f) : (h -= f, g += f) : h = g = (h + g) / 2, ma(y - v) > f * 2 + 1e-12 ? y > v ? (v += f, y -= f) : (v -= f, y += f) : v = y = (v + y) / 2), c.moveTo(m * ha(h), m * ga(h)), c.arc(0, 0, m, h, g), h !== v || g !== y) if (e) {
|
|
2714
|
+
var b = _ - +e.apply(this, arguments), x = (v + y) / 2;
|
|
2715
|
+
c.quadraticCurveTo(0, 0, b * ha(v), b * ga(v)), c.lineTo(_ * ha(x), _ * ga(x)), c.lineTo(b * ha(y), b * ga(y));
|
|
2716
|
+
} else c.quadraticCurveTo(0, 0, _ * ha(v), _ * ga(v)), c.arc(0, 0, _, v, y);
|
|
2717
|
+
if (c.quadraticCurveTo(0, 0, m * ha(h), m * ga(h)), c.closePath(), l) return c = null, l + "" || null;
|
|
2718
|
+
}
|
|
2719
|
+
return e && (l.headRadius = function(t) {
|
|
2720
|
+
return arguments.length ? (e = typeof t == "function" ? t : ba(+t), l) : e;
|
|
2721
|
+
}), l.radius = function(e) {
|
|
2722
|
+
return arguments.length ? (r = i = typeof e == "function" ? e : ba(+e), l) : r;
|
|
2723
|
+
}, l.sourceRadius = function(e) {
|
|
2724
|
+
return arguments.length ? (r = typeof e == "function" ? e : ba(+e), l) : r;
|
|
2725
|
+
}, l.targetRadius = function(e) {
|
|
2726
|
+
return arguments.length ? (i = typeof e == "function" ? e : ba(+e), l) : i;
|
|
2727
|
+
}, l.startAngle = function(e) {
|
|
2728
|
+
return arguments.length ? (a = typeof e == "function" ? e : ba(+e), l) : a;
|
|
2729
|
+
}, l.endAngle = function(e) {
|
|
2730
|
+
return arguments.length ? (o = typeof e == "function" ? e : ba(+e), l) : o;
|
|
2731
|
+
}, l.padAngle = function(e) {
|
|
2732
|
+
return arguments.length ? (s = typeof e == "function" ? e : ba(+e), l) : s;
|
|
2733
|
+
}, l.source = function(e) {
|
|
2734
|
+
return arguments.length ? (t = e, l) : t;
|
|
2735
|
+
}, l.target = function(e) {
|
|
2736
|
+
return arguments.length ? (n = e, l) : n;
|
|
2737
|
+
}, l.context = function(e) {
|
|
2738
|
+
return arguments.length ? (c = e ?? null, l) : c;
|
|
2739
|
+
}, l;
|
|
2740
|
+
}
|
|
2741
|
+
function Oa() {
|
|
2742
|
+
return Da();
|
|
2743
|
+
}
|
|
2744
|
+
//#endregion
|
|
2745
|
+
//#region node_modules/@unovis/ts/components/chord-diagram/modules/link.js
|
|
2746
|
+
function ka() {
|
|
2747
|
+
return "M0,0 L0,0";
|
|
2748
|
+
}
|
|
2749
|
+
var Aa = Oa().source((e) => e[0]).target((e) => e[e.length - 1]).startAngle((e) => e.a0).endAngle((e) => e.a1), ja = Sn().curve(Ei.catmullRom.alpha(.5)).startAngle((e, t, n) => t < n.length / 2 ? e.a1 : e.a0).endAngle((e, t, n) => t < n.length / 2 ? e.a0 : e.a1);
|
|
2750
|
+
function Ma(e, t) {
|
|
2751
|
+
let n = e.length === 2 ? Aa : ja;
|
|
2752
|
+
n.radius((e) => t(e.r));
|
|
2753
|
+
let r = n(e);
|
|
2754
|
+
if (e.length === 2) return r;
|
|
2755
|
+
let i = r.slice(0, -1);
|
|
2756
|
+
return Di(i.concat(`L${i.match(/M-?\d*\.?\d*[,\s*]-?\d*\.?\d*/)?.[0].slice(1)}`), Math.max(t(e[0].r), 0));
|
|
2757
|
+
}
|
|
2758
|
+
function Na(e, t) {
|
|
2759
|
+
e.attr("d", (e) => Ma(e.points, t) || ka()).style("opacity", 0);
|
|
2760
|
+
}
|
|
2761
|
+
function Pa(e, t, n, r) {
|
|
2762
|
+
e.style("transition", `fill ${r}ms`).style("fill", (e) => Si(e.data, t.linkColor)).style("stroke", (e) => Si(e.data, t.linkColor));
|
|
2763
|
+
let i = Jr(e, r).style("opacity", 1);
|
|
2764
|
+
r ? i.attrTween("d", (e, t, r) => xi(c(r[t]).attr("d"), Ma(e.points, n) || ka())) : i.attr("d", (e) => Ma(e.points, n) || ka());
|
|
2765
|
+
}
|
|
2766
|
+
function Fa(e, t) {
|
|
2767
|
+
Jr(e, t).style("opacity", 0).remove();
|
|
2768
|
+
}
|
|
2769
|
+
//#endregion
|
|
2770
|
+
//#region node_modules/@unovis/ts/components/chord-diagram/index.js
|
|
2771
|
+
var Ia = class e extends $r {
|
|
2772
|
+
constructor(t) {
|
|
2773
|
+
super(), this._defaultConfig = zi, this.config = this._defaultConfig, this.datamodel = new Ri(), this.arcGen = fn(), this.radiusScale = i(), this.events = {
|
|
2774
|
+
[e.selectors.node]: {
|
|
2775
|
+
mouseover: this._onNodeMouseOver.bind(this),
|
|
2776
|
+
mouseout: this._onNodeMouseOut.bind(this)
|
|
2777
|
+
},
|
|
2778
|
+
[e.selectors.link]: {
|
|
2779
|
+
mouseover: this._onLinkMouseOver.bind(this),
|
|
2780
|
+
mouseout: this._onLinkMouseOut.bind(this)
|
|
2781
|
+
},
|
|
2782
|
+
[e.selectors.label]: {
|
|
2783
|
+
mouseover: this._onNodeMouseOver.bind(this),
|
|
2784
|
+
mouseout: this._onNodeMouseOut.bind(this)
|
|
2785
|
+
}
|
|
2786
|
+
}, this._nodes = [], this._links = [], t && this.setConfig(t), this.background = this.g.append("rect").attr("class", Ki), this.linkGroup = this.g.append("g").attr("class", Ji), this.nodeGroup = this.g.append("g").attr("class", qi), this.labelGroup = this.g.append("g").attr("class", Yi);
|
|
2787
|
+
}
|
|
2788
|
+
get _forceHighlight() {
|
|
2789
|
+
return this.config.highlightedNodeId !== void 0 || this.config.highlightedLinkIds?.length > 0;
|
|
2790
|
+
}
|
|
2791
|
+
get bleed() {
|
|
2792
|
+
let { config: e } = this, t = 0, n = 0, r = 0, i = 0;
|
|
2793
|
+
return this._nodes.forEach((a) => {
|
|
2794
|
+
let o = tn(a.data, e.nodeLabelAlignment);
|
|
2795
|
+
if (a.height === 0 && o === $.Perpendicular) {
|
|
2796
|
+
let o = Li(nn(a.data, e.nodeLabel) ?? "", Pr("var(--vis-chord-diagram-label-text-font-size)", this.element)), [s, c] = this.arcGen.centroid(a);
|
|
2797
|
+
s < 0 ? i = Math.max(i, o) : r = Math.max(r, o), c < 0 ? t = Math.max(t, o) : n = Math.max(n, o);
|
|
2798
|
+
}
|
|
2799
|
+
}), i += 6, r += 6, n += 6, t += 6, {
|
|
2800
|
+
top: t,
|
|
2801
|
+
bottom: n,
|
|
2802
|
+
left: i,
|
|
2803
|
+
right: r
|
|
2804
|
+
};
|
|
2805
|
+
}
|
|
2806
|
+
setSize(e, t, n, r) {
|
|
2807
|
+
super.setSize(e, t, n, r), this.radiusScale.exponent(this.config.radiusScaleExponent).range([0, Math.min(e, t) / 2]);
|
|
2808
|
+
}
|
|
2809
|
+
setData(e) {
|
|
2810
|
+
super.setData(e), this._layoutData();
|
|
2811
|
+
}
|
|
2812
|
+
_layoutData() {
|
|
2813
|
+
let { nodes: e } = this.datamodel, { links: t } = this.datamodel, { padAngle: n, linkValue: r, nodeLevels: i } = this.config;
|
|
2814
|
+
e.forEach((e) => {
|
|
2815
|
+
delete e._state.value;
|
|
2816
|
+
}), t.forEach((e) => {
|
|
2817
|
+
delete e._state.points, e._state.value = q(e, r), e.source._state.value = (e.source._state.value || 0) + q(e, r), e.target._state.value = (e.target._state.value || 0) + q(e, r);
|
|
2818
|
+
}), t = t.filter((e) => e._state.value);
|
|
2819
|
+
let a = da(e, (e) => e._state?.value, i), o = Tn().size([this.config.angleRange[1], 1])(a);
|
|
2820
|
+
o.each((e, t) => {
|
|
2821
|
+
fa(e, n), e.uid = `${this.uid.substr(0, 4)}-${t}`, e.x0 = Number.isNaN(e.x0) ? 0 : e.x0, e.x1 = Number.isNaN(e.x1) ? 0 : e.x1, e._state = {};
|
|
2822
|
+
});
|
|
2823
|
+
let s = o.descendants();
|
|
2824
|
+
this._rootNode = s.find((e) => e.depth === 0), this._nodes = s.filter((e) => e.depth !== 0), this._links = pa(o, t, n);
|
|
2825
|
+
}
|
|
2826
|
+
_render(e) {
|
|
2827
|
+
super._render(e);
|
|
2828
|
+
let { config: t, bleed: n } = this;
|
|
2829
|
+
this._layoutData();
|
|
2830
|
+
let r = Vt(e) ? e : t.duration, i = Math.min(this._width, this._height), a = i / 2 - o([
|
|
2831
|
+
n.top,
|
|
2832
|
+
n.bottom,
|
|
2833
|
+
n.left,
|
|
2834
|
+
n.right
|
|
2835
|
+
]), s = 1 + t.nodeLevels?.length, c = a > t.nodeWidth * s ? t.nodeWidth : Math.max(a / s, 0);
|
|
2836
|
+
this.radiusScale.range([0, Math.max(a, 0)]), this.arcGen.startAngle((e) => e.x0 + t.padAngle / 2 - (e.value ? 0 : Math.PI / 360)).endAngle((e) => e.x1 - t.padAngle / 2 + (e.value ? 0 : Math.PI / 360)).cornerRadius((e) => q(e.data, t.cornerRadius)).innerRadius((e) => Math.max(this.radiusScale(e.y1) - c, 0)).outerRadius((e) => this.radiusScale(e.y1)), this.g.classed(ra, this._forceHighlight), this.background.attr("width", this._width).attr("height", this._height).style("opacity", 0), this.nodeGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`), this.labelGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`), this.linkGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`);
|
|
2837
|
+
let l = this.linkGroup.selectAll(`.${ta}`).data(this._links, (e) => String(e.data._id)), u = l.enter().append("path").attr("class", ta).call(Na, this.radiusScale);
|
|
2838
|
+
l.merge(u).classed(na, (e) => {
|
|
2839
|
+
let n = e.data.id ?? e.data._indexGlobal;
|
|
2840
|
+
return t.highlightedLinkIds?.includes(n);
|
|
2841
|
+
}).call(Pa, t, this.radiusScale, r), l.exit().call(Fa, r);
|
|
2842
|
+
let d = this.nodeGroup.selectAll(`.${Xi}`).data(this._nodes, (e) => String(e.uid)), f = d.enter().append("path").attr("class", Xi).call(Bi, t);
|
|
2843
|
+
d.merge(f).classed(Zi, (e) => t.highlightedNodeId === e.data._id).call(Vi, t, this.arcGen, r, this.bleed), d.exit().call(Hi, r);
|
|
2844
|
+
let p = i - a, m = this.labelGroup.selectAll(`.${Qi}`).data(this._nodes, (e) => String(e.uid)), h = m.enter().append("g").attr("class", Qi).call(sa, t, this.radiusScale);
|
|
2845
|
+
m.merge(h).call(ca, t, p, this.radiusScale, r), m.exit().attr("class", ea).call(la, r);
|
|
2846
|
+
}
|
|
2847
|
+
_onNodeMouseOver(e) {
|
|
2848
|
+
let t;
|
|
2849
|
+
if (e.children) {
|
|
2850
|
+
let n = e.leaves();
|
|
2851
|
+
t = this._links.filter((e) => n.find((t) => e.source.data.id === t.data.id || e.target.data.id === t.data.id));
|
|
2852
|
+
} else {
|
|
2853
|
+
let n = e;
|
|
2854
|
+
t = this._links.filter((e) => e.source.data.id === n.data.id || e.target.data.id === n.data.id);
|
|
2855
|
+
}
|
|
2856
|
+
t.length || (e._state.hovered = !0), this._highlightOnHover(t);
|
|
2857
|
+
}
|
|
2858
|
+
_onNodeMouseOut() {
|
|
2859
|
+
this._highlightOnHover();
|
|
2860
|
+
}
|
|
2861
|
+
_onLinkMouseOver(e) {
|
|
2862
|
+
this._highlightOnHover([e]);
|
|
2863
|
+
}
|
|
2864
|
+
_onLinkMouseOut() {
|
|
2865
|
+
this._highlightOnHover();
|
|
2866
|
+
}
|
|
2867
|
+
_highlightOnHover(e) {
|
|
2868
|
+
this._forceHighlight || (e ? e.forEach((e) => {
|
|
2869
|
+
e._state.hovered = !0;
|
|
2870
|
+
let t = e.source.path(this._rootNode), n = e.target.path(this._rootNode);
|
|
2871
|
+
t.forEach((e) => {
|
|
2872
|
+
e.depth && (e._state.hovered = !0);
|
|
2873
|
+
}), n.forEach((e) => {
|
|
2874
|
+
e.depth && (e._state.hovered = !0);
|
|
2875
|
+
});
|
|
2876
|
+
}) : (this._nodes.forEach((e) => {
|
|
2877
|
+
delete e._state.hovered;
|
|
2878
|
+
}), this._links.forEach((e) => {
|
|
2879
|
+
delete e._state.hovered;
|
|
2880
|
+
})), this.nodeGroup.selectAll(`.${Xi}`).classed(Zi, (e) => e._state.hovered), this.linkGroup.selectAll(`.${ta}`).classed(na, (e) => e._state.hovered), this.g.classed(ra, !!e));
|
|
2881
|
+
}
|
|
2882
|
+
};
|
|
2883
|
+
Ia.selectors = Ui;
|
|
2884
|
+
//#endregion
|
|
2885
|
+
//#region src/chordDiagram.ts
|
|
2886
|
+
var La = 16, Ra = .02;
|
|
2887
|
+
function za(e, t, n = {}) {
|
|
2888
|
+
let r = n.colorModeId ?? "light", i = he[r], a = new Ia({
|
|
2889
|
+
linkColor: (t) => me(e.nodes.findIndex((e) => e.id === t.source), r),
|
|
2890
|
+
nodeColor: (e, t) => me(t, r),
|
|
2891
|
+
nodeLabel: (e) => "label" in e ? e.label : e.key,
|
|
2892
|
+
nodeLabelColor: i.primary,
|
|
2893
|
+
nodeWidth: n.nodeWidth ?? La,
|
|
2894
|
+
padAngle: n.padAngle ?? Ra
|
|
2895
|
+
}), o = {
|
|
2896
|
+
links: e.links,
|
|
2897
|
+
nodes: e.nodes
|
|
2898
|
+
}, s = new Xr(t, { component: a }, o);
|
|
2899
|
+
return {
|
|
2900
|
+
resize: () => {
|
|
2901
|
+
s.render();
|
|
2902
|
+
},
|
|
2903
|
+
get svg() {
|
|
2904
|
+
return s.element;
|
|
2905
|
+
}
|
|
2906
|
+
};
|
|
2907
|
+
}
|
|
2908
|
+
//#endregion
|
|
2909
|
+
export { za as renderChordDiagram };
|
|
2910
|
+
|
|
2911
|
+
//# sourceMappingURL=chordDiagram-Cz0sVVgD.js.map
|