ikoneme-lib 0.1.0 → 0.3.0

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.
@@ -1,12 +1,12 @@
1
- import { jsxs as f, Fragment as U, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as xe, createElement as ne, useState as F, useEffect as le, useCallback as fe } from "react";
1
+ import { jsx as r, Fragment as A, jsxs as p } from "react/jsx-runtime";
2
+ import { forwardRef as pe, createElement as te, useState as M, useEffect as le, useCallback as ue } from "react";
3
3
  /**
4
4
  * @license lucide-react v0.294.0 - ISC
5
5
  *
6
6
  * This source code is licensed under the ISC license.
7
7
  * See the LICENSE file in the root directory of this source tree.
8
8
  */
9
- var ke = {
9
+ var me = {
10
10
  xmlns: "http://www.w3.org/2000/svg",
11
11
  width: 24,
12
12
  height: 24,
@@ -23,27 +23,27 @@ var ke = {
23
23
  * This source code is licensed under the ISC license.
24
24
  * See the LICENSE file in the root directory of this source tree.
25
25
  */
26
- const be = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(), H = (e, o) => {
27
- const l = xe(
28
- ({ color: r = "currentColor", size: i = 24, strokeWidth: p = 2, absoluteStrokeWidth: c, className: I = "", children: k, ...N }, T) => ne(
26
+ const we = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(), j = (e, t) => {
27
+ const o = pe(
28
+ ({ color: l = "currentColor", size: F = 24, strokeWidth: s = 2, absoluteStrokeWidth: h, className: b = "", children: u, ...k }, E) => te(
29
29
  "svg",
30
30
  {
31
- ref: T,
32
- ...ke,
33
- width: i,
34
- height: i,
35
- stroke: r,
36
- strokeWidth: c ? Number(p) * 24 / Number(i) : p,
37
- className: ["lucide", `lucide-${be(e)}`, I].join(" "),
38
- ...N
31
+ ref: E,
32
+ ...me,
33
+ width: F,
34
+ height: F,
35
+ stroke: l,
36
+ strokeWidth: h ? Number(s) * 24 / Number(F) : s,
37
+ className: ["lucide", `lucide-${we(e)}`, b].join(" "),
38
+ ...k
39
39
  },
40
40
  [
41
- ...o.map(([_, y]) => ne(_, y)),
42
- ...Array.isArray(k) ? k : [k]
41
+ ...t.map(([m, w]) => te(m, w)),
42
+ ...Array.isArray(u) ? u : [u]
43
43
  ]
44
44
  )
45
45
  );
46
- return l.displayName = `${e}`, l;
46
+ return o.displayName = `${e}`, o;
47
47
  };
48
48
  /**
49
49
  * @license lucide-react v0.294.0 - ISC
@@ -51,7 +51,7 @@ const be = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(),
51
51
  * This source code is licensed under the ISC license.
52
52
  * See the LICENSE file in the root directory of this source tree.
53
53
  */
54
- const ye = H("ArrowLeft", [
54
+ const ye = j("ArrowLeft", [
55
55
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
56
56
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
57
57
  ]);
@@ -61,7 +61,7 @@ const ye = H("ArrowLeft", [
61
61
  * This source code is licensed under the ISC license.
62
62
  * See the LICENSE file in the root directory of this source tree.
63
63
  */
64
- const ve = H("Pen", [
64
+ const ve = j("Pen", [
65
65
  ["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }]
66
66
  ]);
67
67
  /**
@@ -70,7 +70,7 @@ const ve = H("Pen", [
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
72
  */
73
- const we = H("Search", [
73
+ const be = j("Search", [
74
74
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
75
75
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
76
76
  ]);
@@ -80,7 +80,7 @@ const we = H("Search", [
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
82
  */
83
- const Ie = H("Trash2", [
83
+ const ke = j("Trash2", [
84
84
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
85
85
  ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
86
86
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
@@ -93,10 +93,71 @@ const Ie = H("Trash2", [
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
95
  */
96
- const _e = H("X", [
96
+ const Ie = j("X", [
97
97
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
98
98
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
99
- ]), h = {
99
+ ]), U = "https://ikondb.iigap.com", Se = 60 * 60 * 1e3;
100
+ let G = null, K = null;
101
+ const R = /* @__PURE__ */ new Map();
102
+ function Ce(e) {
103
+ return !e || Array.isArray(e) ? null : e.origin || e.preview || e.thumb || e.svg || null;
104
+ }
105
+ function Ee(e) {
106
+ if (!e || Array.isArray(e)) return {};
107
+ const { origin: t = null, preview: o = null, thumb: l = null, svg: F = null } = e;
108
+ return { origin: t, preview: o, thumb: l, svg: F };
109
+ }
110
+ async function _e(e) {
111
+ const t = await fetch(`${e}/api/ikons`);
112
+ if (!t.ok) throw new Error(`IkonDB GET /api/ikons -> ${t.status}`);
113
+ const o = await t.json();
114
+ return (Array.isArray(o == null ? void 0 : o.data) ? o.data : []).map((F) => ({
115
+ id: F.id,
116
+ name: F.description || "",
117
+ url: Ce(F.media)
118
+ })).filter((F) => F.url);
119
+ }
120
+ async function Ve({ baseUrl: e = U } = {}) {
121
+ return G && Date.now() - G.at < Se ? G.list : K || (K = _e(e).then((t) => (G = { at: Date.now(), list: t }, t)).finally(() => {
122
+ K = null;
123
+ }), K);
124
+ }
125
+ async function Fe(e, { baseUrl: t = U, limit: o = 20 } = {}) {
126
+ const l = (e || "").trim().toLowerCase();
127
+ if (!l) return [];
128
+ const F = await Ve({ baseUrl: t }), s = [];
129
+ for (const h of F)
130
+ if (h.name.toLowerCase().includes(l) && (s.push(h), s.length >= o))
131
+ break;
132
+ return s;
133
+ }
134
+ async function Te(e, { baseUrl: t = U } = {}) {
135
+ if (e == null) return null;
136
+ if (R.has(e)) return R.get(e);
137
+ const o = await fetch(`${t}/api/ikons/${encodeURIComponent(e)}`);
138
+ if (!o.ok) throw new Error(`IkonDB GET /api/ikons/${e} -> ${o.status}`);
139
+ const l = await o.json();
140
+ if ((l == null ? void 0 : l.status) !== "success" || !(l != null && l.data))
141
+ return R.set(e, null), null;
142
+ const F = Ee(l.data.media), s = {
143
+ id: l.data.id,
144
+ name: l.data.description || "",
145
+ url: F.origin || F.preview || F.thumb || F.svg || null,
146
+ ...F
147
+ };
148
+ return R.set(e, s), s;
149
+ }
150
+ async function Be(e) {
151
+ try {
152
+ return await Fe(e);
153
+ } catch {
154
+ return [];
155
+ }
156
+ }
157
+ function h0() {
158
+ G = null, K = null, R.clear();
159
+ }
160
+ const Ne = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='30'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='75'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", Me = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3cg%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='75'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/svg%3e", Le = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='58.5'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='1.5'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", De = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='12'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='21'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='48'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='57'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='66'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='4.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='7.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='10.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='13.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='19.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='22.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='25.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='28.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='34.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='37.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='40.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='43.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='49.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='52.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='55.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='58.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='64.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='67.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='70.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='12'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='15'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='18'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='27'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='33'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='42'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='45'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='48'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='57'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='60'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='63'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='72'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='4.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='7.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='10.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='13.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='19.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='22.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='25.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='28.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='34.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='37.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='40.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='43.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='49.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='52.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='55.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='64.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='67.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='70.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", Ke = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", Oe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2028.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2078%2078'%20style='enable-background:new%200%200%2078%2078;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill-rule:evenodd;clip-rule:evenodd;fill:%236F6F6F;}%20.st1{fill:%23303030;}%20%3c/style%3e%3cg%20id='Neutral_00000127737234708554144110000011539647311500563641_'%3e%3cg%3e%3cpath%20class='st0'%20d='M3,3L3,3C1.4,4.4,0,7.2,0,9.3V78h68.9c2.2,0,4.7-1.3,6.1-3l0,0H3V3z'/%3e%3cpath%20class='st0'%20d='M75,75L75,75c1.6-1.4,3-4.2,3-6.3V0H9.1C6.9,0,4.4,1.3,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20class='st1'%20width='3'%20height='3'/%3e%3crect%20y='75'%20class='st1'%20width='3'%20height='3'/%3e%3c/g%3e%3c/svg%3e", Ge = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261L0.102,78h140.921%20c2.063,0,4.583-1.348,5.977-3h0.102h-144L3,3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261L150.102,0H9.181%20C6.914,0,4.395,1.346,3,3h0.102h144L147,75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='65.102'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='65.102'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='147'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", Re = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='81'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='96'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='111'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='126'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='141'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3cg%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='76.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='91.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='106.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='121.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='136.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3c/g%3e%3crect%20x='147'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3cg%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3c/svg%3e", ze = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M3.084,3L3.084,3c-1.562,1.392-3,4.172-3,6.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0h-144V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M147.084,75L147.084,75c1.562-1.391,3-4.174,3-6.261V0H9.163%20C6.998,0,4.479,1.346,3.084,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='130.584'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='147.084'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.584'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='1.584'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", je = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M2.917,3L2.917,3c-1.562,1.392-3,4.172-3,6.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0h-144V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M146.917,75L146.917,75c1.562-1.391,3-4.174,3-6.261V0H8.996%20C6.831,0,4.312,1.346,2.917,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/g%3e%3crect%20x='1.5'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='12'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='21'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='48'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='57'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='66'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='4.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='7.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='10.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='13.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='19.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='22.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='25.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='28.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='34.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='37.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='40.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='43.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='49.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='52.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='55.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='58.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='64.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='67.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='70.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='144'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='142.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3cg%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='12'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='15'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='18'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='27'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='33'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='42'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='45'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='48'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='57'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='60'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='63'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='72'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='78'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='81'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='84'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='87'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='90'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='93'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='96'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='99'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='102'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='105'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='108'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='111'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='114'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='117'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='120'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='123'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='126'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='129'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='132'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='135'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='138'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='141'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='73.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='76.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='79.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='82.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='85.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='88.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='91.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='94.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='97.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='100.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='103.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='106.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='109.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='112.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='115.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='118.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='121.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='124.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='127.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='130.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='133.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='136.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='139.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='147.002'%20y='4.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='7.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='10.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='13.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='19.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='22.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='25.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='28.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='34.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='37.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='40.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='43.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='49.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='52.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='55.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='64.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='67.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='70.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3c/svg%3e", He = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", Pe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%236F6F6F'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%236F6F6F'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/svg%3e", x = {
100
161
  context: [
101
162
  { tooltip: "Male", url: "https://text2ikon.komunikon.com/gender-assets/KomunIKON_Male.svg" },
102
163
  {
@@ -152,34 +213,36 @@ const _e = H("X", [
152
213
  { tooltip: "Exclam", url: "https://text2ikon.komunikon.com/mode-assets/KomunIKON_Exclam.svg" },
153
214
  { tooltip: "Which", url: "https://text2ikon.komunikon.com/mode-assets/KomunIKON_Which.svg" }
154
215
  ],
216
+ // Direct source URLs on ikondb.iigap.com, the IkonDB instance this library
217
+ // uses everywhere (also bypasses text2ikon's `_next/image` proxy).
155
218
  root: [
156
219
  {
157
220
  tooltip: "Love/Passion",
158
- url: "https://text2ikon.komunikon.com/_next/image?url=https%3A%2F%2Fikondb.komunikon.com%2Fuploads%2Fimages%2Ficons%2FZFcaar88AP.png&w=128&q=75"
221
+ url: "https://ikondb.iigap.com/storage/media/960/ZFcaar88AP.png"
159
222
  },
160
223
  {
161
224
  tooltip: "Star/Excellence",
162
- url: "https://text2ikon.komunikon.com/_next/image?url=https%3A%2F%2Fikondb.komunikon.com%2Fuploads%2Fimages%2Ficons%2FM0ADaSXzWe.png&w=128&q=75"
225
+ url: "https://ikondb.iigap.com/storage/media/991/M0ADaSXzWe.png"
163
226
  },
164
227
  {
165
228
  tooltip: "Value/Precious",
166
- url: "https://text2ikon.komunikon.com/_next/image?url=https%3A%2F%2Fikondb.komunikon.com%2Fuploads%2Fimages%2Ficons%2F6ghAUKbdIs.png&w=128&q=75"
229
+ url: "https://ikondb.iigap.com/storage/media/942/6ghAUKbdIs.png"
167
230
  },
168
231
  {
169
232
  tooltip: "Fire/Hot",
170
- url: "https://text2ikon.komunikon.com/_next/image?url=https%3A%2F%2Fikondb.komunikon.com%2Fuploads%2Fimages%2Ficons%2Fzq0n4vHSQW.png&w=128&q=75"
233
+ url: "https://ikondb.iigap.com/storage/media/1478/zq0n4vHSQW.png"
171
234
  },
172
235
  {
173
236
  tooltip: "Water/Fluid",
174
- url: "https://text2ikon.komunikon.com/_next/image?url=https%3A%2F%2Fikondb.komunikon.com%2Fuploads%2Fimages%2Ficons%2FDVhDIm6KqB.png&w=128&q=75"
237
+ url: "https://ikondb.iigap.com/storage/media/1480/DVhDIm6KqB.png"
175
238
  },
176
239
  {
177
240
  tooltip: "Flower/Beauty",
178
- url: "https://text2ikon.komunikon.com/_next/image?url=https%3A%2F%2Fikondb.komunikon.com%2Fuploads%2Fimages%2Ficons%2FUnpCfhHsUa.png&w=128&q=75"
241
+ url: "https://ikondb.iigap.com/storage/media/1048/UnpCfhHsUa.png"
179
242
  },
180
243
  {
181
244
  tooltip: "Leaf/Nature",
182
- url: "https://text2ikon.komunikon.com/_next/image?url=https%3A%2F%2Fikondb.komunikon.com%2Fuploads%2Fimages%2Ficons%2F5Ex6my6BI7.png&w=128&q=75"
245
+ url: "https://ikondb.iigap.com/storage/media/1398/5Ex6my6BI7.png"
183
246
  }
184
247
  ],
185
248
  tenses: [
@@ -260,112 +323,185 @@ const _e = H("X", [
260
323
  url: "https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_os.svg"
261
324
  }
262
325
  ]
263
- }, W = [
264
- { id: "name", label: "Name", color: "#60a5fa", plural: !1 },
265
- { id: "verb", label: "Verb", color: "#f87171", plural: !1 },
266
- { id: "adjective", label: "Adjective", color: "#4ade80", plural: !1 },
267
- { id: "adverb", label: "Adverb", color: "#fb923c", plural: !1 },
268
- { id: "conjunction", label: "Conjunction", color: "#a78bfa", plural: !1 },
269
- { id: "neutral", label: "Neutral", color: "#94a3b8", plural: !1 },
270
- { id: "name_plural", label: "Name (plural)", color: "#60a5fa", plural: !0 },
271
- { id: "verb_plural", label: "Verb (plural)", color: "#f87171", plural: !0 },
272
- { id: "adjective_plural", label: "Adjective (plural)", color: "#4ade80", plural: !0 },
273
- { id: "adverb_plural", label: "Adverb (plural)", color: "#fb923c", plural: !0 },
274
- { id: "conjunction_plural", label: "Conjunction (plural)", color: "#a78bfa", plural: !0 },
275
- { id: "neutral_plural", label: "Neutral (plural)", color: "#94a3b8", plural: !0 }
276
- ], Se = W.map((e) => e.id), Ne = new Set(Se);
277
- function Te(e) {
278
- return W.find((o) => o.id === e) ?? null;
326
+ }, z = [
327
+ { id: "name", label: "Name", color: "#E6BE1E", plural: !1, image: Ne },
328
+ { id: "verb", label: "Verb", color: "#960000", plural: !1, image: Me },
329
+ { id: "adjective", label: "Adjective", color: "#006E96", plural: !1, image: Le },
330
+ { id: "adverb", label: "Adverb", color: "#E6821E", plural: !1, image: De },
331
+ {
332
+ id: "conjunction",
333
+ label: "Conjunction",
334
+ color: "#508C50",
335
+ plural: !1,
336
+ image: Ke
337
+ },
338
+ { id: "neutral", label: "Neutral", color: "#6F6F6F", plural: !1, image: Oe },
339
+ {
340
+ id: "name_plural",
341
+ label: "Name (plural)",
342
+ color: "#E6BE1E",
343
+ plural: !0,
344
+ image: Ge
345
+ },
346
+ {
347
+ id: "verb_plural",
348
+ label: "Verb (plural)",
349
+ color: "#960000",
350
+ plural: !0,
351
+ image: Re
352
+ },
353
+ {
354
+ id: "adjective_plural",
355
+ label: "Adjective (plural)",
356
+ color: "#006E96",
357
+ plural: !0,
358
+ image: ze
359
+ },
360
+ {
361
+ id: "adverb_plural",
362
+ label: "Adverb (plural)",
363
+ color: "#E6821E",
364
+ plural: !0,
365
+ image: je
366
+ },
367
+ {
368
+ id: "conjunction_plural",
369
+ label: "Conjunction (plural)",
370
+ color: "#508C50",
371
+ plural: !0,
372
+ image: He
373
+ },
374
+ {
375
+ id: "neutral_plural",
376
+ label: "Neutral (plural)",
377
+ color: "#6F6F6F",
378
+ plural: !0,
379
+ image: Pe
380
+ }
381
+ ], We = z.map((e) => e.id), Ae = new Set(We);
382
+ function oe(e) {
383
+ return z.find((t) => t.id === e) ?? null;
384
+ }
385
+ function $(e, t) {
386
+ const o = typeof e == "string" ? oe(e) : e;
387
+ if (!o) return {};
388
+ const l = t / 78, F = Math.max(2, Math.round(3 * l)), s = Math.max(F, Math.round(9 * l)), h = o.plural ? "11.538% 6%" : "11.538%";
389
+ return {
390
+ borderStyle: "solid",
391
+ borderColor: "transparent",
392
+ borderWidth: `${F}px`,
393
+ borderImageSource: `url("${o.image}")`,
394
+ borderImageSlice: h,
395
+ borderImageWidth: `${s}px`,
396
+ borderImageRepeat: "stretch",
397
+ // The artwork draws its own rounded outer corners and has a square inner
398
+ // edge: keep the box square and the card fill strictly inside the frame,
399
+ // so it neither peeks out around the curves nor leaves a gap inside them.
400
+ borderRadius: 0,
401
+ backgroundClip: "padding-box"
402
+ };
279
403
  }
280
- function C(e, o) {
281
- var l;
282
- return (l = h[e]) == null ? void 0 : l.find((r) => r.url === o);
404
+ function B(e, t) {
405
+ var o;
406
+ return (o = x[e]) == null ? void 0 : o.find((l) => l.url === t);
283
407
  }
284
- function Qe(e, o) {
285
- var l, r;
286
- return (r = (l = h[e]) == null ? void 0 : l[o]) == null ? void 0 : r.url;
408
+ function d0(e, t) {
409
+ var o, l;
410
+ return (l = (o = x[e]) == null ? void 0 : o[t]) == null ? void 0 : l.url;
287
411
  }
288
- function K(e) {
412
+ function V(e) {
289
413
  return e == null ? null : typeof e == "object" && "url" in e ? e.url : e;
290
414
  }
291
- function Ke(e) {
415
+ function $e(e) {
292
416
  return e == null ? null : typeof e == "object" ? e.svg || e.url || null : e;
293
417
  }
294
- function b(e) {
418
+ function y(e) {
295
419
  return { name: e.tooltip, url: e.url };
296
420
  }
297
- function re() {
421
+ function ie() {
298
422
  return {
299
- context: b(h.context[0]),
423
+ context: y(x.context[0]),
300
424
  reference: {
301
425
  left: null,
302
426
  right: null
303
427
  },
304
- role: b(h.role[0]),
305
- modes: b(h.modes[0]),
306
- root: b(h.root[0]),
428
+ role: y(x.role[0]),
429
+ modes: y(x.modes[0]),
430
+ root: y(x.root[0]),
307
431
  rootName: null,
308
- tenses: b(h.tenses[0]),
432
+ tenses: y(x.tenses[0]),
309
433
  border: null
310
434
  };
311
435
  }
312
- function $e(e) {
313
- var k, N, T, _, y, m, S;
436
+ function Ue(e) {
437
+ var u, k, E, m, w, _, I;
314
438
  if (!e) return e;
315
- const o = e.reference || { left: null, right: null }, l = typeof e.context == "string" ? C("context", e.context) : null, r = typeof e.role == "string" ? C("role", e.role) : null, i = typeof e.modes == "string" ? C("modes", e.modes) : null, p = typeof e.root == "string" ? C("root", e.root) : null, c = typeof e.tenses == "string" ? C("tenses", e.tenses) : null, I = e.border != null && Ne.has(e.border) ? e.border : null;
439
+ const t = e.reference || { left: null, right: null }, o = typeof e.context == "string" ? B("context", e.context) : null, l = typeof e.role == "string" ? B("role", e.role) : null, F = typeof e.modes == "string" ? B("modes", e.modes) : null, s = typeof e.root == "string" ? B("root", e.root) : null, h = typeof e.tenses == "string" ? B("tenses", e.tenses) : null, b = e.border != null && Ae.has(e.border) ? e.border : null;
316
440
  return {
317
441
  ...e,
318
- context: typeof e.context == "object" && ((k = e.context) == null ? void 0 : k.url) != null ? e.context : l ? b(l) : { name: "", url: e.context || "" },
442
+ context: typeof e.context == "object" && ((u = e.context) == null ? void 0 : u.url) != null ? e.context : o ? y(o) : { name: "", url: e.context || "" },
319
443
  reference: {
320
- left: o.left == null ? null : typeof o.left == "object" && ((N = o.left) == null ? void 0 : N.url) != null ? o.left : C("reference", o.left) ? b(C("reference", o.left)) : { name: "", url: o.left },
321
- right: o.right == null ? null : typeof o.right == "object" && ((T = o.right) == null ? void 0 : T.url) != null ? o.right : C("reference", o.right) ? b(C("reference", o.right)) : { name: "", url: o.right }
444
+ left: t.left == null ? null : typeof t.left == "object" && ((k = t.left) == null ? void 0 : k.url) != null ? t.left : B("reference", t.left) ? y(B("reference", t.left)) : { name: "", url: t.left },
445
+ right: t.right == null ? null : typeof t.right == "object" && ((E = t.right) == null ? void 0 : E.url) != null ? t.right : B("reference", t.right) ? y(B("reference", t.right)) : { name: "", url: t.right }
322
446
  },
323
- role: typeof e.role == "object" && ((_ = e.role) == null ? void 0 : _.url) != null ? e.role : r ? b(r) : { name: "", url: e.role || "" },
324
- modes: typeof e.modes == "object" && ((y = e.modes) == null ? void 0 : y.url) != null ? e.modes : i ? b(i) : { name: "", url: e.modes || "" },
325
- root: typeof e.root == "object" && ((m = e.root) == null ? void 0 : m.url) != null ? { ...e.root, name: e.rootName ?? e.root.name } : p ? { name: e.rootName ?? p.tooltip, url: p.url } : { name: e.rootName ?? "", url: e.root || "" },
326
- tenses: typeof e.tenses == "object" && ((S = e.tenses) == null ? void 0 : S.url) != null ? e.tenses : c ? b(c) : { name: "", url: e.tenses || "" },
327
- border: I
447
+ role: typeof e.role == "object" && ((m = e.role) == null ? void 0 : m.url) != null ? e.role : l ? y(l) : { name: "", url: e.role || "" },
448
+ modes: typeof e.modes == "object" && ((w = e.modes) == null ? void 0 : w.url) != null ? e.modes : F ? y(F) : { name: "", url: e.modes || "" },
449
+ root: typeof e.root == "object" && ((_ = e.root) == null ? void 0 : _.url) != null ? { ...e.root, name: e.rootName ?? e.root.name } : s ? { name: e.rootName ?? s.tooltip, url: s.url } : { name: e.rootName ?? "", url: e.root || "" },
450
+ tenses: typeof e.tenses == "object" && ((I = e.tenses) == null ? void 0 : I.url) != null ? e.tenses : h ? y(h) : { name: "", url: e.tenses || "" },
451
+ border: b
328
452
  };
329
453
  }
330
- function Ye(e) {
331
- return (e || []).map($e);
454
+ function s0(e) {
455
+ return (e || []).map(Ue);
332
456
  }
333
- function Re(e) {
334
- let o = 0;
335
- for (let l = 0; l < e.length; l++) {
336
- const r = e.charCodeAt(l);
337
- o = (o << 5) - o + r, o = o & o;
457
+ function Ye(e) {
458
+ let t = 0;
459
+ for (let o = 0; o < e.length; o++) {
460
+ const l = e.charCodeAt(o);
461
+ t = (t << 5) - t + l, t = t & t;
338
462
  }
339
- return Math.abs(o);
463
+ return Math.abs(t);
340
464
  }
341
- class Ce {
342
- constructor(o) {
343
- this.seed = o;
465
+ class qe {
466
+ constructor(t) {
467
+ this.seed = t;
344
468
  }
345
469
  next() {
346
- const r = Math.pow(2, 32);
347
- return this.seed = (1664525 * this.seed + 1013904223) % r, this.seed / r;
470
+ const l = Math.pow(2, 32);
471
+ return this.seed = (1664525 * this.seed + 1013904223) % l, this.seed / l;
348
472
  }
349
- nextInt(o, l) {
350
- return Math.floor(this.next() * (l - o)) + o;
473
+ nextInt(t, o) {
474
+ return Math.floor(this.next() * (o - t)) + t;
351
475
  }
352
476
  }
353
- function Je(e) {
354
- const o = e.toLowerCase().split(/\s+/).filter(Boolean), l = [];
355
- for (const r of o) {
356
- const i = { ...re() }, p = Re(r), c = new Ce(p);
357
- i.context = b(h.context[c.nextInt(0, h.context.length)]);
358
- const I = c.next() > 0.5, k = c.nextInt(1, h.reference.length);
359
- i.reference = {
360
- left: I ? b(h.reference[0]) : null,
361
- right: b(h.reference[k])
362
- }, i.role = b(h.role[c.nextInt(0, h.role.length)]), i.modes = b(h.modes[c.nextInt(0, h.modes.length)]), i.root = b(h.root[c.nextInt(0, h.root.length)]), i.tenses = b(h.tenses[c.nextInt(0, h.tenses.length)]);
363
- const N = W.filter((T) => !T.plural);
364
- i.border = N[c.nextInt(0, N.length)].id, l.push(i);
477
+ async function Xe(e) {
478
+ try {
479
+ const [t] = await Fe(e, { limit: 1 });
480
+ return t ? { name: t.name, url: t.url } : null;
481
+ } catch {
482
+ return null;
365
483
  }
366
- return l.length > 0 ? l : [re()];
367
484
  }
368
- const q = {
485
+ const Ze = { name: "Not found", url: null };
486
+ async function a0(e) {
487
+ const t = e.toLowerCase().split(/\s+/).filter(Boolean), o = await Promise.all(
488
+ t.map(async (l) => {
489
+ const F = { ...ie() }, s = Ye(l), h = new qe(s);
490
+ F.context = y(x.context[h.nextInt(0, x.context.length)]);
491
+ const b = h.next() > 0.5, u = h.nextInt(1, x.reference.length);
492
+ F.reference = {
493
+ left: b ? y(x.reference[0]) : null,
494
+ right: y(x.reference[u])
495
+ }, F.role = y(x.role[h.nextInt(0, x.role.length)]), F.modes = y(x.modes[h.nextInt(0, x.modes.length)]);
496
+ const k = await Xe(l);
497
+ F.root = k ?? Ze, F.rootName = (k == null ? void 0 : k.name) ?? null, F.tenses = y(x.tenses[h.nextInt(0, x.tenses.length)]);
498
+ const E = z.filter((m) => !m.plural);
499
+ return F.border = E[h.nextInt(0, E.length)].id, F;
500
+ })
501
+ );
502
+ return o.length > 0 ? o : [ie()];
503
+ }
504
+ const W = {
369
505
  maxWidth: "100%",
370
506
  maxHeight: "100%",
371
507
  width: "100%",
@@ -373,7 +509,7 @@ const q = {
373
509
  objectFit: "contain",
374
510
  display: "block",
375
511
  boxSizing: "border-box"
376
- }, ie = (e) => ({
512
+ }, re = (e) => ({
377
513
  display: "flex",
378
514
  alignItems: "center",
379
515
  justifyContent: "center",
@@ -383,391 +519,372 @@ const q = {
383
519
  boxSizing: "border-box",
384
520
  padding: `${e}px`
385
521
  });
386
- function Me(e = 768) {
387
- const [o, l] = F(
522
+ function Qe(e = 768) {
523
+ const [t, o] = M(
388
524
  () => typeof window < "u" && window.innerWidth < e
389
525
  );
390
526
  return le(() => {
391
- const r = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => l(r.matches);
392
- return r.addEventListener("change", i), () => r.removeEventListener("change", i);
393
- }, [e]), o;
527
+ const l = window.matchMedia(`(max-width: ${e - 1}px)`), F = () => o(l.matches);
528
+ return l.addEventListener("change", F), () => l.removeEventListener("change", F);
529
+ }, [e]), t;
394
530
  }
395
- function P({
531
+ function Y({
396
532
  ikon: e,
397
- onClick: o,
398
- size: l = 64,
399
- onZoneClick: r,
400
- selectedZone: i,
401
- isSelected: p = !1,
402
- isPaired: c = !1,
403
- onEdit: I,
404
- onDelete: k,
405
- hideActionOverlay: N = !1
533
+ onClick: t,
534
+ size: o = 64,
535
+ onZoneClick: l,
536
+ selectedZone: F,
537
+ isSelected: s = !1,
538
+ isPaired: h = !1,
539
+ onEdit: b,
540
+ onDelete: u,
541
+ hideActionOverlay: k = !1
406
542
  }) {
407
- var te, oe;
408
- const [T, _] = F(!1), y = Me(), m = e != null && e.border ? Te(e.border) : null, S = (a, R) => {
409
- r ? (R.stopPropagation(), r(a)) : o && o(R);
410
- }, $ = (a) => {
411
- r && (a.currentTarget.style.filter = "brightness(1.3)");
412
- }, v = (a) => {
413
- r && (a.currentTarget.style.filter = "brightness(1)");
414
- }, M = (a, R) => {
415
- const z = i === a;
543
+ var J, ee;
544
+ const [E, m] = M(!1), w = Qe(), _ = e != null && e.border ? oe(e.border) : null, I = (c, S) => {
545
+ l ? (S.stopPropagation(), l(c)) : t && t(S);
546
+ }, T = (c) => {
547
+ l && (c.currentTarget.style.filter = "brightness(1.3)");
548
+ }, v = (c) => {
549
+ l && (c.currentTarget.style.filter = "brightness(1)");
550
+ }, N = (c, S) => {
551
+ const O = F === c;
416
552
  return {
417
553
  // A selected zone draws a 2px inset outline; border-box keeps that
418
554
  // outline (and every zone's padding) inside the slot the grid gave it,
419
555
  // so it can't nudge a neighbour or the card edge.
420
556
  boxSizing: "border-box",
421
- ...R,
422
- cursor: r || o ? "pointer" : "default",
557
+ ...S,
558
+ cursor: l || t ? "pointer" : "default",
423
559
  transition: "all 0.2s, filter 0.2s",
424
- border: z ? "2px solid var(--ikoneme-primary)" : R.border || "none",
425
- boxShadow: z ? "0 0 8px var(--ikoneme-primary)" : "none",
560
+ border: O ? "2px solid var(--ikoneme-primary)" : S.border || "none",
561
+ boxShadow: O ? "0 0 8px var(--ikoneme-primary)" : "none",
426
562
  position: "relative"
427
563
  };
428
- }, E = (a, R) => {
429
- const z = Ke(R);
430
- if (!z) return null;
431
- const V = C(a, K(R)), ge = R && typeof R == "object" && R.name || (V == null ? void 0 : V.tooltip) || a;
432
- return /* @__PURE__ */ n(
564
+ }, L = (c, S) => {
565
+ const O = $e(S), P = B(c, V(S)), xe = S && typeof S == "object" && S.name || (P == null ? void 0 : P.tooltip) || c;
566
+ return O ? /* @__PURE__ */ r(
433
567
  "img",
434
568
  {
435
- src: z,
436
- alt: ge,
437
- style: q,
438
- onError: (he) => {
439
- he.target.style.display = "none";
569
+ src: O,
570
+ alt: xe,
571
+ style: W,
572
+ onError: (fe) => {
573
+ fe.target.style.display = "none";
440
574
  }
441
575
  }
442
- );
443
- }, t = !N && !r && (I || k), s = y ? 28 : 24, u = 4, d = 3 * s + 2 * u, g = t ? d : l, x = y || T, w = g, O = Math.max(2, Math.round(w / 40)), se = Math.max(2, Math.round(w / 44)), j = Math.max(2, Math.round(w / 72)), ae = Math.max(2, Math.round(w / 40)), X = 1.18, Z = `minmax(0, ${X}fr) repeat(4, minmax(0, ${0.95}fr)) minmax(0, ${X}fr)`, ce = "minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.6fr)", de = m ? { border: `${O}px solid ${m.color}` } : {
444
- border: p && !c ? "2px solid rgba(0, 168, 132, 0.8)" : "1px solid rgba(255, 255, 255, 0.1)"
445
- }, Q = m != null && m.plural ? {
446
- boxShadow: [
447
- `inset -${O}px 0 0 ${m.color}`,
448
- `inset -${O * 2}px 0 0 ${m.color}`,
449
- `inset -${O * 3}px 0 0 ${m.color}`,
450
- `inset 0 -${O}px 0 ${m.color}`,
451
- `inset 0 -${O * 2}px 0 ${m.color}`,
452
- `inset 0 -${O * 3}px 0 ${m.color}`
453
- ].join(", ")
454
- } : {}, ue = p && !c ? "rgba(0, 168, 132, 0.15)" : "white", Y = m && !m.plural ? Q.boxShadow : null, J = [
455
- p && !c ? "0 0 12px rgba(0, 168, 132, 0.4)" : null,
456
- i === "border" ? "0 0 0 3px var(--ikoneme-primary)" : null,
457
- Y
458
- ].filter(Boolean).join(", "), pe = ["0 0 10px rgba(0, 168, 132, 0.5)", Y].filter(Boolean).join(", "), ee = /* @__PURE__ */ f(U, { children: [
459
- /* @__PURE__ */ f(
460
- "div",
576
+ ) : S != null && S.name ? /* @__PURE__ */ r(
577
+ "span",
461
578
  {
462
- onClick: r ? () => r("border") : o ? (a) => o(a) : void 0,
463
579
  style: {
464
- width: `${w}px`,
465
- height: `${w}px`,
466
- // border-box: the coloured border is drawn *inside* renderSize, so a
467
- // card always occupies exactly the box its parent reserved for it and
468
- // the grid tracks are sized within `renderSize - 2*borderWidth`.
469
- // With content-box the border sat outside and every card overflowed
470
- // its slot by `borderWidth` on the right and bottom.
471
- boxSizing: "border-box",
472
- display: "grid",
473
- // Inset ring so the slot layout never sits flush against the border.
474
- padding: `${se}px`,
475
- // See `edgeFr`/`midFr` above. `minmax(0, …fr)` on every track is what
476
- // stops a large-intrinsic icon from inflating its track and shoving
477
- // the neighbouring slots (and the whole layout) past the card border.
478
- gridTemplateColumns: Z,
479
- gridTemplateRows: Z,
480
- cursor: o || r ? "pointer" : "default",
481
- borderRadius: "4px",
482
- // Absolute clip boundary: nothing rendered by any slot can be seen
483
- // outside the card outline, whatever its content or the card size.
484
- overflow: "hidden",
485
- flexShrink: 0,
486
- transition: "transform 0.2s, box-shadow 0.2s, border 0.2s",
487
- background: ue,
488
- boxShadow: J,
489
- ...de
490
- },
491
- onMouseEnter: (a) => {
492
- o && !r && !c && (a.currentTarget.style.transform = "scale(1.05)", p || (a.currentTarget.style.boxShadow = pe));
580
+ fontSize: "10px",
581
+ lineHeight: 1.2,
582
+ textAlign: "center",
583
+ color: "var(--ikoneme-text-secondary, #888)",
584
+ wordBreak: "break-word",
585
+ padding: "2px"
493
586
  },
494
- onMouseLeave: (a) => {
495
- o && !r && !c && (a.currentTarget.style.transform = "scale(1)", p || (a.currentTarget.style.boxShadow = J));
496
- },
497
- children: [
498
- /* @__PURE__ */ n(
499
- "div",
500
- {
501
- onClick: (a) => S("context", a),
502
- onMouseEnter: $,
503
- onMouseLeave: v,
504
- style: M("context", {
505
- gridColumn: "1 / 2",
506
- gridRow: "1 / 2",
507
- display: "flex",
508
- alignItems: "center",
509
- justifyContent: "center",
510
- background: "rgba(100, 50, 150, 0.1)",
511
- borderRight: "1px solid rgba(0, 0, 0, 0.14)",
512
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
513
- minWidth: 0,
514
- minHeight: 0,
515
- overflow: "hidden",
516
- padding: `${j}px`
517
- }),
518
- className: "ikoneme-zone",
519
- children: E("context", e.context)
520
- }
521
- ),
522
- /* @__PURE__ */ f(
523
- "div",
524
- {
525
- onClick: (a) => S("reference", a),
526
- onMouseEnter: $,
527
- onMouseLeave: v,
528
- style: M("reference", {
529
- gridColumn: "2 / 6",
530
- gridRow: "1 / 2",
531
- display: "grid",
532
- // Same treatment as the outer grid: bounded tracks + a single full-
533
- // height row so each reference sub-slot has a definite size and its
534
- // icon (sized against it) stays put.
535
- gridTemplateColumns: ce,
536
- gridTemplateRows: "minmax(0, 1fr)",
537
- background: "rgba(50, 100, 200, 0.1)",
538
- borderRight: "1px solid rgba(0, 0, 0, 0.14)",
539
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
540
- minWidth: 0,
541
- minHeight: 0,
542
- overflow: "hidden"
543
- }),
544
- className: "ikoneme-zone",
545
- children: [
546
- /* @__PURE__ */ n(
547
- "div",
548
- {
549
- style: {
550
- minWidth: 0,
551
- minHeight: 0,
552
- overflow: "hidden",
553
- borderRight: "1px solid rgba(0, 0, 0, 0.14)"
554
- }
587
+ children: S.name
588
+ }
589
+ ) : null;
590
+ }, i = !k && !l && (b || u), n = w ? 28 : 24, d = 4, a = 3 * n + 2 * d, f = i ? a : o, g = w || E, C = f, ne = Math.max(2, Math.round(C / 44)), D = Math.max(2, Math.round(C / 72)), ce = Math.max(2, Math.round(C / 40)), q = 1.18, X = `minmax(0, ${q}fr) repeat(4, minmax(0, ${0.95}fr)) minmax(0, ${q}fr)`, he = "minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.6fr)", de = _ ? $(_, C) : {
591
+ border: s && !h ? "2px solid rgba(0, 168, 132, 0.8)" : "1px solid rgba(255, 255, 255, 0.1)"
592
+ }, se = s && !h ? "rgba(0, 168, 132, 0.15)" : "white", Z = [
593
+ s && !h ? "0 0 12px rgba(0, 168, 132, 0.4)" : null,
594
+ F === "border" ? "0 0 0 3px var(--ikoneme-primary)" : null
595
+ ].filter(Boolean).join(", "), ae = "0 0 10px rgba(0, 168, 132, 0.5)", Q = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ p(
596
+ "div",
597
+ {
598
+ onClick: l ? () => l("border") : t ? (c) => t(c) : void 0,
599
+ style: {
600
+ width: `${C}px`,
601
+ height: `${C}px`,
602
+ // border-box: the coloured border is drawn *inside* renderSize, so a
603
+ // card always occupies exactly the box its parent reserved for it and
604
+ // the grid tracks are sized within `renderSize` minus the frame.
605
+ // With content-box the border sat outside and every card overflowed
606
+ // its slot by the frame width on the right and bottom.
607
+ boxSizing: "border-box",
608
+ display: "grid",
609
+ // Inset ring so the slot layout never sits flush against the border.
610
+ padding: `${ne}px`,
611
+ // See `edgeFr`/`midFr` above. `minmax(0, …fr)` on every track is what
612
+ // stops a large-intrinsic icon from inflating its track and shoving
613
+ // the neighbouring slots (and the whole layout) past the card border.
614
+ gridTemplateColumns: X,
615
+ gridTemplateRows: X,
616
+ cursor: t || l ? "pointer" : "default",
617
+ borderRadius: "4px",
618
+ // Absolute clip boundary: nothing rendered by any slot can be seen
619
+ // outside the card outline, whatever its content or the card size.
620
+ overflow: "hidden",
621
+ flexShrink: 0,
622
+ transition: "transform 0.2s, box-shadow 0.2s, border 0.2s",
623
+ backgroundColor: se,
624
+ boxShadow: Z,
625
+ ...de
626
+ },
627
+ onMouseEnter: (c) => {
628
+ t && !l && !h && (c.currentTarget.style.transform = "scale(1.05)", s || (c.currentTarget.style.boxShadow = ae));
629
+ },
630
+ onMouseLeave: (c) => {
631
+ t && !l && !h && (c.currentTarget.style.transform = "scale(1)", s || (c.currentTarget.style.boxShadow = Z));
632
+ },
633
+ children: [
634
+ /* @__PURE__ */ r(
635
+ "div",
636
+ {
637
+ onClick: (c) => I("context", c),
638
+ onMouseEnter: T,
639
+ onMouseLeave: v,
640
+ style: N("context", {
641
+ gridColumn: "1 / 2",
642
+ gridRow: "1 / 2",
643
+ display: "flex",
644
+ alignItems: "center",
645
+ justifyContent: "center",
646
+ background: "rgba(100, 50, 150, 0.1)",
647
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)",
648
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
649
+ minWidth: 0,
650
+ minHeight: 0,
651
+ overflow: "hidden",
652
+ padding: `${D}px`
653
+ }),
654
+ className: "ikoneme-zone",
655
+ children: L("context", e.context)
656
+ }
657
+ ),
658
+ /* @__PURE__ */ p(
659
+ "div",
660
+ {
661
+ onClick: (c) => I("reference", c),
662
+ onMouseEnter: T,
663
+ onMouseLeave: v,
664
+ style: N("reference", {
665
+ gridColumn: "2 / 6",
666
+ gridRow: "1 / 2",
667
+ display: "grid",
668
+ // Same treatment as the outer grid: bounded tracks + a single full-
669
+ // height row so each reference sub-slot has a definite size and its
670
+ // icon (sized against it) stays put.
671
+ gridTemplateColumns: he,
672
+ gridTemplateRows: "minmax(0, 1fr)",
673
+ background: "rgba(50, 100, 200, 0.1)",
674
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)",
675
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
676
+ minWidth: 0,
677
+ minHeight: 0,
678
+ overflow: "hidden"
679
+ }),
680
+ className: "ikoneme-zone",
681
+ children: [
682
+ /* @__PURE__ */ r(
683
+ "div",
684
+ {
685
+ style: {
686
+ minWidth: 0,
687
+ minHeight: 0,
688
+ overflow: "hidden",
689
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)"
555
690
  }
556
- ),
557
- /* @__PURE__ */ n(
558
- "div",
559
- {
560
- style: {
561
- ...ie(j),
562
- borderRight: "1px solid rgba(0, 0, 0, 0.14)"
563
- },
564
- children: K((te = e.reference) == null ? void 0 : te.left) && /* @__PURE__ */ n(
565
- "img",
566
- {
567
- src: K(e.reference.left),
568
- alt: "Asterisk",
569
- style: q,
570
- onError: (a) => {
571
- a.target.style.display = "none";
572
- }
691
+ }
692
+ ),
693
+ /* @__PURE__ */ r(
694
+ "div",
695
+ {
696
+ style: {
697
+ ...re(D),
698
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)"
699
+ },
700
+ children: V((J = e.reference) == null ? void 0 : J.left) && /* @__PURE__ */ r(
701
+ "img",
702
+ {
703
+ src: V(e.reference.left),
704
+ alt: "Asterisk",
705
+ style: W,
706
+ onError: (c) => {
707
+ c.target.style.display = "none";
573
708
  }
574
- )
575
- }
576
- ),
577
- /* @__PURE__ */ n(
578
- "div",
579
- {
580
- style: {
581
- ...ie(j),
582
- borderRight: "1px solid rgba(0, 0, 0, 0.14)"
583
- },
584
- children: K((oe = e.reference) == null ? void 0 : oe.right) && /* @__PURE__ */ n(
585
- "img",
586
- {
587
- src: K(e.reference.right),
588
- alt: "Number",
589
- style: q,
590
- onError: (a) => {
591
- a.target.style.display = "none";
592
- }
709
+ }
710
+ )
711
+ }
712
+ ),
713
+ /* @__PURE__ */ r(
714
+ "div",
715
+ {
716
+ style: {
717
+ ...re(D),
718
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)"
719
+ },
720
+ children: V((ee = e.reference) == null ? void 0 : ee.right) && /* @__PURE__ */ r(
721
+ "img",
722
+ {
723
+ src: V(e.reference.right),
724
+ alt: "Number",
725
+ style: W,
726
+ onError: (c) => {
727
+ c.target.style.display = "none";
593
728
  }
594
- )
595
- }
596
- ),
597
- /* @__PURE__ */ n("div", { style: { minWidth: 0, minHeight: 0, overflow: "hidden" } })
598
- ]
599
- }
600
- ),
601
- /* @__PURE__ */ n(
602
- "div",
603
- {
604
- onClick: (a) => S("role", a),
605
- onMouseEnter: $,
606
- onMouseLeave: v,
607
- style: M("role", {
608
- gridColumn: "6 / 7",
609
- gridRow: "1 / 2",
610
- display: "flex",
611
- alignItems: "center",
612
- justifyContent: "center",
613
- background: "rgba(200, 50, 50, 0.1)",
614
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
615
- minWidth: 0,
616
- minHeight: 0,
617
- overflow: "hidden",
618
- padding: `${j}px`
619
- }),
620
- className: "ikoneme-zone",
621
- children: E("role", e.role)
622
- }
623
- ),
624
- /* @__PURE__ */ n(
625
- "div",
626
- {
627
- onClick: (a) => S("modes", a),
628
- onMouseEnter: $,
629
- onMouseLeave: v,
630
- style: M("modes", {
631
- gridColumn: "1 / 2",
632
- gridRow: "2 / 6",
633
- display: "flex",
634
- alignItems: "center",
635
- justifyContent: "center",
636
- background: "rgba(50, 150, 100, 0.1)",
637
- borderRight: "1px solid rgba(0, 0, 0, 0.14)",
638
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
639
- minWidth: 0,
640
- minHeight: 0,
641
- overflow: "hidden",
642
- padding: `${j}px`
643
- }),
644
- className: "ikoneme-zone",
645
- children: E("modes", e.modes)
646
- }
647
- ),
648
- /* @__PURE__ */ n(
649
- "div",
650
- {
651
- onClick: (a) => S("root", a),
652
- onMouseEnter: $,
653
- onMouseLeave: v,
654
- style: M("root", {
655
- // Kept at 4 columns (not spanning into column 6) so root — and the
656
- // whole icon — stays horizontally centered: column 1 (modes) and
657
- // column 6 (below) are the same width on both sides of root.
658
- gridColumn: "2 / 6",
659
- gridRow: "2 / 6",
660
- display: "flex",
661
- alignItems: "center",
662
- justifyContent: "center",
663
- background: "rgba(150, 150, 50, 0.1)",
664
- borderRight: "1px solid rgba(0, 0, 0, 0.14)",
665
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
666
- minWidth: 0,
667
- minHeight: 0,
668
- overflow: "hidden",
669
- padding: `${ae}px`
670
- }),
671
- className: "ikoneme-zone",
672
- children: E("root", e.root)
673
- }
674
- ),
675
- /* @__PURE__ */ n(
676
- "div",
677
- {
678
- onClick: (a) => {
679
- r && (a.stopPropagation(), r("border"));
680
- },
681
- style: {
682
- gridColumn: "6 / 7",
683
- gridRow: "2 / 6",
684
- background: "rgba(0, 0, 0, 0.05)",
685
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
686
- minWidth: 0,
687
- minHeight: 0,
688
- overflow: "hidden",
689
- boxSizing: "border-box",
690
- cursor: r ? "pointer" : "default"
691
- }
692
- }
693
- ),
694
- /* @__PURE__ */ n(
695
- "div",
696
- {
697
- onClick: (a) => S("tenses", a),
698
- onMouseEnter: $,
699
- onMouseLeave: v,
700
- style: M("tenses", {
701
- gridColumn: "1 / 7",
702
- gridRow: "6 / 7",
703
- display: "flex",
704
- alignItems: "center",
705
- justifyContent: "center",
706
- background: "rgba(100, 100, 200, 0.1)",
707
- minWidth: 0,
708
- minHeight: 0,
709
- overflow: "hidden",
710
- padding: `${j}px`
711
- }),
712
- className: "ikoneme-zone",
713
- children: E("tenses", e.tenses)
729
+ }
730
+ )
731
+ }
732
+ ),
733
+ /* @__PURE__ */ r("div", { style: { minWidth: 0, minHeight: 0, overflow: "hidden" } })
734
+ ]
735
+ }
736
+ ),
737
+ /* @__PURE__ */ r(
738
+ "div",
739
+ {
740
+ onClick: (c) => I("role", c),
741
+ onMouseEnter: T,
742
+ onMouseLeave: v,
743
+ style: N("role", {
744
+ gridColumn: "6 / 7",
745
+ gridRow: "1 / 2",
746
+ display: "flex",
747
+ alignItems: "center",
748
+ justifyContent: "center",
749
+ background: "rgba(200, 50, 50, 0.1)",
750
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
751
+ minWidth: 0,
752
+ minHeight: 0,
753
+ overflow: "hidden",
754
+ padding: `${D}px`
755
+ }),
756
+ className: "ikoneme-zone",
757
+ children: L("role", e.role)
758
+ }
759
+ ),
760
+ /* @__PURE__ */ r(
761
+ "div",
762
+ {
763
+ onClick: (c) => I("modes", c),
764
+ onMouseEnter: T,
765
+ onMouseLeave: v,
766
+ style: N("modes", {
767
+ gridColumn: "1 / 2",
768
+ gridRow: "2 / 6",
769
+ display: "flex",
770
+ alignItems: "center",
771
+ justifyContent: "center",
772
+ background: "rgba(50, 150, 100, 0.1)",
773
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)",
774
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
775
+ minWidth: 0,
776
+ minHeight: 0,
777
+ overflow: "hidden",
778
+ padding: `${D}px`
779
+ }),
780
+ className: "ikoneme-zone",
781
+ children: L("modes", e.modes)
782
+ }
783
+ ),
784
+ /* @__PURE__ */ r(
785
+ "div",
786
+ {
787
+ onClick: (c) => I("root", c),
788
+ onMouseEnter: T,
789
+ onMouseLeave: v,
790
+ style: N("root", {
791
+ // Kept at 4 columns (not spanning into column 6) so root — and the
792
+ // whole icon — stays horizontally centered: column 1 (modes) and
793
+ // column 6 (below) are the same width on both sides of root.
794
+ gridColumn: "2 / 6",
795
+ gridRow: "2 / 6",
796
+ display: "flex",
797
+ alignItems: "center",
798
+ justifyContent: "center",
799
+ background: "rgba(150, 150, 50, 0.1)",
800
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)",
801
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
802
+ minWidth: 0,
803
+ minHeight: 0,
804
+ overflow: "hidden",
805
+ padding: `${ce}px`
806
+ }),
807
+ className: "ikoneme-zone",
808
+ children: L("root", e.root)
809
+ }
810
+ ),
811
+ /* @__PURE__ */ r(
812
+ "div",
813
+ {
814
+ onClick: (c) => {
815
+ l && (c.stopPropagation(), l("border"));
816
+ },
817
+ style: {
818
+ gridColumn: "6 / 7",
819
+ gridRow: "2 / 6",
820
+ background: "rgba(0, 0, 0, 0.05)",
821
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
822
+ minWidth: 0,
823
+ minHeight: 0,
824
+ overflow: "hidden",
825
+ boxSizing: "border-box",
826
+ cursor: l ? "pointer" : "default"
714
827
  }
715
- )
716
- ]
717
- }
718
- ),
719
- (m == null ? void 0 : m.plural) && /* @__PURE__ */ n(
720
- "div",
721
- {
722
- "aria-hidden": !0,
723
- style: {
724
- position: "absolute",
725
- top: 0,
726
- left: 0,
727
- right: 0,
728
- bottom: 0,
729
- width: `${w}px`,
730
- height: `${w}px`,
731
- borderRadius: "4px",
732
- pointerEvents: "none",
733
- ...Q
734
- }
735
- }
736
- )
737
- ] }), me = /* @__PURE__ */ n(
828
+ }
829
+ ),
830
+ /* @__PURE__ */ r(
831
+ "div",
832
+ {
833
+ onClick: (c) => I("tenses", c),
834
+ onMouseEnter: T,
835
+ onMouseLeave: v,
836
+ style: N("tenses", {
837
+ gridColumn: "1 / 7",
838
+ gridRow: "6 / 7",
839
+ display: "flex",
840
+ alignItems: "center",
841
+ justifyContent: "center",
842
+ background: "rgba(100, 100, 200, 0.1)",
843
+ minWidth: 0,
844
+ minHeight: 0,
845
+ overflow: "hidden",
846
+ padding: `${D}px`
847
+ }),
848
+ className: "ikoneme-zone",
849
+ children: L("tenses", e.tenses)
850
+ }
851
+ )
852
+ ]
853
+ }
854
+ ) }), ge = /* @__PURE__ */ r(
738
855
  "div",
739
856
  {
740
857
  style: {
741
- minHeight: `${s}px`,
858
+ minHeight: `${n}px`,
742
859
  flexShrink: 0,
743
860
  display: "flex",
744
861
  alignItems: "center",
745
862
  justifyContent: "center"
746
863
  },
747
- "aria-hidden": !x,
748
- children: /* @__PURE__ */ f(
864
+ "aria-hidden": !g,
865
+ children: /* @__PURE__ */ p(
749
866
  "div",
750
867
  {
751
868
  style: {
752
869
  display: "flex",
753
- gap: `${u}px`,
870
+ gap: `${d}px`,
754
871
  flexWrap: "nowrap",
755
- width: `${d}px`,
872
+ width: `${a}px`,
756
873
  justifyContent: "center",
757
- opacity: x ? 1 : 0,
758
- pointerEvents: x ? "auto" : "none",
874
+ opacity: g ? 1 : 0,
875
+ pointerEvents: g ? "auto" : "none",
759
876
  transition: "opacity 0.15s ease"
760
877
  },
761
878
  children: [
762
- I && /* @__PURE__ */ n(
879
+ b && /* @__PURE__ */ r(
763
880
  "button",
764
881
  {
765
- onClick: (a) => {
766
- a.stopPropagation(), I();
882
+ onClick: (c) => {
883
+ c.stopPropagation(), b();
767
884
  },
768
885
  style: {
769
- width: `${s}px`,
770
- height: `${s}px`,
886
+ width: `${n}px`,
887
+ height: `${n}px`,
771
888
  borderRadius: "6px",
772
889
  border: "none",
773
890
  background: "rgba(0, 168, 132, 0.95)",
@@ -778,21 +895,21 @@ function P({
778
895
  transition: "background 0.2s",
779
896
  boxShadow: "0 2px 4px rgba(0, 0, 0, 0.3)"
780
897
  },
781
- onMouseEnter: (a) => a.currentTarget.style.background = "rgba(0, 168, 132, 1)",
782
- onMouseLeave: (a) => a.currentTarget.style.background = "rgba(0, 168, 132, 0.95)",
898
+ onMouseEnter: (c) => c.currentTarget.style.background = "rgba(0, 168, 132, 1)",
899
+ onMouseLeave: (c) => c.currentTarget.style.background = "rgba(0, 168, 132, 0.95)",
783
900
  title: "Edit",
784
- children: /* @__PURE__ */ n(ve, { size: y ? 16 : 14, color: "white" })
901
+ children: /* @__PURE__ */ r(ve, { size: w ? 16 : 14, color: "white" })
785
902
  }
786
903
  ),
787
- k && /* @__PURE__ */ n(
904
+ u && /* @__PURE__ */ r(
788
905
  "button",
789
906
  {
790
- onClick: (a) => {
791
- a.stopPropagation(), k();
907
+ onClick: (c) => {
908
+ c.stopPropagation(), u();
792
909
  },
793
910
  style: {
794
- width: `${s}px`,
795
- height: `${s}px`,
911
+ width: `${n}px`,
912
+ height: `${n}px`,
796
913
  borderRadius: "6px",
797
914
  border: "none",
798
915
  background: "rgba(220, 38, 38, 0.95)",
@@ -803,10 +920,10 @@ function P({
803
920
  transition: "background 0.2s",
804
921
  boxShadow: "0 2px 4px rgba(0, 0, 0, 0.3)"
805
922
  },
806
- onMouseEnter: (a) => a.currentTarget.style.background = "rgba(220, 38, 38, 1)",
807
- onMouseLeave: (a) => a.currentTarget.style.background = "rgba(220, 38, 38, 0.95)",
923
+ onMouseEnter: (c) => c.currentTarget.style.background = "rgba(220, 38, 38, 1)",
924
+ onMouseLeave: (c) => c.currentTarget.style.background = "rgba(220, 38, 38, 0.95)",
808
925
  title: "Delete",
809
- children: /* @__PURE__ */ n(Ie, { size: y ? 16 : 14, color: "white" })
926
+ children: /* @__PURE__ */ r(ke, { size: w ? 16 : 14, color: "white" })
810
927
  }
811
928
  )
812
929
  ]
@@ -814,101 +931,40 @@ function P({
814
931
  )
815
932
  }
816
933
  );
817
- return t ? /* @__PURE__ */ f(
934
+ return i ? /* @__PURE__ */ p(
818
935
  "div",
819
936
  {
820
937
  style: {
821
938
  display: "flex",
822
939
  flexDirection: "column",
823
940
  alignItems: "center",
824
- width: `${d}px`,
941
+ width: `${a}px`,
825
942
  flexShrink: 0,
826
943
  gap: "6px"
827
944
  },
828
- onMouseEnter: () => _(!0),
829
- onMouseLeave: () => _(!1),
945
+ onMouseEnter: () => m(!0),
946
+ onMouseLeave: () => m(!1),
830
947
  children: [
831
- /* @__PURE__ */ n("div", { style: { position: "relative", width: `${w}px`, height: `${w}px` }, children: ee }),
832
- me
948
+ /* @__PURE__ */ r("div", { style: { position: "relative", width: `${C}px`, height: `${C}px` }, children: Q }),
949
+ ge
833
950
  ]
834
951
  }
835
- ) : /* @__PURE__ */ n(
952
+ ) : /* @__PURE__ */ r(
836
953
  "div",
837
954
  {
838
955
  style: {
839
956
  position: "relative",
840
- width: `${l}px`,
841
- height: `${l}px`,
957
+ width: `${o}px`,
958
+ height: `${o}px`,
842
959
  flexShrink: 0
843
960
  },
844
- onMouseEnter: () => _(!0),
845
- onMouseLeave: () => _(!1),
846
- children: ee
961
+ onMouseEnter: () => m(!0),
962
+ onMouseLeave: () => m(!1),
963
+ children: Q
847
964
  }
848
965
  );
849
966
  }
850
- const G = "https://ikondb.iigap.com", Fe = 60 * 60 * 1e3;
851
- let L = null, B = null;
852
- const A = /* @__PURE__ */ new Map();
853
- function Ee(e) {
854
- return !e || Array.isArray(e) ? null : e.origin || e.preview || e.thumb || e.svg || null;
855
- }
856
- function Oe(e) {
857
- if (!e || Array.isArray(e)) return {};
858
- const { origin: o = null, preview: l = null, thumb: r = null, svg: i = null } = e;
859
- return { origin: o, preview: l, thumb: r, svg: i };
860
- }
861
- async function je(e) {
862
- const o = await fetch(`${e}/api/ikons`);
863
- if (!o.ok) throw new Error(`IkonDB GET /api/ikons -> ${o.status}`);
864
- const l = await o.json();
865
- return (Array.isArray(l == null ? void 0 : l.data) ? l.data : []).map((i) => ({
866
- id: i.id,
867
- name: i.description || "",
868
- url: Ee(i.media)
869
- })).filter((i) => i.url);
870
- }
871
- async function Be({ baseUrl: e = G } = {}) {
872
- return L && Date.now() - L.at < Fe ? L.list : B || (B = je(e).then((o) => (L = { at: Date.now(), list: o }, o)).finally(() => {
873
- B = null;
874
- }), B);
875
- }
876
- async function ze(e, { baseUrl: o = G, limit: l = 20 } = {}) {
877
- const r = (e || "").trim().toLowerCase();
878
- if (!r) return [];
879
- const i = await Be({ baseUrl: o }), p = [];
880
- for (const c of i)
881
- if (c.name.toLowerCase().includes(r) && (p.push(c), p.length >= l))
882
- break;
883
- return p;
884
- }
885
- async function Le(e, { baseUrl: o = G } = {}) {
886
- if (e == null) return null;
887
- if (A.has(e)) return A.get(e);
888
- const l = await fetch(`${o}/api/ikons/${encodeURIComponent(e)}`);
889
- if (!l.ok) throw new Error(`IkonDB GET /api/ikons/${e} -> ${l.status}`);
890
- const r = await l.json();
891
- if ((r == null ? void 0 : r.status) !== "success" || !(r != null && r.data))
892
- return A.set(e, null), null;
893
- const i = Oe(r.data.media), p = {
894
- id: r.data.id,
895
- name: r.data.description || "",
896
- url: i.origin || i.preview || i.thumb || i.svg || null,
897
- ...i
898
- };
899
- return A.set(e, p), p;
900
- }
901
- async function Ae(e) {
902
- try {
903
- return await ze(e);
904
- } catch {
905
- return [];
906
- }
907
- }
908
- function et() {
909
- L = null, B = null, A.clear();
910
- }
911
- const D = {
967
+ const H = {
912
968
  context: { name: "Context", description: "Northwest - Contextual information" },
913
969
  reference: { name: "Reference", description: "North - Reference point" },
914
970
  role: { name: "Role", description: "Northeast - Role indicator" },
@@ -917,96 +973,96 @@ const D = {
917
973
  tenses: { name: "Tenses", description: "South - Time/tense indicator" },
918
974
  border: {
919
975
  name: "Border",
920
- description: "Grammatical category — singular (one border) or plural (stacked borders)"
976
+ description: "Grammatical category — singular (single frame) or plural (double frame)"
921
977
  }
922
- }, We = 1, He = 300, De = 10, Ve = 5;
923
- function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
924
- const [i, p] = F({
978
+ }, Je = 1, e0 = 300, t0 = 10, i0 = 5;
979
+ function r0({ ikon: e, onSave: t, onClose: o, searchRoot: l = Be }) {
980
+ const [F, s] = M({
925
981
  ...e,
926
982
  reference: e.reference ? { ...e.reference } : { left: null, right: null },
927
983
  rootName: e.rootName ?? null
928
- }), [c, I] = F("root"), [k, N] = F(""), [T, _] = F([]), [y, m] = F(!1), S = (t, s) => {
929
- const u = C(t === "reference" ? "reference" : t, s), d = u ? { name: u.tooltip, url: u.url } : { name: "", url: s };
930
- if (t === "reference") {
931
- const g = h.reference[0].url;
932
- p(s === g ? (x) => {
933
- var w;
984
+ }), [h, b] = M("root"), [u, k] = M(""), [E, m] = M([]), [w, _] = M(!1), I = (i, n) => {
985
+ const d = B(i === "reference" ? "reference" : i, n), a = d ? { name: d.tooltip, url: d.url } : { name: "", url: n };
986
+ if (i === "reference") {
987
+ const f = x.reference[0].url;
988
+ s(n === f ? (g) => {
989
+ var C;
934
990
  return {
935
- ...x,
991
+ ...g,
936
992
  reference: {
937
- ...x.reference,
938
- left: K((w = x.reference) == null ? void 0 : w.left) === g ? null : { name: h.reference[0].tooltip, url: g }
993
+ ...g.reference,
994
+ left: V((C = g.reference) == null ? void 0 : C.left) === f ? null : { name: x.reference[0].tooltip, url: f }
939
995
  }
940
996
  };
941
- } : (x) => {
942
- var w;
997
+ } : (g) => {
998
+ var C;
943
999
  return {
944
- ...x,
1000
+ ...g,
945
1001
  reference: {
946
- ...x.reference,
947
- right: K((w = x.reference) == null ? void 0 : w.right) === s ? null : d
1002
+ ...g.reference,
1003
+ right: V((C = g.reference) == null ? void 0 : C.right) === n ? null : a
948
1004
  }
949
1005
  };
950
1006
  });
951
1007
  } else
952
- p((g) => ({
953
- ...g,
954
- [t]: K(g[t]) === s ? null : d
1008
+ s((f) => ({
1009
+ ...f,
1010
+ [i]: V(f[i]) === n ? null : a
955
1011
  }));
956
- }, $ = (t) => {
957
- I(t);
958
- }, v = (t) => {
959
- p((s) => ({
960
- ...s,
961
- border: t == null || s.border === t ? null : t
1012
+ }, T = (i) => {
1013
+ b(i);
1014
+ }, v = (i) => {
1015
+ s((n) => ({
1016
+ ...n,
1017
+ border: i == null || n.border === i ? null : i
962
1018
  }));
963
1019
  };
964
1020
  le(() => {
965
- if (c !== "root" || k.length < We) {
966
- _([]);
1021
+ if (h !== "root" || u.length < Je) {
1022
+ m([]);
967
1023
  return;
968
1024
  }
969
- const t = setTimeout(async () => {
970
- m(!0);
1025
+ const i = setTimeout(async () => {
1026
+ _(!0);
971
1027
  try {
972
- const s = await r(k.trim());
973
- _((s || []).slice(0, De));
1028
+ const n = await l(u.trim());
1029
+ m((n || []).slice(0, t0));
974
1030
  } catch {
975
- _([]);
1031
+ m([]);
976
1032
  } finally {
977
- m(!1);
1033
+ _(!1);
978
1034
  }
979
- }, He);
980
- return () => clearTimeout(t);
981
- }, [c, k, r]);
982
- const M = fe(async (t) => {
983
- if (p((s) => ({
984
- ...s,
985
- root: { id: t.id ?? null, name: t.name, url: t.url },
986
- rootName: t.name
987
- })), t.id != null)
1035
+ }, e0);
1036
+ return () => clearTimeout(i);
1037
+ }, [h, u, l]);
1038
+ const N = ue(async (i) => {
1039
+ if (s((n) => ({
1040
+ ...n,
1041
+ root: { id: i.id ?? null, name: i.name, url: i.url },
1042
+ rootName: i.name
1043
+ })), i.id != null)
988
1044
  try {
989
- const s = await Le(t.id);
990
- if (!s) return;
991
- p((u) => {
992
- var d;
993
- return ((d = u.root) == null ? void 0 : d.id) !== t.id ? u : {
994
- ...u,
1045
+ const n = await Te(i.id);
1046
+ if (!n) return;
1047
+ s((d) => {
1048
+ var a;
1049
+ return ((a = d.root) == null ? void 0 : a.id) !== i.id ? d : {
1050
+ ...d,
995
1051
  root: {
996
- id: s.id,
997
- name: t.name,
998
- url: s.origin || t.url,
999
- svg: s.svg || void 0,
1000
- thumb: s.thumb || void 0,
1001
- preview: s.preview || void 0
1052
+ id: n.id,
1053
+ name: i.name,
1054
+ url: n.origin || i.url,
1055
+ svg: n.svg || void 0,
1056
+ thumb: n.thumb || void 0,
1057
+ preview: n.preview || void 0
1002
1058
  },
1003
- rootName: t.name
1059
+ rootName: i.name
1004
1060
  };
1005
1061
  });
1006
1062
  } catch {
1007
1063
  }
1008
1064
  }, []);
1009
- return /* @__PURE__ */ f(
1065
+ return /* @__PURE__ */ p(
1010
1066
  "div",
1011
1067
  {
1012
1068
  style: {
@@ -1022,7 +1078,7 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1022
1078
  overflow: "hidden"
1023
1079
  },
1024
1080
  children: [
1025
- /* @__PURE__ */ f(
1081
+ /* @__PURE__ */ p(
1026
1082
  "div",
1027
1083
  {
1028
1084
  style: {
@@ -1034,7 +1090,7 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1034
1090
  gap: "12px"
1035
1091
  },
1036
1092
  children: [
1037
- /* @__PURE__ */ f(
1093
+ /* @__PURE__ */ p(
1038
1094
  "div",
1039
1095
  {
1040
1096
  style: {
@@ -1044,10 +1100,10 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1044
1100
  flex: 1
1045
1101
  },
1046
1102
  children: [
1047
- /* @__PURE__ */ n(
1103
+ /* @__PURE__ */ r(
1048
1104
  "button",
1049
1105
  {
1050
- onClick: l,
1106
+ onClick: o,
1051
1107
  style: {
1052
1108
  background: "transparent",
1053
1109
  border: "none",
@@ -1058,10 +1114,10 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1058
1114
  justifyContent: "center"
1059
1115
  },
1060
1116
  title: "Back",
1061
- children: /* @__PURE__ */ n(ye, { color: "var(--ikoneme-text-primary)", size: 24 })
1117
+ children: /* @__PURE__ */ r(ye, { color: "var(--ikoneme-text-primary)", size: 24 })
1062
1118
  }
1063
1119
  ),
1064
- /* @__PURE__ */ n(
1120
+ /* @__PURE__ */ r(
1065
1121
  "h2",
1066
1122
  {
1067
1123
  style: {
@@ -1076,11 +1132,11 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1076
1132
  ]
1077
1133
  }
1078
1134
  ),
1079
- /* @__PURE__ */ n(
1135
+ /* @__PURE__ */ r(
1080
1136
  "button",
1081
1137
  {
1082
1138
  onClick: () => {
1083
- o(i), l();
1139
+ t(F), o();
1084
1140
  },
1085
1141
  style: {
1086
1142
  padding: "10px 24px",
@@ -1094,15 +1150,15 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1094
1150
  transition: "background 0.2s",
1095
1151
  whiteSpace: "nowrap"
1096
1152
  },
1097
- onMouseEnter: (t) => t.currentTarget.style.background = "var(--ikoneme-primary-dark)",
1098
- onMouseLeave: (t) => t.currentTarget.style.background = "var(--ikoneme-primary)",
1153
+ onMouseEnter: (i) => i.currentTarget.style.background = "var(--ikoneme-primary-dark)",
1154
+ onMouseLeave: (i) => i.currentTarget.style.background = "var(--ikoneme-primary)",
1099
1155
  children: "Save"
1100
1156
  }
1101
1157
  )
1102
1158
  ]
1103
1159
  }
1104
1160
  ),
1105
- /* @__PURE__ */ f(
1161
+ /* @__PURE__ */ p(
1106
1162
  "div",
1107
1163
  {
1108
1164
  style: {
@@ -1115,7 +1171,7 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1115
1171
  WebkitOverflowScrolling: "touch"
1116
1172
  },
1117
1173
  children: [
1118
- /* @__PURE__ */ f(
1174
+ /* @__PURE__ */ p(
1119
1175
  "div",
1120
1176
  {
1121
1177
  style: {
@@ -1126,7 +1182,7 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1126
1182
  gap: "12px"
1127
1183
  },
1128
1184
  children: [
1129
- /* @__PURE__ */ n(
1185
+ /* @__PURE__ */ r(
1130
1186
  "p",
1131
1187
  {
1132
1188
  style: {
@@ -1137,16 +1193,16 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1137
1193
  children: "Click on a zone or the border area to edit it"
1138
1194
  }
1139
1195
  ),
1140
- /* @__PURE__ */ n(
1141
- P,
1196
+ /* @__PURE__ */ r(
1197
+ Y,
1142
1198
  {
1143
- ikon: i,
1199
+ ikon: F,
1144
1200
  size: 280,
1145
- onZoneClick: $,
1146
- selectedZone: c
1201
+ onZoneClick: T,
1202
+ selectedZone: h
1147
1203
  }
1148
1204
  ),
1149
- /* @__PURE__ */ n(
1205
+ /* @__PURE__ */ r(
1150
1206
  "div",
1151
1207
  {
1152
1208
  style: {
@@ -1158,14 +1214,14 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1158
1214
  background: "var(--ikoneme-primary)",
1159
1215
  borderRadius: "20px"
1160
1216
  },
1161
- children: D[c].name
1217
+ children: H[h].name
1162
1218
  }
1163
1219
  )
1164
1220
  ]
1165
1221
  }
1166
1222
  ),
1167
- /* @__PURE__ */ f("div", { style: { marginBottom: "20px" }, children: [
1168
- /* @__PURE__ */ n(
1223
+ /* @__PURE__ */ p("div", { style: { marginBottom: "20px" }, children: [
1224
+ /* @__PURE__ */ r(
1169
1225
  "h3",
1170
1226
  {
1171
1227
  style: {
@@ -1174,10 +1230,10 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1174
1230
  marginBottom: "8px",
1175
1231
  fontWeight: "500"
1176
1232
  },
1177
- children: c === "border" ? "Select Border Type" : "Choose Icon for: " + D[c].name
1233
+ children: h === "border" ? "Select Border Type" : "Choose Icon for: " + H[h].name
1178
1234
  }
1179
1235
  ),
1180
- c === "border" ? /* @__PURE__ */ f(
1236
+ h === "border" ? /* @__PURE__ */ p(
1181
1237
  "p",
1182
1238
  {
1183
1239
  style: {
@@ -1186,11 +1242,11 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1186
1242
  marginBottom: "12px"
1187
1243
  },
1188
1244
  children: [
1189
- D.border.description,
1245
+ H.border.description,
1190
1246
  ". Click the same border again to clear."
1191
1247
  ]
1192
1248
  }
1193
- ) : c === "reference" ? /* @__PURE__ */ f(
1249
+ ) : h === "reference" ? /* @__PURE__ */ p(
1194
1250
  "p",
1195
1251
  {
1196
1252
  style: {
@@ -1200,14 +1256,14 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1200
1256
  },
1201
1257
  children: [
1202
1258
  "Click ",
1203
- /* @__PURE__ */ n("strong", { children: "Asterisk" }),
1259
+ /* @__PURE__ */ r("strong", { children: "Asterisk" }),
1204
1260
  " to toggle left cell. Click any ",
1205
- /* @__PURE__ */ n("strong", { children: "number" }),
1261
+ /* @__PURE__ */ r("strong", { children: "number" }),
1206
1262
  " ",
1207
1263
  "to toggle right cell."
1208
1264
  ]
1209
1265
  }
1210
- ) : c === "root" ? /* @__PURE__ */ n(
1266
+ ) : h === "root" ? /* @__PURE__ */ r(
1211
1267
  "p",
1212
1268
  {
1213
1269
  style: {
@@ -1217,7 +1273,7 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1217
1273
  },
1218
1274
  children: "Search for an icon below. The icon's name is stored with the ikon."
1219
1275
  }
1220
- ) : /* @__PURE__ */ f(
1276
+ ) : /* @__PURE__ */ p(
1221
1277
  "p",
1222
1278
  {
1223
1279
  style: {
@@ -1226,33 +1282,33 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1226
1282
  marginBottom: "12px"
1227
1283
  },
1228
1284
  children: [
1229
- D[c].description,
1285
+ H[h].description,
1230
1286
  ". Click the same icon again to clear."
1231
1287
  ]
1232
1288
  }
1233
1289
  ),
1234
- c === "border" ? /* @__PURE__ */ f(U, { children: [
1235
- /* @__PURE__ */ n("div", { style: { marginBottom: "12px" }, children: /* @__PURE__ */ n(
1290
+ h === "border" ? /* @__PURE__ */ p(A, { children: [
1291
+ /* @__PURE__ */ r("div", { style: { marginBottom: "12px" }, children: /* @__PURE__ */ r(
1236
1292
  "button",
1237
1293
  {
1238
1294
  onClick: () => v(null),
1239
1295
  style: {
1240
1296
  width: "100%",
1241
1297
  padding: "10px 14px",
1242
- background: i.border == null ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1243
- border: `2px solid ${i.border == null ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1298
+ background: F.border == null ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1299
+ border: `2px solid ${F.border == null ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1244
1300
  borderRadius: "8px",
1245
- color: i.border == null ? "white" : "var(--ikoneme-text-primary)",
1301
+ color: F.border == null ? "white" : "var(--ikoneme-text-primary)",
1246
1302
  fontSize: "14px",
1247
1303
  cursor: "pointer",
1248
1304
  textAlign: "left",
1249
- fontWeight: i.border == null ? "600" : "400",
1305
+ fontWeight: F.border == null ? "600" : "400",
1250
1306
  transition: "all 0.2s"
1251
1307
  },
1252
1308
  children: "No border"
1253
1309
  }
1254
1310
  ) }),
1255
- /* @__PURE__ */ n("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ n(
1311
+ /* @__PURE__ */ r("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ r(
1256
1312
  "span",
1257
1313
  {
1258
1314
  style: {
@@ -1263,7 +1319,7 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1263
1319
  children: "Singular"
1264
1320
  }
1265
1321
  ) }),
1266
- /* @__PURE__ */ n(
1322
+ /* @__PURE__ */ r(
1267
1323
  "div",
1268
1324
  {
1269
1325
  style: {
@@ -1272,17 +1328,17 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1272
1328
  gap: "10px",
1273
1329
  marginBottom: "16px"
1274
1330
  },
1275
- children: W.filter((t) => !t.plural).map((t) => {
1276
- const s = i.border === t.id;
1277
- return /* @__PURE__ */ f(
1331
+ children: z.filter((i) => !i.plural).map((i) => {
1332
+ const n = F.border === i.id;
1333
+ return /* @__PURE__ */ p(
1278
1334
  "button",
1279
1335
  {
1280
- onClick: () => v(t.id),
1281
- title: t.label,
1336
+ onClick: () => v(i.id),
1337
+ title: i.label,
1282
1338
  style: {
1283
1339
  padding: "8px",
1284
- background: s ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1285
- border: `2px solid ${s ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1340
+ background: n ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1341
+ border: `2px solid ${n ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1286
1342
  borderRadius: "8px",
1287
1343
  cursor: "pointer",
1288
1344
  display: "flex",
@@ -1293,36 +1349,38 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1293
1349
  position: "relative"
1294
1350
  },
1295
1351
  onMouseEnter: (d) => {
1296
- s || (d.currentTarget.style.background = "var(--ikoneme-hover)");
1352
+ n || (d.currentTarget.style.background = "var(--ikoneme-hover)");
1297
1353
  },
1298
1354
  onMouseLeave: (d) => {
1299
- s || (d.currentTarget.style.background = "var(--ikoneme-surface)");
1355
+ n || (d.currentTarget.style.background = "var(--ikoneme-surface)");
1300
1356
  },
1301
1357
  children: [
1302
- /* @__PURE__ */ n(
1358
+ /* @__PURE__ */ r(
1303
1359
  "div",
1304
1360
  {
1305
1361
  style: {
1306
- border: `5px solid ${t.color}`,
1307
- borderRadius: "4px",
1362
+ boxSizing: "border-box",
1308
1363
  width: "64px",
1309
1364
  height: "64px",
1310
- flexShrink: 0
1365
+ flexShrink: 0,
1366
+ // Drawn at the scale of a ~160px ikon so the frame's
1367
+ // dash pattern stays readable in a 64px swatch.
1368
+ ...$(i, 160)
1311
1369
  }
1312
1370
  }
1313
1371
  ),
1314
- /* @__PURE__ */ n(
1372
+ /* @__PURE__ */ r(
1315
1373
  "span",
1316
1374
  {
1317
1375
  style: {
1318
1376
  fontSize: "11px",
1319
- color: s ? "white" : "var(--ikoneme-text-primary)",
1320
- fontWeight: s ? "600" : "400"
1377
+ color: n ? "white" : "var(--ikoneme-text-primary)",
1378
+ fontWeight: n ? "600" : "400"
1321
1379
  },
1322
- children: t.label
1380
+ children: i.label
1323
1381
  }
1324
1382
  ),
1325
- /* @__PURE__ */ n(
1383
+ /* @__PURE__ */ r(
1326
1384
  "div",
1327
1385
  {
1328
1386
  className: "ikon-tooltip",
@@ -1343,17 +1401,17 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1343
1401
  marginBottom: "8px",
1344
1402
  zIndex: 100
1345
1403
  },
1346
- children: t.label
1404
+ children: i.label
1347
1405
  }
1348
1406
  )
1349
1407
  ]
1350
1408
  },
1351
- t.id
1409
+ i.id
1352
1410
  );
1353
1411
  })
1354
1412
  }
1355
1413
  ),
1356
- /* @__PURE__ */ n("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ n(
1414
+ /* @__PURE__ */ r("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ r(
1357
1415
  "span",
1358
1416
  {
1359
1417
  style: {
@@ -1364,26 +1422,17 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1364
1422
  children: "Plural"
1365
1423
  }
1366
1424
  ) }),
1367
- /* @__PURE__ */ n("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "10px" }, children: W.filter((t) => t.plural).map((t) => {
1368
- const s = i.border === t.id, u = 5, d = {
1369
- boxShadow: [
1370
- `inset -${u}px 0 0 ${t.color}`,
1371
- `inset -${u * 2}px 0 0 ${t.color}`,
1372
- `inset -${u * 3}px 0 0 ${t.color}`,
1373
- `inset 0 -${u}px 0 ${t.color}`,
1374
- `inset 0 -${u * 2}px 0 ${t.color}`,
1375
- `inset 0 -${u * 3}px 0 ${t.color}`
1376
- ].join(", ")
1377
- };
1378
- return /* @__PURE__ */ f(
1425
+ /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "10px" }, children: z.filter((i) => i.plural).map((i) => {
1426
+ const n = F.border === i.id;
1427
+ return /* @__PURE__ */ p(
1379
1428
  "button",
1380
1429
  {
1381
- onClick: () => v(t.id),
1382
- title: t.label,
1430
+ onClick: () => v(i.id),
1431
+ title: i.label,
1383
1432
  style: {
1384
1433
  padding: "8px",
1385
- background: s ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1386
- border: `2px solid ${s ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1434
+ background: n ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1435
+ border: `2px solid ${n ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1387
1436
  borderRadius: "8px",
1388
1437
  cursor: "pointer",
1389
1438
  display: "flex",
@@ -1393,38 +1442,39 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1393
1442
  transition: "all 0.2s",
1394
1443
  position: "relative"
1395
1444
  },
1396
- onMouseEnter: (g) => {
1397
- s || (g.currentTarget.style.background = "var(--ikoneme-hover)");
1445
+ onMouseEnter: (d) => {
1446
+ n || (d.currentTarget.style.background = "var(--ikoneme-hover)");
1398
1447
  },
1399
- onMouseLeave: (g) => {
1400
- s || (g.currentTarget.style.background = "var(--ikoneme-surface)");
1448
+ onMouseLeave: (d) => {
1449
+ n || (d.currentTarget.style.background = "var(--ikoneme-surface)");
1401
1450
  },
1402
1451
  children: [
1403
- /* @__PURE__ */ n(
1452
+ /* @__PURE__ */ r(
1404
1453
  "div",
1405
1454
  {
1406
1455
  style: {
1407
- border: `${u}px solid ${t.color}`,
1408
- borderRadius: "4px",
1456
+ boxSizing: "border-box",
1409
1457
  width: "64px",
1410
1458
  height: "64px",
1411
1459
  flexShrink: 0,
1412
- ...d
1460
+ // Drawn at the scale of a ~160px ikon so the frame's
1461
+ // dash pattern stays readable in a 64px swatch.
1462
+ ...$(i, 160)
1413
1463
  }
1414
1464
  }
1415
1465
  ),
1416
- /* @__PURE__ */ n(
1466
+ /* @__PURE__ */ r(
1417
1467
  "span",
1418
1468
  {
1419
1469
  style: {
1420
1470
  fontSize: "11px",
1421
- color: s ? "white" : "var(--ikoneme-text-primary)",
1422
- fontWeight: s ? "600" : "400"
1471
+ color: n ? "white" : "var(--ikoneme-text-primary)",
1472
+ fontWeight: n ? "600" : "400"
1423
1473
  },
1424
- children: t.label
1474
+ children: i.label
1425
1475
  }
1426
1476
  ),
1427
- /* @__PURE__ */ n(
1477
+ /* @__PURE__ */ r(
1428
1478
  "div",
1429
1479
  {
1430
1480
  className: "ikon-tooltip",
@@ -1445,16 +1495,16 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1445
1495
  marginBottom: "8px",
1446
1496
  zIndex: 100
1447
1497
  },
1448
- children: t.label
1498
+ children: i.label
1449
1499
  }
1450
1500
  )
1451
1501
  ]
1452
1502
  },
1453
- t.id
1503
+ i.id
1454
1504
  );
1455
1505
  }) })
1456
- ] }) : c === "root" ? /* @__PURE__ */ f(U, { children: [
1457
- /* @__PURE__ */ f(
1506
+ ] }) : h === "root" ? /* @__PURE__ */ p(A, { children: [
1507
+ /* @__PURE__ */ p(
1458
1508
  "div",
1459
1509
  {
1460
1510
  style: {
@@ -1468,13 +1518,13 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1468
1518
  border: "1px solid var(--ikoneme-border)"
1469
1519
  },
1470
1520
  children: [
1471
- /* @__PURE__ */ n(we, { size: 18, color: "var(--ikoneme-text-secondary)" }),
1472
- /* @__PURE__ */ n(
1521
+ /* @__PURE__ */ r(be, { size: 18, color: "var(--ikoneme-text-secondary)" }),
1522
+ /* @__PURE__ */ r(
1473
1523
  "input",
1474
1524
  {
1475
1525
  type: "text",
1476
- value: k,
1477
- onChange: (t) => N(t.target.value),
1526
+ value: u,
1527
+ onChange: (i) => k(i.target.value),
1478
1528
  placeholder: "Search icons...",
1479
1529
  style: {
1480
1530
  flex: 1,
@@ -1489,7 +1539,7 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1489
1539
  ]
1490
1540
  }
1491
1541
  ),
1492
- y && /* @__PURE__ */ n(
1542
+ w && /* @__PURE__ */ r(
1493
1543
  "p",
1494
1544
  {
1495
1545
  style: {
@@ -1500,26 +1550,26 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1500
1550
  children: "Searching…"
1501
1551
  }
1502
1552
  ),
1503
- /* @__PURE__ */ n(
1553
+ /* @__PURE__ */ r(
1504
1554
  "div",
1505
1555
  {
1506
1556
  style: {
1507
1557
  display: "grid",
1508
- gridTemplateColumns: `repeat(${Ve}, 1fr)`,
1558
+ gridTemplateColumns: `repeat(${i0}, 1fr)`,
1509
1559
  gap: "10px"
1510
1560
  },
1511
- children: T.map((t, s) => {
1512
- const u = K(i.root) === t.url;
1513
- return /* @__PURE__ */ f(
1561
+ children: E.map((i, n) => {
1562
+ const d = V(F.root) === i.url;
1563
+ return /* @__PURE__ */ p(
1514
1564
  "button",
1515
1565
  {
1516
- onClick: () => M(t),
1517
- title: t.name,
1566
+ onClick: () => N(i),
1567
+ title: i.name,
1518
1568
  style: {
1519
1569
  padding: "12px",
1520
- background: u ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1570
+ background: d ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1521
1571
  border: "2px solid",
1522
- borderColor: u ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
1572
+ borderColor: d ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
1523
1573
  borderRadius: "8px",
1524
1574
  cursor: "pointer",
1525
1575
  transition: "all 0.2s",
@@ -1532,14 +1582,14 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1532
1582
  minHeight: "70px",
1533
1583
  minWidth: "70px"
1534
1584
  },
1535
- onMouseEnter: (d) => {
1536
- d.currentTarget.style.transform = "scale(1.05)", u || (d.currentTarget.style.background = "var(--ikoneme-hover)");
1585
+ onMouseEnter: (a) => {
1586
+ a.currentTarget.style.transform = "scale(1.05)", d || (a.currentTarget.style.background = "var(--ikoneme-hover)");
1537
1587
  },
1538
- onMouseLeave: (d) => {
1539
- d.currentTarget.style.transform = "scale(1)", u || (d.currentTarget.style.background = "var(--ikoneme-surface)");
1588
+ onMouseLeave: (a) => {
1589
+ a.currentTarget.style.transform = "scale(1)", d || (a.currentTarget.style.background = "var(--ikoneme-surface)");
1540
1590
  },
1541
1591
  children: [
1542
- /* @__PURE__ */ n(
1592
+ /* @__PURE__ */ r(
1543
1593
  "div",
1544
1594
  {
1545
1595
  style: {
@@ -1552,11 +1602,11 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1552
1602
  justifyContent: "center",
1553
1603
  padding: "4px"
1554
1604
  },
1555
- children: /* @__PURE__ */ n(
1605
+ children: /* @__PURE__ */ r(
1556
1606
  "img",
1557
1607
  {
1558
- src: t.url,
1559
- alt: t.name,
1608
+ src: i.url,
1609
+ alt: i.name,
1560
1610
  style: {
1561
1611
  maxWidth: "100%",
1562
1612
  maxHeight: "100%",
@@ -1564,14 +1614,14 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1564
1614
  height: "100%",
1565
1615
  objectFit: "contain"
1566
1616
  },
1567
- onError: (d) => {
1568
- d.target.style.display = "none";
1617
+ onError: (a) => {
1618
+ a.target.style.display = "none";
1569
1619
  }
1570
1620
  }
1571
1621
  )
1572
1622
  }
1573
1623
  ),
1574
- /* @__PURE__ */ n(
1624
+ /* @__PURE__ */ r(
1575
1625
  "div",
1576
1626
  {
1577
1627
  className: "ikon-tooltip",
@@ -1592,42 +1642,42 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1592
1642
  marginBottom: "8px",
1593
1643
  zIndex: 100
1594
1644
  },
1595
- children: t.name
1645
+ children: i.name
1596
1646
  }
1597
1647
  )
1598
1648
  ]
1599
1649
  },
1600
- `${t.url}-${s}`
1650
+ `${i.url}-${n}`
1601
1651
  );
1602
1652
  })
1603
1653
  }
1604
1654
  )
1605
- ] }) : /* @__PURE__ */ n(
1655
+ ] }) : /* @__PURE__ */ r(
1606
1656
  "div",
1607
1657
  {
1608
1658
  style: {
1609
1659
  display: "grid",
1610
- gridTemplateColumns: h[c].length <= 3 ? "repeat(3, 1fr)" : "repeat(auto-fit, minmax(90px, 1fr))",
1660
+ gridTemplateColumns: x[h].length <= 3 ? "repeat(3, 1fr)" : "repeat(auto-fit, minmax(90px, 1fr))",
1611
1661
  gap: "10px"
1612
1662
  },
1613
- children: h[c].map((t, s) => {
1614
- var d, g;
1615
- let u = !1;
1616
- if (c === "reference") {
1617
- const x = h.reference[0].url;
1618
- t.url === x ? u = K((d = i.reference) == null ? void 0 : d.left) === x : u = K((g = i.reference) == null ? void 0 : g.right) === t.url;
1663
+ children: x[h].map((i, n) => {
1664
+ var a, f;
1665
+ let d = !1;
1666
+ if (h === "reference") {
1667
+ const g = x.reference[0].url;
1668
+ i.url === g ? d = V((a = F.reference) == null ? void 0 : a.left) === g : d = V((f = F.reference) == null ? void 0 : f.right) === i.url;
1619
1669
  } else
1620
- u = K(i[c]) === t.url;
1621
- return /* @__PURE__ */ f(
1670
+ d = V(F[h]) === i.url;
1671
+ return /* @__PURE__ */ p(
1622
1672
  "button",
1623
1673
  {
1624
- onClick: () => S(c, t.url),
1625
- title: t.tooltip,
1674
+ onClick: () => I(h, i.url),
1675
+ title: i.tooltip,
1626
1676
  style: {
1627
1677
  padding: "12px",
1628
- background: u ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1678
+ background: d ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1629
1679
  border: "2px solid",
1630
- borderColor: u ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
1680
+ borderColor: d ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
1631
1681
  borderRadius: "8px",
1632
1682
  cursor: "pointer",
1633
1683
  transition: "all 0.2s",
@@ -1640,14 +1690,14 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1640
1690
  minHeight: "70px",
1641
1691
  minWidth: "70px"
1642
1692
  },
1643
- onMouseEnter: (x) => {
1644
- x.currentTarget.style.transform = "scale(1.05)", u || (x.currentTarget.style.background = "var(--ikoneme-hover)");
1693
+ onMouseEnter: (g) => {
1694
+ g.currentTarget.style.transform = "scale(1.05)", d || (g.currentTarget.style.background = "var(--ikoneme-hover)");
1645
1695
  },
1646
- onMouseLeave: (x) => {
1647
- x.currentTarget.style.transform = "scale(1)", u || (x.currentTarget.style.background = "var(--ikoneme-surface)");
1696
+ onMouseLeave: (g) => {
1697
+ g.currentTarget.style.transform = "scale(1)", d || (g.currentTarget.style.background = "var(--ikoneme-surface)");
1648
1698
  },
1649
1699
  children: [
1650
- /* @__PURE__ */ n(
1700
+ /* @__PURE__ */ r(
1651
1701
  "div",
1652
1702
  {
1653
1703
  style: {
@@ -1660,11 +1710,11 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1660
1710
  justifyContent: "center",
1661
1711
  padding: "4px"
1662
1712
  },
1663
- children: /* @__PURE__ */ n(
1713
+ children: /* @__PURE__ */ r(
1664
1714
  "img",
1665
1715
  {
1666
- src: t.url,
1667
- alt: t.tooltip,
1716
+ src: i.url,
1717
+ alt: i.tooltip,
1668
1718
  style: {
1669
1719
  maxWidth: "100%",
1670
1720
  maxHeight: "100%",
@@ -1676,7 +1726,7 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1676
1726
  )
1677
1727
  }
1678
1728
  ),
1679
- /* @__PURE__ */ n(
1729
+ /* @__PURE__ */ r(
1680
1730
  "div",
1681
1731
  {
1682
1732
  style: {
@@ -1697,18 +1747,18 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1697
1747
  zIndex: 100
1698
1748
  },
1699
1749
  className: "ikon-tooltip",
1700
- children: t.tooltip
1750
+ children: i.tooltip
1701
1751
  }
1702
1752
  )
1703
1753
  ]
1704
1754
  },
1705
- s
1755
+ n
1706
1756
  );
1707
1757
  })
1708
1758
  }
1709
1759
  )
1710
1760
  ] }),
1711
- /* @__PURE__ */ n("style", { children: `
1761
+ /* @__PURE__ */ r("style", { children: `
1712
1762
  button:hover .ikon-tooltip {
1713
1763
  opacity: 1 !important;
1714
1764
  }
@@ -1720,15 +1770,15 @@ function qe({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1720
1770
  }
1721
1771
  );
1722
1772
  }
1723
- function Ue({ ikon: e, size: o = 320, onClose: l }) {
1724
- const r = typeof window < "u" ? Math.max(120, Math.min(o, window.innerWidth - 48, window.innerHeight - 156)) : o;
1725
- return /* @__PURE__ */ n(
1773
+ function l0({ ikon: e, size: t = 320, onClose: o }) {
1774
+ const l = typeof window < "u" ? Math.max(120, Math.min(t, window.innerWidth - 48, window.innerHeight - 156)) : t;
1775
+ return /* @__PURE__ */ r(
1726
1776
  "div",
1727
1777
  {
1728
1778
  role: "dialog",
1729
1779
  "aria-modal": "true",
1730
1780
  "aria-label": "Zoomed ikon",
1731
- onClick: l,
1781
+ onClick: o,
1732
1782
  style: {
1733
1783
  position: "fixed",
1734
1784
  inset: 0,
@@ -1739,10 +1789,10 @@ function Ue({ ikon: e, size: o = 320, onClose: l }) {
1739
1789
  zIndex: 1e3,
1740
1790
  padding: "24px"
1741
1791
  },
1742
- children: /* @__PURE__ */ f(
1792
+ children: /* @__PURE__ */ p(
1743
1793
  "div",
1744
1794
  {
1745
- onClick: (i) => i.stopPropagation(),
1795
+ onClick: (F) => F.stopPropagation(),
1746
1796
  style: {
1747
1797
  display: "flex",
1748
1798
  flexDirection: "column",
@@ -1751,11 +1801,11 @@ function Ue({ ikon: e, size: o = 320, onClose: l }) {
1751
1801
  maxWidth: "100%"
1752
1802
  },
1753
1803
  children: [
1754
- /* @__PURE__ */ n(P, { ikon: e, size: r }),
1755
- /* @__PURE__ */ n(
1804
+ /* @__PURE__ */ r(Y, { ikon: e, size: l }),
1805
+ /* @__PURE__ */ r(
1756
1806
  "button",
1757
1807
  {
1758
- onClick: l,
1808
+ onClick: o,
1759
1809
  style: {
1760
1810
  width: "40px",
1761
1811
  height: "40px",
@@ -1770,7 +1820,7 @@ function Ue({ ikon: e, size: o = 320, onClose: l }) {
1770
1820
  },
1771
1821
  title: "Close",
1772
1822
  "aria-label": "Close",
1773
- children: /* @__PURE__ */ n(_e, { size: 20 })
1823
+ children: /* @__PURE__ */ r(Ie, { size: 20 })
1774
1824
  }
1775
1825
  )
1776
1826
  ]
@@ -1779,7 +1829,7 @@ function Ue({ ikon: e, size: o = 320, onClose: l }) {
1779
1829
  }
1780
1830
  );
1781
1831
  }
1782
- const Pe = {
1832
+ const F0 = {
1783
1833
  "--ikoneme-primary": "#00a884",
1784
1834
  "--ikoneme-primary-dark": "#008069",
1785
1835
  "--ikoneme-background": "#0c0e12",
@@ -1790,66 +1840,66 @@ const Pe = {
1790
1840
  "--ikoneme-text-secondary": "#8696a0",
1791
1841
  "--ikoneme-hover": "#2a2e36"
1792
1842
  };
1793
- function tt({
1843
+ function g0({
1794
1844
  ikons: e = [],
1795
- mode: o = "view",
1796
- size: l = 64,
1797
- gap: r = 6,
1798
- zoom: i = !0,
1799
- zoomSize: p = 320,
1800
- onChange: c,
1801
- onIkonClick: I,
1802
- searchRoot: k,
1803
- theme: N,
1804
- className: T,
1805
- style: _
1845
+ mode: t = "view",
1846
+ size: o = 64,
1847
+ gap: l = 6,
1848
+ zoom: F = !0,
1849
+ zoomSize: s = 320,
1850
+ onChange: h,
1851
+ onIkonClick: b,
1852
+ searchRoot: u,
1853
+ theme: k,
1854
+ className: E,
1855
+ style: m
1806
1856
  }) {
1807
- const [y, m] = F(null), [S, $] = F(null), v = o === "edit", M = (d) => {
1808
- c && c(e.filter((g, x) => x !== d));
1809
- }, E = (d) => {
1810
- y != null && c && c(e.map((g, x) => x === y ? d : g)), m(null);
1811
- }, t = (d, g) => {
1812
- !v && I && I(d, g), i && $(g);
1813
- }, s = { ...Pe, ...N }, u = i || !v && !!I;
1814
- return /* @__PURE__ */ f(
1857
+ const [w, _] = M(null), [I, T] = M(null), v = t === "edit", N = (a) => {
1858
+ h && h(e.filter((f, g) => g !== a));
1859
+ }, L = (a) => {
1860
+ w != null && h && h(e.map((f, g) => g === w ? a : f)), _(null);
1861
+ }, i = (a, f) => {
1862
+ !v && b && b(a, f), F && T(f);
1863
+ }, n = { ...F0, ...k }, d = F || !v && !!b;
1864
+ return /* @__PURE__ */ p(
1815
1865
  "div",
1816
1866
  {
1817
- className: ["ikoneme", T].filter(Boolean).join(" "),
1867
+ className: ["ikoneme", E].filter(Boolean).join(" "),
1818
1868
  style: {
1819
1869
  display: "flex",
1820
1870
  flexWrap: "wrap",
1821
1871
  alignItems: "center",
1822
- gap: `${r}px`,
1823
- ...s,
1824
- ..._
1872
+ gap: `${l}px`,
1873
+ ...n,
1874
+ ...m
1825
1875
  },
1826
1876
  children: [
1827
- e.map((d, g) => /* @__PURE__ */ n(
1828
- P,
1877
+ e.map((a, f) => /* @__PURE__ */ r(
1878
+ Y,
1829
1879
  {
1830
- ikon: d,
1831
- size: l,
1832
- onClick: u ? () => t(d, g) : void 0,
1833
- onEdit: v ? () => m(g) : void 0,
1834
- onDelete: v && c ? () => M(g) : void 0
1880
+ ikon: a,
1881
+ size: o,
1882
+ onClick: d ? () => i(a, f) : void 0,
1883
+ onEdit: v ? () => _(f) : void 0,
1884
+ onDelete: v && h ? () => N(f) : void 0
1835
1885
  },
1836
- g
1886
+ f
1837
1887
  )),
1838
- v && y != null && e[y] && /* @__PURE__ */ n("div", { style: s, children: /* @__PURE__ */ n(
1839
- qe,
1888
+ v && w != null && e[w] && /* @__PURE__ */ r("div", { style: n, children: /* @__PURE__ */ r(
1889
+ r0,
1840
1890
  {
1841
- ikon: e[y],
1842
- searchRoot: k,
1843
- onSave: E,
1844
- onClose: () => m(null)
1891
+ ikon: e[w],
1892
+ searchRoot: u,
1893
+ onSave: L,
1894
+ onClose: () => _(null)
1845
1895
  }
1846
1896
  ) }),
1847
- i && S != null && e[S] && /* @__PURE__ */ n("div", { style: s, children: /* @__PURE__ */ n(
1848
- Ue,
1897
+ F && I != null && e[I] && /* @__PURE__ */ r("div", { style: n, children: /* @__PURE__ */ r(
1898
+ l0,
1849
1899
  {
1850
- ikon: e[S],
1851
- size: p,
1852
- onClose: () => $(null)
1900
+ ikon: e[I],
1901
+ size: s,
1902
+ onClose: () => T(null)
1853
1903
  }
1854
1904
  ) })
1855
1905
  ]
@@ -1857,28 +1907,29 @@ function tt({
1857
1907
  );
1858
1908
  }
1859
1909
  export {
1860
- W as BORDER_CONFIG,
1861
- Se as BORDER_IDS,
1862
- Pe as DEFAULT_THEME,
1863
- G as IKONDB_BASE_URL,
1864
- P as Ikon,
1865
- qe as IkonEditor,
1866
- Ue as IkonZoomView,
1867
- tt as Ikoneme,
1868
- h as ZONE_CONFIG,
1869
- et as clearIkonDbCache,
1870
- re as createDefaultIkon,
1871
- Ae as defaultSearchRoot,
1872
- Je as generateIkonemeFromText,
1873
- Te as getBorderConfig,
1874
- C as getIconConfig,
1875
- Ke as getIconDisplayUrl,
1876
- K as getIconUrl,
1877
- Qe as getIconUrlByIndex,
1878
- Le as getIkonDetails,
1879
- Be as getIkonList,
1880
- $e as normalizeIkon,
1881
- Ye as normalizeIkoneme,
1882
- ze as searchIkons
1910
+ z as BORDER_CONFIG,
1911
+ We as BORDER_IDS,
1912
+ F0 as DEFAULT_THEME,
1913
+ U as IKONDB_BASE_URL,
1914
+ Y as Ikon,
1915
+ r0 as IkonEditor,
1916
+ l0 as IkonZoomView,
1917
+ g0 as Ikoneme,
1918
+ x as ZONE_CONFIG,
1919
+ h0 as clearIkonDbCache,
1920
+ ie as createDefaultIkon,
1921
+ Be as defaultSearchRoot,
1922
+ a0 as generateIkonemeFromText,
1923
+ oe as getBorderConfig,
1924
+ $ as getBorderImageStyle,
1925
+ B as getIconConfig,
1926
+ $e as getIconDisplayUrl,
1927
+ V as getIconUrl,
1928
+ d0 as getIconUrlByIndex,
1929
+ Te as getIkonDetails,
1930
+ Ve as getIkonList,
1931
+ Ue as normalizeIkon,
1932
+ s0 as normalizeIkoneme,
1933
+ Fe as searchIkons
1883
1934
  };
1884
1935
  //# sourceMappingURL=ikoneme-lib.js.map