hub-ui-x 0.0.1
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 +5 -0
- package/dist/_basePickBy-C1WsytTM.js +151 -0
- package/dist/_baseUniq-CGQBVjq6.js +614 -0
- package/dist/arc-CfWEFjh8.js +84 -0
- package/dist/architecture-4AB2E3PP-DcT_AgQk.js +5 -0
- package/dist/architectureDiagram-IEHRJDOE-HOxolPJX.js +4635 -0
- package/dist/blockDiagram-JOT3LUYC-DOUpbN2x.js +2248 -0
- package/dist/c4Diagram-VJAJSXHY-BFAcC0i5.js +1582 -0
- package/dist/channel-Cu0z2gst.js +5 -0
- package/dist/chart-CJ_SRNKN.js +9241 -0
- package/dist/chunk-4BMEZGHF-BBaiA8MA.js +9 -0
- package/dist/chunk-A2AXSNBT-BWpKSYi4.js +1373 -0
- package/dist/chunk-AEK57VVT-doTsaHuQ.js +1415 -0
- package/dist/chunk-D6G4REZN-B6Iq6yid.js +64 -0
- package/dist/chunk-RZ5BOZE2-OspkSZtw.js +25 -0
- package/dist/chunk-XZIHB7SX-BTYIr8g5.js +15 -0
- package/dist/classDiagram-GIVACNV2-B_ES2mS7.js +17 -0
- package/dist/classDiagram-v2-COTLJTTW-B_ES2mS7.js +17 -0
- package/dist/clone-BZBtMp_G.js +8 -0
- package/dist/colors-BD7LS4qt.js +7 -0
- package/dist/cytoscape.esm-Swd9B-1A.js +18633 -0
- package/dist/dagre-OKDRZEBW-qXmKnSET.js +447 -0
- package/dist/diagram-SSKATNLV-D9zp03W0.js +221 -0
- package/dist/diagram-VNBRO52H-CBXg8AYQ.js +126 -0
- package/dist/download-B6Cbg_6N.js +39 -0
- package/dist/echarts-CvKQD1G1.js +44028 -0
- package/dist/erDiagram-Q7BY3M3F-BOJJGO7u.js +842 -0
- package/dist/flowDiagram-4HSFHLVR-jSArwKHg.js +1623 -0
- package/dist/ganttDiagram-APWFNJXF-DlkSU7D9.js +2472 -0
- package/dist/gitGraph-O2Q2CXLX-BKCeQqs8.js +5 -0
- package/dist/gitGraphDiagram-7IBYFJ6S-DUvZEq_S.js +713 -0
- package/dist/graph-zFu0gYaZ.js +247 -0
- package/dist/helper-C5NlRbA2.js +13 -0
- package/dist/hub-ui-x.css +1 -0
- package/dist/hub-ui-x.es.ts +5 -0
- package/dist/hub-ui-x.umd.ts +3258 -0
- package/dist/index-evjDGH2n.js +62533 -0
- package/dist/info-4N47QTOZ-BYDGL7Ae.js +5 -0
- package/dist/infoDiagram-PH2N3AL5-DJvDYk-t.js +22 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/journeyDiagram-U35MCT3I---dClVe4.js +810 -0
- package/dist/kanban-definition-NDS4AKOZ-DPL_aBPT.js +719 -0
- package/dist/katex-9tX9hjoM.js +11692 -0
- package/dist/layout-BqSq5ofg.js +1324 -0
- package/dist/linear-fJjgKrP9.js +423 -0
- package/dist/mermaid-CZvYCPmi.js +14243 -0
- package/dist/mermaid-parser.core-Bz7ADZ88.js +12835 -0
- package/dist/min-DLf0xQMm.js +28 -0
- package/dist/mindmap-definition-ALO5MXBD-CzxIzyQv.js +3222 -0
- package/dist/mindmap-r94UHoYv.js +21909 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-KVYON367-D4di2cz5.js +5 -0
- package/dist/pie-R6RNRRYF-CcxAsT3F.js +5 -0
- package/dist/pieDiagram-IB7DONF6-B5HBkGlO.js +162 -0
- package/dist/quadrantDiagram-7GDLP6J5-BS5bmqKW.js +1025 -0
- package/dist/radar-MK3ICKWK-CVYy5goT.js +5 -0
- package/dist/requirementDiagram-KVF5MWMF-Cr8GcN4Y.js +851 -0
- package/dist/sankeyDiagram-QLVOVGJD-Bhq9k8_q.js +806 -0
- package/dist/sequenceDiagram-X6HHIX6F-CCmFoYyv.js +2282 -0
- package/dist/stateDiagram-DGXRK772-JkIqKyGq.js +271 -0
- package/dist/stateDiagram-v2-YXO3MK2T-DMxAxUZ1.js +17 -0
- package/dist/timeline-definition-BDJGKUSR-Bi42udQn.js +805 -0
- package/dist/transform-Bsa6BTXX.js +1834 -0
- package/dist/xychartDiagram-VJFVF3MP-BI97ppBM.js +1305 -0
- package/package.json +55 -0
|
@@ -0,0 +1,1834 @@
|
|
|
1
|
+
var wn = { value: () => {
|
|
2
|
+
} };
|
|
3
|
+
function Vt() {
|
|
4
|
+
for (var t = 0, n = arguments.length, e = {}, r; t < n; ++t) {
|
|
5
|
+
if (!(r = arguments[t] + "") || r in e || /[\s.]/.test(r)) throw new Error("illegal type: " + r);
|
|
6
|
+
e[r] = [];
|
|
7
|
+
}
|
|
8
|
+
return new W(e);
|
|
9
|
+
}
|
|
10
|
+
function W(t) {
|
|
11
|
+
this._ = t;
|
|
12
|
+
}
|
|
13
|
+
function xn(t, n) {
|
|
14
|
+
return t.trim().split(/^|\s+/).map(function(e) {
|
|
15
|
+
var r = "", i = e.indexOf(".");
|
|
16
|
+
if (i >= 0 && (r = e.slice(i + 1), e = e.slice(0, i)), e && !n.hasOwnProperty(e)) throw new Error("unknown type: " + e);
|
|
17
|
+
return { type: e, name: r };
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
W.prototype = Vt.prototype = {
|
|
21
|
+
constructor: W,
|
|
22
|
+
on: function(t, n) {
|
|
23
|
+
var e = this._, r = xn(t + "", e), i, s = -1, o = r.length;
|
|
24
|
+
if (arguments.length < 2) {
|
|
25
|
+
for (; ++s < o; ) if ((i = (t = r[s]).type) && (i = vn(e[i], t.name))) return i;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (n != null && typeof n != "function") throw new Error("invalid callback: " + n);
|
|
29
|
+
for (; ++s < o; )
|
|
30
|
+
if (i = (t = r[s]).type) e[i] = Et(e[i], t.name, n);
|
|
31
|
+
else if (n == null) for (i in e) e[i] = Et(e[i], t.name, null);
|
|
32
|
+
return this;
|
|
33
|
+
},
|
|
34
|
+
copy: function() {
|
|
35
|
+
var t = {}, n = this._;
|
|
36
|
+
for (var e in n) t[e] = n[e].slice();
|
|
37
|
+
return new W(t);
|
|
38
|
+
},
|
|
39
|
+
call: function(t, n) {
|
|
40
|
+
if ((i = arguments.length - 2) > 0) for (var e = new Array(i), r = 0, i, s; r < i; ++r) e[r] = arguments[r + 2];
|
|
41
|
+
if (!this._.hasOwnProperty(t)) throw new Error("unknown type: " + t);
|
|
42
|
+
for (s = this._[t], r = 0, i = s.length; r < i; ++r) s[r].value.apply(n, e);
|
|
43
|
+
},
|
|
44
|
+
apply: function(t, n, e) {
|
|
45
|
+
if (!this._.hasOwnProperty(t)) throw new Error("unknown type: " + t);
|
|
46
|
+
for (var r = this._[t], i = 0, s = r.length; i < s; ++i) r[i].value.apply(n, e);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
function vn(t, n) {
|
|
50
|
+
for (var e = 0, r = t.length, i; e < r; ++e)
|
|
51
|
+
if ((i = t[e]).name === n)
|
|
52
|
+
return i.value;
|
|
53
|
+
}
|
|
54
|
+
function Et(t, n, e) {
|
|
55
|
+
for (var r = 0, i = t.length; r < i; ++r)
|
|
56
|
+
if (t[r].name === n) {
|
|
57
|
+
t[r] = wn, t = t.slice(0, r).concat(t.slice(r + 1));
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
return e != null && t.push({ name: n, value: e }), t;
|
|
61
|
+
}
|
|
62
|
+
var ct = "http://www.w3.org/1999/xhtml";
|
|
63
|
+
const Mt = {
|
|
64
|
+
svg: "http://www.w3.org/2000/svg",
|
|
65
|
+
xhtml: ct,
|
|
66
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
67
|
+
xml: "http://www.w3.org/XML/1998/namespace",
|
|
68
|
+
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
69
|
+
};
|
|
70
|
+
function ot(t) {
|
|
71
|
+
var n = t += "", e = n.indexOf(":");
|
|
72
|
+
return e >= 0 && (n = t.slice(0, e)) !== "xmlns" && (t = t.slice(e + 1)), Mt.hasOwnProperty(n) ? { space: Mt[n], local: t } : t;
|
|
73
|
+
}
|
|
74
|
+
function mn(t) {
|
|
75
|
+
return function() {
|
|
76
|
+
var n = this.ownerDocument, e = this.namespaceURI;
|
|
77
|
+
return e === ct && n.documentElement.namespaceURI === ct ? n.createElement(t) : n.createElementNS(e, t);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function bn(t) {
|
|
81
|
+
return function() {
|
|
82
|
+
return this.ownerDocument.createElementNS(t.space, t.local);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function Yt(t) {
|
|
86
|
+
var n = ot(t);
|
|
87
|
+
return (n.local ? bn : mn)(n);
|
|
88
|
+
}
|
|
89
|
+
function $n() {
|
|
90
|
+
}
|
|
91
|
+
function vt(t) {
|
|
92
|
+
return t == null ? $n : function() {
|
|
93
|
+
return this.querySelector(t);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function Nn(t) {
|
|
97
|
+
typeof t != "function" && (t = vt(t));
|
|
98
|
+
for (var n = this._groups, e = n.length, r = new Array(e), i = 0; i < e; ++i)
|
|
99
|
+
for (var s = n[i], o = s.length, a = r[i] = new Array(o), u, f, l = 0; l < o; ++l)
|
|
100
|
+
(u = s[l]) && (f = t.call(u, u.__data__, l, s)) && ("__data__" in u && (f.__data__ = u.__data__), a[l] = f);
|
|
101
|
+
return new y(r, this._parents);
|
|
102
|
+
}
|
|
103
|
+
function An(t) {
|
|
104
|
+
return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
|
|
105
|
+
}
|
|
106
|
+
function kn() {
|
|
107
|
+
return [];
|
|
108
|
+
}
|
|
109
|
+
function Bt(t) {
|
|
110
|
+
return t == null ? kn : function() {
|
|
111
|
+
return this.querySelectorAll(t);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function En(t) {
|
|
115
|
+
return function() {
|
|
116
|
+
return An(t.apply(this, arguments));
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function Mn(t) {
|
|
120
|
+
typeof t == "function" ? t = En(t) : t = Bt(t);
|
|
121
|
+
for (var n = this._groups, e = n.length, r = [], i = [], s = 0; s < e; ++s)
|
|
122
|
+
for (var o = n[s], a = o.length, u, f = 0; f < a; ++f)
|
|
123
|
+
(u = o[f]) && (r.push(t.call(u, u.__data__, f, o)), i.push(u));
|
|
124
|
+
return new y(r, i);
|
|
125
|
+
}
|
|
126
|
+
function Ut(t) {
|
|
127
|
+
return function() {
|
|
128
|
+
return this.matches(t);
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function Kt(t) {
|
|
132
|
+
return function(n) {
|
|
133
|
+
return n.matches(t);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
var Sn = Array.prototype.find;
|
|
137
|
+
function Cn(t) {
|
|
138
|
+
return function() {
|
|
139
|
+
return Sn.call(this.children, t);
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function Tn() {
|
|
143
|
+
return this.firstElementChild;
|
|
144
|
+
}
|
|
145
|
+
function Rn(t) {
|
|
146
|
+
return this.select(t == null ? Tn : Cn(typeof t == "function" ? t : Kt(t)));
|
|
147
|
+
}
|
|
148
|
+
var In = Array.prototype.filter;
|
|
149
|
+
function qn() {
|
|
150
|
+
return Array.from(this.children);
|
|
151
|
+
}
|
|
152
|
+
function Fn(t) {
|
|
153
|
+
return function() {
|
|
154
|
+
return In.call(this.children, t);
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function Hn(t) {
|
|
158
|
+
return this.selectAll(t == null ? qn : Fn(typeof t == "function" ? t : Kt(t)));
|
|
159
|
+
}
|
|
160
|
+
function Pn(t) {
|
|
161
|
+
typeof t != "function" && (t = Ut(t));
|
|
162
|
+
for (var n = this._groups, e = n.length, r = new Array(e), i = 0; i < e; ++i)
|
|
163
|
+
for (var s = n[i], o = s.length, a = r[i] = [], u, f = 0; f < o; ++f)
|
|
164
|
+
(u = s[f]) && t.call(u, u.__data__, f, s) && a.push(u);
|
|
165
|
+
return new y(r, this._parents);
|
|
166
|
+
}
|
|
167
|
+
function Gt(t) {
|
|
168
|
+
return new Array(t.length);
|
|
169
|
+
}
|
|
170
|
+
function Xn() {
|
|
171
|
+
return new y(this._enter || this._groups.map(Gt), this._parents);
|
|
172
|
+
}
|
|
173
|
+
function tt(t, n) {
|
|
174
|
+
this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = n;
|
|
175
|
+
}
|
|
176
|
+
tt.prototype = {
|
|
177
|
+
constructor: tt,
|
|
178
|
+
appendChild: function(t) {
|
|
179
|
+
return this._parent.insertBefore(t, this._next);
|
|
180
|
+
},
|
|
181
|
+
insertBefore: function(t, n) {
|
|
182
|
+
return this._parent.insertBefore(t, n);
|
|
183
|
+
},
|
|
184
|
+
querySelector: function(t) {
|
|
185
|
+
return this._parent.querySelector(t);
|
|
186
|
+
},
|
|
187
|
+
querySelectorAll: function(t) {
|
|
188
|
+
return this._parent.querySelectorAll(t);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
function Ln(t) {
|
|
192
|
+
return function() {
|
|
193
|
+
return t;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function Dn(t, n, e, r, i, s) {
|
|
197
|
+
for (var o = 0, a, u = n.length, f = s.length; o < f; ++o)
|
|
198
|
+
(a = n[o]) ? (a.__data__ = s[o], r[o] = a) : e[o] = new tt(t, s[o]);
|
|
199
|
+
for (; o < u; ++o)
|
|
200
|
+
(a = n[o]) && (i[o] = a);
|
|
201
|
+
}
|
|
202
|
+
function On(t, n, e, r, i, s, o) {
|
|
203
|
+
var a, u, f = /* @__PURE__ */ new Map(), l = n.length, c = s.length, h = new Array(l), _;
|
|
204
|
+
for (a = 0; a < l; ++a)
|
|
205
|
+
(u = n[a]) && (h[a] = _ = o.call(u, u.__data__, a, n) + "", f.has(_) ? i[a] = u : f.set(_, u));
|
|
206
|
+
for (a = 0; a < c; ++a)
|
|
207
|
+
_ = o.call(t, s[a], a, s) + "", (u = f.get(_)) ? (r[a] = u, u.__data__ = s[a], f.delete(_)) : e[a] = new tt(t, s[a]);
|
|
208
|
+
for (a = 0; a < l; ++a)
|
|
209
|
+
(u = n[a]) && f.get(h[a]) === u && (i[a] = u);
|
|
210
|
+
}
|
|
211
|
+
function zn(t) {
|
|
212
|
+
return t.__data__;
|
|
213
|
+
}
|
|
214
|
+
function Vn(t, n) {
|
|
215
|
+
if (!arguments.length) return Array.from(this, zn);
|
|
216
|
+
var e = n ? On : Dn, r = this._parents, i = this._groups;
|
|
217
|
+
typeof t != "function" && (t = Ln(t));
|
|
218
|
+
for (var s = i.length, o = new Array(s), a = new Array(s), u = new Array(s), f = 0; f < s; ++f) {
|
|
219
|
+
var l = r[f], c = i[f], h = c.length, _ = Yn(t.call(l, l && l.__data__, f, r)), p = _.length, d = a[f] = new Array(p), b = o[f] = new Array(p), K = u[f] = new Array(h);
|
|
220
|
+
e(l, c, d, b, K, _, n);
|
|
221
|
+
for (var A = 0, E = 0, R, P; A < p; ++A)
|
|
222
|
+
if (R = d[A]) {
|
|
223
|
+
for (A >= E && (E = A + 1); !(P = b[E]) && ++E < p; ) ;
|
|
224
|
+
R._next = P || null;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return o = new y(o, r), o._enter = a, o._exit = u, o;
|
|
228
|
+
}
|
|
229
|
+
function Yn(t) {
|
|
230
|
+
return typeof t == "object" && "length" in t ? t : Array.from(t);
|
|
231
|
+
}
|
|
232
|
+
function Bn() {
|
|
233
|
+
return new y(this._exit || this._groups.map(Gt), this._parents);
|
|
234
|
+
}
|
|
235
|
+
function Un(t, n, e) {
|
|
236
|
+
var r = this.enter(), i = this, s = this.exit();
|
|
237
|
+
return typeof t == "function" ? (r = t(r), r && (r = r.selection())) : r = r.append(t + ""), n != null && (i = n(i), i && (i = i.selection())), e == null ? s.remove() : e(s), r && i ? r.merge(i).order() : i;
|
|
238
|
+
}
|
|
239
|
+
function Kn(t) {
|
|
240
|
+
for (var n = t.selection ? t.selection() : t, e = this._groups, r = n._groups, i = e.length, s = r.length, o = Math.min(i, s), a = new Array(i), u = 0; u < o; ++u)
|
|
241
|
+
for (var f = e[u], l = r[u], c = f.length, h = a[u] = new Array(c), _, p = 0; p < c; ++p)
|
|
242
|
+
(_ = f[p] || l[p]) && (h[p] = _);
|
|
243
|
+
for (; u < i; ++u)
|
|
244
|
+
a[u] = e[u];
|
|
245
|
+
return new y(a, this._parents);
|
|
246
|
+
}
|
|
247
|
+
function Gn() {
|
|
248
|
+
for (var t = this._groups, n = -1, e = t.length; ++n < e; )
|
|
249
|
+
for (var r = t[n], i = r.length - 1, s = r[i], o; --i >= 0; )
|
|
250
|
+
(o = r[i]) && (s && o.compareDocumentPosition(s) ^ 4 && s.parentNode.insertBefore(o, s), s = o);
|
|
251
|
+
return this;
|
|
252
|
+
}
|
|
253
|
+
function Zn(t) {
|
|
254
|
+
t || (t = Qn);
|
|
255
|
+
function n(c, h) {
|
|
256
|
+
return c && h ? t(c.__data__, h.__data__) : !c - !h;
|
|
257
|
+
}
|
|
258
|
+
for (var e = this._groups, r = e.length, i = new Array(r), s = 0; s < r; ++s) {
|
|
259
|
+
for (var o = e[s], a = o.length, u = i[s] = new Array(a), f, l = 0; l < a; ++l)
|
|
260
|
+
(f = o[l]) && (u[l] = f);
|
|
261
|
+
u.sort(n);
|
|
262
|
+
}
|
|
263
|
+
return new y(i, this._parents).order();
|
|
264
|
+
}
|
|
265
|
+
function Qn(t, n) {
|
|
266
|
+
return t < n ? -1 : t > n ? 1 : t >= n ? 0 : NaN;
|
|
267
|
+
}
|
|
268
|
+
function Wn() {
|
|
269
|
+
var t = arguments[0];
|
|
270
|
+
return arguments[0] = this, t.apply(null, arguments), this;
|
|
271
|
+
}
|
|
272
|
+
function Jn() {
|
|
273
|
+
return Array.from(this);
|
|
274
|
+
}
|
|
275
|
+
function jn() {
|
|
276
|
+
for (var t = this._groups, n = 0, e = t.length; n < e; ++n)
|
|
277
|
+
for (var r = t[n], i = 0, s = r.length; i < s; ++i) {
|
|
278
|
+
var o = r[i];
|
|
279
|
+
if (o) return o;
|
|
280
|
+
}
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
function te() {
|
|
284
|
+
let t = 0;
|
|
285
|
+
for (const n of this) ++t;
|
|
286
|
+
return t;
|
|
287
|
+
}
|
|
288
|
+
function ne() {
|
|
289
|
+
return !this.node();
|
|
290
|
+
}
|
|
291
|
+
function ee(t) {
|
|
292
|
+
for (var n = this._groups, e = 0, r = n.length; e < r; ++e)
|
|
293
|
+
for (var i = n[e], s = 0, o = i.length, a; s < o; ++s)
|
|
294
|
+
(a = i[s]) && t.call(a, a.__data__, s, i);
|
|
295
|
+
return this;
|
|
296
|
+
}
|
|
297
|
+
function re(t) {
|
|
298
|
+
return function() {
|
|
299
|
+
this.removeAttribute(t);
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function ie(t) {
|
|
303
|
+
return function() {
|
|
304
|
+
this.removeAttributeNS(t.space, t.local);
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function se(t, n) {
|
|
308
|
+
return function() {
|
|
309
|
+
this.setAttribute(t, n);
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function oe(t, n) {
|
|
313
|
+
return function() {
|
|
314
|
+
this.setAttributeNS(t.space, t.local, n);
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
function ae(t, n) {
|
|
318
|
+
return function() {
|
|
319
|
+
var e = n.apply(this, arguments);
|
|
320
|
+
e == null ? this.removeAttribute(t) : this.setAttribute(t, e);
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
function ue(t, n) {
|
|
324
|
+
return function() {
|
|
325
|
+
var e = n.apply(this, arguments);
|
|
326
|
+
e == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, e);
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
function fe(t, n) {
|
|
330
|
+
var e = ot(t);
|
|
331
|
+
if (arguments.length < 2) {
|
|
332
|
+
var r = this.node();
|
|
333
|
+
return e.local ? r.getAttributeNS(e.space, e.local) : r.getAttribute(e);
|
|
334
|
+
}
|
|
335
|
+
return this.each((n == null ? e.local ? ie : re : typeof n == "function" ? e.local ? ue : ae : e.local ? oe : se)(e, n));
|
|
336
|
+
}
|
|
337
|
+
function Zt(t) {
|
|
338
|
+
return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
|
|
339
|
+
}
|
|
340
|
+
function le(t) {
|
|
341
|
+
return function() {
|
|
342
|
+
this.style.removeProperty(t);
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
function ce(t, n, e) {
|
|
346
|
+
return function() {
|
|
347
|
+
this.style.setProperty(t, n, e);
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function he(t, n, e) {
|
|
351
|
+
return function() {
|
|
352
|
+
var r = n.apply(this, arguments);
|
|
353
|
+
r == null ? this.style.removeProperty(t) : this.style.setProperty(t, r, e);
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
function _e(t, n, e) {
|
|
357
|
+
return arguments.length > 1 ? this.each((n == null ? le : typeof n == "function" ? he : ce)(t, n, e ?? "")) : F(this.node(), t);
|
|
358
|
+
}
|
|
359
|
+
function F(t, n) {
|
|
360
|
+
return t.style.getPropertyValue(n) || Zt(t).getComputedStyle(t, null).getPropertyValue(n);
|
|
361
|
+
}
|
|
362
|
+
function pe(t) {
|
|
363
|
+
return function() {
|
|
364
|
+
delete this[t];
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
function de(t, n) {
|
|
368
|
+
return function() {
|
|
369
|
+
this[t] = n;
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
function ge(t, n) {
|
|
373
|
+
return function() {
|
|
374
|
+
var e = n.apply(this, arguments);
|
|
375
|
+
e == null ? delete this[t] : this[t] = e;
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
function ye(t, n) {
|
|
379
|
+
return arguments.length > 1 ? this.each((n == null ? pe : typeof n == "function" ? ge : de)(t, n)) : this.node()[t];
|
|
380
|
+
}
|
|
381
|
+
function Qt(t) {
|
|
382
|
+
return t.trim().split(/^|\s+/);
|
|
383
|
+
}
|
|
384
|
+
function mt(t) {
|
|
385
|
+
return t.classList || new Wt(t);
|
|
386
|
+
}
|
|
387
|
+
function Wt(t) {
|
|
388
|
+
this._node = t, this._names = Qt(t.getAttribute("class") || "");
|
|
389
|
+
}
|
|
390
|
+
Wt.prototype = {
|
|
391
|
+
add: function(t) {
|
|
392
|
+
var n = this._names.indexOf(t);
|
|
393
|
+
n < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" ")));
|
|
394
|
+
},
|
|
395
|
+
remove: function(t) {
|
|
396
|
+
var n = this._names.indexOf(t);
|
|
397
|
+
n >= 0 && (this._names.splice(n, 1), this._node.setAttribute("class", this._names.join(" ")));
|
|
398
|
+
},
|
|
399
|
+
contains: function(t) {
|
|
400
|
+
return this._names.indexOf(t) >= 0;
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
function Jt(t, n) {
|
|
404
|
+
for (var e = mt(t), r = -1, i = n.length; ++r < i; ) e.add(n[r]);
|
|
405
|
+
}
|
|
406
|
+
function jt(t, n) {
|
|
407
|
+
for (var e = mt(t), r = -1, i = n.length; ++r < i; ) e.remove(n[r]);
|
|
408
|
+
}
|
|
409
|
+
function we(t) {
|
|
410
|
+
return function() {
|
|
411
|
+
Jt(this, t);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function xe(t) {
|
|
415
|
+
return function() {
|
|
416
|
+
jt(this, t);
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
function ve(t, n) {
|
|
420
|
+
return function() {
|
|
421
|
+
(n.apply(this, arguments) ? Jt : jt)(this, t);
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
function me(t, n) {
|
|
425
|
+
var e = Qt(t + "");
|
|
426
|
+
if (arguments.length < 2) {
|
|
427
|
+
for (var r = mt(this.node()), i = -1, s = e.length; ++i < s; ) if (!r.contains(e[i])) return !1;
|
|
428
|
+
return !0;
|
|
429
|
+
}
|
|
430
|
+
return this.each((typeof n == "function" ? ve : n ? we : xe)(e, n));
|
|
431
|
+
}
|
|
432
|
+
function be() {
|
|
433
|
+
this.textContent = "";
|
|
434
|
+
}
|
|
435
|
+
function $e(t) {
|
|
436
|
+
return function() {
|
|
437
|
+
this.textContent = t;
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
function Ne(t) {
|
|
441
|
+
return function() {
|
|
442
|
+
var n = t.apply(this, arguments);
|
|
443
|
+
this.textContent = n ?? "";
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
function Ae(t) {
|
|
447
|
+
return arguments.length ? this.each(t == null ? be : (typeof t == "function" ? Ne : $e)(t)) : this.node().textContent;
|
|
448
|
+
}
|
|
449
|
+
function ke() {
|
|
450
|
+
this.innerHTML = "";
|
|
451
|
+
}
|
|
452
|
+
function Ee(t) {
|
|
453
|
+
return function() {
|
|
454
|
+
this.innerHTML = t;
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
function Me(t) {
|
|
458
|
+
return function() {
|
|
459
|
+
var n = t.apply(this, arguments);
|
|
460
|
+
this.innerHTML = n ?? "";
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
function Se(t) {
|
|
464
|
+
return arguments.length ? this.each(t == null ? ke : (typeof t == "function" ? Me : Ee)(t)) : this.node().innerHTML;
|
|
465
|
+
}
|
|
466
|
+
function Ce() {
|
|
467
|
+
this.nextSibling && this.parentNode.appendChild(this);
|
|
468
|
+
}
|
|
469
|
+
function Te() {
|
|
470
|
+
return this.each(Ce);
|
|
471
|
+
}
|
|
472
|
+
function Re() {
|
|
473
|
+
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
474
|
+
}
|
|
475
|
+
function Ie() {
|
|
476
|
+
return this.each(Re);
|
|
477
|
+
}
|
|
478
|
+
function qe(t) {
|
|
479
|
+
var n = typeof t == "function" ? t : Yt(t);
|
|
480
|
+
return this.select(function() {
|
|
481
|
+
return this.appendChild(n.apply(this, arguments));
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
function Fe() {
|
|
485
|
+
return null;
|
|
486
|
+
}
|
|
487
|
+
function He(t, n) {
|
|
488
|
+
var e = typeof t == "function" ? t : Yt(t), r = n == null ? Fe : typeof n == "function" ? n : vt(n);
|
|
489
|
+
return this.select(function() {
|
|
490
|
+
return this.insertBefore(e.apply(this, arguments), r.apply(this, arguments) || null);
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
function Pe() {
|
|
494
|
+
var t = this.parentNode;
|
|
495
|
+
t && t.removeChild(this);
|
|
496
|
+
}
|
|
497
|
+
function Xe() {
|
|
498
|
+
return this.each(Pe);
|
|
499
|
+
}
|
|
500
|
+
function Le() {
|
|
501
|
+
var t = this.cloneNode(!1), n = this.parentNode;
|
|
502
|
+
return n ? n.insertBefore(t, this.nextSibling) : t;
|
|
503
|
+
}
|
|
504
|
+
function De() {
|
|
505
|
+
var t = this.cloneNode(!0), n = this.parentNode;
|
|
506
|
+
return n ? n.insertBefore(t, this.nextSibling) : t;
|
|
507
|
+
}
|
|
508
|
+
function Oe(t) {
|
|
509
|
+
return this.select(t ? De : Le);
|
|
510
|
+
}
|
|
511
|
+
function ze(t) {
|
|
512
|
+
return arguments.length ? this.property("__data__", t) : this.node().__data__;
|
|
513
|
+
}
|
|
514
|
+
function Ve(t) {
|
|
515
|
+
return function(n) {
|
|
516
|
+
t.call(this, n, this.__data__);
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
function Ye(t) {
|
|
520
|
+
return t.trim().split(/^|\s+/).map(function(n) {
|
|
521
|
+
var e = "", r = n.indexOf(".");
|
|
522
|
+
return r >= 0 && (e = n.slice(r + 1), n = n.slice(0, r)), { type: n, name: e };
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
function Be(t) {
|
|
526
|
+
return function() {
|
|
527
|
+
var n = this.__on;
|
|
528
|
+
if (n) {
|
|
529
|
+
for (var e = 0, r = -1, i = n.length, s; e < i; ++e)
|
|
530
|
+
s = n[e], (!t.type || s.type === t.type) && s.name === t.name ? this.removeEventListener(s.type, s.listener, s.options) : n[++r] = s;
|
|
531
|
+
++r ? n.length = r : delete this.__on;
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
function Ue(t, n, e) {
|
|
536
|
+
return function() {
|
|
537
|
+
var r = this.__on, i, s = Ve(n);
|
|
538
|
+
if (r) {
|
|
539
|
+
for (var o = 0, a = r.length; o < a; ++o)
|
|
540
|
+
if ((i = r[o]).type === t.type && i.name === t.name) {
|
|
541
|
+
this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = s, i.options = e), i.value = n;
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
this.addEventListener(t.type, s, e), i = { type: t.type, name: t.name, value: n, listener: s, options: e }, r ? r.push(i) : this.__on = [i];
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
function Ke(t, n, e) {
|
|
549
|
+
var r = Ye(t + ""), i, s = r.length, o;
|
|
550
|
+
if (arguments.length < 2) {
|
|
551
|
+
var a = this.node().__on;
|
|
552
|
+
if (a) {
|
|
553
|
+
for (var u = 0, f = a.length, l; u < f; ++u)
|
|
554
|
+
for (i = 0, l = a[u]; i < s; ++i)
|
|
555
|
+
if ((o = r[i]).type === l.type && o.name === l.name)
|
|
556
|
+
return l.value;
|
|
557
|
+
}
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
560
|
+
for (a = n ? Ue : Be, i = 0; i < s; ++i) this.each(a(r[i], n, e));
|
|
561
|
+
return this;
|
|
562
|
+
}
|
|
563
|
+
function tn(t, n, e) {
|
|
564
|
+
var r = Zt(t), i = r.CustomEvent;
|
|
565
|
+
typeof i == "function" ? i = new i(n, e) : (i = r.document.createEvent("Event"), e ? (i.initEvent(n, e.bubbles, e.cancelable), i.detail = e.detail) : i.initEvent(n, !1, !1)), t.dispatchEvent(i);
|
|
566
|
+
}
|
|
567
|
+
function Ge(t, n) {
|
|
568
|
+
return function() {
|
|
569
|
+
return tn(this, t, n);
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
function Ze(t, n) {
|
|
573
|
+
return function() {
|
|
574
|
+
return tn(this, t, n.apply(this, arguments));
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
function Qe(t, n) {
|
|
578
|
+
return this.each((typeof n == "function" ? Ze : Ge)(t, n));
|
|
579
|
+
}
|
|
580
|
+
function* We() {
|
|
581
|
+
for (var t = this._groups, n = 0, e = t.length; n < e; ++n)
|
|
582
|
+
for (var r = t[n], i = 0, s = r.length, o; i < s; ++i)
|
|
583
|
+
(o = r[i]) && (yield o);
|
|
584
|
+
}
|
|
585
|
+
var nn = [null];
|
|
586
|
+
function y(t, n) {
|
|
587
|
+
this._groups = t, this._parents = n;
|
|
588
|
+
}
|
|
589
|
+
function B() {
|
|
590
|
+
return new y([[document.documentElement]], nn);
|
|
591
|
+
}
|
|
592
|
+
function Je() {
|
|
593
|
+
return this;
|
|
594
|
+
}
|
|
595
|
+
y.prototype = B.prototype = {
|
|
596
|
+
constructor: y,
|
|
597
|
+
select: Nn,
|
|
598
|
+
selectAll: Mn,
|
|
599
|
+
selectChild: Rn,
|
|
600
|
+
selectChildren: Hn,
|
|
601
|
+
filter: Pn,
|
|
602
|
+
data: Vn,
|
|
603
|
+
enter: Xn,
|
|
604
|
+
exit: Bn,
|
|
605
|
+
join: Un,
|
|
606
|
+
merge: Kn,
|
|
607
|
+
selection: Je,
|
|
608
|
+
order: Gn,
|
|
609
|
+
sort: Zn,
|
|
610
|
+
call: Wn,
|
|
611
|
+
nodes: Jn,
|
|
612
|
+
node: jn,
|
|
613
|
+
size: te,
|
|
614
|
+
empty: ne,
|
|
615
|
+
each: ee,
|
|
616
|
+
attr: fe,
|
|
617
|
+
style: _e,
|
|
618
|
+
property: ye,
|
|
619
|
+
classed: me,
|
|
620
|
+
text: Ae,
|
|
621
|
+
html: Se,
|
|
622
|
+
raise: Te,
|
|
623
|
+
lower: Ie,
|
|
624
|
+
append: qe,
|
|
625
|
+
insert: He,
|
|
626
|
+
remove: Xe,
|
|
627
|
+
clone: Oe,
|
|
628
|
+
datum: ze,
|
|
629
|
+
on: Ke,
|
|
630
|
+
dispatch: Qe,
|
|
631
|
+
[Symbol.iterator]: We
|
|
632
|
+
};
|
|
633
|
+
function Pi(t) {
|
|
634
|
+
return typeof t == "string" ? new y([[document.querySelector(t)]], [document.documentElement]) : new y([[t]], nn);
|
|
635
|
+
}
|
|
636
|
+
function bt(t, n, e) {
|
|
637
|
+
t.prototype = n.prototype = e, e.constructor = t;
|
|
638
|
+
}
|
|
639
|
+
function en(t, n) {
|
|
640
|
+
var e = Object.create(t.prototype);
|
|
641
|
+
for (var r in n) e[r] = n[r];
|
|
642
|
+
return e;
|
|
643
|
+
}
|
|
644
|
+
function U() {
|
|
645
|
+
}
|
|
646
|
+
var O = 0.7, nt = 1 / O, q = "\\s*([+-]?\\d+)\\s*", z = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", v = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", je = /^#([0-9a-f]{3,8})$/, tr = new RegExp(`^rgb\\(${q},${q},${q}\\)$`), nr = new RegExp(`^rgb\\(${v},${v},${v}\\)$`), er = new RegExp(`^rgba\\(${q},${q},${q},${z}\\)$`), rr = new RegExp(`^rgba\\(${v},${v},${v},${z}\\)$`), ir = new RegExp(`^hsl\\(${z},${v},${v}\\)$`), sr = new RegExp(`^hsla\\(${z},${v},${v},${z}\\)$`), St = {
|
|
647
|
+
aliceblue: 15792383,
|
|
648
|
+
antiquewhite: 16444375,
|
|
649
|
+
aqua: 65535,
|
|
650
|
+
aquamarine: 8388564,
|
|
651
|
+
azure: 15794175,
|
|
652
|
+
beige: 16119260,
|
|
653
|
+
bisque: 16770244,
|
|
654
|
+
black: 0,
|
|
655
|
+
blanchedalmond: 16772045,
|
|
656
|
+
blue: 255,
|
|
657
|
+
blueviolet: 9055202,
|
|
658
|
+
brown: 10824234,
|
|
659
|
+
burlywood: 14596231,
|
|
660
|
+
cadetblue: 6266528,
|
|
661
|
+
chartreuse: 8388352,
|
|
662
|
+
chocolate: 13789470,
|
|
663
|
+
coral: 16744272,
|
|
664
|
+
cornflowerblue: 6591981,
|
|
665
|
+
cornsilk: 16775388,
|
|
666
|
+
crimson: 14423100,
|
|
667
|
+
cyan: 65535,
|
|
668
|
+
darkblue: 139,
|
|
669
|
+
darkcyan: 35723,
|
|
670
|
+
darkgoldenrod: 12092939,
|
|
671
|
+
darkgray: 11119017,
|
|
672
|
+
darkgreen: 25600,
|
|
673
|
+
darkgrey: 11119017,
|
|
674
|
+
darkkhaki: 12433259,
|
|
675
|
+
darkmagenta: 9109643,
|
|
676
|
+
darkolivegreen: 5597999,
|
|
677
|
+
darkorange: 16747520,
|
|
678
|
+
darkorchid: 10040012,
|
|
679
|
+
darkred: 9109504,
|
|
680
|
+
darksalmon: 15308410,
|
|
681
|
+
darkseagreen: 9419919,
|
|
682
|
+
darkslateblue: 4734347,
|
|
683
|
+
darkslategray: 3100495,
|
|
684
|
+
darkslategrey: 3100495,
|
|
685
|
+
darkturquoise: 52945,
|
|
686
|
+
darkviolet: 9699539,
|
|
687
|
+
deeppink: 16716947,
|
|
688
|
+
deepskyblue: 49151,
|
|
689
|
+
dimgray: 6908265,
|
|
690
|
+
dimgrey: 6908265,
|
|
691
|
+
dodgerblue: 2003199,
|
|
692
|
+
firebrick: 11674146,
|
|
693
|
+
floralwhite: 16775920,
|
|
694
|
+
forestgreen: 2263842,
|
|
695
|
+
fuchsia: 16711935,
|
|
696
|
+
gainsboro: 14474460,
|
|
697
|
+
ghostwhite: 16316671,
|
|
698
|
+
gold: 16766720,
|
|
699
|
+
goldenrod: 14329120,
|
|
700
|
+
gray: 8421504,
|
|
701
|
+
green: 32768,
|
|
702
|
+
greenyellow: 11403055,
|
|
703
|
+
grey: 8421504,
|
|
704
|
+
honeydew: 15794160,
|
|
705
|
+
hotpink: 16738740,
|
|
706
|
+
indianred: 13458524,
|
|
707
|
+
indigo: 4915330,
|
|
708
|
+
ivory: 16777200,
|
|
709
|
+
khaki: 15787660,
|
|
710
|
+
lavender: 15132410,
|
|
711
|
+
lavenderblush: 16773365,
|
|
712
|
+
lawngreen: 8190976,
|
|
713
|
+
lemonchiffon: 16775885,
|
|
714
|
+
lightblue: 11393254,
|
|
715
|
+
lightcoral: 15761536,
|
|
716
|
+
lightcyan: 14745599,
|
|
717
|
+
lightgoldenrodyellow: 16448210,
|
|
718
|
+
lightgray: 13882323,
|
|
719
|
+
lightgreen: 9498256,
|
|
720
|
+
lightgrey: 13882323,
|
|
721
|
+
lightpink: 16758465,
|
|
722
|
+
lightsalmon: 16752762,
|
|
723
|
+
lightseagreen: 2142890,
|
|
724
|
+
lightskyblue: 8900346,
|
|
725
|
+
lightslategray: 7833753,
|
|
726
|
+
lightslategrey: 7833753,
|
|
727
|
+
lightsteelblue: 11584734,
|
|
728
|
+
lightyellow: 16777184,
|
|
729
|
+
lime: 65280,
|
|
730
|
+
limegreen: 3329330,
|
|
731
|
+
linen: 16445670,
|
|
732
|
+
magenta: 16711935,
|
|
733
|
+
maroon: 8388608,
|
|
734
|
+
mediumaquamarine: 6737322,
|
|
735
|
+
mediumblue: 205,
|
|
736
|
+
mediumorchid: 12211667,
|
|
737
|
+
mediumpurple: 9662683,
|
|
738
|
+
mediumseagreen: 3978097,
|
|
739
|
+
mediumslateblue: 8087790,
|
|
740
|
+
mediumspringgreen: 64154,
|
|
741
|
+
mediumturquoise: 4772300,
|
|
742
|
+
mediumvioletred: 13047173,
|
|
743
|
+
midnightblue: 1644912,
|
|
744
|
+
mintcream: 16121850,
|
|
745
|
+
mistyrose: 16770273,
|
|
746
|
+
moccasin: 16770229,
|
|
747
|
+
navajowhite: 16768685,
|
|
748
|
+
navy: 128,
|
|
749
|
+
oldlace: 16643558,
|
|
750
|
+
olive: 8421376,
|
|
751
|
+
olivedrab: 7048739,
|
|
752
|
+
orange: 16753920,
|
|
753
|
+
orangered: 16729344,
|
|
754
|
+
orchid: 14315734,
|
|
755
|
+
palegoldenrod: 15657130,
|
|
756
|
+
palegreen: 10025880,
|
|
757
|
+
paleturquoise: 11529966,
|
|
758
|
+
palevioletred: 14381203,
|
|
759
|
+
papayawhip: 16773077,
|
|
760
|
+
peachpuff: 16767673,
|
|
761
|
+
peru: 13468991,
|
|
762
|
+
pink: 16761035,
|
|
763
|
+
plum: 14524637,
|
|
764
|
+
powderblue: 11591910,
|
|
765
|
+
purple: 8388736,
|
|
766
|
+
rebeccapurple: 6697881,
|
|
767
|
+
red: 16711680,
|
|
768
|
+
rosybrown: 12357519,
|
|
769
|
+
royalblue: 4286945,
|
|
770
|
+
saddlebrown: 9127187,
|
|
771
|
+
salmon: 16416882,
|
|
772
|
+
sandybrown: 16032864,
|
|
773
|
+
seagreen: 3050327,
|
|
774
|
+
seashell: 16774638,
|
|
775
|
+
sienna: 10506797,
|
|
776
|
+
silver: 12632256,
|
|
777
|
+
skyblue: 8900331,
|
|
778
|
+
slateblue: 6970061,
|
|
779
|
+
slategray: 7372944,
|
|
780
|
+
slategrey: 7372944,
|
|
781
|
+
snow: 16775930,
|
|
782
|
+
springgreen: 65407,
|
|
783
|
+
steelblue: 4620980,
|
|
784
|
+
tan: 13808780,
|
|
785
|
+
teal: 32896,
|
|
786
|
+
thistle: 14204888,
|
|
787
|
+
tomato: 16737095,
|
|
788
|
+
turquoise: 4251856,
|
|
789
|
+
violet: 15631086,
|
|
790
|
+
wheat: 16113331,
|
|
791
|
+
white: 16777215,
|
|
792
|
+
whitesmoke: 16119285,
|
|
793
|
+
yellow: 16776960,
|
|
794
|
+
yellowgreen: 10145074
|
|
795
|
+
};
|
|
796
|
+
bt(U, V, {
|
|
797
|
+
copy(t) {
|
|
798
|
+
return Object.assign(new this.constructor(), this, t);
|
|
799
|
+
},
|
|
800
|
+
displayable() {
|
|
801
|
+
return this.rgb().displayable();
|
|
802
|
+
},
|
|
803
|
+
hex: Ct,
|
|
804
|
+
// Deprecated! Use color.formatHex.
|
|
805
|
+
formatHex: Ct,
|
|
806
|
+
formatHex8: or,
|
|
807
|
+
formatHsl: ar,
|
|
808
|
+
formatRgb: Tt,
|
|
809
|
+
toString: Tt
|
|
810
|
+
});
|
|
811
|
+
function Ct() {
|
|
812
|
+
return this.rgb().formatHex();
|
|
813
|
+
}
|
|
814
|
+
function or() {
|
|
815
|
+
return this.rgb().formatHex8();
|
|
816
|
+
}
|
|
817
|
+
function ar() {
|
|
818
|
+
return rn(this).formatHsl();
|
|
819
|
+
}
|
|
820
|
+
function Tt() {
|
|
821
|
+
return this.rgb().formatRgb();
|
|
822
|
+
}
|
|
823
|
+
function V(t) {
|
|
824
|
+
var n, e;
|
|
825
|
+
return t = (t + "").trim().toLowerCase(), (n = je.exec(t)) ? (e = n[1].length, n = parseInt(n[1], 16), e === 6 ? Rt(n) : e === 3 ? new g(n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, (n & 15) << 4 | n & 15, 1) : e === 8 ? G(n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, (n & 255) / 255) : e === 4 ? G(n >> 12 & 15 | n >> 8 & 240, n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, ((n & 15) << 4 | n & 15) / 255) : null) : (n = tr.exec(t)) ? new g(n[1], n[2], n[3], 1) : (n = nr.exec(t)) ? new g(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, 1) : (n = er.exec(t)) ? G(n[1], n[2], n[3], n[4]) : (n = rr.exec(t)) ? G(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, n[4]) : (n = ir.exec(t)) ? Ft(n[1], n[2] / 100, n[3] / 100, 1) : (n = sr.exec(t)) ? Ft(n[1], n[2] / 100, n[3] / 100, n[4]) : St.hasOwnProperty(t) ? Rt(St[t]) : t === "transparent" ? new g(NaN, NaN, NaN, 0) : null;
|
|
826
|
+
}
|
|
827
|
+
function Rt(t) {
|
|
828
|
+
return new g(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
|
|
829
|
+
}
|
|
830
|
+
function G(t, n, e, r) {
|
|
831
|
+
return r <= 0 && (t = n = e = NaN), new g(t, n, e, r);
|
|
832
|
+
}
|
|
833
|
+
function ur(t) {
|
|
834
|
+
return t instanceof U || (t = V(t)), t ? (t = t.rgb(), new g(t.r, t.g, t.b, t.opacity)) : new g();
|
|
835
|
+
}
|
|
836
|
+
function ht(t, n, e, r) {
|
|
837
|
+
return arguments.length === 1 ? ur(t) : new g(t, n, e, r ?? 1);
|
|
838
|
+
}
|
|
839
|
+
function g(t, n, e, r) {
|
|
840
|
+
this.r = +t, this.g = +n, this.b = +e, this.opacity = +r;
|
|
841
|
+
}
|
|
842
|
+
bt(g, ht, en(U, {
|
|
843
|
+
brighter(t) {
|
|
844
|
+
return t = t == null ? nt : Math.pow(nt, t), new g(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
845
|
+
},
|
|
846
|
+
darker(t) {
|
|
847
|
+
return t = t == null ? O : Math.pow(O, t), new g(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
848
|
+
},
|
|
849
|
+
rgb() {
|
|
850
|
+
return this;
|
|
851
|
+
},
|
|
852
|
+
clamp() {
|
|
853
|
+
return new g(C(this.r), C(this.g), C(this.b), et(this.opacity));
|
|
854
|
+
},
|
|
855
|
+
displayable() {
|
|
856
|
+
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
857
|
+
},
|
|
858
|
+
hex: It,
|
|
859
|
+
// Deprecated! Use color.formatHex.
|
|
860
|
+
formatHex: It,
|
|
861
|
+
formatHex8: fr,
|
|
862
|
+
formatRgb: qt,
|
|
863
|
+
toString: qt
|
|
864
|
+
}));
|
|
865
|
+
function It() {
|
|
866
|
+
return `#${S(this.r)}${S(this.g)}${S(this.b)}`;
|
|
867
|
+
}
|
|
868
|
+
function fr() {
|
|
869
|
+
return `#${S(this.r)}${S(this.g)}${S(this.b)}${S((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
870
|
+
}
|
|
871
|
+
function qt() {
|
|
872
|
+
const t = et(this.opacity);
|
|
873
|
+
return `${t === 1 ? "rgb(" : "rgba("}${C(this.r)}, ${C(this.g)}, ${C(this.b)}${t === 1 ? ")" : `, ${t})`}`;
|
|
874
|
+
}
|
|
875
|
+
function et(t) {
|
|
876
|
+
return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
|
|
877
|
+
}
|
|
878
|
+
function C(t) {
|
|
879
|
+
return Math.max(0, Math.min(255, Math.round(t) || 0));
|
|
880
|
+
}
|
|
881
|
+
function S(t) {
|
|
882
|
+
return t = C(t), (t < 16 ? "0" : "") + t.toString(16);
|
|
883
|
+
}
|
|
884
|
+
function Ft(t, n, e, r) {
|
|
885
|
+
return r <= 0 ? t = n = e = NaN : e <= 0 || e >= 1 ? t = n = NaN : n <= 0 && (t = NaN), new w(t, n, e, r);
|
|
886
|
+
}
|
|
887
|
+
function rn(t) {
|
|
888
|
+
if (t instanceof w) return new w(t.h, t.s, t.l, t.opacity);
|
|
889
|
+
if (t instanceof U || (t = V(t)), !t) return new w();
|
|
890
|
+
if (t instanceof w) return t;
|
|
891
|
+
t = t.rgb();
|
|
892
|
+
var n = t.r / 255, e = t.g / 255, r = t.b / 255, i = Math.min(n, e, r), s = Math.max(n, e, r), o = NaN, a = s - i, u = (s + i) / 2;
|
|
893
|
+
return a ? (n === s ? o = (e - r) / a + (e < r) * 6 : e === s ? o = (r - n) / a + 2 : o = (n - e) / a + 4, a /= u < 0.5 ? s + i : 2 - s - i, o *= 60) : a = u > 0 && u < 1 ? 0 : o, new w(o, a, u, t.opacity);
|
|
894
|
+
}
|
|
895
|
+
function lr(t, n, e, r) {
|
|
896
|
+
return arguments.length === 1 ? rn(t) : new w(t, n, e, r ?? 1);
|
|
897
|
+
}
|
|
898
|
+
function w(t, n, e, r) {
|
|
899
|
+
this.h = +t, this.s = +n, this.l = +e, this.opacity = +r;
|
|
900
|
+
}
|
|
901
|
+
bt(w, lr, en(U, {
|
|
902
|
+
brighter(t) {
|
|
903
|
+
return t = t == null ? nt : Math.pow(nt, t), new w(this.h, this.s, this.l * t, this.opacity);
|
|
904
|
+
},
|
|
905
|
+
darker(t) {
|
|
906
|
+
return t = t == null ? O : Math.pow(O, t), new w(this.h, this.s, this.l * t, this.opacity);
|
|
907
|
+
},
|
|
908
|
+
rgb() {
|
|
909
|
+
var t = this.h % 360 + (this.h < 0) * 360, n = isNaN(t) || isNaN(this.s) ? 0 : this.s, e = this.l, r = e + (e < 0.5 ? e : 1 - e) * n, i = 2 * e - r;
|
|
910
|
+
return new g(
|
|
911
|
+
ft(t >= 240 ? t - 240 : t + 120, i, r),
|
|
912
|
+
ft(t, i, r),
|
|
913
|
+
ft(t < 120 ? t + 240 : t - 120, i, r),
|
|
914
|
+
this.opacity
|
|
915
|
+
);
|
|
916
|
+
},
|
|
917
|
+
clamp() {
|
|
918
|
+
return new w(Ht(this.h), Z(this.s), Z(this.l), et(this.opacity));
|
|
919
|
+
},
|
|
920
|
+
displayable() {
|
|
921
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
922
|
+
},
|
|
923
|
+
formatHsl() {
|
|
924
|
+
const t = et(this.opacity);
|
|
925
|
+
return `${t === 1 ? "hsl(" : "hsla("}${Ht(this.h)}, ${Z(this.s) * 100}%, ${Z(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
|
|
926
|
+
}
|
|
927
|
+
}));
|
|
928
|
+
function Ht(t) {
|
|
929
|
+
return t = (t || 0) % 360, t < 0 ? t + 360 : t;
|
|
930
|
+
}
|
|
931
|
+
function Z(t) {
|
|
932
|
+
return Math.max(0, Math.min(1, t || 0));
|
|
933
|
+
}
|
|
934
|
+
function ft(t, n, e) {
|
|
935
|
+
return (t < 60 ? n + (e - n) * t / 60 : t < 180 ? e : t < 240 ? n + (e - n) * (240 - t) / 60 : n) * 255;
|
|
936
|
+
}
|
|
937
|
+
const $t = (t) => () => t;
|
|
938
|
+
function sn(t, n) {
|
|
939
|
+
return function(e) {
|
|
940
|
+
return t + e * n;
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
function cr(t, n, e) {
|
|
944
|
+
return t = Math.pow(t, e), n = Math.pow(n, e) - t, e = 1 / e, function(r) {
|
|
945
|
+
return Math.pow(t + r * n, e);
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
function Xi(t, n) {
|
|
949
|
+
var e = n - t;
|
|
950
|
+
return e ? sn(t, e > 180 || e < -180 ? e - 360 * Math.round(e / 360) : e) : $t(isNaN(t) ? n : t);
|
|
951
|
+
}
|
|
952
|
+
function hr(t) {
|
|
953
|
+
return (t = +t) == 1 ? on : function(n, e) {
|
|
954
|
+
return e - n ? cr(n, e, t) : $t(isNaN(n) ? e : n);
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
function on(t, n) {
|
|
958
|
+
var e = n - t;
|
|
959
|
+
return e ? sn(t, e) : $t(isNaN(t) ? n : t);
|
|
960
|
+
}
|
|
961
|
+
const Pt = function t(n) {
|
|
962
|
+
var e = hr(n);
|
|
963
|
+
function r(i, s) {
|
|
964
|
+
var o = e((i = ht(i)).r, (s = ht(s)).r), a = e(i.g, s.g), u = e(i.b, s.b), f = on(i.opacity, s.opacity);
|
|
965
|
+
return function(l) {
|
|
966
|
+
return i.r = o(l), i.g = a(l), i.b = u(l), i.opacity = f(l), i + "";
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
return r.gamma = t, r;
|
|
970
|
+
}(1);
|
|
971
|
+
function k(t, n) {
|
|
972
|
+
return t = +t, n = +n, function(e) {
|
|
973
|
+
return t * (1 - e) + n * e;
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
var _t = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, lt = new RegExp(_t.source, "g");
|
|
977
|
+
function _r(t) {
|
|
978
|
+
return function() {
|
|
979
|
+
return t;
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
function pr(t) {
|
|
983
|
+
return function(n) {
|
|
984
|
+
return t(n) + "";
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
function dr(t, n) {
|
|
988
|
+
var e = _t.lastIndex = lt.lastIndex = 0, r, i, s, o = -1, a = [], u = [];
|
|
989
|
+
for (t = t + "", n = n + ""; (r = _t.exec(t)) && (i = lt.exec(n)); )
|
|
990
|
+
(s = i.index) > e && (s = n.slice(e, s), a[o] ? a[o] += s : a[++o] = s), (r = r[0]) === (i = i[0]) ? a[o] ? a[o] += i : a[++o] = i : (a[++o] = null, u.push({ i: o, x: k(r, i) })), e = lt.lastIndex;
|
|
991
|
+
return e < n.length && (s = n.slice(e), a[o] ? a[o] += s : a[++o] = s), a.length < 2 ? u[0] ? pr(u[0].x) : _r(n) : (n = u.length, function(f) {
|
|
992
|
+
for (var l = 0, c; l < n; ++l) a[(c = u[l]).i] = c.x(f);
|
|
993
|
+
return a.join("");
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
var Xt = 180 / Math.PI, pt = {
|
|
997
|
+
translateX: 0,
|
|
998
|
+
translateY: 0,
|
|
999
|
+
rotate: 0,
|
|
1000
|
+
skewX: 0,
|
|
1001
|
+
scaleX: 1,
|
|
1002
|
+
scaleY: 1
|
|
1003
|
+
};
|
|
1004
|
+
function an(t, n, e, r, i, s) {
|
|
1005
|
+
var o, a, u;
|
|
1006
|
+
return (o = Math.sqrt(t * t + n * n)) && (t /= o, n /= o), (u = t * e + n * r) && (e -= t * u, r -= n * u), (a = Math.sqrt(e * e + r * r)) && (e /= a, r /= a, u /= a), t * r < n * e && (t = -t, n = -n, u = -u, o = -o), {
|
|
1007
|
+
translateX: i,
|
|
1008
|
+
translateY: s,
|
|
1009
|
+
rotate: Math.atan2(n, t) * Xt,
|
|
1010
|
+
skewX: Math.atan(u) * Xt,
|
|
1011
|
+
scaleX: o,
|
|
1012
|
+
scaleY: a
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
var Q;
|
|
1016
|
+
function gr(t) {
|
|
1017
|
+
const n = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
|
|
1018
|
+
return n.isIdentity ? pt : an(n.a, n.b, n.c, n.d, n.e, n.f);
|
|
1019
|
+
}
|
|
1020
|
+
function yr(t) {
|
|
1021
|
+
return t == null || (Q || (Q = document.createElementNS("http://www.w3.org/2000/svg", "g")), Q.setAttribute("transform", t), !(t = Q.transform.baseVal.consolidate())) ? pt : (t = t.matrix, an(t.a, t.b, t.c, t.d, t.e, t.f));
|
|
1022
|
+
}
|
|
1023
|
+
function un(t, n, e, r) {
|
|
1024
|
+
function i(f) {
|
|
1025
|
+
return f.length ? f.pop() + " " : "";
|
|
1026
|
+
}
|
|
1027
|
+
function s(f, l, c, h, _, p) {
|
|
1028
|
+
if (f !== c || l !== h) {
|
|
1029
|
+
var d = _.push("translate(", null, n, null, e);
|
|
1030
|
+
p.push({ i: d - 4, x: k(f, c) }, { i: d - 2, x: k(l, h) });
|
|
1031
|
+
} else (c || h) && _.push("translate(" + c + n + h + e);
|
|
1032
|
+
}
|
|
1033
|
+
function o(f, l, c, h) {
|
|
1034
|
+
f !== l ? (f - l > 180 ? l += 360 : l - f > 180 && (f += 360), h.push({ i: c.push(i(c) + "rotate(", null, r) - 2, x: k(f, l) })) : l && c.push(i(c) + "rotate(" + l + r);
|
|
1035
|
+
}
|
|
1036
|
+
function a(f, l, c, h) {
|
|
1037
|
+
f !== l ? h.push({ i: c.push(i(c) + "skewX(", null, r) - 2, x: k(f, l) }) : l && c.push(i(c) + "skewX(" + l + r);
|
|
1038
|
+
}
|
|
1039
|
+
function u(f, l, c, h, _, p) {
|
|
1040
|
+
if (f !== c || l !== h) {
|
|
1041
|
+
var d = _.push(i(_) + "scale(", null, ",", null, ")");
|
|
1042
|
+
p.push({ i: d - 4, x: k(f, c) }, { i: d - 2, x: k(l, h) });
|
|
1043
|
+
} else (c !== 1 || h !== 1) && _.push(i(_) + "scale(" + c + "," + h + ")");
|
|
1044
|
+
}
|
|
1045
|
+
return function(f, l) {
|
|
1046
|
+
var c = [], h = [];
|
|
1047
|
+
return f = t(f), l = t(l), s(f.translateX, f.translateY, l.translateX, l.translateY, c, h), o(f.rotate, l.rotate, c, h), a(f.skewX, l.skewX, c, h), u(f.scaleX, f.scaleY, l.scaleX, l.scaleY, c, h), f = l = null, function(_) {
|
|
1048
|
+
for (var p = -1, d = h.length, b; ++p < d; ) c[(b = h[p]).i] = b.x(_);
|
|
1049
|
+
return c.join("");
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
var wr = un(gr, "px, ", "px)", "deg)"), xr = un(yr, ", ", ")", ")"), H = 0, L = 0, X = 0, fn = 1e3, rt, D, it = 0, T = 0, at = 0, Y = typeof performance == "object" && performance.now ? performance : Date, ln = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
|
|
1054
|
+
setTimeout(t, 17);
|
|
1055
|
+
};
|
|
1056
|
+
function Nt() {
|
|
1057
|
+
return T || (ln(vr), T = Y.now() + at);
|
|
1058
|
+
}
|
|
1059
|
+
function vr() {
|
|
1060
|
+
T = 0;
|
|
1061
|
+
}
|
|
1062
|
+
function st() {
|
|
1063
|
+
this._call = this._time = this._next = null;
|
|
1064
|
+
}
|
|
1065
|
+
st.prototype = cn.prototype = {
|
|
1066
|
+
constructor: st,
|
|
1067
|
+
restart: function(t, n, e) {
|
|
1068
|
+
if (typeof t != "function") throw new TypeError("callback is not a function");
|
|
1069
|
+
e = (e == null ? Nt() : +e) + (n == null ? 0 : +n), !this._next && D !== this && (D ? D._next = this : rt = this, D = this), this._call = t, this._time = e, dt();
|
|
1070
|
+
},
|
|
1071
|
+
stop: function() {
|
|
1072
|
+
this._call && (this._call = null, this._time = 1 / 0, dt());
|
|
1073
|
+
}
|
|
1074
|
+
};
|
|
1075
|
+
function cn(t, n, e) {
|
|
1076
|
+
var r = new st();
|
|
1077
|
+
return r.restart(t, n, e), r;
|
|
1078
|
+
}
|
|
1079
|
+
function mr() {
|
|
1080
|
+
Nt(), ++H;
|
|
1081
|
+
for (var t = rt, n; t; )
|
|
1082
|
+
(n = T - t._time) >= 0 && t._call.call(void 0, n), t = t._next;
|
|
1083
|
+
--H;
|
|
1084
|
+
}
|
|
1085
|
+
function Lt() {
|
|
1086
|
+
T = (it = Y.now()) + at, H = L = 0;
|
|
1087
|
+
try {
|
|
1088
|
+
mr();
|
|
1089
|
+
} finally {
|
|
1090
|
+
H = 0, $r(), T = 0;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
function br() {
|
|
1094
|
+
var t = Y.now(), n = t - it;
|
|
1095
|
+
n > fn && (at -= n, it = t);
|
|
1096
|
+
}
|
|
1097
|
+
function $r() {
|
|
1098
|
+
for (var t, n = rt, e, r = 1 / 0; n; )
|
|
1099
|
+
n._call ? (r > n._time && (r = n._time), t = n, n = n._next) : (e = n._next, n._next = null, n = t ? t._next = e : rt = e);
|
|
1100
|
+
D = t, dt(r);
|
|
1101
|
+
}
|
|
1102
|
+
function dt(t) {
|
|
1103
|
+
if (!H) {
|
|
1104
|
+
L && (L = clearTimeout(L));
|
|
1105
|
+
var n = t - T;
|
|
1106
|
+
n > 24 ? (t < 1 / 0 && (L = setTimeout(Lt, t - Y.now() - at)), X && (X = clearInterval(X))) : (X || (it = Y.now(), X = setInterval(br, fn)), H = 1, ln(Lt));
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
function Dt(t, n, e) {
|
|
1110
|
+
var r = new st();
|
|
1111
|
+
return n = n == null ? 0 : +n, r.restart((i) => {
|
|
1112
|
+
r.stop(), t(i + n);
|
|
1113
|
+
}, n, e), r;
|
|
1114
|
+
}
|
|
1115
|
+
var Nr = Vt("start", "end", "cancel", "interrupt"), Ar = [], hn = 0, Ot = 1, gt = 2, J = 3, zt = 4, yt = 5, j = 6;
|
|
1116
|
+
function ut(t, n, e, r, i, s) {
|
|
1117
|
+
var o = t.__transition;
|
|
1118
|
+
if (!o) t.__transition = {};
|
|
1119
|
+
else if (e in o) return;
|
|
1120
|
+
kr(t, e, {
|
|
1121
|
+
name: n,
|
|
1122
|
+
index: r,
|
|
1123
|
+
// For context during callback.
|
|
1124
|
+
group: i,
|
|
1125
|
+
// For context during callback.
|
|
1126
|
+
on: Nr,
|
|
1127
|
+
tween: Ar,
|
|
1128
|
+
time: s.time,
|
|
1129
|
+
delay: s.delay,
|
|
1130
|
+
duration: s.duration,
|
|
1131
|
+
ease: s.ease,
|
|
1132
|
+
timer: null,
|
|
1133
|
+
state: hn
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
function At(t, n) {
|
|
1137
|
+
var e = x(t, n);
|
|
1138
|
+
if (e.state > hn) throw new Error("too late; already scheduled");
|
|
1139
|
+
return e;
|
|
1140
|
+
}
|
|
1141
|
+
function m(t, n) {
|
|
1142
|
+
var e = x(t, n);
|
|
1143
|
+
if (e.state > J) throw new Error("too late; already running");
|
|
1144
|
+
return e;
|
|
1145
|
+
}
|
|
1146
|
+
function x(t, n) {
|
|
1147
|
+
var e = t.__transition;
|
|
1148
|
+
if (!e || !(e = e[n])) throw new Error("transition not found");
|
|
1149
|
+
return e;
|
|
1150
|
+
}
|
|
1151
|
+
function kr(t, n, e) {
|
|
1152
|
+
var r = t.__transition, i;
|
|
1153
|
+
r[n] = e, e.timer = cn(s, 0, e.time);
|
|
1154
|
+
function s(f) {
|
|
1155
|
+
e.state = Ot, e.timer.restart(o, e.delay, e.time), e.delay <= f && o(f - e.delay);
|
|
1156
|
+
}
|
|
1157
|
+
function o(f) {
|
|
1158
|
+
var l, c, h, _;
|
|
1159
|
+
if (e.state !== Ot) return u();
|
|
1160
|
+
for (l in r)
|
|
1161
|
+
if (_ = r[l], _.name === e.name) {
|
|
1162
|
+
if (_.state === J) return Dt(o);
|
|
1163
|
+
_.state === zt ? (_.state = j, _.timer.stop(), _.on.call("interrupt", t, t.__data__, _.index, _.group), delete r[l]) : +l < n && (_.state = j, _.timer.stop(), _.on.call("cancel", t, t.__data__, _.index, _.group), delete r[l]);
|
|
1164
|
+
}
|
|
1165
|
+
if (Dt(function() {
|
|
1166
|
+
e.state === J && (e.state = zt, e.timer.restart(a, e.delay, e.time), a(f));
|
|
1167
|
+
}), e.state = gt, e.on.call("start", t, t.__data__, e.index, e.group), e.state === gt) {
|
|
1168
|
+
for (e.state = J, i = new Array(h = e.tween.length), l = 0, c = -1; l < h; ++l)
|
|
1169
|
+
(_ = e.tween[l].value.call(t, t.__data__, e.index, e.group)) && (i[++c] = _);
|
|
1170
|
+
i.length = c + 1;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
function a(f) {
|
|
1174
|
+
for (var l = f < e.duration ? e.ease.call(null, f / e.duration) : (e.timer.restart(u), e.state = yt, 1), c = -1, h = i.length; ++c < h; )
|
|
1175
|
+
i[c].call(t, l);
|
|
1176
|
+
e.state === yt && (e.on.call("end", t, t.__data__, e.index, e.group), u());
|
|
1177
|
+
}
|
|
1178
|
+
function u() {
|
|
1179
|
+
e.state = j, e.timer.stop(), delete r[n];
|
|
1180
|
+
for (var f in r) return;
|
|
1181
|
+
delete t.__transition;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
function Er(t, n) {
|
|
1185
|
+
var e = t.__transition, r, i, s = !0, o;
|
|
1186
|
+
if (e) {
|
|
1187
|
+
n = n == null ? null : n + "";
|
|
1188
|
+
for (o in e) {
|
|
1189
|
+
if ((r = e[o]).name !== n) {
|
|
1190
|
+
s = !1;
|
|
1191
|
+
continue;
|
|
1192
|
+
}
|
|
1193
|
+
i = r.state > gt && r.state < yt, r.state = j, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete e[o];
|
|
1194
|
+
}
|
|
1195
|
+
s && delete t.__transition;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
function Mr(t) {
|
|
1199
|
+
return this.each(function() {
|
|
1200
|
+
Er(this, t);
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
function Sr(t, n) {
|
|
1204
|
+
var e, r;
|
|
1205
|
+
return function() {
|
|
1206
|
+
var i = m(this, t), s = i.tween;
|
|
1207
|
+
if (s !== e) {
|
|
1208
|
+
r = e = s;
|
|
1209
|
+
for (var o = 0, a = r.length; o < a; ++o)
|
|
1210
|
+
if (r[o].name === n) {
|
|
1211
|
+
r = r.slice(), r.splice(o, 1);
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
i.tween = r;
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
function Cr(t, n, e) {
|
|
1219
|
+
var r, i;
|
|
1220
|
+
if (typeof e != "function") throw new Error();
|
|
1221
|
+
return function() {
|
|
1222
|
+
var s = m(this, t), o = s.tween;
|
|
1223
|
+
if (o !== r) {
|
|
1224
|
+
i = (r = o).slice();
|
|
1225
|
+
for (var a = { name: n, value: e }, u = 0, f = i.length; u < f; ++u)
|
|
1226
|
+
if (i[u].name === n) {
|
|
1227
|
+
i[u] = a;
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
u === f && i.push(a);
|
|
1231
|
+
}
|
|
1232
|
+
s.tween = i;
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
function Tr(t, n) {
|
|
1236
|
+
var e = this._id;
|
|
1237
|
+
if (t += "", arguments.length < 2) {
|
|
1238
|
+
for (var r = x(this.node(), e).tween, i = 0, s = r.length, o; i < s; ++i)
|
|
1239
|
+
if ((o = r[i]).name === t)
|
|
1240
|
+
return o.value;
|
|
1241
|
+
return null;
|
|
1242
|
+
}
|
|
1243
|
+
return this.each((n == null ? Sr : Cr)(e, t, n));
|
|
1244
|
+
}
|
|
1245
|
+
function kt(t, n, e) {
|
|
1246
|
+
var r = t._id;
|
|
1247
|
+
return t.each(function() {
|
|
1248
|
+
var i = m(this, r);
|
|
1249
|
+
(i.value || (i.value = {}))[n] = e.apply(this, arguments);
|
|
1250
|
+
}), function(i) {
|
|
1251
|
+
return x(i, r).value[n];
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
function _n(t, n) {
|
|
1255
|
+
var e;
|
|
1256
|
+
return (typeof n == "number" ? k : n instanceof V ? Pt : (e = V(n)) ? (n = e, Pt) : dr)(t, n);
|
|
1257
|
+
}
|
|
1258
|
+
function Rr(t) {
|
|
1259
|
+
return function() {
|
|
1260
|
+
this.removeAttribute(t);
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
function Ir(t) {
|
|
1264
|
+
return function() {
|
|
1265
|
+
this.removeAttributeNS(t.space, t.local);
|
|
1266
|
+
};
|
|
1267
|
+
}
|
|
1268
|
+
function qr(t, n, e) {
|
|
1269
|
+
var r, i = e + "", s;
|
|
1270
|
+
return function() {
|
|
1271
|
+
var o = this.getAttribute(t);
|
|
1272
|
+
return o === i ? null : o === r ? s : s = n(r = o, e);
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
function Fr(t, n, e) {
|
|
1276
|
+
var r, i = e + "", s;
|
|
1277
|
+
return function() {
|
|
1278
|
+
var o = this.getAttributeNS(t.space, t.local);
|
|
1279
|
+
return o === i ? null : o === r ? s : s = n(r = o, e);
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
function Hr(t, n, e) {
|
|
1283
|
+
var r, i, s;
|
|
1284
|
+
return function() {
|
|
1285
|
+
var o, a = e(this), u;
|
|
1286
|
+
return a == null ? void this.removeAttribute(t) : (o = this.getAttribute(t), u = a + "", o === u ? null : o === r && u === i ? s : (i = u, s = n(r = o, a)));
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
function Pr(t, n, e) {
|
|
1290
|
+
var r, i, s;
|
|
1291
|
+
return function() {
|
|
1292
|
+
var o, a = e(this), u;
|
|
1293
|
+
return a == null ? void this.removeAttributeNS(t.space, t.local) : (o = this.getAttributeNS(t.space, t.local), u = a + "", o === u ? null : o === r && u === i ? s : (i = u, s = n(r = o, a)));
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
function Xr(t, n) {
|
|
1297
|
+
var e = ot(t), r = e === "transform" ? xr : _n;
|
|
1298
|
+
return this.attrTween(t, typeof n == "function" ? (e.local ? Pr : Hr)(e, r, kt(this, "attr." + t, n)) : n == null ? (e.local ? Ir : Rr)(e) : (e.local ? Fr : qr)(e, r, n));
|
|
1299
|
+
}
|
|
1300
|
+
function Lr(t, n) {
|
|
1301
|
+
return function(e) {
|
|
1302
|
+
this.setAttribute(t, n.call(this, e));
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
function Dr(t, n) {
|
|
1306
|
+
return function(e) {
|
|
1307
|
+
this.setAttributeNS(t.space, t.local, n.call(this, e));
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
function Or(t, n) {
|
|
1311
|
+
var e, r;
|
|
1312
|
+
function i() {
|
|
1313
|
+
var s = n.apply(this, arguments);
|
|
1314
|
+
return s !== r && (e = (r = s) && Dr(t, s)), e;
|
|
1315
|
+
}
|
|
1316
|
+
return i._value = n, i;
|
|
1317
|
+
}
|
|
1318
|
+
function zr(t, n) {
|
|
1319
|
+
var e, r;
|
|
1320
|
+
function i() {
|
|
1321
|
+
var s = n.apply(this, arguments);
|
|
1322
|
+
return s !== r && (e = (r = s) && Lr(t, s)), e;
|
|
1323
|
+
}
|
|
1324
|
+
return i._value = n, i;
|
|
1325
|
+
}
|
|
1326
|
+
function Vr(t, n) {
|
|
1327
|
+
var e = "attr." + t;
|
|
1328
|
+
if (arguments.length < 2) return (e = this.tween(e)) && e._value;
|
|
1329
|
+
if (n == null) return this.tween(e, null);
|
|
1330
|
+
if (typeof n != "function") throw new Error();
|
|
1331
|
+
var r = ot(t);
|
|
1332
|
+
return this.tween(e, (r.local ? Or : zr)(r, n));
|
|
1333
|
+
}
|
|
1334
|
+
function Yr(t, n) {
|
|
1335
|
+
return function() {
|
|
1336
|
+
At(this, t).delay = +n.apply(this, arguments);
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
function Br(t, n) {
|
|
1340
|
+
return n = +n, function() {
|
|
1341
|
+
At(this, t).delay = n;
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
function Ur(t) {
|
|
1345
|
+
var n = this._id;
|
|
1346
|
+
return arguments.length ? this.each((typeof t == "function" ? Yr : Br)(n, t)) : x(this.node(), n).delay;
|
|
1347
|
+
}
|
|
1348
|
+
function Kr(t, n) {
|
|
1349
|
+
return function() {
|
|
1350
|
+
m(this, t).duration = +n.apply(this, arguments);
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
function Gr(t, n) {
|
|
1354
|
+
return n = +n, function() {
|
|
1355
|
+
m(this, t).duration = n;
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
function Zr(t) {
|
|
1359
|
+
var n = this._id;
|
|
1360
|
+
return arguments.length ? this.each((typeof t == "function" ? Kr : Gr)(n, t)) : x(this.node(), n).duration;
|
|
1361
|
+
}
|
|
1362
|
+
function Qr(t, n) {
|
|
1363
|
+
if (typeof n != "function") throw new Error();
|
|
1364
|
+
return function() {
|
|
1365
|
+
m(this, t).ease = n;
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1368
|
+
function Wr(t) {
|
|
1369
|
+
var n = this._id;
|
|
1370
|
+
return arguments.length ? this.each(Qr(n, t)) : x(this.node(), n).ease;
|
|
1371
|
+
}
|
|
1372
|
+
function Jr(t, n) {
|
|
1373
|
+
return function() {
|
|
1374
|
+
var e = n.apply(this, arguments);
|
|
1375
|
+
if (typeof e != "function") throw new Error();
|
|
1376
|
+
m(this, t).ease = e;
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
function jr(t) {
|
|
1380
|
+
if (typeof t != "function") throw new Error();
|
|
1381
|
+
return this.each(Jr(this._id, t));
|
|
1382
|
+
}
|
|
1383
|
+
function ti(t) {
|
|
1384
|
+
typeof t != "function" && (t = Ut(t));
|
|
1385
|
+
for (var n = this._groups, e = n.length, r = new Array(e), i = 0; i < e; ++i)
|
|
1386
|
+
for (var s = n[i], o = s.length, a = r[i] = [], u, f = 0; f < o; ++f)
|
|
1387
|
+
(u = s[f]) && t.call(u, u.__data__, f, s) && a.push(u);
|
|
1388
|
+
return new N(r, this._parents, this._name, this._id);
|
|
1389
|
+
}
|
|
1390
|
+
function ni(t) {
|
|
1391
|
+
if (t._id !== this._id) throw new Error();
|
|
1392
|
+
for (var n = this._groups, e = t._groups, r = n.length, i = e.length, s = Math.min(r, i), o = new Array(r), a = 0; a < s; ++a)
|
|
1393
|
+
for (var u = n[a], f = e[a], l = u.length, c = o[a] = new Array(l), h, _ = 0; _ < l; ++_)
|
|
1394
|
+
(h = u[_] || f[_]) && (c[_] = h);
|
|
1395
|
+
for (; a < r; ++a)
|
|
1396
|
+
o[a] = n[a];
|
|
1397
|
+
return new N(o, this._parents, this._name, this._id);
|
|
1398
|
+
}
|
|
1399
|
+
function ei(t) {
|
|
1400
|
+
return (t + "").trim().split(/^|\s+/).every(function(n) {
|
|
1401
|
+
var e = n.indexOf(".");
|
|
1402
|
+
return e >= 0 && (n = n.slice(0, e)), !n || n === "start";
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
function ri(t, n, e) {
|
|
1406
|
+
var r, i, s = ei(n) ? At : m;
|
|
1407
|
+
return function() {
|
|
1408
|
+
var o = s(this, t), a = o.on;
|
|
1409
|
+
a !== r && (i = (r = a).copy()).on(n, e), o.on = i;
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
function ii(t, n) {
|
|
1413
|
+
var e = this._id;
|
|
1414
|
+
return arguments.length < 2 ? x(this.node(), e).on.on(t) : this.each(ri(e, t, n));
|
|
1415
|
+
}
|
|
1416
|
+
function si(t) {
|
|
1417
|
+
return function() {
|
|
1418
|
+
var n = this.parentNode;
|
|
1419
|
+
for (var e in this.__transition) if (+e !== t) return;
|
|
1420
|
+
n && n.removeChild(this);
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
function oi() {
|
|
1424
|
+
return this.on("end.remove", si(this._id));
|
|
1425
|
+
}
|
|
1426
|
+
function ai(t) {
|
|
1427
|
+
var n = this._name, e = this._id;
|
|
1428
|
+
typeof t != "function" && (t = vt(t));
|
|
1429
|
+
for (var r = this._groups, i = r.length, s = new Array(i), o = 0; o < i; ++o)
|
|
1430
|
+
for (var a = r[o], u = a.length, f = s[o] = new Array(u), l, c, h = 0; h < u; ++h)
|
|
1431
|
+
(l = a[h]) && (c = t.call(l, l.__data__, h, a)) && ("__data__" in l && (c.__data__ = l.__data__), f[h] = c, ut(f[h], n, e, h, f, x(l, e)));
|
|
1432
|
+
return new N(s, this._parents, n, e);
|
|
1433
|
+
}
|
|
1434
|
+
function ui(t) {
|
|
1435
|
+
var n = this._name, e = this._id;
|
|
1436
|
+
typeof t != "function" && (t = Bt(t));
|
|
1437
|
+
for (var r = this._groups, i = r.length, s = [], o = [], a = 0; a < i; ++a)
|
|
1438
|
+
for (var u = r[a], f = u.length, l, c = 0; c < f; ++c)
|
|
1439
|
+
if (l = u[c]) {
|
|
1440
|
+
for (var h = t.call(l, l.__data__, c, u), _, p = x(l, e), d = 0, b = h.length; d < b; ++d)
|
|
1441
|
+
(_ = h[d]) && ut(_, n, e, d, h, p);
|
|
1442
|
+
s.push(h), o.push(l);
|
|
1443
|
+
}
|
|
1444
|
+
return new N(s, o, n, e);
|
|
1445
|
+
}
|
|
1446
|
+
var fi = B.prototype.constructor;
|
|
1447
|
+
function li() {
|
|
1448
|
+
return new fi(this._groups, this._parents);
|
|
1449
|
+
}
|
|
1450
|
+
function ci(t, n) {
|
|
1451
|
+
var e, r, i;
|
|
1452
|
+
return function() {
|
|
1453
|
+
var s = F(this, t), o = (this.style.removeProperty(t), F(this, t));
|
|
1454
|
+
return s === o ? null : s === e && o === r ? i : i = n(e = s, r = o);
|
|
1455
|
+
};
|
|
1456
|
+
}
|
|
1457
|
+
function pn(t) {
|
|
1458
|
+
return function() {
|
|
1459
|
+
this.style.removeProperty(t);
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
function hi(t, n, e) {
|
|
1463
|
+
var r, i = e + "", s;
|
|
1464
|
+
return function() {
|
|
1465
|
+
var o = F(this, t);
|
|
1466
|
+
return o === i ? null : o === r ? s : s = n(r = o, e);
|
|
1467
|
+
};
|
|
1468
|
+
}
|
|
1469
|
+
function _i(t, n, e) {
|
|
1470
|
+
var r, i, s;
|
|
1471
|
+
return function() {
|
|
1472
|
+
var o = F(this, t), a = e(this), u = a + "";
|
|
1473
|
+
return a == null && (u = a = (this.style.removeProperty(t), F(this, t))), o === u ? null : o === r && u === i ? s : (i = u, s = n(r = o, a));
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
function pi(t, n) {
|
|
1477
|
+
var e, r, i, s = "style." + n, o = "end." + s, a;
|
|
1478
|
+
return function() {
|
|
1479
|
+
var u = m(this, t), f = u.on, l = u.value[s] == null ? a || (a = pn(n)) : void 0;
|
|
1480
|
+
(f !== e || i !== l) && (r = (e = f).copy()).on(o, i = l), u.on = r;
|
|
1481
|
+
};
|
|
1482
|
+
}
|
|
1483
|
+
function di(t, n, e) {
|
|
1484
|
+
var r = (t += "") == "transform" ? wr : _n;
|
|
1485
|
+
return n == null ? this.styleTween(t, ci(t, r)).on("end.style." + t, pn(t)) : typeof n == "function" ? this.styleTween(t, _i(t, r, kt(this, "style." + t, n))).each(pi(this._id, t)) : this.styleTween(t, hi(t, r, n), e).on("end.style." + t, null);
|
|
1486
|
+
}
|
|
1487
|
+
function gi(t, n, e) {
|
|
1488
|
+
return function(r) {
|
|
1489
|
+
this.style.setProperty(t, n.call(this, r), e);
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
function yi(t, n, e) {
|
|
1493
|
+
var r, i;
|
|
1494
|
+
function s() {
|
|
1495
|
+
var o = n.apply(this, arguments);
|
|
1496
|
+
return o !== i && (r = (i = o) && gi(t, o, e)), r;
|
|
1497
|
+
}
|
|
1498
|
+
return s._value = n, s;
|
|
1499
|
+
}
|
|
1500
|
+
function wi(t, n, e) {
|
|
1501
|
+
var r = "style." + (t += "");
|
|
1502
|
+
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
1503
|
+
if (n == null) return this.tween(r, null);
|
|
1504
|
+
if (typeof n != "function") throw new Error();
|
|
1505
|
+
return this.tween(r, yi(t, n, e ?? ""));
|
|
1506
|
+
}
|
|
1507
|
+
function xi(t) {
|
|
1508
|
+
return function() {
|
|
1509
|
+
this.textContent = t;
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
function vi(t) {
|
|
1513
|
+
return function() {
|
|
1514
|
+
var n = t(this);
|
|
1515
|
+
this.textContent = n ?? "";
|
|
1516
|
+
};
|
|
1517
|
+
}
|
|
1518
|
+
function mi(t) {
|
|
1519
|
+
return this.tween("text", typeof t == "function" ? vi(kt(this, "text", t)) : xi(t == null ? "" : t + ""));
|
|
1520
|
+
}
|
|
1521
|
+
function bi(t) {
|
|
1522
|
+
return function(n) {
|
|
1523
|
+
this.textContent = t.call(this, n);
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
function $i(t) {
|
|
1527
|
+
var n, e;
|
|
1528
|
+
function r() {
|
|
1529
|
+
var i = t.apply(this, arguments);
|
|
1530
|
+
return i !== e && (n = (e = i) && bi(i)), n;
|
|
1531
|
+
}
|
|
1532
|
+
return r._value = t, r;
|
|
1533
|
+
}
|
|
1534
|
+
function Ni(t) {
|
|
1535
|
+
var n = "text";
|
|
1536
|
+
if (arguments.length < 1) return (n = this.tween(n)) && n._value;
|
|
1537
|
+
if (t == null) return this.tween(n, null);
|
|
1538
|
+
if (typeof t != "function") throw new Error();
|
|
1539
|
+
return this.tween(n, $i(t));
|
|
1540
|
+
}
|
|
1541
|
+
function Ai() {
|
|
1542
|
+
for (var t = this._name, n = this._id, e = dn(), r = this._groups, i = r.length, s = 0; s < i; ++s)
|
|
1543
|
+
for (var o = r[s], a = o.length, u, f = 0; f < a; ++f)
|
|
1544
|
+
if (u = o[f]) {
|
|
1545
|
+
var l = x(u, n);
|
|
1546
|
+
ut(u, t, e, f, o, {
|
|
1547
|
+
time: l.time + l.delay + l.duration,
|
|
1548
|
+
delay: 0,
|
|
1549
|
+
duration: l.duration,
|
|
1550
|
+
ease: l.ease
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
return new N(r, this._parents, t, e);
|
|
1554
|
+
}
|
|
1555
|
+
function ki() {
|
|
1556
|
+
var t, n, e = this, r = e._id, i = e.size();
|
|
1557
|
+
return new Promise(function(s, o) {
|
|
1558
|
+
var a = { value: o }, u = { value: function() {
|
|
1559
|
+
--i === 0 && s();
|
|
1560
|
+
} };
|
|
1561
|
+
e.each(function() {
|
|
1562
|
+
var f = m(this, r), l = f.on;
|
|
1563
|
+
l !== t && (n = (t = l).copy(), n._.cancel.push(a), n._.interrupt.push(a), n._.end.push(u)), f.on = n;
|
|
1564
|
+
}), i === 0 && s();
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
var Ei = 0;
|
|
1568
|
+
function N(t, n, e, r) {
|
|
1569
|
+
this._groups = t, this._parents = n, this._name = e, this._id = r;
|
|
1570
|
+
}
|
|
1571
|
+
function dn() {
|
|
1572
|
+
return ++Ei;
|
|
1573
|
+
}
|
|
1574
|
+
var $ = B.prototype;
|
|
1575
|
+
N.prototype = {
|
|
1576
|
+
constructor: N,
|
|
1577
|
+
select: ai,
|
|
1578
|
+
selectAll: ui,
|
|
1579
|
+
selectChild: $.selectChild,
|
|
1580
|
+
selectChildren: $.selectChildren,
|
|
1581
|
+
filter: ti,
|
|
1582
|
+
merge: ni,
|
|
1583
|
+
selection: li,
|
|
1584
|
+
transition: Ai,
|
|
1585
|
+
call: $.call,
|
|
1586
|
+
nodes: $.nodes,
|
|
1587
|
+
node: $.node,
|
|
1588
|
+
size: $.size,
|
|
1589
|
+
empty: $.empty,
|
|
1590
|
+
each: $.each,
|
|
1591
|
+
on: ii,
|
|
1592
|
+
attr: Xr,
|
|
1593
|
+
attrTween: Vr,
|
|
1594
|
+
style: di,
|
|
1595
|
+
styleTween: wi,
|
|
1596
|
+
text: mi,
|
|
1597
|
+
textTween: Ni,
|
|
1598
|
+
remove: oi,
|
|
1599
|
+
tween: Tr,
|
|
1600
|
+
delay: Ur,
|
|
1601
|
+
duration: Zr,
|
|
1602
|
+
ease: Wr,
|
|
1603
|
+
easeVarying: jr,
|
|
1604
|
+
end: ki,
|
|
1605
|
+
[Symbol.iterator]: $[Symbol.iterator]
|
|
1606
|
+
};
|
|
1607
|
+
function Mi(t) {
|
|
1608
|
+
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
|
1609
|
+
}
|
|
1610
|
+
var Si = {
|
|
1611
|
+
time: null,
|
|
1612
|
+
// Set on use.
|
|
1613
|
+
delay: 0,
|
|
1614
|
+
duration: 250,
|
|
1615
|
+
ease: Mi
|
|
1616
|
+
};
|
|
1617
|
+
function Ci(t, n) {
|
|
1618
|
+
for (var e; !(e = t.__transition) || !(e = e[n]); )
|
|
1619
|
+
if (!(t = t.parentNode))
|
|
1620
|
+
throw new Error(`transition ${n} not found`);
|
|
1621
|
+
return e;
|
|
1622
|
+
}
|
|
1623
|
+
function Ti(t) {
|
|
1624
|
+
var n, e;
|
|
1625
|
+
t instanceof N ? (n = t._id, t = t._name) : (n = dn(), (e = Si).time = Nt(), t = t == null ? null : t + "");
|
|
1626
|
+
for (var r = this._groups, i = r.length, s = 0; s < i; ++s)
|
|
1627
|
+
for (var o = r[s], a = o.length, u, f = 0; f < a; ++f)
|
|
1628
|
+
(u = o[f]) && ut(u, t, n, f, o, e || Ci(u, n));
|
|
1629
|
+
return new N(r, this._parents, t, n);
|
|
1630
|
+
}
|
|
1631
|
+
B.prototype.interrupt = Mr;
|
|
1632
|
+
B.prototype.transition = Ti;
|
|
1633
|
+
const wt = Math.PI, xt = 2 * wt, M = 1e-6, Ri = xt - M;
|
|
1634
|
+
function gn(t) {
|
|
1635
|
+
this._ += t[0];
|
|
1636
|
+
for (let n = 1, e = t.length; n < e; ++n)
|
|
1637
|
+
this._ += arguments[n] + t[n];
|
|
1638
|
+
}
|
|
1639
|
+
function Ii(t) {
|
|
1640
|
+
let n = Math.floor(t);
|
|
1641
|
+
if (!(n >= 0)) throw new Error(`invalid digits: ${t}`);
|
|
1642
|
+
if (n > 15) return gn;
|
|
1643
|
+
const e = 10 ** n;
|
|
1644
|
+
return function(r) {
|
|
1645
|
+
this._ += r[0];
|
|
1646
|
+
for (let i = 1, s = r.length; i < s; ++i)
|
|
1647
|
+
this._ += Math.round(arguments[i] * e) / e + r[i];
|
|
1648
|
+
};
|
|
1649
|
+
}
|
|
1650
|
+
class qi {
|
|
1651
|
+
constructor(n) {
|
|
1652
|
+
this._x0 = this._y0 = // start of current subpath
|
|
1653
|
+
this._x1 = this._y1 = null, this._ = "", this._append = n == null ? gn : Ii(n);
|
|
1654
|
+
}
|
|
1655
|
+
moveTo(n, e) {
|
|
1656
|
+
this._append`M${this._x0 = this._x1 = +n},${this._y0 = this._y1 = +e}`;
|
|
1657
|
+
}
|
|
1658
|
+
closePath() {
|
|
1659
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
1660
|
+
}
|
|
1661
|
+
lineTo(n, e) {
|
|
1662
|
+
this._append`L${this._x1 = +n},${this._y1 = +e}`;
|
|
1663
|
+
}
|
|
1664
|
+
quadraticCurveTo(n, e, r, i) {
|
|
1665
|
+
this._append`Q${+n},${+e},${this._x1 = +r},${this._y1 = +i}`;
|
|
1666
|
+
}
|
|
1667
|
+
bezierCurveTo(n, e, r, i, s, o) {
|
|
1668
|
+
this._append`C${+n},${+e},${+r},${+i},${this._x1 = +s},${this._y1 = +o}`;
|
|
1669
|
+
}
|
|
1670
|
+
arcTo(n, e, r, i, s) {
|
|
1671
|
+
if (n = +n, e = +e, r = +r, i = +i, s = +s, s < 0) throw new Error(`negative radius: ${s}`);
|
|
1672
|
+
let o = this._x1, a = this._y1, u = r - n, f = i - e, l = o - n, c = a - e, h = l * l + c * c;
|
|
1673
|
+
if (this._x1 === null)
|
|
1674
|
+
this._append`M${this._x1 = n},${this._y1 = e}`;
|
|
1675
|
+
else if (h > M) if (!(Math.abs(c * u - f * l) > M) || !s)
|
|
1676
|
+
this._append`L${this._x1 = n},${this._y1 = e}`;
|
|
1677
|
+
else {
|
|
1678
|
+
let _ = r - o, p = i - a, d = u * u + f * f, b = _ * _ + p * p, K = Math.sqrt(d), A = Math.sqrt(h), E = s * Math.tan((wt - Math.acos((d + h - b) / (2 * K * A))) / 2), R = E / A, P = E / K;
|
|
1679
|
+
Math.abs(R - 1) > M && this._append`L${n + R * l},${e + R * c}`, this._append`A${s},${s},0,0,${+(c * _ > l * p)},${this._x1 = n + P * u},${this._y1 = e + P * f}`;
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
arc(n, e, r, i, s, o) {
|
|
1683
|
+
if (n = +n, e = +e, r = +r, o = !!o, r < 0) throw new Error(`negative radius: ${r}`);
|
|
1684
|
+
let a = r * Math.cos(i), u = r * Math.sin(i), f = n + a, l = e + u, c = 1 ^ o, h = o ? i - s : s - i;
|
|
1685
|
+
this._x1 === null ? this._append`M${f},${l}` : (Math.abs(this._x1 - f) > M || Math.abs(this._y1 - l) > M) && this._append`L${f},${l}`, r && (h < 0 && (h = h % xt + xt), h > Ri ? this._append`A${r},${r},0,1,${c},${n - a},${e - u}A${r},${r},0,1,${c},${this._x1 = f},${this._y1 = l}` : h > M && this._append`A${r},${r},0,${+(h >= wt)},${c},${this._x1 = n + r * Math.cos(s)},${this._y1 = e + r * Math.sin(s)}`);
|
|
1686
|
+
}
|
|
1687
|
+
rect(n, e, r, i) {
|
|
1688
|
+
this._append`M${this._x0 = this._x1 = +n},${this._y0 = this._y1 = +e}h${r = +r}v${+i}h${-r}Z`;
|
|
1689
|
+
}
|
|
1690
|
+
toString() {
|
|
1691
|
+
return this._;
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
function Li(t) {
|
|
1695
|
+
return function() {
|
|
1696
|
+
return t;
|
|
1697
|
+
};
|
|
1698
|
+
}
|
|
1699
|
+
function Di(t) {
|
|
1700
|
+
let n = 3;
|
|
1701
|
+
return t.digits = function(e) {
|
|
1702
|
+
if (!arguments.length) return n;
|
|
1703
|
+
if (e == null)
|
|
1704
|
+
n = null;
|
|
1705
|
+
else {
|
|
1706
|
+
const r = Math.floor(e);
|
|
1707
|
+
if (!(r >= 0)) throw new RangeError(`invalid digits: ${e}`);
|
|
1708
|
+
n = r;
|
|
1709
|
+
}
|
|
1710
|
+
return t;
|
|
1711
|
+
}, () => new qi(n);
|
|
1712
|
+
}
|
|
1713
|
+
var Oi = Array.prototype.slice;
|
|
1714
|
+
function zi(t) {
|
|
1715
|
+
return typeof t == "object" && "length" in t ? t : Array.from(t);
|
|
1716
|
+
}
|
|
1717
|
+
function Vi(t) {
|
|
1718
|
+
return t[0];
|
|
1719
|
+
}
|
|
1720
|
+
function Yi(t) {
|
|
1721
|
+
return t[1];
|
|
1722
|
+
}
|
|
1723
|
+
class yn {
|
|
1724
|
+
constructor(n, e) {
|
|
1725
|
+
this._context = n, this._x = e;
|
|
1726
|
+
}
|
|
1727
|
+
areaStart() {
|
|
1728
|
+
this._line = 0;
|
|
1729
|
+
}
|
|
1730
|
+
areaEnd() {
|
|
1731
|
+
this._line = NaN;
|
|
1732
|
+
}
|
|
1733
|
+
lineStart() {
|
|
1734
|
+
this._point = 0;
|
|
1735
|
+
}
|
|
1736
|
+
lineEnd() {
|
|
1737
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
1738
|
+
}
|
|
1739
|
+
point(n, e) {
|
|
1740
|
+
switch (n = +n, e = +e, this._point) {
|
|
1741
|
+
case 0: {
|
|
1742
|
+
this._point = 1, this._line ? this._context.lineTo(n, e) : this._context.moveTo(n, e);
|
|
1743
|
+
break;
|
|
1744
|
+
}
|
|
1745
|
+
case 1:
|
|
1746
|
+
this._point = 2;
|
|
1747
|
+
// falls through
|
|
1748
|
+
default: {
|
|
1749
|
+
this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + n) / 2, this._y0, this._x0, e, n, e) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + e) / 2, n, this._y0, n, e);
|
|
1750
|
+
break;
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
this._x0 = n, this._y0 = e;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
function Bi(t) {
|
|
1757
|
+
return new yn(t, !0);
|
|
1758
|
+
}
|
|
1759
|
+
function Ui(t) {
|
|
1760
|
+
return new yn(t, !1);
|
|
1761
|
+
}
|
|
1762
|
+
function I(t, n, e) {
|
|
1763
|
+
this.k = t, this.x = n, this.y = e;
|
|
1764
|
+
}
|
|
1765
|
+
I.prototype = {
|
|
1766
|
+
constructor: I,
|
|
1767
|
+
scale: function(t) {
|
|
1768
|
+
return t === 1 ? this : new I(this.k * t, this.x, this.y);
|
|
1769
|
+
},
|
|
1770
|
+
translate: function(t, n) {
|
|
1771
|
+
return t === 0 & n === 0 ? this : new I(this.k, this.x + this.k * t, this.y + this.k * n);
|
|
1772
|
+
},
|
|
1773
|
+
apply: function(t) {
|
|
1774
|
+
return [t[0] * this.k + this.x, t[1] * this.k + this.y];
|
|
1775
|
+
},
|
|
1776
|
+
applyX: function(t) {
|
|
1777
|
+
return t * this.k + this.x;
|
|
1778
|
+
},
|
|
1779
|
+
applyY: function(t) {
|
|
1780
|
+
return t * this.k + this.y;
|
|
1781
|
+
},
|
|
1782
|
+
invert: function(t) {
|
|
1783
|
+
return [(t[0] - this.x) / this.k, (t[1] - this.y) / this.k];
|
|
1784
|
+
},
|
|
1785
|
+
invertX: function(t) {
|
|
1786
|
+
return (t - this.x) / this.k;
|
|
1787
|
+
},
|
|
1788
|
+
invertY: function(t) {
|
|
1789
|
+
return (t - this.y) / this.k;
|
|
1790
|
+
},
|
|
1791
|
+
rescaleX: function(t) {
|
|
1792
|
+
return t.copy().domain(t.range().map(this.invertX, this).map(t.invert, t));
|
|
1793
|
+
},
|
|
1794
|
+
rescaleY: function(t) {
|
|
1795
|
+
return t.copy().domain(t.range().map(this.invertY, this).map(t.invert, t));
|
|
1796
|
+
},
|
|
1797
|
+
toString: function() {
|
|
1798
|
+
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
1799
|
+
}
|
|
1800
|
+
};
|
|
1801
|
+
var Fi = new I(1, 0, 0);
|
|
1802
|
+
Hi.prototype = I.prototype;
|
|
1803
|
+
function Hi(t) {
|
|
1804
|
+
for (; !t.__zoom; ) if (!(t = t.parentNode)) return Fi;
|
|
1805
|
+
return t.__zoom;
|
|
1806
|
+
}
|
|
1807
|
+
export {
|
|
1808
|
+
U as C,
|
|
1809
|
+
g as R,
|
|
1810
|
+
I as T,
|
|
1811
|
+
zi as a,
|
|
1812
|
+
$t as b,
|
|
1813
|
+
Li as c,
|
|
1814
|
+
bt as d,
|
|
1815
|
+
en as e,
|
|
1816
|
+
Pt as f,
|
|
1817
|
+
dr as g,
|
|
1818
|
+
Xi as h,
|
|
1819
|
+
k as i,
|
|
1820
|
+
V as j,
|
|
1821
|
+
Oi as k,
|
|
1822
|
+
Bi as l,
|
|
1823
|
+
Vt as m,
|
|
1824
|
+
on as n,
|
|
1825
|
+
Fi as o,
|
|
1826
|
+
Er as p,
|
|
1827
|
+
Ui as q,
|
|
1828
|
+
ur as r,
|
|
1829
|
+
Pi as s,
|
|
1830
|
+
Hi as t,
|
|
1831
|
+
Di as w,
|
|
1832
|
+
Vi as x,
|
|
1833
|
+
Yi as y
|
|
1834
|
+
};
|