@vtj/renderer 0.18.3 → 0.18.5
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 +9 -9
- package/dist/index.mjs +164 -161
- package/package.json +5 -5
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -7,10 +7,10 @@ import { useRoute as os } from "vue-router";
|
|
|
7
7
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
8
8
|
* @name @vtj/renderer
|
|
9
9
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
10
|
-
* @version 0.18.
|
|
10
|
+
* @version 0.18.5
|
|
11
11
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
12
12
|
*/
|
|
13
|
-
const Ce = "0.18.
|
|
13
|
+
const Ce = "0.18.5";
|
|
14
14
|
var P = /* @__PURE__ */ ((t) => (t.Runtime = "Runtime", t.Design = "Design", t.Raw = "Raw", t.VNode = "VNode", t))(P || {});
|
|
15
15
|
const zt = [
|
|
16
16
|
"$el",
|
|
@@ -177,10 +177,10 @@ function vi(t, e = !1) {
|
|
|
177
177
|
function bi(t, e, s = !1) {
|
|
178
178
|
const i = t.filter((d) => !!d.enabled), r = [], n = [], a = [], u = [], c = {}, l = {}, h = [], p = {};
|
|
179
179
|
return i.forEach(
|
|
180
|
-
({ urls: d, assetsUrl: f, library: m, assetsLibrary: g, localeLibrary:
|
|
181
|
-
d?.forEach((
|
|
182
|
-
qe(
|
|
183
|
-
}), m && (u.push(m), c[m] = Le(d || [], e),
|
|
180
|
+
({ urls: d, assetsUrl: f, library: m, assetsLibrary: g, localeLibrary: v }) => {
|
|
181
|
+
d?.forEach((w) => {
|
|
182
|
+
qe(w) && r.push(vi(w, s)), Ge(w) && n.push(w);
|
|
183
|
+
}), m && (u.push(m), c[m] = Le(d || [], e), v && (l[m] = v)), f && a.push(f), g && h.push(g), m && g && (p[g] = m);
|
|
184
184
|
}
|
|
185
185
|
), {
|
|
186
186
|
scripts: Le(r, e),
|
|
@@ -214,28 +214,28 @@ function Si(t, e) {
|
|
|
214
214
|
continue;
|
|
215
215
|
}
|
|
216
216
|
if (l.substring(p, p + 2) === "/*") {
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
219
|
-
p =
|
|
217
|
+
const w = l.indexOf("*/", p + 2);
|
|
218
|
+
if (w !== -1) {
|
|
219
|
+
p = w + 2;
|
|
220
220
|
continue;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
if (l[p] === "@") {
|
|
224
|
-
const
|
|
224
|
+
const w = p;
|
|
225
225
|
for (; p < l.length && l[p] !== "{" && l[p] !== ";"; )
|
|
226
226
|
p++;
|
|
227
|
-
const A = l.substring(
|
|
227
|
+
const A = l.substring(w, p).trim(), R = A.includes("@keyframes");
|
|
228
228
|
if (l[p] === ";")
|
|
229
229
|
h.push({
|
|
230
230
|
type: "simple-at-rule",
|
|
231
|
-
content: l.substring(
|
|
231
|
+
content: l.substring(w, p + 1)
|
|
232
232
|
}), p++;
|
|
233
233
|
else if (l[p] === "{") {
|
|
234
234
|
const C = p + 1;
|
|
235
235
|
let U = 1;
|
|
236
236
|
for (p++; p < l.length && U > 0; )
|
|
237
237
|
l[p] === "{" ? U++ : l[p] === "}" && U--, p++;
|
|
238
|
-
const pe = l.substring(
|
|
238
|
+
const pe = l.substring(w, p), ye = l.substring(C, p - 1);
|
|
239
239
|
h.push({
|
|
240
240
|
type: R ? "keyframes" : "at-rule",
|
|
241
241
|
rule: A,
|
|
@@ -258,11 +258,11 @@ function Si(t, e) {
|
|
|
258
258
|
let g = 1;
|
|
259
259
|
for (p++; p < l.length && g > 0; )
|
|
260
260
|
l[p] === "{" ? g++ : l[p] === "}" && g--, p++;
|
|
261
|
-
const
|
|
261
|
+
const v = l.substring(m, p - 1);
|
|
262
262
|
h.push({
|
|
263
263
|
type: "rule",
|
|
264
264
|
selector: f,
|
|
265
|
-
content:
|
|
265
|
+
content: v.trim()
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
return h;
|
|
@@ -458,41 +458,41 @@ function ne(t, e) {
|
|
|
458
458
|
function ve(t, e) {
|
|
459
459
|
return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Li.test(String.fromCharCode(t)) : e === !1 ? !1 : ft(t, fs) || ft(t, ji);
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var E = function(e, s) {
|
|
462
462
|
s === void 0 && (s = {}), this.label = e, this.keyword = s.keyword, this.beforeExpr = !!s.beforeExpr, this.startsExpr = !!s.startsExpr, this.isLoop = !!s.isLoop, this.isAssign = !!s.isAssign, this.prefix = !!s.prefix, this.postfix = !!s.postfix, this.binop = s.binop || null, this.updateContext = null;
|
|
463
463
|
};
|
|
464
464
|
function D(t, e) {
|
|
465
|
-
return new
|
|
465
|
+
return new E(t, { beforeExpr: !0, binop: e });
|
|
466
466
|
}
|
|
467
467
|
var B = { beforeExpr: !0 }, M = { startsExpr: !0 }, kt = {};
|
|
468
468
|
function S(t, e) {
|
|
469
|
-
return e === void 0 && (e = {}), e.keyword = t, kt[t] = new
|
|
469
|
+
return e === void 0 && (e = {}), e.keyword = t, kt[t] = new E(t, e);
|
|
470
470
|
}
|
|
471
471
|
var o = {
|
|
472
|
-
num: new
|
|
473
|
-
regexp: new
|
|
474
|
-
string: new
|
|
475
|
-
name: new
|
|
476
|
-
eof: new
|
|
472
|
+
num: new E("num", M),
|
|
473
|
+
regexp: new E("regexp", M),
|
|
474
|
+
string: new E("string", M),
|
|
475
|
+
name: new E("name", M),
|
|
476
|
+
eof: new E("eof"),
|
|
477
477
|
// Punctuation token types.
|
|
478
|
-
bracketL: new
|
|
479
|
-
bracketR: new
|
|
480
|
-
braceL: new
|
|
481
|
-
braceR: new
|
|
482
|
-
parenL: new
|
|
483
|
-
parenR: new
|
|
484
|
-
comma: new
|
|
485
|
-
semi: new
|
|
486
|
-
colon: new
|
|
487
|
-
dot: new
|
|
488
|
-
question: new
|
|
489
|
-
questionDot: new
|
|
490
|
-
arrow: new
|
|
491
|
-
template: new
|
|
492
|
-
invalidTemplate: new
|
|
493
|
-
ellipsis: new
|
|
494
|
-
backQuote: new
|
|
495
|
-
dollarBraceL: new
|
|
478
|
+
bracketL: new E("[", { beforeExpr: !0, startsExpr: !0 }),
|
|
479
|
+
bracketR: new E("]"),
|
|
480
|
+
braceL: new E("{", { beforeExpr: !0, startsExpr: !0 }),
|
|
481
|
+
braceR: new E("}"),
|
|
482
|
+
parenL: new E("(", { beforeExpr: !0, startsExpr: !0 }),
|
|
483
|
+
parenR: new E(")"),
|
|
484
|
+
comma: new E(",", B),
|
|
485
|
+
semi: new E(";", B),
|
|
486
|
+
colon: new E(":", B),
|
|
487
|
+
dot: new E("."),
|
|
488
|
+
question: new E("?", B),
|
|
489
|
+
questionDot: new E("?."),
|
|
490
|
+
arrow: new E("=>", B),
|
|
491
|
+
template: new E("template"),
|
|
492
|
+
invalidTemplate: new E("invalidTemplate"),
|
|
493
|
+
ellipsis: new E("...", B),
|
|
494
|
+
backQuote: new E("`", M),
|
|
495
|
+
dollarBraceL: new E("${", { beforeExpr: !0, startsExpr: !0 }),
|
|
496
496
|
// Operators. These carry several kinds of properties to help the
|
|
497
497
|
// parser use them properly (the presence of these properties is
|
|
498
498
|
// what categorizes them as operators).
|
|
@@ -506,10 +506,10 @@ var o = {
|
|
|
506
506
|
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
|
507
507
|
// binary operators with a very low precedence, that should result
|
|
508
508
|
// in AssignmentExpression nodes.
|
|
509
|
-
eq: new
|
|
510
|
-
assign: new
|
|
511
|
-
incDec: new
|
|
512
|
-
prefix: new
|
|
509
|
+
eq: new E("=", { beforeExpr: !0, isAssign: !0 }),
|
|
510
|
+
assign: new E("_=", { beforeExpr: !0, isAssign: !0 }),
|
|
511
|
+
incDec: new E("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
|
|
512
|
+
prefix: new E("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
513
513
|
logicalOR: D("||", 1),
|
|
514
514
|
logicalAND: D("&&", 2),
|
|
515
515
|
bitwiseOR: D("|", 3),
|
|
@@ -518,11 +518,11 @@ var o = {
|
|
|
518
518
|
equality: D("==/!=/===/!==", 6),
|
|
519
519
|
relational: D("</>/<=/>=", 7),
|
|
520
520
|
bitShift: D("<</>>/>>>", 8),
|
|
521
|
-
plusMin: new
|
|
521
|
+
plusMin: new E("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
522
522
|
modulo: D("%", 10),
|
|
523
523
|
star: D("*", 10),
|
|
524
524
|
slash: D("/", 10),
|
|
525
|
-
starstar: new
|
|
525
|
+
starstar: new E("**", { beforeExpr: !0 }),
|
|
526
526
|
coalesce: D("??", 1),
|
|
527
527
|
// Keyword token types.
|
|
528
528
|
_break: S("break"),
|
|
@@ -1490,8 +1490,8 @@ y.parseSubscript = function(t, e, s, i, r, n) {
|
|
|
1490
1490
|
g.callee = t, g.arguments = m, a && (g.optional = u), t = this.finishNode(g, "CallExpression");
|
|
1491
1491
|
} else if (this.type === o.backQuote) {
|
|
1492
1492
|
(u || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
1493
|
-
var
|
|
1494
|
-
|
|
1493
|
+
var v = this.startNodeAt(e, s);
|
|
1494
|
+
v.tag = t, v.quasi = this.parseTemplate({ isTagged: !0 }), t = this.finishNode(v, "TaggedTemplateExpression");
|
|
1495
1495
|
}
|
|
1496
1496
|
return t;
|
|
1497
1497
|
};
|
|
@@ -1600,8 +1600,8 @@ y.parseParenAndDistinguishExpression = function(t) {
|
|
|
1600
1600
|
} else
|
|
1601
1601
|
i = this.parseParenExpression();
|
|
1602
1602
|
if (this.options.preserveParens) {
|
|
1603
|
-
var
|
|
1604
|
-
return
|
|
1603
|
+
var v = this.startNodeAt(e, s);
|
|
1604
|
+
return v.expression = i, this.finishNode(v, "ParenthesizedExpression");
|
|
1605
1605
|
} else
|
|
1606
1606
|
return i;
|
|
1607
1607
|
};
|
|
@@ -1939,7 +1939,7 @@ function Rt(t) {
|
|
|
1939
1939
|
Rt(9);
|
|
1940
1940
|
Rt(10);
|
|
1941
1941
|
Rt(11);
|
|
1942
|
-
var
|
|
1942
|
+
var x = I.prototype, te = function(e) {
|
|
1943
1943
|
this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : ""), this.unicodeProperties = Rs[e.options.ecmaVersion >= 11 ? 11 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = [], this.backReferenceNames = [];
|
|
1944
1944
|
};
|
|
1945
1945
|
te.prototype.reset = function(e, s, i) {
|
|
@@ -1983,16 +1983,16 @@ te.prototype.eat = function(e, s) {
|
|
|
1983
1983
|
function $e(t) {
|
|
1984
1984
|
return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
|
|
1985
1985
|
}
|
|
1986
|
-
|
|
1986
|
+
x.validateRegExpFlags = function(t) {
|
|
1987
1987
|
for (var e = t.validFlags, s = t.flags, i = 0; i < s.length; i++) {
|
|
1988
1988
|
var r = s.charAt(i);
|
|
1989
1989
|
e.indexOf(r) === -1 && this.raise(t.start, "Invalid regular expression flag"), s.indexOf(r, i + 1) > -1 && this.raise(t.start, "Duplicate regular expression flag");
|
|
1990
1990
|
}
|
|
1991
1991
|
};
|
|
1992
|
-
|
|
1992
|
+
x.validateRegExpPattern = function(t) {
|
|
1993
1993
|
this.regexp_pattern(t), !t.switchN && this.options.ecmaVersion >= 9 && t.groupNames.length > 0 && (t.switchN = !0, this.regexp_pattern(t));
|
|
1994
1994
|
};
|
|
1995
|
-
|
|
1995
|
+
x.regexp_pattern = function(t) {
|
|
1996
1996
|
t.pos = 0, t.lastIntValue = 0, t.lastStringValue = "", t.lastAssertionIsQuantifiable = !1, t.numCapturingParens = 0, t.maxBackReference = 0, t.groupNames.length = 0, t.backReferenceNames.length = 0, this.regexp_disjunction(t), t.pos !== t.source.length && (t.eat(
|
|
1997
1997
|
41
|
|
1998
1998
|
/* ) */
|
|
@@ -2008,7 +2008,7 @@ v.regexp_pattern = function(t) {
|
|
|
2008
2008
|
t.groupNames.indexOf(i) === -1 && t.raise("Invalid named capture referenced");
|
|
2009
2009
|
}
|
|
2010
2010
|
};
|
|
2011
|
-
|
|
2011
|
+
x.regexp_disjunction = function(t) {
|
|
2012
2012
|
for (this.regexp_alternative(t); t.eat(
|
|
2013
2013
|
124
|
|
2014
2014
|
/* | */
|
|
@@ -2019,14 +2019,14 @@ v.regexp_disjunction = function(t) {
|
|
|
2019
2019
|
/* { */
|
|
2020
2020
|
) && t.raise("Lone quantifier brackets");
|
|
2021
2021
|
};
|
|
2022
|
-
|
|
2022
|
+
x.regexp_alternative = function(t) {
|
|
2023
2023
|
for (; t.pos < t.source.length && this.regexp_eatTerm(t); )
|
|
2024
2024
|
;
|
|
2025
2025
|
};
|
|
2026
|
-
|
|
2026
|
+
x.regexp_eatTerm = function(t) {
|
|
2027
2027
|
return this.regexp_eatAssertion(t) ? (t.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(t) && t.switchU && t.raise("Invalid quantifier"), !0) : (t.switchU ? this.regexp_eatAtom(t) : this.regexp_eatExtendedAtom(t)) ? (this.regexp_eatQuantifier(t), !0) : !1;
|
|
2028
2028
|
};
|
|
2029
|
-
|
|
2029
|
+
x.regexp_eatAssertion = function(t) {
|
|
2030
2030
|
var e = t.pos;
|
|
2031
2031
|
if (t.lastAssertionIsQuantifiable = !1, t.eat(
|
|
2032
2032
|
94
|
|
@@ -2075,13 +2075,13 @@ v.regexp_eatAssertion = function(t) {
|
|
|
2075
2075
|
}
|
|
2076
2076
|
return t.pos = e, !1;
|
|
2077
2077
|
};
|
|
2078
|
-
|
|
2078
|
+
x.regexp_eatQuantifier = function(t, e) {
|
|
2079
2079
|
return e === void 0 && (e = !1), this.regexp_eatQuantifierPrefix(t, e) ? (t.eat(
|
|
2080
2080
|
63
|
|
2081
2081
|
/* ? */
|
|
2082
2082
|
), !0) : !1;
|
|
2083
2083
|
};
|
|
2084
|
-
|
|
2084
|
+
x.regexp_eatQuantifierPrefix = function(t, e) {
|
|
2085
2085
|
return t.eat(
|
|
2086
2086
|
42
|
|
2087
2087
|
/* * */
|
|
@@ -2093,7 +2093,7 @@ v.regexp_eatQuantifierPrefix = function(t, e) {
|
|
|
2093
2093
|
/* ? */
|
|
2094
2094
|
) || this.regexp_eatBracedQuantifier(t, e);
|
|
2095
2095
|
};
|
|
2096
|
-
|
|
2096
|
+
x.regexp_eatBracedQuantifier = function(t, e) {
|
|
2097
2097
|
var s = t.pos;
|
|
2098
2098
|
if (t.eat(
|
|
2099
2099
|
123
|
|
@@ -2112,13 +2112,13 @@ v.regexp_eatBracedQuantifier = function(t, e) {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
return !1;
|
|
2114
2114
|
};
|
|
2115
|
-
|
|
2115
|
+
x.regexp_eatAtom = function(t) {
|
|
2116
2116
|
return this.regexp_eatPatternCharacters(t) || t.eat(
|
|
2117
2117
|
46
|
|
2118
2118
|
/* . */
|
|
2119
2119
|
) || this.regexp_eatReverseSolidusAtomEscape(t) || this.regexp_eatCharacterClass(t) || this.regexp_eatUncapturingGroup(t) || this.regexp_eatCapturingGroup(t);
|
|
2120
2120
|
};
|
|
2121
|
-
|
|
2121
|
+
x.regexp_eatReverseSolidusAtomEscape = function(t) {
|
|
2122
2122
|
var e = t.pos;
|
|
2123
2123
|
if (t.eat(
|
|
2124
2124
|
92
|
|
@@ -2130,7 +2130,7 @@ v.regexp_eatReverseSolidusAtomEscape = function(t) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
return !1;
|
|
2132
2132
|
};
|
|
2133
|
-
|
|
2133
|
+
x.regexp_eatUncapturingGroup = function(t) {
|
|
2134
2134
|
var e = t.pos;
|
|
2135
2135
|
if (t.eat(
|
|
2136
2136
|
40
|
|
@@ -2154,7 +2154,7 @@ v.regexp_eatUncapturingGroup = function(t) {
|
|
|
2154
2154
|
}
|
|
2155
2155
|
return !1;
|
|
2156
2156
|
};
|
|
2157
|
-
|
|
2157
|
+
x.regexp_eatCapturingGroup = function(t) {
|
|
2158
2158
|
if (t.eat(
|
|
2159
2159
|
40
|
|
2160
2160
|
/* ( */
|
|
@@ -2168,32 +2168,32 @@ v.regexp_eatCapturingGroup = function(t) {
|
|
|
2168
2168
|
}
|
|
2169
2169
|
return !1;
|
|
2170
2170
|
};
|
|
2171
|
-
|
|
2171
|
+
x.regexp_eatExtendedAtom = function(t) {
|
|
2172
2172
|
return t.eat(
|
|
2173
2173
|
46
|
|
2174
2174
|
/* . */
|
|
2175
2175
|
) || this.regexp_eatReverseSolidusAtomEscape(t) || this.regexp_eatCharacterClass(t) || this.regexp_eatUncapturingGroup(t) || this.regexp_eatCapturingGroup(t) || this.regexp_eatInvalidBracedQuantifier(t) || this.regexp_eatExtendedPatternCharacter(t);
|
|
2176
2176
|
};
|
|
2177
|
-
|
|
2177
|
+
x.regexp_eatInvalidBracedQuantifier = function(t) {
|
|
2178
2178
|
return this.regexp_eatBracedQuantifier(t, !0) && t.raise("Nothing to repeat"), !1;
|
|
2179
2179
|
};
|
|
2180
|
-
|
|
2180
|
+
x.regexp_eatSyntaxCharacter = function(t) {
|
|
2181
2181
|
var e = t.current();
|
|
2182
2182
|
return Vs(e) ? (t.lastIntValue = e, t.advance(), !0) : !1;
|
|
2183
2183
|
};
|
|
2184
2184
|
function Vs(t) {
|
|
2185
2185
|
return t === 36 || t >= 40 && t <= 43 || t === 46 || t === 63 || t >= 91 && t <= 94 || t >= 123 && t <= 125;
|
|
2186
2186
|
}
|
|
2187
|
-
|
|
2187
|
+
x.regexp_eatPatternCharacters = function(t) {
|
|
2188
2188
|
for (var e = t.pos, s = 0; (s = t.current()) !== -1 && !Vs(s); )
|
|
2189
2189
|
t.advance();
|
|
2190
2190
|
return t.pos !== e;
|
|
2191
2191
|
};
|
|
2192
|
-
|
|
2192
|
+
x.regexp_eatExtendedPatternCharacter = function(t) {
|
|
2193
2193
|
var e = t.current();
|
|
2194
2194
|
return e !== -1 && e !== 36 && !(e >= 40 && e <= 43) && e !== 46 && e !== 63 && e !== 91 && e !== 94 && e !== 124 ? (t.advance(), !0) : !1;
|
|
2195
2195
|
};
|
|
2196
|
-
|
|
2196
|
+
x.regexp_groupSpecifier = function(t) {
|
|
2197
2197
|
if (t.eat(
|
|
2198
2198
|
63
|
|
2199
2199
|
/* ? */
|
|
@@ -2205,7 +2205,7 @@ v.regexp_groupSpecifier = function(t) {
|
|
|
2205
2205
|
t.raise("Invalid group");
|
|
2206
2206
|
}
|
|
2207
2207
|
};
|
|
2208
|
-
|
|
2208
|
+
x.regexp_eatGroupName = function(t) {
|
|
2209
2209
|
if (t.lastStringValue = "", t.eat(
|
|
2210
2210
|
60
|
|
2211
2211
|
/* < */
|
|
@@ -2219,7 +2219,7 @@ v.regexp_eatGroupName = function(t) {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
return !1;
|
|
2221
2221
|
};
|
|
2222
|
-
|
|
2222
|
+
x.regexp_eatRegExpIdentifierName = function(t) {
|
|
2223
2223
|
if (t.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(t)) {
|
|
2224
2224
|
for (t.lastStringValue += $e(t.lastIntValue); this.regexp_eatRegExpIdentifierPart(t); )
|
|
2225
2225
|
t.lastStringValue += $e(t.lastIntValue);
|
|
@@ -2227,24 +2227,24 @@ v.regexp_eatRegExpIdentifierName = function(t) {
|
|
|
2227
2227
|
}
|
|
2228
2228
|
return !1;
|
|
2229
2229
|
};
|
|
2230
|
-
|
|
2230
|
+
x.regexp_eatRegExpIdentifierStart = function(t) {
|
|
2231
2231
|
var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
|
|
2232
2232
|
return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), Xi(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
|
|
2233
2233
|
};
|
|
2234
2234
|
function Xi(t) {
|
|
2235
2235
|
return ne(t, !0) || t === 36 || t === 95;
|
|
2236
2236
|
}
|
|
2237
|
-
|
|
2237
|
+
x.regexp_eatRegExpIdentifierPart = function(t) {
|
|
2238
2238
|
var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
|
|
2239
2239
|
return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), Yi(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
|
|
2240
2240
|
};
|
|
2241
2241
|
function Yi(t) {
|
|
2242
2242
|
return ve(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
|
|
2243
2243
|
}
|
|
2244
|
-
|
|
2244
|
+
x.regexp_eatAtomEscape = function(t) {
|
|
2245
2245
|
return this.regexp_eatBackReference(t) || this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t) || t.switchN && this.regexp_eatKGroupName(t) ? !0 : (t.switchU && (t.current() === 99 && t.raise("Invalid unicode escape"), t.raise("Invalid escape")), !1);
|
|
2246
2246
|
};
|
|
2247
|
-
|
|
2247
|
+
x.regexp_eatBackReference = function(t) {
|
|
2248
2248
|
var e = t.pos;
|
|
2249
2249
|
if (this.regexp_eatDecimalEscape(t)) {
|
|
2250
2250
|
var s = t.lastIntValue;
|
|
@@ -2256,7 +2256,7 @@ v.regexp_eatBackReference = function(t) {
|
|
|
2256
2256
|
}
|
|
2257
2257
|
return !1;
|
|
2258
2258
|
};
|
|
2259
|
-
|
|
2259
|
+
x.regexp_eatKGroupName = function(t) {
|
|
2260
2260
|
if (t.eat(
|
|
2261
2261
|
107
|
|
2262
2262
|
/* k */
|
|
@@ -2267,10 +2267,10 @@ v.regexp_eatKGroupName = function(t) {
|
|
|
2267
2267
|
}
|
|
2268
2268
|
return !1;
|
|
2269
2269
|
};
|
|
2270
|
-
|
|
2270
|
+
x.regexp_eatCharacterEscape = function(t) {
|
|
2271
2271
|
return this.regexp_eatControlEscape(t) || this.regexp_eatCControlLetter(t) || this.regexp_eatZero(t) || this.regexp_eatHexEscapeSequence(t) || this.regexp_eatRegExpUnicodeEscapeSequence(t, !1) || !t.switchU && this.regexp_eatLegacyOctalEscapeSequence(t) || this.regexp_eatIdentityEscape(t);
|
|
2272
2272
|
};
|
|
2273
|
-
|
|
2273
|
+
x.regexp_eatCControlLetter = function(t) {
|
|
2274
2274
|
var e = t.pos;
|
|
2275
2275
|
if (t.eat(
|
|
2276
2276
|
99
|
|
@@ -2282,21 +2282,21 @@ v.regexp_eatCControlLetter = function(t) {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
return !1;
|
|
2284
2284
|
};
|
|
2285
|
-
|
|
2285
|
+
x.regexp_eatZero = function(t) {
|
|
2286
2286
|
return t.current() === 48 && !Xe(t.lookahead()) ? (t.lastIntValue = 0, t.advance(), !0) : !1;
|
|
2287
2287
|
};
|
|
2288
|
-
|
|
2288
|
+
x.regexp_eatControlEscape = function(t) {
|
|
2289
2289
|
var e = t.current();
|
|
2290
2290
|
return e === 116 ? (t.lastIntValue = 9, t.advance(), !0) : e === 110 ? (t.lastIntValue = 10, t.advance(), !0) : e === 118 ? (t.lastIntValue = 11, t.advance(), !0) : e === 102 ? (t.lastIntValue = 12, t.advance(), !0) : e === 114 ? (t.lastIntValue = 13, t.advance(), !0) : !1;
|
|
2291
2291
|
};
|
|
2292
|
-
|
|
2292
|
+
x.regexp_eatControlLetter = function(t) {
|
|
2293
2293
|
var e = t.current();
|
|
2294
2294
|
return Os(e) ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
|
|
2295
2295
|
};
|
|
2296
2296
|
function Os(t) {
|
|
2297
2297
|
return t >= 65 && t <= 90 || t >= 97 && t <= 122;
|
|
2298
2298
|
}
|
|
2299
|
-
|
|
2299
|
+
x.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
|
|
2300
2300
|
e === void 0 && (e = !1);
|
|
2301
2301
|
var s = t.pos, i = e || t.switchU;
|
|
2302
2302
|
if (t.eat(
|
|
@@ -2337,7 +2337,7 @@ v.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
|
|
|
2337
2337
|
function Zi(t) {
|
|
2338
2338
|
return t >= 0 && t <= 1114111;
|
|
2339
2339
|
}
|
|
2340
|
-
|
|
2340
|
+
x.regexp_eatIdentityEscape = function(t) {
|
|
2341
2341
|
if (t.switchU)
|
|
2342
2342
|
return this.regexp_eatSyntaxCharacter(t) ? !0 : t.eat(
|
|
2343
2343
|
47
|
|
@@ -2346,7 +2346,7 @@ v.regexp_eatIdentityEscape = function(t) {
|
|
|
2346
2346
|
var e = t.current();
|
|
2347
2347
|
return e !== 99 && (!t.switchN || e !== 107) ? (t.lastIntValue = e, t.advance(), !0) : !1;
|
|
2348
2348
|
};
|
|
2349
|
-
|
|
2349
|
+
x.regexp_eatDecimalEscape = function(t) {
|
|
2350
2350
|
t.lastIntValue = 0;
|
|
2351
2351
|
var e = t.current();
|
|
2352
2352
|
if (e >= 49 && e <= 57) {
|
|
@@ -2357,7 +2357,7 @@ v.regexp_eatDecimalEscape = function(t) {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
return !1;
|
|
2359
2359
|
};
|
|
2360
|
-
|
|
2360
|
+
x.regexp_eatCharacterClassEscape = function(t) {
|
|
2361
2361
|
var e = t.current();
|
|
2362
2362
|
if (er(e))
|
|
2363
2363
|
return t.lastIntValue = -1, t.advance(), !0;
|
|
@@ -2377,7 +2377,7 @@ v.regexp_eatCharacterClassEscape = function(t) {
|
|
|
2377
2377
|
function er(t) {
|
|
2378
2378
|
return t === 100 || t === 68 || t === 115 || t === 83 || t === 119 || t === 87;
|
|
2379
2379
|
}
|
|
2380
|
-
|
|
2380
|
+
x.regexp_eatUnicodePropertyValueExpression = function(t) {
|
|
2381
2381
|
var e = t.pos;
|
|
2382
2382
|
if (this.regexp_eatUnicodePropertyName(t) && t.eat(
|
|
2383
2383
|
61
|
|
@@ -2395,13 +2395,13 @@ v.regexp_eatUnicodePropertyValueExpression = function(t) {
|
|
|
2395
2395
|
}
|
|
2396
2396
|
return !1;
|
|
2397
2397
|
};
|
|
2398
|
-
|
|
2398
|
+
x.regexp_validateUnicodePropertyNameAndValue = function(t, e, s) {
|
|
2399
2399
|
We(t.unicodeProperties.nonBinary, e) || t.raise("Invalid property name"), t.unicodeProperties.nonBinary[e].test(s) || t.raise("Invalid property value");
|
|
2400
2400
|
};
|
|
2401
|
-
|
|
2401
|
+
x.regexp_validateUnicodePropertyNameOrValue = function(t, e) {
|
|
2402
2402
|
t.unicodeProperties.binary.test(e) || t.raise("Invalid property name");
|
|
2403
2403
|
};
|
|
2404
|
-
|
|
2404
|
+
x.regexp_eatUnicodePropertyName = function(t) {
|
|
2405
2405
|
var e = 0;
|
|
2406
2406
|
for (t.lastStringValue = ""; Fs(e = t.current()); )
|
|
2407
2407
|
t.lastStringValue += $e(e), t.advance();
|
|
@@ -2410,7 +2410,7 @@ v.regexp_eatUnicodePropertyName = function(t) {
|
|
|
2410
2410
|
function Fs(t) {
|
|
2411
2411
|
return Os(t) || t === 95;
|
|
2412
2412
|
}
|
|
2413
|
-
|
|
2413
|
+
x.regexp_eatUnicodePropertyValue = function(t) {
|
|
2414
2414
|
var e = 0;
|
|
2415
2415
|
for (t.lastStringValue = ""; tr(e = t.current()); )
|
|
2416
2416
|
t.lastStringValue += $e(e), t.advance();
|
|
@@ -2419,10 +2419,10 @@ v.regexp_eatUnicodePropertyValue = function(t) {
|
|
|
2419
2419
|
function tr(t) {
|
|
2420
2420
|
return Fs(t) || Xe(t);
|
|
2421
2421
|
}
|
|
2422
|
-
|
|
2422
|
+
x.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
|
|
2423
2423
|
return this.regexp_eatUnicodePropertyValue(t);
|
|
2424
2424
|
};
|
|
2425
|
-
|
|
2425
|
+
x.regexp_eatCharacterClass = function(t) {
|
|
2426
2426
|
if (t.eat(
|
|
2427
2427
|
91
|
|
2428
2428
|
/* [ */
|
|
@@ -2439,7 +2439,7 @@ v.regexp_eatCharacterClass = function(t) {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
return !1;
|
|
2441
2441
|
};
|
|
2442
|
-
|
|
2442
|
+
x.regexp_classRanges = function(t) {
|
|
2443
2443
|
for (; this.regexp_eatClassAtom(t); ) {
|
|
2444
2444
|
var e = t.lastIntValue;
|
|
2445
2445
|
if (t.eat(
|
|
@@ -2451,7 +2451,7 @@ v.regexp_classRanges = function(t) {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
};
|
|
2454
|
-
|
|
2454
|
+
x.regexp_eatClassAtom = function(t) {
|
|
2455
2455
|
var e = t.pos;
|
|
2456
2456
|
if (t.eat(
|
|
2457
2457
|
92
|
|
@@ -2468,7 +2468,7 @@ v.regexp_eatClassAtom = function(t) {
|
|
|
2468
2468
|
var i = t.current();
|
|
2469
2469
|
return i !== 93 ? (t.lastIntValue = i, t.advance(), !0) : !1;
|
|
2470
2470
|
};
|
|
2471
|
-
|
|
2471
|
+
x.regexp_eatClassEscape = function(t) {
|
|
2472
2472
|
var e = t.pos;
|
|
2473
2473
|
if (t.eat(
|
|
2474
2474
|
98
|
|
@@ -2490,11 +2490,11 @@ v.regexp_eatClassEscape = function(t) {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
return this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t);
|
|
2492
2492
|
};
|
|
2493
|
-
|
|
2493
|
+
x.regexp_eatClassControlLetter = function(t) {
|
|
2494
2494
|
var e = t.current();
|
|
2495
2495
|
return Xe(e) || e === 95 ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
|
|
2496
2496
|
};
|
|
2497
|
-
|
|
2497
|
+
x.regexp_eatHexEscapeSequence = function(t) {
|
|
2498
2498
|
var e = t.pos;
|
|
2499
2499
|
if (t.eat(
|
|
2500
2500
|
120
|
|
@@ -2506,7 +2506,7 @@ v.regexp_eatHexEscapeSequence = function(t) {
|
|
|
2506
2506
|
}
|
|
2507
2507
|
return !1;
|
|
2508
2508
|
};
|
|
2509
|
-
|
|
2509
|
+
x.regexp_eatDecimalDigits = function(t) {
|
|
2510
2510
|
var e = t.pos, s = 0;
|
|
2511
2511
|
for (t.lastIntValue = 0; Xe(s = t.current()); )
|
|
2512
2512
|
t.lastIntValue = 10 * t.lastIntValue + (s - 48), t.advance();
|
|
@@ -2515,7 +2515,7 @@ v.regexp_eatDecimalDigits = function(t) {
|
|
|
2515
2515
|
function Xe(t) {
|
|
2516
2516
|
return t >= 48 && t <= 57;
|
|
2517
2517
|
}
|
|
2518
|
-
|
|
2518
|
+
x.regexp_eatHexDigits = function(t) {
|
|
2519
2519
|
var e = t.pos, s = 0;
|
|
2520
2520
|
for (t.lastIntValue = 0; Ls(s = t.current()); )
|
|
2521
2521
|
t.lastIntValue = 16 * t.lastIntValue + js(s), t.advance();
|
|
@@ -2527,7 +2527,7 @@ function Ls(t) {
|
|
|
2527
2527
|
function js(t) {
|
|
2528
2528
|
return t >= 65 && t <= 70 ? 10 + (t - 65) : t >= 97 && t <= 102 ? 10 + (t - 97) : t - 48;
|
|
2529
2529
|
}
|
|
2530
|
-
|
|
2530
|
+
x.regexp_eatLegacyOctalEscapeSequence = function(t) {
|
|
2531
2531
|
if (this.regexp_eatOctalDigit(t)) {
|
|
2532
2532
|
var e = t.lastIntValue;
|
|
2533
2533
|
if (this.regexp_eatOctalDigit(t)) {
|
|
@@ -2539,14 +2539,14 @@ v.regexp_eatLegacyOctalEscapeSequence = function(t) {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
return !1;
|
|
2541
2541
|
};
|
|
2542
|
-
|
|
2542
|
+
x.regexp_eatOctalDigit = function(t) {
|
|
2543
2543
|
var e = t.current();
|
|
2544
2544
|
return Ms(e) ? (t.lastIntValue = e - 48, t.advance(), !0) : (t.lastIntValue = 0, !1);
|
|
2545
2545
|
};
|
|
2546
2546
|
function Ms(t) {
|
|
2547
2547
|
return t >= 48 && t <= 55;
|
|
2548
2548
|
}
|
|
2549
|
-
|
|
2549
|
+
x.regexp_eatFixedHexDigits = function(t, e) {
|
|
2550
2550
|
var s = t.pos;
|
|
2551
2551
|
t.lastIntValue = 0;
|
|
2552
2552
|
for (var i = 0; i < e; ++i) {
|
|
@@ -3057,7 +3057,7 @@ I.acorn = {
|
|
|
3057
3057
|
SourceLocation: ze,
|
|
3058
3058
|
getLineInfo: gs,
|
|
3059
3059
|
Node: Nt,
|
|
3060
|
-
TokenType:
|
|
3060
|
+
TokenType: E,
|
|
3061
3061
|
tokTypes: o,
|
|
3062
3062
|
keywordTypes: kt,
|
|
3063
3063
|
TokContext: q,
|
|
@@ -3715,14 +3715,14 @@ class j {
|
|
|
3715
3715
|
return this.collectDeclVars = r, this.collectDeclFuncs = n, () => {
|
|
3716
3716
|
const d = s.getCurrentScope(), f = function(...m) {
|
|
3717
3717
|
s.callStack.push(`${a}`);
|
|
3718
|
-
const g = s.getCurrentScope(),
|
|
3719
|
-
s.setCurrentScope(
|
|
3720
|
-
|
|
3718
|
+
const g = s.getCurrentScope(), v = hr(d, `FunctionScope(${a})`);
|
|
3719
|
+
s.setCurrentScope(v), s.addDeclarationsToScope(h, p, v), a && (v.data[a] = f), v.data.arguments = arguments, c.forEach((R, C) => {
|
|
3720
|
+
v.data[R()] = m[C];
|
|
3721
3721
|
});
|
|
3722
|
-
const
|
|
3722
|
+
const w = s.getCurrentContext();
|
|
3723
3723
|
s.setCurrentContext(this);
|
|
3724
3724
|
const A = l();
|
|
3725
|
-
if (s.setCurrentContext(
|
|
3725
|
+
if (s.setCurrentContext(w), s.setCurrentScope(g), s.callStack.pop(), A instanceof J)
|
|
3726
3726
|
return A.value;
|
|
3727
3727
|
};
|
|
3728
3728
|
return Xt(f, a), Object.defineProperty(f, "length", {
|
|
@@ -4529,28 +4529,31 @@ function Cr(t, e) {
|
|
|
4529
4529
|
const { url: s, mockTemplate: i, method: r = "get", settings: n = {} } = e;
|
|
4530
4530
|
if (s && i)
|
|
4531
4531
|
try {
|
|
4532
|
-
const a = ct(s) ? new URL(s).pathname : s, u = ni(`(.*)${a}
|
|
4532
|
+
const a = ct(s) ? new URL(s).pathname : s, u = ni(`(.*)${a}`, [], { end: !1 }), c = new RegExp(
|
|
4533
|
+
u.source + "([?#].*)?$",
|
|
4534
|
+
u.flags
|
|
4535
|
+
), l = ai(a, { decode: decodeURIComponent }), h = Ne(i, {}, !0);
|
|
4533
4536
|
t.mock(
|
|
4534
|
-
|
|
4537
|
+
c,
|
|
4535
4538
|
r.toLowerCase(),
|
|
4536
|
-
(
|
|
4537
|
-
const
|
|
4538
|
-
let
|
|
4539
|
-
if (typeof
|
|
4540
|
-
if (
|
|
4539
|
+
(p) => {
|
|
4540
|
+
const d = le.parse(p.url) || {}, f = n.type || "form";
|
|
4541
|
+
let m = p.body instanceof FormData ? oi(p.body) : p.body;
|
|
4542
|
+
if (typeof m == "string")
|
|
4543
|
+
if (f === "json")
|
|
4541
4544
|
try {
|
|
4542
|
-
|
|
4543
|
-
} catch (
|
|
4544
|
-
console.warn("[Mock.mock]",
|
|
4545
|
+
m = JSON.parse(m);
|
|
4546
|
+
} catch (w) {
|
|
4547
|
+
console.warn("[Mock.mock]", w);
|
|
4545
4548
|
}
|
|
4546
4549
|
else
|
|
4547
|
-
|
|
4548
|
-
const
|
|
4549
|
-
Object.assign(
|
|
4550
|
+
m = le.parse(m);
|
|
4551
|
+
const g = ct(p.url) ? new URL(p.url).pathname : p.url.split("?")[0], v = l(g)?.params;
|
|
4552
|
+
Object.assign(p, { data: m, params: v, query: d });
|
|
4550
4553
|
try {
|
|
4551
|
-
return t.mock(
|
|
4552
|
-
} catch (
|
|
4553
|
-
return console.warn("[mockApi]",
|
|
4554
|
+
return t.mock(h(p));
|
|
4555
|
+
} catch (w) {
|
|
4556
|
+
return console.warn("[mockApi]", c, p, w), null;
|
|
4554
4557
|
}
|
|
4555
4558
|
}
|
|
4556
4559
|
);
|
|
@@ -4713,7 +4716,7 @@ function vt(t) {
|
|
|
4713
4716
|
c.value.state ?? {},
|
|
4714
4717
|
h
|
|
4715
4718
|
);
|
|
4716
|
-
const m = f ? Vr(e, c.value.refs ?? {}, h) : {}, g = f ? Or(e, c.value.reactives ?? {}, h) : {},
|
|
4719
|
+
const m = f ? Vr(e, c.value.refs ?? {}, h) : {}, g = f ? Or(e, c.value.reactives ?? {}, h) : {}, v = Ar(e, c.value.computed ?? {}, h), w = Pr(c.value.methods ?? {}, h), A = Tr(e, c.value.inject, h), R = Nr(
|
|
4717
4720
|
c.value.dataSources || {},
|
|
4718
4721
|
h
|
|
4719
4722
|
);
|
|
@@ -4727,8 +4730,8 @@ function vt(t) {
|
|
|
4727
4730
|
...m,
|
|
4728
4731
|
...g,
|
|
4729
4732
|
...A,
|
|
4730
|
-
...
|
|
4731
|
-
...
|
|
4733
|
+
...v,
|
|
4734
|
+
...w,
|
|
4732
4735
|
...R,
|
|
4733
4736
|
...C
|
|
4734
4737
|
};
|
|
@@ -4756,8 +4759,8 @@ function vt(t) {
|
|
|
4756
4759
|
...d,
|
|
4757
4760
|
...m,
|
|
4758
4761
|
...g,
|
|
4759
|
-
...
|
|
4760
|
-
...
|
|
4762
|
+
...v,
|
|
4763
|
+
...w
|
|
4761
4764
|
};
|
|
4762
4765
|
},
|
|
4763
4766
|
emits: Er(c.value.emits),
|
|
@@ -5083,7 +5086,7 @@ function On() {
|
|
|
5083
5086
|
}
|
|
5084
5087
|
function be(t, e, s = xe, i = Br, r = [], n = !1, a = 0) {
|
|
5085
5088
|
if (!t || !t.name || t.invisible) return null;
|
|
5086
|
-
const u = s.getCurrentInstance()?.appContext, { id: c = null, directives: l = [] } = t, { vIf: h, vElseIf: p, vElse: d, vFor: f, vShow: m, vModels: g, vBind:
|
|
5089
|
+
const u = s.getCurrentInstance()?.appContext, { id: c = null, directives: l = [] } = t, { vIf: h, vElseIf: p, vElse: d, vFor: f, vShow: m, vModels: g, vBind: v, vHtml: w, others: A } = Ws(l);
|
|
5087
5090
|
if (!n && (p || d))
|
|
5088
5091
|
return null;
|
|
5089
5092
|
if (h && !$r(h, e))
|
|
@@ -5103,10 +5106,10 @@ function be(t, e, s = xe, i = Br, r = [], n = !1, a = 0) {
|
|
|
5103
5106
|
);
|
|
5104
5107
|
if (t.name === "slot")
|
|
5105
5108
|
return Jr(s, t, se, C, i);
|
|
5106
|
-
|
|
5109
|
+
v && Object.assign(se, C.__parseExpression(v.value)), m && (se.style = Object.assign(
|
|
5107
5110
|
se.style ?? {},
|
|
5108
5111
|
Xr(m, C)
|
|
5109
|
-
)),
|
|
5112
|
+
)), w && Object.assign(se, Yr(w, C)), g.forEach((G) => {
|
|
5110
5113
|
us.includes(t.name) ? Object.assign(se, Zr(G, C)) : Object.assign(se, en(s, G, C));
|
|
5111
5114
|
});
|
|
5112
5115
|
const Ys = tn(
|
|
@@ -5420,16 +5423,16 @@ function Fn(t) {
|
|
|
5420
5423
|
fi(() => {
|
|
5421
5424
|
const { name: f, params: m, meta: g } = n;
|
|
5422
5425
|
if (f === we) {
|
|
5423
|
-
const
|
|
5424
|
-
h(
|
|
5426
|
+
const v = r.getPage(m.id);
|
|
5427
|
+
h(v, g);
|
|
5425
5428
|
} else if (f === De) {
|
|
5426
|
-
const
|
|
5427
|
-
h(
|
|
5429
|
+
const v = r.getHomepage();
|
|
5430
|
+
h(v, g);
|
|
5428
5431
|
} else {
|
|
5429
|
-
const
|
|
5430
|
-
if (
|
|
5431
|
-
const
|
|
5432
|
-
h(
|
|
5432
|
+
const v = g.__vtj__;
|
|
5433
|
+
if (v) {
|
|
5434
|
+
const w = r.getPage(v);
|
|
5435
|
+
h(w, g);
|
|
5433
5436
|
} else
|
|
5434
5437
|
u.value = !g.mask, c.value = !!g.pure;
|
|
5435
5438
|
}
|
|
@@ -5475,7 +5478,7 @@ function _t(t) {
|
|
|
5475
5478
|
for (const l of i) {
|
|
5476
5479
|
const { id: h, title: p, dir: d, layout: f, children: m, meta: g } = l;
|
|
5477
5480
|
if (d) {
|
|
5478
|
-
const
|
|
5481
|
+
const v = _t({
|
|
5479
5482
|
name: e,
|
|
5480
5483
|
prefix: s,
|
|
5481
5484
|
component: r,
|
|
@@ -5484,9 +5487,9 @@ function _t(t) {
|
|
|
5484
5487
|
loader: n,
|
|
5485
5488
|
pages: m || []
|
|
5486
5489
|
});
|
|
5487
|
-
c.push(...
|
|
5490
|
+
c.push(...v);
|
|
5488
5491
|
} else if (f) {
|
|
5489
|
-
const
|
|
5492
|
+
const v = _t({
|
|
5490
5493
|
name: e,
|
|
5491
5494
|
prefix: s,
|
|
5492
5495
|
component: r,
|
|
@@ -5494,7 +5497,7 @@ function _t(t) {
|
|
|
5494
5497
|
homepage: u,
|
|
5495
5498
|
loader: n,
|
|
5496
5499
|
pages: m || []
|
|
5497
|
-
}),
|
|
5500
|
+
}), w = {
|
|
5498
5501
|
name: `layout_${h}`,
|
|
5499
5502
|
path: s,
|
|
5500
5503
|
component: () => n(h),
|
|
@@ -5504,12 +5507,12 @@ function _t(t) {
|
|
|
5504
5507
|
...g,
|
|
5505
5508
|
__vtj__: h
|
|
5506
5509
|
},
|
|
5507
|
-
children:
|
|
5510
|
+
children: v
|
|
5508
5511
|
};
|
|
5509
|
-
c.push(
|
|
5512
|
+
c.push(w), c.push(ut(l, t));
|
|
5510
5513
|
} else if (c.push(ut(l, t)), u === h) {
|
|
5511
|
-
const
|
|
5512
|
-
|
|
5514
|
+
const v = ut(l, t);
|
|
5515
|
+
v.path = "", v.name = `home_${h}`, c.push(v);
|
|
5513
5516
|
}
|
|
5514
5517
|
}
|
|
5515
5518
|
return c;
|
|
@@ -5714,11 +5717,11 @@ class mn extends ti {
|
|
|
5714
5717
|
);
|
|
5715
5718
|
Object.assign(this.libraryLocaleMap, m);
|
|
5716
5719
|
for (const g of l) {
|
|
5717
|
-
const
|
|
5718
|
-
if (
|
|
5719
|
-
r[g] =
|
|
5720
|
-
else if (
|
|
5721
|
-
e[g] = r[g] = await
|
|
5720
|
+
const v = i[g], w = e[g];
|
|
5721
|
+
if (w)
|
|
5722
|
+
r[g] = w;
|
|
5723
|
+
else if (v)
|
|
5724
|
+
e[g] = r[g] = await v();
|
|
5722
5725
|
else {
|
|
5723
5726
|
const R = h[g] || [];
|
|
5724
5727
|
for (const C of R)
|
|
@@ -5732,17 +5735,17 @@ class mn extends ti {
|
|
|
5732
5735
|
}
|
|
5733
5736
|
}
|
|
5734
5737
|
if (u === "development") {
|
|
5735
|
-
for (const
|
|
5736
|
-
await qt(le.append(
|
|
5738
|
+
for (const v of p)
|
|
5739
|
+
await qt(le.append(v, { v: Ce }));
|
|
5737
5740
|
const g = this.materials || {};
|
|
5738
|
-
for (const
|
|
5739
|
-
const
|
|
5741
|
+
for (const v of d) {
|
|
5742
|
+
const w = e[f[v]], A = w?.default || w, R = si[v];
|
|
5740
5743
|
if (R)
|
|
5741
5744
|
A && R.forEach((C) => {
|
|
5742
5745
|
n[C] = A[C];
|
|
5743
5746
|
});
|
|
5744
5747
|
else {
|
|
5745
|
-
const C = g[
|
|
5748
|
+
const C = g[v] ? (await g[v]()).default : e[v];
|
|
5746
5749
|
C && A && (C.components || []).forEach((U) => {
|
|
5747
5750
|
n[U.name] = yi(U, A);
|
|
5748
5751
|
});
|