@wsxjs/wsx-router 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +241 -241
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { autoRegister as we, LightComponent as oe, jsx as ae, WebComponent as Re } from "@wsxjs/wsx-core";
|
|
2
|
-
function
|
|
2
|
+
function Qe(t) {
|
|
3
3
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
4
4
|
}
|
|
5
5
|
var ue = { exports: {} };
|
|
@@ -18,55 +18,55 @@ function Ze(t, e, n) {
|
|
|
18
18
|
if (l === 1) return t;
|
|
19
19
|
var m = new Array(l);
|
|
20
20
|
m[0] = r(t);
|
|
21
|
-
for (var
|
|
22
|
-
m[
|
|
21
|
+
for (var p = 1; p < l; p++)
|
|
22
|
+
m[p] = r(e[p]);
|
|
23
23
|
return m.join(" ");
|
|
24
24
|
}
|
|
25
25
|
if (typeof t != "string")
|
|
26
26
|
return t;
|
|
27
27
|
var u = e.length;
|
|
28
28
|
if (u === 0) return t;
|
|
29
|
-
for (var i = "",
|
|
29
|
+
for (var i = "", g = 1 - s, v = -1, z = t && t.length || 0, x = 0; x < z; ) {
|
|
30
30
|
if (t.charCodeAt(x) === 37 && x + 1 < z) {
|
|
31
31
|
switch (v = v > -1 ? v : 0, t.charCodeAt(x + 1)) {
|
|
32
32
|
case 100:
|
|
33
33
|
// 'd'
|
|
34
34
|
case 102:
|
|
35
|
-
if (
|
|
36
|
-
v < x && (i += t.slice(v, x)), i += Number(e[
|
|
35
|
+
if (g >= u || e[g] == null) break;
|
|
36
|
+
v < x && (i += t.slice(v, x)), i += Number(e[g]), v = x + 2, x++;
|
|
37
37
|
break;
|
|
38
38
|
case 105:
|
|
39
|
-
if (
|
|
40
|
-
v < x && (i += t.slice(v, x)), i += Math.floor(Number(e[
|
|
39
|
+
if (g >= u || e[g] == null) break;
|
|
40
|
+
v < x && (i += t.slice(v, x)), i += Math.floor(Number(e[g])), v = x + 2, x++;
|
|
41
41
|
break;
|
|
42
42
|
case 79:
|
|
43
43
|
// 'O'
|
|
44
44
|
case 111:
|
|
45
45
|
// 'o'
|
|
46
46
|
case 106:
|
|
47
|
-
if (
|
|
47
|
+
if (g >= u || e[g] === void 0) break;
|
|
48
48
|
v < x && (i += t.slice(v, x));
|
|
49
|
-
var o = typeof e[
|
|
49
|
+
var o = typeof e[g];
|
|
50
50
|
if (o === "string") {
|
|
51
|
-
i += "'" + e[
|
|
51
|
+
i += "'" + e[g] + "'", v = x + 2, x++;
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
54
|
if (o === "function") {
|
|
55
|
-
i += e[
|
|
55
|
+
i += e[g].name || "<anonymous>", v = x + 2, x++;
|
|
56
56
|
break;
|
|
57
57
|
}
|
|
58
|
-
i += r(e[
|
|
58
|
+
i += r(e[g]), v = x + 2, x++;
|
|
59
59
|
break;
|
|
60
60
|
case 115:
|
|
61
|
-
if (
|
|
61
|
+
if (g >= u)
|
|
62
62
|
break;
|
|
63
|
-
v < x && (i += t.slice(v, x)), i += String(e[
|
|
63
|
+
v < x && (i += t.slice(v, x)), i += String(e[g]), v = x + 2, x++;
|
|
64
64
|
break;
|
|
65
65
|
case 37:
|
|
66
|
-
v < x && (i += t.slice(v, x)), i += "%", v = x + 2, x++,
|
|
66
|
+
v < x && (i += t.slice(v, x)), i += "%", v = x + 2, x++, g--;
|
|
67
67
|
break;
|
|
68
68
|
}
|
|
69
|
-
++
|
|
69
|
+
++g;
|
|
70
70
|
}
|
|
71
71
|
++x;
|
|
72
72
|
}
|
|
@@ -82,8 +82,8 @@ const re = mt().console || {}, et = {
|
|
|
82
82
|
wrapErrorSerializer: fe,
|
|
83
83
|
req: ie,
|
|
84
84
|
res: ie,
|
|
85
|
-
err:
|
|
86
|
-
errWithCause:
|
|
85
|
+
err: $e,
|
|
86
|
+
errWithCause: $e
|
|
87
87
|
};
|
|
88
88
|
function Y(t, e) {
|
|
89
89
|
return t === "silent" ? 1 / 0 : e.levels.values[t];
|
|
@@ -96,7 +96,7 @@ const xe = Symbol("pino.logFuncs"), be = Symbol("pino.hierarchy"), tt = {
|
|
|
96
96
|
debug: "log",
|
|
97
97
|
trace: "log"
|
|
98
98
|
};
|
|
99
|
-
function
|
|
99
|
+
function _e(t, e) {
|
|
100
100
|
const n = {
|
|
101
101
|
logger: e,
|
|
102
102
|
parent: t[be]
|
|
@@ -124,24 +124,24 @@ function K(t) {
|
|
|
124
124
|
const r = t.serializers || {}, s = rt(t.browser.serialize, r);
|
|
125
125
|
let l = t.browser.serialize;
|
|
126
126
|
Array.isArray(t.browser.serialize) && t.browser.serialize.indexOf("!stdSerializers.err") > -1 && (l = !1);
|
|
127
|
-
const m = Object.keys(t.customLevels || {}),
|
|
128
|
-
typeof n == "function" &&
|
|
127
|
+
const m = Object.keys(t.customLevels || {}), p = ["error", "fatal", "warn", "info", "debug", "trace"].concat(m);
|
|
128
|
+
typeof n == "function" && p.forEach(function(c) {
|
|
129
129
|
n[c] = n;
|
|
130
130
|
}), (t.enabled === !1 || t.browser.disabled) && (t.level = "silent");
|
|
131
131
|
const u = t.level || "info", i = Object.create(n);
|
|
132
|
-
i.log || (i.log = ne), nt(i,
|
|
132
|
+
i.log || (i.log = ne), nt(i, p, n), _e({}, i), Object.defineProperty(i, "levelVal", {
|
|
133
133
|
get: v
|
|
134
134
|
}), Object.defineProperty(i, "level", {
|
|
135
135
|
get: z,
|
|
136
136
|
set: x
|
|
137
137
|
});
|
|
138
|
-
const
|
|
138
|
+
const g = {
|
|
139
139
|
transmit: e,
|
|
140
140
|
serialize: s,
|
|
141
141
|
asObject: t.browser.asObject,
|
|
142
142
|
asObjectBindingsOnly: t.browser.asObjectBindingsOnly,
|
|
143
143
|
formatters: t.browser.formatters,
|
|
144
|
-
levels:
|
|
144
|
+
levels: p,
|
|
145
145
|
timestamp: ht(t),
|
|
146
146
|
messageKey: t.messageKey || "msg",
|
|
147
147
|
onChild: t.onChild || ne
|
|
@@ -149,7 +149,7 @@ function K(t) {
|
|
|
149
149
|
i.levels = it(t), i.level = u, i.isLevelEnabled = function(c) {
|
|
150
150
|
return this.levels.values[c] ? this.levels.values[c] >= this.levels.values[this.level] : !1;
|
|
151
151
|
}, i.setMaxListeners = i.getMaxListeners = i.emit = i.addListener = i.on = i.prependListener = i.once = i.prependOnceListener = i.removeListener = i.removeAllListeners = i.listeners = i.listenerCount = i.eventNames = i.write = i.flush = ne, i.serializers = r, i._serialize = s, i._stdErrSerialize = l, i.child = function(...c) {
|
|
152
|
-
return o.call(this,
|
|
152
|
+
return o.call(this, g, ...c);
|
|
153
153
|
}, e && (i._logEvent = ye());
|
|
154
154
|
function v() {
|
|
155
155
|
return Y(this.level, this);
|
|
@@ -160,8 +160,8 @@ function K(t) {
|
|
|
160
160
|
function x(c) {
|
|
161
161
|
if (c !== "silent" && !this.levels.values[c])
|
|
162
162
|
throw Error("unknown level " + c);
|
|
163
|
-
this._level = c, Z(this,
|
|
164
|
-
Z(this,
|
|
163
|
+
this._level = c, Z(this, g, i, "error"), Z(this, g, i, "fatal"), Z(this, g, i, "warn"), Z(this, g, i, "info"), Z(this, g, i, "debug"), Z(this, g, i, "trace"), m.forEach((f) => {
|
|
164
|
+
Z(this, g, i, f);
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
function o(c, f, h) {
|
|
@@ -173,15 +173,15 @@ function K(t) {
|
|
|
173
173
|
var T = Object.assign({}, r, d), V = t.browser.serialize === !0 ? Object.keys(T) : s;
|
|
174
174
|
delete f.serializers, Ee([f], V, T, this._stdErrSerialize);
|
|
175
175
|
}
|
|
176
|
-
function A(
|
|
177
|
-
this._childLevel = (
|
|
178
|
-
[].concat(
|
|
176
|
+
function A($) {
|
|
177
|
+
this._childLevel = ($._childLevel | 0) + 1, this.bindings = f, T && (this.serializers = T, this._serialize = V), e && (this._logEvent = ye(
|
|
178
|
+
[].concat($._logEvent.bindings, f)
|
|
179
179
|
));
|
|
180
180
|
}
|
|
181
181
|
A.prototype = this;
|
|
182
182
|
const I = new A(this);
|
|
183
|
-
return
|
|
184
|
-
return o.call(this, c,
|
|
183
|
+
return _e(this, I), I.child = function(...$) {
|
|
184
|
+
return o.call(this, c, ...$);
|
|
185
185
|
}, I.level = h.level || this.level, c.onChild(I), I;
|
|
186
186
|
}
|
|
187
187
|
return i;
|
|
@@ -218,7 +218,7 @@ K.levels = {
|
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
K.stdSerializers = et;
|
|
221
|
-
K.stdTimeFunctions = Object.assign({}, { nullTime: De, epochTime:
|
|
221
|
+
K.stdTimeFunctions = Object.assign({}, { nullTime: De, epochTime: Ne, unixTime: ft, isoTime: dt });
|
|
222
222
|
function ot(t) {
|
|
223
223
|
const e = [];
|
|
224
224
|
t.bindings && e.push(t.bindings);
|
|
@@ -250,10 +250,10 @@ function at(t, e) {
|
|
|
250
250
|
function ct(t, e, n, r) {
|
|
251
251
|
return /* @__PURE__ */ function(s) {
|
|
252
252
|
return function() {
|
|
253
|
-
const m = e.timestamp(),
|
|
254
|
-
for (var i = 0; i <
|
|
255
|
-
var
|
|
256
|
-
if (e.serialize && (Ee(
|
|
253
|
+
const m = e.timestamp(), p = new Array(arguments.length), u = Object.getPrototypeOf && Object.getPrototypeOf(this) === re ? re : this;
|
|
254
|
+
for (var i = 0; i < p.length; i++) p[i] = arguments[i];
|
|
255
|
+
var g = !1;
|
|
256
|
+
if (e.serialize && (Ee(p, this._serialize, this.serializers, this._stdErrSerialize), g = !0), e.asObject || e.formatters ? s.call(u, ...lt(this, r, p, m, e)) : s.apply(u, p), e.transmit) {
|
|
257
257
|
const v = e.transmit.level || t._level, z = Y(v, n), x = Y(r, n);
|
|
258
258
|
if (x < z) return;
|
|
259
259
|
ut(this, {
|
|
@@ -263,7 +263,7 @@ function ct(t, e, n, r) {
|
|
|
263
263
|
transmitValue: n.levels.values[e.transmit.level || t._level],
|
|
264
264
|
send: e.transmit.send,
|
|
265
265
|
val: Y(t._level, n)
|
|
266
|
-
},
|
|
266
|
+
}, p, g);
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
}(t[xe][r]);
|
|
@@ -272,26 +272,26 @@ function lt(t, e, n, r, s) {
|
|
|
272
272
|
const {
|
|
273
273
|
level: l,
|
|
274
274
|
log: m = (v) => v
|
|
275
|
-
} = s.formatters || {},
|
|
276
|
-
let u =
|
|
275
|
+
} = s.formatters || {}, p = n.slice();
|
|
276
|
+
let u = p[0];
|
|
277
277
|
const i = {};
|
|
278
|
-
let
|
|
279
|
-
if (
|
|
278
|
+
let g = (t._childLevel | 0) + 1;
|
|
279
|
+
if (g < 1 && (g = 1), r && (i.time = r), l) {
|
|
280
280
|
const v = l(e, t.levels.values[e]);
|
|
281
281
|
Object.assign(i, v);
|
|
282
282
|
} else
|
|
283
283
|
i.level = t.levels.values[e];
|
|
284
284
|
if (s.asObjectBindingsOnly) {
|
|
285
285
|
if (u !== null && typeof u == "object")
|
|
286
|
-
for (;
|
|
287
|
-
Object.assign(i,
|
|
288
|
-
return [m(i), ...
|
|
286
|
+
for (; g-- && typeof p[0] == "object"; )
|
|
287
|
+
Object.assign(i, p.shift());
|
|
288
|
+
return [m(i), ...p];
|
|
289
289
|
} else {
|
|
290
290
|
if (u !== null && typeof u == "object") {
|
|
291
|
-
for (;
|
|
292
|
-
Object.assign(i,
|
|
293
|
-
u =
|
|
294
|
-
} else typeof u == "string" && (u = Le(
|
|
291
|
+
for (; g-- && typeof p[0] == "object"; )
|
|
292
|
+
Object.assign(i, p.shift());
|
|
293
|
+
u = p.length ? Le(p.shift(), p) : void 0;
|
|
294
|
+
} else typeof u == "string" && (u = Le(p.shift(), p));
|
|
295
295
|
return u !== void 0 && (i[s.messageKey] = u), [m(i)];
|
|
296
296
|
}
|
|
297
297
|
}
|
|
@@ -304,15 +304,15 @@ function Ee(t, e, n, r) {
|
|
|
304
304
|
e.indexOf(l) > -1 && l in n && (t[s][l] = n[l](t[s][l]));
|
|
305
305
|
}
|
|
306
306
|
function ut(t, e, n, r = !1) {
|
|
307
|
-
const s = e.send, l = e.ts, m = e.methodLevel,
|
|
307
|
+
const s = e.send, l = e.ts, m = e.methodLevel, p = e.methodValue, u = e.val, i = t._logEvent.bindings;
|
|
308
308
|
r || Ee(
|
|
309
309
|
n,
|
|
310
310
|
t._serialize || Object.keys(t.serializers),
|
|
311
311
|
t.serializers,
|
|
312
312
|
t._stdErrSerialize === void 0 ? !0 : t._stdErrSerialize
|
|
313
|
-
), t._logEvent.ts = l, t._logEvent.messages = n.filter(function(
|
|
314
|
-
return i.indexOf(
|
|
315
|
-
}), t._logEvent.level.label = m, t._logEvent.level.value =
|
|
313
|
+
), t._logEvent.ts = l, t._logEvent.messages = n.filter(function(g) {
|
|
314
|
+
return i.indexOf(g) === -1;
|
|
315
|
+
}), t._logEvent.level.label = m, t._logEvent.level.value = p, s(m, t._logEvent, u), t._logEvent = ye(i);
|
|
316
316
|
}
|
|
317
317
|
function ye(t) {
|
|
318
318
|
return {
|
|
@@ -322,7 +322,7 @@ function ye(t) {
|
|
|
322
322
|
level: { label: "", value: 0 }
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function $e(t) {
|
|
326
326
|
const e = {
|
|
327
327
|
type: t.constructor.name,
|
|
328
328
|
msg: t.message,
|
|
@@ -333,7 +333,7 @@ function _e(t) {
|
|
|
333
333
|
return e;
|
|
334
334
|
}
|
|
335
335
|
function ht(t) {
|
|
336
|
-
return typeof t.timestamp == "function" ? t.timestamp : t.timestamp === !1 ? De :
|
|
336
|
+
return typeof t.timestamp == "function" ? t.timestamp : t.timestamp === !1 ? De : Ne;
|
|
337
337
|
}
|
|
338
338
|
function ie() {
|
|
339
339
|
return {};
|
|
@@ -346,7 +346,7 @@ function ne() {
|
|
|
346
346
|
function De() {
|
|
347
347
|
return !1;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Ne() {
|
|
350
350
|
return Date.now();
|
|
351
351
|
}
|
|
352
352
|
function ft() {
|
|
@@ -372,12 +372,12 @@ function mt() {
|
|
|
372
372
|
}
|
|
373
373
|
ue.exports.default = K;
|
|
374
374
|
ue.exports.pino = K;
|
|
375
|
-
var
|
|
376
|
-
const se = /* @__PURE__ */
|
|
375
|
+
var pt = ue.exports;
|
|
376
|
+
const se = /* @__PURE__ */ Qe(pt);
|
|
377
377
|
function ce() {
|
|
378
378
|
return typeof process < "u" && process.env.NODE_ENV === "production";
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function gt() {
|
|
381
381
|
var t;
|
|
382
382
|
return typeof process < "u" && ((t = process.versions) == null ? void 0 : t.node) !== void 0;
|
|
383
383
|
}
|
|
@@ -402,7 +402,7 @@ function bt(t = {}) {
|
|
|
402
402
|
// Use default console write
|
|
403
403
|
...(s == null ? void 0 : s.browser) || {}
|
|
404
404
|
// Allow override via pinoOptions
|
|
405
|
-
}), r &&
|
|
405
|
+
}), r && gt() && !ce())
|
|
406
406
|
try {
|
|
407
407
|
return se(
|
|
408
408
|
l,
|
|
@@ -421,7 +421,7 @@ function bt(t = {}) {
|
|
|
421
421
|
}
|
|
422
422
|
return se(l);
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class Fe {
|
|
425
425
|
constructor(e = {}) {
|
|
426
426
|
this.isProd = ce(), this.pinoLogger = bt(e);
|
|
427
427
|
}
|
|
@@ -450,9 +450,9 @@ class Ne {
|
|
|
450
450
|
return this.pinoLogger;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
new
|
|
453
|
+
new Fe();
|
|
454
454
|
function he(t, e = {}) {
|
|
455
|
-
return new
|
|
455
|
+
return new Fe({
|
|
456
456
|
...e,
|
|
457
457
|
name: e.name || `WSX:${t}`
|
|
458
458
|
});
|
|
@@ -506,11 +506,11 @@ const yt = he("RouterUtils"), te = class te {
|
|
|
506
506
|
exact: !1
|
|
507
507
|
};
|
|
508
508
|
if (e.includes(":")) {
|
|
509
|
-
const s = ((r = e.match(/:([^/]+)/g)) == null ? void 0 : r.map((u) => u.slice(1))) || [], l = e.replace(/:[^/]+/g, "([^/]+)"), m = new RegExp(`^${l}$`),
|
|
510
|
-
if (
|
|
509
|
+
const s = ((r = e.match(/:([^/]+)/g)) == null ? void 0 : r.map((u) => u.slice(1))) || [], l = e.replace(/:[^/]+/g, "([^/]+)"), m = new RegExp(`^${l}$`), p = n.match(m);
|
|
510
|
+
if (p && s.length > 0) {
|
|
511
511
|
const u = {};
|
|
512
|
-
return s.forEach((i,
|
|
513
|
-
u[i] = g
|
|
512
|
+
return s.forEach((i, g) => {
|
|
513
|
+
u[i] = p[g + 1];
|
|
514
514
|
}), {
|
|
515
515
|
route: e,
|
|
516
516
|
params: u,
|
|
@@ -641,11 +641,11 @@ const yt = he("RouterUtils"), te = class te {
|
|
|
641
641
|
};
|
|
642
642
|
te._currentRoute = null;
|
|
643
643
|
let le = te;
|
|
644
|
-
const
|
|
645
|
-
var
|
|
646
|
-
let
|
|
647
|
-
function
|
|
648
|
-
return (e =
|
|
644
|
+
const ke = ":host{display:grid;width:100%}.router-outlet{width:100%}:host>wsx-view{grid-area:1 / 1}";
|
|
645
|
+
var Me;
|
|
646
|
+
let qe, Ue;
|
|
647
|
+
function B(t, e, n) {
|
|
648
|
+
return (e = Be(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
649
649
|
}
|
|
650
650
|
function wt(t, e, n, r, s, l) {
|
|
651
651
|
function m(o, c, f) {
|
|
@@ -653,7 +653,7 @@ function wt(t, e, n, r, s, l) {
|
|
|
653
653
|
return f && f(h), o[c].call(h, d);
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function p(o, c) {
|
|
657
657
|
for (var f = 0; f < o.length; f++) o[f].call(c);
|
|
658
658
|
return c;
|
|
659
659
|
}
|
|
@@ -661,7 +661,7 @@ function wt(t, e, n, r, s, l) {
|
|
|
661
661
|
if (typeof o != "function" && (h || o !== void 0)) throw new TypeError(c + " must " + (f || "be") + " a function" + (h ? "" : " or undefined"));
|
|
662
662
|
return o;
|
|
663
663
|
}
|
|
664
|
-
function i(o, c, f, h, d, T, V, A, I, _,
|
|
664
|
+
function i(o, c, f, h, d, T, V, A, I, $, _, E, R) {
|
|
665
665
|
function j(b) {
|
|
666
666
|
if (!R(b)) throw new TypeError("Attempted to access private element on non-instance");
|
|
667
667
|
}
|
|
@@ -669,46 +669,46 @@ function wt(t, e, n, r, s, l) {
|
|
|
669
669
|
if (!P) {
|
|
670
670
|
f || Array.isArray(C) || (C = [C]);
|
|
671
671
|
var a = {}, S = [], L = d === 3 ? "get" : d === 4 || E ? "set" : "value";
|
|
672
|
-
|
|
672
|
+
$ ? (_ || E ? a = { get: je(function() {
|
|
673
673
|
return O(this);
|
|
674
674
|
}, h, "get"), set: function(b) {
|
|
675
675
|
c[4](this, b);
|
|
676
|
-
} } : a[L] = O,
|
|
676
|
+
} } : a[L] = O, _ || je(a[L], h, d === 2 ? "" : L)) : _ || (a = Object.getOwnPropertyDescriptor(o, h));
|
|
677
677
|
}
|
|
678
|
-
for (var w = o,
|
|
679
|
-
var J = C[
|
|
678
|
+
for (var w = o, M = C.length - 1; M >= 0; M -= f ? 2 : 1) {
|
|
679
|
+
var J = C[M], G = f ? C[M - 1] : void 0, Q = {}, D = { kind: ["field", "accessor", "method", "getter", "setter", "class"][d], name: h, metadata: T, addInitializer: (function(b, W) {
|
|
680
680
|
if (b.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
681
681
|
u(W, "An initializer", "be", !0), V.push(W);
|
|
682
|
-
}).bind(null,
|
|
682
|
+
}).bind(null, Q) };
|
|
683
683
|
try {
|
|
684
|
-
if (P) (y = u(J.call(
|
|
684
|
+
if (P) (y = u(J.call(G, w, D), "class decorators", "return")) && (w = y);
|
|
685
685
|
else {
|
|
686
|
-
var
|
|
687
|
-
D.static = I, D.private =
|
|
686
|
+
var N, q;
|
|
687
|
+
D.static = I, D.private = $, $ ? d === 2 ? N = function(b) {
|
|
688
688
|
return j(b), a.value;
|
|
689
|
-
} : (d < 4 && (
|
|
689
|
+
} : (d < 4 && (N = m(a, "get", j)), d !== 3 && (q = m(a, "set", j))) : (N = function(b) {
|
|
690
690
|
return b[h];
|
|
691
|
-
}, (d < 2 || d === 4) && (
|
|
691
|
+
}, (d < 2 || d === 4) && (q = function(b, W) {
|
|
692
692
|
b[h] = W;
|
|
693
693
|
}));
|
|
694
|
-
var X = D.access = { has:
|
|
694
|
+
var X = D.access = { has: $ ? R.bind() : function(b) {
|
|
695
695
|
return h in b;
|
|
696
696
|
} };
|
|
697
|
-
if (
|
|
697
|
+
if (N && (X.get = N), q && (X.set = q), w = J.call(G, E ? { get: a.get, set: a.set } : a[L], D), E) {
|
|
698
698
|
if (typeof w == "object" && w) (y = u(w.get, "accessor.get")) && (a.get = y), (y = u(w.set, "accessor.set")) && (a.set = y), (y = u(w.init, "accessor.init")) && S.push(y);
|
|
699
699
|
else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
700
|
-
} else u(w, (
|
|
700
|
+
} else u(w, (_ ? "field" : "method") + " decorators", "return") && (_ ? S.push(w) : a[L] = w);
|
|
701
701
|
}
|
|
702
702
|
} finally {
|
|
703
|
-
|
|
703
|
+
Q.v = !0;
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
-
return (
|
|
707
|
-
for (var
|
|
706
|
+
return (_ || E) && A.push(function(b, W) {
|
|
707
|
+
for (var U = S.length - 1; U >= 0; U--) W = S[U].call(b, W);
|
|
708
708
|
return W;
|
|
709
|
-
}),
|
|
709
|
+
}), _ || P || ($ ? E ? A.push(m(a, "get"), m(a, "set")) : A.push(d === 2 ? a[L] : m.call.bind(a[L])) : Object.defineProperty(o, h, a)), w;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function g(o, c) {
|
|
712
712
|
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
713
713
|
}
|
|
714
714
|
if (arguments.length >= 6) var v = l[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
@@ -716,11 +716,11 @@ function wt(t, e, n, r, s, l) {
|
|
|
716
716
|
var d, T, V = [], A = function(L) {
|
|
717
717
|
return Et(L) === o;
|
|
718
718
|
}, I = /* @__PURE__ */ new Map();
|
|
719
|
-
function
|
|
720
|
-
L && V.push(
|
|
719
|
+
function $(L) {
|
|
720
|
+
L && V.push(p.bind(null, L));
|
|
721
721
|
}
|
|
722
|
-
for (var
|
|
723
|
-
var E = c[
|
|
722
|
+
for (var _ = 0; _ < c.length; _++) {
|
|
723
|
+
var E = c[_];
|
|
724
724
|
if (Array.isArray(E)) {
|
|
725
725
|
var R = E[1], j = E[2], y = E.length > 3, C = 16 & R, O = !!(8 & R), P = (R &= 7) == 0, a = j + "/" + O;
|
|
726
726
|
if (!P && !y) {
|
|
@@ -728,17 +728,17 @@ function wt(t, e, n, r, s, l) {
|
|
|
728
728
|
if (S === !0 || S === 3 && R !== 4 || S === 4 && R !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + j);
|
|
729
729
|
I.set(a, !(R > 2) || R);
|
|
730
730
|
}
|
|
731
|
-
i(O ? o : o.prototype, E, C, y ? "#" + j :
|
|
731
|
+
i(O ? o : o.prototype, E, C, y ? "#" + j : Be(j), R, h, O ? T = T || [] : d = d || [], V, O, y, P, R === 1, O && y ? A : f);
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
return
|
|
734
|
+
return $(d), $(T), V;
|
|
735
735
|
}(t, e, s, z);
|
|
736
|
-
return n.length ||
|
|
736
|
+
return n.length || g(t, z), { e: x, get c() {
|
|
737
737
|
var o = [];
|
|
738
|
-
return n.length && [
|
|
738
|
+
return n.length && [g(i(t, [n], r, t.name, 5, z, o), z), p.bind(null, o, t)];
|
|
739
739
|
} };
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Be(t) {
|
|
742
742
|
var e = xt(t, "string");
|
|
743
743
|
return typeof e == "symbol" ? e : e + "";
|
|
744
744
|
}
|
|
@@ -764,25 +764,25 @@ function Et(t) {
|
|
|
764
764
|
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
765
765
|
return t;
|
|
766
766
|
}
|
|
767
|
-
const
|
|
768
|
-
|
|
767
|
+
const k = he("WsxRouter");
|
|
768
|
+
Ue = [we({
|
|
769
769
|
tagName: "wsx-router"
|
|
770
770
|
})];
|
|
771
771
|
let Rt;
|
|
772
772
|
class Lt extends oe {
|
|
773
773
|
constructor() {
|
|
774
774
|
super({
|
|
775
|
-
styles:
|
|
775
|
+
styles: ke,
|
|
776
776
|
styleName: "wsx-router"
|
|
777
|
-
}),
|
|
777
|
+
}), B(this, "_autoStyles", ke), B(this, "views", /* @__PURE__ */ new Map()), B(this, "currentView", null), B(this, "currentPath", ""), B(this, "isHandlingRoute", !1), B(this, "compiledRoutes", /* @__PURE__ */ new Map()), B(this, "matchCache", /* @__PURE__ */ new Map()), B(this, "enableViewTransitions", !0), B(this, "scrollRestoration", "manual"), B(this, "handleRouteChange", () => {
|
|
778
778
|
if (this.isHandlingRoute) {
|
|
779
|
-
|
|
779
|
+
k.debug("Route change already in progress, skipping");
|
|
780
780
|
return;
|
|
781
781
|
}
|
|
782
|
-
this.views.size === 0 && (this.collectViews(),
|
|
782
|
+
this.views.size === 0 && (this.collectViews(), k.debug(`WsxRouter re-collected views: ${this.views.size}`)), this.isHandlingRoute = !0;
|
|
783
783
|
try {
|
|
784
784
|
const e = window.location.pathname;
|
|
785
|
-
|
|
785
|
+
k.debug(`WsxRouter: Route changed to: ${e}`);
|
|
786
786
|
const n = new CustomEvent("before-navigate", {
|
|
787
787
|
detail: {
|
|
788
788
|
to: e,
|
|
@@ -792,7 +792,7 @@ class Lt extends oe {
|
|
|
792
792
|
cancelable: !0
|
|
793
793
|
});
|
|
794
794
|
if (!this.dispatchEvent(n)) {
|
|
795
|
-
|
|
795
|
+
k.debug(`Navigation to ${e} was cancelled`);
|
|
796
796
|
return;
|
|
797
797
|
}
|
|
798
798
|
this.performNavigation(e);
|
|
@@ -801,7 +801,7 @@ class Lt extends oe {
|
|
|
801
801
|
this.isHandlingRoute = !1;
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
|
-
}),
|
|
804
|
+
}), B(this, "interceptLinks", (e) => {
|
|
805
805
|
const n = e.target.closest("a");
|
|
806
806
|
if (!n) return;
|
|
807
807
|
const r = n.getAttribute("href");
|
|
@@ -812,14 +812,14 @@ class Lt extends oe {
|
|
|
812
812
|
return /* @__PURE__ */ ae("div", { class: "router-outlet" });
|
|
813
813
|
}
|
|
814
814
|
onRendered() {
|
|
815
|
-
this.views.size === 0 && (this.collectViews(),
|
|
815
|
+
this.views.size === 0 && (this.collectViews(), k.debug("WsxRouter collected views in onRendered:", this.views.size)), this.views.size > 0 && !this.currentView && requestAnimationFrame(() => {
|
|
816
816
|
this.handleRouteChange();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
onConnected() {
|
|
820
|
-
|
|
821
|
-
this.views.size === 0 && (this.collectViews(),
|
|
822
|
-
|
|
820
|
+
k.debug("WsxRouter connected to DOM"), "scrollRestoration" in history && (history.scrollRestoration = this.scrollRestoration), window.addEventListener("popstate", this.handleRouteChange), this.addEventListener("click", this.interceptLinks), requestAnimationFrame(() => {
|
|
821
|
+
this.views.size === 0 && (this.collectViews(), k.debug(`WsxRouter collected views in onConnected: ${this.views.size}`)), requestAnimationFrame(() => {
|
|
822
|
+
k.debug(`WsxRouter handling initial route: ${window.location.pathname}`), this.handleRouteChange();
|
|
823
823
|
});
|
|
824
824
|
});
|
|
825
825
|
}
|
|
@@ -828,11 +828,11 @@ class Lt extends oe {
|
|
|
828
828
|
}
|
|
829
829
|
collectViews() {
|
|
830
830
|
const e = Array.from(this.children).filter((n) => n.tagName.toLowerCase() === "wsx-view");
|
|
831
|
-
|
|
831
|
+
k.debug(`WsxRouter found ${e.length} views`), this.views.clear(), this.compiledRoutes.clear(), this.matchCache.clear(), e.forEach((n) => {
|
|
832
832
|
const r = n.getAttribute("route") || "/";
|
|
833
|
-
if (this.views.set(r, n),
|
|
833
|
+
if (this.views.set(r, n), k.debug(`WsxRouter registered route: ${r}`), r.includes(":")) {
|
|
834
834
|
const s = r.replace(/:[^/]+/g, "([^/]+)"), l = new RegExp(`^${s}$`);
|
|
835
|
-
this.compiledRoutes.set(r, l),
|
|
835
|
+
this.compiledRoutes.set(r, l), k.debug(`WsxRouter compiled regex for route: ${r} -> ${l}`);
|
|
836
836
|
}
|
|
837
837
|
n.style.display = "none";
|
|
838
838
|
});
|
|
@@ -846,21 +846,21 @@ class Lt extends oe {
|
|
|
846
846
|
if (r) {
|
|
847
847
|
r.style.display = "block", r.style.visibility = "visible";
|
|
848
848
|
const s = r.getAttribute("route") || "/";
|
|
849
|
-
|
|
850
|
-
for (const [
|
|
849
|
+
k.debug(`Showing view for route: ${s}`);
|
|
850
|
+
for (const [g, v] of this.views)
|
|
851
851
|
v !== r && (v.style.display = "none", v.style.visibility = "");
|
|
852
852
|
this.currentView = r;
|
|
853
853
|
const l = this.extractParams(s, e);
|
|
854
|
-
|
|
855
|
-
r.setAttribute("params", JSON.stringify(l)),
|
|
854
|
+
k.debug(`Extracted params for route ${s} and path ${e}:`, l), l && requestAnimationFrame(() => {
|
|
855
|
+
r.setAttribute("params", JSON.stringify(l)), k.debug(`Set params attribute on view: ${JSON.stringify(l)}`);
|
|
856
856
|
});
|
|
857
|
-
const m = window.location.href || `${window.location.pathname}${window.location.search}${window.location.hash}`,
|
|
857
|
+
const m = window.location.href || `${window.location.pathname}${window.location.search}${window.location.hash}`, p = new URL(m, window.location.origin || "http://localhost"), u = {
|
|
858
858
|
path: e,
|
|
859
859
|
params: l || {},
|
|
860
|
-
query: Object.fromEntries(
|
|
861
|
-
hash:
|
|
860
|
+
query: Object.fromEntries(p.searchParams.entries()),
|
|
861
|
+
hash: p.hash.slice(1)
|
|
862
862
|
};
|
|
863
|
-
le._setCurrentRoute(u),
|
|
863
|
+
le._setCurrentRoute(u), k.debug("Updated RouterUtils._currentRoute:", u);
|
|
864
864
|
const i = new CustomEvent("route-changed", {
|
|
865
865
|
detail: u,
|
|
866
866
|
bubbles: !0
|
|
@@ -869,7 +869,7 @@ class Lt extends oe {
|
|
|
869
869
|
} else {
|
|
870
870
|
for (const [u, i] of this.views)
|
|
871
871
|
i.style.display = "none";
|
|
872
|
-
this.currentView = null,
|
|
872
|
+
this.currentView = null, k.warn(`No view found for path: ${e}`);
|
|
873
873
|
const s = window.location.href || `${window.location.pathname}${window.location.search}${window.location.hash}`, l = new URL(s, window.location.origin || "http://localhost"), m = {
|
|
874
874
|
path: e,
|
|
875
875
|
params: {},
|
|
@@ -877,11 +877,11 @@ class Lt extends oe {
|
|
|
877
877
|
hash: l.hash.slice(1)
|
|
878
878
|
};
|
|
879
879
|
le._setCurrentRoute(m);
|
|
880
|
-
const
|
|
880
|
+
const p = new CustomEvent("route-changed", {
|
|
881
881
|
detail: m,
|
|
882
882
|
bubbles: !0
|
|
883
883
|
});
|
|
884
|
-
document.dispatchEvent(
|
|
884
|
+
document.dispatchEvent(p);
|
|
885
885
|
}
|
|
886
886
|
this.handleScrollRestoration(e), this.dispatchEvent(new CustomEvent("after-navigate", {
|
|
887
887
|
detail: {
|
|
@@ -897,7 +897,7 @@ class Lt extends oe {
|
|
|
897
897
|
* RFC 0033: 滚动恢复处理
|
|
898
898
|
*/
|
|
899
899
|
handleScrollRestoration(e) {
|
|
900
|
-
this.scrollRestoration === "manual" && (this.isBackNavigation() || (window.scrollTo(0, 0),
|
|
900
|
+
this.scrollRestoration === "manual" && (this.isBackNavigation() || (window.scrollTo(0, 0), k.debug("Scrolled to top for forward navigation")));
|
|
901
901
|
}
|
|
902
902
|
/**
|
|
903
903
|
* RFC 0033: 检测是否是后退导航
|
|
@@ -907,54 +907,54 @@ class Lt extends oe {
|
|
|
907
907
|
return "navigation" in performance && performance.navigation ? performance.navigation.type === 2 : ((e = window.history.state) == null ? void 0 : e.navigationType) === "back";
|
|
908
908
|
}
|
|
909
909
|
matchRoute(e) {
|
|
910
|
-
if (
|
|
910
|
+
if (k.warn(`matchRoute called for path: ${e}, views count: ${this.views.size}`), this.matchCache.has(e)) {
|
|
911
911
|
const r = this.matchCache.get(e);
|
|
912
|
-
return
|
|
912
|
+
return k.warn(`matchRoute: found in cache, route: ${r}`), this.views.get(r) || null;
|
|
913
913
|
}
|
|
914
914
|
if (this.views.has(e))
|
|
915
|
-
return this.matchCache.set(e, e),
|
|
916
|
-
|
|
915
|
+
return this.matchCache.set(e, e), k.warn(`matchRoute: exact match found for ${e}`), this.views.get(e);
|
|
916
|
+
k.warn(`matchRoute: checking parameter routes, compiledRoutes count: ${this.compiledRoutes.size}`);
|
|
917
917
|
for (const [r, s] of this.views)
|
|
918
918
|
if (r.includes(":")) {
|
|
919
919
|
const l = this.compiledRoutes.get(r);
|
|
920
920
|
if (l) {
|
|
921
921
|
const m = l.test(e);
|
|
922
|
-
if (
|
|
923
|
-
return this.matchCache.set(e, r),
|
|
922
|
+
if (k.warn(`matchRoute: testing route ${r} against ${e}, matches: ${m}`), m)
|
|
923
|
+
return this.matchCache.set(e, r), k.warn(`matchRoute: parameter match found, route: ${r}, path: ${e}`), s;
|
|
924
924
|
} else
|
|
925
|
-
|
|
925
|
+
k.warn(`matchRoute: route ${r} has ':' but no compiled regex found`);
|
|
926
926
|
}
|
|
927
927
|
const n = this.views.get("*") || null;
|
|
928
|
-
return n ? (this.matchCache.set(e, "*"),
|
|
928
|
+
return n ? (this.matchCache.set(e, "*"), k.warn(`matchRoute: wildcard match found for ${e}`)) : k.warn(`matchRoute: no match found for ${e}, no wildcard view available`), n;
|
|
929
929
|
}
|
|
930
930
|
extractParams(e, n) {
|
|
931
931
|
var u;
|
|
932
932
|
if (!e.includes(":")) return null;
|
|
933
933
|
const r = ((u = e.match(/:([^/]+)/g)) == null ? void 0 : u.map((i) => i.slice(1))) || [], s = e.replace(/:[^/]+/g, "([^/]+)"), l = new RegExp(`^${s}$`), m = n.match(l);
|
|
934
934
|
if (!m || !r.length) return null;
|
|
935
|
-
const
|
|
936
|
-
return r.forEach((i,
|
|
937
|
-
|
|
938
|
-
}),
|
|
935
|
+
const p = {};
|
|
936
|
+
return r.forEach((i, g) => {
|
|
937
|
+
p[i] = m[g + 1];
|
|
938
|
+
}), p;
|
|
939
939
|
}
|
|
940
940
|
/**
|
|
941
941
|
* RFC 0032: 清除匹配缓存
|
|
942
942
|
* 当路由配置变更时调用,确保使用最新的路由规则
|
|
943
943
|
*/
|
|
944
944
|
clearMatchCache() {
|
|
945
|
-
this.matchCache.clear(),
|
|
945
|
+
this.matchCache.clear(), k.debug("WsxRouter cleared match cache");
|
|
946
946
|
}
|
|
947
947
|
/**
|
|
948
948
|
* RFC 0033: 配置 View Transitions
|
|
949
949
|
*/
|
|
950
950
|
setViewTransitions(e) {
|
|
951
|
-
this.enableViewTransitions = e,
|
|
951
|
+
this.enableViewTransitions = e, k.debug(`View Transitions ${e ? "enabled" : "disabled"}`);
|
|
952
952
|
}
|
|
953
953
|
/**
|
|
954
954
|
* RFC 0033: 配置 Scroll Restoration
|
|
955
955
|
*/
|
|
956
956
|
setScrollRestoration(e) {
|
|
957
|
-
this.scrollRestoration = e, "scrollRestoration" in history && (history.scrollRestoration = e),
|
|
957
|
+
this.scrollRestoration = e, "scrollRestoration" in history && (history.scrollRestoration = e), k.debug(`Scroll Restoration set to ${e}`);
|
|
958
958
|
}
|
|
959
959
|
/**
|
|
960
960
|
* 编程式导航 - 使用原生 History API
|
|
@@ -963,22 +963,22 @@ class Lt extends oe {
|
|
|
963
963
|
window.history.pushState(null, "", e), this.handleRouteChange();
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
|
-
|
|
967
|
-
[Rt,
|
|
968
|
-
|
|
966
|
+
Me = Lt;
|
|
967
|
+
[Rt, qe] = wt(Me, [], Ue, 0, void 0, oe).c;
|
|
968
|
+
qe();
|
|
969
969
|
const Ce = ":host{display:block;width:100%;height:100%}.route-view{width:100%;height:100%;position:relative}:host([loading]) .route-view{opacity:.5;transition:opacity .3s ease}:host([error]) .route-view{border:1px solid var(--error-color, #ff0000);padding:1rem}.route-view.entering{animation:fadeIn .3s ease-out}.route-view.leaving{animation:fadeOut .3s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}";
|
|
970
|
-
var me,
|
|
971
|
-
let Oe,
|
|
970
|
+
var me, pe;
|
|
971
|
+
let Oe, He, Se;
|
|
972
972
|
function ee(t, e, n) {
|
|
973
973
|
return (e = Ke(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function _t(t, e, n, r, s, l) {
|
|
976
976
|
function m(o, c, f) {
|
|
977
977
|
return function(h, d) {
|
|
978
978
|
return f && f(h), o[c].call(h, d);
|
|
979
979
|
};
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function p(o, c) {
|
|
982
982
|
for (var f = 0; f < o.length; f++) o[f].call(c);
|
|
983
983
|
return c;
|
|
984
984
|
}
|
|
@@ -986,7 +986,7 @@ function kt(t, e, n, r, s, l) {
|
|
|
986
986
|
if (typeof o != "function" && (h || o !== void 0)) throw new TypeError(c + " must " + (f || "be") + " a function" + (h ? "" : " or undefined"));
|
|
987
987
|
return o;
|
|
988
988
|
}
|
|
989
|
-
function i(o, c, f, h, d, T, V, A, I, _,
|
|
989
|
+
function i(o, c, f, h, d, T, V, A, I, $, _, E, R) {
|
|
990
990
|
function j(b) {
|
|
991
991
|
if (!R(b)) throw new TypeError("Attempted to access private element on non-instance");
|
|
992
992
|
}
|
|
@@ -994,58 +994,58 @@ function kt(t, e, n, r, s, l) {
|
|
|
994
994
|
if (!P) {
|
|
995
995
|
f || Array.isArray(C) || (C = [C]);
|
|
996
996
|
var a = {}, S = [], L = d === 3 ? "get" : d === 4 || E ? "set" : "value";
|
|
997
|
-
|
|
997
|
+
$ ? (_ || E ? a = { get: We(function() {
|
|
998
998
|
return O(this);
|
|
999
999
|
}, h, "get"), set: function(b) {
|
|
1000
1000
|
c[4](this, b);
|
|
1001
|
-
} } : a[L] = O,
|
|
1001
|
+
} } : a[L] = O, _ || We(a[L], h, d === 2 ? "" : L)) : _ || (a = Object.getOwnPropertyDescriptor(o, h));
|
|
1002
1002
|
}
|
|
1003
|
-
for (var w = o,
|
|
1004
|
-
var J = C[
|
|
1003
|
+
for (var w = o, M = C.length - 1; M >= 0; M -= f ? 2 : 1) {
|
|
1004
|
+
var J = C[M], G = f ? C[M - 1] : void 0, Q = {}, D = { kind: ["field", "accessor", "method", "getter", "setter", "class"][d], name: h, metadata: T, addInitializer: (function(b, W) {
|
|
1005
1005
|
if (b.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
1006
1006
|
u(W, "An initializer", "be", !0), V.push(W);
|
|
1007
|
-
}).bind(null,
|
|
1007
|
+
}).bind(null, Q) };
|
|
1008
1008
|
try {
|
|
1009
|
-
if (P) (y = u(J.call(
|
|
1009
|
+
if (P) (y = u(J.call(G, w, D), "class decorators", "return")) && (w = y);
|
|
1010
1010
|
else {
|
|
1011
|
-
var
|
|
1012
|
-
D.static = I, D.private =
|
|
1011
|
+
var N, q;
|
|
1012
|
+
D.static = I, D.private = $, $ ? d === 2 ? N = function(b) {
|
|
1013
1013
|
return j(b), a.value;
|
|
1014
|
-
} : (d < 4 && (
|
|
1014
|
+
} : (d < 4 && (N = m(a, "get", j)), d !== 3 && (q = m(a, "set", j))) : (N = function(b) {
|
|
1015
1015
|
return b[h];
|
|
1016
|
-
}, (d < 2 || d === 4) && (
|
|
1016
|
+
}, (d < 2 || d === 4) && (q = function(b, W) {
|
|
1017
1017
|
b[h] = W;
|
|
1018
1018
|
}));
|
|
1019
|
-
var X = D.access = { has:
|
|
1019
|
+
var X = D.access = { has: $ ? R.bind() : function(b) {
|
|
1020
1020
|
return h in b;
|
|
1021
1021
|
} };
|
|
1022
|
-
if (
|
|
1022
|
+
if (N && (X.get = N), q && (X.set = q), w = J.call(G, E ? { get: a.get, set: a.set } : a[L], D), E) {
|
|
1023
1023
|
if (typeof w == "object" && w) (y = u(w.get, "accessor.get")) && (a.get = y), (y = u(w.set, "accessor.set")) && (a.set = y), (y = u(w.init, "accessor.init")) && S.push(y);
|
|
1024
1024
|
else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
1025
|
-
} else u(w, (
|
|
1025
|
+
} else u(w, (_ ? "field" : "method") + " decorators", "return") && (_ ? S.push(w) : a[L] = w);
|
|
1026
1026
|
}
|
|
1027
1027
|
} finally {
|
|
1028
|
-
|
|
1028
|
+
Q.v = !0;
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
return (
|
|
1032
|
-
for (var
|
|
1031
|
+
return (_ || E) && A.push(function(b, W) {
|
|
1032
|
+
for (var U = S.length - 1; U >= 0; U--) W = S[U].call(b, W);
|
|
1033
1033
|
return W;
|
|
1034
|
-
}),
|
|
1034
|
+
}), _ || P || ($ ? E ? A.push(m(a, "get"), m(a, "set")) : A.push(d === 2 ? a[L] : m.call.bind(a[L])) : Object.defineProperty(o, h, a)), w;
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function g(o, c) {
|
|
1037
1037
|
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
1038
1038
|
}
|
|
1039
1039
|
if (arguments.length >= 6) var v = l[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
1040
1040
|
var z = Object.create(v ?? null), x = function(o, c, f, h) {
|
|
1041
1041
|
var d, T, V = [], A = function(L) {
|
|
1042
|
-
return
|
|
1042
|
+
return kt(L) === o;
|
|
1043
1043
|
}, I = /* @__PURE__ */ new Map();
|
|
1044
|
-
function
|
|
1045
|
-
L && V.push(
|
|
1044
|
+
function $(L) {
|
|
1045
|
+
L && V.push(p.bind(null, L));
|
|
1046
1046
|
}
|
|
1047
|
-
for (var
|
|
1048
|
-
var E = c[
|
|
1047
|
+
for (var _ = 0; _ < c.length; _++) {
|
|
1048
|
+
var E = c[_];
|
|
1049
1049
|
if (Array.isArray(E)) {
|
|
1050
1050
|
var R = E[1], j = E[2], y = E.length > 3, C = 16 & R, O = !!(8 & R), P = (R &= 7) == 0, a = j + "/" + O;
|
|
1051
1051
|
if (!P && !y) {
|
|
@@ -1056,18 +1056,18 @@ function kt(t, e, n, r, s, l) {
|
|
|
1056
1056
|
i(O ? o : o.prototype, E, C, y ? "#" + j : Ke(j), R, h, O ? T = T || [] : d = d || [], V, O, y, P, R === 1, O && y ? A : f);
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
|
-
return
|
|
1059
|
+
return $(d), $(T), V;
|
|
1060
1060
|
}(t, e, s, z);
|
|
1061
|
-
return n.length ||
|
|
1061
|
+
return n.length || g(t, z), { e: x, get c() {
|
|
1062
1062
|
var o = [];
|
|
1063
|
-
return n.length && [
|
|
1063
|
+
return n.length && [g(i(t, [n], r, t.name, 5, z, o), z), p.bind(null, o, t)];
|
|
1064
1064
|
} };
|
|
1065
1065
|
}
|
|
1066
1066
|
function Ke(t) {
|
|
1067
|
-
var e =
|
|
1067
|
+
var e = $t(t, "string");
|
|
1068
1068
|
return typeof e == "symbol" ? e : e + "";
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function $t(t, e) {
|
|
1071
1071
|
if (typeof t != "object" || !t) return t;
|
|
1072
1072
|
var n = t[Symbol.toPrimitive];
|
|
1073
1073
|
if (n !== void 0) {
|
|
@@ -1085,19 +1085,19 @@ function We(t, e, n) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
return t;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function kt(t) {
|
|
1089
1089
|
if (Object(t) !== t) throw TypeError("right-hand side of 'in' should be an object, got " + (t !== null ? typeof t : "null"));
|
|
1090
1090
|
return t;
|
|
1091
1091
|
}
|
|
1092
1092
|
function jt(t) {
|
|
1093
1093
|
return t;
|
|
1094
1094
|
}
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1095
|
+
const F = he("WsxView");
|
|
1096
|
+
He = [we({
|
|
1097
1097
|
tagName: "wsx-view"
|
|
1098
1098
|
})];
|
|
1099
1099
|
let ze;
|
|
1100
|
-
new (Se = (
|
|
1100
|
+
new (Se = (pe = class extends oe {
|
|
1101
1101
|
// 防止重复加载的标志
|
|
1102
1102
|
constructor() {
|
|
1103
1103
|
super({
|
|
@@ -1124,59 +1124,59 @@ new (Se = (ge = class extends oe {
|
|
|
1124
1124
|
});
|
|
1125
1125
|
else if (e === "params" && this.componentInstance)
|
|
1126
1126
|
try {
|
|
1127
|
-
this.params = JSON.parse(r),
|
|
1127
|
+
this.params = JSON.parse(r), F.debug("WsxView: params attribute changed, setting on component:", this.params), Object.entries(this.params).forEach(([s, l]) => {
|
|
1128
1128
|
this.componentInstance.setAttribute(s, l);
|
|
1129
|
-
}),
|
|
1129
|
+
}), F.debug(`WsxView: params set on component ${this.componentInstance.tagName}`);
|
|
1130
1130
|
} catch (s) {
|
|
1131
|
-
|
|
1131
|
+
F.warn("Failed to parse params:", s);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
async loadComponent(e) {
|
|
1136
1136
|
if (!this.connected || this.isLoading || this.componentInstance) {
|
|
1137
|
-
|
|
1137
|
+
F.debug(`Skipping loadComponent for ${e}: connected=${this.connected}, isLoading=${this.isLoading}, hasInstance=${!!this.componentInstance}`);
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
|
-
|
|
1140
|
+
F.debug(`WsxView: Loading component ${e}`), this.isLoading = !0;
|
|
1141
1141
|
try {
|
|
1142
1142
|
const n = this.componentInstance;
|
|
1143
1143
|
if (n && (n.remove(), this.componentInstance = null), !customElements.get(e)) {
|
|
1144
|
-
|
|
1144
|
+
F.warn(`Component ${e} not found in customElements registry`), this.isLoading = !1;
|
|
1145
1145
|
return;
|
|
1146
1146
|
}
|
|
1147
|
-
|
|
1147
|
+
F.warn(`WsxView: Creating instance of ${e}`), this.componentInstance = document.createElement(e), Object.keys(this.params).length > 0 && (F.warn(`WsxView: Setting initial params on ${e}:`, this.params), Object.entries(this.params).forEach(([l, m]) => {
|
|
1148
1148
|
this.componentInstance.setAttribute(l, m);
|
|
1149
1149
|
}));
|
|
1150
1150
|
const s = this.querySelector(".route-view");
|
|
1151
1151
|
if (s) {
|
|
1152
|
-
if (
|
|
1153
|
-
|
|
1152
|
+
if (F.warn(`WsxView: Appending ${e} to container`), !customElements.get(e)) {
|
|
1153
|
+
F.error(`WsxView: Component ${e} is not registered in customElements registry!`), this.isLoading = !1, this.componentInstance = null;
|
|
1154
1154
|
return;
|
|
1155
1155
|
}
|
|
1156
|
-
s.appendChild(this.componentInstance),
|
|
1157
|
-
this.componentInstance && this.componentInstance.isConnected ?
|
|
1156
|
+
s.appendChild(this.componentInstance), F.warn(`WsxView: Component ${e} appended successfully, waiting for connectedCallback...`), setTimeout(() => {
|
|
1157
|
+
this.componentInstance && this.componentInstance.isConnected ? F.warn(`WsxView: Component ${e} is now connected to DOM`) : F.error(`WsxView: Component ${e} was not connected to DOM!`);
|
|
1158
1158
|
}, 0);
|
|
1159
1159
|
} else
|
|
1160
|
-
|
|
1160
|
+
F.error("WsxView: Route view container not found"), this.componentInstance = null;
|
|
1161
1161
|
} catch (n) {
|
|
1162
|
-
|
|
1162
|
+
F.warn(`Error loading component ${e}:`, n), this.componentInstance = null;
|
|
1163
1163
|
} finally {
|
|
1164
|
-
this.isLoading = !1,
|
|
1164
|
+
this.isLoading = !1, F.warn(`WsxView: loadComponent for ${e} completed, isLoading=${this.isLoading}`);
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
onDisconnected() {
|
|
1168
1168
|
this.componentInstance && (this.componentInstance.remove(), this.componentInstance = null);
|
|
1169
1169
|
}
|
|
1170
|
-
}, [ze, Oe] =
|
|
1170
|
+
}, [ze, Oe] = _t(pe, [], He, 0, void 0, oe).c, pe), me = class extends jt {
|
|
1171
1171
|
constructor() {
|
|
1172
1172
|
super(ze), ee(this, "observedAttributes", ["route", "component", "params"]), Oe();
|
|
1173
1173
|
}
|
|
1174
1174
|
}, ee(me, Se, void 0), me)();
|
|
1175
1175
|
const Ct = ':host{display:inline-block;min-width:fit-content;min-height:fit-content;width:auto;height:auto}.wsx-link{color:var(--link-color, #007bff);text-decoration:var(--link-decoration, underline);cursor:pointer;transition:color .2s ease;display:inline-block;min-height:1.2em;line-height:1.2}.wsx-link:hover{color:var(--link-hover-color, #0056b3);text-decoration:var(--link-hover-decoration, underline)}.wsx-link:focus{outline:2px solid var(--link-focus-color, var(--focus-color, #dc2626));outline-offset:2px}.wsx-link.active{color:var(--link-active-color, #6c757d);font-weight:var(--link-active-weight, bold)}:host([disabled]) .wsx-link{color:var(--link-disabled-color, #6c757d);cursor:not-allowed;pointer-events:none}:host([external]) .wsx-link:after{content:"↗";font-size:.8em;margin-left:.2em;opacity:.7}:host([variant="button"]) .wsx-link{background-color:var(--button-bg, #007bff);color:var(--button-color, white);padding:.5rem 1rem;border-radius:.25rem;text-decoration:none;display:inline-block}:host([variant="button"]) .wsx-link:hover{background-color:var(--button-hover-bg, #0056b3);color:var(--button-hover-color, white)}:host([variant="tab"]) .wsx-link{padding:.5rem 1rem;border-bottom:2px solid transparent;text-decoration:none}:host([variant="tab"]) .wsx-link.active{border-bottom-color:var(--tab-active-border, #007bff)}';
|
|
1176
|
-
var
|
|
1176
|
+
var ge, ve;
|
|
1177
1177
|
let Ae, Je, Te;
|
|
1178
|
-
function
|
|
1179
|
-
return (e =
|
|
1178
|
+
function H(t, e, n) {
|
|
1179
|
+
return (e = Ge(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
1180
1180
|
}
|
|
1181
1181
|
function Ot(t, e, n, r, s, l) {
|
|
1182
1182
|
function m(o, c, f) {
|
|
@@ -1184,7 +1184,7 @@ function Ot(t, e, n, r, s, l) {
|
|
|
1184
1184
|
return f && f(h), o[c].call(h, d);
|
|
1185
1185
|
};
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function p(o, c) {
|
|
1188
1188
|
for (var f = 0; f < o.length; f++) o[f].call(c);
|
|
1189
1189
|
return c;
|
|
1190
1190
|
}
|
|
@@ -1192,7 +1192,7 @@ function Ot(t, e, n, r, s, l) {
|
|
|
1192
1192
|
if (typeof o != "function" && (h || o !== void 0)) throw new TypeError(c + " must " + (f || "be") + " a function" + (h ? "" : " or undefined"));
|
|
1193
1193
|
return o;
|
|
1194
1194
|
}
|
|
1195
|
-
function i(o, c, f, h, d, T, V, A, I, _,
|
|
1195
|
+
function i(o, c, f, h, d, T, V, A, I, $, _, E, R) {
|
|
1196
1196
|
function j(b) {
|
|
1197
1197
|
if (!R(b)) throw new TypeError("Attempted to access private element on non-instance");
|
|
1198
1198
|
}
|
|
@@ -1200,46 +1200,46 @@ function Ot(t, e, n, r, s, l) {
|
|
|
1200
1200
|
if (!P) {
|
|
1201
1201
|
f || Array.isArray(C) || (C = [C]);
|
|
1202
1202
|
var a = {}, S = [], L = d === 3 ? "get" : d === 4 || E ? "set" : "value";
|
|
1203
|
-
|
|
1203
|
+
$ ? (_ || E ? a = { get: Ve(function() {
|
|
1204
1204
|
return O(this);
|
|
1205
1205
|
}, h, "get"), set: function(b) {
|
|
1206
1206
|
c[4](this, b);
|
|
1207
|
-
} } : a[L] = O,
|
|
1207
|
+
} } : a[L] = O, _ || Ve(a[L], h, d === 2 ? "" : L)) : _ || (a = Object.getOwnPropertyDescriptor(o, h));
|
|
1208
1208
|
}
|
|
1209
|
-
for (var w = o,
|
|
1210
|
-
var J = C[
|
|
1209
|
+
for (var w = o, M = C.length - 1; M >= 0; M -= f ? 2 : 1) {
|
|
1210
|
+
var J = C[M], G = f ? C[M - 1] : void 0, Q = {}, D = { kind: ["field", "accessor", "method", "getter", "setter", "class"][d], name: h, metadata: T, addInitializer: (function(b, W) {
|
|
1211
1211
|
if (b.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
1212
1212
|
u(W, "An initializer", "be", !0), V.push(W);
|
|
1213
|
-
}).bind(null,
|
|
1213
|
+
}).bind(null, Q) };
|
|
1214
1214
|
try {
|
|
1215
|
-
if (P) (y = u(J.call(
|
|
1215
|
+
if (P) (y = u(J.call(G, w, D), "class decorators", "return")) && (w = y);
|
|
1216
1216
|
else {
|
|
1217
|
-
var
|
|
1218
|
-
D.static = I, D.private =
|
|
1217
|
+
var N, q;
|
|
1218
|
+
D.static = I, D.private = $, $ ? d === 2 ? N = function(b) {
|
|
1219
1219
|
return j(b), a.value;
|
|
1220
|
-
} : (d < 4 && (
|
|
1220
|
+
} : (d < 4 && (N = m(a, "get", j)), d !== 3 && (q = m(a, "set", j))) : (N = function(b) {
|
|
1221
1221
|
return b[h];
|
|
1222
|
-
}, (d < 2 || d === 4) && (
|
|
1222
|
+
}, (d < 2 || d === 4) && (q = function(b, W) {
|
|
1223
1223
|
b[h] = W;
|
|
1224
1224
|
}));
|
|
1225
|
-
var X = D.access = { has:
|
|
1225
|
+
var X = D.access = { has: $ ? R.bind() : function(b) {
|
|
1226
1226
|
return h in b;
|
|
1227
1227
|
} };
|
|
1228
|
-
if (
|
|
1228
|
+
if (N && (X.get = N), q && (X.set = q), w = J.call(G, E ? { get: a.get, set: a.set } : a[L], D), E) {
|
|
1229
1229
|
if (typeof w == "object" && w) (y = u(w.get, "accessor.get")) && (a.get = y), (y = u(w.set, "accessor.set")) && (a.set = y), (y = u(w.init, "accessor.init")) && S.push(y);
|
|
1230
1230
|
else if (w !== void 0) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
1231
|
-
} else u(w, (
|
|
1231
|
+
} else u(w, (_ ? "field" : "method") + " decorators", "return") && (_ ? S.push(w) : a[L] = w);
|
|
1232
1232
|
}
|
|
1233
1233
|
} finally {
|
|
1234
|
-
|
|
1234
|
+
Q.v = !0;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
return (
|
|
1238
|
-
for (var
|
|
1237
|
+
return (_ || E) && A.push(function(b, W) {
|
|
1238
|
+
for (var U = S.length - 1; U >= 0; U--) W = S[U].call(b, W);
|
|
1239
1239
|
return W;
|
|
1240
|
-
}),
|
|
1240
|
+
}), _ || P || ($ ? E ? A.push(m(a, "get"), m(a, "set")) : A.push(d === 2 ? a[L] : m.call.bind(a[L])) : Object.defineProperty(o, h, a)), w;
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function g(o, c) {
|
|
1243
1243
|
return Object.defineProperty(o, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: c });
|
|
1244
1244
|
}
|
|
1245
1245
|
if (arguments.length >= 6) var v = l[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
@@ -1247,11 +1247,11 @@ function Ot(t, e, n, r, s, l) {
|
|
|
1247
1247
|
var d, T, V = [], A = function(L) {
|
|
1248
1248
|
return Wt(L) === o;
|
|
1249
1249
|
}, I = /* @__PURE__ */ new Map();
|
|
1250
|
-
function
|
|
1251
|
-
L && V.push(
|
|
1250
|
+
function $(L) {
|
|
1251
|
+
L && V.push(p.bind(null, L));
|
|
1252
1252
|
}
|
|
1253
|
-
for (var
|
|
1254
|
-
var E = c[
|
|
1253
|
+
for (var _ = 0; _ < c.length; _++) {
|
|
1254
|
+
var E = c[_];
|
|
1255
1255
|
if (Array.isArray(E)) {
|
|
1256
1256
|
var R = E[1], j = E[2], y = E.length > 3, C = 16 & R, O = !!(8 & R), P = (R &= 7) == 0, a = j + "/" + O;
|
|
1257
1257
|
if (!P && !y) {
|
|
@@ -1259,17 +1259,17 @@ function Ot(t, e, n, r, s, l) {
|
|
|
1259
1259
|
if (S === !0 || S === 3 && R !== 4 || S === 4 && R !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + j);
|
|
1260
1260
|
I.set(a, !(R > 2) || R);
|
|
1261
1261
|
}
|
|
1262
|
-
i(O ? o : o.prototype, E, C, y ? "#" + j :
|
|
1262
|
+
i(O ? o : o.prototype, E, C, y ? "#" + j : Ge(j), R, h, O ? T = T || [] : d = d || [], V, O, y, P, R === 1, O && y ? A : f);
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
|
-
return
|
|
1265
|
+
return $(d), $(T), V;
|
|
1266
1266
|
}(t, e, s, z);
|
|
1267
|
-
return n.length ||
|
|
1267
|
+
return n.length || g(t, z), { e: x, get c() {
|
|
1268
1268
|
var o = [];
|
|
1269
|
-
return n.length && [
|
|
1269
|
+
return n.length && [g(i(t, [n], r, t.name, 5, z, o), z), p.bind(null, o, t)];
|
|
1270
1270
|
} };
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Ge(t) {
|
|
1273
1273
|
var e = St(t, "string");
|
|
1274
1274
|
return typeof e == "symbol" ? e : e + "";
|
|
1275
1275
|
}
|
|
@@ -1305,7 +1305,7 @@ Je = [we({
|
|
|
1305
1305
|
let Pe;
|
|
1306
1306
|
new (Te = (ve = class extends Re {
|
|
1307
1307
|
constructor() {
|
|
1308
|
-
super(),
|
|
1308
|
+
super(), H(this, "_autoStyles", Ct), H(this, "to", void 0), H(this, "replace", void 0), H(this, "activeClass", void 0), H(this, "exact", void 0), H(this, "handleClick", (i) => {
|
|
1309
1309
|
if (i.preventDefault(), !this.to) {
|
|
1310
1310
|
Ie.warn("No 'to' attribute specified");
|
|
1311
1311
|
return;
|
|
@@ -1315,10 +1315,10 @@ new (Te = (ve = class extends Re {
|
|
|
1315
1315
|
return;
|
|
1316
1316
|
}
|
|
1317
1317
|
this.replace ? window.history.replaceState(null, "", this.to) : window.history.pushState(null, "", this.to), window.dispatchEvent(new PopStateEvent("popstate")), Ie.debug(`Navigated to: ${this.to}`);
|
|
1318
|
-
}),
|
|
1318
|
+
}), H(this, "updateActiveState", () => {
|
|
1319
1319
|
var z;
|
|
1320
|
-
const i = window.location.pathname,
|
|
1321
|
-
v && (
|
|
1320
|
+
const i = window.location.pathname, g = this.exact ? i === this.to : i.startsWith(this.to) && this.to !== "/", v = (z = this.shadowRoot) == null ? void 0 : z.querySelector("a");
|
|
1321
|
+
v && (g ? (v.classList.add(this.activeClass), this.setAttribute("active", "")) : (v.classList.remove(this.activeClass), this.removeAttribute("active")));
|
|
1322
1322
|
});
|
|
1323
1323
|
const [e, n] = this.useState("to", "");
|
|
1324
1324
|
Object.defineProperty(this, "to", {
|
|
@@ -1341,9 +1341,9 @@ new (Te = (ve = class extends Re {
|
|
|
1341
1341
|
enumerable: !0,
|
|
1342
1342
|
configurable: !0
|
|
1343
1343
|
});
|
|
1344
|
-
const [
|
|
1344
|
+
const [p, u] = this.useState("exact", !1);
|
|
1345
1345
|
Object.defineProperty(this, "exact", {
|
|
1346
|
-
get:
|
|
1346
|
+
get: p,
|
|
1347
1347
|
set: u,
|
|
1348
1348
|
enumerable: !0,
|
|
1349
1349
|
configurable: !0
|
|
@@ -1388,11 +1388,11 @@ new (Te = (ve = class extends Re {
|
|
|
1388
1388
|
cancelable: !0
|
|
1389
1389
|
}));
|
|
1390
1390
|
}
|
|
1391
|
-
}, [Pe, Ae] = Ot(ve, [], Je, 0, void 0, Re).c, ve),
|
|
1391
|
+
}, [Pe, Ae] = Ot(ve, [], Je, 0, void 0, Re).c, ve), ge = class extends zt {
|
|
1392
1392
|
constructor() {
|
|
1393
|
-
super(Pe),
|
|
1393
|
+
super(Pe), H(this, "observedAttributes", ["to", "replace", "active-class", "exact"]), Ae();
|
|
1394
1394
|
}
|
|
1395
|
-
},
|
|
1395
|
+
}, H(ge, Te, void 0), ge)();
|
|
1396
1396
|
export {
|
|
1397
1397
|
le as RouterUtils,
|
|
1398
1398
|
Pe as WsxLink,
|