@sia.soul/sia-react-ui 0.1.106 → 0.1.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/Button-BiL3Wjsd.d.ts +44 -0
  2. package/dist/Button-O_pNB3SQ.d.cts +44 -0
  3. package/dist/{Select-DmT9pFRW.d.ts → Select-BddM4uXC.d.ts} +4 -42
  4. package/dist/{Select-DQpfyK7I.d.cts → Select-Cf0xz1Tg.d.cts} +4 -42
  5. package/dist/chart.js +5 -3
  6. package/dist/chunk-4TTHKFJ7.js +706 -0
  7. package/dist/chunk-CZ2ITBRW.js +65 -0
  8. package/dist/{chunk-EYB55TC5.js → chunk-D3HXXEEZ.js} +9 -5
  9. package/dist/{chunk-X4OLHWC3.js → chunk-JEDJQ257.js} +11 -7
  10. package/dist/chunk-KY6A5IJH.js +18 -0
  11. package/dist/{chunk-NURPAO7G.js → chunk-MMSYWDTR.js} +9 -5
  12. package/dist/{chunk-PUZWLIIJ.js → chunk-NZMUW5XI.js} +1 -13
  13. package/dist/{chunk-D456SSL3.js → chunk-OJ2WDC66.js} +6 -4
  14. package/dist/{chunk-V6CRVCSB.js → chunk-QV3AP6A2.js} +40 -729
  15. package/dist/chunk-RX242MUO.js +0 -0
  16. package/dist/chunk-SCEHVGKV.js +75 -0
  17. package/dist/{chunk-TUXNOSCT.js → chunk-SO7IJZIR.js} +4 -2
  18. package/dist/{chunk-T3EGAN7O.js → chunk-WD56MJO2.js} +5 -3
  19. package/dist/{core-_1K1jLyH.d.ts → core-Bm-1bOjF.d.ts} +8 -1
  20. package/dist/{core-DF7gei-P.d.cts → core-zpQkbNf_.d.cts} +8 -1
  21. package/dist/core.cjs +3 -1
  22. package/dist/core.css +31 -0
  23. package/dist/core.d.cts +3 -2
  24. package/dist/core.d.ts +3 -2
  25. package/dist/core.js +12 -7
  26. package/dist/game.cjs +2801 -0
  27. package/dist/game.css +8919 -0
  28. package/dist/game.d.cts +416 -0
  29. package/dist/game.d.ts +416 -0
  30. package/dist/game.js +1020 -0
  31. package/dist/index.cjs +5518 -5460
  32. package/dist/index.css +71 -0
  33. package/dist/index.d.cts +45 -10
  34. package/dist/index.d.ts +45 -10
  35. package/dist/index.js +718 -656
  36. package/dist/markdown-editor.js +3 -2
  37. package/dist/rich-text-editor.cjs +3 -1
  38. package/dist/rich-text-editor.js +7 -4
  39. package/dist/{select-date-range-BT71tp7y.d.cts → select-date-range-Cm5o2xPp.d.cts} +1 -1
  40. package/dist/{select-date-range-CFGzoyLs.d.ts → select-date-range-yGDEA1RP.d.ts} +1 -1
  41. package/dist/select-date-range.d.cts +3 -2
  42. package/dist/select-date-range.d.ts +3 -2
  43. package/dist/select-date-range.js +8 -5
  44. package/package.json +9 -3
  45. package/dist/chunk-SJFT5OSX.js +0 -131
package/dist/game.cjs ADDED
@@ -0,0 +1,2801 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/game.ts
21
+ var game_exports = {};
22
+ __export(game_exports, {
23
+ GameBattleStage: () => GameBattleStage,
24
+ GameBossPanel: () => GameBossPanel,
25
+ GameButton: () => GameButton,
26
+ GameCharacterPanel: () => GameCharacterPanel,
27
+ GameDialog: () => GameDialog,
28
+ GameEquipmentComparison: () => GameEquipmentComparison,
29
+ GameEquipmentPanel: () => GameEquipmentPanel,
30
+ GameLogPanel: () => GameLogPanel,
31
+ GameMapPanel: () => GameMapPanel,
32
+ GamePetPanel: () => GamePetPanel,
33
+ GameResourceSummary: () => GameResourceSummary,
34
+ GameSavePanel: () => GameSavePanel,
35
+ GameShell: () => GameShell,
36
+ GameSprite: () => GameSprite,
37
+ IdleGameApp: () => IdleGameApp,
38
+ createIdleEngine: () => createIdleEngine
39
+ });
40
+ module.exports = __toCommonJS(game_exports);
41
+
42
+ // src/game/engine.ts
43
+ function createIdleEngine(definition) {
44
+ const MAPS = definition.maps, PETS = definition.pets, slots = definition.slots, RARITIES = definition.rarities;
45
+ const slotKeys = Object.keys(slots), SLOTS = Object.fromEntries(slotKeys.map((key) => [key, slots[key].name]));
46
+ const positive = (value) => Number.isFinite(value) && value > 0;
47
+ if (!MAPS.length || !PETS.length || !slotKeys.length || RARITIES.length < 3 || new Set(PETS.map((p) => p.id)).size !== PETS.length || MAPS.some((m, i) => m.id !== i || !slots[m.rewardSlot] || !positive(m.hp) || !positive(m.bossHp) || [m.atk, m.bossAtk, m.xp, m.gold].some((n) => !Number.isFinite(n) || n < 0)) || PETS.some((p) => !p.id || !Number.isFinite(p.cost) || p.cost < 0 || !Number.isFinite(p.base) || p.base < 0) || slotKeys.some((k) => slots[k].names.length !== RARITIES.length || Object.values(slots[k].base).some((n) => !Number.isFinite(n) || n < 0)) || definition.offlineCapSeconds !== void 0 && (!Number.isInteger(definition.offlineCapSeconds) || definition.offlineCapSeconds < 0 || definition.offlineCapSeconds > 43200))
48
+ throw new Error("\u6E38\u620F\u5185\u5BB9\u914D\u7F6E\u4E0D\u6B63\u786E");
49
+ const busy2 = (s) => Boolean(s.fight?.boss && s.fight.status === "active");
50
+ const copy = (value) => JSON.parse(JSON.stringify(value));
51
+ function makeGear(slot, tier = 0, rank = 0, id = Date.now()) {
52
+ const scale = (1 + tier * 0.75) * (1 + rank * 0.45);
53
+ return { id: String(id), slot, tier, rank, name: slots[slot].names[tier], atk: Math.round(slots[slot].base.atk * scale), def: Math.round(slots[slot].base.def * scale), hp: Math.round(slots[slot].base.hp * scale), locked: false };
54
+ }
55
+ function freshState(now = Date.now()) {
56
+ return { version: 1, name: definition.heroName, level: 1, xp: 0, gold: 120, essence: 30, material: 0, map: 0, unlocked: 0, cleared: [], idle: false, kills: 0, bossWins: 0, inventory: [], equipment: Object.fromEntries(slotKeys.map((key) => [key, slots[key].starter ? makeGear(key, 0, 0, `starter-${key}`) : null])), upgrades: Object.fromEntries(slotKeys.map((key) => [key, 0])), pet: PETS[0].id, pets: { [PETS[0].id]: 1 }, nextId: 1, savedAt: now, sessionGold: 0, sessionXp: 0, sessionDrops: 0, logs: [], fight: null };
57
+ }
58
+ const xpNeeded = (s) => 50 + s.level * 30;
59
+ function stats(s) {
60
+ const result = { power: 0, atk: 16 + (s.level - 1) * 4, def: 3 + (s.level - 1) * 2, hp: 165 + (s.level - 1) * 23 };
61
+ for (const [slot, item] of Object.entries(s.equipment))
62
+ if (item) {
63
+ const multiplier = 1 + s.upgrades[slot] * 0.16;
64
+ for (const key of ["atk", "def", "hp"])
65
+ result[key] += Math.round(item[key] * multiplier);
66
+ }
67
+ result.power = result.atk * 5 + result.def * 3 + Math.round(result.hp / 5) + (s.pets[s.pet] || 0) * 18;
68
+ return result;
69
+ }
70
+ function addLog(s, text, type = "info") {
71
+ s.logs.unshift({ text, type, time: Date.now() });
72
+ s.logs = s.logs.slice(0, 60);
73
+ }
74
+ function addDrop(s, item) {
75
+ s.sessionDrops++;
76
+ if (s.inventory.length >= 80) {
77
+ s.material += 2 + item.tier * 2;
78
+ return false;
79
+ }
80
+ s.inventory.push(item);
81
+ return true;
82
+ }
83
+ function grant(s, xp, gold) {
84
+ s.xp += xp;
85
+ s.gold += gold;
86
+ s.sessionGold += gold;
87
+ s.sessionXp += xp;
88
+ while (s.xp >= xpNeeded(s) && s.level < 60) {
89
+ s.xp -= xpNeeded(s);
90
+ s.level++;
91
+ addLog(s, `\u5883\u754C\u7CBE\u8FDB\uFF0C\u5347\u81F3 ${s.level} \u7EA7\uFF01`, "rare");
92
+ }
93
+ }
94
+ function beginFight(s, boss = false) {
95
+ if (boss && busy2(s))
96
+ return;
97
+ const m = MAPS[s.map], st = stats(s);
98
+ s.fight = { boss, hp: st.hp, maxHp: st.hp, enemyHp: boss ? m.bossHp : m.hp, enemyMax: boss ? m.bossHp : m.hp, turn: 0, status: "active", recovery: 0 };
99
+ if (boss)
100
+ addLog(s, `\u5411 ${m.boss} \u53D1\u8D77\u6311\u6218\u3002`, "boss");
101
+ }
102
+ function tick(s, rng = Math.random) {
103
+ if (!s.idle && !s.fight?.boss)
104
+ return null;
105
+ if (!s.fight)
106
+ beginFight(s);
107
+ let f = s.fight;
108
+ if (f.status !== "active") {
109
+ if (++f.recovery < 2)
110
+ return null;
111
+ if (!s.idle) {
112
+ s.fight = null;
113
+ return null;
114
+ }
115
+ beginFight(s);
116
+ f = s.fight;
117
+ }
118
+ const st = stats(s), m = MAPS[s.map];
119
+ f.turn++;
120
+ const skill = f.turn % 3 === 0, crit = rng() < 0.13;
121
+ const damage = Math.round(st.atk * (skill ? 1.65 : 1) * (crit ? 1.5 : 1));
122
+ const pet = PETS.find((p) => p.id === s.pet), petLevel = s.pets[s.pet] || 1;
123
+ const petDamage = pet.base + (petLevel - 1) * 3;
124
+ f.enemyHp = Math.max(0, f.enemyHp - damage - petDamage);
125
+ if (pet.effect === "heal")
126
+ f.hp = Math.min(f.maxHp, f.hp + 7 + petLevel * 3);
127
+ const event = { damage, petDamage, crit, skill, incoming: 0 };
128
+ if (f.enemyHp === 0) {
129
+ f.status = "won";
130
+ s.kills++;
131
+ if (f.boss) {
132
+ s.bossWins++;
133
+ const first = !s.cleared.includes(s.map);
134
+ grant(s, m.xp * (first ? 6 : 2), m.gold * (first ? 8 : 3));
135
+ s.essence += first ? 50 : 12;
136
+ if (first) {
137
+ s.cleared.push(s.map);
138
+ s.unlocked = Math.min(MAPS.length - 1, Math.max(s.unlocked, s.map + 1));
139
+ const item = makeGear(m.rewardSlot, 1, s.map, `drop-${s.nextId++}`);
140
+ addDrop(s, item);
141
+ event.reward = item.name;
142
+ addLog(s, `\u9996\u901A ${m.boss}\uFF01\u83B7\u5F97 ${item.name}\uFF0C${s.map < MAPS.length - 1 ? "\u65B0\u7684\u897F\u884C\u5730\u56FE\u5DF2\u89E3\u9501\u3002" : "\u5168\u90E8\u7AE0\u8282\u8BD5\u70BC\u5B8C\u6210\uFF01"}`, "rare");
143
+ } else
144
+ addLog(s, `\u518D\u6B21\u51FB\u8D25 ${m.boss}\uFF0C\u83B7\u5F97\u4FEE\u884C\u5956\u52B1\u3002`, "rare");
145
+ event.bossWin = true;
146
+ event.first = first;
147
+ } else {
148
+ grant(s, m.xp, m.gold);
149
+ s.essence += 2;
150
+ if (rng() < 0.38) {
151
+ const item = makeGear(Object.keys(SLOTS)[Math.min(slotKeys.length - 1, Math.floor(rng() * slotKeys.length))], rng() < 0.12 ? 2 : rng() < 0.45 ? 1 : 0, s.map, `drop-${s.nextId++}`);
152
+ const kept = addDrop(s, item);
153
+ addLog(s, kept ? `\u62FE\u5F97 ${RARITIES[item.tier]} \xB7 ${item.name}` : "\u80CC\u5305\u5DF2\u6EE1\uFF0C\u65B0\u6389\u843D\u5DF2\u8F6C\u4E3A\u953B\u6750\u3002", "loot");
154
+ event.drop = item.name;
155
+ }
156
+ }
157
+ return event;
158
+ }
159
+ const incoming = Math.max(1, Math.round(((f.boss ? m.bossAtk : m.atk) * (f.boss && f.turn % 4 === 0 ? 1.5 : 1) - st.def) * (pet.effect === "guard" ? 0.75 : 1)));
160
+ f.hp = Math.max(0, f.hp - incoming);
161
+ event.incoming = incoming;
162
+ if (f.hp === 0 || f.turn >= 60) {
163
+ f.status = "lost";
164
+ event.lost = true;
165
+ addLog(s, `${f.boss ? m.boss : m.enemy}\u6311\u6218\u5931\u5229\uFF1A${f.hp === 0 ? "\u6C14\u8840\u8017\u5C3D\uFF0C\u53EF\u5F3A\u5316\u8863\u888D\u6216\u57F9\u517B\u7075\u5BA0\u3002" : "\u8F93\u51FA\u4E0D\u8DB3\uFF0C\u53EF\u66F4\u6362\u6B66\u5668\u3002"}\u4F11\u6574\u540E\u7EE7\u7EED\u3002`, "boss");
166
+ }
167
+ return event;
168
+ }
169
+ function equip(s, id) {
170
+ if (busy2(s))
171
+ return false;
172
+ const index = s.inventory.findIndex((i) => i.id === id);
173
+ if (index < 0)
174
+ return false;
175
+ const item = s.inventory.splice(index, 1)[0], old = s.equipment[item.slot];
176
+ if (old)
177
+ s.inventory.push(old);
178
+ s.equipment[item.slot] = item;
179
+ addLog(s, `\u88C5\u5907\u4E86 ${item.name}\u3002`, "loot");
180
+ return true;
181
+ }
182
+ const upgradeCost = (s, slot) => 45 + s.upgrades[slot] * 35;
183
+ function upgrade(s, slot) {
184
+ if (busy2(s))
185
+ return false;
186
+ if (!s.equipment[slot] || s.upgrades[slot] >= 10 || s.gold < upgradeCost(s, slot))
187
+ return false;
188
+ s.gold -= upgradeCost(s, slot);
189
+ s.upgrades[slot]++;
190
+ return true;
191
+ }
192
+ function dismantle(s, id) {
193
+ if (busy2(s))
194
+ return false;
195
+ const index = s.inventory.findIndex((i) => i.id === id && !i.locked);
196
+ if (index < 0)
197
+ return false;
198
+ const [item] = s.inventory.splice(index, 1);
199
+ s.material += 2 + item.tier * 2;
200
+ return true;
201
+ }
202
+ function forge(s) {
203
+ if (busy2(s))
204
+ return false;
205
+ if (s.material < 12)
206
+ return false;
207
+ s.material -= 12;
208
+ const slots2 = Object.keys(SLOTS), slot = slots2[(s.nextId - 1) % slotKeys.length];
209
+ addDrop(s, makeGear(slot, 2, s.map, `drop-${s.nextId++}`));
210
+ return true;
211
+ }
212
+ function trainPet(s, id) {
213
+ if (busy2(s))
214
+ return false;
215
+ const level = s.pets[id];
216
+ if (!level || level >= 20)
217
+ return false;
218
+ const cost = level * 15;
219
+ if (s.essence < cost)
220
+ return false;
221
+ s.essence -= cost;
222
+ s.pets[id]++;
223
+ return true;
224
+ }
225
+ function unlockPet(s, id) {
226
+ if (busy2(s))
227
+ return false;
228
+ const pet = PETS.find((p) => p.id === id);
229
+ if (!pet || s.pets[id] || s.essence < pet.cost)
230
+ return false;
231
+ s.essence -= pet.cost;
232
+ s.pets[id] = 1;
233
+ return true;
234
+ }
235
+ function hydrate(input, now = Date.now()) {
236
+ if (!input || typeof input !== "object")
237
+ throw new Error("\u5B58\u6863\u683C\u5F0F\u4E0D\u6B63\u786E");
238
+ const raw = input;
239
+ if (!raw || raw.version !== 1 || !Array.isArray(raw.inventory) || !raw.equipment || !raw.pets)
240
+ throw new Error("\u5B58\u6863\u683C\u5F0F\u4E0D\u6B63\u786E");
241
+ const s = freshState(now), number = (v, min, max) => typeof v === "number" && Number.isFinite(v) ? Math.max(min, Math.min(max, Math.floor(v))) : min;
242
+ for (const key of ["gold", "xp", "essence", "material", "kills", "bossWins", "sessionGold", "sessionXp", "sessionDrops"])
243
+ s[key] = number(raw[key], 0, 1e9);
244
+ s.level = number(raw.level, 1, 60);
245
+ s.unlocked = number(raw.unlocked, 0, MAPS.length - 1);
246
+ s.map = number(raw.map, 0, s.unlocked);
247
+ s.nextId = number(raw.nextId, 1, 1e9);
248
+ s.savedAt = number(raw.savedAt, 0, now);
249
+ s.idle = raw.idle === true;
250
+ s.cleared = [...new Set((Array.isArray(raw.cleared) ? raw.cleared : []).filter((v) => Number.isInteger(v) && v >= 0 && v < MAPS.length))];
251
+ const validItem = (item) => !!item && typeof item.id === "string" && item.id.length < 80 && /^[a-zA-Z0-9_-]+$/.test(item.id) && Object.hasOwn(SLOTS, item.slot) && Number.isInteger(item.tier) && item.tier >= 0 && item.tier < RARITIES.length;
252
+ const cleanItem = (item) => ({ ...makeGear(item.slot, item.tier, number(item.rank, 0, MAPS.length - 1), item.id), locked: item.locked === true });
253
+ s.inventory = raw.inventory.slice(0, 80).filter(validItem).map(cleanItem);
254
+ for (const slot of Object.keys(SLOTS)) {
255
+ s.equipment[slot] = validItem(raw.equipment[slot]) && raw.equipment[slot].slot === slot ? cleanItem(raw.equipment[slot]) : null;
256
+ s.upgrades[slot] = number(raw.upgrades?.[slot], 0, 10);
257
+ }
258
+ for (const pet of PETS)
259
+ if (raw.pets[pet.id])
260
+ s.pets[pet.id] = number(raw.pets[pet.id], 1, 20);
261
+ s.pet = Object.hasOwn(s.pets, raw.pet) ? raw.pet : PETS[0].id;
262
+ return s;
263
+ }
264
+ function settleOffline(s, now = Date.now(), rng = Math.random) {
265
+ const seconds = Math.min(definition.offlineCapSeconds ?? 43200, Math.max(0, Math.floor((now - s.savedAt) / 1e3)));
266
+ if (!s.idle || seconds < 15) {
267
+ s.savedAt = now;
268
+ return null;
269
+ }
270
+ const before = { xp: s.sessionXp, gold: s.gold, drops: s.sessionDrops, essence: s.essence, kills: s.kills };
271
+ s.fight = null;
272
+ for (let i = 0; i < seconds; i++)
273
+ tick(s, rng);
274
+ s.fight = null;
275
+ s.savedAt = now;
276
+ return { seconds, xp: s.sessionXp - before.xp, gold: s.gold - before.gold, drops: s.sessionDrops - before.drops, essence: s.essence - before.essence, kills: s.kills - before.kills };
277
+ }
278
+ function serialize(s, now = Date.now()) {
279
+ const saved = copy(s);
280
+ saved.savedAt = now;
281
+ saved.fight = null;
282
+ saved.logs = [];
283
+ return JSON.stringify(saved);
284
+ }
285
+ return { definition, freshState, makeGear, xpNeeded, stats, addLog, grant, beginFight, tick, equip, upgradeCost, upgrade, dismantle, forge, trainPet, unlockPet, hydrate, settleOffline, serialize };
286
+ }
287
+
288
+ // src/game/components.tsx
289
+ var import_react8 = require("react");
290
+
291
+ // src/components/titleTooltip.tsx
292
+ var import_client = require("react-dom/client");
293
+
294
+ // src/components/PopupPortal.tsx
295
+ var import_react = require("react");
296
+ var import_react_dom = require("react-dom");
297
+ var import_jsx_runtime = require("react/jsx-runtime");
298
+ function setForwardedRef(ref, value) {
299
+ if (typeof ref === "function") ref(value);
300
+ else if (ref) ref.current = value;
301
+ }
302
+ function clamp(value, min, max) {
303
+ return Math.min(Math.max(value, min), Math.max(min, max));
304
+ }
305
+ var PopupPortal = (0, import_react.forwardRef)(function PopupPortal2({
306
+ anchorRef,
307
+ open = true,
308
+ placement = "bottom-start",
309
+ offset = 6,
310
+ viewportPadding = 8,
311
+ className = "",
312
+ style,
313
+ children,
314
+ ...props
315
+ }, forwardedRef) {
316
+ const popupRef = (0, import_react.useRef)(null);
317
+ const [position, setPosition] = (0, import_react.useState)();
318
+ (0, import_react.useLayoutEffect)(() => {
319
+ if (!open || typeof document === "undefined") {
320
+ setPosition(void 0);
321
+ return;
322
+ }
323
+ const update = () => {
324
+ const anchor = anchorRef.current;
325
+ const popup = popupRef.current;
326
+ if (!anchor || !popup) return;
327
+ const anchorRect = anchor.getBoundingClientRect();
328
+ const popupRect = popup.getBoundingClientRect();
329
+ const viewportWidth = document.documentElement.clientWidth;
330
+ const viewportHeight = document.documentElement.clientHeight;
331
+ let resolvedPlacement = placement;
332
+ const availableBelow = Math.max(0, viewportHeight - viewportPadding - anchorRect.bottom - offset);
333
+ const availableAbove = Math.max(0, anchorRect.top - offset - viewportPadding);
334
+ const availableRight = Math.max(0, viewportWidth - viewportPadding - anchorRect.right - offset);
335
+ const availableLeft = Math.max(0, anchorRect.left - offset - viewportPadding);
336
+ const horizontalSide = placement.startsWith("right") || placement.startsWith("left");
337
+ if (horizontalSide) {
338
+ const prefersRight = placement.startsWith("right");
339
+ const fitsRight = popupRect.width <= availableRight;
340
+ const fitsLeft = popupRect.width <= availableLeft;
341
+ if (prefersRight && !fitsRight && (fitsLeft || availableLeft > availableRight)) {
342
+ resolvedPlacement = placement.replace("right", "left");
343
+ } else if (!prefersRight && !fitsLeft && (fitsRight || availableRight > availableLeft)) {
344
+ resolvedPlacement = placement.replace("left", "right");
345
+ }
346
+ } else {
347
+ const prefersBottom = placement.startsWith("bottom");
348
+ const fitsBelow = popupRect.height <= availableBelow;
349
+ const fitsAbove = popupRect.height <= availableAbove;
350
+ if (prefersBottom && !fitsBelow && (fitsAbove || availableAbove > availableBelow)) {
351
+ resolvedPlacement = placement.replace("bottom", "top");
352
+ } else if (!prefersBottom && !fitsAbove && (fitsBelow || availableBelow > availableAbove)) {
353
+ resolvedPlacement = placement.replace("top", "bottom");
354
+ }
355
+ }
356
+ const resolvedHorizontalSide = resolvedPlacement.startsWith("right") || resolvedPlacement.startsWith("left");
357
+ const top = resolvedHorizontalSide ? resolvedPlacement.endsWith("end") ? anchorRect.bottom - popupRect.height : anchorRect.top : resolvedPlacement.startsWith("bottom") ? anchorRect.bottom + offset : anchorRect.top - popupRect.height - offset;
358
+ const availableHeight = resolvedHorizontalSide ? Math.max(0, viewportHeight - viewportPadding * 2) : resolvedPlacement.startsWith("bottom") ? availableBelow : availableAbove;
359
+ const alignedLeft = resolvedHorizontalSide ? resolvedPlacement.startsWith("right") ? anchorRect.right + offset : anchorRect.left - popupRect.width - offset : resolvedPlacement.endsWith("end") ? anchorRect.right - popupRect.width : anchorRect.left;
360
+ const next = {
361
+ top: clamp(top, viewportPadding, viewportHeight - popupRect.height - viewportPadding),
362
+ left: clamp(alignedLeft, viewportPadding, viewportWidth - popupRect.width - viewportPadding),
363
+ anchorWidth: anchorRect.width,
364
+ availableHeight,
365
+ placement: resolvedPlacement
366
+ };
367
+ setPosition((current) => current && current.top === next.top && current.left === next.left && current.anchorWidth === next.anchorWidth && current.availableHeight === next.availableHeight && current.placement === next.placement ? current : next);
368
+ };
369
+ update();
370
+ window.addEventListener("resize", update);
371
+ window.addEventListener("scroll", update, true);
372
+ const observer = new ResizeObserver(update);
373
+ if (anchorRef.current) observer.observe(anchorRef.current);
374
+ if (popupRef.current) observer.observe(popupRef.current);
375
+ return () => {
376
+ window.removeEventListener("resize", update);
377
+ window.removeEventListener("scroll", update, true);
378
+ observer.disconnect();
379
+ };
380
+ }, [anchorRef, offset, open, placement, viewportPadding]);
381
+ if (!open || typeof document === "undefined") return null;
382
+ return (0, import_react_dom.createPortal)(
383
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
384
+ "div",
385
+ {
386
+ ref: (node) => {
387
+ popupRef.current = node;
388
+ setForwardedRef(forwardedRef, node);
389
+ },
390
+ className: `sia-popup-portal ${className}`.trim(),
391
+ "data-sia-popup-layer": "",
392
+ "data-placement": position?.placement ?? placement,
393
+ style: {
394
+ ...style,
395
+ "--sia-popup-anchor-width": `${position?.anchorWidth ?? anchorRef.current?.getBoundingClientRect().width ?? 0}px`,
396
+ "--sia-popup-available-height": position ? `${position.availableHeight}px` : void 0,
397
+ top: position?.top ?? 0,
398
+ left: position?.left ?? 0,
399
+ visibility: position ? "visible" : "hidden"
400
+ },
401
+ ...withTitleTooltip(props),
402
+ children
403
+ }
404
+ ),
405
+ document.body
406
+ );
407
+ });
408
+
409
+ // src/components/titleTooltip.tsx
410
+ var import_jsx_runtime2 = require("react/jsx-runtime");
411
+ var documents = /* @__PURE__ */ new WeakSet();
412
+ function withTitleTooltip(props) {
413
+ if (!props || typeof props !== "object" || !("title" in props)) return props;
414
+ const { title, ...rest } = props;
415
+ if (typeof document !== "undefined") installTitleTooltips(document);
416
+ return { ...rest, "data-sia-title": title == null ? void 0 : String(title) };
417
+ }
418
+ function installTitleTooltips(doc) {
419
+ if (documents.has(doc)) return;
420
+ documents.add(doc);
421
+ let hovered = null;
422
+ let focused = null;
423
+ let keyboardFocus = true;
424
+ let active = null;
425
+ let pending = null;
426
+ let timer;
427
+ let root;
428
+ let observer;
429
+ let tooltipId = "";
430
+ const canShow = (element) => {
431
+ if (!element.hasAttribute("data-sia-title-overflow-only")) return true;
432
+ return [element, ...element.querySelectorAll("*")].some((node) => {
433
+ if (node.clientWidth <= 0 || node.scrollWidth <= node.clientWidth) return false;
434
+ const style = doc.defaultView?.getComputedStyle(node);
435
+ return style?.textOverflow === "ellipsis" && (style.overflowX === "hidden" || style.overflowX === "clip");
436
+ });
437
+ };
438
+ const candidate = (target) => {
439
+ if (!(target instanceof Element)) return null;
440
+ const element = target.closest("[data-sia-title]");
441
+ return element?.getAttribute("data-sia-title") && !element.closest(".sia-floating") && canShow(element) ? element : null;
442
+ };
443
+ const hasExplicitTooltip = (target) => target instanceof Element && Boolean(target.closest(".sia-floating"));
444
+ const hide = () => {
445
+ clearTimeout(timer);
446
+ pending = null;
447
+ observer?.disconnect();
448
+ observer = void 0;
449
+ if (active) {
450
+ const ids = (active.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((id) => id && id !== tooltipId);
451
+ if (ids.length) active.setAttribute("aria-describedby", ids.join(" "));
452
+ else active.removeAttribute("aria-describedby");
453
+ }
454
+ active = null;
455
+ root?.render(null);
456
+ };
457
+ const render = () => {
458
+ const text = active?.getAttribute("data-sia-title");
459
+ if (!active?.isConnected || !text || !canShow(active)) {
460
+ hide();
461
+ return;
462
+ }
463
+ if (!root) {
464
+ const host = doc.createElement("div");
465
+ host.setAttribute("data-sia-title-tooltip-host", "");
466
+ doc.body.append(host);
467
+ root = (0, import_client.createRoot)(host);
468
+ tooltipId = `sia-title-tooltip-${Math.random().toString(36).slice(2)}`;
469
+ }
470
+ const ids = new Set((active.getAttribute("aria-describedby") ?? "").split(/\s+/).filter(Boolean));
471
+ ids.add(tooltipId);
472
+ active.setAttribute("aria-describedby", [...ids].join(" "));
473
+ root.render(/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
474
+ PopupPortal,
475
+ {
476
+ anchorRef: { current: active },
477
+ placement: "top-start",
478
+ id: tooltipId,
479
+ role: "tooltip",
480
+ className: "sia-title-tooltip",
481
+ children: text
482
+ }
483
+ ));
484
+ };
485
+ const show = (element) => {
486
+ if (!element && !active && !pending) return;
487
+ if (element && (element === active || element === pending)) return;
488
+ hide();
489
+ if (!element) return;
490
+ pending = element;
491
+ timer = setTimeout(() => {
492
+ pending = null;
493
+ if (!element.isConnected) return;
494
+ active = element;
495
+ render();
496
+ if (!active) return;
497
+ observer = new MutationObserver(() => {
498
+ if (!active?.isConnected) hide();
499
+ else if (active.getAttribute("data-sia-title") !== doc.getElementById(tooltipId)?.textContent) render();
500
+ });
501
+ observer.observe(doc.body, { childList: true, subtree: true, attributes: true, attributeFilter: ["data-sia-title"] });
502
+ }, 600);
503
+ };
504
+ doc.addEventListener("pointerover", (event) => {
505
+ if (event.pointerType === "touch") return;
506
+ hovered = candidate(event.target);
507
+ if (hasExplicitTooltip(event.target)) hide();
508
+ else show(hovered ?? focused);
509
+ }, true);
510
+ doc.addEventListener("pointermove", (event) => {
511
+ if (event.pointerType === "touch" || event.buttons) return;
512
+ hovered = candidate(event.target);
513
+ if (!hasExplicitTooltip(event.target)) show(hovered ?? focused);
514
+ }, true);
515
+ doc.addEventListener("pointerout", (event) => {
516
+ if (event.pointerType === "touch") return;
517
+ hovered = candidate(event.relatedTarget);
518
+ if (hasExplicitTooltip(event.relatedTarget)) hide();
519
+ else show(hovered ?? focused);
520
+ }, true);
521
+ doc.addEventListener("focusin", (event) => {
522
+ focused = keyboardFocus ? candidate(event.target) : null;
523
+ if (hasExplicitTooltip(event.target)) hide();
524
+ else if (keyboardFocus) show(focused ?? hovered);
525
+ }, true);
526
+ doc.addEventListener("focusout", (event) => {
527
+ focused = keyboardFocus ? candidate(event.relatedTarget) : null;
528
+ show(hovered ?? focused);
529
+ }, true);
530
+ doc.addEventListener("pointerdown", () => {
531
+ keyboardFocus = false;
532
+ focused = null;
533
+ hide();
534
+ }, true);
535
+ doc.addEventListener("keydown", (event) => {
536
+ if (event.key === "Escape") hide();
537
+ else if (event.key === "Tab") keyboardFocus = true;
538
+ }, true);
539
+ doc.addEventListener("scroll", hide, true);
540
+ doc.addEventListener("visibilitychange", () => {
541
+ if (doc.hidden) {
542
+ hovered = focused = null;
543
+ hide();
544
+ }
545
+ });
546
+ doc.defaultView?.addEventListener("blur", () => {
547
+ hovered = focused = null;
548
+ hide();
549
+ });
550
+ }
551
+
552
+ // src/components/shared.ts
553
+ var import_react2 = require("react");
554
+ var ControlSizeContext = (0, import_react2.createContext)("medium");
555
+ function useControlSize(size) {
556
+ const inherited = (0, import_react2.useContext)(ControlSizeContext);
557
+ return size ?? inherited;
558
+ }
559
+ var PlaceholderModeContext = (0, import_react2.createContext)("default");
560
+
561
+ // src/components/Button.tsx
562
+ var import_react3 = require("react");
563
+ var import_jsx_runtime3 = require("react/jsx-runtime");
564
+ var Button = (0, import_react3.forwardRef)(function Button2({
565
+ variant = "default",
566
+ size: sizeProp,
567
+ loading = false,
568
+ block = false,
569
+ danger = false,
570
+ icon,
571
+ iconPosition = "start",
572
+ className = "",
573
+ children,
574
+ disabled,
575
+ onClick,
576
+ style,
577
+ ...props
578
+ }, forwardedRef) {
579
+ const size = useControlSize(sizeProp);
580
+ const localRef = (0, import_react3.useRef)(null);
581
+ function setRef(node) {
582
+ localRef.current = node;
583
+ if (typeof forwardedRef === "function") forwardedRef(node);
584
+ else if (forwardedRef) forwardedRef.current = node;
585
+ }
586
+ function handleClick(event) {
587
+ const button = localRef.current;
588
+ if (button && variant === "primary") {
589
+ const rect = button.getBoundingClientRect();
590
+ button.style.setProperty("--sia-wave-x", `${event.clientX - rect.left}px`);
591
+ button.style.setProperty("--sia-wave-y", `${event.clientY - rect.top}px`);
592
+ button.dataset.wave = "active";
593
+ window.setTimeout(() => delete button.dataset.wave, 360);
594
+ }
595
+ onClick?.(event);
596
+ }
597
+ const mergedStyle = block ? { ...style, width: "100%" } : style ?? {};
598
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
599
+ "button",
600
+ {
601
+ ref: setRef,
602
+ type: "button",
603
+ className: `sia-button sia-button--${variant} sia-button--${size}${danger ? " sia-button--danger" : ""} ${className}`.trim(),
604
+ "aria-busy": loading || void 0,
605
+ disabled: disabled || loading,
606
+ onClick: handleClick,
607
+ style: mergedStyle,
608
+ ...withTitleTooltip(props),
609
+ children: [
610
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "sia-button__spinner", "aria-hidden": "true" }) : icon && iconPosition === "start" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "sia-button__icon", children: icon }) : null,
611
+ children !== void 0 && children !== null ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children }) : null,
612
+ !loading && icon && iconPosition === "end" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "sia-button__icon", children: icon }) : null
613
+ ]
614
+ }
615
+ );
616
+ });
617
+
618
+ // src/components/Modal.tsx
619
+ var import_react7 = require("react");
620
+ var import_client2 = require("react-dom/client");
621
+
622
+ // src/components/Icon.tsx
623
+ var import_react5 = require("react");
624
+
625
+ // src/components/IconCatalog.tsx
626
+ var import_jsx_runtime4 = require("react/jsx-runtime");
627
+ var extendedIconPaths = {
628
+ "notepad-file": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
629
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M752 80H272c-70.4 0-128 57.6-128 128v608c0 70.4 57.6 128 128 128h353.6c33.6 0 65.6-12.8 91.2-36.8l126.4-126.4c24-24 36.8-56 36.8-91.2V208c0-70.4-57.6-128-128-128zM208 816V208c0-35.2 28.8-64 64-64h480c35.2 0 64 28.8 64 64v464h-96c-70.4 0-128 57.6-128 128v80H272c-35.2 0-64-28.8-64-64z m462.4 44.8c-4.8 4.8-9.6 8-14.4 11.2v-72c0-35.2 28.8-64 64-64h75.2L670.4 860.8z" }),
630
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M368 352h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z m128 256H368c-17.6 0-32 14.4-32 32s14.4 32 32 32h128c17.6 0 32-14.4 32-32s-14.4-32-32-32z m-128-96h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z" })
631
+ ] }),
632
+ "notepad-folder": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M510.4 243.2c8 27.2 33.6 44.8 60.8 44.8h259.2c0-35.2-28.8-64-64-64H504l6.4 19.2zM484.8 160h281.6c70.4 0 128 57.6 128 128v25.6c30.4 24 51.2 60.8 51.2 102.4v384c0 70.4-57.6 128-128 128H208c-70.4 0-128-57.6-128-128V224c0-70.4 57.6-128 128-128h164.8c46.4 0 89.6 25.6 112 64z m-112 0H208c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h608c35.2 0 64-28.8 64-64V416c0-35.2-28.8-64-64-64H574.4c-56 0-105.6-36.8-121.6-89.6l-19.2-57.6c-8-27.2-32-44.8-60.8-44.8zM272 704h256c17.6 0 32 14.4 32 32s-14.4 32-32 32H272c-17.6 0-32-14.4-32-32s14.4-32 32-32z" }) }),
633
+ "notepad-virtual-folder": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
634
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M704 864H192c-89.6 0-160-70.4-160-160V192c0-89.6 70.4-160 160-160h512c89.6 0 160 70.4 160 160v512c0 89.6-70.4 160-160 160zM192 96c-51.2 0-96 44.8-96 96v512c0 51.2 44.8 96 96 96h512c51.2 0 96-44.8 96-96V192c0-51.2-44.8-96-96-96H192z" }),
635
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M832 992H320c-19.2 0-32-12.8-32-32s12.8-32 32-32h512c51.2 0 96-44.8 96-96V320c0-19.2 12.8-32 32-32s32 12.8 32 32v512c0 89.6-70.4 160-160 160z" })
636
+ ] }),
637
+ "step-backward": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
638
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 5v14" }),
639
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m18 6-8 6 8 6V6Z" })
640
+ ] }),
641
+ "step-forward": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
642
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M18 5v14" }),
643
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 6 8 6-8 6V6Z" })
644
+ ] }),
645
+ "fast-backward": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m11 6-7 6 7 6V6ZM20 6l-7 6 7 6V6Z" }) }),
646
+ "fast-forward": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m13 6 7 6-7 6V6ZM4 6l7 6-7 6V6Z" }) }),
647
+ "corner-up-left": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
648
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 5-5 5 5 5" }),
649
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h9a7 7 0 0 1 7 7v2" })
650
+ ] }),
651
+ "corner-up-right": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
652
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15 5 5 5-5 5" }),
653
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 10h-9a7 7 0 0 0-7 7v2" })
654
+ ] }),
655
+ "swap-horizontal": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
656
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 8h15m0 0-4-4m4 4-4 4" }),
657
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 16H5m0 0 4-4m-4 4 4 4" })
658
+ ] }),
659
+ "swap-vertical": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
660
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 4v15m0 0-4-4m4 4 4-4" }),
661
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16 20V5m0 0-4 4m4-4 4 4" })
662
+ ] }),
663
+ expand: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4H4v5M4 4l6 6M15 20h5v-5m0 5-6-6" }) }),
664
+ shrink: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 10H5V5m0 5 6-6M14 14h5v5m0-5-6 6" }) }),
665
+ fullscreen: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5" }),
666
+ "fullscreen-exit": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 9h5V4M20 9h-5V4M4 15h5v5M20 15h-5v5" }),
667
+ "menu-fold": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
668
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M4 12h10M4 18h16" }),
669
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m18 9-3 3 3 3" })
670
+ ] }),
671
+ "menu-unfold": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
672
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M10 12h10M4 18h16" }),
673
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 9 3 3-3 3" })
674
+ ] }),
675
+ login: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 5H5v14h5M13 8l4 4-4 4M8 12h9" }) }),
676
+ logout: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 5h5v14h-5M11 8l-4 4 4 4M16 12H7" }) }),
677
+ move: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
678
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3v18M3 12h18" }),
679
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 6 3-3 3 3M9 18l3 3 3-3M6 9l-3 3 3 3M18 9l3 3-3 3" })
680
+ ] }),
681
+ "vertical-align-top": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 4h16M12 7v13M8 11l4-4 4 4" }) }),
682
+ "vertical-align-middle": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 12h16M12 4v16M8 8l4 4 4-4M8 16l4-4 4 4" }) }),
683
+ "vertical-align-bottom": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 20h16M12 4v13M8 13l4 4 4-4" }) }),
684
+ "square-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
685
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
686
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 8v8M8 12h8" })
687
+ ] }),
688
+ "square-minus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
689
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
690
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 12h8" })
691
+ ] }),
692
+ "square-check": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
693
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
694
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8 12 3 3 6-7" })
695
+ ] }),
696
+ "square-close": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
697
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
698
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8.5 8.5 7 7m0-7-7 7" })
699
+ ] }),
700
+ "tab-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
701
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
702
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9h18M7 6.5h.1M10 6.5h.1M15 12v6M12 15h6" })
703
+ ] }),
704
+ "folder-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
705
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
706
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16 11v6M13 14h6" })
707
+ ] }),
708
+ pin: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3h8l-1.5 5 3 3v2H13v8l-2-2v-6H6.5v-2l3-3L8 3Z" }) }),
709
+ "pin-off": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9.5 8 8 3h8l-1.5 5 3 3v2H13v4M6.5 13v-2l1-1M3 3l18 18" }) }),
710
+ stop: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
711
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
712
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 18 18 6" })
713
+ ] }),
714
+ "help-circle": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
715
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
716
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9.7 9a2.5 2.5 0 1 1 3.6 2.3c-.9.5-1.3 1.1-1.3 2.1M12 17v.1" })
717
+ ] }),
718
+ save: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
719
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 3h13l3 3v15H4V3Z" }),
720
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3v6h8V3M8 21v-7h8v7" })
721
+ ] }),
722
+ clipboard: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
723
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
724
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4.5V3h6v1.5M9 9h6M9 13h6M9 17h4" })
725
+ ] }),
726
+ "clipboard-check": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
727
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
728
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4.5V3h6v1.5m-6 9 2 2 4-5" })
729
+ ] }),
730
+ "file-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
731
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
732
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3v5h4M12 11v6M9 14h6" })
733
+ ] }),
734
+ "file-check": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
735
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
736
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3v5h4m-8 6 2 2 4-5" })
737
+ ] }),
738
+ "file-warning": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
739
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
740
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3v5h4M12 11v4m0 3v.1" })
741
+ ] }),
742
+ "file-spreadsheet": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
743
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
744
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3v5h4M8.5 11h7v7h-7v-7Zm0 3.5h7M12 11v7" })
745
+ ] }),
746
+ "align-left": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M4 10h11M4 14h16M4 18h11" }),
747
+ "align-center": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M7 10h10M4 14h16M7 18h10" }),
748
+ "align-right": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M9 10h11M4 14h16M9 18h11" }),
749
+ "align-justify": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M4 10h16M4 14h16M4 18h16" }),
750
+ bold: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 4h6a4 4 0 0 1 0 8H7V4Zm0 8h7a4 4 0 0 1 0 8H7v-8Z" }),
751
+ italic: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 4h8M6 20h8M14 4 10 20" }),
752
+ underline: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 4v7a5 5 0 0 0 10 0V4M5 21h14" }) }),
753
+ strikethrough: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 12h14M8 8c.3-2.5 2-4 4.5-4 2.2 0 3.7 1 4.5 2.5M8 16c.8 2.5 2.5 4 5 4 2.2 0 3.8-1 4.5-2.5" }) }),
754
+ "list-ordered": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
755
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 6h12M9 12h12M9 18h12" }),
756
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 5h1v3M4 11h2l-2 3h2M4 17h2l-2 3h2" })
757
+ ] }),
758
+ "list-unordered": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
759
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 6h12M9 12h12M9 18h12" }),
760
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "4.5", cy: "6", r: ".5" }),
761
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "4.5", cy: "12", r: ".5" }),
762
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "4.5", cy: "18", r: ".5" })
763
+ ] }),
764
+ eraser: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
765
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m4 15 8-10 8 7-7 8H7l-3-3v-2Z" }),
766
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 9 8 7M13 20h8" })
767
+ ] }),
768
+ highlighter: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
769
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m7 14 7-10 5 4-8 9-4-3Z" }),
770
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m5 17 6 3H3l2-3ZM15 14l4 3" })
771
+ ] }),
772
+ table: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
773
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
774
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9h18M3 14h18M9 4v16M15 4v16" })
775
+ ] }),
776
+ columns: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
777
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
778
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 4v16" })
779
+ ] }),
780
+ rows: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
781
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
782
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9h18M3 15h18" })
783
+ ] }),
784
+ "bar-chart": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 21V10h4v11M10 21V4h4v17M16 21v-8h4v8M3 21h18" }) }),
785
+ "line-chart": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
786
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 20h18M4 17l5-6 4 3 7-9" }),
787
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "9", cy: "11", r: "1" }),
788
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "13", cy: "14", r: "1" })
789
+ ] }),
790
+ "pie-chart": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
791
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M11 3a9 9 0 1 0 9 9h-9V3Z" }),
792
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3.5A8.5 8.5 0 0 1 20.5 10H14V3.5Z" })
793
+ ] }),
794
+ "area-chart": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 20h18M4 17l5-6 4 3 7-9v12H4Z" }) }),
795
+ activity: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 12h4l2-6 4 13 3-7h5" }),
796
+ "trending-up": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
797
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m4 17 6-6 4 4 6-7" }),
798
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15 8h5v5" })
799
+ ] }),
800
+ "trending-down": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
801
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m4 7 6 6 4-4 6 7" }),
802
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15 16h5v-5" })
803
+ ] }),
804
+ database: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
805
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ellipse", { cx: "12", cy: "5", rx: "8", ry: "3" }),
806
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 5v7c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12v7c0 1.7 3.6 3 8 3s8-1.3 8-3v-7" })
807
+ ] }),
808
+ cloud: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 19h11a4 4 0 0 0 .5-8A7 7 0 0 0 5.2 9.5 4.8 4.8 0 0 0 7 19Z" }),
809
+ "cloud-download": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
810
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 18H5a4 4 0 0 1 .2-8 7 7 0 0 1 13.3 1A4 4 0 0 1 19 19h-2" }),
811
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 11v10m-4-4 4 4 4-4" })
812
+ ] }),
813
+ "cloud-upload": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
814
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 18H5a4 4 0 0 1 .2-8 7 7 0 0 1 13.3 1A4 4 0 0 1 19 19h-2" }),
815
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 21V11m-4 4 4-4 4 4" })
816
+ ] }),
817
+ server: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
818
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "7", rx: "2" }),
819
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "13", width: "18", height: "7", rx: "2" }),
820
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 7.5h.1M7 16.5h.1M11 7.5h6M11 16.5h6" })
821
+ ] }),
822
+ desktop: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
823
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "14", rx: "2" }),
824
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 21h8M12 17v4" })
825
+ ] }),
826
+ laptop: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
827
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 5h14v11H5V5Z" }),
828
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m3 19 2-3h14l2 3H3Z" })
829
+ ] }),
830
+ mobile: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
831
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "7", y: "2", width: "10", height: "20", rx: "2.5" }),
832
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 5h4M12 19v.1" })
833
+ ] }),
834
+ tablet: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
835
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
836
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 5h4M12 19v.1" })
837
+ ] }),
838
+ printer: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
839
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 9V3h10v6M6 18H4V9h16v9h-2" }),
840
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 14h10v7H7v-7ZM17 11h.1" })
841
+ ] }),
842
+ camera: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
843
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 7h4l2-3h6l2 3h4v13H3V7Z" }),
844
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "13", r: "4" })
845
+ ] }),
846
+ video: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
847
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
848
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m16 10 5-3v10l-5-3v-4Z" })
849
+ ] }),
850
+ microphone: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
851
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "9", y: "3", width: "6", height: "12", rx: "3" }),
852
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8" })
853
+ ] }),
854
+ "volume-up": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
855
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h4l5-4v12l-5-4H4v-4Z" }),
856
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11" })
857
+ ] }),
858
+ "volume-off": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h4l5-4v12l-5-4H4v-4ZM17 9l5 6m0-6-5 6" }) }),
859
+ "speaker-wave": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
860
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
861
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15.2 9.2a4 4 0 0 1 0 5.6" })
862
+ ] }),
863
+ "speaker-muted": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
864
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
865
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15.5 9.5 5 5m0-5-5 5" })
866
+ ] }),
867
+ wifi: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9a14 14 0 0 1 18 0M6 13a9 9 0 0 1 12 0M9.5 17a4 4 0 0 1 5 0M12 21v.1" }) }),
868
+ power: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
869
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3v9" }),
870
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 5.5a8 8 0 1 0 10 0" })
871
+ ] }),
872
+ key: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
873
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "8", cy: "15", r: "4" }),
874
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m11 12 8-8m-3 3 3 3m-6 0 3 3" })
875
+ ] }),
876
+ shield: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
877
+ "shield-check": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
878
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
879
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8 12 2.5 2.5L16 9" })
880
+ ] }),
881
+ bug: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 9h8v7a4 4 0 0 1-8 0V9ZM9 9a3 3 0 0 1 6 0M5 11h3M16 11h3M5 16h3M16 16h3M7 5l2 2M17 5l-2 2" }) }),
882
+ bulb: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
883
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 15a7 7 0 1 1 8 0c-1.2.8-1.5 1.8-1.5 3h-5c0-1.2-.3-2.2-1.5-3Z" }),
884
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9.5 21h5" })
885
+ ] }),
886
+ rocket: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
887
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 16c-2-1-4-1-5 0 0-3 1-5 4-6M14 6c3-3 6-3 7-3 0 1 0 4-3 7l-6 6-4-4 6-6Z" }),
888
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 14c0 3-2 6-5 7 0-2 0-4-1-5M5 19l-2 2" })
889
+ ] }),
890
+ target: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
891
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
892
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "5" }),
893
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "1" })
894
+ ] }),
895
+ trophy: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
896
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 4h8v5a4 4 0 0 1-8 0V4ZM9 20h6M12 13v7" }),
897
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 6H4v2a4 4 0 0 0 5 4M16 6h4v2a4 4 0 0 1-5 4" })
898
+ ] }),
899
+ "shopping-cart": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
900
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 4h2l2 11h10l3-8H6" }),
901
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "9", cy: "20", r: "1" }),
902
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "17", cy: "20", r: "1" })
903
+ ] }),
904
+ "shopping-bag": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
905
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 8h14l1 13H4L5 8Z" }),
906
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 9V6a3 3 0 0 1 6 0v3" })
907
+ ] }),
908
+ shop: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
909
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10v11h16V10M3 4h18l-2 6H5L3 4Z" }),
910
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 21v-6h6v6" })
911
+ ] }),
912
+ wallet: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
913
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "5", width: "18", height: "15", rx: "2.5" }),
914
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9h18M15 13h6v4h-6a2 2 0 0 1 0-4Z" })
915
+ ] }),
916
+ bank: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m3 9 9-6 9 6M5 10h14M6 10v8M10 10v8M14 10v8M18 10v8M3 21h18M4 18h16" }) }),
917
+ calculator: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
918
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
919
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 5h8v4H8V5ZM8 13h.1M12 13h.1M16 13h.1M8 17h.1M12 17h.1M16 17h.1" })
920
+ ] }),
921
+ tag: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
922
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 12V4h8l10 10-7 7L3 12Z" }),
923
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "7.5", cy: "8.5", r: "1" })
924
+ ] }),
925
+ tags: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
926
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 12V4h7l8 8-6 6-9-6Z" }),
927
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "10", cy: "8", r: "1" }),
928
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m3 8 1 9 7 4 2-2" })
929
+ ] }),
930
+ message: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 4h16v13H9l-5 4V4Z" }),
931
+ comments: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
932
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 4h13v10H8l-5 4V4Z" }),
933
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 17h6l5 4V8h-2" })
934
+ ] }),
935
+ send: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m3 11 18-8-8 18-2-8-8-2Zm8 2 10-10" }),
936
+ share: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
937
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "5", r: "3" }),
938
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6", cy: "12", r: "3" }),
939
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "19", r: "3" }),
940
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8.5 10.5 7-4M8.5 13.5l7 4" })
941
+ ] }),
942
+ paperclip: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8 12 7-7a4 4 0 0 1 6 6l-9 9a6 6 0 0 1-9-9l8-8" }),
943
+ location: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
944
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 22s7-6.2 7-13a7 7 0 1 0-14 0c0 6.8 7 13 7 13Z" }),
945
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "9", r: "2.5" })
946
+ ] }),
947
+ compass: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
948
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
949
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15.5 8.5-2 5-5 2 2-5 5-2Z" })
950
+ ] }),
951
+ car: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
952
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 15V9l2-5h12l2 5v6M3 10h18M6 15h12" }),
953
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "7", cy: "18", r: "2" }),
954
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "17", cy: "18", r: "2" })
955
+ ] }),
956
+ truck: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
957
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 5h11v12H3V5ZM14 9h4l3 4v4h-7V9Z" }),
958
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "7", cy: "19", r: "2" }),
959
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "19", r: "2" })
960
+ ] }),
961
+ gift: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
962
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "9", width: "18", height: "12", rx: "2" }),
963
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 9v12M3 13h18M12 9H8a3 3 0 1 1 4-3v3Zm0 0h4a3 3 0 1 0-4-3v3Z" })
964
+ ] }),
965
+ coffee: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
966
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 8h13v6a6 6 0 0 1-6 6H10a6 6 0 0 1-6-6V8ZM17 10h2a3 3 0 0 1 0 6h-3" }),
967
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 4v1M12 3v2" })
968
+ ] }),
969
+ experiment: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
970
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 3h6M10 3v6l-6 10a2 2 0 0 0 2 3h12a2 2 0 0 0 2-3L14 9V3" }),
971
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 16h10" })
972
+ ] }),
973
+ tool: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 6a5 5 0 0 0-6-3l3 3-3 3-3-3a5 5 0 0 0 6 6l7 7a2 2 0 0 0 3-3l-7-7Z" }) }),
974
+ appstore: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
975
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "7", height: "7", rx: "2" }),
976
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "14", y: "3", width: "7", height: "7", rx: "2" }),
977
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "14", width: "7", height: "7", rx: "2" }),
978
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "14", y: "14", width: "7", height: "7", rx: "2" })
979
+ ] }),
980
+ puzzle: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 3h4.2a2.8 2.8 0 1 0 5.6 0H21v6h-2.2a2.8 2.8 0 1 0 0 5.6H21V21h-6.4v-2.2a2.8 2.8 0 1 0-5.6 0V21H3v-6.4h2.2a2.8 2.8 0 1 0 0-5.6H3V3h6Z" }) }),
981
+ partition: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
982
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 5v5M6 14v-2h12v2M6 18v3M12 18v3M18 18v3" }),
983
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "3", r: "2" }),
984
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6", cy: "16", r: "2" }),
985
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "16", r: "2" }),
986
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "16", r: "2" })
987
+ ] }),
988
+ branches: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
989
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6", cy: "5", r: "2" }),
990
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "7", r: "2" }),
991
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6", cy: "19", r: "2" }),
992
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 7v10M8 10c6 0 4-3 8-3M8 14c6 0 4 3 8 3" })
993
+ ] }),
994
+ scan: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5M7 12h10" }),
995
+ "qr-code": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
996
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1" }),
997
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "14", y: "3", width: "7", height: "7", rx: "1" }),
998
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1" }),
999
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 14h3v3h-3v-3ZM18 18h3v3h-3v-3ZM14 20h1M20 14h1" })
1000
+ ] }),
1001
+ barcode: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 5v14M7 5v14M11 5v14M14 5v14M16 5v14M20 5v14" }),
1002
+ "user-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1003
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "10", cy: "8", r: "4" }),
1004
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 21c.7-4.3 3-6.5 7-6.5 2 0 3.6.6 4.7 1.7M19 14v7M15.5 17.5h7" })
1005
+ ] }),
1006
+ "user-minus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1007
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "10", cy: "8", r: "4" }),
1008
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 21c.7-4.3 3-6.5 7-6.5 2 0 3.6.6 4.7 1.7M15.5 17.5h7" })
1009
+ ] }),
1010
+ smile: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1011
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1012
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 10h.1M16 10h.1M8 15c1 1.4 2.3 2 4 2s3-.6 4-2" })
1013
+ ] }),
1014
+ meh: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1015
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1016
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 10h.1M16 10h.1M8 16h8" })
1017
+ ] }),
1018
+ frown: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1019
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1020
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 10h.1M16 10h.1M8 17c1-1.4 2.3-2 4-2s3 .6 4 2" })
1021
+ ] }),
1022
+ "game-cultivator": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1023
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7.2 7.5h9.6M9 5.2 12 2l3 3.2" }),
1024
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "8.8", r: "3.6" }),
1025
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7.5 21c.2-4.9 1.8-7.3 4.5-7.3s4.3 2.4 4.5 7.3M9.4 15.2 7 18m7.6-2.8L17 18M10 21l2-4 2 4" })
1026
+ ] }),
1027
+ "game-swordsman": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1028
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9.2 5.2h5.6M12 2.5v2.7" }),
1029
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "8.8", r: "3.4" }),
1030
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7.2 21c.3-5 1.9-7.4 4.8-7.4s4.5 2.4 4.8 7.4M9.2 14.8 7 18.2m7.8-3.4 2.2 3.4M9.5 21l2.5-4 2.5 4" }),
1031
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m17.7 5.1 2.2-1-.9 2.3-5.2 5.2M16.2 7.8l1.8 1.8" })
1032
+ ] }),
1033
+ "game-spirit-wolf": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1034
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m5.2 8.2.7-4 3.3 2.2A9 9 0 0 1 12 6c1 0 1.9.1 2.8.4l3.3-2.2.7 4A7.7 7.7 0 0 1 20 13c0 4.3-3.5 7.7-8 7.7S4 17.3 4 13c0-1.8.4-3.4 1.2-4.8Z" }),
1035
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8.3 12h.1m7.2 0h.1M9 16c1.8 1.3 4.2 1.3 6 0m-3-1.5v1M7 18l-2.2 2M17 18l2.2 2" })
1036
+ ] }),
1037
+ "game-gem": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1038
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m4 8 3-4h10l3 4-8 13L4 8Z" }),
1039
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 8h16M8 4l-2 4 6 13 6-13-2-4M6 8h12" })
1040
+ ] }),
1041
+ "game-ingot": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1042
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 9.5c2.2 1 4.1 1.5 5.8 1.6L12 6l2.2 5.1c1.7-.1 3.6-.6 5.8-1.6-.3 5.1-2.9 8.4-8 10-5.1-1.6-7.7-4.9-8-10Z" }),
1043
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4.6 10.1 3 6.5c2.3 1.2 4.2 1.6 5.8 1.2M19.4 10.1 21 6.5c-2.3 1.2-4.2 1.6-5.8 1.2M7 16.3c3.3 1 6.7 1 10 0" })
1044
+ ] }),
1045
+ "game-sword": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1046
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m14.5 4.5 5-1-1 5L9 18l-3 1 1-3 9.5-9.5M5 19l-1 1" }),
1047
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m12.5 7.5 4 4M7.5 14.5l2 2" })
1048
+ ] }),
1049
+ "game-robe": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1050
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8.5 4 3.5 2 3.5-2 4 4-2.5 3-1.2-1V21H8.2V10L7 11 4.5 8l4-4Z" }),
1051
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4.5 12 9l3-4.5M12 9v12" })
1052
+ ] }),
1053
+ "game-pants": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1054
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 3h10l1 18h-5l-1-10-1 10H6L7 3Z" }),
1055
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 7h10M12 3v8" })
1056
+ ] }),
1057
+ "game-pendant": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1058
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 4c1.7 4.4 4 6.6 7 6.6S17.3 8.4 19 4" }),
1059
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 10.6c-2.7 1.8-4 3.8-4 6a4 4 0 0 0 8 0c0-2.2-1.3-4.2-4-6Z" }),
1060
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "16.5", r: "1.5" })
1061
+ ] }),
1062
+ "game-necklace": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1063
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 4c.7 6.3 3 9.5 7 9.5S18.3 10.3 19 4" }),
1064
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m12 13.5 3 2.4-1.2 4.1h-3.6L9 15.9l3-2.4Z" }),
1065
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 7h.1m10 0h.1M9 10h.1m6 0h.1" })
1066
+ ] }),
1067
+ "game-pill": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1068
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6.2 17.8a5.7 5.7 0 0 1 0-8.1l3.5-3.5a5.7 5.7 0 1 1 8.1 8.1l-3.5 3.5a5.7 5.7 0 0 1-8.1 0Z" }),
1069
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8 8 8 8" }),
1070
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6.3 12.2c1.3.2 2.5.7 3.5 1.7s1.6 2.2 1.8 3.5" })
1071
+ ] }),
1072
+ "game-potion": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1073
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 3h6M10 3v5l-5 7.5A3.5 3.5 0 0 0 8 21h8a3.5 3.5 0 0 0 3-5.5L14 8V3" }),
1074
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 15h10M9.5 12h5" })
1075
+ ] }),
1076
+ "game-elixir-jar": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1077
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3h8l-1 4c2.6 1.2 4 3.5 4 6.8V21H5v-7.2C5 10.5 6.4 8.2 9 7L8 3Z" }),
1078
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8.5 7h7M5 14h14M9 17h6" })
1079
+ ] }),
1080
+ "game-flame": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1081
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M13.8 2.5c.6 3.6-2.1 4.8-2.1 7.2 0 1.1.7 1.9 1.7 1.9 1.8 0 2.4-2.1 2-4.1 2.6 2 4.1 4.6 4.1 7.4A7.5 7.5 0 0 1 4.5 15c0-3.5 1.8-6.5 5.2-9-.2 2.3.8 3.4 1.8 3.7-.4-2.6.3-5.1 2.3-7.2Z" }),
1082
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 21c-2 0-3.3-1.3-3.3-3.2 0-1.5.9-2.8 2.6-4.2 0 1.7.8 2.5 1.7 2.5 1 0 1.7-.9 1.5-2.3 1.2 1.2 1.8 2.5 1.8 4A4 4 0 0 1 12 21Z" })
1083
+ ] }),
1084
+ "game-soul-elixir": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1085
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "4.2" }),
1086
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.2 2.2m9 9 2.2 2.2m0-13.4-2.2 2.2m-9 9-2.2 2.2" }),
1087
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m10 12 1.4 1.4L14.5 10" })
1088
+ ] }),
1089
+ "game-herb": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1090
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 21V9" }),
1091
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 13c-5.5.1-8-2.6-8-7.5 5-.2 7.8 2.1 8 7.5Zm0 4c5.5.1 8-2.6 8-7.5-5-.2-7.8 2.1-8 7.5Z" })
1092
+ ] }),
1093
+ "game-meditate": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1094
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "5.5", r: "2.5" }),
1095
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8.5 11c1-1.5 2.2-2.2 3.5-2.2s2.5.7 3.5 2.2l2.8 4M5.7 15l2.8-4M4 19c2.5-2.2 5.2-2.5 8-1 2.8-1.5 5.5-1.2 8 1M7 21h10" }),
1096
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9.5 14.5 2.5 3.4 2.5-3.4" })
1097
+ ] }),
1098
+ "game-backpack": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1099
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 8V5.5a4 4 0 0 1 8 0V8M6 8h12l2 13H4L6 8Z" }),
1100
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8.5 13h7v5h-7v-5ZM9 5.5h6" })
1101
+ ] }),
1102
+ "game-qi": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1103
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1104
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 8.5c2.5-2.8 7-2.2 8.7.2 1.7 2.4.9 5.6-1.6 6.8-2.4 1.2-5.5-.1-5.8-2.5-.2-1.8 1.4-3.1 3.2-2.8 1.8.3 2.6 2.2 1.7 3.5" })
1105
+ ] })
1106
+ };
1107
+
1108
+ // src/components/iconBounds.ts
1109
+ var outlineIconBounds = {
1110
+ "activity": [3, 6, 18, 13],
1111
+ "align-center": [4, 6, 16, 12],
1112
+ "align-justify": [4, 6, 16, 12],
1113
+ "align-left": [4, 6, 16, 12],
1114
+ "align-right": [4, 6, 16, 12],
1115
+ "appstore": [3, 3, 18, 18],
1116
+ "area-chart": [3, 5, 18, 15],
1117
+ "arrow-down": [5, 3, 14, 18],
1118
+ "arrow-left": [3, 5, 18, 14],
1119
+ "arrow-right": [3, 5, 18, 14],
1120
+ "arrow-up": [5, 3, 14, 18],
1121
+ "bank": [3, 3, 18, 18],
1122
+ "bar-chart": [3, 4, 18, 17],
1123
+ "barcode": [4, 5, 16, 14],
1124
+ "bell": [3, 3, 18, 18],
1125
+ "bold": [7, 4, 11, 16],
1126
+ "book": [4, 3, 16, 19],
1127
+ "branches": [4, 3, 16, 18],
1128
+ "bug": [5, 5, 14, 15],
1129
+ "bulb": [5.000001, 2.255438, 14.000001, 18.744562],
1130
+ "calculator": [5, 2, 14, 20],
1131
+ "calendar": [3, 3, 18, 18],
1132
+ "camera": [3, 4, 18, 16],
1133
+ "car": [3, 4, 18, 16],
1134
+ "check": [4, 6.5, 16, 11],
1135
+ "chevron-down": [5, 8.5, 14, 7],
1136
+ "chevron-left": [8.5, 5, 7, 14],
1137
+ "chevron-right": [8.5, 5, 7, 14],
1138
+ "chevron-up": [5, 8.5, 14, 7],
1139
+ "circle-check": [3, 3, 18, 18],
1140
+ "circle-close": [3, 3, 18, 18],
1141
+ "circle-minus": [3, 3, 18, 18],
1142
+ "circle-plus": [3, 3, 18, 18],
1143
+ "clipboard": [5, 3, 14, 18],
1144
+ "clipboard-check": [5, 3, 14, 18],
1145
+ "clock": [3, 3, 18, 18],
1146
+ "close": [5, 5, 14, 14],
1147
+ "cloud": [1.267807, 5.290112, 20.99, 13.79396],
1148
+ "cloud-download": [1.100703, 5.621803, 21.657103, 15.378197],
1149
+ "cloud-upload": [1.100703, 5.621803, 21.657103, 15.378197],
1150
+ "code": [3, 6, 18, 12],
1151
+ "coffee": [4, 3, 18, 17],
1152
+ "columns": [3, 4, 18, 16],
1153
+ "comments": [3, 4, 18, 17],
1154
+ "compass": [3, 3, 18, 18],
1155
+ "component": [4, 4, 16, 16],
1156
+ "copy": [4, 4, 16, 16],
1157
+ "corner-up-left": [4, 5, 16, 14],
1158
+ "corner-up-right": [4, 5, 16, 14],
1159
+ "database": [4, 2, 16, 20],
1160
+ "desktop": [3, 3, 18, 18],
1161
+ "double-left": [5, 5, 14, 14],
1162
+ "double-right": [5, 5, 14, 14],
1163
+ "download": [4, 3, 16, 17],
1164
+ "edit": [4, 4.171572, 16, 15.828428],
1165
+ "eraser": [4, 5, 17, 15],
1166
+ "expand": [4, 4, 16, 16],
1167
+ "experiment": [3.720577, 3, 16.558847, 19.019615],
1168
+ "external-link": [3, 4, 17, 17],
1169
+ "eye": [2.5, 6, 19, 12],
1170
+ "eye-off": [2.5, 3, 19, 18],
1171
+ "fast-backward": [4, 6, 16, 12],
1172
+ "fast-forward": [4, 6, 16, 12],
1173
+ "file": [6, 3, 12, 18],
1174
+ "file-check": [6, 3, 12, 18],
1175
+ "file-plus": [6, 3, 12, 18],
1176
+ "file-spreadsheet": [6, 3, 12, 18],
1177
+ "file-warning": [6, 3, 12, 18],
1178
+ "filter": [3, 5, 18, 16],
1179
+ "flip-horizontal": [3, 3, 18, 18],
1180
+ "flip-vertical": [3, 3, 18, 18],
1181
+ "folder": [3, 6, 18, 13],
1182
+ "folder-plus": [3, 6, 18, 13],
1183
+ "frown": [3, 3, 18, 18],
1184
+ "fullscreen": [4, 4, 16, 16],
1185
+ "fullscreen-exit": [4, 4, 16, 16],
1186
+ "game-backpack": [4, 1.5, 16, 19.5],
1187
+ "game-cultivator": [7, 2, 10, 19],
1188
+ "game-elixir-jar": [5, 3, 14, 18],
1189
+ "game-flame": [4.5, 2.5, 15.000168, 19.950167],
1190
+ "game-gem": [4, 4, 16, 17],
1191
+ "game-herb": [4, 5.488038, 16, 15.511962],
1192
+ "game-ingot": [3, 6, 18, 13.5],
1193
+ "game-meditate": [4, 3, 16, 18],
1194
+ "game-necklace": [5, 4, 14, 16],
1195
+ "game-pants": [6, 3, 12, 18],
1196
+ "game-pendant": [5, 4, 14, 16.6],
1197
+ "game-pill": [4.510922, 4.522434, 14.966641, 14.966642],
1198
+ "game-potion": [4.370614, 3, 15.258771, 18.002394],
1199
+ "game-qi": [3, 3, 18, 18],
1200
+ "game-robe": [4.5, 4, 15, 17],
1201
+ "game-soul-elixir": [2.5, 2.5, 19, 19],
1202
+ "game-spirit-wolf": [4, 4.2, 16.025938, 16.5],
1203
+ "game-sword": [4, 3.5, 15.5, 16.5],
1204
+ "game-swordsman": [7, 2.5, 12.900002, 18.5],
1205
+ "gift": [3, 3.17335, 18, 17.826651],
1206
+ "github": [3.699682, 3.977686, 16.600634, 18.022314],
1207
+ "heart": [1.584567, 4.178144, 20.83729, 16.821857],
1208
+ "help-circle": [3, 3, 18, 18],
1209
+ "highlighter": [3, 4, 16, 16],
1210
+ "home": [3.5, 4, 17, 16],
1211
+ "image": [3, 4, 18, 16],
1212
+ "info": [3, 3, 18, 18],
1213
+ "italic": [6, 4, 12, 16],
1214
+ "key": [4, 4, 15, 15],
1215
+ "laptop": [3, 5, 18, 14],
1216
+ "line-chart": [3, 5, 18, 15],
1217
+ "link": [-0.034671, 4.964466, 24.070208, 14.070206],
1218
+ "list-ordered": [4, 5, 17, 15],
1219
+ "list-unordered": [4, 5.5, 17, 13],
1220
+ "loader": [3, 3, 18, 18],
1221
+ "location": [5, 2, 14, 20],
1222
+ "lock": [4, 3, 16, 18],
1223
+ "login": [5, 5, 12, 14],
1224
+ "logout": [7, 5, 12, 14],
1225
+ "mail": [3, 5, 18, 14],
1226
+ "meh": [3, 3, 18, 18],
1227
+ "menu": [4, 6, 16, 12],
1228
+ "menu-fold": [4, 6, 16, 12],
1229
+ "menu-unfold": [4, 6, 16, 12],
1230
+ "message": [4, 4, 16, 17],
1231
+ "microphone": [5, 3, 14, 18],
1232
+ "minus": [4, 12, 16, 0],
1233
+ "mobile": [7, 2, 10, 20],
1234
+ "moon": [3.717114, 4, 16.282887, 16.282888],
1235
+ "more-horizontal": [5, 12, 14.1, 0],
1236
+ "more-vertical": [12, 5, 0, 14.1],
1237
+ "move": [3, 3, 18, 18],
1238
+ "notepad-file": [3.375, 1.875, 17.25, 20.25],
1239
+ "notepad-folder": [1.875, 2.25, 20.2875, 19.5],
1240
+ "notepad-virtual-folder": [0.75, 0.75, 22.5, 22.5],
1241
+ "paperclip": [1.136039, 3, 21.106602, 18.86396],
1242
+ "partition": [4, 1, 16, 20],
1243
+ "pause": [3, 3, 18, 18],
1244
+ "phone": [4.161916, 3.5, 16.338085, 16.338085],
1245
+ "pie-chart": [2, 3, 18.5, 18],
1246
+ "pin": [6.5, 3, 11, 18],
1247
+ "pin-off": [3, 3, 18, 18],
1248
+ "play": [3, 3, 18, 18],
1249
+ "plus": [4, 4, 16, 16],
1250
+ "power": [4, 3, 16.000002, 16.744997],
1251
+ "printer": [4, 3, 16, 18],
1252
+ "puzzle": [3, 3, 18, 18],
1253
+ "qr-code": [3, 3, 18, 18],
1254
+ "question": [3, 3, 18, 18],
1255
+ "redo": [4, 7, 17, 12],
1256
+ "refresh": [3.999998, 3.999709, 16.000002, 16.000002],
1257
+ "rocket": [3, 3, 18, 18],
1258
+ "rotate-left": [4, 3, 15.416197, 17],
1259
+ "rotate-right": [4.583802, 3, 15.416199, 17],
1260
+ "rows": [3, 4, 18, 16],
1261
+ "save": [4, 3, 16, 18],
1262
+ "scan": [3, 3, 18, 18],
1263
+ "scissors": [3, 4, 17, 16],
1264
+ "search": [4, 4, 17, 17],
1265
+ "send": [3, 3, 18, 18],
1266
+ "server": [3, 4, 18, 16],
1267
+ // 六齿直线轮廓的原始边界,不含描边。
1268
+ "settings": [4.4825, 4.1215, 15.035, 15.757],
1269
+ "share": [3, 2, 18, 20],
1270
+ "shield": [4, 3, 16, 19],
1271
+ "shield-check": [4, 3, 16, 19],
1272
+ "shop": [3, 4, 18, 17],
1273
+ "shopping-bag": [4, 3, 16, 18],
1274
+ "shopping-cart": [3, 4, 17, 17],
1275
+ "shrink": [5, 4, 14, 16],
1276
+ "smile": [3, 3, 18, 18],
1277
+ "sort-ascending": [3.5, 5, 17.5, 14],
1278
+ "sort-descending": [3.5, 5, 17.5, 14],
1279
+ "speaker-muted": [4, 6.4, 16.5, 11.200001],
1280
+ "speaker-wave": [4, 6.4, 12.343426, 11.200001],
1281
+ "square-check": [3, 3, 18, 18],
1282
+ "square-close": [3, 3, 18, 18],
1283
+ "square-minus": [3, 3, 18, 18],
1284
+ "square-plus": [3, 3, 18, 18],
1285
+ "star": [3, 3, 18, 17.200001],
1286
+ "step-backward": [6, 5, 12, 14],
1287
+ "step-forward": [6, 5, 12, 14],
1288
+ "stop": [3, 3, 18, 18],
1289
+ "strikethrough": [5, 4, 14, 16],
1290
+ "sun": [2.5, 2.5, 19, 19],
1291
+ "swap-horizontal": [4, 4, 16, 16],
1292
+ "swap-vertical": [4, 4, 16, 16],
1293
+ "tab-plus": [3, 4, 18, 16],
1294
+ "table": [3, 4, 18, 16],
1295
+ "tablet": [5, 2, 14, 20],
1296
+ "tag": [3, 4, 18, 17],
1297
+ "tags": [3, 4, 18, 17],
1298
+ "target": [3, 3, 18, 18],
1299
+ "tilde": [3, 9.214088, 18, 4.785912],
1300
+ "token": [2.5, 2.5, 19, 19],
1301
+ "tool": [4.870828, 2.816625, 16.750492, 16.804695],
1302
+ "trash": [4, 3, 16, 18],
1303
+ "trending-down": [4, 7, 16, 9],
1304
+ "trending-up": [4, 8, 16, 9],
1305
+ "trophy": [3.997966, 4, 16.004068, 16],
1306
+ "truck": [3, 5, 18, 16],
1307
+ "underline": [5, 4, 14, 17],
1308
+ "undo": [3, 7, 17, 12],
1309
+ "unlock": [4, 2.935554, 16, 18.064445],
1310
+ "upload": [4, 4, 16, 16],
1311
+ "user": [4.5, 4, 15, 17],
1312
+ "user-minus": [3, 4, 19.5, 17],
1313
+ "user-plus": [3, 4, 19.5, 17],
1314
+ "users": [2.8, 4.5, 18.300001, 15.5],
1315
+ "vertical-align-bottom": [4, 4, 16, 16],
1316
+ "vertical-align-middle": [4, 4, 16, 16],
1317
+ "vertical-align-top": [4, 4, 16, 16],
1318
+ "video": [3, 5, 18, 14],
1319
+ "volume-off": [4, 6, 18, 12],
1320
+ "volume-up": [4, 6, 16.690525, 12],
1321
+ "wallet": [3, 5, 18, 15],
1322
+ "warning": [2.33137, 3.153565, 19.337257, 17.847614],
1323
+ "wifi": [3, 5.723805, 18, 15.376196],
1324
+ "zoom-in": [4, 4, 17, 17],
1325
+ "zoom-out": [4, 4, 17, 17]
1326
+ };
1327
+ var filledIconBounds = {
1328
+ "bell": [3, 2.499593, 18, 19.423376],
1329
+ "book": [3, 1, 18, 22],
1330
+ "calendar": [2.5, 2.5, 19, 19],
1331
+ "circle-check": [2, 2, 20, 20],
1332
+ "circle-close": [2, 2, 20, 20],
1333
+ "circle-minus": [2, 2, 20, 20],
1334
+ "circle-plus": [2, 2, 20, 20],
1335
+ "clock": [2, 2, 20, 20],
1336
+ "component": [3, 3, 18, 18],
1337
+ "file": [5, 2.5, 14, 19.5],
1338
+ "filter": [2, 4, 20, 18],
1339
+ "folder": [2.5, 5, 19, 15],
1340
+ "heart": [1.247845, 3.647845, 21.504313, 17.652155],
1341
+ "home": [2.157447, 2.8, 19.500002, 18.200001],
1342
+ "image": [2.5, 3.5, 19, 17],
1343
+ "info": [2, 2, 20, 20],
1344
+ "lock": [3, 2, 18, 20],
1345
+ "mail": [2.5, 4.5, 19, 15],
1346
+ "pause": [2, 2, 20, 20],
1347
+ "play": [2, 2, 20, 20],
1348
+ "question": [2, 2, 20, 20],
1349
+ "star": [2.4, 2.199999, 19.200001, 18.200001],
1350
+ "token": [1, 1, 22, 22],
1351
+ "trash": [3, 3, 18, 18],
1352
+ "unlock": [3, 1.979363, 18, 20.020638],
1353
+ "user": [3.5, 3, 17, 18],
1354
+ "users": [1.8, 4.2, 19.6, 16.799999],
1355
+ "warning": [1.53137, 2.553565, 20.937256, 19.447613]
1356
+ };
1357
+
1358
+ // src/components/iconGeometry.tsx
1359
+ var import_react4 = require("react");
1360
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1361
+ function compensateStroke(node, scale) {
1362
+ return import_react4.Children.map(node, (child) => {
1363
+ if (!(0, import_react4.isValidElement)(child)) return child;
1364
+ const props = child.props;
1365
+ return (0, import_react4.cloneElement)(child, {
1366
+ ...props.strokeWidth === void 0 ? {} : { strokeWidth: Number(props.strokeWidth) / scale },
1367
+ ...props.children === void 0 ? {} : { children: compensateStroke(props.children, scale) }
1368
+ });
1369
+ });
1370
+ }
1371
+ function normalizeIconPaths(paths, bounds) {
1372
+ return Object.fromEntries(Object.entries(paths).map(([name, node]) => {
1373
+ const [x, y, width, height] = bounds[name];
1374
+ const scale = 18 / Math.max(width, height);
1375
+ const transform = `translate(${12 - (x + width / 2) * scale} ${12 - (y + height / 2) * scale}) scale(${scale})`;
1376
+ return [name, { scale, node: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("g", { transform, children: compensateStroke(node, scale) }) }];
1377
+ }));
1378
+ }
1379
+
1380
+ // src/components/Icon.tsx
1381
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1382
+ var coreIconPaths = {
1383
+ search: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1384
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
1385
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m15.8 15.8 5.2 5.2" })
1386
+ ] }),
1387
+ plus: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 4v16M4 12h16" }),
1388
+ // 数字区间用波浪线表达范围,避免箭头暗示跳转方向。
1389
+ tilde: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 14c3-8 6-4 9-2s6 4 9-2" }),
1390
+ minus: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 12h16" }),
1391
+ close: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 5 14 14M19 5 5 19" }),
1392
+ check: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4 12.5 5.2 5L20 6.5" }),
1393
+ info: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1394
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1395
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 11v6M12 7.2v.1" })
1396
+ ] }),
1397
+ question: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1398
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1399
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.8 9a2.4 2.4 0 1 1 3.5 2.2c-.9.5-1.3 1.1-1.3 2.1M12 16.8v.1" })
1400
+ ] }),
1401
+ warning: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1402
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M10.3 4.1 2.6 18a2 2 0 0 0 1.8 3h15.2a2 2 0 0 0 1.8-3L13.7 4.1a2 2 0 0 0-3.4 0Z" }),
1403
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 9v4M12 17v.1" })
1404
+ ] }),
1405
+ "circle-check": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1406
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1407
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8 12 2.7 2.7L16.5 9" })
1408
+ ] }),
1409
+ "circle-close": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1410
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1411
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m9 9 6 6M15 9l-6 6" })
1412
+ ] }),
1413
+ "circle-plus": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1414
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1415
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 8v8M8 12h8" })
1416
+ ] }),
1417
+ "circle-minus": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1418
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1419
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 12h8" })
1420
+ ] }),
1421
+ "chevron-left": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m15.5 5-7 7 7 7" }),
1422
+ "chevron-right": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8.5 5 7 7-7 7" }),
1423
+ "chevron-up": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 15.5 7-7 7 7" }),
1424
+ "chevron-down": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 8.5 7 7 7-7" }),
1425
+ "double-left": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1426
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m12 5-7 7 7 7" }),
1427
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m19 5-7 7 7 7" })
1428
+ ] }),
1429
+ "double-right": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1430
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 5 7 7-7 7" }),
1431
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m12 5 7 7-7 7" })
1432
+ ] }),
1433
+ "arrow-left": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1434
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m10 5-7 7 7 7" }),
1435
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 12h18" })
1436
+ ] }),
1437
+ "arrow-right": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1438
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m14 5 7 7-7 7" }),
1439
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 12h18" })
1440
+ ] }),
1441
+ "arrow-up": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1442
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 10 7-7 7 7" }),
1443
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v18" })
1444
+ ] }),
1445
+ "arrow-down": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1446
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 14 7 7 7-7" }),
1447
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v18" })
1448
+ ] }),
1449
+ menu: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 6h16M4 12h16M4 18h16" }),
1450
+ "more-horizontal": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M5 12h.1M12 12h.1M19 12h.1" }),
1451
+ "more-vertical": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 5v.1M12 12v.1M12 19v.1" }),
1452
+ home: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1453
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m3.5 11 8.5-7 8.5 7" }),
1454
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M5.5 9.5V20h13V9.5M9.5 20v-6h5v6" })
1455
+ ] }),
1456
+ user: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1457
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "8", r: "4" }),
1458
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4.5 21c.7-4.2 3.2-6.5 7.5-6.5s6.8 2.3 7.5 6.5" })
1459
+ ] }),
1460
+ users: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1461
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "9", cy: "8", r: "3.5" }),
1462
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
1463
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
1464
+ ] }),
1465
+ // 六齿轮廓为小尺寸保留清晰齿间距,主体大小与描边仍遵循统一几何规则。
1466
+ settings: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1467
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "2.8" }),
1468
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.9479 6.3618 10.6108 4.1215 13.3892 4.1215 14.0521 6.3618 15.8567 7.4037 18.1284 6.8577 19.5175 9.2638 17.9088 10.9581 17.9088 13.0419 19.5175 14.7362 18.1284 17.1423 15.8567 16.5963 14.0521 17.6382 13.3892 19.8785 10.6108 19.8785 9.9479 17.6382 8.1433 16.5963 5.8716 17.1423 4.4825 14.7362 6.0912 13.0419 6.0912 10.9581 4.4825 9.2638 5.8716 6.8577 8.1433 7.4037Z" })
1469
+ ] }),
1470
+ edit: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1471
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
1472
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m13.5 6.5 4 4M4 20h16" })
1473
+ ] }),
1474
+ copy: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1475
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2.5" }),
1476
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
1477
+ ] }),
1478
+ trash: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 7h16M9 3h6l1 4H8l1-4ZM6 7l1 14h10l1-14M10 11v6M14 11v6" }) }),
1479
+ scissors: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1480
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "6", cy: "7", r: "3" }),
1481
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "6", cy: "17", r: "3" }),
1482
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8.7 8.3 11.3 6.2M8.7 15.7 20 9.5" })
1483
+ ] }),
1484
+ undo: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1485
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8 7-5 5 5 5" }),
1486
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 12h10a7 7 0 0 1 7 7" })
1487
+ ] }),
1488
+ redo: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1489
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m16 7 5 5-5 5" }),
1490
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M21 12H11a7 7 0 0 0-7 7" })
1491
+ ] }),
1492
+ "zoom-in": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1493
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
1494
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m15.8 15.8 5.2 5.2M10.8 7.8v6M7.8 10.8h6" })
1495
+ ] }),
1496
+ "zoom-out": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1497
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
1498
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m15.8 15.8 5.2 5.2M7.8 10.8h6" })
1499
+ ] }),
1500
+ // 图片变换工具使用独立图标,便于在预览及其他编辑界面复用。
1501
+ "flip-horizontal": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v18M3 6h5v12H3zM16 6h5v12h-5z" }) }),
1502
+ "flip-vertical": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 12h18M6 3h12v5H6zM6 16h12v5H6z" }) }),
1503
+ "rotate-left": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1504
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 9a8 8 0 1 1 0 6M4 3v6h6" }),
1505
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" })
1506
+ ] }),
1507
+ "rotate-right": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1508
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 9a8 8 0 1 0 0 6M20 3v6h-6" }),
1509
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" })
1510
+ ] }),
1511
+ download: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v12M7 10l5 5 5-5M4 20h16" }) }),
1512
+ upload: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 16V4M7 9l5-5 5 5M4 20h16" }) }),
1513
+ refresh: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1514
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 4v4.686h-4.686" }),
1515
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 8.686 17.657 6.343A8 8 0 1 0 20 12" })
1516
+ ] }),
1517
+ loader: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1" }),
1518
+ calendar: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1519
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2.5" }),
1520
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 3v4M16 3v4M3 10h18M7 14h2M11 14h2M15 14h2M7 18h2M11 18h2" })
1521
+ ] }),
1522
+ clock: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1523
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1524
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 7v5l3.5 2" })
1525
+ ] }),
1526
+ mail: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1527
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2.5" }),
1528
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4 7 8 6 8-6" })
1529
+ ] }),
1530
+ phone: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8.2 3.5 5.4 4.8c-1 .5-1.5 1.7-1.1 2.8 2.2 5.9 6.2 9.9 12.1 12.1 1.1.4 2.3-.1 2.8-1.1l1.3-2.8-4.2-2-1.4 2.1c-2.8-1.2-5.6-4-6.8-6.8l2.1-1.4-2-4.2Z" }),
1531
+ link: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1532
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m9.5 14.5 5-5" }),
1533
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7.5 16.5 6 18a3.5 3.5 0 0 1-5-5l3-3a3.5 3.5 0 0 1 5 0M16.5 7.5 18 6a3.5 3.5 0 0 1 5 5l-3 3a3.5 3.5 0 0 1-5 0" })
1534
+ ] }),
1535
+ "external-link": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1536
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M14 4h6v6M20 4 11 13" }),
1537
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M19 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h6" })
1538
+ ] }),
1539
+ eye: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1540
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z" }),
1541
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "3" })
1542
+ ] }),
1543
+ "eye-off": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m3 3 18 18M10.6 6.1A10 10 0 0 1 12 6c6 0 9.5 6 9.5 6a14.5 14.5 0 0 1-2.2 3M6.4 6.4C3.9 8.2 2.5 12 2.5 12s3.5 6 9.5 6a9.7 9.7 0 0 0 3-.5M9.9 9.9a3 3 0 0 0 4.2 4.2" }) }),
1544
+ lock: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1545
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
1546
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3M12 14v3" })
1547
+ ] }),
1548
+ unlock: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1549
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
1550
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 10V7a4 4 0 0 1 7.5-2M12 14v3" })
1551
+ ] }),
1552
+ bell: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1553
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M18 9a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9Z" }),
1554
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M10 21h4" })
1555
+ ] }),
1556
+ star: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z" }),
1557
+ heart: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20.8 5.8a5.5 5.5 0 0 0-7.8 0L12 6.9l-1-1.1a5.5 5.5 0 1 0-7.8 7.8L12 21l8.8-7.4a5.5 5.5 0 0 0 0-7.8Z" }),
1558
+ file: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1559
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
1560
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M14 3v5h4" })
1561
+ ] }),
1562
+ folder: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
1563
+ image: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1564
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
1565
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "9", cy: "9", r: "2" }),
1566
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4 17 4.5-4.5 3.5 3 2.5-2.5 5.5 5" })
1567
+ ] }),
1568
+ filter: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 5h18l-7 8v6l-4 2v-8L3 5Z" }),
1569
+ "sort-ascending": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1570
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 19V5M3.5 8.5 7 5l3.5 3.5" }),
1571
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M13 7h8M13 12h6M13 17h4" })
1572
+ ] }),
1573
+ "sort-descending": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1574
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 5v14M3.5 15.5 7 19l3.5-3.5" }),
1575
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M13 7h4M13 12h6M13 17h8" })
1576
+ ] }),
1577
+ play: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1578
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1579
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m10 8 6 4-6 4V8Z" })
1580
+ ] }),
1581
+ pause: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1582
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1583
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.5 9v6M14.5 9v6" })
1584
+ ] }),
1585
+ book: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1586
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 5.5A2.5 2.5 0 0 1 6.5 3H11v17H6.5A2.5 2.5 0 0 0 4 22V5.5Z" }),
1587
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 5.5A2.5 2.5 0 0 0 17.5 3H13v17h4.5A2.5 2.5 0 0 1 20 22V5.5Z" })
1588
+ ] }),
1589
+ component: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1590
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "4", y: "4", width: "6", height: "6", rx: "1.5" }),
1591
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "14", y: "4", width: "6", height: "6", rx: "1.5" }),
1592
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "4", y: "14", width: "6", height: "6", rx: "1.5" }),
1593
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "14", y: "14", width: "6", height: "6", rx: "1.5" })
1594
+ ] }),
1595
+ token: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1596
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "4" }),
1597
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1" })
1598
+ ] }),
1599
+ sun: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1600
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "3.6" }),
1601
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M18.7 5.3l-1.4 1.4M6.7 17.3l-1.4 1.4" })
1602
+ ] }),
1603
+ moon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 15.2A8 8 0 0 1 8.8 4 8.5 8.5 0 1 0 20 15.2Z" }),
1604
+ code: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m9 18-6-6 6-6M15 6l6 6-6 6" }),
1605
+ github: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9 19c-4 1.2-4-2-5-2.5M14 22v-3.1c0-.9.3-1.5.8-1.9 2.7-.3 5.5-1.3 5.5-6A4.7 4.7 0 0 0 19 7.7 4.4 4.4 0 0 0 18.9 4S17.8 3.7 15 5.3a11.7 11.7 0 0 0-6 0C6.2 3.7 5.1 4 5.1 4A4.4 4.4 0 0 0 5 7.7 4.7 4.7 0 0 0 3.7 11c0 4.7 2.8 5.7 5.5 6 .5.4.8 1 .8 1.9V22" })
1606
+ };
1607
+ var iconPaths = { ...coreIconPaths, ...extendedIconPaths };
1608
+ var ICON_NAMES = Object.freeze(Object.keys(iconPaths));
1609
+ var filledIconPaths = {
1610
+ info: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1611
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1612
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 10.5v6M12 7.2v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
1613
+ ] }),
1614
+ question: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1615
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1616
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.6 9a2.5 2.5 0 1 1 3.6 2.3c-.8.5-1.2 1.1-1.2 2.1M12 16.8v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
1617
+ ] }),
1618
+ warning: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1619
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M10.3 3.5 1.8 19a2 2 0 0 0 1.8 3h16.8a2 2 0 0 0 1.8-3L13.7 3.5a2 2 0 0 0-3.4 0Z", fill: "currentColor", stroke: "none" }),
1620
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 9v5M12 18v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
1621
+ ] }),
1622
+ "circle-check": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1623
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1624
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m7.5 12 3 3 6-6", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
1625
+ ] }),
1626
+ "circle-close": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1627
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1628
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8.8 8.8 6.4 6.4M15.2 8.8l-6.4 6.4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
1629
+ ] }),
1630
+ "circle-plus": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1631
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1632
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 7.5v9M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
1633
+ ] }),
1634
+ "circle-minus": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1635
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1636
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
1637
+ ] }),
1638
+ home: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.6 10.8 12 2.8l9.4 8a1 1 0 0 1-1.3 1.5l-.6-.5V21h-5.2v-6.2H9.7V21H4.5v-9.2l-.6.5a1 1 0 1 1-1.3-1.5Z", fill: "currentColor", stroke: "none" }),
1639
+ user: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1640
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "7.5", r: "4.5", fill: "currentColor", stroke: "none" }),
1641
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3.5 21c.7-5 3.6-7.5 8.5-7.5s7.8 2.5 8.5 7.5H3.5Z", fill: "currentColor", stroke: "none" })
1642
+ ] }),
1643
+ users: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1644
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "8.5", cy: "8", r: "3.8", fill: "currentColor", stroke: "none" }),
1645
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "17", cy: "8.5", r: "3", fill: "currentColor", stroke: "none", opacity: ".7" }),
1646
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M1.8 21c.6-4.6 2.8-7 6.7-7s6.1 2.4 6.7 7H1.8ZM14.4 15.2c3.9-.2 6.4 1.7 7 5.8h-4.5a9.9 9.9 0 0 0-2.5-5.8Z", fill: "currentColor", stroke: "none" })
1647
+ ] }),
1648
+ trash: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 3h8l1 3h4v2H3V6h4l1-3Zm-2.5 7h13l-1 11h-11l-1-11Z", fill: "currentColor", stroke: "none" }),
1649
+ bell: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 2.5a2 2 0 0 1 2 1.6c3 .9 5 3.6 5 6.9v4.3l2 3.2H3l2-3.2V11c0-3.3 2-6 5-6.9a2 2 0 0 1 2-1.6ZM9.2 20h5.6a3 3 0 0 1-5.6 0Z", fill: "currentColor", stroke: "none" }),
1650
+ star: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m12 2.2 3 6 6.6 1-4.8 4.6 1.1 6.6-5.9-3.1-5.9 3.1 1.1-6.6-4.8-4.6 6.6-1 3-6Z", fill: "currentColor", stroke: "none" }),
1651
+ heart: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 21.3 3.1 13.7A5.8 5.8 0 0 1 11 5.2l1 1 1-1a5.8 5.8 0 0 1 7.9 8.5L12 21.3Z", fill: "currentColor", stroke: "none" }),
1652
+ mail: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1653
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "2.5", y: "4.5", width: "19", height: "15", rx: "2.5", fill: "currentColor", stroke: "none" }),
1654
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4.5 7 7.5 5.8L19.5 7", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
1655
+ ] }),
1656
+ lock: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 10V7a5 5 0 0 1 10 0v3h1.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Zm2.5 0h5V7a2.5 2.5 0 0 0-5 0v3Z", fill: "currentColor", stroke: "none" }),
1657
+ unlock: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 10V7a5 5 0 0 1 9.5-2.2l-2.2 1.1A2.5 2.5 0 0 0 9.5 7v3h9A2.5 2.5 0 0 1 21 12.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Z", fill: "currentColor", stroke: "none" }),
1658
+ calendar: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1659
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "2.5", y: "4.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
1660
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 9.5h18M8 2.5v4M16 2.5v4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
1661
+ ] }),
1662
+ clock: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1663
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1664
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 6.5V12l4 2.3", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
1665
+ ] }),
1666
+ file: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M5 2.5h10l4 4V22H5V2.5Zm9 1.8V8h3.7L14 4.3Z", fill: "currentColor", stroke: "none" }),
1667
+ folder: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.5 5h7l2.2 2.5h9.8V20H2.5V5Z", fill: "currentColor", stroke: "none" }),
1668
+ image: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1669
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "2.5", y: "3.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
1670
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4.5 18 4.3-4.6 3.4 3 2.5-2.6 4.8 4.2", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.7" }),
1671
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "8", cy: "8.5", r: "1.7", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
1672
+ ] }),
1673
+ filter: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2 4h20l-7.8 9v6.2L9.8 22v-9L2 4Z", fill: "currentColor", stroke: "none" }),
1674
+ play: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1675
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1676
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m10 7.8 6.5 4.2-6.5 4.2V7.8Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
1677
+ ] }),
1678
+ pause: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1679
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
1680
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8.5 7.5h2.5v9H8.5v-9Zm4.5 0h2.5v9H13v-9Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
1681
+ ] }),
1682
+ book: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 4.5A3.5 3.5 0 0 1 6.5 1H11v19H6.5A3.5 3.5 0 0 0 3 23V4.5ZM21 4.5A3.5 3.5 0 0 0 17.5 1H13v19h4.5A3.5 3.5 0 0 1 21 23V4.5Z", fill: "currentColor", stroke: "none" }),
1683
+ component: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1684
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
1685
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "13", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
1686
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
1687
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" })
1688
+ ] }),
1689
+ token: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1690
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "5", fill: "currentColor", stroke: "none" }),
1691
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 1v4M12 19v4M1 12h4M19 12h4M4.2 4.2 7 7M17 17l2.8 2.8M19.8 4.2 17 7M7 17l-2.8 2.8", stroke: "currentColor", strokeWidth: "2.2" })
1692
+ ] })
1693
+ };
1694
+ var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
1695
+ var normalizedOutlinePaths = normalizeIconPaths(iconPaths, outlineIconBounds);
1696
+ var normalizedFilledPaths = normalizeIconPaths(filledIconPaths, filledIconBounds);
1697
+ var Icon = (0, import_react5.forwardRef)(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
1698
+ const resolvedSize = typeof size === "number" ? `${size}px` : size;
1699
+ const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
1700
+ const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
1701
+ const filledPath = filledIconPaths[name];
1702
+ const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
1703
+ const geometry = resolvedVariant === "filled" ? normalizedFilledPaths[name] : normalizedOutlinePaths[name];
1704
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1705
+ "span",
1706
+ {
1707
+ ref,
1708
+ className: `sia-icon${animationClass} ${className}`.trim(),
1709
+ "data-variant": resolvedVariant,
1710
+ role: label ? "img" : void 0,
1711
+ "aria-label": label,
1712
+ "aria-hidden": label ? void 0 : true,
1713
+ style: mergedStyle,
1714
+ ...withTitleTooltip(props),
1715
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: strokeWidth / geometry.scale, strokeLinecap: "round", strokeLinejoin: "round", focusable: "false", children: geometry.node })
1716
+ }
1717
+ );
1718
+ });
1719
+
1720
+ // src/components/Overlay.tsx
1721
+ var import_react6 = require("react");
1722
+ var import_react_dom2 = require("react-dom");
1723
+ var bodyLockCount = 0;
1724
+ var previousBodyOverflow = "";
1725
+ var overlayStack = [];
1726
+ function lockBodyScroll() {
1727
+ if (bodyLockCount === 0) {
1728
+ previousBodyOverflow = document.body.style.overflow;
1729
+ document.body.style.overflow = "hidden";
1730
+ }
1731
+ bodyLockCount += 1;
1732
+ return () => {
1733
+ bodyLockCount = Math.max(0, bodyLockCount - 1);
1734
+ if (bodyLockCount === 0) document.body.style.overflow = previousBodyOverflow;
1735
+ };
1736
+ }
1737
+ function focusableElements(container) {
1738
+ return [...container.querySelectorAll(
1739
+ 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
1740
+ )].filter((element) => !element.hidden && element.getAttribute("aria-hidden") !== "true");
1741
+ }
1742
+ function useOverlayLifecycle(open, panelRef, onRequestClose, keyboard = true) {
1743
+ const overlayIdRef = (0, import_react6.useRef)(/* @__PURE__ */ Symbol("sia-overlay"));
1744
+ const closeRef = (0, import_react6.useRef)(onRequestClose);
1745
+ closeRef.current = onRequestClose;
1746
+ (0, import_react6.useEffect)(() => {
1747
+ if (!open || typeof document === "undefined") return void 0;
1748
+ const overlayId = overlayIdRef.current;
1749
+ const previouslyFocused = document.activeElement instanceof HTMLElement ? document.activeElement : null;
1750
+ overlayStack.push(overlayId);
1751
+ const unlockBody = lockBodyScroll();
1752
+ const focusTimer = window.setTimeout(() => {
1753
+ const panel = panelRef.current;
1754
+ if (!panel) return;
1755
+ const [firstFocusable] = focusableElements(panel);
1756
+ (firstFocusable ?? panel).focus({ preventScroll: true });
1757
+ }, 0);
1758
+ function handleKeyDown(event) {
1759
+ if (overlayStack.at(-1) !== overlayId) return;
1760
+ if (event.key === "Escape" && keyboard) {
1761
+ event.preventDefault();
1762
+ closeRef.current();
1763
+ return;
1764
+ }
1765
+ if (event.key !== "Tab" || !panelRef.current) return;
1766
+ const focusable = focusableElements(panelRef.current);
1767
+ if (focusable.length === 0) {
1768
+ event.preventDefault();
1769
+ panelRef.current.focus();
1770
+ return;
1771
+ }
1772
+ const first = focusable[0];
1773
+ const last = focusable.at(-1);
1774
+ if (event.shiftKey && document.activeElement === first) {
1775
+ event.preventDefault();
1776
+ last.focus();
1777
+ } else if (!event.shiftKey && document.activeElement === last) {
1778
+ event.preventDefault();
1779
+ first.focus();
1780
+ }
1781
+ }
1782
+ document.addEventListener("keydown", handleKeyDown);
1783
+ return () => {
1784
+ window.clearTimeout(focusTimer);
1785
+ document.removeEventListener("keydown", handleKeyDown);
1786
+ const index = overlayStack.lastIndexOf(overlayId);
1787
+ if (index >= 0) overlayStack.splice(index, 1);
1788
+ unlockBody();
1789
+ previouslyFocused?.focus({ preventScroll: true });
1790
+ };
1791
+ }, [keyboard, open, panelRef]);
1792
+ }
1793
+ function OverlayPortal({ children, container }) {
1794
+ if (typeof document === "undefined") return null;
1795
+ const target = typeof container === "function" ? container() : container ?? document.body;
1796
+ return (0, import_react_dom2.createPortal)(children, target);
1797
+ }
1798
+
1799
+ // src/components/Modal.tsx
1800
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1801
+ var modalHandles = /* @__PURE__ */ new Set();
1802
+ var MODAL_MOTION_DURATION = 220;
1803
+ var typeIcons = {
1804
+ info: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "info", size: 23 }),
1805
+ success: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "circle-check", size: 23 }),
1806
+ warning: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "warning", size: 23 }),
1807
+ error: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "circle-close", size: 23 }),
1808
+ confirm: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "question", size: 23 })
1809
+ };
1810
+ var ModalRoot = (0, import_react7.forwardRef)(function Modal({
1811
+ open,
1812
+ title,
1813
+ children,
1814
+ footer,
1815
+ footerExtra,
1816
+ type = "default",
1817
+ okText = "\u786E\u5B9A",
1818
+ cancelText = "\u53D6\u6D88",
1819
+ showCancel = type === "default" || type === "confirm",
1820
+ confirmLoading = false,
1821
+ okButtonProps,
1822
+ cancelButtonProps,
1823
+ closable = true,
1824
+ maskClosable = true,
1825
+ keyboard = true,
1826
+ centered = false,
1827
+ width = 520,
1828
+ height,
1829
+ zIndex = 1e3,
1830
+ getContainer,
1831
+ onOk,
1832
+ onCancel,
1833
+ onOpenChange,
1834
+ afterOpenChange,
1835
+ className = "",
1836
+ style,
1837
+ ...props
1838
+ }, forwardedRef) {
1839
+ const localRef = (0, import_react7.useRef)(null);
1840
+ const titleId = (0, import_react7.useId)();
1841
+ const [submitting, setSubmitting] = (0, import_react7.useState)(false);
1842
+ const [rendered, setRendered] = (0, import_react7.useState)(open);
1843
+ const [closing, setClosing] = (0, import_react7.useState)(false);
1844
+ const afterOpenChangeRef = (0, import_react7.useRef)(afterOpenChange);
1845
+ afterOpenChangeRef.current = afterOpenChange;
1846
+ const submitLock = (0, import_react7.useRef)(false);
1847
+ (0, import_react7.useEffect)(() => {
1848
+ if (!open || !rendered) return void 0;
1849
+ const timer = window.setTimeout(() => afterOpenChangeRef.current?.(true), MODAL_MOTION_DURATION);
1850
+ return () => window.clearTimeout(timer);
1851
+ }, [open, rendered]);
1852
+ (0, import_react7.useEffect)(() => {
1853
+ if (open) {
1854
+ setRendered(true);
1855
+ setClosing(false);
1856
+ return void 0;
1857
+ }
1858
+ if (!rendered) return void 0;
1859
+ setClosing(true);
1860
+ const timer = window.setTimeout(() => {
1861
+ setRendered(false);
1862
+ setClosing(false);
1863
+ afterOpenChangeRef.current?.(false);
1864
+ }, MODAL_MOTION_DURATION);
1865
+ return () => window.clearTimeout(timer);
1866
+ }, [open, rendered]);
1867
+ function setRef(node) {
1868
+ localRef.current = node;
1869
+ if (typeof forwardedRef === "function") forwardedRef(node);
1870
+ else if (forwardedRef) forwardedRef.current = node;
1871
+ }
1872
+ function requestClose() {
1873
+ if (submitting || confirmLoading) return;
1874
+ onCancel?.();
1875
+ onOpenChange?.(false);
1876
+ }
1877
+ async function handleOk() {
1878
+ if (submitLock.current || confirmLoading) return;
1879
+ submitLock.current = true;
1880
+ if (!onOk) {
1881
+ onOpenChange?.(false);
1882
+ submitLock.current = false;
1883
+ return;
1884
+ }
1885
+ try {
1886
+ const result = onOk();
1887
+ if (result instanceof Promise) {
1888
+ setSubmitting(true);
1889
+ const resolved = await result;
1890
+ if (resolved !== false) onOpenChange?.(false);
1891
+ } else if (result !== false) {
1892
+ onOpenChange?.(false);
1893
+ }
1894
+ } catch {
1895
+ return;
1896
+ } finally {
1897
+ submitLock.current = false;
1898
+ setSubmitting(false);
1899
+ }
1900
+ }
1901
+ useOverlayLifecycle(rendered, localRef, requestClose, keyboard);
1902
+ if (!rendered) return null;
1903
+ const mergedStyle = {
1904
+ ...height !== void 0 ? { display: "flex", flexDirection: "column", height, maxHeight: "calc(100dvh - 48px)" } : {},
1905
+ ...style,
1906
+ "--sia-modal-width": typeof width === "number" ? `${width}px` : width
1907
+ };
1908
+ const loading = submitting || confirmLoading;
1909
+ const defaultFooter = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1910
+ showCancel ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { ...cancelButtonProps, onClick: requestClose, disabled: loading || cancelButtonProps?.disabled, children: cancelText }) : null,
1911
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { variant: "primary", ...okButtonProps, onClick: handleOk, loading, children: okText })
1912
+ ] });
1913
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(OverlayPortal, { container: getContainer, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1914
+ "div",
1915
+ {
1916
+ className: `sia-modal-root${centered ? " sia-modal-root--centered" : ""}`,
1917
+ "data-state": closing ? "closing" : "open",
1918
+ style: { zIndex },
1919
+ onMouseDown: (event) => {
1920
+ if (event.target === event.currentTarget && maskClosable) requestClose();
1921
+ },
1922
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1923
+ "div",
1924
+ {
1925
+ ref: setRef,
1926
+ className: `sia-modal sia-modal--${type} ${className}`.trim(),
1927
+ style: mergedStyle,
1928
+ role: "dialog",
1929
+ "aria-modal": "true",
1930
+ "aria-labelledby": title ? titleId : void 0,
1931
+ tabIndex: -1,
1932
+ ...withTitleTooltip(props),
1933
+ children: [
1934
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "sia-modal__header", style: height !== void 0 ? { flexShrink: 0 } : void 0, children: [
1935
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "sia-modal__heading", children: [
1936
+ typeIcons[type] ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-modal__type-icon", "aria-hidden": "true", children: typeIcons[type] }) : null,
1937
+ title ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("strong", { id: titleId, children: title }) : null
1938
+ ] }),
1939
+ closable ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { type: "button", className: "sia-modal__close", "aria-label": "\u5173\u95ED\u5BF9\u8BDD\u6846", onClick: requestClose, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "close", size: 17 }) }) : null
1940
+ ] }),
1941
+ children !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "sia-modal__body", style: height !== void 0 ? { flex: 1, minHeight: 0, overflow: "auto" } : void 0, children }) : null,
1942
+ footer !== null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "sia-modal__footer", style: height !== void 0 ? { flexShrink: 0 } : void 0, children: [
1943
+ footer === void 0 && footerExtra != null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { marginRight: "auto" }, children: footerExtra }) : null,
1944
+ footer ?? defaultFooter
1945
+ ] }) : null
1946
+ ]
1947
+ }
1948
+ )
1949
+ }
1950
+ ) });
1951
+ });
1952
+ function openModal(config) {
1953
+ if (typeof document === "undefined") return { destroy() {
1954
+ }, update() {
1955
+ } };
1956
+ const container = document.createElement("div");
1957
+ container.className = "sia-modal-api-host";
1958
+ document.body.appendChild(container);
1959
+ const root = (0, import_client2.createRoot)(container);
1960
+ let currentConfig = config;
1961
+ let currentOpen = true;
1962
+ let destroyed = false;
1963
+ let mounted = false;
1964
+ function cleanup() {
1965
+ if (destroyed) return;
1966
+ destroyed = true;
1967
+ root.unmount();
1968
+ container.remove();
1969
+ modalHandles.delete(handle);
1970
+ }
1971
+ function closeWithMotion() {
1972
+ if (destroyed || !currentOpen) return;
1973
+ currentOpen = false;
1974
+ render();
1975
+ }
1976
+ function ModalInstance() {
1977
+ (0, import_react7.useEffect)(() => {
1978
+ mounted = true;
1979
+ if (!currentOpen) render();
1980
+ }, []);
1981
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ModalRoot, { ...currentConfig, open: !mounted || currentOpen, onOpenChange: (nextOpen) => {
1982
+ currentConfig.onOpenChange?.(nextOpen);
1983
+ if (!nextOpen) closeWithMotion();
1984
+ }, afterOpenChange: (nextOpen) => {
1985
+ try {
1986
+ currentConfig.afterOpenChange?.(nextOpen);
1987
+ } finally {
1988
+ if (!nextOpen) queueMicrotask(cleanup);
1989
+ }
1990
+ } });
1991
+ }
1992
+ function render() {
1993
+ root.render(/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ModalInstance, {}));
1994
+ }
1995
+ const handle = {
1996
+ destroy: closeWithMotion,
1997
+ update(next) {
1998
+ if (destroyed) return;
1999
+ currentConfig = { ...currentConfig, ...next };
2000
+ render();
2001
+ }
2002
+ };
2003
+ modalHandles.add(handle);
2004
+ render();
2005
+ return handle;
2006
+ }
2007
+ function preset(type, defaults = {}) {
2008
+ return (config) => openModal({
2009
+ okText: type === "confirm" ? "\u786E\u5B9A" : "\u77E5\u9053\u4E86",
2010
+ showCancel: type === "confirm",
2011
+ closable: type !== "confirm",
2012
+ maskClosable: type !== "confirm",
2013
+ ...defaults,
2014
+ ...config,
2015
+ type
2016
+ });
2017
+ }
2018
+ var Modal2 = Object.assign(ModalRoot, {
2019
+ /** 直接打开实例,返回更新和关闭句柄;关闭动画完成后先调用 afterOpenChange(false),再卸载实例。 */
2020
+ open: openModal,
2021
+ /** 显示普通信息提示。 */
2022
+ info: preset("info", { title: "\u63D0\u793A" }),
2023
+ /** 显示成功提示。 */
2024
+ success: preset("success", { title: "\u64CD\u4F5C\u6210\u529F" }),
2025
+ /** 显示警告提示。 */
2026
+ warning: preset("warning", { title: "\u8BF7\u6CE8\u610F" }),
2027
+ /** 显示错误提示。 */
2028
+ error: preset("error", { title: "\u64CD\u4F5C\u5931\u8D25" }),
2029
+ /** 打开确认弹框,支持异步确认;返回 false 可阻止关闭。 */
2030
+ confirm: preset("confirm", { title: "\u786E\u8BA4\u64CD\u4F5C" }),
2031
+ /** 关闭由此 API 打开的所有弹层。 */
2032
+ destroyAll() {
2033
+ [...modalHandles].forEach((handle) => handle.destroy());
2034
+ }
2035
+ });
2036
+
2037
+ // src/game/components.tsx
2038
+ var import_jsx_runtime8 = require("react/jsx-runtime");
2039
+ function GameSprite({ asset, className = "" }) {
2040
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { className: `unit-art ${asset.flip ? "face-left" : ""} ${className}`, src: asset.src, alt: "", "aria-hidden": "true", draggable: false, decoding: "async" });
2041
+ }
2042
+ function GameButton({ className = "", ...props }) {
2043
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { ...props, className: `game-button ${className}` });
2044
+ }
2045
+ var fmt = (n) => Math.floor(n).toLocaleString("zh-CN");
2046
+ var busy = (s) => Boolean(s.fight?.boss && s.fight.status === "active");
2047
+ var command = (fn, type, id) => () => fn({ type, id });
2048
+ function Title({ kicker, title, children }) {
2049
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "view-title", children: [
2050
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2051
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "eyebrow", children: kicker }),
2052
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h1", { children: title })
2053
+ ] }),
2054
+ children
2055
+ ] });
2056
+ }
2057
+ function ItemStats({ item }) {
2058
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "item-stats", children: [
2059
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2060
+ "\u653B\u51FB +",
2061
+ item.atk
2062
+ ] }),
2063
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2064
+ "\u9632\u5FA1 +",
2065
+ item.def
2066
+ ] }),
2067
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2068
+ "\u6C14\u8840 +",
2069
+ item.hp
2070
+ ] })
2071
+ ] });
2072
+ }
2073
+ function GameShell({ engine, state, onAction, page, children }) {
2074
+ const d = engine.definition, view = { engine, state, onAction };
2075
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2076
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("header", { className: "topbar", children: [
2077
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "brand", children: [
2078
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "brand-seal", children: d.title[0] }),
2079
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "brand-title", children: [
2080
+ d.title,
2081
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: d.subtitle })
2082
+ ] })
2083
+ ] }),
2084
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "realm", children: [
2085
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "live-dot" }),
2086
+ "\u5355\u4EBA\u4FEE\u884C / \u653E\u7F6E\u5386\u7EC3"
2087
+ ] }),
2088
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "top-actions", children: [
2089
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "version", children: "Sia Game \xB7 v0.3" }),
2090
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "icon-button", "aria-label": "\u8BBE\u7F6E\u4E0E\u5B58\u6863", onClick: command(onAction, "settings"), children: "\u2699" })
2091
+ ] })
2092
+ ] }),
2093
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("nav", { className: "navigation", "aria-label": "\u4E3B\u5BFC\u822A", children: [
2094
+ [["battle", "\u2694", "\u6302\u673A\u5386\u7EC3"], ["maps", "\u25A7", "\u4E16\u754C\u5730\u56FE"], ["gear", "\u25A3", "\u88C5\u5907\u80CC\u5305"], ["pets", "\u2667", "\u4F19\u4F34\u56FE\u9274"]].map(([id, icon, text]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: `nav-item ${page === id ? "active" : ""}`, "aria-current": page === id ? "page" : void 0, onClick: command(onAction, "page", id), children: [
2095
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", children: icon }),
2096
+ d.labels?.[id] || text,
2097
+ id === "gear" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "nav-count", children: state.inventory.length })
2098
+ ] }, id)),
2099
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "nav-verse", children: d.subtitle })
2100
+ ] }),
2101
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "workspace", children: [
2102
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("aside", { className: "character-panel", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameCharacterPanel, { ...view }) }),
2103
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("main", { children }),
2104
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("aside", { className: "right-panel", children: [
2105
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameBossPanel, { ...view }),
2106
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameLogPanel, { ...view }),
2107
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "save-state", children: [
2108
+ "\u672C\u5730\u81EA\u52A8\u5B58\u6863 \xB7 \u79BB\u7EBF\u4E0A\u9650 ",
2109
+ (d.offlineCapSeconds ?? 43200) / 3600,
2110
+ " \u5C0F\u65F6"
2111
+ ] })
2112
+ ] })
2113
+ ] }),
2114
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("footer", { children: [
2115
+ d.title,
2116
+ " / ",
2117
+ d.subtitle,
2118
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u7531 SiaWebUI Game Framework \u9A71\u52A8" })
2119
+ ] })
2120
+ ] });
2121
+ }
2122
+ function GameCharacterPanel({ engine, state: s, onAction }) {
2123
+ const d = engine.definition, st = engine.stats(s), pet = d.pets.find((p) => p.id === s.pet);
2124
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2125
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "profile-top", children: [
2126
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "avatar", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: d.hero }) }),
2127
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2128
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "eyebrow", children: d.hero.identity }),
2129
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { children: s.name }),
2130
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "level-tag", children: [
2131
+ "Lv.",
2132
+ s.level,
2133
+ " ",
2134
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u4FEE\u884C\u8005" })
2135
+ ] })
2136
+ ] })
2137
+ ] }),
2138
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "power", children: [
2139
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u7EFC\u5408\u6218\u529B" }),
2140
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("strong", { children: fmt(st.power) })
2141
+ ] }),
2142
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "experience", children: [
2143
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2144
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u4FEE\u884C\u7ECF\u9A8C" }),
2145
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2146
+ fmt(s.xp),
2147
+ " / ",
2148
+ engine.xpNeeded(s)
2149
+ ] })
2150
+ ] }),
2151
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "progress", role: "progressbar", "aria-label": "\u4FEE\u884C\u7ECF\u9A8C", "aria-valuenow": s.xp, "aria-valuemin": 0, "aria-valuemax": engine.xpNeeded(s), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("i", { style: { width: `${Math.min(100, s.xp / engine.xpNeeded(s) * 100)}%` } }) })
2152
+ ] }),
2153
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "attributes", children: [["\u6C14\u8840", st.hp], ["\u653B\u51FB", st.atk], ["\u9632\u5FA1", st.def], ["\u66B4\u51FB", "13%"]].map(([name, value]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2154
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: name }),
2155
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: value })
2156
+ ] }, name)) }),
2157
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "line-heading", children: "\u968F\u8EAB\u8D44\u8D22" }),
2158
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "wallet", children: [["\u94DC\u94B1", s.gold], ["\u7075\u8574", s.essence], ["\u953B\u6750", s.material]].map(([name, value]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2159
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: name }),
2160
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: fmt(Number(value)) })
2161
+ ] }, name)) }),
2162
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "line-heading", children: [
2163
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u8EAB\u4E0A\u88C5\u5907" }),
2164
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "text-button", onClick: command(onAction, "page", "gear"), children: "\u7BA1\u7406 \u203A" })
2165
+ ] }),
2166
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "equipped-list", children: Object.entries(d.slots).map(([key, slot]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: "equipped-item", onClick: command(onAction, "page", "gear"), children: [
2167
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "slot-symbol", children: "\u25C7" }),
2168
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2169
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: slot.name }),
2170
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: s.equipment[key]?.name || "\u5C1A\u672A\u88C5\u5907" })
2171
+ ] }),
2172
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("em", { children: s.upgrades[key] ? `+${s.upgrades[key]}` : "\u203A" })
2173
+ ] }, key)) }),
2174
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: "pet-mini", onClick: command(onAction, "page", "pets"), children: [
2175
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pet-mini-art", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: pet.art }) }),
2176
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2177
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: "\u51FA\u6218\u7075\u5BA0" }),
2178
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("b", { children: [
2179
+ pet.name,
2180
+ " ",
2181
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("em", { children: [
2182
+ "Lv.",
2183
+ s.pets[s.pet]
2184
+ ] })
2185
+ ] })
2186
+ ] })
2187
+ ] }),
2188
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "character-bottom", children: s.idle ? "\u25CF \u6B63\u5728\u6302\u673A\u4FEE\u884C" : "\u25CB \u95F2\u5EAD\u4FE1\u6B65 \xB7 \u7B49\u5F85\u5386\u7EC3" })
2189
+ ] });
2190
+ }
2191
+ function GameBattleStage({ engine, state: s, onAction, event, sequence = 0 }) {
2192
+ const d = engine.definition, m = d.maps[s.map], f = s.fight, st = engine.stats(s), isBoss = Boolean(f?.boss), pet = d.pets.find((p) => p.id === s.pet);
2193
+ const units = [{ side: "hero", name: s.name, identity: d.hero.identity, asset: d.hero, hp: f?.hp ?? st.hp, max: f?.maxHp ?? st.hp, damage: event?.incoming }, { side: "enemy", name: isBoss ? `\u5996\u738B \xB7 ${m.boss}` : m.enemy, identity: (isBoss ? m.bossArt : m.enemyArt).identity, asset: isBoss ? m.bossArt : m.enemyArt, hp: f?.enemyHp ?? m.hp, max: f?.enemyMax ?? m.hp, damage: event ? event.damage + event.petDamage : 0 }];
2194
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2195
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Title, { kicker: `\u897F\u884C\u5386\u7EC3 / \u7B2C ${s.map + 1} \u7AE0`, title: m.name, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", disabled: busy(s), onClick: command(onAction, "page", "maps"), children: "\u25A7 \u5207\u6362\u5730\u56FE" }) }),
2196
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `scene ${isBoss ? "boss-fight" : ""}`, children: [
2197
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "scene-art", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { className: "landscape", src: m.scene, alt: "" }) }),
2198
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "scene-top", children: [
2199
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "scene-label", children: [
2200
+ "\u263C ",
2201
+ m.subtitle
2202
+ ] }),
2203
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "scene-label", children: busy(s) ? "\u5996\u738B\u6311\u6218\u4E2D" : s.idle ? "\u6302\u673A\u4FEE\u884C\u4E2D" : "\u5C1A\u672A\u5F00\u59CB" })
2204
+ ] }),
2205
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "scene-inscription", children: [
2206
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: m.name }),
2207
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: "\u5C71 \u6D77 \u6709 \u7075 \xB7 \u897F \u884C \u65E0 \u5C3D" })
2208
+ ] }),
2209
+ units.map((u) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `fighter ${u.side}`, children: [
2210
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "unit-label", children: [
2211
+ u.name,
2212
+ u.side === "hero" && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("em", { children: [
2213
+ " Lv.",
2214
+ s.level
2215
+ ] })
2216
+ ] }),
2217
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "unit-identity", children: u.identity }),
2218
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `unit-health ${u.side === "enemy" ? "red" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("i", { style: { width: `${u.hp / u.max * 100}%` } }) }),
2219
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "health-text", children: [
2220
+ u.hp,
2221
+ " / ",
2222
+ u.max
2223
+ ] }),
2224
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `sprite ${event ? u.side === "hero" ? "attack" : "hit" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: u.asset }) }, sequence),
2225
+ Boolean(u.damage) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "damage float", children: [
2226
+ u.side === "enemy" && event?.skill ? d.skillName + " " : "",
2227
+ "\u2212",
2228
+ u.damage
2229
+ ] }, `damage-${sequence}`)
2230
+ ] }, u.side)),
2231
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "companion", children: [
2232
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: pet.art }),
2233
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: pet.name })
2234
+ ] }),
2235
+ event?.skill && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "attack-flash cast", children: "\u6555" }, sequence),
2236
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "scene-bottom", children: [
2237
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u25C7 \u81EA\u52A8\u62FE\u53D6\u5DF2\u5F00\u542F" }),
2238
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: f ? `\u7B2C ${f.turn} \u56DE\u5408 / 60` : "\u9759\u5019\u51FA\u53D1" })
2239
+ ] })
2240
+ ] }),
2241
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "battle-controls", children: [
2242
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2243
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "status-label", children: s.idle ? "\u884C\u8DEF\u4E0D\u6B47\uFF0C\u4FEE\u4E3A\u6E10\u957F" : "\u4E07\u91CC\u897F\u884C\uFF0C\u4ECE\u8FD9\u91CC\u5F00\u59CB" }),
2244
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: "\u81EA\u52A8\u6218\u6597 \xB7 \u81EA\u52A8\u62FE\u53D6 \xB7 \u6301\u7EED\u6210\u957F" })
2245
+ ] }),
2246
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "primary-button", disabled: busy(s), onClick: command(onAction, "idle"), children: s.idle ? "\u2161 \u6682\u505C\u6302\u673A" : "\u25B6 \u5F00\u59CB\u6302\u673A" })
2247
+ ] }),
2248
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameResourceSummary, { state: s }),
2249
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "tip", children: [
2250
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { children: [
2251
+ "\u6BCF\u4E09\u6B21\u51FA\u624B\u81EA\u52A8\u65BD\u653E\u300C",
2252
+ d.skillName,
2253
+ "\u300D\u3002\u88C5\u5907\u4E0E\u7075\u5BA0\u7684\u63D0\u5347\uFF0C\u4E5F\u4F1A\u8BA1\u5165\u79BB\u7EBF\u4FEE\u884C\u3002"
2254
+ ] }),
2255
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "text-button", onClick: command(onAction, "help"), children: "\u73A9\u6CD5\u8BF4\u660E \u203A" })
2256
+ ] })
2257
+ ] });
2258
+ }
2259
+ function GameResourceSummary({ state: s }) {
2260
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { className: "income", children: [
2261
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "panel-heading", children: [
2262
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: "\u4FEE\u884C\u7D2F\u8BA1\u6240\u5F97" }),
2263
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2264
+ "\u7D2F\u8BA1\u51FB\u8D25 ",
2265
+ fmt(s.kills),
2266
+ " \u4E2A\u654C\u4EBA"
2267
+ ] })
2268
+ ] }),
2269
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "income-grid", children: [["\u7ECF\u9A8C", s.sessionXp], ["\u94DC\u94B1", s.sessionGold], ["\u88C5\u5907", s.sessionDrops]].map(([label, value]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2270
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: label }),
2271
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("b", { children: [
2272
+ fmt(Number(value)),
2273
+ label === "\u88C5\u5907" ? " \u4EF6" : ""
2274
+ ] })
2275
+ ] }, label)) })
2276
+ ] });
2277
+ }
2278
+ function GameBossPanel({ engine, state: s, onAction }) {
2279
+ const d = engine.definition, m = d.maps[s.map], cleared = s.cleared.includes(s.map);
2280
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { id: "quest", children: [
2281
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "panel-heading", children: [
2282
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: "\u2694 \u7AE0\u8282\u5996\u738B" }),
2283
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2284
+ "\u7B2C ",
2285
+ s.map + 1,
2286
+ " / ",
2287
+ d.maps.length,
2288
+ " \u7AE0"
2289
+ ] })
2290
+ ] }),
2291
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "boss-portrait", children: [
2292
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: m.bossArt }),
2293
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "boss-seal", children: cleared ? "\u5DF2\u7834" : "\u5996\u738B" })
2294
+ ] }),
2295
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "boss-title", children: [
2296
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { children: m.boss }),
2297
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: m.bossArt.identity })
2298
+ ] }),
2299
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "identity-traits", children: m.bossArt.traits }),
2300
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "boss-stats", children: [
2301
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2302
+ "\u6C14\u8840 ",
2303
+ fmt(m.bossHp)
2304
+ ] }),
2305
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2306
+ "\u653B\u51FB ",
2307
+ m.bossAtk
2308
+ ] })
2309
+ ] }),
2310
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "boss-reward", children: [
2311
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: cleared ? "\u518D\u6B21\u6311\u6218\u5956\u52B1" : "\u9996\u6B21\u51FB\u8D25\u5956\u52B1" }),
2312
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { children: cleared ? "\u94DC\u94B1\u3001\u7ECF\u9A8C\u3001\u7075\u8574" : d.slots[m.rewardSlot].names[1] + " \xB7 \u7075\u8574 \xD750" })
2313
+ ] }),
2314
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "boss-button", disabled: busy(s), onClick: command(onAction, "boss"), children: busy(s) ? "\u6B63\u5728\u6311\u6218\u2026" : cleared ? "\u518D\u6B21\u6311\u6218" : "\u6311\u6218\u5996\u738B" }),
2315
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "boss-hint", children: s.map < d.maps.length - 1 ? `\u9996\u6B21\u51FB\u8D25\uFF0C\u89E3\u9501\u300C${d.maps[s.map + 1].name}\u300D` : "\u5B8C\u6210\u6311\u6218\uFF0C\u901A\u5173\u5168\u90E8\u7AE0\u8282\u8BD5\u70BC" })
2316
+ ] });
2317
+ }
2318
+ function GameLogPanel({ state: s }) {
2319
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { className: "journal", children: [
2320
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "panel-heading", children: [
2321
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: "\u25A4 \u4E09\u754C\u89C1\u95FB" }),
2322
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u5B9E\u65F6\u6218\u62A5" })
2323
+ ] }),
2324
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id: "logs", role: "log", "aria-label": "\u6218\u6597\u8BB0\u5F55", children: s.logs.map((log, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `log-line ${log.type}`, children: [
2325
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("time", { children: new Date(log.time).toLocaleTimeString("zh-CN", { hour: "2-digit", minute: "2-digit" }) }),
2326
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: log.text })
2327
+ ] }, `${log.time}-${i}`)) })
2328
+ ] });
2329
+ }
2330
+ function GameMapPanel({ engine, state: s, onAction }) {
2331
+ const d = engine.definition;
2332
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2333
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Title, { kicker: "\u4E09\u754C\u8206\u56FE / \u897F\u884C\u4E4B\u8DEF", title: d.labels?.mapsTitle || "\u63A2\u7D22\u65B0\u7684\u65C5\u7A0B" }),
2334
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "view-description", children: "\u8E0F\u8FC7\u4E00\u91CD\u5C71\uFF0C\u518D\u8D74\u4E0B\u4E00\u7A0B\u3002\u51FB\u8D25\u7AE0\u8282\u5996\u738B\uFF0C\u5373\u53EF\u5F00\u542F\u65B0\u7684\u5386\u7EC3\u3002" }),
2335
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "map-list", children: d.maps.map((m, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: `map-card ${s.map === i ? "current" : ""}`, disabled: i > s.unlocked || busy(s), onClick: command(onAction, "map", String(i)), children: [
2336
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "map-art", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { className: "landscape", src: m.scene, alt: "" }) }),
2337
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "map-number", children: String(i + 1).padStart(2, "0") }),
2338
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "map-content", children: [
2339
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "eyebrow", children: m.subtitle }),
2340
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { children: m.name }),
2341
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: m.desc }),
2342
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "map-meta", children: [
2343
+ "\u5EFA\u8BAE\u7B49\u7EA7 ",
2344
+ m.level,
2345
+ " \xB7 \u51FB\u8D25\u5956\u52B1 ",
2346
+ m.xp,
2347
+ " \u7ECF\u9A8C / ",
2348
+ m.gold,
2349
+ " \u94DC\u94B1"
2350
+ ] })
2351
+ ] }),
2352
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "map-state", children: i > s.unlocked ? "\u51FB\u8D25\u4E0A\u4E00\u7AE0\u5996\u738B\u89E3\u9501" : s.map === i ? "\u5F53\u524D\u5386\u7EC3" : "\u524D\u5F80\u5386\u7EC3" })
2353
+ ] }, m.id)) }),
2354
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "tip", children: [
2355
+ "\u5F53\u524D\u5DF2\u89E3\u9501 ",
2356
+ s.unlocked + 1,
2357
+ " / ",
2358
+ d.maps.length,
2359
+ " \u7AE0\u3002"
2360
+ ] })
2361
+ ] });
2362
+ }
2363
+ function GamePetPanel({ engine, state: s, onAction }) {
2364
+ const d = engine.definition;
2365
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2366
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Title, { kicker: "\u7075\u5BA0\u6D1E\u5929 / \u6709\u7075\u76F8\u4F34", title: d.labels?.petsTitle || "\u4F19\u4F34\u540C\u884C", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "capacity", children: [
2367
+ "\u7075\u8574 ",
2368
+ fmt(s.essence)
2369
+ ] }) }),
2370
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "view-description", children: "\u7075\u5BA0\u968F\u4F60\u81EA\u52A8\u51FA\u6218\u3002\u4E0D\u540C\u7684\u4F19\u4F34\uFF0C\u8BA9\u6BCF\u4E00\u6BB5\u4FEE\u884C\u5404\u6709\u7AE0\u6CD5\u3002" }),
2371
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "pet-cards", children: d.pets.map((p) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("article", { className: `pet-card ${s.pet === p.id ? "selected" : ""}`, children: [
2372
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "pet-card-head", children: [
2373
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pet-kind", children: p.kind }),
2374
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: s.pets[p.id] ? `Lv.${s.pets[p.id]}` : "\u5C1A\u672A\u7ED3\u7F18" })
2375
+ ] }),
2376
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "pet-art", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: p.art }) }),
2377
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { children: p.name }),
2378
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "identity-traits", children: p.art.traits }),
2379
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: p.desc }),
2380
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "pet-stat", children: [
2381
+ "\u51FA\u624B\u4F24\u5BB3 ",
2382
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: p.base + ((s.pets[p.id] || 1) - 1) * 3 })
2383
+ ] }),
2384
+ s.pets[p.id] ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2385
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", disabled: busy(s) || s.pet === p.id, onClick: command(onAction, "deploy", p.id), children: s.pet === p.id ? "\u6B63\u5728\u51FA\u6218" : "\u8BBE\u4E3A\u51FA\u6218" }),
2386
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "primary-button", disabled: busy(s) || s.pets[p.id] >= 20 || s.essence < s.pets[p.id] * 15, onClick: command(onAction, "train", p.id), children: s.pets[p.id] >= 20 ? "\u5DF2\u8FBE\u6700\u9AD8\u7B49\u7EA7" : `\u57F9\u517B \xB7 ${s.pets[p.id] * 15} \u7075\u8574` })
2387
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: "primary-button", disabled: busy(s) || s.essence < p.cost, onClick: command(onAction, "unlock", p.id), children: [
2388
+ "\u7ED3\u7F18 \xB7 ",
2389
+ p.cost,
2390
+ " \u7075\u8574"
2391
+ ] })
2392
+ ] }, p.id)) }),
2393
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "tip", children: "\u666E\u901A\u6218\u6597\u83B7\u5F97 2 \u7075\u8574\uFF0C\u9996\u9886\u9996\u901A\u83B7\u5F97 50 \u7075\u8574\u3002\u57F9\u517B\u63D0\u5347\u8FFD\u51FB\u4F24\u5BB3\u3002" })
2394
+ ] });
2395
+ }
2396
+ function GameEquipmentPanel({ engine, state: s, onAction }) {
2397
+ const [filter, setFilter] = (0, import_react8.useState)("all");
2398
+ const d = engine.definition;
2399
+ const inventory = s.inventory.filter((item) => filter === "all" || item.slot === filter);
2400
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2401
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Title, { kicker: "\u884C\u56CA\u88C5\u5907 / \u767E\u70BC\u6210\u5668", title: d.labels?.gearTitle || "\u6574\u7406\u88C5\u5907\uFF0C\u63D0\u5347\u5B9E\u529B", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "capacity", children: [
2402
+ "\u884C\u56CA ",
2403
+ s.inventory.length,
2404
+ " / 80"
2405
+ ] }) }),
2406
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "gear-slots", children: Object.entries(d.slots).map(([key, slot]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { className: "gear-slot", children: [
2407
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "gear-info", children: [
2408
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "eyebrow", children: [
2409
+ slot.name,
2410
+ " \xB7 \u5F3A\u5316 +",
2411
+ s.upgrades[key]
2412
+ ] }),
2413
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: s.equipment[key]?.name || "\u5C1A\u672A\u88C5\u5907" }),
2414
+ s.equipment[key] && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemStats, { item: s.equipment[key] })
2415
+ ] }),
2416
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "small-button", disabled: busy(s) || !s.equipment[key] || s.upgrades[key] >= 10 || s.gold < engine.upgradeCost(s, key), onClick: command(onAction, "upgrade", key), children: s.upgrades[key] >= 10 ? "\u5DF2\u5F3A\u5316\u81F3\u4E0A\u9650" : `\u5F3A\u5316 \xB7 ${engine.upgradeCost(s, key)} \u94DC\u94B1` })
2417
+ ] }, key)) }),
2418
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "inventory-toolbar", children: [
2419
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "filters", children: [["all", "\u5168\u90E8"], ...Object.entries(d.slots).map(([key, slot]) => [key, slot.name])].map(([key, name]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: `filter ${filter === key ? "active" : ""}`, "aria-pressed": filter === key, onClick: () => setFilter(key), children: name }, key)) }),
2420
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
2421
+ "\u953B\u6750 ",
2422
+ s.material
2423
+ ] }),
2424
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", disabled: busy(s) || s.material < 12, onClick: command(onAction, "forge"), children: "\u953B\u9020\u4E0A\u54C1 \xB7 12 \u953B\u6750" })
2425
+ ] }),
2426
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "inventory-list", children: inventory.length ? inventory.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("article", { className: "item-row", children: [
2427
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: `item-icon rarity-${item.tier}`, children: "\u25C7" }),
2428
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "item-detail", children: [
2429
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("strong", { children: [
2430
+ item.name,
2431
+ " ",
2432
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("small", { children: [
2433
+ d.rarities[item.tier],
2434
+ " \xB7 ",
2435
+ d.slots[item.slot].name
2436
+ ] })
2437
+ ] }),
2438
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemStats, { item })
2439
+ ] }),
2440
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "small-button", onClick: command(onAction, "inspect", item.id), children: "\u5BF9\u6BD4" }),
2441
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "small-button jade-button", disabled: busy(s), onClick: command(onAction, "equip", item.id), children: "\u88C5\u5907" }),
2442
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "text-button", disabled: busy(s), onClick: command(onAction, "lock", item.id), children: item.locked ? "\u89E3\u9501" : "\u9501\u5B9A" }),
2443
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "text-button", disabled: busy(s) || item.locked, onClick: command(onAction, "dismantle", item.id), children: "\u5206\u89E3" })
2444
+ ] }, item.id)) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "empty-state", children: [
2445
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: "\u884C\u56CA\u5C1A\u6709\u4F59\u5730" }),
2446
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "\u6302\u673A\u51FB\u8D25\u5996\u602A\uFF0C\u6709\u673A\u4F1A\u62FE\u5F97\u88C5\u5907\u3002" }),
2447
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", onClick: command(onAction, "page", "battle"), children: "\u524D\u5F80\u5386\u7EC3" })
2448
+ ] }) }),
2449
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "tip", children: "\u5F3A\u5316\u968F\u90E8\u4F4D\u7EE7\u627F\u3002\u80CC\u5305\u6EE1\u540E\uFF0C\u65B0\u6389\u843D\u8F6C\u4E3A\u953B\u6750\uFF1B\u9501\u5B9A\u88C5\u5907\u4E0D\u80FD\u5206\u89E3\u3002" })
2450
+ ] });
2451
+ }
2452
+ function GameSavePanel({ onExport, onImport }) {
2453
+ const input = (0, import_react8.useRef)(null);
2454
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "help-content", children: [
2455
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "\u8FDB\u5EA6\u81EA\u52A8\u4FDD\u5B58\u5728\u5F53\u524D\u6D4F\u89C8\u5668\u3002\u5BFC\u5165\u901A\u8FC7\u6821\u9A8C\u540E\uFF0C\u9700\u8981\u518D\u6B21\u786E\u8BA4\u624D\u80FD\u66FF\u6362\u5F53\u524D\u8FDB\u5EA6\u3002" }),
2456
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "settings-actions", children: [
2457
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", onClick: onExport, children: "\u5BFC\u51FA\u5B58\u6863" }),
2458
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", onClick: () => input.current?.click(), children: "\u5BFC\u5165\u5B58\u6863" }),
2459
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("input", { ref: input, type: "file", accept: ".json,application/json", hidden: true, onChange: (e) => {
2460
+ const file = e.target.files?.[0];
2461
+ e.target.value = "";
2462
+ if (file)
2463
+ void onImport(file);
2464
+ } })
2465
+ ] }),
2466
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "\u5B58\u6863\u4FDD\u5B58\u5728\u672C\u673A\uFF0C\u4E0D\u5305\u542B\u8D26\u53F7\u540C\u6B65\u548C\u591A\u4EBA\u8054\u7F51\u3002" })
2467
+ ] });
2468
+ }
2469
+ function GameDialog({ open, title, children, onClose, container }) {
2470
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Modal2, { open, title, footer: null, centered: true, className: "sia-game-dialog", onCancel: onClose, getContainer: container, children });
2471
+ }
2472
+ function GameEquipmentComparison({ engine, state: s, onAction, itemId }) {
2473
+ const item = s.inventory.find((i) => i.id === itemId);
2474
+ if (!item)
2475
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "\u7269\u54C1\u5DF2\u4E0D\u5728\u80CC\u5305\u4E2D\u3002" });
2476
+ const old = s.equipment[item.slot];
2477
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2478
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "compare", children: [
2479
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { children: [
2480
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "eyebrow", children: "\u5F53\u524D\u88C5\u5907" }),
2481
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: old?.name || "\u672A\u88C5\u5907" }),
2482
+ old && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemStats, { item: old })
2483
+ ] }),
2484
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { children: [
2485
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "eyebrow", children: [
2486
+ "\u5F85\u88C5\u5907 \xB7 ",
2487
+ engine.definition.rarities[item.tier]
2488
+ ] }),
2489
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: item.name }),
2490
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemStats, { item })
2491
+ ] })
2492
+ ] }),
2493
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { children: [
2494
+ "\u540C\u90E8\u4F4D\u5F3A\u5316 +",
2495
+ s.upgrades[item.slot],
2496
+ " \u5B8C\u6574\u7EE7\u627F\u3002"
2497
+ ] }),
2498
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "compare-delta", children: ["atk", "def", "hp"].map((key, i) => {
2499
+ const delta = item[key] - (old?.[key] || 0);
2500
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: delta >= 0 ? "jade" : "red-text", children: [
2501
+ ["\u653B\u51FB", "\u9632\u5FA1", "\u6C14\u8840"][i],
2502
+ " ",
2503
+ delta >= 0 ? "+" : "",
2504
+ delta
2505
+ ] }, key);
2506
+ }) }),
2507
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "primary-button full", disabled: busy(s), onClick: command(onAction, "equip", item.id), children: "\u88C5\u5907" })
2508
+ ] });
2509
+ }
2510
+
2511
+ // src/game/IdleGameApp.tsx
2512
+ var import_react9 = require("react");
2513
+ var import_jsx_runtime9 = require("react/jsx-runtime");
2514
+ function IdleGameApp({ definition, className = "", style, onStateChange }) {
2515
+ const engineRef = (0, import_react9.useRef)();
2516
+ if (!engineRef.current)
2517
+ engineRef.current = createIdleEngine(definition);
2518
+ const engine = engineRef.current;
2519
+ const stateRef = (0, import_react9.useRef)();
2520
+ if (!stateRef.current)
2521
+ stateRef.current = engine.freshState();
2522
+ const s = stateRef.current;
2523
+ const [, refresh] = (0, import_react9.useReducer)((n) => n + 1, 0);
2524
+ const [page, setPage] = (0, import_react9.useState)("battle"), [dialog, setDialog] = (0, import_react9.useState)(""), [message, setMessage] = (0, import_react9.useState)("");
2525
+ const [event, setEvent] = (0, import_react9.useState)(null), [sequence, setSequence] = (0, import_react9.useState)(0);
2526
+ const [report, setReport] = (0, import_react9.useState)(null), [pending, setPending] = (0, import_react9.useState)(null), [itemId, setItemId] = (0, import_react9.useState)("");
2527
+ const host = (0, import_react9.useRef)(null), lastTick = (0, import_react9.useRef)(Date.now()), initialized = (0, import_react9.useRef)(false), saveWarning = (0, import_react9.useRef)(false);
2528
+ const observe = (0, import_react9.useRef)(onStateChange);
2529
+ observe.current = onStateChange;
2530
+ function save() {
2531
+ const current = stateRef.current;
2532
+ try {
2533
+ current.savedAt = Date.now();
2534
+ localStorage.setItem(definition.saveKey, engine.serialize(current, current.savedAt));
2535
+ saveWarning.current = false;
2536
+ } catch {
2537
+ if (!saveWarning.current) {
2538
+ setMessage("\u6D4F\u89C8\u5668\u672A\u80FD\u4FDD\u5B58\u8FDB\u5EA6\uFF0C\u8BF7\u5728\u8BBE\u7F6E\u4E2D\u5BFC\u51FA\u5B58\u6863\u3002");
2539
+ saveWarning.current = true;
2540
+ }
2541
+ }
2542
+ }
2543
+ function changed() {
2544
+ save();
2545
+ refresh();
2546
+ observe.current?.(stateRef.current);
2547
+ }
2548
+ (0, import_react9.useEffect)(() => {
2549
+ if (message) {
2550
+ const timer = setTimeout(() => setMessage(""), 3200);
2551
+ return () => clearTimeout(timer);
2552
+ }
2553
+ }, [message]);
2554
+ (0, import_react9.useEffect)(() => {
2555
+ if (!initialized.current) {
2556
+ try {
2557
+ const raw = localStorage.getItem(definition.saveKey);
2558
+ if (raw) {
2559
+ stateRef.current = engine.hydrate(JSON.parse(raw));
2560
+ const result = engine.settleOffline(stateRef.current);
2561
+ if (result) {
2562
+ setReport(result);
2563
+ setDialog("offline");
2564
+ }
2565
+ }
2566
+ } catch {
2567
+ setMessage("\u5B58\u6863\u8BFB\u53D6\u5931\u8D25\uFF0C\u5F53\u524D\u4EE5\u5185\u5B58\u65B0\u6863\u8FD0\u884C\uFF1B\u53EF\u5728\u8BBE\u7F6E\u4E2D\u5BFC\u5165\u5907\u4EFD\u3002");
2568
+ }
2569
+ engine.addLog(stateRef.current, "\u6B22\u8FCE\u5F52\u6765\uFF0C\u70B9\u51FB\u5F00\u59CB\u6302\u673A\u7EE7\u7EED\u5386\u7EC3\u3002");
2570
+ initialized.current = true;
2571
+ lastTick.current = Date.now();
2572
+ refresh();
2573
+ }
2574
+ const timer = setInterval(() => {
2575
+ if (document.hidden)
2576
+ return;
2577
+ const now = Date.now(), elapsed = Math.floor((now - lastTick.current) / 1e3);
2578
+ if (elapsed < 1)
2579
+ return;
2580
+ const current = stateRef.current;
2581
+ if (elapsed > 15 && current.idle) {
2582
+ current.savedAt = lastTick.current;
2583
+ engine.settleOffline(current, now);
2584
+ setEvent(null);
2585
+ } else {
2586
+ const next = engine.tick(current);
2587
+ setEvent(next);
2588
+ if (next) {
2589
+ setSequence((n) => n + 1);
2590
+ if (next.bossWin)
2591
+ setMessage(next.first ? `\u9996\u901A\u6210\u529F\uFF01${next.reward}\u5DF2\u6536\u5165\u884C\u56CA\u3002` : "\u9996\u9886\u6311\u6218\u6210\u529F\uFF01");
2592
+ }
2593
+ }
2594
+ lastTick.current = now;
2595
+ changed();
2596
+ }, 1e3);
2597
+ const visibility = () => {
2598
+ if (document.hidden) {
2599
+ save();
2600
+ lastTick.current = Date.now();
2601
+ } else {
2602
+ const result = engine.settleOffline(stateRef.current);
2603
+ if (result) {
2604
+ setReport(result);
2605
+ setDialog("offline");
2606
+ }
2607
+ lastTick.current = Date.now();
2608
+ setEvent(null);
2609
+ changed();
2610
+ }
2611
+ };
2612
+ window.addEventListener("pagehide", save);
2613
+ document.addEventListener("visibilitychange", visibility);
2614
+ return () => {
2615
+ clearInterval(timer);
2616
+ window.removeEventListener("pagehide", save);
2617
+ document.removeEventListener("visibilitychange", visibility);
2618
+ save();
2619
+ };
2620
+ }, [engine, definition]);
2621
+ function action({ type, id = "" }) {
2622
+ const current = stateRef.current, locked = Boolean(current.fight?.boss && current.fight.status === "active");
2623
+ if (type === "page") {
2624
+ if (["battle", "maps", "gear", "pets"].includes(id))
2625
+ setPage(id);
2626
+ return;
2627
+ }
2628
+ if (type === "settings" || type === "help") {
2629
+ setDialog(type);
2630
+ return;
2631
+ }
2632
+ if (type === "inspect") {
2633
+ setItemId(id);
2634
+ setDialog("compare");
2635
+ return;
2636
+ }
2637
+ if (locked) {
2638
+ setMessage("\u9996\u9886\u6311\u6218\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u6218\u6597\u7ED3\u675F\u3002");
2639
+ return;
2640
+ }
2641
+ let success = true;
2642
+ if (type === "idle") {
2643
+ current.idle = !current.idle;
2644
+ if (!current.idle)
2645
+ current.fight = null;
2646
+ engine.addLog(current, current.idle ? "\u5F00\u59CB\u6302\u673A\u4FEE\u884C\u3002" : "\u6682\u505C\u6302\u673A\uFF0C\u9759\u5FC3\u6574\u5907\u3002");
2647
+ }
2648
+ if (type === "boss") {
2649
+ engine.beginFight(current, true);
2650
+ setPage("battle");
2651
+ }
2652
+ if (type === "map") {
2653
+ const index = Number(id);
2654
+ if (!Number.isInteger(index) || index < 0 || index > current.unlocked)
2655
+ return;
2656
+ current.map = index;
2657
+ current.fight = null;
2658
+ setPage("battle");
2659
+ engine.addLog(current, `\u6765\u5230${definition.maps[index].name}\u3002`);
2660
+ }
2661
+ if (type === "equip") {
2662
+ success = engine.equip(current, id);
2663
+ if (success) {
2664
+ current.fight = null;
2665
+ setDialog("");
2666
+ setMessage("\u88C5\u5907\u6210\u529F\uFF0C\u6218\u529B\u5DF2\u66F4\u65B0\u3002");
2667
+ }
2668
+ }
2669
+ if (type === "upgrade") {
2670
+ success = engine.upgrade(current, id);
2671
+ if (success) {
2672
+ current.fight = null;
2673
+ setMessage("\u90E8\u4F4D\u5F3A\u5316\u6210\u529F\u3002");
2674
+ }
2675
+ }
2676
+ if (type === "dismantle")
2677
+ success = engine.dismantle(current, id);
2678
+ if (type === "forge")
2679
+ success = engine.forge(current);
2680
+ if (type === "train") {
2681
+ success = engine.trainPet(current, id);
2682
+ if (success)
2683
+ current.fight = null;
2684
+ }
2685
+ if (type === "unlock")
2686
+ success = engine.unlockPet(current, id);
2687
+ if (type === "deploy" && current.pets[id]) {
2688
+ current.pet = id;
2689
+ current.fight = null;
2690
+ }
2691
+ if (type === "lock") {
2692
+ const item = current.inventory.find((i) => i.id === id);
2693
+ if (item)
2694
+ item.locked = !item.locked;
2695
+ }
2696
+ if (!success)
2697
+ setMessage("\u5F53\u524D\u6761\u4EF6\u4E0D\u8DB3\uFF0C\u64CD\u4F5C\u672A\u6267\u884C\u3002");
2698
+ setEvent(null);
2699
+ changed();
2700
+ }
2701
+ async function importFile(file) {
2702
+ try {
2703
+ if (file.size > 1e6)
2704
+ throw new Error("\u6587\u4EF6\u8FC7\u5927");
2705
+ const loaded = engine.hydrate(JSON.parse(await file.text()));
2706
+ setPending(loaded);
2707
+ setDialog("import");
2708
+ } catch {
2709
+ setMessage("\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u9009\u62E9\u6709\u6548\u7684\u6E38\u620F JSON \u5B58\u6863\u3002");
2710
+ }
2711
+ }
2712
+ function exportFile() {
2713
+ save();
2714
+ const url = URL.createObjectURL(new Blob([engine.serialize(stateRef.current)], { type: "application/json;charset=utf-8" }));
2715
+ const anchor = document.createElement("a");
2716
+ anchor.href = url;
2717
+ anchor.download = `${definition.title}-\u4FEE\u884C\u5B58\u6863.json`;
2718
+ anchor.click();
2719
+ setTimeout(() => URL.revokeObjectURL(url), 1e3);
2720
+ }
2721
+ const view = { engine, state: s, onAction: action };
2722
+ const titles = { settings: "\u4FEE\u884C\u8BBE\u7F6E \xB7 \u5B58\u6863", help: "\u4FEE\u884C\u5165\u95E8", compare: "\u88C5\u5907\u5BF9\u6BD4", offline: "\u4E45\u522B\u5F52\u6765\uFF0C\u4FEE\u884C\u672A\u6B47", import: "\u786E\u8BA4\u5BFC\u5165\u5B58\u6863" };
2723
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: host, className: `sia-game ${className}`, style, "data-sia-theme": "dark", children: [
2724
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameShell, { ...view, page, children: page === "battle" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameBattleStage, { ...view, event, sequence }) : page === "maps" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameMapPanel, { ...view }) : page === "gear" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameEquipmentPanel, { ...view }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GamePetPanel, { ...view }) }),
2725
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(GameDialog, { open: Boolean(dialog), title: titles[dialog] || "", onClose: () => setDialog(""), container: () => host.current, children: [
2726
+ dialog === "settings" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameSavePanel, { onExport: exportFile, onImport: importFile }),
2727
+ dialog === "compare" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameEquipmentComparison, { ...view, itemId }),
2728
+ dialog === "help" && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "help-content", children: [
2729
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { children: [
2730
+ "\u5F00\u59CB\u6302\u673A\u540E\uFF0C\u6BCF\u79D2\u81EA\u52A8\u51FA\u624B\u5E76\u62FE\u53D6\u5956\u52B1\u3002\u5173\u95ED\u9875\u9762\u540E\uFF0C\u4E0B\u6B21\u8FDB\u5165\u7ED3\u7B97\u6700\u591A ",
2731
+ (definition.offlineCapSeconds ?? 43200) / 3600,
2732
+ " \u5C0F\u65F6\u7684\u666E\u901A\u6218\u6597\u6536\u76CA\u3002"
2733
+ ] }),
2734
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("ol", { children: [
2735
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: "\u6302\u673A\u83B7\u5F97\u7ECF\u9A8C\u3001\u94DC\u94B1\u3001\u88C5\u5907\u548C\u7075\u8574\u3002" }),
2736
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: "\u66F4\u6362\u88C5\u5907\uFF0C\u5F3A\u5316\u90E8\u4F4D\uFF1B\u5F3A\u5316\u4E0D\u4F1A\u968F\u6362\u88C5\u4E22\u5931\u3002" }),
2737
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: "\u7ED3\u7F18\u5E76\u57F9\u517B\u4F19\u4F34\uFF0C\u6539\u53D8\u8FFD\u51FB\u3001\u6CBB\u7597\u4E0E\u51CF\u4F24\u6548\u679C\u3002" }),
2738
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: "\u6311\u6218\u9996\u9886\uFF0C\u9996\u901A\u83B7\u5F97\u88C5\u5907\u5E76\u89E3\u9501\u4E0B\u4E00\u7AE0\u3002" })
2739
+ ] }),
2740
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { children: "\u6311\u6218\u5931\u8D25\u4E0D\u6263\u8D44\u6E90\u3002\u9996\u9886\u6218\u671F\u95F4\u6682\u65F6\u4E0D\u80FD\u6362\u88C5\u3001\u57F9\u517B\u6216\u5207\u6362\u5730\u56FE\u3002" })
2741
+ ] }),
2742
+ dialog === "offline" && report && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
2743
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { children: [
2744
+ "\u79BB\u5F00 ",
2745
+ Math.floor(report.seconds / 3600),
2746
+ " \u5C0F\u65F6 ",
2747
+ Math.floor(report.seconds % 3600 / 60),
2748
+ " \u5206\u949F\uFF0C\u6536\u76CA\u5DF2\u81EA\u52A8\u5165\u8D26\u3002"
2749
+ ] }),
2750
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "offline-grid", children: [["\u7ECF\u9A8C", report.xp], ["\u94DC\u94B1", report.gold], ["\u7075\u8574", report.essence], ["\u88C5\u5907\u6389\u843D", report.drops]].map(([label, value]) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
2751
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: label }),
2752
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: value })
2753
+ ] }, label)) }),
2754
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { children: [
2755
+ "\u51FB\u8D25 ",
2756
+ report.kills,
2757
+ " \u4E2A\u654C\u4EBA\uFF0C\u80CC\u5305\u6EA2\u51FA\u6389\u843D\u5DF2\u8F6C\u4E3A\u953B\u6750\u3002"
2758
+ ] }),
2759
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameButton, { className: "primary-button full", onClick: () => setDialog(""), children: "\u7EE7\u7EED\u5386\u7EC3" })
2760
+ ] }),
2761
+ dialog === "import" && pending && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
2762
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { children: [
2763
+ "\u5373\u5C06\u8F7D\u5165 Lv.",
2764
+ pending.level,
2765
+ " \u7684\u89D2\u8272\uFF0C\u5DF2\u89E3\u9501 ",
2766
+ pending.unlocked + 1,
2767
+ " \u7AE0\u3002\u786E\u8BA4\u540E\u5C06\u66FF\u6362\u5F53\u524D\u5B58\u6863\u3002"
2768
+ ] }),
2769
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameButton, { className: "primary-button full", disabled: Boolean(s.fight?.boss && s.fight.status === "active"), onClick: () => {
2770
+ stateRef.current = pending;
2771
+ setPending(null);
2772
+ setDialog("");
2773
+ setEvent(null);
2774
+ lastTick.current = Date.now();
2775
+ changed();
2776
+ setMessage("\u5B58\u6863\u5DF2\u5BFC\u5165\u3002");
2777
+ }, children: "\u786E\u8BA4\u66FF\u6362\u5F53\u524D\u5B58\u6863" })
2778
+ ] })
2779
+ ] }),
2780
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `game-toast ${message ? "visible" : ""}`, role: "status", children: message })
2781
+ ] });
2782
+ }
2783
+ // Annotate the CommonJS export names for ESM import in node:
2784
+ 0 && (module.exports = {
2785
+ GameBattleStage,
2786
+ GameBossPanel,
2787
+ GameButton,
2788
+ GameCharacterPanel,
2789
+ GameDialog,
2790
+ GameEquipmentComparison,
2791
+ GameEquipmentPanel,
2792
+ GameLogPanel,
2793
+ GameMapPanel,
2794
+ GamePetPanel,
2795
+ GameResourceSummary,
2796
+ GameSavePanel,
2797
+ GameShell,
2798
+ GameSprite,
2799
+ IdleGameApp,
2800
+ createIdleEngine
2801
+ });