@mantou/gem 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/gem.es.js +727 -728
- package/dist/gem.umd.js +9 -9
- package/elements/base/gesture.d.ts +1 -0
- package/elements/base/gesture.d.ts.map +1 -1
- package/elements/base/gesture.js +2 -1
- package/elements/base/gesture.js.map +1 -1
- package/elements/base/modal-factory.d.ts.map +1 -1
- package/helper/request.d.ts +4 -4
- package/helper/request.d.ts.map +1 -1
- package/helper/request.js +14 -14
- package/helper/request.js.map +1 -1
- package/lib/decorators.d.ts +1 -1
- package/lib/decorators.d.ts.map +1 -1
- package/lib/decorators.js +2 -2
- package/lib/decorators.js.map +1 -1
- package/lib/lit-html.d.ts +15 -4
- package/lib/lit-html.d.ts.map +1 -1
- package/lib/lit-html.js +4 -4
- package/lib/lit-html.js.map +1 -1
- package/lib/reactive.d.ts +6 -0
- package/lib/reactive.d.ts.map +1 -1
- package/lib/reactive.js +16 -5
- package/lib/reactive.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.d.ts.map +1 -1
- package/lib/version.js +1 -2
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/base/gesture.ts +3 -1
- package/src/helper/request.ts +17 -17
- package/src/lib/decorators.ts +2 -7
- package/src/lib/lit-html.ts +10 -6
- package/src/lib/reactive.ts +22 -8
- package/src/lib/version.ts +1 -2
package/dist/gem.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Za = Object.defineProperty;
|
|
2
2
|
var Ri = (s) => {
|
|
3
3
|
throw TypeError(s);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var v = (s, t, e) =>
|
|
7
|
-
var
|
|
8
|
-
const { assign:
|
|
9
|
-
function
|
|
5
|
+
var Xa = (s, t, e) => t in s ? Za(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
6
|
+
var v = (s, t, e) => Xa(s, typeof t != "symbol" ? t + "" : t, e), Bs = (s, t, e) => t.has(s) || Ri("Cannot " + e);
|
|
7
|
+
var u = (s, t, e) => (Bs(s, t, "read from private field"), e ? e.call(s) : t.get(s)), E = (s, t, e) => t.has(s) ? Ri("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), M = (s, t, e, n) => (Bs(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Ks = (s, t, e) => (Bs(s, t, "access private method"), e);
|
|
8
|
+
const { assign: tc, fromEntries: ec, entries: sc, keys: nc } = Object;
|
|
9
|
+
function ic(s) {
|
|
10
10
|
Promise.resolve().then(s);
|
|
11
11
|
}
|
|
12
12
|
const js = /* @__PURE__ */ new Set();
|
|
13
|
-
function St(s, t =
|
|
13
|
+
function St(s, t = ic) {
|
|
14
14
|
js.has(s) || (t(() => {
|
|
15
15
|
js.delete(s), s();
|
|
16
16
|
}), js.add(s));
|
|
17
17
|
}
|
|
18
18
|
function xs(s, t) {
|
|
19
19
|
const e = t;
|
|
20
|
-
return delete e.name, delete e.length,
|
|
20
|
+
return delete e.name, delete e.length, tc(e, s), e;
|
|
21
21
|
}
|
|
22
22
|
function xr(s = "", t = "") {
|
|
23
23
|
const { pathname: e, search: n, hash: i } = new URL(t, location.origin + s);
|
|
@@ -27,7 +27,7 @@ function Lr(s, t, e, n) {
|
|
|
27
27
|
return s.addEventListener(t, e, n), () => s.removeEventListener(t, e, n);
|
|
28
28
|
}
|
|
29
29
|
var dt, at, ut, Je, nn;
|
|
30
|
-
class
|
|
30
|
+
class rc extends EventTarget {
|
|
31
31
|
constructor() {
|
|
32
32
|
super(...arguments);
|
|
33
33
|
E(this, Je);
|
|
@@ -36,13 +36,13 @@ class ic extends EventTarget {
|
|
|
36
36
|
E(this, ut);
|
|
37
37
|
}
|
|
38
38
|
get size() {
|
|
39
|
-
return
|
|
39
|
+
return u(this, dt).size;
|
|
40
40
|
}
|
|
41
41
|
get first() {
|
|
42
|
-
return
|
|
42
|
+
return u(this, at);
|
|
43
43
|
}
|
|
44
44
|
get last() {
|
|
45
|
-
return
|
|
45
|
+
return u(this, ut);
|
|
46
46
|
}
|
|
47
47
|
isSuperLinkOf(e) {
|
|
48
48
|
let n = e.first;
|
|
@@ -55,47 +55,47 @@ class ic extends EventTarget {
|
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
57
|
find(e) {
|
|
58
|
-
return
|
|
58
|
+
return u(this, dt).get(e);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* 添加到尾部,已存在时会删除老的项目
|
|
62
62
|
* 如果是添加第一个,start 事件会在添加前触发,避免处理事件重复的逻辑
|
|
63
63
|
*/
|
|
64
64
|
add(e) {
|
|
65
|
-
|
|
65
|
+
u(this, ut) || this.dispatchEvent(new CustomEvent("start"));
|
|
66
66
|
const n = Ks(this, Je, nn).call(this, e) || { value: e };
|
|
67
|
-
n.prev =
|
|
67
|
+
n.prev = u(this, ut), n.prev && (n.prev.next = n), n.next = void 0, M(this, ut, n), u(this, at) || M(this, at, n), u(this, dt).set(e, n);
|
|
68
68
|
}
|
|
69
69
|
/** 删除这个元素后没有其他元素时立即出发 end 事件 */
|
|
70
70
|
delete(e) {
|
|
71
71
|
const n = Ks(this, Je, nn).call(this, e);
|
|
72
|
-
return
|
|
72
|
+
return u(this, at) || this.dispatchEvent(new CustomEvent("end")), n;
|
|
73
73
|
}
|
|
74
74
|
clear() {
|
|
75
|
-
|
|
75
|
+
u(this, dt).clear(), M(this, at, M(this, ut, void 0));
|
|
76
76
|
}
|
|
77
77
|
/** 获取头部元素,会从链表删除 */
|
|
78
78
|
get() {
|
|
79
|
-
const e =
|
|
79
|
+
const e = u(this, at);
|
|
80
80
|
if (e)
|
|
81
81
|
return this.delete(e.value), e.value;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
dt = new WeakMap(), at = new WeakMap(), ut = new WeakMap(), Je = new WeakSet(), nn = function(e) {
|
|
85
|
-
const n =
|
|
86
|
-
return n && (n.prev ? n.prev.next = n.next : M(this, at, n.next), n.next ? n.next.prev = n.prev : M(this, ut, n.prev),
|
|
85
|
+
const n = u(this, dt).get(e);
|
|
86
|
+
return n && (n.prev ? n.prev.next = n.next : M(this, at, n.next), n.next ? n.next.prev = n.prev : M(this, ut, n.prev), u(this, dt).delete(e)), n;
|
|
87
87
|
};
|
|
88
|
-
class
|
|
88
|
+
class oc extends WeakMap {
|
|
89
89
|
get(t) {
|
|
90
90
|
let e = super.get(t);
|
|
91
91
|
return e || (e = {}, this.set(t, e)), e;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var Jt, Ts;
|
|
95
95
|
class qe extends URLSearchParams {
|
|
96
96
|
constructor() {
|
|
97
97
|
super(...arguments);
|
|
98
|
-
E(this,
|
|
98
|
+
E(this, Jt, (e) => typeof e == "string" ? e : JSON.stringify(e));
|
|
99
99
|
E(this, Ts, (e) => {
|
|
100
100
|
if (!e) return null;
|
|
101
101
|
try {
|
|
@@ -108,15 +108,15 @@ class qe extends URLSearchParams {
|
|
|
108
108
|
// support `{ key: ObjectValue }`
|
|
109
109
|
concat(e) {
|
|
110
110
|
let n;
|
|
111
|
-
typeof e == "string" ? n =
|
|
112
|
-
this.append(i,
|
|
111
|
+
typeof e == "string" ? n = ec(new URLSearchParams(e).entries()) : n = e, sc(n).forEach(([i, r]) => {
|
|
112
|
+
this.append(i, u(this, Jt).call(this, r));
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
setAny(e, n) {
|
|
116
116
|
if (Array.isArray(n))
|
|
117
|
-
this.delete(e), n.forEach((i) => this.append(e,
|
|
117
|
+
this.delete(e), n.forEach((i) => this.append(e, u(this, Jt).call(this, i)));
|
|
118
118
|
else {
|
|
119
|
-
const i =
|
|
119
|
+
const i = u(this, Jt).call(this, n);
|
|
120
120
|
i ? this.set(e, i) : this.delete(e);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -124,7 +124,7 @@ class qe extends URLSearchParams {
|
|
|
124
124
|
return this.getAnyAll(e)[0];
|
|
125
125
|
}
|
|
126
126
|
getAnyAll(e) {
|
|
127
|
-
return this.getAll(e).filter((n) => n !== "").map((n) =>
|
|
127
|
+
return this.getAll(e).filter((n) => n !== "").map((n) => u(this, Ts).call(this, n));
|
|
128
128
|
}
|
|
129
129
|
toString() {
|
|
130
130
|
const e = super.toString();
|
|
@@ -134,11 +134,11 @@ class qe extends URLSearchParams {
|
|
|
134
134
|
return this.toString();
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
Jt = new WeakMap(), Ts = new WeakMap();
|
|
138
138
|
function Nn(s, ...t) {
|
|
139
139
|
return s.reduce((e, n, i) => e + (t[i - 1] ?? "") + n);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const xl = Nn;
|
|
142
142
|
function Rn(s = 5) {
|
|
143
143
|
const t = Math.random().toString(36).slice(2, 2 + s);
|
|
144
144
|
return t.length < s ? t + Rn(s - t.length) : t;
|
|
@@ -146,11 +146,11 @@ function Rn(s = 5) {
|
|
|
146
146
|
function he(s) {
|
|
147
147
|
return s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Ll(s) {
|
|
150
150
|
return s.replace(/-(.)/g, (t, e) => e.toUpperCase());
|
|
151
151
|
}
|
|
152
152
|
function In(s) {
|
|
153
|
-
return
|
|
153
|
+
return nc(s).forEach((t) => {
|
|
154
154
|
delete s[t];
|
|
155
155
|
}), s;
|
|
156
156
|
}
|
|
@@ -159,7 +159,7 @@ class wt extends Error {
|
|
|
159
159
|
super(t), this.message = `gem: ${this.message}`;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function ac(s, t) {
|
|
163
163
|
const e = s.length;
|
|
164
164
|
if (t.length !== e) return !0;
|
|
165
165
|
for (let n = 0; n < e; n++)
|
|
@@ -169,23 +169,23 @@ function oc(s, t) {
|
|
|
169
169
|
function Hn(s, t, e) {
|
|
170
170
|
let n = t;
|
|
171
171
|
for (const i in s) {
|
|
172
|
-
const
|
|
173
|
-
n +=
|
|
172
|
+
const r = e(i, s[i]);
|
|
173
|
+
n += r ? r + t : "";
|
|
174
174
|
}
|
|
175
175
|
return n;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Al(s) {
|
|
178
178
|
return Hn(
|
|
179
179
|
s,
|
|
180
180
|
";",
|
|
181
181
|
(t, e) => e || e === 0 ? `${he(t)}:${e}` : ""
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function cc(s) {
|
|
185
185
|
return Hn(s, " ", (t, e) => e ? t : "");
|
|
186
186
|
}
|
|
187
|
-
const
|
|
188
|
-
function
|
|
187
|
+
const Nl = cc;
|
|
188
|
+
function Rl(s) {
|
|
189
189
|
return Hn(
|
|
190
190
|
s,
|
|
191
191
|
",",
|
|
@@ -193,7 +193,7 @@ function Ll(s) {
|
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
195
|
const vs = /* @__PURE__ */ new WeakMap();
|
|
196
|
-
function
|
|
196
|
+
function zt(s) {
|
|
197
197
|
const t = xs(s, (e) => {
|
|
198
198
|
var n;
|
|
199
199
|
Object.assign(t, e), (n = vs.get(t)) == null || n.forEach((i) => St(i));
|
|
@@ -204,42 +204,47 @@ function mt(s, t) {
|
|
|
204
204
|
const e = vs.get(s);
|
|
205
205
|
return e == null || e.add(t), () => e == null ? void 0 : e.delete(t);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const hc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
208
208
|
__proto__: null,
|
|
209
209
|
_StoreListenerMap: vs,
|
|
210
210
|
connect: mt,
|
|
211
|
-
createStore:
|
|
211
|
+
createStore: zt
|
|
212
212
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
213
213
|
let ot = (s, ...t) => Nn(s, ...t.map((e) => e instanceof Element ? e.outerHTML : e)), Ls = (s, t) => t.innerHTML = s;
|
|
214
214
|
function Ar(s, t) {
|
|
215
215
|
ot = s, Ls = t;
|
|
216
216
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
let Nr = (s, t) => {
|
|
218
|
+
};
|
|
219
|
+
function lc(s) {
|
|
220
|
+
Nr = s;
|
|
221
|
+
}
|
|
222
|
+
const { assign: Ii, defineProperty: dc } = Object;
|
|
223
|
+
dc(Symbol, "metadata", { value: Symbol.for("Symbol.metadata") });
|
|
224
|
+
const Rr = (s) => typeof s == "function" && s(), rn = globalThis.nQM, Et = Symbol.for("gem@sheetToken"), As = Symbol.for("gem@update"), Ir = "gem-style-boundary", uc = "gem-element", Wn = "gem@render-error", _c = As, Qs = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap();
|
|
220
225
|
var _t;
|
|
221
|
-
class
|
|
226
|
+
class pc extends CSSStyleSheet {
|
|
222
227
|
constructor() {
|
|
223
228
|
super(...arguments);
|
|
224
229
|
E(this, _t);
|
|
225
230
|
v(this, "cssText", "");
|
|
226
231
|
}
|
|
227
232
|
get element() {
|
|
228
|
-
return
|
|
233
|
+
return u(this, _t) || (M(this, _t, document.createElement("style")), u(this, _t).textContent = this.cssText), u(this, _t);
|
|
229
234
|
}
|
|
230
235
|
replaceSync(e) {
|
|
231
|
-
this.cssText = e,
|
|
236
|
+
this.cssText = e, u(this, _t) && (u(this, _t).textContent = e), super.replaceSync(e);
|
|
232
237
|
}
|
|
233
238
|
}
|
|
234
239
|
_t = new WeakMap();
|
|
235
|
-
var Lt, Ye,
|
|
236
|
-
class
|
|
240
|
+
var Lt, Ye, Yt, Zt;
|
|
241
|
+
class fc {
|
|
237
242
|
constructor(t = "") {
|
|
238
243
|
E(this, Lt, "");
|
|
239
244
|
E(this, Ye, "");
|
|
240
245
|
// 不需要 GC
|
|
241
|
-
E(this, Jt, /* @__PURE__ */ new Map());
|
|
242
246
|
E(this, Yt, /* @__PURE__ */ new Map());
|
|
247
|
+
E(this, Zt, /* @__PURE__ */ new Map());
|
|
243
248
|
M(this, Ye, t);
|
|
244
249
|
}
|
|
245
250
|
setContent(t) {
|
|
@@ -248,49 +253,49 @@ class uc {
|
|
|
248
253
|
getStyle(t, e) {
|
|
249
254
|
var a;
|
|
250
255
|
const n = t && !((a = t.internals) != null && a.shadowRoot), i = n ? t.constructor : this;
|
|
251
|
-
if (!
|
|
252
|
-
const c = new
|
|
253
|
-
|
|
256
|
+
if (!u(this, Yt).has(i)) {
|
|
257
|
+
const c = new pc({ media: u(this, Ye) });
|
|
258
|
+
u(this, Yt).set(i, c);
|
|
254
259
|
}
|
|
255
|
-
const
|
|
256
|
-
if (!
|
|
257
|
-
let c =
|
|
258
|
-
n && (l = e ? "@scope" : `@scope (${t.tagName}) to (:state(${
|
|
260
|
+
const r = u(this, Yt).get(i);
|
|
261
|
+
if (!u(this, Zt).has(r)) {
|
|
262
|
+
let c = u(this, Lt), l = "";
|
|
263
|
+
n && (l = e ? "@scope" : `@scope (${t.tagName}) to (:state(${Ir}) > *)`, c = `${l}{ ${c} }`), r.replaceSync(c), u(this, Zt).set(r, l);
|
|
259
264
|
}
|
|
260
|
-
return
|
|
265
|
+
return r;
|
|
261
266
|
}
|
|
262
267
|
// 一般用于主题更新
|
|
263
268
|
updateStyle() {
|
|
264
|
-
|
|
265
|
-
e.replaceSync(t ? `${t}{${
|
|
269
|
+
u(this, Zt).forEach((t, e) => {
|
|
270
|
+
e.replaceSync(t ? `${t}{${u(this, Lt)}}` : u(this, Lt));
|
|
266
271
|
});
|
|
267
272
|
}
|
|
268
273
|
}
|
|
269
|
-
Lt = new WeakMap(), Ye = new WeakMap(),
|
|
274
|
+
Lt = new WeakMap(), Ye = new WeakMap(), Yt = new WeakMap(), Zt = new WeakMap();
|
|
270
275
|
function le(s, ...t) {
|
|
271
276
|
let e = "", n = "";
|
|
272
277
|
const i = t.at(0);
|
|
273
278
|
Array.isArray(s) ? n = Nn(s, ...t) : i !== void 0 ? (e = s, n = i) : n = s;
|
|
274
|
-
const
|
|
279
|
+
const r = new fc(e), a = { [Et]: r };
|
|
275
280
|
let c = "";
|
|
276
281
|
return typeof n == "string" ? c = n : Object.keys(n).forEach((l) => {
|
|
277
282
|
const d = l === "$";
|
|
278
283
|
a[l] = d || l.includes("-") ? l : `${l}-${Rn()}`, c += `${d ? ":where(&:not([hidden])),:host(:where(:not([hidden])))" : `.${a[l]}`} {${n[l]}}`;
|
|
279
|
-
}),
|
|
284
|
+
}), r.setContent(c), a;
|
|
280
285
|
}
|
|
281
286
|
const Hi = (s, t, e) => {
|
|
282
287
|
let n = !1;
|
|
283
288
|
t.forEach((i) => {
|
|
284
|
-
const
|
|
285
|
-
n || (n = e === 1 &&
|
|
286
|
-
}), n && St(
|
|
287
|
-
},
|
|
289
|
+
const r = s.get(i) || 0;
|
|
290
|
+
n || (n = e === 1 && r === 0 || e === -1 && r === 1), s.set(i, r + e);
|
|
291
|
+
}), n && St(Hr.get(s), rn);
|
|
292
|
+
}, mc = (s, t) => {
|
|
288
293
|
const e = s.getRootNode();
|
|
289
294
|
if (!Qs.has(e)) {
|
|
290
295
|
const i = /* @__PURE__ */ new Map();
|
|
291
|
-
Qs.set(e, i),
|
|
292
|
-
const
|
|
293
|
-
i.forEach((a, c) => a &&
|
|
296
|
+
Qs.set(e, i), Hr.set(i, () => {
|
|
297
|
+
const r = (e.adoptedStyleSheets || []).filter((a) => !i.has(a));
|
|
298
|
+
i.forEach((a, c) => a && r.push(c)), e.adoptedStyleSheets = r.reverse();
|
|
294
299
|
});
|
|
295
300
|
}
|
|
296
301
|
const n = Qs.get(e);
|
|
@@ -299,45 +304,45 @@ const Hi = (s, t, e) => {
|
|
|
299
304
|
let zn;
|
|
300
305
|
function Wi(s) {
|
|
301
306
|
s == null || s.forEach((t) => {
|
|
302
|
-
const { callback: e, getDep: n, values: i, preCallback:
|
|
303
|
-
(!n || !i ||
|
|
307
|
+
const { callback: e, getDep: n, values: i, preCallback: r } = t, a = n == null ? void 0 : n();
|
|
308
|
+
(!n || !i || ac(i, a)) && (Rr(r), t.preCallback = e(a, i), t.values = a, t.initialized = !0);
|
|
304
309
|
});
|
|
305
310
|
}
|
|
306
311
|
function zi(s) {
|
|
307
|
-
return s.filter((t) => (
|
|
312
|
+
return s.filter((t) => (Rr(t.preCallback), t.initialized = !1, t.values = void 0, t.fixed));
|
|
308
313
|
}
|
|
309
314
|
let Vn;
|
|
310
|
-
const
|
|
311
|
-
if (performance.now() > s +
|
|
312
|
-
const t =
|
|
315
|
+
const jt = new rc(), on = (s = performance.now()) => {
|
|
316
|
+
if (performance.now() > s + 50) return requestAnimationFrame(on);
|
|
317
|
+
const t = jt.get();
|
|
313
318
|
t && (t(), on(s));
|
|
314
319
|
};
|
|
315
|
-
|
|
320
|
+
jt.addEventListener("start", () => St(on));
|
|
316
321
|
let Vi;
|
|
317
|
-
var
|
|
322
|
+
var At, Q, ct, Nt, pt, Xt, it, te, ee, Rt, rt, Ft, an, ks, Ps, Ze, se, It, Xe, Ms, Os, ts, ne;
|
|
318
323
|
class tt extends HTMLElement {
|
|
319
324
|
constructor() {
|
|
320
325
|
super();
|
|
321
326
|
E(this, rt);
|
|
322
|
-
E(this,
|
|
327
|
+
E(this, At);
|
|
323
328
|
E(this, Q);
|
|
324
329
|
E(this, ct, []);
|
|
325
|
-
E(this,
|
|
330
|
+
E(this, Nt, []);
|
|
326
331
|
E(this, pt, []);
|
|
327
332
|
E(this, Xt);
|
|
328
333
|
E(this, it);
|
|
329
334
|
// not in constructor 的近似值
|
|
330
335
|
E(this, te);
|
|
331
336
|
E(this, ee);
|
|
332
|
-
E(this,
|
|
337
|
+
E(this, Rt);
|
|
333
338
|
/**
|
|
334
339
|
* 每次更新完检查依赖,执行对应的副作用回调
|
|
335
340
|
* */
|
|
336
341
|
E(this, ks, () => {
|
|
337
|
-
Wi(
|
|
342
|
+
Wi(u(this, ct));
|
|
338
343
|
});
|
|
339
344
|
E(this, Ps, () => {
|
|
340
|
-
Wi(
|
|
345
|
+
Wi(u(this, Nt));
|
|
341
346
|
});
|
|
342
347
|
/**
|
|
343
348
|
* - 条件渲染
|
|
@@ -348,13 +353,11 @@ class tt extends HTMLElement {
|
|
|
348
353
|
* */
|
|
349
354
|
E(this, Ze, (e) => {
|
|
350
355
|
try {
|
|
351
|
-
M(this, ee, !0),
|
|
352
|
-
const n =
|
|
356
|
+
M(this, ee, !0), u(this, Ps).call(this);
|
|
357
|
+
const n = u(this, At) === this, i = e ? e.render() : n ? void 0 : ot`<slot></slot>`;
|
|
353
358
|
if (i === void 0) return;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
_(this, Zt)
|
|
357
|
-
);
|
|
359
|
+
const r = i !== null ? i : ot`<style>${n ? "@scope" : ":host"}{&{display:none!important;}}</style>`;
|
|
360
|
+
Nr(r, u(this, At)) || Ls(r, u(this, At));
|
|
358
361
|
} catch (n) {
|
|
359
362
|
throw this.dispatchEvent(new CustomEvent(Wn, { bubbles: !0, composed: !0, detail: n })), n;
|
|
360
363
|
} finally {
|
|
@@ -362,28 +365,28 @@ class tt extends HTMLElement {
|
|
|
362
365
|
}
|
|
363
366
|
});
|
|
364
367
|
E(this, se, () => {
|
|
365
|
-
const e =
|
|
366
|
-
|
|
367
|
-
(e || !
|
|
368
|
+
const e = u(this, rt, an);
|
|
369
|
+
u(this, it) && // 当有渲染函数,但是没一个符合条件时跳过
|
|
370
|
+
(e || !u(this, pt).length) && (u(this, Ze).call(this, e), St(u(this, ks)));
|
|
368
371
|
});
|
|
369
|
-
E(this,
|
|
370
|
-
|
|
372
|
+
E(this, It, () => {
|
|
373
|
+
u(this, rt, Ft).noBlocking ? jt.add(u(this, se)) : u(this, se).call(this);
|
|
371
374
|
});
|
|
372
375
|
E(this, Xe, () => {
|
|
373
|
-
const { adoptedStyleSheets: e = [] } =
|
|
376
|
+
const { adoptedStyleSheets: e = [] } = u(this, rt, Ft), { shadowRoot: n, sheets: i } = u(this, Q), r = e.map((a) => a[Et].getStyle(this));
|
|
374
377
|
if (n)
|
|
375
|
-
n.adoptedStyleSheets =
|
|
378
|
+
n.adoptedStyleSheets = r.concat(i);
|
|
376
379
|
else
|
|
377
|
-
return this.prepend(...i.map((a) => a.element)),
|
|
380
|
+
return this.prepend(...i.map((a) => a.element)), mc(this, r);
|
|
378
381
|
});
|
|
379
382
|
/**
|
|
380
383
|
* 元素挂载后执行还未初始化的副作用
|
|
381
384
|
* */
|
|
382
385
|
E(this, Ms, () => {
|
|
383
386
|
var e;
|
|
384
|
-
(e =
|
|
385
|
-
const { callback: i, getDep:
|
|
386
|
-
a || (n.values =
|
|
387
|
+
(e = u(this, ct)) == null || e.forEach((n) => {
|
|
388
|
+
const { callback: i, getDep: r, initialized: a } = n;
|
|
389
|
+
a || (n.values = r == null ? void 0 : r(), n.preCallback = i(n.values), n.initialized = !0);
|
|
387
390
|
});
|
|
388
391
|
});
|
|
389
392
|
E(this, Os, () => {
|
|
@@ -391,18 +394,18 @@ class tt extends HTMLElement {
|
|
|
391
394
|
this.willMount && this.memo(this.willMount.bind(this), () => []), this.mounted && this.effect(this.mounted.bind(this), () => []), this.updated && this.effect((n, i) => i && this.updated.apply(this)), this.unmounted && this.effect(
|
|
392
395
|
() => this.unmounted.bind(this),
|
|
393
396
|
() => []
|
|
394
|
-
), !
|
|
397
|
+
), !u(this, pt).length && this.render && u(this, pt).push({ render: this.render.bind(this), condition: (e = this.shouldUpdate) == null ? void 0 : e.bind(this) });
|
|
395
398
|
});
|
|
396
399
|
E(this, ts);
|
|
397
400
|
E(this, ne, async () => {
|
|
398
|
-
var
|
|
399
|
-
if (
|
|
400
|
-
M(this, Xt, !1), (
|
|
401
|
+
var r;
|
|
402
|
+
if (u(this, Xt)) {
|
|
403
|
+
M(this, Xt, !1), (r = u(this, Rt)) == null || r.call(this), M(this, Rt, u(this, Xe).call(this));
|
|
401
404
|
return;
|
|
402
405
|
}
|
|
403
|
-
M(this, te, !0),
|
|
404
|
-
const { observedStores: e, mode: n, penetrable: i } =
|
|
405
|
-
!n &&
|
|
406
|
+
M(this, te, !0), u(this, Os).call(this);
|
|
407
|
+
const { observedStores: e, mode: n, penetrable: i } = u(this, rt, Ft);
|
|
408
|
+
u(this, Q).states.add(uc), !n && u(this, pt).length && !i && u(this, Q).states.add(Ir), M(this, ts, e == null ? void 0 : e.map((a) => mt(a, u(this, It)))), u(this, Ze).call(this, u(this, rt, an)), M(this, it, !0), M(this, Rt, u(this, Xe).call(this)), St(u(this, Ms));
|
|
406
409
|
});
|
|
407
410
|
/**
|
|
408
411
|
* @helper
|
|
@@ -422,10 +425,10 @@ class tt extends HTMLElement {
|
|
|
422
425
|
const i = {
|
|
423
426
|
callback: e,
|
|
424
427
|
getDep: n,
|
|
425
|
-
initialized:
|
|
426
|
-
fixed: !
|
|
428
|
+
initialized: u(this, it),
|
|
429
|
+
fixed: !u(this, te)
|
|
427
430
|
};
|
|
428
|
-
|
|
431
|
+
u(this, it) && (i.values = n == null ? void 0 : n(), i.preCallback = e(i.values)), u(this, ct).push(i);
|
|
429
432
|
});
|
|
430
433
|
/**
|
|
431
434
|
* @helper
|
|
@@ -445,37 +448,37 @@ class tt extends HTMLElement {
|
|
|
445
448
|
* ```
|
|
446
449
|
* */
|
|
447
450
|
v(this, "memo", (e, n) => {
|
|
448
|
-
|
|
451
|
+
u(this, Nt).push({
|
|
449
452
|
callback: e,
|
|
450
453
|
getDep: n,
|
|
451
|
-
fixed: !
|
|
454
|
+
fixed: !u(this, te)
|
|
452
455
|
});
|
|
453
456
|
});
|
|
454
457
|
/**
|
|
455
458
|
* @helper
|
|
456
459
|
* async
|
|
457
460
|
*/
|
|
458
|
-
v(this, "update", () => St(
|
|
461
|
+
v(this, "update", () => St(u(this, It)));
|
|
459
462
|
Vi = this;
|
|
460
|
-
const {
|
|
461
|
-
M(this,
|
|
462
|
-
let
|
|
463
|
-
|
|
463
|
+
const { aria: e, mode: n, delegatesFocus: i, ...r } = u(this, rt, Ft), { focusable: a, ...c } = e || {};
|
|
464
|
+
M(this, At, n ? this.shadowRoot || this.attachShadow({ mode: n, delegatesFocus: i, ...r }) : this), M(this, Q, this.attachInternals()), u(this, Q).stateList = [], u(this, Q).sheets = [], Ii(u(this, Q), c);
|
|
465
|
+
let l;
|
|
466
|
+
u(this, ct).push({
|
|
464
467
|
fixed: !0,
|
|
465
468
|
getDep: () => [this.disabled],
|
|
466
|
-
callback: ([
|
|
467
|
-
if (
|
|
468
|
-
return Lr(this, "click", (
|
|
469
|
+
callback: ([d = !1]) => {
|
|
470
|
+
if (l === void 0 && (l = this.hasAttribute("tabindex")), u(this, Q).ariaDisabled = String(d), a && !l && (this.tabIndex = -Number(d)), (a || i) && d)
|
|
471
|
+
return Lr(this, "click", (f) => f.isTrusted && f.stopImmediatePropagation(), {
|
|
469
472
|
capture: !0
|
|
470
473
|
});
|
|
471
474
|
}
|
|
472
475
|
});
|
|
473
476
|
}
|
|
474
|
-
[
|
|
475
|
-
|
|
477
|
+
[_c]() {
|
|
478
|
+
u(this, it) && St(u(this, It));
|
|
476
479
|
}
|
|
477
480
|
get internals() {
|
|
478
|
-
return
|
|
481
|
+
return u(this, Q);
|
|
479
482
|
}
|
|
480
483
|
/**
|
|
481
484
|
* @private
|
|
@@ -483,7 +486,7 @@ class tt extends HTMLElement {
|
|
|
483
486
|
* use `@mounted`
|
|
484
487
|
*/
|
|
485
488
|
connectedCallback() {
|
|
486
|
-
|
|
489
|
+
u(this, rt, Ft).noBlocking ? jt.add(u(this, ne)) : u(this, ne).call(this);
|
|
487
490
|
}
|
|
488
491
|
/**
|
|
489
492
|
* @private
|
|
@@ -496,23 +499,23 @@ class tt extends HTMLElement {
|
|
|
496
499
|
M(this, Xt, !0);
|
|
497
500
|
return;
|
|
498
501
|
}
|
|
499
|
-
|
|
502
|
+
jt.delete(u(this, ne)), jt.delete(u(this, se)), M(this, it, !1), (e = u(this, ts)) == null || e.forEach((i) => i()), M(this, ct, zi(u(this, ct))), M(this, Nt, zi(u(this, Nt))), (n = u(this, Rt)) == null || n.call(this);
|
|
500
503
|
}
|
|
501
504
|
}
|
|
502
|
-
|
|
505
|
+
At = new WeakMap(), Q = new WeakMap(), ct = new WeakMap(), Nt = new WeakMap(), pt = new WeakMap(), Xt = new WeakMap(), it = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), Rt = new WeakMap(), rt = new WeakSet(), Ft = function() {
|
|
503
506
|
return this.constructor[Symbol.metadata];
|
|
504
507
|
}, an = function() {
|
|
505
|
-
return
|
|
506
|
-
}, ks = new WeakMap(), Ps = new WeakMap(), Ze = new WeakMap(), se = new WeakMap(),
|
|
507
|
-
const n = Vi, i = xs(e, (
|
|
508
|
-
const a =
|
|
509
|
-
if (!rn &&
|
|
508
|
+
return u(this, pt).findLast((e) => !e.condition || e.condition());
|
|
509
|
+
}, ks = new WeakMap(), Ps = new WeakMap(), Ze = new WeakMap(), se = new WeakMap(), It = new WeakMap(), Xe = new WeakMap(), Ms = new WeakMap(), Os = new WeakMap(), ts = new WeakMap(), ne = new WeakMap(), zn = (e) => {
|
|
510
|
+
const n = Vi, i = xs(e, (r) => {
|
|
511
|
+
const a = u(n, ct).at(0);
|
|
512
|
+
if (!rn && u(n, it) && a && !a.initialized)
|
|
510
513
|
throw new wt("Don't set state sync before insert the DOM");
|
|
511
|
-
Ii(i,
|
|
514
|
+
Ii(i, r), !u(n, ee) && u(n, it) && St(u(n, It), rn);
|
|
512
515
|
});
|
|
513
|
-
return
|
|
514
|
-
}, Vn = (e, n) =>
|
|
515
|
-
const
|
|
516
|
+
return u(n, Q).stateList.push(i), i;
|
|
517
|
+
}, Vn = (e, n) => u(e, pt).push(n);
|
|
518
|
+
const gc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
516
519
|
__proto__: null,
|
|
517
520
|
GemElement: tt,
|
|
518
521
|
SheetToken: Et,
|
|
@@ -531,53 +534,54 @@ const pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
531
534
|
get render() {
|
|
532
535
|
return Ls;
|
|
533
536
|
},
|
|
534
|
-
setEngine: Ar
|
|
535
|
-
|
|
537
|
+
setEngine: Ar,
|
|
538
|
+
setHydrationEngine: lc
|
|
539
|
+
}, Symbol.toStringTag, { value: "Module" })), { deleteProperty: vc, getOwnPropertyDescriptor: Gn, defineProperty: Ns } = Reflect, { getPrototypeOf: Rs, assign: $c, hasOwn: Is } = Object, Gi = new oc();
|
|
536
540
|
function Ct(s, t, e) {
|
|
537
541
|
var i;
|
|
538
542
|
const n = s.metadata;
|
|
539
543
|
Gn(n, t) || Ns(n, t, {
|
|
540
|
-
value: ((i = n[t]) == null ? void 0 : i.filter((
|
|
544
|
+
value: ((i = n[t]) == null ? void 0 : i.filter((r) => r !== e)) || []
|
|
541
545
|
}), n[t].push(e);
|
|
542
546
|
}
|
|
543
547
|
function Hs(s, t) {
|
|
544
548
|
const { value: e } = Gn(s, t) || {};
|
|
545
|
-
|
|
549
|
+
vc(s, t), s[t] = e;
|
|
546
550
|
}
|
|
547
|
-
const cn = /* @__PURE__ */ new WeakMap(), { setAttribute:
|
|
551
|
+
const cn = /* @__PURE__ */ new WeakMap(), { setAttribute: Wr, toggleAttribute: Sc, removeAttribute: zr } = Element.prototype, Dn = (s, t) => {
|
|
548
552
|
var e;
|
|
549
553
|
return (e = cn.get(Rs(s))) == null ? void 0 : e.get(t);
|
|
550
554
|
};
|
|
551
555
|
tt.prototype.setAttribute = function(s, t) {
|
|
552
556
|
const e = Dn(this, s);
|
|
553
|
-
if (!e) return
|
|
557
|
+
if (!e) return Wr.call(this, s, t);
|
|
554
558
|
this[e] = t;
|
|
555
559
|
};
|
|
556
560
|
tt.prototype.removeAttribute = function(s) {
|
|
557
561
|
const t = Dn(this, s);
|
|
558
|
-
if (!t) return
|
|
562
|
+
if (!t) return zr.call(this, s);
|
|
559
563
|
this[t] = null;
|
|
560
564
|
};
|
|
561
565
|
tt.prototype.toggleAttribute = function(s, t) {
|
|
562
566
|
const e = Dn(this, s);
|
|
563
|
-
return e ? this[e] = t ?? !this.hasAttribute(s) :
|
|
567
|
+
return e ? this[e] = t ?? !this.hasAttribute(s) : Sc.call(this, s, t);
|
|
564
568
|
};
|
|
565
|
-
function
|
|
569
|
+
function yc() {
|
|
566
570
|
}
|
|
567
571
|
const Di = Symbol("event handle");
|
|
568
|
-
function Un(s, t, { attr: e, attrType: n, event: i, eventOptions:
|
|
572
|
+
function Un(s, t, { attr: e, attrType: n, event: i, eventOptions: r } = {}) {
|
|
569
573
|
Ns(s, t, {
|
|
570
574
|
configurable: !0,
|
|
571
575
|
get() {
|
|
572
576
|
const a = Gi.get(this)[t];
|
|
573
|
-
return i && !a ? (this[t] =
|
|
577
|
+
return i && !a ? (this[t] = yc, this[t]) : a;
|
|
574
578
|
},
|
|
575
579
|
set(a) {
|
|
576
580
|
const c = this, l = Gi.get(c);
|
|
577
|
-
e && (a = n === Boolean && a === "" ? !0 : n(a || ""), a ?
|
|
581
|
+
e && (a = n === Boolean && a === "" ? !0 : n(a || ""), a ? Wr.call(this, e, n === Boolean ? "" : a) : zr.call(this, e)), a !== l[t] && (i ? (l[t] = a != null && a[Di] ? a : async (d, f) => {
|
|
578
582
|
await Promise.resolve();
|
|
579
|
-
const
|
|
580
|
-
c.dispatchEvent(
|
|
583
|
+
const o = new CustomEvent(i, { ...f, ...r, detail: d });
|
|
584
|
+
c.dispatchEvent(o), await a(d, f);
|
|
581
585
|
}, l[t][Di] = !0) : (l[t] = a, this[As]()));
|
|
582
586
|
}
|
|
583
587
|
});
|
|
@@ -597,8 +601,8 @@ function Fn(s, t) {
|
|
|
597
601
|
return s.addInitializer(function() {
|
|
598
602
|
const i = ns(this, s);
|
|
599
603
|
Is(i, e) || (Ct(s, "observedAttributes", n), Un(i, e, { attr: n, attrType: t })), Hs(this, e);
|
|
600
|
-
const
|
|
601
|
-
a.set(n, e), cn.set(
|
|
604
|
+
const r = Rs(this), a = cn.get(r) || /* @__PURE__ */ new Map();
|
|
605
|
+
a.set(n, e), cn.set(r, a);
|
|
602
606
|
}), function(i) {
|
|
603
607
|
return this.getAttribute(n) ?? i;
|
|
604
608
|
};
|
|
@@ -609,7 +613,7 @@ function B(s, t) {
|
|
|
609
613
|
function Ws(s, t) {
|
|
610
614
|
return Fn(t, Boolean);
|
|
611
615
|
}
|
|
612
|
-
function
|
|
616
|
+
function wc(s, t) {
|
|
613
617
|
return Fn(t, Number);
|
|
614
618
|
}
|
|
615
619
|
function D(s, t) {
|
|
@@ -621,9 +625,9 @@ function D(s, t) {
|
|
|
621
625
|
return this[e] ?? n;
|
|
622
626
|
};
|
|
623
627
|
}
|
|
624
|
-
function
|
|
628
|
+
function Vr(s) {
|
|
625
629
|
return (t, e) => {
|
|
626
|
-
const { addInitializer: n, name: i, access:
|
|
630
|
+
const { addInitializer: n, name: i, access: r, kind: a } = e;
|
|
627
631
|
n(function() {
|
|
628
632
|
const c = s && (() => s(this));
|
|
629
633
|
if (a === "getter") {
|
|
@@ -636,7 +640,7 @@ function zr(s) {
|
|
|
636
640
|
});
|
|
637
641
|
}, c);
|
|
638
642
|
} else
|
|
639
|
-
this.memo(
|
|
643
|
+
this.memo(r.get.call(this, this).bind(this), c);
|
|
640
644
|
});
|
|
641
645
|
};
|
|
642
646
|
}
|
|
@@ -647,7 +651,7 @@ function ft(s) {
|
|
|
647
651
|
});
|
|
648
652
|
};
|
|
649
653
|
}
|
|
650
|
-
function
|
|
654
|
+
function Ec() {
|
|
651
655
|
return (s, { addInitializer: t, access: e }) => {
|
|
652
656
|
t(function() {
|
|
653
657
|
this.effect(
|
|
@@ -658,7 +662,7 @@ function Sc() {
|
|
|
658
662
|
};
|
|
659
663
|
}
|
|
660
664
|
function qn() {
|
|
661
|
-
return
|
|
665
|
+
return Vr(() => []);
|
|
662
666
|
}
|
|
663
667
|
function Be() {
|
|
664
668
|
return ft(() => []);
|
|
@@ -673,7 +677,7 @@ function de(s) {
|
|
|
673
677
|
});
|
|
674
678
|
};
|
|
675
679
|
}
|
|
676
|
-
function
|
|
680
|
+
function Cc() {
|
|
677
681
|
return (s, { addInitializer: t, access: e }) => {
|
|
678
682
|
t(function() {
|
|
679
683
|
this.addEventListener(Wn, ({ detail: n }) => {
|
|
@@ -682,7 +686,7 @@ function yc() {
|
|
|
682
686
|
});
|
|
683
687
|
};
|
|
684
688
|
}
|
|
685
|
-
function
|
|
689
|
+
function bc(s, t, e) {
|
|
686
690
|
Ns(s, t, {
|
|
687
691
|
configurable: !0,
|
|
688
692
|
get() {
|
|
@@ -690,8 +694,8 @@ function wc(s, t, e) {
|
|
|
690
694
|
return i == null ? void 0 : i.has(e);
|
|
691
695
|
},
|
|
692
696
|
set(n) {
|
|
693
|
-
const i = this, { states:
|
|
694
|
-
n ?
|
|
697
|
+
const i = this, { states: r } = i.internals;
|
|
698
|
+
n ? r == null || r.add(e) : r == null || r.delete(e);
|
|
695
699
|
}
|
|
696
700
|
});
|
|
697
701
|
}
|
|
@@ -699,36 +703,36 @@ function zs(s, t) {
|
|
|
699
703
|
const e = t.name, n = he(e);
|
|
700
704
|
t.addInitializer(function() {
|
|
701
705
|
const i = ns(this, t);
|
|
702
|
-
Is(i, e) || (Ct(t, "definedCSSStates", n),
|
|
706
|
+
Is(i, e) || (Ct(t, "definedCSSStates", n), bc(i, e, n)), Hs(this, e);
|
|
703
707
|
});
|
|
704
708
|
}
|
|
705
|
-
function
|
|
706
|
-
const i = s.name,
|
|
709
|
+
function Gr(s, t, e, n) {
|
|
710
|
+
const i = s.name, r = he(i);
|
|
707
711
|
if (s.static)
|
|
708
|
-
Ct(s, e,
|
|
712
|
+
Ct(s, e, r);
|
|
709
713
|
else {
|
|
710
714
|
const a = Rs(t);
|
|
711
|
-
a[i] || (a[i] =
|
|
715
|
+
a[i] || (a[i] = r, Ct(s, e, r));
|
|
712
716
|
}
|
|
713
|
-
return n ||
|
|
717
|
+
return n || r;
|
|
714
718
|
}
|
|
715
|
-
function
|
|
719
|
+
function Tc(s, t) {
|
|
716
720
|
return function(e) {
|
|
717
|
-
return
|
|
721
|
+
return Gr(t, this, "definedSlots", e);
|
|
718
722
|
};
|
|
719
723
|
}
|
|
720
|
-
function
|
|
724
|
+
function Dr(s, t) {
|
|
721
725
|
return function(e) {
|
|
722
|
-
return
|
|
726
|
+
return Gr(t, this, "definedParts", e);
|
|
723
727
|
};
|
|
724
728
|
}
|
|
725
729
|
function Te(s, t) {
|
|
726
|
-
|
|
730
|
+
Ur(t);
|
|
727
731
|
}
|
|
728
|
-
function
|
|
729
|
-
|
|
732
|
+
function kc(s, t) {
|
|
733
|
+
Ur(t, { bubbles: !0, composed: !0 });
|
|
730
734
|
}
|
|
731
|
-
function
|
|
735
|
+
function Ur(s, t) {
|
|
732
736
|
const e = s.name, n = he(e);
|
|
733
737
|
s.addInitializer(function() {
|
|
734
738
|
const i = ns(this, s);
|
|
@@ -745,24 +749,19 @@ function Vs(s) {
|
|
|
745
749
|
Ct(e, "observedStores", s);
|
|
746
750
|
};
|
|
747
751
|
}
|
|
748
|
-
function
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
slotAssignment: n
|
|
753
|
-
} = {}) {
|
|
754
|
-
return (i, o) => {
|
|
755
|
-
const a = o.metadata;
|
|
756
|
-
mc(a, { mode: s, serializable: t, delegatesFocus: e, slotAssignment: n });
|
|
752
|
+
function Vt({ mode: s = "open", serializable: t = !0, ...e } = {}) {
|
|
753
|
+
return (n, i) => {
|
|
754
|
+
const r = i.metadata;
|
|
755
|
+
$c(r, { mode: s, serializable: t, ...e });
|
|
757
756
|
};
|
|
758
757
|
}
|
|
759
|
-
function
|
|
758
|
+
function Fr({ penetrable: s }) {
|
|
760
759
|
return (t, e) => {
|
|
761
760
|
const n = e.metadata;
|
|
762
761
|
n.penetrable = s;
|
|
763
762
|
};
|
|
764
763
|
}
|
|
765
|
-
function
|
|
764
|
+
function Pc() {
|
|
766
765
|
return (s, t) => {
|
|
767
766
|
const e = t.metadata;
|
|
768
767
|
e.noBlocking = !0;
|
|
@@ -774,37 +773,37 @@ function Gs(s) {
|
|
|
774
773
|
n.aria = { ...n.aria, ...s };
|
|
775
774
|
};
|
|
776
775
|
}
|
|
777
|
-
function
|
|
776
|
+
function Mc(s) {
|
|
778
777
|
return (t, { addInitializer: e }) => {
|
|
779
778
|
e(() => {
|
|
780
779
|
customElements.define(s, t);
|
|
781
780
|
});
|
|
782
781
|
};
|
|
783
782
|
}
|
|
784
|
-
const
|
|
783
|
+
const Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
785
784
|
__proto__: null,
|
|
786
785
|
adoptedStyle: is,
|
|
787
786
|
aria: Gs,
|
|
788
|
-
async:
|
|
787
|
+
async: Pc,
|
|
789
788
|
attribute: B,
|
|
790
789
|
boolattribute: Ws,
|
|
791
790
|
connectStore: Vs,
|
|
792
|
-
customElement:
|
|
791
|
+
customElement: Mc,
|
|
793
792
|
effect: ft,
|
|
794
793
|
emitter: Te,
|
|
795
|
-
fallback:
|
|
796
|
-
globalemitter:
|
|
797
|
-
light:
|
|
798
|
-
memo:
|
|
794
|
+
fallback: Cc,
|
|
795
|
+
globalemitter: kc,
|
|
796
|
+
light: Fr,
|
|
797
|
+
memo: Vr,
|
|
799
798
|
mounted: Be,
|
|
800
|
-
numattribute:
|
|
801
|
-
part:
|
|
799
|
+
numattribute: wc,
|
|
800
|
+
part: Dr,
|
|
802
801
|
property: D,
|
|
803
|
-
shadow:
|
|
804
|
-
slot:
|
|
802
|
+
shadow: Vt,
|
|
803
|
+
slot: Tc,
|
|
805
804
|
state: zs,
|
|
806
805
|
template: de,
|
|
807
|
-
unmounted:
|
|
806
|
+
unmounted: Ec,
|
|
808
807
|
willMount: qn
|
|
809
808
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
810
809
|
/**
|
|
@@ -812,13 +811,13 @@ const kc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
812
811
|
* Copyright 2017 Google LLC
|
|
813
812
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
814
813
|
*/
|
|
815
|
-
const
|
|
816
|
-
\f\r]`,
|
|
817
|
-
\f\r"'\`<>=]`,
|
|
818
|
-
`>|${Js}(?:(${
|
|
814
|
+
const xc = globalThis, Ue = xc.trustedTypes, Fi = Ue == null ? void 0 : Ue.createPolicy("lit-html", { createHTML: (s) => s }), qr = "$lit$", yt = `lit$${Math.random().toFixed(9).slice(2)}$`, Br = "?" + yt, Lc = `<${Br}>`, Wt = document, re = () => Wt.createComment(""), Ke = (s) => s === null || typeof s != "object" && typeof s != "function", Qt = (s) => s == null, Ac = (s) => Symbol.iterator in s, Js = `[
|
|
815
|
+
\f\r]`, Nc = `[^
|
|
816
|
+
\f\r"'\`<>=]`, Rc = `[^\\s"'>=/]`, ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qi = 1, Ys = 2, Ic = 3, Bi = /-->/g, Ki = />/g, kt = new RegExp(
|
|
817
|
+
`>|${Js}(?:(${Rc}+)(${Js}*=${Js}*(?:${Nc}|("|')|))|$)`,
|
|
819
818
|
"g"
|
|
820
|
-
),
|
|
821
|
-
class
|
|
819
|
+
), Hc = 0, ji = 1, Wc = 2, Qi = 3, Ji = /'/g, Yi = /"/g, Kr = /^(?:script|style|textarea|title)$/i, zc = 1, $s = 2, Ss = 3, Bn = 1, ys = 2, Vc = 3, Gc = 4, Dc = 5, Kn = 6, Uc = 7, Zi = "v-if", Xi = "v-else-if", tr = "v-else";
|
|
820
|
+
class jr {
|
|
822
821
|
constructor(t, e, n) {
|
|
823
822
|
v(this, "type");
|
|
824
823
|
v(this, "strings");
|
|
@@ -826,81 +825,81 @@ class Kr {
|
|
|
826
825
|
this.type = t, this.strings = e, this.values = n;
|
|
827
826
|
}
|
|
828
827
|
}
|
|
829
|
-
const jn = (s) => (t, ...e) => new
|
|
830
|
-
|
|
828
|
+
const jn = (s) => (t, ...e) => new jr(s, t, e), Fc = jn(zc), Il = jn($s), Hl = jn(Ss), Qn = Symbol.for("lit-noChange"), er = /* @__PURE__ */ new WeakMap(), xt = Wt.createTreeWalker(
|
|
829
|
+
Wt,
|
|
831
830
|
129
|
|
832
831
|
/* NodeFilter.SHOW_{ELEMENT|COMMENT} */
|
|
833
832
|
);
|
|
834
|
-
function
|
|
833
|
+
function qc(s, t) {
|
|
835
834
|
if (!Array.isArray(s)) throw new Error("invalid template");
|
|
836
835
|
return Fi !== void 0 ? Fi.createHTML(t) : t;
|
|
837
836
|
}
|
|
838
|
-
const
|
|
837
|
+
const Bc = (s, t) => {
|
|
839
838
|
const e = s.length - 1, n = [];
|
|
840
|
-
let i = t === $s ? "<svg>" : t === Ss ? "<math>" : "",
|
|
839
|
+
let i = t === $s ? "<svg>" : t === Ss ? "<math>" : "", r, a = ye;
|
|
841
840
|
for (let l = 0; l < e; l++) {
|
|
842
841
|
const d = s[l];
|
|
843
|
-
let f = -1,
|
|
842
|
+
let f = -1, o, m = 0, h;
|
|
844
843
|
for (; m < d.length && (a.lastIndex = m, h = a.exec(d), h !== null); )
|
|
845
|
-
m = a.lastIndex, a === ye ? h[qi] === "!--" ? a = Bi : h[qi] !== void 0 ? a = Ki : h[Ys] !== void 0 ? (
|
|
844
|
+
m = a.lastIndex, a === ye ? h[qi] === "!--" ? a = Bi : h[qi] !== void 0 ? a = Ki : h[Ys] !== void 0 ? (Kr.test(h[Ys]) && (r = new RegExp(`</${h[Ys]}`, "g")), a = kt) : h[Ic] !== void 0 && (a = kt) : a === kt ? h[Hc] === ">" ? (a = r ?? ye, f = -1) : h[ji] === void 0 ? f = -2 : (f = a.lastIndex - h[Wc].length, o = h[ji], a = h[Qi] === void 0 ? kt : h[Qi] === '"' ? Yi : Ji) : a === Yi || a === Ji ? a = kt : a === Bi || a === Ki ? a = ye : (a = kt, r = void 0);
|
|
846
845
|
const g = a === kt && s[l + 1].startsWith("/>") ? " " : "";
|
|
847
|
-
i += a === ye ? d +
|
|
846
|
+
i += a === ye ? d + Lc : f >= 0 ? (n.push(o), d.slice(0, f) + qr + d.slice(f) + yt + g) : d + yt + (f === -2 ? l : g);
|
|
848
847
|
}
|
|
849
848
|
const c = i + (s[e] || "<?>") + (t === $s ? "</svg>" : t === Ss ? "</math>" : "");
|
|
850
|
-
return [
|
|
849
|
+
return [qc(s, c), n];
|
|
851
850
|
};
|
|
852
851
|
class Jn {
|
|
853
852
|
constructor({ strings: t, type: e }, n) {
|
|
854
853
|
/** @internal */
|
|
855
854
|
v(this, "el");
|
|
856
855
|
v(this, "parts", []);
|
|
857
|
-
let i,
|
|
858
|
-
const c = t.length - 1, l = this.parts, [d, f] =
|
|
856
|
+
let i, r = 0, a = 0;
|
|
857
|
+
const c = t.length - 1, l = this.parts, [d, f] = Bc(t, e);
|
|
859
858
|
if (this.el = Jn.createElement(d, n), xt.currentNode = this.el.content, e === $s || e === Ss) {
|
|
860
|
-
const
|
|
861
|
-
|
|
859
|
+
const o = this.el.content.firstChild;
|
|
860
|
+
o.replaceWith(...o.childNodes);
|
|
862
861
|
}
|
|
863
862
|
for (; (i = xt.nextNode()) !== null && l.length < c; ) {
|
|
864
863
|
if (i.nodeType === 1) {
|
|
865
864
|
if (i.hasAttributes())
|
|
866
|
-
for (const
|
|
867
|
-
if (
|
|
868
|
-
const m = f[a++], g = i.getAttribute(
|
|
865
|
+
for (const o of i.getAttributeNames())
|
|
866
|
+
if (o.endsWith(qr)) {
|
|
867
|
+
const m = f[a++], g = i.getAttribute(o).split(yt), $ = /([.?@])?(.*)/.exec(m);
|
|
869
868
|
l.push({
|
|
870
869
|
type: Bn,
|
|
871
|
-
index:
|
|
870
|
+
index: r,
|
|
872
871
|
name: $[2],
|
|
873
872
|
strings: g,
|
|
874
|
-
ctor: $[1] === "." ?
|
|
875
|
-
}), i.removeAttribute(
|
|
876
|
-
} else
|
|
873
|
+
ctor: $[1] === "." ? Qc : $[1] === "?" ? Jc : $[1] === "@" ? Yc : Ds
|
|
874
|
+
}), i.removeAttribute(o);
|
|
875
|
+
} else o.startsWith(yt) && (l.push({
|
|
877
876
|
type: Kn,
|
|
878
|
-
index:
|
|
879
|
-
}), i.removeAttribute(
|
|
880
|
-
if (
|
|
881
|
-
const
|
|
877
|
+
index: r
|
|
878
|
+
}), i.removeAttribute(o));
|
|
879
|
+
if (Kr.test(i.tagName)) {
|
|
880
|
+
const o = i.textContent.split(yt), m = o.length - 1;
|
|
882
881
|
if (m > 0) {
|
|
883
882
|
i.textContent = Ue ? Ue.emptyScript : "";
|
|
884
883
|
for (let h = 0; h < m; h++)
|
|
885
|
-
i.append(
|
|
886
|
-
i.append(
|
|
884
|
+
i.append(o[h], re()), xt.nextNode(), l.push({ type: ys, index: ++r });
|
|
885
|
+
i.append(o[m], re());
|
|
887
886
|
}
|
|
888
887
|
}
|
|
889
888
|
} else if (i.nodeType === 8)
|
|
890
|
-
if (i.data ===
|
|
891
|
-
l.push({ type: ys, index:
|
|
889
|
+
if (i.data === Br)
|
|
890
|
+
l.push({ type: ys, index: r });
|
|
892
891
|
else {
|
|
893
892
|
let m = -1;
|
|
894
893
|
for (; (m = i.data.indexOf(yt, m + 1)) !== -1; )
|
|
895
|
-
l.push({ type:
|
|
894
|
+
l.push({ type: Uc, index: r }), m += yt.length - 1;
|
|
896
895
|
}
|
|
897
|
-
|
|
896
|
+
r++;
|
|
898
897
|
}
|
|
899
898
|
}
|
|
900
899
|
// Overridden via `litHtmlPolyfillSupport` to provide platform support.
|
|
901
900
|
/** @nocollapse */
|
|
902
901
|
static createElement(t, e) {
|
|
903
|
-
const n =
|
|
902
|
+
const n = Wt.createElement("template");
|
|
904
903
|
return n.innerHTML = t, n;
|
|
905
904
|
}
|
|
906
905
|
}
|
|
@@ -909,22 +908,21 @@ function oe(s, t, e = s, n) {
|
|
|
909
908
|
if (t === Qn)
|
|
910
909
|
return t;
|
|
911
910
|
let i = n !== void 0 ? (a = e.__directives) == null ? void 0 : a[n] : e.__directive;
|
|
912
|
-
const
|
|
911
|
+
const r = Ke(t) ? void 0 : (
|
|
913
912
|
// This property needs to remain unminified.
|
|
914
913
|
t._$litDirective$
|
|
915
914
|
);
|
|
916
|
-
return (i == null ? void 0 : i.constructor) !==
|
|
915
|
+
return (i == null ? void 0 : i.constructor) !== r && ((c = i == null ? void 0 : i._$notifyDirectiveConnectionChanged) == null || c.call(i, !1), r === void 0 ? i = void 0 : (i = new r(s), i._$initialize(s, e, n)), n !== void 0 ? (e.__directives ?? (e.__directives = []))[n] = i : e.__directive = i), i !== void 0 && (t = oe(
|
|
917
916
|
s,
|
|
918
917
|
i._$resolve(s, t.values),
|
|
919
918
|
i,
|
|
920
919
|
n
|
|
921
920
|
)), t;
|
|
922
921
|
}
|
|
923
|
-
class
|
|
922
|
+
class Kc {
|
|
924
923
|
constructor(t, e) {
|
|
925
924
|
v(this, "_$template");
|
|
926
925
|
v(this, "_$parts", []);
|
|
927
|
-
/** @internal */
|
|
928
926
|
v(this, "_$conditions", []);
|
|
929
927
|
/** @internal */
|
|
930
928
|
v(this, "_$parent");
|
|
@@ -946,26 +944,26 @@ class Fc {
|
|
|
946
944
|
const {
|
|
947
945
|
el: { content: e },
|
|
948
946
|
parts: n
|
|
949
|
-
} = this._$template, i = /* @__PURE__ */ new Map(),
|
|
947
|
+
} = this._$template, i = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = ((t == null ? void 0 : t.creationScope) ?? Wt).importNode(e, !0);
|
|
950
948
|
xt.currentNode = a;
|
|
951
949
|
let c = xt.nextNode(), l = 0, d = 0, f = n[0];
|
|
952
950
|
for (; f !== void 0; ) {
|
|
953
951
|
if (l === f.index) {
|
|
954
|
-
let
|
|
955
|
-
f.type === ys ?
|
|
952
|
+
let o;
|
|
953
|
+
f.type === ys ? o = new rs(c, c.nextSibling, this, t) : f.type === Bn ? (f.name === Zi && i.set(c, d), f.name === Xi && r.set(c, d), o = new f.ctor(c, f.name, f.strings, this, t)) : f.type === Kn && (o = new Zc(c, this, t)), this._$parts.push(o), f = n[++d];
|
|
956
954
|
}
|
|
957
955
|
l !== (f == null ? void 0 : f.index) && (c = xt.nextNode(), l++);
|
|
958
956
|
}
|
|
959
|
-
return i.forEach((
|
|
960
|
-
const h = new
|
|
957
|
+
return i.forEach((o, m) => {
|
|
958
|
+
const h = new jc(m, o);
|
|
961
959
|
this._$conditions.push(h);
|
|
962
960
|
let g = m;
|
|
963
961
|
for (; g = g.nextElementSibling; ) {
|
|
964
|
-
const $ =
|
|
962
|
+
const $ = r.get(g);
|
|
965
963
|
if ($ === void 0) break;
|
|
966
964
|
h.push(g, $);
|
|
967
965
|
}
|
|
968
|
-
}), xt.currentNode =
|
|
966
|
+
}), xt.currentNode = Wt, a;
|
|
969
967
|
}
|
|
970
968
|
_update(t) {
|
|
971
969
|
let e = 0;
|
|
@@ -974,12 +972,12 @@ class Fc {
|
|
|
974
972
|
this._$conditions.forEach((n) => n.update(t));
|
|
975
973
|
}
|
|
976
974
|
}
|
|
977
|
-
class
|
|
975
|
+
class jc {
|
|
978
976
|
constructor(t, e) {
|
|
979
977
|
v(this, "mark");
|
|
980
978
|
v(this, "list");
|
|
981
979
|
const n = re();
|
|
982
|
-
t.before(n), this.mark = n, this.list = [{ ele: t, idx: e }], this.check();
|
|
980
|
+
n._$chain = this, t.before(n), this.mark = n, this.list = [{ ele: t, idx: e }], this.check();
|
|
983
981
|
}
|
|
984
982
|
get next() {
|
|
985
983
|
return this.list.at(-1).ele.nextElementSibling;
|
|
@@ -992,8 +990,8 @@ class qc {
|
|
|
992
990
|
t != null && t.attributes.getNamedItem(tr) && (this.list.push({ ele: t }), t.removeAttribute(tr));
|
|
993
991
|
}
|
|
994
992
|
update(t) {
|
|
995
|
-
const { mark: e, list: n } = this, i = n.find(({ idx:
|
|
996
|
-
i && !i.ele.parentNode && e.after(i.ele), n.forEach(({ ele:
|
|
993
|
+
const { mark: e, list: n } = this, i = n.find(({ idx: r }) => r === void 0 || !!t[r]);
|
|
994
|
+
i && !i.ele.parentNode && e.after(i.ele), n.forEach(({ ele: r }) => (!i || r !== i.ele) && r.remove());
|
|
997
995
|
}
|
|
998
996
|
}
|
|
999
997
|
class rs {
|
|
@@ -1067,7 +1065,7 @@ class rs {
|
|
|
1067
1065
|
return this._$endNode;
|
|
1068
1066
|
}
|
|
1069
1067
|
_$setValue(t, e = this) {
|
|
1070
|
-
this.parentNode && (t = oe(this, t, e), Ke(t) ?
|
|
1068
|
+
this.parentNode && (t = oe(this, t, e), Ke(t) ? Qt(t) || t === "" ? (Qt(this._$committedValue) || this._$clear(), this._$committedValue = void 0) : t !== this._$committedValue && t !== Qn && this._commitText(t) : t instanceof jr ? this._commitTemplateResult(t) : t.nodeType !== void 0 ? this._commitNode(t) : Ac(t) ? this._commitIterable(t) : this._commitText(t));
|
|
1071
1069
|
}
|
|
1072
1070
|
_insert(t) {
|
|
1073
1071
|
return this._$startNode.parentNode.insertBefore(t, this._$endNode);
|
|
@@ -1076,11 +1074,11 @@ class rs {
|
|
|
1076
1074
|
this._$committedValue !== t && (this._$clear(), this._$committedValue = this._insert(t));
|
|
1077
1075
|
}
|
|
1078
1076
|
_commitText(t) {
|
|
1079
|
-
if (!
|
|
1077
|
+
if (!Qt(this._$committedValue) && Ke(this._$committedValue)) {
|
|
1080
1078
|
const e = this._$startNode.nextSibling;
|
|
1081
1079
|
e.data = t;
|
|
1082
1080
|
} else
|
|
1083
|
-
this._commitNode(
|
|
1081
|
+
this._commitNode(Wt.createTextNode(t));
|
|
1084
1082
|
this._$committedValue = t;
|
|
1085
1083
|
}
|
|
1086
1084
|
_commitTemplateResult(t) {
|
|
@@ -1089,8 +1087,8 @@ class rs {
|
|
|
1089
1087
|
if (((i = this._$committedValue) == null ? void 0 : i._$template) === n)
|
|
1090
1088
|
this._$committedValue._update(e);
|
|
1091
1089
|
else {
|
|
1092
|
-
const
|
|
1093
|
-
|
|
1090
|
+
const r = new Kc(n, this), a = r._clone(this.options);
|
|
1091
|
+
r._update(e), this._commitNode(a), this._$committedValue = r;
|
|
1094
1092
|
}
|
|
1095
1093
|
}
|
|
1096
1094
|
// Overridden via `litHtmlPolyfillSupport` to provide platform support.
|
|
@@ -1103,10 +1101,10 @@ class rs {
|
|
|
1103
1101
|
Array.isArray(this._$committedValue) || (this._$committedValue = [], this._$clear());
|
|
1104
1102
|
const e = this._$committedValue;
|
|
1105
1103
|
let n = 0, i;
|
|
1106
|
-
for (const
|
|
1104
|
+
for (const r of t)
|
|
1107
1105
|
n === e.length ? e.push(
|
|
1108
1106
|
i = new rs(this._insert(re()), this._insert(re()), this, this.options)
|
|
1109
|
-
) : i = e[n], i._$setValue(
|
|
1107
|
+
) : i = e[n], i._$setValue(r), n++;
|
|
1110
1108
|
n < e.length && (this._$clear(i && i._$endNode.nextSibling, n), e.length = n);
|
|
1111
1109
|
}
|
|
1112
1110
|
/**
|
|
@@ -1140,7 +1138,7 @@ class rs {
|
|
|
1140
1138
|
}
|
|
1141
1139
|
}
|
|
1142
1140
|
class Ds {
|
|
1143
|
-
constructor(t, e, n, i,
|
|
1141
|
+
constructor(t, e, n, i, r) {
|
|
1144
1142
|
v(this, "type", Bn);
|
|
1145
1143
|
v(this, "element");
|
|
1146
1144
|
v(this, "name");
|
|
@@ -1159,7 +1157,7 @@ class Ds {
|
|
|
1159
1157
|
v(this, "_$parent");
|
|
1160
1158
|
/** @internal */
|
|
1161
1159
|
v(this, "_$disconnectableChildren");
|
|
1162
|
-
this.element = t, this.name = e, this._$parent = i, this.options =
|
|
1160
|
+
this.element = t, this.name = e, this._$parent = i, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$committedValue = new Array(n.length - 1).fill(new String()), this.strings = n) : this._$committedValue = void 0;
|
|
1163
1161
|
}
|
|
1164
1162
|
get tagName() {
|
|
1165
1163
|
return this.element.tagName;
|
|
@@ -1191,61 +1189,61 @@ class Ds {
|
|
|
1191
1189
|
* @internal
|
|
1192
1190
|
*/
|
|
1193
1191
|
_$setValue(t, e = this, n, i) {
|
|
1194
|
-
const
|
|
1192
|
+
const r = this.strings;
|
|
1195
1193
|
let a = !1;
|
|
1196
|
-
if (
|
|
1194
|
+
if (r === void 0)
|
|
1197
1195
|
t = oe(this, t, e, 0), a = !Ke(t) || t !== this._$committedValue, a && (this._$committedValue = t);
|
|
1198
1196
|
else {
|
|
1199
1197
|
const c = t;
|
|
1200
|
-
t =
|
|
1198
|
+
t = r[0];
|
|
1201
1199
|
let l, d;
|
|
1202
|
-
for (l = 0; l <
|
|
1203
|
-
d = oe(this, c[n + l], e, l), a || (a = !Ke(d) || d !== this._$committedValue[l]),
|
|
1200
|
+
for (l = 0; l < r.length - 1; l++)
|
|
1201
|
+
d = oe(this, c[n + l], e, l), a || (a = !Ke(d) || d !== this._$committedValue[l]), Qt(d) ? t = void 0 : Qt(t) || (t += d + r[l + 1]), this._$committedValue[l] = d;
|
|
1204
1202
|
}
|
|
1205
1203
|
a && !i && this._commitValue(t);
|
|
1206
1204
|
}
|
|
1207
1205
|
/** @internal */
|
|
1208
1206
|
_commitValue(t) {
|
|
1209
|
-
|
|
1207
|
+
Qt(t) ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t);
|
|
1210
1208
|
}
|
|
1211
1209
|
}
|
|
1212
|
-
class
|
|
1210
|
+
class Qc extends Ds {
|
|
1213
1211
|
constructor() {
|
|
1214
1212
|
super(...arguments);
|
|
1215
|
-
v(this, "type",
|
|
1213
|
+
v(this, "type", Vc);
|
|
1216
1214
|
}
|
|
1217
1215
|
/** @internal */
|
|
1218
1216
|
_commitValue(e) {
|
|
1219
1217
|
this.element[this.name] = e;
|
|
1220
1218
|
}
|
|
1221
1219
|
}
|
|
1222
|
-
class
|
|
1220
|
+
class Jc extends Ds {
|
|
1223
1221
|
constructor() {
|
|
1224
1222
|
super(...arguments);
|
|
1225
|
-
v(this, "type",
|
|
1223
|
+
v(this, "type", Gc);
|
|
1226
1224
|
}
|
|
1227
1225
|
/** @internal */
|
|
1228
1226
|
_commitValue(e) {
|
|
1229
1227
|
this.element.toggleAttribute(this.name, !!e);
|
|
1230
1228
|
}
|
|
1231
1229
|
}
|
|
1232
|
-
class
|
|
1230
|
+
class Yc extends Ds {
|
|
1233
1231
|
constructor() {
|
|
1234
1232
|
super(...arguments);
|
|
1235
|
-
v(this, "type",
|
|
1233
|
+
v(this, "type", Dc);
|
|
1236
1234
|
}
|
|
1237
1235
|
/** @internal */
|
|
1238
1236
|
_$setValue(e, n = this) {
|
|
1239
1237
|
e = oe(this, e, n, 0);
|
|
1240
|
-
const i = this._$committedValue,
|
|
1241
|
-
|
|
1238
|
+
const i = this._$committedValue, r = i && (!e || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive), a = e && (!i || r);
|
|
1239
|
+
r && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, e), this._$committedValue = e;
|
|
1242
1240
|
}
|
|
1243
1241
|
handleEvent(e) {
|
|
1244
1242
|
var n;
|
|
1245
1243
|
typeof this._$committedValue == "function" ? this._$committedValue.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, e) : this._$committedValue.handleEvent(e);
|
|
1246
1244
|
}
|
|
1247
1245
|
}
|
|
1248
|
-
class
|
|
1246
|
+
class Zc {
|
|
1249
1247
|
constructor(t, e, n) {
|
|
1250
1248
|
v(this, "type", Kn);
|
|
1251
1249
|
/** @internal */
|
|
@@ -1266,7 +1264,7 @@ class Qc {
|
|
|
1266
1264
|
}
|
|
1267
1265
|
_$setValue(t) {
|
|
1268
1266
|
if (t)
|
|
1269
|
-
if (t instanceof
|
|
1267
|
+
if (t instanceof Qr)
|
|
1270
1268
|
t.value = this.element;
|
|
1271
1269
|
else if (t._$litDirective$)
|
|
1272
1270
|
oe(this, t);
|
|
@@ -1278,42 +1276,42 @@ class Qc {
|
|
|
1278
1276
|
}
|
|
1279
1277
|
}
|
|
1280
1278
|
}
|
|
1281
|
-
const
|
|
1282
|
-
class
|
|
1279
|
+
const Wl = () => new Qr();
|
|
1280
|
+
class Qr {
|
|
1283
1281
|
constructor() {
|
|
1284
1282
|
v(this, "value");
|
|
1285
1283
|
}
|
|
1286
1284
|
}
|
|
1287
|
-
const
|
|
1285
|
+
const Xc = (s, t, e) => {
|
|
1288
1286
|
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1289
1287
|
let i = n._$litPart$;
|
|
1290
1288
|
if (i === void 0) {
|
|
1291
|
-
const
|
|
1289
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
1292
1290
|
n._$litPart$ = i = new rs(
|
|
1293
|
-
t.insertBefore(re(),
|
|
1294
|
-
|
|
1291
|
+
t.insertBefore(re(), r),
|
|
1292
|
+
r,
|
|
1295
1293
|
void 0,
|
|
1296
1294
|
e ?? {}
|
|
1297
1295
|
);
|
|
1298
1296
|
}
|
|
1299
1297
|
return i._$setValue(s), i;
|
|
1300
|
-
},
|
|
1298
|
+
}, th = "2.2.4", eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1301
1299
|
__proto__: null,
|
|
1302
|
-
version:
|
|
1300
|
+
version: th
|
|
1303
1301
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1304
1302
|
/**
|
|
1305
1303
|
* @license
|
|
1306
1304
|
* Copyright 2017 Google LLC
|
|
1307
1305
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1308
1306
|
*/
|
|
1309
|
-
const
|
|
1307
|
+
const sh = {
|
|
1310
1308
|
CHILD: 2
|
|
1311
|
-
},
|
|
1309
|
+
}, nh = (s) => (...t) => ({
|
|
1312
1310
|
// This property needs to remain unminified.
|
|
1313
1311
|
_$litDirective$: s,
|
|
1314
1312
|
values: t
|
|
1315
1313
|
});
|
|
1316
|
-
class
|
|
1314
|
+
class ih {
|
|
1317
1315
|
constructor() {
|
|
1318
1316
|
//@internal
|
|
1319
1317
|
v(this, "__part");
|
|
@@ -1344,7 +1342,7 @@ class eh {
|
|
|
1344
1342
|
}
|
|
1345
1343
|
}
|
|
1346
1344
|
const sr = () => document.createComment(""), we = (s, t, e) => {
|
|
1347
|
-
var
|
|
1345
|
+
var r;
|
|
1348
1346
|
const n = s._$startNode.parentNode, i = t === void 0 ? s._$endNode : t._$startNode;
|
|
1349
1347
|
if (e === void 0) {
|
|
1350
1348
|
const a = n.insertBefore(sr(), i), c = n.insertBefore(sr(), i);
|
|
@@ -1352,7 +1350,7 @@ const sr = () => document.createComment(""), we = (s, t, e) => {
|
|
|
1352
1350
|
} else {
|
|
1353
1351
|
const a = e._$endNode.nextSibling, c = e._$parent, l = c !== s;
|
|
1354
1352
|
if (l) {
|
|
1355
|
-
(
|
|
1353
|
+
(r = e._$reparentDisconnectables) == null || r.call(e, s), e._$parent = s;
|
|
1356
1354
|
let d;
|
|
1357
1355
|
e._$notifyConnectionChanged !== void 0 && (d = s._$isConnected) !== c._$isConnected && e._$notifyConnectionChanged(d);
|
|
1358
1356
|
}
|
|
@@ -1365,7 +1363,7 @@ const sr = () => document.createComment(""), we = (s, t, e) => {
|
|
|
1365
1363
|
}
|
|
1366
1364
|
}
|
|
1367
1365
|
return e;
|
|
1368
|
-
}, Pt = (s, t, e = s) => (s._$setValue(t, e), s),
|
|
1366
|
+
}, Pt = (s, t, e = s) => (s._$setValue(t, e), s), rh = {}, oh = (s, t = rh) => s._$committedValue = t, ah = (s) => s._$committedValue, Zs = (s) => {
|
|
1369
1367
|
var n;
|
|
1370
1368
|
(n = s._$notifyConnectionChanged) == null || n.call(s, !1, !0);
|
|
1371
1369
|
let t = s._$startNode;
|
|
@@ -1380,20 +1378,20 @@ const sr = () => document.createComment(""), we = (s, t, e) => {
|
|
|
1380
1378
|
n.set(s[i], i);
|
|
1381
1379
|
return n;
|
|
1382
1380
|
};
|
|
1383
|
-
class
|
|
1381
|
+
class ch extends ih {
|
|
1384
1382
|
constructor(e) {
|
|
1385
1383
|
super();
|
|
1386
1384
|
v(this, "_itemKeys");
|
|
1387
|
-
if (e.type !==
|
|
1385
|
+
if (e.type !== sh.CHILD)
|
|
1388
1386
|
throw new Error("repeat() can only be used in text expressions");
|
|
1389
1387
|
}
|
|
1390
1388
|
_getValuesAndKeys(e, n, i) {
|
|
1391
|
-
let
|
|
1392
|
-
i === void 0 ? i = n : n !== void 0 && (
|
|
1389
|
+
let r;
|
|
1390
|
+
i === void 0 ? i = n : n !== void 0 && (r = n);
|
|
1393
1391
|
const a = [], c = [];
|
|
1394
1392
|
let l = 0;
|
|
1395
1393
|
for (const d of e)
|
|
1396
|
-
a[l] =
|
|
1394
|
+
a[l] = r ? r(d, l) : l, c[l] = i(d, l), l++;
|
|
1397
1395
|
return {
|
|
1398
1396
|
values: c,
|
|
1399
1397
|
keys: a
|
|
@@ -1402,12 +1400,12 @@ class rh extends eh {
|
|
|
1402
1400
|
render(e, n, i) {
|
|
1403
1401
|
return this._getValuesAndKeys(e, n, i).values;
|
|
1404
1402
|
}
|
|
1405
|
-
update(e, [n, i,
|
|
1406
|
-
const a =
|
|
1403
|
+
update(e, [n, i, r]) {
|
|
1404
|
+
const a = ah(e), { values: c, keys: l } = this._getValuesAndKeys(n, i, r);
|
|
1407
1405
|
if (!Array.isArray(a))
|
|
1408
1406
|
return this._itemKeys = l, c;
|
|
1409
1407
|
const d = this._itemKeys ?? (this._itemKeys = []), f = [];
|
|
1410
|
-
let
|
|
1408
|
+
let o, m, h = 0, g = a.length - 1, $ = 0, w = c.length - 1;
|
|
1411
1409
|
for (; h <= g && $ <= w; )
|
|
1412
1410
|
if (a[h] === null)
|
|
1413
1411
|
h++;
|
|
@@ -1421,9 +1419,9 @@ class rh extends eh {
|
|
|
1421
1419
|
f[w] = Pt(a[h], c[w]), we(e, f[w + 1], a[h]), h++, w--;
|
|
1422
1420
|
else if (d[g] === l[$])
|
|
1423
1421
|
f[$] = Pt(a[g], c[$]), we(e, a[h], a[g]), g--, $++;
|
|
1424
|
-
else if (
|
|
1422
|
+
else if (o === void 0 && (o = nr(l, $, w), m = nr(d, h, g)), !o.has(d[h]))
|
|
1425
1423
|
Zs(a[h]), h++;
|
|
1426
|
-
else if (!
|
|
1424
|
+
else if (!o.has(d[g]))
|
|
1427
1425
|
Zs(a[g]), g--;
|
|
1428
1426
|
else {
|
|
1429
1427
|
const k = m.get(l[$]), p = k !== void 0 ? a[k] : null;
|
|
@@ -1442,26 +1440,26 @@ class rh extends eh {
|
|
|
1442
1440
|
const k = a[h++];
|
|
1443
1441
|
k !== null && Zs(k);
|
|
1444
1442
|
}
|
|
1445
|
-
return this._itemKeys = l,
|
|
1443
|
+
return this._itemKeys = l, oh(e, f), Qn;
|
|
1446
1444
|
}
|
|
1447
1445
|
}
|
|
1448
|
-
const
|
|
1449
|
-
Ar(
|
|
1446
|
+
const zl = nh(ch);
|
|
1447
|
+
Ar(Fc, Xc);
|
|
1450
1448
|
globalThis.__GEM_DEVTOOLS__HOOK__ && !globalThis.__GEM_DEVTOOLS__HOOK__.GemElement && Object.assign(globalThis.__GEM_DEVTOOLS__HOOK__, {
|
|
1451
|
-
...
|
|
1452
|
-
...
|
|
1453
|
-
...
|
|
1454
|
-
...
|
|
1449
|
+
...gc,
|
|
1450
|
+
...Oc,
|
|
1451
|
+
...hc,
|
|
1452
|
+
...eh
|
|
1455
1453
|
});
|
|
1456
|
-
const J = globalThis.history,
|
|
1457
|
-
let
|
|
1458
|
-
const Yn = () => `${performance.now()}-${++
|
|
1454
|
+
const J = globalThis.history, Jr = J.pushState.bind(J), Yr = J.replaceState.bind(J);
|
|
1455
|
+
let hh = 0;
|
|
1456
|
+
const Yn = () => `${performance.now()}-${++hh}`, O = zt({
|
|
1459
1457
|
$hasCloseHandle: !1,
|
|
1460
1458
|
$hasOpenHandle: !1,
|
|
1461
1459
|
$hasShouldCloseHandle: !1,
|
|
1462
1460
|
$key: ""
|
|
1463
1461
|
}), q = /* @__PURE__ */ new Map();
|
|
1464
|
-
function
|
|
1462
|
+
function Zr(s) {
|
|
1465
1463
|
const { $key: t, $hasCloseHandle: e, $hasOpenHandle: n, $hasShouldCloseHandle: i } = s || {};
|
|
1466
1464
|
if (O.$key !== t) {
|
|
1467
1465
|
if (t) throw new wt("`$key` is not allowed");
|
|
@@ -1470,7 +1468,7 @@ function Yr(s) {
|
|
|
1470
1468
|
if (i) throw new wt("`$hasShouldCloseHandle` is not allowed");
|
|
1471
1469
|
}
|
|
1472
1470
|
}
|
|
1473
|
-
function
|
|
1471
|
+
function Xr(s) {
|
|
1474
1472
|
return Y.basePath ? Y.basePath + s : s;
|
|
1475
1473
|
}
|
|
1476
1474
|
function ws(s) {
|
|
@@ -1480,12 +1478,12 @@ function Zn() {
|
|
|
1480
1478
|
Y.dispatchEvent(new CustomEvent("beforechange"));
|
|
1481
1479
|
}
|
|
1482
1480
|
function Es(s) {
|
|
1483
|
-
const t = q.get(O.$key) || { path: ws(location.pathname), query: new qe() }, e = s.path ? xr(t.path, s.path) : ws(location.pathname), n = new qe(s.query ?? (s.path ? "" : location.search)), i = String(n) !== String(t.query),
|
|
1484
|
-
return { ...s, title: c, path: e, query:
|
|
1481
|
+
const t = q.get(O.$key) || { path: ws(location.pathname), query: new qe() }, e = s.path ? xr(t.path, s.path) : ws(location.pathname), n = new qe(s.query ?? (s.path ? "" : location.search)), i = String(n) !== String(t.query), r = i ? n : t.query, a = e !== t.path || i, c = s.title || (a ? "" : document.title), l = s.close || s.data || s.open || s.shouldClose, d = decodeURIComponent(s.hash ?? (!a && l ? location.hash : ""));
|
|
1482
|
+
return { ...s, title: c, path: e, query: r, hash: d };
|
|
1485
1483
|
}
|
|
1486
1484
|
function ir(s, t) {
|
|
1487
|
-
|
|
1488
|
-
const e = Es(s), { title: n, path: i, query:
|
|
1485
|
+
Zr(s.data);
|
|
1486
|
+
const e = Es(s), { title: n, path: i, query: r, hash: a, close: c, open: l, shouldClose: d, data: f } = e, o = {
|
|
1489
1487
|
$hasCloseHandle: !!c,
|
|
1490
1488
|
$hasOpenHandle: !!l,
|
|
1491
1489
|
$hasShouldCloseHandle: !!d,
|
|
@@ -1493,25 +1491,25 @@ function ir(s, t) {
|
|
|
1493
1491
|
$title: n,
|
|
1494
1492
|
...f
|
|
1495
1493
|
};
|
|
1496
|
-
q.set(
|
|
1497
|
-
const m =
|
|
1498
|
-
t(
|
|
1494
|
+
q.set(o.$key, e), Zn(), In(O), O(o);
|
|
1495
|
+
const m = Xr(i) + new qe(r) + a, h = decodeURIComponent(location.hash);
|
|
1496
|
+
t(o, n, m), h !== a && dispatchEvent(new CustomEvent("hashchange"));
|
|
1499
1497
|
}
|
|
1500
1498
|
function rr(s, t, e, n) {
|
|
1501
|
-
|
|
1499
|
+
Zr(s);
|
|
1502
1500
|
const i = {
|
|
1503
1501
|
$key: Yn(),
|
|
1504
1502
|
$title: t,
|
|
1505
1503
|
...s || {}
|
|
1506
|
-
}, { pathname:
|
|
1504
|
+
}, { pathname: r, search: a, hash: c } = new URL(e, location.origin + location.pathname), l = Es({ path: r, query: new qe(a), hash: c, title: t, data: s });
|
|
1507
1505
|
q.set(i.$key, l), Zn(), In(O), O(i);
|
|
1508
|
-
const d =
|
|
1506
|
+
const d = Xr(r) + l.query + c, f = location.hash;
|
|
1509
1507
|
n(i, t, d), f !== c && dispatchEvent(new CustomEvent("hashchange"));
|
|
1510
1508
|
}
|
|
1511
|
-
const hn =
|
|
1509
|
+
const hn = zt({
|
|
1512
1510
|
basePath: ""
|
|
1513
1511
|
});
|
|
1514
|
-
class
|
|
1512
|
+
class lh extends EventTarget {
|
|
1515
1513
|
get store() {
|
|
1516
1514
|
return O;
|
|
1517
1515
|
}
|
|
@@ -1531,10 +1529,10 @@ class ah extends EventTarget {
|
|
|
1531
1529
|
Object.assign(q.get(O.$key), t), O();
|
|
1532
1530
|
}
|
|
1533
1531
|
push(t) {
|
|
1534
|
-
ir(t,
|
|
1532
|
+
ir(t, Jr);
|
|
1535
1533
|
}
|
|
1536
1534
|
replace(t) {
|
|
1537
|
-
ir(t,
|
|
1535
|
+
ir(t, Yr);
|
|
1538
1536
|
}
|
|
1539
1537
|
pushIgnoreCloseHandle(t) {
|
|
1540
1538
|
var e, n;
|
|
@@ -1547,12 +1545,12 @@ class ah extends EventTarget {
|
|
|
1547
1545
|
J.back();
|
|
1548
1546
|
}
|
|
1549
1547
|
}
|
|
1550
|
-
const Y = new
|
|
1548
|
+
const Y = new lh(), qt = zt({ defaultTitle: document.title, url: "", title: "" }), dh = { history: Y, titleStore: qt, basePathStore: hn };
|
|
1551
1549
|
if (!globalThis._GEMHISTORY) {
|
|
1552
|
-
if (globalThis._GEMHISTORY =
|
|
1553
|
-
rr(t, e, n, Qr);
|
|
1554
|
-
}, J.replaceState = (t, e, n) => {
|
|
1550
|
+
if (globalThis._GEMHISTORY = dh, J.pushState = (t, e, n) => {
|
|
1555
1551
|
rr(t, e, n, Jr);
|
|
1552
|
+
}, J.replaceState = (t, e, n) => {
|
|
1553
|
+
rr(t, e, n, Yr);
|
|
1556
1554
|
}, addEventListener("hashchange", ({ isTrusted: t }) => {
|
|
1557
1555
|
t && Y.replace({ hash: location.hash });
|
|
1558
1556
|
}), J.state)
|
|
@@ -1571,16 +1569,16 @@ if (!globalThis._GEMHISTORY) {
|
|
|
1571
1569
|
const { protocol: t, pathname: e, search: n, hash: i } = location;
|
|
1572
1570
|
t.startsWith("http") && Y.replace({ path: e, query: n, hash: i });
|
|
1573
1571
|
}
|
|
1574
|
-
mt(
|
|
1572
|
+
mt(qt, () => {
|
|
1575
1573
|
const t = q.get(O.$key);
|
|
1576
|
-
t && (t.title =
|
|
1574
|
+
t && (t.title = qt.title);
|
|
1577
1575
|
}), mt(O, () => {
|
|
1578
1576
|
const { title: t } = Y.getParams();
|
|
1579
|
-
t !==
|
|
1577
|
+
t !== qt.title && qt({ title: t });
|
|
1580
1578
|
});
|
|
1581
1579
|
let s = !1;
|
|
1582
1580
|
addEventListener("popstate", (t) => {
|
|
1583
|
-
var
|
|
1581
|
+
var r, a;
|
|
1584
1582
|
const e = t.state;
|
|
1585
1583
|
if (!(e != null && e.$key))
|
|
1586
1584
|
return;
|
|
@@ -1594,14 +1592,14 @@ if (!globalThis._GEMHISTORY) {
|
|
|
1594
1592
|
path: ws(c),
|
|
1595
1593
|
query: new qe(l),
|
|
1596
1594
|
hash: decodeURIComponent(d),
|
|
1597
|
-
title:
|
|
1595
|
+
title: qt.title || e.$title,
|
|
1598
1596
|
// document.title 是导航前的
|
|
1599
1597
|
data: e
|
|
1600
1598
|
});
|
|
1601
1599
|
}
|
|
1602
1600
|
const n = O;
|
|
1603
1601
|
if (parseFloat(e.$key) > parseFloat(n.$key) && e.$hasOpenHandle)
|
|
1604
|
-
(a = (
|
|
1602
|
+
(a = (r = q.get(e.$key)) == null ? void 0 : r.open) == null || a.call(r);
|
|
1605
1603
|
else if (n.$hasCloseHandle) {
|
|
1606
1604
|
const c = q.get(n.$key), l = c == null ? void 0 : c.close, d = c == null ? void 0 : c.shouldClose;
|
|
1607
1605
|
if (d && !d()) {
|
|
@@ -1613,33 +1611,33 @@ if (!globalThis._GEMHISTORY) {
|
|
|
1613
1611
|
Zn(), In(O), O(e);
|
|
1614
1612
|
});
|
|
1615
1613
|
}
|
|
1616
|
-
const { history: x, titleStore:
|
|
1617
|
-
var
|
|
1614
|
+
const { history: x, titleStore: Ht, basePathStore: uh } = globalThis._GEMHISTORY;
|
|
1615
|
+
var _h = Object.create, Xn = Object.defineProperty, ph = Object.getOwnPropertyDescriptor, to = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ue = (s) => {
|
|
1618
1616
|
throw TypeError(s);
|
|
1619
|
-
},
|
|
1620
|
-
for (var i = 0,
|
|
1617
|
+
}, eo = (s, t, e) => t in s ? Xn(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, or = (s, t) => Xn(s, "name", { value: t, configurable: !0 }), fh = (s) => [, , , _h((s == null ? void 0 : s[to("metadata")]) ?? null)], so = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ke = (s) => s !== void 0 && typeof s != "function" ? ue("Function expected") : s, mh = (s, t, e, n, i) => ({ kind: so[s], name: t, metadata: n, addInitializer: (r) => e._ ? ue("Already initialized") : i.push(ke(r || null)) }), gh = (s, t) => eo(t, to("metadata"), s[3]), Mt = (s, t, e, n) => {
|
|
1618
|
+
for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
|
|
1621
1619
|
return n;
|
|
1622
|
-
}, Us = (s, t, e, n, i,
|
|
1623
|
-
var a, c, l, d, f,
|
|
1624
|
-
return nt(this,
|
|
1625
|
-
}, set [e](
|
|
1626
|
-
return Fe(this,
|
|
1620
|
+
}, Us = (s, t, e, n, i, r) => {
|
|
1621
|
+
var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = so[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && ph(o < 4 ? i : { get [e]() {
|
|
1622
|
+
return nt(this, r);
|
|
1623
|
+
}, set [e](_) {
|
|
1624
|
+
return Fe(this, r, _);
|
|
1627
1625
|
} }, e));
|
|
1628
|
-
|
|
1626
|
+
o ? h && o < 4 && or(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : or(i, e);
|
|
1629
1627
|
for (var b = n.length - 1; b >= 0; b--)
|
|
1630
|
-
d =
|
|
1631
|
-
return
|
|
1632
|
-
}, Ee = (s, t, e) =>
|
|
1628
|
+
d = mh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => vh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? nt : $h)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Fe(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? ke(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ue("Object expected") : (ke(a = c.get) && (p.get = a), ke(a = c.set) && (p.set = a), ke(a = c.init) && w.unshift(a));
|
|
1629
|
+
return o || gh(s, i), p && Xn(i, e, p), h ? o ^ 4 ? r : p : i;
|
|
1630
|
+
}, Ee = (s, t, e) => eo(s, typeof t != "symbol" ? t + "" : t, e), ti = (s, t, e) => t.has(s) || ue("Cannot " + e), vh = (s, t) => Object(t) !== t ? ue('Cannot use the "in" operator on this value') : s.has(t), nt = (s, t, e) => (ti(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Dt = (s, t, e) => t.has(s) ? ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Fe = (s, t, e, n) => (ti(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), $h = (s, t, e) => (ti(s, t, "access private method"), e), no, io, ro, ln, oo, Z, Pe, Me, Oe, dn, ds, ei;
|
|
1633
1631
|
const Xs = Symbol();
|
|
1634
|
-
|
|
1635
|
-
class je extends (ln = tt,
|
|
1632
|
+
oo = [Vs(x.store), Gs({ role: "dialog", ariaModal: "true" })];
|
|
1633
|
+
class je extends (ln = tt, ro = [B], io = [zs], no = [qn()], ln) {
|
|
1636
1634
|
constructor() {
|
|
1637
|
-
super(...arguments), Ee(this, "label", Mt(Z, 8, this)), Mt(Z, 11, this), Ee(this, "opened", Mt(Z, 12, this)), Mt(Z, 15, this),
|
|
1635
|
+
super(...arguments), Ee(this, "label", Mt(Z, 8, this)), Mt(Z, 11, this), Ee(this, "opened", Mt(Z, 12, this)), Mt(Z, 15, this), Dt(this, Pe), Dt(this, Me), Dt(this, Oe, []), Dt(this, dn, () => {
|
|
1638
1636
|
var t;
|
|
1639
1637
|
this.inert = !0, nt(this, Oe).forEach((e) => e.inert = !1), nt(this, Pe) ? nt(this, Pe).before(this) : nt(this, Me) && ((t = nt(this, Me)) == null || t.appendChild(this)), this.dispatchEvent(new CustomEvent("close")), this.opened = !1;
|
|
1640
|
-
}),
|
|
1638
|
+
}), Dt(this, ds, () => {
|
|
1641
1639
|
this.hidden = !1, this.inert = !1, Fe(this, Pe, this.nextSibling), Fe(this, Me, this.parentElement || this.getRootNode()), Fe(this, Oe, [...document.body.children].filter((t) => !t.inert)), nt(this, Oe).forEach((t) => t.inert = !0), document.body.append(this), this.dispatchEvent(new CustomEvent("open")), this.opened = !0;
|
|
1642
|
-
}),
|
|
1640
|
+
}), Dt(this, ei, Mt(Z, 16, this, () => this.inert = !0)), Mt(Z, 19, this), Ee(this, "open", () => {
|
|
1643
1641
|
if (!this.opened)
|
|
1644
1642
|
return nt(this, ds).call(this), x.push({
|
|
1645
1643
|
title: this.label,
|
|
@@ -1653,42 +1651,42 @@ class je extends (ln = tt, io = [B], no = [zs], so = [qn()], ln) {
|
|
|
1653
1651
|
return !0;
|
|
1654
1652
|
}
|
|
1655
1653
|
}
|
|
1656
|
-
Z =
|
|
1654
|
+
Z = fh(ln);
|
|
1657
1655
|
Pe = /* @__PURE__ */ new WeakMap();
|
|
1658
1656
|
Me = /* @__PURE__ */ new WeakMap();
|
|
1659
1657
|
Oe = /* @__PURE__ */ new WeakMap();
|
|
1660
1658
|
dn = /* @__PURE__ */ new WeakMap();
|
|
1661
1659
|
ds = /* @__PURE__ */ new WeakMap();
|
|
1662
1660
|
ei = /* @__PURE__ */ new WeakMap();
|
|
1663
|
-
Us(Z, 5, "label",
|
|
1664
|
-
Us(Z, 5, "opened",
|
|
1665
|
-
Us(Z, 21, "#init",
|
|
1666
|
-
je = Us(Z, 0, "GemDialogBaseElement",
|
|
1661
|
+
Us(Z, 5, "label", ro, je);
|
|
1662
|
+
Us(Z, 5, "opened", io, je);
|
|
1663
|
+
Us(Z, 21, "#init", no, ei);
|
|
1664
|
+
je = Us(Z, 0, "GemDialogBaseElement", oo, je);
|
|
1667
1665
|
Mt(Z, 1, je);
|
|
1668
|
-
var
|
|
1666
|
+
var Sh = Object.create, si = Object.defineProperty, yh = Object.getOwnPropertyDescriptor, ao = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), _e = (s) => {
|
|
1669
1667
|
throw TypeError(s);
|
|
1670
|
-
},
|
|
1671
|
-
for (var i = 0,
|
|
1668
|
+
}, co = (s, t, e) => t in s ? si(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, ar = (s, t) => si(s, "name", { value: t, configurable: !0 }), wh = (s) => [, , , Sh((s == null ? void 0 : s[ao("metadata")]) ?? null)], ho = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], xe = (s) => s !== void 0 && typeof s != "function" ? _e("Function expected") : s, Eh = (s, t, e, n, i) => ({ kind: ho[s], name: t, metadata: n, addInitializer: (r) => e._ ? _e("Already initialized") : i.push(xe(r || null)) }), Ch = (s, t) => co(t, ao("metadata"), s[3]), Ce = (s, t, e, n) => {
|
|
1669
|
+
for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
|
|
1672
1670
|
return n;
|
|
1673
|
-
}, tn = (s, t, e, n, i,
|
|
1674
|
-
var a, c, l, d, f,
|
|
1675
|
-
return cr(this,
|
|
1676
|
-
}, set [e](
|
|
1677
|
-
return lr(this,
|
|
1671
|
+
}, tn = (s, t, e, n, i, r) => {
|
|
1672
|
+
var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = ho[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && yh(o < 4 ? i : { get [e]() {
|
|
1673
|
+
return cr(this, r);
|
|
1674
|
+
}, set [e](_) {
|
|
1675
|
+
return lr(this, r, _);
|
|
1678
1676
|
} }, e));
|
|
1679
|
-
|
|
1677
|
+
o ? h && o < 4 && ar(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : ar(i, e);
|
|
1680
1678
|
for (var b = n.length - 1; b >= 0; b--)
|
|
1681
|
-
d =
|
|
1682
|
-
return
|
|
1683
|
-
}, as = (s, t, e) =>
|
|
1679
|
+
d = Eh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => bh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? cr : Th)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => lr(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? xe(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? _e("Object expected") : (xe(a = c.get) && (p.get = a), xe(a = c.set) && (p.set = a), xe(a = c.init) && w.unshift(a));
|
|
1680
|
+
return o || Ch(s, i), p && si(i, e, p), h ? o ^ 4 ? r : p : i;
|
|
1681
|
+
}, as = (s, t, e) => co(s, typeof t != "symbol" ? t + "" : t, e), ni = (s, t, e) => t.has(s) || _e("Cannot " + e), bh = (s, t) => Object(t) !== t ? _e('Cannot use the "in" operator on this value') : s.has(t), cr = (s, t, e) => (ni(s, t, "read from private field"), e ? e.call(s) : t.get(s)), hr = (s, t, e) => t.has(s) ? _e("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), lr = (s, t, e, n) => (ni(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Th = (s, t, e) => (ni(s, t, "access private method"), e);
|
|
1684
1682
|
const cs = Symbol("open mark");
|
|
1685
|
-
function
|
|
1686
|
-
var t, e, n, i,
|
|
1683
|
+
function Vl(s) {
|
|
1684
|
+
var t, e, n, i, r, a, c;
|
|
1687
1685
|
const l = Symbol();
|
|
1688
|
-
i = [
|
|
1689
|
-
let d = class
|
|
1686
|
+
i = [Vt(), Gs({ role: "alertdialog", ariaModal: "true" })];
|
|
1687
|
+
let d = class lo extends (n = tt, e = [Be()], t = [Be()], n) {
|
|
1690
1688
|
constructor() {
|
|
1691
|
-
super(...arguments), as(this, "label", ""), hr(this, a, Ce(
|
|
1689
|
+
super(...arguments), as(this, "label", ""), hr(this, a, Ce(r, 8, this, () => mt(x.store, this.update))), Ce(r, 11, this), hr(this, c, Ce(r, 12, this, () => mt(lo.store, this.update))), Ce(r, 15, this);
|
|
1692
1690
|
}
|
|
1693
1691
|
/**@final */
|
|
1694
1692
|
static get isOpen() {
|
|
@@ -1734,67 +1732,67 @@ function Hl(s) {
|
|
|
1734
1732
|
return !0;
|
|
1735
1733
|
}
|
|
1736
1734
|
};
|
|
1737
|
-
return
|
|
1735
|
+
return r = wh(n), a = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), tn(r, 21, "#connectHistory", e, a), tn(r, 21, "#connectStore", t, c), d = tn(r, 0, "ModalElement", i, d), as(d, "inertStore", []), as(d, "instance", null), as(d, "store", zt({
|
|
1738
1736
|
[cs]: !1,
|
|
1739
1737
|
...s
|
|
1740
|
-
})), Ce(
|
|
1738
|
+
})), Ce(r, 1, d), d;
|
|
1741
1739
|
}
|
|
1742
|
-
var
|
|
1740
|
+
var kh = Object.create, ii = Object.defineProperty, Ph = Object.getOwnPropertyDescriptor, uo = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), pe = (s) => {
|
|
1743
1741
|
throw TypeError(s);
|
|
1744
|
-
},
|
|
1745
|
-
for (var i = 0,
|
|
1742
|
+
}, _o = (s, t, e) => t in s ? ii(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, dr = (s, t) => ii(s, "name", { value: t, configurable: !0 }), po = (s) => [, , , kh((s == null ? void 0 : s[uo("metadata")]) ?? null)], fo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Le = (s) => s !== void 0 && typeof s != "function" ? pe("Function expected") : s, Mh = (s, t, e, n, i) => ({ kind: fo[s], name: t, metadata: n, addInitializer: (r) => e._ ? pe("Already initialized") : i.push(Le(r || null)) }), Oh = (s, t) => _o(t, uo("metadata"), s[3]), T = (s, t, e, n) => {
|
|
1743
|
+
for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
|
|
1746
1744
|
return n;
|
|
1747
|
-
}, W = (s, t, e, n, i,
|
|
1748
|
-
var a, c, l, d, f,
|
|
1749
|
-
return V(this,
|
|
1750
|
-
}, set [e](
|
|
1751
|
-
return Cs(this,
|
|
1745
|
+
}, W = (s, t, e, n, i, r) => {
|
|
1746
|
+
var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = fo[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && Ph(o < 4 ? i : { get [e]() {
|
|
1747
|
+
return V(this, r);
|
|
1748
|
+
}, set [e](_) {
|
|
1749
|
+
return Cs(this, r, _);
|
|
1752
1750
|
} }, e));
|
|
1753
|
-
|
|
1751
|
+
o ? h && o < 4 && dr(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : dr(i, e);
|
|
1754
1752
|
for (var b = n.length - 1; b >= 0; b--)
|
|
1755
|
-
d =
|
|
1756
|
-
return
|
|
1757
|
-
}, z = (s, t, e) =>
|
|
1758
|
-
const
|
|
1759
|
-
class
|
|
1753
|
+
d = Mh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => xh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? V : Lh)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Cs(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? Le(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? pe("Object expected") : (Le(a = c.get) && (p.get = a), Le(a = c.set) && (p.set = a), Le(a = c.init) && w.unshift(a));
|
|
1754
|
+
return o || Oh(s, i), p && ii(i, e, p), h ? o ^ 4 ? r : p : i;
|
|
1755
|
+
}, z = (s, t, e) => _o(s, typeof t != "symbol" ? t + "" : t, e), ri = (s, t, e) => t.has(s) || pe("Cannot " + e), xh = (s, t) => Object(t) !== t ? pe('Cannot use the "in" operator on this value') : s.has(t), V = (s, t, e) => (ri(s, t, "read from private field"), e ? e.call(s) : t.get(s)), et = (s, t, e) => t.has(s) ? pe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Cs = (s, t, e, n) => (ri(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Lh = (s, t, e) => (ri(s, t, "access private method"), e), mo, go, vo, $o, So, yo, wo, Eo, Co, bo, To, ko, Po, Mo, Oo, un, xo, S, Ot, Bt, Ae, us, _n, Ne, pn, oi, ai, fn, ci, hi, Lo, li, Ao;
|
|
1756
|
+
const No = "_";
|
|
1757
|
+
class Ah extends RegExp {
|
|
1760
1758
|
constructor(t) {
|
|
1761
1759
|
let e = 0;
|
|
1762
1760
|
super(
|
|
1763
|
-
`^${t.replace(/((:[^/$]+)|(\*))/g, (n, i) => i === "*" ? `(?<${
|
|
1761
|
+
`^${t.replace(/((:[^/$]+)|(\*))/g, (n, i) => i === "*" ? `(?<${No}${e++}>.*)` : `(?<${i.slice(1)}>[^/]+)`)}$`
|
|
1764
1762
|
);
|
|
1765
1763
|
}
|
|
1766
1764
|
}
|
|
1767
|
-
function
|
|
1765
|
+
function Ro(s, t) {
|
|
1768
1766
|
if (globalThis.URLPattern) {
|
|
1769
|
-
const
|
|
1767
|
+
const r = new URLPattern({ pathname: s }), a = r.exec({ pathname: t }) || r.exec({ pathname: `${t}/` });
|
|
1770
1768
|
return a ? a.pathname.groups : null;
|
|
1771
1769
|
}
|
|
1772
|
-
const e = new
|
|
1770
|
+
const e = new Ah(s), n = t.match(e) || `${t}/`.match(e);
|
|
1773
1771
|
if (!n) return null;
|
|
1774
1772
|
const i = {};
|
|
1775
|
-
return n.groups && Object.entries(n.groups).forEach(([
|
|
1776
|
-
i[
|
|
1773
|
+
return n.groups && Object.entries(n.groups).forEach(([r, a]) => {
|
|
1774
|
+
i[r.startsWith(No) ? r.slice(1) : r] = a;
|
|
1777
1775
|
}), i;
|
|
1778
1776
|
}
|
|
1779
1777
|
function di(s, t) {
|
|
1780
1778
|
let e = 0, n = s.pattern.replaceAll("*", () => `:${e++}`);
|
|
1781
1779
|
const i = t == null ? void 0 : t.params;
|
|
1782
|
-
return i && Object.keys(i).forEach((
|
|
1783
|
-
n = n.replace(new RegExp(`:${
|
|
1780
|
+
return i && Object.keys(i).forEach((r) => {
|
|
1781
|
+
n = n.replace(new RegExp(`:${r}`, "g"), i[r]);
|
|
1784
1782
|
}), n;
|
|
1785
1783
|
}
|
|
1786
|
-
function
|
|
1784
|
+
function Nh(s, t) {
|
|
1787
1785
|
return {
|
|
1788
1786
|
path: di(s, t),
|
|
1789
1787
|
...t
|
|
1790
1788
|
};
|
|
1791
1789
|
}
|
|
1792
1790
|
const en = ot``, ur = /* @__PURE__ */ new Map();
|
|
1793
|
-
|
|
1794
|
-
class H extends (un = tt,
|
|
1791
|
+
xo = [Fr({ penetrable: !0 })];
|
|
1792
|
+
class H extends (un = tt, Oo = [Ws], Mo = [D], Po = [D], ko = [D], To = [Te], bo = [Te], Co = [Te], Eo = [Te], wo = [D], yo = [D], So = [D], $o = [ft((t) => [t.scrollContainer])], vo = [ft((t) => [t.scrollContainer])], go = [ft((t) => {
|
|
1795
1793
|
var e;
|
|
1796
1794
|
return V(e = t, fn).call(e);
|
|
1797
|
-
})],
|
|
1795
|
+
})], mo = [de((t) => !t.inert)], un) {
|
|
1798
1796
|
constructor() {
|
|
1799
1797
|
super(...arguments), et(this, Ot), z(this, "transition", T(S, 8, this)), T(S, 11, this), z(this, "routes", T(S, 12, this)), T(S, 15, this), z(this, "locationStore", T(S, 16, this)), T(S, 19, this), z(this, "key", T(S, 20, this)), T(S, 23, this), z(this, "loading", T(S, 24, this)), T(S, 27, this), z(this, "beforeroutechange", T(S, 28, this)), T(S, 31, this), z(this, "routechange", T(S, 32, this)), T(S, 35, this), z(this, "error", T(S, 36, this)), T(S, 39, this), z(this, "scrollContainer", T(S, 40, this)), T(S, 43, this), z(this, "scrollIgnoreHash", T(S, 44, this)), T(S, 47, this), z(this, "trigger", T(S, 48, this, x)), T(S, 51, this), z(this, "currentRoute"), z(this, "currentParams", {}), et(this, Ae, zn({ content: en })), et(this, us, () => {
|
|
1800
1798
|
if (!this.locationStore) return;
|
|
@@ -1807,9 +1805,9 @@ class H extends (un = tt, Mo = [Ws], Po = [D], ko = [D], To = [D], bo = [Te], Co
|
|
|
1807
1805
|
data: i
|
|
1808
1806
|
});
|
|
1809
1807
|
}), et(this, _n, () => {
|
|
1810
|
-
if (!V(this, Ot,
|
|
1808
|
+
if (!V(this, Ot, Bt)) return;
|
|
1811
1809
|
const t = ur.get(x.currentKey);
|
|
1812
|
-
t ? V(this, Ot,
|
|
1810
|
+
t ? V(this, Ot, Bt).scroll(0, t) : (this.scrollIgnoreHash || !x.getParams().hash) && V(this, Ot, Bt).scroll(0, 0);
|
|
1813
1811
|
}), et(this, Ne), et(this, pn, (t, e, n) => {
|
|
1814
1812
|
this.beforeroutechange(t), Cs(this, Ne, void 0), this.currentRoute = t, this.currentParams = e;
|
|
1815
1813
|
const i = async () => {
|
|
@@ -1817,11 +1815,11 @@ class H extends (un = tt, Mo = [Ws], Po = [D], ko = [D], To = [D], bo = [Te], Co
|
|
|
1817
1815
|
};
|
|
1818
1816
|
this.transition && "startViewTransition" in document ? document.startViewTransition(() => i()) : i();
|
|
1819
1817
|
}), et(this, oi, T(S, 52, this, () => {
|
|
1820
|
-
if (V(this, Ot,
|
|
1818
|
+
if (V(this, Ot, Bt))
|
|
1821
1819
|
return Lr(
|
|
1822
1820
|
x,
|
|
1823
1821
|
"beforechange",
|
|
1824
|
-
() => ur.set(x.currentKey, V(this, Ot,
|
|
1822
|
+
() => ur.set(x.currentKey, V(this, Ot, Bt).scrollTop)
|
|
1825
1823
|
);
|
|
1826
1824
|
})), T(S, 55, this), et(this, ai, T(S, 56, this, () => this.trigger.store && mt(this.trigger.store, () => V(this, Ae).call(this)))), T(S, 59, this), et(this, fn, () => {
|
|
1827
1825
|
const { path: t, query: e, hash: n } = this.trigger.getParams();
|
|
@@ -1837,31 +1835,31 @@ class H extends (un = tt, Mo = [Ws], Po = [D], ko = [D], To = [D], bo = [Te], Co
|
|
|
1837
1835
|
if (t !== void 0)
|
|
1838
1836
|
return this.shadowRoot ? t === en ? ot`<slot></slot>` : t : t === en ? void 0 : ot`${t}`;
|
|
1839
1837
|
})), T(S, 67, this), z(this, "update", async () => {
|
|
1840
|
-
const { path: t, hash: e, query: n } = this.trigger.getParams(), { route: i, params:
|
|
1838
|
+
const { path: t, hash: e, query: n } = this.trigger.getParams(), { route: i, params: r = {} } = Qe.findRoute(this.routes, t), { redirect: a, content: c, getContent: l } = i || {};
|
|
1841
1839
|
if (a) {
|
|
1842
1840
|
this.trigger.replace({
|
|
1843
|
-
path: di({ pattern: a }, { params:
|
|
1841
|
+
path: di({ pattern: a }, { params: r }),
|
|
1844
1842
|
query: n,
|
|
1845
1843
|
hash: e
|
|
1846
1844
|
});
|
|
1847
1845
|
return;
|
|
1848
1846
|
}
|
|
1849
|
-
this.trigger === x && (location.href !==
|
|
1850
|
-
const d = c || (l == null ? void 0 : l(
|
|
1847
|
+
this.trigger === x && (location.href !== Ht.url || i != null && i.title) && Ht({ url: location.href, title: i == null ? void 0 : i.title });
|
|
1848
|
+
const d = c || (l == null ? void 0 : l(r, this.shadowRoot || this));
|
|
1851
1849
|
this.loading(i), Cs(this, Ne, d);
|
|
1852
1850
|
const f = () => V(this, Ne) === d;
|
|
1853
1851
|
try {
|
|
1854
|
-
const
|
|
1855
|
-
f() && V(this, pn).call(this, i,
|
|
1856
|
-
} catch (
|
|
1857
|
-
f() && this.error(
|
|
1852
|
+
const o = await d;
|
|
1853
|
+
f() && V(this, pn).call(this, i, r, o);
|
|
1854
|
+
} catch (o) {
|
|
1855
|
+
f() && this.error(o);
|
|
1858
1856
|
}
|
|
1859
1857
|
});
|
|
1860
1858
|
}
|
|
1861
1859
|
}
|
|
1862
|
-
S =
|
|
1860
|
+
S = po(un);
|
|
1863
1861
|
Ot = /* @__PURE__ */ new WeakSet();
|
|
1864
|
-
|
|
1862
|
+
Bt = function() {
|
|
1865
1863
|
return typeof this.scrollContainer == "function" ? this.scrollContainer() : this.scrollContainer;
|
|
1866
1864
|
};
|
|
1867
1865
|
Ae = /* @__PURE__ */ new WeakMap();
|
|
@@ -1874,25 +1872,25 @@ ai = /* @__PURE__ */ new WeakMap();
|
|
|
1874
1872
|
fn = /* @__PURE__ */ new WeakMap();
|
|
1875
1873
|
ci = /* @__PURE__ */ new WeakMap();
|
|
1876
1874
|
hi = /* @__PURE__ */ new WeakMap();
|
|
1877
|
-
W(S, 5, "transition",
|
|
1878
|
-
W(S, 5, "routes",
|
|
1879
|
-
W(S, 5, "locationStore",
|
|
1880
|
-
W(S, 5, "key",
|
|
1881
|
-
W(S, 5, "loading",
|
|
1882
|
-
W(S, 5, "beforeroutechange",
|
|
1883
|
-
W(S, 5, "routechange",
|
|
1884
|
-
W(S, 5, "error",
|
|
1885
|
-
W(S, 5, "scrollContainer",
|
|
1886
|
-
W(S, 5, "scrollIgnoreHash",
|
|
1887
|
-
W(S, 5, "trigger",
|
|
1888
|
-
W(S, 21, "#rememberScrollPosition",
|
|
1889
|
-
W(S, 21, "#connectTriggerStore",
|
|
1890
|
-
W(S, 21, "#updateContent",
|
|
1891
|
-
W(S, 21, "#content",
|
|
1892
|
-
H = W(S, 0, "GemLightRouteElement",
|
|
1875
|
+
W(S, 5, "transition", Oo, H);
|
|
1876
|
+
W(S, 5, "routes", Mo, H);
|
|
1877
|
+
W(S, 5, "locationStore", Po, H);
|
|
1878
|
+
W(S, 5, "key", ko, H);
|
|
1879
|
+
W(S, 5, "loading", To, H);
|
|
1880
|
+
W(S, 5, "beforeroutechange", bo, H);
|
|
1881
|
+
W(S, 5, "routechange", Co, H);
|
|
1882
|
+
W(S, 5, "error", Eo, H);
|
|
1883
|
+
W(S, 5, "scrollContainer", wo, H);
|
|
1884
|
+
W(S, 5, "scrollIgnoreHash", yo, H);
|
|
1885
|
+
W(S, 5, "trigger", So, H);
|
|
1886
|
+
W(S, 21, "#rememberScrollPosition", $o, oi);
|
|
1887
|
+
W(S, 21, "#connectTriggerStore", vo, ai);
|
|
1888
|
+
W(S, 21, "#updateContent", go, ci);
|
|
1889
|
+
W(S, 21, "#content", mo, hi);
|
|
1890
|
+
H = W(S, 0, "GemLightRouteElement", xo, H);
|
|
1893
1891
|
z(H, "createLocationStore", () => {
|
|
1894
1892
|
const { path: s, query: t, hash: e, data: n } = x.getParams();
|
|
1895
|
-
return
|
|
1893
|
+
return zt({ path: s, query: t, hash: e, data: n, params: {} });
|
|
1896
1894
|
});
|
|
1897
1895
|
z(H, "findRoute", (s = [], t) => {
|
|
1898
1896
|
let e = null, n;
|
|
@@ -1901,45 +1899,45 @@ z(H, "findRoute", (s = [], t) => {
|
|
|
1901
1899
|
if (i.pattern === "*")
|
|
1902
1900
|
e = i;
|
|
1903
1901
|
else {
|
|
1904
|
-
const
|
|
1905
|
-
if (
|
|
1906
|
-
return { route: i, params:
|
|
1902
|
+
const r = Ro(i.pattern, t);
|
|
1903
|
+
if (r)
|
|
1904
|
+
return { route: i, params: r };
|
|
1907
1905
|
}
|
|
1908
1906
|
return { route: e };
|
|
1909
1907
|
});
|
|
1910
1908
|
T(S, 1, H);
|
|
1911
|
-
const
|
|
1909
|
+
const Rh = le`
|
|
1912
1910
|
:host(:where(:not([hidden]))),
|
|
1913
1911
|
:not(:defined) {
|
|
1914
1912
|
display: contents;
|
|
1915
1913
|
}
|
|
1916
1914
|
`;
|
|
1917
|
-
|
|
1918
|
-
class Qe extends (
|
|
1915
|
+
Lo = [Vt(), is(Rh)];
|
|
1916
|
+
class Qe extends (Ao = H) {
|
|
1919
1917
|
}
|
|
1920
|
-
li =
|
|
1921
|
-
Qe = W(li, 0, "GemRouteElement",
|
|
1918
|
+
li = po(Ao);
|
|
1919
|
+
Qe = W(li, 0, "GemRouteElement", Lo, Qe);
|
|
1922
1920
|
T(li, 1, Qe);
|
|
1923
|
-
var
|
|
1921
|
+
var Ih = Object.create, ui = Object.defineProperty, Hh = Object.getOwnPropertyDescriptor, Io = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), fe = (s) => {
|
|
1924
1922
|
throw TypeError(s);
|
|
1925
|
-
},
|
|
1926
|
-
for (var i = 0,
|
|
1923
|
+
}, Ho = (s, t, e) => t in s ? ui(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, _r = (s, t) => ui(s, "name", { value: t, configurable: !0 }), Wo = (s) => [, , , Ih((s == null ? void 0 : s[Io("metadata")]) ?? null)], zo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Re = (s) => s !== void 0 && typeof s != "function" ? fe("Function expected") : s, Wh = (s, t, e, n, i) => ({ kind: zo[s], name: t, metadata: n, addInitializer: (r) => e._ ? fe("Already initialized") : i.push(Re(r || null)) }), zh = (s, t) => Ho(t, Io("metadata"), s[3]), C = (s, t, e, n) => {
|
|
1924
|
+
for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
|
|
1927
1925
|
return n;
|
|
1928
|
-
}, R = (s, t, e, n, i,
|
|
1929
|
-
var a, c, l, d, f,
|
|
1930
|
-
return ht(this,
|
|
1931
|
-
}, set [e](
|
|
1932
|
-
return pr(this,
|
|
1926
|
+
}, R = (s, t, e, n, i, r) => {
|
|
1927
|
+
var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = zo[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && Hh(o < 4 ? i : { get [e]() {
|
|
1928
|
+
return ht(this, r);
|
|
1929
|
+
}, set [e](_) {
|
|
1930
|
+
return pr(this, r, _);
|
|
1933
1931
|
} }, e));
|
|
1934
|
-
|
|
1932
|
+
o ? h && o < 4 && _r(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : _r(i, e);
|
|
1935
1933
|
for (var b = n.length - 1; b >= 0; b--)
|
|
1936
|
-
d =
|
|
1937
|
-
return
|
|
1938
|
-
}, U = (s, t, e) =>
|
|
1934
|
+
d = Wh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => Vh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? ht : Gh)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => pr(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? Re(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? fe("Object expected") : (Re(a = c.get) && (p.get = a), Re(a = c.set) && (p.set = a), Re(a = c.init) && w.unshift(a));
|
|
1935
|
+
return o || zh(s, i), p && ui(i, e, p), h ? o ^ 4 ? r : p : i;
|
|
1936
|
+
}, U = (s, t, e) => Ho(s, typeof t != "symbol" ? t + "" : t, e), _i = (s, t, e) => t.has(s) || fe("Cannot " + e), Vh = (s, t) => Object(t) !== t ? fe('Cannot use the "in" operator on this value') : s.has(t), ht = (s, t, e) => (_i(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Kt = (s, t, e) => t.has(s) ? fe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), pr = (s, t, e, n) => (_i(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Gh = (s, t, e) => (_i(s, t, "access private method"), e), Vo, Go, Do, Uo, Fo, qo, Bo, Ko, jo, Qo, Jo, Yo, Zo, Xo, mn, ta, y, vt, Ie, ea, pi, gn, fi, vn, mi, sa, na, ia, $n, ra, X, gi;
|
|
1939
1937
|
function fr(s) {
|
|
1940
1938
|
return !s.startsWith("/");
|
|
1941
1939
|
}
|
|
1942
|
-
const
|
|
1940
|
+
const Dh = le`
|
|
1943
1941
|
:host {
|
|
1944
1942
|
/* link default style */
|
|
1945
1943
|
cursor: pointer;
|
|
@@ -1954,10 +1952,10 @@ const zh = le`
|
|
|
1954
1952
|
color: unset;
|
|
1955
1953
|
}
|
|
1956
1954
|
`;
|
|
1957
|
-
|
|
1958
|
-
let N = class
|
|
1955
|
+
ta = [Vs(uh), is(Dh), Vt(), Gs({ focusable: !0 })];
|
|
1956
|
+
let N = class oa extends (mn = tt, Xo = [Dr], Zo = [B], Yo = [B], Jo = [B], Qo = [B], jo = [B], Ko = [B], Bo = [Ws], qo = [D], Fo = [D], Uo = [D], Do = [D], Go = [Be()], Vo = [de()], mn) {
|
|
1959
1957
|
constructor() {
|
|
1960
|
-
super(...arguments), C(y, 5, this),
|
|
1958
|
+
super(...arguments), C(y, 5, this), Kt(this, vt), U(this, "href", C(y, 12, this)), C(y, 15, this), U(this, "target", C(y, 16, this)), C(y, 19, this), U(this, "path", C(y, 20, this)), C(y, 23, this), U(this, "query", C(y, 24, this)), C(y, 27, this), U(this, "hash", C(y, 28, this)), C(y, 31, this), U(this, "hint", C(y, 32, this)), C(y, 35, this), U(this, "preload", C(y, 36, this)), C(y, 39, this), U(this, "route", C(y, 40, this)), C(y, 43, this), U(this, "options", C(y, 44, this)), C(y, 47, this), U(this, "routeOptions", C(y, 48, this)), C(y, 51, this), U(this, "prepare", C(y, 52, this)), C(y, 55, this), Kt(this, pi, async (t) => {
|
|
1961
1959
|
var a;
|
|
1962
1960
|
t.preventDefault();
|
|
1963
1961
|
const e = this._getLocationString();
|
|
@@ -1977,10 +1975,10 @@ let N = class ra extends (mn = tt, Zo = [Gr], Yo = [B], Jo = [B], Qo = [B], jo =
|
|
|
1977
1975
|
window.open(e);
|
|
1978
1976
|
return;
|
|
1979
1977
|
}
|
|
1980
|
-
const { path: n, query: i, hash:
|
|
1981
|
-
if (n + i +
|
|
1978
|
+
const { path: n, query: i, hash: r } = x.getParams();
|
|
1979
|
+
if (n + i + r !== e)
|
|
1982
1980
|
if (await ((a = this.prepare) == null ? void 0 : a.call(this)), this.route)
|
|
1983
|
-
x.pushIgnoreCloseHandle(
|
|
1981
|
+
x.pushIgnoreCloseHandle(Nh(this.route, ht(this, vt, Ie)));
|
|
1984
1982
|
else if (this.href) {
|
|
1985
1983
|
const c = new URL(e, location.origin);
|
|
1986
1984
|
x.pushIgnoreCloseHandle({
|
|
@@ -1994,15 +1992,15 @@ let N = class ra extends (mn = tt, Zo = [Gr], Yo = [B], Jo = [B], Qo = [B], jo =
|
|
|
1994
1992
|
query: this.query,
|
|
1995
1993
|
hash: this.hash
|
|
1996
1994
|
});
|
|
1997
|
-
}),
|
|
1995
|
+
}), Kt(this, gn, () => {
|
|
1998
1996
|
const t = this._getLocationString();
|
|
1999
1997
|
return fr(t) ? t : new URL(x.basePath + t, location.origin).toString();
|
|
2000
|
-
}),
|
|
1998
|
+
}), Kt(this, fi, () => {
|
|
2001
1999
|
var t, e, n;
|
|
2002
2000
|
(t = this.route) == null || t.content, (n = (e = this.route) == null ? void 0 : e.getContent) == null || n.call(e, {}, this.shadowRoot);
|
|
2003
|
-
}),
|
|
2004
|
-
const t = ht(this, vt,
|
|
2005
|
-
return ot`<a part=${
|
|
2001
|
+
}), Kt(this, mi, C(y, 56, this, () => {
|
|
2002
|
+
const t = ht(this, vt, ea) === "off" ? null : ht(this, gn).call(this);
|
|
2003
|
+
return ot`<a part=${oa.link} href=${t} tabindex="-1"><slot></slot></a>`;
|
|
2006
2004
|
})), C(y, 59, this);
|
|
2007
2005
|
}
|
|
2008
2006
|
/**
|
|
@@ -2014,17 +2012,17 @@ let N = class ra extends (mn = tt, Zo = [Gr], Yo = [B], Jo = [B], Qo = [B], jo =
|
|
|
2014
2012
|
const n = ((t = ht(this, vt, Ie)) == null ? void 0 : t.query) || "", i = ((e = ht(this, vt, Ie)) == null ? void 0 : e.hash) || "";
|
|
2015
2013
|
return di(this.route, ht(this, vt, Ie)) + n + i;
|
|
2016
2014
|
} else {
|
|
2017
|
-
const n = this.href || this.path + this.query + this.hash, { path: i, query:
|
|
2018
|
-
return n.startsWith("#") ? `${i}${
|
|
2015
|
+
const n = this.href || this.path + this.query + this.hash, { path: i, query: r } = x.getParams();
|
|
2016
|
+
return n.startsWith("#") ? `${i}${r}${n}` : n.startsWith("?") ? `${i}${n}` : n.startsWith(".") ? xr(i, n) : n;
|
|
2019
2017
|
}
|
|
2020
2018
|
}
|
|
2021
2019
|
};
|
|
2022
|
-
y =
|
|
2020
|
+
y = Wo(mn);
|
|
2023
2021
|
vt = /* @__PURE__ */ new WeakSet();
|
|
2024
2022
|
Ie = function() {
|
|
2025
2023
|
return this.routeOptions || this.options;
|
|
2026
2024
|
};
|
|
2027
|
-
|
|
2025
|
+
ea = function() {
|
|
2028
2026
|
return this.hint || "on";
|
|
2029
2027
|
};
|
|
2030
2028
|
pi = /* @__PURE__ */ new WeakMap();
|
|
@@ -2034,80 +2032,80 @@ vn = function() {
|
|
|
2034
2032
|
this.addEventListener("click", ht(this, pi)), this.addEventListener("pointerenter", ht(this, fi));
|
|
2035
2033
|
};
|
|
2036
2034
|
mi = /* @__PURE__ */ new WeakMap();
|
|
2037
|
-
vn = R(y, 17, "#init",
|
|
2038
|
-
R(y, 13, "link",
|
|
2039
|
-
R(y, 5, "href",
|
|
2040
|
-
R(y, 5, "target",
|
|
2041
|
-
R(y, 5, "path",
|
|
2042
|
-
R(y, 5, "query",
|
|
2043
|
-
R(y, 5, "hash",
|
|
2044
|
-
R(y, 5, "hint",
|
|
2045
|
-
R(y, 5, "preload",
|
|
2046
|
-
R(y, 5, "route",
|
|
2047
|
-
R(y, 5, "options",
|
|
2048
|
-
R(y, 5, "routeOptions",
|
|
2049
|
-
R(y, 5, "prepare",
|
|
2050
|
-
R(y, 21, "#content",
|
|
2051
|
-
N = R(y, 0, "GemLinkElement",
|
|
2035
|
+
vn = R(y, 17, "#init", Go, vt, vn);
|
|
2036
|
+
R(y, 13, "link", Xo, N);
|
|
2037
|
+
R(y, 5, "href", Zo, N);
|
|
2038
|
+
R(y, 5, "target", Yo, N);
|
|
2039
|
+
R(y, 5, "path", Jo, N);
|
|
2040
|
+
R(y, 5, "query", Qo, N);
|
|
2041
|
+
R(y, 5, "hash", jo, N);
|
|
2042
|
+
R(y, 5, "hint", Ko, N);
|
|
2043
|
+
R(y, 5, "preload", Bo, N);
|
|
2044
|
+
R(y, 5, "route", qo, N);
|
|
2045
|
+
R(y, 5, "options", Fo, N);
|
|
2046
|
+
R(y, 5, "routeOptions", Uo, N);
|
|
2047
|
+
R(y, 5, "prepare", Do, N);
|
|
2048
|
+
R(y, 21, "#content", Vo, mi);
|
|
2049
|
+
N = R(y, 0, "GemLinkElement", ta, N);
|
|
2052
2050
|
U(N, "link", C(y, 8, N)), C(y, 11, N);
|
|
2053
2051
|
C(y, 1, N);
|
|
2054
|
-
let
|
|
2055
|
-
|
|
2056
|
-
class ae extends ($n =
|
|
2052
|
+
let aa = N;
|
|
2053
|
+
ra = [Vs(x.store)];
|
|
2054
|
+
class ae extends ($n = aa, ia = [B], na = [zs], sa = [ft()], $n) {
|
|
2057
2055
|
constructor() {
|
|
2058
|
-
super(...arguments), U(this, "pattern", C(X, 8, this)), C(X, 11, this), U(this, "active", C(X, 12, this)), C(X, 15, this),
|
|
2059
|
-
const { path: t, query: e, hash: n } = x.getParams(), i = this.pattern &&
|
|
2056
|
+
super(...arguments), U(this, "pattern", C(X, 8, this)), C(X, 11, this), U(this, "active", C(X, 12, this)), C(X, 15, this), Kt(this, gi, C(X, 16, this, () => {
|
|
2057
|
+
const { path: t, query: e, hash: n } = x.getParams(), i = this.pattern && Ro(this.pattern, t);
|
|
2060
2058
|
this.active = !!i || t + e + n === this._getLocationString();
|
|
2061
2059
|
})), C(X, 19, this);
|
|
2062
2060
|
}
|
|
2063
2061
|
}
|
|
2064
|
-
X =
|
|
2062
|
+
X = Wo($n);
|
|
2065
2063
|
gi = /* @__PURE__ */ new WeakMap();
|
|
2066
|
-
R(X, 5, "pattern",
|
|
2067
|
-
R(X, 5, "active",
|
|
2068
|
-
R(X, 21, "#updateState",
|
|
2069
|
-
ae = R(X, 0, "GemActiveLinkElement",
|
|
2064
|
+
R(X, 5, "pattern", ia, ae);
|
|
2065
|
+
R(X, 5, "active", na, ae);
|
|
2066
|
+
R(X, 21, "#updateState", sa, gi);
|
|
2067
|
+
ae = R(X, 0, "GemActiveLinkElement", ra, ae);
|
|
2070
2068
|
C(X, 1, ae);
|
|
2071
|
-
customElements.define("gem-link",
|
|
2069
|
+
customElements.define("gem-link", aa);
|
|
2072
2070
|
customElements.define("gem-active-link", ae);
|
|
2073
|
-
var
|
|
2071
|
+
var Uh = Object.create, vi = Object.defineProperty, Fh = Object.getOwnPropertyDescriptor, ca = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), me = (s) => {
|
|
2074
2072
|
throw TypeError(s);
|
|
2075
|
-
},
|
|
2076
|
-
for (var i = 0,
|
|
2073
|
+
}, ha = (s, t, e) => t in s ? vi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, mr = (s, t) => vi(s, "name", { value: t, configurable: !0 }), qh = (s) => [, , , Uh((s == null ? void 0 : s[ca("metadata")]) ?? null)], la = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], He = (s) => s !== void 0 && typeof s != "function" ? me("Function expected") : s, Bh = (s, t, e, n, i) => ({ kind: la[s], name: t, metadata: n, addInitializer: (r) => e._ ? me("Already initialized") : i.push(He(r || null)) }), da = (s, t) => ha(t, ca("metadata"), s[3]), gt = (s, t, e, n) => {
|
|
2074
|
+
for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
|
|
2077
2075
|
return n;
|
|
2078
|
-
}, Fs = (s, t, e, n, i,
|
|
2079
|
-
var a, c, l, d, f,
|
|
2080
|
-
return $t(this,
|
|
2081
|
-
}, set [e](
|
|
2082
|
-
return Sn(this,
|
|
2076
|
+
}, Fs = (s, t, e, n, i, r) => {
|
|
2077
|
+
var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = la[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && Fh(o < 4 ? i : { get [e]() {
|
|
2078
|
+
return $t(this, r);
|
|
2079
|
+
}, set [e](_) {
|
|
2080
|
+
return Sn(this, r, _);
|
|
2083
2081
|
} }, e));
|
|
2084
|
-
|
|
2082
|
+
o ? h && o < 4 && mr(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : mr(i, e);
|
|
2085
2083
|
for (var b = n.length - 1; b >= 0; b--)
|
|
2086
|
-
d =
|
|
2087
|
-
return
|
|
2088
|
-
}, gr = (s, t, e) =>
|
|
2089
|
-
const
|
|
2084
|
+
d = Bh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => Kh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? $t : jh)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Sn(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? He(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? me("Object expected") : (He(a = c.get) && (p.get = a), He(a = c.set) && (p.set = a), He(a = c.init) && w.unshift(a));
|
|
2085
|
+
return o || da(s, i), p && vi(i, e, p), h ? o ^ 4 ? r : p : i;
|
|
2086
|
+
}, gr = (s, t, e) => ha(s, typeof t != "symbol" ? t + "" : t, e), $i = (s, t, e) => t.has(s) || me("Cannot " + e), Kh = (s, t) => Object(t) !== t ? me('Cannot use the "in" operator on this value') : s.has(t), $t = (s, t, e) => ($i(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Ut = (s, t, e) => t.has(s) ? me("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Sn = (s, t, e, n) => ($i(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), jh = (s, t, e) => ($i(s, t, "access private method"), e), ua, _a, pa, fa, yn, F, wn, ma, Si, _s, En, We, yi;
|
|
2087
|
+
const Qh = "gem-reflect-start", ga = "gem-reflect-end", vr = (s) => new Comment(s), Jh = (s) => {
|
|
2090
2088
|
const t = [];
|
|
2091
2089
|
let e = s;
|
|
2092
|
-
for (; e && (t.push(e), e.nodeValue !==
|
|
2090
|
+
for (; e && (t.push(e), e.nodeValue !== ga); )
|
|
2093
2091
|
e = e.nextSibling;
|
|
2094
2092
|
return t;
|
|
2095
2093
|
};
|
|
2096
|
-
class qs extends (yn = tt,
|
|
2094
|
+
class qs extends (yn = tt, fa = [B], pa = [D], _a = [qn()], ua = [ft((t) => [t.target])], yn) {
|
|
2097
2095
|
constructor() {
|
|
2098
|
-
super(...arguments),
|
|
2096
|
+
super(...arguments), Ut(this, wn), gr(this, "method", gt(F, 8, this)), gt(F, 11, this), gr(this, "target", gt(F, 12, this, document.head)), gt(F, 15, this), Ut(this, Si, gt(F, 16, this, () => {
|
|
2099
2097
|
this.hidden = !0;
|
|
2100
|
-
})), gt(F, 19, this),
|
|
2098
|
+
})), gt(F, 19, this), Ut(this, _s, vr(Qh)), Ut(this, En, vr(ga)), Ut(this, We), Ut(this, yi, gt(F, 20, this, () => (($t(this, We) || [$t(this, _s), ...this.childNodes, $t(this, En)]).forEach((t, e, n) => {
|
|
2101
2099
|
const i = n[e - 1];
|
|
2102
|
-
i ? i.after(t) : this.target[$t(this, wn,
|
|
2100
|
+
i ? i.after(t) : this.target[$t(this, wn, ma)](t);
|
|
2103
2101
|
}), () => {
|
|
2104
|
-
Sn(this, We,
|
|
2102
|
+
Sn(this, We, Jh($t(this, _s))), $t(this, We).forEach((t) => t.remove());
|
|
2105
2103
|
}))), gt(F, 23, this);
|
|
2106
2104
|
}
|
|
2107
2105
|
}
|
|
2108
|
-
F =
|
|
2106
|
+
F = qh(yn);
|
|
2109
2107
|
wn = /* @__PURE__ */ new WeakSet();
|
|
2110
|
-
|
|
2108
|
+
ma = function() {
|
|
2111
2109
|
return this.method || "append";
|
|
2112
2110
|
};
|
|
2113
2111
|
Si = /* @__PURE__ */ new WeakMap();
|
|
@@ -2115,95 +2113,95 @@ _s = /* @__PURE__ */ new WeakMap();
|
|
|
2115
2113
|
En = /* @__PURE__ */ new WeakMap();
|
|
2116
2114
|
We = /* @__PURE__ */ new WeakMap();
|
|
2117
2115
|
yi = /* @__PURE__ */ new WeakMap();
|
|
2118
|
-
Fs(F, 5, "method",
|
|
2119
|
-
Fs(F, 5, "target",
|
|
2120
|
-
Fs(F, 21, "#init",
|
|
2121
|
-
Fs(F, 21, "#changeTarget",
|
|
2122
|
-
|
|
2116
|
+
Fs(F, 5, "method", fa, qs);
|
|
2117
|
+
Fs(F, 5, "target", pa, qs);
|
|
2118
|
+
Fs(F, 21, "#init", _a, Si);
|
|
2119
|
+
Fs(F, 21, "#changeTarget", ua, yi);
|
|
2120
|
+
da(F, qs);
|
|
2123
2121
|
customElements.define("gem-reflect", qs);
|
|
2124
2122
|
customElements.define("gem-route", Qe);
|
|
2125
2123
|
customElements.define("gem-light-route", H);
|
|
2126
|
-
var
|
|
2124
|
+
var Yh = Object.create, wi = Object.defineProperty, Zh = Object.getOwnPropertyDescriptor, va = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ge = (s) => {
|
|
2127
2125
|
throw TypeError(s);
|
|
2128
|
-
},
|
|
2129
|
-
for (var i = 0,
|
|
2126
|
+
}, $a = (s, t, e) => t in s ? wi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, $r = (s, t) => wi(s, "name", { value: t, configurable: !0 }), Xh = (s) => [, , , Yh((s == null ? void 0 : s[va("metadata")]) ?? null)], Sa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ze = (s) => s !== void 0 && typeof s != "function" ? ge("Function expected") : s, tl = (s, t, e, n, i) => ({ kind: Sa[s], name: t, metadata: n, addInitializer: (r) => e._ ? ge("Already initialized") : i.push(ze(r || null)) }), el = (s, t) => $a(t, va("metadata"), s[3]), j = (s, t, e, n) => {
|
|
2127
|
+
for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
|
|
2130
2128
|
return n;
|
|
2131
|
-
},
|
|
2132
|
-
var a, c, l, d, f,
|
|
2133
|
-
return Cn(this,
|
|
2134
|
-
}, set [e](
|
|
2135
|
-
return Sr(this,
|
|
2129
|
+
}, Gt = (s, t, e, n, i, r) => {
|
|
2130
|
+
var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = Sa[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && Zh(o < 4 ? i : { get [e]() {
|
|
2131
|
+
return Cn(this, r);
|
|
2132
|
+
}, set [e](_) {
|
|
2133
|
+
return Sr(this, r, _);
|
|
2136
2134
|
} }, e));
|
|
2137
|
-
|
|
2135
|
+
o ? h && o < 4 && $r(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : $r(i, e);
|
|
2138
2136
|
for (var b = n.length - 1; b >= 0; b--)
|
|
2139
|
-
d =
|
|
2140
|
-
return
|
|
2141
|
-
}, ps = (s, t, e) =>
|
|
2137
|
+
d = tl(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => sl(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? Cn : nl)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Sr(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? ze(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ge("Object expected") : (ze(a = c.get) && (p.get = a), ze(a = c.set) && (p.set = a), ze(a = c.init) && w.unshift(a));
|
|
2138
|
+
return o || el(s, i), p && wi(i, e, p), h ? o ^ 4 ? r : p : i;
|
|
2139
|
+
}, ps = (s, t, e) => $a(s, typeof t != "symbol" ? t + "" : t, e), Ei = (s, t, e) => t.has(s) || ge("Cannot " + e), sl = (s, t) => Object(t) !== t ? ge('Cannot use the "in" operator on this value') : s.has(t), Cn = (s, t, e) => (Ei(s, t, "read from private field"), e ? e.call(s) : t.get(s)), hs = (s, t, e) => t.has(s) ? ge("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Sr = (s, t, e, n) => (Ei(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), nl = (s, t, e) => (Ei(s, t, "access private method"), e), ya, wa, Ea, Ca, ba, Ta, bn, ka, L, Ci, Tn, bi, Ti;
|
|
2142
2140
|
let yr = 0;
|
|
2143
2141
|
const wr = (s) => {
|
|
2144
2142
|
clearTimeout(yr), yr = setTimeout(() => document.title = s);
|
|
2145
2143
|
};
|
|
2146
|
-
function
|
|
2147
|
-
const n =
|
|
2148
|
-
n && n !==
|
|
2144
|
+
function il(s, t = "", e = "") {
|
|
2145
|
+
const n = Ht.title || s;
|
|
2146
|
+
n && n !== Ht.defaultTitle ? wr(t + (kn.title = n) + e) : wr(kn.title = Ht.defaultTitle);
|
|
2149
2147
|
}
|
|
2150
|
-
|
|
2151
|
-
let bt = class
|
|
2148
|
+
ka = [Vt()];
|
|
2149
|
+
let bt = class Pa extends (bn = tt, Ta = [B], ba = [B], Ca = [Ws], Ea = [ft((t) => [t.inert])], wa = [Be()], ya = [de()], bn) {
|
|
2152
2150
|
constructor() {
|
|
2153
|
-
super(...arguments), ps(this, "prefix", j(L, 8, this)), j(L, 11, this), ps(this, "suffix", j(L, 12, this)), j(L, 15, this), ps(this, "inert", j(L, 16, this)), j(L, 19, this), hs(this, Ci, j(L, 20, this, () => !this.inert && mt(
|
|
2151
|
+
super(...arguments), ps(this, "prefix", j(L, 8, this)), j(L, 11, this), ps(this, "suffix", j(L, 12, this)), j(L, 15, this), ps(this, "inert", j(L, 16, this)), j(L, 19, this), hs(this, Ci, j(L, 20, this, () => !this.inert && mt(Ht, this.update))), j(L, 23, this), hs(this, Tn, new MutationObserver(() => this.update())), hs(this, bi, j(L, 24, this, () => {
|
|
2154
2152
|
Cn(this, Tn).observe(this, { characterData: !0, childList: !0, subtree: !0 });
|
|
2155
2153
|
})), j(L, 27, this), hs(this, Ti, j(L, 28, this, () => {
|
|
2156
2154
|
var t;
|
|
2157
|
-
return
|
|
2155
|
+
return il((t = this.textContent) == null ? void 0 : t.trim(), this.prefix, this.suffix), ot`${Pa.title}`;
|
|
2158
2156
|
})), j(L, 31, this);
|
|
2159
2157
|
}
|
|
2160
2158
|
static setTitle(t) {
|
|
2161
|
-
|
|
2159
|
+
Ht({ title: t });
|
|
2162
2160
|
}
|
|
2163
2161
|
};
|
|
2164
|
-
L =
|
|
2162
|
+
L = Xh(bn);
|
|
2165
2163
|
Ci = /* @__PURE__ */ new WeakMap();
|
|
2166
2164
|
Tn = /* @__PURE__ */ new WeakMap();
|
|
2167
2165
|
bi = /* @__PURE__ */ new WeakMap();
|
|
2168
2166
|
Ti = /* @__PURE__ */ new WeakMap();
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
bt =
|
|
2167
|
+
Gt(L, 5, "prefix", Ta, bt);
|
|
2168
|
+
Gt(L, 5, "suffix", ba, bt);
|
|
2169
|
+
Gt(L, 5, "inert", Ca, bt);
|
|
2170
|
+
Gt(L, 21, "#connectStore", Ea, Ci);
|
|
2171
|
+
Gt(L, 21, "#obTextContent", wa, bi);
|
|
2172
|
+
Gt(L, 21, "#content", ya, Ti);
|
|
2173
|
+
bt = Gt(L, 0, "GemTitleElement", ka, bt);
|
|
2176
2174
|
ps(bt, "title", document.title);
|
|
2177
2175
|
j(L, 1, bt);
|
|
2178
2176
|
let kn = bt;
|
|
2179
2177
|
customElements.define("gem-title", kn);
|
|
2180
|
-
var
|
|
2178
|
+
var rl = Object.create, ki = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, Ma = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ve = (s) => {
|
|
2181
2179
|
throw TypeError(s);
|
|
2182
|
-
},
|
|
2183
|
-
for (var i = 0,
|
|
2180
|
+
}, Oa = (s, t, e) => t in s ? ki(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, Er = (s, t) => ki(s, "name", { value: t, configurable: !0 }), al = (s) => [, , , rl((s == null ? void 0 : s[Ma("metadata")]) ?? null)], xa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ve = (s) => s !== void 0 && typeof s != "function" ? ve("Function expected") : s, cl = (s, t, e, n, i) => ({ kind: xa[s], name: t, metadata: n, addInitializer: (r) => e._ ? ve("Already initialized") : i.push(Ve(r || null)) }), hl = (s, t) => Oa(t, Ma("metadata"), s[3]), lt = (s, t, e, n) => {
|
|
2181
|
+
for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
|
|
2184
2182
|
return n;
|
|
2185
|
-
}, os = (s, t, e, n, i,
|
|
2186
|
-
var a, c, l, d, f,
|
|
2187
|
-
return Pn(this,
|
|
2188
|
-
}, set [e](
|
|
2189
|
-
return br(this,
|
|
2183
|
+
}, os = (s, t, e, n, i, r) => {
|
|
2184
|
+
var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = xa[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && ol(o < 4 ? i : { get [e]() {
|
|
2185
|
+
return Pn(this, r);
|
|
2186
|
+
}, set [e](_) {
|
|
2187
|
+
return br(this, r, _);
|
|
2190
2188
|
} }, e));
|
|
2191
|
-
|
|
2189
|
+
o ? h && o < 4 && Er(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : Er(i, e);
|
|
2192
2190
|
for (var b = n.length - 1; b >= 0; b--)
|
|
2193
|
-
d =
|
|
2194
|
-
return
|
|
2195
|
-
}, Cr = (s, t, e) =>
|
|
2196
|
-
const
|
|
2191
|
+
d = cl(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => ll(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? Pn : dl)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => br(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? Ve(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ve("Object expected") : (Ve(a = c.get) && (p.get = a), Ve(a = c.set) && (p.set = a), Ve(a = c.init) && w.unshift(a));
|
|
2192
|
+
return o || hl(s, i), p && ki(i, e, p), h ? o ^ 4 ? r : p : i;
|
|
2193
|
+
}, Cr = (s, t, e) => Oa(s, typeof t != "symbol" ? t + "" : t, e), Pi = (s, t, e) => t.has(s) || ve("Cannot " + e), ll = (s, t) => Object(t) !== t ? ve('Cannot use the "in" operator on this value') : s.has(t), Pn = (s, t, e) => (Pi(s, t, "read from private field"), e ? e.call(s) : t.get(s)), sn = (s, t, e) => t.has(s) ? ve("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), br = (s, t, e, n) => (Pi(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), dl = (s, t, e) => (Pi(s, t, "access private method"), e), La, Aa, Na, Ra, Mn, Ia, G, On, Ha, Mi, Oi;
|
|
2194
|
+
const ul = le`
|
|
2197
2195
|
:host(:where(:not([hidden]))) {
|
|
2198
2196
|
display: contents;
|
|
2199
2197
|
}
|
|
2200
2198
|
`;
|
|
2201
|
-
|
|
2202
|
-
class ce extends (Mn = tt,
|
|
2199
|
+
Ia = [Vt(), is(ul)];
|
|
2200
|
+
class ce extends (Mn = tt, Ra = [B], Na = [D], Aa = [ft()], La = [de()], Mn) {
|
|
2203
2201
|
constructor() {
|
|
2204
2202
|
super(...arguments), sn(this, On), Cr(this, "html", lt(G, 8, this)), lt(G, 11, this), Cr(this, "styles", lt(G, 12, this)), lt(G, 15, this), sn(this, Mi, lt(G, 16, this, () => {
|
|
2205
2203
|
const t = this.shadowRoot.adoptedStyleSheets;
|
|
2206
|
-
return this.shadowRoot.adoptedStyleSheets = t.concat(Pn(this, On,
|
|
2204
|
+
return this.shadowRoot.adoptedStyleSheets = t.concat(Pn(this, On, Ha)), () => {
|
|
2207
2205
|
this.shadowRoot.adoptedStyleSheets = t;
|
|
2208
2206
|
};
|
|
2209
2207
|
})), lt(G, 19, this), sn(this, Oi, lt(G, 20, this, () => {
|
|
@@ -2211,9 +2209,9 @@ class ce extends (Mn = tt, Na = [B], Aa = [D], La = [ft()], xa = [de()], Mn) {
|
|
|
2211
2209
|
})), lt(G, 23, this);
|
|
2212
2210
|
}
|
|
2213
2211
|
}
|
|
2214
|
-
G =
|
|
2212
|
+
G = al(Mn);
|
|
2215
2213
|
On = /* @__PURE__ */ new WeakSet();
|
|
2216
|
-
|
|
2214
|
+
Ha = function() {
|
|
2217
2215
|
if (!this.styles) return [];
|
|
2218
2216
|
if (typeof this.styles == "string") {
|
|
2219
2217
|
const s = new CSSStyleSheet();
|
|
@@ -2223,30 +2221,30 @@ Ia = function() {
|
|
|
2223
2221
|
};
|
|
2224
2222
|
Mi = /* @__PURE__ */ new WeakMap();
|
|
2225
2223
|
Oi = /* @__PURE__ */ new WeakMap();
|
|
2226
|
-
os(G, 5, "html",
|
|
2227
|
-
os(G, 5, "styles",
|
|
2228
|
-
os(G, 21, "#adoptStyles",
|
|
2229
|
-
os(G, 21, "#content",
|
|
2230
|
-
ce = os(G, 0, "GemUnsafeElement",
|
|
2224
|
+
os(G, 5, "html", Ra, ce);
|
|
2225
|
+
os(G, 5, "styles", Na, ce);
|
|
2226
|
+
os(G, 21, "#adoptStyles", Aa, Mi);
|
|
2227
|
+
os(G, 21, "#content", La, Oi);
|
|
2228
|
+
ce = os(G, 0, "GemUnsafeElement", Ia, ce);
|
|
2231
2229
|
lt(G, 1, ce);
|
|
2232
2230
|
customElements.define("gem-unsafe", ce);
|
|
2233
|
-
var
|
|
2231
|
+
var _l = Object.create, xi = Object.defineProperty, pl = Object.getOwnPropertyDescriptor, Wa = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), $e = (s) => {
|
|
2234
2232
|
throw TypeError(s);
|
|
2235
|
-
},
|
|
2236
|
-
for (var i = 0,
|
|
2233
|
+
}, za = (s, t, e) => t in s ? xi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, Tr = (s, t) => xi(s, "name", { value: t, configurable: !0 }), fl = (s) => [, , , _l((s == null ? void 0 : s[Wa("metadata")]) ?? null)], Va = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ge = (s) => s !== void 0 && typeof s != "function" ? $e("Function expected") : s, ml = (s, t, e, n, i) => ({ kind: Va[s], name: t, metadata: n, addInitializer: (r) => e._ ? $e("Already initialized") : i.push(Ge(r || null)) }), gl = (s, t) => za(t, Wa("metadata"), s[3]), st = (s, t, e, n) => {
|
|
2234
|
+
for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
|
|
2237
2235
|
return n;
|
|
2238
|
-
}, Se = (s, t, e, n, i,
|
|
2239
|
-
var a, c, l, d, f,
|
|
2240
|
-
return xn(this,
|
|
2241
|
-
}, set [e](
|
|
2242
|
-
return Pr(this,
|
|
2236
|
+
}, Se = (s, t, e, n, i, r) => {
|
|
2237
|
+
var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = Va[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && pl(o < 4 ? i : { get [e]() {
|
|
2238
|
+
return xn(this, r);
|
|
2239
|
+
}, set [e](_) {
|
|
2240
|
+
return Pr(this, r, _);
|
|
2243
2241
|
} }, e));
|
|
2244
|
-
|
|
2242
|
+
o ? h && o < 4 && Tr(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : Tr(i, e);
|
|
2245
2243
|
for (var b = n.length - 1; b >= 0; b--)
|
|
2246
|
-
d =
|
|
2247
|
-
return
|
|
2248
|
-
}, ls = (s, t, e) =>
|
|
2249
|
-
const
|
|
2244
|
+
d = ml(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => vl(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? xn : $l)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Pr(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? Ge(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? $e("Object expected") : (Ge(a = c.get) && (p.get = a), Ge(a = c.set) && (p.set = a), Ge(a = c.init) && w.unshift(a));
|
|
2245
|
+
return o || gl(s, i), p && xi(i, e, p), h ? o ^ 4 ? r : p : i;
|
|
2246
|
+
}, ls = (s, t, e) => za(s, typeof t != "symbol" ? t + "" : t, e), Li = (s, t, e) => t.has(s) || $e("Cannot " + e), vl = (s, t) => Object(t) !== t ? $e('Cannot use the "in" operator on this value') : s.has(t), xn = (s, t, e) => (Li(s, t, "read from private field"), e ? e.call(s) : t.get(s)), kr = (s, t, e) => t.has(s) ? $e("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Pr = (s, t, e, n) => (Li(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), $l = (s, t, e) => (Li(s, t, "access private method"), e), Ga, Da, Ua, Fa, qa, Ln, Ba, I, An, Ai;
|
|
2247
|
+
const Sl = le`
|
|
2250
2248
|
:host(:where(:not([hidden]))) {
|
|
2251
2249
|
position: relative;
|
|
2252
2250
|
display: inline-flex;
|
|
@@ -2257,8 +2255,8 @@ const gl = le`
|
|
|
2257
2255
|
height: 100%;
|
|
2258
2256
|
}
|
|
2259
2257
|
`, Mr = /* @__PURE__ */ new Map();
|
|
2260
|
-
|
|
2261
|
-
class Tt extends (Ln = tt,
|
|
2258
|
+
Ba = [Vt(), is(Sl)];
|
|
2259
|
+
class Tt extends (Ln = tt, qa = [B], Fa = [D], Ua = [D], Da = [zs], Ga = [de()], Ln) {
|
|
2262
2260
|
constructor() {
|
|
2263
2261
|
super(...arguments), ls(this, "selector", st(I, 8, this)), st(I, 11, this), ls(this, "root", st(I, 12, this)), st(I, 15, this), ls(this, "element", st(I, 16, this)), st(I, 19, this), ls(this, "active", st(I, 20, this)), st(I, 23, this), kr(this, An, () => {
|
|
2264
2262
|
const t = this.element || (this.selector ? (this.root || document).querySelector(this.selector) : null);
|
|
@@ -2269,49 +2267,49 @@ class Tt extends (Ln = tt, Fa = [B], Ua = [D], Da = [D], Ga = [zs], Va = [de()],
|
|
|
2269
2267
|
}), kr(this, Ai, st(I, 24, this, () => ot`${xn(this, An).call(this)}<slot></slot>`)), st(I, 27, this);
|
|
2270
2268
|
}
|
|
2271
2269
|
}
|
|
2272
|
-
I =
|
|
2270
|
+
I = fl(Ln);
|
|
2273
2271
|
An = /* @__PURE__ */ new WeakMap();
|
|
2274
2272
|
Ai = /* @__PURE__ */ new WeakMap();
|
|
2275
|
-
Se(I, 5, "selector",
|
|
2276
|
-
Se(I, 5, "root",
|
|
2277
|
-
Se(I, 5, "element",
|
|
2278
|
-
Se(I, 5, "active",
|
|
2279
|
-
Se(I, 21, "#content",
|
|
2280
|
-
Tt = Se(I, 0, "GemUseElement",
|
|
2273
|
+
Se(I, 5, "selector", qa, Tt);
|
|
2274
|
+
Se(I, 5, "root", Fa, Tt);
|
|
2275
|
+
Se(I, 5, "element", Ua, Tt);
|
|
2276
|
+
Se(I, 5, "active", Da, Tt);
|
|
2277
|
+
Se(I, 21, "#content", Ga, Ai);
|
|
2278
|
+
Tt = Se(I, 0, "GemUseElement", Ba, Tt);
|
|
2281
2279
|
st(I, 1, Tt);
|
|
2282
2280
|
customElements.define("gem-use", Tt);
|
|
2283
2281
|
var es, ie, fs;
|
|
2284
|
-
class
|
|
2282
|
+
class yl {
|
|
2285
2283
|
constructor(t) {
|
|
2286
2284
|
E(this, ie);
|
|
2287
2285
|
E(this, es);
|
|
2288
2286
|
v(this, "info", (...t) => {
|
|
2289
|
-
console.log(
|
|
2287
|
+
console.log(u(this, ie, fs), ...t);
|
|
2290
2288
|
});
|
|
2291
2289
|
v(this, "warn", (...t) => {
|
|
2292
|
-
console.warn(
|
|
2290
|
+
console.warn(u(this, ie, fs), ...t);
|
|
2293
2291
|
});
|
|
2294
2292
|
v(this, "error", (...t) => {
|
|
2295
|
-
console.error(
|
|
2293
|
+
console.error(u(this, ie, fs), ...t);
|
|
2296
2294
|
});
|
|
2297
2295
|
M(this, es, t);
|
|
2298
2296
|
}
|
|
2299
2297
|
}
|
|
2300
2298
|
es = new WeakMap(), ie = new WeakSet(), fs = function() {
|
|
2301
|
-
return `[${
|
|
2299
|
+
return `[${u(this, es)}]`;
|
|
2302
2300
|
};
|
|
2303
|
-
const
|
|
2304
|
-
function
|
|
2305
|
-
const e = s.split(
|
|
2301
|
+
const wl = new yl("GEM"), El = /\$\d(?:<[^>]*>)?/, Cl = /\$(\d)(<([^>]*)>)?/g, bl = 3;
|
|
2302
|
+
function Tl(s, ...t) {
|
|
2303
|
+
const e = s.split(El), n = [];
|
|
2306
2304
|
let i;
|
|
2307
|
-
for (; i =
|
|
2308
|
-
const
|
|
2309
|
-
n.push(typeof c == "function" ? c(
|
|
2305
|
+
for (; i = Cl.exec(s); ) {
|
|
2306
|
+
const r = i[bl], a = Number(i[1]) - 1, c = t[a];
|
|
2307
|
+
n.push(typeof c == "function" ? c(r) : c);
|
|
2310
2308
|
}
|
|
2311
2309
|
return ot(e, ...n);
|
|
2312
2310
|
}
|
|
2313
2311
|
const be = /* @__PURE__ */ new Set();
|
|
2314
|
-
var A, ms,
|
|
2312
|
+
var A, ms, Ka, ja, De, gs, ss;
|
|
2315
2313
|
const Ni = class Ni {
|
|
2316
2314
|
constructor(t) {
|
|
2317
2315
|
E(this, A);
|
|
@@ -2330,7 +2328,7 @@ const Ni = class Ni {
|
|
|
2330
2328
|
if (!t.resources[t.fallbackLanguage])
|
|
2331
2329
|
throw new wt("i18n: fallbackLanguage invalid");
|
|
2332
2330
|
Object.assign(this, t);
|
|
2333
|
-
let e =
|
|
2331
|
+
let e = u(this, A, Ka) || this.currentLanguage || u(this, A, ja);
|
|
2334
2332
|
const n = document.querySelector(`[type*=${this.cachePrefix}]`);
|
|
2335
2333
|
if (n)
|
|
2336
2334
|
try {
|
|
@@ -2341,30 +2339,30 @@ const Ni = class Ni {
|
|
|
2341
2339
|
e ? (M(this, A, e, gs), this.setLanguage(e)) : this.resetLanguage(), M(this, ss, !1);
|
|
2342
2340
|
}
|
|
2343
2341
|
get(t, ...e) {
|
|
2344
|
-
const n = this.resources[this.currentLanguage], i = this.resources[this.fallbackLanguage],
|
|
2345
|
-
return e.length ?
|
|
2342
|
+
const n = this.resources[this.currentLanguage], i = this.resources[this.fallbackLanguage], r = n[t] || i[t], a = (r == null ? void 0 : r.message) || r || `[${t}]`;
|
|
2343
|
+
return e.length ? Tl(a, ...e) : a;
|
|
2346
2344
|
}
|
|
2347
2345
|
detectLanguage() {
|
|
2348
2346
|
const t = Object.keys(this.resources), e = navigator.languages.map((n) => n.replace(/-(.*)/, (i) => i.toUpperCase()));
|
|
2349
2347
|
for (const n of e) {
|
|
2350
|
-
const i = t.find((
|
|
2348
|
+
const i = t.find((r) => r === n || n.startsWith(`${r}-`));
|
|
2351
2349
|
if (i) return i;
|
|
2352
2350
|
}
|
|
2353
2351
|
return this.fallbackLanguage;
|
|
2354
2352
|
}
|
|
2355
2353
|
async setLanguage(t) {
|
|
2356
|
-
var i,
|
|
2357
|
-
|
|
2354
|
+
var i, r;
|
|
2355
|
+
u(this, A, De) && be.forEach(async (a) => await a.setLanguage(t));
|
|
2358
2356
|
let e;
|
|
2359
2357
|
const n = this.resources[t];
|
|
2360
2358
|
if (!n)
|
|
2361
|
-
return
|
|
2359
|
+
return wl.warn(`${this.cachePrefix}: not found \`${t}\``), this.resetLanguage();
|
|
2362
2360
|
if (typeof n == "string") {
|
|
2363
2361
|
const a = `${this.cachePrefix}:`, c = `${a}${n}`, l = localStorage.getItem(c), d = async () => {
|
|
2364
2362
|
const f = await (await fetch(n)).json();
|
|
2365
2363
|
if (this.cache) {
|
|
2366
|
-
for (let
|
|
2367
|
-
const m = localStorage.key(
|
|
2364
|
+
for (let o = 0; o < localStorage.length; o++) {
|
|
2365
|
+
const m = localStorage.key(o);
|
|
2368
2366
|
m.startsWith(a) && localStorage.removeItem(m);
|
|
2369
2367
|
}
|
|
2370
2368
|
localStorage.setItem(c, JSON.stringify(f));
|
|
@@ -2381,21 +2379,21 @@ const Ni = class Ni {
|
|
|
2381
2379
|
e = await d();
|
|
2382
2380
|
} else
|
|
2383
2381
|
e = n;
|
|
2384
|
-
if (this.resources[t] = e, !
|
|
2382
|
+
if (this.resources[t] = e, !u(this, ss)) {
|
|
2385
2383
|
const a = [document.documentElement];
|
|
2386
2384
|
for (; a.length; ) {
|
|
2387
2385
|
const c = a.pop();
|
|
2388
|
-
(i = c[As]) == null || i.call(c), a.push(...[...c.children, ...((
|
|
2386
|
+
(i = c[As]) == null || i.call(c), a.push(...[...c.children, ...((r = c.shadowRoot) == null ? void 0 : r.children) || []].reverse());
|
|
2389
2387
|
}
|
|
2390
2388
|
}
|
|
2391
2389
|
return t !== this.currentLanguage && M(this, A, t, gs), this.cache === !0 && this.setCache(), t;
|
|
2392
2390
|
}
|
|
2393
2391
|
resetLanguage() {
|
|
2394
|
-
return
|
|
2392
|
+
return u(this, A, De) && be.forEach((t) => t.resetLanguage()), M(this, A, this.fallbackLanguage, gs), this.cache && localStorage.removeItem(u(this, A, ms)), this.setLanguage(this.detectLanguage());
|
|
2395
2393
|
}
|
|
2396
2394
|
// 一般用在 `onChange` 中
|
|
2397
2395
|
setCache() {
|
|
2398
|
-
|
|
2396
|
+
u(this, A, De) && be.forEach((t) => t.setCache()), localStorage.setItem(u(this, A, ms), this.currentLanguage);
|
|
2399
2397
|
}
|
|
2400
2398
|
createSubModule(t, e) {
|
|
2401
2399
|
const n = new Ni({
|
|
@@ -2425,7 +2423,7 @@ const Ni = class Ni {
|
|
|
2425
2423
|
};
|
|
2426
2424
|
A = new WeakSet(), ms = function() {
|
|
2427
2425
|
return `${this.cachePrefix}:current`;
|
|
2428
|
-
},
|
|
2426
|
+
}, Ka = function() {
|
|
2429
2427
|
const { hostname: t, pathname: e, search: n } = location, i = t.split(".");
|
|
2430
2428
|
switch (this.urlParamsType) {
|
|
2431
2429
|
case "ccTLD":
|
|
@@ -2435,20 +2433,20 @@ A = new WeakSet(), ms = function() {
|
|
|
2435
2433
|
case "path":
|
|
2436
2434
|
return e.split("/")[1];
|
|
2437
2435
|
default: {
|
|
2438
|
-
const
|
|
2439
|
-
return
|
|
2436
|
+
const r = this.urlParamsName && new URLSearchParams(n).get(this.urlParamsName) || "";
|
|
2437
|
+
return r in this.resources ? r : "";
|
|
2440
2438
|
}
|
|
2441
2439
|
}
|
|
2442
|
-
},
|
|
2443
|
-
return this.cache && localStorage.getItem(
|
|
2440
|
+
}, ja = function() {
|
|
2441
|
+
return this.cache && localStorage.getItem(u(this, A, ms)) || "";
|
|
2444
2442
|
}, De = function() {
|
|
2445
2443
|
return !be.has(this);
|
|
2446
2444
|
}, gs = function(t) {
|
|
2447
2445
|
var e;
|
|
2448
|
-
|
|
2446
|
+
u(this, A, De) && (document.documentElement.lang = t), this.currentLanguage = t, (e = this.onChange) == null || e.call(this, t);
|
|
2449
2447
|
}, ss = new WeakMap();
|
|
2450
2448
|
let Or = Ni;
|
|
2451
|
-
const K = (s) => matchMedia(s).matches,
|
|
2449
|
+
const K = (s) => matchMedia(s).matches, Gl = {
|
|
2452
2450
|
PRINT: "print",
|
|
2453
2451
|
get isPrint() {
|
|
2454
2452
|
return K(this.PRINT);
|
|
@@ -2508,27 +2506,27 @@ const K = (s) => matchMedia(s).matches, Wl = {
|
|
|
2508
2506
|
get isWidthScreen() {
|
|
2509
2507
|
return K(this.WIDTHSCREEN);
|
|
2510
2508
|
}
|
|
2511
|
-
},
|
|
2512
|
-
function
|
|
2509
|
+
}, kl = Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array())).constructor;
|
|
2510
|
+
function Pl(s = {}) {
|
|
2513
2511
|
const {
|
|
2514
2512
|
origin: t = location.origin,
|
|
2515
2513
|
base: e = "",
|
|
2516
2514
|
appendHeaders: n = () => ({}),
|
|
2517
|
-
transformInput: i = (
|
|
2518
|
-
transformOutput:
|
|
2515
|
+
transformInput: i = (o) => o,
|
|
2516
|
+
transformOutput: r = (o) => o,
|
|
2519
2517
|
...a
|
|
2520
|
-
} = s, c = (
|
|
2521
|
-
if (new URL(
|
|
2518
|
+
} = s, c = (o) => o instanceof FormData || o instanceof Blob || o instanceof kl || o instanceof URLSearchParams || o instanceof ReadableStream || o instanceof ArrayBuffer ? o : typeof o == "object" ? JSON.stringify(o) : o, l = (o, m) => {
|
|
2519
|
+
if (new URL(o, location.origin).pathname !== o)
|
|
2522
2520
|
throw new wt("`path` format is incorrect");
|
|
2523
2521
|
const h = new URLSearchParams(m).toString();
|
|
2524
|
-
return `${t}${e}${
|
|
2525
|
-
}, d = (
|
|
2526
|
-
if (!
|
|
2527
|
-
if (
|
|
2528
|
-
const m = Array.isArray(
|
|
2522
|
+
return `${t}${e}${o}${h ? "?" : ""}${h}`;
|
|
2523
|
+
}, d = (o) => {
|
|
2524
|
+
if (!o) return {};
|
|
2525
|
+
if (o instanceof Headers) return Object.fromEntries(o);
|
|
2526
|
+
const m = Array.isArray(o) ? o : Object.entries(o);
|
|
2529
2527
|
return Object.fromEntries(m.map(([h, g]) => [h.toLowerCase(), g]));
|
|
2530
|
-
}, f = async (
|
|
2531
|
-
const h = new Request(
|
|
2528
|
+
}, f = async (o, m = {}) => {
|
|
2529
|
+
const h = new Request(o, {
|
|
2532
2530
|
...a,
|
|
2533
2531
|
...m,
|
|
2534
2532
|
headers: new Headers({
|
|
@@ -2543,89 +2541,89 @@ function bl(s = {}) {
|
|
|
2543
2541
|
try {
|
|
2544
2542
|
let k;
|
|
2545
2543
|
if ($.includes("json") ? k = await g.json() : $.includes("octet-stream") ? k = await g.arrayBuffer() : k = await g.text(), w) throw new Error(g.statusText, { cause: k });
|
|
2546
|
-
return
|
|
2544
|
+
return await r(k, h);
|
|
2547
2545
|
} catch {
|
|
2548
2546
|
throw new Error("Parse error");
|
|
2549
2547
|
}
|
|
2550
2548
|
};
|
|
2551
2549
|
return {
|
|
2552
2550
|
request: f,
|
|
2553
|
-
get(
|
|
2554
|
-
const h = i(m);
|
|
2555
|
-
return f(l(
|
|
2551
|
+
async get(o, m) {
|
|
2552
|
+
const h = await i(m);
|
|
2553
|
+
return f(l(o, h), {
|
|
2556
2554
|
method: "GET",
|
|
2557
|
-
headers: n(h)
|
|
2555
|
+
headers: await n(h)
|
|
2558
2556
|
});
|
|
2559
2557
|
},
|
|
2560
|
-
del(
|
|
2561
|
-
const h = i(m);
|
|
2562
|
-
return f(l(
|
|
2558
|
+
async del(o, m) {
|
|
2559
|
+
const h = await i(m);
|
|
2560
|
+
return f(l(o, h), {
|
|
2563
2561
|
method: "DELETE",
|
|
2564
|
-
headers: n(h)
|
|
2562
|
+
headers: await n(h)
|
|
2565
2563
|
});
|
|
2566
2564
|
},
|
|
2567
|
-
put(
|
|
2568
|
-
const h = i(m);
|
|
2569
|
-
return f(l(
|
|
2565
|
+
async put(o, m) {
|
|
2566
|
+
const h = await i(m);
|
|
2567
|
+
return f(l(o), {
|
|
2570
2568
|
method: "PUT",
|
|
2571
|
-
headers: n(h),
|
|
2569
|
+
headers: await n(h),
|
|
2572
2570
|
body: c(h)
|
|
2573
2571
|
});
|
|
2574
2572
|
},
|
|
2575
|
-
post(
|
|
2576
|
-
const h = i(m);
|
|
2577
|
-
return f(l(
|
|
2573
|
+
async post(o, m) {
|
|
2574
|
+
const h = await i(m);
|
|
2575
|
+
return f(l(o), {
|
|
2578
2576
|
method: "POST",
|
|
2579
|
-
headers: n(h),
|
|
2577
|
+
headers: await n(h),
|
|
2580
2578
|
body: c(h)
|
|
2581
2579
|
});
|
|
2582
2580
|
}
|
|
2583
2581
|
};
|
|
2584
2582
|
}
|
|
2585
|
-
const { request:
|
|
2586
|
-
function
|
|
2587
|
-
return ja.get(s);
|
|
2588
|
-
}
|
|
2589
|
-
function Ja(s) {
|
|
2583
|
+
const { request: Dl, del: Ul, get: Fl, post: ql, put: Bl } = Pl(), Qa = /* @__PURE__ */ new WeakMap(), Ja = /* @__PURE__ */ new WeakMap();
|
|
2584
|
+
function Kl(s) {
|
|
2590
2585
|
return Qa.get(s);
|
|
2591
2586
|
}
|
|
2587
|
+
function Ya(s) {
|
|
2588
|
+
return Ja.get(s);
|
|
2589
|
+
}
|
|
2592
2590
|
function bs(s, t = {}) {
|
|
2593
|
-
const e = Rn(), n = le({})[Et], i =
|
|
2591
|
+
const e = Rn(), n = le({})[Et], i = zt(s), r = new Proxy(
|
|
2594
2592
|
xs({ [Et]: n }, (c) => i(c)),
|
|
2595
2593
|
{
|
|
2596
2594
|
get(c, l) {
|
|
2597
2595
|
if (!c[l]) {
|
|
2598
|
-
const [d, f,
|
|
2599
|
-
f && (c[l] = `oklch(from ${c[f]} calc(l - ${(Number(
|
|
2596
|
+
const [d, f, o] = l.match(/^(\w*Color)(\d+)$/) || [];
|
|
2597
|
+
f && (c[l] = `oklch(from ${c[f]} calc(l - ${(Number(o) - 400) / 1e3}) c h)`);
|
|
2600
2598
|
}
|
|
2601
2599
|
return c[l];
|
|
2602
2600
|
}
|
|
2603
2601
|
}
|
|
2604
2602
|
);
|
|
2605
|
-
|
|
2603
|
+
Ja.set(r, t), Qa.set(r, i);
|
|
2606
2604
|
const a = () => {
|
|
2607
2605
|
let c = "";
|
|
2608
2606
|
Object.keys(i).forEach((l) => {
|
|
2609
|
-
t[l] || (t[l] = `--${he(l)}-${e}`,
|
|
2607
|
+
t[l] || (t[l] = `--${he(l)}-${e}`, r[l] = `var(${t[l]})`), c += `${t[l]}:${i[l]};`;
|
|
2610
2608
|
}), n.setContent(`&,:host{${c}}`);
|
|
2611
2609
|
};
|
|
2612
2610
|
return a(), mt(i, () => {
|
|
2613
2611
|
a(), n.updateStyle();
|
|
2614
|
-
}),
|
|
2612
|
+
}), r;
|
|
2615
2613
|
}
|
|
2616
|
-
function
|
|
2614
|
+
function Ml(s) {
|
|
2617
2615
|
return bs(s);
|
|
2618
2616
|
}
|
|
2619
|
-
function
|
|
2620
|
-
const t =
|
|
2617
|
+
function jl(s) {
|
|
2618
|
+
const t = Ml(s);
|
|
2621
2619
|
return document.adoptedStyleSheets.push(t[Et].getStyle()), t;
|
|
2622
2620
|
}
|
|
2623
|
-
function
|
|
2624
|
-
return bs(t,
|
|
2621
|
+
function Ql(s, t) {
|
|
2622
|
+
return bs(t, Ya(s));
|
|
2625
2623
|
}
|
|
2626
|
-
function
|
|
2627
|
-
const t = bs(s), e =
|
|
2628
|
-
return xs(t, (i) => (
|
|
2624
|
+
function Jl(s) {
|
|
2625
|
+
const t = bs(s), e = Ya(t);
|
|
2626
|
+
return xs(t, (i) => (r, { addInitializer: a, access: c }) => {
|
|
2629
2627
|
a(function() {
|
|
2630
2628
|
const l = bs({ ...s }, e);
|
|
2631
2629
|
this.internals.sheets.push(l[Et].getStyle(this, !0)), this.memo(() => l(c.get(this).apply(this)), i && (() => i(this)));
|
|
@@ -2638,19 +2636,19 @@ export {
|
|
|
2638
2636
|
tt as GemElement,
|
|
2639
2637
|
wt as GemError,
|
|
2640
2638
|
H as GemLightRouteElement,
|
|
2641
|
-
|
|
2639
|
+
aa as GemLinkElement,
|
|
2642
2640
|
qs as GemReflectElement,
|
|
2643
2641
|
Qe as GemRouteElement,
|
|
2644
2642
|
kn as GemTitleElement,
|
|
2645
2643
|
ce as GemUnsafeElement,
|
|
2646
2644
|
Tt as GemUseElement,
|
|
2647
2645
|
Or as I18n,
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2646
|
+
rc as LinkedList,
|
|
2647
|
+
yl as Logger,
|
|
2648
|
+
oc as PropProxyMap,
|
|
2651
2649
|
qe as QueryString,
|
|
2652
2650
|
Et as SheetToken,
|
|
2653
|
-
|
|
2651
|
+
jr as TemplateResult,
|
|
2654
2652
|
As as UpdateToken,
|
|
2655
2653
|
Wn as _RenderErrorEvent,
|
|
2656
2654
|
vs as _StoreListenerMap,
|
|
@@ -2660,73 +2658,74 @@ export {
|
|
|
2660
2658
|
St as addMicrotask,
|
|
2661
2659
|
is as adoptedStyle,
|
|
2662
2660
|
Gs as aria,
|
|
2663
|
-
|
|
2661
|
+
Pc as async,
|
|
2664
2662
|
B as attribute,
|
|
2665
|
-
|
|
2663
|
+
uh as basePathStore,
|
|
2666
2664
|
Ws as boolattribute,
|
|
2667
2665
|
he as camelToKebabCase,
|
|
2668
|
-
|
|
2666
|
+
cc as classMap,
|
|
2669
2667
|
In as cleanObject,
|
|
2670
2668
|
mt as connect,
|
|
2671
2669
|
Vs as connectStore,
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2670
|
+
Jl as createDecoratorTheme,
|
|
2671
|
+
Nh as createHistoryParams,
|
|
2672
|
+
Vl as createModalClass,
|
|
2673
|
+
Ql as createOverrideTheme,
|
|
2676
2674
|
di as createPath,
|
|
2677
|
-
|
|
2678
|
-
|
|
2675
|
+
Wl as createRef,
|
|
2676
|
+
Ml as createScopedTheme,
|
|
2679
2677
|
zn as createState,
|
|
2680
|
-
|
|
2681
|
-
|
|
2678
|
+
zt as createStore,
|
|
2679
|
+
jl as createTheme,
|
|
2682
2680
|
xs as createUpdater,
|
|
2683
2681
|
le as css,
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2682
|
+
Mc as customElement,
|
|
2683
|
+
Ul as del,
|
|
2684
|
+
nh as directive,
|
|
2687
2685
|
ft as effect,
|
|
2688
2686
|
Te as emitter,
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2687
|
+
Rl as exportPartsMap,
|
|
2688
|
+
Cc as fallback,
|
|
2689
|
+
Fl as get,
|
|
2690
|
+
Ya as getThemeProps,
|
|
2691
|
+
Kl as getThemeStore,
|
|
2692
|
+
kc as globalemitter,
|
|
2695
2693
|
x as history,
|
|
2696
2694
|
ot as html,
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2695
|
+
Pl as initRequest,
|
|
2696
|
+
ac as isArrayChange,
|
|
2697
|
+
Ll as kebabToCamelCase,
|
|
2698
|
+
Fr as light,
|
|
2699
|
+
wl as logger,
|
|
2700
|
+
Ro as matchPath,
|
|
2701
|
+
Hl as mathml,
|
|
2702
|
+
Gl as mediaQuery,
|
|
2703
|
+
Vr as memo,
|
|
2706
2704
|
Be as mounted,
|
|
2707
|
-
|
|
2705
|
+
wc as numattribute,
|
|
2708
2706
|
Hn as objectMapToString,
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2707
|
+
Dr as part,
|
|
2708
|
+
Nl as partMap,
|
|
2709
|
+
ql as post,
|
|
2712
2710
|
D as property,
|
|
2713
|
-
|
|
2711
|
+
Bl as put,
|
|
2714
2712
|
Rn as randomStr,
|
|
2715
2713
|
Nn as raw,
|
|
2716
2714
|
Ls as render,
|
|
2717
|
-
|
|
2718
|
-
|
|
2715
|
+
zl as repeat,
|
|
2716
|
+
Dl as request,
|
|
2719
2717
|
Ar as setEngine,
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2718
|
+
lc as setHydrationEngine,
|
|
2719
|
+
Vt as shadow,
|
|
2720
|
+
Tc as slot,
|
|
2721
|
+
Tl as splice,
|
|
2723
2722
|
zs as state,
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2723
|
+
Al as styleMap,
|
|
2724
|
+
xl as styled,
|
|
2725
|
+
Il as svg,
|
|
2727
2726
|
de as template,
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2727
|
+
Ht as titleStore,
|
|
2728
|
+
Ec as unmounted,
|
|
2729
|
+
th as version,
|
|
2731
2730
|
qn as willMount
|
|
2732
2731
|
};
|