@hpcc-js/react 3.2.9 → 3.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,161 +1,184 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
1
3
  import { Utility, Palette, HTMLWidget, SVGWidget } from "@hpcc-js/common";
2
- const PKG_NAME = "@hpcc-js/react", PKG_VERSION = "3.1.1", BUILD_VERSION = "3.2.1";
3
- var n, l$1, u$2, i$1, r$1, o$1, e$1, f$2, c$1, s$1, a$1, p$1 = {}, y$1 = [], v$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w$1 = Array.isArray;
4
+ const PKG_NAME = "@hpcc-js/react";
5
+ const PKG_VERSION = "3.1.1";
6
+ const BUILD_VERSION = "3.2.1";
7
+ var n, l$1, u$2, i$1, r$1, o$1, e$1, f$2, c$1, s$1, a$1, p$1 = {}, v$1 = [], y$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w$1 = Array.isArray;
4
8
  function d$1(n2, l2) {
5
9
  for (var u2 in l2) n2[u2] = l2[u2];
6
10
  return n2;
7
11
  }
12
+ __name(d$1, "d$1");
8
13
  function g$1(n2) {
9
14
  n2 && n2.parentNode && n2.parentNode.removeChild(n2);
10
15
  }
16
+ __name(g$1, "g$1");
11
17
  function _$1(l2, u2, t2) {
12
18
  var i2, r2, o2, e2 = {};
13
- for (o2 in u2) o2 == "key" ? i2 = u2[o2] : o2 == "ref" ? r2 = u2[o2] : e2[o2] = u2[o2];
14
- if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), typeof l2 == "function" && l2.defaultProps != null) for (o2 in l2.defaultProps) e2[o2] == null && (e2[o2] = l2.defaultProps[o2]);
19
+ for (o2 in u2) "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
20
+ if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
15
21
  return m$1(l2, e2, i2, r2, null);
16
22
  }
23
+ __name(_$1, "_$1");
17
24
  function m$1(n2, t2, i2, r2, o2) {
18
- var e2 = { type: n2, props: t2, key: i2, ref: r2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o2 ?? ++u$2, __i: -1, __u: 0 };
19
- return o2 == null && l$1.vnode != null && l$1.vnode(e2), e2;
25
+ var e2 = { type: n2, props: t2, key: i2, ref: r2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: null == o2 ? ++u$2 : o2, __i: -1, __u: 0 };
26
+ return null == o2 && null != l$1.vnode && l$1.vnode(e2), e2;
20
27
  }
28
+ __name(m$1, "m$1");
21
29
  function k$1(n2) {
22
30
  return n2.children;
23
31
  }
32
+ __name(k$1, "k$1");
24
33
  function x(n2, l2) {
25
34
  this.props = n2, this.context = l2;
26
35
  }
36
+ __name(x, "x");
27
37
  function S(n2, l2) {
28
- if (l2 == null) return n2.__ ? S(n2.__, n2.__i + 1) : null;
29
- for (var u2; l2 < n2.__k.length; l2++) if ((u2 = n2.__k[l2]) != null && u2.__e != null) return u2.__e;
30
- return typeof n2.type == "function" ? S(n2) : null;
38
+ if (null == l2) return n2.__ ? S(n2.__, n2.__i + 1) : null;
39
+ for (var u2; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) return u2.__e;
40
+ return "function" == typeof n2.type ? S(n2) : null;
31
41
  }
42
+ __name(S, "S");
32
43
  function C$1(n2) {
33
44
  var l2, u2;
34
- if ((n2 = n2.__) != null && n2.__c != null) {
35
- for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++) if ((u2 = n2.__k[l2]) != null && u2.__e != null) {
45
+ if (null != (n2 = n2.__) && null != n2.__c) {
46
+ for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
36
47
  n2.__e = n2.__c.base = u2.__e;
37
48
  break;
38
49
  }
39
50
  return C$1(n2);
40
51
  }
41
52
  }
53
+ __name(C$1, "C$1");
42
54
  function M(n2) {
43
- (!n2.__d && (n2.__d = !0) && i$1.push(n2) && !$.__r++ || r$1 != l$1.debounceRendering) && ((r$1 = l$1.debounceRendering) || o$1)($);
55
+ (!n2.__d && (n2.__d = true) && i$1.push(n2) && !$.__r++ || r$1 != l$1.debounceRendering) && ((r$1 = l$1.debounceRendering) || o$1)($);
44
56
  }
57
+ __name(M, "M");
45
58
  function $() {
46
- for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i$1.length; ) i$1.length > s2 && i$1.sort(e$1), n2 = i$1.shift(), s2 = i$1.length, n2.__d && (t2 = void 0, o2 = (r2 = (u2 = n2).__v).__e, f2 = [], c2 = [], u2.__P && ((t2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(t2), O(u2.__P, t2, r2, u2.__n, u2.__P.namespaceURI, 32 & r2.__u ? [o2] : null, f2, o2 ?? S(r2), !!(32 & r2.__u), c2), t2.__v = r2.__v, t2.__.__k[t2.__i] = t2, z$1(f2, t2, c2), t2.__e != o2 && C$1(t2)));
59
+ for (var n2, u2, t2, r2, o2, f2, c2, s2 = 1; i$1.length; ) i$1.length > s2 && i$1.sort(e$1), n2 = i$1.shift(), s2 = i$1.length, n2.__d && (t2 = void 0, o2 = (r2 = (u2 = n2).__v).__e, f2 = [], c2 = [], u2.__P && ((t2 = d$1({}, r2)).__v = r2.__v + 1, l$1.vnode && l$1.vnode(t2), O(u2.__P, t2, r2, u2.__n, u2.__P.namespaceURI, 32 & r2.__u ? [o2] : null, f2, null == o2 ? S(r2) : o2, !!(32 & r2.__u), c2), t2.__v = r2.__v, t2.__.__k[t2.__i] = t2, z$1(f2, t2, c2), t2.__e != o2 && C$1(t2)));
47
60
  $.__r = 0;
48
61
  }
62
+ __name($, "$");
49
63
  function I(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
50
- var a2, h2, v2, w2, d2, g2, _2 = t2 && t2.__k || y$1, m2 = l2.length;
51
- for (f2 = P$1(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++) (v2 = u2.__k[a2]) != null && (h2 = v2.__i == -1 ? p$1 : _2[v2.__i] || p$1, v2.__i = a2, g2 = O(n2, v2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = v2.__e, v2.ref && h2.ref != v2.ref && (h2.ref && q$2(h2.ref, null, v2), s2.push(v2.ref, v2.__c || w2, v2)), d2 == null && w2 != null && (d2 = w2), 4 & v2.__u || h2.__k === v2.__k ? f2 = A(v2, f2, n2) : typeof v2.type == "function" && g2 !== void 0 ? f2 = g2 : w2 && (f2 = w2.nextSibling), v2.__u &= -7);
64
+ var a2, h2, y2, w2, d2, g2, _2 = t2 && t2.__k || v$1, m2 = l2.length;
65
+ for (f2 = P$1(u2, l2, _2, f2, m2), a2 = 0; a2 < m2; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 == y2.__i ? p$1 : _2[y2.__i] || p$1, y2.__i = a2, g2 = O(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && q$2(h2.ref, null, y2), s2.push(y2.ref, y2.__c || w2, y2)), null == d2 && null != w2 && (d2 = w2), 4 & y2.__u || h2.__k === y2.__k ? f2 = A(y2, f2, n2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), y2.__u &= -7);
52
66
  return u2.__e = d2, f2;
53
67
  }
68
+ __name(I, "I");
54
69
  function P$1(n2, l2, u2, t2, i2) {
55
70
  var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
56
- for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++) (o2 = l2[r2]) != null && typeof o2 != "boolean" && typeof o2 != "function" ? (f2 = r2 + h2, (o2 = n2.__k[r2] = typeof o2 == "string" || typeof o2 == "number" || typeof o2 == "bigint" || o2.constructor == String ? m$1(null, o2, null, null, null) : w$1(o2) ? m$1(k$1, { children: o2 }, null, null, null) : o2.constructor == null && o2.__b > 0 ? m$1(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, (c2 = o2.__i = L(o2, u2, f2, a2)) != -1 && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), e2 == null || e2.__v == null ? (c2 == -1 && (i2 > s2 ? h2-- : i2 < s2 && h2++), typeof o2.type != "function" && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
57
- if (a2) for (r2 = 0; r2 < s2; r2++) (e2 = u2[r2]) != null && !(2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), B$2(e2, e2));
71
+ for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++) null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? (f2 = r2 + h2, (o2 = n2.__k[r2] = "string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? m$1(null, o2, null, null, null) : w$1(o2) ? m$1(k$1, { children: o2 }, null, null, null) : null == o2.constructor && o2.__b > 0 ? m$1(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = L(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
72
+ if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), B$2(e2, e2));
58
73
  return t2;
59
74
  }
75
+ __name(P$1, "P$1");
60
76
  function A(n2, l2, u2) {
61
77
  var t2, i2;
62
- if (typeof n2.type == "function") {
78
+ if ("function" == typeof n2.type) {
63
79
  for (t2 = n2.__k, i2 = 0; t2 && i2 < t2.length; i2++) t2[i2] && (t2[i2].__ = n2, l2 = A(t2[i2], l2, u2));
64
80
  return l2;
65
81
  }
66
82
  n2.__e != l2 && (l2 && n2.type && !u2.contains(l2) && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null), l2 = n2.__e);
67
- do
83
+ do {
68
84
  l2 = l2 && l2.nextSibling;
69
- while (l2 != null && l2.nodeType == 8);
85
+ } while (null != l2 && 8 == l2.nodeType);
70
86
  return l2;
71
87
  }
88
+ __name(A, "A");
72
89
  function H$1(n2, l2) {
73
- return l2 = l2 || [], n2 == null || typeof n2 == "boolean" || (w$1(n2) ? n2.some(function(n3) {
90
+ return l2 = l2 || [], null == n2 || "boolean" == typeof n2 || (w$1(n2) ? n2.some(function(n3) {
74
91
  H$1(n3, l2);
75
92
  }) : l2.push(n2)), l2;
76
93
  }
94
+ __name(H$1, "H$1");
77
95
  function L(n2, l2, u2, t2) {
78
96
  var i2, r2, o2 = n2.key, e2 = n2.type, f2 = l2[u2];
79
- if (f2 === null && n2.key == null || f2 && o2 == f2.key && e2 == f2.type && !(2 & f2.__u)) return u2;
80
- if (t2 > (f2 != null && !(2 & f2.__u) ? 1 : 0)) for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) {
97
+ if (null === f2 && null == n2.key || f2 && o2 == f2.key && e2 == f2.type && 0 == (2 & f2.__u)) return u2;
98
+ if (t2 > (null != f2 && 0 == (2 & f2.__u) ? 1 : 0)) for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) {
81
99
  if (i2 >= 0) {
82
- if ((f2 = l2[i2]) && !(2 & f2.__u) && o2 == f2.key && e2 == f2.type) return i2;
100
+ if ((f2 = l2[i2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type) return i2;
83
101
  i2--;
84
102
  }
85
103
  if (r2 < l2.length) {
86
- if ((f2 = l2[r2]) && !(2 & f2.__u) && o2 == f2.key && e2 == f2.type) return r2;
104
+ if ((f2 = l2[r2]) && 0 == (2 & f2.__u) && o2 == f2.key && e2 == f2.type) return r2;
87
105
  r2++;
88
106
  }
89
107
  }
90
108
  return -1;
91
109
  }
110
+ __name(L, "L");
92
111
  function T$2(n2, l2, u2) {
93
- l2[0] == "-" ? n2.setProperty(l2, u2 ?? "") : n2[l2] = u2 == null ? "" : typeof u2 != "number" || v$1.test(l2) ? u2 : u2 + "px";
112
+ "-" == l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || y$1.test(l2) ? u2 : u2 + "px";
94
113
  }
114
+ __name(T$2, "T$2");
95
115
  function j$2(n2, l2, u2, t2, i2) {
96
- var r2;
97
- n: if (l2 == "style") if (typeof u2 == "string") n2.style.cssText = u2;
116
+ var r2, o2;
117
+ n: if ("style" == l2) if ("string" == typeof u2) n2.style.cssText = u2;
98
118
  else {
99
- if (typeof t2 == "string" && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T$2(n2.style, l2, "");
119
+ if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T$2(n2.style, l2, "");
100
120
  if (u2) for (l2 in u2) t2 && u2[l2] == t2[l2] || T$2(n2.style, l2, u2[l2]);
101
121
  }
102
- else if (l2[0] == "o" && l2[1] == "n") r2 = l2 != (l2 = l2.replace(f$2, "$1")), l2 = l2.toLowerCase() in n2 || l2 == "onFocusOut" || l2 == "onFocusIn" ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$1, n2.addEventListener(l2, r2 ? a$1 : s$1, r2)) : n2.removeEventListener(l2, r2 ? a$1 : s$1, r2);
122
+ else if ("o" == l2[0] && "n" == l2[1]) r2 = l2 != (l2 = l2.replace(f$2, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$1, n2.addEventListener(l2, r2 ? a$1 : s$1, r2)) : n2.removeEventListener(l2, r2 ? a$1 : s$1, r2);
103
123
  else {
104
- if (i2 == "http://www.w3.org/2000/svg") l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
105
- else if (l2 != "width" && l2 != "height" && l2 != "href" && l2 != "list" && l2 != "form" && l2 != "tabIndex" && l2 != "download" && l2 != "rowSpan" && l2 != "colSpan" && l2 != "role" && l2 != "popover" && l2 in n2) try {
106
- n2[l2] = u2 ?? "";
124
+ if ("http://www.w3.org/2000/svg" == i2) l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
125
+ else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2) try {
126
+ n2[l2] = null == u2 ? "" : u2;
107
127
  break n;
108
- } catch {
128
+ } catch (n3) {
109
129
  }
110
- typeof u2 == "function" || (u2 == null || u2 === !1 && l2[4] != "-" ? n2.removeAttribute(l2) : n2.setAttribute(l2, l2 == "popover" && u2 == 1 ? "" : u2));
130
+ "function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
111
131
  }
112
132
  }
133
+ __name(j$2, "j$2");
113
134
  function F$1(n2) {
114
135
  return function(u2) {
115
136
  if (this.l) {
116
137
  var t2 = this.l[u2.type + n2];
117
- if (u2.t == null) u2.t = c$1++;
138
+ if (null == u2.t) u2.t = c$1++;
118
139
  else if (u2.t < t2.u) return;
119
140
  return t2(l$1.event ? l$1.event(u2) : u2);
120
141
  }
121
142
  };
122
143
  }
144
+ __name(F$1, "F$1");
123
145
  function O(n2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
124
- var a2, h2, p2, y2, v2, _2, m2, b, S2, C2, M2, $2, P2, A2, H2, L2, T2, j2 = u2.type;
125
- if (u2.constructor != null) return null;
146
+ var a2, h2, p2, v2, y2, _2, m2, b, S2, C2, M2, $2, P2, A2, H2, L2, T2, j2 = u2.type;
147
+ if (null != u2.constructor) return null;
126
148
  128 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l$1.__b) && a2(u2);
127
- n: if (typeof j2 == "function") try {
128
- if (b = u2.props, S2 = "prototype" in j2 && j2.prototype.render, C2 = (a2 = j2.contextType) && i2[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (S2 ? u2.__c = h2 = new j2(b, M2) : (u2.__c = h2 = new x(b, M2), h2.constructor = j2, h2.render = D$1), C2 && C2.sub(h2), h2.props = b, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i2, p2 = h2.__d = !0, h2.__h = [], h2._sb = []), S2 && h2.__s == null && (h2.__s = h2.state), S2 && j2.getDerivedStateFromProps != null && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, j2.getDerivedStateFromProps(b, h2.__s))), y2 = h2.props, v2 = h2.state, h2.__v = u2, p2) S2 && j2.getDerivedStateFromProps == null && h2.componentWillMount != null && h2.componentWillMount(), S2 && h2.componentDidMount != null && h2.__h.push(h2.componentDidMount);
149
+ n: if ("function" == typeof j2) try {
150
+ if (b = u2.props, S2 = "prototype" in j2 && j2.prototype.render, C2 = (a2 = j2.contextType) && i2[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i2, t2.__c ? m2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (S2 ? u2.__c = h2 = new j2(b, M2) : (u2.__c = h2 = new x(b, M2), h2.constructor = j2, h2.render = D$1), C2 && C2.sub(h2), h2.props = b, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), S2 && null == h2.__s && (h2.__s = h2.state), S2 && null != j2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d$1({}, h2.__s)), d$1(h2.__s, j2.getDerivedStateFromProps(b, h2.__s))), v2 = h2.props, y2 = h2.state, h2.__v = u2, p2) S2 && null == j2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), S2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
129
151
  else {
130
- if (S2 && j2.getDerivedStateFromProps == null && b !== y2 && h2.componentWillReceiveProps != null && h2.componentWillReceiveProps(b, M2), !h2.__e && h2.shouldComponentUpdate != null && h2.shouldComponentUpdate(b, h2.__s, M2) === !1 || u2.__v == t2.__v) {
131
- for (u2.__v != t2.__v && (h2.props = b, h2.state = h2.__s, h2.__d = !1), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
152
+ if (S2 && null == j2.getDerivedStateFromProps && b !== v2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(b, M2), !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(b, h2.__s, M2) || u2.__v == t2.__v) {
153
+ for (u2.__v != t2.__v && (h2.props = b, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
132
154
  n3 && (n3.__ = u2);
133
155
  }), $2 = 0; $2 < h2._sb.length; $2++) h2.__h.push(h2._sb[$2]);
134
156
  h2._sb = [], h2.__h.length && e2.push(h2);
135
157
  break n;
136
158
  }
137
- h2.componentWillUpdate != null && h2.componentWillUpdate(b, h2.__s, M2), S2 && h2.componentDidUpdate != null && h2.__h.push(function() {
138
- h2.componentDidUpdate(y2, v2, _2);
159
+ null != h2.componentWillUpdate && h2.componentWillUpdate(b, h2.__s, M2), S2 && null != h2.componentDidUpdate && h2.__h.push(function() {
160
+ h2.componentDidUpdate(v2, y2, _2);
139
161
  });
140
162
  }
141
- if (h2.context = M2, h2.props = b, h2.__P = n2, h2.__e = !1, P2 = l$1.__r, A2 = 0, S2) {
142
- for (h2.state = h2.__s, h2.__d = !1, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
163
+ if (h2.context = M2, h2.props = b, h2.__P = n2, h2.__e = false, P2 = l$1.__r, A2 = 0, S2) {
164
+ for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
143
165
  h2._sb = [];
144
- } else do
145
- h2.__d = !1, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
146
- while (h2.__d && ++A2 < 25);
147
- h2.state = h2.__s, h2.getChildContext != null && (i2 = d$1(d$1({}, i2), h2.getChildContext())), S2 && !p2 && h2.getSnapshotBeforeUpdate != null && (_2 = h2.getSnapshotBeforeUpdate(y2, v2)), L2 = a2, a2 != null && a2.type === k$1 && a2.key == null && (L2 = N$1(a2.props.children)), f2 = I(n2, w$1(L2) ? L2 : [L2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
166
+ } else do {
167
+ h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
168
+ } while (h2.__d && ++A2 < 25);
169
+ h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), S2 && !p2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(v2, y2)), L2 = a2, null != a2 && a2.type === k$1 && null == a2.key && (L2 = N$1(a2.props.children)), f2 = I(n2, w$1(L2) ? L2 : [L2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
148
170
  } catch (n3) {
149
- if (u2.__v = null, c2 || o2 != null) if (n3.then) {
150
- for (u2.__u |= c2 ? 160 : 128; f2 && f2.nodeType == 8 && f2.nextSibling; ) f2 = f2.nextSibling;
171
+ if (u2.__v = null, c2 || null != o2) if (n3.then) {
172
+ for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; ) f2 = f2.nextSibling;
151
173
  o2[o2.indexOf(f2)] = null, u2.__e = f2;
152
174
  } else for (T2 = o2.length; T2--; ) g$1(o2[T2]);
153
175
  else u2.__e = t2.__e, u2.__k = t2.__k;
154
176
  l$1.__e(n3, u2, t2);
155
177
  }
156
- else o2 == null && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = V$1(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
178
+ else null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = V$1(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
157
179
  return (a2 = l$1.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
158
180
  }
181
+ __name(O, "O");
159
182
  function z$1(n2, u2, t2) {
160
183
  for (var i2 = 0; i2 < t2.length; i2++) q$2(t2[i2], t2[++i2], t2[++i2]);
161
184
  l$1.__c && l$1.__c(u2, n2), n2.some(function(u3) {
@@ -168,51 +191,54 @@ function z$1(n2, u2, t2) {
168
191
  }
169
192
  });
170
193
  }
194
+ __name(z$1, "z$1");
171
195
  function N$1(n2) {
172
- return typeof n2 != "object" || n2 == null || n2.__b && n2.__b > 0 ? n2 : w$1(n2) ? n2.map(N$1) : d$1({}, n2);
196
+ return "object" != typeof n2 || null == n2 || n2.__b && n2.__b > 0 ? n2 : w$1(n2) ? n2.map(N$1) : d$1({}, n2);
173
197
  }
198
+ __name(N$1, "N$1");
174
199
  function V$1(u2, t2, i2, r2, o2, e2, f2, c2, s2) {
175
- var a2, h2, y2, v2, d2, _2, m2, b = i2.props, k2 = t2.props, x2 = t2.type;
176
- if (x2 == "svg" ? o2 = "http://www.w3.org/2000/svg" : x2 == "math" ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), e2 != null) {
177
- for (a2 = 0; a2 < e2.length; a2++) if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : d2.nodeType == 3)) {
200
+ var a2, h2, v2, y2, d2, _2, m2, b = i2.props, k2 = t2.props, x2 = t2.type;
201
+ if ("svg" == x2 ? o2 = "http://www.w3.org/2000/svg" : "math" == x2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != e2) {
202
+ for (a2 = 0; a2 < e2.length; a2++) if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : 3 == d2.nodeType)) {
178
203
  u2 = d2, e2[a2] = null;
179
204
  break;
180
205
  }
181
206
  }
182
- if (u2 == null) {
183
- if (x2 == null) return document.createTextNode(k2);
184
- u2 = document.createElementNS(o2, x2, k2.is && k2), c2 && (l$1.__m && l$1.__m(t2, e2), c2 = !1), e2 = null;
207
+ if (null == u2) {
208
+ if (null == x2) return document.createTextNode(k2);
209
+ u2 = document.createElementNS(o2, x2, k2.is && k2), c2 && (l$1.__m && l$1.__m(t2, e2), c2 = false), e2 = null;
185
210
  }
186
- if (x2 == null) b === k2 || c2 && u2.data == k2 || (u2.data = k2);
211
+ if (null == x2) b === k2 || c2 && u2.data == k2 || (u2.data = k2);
187
212
  else {
188
- if (e2 = e2 && n.call(u2.childNodes), b = i2.props || p$1, !c2 && e2 != null) for (b = {}, a2 = 0; a2 < u2.attributes.length; a2++) b[(d2 = u2.attributes[a2]).name] = d2.value;
189
- for (a2 in b) if (d2 = b[a2], a2 != "children") {
190
- if (a2 == "dangerouslySetInnerHTML") y2 = d2;
191
- else if (!(a2 in k2)) {
192
- if (a2 == "value" && "defaultValue" in k2 || a2 == "checked" && "defaultChecked" in k2) continue;
193
- j$2(u2, a2, null, d2, o2);
194
- }
213
+ if (e2 = e2 && n.call(u2.childNodes), b = i2.props || p$1, !c2 && null != e2) for (b = {}, a2 = 0; a2 < u2.attributes.length; a2++) b[(d2 = u2.attributes[a2]).name] = d2.value;
214
+ for (a2 in b) if (d2 = b[a2], "children" == a2) ;
215
+ else if ("dangerouslySetInnerHTML" == a2) v2 = d2;
216
+ else if (!(a2 in k2)) {
217
+ if ("value" == a2 && "defaultValue" in k2 || "checked" == a2 && "defaultChecked" in k2) continue;
218
+ j$2(u2, a2, null, d2, o2);
195
219
  }
196
- for (a2 in k2) d2 = k2[a2], a2 == "children" ? v2 = d2 : a2 == "dangerouslySetInnerHTML" ? h2 = d2 : a2 == "value" ? _2 = d2 : a2 == "checked" ? m2 = d2 : c2 && typeof d2 != "function" || b[a2] === d2 || j$2(u2, a2, d2, b[a2], o2);
197
- if (h2) c2 || y2 && (h2.__html == y2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
198
- else if (y2 && (u2.innerHTML = ""), I(t2.type == "template" ? u2.content : u2, w$1(v2) ? v2 : [v2], t2, i2, r2, x2 == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), e2 != null) for (a2 = e2.length; a2--; ) g$1(e2[a2]);
199
- c2 || (a2 = "value", x2 == "progress" && _2 == null ? u2.removeAttribute("value") : _2 != null && (_2 !== u2[a2] || x2 == "progress" && !_2 || x2 == "option" && _2 != b[a2]) && j$2(u2, a2, _2, b[a2], o2), a2 = "checked", m2 != null && m2 != u2[a2] && j$2(u2, a2, m2, b[a2], o2));
220
+ for (a2 in k2) d2 = k2[a2], "children" == a2 ? y2 = d2 : "dangerouslySetInnerHTML" == a2 ? h2 = d2 : "value" == a2 ? _2 = d2 : "checked" == a2 ? m2 = d2 : c2 && "function" != typeof d2 || b[a2] === d2 || j$2(u2, a2, d2, b[a2], o2);
221
+ if (h2) c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
222
+ else if (v2 && (u2.innerHTML = ""), I("template" == t2.type ? u2.content : u2, w$1(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2) for (a2 = e2.length; a2--; ) g$1(e2[a2]);
223
+ c2 || (a2 = "value", "progress" == x2 && null == _2 ? u2.removeAttribute("value") : null != _2 && (_2 !== u2[a2] || "progress" == x2 && !_2 || "option" == x2 && _2 != b[a2]) && j$2(u2, a2, _2, b[a2], o2), a2 = "checked", null != m2 && m2 != u2[a2] && j$2(u2, a2, m2, b[a2], o2));
200
224
  }
201
225
  return u2;
202
226
  }
227
+ __name(V$1, "V$1");
203
228
  function q$2(n2, u2, t2) {
204
229
  try {
205
- if (typeof n2 == "function") {
206
- var i2 = typeof n2.__u == "function";
207
- i2 && n2.__u(), i2 && u2 == null || (n2.__u = n2(u2));
230
+ if ("function" == typeof n2) {
231
+ var i2 = "function" == typeof n2.__u;
232
+ i2 && n2.__u(), i2 && null == u2 || (n2.__u = n2(u2));
208
233
  } else n2.current = u2;
209
234
  } catch (n3) {
210
235
  l$1.__e(n3, t2);
211
236
  }
212
237
  }
238
+ __name(q$2, "q$2");
213
239
  function B$2(n2, u2, t2) {
214
240
  var i2, r2;
215
- if (l$1.unmount && l$1.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || q$2(i2, null, u2)), (i2 = n2.__c) != null) {
241
+ if (l$1.unmount && l$1.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || q$2(i2, null, u2)), null != (i2 = n2.__c)) {
216
242
  if (i2.componentWillUnmount) try {
217
243
  i2.componentWillUnmount();
218
244
  } catch (n3) {
@@ -220,57 +246,63 @@ function B$2(n2, u2, t2) {
220
246
  }
221
247
  i2.base = i2.__P = null;
222
248
  }
223
- if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && B$2(i2[r2], u2, t2 || typeof n2.type != "function");
249
+ if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && B$2(i2[r2], u2, t2 || "function" != typeof n2.type);
224
250
  t2 || g$1(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
225
251
  }
252
+ __name(B$2, "B$2");
226
253
  function D$1(n2, l2, u2) {
227
254
  return this.constructor(n2, u2);
228
255
  }
256
+ __name(D$1, "D$1");
229
257
  function E$1(u2, t2, i2) {
230
258
  var r2, o2, e2, f2;
231
- t2 == document && (t2 = document.documentElement), l$1.__ && l$1.__(u2, t2), o2 = (r2 = typeof i2 == "function") ? null : i2 && i2.__k || t2.__k, e2 = [], f2 = [], O(t2, u2 = (!r2 && i2 || t2).__k = _$1(k$1, null, [u2]), o2 || p$1, p$1, t2.namespaceURI, !r2 && i2 ? [i2] : o2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, e2, !r2 && i2 ? i2 : o2 ? o2.__e : t2.firstChild, r2, f2), z$1(e2, u2, f2);
259
+ t2 == document && (t2 = document.documentElement), l$1.__ && l$1.__(u2, t2), o2 = (r2 = "function" == typeof i2) ? null : i2 && i2.__k || t2.__k, e2 = [], f2 = [], O(t2, u2 = (!r2 && i2 || t2).__k = _$1(k$1, null, [u2]), o2 || p$1, p$1, t2.namespaceURI, !r2 && i2 ? [i2] : o2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, e2, !r2 && i2 ? i2 : o2 ? o2.__e : t2.firstChild, r2, f2), z$1(e2, u2, f2);
232
260
  }
233
- n = y$1.slice, l$1 = { __e: function(n2, l2, u2, t2) {
261
+ __name(E$1, "E$1");
262
+ n = v$1.slice, l$1 = { __e: /* @__PURE__ */ __name(function(n2, l2, u2, t2) {
234
263
  for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
235
- if ((r2 = i2.constructor) && r2.getDerivedStateFromError != null && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), i2.componentDidCatch != null && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
264
+ if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
236
265
  } catch (l3) {
237
266
  n2 = l3;
238
267
  }
239
268
  throw n2;
240
- } }, u$2 = 0, x.prototype.setState = function(n2, l2) {
269
+ }, "__e") }, u$2 = 0, x.prototype.setState = function(n2, l2) {
241
270
  var u2;
242
- u2 = this.__s != null && this.__s != this.state ? this.__s : this.__s = d$1({}, this.state), typeof n2 == "function" && (n2 = n2(d$1({}, u2), this.props)), n2 && d$1(u2, n2), n2 != null && this.__v && (l2 && this._sb.push(l2), M(this));
271
+ u2 = null != this.__s && this.__s != this.state ? this.__s : this.__s = d$1({}, this.state), "function" == typeof n2 && (n2 = n2(d$1({}, u2), this.props)), n2 && d$1(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), M(this));
243
272
  }, x.prototype.forceUpdate = function(n2) {
244
- this.__v && (this.__e = !0, n2 && this.__h.push(n2), M(this));
245
- }, x.prototype.render = k$1, i$1 = [], o$1 = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e$1 = function(n2, l2) {
273
+ this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this));
274
+ }, x.prototype.render = k$1, i$1 = [], o$1 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e$1 = /* @__PURE__ */ __name(function(n2, l2) {
246
275
  return n2.__v.__b - l2.__v.__b;
247
- }, $.__r = 0, f$2 = /(PointerCapture)$|Capture$/i, c$1 = 0, s$1 = F$1(!1), a$1 = F$1(!0);
276
+ }, "e$1"), $.__r = 0, f$2 = /(PointerCapture)$|Capture$/i, c$1 = 0, s$1 = F$1(false), a$1 = F$1(true);
248
277
  var f$1 = 0;
249
278
  function u$1(e2, t2, n2, o2, i2, u2) {
250
279
  t2 || (t2 = {});
251
280
  var a2, c2, p2 = t2;
252
- if ("ref" in p2) for (c2 in p2 = {}, t2) c2 == "ref" ? a2 = t2[c2] : p2[c2] = t2[c2];
281
+ if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
253
282
  var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f$1, __i: -1, __u: 0, __source: i2, __self: u2 };
254
- if (typeof e2 == "function" && (a2 = e2.defaultProps)) for (c2 in a2) p2[c2] === void 0 && (p2[c2] = a2[c2]);
283
+ if ("function" == typeof e2 && (a2 = e2.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
255
284
  return l$1.vnode && l$1.vnode(l2), l2;
256
285
  }
286
+ __name(u$1, "u$1");
257
287
  var t, r, u, i, o = 0, f = [], c = l$1, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;
258
288
  function p(n2, t2) {
259
289
  c.__h && c.__h(r, n2, o || t2), o = 0;
260
290
  var u2 = r.__H || (r.__H = { __: [], __h: [] });
261
291
  return n2 >= u2.__.length && u2.__.push({}), u2.__[n2];
262
292
  }
293
+ __name(p, "p");
263
294
  function d(n2) {
264
295
  return o = 1, h(D, n2);
265
296
  }
297
+ __name(d, "d");
266
298
  function h(n2, u2, i2) {
267
299
  var o2 = p(t++, 2);
268
300
  if (o2.t = n2, !o2.__c && (o2.__ = [i2 ? i2(u2) : D(void 0, u2), function(n3) {
269
301
  var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n3);
270
302
  t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
271
303
  }], o2.__c = r, !r.__f)) {
272
- var f2 = function(n3, t2, r2) {
273
- if (!o2.__c.__H) return !0;
304
+ var f2 = /* @__PURE__ */ __name(function(n3, t2, r2) {
305
+ if (!o2.__c.__H) return true;
274
306
  var u3 = o2.__c.__H.__.filter(function(n4) {
275
307
  return !!n4.__c;
276
308
  });
@@ -281,11 +313,11 @@ function h(n2, u2, i2) {
281
313
  return u3.forEach(function(n4) {
282
314
  if (n4.__N) {
283
315
  var t3 = n4.__[0];
284
- n4.__ = n4.__N, n4.__N = void 0, t3 !== n4.__[0] && (i3 = !0);
316
+ n4.__ = n4.__N, n4.__N = void 0, t3 !== n4.__[0] && (i3 = true);
285
317
  }
286
318
  }), c2 && c2.call(this, n3, t2, r2) || i3;
287
- };
288
- r.__f = !0;
319
+ }, "f");
320
+ r.__f = true;
289
321
  var c2 = r.shouldComponentUpdate, e2 = r.componentWillUpdate;
290
322
  r.componentWillUpdate = function(n3, t2, r2) {
291
323
  if (this.__e) {
@@ -297,23 +329,28 @@ function h(n2, u2, i2) {
297
329
  }
298
330
  return o2.__N || o2.__;
299
331
  }
332
+ __name(h, "h");
300
333
  function y(n2, u2) {
301
334
  var i2 = p(t++, 3);
302
335
  !c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.u = u2, r.__H.__h.push(i2));
303
336
  }
337
+ __name(y, "y");
304
338
  function _(n2, u2) {
305
339
  var i2 = p(t++, 4);
306
340
  !c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.u = u2, r.__h.push(i2));
307
341
  }
342
+ __name(_, "_");
308
343
  function T$1(n2, r2) {
309
344
  var u2 = p(t++, 7);
310
345
  return C(u2.__H, r2) && (u2.__ = n2(), u2.__H = r2, u2.__h = n2), u2.__;
311
346
  }
347
+ __name(T$1, "T$1");
312
348
  function q$1(n2, t2) {
313
349
  return o = 8, T$1(function() {
314
350
  return n2;
315
351
  }, t2);
316
352
  }
353
+ __name(q$1, "q$1");
317
354
  function j$1() {
318
355
  for (var n2; n2 = f.shift(); ) if (n2.__P && n2.__H) try {
319
356
  n2.__H.__h.forEach(z), n2.__H.__h.forEach(B$1), n2.__H.__h = [];
@@ -321,6 +358,7 @@ function j$1() {
321
358
  n2.__H.__h = [], c.__e(t2, n2.__v);
322
359
  }
323
360
  }
361
+ __name(j$1, "j$1");
324
362
  c.__b = function(n2) {
325
363
  r = null, e && e(n2);
326
364
  }, c.__ = function(n2, t2) {
@@ -334,7 +372,7 @@ c.__b = function(n2) {
334
372
  }, c.diffed = function(n2) {
335
373
  v && v(n2);
336
374
  var t2 = n2.__c;
337
- t2 && t2.__H && (t2.__H.__h.length && (f.push(t2) !== 1 && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j$1)), t2.__H.__.forEach(function(n3) {
375
+ t2 && t2.__H && (t2.__H.__h.length && (1 !== f.push(t2) && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j$1)), t2.__H.__.forEach(function(n3) {
338
376
  n3.u && (n3.__H = n3.u), n3.u = void 0;
339
377
  })), u = r = null;
340
378
  }, c.__c = function(n2, t2) {
@@ -360,42 +398,50 @@ c.__b = function(n2) {
360
398
  }
361
399
  }), r2.__H = void 0, t2 && c.__e(t2, r2.__v));
362
400
  };
363
- var k = typeof requestAnimationFrame == "function";
401
+ var k = "function" == typeof requestAnimationFrame;
364
402
  function w(n2) {
365
- var t2, r2 = function() {
403
+ var t2, r2 = /* @__PURE__ */ __name(function() {
366
404
  clearTimeout(u2), k && cancelAnimationFrame(t2), setTimeout(n2);
367
- }, u2 = setTimeout(r2, 100);
405
+ }, "r"), u2 = setTimeout(r2, 35);
368
406
  k && (t2 = requestAnimationFrame(r2));
369
407
  }
408
+ __name(w, "w");
370
409
  function z(n2) {
371
410
  var t2 = r, u2 = n2.__c;
372
- typeof u2 == "function" && (n2.__c = void 0, u2()), r = t2;
411
+ "function" == typeof u2 && (n2.__c = void 0, u2()), r = t2;
373
412
  }
413
+ __name(z, "z");
374
414
  function B$1(n2) {
375
415
  var t2 = r;
376
416
  n2.__c = n2.__(), r = t2;
377
417
  }
418
+ __name(B$1, "B$1");
378
419
  function C(n2, t2) {
379
420
  return !n2 || n2.length !== t2.length || t2.some(function(t3, r2) {
380
421
  return t3 !== n2[r2];
381
422
  });
382
423
  }
424
+ __name(C, "C");
383
425
  function D(n2, t2) {
384
- return typeof t2 == "function" ? t2(n2) : t2;
426
+ return "function" == typeof t2 ? t2(n2) : t2;
385
427
  }
428
+ __name(D, "D");
386
429
  function g(n2, t2) {
387
430
  for (var e2 in t2) n2[e2] = t2[e2];
388
431
  return n2;
389
432
  }
433
+ __name(g, "g");
390
434
  function E(n2, t2) {
391
- for (var e2 in n2) if (e2 !== "__source" && !(e2 in t2)) return !0;
392
- for (var r2 in t2) if (r2 !== "__source" && n2[r2] !== t2[r2]) return !0;
393
- return !1;
435
+ for (var e2 in n2) if ("__source" !== e2 && !(e2 in t2)) return true;
436
+ for (var r2 in t2) if ("__source" !== r2 && n2[r2] !== t2[r2]) return true;
437
+ return false;
394
438
  }
439
+ __name(E, "E");
395
440
  function N(n2, t2) {
396
441
  this.props = n2, this.context = t2;
397
442
  }
398
- (N.prototype = new x()).isPureReactComponent = !0, N.prototype.shouldComponentUpdate = function(n2, t2) {
443
+ __name(N, "N");
444
+ (N.prototype = new x()).isPureReactComponent = true, N.prototype.shouldComponentUpdate = function(n2, t2) {
399
445
  return E(this.props, n2) || E(this.state, t2);
400
446
  };
401
447
  var T = l$1.__b;
@@ -405,44 +451,49 @@ l$1.__b = function(n2) {
405
451
  var F = l$1.__e;
406
452
  l$1.__e = function(n2, t2, e2, r2) {
407
453
  if (n2.then) {
408
- for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return t2.__e == null && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
454
+ for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return null == t2.__e && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
409
455
  }
410
456
  F(n2, t2, e2, r2);
411
457
  };
412
458
  var U = l$1.unmount;
413
459
  function V(n2, t2, e2) {
414
460
  return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
415
- typeof n3.__c == "function" && n3.__c();
416
- }), n2.__c.__H = null), (n2 = g({}, n2)).__c != null && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c.__e = !0, n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
461
+ "function" == typeof n3.__c && n3.__c();
462
+ }), n2.__c.__H = null), null != (n2 = g({}, n2)).__c && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c.__e = true, n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
417
463
  return V(n3, t2, e2);
418
464
  })), n2;
419
465
  }
466
+ __name(V, "V");
420
467
  function W(n2, t2, e2) {
421
468
  return n2 && e2 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
422
469
  return W(n3, t2, e2);
423
- }), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = !0, n2.__c.__P = e2)), n2;
470
+ }), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = true, n2.__c.__P = e2)), n2;
424
471
  }
472
+ __name(W, "W");
425
473
  function P() {
426
474
  this.__u = 0, this.o = null, this.__b = null;
427
475
  }
476
+ __name(P, "P");
428
477
  function j(n2) {
429
478
  var t2 = n2.__.__c;
430
479
  return t2 && t2.__a && t2.__a(n2);
431
480
  }
481
+ __name(j, "j");
432
482
  function B() {
433
483
  this.i = null, this.l = null;
434
484
  }
485
+ __name(B, "B");
435
486
  l$1.unmount = function(n2) {
436
487
  var t2 = n2.__c;
437
488
  t2 && t2.__R && t2.__R(), t2 && 32 & n2.__u && (n2.type = null), U && U(n2);
438
489
  }, (P.prototype = new x()).__c = function(n2, t2) {
439
490
  var e2 = t2.__c, r2 = this;
440
- r2.o == null && (r2.o = []), r2.o.push(e2);
441
- var u2 = j(r2.__v), o2 = !1, i2 = function() {
442
- o2 || (o2 = !0, e2.__R = null, u2 ? u2(c2) : c2());
443
- };
491
+ null == r2.o && (r2.o = []), r2.o.push(e2);
492
+ var u2 = j(r2.__v), o2 = false, i2 = /* @__PURE__ */ __name(function() {
493
+ o2 || (o2 = true, e2.__R = null, u2 ? u2(l2) : l2());
494
+ }, "i");
444
495
  e2.__R = i2;
445
- var c2 = function() {
496
+ var l2 = /* @__PURE__ */ __name(function() {
446
497
  if (!--r2.__u) {
447
498
  if (r2.state.__a) {
448
499
  var n3 = r2.state.__a;
@@ -451,7 +502,7 @@ l$1.unmount = function(n2) {
451
502
  var t3;
452
503
  for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.forceUpdate();
453
504
  }
454
- };
505
+ }, "l");
455
506
  r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
456
507
  }, P.prototype.componentWillUnmount = function() {
457
508
  this.o = [];
@@ -466,25 +517,25 @@ l$1.unmount = function(n2) {
466
517
  var i2 = e2.__a && _$1(k$1, null, n2.fallback);
467
518
  return i2 && (i2.__u &= -33), [_$1(k$1, null, e2.__a ? null : n2.children), i2];
468
519
  };
469
- var H = function(n2, t2, e2) {
470
- if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && (n2.props.revealOrder[0] !== "t" || !n2.l.size)) for (e2 = n2.i; e2; ) {
520
+ var H = /* @__PURE__ */ __name(function(n2, t2, e2) {
521
+ if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && ("t" !== n2.props.revealOrder[0] || !n2.l.size)) for (e2 = n2.i; e2; ) {
471
522
  for (; e2.length > 3; ) e2.pop()();
472
523
  if (e2[1] < e2[0]) break;
473
524
  n2.i = e2 = e2[2];
474
525
  }
475
- };
526
+ }, "H");
476
527
  (B.prototype = new x()).__a = function(n2) {
477
528
  var t2 = this, e2 = j(t2.__v), r2 = t2.l.get(n2);
478
529
  return r2[0]++, function(u2) {
479
- var o2 = function() {
530
+ var o2 = /* @__PURE__ */ __name(function() {
480
531
  t2.props.revealOrder ? (r2.push(u2), H(t2, n2, r2)) : u2();
481
- };
532
+ }, "o");
482
533
  e2 ? e2(o2) : o2();
483
534
  };
484
535
  }, B.prototype.render = function(n2) {
485
536
  this.i = null, this.l = /* @__PURE__ */ new Map();
486
537
  var t2 = H$1(n2.children);
487
- n2.revealOrder && n2.revealOrder[0] === "b" && t2.reverse();
538
+ n2.revealOrder && "b" === n2.revealOrder[0] && t2.reverse();
488
539
  for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
489
540
  return n2.children;
490
541
  }, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
@@ -493,46 +544,49 @@ var H = function(n2, t2, e2) {
493
544
  H(n2, e2, t2);
494
545
  });
495
546
  };
496
- var q = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = typeof document < "u", X = function(n2) {
497
- return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n2);
498
- };
547
+ var q = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = "undefined" != typeof document, X = /* @__PURE__ */ __name(function(n2) {
548
+ return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n2);
549
+ }, "X");
499
550
  x.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
500
- Object.defineProperty(x.prototype, t2, { configurable: !0, get: function() {
551
+ Object.defineProperty(x.prototype, t2, { configurable: true, get: /* @__PURE__ */ __name(function() {
501
552
  return this["UNSAFE_" + t2];
502
- }, set: function(n2) {
503
- Object.defineProperty(this, t2, { configurable: !0, writable: !0, value: n2 });
504
- } });
553
+ }, "get"), set: /* @__PURE__ */ __name(function(n2) {
554
+ Object.defineProperty(this, t2, { configurable: true, writable: true, value: n2 });
555
+ }, "set") });
505
556
  });
506
557
  var en = l$1.event;
507
558
  function rn() {
508
559
  }
560
+ __name(rn, "rn");
509
561
  function un() {
510
562
  return this.cancelBubble;
511
563
  }
564
+ __name(un, "un");
512
565
  function on() {
513
566
  return this.defaultPrevented;
514
567
  }
568
+ __name(on, "on");
515
569
  l$1.event = function(n2) {
516
570
  return en && (n2 = en(n2)), n2.persist = rn, n2.isPropagationStopped = un, n2.isDefaultPrevented = on, n2.nativeEvent = n2;
517
571
  };
518
- var ln = { enumerable: !1, configurable: !0, get: function() {
572
+ var cn = { enumerable: false, configurable: true, get: /* @__PURE__ */ __name(function() {
519
573
  return this.class;
520
- } }, fn = l$1.vnode;
574
+ }, "get") }, fn = l$1.vnode;
521
575
  l$1.vnode = function(n2) {
522
- typeof n2.type == "string" && function(n3) {
523
- var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = e2.indexOf("-") === -1;
576
+ "string" == typeof n2.type && function(n3) {
577
+ var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = -1 === e2.indexOf("-");
524
578
  for (var i2 in t2) {
525
- var c2 = t2[i2];
526
- if (!(i2 === "value" && "defaultValue" in t2 && c2 == null || Q && i2 === "children" && e2 === "noscript" || i2 === "class" || i2 === "className")) {
527
- var l2 = i2.toLowerCase();
528
- i2 === "defaultValue" && "value" in t2 && t2.value == null ? i2 = "value" : i2 === "download" && c2 === !0 ? c2 = "" : l2 === "translate" && c2 === "no" ? c2 = !1 : l2[0] === "o" && l2[1] === "n" ? l2 === "ondoubleclick" ? i2 = "ondblclick" : l2 !== "onchange" || e2 !== "input" && e2 !== "textarea" || X(t2.type) ? l2 === "onfocus" ? i2 = "onfocusin" : l2 === "onblur" ? i2 = "onfocusout" : J.test(i2) && (i2 = l2) : l2 = i2 = "oninput" : o2 && G.test(i2) ? i2 = i2.replace(K, "-$&").toLowerCase() : c2 === null && (c2 = void 0), l2 === "oninput" && u2[i2 = l2] && (i2 = "oninputCapture"), u2[i2] = c2;
579
+ var l2 = t2[i2];
580
+ if (!("value" === i2 && "defaultValue" in t2 && null == l2 || Q && "children" === i2 && "noscript" === e2 || "class" === i2 || "className" === i2)) {
581
+ var c2 = i2.toLowerCase();
582
+ "defaultValue" === i2 && "value" in t2 && null == t2.value ? i2 = "value" : "download" === i2 && true === l2 ? l2 = "" : "translate" === c2 && "no" === l2 ? l2 = false : "o" === c2[0] && "n" === c2[1] ? "ondoubleclick" === c2 ? i2 = "ondblclick" : "onchange" !== c2 || "input" !== e2 && "textarea" !== e2 || X(t2.type) ? "onfocus" === c2 ? i2 = "onfocusin" : "onblur" === c2 ? i2 = "onfocusout" : J.test(i2) && (i2 = c2) : c2 = i2 = "oninput" : o2 && G.test(i2) ? i2 = i2.replace(K, "-$&").toLowerCase() : null === l2 && (l2 = void 0), "oninput" === c2 && u2[i2 = c2] && (i2 = "oninputCapture"), u2[i2] = l2;
529
583
  }
530
584
  }
531
- e2 == "select" && u2.multiple && Array.isArray(u2.value) && (u2.value = H$1(t2.children).forEach(function(n4) {
532
- n4.props.selected = u2.value.indexOf(n4.props.value) != -1;
533
- })), e2 == "select" && u2.defaultValue != null && (u2.value = H$1(t2.children).forEach(function(n4) {
534
- n4.props.selected = u2.multiple ? u2.defaultValue.indexOf(n4.props.value) != -1 : u2.defaultValue == n4.props.value;
535
- })), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", ln)) : (t2.className && !t2.class || t2.class && t2.className) && (u2.class = u2.className = t2.className), n3.props = u2;
585
+ "select" == e2 && u2.multiple && Array.isArray(u2.value) && (u2.value = H$1(t2.children).forEach(function(n4) {
586
+ n4.props.selected = -1 != u2.value.indexOf(n4.props.value);
587
+ })), "select" == e2 && null != u2.defaultValue && (u2.value = H$1(t2.children).forEach(function(n4) {
588
+ n4.props.selected = u2.multiple ? -1 != u2.defaultValue.indexOf(n4.props.value) : u2.defaultValue == n4.props.value;
589
+ })), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", cn)) : (t2.className && !t2.class || t2.class && t2.className) && (u2.class = u2.className = t2.className), n3.props = u2;
536
590
  }(n2), n2.$$typeof = q, fn && fn(n2);
537
591
  };
538
592
  var an = l$1.__r;
@@ -543,11 +597,12 @@ var sn = l$1.diffed;
543
597
  l$1.diffed = function(n2) {
544
598
  sn && sn(n2);
545
599
  var t2 = n2.props, e2 = n2.__e;
546
- e2 != null && n2.type === "textarea" && "value" in t2 && t2.value !== e2.value && (e2.value = t2.value == null ? "" : t2.value);
600
+ null != e2 && "textarea" === n2.type && "value" in t2 && t2.value !== e2.value && (e2.value = null == t2.value ? "" : t2.value);
547
601
  };
548
602
  function bn(n2) {
549
- return !!n2.__k && (E$1(null, n2), !0);
603
+ return !!n2.__k && (E$1(null, n2), true);
550
604
  }
605
+ __name(bn, "bn");
551
606
  const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
552
607
  __proto__: null,
553
608
  Component: x,
@@ -562,21 +617,25 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
562
617
  useMemo: T$1,
563
618
  useReducer: h,
564
619
  useState: d
565
- }, Symbol.toStringTag, { value: "Module" })), Image = ({
620
+ }, Symbol.toStringTag, { value: "Module" }));
621
+ const Image = /* @__PURE__ */ __name(({
566
622
  href,
567
623
  x: x2,
568
624
  y: y2 = 0,
569
625
  height = 12
570
- }) => /* @__PURE__ */ u$1(
571
- "image",
572
- {
573
- xlinkHref: href,
574
- x: x2 - height / 2,
575
- y: y2 - height / 2,
576
- width: height,
577
- height
578
- }
579
- ), ImageChar = ({
626
+ }) => {
627
+ return /* @__PURE__ */ u$1(
628
+ "image",
629
+ {
630
+ xlinkHref: href,
631
+ x: x2 - height / 2,
632
+ y: y2 - height / 2,
633
+ width: height,
634
+ height
635
+ }
636
+ );
637
+ }, "Image");
638
+ const ImageChar = /* @__PURE__ */ __name(({
580
639
  x: x2,
581
640
  y: y2 = 0,
582
641
  height = 12,
@@ -586,7 +645,9 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
586
645
  char = "",
587
646
  fontWeight
588
647
  }) => {
589
- const renderChar = T$1(() => fontFamily === "FontAwesome" ? Utility.faChar(char) : char, [char, fontFamily]);
648
+ const renderChar = T$1(() => {
649
+ return fontFamily === "FontAwesome" ? Utility.faChar(char) : char;
650
+ }, [char, fontFamily]);
590
651
  return /* @__PURE__ */ u$1(
591
652
  "text",
592
653
  {
@@ -602,7 +663,8 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
602
663
  children: renderChar
603
664
  }
604
665
  );
605
- }, Circle = ({
666
+ }, "ImageChar");
667
+ const Circle = /* @__PURE__ */ __name(({
606
668
  radius = 32,
607
669
  fill = "navy",
608
670
  stroke = fill,
@@ -617,7 +679,8 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
617
679
  strokeWidth,
618
680
  shapeRendering
619
681
  }
620
- ), Square = ({
682
+ ), "Circle");
683
+ const Square = /* @__PURE__ */ __name(({
621
684
  radius = 30,
622
685
  cornerRadius = 0,
623
686
  fill = "white",
@@ -638,7 +701,8 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
638
701
  strokeWidth,
639
702
  shapeRendering
640
703
  }
641
- ), Rectangle = ({
704
+ ), "Square");
705
+ const Rectangle = /* @__PURE__ */ __name(({
642
706
  width = 30,
643
707
  height = 30,
644
708
  cornerRadius = 0,
@@ -646,21 +710,24 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
646
710
  stroke = "black",
647
711
  strokeWidth = 1,
648
712
  shapeRendering
649
- }) => /* @__PURE__ */ u$1(
650
- "rect",
651
- {
652
- x: -width / 2,
653
- y: -height / 2,
654
- rx: cornerRadius,
655
- ry: cornerRadius,
656
- width,
657
- height,
658
- fill,
659
- stroke: stroke || fill,
660
- strokeWidth,
661
- shapeRendering
662
- }
663
- ), Shape = ({
713
+ }) => {
714
+ return /* @__PURE__ */ u$1(
715
+ "rect",
716
+ {
717
+ x: -width / 2,
718
+ y: -height / 2,
719
+ rx: cornerRadius,
720
+ ry: cornerRadius,
721
+ width,
722
+ height,
723
+ fill,
724
+ stroke: stroke || fill,
725
+ strokeWidth,
726
+ shapeRendering
727
+ }
728
+ );
729
+ }, "Rectangle");
730
+ const Shape = /* @__PURE__ */ __name(({
664
731
  shape = "circle",
665
732
  height = 128,
666
733
  width,
@@ -709,7 +776,8 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
709
776
  }
710
777
  );
711
778
  }
712
- }, Icon = ({
779
+ }, "Shape");
780
+ const Icon = /* @__PURE__ */ __name(({
713
781
  shape = "circle",
714
782
  width,
715
783
  height = 32,
@@ -725,105 +793,122 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
725
793
  yOffset = 0,
726
794
  cornerRadius,
727
795
  shapeRendering
728
- }) => /* @__PURE__ */ u$1(k$1, { children: [
729
- /* @__PURE__ */ u$1(
730
- Shape,
731
- {
732
- shape,
733
- width,
734
- height,
735
- fill,
736
- stroke,
737
- strokeWidth,
738
- shapeRendering,
739
- cornerRadius
740
- }
741
- ),
742
- imageUrl ? /* @__PURE__ */ u$1(
743
- Image,
744
- {
745
- href: imageUrl,
746
- x: xOffset,
747
- y: yOffset,
748
- height: height - padding
749
- }
750
- ) : /* @__PURE__ */ u$1(
751
- ImageChar,
752
- {
753
- x: xOffset,
754
- y: yOffset,
755
- height: height - padding,
756
- fontFamily: imageFontFamily,
757
- char: imageChar,
758
- fill: imageCharFill,
759
- fontWeight: 400
760
- }
761
- )
762
- ] }), Icons = ({
796
+ }) => {
797
+ return /* @__PURE__ */ u$1(k$1, { children: [
798
+ /* @__PURE__ */ u$1(
799
+ Shape,
800
+ {
801
+ shape,
802
+ width,
803
+ height,
804
+ fill,
805
+ stroke,
806
+ strokeWidth,
807
+ shapeRendering,
808
+ cornerRadius
809
+ }
810
+ ),
811
+ imageUrl ? /* @__PURE__ */ u$1(
812
+ Image,
813
+ {
814
+ href: imageUrl,
815
+ x: xOffset,
816
+ y: yOffset,
817
+ height: height - padding
818
+ }
819
+ ) : /* @__PURE__ */ u$1(
820
+ ImageChar,
821
+ {
822
+ x: xOffset,
823
+ y: yOffset,
824
+ height: height - padding,
825
+ fontFamily: imageFontFamily,
826
+ char: imageChar,
827
+ fill: imageCharFill,
828
+ fontWeight: 400
829
+ }
830
+ )
831
+ ] });
832
+ }, "Icon");
833
+ const Icons = /* @__PURE__ */ __name(({
763
834
  icons = []
764
835
  }) => {
765
- const IconComponents = icons.map((cat) => /* @__PURE__ */ u$1(
766
- "g",
767
- {
768
- id: cat.id,
769
- children: /* @__PURE__ */ u$1(
770
- Icon,
771
- {
772
- ...cat
773
- }
774
- )
775
- },
776
- cat.id
777
- ));
836
+ const IconComponents = icons.map((cat) => {
837
+ return /* @__PURE__ */ u$1(
838
+ "g",
839
+ {
840
+ id: cat.id,
841
+ children: /* @__PURE__ */ u$1(
842
+ Icon,
843
+ {
844
+ ...cat
845
+ }
846
+ )
847
+ },
848
+ cat.id
849
+ );
850
+ });
778
851
  return /* @__PURE__ */ u$1(k$1, { children: IconComponents });
779
- }, TextLine = ({
852
+ }, "Icons");
853
+ const TextLine = /* @__PURE__ */ __name(({
780
854
  text,
781
855
  height = 12,
782
856
  anchor = "middle",
783
857
  baseline = "middle",
784
858
  fontFamily = "Verdana",
785
859
  fill = "black"
786
- }) => /* @__PURE__ */ u$1(
787
- "text",
788
- {
789
- "font-family": fontFamily,
790
- "font-size": `${height}px`,
791
- "text-anchor": anchor,
792
- "dominant-baseline": baseline,
793
- fill,
794
- children: text
795
- }
796
- ), Text = ({
860
+ }) => {
861
+ return /* @__PURE__ */ u$1(
862
+ "text",
863
+ {
864
+ "font-family": fontFamily,
865
+ "font-size": `${height}px`,
866
+ "text-anchor": anchor,
867
+ "dominant-baseline": baseline,
868
+ fill,
869
+ children: text
870
+ }
871
+ );
872
+ }, "TextLine");
873
+ const Text = /* @__PURE__ */ __name(({
797
874
  text,
798
875
  height = 12,
799
876
  fontFamily = "Verdana",
800
877
  fill = "black",
801
878
  onSizeUpdate
802
879
  }) => {
803
- const [totalWidth, setTotalWidth] = d(0), [totalHeight, setTotalHeight] = d(0);
880
+ const [totalWidth, setTotalWidth] = d(0);
881
+ const [totalHeight, setTotalHeight] = d(0);
804
882
  y(() => {
805
- onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });
883
+ if (onSizeUpdate) {
884
+ onSizeUpdate({ width: totalWidth, height: totalHeight });
885
+ }
806
886
  }, [totalWidth, totalHeight, onSizeUpdate]);
807
- const parts = T$1(() => text.split(`
808
- `), [text]);
887
+ const parts = T$1(() => {
888
+ return text.split("\n");
889
+ }, [text]);
809
890
  _(() => {
810
891
  const size = Utility.textSize(parts, fontFamily, height);
811
- setTotalWidth(size.width), setTotalHeight(size.height);
892
+ setTotalWidth(size.width);
893
+ setTotalHeight(size.height);
812
894
  }, [fontFamily, height, parts]);
813
895
  const TextLines = T$1(() => {
814
896
  const yOffset = -(totalHeight / 2) + height / 2;
815
- return parts.map((p2, i2) => /* @__PURE__ */ u$1("g", { transform: `translate(0 ${yOffset + i2 * (height + 2)})`, children: /* @__PURE__ */ u$1(
816
- TextLine,
817
- {
818
- text: p2,
819
- height,
820
- fontFamily,
821
- fill
822
- }
823
- ) }, `key-${i2}`));
897
+ return parts.map((p2, i2) => {
898
+ return /* @__PURE__ */ u$1("g", { transform: `translate(0 ${yOffset + i2 * (height + 2)})`, children: /* @__PURE__ */ u$1(
899
+ TextLine,
900
+ {
901
+ text: p2,
902
+ height,
903
+ fontFamily,
904
+ fill
905
+ }
906
+ ) }, `key-${i2}`);
907
+ });
824
908
  }, [parts, totalHeight, height, fontFamily, fill]);
825
909
  return /* @__PURE__ */ u$1("g", { children: TextLines });
826
- }, TextBox = ({
910
+ }, "Text");
911
+ const TextBox = /* @__PURE__ */ __name(({
827
912
  text,
828
913
  height = 12,
829
914
  fontFamily = "Verdana",
@@ -835,13 +920,20 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
835
920
  cornerRadius = 0,
836
921
  onSizeUpdate
837
922
  }) => {
838
- const [textWidth, setTextWidthUpdate] = d(0), [textHeight, setTextHeightUpdate] = d(0);
923
+ const [textWidth, setTextWidthUpdate] = d(0);
924
+ const [textHeight, setTextHeightUpdate] = d(0);
839
925
  y(() => {
840
- onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });
926
+ if (onSizeUpdate) {
927
+ onSizeUpdate({ width: textWidth, height: textHeight });
928
+ }
841
929
  }, [textWidth, textHeight, onSizeUpdate]);
842
930
  const onTextSizeUpdate = q$1((size) => {
843
- setTextWidthUpdate(size.width), setTextHeightUpdate(size.height);
844
- }, []), w2 = textWidth + padding * 2 + strokeWidth, h2 = textHeight + padding * 2 + strokeWidth, textOffsetY = Math.floor(height / 10);
931
+ setTextWidthUpdate(size.width);
932
+ setTextHeightUpdate(size.height);
933
+ }, []);
934
+ const w2 = textWidth + padding * 2 + strokeWidth;
935
+ const h2 = textHeight + padding * 2 + strokeWidth;
936
+ const textOffsetY = Math.floor(height / 10);
845
937
  return /* @__PURE__ */ u$1(k$1, { children: [
846
938
  /* @__PURE__ */ u$1(
847
939
  Rectangle,
@@ -865,7 +957,8 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
865
957
  }
866
958
  ) })
867
959
  ] });
868
- }, LabelledRect = ({
960
+ }, "TextBox");
961
+ const LabelledRect = /* @__PURE__ */ __name(({
869
962
  text,
870
963
  height = 12,
871
964
  width = 12,
@@ -879,13 +972,19 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
879
972
  cornerRadius = 0,
880
973
  onSizeUpdate
881
974
  }) => {
882
- const [actualWidth, setActualWidthUpdate] = d(width), [actualHeight, setActualHeightUpdate] = d(height);
883
- return _(() => {
975
+ const [actualWidth, setActualWidthUpdate] = d(width);
976
+ const [actualHeight, setActualHeightUpdate] = d(height);
977
+ _(() => {
884
978
  const size = Utility.textSize(text, fontFamily, fontSize);
885
- setActualWidthUpdate(size.width + padding * 2), setActualHeightUpdate(size.height + padding * 2);
886
- }, [text, fontFamily, fontSize, padding]), _(() => {
887
- onSizeUpdate && onSizeUpdate({ width: actualWidth, height: actualHeight });
888
- }, [actualWidth, actualHeight, padding, onSizeUpdate]), /* @__PURE__ */ u$1(k$1, { children: [
979
+ setActualWidthUpdate(size.width + padding * 2);
980
+ setActualHeightUpdate(size.height + padding * 2);
981
+ }, [text, fontFamily, fontSize, padding]);
982
+ _(() => {
983
+ if (onSizeUpdate) {
984
+ onSizeUpdate({ width: actualWidth, height: actualHeight });
985
+ }
986
+ }, [actualWidth, actualHeight, padding, onSizeUpdate]);
987
+ return /* @__PURE__ */ u$1(k$1, { children: [
889
988
  /* @__PURE__ */ u$1(
890
989
  Rectangle,
891
990
  {
@@ -909,7 +1008,8 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
909
1008
  }
910
1009
  ) })
911
1010
  ] });
912
- }, IconLabelledRect = ({
1011
+ }, "LabelledRect");
1012
+ const IconLabelledRect = /* @__PURE__ */ __name(({
913
1013
  icon,
914
1014
  iconFontFamily,
915
1015
  text,
@@ -923,41 +1023,44 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
923
1023
  textFill = "black",
924
1024
  strokeWidth = 1,
925
1025
  cornerRadius = 0
926
- }) => /* @__PURE__ */ u$1(k$1, { children: [
927
- /* @__PURE__ */ u$1(
928
- Rectangle,
929
- {
930
- width,
931
- height,
932
- fill,
933
- stroke,
934
- strokeWidth,
935
- cornerRadius
936
- }
937
- ),
938
- /* @__PURE__ */ u$1("g", { transform: `translate(${-(width / 2) + padding} ${-(height / 2) + padding})`, children: /* @__PURE__ */ u$1(
939
- Icon,
940
- {
941
- shape: "square",
942
- imageFontFamily: iconFontFamily,
943
- imageChar: icon,
944
- height,
945
- fill,
946
- imageCharFill: textFill
947
- }
948
- ) }),
949
- /* @__PURE__ */ u$1("g", { transform: `translate(${-(width / 2) + padding * 2 + height} ${-(height / 2) + padding})`, children: /* @__PURE__ */ u$1(
950
- TextLine,
951
- {
952
- text,
953
- fontFamily,
954
- height: fontSize,
955
- fill: textFill,
956
- anchor: "start",
957
- baseline: "hanging"
958
- }
959
- ) })
960
- ] }), Edge = ({
1026
+ }) => {
1027
+ return /* @__PURE__ */ u$1(k$1, { children: [
1028
+ /* @__PURE__ */ u$1(
1029
+ Rectangle,
1030
+ {
1031
+ width,
1032
+ height,
1033
+ fill,
1034
+ stroke,
1035
+ strokeWidth,
1036
+ cornerRadius
1037
+ }
1038
+ ),
1039
+ /* @__PURE__ */ u$1("g", { transform: `translate(${-(width / 2) + padding} ${-(height / 2) + padding})`, children: /* @__PURE__ */ u$1(
1040
+ Icon,
1041
+ {
1042
+ shape: "square",
1043
+ imageFontFamily: iconFontFamily,
1044
+ imageChar: icon,
1045
+ height,
1046
+ fill,
1047
+ imageCharFill: textFill
1048
+ }
1049
+ ) }),
1050
+ /* @__PURE__ */ u$1("g", { transform: `translate(${-(width / 2) + padding * 2 + height} ${-(height / 2) + padding})`, children: /* @__PURE__ */ u$1(
1051
+ TextLine,
1052
+ {
1053
+ text,
1054
+ fontFamily,
1055
+ height: fontSize,
1056
+ fill: textFill,
1057
+ anchor: "start",
1058
+ baseline: "hanging"
1059
+ }
1060
+ ) })
1061
+ ] });
1062
+ }, "IconLabelledRect");
1063
+ const Edge = /* @__PURE__ */ __name(({
961
1064
  label,
962
1065
  labelPos,
963
1066
  labelFill = "black",
@@ -966,51 +1069,72 @@ const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
966
1069
  stroke,
967
1070
  strokeWidth,
968
1071
  strokeDasharray
969
- }) => /* @__PURE__ */ u$1(k$1, { children: [
970
- /* @__PURE__ */ u$1("path", { d: path, stroke, style: { strokeWidth, strokeDasharray } }),
971
- label && labelPos && labelPos.length === 2 ? /* @__PURE__ */ u$1("g", { transform: `translate(${labelPos[0]} ${labelPos[1]})`, children: /* @__PURE__ */ u$1(Text, { text: label, fill: labelFill, height: labelHeight }) }) : void 0
972
- ] });
1072
+ }) => {
1073
+ return /* @__PURE__ */ u$1(k$1, { children: [
1074
+ /* @__PURE__ */ u$1("path", { d: path, stroke, style: { strokeWidth, strokeDasharray } }),
1075
+ label && labelPos && labelPos.length === 2 ? /* @__PURE__ */ u$1("g", { transform: `translate(${labelPos[0]} ${labelPos[1]})`, children: /* @__PURE__ */ u$1(Text, { text: label, fill: labelFill, height: labelHeight }) }) : void 0
1076
+ ] });
1077
+ }, "Edge");
973
1078
  function render(C2, props, parent, replaceNode) {
974
1079
  E$1(_$1(C2, props), parent, replaceNode);
975
1080
  }
1081
+ __name(render, "render");
976
1082
  function svgRender(C2, props, parent, replaceNode) {
977
1083
  E$1(_$1("svg", null, _$1(C2, props)), parent, replaceNode);
978
1084
  }
979
- class HTMLAdapter extends HTMLWidget {
1085
+ __name(svgRender, "svgRender");
1086
+ const _HTMLAdapter = class _HTMLAdapter extends HTMLWidget {
980
1087
  constructor(_component) {
981
- super(), this._component = _component;
1088
+ super();
1089
+ this._component = _component;
982
1090
  }
983
1091
  props(_2) {
984
- return arguments.length ? (this._props = { ...this._props, ..._2 }, this) : this._props;
1092
+ if (!arguments.length) return this._props;
1093
+ this._props = { ...this._props, ..._2 };
1094
+ return this;
985
1095
  }
986
1096
  prop(_2, value) {
987
- return arguments.length === 1 ? this._props[_2] : (this._props[_2] = value, this);
1097
+ if (arguments.length === 1) return this._props[_2];
1098
+ this._props[_2] = value;
1099
+ return this;
988
1100
  }
989
1101
  update(domNode, element) {
990
- super.update(domNode, element), render(this._component, this._props, domNode);
1102
+ super.update(domNode, element);
1103
+ render(this._component, this._props, domNode);
991
1104
  }
992
- }
1105
+ };
1106
+ __name(_HTMLAdapter, "HTMLAdapter");
1107
+ let HTMLAdapter = _HTMLAdapter;
993
1108
  HTMLAdapter.prototype._class += " react_HTMLAdapter";
994
1109
  HTMLAdapter.prototype.publish("props", {}, "object", "Properties");
995
- class SVGAdapter extends SVGWidget {
1110
+ const _SVGAdapter = class _SVGAdapter extends SVGWidget {
996
1111
  constructor(_component) {
997
- super(), this._component = _component;
1112
+ super();
1113
+ this._component = _component;
998
1114
  }
999
1115
  props(_2) {
1000
- return arguments.length ? (this._props = { ...this._props, ..._2 }, this) : this._props;
1116
+ if (!arguments.length) return this._props;
1117
+ this._props = { ...this._props, ..._2 };
1118
+ return this;
1001
1119
  }
1002
1120
  prop(_2, value) {
1003
- return arguments.length === 1 ? this._props[_2] : (this._props[_2] = value, this);
1121
+ if (arguments.length === 1) return this._props[_2];
1122
+ this._props[_2] = value;
1123
+ return this;
1004
1124
  }
1005
1125
  update(domNode, element) {
1006
- super.update(domNode, element), render(this._component, this._props, domNode);
1126
+ super.update(domNode, element);
1127
+ render(this._component, this._props, domNode);
1007
1128
  }
1008
- }
1129
+ };
1130
+ __name(_SVGAdapter, "SVGAdapter");
1131
+ let SVGAdapter = _SVGAdapter;
1009
1132
  SVGAdapter.prototype._class += " react_SVGAdapter";
1010
1133
  SVGAdapter.prototype.publish("props", {}, "object", "Properties");
1011
- const Span = ({
1134
+ const Span = /* @__PURE__ */ __name(({
1012
1135
  text
1013
- }) => /* @__PURE__ */ u$1("span", { children: text }), Annotations = ({
1136
+ }) => /* @__PURE__ */ u$1("span", { children: text }), "Span");
1137
+ const Annotations = /* @__PURE__ */ __name(({
1014
1138
  x: x2,
1015
1139
  y: y2,
1016
1140
  annotationIDs = [],
@@ -1032,7 +1156,8 @@ const Span = ({
1032
1156
  )
1033
1157
  );
1034
1158
  return /* @__PURE__ */ u$1(k$1, { children: IconComponents });
1035
- }, Vertex = ({
1159
+ }, "Annotations");
1160
+ const Vertex = /* @__PURE__ */ __name(({
1036
1161
  categoryID = "",
1037
1162
  text = "",
1038
1163
  textHeight = 12,
@@ -1045,7 +1170,7 @@ const Span = ({
1045
1170
  textboxStroke,
1046
1171
  textFontFamily,
1047
1172
  onSizeUpdate,
1048
- showLabel = !0,
1173
+ showLabel = true,
1049
1174
  scale = 1
1050
1175
  }) => {
1051
1176
  icon = {
@@ -1054,19 +1179,27 @@ const Span = ({
1054
1179
  fill: "transparent",
1055
1180
  ...icon
1056
1181
  };
1057
- const [textBoxWidth, setTextBoxWidthUpdate] = d(0), [textBoxHeight, setTextBoxHeightUpdate] = d(0);
1182
+ const [textBoxWidth, setTextBoxWidthUpdate] = d(0);
1183
+ const [textBoxHeight, setTextBoxHeightUpdate] = d(0);
1058
1184
  y(() => {
1059
- onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });
1185
+ if (onSizeUpdate) {
1186
+ onSizeUpdate({ width: 0, height: 0 });
1187
+ }
1060
1188
  }, [textBoxWidth, textBoxHeight, onSizeUpdate]);
1061
1189
  let width = textBoxWidth;
1062
1190
  width += 4;
1063
1191
  let offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
1064
1192
  const textboxOffsetY = icon.height / 3 + textBoxHeight / 2 + textPadding;
1065
1193
  let annotationOffsetY = icon.height / 3 + textBoxHeight + textPadding + annotationsHeight / 3;
1066
- showLabel || (offsetY += (textHeight + 8) / 2, annotationOffsetY -= textBoxHeight + textPadding);
1194
+ if (!showLabel) {
1195
+ offsetY += (textHeight + 8) / 2;
1196
+ annotationOffsetY -= textBoxHeight + textPadding;
1197
+ }
1067
1198
  const onTextBoxSizeUpdate = q$1((size) => {
1068
- setTextBoxWidthUpdate(size.width), setTextBoxHeightUpdate(size.height);
1069
- }, []), label = showLabel ? /* @__PURE__ */ u$1("g", { transform: `translate(0 ${textboxOffsetY})`, children: /* @__PURE__ */ u$1(
1199
+ setTextBoxWidthUpdate(size.width);
1200
+ setTextBoxHeightUpdate(size.height);
1201
+ }, []);
1202
+ const label = showLabel ? /* @__PURE__ */ u$1("g", { transform: `translate(0 ${textboxOffsetY})`, children: /* @__PURE__ */ u$1(
1070
1203
  TextBox,
1071
1204
  {
1072
1205
  text,
@@ -1087,7 +1220,8 @@ const Span = ({
1087
1220
  /* @__PURE__ */ u$1(Icon, { ...icon }),
1088
1221
  label
1089
1222
  ] });
1090
- }, Vertex2 = ({
1223
+ }, "Vertex");
1224
+ const Vertex2 = /* @__PURE__ */ __name(({
1091
1225
  categoryID = "",
1092
1226
  text = "",
1093
1227
  textHeight = 12,
@@ -1108,7 +1242,21 @@ const Span = ({
1108
1242
  shape: "square",
1109
1243
  ...icon
1110
1244
  };
1111
- const textBoxHeight = textHeight + textPadding * 2, { width } = T$1(() => Utility.textSize(text, textFontFamily, textHeight, !1), [text, textFontFamily, textHeight]), stepSize = annotationsHeight, textboxStrokeWidth = 1, halfTextboxHeight = textBoxHeight / 2, offsetX = 0, offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2, iconOffsetX = -icon.height / 2, iconOffsetY = 0, textboxOffsetX = Math.ceil(width / 2 + textPadding), textboxOffsetY = halfTextboxHeight - icon.height / 2, annotationOffsetX = stepSize / 2, annotationOffsetY = halfTextboxHeight;
1245
+ const textBoxHeight = textHeight + textPadding * 2;
1246
+ const { width } = T$1(() => {
1247
+ return Utility.textSize(text, textFontFamily, textHeight, false);
1248
+ }, [text, textFontFamily, textHeight]);
1249
+ const stepSize = annotationsHeight;
1250
+ const textboxStrokeWidth = 1;
1251
+ const halfTextboxHeight = textBoxHeight / 2;
1252
+ const offsetX = 0;
1253
+ const offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
1254
+ const iconOffsetX = -icon.height / 2;
1255
+ const iconOffsetY = 0;
1256
+ const textboxOffsetX = Math.ceil(width / 2 + textPadding);
1257
+ const textboxOffsetY = halfTextboxHeight - icon.height / 2;
1258
+ const annotationOffsetX = stepSize / 2;
1259
+ const annotationOffsetY = halfTextboxHeight;
1112
1260
  return categoryID ? /* @__PURE__ */ u$1(
1113
1261
  "g",
1114
1262
  {
@@ -1187,7 +1335,8 @@ const Span = ({
1187
1335
  }
1188
1336
  )
1189
1337
  ] });
1190
- }, Vertex3 = ({
1338
+ }, "Vertex2");
1339
+ const Vertex3 = /* @__PURE__ */ __name(({
1191
1340
  text = "",
1192
1341
  textHeight = 10,
1193
1342
  textPadding = 4,
@@ -1201,7 +1350,7 @@ const Span = ({
1201
1350
  cornerRadius = 3,
1202
1351
  icon = {},
1203
1352
  subText = { text: "" },
1204
- showLabel = !0,
1353
+ showLabel = true,
1205
1354
  noLabelRadius = 5,
1206
1355
  expansionIcon,
1207
1356
  scale = 1
@@ -1214,12 +1363,14 @@ const Span = ({
1214
1363
  fill: "transparent",
1215
1364
  strokeWidth: 0,
1216
1365
  ...icon
1217
- }, subText = {
1366
+ };
1367
+ subText = {
1218
1368
  text: "",
1219
1369
  fill: "white",
1220
1370
  textFill: "#555555",
1221
1371
  ...subText
1222
- }, expansionIcon = expansionIcon ? {
1372
+ };
1373
+ expansionIcon = expansionIcon ? {
1223
1374
  height: 16,
1224
1375
  shape: "circle",
1225
1376
  padding: 6,
@@ -1232,12 +1383,21 @@ const Span = ({
1232
1383
  ...expansionIcon
1233
1384
  } : void 0;
1234
1385
  let fullAnnotationWidth = 0;
1235
- const annoOffsetY = 0, labelWidth = T$1(() => Utility.textSize(text, textFontFamily, textHeight, !1).width, [text, textFontFamily, textHeight]);
1386
+ const annoOffsetY = 0;
1387
+ const labelWidth = T$1(() => {
1388
+ return Utility.textSize(text, textFontFamily, textHeight, false).width;
1389
+ }, [text, textFontFamily, textHeight]);
1236
1390
  let labelShapeWidth = 0;
1237
- text !== "" && (labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2), fullAnnotationWidth += labelShapeWidth + annotationGutter;
1238
- const textOffsetX = fullAnnotationWidth - labelShapeWidth / 2, textShapeHeight = textHeight + textPadding * 2 + textboxStrokeWidth * 2, annotationArr = [];
1391
+ if (text !== "") {
1392
+ labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2;
1393
+ }
1394
+ fullAnnotationWidth += labelShapeWidth + annotationGutter;
1395
+ const textOffsetX = fullAnnotationWidth - labelShapeWidth / 2;
1396
+ const textShapeHeight = textHeight + textPadding * 2 + textboxStrokeWidth * 2;
1397
+ const annotationArr = [];
1239
1398
  annotations.forEach((anno, idx) => {
1240
- const annoText = anno.imageChar, annoShapeWidth = textShapeHeight;
1399
+ const annoText = anno.imageChar;
1400
+ const annoShapeWidth = textShapeHeight;
1241
1401
  fullAnnotationWidth += annoShapeWidth + annotationGutter;
1242
1402
  const annoOffsetX = fullAnnotationWidth - annoShapeWidth / 2;
1243
1403
  annotationArr.push(
@@ -1254,7 +1414,10 @@ const Span = ({
1254
1414
  }
1255
1415
  ) }, idx)
1256
1416
  );
1257
- }), annotations.length > 0 && (fullAnnotationWidth += annotationGutter * (annotations.length - 1));
1417
+ });
1418
+ if (annotations.length > 0) {
1419
+ fullAnnotationWidth += annotationGutter * (annotations.length - 1);
1420
+ }
1258
1421
  const textElement = /* @__PURE__ */ u$1("g", { "data-click": "text", transform: `translate(${textOffsetX} ${annoOffsetY})`, children: !showLabel || text === "" ? /* @__PURE__ */ u$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : /* @__PURE__ */ u$1(
1259
1422
  TextBox,
1260
1423
  {
@@ -1268,11 +1431,18 @@ const Span = ({
1268
1431
  fontFamily: textFontFamily,
1269
1432
  cornerRadius
1270
1433
  }
1271
- ) }), iconHeight = icon.height || 20, iconStrokeWidth = icon.strokeWidth || 0, iconOffsetX = 0;
1434
+ ) });
1435
+ const iconHeight = icon.height || 20;
1436
+ const iconStrokeWidth = icon.strokeWidth || 0;
1437
+ const iconOffsetX = 0;
1272
1438
  let iconOffsetY = 0;
1273
1439
  const subTextOffsetX = 0;
1274
1440
  let subTextOffsetY = textShapeHeight + annotationGutter * 2;
1275
- text !== "" || annotationArr.length > 0 ? iconOffsetY = -(iconHeight / 2) - iconStrokeWidth - textShapeHeight / 2 - annotationGutter * 2 : subText.text !== "" && (subTextOffsetY = iconHeight / 2 + iconStrokeWidth + annotationGutter * 2);
1441
+ if (text !== "" || annotationArr.length > 0) {
1442
+ iconOffsetY = -(iconHeight / 2) - iconStrokeWidth - textShapeHeight / 2 - annotationGutter * 2;
1443
+ } else if (subText.text !== "") {
1444
+ subTextOffsetY = iconHeight / 2 + iconStrokeWidth + annotationGutter * 2;
1445
+ }
1276
1446
  const subtextElement = subText.text === "" ? null : /* @__PURE__ */ u$1(
1277
1447
  "g",
1278
1448
  {
@@ -1305,7 +1475,8 @@ const Span = ({
1305
1475
  ] }),
1306
1476
  subtextElement
1307
1477
  ] });
1308
- }, CentroidVertex3 = function({
1478
+ }, "Vertex3");
1479
+ const CentroidVertex3 = /* @__PURE__ */ __name(function({
1309
1480
  id,
1310
1481
  categoryID = "",
1311
1482
  text = "",
@@ -1324,7 +1495,7 @@ const Span = ({
1324
1495
  expansionIcon,
1325
1496
  scale = 1
1326
1497
  }) {
1327
- return icon = {
1498
+ icon = {
1328
1499
  height: 91,
1329
1500
  padding: 40,
1330
1501
  imageCharFill: "#555555",
@@ -1335,38 +1506,42 @@ const Span = ({
1335
1506
  strokeWidth: 4,
1336
1507
  yOffset: -15,
1337
1508
  ...icon
1338
- }, subText = {
1509
+ };
1510
+ subText = {
1339
1511
  text: "",
1340
1512
  fill: "transparent",
1341
1513
  textFill: "#555555",
1342
1514
  ...subText
1343
- }, /* @__PURE__ */ u$1(
1515
+ };
1516
+ const props = {
1517
+ id,
1518
+ categoryID,
1519
+ text,
1520
+ textHeight,
1521
+ textPadding,
1522
+ textFill,
1523
+ textboxFill,
1524
+ textboxStroke,
1525
+ textboxStrokeWidth,
1526
+ textFontFamily,
1527
+ annotationGutter,
1528
+ annotations,
1529
+ cornerRadius,
1530
+ icon,
1531
+ subText,
1532
+ expansionIcon,
1533
+ scale
1534
+ };
1535
+ return /* @__PURE__ */ u$1(
1344
1536
  Vertex3,
1345
1537
  {
1346
- ...{
1347
- id,
1348
- categoryID,
1349
- text,
1350
- textHeight,
1351
- textPadding,
1352
- textFill,
1353
- textboxFill,
1354
- textboxStroke,
1355
- textboxStrokeWidth,
1356
- textFontFamily,
1357
- annotationGutter,
1358
- annotations,
1359
- cornerRadius,
1360
- icon,
1361
- subText,
1362
- expansionIcon,
1363
- scale
1364
- },
1538
+ ...props,
1365
1539
  icon,
1366
1540
  subText
1367
1541
  }
1368
1542
  );
1369
- }, Vertex4 = ({
1543
+ }, "CentroidVertex3");
1544
+ const Vertex4 = /* @__PURE__ */ __name(({
1370
1545
  categoryID = "",
1371
1546
  text = "",
1372
1547
  textHeight = 10,
@@ -1382,7 +1557,7 @@ const Span = ({
1382
1557
  cornerRadius = 3,
1383
1558
  icon = {},
1384
1559
  subText = {},
1385
- showLabel = !0,
1560
+ showLabel = true,
1386
1561
  noLabelRadius = 5,
1387
1562
  iconBorderWidth = 1,
1388
1563
  iconBorderColor = "#333",
@@ -1406,20 +1581,32 @@ const Span = ({
1406
1581
  fill: "transparent",
1407
1582
  strokeWidth: 0,
1408
1583
  ...icon
1409
- }, subText = {
1584
+ };
1585
+ subText = {
1410
1586
  text: "",
1411
1587
  fill: "white",
1412
1588
  textFill: "#555555",
1413
1589
  ...subText
1414
1590
  };
1415
- const annoOffsetY = 0, labelWidth = T$1(() => Utility.textSize(text, textFontFamily, textHeight, !1).width, [text, textFontFamily, textHeight]);
1591
+ const annoOffsetY = 0;
1592
+ const labelWidth = T$1(() => {
1593
+ return Utility.textSize(text, textFontFamily, textHeight, false).width;
1594
+ }, [text, textFontFamily, textHeight]);
1416
1595
  let labelShapeWidth = 0;
1417
- text !== "" && (labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2);
1596
+ if (text !== "") {
1597
+ labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2;
1598
+ }
1418
1599
  let fullAnnotationWidth = labelShapeWidth + annotationGutter;
1419
- const textOffsetX = fullAnnotationWidth - labelShapeWidth / 2, textShapeHeight = textHeight + annotationGutter * 2 + textboxStrokeWidth * 2, annoWidthArr = annotations.map((anno) => Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, !1).width), annotationArr = [];
1600
+ const textOffsetX = fullAnnotationWidth - labelShapeWidth / 2;
1601
+ const textShapeHeight = textHeight + annotationGutter * 2 + textboxStrokeWidth * 2;
1602
+ const annoWidthArr = annotations.map((anno) => {
1603
+ return Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;
1604
+ });
1605
+ const annotationArr = [];
1420
1606
  let _labelAnnoOffsetX = fullAnnotationWidth;
1421
1607
  annotations.forEach((anno, i2) => {
1422
- const annoText = anno.imageChar, annoTextHeight = anno.height ?? textShapeHeight;
1608
+ const annoText = anno.imageChar;
1609
+ const annoTextHeight = anno.height ?? textShapeHeight;
1423
1610
  _labelAnnoOffsetX += annoWidthArr[i2] + annotationGutter;
1424
1611
  const annoOffsetX = _labelAnnoOffsetX - annoWidthArr[i2] / 2;
1425
1612
  annotationArr.push(
@@ -1437,10 +1624,14 @@ const Span = ({
1437
1624
  }
1438
1625
  ) }, i2)
1439
1626
  );
1440
- }), annotations.length > 0 && (fullAnnotationWidth += annotationGutter * (annotations.length - 1));
1627
+ });
1628
+ if (annotations.length > 0) {
1629
+ fullAnnotationWidth += annotationGutter * (annotations.length - 1);
1630
+ }
1441
1631
  const iconAnnotationArr = [];
1442
1632
  iconAnnotations.forEach((anno, i2) => {
1443
- const x2 = anno.shapeOffsetX, y2 = anno.shapeOffsetY;
1633
+ const x2 = anno.shapeOffsetX;
1634
+ const y2 = anno.shapeOffsetY;
1444
1635
  iconAnnotationArr.push(
1445
1636
  /* @__PURE__ */ u$1("g", { className: "vertex3-iconAnno", "data-click": "icon-annotation", "data-click-data": JSON.stringify(anno), transform: `translate(${x2} ${y2})`, children: /* @__PURE__ */ u$1(
1446
1637
  Icon,
@@ -1469,7 +1660,10 @@ const Span = ({
1469
1660
  fontFamily: textFontFamily,
1470
1661
  cornerRadius
1471
1662
  }
1472
- ) }), subTextOffsetX = 0, subTextOffsetY = textShapeHeight + annotationGutter * 2, subtextElement = subText.text === "" ? null : /* @__PURE__ */ u$1(
1663
+ ) });
1664
+ const subTextOffsetX = 0;
1665
+ const subTextOffsetY = textShapeHeight + annotationGutter * 2;
1666
+ const subtextElement = subText.text === "" ? null : /* @__PURE__ */ u$1(
1473
1667
  "g",
1474
1668
  {
1475
1669
  "data-click": "subtext",
@@ -1532,7 +1726,8 @@ const Span = ({
1532
1726
  ),
1533
1727
  subtextElement
1534
1728
  ] });
1535
- }, CentroidVertex4 = function({
1729
+ }, "Vertex4");
1730
+ const CentroidVertex4 = /* @__PURE__ */ __name(function({
1536
1731
  id,
1537
1732
  categoryID = "",
1538
1733
  text = "",
@@ -1549,7 +1744,7 @@ const Span = ({
1549
1744
  cornerRadius,
1550
1745
  icon = {},
1551
1746
  subText = {},
1552
- showLabel = !0,
1747
+ showLabel = true,
1553
1748
  noLabelRadius = 5,
1554
1749
  iconBorderWidth = 1,
1555
1750
  iconBorderColor = "#333",
@@ -1565,7 +1760,7 @@ const Span = ({
1565
1760
  iconText = "?",
1566
1761
  shapeRendering = "auto"
1567
1762
  }) {
1568
- return icon = {
1763
+ icon = {
1569
1764
  height: 91,
1570
1765
  padding: 40,
1571
1766
  imageCharFill: "#555555",
@@ -1576,52 +1771,56 @@ const Span = ({
1576
1771
  strokeWidth: 4,
1577
1772
  yOffset: -15,
1578
1773
  ...icon
1579
- }, subText = {
1774
+ };
1775
+ subText = {
1580
1776
  text: "",
1581
1777
  fill: "transparent",
1582
1778
  textFill: "#555555",
1583
1779
  ...subText
1584
- }, /* @__PURE__ */ u$1(
1780
+ };
1781
+ const props = {
1782
+ id,
1783
+ categoryID,
1784
+ text,
1785
+ textHeight,
1786
+ textPadding,
1787
+ textFill,
1788
+ textboxFill,
1789
+ textboxStroke,
1790
+ textboxStrokeWidth,
1791
+ textFontFamily,
1792
+ annotationGutter,
1793
+ annotations,
1794
+ iconAnnotations,
1795
+ cornerRadius,
1796
+ icon,
1797
+ subText,
1798
+ showLabel,
1799
+ noLabelRadius,
1800
+ iconBorderWidth,
1801
+ iconBorderColor,
1802
+ iconBackgroundColor,
1803
+ iconFontColor,
1804
+ iconFontSize,
1805
+ iconFontFamily,
1806
+ shapeOffsetX,
1807
+ shapeOffsetY,
1808
+ iconOffsetX,
1809
+ iconOffsetY,
1810
+ iconPadding,
1811
+ iconText,
1812
+ shapeRendering
1813
+ };
1814
+ return /* @__PURE__ */ u$1(
1585
1815
  Vertex4,
1586
1816
  {
1587
- ...{
1588
- id,
1589
- categoryID,
1590
- text,
1591
- textHeight,
1592
- textPadding,
1593
- textFill,
1594
- textboxFill,
1595
- textboxStroke,
1596
- textboxStrokeWidth,
1597
- textFontFamily,
1598
- annotationGutter,
1599
- annotations,
1600
- iconAnnotations,
1601
- cornerRadius,
1602
- icon,
1603
- subText,
1604
- showLabel,
1605
- noLabelRadius,
1606
- iconBorderWidth,
1607
- iconBorderColor,
1608
- iconBackgroundColor,
1609
- iconFontColor,
1610
- iconFontSize,
1611
- iconFontFamily,
1612
- shapeOffsetX,
1613
- shapeOffsetY,
1614
- iconOffsetX,
1615
- iconOffsetY,
1616
- iconPadding,
1617
- iconText,
1618
- shapeRendering
1619
- },
1817
+ ...props,
1620
1818
  icon,
1621
1819
  subText
1622
1820
  }
1623
1821
  );
1624
- }, Subgraph = ({
1822
+ }, "CentroidVertex4");
1823
+ const Subgraph = /* @__PURE__ */ __name(({
1625
1824
  text,
1626
1825
  width = 100,
1627
1826
  height = 100,
@@ -1630,7 +1829,7 @@ const Span = ({
1630
1829
  fontHeight = 12,
1631
1830
  fontFamily
1632
1831
  }) => {
1633
- const tSize = Utility.textSize(text, fontFamily, fontHeight, !1);
1832
+ const tSize = Utility.textSize(text, fontFamily, fontHeight, false);
1634
1833
  return /* @__PURE__ */ u$1(k$1, { children: [
1635
1834
  /* @__PURE__ */ u$1(
1636
1835
  Rectangle,
@@ -1656,7 +1855,7 @@ const Span = ({
1656
1855
  }
1657
1856
  )
1658
1857
  ] });
1659
- };
1858
+ }, "Subgraph");
1660
1859
  export {
1661
1860
  Annotations,
1662
1861
  BUILD_VERSION,