@hpcc-js/react 3.4.0 → 3.4.1

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