@oneclick.dev/cms-core-modules 0.0.82 → 0.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{ContentEditor-Dk-iDEjl.mjs → ContentEditor-DPhhOkx3.mjs} +7085 -5936
  2. package/dist/{ContentEditor-4e80zFyn.js → ContentEditor-DrxtH_Hq.js} +42 -42
  3. package/dist/{Create-DtFzwxn_.mjs → Create-6uT9HWar.mjs} +35 -35
  4. package/dist/{Create-CRn2sMHp.js → Create-DuZ5nZrX.js} +1 -1
  5. package/dist/{DateFormatter-DfIwyrnF.mjs → DateFormatter-2B0R-DY4.mjs} +213 -406
  6. package/dist/DateFormatter-DbtOLV0L.js +1 -0
  7. package/dist/{Detail-Bxi7lG9x.js → Detail-BZ-iE9vf.js} +1 -1
  8. package/dist/{Detail-B4b_FLDa.mjs → Detail-C1Blq61w.mjs} +90 -90
  9. package/dist/{Detail-BayNaAg9.js → Detail-C8wQiDcv.js} +1 -1
  10. package/dist/{Detail-BwDnY42G.mjs → Detail-CJVMJDP7.mjs} +17 -17
  11. package/dist/{Detail-CnK-qbhE.js → Detail-CPqug27l.js} +1 -1
  12. package/dist/Detail-CjuhjPby.js +1 -0
  13. package/dist/{Detail-U0mgLKt6.mjs → Detail-CtItxMX4.mjs} +62 -63
  14. package/dist/{Detail-CVgWHbMC.mjs → Detail-Dnpnmy4-.mjs} +158 -158
  15. package/dist/{Entries-D7MHylQE.mjs → Entries-BkOPae4R.mjs} +49 -49
  16. package/dist/Entries-CcEW98F5.js +1 -0
  17. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-Ds7z0qeH.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-Bc946oSc.mjs} +1 -1
  18. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-C5YczjNb.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-CqERfyYb.js} +1 -1
  19. package/dist/{Overview-CwCAeBnX.js → Overview-CA8wh_BI.js} +1 -1
  20. package/dist/{Overview-CgViRnNc.mjs → Overview-D4MFwRI_.mjs} +67 -68
  21. package/dist/{Overview-pCO_47Zt.js → Overview-Da0XexiT.js} +1 -1
  22. package/dist/Overview-DeQQ0FY3.js +1 -0
  23. package/dist/{Overview--XpvBbqz.mjs → Overview-DoOASlNz.mjs} +1 -3
  24. package/dist/{Overview-CuCQgqVp.mjs → Overview-gJSvftdE.mjs} +34 -34
  25. package/dist/{ReservationDetailDialog.vue_vue_type_script_setup_true_lang-B7ks5mbf.mjs → ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cohhnd5x.mjs} +0 -1
  26. package/dist/{ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js → ReservationDetailDialog.vue_vue_type_script_setup_true_lang-VWVIxIr6.js} +1 -1
  27. package/dist/{SeoHealth-CC0rW1AG.mjs → SeoHealth-Bc5chnaa.mjs} +14 -14
  28. package/dist/{SeoHealth-EZzDmPDM.js → SeoHealth-BkpJ1F2Y.js} +1 -1
  29. package/dist/TableView-BPWAx--G.mjs +5743 -0
  30. package/dist/TableView-D63QrVlK.js +4 -0
  31. package/dist/View-BL70u98U.js +1 -0
  32. package/dist/{View-DDXN0tKD.mjs → View-BO5N911y.mjs} +5 -5
  33. package/dist/{agenda-XqvbrU72.mjs → agenda-C5grvzSa.mjs} +166 -169
  34. package/dist/agenda-DXMwVWpN.js +1 -0
  35. package/dist/{availability-B-tRp8hB.mjs → availability-C1NqOFsQ.mjs} +81 -81
  36. package/dist/{availability-BiBbzEIM.js → availability-D_wnfLsH.js} +1 -1
  37. package/dist/cms-core-modules.css +1 -1
  38. package/dist/{exceptions-CLgeeUSy.mjs → exceptions-BIwMhYa4.mjs} +1 -1
  39. package/dist/{exceptions-wEQEVzIs.js → exceptions-Cn7zooEu.js} +1 -1
  40. package/dist/{index-DTzdHh6g.js → index-C9pSS15N.js} +2 -2
  41. package/dist/{index-N0NoDEsI.mjs → index-MwjeLHPP.mjs} +3 -3
  42. package/dist/index.cjs.js +1 -1
  43. package/dist/index.mjs +50 -36
  44. package/dist/orders-CG1QUCN8.js +1 -0
  45. package/dist/orders-CeixEBcU.mjs +396 -0
  46. package/dist/server-handlers.cjs.js +1 -1
  47. package/dist/server-handlers.mjs +292 -256
  48. package/dist/src/contentManager/config.d.ts +28 -0
  49. package/dist/src/contentManager/index.d.ts +28 -0
  50. package/dist/src/contentManager/server.d.ts +7 -0
  51. package/dist/src/server-handlers.d.ts +1 -0
  52. package/package.json +2 -2
  53. package/dist/DateFormatter-C9qfmQnP.js +0 -1
  54. package/dist/Detail-BcboL7NF.js +0 -1
  55. package/dist/Entries-BPkZ7Jg5.js +0 -1
  56. package/dist/Overview-B-8TLLjh.js +0 -1
  57. package/dist/TableView-Ce8H65pL.js +0 -586
  58. package/dist/TableView-DRQvOW85.mjs +0 -89190
  59. package/dist/View-DfzaVOzS.js +0 -1
  60. package/dist/agenda-wNFDKn0G.js +0 -1
  61. package/dist/floating-ui.dom-BO2Hr6mz.mjs +0 -1292
  62. package/dist/floating-ui.dom-CAr9LGoC.js +0 -1
  63. package/dist/index-DYpruS-A-CA2jEOA3.js +0 -88
  64. package/dist/index-DYpruS-A-D38FBcI3.mjs +0 -4211
  65. package/dist/index-YMaY4uuk-BgpTtr73.js +0 -1
  66. package/dist/index-YMaY4uuk-C_xV5K9Z.mjs +0 -1300
  67. package/dist/orders-Bqa3Z3tH.mjs +0 -356
  68. package/dist/orders-D5GJOZXN.js +0 -1
@@ -1,4211 +0,0 @@
1
- import * as qr from "vue";
2
- import { inject as wn, provide as Xa, Fragment as yr, defineComponent as Ne, Comment as Va, mergeProps as Ka, cloneVNode as Za, h as Yt, render as Qa, computed as xe, openBlock as K, createElementBlock as Q, normalizeClass as ze, unref as ae, renderSlot as yi, toDisplayString as Xe, createCommentVNode as Ve, createElementVNode as jt, renderList as bi, createBlock as br, resolveDynamicComponent as wi, normalizeStyle as wr, ref as xn, onMounted as _n, nextTick as xr, onUnmounted as xi, watch as et, createTextVNode as _i, toRefs as Qn, createVNode as Ja, customRef as ki, getCurrentInstance as _r, camelize as Xr, withCtx as es, isRef as $n, reactive as Vr, getCurrentScope as Ci, hasInjectionContext as ts, onScopeDispose as ns, toRef as rs, readonly as Kr, toValue as os } from "vue";
3
- function Mi(e, t) {
4
- const n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
5
- return [(a) => {
6
- const s = wn(r, a);
7
- if (s || s === null) return s;
8
- throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
9
- }, (a) => (Xa(r, a), a)];
10
- }
11
- function Si(e) {
12
- return e ? e.flatMap((t) => t.type === yr ? Si(t.children) : [t]) : [];
13
- }
14
- const [is] = Mi("ConfigProvider");
15
- let as = 0;
16
- function Ai(e, t = "reka") {
17
- if (e) return e;
18
- if ("useId" in qr) return `${t}-${qr.useId?.()}`;
19
- const n = is({ useId: void 0 });
20
- return n.useId ? `${t}-${n.useId()}` : `${t}-${++as}`;
21
- }
22
- const ss = Ne({
23
- name: "PrimitiveSlot",
24
- inheritAttrs: !1,
25
- setup(e, { attrs: t, slots: n }) {
26
- return () => {
27
- if (!n.default) return null;
28
- const r = Si(n.default()), o = r.findIndex((l) => l.type !== Va);
29
- if (o === -1) return r;
30
- const i = r[o];
31
- delete i.props?.ref;
32
- const a = i.props ? Ka(t, i.props) : t, s = Za({
33
- ...i,
34
- props: {}
35
- }, a);
36
- return r.length === 1 ? s : (r[o] = s, r);
37
- };
38
- }
39
- }), ls = [
40
- "area",
41
- "img",
42
- "input"
43
- ], us = Ne({
44
- name: "Primitive",
45
- inheritAttrs: !1,
46
- props: {
47
- asChild: {
48
- type: Boolean,
49
- default: !1
50
- },
51
- as: {
52
- type: [String, Object],
53
- default: "div"
54
- }
55
- },
56
- setup(e, { attrs: t, slots: n }) {
57
- const r = e.asChild ? "template" : e.as;
58
- return typeof r == "string" && ls.includes(r) ? () => Yt(r, t) : r !== "template" ? () => Yt(e.as, t, { default: n.default }) : () => Yt(ss, t, { default: n.default });
59
- }
60
- });
61
- function ph(e, t, n = {}) {
62
- let r, o, i, a = !0;
63
- const s = () => {
64
- a = !0, i();
65
- };
66
- et(e, s, { flush: "sync", ...n });
67
- const l = typeof t == "function" ? t : t.get, u = typeof t == "function" ? void 0 : t.set, c = ki((h, f) => (o = h, i = f, { get: () => (a && (r = l(r), a = !1), o(), r), set(d) {
68
- u?.(d);
69
- } }));
70
- return c.trigger = s, c;
71
- }
72
- function gh(e, t) {
73
- return !!Ci() && (ns(e, t), !0);
74
- }
75
- const jn = /* @__PURE__ */ new WeakMap(), mh = (...e) => {
76
- var t;
77
- const n = e[0], r = (t = _r()) === null || t === void 0 ? void 0 : t.proxy, o = r ?? Ci();
78
- if (o == null && !ts()) throw new Error("injectLocal must be called in setup");
79
- return o && jn.has(o) && n in jn.get(o) ? jn.get(o)[n] : wn(...e);
80
- }, cs = typeof window < "u" && typeof document < "u";
81
- const vh = (e) => e !== void 0, fs = Object.prototype.toString, yh = (e) => fs.call(e) === "[object Object]", hs = () => {
82
- }, Ti = (e) => e();
83
- function ds(e = Ti, t = {}) {
84
- const { initialState: n = "active" } = t, r = (function(...o) {
85
- if (o.length !== 1) return rs(...o);
86
- const i = o[0];
87
- return typeof i == "function" ? Kr(ki(() => ({ get: i, set: hs }))) : xn(i);
88
- })(n === "active");
89
- return { isActive: Kr(r), pause: function() {
90
- r.value = !1;
91
- }, resume: function() {
92
- r.value = !0;
93
- }, eventFilter: (...o) => {
94
- r.value && e(...o);
95
- } };
96
- }
97
- function bh(e) {
98
- return e.endsWith("rem") ? 16 * Number.parseFloat(e) : Number.parseFloat(e);
99
- }
100
- function wh(e) {
101
- return Array.isArray(e) ? e : [e];
102
- }
103
- function ps(e) {
104
- return t = xe(e), $n(t) ? Vr(new Proxy({}, { get: (n, r, o) => ae(Reflect.get(t.value, r, o)), set: (n, r, o) => ($n(t.value[r]) && !$n(o) ? t.value[r].value = o : t.value[r] = o, !0), deleteProperty: (n, r) => Reflect.deleteProperty(t.value, r), has: (n, r) => Reflect.has(t.value, r), ownKeys: () => Object.keys(t.value), getOwnPropertyDescriptor: () => ({ enumerable: !0, configurable: !0 }) })) : Vr(t);
105
- var t;
106
- }
107
- function xh(e, ...t) {
108
- const n = t.flat(), r = n[0];
109
- return ps(() => Object.fromEntries(typeof r == "function" ? Object.entries(Qn(e)).filter(([o, i]) => !r(os(i), o)) : Object.entries(Qn(e)).filter((o) => !n.includes(o[0]))));
110
- }
111
- function gs(e, t, n = {}) {
112
- const { eventFilter: r = Ti, ...o } = n;
113
- return et(e, (i = r, a = t, function(...s) {
114
- return new Promise((l, u) => {
115
- Promise.resolve(i(() => a.apply(this, s), { fn: a, thisArg: this, args: s })).then(l).catch(u);
116
- });
117
- }), o);
118
- var i, a;
119
- }
120
- function _h(e, t, n = {}) {
121
- const { eventFilter: r, initialState: o = "active", ...i } = n, { eventFilter: a, pause: s, resume: l, isActive: u } = ds(r, { initialState: o });
122
- return { stop: gs(e, t, { ...i, eventFilter: a }), pause: s, resume: l, isActive: u };
123
- }
124
- function kh(e, t = !0, n) {
125
- _r() ? _n(e, n) : t ? e() : xr(e);
126
- }
127
- function Ch(e, t, n) {
128
- return et(e, t, { ...n, immediate: !0 });
129
- }
130
- const Zr = /* @__PURE__ */ new Map();
131
- function ms(e, t, n) {
132
- if (!cs) return;
133
- const r = Ai();
134
- return (o, i) => {
135
- const a = "data" in o ? o.data : o, s = `${r}-${l = a, JSON.stringify(l, Object.keys(l).sort())}`;
136
- var l;
137
- const u = Zr.get(s);
138
- if (u) return u;
139
- const c = Yt(t, { ...n, payload: a, config: e, x: i }), h = document.createElement("div");
140
- return Qa(c, h), Zr.set(s, h.innerHTML), h.innerHTML;
141
- };
142
- }
143
- function Ni(e) {
144
- var t, n, r = "";
145
- if (typeof e == "string" || typeof e == "number") r += e;
146
- else if (typeof e == "object") if (Array.isArray(e)) {
147
- var o = e.length;
148
- for (t = 0; t < o; t++) e[t] && (n = Ni(e[t])) && (r && (r += " "), r += n);
149
- } else for (n in e) e[n] && (r && (r += " "), r += n);
150
- return r;
151
- }
152
- const Ei = (e = /* @__PURE__ */ new Map(), t = null, n) => ({ nextPart: e, validators: t, classGroupId: n }), tn = "-", Qr = [], vs = (e) => {
153
- const t = bs(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
154
- return { getClassGroupId: (o) => {
155
- if (o.startsWith("[") && o.endsWith("]")) return ys(o);
156
- const i = o.split(tn), a = i[0] === "" && i.length > 1 ? 1 : 0;
157
- return Di(i, a, t);
158
- }, getConflictingClassGroupIds: (o, i) => {
159
- if (i) {
160
- const a = r[o], s = n[o];
161
- return a ? s ? ((l, u) => {
162
- const c = new Array(l.length + u.length);
163
- for (let h = 0; h < l.length; h++) c[h] = l[h];
164
- for (let h = 0; h < u.length; h++) c[l.length + h] = u[h];
165
- return c;
166
- })(s, a) : a : s || Qr;
167
- }
168
- return n[o] || Qr;
169
- } };
170
- }, Di = (e, t, n) => {
171
- if (e.length - t === 0) return n.classGroupId;
172
- const r = e[t], o = n.nextPart.get(r);
173
- if (o) {
174
- const l = Di(e, t + 1, o);
175
- if (l) return l;
176
- }
177
- const i = n.validators;
178
- if (i === null) return;
179
- const a = t === 0 ? e.join(tn) : e.slice(t).join(tn), s = i.length;
180
- for (let l = 0; l < s; l++) {
181
- const u = i[l];
182
- if (u.validator(a)) return u.classGroupId;
183
- }
184
- }, ys = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
185
- const t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
186
- return r ? "arbitrary.." + r : void 0;
187
- })(), bs = (e) => {
188
- const { theme: t, classGroups: n } = e;
189
- return ws(n, t);
190
- }, ws = (e, t) => {
191
- const n = Ei();
192
- for (const r in e) {
193
- const o = e[r];
194
- kr(o, n, r, t);
195
- }
196
- return n;
197
- }, kr = (e, t, n, r) => {
198
- const o = e.length;
199
- for (let i = 0; i < o; i++) {
200
- const a = e[i];
201
- xs(a, t, n, r);
202
- }
203
- }, xs = (e, t, n, r) => {
204
- typeof e != "string" ? typeof e != "function" ? Cs(e, t, n, r) : ks(e, t, n, r) : _s(e, t, n);
205
- }, _s = (e, t, n) => {
206
- (e === "" ? t : $i(t, e)).classGroupId = n;
207
- }, ks = (e, t, n, r) => {
208
- Ms(e) ? kr(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(/* @__PURE__ */ ((o, i) => ({ classGroupId: o, validator: i }))(n, e)));
209
- }, Cs = (e, t, n, r) => {
210
- const o = Object.entries(e), i = o.length;
211
- for (let a = 0; a < i; a++) {
212
- const [s, l] = o[a];
213
- kr(l, $i(t, s), n, r);
214
- }
215
- }, $i = (e, t) => {
216
- let n = e;
217
- const r = t.split(tn), o = r.length;
218
- for (let i = 0; i < o; i++) {
219
- const a = r[i];
220
- let s = n.nextPart.get(a);
221
- s || (s = Ei(), n.nextPart.set(a, s)), n = s;
222
- }
223
- return n;
224
- }, Ms = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ss = (e) => {
225
- if (e < 1) return { get: () => {
226
- }, set: () => {
227
- } };
228
- let t = 0, n = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
229
- const o = (i, a) => {
230
- n[i] = a, t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ Object.create(null));
231
- };
232
- return { get(i) {
233
- let a = n[i];
234
- return a !== void 0 ? a : (a = r[i]) !== void 0 ? (o(i, a), a) : void 0;
235
- }, set(i, a) {
236
- i in n ? n[i] = a : o(i, a);
237
- } };
238
- }, As = [], Jr = (e, t, n, r, o) => ({ modifiers: e, hasImportantModifier: t, baseClassName: n, maybePostfixModifierPosition: r, isExternal: o }), Ts = (e) => {
239
- const { prefix: t, experimentalParseClassName: n } = e;
240
- let r = (o) => {
241
- const i = [];
242
- let a, s = 0, l = 0, u = 0;
243
- const c = o.length;
244
- for (let g = 0; g < c; g++) {
245
- const p = o[g];
246
- if (s === 0 && l === 0) {
247
- if (p === ":") {
248
- i.push(o.slice(u, g)), u = g + 1;
249
- continue;
250
- }
251
- if (p === "/") {
252
- a = g;
253
- continue;
254
- }
255
- }
256
- p === "[" ? s++ : p === "]" ? s-- : p === "(" ? l++ : p === ")" && l--;
257
- }
258
- const h = i.length === 0 ? o : o.slice(u);
259
- let f = h, d = !1;
260
- return h.endsWith("!") ? (f = h.slice(0, -1), d = !0) : h.startsWith("!") && (f = h.slice(1), d = !0), Jr(i, d, f, a && a > u ? a - u : void 0);
261
- };
262
- if (t) {
263
- const o = t + ":", i = r;
264
- r = (a) => a.startsWith(o) ? i(a.slice(o.length)) : Jr(As, !1, a, void 0, !0);
265
- }
266
- if (n) {
267
- const o = r;
268
- r = (i) => n({ className: i, parseClassName: o });
269
- }
270
- return r;
271
- }, Ns = (e) => {
272
- const t = /* @__PURE__ */ new Map();
273
- return e.orderSensitiveModifiers.forEach((n, r) => {
274
- t.set(n, 1e6 + r);
275
- }), (n) => {
276
- const r = [];
277
- let o = [];
278
- for (let i = 0; i < n.length; i++) {
279
- const a = n[i], s = a[0] === "[", l = t.has(a);
280
- s || l ? (o.length > 0 && (o.sort(), r.push(...o), o = []), r.push(a)) : o.push(a);
281
- }
282
- return o.length > 0 && (o.sort(), r.push(...o)), r;
283
- };
284
- }, Es = /\s+/, ji = (e) => {
285
- if (typeof e == "string") return e;
286
- let t, n = "";
287
- for (let r = 0; r < e.length; r++) e[r] && (t = ji(e[r])) && (n && (n += " "), n += t);
288
- return n;
289
- }, Ds = [], W = (e) => {
290
- const t = (n) => n[e] || Ds;
291
- return t.isThemeGetter = !0, t;
292
- }, Pi = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $s = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, js = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ps = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Os = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Me = (e) => $s.test(e), $ = (e) => !!e && !Number.isNaN(Number(e)), Se = (e) => !!e && Number.isInteger(Number(e)), Pn = (e) => e.endsWith("%") && $(e.slice(0, -1)), ve = (e) => js.test(e), Oi = () => !0, Us = (e) => Ps.test(e) && !zs.test(e), Cr = () => !1, Is = (e) => Os.test(e), Hs = (e) => Fs.test(e), Ls = (e) => !S(e) && !A(e), Bs = (e) => Ee(e, Ii, Cr), S = (e) => Pi.test(e), je = (e) => Ee(e, Hi, Us), eo = (e) => Ee(e, Ks, $), Ys = (e) => Ee(e, Bi, Oi), Rs = (e) => Ee(e, Li, Cr), to = (e) => Ee(e, Fi, Cr), Ws = (e) => Ee(e, Ui, Hs), Pt = (e) => Ee(e, Yi, Is), A = (e) => zi.test(e), st = (e) => Be(e, Hi), Gs = (e) => Be(e, Li), no = (e) => Be(e, Fi), qs = (e) => Be(e, Ii), Xs = (e) => Be(e, Ui), zt = (e) => Be(e, Yi, !0), Vs = (e) => Be(e, Bi, !0), Ee = (e, t, n) => {
293
- const r = Pi.exec(e);
294
- return !!r && (r[1] ? t(r[1]) : n(r[2]));
295
- }, Be = (e, t, n = !1) => {
296
- const r = zi.exec(e);
297
- return !!r && (r[1] ? t(r[1]) : n);
298
- }, Fi = (e) => e === "position" || e === "percentage", Ui = (e) => e === "image" || e === "url", Ii = (e) => e === "length" || e === "size" || e === "bg-size", Hi = (e) => e === "length", Ks = (e) => e === "number", Li = (e) => e === "family-name", Bi = (e) => e === "number" || e === "weight", Yi = (e) => e === "shadow", Zs = /* @__PURE__ */ ((e, ...t) => {
299
- let n, r, o, i;
300
- const a = (s) => {
301
- const l = r(s);
302
- if (l) return l;
303
- const u = ((c, h) => {
304
- const { parseClassName: f, getClassGroupId: d, getConflictingClassGroupIds: g, sortModifiers: p } = h, x = [], b = c.trim().split(Es);
305
- let w = "";
306
- for (let E = b.length - 1; E >= 0; E -= 1) {
307
- const m = b[E], { isExternal: N, modifiers: M, hasImportantModifier: k, baseClassName: B, maybePostfixModifierPosition: j } = f(m);
308
- if (N) {
309
- w = m + (w.length > 0 ? " " + w : w);
310
- continue;
311
- }
312
- let y = !!j, T = d(y ? B.substring(0, j) : B);
313
- if (!T) {
314
- if (!y) {
315
- w = m + (w.length > 0 ? " " + w : w);
316
- continue;
317
- }
318
- if (T = d(B), !T) {
319
- w = m + (w.length > 0 ? " " + w : w);
320
- continue;
321
- }
322
- y = !1;
323
- }
324
- const D = M.length === 0 ? "" : M.length === 1 ? M[0] : p(M).join(":"), v = k ? D + "!" : D, _ = v + T;
325
- if (x.indexOf(_) > -1) continue;
326
- x.push(_);
327
- const C = g(T, y);
328
- for (let Y = 0; Y < C.length; ++Y) {
329
- const I = C[Y];
330
- x.push(v + I);
331
- }
332
- w = m + (w.length > 0 ? " " + w : w);
333
- }
334
- return w;
335
- })(s, n);
336
- return o(s, u), u;
337
- };
338
- return i = (s) => {
339
- const l = t.reduce((u, c) => c(u), e());
340
- return n = ((u) => ({ cache: Ss(u.cacheSize), parseClassName: Ts(u), sortModifiers: Ns(u), ...vs(u) }))(l), r = n.cache.get, o = n.cache.set, i = a, a(s);
341
- }, (...s) => i(((...l) => {
342
- let u, c, h = 0, f = "";
343
- for (; h < l.length; ) (u = l[h++]) && (c = ji(u)) && (f && (f += " "), f += c);
344
- return f;
345
- })(...s));
346
- })(() => {
347
- const e = W("color"), t = W("font"), n = W("text"), r = W("font-weight"), o = W("tracking"), i = W("leading"), a = W("breakpoint"), s = W("container"), l = W("spacing"), u = W("radius"), c = W("shadow"), h = W("inset-shadow"), f = W("text-shadow"), d = W("drop-shadow"), g = W("blur"), p = W("perspective"), x = W("aspect"), b = W("ease"), w = W("animate"), E = () => ["center", "top", "bottom", "left", "right", "top-left", "left-top", "top-right", "right-top", "bottom-right", "right-bottom", "bottom-left", "left-bottom", A, S], m = () => [A, S, l], N = () => [Me, "full", "auto", ...m()], M = () => [Se, "none", "subgrid", A, S], k = () => ["auto", { span: ["full", Se, A, S] }, Se, A, S], B = () => [Se, "auto", A, S], j = () => ["auto", "min", "max", "fr", A, S], y = () => ["auto", ...m()], T = () => [Me, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], D = () => [Me, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...m()], v = () => [Me, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...m()], _ = () => [e, A, S], C = () => ["center", "top", "bottom", "left", "right", "top-left", "left-top", "top-right", "right-top", "bottom-right", "right-bottom", "bottom-left", "left-bottom", no, to, { position: [A, S] }], Y = () => ["auto", "cover", "contain", qs, Bs, { size: [A, S] }], I = () => [Pn, st, je], P = () => ["", "none", "full", u, A, S], L = () => ["", $, st, je], H = () => [$, Pn, no, to], oe = () => ["", "none", g, A, S], se = () => ["none", $, A, S], Ce = () => ["none", $, A, S], at = () => [$, A, S], ie = () => [Me, "full", ...m()];
348
- return { cacheSize: 500, theme: { animate: ["spin", "ping", "pulse", "bounce"], aspect: ["video"], blur: [ve], breakpoint: [ve], color: [Oi], container: [ve], "drop-shadow": [ve], ease: ["in", "out", "in-out"], font: [Ls], "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"], "inset-shadow": [ve], leading: ["none", "tight", "snug", "normal", "relaxed", "loose"], perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"], radius: [ve], shadow: [ve], spacing: ["px", $], text: [ve], "text-shadow": [ve], tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"] }, classGroups: { aspect: [{ aspect: ["auto", "square", Me, S, A, x] }], container: ["container"], columns: [{ columns: [$, S, A, s] }], "break-after": [{ "break-after": ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"] }], "break-before": [{ "break-before": ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"] }], "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], "box-decoration": [{ "box-decoration": ["slice", "clone"] }], box: [{ box: ["border", "content"] }], display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], sr: ["sr-only", "not-sr-only"], float: [{ float: ["right", "left", "none", "start", "end"] }], clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], isolation: ["isolate", "isolation-auto"], "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], "object-position": [{ object: E() }], overflow: [{ overflow: ["auto", "hidden", "clip", "visible", "scroll"] }], "overflow-x": [{ "overflow-x": ["auto", "hidden", "clip", "visible", "scroll"] }], "overflow-y": [{ "overflow-y": ["auto", "hidden", "clip", "visible", "scroll"] }], overscroll: [{ overscroll: ["auto", "contain", "none"] }], "overscroll-x": [{ "overscroll-x": ["auto", "contain", "none"] }], "overscroll-y": [{ "overscroll-y": ["auto", "contain", "none"] }], position: ["static", "fixed", "absolute", "relative", "sticky"], inset: [{ inset: N() }], "inset-x": [{ "inset-x": N() }], "inset-y": [{ "inset-y": N() }], start: [{ "inset-s": N(), start: N() }], end: [{ "inset-e": N(), end: N() }], "inset-bs": [{ "inset-bs": N() }], "inset-be": [{ "inset-be": N() }], top: [{ top: N() }], right: [{ right: N() }], bottom: [{ bottom: N() }], left: [{ left: N() }], visibility: ["visible", "invisible", "collapse"], z: [{ z: [Se, "auto", A, S] }], basis: [{ basis: [Me, "full", "auto", s, ...m()] }], "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], "flex-wrap": [{ flex: ["nowrap", "wrap", "wrap-reverse"] }], flex: [{ flex: [$, Me, "auto", "initial", "none", S] }], grow: [{ grow: ["", $, A, S] }], shrink: [{ shrink: ["", $, A, S] }], order: [{ order: [Se, "first", "last", "none", A, S] }], "grid-cols": [{ "grid-cols": M() }], "col-start-end": [{ col: k() }], "col-start": [{ "col-start": B() }], "col-end": [{ "col-end": B() }], "grid-rows": [{ "grid-rows": M() }], "row-start-end": [{ row: k() }], "row-start": [{ "row-start": B() }], "row-end": [{ "row-end": B() }], "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], "auto-cols": [{ "auto-cols": j() }], "auto-rows": [{ "auto-rows": j() }], gap: [{ gap: m() }], "gap-x": [{ "gap-x": m() }], "gap-y": [{ "gap-y": m() }], "justify-content": [{ justify: ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe", "normal"] }], "justify-items": [{ "justify-items": ["start", "end", "center", "stretch", "center-safe", "end-safe", "normal"] }], "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch", "center-safe", "end-safe"] }], "align-content": [{ content: ["normal", "start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"] }], "align-items": [{ items: ["start", "end", "center", "stretch", "center-safe", "end-safe", { baseline: ["", "last"] }] }], "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "center-safe", "end-safe", { baseline: ["", "last"] }] }], "place-content": [{ "place-content": ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"] }], "place-items": [{ "place-items": ["start", "end", "center", "stretch", "center-safe", "end-safe", "baseline"] }], "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch", "center-safe", "end-safe"] }], p: [{ p: m() }], px: [{ px: m() }], py: [{ py: m() }], ps: [{ ps: m() }], pe: [{ pe: m() }], pbs: [{ pbs: m() }], pbe: [{ pbe: m() }], pt: [{ pt: m() }], pr: [{ pr: m() }], pb: [{ pb: m() }], pl: [{ pl: m() }], m: [{ m: y() }], mx: [{ mx: y() }], my: [{ my: y() }], ms: [{ ms: y() }], me: [{ me: y() }], mbs: [{ mbs: y() }], mbe: [{ mbe: y() }], mt: [{ mt: y() }], mr: [{ mr: y() }], mb: [{ mb: y() }], ml: [{ ml: y() }], "space-x": [{ "space-x": m() }], "space-x-reverse": ["space-x-reverse"], "space-y": [{ "space-y": m() }], "space-y-reverse": ["space-y-reverse"], size: [{ size: T() }], "inline-size": [{ inline: ["auto", ...D()] }], "min-inline-size": [{ "min-inline": ["auto", ...D()] }], "max-inline-size": [{ "max-inline": ["none", ...D()] }], "block-size": [{ block: ["auto", ...v()] }], "min-block-size": [{ "min-block": ["auto", ...v()] }], "max-block-size": [{ "max-block": ["none", ...v()] }], w: [{ w: [s, "screen", ...T()] }], "min-w": [{ "min-w": [s, "screen", "none", ...T()] }], "max-w": [{ "max-w": [s, "screen", "none", "prose", { screen: [a] }, ...T()] }], h: [{ h: ["screen", "lh", ...T()] }], "min-h": [{ "min-h": ["screen", "lh", "none", ...T()] }], "max-h": [{ "max-h": ["screen", "lh", ...T()] }], "font-size": [{ text: ["base", n, st, je] }], "font-smoothing": ["antialiased", "subpixel-antialiased"], "font-style": ["italic", "not-italic"], "font-weight": [{ font: [r, Vs, Ys] }], "font-stretch": [{ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Pn, S] }], "font-family": [{ font: [Gs, Rs, t] }], "font-features": [{ "font-features": [S] }], "fvn-normal": ["normal-nums"], "fvn-ordinal": ["ordinal"], "fvn-slashed-zero": ["slashed-zero"], "fvn-figure": ["lining-nums", "oldstyle-nums"], "fvn-spacing": ["proportional-nums", "tabular-nums"], "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], tracking: [{ tracking: [o, A, S] }], "line-clamp": [{ "line-clamp": [$, "none", A, eo] }], leading: [{ leading: [i, ...m()] }], "list-image": [{ "list-image": ["none", A, S] }], "list-style-position": [{ list: ["inside", "outside"] }], "list-style-type": [{ list: ["disc", "decimal", "none", A, S] }], "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], "placeholder-color": [{ placeholder: _() }], "text-color": [{ text: _() }], "text-decoration": ["underline", "overline", "line-through", "no-underline"], "text-decoration-style": [{ decoration: ["solid", "dashed", "dotted", "double", "wavy"] }], "text-decoration-thickness": [{ decoration: [$, "from-font", "auto", A, je] }], "text-decoration-color": [{ decoration: _() }], "underline-offset": [{ "underline-offset": [$, "auto", A, S] }], "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], "text-overflow": ["truncate", "text-ellipsis", "text-clip"], "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], indent: [{ indent: m() }], "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", A, S] }], whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], break: [{ break: ["normal", "words", "all", "keep"] }], wrap: [{ wrap: ["break-word", "anywhere", "normal"] }], hyphens: [{ hyphens: ["none", "manual", "auto"] }], content: [{ content: ["none", A, S] }], "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], "bg-position": [{ bg: C() }], "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }] }], "bg-size": [{ bg: Y() }], "bg-image": [{ bg: ["none", { linear: [{ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, Se, A, S], radial: ["", A, S], conic: [Se, A, S] }, Xs, Ws] }], "bg-color": [{ bg: _() }], "gradient-from-pos": [{ from: I() }], "gradient-via-pos": [{ via: I() }], "gradient-to-pos": [{ to: I() }], "gradient-from": [{ from: _() }], "gradient-via": [{ via: _() }], "gradient-to": [{ to: _() }], rounded: [{ rounded: P() }], "rounded-s": [{ "rounded-s": P() }], "rounded-e": [{ "rounded-e": P() }], "rounded-t": [{ "rounded-t": P() }], "rounded-r": [{ "rounded-r": P() }], "rounded-b": [{ "rounded-b": P() }], "rounded-l": [{ "rounded-l": P() }], "rounded-ss": [{ "rounded-ss": P() }], "rounded-se": [{ "rounded-se": P() }], "rounded-ee": [{ "rounded-ee": P() }], "rounded-es": [{ "rounded-es": P() }], "rounded-tl": [{ "rounded-tl": P() }], "rounded-tr": [{ "rounded-tr": P() }], "rounded-br": [{ "rounded-br": P() }], "rounded-bl": [{ "rounded-bl": P() }], "border-w": [{ border: L() }], "border-w-x": [{ "border-x": L() }], "border-w-y": [{ "border-y": L() }], "border-w-s": [{ "border-s": L() }], "border-w-e": [{ "border-e": L() }], "border-w-bs": [{ "border-bs": L() }], "border-w-be": [{ "border-be": L() }], "border-w-t": [{ "border-t": L() }], "border-w-r": [{ "border-r": L() }], "border-w-b": [{ "border-b": L() }], "border-w-l": [{ "border-l": L() }], "divide-x": [{ "divide-x": L() }], "divide-x-reverse": ["divide-x-reverse"], "divide-y": [{ "divide-y": L() }], "divide-y-reverse": ["divide-y-reverse"], "border-style": [{ border: ["solid", "dashed", "dotted", "double", "hidden", "none"] }], "divide-style": [{ divide: ["solid", "dashed", "dotted", "double", "hidden", "none"] }], "border-color": [{ border: _() }], "border-color-x": [{ "border-x": _() }], "border-color-y": [{ "border-y": _() }], "border-color-s": [{ "border-s": _() }], "border-color-e": [{ "border-e": _() }], "border-color-bs": [{ "border-bs": _() }], "border-color-be": [{ "border-be": _() }], "border-color-t": [{ "border-t": _() }], "border-color-r": [{ "border-r": _() }], "border-color-b": [{ "border-b": _() }], "border-color-l": [{ "border-l": _() }], "divide-color": [{ divide: _() }], "outline-style": [{ outline: ["solid", "dashed", "dotted", "double", "none", "hidden"] }], "outline-offset": [{ "outline-offset": [$, A, S] }], "outline-w": [{ outline: ["", $, st, je] }], "outline-color": [{ outline: _() }], shadow: [{ shadow: ["", "none", c, zt, Pt] }], "shadow-color": [{ shadow: _() }], "inset-shadow": [{ "inset-shadow": ["none", h, zt, Pt] }], "inset-shadow-color": [{ "inset-shadow": _() }], "ring-w": [{ ring: L() }], "ring-w-inset": ["ring-inset"], "ring-color": [{ ring: _() }], "ring-offset-w": [{ "ring-offset": [$, je] }], "ring-offset-color": [{ "ring-offset": _() }], "inset-ring-w": [{ "inset-ring": L() }], "inset-ring-color": [{ "inset-ring": _() }], "text-shadow": [{ "text-shadow": ["none", f, zt, Pt] }], "text-shadow-color": [{ "text-shadow": _() }], opacity: [{ opacity: [$, A, S] }], "mix-blend": [{ "mix-blend": ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-darker", "plus-lighter"] }], "bg-blend": [{ "bg-blend": ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"] }], "mask-clip": [{ "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"] }, "mask-no-clip"], "mask-composite": [{ mask: ["add", "subtract", "intersect", "exclude"] }], "mask-image-linear-pos": [{ "mask-linear": [$] }], "mask-image-linear-from-pos": [{ "mask-linear-from": H() }], "mask-image-linear-to-pos": [{ "mask-linear-to": H() }], "mask-image-linear-from-color": [{ "mask-linear-from": _() }], "mask-image-linear-to-color": [{ "mask-linear-to": _() }], "mask-image-t-from-pos": [{ "mask-t-from": H() }], "mask-image-t-to-pos": [{ "mask-t-to": H() }], "mask-image-t-from-color": [{ "mask-t-from": _() }], "mask-image-t-to-color": [{ "mask-t-to": _() }], "mask-image-r-from-pos": [{ "mask-r-from": H() }], "mask-image-r-to-pos": [{ "mask-r-to": H() }], "mask-image-r-from-color": [{ "mask-r-from": _() }], "mask-image-r-to-color": [{ "mask-r-to": _() }], "mask-image-b-from-pos": [{ "mask-b-from": H() }], "mask-image-b-to-pos": [{ "mask-b-to": H() }], "mask-image-b-from-color": [{ "mask-b-from": _() }], "mask-image-b-to-color": [{ "mask-b-to": _() }], "mask-image-l-from-pos": [{ "mask-l-from": H() }], "mask-image-l-to-pos": [{ "mask-l-to": H() }], "mask-image-l-from-color": [{ "mask-l-from": _() }], "mask-image-l-to-color": [{ "mask-l-to": _() }], "mask-image-x-from-pos": [{ "mask-x-from": H() }], "mask-image-x-to-pos": [{ "mask-x-to": H() }], "mask-image-x-from-color": [{ "mask-x-from": _() }], "mask-image-x-to-color": [{ "mask-x-to": _() }], "mask-image-y-from-pos": [{ "mask-y-from": H() }], "mask-image-y-to-pos": [{ "mask-y-to": H() }], "mask-image-y-from-color": [{ "mask-y-from": _() }], "mask-image-y-to-color": [{ "mask-y-to": _() }], "mask-image-radial": [{ "mask-radial": [A, S] }], "mask-image-radial-from-pos": [{ "mask-radial-from": H() }], "mask-image-radial-to-pos": [{ "mask-radial-to": H() }], "mask-image-radial-from-color": [{ "mask-radial-from": _() }], "mask-image-radial-to-color": [{ "mask-radial-to": _() }], "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }], "mask-image-radial-size": [{ "mask-radial": [{ closest: ["side", "corner"], farthest: ["side", "corner"] }] }], "mask-image-radial-pos": [{ "mask-radial-at": ["center", "top", "bottom", "left", "right", "top-left", "left-top", "top-right", "right-top", "bottom-right", "right-bottom", "bottom-left", "left-bottom"] }], "mask-image-conic-pos": [{ "mask-conic": [$] }], "mask-image-conic-from-pos": [{ "mask-conic-from": H() }], "mask-image-conic-to-pos": [{ "mask-conic-to": H() }], "mask-image-conic-from-color": [{ "mask-conic-from": _() }], "mask-image-conic-to-color": [{ "mask-conic-to": _() }], "mask-mode": [{ mask: ["alpha", "luminance", "match"] }], "mask-origin": [{ "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"] }], "mask-position": [{ mask: C() }], "mask-repeat": [{ mask: ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }] }], "mask-size": [{ mask: Y() }], "mask-type": [{ "mask-type": ["alpha", "luminance"] }], "mask-image": [{ mask: ["none", A, S] }], filter: [{ filter: ["", "none", A, S] }], blur: [{ blur: oe() }], brightness: [{ brightness: [$, A, S] }], contrast: [{ contrast: [$, A, S] }], "drop-shadow": [{ "drop-shadow": ["", "none", d, zt, Pt] }], "drop-shadow-color": [{ "drop-shadow": _() }], grayscale: [{ grayscale: ["", $, A, S] }], "hue-rotate": [{ "hue-rotate": [$, A, S] }], invert: [{ invert: ["", $, A, S] }], saturate: [{ saturate: [$, A, S] }], sepia: [{ sepia: ["", $, A, S] }], "backdrop-filter": [{ "backdrop-filter": ["", "none", A, S] }], "backdrop-blur": [{ "backdrop-blur": oe() }], "backdrop-brightness": [{ "backdrop-brightness": [$, A, S] }], "backdrop-contrast": [{ "backdrop-contrast": [$, A, S] }], "backdrop-grayscale": [{ "backdrop-grayscale": ["", $, A, S] }], "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [$, A, S] }], "backdrop-invert": [{ "backdrop-invert": ["", $, A, S] }], "backdrop-opacity": [{ "backdrop-opacity": [$, A, S] }], "backdrop-saturate": [{ "backdrop-saturate": [$, A, S] }], "backdrop-sepia": [{ "backdrop-sepia": ["", $, A, S] }], "border-collapse": [{ border: ["collapse", "separate"] }], "border-spacing": [{ "border-spacing": m() }], "border-spacing-x": [{ "border-spacing-x": m() }], "border-spacing-y": [{ "border-spacing-y": m() }], "table-layout": [{ table: ["auto", "fixed"] }], caption: [{ caption: ["top", "bottom"] }], transition: [{ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", A, S] }], "transition-behavior": [{ transition: ["normal", "discrete"] }], duration: [{ duration: [$, "initial", A, S] }], ease: [{ ease: ["linear", "initial", b, A, S] }], delay: [{ delay: [$, A, S] }], animate: [{ animate: ["none", w, A, S] }], backface: [{ backface: ["hidden", "visible"] }], perspective: [{ perspective: [p, A, S] }], "perspective-origin": [{ "perspective-origin": E() }], rotate: [{ rotate: se() }], "rotate-x": [{ "rotate-x": se() }], "rotate-y": [{ "rotate-y": se() }], "rotate-z": [{ "rotate-z": se() }], scale: [{ scale: Ce() }], "scale-x": [{ "scale-x": Ce() }], "scale-y": [{ "scale-y": Ce() }], "scale-z": [{ "scale-z": Ce() }], "scale-3d": ["scale-3d"], skew: [{ skew: at() }], "skew-x": [{ "skew-x": at() }], "skew-y": [{ "skew-y": at() }], transform: [{ transform: [A, S, "", "none", "gpu", "cpu"] }], "transform-origin": [{ origin: E() }], "transform-style": [{ transform: ["3d", "flat"] }], translate: [{ translate: ie() }], "translate-x": [{ "translate-x": ie() }], "translate-y": [{ "translate-y": ie() }], "translate-z": [{ "translate-z": ie() }], "translate-none": ["translate-none"], accent: [{ accent: _() }], appearance: [{ appearance: ["none", "auto"] }], "caret-color": [{ caret: _() }], "color-scheme": [{ scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"] }], cursor: [{ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", A, S] }], "field-sizing": [{ "field-sizing": ["fixed", "content"] }], "pointer-events": [{ "pointer-events": ["auto", "none"] }], resize: [{ resize: ["none", "", "y", "x"] }], "scroll-behavior": [{ scroll: ["auto", "smooth"] }], "scroll-m": [{ "scroll-m": m() }], "scroll-mx": [{ "scroll-mx": m() }], "scroll-my": [{ "scroll-my": m() }], "scroll-ms": [{ "scroll-ms": m() }], "scroll-me": [{ "scroll-me": m() }], "scroll-mbs": [{ "scroll-mbs": m() }], "scroll-mbe": [{ "scroll-mbe": m() }], "scroll-mt": [{ "scroll-mt": m() }], "scroll-mr": [{ "scroll-mr": m() }], "scroll-mb": [{ "scroll-mb": m() }], "scroll-ml": [{ "scroll-ml": m() }], "scroll-p": [{ "scroll-p": m() }], "scroll-px": [{ "scroll-px": m() }], "scroll-py": [{ "scroll-py": m() }], "scroll-ps": [{ "scroll-ps": m() }], "scroll-pe": [{ "scroll-pe": m() }], "scroll-pbs": [{ "scroll-pbs": m() }], "scroll-pbe": [{ "scroll-pbe": m() }], "scroll-pt": [{ "scroll-pt": m() }], "scroll-pr": [{ "scroll-pr": m() }], "scroll-pb": [{ "scroll-pb": m() }], "scroll-pl": [{ "scroll-pl": m() }], "snap-align": [{ snap: ["start", "end", "center", "align-none"] }], "snap-stop": [{ snap: ["normal", "always"] }], "snap-type": [{ snap: ["none", "x", "y", "both"] }], "snap-strictness": [{ snap: ["mandatory", "proximity"] }], touch: [{ touch: ["auto", "none", "manipulation"] }], "touch-x": [{ "touch-pan": ["x", "left", "right"] }], "touch-y": [{ "touch-pan": ["y", "up", "down"] }], "touch-pz": ["touch-pinch-zoom"], select: [{ select: ["none", "text", "all", "auto"] }], "will-change": [{ "will-change": ["auto", "scroll", "contents", "transform", A, S] }], fill: [{ fill: ["none", ..._()] }], "stroke-w": [{ stroke: [$, st, je, eo] }], stroke: [{ stroke: ["none", ..._()] }], "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: ["inset-x", "inset-y", "inset-bs", "inset-be", "start", "end", "top", "right", "bottom", "left"], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-bs", "border-w-be", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-bs", "border-color-be", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], translate: ["translate-x", "translate-y", "translate-none"], "translate-none": ["translate", "translate-x", "translate-y", "translate-z"], "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] }, orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"] };
349
- });
350
- function Oe(...e) {
351
- return Zs((function() {
352
- for (var t, n, r = 0, o = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (n = Ni(t)) && (o && (o += " "), o += n);
353
- return o;
354
- })(e));
355
- }
356
- function Mh(e) {
357
- if (!e) return "0 B";
358
- e = Number(e), e = parseFloat(e.toString());
359
- const t = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
360
- let n = 0;
361
- for (; e >= 1024 && n < t.length - 1; ) e /= 1024, n++;
362
- return `${e.toFixed(2)} ${t[n]}`;
363
- }
364
- const Qs = /* @__PURE__ */ Ne({ __name: "ChartStyle", props: { id: {} }, setup(e) {
365
- const { config: t } = Gr(), n = xe(() => Object.entries(t.value).filter(([, r]) => r.theme || r.color));
366
- return (r, o) => n.value.length ? (K(), br(ae(us), { key: 0, as: "style" }, { default: es(() => [_i(Xe(Object.entries(ae(Ga)).map(([i, a]) => `
367
- ${a} [data-chart=${e.id}] {
368
- ${n.value.map(([s, l]) => {
369
- const u = l.theme?.[i] || l.color;
370
- return u ? ` --color-${s}: ${u};` : null;
371
- }).join(`
372
- `)}
373
- }
374
- `).join(`
375
- `)), 1)]), _: 1 })) : Ve("", !0);
376
- } }), Js = ["data-chart"], el = /* @__PURE__ */ Ne({ __name: "ChartContainer", props: { id: {}, class: { type: [Boolean, null, String, Object, Array] }, config: {}, cursor: { type: Boolean } }, setup(e) {
377
- const t = e, { config: n } = Qn(t), r = Ai(), o = xe(() => `chart-${t.id || r.replace(/:/g, "")}`);
378
- return qa({ id: r, config: n }), (i, a) => (K(), Q("div", { "data-slot": "chart", "data-chart": o.value, class: ze(ae(Oe)("[&_.tick_text]:!fill-muted-foreground [&_.tick_line]:!stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex flex-col aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden [&_[data-vis-xy-container]]:h-full [&_[data-vis-single-container]]:h-full h-full [&_[data-vis-xy-container]]:w-full [&_[data-vis-single-container]]:w-full w-full ", t.class)), style: wr({ "--vis-tooltip-padding": "0px", "--vis-tooltip-background-color": "transparent", "--vis-tooltip-border-color": "transparent", "--vis-tooltip-text-color": "none", "--vis-tooltip-shadow-color": "none", "--vis-tooltip-backdrop-filter": "none", "--vis-crosshair-circle-stroke-color": "#0000", "--vis-crosshair-line-stroke-width": e.cursor ? "1px" : "0px", "--vis-font-family": "var(--font-sans)" }) }, [yi(i.$slots, "default", { id: ae(r), config: ae(n) }), Ja(Qs, { id: o.value }, null, 8, ["id"])], 14, Js));
379
- } }), tl = /* @__PURE__ */ Ne({ __name: "ChartLegendContent", props: { hideIcon: { type: Boolean }, nameKey: {}, verticalAlign: { default: "bottom" }, class: { type: [Boolean, null, String, Object, Array] } }, setup(e) {
380
- const t = e, { id: n, config: r } = Gr(), o = xe(() => Object.entries(r.value).map(([a, s]) => ({ key: t.nameKey || a, itemConfig: r.value[a] }))), i = xn("");
381
- return _n(() => {
382
- i.value = `[data-chart="chart-${n}"]>[data-vis-xy-container]`;
383
- }), (a, s) => i.value ? (K(), Q("div", { key: 0, class: ze(ae(Oe)("flex items-center justify-center gap-4", e.verticalAlign === "top" ? "pb-3" : "pt-3", t.class)) }, [(K(!0), Q(yr, null, bi(o.value, ({ key: l, itemConfig: u }) => (K(), Q("div", { key: l, class: ze(ae(Oe)("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3")) }, [u?.icon ? (K(), br(wi(u.icon), { key: 0 })) : (K(), Q("div", { key: 1, class: "h-2 w-2 shrink-0 rounded-[2px]", style: wr({ backgroundColor: u.color }) }, null, 4)), _i(" " + Xe(u?.label), 1)], 2))), 128))], 2)) : Ve("", !0);
384
- } }), nl = { key: 0, class: "font-medium" }, rl = { class: "grid gap-1.5" }, ol = { class: "grid gap-1.5" }, il = { key: 0, class: "font-medium" }, al = { class: "text-muted-foreground" }, sl = { key: 0, class: "text-foreground font-mono font-medium tabular-nums" }, ll = /* @__PURE__ */ Ne({ __name: "ChartTooltipContent", props: { hideLabel: { type: Boolean }, hideIndicator: { type: Boolean }, indicator: { default: "dot" }, nameKey: {}, labelKey: {}, labelFormatter: {}, payload: { default: () => ({}) }, config: { default: () => ({}) }, class: { type: [Boolean, null, String, Object, Array] }, color: {}, x: {} }, setup(e) {
385
- const t = e, n = xe(() => Object.entries(t.payload).map(([i, a]) => ({ key: i, value: a, itemConfig: t.config[i], indicatorColor: t.config[i]?.color ?? t.payload.fill })).filter((i) => i.itemConfig)), r = xe(() => Object.keys(t.payload).length === 1 && t.indicator !== "dot"), o = xe(() => t.hideLabel ? null : t.labelFormatter && t.x !== void 0 ? t.labelFormatter(t.x) : t.labelKey ? t.config[t.labelKey]?.label || t.payload[t.labelKey] : t.x);
386
- return (i, a) => (K(), Q("div", { class: ze(ae(Oe)("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl", t.class)) }, [yi(i.$slots, "default", {}, () => [!r.value && o.value ? (K(), Q("div", nl, Xe(o.value), 1)) : Ve("", !0), jt("div", rl, [(K(!0), Q(yr, null, bi(n.value, ({ value: s, itemConfig: l, indicatorColor: u, key: c }) => (K(), Q("div", { key: c, class: ze(ae(Oe)("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", e.indicator === "dot" && "items-center")) }, [l?.icon ? (K(), br(wi(l.icon), { key: 0 })) : e.hideIndicator ? Ve("", !0) : (K(), Q("div", { key: 1, class: ze(ae(Oe)("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", { "h-2.5 w-2.5": e.indicator === "dot", "w-1": e.indicator === "line", "w-0 border-[1.5px] border-dashed bg-transparent": e.indicator === "dashed", "my-0.5": r.value && e.indicator === "dashed" })), style: wr({ "--color-bg": u, "--color-border": u }) }, null, 6)), jt("div", { class: ze(ae(Oe)("flex flex-1 justify-between leading-none", r.value ? "items-end" : "items-center")) }, [jt("div", ol, [r.value ? (K(), Q("div", il, Xe(o.value), 1)) : Ve("", !0), jt("span", al, Xe(l?.label || s), 1)]), s ? (K(), Q("span", sl, Xe(s.toLocaleString()), 1)) : Ve("", !0)], 2)], 2))), 128))])])], 2));
387
- } });
388
- var Jn = "http://www.w3.org/1999/xhtml";
389
- const ro = { svg: "http://www.w3.org/2000/svg", xhtml: Jn, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" };
390
- function nn(e) {
391
- var t = e += "", n = t.indexOf(":");
392
- return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), ro.hasOwnProperty(t) ? { space: ro[t], local: e } : e;
393
- }
394
- function ul(e) {
395
- return function() {
396
- var t = this.ownerDocument, n = this.namespaceURI;
397
- return n === Jn && t.documentElement.namespaceURI === Jn ? t.createElement(e) : t.createElementNS(n, e);
398
- };
399
- }
400
- function cl(e) {
401
- return function() {
402
- return this.ownerDocument.createElementNS(e.space, e.local);
403
- };
404
- }
405
- function oo(e) {
406
- var t = nn(e);
407
- return (t.local ? cl : ul)(t);
408
- }
409
- function fl() {
410
- }
411
- function er(e) {
412
- return e == null ? fl : function() {
413
- return this.querySelector(e);
414
- };
415
- }
416
- function hl() {
417
- return [];
418
- }
419
- function Ri(e) {
420
- return e == null ? hl : function() {
421
- return this.querySelectorAll(e);
422
- };
423
- }
424
- function dl(e) {
425
- return function() {
426
- return (t = e.apply(this, arguments)) == null ? [] : Array.isArray(t) ? t : Array.from(t);
427
- var t;
428
- };
429
- }
430
- function Wi(e) {
431
- return function() {
432
- return this.matches(e);
433
- };
434
- }
435
- function io(e) {
436
- return function(t) {
437
- return t.matches(e);
438
- };
439
- }
440
- var pl = Array.prototype.find;
441
- function gl() {
442
- return this.firstElementChild;
443
- }
444
- var ml = Array.prototype.filter;
445
- function vl() {
446
- return Array.from(this.children);
447
- }
448
- function ao(e) {
449
- return new Array(e.length);
450
- }
451
- function rn(e, t) {
452
- this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
453
- }
454
- function yl(e, t, n, r, o, i) {
455
- for (var a, s = 0, l = t.length, u = i.length; s < u; ++s) (a = t[s]) ? (a.__data__ = i[s], r[s] = a) : n[s] = new rn(e, i[s]);
456
- for (; s < l; ++s) (a = t[s]) && (o[s] = a);
457
- }
458
- function bl(e, t, n, r, o, i, a) {
459
- var s, l, u, c = /* @__PURE__ */ new Map(), h = t.length, f = i.length, d = new Array(h);
460
- for (s = 0; s < h; ++s) (l = t[s]) && (d[s] = u = a.call(l, l.__data__, s, t) + "", c.has(u) ? o[s] = l : c.set(u, l));
461
- for (s = 0; s < f; ++s) u = a.call(e, i[s], s, i) + "", (l = c.get(u)) ? (r[s] = l, l.__data__ = i[s], c.delete(u)) : n[s] = new rn(e, i[s]);
462
- for (s = 0; s < h; ++s) (l = t[s]) && c.get(d[s]) === l && (o[s] = l);
463
- }
464
- function wl(e) {
465
- return e.__data__;
466
- }
467
- function xl(e) {
468
- return typeof e == "object" && "length" in e ? e : Array.from(e);
469
- }
470
- function _l(e, t) {
471
- return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
472
- }
473
- function kl(e) {
474
- return function() {
475
- this.removeAttribute(e);
476
- };
477
- }
478
- function Cl(e) {
479
- return function() {
480
- this.removeAttributeNS(e.space, e.local);
481
- };
482
- }
483
- function Ml(e, t) {
484
- return function() {
485
- this.setAttribute(e, t);
486
- };
487
- }
488
- function Sl(e, t) {
489
- return function() {
490
- this.setAttributeNS(e.space, e.local, t);
491
- };
492
- }
493
- function Al(e, t) {
494
- return function() {
495
- var n = t.apply(this, arguments);
496
- n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
497
- };
498
- }
499
- function Tl(e, t) {
500
- return function() {
501
- var n = t.apply(this, arguments);
502
- n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
503
- };
504
- }
505
- function Gi(e) {
506
- return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
507
- }
508
- function Nl(e) {
509
- return function() {
510
- this.style.removeProperty(e);
511
- };
512
- }
513
- function El(e, t, n) {
514
- return function() {
515
- this.style.setProperty(e, t, n);
516
- };
517
- }
518
- function Dl(e, t, n) {
519
- return function() {
520
- var r = t.apply(this, arguments);
521
- r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
522
- };
523
- }
524
- function Ge(e, t) {
525
- return e.style.getPropertyValue(t) || Gi(e).getComputedStyle(e, null).getPropertyValue(t);
526
- }
527
- function $l(e) {
528
- return function() {
529
- delete this[e];
530
- };
531
- }
532
- function jl(e, t) {
533
- return function() {
534
- this[e] = t;
535
- };
536
- }
537
- function Pl(e, t) {
538
- return function() {
539
- var n = t.apply(this, arguments);
540
- n == null ? delete this[e] : this[e] = n;
541
- };
542
- }
543
- function qi(e) {
544
- return e.trim().split(/^|\s+/);
545
- }
546
- function Mr(e) {
547
- return e.classList || new Xi(e);
548
- }
549
- function Xi(e) {
550
- this._node = e, this._names = qi(e.getAttribute("class") || "");
551
- }
552
- function Vi(e, t) {
553
- for (var n = Mr(e), r = -1, o = t.length; ++r < o; ) n.add(t[r]);
554
- }
555
- function Ki(e, t) {
556
- for (var n = Mr(e), r = -1, o = t.length; ++r < o; ) n.remove(t[r]);
557
- }
558
- function zl(e) {
559
- return function() {
560
- Vi(this, e);
561
- };
562
- }
563
- function Ol(e) {
564
- return function() {
565
- Ki(this, e);
566
- };
567
- }
568
- function Fl(e, t) {
569
- return function() {
570
- (t.apply(this, arguments) ? Vi : Ki)(this, e);
571
- };
572
- }
573
- function Ul() {
574
- this.textContent = "";
575
- }
576
- function Il(e) {
577
- return function() {
578
- this.textContent = e;
579
- };
580
- }
581
- function Hl(e) {
582
- return function() {
583
- var t = e.apply(this, arguments);
584
- this.textContent = t ?? "";
585
- };
586
- }
587
- function Ll() {
588
- this.innerHTML = "";
589
- }
590
- function Bl(e) {
591
- return function() {
592
- this.innerHTML = e;
593
- };
594
- }
595
- function Yl(e) {
596
- return function() {
597
- var t = e.apply(this, arguments);
598
- this.innerHTML = t ?? "";
599
- };
600
- }
601
- function Rl() {
602
- this.nextSibling && this.parentNode.appendChild(this);
603
- }
604
- function Wl() {
605
- this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
606
- }
607
- function Gl() {
608
- return null;
609
- }
610
- function ql() {
611
- var e = this.parentNode;
612
- e && e.removeChild(this);
613
- }
614
- function Xl() {
615
- var e = this.cloneNode(!1), t = this.parentNode;
616
- return t ? t.insertBefore(e, this.nextSibling) : e;
617
- }
618
- function Vl() {
619
- var e = this.cloneNode(!0), t = this.parentNode;
620
- return t ? t.insertBefore(e, this.nextSibling) : e;
621
- }
622
- function Kl(e) {
623
- return function() {
624
- var t = this.__on;
625
- if (t) {
626
- for (var n, r = 0, o = -1, i = t.length; r < i; ++r) n = t[r], e.type && n.type !== e.type || n.name !== e.name ? t[++o] = n : this.removeEventListener(n.type, n.listener, n.options);
627
- ++o ? t.length = o : delete this.__on;
628
- }
629
- };
630
- }
631
- function Zl(e, t, n) {
632
- return function() {
633
- var r, o = this.__on, i = /* @__PURE__ */ (function(l) {
634
- return function(u) {
635
- l.call(this, u, this.__data__);
636
- };
637
- })(t);
638
- if (o) {
639
- for (var a = 0, s = o.length; a < s; ++a) if ((r = o[a]).type === e.type && r.name === e.name) return this.removeEventListener(r.type, r.listener, r.options), this.addEventListener(r.type, r.listener = i, r.options = n), void (r.value = t);
640
- }
641
- this.addEventListener(e.type, i, n), r = { type: e.type, name: e.name, value: t, listener: i, options: n }, o ? o.push(r) : this.__on = [r];
642
- };
643
- }
644
- function Zi(e, t, n) {
645
- var r = Gi(e), o = r.CustomEvent;
646
- typeof o == "function" ? o = new o(t, n) : (o = r.document.createEvent("Event"), n ? (o.initEvent(t, n.bubbles, n.cancelable), o.detail = n.detail) : o.initEvent(t, !1, !1)), e.dispatchEvent(o);
647
- }
648
- function Ql(e, t) {
649
- return function() {
650
- return Zi(this, e, t);
651
- };
652
- }
653
- function Jl(e, t) {
654
- return function() {
655
- return Zi(this, e, t.apply(this, arguments));
656
- };
657
- }
658
- rn.prototype = { constructor: rn, appendChild: function(e) {
659
- return this._parent.insertBefore(e, this._next);
660
- }, insertBefore: function(e, t) {
661
- return this._parent.insertBefore(e, t);
662
- }, querySelector: function(e) {
663
- return this._parent.querySelector(e);
664
- }, querySelectorAll: function(e) {
665
- return this._parent.querySelectorAll(e);
666
- } }, Xi.prototype = { add: function(e) {
667
- this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
668
- }, remove: function(e) {
669
- var t = this._names.indexOf(e);
670
- t >= 0 && (this._names.splice(t, 1), this._node.setAttribute("class", this._names.join(" ")));
671
- }, contains: function(e) {
672
- return this._names.indexOf(e) >= 0;
673
- } };
674
- var vt, Ot, tr, zn, Qi = [null];
675
- function ne(e, t) {
676
- this._groups = e, this._parents = t;
677
- }
678
- function _t() {
679
- return new ne([[document.documentElement]], Qi);
680
- }
681
- function Rt(e) {
682
- return typeof e == "string" ? new ne([[document.querySelector(e)]], [document.documentElement]) : new ne([[e]], Qi);
683
- }
684
- function on(e, t) {
685
- if (e = (function(i) {
686
- let a;
687
- for (; a = i.sourceEvent; ) i = a;
688
- return i;
689
- })(e), t === void 0 && (t = e.currentTarget), t) {
690
- var n = t.ownerSVGElement || t;
691
- if (n.createSVGPoint) {
692
- var r = n.createSVGPoint();
693
- return r.x = e.clientX, r.y = e.clientY, [(r = r.matrixTransform(t.getScreenCTM().inverse())).x, r.y];
694
- }
695
- if (t.getBoundingClientRect) {
696
- var o = t.getBoundingClientRect();
697
- return [e.clientX - o.left - t.clientLeft, e.clientY - o.top - t.clientTop];
698
- }
699
- }
700
- return [e.pageX, e.pageY];
701
- }
702
- function yt(e, t) {
703
- return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
704
- }
705
- function eu(e, t) {
706
- return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
707
- }
708
- function Sr(e) {
709
- let t, n, r;
710
- function o(i, a, s = 0, l = i.length) {
711
- if (s < l) {
712
- if (t(a, a) !== 0) return l;
713
- do {
714
- const u = s + l >>> 1;
715
- n(i[u], a) < 0 ? s = u + 1 : l = u;
716
- } while (s < l);
717
- }
718
- return s;
719
- }
720
- return e.length !== 2 ? (t = yt, n = (i, a) => yt(e(i), a), r = (i, a) => e(i) - a) : (t = e === yt || e === eu ? e : tu, n = e, r = e), { left: o, center: function(i, a, s = 0, l = i.length) {
721
- const u = o(i, a, s, l - 1);
722
- return u > s && r(i[u - 1], a) > -r(i[u], a) ? u - 1 : u;
723
- }, right: function(i, a, s = 0, l = i.length) {
724
- if (s < l) {
725
- if (t(a, a) !== 0) return l;
726
- do {
727
- const u = s + l >>> 1;
728
- n(i[u], a) <= 0 ? s = u + 1 : l = u;
729
- } while (s < l);
730
- }
731
- return s;
732
- } };
733
- }
734
- function tu() {
735
- return 0;
736
- }
737
- function Ji(e) {
738
- return e === null ? NaN : +e;
739
- }
740
- ne.prototype = _t.prototype = { constructor: ne, select: function(e) {
741
- typeof e != "function" && (e = er(e));
742
- for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o) for (var i, a, s = t[o], l = s.length, u = r[o] = new Array(l), c = 0; c < l; ++c) (i = s[c]) && (a = e.call(i, i.__data__, c, s)) && ("__data__" in i && (a.__data__ = i.__data__), u[c] = a);
743
- return new ne(r, this._parents);
744
- }, selectAll: function(e) {
745
- e = typeof e == "function" ? dl(e) : Ri(e);
746
- for (var t = this._groups, n = t.length, r = [], o = [], i = 0; i < n; ++i) for (var a, s = t[i], l = s.length, u = 0; u < l; ++u) (a = s[u]) && (r.push(e.call(a, a.__data__, u, s)), o.push(a));
747
- return new ne(r, o);
748
- }, selectChild: function(e) {
749
- return this.select(e == null ? gl : /* @__PURE__ */ (function(t) {
750
- return function() {
751
- return pl.call(this.children, t);
752
- };
753
- })(typeof e == "function" ? e : io(e)));
754
- }, selectChildren: function(e) {
755
- return this.selectAll(e == null ? vl : /* @__PURE__ */ (function(t) {
756
- return function() {
757
- return ml.call(this.children, t);
758
- };
759
- })(typeof e == "function" ? e : io(e)));
760
- }, filter: function(e) {
761
- typeof e != "function" && (e = Wi(e));
762
- for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o) for (var i, a = t[o], s = a.length, l = r[o] = [], u = 0; u < s; ++u) (i = a[u]) && e.call(i, i.__data__, u, a) && l.push(i);
763
- return new ne(r, this._parents);
764
- }, data: function(e, t) {
765
- if (!arguments.length) return Array.from(this, wl);
766
- var n, r = t ? bl : yl, o = this._parents, i = this._groups;
767
- typeof e != "function" && (n = e, e = function() {
768
- return n;
769
- });
770
- for (var a = i.length, s = new Array(a), l = new Array(a), u = new Array(a), c = 0; c < a; ++c) {
771
- var h = o[c], f = i[c], d = f.length, g = xl(e.call(h, h && h.__data__, c, o)), p = g.length, x = l[c] = new Array(p), b = s[c] = new Array(p);
772
- r(h, f, x, b, u[c] = new Array(d), g, t);
773
- for (var w, E, m = 0, N = 0; m < p; ++m) if (w = x[m]) {
774
- for (m >= N && (N = m + 1); !(E = b[N]) && ++N < p; ) ;
775
- w._next = E || null;
776
- }
777
- }
778
- return (s = new ne(s, o))._enter = l, s._exit = u, s;
779
- }, enter: function() {
780
- return new ne(this._enter || this._groups.map(ao), this._parents);
781
- }, exit: function() {
782
- return new ne(this._exit || this._groups.map(ao), this._parents);
783
- }, join: function(e, t, n) {
784
- var r = this.enter(), o = this, i = this.exit();
785
- return typeof e == "function" ? (r = e(r)) && (r = r.selection()) : r = r.append(e + ""), t != null && (o = t(o)) && (o = o.selection()), n == null ? i.remove() : n(i), r && o ? r.merge(o).order() : o;
786
- }, merge: function(e) {
787
- for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, o = n.length, i = r.length, a = Math.min(o, i), s = new Array(o), l = 0; l < a; ++l) for (var u, c = n[l], h = r[l], f = c.length, d = s[l] = new Array(f), g = 0; g < f; ++g) (u = c[g] || h[g]) && (d[g] = u);
788
- for (; l < o; ++l) s[l] = n[l];
789
- return new ne(s, this._parents);
790
- }, selection: function() {
791
- return this;
792
- }, order: function() {
793
- for (var e = this._groups, t = -1, n = e.length; ++t < n; ) for (var r, o = e[t], i = o.length - 1, a = o[i]; --i >= 0; ) (r = o[i]) && (a && 4 ^ r.compareDocumentPosition(a) && a.parentNode.insertBefore(r, a), a = r);
794
- return this;
795
- }, sort: function(e) {
796
- function t(h, f) {
797
- return h && f ? e(h.__data__, f.__data__) : !h - !f;
798
- }
799
- e || (e = _l);
800
- for (var n = this._groups, r = n.length, o = new Array(r), i = 0; i < r; ++i) {
801
- for (var a, s = n[i], l = s.length, u = o[i] = new Array(l), c = 0; c < l; ++c) (a = s[c]) && (u[c] = a);
802
- u.sort(t);
803
- }
804
- return new ne(o, this._parents).order();
805
- }, call: function() {
806
- var e = arguments[0];
807
- return arguments[0] = this, e.apply(null, arguments), this;
808
- }, nodes: function() {
809
- return Array.from(this);
810
- }, node: function() {
811
- for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], o = 0, i = r.length; o < i; ++o) {
812
- var a = r[o];
813
- if (a) return a;
814
- }
815
- return null;
816
- }, size: function() {
817
- let e = 0;
818
- for (const t of this) ++e;
819
- return e;
820
- }, empty: function() {
821
- return !this.node();
822
- }, each: function(e) {
823
- for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var o, i = t[n], a = 0, s = i.length; a < s; ++a) (o = i[a]) && e.call(o, o.__data__, a, i);
824
- return this;
825
- }, attr: function(e, t) {
826
- var n = nn(e);
827
- if (arguments.length < 2) {
828
- var r = this.node();
829
- return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
830
- }
831
- return this.each((t == null ? n.local ? Cl : kl : typeof t == "function" ? n.local ? Tl : Al : n.local ? Sl : Ml)(n, t));
832
- }, style: function(e, t, n) {
833
- return arguments.length > 1 ? this.each((t == null ? Nl : typeof t == "function" ? Dl : El)(e, t, n ?? "")) : Ge(this.node(), e);
834
- }, property: function(e, t) {
835
- return arguments.length > 1 ? this.each((t == null ? $l : typeof t == "function" ? Pl : jl)(e, t)) : this.node()[e];
836
- }, classed: function(e, t) {
837
- var n = qi(e + "");
838
- if (arguments.length < 2) {
839
- for (var r = Mr(this.node()), o = -1, i = n.length; ++o < i; ) if (!r.contains(n[o])) return !1;
840
- return !0;
841
- }
842
- return this.each((typeof t == "function" ? Fl : t ? zl : Ol)(n, t));
843
- }, text: function(e) {
844
- return arguments.length ? this.each(e == null ? Ul : (typeof e == "function" ? Hl : Il)(e)) : this.node().textContent;
845
- }, html: function(e) {
846
- return arguments.length ? this.each(e == null ? Ll : (typeof e == "function" ? Yl : Bl)(e)) : this.node().innerHTML;
847
- }, raise: function() {
848
- return this.each(Rl);
849
- }, lower: function() {
850
- return this.each(Wl);
851
- }, append: function(e) {
852
- var t = typeof e == "function" ? e : oo(e);
853
- return this.select(function() {
854
- return this.appendChild(t.apply(this, arguments));
855
- });
856
- }, insert: function(e, t) {
857
- var n = typeof e == "function" ? e : oo(e), r = t == null ? Gl : typeof t == "function" ? t : er(t);
858
- return this.select(function() {
859
- return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
860
- });
861
- }, remove: function() {
862
- return this.each(ql);
863
- }, clone: function(e) {
864
- return this.select(e ? Vl : Xl);
865
- }, datum: function(e) {
866
- return arguments.length ? this.property("__data__", e) : this.node().__data__;
867
- }, on: function(e, t, n) {
868
- var r, o, i = (function(h) {
869
- return h.trim().split(/^|\s+/).map(function(f) {
870
- var d = "", g = f.indexOf(".");
871
- return g >= 0 && (d = f.slice(g + 1), f = f.slice(0, g)), { type: f, name: d };
872
- });
873
- })(e + ""), a = i.length;
874
- if (!(arguments.length < 2)) {
875
- for (s = t ? Zl : Kl, r = 0; r < a; ++r) this.each(s(i[r], t, n));
876
- return this;
877
- }
878
- var s = this.node().__on;
879
- if (s) {
880
- for (var l, u = 0, c = s.length; u < c; ++u) for (r = 0, l = s[u]; r < a; ++r) if ((o = i[r]).type === l.type && o.name === l.name) return l.value;
881
- }
882
- }, dispatch: function(e, t) {
883
- return this.each((typeof t == "function" ? Jl : Ql)(e, t));
884
- }, [Symbol.iterator]: function* () {
885
- for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r, o = e[t], i = 0, a = o.length; i < a; ++i) (r = o[i]) && (yield r);
886
- } }, (Ot = vt || (vt = {}))[Ot.SVG = 0] = "SVG", Ot[Ot.HTML = 1] = "HTML", (zn = tr || (tr = {})).Fit = "fit", zn.Extend = "extend", zn.FitWidth = "fit_width";
887
- const ea = Sr(yt), bt = ea.right, nu = ea.left;
888
- Sr(Ji).center;
889
- class so extends Map {
890
- constructor(t, n = ru) {
891
- if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), t != null) for (const [r, o] of t) this.set(r, o);
892
- }
893
- get(t) {
894
- return super.get(lo(this, t));
895
- }
896
- has(t) {
897
- return super.has(lo(this, t));
898
- }
899
- set(t, n) {
900
- return super.set((function({ _intern: r, _key: o }, i) {
901
- const a = o(i);
902
- return r.has(a) ? r.get(a) : (r.set(a, i), i);
903
- })(this, t), n);
904
- }
905
- delete(t) {
906
- return super.delete((function({ _intern: n, _key: r }, o) {
907
- const i = r(o);
908
- return n.has(i) && (o = n.get(i), n.delete(i)), o;
909
- })(this, t));
910
- }
911
- }
912
- function lo({ _intern: e, _key: t }, n) {
913
- const r = t(n);
914
- return e.has(r) ? e.get(r) : n;
915
- }
916
- function ru(e) {
917
- return e !== null && typeof e == "object" ? e.valueOf() : e;
918
- }
919
- const ou = Math.sqrt(50), iu = Math.sqrt(10), au = Math.sqrt(2);
920
- function an(e, t, n) {
921
- const r = (t - e) / Math.max(0, n), o = Math.floor(Math.log10(r)), i = r / Math.pow(10, o), a = i >= ou ? 10 : i >= iu ? 5 : i >= au ? 2 : 1;
922
- let s, l, u;
923
- return o < 0 ? (u = Math.pow(10, -o) / a, s = Math.round(e * u), l = Math.round(t * u), s / u < e && ++s, l / u > t && --l, u = -u) : (u = Math.pow(10, o) * a, s = Math.round(e / u), l = Math.round(t / u), s * u < e && ++s, l * u > t && --l), l < s && 0.5 <= n && n < 2 ? an(e, t, 2 * n) : [s, l, u];
924
- }
925
- function nr(e, t, n) {
926
- if (!((n = +n) > 0)) return [];
927
- if ((e = +e) == (t = +t)) return [e];
928
- const r = t < e, [o, i, a] = r ? an(t, e, n) : an(e, t, n);
929
- if (!(i >= o)) return [];
930
- const s = i - o + 1, l = new Array(s);
931
- if (r) if (a < 0) for (let u = 0; u < s; ++u) l[u] = (i - u) / -a;
932
- else for (let u = 0; u < s; ++u) l[u] = (i - u) * a;
933
- else if (a < 0) for (let u = 0; u < s; ++u) l[u] = (o + u) / -a;
934
- else for (let u = 0; u < s; ++u) l[u] = (o + u) * a;
935
- return l;
936
- }
937
- function rr(e, t, n) {
938
- return an(e = +e, t = +t, n = +n)[2];
939
- }
940
- function or(e, t, n) {
941
- n = +n;
942
- const r = (t = +t) < (e = +e), o = r ? rr(t, e, n) : rr(e, t, n);
943
- return (r ? -1 : 1) * (o < 0 ? 1 / -o : o);
944
- }
945
- function uo(e, t) {
946
- let n;
947
- if (t === void 0) for (const r of e) r != null && (n < r || n === void 0 && r >= r) && (n = r);
948
- else {
949
- let r = -1;
950
- for (let o of e) (o = t(o, ++r, e)) != null && (n < o || n === void 0 && o >= o) && (n = o);
951
- }
952
- return n;
953
- }
954
- function co(e, t) {
955
- let n;
956
- if (t === void 0) for (const r of e) r != null && (n > r || n === void 0 && r >= r) && (n = r);
957
- else {
958
- let r = -1;
959
- for (let o of e) (o = t(o, ++r, e)) != null && (n > o || n === void 0 && o >= o) && (n = o);
960
- }
961
- return n;
962
- }
963
- function su(e, t, n = Ji) {
964
- if ((r = e.length) && !isNaN(t = +t)) {
965
- if (t <= 0 || r < 2) return +n(e[0], 0, e);
966
- if (t >= 1) return +n(e[r - 1], r - 1, e);
967
- var r, o = (r - 1) * t, i = Math.floor(o), a = +n(e[i], i, e);
968
- return a + (+n(e[i + 1], i + 1, e) - a) * (o - i);
969
- }
970
- }
971
- function lu(e, t, n) {
972
- e = +e, t = +t, n = (o = arguments.length) < 2 ? (t = e, e = 0, 1) : o < 3 ? 1 : +n;
973
- for (var r = -1, o = 0 | Math.max(0, Math.ceil((t - e) / n)), i = new Array(o); ++r < o; ) i[r] = e + r * n;
974
- return i;
975
- }
976
- var we, On;
977
- (On = we || (we = {})).Left = "left", On.Right = "right", On.Auto = "auto";
978
- const Ze = (e) => typeof e == "number", Ar = (e) => typeof e == "function", kn = (e) => Array.isArray(e), sn = (e) => e.constructor.name !== "Function" && e.constructor.name !== "Object", fo = (e) => ((t) => t instanceof Object)(e) && !kn(e) && !Ar(e) && !sn(e), Sh = (e) => [Object, Array].includes((e || {}).constructor) && !Object.entries(e || {}).length, ir = (e, t, n = [], r = /* @__PURE__ */ new Set()) => {
979
- if (Array.isArray(e)) {
980
- if (!Array.isArray(t) || e.length !== t.length) return !1;
981
- if (r.has(e)) return !0;
982
- r.add(e);
983
- for (let o = 0; o < e.length; o++) if (!ir(e[o], t[o], n, r)) return !1;
984
- return !0;
985
- }
986
- if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
987
- if (typeof e == "object" && e !== null && t !== null) {
988
- if (typeof t != "object") return !1;
989
- if (e === t) return !0;
990
- const o = Object.keys(e).filter((a) => !n.includes(a)), i = Object.keys(t).filter((a) => !n.includes(a));
991
- if (o.length !== i.length) return !1;
992
- if (r.has(e)) return !0;
993
- r.add(e);
994
- for (const a of o) if (!ir(e[a], t[a], n, r)) return !1;
995
- return !0;
996
- }
997
- return e === t;
998
- }, Ah = (e) => e.flat(), ln = (e, t = /* @__PURE__ */ new Map()) => {
999
- if (typeof e != "object" || e === null) return e;
1000
- if (e instanceof Date) return new Date(e.getTime());
1001
- if (e instanceof Array) {
1002
- const n = [];
1003
- t.set(e, n);
1004
- for (const r of e) n.push(t.has(r) ? t.get(r) : ln(r, t));
1005
- return n;
1006
- }
1007
- if (sn(e))
1008
- return e;
1009
- if (e instanceof Object) {
1010
- const n = {};
1011
- t.set(e, n);
1012
- const r = e;
1013
- return Object.keys(e).reduce((o, i) => (o[i] = t.has(r[i]) ? t.get(r[i]) : ln(r[i], t), o), n), n;
1014
- }
1015
- return e;
1016
- }, Tr = (e, t, n = /* @__PURE__ */ new Map()) => {
1017
- if (!e || !t || e === t) return e;
1018
- const r = sn(e) ? e : ln(e);
1019
- return n.has(t) ? n.get(t) : (n.set(t, r), Object.keys(t).forEach((o) => {
1020
- o !== "__proto__" && o !== "constructor" && (fo(e[o]) && fo(t[o]) ? r[o] = Tr(e[o], t[o], n) : sn(t) ? r[o] = t : r[o] = ln(t[o]));
1021
- }), r);
1022
- }, un = (e, t, n) => (function(r, o) {
1023
- var i, a = {}, s = a.noTrailing, l = s !== void 0 && s, u = a.noLeading, c = u !== void 0 && u, h = a.debounceMode, f = h === void 0 ? void 0 : h, d = !1, g = 0;
1024
- function p() {
1025
- i && clearTimeout(i);
1026
- }
1027
- function x() {
1028
- for (var b = arguments.length, w = new Array(b), E = 0; E < b; E++) w[E] = arguments[E];
1029
- var m = this, N = Date.now() - g;
1030
- function M() {
1031
- g = Date.now(), o.apply(m, w);
1032
- }
1033
- function k() {
1034
- i = void 0;
1035
- }
1036
- d || (c || !f || i || M(), p(), f === void 0 && N > r ? c ? (g = Date.now(), l || (i = setTimeout(f ? k : M, r))) : M() : l !== !0 && (i = setTimeout(f ? k : M, f === void 0 ? r - N : r)));
1037
- }
1038
- return x.cancel = function(b) {
1039
- var w = (b || {}).upcomingOnly, E = w !== void 0 && w;
1040
- p(), d = !E;
1041
- }, x;
1042
- })(t, e);
1043
- function ta(e, t, n) {
1044
- return Ar(t) ? t(e, n) : t;
1045
- }
1046
- function uu(e, t, n) {
1047
- return ta(e, t, n);
1048
- }
1049
- function q(e, t, n) {
1050
- return ta(e, t, n);
1051
- }
1052
- function Th(e) {
1053
- return e.filter((t) => t && !Ze(t));
1054
- }
1055
- function ho(e, t, n) {
1056
- return Math.min(Math.max(e, t), n);
1057
- }
1058
- function Nh(e, ...t) {
1059
- if (!e) return [void 0, void 0];
1060
- if (kn(t)) {
1061
- let n = 0, r = 0;
1062
- return e.forEach((o, i) => {
1063
- let a = 0, s = 0;
1064
- for (const l of t) {
1065
- const u = q(o, l, i) || 0;
1066
- u >= 0 ? a += u : s += u;
1067
- }
1068
- a > r && (r = a), s < n && (n = s);
1069
- }), [n, r];
1070
- }
1071
- }
1072
- function Eh(e, t, n, r) {
1073
- const o = e.map((s, l) => q(s, t, l) || 0), i = n.map((s, l) => {
1074
- const u = (function(c, h) {
1075
- let f = 0, d = 0;
1076
- if (h === void 0) for (let g of c) g != null && (g = +g) >= g && (++f, d += g);
1077
- else {
1078
- let g = -1;
1079
- for (let p of c) (p = h(p, ++g, c)) != null && (p = +p) >= p && (++f, d += p);
1080
- }
1081
- if (f) return d / f;
1082
- })(e, (c, h) => q(c, s, h) || 0);
1083
- return u === 0 && Array.isArray(r) ? r[l] : u < 0;
1084
- }), a = n.map(() => []);
1085
- return e.forEach((s, l) => {
1086
- let u = o[l], c = o[l];
1087
- n.forEach((h, f) => {
1088
- const d = q(s, h, l) || 0;
1089
- d >= 0 ? a[f].push([u, u += d]) : a[f].push([c, c += d]);
1090
- });
1091
- }), a.forEach((s, l) => {
1092
- s.isMostlyNegative = i[l];
1093
- }), a;
1094
- }
1095
- function cu(e, ...t) {
1096
- if (e)
1097
- return co(e, (n, r) => co(t, (o) => q(n, o, r)));
1098
- }
1099
- function fu(e, ...t) {
1100
- if (e)
1101
- return uo(e, (n, r) => uo(t, (o) => q(n, o, r)));
1102
- }
1103
- function Fn(e, ...t) {
1104
- return [cu(e, ...t), fu(e, ...t)];
1105
- }
1106
- function cn(e, t, n, r = we.Auto) {
1107
- if (e.length <= 1) return e[0];
1108
- const o = e.map((s, l) => [s, l]).sort(([s, l], [u, c]) => q(s, n, l) - q(u, n, c)), i = o.map(([s, l]) => q(s, n, l)), a = r === we.Right ? nu(i, t, 0, e.length - 1) : bt(i, t, 1, e.length);
1109
- return r === we.Right ? o[a][0] : r === we.Left ? o[a - 1][0] : t - i[a - 1] > i[a] - t ? o[a][0] : o[a - 1][0];
1110
- }
1111
- function hu(e, t, n, r = !1) {
1112
- if (!n) return [];
1113
- const o = e.filter((i, a) => {
1114
- const s = q(i, n, a);
1115
- return s >= t[0] && s <= t[1];
1116
- });
1117
- if (r) {
1118
- if (o.length === 0)
1119
- return [cn(e, t[0], n, we.Left), cn(e, t[1], n, we.Right)].filter(Boolean);
1120
- const i = o[0], a = o[o.length - 1], s = e.findIndex((h) => h === i), l = e.findIndex((h) => h === a), u = Math.max(0, s - 1), c = Math.min(e.length - 1, l + 1);
1121
- return e.slice(u, c + 1);
1122
- }
1123
- return o;
1124
- }
1125
- var du = /* @__PURE__ */ (function() {
1126
- function e(n) {
1127
- var r = this;
1128
- this._insertTag = function(o) {
1129
- var i;
1130
- i = r.tags.length === 0 ? r.insertionPoint ? r.insertionPoint.nextSibling : r.prepend ? r.container.firstChild : r.before : r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(o, i), r.tags.push(o);
1131
- }, this.isSpeedy = n.speedy === void 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;
1132
- }
1133
- var t = e.prototype;
1134
- return t.hydrate = function(n) {
1135
- n.forEach(this._insertTag);
1136
- }, t.insert = function(n) {
1137
- this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag((function(i) {
1138
- var a = document.createElement("style");
1139
- return a.setAttribute("data-emotion", i.key), i.nonce !== void 0 && a.setAttribute("nonce", i.nonce), a.appendChild(document.createTextNode("")), a.setAttribute("data-s", ""), a;
1140
- })(this));
1141
- var r = this.tags[this.tags.length - 1];
1142
- if (this.isSpeedy) {
1143
- var o = (function(i) {
1144
- if (i.sheet) return i.sheet;
1145
- for (var a = 0; a < document.styleSheets.length; a++) if (document.styleSheets[a].ownerNode === i) return document.styleSheets[a];
1146
- })(r);
1147
- try {
1148
- o.insertRule(n, o.cssRules.length);
1149
- } catch {
1150
- }
1151
- } else r.appendChild(document.createTextNode(n));
1152
- this.ctr++;
1153
- }, t.flush = function() {
1154
- this.tags.forEach(function(n) {
1155
- var r;
1156
- return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
1157
- }), this.tags = [], this.ctr = 0;
1158
- }, e;
1159
- })(), Z = "-ms-", po = "-moz-", O = "-webkit-", na = "comm", Nr = "rule", Er = "decl", ra = "@keyframes", pu = Math.abs, Cn = String.fromCharCode, gu = Object.assign;
1160
- function oa(e) {
1161
- return e.trim();
1162
- }
1163
- function U(e, t, n) {
1164
- return e.replace(t, n);
1165
- }
1166
- function ar(e, t) {
1167
- return e.indexOf(t);
1168
- }
1169
- function V(e, t) {
1170
- return 0 | e.charCodeAt(t);
1171
- }
1172
- function kt(e, t, n) {
1173
- return e.slice(t, n);
1174
- }
1175
- function de(e) {
1176
- return e.length;
1177
- }
1178
- function Dr(e) {
1179
- return e.length;
1180
- }
1181
- function Ft(e, t) {
1182
- return t.push(e), e;
1183
- }
1184
- var Mn = 1, tt = 1, ia = 0, te = 0, R = 0, it = "";
1185
- function Sn(e, t, n, r, o, i, a) {
1186
- return { value: e, root: t, parent: n, type: r, props: o, children: i, line: Mn, column: tt, length: a, return: "" };
1187
- }
1188
- function lt(e, t) {
1189
- return gu(Sn("", null, null, "", null, null, 0), e, { length: -e.length }, t);
1190
- }
1191
- function mu() {
1192
- return R = te > 0 ? V(it, --te) : 0, tt--, R === 10 && (tt = 1, Mn--), R;
1193
- }
1194
- function re() {
1195
- return R = te < ia ? V(it, te++) : 0, tt++, R === 10 && (tt = 1, Mn++), R;
1196
- }
1197
- function ge() {
1198
- return V(it, te);
1199
- }
1200
- function Wt() {
1201
- return te;
1202
- }
1203
- function Dt(e, t) {
1204
- return kt(it, e, t);
1205
- }
1206
- function Ct(e) {
1207
- switch (e) {
1208
- case 0:
1209
- case 9:
1210
- case 10:
1211
- case 13:
1212
- case 32:
1213
- return 5;
1214
- case 33:
1215
- case 43:
1216
- case 44:
1217
- case 47:
1218
- case 62:
1219
- case 64:
1220
- case 126:
1221
- case 59:
1222
- case 123:
1223
- case 125:
1224
- return 4;
1225
- case 58:
1226
- return 3;
1227
- case 34:
1228
- case 39:
1229
- case 40:
1230
- case 91:
1231
- return 2;
1232
- case 41:
1233
- case 93:
1234
- return 1;
1235
- }
1236
- return 0;
1237
- }
1238
- function aa(e) {
1239
- return Mn = tt = 1, ia = de(it = e), te = 0, [];
1240
- }
1241
- function sa(e) {
1242
- return it = "", e;
1243
- }
1244
- function Gt(e) {
1245
- return oa(Dt(te - 1, sr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1246
- }
1247
- function vu(e) {
1248
- for (; (R = ge()) && R < 33; ) re();
1249
- return Ct(e) > 2 || Ct(R) > 3 ? "" : " ";
1250
- }
1251
- function yu(e, t) {
1252
- for (; --t && re() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); ) ;
1253
- return Dt(e, Wt() + (t < 6 && ge() == 32 && re() == 32));
1254
- }
1255
- function sr(e) {
1256
- for (; re(); ) switch (R) {
1257
- case e:
1258
- return te;
1259
- case 34:
1260
- case 39:
1261
- e !== 34 && e !== 39 && sr(R);
1262
- break;
1263
- case 40:
1264
- e === 41 && sr(e);
1265
- break;
1266
- case 92:
1267
- re();
1268
- }
1269
- return te;
1270
- }
1271
- function bu(e, t) {
1272
- for (; re() && e + R !== 57 && (e + R !== 84 || ge() !== 47); ) ;
1273
- return "/*" + Dt(t, te - 1) + "*" + Cn(e === 47 ? e : re());
1274
- }
1275
- function wu(e) {
1276
- for (; !Ct(ge()); ) re();
1277
- return Dt(e, te);
1278
- }
1279
- function xu(e) {
1280
- return sa(qt("", null, null, null, [""], e = aa(e), 0, [0], e));
1281
- }
1282
- function qt(e, t, n, r, o, i, a, s, l) {
1283
- for (var u = 0, c = 0, h = a, f = 0, d = 0, g = 0, p = 1, x = 1, b = 1, w = 0, E = "", m = o, N = i, M = r, k = E; x; ) switch (g = w, w = re()) {
1284
- case 40:
1285
- if (g != 108 && V(k, h - 1) == 58) {
1286
- ar(k += U(Gt(w), "&", "&\f"), "&\f") != -1 && (b = -1);
1287
- break;
1288
- }
1289
- case 34:
1290
- case 39:
1291
- case 91:
1292
- k += Gt(w);
1293
- break;
1294
- case 9:
1295
- case 10:
1296
- case 13:
1297
- case 32:
1298
- k += vu(g);
1299
- break;
1300
- case 92:
1301
- k += yu(Wt() - 1, 7);
1302
- continue;
1303
- case 47:
1304
- switch (ge()) {
1305
- case 42:
1306
- case 47:
1307
- Ft(_u(bu(re(), Wt()), t, n), l);
1308
- break;
1309
- default:
1310
- k += "/";
1311
- }
1312
- break;
1313
- case 123 * p:
1314
- s[u++] = de(k) * b;
1315
- case 125 * p:
1316
- case 59:
1317
- case 0:
1318
- switch (w) {
1319
- case 0:
1320
- case 125:
1321
- x = 0;
1322
- case 59 + c:
1323
- b == -1 && (k = U(k, /\f/g, "")), d > 0 && de(k) - h && Ft(d > 32 ? mo(k + ";", r, n, h - 1) : mo(U(k, " ", "") + ";", r, n, h - 2), l);
1324
- break;
1325
- case 59:
1326
- k += ";";
1327
- default:
1328
- if (Ft(M = go(k, t, n, u, c, o, s, E, m = [], N = [], h), i), w === 123) if (c === 0) qt(k, t, M, M, m, i, h, s, N);
1329
- else switch (f === 99 && V(k, 3) === 110 ? 100 : f) {
1330
- case 100:
1331
- case 108:
1332
- case 109:
1333
- case 115:
1334
- qt(e, M, M, r && Ft(go(e, M, M, 0, 0, o, s, E, o, m = [], h), N), o, N, h, s, r ? m : N);
1335
- break;
1336
- default:
1337
- qt(k, M, M, M, [""], N, 0, s, N);
1338
- }
1339
- }
1340
- u = c = d = 0, p = b = 1, E = k = "", h = a;
1341
- break;
1342
- case 58:
1343
- h = 1 + de(k), d = g;
1344
- default:
1345
- if (p < 1) {
1346
- if (w == 123) --p;
1347
- else if (w == 125 && p++ == 0 && mu() == 125) continue;
1348
- }
1349
- switch (k += Cn(w), w * p) {
1350
- case 38:
1351
- b = c > 0 ? 1 : (k += "\f", -1);
1352
- break;
1353
- case 44:
1354
- s[u++] = (de(k) - 1) * b, b = 1;
1355
- break;
1356
- case 64:
1357
- ge() === 45 && (k += Gt(re())), f = ge(), c = h = de(E = k += wu(Wt())), w++;
1358
- break;
1359
- case 45:
1360
- g === 45 && de(k) == 2 && (p = 0);
1361
- }
1362
- }
1363
- return i;
1364
- }
1365
- function go(e, t, n, r, o, i, a, s, l, u, c) {
1366
- for (var h = o - 1, f = o === 0 ? i : [""], d = Dr(f), g = 0, p = 0, x = 0; g < r; ++g) for (var b = 0, w = kt(e, h + 1, h = pu(p = a[g])), E = e; b < d; ++b) (E = oa(p > 0 ? f[b] + " " + w : U(w, /&\f/g, f[b]))) && (l[x++] = E);
1367
- return Sn(e, t, n, o === 0 ? Nr : s, l, u, c);
1368
- }
1369
- function _u(e, t, n) {
1370
- return Sn(e, t, n, na, Cn(R), kt(e, 2, -2), 0);
1371
- }
1372
- function mo(e, t, n, r) {
1373
- return Sn(e, t, n, Er, kt(e, 0, r), kt(e, r + 1, -1), r);
1374
- }
1375
- function Qe(e, t) {
1376
- for (var n = "", r = Dr(e), o = 0; o < r; o++) n += t(e[o], o, e, t) || "";
1377
- return n;
1378
- }
1379
- function ku(e, t, n, r) {
1380
- switch (e.type) {
1381
- case "@layer":
1382
- if (e.children.length) break;
1383
- case "@import":
1384
- case Er:
1385
- return e.return = e.return || e.value;
1386
- case na:
1387
- return "";
1388
- case ra:
1389
- return e.return = e.value + "{" + Qe(e.children, r) + "}";
1390
- case Nr:
1391
- e.value = e.props.join(",");
1392
- }
1393
- return de(n = Qe(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1394
- }
1395
- function Cu(e) {
1396
- var t = /* @__PURE__ */ Object.create(null);
1397
- return function(n) {
1398
- return t[n] === void 0 && (t[n] = e(n)), t[n];
1399
- };
1400
- }
1401
- var Mu = function(e, t, n) {
1402
- for (var r = 0, o = 0; r = o, o = ge(), r === 38 && o === 12 && (t[n] = 1), !Ct(o); ) re();
1403
- return Dt(e, te);
1404
- }, Su = function(e, t) {
1405
- return sa((function(n, r) {
1406
- var o = -1, i = 44;
1407
- do
1408
- switch (Ct(i)) {
1409
- case 0:
1410
- i === 38 && ge() === 12 && (r[o] = 1), n[o] += Mu(te - 1, r, o);
1411
- break;
1412
- case 2:
1413
- n[o] += Gt(i);
1414
- break;
1415
- case 4:
1416
- if (i === 44) {
1417
- n[++o] = ge() === 58 ? "&\f" : "", r[o] = n[o].length;
1418
- break;
1419
- }
1420
- default:
1421
- n[o] += Cn(i);
1422
- }
1423
- while (i = re());
1424
- return n;
1425
- })(aa(e), t));
1426
- }, vo = /* @__PURE__ */ new WeakMap(), Au = function(e) {
1427
- if (e.type === "rule" && e.parent && !(e.length < 1)) {
1428
- for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; ) if (!(n = n.parent)) return;
1429
- if ((e.props.length !== 1 || t.charCodeAt(0) === 58 || vo.get(n)) && !r) {
1430
- vo.set(e, !0);
1431
- for (var o = [], i = Su(t, o), a = n.props, s = 0, l = 0; s < i.length; s++) for (var u = 0; u < a.length; u++, l++) e.props[l] = o[s] ? i[s].replace(/&\f/g, a[u]) : a[u] + " " + i[s];
1432
- }
1433
- }
1434
- }, Tu = function(e) {
1435
- if (e.type === "decl") {
1436
- var t = e.value;
1437
- t.charCodeAt(0) === 108 && t.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1438
- }
1439
- };
1440
- function la(e, t) {
1441
- switch ((function(n, r) {
1442
- return 45 ^ V(n, 0) ? (((r << 2 ^ V(n, 0)) << 2 ^ V(n, 1)) << 2 ^ V(n, 2)) << 2 ^ V(n, 3) : 0;
1443
- })(e, t)) {
1444
- case 5103:
1445
- return O + "print-" + e + e;
1446
- case 5737:
1447
- case 4201:
1448
- case 3177:
1449
- case 3433:
1450
- case 1641:
1451
- case 4457:
1452
- case 2921:
1453
- case 5572:
1454
- case 6356:
1455
- case 5844:
1456
- case 3191:
1457
- case 6645:
1458
- case 3005:
1459
- case 6391:
1460
- case 5879:
1461
- case 5623:
1462
- case 6135:
1463
- case 4599:
1464
- case 4855:
1465
- case 4215:
1466
- case 6389:
1467
- case 5109:
1468
- case 5365:
1469
- case 5621:
1470
- case 3829:
1471
- return O + e + e;
1472
- case 5349:
1473
- case 4246:
1474
- case 4810:
1475
- case 6968:
1476
- case 2756:
1477
- return O + e + po + e + Z + e + e;
1478
- case 6828:
1479
- case 4268:
1480
- return O + e + Z + e + e;
1481
- case 6165:
1482
- return O + e + Z + "flex-" + e + e;
1483
- case 5187:
1484
- return O + e + U(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + Z + "flex-$1$2") + e;
1485
- case 5443:
1486
- return O + e + Z + "flex-item-" + U(e, /flex-|-self/, "") + e;
1487
- case 4675:
1488
- return O + e + Z + "flex-line-pack" + U(e, /align-content|flex-|-self/, "") + e;
1489
- case 5548:
1490
- return O + e + Z + U(e, "shrink", "negative") + e;
1491
- case 5292:
1492
- return O + e + Z + U(e, "basis", "preferred-size") + e;
1493
- case 6060:
1494
- return O + "box-" + U(e, "-grow", "") + O + e + Z + U(e, "grow", "positive") + e;
1495
- case 4554:
1496
- return O + U(e, /([^-])(transform)/g, "$1" + O + "$2") + e;
1497
- case 6187:
1498
- return U(U(U(e, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), e, "") + e;
1499
- case 5495:
1500
- case 3959:
1501
- return U(e, /(image-set\([^]*)/, O + "$1$`$1");
1502
- case 4968:
1503
- return U(U(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + Z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e;
1504
- case 4095:
1505
- case 3583:
1506
- case 4068:
1507
- case 2532:
1508
- return U(e, /(.+)-inline(.+)/, O + "$1$2") + e;
1509
- case 8116:
1510
- case 7059:
1511
- case 5753:
1512
- case 5535:
1513
- case 5445:
1514
- case 5701:
1515
- case 4933:
1516
- case 4677:
1517
- case 5533:
1518
- case 5789:
1519
- case 5021:
1520
- case 4765:
1521
- if (de(e) - 1 - t > 6) switch (V(e, t + 1)) {
1522
- case 109:
1523
- if (V(e, t + 4) !== 45) break;
1524
- case 102:
1525
- return U(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + po + (V(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1526
- case 115:
1527
- return ~ar(e, "stretch") ? la(U(e, "stretch", "fill-available"), t) + e : e;
1528
- }
1529
- break;
1530
- case 4949:
1531
- if (V(e, t + 1) !== 115) break;
1532
- case 6444:
1533
- switch (V(e, de(e) - 3 - (~ar(e, "!important") && 10))) {
1534
- case 107:
1535
- return U(e, ":", ":" + O) + e;
1536
- case 101:
1537
- return U(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + O + (V(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + Z + "$2box$3") + e;
1538
- }
1539
- break;
1540
- case 5936:
1541
- switch (V(e, t + 11)) {
1542
- case 114:
1543
- return O + e + Z + U(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1544
- case 108:
1545
- return O + e + Z + U(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1546
- case 45:
1547
- return O + e + Z + U(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1548
- }
1549
- return O + e + Z + e + e;
1550
- }
1551
- return e;
1552
- }
1553
- var Nu = [function(e, t, n, r) {
1554
- if (e.length > -1 && !e.return) switch (e.type) {
1555
- case Er:
1556
- e.return = la(e.value, e.length);
1557
- break;
1558
- case ra:
1559
- return Qe([lt(e, { value: U(e.value, "@", "@" + O) })], r);
1560
- case Nr:
1561
- if (e.length) return (function(o, i) {
1562
- return o.map(i).join("");
1563
- })(e.props, function(o) {
1564
- switch ((function(i, a) {
1565
- return (i = a.exec(i)) ? i[0] : i;
1566
- })(o, /(::plac\w+|:read-\w+)/)) {
1567
- case ":read-only":
1568
- case ":read-write":
1569
- return Qe([lt(e, { props: [U(o, /:(read-\w+)/, ":-moz-$1")] })], r);
1570
- case "::placeholder":
1571
- return Qe([lt(e, { props: [U(o, /:(plac\w+)/, ":" + O + "input-$1")] }), lt(e, { props: [U(o, /:(plac\w+)/, ":-moz-$1")] }), lt(e, { props: [U(o, /:(plac\w+)/, Z + "input-$1")] })], r);
1572
- }
1573
- return "";
1574
- });
1575
- }
1576
- }], Eu = function(e) {
1577
- var t = e.key;
1578
- if (t === "css") {
1579
- var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
1580
- Array.prototype.forEach.call(n, function(p) {
1581
- p.getAttribute("data-emotion").indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
1582
- });
1583
- }
1584
- var r, o, i = e.stylisPlugins || Nu, a = {}, s = [];
1585
- r = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + t + ' "]'), function(p) {
1586
- for (var x = p.getAttribute("data-emotion").split(" "), b = 1; b < x.length; b++) a[x[b]] = !0;
1587
- s.push(p);
1588
- });
1589
- var l, u, c, h, f = [ku, (h = function(p) {
1590
- l.insert(p);
1591
- }, function(p) {
1592
- p.root || (p = p.return) && h(p);
1593
- })], d = (u = [Au, Tu].concat(i, f), c = Dr(u), function(p, x, b, w) {
1594
- for (var E = "", m = 0; m < c; m++) E += u[m](p, x, b, w) || "";
1595
- return E;
1596
- });
1597
- o = function(p, x, b, w) {
1598
- l = b, Qe(xu(p ? p + "{" + x.styles + "}" : x.styles), d), w && (g.inserted[x.name] = !0);
1599
- };
1600
- var g = { key: t, sheet: new du({ key: t, container: r, nonce: e.nonce, speedy: e.speedy, prepend: e.prepend, insertionPoint: e.insertionPoint }), nonce: e.nonce, inserted: a, registered: {}, insert: o };
1601
- return g.sheet.hydrate(s), g;
1602
- }, Du = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }, $u = /[A-Z]|^ms/g, ju = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ua = function(e) {
1603
- return e.charCodeAt(1) === 45;
1604
- }, yo = function(e) {
1605
- return e != null && typeof e != "boolean";
1606
- }, Un = /* @__PURE__ */ Cu(function(e) {
1607
- return ua(e) ? e : e.replace($u, "-$&").toLowerCase();
1608
- }), bo = function(e, t) {
1609
- switch (e) {
1610
- case "animation":
1611
- case "animationName":
1612
- if (typeof t == "string") return t.replace(ju, function(n, r, o) {
1613
- return Ae = { name: r, styles: o, next: Ae }, r;
1614
- });
1615
- }
1616
- return Du[e] === 1 || ua(e) || typeof t != "number" || t === 0 ? t : t + "px";
1617
- };
1618
- function fn(e, t, n) {
1619
- if (n == null) return "";
1620
- var r = n;
1621
- if (r.__emotion_styles !== void 0) return r;
1622
- switch (typeof n) {
1623
- case "boolean":
1624
- return "";
1625
- case "object":
1626
- var o = n;
1627
- if (o.anim === 1) return Ae = { name: o.name, styles: o.styles, next: Ae }, o.name;
1628
- var i = n;
1629
- if (i.styles !== void 0) {
1630
- var a = i.next;
1631
- if (a !== void 0) for (; a !== void 0; ) Ae = { name: a.name, styles: a.styles, next: Ae }, a = a.next;
1632
- return i.styles + ";";
1633
- }
1634
- return (function(u, c, h) {
1635
- var f = "";
1636
- if (Array.isArray(h)) for (var d = 0; d < h.length; d++) f += fn(u, c, h[d]) + ";";
1637
- else for (var g in h) {
1638
- var p = h[g];
1639
- if (typeof p != "object") {
1640
- var x = p;
1641
- c != null && c[x] !== void 0 ? f += g + "{" + c[x] + "}" : yo(x) && (f += Un(g) + ":" + bo(g, x) + ";");
1642
- } else if (!Array.isArray(p) || typeof p[0] != "string" || c != null && c[p[0]] !== void 0) {
1643
- var b = fn(u, c, p);
1644
- switch (g) {
1645
- case "animation":
1646
- case "animationName":
1647
- f += Un(g) + ":" + b + ";";
1648
- break;
1649
- default:
1650
- f += g + "{" + b + "}";
1651
- }
1652
- } else for (var w = 0; w < p.length; w++) yo(p[w]) && (f += Un(g) + ":" + bo(g, p[w]) + ";");
1653
- }
1654
- return f;
1655
- })(e, t, n);
1656
- }
1657
- var s = n;
1658
- if (t == null) return s;
1659
- var l = t[s];
1660
- return l !== void 0 ? l : s;
1661
- }
1662
- var Ae, wo = /label:\s*([^\s;{]+)\s*(;|$)/g;
1663
- function In(e, t, n) {
1664
- if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0) return e[0];
1665
- var r = !0, o = "";
1666
- Ae = void 0;
1667
- var i = e[0];
1668
- i == null || i.raw === void 0 ? (r = !1, o += fn(n, t, i)) : o += i[0];
1669
- for (var a = 1; a < e.length; a++)
1670
- o += fn(n, t, e[a]), r && (o += i[a]);
1671
- wo.lastIndex = 0;
1672
- for (var s, l = ""; (s = wo.exec(o)) !== null; ) l += "-" + s[1];
1673
- var u = (function(c) {
1674
- for (var h, f = 0, d = 0, g = c.length; g >= 4; ++d, g -= 4) h = 1540483477 * (65535 & (h = 255 & c.charCodeAt(d) | (255 & c.charCodeAt(++d)) << 8 | (255 & c.charCodeAt(++d)) << 16 | (255 & c.charCodeAt(++d)) << 24)) + (59797 * (h >>> 16) << 16), f = 1540483477 * (65535 & (h ^= h >>> 24)) + (59797 * (h >>> 16) << 16) ^ 1540483477 * (65535 & f) + (59797 * (f >>> 16) << 16);
1675
- switch (g) {
1676
- case 3:
1677
- f ^= (255 & c.charCodeAt(d + 2)) << 16;
1678
- case 2:
1679
- f ^= (255 & c.charCodeAt(d + 1)) << 8;
1680
- case 1:
1681
- f = 1540483477 * (65535 & (f ^= 255 & c.charCodeAt(d))) + (59797 * (f >>> 16) << 16);
1682
- }
1683
- return (((f = 1540483477 * (65535 & (f ^= f >>> 13)) + (59797 * (f >>> 16) << 16)) ^ f >>> 15) >>> 0).toString(36);
1684
- })(o) + l;
1685
- return { name: u, styles: o, next: Ae };
1686
- }
1687
- function ca(e, t, n) {
1688
- var r = "";
1689
- return n.split(" ").forEach(function(o) {
1690
- e[o] !== void 0 ? t.push(e[o] + ";") : o && (r += o + " ");
1691
- }), r;
1692
- }
1693
- function xo(e, t) {
1694
- if (e.inserted[t.name] === void 0) return e.insert("", t, e.sheet, !0);
1695
- }
1696
- function _o(e, t, n) {
1697
- var r = [], o = ca(e, r, n);
1698
- return r.length < 2 ? n : o + t(r);
1699
- }
1700
- var Pu = function e(t) {
1701
- for (var n = "", r = 0; r < t.length; r++) {
1702
- var o = t[r];
1703
- if (o != null) {
1704
- var i = void 0;
1705
- switch (typeof o) {
1706
- case "boolean":
1707
- break;
1708
- case "object":
1709
- if (Array.isArray(o)) i = e(o);
1710
- else for (var a in i = "", o) o[a] && a && (i && (i += " "), i += a);
1711
- break;
1712
- default:
1713
- i = o;
1714
- }
1715
- i && (n && (n += " "), n += i);
1716
- }
1717
- }
1718
- return n;
1719
- }, fa = (function(e) {
1720
- var t = Eu(e);
1721
- t.sheet.speedy = function(r) {
1722
- this.isSpeedy = r;
1723
- }, t.compat = !0;
1724
- var n = function() {
1725
- for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
1726
- var a = In(o, t.registered, void 0);
1727
- return (function(s, l) {
1728
- (function(h, f) {
1729
- var d = h.key + "-" + f.name;
1730
- h.registered[d] === void 0 && (h.registered[d] = f.styles);
1731
- })(s, l);
1732
- var u = s.key + "-" + l.name;
1733
- if (s.inserted[l.name] === void 0) {
1734
- var c = l;
1735
- do
1736
- s.insert(l === c ? "." + u : "", c, s.sheet, !0), c = c.next;
1737
- while (c !== void 0);
1738
- }
1739
- })(t, a), t.key + "-" + a.name;
1740
- };
1741
- return { css: n, cx: function() {
1742
- for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
1743
- return _o(t.registered, n, Pu(o));
1744
- }, injectGlobal: function() {
1745
- for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
1746
- var a = In(o, t.registered);
1747
- xo(t, a);
1748
- }, keyframes: function() {
1749
- for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
1750
- var a = In(o, t.registered), s = "animation-" + a.name;
1751
- return xo(t, { name: a.name, styles: "@keyframes " + s + "{" + a.styles + "}" }), s;
1752
- }, hydrate: function(r) {
1753
- r.forEach(function(o) {
1754
- t.inserted[o] = !0;
1755
- });
1756
- }, flush: function() {
1757
- t.registered = {}, t.inserted = {}, t.sheet.flush();
1758
- }, sheet: t.sheet, cache: t, getRegisteredStyles: ca.bind(null, t.registered), merge: _o.bind(null, t.registered, n) };
1759
- })({ key: "css" }), ha = fa.injectGlobal, De = fa.css;
1760
- function zu() {
1761
- const e = () => Math.floor(65536 * (1 + crypto.getRandomValues(new Uint32Array(1))[0])).toString(16).substring(1);
1762
- return `${e() + e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`;
1763
- }
1764
- const ko = /* @__PURE__ */ new WeakMap();
1765
- function Dh(e, t) {
1766
- const n = e.substr(4, e.length - 5);
1767
- let r = ko.get(t);
1768
- if (r || (r = /* @__PURE__ */ new Map(), ko.set(t, r)), r.has(n)) return r.get(n);
1769
- const o = getComputedStyle(t).getPropertyValue(n);
1770
- return r.set(n, o), o;
1771
- }
1772
- function $h(e, t, n = 0) {
1773
- const [r, o, i, a] = [e.x + n, e.y + e.height - 2 * n, e.x + e.width - 2 * n, e.y + n], [s, l, u, c] = [t.x + n, t.y + t.height - 2 * n, t.x + t.width - 2 * n, t.y + n];
1774
- return !(o < c || l < a || i < s || u < r);
1775
- }
1776
- function Hn(e, t, n) {
1777
- e.prototype = t.prototype = n, n.constructor = e;
1778
- }
1779
- function Co(e, t) {
1780
- var n = Object.create(e.prototype);
1781
- for (var r in t) n[r] = t[r];
1782
- return n;
1783
- }
1784
- function wt() {
1785
- }
1786
- var pt = 0.7, Ut = 1 / pt, Je = "\\s*([+-]?\\d+)\\s*", Mt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", me = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ou = /^#([0-9a-f]{3,8})$/, Fu = new RegExp(`^rgb\\(${Je},${Je},${Je}\\)$`), Uu = new RegExp(`^rgb\\(${me},${me},${me}\\)$`), Iu = new RegExp(`^rgba\\(${Je},${Je},${Je},${Mt}\\)$`), Hu = new RegExp(`^rgba\\(${me},${me},${me},${Mt}\\)$`), Lu = new RegExp(`^hsl\\(${Mt},${me},${me}\\)$`), Bu = new RegExp(`^hsla\\(${Mt},${me},${me},${Mt}\\)$`), Mo = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, aquamarine: 8388564, azure: 15794175, beige: 16119260, bisque: 16770244, black: 0, blanchedalmond: 16772045, blue: 255, blueviolet: 9055202, brown: 10824234, burlywood: 14596231, cadetblue: 6266528, chartreuse: 8388352, chocolate: 13789470, coral: 16744272, cornflowerblue: 6591981, cornsilk: 16775388, crimson: 14423100, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 12092939, darkgray: 11119017, darkgreen: 25600, darkgrey: 11119017, darkkhaki: 12433259, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 16747520, darkorchid: 10040012, darkred: 9109504, darksalmon: 15308410, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 16716947, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 11674146, floralwhite: 16775920, forestgreen: 2263842, fuchsia: 16711935, gainsboro: 14474460, ghostwhite: 16316671, gold: 16766720, goldenrod: 14329120, gray: 8421504, green: 32768, greenyellow: 11403055, grey: 8421504, honeydew: 15794160, hotpink: 16738740, indianred: 13458524, indigo: 4915330, ivory: 16777200, khaki: 15787660, lavender: 15132410, lavenderblush: 16773365, lawngreen: 8190976, lemonchiffon: 16775885, lightblue: 11393254, lightcoral: 15761536, lightcyan: 14745599, lightgoldenrodyellow: 16448210, lightgray: 13882323, lightgreen: 9498256, lightgrey: 13882323, lightpink: 16758465, lightsalmon: 16752762, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 11584734, lightyellow: 16777184, lime: 65280, limegreen: 3329330, linen: 16445670, magenta: 16711935, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 12211667, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 13047173, midnightblue: 1644912, mintcream: 16121850, mistyrose: 16770273, moccasin: 16770229, navajowhite: 16768685, navy: 128, oldlace: 16643558, olive: 8421376, olivedrab: 7048739, orange: 16753920, orangered: 16729344, orchid: 14315734, palegoldenrod: 15657130, palegreen: 10025880, paleturquoise: 11529966, palevioletred: 14381203, papayawhip: 16773077, peachpuff: 16767673, peru: 13468991, pink: 16761035, plum: 14524637, powderblue: 11591910, purple: 8388736, rebeccapurple: 6697881, red: 16711680, rosybrown: 12357519, royalblue: 4286945, saddlebrown: 9127187, salmon: 16416882, sandybrown: 16032864, seagreen: 3050327, seashell: 16774638, sienna: 10506797, silver: 12632256, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 16775930, springgreen: 65407, steelblue: 4620980, tan: 13808780, teal: 32896, thistle: 14204888, tomato: 16737095, turquoise: 4251856, violet: 15631086, wheat: 16113331, white: 16777215, whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 };
1787
- function So() {
1788
- return this.rgb().formatHex();
1789
- }
1790
- function Ao() {
1791
- return this.rgb().formatRgb();
1792
- }
1793
- function Le(e) {
1794
- var t, n;
1795
- return e = (e + "").trim().toLowerCase(), (t = Ou.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? To(t) : n === 3 ? new J(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | 240 & t, (15 & t) << 4 | 15 & t, 1) : n === 8 ? It(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (255 & t) / 255) : n === 4 ? It(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | 240 & t, ((15 & t) << 4 | 15 & t) / 255) : null) : (t = Fu.exec(e)) ? new J(t[1], t[2], t[3], 1) : (t = Uu.exec(e)) ? new J(255 * t[1] / 100, 255 * t[2] / 100, 255 * t[3] / 100, 1) : (t = Iu.exec(e)) ? It(t[1], t[2], t[3], t[4]) : (t = Hu.exec(e)) ? It(255 * t[1] / 100, 255 * t[2] / 100, 255 * t[3] / 100, t[4]) : (t = Lu.exec(e)) ? Do(t[1], t[2] / 100, t[3] / 100, 1) : (t = Bu.exec(e)) ? Do(t[1], t[2] / 100, t[3] / 100, t[4]) : Mo.hasOwnProperty(e) ? To(Mo[e]) : e === "transparent" ? new J(NaN, NaN, NaN, 0) : null;
1796
- }
1797
- function To(e) {
1798
- return new J(e >> 16 & 255, e >> 8 & 255, 255 & e, 1);
1799
- }
1800
- function It(e, t, n, r) {
1801
- return r <= 0 && (e = t = n = NaN), new J(e, t, n, r);
1802
- }
1803
- function lr(e, t, n, r) {
1804
- return arguments.length === 1 ? ((o = e) instanceof wt || (o = Le(o)), o ? new J((o = o.rgb()).r, o.g, o.b, o.opacity) : new J()) : new J(e, t, n, r ?? 1);
1805
- var o;
1806
- }
1807
- function J(e, t, n, r) {
1808
- this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
1809
- }
1810
- function No() {
1811
- return `#${Fe(this.r)}${Fe(this.g)}${Fe(this.b)}`;
1812
- }
1813
- function Eo() {
1814
- const e = Xt(this.opacity);
1815
- return `${e === 1 ? "rgb(" : "rgba("}${Ie(this.r)}, ${Ie(this.g)}, ${Ie(this.b)}${e === 1 ? ")" : `, ${e})`}`;
1816
- }
1817
- function Xt(e) {
1818
- return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
1819
- }
1820
- function Ie(e) {
1821
- return Math.max(0, Math.min(255, Math.round(e) || 0));
1822
- }
1823
- function Fe(e) {
1824
- return ((e = Ie(e)) < 16 ? "0" : "") + e.toString(16);
1825
- }
1826
- function Do(e, t, n, r) {
1827
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new fe(e, t, n, r);
1828
- }
1829
- function da(e) {
1830
- if (e instanceof fe) return new fe(e.h, e.s, e.l, e.opacity);
1831
- if (e instanceof wt || (e = Le(e)), !e) return new fe();
1832
- if (e instanceof fe) return e;
1833
- var t = (e = e.rgb()).r / 255, n = e.g / 255, r = e.b / 255, o = Math.min(t, n, r), i = Math.max(t, n, r), a = NaN, s = i - o, l = (i + o) / 2;
1834
- return s ? (a = t === i ? (n - r) / s + 6 * (n < r) : n === i ? (r - t) / s + 2 : (t - n) / s + 4, s /= l < 0.5 ? i + o : 2 - i - o, a *= 60) : s = l > 0 && l < 1 ? 0 : a, new fe(a, s, l, e.opacity);
1835
- }
1836
- function $r(e, t, n, r) {
1837
- return arguments.length === 1 ? da(e) : new fe(e, t, n, r ?? 1);
1838
- }
1839
- function fe(e, t, n, r) {
1840
- this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
1841
- }
1842
- function $o(e) {
1843
- return (e = (e || 0) % 360) < 0 ? e + 360 : e;
1844
- }
1845
- function Ht(e) {
1846
- return Math.max(0, Math.min(1, e || 0));
1847
- }
1848
- function Ln(e, t, n) {
1849
- return 255 * (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t);
1850
- }
1851
- Hn(wt, Le, { copy(e) {
1852
- return Object.assign(new this.constructor(), this, e);
1853
- }, displayable() {
1854
- return this.rgb().displayable();
1855
- }, hex: So, formatHex: So, formatHex8: function() {
1856
- return this.rgb().formatHex8();
1857
- }, formatHsl: function() {
1858
- return da(this).formatHsl();
1859
- }, formatRgb: Ao, toString: Ao }), Hn(J, lr, Co(wt, { brighter(e) {
1860
- return e = e == null ? Ut : Math.pow(Ut, e), new J(this.r * e, this.g * e, this.b * e, this.opacity);
1861
- }, darker(e) {
1862
- return e = e == null ? pt : Math.pow(pt, e), new J(this.r * e, this.g * e, this.b * e, this.opacity);
1863
- }, rgb() {
1864
- return this;
1865
- }, clamp() {
1866
- return new J(Ie(this.r), Ie(this.g), Ie(this.b), Xt(this.opacity));
1867
- }, displayable() {
1868
- 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;
1869
- }, hex: No, formatHex: No, formatHex8: function() {
1870
- return `#${Fe(this.r)}${Fe(this.g)}${Fe(this.b)}${Fe(255 * (isNaN(this.opacity) ? 1 : this.opacity))}`;
1871
- }, formatRgb: Eo, toString: Eo })), Hn(fe, $r, Co(wt, { brighter(e) {
1872
- return e = e == null ? Ut : Math.pow(Ut, e), new fe(this.h, this.s, this.l * e, this.opacity);
1873
- }, darker(e) {
1874
- return e = e == null ? pt : Math.pow(pt, e), new fe(this.h, this.s, this.l * e, this.opacity);
1875
- }, rgb() {
1876
- var e = this.h % 360 + 360 * (this.h < 0), t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * t, o = 2 * n - r;
1877
- return new J(Ln(e >= 240 ? e - 240 : e + 120, o, r), Ln(e, o, r), Ln(e < 120 ? e + 240 : e - 120, o, r), this.opacity);
1878
- }, clamp() {
1879
- return new fe($o(this.h), Ht(this.s), Ht(this.l), Xt(this.opacity));
1880
- }, displayable() {
1881
- return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1882
- }, formatHsl() {
1883
- const e = Xt(this.opacity);
1884
- return `${e === 1 ? "hsl(" : "hsla("}${$o(this.h)}, ${100 * Ht(this.s)}%, ${100 * Ht(this.l)}%${e === 1 ? ")" : `, ${e})`}`;
1885
- } }));
1886
- const Yu = globalThis?.UNOVIS_COLORS || ["#4D8CFD", "#FF6B7E", "#F4B83E", "#A6CC74", "#00C19A", "#6859BE"], jh = globalThis?.UNOVIS_COLORS_DARK || ["#4D8CFD", "#FF6B7E", "#FFC16D", "#A6CC74", "#00C19A", "#7887E0"], Ru = (e) => `--vis-${Ze(e) ? "color" + e % Yu.length : e}`;
1887
- function Ph(e, t = 0.4) {
1888
- const n = $r(e);
1889
- return n.l = n.l * (1 + t), n.formatHex();
1890
- }
1891
- function zh(e, t = 0.4, n = 0.6) {
1892
- const r = $r(e);
1893
- return r.s = r.s * (1 - n), r.l = r.l * (1 - t), r.formatHex();
1894
- }
1895
- var Wu = { value: () => {
1896
- } };
1897
- function pa() {
1898
- for (var e, t = 0, n = arguments.length, r = {}; t < n; ++t) {
1899
- if (!(e = arguments[t] + "") || e in r || /[\s.]/.test(e)) throw new Error("illegal type: " + e);
1900
- r[e] = [];
1901
- }
1902
- return new Vt(r);
1903
- }
1904
- function Vt(e) {
1905
- this._ = e;
1906
- }
1907
- function Gu(e, t) {
1908
- for (var n, r = 0, o = e.length; r < o; ++r) if ((n = e[r]).name === t) return n.value;
1909
- }
1910
- function jo(e, t, n) {
1911
- for (var r = 0, o = e.length; r < o; ++r) if (e[r].name === t) {
1912
- e[r] = Wu, e = e.slice(0, r).concat(e.slice(r + 1));
1913
- break;
1914
- }
1915
- return n != null && e.push({ name: t, value: n }), e;
1916
- }
1917
- Vt.prototype = pa.prototype = { constructor: Vt, on: function(e, t) {
1918
- var n, r, o = this._, i = (r = o, (e + "").trim().split(/^|\s+/).map(function(l) {
1919
- var u = "", c = l.indexOf(".");
1920
- if (c >= 0 && (u = l.slice(c + 1), l = l.slice(0, c)), l && !r.hasOwnProperty(l)) throw new Error("unknown type: " + l);
1921
- return { type: l, name: u };
1922
- })), a = -1, s = i.length;
1923
- if (!(arguments.length < 2)) {
1924
- if (t != null && typeof t != "function") throw new Error("invalid callback: " + t);
1925
- for (; ++a < s; ) if (n = (e = i[a]).type) o[n] = jo(o[n], e.name, t);
1926
- else if (t == null) for (n in o) o[n] = jo(o[n], e.name, null);
1927
- return this;
1928
- }
1929
- for (; ++a < s; ) if ((n = (e = i[a]).type) && (n = Gu(o[n], e.name))) return n;
1930
- }, copy: function() {
1931
- var e = {}, t = this._;
1932
- for (var n in t) e[n] = t[n].slice();
1933
- return new Vt(e);
1934
- }, call: function(e, t) {
1935
- if ((n = arguments.length - 2) > 0) for (var n, r, o = new Array(n), i = 0; i < n; ++i) o[i] = arguments[i + 2];
1936
- if (!this._.hasOwnProperty(e)) throw new Error("unknown type: " + e);
1937
- for (i = 0, n = (r = this._[e]).length; i < n; ++i) r[i].value.apply(t, o);
1938
- }, apply: function(e, t, n) {
1939
- if (!this._.hasOwnProperty(e)) throw new Error("unknown type: " + e);
1940
- for (var r = this._[e], o = 0, i = r.length; o < i; ++o) r[o].value.apply(t, n);
1941
- } };
1942
- var Kt, gt, Ke = 0, mt = 0, ut = 0, hn = 0, He = 0, An = 0, St = typeof performance == "object" && performance.now ? performance : Date, ga = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
1943
- setTimeout(e, 17);
1944
- };
1945
- function jr() {
1946
- return He || (ga(qu), He = St.now() + An);
1947
- }
1948
- function qu() {
1949
- He = 0;
1950
- }
1951
- function dn() {
1952
- this._call = this._time = this._next = null;
1953
- }
1954
- function ma(e, t, n) {
1955
- var r = new dn();
1956
- return r.restart(e, t, n), r;
1957
- }
1958
- function Po() {
1959
- He = (hn = St.now()) + An, Ke = mt = 0;
1960
- try {
1961
- (function() {
1962
- jr(), ++Ke;
1963
- for (var e, t = Kt; t; ) (e = He - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1964
- --Ke;
1965
- })();
1966
- } finally {
1967
- Ke = 0, (function() {
1968
- for (var e, t, n = Kt, r = 1 / 0; n; ) n._call ? (r > n._time && (r = n._time), e = n, n = n._next) : (t = n._next, n._next = null, n = e ? e._next = t : Kt = t);
1969
- gt = e, ur(r);
1970
- })(), He = 0;
1971
- }
1972
- }
1973
- function Xu() {
1974
- var e = St.now(), t = e - hn;
1975
- t > 1e3 && (An -= t, hn = e);
1976
- }
1977
- function ur(e) {
1978
- Ke || (mt && (mt = clearTimeout(mt)), e - He > 24 ? (e < 1 / 0 && (mt = setTimeout(Po, e - St.now() - An)), ut && (ut = clearInterval(ut))) : (ut || (hn = St.now(), ut = setInterval(Xu, 1e3)), Ke = 1, ga(Po)));
1979
- }
1980
- function zo(e, t, n) {
1981
- var r = new dn();
1982
- return t = t == null ? 0 : +t, r.restart((o) => {
1983
- r.stop(), e(o + t);
1984
- }, t, n), r;
1985
- }
1986
- dn.prototype = ma.prototype = { constructor: dn, restart: function(e, t, n) {
1987
- if (typeof e != "function") throw new TypeError("callback is not a function");
1988
- n = (n == null ? jr() : +n) + (t == null ? 0 : +t), this._next || gt === this || (gt ? gt._next = this : Kt = this, gt = this), this._call = e, this._time = n, ur();
1989
- }, stop: function() {
1990
- this._call && (this._call = null, this._time = 1 / 0, ur());
1991
- } };
1992
- var Vu = pa("start", "end", "cancel", "interrupt"), Ku = [];
1993
- function Zt(e, t, n, r, o, i) {
1994
- var a = e.__transition;
1995
- if (a) {
1996
- if (n in a) return;
1997
- } else e.__transition = {};
1998
- (function(s, l, u) {
1999
- var c, h = s.__transition;
2000
- function f(x) {
2001
- u.state = 1, u.timer.restart(d, u.delay, u.time), u.delay <= x && d(x - u.delay);
2002
- }
2003
- function d(x) {
2004
- var b, w, E, m;
2005
- if (u.state !== 1) return p();
2006
- for (b in h) if ((m = h[b]).name === u.name) {
2007
- if (m.state === 3) return zo(d);
2008
- m.state === 4 ? (m.state = 6, m.timer.stop(), m.on.call("interrupt", s, s.__data__, m.index, m.group), delete h[b]) : +b < l && (m.state = 6, m.timer.stop(), m.on.call("cancel", s, s.__data__, m.index, m.group), delete h[b]);
2009
- }
2010
- if (zo(function() {
2011
- u.state === 3 && (u.state = 4, u.timer.restart(g, u.delay, u.time), g(x));
2012
- }), u.state = 2, u.on.call("start", s, s.__data__, u.index, u.group), u.state === 2) {
2013
- for (u.state = 3, c = new Array(E = u.tween.length), b = 0, w = -1; b < E; ++b) (m = u.tween[b].value.call(s, s.__data__, u.index, u.group)) && (c[++w] = m);
2014
- c.length = w + 1;
2015
- }
2016
- }
2017
- function g(x) {
2018
- for (var b = x < u.duration ? u.ease.call(null, x / u.duration) : (u.timer.restart(p), u.state = 5, 1), w = -1, E = c.length; ++w < E; ) c[w].call(s, b);
2019
- u.state === 5 && (u.on.call("end", s, s.__data__, u.index, u.group), p());
2020
- }
2021
- function p() {
2022
- for (var x in u.state = 6, u.timer.stop(), delete h[l], h) return;
2023
- delete s.__transition;
2024
- }
2025
- h[l] = u, u.timer = ma(f, 0, u.time);
2026
- })(e, n, { name: t, index: r, group: o, on: Vu, tween: Ku, time: i.time, delay: i.delay, duration: i.duration, ease: i.ease, timer: null, state: 0 });
2027
- }
2028
- function Pr(e, t) {
2029
- var n = le(e, t);
2030
- if (n.state > 0) throw new Error("too late; already scheduled");
2031
- return n;
2032
- }
2033
- function pe(e, t) {
2034
- var n = le(e, t);
2035
- if (n.state > 3) throw new Error("too late; already running");
2036
- return n;
2037
- }
2038
- function le(e, t) {
2039
- var n = e.__transition;
2040
- if (!n || !(n = n[t])) throw new Error("transition not found");
2041
- return n;
2042
- }
2043
- function va(e, t) {
2044
- var n, r, o, i = e.__transition, a = !0;
2045
- if (i) {
2046
- for (o in t = t == null ? null : t + "", i) (n = i[o]).name === t ? (r = n.state > 2 && n.state < 5, n.state = 6, n.timer.stop(), n.on.call(r ? "interrupt" : "cancel", e, e.__data__, n.index, n.group), delete i[o]) : a = !1;
2047
- a && delete e.__transition;
2048
- }
2049
- }
2050
- const zr = (e) => () => e;
2051
- function Zu(e) {
2052
- return (e = +e) == 1 ? ya : function(t, n) {
2053
- return n - t ? (function(r, o, i) {
2054
- return r = Math.pow(r, i), o = Math.pow(o, i) - r, i = 1 / i, function(a) {
2055
- return Math.pow(r + a * o, i);
2056
- };
2057
- })(t, n, e) : zr(isNaN(t) ? n : t);
2058
- };
2059
- }
2060
- function ya(e, t) {
2061
- var n = t - e;
2062
- return n ? /* @__PURE__ */ (function(r, o) {
2063
- return function(i) {
2064
- return r + i * o;
2065
- };
2066
- })(e, n) : zr(isNaN(e) ? t : e);
2067
- }
2068
- const pn = (function e(t) {
2069
- var n = Zu(t);
2070
- function r(o, i) {
2071
- var a = n((o = lr(o)).r, (i = lr(i)).r), s = n(o.g, i.g), l = n(o.b, i.b), u = ya(o.opacity, i.opacity);
2072
- return function(c) {
2073
- return o.r = a(c), o.g = s(c), o.b = l(c), o.opacity = u(c), o + "";
2074
- };
2075
- }
2076
- return r.gamma = e, r;
2077
- })(1);
2078
- function Qu(e, t) {
2079
- t || (t = []);
2080
- var n, r = e ? Math.min(t.length, e.length) : 0, o = t.slice();
2081
- return function(i) {
2082
- for (n = 0; n < r; ++n) o[n] = e[n] * (1 - i) + t[n] * i;
2083
- return o;
2084
- };
2085
- }
2086
- function Ju(e, t) {
2087
- var n, r = t ? t.length : 0, o = e ? Math.min(r, e.length) : 0, i = new Array(o), a = new Array(r);
2088
- for (n = 0; n < o; ++n) i[n] = nt(e[n], t[n]);
2089
- for (; n < r; ++n) a[n] = t[n];
2090
- return function(s) {
2091
- for (n = 0; n < o; ++n) a[n] = i[n](s);
2092
- return a;
2093
- };
2094
- }
2095
- function ec(e, t) {
2096
- var n = /* @__PURE__ */ new Date();
2097
- return e = +e, t = +t, function(r) {
2098
- return n.setTime(e * (1 - r) + t * r), n;
2099
- };
2100
- }
2101
- function ce(e, t) {
2102
- return e = +e, t = +t, function(n) {
2103
- return e * (1 - n) + t * n;
2104
- };
2105
- }
2106
- function tc(e, t) {
2107
- var n, r = {}, o = {};
2108
- for (n in e !== null && typeof e == "object" || (e = {}), t !== null && typeof t == "object" || (t = {}), t) n in e ? r[n] = nt(e[n], t[n]) : o[n] = t[n];
2109
- return function(i) {
2110
- for (n in r) o[n] = r[n](i);
2111
- return o;
2112
- };
2113
- }
2114
- var cr = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Bn = new RegExp(cr.source, "g");
2115
- function ba(e, t) {
2116
- var n, r, o, i = cr.lastIndex = Bn.lastIndex = 0, a = -1, s = [], l = [];
2117
- for (e += "", t += ""; (n = cr.exec(e)) && (r = Bn.exec(t)); ) (o = r.index) > i && (o = t.slice(i, o), s[a] ? s[a] += o : s[++a] = o), (n = n[0]) === (r = r[0]) ? s[a] ? s[a] += r : s[++a] = r : (s[++a] = null, l.push({ i: a, x: ce(n, r) })), i = Bn.lastIndex;
2118
- return i < t.length && (o = t.slice(i), s[a] ? s[a] += o : s[++a] = o), s.length < 2 ? l[0] ? /* @__PURE__ */ (function(u) {
2119
- return function(c) {
2120
- return u(c) + "";
2121
- };
2122
- })(l[0].x) : /* @__PURE__ */ (function(u) {
2123
- return function() {
2124
- return u;
2125
- };
2126
- })(t) : (t = l.length, function(u) {
2127
- for (var c, h = 0; h < t; ++h) s[(c = l[h]).i] = c.x(u);
2128
- return s.join("");
2129
- });
2130
- }
2131
- function nt(e, t) {
2132
- var n, r, o = typeof t;
2133
- return t == null || o === "boolean" ? zr(t) : (o === "number" ? ce : o === "string" ? (n = Le(t)) ? (t = n, pn) : ba : t instanceof Le ? pn : t instanceof Date ? ec : (r = t, !ArrayBuffer.isView(r) || r instanceof DataView ? Array.isArray(t) ? Ju : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? tc : ce : Qu))(e, t);
2134
- }
2135
- function Or(e, t) {
2136
- return e = +e, t = +t, function(n) {
2137
- return Math.round(e * (1 - n) + t * n);
2138
- };
2139
- }
2140
- var Lt, Oo = 180 / Math.PI, fr = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 };
2141
- function wa(e, t, n, r, o, i) {
2142
- var a, s, l;
2143
- return (a = Math.sqrt(e * e + t * t)) && (e /= a, t /= a), (l = e * n + t * r) && (n -= e * l, r -= t * l), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, l /= s), e * r < t * n && (e = -e, t = -t, l = -l, a = -a), { translateX: o, translateY: i, rotate: Math.atan2(t, e) * Oo, skewX: Math.atan(l) * Oo, scaleX: a, scaleY: s };
2144
- }
2145
- function xa(e, t, n, r) {
2146
- function o(i) {
2147
- return i.length ? i.pop() + " " : "";
2148
- }
2149
- return function(i, a) {
2150
- var s = [], l = [];
2151
- return i = e(i), a = e(a), (function(u, c, h, f, d, g) {
2152
- if (u !== h || c !== f) {
2153
- var p = d.push("translate(", null, t, null, n);
2154
- g.push({ i: p - 4, x: ce(u, h) }, { i: p - 2, x: ce(c, f) });
2155
- } else (h || f) && d.push("translate(" + h + t + f + n);
2156
- })(i.translateX, i.translateY, a.translateX, a.translateY, s, l), (function(u, c, h, f) {
2157
- u !== c ? (u - c > 180 ? c += 360 : c - u > 180 && (u += 360), f.push({ i: h.push(o(h) + "rotate(", null, r) - 2, x: ce(u, c) })) : c && h.push(o(h) + "rotate(" + c + r);
2158
- })(i.rotate, a.rotate, s, l), (function(u, c, h, f) {
2159
- u !== c ? f.push({ i: h.push(o(h) + "skewX(", null, r) - 2, x: ce(u, c) }) : c && h.push(o(h) + "skewX(" + c + r);
2160
- })(i.skewX, a.skewX, s, l), (function(u, c, h, f, d, g) {
2161
- if (u !== h || c !== f) {
2162
- var p = d.push(o(d) + "scale(", null, ",", null, ")");
2163
- g.push({ i: p - 4, x: ce(u, h) }, { i: p - 2, x: ce(c, f) });
2164
- } else h === 1 && f === 1 || d.push(o(d) + "scale(" + h + "," + f + ")");
2165
- })(i.scaleX, i.scaleY, a.scaleX, a.scaleY, s, l), i = a = null, function(u) {
2166
- for (var c, h = -1, f = l.length; ++h < f; ) s[(c = l[h]).i] = c.x(u);
2167
- return s.join("");
2168
- };
2169
- };
2170
- }
2171
- var nc = xa(function(e) {
2172
- const t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
2173
- return t.isIdentity ? fr : wa(t.a, t.b, t.c, t.d, t.e, t.f);
2174
- }, "px, ", "px)", "deg)"), rc = xa(function(e) {
2175
- return e == null ? fr : (Lt || (Lt = document.createElementNS("http://www.w3.org/2000/svg", "g")), Lt.setAttribute("transform", e), (e = Lt.transform.baseVal.consolidate()) ? wa((e = e.matrix).a, e.b, e.c, e.d, e.e, e.f) : fr);
2176
- }, ", ", ")", ")");
2177
- function oc(e, t) {
2178
- var n, r;
2179
- return function() {
2180
- var o = pe(this, e), i = o.tween;
2181
- if (i !== n) {
2182
- for (var a = 0, s = (r = n = i).length; a < s; ++a) if (r[a].name === t) {
2183
- (r = r.slice()).splice(a, 1);
2184
- break;
2185
- }
2186
- }
2187
- o.tween = r;
2188
- };
2189
- }
2190
- function ic(e, t, n) {
2191
- var r, o;
2192
- if (typeof n != "function") throw new Error();
2193
- return function() {
2194
- var i = pe(this, e), a = i.tween;
2195
- if (a !== r) {
2196
- o = (r = a).slice();
2197
- for (var s = { name: t, value: n }, l = 0, u = o.length; l < u; ++l) if (o[l].name === t) {
2198
- o[l] = s;
2199
- break;
2200
- }
2201
- l === u && o.push(s);
2202
- }
2203
- i.tween = o;
2204
- };
2205
- }
2206
- function Yn(e, t, n) {
2207
- var r = e._id;
2208
- return e.each(function() {
2209
- var o = pe(this, r);
2210
- (o.value || (o.value = {}))[t] = n.apply(this, arguments);
2211
- }), function(o) {
2212
- return le(o, r).value[t];
2213
- };
2214
- }
2215
- function Fo(e, t) {
2216
- var n;
2217
- return (typeof t == "number" ? ce : t instanceof Le ? pn : (n = Le(t)) ? (t = n, pn) : ba)(e, t);
2218
- }
2219
- function ac(e) {
2220
- return function() {
2221
- this.removeAttribute(e);
2222
- };
2223
- }
2224
- function sc(e) {
2225
- return function() {
2226
- this.removeAttributeNS(e.space, e.local);
2227
- };
2228
- }
2229
- function lc(e, t, n) {
2230
- var r, o, i = n + "";
2231
- return function() {
2232
- var a = this.getAttribute(e);
2233
- return a === i ? null : a === r ? o : o = t(r = a, n);
2234
- };
2235
- }
2236
- function uc(e, t, n) {
2237
- var r, o, i = n + "";
2238
- return function() {
2239
- var a = this.getAttributeNS(e.space, e.local);
2240
- return a === i ? null : a === r ? o : o = t(r = a, n);
2241
- };
2242
- }
2243
- function cc(e, t, n) {
2244
- var r, o, i;
2245
- return function() {
2246
- var a, s, l = n(this);
2247
- if (l != null) return (a = this.getAttribute(e)) === (s = l + "") ? null : a === r && s === o ? i : (o = s, i = t(r = a, l));
2248
- this.removeAttribute(e);
2249
- };
2250
- }
2251
- function fc(e, t, n) {
2252
- var r, o, i;
2253
- return function() {
2254
- var a, s, l = n(this);
2255
- if (l != null) return (a = this.getAttributeNS(e.space, e.local)) === (s = l + "") ? null : a === r && s === o ? i : (o = s, i = t(r = a, l));
2256
- this.removeAttributeNS(e.space, e.local);
2257
- };
2258
- }
2259
- function hc(e, t) {
2260
- var n, r;
2261
- function o() {
2262
- var i = t.apply(this, arguments);
2263
- return i !== r && (n = (r = i) && /* @__PURE__ */ (function(a, s) {
2264
- return function(l) {
2265
- this.setAttributeNS(a.space, a.local, s.call(this, l));
2266
- };
2267
- })(e, i)), n;
2268
- }
2269
- return o._value = t, o;
2270
- }
2271
- function dc(e, t) {
2272
- var n, r;
2273
- function o() {
2274
- var i = t.apply(this, arguments);
2275
- return i !== r && (n = (r = i) && /* @__PURE__ */ (function(a, s) {
2276
- return function(l) {
2277
- this.setAttribute(a, s.call(this, l));
2278
- };
2279
- })(e, i)), n;
2280
- }
2281
- return o._value = t, o;
2282
- }
2283
- function pc(e, t) {
2284
- return function() {
2285
- Pr(this, e).delay = +t.apply(this, arguments);
2286
- };
2287
- }
2288
- function gc(e, t) {
2289
- return t = +t, function() {
2290
- Pr(this, e).delay = t;
2291
- };
2292
- }
2293
- function mc(e, t) {
2294
- return function() {
2295
- pe(this, e).duration = +t.apply(this, arguments);
2296
- };
2297
- }
2298
- function vc(e, t) {
2299
- return t = +t, function() {
2300
- pe(this, e).duration = t;
2301
- };
2302
- }
2303
- var yc = _t.prototype.constructor;
2304
- function Uo(e) {
2305
- return function() {
2306
- this.style.removeProperty(e);
2307
- };
2308
- }
2309
- var bc = 0;
2310
- function be(e, t, n, r) {
2311
- this._groups = e, this._parents = t, this._name = n, this._id = r;
2312
- }
2313
- function _a() {
2314
- return ++bc;
2315
- }
2316
- var ye = _t.prototype;
2317
- be.prototype = { constructor: be, select: function(e) {
2318
- var t = this._name, n = this._id;
2319
- typeof e != "function" && (e = er(e));
2320
- for (var r = this._groups, o = r.length, i = new Array(o), a = 0; a < o; ++a) for (var s, l, u = r[a], c = u.length, h = i[a] = new Array(c), f = 0; f < c; ++f) (s = u[f]) && (l = e.call(s, s.__data__, f, u)) && ("__data__" in s && (l.__data__ = s.__data__), h[f] = l, Zt(h[f], t, n, f, h, le(s, n)));
2321
- return new be(i, this._parents, t, n);
2322
- }, selectAll: function(e) {
2323
- var t = this._name, n = this._id;
2324
- typeof e != "function" && (e = Ri(e));
2325
- for (var r = this._groups, o = r.length, i = [], a = [], s = 0; s < o; ++s) for (var l, u = r[s], c = u.length, h = 0; h < c; ++h) if (l = u[h]) {
2326
- for (var f, d = e.call(l, l.__data__, h, u), g = le(l, n), p = 0, x = d.length; p < x; ++p) (f = d[p]) && Zt(f, t, n, p, d, g);
2327
- i.push(d), a.push(l);
2328
- }
2329
- return new be(i, a, t, n);
2330
- }, selectChild: ye.selectChild, selectChildren: ye.selectChildren, filter: function(e) {
2331
- typeof e != "function" && (e = Wi(e));
2332
- for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o) for (var i, a = t[o], s = a.length, l = r[o] = [], u = 0; u < s; ++u) (i = a[u]) && e.call(i, i.__data__, u, a) && l.push(i);
2333
- return new be(r, this._parents, this._name, this._id);
2334
- }, merge: function(e) {
2335
- if (e._id !== this._id) throw new Error();
2336
- for (var t = this._groups, n = e._groups, r = t.length, o = n.length, i = Math.min(r, o), a = new Array(r), s = 0; s < i; ++s) for (var l, u = t[s], c = n[s], h = u.length, f = a[s] = new Array(h), d = 0; d < h; ++d) (l = u[d] || c[d]) && (f[d] = l);
2337
- for (; s < r; ++s) a[s] = t[s];
2338
- return new be(a, this._parents, this._name, this._id);
2339
- }, selection: function() {
2340
- return new yc(this._groups, this._parents);
2341
- }, transition: function() {
2342
- for (var e = this._name, t = this._id, n = _a(), r = this._groups, o = r.length, i = 0; i < o; ++i) for (var a, s = r[i], l = s.length, u = 0; u < l; ++u) if (a = s[u]) {
2343
- var c = le(a, t);
2344
- Zt(a, e, n, u, s, { time: c.time + c.delay + c.duration, delay: 0, duration: c.duration, ease: c.ease });
2345
- }
2346
- return new be(r, this._parents, e, n);
2347
- }, call: ye.call, nodes: ye.nodes, node: ye.node, size: ye.size, empty: ye.empty, each: ye.each, on: function(e, t) {
2348
- var n = this._id;
2349
- return arguments.length < 2 ? le(this.node(), n).on.on(e) : this.each((function(r, o, i) {
2350
- var a, s, l = (function(u) {
2351
- return (u + "").trim().split(/^|\s+/).every(function(c) {
2352
- var h = c.indexOf(".");
2353
- return h >= 0 && (c = c.slice(0, h)), !c || c === "start";
2354
- });
2355
- })(o) ? Pr : pe;
2356
- return function() {
2357
- var u = l(this, r), c = u.on;
2358
- c !== a && (s = (a = c).copy()).on(o, i), u.on = s;
2359
- };
2360
- })(n, e, t));
2361
- }, attr: function(e, t) {
2362
- var n = nn(e), r = n === "transform" ? rc : Fo;
2363
- return this.attrTween(e, typeof t == "function" ? (n.local ? fc : cc)(n, r, Yn(this, "attr." + e, t)) : t == null ? (n.local ? sc : ac)(n) : (n.local ? uc : lc)(n, r, t));
2364
- }, attrTween: function(e, t) {
2365
- var n = "attr." + e;
2366
- if (arguments.length < 2) return (n = this.tween(n)) && n._value;
2367
- if (t == null) return this.tween(n, null);
2368
- if (typeof t != "function") throw new Error();
2369
- var r = nn(e);
2370
- return this.tween(n, (r.local ? hc : dc)(r, t));
2371
- }, style: function(e, t, n) {
2372
- var r = (e += "") == "transform" ? nc : Fo;
2373
- return t == null ? this.styleTween(e, /* @__PURE__ */ (function(o, i) {
2374
- var a, s, l;
2375
- return function() {
2376
- var u = Ge(this, o), c = (this.style.removeProperty(o), Ge(this, o));
2377
- return u === c ? null : u === a && c === s ? l : l = i(a = u, s = c);
2378
- };
2379
- })(e, r)).on("end.style." + e, Uo(e)) : typeof t == "function" ? this.styleTween(e, /* @__PURE__ */ (function(o, i, a) {
2380
- var s, l, u;
2381
- return function() {
2382
- var c = Ge(this, o), h = a(this), f = h + "";
2383
- return h == null && (this.style.removeProperty(o), f = h = Ge(this, o)), c === f ? null : c === s && f === l ? u : (l = f, u = i(s = c, h));
2384
- };
2385
- })(e, r, Yn(this, "style." + e, t))).each((function(o, i) {
2386
- var a, s, l, u, c = "style." + i, h = "end." + c;
2387
- return function() {
2388
- var f = pe(this, o), d = f.on, g = f.value[c] == null ? u || (u = Uo(i)) : void 0;
2389
- d === a && l === g || (s = (a = d).copy()).on(h, l = g), f.on = s;
2390
- };
2391
- })(this._id, e)) : this.styleTween(e, (function(o, i, a) {
2392
- var s, l, u = a + "";
2393
- return function() {
2394
- var c = Ge(this, o);
2395
- return c === u ? null : c === s ? l : l = i(s = c, a);
2396
- };
2397
- })(e, r, t), n).on("end.style." + e, null);
2398
- }, styleTween: function(e, t, n) {
2399
- var r = "style." + (e += "");
2400
- if (arguments.length < 2) return (r = this.tween(r)) && r._value;
2401
- if (t == null) return this.tween(r, null);
2402
- if (typeof t != "function") throw new Error();
2403
- return this.tween(r, (function(o, i, a) {
2404
- var s, l;
2405
- function u() {
2406
- var c = i.apply(this, arguments);
2407
- return c !== l && (s = (l = c) && /* @__PURE__ */ (function(h, f, d) {
2408
- return function(g) {
2409
- this.style.setProperty(h, f.call(this, g), d);
2410
- };
2411
- })(o, c, a)), s;
2412
- }
2413
- return u._value = i, u;
2414
- })(e, t, n ?? ""));
2415
- }, text: function(e) {
2416
- return this.tween("text", typeof e == "function" ? /* @__PURE__ */ (function(t) {
2417
- return function() {
2418
- var n = t(this);
2419
- this.textContent = n ?? "";
2420
- };
2421
- })(Yn(this, "text", e)) : /* @__PURE__ */ (function(t) {
2422
- return function() {
2423
- this.textContent = t;
2424
- };
2425
- })(e == null ? "" : e + ""));
2426
- }, textTween: function(e) {
2427
- var t = "text";
2428
- if (arguments.length < 1) return (t = this.tween(t)) && t._value;
2429
- if (e == null) return this.tween(t, null);
2430
- if (typeof e != "function") throw new Error();
2431
- return this.tween(t, (function(n) {
2432
- var r, o;
2433
- function i() {
2434
- var a = n.apply(this, arguments);
2435
- return a !== o && (r = (o = a) && /* @__PURE__ */ (function(s) {
2436
- return function(l) {
2437
- this.textContent = s.call(this, l);
2438
- };
2439
- })(a)), r;
2440
- }
2441
- return i._value = n, i;
2442
- })(e));
2443
- }, remove: function() {
2444
- return this.on("end.remove", (e = this._id, function() {
2445
- var t = this.parentNode;
2446
- for (var n in this.__transition) if (+n !== e) return;
2447
- t && t.removeChild(this);
2448
- }));
2449
- var e;
2450
- }, tween: function(e, t) {
2451
- var n = this._id;
2452
- if (e += "", arguments.length < 2) {
2453
- for (var r, o = le(this.node(), n).tween, i = 0, a = o.length; i < a; ++i) if ((r = o[i]).name === e) return r.value;
2454
- return null;
2455
- }
2456
- return this.each((t == null ? oc : ic)(n, e, t));
2457
- }, delay: function(e) {
2458
- var t = this._id;
2459
- return arguments.length ? this.each((typeof e == "function" ? pc : gc)(t, e)) : le(this.node(), t).delay;
2460
- }, duration: function(e) {
2461
- var t = this._id;
2462
- return arguments.length ? this.each((typeof e == "function" ? mc : vc)(t, e)) : le(this.node(), t).duration;
2463
- }, ease: function(e) {
2464
- var t = this._id;
2465
- return arguments.length ? this.each((function(n, r) {
2466
- if (typeof r != "function") throw new Error();
2467
- return function() {
2468
- pe(this, n).ease = r;
2469
- };
2470
- })(t, e)) : le(this.node(), t).ease;
2471
- }, easeVarying: function(e) {
2472
- if (typeof e != "function") throw new Error();
2473
- return this.each(/* @__PURE__ */ (function(t, n) {
2474
- return function() {
2475
- var r = n.apply(this, arguments);
2476
- if (typeof r != "function") throw new Error();
2477
- pe(this, t).ease = r;
2478
- };
2479
- })(this._id, e));
2480
- }, end: function() {
2481
- var e, t, n = this, r = n._id, o = n.size();
2482
- return new Promise(function(i, a) {
2483
- var s = { value: a }, l = { value: function() {
2484
- --o === 0 && i();
2485
- } };
2486
- n.each(function() {
2487
- var u = pe(this, r), c = u.on;
2488
- c !== e && ((t = (e = c).copy())._.cancel.push(s), t._.interrupt.push(s), t._.end.push(l)), u.on = t;
2489
- }), o === 0 && i();
2490
- });
2491
- }, [Symbol.iterator]: ye[Symbol.iterator] };
2492
- const Io = (e) => +e;
2493
- var wc = { time: null, delay: 0, duration: 250, ease: function(e) {
2494
- return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
2495
- } };
2496
- function xc(e, t) {
2497
- for (var n; !(n = e.__transition) || !(n = n[t]); ) if (!(e = e.parentNode)) throw new Error(`transition ${t} not found`);
2498
- return n;
2499
- }
2500
- function Rn(e, t, n) {
2501
- if (e.nodes().forEach((r) => va(r)), t) {
2502
- const r = e.transition().duration(t);
2503
- return n && r.ease(n), r;
2504
- }
2505
- return e;
2506
- }
2507
- _t.prototype.interrupt = function(e) {
2508
- return this.each(function() {
2509
- va(this, e);
2510
- });
2511
- }, _t.prototype.transition = function(e) {
2512
- var t, n;
2513
- e instanceof be ? (t = e._id, e = e._name) : (t = _a(), (n = wc).time = jr(), e = e == null ? null : e + "");
2514
- for (var r = this._groups, o = r.length, i = 0; i < o; ++i) for (var a, s = r[i], l = s.length, u = 0; u < l; ++u) (a = s[u]) && Zt(a, e, t, u, s, n || xc(a, t));
2515
- return new be(r, this._parents, e, t);
2516
- };
2517
- class ka {
2518
- constructor(t) {
2519
- this.data = t;
2520
- }
2521
- get data() {
2522
- return this._data;
2523
- }
2524
- set data(t) {
2525
- this._data = t;
2526
- }
2527
- }
2528
- function ue(e, t) {
2529
- switch (arguments.length) {
2530
- case 0:
2531
- break;
2532
- case 1:
2533
- this.range(e);
2534
- break;
2535
- default:
2536
- this.range(t).domain(e);
2537
- }
2538
- return this;
2539
- }
2540
- function Ho(e, t) {
2541
- switch (arguments.length) {
2542
- case 0:
2543
- break;
2544
- case 1:
2545
- typeof e == "function" ? this.interpolator(e) : this.range(e);
2546
- break;
2547
- default:
2548
- this.domain(e), typeof t == "function" ? this.interpolator(t) : this.range(t);
2549
- }
2550
- return this;
2551
- }
2552
- const Lo = /* @__PURE__ */ Symbol("implicit");
2553
- function Fr() {
2554
- var e = new so(), t = [], n = [], r = Lo;
2555
- function o(i) {
2556
- let a = e.get(i);
2557
- if (a === void 0) {
2558
- if (r !== Lo) return r;
2559
- e.set(i, a = t.push(i) - 1);
2560
- }
2561
- return n[a % n.length];
2562
- }
2563
- return o.domain = function(i) {
2564
- if (!arguments.length) return t.slice();
2565
- t = [], e = new so();
2566
- for (const a of i) e.has(a) || e.set(a, t.push(a) - 1);
2567
- return o;
2568
- }, o.range = function(i) {
2569
- return arguments.length ? (n = Array.from(i), o) : n.slice();
2570
- }, o.unknown = function(i) {
2571
- return arguments.length ? (r = i, o) : r;
2572
- }, o.copy = function() {
2573
- return Fr(t, n).unknown(r);
2574
- }, ue.apply(o, arguments), o;
2575
- }
2576
- function hr() {
2577
- var e, t, n = Fr().unknown(void 0), r = n.domain, o = n.range, i = 0, a = 1, s = !1, l = 0, u = 0, c = 0.5;
2578
- function h() {
2579
- var f = r().length, d = a < i, g = d ? a : i, p = d ? i : a;
2580
- e = (p - g) / Math.max(1, f - l + 2 * u), s && (e = Math.floor(e)), g += (p - g - e * (f - l)) * c, t = e * (1 - l), s && (g = Math.round(g), t = Math.round(t));
2581
- var x = lu(f).map(function(b) {
2582
- return g + e * b;
2583
- });
2584
- return o(d ? x.reverse() : x);
2585
- }
2586
- return delete n.unknown, n.domain = function(f) {
2587
- return arguments.length ? (r(f), h()) : r();
2588
- }, n.range = function(f) {
2589
- return arguments.length ? ([i, a] = f, i = +i, a = +a, h()) : [i, a];
2590
- }, n.rangeRound = function(f) {
2591
- return [i, a] = f, i = +i, a = +a, s = !0, h();
2592
- }, n.bandwidth = function() {
2593
- return t;
2594
- }, n.step = function() {
2595
- return e;
2596
- }, n.round = function(f) {
2597
- return arguments.length ? (s = !!f, h()) : s;
2598
- }, n.padding = function(f) {
2599
- return arguments.length ? (l = Math.min(1, u = +f), h()) : l;
2600
- }, n.paddingInner = function(f) {
2601
- return arguments.length ? (l = Math.min(1, f), h()) : l;
2602
- }, n.paddingOuter = function(f) {
2603
- return arguments.length ? (u = +f, h()) : u;
2604
- }, n.align = function(f) {
2605
- return arguments.length ? (c = Math.max(0, Math.min(1, f)), h()) : c;
2606
- }, n.copy = function() {
2607
- return hr(r(), [i, a]).round(s).paddingInner(l).paddingOuter(u).align(c);
2608
- }, ue.apply(h(), arguments);
2609
- }
2610
- function Ca(e) {
2611
- var t = e.copy;
2612
- return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
2613
- return Ca(t());
2614
- }, e;
2615
- }
2616
- function dr(e) {
2617
- return +e;
2618
- }
2619
- var Bo = [0, 1];
2620
- function ee(e) {
2621
- return e;
2622
- }
2623
- function pr(e, t) {
2624
- return (t -= e = +e) ? function(r) {
2625
- return (r - e) / t;
2626
- } : (n = isNaN(t) ? NaN : 0.5, function() {
2627
- return n;
2628
- });
2629
- var n;
2630
- }
2631
- function _c(e, t, n) {
2632
- var r = e[0], o = e[1], i = t[0], a = t[1];
2633
- return o < r ? (r = pr(o, r), i = n(a, i)) : (r = pr(r, o), i = n(i, a)), function(s) {
2634
- return i(r(s));
2635
- };
2636
- }
2637
- function kc(e, t, n) {
2638
- var r = Math.min(e.length, t.length) - 1, o = new Array(r), i = new Array(r), a = -1;
2639
- for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++a < r; ) o[a] = pr(e[a], e[a + 1]), i[a] = n(t[a], t[a + 1]);
2640
- return function(s) {
2641
- var l = bt(e, s, 1, r) - 1;
2642
- return i[l](o[l](s));
2643
- };
2644
- }
2645
- function xt(e, t) {
2646
- return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
2647
- }
2648
- function gn() {
2649
- var e, t, n, r, o, i, a = Bo, s = Bo, l = nt, u = ee;
2650
- function c() {
2651
- var f, d, g, p = Math.min(a.length, s.length);
2652
- return u !== ee && (f = a[0], d = a[p - 1], f > d && (g = f, f = d, d = g), u = function(x) {
2653
- return Math.max(f, Math.min(d, x));
2654
- }), r = p > 2 ? kc : _c, o = i = null, h;
2655
- }
2656
- function h(f) {
2657
- return f == null || isNaN(f = +f) ? n : (o || (o = r(a.map(e), s, l)))(e(u(f)));
2658
- }
2659
- return h.invert = function(f) {
2660
- return u(t((i || (i = r(s, a.map(e), ce)))(f)));
2661
- }, h.domain = function(f) {
2662
- return arguments.length ? (a = Array.from(f, dr), c()) : a.slice();
2663
- }, h.range = function(f) {
2664
- return arguments.length ? (s = Array.from(f), c()) : s.slice();
2665
- }, h.rangeRound = function(f) {
2666
- return s = Array.from(f), l = Or, c();
2667
- }, h.clamp = function(f) {
2668
- return arguments.length ? (u = !!f || ee, c()) : u !== ee;
2669
- }, h.interpolate = function(f) {
2670
- return arguments.length ? (l = f, c()) : l;
2671
- }, h.unknown = function(f) {
2672
- return arguments.length ? (n = f, h) : n;
2673
- }, function(f, d) {
2674
- return e = f, t = d, c();
2675
- };
2676
- }
2677
- function Ma() {
2678
- return gn()(ee, ee);
2679
- }
2680
- function mn(e, t) {
2681
- if (!isFinite(e) || e === 0) return null;
2682
- var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
2683
- return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
2684
- }
2685
- function qe(e) {
2686
- return (e = mn(Math.abs(e))) ? e[1] : NaN;
2687
- }
2688
- var vn, Cc = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2689
- function At(e) {
2690
- if (!(t = Cc.exec(e))) throw new Error("invalid format: " + e);
2691
- var t;
2692
- return new gr({ fill: t[1], align: t[2], sign: t[3], symbol: t[4], zero: t[5], width: t[6], comma: t[7], precision: t[8] && t[8].slice(1), trim: t[9], type: t[10] });
2693
- }
2694
- function gr(e) {
2695
- this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
2696
- }
2697
- function Yo(e, t) {
2698
- var n = mn(e, t);
2699
- if (!n) return e + "";
2700
- var r = n[0], o = n[1];
2701
- return o < 0 ? "0." + new Array(-o).join("0") + r : r.length > o + 1 ? r.slice(0, o + 1) + "." + r.slice(o + 1) : r + new Array(o - r.length + 2).join("0");
2702
- }
2703
- At.prototype = gr.prototype, gr.prototype.toString = function() {
2704
- return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, 0 | this.width)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, 0 | this.precision)) + (this.trim ? "~" : "") + this.type;
2705
- };
2706
- const Ro = { "%": (e, t) => (100 * e).toFixed(t), b: (e) => Math.round(e).toString(2), c: (e) => e + "", d: function(e) {
2707
- return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
2708
- }, e: (e, t) => e.toExponential(t), f: (e, t) => e.toFixed(t), g: (e, t) => e.toPrecision(t), o: (e) => Math.round(e).toString(8), p: (e, t) => Yo(100 * e, t), r: Yo, s: function(e, t) {
2709
- var n = mn(e, t);
2710
- if (!n) return vn = void 0, e.toPrecision(t);
2711
- var r = n[0], o = n[1], i = o - (vn = 3 * Math.max(-8, Math.min(8, Math.floor(o / 3)))) + 1, a = r.length;
2712
- return i === a ? r : i > a ? r + new Array(i - a + 1).join("0") : i > 0 ? r.slice(0, i) + "." + r.slice(i) : "0." + new Array(1 - i).join("0") + mn(e, Math.max(0, t + i - 1))[0];
2713
- }, X: (e) => Math.round(e).toString(16).toUpperCase(), x: (e) => Math.round(e).toString(16) };
2714
- function Wo(e) {
2715
- return e;
2716
- }
2717
- var Wn, Ur, Sa, Go = Array.prototype.map, qo = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2718
- function Mc(e) {
2719
- var t, n, r = e.grouping === void 0 || e.thousands === void 0 ? Wo : (t = Go.call(e.grouping, Number), n = e.thousands + "", function(f, d) {
2720
- for (var g = f.length, p = [], x = 0, b = t[0], w = 0; g > 0 && b > 0 && (w + b + 1 > d && (b = Math.max(1, d - w)), p.push(f.substring(g -= b, g + b)), !((w += b + 1) > d)); ) b = t[x = (x + 1) % t.length];
2721
- return p.reverse().join(n);
2722
- }), o = e.currency === void 0 ? "" : e.currency[0] + "", i = e.currency === void 0 ? "" : e.currency[1] + "", a = e.decimal === void 0 ? "." : e.decimal + "", s = e.numerals === void 0 ? Wo : /* @__PURE__ */ (function(f) {
2723
- return function(d) {
2724
- return d.replace(/[0-9]/g, function(g) {
2725
- return f[+g];
2726
- });
2727
- };
2728
- })(Go.call(e.numerals, String)), l = e.percent === void 0 ? "%" : e.percent + "", u = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
2729
- function h(f, d) {
2730
- var g = (f = At(f)).fill, p = f.align, x = f.sign, b = f.symbol, w = f.zero, E = f.width, m = f.comma, N = f.precision, M = f.trim, k = f.type;
2731
- k === "n" ? (m = !0, k = "g") : Ro[k] || (N === void 0 && (N = 12), M = !0, k = "g"), (w || g === "0" && p === "=") && (w = !0, g = "0", p = "=");
2732
- var B = (d && d.prefix !== void 0 ? d.prefix : "") + (b === "$" ? o : b === "#" && /[boxX]/.test(k) ? "0" + k.toLowerCase() : ""), j = (b === "$" ? i : /[%p]/.test(k) ? l : "") + (d && d.suffix !== void 0 ? d.suffix : ""), y = Ro[k], T = /[defgprs%]/.test(k);
2733
- function D(v) {
2734
- var _, C, Y, I = B, P = j;
2735
- if (k === "c") P = y(v) + P, v = "";
2736
- else {
2737
- var L = (v = +v) < 0 || 1 / v < 0;
2738
- if (v = isNaN(v) ? c : y(Math.abs(v), N), M && (v = (function(se) {
2739
- e: for (var Ce, at = se.length, ie = 1, $e = -1; ie < at; ++ie) switch (se[ie]) {
2740
- case ".":
2741
- $e = Ce = ie;
2742
- break;
2743
- case "0":
2744
- $e === 0 && ($e = ie), Ce = ie;
2745
- break;
2746
- default:
2747
- if (!+se[ie]) break e;
2748
- $e > 0 && ($e = 0);
2749
- }
2750
- return $e > 0 ? se.slice(0, $e) + se.slice(Ce + 1) : se;
2751
- })(v)), L && +v == 0 && x !== "+" && (L = !1), I = (L ? x === "(" ? x : u : x === "-" || x === "(" ? "" : x) + I, P = (k !== "s" || isNaN(v) || vn === void 0 ? "" : qo[8 + vn / 3]) + P + (L && x === "(" ? ")" : ""), T) {
2752
- for (_ = -1, C = v.length; ++_ < C; ) if (48 > (Y = v.charCodeAt(_)) || Y > 57) {
2753
- P = (Y === 46 ? a + v.slice(_ + 1) : v.slice(_)) + P, v = v.slice(0, _);
2754
- break;
2755
- }
2756
- }
2757
- }
2758
- m && !w && (v = r(v, 1 / 0));
2759
- var H = I.length + v.length + P.length, oe = H < E ? new Array(E - H + 1).join(g) : "";
2760
- switch (m && w && (v = r(oe + v, oe.length ? E - P.length : 1 / 0), oe = ""), p) {
2761
- case "<":
2762
- v = I + v + P + oe;
2763
- break;
2764
- case "=":
2765
- v = I + oe + v + P;
2766
- break;
2767
- case "^":
2768
- v = oe.slice(0, H = oe.length >> 1) + I + v + P + oe.slice(H);
2769
- break;
2770
- default:
2771
- v = oe + I + v + P;
2772
- }
2773
- return s(v);
2774
- }
2775
- return N = N === void 0 ? 6 : /[gprs]/.test(k) ? Math.max(1, Math.min(21, N)) : Math.max(0, Math.min(20, N)), D.toString = function() {
2776
- return f + "";
2777
- }, D;
2778
- }
2779
- return { format: h, formatPrefix: function(f, d) {
2780
- var g = 3 * Math.max(-8, Math.min(8, Math.floor(qe(d) / 3))), p = Math.pow(10, -g), x = h(((f = At(f)).type = "f", f), { suffix: qo[8 + g / 3] });
2781
- return function(b) {
2782
- return x(p * b);
2783
- };
2784
- } };
2785
- }
2786
- function Sc(e, t, n, r) {
2787
- var o, i = or(e, t, n);
2788
- switch ((r = At(r ?? ",f")).type) {
2789
- case "s":
2790
- var a = Math.max(Math.abs(e), Math.abs(t));
2791
- return r.precision != null || isNaN(o = (function(s, l) {
2792
- return Math.max(0, 3 * Math.max(-8, Math.min(8, Math.floor(qe(l) / 3))) - qe(Math.abs(s)));
2793
- })(i, a)) || (r.precision = o), Sa(r, a);
2794
- case "":
2795
- case "e":
2796
- case "g":
2797
- case "p":
2798
- case "r":
2799
- r.precision != null || isNaN(o = (function(s, l) {
2800
- return s = Math.abs(s), l = Math.abs(l) - s, Math.max(0, qe(l) - qe(s)) + 1;
2801
- })(i, Math.max(Math.abs(e), Math.abs(t)))) || (r.precision = o - (r.type === "e"));
2802
- break;
2803
- case "f":
2804
- case "%":
2805
- r.precision != null || isNaN(o = (function(s) {
2806
- return Math.max(0, -qe(Math.abs(s)));
2807
- })(i)) || (r.precision = o - 2 * (r.type === "%"));
2808
- }
2809
- return Ur(r);
2810
- }
2811
- function Pe(e) {
2812
- var t = e.domain;
2813
- return e.ticks = function(n) {
2814
- var r = t();
2815
- return nr(r[0], r[r.length - 1], n ?? 10);
2816
- }, e.tickFormat = function(n, r) {
2817
- var o = t();
2818
- return Sc(o[0], o[o.length - 1], n ?? 10, r);
2819
- }, e.nice = function(n) {
2820
- n == null && (n = 10);
2821
- var r, o, i = t(), a = 0, s = i.length - 1, l = i[a], u = i[s], c = 10;
2822
- for (u < l && (o = l, l = u, u = o, o = a, a = s, s = o); c-- > 0; ) {
2823
- if ((o = rr(l, u, n)) === r) return i[a] = l, i[s] = u, t(i);
2824
- if (o > 0) l = Math.floor(l / o) * o, u = Math.ceil(u / o) * o;
2825
- else {
2826
- if (!(o < 0)) break;
2827
- l = Math.ceil(l * o) / o, u = Math.floor(u * o) / o;
2828
- }
2829
- r = o;
2830
- }
2831
- return e;
2832
- }, e;
2833
- }
2834
- function Aa(e, t) {
2835
- var n, r = 0, o = (e = e.slice()).length - 1, i = e[r], a = e[o];
2836
- return a < i && (n = r, r = o, o = n, n = i, i = a, a = n), e[r] = t.floor(i), e[o] = t.ceil(a), e;
2837
- }
2838
- function Xo(e) {
2839
- return Math.log(e);
2840
- }
2841
- function Vo(e) {
2842
- return Math.exp(e);
2843
- }
2844
- function Ac(e) {
2845
- return -Math.log(-e);
2846
- }
2847
- function Tc(e) {
2848
- return -Math.exp(-e);
2849
- }
2850
- function Nc(e) {
2851
- return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
2852
- }
2853
- function Ko(e) {
2854
- return (t, n) => -e(-t, n);
2855
- }
2856
- function Ec(e) {
2857
- const t = e(Xo, Vo), n = t.domain;
2858
- let r, o, i = 10;
2859
- function a() {
2860
- return r = (function(s) {
2861
- return s === Math.E ? Math.log : s === 10 && Math.log10 || s === 2 && Math.log2 || (s = Math.log(s), (l) => Math.log(l) / s);
2862
- })(i), o = /* @__PURE__ */ (function(s) {
2863
- return s === 10 ? Nc : s === Math.E ? Math.exp : (l) => Math.pow(s, l);
2864
- })(i), n()[0] < 0 ? (r = Ko(r), o = Ko(o), e(Ac, Tc)) : e(Xo, Vo), t;
2865
- }
2866
- return t.base = function(s) {
2867
- return arguments.length ? (i = +s, a()) : i;
2868
- }, t.domain = function(s) {
2869
- return arguments.length ? (n(s), a()) : n();
2870
- }, t.ticks = (s) => {
2871
- const l = n();
2872
- let u = l[0], c = l[l.length - 1];
2873
- const h = c < u;
2874
- h && ([u, c] = [c, u]);
2875
- let f, d, g = r(u), p = r(c);
2876
- const x = s == null ? 10 : +s;
2877
- let b = [];
2878
- if (!(i % 1) && p - g < x) {
2879
- if (g = Math.floor(g), p = Math.ceil(p), u > 0) {
2880
- for (; g <= p; ++g) for (f = 1; f < i; ++f) if (d = g < 0 ? f / o(-g) : f * o(g), !(d < u)) {
2881
- if (d > c) break;
2882
- b.push(d);
2883
- }
2884
- } else for (; g <= p; ++g) for (f = i - 1; f >= 1; --f) if (d = g > 0 ? f / o(-g) : f * o(g), !(d < u)) {
2885
- if (d > c) break;
2886
- b.push(d);
2887
- }
2888
- 2 * b.length < x && (b = nr(u, c, x));
2889
- } else b = nr(g, p, Math.min(p - g, x)).map(o);
2890
- return h ? b.reverse() : b;
2891
- }, t.tickFormat = (s, l) => {
2892
- if (s == null && (s = 10), l == null && (l = i === 10 ? "s" : ","), typeof l != "function" && (i % 1 || (l = At(l)).precision != null || (l.trim = !0), l = Ur(l)), s === 1 / 0) return l;
2893
- const u = Math.max(1, i * s / t.ticks().length);
2894
- return (c) => {
2895
- let h = c / o(Math.round(r(c)));
2896
- return h * i < i - 0.5 && (h *= i), h <= u ? l(c) : "";
2897
- };
2898
- }, t.nice = () => n(Aa(n(), { floor: (s) => o(Math.floor(r(s))), ceil: (s) => o(Math.ceil(r(s))) })), t;
2899
- }
2900
- function Zo(e) {
2901
- return function(t) {
2902
- return Math.sign(t) * Math.log1p(Math.abs(t / e));
2903
- };
2904
- }
2905
- function Qo(e) {
2906
- return function(t) {
2907
- return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
2908
- };
2909
- }
2910
- function Jo(e) {
2911
- return function(t) {
2912
- return t < 0 ? -Math.pow(-t, e) : Math.pow(t, e);
2913
- };
2914
- }
2915
- function Dc(e) {
2916
- return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
2917
- }
2918
- function $c(e) {
2919
- return e < 0 ? -e * e : e * e;
2920
- }
2921
- function jc(e) {
2922
- var t = e(ee, ee), n = 1;
2923
- return t.exponent = function(r) {
2924
- return arguments.length ? (n = +r) == 1 ? e(ee, ee) : n === 0.5 ? e(Dc, $c) : e(Jo(n), Jo(1 / n)) : n;
2925
- }, Pe(t);
2926
- }
2927
- function mr() {
2928
- var e = jc(gn());
2929
- return e.copy = function() {
2930
- return xt(e, mr()).exponent(e.exponent());
2931
- }, ue.apply(e, arguments), e;
2932
- }
2933
- Wn = Mc({ thousands: ",", grouping: [3], currency: ["$", ""] }), Ur = Wn.format, Sa = Wn.formatPrefix;
2934
- const Gn = /* @__PURE__ */ new Date(), qn = /* @__PURE__ */ new Date();
2935
- function G(e, t, n, r) {
2936
- function o(i) {
2937
- return e(i = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+i)), i;
2938
- }
2939
- return o.floor = (i) => (e(i = /* @__PURE__ */ new Date(+i)), i), o.ceil = (i) => (e(i = new Date(i - 1)), t(i, 1), e(i), i), o.round = (i) => {
2940
- const a = o(i), s = o.ceil(i);
2941
- return i - a < s - i ? a : s;
2942
- }, o.offset = (i, a) => (t(i = /* @__PURE__ */ new Date(+i), a == null ? 1 : Math.floor(a)), i), o.range = (i, a, s) => {
2943
- const l = [];
2944
- if (i = o.ceil(i), s = s == null ? 1 : Math.floor(s), !(i < a && s > 0)) return l;
2945
- let u;
2946
- do
2947
- l.push(u = /* @__PURE__ */ new Date(+i)), t(i, s), e(i);
2948
- while (u < i && i < a);
2949
- return l;
2950
- }, o.filter = (i) => G((a) => {
2951
- if (a >= a) for (; e(a), !i(a); ) a.setTime(a - 1);
2952
- }, (a, s) => {
2953
- if (a >= a) if (s < 0) for (; ++s <= 0; ) for (; t(a, -1), !i(a); ) ;
2954
- else for (; --s >= 0; ) for (; t(a, 1), !i(a); ) ;
2955
- }), n && (o.count = (i, a) => (Gn.setTime(+i), qn.setTime(+a), e(Gn), e(qn), Math.floor(n(Gn, qn))), o.every = (i) => (i = Math.floor(i), isFinite(i) && i > 0 ? i > 1 ? o.filter(r ? (a) => r(a) % i === 0 : (a) => o.count(0, a) % i === 0) : o : null)), o;
2956
- }
2957
- const Qt = G(() => {
2958
- }, (e, t) => {
2959
- e.setTime(+e + t);
2960
- }, (e, t) => t - e);
2961
- Qt.every = (e) => (e = Math.floor(e), isFinite(e) && e > 0 ? e > 1 ? G((t) => {
2962
- t.setTime(Math.floor(t / e) * e);
2963
- }, (t, n) => {
2964
- t.setTime(+t + n * e);
2965
- }, (t, n) => (n - t) / e) : Qt : null), Qt.range;
2966
- const Tt = 1e3, Te = 6e4, Nt = 36e5, Et = 864e5, Ir = 6048e5, Pc = 2592e6, Xn = 31536e6, Ue = G((e) => {
2967
- e.setTime(e - e.getMilliseconds());
2968
- }, (e, t) => {
2969
- e.setTime(+e + t * Tt);
2970
- }, (e, t) => (t - e) / Tt, (e) => e.getUTCSeconds());
2971
- Ue.range;
2972
- const Hr = G((e) => {
2973
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * Tt);
2974
- }, (e, t) => {
2975
- e.setTime(+e + t * Te);
2976
- }, (e, t) => (t - e) / Te, (e) => e.getMinutes());
2977
- Hr.range;
2978
- const Lr = G((e) => {
2979
- e.setUTCSeconds(0, 0);
2980
- }, (e, t) => {
2981
- e.setTime(+e + t * Te);
2982
- }, (e, t) => (t - e) / Te, (e) => e.getUTCMinutes());
2983
- Lr.range;
2984
- const Br = G((e) => {
2985
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * Tt - e.getMinutes() * Te);
2986
- }, (e, t) => {
2987
- e.setTime(+e + t * Nt);
2988
- }, (e, t) => (t - e) / Nt, (e) => e.getHours());
2989
- Br.range;
2990
- const Yr = G((e) => {
2991
- e.setUTCMinutes(0, 0, 0);
2992
- }, (e, t) => {
2993
- e.setTime(+e + t * Nt);
2994
- }, (e, t) => (t - e) / Nt, (e) => e.getUTCHours());
2995
- Yr.range;
2996
- const $t = G((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Te) / Et, (e) => e.getDate() - 1);
2997
- $t.range;
2998
- const Tn = G((e) => {
2999
- e.setUTCHours(0, 0, 0, 0);
3000
- }, (e, t) => {
3001
- e.setUTCDate(e.getUTCDate() + t);
3002
- }, (e, t) => (t - e) / Et, (e) => e.getUTCDate() - 1);
3003
- Tn.range;
3004
- const Ta = G((e) => {
3005
- e.setUTCHours(0, 0, 0, 0);
3006
- }, (e, t) => {
3007
- e.setUTCDate(e.getUTCDate() + t);
3008
- }, (e, t) => (t - e) / Et, (e) => Math.floor(e / Et));
3009
- function Ye(e) {
3010
- return G((t) => {
3011
- t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
3012
- }, (t, n) => {
3013
- t.setDate(t.getDate() + 7 * n);
3014
- }, (t, n) => (n - t - (n.getTimezoneOffset() - t.getTimezoneOffset()) * Te) / Ir);
3015
- }
3016
- Ta.range;
3017
- const Nn = Ye(0), yn = Ye(1), zc = Ye(2), Oc = Ye(3), rt = Ye(4), Fc = Ye(5), Uc = Ye(6);
3018
- function Re(e) {
3019
- return G((t) => {
3020
- t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
3021
- }, (t, n) => {
3022
- t.setUTCDate(t.getUTCDate() + 7 * n);
3023
- }, (t, n) => (n - t) / Ir);
3024
- }
3025
- Nn.range, yn.range, zc.range, Oc.range, rt.range, Fc.range, Uc.range;
3026
- const En = Re(0), bn = Re(1), Ic = Re(2), Hc = Re(3), ot = Re(4), Lc = Re(5), Bc = Re(6);
3027
- En.range, bn.range, Ic.range, Hc.range, ot.range, Lc.range, Bc.range;
3028
- const Rr = G((e) => {
3029
- e.setDate(1), e.setHours(0, 0, 0, 0);
3030
- }, (e, t) => {
3031
- e.setMonth(e.getMonth() + t);
3032
- }, (e, t) => t.getMonth() - e.getMonth() + 12 * (t.getFullYear() - e.getFullYear()), (e) => e.getMonth());
3033
- Rr.range;
3034
- const Wr = G((e) => {
3035
- e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
3036
- }, (e, t) => {
3037
- e.setUTCMonth(e.getUTCMonth() + t);
3038
- }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + 12 * (t.getUTCFullYear() - e.getUTCFullYear()), (e) => e.getUTCMonth());
3039
- Wr.range;
3040
- const _e = G((e) => {
3041
- e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
3042
- }, (e, t) => {
3043
- e.setFullYear(e.getFullYear() + t);
3044
- }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
3045
- _e.every = (e) => isFinite(e = Math.floor(e)) && e > 0 ? G((t) => {
3046
- t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
3047
- }, (t, n) => {
3048
- t.setFullYear(t.getFullYear() + n * e);
3049
- }) : null, _e.range;
3050
- const ke = G((e) => {
3051
- e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
3052
- }, (e, t) => {
3053
- e.setUTCFullYear(e.getUTCFullYear() + t);
3054
- }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
3055
- function Na(e, t, n, r, o, i) {
3056
- const a = [[Ue, 1, Tt], [Ue, 5, 5e3], [Ue, 15, 15e3], [Ue, 30, 3e4], [i, 1, Te], [i, 5, 3e5], [i, 15, 9e5], [i, 30, 18e5], [o, 1, Nt], [o, 3, 108e5], [o, 6, 216e5], [o, 12, 432e5], [r, 1, Et], [r, 2, 1728e5], [n, 1, Ir], [t, 1, Pc], [t, 3, 7776e6], [e, 1, Xn]];
3057
- function s(l, u, c) {
3058
- const h = Math.abs(u - l) / c, f = Sr(([, , p]) => p).right(a, h);
3059
- if (f === a.length) return e.every(or(l / Xn, u / Xn, c));
3060
- if (f === 0) return Qt.every(Math.max(or(l, u, c), 1));
3061
- const [d, g] = a[h / a[f - 1][2] < a[f][2] / h ? f - 1 : f];
3062
- return d.every(g);
3063
- }
3064
- return [function(l, u, c) {
3065
- const h = u < l;
3066
- h && ([l, u] = [u, l]);
3067
- const f = c && typeof c.range == "function" ? c : s(l, u, c), d = f ? f.range(l, +u + 1) : [];
3068
- return h ? d.reverse() : d;
3069
- }, s];
3070
- }
3071
- ke.every = (e) => isFinite(e = Math.floor(e)) && e > 0 ? G((t) => {
3072
- t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
3073
- }, (t, n) => {
3074
- t.setUTCFullYear(t.getUTCFullYear() + n * e);
3075
- }) : null, ke.range;
3076
- const [Yc, Rc] = Na(ke, Wr, En, Ta, Yr, Lr), [Wc, Gc] = Na(_e, Rr, Nn, $t, Br, Hr);
3077
- function Vn(e) {
3078
- if (0 <= e.y && e.y < 100) {
3079
- var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
3080
- return t.setFullYear(e.y), t;
3081
- }
3082
- return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
3083
- }
3084
- function Kn(e) {
3085
- if (0 <= e.y && e.y < 100) {
3086
- var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
3087
- return t.setUTCFullYear(e.y), t;
3088
- }
3089
- return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
3090
- }
3091
- function ct(e, t, n) {
3092
- return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 };
3093
- }
3094
- var ft, Ea, Da, ei = { "-": "", _: " ", 0: "0" }, X = /^\s*\d+/, qc = /^%/, Xc = /[\\^$*+?|[\]().{}]/g;
3095
- function z(e, t, n) {
3096
- var r = e < 0 ? "-" : "", o = (r ? -e : e) + "", i = o.length;
3097
- return r + (i < n ? new Array(n - i + 1).join(t) + o : o);
3098
- }
3099
- function Vc(e) {
3100
- return e.replace(Xc, "\\$&");
3101
- }
3102
- function ht(e) {
3103
- return new RegExp("^(?:" + e.map(Vc).join("|") + ")", "i");
3104
- }
3105
- function dt(e) {
3106
- return new Map(e.map((t, n) => [t.toLowerCase(), n]));
3107
- }
3108
- function Kc(e, t, n) {
3109
- var r = X.exec(t.slice(n, n + 1));
3110
- return r ? (e.w = +r[0], n + r[0].length) : -1;
3111
- }
3112
- function Zc(e, t, n) {
3113
- var r = X.exec(t.slice(n, n + 1));
3114
- return r ? (e.u = +r[0], n + r[0].length) : -1;
3115
- }
3116
- function Qc(e, t, n) {
3117
- var r = X.exec(t.slice(n, n + 2));
3118
- return r ? (e.U = +r[0], n + r[0].length) : -1;
3119
- }
3120
- function Jc(e, t, n) {
3121
- var r = X.exec(t.slice(n, n + 2));
3122
- return r ? (e.V = +r[0], n + r[0].length) : -1;
3123
- }
3124
- function ef(e, t, n) {
3125
- var r = X.exec(t.slice(n, n + 2));
3126
- return r ? (e.W = +r[0], n + r[0].length) : -1;
3127
- }
3128
- function ti(e, t, n) {
3129
- var r = X.exec(t.slice(n, n + 4));
3130
- return r ? (e.y = +r[0], n + r[0].length) : -1;
3131
- }
3132
- function ni(e, t, n) {
3133
- var r = X.exec(t.slice(n, n + 2));
3134
- return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
3135
- }
3136
- function tf(e, t, n) {
3137
- var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
3138
- return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
3139
- }
3140
- function nf(e, t, n) {
3141
- var r = X.exec(t.slice(n, n + 1));
3142
- return r ? (e.q = 3 * r[0] - 3, n + r[0].length) : -1;
3143
- }
3144
- function rf(e, t, n) {
3145
- var r = X.exec(t.slice(n, n + 2));
3146
- return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
3147
- }
3148
- function ri(e, t, n) {
3149
- var r = X.exec(t.slice(n, n + 2));
3150
- return r ? (e.d = +r[0], n + r[0].length) : -1;
3151
- }
3152
- function of(e, t, n) {
3153
- var r = X.exec(t.slice(n, n + 3));
3154
- return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
3155
- }
3156
- function oi(e, t, n) {
3157
- var r = X.exec(t.slice(n, n + 2));
3158
- return r ? (e.H = +r[0], n + r[0].length) : -1;
3159
- }
3160
- function af(e, t, n) {
3161
- var r = X.exec(t.slice(n, n + 2));
3162
- return r ? (e.M = +r[0], n + r[0].length) : -1;
3163
- }
3164
- function sf(e, t, n) {
3165
- var r = X.exec(t.slice(n, n + 2));
3166
- return r ? (e.S = +r[0], n + r[0].length) : -1;
3167
- }
3168
- function lf(e, t, n) {
3169
- var r = X.exec(t.slice(n, n + 3));
3170
- return r ? (e.L = +r[0], n + r[0].length) : -1;
3171
- }
3172
- function uf(e, t, n) {
3173
- var r = X.exec(t.slice(n, n + 6));
3174
- return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
3175
- }
3176
- function cf(e, t, n) {
3177
- var r = qc.exec(t.slice(n, n + 1));
3178
- return r ? n + r[0].length : -1;
3179
- }
3180
- function ff(e, t, n) {
3181
- var r = X.exec(t.slice(n));
3182
- return r ? (e.Q = +r[0], n + r[0].length) : -1;
3183
- }
3184
- function hf(e, t, n) {
3185
- var r = X.exec(t.slice(n));
3186
- return r ? (e.s = +r[0], n + r[0].length) : -1;
3187
- }
3188
- function ii(e, t) {
3189
- return z(e.getDate(), t, 2);
3190
- }
3191
- function df(e, t) {
3192
- return z(e.getHours(), t, 2);
3193
- }
3194
- function pf(e, t) {
3195
- return z(e.getHours() % 12 || 12, t, 2);
3196
- }
3197
- function gf(e, t) {
3198
- return z(1 + $t.count(_e(e), e), t, 3);
3199
- }
3200
- function $a(e, t) {
3201
- return z(e.getMilliseconds(), t, 3);
3202
- }
3203
- function mf(e, t) {
3204
- return $a(e, t) + "000";
3205
- }
3206
- function vf(e, t) {
3207
- return z(e.getMonth() + 1, t, 2);
3208
- }
3209
- function yf(e, t) {
3210
- return z(e.getMinutes(), t, 2);
3211
- }
3212
- function bf(e, t) {
3213
- return z(e.getSeconds(), t, 2);
3214
- }
3215
- function wf(e) {
3216
- var t = e.getDay();
3217
- return t === 0 ? 7 : t;
3218
- }
3219
- function xf(e, t) {
3220
- return z(Nn.count(_e(e) - 1, e), t, 2);
3221
- }
3222
- function ja(e) {
3223
- var t = e.getDay();
3224
- return t >= 4 || t === 0 ? rt(e) : rt.ceil(e);
3225
- }
3226
- function _f(e, t) {
3227
- return e = ja(e), z(rt.count(_e(e), e) + (_e(e).getDay() === 4), t, 2);
3228
- }
3229
- function kf(e) {
3230
- return e.getDay();
3231
- }
3232
- function Cf(e, t) {
3233
- return z(yn.count(_e(e) - 1, e), t, 2);
3234
- }
3235
- function Mf(e, t) {
3236
- return z(e.getFullYear() % 100, t, 2);
3237
- }
3238
- function Sf(e, t) {
3239
- return z((e = ja(e)).getFullYear() % 100, t, 2);
3240
- }
3241
- function Af(e, t) {
3242
- return z(e.getFullYear() % 1e4, t, 4);
3243
- }
3244
- function Tf(e, t) {
3245
- var n = e.getDay();
3246
- return z((e = n >= 4 || n === 0 ? rt(e) : rt.ceil(e)).getFullYear() % 1e4, t, 4);
3247
- }
3248
- function Nf(e) {
3249
- var t = e.getTimezoneOffset();
3250
- return (t > 0 ? "-" : (t *= -1, "+")) + z(t / 60 | 0, "0", 2) + z(t % 60, "0", 2);
3251
- }
3252
- function ai(e, t) {
3253
- return z(e.getUTCDate(), t, 2);
3254
- }
3255
- function Ef(e, t) {
3256
- return z(e.getUTCHours(), t, 2);
3257
- }
3258
- function Df(e, t) {
3259
- return z(e.getUTCHours() % 12 || 12, t, 2);
3260
- }
3261
- function $f(e, t) {
3262
- return z(1 + Tn.count(ke(e), e), t, 3);
3263
- }
3264
- function Pa(e, t) {
3265
- return z(e.getUTCMilliseconds(), t, 3);
3266
- }
3267
- function jf(e, t) {
3268
- return Pa(e, t) + "000";
3269
- }
3270
- function Pf(e, t) {
3271
- return z(e.getUTCMonth() + 1, t, 2);
3272
- }
3273
- function zf(e, t) {
3274
- return z(e.getUTCMinutes(), t, 2);
3275
- }
3276
- function Of(e, t) {
3277
- return z(e.getUTCSeconds(), t, 2);
3278
- }
3279
- function Ff(e) {
3280
- var t = e.getUTCDay();
3281
- return t === 0 ? 7 : t;
3282
- }
3283
- function Uf(e, t) {
3284
- return z(En.count(ke(e) - 1, e), t, 2);
3285
- }
3286
- function za(e) {
3287
- var t = e.getUTCDay();
3288
- return t >= 4 || t === 0 ? ot(e) : ot.ceil(e);
3289
- }
3290
- function If(e, t) {
3291
- return e = za(e), z(ot.count(ke(e), e) + (ke(e).getUTCDay() === 4), t, 2);
3292
- }
3293
- function Hf(e) {
3294
- return e.getUTCDay();
3295
- }
3296
- function Lf(e, t) {
3297
- return z(bn.count(ke(e) - 1, e), t, 2);
3298
- }
3299
- function Bf(e, t) {
3300
- return z(e.getUTCFullYear() % 100, t, 2);
3301
- }
3302
- function Yf(e, t) {
3303
- return z((e = za(e)).getUTCFullYear() % 100, t, 2);
3304
- }
3305
- function Rf(e, t) {
3306
- return z(e.getUTCFullYear() % 1e4, t, 4);
3307
- }
3308
- function Wf(e, t) {
3309
- var n = e.getUTCDay();
3310
- return z((e = n >= 4 || n === 0 ? ot(e) : ot.ceil(e)).getUTCFullYear() % 1e4, t, 4);
3311
- }
3312
- function Gf() {
3313
- return "+0000";
3314
- }
3315
- function si() {
3316
- return "%";
3317
- }
3318
- function li(e) {
3319
- return +e;
3320
- }
3321
- function ui(e) {
3322
- return Math.floor(+e / 1e3);
3323
- }
3324
- function qf(e) {
3325
- return new Date(e);
3326
- }
3327
- function Xf(e) {
3328
- return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
3329
- }
3330
- function vr(e, t, n, r, o, i, a, s, l, u) {
3331
- var c = Ma(), h = c.invert, f = c.domain, d = u(".%L"), g = u(":%S"), p = u("%I:%M"), x = u("%I %p"), b = u("%a %d"), w = u("%b %d"), E = u("%B"), m = u("%Y");
3332
- function N(M) {
3333
- return (l(M) < M ? d : s(M) < M ? g : a(M) < M ? p : i(M) < M ? x : r(M) < M ? o(M) < M ? b : w : n(M) < M ? E : m)(M);
3334
- }
3335
- return c.invert = function(M) {
3336
- return new Date(h(M));
3337
- }, c.domain = function(M) {
3338
- return arguments.length ? f(Array.from(M, Xf)) : f().map(qf);
3339
- }, c.ticks = function(M) {
3340
- var k = f();
3341
- return e(k[0], k[k.length - 1], M ?? 10);
3342
- }, c.tickFormat = function(M, k) {
3343
- return k == null ? N : u(k);
3344
- }, c.nice = function(M) {
3345
- var k = f();
3346
- return M && typeof M.range == "function" || (M = t(k[0], k[k.length - 1], M ?? 10)), M ? f(Aa(k, M)) : c;
3347
- }, c.copy = function() {
3348
- return xt(c, vr(e, t, n, r, o, i, a, s, l, u));
3349
- }, c;
3350
- }
3351
- function ci(e, t) {
3352
- return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
3353
- }
3354
- function Vf() {
3355
- var e, t, n, r, o, i, a, s = 0, l = 0.5, u = 1, c = 1, h = ee, f = !1;
3356
- function d(p) {
3357
- return isNaN(p = +p) ? a : (p = 0.5 + ((p = +i(p)) - t) * (c * p < c * t ? r : o), h(f ? Math.max(0, Math.min(1, p)) : p));
3358
- }
3359
- function g(p) {
3360
- return function(x) {
3361
- var b, w, E;
3362
- return arguments.length ? ([b, w, E] = x, h = (function(m, N) {
3363
- N === void 0 && (N = m, m = nt);
3364
- for (var M = 0, k = N.length - 1, B = N[0], j = new Array(k < 0 ? 0 : k); M < k; ) j[M] = m(B, B = N[++M]);
3365
- return function(y) {
3366
- var T = Math.max(0, Math.min(k - 1, Math.floor(y *= k)));
3367
- return j[T](y - T);
3368
- };
3369
- })(p, [b, w, E]), d) : [h(0), h(0.5), h(1)];
3370
- };
3371
- }
3372
- return d.domain = function(p) {
3373
- return arguments.length ? ([s, l, u] = p, e = i(s = +s), t = i(l = +l), n = i(u = +u), r = e === t ? 0 : 0.5 / (t - e), o = t === n ? 0 : 0.5 / (n - t), c = t < e ? -1 : 1, d) : [s, l, u];
3374
- }, d.clamp = function(p) {
3375
- return arguments.length ? (f = !!p, d) : f;
3376
- }, d.interpolator = function(p) {
3377
- return arguments.length ? (h = p, d) : h;
3378
- }, d.range = g(nt), d.rangeRound = g(Or), d.unknown = function(p) {
3379
- return arguments.length ? (a = p, d) : a;
3380
- }, function(p) {
3381
- return i = p, e = p(s), t = p(l), n = p(u), r = e === t ? 0 : 0.5 / (t - e), o = t === n ? 0 : 0.5 / (n - t), c = t < e ? -1 : 1, d;
3382
- };
3383
- }
3384
- (function(e) {
3385
- ft = (function(t) {
3386
- var n = t.dateTime, r = t.date, o = t.time, i = t.periods, a = t.days, s = t.shortDays, l = t.months, u = t.shortMonths, c = ht(i), h = dt(i), f = ht(a), d = dt(a), g = ht(s), p = dt(s), x = ht(l), b = dt(l), w = ht(u), E = dt(u), m = { a: function(y) {
3387
- return s[y.getDay()];
3388
- }, A: function(y) {
3389
- return a[y.getDay()];
3390
- }, b: function(y) {
3391
- return u[y.getMonth()];
3392
- }, B: function(y) {
3393
- return l[y.getMonth()];
3394
- }, c: null, d: ii, e: ii, f: mf, g: Sf, G: Tf, H: df, I: pf, j: gf, L: $a, m: vf, M: yf, p: function(y) {
3395
- return i[+(y.getHours() >= 12)];
3396
- }, q: function(y) {
3397
- return 1 + ~~(y.getMonth() / 3);
3398
- }, Q: li, s: ui, S: bf, u: wf, U: xf, V: _f, w: kf, W: Cf, x: null, X: null, y: Mf, Y: Af, Z: Nf, "%": si }, N = { a: function(y) {
3399
- return s[y.getUTCDay()];
3400
- }, A: function(y) {
3401
- return a[y.getUTCDay()];
3402
- }, b: function(y) {
3403
- return u[y.getUTCMonth()];
3404
- }, B: function(y) {
3405
- return l[y.getUTCMonth()];
3406
- }, c: null, d: ai, e: ai, f: jf, g: Yf, G: Wf, H: Ef, I: Df, j: $f, L: Pa, m: Pf, M: zf, p: function(y) {
3407
- return i[+(y.getUTCHours() >= 12)];
3408
- }, q: function(y) {
3409
- return 1 + ~~(y.getUTCMonth() / 3);
3410
- }, Q: li, s: ui, S: Of, u: Ff, U: Uf, V: If, w: Hf, W: Lf, x: null, X: null, y: Bf, Y: Rf, Z: Gf, "%": si }, M = { a: function(y, T, D) {
3411
- var v = g.exec(T.slice(D));
3412
- return v ? (y.w = p.get(v[0].toLowerCase()), D + v[0].length) : -1;
3413
- }, A: function(y, T, D) {
3414
- var v = f.exec(T.slice(D));
3415
- return v ? (y.w = d.get(v[0].toLowerCase()), D + v[0].length) : -1;
3416
- }, b: function(y, T, D) {
3417
- var v = w.exec(T.slice(D));
3418
- return v ? (y.m = E.get(v[0].toLowerCase()), D + v[0].length) : -1;
3419
- }, B: function(y, T, D) {
3420
- var v = x.exec(T.slice(D));
3421
- return v ? (y.m = b.get(v[0].toLowerCase()), D + v[0].length) : -1;
3422
- }, c: function(y, T, D) {
3423
- return j(y, n, T, D);
3424
- }, d: ri, e: ri, f: uf, g: ni, G: ti, H: oi, I: oi, j: of, L: lf, m: rf, M: af, p: function(y, T, D) {
3425
- var v = c.exec(T.slice(D));
3426
- return v ? (y.p = h.get(v[0].toLowerCase()), D + v[0].length) : -1;
3427
- }, q: nf, Q: ff, s: hf, S: sf, u: Zc, U: Qc, V: Jc, w: Kc, W: ef, x: function(y, T, D) {
3428
- return j(y, r, T, D);
3429
- }, X: function(y, T, D) {
3430
- return j(y, o, T, D);
3431
- }, y: ni, Y: ti, Z: tf, "%": cf };
3432
- function k(y, T) {
3433
- return function(D) {
3434
- var v, _, C, Y = [], I = -1, P = 0, L = y.length;
3435
- for (D instanceof Date || (D = /* @__PURE__ */ new Date(+D)); ++I < L; ) y.charCodeAt(I) === 37 && (Y.push(y.slice(P, I)), (_ = ei[v = y.charAt(++I)]) != null ? v = y.charAt(++I) : _ = v === "e" ? " " : "0", (C = T[v]) && (v = C(D, _)), Y.push(v), P = I + 1);
3436
- return Y.push(y.slice(P, I)), Y.join("");
3437
- };
3438
- }
3439
- function B(y, T) {
3440
- return function(D) {
3441
- var v, _, C = ct(1900, void 0, 1);
3442
- if (j(C, y, D += "", 0) != D.length) return null;
3443
- if ("Q" in C) return new Date(C.Q);
3444
- if ("s" in C) return new Date(1e3 * C.s + ("L" in C ? C.L : 0));
3445
- if (T && !("Z" in C) && (C.Z = 0), "p" in C && (C.H = C.H % 12 + 12 * C.p), C.m === void 0 && (C.m = "q" in C ? C.q : 0), "V" in C) {
3446
- if (C.V < 1 || C.V > 53) return null;
3447
- "w" in C || (C.w = 1), "Z" in C ? (_ = (v = Kn(ct(C.y, 0, 1))).getUTCDay(), v = _ > 4 || _ === 0 ? bn.ceil(v) : bn(v), v = Tn.offset(v, 7 * (C.V - 1)), C.y = v.getUTCFullYear(), C.m = v.getUTCMonth(), C.d = v.getUTCDate() + (C.w + 6) % 7) : (_ = (v = Vn(ct(C.y, 0, 1))).getDay(), v = _ > 4 || _ === 0 ? yn.ceil(v) : yn(v), v = $t.offset(v, 7 * (C.V - 1)), C.y = v.getFullYear(), C.m = v.getMonth(), C.d = v.getDate() + (C.w + 6) % 7);
3448
- } else ("W" in C || "U" in C) && ("w" in C || (C.w = "u" in C ? C.u % 7 : "W" in C ? 1 : 0), _ = "Z" in C ? Kn(ct(C.y, 0, 1)).getUTCDay() : Vn(ct(C.y, 0, 1)).getDay(), C.m = 0, C.d = "W" in C ? (C.w + 6) % 7 + 7 * C.W - (_ + 5) % 7 : C.w + 7 * C.U - (_ + 6) % 7);
3449
- return "Z" in C ? (C.H += C.Z / 100 | 0, C.M += C.Z % 100, Kn(C)) : Vn(C);
3450
- };
3451
- }
3452
- function j(y, T, D, v) {
3453
- for (var _, C, Y = 0, I = T.length, P = D.length; Y < I; ) {
3454
- if (v >= P) return -1;
3455
- if ((_ = T.charCodeAt(Y++)) === 37) {
3456
- if (_ = T.charAt(Y++), !(C = M[_ in ei ? T.charAt(Y++) : _]) || (v = C(y, D, v)) < 0) return -1;
3457
- } else if (_ != D.charCodeAt(v++)) return -1;
3458
- }
3459
- return v;
3460
- }
3461
- return m.x = k(r, m), m.X = k(o, m), m.c = k(n, m), N.x = k(r, N), N.X = k(o, N), N.c = k(n, N), { format: function(y) {
3462
- var T = k(y += "", m);
3463
- return T.toString = function() {
3464
- return y;
3465
- }, T;
3466
- }, parse: function(y) {
3467
- var T = B(y += "", !1);
3468
- return T.toString = function() {
3469
- return y;
3470
- }, T;
3471
- }, utcFormat: function(y) {
3472
- var T = k(y += "", N);
3473
- return T.toString = function() {
3474
- return y;
3475
- }, T;
3476
- }, utcParse: function(y) {
3477
- var T = B(y += "", !0);
3478
- return T.toString = function() {
3479
- return y;
3480
- }, T;
3481
- } };
3482
- })(e), Ea = ft.format, ft.parse, Da = ft.utcFormat, ft.utcParse;
3483
- })({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", periods: ["AM", "PM"], days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] });
3484
- const fi = { scaleLinear: function e() {
3485
- var t = Ma();
3486
- return t.copy = function() {
3487
- return xt(t, e());
3488
- }, ue.apply(t, arguments), Pe(t);
3489
- }, scalePow: mr, scaleSqrt: function() {
3490
- return mr.apply(null, arguments).exponent(0.5);
3491
- }, scaleLog: function e() {
3492
- const t = Ec(gn()).domain([1, 10]);
3493
- return t.copy = () => xt(t, e()).base(t.base()), ue.apply(t, arguments), t;
3494
- }, scaleSymlog: function e() {
3495
- var t = (function(n) {
3496
- var r = 1, o = n(Zo(r), Qo(r));
3497
- return o.constant = function(i) {
3498
- return arguments.length ? n(Zo(r = +i), Qo(r)) : r;
3499
- }, Pe(o);
3500
- })(gn());
3501
- return t.copy = function() {
3502
- return xt(t, e()).constant(t.constant());
3503
- }, ue.apply(t, arguments);
3504
- }, scaleIdentity: function e(t) {
3505
- var n;
3506
- function r(o) {
3507
- return o == null || isNaN(o = +o) ? n : o;
3508
- }
3509
- return r.invert = r, r.domain = r.range = function(o) {
3510
- return arguments.length ? (t = Array.from(o, dr), r) : t.slice();
3511
- }, r.unknown = function(o) {
3512
- return arguments.length ? (n = o, r) : n;
3513
- }, r.copy = function() {
3514
- return e(t).unknown(n);
3515
- }, t = arguments.length ? Array.from(t, dr) : [0, 1], Pe(r);
3516
- }, scaleTime: function() {
3517
- return ue.apply(vr(Wc, Gc, _e, Rr, Nn, $t, Br, Hr, Ue, Ea).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
3518
- }, scaleUtc: function() {
3519
- return ue.apply(vr(Yc, Rc, ke, Wr, En, Tn, Yr, Lr, Ue, Da).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
3520
- }, scaleSequential: function e() {
3521
- var t = Pe((function() {
3522
- var n, r, o, i, a, s = 0, l = 1, u = ee, c = !1;
3523
- function h(d) {
3524
- return d == null || isNaN(d = +d) ? a : u(o === 0 ? 0.5 : (d = (i(d) - n) * o, c ? Math.max(0, Math.min(1, d)) : d));
3525
- }
3526
- function f(d) {
3527
- return function(g) {
3528
- var p, x;
3529
- return arguments.length ? ([p, x] = g, u = d(p, x), h) : [u(0), u(1)];
3530
- };
3531
- }
3532
- return h.domain = function(d) {
3533
- return arguments.length ? ([s, l] = d, n = i(s = +s), r = i(l = +l), o = n === r ? 0 : 1 / (r - n), h) : [s, l];
3534
- }, h.clamp = function(d) {
3535
- return arguments.length ? (c = !!d, h) : c;
3536
- }, h.interpolator = function(d) {
3537
- return arguments.length ? (u = d, h) : u;
3538
- }, h.range = f(nt), h.rangeRound = f(Or), h.unknown = function(d) {
3539
- return arguments.length ? (a = d, h) : a;
3540
- }, function(d) {
3541
- return i = d, n = d(s), r = d(l), o = n === r ? 0 : 1 / (r - n), h;
3542
- };
3543
- })()(ee));
3544
- return t.copy = function() {
3545
- return ci(t, e());
3546
- }, Ho.apply(t, arguments);
3547
- }, scaleDiverging: function e() {
3548
- var t = Pe(Vf()(ee));
3549
- return t.copy = function() {
3550
- return ci(t, e());
3551
- }, Ho.apply(t, arguments);
3552
- }, scaleQuantize: function e() {
3553
- var t, n = 0, r = 1, o = 1, i = [0.5], a = [0, 1];
3554
- function s(u) {
3555
- return u != null && u <= u ? a[bt(i, u, 0, o)] : t;
3556
- }
3557
- function l() {
3558
- var u = -1;
3559
- for (i = new Array(o); ++u < o; ) i[u] = ((u + 1) * r - (u - o) * n) / (o + 1);
3560
- return s;
3561
- }
3562
- return s.domain = function(u) {
3563
- return arguments.length ? ([n, r] = u, n = +n, r = +r, l()) : [n, r];
3564
- }, s.range = function(u) {
3565
- return arguments.length ? (o = (a = Array.from(u)).length - 1, l()) : a.slice();
3566
- }, s.invertExtent = function(u) {
3567
- var c = a.indexOf(u);
3568
- return c < 0 ? [NaN, NaN] : c < 1 ? [n, i[0]] : c >= o ? [i[o - 1], r] : [i[c - 1], i[c]];
3569
- }, s.unknown = function(u) {
3570
- return arguments.length && (t = u), s;
3571
- }, s.thresholds = function() {
3572
- return i.slice();
3573
- }, s.copy = function() {
3574
- return e().domain([n, r]).range(a).unknown(t);
3575
- }, ue.apply(Pe(s), arguments);
3576
- }, scaleQuantile: function e() {
3577
- var t, n = [], r = [], o = [];
3578
- function i() {
3579
- var s = 0, l = Math.max(1, r.length);
3580
- for (o = new Array(l - 1); ++s < l; ) o[s - 1] = su(n, s / l);
3581
- return a;
3582
- }
3583
- function a(s) {
3584
- return s == null || isNaN(s = +s) ? t : r[bt(o, s)];
3585
- }
3586
- return a.invertExtent = function(s) {
3587
- var l = r.indexOf(s);
3588
- return l < 0 ? [NaN, NaN] : [l > 0 ? o[l - 1] : n[0], l < o.length ? o[l] : n[n.length - 1]];
3589
- }, a.domain = function(s) {
3590
- if (!arguments.length) return n.slice();
3591
- n = [];
3592
- for (let l of s) l == null || isNaN(l = +l) || n.push(l);
3593
- return n.sort(yt), i();
3594
- }, a.range = function(s) {
3595
- return arguments.length ? (r = Array.from(s), i()) : r.slice();
3596
- }, a.unknown = function(s) {
3597
- return arguments.length ? (t = s, a) : t;
3598
- }, a.quantiles = function() {
3599
- return o.slice();
3600
- }, a.copy = function() {
3601
- return e().domain(n).range(r).unknown(t);
3602
- }, ue.apply(a, arguments);
3603
- }, scaleThreshold: function e() {
3604
- var t, n = [0.5], r = [0, 1], o = 1;
3605
- function i(a) {
3606
- return a != null && a <= a ? r[bt(n, a, 0, o)] : t;
3607
- }
3608
- return i.domain = function(a) {
3609
- return arguments.length ? (n = Array.from(a), o = Math.min(n.length, r.length - 1), i) : n.slice();
3610
- }, i.range = function(a) {
3611
- return arguments.length ? (r = Array.from(a), o = Math.min(n.length, r.length - 1), i) : r.slice();
3612
- }, i.invertExtent = function(a) {
3613
- var s = r.indexOf(a);
3614
- return [n[s - 1], n[s]];
3615
- }, i.unknown = function(a) {
3616
- return arguments.length ? (t = a, i) : t;
3617
- }, i.copy = function() {
3618
- return e().domain(n).range(r).unknown(t);
3619
- }, ue.apply(i, arguments);
3620
- }, scaleOrdinal: Fr, scaleBand: hr, scalePoint: function() {
3621
- return Ca(hr.apply(null, arguments).paddingInner(1));
3622
- } };
3623
- var he, hi;
3624
- (hi = he || (he = {})).X = "x", hi.Y = "y";
3625
- const Oa = { duration: 600, events: {}, attributes: {} };
3626
- class Kf {
3627
- constructor(t = vt.SVG) {
3628
- var n, r;
3629
- this.type = vt.SVG, this.datamodel = new ka(), this.sizing = tr.Fit, this.events = {}, this._defaultConfig = Oa, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._containerMargin = { top: 0, bottom: 0, left: 0, right: 0 }, this._setUpComponentEventsThrottled = un(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = un(this._setCustomAttributes, 500), t === vt.SVG ? this.element = document.createElementNS("http://www.w3.org/2000/svg", "g") : this.element = document.createElement("div"), this.uid = zu(), this.g = Rt(this.element);
3630
- const o = (r = (n = this.constructor) === null || n === void 0 ? void 0 : n.selectors) === null || r === void 0 ? void 0 : r.root;
3631
- o && this.g.attr("class", o);
3632
- }
3633
- setContainerMargin(t) {
3634
- this._containerMargin = t;
3635
- }
3636
- setConfig(t) {
3637
- this.prevConfig = this.config, this.config = Tr(this._defaultConfig, t);
3638
- }
3639
- setData(t) {
3640
- this.datamodel.data = t;
3641
- }
3642
- setSize(t, n, r, o) {
3643
- isFinite(t) && (this._width = t), isFinite(n) && (this._height = n), isFinite(r) && (this._containerWidth = r), isFinite(o) && (this._containerHeight = o);
3644
- }
3645
- render(t = this.config.duration) {
3646
- this._render(t);
3647
- const n = "animating";
3648
- t && (this.g.attr(n, ""), this.g.transition(n).duration(t).on("end interrupt", () => {
3649
- this.g.attr(n, null);
3650
- })), this._setUpComponentEventsThrottled(), this._setCustomAttributesThrottled();
3651
- }
3652
- get bleed() {
3653
- return { top: 0, bottom: 0, left: 0, right: 0 };
3654
- }
3655
- _render(t = this.config.duration) {
3656
- }
3657
- _setCustomAttributes() {
3658
- const t = this.config.attributes;
3659
- Object.keys(t).forEach((n) => {
3660
- Object.keys(t[n]).forEach((r) => {
3661
- this.g.selectAll(`.${n}`).attr(r, t[n][r]);
3662
- });
3663
- });
3664
- }
3665
- _setUpComponentEvents() {
3666
- this._bindEvents(this.events), this._bindEvents(this.config.events, ".user");
3667
- }
3668
- _bindEvents(t = this.events, n = "") {
3669
- Object.keys(t).forEach((r) => {
3670
- Object.keys(t[r]).forEach((o) => {
3671
- const i = this.g.selectAll(`.${r}`);
3672
- i.on(o + n, (a, s) => {
3673
- const l = i.nodes(), u = l.indexOf(a.currentTarget), c = t[r][o];
3674
- return c?.(s, a, u, l);
3675
- });
3676
- });
3677
- });
3678
- }
3679
- destroy() {
3680
- var t;
3681
- (t = this.g) === null || t === void 0 || t.remove(), this.element = void 0;
3682
- }
3683
- isDestroyed() {
3684
- return !this.element;
3685
- }
3686
- }
3687
- class Zf extends ka {
3688
- constructor(t) {
3689
- super(t);
3690
- }
3691
- get data() {
3692
- var t;
3693
- return (t = this._data) !== null && t !== void 0 ? t : [];
3694
- }
3695
- set data(t) {
3696
- Array.isArray(t) && (this._data = t);
3697
- }
3698
- }
3699
- const Fa = Object.assign(Object.assign({}, Oa), { x: void 0, y: void 0, id: (e, t) => {
3700
- var n;
3701
- return (n = e.id) !== null && n !== void 0 ? n : `${t}`;
3702
- }, color: (e) => e.color, xScale: void 0, yScale: void 0, excludeFromDomainCalculation: !1 });
3703
- class Qf extends Kf {
3704
- constructor() {
3705
- super(...arguments), this.datamodel = new Zf(), this.clippable = !0, this.stacked = !1, this._defaultConfig = Fa, this._xScale = fi.scaleLinear(), this._yScale = fi.scaleLinear();
3706
- }
3707
- get xScale() {
3708
- return this.config.xScale || this._xScale;
3709
- }
3710
- get yScale() {
3711
- return this.config.yScale || this._yScale;
3712
- }
3713
- setConfig(t) {
3714
- var n, r;
3715
- !((n = this.config) === null || n === void 0) && n.xScale && (t.xScale = this.config.xScale), !((r = this.config) === null || r === void 0) && r.yScale && (t.yScale = this.config.yScale), super.setConfig(t);
3716
- }
3717
- setScaleDomain(t, n) {
3718
- var r, o;
3719
- t === he.X && ((r = this._xScale) === null || r === void 0 || r.domain(n)), t === he.Y && ((o = this._yScale) === null || o === void 0 || o.domain(n));
3720
- }
3721
- setScaleRange(t, n) {
3722
- var r, o;
3723
- t === he.X && ((r = this._xScale) === null || r === void 0 || r.range(n)), t === he.Y && ((o = this._yScale) === null || o === void 0 || o.range(n));
3724
- }
3725
- setScale(t, n) {
3726
- n && t === he.X && (this._xScale = n), n && t === he.Y && (this._yScale = n);
3727
- }
3728
- getDataExtent(t, n) {
3729
- const { config: r, datamodel: o } = this;
3730
- switch (t) {
3731
- case he.X:
3732
- return this.getXDataExtent();
3733
- case he.Y:
3734
- return this.getYDataExtent(n);
3735
- default:
3736
- return Fn(o.data, r[t]);
3737
- }
3738
- }
3739
- getXDataExtent() {
3740
- const { config: t, datamodel: n } = this;
3741
- return Fn(n.data, t.x);
3742
- }
3743
- getYDataExtent(t) {
3744
- const { config: n, datamodel: r } = this, o = this.xScale.domain();
3745
- return Fn(t ? hu(r.data, o, n.x, !0) : r.data, ...kn(n.y) ? n.y : [n.y]);
3746
- }
3747
- }
3748
- var F, We, di, pi, gi, Zn, mi, vi;
3749
- (We = F || (F = {})).Top = "top", We.Bottom = "bottom", We.Left = "left", We.Right = "right", We.Center = "center", We.Auto = "auto", (pi = di || (di = {})).Absolute = "absolute", pi.Fixed = "fixed", (Zn = gi || (gi = {})).Inside = "inside", Zn.Outside = "outside", Zn.Center = "center", (vi = mi || (mi = {})).Horizontal = "horizontal", vi.Vertical = "vertical";
3750
- const Jf = { components: [], container: void 0, followCursor: !0, allowHover: !1, horizontalPlacement: F.Auto, horizontalShift: 0, verticalPlacement: F.Top, verticalShift: 0, attributes: {}, triggers: {}, className: void 0, showDelay: void 0, hideDelay: void 0 }, Dn = De`
3751
- label: tooltip;
3752
- display: inline-block;
3753
- left: 0;
3754
- bottom: 0;
3755
- min-width: max-content;
3756
- position: absolute;
3757
- opacity: 0;
3758
- transition: opacity;
3759
- transition-duration: var(--vis-tooltip-transition-duration);
3760
- z-index: 999999;
3761
- padding: var(--vis-tooltip-padding);
3762
- color: var(--vis-tooltip-text-color);
3763
- border-radius: var(--vis-tooltip-border-radius);
3764
- box-shadow: var(--vis-tooltip-box-shadow);
3765
- border: solid 1px var(--vis-tooltip-border-color);
3766
- background-color: var(--vis-tooltip-background-color);
3767
- backdrop-filter: var(--vis-tooltip-backdrop-filter);
3768
- `, eh = Dn, th = ha`
3769
- :root {
3770
- --vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
3771
- --vis-tooltip-border-color: #e5e9f7;
3772
- --vis-tooltip-text-color: #000;
3773
- --vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35);
3774
- --vis-tooltip-backdrop-filter: none;
3775
- --vis-tooltip-padding: 10px 15px;
3776
- --vis-tooltip-border-radius: 5px;
3777
- --vis-tooltip-transition-duration: 300ms;
3778
- --vis-tooltip-box-shadow: none;
3779
-
3780
- --vis-dark-tooltip-background-color: rgba(30,30,30, 0.95);
3781
- --vis-dark-tooltip-text-color: #e5e9f7;
3782
- --vis-dark-tooltip-border-color: var(--vis-color-grey);
3783
- --vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
3784
- }
3785
-
3786
- body.theme-dark ${`.${Dn}`} {
3787
- --vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
3788
- --vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
3789
- --vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
3790
- --vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color);
3791
- }
3792
-
3793
- body.theme-dark {
3794
- --vis-tooltip-background-color: rgba(30,30,30, 0.95);
3795
- --vis-tooltip-text-color: #e5e9f7;
3796
- --vis-tooltip-border-color: var(--vis-color-grey);
3797
- --vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
3798
- }
3799
- `, Ua = De`
3800
- bottom: unset;
3801
- position: fixed;
3802
- `, Jt = De`
3803
- opacity: 1;
3804
- `, en = De`
3805
- display: none;
3806
- `, Ia = De`
3807
- label: non-interactive;
3808
- pointer-events: none;
3809
- user-select: none;
3810
- `, nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, hidden: en, nonInteractive: Ia, positionFixed: Ua, root: Dn, show: Jt, tooltip: eh, variables: th }, Symbol.toStringTag, { value: "Module" }));
3811
- class Ha {
3812
- constructor(t = {}) {
3813
- this._defaultConfig = Jf, this.config = this._defaultConfig, this._setUpEventsThrottled = un(this._setUpEvents, 500), this._setContainerPositionThrottled = un(this._setContainerPosition, 500), this._isShown = !1, this.element = document.createElement("div"), this.div = Rt(this.element).attr("class", Dn).classed(Jt, !1).classed(en, !0), this.setConfig(t), this.components = this.config.components, this._mutationObserver = new MutationObserver(() => {
3814
- this._isShown && (!this.config.followCursor && this._hoveredElement ? this.placeByElement(this._hoveredElement) : this._position && this.place({ x: this._position[0], y: this._position[1] }));
3815
- }), this._mutationObserver.observe(this.div.node(), { childList: !0, subtree: !0 });
3816
- }
3817
- setConfig(t) {
3818
- var n;
3819
- this.prevConfig = this.config, this.config = Tr(this._defaultConfig, t), this.prevConfig.horizontalPlacement !== this.config.horizontalPlacement && this.overrideHorizontalPlacement(void 0), this.config.container && this.config.container !== ((n = this.prevConfig) === null || n === void 0 ? void 0 : n.container) && this.setContainer(this.config.container), this._setUpAttributes();
3820
- }
3821
- setContainer(t) {
3822
- var n;
3823
- (n = this.element.parentNode) === null || n === void 0 || n.removeChild(this.element), this._container = t, this._container.appendChild(this.element), this._setContainerPositionThrottled();
3824
- }
3825
- getContainer() {
3826
- return this._container;
3827
- }
3828
- hasContainer() {
3829
- return !!this._container && this._container.isConnected;
3830
- }
3831
- setComponents(t) {
3832
- this.components = t;
3833
- }
3834
- update() {
3835
- this._container && this._setUpEventsThrottled();
3836
- }
3837
- show(t, n) {
3838
- this.render(t), this.place(n);
3839
- }
3840
- _hide() {
3841
- this.div.classed(Jt, !1).on("transitionend", () => {
3842
- this.div.classed(en, !this._isShown);
3843
- }), this._isShown = !1;
3844
- }
3845
- hide() {
3846
- window.clearTimeout(this._showDelayTimeoutId), this.config.hideDelay ? (window.clearTimeout(this._hideDelayTimeoutId), this._hideDelayTimeoutId = setTimeout(() => this._hide(), this.config.hideDelay)) : this._hide();
3847
- }
3848
- _display() {
3849
- window.clearTimeout(this._hideDelayTimeoutId), this.div.classed(en, !1).classed(Jt, !0), this._isShown = !0;
3850
- }
3851
- display() {
3852
- this._isShown || (this.config.showDelay ? (window.clearTimeout(this._showDelayTimeoutId), this._showDelayTimeoutId = setTimeout(() => {
3853
- this._display(), this.place({ x: this._position[0], y: this._position[1] });
3854
- }, this.config.showDelay)) : this._display());
3855
- }
3856
- place(t) {
3857
- if (this._position = [t.x, t.y], !this.hasContainer()) return void console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");
3858
- const { config: n } = this, r = this.element.offsetWidth, o = this.element.offsetHeight, i = this._overriddenHorizontalPlacement || (n.horizontalPlacement === F.Auto ? F.Center : n.horizontalPlacement), a = n.verticalPlacement === F.Auto ? t.y - o < 0 ? F.Bottom : F.Top : n.verticalPlacement, s = i === F.Left ? -r - 5 - n.horizontalShift : i === F.Center ? -r / 2 : 5 + n.horizontalShift, l = a === F.Bottom ? 5 + n.verticalShift : a === F.Center ? -o / 2 : -5 - n.verticalShift - o, [u, c] = this._constraintPosToContainer(t.x + s, t.y + l, r, o);
3859
- this._applyPosition(u, c, o);
3860
- }
3861
- placeByElement(t) {
3862
- const { config: n } = this;
3863
- this._hoveredElement = t;
3864
- const r = this.element.offsetWidth, o = this.element.offsetHeight, i = this.isContainerBody(), a = i ? window.innerWidth : this._container.scrollWidth, s = t.getBoundingClientRect(), l = i ? [s.x, s.y] : on({ clientX: s.x, clientY: s.y, pageX: s.x, pageY: s.y }, this._container), u = this._overriddenHorizontalPlacement || (n.horizontalPlacement === F.Auto ? l[0] - r < 0 ? F.Right : l[0] + r > a ? F.Left : F.Center : n.horizontalPlacement);
3865
- let c = 0;
3866
- switch (u) {
3867
- case F.Left:
3868
- c = -r - 5 - n.horizontalShift;
3869
- break;
3870
- case F.Right:
3871
- c = s.width + 5 + n.horizontalShift;
3872
- break;
3873
- case F.Center:
3874
- default:
3875
- c = (-r + s.width) / 2;
3876
- }
3877
- let h = -o;
3878
- switch (n.verticalPlacement === F.Auto ? u !== F.Center ? F.Center : l[1] - o < 0 ? F.Bottom : F.Top : n.verticalPlacement) {
3879
- case F.Center:
3880
- h += (o + s.height) / 2;
3881
- break;
3882
- case F.Bottom:
3883
- h += o + s.height + 5 + n.verticalShift;
3884
- break;
3885
- case F.Top:
3886
- default:
3887
- h += -5 - n.verticalShift;
3888
- }
3889
- const [f, d] = this._constraintPosToContainer(l[0] + c, l[1] + h, r, o);
3890
- this._applyPosition(f, d, o);
3891
- }
3892
- isContainerBody() {
3893
- return this._container === document.body;
3894
- }
3895
- overrideHorizontalPlacement(t) {
3896
- this._overriddenHorizontalPlacement = t;
3897
- }
3898
- render(t) {
3899
- var n;
3900
- const { config: r, prevConfig: o } = this;
3901
- t instanceof HTMLElement ? this.div.select(":first-child").node() !== t && this.div.html("").append(() => t) : t !== null && this.div.html(t || ""), this.div.classed((n = r.className) !== null && n !== void 0 ? n : "", !!r.className).classed(Ia, !r.allowHover), o?.className && o.className !== r.className && this.div.classed(o.className, !1), this.display();
3902
- }
3903
- _applyPosition(t, n, r) {
3904
- const o = this.isContainerBody(), i = o ? window.innerHeight : this._container.scrollHeight;
3905
- this.div.classed(Ua, o).style("top", o ? `${n}px` : "unset").style("bottom", o ? "unset" : i - n - r + "px").style("left", `${t}px`);
3906
- }
3907
- _constraintPosToContainer(t, n, r, o) {
3908
- const i = this.isContainerBody(), a = i ? window.innerHeight : this._container.scrollHeight, s = i ? window.innerWidth : this._container.scrollWidth;
3909
- return [s < r ? 0 : t > s - r - 10 ? s - r - 10 : t < 10 ? 10 : t, a < o ? 0 : n > a - o - 10 ? a - o - 10 : n < 10 ? 10 : n];
3910
- }
3911
- _setContainerPosition() {
3912
- var t;
3913
- this._container !== document.body && ((t = getComputedStyle(this._container)) === null || t === void 0 ? void 0 : t.position) === "static" && (this._container.style.position = "relative");
3914
- }
3915
- _setUpEvents() {
3916
- const { config: t } = this;
3917
- this.components.forEach((n) => {
3918
- const r = Rt(n.element);
3919
- r.on("mousemove.tooltip", (o) => {
3920
- const { config: i } = this, a = o.composedPath && o.composedPath() || o.path || [o.target];
3921
- for (const s of Object.keys(i.triggers)) {
3922
- const l = i.triggers[s];
3923
- if (!l) continue;
3924
- const u = r.selectAll(`.${s}`).nodes();
3925
- for (const c of a) {
3926
- if (c === r.node()) break;
3927
- if (c.classList.contains(s)) {
3928
- const h = u.indexOf(c), f = l(Rt(c).datum(), h, u), [d, g] = this.isContainerBody() ? [o.clientX, o.clientY] : on(o, this._container);
3929
- return f === null ? this.hide() : (this.render(f), i.followCursor ? this.place({ x: d, y: g }) : this.placeByElement(c)), void o.stopPropagation();
3930
- }
3931
- }
3932
- }
3933
- this._isShown && this.hide();
3934
- }).on("mouseleave.tooltip", (o) => {
3935
- o.stopPropagation(), this.hide();
3936
- });
3937
- }), t.allowHover ? this.div.on("mouseenter.tooltip", this._display.bind(this)).on("mouseleave.tooltip", this.hide.bind(this)) : this.div.on("mouseenter.tooltip", null).on("mouseleave.tooltip", null);
3938
- }
3939
- _setUpAttributes() {
3940
- const t = this.config.attributes;
3941
- t && Object.keys(t).forEach((n) => {
3942
- this.div.attr(n, t[n]);
3943
- });
3944
- }
3945
- destroy() {
3946
- var t;
3947
- this._mutationObserver.disconnect(), window.clearTimeout(this._hideDelayTimeoutId), window.clearTimeout(this._showDelayTimeoutId), (t = this.div) === null || t === void 0 || t.remove();
3948
- }
3949
- }
3950
- function Bt(e, t, n, r) {
3951
- return Array.isArray(t) && isFinite(n) ? t[n % t.length] : uu(e, t, n) || (Ze(n) ? `var(${Ru(n)})` : null);
3952
- }
3953
- Ha.selectors = nh;
3954
- const rh = Object.assign(Object.assign({}, Fa), { yStacked: void 0, baseline: null, duration: 100, tooltip: void 0, template: (e, t, n, r) => "", hideWhenFarFromPointer: !0, hideWhenFarFromPointerDistance: 100, snapToData: !0, getCircles: void 0, color: void 0, strokeColor: void 0, strokeWidth: void 0, onCrosshairMove: void 0, forceShowAt: void 0, skipRangeCheck: !1 }), oh = ha`
3955
- :root {
3956
- --vis-crosshair-line-stroke-color: #888;
3957
- --vis-crosshair-line-stroke-width: 1px;
3958
- --vis-crosshair-line-stroke-opacity: 1;
3959
- --vis-crosshair-circle-stroke-color: #fff;
3960
- --vis-crosshair-circle-stroke-width: 1px;
3961
- --vis-crosshair-circle-stroke-opacity: 0.75;
3962
- }
3963
- `, ih = De`
3964
- label: crosshair-component;
3965
- `, La = De`
3966
- stroke: var(--vis-crosshair-line-stroke-color);
3967
- stroke-width: var(--vis-crosshair-line-stroke-width);
3968
- stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
3969
- pointer-events: none;
3970
- `, Ba = De`
3971
- stroke: var(--vis-crosshair-circle-stroke-color);
3972
- stroke-width: var(--vis-crosshair-circle-stroke-width);
3973
- stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
3974
- pointer-events: none;
3975
- `, ah = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, circle: Ba, globalStyles: oh, line: La, root: ih }, Symbol.toStringTag, { value: "Module" }));
3976
- class Ya extends Qf {
3977
- constructor(t) {
3978
- super(), this.clippable = !0, this._defaultConfig = rh, this.config = this._defaultConfig, this._xPx = void 0, this._yPx = void 0, this._mouseEvent = void 0, this._animFrameId = null, this._accessors = { x: void 0, y: void 0, yStacked: void 0, baseline: void 0 }, t && this.setConfig(t), this.g.style("opacity", 0), this.line = this.g.append("line").attr("class", La);
3979
- }
3980
- set accessors(t) {
3981
- this._accessors = t;
3982
- }
3983
- get accessors() {
3984
- var t;
3985
- const { config: n } = this, r = !!(n.x || n.y || n.yStacked), o = r ? n.x : this._accessors.x, i = r ? n.y : this._accessors.y;
3986
- return { x: o, y: i ? kn(i) ? i : [i] : void 0, yStacked: r ? n.yStacked : this._accessors.yStacked, baseline: (t = n.baseline) !== null && t !== void 0 ? t : this._accessors.baseline };
3987
- }
3988
- _isContainerInViewport() {
3989
- var t;
3990
- if (!(!((t = this.container) === null || t === void 0) && t.node())) return !1;
3991
- const n = this.container.node().getBoundingClientRect(), r = window.innerWidth || document.documentElement.clientWidth, o = window.innerHeight || document.documentElement.clientHeight, i = Math.max(0, Math.min(n.right, r) - Math.max(n.left, 0)), a = Math.max(0, Math.min(n.bottom, o) - Math.max(n.top, 0)), s = n.width * n.height;
3992
- return s > 0 && i * a / s >= 0.35;
3993
- }
3994
- setContainer(t) {
3995
- this.container !== t && (this.container = t, this.container.on("mousemove.crosshair", this._onMouseMove.bind(this)), this.container.on("mouseout.crosshair", this._onMouseOut.bind(this)), this.container.on("wheel.crosshair", this._onWheel.bind(this)));
3996
- }
3997
- _render(t) {
3998
- var n, r, o, i, a;
3999
- const { config: s, datamodel: l } = this, u = Ze(t) ? t : s.duration, c = s.forceShowAt !== void 0, h = c ? this.xScale(s.forceShowAt) : this._xPx, f = this.xScale.invert(h), d = !((n = l.data) === null || n === void 0) && n.length && this.accessors.x ? l.data.indexOf(cn(l.data, f, this.accessors.x, we.Left)) : void 0;
4000
- let g, p;
4001
- s.snapToData && (this.accessors.y || this.accessors.yStacked || !(!((r = l.data) === null || r === void 0) && r.length) || console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"), !(!((o = l.data) === null || o === void 0) && o.length) && this._mouseEvent && console.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"), g = cn(l.data, f, this.accessors.x), p = l.data.indexOf(g));
4002
- const x = this.xScale.range(), b = this.yScale.range(), w = s.snapToData && g ? ho(Math.round(this.xScale(q(g, this.accessors.x, p))), 0, this._width) : ho(h, x[0], x[1]), E = h >= x[0] && h <= x[1], m = this._yPx >= Math.min(b[0], b[1]) && this._yPx <= Math.max(b[0], b[1]);
4003
- let N = s.skipRangeCheck ? !!this._xPx : this._xPx ? E && m : E;
4004
- s.hideWhenFarFromPointer && Math.abs(w - +h) >= s.hideWhenFarFromPointerDistance && (N = !1);
4005
- const M = (i = s.tooltip) !== null && i !== void 0 ? i : this.tooltip;
4006
- if (N && M && this._isContainerInViewport()) {
4007
- const j = M.getContainer() || this.container.node(), y = M.isContainerBody(), T = this.accessors.x ? q(g, this.accessors.x, p) : void 0;
4008
- if (c) {
4009
- const D = this.container.node().getBoundingClientRect(), v = [(y ? h + D.left : h) + this._containerMargin.left, this._height / 2 + (y ? D.top : 0)];
4010
- this._showTooltip(g, T, v, d);
4011
- } else if (this._mouseEvent) {
4012
- const D = y ? [this._mouseEvent.clientX, this._mouseEvent.clientY] : on(this._mouseEvent, j);
4013
- this._showTooltip(g, T, D, d);
4014
- }
4015
- } else this._hideTooltip();
4016
- if (this._mouseEvent && ((a = s.onCrosshairMove) === null || a === void 0 || a.call(s, N ? this.xScale.invert(this._xPx) : void 0, g, p, this._mouseEvent), this._mouseEvent = void 0), Rn(this.g, u).style("opacity", N ? 1 : 0), !isFinite(h)) return;
4017
- this.line.attr("y1", 0).attr("y2", this._height), Rn(this.line, u, Io).attr("x1", w).attr("x2", w);
4018
- const k = Ar(s.getCircles) ? s.getCircles(f, l.data, this.yScale, d) : this.getCircleData(g, p), B = this.g.selectAll("circle").data(k, (j, y) => {
4019
- var T;
4020
- return (T = j.id) !== null && T !== void 0 ? T : y;
4021
- });
4022
- Rn(B.enter().append("circle").attr("class", Ba).attr("r", 0).attr("cx", w).attr("cy", (j) => j.y).style("fill", (j) => j.color).style("stroke", (j) => j.strokeColor).style("stroke-width", (j) => j.strokeWidth).merge(B), u, Io).attr("cx", w).attr("cy", (j) => j.y).attr("r", 4).style("opacity", (j) => j.opacity).style("fill", (j) => j.color).style("stroke", (j) => j.strokeColor).style("stroke-width", (j) => j.strokeWidth), B.exit().remove();
4023
- }
4024
- hide(t) {
4025
- window.cancelAnimationFrame(this._animFrameId), this._animFrameId = window.requestAnimationFrame(() => {
4026
- var n, r;
4027
- this._xPx = void 0, this._yPx = void 0, this._mouseEvent = void 0, (r = (n = this.config).onCrosshairMove) === null || r === void 0 || r.call(n, void 0, void 0, void 0, t), this._render();
4028
- });
4029
- }
4030
- _onMouseMove(t) {
4031
- var n;
4032
- const { datamodel: r, element: o } = this;
4033
- !this.accessors.x && (!((n = r.data) === null || n === void 0) && n.length) && console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");
4034
- const [i, a] = on(t, o);
4035
- this._xPx = i, this._yPx = a, this._mouseEvent = t, window.cancelAnimationFrame(this._animFrameId), this._animFrameId = window.requestAnimationFrame(() => {
4036
- this._render();
4037
- });
4038
- }
4039
- _onMouseOut(t) {
4040
- var n;
4041
- t && (!((n = this.container) === null || n === void 0) && n.node().contains(t.relatedTarget)) || this.hide(t);
4042
- }
4043
- _onWheel(t) {
4044
- this.hide(t);
4045
- }
4046
- _showTooltip(t, n, r, o) {
4047
- var i;
4048
- const { config: a, datamodel: s } = this, l = (i = a.tooltip) !== null && i !== void 0 ? i : this.tooltip;
4049
- if (!l || !r) return;
4050
- const [u, c] = r, h = a.template(t, n, s.data, o);
4051
- if (l.config.followCursor = !0, !l.config.horizontalPlacement || l.config.horizontalPlacement === F.Auto) {
4052
- const f = l.isContainerBody() ? u - this.container.node().getBoundingClientRect().left : u;
4053
- l.overrideHorizontalPlacement(f > this._containerWidth / 2 ? F.Left : F.Right);
4054
- }
4055
- h && l.show(h, { x: u, y: c });
4056
- }
4057
- _hideTooltip() {
4058
- var t;
4059
- const { config: n } = this, r = (t = n.tooltip) !== null && t !== void 0 ? t : this.tooltip;
4060
- r?.hide();
4061
- }
4062
- getYDataExtent() {
4063
- return [void 0, void 0];
4064
- }
4065
- getCircleData(t, n) {
4066
- var r, o;
4067
- const { config: i } = this;
4068
- if (i.snapToData && t) {
4069
- const a = (r = this.accessors.y) !== null && r !== void 0 ? r : [], s = (o = this.accessors.yStacked) !== null && o !== void 0 ? o : [], l = q(t, this.accessors.baseline, n) || 0, u = (function(h, f, ...d) {
4070
- const g = [];
4071
- let p = 0, x = 0;
4072
- for (const b of d) {
4073
- const w = q(h, b, f) || 0;
4074
- w >= 0 ? g.push(p += w) : g.push(x += w);
4075
- }
4076
- return g;
4077
- })(t, n, ...s).map((h, f) => ({ y: this.yScale(h + l), opacity: Ze(q(t, s[f], f)) ? 1 : 0, color: Bt(t, i.color, f), strokeColor: i.strokeColor ? Bt(t, i.strokeColor, f) : void 0, strokeWidth: i.strokeWidth ? q(t, i.strokeWidth, f) : void 0 })), c = a.map((h, f) => {
4078
- const d = q(t, h, n);
4079
- return { y: this.yScale(d), opacity: Ze(d) ? 1 : 0, color: Bt(t, i.color, u.length + f), strokeColor: i.strokeColor ? Bt(t, i.strokeColor, f) : void 0, strokeWidth: i.strokeWidth ? q(t, i.strokeWidth, f) : void 0 };
4080
- });
4081
- return u.concat(c);
4082
- }
4083
- return [];
4084
- }
4085
- }
4086
- Ya.selectors = ah;
4087
- const Oh = /* @__PURE__ */ Symbol("componentAccessorKey"), sh = /* @__PURE__ */ Symbol("tooltipAccessorKey"), lh = /* @__PURE__ */ Symbol("crosshairAccessorKey"), Fh = /* @__PURE__ */ Symbol("axisAccessorKey"), Uh = /* @__PURE__ */ Symbol("annotationsAccessorKey");
4088
- function Ra(e, t) {
4089
- return ir(e, t);
4090
- }
4091
- function Wa(e) {
4092
- const t = _r(), n = t.attrs;
4093
- return xe(() => {
4094
- const r = {}, o = t?.vnode.props ?? {};
4095
- return Object.keys(o).forEach((i) => {
4096
- r[Xr(i)] = e[Xr(i)];
4097
- }), { ...r, ...n };
4098
- });
4099
- }
4100
- const uh = { "data-vis-crosshair": "" }, ch = /* @__PURE__ */ Ne({ __name: "index", props: { data: {} }, setup(e, { expose: t }) {
4101
- const n = wn(lh), r = e, o = xe(() => n.data.value ?? r.data), i = Wa(r), a = xn();
4102
- return _n(() => {
4103
- xr(() => {
4104
- var s;
4105
- a.value = new Ya(i.value), (s = a.value) == null || s.setData(o.value), n.update(a.value);
4106
- });
4107
- }), xi(() => {
4108
- var s;
4109
- (s = a.value) == null || s.destroy(), n.destroy();
4110
- }), et(i, (s, l) => {
4111
- var u;
4112
- Ra(s, l) || (u = a.value) == null || u.setConfig(i.value);
4113
- }), et(o, () => {
4114
- var s;
4115
- (s = a.value) == null || s.setData(o.value);
4116
- }), t({ component: a }), (s, l) => (K(), Q("div", uh));
4117
- } }), fh = { "data-vis-tooltip": "" }, hh = /* @__PURE__ */ Ne({ __name: "index", props: { components: {}, container: {}, followCursor: { type: Boolean }, allowHover: { type: Boolean }, horizontalPlacement: {}, horizontalShift: {}, verticalPlacement: {}, verticalShift: {}, triggers: {}, attributes: {}, className: {}, hideDelay: {}, showDelay: {}, data: {} }, setup(e, { expose: t }) {
4118
- const n = wn(sh), r = Wa(e), o = xn();
4119
- return _n(() => {
4120
- xr(() => {
4121
- o.value = new Ha(r.value), n.update(o.value);
4122
- });
4123
- }), xi(() => {
4124
- var i;
4125
- (i = o.value) == null || i.destroy(), n.destroy();
4126
- }), et(r, (i, a) => {
4127
- var s;
4128
- Ra(i, a) || (s = o.value) == null || s.setConfig(r.value);
4129
- }), t({ component: o }), (i, a) => (K(), Q("div", fh));
4130
- } }), Ga = { light: "", dark: ".dark" }, [Gr, qa] = Mi("Chart"), Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ChartContainer: el, ChartCrosshair: ch, ChartLegendContent: tl, ChartTooltip: hh, ChartTooltipContent: ll, THEMES: Ga, componentToString: ms, provideChartContext: qa, useChart: Gr }, Symbol.toStringTag, { value: "Module" }));
4131
- export {
4132
- ch as $,
4133
- Mh as A,
4134
- ho as B,
4135
- Oh as C,
4136
- Rn as D,
4137
- el as E,
4138
- nt as F,
4139
- vh as G,
4140
- ka as H,
4141
- zu as I,
4142
- wh as J,
4143
- Fa as K,
4144
- gh as L,
4145
- sh as M,
4146
- Ra as N,
4147
- hh as O,
4148
- us as P,
4149
- bh as Q,
4150
- mh as R,
4151
- ss as S,
4152
- Uh as T,
4153
- Ih as U,
4154
- Zf as V,
4155
- cs as W,
4156
- Kf as X,
4157
- ph as Y,
4158
- tr as Z,
4159
- ir as _,
4160
- Ru as a,
4161
- Th as a0,
4162
- Ah as a1,
4163
- he as a2,
4164
- Qf as a3,
4165
- kn as a4,
4166
- uu as a5,
4167
- Rt as a6,
4168
- ta as a7,
4169
- F as a8,
4170
- va as a9,
4171
- $h as aa,
4172
- co as ab,
4173
- uo as ac,
4174
- hr as ad,
4175
- lu as ae,
4176
- Sh as af,
4177
- cu as ag,
4178
- fu as ah,
4179
- Fn as ai,
4180
- Eh as aj,
4181
- hu as ak,
4182
- Nh as al,
4183
- Tr as am,
4184
- Dh as an,
4185
- yh as ao,
4186
- jh as b,
4187
- Mi as c,
4188
- mi as d,
4189
- xh as e,
4190
- Oe as f,
4191
- ms as g,
4192
- ll as h,
4193
- is as i,
4194
- _h as j,
4195
- kh as k,
4196
- zh as l,
4197
- Ch as m,
4198
- Wa as n,
4199
- Yu as o,
4200
- q as p,
4201
- Oa as q,
4202
- Si as r,
4203
- Ph as s,
4204
- Ze as t,
4205
- Ai as u,
4206
- ha as v,
4207
- Fh as w,
4208
- lh as x,
4209
- De as y,
4210
- Bt as z
4211
- };