void 0.7.5 → 0.7.6
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/cli/cli.mjs +8 -8
- package/dist/{db-RqxhOT2E.mjs → db-DvBg7Oc5.mjs} +1 -1
- package/dist/{deploy-CRIz77mw.mjs → deploy-B5rTuzXw.mjs} +39 -12
- package/dist/index.mjs +463 -34
- package/dist/{init-FMZ29UZW.mjs → init-BiXWyKEf.mjs} +2 -2
- package/dist/pages/client.d.mts +1 -1
- package/dist/pages/index.d.mts +1 -1
- package/dist/pages/islands-plugin.d.mts +2 -11
- package/dist/pages/islands-plugin.mjs +1 -63
- package/dist/pages/protocol.d.mts +1 -1
- package/dist/pages/protocol.mjs +96 -12
- package/dist/plugin-inference-CXUuq0aC.mjs +577 -0
- package/dist/{prepare-PqAbhLte.mjs → prepare-BrfiJBju.mjs} +2 -2
- package/dist/{preset-jKn1hQwP.mjs → preset-BhnZpb7t.mjs} +1 -1
- package/dist/{protocol-DxGzKEz2.d.mts → protocol-COz1NHxc.d.mts} +3 -0
- package/dist/{scan-QtRTdh94.mjs → scan-vv5u7rHu.mjs} +1 -1
- package/dist/{types-AdKzPp2C.d.mts → types-D6AuY5Bf.d.mts} +9 -1
- package/package.json +3 -3
- package/dist/plugin-inference-CCtRkt9O.mjs +0 -2476
|
@@ -1,2476 +0,0 @@
|
|
|
1
|
-
import { a as join } from "./pathe.M-eThtNZ-D-kmWkCS.mjs";
|
|
2
|
-
import { n as globSync } from "./dist-DUyXJLkq.mjs";
|
|
3
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
4
|
-
import { parseSync } from "vite";
|
|
5
|
-
//#region ../../node_modules/.pnpm/es-module-lexer@2.1.0/node_modules/es-module-lexer/dist/lexer.asm.js
|
|
6
|
-
let e, a, r, i = 2 << 19;
|
|
7
|
-
const s = 1 === new Uint8Array(new Uint16Array([1]).buffer)[0] ? function(e, a) {
|
|
8
|
-
const r = e.length;
|
|
9
|
-
let i = 0;
|
|
10
|
-
for (; i < r;) a[i] = e.charCodeAt(i++);
|
|
11
|
-
} : function(e, a) {
|
|
12
|
-
const r = e.length;
|
|
13
|
-
let i = 0;
|
|
14
|
-
for (; i < r;) {
|
|
15
|
-
const r = e.charCodeAt(i);
|
|
16
|
-
a[i++] = (255 & r) << 8 | r >>> 8;
|
|
17
|
-
}
|
|
18
|
-
}, f = "xportmportlassforetaourceeferromsyncunctionvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";
|
|
19
|
-
let t, c, n;
|
|
20
|
-
function parse(k, u = "@") {
|
|
21
|
-
t = k, c = u;
|
|
22
|
-
const l = 2 * t.length + (2 << 18);
|
|
23
|
-
if (l > i || !e) {
|
|
24
|
-
for (; l > i;) i *= 2;
|
|
25
|
-
a = new ArrayBuffer(i), s(f, new Uint16Array(a, 16, 109)), e = function(e, a, r) {
|
|
26
|
-
var i = new e.Int8Array(r), s = new e.Int16Array(r), f = new e.Int32Array(r), t = new e.Uint8Array(r);
|
|
27
|
-
new e.Uint16Array(r);
|
|
28
|
-
var n = 1040;
|
|
29
|
-
function b() {
|
|
30
|
-
var e = 0, a = 0, r = 0, t = 0, c = 0, b = 0, l = 0, d = 0, C = 0, g = 0;
|
|
31
|
-
g = n;
|
|
32
|
-
n = n + 10240 | 0;
|
|
33
|
-
i[808] = 1;
|
|
34
|
-
i[807] = 0;
|
|
35
|
-
s[401] = 0;
|
|
36
|
-
s[402] = 0;
|
|
37
|
-
f[70] = f[2];
|
|
38
|
-
i[809] = 0;
|
|
39
|
-
f[68] = 0;
|
|
40
|
-
i[806] = 0;
|
|
41
|
-
f[71] = g + 2048;
|
|
42
|
-
f[72] = g;
|
|
43
|
-
i[810] = 0;
|
|
44
|
-
e = (f[3] | 0) + -2 | 0;
|
|
45
|
-
f[73] = e;
|
|
46
|
-
a = e + (f[66] << 1) | 0;
|
|
47
|
-
f[74] = a;
|
|
48
|
-
e: while (1) {
|
|
49
|
-
r = e + 2 | 0;
|
|
50
|
-
f[73] = r;
|
|
51
|
-
if (e >>> 0 >= a >>> 0) {
|
|
52
|
-
t = 18;
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
a: do
|
|
56
|
-
switch (s[r >> 1] | 0) {
|
|
57
|
-
case 9:
|
|
58
|
-
case 10:
|
|
59
|
-
case 11:
|
|
60
|
-
case 12:
|
|
61
|
-
case 13:
|
|
62
|
-
case 32: break;
|
|
63
|
-
case 101:
|
|
64
|
-
if ((((s[402] | 0) == 0 ? J(r) | 0 : 0) ? (I(e + 4 | 0, 16, 10) | 0) == 0 : 0) ? (k(), (i[808] | 0) == 0) : 0) {
|
|
65
|
-
t = 9;
|
|
66
|
-
break e;
|
|
67
|
-
} else t = 17;
|
|
68
|
-
break;
|
|
69
|
-
case 105:
|
|
70
|
-
if (J(r) | 0 ? (I(e + 4 | 0, 26, 10) | 0) == 0 : 0) {
|
|
71
|
-
u();
|
|
72
|
-
t = 17;
|
|
73
|
-
} else t = 17;
|
|
74
|
-
break;
|
|
75
|
-
case 59:
|
|
76
|
-
t = 17;
|
|
77
|
-
break;
|
|
78
|
-
case 47: switch (s[e + 4 >> 1] | 0) {
|
|
79
|
-
case 47:
|
|
80
|
-
P();
|
|
81
|
-
break a;
|
|
82
|
-
case 42:
|
|
83
|
-
m(1);
|
|
84
|
-
break a;
|
|
85
|
-
default:
|
|
86
|
-
t = 16;
|
|
87
|
-
break e;
|
|
88
|
-
}
|
|
89
|
-
default:
|
|
90
|
-
t = 16;
|
|
91
|
-
break e;
|
|
92
|
-
}
|
|
93
|
-
while (0);
|
|
94
|
-
if ((t | 0) == 17) {
|
|
95
|
-
t = 0;
|
|
96
|
-
f[70] = f[73];
|
|
97
|
-
}
|
|
98
|
-
e = f[73] | 0;
|
|
99
|
-
a = f[74] | 0;
|
|
100
|
-
}
|
|
101
|
-
if ((t | 0) == 9) {
|
|
102
|
-
e = f[73] | 0;
|
|
103
|
-
f[70] = e;
|
|
104
|
-
t = 19;
|
|
105
|
-
} else if ((t | 0) == 16) {
|
|
106
|
-
i[808] = 0;
|
|
107
|
-
f[73] = e;
|
|
108
|
-
t = 19;
|
|
109
|
-
} else if ((t | 0) == 18) if (!(i[806] | 0)) {
|
|
110
|
-
e = r;
|
|
111
|
-
t = 19;
|
|
112
|
-
} else e = 0;
|
|
113
|
-
do
|
|
114
|
-
if ((t | 0) == 19) {
|
|
115
|
-
e: while (1) {
|
|
116
|
-
a = e + 2 | 0;
|
|
117
|
-
f[73] = a;
|
|
118
|
-
if (e >>> 0 >= (f[74] | 0) >>> 0) {
|
|
119
|
-
t = 102;
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
a: do
|
|
123
|
-
switch (s[a >> 1] | 0) {
|
|
124
|
-
case 9:
|
|
125
|
-
case 10:
|
|
126
|
-
case 11:
|
|
127
|
-
case 12:
|
|
128
|
-
case 13:
|
|
129
|
-
case 32: break;
|
|
130
|
-
case 101:
|
|
131
|
-
if (((s[402] | 0) == 0 ? J(a) | 0 : 0) ? (I(e + 4 | 0, 16, 10) | 0) == 0 : 0) {
|
|
132
|
-
k();
|
|
133
|
-
t = 101;
|
|
134
|
-
} else t = 101;
|
|
135
|
-
break;
|
|
136
|
-
case 105:
|
|
137
|
-
if (J(a) | 0 ? (I(e + 4 | 0, 26, 10) | 0) == 0 : 0) {
|
|
138
|
-
u();
|
|
139
|
-
t = 101;
|
|
140
|
-
} else t = 101;
|
|
141
|
-
break;
|
|
142
|
-
case 99:
|
|
143
|
-
if ((J(a) | 0 ? (I(e + 4 | 0, 36, 8) | 0) == 0 : 0) ? X(s[e + 12 >> 1] | 0) | 0 : 0) {
|
|
144
|
-
i[810] = 1;
|
|
145
|
-
t = 101;
|
|
146
|
-
} else t = 101;
|
|
147
|
-
break;
|
|
148
|
-
case 40:
|
|
149
|
-
r = f[71] | 0;
|
|
150
|
-
e = s[402] | 0;
|
|
151
|
-
t = e & 65535;
|
|
152
|
-
f[r + (t << 3) >> 2] = 1;
|
|
153
|
-
a = f[70] | 0;
|
|
154
|
-
s[402] = e + 1 << 16 >> 16;
|
|
155
|
-
f[r + (t << 3) + 4 >> 2] = a;
|
|
156
|
-
t = 101;
|
|
157
|
-
break;
|
|
158
|
-
case 91:
|
|
159
|
-
r = f[71] | 0;
|
|
160
|
-
e = s[402] | 0;
|
|
161
|
-
t = e & 65535;
|
|
162
|
-
f[r + (t << 3) >> 2] = 8;
|
|
163
|
-
a = f[70] | 0;
|
|
164
|
-
s[402] = e + 1 << 16 >> 16;
|
|
165
|
-
f[r + (t << 3) + 4 >> 2] = a;
|
|
166
|
-
t = 101;
|
|
167
|
-
break;
|
|
168
|
-
case 93:
|
|
169
|
-
e = s[402] | 0;
|
|
170
|
-
if (!(e << 16 >> 16)) {
|
|
171
|
-
t = 37;
|
|
172
|
-
break e;
|
|
173
|
-
}
|
|
174
|
-
s[402] = e + -1 << 16 >> 16;
|
|
175
|
-
t = 101;
|
|
176
|
-
break;
|
|
177
|
-
case 44:
|
|
178
|
-
t = s[401] | 0;
|
|
179
|
-
a = t & 65535;
|
|
180
|
-
if (((t << 16 >> 16 != 0 ? (c = s[402] | 0, c << 16 >> 16 != 0) : 0) ? (f[(f[71] | 0) + ((c & 65535) + -1 << 3) >> 2] | 0) == 5 : 0) ? (b = f[(f[72] | 0) + (a + -1 << 2) >> 2] | 0, d = b + 4 | 0, (f[d >> 2] | 0) == 0) : 0) {
|
|
181
|
-
f[d >> 2] = (f[70] | 0) + 2;
|
|
182
|
-
f[73] = e + 4;
|
|
183
|
-
w(1) | 0;
|
|
184
|
-
t = f[73] | 0;
|
|
185
|
-
f[b + 16 >> 2] = t;
|
|
186
|
-
f[73] = t + -2;
|
|
187
|
-
t = 101;
|
|
188
|
-
} else t = 101;
|
|
189
|
-
break;
|
|
190
|
-
case 41:
|
|
191
|
-
a = s[402] | 0;
|
|
192
|
-
if (!(a << 16 >> 16)) {
|
|
193
|
-
t = 45;
|
|
194
|
-
break e;
|
|
195
|
-
}
|
|
196
|
-
r = a + -1 << 16 >> 16;
|
|
197
|
-
s[402] = r;
|
|
198
|
-
t = s[401] | 0;
|
|
199
|
-
a = t & 65535;
|
|
200
|
-
if (t << 16 >> 16 != 0 ? (f[(f[71] | 0) + ((r & 65535) << 3) >> 2] | 0) == 5 : 0) {
|
|
201
|
-
a = f[(f[72] | 0) + (a + -1 << 2) >> 2] | 0;
|
|
202
|
-
r = a + 4 | 0;
|
|
203
|
-
if (!(f[r >> 2] | 0)) f[r >> 2] = (f[70] | 0) + 2;
|
|
204
|
-
f[a + 12 >> 2] = e + 4;
|
|
205
|
-
s[401] = t + -1 << 16 >> 16;
|
|
206
|
-
t = 101;
|
|
207
|
-
} else t = 101;
|
|
208
|
-
break;
|
|
209
|
-
case 123:
|
|
210
|
-
t = f[70] | 0;
|
|
211
|
-
r = f[63] | 0;
|
|
212
|
-
e = t;
|
|
213
|
-
do
|
|
214
|
-
if ((s[t >> 1] | 0) == 41 & (r | 0) != 0 ? (f[r + 4 >> 2] | 0) == (t | 0) : 0) {
|
|
215
|
-
a = f[64] | 0;
|
|
216
|
-
f[63] = a;
|
|
217
|
-
if (!a) {
|
|
218
|
-
f[59] = 0;
|
|
219
|
-
break;
|
|
220
|
-
} else {
|
|
221
|
-
f[a + 36 >> 2] = 0;
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
while (0);
|
|
226
|
-
r = f[71] | 0;
|
|
227
|
-
a = s[402] | 0;
|
|
228
|
-
t = a & 65535;
|
|
229
|
-
f[r + (t << 3) >> 2] = (i[810] | 0) == 0 ? 2 : 6;
|
|
230
|
-
s[402] = a + 1 << 16 >> 16;
|
|
231
|
-
f[r + (t << 3) + 4 >> 2] = e;
|
|
232
|
-
i[810] = 0;
|
|
233
|
-
t = 101;
|
|
234
|
-
break;
|
|
235
|
-
case 125:
|
|
236
|
-
e = s[402] | 0;
|
|
237
|
-
if (!(e << 16 >> 16)) {
|
|
238
|
-
t = 58;
|
|
239
|
-
break e;
|
|
240
|
-
}
|
|
241
|
-
r = f[71] | 0;
|
|
242
|
-
t = e + -1 << 16 >> 16;
|
|
243
|
-
s[402] = t;
|
|
244
|
-
if ((f[r + ((t & 65535) << 3) >> 2] | 0) == 4) {
|
|
245
|
-
h();
|
|
246
|
-
t = 101;
|
|
247
|
-
} else t = 101;
|
|
248
|
-
break;
|
|
249
|
-
case 39:
|
|
250
|
-
v(39);
|
|
251
|
-
t = 101;
|
|
252
|
-
break;
|
|
253
|
-
case 34:
|
|
254
|
-
v(34);
|
|
255
|
-
t = 101;
|
|
256
|
-
break;
|
|
257
|
-
case 47: switch (s[e + 4 >> 1] | 0) {
|
|
258
|
-
case 47:
|
|
259
|
-
P();
|
|
260
|
-
break a;
|
|
261
|
-
case 42:
|
|
262
|
-
m(1);
|
|
263
|
-
break a;
|
|
264
|
-
default:
|
|
265
|
-
e = f[70] | 0;
|
|
266
|
-
a = s[e >> 1] | 0;
|
|
267
|
-
r: do
|
|
268
|
-
if (!(x(a) | 0)) if (a << 16 >> 16 == 41) {
|
|
269
|
-
r = s[402] | 0;
|
|
270
|
-
if (!(D(f[(f[71] | 0) + ((r & 65535) << 3) + 4 >> 2] | 0) | 0)) t = 74;
|
|
271
|
-
} else t = 73;
|
|
272
|
-
else switch (a << 16 >> 16) {
|
|
273
|
-
case 46: if (((s[e + -2 >> 1] | 0) + -48 & 65535) < 10) {
|
|
274
|
-
t = 73;
|
|
275
|
-
break r;
|
|
276
|
-
} else break r;
|
|
277
|
-
case 43: if ((s[e + -2 >> 1] | 0) == 43) {
|
|
278
|
-
t = 73;
|
|
279
|
-
break r;
|
|
280
|
-
} else break r;
|
|
281
|
-
case 45: if ((s[e + -2 >> 1] | 0) == 45) {
|
|
282
|
-
t = 73;
|
|
283
|
-
break r;
|
|
284
|
-
} else break r;
|
|
285
|
-
default: break r;
|
|
286
|
-
}
|
|
287
|
-
while (0);
|
|
288
|
-
if ((t | 0) == 73) {
|
|
289
|
-
r = s[402] | 0;
|
|
290
|
-
t = 74;
|
|
291
|
-
}
|
|
292
|
-
r: do
|
|
293
|
-
if ((t | 0) == 74) {
|
|
294
|
-
t = 0;
|
|
295
|
-
if (r << 16 >> 16 != 0 ? (l = f[71] | 0, C = (r & 65535) + -1 | 0, a << 16 >> 16 == 102 ? (f[l + (C << 3) >> 2] | 0) == 1 : 0) : 0) {
|
|
296
|
-
if (((s[e + -2 >> 1] | 0) == 111 ? A(e + -4 | 0) | 0 : 0) ? T(f[l + (C << 3) + 4 >> 2] | 0, 44, 3) | 0 : 0) break;
|
|
297
|
-
} else t = 79;
|
|
298
|
-
if ((t | 0) == 79 ? a << 16 >> 16 == 125 : 0) {
|
|
299
|
-
t = f[71] | 0;
|
|
300
|
-
r = r & 65535;
|
|
301
|
-
if (y(f[t + (r << 3) + 4 >> 2] | 0) | 0) break;
|
|
302
|
-
if ((f[t + (r << 3) >> 2] | 0) == 6) break;
|
|
303
|
-
}
|
|
304
|
-
if (!(o(e) | 0)) {
|
|
305
|
-
switch (a << 16 >> 16) {
|
|
306
|
-
case 0: break r;
|
|
307
|
-
case 47:
|
|
308
|
-
if (i[809] | 0) break r;
|
|
309
|
-
break;
|
|
310
|
-
default:
|
|
311
|
-
}
|
|
312
|
-
t = f[65] | 0;
|
|
313
|
-
if ((t | 0 ? e >>> 0 >= (f[t >> 2] | 0) >>> 0 : 0) ? e >>> 0 <= (f[t + 4 >> 2] | 0) >>> 0 : 0) {
|
|
314
|
-
p();
|
|
315
|
-
i[809] = 0;
|
|
316
|
-
t = 101;
|
|
317
|
-
break a;
|
|
318
|
-
}
|
|
319
|
-
r = f[3] | 0;
|
|
320
|
-
do {
|
|
321
|
-
if (e >>> 0 <= r >>> 0) break;
|
|
322
|
-
e = e + -2 | 0;
|
|
323
|
-
f[70] = e;
|
|
324
|
-
a = s[e >> 1] | 0;
|
|
325
|
-
} while (!(E(a) | 0));
|
|
326
|
-
if (F(a) | 0) {
|
|
327
|
-
do {
|
|
328
|
-
if (e >>> 0 <= r >>> 0) break;
|
|
329
|
-
e = e + -2 | 0;
|
|
330
|
-
f[70] = e;
|
|
331
|
-
} while (F(s[e >> 1] | 0) | 0);
|
|
332
|
-
if (j(e) | 0) {
|
|
333
|
-
p();
|
|
334
|
-
i[809] = 0;
|
|
335
|
-
t = 101;
|
|
336
|
-
break a;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
i[809] = 1;
|
|
340
|
-
t = 101;
|
|
341
|
-
break a;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
while (0);
|
|
345
|
-
p();
|
|
346
|
-
i[809] = 0;
|
|
347
|
-
t = 101;
|
|
348
|
-
break a;
|
|
349
|
-
}
|
|
350
|
-
case 96:
|
|
351
|
-
r = f[71] | 0;
|
|
352
|
-
a = s[402] | 0;
|
|
353
|
-
t = a & 65535;
|
|
354
|
-
f[r + (t << 3) + 4 >> 2] = f[70];
|
|
355
|
-
s[402] = a + 1 << 16 >> 16;
|
|
356
|
-
f[r + (t << 3) >> 2] = 3;
|
|
357
|
-
h();
|
|
358
|
-
t = 101;
|
|
359
|
-
break;
|
|
360
|
-
default: t = 101;
|
|
361
|
-
}
|
|
362
|
-
while (0);
|
|
363
|
-
if ((t | 0) == 101) {
|
|
364
|
-
t = 0;
|
|
365
|
-
f[70] = f[73];
|
|
366
|
-
}
|
|
367
|
-
e = f[73] | 0;
|
|
368
|
-
}
|
|
369
|
-
if ((t | 0) == 37) {
|
|
370
|
-
W();
|
|
371
|
-
e = 0;
|
|
372
|
-
break;
|
|
373
|
-
} else if ((t | 0) == 45) {
|
|
374
|
-
W();
|
|
375
|
-
e = 0;
|
|
376
|
-
break;
|
|
377
|
-
} else if ((t | 0) == 58) {
|
|
378
|
-
W();
|
|
379
|
-
e = 0;
|
|
380
|
-
break;
|
|
381
|
-
} else if ((t | 0) == 102) {
|
|
382
|
-
e = (i[806] | 0) == 0 ? (s[401] | s[402]) << 16 >> 16 == 0 : 0;
|
|
383
|
-
break;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
while (0);
|
|
387
|
-
n = g;
|
|
388
|
-
return e | 0;
|
|
389
|
-
}
|
|
390
|
-
function k() {
|
|
391
|
-
var e = 0, a = 0, r = 0, t = 0, c = 0, n = 0, b = 0, k = 0, u = 0, o = 0, h = 0, d = 0, A = 0, g = 0;
|
|
392
|
-
k = f[73] | 0;
|
|
393
|
-
u = f[65] | 0;
|
|
394
|
-
g = k + 12 | 0;
|
|
395
|
-
f[73] = g;
|
|
396
|
-
r = w(1) | 0;
|
|
397
|
-
e = f[73] | 0;
|
|
398
|
-
if (!((e | 0) == (g | 0) ? !(U(r) | 0) : 0)) A = 3;
|
|
399
|
-
e: do
|
|
400
|
-
if ((A | 0) == 3) {
|
|
401
|
-
a: do
|
|
402
|
-
switch (r << 16 >> 16) {
|
|
403
|
-
case 123:
|
|
404
|
-
f[73] = e + 2;
|
|
405
|
-
e = w(1) | 0;
|
|
406
|
-
a = f[73] | 0;
|
|
407
|
-
while (1) {
|
|
408
|
-
if (Y(e) | 0) {
|
|
409
|
-
v(e);
|
|
410
|
-
e = (f[73] | 0) + 2 | 0;
|
|
411
|
-
f[73] = e;
|
|
412
|
-
} else {
|
|
413
|
-
q(e) | 0;
|
|
414
|
-
e = f[73] | 0;
|
|
415
|
-
}
|
|
416
|
-
w(1) | 0;
|
|
417
|
-
e = C(a, e) | 0;
|
|
418
|
-
if (e << 16 >> 16 == 44) {
|
|
419
|
-
f[73] = (f[73] | 0) + 2;
|
|
420
|
-
e = w(1) | 0;
|
|
421
|
-
}
|
|
422
|
-
if (e << 16 >> 16 == 125) {
|
|
423
|
-
A = 15;
|
|
424
|
-
break;
|
|
425
|
-
}
|
|
426
|
-
g = a;
|
|
427
|
-
a = f[73] | 0;
|
|
428
|
-
if ((a | 0) == (g | 0)) {
|
|
429
|
-
A = 12;
|
|
430
|
-
break;
|
|
431
|
-
}
|
|
432
|
-
if (a >>> 0 > (f[74] | 0) >>> 0) {
|
|
433
|
-
A = 14;
|
|
434
|
-
break;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
if ((A | 0) == 12) {
|
|
438
|
-
W();
|
|
439
|
-
break e;
|
|
440
|
-
} else if ((A | 0) == 14) {
|
|
441
|
-
W();
|
|
442
|
-
break e;
|
|
443
|
-
} else if ((A | 0) == 15) {
|
|
444
|
-
i[807] = 1;
|
|
445
|
-
f[73] = (f[73] | 0) + 2;
|
|
446
|
-
break a;
|
|
447
|
-
}
|
|
448
|
-
break;
|
|
449
|
-
case 42:
|
|
450
|
-
f[73] = e + 2;
|
|
451
|
-
w(1) | 0;
|
|
452
|
-
g = f[73] | 0;
|
|
453
|
-
C(g, g) | 0;
|
|
454
|
-
break;
|
|
455
|
-
default:
|
|
456
|
-
i[808] = 0;
|
|
457
|
-
switch (r << 16 >> 16) {
|
|
458
|
-
case 100:
|
|
459
|
-
k = e + 14 | 0;
|
|
460
|
-
f[73] = k;
|
|
461
|
-
switch ((w(1) | 0) << 16 >> 16) {
|
|
462
|
-
case 97:
|
|
463
|
-
a = f[73] | 0;
|
|
464
|
-
if ((I(a + 2 | 0, 80, 8) | 0) == 0 ? (c = a + 10 | 0, F(s[c >> 1] | 0) | 0) : 0) {
|
|
465
|
-
f[73] = c;
|
|
466
|
-
w(0) | 0;
|
|
467
|
-
A = 22;
|
|
468
|
-
}
|
|
469
|
-
break;
|
|
470
|
-
case 102:
|
|
471
|
-
A = 22;
|
|
472
|
-
break;
|
|
473
|
-
case 99:
|
|
474
|
-
a = f[73] | 0;
|
|
475
|
-
if (((I(a + 2 | 0, 36, 8) | 0) == 0 ? (t = a + 10 | 0, g = s[t >> 1] | 0, X(g) | 0 | g << 16 >> 16 == 123) : 0) ? (f[73] = t, n = w(1) | 0, n << 16 >> 16 != 123) : 0) {
|
|
476
|
-
d = n;
|
|
477
|
-
A = 31;
|
|
478
|
-
}
|
|
479
|
-
break;
|
|
480
|
-
default:
|
|
481
|
-
}
|
|
482
|
-
r: do
|
|
483
|
-
if ((A | 0) == 22 ? (b = f[73] | 0, (I(b + 2 | 0, 88, 14) | 0) == 0) : 0) {
|
|
484
|
-
r = b + 16 | 0;
|
|
485
|
-
a = s[r >> 1] | 0;
|
|
486
|
-
if (!(X(a) | 0)) switch (a << 16 >> 16) {
|
|
487
|
-
case 40:
|
|
488
|
-
case 42: break;
|
|
489
|
-
default: break r;
|
|
490
|
-
}
|
|
491
|
-
f[73] = r;
|
|
492
|
-
a = w(1) | 0;
|
|
493
|
-
if (a << 16 >> 16 == 42) {
|
|
494
|
-
f[73] = (f[73] | 0) + 2;
|
|
495
|
-
a = w(1) | 0;
|
|
496
|
-
}
|
|
497
|
-
if (a << 16 >> 16 != 40) {
|
|
498
|
-
d = a;
|
|
499
|
-
A = 31;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
while (0);
|
|
503
|
-
if ((A | 0) == 31 ? (o = f[73] | 0, q(d) | 0, h = f[73] | 0, h >>> 0 > o >>> 0) : 0) {
|
|
504
|
-
$(e, k, o, h);
|
|
505
|
-
f[73] = (f[73] | 0) + -2;
|
|
506
|
-
break e;
|
|
507
|
-
}
|
|
508
|
-
$(e, k, 0, 0);
|
|
509
|
-
f[73] = e + 12;
|
|
510
|
-
break e;
|
|
511
|
-
case 97:
|
|
512
|
-
f[73] = e + 10;
|
|
513
|
-
w(0) | 0;
|
|
514
|
-
e = f[73] | 0;
|
|
515
|
-
A = 35;
|
|
516
|
-
break;
|
|
517
|
-
case 102:
|
|
518
|
-
A = 35;
|
|
519
|
-
break;
|
|
520
|
-
case 99:
|
|
521
|
-
if ((I(e + 2 | 0, 36, 8) | 0) == 0 ? (a = e + 10 | 0, E(s[a >> 1] | 0) | 0) : 0) {
|
|
522
|
-
f[73] = a;
|
|
523
|
-
g = w(1) | 0;
|
|
524
|
-
A = f[73] | 0;
|
|
525
|
-
q(g) | 0;
|
|
526
|
-
g = f[73] | 0;
|
|
527
|
-
$(A, g, A, g);
|
|
528
|
-
f[73] = (f[73] | 0) + -2;
|
|
529
|
-
break e;
|
|
530
|
-
}
|
|
531
|
-
e = e + 4 | 0;
|
|
532
|
-
f[73] = e;
|
|
533
|
-
break;
|
|
534
|
-
case 108:
|
|
535
|
-
case 118: break;
|
|
536
|
-
default: break e;
|
|
537
|
-
}
|
|
538
|
-
if ((A | 0) == 35) {
|
|
539
|
-
f[73] = e + 16;
|
|
540
|
-
e = w(1) | 0;
|
|
541
|
-
if (e << 16 >> 16 == 42) {
|
|
542
|
-
f[73] = (f[73] | 0) + 2;
|
|
543
|
-
e = w(1) | 0;
|
|
544
|
-
}
|
|
545
|
-
A = f[73] | 0;
|
|
546
|
-
q(e) | 0;
|
|
547
|
-
g = f[73] | 0;
|
|
548
|
-
$(A, g, A, g);
|
|
549
|
-
f[73] = (f[73] | 0) + -2;
|
|
550
|
-
break e;
|
|
551
|
-
}
|
|
552
|
-
f[73] = e + 6;
|
|
553
|
-
i[808] = 0;
|
|
554
|
-
r = w(1) | 0;
|
|
555
|
-
e = f[73] | 0;
|
|
556
|
-
r = (q(r) | 32) << 16 >> 16 == 123;
|
|
557
|
-
t = f[73] | 0;
|
|
558
|
-
if (r) {
|
|
559
|
-
f[73] = t + 2;
|
|
560
|
-
g = w(1) | 0;
|
|
561
|
-
e = f[73] | 0;
|
|
562
|
-
q(g) | 0;
|
|
563
|
-
}
|
|
564
|
-
r: while (1) {
|
|
565
|
-
a = f[73] | 0;
|
|
566
|
-
if ((a | 0) == (e | 0)) break;
|
|
567
|
-
$(e, a, e, a);
|
|
568
|
-
a = w(1) | 0;
|
|
569
|
-
if (r) switch (a << 16 >> 16) {
|
|
570
|
-
case 93:
|
|
571
|
-
case 125: break e;
|
|
572
|
-
default:
|
|
573
|
-
}
|
|
574
|
-
e = f[73] | 0;
|
|
575
|
-
if (a << 16 >> 16 != 44) {
|
|
576
|
-
A = 51;
|
|
577
|
-
break;
|
|
578
|
-
}
|
|
579
|
-
f[73] = e + 2;
|
|
580
|
-
a = w(1) | 0;
|
|
581
|
-
e = f[73] | 0;
|
|
582
|
-
switch (a << 16 >> 16) {
|
|
583
|
-
case 91:
|
|
584
|
-
case 123:
|
|
585
|
-
A = 51;
|
|
586
|
-
break r;
|
|
587
|
-
default:
|
|
588
|
-
}
|
|
589
|
-
q(a) | 0;
|
|
590
|
-
}
|
|
591
|
-
if ((A | 0) == 51) f[73] = e + -2;
|
|
592
|
-
if (!r) break e;
|
|
593
|
-
f[73] = t + -2;
|
|
594
|
-
break e;
|
|
595
|
-
}
|
|
596
|
-
while (0);
|
|
597
|
-
g = (w(1) | 0) << 16 >> 16 == 102;
|
|
598
|
-
e = f[73] | 0;
|
|
599
|
-
if (g ? (I(e + 2 | 0, 74, 6) | 0) == 0 : 0) {
|
|
600
|
-
f[73] = e + 8;
|
|
601
|
-
l(k, w(1) | 0, 0);
|
|
602
|
-
e = (u | 0) == 0 ? 240 : u + 16 | 0;
|
|
603
|
-
while (1) {
|
|
604
|
-
e = f[e >> 2] | 0;
|
|
605
|
-
if (!e) break e;
|
|
606
|
-
f[e + 12 >> 2] = 0;
|
|
607
|
-
f[e + 8 >> 2] = 0;
|
|
608
|
-
e = e + 16 | 0;
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
f[73] = e + -2;
|
|
612
|
-
}
|
|
613
|
-
while (0);
|
|
614
|
-
}
|
|
615
|
-
function u() {
|
|
616
|
-
var e = 0, a = 0, r = 0, t = 0, c = 0, n = 0, b = 0;
|
|
617
|
-
b = f[73] | 0;
|
|
618
|
-
c = b + 12 | 0;
|
|
619
|
-
f[73] = c;
|
|
620
|
-
e = w(1) | 0;
|
|
621
|
-
t = f[73] | 0;
|
|
622
|
-
e: do
|
|
623
|
-
if (e << 16 >> 16 != 46) {
|
|
624
|
-
if (!(e << 16 >> 16 == 115 & t >>> 0 > c >>> 0)) {
|
|
625
|
-
if (!(e << 16 >> 16 == 100 & t >>> 0 > (b + 10 | 0) >>> 0)) {
|
|
626
|
-
t = 0;
|
|
627
|
-
n = 28;
|
|
628
|
-
break;
|
|
629
|
-
}
|
|
630
|
-
if (I(t + 2 | 0, 66, 8) | 0) {
|
|
631
|
-
a = t;
|
|
632
|
-
e = 100;
|
|
633
|
-
t = 0;
|
|
634
|
-
n = 59;
|
|
635
|
-
break;
|
|
636
|
-
}
|
|
637
|
-
e = t + 10 | 0;
|
|
638
|
-
if (!(X(s[e >> 1] | 0) | 0)) {
|
|
639
|
-
a = t;
|
|
640
|
-
e = 100;
|
|
641
|
-
t = 0;
|
|
642
|
-
n = 59;
|
|
643
|
-
break;
|
|
644
|
-
}
|
|
645
|
-
f[73] = e;
|
|
646
|
-
e = w(1) | 0;
|
|
647
|
-
if (e << 16 >> 16 == 42) {
|
|
648
|
-
e = 42;
|
|
649
|
-
t = 2;
|
|
650
|
-
n = 61;
|
|
651
|
-
break;
|
|
652
|
-
}
|
|
653
|
-
f[73] = t;
|
|
654
|
-
t = 0;
|
|
655
|
-
n = 28;
|
|
656
|
-
break;
|
|
657
|
-
}
|
|
658
|
-
if ((I(t + 2 | 0, 56, 10) | 0) == 0 ? (r = t + 12 | 0, X(s[r >> 1] | 0) | 0) : 0) {
|
|
659
|
-
f[73] = r;
|
|
660
|
-
e = w(1) | 0;
|
|
661
|
-
a = f[73] | 0;
|
|
662
|
-
if ((a | 0) != (r | 0)) {
|
|
663
|
-
if (e << 16 >> 16 != 102) {
|
|
664
|
-
t = 1;
|
|
665
|
-
n = 28;
|
|
666
|
-
break;
|
|
667
|
-
}
|
|
668
|
-
if (I(a + 2 | 0, 74, 6) | 0) {
|
|
669
|
-
e = 102;
|
|
670
|
-
t = 1;
|
|
671
|
-
n = 59;
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
674
|
-
if (!(E(s[a + 8 >> 1] | 0) | 0)) {
|
|
675
|
-
e = 102;
|
|
676
|
-
t = 1;
|
|
677
|
-
n = 59;
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
f[73] = t;
|
|
682
|
-
t = 0;
|
|
683
|
-
n = 28;
|
|
684
|
-
} else {
|
|
685
|
-
a = t;
|
|
686
|
-
e = 115;
|
|
687
|
-
t = 0;
|
|
688
|
-
n = 59;
|
|
689
|
-
}
|
|
690
|
-
} else {
|
|
691
|
-
f[73] = t + 2;
|
|
692
|
-
switch ((w(1) | 0) << 16 >> 16) {
|
|
693
|
-
case 109:
|
|
694
|
-
e = f[73] | 0;
|
|
695
|
-
if (I(e + 2 | 0, 50, 6) | 0) break e;
|
|
696
|
-
a = f[70] | 0;
|
|
697
|
-
if (!(G(a) | 0) ? (s[a >> 1] | 0) == 46 : 0) break e;
|
|
698
|
-
d(b, b, e + 8 | 0, 2);
|
|
699
|
-
break e;
|
|
700
|
-
case 115:
|
|
701
|
-
e = f[73] | 0;
|
|
702
|
-
if (I(e + 2 | 0, 56, 10) | 0) break e;
|
|
703
|
-
a = f[70] | 0;
|
|
704
|
-
if (!(G(a) | 0) ? (s[a >> 1] | 0) == 46 : 0) break e;
|
|
705
|
-
f[73] = e + 12;
|
|
706
|
-
e = w(1) | 0;
|
|
707
|
-
t = 1;
|
|
708
|
-
n = 28;
|
|
709
|
-
break e;
|
|
710
|
-
case 100:
|
|
711
|
-
e = f[73] | 0;
|
|
712
|
-
if (I(e + 2 | 0, 66, 8) | 0) break e;
|
|
713
|
-
a = f[70] | 0;
|
|
714
|
-
if (!(G(a) | 0) ? (s[a >> 1] | 0) == 46 : 0) break e;
|
|
715
|
-
f[73] = e + 10;
|
|
716
|
-
e = w(1) | 0;
|
|
717
|
-
t = 2;
|
|
718
|
-
n = 28;
|
|
719
|
-
break e;
|
|
720
|
-
default: break e;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
while (0);
|
|
724
|
-
e: do
|
|
725
|
-
if ((n | 0) == 28) {
|
|
726
|
-
if (e << 16 >> 16 == 40) {
|
|
727
|
-
r = f[71] | 0;
|
|
728
|
-
a = s[402] | 0;
|
|
729
|
-
c = a & 65535;
|
|
730
|
-
f[r + (c << 3) >> 2] = 5;
|
|
731
|
-
e = f[73] | 0;
|
|
732
|
-
s[402] = a + 1 << 16 >> 16;
|
|
733
|
-
f[r + (c << 3) + 4 >> 2] = e;
|
|
734
|
-
if ((s[f[70] >> 1] | 0) == 46) break;
|
|
735
|
-
f[73] = e + 2;
|
|
736
|
-
a = w(1) | 0;
|
|
737
|
-
d(b, f[73] | 0, 0, e);
|
|
738
|
-
if (!t) e = f[63] | 0;
|
|
739
|
-
else {
|
|
740
|
-
e = f[63] | 0;
|
|
741
|
-
f[e + 28 >> 2] = (t | 0) == 1 ? 5 : 7;
|
|
742
|
-
}
|
|
743
|
-
c = f[72] | 0;
|
|
744
|
-
b = s[401] | 0;
|
|
745
|
-
s[401] = b + 1 << 16 >> 16;
|
|
746
|
-
f[c + ((b & 65535) << 2) >> 2] = e;
|
|
747
|
-
switch (a << 16 >> 16) {
|
|
748
|
-
case 39:
|
|
749
|
-
v(39);
|
|
750
|
-
break;
|
|
751
|
-
case 34:
|
|
752
|
-
v(34);
|
|
753
|
-
break;
|
|
754
|
-
default:
|
|
755
|
-
f[73] = (f[73] | 0) + -2;
|
|
756
|
-
break e;
|
|
757
|
-
}
|
|
758
|
-
e = (f[73] | 0) + 2 | 0;
|
|
759
|
-
f[73] = e;
|
|
760
|
-
switch ((w(1) | 0) << 16 >> 16) {
|
|
761
|
-
case 44:
|
|
762
|
-
f[73] = (f[73] | 0) + 2;
|
|
763
|
-
w(1) | 0;
|
|
764
|
-
c = f[63] | 0;
|
|
765
|
-
f[c + 4 >> 2] = e;
|
|
766
|
-
b = f[73] | 0;
|
|
767
|
-
f[c + 16 >> 2] = b;
|
|
768
|
-
i[c + 24 >> 0] = 1;
|
|
769
|
-
f[73] = b + -2;
|
|
770
|
-
break e;
|
|
771
|
-
case 41:
|
|
772
|
-
s[402] = (s[402] | 0) + -1 << 16 >> 16;
|
|
773
|
-
b = f[63] | 0;
|
|
774
|
-
f[b + 4 >> 2] = e;
|
|
775
|
-
f[b + 12 >> 2] = (f[73] | 0) + 2;
|
|
776
|
-
i[b + 24 >> 0] = 1;
|
|
777
|
-
s[401] = (s[401] | 0) + -1 << 16 >> 16;
|
|
778
|
-
break e;
|
|
779
|
-
default:
|
|
780
|
-
f[73] = (f[73] | 0) + -2;
|
|
781
|
-
break e;
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
if (!((t | 0) == 0 & e << 16 >> 16 == 123)) {
|
|
785
|
-
switch (e << 16 >> 16) {
|
|
786
|
-
case 42:
|
|
787
|
-
case 39:
|
|
788
|
-
case 34:
|
|
789
|
-
n = 61;
|
|
790
|
-
break e;
|
|
791
|
-
default:
|
|
792
|
-
}
|
|
793
|
-
a = f[73] | 0;
|
|
794
|
-
n = 59;
|
|
795
|
-
break;
|
|
796
|
-
}
|
|
797
|
-
e = f[73] | 0;
|
|
798
|
-
if (s[402] | 0) {
|
|
799
|
-
f[73] = e + -2;
|
|
800
|
-
break;
|
|
801
|
-
}
|
|
802
|
-
while (1) {
|
|
803
|
-
if (e >>> 0 >= (f[74] | 0) >>> 0) break;
|
|
804
|
-
e = w(1) | 0;
|
|
805
|
-
if (!(Y(e) | 0)) {
|
|
806
|
-
if (e << 16 >> 16 == 125) {
|
|
807
|
-
n = 49;
|
|
808
|
-
break;
|
|
809
|
-
}
|
|
810
|
-
} else v(e);
|
|
811
|
-
e = (f[73] | 0) + 2 | 0;
|
|
812
|
-
f[73] = e;
|
|
813
|
-
}
|
|
814
|
-
if ((n | 0) == 49) f[73] = (f[73] | 0) + 2;
|
|
815
|
-
c = (w(1) | 0) << 16 >> 16 == 102;
|
|
816
|
-
e = f[73] | 0;
|
|
817
|
-
if (c ? I(e + 2 | 0, 74, 6) | 0 : 0) {
|
|
818
|
-
W();
|
|
819
|
-
break;
|
|
820
|
-
}
|
|
821
|
-
f[73] = e + 8;
|
|
822
|
-
e = w(1) | 0;
|
|
823
|
-
if (Y(e) | 0) {
|
|
824
|
-
l(b, e, 0);
|
|
825
|
-
break;
|
|
826
|
-
} else {
|
|
827
|
-
W();
|
|
828
|
-
break;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
while (0);
|
|
832
|
-
if ((n | 0) == 59) if ((a | 0) == (c | 0)) f[73] = b + 10;
|
|
833
|
-
else n = 61;
|
|
834
|
-
do
|
|
835
|
-
if ((n | 0) == 61) {
|
|
836
|
-
if (!((e << 16 >> 16 == 42 | (t | 0) != 2) & (s[402] | 0) == 0)) {
|
|
837
|
-
f[73] = (f[73] | 0) + -2;
|
|
838
|
-
break;
|
|
839
|
-
}
|
|
840
|
-
e = f[74] | 0;
|
|
841
|
-
a = f[73] | 0;
|
|
842
|
-
while (1) {
|
|
843
|
-
if (a >>> 0 >= e >>> 0) {
|
|
844
|
-
n = 68;
|
|
845
|
-
break;
|
|
846
|
-
}
|
|
847
|
-
r = s[a >> 1] | 0;
|
|
848
|
-
if (Y(r) | 0) {
|
|
849
|
-
n = 66;
|
|
850
|
-
break;
|
|
851
|
-
}
|
|
852
|
-
n = a + 2 | 0;
|
|
853
|
-
f[73] = n;
|
|
854
|
-
a = n;
|
|
855
|
-
}
|
|
856
|
-
if ((n | 0) == 66) {
|
|
857
|
-
l(b, r, t);
|
|
858
|
-
break;
|
|
859
|
-
} else if ((n | 0) == 68) {
|
|
860
|
-
W();
|
|
861
|
-
break;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
while (0);
|
|
865
|
-
}
|
|
866
|
-
function l(e, a, r) {
|
|
867
|
-
e = e | 0;
|
|
868
|
-
a = a | 0;
|
|
869
|
-
r = r | 0;
|
|
870
|
-
var i = 0, t = 0, c = 0, n = 0, b = 0;
|
|
871
|
-
i = (f[73] | 0) + 2 | 0;
|
|
872
|
-
switch (a << 16 >> 16) {
|
|
873
|
-
case 39:
|
|
874
|
-
v(39);
|
|
875
|
-
t = 5;
|
|
876
|
-
break;
|
|
877
|
-
case 34:
|
|
878
|
-
v(34);
|
|
879
|
-
t = 5;
|
|
880
|
-
break;
|
|
881
|
-
default: W();
|
|
882
|
-
}
|
|
883
|
-
do
|
|
884
|
-
if ((t | 0) == 5) {
|
|
885
|
-
d(e, i, f[73] | 0, 1);
|
|
886
|
-
if ((r | 0) > 0) f[(f[63] | 0) + 28 >> 2] = (r | 0) == 1 ? 4 : 6;
|
|
887
|
-
f[73] = (f[73] | 0) + 2;
|
|
888
|
-
n = (w(0) | 0) << 16 >> 16 == 119;
|
|
889
|
-
c = f[73] | 0;
|
|
890
|
-
if (((n ? (s[c + 2 >> 1] | 0) == 105 : 0) ? (s[c + 4 >> 1] | 0) == 116 : 0) ? (s[c + 6 >> 1] | 0) == 104 : 0) {
|
|
891
|
-
f[73] = c + 8;
|
|
892
|
-
if ((w(1) | 0) << 16 >> 16 != 123) {
|
|
893
|
-
f[73] = c;
|
|
894
|
-
break;
|
|
895
|
-
}
|
|
896
|
-
n = f[73] | 0;
|
|
897
|
-
i = n;
|
|
898
|
-
t = 0;
|
|
899
|
-
e: while (1) {
|
|
900
|
-
f[73] = i + 2;
|
|
901
|
-
i = w(1) | 0;
|
|
902
|
-
do
|
|
903
|
-
if (i << 16 >> 16 != 39) {
|
|
904
|
-
a = f[73] | 0;
|
|
905
|
-
if (i << 16 >> 16 == 34) {
|
|
906
|
-
v(34);
|
|
907
|
-
e = (f[73] | 0) + 2 | 0;
|
|
908
|
-
f[73] = e;
|
|
909
|
-
i = w(1) | 0;
|
|
910
|
-
break;
|
|
911
|
-
} else {
|
|
912
|
-
i = q(i) | 0;
|
|
913
|
-
e = f[73] | 0;
|
|
914
|
-
break;
|
|
915
|
-
}
|
|
916
|
-
} else {
|
|
917
|
-
a = f[73] | 0;
|
|
918
|
-
v(39);
|
|
919
|
-
e = (f[73] | 0) + 2 | 0;
|
|
920
|
-
f[73] = e;
|
|
921
|
-
i = w(1) | 0;
|
|
922
|
-
}
|
|
923
|
-
while (0);
|
|
924
|
-
if (i << 16 >> 16 != 58) {
|
|
925
|
-
t = 21;
|
|
926
|
-
break;
|
|
927
|
-
}
|
|
928
|
-
f[73] = (f[73] | 0) + 2;
|
|
929
|
-
switch ((w(1) | 0) << 16 >> 16) {
|
|
930
|
-
case 39:
|
|
931
|
-
i = f[73] | 0;
|
|
932
|
-
v(39);
|
|
933
|
-
break;
|
|
934
|
-
case 34:
|
|
935
|
-
i = f[73] | 0;
|
|
936
|
-
v(34);
|
|
937
|
-
break;
|
|
938
|
-
default:
|
|
939
|
-
t = 25;
|
|
940
|
-
break e;
|
|
941
|
-
}
|
|
942
|
-
b = (f[73] | 0) + 2 | 0;
|
|
943
|
-
r = f[67] | 0;
|
|
944
|
-
f[67] = r + 20;
|
|
945
|
-
f[r >> 2] = a;
|
|
946
|
-
f[r + 4 >> 2] = e;
|
|
947
|
-
f[r + 8 >> 2] = i;
|
|
948
|
-
f[r + 12 >> 2] = b;
|
|
949
|
-
f[r + 16 >> 2] = 0;
|
|
950
|
-
f[((t | 0) == 0 ? (f[63] | 0) + 32 | 0 : t + 16 | 0) >> 2] = r;
|
|
951
|
-
f[73] = (f[73] | 0) + 2;
|
|
952
|
-
switch ((w(1) | 0) << 16 >> 16) {
|
|
953
|
-
case 125:
|
|
954
|
-
t = 29;
|
|
955
|
-
break e;
|
|
956
|
-
case 44: break;
|
|
957
|
-
default:
|
|
958
|
-
t = 27;
|
|
959
|
-
break e;
|
|
960
|
-
}
|
|
961
|
-
i = (f[73] | 0) + 2 | 0;
|
|
962
|
-
f[73] = i;
|
|
963
|
-
t = r;
|
|
964
|
-
}
|
|
965
|
-
if ((t | 0) == 21) {
|
|
966
|
-
f[73] = c;
|
|
967
|
-
break;
|
|
968
|
-
} else if ((t | 0) == 25) {
|
|
969
|
-
f[73] = c;
|
|
970
|
-
break;
|
|
971
|
-
} else if ((t | 0) == 27) {
|
|
972
|
-
f[73] = c;
|
|
973
|
-
break;
|
|
974
|
-
} else if ((t | 0) == 29) {
|
|
975
|
-
b = f[63] | 0;
|
|
976
|
-
f[b + 16 >> 2] = n;
|
|
977
|
-
f[b + 12 >> 2] = (f[73] | 0) + 2;
|
|
978
|
-
break;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
f[73] = c + -2;
|
|
982
|
-
}
|
|
983
|
-
while (0);
|
|
984
|
-
}
|
|
985
|
-
function o(e) {
|
|
986
|
-
e = e | 0;
|
|
987
|
-
e: do
|
|
988
|
-
switch (s[e >> 1] | 0) {
|
|
989
|
-
case 100: switch (s[e + -2 >> 1] | 0) {
|
|
990
|
-
case 105:
|
|
991
|
-
e = T(e + -4 | 0, 102, 2) | 0;
|
|
992
|
-
break e;
|
|
993
|
-
case 108:
|
|
994
|
-
e = T(e + -4 | 0, 106, 3) | 0;
|
|
995
|
-
break e;
|
|
996
|
-
default:
|
|
997
|
-
e = 0;
|
|
998
|
-
break e;
|
|
999
|
-
}
|
|
1000
|
-
case 101: switch (s[e + -2 >> 1] | 0) {
|
|
1001
|
-
case 115: switch (s[e + -4 >> 1] | 0) {
|
|
1002
|
-
case 108:
|
|
1003
|
-
e = B(e + -6 | 0, 101) | 0;
|
|
1004
|
-
break e;
|
|
1005
|
-
case 97:
|
|
1006
|
-
e = B(e + -6 | 0, 99) | 0;
|
|
1007
|
-
break e;
|
|
1008
|
-
default:
|
|
1009
|
-
e = 0;
|
|
1010
|
-
break e;
|
|
1011
|
-
}
|
|
1012
|
-
case 116:
|
|
1013
|
-
e = T(e + -4 | 0, 112, 4) | 0;
|
|
1014
|
-
break e;
|
|
1015
|
-
case 117:
|
|
1016
|
-
e = T(e + -4 | 0, 120, 6) | 0;
|
|
1017
|
-
break e;
|
|
1018
|
-
default:
|
|
1019
|
-
e = 0;
|
|
1020
|
-
break e;
|
|
1021
|
-
}
|
|
1022
|
-
case 102:
|
|
1023
|
-
if ((s[e + -2 >> 1] | 0) == 111 ? (s[e + -4 >> 1] | 0) == 101 : 0) switch (s[e + -6 >> 1] | 0) {
|
|
1024
|
-
case 99:
|
|
1025
|
-
e = T(e + -8 | 0, 132, 6) | 0;
|
|
1026
|
-
break e;
|
|
1027
|
-
case 112:
|
|
1028
|
-
e = T(e + -8 | 0, 144, 2) | 0;
|
|
1029
|
-
break e;
|
|
1030
|
-
default:
|
|
1031
|
-
e = 0;
|
|
1032
|
-
break e;
|
|
1033
|
-
}
|
|
1034
|
-
else e = 0;
|
|
1035
|
-
break;
|
|
1036
|
-
case 107:
|
|
1037
|
-
e = T(e + -2 | 0, 148, 4) | 0;
|
|
1038
|
-
break;
|
|
1039
|
-
case 110:
|
|
1040
|
-
e = e + -2 | 0;
|
|
1041
|
-
if (B(e, 105) | 0) e = 1;
|
|
1042
|
-
else e = T(e, 156, 5) | 0;
|
|
1043
|
-
break;
|
|
1044
|
-
case 111:
|
|
1045
|
-
e = B(e + -2 | 0, 100) | 0;
|
|
1046
|
-
break;
|
|
1047
|
-
case 114:
|
|
1048
|
-
e = T(e + -2 | 0, 166, 7) | 0;
|
|
1049
|
-
break;
|
|
1050
|
-
case 116:
|
|
1051
|
-
e = T(e + -2 | 0, 180, 4) | 0;
|
|
1052
|
-
break;
|
|
1053
|
-
case 119: switch (s[e + -2 >> 1] | 0) {
|
|
1054
|
-
case 101:
|
|
1055
|
-
e = B(e + -4 | 0, 110) | 0;
|
|
1056
|
-
break e;
|
|
1057
|
-
case 111:
|
|
1058
|
-
e = T(e + -4 | 0, 188, 3) | 0;
|
|
1059
|
-
break e;
|
|
1060
|
-
default:
|
|
1061
|
-
e = 0;
|
|
1062
|
-
break e;
|
|
1063
|
-
}
|
|
1064
|
-
default: e = 0;
|
|
1065
|
-
}
|
|
1066
|
-
while (0);
|
|
1067
|
-
return e | 0;
|
|
1068
|
-
}
|
|
1069
|
-
function h() {
|
|
1070
|
-
var e = 0, a = 0, r = 0, i = 0;
|
|
1071
|
-
a = f[74] | 0;
|
|
1072
|
-
r = f[73] | 0;
|
|
1073
|
-
e: while (1) {
|
|
1074
|
-
e = r + 2 | 0;
|
|
1075
|
-
if (r >>> 0 >= a >>> 0) {
|
|
1076
|
-
a = 10;
|
|
1077
|
-
break;
|
|
1078
|
-
}
|
|
1079
|
-
switch (s[e >> 1] | 0) {
|
|
1080
|
-
case 96:
|
|
1081
|
-
a = 7;
|
|
1082
|
-
break e;
|
|
1083
|
-
case 36:
|
|
1084
|
-
if ((s[r + 4 >> 1] | 0) == 123) {
|
|
1085
|
-
a = 6;
|
|
1086
|
-
break e;
|
|
1087
|
-
}
|
|
1088
|
-
break;
|
|
1089
|
-
case 92:
|
|
1090
|
-
e = r + 4 | 0;
|
|
1091
|
-
break;
|
|
1092
|
-
default:
|
|
1093
|
-
}
|
|
1094
|
-
r = e;
|
|
1095
|
-
}
|
|
1096
|
-
if ((a | 0) == 6) {
|
|
1097
|
-
e = r + 4 | 0;
|
|
1098
|
-
f[73] = e;
|
|
1099
|
-
a = f[71] | 0;
|
|
1100
|
-
i = s[402] | 0;
|
|
1101
|
-
r = i & 65535;
|
|
1102
|
-
f[a + (r << 3) >> 2] = 4;
|
|
1103
|
-
s[402] = i + 1 << 16 >> 16;
|
|
1104
|
-
f[a + (r << 3) + 4 >> 2] = e;
|
|
1105
|
-
} else if ((a | 0) == 7) {
|
|
1106
|
-
f[73] = e;
|
|
1107
|
-
r = f[71] | 0;
|
|
1108
|
-
i = (s[402] | 0) + -1 << 16 >> 16;
|
|
1109
|
-
s[402] = i;
|
|
1110
|
-
if ((f[r + ((i & 65535) << 3) >> 2] | 0) != 3) W();
|
|
1111
|
-
} else if ((a | 0) == 10) {
|
|
1112
|
-
f[73] = e;
|
|
1113
|
-
W();
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
function w(e) {
|
|
1117
|
-
e = e | 0;
|
|
1118
|
-
var a = 0, r = 0, i = 0;
|
|
1119
|
-
r = f[73] | 0;
|
|
1120
|
-
e: do {
|
|
1121
|
-
a = s[r >> 1] | 0;
|
|
1122
|
-
a: do
|
|
1123
|
-
if (a << 16 >> 16 != 47) if (e) if (X(a) | 0) break;
|
|
1124
|
-
else break e;
|
|
1125
|
-
else if (F(a) | 0) break;
|
|
1126
|
-
else break e;
|
|
1127
|
-
else switch (s[r + 2 >> 1] | 0) {
|
|
1128
|
-
case 47:
|
|
1129
|
-
P();
|
|
1130
|
-
break a;
|
|
1131
|
-
case 42:
|
|
1132
|
-
m(e);
|
|
1133
|
-
break a;
|
|
1134
|
-
default:
|
|
1135
|
-
a = 47;
|
|
1136
|
-
break e;
|
|
1137
|
-
}
|
|
1138
|
-
while (0);
|
|
1139
|
-
i = f[73] | 0;
|
|
1140
|
-
r = i + 2 | 0;
|
|
1141
|
-
f[73] = r;
|
|
1142
|
-
} while (i >>> 0 < (f[74] | 0) >>> 0);
|
|
1143
|
-
return a | 0;
|
|
1144
|
-
}
|
|
1145
|
-
function d(e, a, r, s) {
|
|
1146
|
-
e = e | 0;
|
|
1147
|
-
a = a | 0;
|
|
1148
|
-
r = r | 0;
|
|
1149
|
-
s = s | 0;
|
|
1150
|
-
var t = 0, c = 0;
|
|
1151
|
-
c = f[67] | 0;
|
|
1152
|
-
f[67] = c + 40;
|
|
1153
|
-
t = f[63] | 0;
|
|
1154
|
-
f[((t | 0) == 0 ? 236 : t + 36 | 0) >> 2] = c;
|
|
1155
|
-
f[64] = t;
|
|
1156
|
-
f[63] = c;
|
|
1157
|
-
f[c + 8 >> 2] = e;
|
|
1158
|
-
if (2 == (s | 0)) {
|
|
1159
|
-
e = 3;
|
|
1160
|
-
t = r;
|
|
1161
|
-
} else {
|
|
1162
|
-
t = 1 == (s | 0);
|
|
1163
|
-
e = t ? 1 : 2;
|
|
1164
|
-
t = t ? r + 2 | 0 : 0;
|
|
1165
|
-
}
|
|
1166
|
-
f[c + 12 >> 2] = t;
|
|
1167
|
-
f[c + 28 >> 2] = e;
|
|
1168
|
-
f[c >> 2] = a;
|
|
1169
|
-
f[c + 4 >> 2] = r;
|
|
1170
|
-
f[c + 16 >> 2] = 0;
|
|
1171
|
-
f[c + 20 >> 2] = s;
|
|
1172
|
-
a = 1 == (s | 0);
|
|
1173
|
-
i[c + 24 >> 0] = a & 1;
|
|
1174
|
-
f[c + 32 >> 2] = 0;
|
|
1175
|
-
f[c + 36 >> 2] = 0;
|
|
1176
|
-
if (a | 2 == (s | 0)) i[807] = 1;
|
|
1177
|
-
}
|
|
1178
|
-
function v(e) {
|
|
1179
|
-
e = e | 0;
|
|
1180
|
-
var a = 0, r = 0, i = 0, t = 0;
|
|
1181
|
-
t = f[74] | 0;
|
|
1182
|
-
a = f[73] | 0;
|
|
1183
|
-
while (1) {
|
|
1184
|
-
i = a + 2 | 0;
|
|
1185
|
-
if (a >>> 0 >= t >>> 0) {
|
|
1186
|
-
a = 9;
|
|
1187
|
-
break;
|
|
1188
|
-
}
|
|
1189
|
-
r = s[i >> 1] | 0;
|
|
1190
|
-
if (r << 16 >> 16 == e << 16 >> 16) {
|
|
1191
|
-
a = 10;
|
|
1192
|
-
break;
|
|
1193
|
-
}
|
|
1194
|
-
if (r << 16 >> 16 == 92) {
|
|
1195
|
-
r = a + 4 | 0;
|
|
1196
|
-
if ((s[r >> 1] | 0) == 13) {
|
|
1197
|
-
a = a + 6 | 0;
|
|
1198
|
-
a = (s[a >> 1] | 0) == 10 ? a : r;
|
|
1199
|
-
} else a = r;
|
|
1200
|
-
} else if (ie(r) | 0) {
|
|
1201
|
-
a = 9;
|
|
1202
|
-
break;
|
|
1203
|
-
} else a = i;
|
|
1204
|
-
}
|
|
1205
|
-
if ((a | 0) == 9) {
|
|
1206
|
-
f[73] = i;
|
|
1207
|
-
W();
|
|
1208
|
-
} else if ((a | 0) == 10) f[73] = i;
|
|
1209
|
-
}
|
|
1210
|
-
function A(e) {
|
|
1211
|
-
e = e | 0;
|
|
1212
|
-
var a = 0, r = 0;
|
|
1213
|
-
a = s[e >> 1] | 0;
|
|
1214
|
-
if (X(a) | 0) r = 3;
|
|
1215
|
-
else switch (a << 16 >> 16) {
|
|
1216
|
-
case 41:
|
|
1217
|
-
case 125:
|
|
1218
|
-
case 93:
|
|
1219
|
-
r = 3;
|
|
1220
|
-
break;
|
|
1221
|
-
default: e = 0;
|
|
1222
|
-
}
|
|
1223
|
-
e: do
|
|
1224
|
-
if ((r | 0) == 3) {
|
|
1225
|
-
r = f[3] | 0;
|
|
1226
|
-
while (1) {
|
|
1227
|
-
if (e >>> 0 <= r >>> 0) break;
|
|
1228
|
-
e = e + -2 | 0;
|
|
1229
|
-
if (!(X(a) | 0)) break;
|
|
1230
|
-
a = s[e >> 1] | 0;
|
|
1231
|
-
}
|
|
1232
|
-
switch (a << 16 >> 16) {
|
|
1233
|
-
case 41:
|
|
1234
|
-
case 125:
|
|
1235
|
-
case 93:
|
|
1236
|
-
e = 1;
|
|
1237
|
-
break e;
|
|
1238
|
-
default:
|
|
1239
|
-
}
|
|
1240
|
-
e = (U(a) | 0) ^ 1;
|
|
1241
|
-
}
|
|
1242
|
-
while (0);
|
|
1243
|
-
return e | 0;
|
|
1244
|
-
}
|
|
1245
|
-
function C(e, a) {
|
|
1246
|
-
e = e | 0;
|
|
1247
|
-
a = a | 0;
|
|
1248
|
-
var r = 0, i = 0, t = 0, c = 0;
|
|
1249
|
-
r = f[73] | 0;
|
|
1250
|
-
i = s[r >> 1] | 0;
|
|
1251
|
-
c = (e | 0) == (a | 0);
|
|
1252
|
-
t = c ? 0 : e;
|
|
1253
|
-
c = c ? 0 : a;
|
|
1254
|
-
if (i << 16 >> 16 == 97) {
|
|
1255
|
-
f[73] = r + 4;
|
|
1256
|
-
r = w(1) | 0;
|
|
1257
|
-
e = f[73] | 0;
|
|
1258
|
-
if (Y(r) | 0) {
|
|
1259
|
-
v(r);
|
|
1260
|
-
a = (f[73] | 0) + 2 | 0;
|
|
1261
|
-
f[73] = a;
|
|
1262
|
-
} else {
|
|
1263
|
-
q(r) | 0;
|
|
1264
|
-
a = f[73] | 0;
|
|
1265
|
-
}
|
|
1266
|
-
i = w(1) | 0;
|
|
1267
|
-
r = f[73] | 0;
|
|
1268
|
-
}
|
|
1269
|
-
if ((r | 0) != (e | 0)) $(e, a, t, c);
|
|
1270
|
-
return i | 0;
|
|
1271
|
-
}
|
|
1272
|
-
function g() {
|
|
1273
|
-
var e = 0, a = 0, r = 0;
|
|
1274
|
-
r = f[74] | 0;
|
|
1275
|
-
a = f[73] | 0;
|
|
1276
|
-
e: while (1) {
|
|
1277
|
-
e = a + 2 | 0;
|
|
1278
|
-
if (a >>> 0 >= r >>> 0) {
|
|
1279
|
-
a = 6;
|
|
1280
|
-
break;
|
|
1281
|
-
}
|
|
1282
|
-
switch (s[e >> 1] | 0) {
|
|
1283
|
-
case 13:
|
|
1284
|
-
case 10:
|
|
1285
|
-
a = 6;
|
|
1286
|
-
break e;
|
|
1287
|
-
case 93:
|
|
1288
|
-
a = 7;
|
|
1289
|
-
break e;
|
|
1290
|
-
case 92:
|
|
1291
|
-
e = a + 4 | 0;
|
|
1292
|
-
break;
|
|
1293
|
-
default:
|
|
1294
|
-
}
|
|
1295
|
-
a = e;
|
|
1296
|
-
}
|
|
1297
|
-
if ((a | 0) == 6) {
|
|
1298
|
-
f[73] = e;
|
|
1299
|
-
W();
|
|
1300
|
-
e = 0;
|
|
1301
|
-
} else if ((a | 0) == 7) {
|
|
1302
|
-
f[73] = e;
|
|
1303
|
-
e = 93;
|
|
1304
|
-
}
|
|
1305
|
-
return e | 0;
|
|
1306
|
-
}
|
|
1307
|
-
function p() {
|
|
1308
|
-
var e = 0, a = 0, r = 0;
|
|
1309
|
-
e: while (1) {
|
|
1310
|
-
e = f[73] | 0;
|
|
1311
|
-
a = e + 2 | 0;
|
|
1312
|
-
f[73] = a;
|
|
1313
|
-
if (e >>> 0 >= (f[74] | 0) >>> 0) {
|
|
1314
|
-
r = 7;
|
|
1315
|
-
break;
|
|
1316
|
-
}
|
|
1317
|
-
switch (s[a >> 1] | 0) {
|
|
1318
|
-
case 13:
|
|
1319
|
-
case 10:
|
|
1320
|
-
r = 7;
|
|
1321
|
-
break e;
|
|
1322
|
-
case 47: break e;
|
|
1323
|
-
case 91:
|
|
1324
|
-
g() | 0;
|
|
1325
|
-
break;
|
|
1326
|
-
case 92:
|
|
1327
|
-
f[73] = e + 4;
|
|
1328
|
-
break;
|
|
1329
|
-
default:
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
if ((r | 0) == 7) W();
|
|
1333
|
-
}
|
|
1334
|
-
function y(e) {
|
|
1335
|
-
e = e | 0;
|
|
1336
|
-
switch (s[e >> 1] | 0) {
|
|
1337
|
-
case 62:
|
|
1338
|
-
e = (s[e + -2 >> 1] | 0) == 61;
|
|
1339
|
-
break;
|
|
1340
|
-
case 41:
|
|
1341
|
-
case 59:
|
|
1342
|
-
e = 1;
|
|
1343
|
-
break;
|
|
1344
|
-
case 104:
|
|
1345
|
-
e = T(e + -2 | 0, 208, 4) | 0;
|
|
1346
|
-
break;
|
|
1347
|
-
case 121:
|
|
1348
|
-
e = T(e + -2 | 0, 216, 6) | 0;
|
|
1349
|
-
break;
|
|
1350
|
-
case 101:
|
|
1351
|
-
e = T(e + -2 | 0, 228, 3) | 0;
|
|
1352
|
-
break;
|
|
1353
|
-
default: e = 0;
|
|
1354
|
-
}
|
|
1355
|
-
return e | 0;
|
|
1356
|
-
}
|
|
1357
|
-
function m(e) {
|
|
1358
|
-
e = e | 0;
|
|
1359
|
-
var a = 0, r = 0, i = 0, t = 0, c = 0;
|
|
1360
|
-
t = (f[73] | 0) + 2 | 0;
|
|
1361
|
-
f[73] = t;
|
|
1362
|
-
r = f[74] | 0;
|
|
1363
|
-
while (1) {
|
|
1364
|
-
a = t + 2 | 0;
|
|
1365
|
-
if (t >>> 0 >= r >>> 0) break;
|
|
1366
|
-
i = s[a >> 1] | 0;
|
|
1367
|
-
if (!e ? ie(i) | 0 : 0) break;
|
|
1368
|
-
if (i << 16 >> 16 == 42 ? (s[t + 4 >> 1] | 0) == 47 : 0) {
|
|
1369
|
-
c = 8;
|
|
1370
|
-
break;
|
|
1371
|
-
}
|
|
1372
|
-
t = a;
|
|
1373
|
-
}
|
|
1374
|
-
if ((c | 0) == 8) {
|
|
1375
|
-
f[73] = a;
|
|
1376
|
-
a = t + 4 | 0;
|
|
1377
|
-
}
|
|
1378
|
-
f[73] = a;
|
|
1379
|
-
}
|
|
1380
|
-
function I(e, a, r) {
|
|
1381
|
-
e = e | 0;
|
|
1382
|
-
a = a | 0;
|
|
1383
|
-
r = r | 0;
|
|
1384
|
-
var s = 0, f = 0;
|
|
1385
|
-
e: do
|
|
1386
|
-
if (!r) e = 0;
|
|
1387
|
-
else {
|
|
1388
|
-
while (1) {
|
|
1389
|
-
s = i[e >> 0] | 0;
|
|
1390
|
-
f = i[a >> 0] | 0;
|
|
1391
|
-
if (s << 24 >> 24 != f << 24 >> 24) break;
|
|
1392
|
-
r = r + -1 | 0;
|
|
1393
|
-
if (!r) {
|
|
1394
|
-
e = 0;
|
|
1395
|
-
break e;
|
|
1396
|
-
} else {
|
|
1397
|
-
e = e + 1 | 0;
|
|
1398
|
-
a = a + 1 | 0;
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
e = (s & 255) - (f & 255) | 0;
|
|
1402
|
-
}
|
|
1403
|
-
while (0);
|
|
1404
|
-
return e | 0;
|
|
1405
|
-
}
|
|
1406
|
-
function U(e) {
|
|
1407
|
-
e = e | 0;
|
|
1408
|
-
e: do
|
|
1409
|
-
switch (e << 16 >> 16) {
|
|
1410
|
-
case 38:
|
|
1411
|
-
case 37:
|
|
1412
|
-
case 33:
|
|
1413
|
-
e = 1;
|
|
1414
|
-
break;
|
|
1415
|
-
default: if ((e & -8) << 16 >> 16 == 40 | (e + -58 & 65535) < 6) e = 1;
|
|
1416
|
-
else {
|
|
1417
|
-
switch (e << 16 >> 16) {
|
|
1418
|
-
case 91:
|
|
1419
|
-
case 93:
|
|
1420
|
-
case 94:
|
|
1421
|
-
e = 1;
|
|
1422
|
-
break e;
|
|
1423
|
-
default:
|
|
1424
|
-
}
|
|
1425
|
-
e = (e + -123 & 65535) < 4;
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
while (0);
|
|
1429
|
-
return e | 0;
|
|
1430
|
-
}
|
|
1431
|
-
function x(e) {
|
|
1432
|
-
e = e | 0;
|
|
1433
|
-
e: do
|
|
1434
|
-
switch (e << 16 >> 16) {
|
|
1435
|
-
case 38:
|
|
1436
|
-
case 37:
|
|
1437
|
-
case 33: break;
|
|
1438
|
-
default: if (!((e + -58 & 65535) < 6 | (e + -40 & 65535) < 7 & e << 16 >> 16 != 41)) {
|
|
1439
|
-
switch (e << 16 >> 16) {
|
|
1440
|
-
case 91:
|
|
1441
|
-
case 94: break e;
|
|
1442
|
-
default:
|
|
1443
|
-
}
|
|
1444
|
-
return e << 16 >> 16 != 125 & (e + -123 & 65535) < 4 | 0;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
while (0);
|
|
1448
|
-
return 1;
|
|
1449
|
-
}
|
|
1450
|
-
function S(e) {
|
|
1451
|
-
e = e | 0;
|
|
1452
|
-
var a = 0;
|
|
1453
|
-
a = s[e >> 1] | 0;
|
|
1454
|
-
e: do
|
|
1455
|
-
if ((a + -9 & 65535) >= 5) {
|
|
1456
|
-
switch (a << 16 >> 16) {
|
|
1457
|
-
case 160:
|
|
1458
|
-
case 32:
|
|
1459
|
-
a = 1;
|
|
1460
|
-
break e;
|
|
1461
|
-
default:
|
|
1462
|
-
}
|
|
1463
|
-
if (U(a) | 0) return a << 16 >> 16 != 46 | (G(e) | 0) | 0;
|
|
1464
|
-
else a = 0;
|
|
1465
|
-
} else a = 1;
|
|
1466
|
-
while (0);
|
|
1467
|
-
return a | 0;
|
|
1468
|
-
}
|
|
1469
|
-
function O(e) {
|
|
1470
|
-
e = e | 0;
|
|
1471
|
-
var a = 0, r = 0, i = 0, t = 0;
|
|
1472
|
-
r = n;
|
|
1473
|
-
n = n + 16 | 0;
|
|
1474
|
-
i = r;
|
|
1475
|
-
f[i >> 2] = 0;
|
|
1476
|
-
f[66] = e;
|
|
1477
|
-
a = f[3] | 0;
|
|
1478
|
-
t = a + (e << 1) | 0;
|
|
1479
|
-
e = t + 2 | 0;
|
|
1480
|
-
s[t >> 1] = 0;
|
|
1481
|
-
f[i >> 2] = e;
|
|
1482
|
-
f[67] = e;
|
|
1483
|
-
f[59] = 0;
|
|
1484
|
-
f[63] = 0;
|
|
1485
|
-
f[61] = 0;
|
|
1486
|
-
f[60] = 0;
|
|
1487
|
-
f[65] = 0;
|
|
1488
|
-
f[62] = 0;
|
|
1489
|
-
n = r;
|
|
1490
|
-
return a | 0;
|
|
1491
|
-
}
|
|
1492
|
-
function $(e, a, r, s) {
|
|
1493
|
-
e = e | 0;
|
|
1494
|
-
a = a | 0;
|
|
1495
|
-
r = r | 0;
|
|
1496
|
-
s = s | 0;
|
|
1497
|
-
var t = 0, c = 0;
|
|
1498
|
-
t = f[67] | 0;
|
|
1499
|
-
f[67] = t + 20;
|
|
1500
|
-
c = f[65] | 0;
|
|
1501
|
-
f[((c | 0) == 0 ? 240 : c + 16 | 0) >> 2] = t;
|
|
1502
|
-
f[65] = t;
|
|
1503
|
-
f[t >> 2] = e;
|
|
1504
|
-
f[t + 4 >> 2] = a;
|
|
1505
|
-
f[t + 8 >> 2] = r;
|
|
1506
|
-
f[t + 12 >> 2] = s;
|
|
1507
|
-
f[t + 16 >> 2] = 0;
|
|
1508
|
-
i[807] = 1;
|
|
1509
|
-
}
|
|
1510
|
-
function T(e, a, r) {
|
|
1511
|
-
e = e | 0;
|
|
1512
|
-
a = a | 0;
|
|
1513
|
-
r = r | 0;
|
|
1514
|
-
var i = 0, s = 0;
|
|
1515
|
-
i = e + (0 - r << 1) | 0;
|
|
1516
|
-
s = i + 2 | 0;
|
|
1517
|
-
e = f[3] | 0;
|
|
1518
|
-
if (s >>> 0 >= e >>> 0 ? (I(s, a, r << 1) | 0) == 0 : 0) if ((s | 0) == (e | 0)) e = 1;
|
|
1519
|
-
else e = S(i) | 0;
|
|
1520
|
-
else e = 0;
|
|
1521
|
-
return e | 0;
|
|
1522
|
-
}
|
|
1523
|
-
function j(e) {
|
|
1524
|
-
e = e | 0;
|
|
1525
|
-
switch (s[e >> 1] | 0) {
|
|
1526
|
-
case 107:
|
|
1527
|
-
e = T(e + -2 | 0, 148, 4) | 0;
|
|
1528
|
-
break;
|
|
1529
|
-
case 101:
|
|
1530
|
-
if ((s[e + -2 >> 1] | 0) == 117) e = T(e + -4 | 0, 120, 6) | 0;
|
|
1531
|
-
else e = 0;
|
|
1532
|
-
break;
|
|
1533
|
-
default: e = 0;
|
|
1534
|
-
}
|
|
1535
|
-
return e | 0;
|
|
1536
|
-
}
|
|
1537
|
-
function B(e, a) {
|
|
1538
|
-
e = e | 0;
|
|
1539
|
-
a = a | 0;
|
|
1540
|
-
var r = 0;
|
|
1541
|
-
r = f[3] | 0;
|
|
1542
|
-
if (r >>> 0 <= e >>> 0 ? (s[e >> 1] | 0) == a << 16 >> 16 : 0) if ((r | 0) == (e | 0)) r = 1;
|
|
1543
|
-
else r = E(s[e + -2 >> 1] | 0) | 0;
|
|
1544
|
-
else r = 0;
|
|
1545
|
-
return r | 0;
|
|
1546
|
-
}
|
|
1547
|
-
function E(e) {
|
|
1548
|
-
e = e | 0;
|
|
1549
|
-
e: do
|
|
1550
|
-
if ((e + -9 & 65535) < 5) e = 1;
|
|
1551
|
-
else {
|
|
1552
|
-
switch (e << 16 >> 16) {
|
|
1553
|
-
case 32:
|
|
1554
|
-
case 160:
|
|
1555
|
-
e = 1;
|
|
1556
|
-
break e;
|
|
1557
|
-
default:
|
|
1558
|
-
}
|
|
1559
|
-
e = e << 16 >> 16 != 46 & (U(e) | 0);
|
|
1560
|
-
}
|
|
1561
|
-
while (0);
|
|
1562
|
-
return e | 0;
|
|
1563
|
-
}
|
|
1564
|
-
function P() {
|
|
1565
|
-
var e = 0, a = 0, r = 0;
|
|
1566
|
-
e = f[74] | 0;
|
|
1567
|
-
r = f[73] | 0;
|
|
1568
|
-
e: while (1) {
|
|
1569
|
-
a = r + 2 | 0;
|
|
1570
|
-
if (r >>> 0 >= e >>> 0) break;
|
|
1571
|
-
switch (s[a >> 1] | 0) {
|
|
1572
|
-
case 13:
|
|
1573
|
-
case 10: break e;
|
|
1574
|
-
default: r = a;
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
f[73] = a;
|
|
1578
|
-
}
|
|
1579
|
-
function q(e) {
|
|
1580
|
-
e = e | 0;
|
|
1581
|
-
while (1) {
|
|
1582
|
-
if (X(e) | 0) break;
|
|
1583
|
-
if (U(e) | 0) break;
|
|
1584
|
-
e = (f[73] | 0) + 2 | 0;
|
|
1585
|
-
f[73] = e;
|
|
1586
|
-
e = s[e >> 1] | 0;
|
|
1587
|
-
if (!(e << 16 >> 16)) {
|
|
1588
|
-
e = 0;
|
|
1589
|
-
break;
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
return e | 0;
|
|
1593
|
-
}
|
|
1594
|
-
function z() {
|
|
1595
|
-
var e = 0;
|
|
1596
|
-
e = f[(f[61] | 0) + 20 >> 2] | 0;
|
|
1597
|
-
switch (e | 0) {
|
|
1598
|
-
case 1:
|
|
1599
|
-
e = -1;
|
|
1600
|
-
break;
|
|
1601
|
-
case 2:
|
|
1602
|
-
e = -2;
|
|
1603
|
-
break;
|
|
1604
|
-
default: e = e - (f[3] | 0) >> 1;
|
|
1605
|
-
}
|
|
1606
|
-
return e | 0;
|
|
1607
|
-
}
|
|
1608
|
-
function D(e) {
|
|
1609
|
-
e = e | 0;
|
|
1610
|
-
if (!(T(e, 194, 5) | 0) ? !(T(e, 44, 3) | 0) : 0) e = T(e, 204, 2) | 0;
|
|
1611
|
-
else e = 1;
|
|
1612
|
-
return e | 0;
|
|
1613
|
-
}
|
|
1614
|
-
function F(e) {
|
|
1615
|
-
e = e | 0;
|
|
1616
|
-
switch (e << 16 >> 16) {
|
|
1617
|
-
case 160:
|
|
1618
|
-
case 32:
|
|
1619
|
-
case 12:
|
|
1620
|
-
case 11:
|
|
1621
|
-
case 9:
|
|
1622
|
-
e = 1;
|
|
1623
|
-
break;
|
|
1624
|
-
default: e = 0;
|
|
1625
|
-
}
|
|
1626
|
-
return e | 0;
|
|
1627
|
-
}
|
|
1628
|
-
function G(e) {
|
|
1629
|
-
e = e | 0;
|
|
1630
|
-
if ((s[e >> 1] | 0) == 46 ? (s[e + -2 >> 1] | 0) == 46 : 0) e = (s[e + -4 >> 1] | 0) == 46;
|
|
1631
|
-
else e = 0;
|
|
1632
|
-
return e | 0;
|
|
1633
|
-
}
|
|
1634
|
-
function H() {
|
|
1635
|
-
var e = 0;
|
|
1636
|
-
e = f[69] | 0;
|
|
1637
|
-
e = f[((e | 0) == 0 ? (f[61] | 0) + 32 | 0 : e + 16 | 0) >> 2] | 0;
|
|
1638
|
-
f[69] = e;
|
|
1639
|
-
return (e | 0) != 0 | 0;
|
|
1640
|
-
}
|
|
1641
|
-
function J(e) {
|
|
1642
|
-
e = e | 0;
|
|
1643
|
-
if ((f[3] | 0) == (e | 0)) e = 1;
|
|
1644
|
-
else e = S(e + -2 | 0) | 0;
|
|
1645
|
-
return e | 0;
|
|
1646
|
-
}
|
|
1647
|
-
function K() {
|
|
1648
|
-
var e = 0;
|
|
1649
|
-
e = f[(f[62] | 0) + 12 >> 2] | 0;
|
|
1650
|
-
if (!e) e = -1;
|
|
1651
|
-
else e = e - (f[3] | 0) >> 1;
|
|
1652
|
-
return e | 0;
|
|
1653
|
-
}
|
|
1654
|
-
function L() {
|
|
1655
|
-
var e = 0;
|
|
1656
|
-
e = f[(f[61] | 0) + 12 >> 2] | 0;
|
|
1657
|
-
if (!e) e = -1;
|
|
1658
|
-
else e = e - (f[3] | 0) >> 1;
|
|
1659
|
-
return e | 0;
|
|
1660
|
-
}
|
|
1661
|
-
function M() {
|
|
1662
|
-
var e = 0;
|
|
1663
|
-
e = f[(f[62] | 0) + 8 >> 2] | 0;
|
|
1664
|
-
if (!e) e = -1;
|
|
1665
|
-
else e = e - (f[3] | 0) >> 1;
|
|
1666
|
-
return e | 0;
|
|
1667
|
-
}
|
|
1668
|
-
function N() {
|
|
1669
|
-
var e = 0;
|
|
1670
|
-
e = f[(f[61] | 0) + 16 >> 2] | 0;
|
|
1671
|
-
if (!e) e = -1;
|
|
1672
|
-
else e = e - (f[3] | 0) >> 1;
|
|
1673
|
-
return e | 0;
|
|
1674
|
-
}
|
|
1675
|
-
function Q() {
|
|
1676
|
-
var e = 0;
|
|
1677
|
-
e = f[(f[61] | 0) + 4 >> 2] | 0;
|
|
1678
|
-
if (!e) e = -1;
|
|
1679
|
-
else e = e - (f[3] | 0) >> 1;
|
|
1680
|
-
return e | 0;
|
|
1681
|
-
}
|
|
1682
|
-
function R() {
|
|
1683
|
-
var e = 0;
|
|
1684
|
-
e = f[61] | 0;
|
|
1685
|
-
e = f[((e | 0) == 0 ? 236 : e + 36 | 0) >> 2] | 0;
|
|
1686
|
-
f[61] = e;
|
|
1687
|
-
return (e | 0) != 0 | 0;
|
|
1688
|
-
}
|
|
1689
|
-
function V() {
|
|
1690
|
-
var e = 0;
|
|
1691
|
-
e = f[62] | 0;
|
|
1692
|
-
e = f[((e | 0) == 0 ? 240 : e + 16 | 0) >> 2] | 0;
|
|
1693
|
-
f[62] = e;
|
|
1694
|
-
return (e | 0) != 0 | 0;
|
|
1695
|
-
}
|
|
1696
|
-
function W() {
|
|
1697
|
-
i[806] = 1;
|
|
1698
|
-
f[68] = (f[73] | 0) - (f[3] | 0) >> 1;
|
|
1699
|
-
f[73] = (f[74] | 0) + 2;
|
|
1700
|
-
}
|
|
1701
|
-
function X(e) {
|
|
1702
|
-
e = e | 0;
|
|
1703
|
-
return (e | 128) << 16 >> 16 == 160 | (e + -9 & 65535) < 5 | 0;
|
|
1704
|
-
}
|
|
1705
|
-
function Y(e) {
|
|
1706
|
-
e = e | 0;
|
|
1707
|
-
return e << 16 >> 16 == 39 | e << 16 >> 16 == 34 | 0;
|
|
1708
|
-
}
|
|
1709
|
-
function Z() {
|
|
1710
|
-
return (f[(f[69] | 0) + 12 >> 2] | 0) - (f[3] | 0) >> 1 | 0;
|
|
1711
|
-
}
|
|
1712
|
-
function _() {
|
|
1713
|
-
return (f[(f[69] | 0) + 8 >> 2] | 0) - (f[3] | 0) >> 1 | 0;
|
|
1714
|
-
}
|
|
1715
|
-
function ee() {
|
|
1716
|
-
return (f[(f[69] | 0) + 4 >> 2] | 0) - (f[3] | 0) >> 1 | 0;
|
|
1717
|
-
}
|
|
1718
|
-
function ae() {
|
|
1719
|
-
return (f[(f[61] | 0) + 8 >> 2] | 0) - (f[3] | 0) >> 1 | 0;
|
|
1720
|
-
}
|
|
1721
|
-
function re() {
|
|
1722
|
-
return (f[(f[62] | 0) + 4 >> 2] | 0) - (f[3] | 0) >> 1 | 0;
|
|
1723
|
-
}
|
|
1724
|
-
function ie(e) {
|
|
1725
|
-
e = e | 0;
|
|
1726
|
-
return e << 16 >> 16 == 13 | e << 16 >> 16 == 10 | 0;
|
|
1727
|
-
}
|
|
1728
|
-
function se() {
|
|
1729
|
-
return (f[f[69] >> 2] | 0) - (f[3] | 0) >> 1 | 0;
|
|
1730
|
-
}
|
|
1731
|
-
function fe() {
|
|
1732
|
-
return (f[f[61] >> 2] | 0) - (f[3] | 0) >> 1 | 0;
|
|
1733
|
-
}
|
|
1734
|
-
function te() {
|
|
1735
|
-
return (f[f[62] >> 2] | 0) - (f[3] | 0) >> 1 | 0;
|
|
1736
|
-
}
|
|
1737
|
-
function ce() {
|
|
1738
|
-
return t[(f[61] | 0) + 24 >> 0] | 0;
|
|
1739
|
-
}
|
|
1740
|
-
function ne(e) {
|
|
1741
|
-
e = e | 0;
|
|
1742
|
-
f[3] = e;
|
|
1743
|
-
}
|
|
1744
|
-
function be() {
|
|
1745
|
-
return f[(f[61] | 0) + 28 >> 2] | 0;
|
|
1746
|
-
}
|
|
1747
|
-
function ke() {
|
|
1748
|
-
return (i[807] | 0) != 0 | 0;
|
|
1749
|
-
}
|
|
1750
|
-
function ue() {
|
|
1751
|
-
return (i[808] | 0) != 0 | 0;
|
|
1752
|
-
}
|
|
1753
|
-
function le() {
|
|
1754
|
-
f[69] = 0;
|
|
1755
|
-
}
|
|
1756
|
-
function oe() {
|
|
1757
|
-
return f[68] | 0;
|
|
1758
|
-
}
|
|
1759
|
-
function he(e) {
|
|
1760
|
-
e = e | 0;
|
|
1761
|
-
n = e + 992 + 15 & -16;
|
|
1762
|
-
return 992;
|
|
1763
|
-
}
|
|
1764
|
-
return {
|
|
1765
|
-
su: he,
|
|
1766
|
-
ai: N,
|
|
1767
|
-
ake: ee,
|
|
1768
|
-
aks: se,
|
|
1769
|
-
ave: Z,
|
|
1770
|
-
avs: _,
|
|
1771
|
-
e: oe,
|
|
1772
|
-
ee: re,
|
|
1773
|
-
ele: K,
|
|
1774
|
-
els: M,
|
|
1775
|
-
es: te,
|
|
1776
|
-
f: ue,
|
|
1777
|
-
id: z,
|
|
1778
|
-
ie: Q,
|
|
1779
|
-
ip: ce,
|
|
1780
|
-
is: fe,
|
|
1781
|
-
it: be,
|
|
1782
|
-
ms: ke,
|
|
1783
|
-
p: b,
|
|
1784
|
-
ra: H,
|
|
1785
|
-
re: V,
|
|
1786
|
-
ri: R,
|
|
1787
|
-
rsa: le,
|
|
1788
|
-
sa: O,
|
|
1789
|
-
se: L,
|
|
1790
|
-
ses: ne,
|
|
1791
|
-
ss: ae
|
|
1792
|
-
};
|
|
1793
|
-
}("undefined" != typeof globalThis ? globalThis : self, {}, a), r = e.su(i - (2 << 17));
|
|
1794
|
-
}
|
|
1795
|
-
const h = t.length + 1;
|
|
1796
|
-
e.ses(r), e.sa(h - 1), s(t, new Uint16Array(a, r, h)), e.p() || (n = e.e(), o());
|
|
1797
|
-
const w = [], d = [];
|
|
1798
|
-
for (; e.ri();) {
|
|
1799
|
-
const a = e.is(), r = e.ie(), i = e.ai(), s = e.id(), f = e.ss(), c = e.se(), n = e.it();
|
|
1800
|
-
let k;
|
|
1801
|
-
e.ip() && (k = b(-1 === s ? a : a + 1, t.charCodeAt(-1 === s ? a - 1 : a)));
|
|
1802
|
-
const u = [];
|
|
1803
|
-
for (e.rsa(); e.ra();) {
|
|
1804
|
-
const a = e.aks(), r = e.ake(), i = e.avs(), s = e.ave(), f = v(a, r), t = v(i, s);
|
|
1805
|
-
u.push([f, t]);
|
|
1806
|
-
}
|
|
1807
|
-
w.push({
|
|
1808
|
-
t: n,
|
|
1809
|
-
n: k,
|
|
1810
|
-
s: a,
|
|
1811
|
-
e: r,
|
|
1812
|
-
ss: f,
|
|
1813
|
-
se: c,
|
|
1814
|
-
d: s,
|
|
1815
|
-
a: i,
|
|
1816
|
-
at: u.length > 0 ? u : null
|
|
1817
|
-
});
|
|
1818
|
-
}
|
|
1819
|
-
for (; e.re();) {
|
|
1820
|
-
const a = e.es(), r = e.ee(), i = e.els(), s = e.ele(), f = v(a, r), t = i < 0 ? void 0 : v(i, s);
|
|
1821
|
-
d.push({
|
|
1822
|
-
s: a,
|
|
1823
|
-
e: r,
|
|
1824
|
-
ls: i,
|
|
1825
|
-
le: s,
|
|
1826
|
-
n: f,
|
|
1827
|
-
ln: t
|
|
1828
|
-
});
|
|
1829
|
-
}
|
|
1830
|
-
return [
|
|
1831
|
-
w,
|
|
1832
|
-
d,
|
|
1833
|
-
!!e.f(),
|
|
1834
|
-
!!e.ms()
|
|
1835
|
-
];
|
|
1836
|
-
function v(e, a) {
|
|
1837
|
-
const r = t.charCodeAt(e);
|
|
1838
|
-
return 34 === r || 39 === r ? b(e + 1, r) : t.slice(e, a);
|
|
1839
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
function b(e, a) {
|
|
1842
|
-
n = e;
|
|
1843
|
-
let r = "", i = n;
|
|
1844
|
-
for (;;) {
|
|
1845
|
-
n >= t.length && o();
|
|
1846
|
-
const e = t.charCodeAt(n);
|
|
1847
|
-
if (e === a) break;
|
|
1848
|
-
92 === e ? (r += t.slice(i, n), r += k(), i = n) : (8232 === e || 8233 === e || l(e) && o(), ++n);
|
|
1849
|
-
}
|
|
1850
|
-
return r += t.slice(i, n++), r;
|
|
1851
|
-
}
|
|
1852
|
-
function k() {
|
|
1853
|
-
let e = t.charCodeAt(++n);
|
|
1854
|
-
switch (++n, e) {
|
|
1855
|
-
case 110: return "\n";
|
|
1856
|
-
case 114: return "\r";
|
|
1857
|
-
case 120: return String.fromCharCode(u(2));
|
|
1858
|
-
case 117: return function() {
|
|
1859
|
-
const e = t.charCodeAt(n);
|
|
1860
|
-
let a;
|
|
1861
|
-
123 === e ? (++n, a = u(t.indexOf("}", n) - n), ++n, a > 1114111 && o()) : a = u(4);
|
|
1862
|
-
return a <= 65535 ? String.fromCharCode(a) : (a -= 65536, String.fromCharCode(55296 + (a >> 10), 56320 + (1023 & a)));
|
|
1863
|
-
}();
|
|
1864
|
-
case 116: return " ";
|
|
1865
|
-
case 98: return "\b";
|
|
1866
|
-
case 118: return "\v";
|
|
1867
|
-
case 102: return "\f";
|
|
1868
|
-
case 13: 10 === t.charCodeAt(n) && ++n;
|
|
1869
|
-
case 10: return "";
|
|
1870
|
-
case 56:
|
|
1871
|
-
case 57: o();
|
|
1872
|
-
default:
|
|
1873
|
-
if (e >= 48 && e <= 55) {
|
|
1874
|
-
let a = t.substr(n - 1, 3).match(/^[0-7]+/)[0], r = parseInt(a, 8);
|
|
1875
|
-
return r > 255 && (a = a.slice(0, -1), r = parseInt(a, 8)), n += a.length - 1, e = t.charCodeAt(n), "0" === a && 56 !== e && 57 !== e || o(), String.fromCharCode(r);
|
|
1876
|
-
}
|
|
1877
|
-
return l(e) ? "" : String.fromCharCode(e);
|
|
1878
|
-
}
|
|
1879
|
-
}
|
|
1880
|
-
function u(e) {
|
|
1881
|
-
const a = n;
|
|
1882
|
-
let r = 0, i = 0;
|
|
1883
|
-
for (let a = 0; a < e; ++a, ++n) {
|
|
1884
|
-
let e, s = t.charCodeAt(n);
|
|
1885
|
-
if (95 !== s) {
|
|
1886
|
-
if (s >= 97) e = s - 97 + 10;
|
|
1887
|
-
else if (s >= 65) e = s - 65 + 10;
|
|
1888
|
-
else {
|
|
1889
|
-
if (!(s >= 48 && s <= 57)) break;
|
|
1890
|
-
e = s - 48;
|
|
1891
|
-
}
|
|
1892
|
-
if (e >= 16) break;
|
|
1893
|
-
i = s, r = 16 * r + e;
|
|
1894
|
-
} else 95 !== i && 0 !== a || o(), i = s;
|
|
1895
|
-
}
|
|
1896
|
-
return 95 !== i && n - a === e || o(), r;
|
|
1897
|
-
}
|
|
1898
|
-
function l(e) {
|
|
1899
|
-
return 13 === e || 10 === e;
|
|
1900
|
-
}
|
|
1901
|
-
function o() {
|
|
1902
|
-
throw Object.assign(Error(`Parse error ${c}:${t.slice(0, n).split("\n").length}:${n - t.lastIndexOf("\n", n - 1)}`), { idx: n });
|
|
1903
|
-
}
|
|
1904
|
-
//#endregion
|
|
1905
|
-
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
1906
|
-
/**
|
|
1907
|
-
* @typedef { import('estree').Node} Node
|
|
1908
|
-
* @typedef {{
|
|
1909
|
-
* skip: () => void;
|
|
1910
|
-
* remove: () => void;
|
|
1911
|
-
* replace: (node: Node) => void;
|
|
1912
|
-
* }} WalkerContext
|
|
1913
|
-
*/
|
|
1914
|
-
var WalkerBase = class {
|
|
1915
|
-
constructor() {
|
|
1916
|
-
/** @type {boolean} */
|
|
1917
|
-
this.should_skip = false;
|
|
1918
|
-
/** @type {boolean} */
|
|
1919
|
-
this.should_remove = false;
|
|
1920
|
-
/** @type {Node | null} */
|
|
1921
|
-
this.replacement = null;
|
|
1922
|
-
/** @type {WalkerContext} */
|
|
1923
|
-
this.context = {
|
|
1924
|
-
skip: () => this.should_skip = true,
|
|
1925
|
-
remove: () => this.should_remove = true,
|
|
1926
|
-
replace: (node) => this.replacement = node
|
|
1927
|
-
};
|
|
1928
|
-
}
|
|
1929
|
-
/**
|
|
1930
|
-
* @template {Node} Parent
|
|
1931
|
-
* @param {Parent | null | undefined} parent
|
|
1932
|
-
* @param {keyof Parent | null | undefined} prop
|
|
1933
|
-
* @param {number | null | undefined} index
|
|
1934
|
-
* @param {Node} node
|
|
1935
|
-
*/
|
|
1936
|
-
replace(parent, prop, index, node) {
|
|
1937
|
-
if (parent && prop) if (index != null)
|
|
1938
|
-
/** @type {Array<Node>} */ parent[prop][index] = node;
|
|
1939
|
-
else
|
|
1940
|
-
/** @type {Node} */ parent[prop] = node;
|
|
1941
|
-
}
|
|
1942
|
-
/**
|
|
1943
|
-
* @template {Node} Parent
|
|
1944
|
-
* @param {Parent | null | undefined} parent
|
|
1945
|
-
* @param {keyof Parent | null | undefined} prop
|
|
1946
|
-
* @param {number | null | undefined} index
|
|
1947
|
-
*/
|
|
1948
|
-
remove(parent, prop, index) {
|
|
1949
|
-
if (parent && prop) if (index !== null && index !== void 0)
|
|
1950
|
-
/** @type {Array<Node>} */ parent[prop].splice(index, 1);
|
|
1951
|
-
else delete parent[prop];
|
|
1952
|
-
}
|
|
1953
|
-
};
|
|
1954
|
-
//#endregion
|
|
1955
|
-
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
|
|
1956
|
-
/**
|
|
1957
|
-
* @typedef { import('estree').Node} Node
|
|
1958
|
-
* @typedef { import('./walker.js').WalkerContext} WalkerContext
|
|
1959
|
-
* @typedef {(
|
|
1960
|
-
* this: WalkerContext,
|
|
1961
|
-
* node: Node,
|
|
1962
|
-
* parent: Node | null,
|
|
1963
|
-
* key: string | number | symbol | null | undefined,
|
|
1964
|
-
* index: number | null | undefined
|
|
1965
|
-
* ) => void} SyncHandler
|
|
1966
|
-
*/
|
|
1967
|
-
var SyncWalker = class extends WalkerBase {
|
|
1968
|
-
/**
|
|
1969
|
-
*
|
|
1970
|
-
* @param {SyncHandler} [enter]
|
|
1971
|
-
* @param {SyncHandler} [leave]
|
|
1972
|
-
*/
|
|
1973
|
-
constructor(enter, leave) {
|
|
1974
|
-
super();
|
|
1975
|
-
/** @type {boolean} */
|
|
1976
|
-
this.should_skip = false;
|
|
1977
|
-
/** @type {boolean} */
|
|
1978
|
-
this.should_remove = false;
|
|
1979
|
-
/** @type {Node | null} */
|
|
1980
|
-
this.replacement = null;
|
|
1981
|
-
/** @type {WalkerContext} */
|
|
1982
|
-
this.context = {
|
|
1983
|
-
skip: () => this.should_skip = true,
|
|
1984
|
-
remove: () => this.should_remove = true,
|
|
1985
|
-
replace: (node) => this.replacement = node
|
|
1986
|
-
};
|
|
1987
|
-
/** @type {SyncHandler | undefined} */
|
|
1988
|
-
this.enter = enter;
|
|
1989
|
-
/** @type {SyncHandler | undefined} */
|
|
1990
|
-
this.leave = leave;
|
|
1991
|
-
}
|
|
1992
|
-
/**
|
|
1993
|
-
* @template {Node} Parent
|
|
1994
|
-
* @param {Node} node
|
|
1995
|
-
* @param {Parent | null} parent
|
|
1996
|
-
* @param {keyof Parent} [prop]
|
|
1997
|
-
* @param {number | null} [index]
|
|
1998
|
-
* @returns {Node | null}
|
|
1999
|
-
*/
|
|
2000
|
-
visit(node, parent, prop, index) {
|
|
2001
|
-
if (node) {
|
|
2002
|
-
if (this.enter) {
|
|
2003
|
-
const _should_skip = this.should_skip;
|
|
2004
|
-
const _should_remove = this.should_remove;
|
|
2005
|
-
const _replacement = this.replacement;
|
|
2006
|
-
this.should_skip = false;
|
|
2007
|
-
this.should_remove = false;
|
|
2008
|
-
this.replacement = null;
|
|
2009
|
-
this.enter.call(this.context, node, parent, prop, index);
|
|
2010
|
-
if (this.replacement) {
|
|
2011
|
-
node = this.replacement;
|
|
2012
|
-
this.replace(parent, prop, index, node);
|
|
2013
|
-
}
|
|
2014
|
-
if (this.should_remove) this.remove(parent, prop, index);
|
|
2015
|
-
const skipped = this.should_skip;
|
|
2016
|
-
const removed = this.should_remove;
|
|
2017
|
-
this.should_skip = _should_skip;
|
|
2018
|
-
this.should_remove = _should_remove;
|
|
2019
|
-
this.replacement = _replacement;
|
|
2020
|
-
if (skipped) return node;
|
|
2021
|
-
if (removed) return null;
|
|
2022
|
-
}
|
|
2023
|
-
/** @type {keyof Node} */
|
|
2024
|
-
let key;
|
|
2025
|
-
for (key in node) {
|
|
2026
|
-
/** @type {unknown} */
|
|
2027
|
-
const value = node[key];
|
|
2028
|
-
if (value && typeof value === "object") {
|
|
2029
|
-
if (Array.isArray(value)) {
|
|
2030
|
-
const nodes = value;
|
|
2031
|
-
for (let i = 0; i < nodes.length; i += 1) {
|
|
2032
|
-
const item = nodes[i];
|
|
2033
|
-
if (isNode(item)) {
|
|
2034
|
-
if (!this.visit(item, node, key, i)) i--;
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
} else if (isNode(value)) this.visit(value, node, key, null);
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
if (this.leave) {
|
|
2041
|
-
const _replacement = this.replacement;
|
|
2042
|
-
const _should_remove = this.should_remove;
|
|
2043
|
-
this.replacement = null;
|
|
2044
|
-
this.should_remove = false;
|
|
2045
|
-
this.leave.call(this.context, node, parent, prop, index);
|
|
2046
|
-
if (this.replacement) {
|
|
2047
|
-
node = this.replacement;
|
|
2048
|
-
this.replace(parent, prop, index, node);
|
|
2049
|
-
}
|
|
2050
|
-
if (this.should_remove) this.remove(parent, prop, index);
|
|
2051
|
-
const removed = this.should_remove;
|
|
2052
|
-
this.replacement = _replacement;
|
|
2053
|
-
this.should_remove = _should_remove;
|
|
2054
|
-
if (removed) return null;
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
return node;
|
|
2058
|
-
}
|
|
2059
|
-
};
|
|
2060
|
-
/**
|
|
2061
|
-
* Ducktype a node.
|
|
2062
|
-
*
|
|
2063
|
-
* @param {unknown} value
|
|
2064
|
-
* @returns {value is Node}
|
|
2065
|
-
*/
|
|
2066
|
-
function isNode(value) {
|
|
2067
|
-
return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
|
|
2068
|
-
}
|
|
2069
|
-
//#endregion
|
|
2070
|
-
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/index.js
|
|
2071
|
-
/**
|
|
2072
|
-
* @typedef {import('estree').Node} Node
|
|
2073
|
-
* @typedef {import('./sync.js').SyncHandler} SyncHandler
|
|
2074
|
-
* @typedef {import('./async.js').AsyncHandler} AsyncHandler
|
|
2075
|
-
*/
|
|
2076
|
-
/**
|
|
2077
|
-
* @param {Node} ast
|
|
2078
|
-
* @param {{
|
|
2079
|
-
* enter?: SyncHandler
|
|
2080
|
-
* leave?: SyncHandler
|
|
2081
|
-
* }} walker
|
|
2082
|
-
* @returns {Node | null}
|
|
2083
|
-
*/
|
|
2084
|
-
function walk(ast, { enter, leave }) {
|
|
2085
|
-
return new SyncWalker(enter, leave).visit(ast, null);
|
|
2086
|
-
}
|
|
2087
|
-
//#endregion
|
|
2088
|
-
//#region src/shared/ast.ts
|
|
2089
|
-
function isIdentifier(node) {
|
|
2090
|
-
return node?.type === "Identifier" && typeof node.name === "string";
|
|
2091
|
-
}
|
|
2092
|
-
function isLiteral(node) {
|
|
2093
|
-
return node?.type === "Literal";
|
|
2094
|
-
}
|
|
2095
|
-
function isMemberExpression(node) {
|
|
2096
|
-
return node?.type === "MemberExpression";
|
|
2097
|
-
}
|
|
2098
|
-
function isCallExpression(node) {
|
|
2099
|
-
return node?.type === "CallExpression";
|
|
2100
|
-
}
|
|
2101
|
-
function isObjectExpression(node) {
|
|
2102
|
-
return node?.type === "ObjectExpression";
|
|
2103
|
-
}
|
|
2104
|
-
//#endregion
|
|
2105
|
-
//#region src/inference/walk.ts
|
|
2106
|
-
const ENV_BINDING_RE = /\benv\s*\.\s*(DB|KV|STORAGE|QUEUE_\w+|AI|SANDBOX)\b/;
|
|
2107
|
-
/**
|
|
2108
|
-
* Infer which Cloudflare bindings a source file uses.
|
|
2109
|
-
*
|
|
2110
|
-
* Uses a tiered approach for performance:
|
|
2111
|
-
* Tier 1: es-module-lexer to extract import sources (fast, asm.js, no init)
|
|
2112
|
-
* Tier 2: Regex check for env.DB/KV/STORAGE patterns
|
|
2113
|
-
* Tier 3: Full AST walk only when regex matches (to confirm member expressions)
|
|
2114
|
-
*/
|
|
2115
|
-
function inferBindingsFromSource(code, filename) {
|
|
2116
|
-
const result = {
|
|
2117
|
-
needsD1: false,
|
|
2118
|
-
needsKV: false,
|
|
2119
|
-
needsR2: false,
|
|
2120
|
-
needsAuth: false,
|
|
2121
|
-
needsQueues: false,
|
|
2122
|
-
needsAI: false,
|
|
2123
|
-
needsSandbox: false,
|
|
2124
|
-
needsLive: false
|
|
2125
|
-
};
|
|
2126
|
-
try {
|
|
2127
|
-
const [imports] = parse(code);
|
|
2128
|
-
for (const imp of imports) {
|
|
2129
|
-
const source = imp.n;
|
|
2130
|
-
if (!source) continue;
|
|
2131
|
-
switch (source) {
|
|
2132
|
-
case "void/db":
|
|
2133
|
-
result.needsD1 = true;
|
|
2134
|
-
break;
|
|
2135
|
-
case "void/kv":
|
|
2136
|
-
result.needsKV = true;
|
|
2137
|
-
break;
|
|
2138
|
-
case "void/storage":
|
|
2139
|
-
result.needsR2 = true;
|
|
2140
|
-
break;
|
|
2141
|
-
case "void/auth":
|
|
2142
|
-
result.needsAuth = true;
|
|
2143
|
-
break;
|
|
2144
|
-
case "void/queue":
|
|
2145
|
-
result.needsQueues = true;
|
|
2146
|
-
break;
|
|
2147
|
-
case "void/ai":
|
|
2148
|
-
result.needsAI = true;
|
|
2149
|
-
break;
|
|
2150
|
-
case "void/sandbox":
|
|
2151
|
-
result.needsSandbox = true;
|
|
2152
|
-
break;
|
|
2153
|
-
case "void/live":
|
|
2154
|
-
if (!isTypeOnlyImportStatement(code.slice(imp.ss, imp.se + 1))) result.needsLive = true;
|
|
2155
|
-
break;
|
|
2156
|
-
case "void/client": {
|
|
2157
|
-
const stmt = code.slice(imp.ss, imp.se + 1);
|
|
2158
|
-
if (/\bauth\b/.test(stmt)) result.needsAuth = true;
|
|
2159
|
-
break;
|
|
2160
|
-
}
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
|
-
} catch {
|
|
2164
|
-
if (/\bfrom\s+["']void\/db["']/.test(code)) result.needsD1 = true;
|
|
2165
|
-
if (/\bfrom\s+["']void\/kv["']/.test(code)) result.needsKV = true;
|
|
2166
|
-
if (/\bfrom\s+["']void\/storage["']/.test(code)) result.needsR2 = true;
|
|
2167
|
-
if (/\bfrom\s+["']void\/auth["']/.test(code)) result.needsAuth = true;
|
|
2168
|
-
if (/\bfrom\s+["']void\/queue["']/.test(code)) result.needsQueues = true;
|
|
2169
|
-
if (/\bfrom\s+["']void\/ai["']/.test(code)) result.needsAI = true;
|
|
2170
|
-
if (/\bfrom\s+["']void\/sandbox["']/.test(code)) result.needsSandbox = true;
|
|
2171
|
-
if (hasRuntimeImportFrom(code, "void/live")) result.needsLive = true;
|
|
2172
|
-
if (/\bfrom\s+["']void\/client["']/.test(code) && /\bauth\b/.test(code)) result.needsAuth = true;
|
|
2173
|
-
}
|
|
2174
|
-
if (result.needsD1 && result.needsKV && result.needsR2 && result.needsAI && result.needsSandbox && result.needsLive) return result;
|
|
2175
|
-
if (!ENV_BINDING_RE.test(code)) return result;
|
|
2176
|
-
let parsed;
|
|
2177
|
-
try {
|
|
2178
|
-
parsed = parseSync(filename, code);
|
|
2179
|
-
} catch {
|
|
2180
|
-
return result;
|
|
2181
|
-
}
|
|
2182
|
-
const program = parsed.program;
|
|
2183
|
-
walk(program, { enter(node) {
|
|
2184
|
-
const current = node;
|
|
2185
|
-
if (!isMemberExpression(current)) return;
|
|
2186
|
-
if (current.computed) return;
|
|
2187
|
-
const property = current.property;
|
|
2188
|
-
if (!isIdentifier(property)) return;
|
|
2189
|
-
const obj = current.object;
|
|
2190
|
-
const isViaContextEnv = isMemberExpression(obj) && isIdentifier(obj.property) && obj.property.name === "env";
|
|
2191
|
-
const isDirectEnv = isIdentifier(obj) && obj.name === "env";
|
|
2192
|
-
if (!isViaContextEnv && !isDirectEnv) return;
|
|
2193
|
-
switch (property.name) {
|
|
2194
|
-
case "DB":
|
|
2195
|
-
result.needsD1 = true;
|
|
2196
|
-
break;
|
|
2197
|
-
case "KV":
|
|
2198
|
-
result.needsKV = true;
|
|
2199
|
-
break;
|
|
2200
|
-
case "STORAGE":
|
|
2201
|
-
result.needsR2 = true;
|
|
2202
|
-
break;
|
|
2203
|
-
case "AI":
|
|
2204
|
-
result.needsAI = true;
|
|
2205
|
-
break;
|
|
2206
|
-
case "SANDBOX":
|
|
2207
|
-
result.needsSandbox = true;
|
|
2208
|
-
break;
|
|
2209
|
-
default:
|
|
2210
|
-
if (property.name.startsWith("QUEUE_")) result.needsQueues = true;
|
|
2211
|
-
break;
|
|
2212
|
-
}
|
|
2213
|
-
} });
|
|
2214
|
-
return result;
|
|
2215
|
-
}
|
|
2216
|
-
function isTypeOnlyImportStatement(statement) {
|
|
2217
|
-
if (/^\s*import\s+type\b/.test(statement)) return true;
|
|
2218
|
-
const specifierStart = statement.indexOf("{");
|
|
2219
|
-
const specifierEnd = statement.lastIndexOf("}");
|
|
2220
|
-
if (specifierStart === -1 || specifierEnd === -1 || specifierEnd < specifierStart) return false;
|
|
2221
|
-
const beforeSpecifiers = statement.slice(0, specifierStart);
|
|
2222
|
-
if (!/^\s*import\s*$/.test(beforeSpecifiers)) return false;
|
|
2223
|
-
const specifiers = statement.slice(specifierStart + 1, specifierEnd).split(",").map((specifier) => specifier.trim()).filter(Boolean);
|
|
2224
|
-
return specifiers.length > 0 && specifiers.every((specifier) => specifier.startsWith("type "));
|
|
2225
|
-
}
|
|
2226
|
-
function hasRuntimeImportFrom(code, source) {
|
|
2227
|
-
const escapedSource = source.replaceAll("/", "\\/");
|
|
2228
|
-
const importRe = new RegExp(`\\bimport\\s+(?:[\\s\\S]*?\\bfrom\\s+)?["']${escapedSource}["']\\s*;?`, "g");
|
|
2229
|
-
for (const match of code.matchAll(importRe)) {
|
|
2230
|
-
const statement = match[0];
|
|
2231
|
-
if (!isTypeOnlyImportStatement(statement)) return true;
|
|
2232
|
-
}
|
|
2233
|
-
return false;
|
|
2234
|
-
}
|
|
2235
|
-
/**
|
|
2236
|
-
* Merge multiple InferredBindings into a single result (union).
|
|
2237
|
-
*/
|
|
2238
|
-
function mergeBindings(bindings) {
|
|
2239
|
-
return {
|
|
2240
|
-
needsD1: bindings.some((b) => b.needsD1),
|
|
2241
|
-
needsKV: bindings.some((b) => b.needsKV),
|
|
2242
|
-
needsR2: bindings.some((b) => b.needsR2),
|
|
2243
|
-
needsAuth: bindings.some((b) => b.needsAuth),
|
|
2244
|
-
needsQueues: bindings.some((b) => b.needsQueues),
|
|
2245
|
-
needsAI: bindings.some((b) => b.needsAI),
|
|
2246
|
-
needsSandbox: bindings.some((b) => b.needsSandbox),
|
|
2247
|
-
needsLive: bindings.some((b) => b.needsLive)
|
|
2248
|
-
};
|
|
2249
|
-
}
|
|
2250
|
-
//#endregion
|
|
2251
|
-
//#region src/ssr/entry.ts
|
|
2252
|
-
const SSR_SERVER_ENTRY_RELATIVE_PATHS = ["src/main.ssr.ts", "src/main.ssr.tsx"];
|
|
2253
|
-
const SSR_CLIENT_ENTRY_RELATIVE_PATHS = ["src/main.client.ts", "src/main.client.tsx"];
|
|
2254
|
-
function resolveSingleEntry(root, entries, label) {
|
|
2255
|
-
const matches = entries.map((relativePath) => ({
|
|
2256
|
-
relativePath,
|
|
2257
|
-
absolutePath: join(root, relativePath)
|
|
2258
|
-
})).filter((entry) => existsSync(entry.absolutePath));
|
|
2259
|
-
if (matches.length === 0) return null;
|
|
2260
|
-
if (matches.length > 1) {
|
|
2261
|
-
const names = matches.map((entry) => entry.relativePath).join(", ");
|
|
2262
|
-
throw new Error(`ssr: Multiple ${label} entry files found: ${names}. Keep only one.`);
|
|
2263
|
-
}
|
|
2264
|
-
return matches[0];
|
|
2265
|
-
}
|
|
2266
|
-
function getSsrServerEntryPath(root) {
|
|
2267
|
-
return resolveSingleEntry(root, SSR_SERVER_ENTRY_RELATIVE_PATHS, "SSR")?.absolutePath ?? null;
|
|
2268
|
-
}
|
|
2269
|
-
function hasSsrEntry(root) {
|
|
2270
|
-
return getSsrServerEntryPath(root) !== null;
|
|
2271
|
-
}
|
|
2272
|
-
function validateServerRenderExport(entry) {
|
|
2273
|
-
const { absolutePath, relativePath } = entry;
|
|
2274
|
-
const source = readFileSync(absolutePath, "utf-8");
|
|
2275
|
-
if (/\bexport\s+(?:async\s+)?function\s+render\b/.test(source) || /\bexport\s+const\s+render\b/.test(source) || /\bexport\s+default\s+(?:defineRender\b|(?:async\s+)?function\b)/.test(source)) return;
|
|
2276
|
-
let parsed;
|
|
2277
|
-
try {
|
|
2278
|
-
parsed = parseSync(relativePath, source);
|
|
2279
|
-
} catch (err) {
|
|
2280
|
-
throw new Error(`ssr: Invalid entry '${relativePath}'. Could not parse source: '${err instanceof Error ? err.message : String(err)}'.`);
|
|
2281
|
-
}
|
|
2282
|
-
if (!(parsed.program.body ?? []).some((node) => {
|
|
2283
|
-
if (node.type === "ExportDefaultDeclaration") {
|
|
2284
|
-
const declaration = node.declaration;
|
|
2285
|
-
if (declaration?.type === "FunctionDeclaration" || declaration?.type === "FunctionExpression" || declaration?.type === "ArrowFunctionExpression") return true;
|
|
2286
|
-
if (declaration?.type === "CallExpression") {
|
|
2287
|
-
const call = declaration;
|
|
2288
|
-
return isIdentifier(call.callee) && call.callee.name === "defineRender";
|
|
2289
|
-
}
|
|
2290
|
-
return false;
|
|
2291
|
-
}
|
|
2292
|
-
if (node.type !== "ExportNamedDeclaration") return false;
|
|
2293
|
-
const declaration = node.declaration;
|
|
2294
|
-
if (declaration?.type === "FunctionDeclaration") {
|
|
2295
|
-
const fn = declaration;
|
|
2296
|
-
return isIdentifier(fn.id) && fn.id.name === "render";
|
|
2297
|
-
}
|
|
2298
|
-
if (declaration?.type === "VariableDeclaration") return (declaration.declarations ?? []).some((decl) => isIdentifier(decl.id) && decl.id.name === "render");
|
|
2299
|
-
return (node.specifiers ?? []).some((specifier) => {
|
|
2300
|
-
const exported = specifier.exported;
|
|
2301
|
-
return isIdentifier(exported) && exported.name === "render";
|
|
2302
|
-
});
|
|
2303
|
-
})) throw new Error(`ssr: Invalid entry '${relativePath}'. Export \`render(c, assetTags)\` or \`export default defineRender(...)\`.`);
|
|
2304
|
-
}
|
|
2305
|
-
/**
|
|
2306
|
-
* Validate SSR mode entry conventions.
|
|
2307
|
-
* Returns null when SSR mode is not used.
|
|
2308
|
-
*/
|
|
2309
|
-
function validateSsrEntries(root) {
|
|
2310
|
-
const server = resolveSingleEntry(root, SSR_SERVER_ENTRY_RELATIVE_PATHS, "SSR");
|
|
2311
|
-
const client = resolveSingleEntry(root, SSR_CLIENT_ENTRY_RELATIVE_PATHS, "SSR client");
|
|
2312
|
-
if (!server && !client) return null;
|
|
2313
|
-
if (server && !client) throw new Error(`ssr: Missing client entry. Add one of: ${SSR_CLIENT_ENTRY_RELATIVE_PATHS.join(", ")}.`);
|
|
2314
|
-
if (!server && client) throw new Error(`ssr: Missing server entry. Add one of: ${SSR_SERVER_ENTRY_RELATIVE_PATHS.join(", ")}.`);
|
|
2315
|
-
validateServerRenderExport(server);
|
|
2316
|
-
return {
|
|
2317
|
-
server,
|
|
2318
|
-
client
|
|
2319
|
-
};
|
|
2320
|
-
}
|
|
2321
|
-
function validateSsrEntry(root) {
|
|
2322
|
-
return validateSsrEntries(root)?.server.absolutePath ?? null;
|
|
2323
|
-
}
|
|
2324
|
-
//#endregion
|
|
2325
|
-
//#region src/plugin-inference.ts
|
|
2326
|
-
const SOURCE_GLOB = "**/*.{ts,tsx,mts,js,jsx,mjs,astro}";
|
|
2327
|
-
/** Directories to scan for binding inference in framework mode. */
|
|
2328
|
-
const FRAMEWORK_SCAN_DIRS = [
|
|
2329
|
-
"src",
|
|
2330
|
-
"app",
|
|
2331
|
-
"pages",
|
|
2332
|
-
"routes",
|
|
2333
|
-
"server",
|
|
2334
|
-
"crons",
|
|
2335
|
-
"queues"
|
|
2336
|
-
];
|
|
2337
|
-
/** Directories to scan for binding inference in Void app mode. */
|
|
2338
|
-
const DEFAULT_SCAN_DIRS = [
|
|
2339
|
-
"routes",
|
|
2340
|
-
"middleware",
|
|
2341
|
-
"queues",
|
|
2342
|
-
"pages",
|
|
2343
|
-
"crons",
|
|
2344
|
-
"src"
|
|
2345
|
-
];
|
|
2346
|
-
/**
|
|
2347
|
-
* Map from npm package name to framework identifier.
|
|
2348
|
-
* Only packages that unambiguously indicate framework mode are listed.
|
|
2349
|
-
* For example, `react-router` alone is a client-side router — only
|
|
2350
|
-
* `@react-router/dev` signals the framework (Vite plugin) mode.
|
|
2351
|
-
*/
|
|
2352
|
-
const FRAMEWORK_PACKAGES = {
|
|
2353
|
-
"@tanstack/react-start": {
|
|
2354
|
-
name: "tanstack-start",
|
|
2355
|
-
class: "a"
|
|
2356
|
-
},
|
|
2357
|
-
"@react-router/dev": {
|
|
2358
|
-
name: "react-router",
|
|
2359
|
-
class: "a"
|
|
2360
|
-
},
|
|
2361
|
-
vinext: {
|
|
2362
|
-
name: "vinext-pages",
|
|
2363
|
-
class: "a"
|
|
2364
|
-
},
|
|
2365
|
-
"@sveltejs/kit": {
|
|
2366
|
-
name: "sveltekit",
|
|
2367
|
-
class: "b"
|
|
2368
|
-
},
|
|
2369
|
-
nuxt: {
|
|
2370
|
-
name: "nuxt",
|
|
2371
|
-
class: "c"
|
|
2372
|
-
},
|
|
2373
|
-
"@analogjs/platform": {
|
|
2374
|
-
name: "analog",
|
|
2375
|
-
class: "c"
|
|
2376
|
-
},
|
|
2377
|
-
astro: {
|
|
2378
|
-
name: "astro",
|
|
2379
|
-
class: "c"
|
|
2380
|
-
}
|
|
2381
|
-
};
|
|
2382
|
-
/**
|
|
2383
|
-
* Detect a meta-framework by checking package.json dependencies.
|
|
2384
|
-
* Returns the detected framework with class info, or `undefined`.
|
|
2385
|
-
*/
|
|
2386
|
-
function detectFramework(root) {
|
|
2387
|
-
let pkg;
|
|
2388
|
-
try {
|
|
2389
|
-
pkg = JSON.parse(readFileSync(join(root, "package.json"), "utf-8"));
|
|
2390
|
-
} catch {
|
|
2391
|
-
return;
|
|
2392
|
-
}
|
|
2393
|
-
const deps = {
|
|
2394
|
-
...pkg.dependencies,
|
|
2395
|
-
...pkg.devDependencies
|
|
2396
|
-
};
|
|
2397
|
-
for (const [pkgName, framework] of Object.entries(FRAMEWORK_PACKAGES)) if (pkgName in deps) {
|
|
2398
|
-
if (framework.name === "vinext-pages" && existsSync(join(root, "app"))) return {
|
|
2399
|
-
name: "vinext-app",
|
|
2400
|
-
class: "a"
|
|
2401
|
-
};
|
|
2402
|
-
return framework;
|
|
2403
|
-
}
|
|
2404
|
-
}
|
|
2405
|
-
function extractAstroFrontmatter(code) {
|
|
2406
|
-
return code.match(/^\uFEFF?---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/)?.[1] ?? "";
|
|
2407
|
-
}
|
|
2408
|
-
function inferBindingsFromFile(file, code) {
|
|
2409
|
-
const filename = file.split("/").pop() ?? "unknown.ts";
|
|
2410
|
-
if (!filename.endsWith(".astro")) return inferBindingsFromSource(code, filename);
|
|
2411
|
-
return inferBindingsFromSource(extractAstroFrontmatter(code), filename.replace(/\.astro$/, ".ts"));
|
|
2412
|
-
}
|
|
2413
|
-
/**
|
|
2414
|
-
* Synchronously infer which Cloudflare bindings the project needs
|
|
2415
|
-
* by scanning route/middleware files and optional src/main.ssr.ts with oxc-parser.
|
|
2416
|
-
*
|
|
2417
|
-
* This runs once when voidPlugin() is called (before plugins initialize),
|
|
2418
|
-
* so results are available to configure the Cloudflare plugin.
|
|
2419
|
-
*
|
|
2420
|
-
* @param scanDirs - Override the default scan directories (e.g., for framework mode)
|
|
2421
|
-
*/
|
|
2422
|
-
function inferProjectBindings(root, options, scanDirs) {
|
|
2423
|
-
if (options?.bindings) return {
|
|
2424
|
-
needsD1: Boolean(options.bindings.db),
|
|
2425
|
-
needsKV: Boolean(options.bindings.kv),
|
|
2426
|
-
needsR2: Boolean(options.bindings.storage),
|
|
2427
|
-
needsAuth: false,
|
|
2428
|
-
needsQueues: false,
|
|
2429
|
-
needsAI: Boolean(options.bindings.ai),
|
|
2430
|
-
needsSandbox: false,
|
|
2431
|
-
needsLive: false
|
|
2432
|
-
};
|
|
2433
|
-
const dirs = scanDirs ?? DEFAULT_SCAN_DIRS;
|
|
2434
|
-
const allBindings = [];
|
|
2435
|
-
for (const dir of dirs) {
|
|
2436
|
-
const dirPath = join(root, dir);
|
|
2437
|
-
let files;
|
|
2438
|
-
try {
|
|
2439
|
-
files = globSync(SOURCE_GLOB, {
|
|
2440
|
-
cwd: dirPath,
|
|
2441
|
-
absolute: true
|
|
2442
|
-
});
|
|
2443
|
-
} catch {
|
|
2444
|
-
continue;
|
|
2445
|
-
}
|
|
2446
|
-
for (const file of files) {
|
|
2447
|
-
const code = readFileSync(file, "utf-8");
|
|
2448
|
-
allBindings.push(inferBindingsFromFile(file, code));
|
|
2449
|
-
}
|
|
2450
|
-
}
|
|
2451
|
-
const ssrEntry = getSsrServerEntryPath(root);
|
|
2452
|
-
if (ssrEntry) {
|
|
2453
|
-
const code = readFileSync(ssrEntry, "utf-8");
|
|
2454
|
-
const filename = ssrEntry.split("/").pop() ?? "main.ssr.ts";
|
|
2455
|
-
allBindings.push(inferBindingsFromSource(code, filename));
|
|
2456
|
-
}
|
|
2457
|
-
if (!new Set(dirs).has("src")) {
|
|
2458
|
-
const srcPath = join(root, "src");
|
|
2459
|
-
let srcFiles;
|
|
2460
|
-
try {
|
|
2461
|
-
srcFiles = globSync(SOURCE_GLOB, {
|
|
2462
|
-
cwd: srcPath,
|
|
2463
|
-
absolute: true
|
|
2464
|
-
});
|
|
2465
|
-
} catch {
|
|
2466
|
-
srcFiles = [];
|
|
2467
|
-
}
|
|
2468
|
-
for (const file of srcFiles) {
|
|
2469
|
-
const code = readFileSync(file, "utf-8");
|
|
2470
|
-
allBindings.push(inferBindingsFromFile(file, code));
|
|
2471
|
-
}
|
|
2472
|
-
}
|
|
2473
|
-
return mergeBindings(allBindings);
|
|
2474
|
-
}
|
|
2475
|
-
//#endregion
|
|
2476
|
-
export { SSR_CLIENT_ENTRY_RELATIVE_PATHS as a, validateSsrEntries as c, isCallExpression as d, isIdentifier as f, walk as g, isObjectExpression as h, inferProjectBindings as i, validateSsrEntry as l, isMemberExpression as m, FRAMEWORK_SCAN_DIRS as n, SSR_SERVER_ENTRY_RELATIVE_PATHS as o, isLiteral as p, detectFramework as r, hasSsrEntry as s, DEFAULT_SCAN_DIRS as t, inferBindingsFromSource as u };
|