@yoyaflow/yoya-ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1674 @@
1
+ //#region src/core/node.js
2
+ var e = /* @__PURE__ */ new Set([
3
+ "checked",
4
+ "disabled",
5
+ "readonly",
6
+ "selected"
7
+ ]), t = /* @__PURE__ */ new Set([
8
+ "area",
9
+ "base",
10
+ "br",
11
+ "col",
12
+ "embed",
13
+ "hr",
14
+ "img",
15
+ "input",
16
+ "link",
17
+ "meta",
18
+ "param",
19
+ "source",
20
+ "track",
21
+ "wbr"
22
+ ]);
23
+ function n(e) {
24
+ return typeof e == "string" ? document.querySelector(e) : e;
25
+ }
26
+ function r(e) {
27
+ return String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
28
+ }
29
+ function i(t) {
30
+ return e.has(t);
31
+ }
32
+ function a(e, t, n) {
33
+ if (n == null || n === !1) {
34
+ if (e.removeAttribute(t), t in e) try {
35
+ e[t] = !1;
36
+ } catch {}
37
+ return;
38
+ }
39
+ if (n === !0 || i(t)) {
40
+ if (e.setAttribute(t, t), t in e) try {
41
+ e[t] = !0;
42
+ } catch {}
43
+ return;
44
+ }
45
+ if (e.setAttribute(t, String(n)), t in e) try {
46
+ e[t] = n;
47
+ } catch {}
48
+ }
49
+ function o(e) {
50
+ return Object.entries(e).filter(([, e]) => e != null && e !== "").map(([e, t]) => `${s(e)}:${r(t)}`).join("; ");
51
+ }
52
+ function s(e) {
53
+ return String(e).replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
54
+ }
55
+ var c = class e {
56
+ constructor(e = null) {
57
+ this._children = [], this._events = /* @__PURE__ */ new Map(), this._cleanup = [], this._states = {}, this._stateTypes = {}, this._stateHandlers = /* @__PURE__ */ new Map(), this._pendingRemovals = /* @__PURE__ */ new Set(), this._childrenDirty = !1, this._deleted = !1, e !== null && this.setup(e);
58
+ }
59
+ setup(t) {
60
+ return typeof t == "function" ? t(this) : t instanceof e ? this.child(t) : typeof t == "string" || typeof t == "number" ? this.text(t) : t && typeof t == "object" && this._setupObject(t), this;
61
+ }
62
+ _setupObject(e) {
63
+ e.children && this.child(e.children);
64
+ }
65
+ children() {
66
+ return [...this._children];
67
+ }
68
+ clearChildren() {
69
+ return this._children.forEach((e) => {
70
+ this._pendingRemovals.add(e);
71
+ }), this._children = [], this._childrenDirty = !0, this;
72
+ }
73
+ child(...e) {
74
+ return e.flat(Infinity).forEach((e) => {
75
+ if (e == null) return;
76
+ let t = d(e);
77
+ this._pendingRemovals.delete(t), this._children.push(t), this._childrenDirty = !0;
78
+ }), this;
79
+ }
80
+ text(e) {
81
+ return this.child(new l(e));
82
+ }
83
+ on(e, t, n) {
84
+ return this._events.has(e) || this._events.set(e, []), this._events.get(e).push({
85
+ handler: t,
86
+ options: n
87
+ }), this._el && (this._el.addEventListener(e, t, n), this._cleanup.push(() => this._el.removeEventListener(e, t, n))), this;
88
+ }
89
+ registerStateAttrs(...e) {
90
+ return e.forEach((e) => {
91
+ if (typeof e == "string") {
92
+ this._stateTypes[e] = "boolean";
93
+ return;
94
+ }
95
+ e && typeof e == "object" && Object.entries(e).forEach(([e, t]) => {
96
+ this._stateTypes[e] = t || "boolean";
97
+ });
98
+ }), this;
99
+ }
100
+ registerStateHandler(e, t) {
101
+ return this._stateHandlers.has(e) || this._stateHandlers.set(e, []), this._stateHandlers.get(e).push(t), this;
102
+ }
103
+ setState(e, t = !0) {
104
+ let n = this._states[e];
105
+ return this._states[e] = t, (this._stateHandlers.get(e) || []).forEach((e) => e(t, this, n)), this;
106
+ }
107
+ getState(e) {
108
+ return this._states[e];
109
+ }
110
+ getBooleanState(e) {
111
+ return !!this.getState(e);
112
+ }
113
+ getStringState(e) {
114
+ let t = this.getState(e);
115
+ return t == null ? "" : String(t);
116
+ }
117
+ getNumberState(e) {
118
+ return Number(this.getState(e) || 0);
119
+ }
120
+ renderDom() {
121
+ return null;
122
+ }
123
+ commit() {
124
+ return this.renderDom();
125
+ }
126
+ _commitChildren() {
127
+ this._pendingRemovals.forEach((e) => e.destroy()), this._pendingRemovals.clear(), this._childrenDirty = !1;
128
+ }
129
+ bindTo(e) {
130
+ let t = n(e), r = this.renderDom();
131
+ return t && r && t.appendChild(r), this;
132
+ }
133
+ destroy() {
134
+ return this._deleted = !0, this._cleanup.forEach((e) => e()), this._cleanup = [], this._children.forEach((e) => e.destroy()), this._pendingRemovals.forEach((e) => e.destroy()), this._pendingRemovals.clear(), this._children = [], this._el?.parentNode && this._el.parentNode.removeChild(this._el), this;
135
+ }
136
+ toHTML() {
137
+ return "";
138
+ }
139
+ hydrateSnapshot() {
140
+ return this;
141
+ }
142
+ }, l = class extends c {
143
+ constructor(e = "") {
144
+ super(null), this._content = String(e), this._textNode = null;
145
+ }
146
+ textContent(e) {
147
+ return e === void 0 ? this._content : (this._content = String(e), this._textNode && (this._textNode.textContent = this._content), this);
148
+ }
149
+ renderDom() {
150
+ return this._deleted ? null : (this._textNode || (this._textNode = document.createTextNode(this._content), this._el = this._textNode), this._textNode);
151
+ }
152
+ toHTML() {
153
+ return this._deleted ? "" : r(this._content);
154
+ }
155
+ }, ee = class extends c {
156
+ constructor(e) {
157
+ super(null), this._component = e, this._resolved = null;
158
+ }
159
+ _resolve() {
160
+ if (this._resolved) return this._resolved;
161
+ let e = typeof this._component == "function" ? this._component() : this._component.render();
162
+ if (!(e instanceof c)) throw TypeError("Component render must return a ViewNode");
163
+ return this._resolved = e, e;
164
+ }
165
+ children() {
166
+ return this._resolved ? this._resolved.children() : [];
167
+ }
168
+ textContent() {
169
+ let e = this._resolve();
170
+ return typeof e.textContent == "function" ? e.textContent() : "";
171
+ }
172
+ renderDom() {
173
+ if (this._deleted) return null;
174
+ let e = this._resolve().renderDom();
175
+ return this._el = e, e;
176
+ }
177
+ toHTML() {
178
+ return this._deleted ? "" : this._resolve().toHTML();
179
+ }
180
+ destroy() {
181
+ return this._resolved && this._resolved.destroy(), super.destroy();
182
+ }
183
+ };
184
+ function u(e = "") {
185
+ return new l(e);
186
+ }
187
+ function d(e) {
188
+ if (e instanceof c) return e;
189
+ if (typeof e == "function" || e && typeof e == "object" && typeof e.render == "function") return new ee(e);
190
+ if (typeof e == "string" || typeof e == "number") return new l(e);
191
+ throw TypeError("ViewNode child must be a ViewNode, component, string, or number");
192
+ }
193
+ function f(e = null, t = null, n = null) {
194
+ return typeof t == "function" && n == null ? {
195
+ first: e,
196
+ options: null,
197
+ callback: t
198
+ } : {
199
+ first: e,
200
+ options: t,
201
+ callback: n
202
+ };
203
+ }
204
+ function p(e, t) {
205
+ return !t || typeof t != "object" || Array.isArray(t) ? e : (t.attrs && typeof e.attr == "function" && e.attr(t.attrs), t.style && typeof e.styles == "function" && e.styles(t.style), e);
206
+ }
207
+ var m = class extends c {
208
+ constructor(e, t = null) {
209
+ super(null), this._tagName = e, this._attrs = {}, this._styles = {}, this._classes = /* @__PURE__ */ new Set(), this._el = null, t !== null && this.setup(t);
210
+ }
211
+ _setupObject(e) {
212
+ Object.entries(e).forEach(([e, t]) => {
213
+ if (e === "class" || e === "className") {
214
+ this.className(t);
215
+ return;
216
+ }
217
+ if (e === "attrs") {
218
+ this.attr(t);
219
+ return;
220
+ }
221
+ if (e === "style") {
222
+ this.styles(t);
223
+ return;
224
+ }
225
+ if (e === "children") {
226
+ this.child(t);
227
+ return;
228
+ }
229
+ if (e.startsWith("on") && typeof t == "function") {
230
+ this.on(e.slice(2).toLowerCase(), t);
231
+ return;
232
+ }
233
+ if (typeof this[e] == "function") {
234
+ this[e](t);
235
+ return;
236
+ }
237
+ typeof t != "function" && this.attr(e, t);
238
+ });
239
+ }
240
+ tagName() {
241
+ return this._tagName;
242
+ }
243
+ textContent() {
244
+ return this._children.map((e) => typeof e.textContent == "function" ? e.textContent() : "").join("");
245
+ }
246
+ attr(e, t) {
247
+ return t === void 0 && typeof e == "string" ? this._attrs[e] : e && typeof e == "object" ? (Object.entries(e).forEach(([e, t]) => this.attr(e, t)), this) : (t == null || t === !1 ? delete this._attrs[e] : this._attrs[e] = t, this._el && a(this._el, e, t), this);
248
+ }
249
+ id(e) {
250
+ return e === void 0 ? this.attr("id") : this.attr("id", e);
251
+ }
252
+ name(e) {
253
+ return e === void 0 ? this.attr("name") : this.attr("name", e);
254
+ }
255
+ className(...e) {
256
+ return e.length === 0 ? [...this._classes].join(" ") : (e.flat(Infinity).forEach((e) => {
257
+ e && String(e).split(/\s+/).filter(Boolean).forEach((e) => this._classes.add(e));
258
+ }), this._syncClassName(), this);
259
+ }
260
+ class(...e) {
261
+ return this.className(...e);
262
+ }
263
+ replaceClassName(e, t, n = !1) {
264
+ return !e || !t || e === t ? this : this._classes.has(e) ? (this._classes.delete(e), this.className(t)) : n ? this.className(t) : this;
265
+ }
266
+ style(e, t) {
267
+ return t === void 0 && typeof e == "string" ? this._styles[e] : e && typeof e == "object" ? this.styles(e) : (t == null || t === "" ? delete this._styles[e] : this._styles[e] = t, this._el && (this._el.style[e] = t || ""), this);
268
+ }
269
+ styles(e) {
270
+ return Object.entries(e || {}).forEach(([e, t]) => this.style(e, t)), this;
271
+ }
272
+ child(...e) {
273
+ return e.flat(Infinity).forEach((e) => {
274
+ if (e == null) return;
275
+ let t = d(e);
276
+ if (this._pendingRemovals.delete(t), this._children.push(t), this._childrenDirty = !0, this._el) {
277
+ let e = t.renderDom();
278
+ e && e.parentNode !== this._el && this._el.appendChild(e);
279
+ }
280
+ }), this;
281
+ }
282
+ renderDom() {
283
+ return this._deleted ? null : (this._el || (this._el = document.createElement(this._tagName), this._applySnapshotToElement()), this._commitChildren(), this._children.forEach((e) => {
284
+ let t = e.renderDom();
285
+ t && t.parentNode !== this._el && this._el.appendChild(t);
286
+ }), this._el);
287
+ }
288
+ toHTML() {
289
+ if (this._deleted) return "";
290
+ let e = this._serializeAttributes(), n = e ? `<${this._tagName} ${e}>` : `<${this._tagName}>`;
291
+ return t.has(this._tagName) ? n : `${n}${this._children.map((e) => e.toHTML()).join("")}</${this._tagName}>`;
292
+ }
293
+ _applyBindingsToElement() {
294
+ Object.entries(this._attrs).forEach(([e, t]) => a(this._el, e, t)), this._syncClassName(), Object.entries(this._styles).forEach(([e, t]) => {
295
+ this._el.style[e] = t;
296
+ }), this._events.forEach((e, t) => {
297
+ e.forEach(({ handler: e, options: n }) => {
298
+ this._el.addEventListener(t, e, n), this._cleanup.push(() => this._el.removeEventListener(t, e, n));
299
+ });
300
+ });
301
+ }
302
+ _applySnapshotToElement() {
303
+ this._applyBindingsToElement(), this._children.forEach((e) => {
304
+ let t = e.renderDom();
305
+ t && this._el.appendChild(t);
306
+ });
307
+ }
308
+ _syncClassName() {
309
+ let e = [...this._classes].join(" ");
310
+ e ? this._attrs.class = e : delete this._attrs.class, this._el && (e ? this._el.className = e : this._el.removeAttribute("class"));
311
+ }
312
+ _serializeAttributes() {
313
+ let e = { ...this._attrs }, t = this._serializeStyles();
314
+ return t && (e.style = e.style ? `${e.style}; ${t}` : t), Object.entries(e).filter(([, e]) => e != null && e !== !1).map(([e, t]) => t === !0 || i(e) ? `${e}="${e}"` : `${e}="${r(t)}"`).join(" ");
315
+ }
316
+ _serializeStyles() {
317
+ return o(this._styles);
318
+ }
319
+ };
320
+ function h(e, t = m) {
321
+ return function(n = null, r = null, i = null) {
322
+ let a = f(n, r, i), o = new t(e, a.first);
323
+ return p(o, a.options), typeof a.callback == "function" && a.callback(o), o;
324
+ };
325
+ }
326
+ function g(e, t, n = {}) {
327
+ let { override: r = !1 } = n;
328
+ Object.entries(t).forEach(([t, n]) => {
329
+ !r && e.prototype[t] || (e.prototype[t] = function(...e) {
330
+ return this.child(n(...e));
331
+ });
332
+ });
333
+ }
334
+ //#endregion
335
+ //#region src/core/client-only.js
336
+ var _ = class extends c {
337
+ constructor(e) {
338
+ super(null), this._loader = e, this._resolved = null;
339
+ }
340
+ _resolve() {
341
+ return this._resolved ||= v(this._loader), this._resolved;
342
+ }
343
+ toHTML() {
344
+ return this._deleted ? "" : "<div class=\"yoya-client-only\" data-client-only=\"true\"></div>";
345
+ }
346
+ renderDom() {
347
+ if (this._deleted) return null;
348
+ let e = this._resolve().renderDom();
349
+ return this._el && this._el !== e && this._el.parentNode && this._el.parentNode.replaceChild(e, this._el), this._el = e, e;
350
+ }
351
+ children() {
352
+ return this._resolved ? this._resolved.children() : [];
353
+ }
354
+ textContent() {
355
+ return this._resolved && typeof this._resolved.textContent == "function" ? this._resolved.textContent() : "";
356
+ }
357
+ destroy() {
358
+ return this._resolved && this._resolved.destroy(), super.destroy();
359
+ }
360
+ };
361
+ function te(e) {
362
+ return new _(e);
363
+ }
364
+ function v(e) {
365
+ if (e instanceof c) return e;
366
+ if (typeof e == "function") return v(e());
367
+ if (e && typeof e.render == "function") return v(e.render());
368
+ throw TypeError("vClientOnly loader must return a ViewNode or a component object");
369
+ }
370
+ //#endregion
371
+ //#region src/core/i18n.js
372
+ var y = "yoya-ui:i18n", b = /* @__PURE__ */ new Map(), x = class {
373
+ constructor(e = {}) {
374
+ let t = e.language || "zh-CN";
375
+ this._key = e.key || null, this._storage = I(e.storage), this._storageKey = e.storageKey || null, this._sharedStorageKey = this._key ? y : null, this._fallbackLanguage = e.fallbackLanguage || t, this._language = this._readStoredLanguage(t), this._messages = {}, this._listeners = /* @__PURE__ */ new Set(), this.registerMessages(e.messages || {}), this._key && D(this);
376
+ }
377
+ key() {
378
+ return this._key;
379
+ }
380
+ getLanguage() {
381
+ return this._language;
382
+ }
383
+ setLanguage(e) {
384
+ return !e || e === this._language ? this : (this._language = e, this._persistLanguage(), this._notify(), this);
385
+ }
386
+ getFallbackLanguage() {
387
+ return this._fallbackLanguage;
388
+ }
389
+ setFallbackLanguage(e) {
390
+ return e ? (this._fallbackLanguage = e, this._notify(), this) : this;
391
+ }
392
+ clearPersistedLanguage() {
393
+ if (!this._storageKey) {
394
+ if (!this._sharedStorageKey) return this;
395
+ let e = k(this._storage, this._sharedStorageKey);
396
+ return delete e[this._key], A(this._storage, this._sharedStorageKey, e), this;
397
+ }
398
+ try {
399
+ this._storage.removeItem(this._storageKey);
400
+ } catch {}
401
+ return this;
402
+ }
403
+ register(e, t = {}) {
404
+ return e ? (F(t).forEach((t) => {
405
+ this._messages[e] = M(this._messages[e] || {}, t);
406
+ }), this._notify(), this) : this;
407
+ }
408
+ registerMessages(e = {}) {
409
+ return P(e).forEach((e) => {
410
+ if (e.language) {
411
+ this.register(e.language, e.messages || {});
412
+ return;
413
+ }
414
+ Object.entries(e).forEach(([e, t]) => {
415
+ this.register(e, t);
416
+ });
417
+ }), this;
418
+ }
419
+ t(e, t = {}, n = void 0) {
420
+ let r = j(this._messages[this._language], e) ?? j(this._messages[this._fallbackLanguage], e) ?? n ?? e;
421
+ return ce(typeof r == "function" ? r(t, this) : r, t);
422
+ }
423
+ text(e, t = {}, n = void 0) {
424
+ return new S(this, e, t, n);
425
+ }
426
+ subscribe(e) {
427
+ return this._listeners.add(e), () => {
428
+ this._listeners.delete(e);
429
+ };
430
+ }
431
+ _readStoredLanguage(e) {
432
+ if (this._storageKey) try {
433
+ return this._storage.getItem(this._storageKey) || e;
434
+ } catch {
435
+ return e;
436
+ }
437
+ return this._sharedStorageKey && k(this._storage, this._sharedStorageKey)[this._key] || e;
438
+ }
439
+ _persistLanguage() {
440
+ if (this._storageKey) {
441
+ try {
442
+ this._storage.setItem(this._storageKey, this._language);
443
+ } catch {}
444
+ return;
445
+ }
446
+ if (this._sharedStorageKey) {
447
+ let e = k(this._storage, this._sharedStorageKey);
448
+ e[this._key] = this._language, A(this._storage, this._sharedStorageKey, e);
449
+ }
450
+ }
451
+ _notify() {
452
+ this._listeners.forEach((e) => e(this));
453
+ }
454
+ }, S = class extends l {
455
+ constructor(e, t, n = {}, r = void 0) {
456
+ super(e.t(t, n, r)), this._i18n = e, this._key = t, this._params = n || {}, this._defaultValue = r, this._unsubscribe = e.subscribe(() => this.refresh());
457
+ }
458
+ key(e) {
459
+ return e === void 0 ? this._key : (this._key = e, this.refresh());
460
+ }
461
+ params(e) {
462
+ return e === void 0 ? { ...this._params } : (this._params = e || {}, this.refresh());
463
+ }
464
+ defaultValue(e) {
465
+ return e === void 0 ? this._defaultValue : (this._defaultValue = e, this.refresh());
466
+ }
467
+ refresh() {
468
+ return this.textContent(this._i18n.t(this._key, this._params, this._defaultValue)), this;
469
+ }
470
+ destroy() {
471
+ return this._unsubscribe &&= (this._unsubscribe(), null), super.destroy();
472
+ }
473
+ };
474
+ function C(e = {}) {
475
+ return new x(e);
476
+ }
477
+ var w = C();
478
+ function ne(e, t = {}) {
479
+ return w.text(e, t);
480
+ }
481
+ var T = w;
482
+ function E(e = w) {
483
+ return T = e, String.prototype._yoyaUiStringShortcutInstalled ? e : (Object.defineProperty(String.prototype, "_yoyaUiStringShortcutInstalled", {
484
+ configurable: !0,
485
+ enumerable: !1,
486
+ value: !0
487
+ }), Object.defineProperty(String.prototype, "s", {
488
+ configurable: !0,
489
+ enumerable: !1,
490
+ value: function(e, t, n) {
491
+ let r = String(this), i = {}, a = T;
492
+ return ie(t) ? a = t : typeof t == "string" ? a = O(t) || T : (i = t || {}, ie(n) ? a = n : typeof n == "string" && (a = O(n) || T)), a.text(e || r, i, r);
493
+ }
494
+ }), e);
495
+ }
496
+ function re(e, t) {
497
+ let n = T;
498
+ T = e || n;
499
+ try {
500
+ return t();
501
+ } finally {
502
+ T = n;
503
+ }
504
+ }
505
+ function ie(e) {
506
+ return !!(e && typeof e.text == "function");
507
+ }
508
+ function D(e) {
509
+ let t = e?.key?.();
510
+ return t ? (b.set(t, e), () => {
511
+ b.get(t) === e && b.delete(t);
512
+ }) : () => {};
513
+ }
514
+ function ae(e) {
515
+ let t = typeof e == "string" ? e : e?.key?.();
516
+ return t && b.delete(t), t;
517
+ }
518
+ function O(e) {
519
+ return e && b.get(e) || null;
520
+ }
521
+ function oe() {
522
+ return new Map(b);
523
+ }
524
+ function se(e) {
525
+ return k(e || I(), y);
526
+ }
527
+ function k(e, t) {
528
+ if (!e) return {};
529
+ try {
530
+ let n = e.getItem(t);
531
+ if (!n) return {};
532
+ let r = JSON.parse(n);
533
+ return r && typeof r == "object" ? r : {};
534
+ } catch {
535
+ return {};
536
+ }
537
+ }
538
+ function A(e, t, n) {
539
+ if (e) try {
540
+ e.setItem(t, JSON.stringify(n));
541
+ } catch {}
542
+ }
543
+ E(w);
544
+ function j(e, t) {
545
+ if (!(!e || !t)) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : String(t).split(".").reduce((e, t) => {
546
+ if (e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
547
+ }, e);
548
+ }
549
+ function ce(e, t) {
550
+ return String(e).replace(/\{([^{}]+)\}/g, (e, n) => {
551
+ let r = t?.[n.trim()];
552
+ return r == null ? e : String(r);
553
+ });
554
+ }
555
+ function M(e, t) {
556
+ let n = { ...e };
557
+ return Object.entries(t || {}).forEach(([e, t]) => {
558
+ N(t) && N(n[e]) ? n[e] = M(n[e], t) : n[e] = t;
559
+ }), n;
560
+ }
561
+ function N(e) {
562
+ return Object.prototype.toString.call(e) === "[object Object]";
563
+ }
564
+ function P(e) {
565
+ return Array.isArray(e) ? e.flatMap((e) => P(e)) : [e || {}];
566
+ }
567
+ function F(e) {
568
+ return Array.isArray(e) ? e.flatMap((e) => F(e)) : [e || {}];
569
+ }
570
+ function I(e) {
571
+ if (e) return e;
572
+ try {
573
+ if (typeof globalThis < "u" && globalThis.localStorage) return globalThis.localStorage;
574
+ } catch {}
575
+ return le();
576
+ }
577
+ var L = /* @__PURE__ */ new Map();
578
+ function le() {
579
+ return {
580
+ getItem(e) {
581
+ return L.has(e) ? L.get(e) : null;
582
+ },
583
+ setItem(e, t) {
584
+ L.set(e, String(t));
585
+ },
586
+ removeItem(e) {
587
+ L.delete(e);
588
+ }
589
+ };
590
+ }
591
+ //#endregion
592
+ //#region src/core/state-node.js
593
+ var ue = /* @__PURE__ */ new Set([
594
+ "state",
595
+ "render",
596
+ "update"
597
+ ]), de = /* @__PURE__ */ new Set([
598
+ "destroy",
599
+ "getState",
600
+ "setState",
601
+ "subscribe"
602
+ ]);
603
+ function R(e = {}) {
604
+ if (typeof e.render != "function") throw TypeError("vStateNode requires a render function");
605
+ let t = typeof e.state == "function" ? e.state() : { ...e.state || {} }, n = /* @__PURE__ */ new Set(), r = !1, i = null, a = {
606
+ destroy() {
607
+ return r ? a : (r = !0, n.clear(), i && i.destroy(), a);
608
+ },
609
+ getState() {
610
+ return a.state();
611
+ },
612
+ render() {
613
+ if (r) return i;
614
+ if (!i) {
615
+ i = new m("div");
616
+ let e = i.destroy.bind(i);
617
+ i.destroy = () => (n.clear(), e()), o();
618
+ }
619
+ return i;
620
+ },
621
+ setState(e) {
622
+ if (r || e == null) return a;
623
+ let o = typeof e == "function" ? e({ ...t }) : e;
624
+ if (!o || typeof o != "object") return a;
625
+ let c = /* @__PURE__ */ new Set();
626
+ return Object.entries(o).forEach(([e, n]) => {
627
+ t[e] !== n && (t[e] = n, c.add(e));
628
+ }), c.size > 0 && (i && s(c), n.forEach((e) => e(t, a))), a;
629
+ },
630
+ state() {
631
+ return { ...t };
632
+ },
633
+ subscribe(e) {
634
+ if (typeof e != "function") throw TypeError("vStateNode subscriber must be a function");
635
+ return n.add(e), () => n.delete(e);
636
+ }
637
+ };
638
+ for (let t of Object.keys(e)) if (!(ue.has(t) || typeof e[t] != "function")) {
639
+ if (de.has(t)) throw TypeError(`vStateNode config key "${t}" conflicts with the built-in API`);
640
+ a[t] = e[t];
641
+ }
642
+ return a;
643
+ function o() {
644
+ let n = e.render.call(a, t, a);
645
+ i.clearChildren().child(n), i._el && i.commit();
646
+ }
647
+ function s(n) {
648
+ if (typeof e.update == "function") {
649
+ e.update.call(a, t, a, n) === !0 && o();
650
+ return;
651
+ }
652
+ o();
653
+ }
654
+ }
655
+ g(m, { vStateNode: R });
656
+ //#endregion
657
+ //#region src/core/theme.js
658
+ var z = [
659
+ "light",
660
+ "dark",
661
+ "system"
662
+ ], B = "yoya-theme-mode", V = "yoya-theme-name";
663
+ function H() {
664
+ return typeof document > "u" ? null : document.documentElement;
665
+ }
666
+ function U() {
667
+ try {
668
+ return typeof localStorage < "u" && localStorage !== null;
669
+ } catch {
670
+ return !1;
671
+ }
672
+ }
673
+ function W(e = "light", t = {}) {
674
+ let n = z.includes(e) ? e : "light", r = H();
675
+ if (r && (r.dataset.yoyaMode = n), t.persist && U()) try {
676
+ localStorage.setItem(B, n);
677
+ } catch {}
678
+ return n;
679
+ }
680
+ function G() {
681
+ let e = H(), t = e && e.dataset.yoyaMode;
682
+ return z.includes(t) ? t : "light";
683
+ }
684
+ function fe() {
685
+ let e = G();
686
+ return e === "system" ? typeof window > "u" || typeof window.matchMedia != "function" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e;
687
+ }
688
+ function K(e = "", t = {}) {
689
+ let n = H();
690
+ if (!e) {
691
+ if (n && delete n.dataset.yoyaTheme, t.persist && U()) try {
692
+ localStorage.removeItem(V);
693
+ } catch {}
694
+ return "";
695
+ }
696
+ if (n && (n.dataset.yoyaTheme = e), t.persist && U()) try {
697
+ localStorage.setItem(V, e);
698
+ } catch {}
699
+ return e;
700
+ }
701
+ function q() {
702
+ let e = H();
703
+ return e && e.dataset.yoyaTheme || "";
704
+ }
705
+ function pe(e = {}) {
706
+ let t = e.mode, n = e.theme;
707
+ if (t === void 0 && U()) {
708
+ let e = localStorage.getItem(B);
709
+ z.includes(e) && (t = e);
710
+ }
711
+ return n === void 0 && U() && (n = localStorage.getItem(V) || ""), t !== void 0 && W(t, { persist: e.persist }), n !== void 0 && K(n, { persist: e.persist }), {
712
+ mode: G(),
713
+ theme: q()
714
+ };
715
+ }
716
+ //#endregion
717
+ //#region src/html/index.js
718
+ var J = class extends m {}, me = [
719
+ "a",
720
+ "abbr",
721
+ "address",
722
+ "area",
723
+ "article",
724
+ "aside",
725
+ "audio",
726
+ "b",
727
+ "base",
728
+ "bdi",
729
+ "bdo",
730
+ "blockquote",
731
+ "body",
732
+ "br",
733
+ "button",
734
+ "canvas",
735
+ "caption",
736
+ "cite",
737
+ "code",
738
+ "col",
739
+ "colgroup",
740
+ "data",
741
+ "datalist",
742
+ "dd",
743
+ "del",
744
+ "details",
745
+ "dfn",
746
+ "dialog",
747
+ "div",
748
+ "dl",
749
+ "dt",
750
+ "em",
751
+ "embed",
752
+ "fieldset",
753
+ "figcaption",
754
+ "figure",
755
+ "footer",
756
+ "form",
757
+ "h1",
758
+ "h2",
759
+ "h3",
760
+ "h4",
761
+ "h5",
762
+ "h6",
763
+ "head",
764
+ "header",
765
+ "hgroup",
766
+ "hr",
767
+ "html",
768
+ "i",
769
+ "iframe",
770
+ "img",
771
+ "input",
772
+ "ins",
773
+ "kbd",
774
+ "label",
775
+ "legend",
776
+ "li",
777
+ "link",
778
+ "main",
779
+ "map",
780
+ "mark",
781
+ "menu",
782
+ "meta",
783
+ "meter",
784
+ "nav",
785
+ "noscript",
786
+ "object",
787
+ "ol",
788
+ "optgroup",
789
+ "option",
790
+ "output",
791
+ "p",
792
+ "picture",
793
+ "pre",
794
+ "progress",
795
+ "q",
796
+ "rp",
797
+ "rt",
798
+ "ruby",
799
+ "s",
800
+ "samp",
801
+ "script",
802
+ "search",
803
+ "section",
804
+ "select",
805
+ "selectedcontent",
806
+ "slot",
807
+ "small",
808
+ "source",
809
+ "span",
810
+ "strong",
811
+ {
812
+ name: "style",
813
+ tagName: "style",
814
+ aliases: ["styleTag"]
815
+ },
816
+ "sub",
817
+ "summary",
818
+ "sup",
819
+ "table",
820
+ "tbody",
821
+ "td",
822
+ "template",
823
+ "textarea",
824
+ "tfoot",
825
+ "th",
826
+ "thead",
827
+ "time",
828
+ "title",
829
+ "tr",
830
+ "track",
831
+ "u",
832
+ "ul",
833
+ {
834
+ name: "varTag",
835
+ tagName: "var"
836
+ },
837
+ "video",
838
+ "wbr"
839
+ ];
840
+ function Y() {
841
+ return me.reduce((e, t) => {
842
+ let { aliases: n = [], name: r, tagName: i } = Sn(t), a = h(i, J);
843
+ return e[r] = a, n.forEach((t) => {
844
+ e[t] = a;
845
+ }), e;
846
+ }, {});
847
+ }
848
+ var X = Y();
849
+ g(J, X);
850
+ var { a: he, abbr: ge, address: _e, area: ve, article: ye, aside: be, audio: xe, b: Se, base: Ce, bdi: we, bdo: Te, blockquote: Ee, body: De, br: Oe, button: ke, canvas: Ae, caption: je, cite: Me, code: Ne, col: Pe, colgroup: Fe, data: Ie, datalist: Le, dd: Re, del: ze, details: Be, dfn: Ve, dialog: He, div: Ue, dl: We, dt: Ge, em: Ke, embed: qe, fieldset: Je, figcaption: Ye, figure: Xe, footer: Ze, form: Qe, h1: $e, h2: et, h3: tt, h4: nt, h5: rt, h6: it, head: at, header: ot, hgroup: st, hr: ct, html: lt, i: ut, iframe: dt, img: ft, input: pt, ins: mt, kbd: ht, label: gt, legend: _t, li: vt, link: yt, main: bt, map: xt, mark: St, menu: Ct, meta: wt, meter: Tt, nav: Et, noscript: Dt, object: Ot, ol: kt, optgroup: At, option: jt, output: Mt, p: Nt, picture: Pt, pre: Ft, progress: It, q: Lt, rp: Rt, rt: zt, ruby: Bt, s: Vt, samp: Ht, script: Ut, search: Wt, section: Gt, select: Kt, selectedcontent: qt, slot: Jt, small: Yt, source: Xt, span: Zt, strong: Qt, style: $t, styleTag: en, sub: tn, summary: nn, sup: rn, table: an, tbody: on, td: sn, template: cn, textarea: ln, tfoot: un, th: dn, thead: fn, time: pn, title: mn, tr: hn, track: gn, u: _n, ul: vn, varTag: yn, video: bn, wbr: xn } = X;
851
+ function Sn(e) {
852
+ return typeof e == "string" ? {
853
+ name: e,
854
+ tagName: e
855
+ } : e;
856
+ }
857
+ //#endregion
858
+ //#region src/svg/icons.js
859
+ function Cn() {
860
+ return $((e) => {
861
+ e.className("yoya-icon").attr({
862
+ "aria-hidden": "true",
863
+ fill: "none",
864
+ stroke: "currentColor",
865
+ "stroke-linecap": "round",
866
+ "stroke-linejoin": "round",
867
+ "stroke-width": "2",
868
+ viewBox: "0 0 24 24"
869
+ }).styles({
870
+ height: "24px",
871
+ width: "24px"
872
+ }), e.path({ d: "M12 5v14" }), e.path({ d: "m19 12-7 7-7-7" });
873
+ });
874
+ }
875
+ function wn() {
876
+ return $((e) => {
877
+ e.className("yoya-icon").attr({
878
+ "aria-hidden": "true",
879
+ fill: "none",
880
+ stroke: "currentColor",
881
+ "stroke-linecap": "round",
882
+ "stroke-linejoin": "round",
883
+ "stroke-width": "2",
884
+ viewBox: "0 0 24 24"
885
+ }).styles({
886
+ height: "24px",
887
+ width: "24px"
888
+ }), e.path({ d: "M19 12H5" }), e.path({ d: "m12 19-7-7 7-7" });
889
+ });
890
+ }
891
+ function Tn() {
892
+ return $((e) => {
893
+ e.className("yoya-icon").attr({
894
+ "aria-hidden": "true",
895
+ fill: "none",
896
+ stroke: "currentColor",
897
+ "stroke-linecap": "round",
898
+ "stroke-linejoin": "round",
899
+ "stroke-width": "2",
900
+ viewBox: "0 0 24 24"
901
+ }).styles({
902
+ height: "24px",
903
+ width: "24px"
904
+ }), e.path({ d: "M5 12h14" }), e.path({ d: "m12 5 7 7-7 7" });
905
+ });
906
+ }
907
+ function En() {
908
+ return $((e) => {
909
+ e.className("yoya-icon").attr({
910
+ "aria-hidden": "true",
911
+ fill: "none",
912
+ stroke: "currentColor",
913
+ "stroke-linecap": "round",
914
+ "stroke-linejoin": "round",
915
+ "stroke-width": "2",
916
+ viewBox: "0 0 24 24"
917
+ }).styles({
918
+ height: "24px",
919
+ width: "24px"
920
+ }), e.path({ d: "M12 19V5" }), e.path({ d: "m5 12 7-7 7 7" });
921
+ });
922
+ }
923
+ function Dn() {
924
+ return $((e) => {
925
+ e.className("yoya-icon").attr({
926
+ "aria-hidden": "true",
927
+ fill: "none",
928
+ stroke: "currentColor",
929
+ "stroke-linecap": "round",
930
+ "stroke-linejoin": "round",
931
+ "stroke-width": "2",
932
+ viewBox: "0 0 24 24"
933
+ }).styles({
934
+ height: "24px",
935
+ width: "24px"
936
+ }), e.path({ d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }), e.path({ d: "M10.3 21a1.94 1.94 0 0 0 3.4 0" });
937
+ });
938
+ }
939
+ function On() {
940
+ return $((e) => {
941
+ e.className("yoya-icon").attr({
942
+ "aria-hidden": "true",
943
+ fill: "none",
944
+ stroke: "currentColor",
945
+ "stroke-linecap": "round",
946
+ "stroke-linejoin": "round",
947
+ "stroke-width": "2",
948
+ viewBox: "0 0 24 24"
949
+ }).styles({
950
+ height: "24px",
951
+ width: "24px"
952
+ }), e.rect({
953
+ height: "18",
954
+ rx: "2",
955
+ width: "18",
956
+ x: "3",
957
+ y: "4"
958
+ }), e.path({ d: "M16 2v4" }), e.path({ d: "M8 2v4" }), e.path({ d: "M3 10h18" });
959
+ });
960
+ }
961
+ function kn() {
962
+ return $((e) => {
963
+ e.className("yoya-icon").attr({
964
+ "aria-hidden": "true",
965
+ fill: "none",
966
+ stroke: "currentColor",
967
+ "stroke-linecap": "round",
968
+ "stroke-linejoin": "round",
969
+ "stroke-width": "2",
970
+ viewBox: "0 0 24 24"
971
+ }).styles({
972
+ height: "24px",
973
+ width: "24px"
974
+ }), e.path({ d: "M20 6 9 17l-5-5" });
975
+ });
976
+ }
977
+ function An() {
978
+ return $((e) => {
979
+ e.className("yoya-icon").attr({
980
+ "aria-hidden": "true",
981
+ fill: "none",
982
+ stroke: "currentColor",
983
+ "stroke-linecap": "round",
984
+ "stroke-linejoin": "round",
985
+ "stroke-width": "2",
986
+ viewBox: "0 0 24 24"
987
+ }).styles({
988
+ height: "24px",
989
+ width: "24px"
990
+ }), e.path({ d: "m6 9 6 6 6-6" });
991
+ });
992
+ }
993
+ function jn() {
994
+ return $((e) => {
995
+ e.className("yoya-icon").attr({
996
+ "aria-hidden": "true",
997
+ fill: "none",
998
+ stroke: "currentColor",
999
+ "stroke-linecap": "round",
1000
+ "stroke-linejoin": "round",
1001
+ "stroke-width": "2",
1002
+ viewBox: "0 0 24 24"
1003
+ }).styles({
1004
+ height: "24px",
1005
+ width: "24px"
1006
+ }), e.path({ d: "m15 18-6-6 6-6" });
1007
+ });
1008
+ }
1009
+ function Mn() {
1010
+ return $((e) => {
1011
+ e.className("yoya-icon").attr({
1012
+ "aria-hidden": "true",
1013
+ fill: "none",
1014
+ stroke: "currentColor",
1015
+ "stroke-linecap": "round",
1016
+ "stroke-linejoin": "round",
1017
+ "stroke-width": "2",
1018
+ viewBox: "0 0 24 24"
1019
+ }).styles({
1020
+ height: "24px",
1021
+ width: "24px"
1022
+ }), e.path({ d: "m9 18 6-6-6-6" });
1023
+ });
1024
+ }
1025
+ function Nn() {
1026
+ return $((e) => {
1027
+ e.className("yoya-icon").attr({
1028
+ "aria-hidden": "true",
1029
+ fill: "none",
1030
+ stroke: "currentColor",
1031
+ "stroke-linecap": "round",
1032
+ "stroke-linejoin": "round",
1033
+ "stroke-width": "2",
1034
+ viewBox: "0 0 24 24"
1035
+ }).styles({
1036
+ height: "24px",
1037
+ width: "24px"
1038
+ }), e.path({ d: "m18 15-6-6-6 6" });
1039
+ });
1040
+ }
1041
+ function Pn() {
1042
+ return $((e) => {
1043
+ e.className("yoya-icon").attr({
1044
+ "aria-hidden": "true",
1045
+ fill: "none",
1046
+ stroke: "currentColor",
1047
+ "stroke-linecap": "round",
1048
+ "stroke-linejoin": "round",
1049
+ "stroke-width": "2",
1050
+ viewBox: "0 0 24 24"
1051
+ }).styles({
1052
+ height: "24px",
1053
+ width: "24px"
1054
+ }), e.path({ d: "M18 6 6 18" }), e.path({ d: "m6 6 12 12" });
1055
+ });
1056
+ }
1057
+ function Fn() {
1058
+ return $((e) => {
1059
+ e.className("yoya-icon").attr({
1060
+ "aria-hidden": "true",
1061
+ fill: "none",
1062
+ stroke: "currentColor",
1063
+ "stroke-linecap": "round",
1064
+ "stroke-linejoin": "round",
1065
+ "stroke-width": "2",
1066
+ viewBox: "0 0 24 24"
1067
+ }).styles({
1068
+ height: "24px",
1069
+ width: "24px"
1070
+ }), e.path({ d: "m16 18 6-6-6-6" }), e.path({ d: "m8 6-6 6 6 6" });
1071
+ });
1072
+ }
1073
+ function In() {
1074
+ return $((e) => {
1075
+ e.className("yoya-icon").attr({
1076
+ "aria-hidden": "true",
1077
+ fill: "none",
1078
+ stroke: "currentColor",
1079
+ "stroke-linecap": "round",
1080
+ "stroke-linejoin": "round",
1081
+ "stroke-width": "2",
1082
+ viewBox: "0 0 24 24"
1083
+ }).styles({
1084
+ height: "24px",
1085
+ width: "24px"
1086
+ }), e.rect({
1087
+ height: "14",
1088
+ rx: "2",
1089
+ width: "14",
1090
+ x: "8",
1091
+ y: "8"
1092
+ }), e.path({ d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" });
1093
+ });
1094
+ }
1095
+ function Ln() {
1096
+ return $((e) => {
1097
+ e.className("yoya-icon").attr({
1098
+ "aria-hidden": "true",
1099
+ fill: "none",
1100
+ stroke: "currentColor",
1101
+ "stroke-linecap": "round",
1102
+ "stroke-linejoin": "round",
1103
+ "stroke-width": "2",
1104
+ viewBox: "0 0 24 24"
1105
+ }).styles({
1106
+ height: "24px",
1107
+ width: "24px"
1108
+ }), e.path({ d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), e.path({ d: "m7 10 5 5 5-5" }), e.path({ d: "M12 15V3" });
1109
+ });
1110
+ }
1111
+ function Rn() {
1112
+ return $((e) => {
1113
+ e.className("yoya-icon").attr({
1114
+ "aria-hidden": "true",
1115
+ fill: "none",
1116
+ stroke: "currentColor",
1117
+ "stroke-linecap": "round",
1118
+ "stroke-linejoin": "round",
1119
+ "stroke-width": "2",
1120
+ viewBox: "0 0 24 24"
1121
+ }).styles({
1122
+ height: "24px",
1123
+ width: "24px"
1124
+ }), e.path({ d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z" });
1125
+ });
1126
+ }
1127
+ function zn() {
1128
+ return $((e) => {
1129
+ e.className("yoya-icon").attr({
1130
+ "aria-hidden": "true",
1131
+ fill: "none",
1132
+ stroke: "currentColor",
1133
+ "stroke-linecap": "round",
1134
+ "stroke-linejoin": "round",
1135
+ "stroke-width": "2",
1136
+ viewBox: "0 0 24 24"
1137
+ }).styles({
1138
+ height: "24px",
1139
+ width: "24px"
1140
+ }), e.path({ d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }), e.path({ d: "m15 3 6 6" }), e.path({ d: "m21 3-9 9" });
1141
+ });
1142
+ }
1143
+ function Bn() {
1144
+ return $((e) => {
1145
+ e.className("yoya-icon").attr({
1146
+ "aria-hidden": "true",
1147
+ fill: "none",
1148
+ stroke: "currentColor",
1149
+ "stroke-linecap": "round",
1150
+ "stroke-linejoin": "round",
1151
+ "stroke-width": "2",
1152
+ viewBox: "0 0 24 24"
1153
+ }).styles({
1154
+ height: "24px",
1155
+ width: "24px"
1156
+ }), e.path({ d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }), e.circle({
1157
+ cx: "12",
1158
+ cy: "12",
1159
+ r: "3"
1160
+ });
1161
+ });
1162
+ }
1163
+ function Vn() {
1164
+ return $((e) => {
1165
+ e.className("yoya-icon").attr({
1166
+ "aria-hidden": "true",
1167
+ fill: "none",
1168
+ stroke: "currentColor",
1169
+ "stroke-linecap": "round",
1170
+ "stroke-linejoin": "round",
1171
+ "stroke-width": "2",
1172
+ viewBox: "0 0 24 24"
1173
+ }).styles({
1174
+ height: "24px",
1175
+ width: "24px"
1176
+ }), e.path({ d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }), e.path({ d: "M14 2v4a2 2 0 0 0 2 2h4" });
1177
+ });
1178
+ }
1179
+ function Hn() {
1180
+ return $((e) => {
1181
+ e.className("yoya-icon").attr({
1182
+ "aria-hidden": "true",
1183
+ fill: "none",
1184
+ stroke: "currentColor",
1185
+ "stroke-linecap": "round",
1186
+ "stroke-linejoin": "round",
1187
+ "stroke-width": "2",
1188
+ viewBox: "0 0 24 24"
1189
+ }).styles({
1190
+ height: "24px",
1191
+ width: "24px"
1192
+ }), e.path({ d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" });
1193
+ });
1194
+ }
1195
+ function Un() {
1196
+ return $((e) => {
1197
+ e.className("yoya-icon").attr({
1198
+ "aria-hidden": "true",
1199
+ fill: "none",
1200
+ stroke: "currentColor",
1201
+ "stroke-linecap": "round",
1202
+ "stroke-linejoin": "round",
1203
+ "stroke-width": "2",
1204
+ viewBox: "0 0 24 24"
1205
+ }).styles({
1206
+ height: "24px",
1207
+ width: "24px"
1208
+ }), e.path({ d: "m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2" });
1209
+ });
1210
+ }
1211
+ function Wn() {
1212
+ return $((e) => {
1213
+ e.className("yoya-icon").attr({
1214
+ "aria-hidden": "true",
1215
+ fill: "none",
1216
+ stroke: "currentColor",
1217
+ "stroke-linecap": "round",
1218
+ "stroke-linejoin": "round",
1219
+ "stroke-width": "2",
1220
+ viewBox: "0 0 24 24"
1221
+ }).styles({
1222
+ height: "24px",
1223
+ width: "24px"
1224
+ }), e.path({ d: "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" });
1225
+ });
1226
+ }
1227
+ function Gn() {
1228
+ return $((e) => {
1229
+ e.className("yoya-icon").attr({
1230
+ "aria-hidden": "true",
1231
+ fill: "none",
1232
+ stroke: "currentColor",
1233
+ "stroke-linecap": "round",
1234
+ "stroke-linejoin": "round",
1235
+ "stroke-width": "2",
1236
+ viewBox: "0 0 24 24"
1237
+ }).styles({
1238
+ height: "24px",
1239
+ width: "24px"
1240
+ }), e.path({ d: "m3 9.5 9-6.5 9 6.5" }), e.path({ d: "M5 10v10h5v-6h4v6h5V10" });
1241
+ });
1242
+ }
1243
+ function Kn() {
1244
+ return $((e) => {
1245
+ e.className("yoya-icon").attr({
1246
+ "aria-hidden": "true",
1247
+ fill: "none",
1248
+ stroke: "currentColor",
1249
+ "stroke-linecap": "round",
1250
+ "stroke-linejoin": "round",
1251
+ "stroke-width": "2",
1252
+ viewBox: "0 0 24 24"
1253
+ }).styles({
1254
+ height: "24px",
1255
+ width: "24px"
1256
+ }), e.circle({
1257
+ cx: "12",
1258
+ cy: "12",
1259
+ r: "10"
1260
+ }), e.path({ d: "M12 16v-4" }), e.path({ d: "M12 8h.01" });
1261
+ });
1262
+ }
1263
+ function qn() {
1264
+ return $((e) => {
1265
+ e.className("yoya-icon").attr({
1266
+ "aria-hidden": "true",
1267
+ fill: "none",
1268
+ stroke: "currentColor",
1269
+ "stroke-linecap": "round",
1270
+ "stroke-linejoin": "round",
1271
+ "stroke-width": "2",
1272
+ viewBox: "0 0 24 24"
1273
+ }).styles({
1274
+ height: "24px",
1275
+ width: "24px"
1276
+ }), e.rect({
1277
+ height: "11",
1278
+ rx: "2",
1279
+ width: "18",
1280
+ x: "3",
1281
+ y: "11"
1282
+ }), e.path({ d: "M7 11V7a5 5 0 0 1 10 0v4" });
1283
+ });
1284
+ }
1285
+ function Jn() {
1286
+ return $((e) => {
1287
+ e.className("yoya-icon").attr({
1288
+ "aria-hidden": "true",
1289
+ fill: "none",
1290
+ stroke: "currentColor",
1291
+ "stroke-linecap": "round",
1292
+ "stroke-linejoin": "round",
1293
+ "stroke-width": "2",
1294
+ viewBox: "0 0 24 24"
1295
+ }).styles({
1296
+ height: "24px",
1297
+ width: "24px"
1298
+ }), e.path({ d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }), e.path({ d: "m16 17 5-5-5-5" }), e.path({ d: "M21 12H9" });
1299
+ });
1300
+ }
1301
+ function Yn() {
1302
+ return $((e) => {
1303
+ e.className("yoya-icon").attr({
1304
+ "aria-hidden": "true",
1305
+ fill: "none",
1306
+ stroke: "currentColor",
1307
+ "stroke-linecap": "round",
1308
+ "stroke-linejoin": "round",
1309
+ "stroke-width": "2",
1310
+ viewBox: "0 0 24 24"
1311
+ }).styles({
1312
+ height: "24px",
1313
+ width: "24px"
1314
+ }), e.rect({
1315
+ height: "16",
1316
+ rx: "2",
1317
+ width: "20",
1318
+ x: "2",
1319
+ y: "4"
1320
+ }), e.path({ d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" });
1321
+ });
1322
+ }
1323
+ function Xn() {
1324
+ return $((e) => {
1325
+ e.className("yoya-icon").attr({
1326
+ "aria-hidden": "true",
1327
+ fill: "none",
1328
+ stroke: "currentColor",
1329
+ "stroke-linecap": "round",
1330
+ "stroke-linejoin": "round",
1331
+ "stroke-width": "2",
1332
+ viewBox: "0 0 24 24"
1333
+ }).styles({
1334
+ height: "24px",
1335
+ width: "24px"
1336
+ }), e.path({ d: "M4 6h16" }), e.path({ d: "M4 12h16" }), e.path({ d: "M4 18h16" });
1337
+ });
1338
+ }
1339
+ function Zn() {
1340
+ return $((e) => {
1341
+ e.className("yoya-icon").attr({
1342
+ "aria-hidden": "true",
1343
+ fill: "none",
1344
+ stroke: "currentColor",
1345
+ "stroke-linecap": "round",
1346
+ "stroke-linejoin": "round",
1347
+ "stroke-width": "2",
1348
+ viewBox: "0 0 24 24"
1349
+ }).styles({
1350
+ height: "24px",
1351
+ width: "24px"
1352
+ }), e.path({ d: "M5 12h14" });
1353
+ });
1354
+ }
1355
+ function Qn() {
1356
+ return $((e) => {
1357
+ e.className("yoya-icon").attr({
1358
+ "aria-hidden": "true",
1359
+ fill: "none",
1360
+ stroke: "currentColor",
1361
+ "stroke-linecap": "round",
1362
+ "stroke-linejoin": "round",
1363
+ "stroke-width": "2",
1364
+ viewBox: "0 0 24 24"
1365
+ }).styles({
1366
+ height: "24px",
1367
+ width: "24px"
1368
+ }), e.circle({
1369
+ cx: "5",
1370
+ cy: "12",
1371
+ r: "1",
1372
+ fill: "currentColor"
1373
+ }), e.circle({
1374
+ cx: "12",
1375
+ cy: "12",
1376
+ r: "1",
1377
+ fill: "currentColor"
1378
+ }), e.circle({
1379
+ cx: "19",
1380
+ cy: "12",
1381
+ r: "1",
1382
+ fill: "currentColor"
1383
+ });
1384
+ });
1385
+ }
1386
+ function $n() {
1387
+ return $((e) => {
1388
+ e.className("yoya-icon").attr({
1389
+ "aria-hidden": "true",
1390
+ fill: "none",
1391
+ stroke: "currentColor",
1392
+ "stroke-linecap": "round",
1393
+ "stroke-linejoin": "round",
1394
+ "stroke-width": "2",
1395
+ viewBox: "0 0 24 24"
1396
+ }).styles({
1397
+ height: "24px",
1398
+ width: "24px"
1399
+ }), e.path({ d: "M5 12h14" }), e.path({ d: "M12 5v14" });
1400
+ });
1401
+ }
1402
+ function er() {
1403
+ return $((e) => {
1404
+ e.className("yoya-icon").attr({
1405
+ "aria-hidden": "true",
1406
+ fill: "none",
1407
+ stroke: "currentColor",
1408
+ "stroke-linecap": "round",
1409
+ "stroke-linejoin": "round",
1410
+ "stroke-width": "2",
1411
+ viewBox: "0 0 24 24"
1412
+ }).styles({
1413
+ height: "24px",
1414
+ width: "24px"
1415
+ }), e.path({ d: "M3 12a9 9 0 0 1 15-6.7L21 8" }), e.path({ d: "M21 3v5h-5" }), e.path({ d: "M21 12a9 9 0 0 1-15 6.7L3 16" }), e.path({ d: "M3 21v-5h5" });
1416
+ });
1417
+ }
1418
+ function tr() {
1419
+ return $((e) => {
1420
+ e.className("yoya-icon").attr({
1421
+ "aria-hidden": "true",
1422
+ fill: "none",
1423
+ stroke: "currentColor",
1424
+ "stroke-linecap": "round",
1425
+ "stroke-linejoin": "round",
1426
+ "stroke-width": "2",
1427
+ viewBox: "0 0 24 24"
1428
+ }).styles({
1429
+ height: "24px",
1430
+ width: "24px"
1431
+ }), e.circle({
1432
+ cx: "11",
1433
+ cy: "11",
1434
+ r: "7"
1435
+ }), e.path({ d: "m20 20-4-4" });
1436
+ });
1437
+ }
1438
+ function nr() {
1439
+ return $((e) => {
1440
+ e.className("yoya-icon").attr({
1441
+ "aria-hidden": "true",
1442
+ fill: "none",
1443
+ stroke: "currentColor",
1444
+ "stroke-linecap": "round",
1445
+ "stroke-linejoin": "round",
1446
+ "stroke-width": "2",
1447
+ viewBox: "0 0 24 24"
1448
+ }).styles({
1449
+ height: "24px",
1450
+ width: "24px"
1451
+ }), e.circle({
1452
+ cx: "12",
1453
+ cy: "12",
1454
+ r: "3"
1455
+ }), e.path({ d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2Z" });
1456
+ });
1457
+ }
1458
+ function rr() {
1459
+ return $((e) => {
1460
+ e.className("yoya-icon").attr({
1461
+ "aria-hidden": "true",
1462
+ fill: "none",
1463
+ stroke: "currentColor",
1464
+ "stroke-linecap": "round",
1465
+ "stroke-linejoin": "round",
1466
+ "stroke-width": "2",
1467
+ viewBox: "0 0 24 24"
1468
+ }).styles({
1469
+ height: "24px",
1470
+ width: "24px"
1471
+ }), e.path({
1472
+ d: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
1473
+ fill: "currentColor",
1474
+ stroke: "none"
1475
+ });
1476
+ });
1477
+ }
1478
+ function ir() {
1479
+ return $((e) => {
1480
+ e.className("yoya-icon").attr({
1481
+ "aria-hidden": "true",
1482
+ fill: "none",
1483
+ stroke: "currentColor",
1484
+ "stroke-linecap": "round",
1485
+ "stroke-linejoin": "round",
1486
+ "stroke-width": "2",
1487
+ viewBox: "0 0 24 24"
1488
+ }).styles({
1489
+ height: "24px",
1490
+ width: "24px"
1491
+ }), e.path({ d: "M3 6h18" }), e.path({ d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }), e.path({ d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }), e.path({ d: "M10 10v6" }), e.path({ d: "M14 10v6" });
1492
+ });
1493
+ }
1494
+ function ar() {
1495
+ return $((e) => {
1496
+ e.className("yoya-icon").attr({
1497
+ "aria-hidden": "true",
1498
+ fill: "none",
1499
+ stroke: "currentColor",
1500
+ "stroke-linecap": "round",
1501
+ "stroke-linejoin": "round",
1502
+ "stroke-width": "2",
1503
+ viewBox: "0 0 24 24"
1504
+ }).styles({
1505
+ height: "24px",
1506
+ width: "24px"
1507
+ }), e.path({ d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), e.path({ d: "m17 8-5-5-5 5" }), e.path({ d: "M12 3v12" });
1508
+ });
1509
+ }
1510
+ function or() {
1511
+ return $((e) => {
1512
+ e.className("yoya-icon").attr({
1513
+ "aria-hidden": "true",
1514
+ fill: "none",
1515
+ stroke: "currentColor",
1516
+ "stroke-linecap": "round",
1517
+ "stroke-linejoin": "round",
1518
+ "stroke-width": "2",
1519
+ viewBox: "0 0 24 24"
1520
+ }).styles({
1521
+ height: "24px",
1522
+ width: "24px"
1523
+ }), e.path({ d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }), e.circle({
1524
+ cx: "12",
1525
+ cy: "7",
1526
+ r: "4"
1527
+ });
1528
+ });
1529
+ }
1530
+ function sr() {
1531
+ return $((e) => {
1532
+ e.className("yoya-icon").attr({
1533
+ "aria-hidden": "true",
1534
+ fill: "none",
1535
+ stroke: "currentColor",
1536
+ "stroke-linecap": "round",
1537
+ "stroke-linejoin": "round",
1538
+ "stroke-width": "2",
1539
+ viewBox: "0 0 24 24"
1540
+ }).styles({
1541
+ height: "24px",
1542
+ width: "24px"
1543
+ }), e.path({ d: "M21.73 18 13.34 3.7a2 2 0 0 0-3.44 0L2.27 18A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }), e.path({ d: "M12 9v4" }), e.path({ d: "M12 17h.01" });
1544
+ });
1545
+ }
1546
+ function cr() {
1547
+ return $((e) => {
1548
+ e.className("yoya-icon").attr({
1549
+ "aria-hidden": "true",
1550
+ fill: "none",
1551
+ stroke: "currentColor",
1552
+ "stroke-linecap": "round",
1553
+ "stroke-linejoin": "round",
1554
+ "stroke-width": "2",
1555
+ viewBox: "0 0 24 24"
1556
+ }).styles({
1557
+ height: "24px",
1558
+ width: "24px"
1559
+ }), e.circle({
1560
+ cx: "12",
1561
+ cy: "12",
1562
+ r: "4"
1563
+ }), e.path({ d: "M12 2v2" }), e.path({ d: "M12 20v2" }), e.path({ d: "m4.93 4.93 1.41 1.41" }), e.path({ d: "m17.66 17.66 1.41 1.41" }), e.path({ d: "M2 12h2" }), e.path({ d: "M20 12h2" }), e.path({ d: "m6.34 17.66-1.41 1.41" }), e.path({ d: "m19.07 4.93-1.41 1.41" });
1564
+ });
1565
+ }
1566
+ function lr() {
1567
+ return $((e) => {
1568
+ e.className("yoya-icon").attr({
1569
+ "aria-hidden": "true",
1570
+ fill: "none",
1571
+ stroke: "currentColor",
1572
+ "stroke-linecap": "round",
1573
+ "stroke-linejoin": "round",
1574
+ "stroke-width": "2",
1575
+ viewBox: "0 0 24 24"
1576
+ }).styles({
1577
+ height: "24px",
1578
+ width: "24px"
1579
+ }), e.path({ d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" });
1580
+ });
1581
+ }
1582
+ function ur() {
1583
+ return $((e) => {
1584
+ e.className("yoya-icon").attr({
1585
+ "aria-hidden": "true",
1586
+ fill: "none",
1587
+ stroke: "currentColor",
1588
+ "stroke-linecap": "round",
1589
+ "stroke-linejoin": "round",
1590
+ "stroke-width": "2",
1591
+ viewBox: "0 0 24 24"
1592
+ }).styles({
1593
+ height: "24px",
1594
+ width: "24px"
1595
+ }), e.rect({
1596
+ height: "14",
1597
+ rx: "2",
1598
+ width: "20",
1599
+ x: "2",
1600
+ y: "3"
1601
+ }), e.path({ d: "M8 21h8" }), e.path({ d: "M12 17v4" });
1602
+ });
1603
+ }
1604
+ //#endregion
1605
+ //#region src/svg/index.js
1606
+ var Z = "http://www.w3.org/2000/svg", dr = /* @__PURE__ */ new Set([
1607
+ "desc",
1608
+ "metadata",
1609
+ "text",
1610
+ "textPath",
1611
+ "title",
1612
+ "tspan"
1613
+ ]), Q = class e extends m {
1614
+ setup(e) {
1615
+ return typeof e == "string" || typeof e == "number" ? this.child(e) : super.setup(e);
1616
+ }
1617
+ text(...e) {
1618
+ if (dr.has(this._tagName)) {
1619
+ let [t, n] = e;
1620
+ return e.length > 0 && this.child(t), n != null && this.setup(n), this;
1621
+ }
1622
+ return this._svgChild("text", ...e);
1623
+ }
1624
+ style(...e) {
1625
+ let [t, n] = e;
1626
+ return this._tagName === "style" && e.length <= 1 ? (e.length === 1 && this.child(t), this) : e.length <= 1 && fr(t) ? this._svgChild("style", t) : super.style(t, n);
1627
+ }
1628
+ renderDom() {
1629
+ return this._deleted ? null : (this._el || (this._el = document.createElementNS(Z, this._tagName), this._applySnapshotToElement()), this._el);
1630
+ }
1631
+ _syncClassName() {
1632
+ let e = [...this._classes].join(" ");
1633
+ e ? this._attrs.class = e : delete this._attrs.class, this._el && (e ? this._el.setAttribute("class", e) : this._el.removeAttribute("class"));
1634
+ }
1635
+ _svgChild(t, ...n) {
1636
+ let r = new e(t);
1637
+ return n.forEach((e) => {
1638
+ e != null && r.setup(e);
1639
+ }), this.child(r);
1640
+ }
1641
+ };
1642
+ function fr(e) {
1643
+ return e == null || typeof e == "function" || typeof e == "string" || typeof e == "number" || Array.isArray(e);
1644
+ }
1645
+ var pr = /* @__PURE__ */ "animate.animateMotion.animateTransform.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.a.script.style.switch.text.title.symbol.textPath.tspan.use.view".split(".");
1646
+ function mr(e) {
1647
+ return function(...t) {
1648
+ let n = new Q(e);
1649
+ return e === "svg" && n.style("display", "block"), t.forEach((e) => {
1650
+ e != null && n.setup(e);
1651
+ }), n;
1652
+ };
1653
+ }
1654
+ function hr() {
1655
+ return pr.reduce((e, t) => {
1656
+ let { aliases: n = [], name: r, tagName: i } = _r(t), a = mr(i);
1657
+ return e[r] = a, n.forEach((t) => {
1658
+ e[t] = a;
1659
+ }), e;
1660
+ }, {});
1661
+ }
1662
+ var $ = mr("svg"), gr = hr();
1663
+ g(J, { svg: $ }), g(Q, {
1664
+ svg: $,
1665
+ ...gr
1666
+ });
1667
+ function _r(e) {
1668
+ return typeof e == "string" ? {
1669
+ name: e,
1670
+ tagName: e
1671
+ } : e;
1672
+ }
1673
+ //#endregion
1674
+ export { Cn as ArrowDownOutlined, wn as ArrowLeftOutlined, Tn as ArrowRightOutlined, En as ArrowUpOutlined, Dn as BellOutlined, On as CalendarOutlined, kn as CheckOutlined, An as ChevronDownOutlined, jn as ChevronLeftOutlined, Mn as ChevronRightOutlined, Nn as ChevronUpOutlined, _ as ClientOnlyNode, Pn as CloseOutlined, Fn as CodeOutlined, ee as ComponentNode, In as CopyOutlined, Ln as DownloadOutlined, Rn as EditOutlined, m as ElementNode, zn as ExternalOutlined, Bn as EyeOutlined, Vn as FileOutlined, Un as FolderOpenOutlined, Hn as FolderOutlined, Wn as HeartOutlined, Gn as HomeOutlined, J as HtmlElementNode, x as I18n, S as I18nTextNode, Kn as InfoOutlined, qn as LockOutlined, Jn as LogoutOutlined, Yn as MailOutlined, Xn as MenuOutlined, Zn as MinusOutlined, ur as MonitorOutlined, lr as MoonOutlined, Qn as MoreHorizontalOutlined, $n as PlusOutlined, er as RefreshOutlined, Z as SVG_NAMESPACE, tr as SearchOutlined, nr as SettingsOutlined, rr as StarOutlined, cr as SunOutlined, Q as SvgElementNode, l as TextNode, l as VTextNode, l as ViewTextNode, ir as TrashOutlined, ar as UploadOutlined, or as UserOutlined, c as ViewNode, sr as WarningOutlined, he as a, ge as abbr, _e as address, p as applyElementOptions, ve as area, ye as article, be as aside, xe as audio, Se as b, Ce as base, we as bdi, Te as bdo, Ee as blockquote, De as body, Oe as br, ke as button, Ae as canvas, je as caption, Me as cite, Ne as code, Pe as col, Fe as colgroup, h as createElementFactory, Y as createHtmlFactories, C as createI18n, Ie as data, Le as datalist, Re as dd, ze as del, Be as details, Ve as dfn, He as dialog, Ue as div, We as dl, Ge as dt, Ke as em, qe as embed, r as escapeHtml, Je as fieldset, Ye as figcaption, Xe as figure, Ze as footer, Qe as form, O as getI18n, se as getPersistedI18nLocales, G as getYoyaMode, q as getYoyaTheme, $e as h1, et as h2, tt as h3, nt as h4, rt as h5, it as h6, at as head, ot as header, st as hgroup, ct as hr, lt as html, ut as i, w as i18n, ne as i18nText, dt as iframe, ft as img, pe as initYoyaTheme, pt as input, mt as ins, E as installI18nStringShortcut, ht as kbd, gt as label, _t as legend, vt as li, yt as link, oe as listI18n, bt as main, xt as map, St as mark, Ct as menu, wt as meta, Tt as meter, Et as nav, d as normalizeChild, f as normalizeSetupArguments, Dt as noscript, Ot as object, kt as ol, At as optgroup, jt as option, Mt as output, Nt as p, Pt as picture, Ft as pre, It as progress, Lt as q, g as registerChildFactories, D as registerI18n, n as resolveTarget, fe as resolveYoyaMode, Rt as rp, zt as rt, Bt as ruby, Vt as s, Ht as samp, Ut as script, Wt as search, Gt as section, Kt as select, qt as selectedcontent, W as setYoyaMode, K as setYoyaTheme, Jt as slot, Yt as small, Xt as source, Zt as span, Qt as strong, $t as style, en as styleTag, tn as sub, nn as summary, rn as sup, $ as svg, an as table, on as tbody, sn as td, cn as template, u as text, u as vText, ln as textarea, un as tfoot, dn as th, fn as thead, pn as time, mn as title, hn as tr, gn as track, _n as u, vn as ul, ae as unregisterI18n, te as vClientOnly, R as vStateNode, yn as varTag, bn as video, xn as wbr, re as withI18nStringShortcut };