@wsxjs/wsx-base-components 0.0.28 → 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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { autoRegister as te, WebComponent as J, jsx as $, LightComponent as _e } from "@wsxjs/wsx-core";
1
+ import { autoRegister as te, WebComponent as J, jsx as $, LightComponent as Ce } from "@wsxjs/wsx-core";
2
2
  const ft = ':host{position:relative;display:inline-flex;padding:.25em .625em;box-sizing:border-box;vertical-align:middle;line-height:1.8;overflow:hidden;align-items:center;justify-content:center;font-size:14px;color:var(--fontColor, #333);border-radius:var(--borderRadius, .25em);background:var(--fontColor, #333);transition:background .3s,box-shadow .3s,border-color .3s,color .3s}:host([size="xxxs"]){padding:.03125em .0625em;font-size:6px;line-height:1;min-width:10px;min-height:8px;border-radius:1px}:host([size="xxs"]){padding:.0625em .125em;font-size:8px;line-height:1.1;min-width:14px;min-height:12px;border-radius:2px}:host([size="xs"]){padding:.125em .25em;font-size:10px;line-height:1.2;min-width:18px;min-height:16px;border-radius:3px}:host([size="sm"]){padding:.25em .5em;font-size:12px;line-height:1.4;min-width:24px;min-height:20px;border-radius:4px}:host([size="md"]){padding:.375em .75em;font-size:14px;line-height:1.5;min-width:32px;min-height:28px;border-radius:6px}:host([size="lg"]){padding:.5em 1em;font-size:14px;line-height:1.6;min-width:40px;min-height:32px;border-radius:6px}:host([size="xl"]){padding:.625em 1.25em;font-size:16px;line-height:1.6;min-width:48px;min-height:40px;border-radius:8px}:host([shape="circle"]){border-radius:50%}:host([disabled]),:host([loading]){pointer-events:none;opacity:.6}:host([block]){display:flex}:host([disabled]:not([variant])){background:#0000001a}:host([disabled]) .btn,:host([loading]) .btn{cursor:not-allowed;pointer-events:all}:host(:not([variant="primary"]):not([variant="danger"]):not([disabled]):hover),:host(:not([variant="primary"]):not([variant="danger"]):focus-within),:host([variant="flat"][focus]){color:var(--themeColor, #42b983);border-color:var(--themeColor, #42b983)}:host(:not([variant="primary"]):not([variant="danger"])) .btn:after{background-image:radial-gradient(circle,var(--themeColor, #42b983) 10%,transparent 10.01%)}:host([variant="primary"]){color:#fff;background:var(--themeBackground, var(--themeColor, #42b983))}:host([variant="danger"]){color:#fff;background:var(--themeBackground, var(--dangerColor, #ff7875))}:host([variant="dashed"]){border-style:dashed}:host([variant="flat"]),:host([variant="primary"]),:host([variant="danger"]){border:0;padding:calc(.25em + 1px) calc(.625em + 1px)}:host([variant="flat"]) .btn:before{content:"";position:absolute;background:var(--themeColor, #42b983);pointer-events:none;left:0;right:0;top:0;bottom:0;opacity:0;transition:.3s}:host([variant="flat"]:not([disabled]):hover) .btn:before{opacity:.1}:host(:not([disabled]):hover){z-index:1}:host([variant="flat"]:focus-within) .btn:before,:host([variant="flat"][focus]) .btn:before{opacity:.2}.btn{background:none;outline:0;border:0;position:absolute;left:0;top:0;width:100%;height:100%;padding:0;-webkit-user-select:none;user-select:none;cursor:unset}.loading{margin-right:.35em}::-moz-focus-inner{border:0}.btn:before{content:"";display:block;position:absolute;width:100%;height:100%;left:0;top:0;transition:.2s;background:#fff;opacity:0}:host(:not([disabled]):active) .btn:before{opacity:.2}.btn:after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--x, 0);top:var(--y, 0);pointer-events:none;background-image:radial-gradient(circle,#fff 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}.btn:not([disabled]):active:after{transform:translate(-50%,-50%) scale(0);opacity:.3;transition:0s}.icon{margin-right:.35em;transition:none}:host(:empty) .icon{margin:auto}:host(:empty){padding:.65em}:host([type="flat"]:empty),:host([type="primary"]:empty){padding:calc(.65em + 1px)}::slotted(.icon){transition:none}:host([href]){cursor:pointer}';
3
3
  var Ie;
4
4
  let Fe, Re;
@@ -20,12 +20,12 @@ function mt(t, e, r, o, S, T) {
20
20
  return i;
21
21
  }
22
22
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
23
- function C(g) {
23
+ function _(g) {
24
24
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
25
25
  }
26
- var k, _ = l[0], I = l[3], M = !p;
26
+ var k, C = l[0], I = l[3], M = !p;
27
27
  if (!M) {
28
- d || Array.isArray(_) || (_ = [_]);
28
+ d || Array.isArray(C) || (C = [C]);
29
29
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
30
30
  w ? (b || u ? s = { get: he(function() {
31
31
  return I(this);
@@ -33,8 +33,8 @@ function mt(t, e, r, o, S, T) {
33
33
  l[4](this, g);
34
34
  } } : s[x] = I, b || he(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
35
35
  }
36
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
37
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
36
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
37
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
38
38
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
39
39
  m(R, "An initializer", "be", !0), h.push(R);
40
40
  }).bind(null, Y) };
@@ -43,8 +43,8 @@ function mt(t, e, r, o, S, T) {
43
43
  else {
44
44
  var P, H;
45
45
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
46
- return C(g), s.value;
47
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
46
+ return _(g), s.value;
47
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
48
48
  return g[a];
49
49
  }, (n < 2 || n === 4) && (H = function(g, R) {
50
50
  g[a] = R;
@@ -80,13 +80,13 @@ function mt(t, e, r, o, S, T) {
80
80
  for (var b = 0; b < l.length; b++) {
81
81
  var u = l[b];
82
82
  if (Array.isArray(u)) {
83
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
83
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
84
84
  if (!M && !k) {
85
85
  var F = y.get(s);
86
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
86
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
87
87
  y.set(s, !(f > 2) || f);
88
88
  }
89
- D(I ? i : i.prototype, u, _, k ? "#" + C : Le(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
89
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : Le(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
90
90
  }
91
91
  }
92
92
  return w(n), w(c), h;
@@ -149,7 +149,7 @@ class xt extends J {
149
149
  this.btnElement = S, S && setTimeout(() => this.updateButtonState(), 0);
150
150
  } }, this.renderContent()), o = /* @__PURE__ */ $("button", { type: this.type || "button", disabled: this.disabled, className: "btn", onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown, ref: (S) => {
151
151
  this.btnElement = S, S && setTimeout(() => this.updateButtonState(), 0);
152
- }, "data-wsx-key": "Button-button-text-0" }, this.renderContent());
152
+ } }, this.renderContent());
153
153
  return /* @__PURE__ */ $("div", { className: "wsx-button-container" }, e ? r : o);
154
154
  }
155
155
  renderContent() {
@@ -282,12 +282,12 @@ function Et(t, e, r, o, S, T) {
282
282
  return i;
283
283
  }
284
284
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
285
- function C(g) {
285
+ function _(g) {
286
286
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
287
287
  }
288
- var k, _ = l[0], I = l[3], M = !p;
288
+ var k, C = l[0], I = l[3], M = !p;
289
289
  if (!M) {
290
- d || Array.isArray(_) || (_ = [_]);
290
+ d || Array.isArray(C) || (C = [C]);
291
291
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
292
292
  w ? (b || u ? s = { get: ge(function() {
293
293
  return I(this);
@@ -295,8 +295,8 @@ function Et(t, e, r, o, S, T) {
295
295
  l[4](this, g);
296
296
  } } : s[x] = I, b || ge(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
297
297
  }
298
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
299
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
298
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
299
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
300
300
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
301
301
  m(R, "An initializer", "be", !0), h.push(R);
302
302
  }).bind(null, Y) };
@@ -305,8 +305,8 @@ function Et(t, e, r, o, S, T) {
305
305
  else {
306
306
  var P, H;
307
307
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
308
- return C(g), s.value;
309
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
308
+ return _(g), s.value;
309
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
310
310
  return g[a];
311
311
  }, (n < 2 || n === 4) && (H = function(g, R) {
312
312
  g[a] = R;
@@ -342,13 +342,13 @@ function Et(t, e, r, o, S, T) {
342
342
  for (var b = 0; b < l.length; b++) {
343
343
  var u = l[b];
344
344
  if (Array.isArray(u)) {
345
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
345
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
346
346
  if (!M && !k) {
347
347
  var F = y.get(s);
348
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
348
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
349
349
  y.set(s, !(f > 2) || f);
350
350
  }
351
- D(I ? i : i.prototype, u, _, k ? "#" + C : Me(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
351
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : Me(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
352
352
  }
353
353
  }
354
354
  return w(n), w(c), h;
@@ -494,7 +494,7 @@ const be = {
494
494
  function ne(t, e) {
495
495
  return t ? `[${t}] ${e}` : e;
496
496
  }
497
- class Ct {
497
+ class _t {
498
498
  constructor(e, r) {
499
499
  this.name = e, this.level = r, this.levelValue = ce[r], this.isProd = ue();
500
500
  }
@@ -549,7 +549,7 @@ class Ct {
549
549
  }
550
550
  class ze {
551
551
  constructor(e = {}) {
552
- this.name = e.name || be.name, this.currentLevel = e.level || be.level, this.nativeLogger = new Ct(this.name, this.currentLevel);
552
+ this.name = e.name || be.name, this.currentLevel = e.level || be.level, this.nativeLogger = new _t(this.name, this.currentLevel);
553
553
  }
554
554
  debug(e, ...r) {
555
555
  this.nativeLogger.debug(e, ...r);
@@ -591,7 +591,7 @@ function Pe(t, e = {}) {
591
591
  });
592
592
  }
593
593
  const se = "editor-js-text-color-cache";
594
- function _t(t) {
594
+ function Ct(t) {
595
595
  return t.startsWith("var(") && t.endsWith(")");
596
596
  }
597
597
  function It(t) {
@@ -601,7 +601,7 @@ function Ft(t) {
601
601
  return getComputedStyle(document.documentElement).getPropertyValue(t).trim() || t;
602
602
  }
603
603
  function ae(t) {
604
- if (_t(t)) {
604
+ if (Ct(t)) {
605
605
  const e = It(t);
606
606
  return Ft(e);
607
607
  }
@@ -650,12 +650,12 @@ function Mt(t, e, r, o, S, T) {
650
650
  return i;
651
651
  }
652
652
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
653
- function C(g) {
653
+ function _(g) {
654
654
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
655
655
  }
656
- var k, _ = l[0], I = l[3], M = !p;
656
+ var k, C = l[0], I = l[3], M = !p;
657
657
  if (!M) {
658
- d || Array.isArray(_) || (_ = [_]);
658
+ d || Array.isArray(C) || (C = [C]);
659
659
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
660
660
  w ? (b || u ? s = { get: fe(function() {
661
661
  return I(this);
@@ -663,8 +663,8 @@ function Mt(t, e, r, o, S, T) {
663
663
  l[4](this, g);
664
664
  } } : s[x] = I, b || fe(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
665
665
  }
666
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
667
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
666
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
667
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
668
668
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
669
669
  m(R, "An initializer", "be", !0), h.push(R);
670
670
  }).bind(null, Y) };
@@ -673,8 +673,8 @@ function Mt(t, e, r, o, S, T) {
673
673
  else {
674
674
  var P, H;
675
675
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
676
- return C(g), s.value;
677
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
676
+ return _(g), s.value;
677
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
678
678
  return g[a];
679
679
  }, (n < 2 || n === 4) && (H = function(g, R) {
680
680
  g[a] = R;
@@ -710,13 +710,13 @@ function Mt(t, e, r, o, S, T) {
710
710
  for (var b = 0; b < l.length; b++) {
711
711
  var u = l[b];
712
712
  if (Array.isArray(u)) {
713
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
713
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
714
714
  if (!M && !k) {
715
715
  var F = y.get(s);
716
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
716
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
717
717
  y.set(s, !(f > 2) || f);
718
718
  }
719
- D(I ? i : i.prototype, u, _, k ? "#" + C : Ue(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
719
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : Ue(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
720
720
  }
721
721
  }
722
722
  return w(n), w(c), h;
@@ -960,12 +960,12 @@ function Gt(t, e, r, o, S, T) {
960
960
  return i;
961
961
  }
962
962
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
963
- function C(g) {
963
+ function _(g) {
964
964
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
965
965
  }
966
- var k, _ = l[0], I = l[3], M = !p;
966
+ var k, C = l[0], I = l[3], M = !p;
967
967
  if (!M) {
968
- d || Array.isArray(_) || (_ = [_]);
968
+ d || Array.isArray(C) || (C = [C]);
969
969
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
970
970
  w ? (b || u ? s = { get: me(function() {
971
971
  return I(this);
@@ -973,8 +973,8 @@ function Gt(t, e, r, o, S, T) {
973
973
  l[4](this, g);
974
974
  } } : s[x] = I, b || me(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
975
975
  }
976
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
977
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
976
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
977
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
978
978
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
979
979
  m(R, "An initializer", "be", !0), h.push(R);
980
980
  }).bind(null, Y) };
@@ -983,8 +983,8 @@ function Gt(t, e, r, o, S, T) {
983
983
  else {
984
984
  var P, H;
985
985
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
986
- return C(g), s.value;
987
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
986
+ return _(g), s.value;
987
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
988
988
  return g[a];
989
989
  }, (n < 2 || n === 4) && (H = function(g, R) {
990
990
  g[a] = R;
@@ -1020,13 +1020,13 @@ function Gt(t, e, r, o, S, T) {
1020
1020
  for (var b = 0; b < l.length; b++) {
1021
1021
  var u = l[b];
1022
1022
  if (Array.isArray(u)) {
1023
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
1023
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
1024
1024
  if (!M && !k) {
1025
1025
  var F = y.get(s);
1026
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
1026
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
1027
1027
  y.set(s, !(f > 2) || f);
1028
1028
  }
1029
- D(I ? i : i.prototype, u, _, k ? "#" + C : Ye(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1029
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : Ye(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1030
1030
  }
1031
1031
  }
1032
1032
  return w(n), w(c), h;
@@ -1076,7 +1076,7 @@ class Kt extends J {
1076
1076
  }), this.initTheme();
1077
1077
  }
1078
1078
  render() {
1079
- return /* @__PURE__ */ $("div", { class: "theme-switcher-container" }, /* @__PURE__ */ $("button", { class: "theme-switcher-btn", "data-theme": this.currentTheme, onClick: this.toggleTheme, title: `当前主题: ${this.getThemeLabel()}`, "data-wsx-key": "ThemeSwitcher-button-text-1" }, /* @__PURE__ */ $("span", { class: "theme-switcher-icon" }, this.getThemeIcon())));
1079
+ return /* @__PURE__ */ $("div", { class: "theme-switcher-container" }, /* @__PURE__ */ $("button", { class: "theme-switcher-btn", "data-theme": this.currentTheme, onClick: this.toggleTheme, title: `当前主题: ${this.getThemeLabel()}` }, /* @__PURE__ */ $("span", { class: "theme-switcher-icon" }, this.getThemeIcon())));
1080
1080
  }
1081
1081
  getThemeIcon() {
1082
1082
  const r = document.documentElement.classList.contains("dark");
@@ -1129,12 +1129,12 @@ function Zt(t, e, r, o, S, T) {
1129
1129
  return i;
1130
1130
  }
1131
1131
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
1132
- function C(g) {
1132
+ function _(g) {
1133
1133
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
1134
1134
  }
1135
- var k, _ = l[0], I = l[3], M = !p;
1135
+ var k, C = l[0], I = l[3], M = !p;
1136
1136
  if (!M) {
1137
- d || Array.isArray(_) || (_ = [_]);
1137
+ d || Array.isArray(C) || (C = [C]);
1138
1138
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1139
1139
  w ? (b || u ? s = { get: ye(function() {
1140
1140
  return I(this);
@@ -1142,8 +1142,8 @@ function Zt(t, e, r, o, S, T) {
1142
1142
  l[4](this, g);
1143
1143
  } } : s[x] = I, b || ye(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
1144
1144
  }
1145
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
1146
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1145
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
1146
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1147
1147
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
1148
1148
  m(R, "An initializer", "be", !0), h.push(R);
1149
1149
  }).bind(null, Y) };
@@ -1152,8 +1152,8 @@ function Zt(t, e, r, o, S, T) {
1152
1152
  else {
1153
1153
  var P, H;
1154
1154
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
1155
- return C(g), s.value;
1156
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
1155
+ return _(g), s.value;
1156
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
1157
1157
  return g[a];
1158
1158
  }, (n < 2 || n === 4) && (H = function(g, R) {
1159
1159
  g[a] = R;
@@ -1189,13 +1189,13 @@ function Zt(t, e, r, o, S, T) {
1189
1189
  for (var b = 0; b < l.length; b++) {
1190
1190
  var u = l[b];
1191
1191
  if (Array.isArray(u)) {
1192
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
1192
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
1193
1193
  if (!M && !k) {
1194
1194
  var F = y.get(s);
1195
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
1195
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
1196
1196
  y.set(s, !(f > 2) || f);
1197
1197
  }
1198
- D(I ? i : i.prototype, u, _, k ? "#" + C : qe(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1198
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : qe(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1199
1199
  }
1200
1200
  }
1201
1201
  return w(n), w(c), h;
@@ -1304,7 +1304,7 @@ class Jt extends J {
1304
1304
  }
1305
1305
  render() {
1306
1306
  const e = this.options.find((o) => o.value === this.selectedValue && this.selectedValue !== ""), r = (e == null ? void 0 : e.label) || this.config.placeholder || "Select...";
1307
- return /* @__PURE__ */ $("div", { class: "dropdown-container" }, /* @__PURE__ */ $("button", { ref: (o) => this.buttonElement = o, class: `dropdown-button ${this.isOpen ? "open" : ""} ${this.config.disabled ? "disabled" : ""}`, onClick: this.config.trigger === "click" ? this.toggleDropdown : void 0, onMouseEnter: this.config.trigger === "hover" ? this.openDropdown : void 0, onMouseLeave: this.config.trigger === "hover" ? this.closeDropdown : void 0, disabled: this.config.disabled, "aria-expanded": this.isOpen, "aria-haspopup": "listbox", "data-wsx-key": "Dropdown-button-text-1" }, /* @__PURE__ */ $("span", { class: "dropdown-text" }, r), /* @__PURE__ */ $("span", { class: "dropdown-arrow" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (o) => this.dropdownElement = o, class: `dropdown-menu dropdown-${this.config.position} dropdown-${this.config.align}`, role: "listbox", onMouseEnter: this.config.trigger === "hover" ? this.openDropdown : void 0, onMouseLeave: this.config.trigger === "hover" ? this.closeDropdown : void 0 }, this.options.length === 0 ? /* @__PURE__ */ $("div", { class: "dropdown-empty" }, "No options") : this.options.map((o) => /* @__PURE__ */ $("button", { key: o.value, class: `dropdown-option ${o.value === this.selectedValue && this.selectedValue !== "" ? "selected" : ""} ${o.disabled ? "disabled" : ""}`, onClick: () => !o.disabled && this.selectOption(o.value), role: "option", "aria-selected": o.value === this.selectedValue && this.selectedValue !== "", disabled: o.disabled, "data-wsx-key": "Dropdown-button-text-0" }, o.render ? o.render() : /* @__PURE__ */ $("span", null, o.label)))));
1307
+ return /* @__PURE__ */ $("div", { class: "dropdown-container" }, /* @__PURE__ */ $("button", { ref: (o) => this.buttonElement = o, class: `dropdown-button ${this.isOpen ? "open" : ""} ${this.config.disabled ? "disabled" : ""}`, onClick: this.config.trigger === "click" ? this.toggleDropdown : void 0, onMouseEnter: this.config.trigger === "hover" ? this.openDropdown : void 0, onMouseLeave: this.config.trigger === "hover" ? this.closeDropdown : void 0, disabled: this.config.disabled, "aria-expanded": this.isOpen, "aria-haspopup": "listbox" }, /* @__PURE__ */ $("span", { class: "dropdown-text" }, r), /* @__PURE__ */ $("span", { class: "dropdown-arrow" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (o) => this.dropdownElement = o, class: `dropdown-menu dropdown-${this.config.position} dropdown-${this.config.align}`, role: "listbox", onMouseEnter: this.config.trigger === "hover" ? this.openDropdown : void 0, onMouseLeave: this.config.trigger === "hover" ? this.closeDropdown : void 0 }, this.options.length === 0 ? /* @__PURE__ */ $("div", { class: "dropdown-empty" }, "No options") : this.options.map((o) => /* @__PURE__ */ $("button", { key: o.value, class: `dropdown-option ${o.value === this.selectedValue && this.selectedValue !== "" ? "selected" : ""} ${o.disabled ? "disabled" : ""}`, onClick: () => !o.disabled && this.selectOption(o.value), role: "option", "aria-selected": o.value === this.selectedValue && this.selectedValue !== "", disabled: o.disabled }, o.render ? o.render() : /* @__PURE__ */ $("span", null, o.label)))));
1308
1308
  }
1309
1309
  /**
1310
1310
  * 组件断开连接时清理
@@ -1338,12 +1338,12 @@ function er(t, e, r, o, S, T) {
1338
1338
  return i;
1339
1339
  }
1340
1340
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
1341
- function C(g) {
1341
+ function _(g) {
1342
1342
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
1343
1343
  }
1344
- var k, _ = l[0], I = l[3], M = !p;
1344
+ var k, C = l[0], I = l[3], M = !p;
1345
1345
  if (!M) {
1346
- d || Array.isArray(_) || (_ = [_]);
1346
+ d || Array.isArray(C) || (C = [C]);
1347
1347
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1348
1348
  w ? (b || u ? s = { get: xe(function() {
1349
1349
  return I(this);
@@ -1351,8 +1351,8 @@ function er(t, e, r, o, S, T) {
1351
1351
  l[4](this, g);
1352
1352
  } } : s[x] = I, b || xe(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
1353
1353
  }
1354
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
1355
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1354
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
1355
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1356
1356
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
1357
1357
  m(R, "An initializer", "be", !0), h.push(R);
1358
1358
  }).bind(null, Y) };
@@ -1361,8 +1361,8 @@ function er(t, e, r, o, S, T) {
1361
1361
  else {
1362
1362
  var P, H;
1363
1363
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
1364
- return C(g), s.value;
1365
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
1364
+ return _(g), s.value;
1365
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
1366
1366
  return g[a];
1367
1367
  }, (n < 2 || n === 4) && (H = function(g, R) {
1368
1368
  g[a] = R;
@@ -1398,13 +1398,13 @@ function er(t, e, r, o, S, T) {
1398
1398
  for (var b = 0; b < l.length; b++) {
1399
1399
  var u = l[b];
1400
1400
  if (Array.isArray(u)) {
1401
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
1401
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
1402
1402
  if (!M && !k) {
1403
1403
  var F = y.get(s);
1404
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
1404
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
1405
1405
  y.set(s, !(f > 2) || f);
1406
1406
  }
1407
- D(I ? i : i.prototype, u, _, k ? "#" + C : tt(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1407
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : tt(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1408
1408
  }
1409
1409
  }
1410
1410
  return w(n), w(c), h;
@@ -1576,10 +1576,10 @@ class or extends J {
1576
1576
  const E = this.options.find((A) => A.value === T);
1577
1577
  return /* @__PURE__ */ $("span", { key: T, class: "combobox-tag" }, (E == null ? void 0 : E.label) || T, /* @__PURE__ */ $("button", { class: "combobox-tag-remove", onClick: (A) => {
1578
1578
  A.stopPropagation(), this.removeValue(T);
1579
- }, "data-wsx-key": "Combobox-button-text-3" }, "×"));
1580
- }), o.length > 2 && /* @__PURE__ */ $("span", { class: "combobox-tag-more" }, "+", o.length - 2)), /* @__PURE__ */ $("input", { ref: (T) => this.inputElement = T, type: "text", class: "combobox-input", placeholder: S, value: this.config.searchable && this.isOpen ? this.searchQuery : "", onInput: this.handleInput, onFocus: this.openDropdown, onClick: this.openDropdown, disabled: this.config.disabled, readonly: !this.config.searchable, "data-wsx-key": "Combobox-input-text-1-3" }), /* @__PURE__ */ $("button", { class: `combobox-arrow ${this.isOpen ? "open" : ""}`, onClick: this.toggleDropdown, disabled: this.config.disabled, "data-wsx-key": "Combobox-button-text-1-5" }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (T) => this.dropdownElement = T, class: `combobox-menu combobox-${this.config.position} combobox-${this.config.align}`, role: "listbox" }, e.length === 0 ? /* @__PURE__ */ $("div", { class: "combobox-empty" }, this.config.searchable && this.searchQuery ? "No results found" : "No options") : e.map((T) => {
1579
+ } }, "×"));
1580
+ }), o.length > 2 && /* @__PURE__ */ $("span", { class: "combobox-tag-more" }, "+", o.length - 2)), /* @__PURE__ */ $("input", { ref: (T) => this.inputElement = T, type: "text", class: "combobox-input", placeholder: S, value: this.config.searchable && this.isOpen ? this.searchQuery : "", onInput: this.handleInput, onFocus: this.openDropdown, onClick: this.openDropdown, disabled: this.config.disabled, readonly: !this.config.searchable }), /* @__PURE__ */ $("button", { class: `combobox-arrow ${this.isOpen ? "open" : ""}`, onClick: this.toggleDropdown, disabled: this.config.disabled }, this.isOpen ? "▲" : "▼")), this.isOpen && /* @__PURE__ */ $("div", { ref: (T) => this.dropdownElement = T, class: `combobox-menu combobox-${this.config.position} combobox-${this.config.align}`, role: "listbox" }, e.length === 0 ? /* @__PURE__ */ $("div", { class: "combobox-empty" }, this.config.searchable && this.searchQuery ? "No results found" : "No options") : e.map((T) => {
1581
1581
  const E = r ? o.includes(T.value) : T.value === this.selectedValue;
1582
- return /* @__PURE__ */ $("button", { key: T.value, class: `combobox-option ${E ? "selected" : ""} ${T.disabled ? "disabled" : ""}`, onClick: () => !T.disabled && this.selectOption(T.value), role: "option", "aria-selected": E, disabled: T.disabled, "data-wsx-key": "Combobox-button-text-0" }, r && /* @__PURE__ */ $("span", { class: "combobox-checkbox" }, E ? "✓" : ""), T.render ? T.render() : /* @__PURE__ */ $("span", null, T.label));
1582
+ return /* @__PURE__ */ $("button", { key: T.value, class: `combobox-option ${E ? "selected" : ""} ${T.disabled ? "disabled" : ""}`, onClick: () => !T.disabled && this.selectOption(T.value), role: "option", "aria-selected": E, disabled: T.disabled }, r && /* @__PURE__ */ $("span", { class: "combobox-checkbox" }, E ? "✓" : ""), T.render ? T.render() : /* @__PURE__ */ $("span", null, T.label));
1583
1583
  })));
1584
1584
  }
1585
1585
  /**
@@ -1699,12 +1699,12 @@ function ir(t, e, r, o, S, T) {
1699
1699
  return i;
1700
1700
  }
1701
1701
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
1702
- function C(g) {
1702
+ function _(g) {
1703
1703
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
1704
1704
  }
1705
- var k, _ = l[0], I = l[3], M = !p;
1705
+ var k, C = l[0], I = l[3], M = !p;
1706
1706
  if (!M) {
1707
- d || Array.isArray(_) || (_ = [_]);
1707
+ d || Array.isArray(C) || (C = [C]);
1708
1708
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
1709
1709
  w ? (b || u ? s = { get: Se(function() {
1710
1710
  return I(this);
@@ -1712,8 +1712,8 @@ function ir(t, e, r, o, S, T) {
1712
1712
  l[4](this, g);
1713
1713
  } } : s[x] = I, b || Se(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
1714
1714
  }
1715
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
1716
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1715
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
1716
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
1717
1717
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
1718
1718
  m(R, "An initializer", "be", !0), h.push(R);
1719
1719
  }).bind(null, Y) };
@@ -1722,8 +1722,8 @@ function ir(t, e, r, o, S, T) {
1722
1722
  else {
1723
1723
  var P, H;
1724
1724
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
1725
- return C(g), s.value;
1726
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
1725
+ return _(g), s.value;
1726
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
1727
1727
  return g[a];
1728
1728
  }, (n < 2 || n === 4) && (H = function(g, R) {
1729
1729
  g[a] = R;
@@ -1759,13 +1759,13 @@ function ir(t, e, r, o, S, T) {
1759
1759
  for (var b = 0; b < l.length; b++) {
1760
1760
  var u = l[b];
1761
1761
  if (Array.isArray(u)) {
1762
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
1762
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
1763
1763
  if (!M && !k) {
1764
1764
  var F = y.get(s);
1765
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
1765
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
1766
1766
  y.set(s, !(f > 2) || f);
1767
1767
  }
1768
- D(I ? i : i.prototype, u, _, k ? "#" + C : it(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1768
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : it(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
1769
1769
  }
1770
1770
  }
1771
1771
  return w(n), w(c), h;
@@ -1930,10 +1930,10 @@ class cr extends J {
1930
1930
  return /* @__PURE__ */ $("wsx-link", { key: `nav-${T}`, ref: (A) => {
1931
1931
  A && (this.navItemsElements[T] = A);
1932
1932
  }, to: S.to, class: `nav-link ${E ? "" : "hidden-item"}`, "active-class": "nav-link-active", exact: S.exact, style: E ? "" : "position: absolute; visibility: hidden; pointer-events: none;" }, S.label);
1933
- }), this.navigation.autoOverflow && e.length > 0 && !this.isMobile && /* @__PURE__ */ $("div", { class: "nav-overflow" }, /* @__PURE__ */ $("button", { class: "nav-overflow-button", onClick: this.toggleOverflow, "data-wsx-key": "ResponsiveNav-button-text-1-1" }, "More ▼"), this.isOverflowOpen && /* @__PURE__ */ $("div", { class: "nav-overflow-menu" }, e.map((S, T) => {
1933
+ }), this.navigation.autoOverflow && e.length > 0 && !this.isMobile && /* @__PURE__ */ $("div", { class: "nav-overflow" }, /* @__PURE__ */ $("button", { class: "nav-overflow-button", onClick: this.toggleOverflow }, "More ▼"), this.isOverflowOpen && /* @__PURE__ */ $("div", { class: "nav-overflow-menu" }, e.map((S, T) => {
1934
1934
  const E = this.hiddenItemIndices[T];
1935
1935
  return /* @__PURE__ */ $("wsx-link", { key: `overflow-${E}`, to: S.to, class: "nav-overflow-link", "active-class": "nav-link-active", exact: S.exact, onClick: this.closeOverflow }, S.label);
1936
- })))), this.navigation.actionTags && /* @__PURE__ */ $("div", { class: "nav-actions" }, this.navigation.actionTags.map((S, T) => /* @__PURE__ */ $("div", { key: T, class: "nav-action" }, /* @__PURE__ */ $(S, null)))), this.isMobile && /* @__PURE__ */ $("button", { class: "nav-toggle", onClick: this.toggleMobileMenu, "data-wsx-key": "ResponsiveNav-button-text-1" }, /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }), /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }), /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }))), this.isMobile && /* @__PURE__ */ $("div", { class: `nav-mobile-menu ${this.isMobileMenuOpen ? "open" : ""}` }, this.navigation.items.filter((S) => !S.hideOnMobile).map((S, T) => /* @__PURE__ */ $("wsx-link", { key: T, to: S.to, class: "nav-mobile-link", "active-class": "nav-link-active", exact: S.exact, onClick: this.closeMobileMenu }, S.label))));
1936
+ })))), this.navigation.actionTags && /* @__PURE__ */ $("div", { class: "nav-actions" }, this.navigation.actionTags.map((S, T) => /* @__PURE__ */ $("div", { key: T, class: "nav-action" }, /* @__PURE__ */ $(S, null)))), this.isMobile && /* @__PURE__ */ $("button", { class: "nav-toggle", onClick: this.toggleMobileMenu }, /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }), /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }), /* @__PURE__ */ $("span", { class: `nav-toggle-line ${this.isMobileMenuOpen ? "open" : ""}` }))), this.isMobile && /* @__PURE__ */ $("div", { class: `nav-mobile-menu ${this.isMobileMenuOpen ? "open" : ""}` }, this.navigation.items.filter((S) => !S.hideOnMobile).map((S, T) => /* @__PURE__ */ $("wsx-link", { key: T, to: S.to, class: "nav-mobile-link", "active-class": "nav-link-active", exact: S.exact, onClick: this.closeMobileMenu }, S.label))));
1937
1937
  }
1938
1938
  /**
1939
1939
  * 组件连接时初始化
@@ -1995,12 +1995,12 @@ function dr(t, e, r, o, S, T) {
1995
1995
  return i;
1996
1996
  }
1997
1997
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
1998
- function C(g) {
1998
+ function _(g) {
1999
1999
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
2000
2000
  }
2001
- var k, _ = l[0], I = l[3], M = !p;
2001
+ var k, C = l[0], I = l[3], M = !p;
2002
2002
  if (!M) {
2003
- d || Array.isArray(_) || (_ = [_]);
2003
+ d || Array.isArray(C) || (C = [C]);
2004
2004
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
2005
2005
  w ? (b || u ? s = { get: Ae(function() {
2006
2006
  return I(this);
@@ -2008,8 +2008,8 @@ function dr(t, e, r, o, S, T) {
2008
2008
  l[4](this, g);
2009
2009
  } } : s[x] = I, b || Ae(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
2010
2010
  }
2011
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
2012
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
2011
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
2012
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
2013
2013
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
2014
2014
  m(R, "An initializer", "be", !0), h.push(R);
2015
2015
  }).bind(null, Y) };
@@ -2018,8 +2018,8 @@ function dr(t, e, r, o, S, T) {
2018
2018
  else {
2019
2019
  var P, H;
2020
2020
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
2021
- return C(g), s.value;
2022
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
2021
+ return _(g), s.value;
2022
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
2023
2023
  return g[a];
2024
2024
  }, (n < 2 || n === 4) && (H = function(g, R) {
2025
2025
  g[a] = R;
@@ -2055,13 +2055,13 @@ function dr(t, e, r, o, S, T) {
2055
2055
  for (var b = 0; b < l.length; b++) {
2056
2056
  var u = l[b];
2057
2057
  if (Array.isArray(u)) {
2058
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
2058
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
2059
2059
  if (!M && !k) {
2060
2060
  var F = y.get(s);
2061
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
2061
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
2062
2062
  y.set(s, !(f > 2) || f);
2063
2063
  }
2064
- D(I ? i : i.prototype, u, _, k ? "#" + C : ct(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
2064
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : ct(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
2065
2065
  }
2066
2066
  }
2067
2067
  return w(n), w(c), h;
@@ -2519,8 +2519,8 @@ var dt = { exports: {} };
2519
2519
  h.hasOwnProperty(b) || (w[b] = y[b]);
2520
2520
  }
2521
2521
  var f = p[n];
2522
- return p[n] = w, A.languages.DFS(A.languages, function(C, k) {
2523
- k === f && C != n && (this[C] = w);
2522
+ return p[n] = w, A.languages.DFS(A.languages, function(_, k) {
2523
+ k === f && _ != n && (this[_] = w);
2524
2524
  }), w;
2525
2525
  },
2526
2526
  // Traverse a language definition with Depth First Search
@@ -2627,10 +2627,10 @@ var dt = { exports: {} };
2627
2627
  return;
2628
2628
  }
2629
2629
  if (c && o.Worker) {
2630
- var C = new Worker(A.filename);
2631
- C.onmessage = function(k) {
2630
+ var _ = new Worker(A.filename);
2631
+ _.onmessage = function(k) {
2632
2632
  f(k.data);
2633
- }, C.postMessage(JSON.stringify({
2633
+ }, _.postMessage(JSON.stringify({
2634
2634
  language: u.language,
2635
2635
  code: u.code,
2636
2636
  immediateClose: !0
@@ -2787,19 +2787,19 @@ var dt = { exports: {} };
2787
2787
  for (var f = 0; f < u.length; ++f) {
2788
2788
  if (w && w.cause == b + "," + f)
2789
2789
  return;
2790
- var C = u[f], k = C.inside, _ = !!C.lookbehind, I = !!C.greedy, M = C.alias;
2791
- if (I && !C.pattern.global) {
2792
- var s = C.pattern.toString().match(/[imsuy]*$/)[0];
2793
- C.pattern = RegExp(C.pattern.source, s + "g");
2790
+ var _ = u[f], k = _.inside, C = !!_.lookbehind, I = !!_.greedy, M = _.alias;
2791
+ if (I && !_.pattern.global) {
2792
+ var s = _.pattern.toString().match(/[imsuy]*$/)[0];
2793
+ _.pattern = RegExp(_.pattern.source, s + "g");
2794
2794
  }
2795
- for (var F = C.pattern || C, x = p.next, v = y; x !== c.tail && !(w && v >= w.reach); v += x.value.length, x = x.next) {
2795
+ for (var F = _.pattern || _, x = p.next, v = y; x !== c.tail && !(w && v >= w.reach); v += x.value.length, x = x.next) {
2796
2796
  var B = x.value;
2797
2797
  if (c.length > n.length)
2798
2798
  return;
2799
2799
  if (!(B instanceof m)) {
2800
2800
  var V = 1, G;
2801
2801
  if (I) {
2802
- if (G = D(F, v, n, _), !G || G.index >= n.length)
2802
+ if (G = D(F, v, n, C), !G || G.index >= n.length)
2803
2803
  break;
2804
2804
  var H = G.index, Y = G.index + G[0].length, z = v;
2805
2805
  for (z += x.value.length; H >= z; )
@@ -2809,7 +2809,7 @@ var dt = { exports: {} };
2809
2809
  for (var P = x; P !== c.tail && (z < Y || typeof P.value == "string"); P = P.next)
2810
2810
  V++, z += P.value.length;
2811
2811
  V--, B = n.slice(v, z), G.index -= v;
2812
- } else if (G = D(F, 0, B, _), !G)
2812
+ } else if (G = D(F, 0, B, C), !G)
2813
2813
  continue;
2814
2814
  var H = G.index, W = G[0], g = B.slice(0, H), R = B.slice(H + W.length), U = v + B.length;
2815
2815
  w && U > w.reach && (w.reach = U);
@@ -4933,21 +4933,21 @@ function yr(t, e, r, o, S, T) {
4933
4933
  return i;
4934
4934
  }
4935
4935
  function D(i, l, d, a, n, c, h, p, y, w, b, u, f) {
4936
- function C(g) {
4936
+ function _(g) {
4937
4937
  if (!f(g)) throw new TypeError("Attempted to access private element on non-instance");
4938
4938
  }
4939
- var k, _ = l[0], I = l[3], M = !p;
4939
+ var k, C = l[0], I = l[3], M = !p;
4940
4940
  if (!M) {
4941
- d || Array.isArray(_) || (_ = [_]);
4941
+ d || Array.isArray(C) || (C = [C]);
4942
4942
  var s = {}, F = [], x = n === 3 ? "get" : n === 4 || u ? "set" : "value";
4943
- w ? (b || u ? s = { get: Ce(function() {
4943
+ w ? (b || u ? s = { get: _e(function() {
4944
4944
  return I(this);
4945
4945
  }, a, "get"), set: function(g) {
4946
4946
  l[4](this, g);
4947
- } } : s[x] = I, b || Ce(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
4947
+ } } : s[x] = I, b || _e(s[x], a, n === 2 ? "" : x)) : b || (s = Object.getOwnPropertyDescriptor(i, a));
4948
4948
  }
4949
- for (var v = i, B = _.length - 1; B >= 0; B -= d ? 2 : 1) {
4950
- var V = _[B], G = d ? _[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
4949
+ for (var v = i, B = C.length - 1; B >= 0; B -= d ? 2 : 1) {
4950
+ var V = C[B], G = d ? C[B - 1] : void 0, Y = {}, z = { kind: ["field", "accessor", "method", "getter", "setter", "class"][n], name: a, metadata: c, addInitializer: (function(g, R) {
4951
4951
  if (g.v) throw Error("attempted to call addInitializer after decoration was finished");
4952
4952
  m(R, "An initializer", "be", !0), h.push(R);
4953
4953
  }).bind(null, Y) };
@@ -4956,8 +4956,8 @@ function yr(t, e, r, o, S, T) {
4956
4956
  else {
4957
4957
  var P, H;
4958
4958
  z.static = y, z.private = w, w ? n === 2 ? P = function(g) {
4959
- return C(g), s.value;
4960
- } : (n < 4 && (P = E(s, "get", C)), n !== 3 && (H = E(s, "set", C))) : (P = function(g) {
4959
+ return _(g), s.value;
4960
+ } : (n < 4 && (P = E(s, "get", _)), n !== 3 && (H = E(s, "set", _))) : (P = function(g) {
4961
4961
  return g[a];
4962
4962
  }, (n < 2 || n === 4) && (H = function(g, R) {
4963
4963
  g[a] = R;
@@ -4993,13 +4993,13 @@ function yr(t, e, r, o, S, T) {
4993
4993
  for (var b = 0; b < l.length; b++) {
4994
4994
  var u = l[b];
4995
4995
  if (Array.isArray(u)) {
4996
- var f = u[1], C = u[2], k = u.length > 3, _ = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = C + "/" + I;
4996
+ var f = u[1], _ = u[2], k = u.length > 3, C = 16 & f, I = !!(8 & f), M = (f &= 7) == 0, s = _ + "/" + I;
4997
4997
  if (!M && !k) {
4998
4998
  var F = y.get(s);
4999
- if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + C);
4999
+ if (F === !0 || F === 3 && f !== 4 || F === 4 && f !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + _);
5000
5000
  y.set(s, !(f > 2) || f);
5001
5001
  }
5002
- D(I ? i : i.prototype, u, _, k ? "#" + C : gt(C), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
5002
+ D(I ? i : i.prototype, u, C, k ? "#" + _ : gt(_), f, a, I ? c = c || [] : n = n || [], h, I, k, M, f === 1, I && k ? p : d);
5003
5003
  }
5004
5004
  }
5005
5005
  return w(n), w(c), h;
@@ -5023,7 +5023,7 @@ function kr(t, e) {
5023
5023
  }
5024
5024
  return String(t);
5025
5025
  }
5026
- function Ce(t, e, r) {
5026
+ function _e(t, e, r) {
5027
5027
  typeof e == "symbol" && (e = (e = e.description) ? "[" + e + "]" : "");
5028
5028
  try {
5029
5029
  Object.defineProperty(t, "name", { configurable: !0, value: r ? r + " " + e : e });
@@ -5039,7 +5039,7 @@ pt = [te({
5039
5039
  tagName: "wsx-code-block"
5040
5040
  })];
5041
5041
  let wr;
5042
- class Er extends _e {
5042
+ class Er extends Ce {
5043
5043
  constructor() {
5044
5044
  super(), X(this, "_autoStyles", vr), X(this, "copied", void 0), X(this, "highlighted", void 0), X(this, "code", void 0), X(this, "segments", void 0), X(this, "codeTitle", void 0), X(this, "language", void 0), X(this, "showCopy", void 0), X(this, "showTryOnline", void 0), X(this, "tryOnlineUrl", void 0), X(this, "currentTheme", "light"), X(this, "onTryOnlineCallback", void 0), X(this, "codeElements", []), X(this, "isHighlighting", !1), X(this, "themeObserver", null), X(this, "codeBlockElement", null), X(this, "copyCode", async (n) => {
5045
5045
  const c = n || this.code || this.segments.map((h) => h.code).join(`
@@ -5199,7 +5199,7 @@ class Er extends _e {
5199
5199
  `);
5200
5200
  return /* @__PURE__ */ $("div", { class: `code-block ${this.currentTheme}`, ref: (o) => {
5201
5201
  o && (this.codeBlockElement = o);
5202
- } }, (this.codeTitle || this.showCopy || this.showTryOnline) && /* @__PURE__ */ $("div", { class: "code-header" }, this.codeTitle && /* @__PURE__ */ $("span", { class: "code-title" }, this.codeTitle), /* @__PURE__ */ $("div", { class: "code-actions" }, this.showCopy && /* @__PURE__ */ $("button", { onClick: () => this.copyCode(r), class: `btn-copy ${this.copied ? "copied" : ""}`, "data-wsx-key": "CodeBlock-button-text-3" }, this.copied ? "✓ Copied!" : "Copy"), this.showTryOnline && /* @__PURE__ */ $("button", { onClick: this.openPlayground, class: "btn-try", "data-wsx-key": "CodeBlock-button-text-3" }, "Try Online"))), /* @__PURE__ */ $("div", { class: "code-content" }, e.map((o, S) => /* @__PURE__ */ $("pre", { key: S, class: "code-segment" }, /* @__PURE__ */ $("code", { class: `language-${o.language}`, ref: (T) => {
5202
+ } }, (this.codeTitle || this.showCopy || this.showTryOnline) && /* @__PURE__ */ $("div", { class: "code-header" }, this.codeTitle && /* @__PURE__ */ $("span", { class: "code-title" }, this.codeTitle), /* @__PURE__ */ $("div", { class: "code-actions" }, this.showCopy && /* @__PURE__ */ $("button", { onClick: () => this.copyCode(r), class: `btn-copy ${this.copied ? "copied" : ""}` }, this.copied ? "✓ Copied!" : "Copy"), this.showTryOnline && /* @__PURE__ */ $("button", { onClick: this.openPlayground, class: "btn-try" }, "Try Online"))), /* @__PURE__ */ $("div", { class: "code-content" }, e.map((o, S) => /* @__PURE__ */ $("pre", { key: S, class: "code-segment" }, /* @__PURE__ */ $("code", { class: `language-${o.language}`, ref: (T) => {
5203
5203
  T && (this.codeElements[S] = T);
5204
5204
  } }, o.code)))));
5205
5205
  }
@@ -5241,7 +5241,7 @@ class Er extends _e {
5241
5241
  }
5242
5242
  }
5243
5243
  ut = Er;
5244
- [wr, ht] = yr(ut, [], pt, 0, void 0, _e).c;
5244
+ [wr, ht] = yr(ut, [], pt, 0, void 0, Ce).c;
5245
5245
  ht();
5246
5246
  export {
5247
5247
  kt as Button,