@vtj/parser 0.15.1 → 0.15.2
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 +15 -15
- package/dist/index.mjs +1032 -831
- package/package.json +3 -3
- package/types/version.d.ts +2 -2
- package/types/vue/scripts.d.ts +2 -1
- package/types/vue/template.d.ts +2 -1
- package/types/vue/utils.d.ts +9 -0
package/dist/index.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { parse as
|
|
2
|
-
import { parse as
|
|
1
|
+
import { parse as Zu, compileTemplate as Qu } from "@vue/compiler-sfc";
|
|
2
|
+
import { parse as Ku } from "@babel/parser";
|
|
3
3
|
import pu from "@babel/traverse";
|
|
4
4
|
import mu from "@babel/generator";
|
|
5
|
-
import { BlockModel as
|
|
5
|
+
import { BlockModel as Yu } from "@vtj/core";
|
|
6
6
|
import { tsFormatter as xu } from "@vtj/coder";
|
|
7
|
-
import { NodeTypes as
|
|
8
|
-
import { upperFirstCamelCase as
|
|
9
|
-
import
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
7
|
+
import { NodeTypes as g } from "@vue/compiler-core";
|
|
8
|
+
import { upperFirstCamelCase as ue, unBase64 as ee, uid as iu } from "@vtj/base";
|
|
9
|
+
import te from "postcss";
|
|
10
|
+
import * as ae from "sass";
|
|
11
|
+
import * as q from "@babel/types";
|
|
12
12
|
/**!
|
|
13
13
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
14
14
|
* @name @vtj/parser
|
|
15
15
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
16
|
-
* @version 0.15.
|
|
16
|
+
* @version 0.15.2
|
|
17
17
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
20
|
-
function
|
|
21
|
-
const { descriptor: u } =
|
|
19
|
+
const I0 = "0.15.2";
|
|
20
|
+
function D(e) {
|
|
21
|
+
const { descriptor: u } = Zu(e), t = u.template?.content || "", a = (u.scriptSetup || u.script)?.content || "", i = u.styles.map((s) => s.content);
|
|
22
22
|
return {
|
|
23
23
|
template: t,
|
|
24
24
|
script: a,
|
|
25
25
|
styles: i
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function X(e) {
|
|
29
|
+
return Ku(e, { sourceType: "module", plugins: ["typescript"] });
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Y(e, u) {
|
|
32
32
|
return (pu.default || pu)(e, u);
|
|
33
33
|
}
|
|
34
34
|
function M(e) {
|
|
@@ -48,69 +48,240 @@ function M(e) {
|
|
|
48
48
|
function nu(e) {
|
|
49
49
|
return !!e && e.type === "JSExpression";
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function ie(e) {
|
|
52
52
|
return typeof e == "object" && !!e && e.type === "JSFunction";
|
|
53
53
|
}
|
|
54
54
|
function ou(e) {
|
|
55
|
-
return !!nu(e) || !!
|
|
55
|
+
return !!nu(e) || !!ie(e);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function se(e) {
|
|
58
58
|
return !!e && !nu(e) && typeof e != "string";
|
|
59
59
|
}
|
|
60
60
|
function ku(e, u) {
|
|
61
61
|
try {
|
|
62
|
-
const t =
|
|
63
|
-
return
|
|
62
|
+
const t = X(e);
|
|
63
|
+
return Y(t, u), M(t) || "";
|
|
64
64
|
} catch {
|
|
65
65
|
return "";
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const u =
|
|
70
|
-
return u.styles && (a.css = u.styles[0] || ""),
|
|
68
|
+
function E0(e) {
|
|
69
|
+
const u = D(e), t = X(u.script), a = {};
|
|
70
|
+
return u.styles && (a.css = u.styles[0] || ""), Y(t, {
|
|
71
71
|
CallExpression(i) {
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
74
|
-
const
|
|
75
|
-
|
|
72
|
+
const s = i.node.callee?.name;
|
|
73
|
+
if (s) {
|
|
74
|
+
const r = M(i.node.arguments[0]);
|
|
75
|
+
r && (a[s] = {
|
|
76
76
|
type: "JSFunction",
|
|
77
|
-
value:
|
|
77
|
+
value: r
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}), a;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
function re(e, u, t, a) {
|
|
84
|
+
if (a.match(/function\s*\(\s*$/))
|
|
85
|
+
return !0;
|
|
86
|
+
const s = e.slice(u + t.length);
|
|
87
|
+
if (s.trim().startsWith("=>"))
|
|
88
|
+
return !0;
|
|
89
|
+
const n = a.endsWith("(") || a.match(/\(\s*$/), d = a.endsWith(",") || a.match(/,\s*$/);
|
|
90
|
+
if (n || d) {
|
|
91
|
+
let l = -1, h = "";
|
|
92
|
+
if (n)
|
|
93
|
+
l = a.length - 1;
|
|
94
|
+
else if (d) {
|
|
95
|
+
let y = 0, b = !1, S = "";
|
|
96
|
+
for (let I = a.length - 1; I >= 0; I--) {
|
|
97
|
+
const x = a[I];
|
|
98
|
+
if (b && x === S)
|
|
99
|
+
b = !1, S = "";
|
|
100
|
+
else if (!b && (x === "'" || x === '"' || x === "`")) {
|
|
101
|
+
b = !0, S = x;
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
if (!b) {
|
|
105
|
+
if (x === ")")
|
|
106
|
+
y++;
|
|
107
|
+
else if (x === "(") {
|
|
108
|
+
if (y === 0) {
|
|
109
|
+
l = I;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
y--;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (l >= 0) {
|
|
118
|
+
let y = l - 1;
|
|
119
|
+
for (; y >= 0 && /\s/.test(a.charAt(y)); )
|
|
120
|
+
y--;
|
|
121
|
+
if (y >= 0) {
|
|
122
|
+
let b = y;
|
|
123
|
+
for (; y >= 0 && /[a-zA-Z0-9_$]/.test(a.charAt(y)); )
|
|
124
|
+
y--;
|
|
125
|
+
if (h = a.slice(y + 1, b + 1), h && h !== "function" && h !== "class") {
|
|
126
|
+
const S = a.slice(0, y + 1);
|
|
127
|
+
if (!S.endsWith("=>") && !S.match(/[a-zA-Z0-9_$]\s*=>\s*$/))
|
|
128
|
+
return !1;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
let m = 0, w = !1, A = "";
|
|
133
|
+
for (let y = 0; y < s.length; y++) {
|
|
134
|
+
const b = s[y];
|
|
135
|
+
if (!w && (b === "'" || b === '"' || b === "`") ? (w = !0, A = b) : w && b === A && (w = !1, A = ""), !w)
|
|
136
|
+
if (b === "(")
|
|
137
|
+
m++;
|
|
138
|
+
else if (b === ")") {
|
|
139
|
+
if (m === 0)
|
|
140
|
+
return !0;
|
|
141
|
+
m--;
|
|
142
|
+
} else {
|
|
143
|
+
if (b === "," && m === 0)
|
|
144
|
+
return !0;
|
|
145
|
+
if (b === "=" && y + 1 < s.length && s[y + 1] === ">")
|
|
146
|
+
return !0;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
const c = u > 0 ? e.charAt(u - 1) : "";
|
|
151
|
+
if (!/[a-zA-Z0-9_$@-]/.test(c) && s.includes("=>")) {
|
|
152
|
+
const l = s.indexOf("=>"), h = s.slice(0, l).trim();
|
|
153
|
+
if (h === "" || h === ",")
|
|
154
|
+
return !0;
|
|
155
|
+
}
|
|
156
|
+
return !1;
|
|
157
|
+
}
|
|
158
|
+
function $(e, u, t) {
|
|
159
|
+
if (!e.includes(u)) return e;
|
|
160
|
+
const a = [];
|
|
161
|
+
let i = 0;
|
|
162
|
+
const s = {
|
|
163
|
+
inString: !1,
|
|
164
|
+
quoteChar: "",
|
|
165
|
+
inTemplateExpr: 0,
|
|
166
|
+
inRegex: !1,
|
|
167
|
+
// 是否在正则表达式字面量中
|
|
168
|
+
regexDepth: 0
|
|
169
|
+
// 正则表达式括号深度(用于处理字符类)
|
|
170
|
+
}, r = /[a-zA-Z0-9_$@-]/;
|
|
171
|
+
function n(c) {
|
|
172
|
+
for (let f = 0; f < c.length; f++) {
|
|
173
|
+
const l = c[f];
|
|
174
|
+
if (!s.inString && !s.inRegex) {
|
|
175
|
+
if (l === "'" || l === '"' || l === "`")
|
|
176
|
+
s.inString = !0, s.quoteChar = l;
|
|
177
|
+
else if (l === "/") {
|
|
178
|
+
let h = f - 1;
|
|
179
|
+
for (; h >= 0 && /\s/.test(c[h]); )
|
|
180
|
+
h--;
|
|
181
|
+
if (h < 0)
|
|
182
|
+
s.inRegex = !0, s.regexDepth = 0;
|
|
183
|
+
else {
|
|
184
|
+
const m = c[h], w = /[=+*%!&|?:;,()[\]{}<>]/.test(m), A = /[a-zA-Z0-9_$)]/.test(m);
|
|
185
|
+
if (m === "-") {
|
|
186
|
+
let y = h - 1;
|
|
187
|
+
for (; y >= 0 && /\s/.test(c[y]); )
|
|
188
|
+
y--;
|
|
189
|
+
y >= 0 && /[a-zA-Z0-9_$)]/.test(c[y]) ? s.inRegex = !1 : (s.inRegex = !0, s.regexDepth = 0);
|
|
190
|
+
} else if (m === "=" && h > 0) {
|
|
191
|
+
const y = c[h - 1];
|
|
192
|
+
/[+\-*/%]/.test(y) ? s.inRegex = !1 : (s.inRegex = !0, s.regexDepth = 0);
|
|
193
|
+
} else if (m === "/" || m === "*")
|
|
194
|
+
s.inRegex = !1;
|
|
195
|
+
else if (A && !w) {
|
|
196
|
+
let y = h;
|
|
197
|
+
for (; y > 0 && /[a-zA-Z0-9_$]/.test(c[y - 1]); )
|
|
198
|
+
y--;
|
|
199
|
+
const b = c.slice(y, h + 1);
|
|
200
|
+
[
|
|
201
|
+
"if",
|
|
202
|
+
"else",
|
|
203
|
+
"for",
|
|
204
|
+
"while",
|
|
205
|
+
"do",
|
|
206
|
+
"switch",
|
|
207
|
+
"case",
|
|
208
|
+
"return",
|
|
209
|
+
"typeof",
|
|
210
|
+
"instanceof",
|
|
211
|
+
"void",
|
|
212
|
+
"delete",
|
|
213
|
+
"new",
|
|
214
|
+
"in",
|
|
215
|
+
"of",
|
|
216
|
+
"await",
|
|
217
|
+
"yield",
|
|
218
|
+
"throw",
|
|
219
|
+
"try",
|
|
220
|
+
"catch",
|
|
221
|
+
"finally"
|
|
222
|
+
].includes(b) ? (s.inRegex = !0, s.regexDepth = 0) : s.inRegex = !1;
|
|
223
|
+
} else
|
|
224
|
+
s.inRegex = !0, s.regexDepth = 0;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
} else s.inString ? l === s.quoteChar ? s.quoteChar === "`" && s.inTemplateExpr > 0 || (s.inString = !1, s.quoteChar = "", s.inTemplateExpr = 0) : s.quoteChar === "`" && (l === "$" && f + 1 < c.length && c[f + 1] === "{" ? (s.inTemplateExpr++, f++) : l === "}" && s.inTemplateExpr > 0 && s.inTemplateExpr--) : s.inRegex && (l === "[" ? s.regexDepth++ : l === "]" && s.regexDepth > 0 ? s.regexDepth-- : l === "/" && s.regexDepth === 0 && (f === 0 || c[f - 1] !== "\\") && (s.inRegex = !1, s.regexDepth = 0));
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function d(c) {
|
|
231
|
+
if (s.inRegex || s.inString && s.inTemplateExpr === 0 && !e.slice(0, c).match(/new\s+RegExp\s*\([^)]*$/))
|
|
232
|
+
return !1;
|
|
233
|
+
if (c >= 3 && e.slice(c - 3, c) === "..." && (c >= 4 ? e.charAt(c - 4) : "") !== ".")
|
|
234
|
+
return !0;
|
|
235
|
+
if (c > 0 && e.charAt(c - 1) === ".") {
|
|
236
|
+
if (c >= 2 && e.slice(c - 2, c) === "?.") {
|
|
237
|
+
const S = e.slice(c + u.length).charAt(0);
|
|
238
|
+
return S === "[" || S === "(";
|
|
239
|
+
}
|
|
240
|
+
return !1;
|
|
241
|
+
}
|
|
242
|
+
const f = c > 0 ? e.charAt(c - 1) : "", l = c + u.length < e.length ? e.charAt(c + u.length) : "";
|
|
243
|
+
if (r.test(f) || r.test(l))
|
|
244
|
+
return !1;
|
|
245
|
+
const h = e.slice(0, c);
|
|
246
|
+
return h.match(/(const|let|var|function)\s+$/) ? !1 : h.match(/\{\s*$/) && !h.endsWith("${") ? c > 0 && e.charAt(c - 1) === "[" : re(
|
|
247
|
+
e,
|
|
248
|
+
c,
|
|
249
|
+
u,
|
|
250
|
+
h
|
|
251
|
+
) ? !1 : (h.endsWith("${"), !0);
|
|
252
|
+
}
|
|
253
|
+
for (; i < e.length; ) {
|
|
254
|
+
const c = e.indexOf(u, i);
|
|
255
|
+
if (c === -1) break;
|
|
256
|
+
const f = e.slice(i, c);
|
|
257
|
+
a.push(f), n(f), i = c, d(i) ? a.push(t) : a.push(u), i += u.length;
|
|
258
|
+
}
|
|
259
|
+
return i < e.length && a.push(e.slice(i)), a.join("");
|
|
89
260
|
}
|
|
90
261
|
function gu(e, u, t) {
|
|
91
262
|
const {
|
|
92
263
|
context: a = {},
|
|
93
264
|
computed: i = [],
|
|
94
|
-
libs:
|
|
95
|
-
members:
|
|
265
|
+
libs: s = {},
|
|
266
|
+
members: r = [],
|
|
96
267
|
platform: n
|
|
97
268
|
} = t || {}, d = Array.from(a[u || ""] || /* @__PURE__ */ new Set());
|
|
98
269
|
if (d)
|
|
99
|
-
for (const
|
|
100
|
-
e =
|
|
101
|
-
for (const
|
|
102
|
-
e =
|
|
103
|
-
for (const [
|
|
104
|
-
e =
|
|
105
|
-
for (const
|
|
106
|
-
e =
|
|
270
|
+
for (const c of d)
|
|
271
|
+
e = $(e, c, `this.context.${c}`);
|
|
272
|
+
for (const c of i)
|
|
273
|
+
e = $(e, c, `this.${c}.value`), e = $(e, `this.${c}`, `this.${c}.value`), e = $(e, `this.${c}.value.value`, `this.${c}.value`);
|
|
274
|
+
for (const [c, f] of Object.entries(s))
|
|
275
|
+
e = $(e, c, `this.$libs.${f}.${c}`), e = $(e, `this.${c}`, `this.$libs.${f}.${c}`);
|
|
276
|
+
for (const c of r)
|
|
277
|
+
e = $(e, c, `this.${c}`);
|
|
107
278
|
if (n === "uniapp") {
|
|
108
|
-
const
|
|
109
|
-
e = e.replace(
|
|
279
|
+
const c = /\suni\./g;
|
|
280
|
+
e = e.replace(c, "this.$libs.UniH5.uni.");
|
|
110
281
|
}
|
|
111
282
|
return e = e.replace(/_ctx\./g, "this."), e = e.replace(/this\.this\./g, "this."), e;
|
|
112
283
|
}
|
|
113
|
-
function
|
|
284
|
+
function V(e) {
|
|
114
285
|
return {
|
|
115
286
|
type: "JSExpression",
|
|
116
287
|
value: /^\{[\w\W]*\}$/.test(e) ? `(${e})` : e
|
|
@@ -122,7 +293,7 @@ function du(e) {
|
|
|
122
293
|
value: e
|
|
123
294
|
};
|
|
124
295
|
}
|
|
125
|
-
const
|
|
296
|
+
const ce = [
|
|
126
297
|
"beforeCreate",
|
|
127
298
|
"created",
|
|
128
299
|
"beforeMount",
|
|
@@ -136,46 +307,46 @@ const ie = [
|
|
|
136
307
|
"renderTriggered",
|
|
137
308
|
"activated",
|
|
138
309
|
"deactivated"
|
|
139
|
-
],
|
|
310
|
+
], ne = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg,path,circle,rect,polygon".split(
|
|
140
311
|
","
|
|
141
|
-
),
|
|
312
|
+
), oe = "component,slot,template".split(","), de = "view,swiper,progress,icon,text,button,checkbox,editor,form,input,label,picker,radio,slider,switch,textarea,audio,camera,image,video,map,canvas".split(
|
|
142
313
|
","
|
|
143
314
|
);
|
|
144
|
-
function
|
|
145
|
-
return u === "uniapp" &&
|
|
315
|
+
function fe(e, u = "web") {
|
|
316
|
+
return u === "uniapp" && de.includes(e);
|
|
146
317
|
}
|
|
147
|
-
function
|
|
148
|
-
return (
|
|
318
|
+
function qu(e, u = "web") {
|
|
319
|
+
return (ne.includes(e) || oe.includes(e)) && !fe(e, u) ? e : ue(e);
|
|
149
320
|
}
|
|
150
|
-
function
|
|
321
|
+
function Vu(e) {
|
|
151
322
|
return e.replace(/\s+/g, " ").split(";").reduce((t, a) => {
|
|
152
|
-
const [i,
|
|
153
|
-
return i &&
|
|
323
|
+
const [i, s] = a.split(":").map((r) => r.trim());
|
|
324
|
+
return i && s && (t[i] = s), t;
|
|
154
325
|
}, {});
|
|
155
326
|
}
|
|
156
|
-
function
|
|
327
|
+
function le(e, u, t) {
|
|
157
328
|
if (t === "ObjectExpression")
|
|
158
329
|
return `(Object.assign({${e.split(" ").map((i) => `'${i}': true`).join(",")}}, ${u}))`;
|
|
159
330
|
if (t === "ArrayExpression")
|
|
160
331
|
return `([${e.split(" ").map((i) => `'${i}'`).join(",")}].concat(${u}))`;
|
|
161
332
|
}
|
|
162
|
-
function
|
|
333
|
+
function be(e = "") {
|
|
163
334
|
const t = e.trim().match(/DataSource:\s*([^\n=]+={0,2})/)?.[1] || "";
|
|
164
335
|
try {
|
|
165
|
-
return t ? JSON.parse(
|
|
336
|
+
return t ? JSON.parse(ee(t)) : null;
|
|
166
337
|
} catch (a) {
|
|
167
338
|
return console.warn("extractDataSource fail", a), null;
|
|
168
339
|
}
|
|
169
340
|
}
|
|
170
|
-
const
|
|
341
|
+
const he = /* @__PURE__ */ new Uint16Array(
|
|
171
342
|
// prettier-ignore
|
|
172
343
|
/* @__PURE__ */ 'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e) => e.charCodeAt(0))
|
|
173
|
-
),
|
|
344
|
+
), pe = /* @__PURE__ */ new Uint16Array(
|
|
174
345
|
// prettier-ignore
|
|
175
346
|
/* @__PURE__ */ "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))
|
|
176
347
|
);
|
|
177
348
|
var tu;
|
|
178
|
-
const
|
|
349
|
+
const me = /* @__PURE__ */ new Map([
|
|
179
350
|
[0, 65533],
|
|
180
351
|
// C1 Unicode control character reference replacements
|
|
181
352
|
[128, 8364],
|
|
@@ -212,46 +383,46 @@ const be = /* @__PURE__ */ new Map([
|
|
|
212
383
|
return e > 65535 && (e -= 65536, u += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), u += String.fromCharCode(e), u;
|
|
213
384
|
}
|
|
214
385
|
);
|
|
215
|
-
function
|
|
386
|
+
function xe(e) {
|
|
216
387
|
var u;
|
|
217
|
-
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u =
|
|
388
|
+
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = me.get(e)) !== null && u !== void 0 ? u : e;
|
|
218
389
|
}
|
|
219
|
-
var
|
|
390
|
+
var k;
|
|
220
391
|
(function(e) {
|
|
221
392
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
222
|
-
})(
|
|
223
|
-
const
|
|
224
|
-
var
|
|
393
|
+
})(k || (k = {}));
|
|
394
|
+
const ge = 32;
|
|
395
|
+
var O;
|
|
225
396
|
(function(e) {
|
|
226
397
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
227
|
-
})(
|
|
228
|
-
function
|
|
229
|
-
return e >=
|
|
398
|
+
})(O || (O = {}));
|
|
399
|
+
function su(e) {
|
|
400
|
+
return e >= k.ZERO && e <= k.NINE;
|
|
230
401
|
}
|
|
231
|
-
function
|
|
232
|
-
return e >=
|
|
402
|
+
function ye(e) {
|
|
403
|
+
return e >= k.UPPER_A && e <= k.UPPER_F || e >= k.LOWER_A && e <= k.LOWER_F;
|
|
233
404
|
}
|
|
234
|
-
function
|
|
235
|
-
return e >=
|
|
405
|
+
function Se(e) {
|
|
406
|
+
return e >= k.UPPER_A && e <= k.UPPER_Z || e >= k.LOWER_A && e <= k.LOWER_Z || su(e);
|
|
236
407
|
}
|
|
237
|
-
function
|
|
238
|
-
return e ===
|
|
408
|
+
function Ie(e) {
|
|
409
|
+
return e === k.EQUALS || Se(e);
|
|
239
410
|
}
|
|
240
|
-
var
|
|
411
|
+
var N;
|
|
241
412
|
(function(e) {
|
|
242
413
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
243
|
-
})(
|
|
244
|
-
var
|
|
414
|
+
})(N || (N = {}));
|
|
415
|
+
var L;
|
|
245
416
|
(function(e) {
|
|
246
417
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
247
|
-
})(
|
|
248
|
-
class
|
|
418
|
+
})(L || (L = {}));
|
|
419
|
+
class Ee {
|
|
249
420
|
constructor(u, t, a) {
|
|
250
|
-
this.decodeTree = u, this.emitCodePoint = t, this.errors = a, this.state =
|
|
421
|
+
this.decodeTree = u, this.emitCodePoint = t, this.errors = a, this.state = N.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = L.Strict;
|
|
251
422
|
}
|
|
252
423
|
/** Resets the instance to make it reusable. */
|
|
253
424
|
startEntity(u) {
|
|
254
|
-
this.decodeMode = u, this.state =
|
|
425
|
+
this.decodeMode = u, this.state = N.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
255
426
|
}
|
|
256
427
|
/**
|
|
257
428
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -266,15 +437,15 @@ class ye {
|
|
|
266
437
|
*/
|
|
267
438
|
write(u, t) {
|
|
268
439
|
switch (this.state) {
|
|
269
|
-
case
|
|
270
|
-
return u.charCodeAt(t) ===
|
|
271
|
-
case
|
|
440
|
+
case N.EntityStart:
|
|
441
|
+
return u.charCodeAt(t) === k.NUM ? (this.state = N.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = N.NamedEntity, this.stateNamedEntity(u, t));
|
|
442
|
+
case N.NumericStart:
|
|
272
443
|
return this.stateNumericStart(u, t);
|
|
273
|
-
case
|
|
444
|
+
case N.NumericDecimal:
|
|
274
445
|
return this.stateNumericDecimal(u, t);
|
|
275
|
-
case
|
|
446
|
+
case N.NumericHex:
|
|
276
447
|
return this.stateNumericHex(u, t);
|
|
277
|
-
case
|
|
448
|
+
case N.NamedEntity:
|
|
278
449
|
return this.stateNamedEntity(u, t);
|
|
279
450
|
}
|
|
280
451
|
}
|
|
@@ -288,12 +459,12 @@ class ye {
|
|
|
288
459
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
289
460
|
*/
|
|
290
461
|
stateNumericStart(u, t) {
|
|
291
|
-
return t >= u.length ? -1 : (u.charCodeAt(t) |
|
|
462
|
+
return t >= u.length ? -1 : (u.charCodeAt(t) | ge) === k.LOWER_X ? (this.state = N.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = N.NumericDecimal, this.stateNumericDecimal(u, t));
|
|
292
463
|
}
|
|
293
464
|
addToNumericResult(u, t, a, i) {
|
|
294
465
|
if (t !== a) {
|
|
295
|
-
const
|
|
296
|
-
this.result = this.result * Math.pow(i,
|
|
466
|
+
const s = a - t;
|
|
467
|
+
this.result = this.result * Math.pow(i, s) + Number.parseInt(u.substr(t, s), i), this.consumed += s;
|
|
297
468
|
}
|
|
298
469
|
}
|
|
299
470
|
/**
|
|
@@ -309,7 +480,7 @@ class ye {
|
|
|
309
480
|
const a = t;
|
|
310
481
|
for (; t < u.length; ) {
|
|
311
482
|
const i = u.charCodeAt(t);
|
|
312
|
-
if (
|
|
483
|
+
if (su(i) || ye(i))
|
|
313
484
|
t += 1;
|
|
314
485
|
else
|
|
315
486
|
return this.addToNumericResult(u, a, t, 16), this.emitNumericEntity(i, 3);
|
|
@@ -329,7 +500,7 @@ class ye {
|
|
|
329
500
|
const a = t;
|
|
330
501
|
for (; t < u.length; ) {
|
|
331
502
|
const i = u.charCodeAt(t);
|
|
332
|
-
if (
|
|
503
|
+
if (su(i))
|
|
333
504
|
t += 1;
|
|
334
505
|
else
|
|
335
506
|
return this.addToNumericResult(u, a, t, 10), this.emitNumericEntity(i, 2);
|
|
@@ -353,11 +524,11 @@ class ye {
|
|
|
353
524
|
var a;
|
|
354
525
|
if (this.consumed <= t)
|
|
355
526
|
return (a = this.errors) === null || a === void 0 || a.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
356
|
-
if (u ===
|
|
527
|
+
if (u === k.SEMI)
|
|
357
528
|
this.consumed += 1;
|
|
358
|
-
else if (this.decodeMode ===
|
|
529
|
+
else if (this.decodeMode === L.Strict)
|
|
359
530
|
return 0;
|
|
360
|
-
return this.emitCodePoint(
|
|
531
|
+
return this.emitCodePoint(xe(this.result), this.consumed), this.errors && (u !== k.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
361
532
|
}
|
|
362
533
|
/**
|
|
363
534
|
* Parses a named entity.
|
|
@@ -370,18 +541,18 @@ class ye {
|
|
|
370
541
|
*/
|
|
371
542
|
stateNamedEntity(u, t) {
|
|
372
543
|
const { decodeTree: a } = this;
|
|
373
|
-
let i = a[this.treeIndex],
|
|
544
|
+
let i = a[this.treeIndex], s = (i & O.VALUE_LENGTH) >> 14;
|
|
374
545
|
for (; t < u.length; t++, this.excess++) {
|
|
375
|
-
const
|
|
376
|
-
if (this.treeIndex =
|
|
546
|
+
const r = u.charCodeAt(t);
|
|
547
|
+
if (this.treeIndex = we(a, i, this.treeIndex + Math.max(1, s), r), this.treeIndex < 0)
|
|
377
548
|
return this.result === 0 || // If we are parsing an attribute
|
|
378
|
-
this.decodeMode ===
|
|
379
|
-
(
|
|
380
|
-
|
|
381
|
-
if (i = a[this.treeIndex],
|
|
382
|
-
if (
|
|
383
|
-
return this.emitNamedEntityData(this.treeIndex,
|
|
384
|
-
this.decodeMode !==
|
|
549
|
+
this.decodeMode === L.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
550
|
+
(s === 0 || // And there should be no invalid characters.
|
|
551
|
+
Ie(r)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
552
|
+
if (i = a[this.treeIndex], s = (i & O.VALUE_LENGTH) >> 14, s !== 0) {
|
|
553
|
+
if (r === k.SEMI)
|
|
554
|
+
return this.emitNamedEntityData(this.treeIndex, s, this.consumed + this.excess);
|
|
555
|
+
this.decodeMode !== L.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
385
556
|
}
|
|
386
557
|
}
|
|
387
558
|
return -1;
|
|
@@ -393,7 +564,7 @@ class ye {
|
|
|
393
564
|
*/
|
|
394
565
|
emitNotTerminatedNamedEntity() {
|
|
395
566
|
var u;
|
|
396
|
-
const { result: t, decodeTree: a } = this, i = (a[t] &
|
|
567
|
+
const { result: t, decodeTree: a } = this, i = (a[t] & O.VALUE_LENGTH) >> 14;
|
|
397
568
|
return this.emitNamedEntityData(t, i, this.consumed), (u = this.errors) === null || u === void 0 || u.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
398
569
|
}
|
|
399
570
|
/**
|
|
@@ -407,7 +578,7 @@ class ye {
|
|
|
407
578
|
*/
|
|
408
579
|
emitNamedEntityData(u, t, a) {
|
|
409
580
|
const { decodeTree: i } = this;
|
|
410
|
-
return this.emitCodePoint(t === 1 ? i[u] & ~
|
|
581
|
+
return this.emitCodePoint(t === 1 ? i[u] & ~O.VALUE_LENGTH : i[u + 1], a), t === 3 && this.emitCodePoint(i[u + 2], a), a;
|
|
411
582
|
}
|
|
412
583
|
/**
|
|
413
584
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -419,62 +590,62 @@ class ye {
|
|
|
419
590
|
end() {
|
|
420
591
|
var u;
|
|
421
592
|
switch (this.state) {
|
|
422
|
-
case
|
|
423
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
593
|
+
case N.NamedEntity:
|
|
594
|
+
return this.result !== 0 && (this.decodeMode !== L.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
424
595
|
// Otherwise, emit a numeric entity if we have one.
|
|
425
|
-
case
|
|
596
|
+
case N.NumericDecimal:
|
|
426
597
|
return this.emitNumericEntity(0, 2);
|
|
427
|
-
case
|
|
598
|
+
case N.NumericHex:
|
|
428
599
|
return this.emitNumericEntity(0, 3);
|
|
429
|
-
case
|
|
600
|
+
case N.NumericStart:
|
|
430
601
|
return (u = this.errors) === null || u === void 0 || u.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
431
|
-
case
|
|
602
|
+
case N.EntityStart:
|
|
432
603
|
return 0;
|
|
433
604
|
}
|
|
434
605
|
}
|
|
435
606
|
}
|
|
436
|
-
function
|
|
437
|
-
const i = (u &
|
|
607
|
+
function we(e, u, t, a) {
|
|
608
|
+
const i = (u & O.BRANCH_LENGTH) >> 7, s = u & O.JUMP_TABLE;
|
|
438
609
|
if (i === 0)
|
|
439
|
-
return
|
|
440
|
-
if (
|
|
441
|
-
const d = a -
|
|
610
|
+
return s !== 0 && a === s ? t : -1;
|
|
611
|
+
if (s) {
|
|
612
|
+
const d = a - s;
|
|
442
613
|
return d < 0 || d >= i ? -1 : e[t + d] - 1;
|
|
443
614
|
}
|
|
444
|
-
let
|
|
445
|
-
for (;
|
|
446
|
-
const d =
|
|
447
|
-
if (
|
|
448
|
-
|
|
449
|
-
else if (
|
|
615
|
+
let r = t, n = r + i - 1;
|
|
616
|
+
for (; r <= n; ) {
|
|
617
|
+
const d = r + n >>> 1, c = e[d];
|
|
618
|
+
if (c < a)
|
|
619
|
+
r = d + 1;
|
|
620
|
+
else if (c > a)
|
|
450
621
|
n = d - 1;
|
|
451
622
|
else
|
|
452
623
|
return e[d + i];
|
|
453
624
|
}
|
|
454
625
|
return -1;
|
|
455
626
|
}
|
|
456
|
-
var
|
|
627
|
+
var p;
|
|
457
628
|
(function(e) {
|
|
458
629
|
e[e.Tab = 9] = "Tab", e[e.NewLine = 10] = "NewLine", e[e.FormFeed = 12] = "FormFeed", e[e.CarriageReturn = 13] = "CarriageReturn", e[e.Space = 32] = "Space", e[e.ExclamationMark = 33] = "ExclamationMark", e[e.Number = 35] = "Number", e[e.Amp = 38] = "Amp", e[e.SingleQuote = 39] = "SingleQuote", e[e.DoubleQuote = 34] = "DoubleQuote", e[e.Dash = 45] = "Dash", e[e.Slash = 47] = "Slash", e[e.Zero = 48] = "Zero", e[e.Nine = 57] = "Nine", e[e.Semi = 59] = "Semi", e[e.Lt = 60] = "Lt", e[e.Eq = 61] = "Eq", e[e.Gt = 62] = "Gt", e[e.Questionmark = 63] = "Questionmark", e[e.UpperA = 65] = "UpperA", e[e.LowerA = 97] = "LowerA", e[e.UpperF = 70] = "UpperF", e[e.LowerF = 102] = "LowerF", e[e.UpperZ = 90] = "UpperZ", e[e.LowerZ = 122] = "LowerZ", e[e.LowerX = 120] = "LowerX", e[e.OpeningSquareBracket = 91] = "OpeningSquareBracket";
|
|
459
|
-
})(
|
|
630
|
+
})(p || (p = {}));
|
|
460
631
|
var o;
|
|
461
632
|
(function(e) {
|
|
462
633
|
e[e.Text = 1] = "Text", e[e.BeforeTagName = 2] = "BeforeTagName", e[e.InTagName = 3] = "InTagName", e[e.InSelfClosingTag = 4] = "InSelfClosingTag", e[e.BeforeClosingTagName = 5] = "BeforeClosingTagName", e[e.InClosingTagName = 6] = "InClosingTagName", e[e.AfterClosingTagName = 7] = "AfterClosingTagName", e[e.BeforeAttributeName = 8] = "BeforeAttributeName", e[e.InAttributeName = 9] = "InAttributeName", e[e.AfterAttributeName = 10] = "AfterAttributeName", e[e.BeforeAttributeValue = 11] = "BeforeAttributeValue", e[e.InAttributeValueDq = 12] = "InAttributeValueDq", e[e.InAttributeValueSq = 13] = "InAttributeValueSq", e[e.InAttributeValueNq = 14] = "InAttributeValueNq", e[e.BeforeDeclaration = 15] = "BeforeDeclaration", e[e.InDeclaration = 16] = "InDeclaration", e[e.InProcessingInstruction = 17] = "InProcessingInstruction", e[e.BeforeComment = 18] = "BeforeComment", e[e.CDATASequence = 19] = "CDATASequence", e[e.InSpecialComment = 20] = "InSpecialComment", e[e.InCommentLike = 21] = "InCommentLike", e[e.BeforeSpecialS = 22] = "BeforeSpecialS", e[e.BeforeSpecialT = 23] = "BeforeSpecialT", e[e.SpecialStartSequence = 24] = "SpecialStartSequence", e[e.InSpecialTag = 25] = "InSpecialTag", e[e.InEntity = 26] = "InEntity";
|
|
463
634
|
})(o || (o = {}));
|
|
464
635
|
function _(e) {
|
|
465
|
-
return e ===
|
|
636
|
+
return e === p.Space || e === p.NewLine || e === p.Tab || e === p.FormFeed || e === p.CarriageReturn;
|
|
466
637
|
}
|
|
467
|
-
function
|
|
468
|
-
return e ===
|
|
638
|
+
function Z(e) {
|
|
639
|
+
return e === p.Slash || e === p.Gt || _(e);
|
|
469
640
|
}
|
|
470
|
-
function
|
|
471
|
-
return e >=
|
|
641
|
+
function ve(e) {
|
|
642
|
+
return e >= p.LowerA && e <= p.LowerZ || e >= p.UpperA && e <= p.UpperZ;
|
|
472
643
|
}
|
|
473
|
-
var
|
|
644
|
+
var C;
|
|
474
645
|
(function(e) {
|
|
475
646
|
e[e.NoValue = 0] = "NoValue", e[e.Unquoted = 1] = "Unquoted", e[e.Single = 2] = "Single", e[e.Double = 3] = "Double";
|
|
476
|
-
})(
|
|
477
|
-
const
|
|
647
|
+
})(C || (C = {}));
|
|
648
|
+
const T = {
|
|
478
649
|
Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
|
|
479
650
|
// CDATA[
|
|
480
651
|
CdataEnd: new Uint8Array([93, 93, 62]),
|
|
@@ -503,9 +674,9 @@ const w = {
|
|
|
503
674
|
XmpEnd: new Uint8Array([60, 47, 120, 109, 112])
|
|
504
675
|
// `</xmp`
|
|
505
676
|
};
|
|
506
|
-
class
|
|
677
|
+
class Ae {
|
|
507
678
|
constructor({ xmlMode: u = !1, decodeEntities: t = !0 }, a) {
|
|
508
|
-
this.cbs = a, this.state = o.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = o.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode = u, this.decodeEntities = t, this.entityDecoder = new
|
|
679
|
+
this.cbs = a, this.state = o.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = o.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode = u, this.decodeEntities = t, this.entityDecoder = new Ee(u ? pe : he, (i, s) => this.emitCodePoint(i, s));
|
|
509
680
|
}
|
|
510
681
|
reset() {
|
|
511
682
|
this.state = o.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = o.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0;
|
|
@@ -523,13 +694,13 @@ class Ee {
|
|
|
523
694
|
this.running = !0, this.index < this.buffer.length + this.offset && this.parse();
|
|
524
695
|
}
|
|
525
696
|
stateText(u) {
|
|
526
|
-
u ===
|
|
697
|
+
u === p.Lt || !this.decodeEntities && this.fastForwardTo(p.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = o.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && u === p.Amp && this.startEntity();
|
|
527
698
|
}
|
|
528
699
|
stateSpecialStartSequence(u) {
|
|
529
700
|
const t = this.sequenceIndex === this.currentSequence.length;
|
|
530
701
|
if (!(t ? (
|
|
531
702
|
// If we are at the end of the sequence, make sure the tag name has ended
|
|
532
|
-
|
|
703
|
+
Z(u)
|
|
533
704
|
) : (
|
|
534
705
|
// Otherwise, do a case-insensitive comparison
|
|
535
706
|
(u | 32) === this.currentSequence[this.sequenceIndex]
|
|
@@ -544,7 +715,7 @@ class Ee {
|
|
|
544
715
|
/** Look for an end tag. For <title> tags, also decode entities. */
|
|
545
716
|
stateInSpecialTag(u) {
|
|
546
717
|
if (this.sequenceIndex === this.currentSequence.length) {
|
|
547
|
-
if (u ===
|
|
718
|
+
if (u === p.Gt || _(u)) {
|
|
548
719
|
const t = this.index - this.currentSequence.length;
|
|
549
720
|
if (this.sectionStart < t) {
|
|
550
721
|
const a = this.index;
|
|
@@ -555,10 +726,10 @@ class Ee {
|
|
|
555
726
|
}
|
|
556
727
|
this.sequenceIndex = 0;
|
|
557
728
|
}
|
|
558
|
-
(u | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence ===
|
|
729
|
+
(u | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === T.TitleEnd ? this.decodeEntities && u === p.Amp && this.startEntity() : this.fastForwardTo(p.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(u === p.Lt);
|
|
559
730
|
}
|
|
560
731
|
stateCDATASequence(u) {
|
|
561
|
-
u ===
|
|
732
|
+
u === T.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === T.Cdata.length && (this.state = o.InCommentLike, this.currentSequence = T.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = o.InDeclaration, this.stateInDeclaration(u));
|
|
562
733
|
}
|
|
563
734
|
/**
|
|
564
735
|
* When we wait for one specific character, we can speed things up
|
|
@@ -581,7 +752,7 @@ class Ee {
|
|
|
581
752
|
* - All characters but the start character of the sequence can be skipped.
|
|
582
753
|
*/
|
|
583
754
|
stateInCommentLike(u) {
|
|
584
|
-
u === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence ===
|
|
755
|
+
u === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === T.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = o.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : u !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
|
|
585
756
|
}
|
|
586
757
|
/**
|
|
587
758
|
* HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
|
|
@@ -590,91 +761,91 @@ class Ee {
|
|
|
590
761
|
* We allow anything that wouldn't end the tag.
|
|
591
762
|
*/
|
|
592
763
|
isTagStartChar(u) {
|
|
593
|
-
return this.xmlMode ? !
|
|
764
|
+
return this.xmlMode ? !Z(u) : ve(u);
|
|
594
765
|
}
|
|
595
766
|
startSpecial(u, t) {
|
|
596
767
|
this.isSpecial = !0, this.currentSequence = u, this.sequenceIndex = t, this.state = o.SpecialStartSequence;
|
|
597
768
|
}
|
|
598
769
|
stateBeforeTagName(u) {
|
|
599
|
-
if (u ===
|
|
770
|
+
if (u === p.ExclamationMark)
|
|
600
771
|
this.state = o.BeforeDeclaration, this.sectionStart = this.index + 1;
|
|
601
|
-
else if (u ===
|
|
772
|
+
else if (u === p.Questionmark)
|
|
602
773
|
this.state = o.InProcessingInstruction, this.sectionStart = this.index + 1;
|
|
603
774
|
else if (this.isTagStartChar(u)) {
|
|
604
775
|
const t = u | 32;
|
|
605
|
-
this.sectionStart = this.index, this.xmlMode ? this.state = o.InTagName : t ===
|
|
606
|
-
} else u ===
|
|
776
|
+
this.sectionStart = this.index, this.xmlMode ? this.state = o.InTagName : t === T.ScriptEnd[2] ? this.state = o.BeforeSpecialS : t === T.TitleEnd[2] || t === T.XmpEnd[2] ? this.state = o.BeforeSpecialT : this.state = o.InTagName;
|
|
777
|
+
} else u === p.Slash ? this.state = o.BeforeClosingTagName : (this.state = o.Text, this.stateText(u));
|
|
607
778
|
}
|
|
608
779
|
stateInTagName(u) {
|
|
609
|
-
|
|
780
|
+
Z(u) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = o.BeforeAttributeName, this.stateBeforeAttributeName(u));
|
|
610
781
|
}
|
|
611
782
|
stateBeforeClosingTagName(u) {
|
|
612
|
-
_(u) || (u ===
|
|
783
|
+
_(u) || (u === p.Gt ? this.state = o.Text : (this.state = this.isTagStartChar(u) ? o.InClosingTagName : o.InSpecialComment, this.sectionStart = this.index));
|
|
613
784
|
}
|
|
614
785
|
stateInClosingTagName(u) {
|
|
615
|
-
(u ===
|
|
786
|
+
(u === p.Gt || _(u)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = o.AfterClosingTagName, this.stateAfterClosingTagName(u));
|
|
616
787
|
}
|
|
617
788
|
stateAfterClosingTagName(u) {
|
|
618
|
-
(u ===
|
|
789
|
+
(u === p.Gt || this.fastForwardTo(p.Gt)) && (this.state = o.Text, this.sectionStart = this.index + 1);
|
|
619
790
|
}
|
|
620
791
|
stateBeforeAttributeName(u) {
|
|
621
|
-
u ===
|
|
792
|
+
u === p.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = o.InSpecialTag, this.sequenceIndex = 0) : this.state = o.Text, this.sectionStart = this.index + 1) : u === p.Slash ? this.state = o.InSelfClosingTag : _(u) || (this.state = o.InAttributeName, this.sectionStart = this.index);
|
|
622
793
|
}
|
|
623
794
|
stateInSelfClosingTag(u) {
|
|
624
|
-
u ===
|
|
795
|
+
u === p.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = o.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : _(u) || (this.state = o.BeforeAttributeName, this.stateBeforeAttributeName(u));
|
|
625
796
|
}
|
|
626
797
|
stateInAttributeName(u) {
|
|
627
|
-
(u ===
|
|
798
|
+
(u === p.Eq || Z(u)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state = o.AfterAttributeName, this.stateAfterAttributeName(u));
|
|
628
799
|
}
|
|
629
800
|
stateAfterAttributeName(u) {
|
|
630
|
-
u ===
|
|
801
|
+
u === p.Eq ? this.state = o.BeforeAttributeValue : u === p.Slash || u === p.Gt ? (this.cbs.onattribend(C.NoValue, this.sectionStart), this.sectionStart = -1, this.state = o.BeforeAttributeName, this.stateBeforeAttributeName(u)) : _(u) || (this.cbs.onattribend(C.NoValue, this.sectionStart), this.state = o.InAttributeName, this.sectionStart = this.index);
|
|
631
802
|
}
|
|
632
803
|
stateBeforeAttributeValue(u) {
|
|
633
|
-
u ===
|
|
804
|
+
u === p.DoubleQuote ? (this.state = o.InAttributeValueDq, this.sectionStart = this.index + 1) : u === p.SingleQuote ? (this.state = o.InAttributeValueSq, this.sectionStart = this.index + 1) : _(u) || (this.sectionStart = this.index, this.state = o.InAttributeValueNq, this.stateInAttributeValueNoQuotes(u));
|
|
634
805
|
}
|
|
635
806
|
handleInAttributeValue(u, t) {
|
|
636
|
-
u === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t ===
|
|
807
|
+
u === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === p.DoubleQuote ? C.Double : C.Single, this.index + 1), this.state = o.BeforeAttributeName) : this.decodeEntities && u === p.Amp && this.startEntity();
|
|
637
808
|
}
|
|
638
809
|
stateInAttributeValueDoubleQuotes(u) {
|
|
639
|
-
this.handleInAttributeValue(u,
|
|
810
|
+
this.handleInAttributeValue(u, p.DoubleQuote);
|
|
640
811
|
}
|
|
641
812
|
stateInAttributeValueSingleQuotes(u) {
|
|
642
|
-
this.handleInAttributeValue(u,
|
|
813
|
+
this.handleInAttributeValue(u, p.SingleQuote);
|
|
643
814
|
}
|
|
644
815
|
stateInAttributeValueNoQuotes(u) {
|
|
645
|
-
_(u) || u ===
|
|
816
|
+
_(u) || u === p.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(C.Unquoted, this.index), this.state = o.BeforeAttributeName, this.stateBeforeAttributeName(u)) : this.decodeEntities && u === p.Amp && this.startEntity();
|
|
646
817
|
}
|
|
647
818
|
stateBeforeDeclaration(u) {
|
|
648
|
-
u ===
|
|
819
|
+
u === p.OpeningSquareBracket ? (this.state = o.CDATASequence, this.sequenceIndex = 0) : this.state = u === p.Dash ? o.BeforeComment : o.InDeclaration;
|
|
649
820
|
}
|
|
650
821
|
stateInDeclaration(u) {
|
|
651
|
-
(u ===
|
|
822
|
+
(u === p.Gt || this.fastForwardTo(p.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = o.Text, this.sectionStart = this.index + 1);
|
|
652
823
|
}
|
|
653
824
|
stateInProcessingInstruction(u) {
|
|
654
|
-
(u ===
|
|
825
|
+
(u === p.Gt || this.fastForwardTo(p.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = o.Text, this.sectionStart = this.index + 1);
|
|
655
826
|
}
|
|
656
827
|
stateBeforeComment(u) {
|
|
657
|
-
u ===
|
|
828
|
+
u === p.Dash ? (this.state = o.InCommentLike, this.currentSequence = T.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = o.InDeclaration;
|
|
658
829
|
}
|
|
659
830
|
stateInSpecialComment(u) {
|
|
660
|
-
(u ===
|
|
831
|
+
(u === p.Gt || this.fastForwardTo(p.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = o.Text, this.sectionStart = this.index + 1);
|
|
661
832
|
}
|
|
662
833
|
stateBeforeSpecialS(u) {
|
|
663
834
|
const t = u | 32;
|
|
664
|
-
t ===
|
|
835
|
+
t === T.ScriptEnd[3] ? this.startSpecial(T.ScriptEnd, 4) : t === T.StyleEnd[3] ? this.startSpecial(T.StyleEnd, 4) : (this.state = o.InTagName, this.stateInTagName(u));
|
|
665
836
|
}
|
|
666
837
|
stateBeforeSpecialT(u) {
|
|
667
838
|
switch (u | 32) {
|
|
668
|
-
case
|
|
669
|
-
this.startSpecial(
|
|
839
|
+
case T.TitleEnd[3]: {
|
|
840
|
+
this.startSpecial(T.TitleEnd, 4);
|
|
670
841
|
break;
|
|
671
842
|
}
|
|
672
|
-
case
|
|
673
|
-
this.startSpecial(
|
|
843
|
+
case T.TextareaEnd[3]: {
|
|
844
|
+
this.startSpecial(T.TextareaEnd, 4);
|
|
674
845
|
break;
|
|
675
846
|
}
|
|
676
|
-
case
|
|
677
|
-
this.startSpecial(
|
|
847
|
+
case T.XmpEnd[3]: {
|
|
848
|
+
this.startSpecial(T.XmpEnd, 4);
|
|
678
849
|
break;
|
|
679
850
|
}
|
|
680
851
|
default:
|
|
@@ -682,7 +853,7 @@ class Ee {
|
|
|
682
853
|
}
|
|
683
854
|
}
|
|
684
855
|
startEntity() {
|
|
685
|
-
this.baseState = this.state, this.state = o.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ?
|
|
856
|
+
this.baseState = this.state, this.state = o.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ? L.Strict : this.baseState === o.Text || this.baseState === o.InSpecialTag ? L.Legacy : L.Attribute);
|
|
686
857
|
}
|
|
687
858
|
stateInEntity() {
|
|
688
859
|
const u = this.entityDecoder.write(this.buffer, this.index - this.offset);
|
|
@@ -821,13 +992,13 @@ class Ee {
|
|
|
821
992
|
/** Handle any trailing data. */
|
|
822
993
|
handleTrailingData() {
|
|
823
994
|
const u = this.buffer.length + this.offset;
|
|
824
|
-
this.sectionStart >= u || (this.state === o.InCommentLike ? this.currentSequence ===
|
|
995
|
+
this.sectionStart >= u || (this.state === o.InCommentLike ? this.currentSequence === T.CdataEnd ? this.cbs.oncdata(this.sectionStart, u, 0) : this.cbs.oncomment(this.sectionStart, u, 0) : this.state === o.InTagName || this.state === o.BeforeAttributeName || this.state === o.BeforeAttributeValue || this.state === o.AfterAttributeName || this.state === o.InAttributeName || this.state === o.InAttributeValueSq || this.state === o.InAttributeValueDq || this.state === o.InAttributeValueNq || this.state === o.InClosingTagName || this.cbs.ontext(this.sectionStart, u));
|
|
825
996
|
}
|
|
826
997
|
emitCodePoint(u, t) {
|
|
827
998
|
this.baseState !== o.Text && this.baseState !== o.InSpecialTag ? (this.sectionStart < this.entityStart && this.cbs.onattribdata(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + t, this.index = this.sectionStart - 1, this.cbs.onattribentity(u)) : (this.sectionStart < this.entityStart && this.cbs.ontext(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + t, this.index = this.sectionStart - 1, this.cbs.ontextentity(u, this.sectionStart));
|
|
828
999
|
}
|
|
829
1000
|
}
|
|
830
|
-
const
|
|
1001
|
+
const H = /* @__PURE__ */ new Set([
|
|
831
1002
|
"input",
|
|
832
1003
|
"option",
|
|
833
1004
|
"optgroup",
|
|
@@ -835,55 +1006,55 @@ const U = /* @__PURE__ */ new Set([
|
|
|
835
1006
|
"button",
|
|
836
1007
|
"datalist",
|
|
837
1008
|
"textarea"
|
|
838
|
-
]),
|
|
1009
|
+
]), E = /* @__PURE__ */ new Set(["p"]), Su = /* @__PURE__ */ new Set(["thead", "tbody"]), Iu = /* @__PURE__ */ new Set(["dd", "dt"]), Eu = /* @__PURE__ */ new Set(["rt", "rp"]), Te = /* @__PURE__ */ new Map([
|
|
839
1010
|
["tr", /* @__PURE__ */ new Set(["tr", "th", "td"])],
|
|
840
1011
|
["th", /* @__PURE__ */ new Set(["th"])],
|
|
841
1012
|
["td", /* @__PURE__ */ new Set(["thead", "th", "td"])],
|
|
842
1013
|
["body", /* @__PURE__ */ new Set(["head", "link", "script"])],
|
|
843
1014
|
["li", /* @__PURE__ */ new Set(["li"])],
|
|
844
|
-
["p",
|
|
845
|
-
["h1",
|
|
846
|
-
["h2",
|
|
847
|
-
["h3",
|
|
848
|
-
["h4",
|
|
849
|
-
["h5",
|
|
850
|
-
["h6",
|
|
851
|
-
["select",
|
|
852
|
-
["input",
|
|
853
|
-
["output",
|
|
854
|
-
["button",
|
|
855
|
-
["datalist",
|
|
856
|
-
["textarea",
|
|
1015
|
+
["p", E],
|
|
1016
|
+
["h1", E],
|
|
1017
|
+
["h2", E],
|
|
1018
|
+
["h3", E],
|
|
1019
|
+
["h4", E],
|
|
1020
|
+
["h5", E],
|
|
1021
|
+
["h6", E],
|
|
1022
|
+
["select", H],
|
|
1023
|
+
["input", H],
|
|
1024
|
+
["output", H],
|
|
1025
|
+
["button", H],
|
|
1026
|
+
["datalist", H],
|
|
1027
|
+
["textarea", H],
|
|
857
1028
|
["option", /* @__PURE__ */ new Set(["option"])],
|
|
858
1029
|
["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
|
|
859
1030
|
["dd", Iu],
|
|
860
1031
|
["dt", Iu],
|
|
861
|
-
["address",
|
|
862
|
-
["article",
|
|
863
|
-
["aside",
|
|
864
|
-
["blockquote",
|
|
865
|
-
["details",
|
|
866
|
-
["div",
|
|
867
|
-
["dl",
|
|
868
|
-
["fieldset",
|
|
869
|
-
["figcaption",
|
|
870
|
-
["figure",
|
|
871
|
-
["footer",
|
|
872
|
-
["form",
|
|
873
|
-
["header",
|
|
874
|
-
["hr",
|
|
875
|
-
["main",
|
|
876
|
-
["nav",
|
|
877
|
-
["ol",
|
|
878
|
-
["pre",
|
|
879
|
-
["section",
|
|
880
|
-
["table",
|
|
881
|
-
["ul",
|
|
1032
|
+
["address", E],
|
|
1033
|
+
["article", E],
|
|
1034
|
+
["aside", E],
|
|
1035
|
+
["blockquote", E],
|
|
1036
|
+
["details", E],
|
|
1037
|
+
["div", E],
|
|
1038
|
+
["dl", E],
|
|
1039
|
+
["fieldset", E],
|
|
1040
|
+
["figcaption", E],
|
|
1041
|
+
["figure", E],
|
|
1042
|
+
["footer", E],
|
|
1043
|
+
["form", E],
|
|
1044
|
+
["header", E],
|
|
1045
|
+
["hr", E],
|
|
1046
|
+
["main", E],
|
|
1047
|
+
["nav", E],
|
|
1048
|
+
["ol", E],
|
|
1049
|
+
["pre", E],
|
|
1050
|
+
["section", E],
|
|
1051
|
+
["table", E],
|
|
1052
|
+
["ul", E],
|
|
882
1053
|
["rt", Eu],
|
|
883
1054
|
["rp", Eu],
|
|
884
1055
|
["tbody", Su],
|
|
885
1056
|
["tfoot", Su]
|
|
886
|
-
]),
|
|
1057
|
+
]), Ne = /* @__PURE__ */ new Set([
|
|
887
1058
|
"area",
|
|
888
1059
|
"base",
|
|
889
1060
|
"basefont",
|
|
@@ -913,18 +1084,18 @@ const U = /* @__PURE__ */ new Set([
|
|
|
913
1084
|
"foreignobject",
|
|
914
1085
|
"desc",
|
|
915
1086
|
"title"
|
|
916
|
-
]),
|
|
917
|
-
class
|
|
1087
|
+
]), ke = /\s|\//;
|
|
1088
|
+
class qe {
|
|
918
1089
|
constructor(u, t = {}) {
|
|
919
|
-
var a, i,
|
|
920
|
-
this.options = t, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = u ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (a = t.lowerCaseTags) !== null && a !== void 0 ? a : this.htmlMode, this.lowerCaseAttributeNames = (i = t.lowerCaseAttributeNames) !== null && i !== void 0 ? i : this.htmlMode, this.recognizeSelfClosing = (
|
|
1090
|
+
var a, i, s, r, n, d;
|
|
1091
|
+
this.options = t, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = u ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (a = t.lowerCaseTags) !== null && a !== void 0 ? a : this.htmlMode, this.lowerCaseAttributeNames = (i = t.lowerCaseAttributeNames) !== null && i !== void 0 ? i : this.htmlMode, this.recognizeSelfClosing = (s = t.recognizeSelfClosing) !== null && s !== void 0 ? s : !this.htmlMode, this.tokenizer = new ((r = t.Tokenizer) !== null && r !== void 0 ? r : Ae)(this.options, this), this.foreignContext = [!this.htmlMode], (d = (n = this.cbs).onparserinit) === null || d === void 0 || d.call(n, this);
|
|
921
1092
|
}
|
|
922
1093
|
// Tokenizer event handlers
|
|
923
1094
|
/** @internal */
|
|
924
1095
|
ontext(u, t) {
|
|
925
1096
|
var a, i;
|
|
926
|
-
const
|
|
927
|
-
this.endIndex = t - 1, (i = (a = this.cbs).ontext) === null || i === void 0 || i.call(a,
|
|
1097
|
+
const s = this.getSlice(u, t);
|
|
1098
|
+
this.endIndex = t - 1, (i = (a = this.cbs).ontext) === null || i === void 0 || i.call(a, s), this.startIndex = t;
|
|
928
1099
|
}
|
|
929
1100
|
/** @internal */
|
|
930
1101
|
ontextentity(u, t) {
|
|
@@ -936,7 +1107,7 @@ class Te {
|
|
|
936
1107
|
* to specify your own additional void elements.
|
|
937
1108
|
*/
|
|
938
1109
|
isVoidElement(u) {
|
|
939
|
-
return this.htmlMode &&
|
|
1110
|
+
return this.htmlMode && Ne.has(u);
|
|
940
1111
|
}
|
|
941
1112
|
/** @internal */
|
|
942
1113
|
onopentagname(u, t) {
|
|
@@ -945,15 +1116,15 @@ class Te {
|
|
|
945
1116
|
this.lowerCaseTagNames && (a = a.toLowerCase()), this.emitOpenTag(a);
|
|
946
1117
|
}
|
|
947
1118
|
emitOpenTag(u) {
|
|
948
|
-
var t, a, i,
|
|
1119
|
+
var t, a, i, s;
|
|
949
1120
|
this.openTagStart = this.startIndex, this.tagname = u;
|
|
950
|
-
const
|
|
951
|
-
if (
|
|
952
|
-
for (; this.stack.length > 0 &&
|
|
1121
|
+
const r = this.htmlMode && Te.get(u);
|
|
1122
|
+
if (r)
|
|
1123
|
+
for (; this.stack.length > 0 && r.has(this.stack[0]); ) {
|
|
953
1124
|
const n = this.stack.shift();
|
|
954
1125
|
(a = (t = this.cbs).onclosetag) === null || a === void 0 || a.call(t, n, !0);
|
|
955
1126
|
}
|
|
956
|
-
this.isVoidElement(u) || (this.stack.unshift(u), this.htmlMode && (wu.has(u) ? this.foreignContext.unshift(!0) : vu.has(u) && this.foreignContext.unshift(!1))), (
|
|
1127
|
+
this.isVoidElement(u) || (this.stack.unshift(u), this.htmlMode && (wu.has(u) ? this.foreignContext.unshift(!0) : vu.has(u) && this.foreignContext.unshift(!1))), (s = (i = this.cbs).onopentagname) === null || s === void 0 || s.call(i, u), this.cbs.onopentag && (this.attribs = {});
|
|
957
1128
|
}
|
|
958
1129
|
endOpenTag(u) {
|
|
959
1130
|
var t, a;
|
|
@@ -965,19 +1136,19 @@ class Te {
|
|
|
965
1136
|
}
|
|
966
1137
|
/** @internal */
|
|
967
1138
|
onclosetag(u, t) {
|
|
968
|
-
var a, i,
|
|
1139
|
+
var a, i, s, r, n, d, c, f;
|
|
969
1140
|
this.endIndex = t;
|
|
970
|
-
let
|
|
971
|
-
if (this.lowerCaseTagNames && (
|
|
972
|
-
this.htmlMode &&
|
|
1141
|
+
let l = this.getSlice(u, t);
|
|
1142
|
+
if (this.lowerCaseTagNames && (l = l.toLowerCase()), this.htmlMode && (wu.has(l) || vu.has(l)) && this.foreignContext.shift(), this.isVoidElement(l))
|
|
1143
|
+
this.htmlMode && l === "br" && ((r = (s = this.cbs).onopentagname) === null || r === void 0 || r.call(s, "br"), (d = (n = this.cbs).onopentag) === null || d === void 0 || d.call(n, "br", {}, !0), (f = (c = this.cbs).onclosetag) === null || f === void 0 || f.call(c, "br", !1));
|
|
973
1144
|
else {
|
|
974
|
-
const
|
|
975
|
-
if (
|
|
976
|
-
for (let
|
|
977
|
-
const
|
|
978
|
-
(i = (a = this.cbs).onclosetag) === null || i === void 0 || i.call(a,
|
|
1145
|
+
const h = this.stack.indexOf(l);
|
|
1146
|
+
if (h !== -1)
|
|
1147
|
+
for (let m = 0; m <= h; m++) {
|
|
1148
|
+
const w = this.stack.shift();
|
|
1149
|
+
(i = (a = this.cbs).onclosetag) === null || i === void 0 || i.call(a, w, m !== h);
|
|
979
1150
|
}
|
|
980
|
-
else this.htmlMode &&
|
|
1151
|
+
else this.htmlMode && l === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0));
|
|
981
1152
|
}
|
|
982
1153
|
this.startIndex = t + 1;
|
|
983
1154
|
}
|
|
@@ -1007,10 +1178,10 @@ class Te {
|
|
|
1007
1178
|
/** @internal */
|
|
1008
1179
|
onattribend(u, t) {
|
|
1009
1180
|
var a, i;
|
|
1010
|
-
this.endIndex = t, (i = (a = this.cbs).onattribute) === null || i === void 0 || i.call(a, this.attribname, this.attribvalue, u ===
|
|
1181
|
+
this.endIndex = t, (i = (a = this.cbs).onattribute) === null || i === void 0 || i.call(a, this.attribname, this.attribvalue, u === C.Double ? '"' : u === C.Single ? "'" : u === C.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = "";
|
|
1011
1182
|
}
|
|
1012
1183
|
getInstructionName(u) {
|
|
1013
|
-
const t = u.search(
|
|
1184
|
+
const t = u.search(ke);
|
|
1014
1185
|
let a = t < 0 ? u : u.substr(0, t);
|
|
1015
1186
|
return this.lowerCaseTagNames && (a = a.toLowerCase()), a;
|
|
1016
1187
|
}
|
|
@@ -1036,15 +1207,15 @@ class Te {
|
|
|
1036
1207
|
}
|
|
1037
1208
|
/** @internal */
|
|
1038
1209
|
oncomment(u, t, a) {
|
|
1039
|
-
var i,
|
|
1040
|
-
this.endIndex = t, (
|
|
1210
|
+
var i, s, r, n;
|
|
1211
|
+
this.endIndex = t, (s = (i = this.cbs).oncomment) === null || s === void 0 || s.call(i, this.getSlice(u, t - a)), (n = (r = this.cbs).oncommentend) === null || n === void 0 || n.call(r), this.startIndex = t + 1;
|
|
1041
1212
|
}
|
|
1042
1213
|
/** @internal */
|
|
1043
1214
|
oncdata(u, t, a) {
|
|
1044
|
-
var i,
|
|
1215
|
+
var i, s, r, n, d, c, f, l, h, m;
|
|
1045
1216
|
this.endIndex = t;
|
|
1046
|
-
const
|
|
1047
|
-
!this.htmlMode || this.options.recognizeCDATA ? ((
|
|
1217
|
+
const w = this.getSlice(u, t - a);
|
|
1218
|
+
!this.htmlMode || this.options.recognizeCDATA ? ((s = (i = this.cbs).oncdatastart) === null || s === void 0 || s.call(i), (n = (r = this.cbs).ontext) === null || n === void 0 || n.call(r, w), (c = (d = this.cbs).oncdataend) === null || c === void 0 || c.call(d)) : ((l = (f = this.cbs).oncomment) === null || l === void 0 || l.call(f, `[CDATA[${w}]]`), (m = (h = this.cbs).oncommentend) === null || m === void 0 || m.call(h)), this.startIndex = t + 1;
|
|
1048
1219
|
}
|
|
1049
1220
|
/** @internal */
|
|
1050
1221
|
onend() {
|
|
@@ -1145,126 +1316,129 @@ class Te {
|
|
|
1145
1316
|
function Au(e, u = "web") {
|
|
1146
1317
|
const t = { name: "", children: [] }, a = [t];
|
|
1147
1318
|
let i = "";
|
|
1148
|
-
const
|
|
1319
|
+
const s = new qe(
|
|
1149
1320
|
{
|
|
1150
|
-
onopentag: (
|
|
1151
|
-
const
|
|
1152
|
-
i.trim() && (Array.isArray(
|
|
1321
|
+
onopentag: (r, n, d) => {
|
|
1322
|
+
const c = a[a.length - 1];
|
|
1323
|
+
i.trim() && (Array.isArray(c.children) ? c.children.push({
|
|
1153
1324
|
name: "span",
|
|
1154
1325
|
children: i.trim()
|
|
1155
|
-
}) :
|
|
1156
|
-
const
|
|
1157
|
-
(
|
|
1158
|
-
let [
|
|
1159
|
-
return
|
|
1326
|
+
}) : c.children = i.trim(), i = "");
|
|
1327
|
+
const f = Object.entries(n || {}).reduce(
|
|
1328
|
+
(h, m) => {
|
|
1329
|
+
let [w = "", A = ""] = m;
|
|
1330
|
+
return w && (h[w] = A), h;
|
|
1160
1331
|
},
|
|
1161
1332
|
{}
|
|
1162
1333
|
);
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1165
|
-
name:
|
|
1166
|
-
props:
|
|
1334
|
+
f.style && (f.style = Vu(f.style));
|
|
1335
|
+
const l = {
|
|
1336
|
+
name: qu(r, u),
|
|
1337
|
+
props: f
|
|
1167
1338
|
};
|
|
1168
|
-
Array.isArray(
|
|
1339
|
+
Array.isArray(c.children) ? c.children.push(l) : c.children ? c.children = [
|
|
1169
1340
|
{
|
|
1170
1341
|
name: "span",
|
|
1171
|
-
children:
|
|
1342
|
+
children: c.children
|
|
1172
1343
|
},
|
|
1173
|
-
|
|
1174
|
-
] :
|
|
1344
|
+
l
|
|
1345
|
+
] : c.children = [l], d || a.push(l);
|
|
1175
1346
|
},
|
|
1176
|
-
ontext: (
|
|
1177
|
-
const n =
|
|
1347
|
+
ontext: (r) => {
|
|
1348
|
+
const n = r.trim();
|
|
1178
1349
|
n && n !== '"' && (i += n);
|
|
1179
1350
|
},
|
|
1180
1351
|
onclosetag: () => {
|
|
1181
|
-
const
|
|
1182
|
-
i.trim() && (Array.isArray(
|
|
1352
|
+
const r = a.pop();
|
|
1353
|
+
i.trim() && (Array.isArray(r?.children) ? r.children.push({
|
|
1183
1354
|
name: "span",
|
|
1184
1355
|
children: i.trim()
|
|
1185
|
-
}) :
|
|
1356
|
+
}) : r && (r.children = i.trim()), i = "");
|
|
1186
1357
|
}
|
|
1187
1358
|
},
|
|
1188
1359
|
{ decodeEntities: !0 }
|
|
1189
1360
|
);
|
|
1190
|
-
return
|
|
1361
|
+
return s.write(e.replace(/\\"/g, '"')), s.end(), t.children || [];
|
|
1191
1362
|
}
|
|
1192
|
-
function
|
|
1363
|
+
function Ve(e, u) {
|
|
1193
1364
|
const a = {
|
|
1194
|
-
imports:
|
|
1365
|
+
imports: Re(e),
|
|
1195
1366
|
emits: [],
|
|
1196
1367
|
errors: []
|
|
1197
|
-
}, i =
|
|
1198
|
-
return
|
|
1199
|
-
ExportDefaultDeclaration(
|
|
1200
|
-
const
|
|
1201
|
-
if (
|
|
1202
|
-
const n =
|
|
1368
|
+
}, i = X(e);
|
|
1369
|
+
return Y(i, {
|
|
1370
|
+
ExportDefaultDeclaration(s) {
|
|
1371
|
+
const r = s.node.declaration;
|
|
1372
|
+
if (r.type !== "CallExpression") return;
|
|
1373
|
+
const n = r.arguments[0];
|
|
1203
1374
|
if (n?.type !== "ObjectExpression") return;
|
|
1204
1375
|
const d = n.properties.filter(
|
|
1205
|
-
(
|
|
1206
|
-
),
|
|
1207
|
-
(
|
|
1208
|
-
),
|
|
1209
|
-
(
|
|
1376
|
+
(l) => l.type === "ObjectProperty"
|
|
1377
|
+
), c = n.properties.filter(
|
|
1378
|
+
(l) => l.type == "ObjectMethod"
|
|
1379
|
+
), f = d.find(
|
|
1380
|
+
(l) => l.key.name === "computed"
|
|
1210
1381
|
);
|
|
1211
|
-
|
|
1212
|
-
for (const
|
|
1213
|
-
switch (
|
|
1382
|
+
f && (a.computed = Ru(f.value), a.watchers = Be(f.value));
|
|
1383
|
+
for (const l of d)
|
|
1384
|
+
switch (l.key.name) {
|
|
1214
1385
|
case "name":
|
|
1215
|
-
a.name =
|
|
1386
|
+
a.name = l.value.value;
|
|
1216
1387
|
break;
|
|
1217
1388
|
case "methods":
|
|
1218
|
-
a.handlers =
|
|
1219
|
-
|
|
1389
|
+
a.handlers = _e(l.value), a.methods = Ce(l.value), a.dataSources = Le(
|
|
1390
|
+
l.value,
|
|
1220
1391
|
u
|
|
1221
1392
|
);
|
|
1222
1393
|
break;
|
|
1223
1394
|
case "watch":
|
|
1224
|
-
a.watch =
|
|
1225
|
-
|
|
1395
|
+
a.watch = Fe(
|
|
1396
|
+
l.value,
|
|
1226
1397
|
a.watchers
|
|
1227
1398
|
);
|
|
1228
1399
|
break;
|
|
1229
1400
|
case "props":
|
|
1230
|
-
a.props =
|
|
1401
|
+
a.props = $e(l.value);
|
|
1231
1402
|
break;
|
|
1232
1403
|
case "inject":
|
|
1233
|
-
a.inject =
|
|
1404
|
+
a.inject = Ue(l.value);
|
|
1234
1405
|
break;
|
|
1235
1406
|
case "expose":
|
|
1236
|
-
a.expose =
|
|
1407
|
+
a.expose = He(l.value);
|
|
1408
|
+
break;
|
|
1409
|
+
case "directives":
|
|
1410
|
+
a.directives = We(l.value);
|
|
1237
1411
|
break;
|
|
1238
1412
|
}
|
|
1239
|
-
for (const
|
|
1240
|
-
switch (
|
|
1413
|
+
for (const l of c)
|
|
1414
|
+
switch (l.key.name) {
|
|
1241
1415
|
case "setup":
|
|
1242
|
-
a.state =
|
|
1416
|
+
a.state = De(l.body);
|
|
1243
1417
|
break;
|
|
1244
1418
|
}
|
|
1245
|
-
a.lifeCycles =
|
|
1419
|
+
a.lifeCycles = Oe(c);
|
|
1246
1420
|
},
|
|
1247
|
-
CallExpression(
|
|
1248
|
-
const
|
|
1249
|
-
if (
|
|
1250
|
-
for (let n of
|
|
1251
|
-
a.emits?.find((
|
|
1421
|
+
CallExpression(s) {
|
|
1422
|
+
const r = Pe(s.node);
|
|
1423
|
+
if (r.length)
|
|
1424
|
+
for (let n of r)
|
|
1425
|
+
a.emits?.find((c) => c.name === n.name) || a.emits?.push(n);
|
|
1252
1426
|
}
|
|
1253
1427
|
}), a;
|
|
1254
1428
|
}
|
|
1255
|
-
function
|
|
1429
|
+
function Re(e) {
|
|
1256
1430
|
const u = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = /import\s+(.+?)\s+from\s+['"](.+?)['"]/g, a = /^{(.+?)}$/, i = [];
|
|
1257
|
-
let
|
|
1258
|
-
const
|
|
1259
|
-
for (; (
|
|
1260
|
-
const n =
|
|
1431
|
+
let s;
|
|
1432
|
+
const r = e.replace(/\n/g, " ");
|
|
1433
|
+
for (; (s = u.exec(r)) !== null; ) {
|
|
1434
|
+
const n = s[2] === "@element-plus/icons-vue" ? "@vtj/icons" : s[2];
|
|
1261
1435
|
i.push({
|
|
1262
1436
|
from: n,
|
|
1263
|
-
imports:
|
|
1437
|
+
imports: s[1].split(",").map((d) => d.trim())
|
|
1264
1438
|
});
|
|
1265
1439
|
}
|
|
1266
|
-
for (; (
|
|
1267
|
-
const n =
|
|
1440
|
+
for (; (s = t.exec(r)) !== null; ) {
|
|
1441
|
+
const n = s[1], d = s[2];
|
|
1268
1442
|
n && !a.test(n) && i.push({
|
|
1269
1443
|
from: d,
|
|
1270
1444
|
imports: n
|
|
@@ -1272,7 +1446,7 @@ function ke(e) {
|
|
|
1272
1446
|
}
|
|
1273
1447
|
return i;
|
|
1274
1448
|
}
|
|
1275
|
-
function
|
|
1449
|
+
function je(e) {
|
|
1276
1450
|
for (const u of e.body)
|
|
1277
1451
|
if (u.type === "VariableDeclaration" && u.kind == "const") {
|
|
1278
1452
|
const { id: t, init: a } = u.declarations[0];
|
|
@@ -1281,114 +1455,114 @@ function Ve(e) {
|
|
|
1281
1455
|
}
|
|
1282
1456
|
return null;
|
|
1283
1457
|
}
|
|
1284
|
-
function
|
|
1285
|
-
const u =
|
|
1458
|
+
function De(e) {
|
|
1459
|
+
const u = je(e);
|
|
1286
1460
|
if (!u) return {};
|
|
1287
1461
|
const t = {};
|
|
1288
1462
|
for (const a of u.properties) {
|
|
1289
|
-
const { key: i, value:
|
|
1463
|
+
const { key: i, value: s } = a;
|
|
1290
1464
|
if (i.type === "Identifier") {
|
|
1291
|
-
const
|
|
1292
|
-
t[i.name] =
|
|
1465
|
+
const r = M(s);
|
|
1466
|
+
t[i.name] = V(r);
|
|
1293
1467
|
}
|
|
1294
1468
|
}
|
|
1295
1469
|
return t;
|
|
1296
1470
|
}
|
|
1297
|
-
function
|
|
1298
|
-
const { key: u, async: t, params: a, body: i } = e,
|
|
1471
|
+
function P(e) {
|
|
1472
|
+
const { key: u, async: t, params: a, body: i } = e, s = a?.map((r) => r.type === "ObjectPattern" ? `{${r.properties.map((d) => d.key?.name || d.name).join(",")}}` : r.type === "AssignmentPattern" ? r.left.name + "=" + (r.right?.extra?.raw || "null") : r.name).join(", ");
|
|
1299
1473
|
if (u.type === "Identifier") {
|
|
1300
|
-
const
|
|
1474
|
+
const r = u.name;
|
|
1301
1475
|
let n = "{}";
|
|
1302
1476
|
i && (n = M(i) || "{}");
|
|
1303
1477
|
const d = e.value;
|
|
1304
1478
|
if (d && d.type === "CallExpression") {
|
|
1305
|
-
let
|
|
1306
|
-
|
|
1479
|
+
let m = M(d) || "";
|
|
1480
|
+
m = m.replace("function () {", "() => {"), n = `{ return (${m})}`;
|
|
1307
1481
|
}
|
|
1308
|
-
const
|
|
1482
|
+
const f = `${t ? "async " : ""}(${s}) => ${n}`, l = r.startsWith("watcher_");
|
|
1309
1483
|
return {
|
|
1310
|
-
id:
|
|
1311
|
-
name:
|
|
1312
|
-
watcher:
|
|
1313
|
-
exp: du(
|
|
1484
|
+
id: l ? r.replace("watcher_", "") : "",
|
|
1485
|
+
name: r,
|
|
1486
|
+
watcher: l,
|
|
1487
|
+
exp: du(f)
|
|
1314
1488
|
};
|
|
1315
1489
|
}
|
|
1316
1490
|
}
|
|
1317
|
-
function
|
|
1491
|
+
function Ru(e) {
|
|
1318
1492
|
if (!e) return {};
|
|
1319
1493
|
const u = {};
|
|
1320
1494
|
for (const t of e.properties) {
|
|
1321
|
-
const a =
|
|
1495
|
+
const a = P(t);
|
|
1322
1496
|
a && !a.watcher && !a.exp.value.includes("this.provider.createMock") && !a.exp.value.includes("this.provider.apis") && (u[a.name] = a.exp);
|
|
1323
1497
|
}
|
|
1324
1498
|
return u;
|
|
1325
1499
|
}
|
|
1326
|
-
function
|
|
1500
|
+
function Le(e, u) {
|
|
1327
1501
|
if (!e) return {};
|
|
1328
1502
|
const t = {}, a = /apis\[\'([\w]*)\'\]/, i = /\.then\(([\w\W]*)\)/;
|
|
1329
|
-
for (const
|
|
1330
|
-
const
|
|
1331
|
-
if (
|
|
1332
|
-
const
|
|
1333
|
-
if (!
|
|
1334
|
-
const
|
|
1335
|
-
if (!
|
|
1336
|
-
const
|
|
1337
|
-
t[
|
|
1338
|
-
ref:
|
|
1339
|
-
name:
|
|
1340
|
-
test:
|
|
1503
|
+
for (const s of e.properties) {
|
|
1504
|
+
const r = P(s), n = s.body.body?.[0], d = (n?.leadingComments?.[0].value || "").trim(), c = be(d);
|
|
1505
|
+
if (r && r.exp.value.includes("this.provider.apis")) {
|
|
1506
|
+
const l = (r.exp.value.match(a) || [])[1];
|
|
1507
|
+
if (!l) continue;
|
|
1508
|
+
const h = Ge(u, l);
|
|
1509
|
+
if (!h) continue;
|
|
1510
|
+
const m = r.exp.value.match(i)?.[1];
|
|
1511
|
+
t[r.name] = {
|
|
1512
|
+
ref: l,
|
|
1513
|
+
name: r.name,
|
|
1514
|
+
test: c?.test || {
|
|
1341
1515
|
type: "JSFunction",
|
|
1342
1516
|
value: `() => this.runApi({
|
|
1343
1517
|
/* 在这里可输入接口参数 */
|
|
1344
1518
|
})`
|
|
1345
1519
|
},
|
|
1346
1520
|
type: "api",
|
|
1347
|
-
label:
|
|
1521
|
+
label: h.label,
|
|
1348
1522
|
transform: {
|
|
1349
1523
|
type: "JSFunction",
|
|
1350
|
-
value:
|
|
1524
|
+
value: m || `(res) => {
|
|
1351
1525
|
return res;
|
|
1352
1526
|
}`
|
|
1353
1527
|
},
|
|
1354
|
-
mockTemplate:
|
|
1528
|
+
mockTemplate: h.mockTemplate
|
|
1355
1529
|
};
|
|
1356
1530
|
}
|
|
1357
|
-
if (
|
|
1358
|
-
const
|
|
1359
|
-
t[
|
|
1531
|
+
if (r && r.exp.value.includes("this.provider.createMock")) {
|
|
1532
|
+
const f = n?.declarations?.[0]?.init?.arguments?.[0], l = r.exp.value.match(i)?.[1];
|
|
1533
|
+
t[r.name] = {
|
|
1360
1534
|
ref: "",
|
|
1361
|
-
name:
|
|
1362
|
-
test:
|
|
1535
|
+
name: r.name,
|
|
1536
|
+
test: c?.test || {
|
|
1363
1537
|
type: "JSFunction",
|
|
1364
1538
|
value: `() => this.runApi({
|
|
1365
1539
|
/* 在这里可输入接口参数 */
|
|
1366
1540
|
})`
|
|
1367
1541
|
},
|
|
1368
1542
|
type: "mock",
|
|
1369
|
-
label:
|
|
1370
|
-
transform:
|
|
1543
|
+
label: c?.label || "",
|
|
1544
|
+
transform: c?.transform || {
|
|
1371
1545
|
type: "JSFunction",
|
|
1372
|
-
value:
|
|
1546
|
+
value: l || `(res) => {
|
|
1373
1547
|
return res;
|
|
1374
1548
|
}`
|
|
1375
1549
|
},
|
|
1376
|
-
mockTemplate:
|
|
1550
|
+
mockTemplate: c?.mockTemplate || {
|
|
1377
1551
|
type: "JSFunction",
|
|
1378
|
-
value:
|
|
1552
|
+
value: f ? M(f) : ""
|
|
1379
1553
|
}
|
|
1380
1554
|
};
|
|
1381
1555
|
}
|
|
1382
1556
|
}
|
|
1383
1557
|
return t;
|
|
1384
1558
|
}
|
|
1385
|
-
function
|
|
1386
|
-
const u =
|
|
1559
|
+
function Ce(e) {
|
|
1560
|
+
const u = Ru(e), t = /\_([\w]{5,})$/, a = {};
|
|
1387
1561
|
for (const i of Object.keys(u))
|
|
1388
1562
|
t.test(i) || (a[i] = u[i]);
|
|
1389
1563
|
return a;
|
|
1390
1564
|
}
|
|
1391
|
-
function
|
|
1565
|
+
function _e(e) {
|
|
1392
1566
|
if (!e) return {};
|
|
1393
1567
|
const u = {}, t = /\_([\w]{5,})$/;
|
|
1394
1568
|
for (const a of e.properties) {
|
|
@@ -1396,31 +1570,31 @@ function De(e) {
|
|
|
1396
1570
|
if (t.test(i))
|
|
1397
1571
|
try {
|
|
1398
1572
|
if (a.body.body[0]?.argument) {
|
|
1399
|
-
const
|
|
1573
|
+
const s = M(
|
|
1400
1574
|
a.body.body[0].argument.callee.object
|
|
1401
1575
|
);
|
|
1402
|
-
u[i] = du(
|
|
1576
|
+
u[i] = du(s);
|
|
1403
1577
|
} else
|
|
1404
|
-
u[i] =
|
|
1405
|
-
} catch (
|
|
1406
|
-
console.warn(
|
|
1578
|
+
u[i] = P(a)?.exp;
|
|
1579
|
+
} catch (s) {
|
|
1580
|
+
console.warn(s);
|
|
1407
1581
|
}
|
|
1408
1582
|
}
|
|
1409
1583
|
return u;
|
|
1410
1584
|
}
|
|
1411
|
-
function
|
|
1585
|
+
function Be(e) {
|
|
1412
1586
|
if (!e) return {};
|
|
1413
1587
|
const u = {};
|
|
1414
1588
|
for (const t of e.properties) {
|
|
1415
|
-
const a =
|
|
1589
|
+
const a = P(t);
|
|
1416
1590
|
a && a.watcher && (u[a.name] = a.exp);
|
|
1417
1591
|
}
|
|
1418
1592
|
return u;
|
|
1419
1593
|
}
|
|
1420
1594
|
function J(e, u) {
|
|
1421
|
-
return !!
|
|
1595
|
+
return !!ju(e, u);
|
|
1422
1596
|
}
|
|
1423
|
-
function
|
|
1597
|
+
function ju(e, u) {
|
|
1424
1598
|
return e.find(
|
|
1425
1599
|
(a) => a.key?.name === u
|
|
1426
1600
|
)?.value?.value;
|
|
@@ -1430,17 +1604,17 @@ function Tu(e, u) {
|
|
|
1430
1604
|
(a) => a.key?.name === u
|
|
1431
1605
|
);
|
|
1432
1606
|
if (t)
|
|
1433
|
-
return
|
|
1607
|
+
return P(t)?.exp;
|
|
1434
1608
|
}
|
|
1435
|
-
function
|
|
1609
|
+
function Fe(e, u = {}) {
|
|
1436
1610
|
const t = [];
|
|
1437
1611
|
for (const a of e.properties) {
|
|
1438
|
-
const { key: i, value:
|
|
1439
|
-
if (u[
|
|
1440
|
-
const n =
|
|
1612
|
+
const { key: i, value: s } = a, r = i.value || i.name || "";
|
|
1613
|
+
if (u[r]) {
|
|
1614
|
+
const n = s.properties;
|
|
1441
1615
|
t.push({
|
|
1442
|
-
id:
|
|
1443
|
-
source: u[
|
|
1616
|
+
id: r.replace("watcher_", ""),
|
|
1617
|
+
source: u[r],
|
|
1444
1618
|
deep: J(n, "deep"),
|
|
1445
1619
|
immediate: J(n, "immediate"),
|
|
1446
1620
|
handler: Tu(n, "handler")
|
|
@@ -1449,18 +1623,18 @@ function _e(e, u = {}) {
|
|
|
1449
1623
|
id: iu(),
|
|
1450
1624
|
source: {
|
|
1451
1625
|
type: "JSFunction",
|
|
1452
|
-
value: `() => { return this.${
|
|
1626
|
+
value: `() => { return this.${r}; }`
|
|
1453
1627
|
},
|
|
1454
1628
|
deep: !1,
|
|
1455
1629
|
immediate: !1,
|
|
1456
|
-
handler:
|
|
1630
|
+
handler: P(a)?.exp
|
|
1457
1631
|
}), a.type === "ObjectProperty") {
|
|
1458
|
-
const n =
|
|
1632
|
+
const n = s.properties;
|
|
1459
1633
|
t.push({
|
|
1460
1634
|
id: iu(),
|
|
1461
1635
|
source: {
|
|
1462
1636
|
type: "JSFunction",
|
|
1463
|
-
value: `() => { return this.${
|
|
1637
|
+
value: `() => { return this.${r}; }`
|
|
1464
1638
|
},
|
|
1465
1639
|
deep: J(n, "deep"),
|
|
1466
1640
|
immediate: J(n, "immediate"),
|
|
@@ -1470,18 +1644,18 @@ function _e(e, u = {}) {
|
|
|
1470
1644
|
}
|
|
1471
1645
|
return t;
|
|
1472
1646
|
}
|
|
1473
|
-
function
|
|
1647
|
+
function Oe(e) {
|
|
1474
1648
|
const u = {};
|
|
1475
1649
|
for (const t of e) {
|
|
1476
1650
|
const a = t.key.name;
|
|
1477
|
-
if (
|
|
1478
|
-
const i =
|
|
1651
|
+
if (ce.includes(a)) {
|
|
1652
|
+
const i = P(t);
|
|
1479
1653
|
i && (u[i.name] = i.exp);
|
|
1480
1654
|
}
|
|
1481
1655
|
}
|
|
1482
1656
|
return u;
|
|
1483
1657
|
}
|
|
1484
|
-
function
|
|
1658
|
+
function Me(e) {
|
|
1485
1659
|
const u = e.find(
|
|
1486
1660
|
(t) => t.key?.name === "type"
|
|
1487
1661
|
);
|
|
@@ -1493,199 +1667,224 @@ function Du(e) {
|
|
|
1493
1667
|
(t) => t.key?.name === "default"
|
|
1494
1668
|
);
|
|
1495
1669
|
if (u)
|
|
1496
|
-
return
|
|
1670
|
+
return V(M(u.value));
|
|
1497
1671
|
}
|
|
1498
|
-
function
|
|
1672
|
+
function $e(e) {
|
|
1499
1673
|
if (!e) return [];
|
|
1500
1674
|
let u = [];
|
|
1501
1675
|
return e.type === "ArrayExpression" ? u = e.elements.map((t) => t.value) : e.type === "ObjectExpression" && (u = e.properties.map((t) => {
|
|
1502
|
-
const { key: a, value: i } = t,
|
|
1676
|
+
const { key: a, value: i } = t, s = i.properties || [];
|
|
1503
1677
|
return {
|
|
1504
1678
|
name: a.name,
|
|
1505
|
-
required: J(
|
|
1506
|
-
type:
|
|
1507
|
-
default: Du(
|
|
1679
|
+
required: J(s, "required"),
|
|
1680
|
+
type: Me(s),
|
|
1681
|
+
default: Du(s)
|
|
1508
1682
|
};
|
|
1509
1683
|
})), u;
|
|
1510
1684
|
}
|
|
1511
|
-
function
|
|
1685
|
+
function Pe(e) {
|
|
1512
1686
|
const u = [];
|
|
1513
1687
|
if (e.callee.type === "MemberExpression" && e.callee.property?.name === "$emit") {
|
|
1514
1688
|
const [a, ...i] = (e.arguments || []).map(
|
|
1515
|
-
(
|
|
1689
|
+
(s) => s.value || s.name
|
|
1516
1690
|
);
|
|
1517
1691
|
a && u.push({
|
|
1518
1692
|
name: a,
|
|
1519
|
-
params: i.filter((
|
|
1693
|
+
params: i.filter((s) => !!s)
|
|
1520
1694
|
});
|
|
1521
1695
|
}
|
|
1522
1696
|
return u;
|
|
1523
1697
|
}
|
|
1524
|
-
function
|
|
1698
|
+
function Ue(e) {
|
|
1525
1699
|
let u = [];
|
|
1526
1700
|
return e.type === "ObjectExpression" && (u = e.properties.map((t) => {
|
|
1527
|
-
const { key: a, value: i } = t,
|
|
1701
|
+
const { key: a, value: i } = t, s = i.properties, r = a.name, n = ju(s, "from"), d = Du(s);
|
|
1528
1702
|
return {
|
|
1529
|
-
name:
|
|
1530
|
-
from: n ||
|
|
1703
|
+
name: r,
|
|
1704
|
+
from: n || r,
|
|
1531
1705
|
default: d
|
|
1532
1706
|
};
|
|
1533
1707
|
})), u;
|
|
1534
1708
|
}
|
|
1535
|
-
function
|
|
1709
|
+
function He(e) {
|
|
1536
1710
|
return e && e.elements ? e.elements.map((u) => u?.type === "StringLiteral" ? u.value : "").filter((u) => !!u) : [];
|
|
1537
1711
|
}
|
|
1538
|
-
function
|
|
1712
|
+
function Ge(e, u) {
|
|
1539
1713
|
return (e.apis || []).find((t) => t.id === u);
|
|
1540
1714
|
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1715
|
+
function We(e) {
|
|
1716
|
+
if (!e?.properties) return {};
|
|
1717
|
+
const u = {};
|
|
1718
|
+
for (const t of e.properties) {
|
|
1719
|
+
const { key: a, value: i } = t;
|
|
1720
|
+
a?.name && i?.name && (u[a.name] = u[a.name.toLowerCase()] = {
|
|
1721
|
+
type: "JSExpression",
|
|
1722
|
+
value: i.name
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
return u;
|
|
1726
|
+
}
|
|
1727
|
+
let ru = [], Q = {}, Lu = {}, Cu = {}, _u = {}, K = "web", Bu = [];
|
|
1728
|
+
function ze(e, u, t = "", a) {
|
|
1729
|
+
return ru = [], Q = {}, Lu = a?.handlers || {}, _u = a?.styles || {}, K = a?.platform || "web", Bu = a?.imports || [], Cu = a?.directives || {}, {
|
|
1730
|
+
nodes: (Qu({
|
|
1545
1731
|
id: e,
|
|
1546
1732
|
filename: u,
|
|
1547
1733
|
source: t,
|
|
1548
1734
|
isProd: !0,
|
|
1549
1735
|
slotted: !0
|
|
1550
|
-
}).ast?.children || []).map((n) =>
|
|
1551
|
-
slots:
|
|
1736
|
+
}).ast?.children || []).map((n) => G(n)).filter((n) => !!n),
|
|
1737
|
+
slots: ru,
|
|
1552
1738
|
context: Q
|
|
1553
1739
|
};
|
|
1554
1740
|
}
|
|
1555
|
-
function
|
|
1741
|
+
function Je(e) {
|
|
1556
1742
|
if (e.name === "slot") {
|
|
1557
1743
|
let u = "default";
|
|
1558
1744
|
const t = [];
|
|
1559
1745
|
for (const [a, i] of Object.entries(e.props || {}))
|
|
1560
1746
|
a === "name" ? u = i : t.push(a);
|
|
1561
|
-
|
|
1747
|
+
ru.push({
|
|
1562
1748
|
name: u,
|
|
1563
1749
|
params: t
|
|
1564
1750
|
});
|
|
1565
1751
|
}
|
|
1566
1752
|
}
|
|
1567
|
-
function
|
|
1753
|
+
function Xe(e) {
|
|
1568
1754
|
const u = {};
|
|
1569
1755
|
for (const t of e) {
|
|
1570
|
-
if (t.type ===
|
|
1756
|
+
if (t.type === g.ATTRIBUTE)
|
|
1571
1757
|
if (t.name === "class") {
|
|
1572
|
-
const a = t.value?.content || "", i = /[\w]+_[\w]{5,}/,
|
|
1573
|
-
n && (u.style = n),
|
|
1758
|
+
const a = t.value?.content || "", i = /[\w]+_[\w]{5,}/, s = a.match(i)?.[0] || "", r = a.split(" ").filter((d) => d !== s), n = _u[`.${s}`];
|
|
1759
|
+
n && (u.style = n), r.length && (u.class = r.join(" "));
|
|
1574
1760
|
} else if (t.name === "style") {
|
|
1575
1761
|
const a = t.value?.content || "";
|
|
1576
|
-
a && (u.style =
|
|
1762
|
+
a && (u.style = Vu(a));
|
|
1577
1763
|
} else
|
|
1578
1764
|
u[t.name] = t.value?.content || "";
|
|
1579
|
-
if (t.type ===
|
|
1765
|
+
if (t.type === g.DIRECTIVE && t.name === "bind" && (t.exp?.type === g.SIMPLE_EXPRESSION && t.arg?.type === g.SIMPLE_EXPRESSION && (u[t.arg.content] = V(`(${t.exp.content})`)), t.exp?.type === g.COMPOUND_EXPRESSION && t.arg?.type === g.SIMPLE_EXPRESSION))
|
|
1580
1766
|
if (t.arg.content === "class" && u.class) {
|
|
1581
|
-
const a = t.exp.ast.type, i =
|
|
1767
|
+
const a = t.exp.ast.type, i = le(
|
|
1582
1768
|
u.class,
|
|
1583
1769
|
t.exp.loc.source,
|
|
1584
1770
|
a
|
|
1585
1771
|
);
|
|
1586
|
-
i && (u[t.arg.content] =
|
|
1772
|
+
i && (u[t.arg.content] = V(i));
|
|
1587
1773
|
} else
|
|
1588
|
-
u[t.arg.content] =
|
|
1774
|
+
u[t.arg.content] = V(
|
|
1589
1775
|
`(${t.exp.loc.source})`
|
|
1590
1776
|
);
|
|
1591
1777
|
}
|
|
1592
1778
|
return u;
|
|
1593
1779
|
}
|
|
1594
|
-
function
|
|
1780
|
+
function Ze(e, u = {}) {
|
|
1595
1781
|
const t = {};
|
|
1596
1782
|
for (const a of e)
|
|
1597
|
-
if (a.type ===
|
|
1783
|
+
if (a.type === g.DIRECTIVE && a.name === "on" && a.arg?.type === g.SIMPLE_EXPRESSION) {
|
|
1598
1784
|
const i = a.modifiers.reduce(
|
|
1599
|
-
(
|
|
1785
|
+
(f, l) => (f[l.content] = !0, f),
|
|
1600
1786
|
{}
|
|
1601
1787
|
);
|
|
1602
|
-
let
|
|
1603
|
-
/\)$/.test(
|
|
1604
|
-
const n = new RegExp(`${a.arg.content}_[\\w]{5,}`), d =
|
|
1605
|
-
if (d &&
|
|
1788
|
+
let s = a.exp?.loc.source || "";
|
|
1789
|
+
/\)$/.test(s) && (s = `($event) => { ${s} } `);
|
|
1790
|
+
const n = new RegExp(`${a.arg.content}_[\\w]{5,}`), d = s.match(n)?.[0] || "", c = u[d];
|
|
1791
|
+
if (d && c)
|
|
1606
1792
|
t[a.arg.content] = {
|
|
1607
1793
|
name: a.arg.content,
|
|
1608
|
-
handler:
|
|
1794
|
+
handler: c,
|
|
1609
1795
|
modifiers: i
|
|
1610
1796
|
};
|
|
1611
1797
|
else {
|
|
1612
|
-
const
|
|
1798
|
+
const f = a.exp?.ast?.type === "AssignmentExpression";
|
|
1613
1799
|
t[a.arg.content] = {
|
|
1614
1800
|
name: a.arg.content,
|
|
1615
|
-
handler: du(
|
|
1801
|
+
handler: du(f ? `()=> {${s}}` : `(${s})`),
|
|
1616
1802
|
modifiers: i
|
|
1617
1803
|
};
|
|
1618
1804
|
}
|
|
1619
1805
|
}
|
|
1620
1806
|
return t;
|
|
1621
1807
|
}
|
|
1622
|
-
function
|
|
1623
|
-
const t = [];
|
|
1624
|
-
if (u && (e.type ===
|
|
1625
|
-
if (e ===
|
|
1626
|
-
const
|
|
1808
|
+
function uu(e, u) {
|
|
1809
|
+
const t = [], a = ["if", "for", "model", "show", "bind", "html"];
|
|
1810
|
+
if (u && (e.type === g.IF_BRANCH || e.type === g.IF) && u.forEach((i, s) => {
|
|
1811
|
+
if (e === i) {
|
|
1812
|
+
const r = s === 0 ? "vIf" : i.condition ? "vElseIf" : "vElse", n = i.condition?.loc.source || "";
|
|
1627
1813
|
t.push({
|
|
1628
|
-
name:
|
|
1629
|
-
value:
|
|
1814
|
+
name: r,
|
|
1815
|
+
value: r === "vElse" ? !0 : V(n)
|
|
1630
1816
|
});
|
|
1631
|
-
const
|
|
1632
|
-
if (
|
|
1633
|
-
const
|
|
1634
|
-
t.push(...
|
|
1817
|
+
const d = e.children?.[0];
|
|
1818
|
+
if (d) {
|
|
1819
|
+
const c = uu(d);
|
|
1820
|
+
t.push(...c);
|
|
1635
1821
|
}
|
|
1636
1822
|
}
|
|
1637
|
-
}), e.type ===
|
|
1823
|
+
}), e.type === g.FOR && t.push({
|
|
1638
1824
|
name: "vFor",
|
|
1639
|
-
value:
|
|
1825
|
+
value: V(e.source.loc.source),
|
|
1640
1826
|
iterator: {
|
|
1641
1827
|
item: e.valueAlias?.loc.source || "item",
|
|
1642
1828
|
index: e.keyAlias?.loc.source || "index"
|
|
1643
1829
|
}
|
|
1644
|
-
}), e.type ===
|
|
1645
|
-
const
|
|
1646
|
-
(
|
|
1647
|
-
),
|
|
1648
|
-
|
|
1830
|
+
}), e.type === g.ELEMENT) {
|
|
1831
|
+
const i = e.props.filter(
|
|
1832
|
+
(f) => f.type === g.DIRECTIVE
|
|
1833
|
+
), s = i.filter((f) => f.name === "model");
|
|
1834
|
+
s.length && s.forEach((f) => {
|
|
1649
1835
|
t.push({
|
|
1650
1836
|
name: "vModel",
|
|
1651
|
-
arg:
|
|
1652
|
-
value:
|
|
1837
|
+
arg: f.arg?.content,
|
|
1838
|
+
value: V(f.exp?.loc.source || "")
|
|
1653
1839
|
});
|
|
1654
1840
|
});
|
|
1655
|
-
const
|
|
1656
|
-
|
|
1841
|
+
const r = i.find((f) => f.name === "show");
|
|
1842
|
+
r && t.push({
|
|
1657
1843
|
name: "vShow",
|
|
1658
|
-
value:
|
|
1844
|
+
value: V(r.exp?.loc.source || "")
|
|
1659
1845
|
});
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1846
|
+
const n = i.find((f) => f.name === "bind" && !f.arg);
|
|
1847
|
+
n && t.push({
|
|
1662
1848
|
name: "vBind",
|
|
1663
|
-
value:
|
|
1849
|
+
value: V(n.exp?.loc.source || "")
|
|
1664
1850
|
});
|
|
1665
|
-
const
|
|
1666
|
-
|
|
1851
|
+
const d = i.find((f) => f.name === "html");
|
|
1852
|
+
d && t.push({
|
|
1667
1853
|
name: "vHtml",
|
|
1668
|
-
value:
|
|
1854
|
+
value: V(d.exp?.loc.source || "")
|
|
1669
1855
|
});
|
|
1856
|
+
const c = i.filter((f) => !a.includes(f.name));
|
|
1857
|
+
for (const f of c) {
|
|
1858
|
+
const l = (f.modifiers || []).reduce(
|
|
1859
|
+
(w, A) => (w[A.content] = !0, w),
|
|
1860
|
+
{}
|
|
1861
|
+
), h = f.arg?.content || void 0, m = Cu[f.name];
|
|
1862
|
+
m && t.push({
|
|
1863
|
+
name: m,
|
|
1864
|
+
value: V(f.exp?.loc.source || ""),
|
|
1865
|
+
arg: h,
|
|
1866
|
+
modifiers: l
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1670
1869
|
}
|
|
1671
1870
|
return t;
|
|
1672
1871
|
}
|
|
1673
|
-
function
|
|
1872
|
+
function Fu(e) {
|
|
1674
1873
|
let u = "";
|
|
1675
|
-
if (e.type ===
|
|
1874
|
+
if (e.type === g.ELEMENT) {
|
|
1676
1875
|
const { props: t = [], tag: a } = e;
|
|
1677
1876
|
for (const i of t)
|
|
1678
1877
|
if (i.name === "class") {
|
|
1679
|
-
const
|
|
1680
|
-
u =
|
|
1681
|
-
} else if (i.type ===
|
|
1682
|
-
const
|
|
1683
|
-
u =
|
|
1878
|
+
const s = i.value?.content || "", r = new RegExp(`${a}_([\\w]+)`);
|
|
1879
|
+
u = s.match(r)?.[1] || "";
|
|
1880
|
+
} else if (i.type === g.DIRECTIVE && i.name === "on") {
|
|
1881
|
+
const s = i.arg?.loc?.source || "", r = i.exp?.loc?.source || "", n = new RegExp(`${s}_([\\w]+)`);
|
|
1882
|
+
u = r.match(n)?.[1] || "";
|
|
1684
1883
|
}
|
|
1685
1884
|
}
|
|
1686
1885
|
return u || iu();
|
|
1687
1886
|
}
|
|
1688
|
-
function
|
|
1887
|
+
function Qe(e) {
|
|
1689
1888
|
const u = /\.\/(.+?)\.vue/;
|
|
1690
1889
|
for (const { from: t, imports: a } of Bu) {
|
|
1691
1890
|
if (Array.isArray(a) && a.includes(e))
|
|
@@ -1700,73 +1899,73 @@ function Je(e) {
|
|
|
1700
1899
|
}
|
|
1701
1900
|
}
|
|
1702
1901
|
}
|
|
1703
|
-
function
|
|
1704
|
-
const t = new Set(u?.id ? Q[u.id] : []), a = (e.directives || []).find((
|
|
1902
|
+
function cu(e, u) {
|
|
1903
|
+
const t = new Set(u?.id ? Q[u.id] : []), a = (e.directives || []).find((r) => r.name === "vFor");
|
|
1705
1904
|
let i = new Set(Array.from(t));
|
|
1706
1905
|
if (a) {
|
|
1707
|
-
const { item:
|
|
1708
|
-
i = /* @__PURE__ */ new Set([
|
|
1906
|
+
const { item: r = "item", index: n = "index" } = a.iterator || {};
|
|
1907
|
+
i = /* @__PURE__ */ new Set([r, n, ...Array.from(i)]);
|
|
1709
1908
|
}
|
|
1710
|
-
const
|
|
1711
|
-
if (
|
|
1712
|
-
const
|
|
1909
|
+
const s = e.slot;
|
|
1910
|
+
if (s) {
|
|
1911
|
+
const r = typeof s == "string" ? [] : s.params || [], n = r.length ? r : [`scope_${u?.id}`];
|
|
1713
1912
|
i = /* @__PURE__ */ new Set([...n, ...Array.from(i)]);
|
|
1714
1913
|
}
|
|
1715
1914
|
Q[e.id] = i;
|
|
1716
1915
|
}
|
|
1717
1916
|
function au(e, u, t, a) {
|
|
1718
1917
|
const i = {
|
|
1719
|
-
name:
|
|
1720
|
-
from:
|
|
1721
|
-
props:
|
|
1722
|
-
events:
|
|
1723
|
-
directives:
|
|
1918
|
+
name: qu(e.tag, K),
|
|
1919
|
+
from: Qe(e.tag),
|
|
1920
|
+
props: Xe(e.props),
|
|
1921
|
+
events: Ze(e.props, Lu),
|
|
1922
|
+
directives: uu(t || e, a)
|
|
1724
1923
|
};
|
|
1725
|
-
i.id =
|
|
1726
|
-
const
|
|
1727
|
-
return
|
|
1924
|
+
i.id = Fu(e), cu(i, u);
|
|
1925
|
+
const s = fu(i, e.children);
|
|
1926
|
+
return cu(i, u), Je(s), s;
|
|
1728
1927
|
}
|
|
1729
|
-
function
|
|
1730
|
-
return e.map((t) =>
|
|
1928
|
+
function Ke(e, u) {
|
|
1929
|
+
return e.map((t) => G(t, u, e));
|
|
1731
1930
|
}
|
|
1732
|
-
function
|
|
1733
|
-
if (e.type ===
|
|
1931
|
+
function G(e, u, t) {
|
|
1932
|
+
if (e.type === g.ELEMENT)
|
|
1734
1933
|
return au(e, u);
|
|
1735
|
-
if (e.type ===
|
|
1736
|
-
return
|
|
1737
|
-
if (t && e.type ===
|
|
1738
|
-
const a = e.children.find((i) => i.type ===
|
|
1739
|
-
if (a && a.type ===
|
|
1934
|
+
if (e.type === g.IF)
|
|
1935
|
+
return Ye(e);
|
|
1936
|
+
if (t && e.type === g.IF_BRANCH) {
|
|
1937
|
+
const a = e.children.find((i) => i.type === g.ELEMENT);
|
|
1938
|
+
if (a && a.type === g.ELEMENT)
|
|
1740
1939
|
return au(a, u, e, t);
|
|
1741
1940
|
}
|
|
1742
|
-
if (e.type ===
|
|
1941
|
+
if (e.type === g.FOR) {
|
|
1743
1942
|
const a = e.children[0];
|
|
1744
|
-
if (e.children.length > 1 || a.type !==
|
|
1745
|
-
const
|
|
1746
|
-
return fu(
|
|
1943
|
+
if (e.children.length > 1 || a.type !== g.ELEMENT) {
|
|
1944
|
+
const s = { name: "span", directives: uu(e) };
|
|
1945
|
+
return fu(s, e.children);
|
|
1747
1946
|
} else
|
|
1748
1947
|
return au(a, u, e);
|
|
1749
1948
|
}
|
|
1750
|
-
if (e.type ===
|
|
1751
|
-
return e.content.type ==
|
|
1949
|
+
if (e.type === g.TEXT_CALL)
|
|
1950
|
+
return e.content.type == g.TEXT ? e.content.content : e.content.type === g.INTERPOLATION ? V(e.content.content.loc.source) : e.content.type === g.COMPOUND_EXPRESSION ? Nu(
|
|
1752
1951
|
e.content.children
|
|
1753
1952
|
) : "";
|
|
1754
|
-
if (e.type ===
|
|
1953
|
+
if (e.type === g.TEXT)
|
|
1755
1954
|
return e.content;
|
|
1756
|
-
if (e.type ===
|
|
1757
|
-
return
|
|
1758
|
-
if (e.type ===
|
|
1955
|
+
if (e.type === g.INTERPOLATION && (e.content.type === g.SIMPLE_EXPRESSION || e.content.type === g.COMPOUND_EXPRESSION))
|
|
1956
|
+
return V(e.content.loc.source);
|
|
1957
|
+
if (e.type === g.COMPOUND_EXPRESSION)
|
|
1759
1958
|
return Nu(
|
|
1760
1959
|
e.children
|
|
1761
1960
|
);
|
|
1762
|
-
e.type !==
|
|
1961
|
+
e.type !== g.COMMENT && console.warn("未处理", e.type);
|
|
1763
1962
|
}
|
|
1764
1963
|
function Nu(e = []) {
|
|
1765
1964
|
const u = e.filter((a) => typeof a != "string"), t = [];
|
|
1766
1965
|
for (const a of u)
|
|
1767
1966
|
t.push({
|
|
1768
1967
|
name: "span",
|
|
1769
|
-
children: a.type ===
|
|
1968
|
+
children: a.type === g.TEXT ? a.loc.source : V(a.content?.loc.source)
|
|
1770
1969
|
});
|
|
1771
1970
|
return {
|
|
1772
1971
|
name: "span",
|
|
@@ -1776,38 +1975,38 @@ function Nu(e = []) {
|
|
|
1776
1975
|
function fu(e, u = []) {
|
|
1777
1976
|
const t = [];
|
|
1778
1977
|
for (const a of u)
|
|
1779
|
-
if (a.type ===
|
|
1978
|
+
if (a.type === g.ELEMENT && a.codegenNode?.value?.arguments) {
|
|
1780
1979
|
const i = a.codegenNode.value.arguments[0];
|
|
1781
1980
|
if (i) {
|
|
1782
|
-
const
|
|
1783
|
-
t.push(...
|
|
1981
|
+
const s = Au(i, K);
|
|
1982
|
+
t.push(...s);
|
|
1784
1983
|
}
|
|
1785
|
-
} else if (a.type ===
|
|
1786
|
-
const i = a.props.find((
|
|
1787
|
-
for (const
|
|
1788
|
-
const
|
|
1984
|
+
} else if (a.type === g.ELEMENT && a.tag === "template") {
|
|
1985
|
+
const i = a.props.find((s) => s.name === "slot");
|
|
1986
|
+
for (const s of a.children) {
|
|
1987
|
+
const r = s.type === g.TEXT || s.type === g.TEXT_CALL ? {
|
|
1789
1988
|
name: "span",
|
|
1790
|
-
children:
|
|
1791
|
-
} :
|
|
1792
|
-
|
|
1793
|
-
|
|
1989
|
+
children: G(s, e)
|
|
1990
|
+
} : G(s, e);
|
|
1991
|
+
r && (Array.isArray(r) ? r : [r]).forEach((d) => {
|
|
1992
|
+
se(d) && i?.type === g.DIRECTIVE && (d.id = Fu(s), d.slot = {
|
|
1794
1993
|
name: i.arg?.content || "default",
|
|
1795
1994
|
params: i.exp?.identifiers || [],
|
|
1796
|
-
scope: i.exp?.type ===
|
|
1797
|
-
},
|
|
1995
|
+
scope: i.exp?.type === g.SIMPLE_EXPRESSION ? i.exp.content : ""
|
|
1996
|
+
}, cu(d, e)), t.push(d);
|
|
1798
1997
|
});
|
|
1799
1998
|
}
|
|
1800
|
-
} else if (a.type ===
|
|
1999
|
+
} else if (a.type === g.JS_CALL_EXPRESSION) {
|
|
1801
2000
|
const i = a.arguments?.[0];
|
|
1802
2001
|
if (i) {
|
|
1803
|
-
const
|
|
1804
|
-
t.push(...
|
|
2002
|
+
const s = Au(i, K);
|
|
2003
|
+
t.push(...s);
|
|
1805
2004
|
}
|
|
1806
|
-
} else if (a.type ===
|
|
1807
|
-
const i =
|
|
2005
|
+
} else if (a.type === g.TEXT_CALL) {
|
|
2006
|
+
const i = G(a, e);
|
|
1808
2007
|
i && (Array.isArray(i) ? t.push(...i) : t.push(i));
|
|
1809
2008
|
} else {
|
|
1810
|
-
const i =
|
|
2009
|
+
const i = G(a, e);
|
|
1811
2010
|
i && (Array.isArray(i) ? t.push(...i) : t.push(i));
|
|
1812
2011
|
}
|
|
1813
2012
|
if (t.length === 1) {
|
|
@@ -1817,23 +2016,23 @@ function fu(e, u = []) {
|
|
|
1817
2016
|
e.children = t.map((a) => typeof a == "string" ? { name: "span", children: a } : a);
|
|
1818
2017
|
return e;
|
|
1819
2018
|
}
|
|
1820
|
-
function
|
|
2019
|
+
function Ye(e) {
|
|
1821
2020
|
const u = e.branches || [], t = u[0], a = t.children || [];
|
|
1822
|
-
if (t?.isTemplateIf || a.length > 1 || a[0].type !==
|
|
1823
|
-
const
|
|
1824
|
-
return fu(
|
|
2021
|
+
if (t?.isTemplateIf || a.length > 1 || a[0].type !== g.ELEMENT) {
|
|
2022
|
+
const s = { name: "span", directives: uu(t, u) };
|
|
2023
|
+
return fu(s, t.children);
|
|
1825
2024
|
} else
|
|
1826
|
-
return
|
|
2025
|
+
return Ke(u);
|
|
1827
2026
|
}
|
|
1828
|
-
function
|
|
2027
|
+
function u0(e) {
|
|
1829
2028
|
const u = [], t = {}, a = [];
|
|
1830
2029
|
try {
|
|
1831
|
-
const i =
|
|
1832
|
-
for (const n of
|
|
2030
|
+
const i = ae.compileString(e, { charset: !1 })?.css || "", s = te.parse(i), r = /^.[\w]+_[\w]{5,}/;
|
|
2031
|
+
for (const n of s.nodes)
|
|
1833
2032
|
if (n.type === "rule") {
|
|
1834
2033
|
const d = {};
|
|
1835
|
-
|
|
1836
|
-
|
|
2034
|
+
r.test(n.selector) ? (n.nodes.forEach((c) => {
|
|
2035
|
+
c.type === "decl" && (d[c.prop] = c.value);
|
|
1837
2036
|
}), t[n.selector] = d) : a.push(n.toString());
|
|
1838
2037
|
} else
|
|
1839
2038
|
a.push(n.toString());
|
|
@@ -1848,12 +2047,12 @@ function Qe(e) {
|
|
|
1848
2047
|
`)
|
|
1849
2048
|
};
|
|
1850
2049
|
}
|
|
1851
|
-
const
|
|
2050
|
+
const Ou = "arrow-double-left, arrow-double-right, contact, notes, records, cash-back-record, newspaper, discount, completed, user, description, list-switch, list-switching, link-o, miniprogram-o, qq, wechat-moments, weibo, cash-o, guide-o, invitation, shield-o, exchange, eye, enlarge, expand-o, eye-o, expand, filter-o, fire, fail, failure, fire-o, flag-o, font, font-o, gem-o, flower-o, gem, gift-card, friends, friends-o, gold-coin, gold-coin-o, good-job-o, gift, gift-o, gift-card-o, good-job, home-o, goods-collect, graphic, goods-collect-o, hot-o, info, hotel-o, info-o, hot-sale-o, hot, like, idcard, like-o, hot-sale, location-o, location, label, lock, label-o, map-marked, logistics, manager, more, live, manager-o, medal, more-o, music-o, music, new-arrival-o, medal-o, new-o, free-postage, newspaper-o, new-arrival, minus, orders-o, new, paid, notes-o, other-pay, pause-circle, pause, pause-circle-o, peer-pay, pending-payment, passed, plus, phone-circle-o, phone-o, printer, photo-fail, phone, photo-o, play-circle, play, phone-circle, point-gift-o, point-gift, play-circle-o, shrink, photo, qr, qr-invalid, question-o, revoke, replay, service, question, search, refund-o, service-o, scan, share, send-gift-o, share-o, setting, points, photograph, shop, shop-o, shop-collect-o, shop-collect, smile, shopping-cart-o, sign, sort, star-o, smile-comment-o, stop, stop-circle-o, smile-o, star, success, stop-circle, records-o, shopping-cart, tosend, todo-list, thumb-circle-o, thumb-circle, umbrella-circle, underway, upgrade, todo-list-o, tv-o, underway-o, user-o, vip-card-o, vip-card, send-gift, wap-home, wap-nav, volume-o, video, wap-home-o, volume, warning, weapp-nav, wechat-pay, wechat, setting-o, youzan-shield, warn-o, smile-comment, user-circle-o, video-o, add-square, add, arrow-down, arrow-up, arrow, after-sale, add-o, alipay, ascending, apps-o, aim, award, arrow-left, award-o, audio, bag-o, balance-list, back-top, bag, balance-pay, balance-o, bar-chart-o, bars, balance-list-o, birthday-cake-o, bookmark, bill, bell, browsing-history-o, browsing-history, bookmark-o, bulb-o, bullhorn-o, bill-o, calendar-o, brush-o, card, cart-o, cart-circle, cart-circle-o, cart, cash-on-deliver, cash-back-record-o, cashier-o, chart-trending-o, certificate, chat, clear, chat-o, checked, clock, clock-o, close, closed-eye, circle, cluster-o, column, comment-circle-o, cluster, comment, comment-o, comment-circle, completed-o, credit-pay, coupon, debit-pay, coupon-o, contact-o, descending, desktop-o, diamond-o, description-o, delete, diamond, delete-o, cross, edit, ellipsis, down, discount-o, ecard-pay, envelop-o".split(
|
|
1852
2051
|
", "
|
|
1853
|
-
),
|
|
2052
|
+
), e0 = "AddLocation, Aim, AlarmClock, Apple, ArrowDownBold, ArrowDown, ArrowLeftBold, ArrowLeft, ArrowRightBold, ArrowRight, ArrowUpBold, ArrowUp, Avatar, Back, Baseball, Basketball, BellFilled, Bell, Bicycle, BottomLeft, BottomRight, Bottom, Bowl, Box, Briefcase, BrushFilled, Brush, Burger, Calendar, CameraFilled, Camera, CaretBottom, CaretLeft, CaretRight, CaretTop, Cellphone, ChatDotRound, ChatDotSquare, ChatLineRound, ChatLineSquare, ChatRound, ChatSquare, Check, Checked, Cherry, Chicken, ChromeFilled, CircleCheckFilled, CircleCheck, CircleCloseFilled, CircleClose, CirclePlusFilled, CirclePlus, Clock, CloseBold, Close, Cloudy, CoffeeCup, Coffee, Coin, ColdDrink, CollectionTag, Collection, Comment, Compass, Connection, Coordinate, CopyDocument, Cpu, CreditCard, Crop, DArrowLeft, DArrowRight, DCaret, DataAnalysis, DataBoard, DataLine, DeleteFilled, DeleteLocation, Delete, Dessert, Discount, DishDot, Dish, DocumentAdd, DocumentChecked, DocumentCopy, DocumentDelete, DocumentRemove, Document, Download, Drizzling, EditPen, Edit, ElemeFilled, Eleme, ElementPlus, Expand, Failed, Female, Files, Film, Filter, Finished, FirstAidKit, Flag, Fold, FolderAdd, FolderChecked, FolderDelete, FolderOpened, FolderRemove, Folder, Food, Football, ForkSpoon, Fries, FullScreen, GobletFull, GobletSquareFull, GobletSquare, Goblet, GoldMedal, GoodsFilled, Goods, Grape, Grid, Guide, Handbag, Headset, HelpFilled, Help, Hide, Histogram, HomeFilled, HotWater, House, IceCreamRound, IceCreamSquare, IceCream, IceDrink, IceTea, InfoFilled, Iphone, Key, KnifeFork, Lightning, Link, List, Loading, LocationFilled, LocationInformation, Location, Lock, Lollipop, MagicStick, Magnet, Male, Management, MapLocation, Medal, Memo, Menu, MessageBox, Message, Mic, Microphone, MilkTea, Minus, Money, Monitor, MoonNight, Moon, MoreFilled, More, MostlyCloudy, Mouse, Mug, MuteNotification, Mute, NoSmoking, Notebook, Notification, Odometer, OfficeBuilding, Open, Operation, Opportunity, Orange, Paperclip, PartlyCloudy, Pear, PhoneFilled, Phone, PictureFilled, PictureRounded, Picture, PieChart, Place, Platform, Plus, Pointer, Position, Postcard, Pouring, Present, PriceTag, Printer, Promotion, QuartzWatch, QuestionFilled, Rank, ReadingLamp, Reading, RefreshLeft, RefreshRight, Refresh, Refrigerator, RemoveFilled, Remove, Right, ScaleToOriginal, School, Scissor, Search, Select, Sell, SemiSelect, Service, SetUp, Setting, Share, Ship, Shop, ShoppingBag, ShoppingCartFull, ShoppingCart, ShoppingTrolley, Smoking, Soccer, SoldOut, SortDown, SortUp, Sort, Stamp, StarFilled, Star, Stopwatch, SuccessFilled, Sugar, SuitcaseLine, Suitcase, Sunny, Sunrise, Sunset, SwitchButton, SwitchFilled, Switch, TakeawayBox, Ticket, Tickets, Timer, ToiletPaper, Tools, TopLeft, TopRight, Top, TrendCharts, TrophyBase, Trophy, TurnOff, Umbrella, Unlock, UploadFilled, Upload, UserFilled, User, Van, VideoCameraFilled, VideoCamera, VideoPause, VideoPlay, View, WalletFilled, Wallet, WarnTriangleFilled, WarningFilled, Warning, Watch, Watermelon, WindPower, ZoomIn, ZoomOut, VtjIconChatRecord, VtjIconNewChat, VtjIconAi, VtjIconUniapp, VtjIconWindowMax, VtjIconWindowMin, VtjIconWindowClose, VtjIconWindowNormal, VtjIconWindowDown, VtjIconWindowUp, VtjIconNpSave, VtjIconNpFile, VtjIconNpEdit, VtjIconNpShare, VtjIconNpSearch, VtjIconNpExport, VtjIconNpImport, VtjIconNpList, VtjIconNpPrint, VtjIconNpCancel, VtjIconNpConfirm, VtjIconNpReset, VtjIconNpReturnAll, VtjIconNpReturn, VtjIconNpRemove, VtjIconNpRemoveRow, VtjIconNpDelete, VtjIconNpExit, VtjIconNpRefresh, VtjIconNpAdd, VtjIconNpSelect, VtjIconNpAddRow, VtjIconNpExtend, VtjIconNpClose, VtjIconNpSubmit, VtjIconDeps, VtjIconBack, VtjIconHome, VtjIconApi, VtjIconExport, VtjIconImport, VtjIconGreater, VtjIconSmaller, VtjIconCheck, VtjIconSwitch, VtjIconCopy, VtjIconLock, VtjIconUnlock, VtjIconLayers, VtjIconConsole, VtjIconTeam, VtjIconPublish, VtjIconPreview, VtjIconSave, VtjIconPc, VtjIconPhone, VtjIconPad, VtjIconRedo, VtjIconRefresh, VtjIconUndo, VtjIconCategory, VtjIconProject, VtjIconNotice, VtjIconFav, VtjIconBug, VtjIconFile, VtjIconFolder, VtjIconUpload, VtjIconDownload, VtjIconUser, VtjIconSetting, VtjIconArrowRight, VtjIconArrowLeft, VtjIconArrowDown, VtjIconArrowUp, VtjIconShare, VtjIconData, VtjIconTemplate, VtjIconExitFullscreen, VtjIconFullscreen, VtjIconEdit, VtjIconRemove, VtjIconJs, VtjIconDatabase, VtjIconInfo, VtjIconPlus, VtjIconMinus, VtjIconHelp, VtjIconVars, VtjIconOutline, VtjIconVisible, VtjIconInvisible, VtjIconDocument, VtjIconHistory, VtjIconFixed, VtjIconUnfixed, VtjIconSearch, VtjIconMore, VtjIconClose, VtjIconComponents, VtjIconBlock".split(
|
|
1854
2053
|
", "
|
|
1855
|
-
),
|
|
1856
|
-
class
|
|
2054
|
+
), t0 = "user", j = "User";
|
|
2055
|
+
class a0 {
|
|
1857
2056
|
validate(u) {
|
|
1858
2057
|
const t = {
|
|
1859
2058
|
valid: !0,
|
|
@@ -1867,7 +2066,7 @@ class Ye {
|
|
|
1867
2066
|
}
|
|
1868
2067
|
isCompleteSFC(u) {
|
|
1869
2068
|
try {
|
|
1870
|
-
const t =
|
|
2069
|
+
const t = D(u);
|
|
1871
2070
|
return !!(t.template && t.script && t.styles);
|
|
1872
2071
|
} catch {
|
|
1873
2072
|
return !1;
|
|
@@ -1876,45 +2075,45 @@ class Ye {
|
|
|
1876
2075
|
checkSyntax(u) {
|
|
1877
2076
|
let t = "";
|
|
1878
2077
|
try {
|
|
1879
|
-
const a =
|
|
1880
|
-
|
|
2078
|
+
const a = D(u);
|
|
2079
|
+
X(a.script);
|
|
1881
2080
|
} catch (a) {
|
|
1882
2081
|
a instanceof SyntaxError && (t = a.message);
|
|
1883
2082
|
}
|
|
1884
2083
|
return t;
|
|
1885
2084
|
}
|
|
1886
2085
|
checkSetup(u) {
|
|
1887
|
-
const t =
|
|
2086
|
+
const t = D(u);
|
|
1888
2087
|
let a = 0;
|
|
1889
2088
|
return ku(t.script, {
|
|
1890
2089
|
ObjectMethod(i) {
|
|
1891
2090
|
i.node.key.name === "setup" && (a = i.node.body.body.filter(
|
|
1892
|
-
(
|
|
2091
|
+
(r) => !q.isEmptyStatement(r)
|
|
1893
2092
|
).length);
|
|
1894
2093
|
}
|
|
1895
2094
|
}), a === 3;
|
|
1896
2095
|
}
|
|
1897
2096
|
findVantIcons(u) {
|
|
1898
|
-
const t =
|
|
1899
|
-
return i.forEach((
|
|
1900
|
-
const n =
|
|
1901
|
-
n &&
|
|
1902
|
-
}), [...new Set(
|
|
2097
|
+
const t = D(u), a = /<(?:VanIcon|van-icon)\b[^>]*>/g, i = t.template.match(a) || [], s = [];
|
|
2098
|
+
return i.forEach((r) => {
|
|
2099
|
+
const n = r.match(/\bname="([^"]+)"/);
|
|
2100
|
+
n && s.push(n[1]);
|
|
2101
|
+
}), [...new Set(s)];
|
|
1903
2102
|
}
|
|
1904
2103
|
checkVantIcons(u) {
|
|
1905
2104
|
const t = this.findVantIcons(u), a = [];
|
|
1906
2105
|
for (const i of t)
|
|
1907
|
-
|
|
2106
|
+
Ou.includes(i) || a.push(i);
|
|
1908
2107
|
return a;
|
|
1909
2108
|
}
|
|
1910
2109
|
findVtjIcons(u) {
|
|
1911
|
-
const t =
|
|
1912
|
-
return !i || !i[1] ? [] : i[1].split(",").map((
|
|
2110
|
+
const t = D(u), a = /import\s*{([^}]+)}\s*from\s*['"]\@vtj\/icons['"]/, i = t.script.match(a);
|
|
2111
|
+
return !i || !i[1] ? [] : i[1].split(",").map((s) => s.trim()).filter(Boolean);
|
|
1913
2112
|
}
|
|
1914
2113
|
checkVtjIcons(u) {
|
|
1915
2114
|
const t = this.findVtjIcons(u), a = [];
|
|
1916
2115
|
for (const i of t)
|
|
1917
|
-
|
|
2116
|
+
e0.includes(i) || a.push(i);
|
|
1918
2117
|
return a;
|
|
1919
2118
|
}
|
|
1920
2119
|
hasUnchangedComment(u) {
|
|
@@ -1924,15 +2123,15 @@ class Ye {
|
|
|
1924
2123
|
...u.match(a) || [],
|
|
1925
2124
|
...u.match(i) || []
|
|
1926
2125
|
].some(
|
|
1927
|
-
(
|
|
2126
|
+
(r) => /不变/.test(r.replace(/\*/g, ""))
|
|
1928
2127
|
// 移除多行注释的星号避免干扰
|
|
1929
2128
|
);
|
|
1930
2129
|
}
|
|
1931
2130
|
}
|
|
1932
|
-
function
|
|
2131
|
+
function i0(e) {
|
|
1933
2132
|
const u = [];
|
|
1934
2133
|
let t = e;
|
|
1935
|
-
const a =
|
|
2134
|
+
const a = D(e);
|
|
1936
2135
|
if (!a.template || !a.script)
|
|
1937
2136
|
return {
|
|
1938
2137
|
fixed: !1,
|
|
@@ -1940,190 +2139,190 @@ function u0(e) {
|
|
|
1940
2139
|
fixedCode: e,
|
|
1941
2140
|
changes: []
|
|
1942
2141
|
};
|
|
1943
|
-
const i =
|
|
1944
|
-
let
|
|
2142
|
+
const i = s0(a.script), s = a.template;
|
|
2143
|
+
let r = s;
|
|
1945
2144
|
const n = [], d = /\{\{([^}]+)\}\}/g;
|
|
1946
|
-
let
|
|
1947
|
-
for (; (
|
|
1948
|
-
const
|
|
1949
|
-
if (
|
|
1950
|
-
const
|
|
2145
|
+
let c;
|
|
2146
|
+
for (; (c = d.exec(s)) !== null; ) {
|
|
2147
|
+
const b = c[0], S = c[1], I = F(S, i);
|
|
2148
|
+
if (I !== S) {
|
|
2149
|
+
const x = B(s, c.index);
|
|
1951
2150
|
n.push({
|
|
1952
|
-
start:
|
|
1953
|
-
end:
|
|
1954
|
-
original:
|
|
1955
|
-
replacement: `{{${
|
|
1956
|
-
line:
|
|
1957
|
-
column:
|
|
2151
|
+
start: c.index,
|
|
2152
|
+
end: c.index + b.length,
|
|
2153
|
+
original: b,
|
|
2154
|
+
replacement: `{{${I}}}`,
|
|
2155
|
+
line: x.line,
|
|
2156
|
+
column: x.column
|
|
1958
2157
|
}), u.push({
|
|
1959
|
-
line:
|
|
1960
|
-
column:
|
|
1961
|
-
original:
|
|
1962
|
-
fixed:
|
|
2158
|
+
line: x.line + 1,
|
|
2159
|
+
column: x.column,
|
|
2160
|
+
original: S.trim(),
|
|
2161
|
+
fixed: I.trim(),
|
|
1963
2162
|
message: "修复插值表达式:添加 state. 前缀"
|
|
1964
2163
|
});
|
|
1965
2164
|
}
|
|
1966
2165
|
}
|
|
1967
|
-
const
|
|
1968
|
-
for (; (
|
|
1969
|
-
const
|
|
1970
|
-
if (
|
|
1971
|
-
const
|
|
2166
|
+
const f = /:(\w+)="([^"]+)"/g;
|
|
2167
|
+
for (; (c = f.exec(s)) !== null; ) {
|
|
2168
|
+
const b = c[0], S = c[1], I = c[2], x = F(I, i);
|
|
2169
|
+
if (x !== I) {
|
|
2170
|
+
const v = B(s, c.index);
|
|
1972
2171
|
n.push({
|
|
1973
|
-
start:
|
|
1974
|
-
end:
|
|
1975
|
-
original:
|
|
1976
|
-
replacement: `:${
|
|
1977
|
-
line:
|
|
1978
|
-
column:
|
|
2172
|
+
start: c.index,
|
|
2173
|
+
end: c.index + b.length,
|
|
2174
|
+
original: b,
|
|
2175
|
+
replacement: `:${S}="${x}"`,
|
|
2176
|
+
line: v.line,
|
|
2177
|
+
column: v.column
|
|
1979
2178
|
}), u.push({
|
|
1980
|
-
line:
|
|
1981
|
-
column:
|
|
1982
|
-
original:
|
|
1983
|
-
fixed:
|
|
2179
|
+
line: v.line + 1,
|
|
2180
|
+
column: v.column,
|
|
2181
|
+
original: I,
|
|
2182
|
+
fixed: x,
|
|
1984
2183
|
message: "修复绑定属性:添加 state. 前缀"
|
|
1985
2184
|
});
|
|
1986
2185
|
}
|
|
1987
2186
|
}
|
|
1988
|
-
const
|
|
1989
|
-
for (; (
|
|
1990
|
-
const
|
|
1991
|
-
if (
|
|
1992
|
-
const
|
|
2187
|
+
const l = /v-(if|else-if|show)="([^"]+)"/g;
|
|
2188
|
+
for (; (c = l.exec(s)) !== null; ) {
|
|
2189
|
+
const b = c[0], S = c[1], I = c[2], x = F(I, i);
|
|
2190
|
+
if (x !== I) {
|
|
2191
|
+
const v = B(s, c.index);
|
|
1993
2192
|
n.push({
|
|
1994
|
-
start:
|
|
1995
|
-
end:
|
|
1996
|
-
original:
|
|
1997
|
-
replacement: `v-${
|
|
1998
|
-
line:
|
|
1999
|
-
column:
|
|
2193
|
+
start: c.index,
|
|
2194
|
+
end: c.index + b.length,
|
|
2195
|
+
original: b,
|
|
2196
|
+
replacement: `v-${S}="${x}"`,
|
|
2197
|
+
line: v.line,
|
|
2198
|
+
column: v.column
|
|
2000
2199
|
}), u.push({
|
|
2001
|
-
line:
|
|
2002
|
-
column:
|
|
2003
|
-
original:
|
|
2004
|
-
fixed:
|
|
2005
|
-
message: `修复 v-${
|
|
2200
|
+
line: v.line + 1,
|
|
2201
|
+
column: v.column,
|
|
2202
|
+
original: I,
|
|
2203
|
+
fixed: x,
|
|
2204
|
+
message: `修复 v-${S} 指令:添加 state. 前缀`
|
|
2006
2205
|
});
|
|
2007
2206
|
}
|
|
2008
2207
|
}
|
|
2009
|
-
const
|
|
2010
|
-
for (; (
|
|
2011
|
-
const
|
|
2012
|
-
if (
|
|
2013
|
-
const [,
|
|
2014
|
-
|
|
2208
|
+
const h = /v-for="([^"]+)"/g;
|
|
2209
|
+
for (; (c = h.exec(s)) !== null; ) {
|
|
2210
|
+
const b = c[0], I = c[1].match(/^(.+)\s+in\s+(.+)$/);
|
|
2211
|
+
if (I) {
|
|
2212
|
+
const [, x, v] = I, R = F(
|
|
2213
|
+
v,
|
|
2015
2214
|
i
|
|
2016
2215
|
);
|
|
2017
|
-
if (
|
|
2018
|
-
const
|
|
2216
|
+
if (R !== v) {
|
|
2217
|
+
const U = B(s, c.index), eu = `v-for="${x} in ${R}"`;
|
|
2019
2218
|
n.push({
|
|
2020
|
-
start:
|
|
2021
|
-
end:
|
|
2022
|
-
original:
|
|
2219
|
+
start: c.index,
|
|
2220
|
+
end: c.index + b.length,
|
|
2221
|
+
original: b,
|
|
2023
2222
|
replacement: eu,
|
|
2024
|
-
line:
|
|
2025
|
-
column:
|
|
2223
|
+
line: U.line,
|
|
2224
|
+
column: U.column
|
|
2026
2225
|
}), u.push({
|
|
2027
|
-
line:
|
|
2028
|
-
column:
|
|
2029
|
-
original:
|
|
2030
|
-
fixed:
|
|
2226
|
+
line: U.line + 1,
|
|
2227
|
+
column: U.column,
|
|
2228
|
+
original: v,
|
|
2229
|
+
fixed: R,
|
|
2031
2230
|
message: "修复 v-for 指令:添加 state. 前缀"
|
|
2032
2231
|
});
|
|
2033
2232
|
}
|
|
2034
2233
|
}
|
|
2035
2234
|
}
|
|
2036
|
-
const
|
|
2037
|
-
for (; (
|
|
2038
|
-
const
|
|
2039
|
-
if (
|
|
2040
|
-
const
|
|
2235
|
+
const m = /v-model="([^"]+)"/g;
|
|
2236
|
+
for (; (c = m.exec(s)) !== null; ) {
|
|
2237
|
+
const b = c[0], S = c[1], I = F(S, i);
|
|
2238
|
+
if (I !== S) {
|
|
2239
|
+
const x = B(s, c.index);
|
|
2041
2240
|
n.push({
|
|
2042
|
-
start:
|
|
2043
|
-
end:
|
|
2044
|
-
original:
|
|
2045
|
-
replacement: `v-model="${
|
|
2046
|
-
line:
|
|
2047
|
-
column:
|
|
2241
|
+
start: c.index,
|
|
2242
|
+
end: c.index + b.length,
|
|
2243
|
+
original: b,
|
|
2244
|
+
replacement: `v-model="${I}"`,
|
|
2245
|
+
line: x.line,
|
|
2246
|
+
column: x.column
|
|
2048
2247
|
}), u.push({
|
|
2049
|
-
line:
|
|
2050
|
-
column:
|
|
2051
|
-
original:
|
|
2052
|
-
fixed:
|
|
2248
|
+
line: x.line + 1,
|
|
2249
|
+
column: x.column,
|
|
2250
|
+
original: S,
|
|
2251
|
+
fixed: I,
|
|
2053
2252
|
message: "修复 v-model 指令:添加 state. 前缀"
|
|
2054
2253
|
});
|
|
2055
2254
|
}
|
|
2056
2255
|
}
|
|
2057
|
-
const
|
|
2058
|
-
for (; (
|
|
2059
|
-
const
|
|
2060
|
-
if (
|
|
2061
|
-
const
|
|
2256
|
+
const w = /v-bind="([^"]+)"/g;
|
|
2257
|
+
for (; (c = w.exec(s)) !== null; ) {
|
|
2258
|
+
const b = c[0], S = c[1], I = F(S, i);
|
|
2259
|
+
if (I !== S) {
|
|
2260
|
+
const x = B(s, c.index);
|
|
2062
2261
|
n.push({
|
|
2063
|
-
start:
|
|
2064
|
-
end:
|
|
2065
|
-
original:
|
|
2066
|
-
replacement: `v-bind="${
|
|
2067
|
-
line:
|
|
2068
|
-
column:
|
|
2262
|
+
start: c.index,
|
|
2263
|
+
end: c.index + b.length,
|
|
2264
|
+
original: b,
|
|
2265
|
+
replacement: `v-bind="${I}"`,
|
|
2266
|
+
line: x.line,
|
|
2267
|
+
column: x.column
|
|
2069
2268
|
}), u.push({
|
|
2070
|
-
line:
|
|
2071
|
-
column:
|
|
2072
|
-
original:
|
|
2073
|
-
fixed:
|
|
2269
|
+
line: x.line + 1,
|
|
2270
|
+
column: x.column,
|
|
2271
|
+
original: S,
|
|
2272
|
+
fixed: I,
|
|
2074
2273
|
message: "修复 v-bind 指令:添加 state. 前缀"
|
|
2075
2274
|
});
|
|
2076
2275
|
}
|
|
2077
2276
|
}
|
|
2078
|
-
const
|
|
2079
|
-
for (; (
|
|
2080
|
-
const
|
|
2081
|
-
if (
|
|
2082
|
-
const
|
|
2277
|
+
const A = /v-(text|html)="([^"]+)"/g;
|
|
2278
|
+
for (; (c = A.exec(s)) !== null; ) {
|
|
2279
|
+
const b = c[0], S = c[1], I = c[2], x = F(I, i);
|
|
2280
|
+
if (x !== I) {
|
|
2281
|
+
const v = B(s, c.index);
|
|
2083
2282
|
n.push({
|
|
2084
|
-
start:
|
|
2085
|
-
end:
|
|
2086
|
-
original:
|
|
2087
|
-
replacement: `v-${
|
|
2088
|
-
line:
|
|
2089
|
-
column:
|
|
2283
|
+
start: c.index,
|
|
2284
|
+
end: c.index + b.length,
|
|
2285
|
+
original: b,
|
|
2286
|
+
replacement: `v-${S}="${x}"`,
|
|
2287
|
+
line: v.line,
|
|
2288
|
+
column: v.column
|
|
2090
2289
|
}), u.push({
|
|
2091
|
-
line:
|
|
2092
|
-
column:
|
|
2093
|
-
original:
|
|
2094
|
-
fixed:
|
|
2095
|
-
message: `修复 v-${
|
|
2290
|
+
line: v.line + 1,
|
|
2291
|
+
column: v.column,
|
|
2292
|
+
original: I,
|
|
2293
|
+
fixed: x,
|
|
2294
|
+
message: `修复 v-${S} 指令:添加 state. 前缀`
|
|
2096
2295
|
});
|
|
2097
2296
|
}
|
|
2098
2297
|
}
|
|
2099
|
-
const
|
|
2100
|
-
for (; (
|
|
2101
|
-
const
|
|
2102
|
-
if (
|
|
2103
|
-
const
|
|
2298
|
+
const y = /(@|v-on:)(\w+)="([^"]+)"/g;
|
|
2299
|
+
for (; (c = y.exec(s)) !== null; ) {
|
|
2300
|
+
const b = c[0], S = c[1], I = c[2], x = c[3], v = r0(x, i);
|
|
2301
|
+
if (v !== x) {
|
|
2302
|
+
const R = B(s, c.index);
|
|
2104
2303
|
n.push({
|
|
2105
|
-
start:
|
|
2106
|
-
end:
|
|
2107
|
-
original:
|
|
2108
|
-
replacement: `${
|
|
2109
|
-
line:
|
|
2110
|
-
column:
|
|
2304
|
+
start: c.index,
|
|
2305
|
+
end: c.index + b.length,
|
|
2306
|
+
original: b,
|
|
2307
|
+
replacement: `${S}${I}="${v}"`,
|
|
2308
|
+
line: R.line,
|
|
2309
|
+
column: R.column
|
|
2111
2310
|
}), u.push({
|
|
2112
|
-
line:
|
|
2113
|
-
column:
|
|
2114
|
-
original:
|
|
2115
|
-
fixed:
|
|
2311
|
+
line: R.line + 1,
|
|
2312
|
+
column: R.column,
|
|
2313
|
+
original: x,
|
|
2314
|
+
fixed: v,
|
|
2116
2315
|
message: "修复事件处理器:添加 state. 前缀"
|
|
2117
2316
|
});
|
|
2118
2317
|
}
|
|
2119
2318
|
}
|
|
2120
|
-
if (n.sort((
|
|
2121
|
-
|
|
2319
|
+
if (n.sort((b, S) => S.start - b.start), n.forEach((b) => {
|
|
2320
|
+
r = r.substring(0, b.start) + b.replacement + r.substring(b.end);
|
|
2122
2321
|
}), n.length > 0) {
|
|
2123
|
-
const
|
|
2124
|
-
t = e.substring(0,
|
|
2125
|
-
` +
|
|
2126
|
-
</template>` + e.substring(
|
|
2322
|
+
const b = e.indexOf("<template>"), S = e.lastIndexOf("</template>") + 11;
|
|
2323
|
+
t = e.substring(0, b) + `<template>
|
|
2324
|
+
` + r + `
|
|
2325
|
+
</template>` + e.substring(S);
|
|
2127
2326
|
}
|
|
2128
2327
|
return {
|
|
2129
2328
|
fixed: n.length > 0,
|
|
@@ -2132,16 +2331,16 @@ function u0(e) {
|
|
|
2132
2331
|
changes: u
|
|
2133
2332
|
};
|
|
2134
2333
|
}
|
|
2135
|
-
function
|
|
2334
|
+
function s0(e) {
|
|
2136
2335
|
const u = /* @__PURE__ */ new Set();
|
|
2137
2336
|
try {
|
|
2138
|
-
const t =
|
|
2139
|
-
|
|
2337
|
+
const t = X(e);
|
|
2338
|
+
Y(t, {
|
|
2140
2339
|
CallExpression(a) {
|
|
2141
2340
|
if (a.node.callee.type === "Identifier" && a.node.callee.name === "reactive" && a.node.arguments.length > 0 && a.node.arguments[0].type === "ObjectExpression") {
|
|
2142
2341
|
const i = a.parent;
|
|
2143
|
-
i.type === "VariableDeclarator" && i.id.type === "Identifier" && i.id.name === "state" && a.node.arguments[0].properties.forEach((
|
|
2144
|
-
|
|
2342
|
+
i.type === "VariableDeclarator" && i.id.type === "Identifier" && i.id.name === "state" && a.node.arguments[0].properties.forEach((r) => {
|
|
2343
|
+
r.type === "ObjectProperty" && r.key.type === "Identifier" && u.add(r.key.name);
|
|
2145
2344
|
});
|
|
2146
2345
|
}
|
|
2147
2346
|
}
|
|
@@ -2151,25 +2350,25 @@ function e0(e) {
|
|
|
2151
2350
|
}
|
|
2152
2351
|
return u;
|
|
2153
2352
|
}
|
|
2154
|
-
function
|
|
2353
|
+
function F(e, u) {
|
|
2155
2354
|
let t = e.trim();
|
|
2156
2355
|
return u.forEach((a) => {
|
|
2157
2356
|
const i = new RegExp(`(?<![\\w.])${a}(?![\\w])`, "g");
|
|
2158
2357
|
i.test(t) && !t.includes(`state.${a}`) && (t = t.replace(i, `state.${a}`));
|
|
2159
2358
|
}), t;
|
|
2160
2359
|
}
|
|
2161
|
-
function
|
|
2360
|
+
function r0(e, u) {
|
|
2162
2361
|
let t = e.trim();
|
|
2163
2362
|
return u.forEach((a) => {
|
|
2164
2363
|
const i = new RegExp(
|
|
2165
2364
|
`(?<![\\w.])${a}(\\+\\+|--|\\s*[+\\-*/]=)`,
|
|
2166
2365
|
"g"
|
|
2167
|
-
),
|
|
2366
|
+
), s = new RegExp(
|
|
2168
2367
|
`(\\+\\+|--)?(?<![\\w.])${a}(?![\\w])`,
|
|
2169
2368
|
"g"
|
|
2170
2369
|
);
|
|
2171
|
-
t.includes(`state.${a}`) || (t = t.replace(i, `state.${a}$1`), t = t.replace(
|
|
2172
|
-
}),
|
|
2370
|
+
t.includes(`state.${a}`) || (t = t.replace(i, `state.${a}$1`), t = t.replace(s, (r, n) => n ? `${n}state.${a}` : r.includes(a) && !r.includes("state.") ? `state.${a}` : r));
|
|
2371
|
+
}), F(t, u);
|
|
2173
2372
|
}
|
|
2174
2373
|
function B(e, u) {
|
|
2175
2374
|
const t = e.substring(0, u).split(`
|
|
@@ -2179,51 +2378,51 @@ function B(e, u) {
|
|
|
2179
2378
|
column: t[t.length - 1].length
|
|
2180
2379
|
};
|
|
2181
2380
|
}
|
|
2182
|
-
class
|
|
2381
|
+
class c0 {
|
|
2183
2382
|
fixBasedOnValidation(u, t) {
|
|
2184
2383
|
let a = u;
|
|
2185
|
-
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)),
|
|
2384
|
+
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)), i0(a).fixedCode;
|
|
2186
2385
|
}
|
|
2187
2386
|
fixVantIcons(u) {
|
|
2188
|
-
const t =
|
|
2387
|
+
const t = D(u), a = t.template.replace(
|
|
2189
2388
|
/<(?:VanIcon|van-icon)\s+[^>]*name="([^"]+)"[^>]*>/g,
|
|
2190
|
-
(i,
|
|
2389
|
+
(i, s) => Ou.includes(s) ? i : i.replace(s, t0)
|
|
2191
2390
|
);
|
|
2192
2391
|
return this.reconstructSFC(t, a, t.script);
|
|
2193
2392
|
}
|
|
2194
2393
|
fixVtjIcons(u, t = []) {
|
|
2195
|
-
const a =
|
|
2394
|
+
const a = D(u);
|
|
2196
2395
|
a.script = ku(a.script, {
|
|
2197
|
-
ImportDeclaration(
|
|
2198
|
-
if (
|
|
2199
|
-
const n =
|
|
2200
|
-
let
|
|
2201
|
-
for (const
|
|
2202
|
-
const
|
|
2203
|
-
|
|
2204
|
-
|
|
2396
|
+
ImportDeclaration(r) {
|
|
2397
|
+
if (r.node.source.value === "@vtj/icons") {
|
|
2398
|
+
const n = r.node.specifiers, d = [];
|
|
2399
|
+
let c = !1;
|
|
2400
|
+
for (const f of n) {
|
|
2401
|
+
const l = f.imported?.name;
|
|
2402
|
+
l === j && (c = !0), t.includes(l) || d.push(
|
|
2403
|
+
q.importSpecifier(f.local, f.imported)
|
|
2205
2404
|
);
|
|
2206
2405
|
}
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2406
|
+
c || d.push(
|
|
2407
|
+
q.importSpecifier(
|
|
2408
|
+
q.identifier(j),
|
|
2409
|
+
q.identifier(j)
|
|
2211
2410
|
)
|
|
2212
|
-
),
|
|
2411
|
+
), r.node.specifiers = d;
|
|
2213
2412
|
}
|
|
2214
2413
|
},
|
|
2215
|
-
ObjectMethod(
|
|
2216
|
-
if (
|
|
2217
|
-
const n =
|
|
2414
|
+
ObjectMethod(r) {
|
|
2415
|
+
if (r.node.key.name === "setup") {
|
|
2416
|
+
const n = r.node.body.body;
|
|
2218
2417
|
for (const d of n)
|
|
2219
|
-
if (
|
|
2220
|
-
const
|
|
2221
|
-
d.argument.properties =
|
|
2222
|
-
(
|
|
2418
|
+
if (q.isReturnStatement(d) && q.isObjectExpression(d.argument)) {
|
|
2419
|
+
const c = d.argument.properties || [];
|
|
2420
|
+
d.argument.properties = c.filter(
|
|
2421
|
+
(f) => !t.includes(f.key.name)
|
|
2223
2422
|
), d.argument.properties.push(
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2423
|
+
q.objectProperty(
|
|
2424
|
+
q.identifier(j),
|
|
2425
|
+
q.identifier(j),
|
|
2227
2426
|
!1,
|
|
2228
2427
|
!0
|
|
2229
2428
|
)
|
|
@@ -2231,27 +2430,27 @@ class a0 {
|
|
|
2231
2430
|
}
|
|
2232
2431
|
}
|
|
2233
2432
|
},
|
|
2234
|
-
ObjectProperty(
|
|
2235
|
-
if (
|
|
2236
|
-
const n =
|
|
2237
|
-
|
|
2433
|
+
ObjectProperty(r) {
|
|
2434
|
+
if (q.isIdentifier(r.node.value) && t.includes(r.node.value.name) && (r.node.value = q.identifier(j)), q.isArrayExpression(r.node.value)) {
|
|
2435
|
+
const n = r.node.value.elements;
|
|
2436
|
+
r.node.value.elements = n.map((d) => q.isIdentifier(d) && t.includes(d.name) ? q.identifier(j) : d);
|
|
2238
2437
|
}
|
|
2239
2438
|
},
|
|
2240
|
-
AssignmentExpression(
|
|
2241
|
-
|
|
2439
|
+
AssignmentExpression(r) {
|
|
2440
|
+
q.isIdentifier(r.node.right) && t.includes(r.node.right.name) && (r.node.right = q.identifier(j));
|
|
2242
2441
|
}
|
|
2243
2442
|
});
|
|
2244
|
-
const i = /:icon\s*=\s*["']([^"']+)["']/g,
|
|
2245
|
-
if (
|
|
2246
|
-
for (const
|
|
2247
|
-
let n =
|
|
2443
|
+
const i = /:icon\s*=\s*["']([^"']+)["']/g, s = a.template.match(i);
|
|
2444
|
+
if (s)
|
|
2445
|
+
for (const r of s) {
|
|
2446
|
+
let n = r;
|
|
2248
2447
|
for (const d of t)
|
|
2249
2448
|
n = n.replace(new RegExp(d, "g"), j);
|
|
2250
|
-
a.template = a.template.replace(
|
|
2449
|
+
a.template = a.template.replace(r, n);
|
|
2251
2450
|
}
|
|
2252
|
-
for (const
|
|
2451
|
+
for (const r of t)
|
|
2253
2452
|
a.template = a.template.replace(
|
|
2254
|
-
new RegExp(`:icon="${
|
|
2453
|
+
new RegExp(`:icon="${r}"`, "g"),
|
|
2255
2454
|
`:icon="${j}"`
|
|
2256
2455
|
);
|
|
2257
2456
|
return this.reconstructSFC(a, a.template, a.script);
|
|
@@ -2266,63 +2465,65 @@ ${t}
|
|
|
2266
2465
|
${a}
|
|
2267
2466
|
<\/script>
|
|
2268
2467
|
|
|
2269
|
-
`), u.styles.forEach((
|
|
2468
|
+
`), u.styles.forEach((s) => {
|
|
2270
2469
|
i += `<style lang="scss" scoped>
|
|
2271
|
-
`, i += `${
|
|
2470
|
+
`, i += `${s}
|
|
2272
2471
|
`, i += `</style>
|
|
2273
2472
|
|
|
2274
2473
|
`;
|
|
2275
2474
|
}), i;
|
|
2276
2475
|
}
|
|
2277
2476
|
}
|
|
2278
|
-
async function
|
|
2279
|
-
const { id: u, name: t, source: a, project: i } = e, { dependencies:
|
|
2280
|
-
let
|
|
2281
|
-
if (!
|
|
2282
|
-
return
|
|
2283
|
-
const
|
|
2284
|
-
styles:
|
|
2285
|
-
css:
|
|
2286
|
-
errors:
|
|
2287
|
-
} =
|
|
2477
|
+
async function w0(e) {
|
|
2478
|
+
const { id: u, name: t, source: a, project: i } = e, { dependencies: s = [], platform: r = "web" } = i || {}, n = new a0(), d = new c0(), c = n.validate(a);
|
|
2479
|
+
let f = [];
|
|
2480
|
+
if (!c.valid)
|
|
2481
|
+
return f = c.errors, Promise.reject(f);
|
|
2482
|
+
const l = d.fixBasedOnValidation(a, c), h = D(l), {
|
|
2483
|
+
styles: m,
|
|
2484
|
+
css: w,
|
|
2485
|
+
errors: A
|
|
2486
|
+
} = u0(h.styles.join(`
|
|
2288
2487
|
`));
|
|
2289
|
-
if (
|
|
2290
|
-
return Promise.reject(
|
|
2488
|
+
if (f.push(...A), f.length)
|
|
2489
|
+
return Promise.reject(f);
|
|
2291
2490
|
const {
|
|
2292
|
-
state:
|
|
2293
|
-
watch:
|
|
2294
|
-
lifeCycles:
|
|
2295
|
-
computed:
|
|
2296
|
-
methods:
|
|
2297
|
-
props:
|
|
2298
|
-
emits:
|
|
2299
|
-
expose:
|
|
2491
|
+
state: y,
|
|
2492
|
+
watch: b,
|
|
2493
|
+
lifeCycles: S,
|
|
2494
|
+
computed: I,
|
|
2495
|
+
methods: x,
|
|
2496
|
+
props: v,
|
|
2497
|
+
emits: R,
|
|
2498
|
+
expose: U,
|
|
2300
2499
|
inject: eu,
|
|
2301
2500
|
handlers: Mu,
|
|
2302
2501
|
imports: lu,
|
|
2303
|
-
dataSources:
|
|
2304
|
-
|
|
2305
|
-
|
|
2502
|
+
dataSources: $u,
|
|
2503
|
+
directives: Pu
|
|
2504
|
+
} = Ve(h.script, i), { nodes: Uu, slots: Hu, context: Gu } = ze(u, t, h.template, {
|
|
2505
|
+
platform: r,
|
|
2306
2506
|
handlers: Mu,
|
|
2307
|
-
styles:
|
|
2308
|
-
imports: lu
|
|
2507
|
+
styles: m,
|
|
2508
|
+
imports: lu,
|
|
2509
|
+
directives: Pu
|
|
2309
2510
|
}), bu = {
|
|
2310
2511
|
id: u,
|
|
2311
2512
|
name: t,
|
|
2312
2513
|
inject: eu,
|
|
2313
|
-
props:
|
|
2314
|
-
state:
|
|
2315
|
-
watch:
|
|
2316
|
-
lifeCycles:
|
|
2317
|
-
computed:
|
|
2318
|
-
methods:
|
|
2319
|
-
dataSources:
|
|
2320
|
-
slots:
|
|
2321
|
-
emits:
|
|
2322
|
-
expose:
|
|
2323
|
-
nodes:
|
|
2324
|
-
css:
|
|
2325
|
-
},
|
|
2514
|
+
props: v,
|
|
2515
|
+
state: y,
|
|
2516
|
+
watch: b,
|
|
2517
|
+
lifeCycles: S,
|
|
2518
|
+
computed: I,
|
|
2519
|
+
methods: x,
|
|
2520
|
+
dataSources: $u,
|
|
2521
|
+
slots: Hu,
|
|
2522
|
+
emits: R,
|
|
2523
|
+
expose: U,
|
|
2524
|
+
nodes: Uu,
|
|
2525
|
+
css: w
|
|
2526
|
+
}, Wu = Object.keys(I || {}), zu = [
|
|
2326
2527
|
"$el",
|
|
2327
2528
|
"$emit",
|
|
2328
2529
|
"$nextTick",
|
|
@@ -2338,74 +2539,74 @@ async function y0(e) {
|
|
|
2338
2539
|
"state",
|
|
2339
2540
|
"$props",
|
|
2340
2541
|
"props",
|
|
2341
|
-
...Object.keys(
|
|
2342
|
-
], { libs:
|
|
2343
|
-
platform:
|
|
2344
|
-
context:
|
|
2345
|
-
computed:
|
|
2346
|
-
libs:
|
|
2347
|
-
members:
|
|
2542
|
+
...Object.keys(x || {})
|
|
2543
|
+
], { libs: Ju } = d0(lu, s), hu = {
|
|
2544
|
+
platform: r,
|
|
2545
|
+
context: Gu,
|
|
2546
|
+
computed: Wu,
|
|
2547
|
+
libs: Ju,
|
|
2548
|
+
members: zu
|
|
2348
2549
|
};
|
|
2349
|
-
return await
|
|
2550
|
+
return await n0(
|
|
2350
2551
|
bu,
|
|
2351
|
-
async (
|
|
2352
|
-
await
|
|
2353
|
-
if (ou(
|
|
2354
|
-
const
|
|
2355
|
-
|
|
2552
|
+
async (W) => {
|
|
2553
|
+
await o0(W, async (z) => {
|
|
2554
|
+
if (ou(z)) {
|
|
2555
|
+
const Xu = await xu(z.value);
|
|
2556
|
+
z.value = gu(Xu, W.id, hu);
|
|
2356
2557
|
}
|
|
2357
2558
|
});
|
|
2358
2559
|
},
|
|
2359
|
-
async (
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2560
|
+
async (W) => {
|
|
2561
|
+
const z = await xu(W.value);
|
|
2562
|
+
W.value = gu(z, "", hu);
|
|
2362
2563
|
}
|
|
2363
|
-
), new
|
|
2364
|
-
}
|
|
2365
|
-
async function
|
|
2366
|
-
const a = async (
|
|
2367
|
-
if (await u(
|
|
2368
|
-
for (const
|
|
2369
|
-
await a(
|
|
2370
|
-
}, i = async (
|
|
2371
|
-
if (!
|
|
2372
|
-
if (Array.isArray(
|
|
2373
|
-
for (let
|
|
2374
|
-
await i(
|
|
2564
|
+
), new Yu(bu).toDsl();
|
|
2565
|
+
}
|
|
2566
|
+
async function n0(e, u, t) {
|
|
2567
|
+
const a = async (m, w) => {
|
|
2568
|
+
if (await u(m, w), Array.isArray(m.children))
|
|
2569
|
+
for (const A of m.children)
|
|
2570
|
+
await a(A, m);
|
|
2571
|
+
}, i = async (m) => {
|
|
2572
|
+
if (!m || typeof m != "object") return;
|
|
2573
|
+
if (Array.isArray(m)) {
|
|
2574
|
+
for (let A of m)
|
|
2575
|
+
await i(A);
|
|
2375
2576
|
return;
|
|
2376
2577
|
}
|
|
2377
|
-
const
|
|
2378
|
-
for (const
|
|
2379
|
-
ou(
|
|
2578
|
+
const w = Object.values(m);
|
|
2579
|
+
for (const A of w)
|
|
2580
|
+
ou(A) ? await t(A) : await i(A);
|
|
2380
2581
|
}, {
|
|
2381
|
-
state:
|
|
2382
|
-
watch:
|
|
2582
|
+
state: s,
|
|
2583
|
+
watch: r,
|
|
2383
2584
|
computed: n,
|
|
2384
2585
|
props: d,
|
|
2385
|
-
dataSources:
|
|
2386
|
-
methods:
|
|
2387
|
-
lifeCycles:
|
|
2388
|
-
inject:
|
|
2586
|
+
dataSources: c,
|
|
2587
|
+
methods: f,
|
|
2588
|
+
lifeCycles: l,
|
|
2589
|
+
inject: h
|
|
2389
2590
|
} = e;
|
|
2390
2591
|
if (await i({
|
|
2391
|
-
state:
|
|
2392
|
-
watch:
|
|
2592
|
+
state: s,
|
|
2593
|
+
watch: r,
|
|
2393
2594
|
computed: n,
|
|
2394
2595
|
props: d,
|
|
2395
|
-
dataSources:
|
|
2396
|
-
methods:
|
|
2397
|
-
lifeCycles:
|
|
2398
|
-
inject:
|
|
2596
|
+
dataSources: c,
|
|
2597
|
+
methods: f,
|
|
2598
|
+
lifeCycles: l,
|
|
2599
|
+
inject: h
|
|
2399
2600
|
}), Array.isArray(e.nodes))
|
|
2400
|
-
for (const
|
|
2401
|
-
await a(
|
|
2601
|
+
for (const m of e.nodes)
|
|
2602
|
+
await a(m);
|
|
2402
2603
|
}
|
|
2403
|
-
async function
|
|
2604
|
+
async function o0(e, u) {
|
|
2404
2605
|
const t = async (a) => {
|
|
2405
2606
|
if (!a || typeof a != "object") return;
|
|
2406
2607
|
if (Array.isArray(a)) {
|
|
2407
|
-
for (let
|
|
2408
|
-
await u(
|
|
2608
|
+
for (let s of a)
|
|
2609
|
+
await u(s), await t(s);
|
|
2409
2610
|
return;
|
|
2410
2611
|
}
|
|
2411
2612
|
if (ou(a)) {
|
|
@@ -2413,37 +2614,37 @@ async function c0(e, u) {
|
|
|
2413
2614
|
return;
|
|
2414
2615
|
}
|
|
2415
2616
|
const i = Object.values(a);
|
|
2416
|
-
for (const
|
|
2417
|
-
await u(
|
|
2617
|
+
for (const s of i)
|
|
2618
|
+
await u(s), await t(s);
|
|
2418
2619
|
};
|
|
2419
2620
|
await t(e);
|
|
2420
2621
|
}
|
|
2421
|
-
function
|
|
2622
|
+
function d0(e = [], u = []) {
|
|
2422
2623
|
const t = {}, a = u.reduce(
|
|
2423
|
-
(i,
|
|
2624
|
+
(i, s) => (i[s.package] = s.library, i),
|
|
2424
2625
|
{}
|
|
2425
2626
|
);
|
|
2426
|
-
for (const { from: i, imports:
|
|
2427
|
-
if (Array.isArray(
|
|
2428
|
-
|
|
2627
|
+
for (const { from: i, imports: s } of e)
|
|
2628
|
+
if (Array.isArray(s))
|
|
2629
|
+
s.forEach((r) => {
|
|
2429
2630
|
const n = a[i];
|
|
2430
|
-
n && (t[
|
|
2631
|
+
n && (t[r] = n);
|
|
2431
2632
|
});
|
|
2432
2633
|
else {
|
|
2433
|
-
const
|
|
2434
|
-
|
|
2634
|
+
const r = a[i];
|
|
2635
|
+
r && (t[s] = r);
|
|
2435
2636
|
}
|
|
2436
2637
|
return {
|
|
2437
2638
|
libs: t
|
|
2438
2639
|
};
|
|
2439
2640
|
}
|
|
2440
2641
|
export {
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2642
|
+
c0 as AutoFixer,
|
|
2643
|
+
a0 as ComponentValidator,
|
|
2644
|
+
I0 as VTJ_PARSER_VERSION,
|
|
2444
2645
|
Au as htmlToNodes,
|
|
2445
|
-
|
|
2446
|
-
|
|
2646
|
+
E0 as parseUniApp,
|
|
2647
|
+
w0 as parseVue,
|
|
2447
2648
|
gu as patchCode,
|
|
2448
|
-
|
|
2649
|
+
$ as replacer
|
|
2449
2650
|
};
|