@vtj/parser 0.16.25 → 0.16.27
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 +14 -14
- package/dist/index.mjs +406 -381
- package/package.json +3 -3
- package/types/version.d.ts +2 -2
- package/types/vue/replacer.d.ts +12 -0
- package/types/vue/utils.d.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { parse as Vu, compileTemplate as qu } from "@vue/compiler-sfc";
|
|
2
|
-
import { parse as
|
|
2
|
+
import { parse as ee } 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 te } from "@vtj/core";
|
|
6
6
|
import { tsFormatter as xu } from "@vtj/coder";
|
|
7
7
|
import { NodeTypes as x } from "@vue/compiler-core";
|
|
8
|
-
import { upperFirstCamelCase as
|
|
9
|
-
import
|
|
10
|
-
import * as
|
|
8
|
+
import { upperFirstCamelCase as ae, unBase64 as ie, uid as su } from "@vtj/base";
|
|
9
|
+
import se from "postcss";
|
|
10
|
+
import * as re from "sass";
|
|
11
11
|
import * as V 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.16.
|
|
16
|
+
* @version 0.16.27
|
|
17
17
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
19
|
+
const T0 = "0.16.27";
|
|
20
20
|
function D(e) {
|
|
21
21
|
const { descriptor: u, errors: t } = Vu(e), a = u.template?.content || "", i = (u.scriptSetup || u.script)?.content || "", s = u.styles.map((r) => r.content);
|
|
22
22
|
return {
|
|
@@ -26,13 +26,13 @@ function D(e) {
|
|
|
26
26
|
errors: t
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
29
|
+
function z(e) {
|
|
30
|
+
return ee(e, { sourceType: "module", plugins: ["typescript"] });
|
|
31
31
|
}
|
|
32
32
|
function eu(e, u) {
|
|
33
33
|
return (pu.default || pu)(e, u);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function P(e) {
|
|
36
36
|
try {
|
|
37
37
|
return (mu.default || mu)(e, {
|
|
38
38
|
comments: !1,
|
|
@@ -49,24 +49,24 @@ function O(e) {
|
|
|
49
49
|
function ou(e) {
|
|
50
50
|
return !!e && e.type === "JSExpression";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ce(e) {
|
|
53
53
|
return typeof e == "object" && !!e && e.type === "JSFunction";
|
|
54
54
|
}
|
|
55
55
|
function du(e) {
|
|
56
|
-
return !!ou(e) || !!
|
|
56
|
+
return !!ou(e) || !!ce(e);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function ne(e) {
|
|
59
59
|
return !!e && !ou(e) && typeof e != "string";
|
|
60
60
|
}
|
|
61
61
|
function Ru(e, u) {
|
|
62
62
|
try {
|
|
63
|
-
const t =
|
|
64
|
-
return eu(t, u),
|
|
63
|
+
const t = z(e);
|
|
64
|
+
return eu(t, u), P(t) || "";
|
|
65
65
|
} catch {
|
|
66
66
|
return "";
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function oe(e, u) {
|
|
70
70
|
const t = [];
|
|
71
71
|
try {
|
|
72
72
|
const { descriptor: a, errors: i } = Vu(e);
|
|
@@ -95,7 +95,7 @@ function ne(e, u) {
|
|
|
95
95
|
const s = (a.scriptSetup || a.script)?.content;
|
|
96
96
|
if (s)
|
|
97
97
|
try {
|
|
98
|
-
|
|
98
|
+
z(s);
|
|
99
99
|
} catch (r) {
|
|
100
100
|
t.push(`脚本语法错误: ${r.message}`);
|
|
101
101
|
}
|
|
@@ -104,13 +104,13 @@ function ne(e, u) {
|
|
|
104
104
|
}
|
|
105
105
|
return t.length > 0 ? t : null;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
const u = D(e), t =
|
|
107
|
+
function N0(e) {
|
|
108
|
+
const u = D(e), t = z(u.script), a = {};
|
|
109
109
|
return u.styles && (a.css = u.styles[0] || ""), eu(t, {
|
|
110
110
|
CallExpression(i) {
|
|
111
111
|
const s = i.node.callee?.name;
|
|
112
112
|
if (s) {
|
|
113
|
-
const r =
|
|
113
|
+
const r = P(i.node.arguments[0]);
|
|
114
114
|
r && (a[s] = {
|
|
115
115
|
type: "JSFunction",
|
|
116
116
|
value: r
|
|
@@ -119,7 +119,7 @@ function T0(e) {
|
|
|
119
119
|
}
|
|
120
120
|
}), a;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function de(e, u, t, a) {
|
|
123
123
|
if (a.match(/function\s*\(\s*$/))
|
|
124
124
|
return !0;
|
|
125
125
|
const s = e.slice(u + t.length);
|
|
@@ -127,9 +127,9 @@ function oe(e, u, t, a) {
|
|
|
127
127
|
return !0;
|
|
128
128
|
const n = a.endsWith("(") || a.match(/\(\s*$/), o = a.endsWith(",") || a.match(/,\s*$/);
|
|
129
129
|
if (n || o) {
|
|
130
|
-
let
|
|
130
|
+
let l = -1, m = "";
|
|
131
131
|
if (n)
|
|
132
|
-
|
|
132
|
+
l = a.length - 1;
|
|
133
133
|
else if (o) {
|
|
134
134
|
let y = 0, b = !1, S = "";
|
|
135
135
|
for (let I = a.length - 1; I >= 0; I--) {
|
|
@@ -145,7 +145,7 @@ function oe(e, u, t, a) {
|
|
|
145
145
|
y++;
|
|
146
146
|
else if (g === "(") {
|
|
147
147
|
if (y === 0) {
|
|
148
|
-
|
|
148
|
+
l = I;
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
151
|
y--;
|
|
@@ -153,8 +153,10 @@ function oe(e, u, t, a) {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
if (
|
|
157
|
-
|
|
156
|
+
if (o && l < 0)
|
|
157
|
+
return !1;
|
|
158
|
+
if (l >= 0) {
|
|
159
|
+
let y = l - 1;
|
|
158
160
|
for (; y >= 0 && /\s/.test(a.charAt(y)); )
|
|
159
161
|
y--;
|
|
160
162
|
if (y >= 0) {
|
|
@@ -188,7 +190,7 @@ function oe(e, u, t, a) {
|
|
|
188
190
|
}
|
|
189
191
|
const c = u > 0 ? e.charAt(u - 1) : "";
|
|
190
192
|
if (!/[a-zA-Z0-9_$@-]/.test(c) && s.includes("=>")) {
|
|
191
|
-
const
|
|
193
|
+
const l = s.indexOf("=>"), m = s.slice(0, l).trim();
|
|
192
194
|
if (m === "" || m === ",")
|
|
193
195
|
return !0;
|
|
194
196
|
}
|
|
@@ -199,14 +201,31 @@ function gu(e, u, t) {
|
|
|
199
201
|
for (; a >= 0 && /\s/.test(e[a]); ) a--;
|
|
200
202
|
if (a < 0) return !1;
|
|
201
203
|
const i = e[a];
|
|
202
|
-
if (i !== "{" && i !== ",") return !1;
|
|
204
|
+
if (i !== "{" && i !== "," || i === "{" && a > 0 && e[a - 1] === "$") return !1;
|
|
205
|
+
if (i === ",") {
|
|
206
|
+
let n = 0, o = a - 1;
|
|
207
|
+
for (; o >= 0; ) {
|
|
208
|
+
const c = e[o];
|
|
209
|
+
if (c === "}") n++;
|
|
210
|
+
else if (c === "{") {
|
|
211
|
+
if (n === 0) break;
|
|
212
|
+
n--;
|
|
213
|
+
} else if (c === "]" || c === ")")
|
|
214
|
+
n++;
|
|
215
|
+
else if (c === "[" || c === "(") {
|
|
216
|
+
if (n === 0) return !1;
|
|
217
|
+
n--;
|
|
218
|
+
}
|
|
219
|
+
o--;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
203
222
|
let s = u + t.length;
|
|
204
223
|
for (; s < e.length && /\s/.test(e[s]); ) s++;
|
|
205
224
|
if (s >= e.length) return !1;
|
|
206
225
|
const r = e[s];
|
|
207
226
|
return r === "," || r === "}";
|
|
208
227
|
}
|
|
209
|
-
function
|
|
228
|
+
function B(e, u, t) {
|
|
210
229
|
if (!e.includes(u)) return e;
|
|
211
230
|
const a = [];
|
|
212
231
|
let i = 0;
|
|
@@ -220,13 +239,13 @@ function M(e, u, t) {
|
|
|
220
239
|
// 正则表达式括号深度(用于处理字符类)
|
|
221
240
|
}, r = /[a-zA-Z0-9_$@-]/;
|
|
222
241
|
function n(c) {
|
|
223
|
-
for (let
|
|
224
|
-
const
|
|
242
|
+
for (let d = 0; d < c.length; d++) {
|
|
243
|
+
const l = c[d];
|
|
225
244
|
if (!s.inString && !s.inRegex) {
|
|
226
|
-
if (
|
|
227
|
-
s.inString = !0, s.quoteChar =
|
|
228
|
-
else if (
|
|
229
|
-
let m =
|
|
245
|
+
if (l === "'" || l === '"' || l === "`")
|
|
246
|
+
s.inString = !0, s.quoteChar = l;
|
|
247
|
+
else if (l === "/") {
|
|
248
|
+
let m = d - 1;
|
|
230
249
|
for (; m >= 0 && /\s/.test(c[m]); )
|
|
231
250
|
m--;
|
|
232
251
|
if (m < 0)
|
|
@@ -275,7 +294,7 @@ function M(e, u, t) {
|
|
|
275
294
|
s.inRegex = !0, s.regexDepth = 0;
|
|
276
295
|
}
|
|
277
296
|
}
|
|
278
|
-
} else s.inString ?
|
|
297
|
+
} else s.inString ? l === s.quoteChar ? s.quoteChar === "`" && s.inTemplateExpr > 0 || (s.inString = !1, s.quoteChar = "", s.inTemplateExpr = 0) : s.quoteChar === "`" && (l === "$" && d + 1 < c.length && c[d + 1] === "{" ? (s.inTemplateExpr++, d++) : l === "}" && s.inTemplateExpr > 0 && s.inTemplateExpr--) : s.inRegex && (l === "[" ? s.regexDepth++ : l === "]" && s.regexDepth > 0 ? s.regexDepth-- : l === "/" && s.regexDepth === 0 && (d === 0 || c[d - 1] !== "\\") && (s.inRegex = !1, s.regexDepth = 0));
|
|
279
298
|
}
|
|
280
299
|
}
|
|
281
300
|
function o(c) {
|
|
@@ -290,11 +309,11 @@ function M(e, u, t) {
|
|
|
290
309
|
}
|
|
291
310
|
return !1;
|
|
292
311
|
}
|
|
293
|
-
const
|
|
294
|
-
if (r.test(
|
|
312
|
+
const d = c > 0 ? e.charAt(c - 1) : "", l = c + u.length < e.length ? e.charAt(c + u.length) : "";
|
|
313
|
+
if (r.test(d) || r.test(l))
|
|
295
314
|
return !1;
|
|
296
315
|
const m = e.slice(0, c);
|
|
297
|
-
return m.match(/(const|let|var|function)\s+$/) ? !1 : m.match(/\{\s*$/) &&
|
|
316
|
+
return m.match(/(const|let|var|function)\s+$/) ? !1 : m.match(/\{\s*$/) && !/\$\{\s*$/.test(m) ? !!(c > 0 && e.charAt(c - 1) === "[" || gu(e, c, u)) : de(
|
|
298
317
|
e,
|
|
299
318
|
c,
|
|
300
319
|
u,
|
|
@@ -304,8 +323,8 @@ function M(e, u, t) {
|
|
|
304
323
|
for (; i < e.length; ) {
|
|
305
324
|
const c = e.indexOf(u, i);
|
|
306
325
|
if (c === -1) break;
|
|
307
|
-
const
|
|
308
|
-
a.push(
|
|
326
|
+
const d = e.slice(i, c);
|
|
327
|
+
a.push(d), n(d), i = c, o(i) ? gu(e, i, u) ? a.push(u + ": " + t) : a.push(t) : a.push(u), i += u.length;
|
|
309
328
|
}
|
|
310
329
|
return i < e.length && a.push(e.slice(i)), a.join("");
|
|
311
330
|
}
|
|
@@ -315,20 +334,23 @@ function yu(e, u, t) {
|
|
|
315
334
|
computed: i = [],
|
|
316
335
|
libs: s = {},
|
|
317
336
|
members: r = [],
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
e = e
|
|
337
|
+
props: n = [],
|
|
338
|
+
platform: o
|
|
339
|
+
} = t || {}, c = Array.from(a[u || ""] || /* @__PURE__ */ new Set());
|
|
340
|
+
if (c)
|
|
341
|
+
for (const d of c)
|
|
342
|
+
e = B(e, d, `this.context.${d}`);
|
|
343
|
+
for (const d of i)
|
|
344
|
+
e = B(e, d, `this.${d}.value`), e = B(e, `this.${d}`, `this.${d}.value`), e = B(e, `this.${d}.value.value`, `this.${d}.value`);
|
|
345
|
+
for (const d of n)
|
|
346
|
+
e = B(e, d, `this.props.${d}`), e = B(e, `this.${d}`, `this.props.${d}`);
|
|
347
|
+
for (const [d, l] of Object.entries(s))
|
|
348
|
+
e = B(e, d, `this.$libs.${l}.${d}`), e = B(e, `this.${d}`, `this.$libs.${l}.${d}`);
|
|
349
|
+
for (const d of r)
|
|
350
|
+
e = B(e, d, `this.${d}`);
|
|
351
|
+
if (o === "uniapp") {
|
|
352
|
+
const d = /\suni\./g;
|
|
353
|
+
e = e.replace(d, "this.$libs.UniH5.uni.");
|
|
332
354
|
}
|
|
333
355
|
return e = e.replace(/_ctx\./g, "this."), e = e.replace(/this\.this\./g, "this."), e;
|
|
334
356
|
}
|
|
@@ -344,7 +366,7 @@ function fu(e) {
|
|
|
344
366
|
value: e
|
|
345
367
|
};
|
|
346
368
|
}
|
|
347
|
-
const
|
|
369
|
+
const fe = [
|
|
348
370
|
"beforeCreate",
|
|
349
371
|
"created",
|
|
350
372
|
"beforeMount",
|
|
@@ -358,16 +380,16 @@ const de = [
|
|
|
358
380
|
"renderTriggered",
|
|
359
381
|
"activated",
|
|
360
382
|
"deactivated"
|
|
361
|
-
],
|
|
383
|
+
], le = "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(
|
|
362
384
|
","
|
|
363
|
-
),
|
|
385
|
+
), be = "component,slot,template".split(","), he = "view,swiper,progress,icon,text,button,checkbox,editor,form,input,label,picker,radio,slider,switch,textarea,audio,camera,image,video,map,canvas".split(
|
|
364
386
|
","
|
|
365
387
|
);
|
|
366
|
-
function
|
|
367
|
-
return u === "uniapp" &&
|
|
388
|
+
function pe(e, u = "web") {
|
|
389
|
+
return u === "uniapp" && he.includes(e);
|
|
368
390
|
}
|
|
369
391
|
function ju(e, u = "web") {
|
|
370
|
-
return (
|
|
392
|
+
return (le.includes(e) || be.includes(e)) && !pe(e, u) ? e : ae(e);
|
|
371
393
|
}
|
|
372
394
|
function Du(e) {
|
|
373
395
|
return e.replace(/\s+/g, " ").split(";").reduce((t, a) => {
|
|
@@ -375,29 +397,29 @@ function Du(e) {
|
|
|
375
397
|
return i && s && (t[i] = s), t;
|
|
376
398
|
}, {});
|
|
377
399
|
}
|
|
378
|
-
function
|
|
400
|
+
function me(e, u, t) {
|
|
379
401
|
if (t === "ObjectExpression")
|
|
380
402
|
return `(Object.assign({${e.split(" ").map((i) => `'${i}': true`).join(",")}}, ${u}))`;
|
|
381
403
|
if (t === "ArrayExpression")
|
|
382
404
|
return `([${e.split(" ").map((i) => `'${i}'`).join(",")}].concat(${u}))`;
|
|
383
405
|
}
|
|
384
|
-
function
|
|
406
|
+
function xe(e = "") {
|
|
385
407
|
const t = e.trim().match(/DataSource:\s*([^\n=]+={0,2})/)?.[1] || "";
|
|
386
408
|
try {
|
|
387
|
-
return t ? JSON.parse(
|
|
409
|
+
return t ? JSON.parse(ie(t)) : null;
|
|
388
410
|
} catch (a) {
|
|
389
411
|
return console.warn("extractDataSource fail", a), null;
|
|
390
412
|
}
|
|
391
413
|
}
|
|
392
|
-
const
|
|
414
|
+
const ge = /* @__PURE__ */ new Uint16Array(
|
|
393
415
|
// prettier-ignore
|
|
394
416
|
/* @__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))
|
|
395
|
-
),
|
|
417
|
+
), ye = /* @__PURE__ */ new Uint16Array(
|
|
396
418
|
// prettier-ignore
|
|
397
419
|
/* @__PURE__ */ "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))
|
|
398
420
|
);
|
|
399
421
|
var au;
|
|
400
|
-
const
|
|
422
|
+
const Se = /* @__PURE__ */ new Map([
|
|
401
423
|
[0, 65533],
|
|
402
424
|
// C1 Unicode control character reference replacements
|
|
403
425
|
[128, 8364],
|
|
@@ -434,30 +456,30 @@ const ye = /* @__PURE__ */ new Map([
|
|
|
434
456
|
return e > 65535 && (e -= 65536, u += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), u += String.fromCharCode(e), u;
|
|
435
457
|
}
|
|
436
458
|
);
|
|
437
|
-
function
|
|
459
|
+
function Ie(e) {
|
|
438
460
|
var u;
|
|
439
|
-
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u =
|
|
461
|
+
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = Se.get(e)) !== null && u !== void 0 ? u : e;
|
|
440
462
|
}
|
|
441
463
|
var k;
|
|
442
464
|
(function(e) {
|
|
443
465
|
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";
|
|
444
466
|
})(k || (k = {}));
|
|
445
|
-
const
|
|
446
|
-
var
|
|
467
|
+
const Ee = 32;
|
|
468
|
+
var M;
|
|
447
469
|
(function(e) {
|
|
448
470
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
449
|
-
})(
|
|
471
|
+
})(M || (M = {}));
|
|
450
472
|
function ru(e) {
|
|
451
473
|
return e >= k.ZERO && e <= k.NINE;
|
|
452
474
|
}
|
|
453
|
-
function
|
|
475
|
+
function ve(e) {
|
|
454
476
|
return e >= k.UPPER_A && e <= k.UPPER_F || e >= k.LOWER_A && e <= k.LOWER_F;
|
|
455
477
|
}
|
|
456
|
-
function
|
|
478
|
+
function we(e) {
|
|
457
479
|
return e >= k.UPPER_A && e <= k.UPPER_Z || e >= k.LOWER_A && e <= k.LOWER_Z || ru(e);
|
|
458
480
|
}
|
|
459
|
-
function
|
|
460
|
-
return e === k.EQUALS ||
|
|
481
|
+
function Ae(e) {
|
|
482
|
+
return e === k.EQUALS || we(e);
|
|
461
483
|
}
|
|
462
484
|
var N;
|
|
463
485
|
(function(e) {
|
|
@@ -467,7 +489,7 @@ var C;
|
|
|
467
489
|
(function(e) {
|
|
468
490
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
469
491
|
})(C || (C = {}));
|
|
470
|
-
class
|
|
492
|
+
class Te {
|
|
471
493
|
constructor(u, t, a) {
|
|
472
494
|
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 = C.Strict;
|
|
473
495
|
}
|
|
@@ -510,7 +532,7 @@ class Ae {
|
|
|
510
532
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
511
533
|
*/
|
|
512
534
|
stateNumericStart(u, t) {
|
|
513
|
-
return t >= u.length ? -1 : (u.charCodeAt(t) |
|
|
535
|
+
return t >= u.length ? -1 : (u.charCodeAt(t) | Ee) === k.LOWER_X ? (this.state = N.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = N.NumericDecimal, this.stateNumericDecimal(u, t));
|
|
514
536
|
}
|
|
515
537
|
addToNumericResult(u, t, a, i) {
|
|
516
538
|
if (t !== a) {
|
|
@@ -531,7 +553,7 @@ class Ae {
|
|
|
531
553
|
const a = t;
|
|
532
554
|
for (; t < u.length; ) {
|
|
533
555
|
const i = u.charCodeAt(t);
|
|
534
|
-
if (ru(i) ||
|
|
556
|
+
if (ru(i) || ve(i))
|
|
535
557
|
t += 1;
|
|
536
558
|
else
|
|
537
559
|
return this.addToNumericResult(u, a, t, 16), this.emitNumericEntity(i, 3);
|
|
@@ -579,7 +601,7 @@ class Ae {
|
|
|
579
601
|
this.consumed += 1;
|
|
580
602
|
else if (this.decodeMode === C.Strict)
|
|
581
603
|
return 0;
|
|
582
|
-
return this.emitCodePoint(
|
|
604
|
+
return this.emitCodePoint(Ie(this.result), this.consumed), this.errors && (u !== k.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
583
605
|
}
|
|
584
606
|
/**
|
|
585
607
|
* Parses a named entity.
|
|
@@ -592,15 +614,15 @@ class Ae {
|
|
|
592
614
|
*/
|
|
593
615
|
stateNamedEntity(u, t) {
|
|
594
616
|
const { decodeTree: a } = this;
|
|
595
|
-
let i = a[this.treeIndex], s = (i &
|
|
617
|
+
let i = a[this.treeIndex], s = (i & M.VALUE_LENGTH) >> 14;
|
|
596
618
|
for (; t < u.length; t++, this.excess++) {
|
|
597
619
|
const r = u.charCodeAt(t);
|
|
598
|
-
if (this.treeIndex =
|
|
620
|
+
if (this.treeIndex = Ne(a, i, this.treeIndex + Math.max(1, s), r), this.treeIndex < 0)
|
|
599
621
|
return this.result === 0 || // If we are parsing an attribute
|
|
600
622
|
this.decodeMode === C.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
601
623
|
(s === 0 || // And there should be no invalid characters.
|
|
602
|
-
|
|
603
|
-
if (i = a[this.treeIndex], s = (i &
|
|
624
|
+
Ae(r)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
625
|
+
if (i = a[this.treeIndex], s = (i & M.VALUE_LENGTH) >> 14, s !== 0) {
|
|
604
626
|
if (r === k.SEMI)
|
|
605
627
|
return this.emitNamedEntityData(this.treeIndex, s, this.consumed + this.excess);
|
|
606
628
|
this.decodeMode !== C.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
@@ -615,7 +637,7 @@ class Ae {
|
|
|
615
637
|
*/
|
|
616
638
|
emitNotTerminatedNamedEntity() {
|
|
617
639
|
var u;
|
|
618
|
-
const { result: t, decodeTree: a } = this, i = (a[t] &
|
|
640
|
+
const { result: t, decodeTree: a } = this, i = (a[t] & M.VALUE_LENGTH) >> 14;
|
|
619
641
|
return this.emitNamedEntityData(t, i, this.consumed), (u = this.errors) === null || u === void 0 || u.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
620
642
|
}
|
|
621
643
|
/**
|
|
@@ -629,7 +651,7 @@ class Ae {
|
|
|
629
651
|
*/
|
|
630
652
|
emitNamedEntityData(u, t, a) {
|
|
631
653
|
const { decodeTree: i } = this;
|
|
632
|
-
return this.emitCodePoint(t === 1 ? i[u] &
|
|
654
|
+
return this.emitCodePoint(t === 1 ? i[u] & ~M.VALUE_LENGTH : i[u + 1], a), t === 3 && this.emitCodePoint(i[u + 2], a), a;
|
|
633
655
|
}
|
|
634
656
|
/**
|
|
635
657
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -655,8 +677,8 @@ class Ae {
|
|
|
655
677
|
}
|
|
656
678
|
}
|
|
657
679
|
}
|
|
658
|
-
function
|
|
659
|
-
const i = (u &
|
|
680
|
+
function Ne(e, u, t, a) {
|
|
681
|
+
const i = (u & M.BRANCH_LENGTH) >> 7, s = u & M.JUMP_TABLE;
|
|
660
682
|
if (i === 0)
|
|
661
683
|
return s !== 0 && a === s ? t : -1;
|
|
662
684
|
if (s) {
|
|
@@ -679,17 +701,17 @@ var h;
|
|
|
679
701
|
(function(e) {
|
|
680
702
|
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";
|
|
681
703
|
})(h || (h = {}));
|
|
682
|
-
var
|
|
704
|
+
var f;
|
|
683
705
|
(function(e) {
|
|
684
706
|
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";
|
|
685
|
-
})(
|
|
686
|
-
function
|
|
707
|
+
})(f || (f = {}));
|
|
708
|
+
function F(e) {
|
|
687
709
|
return e === h.Space || e === h.NewLine || e === h.Tab || e === h.FormFeed || e === h.CarriageReturn;
|
|
688
710
|
}
|
|
689
711
|
function Q(e) {
|
|
690
|
-
return e === h.Slash || e === h.Gt ||
|
|
712
|
+
return e === h.Slash || e === h.Gt || F(e);
|
|
691
713
|
}
|
|
692
|
-
function
|
|
714
|
+
function ke(e) {
|
|
693
715
|
return e >= h.LowerA && e <= h.LowerZ || e >= h.UpperA && e <= h.UpperZ;
|
|
694
716
|
}
|
|
695
717
|
var L;
|
|
@@ -725,12 +747,12 @@ const T = {
|
|
|
725
747
|
XmpEnd: new Uint8Array([60, 47, 120, 109, 112])
|
|
726
748
|
// `</xmp`
|
|
727
749
|
};
|
|
728
|
-
class
|
|
750
|
+
class Ve {
|
|
729
751
|
constructor({ xmlMode: u = !1, decodeEntities: t = !0 }, a) {
|
|
730
|
-
this.cbs = a, this.state =
|
|
752
|
+
this.cbs = a, this.state = f.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = f.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 Te(u ? ye : ge, (i, s) => this.emitCodePoint(i, s));
|
|
731
753
|
}
|
|
732
754
|
reset() {
|
|
733
|
-
this.state =
|
|
755
|
+
this.state = f.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = f.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0;
|
|
734
756
|
}
|
|
735
757
|
write(u) {
|
|
736
758
|
this.offset += this.buffer.length, this.buffer = u, this.parse();
|
|
@@ -745,7 +767,7 @@ class ke {
|
|
|
745
767
|
this.running = !0, this.index < this.buffer.length + this.offset && this.parse();
|
|
746
768
|
}
|
|
747
769
|
stateText(u) {
|
|
748
|
-
u === h.Lt || !this.decodeEntities && this.fastForwardTo(h.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state =
|
|
770
|
+
u === h.Lt || !this.decodeEntities && this.fastForwardTo(h.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = f.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && u === h.Amp && this.startEntity();
|
|
749
771
|
}
|
|
750
772
|
stateSpecialStartSequence(u) {
|
|
751
773
|
const t = this.sequenceIndex === this.currentSequence.length;
|
|
@@ -761,12 +783,12 @@ class ke {
|
|
|
761
783
|
this.sequenceIndex++;
|
|
762
784
|
return;
|
|
763
785
|
}
|
|
764
|
-
this.sequenceIndex = 0, this.state =
|
|
786
|
+
this.sequenceIndex = 0, this.state = f.InTagName, this.stateInTagName(u);
|
|
765
787
|
}
|
|
766
788
|
/** Look for an end tag. For <title> tags, also decode entities. */
|
|
767
789
|
stateInSpecialTag(u) {
|
|
768
790
|
if (this.sequenceIndex === this.currentSequence.length) {
|
|
769
|
-
if (u === h.Gt ||
|
|
791
|
+
if (u === h.Gt || F(u)) {
|
|
770
792
|
const t = this.index - this.currentSequence.length;
|
|
771
793
|
if (this.sectionStart < t) {
|
|
772
794
|
const a = this.index;
|
|
@@ -780,7 +802,7 @@ class ke {
|
|
|
780
802
|
(u | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === T.TitleEnd ? this.decodeEntities && u === h.Amp && this.startEntity() : this.fastForwardTo(h.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(u === h.Lt);
|
|
781
803
|
}
|
|
782
804
|
stateCDATASequence(u) {
|
|
783
|
-
u === T.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === T.Cdata.length && (this.state =
|
|
805
|
+
u === T.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === T.Cdata.length && (this.state = f.InCommentLike, this.currentSequence = T.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = f.InDeclaration, this.stateInDeclaration(u));
|
|
784
806
|
}
|
|
785
807
|
/**
|
|
786
808
|
* When we wait for one specific character, we can speed things up
|
|
@@ -803,7 +825,7 @@ class ke {
|
|
|
803
825
|
* - All characters but the start character of the sequence can be skipped.
|
|
804
826
|
*/
|
|
805
827
|
stateInCommentLike(u) {
|
|
806
|
-
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 =
|
|
828
|
+
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 = f.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : u !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
|
|
807
829
|
}
|
|
808
830
|
/**
|
|
809
831
|
* HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
|
|
@@ -812,50 +834,50 @@ class ke {
|
|
|
812
834
|
* We allow anything that wouldn't end the tag.
|
|
813
835
|
*/
|
|
814
836
|
isTagStartChar(u) {
|
|
815
|
-
return this.xmlMode ? !Q(u) :
|
|
837
|
+
return this.xmlMode ? !Q(u) : ke(u);
|
|
816
838
|
}
|
|
817
839
|
startSpecial(u, t) {
|
|
818
|
-
this.isSpecial = !0, this.currentSequence = u, this.sequenceIndex = t, this.state =
|
|
840
|
+
this.isSpecial = !0, this.currentSequence = u, this.sequenceIndex = t, this.state = f.SpecialStartSequence;
|
|
819
841
|
}
|
|
820
842
|
stateBeforeTagName(u) {
|
|
821
843
|
if (u === h.ExclamationMark)
|
|
822
|
-
this.state =
|
|
844
|
+
this.state = f.BeforeDeclaration, this.sectionStart = this.index + 1;
|
|
823
845
|
else if (u === h.Questionmark)
|
|
824
|
-
this.state =
|
|
846
|
+
this.state = f.InProcessingInstruction, this.sectionStart = this.index + 1;
|
|
825
847
|
else if (this.isTagStartChar(u)) {
|
|
826
848
|
const t = u | 32;
|
|
827
|
-
this.sectionStart = this.index, this.xmlMode ? this.state =
|
|
828
|
-
} else u === h.Slash ? this.state =
|
|
849
|
+
this.sectionStart = this.index, this.xmlMode ? this.state = f.InTagName : t === T.ScriptEnd[2] ? this.state = f.BeforeSpecialS : t === T.TitleEnd[2] || t === T.XmpEnd[2] ? this.state = f.BeforeSpecialT : this.state = f.InTagName;
|
|
850
|
+
} else u === h.Slash ? this.state = f.BeforeClosingTagName : (this.state = f.Text, this.stateText(u));
|
|
829
851
|
}
|
|
830
852
|
stateInTagName(u) {
|
|
831
|
-
Q(u) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state =
|
|
853
|
+
Q(u) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(u));
|
|
832
854
|
}
|
|
833
855
|
stateBeforeClosingTagName(u) {
|
|
834
|
-
|
|
856
|
+
F(u) || (u === h.Gt ? this.state = f.Text : (this.state = this.isTagStartChar(u) ? f.InClosingTagName : f.InSpecialComment, this.sectionStart = this.index));
|
|
835
857
|
}
|
|
836
858
|
stateInClosingTagName(u) {
|
|
837
|
-
(u === h.Gt ||
|
|
859
|
+
(u === h.Gt || F(u)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = f.AfterClosingTagName, this.stateAfterClosingTagName(u));
|
|
838
860
|
}
|
|
839
861
|
stateAfterClosingTagName(u) {
|
|
840
|
-
(u === h.Gt || this.fastForwardTo(h.Gt)) && (this.state =
|
|
862
|
+
(u === h.Gt || this.fastForwardTo(h.Gt)) && (this.state = f.Text, this.sectionStart = this.index + 1);
|
|
841
863
|
}
|
|
842
864
|
stateBeforeAttributeName(u) {
|
|
843
|
-
u === h.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state =
|
|
865
|
+
u === h.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = f.InSpecialTag, this.sequenceIndex = 0) : this.state = f.Text, this.sectionStart = this.index + 1) : u === h.Slash ? this.state = f.InSelfClosingTag : F(u) || (this.state = f.InAttributeName, this.sectionStart = this.index);
|
|
844
866
|
}
|
|
845
867
|
stateInSelfClosingTag(u) {
|
|
846
|
-
u === h.Gt ? (this.cbs.onselfclosingtag(this.index), this.state =
|
|
868
|
+
u === h.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = f.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : F(u) || (this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(u));
|
|
847
869
|
}
|
|
848
870
|
stateInAttributeName(u) {
|
|
849
|
-
(u === h.Eq || Q(u)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state =
|
|
871
|
+
(u === h.Eq || Q(u)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state = f.AfterAttributeName, this.stateAfterAttributeName(u));
|
|
850
872
|
}
|
|
851
873
|
stateAfterAttributeName(u) {
|
|
852
|
-
u === h.Eq ? this.state =
|
|
874
|
+
u === h.Eq ? this.state = f.BeforeAttributeValue : u === h.Slash || u === h.Gt ? (this.cbs.onattribend(L.NoValue, this.sectionStart), this.sectionStart = -1, this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(u)) : F(u) || (this.cbs.onattribend(L.NoValue, this.sectionStart), this.state = f.InAttributeName, this.sectionStart = this.index);
|
|
853
875
|
}
|
|
854
876
|
stateBeforeAttributeValue(u) {
|
|
855
|
-
u === h.DoubleQuote ? (this.state =
|
|
877
|
+
u === h.DoubleQuote ? (this.state = f.InAttributeValueDq, this.sectionStart = this.index + 1) : u === h.SingleQuote ? (this.state = f.InAttributeValueSq, this.sectionStart = this.index + 1) : F(u) || (this.sectionStart = this.index, this.state = f.InAttributeValueNq, this.stateInAttributeValueNoQuotes(u));
|
|
856
878
|
}
|
|
857
879
|
handleInAttributeValue(u, t) {
|
|
858
|
-
u === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === h.DoubleQuote ? L.Double : L.Single, this.index + 1), this.state =
|
|
880
|
+
u === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === h.DoubleQuote ? L.Double : L.Single, this.index + 1), this.state = f.BeforeAttributeName) : this.decodeEntities && u === h.Amp && this.startEntity();
|
|
859
881
|
}
|
|
860
882
|
stateInAttributeValueDoubleQuotes(u) {
|
|
861
883
|
this.handleInAttributeValue(u, h.DoubleQuote);
|
|
@@ -864,26 +886,26 @@ class ke {
|
|
|
864
886
|
this.handleInAttributeValue(u, h.SingleQuote);
|
|
865
887
|
}
|
|
866
888
|
stateInAttributeValueNoQuotes(u) {
|
|
867
|
-
|
|
889
|
+
F(u) || u === h.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(L.Unquoted, this.index), this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(u)) : this.decodeEntities && u === h.Amp && this.startEntity();
|
|
868
890
|
}
|
|
869
891
|
stateBeforeDeclaration(u) {
|
|
870
|
-
u === h.OpeningSquareBracket ? (this.state =
|
|
892
|
+
u === h.OpeningSquareBracket ? (this.state = f.CDATASequence, this.sequenceIndex = 0) : this.state = u === h.Dash ? f.BeforeComment : f.InDeclaration;
|
|
871
893
|
}
|
|
872
894
|
stateInDeclaration(u) {
|
|
873
|
-
(u === h.Gt || this.fastForwardTo(h.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state =
|
|
895
|
+
(u === h.Gt || this.fastForwardTo(h.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
874
896
|
}
|
|
875
897
|
stateInProcessingInstruction(u) {
|
|
876
|
-
(u === h.Gt || this.fastForwardTo(h.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state =
|
|
898
|
+
(u === h.Gt || this.fastForwardTo(h.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
877
899
|
}
|
|
878
900
|
stateBeforeComment(u) {
|
|
879
|
-
u === h.Dash ? (this.state =
|
|
901
|
+
u === h.Dash ? (this.state = f.InCommentLike, this.currentSequence = T.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = f.InDeclaration;
|
|
880
902
|
}
|
|
881
903
|
stateInSpecialComment(u) {
|
|
882
|
-
(u === h.Gt || this.fastForwardTo(h.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state =
|
|
904
|
+
(u === h.Gt || this.fastForwardTo(h.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
883
905
|
}
|
|
884
906
|
stateBeforeSpecialS(u) {
|
|
885
907
|
const t = u | 32;
|
|
886
|
-
t === T.ScriptEnd[3] ? this.startSpecial(T.ScriptEnd, 4) : t === T.StyleEnd[3] ? this.startSpecial(T.StyleEnd, 4) : (this.state =
|
|
908
|
+
t === T.ScriptEnd[3] ? this.startSpecial(T.ScriptEnd, 4) : t === T.StyleEnd[3] ? this.startSpecial(T.StyleEnd, 4) : (this.state = f.InTagName, this.stateInTagName(u));
|
|
887
909
|
}
|
|
888
910
|
stateBeforeSpecialT(u) {
|
|
889
911
|
switch (u | 32) {
|
|
@@ -900,11 +922,11 @@ class ke {
|
|
|
900
922
|
break;
|
|
901
923
|
}
|
|
902
924
|
default:
|
|
903
|
-
this.state =
|
|
925
|
+
this.state = f.InTagName, this.stateInTagName(u);
|
|
904
926
|
}
|
|
905
927
|
}
|
|
906
928
|
startEntity() {
|
|
907
|
-
this.baseState = this.state, this.state =
|
|
929
|
+
this.baseState = this.state, this.state = f.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ? C.Strict : this.baseState === f.Text || this.baseState === f.InSpecialTag ? C.Legacy : C.Attribute);
|
|
908
930
|
}
|
|
909
931
|
stateInEntity() {
|
|
910
932
|
const u = this.entityDecoder.write(this.buffer, this.index - this.offset);
|
|
@@ -914,7 +936,7 @@ class ke {
|
|
|
914
936
|
* Remove data that has already been consumed from the buffer.
|
|
915
937
|
*/
|
|
916
938
|
cleanup() {
|
|
917
|
-
this.running && this.sectionStart !== this.index && (this.state ===
|
|
939
|
+
this.running && this.sectionStart !== this.index && (this.state === f.Text || this.state === f.InSpecialTag && this.sequenceIndex === 0 ? (this.cbs.ontext(this.sectionStart, this.index), this.sectionStart = this.index) : (this.state === f.InAttributeValueDq || this.state === f.InAttributeValueSq || this.state === f.InAttributeValueNq) && (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = this.index));
|
|
918
940
|
}
|
|
919
941
|
shouldContinue() {
|
|
920
942
|
return this.index < this.buffer.length + this.offset && this.running;
|
|
@@ -928,107 +950,107 @@ class ke {
|
|
|
928
950
|
for (; this.shouldContinue(); ) {
|
|
929
951
|
const u = this.buffer.charCodeAt(this.index - this.offset);
|
|
930
952
|
switch (this.state) {
|
|
931
|
-
case
|
|
953
|
+
case f.Text: {
|
|
932
954
|
this.stateText(u);
|
|
933
955
|
break;
|
|
934
956
|
}
|
|
935
|
-
case
|
|
957
|
+
case f.SpecialStartSequence: {
|
|
936
958
|
this.stateSpecialStartSequence(u);
|
|
937
959
|
break;
|
|
938
960
|
}
|
|
939
|
-
case
|
|
961
|
+
case f.InSpecialTag: {
|
|
940
962
|
this.stateInSpecialTag(u);
|
|
941
963
|
break;
|
|
942
964
|
}
|
|
943
|
-
case
|
|
965
|
+
case f.CDATASequence: {
|
|
944
966
|
this.stateCDATASequence(u);
|
|
945
967
|
break;
|
|
946
968
|
}
|
|
947
|
-
case
|
|
969
|
+
case f.InAttributeValueDq: {
|
|
948
970
|
this.stateInAttributeValueDoubleQuotes(u);
|
|
949
971
|
break;
|
|
950
972
|
}
|
|
951
|
-
case
|
|
973
|
+
case f.InAttributeName: {
|
|
952
974
|
this.stateInAttributeName(u);
|
|
953
975
|
break;
|
|
954
976
|
}
|
|
955
|
-
case
|
|
977
|
+
case f.InCommentLike: {
|
|
956
978
|
this.stateInCommentLike(u);
|
|
957
979
|
break;
|
|
958
980
|
}
|
|
959
|
-
case
|
|
981
|
+
case f.InSpecialComment: {
|
|
960
982
|
this.stateInSpecialComment(u);
|
|
961
983
|
break;
|
|
962
984
|
}
|
|
963
|
-
case
|
|
985
|
+
case f.BeforeAttributeName: {
|
|
964
986
|
this.stateBeforeAttributeName(u);
|
|
965
987
|
break;
|
|
966
988
|
}
|
|
967
|
-
case
|
|
989
|
+
case f.InTagName: {
|
|
968
990
|
this.stateInTagName(u);
|
|
969
991
|
break;
|
|
970
992
|
}
|
|
971
|
-
case
|
|
993
|
+
case f.InClosingTagName: {
|
|
972
994
|
this.stateInClosingTagName(u);
|
|
973
995
|
break;
|
|
974
996
|
}
|
|
975
|
-
case
|
|
997
|
+
case f.BeforeTagName: {
|
|
976
998
|
this.stateBeforeTagName(u);
|
|
977
999
|
break;
|
|
978
1000
|
}
|
|
979
|
-
case
|
|
1001
|
+
case f.AfterAttributeName: {
|
|
980
1002
|
this.stateAfterAttributeName(u);
|
|
981
1003
|
break;
|
|
982
1004
|
}
|
|
983
|
-
case
|
|
1005
|
+
case f.InAttributeValueSq: {
|
|
984
1006
|
this.stateInAttributeValueSingleQuotes(u);
|
|
985
1007
|
break;
|
|
986
1008
|
}
|
|
987
|
-
case
|
|
1009
|
+
case f.BeforeAttributeValue: {
|
|
988
1010
|
this.stateBeforeAttributeValue(u);
|
|
989
1011
|
break;
|
|
990
1012
|
}
|
|
991
|
-
case
|
|
1013
|
+
case f.BeforeClosingTagName: {
|
|
992
1014
|
this.stateBeforeClosingTagName(u);
|
|
993
1015
|
break;
|
|
994
1016
|
}
|
|
995
|
-
case
|
|
1017
|
+
case f.AfterClosingTagName: {
|
|
996
1018
|
this.stateAfterClosingTagName(u);
|
|
997
1019
|
break;
|
|
998
1020
|
}
|
|
999
|
-
case
|
|
1021
|
+
case f.BeforeSpecialS: {
|
|
1000
1022
|
this.stateBeforeSpecialS(u);
|
|
1001
1023
|
break;
|
|
1002
1024
|
}
|
|
1003
|
-
case
|
|
1025
|
+
case f.BeforeSpecialT: {
|
|
1004
1026
|
this.stateBeforeSpecialT(u);
|
|
1005
1027
|
break;
|
|
1006
1028
|
}
|
|
1007
|
-
case
|
|
1029
|
+
case f.InAttributeValueNq: {
|
|
1008
1030
|
this.stateInAttributeValueNoQuotes(u);
|
|
1009
1031
|
break;
|
|
1010
1032
|
}
|
|
1011
|
-
case
|
|
1033
|
+
case f.InSelfClosingTag: {
|
|
1012
1034
|
this.stateInSelfClosingTag(u);
|
|
1013
1035
|
break;
|
|
1014
1036
|
}
|
|
1015
|
-
case
|
|
1037
|
+
case f.InDeclaration: {
|
|
1016
1038
|
this.stateInDeclaration(u);
|
|
1017
1039
|
break;
|
|
1018
1040
|
}
|
|
1019
|
-
case
|
|
1041
|
+
case f.BeforeDeclaration: {
|
|
1020
1042
|
this.stateBeforeDeclaration(u);
|
|
1021
1043
|
break;
|
|
1022
1044
|
}
|
|
1023
|
-
case
|
|
1045
|
+
case f.BeforeComment: {
|
|
1024
1046
|
this.stateBeforeComment(u);
|
|
1025
1047
|
break;
|
|
1026
1048
|
}
|
|
1027
|
-
case
|
|
1049
|
+
case f.InProcessingInstruction: {
|
|
1028
1050
|
this.stateInProcessingInstruction(u);
|
|
1029
1051
|
break;
|
|
1030
1052
|
}
|
|
1031
|
-
case
|
|
1053
|
+
case f.InEntity: {
|
|
1032
1054
|
this.stateInEntity();
|
|
1033
1055
|
break;
|
|
1034
1056
|
}
|
|
@@ -1038,18 +1060,18 @@ class ke {
|
|
|
1038
1060
|
this.cleanup();
|
|
1039
1061
|
}
|
|
1040
1062
|
finish() {
|
|
1041
|
-
this.state ===
|
|
1063
|
+
this.state === f.InEntity && (this.entityDecoder.end(), this.state = this.baseState), this.handleTrailingData(), this.cbs.onend();
|
|
1042
1064
|
}
|
|
1043
1065
|
/** Handle any trailing data. */
|
|
1044
1066
|
handleTrailingData() {
|
|
1045
1067
|
const u = this.buffer.length + this.offset;
|
|
1046
|
-
this.sectionStart >= u || (this.state ===
|
|
1068
|
+
this.sectionStart >= u || (this.state === f.InCommentLike ? this.currentSequence === T.CdataEnd ? this.cbs.oncdata(this.sectionStart, u, 0) : this.cbs.oncomment(this.sectionStart, u, 0) : this.state === f.InTagName || this.state === f.BeforeAttributeName || this.state === f.BeforeAttributeValue || this.state === f.AfterAttributeName || this.state === f.InAttributeName || this.state === f.InAttributeValueSq || this.state === f.InAttributeValueDq || this.state === f.InAttributeValueNq || this.state === f.InClosingTagName || this.cbs.ontext(this.sectionStart, u));
|
|
1047
1069
|
}
|
|
1048
1070
|
emitCodePoint(u, t) {
|
|
1049
|
-
this.baseState !==
|
|
1071
|
+
this.baseState !== f.Text && this.baseState !== f.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));
|
|
1050
1072
|
}
|
|
1051
1073
|
}
|
|
1052
|
-
const
|
|
1074
|
+
const G = /* @__PURE__ */ new Set([
|
|
1053
1075
|
"input",
|
|
1054
1076
|
"option",
|
|
1055
1077
|
"optgroup",
|
|
@@ -1057,7 +1079,7 @@ const H = /* @__PURE__ */ new Set([
|
|
|
1057
1079
|
"button",
|
|
1058
1080
|
"datalist",
|
|
1059
1081
|
"textarea"
|
|
1060
|
-
]), E = /* @__PURE__ */ new Set(["p"]), Iu = /* @__PURE__ */ new Set(["thead", "tbody"]), Eu = /* @__PURE__ */ new Set(["dd", "dt"]), vu = /* @__PURE__ */ new Set(["rt", "rp"]),
|
|
1082
|
+
]), E = /* @__PURE__ */ new Set(["p"]), Iu = /* @__PURE__ */ new Set(["thead", "tbody"]), Eu = /* @__PURE__ */ new Set(["dd", "dt"]), vu = /* @__PURE__ */ new Set(["rt", "rp"]), qe = /* @__PURE__ */ new Map([
|
|
1061
1083
|
["tr", /* @__PURE__ */ new Set(["tr", "th", "td"])],
|
|
1062
1084
|
["th", /* @__PURE__ */ new Set(["th"])],
|
|
1063
1085
|
["td", /* @__PURE__ */ new Set(["thead", "th", "td"])],
|
|
@@ -1070,12 +1092,12 @@ const H = /* @__PURE__ */ new Set([
|
|
|
1070
1092
|
["h4", E],
|
|
1071
1093
|
["h5", E],
|
|
1072
1094
|
["h6", E],
|
|
1073
|
-
["select",
|
|
1074
|
-
["input",
|
|
1075
|
-
["output",
|
|
1076
|
-
["button",
|
|
1077
|
-
["datalist",
|
|
1078
|
-
["textarea",
|
|
1095
|
+
["select", G],
|
|
1096
|
+
["input", G],
|
|
1097
|
+
["output", G],
|
|
1098
|
+
["button", G],
|
|
1099
|
+
["datalist", G],
|
|
1100
|
+
["textarea", G],
|
|
1079
1101
|
["option", /* @__PURE__ */ new Set(["option"])],
|
|
1080
1102
|
["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
|
|
1081
1103
|
["dd", Eu],
|
|
@@ -1105,7 +1127,7 @@ const H = /* @__PURE__ */ new Set([
|
|
|
1105
1127
|
["rp", vu],
|
|
1106
1128
|
["tbody", Iu],
|
|
1107
1129
|
["tfoot", Iu]
|
|
1108
|
-
]),
|
|
1130
|
+
]), Re = /* @__PURE__ */ new Set([
|
|
1109
1131
|
"area",
|
|
1110
1132
|
"base",
|
|
1111
1133
|
"basefont",
|
|
@@ -1135,11 +1157,11 @@ const H = /* @__PURE__ */ new Set([
|
|
|
1135
1157
|
"foreignobject",
|
|
1136
1158
|
"desc",
|
|
1137
1159
|
"title"
|
|
1138
|
-
]),
|
|
1139
|
-
class
|
|
1160
|
+
]), je = /\s|\//;
|
|
1161
|
+
class De {
|
|
1140
1162
|
constructor(u, t = {}) {
|
|
1141
1163
|
var a, i, s, r, n, o;
|
|
1142
|
-
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 :
|
|
1164
|
+
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 : Ve)(this.options, this), this.foreignContext = [!this.htmlMode], (o = (n = this.cbs).onparserinit) === null || o === void 0 || o.call(n, this);
|
|
1143
1165
|
}
|
|
1144
1166
|
// Tokenizer event handlers
|
|
1145
1167
|
/** @internal */
|
|
@@ -1158,7 +1180,7 @@ class je {
|
|
|
1158
1180
|
* to specify your own additional void elements.
|
|
1159
1181
|
*/
|
|
1160
1182
|
isVoidElement(u) {
|
|
1161
|
-
return this.htmlMode &&
|
|
1183
|
+
return this.htmlMode && Re.has(u);
|
|
1162
1184
|
}
|
|
1163
1185
|
/** @internal */
|
|
1164
1186
|
onopentagname(u, t) {
|
|
@@ -1169,7 +1191,7 @@ class je {
|
|
|
1169
1191
|
emitOpenTag(u) {
|
|
1170
1192
|
var t, a, i, s;
|
|
1171
1193
|
this.openTagStart = this.startIndex, this.tagname = u;
|
|
1172
|
-
const r = this.htmlMode &&
|
|
1194
|
+
const r = this.htmlMode && qe.get(u);
|
|
1173
1195
|
if (r)
|
|
1174
1196
|
for (; this.stack.length > 0 && r.has(this.stack[0]); ) {
|
|
1175
1197
|
const n = this.stack.shift();
|
|
@@ -1187,19 +1209,19 @@ class je {
|
|
|
1187
1209
|
}
|
|
1188
1210
|
/** @internal */
|
|
1189
1211
|
onclosetag(u, t) {
|
|
1190
|
-
var a, i, s, r, n, o, c,
|
|
1212
|
+
var a, i, s, r, n, o, c, d;
|
|
1191
1213
|
this.endIndex = t;
|
|
1192
|
-
let
|
|
1193
|
-
if (this.lowerCaseTagNames && (
|
|
1194
|
-
this.htmlMode &&
|
|
1214
|
+
let l = this.getSlice(u, t);
|
|
1215
|
+
if (this.lowerCaseTagNames && (l = l.toLowerCase()), this.htmlMode && (wu.has(l) || Au.has(l)) && this.foreignContext.shift(), this.isVoidElement(l))
|
|
1216
|
+
this.htmlMode && l === "br" && ((r = (s = this.cbs).onopentagname) === null || r === void 0 || r.call(s, "br"), (o = (n = this.cbs).onopentag) === null || o === void 0 || o.call(n, "br", {}, !0), (d = (c = this.cbs).onclosetag) === null || d === void 0 || d.call(c, "br", !1));
|
|
1195
1217
|
else {
|
|
1196
|
-
const m = this.stack.indexOf(
|
|
1218
|
+
const m = this.stack.indexOf(l);
|
|
1197
1219
|
if (m !== -1)
|
|
1198
1220
|
for (let p = 0; p <= m; p++) {
|
|
1199
1221
|
const v = this.stack.shift();
|
|
1200
1222
|
(i = (a = this.cbs).onclosetag) === null || i === void 0 || i.call(a, v, p !== m);
|
|
1201
1223
|
}
|
|
1202
|
-
else this.htmlMode &&
|
|
1224
|
+
else this.htmlMode && l === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0));
|
|
1203
1225
|
}
|
|
1204
1226
|
this.startIndex = t + 1;
|
|
1205
1227
|
}
|
|
@@ -1232,7 +1254,7 @@ class je {
|
|
|
1232
1254
|
this.endIndex = t, (i = (a = this.cbs).onattribute) === null || i === void 0 || i.call(a, this.attribname, this.attribvalue, u === L.Double ? '"' : u === L.Single ? "'" : u === L.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = "";
|
|
1233
1255
|
}
|
|
1234
1256
|
getInstructionName(u) {
|
|
1235
|
-
const t = u.search(
|
|
1257
|
+
const t = u.search(je);
|
|
1236
1258
|
let a = t < 0 ? u : u.substr(0, t);
|
|
1237
1259
|
return this.lowerCaseTagNames && (a = a.toLowerCase()), a;
|
|
1238
1260
|
}
|
|
@@ -1263,10 +1285,10 @@ class je {
|
|
|
1263
1285
|
}
|
|
1264
1286
|
/** @internal */
|
|
1265
1287
|
oncdata(u, t, a) {
|
|
1266
|
-
var i, s, r, n, o, c,
|
|
1288
|
+
var i, s, r, n, o, c, d, l, m, p;
|
|
1267
1289
|
this.endIndex = t;
|
|
1268
1290
|
const v = this.getSlice(u, t - a);
|
|
1269
|
-
!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, v), (c = (o = this.cbs).oncdataend) === null || c === void 0 || c.call(o)) : ((
|
|
1291
|
+
!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, v), (c = (o = this.cbs).oncdataend) === null || c === void 0 || c.call(o)) : ((l = (d = this.cbs).oncomment) === null || l === void 0 || l.call(d, `[CDATA[${v}]]`), (p = (m = this.cbs).oncommentend) === null || p === void 0 || p.call(m)), this.startIndex = t + 1;
|
|
1270
1292
|
}
|
|
1271
1293
|
/** @internal */
|
|
1272
1294
|
onend() {
|
|
@@ -1367,7 +1389,7 @@ class je {
|
|
|
1367
1389
|
function Tu(e, u = "web") {
|
|
1368
1390
|
const t = { name: "", children: [] }, a = [t];
|
|
1369
1391
|
let i = "";
|
|
1370
|
-
const s = new
|
|
1392
|
+
const s = new De(
|
|
1371
1393
|
{
|
|
1372
1394
|
onopentag: (r, n, o) => {
|
|
1373
1395
|
const c = a[a.length - 1];
|
|
@@ -1375,25 +1397,25 @@ function Tu(e, u = "web") {
|
|
|
1375
1397
|
name: "span",
|
|
1376
1398
|
children: i.trim()
|
|
1377
1399
|
}) : c.children = i.trim(), i = "");
|
|
1378
|
-
const
|
|
1400
|
+
const d = Object.entries(n || {}).reduce(
|
|
1379
1401
|
(m, p) => {
|
|
1380
1402
|
let [v = "", A = ""] = p;
|
|
1381
1403
|
return v && (m[v] = A), m;
|
|
1382
1404
|
},
|
|
1383
1405
|
{}
|
|
1384
1406
|
);
|
|
1385
|
-
|
|
1386
|
-
const
|
|
1407
|
+
d.style && (d.style = Du(d.style));
|
|
1408
|
+
const l = {
|
|
1387
1409
|
name: ju(r, u),
|
|
1388
|
-
props:
|
|
1410
|
+
props: d
|
|
1389
1411
|
};
|
|
1390
|
-
Array.isArray(c.children) ? c.children.push(
|
|
1412
|
+
Array.isArray(c.children) ? c.children.push(l) : c.children ? c.children = [
|
|
1391
1413
|
{
|
|
1392
1414
|
name: "span",
|
|
1393
1415
|
children: c.children
|
|
1394
1416
|
},
|
|
1395
|
-
|
|
1396
|
-
] : c.children = [
|
|
1417
|
+
l
|
|
1418
|
+
] : c.children = [l], o || a.push(l);
|
|
1397
1419
|
},
|
|
1398
1420
|
ontext: (r) => {
|
|
1399
1421
|
const n = r.trim();
|
|
@@ -1411,12 +1433,12 @@ function Tu(e, u = "web") {
|
|
|
1411
1433
|
);
|
|
1412
1434
|
return s.write(e.replace(/\\"/g, '"')), s.end(), t.children || [];
|
|
1413
1435
|
}
|
|
1414
|
-
function
|
|
1436
|
+
function Ce(e, u) {
|
|
1415
1437
|
const a = {
|
|
1416
|
-
imports:
|
|
1438
|
+
imports: Le(e),
|
|
1417
1439
|
emits: [],
|
|
1418
1440
|
errors: []
|
|
1419
|
-
}, i =
|
|
1441
|
+
}, i = z(e);
|
|
1420
1442
|
return eu(i, {
|
|
1421
1443
|
ExportDefaultDeclaration(s) {
|
|
1422
1444
|
const r = s.node.declaration;
|
|
@@ -1424,60 +1446,60 @@ function De(e, u) {
|
|
|
1424
1446
|
const n = r.arguments[0];
|
|
1425
1447
|
if (n?.type !== "ObjectExpression") return;
|
|
1426
1448
|
const o = n.properties.filter(
|
|
1427
|
-
(
|
|
1449
|
+
(l) => l.type === "ObjectProperty"
|
|
1428
1450
|
), c = n.properties.filter(
|
|
1429
|
-
(
|
|
1430
|
-
),
|
|
1431
|
-
(
|
|
1451
|
+
(l) => l.type == "ObjectMethod"
|
|
1452
|
+
), d = o.find(
|
|
1453
|
+
(l) => l.key.name === "computed"
|
|
1432
1454
|
);
|
|
1433
|
-
|
|
1434
|
-
for (const
|
|
1435
|
-
switch (
|
|
1455
|
+
d && (a.computed = Cu(d.value), a.watchers = Me(d.value));
|
|
1456
|
+
for (const l of o)
|
|
1457
|
+
switch (l.key.name) {
|
|
1436
1458
|
case "name":
|
|
1437
|
-
a.name =
|
|
1459
|
+
a.name = l.value.value;
|
|
1438
1460
|
break;
|
|
1439
1461
|
case "methods":
|
|
1440
|
-
a.handlers =
|
|
1441
|
-
|
|
1462
|
+
a.handlers = Oe(l.value), a.methods = $e(l.value), a.dataSources = Fe(
|
|
1463
|
+
l.value,
|
|
1442
1464
|
u
|
|
1443
1465
|
);
|
|
1444
1466
|
break;
|
|
1445
1467
|
case "watch":
|
|
1446
|
-
a.watch =
|
|
1447
|
-
|
|
1468
|
+
a.watch = Pe(
|
|
1469
|
+
l.value,
|
|
1448
1470
|
a.watchers
|
|
1449
1471
|
);
|
|
1450
1472
|
break;
|
|
1451
1473
|
case "props":
|
|
1452
|
-
a.props =
|
|
1474
|
+
a.props = Ge(l.value);
|
|
1453
1475
|
break;
|
|
1454
1476
|
case "inject":
|
|
1455
|
-
a.inject =
|
|
1477
|
+
a.inject = ze(l.value);
|
|
1456
1478
|
break;
|
|
1457
1479
|
case "expose":
|
|
1458
|
-
a.expose =
|
|
1480
|
+
a.expose = Je(l.value);
|
|
1459
1481
|
break;
|
|
1460
1482
|
case "directives":
|
|
1461
|
-
a.directives =
|
|
1483
|
+
a.directives = Ze(l.value);
|
|
1462
1484
|
break;
|
|
1463
1485
|
}
|
|
1464
|
-
for (const
|
|
1465
|
-
switch (
|
|
1486
|
+
for (const l of c)
|
|
1487
|
+
switch (l.key.name) {
|
|
1466
1488
|
case "setup":
|
|
1467
|
-
a.state =
|
|
1489
|
+
a.state = Be(l.body);
|
|
1468
1490
|
break;
|
|
1469
1491
|
}
|
|
1470
|
-
a.lifeCycles =
|
|
1492
|
+
a.lifeCycles = Ue(c);
|
|
1471
1493
|
},
|
|
1472
1494
|
CallExpression(s) {
|
|
1473
|
-
const r =
|
|
1495
|
+
const r = We(s.node);
|
|
1474
1496
|
if (r.length)
|
|
1475
1497
|
for (let n of r)
|
|
1476
1498
|
a.emits?.find((c) => c.name === n.name) || a.emits?.push(n);
|
|
1477
1499
|
}
|
|
1478
1500
|
}), a;
|
|
1479
1501
|
}
|
|
1480
|
-
function
|
|
1502
|
+
function Le(e) {
|
|
1481
1503
|
const u = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = /import\s+(.+?)\s+from\s+['"](.+?)['"]/g, a = /^{(.+?)}$/, i = [];
|
|
1482
1504
|
let s;
|
|
1483
1505
|
const r = e.replace(/\n/g, " ");
|
|
@@ -1497,7 +1519,7 @@ function Ce(e) {
|
|
|
1497
1519
|
}
|
|
1498
1520
|
return i;
|
|
1499
1521
|
}
|
|
1500
|
-
function
|
|
1522
|
+
function _e(e) {
|
|
1501
1523
|
for (const u of e.body)
|
|
1502
1524
|
if (u.type === "VariableDeclaration" && u.kind == "const") {
|
|
1503
1525
|
const { id: t, init: a } = u.declarations[0];
|
|
@@ -1506,36 +1528,36 @@ function Le(e) {
|
|
|
1506
1528
|
}
|
|
1507
1529
|
return null;
|
|
1508
1530
|
}
|
|
1509
|
-
function
|
|
1510
|
-
const u =
|
|
1531
|
+
function Be(e) {
|
|
1532
|
+
const u = _e(e);
|
|
1511
1533
|
if (!u) return {};
|
|
1512
1534
|
const t = {};
|
|
1513
1535
|
for (const a of u.properties) {
|
|
1514
1536
|
const { key: i, value: s } = a;
|
|
1515
1537
|
if (i.type === "Identifier") {
|
|
1516
|
-
const r =
|
|
1538
|
+
const r = P(s);
|
|
1517
1539
|
t[i.name] = q(r);
|
|
1518
1540
|
}
|
|
1519
1541
|
}
|
|
1520
1542
|
return t;
|
|
1521
1543
|
}
|
|
1522
|
-
function
|
|
1544
|
+
function U(e) {
|
|
1523
1545
|
const { key: u, async: t, params: a, body: i } = e, s = a?.map((r) => r.type === "ObjectPattern" ? `{${r.properties.map((o) => o.key?.name || o.name).join(",")}}` : r.type === "AssignmentPattern" ? r.left.name + "=" + (r.right?.extra?.raw || "null") : r.name).join(", ");
|
|
1524
1546
|
if (u.type === "Identifier") {
|
|
1525
1547
|
const r = u.name;
|
|
1526
1548
|
let n = "{}";
|
|
1527
|
-
i && (n =
|
|
1549
|
+
i && (n = P(i) || "{}");
|
|
1528
1550
|
const o = e.value;
|
|
1529
1551
|
if (o && o.type === "CallExpression") {
|
|
1530
|
-
let p =
|
|
1552
|
+
let p = P(o) || "";
|
|
1531
1553
|
p = p.replace("function () {", "() => {"), n = `{ return (${p})}`;
|
|
1532
1554
|
}
|
|
1533
|
-
const
|
|
1555
|
+
const d = `${t ? "async " : ""}(${s}) => ${n}`, l = r.startsWith("watcher_");
|
|
1534
1556
|
return {
|
|
1535
|
-
id:
|
|
1557
|
+
id: l ? r.replace("watcher_", "") : "",
|
|
1536
1558
|
name: r,
|
|
1537
|
-
watcher:
|
|
1538
|
-
exp: fu(
|
|
1559
|
+
watcher: l,
|
|
1560
|
+
exp: fu(d)
|
|
1539
1561
|
};
|
|
1540
1562
|
}
|
|
1541
1563
|
}
|
|
@@ -1543,24 +1565,24 @@ function Cu(e) {
|
|
|
1543
1565
|
if (!e) return {};
|
|
1544
1566
|
const u = {};
|
|
1545
1567
|
for (const t of e.properties) {
|
|
1546
|
-
const a =
|
|
1568
|
+
const a = U(t);
|
|
1547
1569
|
a && !a.watcher && !a.exp.value.includes("this.provider.createMock") && !a.exp.value.includes("this.provider.apis") && (u[a.name] = a.exp);
|
|
1548
1570
|
}
|
|
1549
1571
|
return u;
|
|
1550
1572
|
}
|
|
1551
|
-
function
|
|
1573
|
+
function Fe(e, u) {
|
|
1552
1574
|
if (!e) return {};
|
|
1553
1575
|
const t = {}, a = /apis\[\'([\w]*)\'\]/, i = /\.then\(([\w\W]*)\)/;
|
|
1554
1576
|
for (const s of e.properties) {
|
|
1555
|
-
const r =
|
|
1577
|
+
const r = U(s), n = s.body.body?.[0], o = (n?.leadingComments?.[0].value || "").trim(), c = xe(o);
|
|
1556
1578
|
if (r && r.exp.value.includes("this.provider.apis")) {
|
|
1557
|
-
const
|
|
1558
|
-
if (!
|
|
1559
|
-
const m =
|
|
1579
|
+
const l = (r.exp.value.match(a) || [])[1];
|
|
1580
|
+
if (!l) continue;
|
|
1581
|
+
const m = Xe(u, l);
|
|
1560
1582
|
if (!m) continue;
|
|
1561
1583
|
const p = r.exp.value.match(i)?.[1];
|
|
1562
1584
|
t[r.name] = {
|
|
1563
|
-
ref:
|
|
1585
|
+
ref: l,
|
|
1564
1586
|
name: r.name,
|
|
1565
1587
|
test: c?.test || {
|
|
1566
1588
|
type: "JSFunction",
|
|
@@ -1580,7 +1602,7 @@ function Be(e, u) {
|
|
|
1580
1602
|
};
|
|
1581
1603
|
}
|
|
1582
1604
|
if (r && r.exp.value.includes("this.provider.createMock")) {
|
|
1583
|
-
const
|
|
1605
|
+
const d = n?.declarations?.[0]?.init?.arguments?.[0], l = r.exp.value.match(i)?.[1];
|
|
1584
1606
|
t[r.name] = {
|
|
1585
1607
|
ref: "",
|
|
1586
1608
|
name: r.name,
|
|
@@ -1594,26 +1616,26 @@ function Be(e, u) {
|
|
|
1594
1616
|
label: c?.label || "",
|
|
1595
1617
|
transform: c?.transform || {
|
|
1596
1618
|
type: "JSFunction",
|
|
1597
|
-
value:
|
|
1619
|
+
value: l || `(res) => {
|
|
1598
1620
|
return res;
|
|
1599
1621
|
}`
|
|
1600
1622
|
},
|
|
1601
1623
|
mockTemplate: c?.mockTemplate || {
|
|
1602
1624
|
type: "JSFunction",
|
|
1603
|
-
value:
|
|
1625
|
+
value: d ? P(d) : ""
|
|
1604
1626
|
}
|
|
1605
1627
|
};
|
|
1606
1628
|
}
|
|
1607
1629
|
}
|
|
1608
1630
|
return t;
|
|
1609
1631
|
}
|
|
1610
|
-
function
|
|
1632
|
+
function $e(e) {
|
|
1611
1633
|
const u = Cu(e), t = /\_([\w]{5,})$/, a = {};
|
|
1612
1634
|
for (const i of Object.keys(u))
|
|
1613
1635
|
t.test(i) || (a[i] = u[i]);
|
|
1614
1636
|
return a;
|
|
1615
1637
|
}
|
|
1616
|
-
function
|
|
1638
|
+
function Oe(e) {
|
|
1617
1639
|
if (!e) return {};
|
|
1618
1640
|
const u = {}, t = /\_([\w]{5,})$/;
|
|
1619
1641
|
for (const a of e.properties) {
|
|
@@ -1621,23 +1643,23 @@ function $e(e) {
|
|
|
1621
1643
|
if (t.test(i))
|
|
1622
1644
|
try {
|
|
1623
1645
|
if (a.body.body[0]?.argument) {
|
|
1624
|
-
const s =
|
|
1646
|
+
const s = P(
|
|
1625
1647
|
a.body.body[0].argument.callee.object
|
|
1626
1648
|
);
|
|
1627
1649
|
u[i] = fu(s);
|
|
1628
1650
|
} else
|
|
1629
|
-
u[i] =
|
|
1651
|
+
u[i] = U(a)?.exp;
|
|
1630
1652
|
} catch (s) {
|
|
1631
1653
|
console.warn(s);
|
|
1632
1654
|
}
|
|
1633
1655
|
}
|
|
1634
1656
|
return u;
|
|
1635
1657
|
}
|
|
1636
|
-
function
|
|
1658
|
+
function Me(e) {
|
|
1637
1659
|
if (!e) return {};
|
|
1638
1660
|
const u = {};
|
|
1639
1661
|
for (const t of e.properties) {
|
|
1640
|
-
const a =
|
|
1662
|
+
const a = U(t);
|
|
1641
1663
|
a && a.watcher && (u[a.name] = a.exp);
|
|
1642
1664
|
}
|
|
1643
1665
|
return u;
|
|
@@ -1655,9 +1677,9 @@ function Nu(e, u) {
|
|
|
1655
1677
|
(a) => a.key?.name === u
|
|
1656
1678
|
);
|
|
1657
1679
|
if (t)
|
|
1658
|
-
return
|
|
1680
|
+
return U(t)?.exp;
|
|
1659
1681
|
}
|
|
1660
|
-
function
|
|
1682
|
+
function Pe(e, u = {}) {
|
|
1661
1683
|
const t = [];
|
|
1662
1684
|
for (const a of e.properties) {
|
|
1663
1685
|
const { key: i, value: s } = a, r = i.value || i.name || "";
|
|
@@ -1678,7 +1700,7 @@ function Me(e, u = {}) {
|
|
|
1678
1700
|
},
|
|
1679
1701
|
deep: !1,
|
|
1680
1702
|
immediate: !1,
|
|
1681
|
-
handler:
|
|
1703
|
+
handler: U(a)?.exp
|
|
1682
1704
|
}), a.type === "ObjectProperty") {
|
|
1683
1705
|
const n = s.properties;
|
|
1684
1706
|
t.push({
|
|
@@ -1695,18 +1717,18 @@ function Me(e, u = {}) {
|
|
|
1695
1717
|
}
|
|
1696
1718
|
return t;
|
|
1697
1719
|
}
|
|
1698
|
-
function
|
|
1720
|
+
function Ue(e) {
|
|
1699
1721
|
const u = {};
|
|
1700
1722
|
for (const t of e) {
|
|
1701
1723
|
const a = t.key.name;
|
|
1702
|
-
if (
|
|
1703
|
-
const i =
|
|
1724
|
+
if (fe.includes(a)) {
|
|
1725
|
+
const i = U(t);
|
|
1704
1726
|
i && (u[i.name] = i.exp);
|
|
1705
1727
|
}
|
|
1706
1728
|
}
|
|
1707
1729
|
return u;
|
|
1708
1730
|
}
|
|
1709
|
-
function
|
|
1731
|
+
function He(e) {
|
|
1710
1732
|
const u = e?.find(
|
|
1711
1733
|
(t) => t.key?.name === "type"
|
|
1712
1734
|
);
|
|
@@ -1718,9 +1740,9 @@ function _u(e) {
|
|
|
1718
1740
|
(t) => t.key?.name === "default"
|
|
1719
1741
|
);
|
|
1720
1742
|
if (u)
|
|
1721
|
-
return q(
|
|
1743
|
+
return q(P(u.value));
|
|
1722
1744
|
}
|
|
1723
|
-
function
|
|
1745
|
+
function Ge(e) {
|
|
1724
1746
|
if (!e) return [];
|
|
1725
1747
|
let u = [];
|
|
1726
1748
|
return e.type === "ArrayExpression" ? u = e.elements.map((t) => t.value) : e.type === "ObjectExpression" && (u = e.properties?.map((t) => {
|
|
@@ -1728,12 +1750,12 @@ function He(e) {
|
|
|
1728
1750
|
return {
|
|
1729
1751
|
name: a.name,
|
|
1730
1752
|
required: X(s, "required"),
|
|
1731
|
-
type:
|
|
1753
|
+
type: He(s),
|
|
1732
1754
|
default: _u(s)
|
|
1733
1755
|
};
|
|
1734
1756
|
})), u;
|
|
1735
1757
|
}
|
|
1736
|
-
function
|
|
1758
|
+
function We(e) {
|
|
1737
1759
|
const u = [];
|
|
1738
1760
|
if (e.callee.type === "MemberExpression" && e.callee.property?.name === "$emit") {
|
|
1739
1761
|
const [a, ...i] = (e.arguments || []).map(
|
|
@@ -1746,7 +1768,7 @@ function Ge(e) {
|
|
|
1746
1768
|
}
|
|
1747
1769
|
return u;
|
|
1748
1770
|
}
|
|
1749
|
-
function
|
|
1771
|
+
function ze(e) {
|
|
1750
1772
|
let u = [];
|
|
1751
1773
|
return e.type === "ObjectExpression" && (u = e.properties?.map((t) => {
|
|
1752
1774
|
const { key: a, value: i } = t, s = i.properties, r = a.name, n = Lu(s, "from"), o = _u(s);
|
|
@@ -1757,13 +1779,13 @@ function We(e) {
|
|
|
1757
1779
|
};
|
|
1758
1780
|
})), u;
|
|
1759
1781
|
}
|
|
1760
|
-
function
|
|
1782
|
+
function Je(e) {
|
|
1761
1783
|
return e && e.elements ? e.elements.map((u) => u?.type === "StringLiteral" ? u.value : "").filter((u) => !!u) : [];
|
|
1762
1784
|
}
|
|
1763
|
-
function
|
|
1785
|
+
function Xe(e, u) {
|
|
1764
1786
|
return (e.apis || []).find((t) => t.id === u || t.name === u);
|
|
1765
1787
|
}
|
|
1766
|
-
function
|
|
1788
|
+
function Ze(e) {
|
|
1767
1789
|
if (!e?.properties) return {};
|
|
1768
1790
|
const u = {};
|
|
1769
1791
|
for (const t of e.properties) {
|
|
@@ -1776,7 +1798,7 @@ function Xe(e) {
|
|
|
1776
1798
|
return u;
|
|
1777
1799
|
}
|
|
1778
1800
|
let cu = [], K = {}, Bu = {}, Fu = {}, $u = {}, Y = "web", Ou = [];
|
|
1779
|
-
function
|
|
1801
|
+
function Qe(e, u, t = "", a) {
|
|
1780
1802
|
return cu = [], K = {}, Bu = a?.handlers || {}, $u = a?.styles || {}, Y = a?.platform || "web", Ou = a?.imports || [], Fu = a?.directives || {}, {
|
|
1781
1803
|
nodes: (qu({
|
|
1782
1804
|
id: e,
|
|
@@ -1784,12 +1806,12 @@ function Ze(e, u, t = "", a) {
|
|
|
1784
1806
|
source: t,
|
|
1785
1807
|
isProd: !0,
|
|
1786
1808
|
slotted: !0
|
|
1787
|
-
}).ast?.children || []).map((n) =>
|
|
1809
|
+
}).ast?.children || []).map((n) => W(n)).filter((n) => !!n),
|
|
1788
1810
|
slots: cu,
|
|
1789
1811
|
context: K
|
|
1790
1812
|
};
|
|
1791
1813
|
}
|
|
1792
|
-
function
|
|
1814
|
+
function Ke(e) {
|
|
1793
1815
|
if (e.name === "slot") {
|
|
1794
1816
|
let u = "default";
|
|
1795
1817
|
const t = [];
|
|
@@ -1801,7 +1823,7 @@ function Qe(e) {
|
|
|
1801
1823
|
});
|
|
1802
1824
|
}
|
|
1803
1825
|
}
|
|
1804
|
-
function
|
|
1826
|
+
function Ye(e) {
|
|
1805
1827
|
const u = {};
|
|
1806
1828
|
for (const t of e) {
|
|
1807
1829
|
if (t.type === x.ATTRIBUTE)
|
|
@@ -1815,7 +1837,7 @@ function Ke(e) {
|
|
|
1815
1837
|
u[t.name] = t.value?.content || "";
|
|
1816
1838
|
if (t.type === x.DIRECTIVE && t.name === "bind" && (t.exp?.type === x.SIMPLE_EXPRESSION && t.arg?.type === x.SIMPLE_EXPRESSION && (u[t.arg.content] = q(`(${t.exp.content})`)), t.exp?.type === x.COMPOUND_EXPRESSION && t.arg?.type === x.SIMPLE_EXPRESSION))
|
|
1817
1839
|
if (t.arg.content === "class" && u.class) {
|
|
1818
|
-
const a = t.exp.ast.type, i =
|
|
1840
|
+
const a = t.exp.ast.type, i = me(
|
|
1819
1841
|
u.class,
|
|
1820
1842
|
t.exp.loc.source,
|
|
1821
1843
|
a
|
|
@@ -1828,18 +1850,18 @@ function Ke(e) {
|
|
|
1828
1850
|
}
|
|
1829
1851
|
return u;
|
|
1830
1852
|
}
|
|
1831
|
-
function
|
|
1853
|
+
function u0(e = {}) {
|
|
1832
1854
|
const u = {};
|
|
1833
1855
|
for (const [t, a] of Object.entries(e))
|
|
1834
1856
|
u[t === "tap" ? "click" : t] = a;
|
|
1835
1857
|
return u;
|
|
1836
1858
|
}
|
|
1837
|
-
function
|
|
1859
|
+
function e0(e, u = {}) {
|
|
1838
1860
|
const t = {};
|
|
1839
1861
|
for (const a of e)
|
|
1840
1862
|
if (a.type === x.DIRECTIVE && a.name === "on" && a.arg?.type === x.SIMPLE_EXPRESSION) {
|
|
1841
1863
|
const i = a.modifiers.reduce(
|
|
1842
|
-
(
|
|
1864
|
+
(d, l) => (l.content && (d[l.content] = !0), d),
|
|
1843
1865
|
{}
|
|
1844
1866
|
);
|
|
1845
1867
|
let s = a.exp?.loc.source || "";
|
|
@@ -1852,15 +1874,15 @@ function u0(e, u = {}) {
|
|
|
1852
1874
|
modifiers: i
|
|
1853
1875
|
};
|
|
1854
1876
|
else {
|
|
1855
|
-
const
|
|
1877
|
+
const d = a.exp?.ast?.type === "AssignmentExpression";
|
|
1856
1878
|
t[a.arg.content] = {
|
|
1857
1879
|
name: a.arg.content,
|
|
1858
|
-
handler: fu(
|
|
1880
|
+
handler: fu(d ? `()=> {${s}}` : `(${s})`),
|
|
1859
1881
|
modifiers: i
|
|
1860
1882
|
};
|
|
1861
1883
|
}
|
|
1862
1884
|
}
|
|
1863
|
-
return
|
|
1885
|
+
return u0(t);
|
|
1864
1886
|
}
|
|
1865
1887
|
function Z(e, u) {
|
|
1866
1888
|
const t = [], a = ["if", "for", "model", "show", "bind", "html"];
|
|
@@ -1886,41 +1908,41 @@ function Z(e, u) {
|
|
|
1886
1908
|
}
|
|
1887
1909
|
}), e.type === x.ELEMENT) {
|
|
1888
1910
|
const i = e.props.filter(
|
|
1889
|
-
(
|
|
1890
|
-
), s = i.filter((
|
|
1891
|
-
s.length && s.forEach((
|
|
1911
|
+
(d) => d.type === x.DIRECTIVE
|
|
1912
|
+
), s = i.filter((d) => d.name === "model");
|
|
1913
|
+
s.length && s.forEach((d) => {
|
|
1892
1914
|
t.push({
|
|
1893
1915
|
name: "vModel",
|
|
1894
|
-
arg:
|
|
1895
|
-
value: q(
|
|
1916
|
+
arg: d.arg?.content,
|
|
1917
|
+
value: q(d.exp?.loc.source || "")
|
|
1896
1918
|
});
|
|
1897
1919
|
});
|
|
1898
|
-
const r = i.find((
|
|
1920
|
+
const r = i.find((d) => d.name === "show");
|
|
1899
1921
|
r && t.push({
|
|
1900
1922
|
name: "vShow",
|
|
1901
1923
|
value: q(r.exp?.loc.source || "")
|
|
1902
1924
|
});
|
|
1903
|
-
const n = i.find((
|
|
1925
|
+
const n = i.find((d) => d.name === "bind" && !d.arg);
|
|
1904
1926
|
n && t.push({
|
|
1905
1927
|
name: "vBind",
|
|
1906
1928
|
value: q(n.exp?.loc.source || "")
|
|
1907
1929
|
});
|
|
1908
|
-
const o = i.find((
|
|
1930
|
+
const o = i.find((d) => d.name === "html");
|
|
1909
1931
|
o && t.push({
|
|
1910
1932
|
name: "vHtml",
|
|
1911
1933
|
value: q(o.exp?.loc.source || "")
|
|
1912
1934
|
});
|
|
1913
|
-
const c = i.filter((
|
|
1914
|
-
for (const
|
|
1915
|
-
const
|
|
1935
|
+
const c = i.filter((d) => !a.includes(d.name));
|
|
1936
|
+
for (const d of c) {
|
|
1937
|
+
const l = (d.modifiers || []).reduce(
|
|
1916
1938
|
(v, A) => (v[A.content] = !0, v),
|
|
1917
1939
|
{}
|
|
1918
|
-
), m =
|
|
1940
|
+
), m = d.arg?.content || void 0, p = Fu[d.name];
|
|
1919
1941
|
p && t.push({
|
|
1920
1942
|
name: p,
|
|
1921
|
-
value: q(
|
|
1943
|
+
value: q(d.exp?.loc.source || ""),
|
|
1922
1944
|
arg: m,
|
|
1923
|
-
modifiers:
|
|
1945
|
+
modifiers: l
|
|
1924
1946
|
});
|
|
1925
1947
|
}
|
|
1926
1948
|
}
|
|
@@ -1941,7 +1963,7 @@ function Mu(e) {
|
|
|
1941
1963
|
}
|
|
1942
1964
|
return u || su();
|
|
1943
1965
|
}
|
|
1944
|
-
function
|
|
1966
|
+
function t0(e) {
|
|
1945
1967
|
const u = /\.\/(.+?)\.vue/;
|
|
1946
1968
|
for (const { from: t, imports: a } of Ou) {
|
|
1947
1969
|
if (Array.isArray(a) && a.includes(e))
|
|
@@ -1973,23 +1995,23 @@ function nu(e, u) {
|
|
|
1973
1995
|
function iu(e, u, t, a) {
|
|
1974
1996
|
const i = {
|
|
1975
1997
|
name: ju(e.tag, Y),
|
|
1976
|
-
from:
|
|
1977
|
-
props:
|
|
1978
|
-
events:
|
|
1998
|
+
from: t0(e.tag),
|
|
1999
|
+
props: Ye(e.props),
|
|
2000
|
+
events: e0(e.props, Bu),
|
|
1979
2001
|
directives: Z(t || e, a)
|
|
1980
2002
|
};
|
|
1981
2003
|
i.id = Mu(e), nu(i, u);
|
|
1982
2004
|
const s = uu(i, e.children);
|
|
1983
|
-
return nu(i, u),
|
|
2005
|
+
return nu(i, u), Ke(s), s;
|
|
1984
2006
|
}
|
|
1985
|
-
function
|
|
1986
|
-
return e.map((t) =>
|
|
2007
|
+
function a0(e, u) {
|
|
2008
|
+
return e.map((t) => W(t, u, e));
|
|
1987
2009
|
}
|
|
1988
|
-
function
|
|
2010
|
+
function W(e, u, t) {
|
|
1989
2011
|
if (e.type === x.ELEMENT)
|
|
1990
2012
|
return iu(e, u);
|
|
1991
2013
|
if (e.type === x.IF)
|
|
1992
|
-
return
|
|
2014
|
+
return i0(e);
|
|
1993
2015
|
if (t && e.type === x.IF_BRANCH) {
|
|
1994
2016
|
const a = e.children.find(
|
|
1995
2017
|
(i) => i.type === x.ELEMENT || i.type === x.FOR
|
|
@@ -2052,10 +2074,10 @@ function uu(e, u = []) {
|
|
|
2052
2074
|
for (const s of a.children) {
|
|
2053
2075
|
const r = s.type === x.TEXT || s.type === x.TEXT_CALL ? {
|
|
2054
2076
|
name: "span",
|
|
2055
|
-
children:
|
|
2056
|
-
} :
|
|
2077
|
+
children: W(s, e)
|
|
2078
|
+
} : W(s, e);
|
|
2057
2079
|
r && (Array.isArray(r) ? r : [r]).forEach((o) => {
|
|
2058
|
-
|
|
2080
|
+
ne(o) && i?.type === x.DIRECTIVE && (o.id = Mu(s), o.slot = {
|
|
2059
2081
|
name: i.arg?.content || "default",
|
|
2060
2082
|
params: i.exp?.identifiers || [],
|
|
2061
2083
|
scope: i.exp?.type === x.SIMPLE_EXPRESSION ? i.exp.content : ""
|
|
@@ -2069,10 +2091,10 @@ function uu(e, u = []) {
|
|
|
2069
2091
|
t.push(...s);
|
|
2070
2092
|
}
|
|
2071
2093
|
} else if (a.type === x.TEXT_CALL) {
|
|
2072
|
-
const i =
|
|
2094
|
+
const i = W(a, e);
|
|
2073
2095
|
i && (Array.isArray(i) ? t.push(...i) : t.push(i));
|
|
2074
2096
|
} else {
|
|
2075
|
-
const i =
|
|
2097
|
+
const i = W(a, e);
|
|
2076
2098
|
i && (Array.isArray(i) ? t.push(...i) : t.push(i));
|
|
2077
2099
|
}
|
|
2078
2100
|
if (t.length === 1) {
|
|
@@ -2082,18 +2104,18 @@ function uu(e, u = []) {
|
|
|
2082
2104
|
e.children = t.map((a) => typeof a == "string" ? { name: "span", children: a } : a);
|
|
2083
2105
|
return e;
|
|
2084
2106
|
}
|
|
2085
|
-
function
|
|
2107
|
+
function i0(e) {
|
|
2086
2108
|
const u = e.branches || [], t = u[0], a = t.children || [];
|
|
2087
2109
|
if (t?.isTemplateIf || a.length > 1 || a[0].type !== x.ELEMENT) {
|
|
2088
2110
|
const s = { name: "span", directives: Z(t, u) };
|
|
2089
2111
|
return uu(s, t.children);
|
|
2090
2112
|
} else
|
|
2091
|
-
return
|
|
2113
|
+
return a0(u);
|
|
2092
2114
|
}
|
|
2093
|
-
function
|
|
2115
|
+
function s0(e) {
|
|
2094
2116
|
const u = [], t = {}, a = [];
|
|
2095
2117
|
try {
|
|
2096
|
-
const i =
|
|
2118
|
+
const i = re.compileString(e, { charset: !1 })?.css || "", s = se.parse(i), r = /^.[\w]+_[\w]{5,}/;
|
|
2097
2119
|
for (const n of s.nodes)
|
|
2098
2120
|
if (n.type === "rule") {
|
|
2099
2121
|
const o = {};
|
|
@@ -2115,10 +2137,10 @@ function i0(e) {
|
|
|
2115
2137
|
}
|
|
2116
2138
|
const Pu = "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(
|
|
2117
2139
|
", "
|
|
2118
|
-
),
|
|
2140
|
+
), r0 = "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(
|
|
2119
2141
|
", "
|
|
2120
|
-
),
|
|
2121
|
-
class
|
|
2142
|
+
), c0 = "user", j = "User";
|
|
2143
|
+
class n0 {
|
|
2122
2144
|
validate(u) {
|
|
2123
2145
|
const t = {
|
|
2124
2146
|
valid: !0,
|
|
@@ -2142,7 +2164,7 @@ class c0 {
|
|
|
2142
2164
|
let t = "";
|
|
2143
2165
|
try {
|
|
2144
2166
|
const a = D(u);
|
|
2145
|
-
|
|
2167
|
+
z(a.script);
|
|
2146
2168
|
} catch (a) {
|
|
2147
2169
|
a instanceof SyntaxError && (t = a.message);
|
|
2148
2170
|
}
|
|
@@ -2179,7 +2201,7 @@ class c0 {
|
|
|
2179
2201
|
checkVtjIcons(u) {
|
|
2180
2202
|
const t = this.findVtjIcons(u), a = [];
|
|
2181
2203
|
for (const i of t)
|
|
2182
|
-
|
|
2204
|
+
r0.includes(i) || a.push(i);
|
|
2183
2205
|
return a;
|
|
2184
2206
|
}
|
|
2185
2207
|
hasUnchangedComment(u) {
|
|
@@ -2194,7 +2216,7 @@ class c0 {
|
|
|
2194
2216
|
);
|
|
2195
2217
|
}
|
|
2196
2218
|
}
|
|
2197
|
-
function
|
|
2219
|
+
function o0(e) {
|
|
2198
2220
|
const u = [];
|
|
2199
2221
|
let t = e;
|
|
2200
2222
|
const a = D(e);
|
|
@@ -2205,14 +2227,14 @@ function n0(e) {
|
|
|
2205
2227
|
fixedCode: e,
|
|
2206
2228
|
changes: []
|
|
2207
2229
|
};
|
|
2208
|
-
const i =
|
|
2230
|
+
const i = d0(a.script), s = a.template;
|
|
2209
2231
|
let r = s;
|
|
2210
2232
|
const n = [], o = /\{\{([^}]+)\}\}/g;
|
|
2211
2233
|
let c;
|
|
2212
2234
|
for (; (c = o.exec(s)) !== null; ) {
|
|
2213
|
-
const b = c[0], S = c[1], I =
|
|
2235
|
+
const b = c[0], S = c[1], I = O(S, i);
|
|
2214
2236
|
if (I !== S) {
|
|
2215
|
-
const g =
|
|
2237
|
+
const g = $(s, c.index);
|
|
2216
2238
|
n.push({
|
|
2217
2239
|
start: c.index,
|
|
2218
2240
|
end: c.index + b.length,
|
|
@@ -2229,11 +2251,11 @@ function n0(e) {
|
|
|
2229
2251
|
});
|
|
2230
2252
|
}
|
|
2231
2253
|
}
|
|
2232
|
-
const
|
|
2233
|
-
for (; (c =
|
|
2234
|
-
const b = c[0], S = c[1], I = c[2], g =
|
|
2254
|
+
const d = /:(\w+)="([^"]+)"/g;
|
|
2255
|
+
for (; (c = d.exec(s)) !== null; ) {
|
|
2256
|
+
const b = c[0], S = c[1], I = c[2], g = O(I, i);
|
|
2235
2257
|
if (g !== I) {
|
|
2236
|
-
const w =
|
|
2258
|
+
const w = $(s, c.index);
|
|
2237
2259
|
n.push({
|
|
2238
2260
|
start: c.index,
|
|
2239
2261
|
end: c.index + b.length,
|
|
@@ -2250,11 +2272,11 @@ function n0(e) {
|
|
|
2250
2272
|
});
|
|
2251
2273
|
}
|
|
2252
2274
|
}
|
|
2253
|
-
const
|
|
2254
|
-
for (; (c =
|
|
2255
|
-
const b = c[0], S = c[1], I = c[2], g =
|
|
2275
|
+
const l = /v-(if|else-if|show)="([^"]+)"/g;
|
|
2276
|
+
for (; (c = l.exec(s)) !== null; ) {
|
|
2277
|
+
const b = c[0], S = c[1], I = c[2], g = O(I, i);
|
|
2256
2278
|
if (g !== I) {
|
|
2257
|
-
const w =
|
|
2279
|
+
const w = $(s, c.index);
|
|
2258
2280
|
n.push({
|
|
2259
2281
|
start: c.index,
|
|
2260
2282
|
end: c.index + b.length,
|
|
@@ -2275,22 +2297,22 @@ function n0(e) {
|
|
|
2275
2297
|
for (; (c = m.exec(s)) !== null; ) {
|
|
2276
2298
|
const b = c[0], I = c[1].match(/^(.+)\s+in\s+(.+)$/);
|
|
2277
2299
|
if (I) {
|
|
2278
|
-
const [, g, w] = I, R =
|
|
2300
|
+
const [, g, w] = I, R = O(
|
|
2279
2301
|
w,
|
|
2280
2302
|
i
|
|
2281
2303
|
);
|
|
2282
2304
|
if (R !== w) {
|
|
2283
|
-
const
|
|
2305
|
+
const H = $(s, c.index), tu = `v-for="${g} in ${R}"`;
|
|
2284
2306
|
n.push({
|
|
2285
2307
|
start: c.index,
|
|
2286
2308
|
end: c.index + b.length,
|
|
2287
2309
|
original: b,
|
|
2288
2310
|
replacement: tu,
|
|
2289
|
-
line:
|
|
2290
|
-
column:
|
|
2311
|
+
line: H.line,
|
|
2312
|
+
column: H.column
|
|
2291
2313
|
}), u.push({
|
|
2292
|
-
line:
|
|
2293
|
-
column:
|
|
2314
|
+
line: H.line + 1,
|
|
2315
|
+
column: H.column,
|
|
2294
2316
|
original: w,
|
|
2295
2317
|
fixed: R,
|
|
2296
2318
|
message: "修复 v-for 指令:添加 state. 前缀"
|
|
@@ -2300,9 +2322,9 @@ function n0(e) {
|
|
|
2300
2322
|
}
|
|
2301
2323
|
const p = /v-model="([^"]+)"/g;
|
|
2302
2324
|
for (; (c = p.exec(s)) !== null; ) {
|
|
2303
|
-
const b = c[0], S = c[1], I =
|
|
2325
|
+
const b = c[0], S = c[1], I = O(S, i);
|
|
2304
2326
|
if (I !== S) {
|
|
2305
|
-
const g =
|
|
2327
|
+
const g = $(s, c.index);
|
|
2306
2328
|
n.push({
|
|
2307
2329
|
start: c.index,
|
|
2308
2330
|
end: c.index + b.length,
|
|
@@ -2321,9 +2343,9 @@ function n0(e) {
|
|
|
2321
2343
|
}
|
|
2322
2344
|
const v = /v-bind="([^"]+)"/g;
|
|
2323
2345
|
for (; (c = v.exec(s)) !== null; ) {
|
|
2324
|
-
const b = c[0], S = c[1], I =
|
|
2346
|
+
const b = c[0], S = c[1], I = O(S, i);
|
|
2325
2347
|
if (I !== S) {
|
|
2326
|
-
const g =
|
|
2348
|
+
const g = $(s, c.index);
|
|
2327
2349
|
n.push({
|
|
2328
2350
|
start: c.index,
|
|
2329
2351
|
end: c.index + b.length,
|
|
@@ -2342,9 +2364,9 @@ function n0(e) {
|
|
|
2342
2364
|
}
|
|
2343
2365
|
const A = /v-(text|html)="([^"]+)"/g;
|
|
2344
2366
|
for (; (c = A.exec(s)) !== null; ) {
|
|
2345
|
-
const b = c[0], S = c[1], I = c[2], g =
|
|
2367
|
+
const b = c[0], S = c[1], I = c[2], g = O(I, i);
|
|
2346
2368
|
if (g !== I) {
|
|
2347
|
-
const w =
|
|
2369
|
+
const w = $(s, c.index);
|
|
2348
2370
|
n.push({
|
|
2349
2371
|
start: c.index,
|
|
2350
2372
|
end: c.index + b.length,
|
|
@@ -2363,9 +2385,9 @@ function n0(e) {
|
|
|
2363
2385
|
}
|
|
2364
2386
|
const y = /(@|v-on:)(\w+)="([^"]+)"/g;
|
|
2365
2387
|
for (; (c = y.exec(s)) !== null; ) {
|
|
2366
|
-
const b = c[0], S = c[1], I = c[2], g = c[3], w =
|
|
2388
|
+
const b = c[0], S = c[1], I = c[2], g = c[3], w = f0(g, i);
|
|
2367
2389
|
if (w !== g) {
|
|
2368
|
-
const R =
|
|
2390
|
+
const R = $(s, c.index);
|
|
2369
2391
|
n.push({
|
|
2370
2392
|
start: c.index,
|
|
2371
2393
|
end: c.index + b.length,
|
|
@@ -2397,10 +2419,10 @@ function n0(e) {
|
|
|
2397
2419
|
changes: u
|
|
2398
2420
|
};
|
|
2399
2421
|
}
|
|
2400
|
-
function
|
|
2422
|
+
function d0(e) {
|
|
2401
2423
|
const u = /* @__PURE__ */ new Set();
|
|
2402
2424
|
try {
|
|
2403
|
-
const t =
|
|
2425
|
+
const t = z(e);
|
|
2404
2426
|
eu(t, {
|
|
2405
2427
|
CallExpression(a) {
|
|
2406
2428
|
if (a.node.callee.type === "Identifier" && a.node.callee.name === "reactive" && a.node.arguments.length > 0 && a.node.arguments[0].type === "ObjectExpression") {
|
|
@@ -2416,14 +2438,14 @@ function o0(e) {
|
|
|
2416
2438
|
}
|
|
2417
2439
|
return u;
|
|
2418
2440
|
}
|
|
2419
|
-
function
|
|
2441
|
+
function O(e, u) {
|
|
2420
2442
|
let t = e.trim();
|
|
2421
2443
|
return u.forEach((a) => {
|
|
2422
2444
|
const i = new RegExp(`(?<![\\w.])${a}(?![\\w])`, "g");
|
|
2423
2445
|
i.test(t) && !t.includes(`state.${a}`) && (t = t.replace(i, `state.${a}`));
|
|
2424
2446
|
}), t;
|
|
2425
2447
|
}
|
|
2426
|
-
function
|
|
2448
|
+
function f0(e, u) {
|
|
2427
2449
|
let t = e.trim();
|
|
2428
2450
|
return u.forEach((a) => {
|
|
2429
2451
|
const i = new RegExp(
|
|
@@ -2434,9 +2456,9 @@ function d0(e, u) {
|
|
|
2434
2456
|
"g"
|
|
2435
2457
|
);
|
|
2436
2458
|
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));
|
|
2437
|
-
}),
|
|
2459
|
+
}), O(t, u);
|
|
2438
2460
|
}
|
|
2439
|
-
function
|
|
2461
|
+
function $(e, u) {
|
|
2440
2462
|
const t = e.substring(0, u).split(`
|
|
2441
2463
|
`);
|
|
2442
2464
|
return {
|
|
@@ -2444,15 +2466,15 @@ function B(e, u) {
|
|
|
2444
2466
|
column: t[t.length - 1].length
|
|
2445
2467
|
};
|
|
2446
2468
|
}
|
|
2447
|
-
class
|
|
2469
|
+
class l0 {
|
|
2448
2470
|
fixBasedOnValidation(u, t) {
|
|
2449
2471
|
let a = u;
|
|
2450
|
-
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)),
|
|
2472
|
+
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)), o0(a).fixedCode;
|
|
2451
2473
|
}
|
|
2452
2474
|
fixVantIcons(u) {
|
|
2453
2475
|
const t = D(u), a = t.template.replace(
|
|
2454
2476
|
/<(?:VanIcon|van-icon)\s+[^>]*name="([^"]+)"[^>]*>/g,
|
|
2455
|
-
(i, s) => Pu.includes(s) ? i : i.replace(s,
|
|
2477
|
+
(i, s) => Pu.includes(s) ? i : i.replace(s, c0)
|
|
2456
2478
|
);
|
|
2457
2479
|
return this.reconstructSFC(t, a, t.script);
|
|
2458
2480
|
}
|
|
@@ -2463,10 +2485,10 @@ class f0 {
|
|
|
2463
2485
|
if (r.node.source.value === "@vtj/icons") {
|
|
2464
2486
|
const n = r.node.specifiers, o = [];
|
|
2465
2487
|
let c = !1;
|
|
2466
|
-
for (const
|
|
2467
|
-
const
|
|
2468
|
-
|
|
2469
|
-
V.importSpecifier(
|
|
2488
|
+
for (const d of n) {
|
|
2489
|
+
const l = d.imported?.name;
|
|
2490
|
+
l === j && (c = !0), t.includes(l) || o.push(
|
|
2491
|
+
V.importSpecifier(d.local, d.imported)
|
|
2470
2492
|
);
|
|
2471
2493
|
}
|
|
2472
2494
|
c || o.push(
|
|
@@ -2484,7 +2506,7 @@ class f0 {
|
|
|
2484
2506
|
if (V.isReturnStatement(o) && V.isObjectExpression(o.argument)) {
|
|
2485
2507
|
const c = o.argument.properties || [];
|
|
2486
2508
|
o.argument.properties = c.filter(
|
|
2487
|
-
(
|
|
2509
|
+
(d) => !t.includes(d.key.name)
|
|
2488
2510
|
), o.argument.properties.push(
|
|
2489
2511
|
V.objectProperty(
|
|
2490
2512
|
V.identifier(j),
|
|
@@ -2540,22 +2562,22 @@ ${a}
|
|
|
2540
2562
|
}), i;
|
|
2541
2563
|
}
|
|
2542
2564
|
}
|
|
2543
|
-
async function
|
|
2544
|
-
const { id: u, name: t, source: a, project: i } = e, s =
|
|
2565
|
+
async function k0(e) {
|
|
2566
|
+
const { id: u, name: t, source: a, project: i } = e, s = oe(a, t);
|
|
2545
2567
|
if (s)
|
|
2546
2568
|
return Promise.reject(s);
|
|
2547
|
-
const { dependencies: r = [], platform: n = "web" } = i || {}, o = new
|
|
2548
|
-
let
|
|
2549
|
-
if (!
|
|
2550
|
-
return
|
|
2551
|
-
const m = c.fixBasedOnValidation(a,
|
|
2569
|
+
const { dependencies: r = [], platform: n = "web" } = i || {}, o = new n0(), c = new l0(), d = o.validate(a);
|
|
2570
|
+
let l = [];
|
|
2571
|
+
if (!d.valid)
|
|
2572
|
+
return l = d.errors, Promise.reject(l);
|
|
2573
|
+
const m = c.fixBasedOnValidation(a, d), p = D(m), {
|
|
2552
2574
|
styles: v,
|
|
2553
2575
|
css: A,
|
|
2554
2576
|
errors: y
|
|
2555
|
-
} =
|
|
2577
|
+
} = s0(p.styles.join(`
|
|
2556
2578
|
`));
|
|
2557
|
-
if (
|
|
2558
|
-
return Promise.reject(
|
|
2579
|
+
if (l.push(...y), l.length)
|
|
2580
|
+
return Promise.reject(l);
|
|
2559
2581
|
const {
|
|
2560
2582
|
state: b,
|
|
2561
2583
|
watch: S,
|
|
@@ -2563,14 +2585,14 @@ async function N0(e) {
|
|
|
2563
2585
|
computed: g,
|
|
2564
2586
|
methods: w,
|
|
2565
2587
|
props: R,
|
|
2566
|
-
emits:
|
|
2588
|
+
emits: H,
|
|
2567
2589
|
expose: tu,
|
|
2568
2590
|
inject: Uu,
|
|
2569
2591
|
handlers: Hu,
|
|
2570
2592
|
imports: lu,
|
|
2571
2593
|
dataSources: Gu,
|
|
2572
2594
|
directives: Wu
|
|
2573
|
-
} =
|
|
2595
|
+
} = Ce(p.script, i), { nodes: zu, slots: Ju, context: Xu } = Qe(u, t, p.template, {
|
|
2574
2596
|
platform: n,
|
|
2575
2597
|
handlers: Hu,
|
|
2576
2598
|
styles: v,
|
|
@@ -2588,11 +2610,13 @@ async function N0(e) {
|
|
|
2588
2610
|
methods: w,
|
|
2589
2611
|
dataSources: Gu,
|
|
2590
2612
|
slots: Ju,
|
|
2591
|
-
emits:
|
|
2613
|
+
emits: H,
|
|
2592
2614
|
expose: tu,
|
|
2593
2615
|
nodes: zu,
|
|
2594
2616
|
css: A
|
|
2595
|
-
}, Zu = Object.keys(g || {}), Qu = [
|
|
2617
|
+
}, Zu = Object.keys(g || {}), Qu = (R || []).map(
|
|
2618
|
+
(_) => typeof _ == "string" ? _ : _.name
|
|
2619
|
+
), Ku = [
|
|
2596
2620
|
"$el",
|
|
2597
2621
|
"$emit",
|
|
2598
2622
|
"$nextTick",
|
|
@@ -2609,30 +2633,31 @@ async function N0(e) {
|
|
|
2609
2633
|
"$props",
|
|
2610
2634
|
"props",
|
|
2611
2635
|
...Object.keys(w || {})
|
|
2612
|
-
], { libs:
|
|
2636
|
+
], { libs: Yu } = p0(lu, r), hu = {
|
|
2613
2637
|
platform: n,
|
|
2614
2638
|
context: Xu,
|
|
2615
2639
|
computed: Zu,
|
|
2616
|
-
libs:
|
|
2617
|
-
members:
|
|
2640
|
+
libs: Yu,
|
|
2641
|
+
members: Ku,
|
|
2642
|
+
props: Qu
|
|
2618
2643
|
};
|
|
2619
|
-
return await
|
|
2644
|
+
return await b0(
|
|
2620
2645
|
bu,
|
|
2621
|
-
async (
|
|
2622
|
-
await
|
|
2646
|
+
async (_) => {
|
|
2647
|
+
await h0(_, async (J) => {
|
|
2623
2648
|
if (du(J)) {
|
|
2624
|
-
const
|
|
2625
|
-
J.value = yu(
|
|
2649
|
+
const ue = await xu(J.value);
|
|
2650
|
+
J.value = yu(ue, _.id, hu);
|
|
2626
2651
|
}
|
|
2627
2652
|
});
|
|
2628
2653
|
},
|
|
2629
|
-
async (
|
|
2630
|
-
const J = await xu(
|
|
2631
|
-
|
|
2654
|
+
async (_) => {
|
|
2655
|
+
const J = await xu(_.value);
|
|
2656
|
+
_.value = yu(J, "", hu);
|
|
2632
2657
|
}
|
|
2633
|
-
), new
|
|
2658
|
+
), new te(bu).toDsl();
|
|
2634
2659
|
}
|
|
2635
|
-
async function
|
|
2660
|
+
async function b0(e, u, t) {
|
|
2636
2661
|
const a = async (p, v) => {
|
|
2637
2662
|
if (await u(p, v), Array.isArray(p?.children))
|
|
2638
2663
|
for (const A of p?.children || [])
|
|
@@ -2653,8 +2678,8 @@ async function l0(e, u, t) {
|
|
|
2653
2678
|
computed: n,
|
|
2654
2679
|
props: o,
|
|
2655
2680
|
dataSources: c,
|
|
2656
|
-
methods:
|
|
2657
|
-
lifeCycles:
|
|
2681
|
+
methods: d,
|
|
2682
|
+
lifeCycles: l,
|
|
2658
2683
|
inject: m
|
|
2659
2684
|
} = e;
|
|
2660
2685
|
if (await i({
|
|
@@ -2663,14 +2688,14 @@ async function l0(e, u, t) {
|
|
|
2663
2688
|
computed: n,
|
|
2664
2689
|
props: o,
|
|
2665
2690
|
dataSources: c,
|
|
2666
|
-
methods:
|
|
2667
|
-
lifeCycles:
|
|
2691
|
+
methods: d,
|
|
2692
|
+
lifeCycles: l,
|
|
2668
2693
|
inject: m
|
|
2669
2694
|
}), Array.isArray(e.nodes))
|
|
2670
2695
|
for (const p of e.nodes)
|
|
2671
2696
|
await a(p);
|
|
2672
2697
|
}
|
|
2673
|
-
async function
|
|
2698
|
+
async function h0(e, u) {
|
|
2674
2699
|
const t = async (a) => {
|
|
2675
2700
|
if (!a || typeof a != "object") return;
|
|
2676
2701
|
if (Array.isArray(a)) {
|
|
@@ -2688,7 +2713,7 @@ async function b0(e, u) {
|
|
|
2688
2713
|
};
|
|
2689
2714
|
await t(e);
|
|
2690
2715
|
}
|
|
2691
|
-
function
|
|
2716
|
+
function p0(e = [], u = []) {
|
|
2692
2717
|
const t = {}, a = u.reduce(
|
|
2693
2718
|
(i, s) => (i[s.package] = s.library, i),
|
|
2694
2719
|
{}
|
|
@@ -2708,12 +2733,12 @@ function h0(e = [], u = []) {
|
|
|
2708
2733
|
};
|
|
2709
2734
|
}
|
|
2710
2735
|
export {
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2736
|
+
l0 as AutoFixer,
|
|
2737
|
+
n0 as ComponentValidator,
|
|
2738
|
+
T0 as VTJ_PARSER_VERSION,
|
|
2714
2739
|
Tu as htmlToNodes,
|
|
2715
|
-
|
|
2716
|
-
|
|
2740
|
+
N0 as parseUniApp,
|
|
2741
|
+
k0 as parseVue,
|
|
2717
2742
|
yu as patchCode,
|
|
2718
|
-
|
|
2743
|
+
B as replacer
|
|
2719
2744
|
};
|