vue-chrts 0.0.60 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/my-lib.es.js DELETED
@@ -1,2678 +0,0 @@
1
- import { getCurrentInstance as En, computed as Rn, camelize as ft, defineComponent as Qe, toRefs as On, ref as lt, reactive as Nn, createElementBlock as Lt, watch as Tn, watchEffect as kn, toRaw as Fe, onMounted as Dn, onUnmounted as In, provide as Q, openBlock as je, renderSlot as Vt, createBlock as Mn, unref as zn, withCtx as Bn, createTextVNode as Fn, normalizeClass as Pn } from "vue";
2
- var qe = "http://www.w3.org/1999/xhtml";
3
- const ut = {
4
- svg: "http://www.w3.org/2000/svg",
5
- xhtml: qe,
6
- xlink: "http://www.w3.org/1999/xlink",
7
- xml: "http://www.w3.org/XML/1998/namespace",
8
- xmlns: "http://www.w3.org/2000/xmlns/"
9
- };
10
- function Wt(e) {
11
- var t = e += "", n = t.indexOf(":");
12
- return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), ut.hasOwnProperty(t) ? { space: ut[t], local: e } : e;
13
- }
14
- function Hn(e) {
15
- return function() {
16
- var t = this.ownerDocument, n = this.namespaceURI;
17
- return n === qe && t.documentElement.namespaceURI === qe ? t.createElement(e) : t.createElementNS(n, e);
18
- };
19
- }
20
- function Ln(e) {
21
- return function() {
22
- return this.ownerDocument.createElementNS(e.space, e.local);
23
- };
24
- }
25
- function qt(e) {
26
- var t = Wt(e);
27
- return (t.local ? Ln : Hn)(t);
28
- }
29
- function Vn() {
30
- }
31
- function Ut(e) {
32
- return e == null ? Vn : function() {
33
- return this.querySelector(e);
34
- };
35
- }
36
- function Wn(e) {
37
- typeof e != "function" && (e = Ut(e));
38
- for (var t = this._groups, n = t.length, r = new Array(n), i = 0; i < n; ++i)
39
- for (var s = t[i], a = s.length, c = r[i] = new Array(a), o, f, l = 0; l < a; ++l)
40
- (o = s[l]) && (f = e.call(o, o.__data__, l, s)) && ("__data__" in o && (f.__data__ = o.__data__), c[l] = f);
41
- return new D(r, this._parents);
42
- }
43
- function qn(e) {
44
- return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
45
- }
46
- function Un() {
47
- return [];
48
- }
49
- function Yn(e) {
50
- return e == null ? Un : function() {
51
- return this.querySelectorAll(e);
52
- };
53
- }
54
- function Gn(e) {
55
- return function() {
56
- return qn(e.apply(this, arguments));
57
- };
58
- }
59
- function Xn(e) {
60
- typeof e == "function" ? e = Gn(e) : e = Yn(e);
61
- for (var t = this._groups, n = t.length, r = [], i = [], s = 0; s < n; ++s)
62
- for (var a = t[s], c = a.length, o, f = 0; f < c; ++f)
63
- (o = a[f]) && (r.push(e.call(o, o.__data__, f, a)), i.push(o));
64
- return new D(r, i);
65
- }
66
- function Zn(e) {
67
- return function() {
68
- return this.matches(e);
69
- };
70
- }
71
- function Yt(e) {
72
- return function(t) {
73
- return t.matches(e);
74
- };
75
- }
76
- var Kn = Array.prototype.find;
77
- function Jn(e) {
78
- return function() {
79
- return Kn.call(this.children, e);
80
- };
81
- }
82
- function Qn() {
83
- return this.firstElementChild;
84
- }
85
- function jn(e) {
86
- return this.select(e == null ? Qn : Jn(typeof e == "function" ? e : Yt(e)));
87
- }
88
- var er = Array.prototype.filter;
89
- function tr() {
90
- return Array.from(this.children);
91
- }
92
- function nr(e) {
93
- return function() {
94
- return er.call(this.children, e);
95
- };
96
- }
97
- function rr(e) {
98
- return this.selectAll(e == null ? tr : nr(typeof e == "function" ? e : Yt(e)));
99
- }
100
- function ir(e) {
101
- typeof e != "function" && (e = Zn(e));
102
- for (var t = this._groups, n = t.length, r = new Array(n), i = 0; i < n; ++i)
103
- for (var s = t[i], a = s.length, c = r[i] = [], o, f = 0; f < a; ++f)
104
- (o = s[f]) && e.call(o, o.__data__, f, s) && c.push(o);
105
- return new D(r, this._parents);
106
- }
107
- function Gt(e) {
108
- return new Array(e.length);
109
- }
110
- function sr() {
111
- return new D(this._enter || this._groups.map(Gt), this._parents);
112
- }
113
- function Ce(e, t) {
114
- this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
115
- }
116
- Ce.prototype = {
117
- constructor: Ce,
118
- appendChild: function(e) {
119
- return this._parent.insertBefore(e, this._next);
120
- },
121
- insertBefore: function(e, t) {
122
- return this._parent.insertBefore(e, t);
123
- },
124
- querySelector: function(e) {
125
- return this._parent.querySelector(e);
126
- },
127
- querySelectorAll: function(e) {
128
- return this._parent.querySelectorAll(e);
129
- }
130
- };
131
- function ar(e) {
132
- return function() {
133
- return e;
134
- };
135
- }
136
- function or(e, t, n, r, i, s) {
137
- for (var a = 0, c, o = t.length, f = s.length; a < f; ++a)
138
- (c = t[a]) ? (c.__data__ = s[a], r[a] = c) : n[a] = new Ce(e, s[a]);
139
- for (; a < o; ++a)
140
- (c = t[a]) && (i[a] = c);
141
- }
142
- function cr(e, t, n, r, i, s, a) {
143
- var c, o, f = /* @__PURE__ */ new Map(), l = t.length, u = s.length, p = new Array(l), d;
144
- for (c = 0; c < l; ++c)
145
- (o = t[c]) && (p[c] = d = a.call(o, o.__data__, c, t) + "", f.has(d) ? i[c] = o : f.set(d, o));
146
- for (c = 0; c < u; ++c)
147
- d = a.call(e, s[c], c, s) + "", (o = f.get(d)) ? (r[c] = o, o.__data__ = s[c], f.delete(d)) : n[c] = new Ce(e, s[c]);
148
- for (c = 0; c < l; ++c)
149
- (o = t[c]) && f.get(p[c]) === o && (i[c] = o);
150
- }
151
- function fr(e) {
152
- return e.__data__;
153
- }
154
- function lr(e, t) {
155
- if (!arguments.length) return Array.from(this, fr);
156
- var n = t ? cr : or, r = this._parents, i = this._groups;
157
- typeof e != "function" && (e = ar(e));
158
- for (var s = i.length, a = new Array(s), c = new Array(s), o = new Array(s), f = 0; f < s; ++f) {
159
- var l = r[f], u = i[f], p = u.length, d = ur(e.call(l, l && l.__data__, f, r)), v = d.length, h = c[f] = new Array(v), g = a[f] = new Array(v), m = o[f] = new Array(p);
160
- n(l, u, h, g, m, d, t);
161
- for (var _ = 0, w = 0, $, S; _ < v; ++_)
162
- if ($ = h[_]) {
163
- for (_ >= w && (w = _ + 1); !(S = g[w]) && ++w < v; ) ;
164
- $._next = S || null;
165
- }
166
- }
167
- return a = new D(a, r), a._enter = c, a._exit = o, a;
168
- }
169
- function ur(e) {
170
- return typeof e == "object" && "length" in e ? e : Array.from(e);
171
- }
172
- function hr() {
173
- return new D(this._exit || this._groups.map(Gt), this._parents);
174
- }
175
- function dr(e, t, n) {
176
- var r = this.enter(), i = this, s = this.exit();
177
- return typeof e == "function" ? (r = e(r), r && (r = r.selection())) : r = r.append(e + ""), t != null && (i = t(i), i && (i = i.selection())), n == null ? s.remove() : n(s), r && i ? r.merge(i).order() : i;
178
- }
179
- function pr(e) {
180
- for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, s = r.length, a = Math.min(i, s), c = new Array(i), o = 0; o < a; ++o)
181
- for (var f = n[o], l = r[o], u = f.length, p = c[o] = new Array(u), d, v = 0; v < u; ++v)
182
- (d = f[v] || l[v]) && (p[v] = d);
183
- for (; o < i; ++o)
184
- c[o] = n[o];
185
- return new D(c, this._parents);
186
- }
187
- function vr() {
188
- for (var e = this._groups, t = -1, n = e.length; ++t < n; )
189
- for (var r = e[t], i = r.length - 1, s = r[i], a; --i >= 0; )
190
- (a = r[i]) && (s && a.compareDocumentPosition(s) ^ 4 && s.parentNode.insertBefore(a, s), s = a);
191
- return this;
192
- }
193
- function gr(e) {
194
- e || (e = mr);
195
- function t(u, p) {
196
- return u && p ? e(u.__data__, p.__data__) : !u - !p;
197
- }
198
- for (var n = this._groups, r = n.length, i = new Array(r), s = 0; s < r; ++s) {
199
- for (var a = n[s], c = a.length, o = i[s] = new Array(c), f, l = 0; l < c; ++l)
200
- (f = a[l]) && (o[l] = f);
201
- o.sort(t);
202
- }
203
- return new D(i, this._parents).order();
204
- }
205
- function mr(e, t) {
206
- return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
207
- }
208
- function xr() {
209
- var e = arguments[0];
210
- return arguments[0] = this, e.apply(null, arguments), this;
211
- }
212
- function yr() {
213
- return Array.from(this);
214
- }
215
- function br() {
216
- for (var e = this._groups, t = 0, n = e.length; t < n; ++t)
217
- for (var r = e[t], i = 0, s = r.length; i < s; ++i) {
218
- var a = r[i];
219
- if (a) return a;
220
- }
221
- return null;
222
- }
223
- function _r() {
224
- let e = 0;
225
- for (const t of this) ++e;
226
- return e;
227
- }
228
- function wr() {
229
- return !this.node();
230
- }
231
- function Ar(e) {
232
- for (var t = this._groups, n = 0, r = t.length; n < r; ++n)
233
- for (var i = t[n], s = 0, a = i.length, c; s < a; ++s)
234
- (c = i[s]) && e.call(c, c.__data__, s, i);
235
- return this;
236
- }
237
- function Sr(e) {
238
- return function() {
239
- this.removeAttribute(e);
240
- };
241
- }
242
- function Cr(e) {
243
- return function() {
244
- this.removeAttributeNS(e.space, e.local);
245
- };
246
- }
247
- function $r(e, t) {
248
- return function() {
249
- this.setAttribute(e, t);
250
- };
251
- }
252
- function Er(e, t) {
253
- return function() {
254
- this.setAttributeNS(e.space, e.local, t);
255
- };
256
- }
257
- function Rr(e, t) {
258
- return function() {
259
- var n = t.apply(this, arguments);
260
- n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
261
- };
262
- }
263
- function Or(e, t) {
264
- return function() {
265
- var n = t.apply(this, arguments);
266
- n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
267
- };
268
- }
269
- function Nr(e, t) {
270
- var n = Wt(e);
271
- if (arguments.length < 2) {
272
- var r = this.node();
273
- return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
274
- }
275
- return this.each((t == null ? n.local ? Cr : Sr : typeof t == "function" ? n.local ? Or : Rr : n.local ? Er : $r)(n, t));
276
- }
277
- function Xt(e) {
278
- return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
279
- }
280
- function Tr(e) {
281
- return function() {
282
- this.style.removeProperty(e);
283
- };
284
- }
285
- function kr(e, t, n) {
286
- return function() {
287
- this.style.setProperty(e, t, n);
288
- };
289
- }
290
- function Dr(e, t, n) {
291
- return function() {
292
- var r = t.apply(this, arguments);
293
- r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
294
- };
295
- }
296
- function Ir(e, t, n) {
297
- return arguments.length > 1 ? this.each((t == null ? Tr : typeof t == "function" ? Dr : kr)(e, t, n ?? "")) : Mr(this.node(), e);
298
- }
299
- function Mr(e, t) {
300
- return e.style.getPropertyValue(t) || Xt(e).getComputedStyle(e, null).getPropertyValue(t);
301
- }
302
- function zr(e) {
303
- return function() {
304
- delete this[e];
305
- };
306
- }
307
- function Br(e, t) {
308
- return function() {
309
- this[e] = t;
310
- };
311
- }
312
- function Fr(e, t) {
313
- return function() {
314
- var n = t.apply(this, arguments);
315
- n == null ? delete this[e] : this[e] = n;
316
- };
317
- }
318
- function Pr(e, t) {
319
- return arguments.length > 1 ? this.each((t == null ? zr : typeof t == "function" ? Fr : Br)(e, t)) : this.node()[e];
320
- }
321
- function Zt(e) {
322
- return e.trim().split(/^|\s+/);
323
- }
324
- function et(e) {
325
- return e.classList || new Kt(e);
326
- }
327
- function Kt(e) {
328
- this._node = e, this._names = Zt(e.getAttribute("class") || "");
329
- }
330
- Kt.prototype = {
331
- add: function(e) {
332
- var t = this._names.indexOf(e);
333
- t < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
334
- },
335
- remove: function(e) {
336
- var t = this._names.indexOf(e);
337
- t >= 0 && (this._names.splice(t, 1), this._node.setAttribute("class", this._names.join(" ")));
338
- },
339
- contains: function(e) {
340
- return this._names.indexOf(e) >= 0;
341
- }
342
- };
343
- function Jt(e, t) {
344
- for (var n = et(e), r = -1, i = t.length; ++r < i; ) n.add(t[r]);
345
- }
346
- function Qt(e, t) {
347
- for (var n = et(e), r = -1, i = t.length; ++r < i; ) n.remove(t[r]);
348
- }
349
- function Hr(e) {
350
- return function() {
351
- Jt(this, e);
352
- };
353
- }
354
- function Lr(e) {
355
- return function() {
356
- Qt(this, e);
357
- };
358
- }
359
- function Vr(e, t) {
360
- return function() {
361
- (t.apply(this, arguments) ? Jt : Qt)(this, e);
362
- };
363
- }
364
- function Wr(e, t) {
365
- var n = Zt(e + "");
366
- if (arguments.length < 2) {
367
- for (var r = et(this.node()), i = -1, s = n.length; ++i < s; ) if (!r.contains(n[i])) return !1;
368
- return !0;
369
- }
370
- return this.each((typeof t == "function" ? Vr : t ? Hr : Lr)(n, t));
371
- }
372
- function qr() {
373
- this.textContent = "";
374
- }
375
- function Ur(e) {
376
- return function() {
377
- this.textContent = e;
378
- };
379
- }
380
- function Yr(e) {
381
- return function() {
382
- var t = e.apply(this, arguments);
383
- this.textContent = t ?? "";
384
- };
385
- }
386
- function Gr(e) {
387
- return arguments.length ? this.each(e == null ? qr : (typeof e == "function" ? Yr : Ur)(e)) : this.node().textContent;
388
- }
389
- function Xr() {
390
- this.innerHTML = "";
391
- }
392
- function Zr(e) {
393
- return function() {
394
- this.innerHTML = e;
395
- };
396
- }
397
- function Kr(e) {
398
- return function() {
399
- var t = e.apply(this, arguments);
400
- this.innerHTML = t ?? "";
401
- };
402
- }
403
- function Jr(e) {
404
- return arguments.length ? this.each(e == null ? Xr : (typeof e == "function" ? Kr : Zr)(e)) : this.node().innerHTML;
405
- }
406
- function Qr() {
407
- this.nextSibling && this.parentNode.appendChild(this);
408
- }
409
- function jr() {
410
- return this.each(Qr);
411
- }
412
- function ei() {
413
- this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
414
- }
415
- function ti() {
416
- return this.each(ei);
417
- }
418
- function ni(e) {
419
- var t = typeof e == "function" ? e : qt(e);
420
- return this.select(function() {
421
- return this.appendChild(t.apply(this, arguments));
422
- });
423
- }
424
- function ri() {
425
- return null;
426
- }
427
- function ii(e, t) {
428
- var n = typeof e == "function" ? e : qt(e), r = t == null ? ri : typeof t == "function" ? t : Ut(t);
429
- return this.select(function() {
430
- return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
431
- });
432
- }
433
- function si() {
434
- var e = this.parentNode;
435
- e && e.removeChild(this);
436
- }
437
- function ai() {
438
- return this.each(si);
439
- }
440
- function oi() {
441
- var e = this.cloneNode(!1), t = this.parentNode;
442
- return t ? t.insertBefore(e, this.nextSibling) : e;
443
- }
444
- function ci() {
445
- var e = this.cloneNode(!0), t = this.parentNode;
446
- return t ? t.insertBefore(e, this.nextSibling) : e;
447
- }
448
- function fi(e) {
449
- return this.select(e ? ci : oi);
450
- }
451
- function li(e) {
452
- return arguments.length ? this.property("__data__", e) : this.node().__data__;
453
- }
454
- function ui(e) {
455
- return function(t) {
456
- e.call(this, t, this.__data__);
457
- };
458
- }
459
- function hi(e) {
460
- return e.trim().split(/^|\s+/).map(function(t) {
461
- var n = "", r = t.indexOf(".");
462
- return r >= 0 && (n = t.slice(r + 1), t = t.slice(0, r)), { type: t, name: n };
463
- });
464
- }
465
- function di(e) {
466
- return function() {
467
- var t = this.__on;
468
- if (t) {
469
- for (var n = 0, r = -1, i = t.length, s; n < i; ++n)
470
- s = t[n], (!e.type || s.type === e.type) && s.name === e.name ? this.removeEventListener(s.type, s.listener, s.options) : t[++r] = s;
471
- ++r ? t.length = r : delete this.__on;
472
- }
473
- };
474
- }
475
- function pi(e, t, n) {
476
- return function() {
477
- var r = this.__on, i, s = ui(t);
478
- if (r) {
479
- for (var a = 0, c = r.length; a < c; ++a)
480
- if ((i = r[a]).type === e.type && i.name === e.name) {
481
- this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = s, i.options = n), i.value = t;
482
- return;
483
- }
484
- }
485
- this.addEventListener(e.type, s, n), i = { type: e.type, name: e.name, value: t, listener: s, options: n }, r ? r.push(i) : this.__on = [i];
486
- };
487
- }
488
- function vi(e, t, n) {
489
- var r = hi(e + ""), i, s = r.length, a;
490
- if (arguments.length < 2) {
491
- var c = this.node().__on;
492
- if (c) {
493
- for (var o = 0, f = c.length, l; o < f; ++o)
494
- for (i = 0, l = c[o]; i < s; ++i)
495
- if ((a = r[i]).type === l.type && a.name === l.name)
496
- return l.value;
497
- }
498
- return;
499
- }
500
- for (c = t ? pi : di, i = 0; i < s; ++i) this.each(c(r[i], t, n));
501
- return this;
502
- }
503
- function jt(e, t, n) {
504
- var r = Xt(e), i = r.CustomEvent;
505
- typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
506
- }
507
- function gi(e, t) {
508
- return function() {
509
- return jt(this, e, t);
510
- };
511
- }
512
- function mi(e, t) {
513
- return function() {
514
- return jt(this, e, t.apply(this, arguments));
515
- };
516
- }
517
- function xi(e, t) {
518
- return this.each((typeof t == "function" ? mi : gi)(e, t));
519
- }
520
- function* yi() {
521
- for (var e = this._groups, t = 0, n = e.length; t < n; ++t)
522
- for (var r = e[t], i = 0, s = r.length, a; i < s; ++i)
523
- (a = r[i]) && (yield a);
524
- }
525
- var bi = [null];
526
- function D(e, t) {
527
- this._groups = e, this._parents = t;
528
- }
529
- function _i() {
530
- return this;
531
- }
532
- D.prototype = {
533
- constructor: D,
534
- select: Wn,
535
- selectAll: Xn,
536
- selectChild: jn,
537
- selectChildren: rr,
538
- filter: ir,
539
- data: lr,
540
- enter: sr,
541
- exit: hr,
542
- join: dr,
543
- merge: pr,
544
- selection: _i,
545
- order: vr,
546
- sort: gr,
547
- call: xr,
548
- nodes: yr,
549
- node: br,
550
- size: _r,
551
- empty: wr,
552
- each: Ar,
553
- attr: Nr,
554
- style: Ir,
555
- property: Pr,
556
- classed: Wr,
557
- text: Gr,
558
- html: Jr,
559
- raise: jr,
560
- lower: ti,
561
- append: ni,
562
- insert: ii,
563
- remove: ai,
564
- clone: fi,
565
- datum: li,
566
- on: vi,
567
- dispatch: xi,
568
- [Symbol.iterator]: yi
569
- };
570
- function ht(e) {
571
- return typeof e == "string" ? new D([[document.querySelector(e)]], [document.documentElement]) : new D([[e]], bi);
572
- }
573
- var dt;
574
- (function(e) {
575
- e[e.SVG = 0] = "SVG", e[e.HTML = 1] = "HTML";
576
- })(dt || (dt = {}));
577
- var ie;
578
- (function(e) {
579
- e.Fit = "fit", e.Extend = "extend", e.FitWidth = "fit_width";
580
- })(ie || (ie = {}));
581
- function wi(e, t) {
582
- let n, r;
583
- for (const i of e)
584
- i != null && (n === void 0 ? i >= i && (n = r = i) : (n > i && (n = i), r < i && (r = i)));
585
- return [n, r];
586
- }
587
- function* Ai(e) {
588
- for (const t of e)
589
- yield* t;
590
- }
591
- function Si(e) {
592
- return Array.from(Ai(e));
593
- }
594
- const en = (e) => typeof e == "number", Ci = (e) => typeof e == "function", $i = (e) => Array.isArray(e), Ei = (e) => e instanceof Object, $e = (e) => e.constructor.name !== "Function" && e.constructor.name !== "Object", pt = (e) => Ei(e) && !$i(e) && !Ci(e) && !$e(e), Ue = (e, t, n = [], r = /* @__PURE__ */ new Set()) => {
595
- if (Array.isArray(e)) {
596
- if (!Array.isArray(t) || e.length !== t.length)
597
- return !1;
598
- if (r.has(e))
599
- return !0;
600
- r.add(e);
601
- for (let i = 0; i < e.length; i++)
602
- if (!Ue(e[i], t[i], n, r))
603
- return !1;
604
- return !0;
605
- }
606
- if (e instanceof Date && t instanceof Date)
607
- return e.getTime() === t.getTime();
608
- if (typeof e == "object" && e !== null && t !== null) {
609
- if (typeof t != "object")
610
- return !1;
611
- if (e === t)
612
- return !0;
613
- const i = Object.keys(e).filter((a) => !n.includes(a)), s = Object.keys(t).filter((a) => !n.includes(a));
614
- if (i.length !== s.length)
615
- return !1;
616
- if (r.has(e))
617
- return !0;
618
- r.add(e);
619
- for (const a of i)
620
- if (!Ue(e[a], t[a], n, r))
621
- return !1;
622
- return !0;
623
- }
624
- return e === t;
625
- }, vt = (e) => e.flat(), Ee = (e, t = /* @__PURE__ */ new Map()) => {
626
- if (typeof e != "object" || e === null)
627
- return e;
628
- if (e instanceof Date)
629
- return new Date(e.getTime());
630
- if (e instanceof Array) {
631
- const n = [];
632
- t.set(e, n);
633
- for (const r of e)
634
- n.push(t.has(r) ? t.get(r) : Ee(r, t));
635
- return n;
636
- }
637
- if ($e(e))
638
- return e;
639
- if (e instanceof Object) {
640
- const n = {};
641
- t.set(e, n);
642
- const r = e;
643
- return Object.keys(e).reduce((i, s) => (i[s] = t.has(r[s]) ? t.get(r[s]) : Ee(r[s], t), i), n), n;
644
- }
645
- return e;
646
- }, tn = (e, t, n = /* @__PURE__ */ new Map()) => {
647
- if (!e || !t || e === t)
648
- return e;
649
- const r = $e(e) ? e : Ee(e);
650
- return n.has(t) ? n.get(t) : (n.set(t, r), Object.keys(t).forEach((i) => {
651
- i === "__proto__" || i === "constructor" || (pt(e[i]) && pt(t[i]) ? r[i] = tn(e[i], t[i], n) : $e(t) ? r[i] = t : r[i] = Ee(t[i]));
652
- }), r);
653
- };
654
- function j(e) {
655
- return e.filter((t) => t && !en(t));
656
- }
657
- function Y(e, t, n) {
658
- return Math.min(Math.max(e, t), n);
659
- }
660
- var W = [], Ri = function() {
661
- return W.some(function(e) {
662
- return e.activeTargets.length > 0;
663
- });
664
- }, Oi = function() {
665
- return W.some(function(e) {
666
- return e.skippedTargets.length > 0;
667
- });
668
- }, gt = "ResizeObserver loop completed with undelivered notifications.", Ni = function() {
669
- var e;
670
- typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
671
- message: gt
672
- }) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = gt), window.dispatchEvent(e);
673
- }, se;
674
- (function(e) {
675
- e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
676
- })(se || (se = {}));
677
- var q = function(e) {
678
- return Object.freeze(e);
679
- }, Ti = /* @__PURE__ */ function() {
680
- function e(t, n) {
681
- this.inlineSize = t, this.blockSize = n, q(this);
682
- }
683
- return e;
684
- }(), nn = function() {
685
- function e(t, n, r, i) {
686
- return this.x = t, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, q(this);
687
- }
688
- return e.prototype.toJSON = function() {
689
- var t = this, n = t.x, r = t.y, i = t.top, s = t.right, a = t.bottom, c = t.left, o = t.width, f = t.height;
690
- return { x: n, y: r, top: i, right: s, bottom: a, left: c, width: o, height: f };
691
- }, e.fromRect = function(t) {
692
- return new e(t.x, t.y, t.width, t.height);
693
- }, e;
694
- }(), tt = function(e) {
695
- return e instanceof SVGElement && "getBBox" in e;
696
- }, rn = function(e) {
697
- if (tt(e)) {
698
- var t = e.getBBox(), n = t.width, r = t.height;
699
- return !n && !r;
700
- }
701
- var i = e, s = i.offsetWidth, a = i.offsetHeight;
702
- return !(s || a || e.getClientRects().length);
703
- }, mt = function(e) {
704
- var t;
705
- if (e instanceof Element)
706
- return !0;
707
- var n = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
708
- return !!(n && e instanceof n.Element);
709
- }, ki = function(e) {
710
- switch (e.tagName) {
711
- case "INPUT":
712
- if (e.type !== "image")
713
- break;
714
- case "VIDEO":
715
- case "AUDIO":
716
- case "EMBED":
717
- case "OBJECT":
718
- case "CANVAS":
719
- case "IFRAME":
720
- case "IMG":
721
- return !0;
722
- }
723
- return !1;
724
- }, re = typeof window < "u" ? window : {}, ve = /* @__PURE__ */ new WeakMap(), xt = /auto|scroll/, Di = /^tb|vertical/, Ii = /msie|trident/i.test(re.navigator && re.navigator.userAgent), M = function(e) {
725
- return parseFloat(e || "0");
726
- }, G = function(e, t, n) {
727
- return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Ti((n ? t : e) || 0, (n ? e : t) || 0);
728
- }, yt = q({
729
- devicePixelContentBoxSize: G(),
730
- borderBoxSize: G(),
731
- contentBoxSize: G(),
732
- contentRect: new nn(0, 0, 0, 0)
733
- }), sn = function(e, t) {
734
- if (t === void 0 && (t = !1), ve.has(e) && !t)
735
- return ve.get(e);
736
- if (rn(e))
737
- return ve.set(e, yt), yt;
738
- var n = getComputedStyle(e), r = tt(e) && e.ownerSVGElement && e.getBBox(), i = !Ii && n.boxSizing === "border-box", s = Di.test(n.writingMode || ""), a = !r && xt.test(n.overflowY || ""), c = !r && xt.test(n.overflowX || ""), o = r ? 0 : M(n.paddingTop), f = r ? 0 : M(n.paddingRight), l = r ? 0 : M(n.paddingBottom), u = r ? 0 : M(n.paddingLeft), p = r ? 0 : M(n.borderTopWidth), d = r ? 0 : M(n.borderRightWidth), v = r ? 0 : M(n.borderBottomWidth), h = r ? 0 : M(n.borderLeftWidth), g = u + f, m = o + l, _ = h + d, w = p + v, $ = c ? e.offsetHeight - w - e.clientHeight : 0, S = a ? e.offsetWidth - _ - e.clientWidth : 0, R = i ? g + _ : 0, x = i ? m + w : 0, de = r ? r.width : M(n.width) - R - S, pe = r ? r.height : M(n.height) - x - $, Cn = de + g + S + _, $n = pe + m + $ + w, ct = q({
739
- devicePixelContentBoxSize: G(Math.round(de * devicePixelRatio), Math.round(pe * devicePixelRatio), s),
740
- borderBoxSize: G(Cn, $n, s),
741
- contentBoxSize: G(de, pe, s),
742
- contentRect: new nn(u, o, de, pe)
743
- });
744
- return ve.set(e, ct), ct;
745
- }, an = function(e, t, n) {
746
- var r = sn(e, n), i = r.borderBoxSize, s = r.contentBoxSize, a = r.devicePixelContentBoxSize;
747
- switch (t) {
748
- case se.DEVICE_PIXEL_CONTENT_BOX:
749
- return a;
750
- case se.BORDER_BOX:
751
- return i;
752
- default:
753
- return s;
754
- }
755
- }, Mi = /* @__PURE__ */ function() {
756
- function e(t) {
757
- var n = sn(t);
758
- this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = q([n.borderBoxSize]), this.contentBoxSize = q([n.contentBoxSize]), this.devicePixelContentBoxSize = q([n.devicePixelContentBoxSize]);
759
- }
760
- return e;
761
- }(), on = function(e) {
762
- if (rn(e))
763
- return 1 / 0;
764
- for (var t = 0, n = e.parentNode; n; )
765
- t += 1, n = n.parentNode;
766
- return t;
767
- }, zi = function() {
768
- var e = 1 / 0, t = [];
769
- W.forEach(function(a) {
770
- if (a.activeTargets.length !== 0) {
771
- var c = [];
772
- a.activeTargets.forEach(function(f) {
773
- var l = new Mi(f.target), u = on(f.target);
774
- c.push(l), f.lastReportedSize = an(f.target, f.observedBox), u < e && (e = u);
775
- }), t.push(function() {
776
- a.callback.call(a.observer, c, a.observer);
777
- }), a.activeTargets.splice(0, a.activeTargets.length);
778
- }
779
- });
780
- for (var n = 0, r = t; n < r.length; n++) {
781
- var i = r[n];
782
- i();
783
- }
784
- return e;
785
- }, bt = function(e) {
786
- W.forEach(function(n) {
787
- n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(i) {
788
- i.isActive() && (on(i.target) > e ? n.activeTargets.push(i) : n.skippedTargets.push(i));
789
- });
790
- });
791
- }, Bi = function() {
792
- var e = 0;
793
- for (bt(e); Ri(); )
794
- e = zi(), bt(e);
795
- return Oi() && Ni(), e > 0;
796
- }, Pe, cn = [], Fi = function() {
797
- return cn.splice(0).forEach(function(e) {
798
- return e();
799
- });
800
- }, Pi = function(e) {
801
- if (!Pe) {
802
- var t = 0, n = document.createTextNode(""), r = { characterData: !0 };
803
- new MutationObserver(function() {
804
- return Fi();
805
- }).observe(n, r), Pe = function() {
806
- n.textContent = "".concat(t ? t-- : t++);
807
- };
808
- }
809
- cn.push(e), Pe();
810
- }, Hi = function(e) {
811
- Pi(function() {
812
- requestAnimationFrame(e);
813
- });
814
- }, _e = 0, Li = function() {
815
- return !!_e;
816
- }, Vi = 250, Wi = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, _t = [
817
- "resize",
818
- "load",
819
- "transitionend",
820
- "animationend",
821
- "animationstart",
822
- "animationiteration",
823
- "keyup",
824
- "keydown",
825
- "mouseup",
826
- "mousedown",
827
- "mouseover",
828
- "mouseout",
829
- "blur",
830
- "focus"
831
- ], wt = function(e) {
832
- return e === void 0 && (e = 0), Date.now() + e;
833
- }, He = !1, qi = function() {
834
- function e() {
835
- var t = this;
836
- this.stopped = !0, this.listener = function() {
837
- return t.schedule();
838
- };
839
- }
840
- return e.prototype.run = function(t) {
841
- var n = this;
842
- if (t === void 0 && (t = Vi), !He) {
843
- He = !0;
844
- var r = wt(t);
845
- Hi(function() {
846
- var i = !1;
847
- try {
848
- i = Bi();
849
- } finally {
850
- if (He = !1, t = r - wt(), !Li())
851
- return;
852
- i ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
853
- }
854
- });
855
- }
856
- }, e.prototype.schedule = function() {
857
- this.stop(), this.run();
858
- }, e.prototype.observe = function() {
859
- var t = this, n = function() {
860
- return t.observer && t.observer.observe(document.body, Wi);
861
- };
862
- document.body ? n() : re.addEventListener("DOMContentLoaded", n);
863
- }, e.prototype.start = function() {
864
- var t = this;
865
- this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), _t.forEach(function(n) {
866
- return re.addEventListener(n, t.listener, !0);
867
- }));
868
- }, e.prototype.stop = function() {
869
- var t = this;
870
- this.stopped || (this.observer && this.observer.disconnect(), _t.forEach(function(n) {
871
- return re.removeEventListener(n, t.listener, !0);
872
- }), this.stopped = !0);
873
- }, e;
874
- }(), Ye = new qi(), At = function(e) {
875
- !_e && e > 0 && Ye.start(), _e += e, !_e && Ye.stop();
876
- }, Ui = function(e) {
877
- return !tt(e) && !ki(e) && getComputedStyle(e).display === "inline";
878
- }, Yi = function() {
879
- function e(t, n) {
880
- this.target = t, this.observedBox = n || se.CONTENT_BOX, this.lastReportedSize = {
881
- inlineSize: 0,
882
- blockSize: 0
883
- };
884
- }
885
- return e.prototype.isActive = function() {
886
- var t = an(this.target, this.observedBox, !0);
887
- return Ui(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
888
- }, e;
889
- }(), Gi = /* @__PURE__ */ function() {
890
- function e(t, n) {
891
- this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = n;
892
- }
893
- return e;
894
- }(), ge = /* @__PURE__ */ new WeakMap(), St = function(e, t) {
895
- for (var n = 0; n < e.length; n += 1)
896
- if (e[n].target === t)
897
- return n;
898
- return -1;
899
- }, me = function() {
900
- function e() {
901
- }
902
- return e.connect = function(t, n) {
903
- var r = new Gi(t, n);
904
- ge.set(t, r);
905
- }, e.observe = function(t, n, r) {
906
- var i = ge.get(t), s = i.observationTargets.length === 0;
907
- St(i.observationTargets, n) < 0 && (s && W.push(i), i.observationTargets.push(new Yi(n, r && r.box)), At(1), Ye.schedule());
908
- }, e.unobserve = function(t, n) {
909
- var r = ge.get(t), i = St(r.observationTargets, n), s = r.observationTargets.length === 1;
910
- i >= 0 && (s && W.splice(W.indexOf(r), 1), r.observationTargets.splice(i, 1), At(-1));
911
- }, e.disconnect = function(t) {
912
- var n = this, r = ge.get(t);
913
- r.observationTargets.slice().forEach(function(i) {
914
- return n.unobserve(t, i.target);
915
- }), r.activeTargets.splice(0, r.activeTargets.length);
916
- }, e;
917
- }(), Xi = function() {
918
- function e(t) {
919
- if (arguments.length === 0)
920
- throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
921
- if (typeof t != "function")
922
- throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
923
- me.connect(this, t);
924
- }
925
- return e.prototype.observe = function(t, n) {
926
- if (arguments.length === 0)
927
- throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
928
- if (!mt(t))
929
- throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
930
- me.observe(this, t, n);
931
- }, e.prototype.unobserve = function(t) {
932
- if (arguments.length === 0)
933
- throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
934
- if (!mt(t))
935
- throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
936
- me.unobserve(this, t);
937
- }, e.prototype.disconnect = function() {
938
- me.disconnect(this);
939
- }, e.toString = function() {
940
- return "function ResizeObserver () { [polyfill code] }";
941
- }, e;
942
- }();
943
- const Zi = globalThis.ResizeObserver || Xi, fn = {
944
- duration: void 0,
945
- margin: {
946
- top: 0,
947
- bottom: 0,
948
- left: 0,
949
- right: 0
950
- },
951
- padding: {
952
- top: 0,
953
- bottom: 0,
954
- left: 0,
955
- right: 0
956
- },
957
- sizing: ie.Fit,
958
- width: void 0,
959
- height: void 0,
960
- svgDefs: void 0,
961
- ariaLabel: void 0
962
- };
963
- class ae {
964
- constructor(t) {
965
- this._defaultConfig = fn, this._isFirstRender = !0, this._renderAnimationFrameId = null, this._container = t;
966
- const n = ht(this._container);
967
- n.attr("role", "figure"), this.svg = n.append("svg").style("display", "block").attr("xmlns", "http://www.w3.org/2000/svg").attr("height", ae.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden", !0), this._svgDefs = this.svg.append("defs"), this._svgDefsExternal = this.svg.append("defs"), this.element = this.svg.node();
968
- }
969
- updateContainer(t) {
970
- var n;
971
- this.prevConfig = this.config, this.config = tn(this._defaultConfig, t), (t == null ? void 0 : t.svgDefs) !== ((n = this.prevConfig) === null || n === void 0 ? void 0 : n.svgDefs) && (this._svgDefsExternal.selectAll("*").remove(), this._svgDefsExternal.html(t.svgDefs));
972
- }
973
- // The `_preRender` step should be used to perform some actions before rendering.
974
- // For example, calculating scales, setting component sizes, etc ...
975
- // eslint-disable-next-line @typescript-eslint/no-empty-function
976
- _preRender() {
977
- }
978
- // The `_render` step should be used to perform the actual rendering
979
- _render(t) {
980
- const { config: n } = this;
981
- ht(this._container).attr("aria-label", n.ariaLabel), this._isFirstRender = !1;
982
- }
983
- // Warning: Some Containers (i.e. Single Container) may override this method, so if you introduce any changes here,
984
- // make sure to check that other containers didn't break after them.
985
- render(t = this.config.duration) {
986
- const n = this.config.width || this.containerWidth, r = this.config.height || this.containerHeight;
987
- this.svg.attr("width", n).attr("height", r), this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
988
- this._preRender(), this._render(t);
989
- });
990
- }
991
- get containerWidth() {
992
- return this.config.width ? this.element.clientWidth : this._container.clientWidth || this._container.getBoundingClientRect().width;
993
- }
994
- get containerHeight() {
995
- return this.config.height ? this.element.clientHeight : this._container.clientHeight || this._container.getBoundingClientRect().height || ae.DEFAULT_CONTAINER_HEIGHT;
996
- }
997
- get width() {
998
- return Y(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Number.POSITIVE_INFINITY);
999
- }
1000
- get height() {
1001
- return Y(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Number.POSITIVE_INFINITY);
1002
- }
1003
- _removeAllChildren() {
1004
- for (; this.element.firstChild; )
1005
- this.element.removeChild(this.element.firstChild);
1006
- }
1007
- _onResize() {
1008
- const { config: t } = this;
1009
- (t.sizing === ie.Fit || t.sizing === ie.FitWidth) && this.render(0);
1010
- }
1011
- _setUpResizeObserver() {
1012
- if (this._resizeObserver)
1013
- return;
1014
- const t = this._container.getBoundingClientRect();
1015
- this._containerSize = { width: t.width, height: t.height }, this._resizeObserver = new Zi((n, r) => {
1016
- cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {
1017
- const i = this._container.getBoundingClientRect(), s = { width: i.width, height: i.height };
1018
- !Ue(this._containerSize, s) && s.width && s.height && (this._containerSize = s, this._onResize());
1019
- });
1020
- }), this._resizeObserver.observe(this._container);
1021
- }
1022
- destroy() {
1023
- var t;
1024
- cancelAnimationFrame(this._renderAnimationFrameId), cancelAnimationFrame(this._resizeObserverAnimationFrameId), (t = this._resizeObserver) === null || t === void 0 || t.disconnect(), this.svg.remove();
1025
- }
1026
- }
1027
- ae.DEFAULT_CONTAINER_HEIGHT = 300;
1028
- function Ki(e) {
1029
- if (e.sheet)
1030
- return e.sheet;
1031
- for (var t = 0; t < document.styleSheets.length; t++)
1032
- if (document.styleSheets[t].ownerNode === e)
1033
- return document.styleSheets[t];
1034
- }
1035
- function Ji(e) {
1036
- var t = document.createElement("style");
1037
- return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
1038
- }
1039
- var Qi = /* @__PURE__ */ function() {
1040
- function e(n) {
1041
- var r = this;
1042
- this._insertTag = function(i) {
1043
- var s;
1044
- r.tags.length === 0 ? r.insertionPoint ? s = r.insertionPoint.nextSibling : r.prepend ? s = r.container.firstChild : s = r.before : s = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(i, s), r.tags.push(i);
1045
- }, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
1046
- }
1047
- var t = e.prototype;
1048
- return t.hydrate = function(r) {
1049
- r.forEach(this._insertTag);
1050
- }, t.insert = function(r) {
1051
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ji(this));
1052
- var i = this.tags[this.tags.length - 1];
1053
- if (this.isSpeedy) {
1054
- var s = Ki(i);
1055
- try {
1056
- s.insertRule(r, s.cssRules.length);
1057
- } catch {
1058
- }
1059
- } else
1060
- i.appendChild(document.createTextNode(r));
1061
- this.ctr++;
1062
- }, t.flush = function() {
1063
- this.tags.forEach(function(r) {
1064
- var i;
1065
- return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
1066
- }), this.tags = [], this.ctr = 0;
1067
- }, e;
1068
- }(), E = "-ms-", Re = "-moz-", y = "-webkit-", ln = "comm", nt = "rule", rt = "decl", ji = "@import", un = "@keyframes", es = "@layer", ts = Math.abs, Me = String.fromCharCode, ns = Object.assign;
1069
- function rs(e, t) {
1070
- return C(e, 0) ^ 45 ? (((t << 2 ^ C(e, 0)) << 2 ^ C(e, 1)) << 2 ^ C(e, 2)) << 2 ^ C(e, 3) : 0;
1071
- }
1072
- function hn(e) {
1073
- return e.trim();
1074
- }
1075
- function is(e, t) {
1076
- return (e = t.exec(e)) ? e[0] : e;
1077
- }
1078
- function b(e, t, n) {
1079
- return e.replace(t, n);
1080
- }
1081
- function Ge(e, t) {
1082
- return e.indexOf(t);
1083
- }
1084
- function C(e, t) {
1085
- return e.charCodeAt(t) | 0;
1086
- }
1087
- function oe(e, t, n) {
1088
- return e.slice(t, n);
1089
- }
1090
- function z(e) {
1091
- return e.length;
1092
- }
1093
- function it(e) {
1094
- return e.length;
1095
- }
1096
- function xe(e, t) {
1097
- return t.push(e), e;
1098
- }
1099
- function ss(e, t) {
1100
- return e.map(t).join("");
1101
- }
1102
- var ze = 1, K = 1, dn = 0, N = 0, A = 0, J = "";
1103
- function Be(e, t, n, r, i, s, a) {
1104
- return { value: e, root: t, parent: n, type: r, props: i, children: s, line: ze, column: K, length: a, return: "" };
1105
- }
1106
- function ee(e, t) {
1107
- return ns(Be("", null, null, "", null, null, 0), e, { length: -e.length }, t);
1108
- }
1109
- function as() {
1110
- return A;
1111
- }
1112
- function os() {
1113
- return A = N > 0 ? C(J, --N) : 0, K--, A === 10 && (K = 1, ze--), A;
1114
- }
1115
- function k() {
1116
- return A = N < dn ? C(J, N++) : 0, K++, A === 10 && (K = 1, ze++), A;
1117
- }
1118
- function B() {
1119
- return C(J, N);
1120
- }
1121
- function we() {
1122
- return N;
1123
- }
1124
- function ue(e, t) {
1125
- return oe(J, e, t);
1126
- }
1127
- function ce(e) {
1128
- switch (e) {
1129
- case 0:
1130
- case 9:
1131
- case 10:
1132
- case 13:
1133
- case 32:
1134
- return 5;
1135
- case 33:
1136
- case 43:
1137
- case 44:
1138
- case 47:
1139
- case 62:
1140
- case 64:
1141
- case 126:
1142
- case 59:
1143
- case 123:
1144
- case 125:
1145
- return 4;
1146
- case 58:
1147
- return 3;
1148
- case 34:
1149
- case 39:
1150
- case 40:
1151
- case 91:
1152
- return 2;
1153
- case 41:
1154
- case 93:
1155
- return 1;
1156
- }
1157
- return 0;
1158
- }
1159
- function pn(e) {
1160
- return ze = K = 1, dn = z(J = e), N = 0, [];
1161
- }
1162
- function vn(e) {
1163
- return J = "", e;
1164
- }
1165
- function Ae(e) {
1166
- return hn(ue(N - 1, Xe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1167
- }
1168
- function cs(e) {
1169
- for (; (A = B()) && A < 33; )
1170
- k();
1171
- return ce(e) > 2 || ce(A) > 3 ? "" : " ";
1172
- }
1173
- function fs(e, t) {
1174
- for (; --t && k() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
1175
- ;
1176
- return ue(e, we() + (t < 6 && B() == 32 && k() == 32));
1177
- }
1178
- function Xe(e) {
1179
- for (; k(); )
1180
- switch (A) {
1181
- case e:
1182
- return N;
1183
- case 34:
1184
- case 39:
1185
- e !== 34 && e !== 39 && Xe(A);
1186
- break;
1187
- case 40:
1188
- e === 41 && Xe(e);
1189
- break;
1190
- case 92:
1191
- k();
1192
- break;
1193
- }
1194
- return N;
1195
- }
1196
- function ls(e, t) {
1197
- for (; k() && e + A !== 57; )
1198
- if (e + A === 84 && B() === 47)
1199
- break;
1200
- return "/*" + ue(t, N - 1) + "*" + Me(e === 47 ? e : k());
1201
- }
1202
- function us(e) {
1203
- for (; !ce(B()); )
1204
- k();
1205
- return ue(e, N);
1206
- }
1207
- function hs(e) {
1208
- return vn(Se("", null, null, null, [""], e = pn(e), 0, [0], e));
1209
- }
1210
- function Se(e, t, n, r, i, s, a, c, o) {
1211
- for (var f = 0, l = 0, u = a, p = 0, d = 0, v = 0, h = 1, g = 1, m = 1, _ = 0, w = "", $ = i, S = s, R = r, x = w; g; )
1212
- switch (v = _, _ = k()) {
1213
- case 40:
1214
- if (v != 108 && C(x, u - 1) == 58) {
1215
- Ge(x += b(Ae(_), "&", "&\f"), "&\f") != -1 && (m = -1);
1216
- break;
1217
- }
1218
- case 34:
1219
- case 39:
1220
- case 91:
1221
- x += Ae(_);
1222
- break;
1223
- case 9:
1224
- case 10:
1225
- case 13:
1226
- case 32:
1227
- x += cs(v);
1228
- break;
1229
- case 92:
1230
- x += fs(we() - 1, 7);
1231
- continue;
1232
- case 47:
1233
- switch (B()) {
1234
- case 42:
1235
- case 47:
1236
- xe(ds(ls(k(), we()), t, n), o);
1237
- break;
1238
- default:
1239
- x += "/";
1240
- }
1241
- break;
1242
- case 123 * h:
1243
- c[f++] = z(x) * m;
1244
- case 125 * h:
1245
- case 59:
1246
- case 0:
1247
- switch (_) {
1248
- case 0:
1249
- case 125:
1250
- g = 0;
1251
- case 59 + l:
1252
- m == -1 && (x = b(x, /\f/g, "")), d > 0 && z(x) - u && xe(d > 32 ? $t(x + ";", r, n, u - 1) : $t(b(x, " ", "") + ";", r, n, u - 2), o);
1253
- break;
1254
- case 59:
1255
- x += ";";
1256
- default:
1257
- if (xe(R = Ct(x, t, n, f, l, i, c, w, $ = [], S = [], u), s), _ === 123)
1258
- if (l === 0)
1259
- Se(x, t, R, R, $, s, u, c, S);
1260
- else
1261
- switch (p === 99 && C(x, 3) === 110 ? 100 : p) {
1262
- case 100:
1263
- case 108:
1264
- case 109:
1265
- case 115:
1266
- Se(e, R, R, r && xe(Ct(e, R, R, 0, 0, i, c, w, i, $ = [], u), S), i, S, u, c, r ? $ : S);
1267
- break;
1268
- default:
1269
- Se(x, R, R, R, [""], S, 0, c, S);
1270
- }
1271
- }
1272
- f = l = d = 0, h = m = 1, w = x = "", u = a;
1273
- break;
1274
- case 58:
1275
- u = 1 + z(x), d = v;
1276
- default:
1277
- if (h < 1) {
1278
- if (_ == 123)
1279
- --h;
1280
- else if (_ == 125 && h++ == 0 && os() == 125)
1281
- continue;
1282
- }
1283
- switch (x += Me(_), _ * h) {
1284
- case 38:
1285
- m = l > 0 ? 1 : (x += "\f", -1);
1286
- break;
1287
- case 44:
1288
- c[f++] = (z(x) - 1) * m, m = 1;
1289
- break;
1290
- case 64:
1291
- B() === 45 && (x += Ae(k())), p = B(), l = u = z(w = x += us(we())), _++;
1292
- break;
1293
- case 45:
1294
- v === 45 && z(x) == 2 && (h = 0);
1295
- }
1296
- }
1297
- return s;
1298
- }
1299
- function Ct(e, t, n, r, i, s, a, c, o, f, l) {
1300
- for (var u = i - 1, p = i === 0 ? s : [""], d = it(p), v = 0, h = 0, g = 0; v < r; ++v)
1301
- for (var m = 0, _ = oe(e, u + 1, u = ts(h = a[v])), w = e; m < d; ++m)
1302
- (w = hn(h > 0 ? p[m] + " " + _ : b(_, /&\f/g, p[m]))) && (o[g++] = w);
1303
- return Be(e, t, n, i === 0 ? nt : c, o, f, l);
1304
- }
1305
- function ds(e, t, n) {
1306
- return Be(e, t, n, ln, Me(as()), oe(e, 2, -2), 0);
1307
- }
1308
- function $t(e, t, n, r) {
1309
- return Be(e, t, n, rt, oe(e, 0, r), oe(e, r + 1, -1), r);
1310
- }
1311
- function X(e, t) {
1312
- for (var n = "", r = it(e), i = 0; i < r; i++)
1313
- n += t(e[i], i, e, t) || "";
1314
- return n;
1315
- }
1316
- function ps(e, t, n, r) {
1317
- switch (e.type) {
1318
- case es:
1319
- if (e.children.length) break;
1320
- case ji:
1321
- case rt:
1322
- return e.return = e.return || e.value;
1323
- case ln:
1324
- return "";
1325
- case un:
1326
- return e.return = e.value + "{" + X(e.children, r) + "}";
1327
- case nt:
1328
- e.value = e.props.join(",");
1329
- }
1330
- return z(n = X(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1331
- }
1332
- function vs(e) {
1333
- var t = it(e);
1334
- return function(n, r, i, s) {
1335
- for (var a = "", c = 0; c < t; c++)
1336
- a += e[c](n, r, i, s) || "";
1337
- return a;
1338
- };
1339
- }
1340
- function gs(e) {
1341
- return function(t) {
1342
- t.root || (t = t.return) && e(t);
1343
- };
1344
- }
1345
- function ms(e) {
1346
- var t = /* @__PURE__ */ Object.create(null);
1347
- return function(n) {
1348
- return t[n] === void 0 && (t[n] = e(n)), t[n];
1349
- };
1350
- }
1351
- var xs = function(t, n, r) {
1352
- for (var i = 0, s = 0; i = s, s = B(), i === 38 && s === 12 && (n[r] = 1), !ce(s); )
1353
- k();
1354
- return ue(t, N);
1355
- }, ys = function(t, n) {
1356
- var r = -1, i = 44;
1357
- do
1358
- switch (ce(i)) {
1359
- case 0:
1360
- i === 38 && B() === 12 && (n[r] = 1), t[r] += xs(N - 1, n, r);
1361
- break;
1362
- case 2:
1363
- t[r] += Ae(i);
1364
- break;
1365
- case 4:
1366
- if (i === 44) {
1367
- t[++r] = B() === 58 ? "&\f" : "", n[r] = t[r].length;
1368
- break;
1369
- }
1370
- default:
1371
- t[r] += Me(i);
1372
- }
1373
- while (i = k());
1374
- return t;
1375
- }, bs = function(t, n) {
1376
- return vn(ys(pn(t), n));
1377
- }, Et = /* @__PURE__ */ new WeakMap(), _s = function(t) {
1378
- if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
1379
- // negative .length indicates that this rule has been already prefixed
1380
- t.length < 1)) {
1381
- for (var n = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
1382
- if (r = r.parent, !r) return;
1383
- if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Et.get(r)) && !i) {
1384
- Et.set(t, !0);
1385
- for (var s = [], a = bs(n, s), c = r.props, o = 0, f = 0; o < a.length; o++)
1386
- for (var l = 0; l < c.length; l++, f++)
1387
- t.props[f] = s[o] ? a[o].replace(/&\f/g, c[l]) : c[l] + " " + a[o];
1388
- }
1389
- }
1390
- }, ws = function(t) {
1391
- if (t.type === "decl") {
1392
- var n = t.value;
1393
- // charcode for l
1394
- n.charCodeAt(0) === 108 && // charcode for b
1395
- n.charCodeAt(2) === 98 && (t.return = "", t.value = "");
1396
- }
1397
- };
1398
- function gn(e, t) {
1399
- switch (rs(e, t)) {
1400
- case 5103:
1401
- return y + "print-" + e + e;
1402
- case 5737:
1403
- case 4201:
1404
- case 3177:
1405
- case 3433:
1406
- case 1641:
1407
- case 4457:
1408
- case 2921:
1409
- case 5572:
1410
- case 6356:
1411
- case 5844:
1412
- case 3191:
1413
- case 6645:
1414
- case 3005:
1415
- case 6391:
1416
- case 5879:
1417
- case 5623:
1418
- case 6135:
1419
- case 4599:
1420
- case 4855:
1421
- case 4215:
1422
- case 6389:
1423
- case 5109:
1424
- case 5365:
1425
- case 5621:
1426
- case 3829:
1427
- return y + e + e;
1428
- case 5349:
1429
- case 4246:
1430
- case 4810:
1431
- case 6968:
1432
- case 2756:
1433
- return y + e + Re + e + E + e + e;
1434
- case 6828:
1435
- case 4268:
1436
- return y + e + E + e + e;
1437
- case 6165:
1438
- return y + e + E + "flex-" + e + e;
1439
- case 5187:
1440
- return y + e + b(e, /(\w+).+(:[^]+)/, y + "box-$1$2" + E + "flex-$1$2") + e;
1441
- case 5443:
1442
- return y + e + E + "flex-item-" + b(e, /flex-|-self/, "") + e;
1443
- case 4675:
1444
- return y + e + E + "flex-line-pack" + b(e, /align-content|flex-|-self/, "") + e;
1445
- case 5548:
1446
- return y + e + E + b(e, "shrink", "negative") + e;
1447
- case 5292:
1448
- return y + e + E + b(e, "basis", "preferred-size") + e;
1449
- case 6060:
1450
- return y + "box-" + b(e, "-grow", "") + y + e + E + b(e, "grow", "positive") + e;
1451
- case 4554:
1452
- return y + b(e, /([^-])(transform)/g, "$1" + y + "$2") + e;
1453
- case 6187:
1454
- return b(b(b(e, /(zoom-|grab)/, y + "$1"), /(image-set)/, y + "$1"), e, "") + e;
1455
- case 5495:
1456
- case 3959:
1457
- return b(e, /(image-set\([^]*)/, y + "$1$`$1");
1458
- case 4968:
1459
- return b(b(e, /(.+:)(flex-)?(.*)/, y + "box-pack:$3" + E + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + y + e + e;
1460
- case 4095:
1461
- case 3583:
1462
- case 4068:
1463
- case 2532:
1464
- return b(e, /(.+)-inline(.+)/, y + "$1$2") + e;
1465
- case 8116:
1466
- case 7059:
1467
- case 5753:
1468
- case 5535:
1469
- case 5445:
1470
- case 5701:
1471
- case 4933:
1472
- case 4677:
1473
- case 5533:
1474
- case 5789:
1475
- case 5021:
1476
- case 4765:
1477
- if (z(e) - 1 - t > 6) switch (C(e, t + 1)) {
1478
- case 109:
1479
- if (C(e, t + 4) !== 45) break;
1480
- case 102:
1481
- return b(e, /(.+:)(.+)-([^]+)/, "$1" + y + "$2-$3$1" + Re + (C(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1482
- case 115:
1483
- return ~Ge(e, "stretch") ? gn(b(e, "stretch", "fill-available"), t) + e : e;
1484
- }
1485
- break;
1486
- case 4949:
1487
- if (C(e, t + 1) !== 115) break;
1488
- case 6444:
1489
- switch (C(e, z(e) - 3 - (~Ge(e, "!important") && 10))) {
1490
- case 107:
1491
- return b(e, ":", ":" + y) + e;
1492
- case 101:
1493
- return b(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + y + (C(e, 14) === 45 ? "inline-" : "") + "box$3$1" + y + "$2$3$1" + E + "$2box$3") + e;
1494
- }
1495
- break;
1496
- case 5936:
1497
- switch (C(e, t + 11)) {
1498
- case 114:
1499
- return y + e + E + b(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1500
- case 108:
1501
- return y + e + E + b(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1502
- case 45:
1503
- return y + e + E + b(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1504
- }
1505
- return y + e + E + e + e;
1506
- }
1507
- return e;
1508
- }
1509
- var As = function(t, n, r, i) {
1510
- if (t.length > -1 && !t.return) switch (t.type) {
1511
- case rt:
1512
- t.return = gn(t.value, t.length);
1513
- break;
1514
- case un:
1515
- return X([ee(t, {
1516
- value: b(t.value, "@", "@" + y)
1517
- })], i);
1518
- case nt:
1519
- if (t.length) return ss(t.props, function(s) {
1520
- switch (is(s, /(::plac\w+|:read-\w+)/)) {
1521
- case ":read-only":
1522
- case ":read-write":
1523
- return X([ee(t, {
1524
- props: [b(s, /:(read-\w+)/, ":" + Re + "$1")]
1525
- })], i);
1526
- case "::placeholder":
1527
- return X([ee(t, {
1528
- props: [b(s, /:(plac\w+)/, ":" + y + "input-$1")]
1529
- }), ee(t, {
1530
- props: [b(s, /:(plac\w+)/, ":" + Re + "$1")]
1531
- }), ee(t, {
1532
- props: [b(s, /:(plac\w+)/, E + "input-$1")]
1533
- })], i);
1534
- }
1535
- return "";
1536
- });
1537
- }
1538
- }, Ss = [As], Cs = function(t) {
1539
- var n = t.key;
1540
- if (n === "css") {
1541
- var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
1542
- Array.prototype.forEach.call(r, function(h) {
1543
- var g = h.getAttribute("data-emotion");
1544
- g.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
1545
- });
1546
- }
1547
- var i = t.stylisPlugins || Ss, s = {}, a, c = [];
1548
- a = t.container || document.head, Array.prototype.forEach.call(
1549
- // this means we will ignore elements which don't have a space in them which
1550
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1551
- document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
1552
- function(h) {
1553
- for (var g = h.getAttribute("data-emotion").split(" "), m = 1; m < g.length; m++)
1554
- s[g[m]] = !0;
1555
- c.push(h);
1556
- }
1557
- );
1558
- var o, f = [_s, ws];
1559
- {
1560
- var l, u = [ps, gs(function(h) {
1561
- l.insert(h);
1562
- })], p = vs(f.concat(i, u)), d = function(g) {
1563
- return X(hs(g), p);
1564
- };
1565
- o = function(g, m, _, w) {
1566
- l = _, d(g ? g + "{" + m.styles + "}" : m.styles), w && (v.inserted[m.name] = !0);
1567
- };
1568
- }
1569
- var v = {
1570
- key: n,
1571
- sheet: new Qi({
1572
- key: n,
1573
- container: a,
1574
- nonce: t.nonce,
1575
- speedy: t.speedy,
1576
- prepend: t.prepend,
1577
- insertionPoint: t.insertionPoint
1578
- }),
1579
- nonce: t.nonce,
1580
- inserted: s,
1581
- registered: {},
1582
- insert: o
1583
- };
1584
- return v.sheet.hydrate(c), v;
1585
- };
1586
- function $s(e) {
1587
- for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4)
1588
- n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
1589
- (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
1590
- n >>> 24, t = /* Math.imul(k, m): */
1591
- (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1592
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
1593
- switch (i) {
1594
- case 3:
1595
- t ^= (e.charCodeAt(r + 2) & 255) << 16;
1596
- case 2:
1597
- t ^= (e.charCodeAt(r + 1) & 255) << 8;
1598
- case 1:
1599
- t ^= e.charCodeAt(r) & 255, t = /* Math.imul(h, m): */
1600
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
1601
- }
1602
- return t ^= t >>> 13, t = /* Math.imul(h, m): */
1603
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
1604
- }
1605
- var Es = {
1606
- animationIterationCount: 1,
1607
- aspectRatio: 1,
1608
- borderImageOutset: 1,
1609
- borderImageSlice: 1,
1610
- borderImageWidth: 1,
1611
- boxFlex: 1,
1612
- boxFlexGroup: 1,
1613
- boxOrdinalGroup: 1,
1614
- columnCount: 1,
1615
- columns: 1,
1616
- flex: 1,
1617
- flexGrow: 1,
1618
- flexPositive: 1,
1619
- flexShrink: 1,
1620
- flexNegative: 1,
1621
- flexOrder: 1,
1622
- gridRow: 1,
1623
- gridRowEnd: 1,
1624
- gridRowSpan: 1,
1625
- gridRowStart: 1,
1626
- gridColumn: 1,
1627
- gridColumnEnd: 1,
1628
- gridColumnSpan: 1,
1629
- gridColumnStart: 1,
1630
- msGridRow: 1,
1631
- msGridRowSpan: 1,
1632
- msGridColumn: 1,
1633
- msGridColumnSpan: 1,
1634
- fontWeight: 1,
1635
- lineHeight: 1,
1636
- opacity: 1,
1637
- order: 1,
1638
- orphans: 1,
1639
- scale: 1,
1640
- tabSize: 1,
1641
- widows: 1,
1642
- zIndex: 1,
1643
- zoom: 1,
1644
- WebkitLineClamp: 1,
1645
- // SVG-related properties
1646
- fillOpacity: 1,
1647
- floodOpacity: 1,
1648
- stopOpacity: 1,
1649
- strokeDasharray: 1,
1650
- strokeDashoffset: 1,
1651
- strokeMiterlimit: 1,
1652
- strokeOpacity: 1,
1653
- strokeWidth: 1
1654
- }, Rs = /[A-Z]|^ms/g, Os = /_EMO_([^_]+?)_([^]*?)_EMO_/g, mn = function(t) {
1655
- return t.charCodeAt(1) === 45;
1656
- }, Rt = function(t) {
1657
- return t != null && typeof t != "boolean";
1658
- }, Le = /* @__PURE__ */ ms(function(e) {
1659
- return mn(e) ? e : e.replace(Rs, "-$&").toLowerCase();
1660
- }), Ot = function(t, n) {
1661
- switch (t) {
1662
- case "animation":
1663
- case "animationName":
1664
- if (typeof n == "string")
1665
- return n.replace(Os, function(r, i, s) {
1666
- return H = {
1667
- name: i,
1668
- styles: s,
1669
- next: H
1670
- }, i;
1671
- });
1672
- }
1673
- return Es[t] !== 1 && !mn(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
1674
- };
1675
- function Oe(e, t, n) {
1676
- if (n == null)
1677
- return "";
1678
- var r = n;
1679
- if (r.__emotion_styles !== void 0)
1680
- return r;
1681
- switch (typeof n) {
1682
- case "boolean":
1683
- return "";
1684
- case "object": {
1685
- var i = n;
1686
- if (i.anim === 1)
1687
- return H = {
1688
- name: i.name,
1689
- styles: i.styles,
1690
- next: H
1691
- }, i.name;
1692
- var s = n;
1693
- if (s.styles !== void 0) {
1694
- var a = s.next;
1695
- if (a !== void 0)
1696
- for (; a !== void 0; )
1697
- H = {
1698
- name: a.name,
1699
- styles: a.styles,
1700
- next: H
1701
- }, a = a.next;
1702
- var c = s.styles + ";";
1703
- return c;
1704
- }
1705
- return Ns(e, t, n);
1706
- }
1707
- }
1708
- var o = n;
1709
- if (t == null)
1710
- return o;
1711
- var f = t[o];
1712
- return f !== void 0 ? f : o;
1713
- }
1714
- function Ns(e, t, n) {
1715
- var r = "";
1716
- if (Array.isArray(n))
1717
- for (var i = 0; i < n.length; i++)
1718
- r += Oe(e, t, n[i]) + ";";
1719
- else
1720
- for (var s in n) {
1721
- var a = n[s];
1722
- if (typeof a != "object") {
1723
- var c = a;
1724
- t != null && t[c] !== void 0 ? r += s + "{" + t[c] + "}" : Rt(c) && (r += Le(s) + ":" + Ot(s, c) + ";");
1725
- } else if (Array.isArray(a) && typeof a[0] == "string" && (t == null || t[a[0]] === void 0))
1726
- for (var o = 0; o < a.length; o++)
1727
- Rt(a[o]) && (r += Le(s) + ":" + Ot(s, a[o]) + ";");
1728
- else {
1729
- var f = Oe(e, t, a);
1730
- switch (s) {
1731
- case "animation":
1732
- case "animationName": {
1733
- r += Le(s) + ":" + f + ";";
1734
- break;
1735
- }
1736
- default:
1737
- r += s + "{" + f + "}";
1738
- }
1739
- }
1740
- }
1741
- return r;
1742
- }
1743
- var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g, H;
1744
- function Ve(e, t, n) {
1745
- if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1746
- return e[0];
1747
- var r = !0, i = "";
1748
- H = void 0;
1749
- var s = e[0];
1750
- if (s == null || s.raw === void 0)
1751
- r = !1, i += Oe(n, t, s);
1752
- else {
1753
- var a = s;
1754
- i += a[0];
1755
- }
1756
- for (var c = 1; c < e.length; c++)
1757
- if (i += Oe(n, t, e[c]), r) {
1758
- var o = s;
1759
- i += o[c];
1760
- }
1761
- Nt.lastIndex = 0;
1762
- for (var f = "", l; (l = Nt.exec(i)) !== null; )
1763
- f += "-" + l[1];
1764
- var u = $s(i) + f;
1765
- return {
1766
- name: u,
1767
- styles: i,
1768
- next: H
1769
- };
1770
- }
1771
- function xn(e, t, n) {
1772
- var r = "";
1773
- return n.split(" ").forEach(function(i) {
1774
- e[i] !== void 0 ? t.push(e[i] + ";") : i && (r += i + " ");
1775
- }), r;
1776
- }
1777
- var Ts = function(t, n, r) {
1778
- var i = t.key + "-" + n.name;
1779
- // we only need to add the styles to the registered cache if the
1780
- // class name could be used further down
1781
- // the tree but if it's a string tag, we know it won't
1782
- // so we don't have to add it to registered cache.
1783
- // this improves memory usage since we can avoid storing the whole style string
1784
- t.registered[i] === void 0 && (t.registered[i] = n.styles);
1785
- }, ks = function(t, n, r) {
1786
- Ts(t, n);
1787
- var i = t.key + "-" + n.name;
1788
- if (t.inserted[n.name] === void 0) {
1789
- var s = n;
1790
- do
1791
- t.insert(n === s ? "." + i : "", s, t.sheet, !0), s = s.next;
1792
- while (s !== void 0);
1793
- }
1794
- };
1795
- function Tt(e, t) {
1796
- if (e.inserted[t.name] === void 0)
1797
- return e.insert("", t, e.sheet, !0);
1798
- }
1799
- function kt(e, t, n) {
1800
- var r = [], i = xn(e, r, n);
1801
- return r.length < 2 ? n : i + t(r);
1802
- }
1803
- var Ds = function(t) {
1804
- var n = Cs(t);
1805
- n.sheet.speedy = function(c) {
1806
- this.isSpeedy = c;
1807
- }, n.compat = !0;
1808
- var r = function() {
1809
- for (var o = arguments.length, f = new Array(o), l = 0; l < o; l++)
1810
- f[l] = arguments[l];
1811
- var u = Ve(f, n.registered, void 0);
1812
- return ks(n, u), n.key + "-" + u.name;
1813
- }, i = function() {
1814
- for (var o = arguments.length, f = new Array(o), l = 0; l < o; l++)
1815
- f[l] = arguments[l];
1816
- var u = Ve(f, n.registered), p = "animation-" + u.name;
1817
- return Tt(n, {
1818
- name: u.name,
1819
- styles: "@keyframes " + p + "{" + u.styles + "}"
1820
- }), p;
1821
- }, s = function() {
1822
- for (var o = arguments.length, f = new Array(o), l = 0; l < o; l++)
1823
- f[l] = arguments[l];
1824
- var u = Ve(f, n.registered);
1825
- Tt(n, u);
1826
- }, a = function() {
1827
- for (var o = arguments.length, f = new Array(o), l = 0; l < o; l++)
1828
- f[l] = arguments[l];
1829
- return kt(n.registered, r, Is(f));
1830
- };
1831
- return {
1832
- css: r,
1833
- cx: a,
1834
- injectGlobal: s,
1835
- keyframes: i,
1836
- hydrate: function(o) {
1837
- o.forEach(function(f) {
1838
- n.inserted[f] = !0;
1839
- });
1840
- },
1841
- flush: function() {
1842
- n.registered = {}, n.inserted = {}, n.sheet.flush();
1843
- },
1844
- sheet: n.sheet,
1845
- cache: n,
1846
- getRegisteredStyles: xn.bind(null, n.registered),
1847
- merge: kt.bind(null, n.registered, r)
1848
- };
1849
- }, Is = function e(t) {
1850
- for (var n = "", r = 0; r < t.length; r++) {
1851
- var i = t[r];
1852
- if (i != null) {
1853
- var s = void 0;
1854
- switch (typeof i) {
1855
- case "boolean":
1856
- break;
1857
- case "object": {
1858
- if (Array.isArray(i))
1859
- s = e(i);
1860
- else {
1861
- s = "";
1862
- for (var a in i)
1863
- i[a] && a && (s && (s += " "), s += a);
1864
- }
1865
- break;
1866
- }
1867
- default:
1868
- s = i;
1869
- }
1870
- s && (n && (n += " "), n += s);
1871
- }
1872
- }
1873
- return n;
1874
- }, yn = Ds({
1875
- key: "css"
1876
- }), Ms = yn.injectGlobal, zs = yn.css, Bs = function(t, n) {
1877
- n || (n = [0, ""]), t = String(t);
1878
- var r = parseFloat(t, 10);
1879
- return n[0] = r, n[1] = t.match(/[\d.\-\+]*\s*(.*)/)[1] || "", n;
1880
- }, bn = Bs, te = _n("in", document.body);
1881
- function Ze(e, t) {
1882
- var n = bn(getComputedStyle(e).getPropertyValue(t));
1883
- return n[0] * wn(n[1], e);
1884
- }
1885
- function _n(e, t) {
1886
- var n = document.createElement("div");
1887
- n.style.height = "128" + e, t.appendChild(n);
1888
- var r = Ze(n, "height") / 128;
1889
- return t.removeChild(n), r;
1890
- }
1891
- function wn(e, t) {
1892
- if (!e) return null;
1893
- switch (t = t || document.body, e = (e + "" || "px").trim().toLowerCase(), (t === window || t === document) && (t = document.body), e) {
1894
- case "%":
1895
- return t.clientHeight / 100;
1896
- case "ch":
1897
- case "ex":
1898
- return _n(e, t);
1899
- case "em":
1900
- return Ze(t, "font-size");
1901
- case "rem":
1902
- return Ze(document.body, "font-size");
1903
- case "vw":
1904
- return window.innerWidth / 100;
1905
- case "vh":
1906
- return window.innerHeight / 100;
1907
- case "vmin":
1908
- return Math.min(window.innerWidth, window.innerHeight) / 100;
1909
- case "vmax":
1910
- return Math.max(window.innerWidth, window.innerHeight) / 100;
1911
- case "in":
1912
- return te;
1913
- case "cm":
1914
- return te / 2.54;
1915
- case "mm":
1916
- return te / 25.4;
1917
- case "pt":
1918
- return te / 72;
1919
- case "pc":
1920
- return te / 6;
1921
- case "px":
1922
- return 1;
1923
- }
1924
- var n = bn(e);
1925
- if (!isNaN(n[0]) && n[1]) {
1926
- var r = wn(n[1], t);
1927
- return typeof r == "number" ? n[0] * r : null;
1928
- }
1929
- return null;
1930
- }
1931
- function Fs() {
1932
- const e = () => Math.floor((1 + crypto.getRandomValues(new Uint32Array(1))[0]) * 65536).toString(16).substring(1);
1933
- return `${e() + e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`;
1934
- }
1935
- function st(e, t, n) {
1936
- e.prototype = t.prototype = n, n.constructor = e;
1937
- }
1938
- function An(e, t) {
1939
- var n = Object.create(e.prototype);
1940
- for (var r in t) n[r] = t[r];
1941
- return n;
1942
- }
1943
- function he() {
1944
- }
1945
- var fe = 0.7, Ne = 1 / fe, Z = "\\s*([+-]?\\d+)\\s*", le = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", F = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ps = /^#([0-9a-f]{3,8})$/, Hs = new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`), Ls = new RegExp(`^rgb\\(${F},${F},${F}\\)$`), Vs = new RegExp(`^rgba\\(${Z},${Z},${Z},${le}\\)$`), Ws = new RegExp(`^rgba\\(${F},${F},${F},${le}\\)$`), qs = new RegExp(`^hsl\\(${le},${F},${F}\\)$`), Us = new RegExp(`^hsla\\(${le},${F},${F},${le}\\)$`), Dt = {
1946
- aliceblue: 15792383,
1947
- antiquewhite: 16444375,
1948
- aqua: 65535,
1949
- aquamarine: 8388564,
1950
- azure: 15794175,
1951
- beige: 16119260,
1952
- bisque: 16770244,
1953
- black: 0,
1954
- blanchedalmond: 16772045,
1955
- blue: 255,
1956
- blueviolet: 9055202,
1957
- brown: 10824234,
1958
- burlywood: 14596231,
1959
- cadetblue: 6266528,
1960
- chartreuse: 8388352,
1961
- chocolate: 13789470,
1962
- coral: 16744272,
1963
- cornflowerblue: 6591981,
1964
- cornsilk: 16775388,
1965
- crimson: 14423100,
1966
- cyan: 65535,
1967
- darkblue: 139,
1968
- darkcyan: 35723,
1969
- darkgoldenrod: 12092939,
1970
- darkgray: 11119017,
1971
- darkgreen: 25600,
1972
- darkgrey: 11119017,
1973
- darkkhaki: 12433259,
1974
- darkmagenta: 9109643,
1975
- darkolivegreen: 5597999,
1976
- darkorange: 16747520,
1977
- darkorchid: 10040012,
1978
- darkred: 9109504,
1979
- darksalmon: 15308410,
1980
- darkseagreen: 9419919,
1981
- darkslateblue: 4734347,
1982
- darkslategray: 3100495,
1983
- darkslategrey: 3100495,
1984
- darkturquoise: 52945,
1985
- darkviolet: 9699539,
1986
- deeppink: 16716947,
1987
- deepskyblue: 49151,
1988
- dimgray: 6908265,
1989
- dimgrey: 6908265,
1990
- dodgerblue: 2003199,
1991
- firebrick: 11674146,
1992
- floralwhite: 16775920,
1993
- forestgreen: 2263842,
1994
- fuchsia: 16711935,
1995
- gainsboro: 14474460,
1996
- ghostwhite: 16316671,
1997
- gold: 16766720,
1998
- goldenrod: 14329120,
1999
- gray: 8421504,
2000
- green: 32768,
2001
- greenyellow: 11403055,
2002
- grey: 8421504,
2003
- honeydew: 15794160,
2004
- hotpink: 16738740,
2005
- indianred: 13458524,
2006
- indigo: 4915330,
2007
- ivory: 16777200,
2008
- khaki: 15787660,
2009
- lavender: 15132410,
2010
- lavenderblush: 16773365,
2011
- lawngreen: 8190976,
2012
- lemonchiffon: 16775885,
2013
- lightblue: 11393254,
2014
- lightcoral: 15761536,
2015
- lightcyan: 14745599,
2016
- lightgoldenrodyellow: 16448210,
2017
- lightgray: 13882323,
2018
- lightgreen: 9498256,
2019
- lightgrey: 13882323,
2020
- lightpink: 16758465,
2021
- lightsalmon: 16752762,
2022
- lightseagreen: 2142890,
2023
- lightskyblue: 8900346,
2024
- lightslategray: 7833753,
2025
- lightslategrey: 7833753,
2026
- lightsteelblue: 11584734,
2027
- lightyellow: 16777184,
2028
- lime: 65280,
2029
- limegreen: 3329330,
2030
- linen: 16445670,
2031
- magenta: 16711935,
2032
- maroon: 8388608,
2033
- mediumaquamarine: 6737322,
2034
- mediumblue: 205,
2035
- mediumorchid: 12211667,
2036
- mediumpurple: 9662683,
2037
- mediumseagreen: 3978097,
2038
- mediumslateblue: 8087790,
2039
- mediumspringgreen: 64154,
2040
- mediumturquoise: 4772300,
2041
- mediumvioletred: 13047173,
2042
- midnightblue: 1644912,
2043
- mintcream: 16121850,
2044
- mistyrose: 16770273,
2045
- moccasin: 16770229,
2046
- navajowhite: 16768685,
2047
- navy: 128,
2048
- oldlace: 16643558,
2049
- olive: 8421376,
2050
- olivedrab: 7048739,
2051
- orange: 16753920,
2052
- orangered: 16729344,
2053
- orchid: 14315734,
2054
- palegoldenrod: 15657130,
2055
- palegreen: 10025880,
2056
- paleturquoise: 11529966,
2057
- palevioletred: 14381203,
2058
- papayawhip: 16773077,
2059
- peachpuff: 16767673,
2060
- peru: 13468991,
2061
- pink: 16761035,
2062
- plum: 14524637,
2063
- powderblue: 11591910,
2064
- purple: 8388736,
2065
- rebeccapurple: 6697881,
2066
- red: 16711680,
2067
- rosybrown: 12357519,
2068
- royalblue: 4286945,
2069
- saddlebrown: 9127187,
2070
- salmon: 16416882,
2071
- sandybrown: 16032864,
2072
- seagreen: 3050327,
2073
- seashell: 16774638,
2074
- sienna: 10506797,
2075
- silver: 12632256,
2076
- skyblue: 8900331,
2077
- slateblue: 6970061,
2078
- slategray: 7372944,
2079
- slategrey: 7372944,
2080
- snow: 16775930,
2081
- springgreen: 65407,
2082
- steelblue: 4620980,
2083
- tan: 13808780,
2084
- teal: 32896,
2085
- thistle: 14204888,
2086
- tomato: 16737095,
2087
- turquoise: 4251856,
2088
- violet: 15631086,
2089
- wheat: 16113331,
2090
- white: 16777215,
2091
- whitesmoke: 16119285,
2092
- yellow: 16776960,
2093
- yellowgreen: 10145074
2094
- };
2095
- st(he, at, {
2096
- copy(e) {
2097
- return Object.assign(new this.constructor(), this, e);
2098
- },
2099
- displayable() {
2100
- return this.rgb().displayable();
2101
- },
2102
- hex: It,
2103
- // Deprecated! Use color.formatHex.
2104
- formatHex: It,
2105
- formatHex8: Ys,
2106
- formatHsl: Gs,
2107
- formatRgb: Mt,
2108
- toString: Mt
2109
- });
2110
- function It() {
2111
- return this.rgb().formatHex();
2112
- }
2113
- function Ys() {
2114
- return this.rgb().formatHex8();
2115
- }
2116
- function Gs() {
2117
- return Sn(this).formatHsl();
2118
- }
2119
- function Mt() {
2120
- return this.rgb().formatRgb();
2121
- }
2122
- function at(e) {
2123
- var t, n;
2124
- return e = (e + "").trim().toLowerCase(), (t = Ps.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? zt(t) : n === 3 ? new O(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ye(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ye(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Hs.exec(e)) ? new O(t[1], t[2], t[3], 1) : (t = Ls.exec(e)) ? new O(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Vs.exec(e)) ? ye(t[1], t[2], t[3], t[4]) : (t = Ws.exec(e)) ? ye(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = qs.exec(e)) ? Pt(t[1], t[2] / 100, t[3] / 100, 1) : (t = Us.exec(e)) ? Pt(t[1], t[2] / 100, t[3] / 100, t[4]) : Dt.hasOwnProperty(e) ? zt(Dt[e]) : e === "transparent" ? new O(NaN, NaN, NaN, 0) : null;
2125
- }
2126
- function zt(e) {
2127
- return new O(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
2128
- }
2129
- function ye(e, t, n, r) {
2130
- return r <= 0 && (e = t = n = NaN), new O(e, t, n, r);
2131
- }
2132
- function Xs(e) {
2133
- return e instanceof he || (e = at(e)), e ? (e = e.rgb(), new O(e.r, e.g, e.b, e.opacity)) : new O();
2134
- }
2135
- function Zs(e, t, n, r) {
2136
- return arguments.length === 1 ? Xs(e) : new O(e, t, n, r ?? 1);
2137
- }
2138
- function O(e, t, n, r) {
2139
- this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
2140
- }
2141
- st(O, Zs, An(he, {
2142
- brighter(e) {
2143
- return e = e == null ? Ne : Math.pow(Ne, e), new O(this.r * e, this.g * e, this.b * e, this.opacity);
2144
- },
2145
- darker(e) {
2146
- return e = e == null ? fe : Math.pow(fe, e), new O(this.r * e, this.g * e, this.b * e, this.opacity);
2147
- },
2148
- rgb() {
2149
- return this;
2150
- },
2151
- clamp() {
2152
- return new O(U(this.r), U(this.g), U(this.b), Te(this.opacity));
2153
- },
2154
- displayable() {
2155
- 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;
2156
- },
2157
- hex: Bt,
2158
- // Deprecated! Use color.formatHex.
2159
- formatHex: Bt,
2160
- formatHex8: Ks,
2161
- formatRgb: Ft,
2162
- toString: Ft
2163
- }));
2164
- function Bt() {
2165
- return `#${V(this.r)}${V(this.g)}${V(this.b)}`;
2166
- }
2167
- function Ks() {
2168
- return `#${V(this.r)}${V(this.g)}${V(this.b)}${V((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2169
- }
2170
- function Ft() {
2171
- const e = Te(this.opacity);
2172
- return `${e === 1 ? "rgb(" : "rgba("}${U(this.r)}, ${U(this.g)}, ${U(this.b)}${e === 1 ? ")" : `, ${e})`}`;
2173
- }
2174
- function Te(e) {
2175
- return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
2176
- }
2177
- function U(e) {
2178
- return Math.max(0, Math.min(255, Math.round(e) || 0));
2179
- }
2180
- function V(e) {
2181
- return e = U(e), (e < 16 ? "0" : "") + e.toString(16);
2182
- }
2183
- function Pt(e, t, n, r) {
2184
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new I(e, t, n, r);
2185
- }
2186
- function Sn(e) {
2187
- if (e instanceof I) return new I(e.h, e.s, e.l, e.opacity);
2188
- if (e instanceof he || (e = at(e)), !e) return new I();
2189
- if (e instanceof I) return e;
2190
- e = e.rgb();
2191
- var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), s = Math.max(t, n, r), a = NaN, c = s - i, o = (s + i) / 2;
2192
- return c ? (t === s ? a = (n - r) / c + (n < r) * 6 : n === s ? a = (r - t) / c + 2 : a = (t - n) / c + 4, c /= o < 0.5 ? s + i : 2 - s - i, a *= 60) : c = o > 0 && o < 1 ? 0 : a, new I(a, c, o, e.opacity);
2193
- }
2194
- function ot(e, t, n, r) {
2195
- return arguments.length === 1 ? Sn(e) : new I(e, t, n, r ?? 1);
2196
- }
2197
- function I(e, t, n, r) {
2198
- this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
2199
- }
2200
- st(I, ot, An(he, {
2201
- brighter(e) {
2202
- return e = e == null ? Ne : Math.pow(Ne, e), new I(this.h, this.s, this.l * e, this.opacity);
2203
- },
2204
- darker(e) {
2205
- return e = e == null ? fe : Math.pow(fe, e), new I(this.h, this.s, this.l * e, this.opacity);
2206
- },
2207
- rgb() {
2208
- var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * t, i = 2 * n - r;
2209
- return new O(
2210
- We(e >= 240 ? e - 240 : e + 120, i, r),
2211
- We(e, i, r),
2212
- We(e < 120 ? e + 240 : e - 120, i, r),
2213
- this.opacity
2214
- );
2215
- },
2216
- clamp() {
2217
- return new I(Ht(this.h), be(this.s), be(this.l), Te(this.opacity));
2218
- },
2219
- displayable() {
2220
- return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
2221
- },
2222
- formatHsl() {
2223
- const e = Te(this.opacity);
2224
- return `${e === 1 ? "hsl(" : "hsla("}${Ht(this.h)}, ${be(this.s) * 100}%, ${be(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
2225
- }
2226
- }));
2227
- function Ht(e) {
2228
- return e = (e || 0) % 360, e < 0 ? e + 360 : e;
2229
- }
2230
- function be(e) {
2231
- return Math.max(0, Math.min(1, e || 0));
2232
- }
2233
- function We(e, t, n) {
2234
- return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
2235
- }
2236
- const ne = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS) || ["#4D8CFD", "#FF6B7E", "#F4B83E", "#A6CC74", "#00C19A", "#6859BE"], Js = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS_DARK) || ["#4D8CFD", "#FF6B7E", "#FFC16D", "#A6CC74", "#00C19A", "#7887E0"], L = (e) => `--vis-${en(e) ? `color${e % ne.length}` : e}`;
2237
- function Qs(e, t = 0.4) {
2238
- const n = ot(e);
2239
- return n.l = n.l * (1 + t), n.formatHex();
2240
- }
2241
- function js(e, t = 0.4, n = 0.6) {
2242
- const r = ot(e);
2243
- return r.s = r.s * (1 - n), r.l = r.l * (1 - t), r.formatHex();
2244
- }
2245
- const ke = 10, Ke = [
2246
- { id: "stripes-diagonal", svg: '<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>' },
2247
- { id: "dots", svg: '<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>' },
2248
- { id: "stripes-vertical", svg: '<path d="M 5,-1 L5,11" stroke="#000"/>' },
2249
- { id: "crosshatch", svg: '<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>' },
2250
- { id: "waves", svg: '<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>' },
2251
- { id: "circles", svg: '<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>' }
2252
- ], Je = [
2253
- { id: "circle", marker: '<circle cx="5" cy="5" r="5"/>', dashArray: [] },
2254
- { id: "triangle", marker: '<path d="M5,0 L10,9 L0,9Z">', dashArray: [9, 1] },
2255
- { id: "diamond", marker: '<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">', dashArray: [2] },
2256
- { id: "arrow", marker: '<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">', dashArray: [2, 3, 8, 3] },
2257
- { id: "square", marker: '<rect x="1" y="1" width="8" height="8"/>', dashArray: [6] },
2258
- { id: "star", marker: '<path d="m2 9 3-9 3 9L0 3h10Z"/>', dashArray: [1, 6] }
2259
- ];
2260
- function P(e) {
2261
- return `vis-${`pattern-${e.svg ? "fill" : "marker"}`}-${e.id}`;
2262
- }
2263
- const ea = (e) => `<mask id="${P(e)}">
2264
- <pattern id="${e.id}" viewBox="0 0 10 10" width="${ke}" height="${ke}" patternUnits="userSpaceOnUse">
2265
- <rect width="100%" height="100%" fill="#fff"/>
2266
- ${e.svg}
2267
- </pattern>
2268
- <rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${e.id})"/>
2269
- </mask>`, ta = (e, t) => `<marker id="${P(e)}"
2270
- fill="var(${L(t)})"
2271
- markerUnits="userSpaceOnUse"
2272
- refX="5"
2273
- refY="5"
2274
- markerWidth="${ke}"
2275
- markerHeight="${ke}">
2276
- ${e.marker}
2277
- </marker>`;
2278
- function na() {
2279
- const e = Ke.map(ea).concat(Je.map(ta)).join(""), t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2280
- t.setAttribute("height", "100%"), t.setAttribute("width", "100%"), t.style.position = "fixed", t.style.zIndex = "-99999999", t.innerHTML = `<defs>${e}</defs>`, document.body.appendChild(t);
2281
- }
2282
- typeof window < "u" && na();
2283
- const ra = (globalThis == null ? void 0 : globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT) || 0.5;
2284
- Ms`
2285
- :root {
2286
- label: vis-root-styles;
2287
- --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
2288
- --vis-font-wh-ratio: ${ra};
2289
- --vis-color-main: var(${L(0)});
2290
- --vis-color-main-light: ${Qs(ne[0])};
2291
- --vis-color-main-dark: ${js(ne[0])};
2292
- --vis-color-grey: #2a2a2a;
2293
- ${ne.map((e, t) => `${L(t)}: ${e};`)}
2294
- ${Js.map((e, t) => `--vis-dark-color${t}: ${e};`)}
2295
- ${Ke.map((e, t) => `
2296
- --${P(e)}: url(#${P(e)});
2297
- --vis-pattern-fill${t}: var(--${P(e)});
2298
- `)}
2299
- ${Je.map((e, t) => {
2300
- var n;
2301
- return `
2302
- --${P(e)}: url(#${P(e)});
2303
- --vis-pattern-marker${t}: var(--${P(e)});
2304
- --vis-pattern-dasharray${t}: ${(n = e.dashArray) === null || n === void 0 ? void 0 : n.join(" ")};
2305
- `;
2306
- })}
2307
-
2308
- body.theme-dark {
2309
- ${ne.map((e, t) => `${L(t)}: var(--vis-dark-color${t});`)}
2310
- }
2311
-
2312
- body.theme-patterns {
2313
- ${Ke.map((e, t) => `path[style*="fill: var(${L(t)})"] {
2314
- mask: var(--vis-pattern-fill${t});
2315
- }`)}
2316
- ${Je.map((e, t) => `
2317
- path[stroke="var(${L(t)})"]:not([style*="fill"]),
2318
- path[style*="stroke: var(${L(t)})"]:not([style*="fill"]) {
2319
- marker: var(--vis-pattern-marker${t});
2320
- stroke-dasharray: var(--vis-pattern-dasharray${t});
2321
- }
2322
- `)}
2323
- }
2324
- `;
2325
- class ia {
2326
- constructor(t) {
2327
- this.data = t;
2328
- }
2329
- get data() {
2330
- return this._data;
2331
- }
2332
- set data(t) {
2333
- this._data = t;
2334
- }
2335
- }
2336
- var De;
2337
- (function(e) {
2338
- e.X = "x", e.Y = "y";
2339
- })(De || (De = {}));
2340
- var T;
2341
- (function(e) {
2342
- e.X = "x", e.Y = "y";
2343
- })(T || (T = {}));
2344
- var Ie;
2345
- (function(e) {
2346
- e.West = "west", e.East = "east", e.North = "north", e.South = "south";
2347
- })(Ie || (Ie = {}));
2348
- const sa = Object.assign(Object.assign({}, fn), { components: [], tooltip: void 0, crosshair: void 0, annotations: void 0, xAxis: void 0, yAxis: void 0, autoMargin: !0, xScale: void 0, xDomain: void 0, xDomainMinConstraint: void 0, xDomainMaxConstraint: void 0, xRange: void 0, yScale: void 0, yDomain: void 0, yDomainMinConstraint: void 0, yDomainMaxConstraint: void 0, yRange: void 0, yDirection: Ie.North, preventEmptyDomain: null, scaleByDomain: !1 });
2349
- class aa extends ae {
2350
- constructor(t, n, r) {
2351
- var i, s;
2352
- super(t), this._defaultConfig = sa, this.datamodel = new ia(), this.config = this._defaultConfig, this._clipPathId = Fs(), this._axisMargin = { top: 0, bottom: 0, left: 0, right: 0 }, this._firstRender = !0, this._clipPath = this.svg.append("clipPath").attr("id", this._clipPathId), this._clipPath.append("rect");
2353
- const a = "saturate", c = window.location.href.replace(window.location.hash, "");
2354
- this.svg.attr("class", zs`
2355
- --highlight-filter-id: url(${c}#${a}); // defining a css variable
2356
- `), this._svgDefs.append("filter").attr("id", a).attr("filterUnits", "objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'), n && this.updateContainer(n, !0), r && this.setData(r, !0), (this.config.xAxis || this.config.yAxis || !((i = this.components) === null || i === void 0) && i.some((o) => o.datamodel.data)) && this.render(), (s = document.fonts) === null || s === void 0 || s.ready.then(() => {
2357
- this._firstRender || this._renderAxes(0);
2358
- });
2359
- }
2360
- get components() {
2361
- return this.config.components;
2362
- }
2363
- // Overriding ContainerCore default get width method to work with axis auto margin
2364
- get width() {
2365
- const t = this._getMargin();
2366
- return Y(this.containerWidth - t.left - t.right, 0, Number.POSITIVE_INFINITY);
2367
- }
2368
- // Overriding ContainerCore default get height method to work with axis auto margin
2369
- get height() {
2370
- const t = this._getMargin();
2371
- return Y(this.containerHeight - t.top - t.bottom, 0, Number.POSITIVE_INFINITY);
2372
- }
2373
- setData(t, n) {
2374
- var r, i, s, a;
2375
- const { components: c, config: o } = this;
2376
- t && (this.datamodel.data = t, c.forEach((f) => {
2377
- f.setData(t);
2378
- }), (r = o.crosshair) === null || r === void 0 || r.setData(t), (i = o.xAxis) === null || i === void 0 || i.setData(t), (s = o.yAxis) === null || s === void 0 || s.setData(t), (a = o.tooltip) === null || a === void 0 || a.hide(), n || this.render());
2379
- }
2380
- updateContainer(t, n) {
2381
- super.updateContainer(t), this._removeAllChildren(), this.setData(this.datamodel.data, !0), t.xAxis && (this.config.xAxis.config.type = De.X, this.element.appendChild(t.xAxis.element)), t.yAxis && (this.config.yAxis.config.type = De.Y, this.element.appendChild(t.yAxis.element));
2382
- for (const a of this.components)
2383
- this.element.appendChild(a.element);
2384
- const r = t.tooltip;
2385
- r && (r.hasContainer() || r.setContainer(this._container), r.setComponents(this.components));
2386
- const i = t.crosshair;
2387
- i && (i.setContainer(this.svg), i.tooltip = r, this.element.appendChild(i.element));
2388
- const s = t.annotations;
2389
- s && this.element.appendChild(s.element), this.element.appendChild(this._clipPath.node()), this.element.appendChild(this._svgDefs.node()), this.element.appendChild(this._svgDefsExternal.node()), n || this.render();
2390
- }
2391
- updateComponents(t, n) {
2392
- const { config: r } = this;
2393
- this.components.forEach((i, s) => {
2394
- t[s] && i.setConfig(t[s]);
2395
- }), this._updateScales(...this.components, r.xAxis, r.yAxis, r.crosshair), n || this.render();
2396
- }
2397
- update(t, n, r) {
2398
- r && (this.datamodel.data = r), t && this.updateContainer(t, !0), n && this.updateComponents(n, !0), this.render();
2399
- }
2400
- _preRender() {
2401
- const { config: t } = this;
2402
- super._preRender(), t.autoMargin && this._setAutoMargin();
2403
- const n = j([...this.components, t.xAxis, t.yAxis, t.crosshair, t.annotations]);
2404
- for (const r of n)
2405
- r.setSize(this.width, this.height, this.containerWidth, this.containerHeight);
2406
- this._updateScales(...this.components, t.xAxis, t.yAxis, t.crosshair);
2407
- }
2408
- _render(t) {
2409
- var n, r, i, s, a;
2410
- const { config: c } = this;
2411
- super._render();
2412
- const o = this._getMargin();
2413
- for (const u of this.components)
2414
- u.g.attr("transform", `translate(${o.left},${o.top})`).style("clip-path", u.clippable ? `url(#${this._clipPathId})` : null).style("-webkit-clip-path", u.clippable ? `url(#${this._clipPathId})` : null), u.render(t);
2415
- this._renderAxes(this._firstRender ? 0 : t);
2416
- const f = 2;
2417
- this._clipPath.select("rect").attr("x", -2).attr("y", -2).attr("width", this.width + 2 * f).attr("height", this.height + 2 * f), (n = c.tooltip) === null || n === void 0 || n.update();
2418
- const l = c.crosshair;
2419
- if (l) {
2420
- const u = this.components.filter((h) => !h.stacked).map((h) => h.config.y), p = this.components.filter((h) => h.stacked).map((h) => h.config.y), d = (r = this.components.find((h) => h.config.baseline)) === null || r === void 0 ? void 0 : r.config, v = d == null ? void 0 : d.baseline;
2421
- l.accessors = {
2422
- x: (i = this.components[0]) === null || i === void 0 ? void 0 : i.config.x,
2423
- y: vt(u),
2424
- yStacked: vt(p),
2425
- baseline: v
2426
- }, l.g.attr("transform", `translate(${o.left},${o.top})`).style("clip-path", `url(#${this._clipPathId})`).style("-webkit-clip-path", `url(#${this._clipPathId})`), l.hide();
2427
- }
2428
- (s = c.annotations) === null || s === void 0 || s.g.attr("transform", `translate(${o.left},${o.top})`), (a = c.annotations) === null || a === void 0 || a.render(), this._firstRender = !1;
2429
- }
2430
- _updateScales(...t) {
2431
- const n = j(t || this.components);
2432
- this._setScales(...n), this._updateScalesDomain(...n), this._updateScalesRange(...n);
2433
- }
2434
- _setScales(...t) {
2435
- const { config: n } = this;
2436
- t && (n.xScale && t.forEach((r) => r.setScale(T.X, n.xScale)), n.yScale && t.forEach((r) => r.setScale(T.Y, n.yScale)));
2437
- }
2438
- _updateScalesDomain(...t) {
2439
- const { config: n } = this;
2440
- if (!t)
2441
- return;
2442
- const r = t.filter((i) => !i.config.excludeFromDomainCalculation);
2443
- Object.values(T).forEach((i) => {
2444
- var s, a, c, o, f, l, u, p;
2445
- const [d, v] = wi(Si(r.map((S) => S.getDataExtent(i, n.scaleByDomain)))), h = i === T.Y ? n.yDomain : n.xDomain, g = i === T.Y ? n.yDomainMinConstraint : n.xDomainMinConstraint, m = i === T.Y ? n.yDomainMaxConstraint : n.xDomainMaxConstraint, _ = (a = (s = h == null ? void 0 : h[0]) !== null && s !== void 0 ? s : d) !== null && a !== void 0 ? a : 0, w = (o = (c = h == null ? void 0 : h[1]) !== null && c !== void 0 ? c : v) !== null && o !== void 0 ? o : 1, $ = [
2446
- Y(_, (f = g == null ? void 0 : g[0]) !== null && f !== void 0 ? f : Number.NEGATIVE_INFINITY, (l = g == null ? void 0 : g[1]) !== null && l !== void 0 ? l : Number.POSITIVE_INFINITY),
2447
- Y(w, (u = m == null ? void 0 : m[0]) !== null && u !== void 0 ? u : Number.NEGATIVE_INFINITY, (p = m == null ? void 0 : m[1]) !== null && p !== void 0 ? p : Number.POSITIVE_INFINITY)
2448
- ];
2449
- if ($[0] === $[1]) {
2450
- const S = r.some((R) => {
2451
- var x;
2452
- return ((x = R.datamodel.data) === null || x === void 0 ? void 0 : x.length) > 0;
2453
- });
2454
- (n.preventEmptyDomain || n.preventEmptyDomain === null && (!S || i === T.Y)) && ($[1] = $[0] + 1);
2455
- }
2456
- t.forEach((S) => S.setScaleDomain(i, $));
2457
- });
2458
- }
2459
- _updateScalesRange(...t) {
2460
- var n, r, i, s, a, c;
2461
- const { config: o } = this;
2462
- if (!t)
2463
- return;
2464
- const f = o.yDirection === Ie.South, l = [(n = o.padding.left) !== null && n !== void 0 ? n : 0, this.width - ((r = o.padding.right) !== null && r !== void 0 ? r : 0)], u = [this.height - ((i = o.padding.bottom) !== null && i !== void 0 ? i : 0), (s = o.padding.top) !== null && s !== void 0 ? s : 0];
2465
- f && u.reverse();
2466
- for (const d of t)
2467
- d.setSize(this.width, this.height, this.containerWidth, this.containerHeight), d.setScaleRange(T.X, (a = o.xRange) !== null && a !== void 0 ? a : l), d.setScaleRange(T.Y, (c = o.yRange) !== null && c !== void 0 ? c : u);
2468
- const p = t.map((d) => d.bleed).reduce((d, v) => {
2469
- for (const h of Object.keys(d)) {
2470
- const g = h;
2471
- d[g] < v[g] && (d[g] = v[g]);
2472
- }
2473
- return d;
2474
- }, { top: 0, bottom: 0, left: 0, right: 0 });
2475
- for (const d of t)
2476
- d.setScaleRange(T.X, [l[0] + p.left, l[1] - p.right]), d.setScaleRange(
2477
- T.Y,
2478
- f ? [u[0] + p.top, u[1] - p.bottom] : [u[0] - p.bottom, u[1] + p.top]
2479
- // if Y axis is directed upwards
2480
- );
2481
- }
2482
- _renderAxes(t) {
2483
- const { config: { xAxis: n, yAxis: r } } = this, i = this._getMargin();
2484
- j([n, r]).forEach((a) => {
2485
- const c = a.getOffset(i);
2486
- a.g.attr("transform", `translate(${c.left},${c.top})`), a.render(t);
2487
- });
2488
- }
2489
- _setAutoMargin() {
2490
- const { config: { xAxis: t, yAxis: n } } = this, r = j([...this.components, t, n]);
2491
- this._setScales(...r), this._updateScalesDomain(...r);
2492
- const i = this._firstRender ? 2 : 1;
2493
- for (let s = 0; s < i; s += 1) {
2494
- const a = { top: 0, bottom: 0, left: 0, right: 0 };
2495
- this._updateScalesRange(...r), j([t, n]).forEach((o) => {
2496
- o.preRender();
2497
- const f = o.getRequiredMargin();
2498
- a.top < f.top && (a.top = f.top), a.bottom < f.bottom && (a.bottom = f.bottom), a.left < f.left && (a.left = f.left), a.right < f.right && (a.right = f.right);
2499
- }), this._axisMargin = a;
2500
- }
2501
- }
2502
- _getMargin() {
2503
- const { config: { margin: t } } = this;
2504
- return {
2505
- top: t.top + this._axisMargin.top,
2506
- bottom: t.bottom + this._axisMargin.bottom,
2507
- left: t.left + this._axisMargin.left,
2508
- right: t.right + this._axisMargin.right
2509
- };
2510
- }
2511
- destroy() {
2512
- const { components: t, config: { tooltip: n, crosshair: r, annotations: i, xAxis: s, yAxis: a } } = this;
2513
- super.destroy();
2514
- for (const c of t)
2515
- c == null || c.destroy();
2516
- n == null || n.destroy(), r == null || r.destroy(), i == null || i.destroy(), s == null || s.destroy(), a == null || a.destroy();
2517
- }
2518
- }
2519
- const oa = Symbol("componentAccessorKey"), ca = Symbol("tooltipAccessorKey"), fa = Symbol("crosshairAccessorKey"), la = Symbol("axisAccessorKey"), ua = Symbol("annotationsAccessorKey");
2520
- function ha(e) {
2521
- const t = En(), n = t.attrs;
2522
- return Rn(() => {
2523
- const r = {}, i = (t == null ? void 0 : t.vnode.props) ?? {};
2524
- return Object.keys(i).forEach((s) => {
2525
- r[ft(s)] = e[ft(s)];
2526
- }), { ...r, ...n };
2527
- });
2528
- }
2529
- const da = /* @__PURE__ */ Qe({
2530
- __name: "index",
2531
- props: {
2532
- components: {},
2533
- xScale: { type: [Object, Function] },
2534
- xDomain: {},
2535
- xDomainMinConstraint: {},
2536
- xDomainMaxConstraint: {},
2537
- xRange: {},
2538
- yScale: { type: [Object, Function] },
2539
- yDomain: {},
2540
- yDomainMinConstraint: {},
2541
- yDomainMaxConstraint: {},
2542
- yRange: {},
2543
- yDirection: {},
2544
- xAxis: {},
2545
- yAxis: {},
2546
- autoMargin: { type: Boolean },
2547
- tooltip: {},
2548
- crosshair: {},
2549
- preventEmptyDomain: { type: [Boolean, null] },
2550
- scaleByDomain: { type: Boolean },
2551
- annotations: {},
2552
- duration: {},
2553
- margin: {},
2554
- padding: {},
2555
- sizing: {},
2556
- width: {},
2557
- height: {},
2558
- svgDefs: {},
2559
- ariaLabel: {},
2560
- data: {}
2561
- },
2562
- setup(e, { expose: t }) {
2563
- const n = e, { data: r } = On(n), i = ha(n), s = lt(), a = Nn({
2564
- components: [],
2565
- annotations: void 0,
2566
- crosshair: void 0,
2567
- tooltip: void 0,
2568
- xAxis: void 0,
2569
- yAxis: void 0
2570
- }), c = lt();
2571
- return Tn(r, () => {
2572
- s.value && s.value.setData(r.value, !0);
2573
- }), kn(() => {
2574
- var o;
2575
- a.components.map((f) => f.config), (o = s.value) == null || o.updateContainer({ ...Fe(i.value), ...Fe(a) });
2576
- }), Dn(() => {
2577
- c.value && (s.value = new aa(c.value, { ...Fe(a) }, r.value));
2578
- }), In(() => {
2579
- var o;
2580
- return (o = s.value) == null ? void 0 : o.destroy();
2581
- }), Q(oa, {
2582
- data: r,
2583
- update: (o) => a.components = [...a.components, o],
2584
- destroy: () => {
2585
- var o;
2586
- return a.components = (o = a.components) == null ? void 0 : o.filter((f) => !f.isDestroyed());
2587
- }
2588
- }), Q(la, {
2589
- data: r,
2590
- update: (o) => a[`${o.config.type}Axis`] = o,
2591
- destroy: (o) => {
2592
- a[`${o}Axis`] = void 0;
2593
- }
2594
- }), Q(fa, {
2595
- data: r,
2596
- update: (o) => a.crosshair = o,
2597
- destroy: () => {
2598
- a.crosshair = void 0;
2599
- }
2600
- }), Q(ca, {
2601
- data: r,
2602
- update: (o) => a.tooltip = o,
2603
- destroy: () => {
2604
- a.tooltip = void 0;
2605
- }
2606
- }), Q(ua, {
2607
- data: r,
2608
- update: (o) => a.annotations = o,
2609
- destroy: () => {
2610
- a.annotations = void 0;
2611
- }
2612
- }), t({
2613
- component: s
2614
- }), (o, f) => (je(), Lt("div", {
2615
- "data-vis-xy-container": "",
2616
- ref_key: "elRef",
2617
- ref: c,
2618
- class: "unovis-xy-container"
2619
- }, [
2620
- Vt(o.$slots, "default")
2621
- ], 512));
2622
- }
2623
- });
2624
- (function() {
2625
- try {
2626
- if (typeof document < "u") {
2627
- var e = document.createElement("style");
2628
- e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")), document.head.appendChild(e);
2629
- }
2630
- } catch (t) {
2631
- console.error("vite-plugin-css-injected-by-js", t);
2632
- }
2633
- })();
2634
- const xa = /* @__PURE__ */ Qe({
2635
- __name: "Area",
2636
- props: {
2637
- data: {},
2638
- xNumTicks: { default: (e) => e.data.length > 24 ? 24 / 4 : e.data.length - 1 },
2639
- yNumTicks: { default: (e) => e.data.length > 24 ? 24 / 4 : e.data.length - 1 }
2640
- },
2641
- setup(e) {
2642
- return (t, n) => (je(), Mn(zn(da), { height: 600 }, {
2643
- default: Bn(() => n[0] || (n[0] = [
2644
- Fn(" 123123123 ")
2645
- ])),
2646
- _: 1
2647
- }));
2648
- }
2649
- });
2650
- var pa = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e))(pa || {});
2651
- const va = /* @__PURE__ */ Qe({
2652
- __name: "Button",
2653
- props: {
2654
- variant: {},
2655
- size: {}
2656
- },
2657
- setup(e) {
2658
- return (t, n) => (je(), Lt("button", {
2659
- class: Pn([
2660
- "button",
2661
- `button--${t.variant || "primary"}`,
2662
- `button--${t.size || "medium"}`
2663
- ])
2664
- }, [
2665
- Vt(t.$slots, "default", {}, void 0, !0)
2666
- ], 2));
2667
- }
2668
- }), ga = (e, t) => {
2669
- const n = e.__vccOpts || e;
2670
- for (const [r, i] of t)
2671
- n[r] = i;
2672
- return n;
2673
- }, ya = /* @__PURE__ */ ga(va, [["__scopeId", "data-v-52b6ec0c"]]);
2674
- export {
2675
- xa as Area,
2676
- ya as Button,
2677
- pa as PaginationPosition
2678
- };