@caipira/tamandua 0.0.12 → 0.0.13

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