@mantou/gem 2.0.0-alpha.1 → 2.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.
Files changed (55) hide show
  1. package/dist/gem.es.js +1159 -1166
  2. package/dist/gem.umd.js +25 -25
  3. package/elements/base/modal-factory.d.ts +12 -7
  4. package/elements/base/modal-factory.d.ts.map +1 -1
  5. package/elements/base/modal-factory.js +3 -3
  6. package/elements/base/modal-factory.js.map +1 -1
  7. package/elements/base/route.d.ts +8 -2
  8. package/elements/base/route.d.ts.map +1 -1
  9. package/elements/base/route.js +21 -16
  10. package/elements/base/route.js.map +1 -1
  11. package/elements/base/title.js +2 -2
  12. package/elements/base/title.js.map +1 -1
  13. package/helper/i18n.d.ts.map +1 -1
  14. package/helper/i18n.js +11 -11
  15. package/helper/i18n.js.map +1 -1
  16. package/helper/theme.d.ts +8 -7
  17. package/helper/theme.d.ts.map +1 -1
  18. package/helper/theme.js +21 -21
  19. package/helper/theme.js.map +1 -1
  20. package/lib/decorators.d.ts +2 -1
  21. package/lib/decorators.d.ts.map +1 -1
  22. package/lib/decorators.js +6 -0
  23. package/lib/decorators.js.map +1 -1
  24. package/lib/element.d.ts +6 -4
  25. package/lib/element.d.ts.map +1 -1
  26. package/lib/element.js +12 -15
  27. package/lib/element.js.map +1 -1
  28. package/lib/history.d.ts +20 -8
  29. package/lib/history.d.ts.map +1 -1
  30. package/lib/history.js +12 -12
  31. package/lib/history.js.map +1 -1
  32. package/lib/store.d.ts +5 -10
  33. package/lib/store.d.ts.map +1 -1
  34. package/lib/store.js +7 -22
  35. package/lib/store.js.map +1 -1
  36. package/lib/utils.d.ts +1 -0
  37. package/lib/utils.d.ts.map +1 -1
  38. package/lib/utils.js +19 -14
  39. package/lib/utils.js.map +1 -1
  40. package/package.json +4 -4
  41. package/src/elements/base/modal-factory.ts +3 -3
  42. package/src/elements/base/route.ts +7 -9
  43. package/src/elements/base/title.ts +2 -2
  44. package/src/helper/i18n.ts +11 -8
  45. package/src/helper/theme.ts +27 -26
  46. package/src/lib/decorators.ts +9 -2
  47. package/src/lib/element.ts +18 -19
  48. package/src/lib/history.ts +12 -12
  49. package/src/lib/store.ts +11 -31
  50. package/src/lib/utils.ts +21 -14
  51. package/src/test/gem-element/advance.test.ts +2 -2
  52. package/src/test/gem-element/basic.test.ts +3 -3
  53. package/src/test/gem-element/decorators.test.ts +4 -4
  54. package/src/test/store.test.ts +7 -7
  55. package/src/test/utils.test.ts +1 -1
package/dist/gem.es.js CHANGED
@@ -1,56 +1,59 @@
1
- var xa = Object.defineProperty;
2
- var wi = (e) => {
1
+ var Pa = Object.defineProperty;
2
+ var gi = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Ta = (e, t, n) => t in e ? xa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var T = (e, t, n) => Ta(e, typeof t != "symbol" ? t + "" : t, n), Wn = (e, t, n) => t.has(e) || wi("Cannot " + n);
7
- var p = (e, t, n) => (Wn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), b = (e, t, n) => t.has(e) ? wi("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), x = (e, t, n, s) => (Wn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), zn = (e, t, n) => (Wn(e, t, "access private method"), n);
8
- const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
+ var ka = (e, t, n) => t in e ? Pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var O = (e, t, n) => ka(e, typeof t != "symbol" ? t + "" : t, n), An = (e, t, n) => t.has(e) || gi("Cannot " + n);
7
+ var p = (e, t, n) => (An(e, t, "read from private field"), n ? n.call(e) : t.get(e)), b = (e, t, n) => t.has(e) ? gi("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), x = (e, t, n, s) => (An(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), In = (e, t, n) => (An(e, t, "access private method"), n);
8
+ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
9
  __proto__: null,
10
10
  get adoptedStyle() {
11
- return Hs;
11
+ return Is;
12
12
  },
13
13
  get aria() {
14
- return An;
14
+ return On;
15
15
  },
16
16
  get async() {
17
- return pc;
17
+ return fc;
18
18
  },
19
19
  get attribute() {
20
- return G;
20
+ return V;
21
21
  },
22
22
  get boolattribute() {
23
- return On;
23
+ return kn;
24
24
  },
25
25
  get connectStore() {
26
- return Nn;
26
+ return Tn;
27
27
  },
28
28
  get customElement() {
29
- return fc;
29
+ return _c;
30
30
  },
31
31
  get effect() {
32
- return $t;
32
+ return St;
33
33
  },
34
34
  get emitter() {
35
- return ye;
35
+ return me;
36
36
  },
37
37
  get fallback() {
38
- return lc;
38
+ return hc;
39
39
  },
40
40
  get globalemitter() {
41
- return dc;
41
+ return pc;
42
+ },
43
+ get light() {
44
+ return Mr;
42
45
  },
43
46
  get memo() {
44
- return kr;
47
+ return Pr;
45
48
  },
46
49
  get mounted() {
47
- return qe;
50
+ return De;
48
51
  },
49
52
  get numattribute() {
50
- return ac;
53
+ return cc;
51
54
  },
52
55
  get part() {
53
- return Or;
56
+ return Tr;
54
57
  },
55
58
  get property() {
56
59
  return U;
@@ -59,19 +62,19 @@ const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
59
62
  return Ht;
60
63
  },
61
64
  get slot() {
62
- return uc;
65
+ return dc;
63
66
  },
64
67
  get state() {
65
- return Ln;
68
+ return xn;
66
69
  },
67
70
  get template() {
68
- return xr;
71
+ return kr;
69
72
  },
70
73
  get unmounted() {
71
- return cc;
74
+ return lc;
72
75
  },
73
76
  get willMount() {
74
- return Mn;
77
+ return As;
75
78
  }
76
79
  }, Symbol.toStringTag, { value: "Module" }));
77
80
  /**
@@ -87,10 +90,10 @@ const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
87
90
  * subject to an additional IP rights grant found at
88
91
  * http://polymer.github.io/PATENTS.txt
89
92
  */
90
- const ur = /* @__PURE__ */ new WeakMap(), Sn = (e) => (...t) => {
93
+ const lr = /* @__PURE__ */ new WeakMap(), wn = (e) => (...t) => {
91
94
  const n = e(...t);
92
- return ur.set(n, !0), n;
93
- }, Ge = (e) => typeof e == "function" && ur.has(e);
95
+ return lr.set(n, !0), n;
96
+ }, ze = (e) => typeof e == "function" && lr.has(e);
94
97
  /**
95
98
  * @license
96
99
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -104,12 +107,12 @@ const ur = /* @__PURE__ */ new WeakMap(), Sn = (e) => (...t) => {
104
107
  * subject to an additional IP rights grant found at
105
108
  * http://polymer.github.io/PATENTS.txt
106
109
  */
107
- const yi = typeof window < "u" && window.customElements != null && window.customElements.polyfillWrapFlushCallback !== void 0, dr = (e, t, n = null, s = null) => {
110
+ const mi = typeof window < "u" && window.customElements != null && window.customElements.polyfillWrapFlushCallback !== void 0, hr = (e, t, n = null, s = null) => {
108
111
  for (; t !== n; ) {
109
112
  const i = t.nextSibling;
110
113
  e.insertBefore(t, s), t = i;
111
114
  }
112
- }, bs = (e, t, n = null) => {
115
+ }, Ss = (e, t, n = null) => {
113
116
  for (; t !== n; ) {
114
117
  const s = t.nextSibling;
115
118
  e.removeChild(t), t = s;
@@ -128,7 +131,7 @@ const yi = typeof window < "u" && window.customElements != null && window.custom
128
131
  * subject to an additional IP rights grant found at
129
132
  * http://polymer.github.io/PATENTS.txt
130
133
  */
131
- const it = {}, Si = {};
134
+ const it = {}, vi = {};
132
135
  /**
133
136
  * @license
134
137
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -142,67 +145,67 @@ const it = {}, Si = {};
142
145
  * subject to an additional IP rights grant found at
143
146
  * http://polymer.github.io/PATENTS.txt
144
147
  */
145
- const St = `{{lit-${String(Math.random()).slice(2)}}}`, pr = `<!--${St}-->`, $i = new RegExp(`${St}|${pr}`), we = "$lit$";
146
- class Ma {
148
+ const yt = `{{lit-${String(Math.random()).slice(2)}}}`, ur = `<!--${yt}-->`, wi = new RegExp(`${yt}|${ur}`), ge = "$lit$";
149
+ class Ta {
147
150
  constructor(t, n) {
148
151
  this.parts = [], this.element = n;
149
- const s = [], i = [], o = document.createTreeWalker(n.content, 133, null, !1);
150
- let c = 0, a = -1, f = 0;
151
- const { strings: h, values: { length: m } } = t;
152
- for (; f < m; ) {
153
- const r = o.nextNode();
154
- if (r === null) {
155
- o.currentNode = i.pop();
152
+ const s = [], i = [], r = document.createTreeWalker(n.content, 133, null, !1);
153
+ let c = 0, a = -1, d = 0;
154
+ const { strings: f, values: { length: g } } = t;
155
+ for (; d < g; ) {
156
+ const o = r.nextNode();
157
+ if (o === null) {
158
+ r.currentNode = i.pop();
156
159
  continue;
157
160
  }
158
- if (a++, r.nodeType === 1) {
159
- if (r.hasAttributes()) {
160
- const _ = r.attributes, { length: l } = _;
161
- let g = 0;
161
+ if (a++, o.nodeType === 1) {
162
+ if (o.hasAttributes()) {
163
+ const _ = o.attributes, { length: l } = _;
164
+ let m = 0;
162
165
  for (let v = 0; v < l; v++)
163
- Ei(_[v].name, we) && g++;
164
- for (; g-- > 0; ) {
165
- const v = h[f], y = Qn.exec(v)[2], $ = y.toLowerCase() + we, d = r.getAttribute($);
166
- r.removeAttribute($);
167
- const S = d.split($i);
168
- this.parts.push({ type: "attribute", index: a, name: y, strings: S }), f += S.length - 1;
166
+ yi(_[v].name, ge) && m++;
167
+ for (; m-- > 0; ) {
168
+ const v = f[d], y = Kn.exec(v)[2], $ = y.toLowerCase() + ge, u = o.getAttribute($);
169
+ o.removeAttribute($);
170
+ const S = u.split(wi);
171
+ this.parts.push({ type: "attribute", index: a, name: y, strings: S }), d += S.length - 1;
169
172
  }
170
173
  }
171
- r.tagName === "TEMPLATE" && (i.push(r), o.currentNode = r.content);
172
- } else if (r.nodeType === 3) {
173
- const _ = r.data;
174
- if (_.indexOf(St) >= 0) {
175
- const l = r.parentNode, g = _.split($i), v = g.length - 1;
174
+ o.tagName === "TEMPLATE" && (i.push(o), r.currentNode = o.content);
175
+ } else if (o.nodeType === 3) {
176
+ const _ = o.data;
177
+ if (_.indexOf(yt) >= 0) {
178
+ const l = o.parentNode, m = _.split(wi), v = m.length - 1;
176
179
  for (let y = 0; y < v; y++) {
177
- let $, d = g[y];
178
- if (d === "")
180
+ let $, u = m[y];
181
+ if (u === "")
179
182
  $ = ot();
180
183
  else {
181
- const S = Qn.exec(d);
182
- S !== null && Ei(S[2], we) && (d = d.slice(0, S.index) + S[1] + S[2].slice(0, -we.length) + S[3]), $ = document.createTextNode(d);
184
+ const S = Kn.exec(u);
185
+ S !== null && yi(S[2], ge) && (u = u.slice(0, S.index) + S[1] + S[2].slice(0, -ge.length) + S[3]), $ = document.createTextNode(u);
183
186
  }
184
- l.insertBefore($, r), this.parts.push({ type: "node", index: ++a });
187
+ l.insertBefore($, o), this.parts.push({ type: "node", index: ++a });
185
188
  }
186
- g[v] === "" ? (l.insertBefore(ot(), r), s.push(r)) : r.data = g[v], f += v;
189
+ m[v] === "" ? (l.insertBefore(ot(), o), s.push(o)) : o.data = m[v], d += v;
187
190
  }
188
- } else if (r.nodeType === 8)
189
- if (r.data === St) {
190
- const _ = r.parentNode;
191
- (r.previousSibling === null || a === c) && (a++, _.insertBefore(ot(), r)), c = a, this.parts.push({ type: "node", index: a }), r.nextSibling === null ? r.data = "" : (s.push(r), a--), f++;
191
+ } else if (o.nodeType === 8)
192
+ if (o.data === yt) {
193
+ const _ = o.parentNode;
194
+ (o.previousSibling === null || a === c) && (a++, _.insertBefore(ot(), o)), c = a, this.parts.push({ type: "node", index: a }), o.nextSibling === null ? o.data = "" : (s.push(o), a--), d++;
192
195
  } else {
193
196
  let _ = -1;
194
- for (; (_ = r.data.indexOf(St, _ + 1)) !== -1; )
195
- this.parts.push({ type: "node", index: -1 }), f++;
197
+ for (; (_ = o.data.indexOf(yt, _ + 1)) !== -1; )
198
+ this.parts.push({ type: "node", index: -1 }), d++;
196
199
  }
197
200
  }
198
- for (const r of s)
199
- r.parentNode.removeChild(r);
201
+ for (const o of s)
202
+ o.parentNode.removeChild(o);
200
203
  }
201
204
  }
202
- const Ei = (e, t) => {
205
+ const yi = (e, t) => {
203
206
  const n = e.length - t.length;
204
207
  return n >= 0 && e.slice(n) === t;
205
- }, La = (e) => e.index !== -1, ot = () => document.createComment(""), Qn = (
208
+ }, Oa = (e) => e.index !== -1, ot = () => document.createComment(""), Kn = (
206
209
  // eslint-disable-next-line no-control-regex
207
210
  /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/
208
211
  );
@@ -219,7 +222,7 @@ const Ei = (e, t) => {
219
222
  * subject to an additional IP rights grant found at
220
223
  * http://polymer.github.io/PATENTS.txt
221
224
  */
222
- class bi {
225
+ class Si {
223
226
  constructor(t, n, s) {
224
227
  this.__parts = [], this.template = t, this.processor = n, this.options = s;
225
228
  }
@@ -231,23 +234,23 @@ class bi {
231
234
  s !== void 0 && s.commit();
232
235
  }
233
236
  _clone() {
234
- const t = yi ? this.template.element.content.cloneNode(!0) : document.importNode(this.template.element.content, !0), n = [], s = this.template.parts, i = document.createTreeWalker(t, 133, null, !1);
235
- let o = 0, c = 0, a, f = i.nextNode();
236
- for (; o < s.length; ) {
237
- if (a = s[o], !La(a)) {
238
- this.__parts.push(void 0), o++;
237
+ const t = mi ? this.template.element.content.cloneNode(!0) : document.importNode(this.template.element.content, !0), n = [], s = this.template.parts, i = document.createTreeWalker(t, 133, null, !1);
238
+ let r = 0, c = 0, a, d = i.nextNode();
239
+ for (; r < s.length; ) {
240
+ if (a = s[r], !Oa(a)) {
241
+ this.__parts.push(void 0), r++;
239
242
  continue;
240
243
  }
241
244
  for (; c < a.index; )
242
- c++, f.nodeName === "TEMPLATE" && (n.push(f), i.currentNode = f.content), (f = i.nextNode()) === null && (i.currentNode = n.pop(), f = i.nextNode());
245
+ c++, d.nodeName === "TEMPLATE" && (n.push(d), i.currentNode = d.content), (d = i.nextNode()) === null && (i.currentNode = n.pop(), d = i.nextNode());
243
246
  if (a.type === "node") {
244
- const h = this.processor.handleTextExpression(this.options);
245
- h.insertAfterNode(f.previousSibling), this.__parts.push(h);
247
+ const f = this.processor.handleTextExpression(this.options);
248
+ f.insertAfterNode(d.previousSibling), this.__parts.push(f);
246
249
  } else
247
- this.__parts.push(...this.processor.handleAttributeExpressions(f, a.name, a.strings, this.options));
248
- o++;
250
+ this.__parts.push(...this.processor.handleAttributeExpressions(d, a.name, a.strings, this.options));
251
+ r++;
249
252
  }
250
- return yi && (document.adoptNode(t), customElements.upgrade(t)), t;
253
+ return mi && (document.adoptNode(t), customElements.upgrade(t)), t;
251
254
  }
252
255
  }
253
256
  /**
@@ -263,8 +266,8 @@ class bi {
263
266
  * subject to an additional IP rights grant found at
264
267
  * http://polymer.github.io/PATENTS.txt
265
268
  */
266
- const Ci = window.trustedTypes && trustedTypes.createPolicy("lit-html", { createHTML: (e) => e }), Na = ` ${St} `;
267
- class $n {
269
+ const $i = window.trustedTypes && trustedTypes.createPolicy("lit-html", { createHTML: (e) => e }), Ma = ` ${yt} `;
270
+ class yn {
268
271
  constructor(t, n, s, i) {
269
272
  this.strings = t, this.values = n, this.type = s, this.processor = i;
270
273
  }
@@ -275,26 +278,26 @@ class $n {
275
278
  const t = this.strings.length - 1;
276
279
  let n = "", s = !1;
277
280
  for (let i = 0; i < t; i++) {
278
- const o = this.strings[i], c = o.lastIndexOf("<!--");
279
- s = (c > -1 || s) && o.indexOf("-->", c + 1) === -1;
280
- const a = Qn.exec(o);
281
- a === null ? n += o + (s ? Na : pr) : n += o.substr(0, a.index) + a[1] + a[2] + we + a[3] + St;
281
+ const r = this.strings[i], c = r.lastIndexOf("<!--");
282
+ s = (c > -1 || s) && r.indexOf("-->", c + 1) === -1;
283
+ const a = Kn.exec(r);
284
+ a === null ? n += r + (s ? Ma : ur) : n += r.substr(0, a.index) + a[1] + a[2] + ge + a[3] + yt;
282
285
  }
283
286
  return n += this.strings[t], n;
284
287
  }
285
288
  getTemplateElement() {
286
289
  const t = document.createElement("template");
287
290
  let n = this.getHTML();
288
- return Ci !== void 0 && (n = Ci.createHTML(n)), t.innerHTML = n, t;
291
+ return $i !== void 0 && (n = $i.createHTML(n)), t.innerHTML = n, t;
289
292
  }
290
293
  }
291
- class fr extends $n {
294
+ class dr extends yn {
292
295
  getHTML() {
293
296
  return `<svg>${super.getHTML()}</svg>`;
294
297
  }
295
298
  getTemplateElement() {
296
299
  const t = super.getTemplateElement(), n = t.content, s = n.firstChild;
297
- return n.removeChild(s), dr(n, s.firstChild), t;
300
+ return n.removeChild(s), hr(n, s.firstChild), t;
298
301
  }
299
302
  }
300
303
  /**
@@ -310,9 +313,9 @@ class fr extends $n {
310
313
  * subject to an additional IP rights grant found at
311
314
  * http://polymer.github.io/PATENTS.txt
312
315
  */
313
- const Cs = (e) => e === null || !(typeof e == "object" || typeof e == "function"), Xn = (e) => Array.isArray(e) || // eslint-disable-next-line @typescript-eslint/no-explicit-any
316
+ const $s = (e) => e === null || !(typeof e == "object" || typeof e == "function"), jn = (e) => Array.isArray(e) || // eslint-disable-next-line @typescript-eslint/no-explicit-any
314
317
  !!(e && e[Symbol.iterator]);
315
- class _r {
318
+ class pr {
316
319
  constructor(t, n, s) {
317
320
  this.dirty = !0, this.element = t, this.name = n, this.strings = s, this.parts = [];
318
321
  for (let i = 0; i < s.length - 1; i++)
@@ -322,28 +325,28 @@ class _r {
322
325
  * Creates a single part. Override this to create a differnt type of part.
323
326
  */
324
327
  _createPart() {
325
- return new Ps(this);
328
+ return new Es(this);
326
329
  }
327
330
  _getValue() {
328
331
  const t = this.strings, n = t.length - 1, s = this.parts;
329
332
  if (n === 1 && t[0] === "" && t[1] === "") {
330
- const o = s[0].value;
331
- if (typeof o == "symbol")
332
- return String(o);
333
- if (typeof o == "string" || !Xn(o))
334
- return o;
333
+ const r = s[0].value;
334
+ if (typeof r == "symbol")
335
+ return String(r);
336
+ if (typeof r == "string" || !jn(r))
337
+ return r;
335
338
  }
336
339
  let i = "";
337
- for (let o = 0; o < n; o++) {
338
- i += t[o];
339
- const c = s[o];
340
+ for (let r = 0; r < n; r++) {
341
+ i += t[r];
342
+ const c = s[r];
340
343
  if (c !== void 0) {
341
344
  const a = c.value;
342
- if (Cs(a) || !Xn(a))
345
+ if ($s(a) || !jn(a))
343
346
  i += typeof a == "string" ? a : String(a);
344
347
  else
345
- for (const f of a)
346
- i += typeof f == "string" ? f : String(f);
348
+ for (const d of a)
349
+ i += typeof d == "string" ? d : String(d);
347
350
  }
348
351
  }
349
352
  return i += t[n], i;
@@ -352,22 +355,22 @@ class _r {
352
355
  this.dirty && (this.dirty = !1, this.element.setAttribute(this.name, this._getValue()));
353
356
  }
354
357
  }
355
- class Ps {
358
+ class Es {
356
359
  constructor(t) {
357
360
  this.value = void 0, this.committer = t;
358
361
  }
359
362
  setValue(t) {
360
- t !== it && (!Cs(t) || t !== this.value) && (this.value = t, Ge(t) || (this.committer.dirty = !0));
363
+ t !== it && (!$s(t) || t !== this.value) && (this.value = t, ze(t) || (this.committer.dirty = !0));
361
364
  }
362
365
  commit() {
363
- for (; Ge(this.value); ) {
366
+ for (; ze(this.value); ) {
364
367
  const t = this.value;
365
368
  this.value = it, t(this);
366
369
  }
367
370
  this.value !== it && this.committer.commit();
368
371
  }
369
372
  }
370
- class re {
373
+ class se {
371
374
  constructor(t) {
372
375
  this.value = void 0, this.__pendingValue = void 0, this.options = t;
373
376
  }
@@ -411,12 +414,12 @@ class re {
411
414
  commit() {
412
415
  if (this.startNode.parentNode === null)
413
416
  return;
414
- for (; Ge(this.__pendingValue); ) {
417
+ for (; ze(this.__pendingValue); ) {
415
418
  const n = this.__pendingValue;
416
419
  this.__pendingValue = it, n(this);
417
420
  }
418
421
  const t = this.__pendingValue;
419
- t !== it && (Cs(t) ? t !== this.value && this.__commitText(t) : t instanceof $n ? this.__commitTemplateResult(t) : t instanceof Node ? this.__commitNode(t) : Xn(t) ? this.__commitIterable(t) : t === Si ? (this.value = Si, this.clear()) : this.__commitText(t));
422
+ t !== it && ($s(t) ? t !== this.value && this.__commitText(t) : t instanceof yn ? this.__commitTemplateResult(t) : t instanceof Node ? this.__commitNode(t) : jn(t) ? this.__commitIterable(t) : t === vi ? (this.value = vi, this.clear()) : this.__commitText(t));
420
423
  }
421
424
  __insert(t) {
422
425
  this.endNode.parentNode.insertBefore(t, this.endNode);
@@ -432,10 +435,10 @@ class re {
432
435
  }
433
436
  __commitTemplateResult(t) {
434
437
  const n = this.options.templateFactory(t);
435
- if (this.value instanceof bi && this.value.template === n)
438
+ if (this.value instanceof Si && this.value.template === n)
436
439
  this.value.update(t.values);
437
440
  else {
438
- const s = new bi(n, t.processor, this.options), i = s._clone();
441
+ const s = new Si(n, t.processor, this.options), i = s._clone();
439
442
  s.update(t.values), this.__commitNode(i), this.value = s;
440
443
  }
441
444
  }
@@ -443,15 +446,15 @@ class re {
443
446
  Array.isArray(this.value) || (this.value = [], this.clear());
444
447
  const n = this.value;
445
448
  let s = 0, i;
446
- for (const o of t)
447
- i = n[s], i === void 0 && (i = new re(this.options), n.push(i), s === 0 ? i.appendIntoPart(this) : i.insertAfterPart(n[s - 1])), i.setValue(o), i.commit(), s++;
449
+ for (const r of t)
450
+ i = n[s], i === void 0 && (i = new se(this.options), n.push(i), s === 0 ? i.appendIntoPart(this) : i.insertAfterPart(n[s - 1])), i.setValue(r), i.commit(), s++;
448
451
  s < n.length && (n.length = s, this.clear(i && i.endNode));
449
452
  }
450
453
  clear(t = this.startNode) {
451
- bs(this.startNode.parentNode, t.nextSibling, this.endNode);
454
+ Ss(this.startNode.parentNode, t.nextSibling, this.endNode);
452
455
  }
453
456
  }
454
- class Aa {
457
+ class La {
455
458
  constructor(t, n, s) {
456
459
  if (this.value = void 0, this.__pendingValue = void 0, s.length !== 2 || s[0] !== "" || s[1] !== "")
457
460
  throw new Error("Boolean attributes can only contain a single expression");
@@ -461,7 +464,7 @@ class Aa {
461
464
  this.__pendingValue = t;
462
465
  }
463
466
  commit() {
464
- for (; Ge(this.__pendingValue); ) {
467
+ for (; ze(this.__pendingValue); ) {
465
468
  const n = this.__pendingValue;
466
469
  this.__pendingValue = it, n(this);
467
470
  }
@@ -471,12 +474,12 @@ class Aa {
471
474
  this.value !== t && (t ? this.element.setAttribute(this.name, "") : this.element.removeAttribute(this.name), this.value = t), this.__pendingValue = it;
472
475
  }
473
476
  }
474
- class Ia extends _r {
477
+ class Na extends pr {
475
478
  constructor(t, n, s) {
476
479
  super(t, n, s), this.single = s.length === 2 && s[0] === "" && s[1] === "";
477
480
  }
478
481
  _createPart() {
479
- return new Ra(this);
482
+ return new Aa(this);
480
483
  }
481
484
  _getValue() {
482
485
  return this.single ? this.parts[0].value : super._getValue();
@@ -485,21 +488,21 @@ class Ia extends _r {
485
488
  this.dirty && (this.dirty = !1, this.element[this.name] = this._getValue());
486
489
  }
487
490
  }
488
- class Ra extends Ps {
491
+ class Aa extends Es {
489
492
  }
490
- let gr = !1;
493
+ let fr = !1;
491
494
  (() => {
492
495
  try {
493
496
  const e = {
494
497
  get capture() {
495
- return gr = !0, !1;
498
+ return fr = !0, !1;
496
499
  }
497
500
  };
498
501
  window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
499
502
  } catch {
500
503
  }
501
504
  })();
502
- class Ha {
505
+ class Ia {
503
506
  constructor(t, n, s) {
504
507
  this.value = void 0, this.__pendingValue = void 0, this.element = t, this.eventName = n, this.eventContext = s, this.__boundHandleEvent = (i) => this.handleEvent(i);
505
508
  }
@@ -507,20 +510,20 @@ class Ha {
507
510
  this.__pendingValue = t;
508
511
  }
509
512
  commit() {
510
- for (; Ge(this.__pendingValue); ) {
511
- const o = this.__pendingValue;
512
- this.__pendingValue = it, o(this);
513
+ for (; ze(this.__pendingValue); ) {
514
+ const r = this.__pendingValue;
515
+ this.__pendingValue = it, r(this);
513
516
  }
514
517
  if (this.__pendingValue === it)
515
518
  return;
516
519
  const t = this.__pendingValue, n = this.value, s = t == null || n != null && (t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive), i = t != null && (n == null || s);
517
- s && this.element.removeEventListener(this.eventName, this.__boundHandleEvent, this.__options), i && (this.__options = Wa(t), this.element.addEventListener(this.eventName, this.__boundHandleEvent, this.__options)), this.value = t, this.__pendingValue = it;
520
+ s && this.element.removeEventListener(this.eventName, this.__boundHandleEvent, this.__options), i && (this.__options = Ra(t), this.element.addEventListener(this.eventName, this.__boundHandleEvent, this.__options)), this.value = t, this.__pendingValue = it;
518
521
  }
519
522
  handleEvent(t) {
520
523
  typeof this.value == "function" ? this.value.call(this.eventContext || this.element, t) : this.value.handleEvent(t);
521
524
  }
522
525
  }
523
- const Wa = (e) => e && (gr ? { capture: e.capture, passive: e.passive, once: e.once } : e.capture);
526
+ const Ra = (e) => e && (fr ? { capture: e.capture, passive: e.passive, once: e.once } : e.capture);
524
527
  /**
525
528
  * @license
526
529
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -534,7 +537,7 @@ const Wa = (e) => e && (gr ? { capture: e.capture, passive: e.passive, once: e.o
534
537
  * subject to an additional IP rights grant found at
535
538
  * http://polymer.github.io/PATENTS.txt
536
539
  */
537
- class za {
540
+ class Ha {
538
541
  /**
539
542
  * Create parts for an attribute-position binding, given the event, attribute
540
543
  * name, and string literals.
@@ -545,18 +548,18 @@ class za {
545
548
  * event for fully-controlled bindings with a single expression.
546
549
  */
547
550
  handleAttributeExpressions(t, n, s, i) {
548
- const o = n[0];
549
- return o === "." ? new Ia(t, n.slice(1), s).parts : o === "@" ? [new Ha(t, n.slice(1), i.eventContext)] : o === "?" ? [new Aa(t, n.slice(1), s)] : new _r(t, n, s).parts;
551
+ const r = n[0];
552
+ return r === "." ? new Na(t, n.slice(1), s).parts : r === "@" ? [new Ia(t, n.slice(1), i.eventContext)] : r === "?" ? [new La(t, n.slice(1), s)] : new pr(t, n, s).parts;
550
553
  }
551
554
  /**
552
555
  * Create parts for a text-position binding.
553
556
  * @param templateFactory
554
557
  */
555
558
  handleTextExpression(t) {
556
- return new re(t);
559
+ return new se(t);
557
560
  }
558
561
  }
559
- const mr = new za();
562
+ const _r = new Ha();
560
563
  /**
561
564
  * @license
562
565
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -570,19 +573,19 @@ const mr = new za();
570
573
  * subject to an additional IP rights grant found at
571
574
  * http://polymer.github.io/PATENTS.txt
572
575
  */
573
- function Va(e) {
574
- let t = Pi.get(e.type);
576
+ function Wa(e) {
577
+ let t = Ei.get(e.type);
575
578
  t === void 0 && (t = {
576
579
  stringsArray: /* @__PURE__ */ new WeakMap(),
577
580
  keyString: /* @__PURE__ */ new Map()
578
- }, Pi.set(e.type, t));
581
+ }, Ei.set(e.type, t));
579
582
  let n = t.stringsArray.get(e.strings);
580
583
  if (n !== void 0)
581
584
  return n;
582
- const s = e.strings.join(St);
583
- return n = t.keyString.get(s), n === void 0 && (n = new Ma(e, e.getTemplateElement()), t.keyString.set(s, n)), t.stringsArray.set(e.strings, n), n;
585
+ const s = e.strings.join(yt);
586
+ return n = t.keyString.get(s), n === void 0 && (n = new Ta(e, e.getTemplateElement()), t.keyString.set(s, n)), t.stringsArray.set(e.strings, n), n;
584
587
  }
585
- const Pi = /* @__PURE__ */ new Map();
588
+ const Ei = /* @__PURE__ */ new Map();
586
589
  /**
587
590
  * @license
588
591
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -596,9 +599,9 @@ const Pi = /* @__PURE__ */ new Map();
596
599
  * subject to an additional IP rights grant found at
597
600
  * http://polymer.github.io/PATENTS.txt
598
601
  */
599
- const ki = /* @__PURE__ */ new WeakMap(), ks = (e, t, n) => {
600
- let s = ki.get(t);
601
- s === void 0 && (bs(t, t.firstChild), ki.set(t, s = new re(Object.assign({ templateFactory: Va }, n))), s.appendInto(t)), s.setValue(e), s.commit();
602
+ const bi = /* @__PURE__ */ new WeakMap(), bs = (e, t, n) => {
603
+ let s = bi.get(t);
604
+ s === void 0 && (Ss(t, t.firstChild), bi.set(t, s = new se(Object.assign({ templateFactory: Wa }, n))), s.appendInto(t)), s.setValue(e), s.commit();
602
605
  };
603
606
  /**
604
607
  * @license
@@ -614,38 +617,40 @@ const ki = /* @__PURE__ */ new WeakMap(), ks = (e, t, n) => {
614
617
  * http://polymer.github.io/PATENTS.txt
615
618
  */
616
619
  typeof window < "u" && (window.litHtmlVersions || (window.litHtmlVersions = [])).push("1.4.1");
617
- const at = (e, ...t) => new $n(e, t, "html", mr), Ga = (e, ...t) => new fr(e, t, "svg", mr);
618
- let _e = /* @__PURE__ */ new Set();
619
- function Ot(e) {
620
- typeof e == "function" && (_e.size || globalThis.queueMicrotask(() => {
621
- const t = _e;
622
- _e = /* @__PURE__ */ new Set(), t.forEach((n) => n());
623
- }), _e.delete(e), _e.add(e));
624
- }
625
- function vr(e = "", t = "") {
620
+ const at = (e, ...t) => new yn(e, t, "html", _r), za = (e, ...t) => new dr(e, t, "svg", _r), { assign: Ga, setPrototypeOf: Va, fromEntries: Da, entries: Fa, keys: qa } = Object, Rn = /* @__PURE__ */ new Set();
621
+ function Tt(e) {
622
+ Rn.has(e) || (queueMicrotask(() => {
623
+ Rn.delete(e), e();
624
+ }), Rn.add(e));
625
+ }
626
+ function Sn(e, t) {
627
+ const n = t;
628
+ return Va(n, null), delete n.name, delete n.length, Ga(n, e), n;
629
+ }
630
+ function gr(e = "", t = "") {
626
631
  const { pathname: n, search: s, hash: i } = new URL(t, location.origin + e);
627
632
  return n + s + decodeURIComponent(i);
628
633
  }
629
- function wr(e, t, n, s) {
634
+ function mr(e, t, n, s) {
630
635
  return e.addEventListener(t, n, s), () => e.removeEventListener(t, n, s);
631
636
  }
632
- var mt, lt, vt, Ke, Zn;
633
- class Da extends EventTarget {
637
+ var vt, lt, wt, Ue, Jn;
638
+ class Ua extends EventTarget {
634
639
  constructor() {
635
640
  super(...arguments);
636
- b(this, Ke);
637
- b(this, mt, /* @__PURE__ */ new Map());
641
+ b(this, Ue);
642
+ b(this, vt, /* @__PURE__ */ new Map());
638
643
  b(this, lt);
639
- b(this, vt);
644
+ b(this, wt);
640
645
  }
641
646
  get size() {
642
- return p(this, mt).size;
647
+ return p(this, vt).size;
643
648
  }
644
649
  get first() {
645
650
  return p(this, lt);
646
651
  }
647
652
  get last() {
648
- return p(this, vt);
653
+ return p(this, wt);
649
654
  }
650
655
  isSuperLinkOf(n) {
651
656
  let s = n.first;
@@ -658,18 +663,18 @@ class Da extends EventTarget {
658
663
  return !1;
659
664
  }
660
665
  find(n) {
661
- return p(this, mt).get(n);
666
+ return p(this, vt).get(n);
662
667
  }
663
668
  // 添加到尾部,已存在时会删除老的项目
664
669
  // 如果是添加第一个,start 事件会在添加前触发,避免处理事件重复的逻辑
665
670
  add(n) {
666
- p(this, vt) || this.dispatchEvent(new CustomEvent("start"));
667
- const s = zn(this, Ke, Zn).call(this, n) || { value: n };
668
- s.prev = p(this, vt), s.prev && (s.prev.next = s), s.next = void 0, x(this, vt, s), p(this, lt) || x(this, lt, s), p(this, mt).set(n, s);
671
+ p(this, wt) || this.dispatchEvent(new CustomEvent("start"));
672
+ const s = In(this, Ue, Jn).call(this, n) || { value: n };
673
+ s.prev = p(this, wt), s.prev && (s.prev.next = s), s.next = void 0, x(this, wt, s), p(this, lt) || x(this, lt, s), p(this, vt).set(n, s);
669
674
  }
670
675
  // 删除这个元素后没有其他元素时立即出发 end 事件
671
676
  delete(n) {
672
- const s = zn(this, Ke, Zn).call(this, n);
677
+ const s = In(this, Ue, Jn).call(this, n);
673
678
  return p(this, lt) || this.dispatchEvent(new CustomEvent("end")), s;
674
679
  }
675
680
  // 获取头部元素
@@ -680,22 +685,22 @@ class Da extends EventTarget {
680
685
  return this.delete(n.value), n.value;
681
686
  }
682
687
  }
683
- mt = new WeakMap(), lt = new WeakMap(), vt = new WeakMap(), Ke = new WeakSet(), Zn = function(n) {
684
- const s = p(this, mt).get(n);
685
- return s && (s.prev ? s.prev.next = s.next : x(this, lt, s.next), s.next ? s.next.prev = s.prev : x(this, vt, s.prev), p(this, mt).delete(n)), s;
688
+ vt = new WeakMap(), lt = new WeakMap(), wt = new WeakMap(), Ue = new WeakSet(), Jn = function(n) {
689
+ const s = p(this, vt).get(n);
690
+ return s && (s.prev ? s.prev.next = s.next : x(this, lt, s.next), s.next ? s.next.prev = s.prev : x(this, wt, s.prev), p(this, vt).delete(n)), s;
686
691
  };
687
- class Fa extends WeakMap {
692
+ class Ba extends WeakMap {
688
693
  get(t) {
689
694
  let n = super.get(t);
690
695
  return n || (n = {}, this.set(t, n)), n;
691
696
  }
692
697
  }
693
- var Bt, _n;
694
- class De extends URLSearchParams {
698
+ var Ut, pn;
699
+ class Ge extends URLSearchParams {
695
700
  constructor(n) {
696
701
  super(n);
697
- b(this, Bt, (n) => typeof n == "string" ? n : JSON.stringify(n));
698
- b(this, _n, (n) => {
702
+ b(this, Ut, (n) => typeof n == "string" ? n : JSON.stringify(n));
703
+ b(this, pn, (n) => {
699
704
  if (!n) return null;
700
705
  try {
701
706
  return JSON.parse(n);
@@ -707,15 +712,15 @@ class De extends URLSearchParams {
707
712
  // support `{ key: ObjectValue }`
708
713
  concat(n) {
709
714
  let s;
710
- typeof n == "string" ? s = Object.fromEntries(new URLSearchParams(n).entries()) : s = n, Object.entries(s).forEach(([i, o]) => {
711
- this.append(i, p(this, Bt).call(this, o));
715
+ typeof n == "string" ? s = Da(new URLSearchParams(n).entries()) : s = n, Fa(s).forEach(([i, r]) => {
716
+ this.append(i, p(this, Ut).call(this, r));
712
717
  });
713
718
  }
714
719
  setAny(n, s) {
715
720
  if (Array.isArray(s))
716
- this.delete(n), s.forEach((i) => this.append(n, p(this, Bt).call(this, i)));
721
+ this.delete(n), s.forEach((i) => this.append(n, p(this, Ut).call(this, i)));
717
722
  else {
718
- const i = p(this, Bt).call(this, s);
723
+ const i = p(this, Ut).call(this, s);
719
724
  i ? this.set(n, i) : this.delete(n);
720
725
  }
721
726
  }
@@ -723,7 +728,7 @@ class De extends URLSearchParams {
723
728
  return this.getAnyAll(n)[0];
724
729
  }
725
730
  getAnyAll(n) {
726
- return this.getAll(n).filter((s) => s !== "").map((s) => p(this, _n).call(this, s));
731
+ return this.getAll(n).filter((s) => s !== "").map((s) => p(this, pn).call(this, s));
727
732
  }
728
733
  toString() {
729
734
  const n = super.toString();
@@ -733,130 +738,113 @@ class De extends URLSearchParams {
733
738
  return this.toString();
734
739
  }
735
740
  }
736
- Bt = new WeakMap(), _n = new WeakMap();
737
- function xs(e, ...t) {
741
+ Ut = new WeakMap(), pn = new WeakMap();
742
+ function Cs(e, ...t) {
738
743
  return e.reduce((n, s, i) => n + (t[i - 1] ?? "") + s);
739
744
  }
740
- const yr = xs;
741
- function En(e = 5) {
745
+ const vr = Cs;
746
+ function $n(e = 5) {
742
747
  const t = Math.random().toString(36).slice(2, 2 + e);
743
- return t.length < e ? t + En(e - t.length) : t;
748
+ return t.length < e ? t + $n(e - t.length) : t;
744
749
  }
745
- const Wl = { class: xs };
746
- function oe(e) {
750
+ const Wl = { class: Cs };
751
+ function ie(e) {
747
752
  return e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase());
748
753
  }
749
754
  function zl(e) {
750
755
  return e.replace(/-(.)/g, (t, n) => n.toUpperCase());
751
756
  }
752
- function Ts(e) {
753
- return Object.keys(e).forEach((t) => {
757
+ function Ps(e) {
758
+ return qa(e).forEach((t) => {
754
759
  delete e[t];
755
760
  }), e;
756
761
  }
757
- class yt extends Error {
762
+ class Ot extends Error {
758
763
  constructor(t) {
759
764
  super(t), this.message = `gem: ${this.message}`;
760
765
  }
761
766
  }
762
- function qa(e, t) {
767
+ function Ka(e, t) {
763
768
  const n = e.length;
764
769
  if (t.length !== n) return !0;
765
770
  for (let s = 0; s < n; s++)
766
771
  if (e[s] !== t[s]) return !0;
767
772
  return !1;
768
773
  }
769
- function Os(e, t, n) {
774
+ function ks(e, t, n) {
770
775
  let s = t;
771
776
  for (const i in e) {
772
- const o = n(i, e[i]);
773
- s += o ? o + t : "";
777
+ const r = n(i, e[i]);
778
+ s += r ? r + t : "";
774
779
  }
775
780
  return s;
776
781
  }
777
- function Vl(e) {
778
- return Os(
782
+ function Gl(e) {
783
+ return ks(
779
784
  e,
780
785
  ";",
781
- (t, n) => n || n === 0 ? `${oe(t)}:${n}` : ""
786
+ (t, n) => n || n === 0 ? `${ie(t)}:${n}` : ""
782
787
  );
783
788
  }
784
- function Ua(e) {
785
- return Os(e, " ", (t, n) => n ? t : "");
789
+ function ja(e) {
790
+ return ks(e, " ", (t, n) => n ? t : "");
786
791
  }
787
- const Gl = Ua;
792
+ const Vl = ja;
788
793
  function Dl(e) {
789
- return Os(
794
+ return ks(
790
795
  e,
791
796
  ",",
792
797
  (t, n) => n === !0 || t === n ? t : n ? `${t}:${n}` : ""
793
798
  );
794
799
  }
795
- const ne = /* @__PURE__ */ new WeakMap();
796
- function bn(e) {
797
- if (ne.has(e))
798
- throw new yt("argument error");
799
- return ne.set(e, /* @__PURE__ */ new Set()), e;
800
- }
801
- function It(e, t) {
802
- var n;
803
- Object.assign(e, t), (n = ne.get(e)) == null || n.forEach((s) => {
804
- Ot(s);
800
+ const ln = /* @__PURE__ */ new WeakMap();
801
+ function Rt(e) {
802
+ const t = Sn(e, (n) => {
803
+ var s;
804
+ Object.assign(t, n), (s = ln.get(t)) == null || s.forEach((i) => Tt(i));
805
805
  });
806
+ return ln.set(t, /* @__PURE__ */ new Set()), t;
806
807
  }
807
- function Xe(e) {
808
- const t = bn(e);
809
- return [t, (n) => It(t, n)];
810
- }
811
- function pt(e, t) {
812
- const n = ne.get(e);
813
- return n == null || n.add(t), () => {
814
- n == null || n.delete(t);
815
- };
816
- }
817
- function Ba(e, t) {
818
- const n = ne.get(e);
819
- n == null || n.delete(t);
808
+ function ft(e, t) {
809
+ const n = ln.get(e);
810
+ return n == null || n.add(t), () => n == null ? void 0 : n.delete(t);
820
811
  }
821
- const Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
812
+ const Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
822
813
  __proto__: null,
823
- StoreListenerMap: ne,
824
- connect: pt,
825
- createStore: bn,
826
- disconnect: Ba,
827
- updateStore: It,
828
- useStore: Xe
829
- }, Symbol.toStringTag, { value: "Module" })), { assign: Vn, defineProperty: ja, setPrototypeOf: Ja } = Object;
830
- ja(Symbol, "metadata", { value: Symbol.for("Symbol.metadata") });
831
- const Ms = (e) => typeof e == "function" && e(), Rt = Symbol.for("gem@sheetToken"), Cn = Symbol.for("gem@update"), Pn = "gem-style-boundary", Ls = "gem@render-error", Ya = Cn, Gn = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), xi = (e) => [...e.querySelectorAll("[data-gem-reflect]")].map((t) => t.target);
832
- class Qa {
814
+ StoreListenerMap: ln,
815
+ connect: ft,
816
+ createStore: Rt
817
+ }, Symbol.toStringTag, { value: "Module" })), { assign: Ci, defineProperty: Ya } = Object;
818
+ Ya(Symbol, "metadata", { value: Symbol.for("Symbol.metadata") });
819
+ const xs = (e) => typeof e == "function" && e(), It = Symbol.for("gem@sheetToken"), En = Symbol.for("gem@update"), wr = "gem-style-boundary", Ts = "gem@render-error", Qa = En, Hn = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Pi = (e) => [...e.querySelectorAll("[data-gem-reflect]")].map((t) => t.target);
820
+ class Xa {
833
821
  constructor(t) {
834
- T(this, "refSelector");
835
- T(this, "ele");
836
- T(this, "ref");
837
- const n = `ref-${En()}`;
822
+ O(this, "refSelector");
823
+ O(this, "ele");
824
+ O(this, "ref");
825
+ const n = `ref-${$n()}`;
838
826
  this.refSelector = `[ref=${n}]`, this.ele = t.internals.shadowRoot || t, this.ref = n;
839
827
  }
840
828
  get element() {
841
- for (const t of [this.ele, ...xi(this.ele)]) {
829
+ for (const t of [this.ele, ...Pi(this.ele)]) {
842
830
  const n = t.querySelector(this.refSelector);
843
831
  if (n) return n;
844
832
  }
845
833
  }
846
834
  get elements() {
847
- return [this.ele, ...xi(this.ele)].map((t) => [...t.querySelectorAll(this.refSelector)]).flat();
835
+ return [this.ele, ...Pi(this.ele)].map((t) => [...t.querySelectorAll(this.refSelector)]).flat();
848
836
  }
849
837
  toString() {
850
838
  return this.ref;
851
839
  }
852
840
  }
853
- let $r;
841
+ let Sr;
854
842
  var rt;
855
- class Xa extends CSSStyleSheet {
843
+ class Za extends CSSStyleSheet {
856
844
  constructor() {
857
845
  super(...arguments);
858
846
  b(this, rt);
859
- T(this, "cssText", "");
847
+ O(this, "cssText", "");
860
848
  }
861
849
  get element() {
862
850
  return p(this, rt) || (x(this, rt, document.createElement("style")), p(this, rt).textContent = this.cssText, p(this, rt).dataset.gemStyle = ""), p(this, rt);
@@ -866,109 +854,109 @@ class Xa extends CSSStyleSheet {
866
854
  }
867
855
  }
868
856
  rt = new WeakMap();
869
- var Mt, je, Kt, jt;
870
- class Za {
857
+ var Mt, Be, Bt, Kt;
858
+ class tc {
871
859
  constructor(t = "") {
872
860
  b(this, Mt, "");
873
- b(this, je, "");
861
+ b(this, Be, "");
874
862
  // 不需要 GC
863
+ b(this, Bt, /* @__PURE__ */ new Map());
875
864
  b(this, Kt, /* @__PURE__ */ new Map());
876
- b(this, jt, /* @__PURE__ */ new Map());
877
- x(this, je, t);
865
+ x(this, Be, t);
878
866
  }
879
867
  setContent(t) {
880
868
  x(this, Mt, t);
881
869
  }
882
870
  getStyle(t) {
883
- var o;
884
- const n = t && !((o = t.internals) != null && o.shadowRoot), s = n ? t.constructor : this;
885
- if (!p(this, Kt).has(s)) {
886
- const c = new Xa({ media: p(this, je) });
887
- p(this, Kt).set(s, c);
871
+ var r;
872
+ const n = t && !((r = t.internals) != null && r.shadowRoot), s = n ? t.constructor : this;
873
+ if (!p(this, Bt).has(s)) {
874
+ const c = new Za({ media: p(this, Be) });
875
+ p(this, Bt).set(s, c);
888
876
  }
889
- const i = p(this, Kt).get(s);
890
- if (!p(this, jt).has(i)) {
877
+ const i = p(this, Bt).get(s);
878
+ if (!p(this, Kt).has(i)) {
891
879
  let c = p(this, Mt), a = "";
892
- n && (a = `@scope (${t.tagName}) to (:state(${Pn}) > *)`, c = `${a}{ ${c} }`), i.replaceSync(c), p(this, jt).set(i, a);
880
+ n && (a = `@scope (${t.tagName}) to (:state(${wr}) > *)`, c = `${a}{ ${c} }`), i.replaceSync(c), p(this, Kt).set(i, a);
893
881
  }
894
882
  return i;
895
883
  }
896
884
  // 一般用于主题更新,不支持 layer
897
885
  updateStyle() {
898
- p(this, jt).forEach((t, n) => {
886
+ p(this, Kt).forEach((t, n) => {
899
887
  n.replaceSync(t ? `${t}{${p(this, Mt)}}` : p(this, Mt));
900
888
  });
901
889
  }
902
890
  }
903
- Mt = new WeakMap(), je = new WeakMap(), Kt = new WeakMap(), jt = new WeakMap();
904
- function kn(e, t) {
905
- const n = t ? e : "", s = t || e, i = new Za(n), o = { [Rt]: i };
891
+ Mt = new WeakMap(), Be = new WeakMap(), Bt = new WeakMap(), Kt = new WeakMap();
892
+ function bn(e, t) {
893
+ const n = t ? e : "", s = t || e, i = new tc(n), r = { [It]: i };
906
894
  let c = "";
907
895
  return typeof s == "string" ? c = s : Object.keys(s).forEach((a) => {
908
- const f = a === "$";
909
- o[a] = f || a.includes("-") ? a : `${a}-${En()}`, c += `${f ? ":scope,:host" : `.${o[a]}`} {${s[a]}}`;
910
- }), i.setContent(c), o;
896
+ const d = a === "$";
897
+ r[a] = d || a.includes("-") ? a : `${a}-${$n()}`, c += `${d ? ":where(:scope:not([hidden])),:host(:where(:not([hidden])))" : `.${r[a]}`} {${s[a]}}`;
898
+ }), i.setContent(c), r;
911
899
  }
912
- const Ti = (e, t, n) => {
900
+ const ki = (e, t, n) => {
913
901
  let s = !1;
914
902
  t.forEach((i) => {
915
- const o = e.get(i) || 0;
916
- s || (s = n === 1 && o === 0 || n === -1 && o === 1), e.set(i, o + n);
917
- }), s && Ot(Sr.get(e));
918
- }, tc = (e, t) => {
903
+ const r = e.get(i) || 0;
904
+ s || (s = n === 1 && r === 0 || n === -1 && r === 1), e.set(i, r + n);
905
+ }), s && Tt(yr.get(e));
906
+ }, ec = (e, t) => {
919
907
  const n = e.getRootNode();
920
- if (!Gn.has(n)) {
908
+ if (!Hn.has(n)) {
921
909
  const i = /* @__PURE__ */ new Map();
922
- Gn.set(n, i), Sr.set(i, () => {
923
- const o = n.adoptedStyleSheets.filter((c) => !i.has(c));
924
- i.forEach((c, a) => c && o.push(a)), n.adoptedStyleSheets = o.reverse();
910
+ Hn.set(n, i), yr.set(i, () => {
911
+ const r = n.adoptedStyleSheets.filter((c) => !i.has(c));
912
+ i.forEach((c, a) => c && r.push(a)), n.adoptedStyleSheets = r.reverse();
925
913
  });
926
914
  }
927
- const s = Gn.get(n);
928
- return Ti(s, t, 1), () => Ti(s, t, -1);
915
+ const s = Hn.get(n);
916
+ return ki(s, t, 1), () => ki(s, t, -1);
929
917
  };
930
- let Ns;
931
- function Oi(e) {
918
+ let Os;
919
+ function xi(e) {
932
920
  e == null || e.forEach((t) => {
933
- const { callback: n, getDep: s, values: i, preCallback: o } = t, c = s == null ? void 0 : s();
934
- (!s || !i || qa(i, c)) && (Ms(o), t.preCallback = n(c, i), t.values = c, t.initialized = !0);
921
+ const { callback: n, getDep: s, values: i, preCallback: r } = t, c = s == null ? void 0 : s();
922
+ (!s || !i || Ka(i, c)) && (xs(r), t.preCallback = n(c, i), t.values = c, t.initialized = !0);
935
923
  });
936
924
  }
937
- function Mi(e) {
938
- return e.filter((t) => (Ms(t.preCallback), t.initialized = !1, t.values = void 0, t.fixed));
925
+ function Ti(e) {
926
+ return e.filter((t) => (xs(t.preCallback), t.initialized = !1, t.values = void 0, t.fixed));
939
927
  }
940
- let As;
941
- const Ft = new Da(), ts = (e = performance.now()) => {
942
- if (performance.now() > e + 16) return requestAnimationFrame(ts);
928
+ let Ms;
929
+ const Ft = new Ua(), Yn = (e = performance.now()) => {
930
+ if (performance.now() > e + 16) return requestAnimationFrame(Yn);
943
931
  const t = Ft.get();
944
- t && (t(), ts(e));
932
+ t && (t(), Yn(e));
945
933
  };
946
- Ft.addEventListener("start", () => Ot(ts));
947
- let Dn;
948
- var Jt, Yt, J, ht, Lt, wt, Qt, ut, Xt, Zt, Je, st, Vt, es, gn, mn, Ye, te, Nt, vn, wn, yn, Qe, ee;
934
+ Ft.addEventListener("start", () => Tt(Yn));
935
+ let Wn;
936
+ var jt, Jt, j, ht, Lt, ut, Yt, dt, Qt, Xt, Ke, st, Gt, Qn, fn, _n, je, Zt, Nt, gn, mn, vn, Je, te;
949
937
  const qt = class qt extends HTMLElement {
950
938
  constructor() {
951
939
  super();
952
940
  b(this, st);
953
- b(this, Yt);
954
- b(this, J);
941
+ b(this, Jt);
942
+ b(this, j);
955
943
  b(this, ht, []);
956
944
  b(this, Lt, []);
957
- b(this, wt, []);
958
- b(this, Qt);
959
- b(this, ut);
945
+ b(this, ut, []);
946
+ b(this, Yt);
947
+ b(this, dt);
960
948
  // not in constructor 的近似值
949
+ b(this, Qt);
961
950
  b(this, Xt);
962
- b(this, Zt);
963
- b(this, Je);
951
+ b(this, Ke);
964
952
  /**
965
953
  * 每次更新完检查依赖,执行对应的副作用回调
966
954
  * */
967
- b(this, gn, () => {
968
- Oi(p(this, ht));
955
+ b(this, fn, () => {
956
+ xi(p(this, ht));
969
957
  });
970
- b(this, mn, () => {
971
- Oi(p(this, Lt));
958
+ b(this, _n, () => {
959
+ xi(p(this, Lt));
972
960
  });
973
961
  /**
974
962
  * - 条件渲染
@@ -976,57 +964,57 @@ const qt = class qt extends HTMLElement {
976
964
  * - 返回 `null` 时渲染空的子内容
977
965
  * - 返回 `undefined` 时不会更新现有内容
978
966
  * */
979
- b(this, Ye, (n) => {
967
+ b(this, je, (n) => {
980
968
  try {
981
- x(this, Zt, !0), p(this, mn).call(this);
982
- const s = p(this, Yt) === this, i = n ? n.render() : s ? void 0 : at`<slot></slot>`;
983
- if (x(this, Zt, !1), i === void 0) return;
984
- ks(i, p(this, Yt));
969
+ x(this, Xt, !0), p(this, _n).call(this);
970
+ const s = p(this, Jt) === this, i = n ? n.render() : s ? void 0 : at`<slot></slot>`;
971
+ if (x(this, Xt, !1), i === void 0) return;
972
+ bs(i, p(this, Jt));
985
973
  } catch (s) {
986
- this.dispatchEvent(new CustomEvent(Ls, { bubbles: !0, composed: !0, detail: s }));
974
+ this.dispatchEvent(new CustomEvent(Ts, { bubbles: !0, composed: !0, detail: s }));
987
975
  }
988
976
  });
989
- b(this, te, () => {
990
- const n = p(this, st, es);
991
- p(this, ut) && // 当有渲染函数,但是没一个符合条件时跳过
992
- (n || !p(this, wt).length) && (p(this, Ye).call(this, n), Ot(p(this, gn)));
977
+ b(this, Zt, () => {
978
+ const n = p(this, st, Qn);
979
+ p(this, dt) && // 当有渲染函数,但是没一个符合条件时跳过
980
+ (n || !p(this, ut).length) && (p(this, je).call(this, n), Tt(p(this, fn)));
993
981
  });
994
982
  b(this, Nt, () => {
995
- p(this, st, Vt).noBlocking ? Ft.add(p(this, te)) : p(this, te).call(this);
983
+ p(this, st, Gt).noBlocking ? Ft.add(p(this, Zt)) : p(this, Zt).call(this);
996
984
  });
997
- b(this, vn, () => {
998
- const { adoptedStyleSheets: n = [] } = p(this, st, Vt), { shadowRoot: s, sheets: i } = p(this, J), o = n.map((c) => c[Rt].getStyle(this));
985
+ b(this, gn, () => {
986
+ const { adoptedStyleSheets: n = [] } = p(this, st, Gt), { shadowRoot: s, sheets: i } = p(this, j), r = n.map((c) => c[It].getStyle(this));
999
987
  if (s)
1000
- s.adoptedStyleSheets = o.concat(i);
988
+ s.adoptedStyleSheets = r.concat(i);
1001
989
  else
1002
- return this.prepend(...i.map((c) => c.element)), tc(this, o);
990
+ return this.prepend(...i.map((c) => c.element)), ec(this, r);
1003
991
  });
1004
992
  /**
1005
993
  * 元素挂载后执行还未初始化的副作用
1006
994
  * */
1007
- b(this, wn, () => {
995
+ b(this, mn, () => {
1008
996
  var n;
1009
997
  (n = p(this, ht)) == null || n.forEach((s) => {
1010
- const { callback: i, getDep: o, initialized: c } = s;
1011
- c || (s.values = o == null ? void 0 : o(), s.preCallback = i(s.values), s.initialized = !0);
998
+ const { callback: i, getDep: r, initialized: c } = s;
999
+ c || (s.values = r == null ? void 0 : r(), s.preCallback = i(s.values), s.initialized = !0);
1012
1000
  });
1013
1001
  });
1014
- b(this, yn, () => {
1002
+ b(this, vn, () => {
1015
1003
  var n;
1016
1004
  this.willMount && this.memo(this.willMount.bind(this), () => []), this.mounted && this.effect(this.mounted.bind(this), () => []), this.updated && this.effect((s, i) => i && this.updated.apply(this)), this.unmounted && this.effect(
1017
1005
  () => this.unmounted.bind(this),
1018
1006
  () => []
1019
- ), !p(this, wt).length && this.render && p(this, wt).push({ render: this.render.bind(this), condition: (n = this.shouldUpdate) == null ? void 0 : n.bind(this) });
1007
+ ), !p(this, ut).length && this.render && p(this, ut).push({ render: this.render.bind(this), condition: (n = this.shouldUpdate) == null ? void 0 : n.bind(this) });
1020
1008
  });
1021
- b(this, Qe);
1022
- b(this, ee, async () => {
1023
- if (p(this, Qt)) {
1024
- x(this, Qt, !1);
1009
+ b(this, Je);
1010
+ b(this, te, async () => {
1011
+ if (p(this, Yt)) {
1012
+ x(this, Yt, !1);
1025
1013
  return;
1026
1014
  }
1027
- p(this, yn).call(this);
1028
- const { observedStores: n } = p(this, st, Vt);
1029
- x(this, Xt, !0), x(this, Qe, n == null ? void 0 : n.map((s) => pt(s, p(this, Nt)))), p(this, Ye).call(this, p(this, st, es)), x(this, ut, !0), x(this, Je, p(this, vn).call(this)), await Promise.resolve(), p(this, wn).call(this);
1015
+ p(this, vn).call(this);
1016
+ const { observedStores: n, mode: s, penetrable: i } = p(this, st, Gt);
1017
+ !s && p(this, ut).length && !i && p(this, j).states.add(wr), x(this, Qt, !0), x(this, Je, n == null ? void 0 : n.map((r) => ft(r, p(this, Nt)))), p(this, je).call(this, p(this, st, Qn)), x(this, dt, !0), x(this, Ke, p(this, gn).call(this)), await Promise.resolve(), p(this, mn).call(this);
1030
1018
  });
1031
1019
  /**
1032
1020
  * @helper
@@ -1042,14 +1030,14 @@ const qt = class qt extends HTMLElement {
1042
1030
  * }
1043
1031
  * ```
1044
1032
  * */
1045
- T(this, "effect", (n, s) => {
1033
+ O(this, "effect", (n, s) => {
1046
1034
  const i = {
1047
1035
  callback: n,
1048
1036
  getDep: s,
1049
- initialized: p(this, ut),
1050
- fixed: !p(this, Xt)
1037
+ initialized: p(this, dt),
1038
+ fixed: !p(this, Qt)
1051
1039
  };
1052
- p(this, ut) && (i.values = s == null ? void 0 : s(), i.preCallback = n(i.values)), p(this, ht).push(i);
1040
+ p(this, dt) && (i.values = s == null ? void 0 : s(), i.preCallback = n(i.values)), p(this, ht).push(i);
1053
1041
  });
1054
1042
  /**
1055
1043
  * @helper
@@ -1068,38 +1056,38 @@ const qt = class qt extends HTMLElement {
1068
1056
  * }
1069
1057
  * ```
1070
1058
  * */
1071
- T(this, "memo", (n, s) => {
1059
+ O(this, "memo", (n, s) => {
1072
1060
  p(this, Lt).push({
1073
1061
  callback: n,
1074
1062
  getDep: s,
1075
- fixed: !p(this, Xt)
1063
+ fixed: !p(this, Qt)
1076
1064
  });
1077
1065
  });
1078
1066
  /**
1079
1067
  * @helper
1080
1068
  * async
1081
1069
  */
1082
- T(this, "update", () => Ot(p(this, Nt)));
1083
- Dn = this;
1084
- const { mode: n, serializable: s, delegatesFocus: i, slotAssignment: o, aria: c } = p(this, st, Vt), { focusable: a, ...f } = c || {};
1085
- x(this, Yt, n ? this.attachShadow({ mode: n, serializable: s, delegatesFocus: i, slotAssignment: o }) : this), x(this, J, this.attachInternals()), p(this, J).stateList = [], p(this, J).sheets = [], Vn(p(this, J), f), n || p(this, J).states.add(Pn);
1086
- let h;
1070
+ O(this, "update", () => Tt(p(this, Nt)));
1071
+ Wn = this;
1072
+ const { mode: n, serializable: s, delegatesFocus: i, slotAssignment: r, aria: c } = p(this, st, Gt), { focusable: a, ...d } = c || {};
1073
+ x(this, Jt, n ? this.attachShadow({ mode: n, serializable: s, delegatesFocus: i, slotAssignment: r }) : this), x(this, j, this.attachInternals()), p(this, j).stateList = [], p(this, j).sheets = [], Ci(p(this, j), d);
1074
+ let f;
1087
1075
  p(this, ht).push({
1088
1076
  fixed: !0,
1089
1077
  getDep: () => [this.disabled],
1090
- callback: ([m = !1]) => {
1091
- if (h === void 0 && (h = this.hasAttribute("tabindex")), p(this, J).ariaDisabled = String(m), a && !h && (this.tabIndex = -Number(m)), (a || i) && m)
1092
- return wr(this, "click", (r) => r.isTrusted && r.stopImmediatePropagation(), {
1078
+ callback: ([g = !1]) => {
1079
+ if (f === void 0 && (f = this.hasAttribute("tabindex")), p(this, j).ariaDisabled = String(g), a && !f && (this.tabIndex = -Number(g)), (a || i) && g)
1080
+ return mr(this, "click", (o) => o.isTrusted && o.stopImmediatePropagation(), {
1093
1081
  capture: !0
1094
1082
  });
1095
1083
  }
1096
1084
  });
1097
1085
  }
1098
- [Ya]() {
1099
- p(this, ut) && Ot(p(this, Nt));
1086
+ [Qa]() {
1087
+ p(this, dt) && Tt(p(this, Nt));
1100
1088
  }
1101
1089
  get internals() {
1102
- return p(this, J);
1090
+ return p(this, j);
1103
1091
  }
1104
1092
  /**
1105
1093
  * @private
@@ -1107,14 +1095,14 @@ const qt = class qt extends HTMLElement {
1107
1095
  * use `mounted`
1108
1096
  */
1109
1097
  connectedCallback() {
1110
- return p(this, st, Vt).noBlocking ? Ft.add(p(this, ee)) : p(this, ee).call(this), p(qt, Jt);
1098
+ return p(this, st, Gt).noBlocking ? Ft.add(p(this, te)) : p(this, te).call(this), p(qt, jt);
1111
1099
  }
1112
1100
  /**
1113
1101
  * @private
1114
1102
  * @final
1115
1103
  */
1116
1104
  adoptedCallback() {
1117
- return p(qt, Jt);
1105
+ return p(qt, jt);
1118
1106
  }
1119
1107
  /**
1120
1108
  * @private
@@ -1124,156 +1112,155 @@ const qt = class qt extends HTMLElement {
1124
1112
  disconnectedCallback() {
1125
1113
  var n;
1126
1114
  if (this.isConnected) {
1127
- x(this, Qt, !0);
1115
+ x(this, Yt, !0);
1128
1116
  return;
1129
1117
  }
1130
- return Ft.delete(p(this, ee)), Ft.delete(p(this, te)), x(this, ut, !1), (n = p(this, Qe)) == null || n.forEach((s) => s()), x(this, ht, Mi(p(this, ht))), x(this, Lt, Mi(p(this, Lt))), Ms(p(this, Je)), p(qt, Jt);
1118
+ return Ft.delete(p(this, te)), Ft.delete(p(this, Zt)), x(this, dt, !1), (n = p(this, Je)) == null || n.forEach((s) => s()), x(this, ht, Ti(p(this, ht))), x(this, Lt, Ti(p(this, Lt))), xs(p(this, Ke)), p(qt, jt);
1131
1119
  }
1132
1120
  };
1133
- Jt = new WeakMap(), Yt = new WeakMap(), J = new WeakMap(), ht = new WeakMap(), Lt = new WeakMap(), wt = new WeakMap(), Qt = new WeakMap(), ut = new WeakMap(), Xt = new WeakMap(), Zt = new WeakMap(), Je = new WeakMap(), st = new WeakSet(), Vt = function() {
1121
+ jt = new WeakMap(), Jt = new WeakMap(), j = new WeakMap(), ht = new WeakMap(), Lt = new WeakMap(), ut = new WeakMap(), Yt = new WeakMap(), dt = new WeakMap(), Qt = new WeakMap(), Xt = new WeakMap(), Ke = new WeakMap(), st = new WeakSet(), Gt = function() {
1134
1122
  return this.constructor[Symbol.metadata];
1135
- }, es = function() {
1136
- return p(this, wt).find((n) => !n.condition || n.condition());
1137
- }, gn = new WeakMap(), mn = new WeakMap(), Ye = new WeakMap(), te = new WeakMap(), Nt = new WeakMap(), vn = new WeakMap(), wn = new WeakMap(), yn = new WeakMap(), Qe = new WeakMap(), ee = new WeakMap(), // 禁止覆盖自定义元素原生生命周期方法
1123
+ }, Qn = function() {
1124
+ return p(this, ut).find((n) => !n.condition || n.condition());
1125
+ }, fn = new WeakMap(), _n = new WeakMap(), je = new WeakMap(), Zt = new WeakMap(), Nt = new WeakMap(), gn = new WeakMap(), mn = new WeakMap(), vn = new WeakMap(), Je = new WeakMap(), te = new WeakMap(), // 禁止覆盖自定义元素原生生命周期方法
1138
1126
  // https://github.com/microsoft/TypeScript/issues/21388#issuecomment-934345226
1139
- b(qt, Jt, Symbol()), Ns = (n) => {
1140
- const s = Dn, i = (o) => {
1141
- Vn(i, o), p(s, Zt) || Ot(p(s, Nt));
1142
- };
1143
- return Ja(i, null), delete i.name, delete i.length, p(s, J).stateList.push(i), Vn(i, n), i;
1144
- }, $r = () => new Qa(Dn), As = (n, s) => p(n, wt).push(s);
1127
+ b(qt, jt, Symbol()), Os = (n) => {
1128
+ const s = Wn, i = Sn(n, (r) => {
1129
+ Ci(i, r), p(s, Xt) || Tt(p(s, Nt));
1130
+ });
1131
+ return p(s, j).stateList.push(i), i;
1132
+ }, Sr = () => new Xa(Wn), Ms = (n, s) => p(n, ut).push(s);
1145
1133
  let B = qt;
1146
- const ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1134
+ const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1147
1135
  __proto__: null,
1148
- BoundaryCSSState: Pn,
1149
1136
  GemElement: B,
1150
- RenderErrorEvent: Ls,
1151
- SVGTemplateResult: fr,
1152
- SheetToken: Rt,
1153
- TemplateResult: $n,
1154
- UpdateToken: Cn,
1155
- createCSSSheet: kn,
1137
+ RenderErrorEvent: Ts,
1138
+ SVGTemplateResult: dr,
1139
+ SheetToken: It,
1140
+ TemplateResult: yn,
1141
+ UpdateToken: En,
1142
+ createCSSSheet: bn,
1156
1143
  get createRef() {
1157
- return $r;
1144
+ return Sr;
1158
1145
  },
1159
1146
  get createState() {
1160
- return Ns;
1147
+ return Os;
1161
1148
  },
1162
1149
  get createTemplate() {
1163
- return As;
1150
+ return Ms;
1164
1151
  },
1165
- directive: Sn,
1152
+ directive: wn,
1166
1153
  html: at,
1167
- render: ks,
1168
- svg: Ga
1169
- }, Symbol.toStringTag, { value: "Module" })), nc = "0.0.0", sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1154
+ render: bs,
1155
+ svg: za
1156
+ }, Symbol.toStringTag, { value: "Module" })), sc = "0.0.0", ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1170
1157
  __proto__: null,
1171
- version: nc
1172
- }, Symbol.toStringTag, { value: "Module" })), { deleteProperty: ic, getOwnPropertyDescriptor: Er, defineProperty: xn } = Reflect, { getPrototypeOf: Pt, assign: br } = Object, Li = new Fa();
1173
- function Et(e, t, n) {
1158
+ version: sc
1159
+ }, Symbol.toStringTag, { value: "Module" })), { deleteProperty: rc, getOwnPropertyDescriptor: $r, defineProperty: Cn } = Reflect, { getPrototypeOf: Ct, assign: Er } = Object, Oi = new Ba();
1160
+ function $t(e, t, n) {
1174
1161
  const s = e.metadata;
1175
- if (!Er(s, t)) {
1162
+ if (!$r(s, t)) {
1176
1163
  const i = new Set(s[t]);
1177
- i.delete(n), xn(s, t, {
1164
+ i.delete(n), Cn(s, t, {
1178
1165
  value: [...i]
1179
1166
  });
1180
1167
  }
1181
1168
  s[t].push(n);
1182
1169
  }
1183
- function Tn(e, t) {
1184
- const { value: n } = Er(e, t);
1185
- ic(e, t), e[t] = n;
1170
+ function Pn(e, t) {
1171
+ const { value: n } = $r(e, t);
1172
+ rc(e, t), e[t] = n;
1186
1173
  }
1187
- const Fe = /* @__PURE__ */ new WeakMap(), { setAttribute: Cr, toggleAttribute: rc, removeAttribute: Pr } = Element.prototype;
1174
+ const Ve = /* @__PURE__ */ new WeakMap(), { setAttribute: br, toggleAttribute: oc, removeAttribute: Cr } = Element.prototype;
1188
1175
  B.prototype.setAttribute = function(e, t) {
1189
1176
  var s;
1190
- const n = (s = Fe.get(Pt(this))) == null ? void 0 : s.get(e);
1191
- if (!n) return Cr.call(this, e, t);
1177
+ const n = (s = Ve.get(Ct(this))) == null ? void 0 : s.get(e);
1178
+ if (!n) return br.call(this, e, t);
1192
1179
  this[n] = t;
1193
1180
  };
1194
1181
  B.prototype.removeAttribute = function(e) {
1195
1182
  var n;
1196
- const t = (n = Fe.get(Pt(this))) == null ? void 0 : n.get(e);
1197
- if (!t) return Pr.call(this, e);
1183
+ const t = (n = Ve.get(Ct(this))) == null ? void 0 : n.get(e);
1184
+ if (!t) return Cr.call(this, e);
1198
1185
  this[t] = null;
1199
1186
  };
1200
1187
  B.prototype.toggleAttribute = function(e, t) {
1201
1188
  var s;
1202
- const n = (s = Fe.get(Pt(this))) == null ? void 0 : s.get(e);
1203
- return n ? this[n] = t ?? !this.hasAttribute(e) : rc.call(this, e, t);
1189
+ const n = (s = Ve.get(Ct(this))) == null ? void 0 : s.get(e);
1190
+ return n ? this[n] = t ?? !this.hasAttribute(e) : oc.call(this, e, t);
1204
1191
  };
1205
- function oc() {
1192
+ function ac() {
1206
1193
  }
1207
- const Ni = Symbol("event handle");
1208
- function Is(e, t, { attr: n, attrType: s, event: i, eventOptions: o } = {}) {
1209
- xn(e, t, {
1194
+ const Mi = Symbol("event handle");
1195
+ function Ls(e, t, { attr: n, attrType: s, event: i, eventOptions: r } = {}) {
1196
+ Cn(e, t, {
1210
1197
  configurable: !0,
1211
1198
  get() {
1212
- const c = Li.get(this)[t];
1213
- return i && !c ? (this[t] = oc, this[t]) : c;
1199
+ const c = Oi.get(this)[t];
1200
+ return i && !c ? (this[t] = ac, this[t]) : c;
1214
1201
  },
1215
1202
  set(c) {
1216
- const a = this, f = Li.get(a);
1217
- n && (c = s === Boolean && c === "" ? !0 : s(c || ""), c ? Cr.call(this, n, s === Boolean ? "" : c) : Pr.call(this, n)), c !== f[t] && (i ? (f[t] = c != null && c[Ni] ? c : (h, m) => {
1218
- const r = new CustomEvent(i, { ...m, ...o, detail: h });
1219
- a.dispatchEvent(r), c(h, m);
1220
- }, f[t][Ni] = !0) : (f[t] = c, this[Cn]()));
1203
+ const a = this, d = Oi.get(a);
1204
+ n && (c = s === Boolean && c === "" ? !0 : s(c || ""), c ? br.call(this, n, s === Boolean ? "" : c) : Cr.call(this, n)), c !== d[t] && (i ? (d[t] = c != null && c[Mi] ? c : (f, g) => {
1205
+ const o = new CustomEvent(i, { ...g, ...r, detail: f });
1206
+ a.dispatchEvent(o), c(f, g);
1207
+ }, d[t][Mi] = !0) : (d[t] = c, this[En]()));
1221
1208
  }
1222
1209
  });
1223
1210
  }
1224
- function Rs(e, t) {
1225
- const n = e.name, s = oe(n);
1211
+ function Ns(e, t) {
1212
+ const n = e.name, s = ie(n);
1226
1213
  return e.addInitializer(function() {
1227
- const i = Pt(this);
1214
+ const i = Ct(this);
1228
1215
  if (!i.hasOwnProperty(n)) {
1229
- Et(e, "observedAttributes", s), Is(i, n, { attr: s, attrType: t });
1230
- const o = Fe.get(i) || /* @__PURE__ */ new Map();
1231
- o.set(s, n), Fe.set(i, o);
1216
+ $t(e, "observedAttributes", s), Ls(i, n, { attr: s, attrType: t });
1217
+ const r = Ve.get(i) || /* @__PURE__ */ new Map();
1218
+ r.set(s, n), Ve.set(i, r);
1232
1219
  }
1233
- Tn(this, n);
1220
+ Pn(this, n);
1234
1221
  }), function(i) {
1235
1222
  return this.getAttribute(s) ?? i;
1236
1223
  };
1237
1224
  }
1238
- function G(e, t) {
1239
- return Rs(t, String);
1225
+ function V(e, t) {
1226
+ return Ns(t, String);
1240
1227
  }
1241
- function On(e, t) {
1242
- return Rs(t, Boolean);
1228
+ function kn(e, t) {
1229
+ return Ns(t, Boolean);
1243
1230
  }
1244
- function ac(e, t) {
1245
- return Rs(t, Number);
1231
+ function cc(e, t) {
1232
+ return Ns(t, Number);
1246
1233
  }
1247
1234
  function U(e, t) {
1248
1235
  const n = t.name;
1249
1236
  return t.addInitializer(function() {
1250
- const s = Pt(this);
1251
- s.hasOwnProperty(n) || (Et(t, "observedProperties", n), Is(s, n)), Tn(this, n);
1237
+ const s = Ct(this);
1238
+ s.hasOwnProperty(n) || ($t(t, "observedProperties", n), Ls(s, n)), Pn(this, n);
1252
1239
  }), function(s) {
1253
1240
  return this[n] ?? s;
1254
1241
  };
1255
1242
  }
1256
- function kr(e) {
1243
+ function Pr(e) {
1257
1244
  return function(t, n) {
1258
- const { addInitializer: s, name: i, access: o, kind: c } = n;
1245
+ const { addInitializer: s, name: i, access: r, kind: c } = n;
1259
1246
  s(function() {
1260
1247
  const a = e && (() => e(this));
1261
1248
  if (c === "getter") {
1262
- if (n.private) throw new yt("not support");
1263
- this.memo(() => xn(this, i, { configurable: !0, value: o.get(this) }), a);
1249
+ if (n.private) throw new Ot("not support");
1250
+ this.memo(() => Cn(this, i, { configurable: !0, value: r.get(this) }), a);
1264
1251
  } else
1265
- this.memo(o.get(this).bind(this), a);
1252
+ this.memo(r.get(this).bind(this), a);
1266
1253
  });
1267
1254
  };
1268
1255
  }
1269
- function $t(e) {
1256
+ function St(e) {
1270
1257
  return function(t, { addInitializer: n, access: s }) {
1271
1258
  n(function() {
1272
1259
  this.effect(s.get(this).bind(this), e && (() => e(this)));
1273
1260
  });
1274
1261
  };
1275
1262
  }
1276
- function cc() {
1263
+ function lc() {
1277
1264
  return function(e, { addInitializer: t, access: n }) {
1278
1265
  t(function() {
1279
1266
  this.effect(
@@ -1283,100 +1270,100 @@ function cc() {
1283
1270
  });
1284
1271
  };
1285
1272
  }
1286
- function Mn() {
1287
- return kr(() => []);
1273
+ function As() {
1274
+ return Pr(() => []);
1288
1275
  }
1289
- function qe() {
1290
- return $t(() => []);
1276
+ function De() {
1277
+ return St(() => []);
1291
1278
  }
1292
- function xr(e) {
1279
+ function kr(e) {
1293
1280
  return function(t, { addInitializer: n, access: s }) {
1294
1281
  n(function() {
1295
- As(this, {
1282
+ Ms(this, {
1296
1283
  render: s.get(this).bind(this),
1297
1284
  condition: e && (() => e(this))
1298
1285
  });
1299
1286
  });
1300
1287
  };
1301
1288
  }
1302
- function lc() {
1289
+ function hc() {
1303
1290
  return function(e, { addInitializer: t, access: n }) {
1304
1291
  t(function() {
1305
- this.addEventListener(Ls, ({ detail: s }) => {
1306
- ks(n.get(this).apply(this, [s]), this.internals.shadowRoot || this);
1292
+ this.addEventListener(Ts, ({ detail: s }) => {
1293
+ bs(n.get(this).apply(this, [s]), this.internals.shadowRoot || this);
1307
1294
  });
1308
1295
  });
1309
1296
  };
1310
1297
  }
1311
- function hc(e, t, n) {
1312
- xn(e, t, {
1298
+ function uc(e, t, n) {
1299
+ Cn(e, t, {
1313
1300
  configurable: !0,
1314
1301
  get() {
1315
1302
  const s = this, { states: i } = s.internals;
1316
1303
  return i == null ? void 0 : i.has(n);
1317
1304
  },
1318
1305
  set(s) {
1319
- const i = this, { states: o } = i.internals;
1320
- s ? o == null || o.add(n) : o == null || o.delete(n);
1306
+ const i = this, { states: r } = i.internals;
1307
+ s ? r == null || r.add(n) : r == null || r.delete(n);
1321
1308
  }
1322
1309
  });
1323
1310
  }
1324
- function Ln(e, t) {
1311
+ function xn(e, t) {
1325
1312
  t.addInitializer(function() {
1326
- const n = Pt(this), s = t.name;
1313
+ const n = Ct(this), s = t.name;
1327
1314
  if (!n.hasOwnProperty(s)) {
1328
- const i = oe(s);
1329
- Et(t, "definedCSSStates", i), hc(n, s, i);
1315
+ const i = ie(s);
1316
+ $t(t, "definedCSSStates", i), uc(n, s, i);
1330
1317
  }
1331
- Tn(this, s);
1318
+ Pn(this, s);
1332
1319
  });
1333
1320
  }
1334
- function Tr(e, t, n, s) {
1335
- const i = e.name, o = oe(i);
1321
+ function xr(e, t, n, s) {
1322
+ const i = e.name, r = ie(i);
1336
1323
  if (e.static)
1337
- Et(e, n, o);
1324
+ $t(e, n, r);
1338
1325
  else {
1339
- const c = Pt(t);
1340
- c[i] || (c[i] = o, Et(e, n, o));
1326
+ const c = Ct(t);
1327
+ c[i] || (c[i] = r, $t(e, n, r));
1341
1328
  }
1342
- return s || o;
1329
+ return s || r;
1343
1330
  }
1344
- function uc(e, t) {
1331
+ function dc(e, t) {
1345
1332
  return function(n) {
1346
- return Tr(t, this, "definedSlots", n);
1333
+ return xr(t, this, "definedSlots", n);
1347
1334
  };
1348
1335
  }
1349
- function Or(e, t) {
1336
+ function Tr(e, t) {
1350
1337
  return function(n) {
1351
- return Tr(t, this, "definedParts", n);
1338
+ return xr(t, this, "definedParts", n);
1352
1339
  };
1353
1340
  }
1354
- function ye(e, t) {
1341
+ function me(e, t) {
1355
1342
  t.addInitializer(function() {
1356
- Mr(t, this, t.name);
1343
+ Or(t, this, t.name);
1357
1344
  });
1358
1345
  }
1359
- function dc(e, t) {
1346
+ function pc(e, t) {
1360
1347
  t.addInitializer(function() {
1361
- Mr(t, this, t.name, { bubbles: !0, composed: !0 });
1348
+ Or(t, this, t.name, { bubbles: !0, composed: !0 });
1362
1349
  });
1363
1350
  }
1364
- function Mr(e, t, n, s) {
1365
- const i = Pt(t);
1351
+ function Or(e, t, n, s) {
1352
+ const i = Ct(t);
1366
1353
  if (!i.hasOwnProperty(n)) {
1367
- const o = oe(n);
1368
- Et(e, "definedEvents", o), Is(i, n, { event: o, eventOptions: s });
1354
+ const r = ie(n);
1355
+ $t(e, "definedEvents", r), Ls(i, n, { event: r, eventOptions: s });
1369
1356
  }
1370
- Tn(t, n);
1357
+ Pn(t, n);
1371
1358
  }
1372
- function Hs(e) {
1359
+ function Is(e) {
1373
1360
  return function(t, n) {
1374
- Et(n, "adoptedStyleSheets", e);
1361
+ $t(n, "adoptedStyleSheets", e);
1375
1362
  };
1376
1363
  }
1377
- function Nn(e) {
1364
+ function Tn(e) {
1378
1365
  return function(t, n) {
1379
- Et(n, "observedStores", e);
1366
+ $t(n, "observedStores", e);
1380
1367
  };
1381
1368
  }
1382
1369
  function Ht({
@@ -1385,39 +1372,45 @@ function Ht({
1385
1372
  delegatesFocus: n,
1386
1373
  slotAssignment: s
1387
1374
  } = {}) {
1388
- return function(i, o) {
1389
- const c = o.metadata;
1390
- br(c, { mode: e, serializable: t, delegatesFocus: n, slotAssignment: s });
1375
+ return function(i, r) {
1376
+ const c = r.metadata;
1377
+ Er(c, { mode: e, serializable: t, delegatesFocus: n, slotAssignment: s });
1378
+ };
1379
+ }
1380
+ function Mr({ penetrable: e }) {
1381
+ return function(t, n) {
1382
+ const s = n.metadata;
1383
+ s.penetrable = e;
1391
1384
  };
1392
1385
  }
1393
- function pc() {
1386
+ function fc() {
1394
1387
  return function(e, t) {
1395
1388
  const n = t.metadata;
1396
1389
  n.noBlocking = !0;
1397
1390
  };
1398
1391
  }
1399
- function An(e) {
1392
+ function On(e) {
1400
1393
  return function(t, n) {
1401
1394
  const s = n.metadata;
1402
1395
  s.aria = { ...s.aria, ...e };
1403
1396
  };
1404
1397
  }
1405
- function fc(e) {
1398
+ function _c(e) {
1406
1399
  return function(t, { addInitializer: n }) {
1407
1400
  n(function() {
1408
1401
  customElements.define(e, t);
1409
1402
  });
1410
1403
  };
1411
1404
  }
1412
- window.__GEM_DEVTOOLS__HOOK__ && !window.__GEM_DEVTOOLS__HOOK__.GemElement && br(window.__GEM_DEVTOOLS__HOOK__, {
1413
- ...ec,
1414
- ...Oa,
1415
- ...Ka,
1416
- ...sc
1405
+ window.__GEM_DEVTOOLS__HOOK__ && !window.__GEM_DEVTOOLS__HOOK__.GemElement && Er(window.__GEM_DEVTOOLS__HOOK__, {
1406
+ ...nc,
1407
+ ...xa,
1408
+ ...Ja,
1409
+ ...ic
1417
1410
  });
1418
- const Y = window.history, Lr = Y.pushState.bind(Y), Nr = Y.replaceState.bind(Y);
1419
- let _c = 0;
1420
- const Ws = () => `${performance.now()}-${++_c}`, [I, Ut] = Xe({
1411
+ const J = window.history, Lr = J.pushState.bind(J), Nr = J.replaceState.bind(J);
1412
+ let gc = 0;
1413
+ const Rs = () => `${performance.now()}-${++gc}`, T = Rt({
1421
1414
  $hasCloseHandle: !1,
1422
1415
  $hasOpenHandle: !1,
1423
1416
  $hasShouldCloseHandle: !1,
@@ -1425,124 +1418,124 @@ const Ws = () => `${performance.now()}-${++_c}`, [I, Ut] = Xe({
1425
1418
  }), q = /* @__PURE__ */ new Map();
1426
1419
  function Ar(e) {
1427
1420
  const { $key: t, $hasCloseHandle: n, $hasOpenHandle: s, $hasShouldCloseHandle: i } = e || {};
1428
- if (I.$key !== t) {
1429
- if (t) throw new yt("`$key` is not allowed");
1430
- if (n) throw new yt("`$hasCloseHandle` is not allowed");
1431
- if (s) throw new yt("`$hasOpenHandle` is not allowed");
1432
- if (i) throw new yt("`$hasShouldCloseHandle` is not allowed");
1421
+ if (T.$key !== t) {
1422
+ if (t) throw new Ot("`$key` is not allowed");
1423
+ if (n) throw new Ot("`$hasCloseHandle` is not allowed");
1424
+ if (s) throw new Ot("`$hasOpenHandle` is not allowed");
1425
+ if (i) throw new Ot("`$hasShouldCloseHandle` is not allowed");
1433
1426
  }
1434
1427
  }
1435
1428
  function Ir(e) {
1436
- return Q.basePath ? Q.basePath + e : e;
1429
+ return Y.basePath ? Y.basePath + e : e;
1437
1430
  }
1438
- function ns(e) {
1439
- return e === Q.basePath ? "/" : e.replace(new RegExp(`^${Q.basePath}/`), "/");
1431
+ function Xn(e) {
1432
+ return e === Y.basePath ? "/" : e.replace(new RegExp(`^${Y.basePath}/`), "/");
1440
1433
  }
1441
- function zs() {
1442
- Q.dispatchEvent(new CustomEvent("beforechange"));
1434
+ function Hs() {
1435
+ Y.dispatchEvent(new CustomEvent("beforechange"));
1443
1436
  }
1444
- function dn(e) {
1445
- const t = q.get(I.$key) || { path: ns(location.pathname), query: new De() }, n = e.path ? vr(t.path, e.path) : ns(location.pathname), s = new De(e.query ?? (e.path ? "" : location.search)), i = String(s) !== String(t.query), o = i ? s : t.query, c = n !== t.path || i, a = e.title || (c ? "" : document.title), f = e.close || e.data || e.open || e.shouldClose, h = decodeURIComponent(e.hash ?? (!c && f ? location.hash : ""));
1446
- return { ...e, title: a, path: n, query: o, hash: h };
1437
+ function hn(e) {
1438
+ const t = q.get(T.$key) || { path: Xn(location.pathname), query: new Ge() }, n = e.path ? gr(t.path, e.path) : Xn(location.pathname), s = new Ge(e.query ?? (e.path ? "" : location.search)), i = String(s) !== String(t.query), r = i ? s : t.query, c = n !== t.path || i, a = e.title || (c ? "" : document.title), d = e.close || e.data || e.open || e.shouldClose, f = decodeURIComponent(e.hash ?? (!c && d ? location.hash : ""));
1439
+ return { ...e, title: a, path: n, query: r, hash: f };
1447
1440
  }
1448
- function Ai(e, t) {
1441
+ function Li(e, t) {
1449
1442
  Ar(e.data);
1450
- const n = dn(e), { title: s, path: i, query: o, hash: c, close: a, open: f, shouldClose: h, data: m } = n, r = {
1443
+ const n = hn(e), { title: s, path: i, query: r, hash: c, close: a, open: d, shouldClose: f, data: g } = n, o = {
1451
1444
  $hasCloseHandle: !!a,
1452
- $hasOpenHandle: !!f,
1453
- $hasShouldCloseHandle: !!h,
1454
- $key: Ws(),
1445
+ $hasOpenHandle: !!d,
1446
+ $hasShouldCloseHandle: !!f,
1447
+ $key: Rs(),
1455
1448
  $title: s,
1456
- ...m
1449
+ ...g
1457
1450
  };
1458
- q.set(r.$key, n), zs(), Ts(I), Ut(r);
1459
- const _ = Ir(i) + new De(o) + c, l = decodeURIComponent(location.hash);
1460
- t(r, s, _), l !== c && window.dispatchEvent(new CustomEvent("hashchange"));
1451
+ q.set(o.$key, n), Hs(), Ps(T), T(o);
1452
+ const _ = Ir(i) + new Ge(r) + c, l = decodeURIComponent(location.hash);
1453
+ t(o, s, _), l !== c && window.dispatchEvent(new CustomEvent("hashchange"));
1461
1454
  }
1462
- function Ii(e, t, n, s) {
1455
+ function Ni(e, t, n, s) {
1463
1456
  Ar(e);
1464
1457
  const i = {
1465
- $key: Ws(),
1458
+ $key: Rs(),
1466
1459
  $title: t,
1467
1460
  ...e || {}
1468
- }, { pathname: o, search: c, hash: a } = new URL(n, location.origin + location.pathname), f = dn({ path: o, query: new De(c), hash: a, title: t, data: e });
1469
- q.set(i.$key, f), zs(), Ts(I), Ut(i);
1470
- const h = Ir(o) + f.query + a, m = location.hash;
1471
- s(i, t, h), m !== a && window.dispatchEvent(new CustomEvent("hashchange"));
1461
+ }, { pathname: r, search: c, hash: a } = new URL(n, location.origin + location.pathname), d = hn({ path: r, query: new Ge(c), hash: a, title: t, data: e });
1462
+ q.set(i.$key, d), Hs(), Ps(T), T(i);
1463
+ const f = Ir(r) + d.query + a, g = location.hash;
1464
+ s(i, t, f), g !== a && window.dispatchEvent(new CustomEvent("hashchange"));
1472
1465
  }
1473
- const [Rr, gc] = Xe({
1466
+ const Zn = Rt({
1474
1467
  basePath: ""
1475
1468
  });
1476
1469
  class mc extends EventTarget {
1477
1470
  get store() {
1478
- return I;
1471
+ return T;
1479
1472
  }
1480
1473
  get currentKey() {
1481
- return I.$key;
1474
+ return T.$key;
1482
1475
  }
1483
1476
  get basePath() {
1484
- return Rr.basePath;
1477
+ return Zn.basePath;
1485
1478
  }
1486
1479
  set basePath(t) {
1487
- gc({ basePath: t }), Object.assign(q.get(I.$key), { path: ns(location.pathname) });
1480
+ Zn({ basePath: t }), Object.assign(q.get(T.$key), { path: Xn(location.pathname) });
1488
1481
  }
1489
1482
  getParams() {
1490
- return q.get(I.$key);
1483
+ return q.get(T.$key);
1491
1484
  }
1492
1485
  updateParams(t) {
1493
- Object.assign(q.get(I.$key), t), Ut();
1486
+ Object.assign(q.get(T.$key), t), T();
1494
1487
  }
1495
1488
  push(t) {
1496
- Ai(t, Lr);
1489
+ Li(t, Lr);
1497
1490
  }
1498
1491
  replace(t) {
1499
- Ai(t, Nr);
1492
+ Li(t, Nr);
1500
1493
  }
1501
1494
  pushIgnoreCloseHandle(t) {
1502
1495
  var n, s;
1503
- I.$hasCloseHandle ? ((s = (n = q.get(I.$key)) == null ? void 0 : n.close) == null || s.call(n), this.replace(t)) : this.push(t);
1496
+ T.$hasCloseHandle ? ((s = (n = q.get(T.$key)) == null ? void 0 : n.close) == null || s.call(n), this.replace(t)) : this.push(t);
1504
1497
  }
1505
1498
  forward() {
1506
- Y.forward();
1499
+ J.forward();
1507
1500
  }
1508
1501
  back() {
1509
- Y.back();
1502
+ J.back();
1510
1503
  }
1511
1504
  }
1512
- const Q = new mc(), [rn, vc] = Xe({ defaultTitle: document.title, url: "", title: "" }), wc = { history: Q, titleStore: rn, basePathStore: Rr };
1505
+ const Y = new mc(), ve = Rt({ defaultTitle: document.title, url: "", title: "" }), vc = { history: Y, titleStore: ve, basePathStore: Zn };
1513
1506
  if (!window._GEMHISTORY) {
1514
- if (window._GEMHISTORY = wc, Y.pushState = function(t, n, s) {
1515
- Ii(t, n, s, Lr);
1516
- }, Y.replaceState = function(t, n, s) {
1517
- Ii(t, n, s, Nr);
1507
+ if (window._GEMHISTORY = vc, J.pushState = function(t, n, s) {
1508
+ Ni(t, n, s, Lr);
1509
+ }, J.replaceState = function(t, n, s) {
1510
+ Ni(t, n, s, Nr);
1518
1511
  }, window.addEventListener("hashchange", ({ isTrusted: t }) => {
1519
- t && Q.replace({ hash: location.hash });
1520
- }), Y.state)
1521
- if (Y.state.$hasCloseHandle) {
1522
- Ut(Y.state);
1523
- const t = dn({ title: document.title });
1524
- q.set(I.$key, t), Q.back();
1512
+ t && Y.replace({ hash: location.hash });
1513
+ }), J.state)
1514
+ if (J.state.$hasCloseHandle) {
1515
+ T(J.state);
1516
+ const t = hn({ title: document.title });
1517
+ q.set(T.$key, t), Y.back();
1525
1518
  } else {
1526
- const t = dn({ title: document.title, hash: location.hash });
1527
- Ut({
1528
- $key: Ws(),
1529
- ...Y.state || {}
1530
- }), q.set(I.$key, t);
1519
+ const t = hn({ title: document.title, hash: location.hash });
1520
+ T({
1521
+ $key: Rs(),
1522
+ ...J.state || {}
1523
+ }), q.set(T.$key, t);
1531
1524
  }
1532
1525
  else {
1533
1526
  const { protocol: t, pathname: n, search: s, hash: i } = location;
1534
- t.startsWith("http") && Q.replace({ path: n, query: s, hash: i });
1535
- }
1536
- pt(rn, () => {
1537
- const t = q.get(I.$key);
1538
- t && (t.title = rn.title);
1539
- }), pt(I, () => {
1540
- const { title: t } = Q.getParams();
1541
- t !== rn.title && vc({ title: t });
1527
+ t.startsWith("http") && Y.replace({ path: n, query: s, hash: i });
1528
+ }
1529
+ ft(ve, () => {
1530
+ const t = q.get(T.$key);
1531
+ t && (t.title = ve.title);
1532
+ }), ft(T, () => {
1533
+ const { title: t } = Y.getParams();
1534
+ t !== ve.title && ve({ title: t });
1542
1535
  });
1543
1536
  let e = !1;
1544
1537
  window.addEventListener("popstate", (t) => {
1545
- var o, c;
1538
+ var r, c;
1546
1539
  const n = t.state;
1547
1540
  if (!(n != null && n.$key))
1548
1541
  return;
@@ -1551,31 +1544,31 @@ if (!window._GEMHISTORY) {
1551
1544
  return;
1552
1545
  }
1553
1546
  if (!q.has(n.$key)) {
1554
- const { pathname: a, search: f, hash: h } = location;
1547
+ const { pathname: a, search: d, hash: f } = location;
1555
1548
  q.set(n.$key, {
1556
1549
  path: a,
1557
- query: new De(f),
1558
- hash: decodeURIComponent(h),
1550
+ query: new Ge(d),
1551
+ hash: decodeURIComponent(f),
1559
1552
  title: n.$title,
1560
1553
  // document.title 是导航前的
1561
1554
  data: n
1562
1555
  });
1563
1556
  }
1564
- const s = I;
1557
+ const s = T;
1565
1558
  if (parseFloat(n.$key) > parseFloat(s.$key) && n.$hasOpenHandle)
1566
- (c = (o = q.get(n.$key)) == null ? void 0 : o.open) == null || c.call(o);
1559
+ (c = (r = q.get(n.$key)) == null ? void 0 : r.open) == null || c.call(r);
1567
1560
  else if (s.$hasCloseHandle) {
1568
- const a = q.get(s.$key), f = a == null ? void 0 : a.close, h = a == null ? void 0 : a.shouldClose;
1569
- if (h && !h()) {
1570
- e = !0, Q.forward();
1561
+ const a = q.get(s.$key), d = a == null ? void 0 : a.close, f = a == null ? void 0 : a.shouldClose;
1562
+ if (f && !f()) {
1563
+ e = !0, Y.forward();
1571
1564
  return;
1572
1565
  } else
1573
- f ? f() : n.$hasCloseHandle && (e = !0, Q.back());
1566
+ d ? d() : n.$hasCloseHandle && (e = !0, Y.back());
1574
1567
  }
1575
- zs(), Ts(I), Ut(n);
1568
+ Hs(), Ps(T), T(n);
1576
1569
  });
1577
1570
  }
1578
- const { history: O, titleStore: At, basePathStore: yc } = window._GEMHISTORY;
1571
+ const { history: M, titleStore: At, basePathStore: wc } = window._GEMHISTORY;
1579
1572
  /**
1580
1573
  * @license
1581
1574
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1589,66 +1582,66 @@ const { history: O, titleStore: At, basePathStore: yc } = window._GEMHISTORY;
1589
1582
  * subject to an additional IP rights grant found at
1590
1583
  * http://polymer.github.io/PATENTS.txt
1591
1584
  */
1592
- const Ri = (e, t) => {
1585
+ const Ai = (e, t) => {
1593
1586
  const n = e.startNode.parentNode, s = t === void 0 ? e.endNode : t.startNode, i = n.insertBefore(ot(), s);
1594
1587
  n.insertBefore(ot(), s);
1595
- const o = new re(e.options);
1596
- return o.insertAfterNode(i), o;
1597
- }, kt = (e, t) => (e.setValue(t), e.commit(), e), Fn = (e, t, n) => {
1598
- const s = e.startNode.parentNode, i = n ? n.startNode : e.endNode, o = t.endNode.nextSibling;
1599
- o !== i && dr(s, t.startNode, o, i);
1600
- }, qn = (e) => {
1601
- bs(e.startNode.parentNode, e.startNode, e.endNode.nextSibling);
1602
- }, Hi = (e, t, n) => {
1588
+ const r = new se(e.options);
1589
+ return r.insertAfterNode(i), r;
1590
+ }, Pt = (e, t) => (e.setValue(t), e.commit(), e), zn = (e, t, n) => {
1591
+ const s = e.startNode.parentNode, i = n ? n.startNode : e.endNode, r = t.endNode.nextSibling;
1592
+ r !== i && hr(s, t.startNode, r, i);
1593
+ }, Gn = (e) => {
1594
+ Ss(e.startNode.parentNode, e.startNode, e.endNode.nextSibling);
1595
+ }, Ii = (e, t, n) => {
1603
1596
  const s = /* @__PURE__ */ new Map();
1604
1597
  for (let i = t; i <= n; i++)
1605
1598
  s.set(e[i], i);
1606
1599
  return s;
1607
- }, Wi = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Fl = Sn((e, t, n) => {
1600
+ }, Ri = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Fl = wn((e, t, n) => {
1608
1601
  let s;
1609
1602
  return n === void 0 ? n = t : t !== void 0 && (s = t), (i) => {
1610
- if (!(i instanceof re))
1603
+ if (!(i instanceof se))
1611
1604
  throw new Error("repeat can only be used in text bindings");
1612
- const o = Wi.get(i) || [], c = zi.get(i) || [], a = [], f = [], h = [];
1613
- let m = 0;
1605
+ const r = Ri.get(i) || [], c = Hi.get(i) || [], a = [], d = [], f = [];
1606
+ let g = 0;
1614
1607
  for (const $ of e)
1615
- h[m] = s ? s($, m) : m, f[m] = n($, m), m++;
1616
- let r, _, l = 0, g = o.length - 1, v = 0, y = f.length - 1;
1617
- for (; l <= g && v <= y; )
1618
- if (o[l] === null)
1608
+ f[g] = s ? s($, g) : g, d[g] = n($, g), g++;
1609
+ let o, _, l = 0, m = r.length - 1, v = 0, y = d.length - 1;
1610
+ for (; l <= m && v <= y; )
1611
+ if (r[l] === null)
1619
1612
  l++;
1620
- else if (o[g] === null)
1621
- g--;
1622
- else if (c[l] === h[v])
1623
- a[v] = kt(o[l], f[v]), l++, v++;
1624
- else if (c[g] === h[y])
1625
- a[y] = kt(o[g], f[y]), g--, y--;
1626
- else if (c[l] === h[y])
1627
- a[y] = kt(o[l], f[y]), Fn(i, o[l], a[y + 1]), l++, y--;
1628
- else if (c[g] === h[v])
1629
- a[v] = kt(o[g], f[v]), Fn(i, o[g], o[l]), g--, v++;
1630
- else if (r === void 0 && (r = Hi(h, v, y), _ = Hi(c, l, g)), !r.has(c[l]))
1631
- qn(o[l]), l++;
1632
- else if (!r.has(c[g]))
1633
- qn(o[g]), g--;
1613
+ else if (r[m] === null)
1614
+ m--;
1615
+ else if (c[l] === f[v])
1616
+ a[v] = Pt(r[l], d[v]), l++, v++;
1617
+ else if (c[m] === f[y])
1618
+ a[y] = Pt(r[m], d[y]), m--, y--;
1619
+ else if (c[l] === f[y])
1620
+ a[y] = Pt(r[l], d[y]), zn(i, r[l], a[y + 1]), l++, y--;
1621
+ else if (c[m] === f[v])
1622
+ a[v] = Pt(r[m], d[v]), zn(i, r[m], r[l]), m--, v++;
1623
+ else if (o === void 0 && (o = Ii(f, v, y), _ = Ii(c, l, m)), !o.has(c[l]))
1624
+ Gn(r[l]), l++;
1625
+ else if (!o.has(c[m]))
1626
+ Gn(r[m]), m--;
1634
1627
  else {
1635
- const $ = _.get(h[v]), d = $ !== void 0 ? o[$] : null;
1636
- if (d === null) {
1637
- const S = Ri(i, o[l]);
1638
- kt(S, f[v]), a[v] = S;
1628
+ const $ = _.get(f[v]), u = $ !== void 0 ? r[$] : null;
1629
+ if (u === null) {
1630
+ const S = Ai(i, r[l]);
1631
+ Pt(S, d[v]), a[v] = S;
1639
1632
  } else
1640
- a[v] = kt(d, f[v]), Fn(i, d, o[l]), o[$] = null;
1633
+ a[v] = Pt(u, d[v]), zn(i, u, r[l]), r[$] = null;
1641
1634
  v++;
1642
1635
  }
1643
1636
  for (; v <= y; ) {
1644
- const $ = Ri(i, a[y + 1]);
1645
- kt($, f[v]), a[v++] = $;
1637
+ const $ = Ai(i, a[y + 1]);
1638
+ Pt($, d[v]), a[v++] = $;
1646
1639
  }
1647
- for (; l <= g; ) {
1648
- const $ = o[l++];
1649
- $ !== null && qn($);
1640
+ for (; l <= m; ) {
1641
+ const $ = r[l++];
1642
+ $ !== null && Gn($);
1650
1643
  }
1651
- Wi.set(i, a), zi.set(i, h);
1644
+ Ri.set(i, a), Hi.set(i, f);
1652
1645
  };
1653
1646
  });
1654
1647
  /**
@@ -1664,14 +1657,14 @@ const Ri = (e, t) => {
1664
1657
  * subject to an additional IP rights grant found at
1665
1658
  * http://polymer.github.io/PATENTS.txt
1666
1659
  */
1667
- const Un = /* @__PURE__ */ new WeakMap(), ql = Sn((e, t) => (n) => {
1668
- const s = Un.get(n);
1660
+ const Vn = /* @__PURE__ */ new WeakMap(), ql = wn((e, t) => (n) => {
1661
+ const s = Vn.get(n);
1669
1662
  if (Array.isArray(e)) {
1670
- if (Array.isArray(s) && s.length === e.length && e.every((i, o) => i === s[o]))
1663
+ if (Array.isArray(s) && s.length === e.length && e.every((i, r) => i === s[r]))
1671
1664
  return;
1672
- } else if (s === e && (e !== void 0 || Un.has(n)))
1665
+ } else if (s === e && (e !== void 0 || Vn.has(n)))
1673
1666
  return;
1674
- n.setValue(t()), Un.set(n, Array.isArray(e) ? Array.from(e) : e);
1667
+ n.setValue(t()), Vn.set(n, Array.isArray(e) ? Array.from(e) : e);
1675
1668
  });
1676
1669
  /**
1677
1670
  * @license
@@ -1686,110 +1679,111 @@ const Un = /* @__PURE__ */ new WeakMap(), ql = Sn((e, t) => (n) => {
1686
1679
  * subject to an additional IP rights grant found at
1687
1680
  * http://polymer.github.io/PATENTS.txt
1688
1681
  */
1689
- const Bn = /* @__PURE__ */ new WeakMap(), Sc = Sn((e) => (t) => {
1690
- const n = Bn.get(t);
1691
- if (e === void 0 && t instanceof Ps) {
1692
- if (n !== void 0 || !Bn.has(t)) {
1682
+ const Dn = /* @__PURE__ */ new WeakMap(), yc = wn((e) => (t) => {
1683
+ const n = Dn.get(t);
1684
+ if (e === void 0 && t instanceof Es) {
1685
+ if (n !== void 0 || !Dn.has(t)) {
1693
1686
  const s = t.committer.name;
1694
1687
  t.committer.element.removeAttribute(s);
1695
1688
  }
1696
1689
  } else e !== n && t.setValue(e);
1697
- Bn.set(t, e);
1690
+ Dn.set(t, e);
1698
1691
  });
1699
- var $c = Object.create, Vs = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, Hr = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ae = (e) => {
1692
+ var Sc = Object.create, Ws = Object.defineProperty, $c = Object.getOwnPropertyDescriptor, Rr = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), re = (e) => {
1700
1693
  throw TypeError(e);
1701
- }, Wr = (e, t, n) => t in e ? Vs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vi = (e, t) => Vs(e, "name", { value: t, configurable: !0 }), zr = (e) => [, , , $c((e == null ? void 0 : e[Hr("metadata")]) ?? null)], Vr = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Se = (e) => e !== void 0 && typeof e != "function" ? ae("Function expected") : e, bc = (e, t, n, s, i) => ({ kind: Vr[e], name: t, metadata: s, addInitializer: (o) => n._ ? ae("Already initialized") : i.push(Se(o || null)) }), Gr = (e, t) => Wr(t, Hr("metadata"), e[3]), C = (e, t, n, s) => {
1702
- for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
1694
+ }, Hr = (e, t, n) => t in e ? Ws(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wi = (e, t) => Ws(e, "name", { value: t, configurable: !0 }), Wr = (e) => [, , , Sc((e == null ? void 0 : e[Rr("metadata")]) ?? null)], zr = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], we = (e) => e !== void 0 && typeof e != "function" ? re("Function expected") : e, Ec = (e, t, n, s, i) => ({ kind: zr[e], name: t, metadata: s, addInitializer: (r) => n._ ? re("Already initialized") : i.push(we(r || null)) }), bc = (e, t) => Hr(t, Rr("metadata"), e[3]), P = (e, t, n, s) => {
1695
+ for (var i = 0, r = e[t >> 1], c = r && r.length; i < c; i++) t & 1 ? r[i].call(n) : s = r[i].call(n, s);
1703
1696
  return s;
1704
- }, H = (e, t, n, s, i, o) => {
1705
- var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = Vr[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && Ec(r < 4 ? i : { get [n]() {
1706
- return A(this, o);
1707
- }, set [n](u) {
1708
- return pn(this, o, u);
1697
+ }, W = (e, t, n, s, i, r) => {
1698
+ var c, a, d, f, g, o = t & 7, _ = !!(t & 8), l = !!(t & 16), m = o > 3 ? e.length + 1 : o ? _ ? 1 : 2 : 0, v = zr[o + 5], y = o > 3 && (e[m - 1] = []), $ = e[m] || (e[m] = []), u = o && (!l && !_ && (i = i.prototype), o < 5 && (o > 3 || !l) && $c(o < 4 ? i : { get [n]() {
1699
+ return R(this, r);
1700
+ }, set [n](h) {
1701
+ return un(this, r, h);
1709
1702
  } }, n));
1710
- r ? l && r < 4 && Vi(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Vi(i, n);
1703
+ o ? l && o < 4 && Wi(r, (o > 2 ? "set " : o > 1 ? "get " : "") + n) : Wi(i, n);
1711
1704
  for (var S = s.length - 1; S >= 0; S--)
1712
- h = bc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Cc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? A : Pc)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => pn(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Se(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? ae("Object expected") : (Se(c = a.get) && (d.get = c), Se(c = a.set) && (d.set = c), Se(c = a.init) && y.unshift(c));
1713
- return r || Gr(e, i), d && Vs(i, n, d), l ? r ^ 4 ? o : d : i;
1714
- }, W = (e, t, n) => Wr(e, typeof t != "symbol" ? t + "" : t, n), Gs = (e, t, n) => t.has(e) || ae("Cannot " + n), Cc = (e, t) => Object(t) !== t ? ae('Cannot use the "in" operator on this value') : e.has(t), A = (e, t, n) => (Gs(e, t, "read from private field"), n ? n.call(e) : t.get(e)), j = (e, t, n) => t.has(e) ? ae("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), pn = (e, t, n, s) => (Gs(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Pc = (e, t, n) => (Gs(e, t, "access private method"), n), Dr, Fr, qr, Ur, Br, Kr, jr, Jr, Yr, Qr, Xr, Zr, to, eo, no, so, ss, w, xt, Gt, $e, on, is, Ee, an, Ds, Fs, qs, rs, Us, Bs, io, Ks, ro;
1715
- const oo = "_";
1705
+ f = Ec(o, n, d = {}, e[3], $), o && (f.static = _, f.private = l, g = f.access = { has: l ? (h) => Cc(i, h) : (h) => n in h }, o ^ 3 && (g.get = l ? (h) => (o ^ 1 ? R : Pc)(h, i, o ^ 4 ? r : u.get) : (h) => h[n]), o > 2 && (g.set = l ? (h, k) => un(h, i, k, o ^ 4 ? r : u.set) : (h, k) => h[n] = k)), a = (0, s[S])(o ? o < 4 ? l ? r : u[v] : o > 4 ? void 0 : { get: u.get, set: u.set } : i, f), d._ = 1, o ^ 4 || a === void 0 ? we(a) && (o > 4 ? y.unshift(a) : o ? l ? r = a : u[v] = a : i = a) : typeof a != "object" || a === null ? re("Object expected") : (we(c = a.get) && (u.get = c), we(c = a.set) && (u.set = c), we(c = a.init) && y.unshift(c));
1706
+ return o || bc(e, i), u && Ws(i, n, u), l ? o ^ 4 ? r : u : i;
1707
+ }, z = (e, t, n) => Hr(e, typeof t != "symbol" ? t + "" : t, n), zs = (e, t, n) => t.has(e) || re("Cannot " + n), Cc = (e, t) => Object(t) !== t ? re('Cannot use the "in" operator on this value') : e.has(t), R = (e, t, n) => (zs(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Z = (e, t, n) => t.has(e) ? re("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), un = (e, t, n, s) => (zs(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Pc = (e, t, n) => (zs(e, t, "access private method"), n), Gr, Vr, Dr, Fr, qr, Ur, Br, Kr, jr, Jr, Yr, Qr, Xr, Zr, to, ts, eo, w, kt, Vt, ye, nn, es, Se, sn, Gs, Vs, ns, Ds, Fs, no, qs, so;
1708
+ const io = "_";
1716
1709
  class kc extends RegExp {
1717
1710
  constructor(t) {
1718
1711
  let n = 0;
1719
1712
  super(
1720
- `^${t.replace(/((:[^/$]+)|(\*))/g, (s, i) => i === "*" ? `(?<${oo}${n++}>.*)` : `(?<${i.slice(1)}>[^/]+)`)}$`
1713
+ `^${t.replace(/((:[^/$]+)|(\*))/g, (s, i) => i === "*" ? `(?<${io}${n++}>.*)` : `(?<${i.slice(1)}>[^/]+)`)}$`
1721
1714
  );
1722
1715
  }
1723
1716
  }
1724
- function ao(e, t) {
1717
+ function ro(e, t) {
1725
1718
  if (window.URLPattern) {
1726
- const o = new window.URLPattern({ pathname: e }), c = o.exec({ pathname: t }) || o.exec({ pathname: `${t}/` });
1719
+ const r = new window.URLPattern({ pathname: e }), c = r.exec({ pathname: t }) || r.exec({ pathname: `${t}/` });
1727
1720
  return c ? c.pathname.groups : null;
1728
1721
  }
1729
1722
  const n = new kc(e), s = t.match(n) || `${t}/`.match(n);
1730
1723
  if (!s) return null;
1731
1724
  const i = {};
1732
- return s.groups && Object.entries(s.groups).forEach(([o, c]) => {
1733
- i[o.startsWith(oo) ? o.slice(1) : o] = c;
1725
+ return s.groups && Object.entries(s.groups).forEach(([r, c]) => {
1726
+ i[r.startsWith(io) ? r.slice(1) : r] = c;
1734
1727
  }), i;
1735
1728
  }
1736
- function js(e, t) {
1729
+ function Us(e, t) {
1737
1730
  let n = 0, s = e.pattern.replaceAll("*", () => `:${n++}`);
1738
1731
  const i = t == null ? void 0 : t.params;
1739
- return i && Object.keys(i).forEach((o) => {
1740
- s = s.replace(new RegExp(`:${o}`, "g"), i[o]);
1732
+ return i && Object.keys(i).forEach((r) => {
1733
+ s = s.replace(new RegExp(`:${r}`, "g"), i[r]);
1741
1734
  }), s;
1742
1735
  }
1743
1736
  function xc(e, t) {
1744
1737
  return {
1745
- path: js(e, t),
1738
+ path: Us(e, t),
1746
1739
  ...t
1747
1740
  };
1748
1741
  }
1749
- const Kn = at``, Gi = /* @__PURE__ */ new Map();
1750
- class z extends (ss = B, so = [On], no = [U], eo = [U], to = [U], Zr = [ye], Xr = [ye], Qr = [ye], Yr = [ye], Jr = [U], jr = [U], Kr = [U], Br = [Mn()], Ur = [$t((t) => [t.scrollContainer])], qr = [$t((t) => [t.scrollContainer])], Fr = [$t((t) => {
1742
+ const Fn = at``, zi = /* @__PURE__ */ new Map();
1743
+ eo = [Mr({ penetrable: !0 })];
1744
+ class A extends (ts = B, to = [kn], Zr = [U], Xr = [U], Qr = [U], Yr = [me], Jr = [me], jr = [me], Kr = [me], Br = [U], Ur = [U], qr = [U], Fr = [St((t) => [t.scrollContainer])], Dr = [St((t) => [t.scrollContainer])], Vr = [St((t) => {
1751
1745
  var n;
1752
- return A(n = t, rs).call(n);
1753
- })], Dr = [xr((t) => !t.inert)], ss) {
1746
+ return R(n = t, ns).call(n);
1747
+ })], Gr = [kr((t) => !t.inert)], ts) {
1754
1748
  constructor() {
1755
- super(...arguments), j(this, xt), W(this, "transition", C(w, 8, this)), C(w, 11, this), W(this, "routes", C(w, 12, this)), C(w, 15, this), W(this, "locationStore", C(w, 16, this)), C(w, 19, this), W(this, "key", C(w, 20, this)), C(w, 23, this), W(this, "loading", C(w, 24, this)), C(w, 27, this), W(this, "beforeroutechange", C(w, 28, this)), C(w, 31, this), W(this, "routechange", C(w, 32, this)), C(w, 35, this), W(this, "error", C(w, 36, this)), C(w, 39, this), W(this, "scrollContainer", C(w, 40, this)), C(w, 43, this), W(this, "scrollIgnoreHash", C(w, 44, this)), C(w, 47, this), W(this, "trigger", C(w, 48, this, O)), C(w, 51, this), W(this, "currentRoute"), W(this, "currentParams", {}), j(this, $e, Ns({ content: Kn })), j(this, on, () => {
1749
+ super(...arguments), Z(this, kt), z(this, "transition", P(w, 8, this)), P(w, 11, this), z(this, "routes", P(w, 12, this)), P(w, 15, this), z(this, "locationStore", P(w, 16, this)), P(w, 19, this), z(this, "key", P(w, 20, this)), P(w, 23, this), z(this, "loading", P(w, 24, this)), P(w, 27, this), z(this, "beforeroutechange", P(w, 28, this)), P(w, 31, this), z(this, "routechange", P(w, 32, this)), P(w, 35, this), z(this, "error", P(w, 36, this)), P(w, 39, this), z(this, "scrollContainer", P(w, 40, this)), P(w, 43, this), z(this, "scrollIgnoreHash", P(w, 44, this)), P(w, 47, this), z(this, "trigger", P(w, 48, this, M)), P(w, 51, this), z(this, "currentRoute"), z(this, "currentParams", {}), Z(this, ye, Os({ content: Fn })), Z(this, nn, () => {
1756
1750
  if (!this.locationStore) return;
1757
- const { path: t, query: n, hash: s, data: i } = O.getParams();
1758
- It(this.locationStore, {
1751
+ const { path: t, query: n, hash: s, data: i } = M.getParams();
1752
+ this.locationStore({
1759
1753
  path: t,
1760
1754
  params: this.currentParams,
1761
1755
  query: n,
1762
1756
  hash: s,
1763
1757
  data: i
1764
1758
  });
1765
- }), j(this, is, () => {
1766
- if (!A(this, xt, Gt)) return;
1767
- const t = Gi.get(O.currentKey);
1768
- t ? A(this, xt, Gt).scroll(0, t) : (this.scrollIgnoreHash || !O.getParams().hash) && A(this, xt, Gt).scroll(0, 0);
1769
- }), j(this, Ee), j(this, an, (t, n, s) => {
1770
- this.beforeroutechange(t), pn(this, Ee, void 0), this.currentRoute = t, this.currentParams = n;
1759
+ }), Z(this, es, () => {
1760
+ if (!R(this, kt, Vt)) return;
1761
+ const t = zi.get(M.currentKey);
1762
+ t ? R(this, kt, Vt).scroll(0, t) : (this.scrollIgnoreHash || !M.getParams().hash) && R(this, kt, Vt).scroll(0, 0);
1763
+ }), Z(this, Se), Z(this, sn, (t, n, s) => {
1764
+ this.beforeroutechange(t), un(this, Se, void 0), this.currentRoute = t, this.currentParams = n;
1771
1765
  const i = async () => {
1772
- A(this, $e).call(this, { content: s }), A(this, on).call(this), await Promise.resolve(), A(this, is).call(this), this.routechange(this.currentRoute);
1766
+ R(this, ye).call(this, { content: s }), R(this, nn).call(this), await Promise.resolve(), R(this, es).call(this), this.routechange(this.currentRoute);
1773
1767
  };
1774
1768
  this.transition && "startViewTransition" in document ? document.startViewTransition(() => i()) : i();
1775
- }), j(this, Ds, C(w, 52, this, () => this.internals.states.delete(Pn))), C(w, 55, this), j(this, Fs, C(w, 56, this, () => {
1776
- if (A(this, xt, Gt))
1777
- return wr(
1778
- O,
1769
+ }), Z(this, Gs, P(w, 52, this, () => {
1770
+ if (R(this, kt, Vt))
1771
+ return mr(
1772
+ M,
1779
1773
  "beforechange",
1780
- () => Gi.set(O.currentKey, A(this, xt, Gt).scrollTop)
1774
+ () => zi.set(M.currentKey, R(this, kt, Vt).scrollTop)
1781
1775
  );
1782
- })), C(w, 59, this), j(this, qs, C(w, 60, this, () => pt(this.trigger.store, () => A(this, $e).call(this, {})))), C(w, 63, this), j(this, rs, () => {
1776
+ })), P(w, 55, this), Z(this, Vs, P(w, 56, this, () => this.trigger.store && ft(this.trigger.store, () => R(this, ye).call(this)))), P(w, 59, this), Z(this, ns, () => {
1783
1777
  const { path: t, query: n, hash: s } = this.trigger.getParams();
1784
1778
  return [this.key, t, n, s];
1785
- }), j(this, Us, C(w, 64, this, ([t, n], s) => {
1779
+ }), Z(this, Ds, P(w, 60, this, ([t, n], s) => {
1786
1780
  if (s && t === s[0] && n === s[1]) {
1787
- A(this, on).call(this);
1781
+ R(this, nn).call(this);
1788
1782
  return;
1789
1783
  }
1790
1784
  this.update();
1791
- })), C(w, 67, this), j(this, Bs, C(w, 68, this, () => {
1792
- const { content: t } = A(this, $e);
1785
+ })), P(w, 63, this), Z(this, Fs, P(w, 64, this, () => {
1786
+ const { content: t } = R(this, ye);
1793
1787
  if (t !== void 0)
1794
1788
  return this.shadowRoot ? at`
1795
1789
  <style>
@@ -1798,110 +1792,109 @@ class z extends (ss = B, so = [On], no = [U], eo = [U], to = [U], Zr = [ye], Xr
1798
1792
  display: contents;
1799
1793
  }
1800
1794
  </style>
1801
- ${t === Kn ? at`<slot></slot>` : t}
1802
- ` : t === Kn ? void 0 : at`${t}`;
1803
- })), C(w, 71, this), W(this, "update", () => {
1804
- const { path: t, hash: n, query: s } = this.trigger.getParams(), { route: i, params: o = {} } = Ue.findRoute(this.routes, t), { redirect: c, content: a, getContent: f } = i || {};
1795
+ ${t === Fn ? at`<slot></slot>` : t}
1796
+ ` : t === Fn ? void 0 : at`${t}`;
1797
+ })), P(w, 67, this), z(this, "update", () => {
1798
+ const { path: t, hash: n, query: s } = this.trigger.getParams(), { route: i, params: r = {} } = Fe.findRoute(this.routes, t), { redirect: c, content: a, getContent: d } = i || {};
1805
1799
  if (c) {
1806
1800
  this.trigger.replace({
1807
- path: js({ pattern: c }, { params: o }),
1801
+ path: Us({ pattern: c }, { params: r }),
1808
1802
  query: s,
1809
1803
  hash: n
1810
1804
  });
1811
1805
  return;
1812
1806
  }
1813
- this.trigger === O && (location.href !== At.url || i != null && i.title) && It(At, { url: location.href, title: i == null ? void 0 : i.title });
1814
- const h = a || (f == null ? void 0 : f(o, this.shadowRoot || this));
1815
- if (this.loading(i), h instanceof Promise) {
1816
- pn(this, Ee, h);
1817
- const m = () => A(this, Ee) === h;
1818
- h.then((r) => {
1819
- m() && A(this, an).call(this, i, o, r);
1820
- }).catch((r) => {
1821
- m() && this.error(r);
1807
+ this.trigger === M && (location.href !== At.url || i != null && i.title) && At({ url: location.href, title: i == null ? void 0 : i.title });
1808
+ const f = a || (d == null ? void 0 : d(r, this.shadowRoot || this));
1809
+ if (this.loading(i), f instanceof Promise) {
1810
+ un(this, Se, f);
1811
+ const g = () => R(this, Se) === f;
1812
+ f.then((o) => {
1813
+ g() && R(this, sn).call(this, i, r, o);
1814
+ }).catch((o) => {
1815
+ g() && this.error(o);
1822
1816
  });
1823
1817
  return;
1824
1818
  }
1825
- A(this, an).call(this, i, o, h);
1819
+ R(this, sn).call(this, i, r, f);
1826
1820
  });
1827
1821
  }
1828
1822
  }
1829
- w = zr(ss);
1830
- xt = /* @__PURE__ */ new WeakSet();
1831
- Gt = function() {
1823
+ w = Wr(ts);
1824
+ kt = /* @__PURE__ */ new WeakSet();
1825
+ Vt = function() {
1832
1826
  return typeof this.scrollContainer == "function" ? this.scrollContainer() : this.scrollContainer;
1833
1827
  };
1834
- $e = /* @__PURE__ */ new WeakMap();
1835
- on = /* @__PURE__ */ new WeakMap();
1836
- is = /* @__PURE__ */ new WeakMap();
1837
- Ee = /* @__PURE__ */ new WeakMap();
1838
- an = /* @__PURE__ */ new WeakMap();
1828
+ ye = /* @__PURE__ */ new WeakMap();
1829
+ nn = /* @__PURE__ */ new WeakMap();
1830
+ es = /* @__PURE__ */ new WeakMap();
1831
+ Se = /* @__PURE__ */ new WeakMap();
1832
+ sn = /* @__PURE__ */ new WeakMap();
1833
+ Gs = /* @__PURE__ */ new WeakMap();
1834
+ Vs = /* @__PURE__ */ new WeakMap();
1835
+ ns = /* @__PURE__ */ new WeakMap();
1839
1836
  Ds = /* @__PURE__ */ new WeakMap();
1840
1837
  Fs = /* @__PURE__ */ new WeakMap();
1841
- qs = /* @__PURE__ */ new WeakMap();
1842
- rs = /* @__PURE__ */ new WeakMap();
1843
- Us = /* @__PURE__ */ new WeakMap();
1844
- Bs = /* @__PURE__ */ new WeakMap();
1845
- H(w, 5, "transition", so, z);
1846
- H(w, 5, "routes", no, z);
1847
- H(w, 5, "locationStore", eo, z);
1848
- H(w, 5, "key", to, z);
1849
- H(w, 5, "loading", Zr, z);
1850
- H(w, 5, "beforeroutechange", Xr, z);
1851
- H(w, 5, "routechange", Qr, z);
1852
- H(w, 5, "error", Yr, z);
1853
- H(w, 5, "scrollContainer", Jr, z);
1854
- H(w, 5, "scrollIgnoreHash", jr, z);
1855
- H(w, 5, "trigger", Kr, z);
1856
- H(w, 21, "#unBoundary", Br, Ds);
1857
- H(w, 21, "#rememberScrollPosition", Ur, Fs);
1858
- H(w, 21, "#connectTriggerStore", qr, qs);
1859
- H(w, 21, "#updateContent", Fr, Us);
1860
- H(w, 21, "#content", Dr, Bs);
1861
- Gr(w, z);
1862
- W(z, "createLocationStore", () => {
1863
- const { path: e, query: t, hash: n, data: s } = O.getParams();
1864
- return bn({ path: e, query: t, hash: n, data: s, params: {} });
1838
+ W(w, 5, "transition", to, A);
1839
+ W(w, 5, "routes", Zr, A);
1840
+ W(w, 5, "locationStore", Xr, A);
1841
+ W(w, 5, "key", Qr, A);
1842
+ W(w, 5, "loading", Yr, A);
1843
+ W(w, 5, "beforeroutechange", Jr, A);
1844
+ W(w, 5, "routechange", jr, A);
1845
+ W(w, 5, "error", Kr, A);
1846
+ W(w, 5, "scrollContainer", Br, A);
1847
+ W(w, 5, "scrollIgnoreHash", Ur, A);
1848
+ W(w, 5, "trigger", qr, A);
1849
+ W(w, 21, "#rememberScrollPosition", Fr, Gs);
1850
+ W(w, 21, "#connectTriggerStore", Dr, Vs);
1851
+ W(w, 21, "#updateContent", Vr, Ds);
1852
+ W(w, 21, "#content", Gr, Fs);
1853
+ A = W(w, 0, "GemLightRouteElement", eo, A);
1854
+ z(A, "createLocationStore", () => {
1855
+ const { path: e, query: t, hash: n, data: s } = M.getParams();
1856
+ return Rt({ path: e, query: t, hash: n, data: s, params: {} });
1865
1857
  });
1866
- W(z, "findRoute", (e = [], t) => {
1858
+ z(A, "findRoute", (e = [], t) => {
1867
1859
  let n = null, s;
1868
1860
  e instanceof Array ? s = e : s = Object.values(e);
1869
1861
  for (const i of s)
1870
1862
  if (i.pattern === "*")
1871
1863
  n = i;
1872
1864
  else {
1873
- const o = ao(i.pattern, t);
1874
- if (o)
1875
- return { route: i, params: o };
1865
+ const r = ro(i.pattern, t);
1866
+ if (r)
1867
+ return { route: i, params: r };
1876
1868
  }
1877
1869
  return { route: n };
1878
1870
  });
1879
- io = [Ht()];
1880
- class Ue extends (ro = z) {
1881
- }
1882
- Ks = zr(ro);
1883
- Ue = H(Ks, 0, "GemRouteElement", io, Ue);
1884
- C(Ks, 1, Ue);
1885
- var Tc = Object.create, Js = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, co = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ce = (e) => {
1871
+ P(w, 1, A);
1872
+ no = [Ht()];
1873
+ class Fe extends (so = A) {
1874
+ }
1875
+ qs = Wr(so);
1876
+ Fe = W(qs, 0, "GemRouteElement", no, Fe);
1877
+ P(qs, 1, Fe);
1878
+ var Tc = Object.create, Bs = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, oo = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), oe = (e) => {
1886
1879
  throw TypeError(e);
1887
- }, lo = (e, t, n) => t in e ? Js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Di = (e, t) => Js(e, "name", { value: t, configurable: !0 }), ho = (e) => [, , , Tc((e == null ? void 0 : e[co("metadata")]) ?? null)], uo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], be = (e) => e !== void 0 && typeof e != "function" ? ce("Function expected") : e, Mc = (e, t, n, s, i) => ({ kind: uo[e], name: t, metadata: s, addInitializer: (o) => n._ ? ce("Already initialized") : i.push(be(o || null)) }), Lc = (e, t) => lo(t, co("metadata"), e[3]), P = (e, t, n, s) => {
1888
- for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
1880
+ }, ao = (e, t, n) => t in e ? Bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gi = (e, t) => Bs(e, "name", { value: t, configurable: !0 }), co = (e) => [, , , Tc((e == null ? void 0 : e[oo("metadata")]) ?? null)], lo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], $e = (e) => e !== void 0 && typeof e != "function" ? oe("Function expected") : e, Mc = (e, t, n, s, i) => ({ kind: lo[e], name: t, metadata: s, addInitializer: (r) => n._ ? oe("Already initialized") : i.push($e(r || null)) }), Lc = (e, t) => ao(t, oo("metadata"), e[3]), C = (e, t, n, s) => {
1881
+ for (var i = 0, r = e[t >> 1], c = r && r.length; i < c; i++) t & 1 ? r[i].call(n) : s = r[i].call(n, s);
1889
1882
  return s;
1890
- }, N = (e, t, n, s, i, o) => {
1891
- var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = uo[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && Oc(r < 4 ? i : { get [n]() {
1892
- return nt(this, o);
1893
- }, set [n](u) {
1894
- return Fi(this, o, u);
1883
+ }, I = (e, t, n, s, i, r) => {
1884
+ var c, a, d, f, g, o = t & 7, _ = !!(t & 8), l = !!(t & 16), m = o > 3 ? e.length + 1 : o ? _ ? 1 : 2 : 0, v = lo[o + 5], y = o > 3 && (e[m - 1] = []), $ = e[m] || (e[m] = []), u = o && (!l && !_ && (i = i.prototype), o < 5 && (o > 3 || !l) && Oc(o < 4 ? i : { get [n]() {
1885
+ return nt(this, r);
1886
+ }, set [n](h) {
1887
+ return Vi(this, r, h);
1895
1888
  } }, n));
1896
- r ? l && r < 4 && Di(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Di(i, n);
1889
+ o ? l && o < 4 && Gi(r, (o > 2 ? "set " : o > 1 ? "get " : "") + n) : Gi(i, n);
1897
1890
  for (var S = s.length - 1; S >= 0; S--)
1898
- h = Mc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Nc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? nt : Ac)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => Fi(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? be(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? ce("Object expected") : (be(c = a.get) && (d.get = c), be(c = a.set) && (d.set = c), be(c = a.init) && y.unshift(c));
1899
- return r || Lc(e, i), d && Js(i, n, d), l ? r ^ 4 ? o : d : i;
1900
- }, D = (e, t, n) => lo(e, typeof t != "symbol" ? t + "" : t, n), Ys = (e, t, n) => t.has(e) || ce("Cannot " + n), Nc = (e, t) => Object(t) !== t ? ce('Cannot use the "in" operator on this value') : e.has(t), nt = (e, t, n) => (Ys(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Dt = (e, t, n) => t.has(e) ? ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Fi = (e, t, n, s) => (Ys(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Ac = (e, t, n) => (Ys(e, t, "access private method"), n), po, fo, _o, go, mo, vo, wo, yo, So, $o, Eo, bo, Co, os, Po, E, _t, Ce, ko, Qs, as, cs, Xs, ls, xo, To, Oo, hs, Mo, X, Zs;
1901
- function qi(e) {
1891
+ f = Mc(o, n, d = {}, e[3], $), o && (f.static = _, f.private = l, g = f.access = { has: l ? (h) => Nc(i, h) : (h) => n in h }, o ^ 3 && (g.get = l ? (h) => (o ^ 1 ? nt : Ac)(h, i, o ^ 4 ? r : u.get) : (h) => h[n]), o > 2 && (g.set = l ? (h, k) => Vi(h, i, k, o ^ 4 ? r : u.set) : (h, k) => h[n] = k)), a = (0, s[S])(o ? o < 4 ? l ? r : u[v] : o > 4 ? void 0 : { get: u.get, set: u.set } : i, f), d._ = 1, o ^ 4 || a === void 0 ? $e(a) && (o > 4 ? y.unshift(a) : o ? l ? r = a : u[v] = a : i = a) : typeof a != "object" || a === null ? oe("Object expected") : ($e(c = a.get) && (u.get = c), $e(c = a.set) && (u.set = c), $e(c = a.init) && y.unshift(c));
1892
+ return o || Lc(e, i), u && Bs(i, n, u), l ? o ^ 4 ? r : u : i;
1893
+ }, D = (e, t, n) => ao(e, typeof t != "symbol" ? t + "" : t, n), Ks = (e, t, n) => t.has(e) || oe("Cannot " + n), Nc = (e, t) => Object(t) !== t ? oe('Cannot use the "in" operator on this value') : e.has(t), nt = (e, t, n) => (Ks(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Dt = (e, t, n) => t.has(e) ? oe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Vi = (e, t, n, s) => (Ks(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Ac = (e, t, n) => (Ks(e, t, "access private method"), n), ho, uo, po, fo, _o, go, mo, vo, wo, yo, So, $o, Eo, ss, bo, E, gt, Ee, Co, js, is, rs, Js, os, Po, ko, xo, as, To, Q, Ys;
1894
+ function Di(e) {
1902
1895
  return !e.startsWith("/");
1903
1896
  }
1904
- const Ic = kn(yr`
1897
+ const Ic = bn(vr`
1905
1898
  :host {
1906
1899
  /* link default style */
1907
1900
  cursor: pointer;
@@ -1916,14 +1909,14 @@ const Ic = kn(yr`
1916
1909
  color: unset;
1917
1910
  }
1918
1911
  `);
1919
- Po = [Nn(yc), Hs(Ic), Ht(), An({ focusable: !0 })];
1920
- class R extends (os = B, Co = [G], bo = [G], Eo = [G], $o = [G], So = [G], yo = [G], wo = [On], vo = [U], mo = [U], go = [U], _o = [U], fo = [Or], po = [qe()], os) {
1912
+ bo = [Tn(wc), Is(Ic), Ht(), On({ focusable: !0 })];
1913
+ class H extends (ss = B, Eo = [V], $o = [V], So = [V], yo = [V], wo = [V], vo = [V], mo = [kn], go = [U], _o = [U], fo = [U], po = [U], uo = [Tr], ho = [De()], ss) {
1921
1914
  constructor() {
1922
- super(...arguments), P(E, 5, this), Dt(this, _t), D(this, "href", P(E, 8, this)), P(E, 11, this), D(this, "target", P(E, 12, this)), P(E, 15, this), D(this, "path", P(E, 16, this)), P(E, 19, this), D(this, "query", P(E, 20, this)), P(E, 23, this), D(this, "hash", P(E, 24, this)), P(E, 27, this), D(this, "hint", P(E, 28, this)), P(E, 31, this), D(this, "preload", P(E, 32, this)), P(E, 35, this), D(this, "route", P(E, 36, this)), P(E, 39, this), D(this, "options", P(E, 40, this)), P(E, 43, this), D(this, "routeOptions", P(E, 44, this)), P(E, 47, this), D(this, "prepare", P(E, 48, this)), P(E, 51, this), D(this, "link", P(E, 52, this)), P(E, 55, this), Dt(this, Qs, async () => {
1923
- var o;
1915
+ super(...arguments), C(E, 5, this), Dt(this, gt), D(this, "href", C(E, 8, this)), C(E, 11, this), D(this, "target", C(E, 12, this)), C(E, 15, this), D(this, "path", C(E, 16, this)), C(E, 19, this), D(this, "query", C(E, 20, this)), C(E, 23, this), D(this, "hash", C(E, 24, this)), C(E, 27, this), D(this, "hint", C(E, 28, this)), C(E, 31, this), D(this, "preload", C(E, 32, this)), C(E, 35, this), D(this, "route", C(E, 36, this)), C(E, 39, this), D(this, "options", C(E, 40, this)), C(E, 43, this), D(this, "routeOptions", C(E, 44, this)), C(E, 47, this), D(this, "prepare", C(E, 48, this)), C(E, 51, this), D(this, "link", C(E, 52, this)), C(E, 55, this), Dt(this, js, async () => {
1916
+ var r;
1924
1917
  const t = this.getLocationString();
1925
1918
  if (!t) return;
1926
- if (qi(t))
1919
+ if (Di(t))
1927
1920
  switch (this.target) {
1928
1921
  case "_self":
1929
1922
  window.location.href = t;
@@ -1938,29 +1931,29 @@ class R extends (os = B, Co = [G], bo = [G], Eo = [G], $o = [G], So = [G], yo =
1938
1931
  window.open(t);
1939
1932
  return;
1940
1933
  }
1941
- const { path: n, query: s, hash: i } = O.getParams();
1934
+ const { path: n, query: s, hash: i } = M.getParams();
1942
1935
  if (n + s + i !== t)
1943
- if (await ((o = this.prepare) == null ? void 0 : o.call(this)), this.route)
1944
- O.pushIgnoreCloseHandle(xc(this.route, nt(this, _t, Ce)));
1936
+ if (await ((r = this.prepare) == null ? void 0 : r.call(this)), this.route)
1937
+ M.pushIgnoreCloseHandle(xc(this.route, nt(this, gt, Ee)));
1945
1938
  else if (this.href) {
1946
1939
  const c = new URL(t, location.origin);
1947
- O.pushIgnoreCloseHandle({
1940
+ M.pushIgnoreCloseHandle({
1948
1941
  path: c.pathname,
1949
1942
  query: c.search,
1950
1943
  hash: c.hash
1951
1944
  });
1952
1945
  } else
1953
- O.pushIgnoreCloseHandle({
1946
+ M.pushIgnoreCloseHandle({
1954
1947
  path: this.path,
1955
1948
  query: this.query,
1956
1949
  hash: this.hash
1957
1950
  });
1958
- }), Dt(this, as, (t) => {
1951
+ }), Dt(this, is, (t) => {
1959
1952
  t.preventDefault();
1960
- }), Dt(this, cs, () => {
1953
+ }), Dt(this, rs, () => {
1961
1954
  const t = this.getLocationString();
1962
- return qi(t) ? t : new URL(O.basePath + t, location.origin).toString();
1963
- }), Dt(this, Xs, () => {
1955
+ return Di(t) ? t : new URL(M.basePath + t, location.origin).toString();
1956
+ }), Dt(this, Js, () => {
1964
1957
  var t, n, s;
1965
1958
  (t = this.route) == null || t.content, (s = (n = this.route) == null ? void 0 : n.getContent) == null || s.call(n, {}, this.shadowRoot);
1966
1959
  });
@@ -1969,8 +1962,8 @@ class R extends (os = B, Co = [G], bo = [G], Eo = [G], $o = [G], So = [G], yo =
1969
1962
  return at`
1970
1963
  <a
1971
1964
  part=${this.link}
1972
- @click=${nt(this, as)}
1973
- href=${Sc(nt(this, _t, ko) === "off" ? void 0 : nt(this, cs).call(this))}
1965
+ @click=${nt(this, is)}
1966
+ href=${yc(nt(this, gt, Co) === "off" ? void 0 : nt(this, rs).call(this))}
1974
1967
  tabindex="-1"
1975
1968
  >
1976
1969
  <slot></slot>
@@ -1983,133 +1976,133 @@ class R extends (os = B, Co = [G], bo = [G], Eo = [G], $o = [G], So = [G], yo =
1983
1976
  getLocationString() {
1984
1977
  var t, n;
1985
1978
  if (this.route) {
1986
- const s = ((t = nt(this, _t, Ce)) == null ? void 0 : t.query) || "", i = ((n = nt(this, _t, Ce)) == null ? void 0 : n.hash) || "";
1987
- return js(this.route, nt(this, _t, Ce)) + s + i;
1979
+ const s = ((t = nt(this, gt, Ee)) == null ? void 0 : t.query) || "", i = ((n = nt(this, gt, Ee)) == null ? void 0 : n.hash) || "";
1980
+ return Us(this.route, nt(this, gt, Ee)) + s + i;
1988
1981
  } else {
1989
- const s = this.href || this.path + this.query + this.hash, { path: i, query: o } = O.getParams();
1990
- return s.startsWith("#") ? `${i}${o}${s}` : s.startsWith("?") ? `${i}${s}` : s.startsWith(".") ? vr(i, s) : s;
1982
+ const s = this.href || this.path + this.query + this.hash, { path: i, query: r } = M.getParams();
1983
+ return s.startsWith("#") ? `${i}${r}${s}` : s.startsWith("?") ? `${i}${s}` : s.startsWith(".") ? gr(i, s) : s;
1991
1984
  }
1992
1985
  }
1993
1986
  }
1994
- E = ho(os);
1995
- _t = /* @__PURE__ */ new WeakSet();
1996
- Ce = function() {
1987
+ E = co(ss);
1988
+ gt = /* @__PURE__ */ new WeakSet();
1989
+ Ee = function() {
1997
1990
  return this.routeOptions || this.options;
1998
1991
  };
1999
- ko = function() {
1992
+ Co = function() {
2000
1993
  return this.hint || "on";
2001
1994
  };
2002
- Qs = /* @__PURE__ */ new WeakMap();
2003
- as = /* @__PURE__ */ new WeakMap();
2004
- cs = /* @__PURE__ */ new WeakMap();
2005
- Xs = /* @__PURE__ */ new WeakMap();
2006
- ls = function() {
2007
- this.addEventListener("click", nt(this, Qs)), this.addEventListener("pointerenter", nt(this, Xs));
1995
+ js = /* @__PURE__ */ new WeakMap();
1996
+ is = /* @__PURE__ */ new WeakMap();
1997
+ rs = /* @__PURE__ */ new WeakMap();
1998
+ Js = /* @__PURE__ */ new WeakMap();
1999
+ os = function() {
2000
+ this.addEventListener("click", nt(this, js)), this.addEventListener("pointerenter", nt(this, Js));
2008
2001
  };
2009
- ls = N(E, 17, "#init", po, _t, ls);
2010
- N(E, 5, "href", Co, R);
2011
- N(E, 5, "target", bo, R);
2012
- N(E, 5, "path", Eo, R);
2013
- N(E, 5, "query", $o, R);
2014
- N(E, 5, "hash", So, R);
2015
- N(E, 5, "hint", yo, R);
2016
- N(E, 5, "preload", wo, R);
2017
- N(E, 5, "route", vo, R);
2018
- N(E, 5, "options", mo, R);
2019
- N(E, 5, "routeOptions", go, R);
2020
- N(E, 5, "prepare", _o, R);
2021
- N(E, 5, "link", fo, R);
2022
- R = N(E, 0, "GemLinkElement", Po, R);
2023
- P(E, 1, R);
2024
- Mo = [Nn(O.store)];
2025
- class se extends (hs = R, Oo = [G], To = [Ln], xo = [$t()], hs) {
2002
+ os = I(E, 17, "#init", ho, gt, os);
2003
+ I(E, 5, "href", Eo, H);
2004
+ I(E, 5, "target", $o, H);
2005
+ I(E, 5, "path", So, H);
2006
+ I(E, 5, "query", yo, H);
2007
+ I(E, 5, "hash", wo, H);
2008
+ I(E, 5, "hint", vo, H);
2009
+ I(E, 5, "preload", mo, H);
2010
+ I(E, 5, "route", go, H);
2011
+ I(E, 5, "options", _o, H);
2012
+ I(E, 5, "routeOptions", fo, H);
2013
+ I(E, 5, "prepare", po, H);
2014
+ I(E, 5, "link", uo, H);
2015
+ H = I(E, 0, "GemLinkElement", bo, H);
2016
+ C(E, 1, H);
2017
+ To = [Tn(M.store)];
2018
+ class ee extends (as = H, xo = [V], ko = [xn], Po = [St()], as) {
2026
2019
  constructor() {
2027
- super(...arguments), D(this, "pattern", P(X, 8, this)), P(X, 11, this), D(this, "active", P(X, 12, this)), P(X, 15, this), Dt(this, Zs, P(X, 16, this, () => {
2028
- const { path: t, query: n, hash: s } = O.getParams(), i = this.pattern && ao(this.pattern, t);
2020
+ super(...arguments), D(this, "pattern", C(Q, 8, this)), C(Q, 11, this), D(this, "active", C(Q, 12, this)), C(Q, 15, this), Dt(this, Ys, C(Q, 16, this, () => {
2021
+ const { path: t, query: n, hash: s } = M.getParams(), i = this.pattern && ro(this.pattern, t);
2029
2022
  this.active = !!i || t + n + s === this.getLocationString();
2030
- })), P(X, 19, this);
2031
- }
2032
- }
2033
- X = ho(hs);
2034
- Zs = /* @__PURE__ */ new WeakMap();
2035
- N(X, 5, "pattern", Oo, se);
2036
- N(X, 5, "active", To, se);
2037
- N(X, 21, "#updateState", xo, Zs);
2038
- se = N(X, 0, "GemActiveLinkElement", Mo, se);
2039
- P(X, 1, se);
2040
- customElements.define("gem-link", R);
2041
- customElements.define("gem-active-link", se);
2042
- customElements.define("gem-route", Ue);
2043
- customElements.define("gem-light-route", z);
2044
- var Rc = Object.create, ti = Object.defineProperty, Hc = Object.getOwnPropertyDescriptor, Lo = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), le = (e) => {
2023
+ })), C(Q, 19, this);
2024
+ }
2025
+ }
2026
+ Q = co(as);
2027
+ Ys = /* @__PURE__ */ new WeakMap();
2028
+ I(Q, 5, "pattern", xo, ee);
2029
+ I(Q, 5, "active", ko, ee);
2030
+ I(Q, 21, "#updateState", Po, Ys);
2031
+ ee = I(Q, 0, "GemActiveLinkElement", To, ee);
2032
+ C(Q, 1, ee);
2033
+ customElements.define("gem-link", H);
2034
+ customElements.define("gem-active-link", ee);
2035
+ customElements.define("gem-route", Fe);
2036
+ customElements.define("gem-light-route", A);
2037
+ var Rc = Object.create, Qs = Object.defineProperty, Hc = Object.getOwnPropertyDescriptor, Oo = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ae = (e) => {
2045
2038
  throw TypeError(e);
2046
- }, No = (e, t, n) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ui = (e, t) => ti(e, "name", { value: t, configurable: !0 }), Wc = (e) => [, , , Rc((e == null ? void 0 : e[Lo("metadata")]) ?? null)], Ao = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Pe = (e) => e !== void 0 && typeof e != "function" ? le("Function expected") : e, zc = (e, t, n, s, i) => ({ kind: Ao[e], name: t, metadata: s, addInitializer: (o) => n._ ? le("Already initialized") : i.push(Pe(o || null)) }), Vc = (e, t) => No(t, Lo("metadata"), e[3]), tt = (e, t, n, s) => {
2047
- for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
2039
+ }, Mo = (e, t, n) => t in e ? Qs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fi = (e, t) => Qs(e, "name", { value: t, configurable: !0 }), Wc = (e) => [, , , Rc((e == null ? void 0 : e[Oo("metadata")]) ?? null)], Lo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], be = (e) => e !== void 0 && typeof e != "function" ? ae("Function expected") : e, zc = (e, t, n, s, i) => ({ kind: Lo[e], name: t, metadata: s, addInitializer: (r) => n._ ? ae("Already initialized") : i.push(be(r || null)) }), Gc = (e, t) => Mo(t, Oo("metadata"), e[3]), tt = (e, t, n, s) => {
2040
+ for (var i = 0, r = e[t >> 1], c = r && r.length; i < c; i++) t & 1 ? r[i].call(n) : s = r[i].call(n, s);
2048
2041
  return s;
2049
- }, he = (e, t, n, s, i, o) => {
2050
- var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = Ao[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && Hc(r < 4 ? i : { get [n]() {
2051
- return us(this, o);
2052
- }, set [n](u) {
2053
- return Bi(this, o, u);
2042
+ }, ce = (e, t, n, s, i, r) => {
2043
+ var c, a, d, f, g, o = t & 7, _ = !!(t & 8), l = !!(t & 16), m = o > 3 ? e.length + 1 : o ? _ ? 1 : 2 : 0, v = Lo[o + 5], y = o > 3 && (e[m - 1] = []), $ = e[m] || (e[m] = []), u = o && (!l && !_ && (i = i.prototype), o < 5 && (o > 3 || !l) && Hc(o < 4 ? i : { get [n]() {
2044
+ return cs(this, r);
2045
+ }, set [n](h) {
2046
+ return qi(this, r, h);
2054
2047
  } }, n));
2055
- r ? l && r < 4 && Ui(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Ui(i, n);
2048
+ o ? l && o < 4 && Fi(r, (o > 2 ? "set " : o > 1 ? "get " : "") + n) : Fi(i, n);
2056
2049
  for (var S = s.length - 1; S >= 0; S--)
2057
- h = zc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Gc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? us : Dc)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => Bi(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Pe(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? le("Object expected") : (Pe(c = a.get) && (d.get = c), Pe(c = a.set) && (d.set = c), Pe(c = a.init) && y.unshift(c));
2058
- return r || Vc(e, i), d && ti(i, n, d), l ? r ^ 4 ? o : d : i;
2059
- }, ke = (e, t, n) => No(e, typeof t != "symbol" ? t + "" : t, n), ei = (e, t, n) => t.has(e) || le("Cannot " + n), Gc = (e, t) => Object(t) !== t ? le('Cannot use the "in" operator on this value') : e.has(t), us = (e, t, n) => (ei(e, t, "read from private field"), n ? n.call(e) : t.get(e)), jn = (e, t, n) => t.has(e) ? le("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Bi = (e, t, n, s) => (ei(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Dc = (e, t, n) => (ei(e, t, "access private method"), n), Io, Ro, Ho, Wo, zo, ds, Vo, L, ni, ps, si;
2060
- let Ki = 0;
2061
- const ji = (e) => {
2062
- clearTimeout(Ki), Ki = window.setTimeout(() => document.title = e);
2050
+ f = zc(o, n, d = {}, e[3], $), o && (f.static = _, f.private = l, g = f.access = { has: l ? (h) => Vc(i, h) : (h) => n in h }, o ^ 3 && (g.get = l ? (h) => (o ^ 1 ? cs : Dc)(h, i, o ^ 4 ? r : u.get) : (h) => h[n]), o > 2 && (g.set = l ? (h, k) => qi(h, i, k, o ^ 4 ? r : u.set) : (h, k) => h[n] = k)), a = (0, s[S])(o ? o < 4 ? l ? r : u[v] : o > 4 ? void 0 : { get: u.get, set: u.set } : i, f), d._ = 1, o ^ 4 || a === void 0 ? be(a) && (o > 4 ? y.unshift(a) : o ? l ? r = a : u[v] = a : i = a) : typeof a != "object" || a === null ? ae("Object expected") : (be(c = a.get) && (u.get = c), be(c = a.set) && (u.set = c), be(c = a.init) && y.unshift(c));
2051
+ return o || Gc(e, i), u && Qs(i, n, u), l ? o ^ 4 ? r : u : i;
2052
+ }, Ce = (e, t, n) => Mo(e, typeof t != "symbol" ? t + "" : t, n), Xs = (e, t, n) => t.has(e) || ae("Cannot " + n), Vc = (e, t) => Object(t) !== t ? ae('Cannot use the "in" operator on this value') : e.has(t), cs = (e, t, n) => (Xs(e, t, "read from private field"), n ? n.call(e) : t.get(e)), qn = (e, t, n) => t.has(e) ? ae("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), qi = (e, t, n, s) => (Xs(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Dc = (e, t, n) => (Xs(e, t, "access private method"), n), No, Ao, Io, Ro, Ho, ls, Wo, N, Zs, hs, ti;
2053
+ let Ui = 0;
2054
+ const Bi = (e) => {
2055
+ clearTimeout(Ui), Ui = window.setTimeout(() => document.title = e);
2063
2056
  };
2064
2057
  function Fc(e, t = "", n = "") {
2065
2058
  const s = At.title || e;
2066
- s && s !== At.defaultTitle ? (xe.title = s, ji(t + xe.title + n)) : (xe.title = At.defaultTitle, ji(xe.title));
2059
+ s && s !== At.defaultTitle ? (Pe.title = s, Bi(t + Pe.title + n)) : (Pe.title = At.defaultTitle, Bi(Pe.title));
2067
2060
  }
2068
- Vo = [Ht()];
2069
- let bt = class Go extends (ds = B, zo = [G], Wo = [G], Ho = [On], Ro = [$t((t) => [t.inert])], Io = [qe()], ds) {
2061
+ Wo = [Ht()];
2062
+ let Et = class zo extends (ls = B, Ho = [V], Ro = [V], Io = [kn], Ao = [St((t) => [t.inert])], No = [De()], ls) {
2070
2063
  constructor() {
2071
- super(...arguments), ke(this, "prefix", tt(L, 8, this)), tt(L, 11, this), ke(this, "suffix", tt(L, 12, this)), tt(L, 15, this), ke(this, "inert", tt(L, 16, this)), tt(L, 19, this), jn(this, ni, tt(L, 20, this, () => !this.inert && pt(At, this.update))), tt(L, 23, this), jn(this, ps, new MutationObserver(() => this.update())), jn(this, si, tt(L, 24, this, () => {
2072
- us(this, ps).observe(this, { characterData: !0, childList: !0, subtree: !0 });
2073
- })), tt(L, 27, this), ke(this, "render", () => {
2064
+ super(...arguments), Ce(this, "prefix", tt(N, 8, this)), tt(N, 11, this), Ce(this, "suffix", tt(N, 12, this)), tt(N, 15, this), Ce(this, "inert", tt(N, 16, this)), tt(N, 19, this), qn(this, Zs, tt(N, 20, this, () => !this.inert && ft(At, this.update))), tt(N, 23, this), qn(this, hs, new MutationObserver(() => this.update())), qn(this, ti, tt(N, 24, this, () => {
2065
+ cs(this, hs).observe(this, { characterData: !0, childList: !0, subtree: !0 });
2066
+ })), tt(N, 27, this), Ce(this, "render", () => {
2074
2067
  var t;
2075
- return Fc((t = this.textContent) == null ? void 0 : t.trim(), this.prefix, this.suffix), at`${Go.title}`;
2068
+ return Fc((t = this.textContent) == null ? void 0 : t.trim(), this.prefix, this.suffix), at`${zo.title}`;
2076
2069
  });
2077
2070
  }
2078
2071
  static setTitle(t) {
2079
- It(At, { title: t });
2072
+ At({ title: t });
2080
2073
  }
2081
2074
  };
2082
- L = Wc(ds);
2083
- ni = /* @__PURE__ */ new WeakMap();
2084
- ps = /* @__PURE__ */ new WeakMap();
2085
- si = /* @__PURE__ */ new WeakMap();
2086
- he(L, 5, "prefix", zo, bt);
2087
- he(L, 5, "suffix", Wo, bt);
2088
- he(L, 5, "inert", Ho, bt);
2089
- he(L, 21, "#connectStore", Ro, ni);
2090
- he(L, 21, "#obTextContent", Io, si);
2091
- bt = he(L, 0, "GemTitleElement", Vo, bt);
2092
- ke(bt, "title", document.title);
2093
- tt(L, 1, bt);
2094
- let xe = bt;
2095
- customElements.define("gem-title", xe);
2096
- var qc = Object.create, ii = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor, Do = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ue = (e) => {
2075
+ N = Wc(ls);
2076
+ Zs = /* @__PURE__ */ new WeakMap();
2077
+ hs = /* @__PURE__ */ new WeakMap();
2078
+ ti = /* @__PURE__ */ new WeakMap();
2079
+ ce(N, 5, "prefix", Ho, Et);
2080
+ ce(N, 5, "suffix", Ro, Et);
2081
+ ce(N, 5, "inert", Io, Et);
2082
+ ce(N, 21, "#connectStore", Ao, Zs);
2083
+ ce(N, 21, "#obTextContent", No, ti);
2084
+ Et = ce(N, 0, "GemTitleElement", Wo, Et);
2085
+ Ce(Et, "title", document.title);
2086
+ tt(N, 1, Et);
2087
+ let Pe = Et;
2088
+ customElements.define("gem-title", Pe);
2089
+ var qc = Object.create, ei = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor, Go = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), le = (e) => {
2097
2090
  throw TypeError(e);
2098
- }, Fo = (e, t, n) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ji = (e, t) => ii(e, "name", { value: t, configurable: !0 }), Bc = (e) => [, , , qc((e == null ? void 0 : e[Do("metadata")]) ?? null)], qo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Te = (e) => e !== void 0 && typeof e != "function" ? ue("Function expected") : e, Kc = (e, t, n, s, i) => ({ kind: qo[e], name: t, metadata: s, addInitializer: (o) => n._ ? ue("Already initialized") : i.push(Te(o || null)) }), jc = (e, t) => Fo(t, Do("metadata"), e[3]), ct = (e, t, n, s) => {
2099
- for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
2091
+ }, Vo = (e, t, n) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => ei(e, "name", { value: t, configurable: !0 }), Bc = (e) => [, , , qc((e == null ? void 0 : e[Go("metadata")]) ?? null)], Do = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ke = (e) => e !== void 0 && typeof e != "function" ? le("Function expected") : e, Kc = (e, t, n, s, i) => ({ kind: Do[e], name: t, metadata: s, addInitializer: (r) => n._ ? le("Already initialized") : i.push(ke(r || null)) }), jc = (e, t) => Vo(t, Go("metadata"), e[3]), ct = (e, t, n, s) => {
2092
+ for (var i = 0, r = e[t >> 1], c = r && r.length; i < c; i++) t & 1 ? r[i].call(n) : s = r[i].call(n, s);
2100
2093
  return s;
2101
- }, Ze = (e, t, n, s, i, o) => {
2102
- var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = qo[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && Uc(r < 4 ? i : { get [n]() {
2103
- return fs(this, o);
2104
- }, set [n](u) {
2105
- return Yi(this, o, u);
2094
+ }, Qe = (e, t, n, s, i, r) => {
2095
+ var c, a, d, f, g, o = t & 7, _ = !!(t & 8), l = !!(t & 16), m = o > 3 ? e.length + 1 : o ? _ ? 1 : 2 : 0, v = Do[o + 5], y = o > 3 && (e[m - 1] = []), $ = e[m] || (e[m] = []), u = o && (!l && !_ && (i = i.prototype), o < 5 && (o > 3 || !l) && Uc(o < 4 ? i : { get [n]() {
2096
+ return us(this, r);
2097
+ }, set [n](h) {
2098
+ return ji(this, r, h);
2106
2099
  } }, n));
2107
- r ? l && r < 4 && Ji(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Ji(i, n);
2100
+ o ? l && o < 4 && Ki(r, (o > 2 ? "set " : o > 1 ? "get " : "") + n) : Ki(i, n);
2108
2101
  for (var S = s.length - 1; S >= 0; S--)
2109
- h = Kc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Jc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? fs : Qc)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => Yi(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Te(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? ue("Object expected") : (Te(c = a.get) && (d.get = c), Te(c = a.set) && (d.set = c), Te(c = a.init) && y.unshift(c));
2110
- return r || jc(e, i), d && ii(i, n, d), l ? r ^ 4 ? o : d : i;
2111
- }, en = (e, t, n) => Fo(e, typeof t != "symbol" ? t + "" : t, n), ri = (e, t, n) => t.has(e) || ue("Cannot " + n), Jc = (e, t) => Object(t) !== t ? ue('Cannot use the "in" operator on this value') : e.has(t), fs = (e, t, n) => (ri(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Yc = (e, t, n) => t.has(e) ? ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Yi = (e, t, n, s) => (ri(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Qc = (e, t, n) => (ri(e, t, "access private method"), n), Uo, Bo, Ko, jo, _s, Jo, V, gs;
2112
- const Xc = kn(yr`
2102
+ f = Kc(o, n, d = {}, e[3], $), o && (f.static = _, f.private = l, g = f.access = { has: l ? (h) => Jc(i, h) : (h) => n in h }, o ^ 3 && (g.get = l ? (h) => (o ^ 1 ? us : Qc)(h, i, o ^ 4 ? r : u.get) : (h) => h[n]), o > 2 && (g.set = l ? (h, k) => ji(h, i, k, o ^ 4 ? r : u.set) : (h, k) => h[n] = k)), a = (0, s[S])(o ? o < 4 ? l ? r : u[v] : o > 4 ? void 0 : { get: u.get, set: u.set } : i, f), d._ = 1, o ^ 4 || a === void 0 ? ke(a) && (o > 4 ? y.unshift(a) : o ? l ? r = a : u[v] = a : i = a) : typeof a != "object" || a === null ? le("Object expected") : (ke(c = a.get) && (u.get = c), ke(c = a.set) && (u.set = c), ke(c = a.init) && y.unshift(c));
2103
+ return o || jc(e, i), u && ei(i, n, u), l ? o ^ 4 ? r : u : i;
2104
+ }, Ze = (e, t, n) => Vo(e, typeof t != "symbol" ? t + "" : t, n), ni = (e, t, n) => t.has(e) || le("Cannot " + n), Jc = (e, t) => Object(t) !== t ? le('Cannot use the "in" operator on this value') : e.has(t), us = (e, t, n) => (ni(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Yc = (e, t, n) => t.has(e) ? le("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ji = (e, t, n, s) => (ni(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Qc = (e, t, n) => (ni(e, t, "access private method"), n), Fo, qo, Uo, Bo, ds, Ko, G, ps;
2105
+ const Xc = bn(vr`
2113
2106
  :host(:where(:not([hidden]))) {
2114
2107
  position: relative;
2115
2108
  display: inline-flex;
@@ -2119,57 +2112,57 @@ const Xc = kn(yr`
2119
2112
  width: 100%;
2120
2113
  height: 100%;
2121
2114
  }
2122
- `), Qi = /* @__PURE__ */ new Map();
2123
- Jo = [Ht(), Hs(Xc)];
2124
- class Ct extends (_s = B, jo = [G], Ko = [U], Bo = [U], Uo = [Ln], _s) {
2115
+ `), Ji = /* @__PURE__ */ new Map();
2116
+ Ko = [Ht(), Is(Xc)];
2117
+ class bt extends (ds = B, Bo = [V], Uo = [U], qo = [U], Fo = [xn], ds) {
2125
2118
  constructor() {
2126
- super(...arguments), en(this, "selector", ct(V, 8, this)), ct(V, 11, this), en(this, "root", ct(V, 12, this)), ct(V, 15, this), en(this, "element", ct(V, 16, this)), ct(V, 19, this), en(this, "active", ct(V, 20, this)), ct(V, 23, this), Yc(this, gs, () => {
2119
+ super(...arguments), Ze(this, "selector", ct(G, 8, this)), ct(G, 11, this), Ze(this, "root", ct(G, 12, this)), ct(G, 15, this), Ze(this, "element", ct(G, 16, this)), ct(G, 19, this), Ze(this, "active", ct(G, 20, this)), ct(G, 23, this), Yc(this, ps, () => {
2127
2120
  const t = this.element || (this.selector ? (this.root || document).querySelector(this.selector) : null);
2128
2121
  if (typeof t == "string") {
2129
- let n = Qi.get(t);
2130
- return n || (n = document.createElement("template"), n.innerHTML = t, Qi.set(t, n)), n.content.cloneNode(!0);
2122
+ let n = Ji.get(t);
2123
+ return n || (n = document.createElement("template"), n.innerHTML = t, Ji.set(t, n)), n.content.cloneNode(!0);
2131
2124
  } else return t instanceof HTMLTemplateElement ? t.content.cloneNode(!0) : t == null ? void 0 : t.cloneNode(!0);
2132
2125
  });
2133
2126
  }
2134
2127
  render() {
2135
2128
  return at`
2136
- ${fs(this, gs).call(this)}
2129
+ ${us(this, ps).call(this)}
2137
2130
  <slot></slot>
2138
2131
  `;
2139
2132
  }
2140
2133
  }
2141
- V = Bc(_s);
2142
- gs = /* @__PURE__ */ new WeakMap();
2143
- Ze(V, 5, "selector", jo, Ct);
2144
- Ze(V, 5, "root", Ko, Ct);
2145
- Ze(V, 5, "element", Bo, Ct);
2146
- Ze(V, 5, "active", Uo, Ct);
2147
- Ct = Ze(V, 0, "GemUseElement", Jo, Ct);
2148
- ct(V, 1, Ct);
2149
- customElements.define("gem-use", Ct);
2150
- var Zc = Object.create, oi = Object.defineProperty, tl = Object.getOwnPropertyDescriptor, Yo = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), tn = (e) => {
2134
+ G = Bc(ds);
2135
+ ps = /* @__PURE__ */ new WeakMap();
2136
+ Qe(G, 5, "selector", Bo, bt);
2137
+ Qe(G, 5, "root", Uo, bt);
2138
+ Qe(G, 5, "element", qo, bt);
2139
+ Qe(G, 5, "active", Fo, bt);
2140
+ bt = Qe(G, 0, "GemUseElement", Ko, bt);
2141
+ ct(G, 1, bt);
2142
+ customElements.define("gem-use", bt);
2143
+ var Zc = Object.create, si = Object.defineProperty, tl = Object.getOwnPropertyDescriptor, jo = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), Xe = (e) => {
2151
2144
  throw TypeError(e);
2152
- }, Qo = (e, t, n) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xi = (e, t) => oi(e, "name", { value: t, configurable: !0 }), el = (e) => [, , , Zc((e == null ? void 0 : e[Yo("metadata")]) ?? null)], Xo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Oe = (e) => e !== void 0 && typeof e != "function" ? tn("Function expected") : e, nl = (e, t, n, s, i) => ({ kind: Xo[e], name: t, metadata: s, addInitializer: (o) => n._ ? tn("Already initialized") : i.push(Oe(o || null)) }), sl = (e, t) => Qo(t, Yo("metadata"), e[3]), Me = (e, t, n, s) => {
2153
- for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
2145
+ }, Jo = (e, t, n) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yi = (e, t) => si(e, "name", { value: t, configurable: !0 }), el = (e) => [, , , Zc((e == null ? void 0 : e[jo("metadata")]) ?? null)], Yo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], xe = (e) => e !== void 0 && typeof e != "function" ? Xe("Function expected") : e, nl = (e, t, n, s, i) => ({ kind: Yo[e], name: t, metadata: s, addInitializer: (r) => n._ ? Xe("Already initialized") : i.push(xe(r || null)) }), sl = (e, t) => Jo(t, jo("metadata"), e[3]), Te = (e, t, n, s) => {
2146
+ for (var i = 0, r = e[t >> 1], c = r && r.length; i < c; i++) t & 1 ? r[i].call(n) : s = r[i].call(n, s);
2154
2147
  return s;
2155
- }, ai = (e, t, n, s, i, o) => {
2156
- var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = Xo[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && tl(r < 4 ? i : { get [n]() {
2157
- return tr(this, o);
2158
- }, set [n](u) {
2159
- return er(this, o, u);
2148
+ }, ii = (e, t, n, s, i, r) => {
2149
+ var c, a, d, f, g, o = t & 7, _ = !!(t & 8), l = !!(t & 16), m = o > 3 ? e.length + 1 : o ? _ ? 1 : 2 : 0, v = Yo[o + 5], y = o > 3 && (e[m - 1] = []), $ = e[m] || (e[m] = []), u = o && (!l && !_ && (i = i.prototype), o < 5 && (o > 3 || !l) && tl(o < 4 ? i : { get [n]() {
2150
+ return Xi(this, r);
2151
+ }, set [n](h) {
2152
+ return Zi(this, r, h);
2160
2153
  } }, n));
2161
- r ? l && r < 4 && Xi(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Xi(i, n);
2154
+ o ? l && o < 4 && Yi(r, (o > 2 ? "set " : o > 1 ? "get " : "") + n) : Yi(i, n);
2162
2155
  for (var S = s.length - 1; S >= 0; S--)
2163
- h = nl(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => il(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? tr : rl)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => er(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Oe(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? tn("Object expected") : (Oe(c = a.get) && (d.get = c), Oe(c = a.set) && (d.set = c), Oe(c = a.init) && y.unshift(c));
2164
- return r || sl(e, i), d && oi(i, n, d), l ? r ^ 4 ? o : d : i;
2165
- }, Zi = (e, t, n) => Qo(e, typeof t != "symbol" ? t + "" : t, n), ci = (e, t, n) => t.has(e) || tn("Cannot " + n), il = (e, t) => Object(t) !== t ? tn('Cannot use the "in" operator on this value') : e.has(t), tr = (e, t, n) => (ci(e, t, "read from private field"), n ? n.call(e) : t.get(e)), er = (e, t, n, s) => (ci(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), rl = (e, t, n) => (ci(e, t, "access private method"), n), Zo, ta, ms, ea, dt;
2166
- ea = [Ht()];
2167
- class ie extends (ms = B, ta = [G], Zo = [G], ms) {
2156
+ f = nl(o, n, d = {}, e[3], $), o && (f.static = _, f.private = l, g = f.access = { has: l ? (h) => il(i, h) : (h) => n in h }, o ^ 3 && (g.get = l ? (h) => (o ^ 1 ? Xi : rl)(h, i, o ^ 4 ? r : u.get) : (h) => h[n]), o > 2 && (g.set = l ? (h, k) => Zi(h, i, k, o ^ 4 ? r : u.set) : (h, k) => h[n] = k)), a = (0, s[S])(o ? o < 4 ? l ? r : u[v] : o > 4 ? void 0 : { get: u.get, set: u.set } : i, f), d._ = 1, o ^ 4 || a === void 0 ? xe(a) && (o > 4 ? y.unshift(a) : o ? l ? r = a : u[v] = a : i = a) : typeof a != "object" || a === null ? Xe("Object expected") : (xe(c = a.get) && (u.get = c), xe(c = a.set) && (u.set = c), xe(c = a.init) && y.unshift(c));
2157
+ return o || sl(e, i), u && si(i, n, u), l ? o ^ 4 ? r : u : i;
2158
+ }, Qi = (e, t, n) => Jo(e, typeof t != "symbol" ? t + "" : t, n), ri = (e, t, n) => t.has(e) || Xe("Cannot " + n), il = (e, t) => Object(t) !== t ? Xe('Cannot use the "in" operator on this value') : e.has(t), Xi = (e, t, n) => (ri(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Zi = (e, t, n, s) => (ri(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), rl = (e, t, n) => (ri(e, t, "access private method"), n), Qo, Xo, fs, Zo, pt;
2159
+ Zo = [Ht()];
2160
+ class ne extends (fs = B, Xo = [V], Qo = [V], fs) {
2168
2161
  constructor() {
2169
- super(...arguments), Zi(this, "content", Me(dt, 8, this)), Me(dt, 11, this), Zi(this, "contentcss", Me(dt, 12, this)), Me(dt, 15, this);
2162
+ super(...arguments), Qi(this, "content", Te(pt, 8, this)), Te(pt, 11, this), Qi(this, "contentcss", Te(pt, 12, this)), Te(pt, 15, this);
2170
2163
  }
2171
2164
  render() {
2172
- this.shadowRoot.innerHTML = xs`
2165
+ this.shadowRoot.innerHTML = Cs`
2173
2166
  <style>
2174
2167
  :host(:where(:not([hidden]))) {
2175
2168
  display: contents;
@@ -2180,91 +2173,91 @@ class ie extends (ms = B, ta = [G], Zo = [G], ms) {
2180
2173
  `;
2181
2174
  }
2182
2175
  }
2183
- dt = el(ms);
2184
- ai(dt, 5, "content", ta, ie);
2185
- ai(dt, 5, "contentcss", Zo, ie);
2186
- ie = ai(dt, 0, "GemUnsafeElement", ea, ie);
2187
- Me(dt, 1, ie);
2188
- customElements.define("gem-unsafe", ie);
2189
- var ol = Object.create, li = Object.defineProperty, al = Object.getOwnPropertyDescriptor, na = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), de = (e) => {
2176
+ pt = el(fs);
2177
+ ii(pt, 5, "content", Xo, ne);
2178
+ ii(pt, 5, "contentcss", Qo, ne);
2179
+ ne = ii(pt, 0, "GemUnsafeElement", Zo, ne);
2180
+ Te(pt, 1, ne);
2181
+ customElements.define("gem-unsafe", ne);
2182
+ var ol = Object.create, oi = Object.defineProperty, al = Object.getOwnPropertyDescriptor, ta = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), he = (e) => {
2190
2183
  throw TypeError(e);
2191
- }, sa = (e, t, n) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nr = (e, t) => li(e, "name", { value: t, configurable: !0 }), cl = (e) => [, , , ol((e == null ? void 0 : e[na("metadata")]) ?? null)], ia = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Le = (e) => e !== void 0 && typeof e != "function" ? de("Function expected") : e, ll = (e, t, n, s, i) => ({ kind: ia[e], name: t, metadata: s, addInitializer: (o) => n._ ? de("Already initialized") : i.push(Le(o || null)) }), ra = (e, t) => sa(t, na("metadata"), e[3]), ft = (e, t, n, s) => {
2192
- for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
2184
+ }, ea = (e, t, n) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, tr = (e, t) => oi(e, "name", { value: t, configurable: !0 }), cl = (e) => [, , , ol((e == null ? void 0 : e[ta("metadata")]) ?? null)], na = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Oe = (e) => e !== void 0 && typeof e != "function" ? he("Function expected") : e, ll = (e, t, n, s, i) => ({ kind: na[e], name: t, metadata: s, addInitializer: (r) => n._ ? he("Already initialized") : i.push(Oe(r || null)) }), sa = (e, t) => ea(t, ta("metadata"), e[3]), _t = (e, t, n, s) => {
2185
+ for (var i = 0, r = e[t >> 1], c = r && r.length; i < c; i++) t & 1 ? r[i].call(n) : s = r[i].call(n, s);
2193
2186
  return s;
2194
- }, In = (e, t, n, s, i, o) => {
2195
- var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = ia[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && al(r < 4 ? i : { get [n]() {
2196
- return gt(this, o);
2197
- }, set [n](u) {
2198
- return vs(this, o, u);
2187
+ }, Mn = (e, t, n, s, i, r) => {
2188
+ var c, a, d, f, g, o = t & 7, _ = !!(t & 8), l = !!(t & 16), m = o > 3 ? e.length + 1 : o ? _ ? 1 : 2 : 0, v = na[o + 5], y = o > 3 && (e[m - 1] = []), $ = e[m] || (e[m] = []), u = o && (!l && !_ && (i = i.prototype), o < 5 && (o > 3 || !l) && al(o < 4 ? i : { get [n]() {
2189
+ return mt(this, r);
2190
+ }, set [n](h) {
2191
+ return _s(this, r, h);
2199
2192
  } }, n));
2200
- r ? l && r < 4 && nr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : nr(i, n);
2193
+ o ? l && o < 4 && tr(r, (o > 2 ? "set " : o > 1 ? "get " : "") + n) : tr(i, n);
2201
2194
  for (var S = s.length - 1; S >= 0; S--)
2202
- h = ll(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => hl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? gt : ul)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => vs(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Le(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? de("Object expected") : (Le(c = a.get) && (d.get = c), Le(c = a.set) && (d.set = c), Le(c = a.init) && y.unshift(c));
2203
- return r || ra(e, i), d && li(i, n, d), l ? r ^ 4 ? o : d : i;
2204
- }, sr = (e, t, n) => sa(e, typeof t != "symbol" ? t + "" : t, n), hi = (e, t, n) => t.has(e) || de("Cannot " + n), hl = (e, t) => Object(t) !== t ? de('Cannot use the "in" operator on this value') : e.has(t), gt = (e, t, n) => (hi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Wt = (e, t, n) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), vs = (e, t, n, s) => (hi(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), ul = (e, t, n) => (hi(e, t, "access private method"), n), oa, aa, ca, la, ws, F, ys, ha, ui, cn, Ss, Ne, di;
2205
- const dl = "gem-reflect-start", ua = "gem-reflect-end", ir = (e) => new Comment(e), pl = (e) => {
2195
+ f = ll(o, n, d = {}, e[3], $), o && (f.static = _, f.private = l, g = f.access = { has: l ? (h) => hl(i, h) : (h) => n in h }, o ^ 3 && (g.get = l ? (h) => (o ^ 1 ? mt : ul)(h, i, o ^ 4 ? r : u.get) : (h) => h[n]), o > 2 && (g.set = l ? (h, k) => _s(h, i, k, o ^ 4 ? r : u.set) : (h, k) => h[n] = k)), a = (0, s[S])(o ? o < 4 ? l ? r : u[v] : o > 4 ? void 0 : { get: u.get, set: u.set } : i, f), d._ = 1, o ^ 4 || a === void 0 ? Oe(a) && (o > 4 ? y.unshift(a) : o ? l ? r = a : u[v] = a : i = a) : typeof a != "object" || a === null ? he("Object expected") : (Oe(c = a.get) && (u.get = c), Oe(c = a.set) && (u.set = c), Oe(c = a.init) && y.unshift(c));
2196
+ return o || sa(e, i), u && oi(i, n, u), l ? o ^ 4 ? r : u : i;
2197
+ }, er = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n), ai = (e, t, n) => t.has(e) || he("Cannot " + n), hl = (e, t) => Object(t) !== t ? he('Cannot use the "in" operator on this value') : e.has(t), mt = (e, t, n) => (ai(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Wt = (e, t, n) => t.has(e) ? he("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), _s = (e, t, n, s) => (ai(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), ul = (e, t, n) => (ai(e, t, "access private method"), n), ia, ra, oa, aa, gs, F, ms, ca, ci, rn, vs, Me, li;
2198
+ const dl = "gem-reflect-start", la = "gem-reflect-end", nr = (e) => new Comment(e), pl = (e) => {
2206
2199
  const t = [];
2207
2200
  let n = e;
2208
- for (; n && (t.push(n), n.nodeValue !== ua); )
2201
+ for (; n && (t.push(n), n.nodeValue !== la); )
2209
2202
  n = n.nextSibling;
2210
2203
  return t;
2211
2204
  };
2212
- class Rn extends (ws = B, la = [G], ca = [U], aa = [Mn()], oa = [$t((t) => [t.target])], ws) {
2205
+ class Ln extends (gs = B, aa = [V], oa = [U], ra = [As()], ia = [St((t) => [t.target])], gs) {
2213
2206
  constructor() {
2214
- super(...arguments), Wt(this, ys), sr(this, "method", ft(F, 8, this)), ft(F, 11, this), sr(this, "target", ft(F, 12, this, document.head)), ft(F, 15, this), Wt(this, ui, ft(F, 16, this, () => {
2207
+ super(...arguments), Wt(this, ms), er(this, "method", _t(F, 8, this)), _t(F, 11, this), er(this, "target", _t(F, 12, this, document.head)), _t(F, 15, this), Wt(this, ci, _t(F, 16, this, () => {
2215
2208
  this.hidden = !0, this.dataset.gemReflect = "";
2216
- })), ft(F, 19, this), Wt(this, cn, ir(dl)), Wt(this, Ss, ir(ua)), Wt(this, Ne), Wt(this, di, ft(F, 20, this, () => ((gt(this, Ne) || [gt(this, cn), ...this.childNodes, gt(this, Ss)]).forEach((t, n, s) => {
2209
+ })), _t(F, 19, this), Wt(this, rn, nr(dl)), Wt(this, vs, nr(la)), Wt(this, Me), Wt(this, li, _t(F, 20, this, () => ((mt(this, Me) || [mt(this, rn), ...this.childNodes, mt(this, vs)]).forEach((t, n, s) => {
2217
2210
  const i = s[n - 1];
2218
- i ? i.after(t) : this.target[gt(this, ys, ha)](t);
2211
+ i ? i.after(t) : this.target[mt(this, ms, ca)](t);
2219
2212
  }), () => {
2220
- vs(this, Ne, pl(gt(this, cn))), gt(this, Ne).forEach((t) => t.remove());
2221
- }))), ft(F, 23, this);
2213
+ _s(this, Me, pl(mt(this, rn))), mt(this, Me).forEach((t) => t.remove());
2214
+ }))), _t(F, 23, this);
2222
2215
  }
2223
2216
  }
2224
- F = cl(ws);
2225
- ys = /* @__PURE__ */ new WeakSet();
2226
- ha = function() {
2217
+ F = cl(gs);
2218
+ ms = /* @__PURE__ */ new WeakSet();
2219
+ ca = function() {
2227
2220
  return this.method || "append";
2228
2221
  };
2229
- ui = /* @__PURE__ */ new WeakMap();
2230
- cn = /* @__PURE__ */ new WeakMap();
2231
- Ss = /* @__PURE__ */ new WeakMap();
2232
- Ne = /* @__PURE__ */ new WeakMap();
2233
- di = /* @__PURE__ */ new WeakMap();
2234
- In(F, 5, "method", la, Rn);
2235
- In(F, 5, "target", ca, Rn);
2236
- In(F, 21, "#init", aa, ui);
2237
- In(F, 21, "#changeTarget", oa, di);
2238
- ra(F, Rn);
2239
- customElements.define("gem-reflect", Rn);
2240
- var fl = Object.create, pi = Object.defineProperty, _l = Object.getOwnPropertyDescriptor, da = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), pe = (e) => {
2222
+ ci = /* @__PURE__ */ new WeakMap();
2223
+ rn = /* @__PURE__ */ new WeakMap();
2224
+ vs = /* @__PURE__ */ new WeakMap();
2225
+ Me = /* @__PURE__ */ new WeakMap();
2226
+ li = /* @__PURE__ */ new WeakMap();
2227
+ Mn(F, 5, "method", aa, Ln);
2228
+ Mn(F, 5, "target", oa, Ln);
2229
+ Mn(F, 21, "#init", ra, ci);
2230
+ Mn(F, 21, "#changeTarget", ia, li);
2231
+ sa(F, Ln);
2232
+ customElements.define("gem-reflect", Ln);
2233
+ var fl = Object.create, hi = Object.defineProperty, _l = Object.getOwnPropertyDescriptor, ha = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ue = (e) => {
2241
2234
  throw TypeError(e);
2242
- }, pa = (e, t, n) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rr = (e, t) => pi(e, "name", { value: t, configurable: !0 }), gl = (e) => [, , , fl((e == null ? void 0 : e[da("metadata")]) ?? null)], fa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ae = (e) => e !== void 0 && typeof e != "function" ? pe("Function expected") : e, ml = (e, t, n, s, i) => ({ kind: fa[e], name: t, metadata: s, addInitializer: (o) => n._ ? pe("Already initialized") : i.push(Ae(o || null)) }), vl = (e, t) => pa(t, da("metadata"), e[3]), ge = (e, t, n, s) => {
2243
- for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
2235
+ }, ua = (e, t, n) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, sr = (e, t) => hi(e, "name", { value: t, configurable: !0 }), gl = (e) => [, , , fl((e == null ? void 0 : e[ha("metadata")]) ?? null)], da = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Le = (e) => e !== void 0 && typeof e != "function" ? ue("Function expected") : e, ml = (e, t, n, s, i) => ({ kind: da[e], name: t, metadata: s, addInitializer: (r) => n._ ? ue("Already initialized") : i.push(Le(r || null)) }), vl = (e, t) => ua(t, ha("metadata"), e[3]), pe = (e, t, n, s) => {
2236
+ for (var i = 0, r = e[t >> 1], c = r && r.length; i < c; i++) t & 1 ? r[i].call(n) : s = r[i].call(n, s);
2244
2237
  return s;
2245
- }, Jn = (e, t, n, s, i, o) => {
2246
- var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = fa[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && _l(r < 4 ? i : { get [n]() {
2247
- return or(this, o);
2248
- }, set [n](u) {
2249
- return cr(this, o, u);
2238
+ }, Un = (e, t, n, s, i, r) => {
2239
+ var c, a, d, f, g, o = t & 7, _ = !!(t & 8), l = !!(t & 16), m = o > 3 ? e.length + 1 : o ? _ ? 1 : 2 : 0, v = da[o + 5], y = o > 3 && (e[m - 1] = []), $ = e[m] || (e[m] = []), u = o && (!l && !_ && (i = i.prototype), o < 5 && (o > 3 || !l) && _l(o < 4 ? i : { get [n]() {
2240
+ return ir(this, r);
2241
+ }, set [n](h) {
2242
+ return or(this, r, h);
2250
2243
  } }, n));
2251
- r ? l && r < 4 && rr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : rr(i, n);
2244
+ o ? l && o < 4 && sr(r, (o > 2 ? "set " : o > 1 ? "get " : "") + n) : sr(i, n);
2252
2245
  for (var S = s.length - 1; S >= 0; S--)
2253
- h = ml(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => wl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? or : yl)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => cr(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Ae(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? pe("Object expected") : (Ae(c = a.get) && (d.get = c), Ae(c = a.set) && (d.set = c), Ae(c = a.init) && y.unshift(c));
2254
- return r || vl(e, i), d && pi(i, n, d), l ? r ^ 4 ? o : d : i;
2255
- }, nn = (e, t, n) => pa(e, typeof t != "symbol" ? t + "" : t, n), fi = (e, t, n) => t.has(e) || pe("Cannot " + n), wl = (e, t) => Object(t) !== t ? pe('Cannot use the "in" operator on this value') : e.has(t), or = (e, t, n) => (fi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ar = (e, t, n) => t.has(e) ? pe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), cr = (e, t, n, s) => (fi(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), yl = (e, t, n) => (fi(e, t, "access private method"), n);
2256
- const sn = Symbol("open mark");
2246
+ f = ml(o, n, d = {}, e[3], $), o && (f.static = _, f.private = l, g = f.access = { has: l ? (h) => wl(i, h) : (h) => n in h }, o ^ 3 && (g.get = l ? (h) => (o ^ 1 ? ir : yl)(h, i, o ^ 4 ? r : u.get) : (h) => h[n]), o > 2 && (g.set = l ? (h, k) => or(h, i, k, o ^ 4 ? r : u.set) : (h, k) => h[n] = k)), a = (0, s[S])(o ? o < 4 ? l ? r : u[v] : o > 4 ? void 0 : { get: u.get, set: u.set } : i, f), d._ = 1, o ^ 4 || a === void 0 ? Le(a) && (o > 4 ? y.unshift(a) : o ? l ? r = a : u[v] = a : i = a) : typeof a != "object" || a === null ? ue("Object expected") : (Le(c = a.get) && (u.get = c), Le(c = a.set) && (u.set = c), Le(c = a.init) && y.unshift(c));
2247
+ return o || vl(e, i), u && hi(i, n, u), l ? o ^ 4 ? r : u : i;
2248
+ }, tn = (e, t, n) => ua(e, typeof t != "symbol" ? t + "" : t, n), ui = (e, t, n) => t.has(e) || ue("Cannot " + n), wl = (e, t) => Object(t) !== t ? ue('Cannot use the "in" operator on this value') : e.has(t), ir = (e, t, n) => (ui(e, t, "read from private field"), n ? n.call(e) : t.get(e)), rr = (e, t, n) => t.has(e) ? ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), or = (e, t, n, s) => (ui(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), yl = (e, t, n) => (ui(e, t, "access private method"), n);
2249
+ const en = Symbol("open mark");
2257
2250
  function Ul(e) {
2258
- var t, n, s, i, o, c, a;
2259
- const f = Symbol();
2260
- i = [Ht(), An({ role: "alertdialog", ariaModal: "true" })];
2261
- let h = class _a extends (s = B, n = [qe()], t = [qe()], s) {
2251
+ var t, n, s, i, r, c, a;
2252
+ const d = Symbol();
2253
+ i = [Ht(), On({ role: "alertdialog", ariaModal: "true" })];
2254
+ let f = class pa extends (s = B, n = [De()], t = [De()], s) {
2262
2255
  constructor() {
2263
- super(...arguments), nn(this, "label", ""), ar(this, c, ge(o, 8, this, () => pt(O.store, this.update))), ge(o, 11, this), ar(this, a, ge(o, 12, this, () => pt(_a.store, this.update))), ge(o, 15, this);
2256
+ super(...arguments), tn(this, "label", ""), rr(this, c, pe(r, 8, this, () => ft(M.store, this.update))), pe(r, 11, this), rr(this, a, pe(r, 12, this, () => ft(pa.store, this.update))), pe(r, 15, this);
2264
2257
  }
2265
2258
  /**@final */
2266
2259
  static get isOpen() {
2267
- return this.store[sn];
2260
+ return this.store[en];
2268
2261
  }
2269
2262
  /**
2270
2263
  * @final
@@ -2274,22 +2267,22 @@ function Ul(e) {
2274
2267
  static open(_) {
2275
2268
  const l = new this();
2276
2269
  this.instance = l, this.inertStore = [...document.body.children].filter((v) => !v.inert), this.inertStore.forEach((v) => v.inert = !0), document.body.append(l);
2277
- const g = () => It(this.store, { [sn]: !0, ..._ });
2270
+ const m = () => this.store({ [en]: !0, ..._ });
2278
2271
  return setTimeout(() => {
2279
- g(), O.push({
2272
+ m(), M.push({
2280
2273
  title: l.label,
2281
- open: g,
2274
+ open: m,
2282
2275
  close: this.closeHandle.bind(this),
2283
2276
  shouldClose: this.shouldClose.bind(this)
2284
2277
  });
2285
- }, 100), f;
2278
+ }, 100), d;
2286
2279
  }
2287
2280
  /**
2288
2281
  * @final
2289
2282
  * UI 中执行关闭
2290
2283
  */
2291
2284
  static close() {
2292
- return O.back(), f;
2285
+ return M.back(), d;
2293
2286
  }
2294
2287
  /**
2295
2288
  * @final
@@ -2297,7 +2290,7 @@ function Ul(e) {
2297
2290
  */
2298
2291
  static closeHandle() {
2299
2292
  var _;
2300
- return this.inertStore.forEach((l) => l.inert = !1), (_ = this.instance) == null || _.remove(), It(this.store, { [sn]: !1, ...e }), f;
2293
+ return this.inertStore.forEach((l) => l.inert = !1), (_ = this.instance) == null || _.remove(), this.store({ [en]: !1, ...e }), d;
2301
2294
  }
2302
2295
  /**
2303
2296
  * 由于要操作浏览器历史记录,所以没有设计为 Promise;
@@ -2306,72 +2299,72 @@ function Ul(e) {
2306
2299
  return !0;
2307
2300
  }
2308
2301
  };
2309
- return o = gl(s), c = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), Jn(o, 21, "#connectHistory", n, c), Jn(o, 21, "#connectStore", t, a), h = Jn(o, 0, "ModalElement", i, h), nn(h, "inertStore", []), nn(h, "instance", null), nn(h, "store", bn({
2310
- [sn]: !1,
2302
+ return r = gl(s), c = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), Un(r, 21, "#connectHistory", n, c), Un(r, 21, "#connectStore", t, a), f = Un(r, 0, "ModalElement", i, f), tn(f, "inertStore", []), tn(f, "instance", null), tn(f, "store", Rt({
2303
+ [en]: !1,
2311
2304
  ...e
2312
- })), ge(o, 1, h), h;
2305
+ })), pe(r, 1, f), f;
2313
2306
  }
2314
- var Sl = Object.create, _i = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, ga = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), fe = (e) => {
2307
+ var Sl = Object.create, di = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, fa = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), de = (e) => {
2315
2308
  throw TypeError(e);
2316
- }, ma = (e, t, n) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, lr = (e, t) => _i(e, "name", { value: t, configurable: !0 }), El = (e) => [, , , Sl((e == null ? void 0 : e[ga("metadata")]) ?? null)], va = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ie = (e) => e !== void 0 && typeof e != "function" ? fe("Function expected") : e, bl = (e, t, n, s, i) => ({ kind: va[e], name: t, metadata: s, addInitializer: (o) => n._ ? fe("Already initialized") : i.push(Ie(o || null)) }), Cl = (e, t) => ma(t, ga("metadata"), e[3]), Tt = (e, t, n, s) => {
2317
- for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
2309
+ }, _a = (e, t, n) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ar = (e, t) => di(e, "name", { value: t, configurable: !0 }), El = (e) => [, , , Sl((e == null ? void 0 : e[fa("metadata")]) ?? null)], ga = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ne = (e) => e !== void 0 && typeof e != "function" ? de("Function expected") : e, bl = (e, t, n, s, i) => ({ kind: ga[e], name: t, metadata: s, addInitializer: (r) => n._ ? de("Already initialized") : i.push(Ne(r || null)) }), Cl = (e, t) => _a(t, fa("metadata"), e[3]), xt = (e, t, n, s) => {
2310
+ for (var i = 0, r = e[t >> 1], c = r && r.length; i < c; i++) t & 1 ? r[i].call(n) : s = r[i].call(n, s);
2318
2311
  return s;
2319
- }, Hn = (e, t, n, s, i, o) => {
2320
- var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = va[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && $l(r < 4 ? i : { get [n]() {
2321
- return et(this, o);
2322
- }, set [n](u) {
2323
- return Ve(this, o, u);
2312
+ }, Nn = (e, t, n, s, i, r) => {
2313
+ var c, a, d, f, g, o = t & 7, _ = !!(t & 8), l = !!(t & 16), m = o > 3 ? e.length + 1 : o ? _ ? 1 : 2 : 0, v = ga[o + 5], y = o > 3 && (e[m - 1] = []), $ = e[m] || (e[m] = []), u = o && (!l && !_ && (i = i.prototype), o < 5 && (o > 3 || !l) && $l(o < 4 ? i : { get [n]() {
2314
+ return et(this, r);
2315
+ }, set [n](h) {
2316
+ return We(this, r, h);
2324
2317
  } }, n));
2325
- r ? l && r < 4 && lr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : lr(i, n);
2318
+ o ? l && o < 4 && ar(r, (o > 2 ? "set " : o > 1 ? "get " : "") + n) : ar(i, n);
2326
2319
  for (var S = s.length - 1; S >= 0; S--)
2327
- h = bl(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Pl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? et : kl)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => Ve(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Ie(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? fe("Object expected") : (Ie(c = a.get) && (d.get = c), Ie(c = a.set) && (d.set = c), Ie(c = a.init) && y.unshift(c));
2328
- return r || Cl(e, i), d && _i(i, n, d), l ? r ^ 4 ? o : d : i;
2329
- }, me = (e, t, n) => ma(e, typeof t != "symbol" ? t + "" : t, n), gi = (e, t, n) => t.has(e) || fe("Cannot " + n), Pl = (e, t) => Object(t) !== t ? fe('Cannot use the "in" operator on this value') : e.has(t), et = (e, t, n) => (gi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), zt = (e, t, n) => t.has(e) ? fe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Ve = (e, t, n, s) => (gi(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), kl = (e, t, n) => (gi(e, t, "access private method"), n), wa, ya, Sa, $s, $a, Z, Re, He, We, Es, ln, mi;
2330
- const Yn = Symbol();
2331
- $a = [Nn(O.store), An({ role: "dialog", ariaModal: "true" })];
2332
- class Be extends ($s = B, Sa = [G], ya = [Ln], wa = [Mn()], $s) {
2320
+ f = bl(o, n, d = {}, e[3], $), o && (f.static = _, f.private = l, g = f.access = { has: l ? (h) => Pl(i, h) : (h) => n in h }, o ^ 3 && (g.get = l ? (h) => (o ^ 1 ? et : kl)(h, i, o ^ 4 ? r : u.get) : (h) => h[n]), o > 2 && (g.set = l ? (h, k) => We(h, i, k, o ^ 4 ? r : u.set) : (h, k) => h[n] = k)), a = (0, s[S])(o ? o < 4 ? l ? r : u[v] : o > 4 ? void 0 : { get: u.get, set: u.set } : i, f), d._ = 1, o ^ 4 || a === void 0 ? Ne(a) && (o > 4 ? y.unshift(a) : o ? l ? r = a : u[v] = a : i = a) : typeof a != "object" || a === null ? de("Object expected") : (Ne(c = a.get) && (u.get = c), Ne(c = a.set) && (u.set = c), Ne(c = a.init) && y.unshift(c));
2321
+ return o || Cl(e, i), u && di(i, n, u), l ? o ^ 4 ? r : u : i;
2322
+ }, fe = (e, t, n) => _a(e, typeof t != "symbol" ? t + "" : t, n), pi = (e, t, n) => t.has(e) || de("Cannot " + n), Pl = (e, t) => Object(t) !== t ? de('Cannot use the "in" operator on this value') : e.has(t), et = (e, t, n) => (pi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), zt = (e, t, n) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), We = (e, t, n, s) => (pi(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), kl = (e, t, n) => (pi(e, t, "access private method"), n), ma, va, wa, ws, ya, X, Ae, Ie, Re, ys, on, fi;
2323
+ const Bn = Symbol();
2324
+ ya = [Tn(M.store), On({ role: "dialog", ariaModal: "true" })];
2325
+ class qe extends (ws = B, wa = [V], va = [xn], ma = [As()], ws) {
2333
2326
  constructor() {
2334
- super(...arguments), me(this, "label", Tt(Z, 8, this)), Tt(Z, 11, this), me(this, "opened", Tt(Z, 12, this)), Tt(Z, 15, this), zt(this, Re), zt(this, He), zt(this, We, []), zt(this, Es, () => {
2327
+ super(...arguments), fe(this, "label", xt(X, 8, this)), xt(X, 11, this), fe(this, "opened", xt(X, 12, this)), xt(X, 15, this), zt(this, Ae), zt(this, Ie), zt(this, Re, []), zt(this, ys, () => {
2335
2328
  var t;
2336
- this.inert = !0, et(this, We).forEach((n) => n.inert = !1), et(this, Re) ? et(this, Re).before(this) : et(this, He) && ((t = et(this, He)) == null || t.appendChild(this)), this.dispatchEvent(new CustomEvent("close")), this.opened = !1;
2337
- }), zt(this, ln, () => {
2338
- this.hidden = !1, this.inert = !1, Ve(this, Re, this.nextSibling), Ve(this, He, this.parentElement || this.getRootNode()), Ve(this, We, [...document.body.children].filter((t) => !t.inert)), et(this, We).forEach((t) => t.inert = !0), document.body.append(this), this.dispatchEvent(new CustomEvent("open")), this.opened = !0;
2339
- }), zt(this, mi, Tt(Z, 16, this, () => this.inert = !0)), Tt(Z, 19, this), me(this, "open", () => {
2329
+ this.inert = !0, et(this, Re).forEach((n) => n.inert = !1), et(this, Ae) ? et(this, Ae).before(this) : et(this, Ie) && ((t = et(this, Ie)) == null || t.appendChild(this)), this.dispatchEvent(new CustomEvent("close")), this.opened = !1;
2330
+ }), zt(this, on, () => {
2331
+ this.hidden = !1, this.inert = !1, We(this, Ae, this.nextSibling), We(this, Ie, this.parentElement || this.getRootNode()), We(this, Re, [...document.body.children].filter((t) => !t.inert)), et(this, Re).forEach((t) => t.inert = !0), document.body.append(this), this.dispatchEvent(new CustomEvent("open")), this.opened = !0;
2332
+ }), zt(this, fi, xt(X, 16, this, () => this.inert = !0)), xt(X, 19, this), fe(this, "open", () => {
2340
2333
  if (!this.opened)
2341
- return et(this, ln).call(this), O.push({
2334
+ return et(this, on).call(this), M.push({
2342
2335
  title: this.label,
2343
- open: et(this, ln),
2344
- close: et(this, Es),
2336
+ open: et(this, on),
2337
+ close: et(this, ys),
2345
2338
  shouldClose: this.shouldClose
2346
- }), Yn;
2347
- }), me(this, "close", () => (O.back(), Yn)), me(this, "forceClose", () => (this.opened = !1, setTimeout(this.close, 100), Yn));
2339
+ }), Bn;
2340
+ }), fe(this, "close", () => (M.back(), Bn)), fe(this, "forceClose", () => (this.opened = !1, setTimeout(this.close, 100), Bn));
2348
2341
  }
2349
2342
  shouldClose() {
2350
2343
  return !0;
2351
2344
  }
2352
2345
  }
2353
- Z = El($s);
2346
+ X = El(ws);
2347
+ Ae = /* @__PURE__ */ new WeakMap();
2348
+ Ie = /* @__PURE__ */ new WeakMap();
2354
2349
  Re = /* @__PURE__ */ new WeakMap();
2355
- He = /* @__PURE__ */ new WeakMap();
2356
- We = /* @__PURE__ */ new WeakMap();
2357
- Es = /* @__PURE__ */ new WeakMap();
2358
- ln = /* @__PURE__ */ new WeakMap();
2359
- mi = /* @__PURE__ */ new WeakMap();
2360
- Hn(Z, 5, "label", Sa, Be);
2361
- Hn(Z, 5, "opened", ya, Be);
2362
- Hn(Z, 21, "#init", wa, mi);
2363
- Be = Hn(Z, 0, "GemDialogBaseElement", $a, Be);
2364
- Tt(Z, 1, Be);
2350
+ ys = /* @__PURE__ */ new WeakMap();
2351
+ on = /* @__PURE__ */ new WeakMap();
2352
+ fi = /* @__PURE__ */ new WeakMap();
2353
+ Nn(X, 5, "label", wa, qe);
2354
+ Nn(X, 5, "opened", va, qe);
2355
+ Nn(X, 21, "#init", ma, fi);
2356
+ qe = Nn(X, 0, "GemDialogBaseElement", ya, qe);
2357
+ xt(X, 1, qe);
2365
2358
  class xl {
2366
2359
  constructor(t) {
2367
- T(this, "_type");
2368
- T(this, "info", (...t) => {
2360
+ O(this, "_type");
2361
+ O(this, "info", (...t) => {
2369
2362
  console.log(`[${this._type}]:`, ...t);
2370
2363
  });
2371
- T(this, "warn", (...t) => {
2364
+ O(this, "warn", (...t) => {
2372
2365
  console.warn(`[${this._type}]:`, ...t);
2373
2366
  });
2374
- T(this, "error", (...t) => {
2367
+ O(this, "error", (...t) => {
2375
2368
  console.error(`[${this._type}]:`, ...t);
2376
2369
  });
2377
2370
  this._type = t;
@@ -2382,31 +2375,32 @@ function Nl(e, ...t) {
2382
2375
  const n = e.split(Ol), s = [];
2383
2376
  let i;
2384
2377
  for (; i = Ml.exec(e); ) {
2385
- const o = i[Ll], c = Number(i[1]) - 1, a = t[c];
2386
- s.push(typeof a == "function" ? a(o) : a);
2378
+ const r = i[Ll], c = Number(i[1]) - 1, a = t[c];
2379
+ s.push(typeof a == "function" ? a(r) : a);
2387
2380
  }
2388
2381
  return at(n, ...s);
2389
2382
  }
2390
- const ve = /* @__PURE__ */ new Set();
2391
- var M, hn, Ea, ba, ze, un;
2392
- const vi = class vi {
2383
+ const _e = /* @__PURE__ */ new Set();
2384
+ var L, an, Sa, $a, He, cn, Ye;
2385
+ const _i = class _i {
2393
2386
  constructor(t) {
2394
- b(this, M);
2395
- T(this, "resources");
2396
- T(this, "fallbackLanguage");
2397
- T(this, "currentLanguage");
2398
- T(this, "cache");
2399
- T(this, "cachePrefix", "gem-i18n");
2400
- T(this, "urlParamsType");
2401
- T(this, "urlParamsName");
2402
- T(this, "onChange");
2387
+ b(this, L);
2388
+ O(this, "resources");
2389
+ O(this, "fallbackLanguage");
2390
+ O(this, "currentLanguage");
2391
+ O(this, "cache");
2392
+ O(this, "cachePrefix", "gem-i18n");
2393
+ O(this, "urlParamsType");
2394
+ O(this, "urlParamsName");
2395
+ O(this, "onChange");
2403
2396
  // 兼容 `<gem-route>`
2404
- T(this, "replace", ({ path: t }) => this.setLanguage(t));
2405
- T(this, "getParams", () => ({ path: this.currentLanguage }));
2397
+ O(this, "replace", ({ path: t }) => this.setLanguage(t));
2398
+ O(this, "getParams", () => ({ path: this.currentLanguage }));
2399
+ b(this, Ye, !0);
2406
2400
  if (!t.resources[t.fallbackLanguage])
2407
- throw new yt("i18n: fallbackLanguage invalid");
2401
+ throw new Ot("i18n: fallbackLanguage invalid");
2408
2402
  Object.assign(this, t);
2409
- let n = p(this, M, Ea) || this.currentLanguage || p(this, M, ba);
2403
+ let n = p(this, L, Sa) || this.currentLanguage || p(this, L, $a);
2410
2404
  const s = document.querySelector(`[type*=${this.cachePrefix}]`);
2411
2405
  if (s)
2412
2406
  try {
@@ -2414,73 +2408,74 @@ const vi = class vi {
2414
2408
  n = i.currentLanguage, this.resources[i.currentLanguage] = i.currentLanguagePack;
2415
2409
  } catch {
2416
2410
  }
2417
- n ? (x(this, M, n, un), this.setLanguage(n)) : this.resetLanguage();
2411
+ n ? (x(this, L, n, cn), this.setLanguage(n)) : this.resetLanguage(), x(this, Ye, !1);
2418
2412
  }
2419
2413
  get(t, ...n) {
2420
- const s = this.resources[this.currentLanguage], i = this.resources[this.fallbackLanguage], o = s[t] || i[t], c = (o == null ? void 0 : o.message) || o || `[${t}]`;
2414
+ const s = this.resources[this.currentLanguage], i = this.resources[this.fallbackLanguage], r = s[t] || i[t], c = (r == null ? void 0 : r.message) || r || `[${t}]`;
2421
2415
  return n.length ? Nl(c, ...n) : c;
2422
2416
  }
2423
2417
  detectLanguage() {
2424
2418
  const t = Object.keys(this.resources), n = navigator.languages.map((s) => s.replace(/-(.*)/, (i) => i.toUpperCase()));
2425
2419
  for (const s of n) {
2426
- const i = t.find((o) => o === s || s.startsWith(`${o}-`));
2420
+ const i = t.find((r) => r === s || s.startsWith(`${r}-`));
2427
2421
  if (i) return i;
2428
2422
  }
2429
2423
  return this.fallbackLanguage;
2430
2424
  }
2431
2425
  async setLanguage(t) {
2432
- var o, c;
2433
- p(this, M, ze) && ve.forEach(async (a) => await a.setLanguage(t));
2426
+ var i, r;
2427
+ p(this, L, He) && _e.forEach(async (c) => await c.setLanguage(t));
2434
2428
  let n;
2435
2429
  const s = this.resources[t];
2436
2430
  if (!s)
2437
2431
  return Tl.warn(`${this.cachePrefix}: not found \`${t}\``), this.resetLanguage();
2438
2432
  if (typeof s == "string") {
2439
- const a = `${this.cachePrefix}:`, f = `${a}${s}`, h = localStorage.getItem(f), m = async () => {
2440
- const r = await (await fetch(s)).json();
2433
+ const c = `${this.cachePrefix}:`, a = `${c}${s}`, d = localStorage.getItem(a), f = async () => {
2434
+ const g = await (await fetch(s)).json();
2441
2435
  if (this.cache) {
2442
- for (let _ = 0; _ < localStorage.length; _++) {
2443
- const l = localStorage.key(_);
2444
- l.startsWith(a) && localStorage.removeItem(l);
2436
+ for (let o = 0; o < localStorage.length; o++) {
2437
+ const _ = localStorage.key(o);
2438
+ _.startsWith(c) && localStorage.removeItem(_);
2445
2439
  }
2446
- localStorage.setItem(f, JSON.stringify(r));
2440
+ localStorage.setItem(a, JSON.stringify(g));
2447
2441
  }
2448
- return r;
2442
+ return g;
2449
2443
  };
2450
- if (h)
2444
+ if (d)
2451
2445
  try {
2452
- n = JSON.parse(h);
2446
+ n = JSON.parse(d);
2453
2447
  } catch {
2454
- n = await m();
2448
+ n = await f();
2455
2449
  }
2456
2450
  else
2457
- n = await m();
2451
+ n = await f();
2458
2452
  } else
2459
2453
  n = s;
2460
- this.resources[t] = n;
2461
- const i = [document.documentElement];
2462
- for (; i.length; ) {
2463
- const a = i.pop();
2464
- (o = a[Cn]) == null || o.call(a), (c = a.shadowRoot) != null && c.firstElementChild && i.push(a.shadowRoot.firstElementChild), a.firstElementChild && i.push(a.firstElementChild), a.nextElementSibling && i.push(a.nextElementSibling);
2454
+ if (this.resources[t] = n, !p(this, Ye)) {
2455
+ const c = [document.documentElement];
2456
+ for (; c.length; ) {
2457
+ const a = c.pop();
2458
+ (i = a[En]) == null || i.call(a), c.push(...[...a.children, ...((r = a.shadowRoot) == null ? void 0 : r.children) || []].reverse());
2459
+ }
2465
2460
  }
2466
- return t !== this.currentLanguage && x(this, M, t, un), this.cache === !0 && this.setCache(), t;
2461
+ return t !== this.currentLanguage && x(this, L, t, cn), this.cache === !0 && this.setCache(), t;
2467
2462
  }
2468
2463
  resetLanguage() {
2469
- return p(this, M, ze) && ve.forEach((t) => t.resetLanguage()), x(this, M, this.fallbackLanguage, un), this.cache && localStorage.removeItem(p(this, M, hn)), this.setLanguage(this.detectLanguage());
2464
+ return p(this, L, He) && _e.forEach((t) => t.resetLanguage()), x(this, L, this.fallbackLanguage, cn), this.cache && localStorage.removeItem(p(this, L, an)), this.setLanguage(this.detectLanguage());
2470
2465
  }
2471
2466
  // 一般用在 `onChange` 中
2472
2467
  setCache() {
2473
- p(this, M, ze) && ve.forEach((t) => t.setCache()), localStorage.setItem(p(this, M, hn), this.currentLanguage);
2468
+ p(this, L, He) && _e.forEach((t) => t.setCache()), localStorage.setItem(p(this, L, an), this.currentLanguage);
2474
2469
  }
2475
2470
  createSubModule(t, n) {
2476
- const s = new vi({
2471
+ const s = new _i({
2477
2472
  resources: n,
2478
2473
  cachePrefix: `${this.cachePrefix}-${t}`,
2479
2474
  currentLanguage: this.currentLanguage,
2480
2475
  fallbackLanguage: this.fallbackLanguage,
2481
2476
  cache: this.cache
2482
2477
  });
2483
- return ve.add(s), s;
2478
+ return _e.add(s), s;
2484
2479
  }
2485
2480
  /**
2486
2481
  * @example
@@ -2498,9 +2493,9 @@ const vi = class vi {
2498
2493
  };
2499
2494
  }
2500
2495
  };
2501
- M = new WeakSet(), hn = function() {
2496
+ L = new WeakSet(), an = function() {
2502
2497
  return `${this.cachePrefix}:current`;
2503
- }, Ea = function() {
2498
+ }, Sa = function() {
2504
2499
  const { hostname: t, pathname: n, search: s } = location, i = t.split(".");
2505
2500
  switch (this.urlParamsType) {
2506
2501
  case "ccTLD":
@@ -2510,18 +2505,18 @@ M = new WeakSet(), hn = function() {
2510
2505
  case "path":
2511
2506
  return n.split("/")[1];
2512
2507
  default:
2513
- const o = this.urlParamsName && new URLSearchParams(s).get(this.urlParamsName) || "";
2514
- return o in this.resources ? o : "";
2515
- }
2516
- }, ba = function() {
2517
- return this.cache && localStorage.getItem(p(this, M, hn)) || "";
2518
- }, ze = function() {
2519
- return !ve.has(this);
2520
- }, un = function(t) {
2508
+ const r = this.urlParamsName && new URLSearchParams(s).get(this.urlParamsName) || "";
2509
+ return r in this.resources ? r : "";
2510
+ }
2511
+ }, $a = function() {
2512
+ return this.cache && localStorage.getItem(p(this, L, an)) || "";
2513
+ }, He = function() {
2514
+ return !_e.has(this);
2515
+ }, cn = function(t) {
2521
2516
  var n;
2522
- p(this, M, ze) && (document.documentElement.lang = t), this.currentLanguage = t, (n = this.onChange) == null || n.call(this, t);
2523
- };
2524
- let hr = vi;
2517
+ p(this, L, He) && (document.documentElement.lang = t), this.currentLanguage = t, (n = this.onChange) == null || n.call(this, t);
2518
+ }, Ye = new WeakMap();
2519
+ let cr = _i;
2525
2520
  const K = (e) => window.matchMedia(e).matches, Bl = {
2526
2521
  PRINT: "print",
2527
2522
  get isPrint() {
@@ -2588,67 +2583,67 @@ function Il(e = {}) {
2588
2583
  origin: t = location.origin,
2589
2584
  base: n = "",
2590
2585
  appendHeaders: s = () => ({}),
2591
- transformInput: i = (r) => r,
2592
- transformOutput: o = (r) => r,
2586
+ transformInput: i = (o) => o,
2587
+ transformOutput: r = (o) => o,
2593
2588
  ...c
2594
- } = e, a = (r) => r instanceof FormData || r instanceof Blob || r instanceof Al || r instanceof URLSearchParams || r instanceof ReadableStream || r instanceof ArrayBuffer ? r : typeof r == "object" ? JSON.stringify(r) : r, f = (r, _) => {
2595
- if (new URL(r, location.origin).pathname !== r)
2596
- throw new yt("`path` format is incorrect");
2589
+ } = e, a = (o) => o instanceof FormData || o instanceof Blob || o instanceof Al || o instanceof URLSearchParams || o instanceof ReadableStream || o instanceof ArrayBuffer ? o : typeof o == "object" ? JSON.stringify(o) : o, d = (o, _) => {
2590
+ if (new URL(o, location.origin).pathname !== o)
2591
+ throw new Ot("`path` format is incorrect");
2597
2592
  const l = new URLSearchParams(_).toString();
2598
- return `${t}${n}${r}${l ? "?" : ""}${l}`;
2599
- }, h = (r) => {
2600
- if (!r) return {};
2601
- if (r instanceof Headers) return Object.fromEntries(r);
2602
- const _ = Array.isArray(r) ? r : Object.entries(r);
2603
- return Object.fromEntries(_.map(([l, g]) => [l.toLowerCase(), g]));
2604
- }, m = async (r, _ = {}) => {
2605
- const l = new Request(r, {
2593
+ return `${t}${n}${o}${l ? "?" : ""}${l}`;
2594
+ }, f = (o) => {
2595
+ if (!o) return {};
2596
+ if (o instanceof Headers) return Object.fromEntries(o);
2597
+ const _ = Array.isArray(o) ? o : Object.entries(o);
2598
+ return Object.fromEntries(_.map(([l, m]) => [l.toLowerCase(), m]));
2599
+ }, g = async (o, _ = {}) => {
2600
+ const l = new Request(o, {
2606
2601
  ...c,
2607
2602
  ..._,
2608
2603
  headers: new Headers({
2609
2604
  "content-type": "application/json",
2610
- ...h(c.headers),
2611
- ...h(_.headers)
2605
+ ...f(c.headers),
2606
+ ...f(_.headers)
2612
2607
  })
2613
- }), g = await fetch(l);
2614
- if (g.status === 0) throw new Error("Request fail");
2615
- if (g.status >= 500) throw new Error(g.statusText);
2616
- const v = l.headers.get("content-type"), y = g.status >= 400;
2608
+ }), m = await fetch(l);
2609
+ if (m.status === 0) throw new Error("Request fail");
2610
+ if (m.status >= 500) throw new Error(m.statusText);
2611
+ const v = l.headers.get("content-type"), y = m.status >= 400;
2617
2612
  try {
2618
2613
  let $;
2619
- if (v.includes("json") ? $ = await g.json() : v.includes("octet-stream") ? $ = await g.arrayBuffer() : $ = await g.text(), y) throw new Error(g.statusText, { cause: $ });
2620
- return o($, l);
2614
+ if (v.includes("json") ? $ = await m.json() : v.includes("octet-stream") ? $ = await m.arrayBuffer() : $ = await m.text(), y) throw new Error(m.statusText, { cause: $ });
2615
+ return r($, l);
2621
2616
  } catch {
2622
2617
  throw new Error("Parse error");
2623
2618
  }
2624
2619
  };
2625
2620
  return {
2626
- request: m,
2627
- get(r, _) {
2621
+ request: g,
2622
+ get(o, _) {
2628
2623
  const l = i(_);
2629
- return m(f(r, l), {
2624
+ return g(d(o, l), {
2630
2625
  method: "GET",
2631
2626
  headers: s(l)
2632
2627
  });
2633
2628
  },
2634
- del(r, _) {
2629
+ del(o, _) {
2635
2630
  const l = i(_);
2636
- return m(f(r, l), {
2631
+ return g(d(o, l), {
2637
2632
  method: "DELETE",
2638
2633
  headers: s(l)
2639
2634
  });
2640
2635
  },
2641
- put(r, _) {
2636
+ put(o, _) {
2642
2637
  const l = i(_);
2643
- return m(f(r), {
2638
+ return g(d(o), {
2644
2639
  method: "PUT",
2645
2640
  headers: s(l),
2646
2641
  body: a(l)
2647
2642
  });
2648
2643
  },
2649
- post(r, _) {
2644
+ post(o, _) {
2650
2645
  const l = i(_);
2651
- return m(f(r), {
2646
+ return g(d(o), {
2652
2647
  method: "POST",
2653
2648
  headers: s(l),
2654
2649
  body: a(l)
@@ -2656,155 +2651,153 @@ function Il(e = {}) {
2656
2651
  }
2657
2652
  };
2658
2653
  }
2659
- const { request: Kl, del: jl, get: Jl, post: Yl, put: Ql } = Il(), Ca = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap();
2654
+ const { request: Kl, del: jl, get: Jl, post: Yl, put: Ql } = Il(), Ea = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap();
2660
2655
  function Xl(e) {
2661
- return Ca.get(e);
2656
+ return Ea.get(e);
2662
2657
  }
2663
- function ka(e) {
2664
- return Pa.get(e);
2658
+ function Ca(e) {
2659
+ return ba.get(e);
2665
2660
  }
2666
- function fn(e, t = {}) {
2667
- const n = En(), s = kn({})[Rt], [i, o] = Xe(e), c = new Proxy(
2668
- { [Rt]: s },
2661
+ function dn(e, t = {}) {
2662
+ const n = $n(), s = bn({})[It], i = Rt(e), r = new Proxy(
2663
+ Sn({ [It]: s }, (a) => i(a)),
2669
2664
  {
2670
- get(f, h) {
2671
- if (!f[h]) {
2672
- const [m, r, _] = h.match(/^(\w*Color)(\d+)$/) || [];
2673
- r && (f[h] = `oklch(from ${f[r]} calc(l - ${(Number(_) - 400) / 1e3}) c h)`);
2665
+ get(a, d) {
2666
+ if (!a[d]) {
2667
+ const [f, g, o] = d.match(/^(\w*Color)(\d+)$/) || [];
2668
+ g && (a[d] = `oklch(from ${a[g]} calc(l - ${(Number(o) - 400) / 1e3}) c h)`);
2674
2669
  }
2675
- return f[h];
2670
+ return a[d];
2676
2671
  }
2677
2672
  }
2678
2673
  );
2679
- Pa.set(c, t), Ca.set(c, i);
2680
- const a = () => {
2681
- let f = "";
2682
- Object.keys(i).forEach((h) => {
2683
- t[h] || (t[h] = `--${oe(h)}-${n}`, c[h] = `var(${t[h]})`), f += `${t[h]}:${i[h]};`;
2684
- }), s.setContent(`:scope,:host{${f}}`);
2674
+ ba.set(r, t), Ea.set(r, i);
2675
+ const c = () => {
2676
+ let a = "";
2677
+ Object.keys(i).forEach((d) => {
2678
+ t[d] || (t[d] = `--${ie(d)}-${n}`, r[d] = `var(${t[d]})`), a += `${t[d]}:${i[d]};`;
2679
+ }), s.setContent(`:scope,:host{${a}}`);
2685
2680
  };
2686
- return a(), pt(i, () => {
2687
- a(), s.updateStyle();
2688
- }), [c, o];
2681
+ return c(), ft(i, () => {
2682
+ c(), s.updateStyle();
2683
+ }), r;
2689
2684
  }
2690
2685
  function Rl(e) {
2691
- return fn(e);
2686
+ return dn(e);
2692
2687
  }
2693
2688
  function Zl(e) {
2694
2689
  const t = Rl(e);
2695
- return document.adoptedStyleSheets.push(t[0][Rt].getStyle()), t;
2690
+ return document.adoptedStyleSheets.push(t[It].getStyle()), t;
2696
2691
  }
2697
2692
  function th(e, t) {
2698
- return fn(t, ka(e));
2693
+ return dn(t, Ca(e));
2699
2694
  }
2700
2695
  function eh(e) {
2701
- const [t] = fn(e), n = ka(t);
2702
- return [t, (i) => (o, { addInitializer: c, access: a }) => {
2696
+ const t = dn(e), n = Ca(t);
2697
+ return Sn(t, (i) => (r, { addInitializer: c, access: a }) => {
2703
2698
  c(function() {
2704
- const [f, h] = fn({ ...e }, n);
2705
- this.internals.sheets.push(f[Rt].getStyle(this)), this.memo(() => h(a.get(this).apply(this)), i && (() => i(this)));
2699
+ const d = dn({ ...e }, n);
2700
+ this.internals.sheets.push(d[It].getStyle(this)), this.memo(() => d(a.get(this).apply(this)), i && (() => i(this)));
2706
2701
  });
2707
- }];
2702
+ });
2708
2703
  }
2709
2704
  export {
2710
- Pn as BoundaryCSSState,
2711
- se as GemActiveLinkElement,
2712
- Be as GemDialogBaseElement,
2705
+ ee as GemActiveLinkElement,
2706
+ qe as GemDialogBaseElement,
2713
2707
  B as GemElement,
2714
- yt as GemError,
2715
- z as GemLightRouteElement,
2716
- R as GemLinkElement,
2717
- Rn as GemReflectElement,
2718
- Ue as GemRouteElement,
2719
- xe as GemTitleElement,
2720
- ie as GemUnsafeElement,
2721
- Ct as GemUseElement,
2722
- hr as I18n,
2723
- Da as LinkedList,
2708
+ Ot as GemError,
2709
+ A as GemLightRouteElement,
2710
+ H as GemLinkElement,
2711
+ Ln as GemReflectElement,
2712
+ Fe as GemRouteElement,
2713
+ Pe as GemTitleElement,
2714
+ ne as GemUnsafeElement,
2715
+ bt as GemUseElement,
2716
+ cr as I18n,
2717
+ Ua as LinkedList,
2724
2718
  xl as Logger,
2725
- Fa as PropProxyMap,
2726
- De as QueryString,
2727
- Ls as RenderErrorEvent,
2728
- fr as SVGTemplateResult,
2729
- Rt as SheetToken,
2730
- ne as StoreListenerMap,
2731
- $n as TemplateResult,
2732
- Cn as UpdateToken,
2733
- vr as absoluteLocation,
2734
- wr as addListener,
2735
- Ot as addMicrotask,
2736
- Hs as adoptedStyle,
2737
- An as aria,
2738
- pc as async,
2739
- G as attribute,
2740
- yc as basePathStore,
2741
- On as boolattribute,
2742
- oe as camelToKebabCase,
2743
- Ua as classMap,
2744
- Ts as cleanObject,
2745
- pt as connect,
2746
- Nn as connectStore,
2747
- kn as createCSSSheet,
2719
+ Ba as PropProxyMap,
2720
+ Ge as QueryString,
2721
+ Ts as RenderErrorEvent,
2722
+ dr as SVGTemplateResult,
2723
+ It as SheetToken,
2724
+ ln as StoreListenerMap,
2725
+ yn as TemplateResult,
2726
+ En as UpdateToken,
2727
+ gr as absoluteLocation,
2728
+ mr as addListener,
2729
+ Tt as addMicrotask,
2730
+ Is as adoptedStyle,
2731
+ On as aria,
2732
+ fc as async,
2733
+ V as attribute,
2734
+ wc as basePathStore,
2735
+ kn as boolattribute,
2736
+ ie as camelToKebabCase,
2737
+ ja as classMap,
2738
+ Ps as cleanObject,
2739
+ ft as connect,
2740
+ Tn as connectStore,
2741
+ bn as createCSSSheet,
2742
+ eh as createDecoratorTheme,
2748
2743
  xc as createHistoryParams,
2749
2744
  Ul as createModalClass,
2750
- js as createPath,
2751
- $r as createRef,
2752
- Ns as createState,
2753
- bn as createStore,
2754
- As as createTemplate,
2755
- yr as css,
2756
- fc as customElement,
2745
+ th as createOverrideTheme,
2746
+ Us as createPath,
2747
+ Sr as createRef,
2748
+ Rl as createScopedTheme,
2749
+ Os as createState,
2750
+ Rt as createStore,
2751
+ Ms as createTemplate,
2752
+ Zl as createTheme,
2753
+ Sn as createUpdater,
2754
+ vr as css,
2755
+ _c as customElement,
2757
2756
  jl as del,
2758
- Sn as directive,
2759
- Ba as disconnect,
2760
- $t as effect,
2761
- ye as emitter,
2757
+ wn as directive,
2758
+ St as effect,
2759
+ me as emitter,
2762
2760
  Dl as exportPartsMap,
2763
- lc as fallback,
2761
+ hc as fallback,
2764
2762
  Jl as get,
2765
- ka as getThemeProps,
2763
+ Ca as getThemeProps,
2766
2764
  Xl as getThemeStore,
2767
- dc as globalemitter,
2765
+ pc as globalemitter,
2768
2766
  ql as guard,
2769
- O as history,
2767
+ M as history,
2770
2768
  at as html,
2771
- Sc as ifDefined,
2769
+ yc as ifDefined,
2772
2770
  Il as initRequest,
2773
- qa as isArrayChange,
2771
+ Ka as isArrayChange,
2774
2772
  zl as kebabToCamelCase,
2773
+ Mr as light,
2775
2774
  Tl as logger,
2776
- ao as matchPath,
2775
+ ro as matchPath,
2777
2776
  Bl as mediaQuery,
2778
- kr as memo,
2779
- qe as mounted,
2780
- ac as numattribute,
2781
- Os as objectMapToString,
2782
- Or as part,
2783
- Gl as partMap,
2777
+ Pr as memo,
2778
+ De as mounted,
2779
+ cc as numattribute,
2780
+ ks as objectMapToString,
2781
+ Tr as part,
2782
+ Vl as partMap,
2784
2783
  Yl as post,
2785
2784
  U as property,
2786
2785
  Ql as put,
2787
- En as randomStr,
2788
- xs as raw,
2789
- ks as render,
2786
+ $n as randomStr,
2787
+ Cs as raw,
2788
+ bs as render,
2790
2789
  Fl as repeat,
2791
2790
  Kl as request,
2792
2791
  Ht as shadow,
2793
- uc as slot,
2792
+ dc as slot,
2794
2793
  Nl as splice,
2795
- Ln as state,
2796
- Vl as styleMap,
2794
+ xn as state,
2795
+ Gl as styleMap,
2797
2796
  Wl as styled,
2798
- Ga as svg,
2799
- xr as template,
2797
+ za as svg,
2798
+ kr as template,
2800
2799
  At as titleStore,
2801
- cc as unmounted,
2802
- It as updateStore,
2803
- eh as useDecoratorTheme,
2804
- th as useOverrideTheme,
2805
- Rl as useScopedTheme,
2806
- Xe as useStore,
2807
- Zl as useTheme,
2808
- nc as version,
2809
- Mn as willMount
2800
+ lc as unmounted,
2801
+ sc as version,
2802
+ As as willMount
2810
2803
  };