@builder.io/sdk-react 2.0.2-1 → 2.0.2-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +24 -24
- package/lib/browser/blocks-exports.mjs +319 -299
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-45c77a86.js → server-entry-441053ba.js} +3 -3
- package/lib/browser/{server-entry-69a4d3c9.cjs → server-entry-56e8004a.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-ddf18178.js → accordion-24b26431.js} +1 -1
- package/lib/edge/{accordion-7896cae6.cjs → accordion-f87e2b96.cjs} +1 -1
- package/lib/edge/{blocks-10f68d94.js → blocks-53095100.js} +404 -384
- package/lib/edge/{blocks-03bf455b.cjs → blocks-802e3770.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-cba5f3f8.js → button-73485ccc.js} +2 -2
- package/lib/edge/{button-91e0aec2.cjs → button-b0f515b1.cjs} +1 -1
- package/lib/edge/{columns-080edf58.cjs → columns-1f80b3f3.cjs} +1 -1
- package/lib/edge/{columns-6bfc17df.js → columns-405f1d21.js} +3 -3
- package/lib/edge/{content-variants-d855ce6c.js → content-variants-579677ec.js} +10 -10
- package/lib/edge/{content-variants-65794f41.cjs → content-variants-f380acc1.cjs} +1 -1
- package/lib/edge/{form-23561b33.cjs → form-2862b060.cjs} +1 -1
- package/lib/edge/{form-f4cd948c.js → form-c2684aa9.js} +3 -3
- package/lib/edge/{get-class-prop-name-237cd359.cjs → get-class-prop-name-2d695e7d.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1928cf9f.js → get-class-prop-name-ade06415.js} +1 -1
- package/lib/edge/{img-86db320f.cjs → img-29a47783.cjs} +1 -1
- package/lib/edge/{img-f9ec8689.js → img-a605abb9.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-394e72b8.js → input-24ab9912.js} +1 -1
- package/lib/edge/{input-953ef2fe.cjs → input-afb0eaae.cjs} +1 -1
- package/lib/edge/{select-9bb6b8c1.cjs → select-542f9b0e.cjs} +1 -1
- package/lib/edge/{select-3e25848f.js → select-b7b61dde.js} +1 -1
- package/lib/edge/{server-entry-771d1637.js → server-entry-042bd6f0.js} +1 -1
- package/lib/edge/{server-entry-6bd1c4bc.cjs → server-entry-b32a9c32.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-22940ad6.cjs → slot-19716d77.cjs} +1 -1
- package/lib/edge/{slot-881129c3.js → slot-d08698a2.js} +3 -3
- package/lib/edge/{symbol-faa97614.js → symbol-9aaa9700.js} +2 -2
- package/lib/edge/{symbol-58595a6d.cjs → symbol-be4081db.cjs} +1 -1
- package/lib/edge/{tabs-dc23d0fa.cjs → tabs-4cb2e700.cjs} +1 -1
- package/lib/edge/{tabs-f0ca75e4.js → tabs-e32544a6.js} +3 -3
- package/lib/node/blocks-exports.cjs +24 -24
- package/lib/node/blocks-exports.mjs +303 -283
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-55fc8cd4.cjs → node-runtime-9af386e9.cjs} +1 -1
- package/lib/node/{node-runtime-46d21495.js → node-runtime-df1706b0.js} +1 -1
- package/lib/node/{server-entry-11eee7d8.cjs → server-entry-1224f4f2.cjs} +1 -1
- package/lib/node/{server-entry-d45c1bf6.js → server-entry-f7ab9ed1.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-processed-block.d.ts +1 -0
|
@@ -2,11 +2,11 @@ var kn = Object.defineProperty;
|
|
|
2
2
|
var En = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var Nt = (e, t, r) => (En(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import { jsx as P, Fragment as z, jsxs as Mt } from "react/jsx-runtime";
|
|
5
|
-
import { createContext as Cn, useState as
|
|
6
|
-
import { BuilderContext as
|
|
7
|
-
import { isEditing as Bt, isBrowser as Dt, getUserAttributes as jn, logger as
|
|
8
|
-
import { getClassPropName as
|
|
9
|
-
import { DynamicRenderer as
|
|
5
|
+
import { createContext as Cn, useState as Wt, useEffect as Mr, useContext as Br } from "react";
|
|
6
|
+
import { BuilderContext as Vr } from "./blocks-exports.mjs";
|
|
7
|
+
import { isEditing as Bt, isBrowser as Dt, getUserAttributes as jn, logger as $t, checkIsDefined as ot, TARGET as Xr, fastClone as On, isPreviewing as An } from "./server-entry-042bd6f0.js";
|
|
8
|
+
import { getClassPropName as In } from "./get-class-prop-name-ade06415.js";
|
|
9
|
+
import { DynamicRenderer as bn } from "./dynamic-renderer-8b343325.js";
|
|
10
10
|
const Hr = (e, t, r) => {
|
|
11
11
|
if (Object(e) !== e)
|
|
12
12
|
return e;
|
|
@@ -24,22 +24,28 @@ const Hr = (e, t, r) => {
|
|
|
24
24
|
builder: e,
|
|
25
25
|
context: t,
|
|
26
26
|
event: r
|
|
27
|
-
}),
|
|
27
|
+
}), Tn = () => ({
|
|
28
28
|
isEditing: Bt(),
|
|
29
29
|
isBrowser: Dt(),
|
|
30
30
|
isServer: !Dt(),
|
|
31
31
|
getUserAttributes: () => jn()
|
|
32
|
-
}),
|
|
32
|
+
}), Pn = (e, {
|
|
33
33
|
isExpression: t = !0
|
|
34
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
35
|
-
function
|
|
34
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, Nn = Cn({ registeredComponents: {} });
|
|
35
|
+
function Rn(e) {
|
|
36
36
|
var t;
|
|
37
37
|
return {
|
|
38
38
|
...(t = e.component) == null ? void 0 : t.options,
|
|
39
39
|
...e.options
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
function Mn(e, ...t) {
|
|
43
|
+
const r = Object.assign({}, e);
|
|
44
|
+
for (const n of t)
|
|
45
|
+
delete r[n];
|
|
46
|
+
return r;
|
|
47
|
+
}
|
|
48
|
+
const Bn = ({
|
|
43
49
|
code: e,
|
|
44
50
|
builder: t,
|
|
45
51
|
context: r,
|
|
@@ -58,7 +64,7 @@ const Rn = ({
|
|
|
58
64
|
rootSetState: s
|
|
59
65
|
})
|
|
60
66
|
});
|
|
61
|
-
return new Function(...p.map(([
|
|
67
|
+
return new Function(...p.map(([d]) => d), e)(...p.map(([, d]) => d));
|
|
62
68
|
};
|
|
63
69
|
function Jr({
|
|
64
70
|
rootState: e,
|
|
@@ -85,15 +91,15 @@ function Jr({
|
|
|
85
91
|
}
|
|
86
92
|
});
|
|
87
93
|
}
|
|
88
|
-
var T,
|
|
94
|
+
var T, Dn = function(e) {
|
|
89
95
|
function t(i) {
|
|
90
96
|
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && xn.test(String.fromCharCode(i));
|
|
91
97
|
}
|
|
92
98
|
function r(i) {
|
|
93
|
-
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
99
|
+
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Rr.test(String.fromCharCode(i));
|
|
94
100
|
}
|
|
95
101
|
function n(i, l) {
|
|
96
|
-
for (var u =
|
|
102
|
+
for (var u = g, f = 1, S = 0; ; ) {
|
|
97
103
|
rt.lastIndex = S;
|
|
98
104
|
var F = rt.exec(u);
|
|
99
105
|
if (F && F.index < i)
|
|
@@ -115,35 +121,35 @@ var T, Mn = function(e) {
|
|
|
115
121
|
};
|
|
116
122
|
}
|
|
117
123
|
function s() {
|
|
118
|
-
this.line =
|
|
124
|
+
this.line = ge, this.ab = c - re;
|
|
119
125
|
}
|
|
120
126
|
function a(i, l) {
|
|
121
|
-
me = c, j.C && (mt = new s()), x = i,
|
|
127
|
+
me = c, j.C && (mt = new s()), x = i, d(), Y = l, Pe = i.m;
|
|
122
128
|
}
|
|
123
129
|
function p() {
|
|
124
|
-
for (var i = c, l = j.va && j.C && new s(), u =
|
|
125
|
-
++c, u =
|
|
126
|
-
j.va && j.va(!1,
|
|
130
|
+
for (var i = c, l = j.va && j.C && new s(), u = g.charCodeAt(c += 2); c < ve && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
131
|
+
++c, u = g.charCodeAt(c);
|
|
132
|
+
j.va && j.va(!1, g.slice(i + 2, c), i, c, l, j.C && new s());
|
|
127
133
|
}
|
|
128
|
-
function
|
|
134
|
+
function d() {
|
|
129
135
|
for (; c < ve; ) {
|
|
130
|
-
var i =
|
|
136
|
+
var i = g.charCodeAt(c);
|
|
131
137
|
if (i === 32)
|
|
132
138
|
++c;
|
|
133
139
|
else if (i === 13)
|
|
134
|
-
++c, i =
|
|
140
|
+
++c, i = g.charCodeAt(c), i === 10 && ++c, j.C && (++ge, re = c);
|
|
135
141
|
else if (i === 10 || i === 8232 || i === 8233)
|
|
136
|
-
++c, j.C && (++
|
|
142
|
+
++c, j.C && (++ge, re = c);
|
|
137
143
|
else if (8 < i && 14 > i)
|
|
138
144
|
++c;
|
|
139
145
|
else if (i === 47)
|
|
140
|
-
if (i =
|
|
146
|
+
if (i = g.charCodeAt(c + 1), i === 42) {
|
|
141
147
|
i = void 0;
|
|
142
|
-
var l = j.va && j.C && new s(), u = c, f =
|
|
148
|
+
var l = j.va && j.C && new s(), u = c, f = g.indexOf("*/", c += 2);
|
|
143
149
|
if (f === -1 && n(c - 2, "Unterminated comment"), c = f + 2, j.C)
|
|
144
|
-
for (rt.lastIndex = u; (i = rt.exec(
|
|
145
|
-
++
|
|
146
|
-
j.va && j.va(!0,
|
|
150
|
+
for (rt.lastIndex = u; (i = rt.exec(g)) && i.index < c; )
|
|
151
|
+
++ge, re = i.index + i[0].length;
|
|
152
|
+
j.va && j.va(!0, g.slice(u + 2, f), u, c, l, j.C && new s());
|
|
147
153
|
} else if (i === 47)
|
|
148
154
|
p();
|
|
149
155
|
else
|
|
@@ -159,7 +165,7 @@ var T, Mn = function(e) {
|
|
|
159
165
|
function y(i) {
|
|
160
166
|
switch (i) {
|
|
161
167
|
case 46:
|
|
162
|
-
i =
|
|
168
|
+
i = g.charCodeAt(c + 1), 48 <= i && 57 >= i ? O(!0) : (++c, a(jr));
|
|
163
169
|
return;
|
|
164
170
|
case 40:
|
|
165
171
|
return ++c, a(ne);
|
|
@@ -180,10 +186,10 @@ var T, Mn = function(e) {
|
|
|
180
186
|
case 58:
|
|
181
187
|
return ++c, a(Be);
|
|
182
188
|
case 63:
|
|
183
|
-
return ++c, a(
|
|
189
|
+
return ++c, a(Or);
|
|
184
190
|
case 48:
|
|
185
|
-
if (i =
|
|
186
|
-
c += 2, i = b(16), i === null && n(U + 2, "Expected hexadecimal number"), r(
|
|
191
|
+
if (i = g.charCodeAt(c + 1), i === 120 || i === 88) {
|
|
192
|
+
c += 2, i = b(16), i === null && n(U + 2, "Expected hexadecimal number"), r(g.charCodeAt(c)) && n(c, "Identifier directly after number"), a(Re, i);
|
|
187
193
|
return;
|
|
188
194
|
}
|
|
189
195
|
case 49:
|
|
@@ -201,14 +207,14 @@ var T, Mn = function(e) {
|
|
|
201
207
|
c++;
|
|
202
208
|
for (var l = ""; ; ) {
|
|
203
209
|
c >= ve && n(U, "Unterminated string constant");
|
|
204
|
-
var u =
|
|
210
|
+
var u = g.charCodeAt(c);
|
|
205
211
|
if (u === i) {
|
|
206
212
|
++c, a(Qe, l);
|
|
207
213
|
break;
|
|
208
214
|
}
|
|
209
215
|
if (u === 92) {
|
|
210
|
-
u =
|
|
211
|
-
var f = /^[0-7]+/.exec(
|
|
216
|
+
u = g.charCodeAt(++c);
|
|
217
|
+
var f = /^[0-7]+/.exec(g.slice(c, c + 3));
|
|
212
218
|
for (f && (f = f[0]); f && 255 < parseInt(f, 8); )
|
|
213
219
|
f = f.slice(0, -1);
|
|
214
220
|
if (f === "0" && (f = null), ++c, f)
|
|
@@ -247,9 +253,9 @@ var T, Mn = function(e) {
|
|
|
247
253
|
l += "\0";
|
|
248
254
|
break;
|
|
249
255
|
case 13:
|
|
250
|
-
|
|
256
|
+
g.charCodeAt(c) === 10 && ++c;
|
|
251
257
|
case 10:
|
|
252
|
-
j.C && (re = c, ++
|
|
258
|
+
j.C && (re = c, ++ge);
|
|
253
259
|
break;
|
|
254
260
|
default:
|
|
255
261
|
l += String.fromCharCode(u);
|
|
@@ -259,33 +265,33 @@ var T, Mn = function(e) {
|
|
|
259
265
|
}
|
|
260
266
|
return;
|
|
261
267
|
case 47:
|
|
262
|
-
i =
|
|
268
|
+
i = g.charCodeAt(c + 1), Pe ? (++c, J()) : i === 61 ? I(ye, 2) : I(Ar, 1);
|
|
263
269
|
return;
|
|
264
270
|
case 37:
|
|
265
271
|
case 42:
|
|
266
|
-
|
|
272
|
+
g.charCodeAt(c + 1) === 61 ? I(ye, 2) : I(yn, 1);
|
|
267
273
|
return;
|
|
268
274
|
case 124:
|
|
269
275
|
case 38:
|
|
270
|
-
l =
|
|
276
|
+
l = g.charCodeAt(c + 1), l === i ? I(i === 124 ? Tr : Pr, 2) : l === 61 ? I(ye, 2) : I(i === 124 ? un : fn, 1);
|
|
271
277
|
return;
|
|
272
278
|
case 94:
|
|
273
|
-
|
|
279
|
+
g.charCodeAt(c + 1) === 61 ? I(ye, 2) : I(cn, 1);
|
|
274
280
|
return;
|
|
275
281
|
case 43:
|
|
276
282
|
case 45:
|
|
277
|
-
l =
|
|
283
|
+
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 && tt.test(g.slice(fe, c)) ? (c += 3, p(), d(), C()) : I(ln, 2) : l === 61 ? I(ye, 2) : I(gn, 1);
|
|
278
284
|
return;
|
|
279
285
|
case 60:
|
|
280
286
|
case 62:
|
|
281
|
-
l =
|
|
287
|
+
l = g.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + u) === 61 ? I(ye, u + 1) : I(dn, u)) : l === 33 && i === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, p(), d(), C()) : (l === 61 && (u = g.charCodeAt(c + 2) === 61 ? 3 : 2), I(hn, u));
|
|
282
288
|
return;
|
|
283
289
|
case 61:
|
|
284
290
|
case 33:
|
|
285
|
-
|
|
291
|
+
g.charCodeAt(c + 1) === 61 ? I(pn, g.charCodeAt(c + 2) === 61 ? 3 : 2) : I(i === 61 ? Ir : br, 1);
|
|
286
292
|
return;
|
|
287
293
|
case 126:
|
|
288
|
-
return I(
|
|
294
|
+
return I(br, 1);
|
|
289
295
|
}
|
|
290
296
|
return !1;
|
|
291
297
|
}
|
|
@@ -294,22 +300,22 @@ var T, Mn = function(e) {
|
|
|
294
300
|
return J();
|
|
295
301
|
if (c >= ve)
|
|
296
302
|
return a(St);
|
|
297
|
-
if (i =
|
|
303
|
+
if (i = g.charCodeAt(c), r(i) || i === 92)
|
|
298
304
|
return H();
|
|
299
305
|
if (y(i) === !1) {
|
|
300
|
-
if (i = String.fromCharCode(i), i === "\\" ||
|
|
306
|
+
if (i = String.fromCharCode(i), i === "\\" || Rr.test(i))
|
|
301
307
|
return H();
|
|
302
308
|
n(c, "Unexpected character '" + i + "'");
|
|
303
309
|
}
|
|
304
310
|
}
|
|
305
311
|
function I(i, l) {
|
|
306
|
-
var u =
|
|
312
|
+
var u = g.slice(c, c + l);
|
|
307
313
|
c += l, a(i, u);
|
|
308
314
|
}
|
|
309
315
|
function J() {
|
|
310
316
|
for (var i, l, u = c; ; ) {
|
|
311
317
|
c >= ve && n(u, "Unterminated regexp");
|
|
312
|
-
var f =
|
|
318
|
+
var f = g.charAt(c);
|
|
313
319
|
if (tt.test(f) && n(u, "Unterminated regexp"), i)
|
|
314
320
|
i = !1;
|
|
315
321
|
else {
|
|
@@ -323,17 +329,17 @@ var T, Mn = function(e) {
|
|
|
323
329
|
}
|
|
324
330
|
++c;
|
|
325
331
|
}
|
|
326
|
-
i =
|
|
332
|
+
i = g.slice(u, c), ++c, (l = R()) && !/^[gmi]*$/.test(l) && n(u, "Invalid regexp flag");
|
|
327
333
|
try {
|
|
328
334
|
var S = new RegExp(i, l);
|
|
329
335
|
} catch (F) {
|
|
330
336
|
throw F instanceof SyntaxError && n(u, F.message), F;
|
|
331
337
|
}
|
|
332
|
-
a(
|
|
338
|
+
a(sr, S);
|
|
333
339
|
}
|
|
334
340
|
function b(i, l) {
|
|
335
341
|
for (var u = c, f = 0, S = l === void 0 ? 1 / 0 : l, F = 0; F < S; ++F) {
|
|
336
|
-
var G =
|
|
342
|
+
var G = g.charCodeAt(c);
|
|
337
343
|
if (G = 97 <= G ? G - 97 + 10 : 65 <= G ? G - 65 + 10 : 48 <= G && 57 >= G ? G - 48 : 1 / 0, G >= i)
|
|
338
344
|
break;
|
|
339
345
|
++c, f = f * i + G;
|
|
@@ -341,8 +347,8 @@ var T, Mn = function(e) {
|
|
|
341
347
|
return c === u || l !== void 0 && c - u !== l ? null : f;
|
|
342
348
|
}
|
|
343
349
|
function O(i) {
|
|
344
|
-
var l = c, u = !1, f =
|
|
345
|
-
i || b(10) !== null || n(l, "Invalid number"),
|
|
350
|
+
var l = c, u = !1, f = g.charCodeAt(c) === 48;
|
|
351
|
+
i || b(10) !== null || n(l, "Invalid number"), g.charCodeAt(c) === 46 && (++c, b(10), u = !0), i = g.charCodeAt(c), (i === 69 || i === 101) && (i = g.charCodeAt(++c), i !== 43 && i !== 45 || ++c, b(10) === null && n(l, "Invalid number"), u = !0), r(g.charCodeAt(c)) && n(c, "Identifier directly after number"), i = g.slice(l, c);
|
|
346
352
|
var S;
|
|
347
353
|
u ? S = parseFloat(i) : f && i.length !== 1 ? /[89]/.test(i) || K ? n(l, "Invalid number") : S = parseInt(i, 8) : S = parseInt(i, 10), a(Re, S);
|
|
348
354
|
}
|
|
@@ -352,18 +358,18 @@ var T, Mn = function(e) {
|
|
|
352
358
|
function R() {
|
|
353
359
|
Se = !1;
|
|
354
360
|
for (var i, l = !0, u = c; ; ) {
|
|
355
|
-
var f =
|
|
361
|
+
var f = g.charCodeAt(c);
|
|
356
362
|
if (t(f))
|
|
357
|
-
Se && (i +=
|
|
363
|
+
Se && (i += g.charAt(c)), ++c;
|
|
358
364
|
else if (f === 92) {
|
|
359
|
-
Se || (i =
|
|
365
|
+
Se || (i = g.slice(u, c)), Se = !0, g.charCodeAt(++c) !== 117 && n(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, f = D(4);
|
|
360
366
|
var S = String.fromCharCode(f);
|
|
361
367
|
S || n(c - 1, "Invalid Unicode escape"), (l ? r(f) : t(f)) || n(c - 4, "Invalid Unicode escape"), i += S;
|
|
362
368
|
} else
|
|
363
369
|
break;
|
|
364
370
|
l = !1;
|
|
365
371
|
}
|
|
366
|
-
return Se ? i :
|
|
372
|
+
return Se ? i : g.slice(u, c);
|
|
367
373
|
}
|
|
368
374
|
function H() {
|
|
369
375
|
var i = R(), l = we;
|
|
@@ -375,23 +381,23 @@ var T, Mn = function(e) {
|
|
|
375
381
|
function q(i) {
|
|
376
382
|
if (K = i, c = U, j.C)
|
|
377
383
|
for (; c < re; )
|
|
378
|
-
re =
|
|
379
|
-
`, re - 2) + 1, --
|
|
380
|
-
|
|
384
|
+
re = g.lastIndexOf(`
|
|
385
|
+
`, re - 2) + 1, --ge;
|
|
386
|
+
d(), C();
|
|
381
387
|
}
|
|
382
388
|
function Je() {
|
|
383
389
|
this.type = null, this.start = U, this.end = null;
|
|
384
390
|
}
|
|
385
|
-
function
|
|
391
|
+
function rr() {
|
|
386
392
|
this.start = vt, this.end = null, yt && (this.source = yt);
|
|
387
393
|
}
|
|
388
394
|
function _() {
|
|
389
395
|
var i = new Je();
|
|
390
|
-
return j.C && (i.X = new
|
|
396
|
+
return j.C && (i.X = new rr()), j.vb && (i.sourceFile = j.vb), j.Xa && (i.j = [U, 0]), i;
|
|
391
397
|
}
|
|
392
398
|
function ce(i) {
|
|
393
399
|
var l = new Je();
|
|
394
|
-
return l.start = i.start, j.C && (l.X = new
|
|
400
|
+
return l.start = i.start, j.C && (l.X = new rr(), l.X.start = i.X.start), j.Xa && (l.j = [i.j[0], 0]), l;
|
|
395
401
|
}
|
|
396
402
|
function E(i, l) {
|
|
397
403
|
return i.type = l, i.end = fe, j.C && (i.X.end = xt), j.Xa && (i.j[1] = fe), i;
|
|
@@ -403,9 +409,9 @@ var T, Mn = function(e) {
|
|
|
403
409
|
return x === i ? (k(), !0) : !1;
|
|
404
410
|
}
|
|
405
411
|
function Ye() {
|
|
406
|
-
return !j.fc && (x === St || x === xe || tt.test(
|
|
412
|
+
return !j.fc && (x === St || x === xe || tt.test(g.slice(fe, U)));
|
|
407
413
|
}
|
|
408
|
-
function
|
|
414
|
+
function de() {
|
|
409
415
|
N(oe) || Ye() || ee();
|
|
410
416
|
}
|
|
411
417
|
function M(i) {
|
|
@@ -418,45 +424,45 @@ var T, Mn = function(e) {
|
|
|
418
424
|
i.type !== "Identifier" && i.type !== "MemberExpression" && n(i.start, "Assigning to rvalue"), K && i.type === "Identifier" && et(i.name) && n(i.start, "Assigning to " + i.name + " in strict mode");
|
|
419
425
|
}
|
|
420
426
|
function Z() {
|
|
421
|
-
(x ===
|
|
427
|
+
(x === Ar || x === ye && Y === "/=") && C(!0);
|
|
422
428
|
var i = x, l = _();
|
|
423
429
|
switch (i) {
|
|
424
430
|
case kt:
|
|
425
|
-
case
|
|
431
|
+
case lr:
|
|
426
432
|
k();
|
|
427
433
|
var u = i === kt;
|
|
428
|
-
N(oe) || Ye() ? l.label = null : x !== we ? ee() : (l.label = te(),
|
|
434
|
+
N(oe) || Ye() ? l.label = null : x !== we ? ee() : (l.label = te(), de());
|
|
429
435
|
for (var f = 0; f < B.length; ++f) {
|
|
430
436
|
var S = B[f];
|
|
431
437
|
if ((l.label === null || S.name === l.label.name) && (S.kind !== null && (u || S.kind === "loop") || l.label && u))
|
|
432
438
|
break;
|
|
433
439
|
}
|
|
434
440
|
return f === B.length && n(l.start, "Unsyntactic " + i.l), E(l, u ? "BreakStatement" : "ContinueStatement");
|
|
435
|
-
case
|
|
436
|
-
return k(),
|
|
437
|
-
case
|
|
438
|
-
return k(), B.push(Tt), l.body = Z(), B.pop(), M(At), l.test = Ie(),
|
|
439
|
-
case
|
|
440
|
-
return k(), B.push(Tt), M(ne), x === oe ? ct(l, null) : x === Ot ? (i = _(), k(),
|
|
441
|
+
case ur:
|
|
442
|
+
return k(), de(), E(l, "DebuggerStatement");
|
|
443
|
+
case fr:
|
|
444
|
+
return k(), B.push(Tt), l.body = Z(), B.pop(), M(At), l.test = Ie(), de(), E(l, "DoWhileStatement");
|
|
445
|
+
case dr:
|
|
446
|
+
return k(), B.push(Tt), M(ne), x === oe ? ct(l, null) : x === Ot ? (i = _(), k(), or(i, !0), E(i, "VariableDeclaration"), i.fa.length === 1 && N(qe) ? nr(l, i) : ct(l, i)) : (i = $(!1, !0), N(qe) ? (Ze(i), nr(l, i)) : ct(l, i));
|
|
441
447
|
case Ct:
|
|
442
|
-
return k(),
|
|
448
|
+
return k(), dt(l, !0);
|
|
443
449
|
case gr:
|
|
444
|
-
return k(), l.test = Ie(), l.da = Z(), l.alternate = N(
|
|
445
|
-
case
|
|
446
|
-
return Ne || j.Ib || n(U, "'return' outside of function"), k(), N(oe) || Ye() ? l.K = null : (l.K = $(),
|
|
450
|
+
return k(), l.test = Ie(), l.da = Z(), l.alternate = N(pr) ? Z() : null, E(l, "IfStatement");
|
|
451
|
+
case yr:
|
|
452
|
+
return Ne || j.Ib || n(U, "'return' outside of function"), k(), N(oe) || Ye() ? l.K = null : (l.K = $(), de()), E(l, "ReturnStatement");
|
|
447
453
|
case jt:
|
|
448
454
|
for (k(), l.Qb = Ie(), l.tb = [], M(Me), B.push(Sn); x !== xe; )
|
|
449
|
-
x === Et || x ===
|
|
455
|
+
x === Et || x === cr ? (i = x === Et, f && E(f, "SwitchCase"), l.tb.push(f = _()), f.da = [], k(), i ? f.test = $() : (u && n(wt, "Multiple default clauses"), u = !0, f.test = null), M(Be)) : (f || ee(), f.da.push(Z()));
|
|
450
456
|
return f && E(f, "SwitchCase"), k(), B.pop(), E(l, "SwitchStatement");
|
|
451
|
-
case yr:
|
|
452
|
-
return k(), tt.test(d.slice(fe, U)) && n(fe, "Illegal newline after throw"), l.K = $(), ge(), E(l, "ThrowStatement");
|
|
453
457
|
case vr:
|
|
454
|
-
return k(),
|
|
458
|
+
return k(), tt.test(g.slice(fe, U)) && n(fe, "Illegal newline after throw"), l.K = $(), de(), E(l, "ThrowStatement");
|
|
459
|
+
case mr:
|
|
460
|
+
return k(), l.block = be(), l.Ea = null, x === ar && (i = _(), k(), M(ne), i.Ua = te(), K && et(i.Ua.name) && n(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(Q), i.body = be(), l.Ea = E(i, "CatchClause")), l.fb = N(hr) ? be() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
455
461
|
case Ot:
|
|
456
|
-
return k(),
|
|
462
|
+
return k(), or(l), de(), E(l, "VariableDeclaration");
|
|
457
463
|
case At:
|
|
458
464
|
return k(), l.test = Ie(), B.push(Tt), l.body = Z(), B.pop(), E(l, "WhileStatement");
|
|
459
|
-
case
|
|
465
|
+
case wr:
|
|
460
466
|
return K && n(U, "'with' in strict mode"), k(), l.object = Ie(), l.body = Z(), E(l, "WithStatement");
|
|
461
467
|
case Me:
|
|
462
468
|
return be();
|
|
@@ -471,7 +477,7 @@ var T, Mn = function(e) {
|
|
|
471
477
|
kind: x.W ? "loop" : x === jt ? "switch" : null
|
|
472
478
|
}), l.body = Z(), B.pop(), l.label = S, E(l, "LabeledStatement");
|
|
473
479
|
}
|
|
474
|
-
return l.la = S,
|
|
480
|
+
return l.la = S, de(), E(l, "ExpressionStatement");
|
|
475
481
|
}
|
|
476
482
|
}
|
|
477
483
|
function Ie() {
|
|
@@ -494,13 +500,13 @@ var T, Mn = function(e) {
|
|
|
494
500
|
function ct(i, l) {
|
|
495
501
|
return i.ua = l, M(oe), i.test = x === oe ? null : $(), M(oe), i.update = x === Q ? null : $(), M(Q), i.body = Z(), B.pop(), E(i, "ForStatement");
|
|
496
502
|
}
|
|
497
|
-
function
|
|
503
|
+
function nr(i, l) {
|
|
498
504
|
return i.left = l, i.right = $(), M(Q), i.body = Z(), B.pop(), E(i, "ForInStatement");
|
|
499
505
|
}
|
|
500
|
-
function
|
|
506
|
+
function or(i, l) {
|
|
501
507
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
502
508
|
var u = _();
|
|
503
|
-
if (u.id = te(), K && et(u.id.name) && n(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = N(
|
|
509
|
+
if (u.id = te(), K && et(u.id.name) && n(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = N(Ir) ? $(!0, l) : null, i.fa.push(E(u, "VariableDeclarator")), !N(pe))
|
|
504
510
|
break;
|
|
505
511
|
}
|
|
506
512
|
}
|
|
@@ -515,7 +521,7 @@ var T, Mn = function(e) {
|
|
|
515
521
|
}
|
|
516
522
|
function ft(i) {
|
|
517
523
|
var l = pt(ht(), -1, i);
|
|
518
|
-
if (N(
|
|
524
|
+
if (N(Or)) {
|
|
519
525
|
var u = ce(l);
|
|
520
526
|
u.test = l, u.da = $(!0), M(Be), u.alternate = $(!0, i), l = E(u, "ConditionalExpression");
|
|
521
527
|
}
|
|
@@ -525,7 +531,7 @@ var T, Mn = function(e) {
|
|
|
525
531
|
var f = x.L;
|
|
526
532
|
if (f !== null && (!u || x !== qe) && f > l) {
|
|
527
533
|
var S = ce(i);
|
|
528
|
-
return S.left = i, S.operator = Y, i = x, k(), S.right = pt(ht(), f, u), f = E(S, i ===
|
|
534
|
+
return S.left = i, S.operator = Y, i = x, k(), S.right = pt(ht(), f, u), f = E(S, i === Tr || i === Pr ? "LogicalExpression" : "BinaryExpression"), pt(f, l, u);
|
|
529
535
|
}
|
|
530
536
|
return i;
|
|
531
537
|
}
|
|
@@ -539,26 +545,26 @@ var T, Mn = function(e) {
|
|
|
539
545
|
return l;
|
|
540
546
|
}
|
|
541
547
|
function Te(i, l) {
|
|
542
|
-
if (N(
|
|
548
|
+
if (N(jr)) {
|
|
543
549
|
var u = ce(i);
|
|
544
550
|
return u.object = i, u.Wa = te(!0), u.bb = !1, Te(E(u, "MemberExpression"), l);
|
|
545
551
|
}
|
|
546
|
-
return N(It) ? (u = ce(i), u.object = i, u.Wa = $(), u.bb = !0, M(bt), Te(E(u, "MemberExpression"), l)) : !l && N(ne) ? (u = ce(i), u.callee = i, u.arguments =
|
|
552
|
+
return N(It) ? (u = ce(i), u.object = i, u.Wa = $(), u.bb = !0, M(bt), Te(E(u, "MemberExpression"), l)) : !l && N(ne) ? (u = ce(i), u.callee = i, u.arguments = gt(Q, !1), Te(E(u, "CallExpression"), l)) : i;
|
|
547
553
|
}
|
|
548
554
|
function ze() {
|
|
549
555
|
switch (x) {
|
|
550
|
-
case
|
|
556
|
+
case Sr:
|
|
551
557
|
var i = _();
|
|
552
558
|
return k(), E(i, "ThisExpression");
|
|
553
559
|
case we:
|
|
554
560
|
return te();
|
|
555
561
|
case Re:
|
|
556
562
|
case Qe:
|
|
557
|
-
case
|
|
558
|
-
return i = _(), i.value = Y, i.raw =
|
|
559
|
-
case Sr:
|
|
563
|
+
case sr:
|
|
564
|
+
return i = _(), i.value = Y, i.raw = g.slice(U, me), k(), E(i, "Literal");
|
|
560
565
|
case kr:
|
|
561
566
|
case Er:
|
|
567
|
+
case Cr:
|
|
562
568
|
return i = _(), i.value = x.$a, i.raw = x.l, k(), E(i, "Literal");
|
|
563
569
|
case ne:
|
|
564
570
|
i = vt;
|
|
@@ -567,7 +573,7 @@ var T, Mn = function(e) {
|
|
|
567
573
|
var u = $();
|
|
568
574
|
return u.start = l, u.end = me, j.C && (u.X.start = i, u.X.end = mt), j.Xa && (u.j = [l, me]), M(Q), u;
|
|
569
575
|
case It:
|
|
570
|
-
return i = _(), k(), i.elements =
|
|
576
|
+
return i = _(), k(), i.elements = gt(bt, !0, !0), E(i, "ArrayExpression");
|
|
571
577
|
case Me:
|
|
572
578
|
for (i = _(), l = !0, u = !1, i.h = [], k(); !N(xe); ) {
|
|
573
579
|
if (l)
|
|
@@ -581,7 +587,7 @@ var T, Mn = function(e) {
|
|
|
581
587
|
f.value = $(!0);
|
|
582
588
|
var F = f.kind = "init";
|
|
583
589
|
} else
|
|
584
|
-
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? ee() : (S = u = !0, F = f.kind = f.key.name, f.key = x === Re || x === Qe ? ze() : te(!0), x !== ne && ee(), f.value =
|
|
590
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? ee() : (S = u = !0, F = f.kind = f.key.name, f.key = x === Re || x === Qe ? ze() : te(!0), x !== ne && ee(), f.value = dt(_(), !1));
|
|
585
591
|
if (f.key.type === "Identifier" && (K || u))
|
|
586
592
|
for (var G = 0; G < i.h.length; ++G) {
|
|
587
593
|
var ke = i.h[G];
|
|
@@ -594,13 +600,13 @@ var T, Mn = function(e) {
|
|
|
594
600
|
}
|
|
595
601
|
return E(i, "ObjectExpression");
|
|
596
602
|
case Ct:
|
|
597
|
-
return i = _(), k(),
|
|
598
|
-
case
|
|
599
|
-
return i = _(), k(), i.callee = Te(ze(), !0), i.arguments = N(ne) ?
|
|
603
|
+
return i = _(), k(), dt(i, !1);
|
|
604
|
+
case xr:
|
|
605
|
+
return i = _(), k(), i.callee = Te(ze(), !0), i.arguments = N(ne) ? gt(Q, !1) : sn, E(i, "NewExpression");
|
|
600
606
|
}
|
|
601
607
|
ee();
|
|
602
608
|
}
|
|
603
|
-
function
|
|
609
|
+
function dt(i, l) {
|
|
604
610
|
x === we ? i.id = te() : l ? ee() : i.id = null, i.oa = [];
|
|
605
611
|
var u = !0;
|
|
606
612
|
for (M(ne); !N(Q); )
|
|
@@ -609,13 +615,13 @@ var T, Mn = function(e) {
|
|
|
609
615
|
var f = B;
|
|
610
616
|
if (Ne = !0, B = [], i.body = be(!0), Ne = u, B = f, K || i.body.body.length && ut(i.body.body[0])) {
|
|
611
617
|
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
612
|
-
if (f = 0 > u ? i.id : i.oa[u], (
|
|
618
|
+
if (f = 0 > u ? i.id : i.oa[u], (Nr(f.name) || et(f.name)) && n(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= u)
|
|
613
619
|
for (var S = 0; S < u; ++S)
|
|
614
620
|
f.name === i.oa[S].name && n(f.start, "Argument name clash in strict mode");
|
|
615
621
|
}
|
|
616
622
|
return E(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
617
623
|
}
|
|
618
|
-
function
|
|
624
|
+
function gt(i, l, u) {
|
|
619
625
|
for (var f = [], S = !0; !N(i); ) {
|
|
620
626
|
if (S)
|
|
621
627
|
S = !1;
|
|
@@ -627,19 +633,19 @@ var T, Mn = function(e) {
|
|
|
627
633
|
}
|
|
628
634
|
function te(i) {
|
|
629
635
|
var l = _();
|
|
630
|
-
return i && j.yb === "everywhere" && (i = !1), x === we ? (!i && (j.yb && vn(Y) || K &&
|
|
636
|
+
return i && j.yb === "everywhere" && (i = !1), x === we ? (!i && (j.yb && vn(Y) || K && Nr(Y)) && g.slice(U, me).indexOf("\\") === -1 && n(U, "The keyword '" + Y + "' is reserved"), l.name = Y) : i && x.l ? l.name = x.l : ee(), Pe = !1, k(), E(l, "Identifier");
|
|
631
637
|
}
|
|
632
638
|
e.version = "0.5.0";
|
|
633
|
-
var j,
|
|
639
|
+
var j, g = "", ve, yt;
|
|
634
640
|
e.parse = function(i, l) {
|
|
635
|
-
|
|
636
|
-
for (var u in
|
|
637
|
-
Object.prototype.hasOwnProperty.call(j, u) || (j[u] =
|
|
638
|
-
for (yt = j.sourceFile,
|
|
641
|
+
g = String(i), ve = g.length, j = l || {};
|
|
642
|
+
for (var u in ir)
|
|
643
|
+
Object.prototype.hasOwnProperty.call(j, u) || (j[u] = ir[u]);
|
|
644
|
+
for (yt = j.sourceFile, ge = 1, c = re = 0, Pe = !0, d(), u = j.dc, wt = fe = c, j.C && (xt = new s()), Ne = K = !1, B = [], C(), i = u || _(), l = !0, u || (i.body = []); x !== St; )
|
|
639
645
|
u = Z(), i.body.push(u), l && ut(u) && q(!0), l = !1;
|
|
640
646
|
return E(i, "Program");
|
|
641
647
|
};
|
|
642
|
-
var
|
|
648
|
+
var ir = {
|
|
643
649
|
fc: !1,
|
|
644
650
|
sb: !0,
|
|
645
651
|
yb: !1,
|
|
@@ -650,9 +656,9 @@ var T, Mn = function(e) {
|
|
|
650
656
|
dc: null,
|
|
651
657
|
sourceFile: null,
|
|
652
658
|
vb: null
|
|
653
|
-
}, c = 0, U = 0, me = 0, vt, mt, x, Y, Pe,
|
|
659
|
+
}, c = 0, U = 0, me = 0, vt, mt, x, Y, Pe, ge, re, wt = 0, fe = 0, xt, Ne, B, K, sn = [], Re = {
|
|
654
660
|
type: "num"
|
|
655
|
-
},
|
|
661
|
+
}, sr = {
|
|
656
662
|
type: "regexp"
|
|
657
663
|
}, Qe = {
|
|
658
664
|
type: "string"
|
|
@@ -665,58 +671,58 @@ var T, Mn = function(e) {
|
|
|
665
671
|
}, Et = {
|
|
666
672
|
l: "case",
|
|
667
673
|
m: !0
|
|
668
|
-
}, sr = {
|
|
669
|
-
l: "catch"
|
|
670
674
|
}, ar = {
|
|
671
|
-
l: "
|
|
675
|
+
l: "catch"
|
|
672
676
|
}, lr = {
|
|
673
|
-
l: "
|
|
677
|
+
l: "continue"
|
|
674
678
|
}, ur = {
|
|
675
|
-
l: "
|
|
679
|
+
l: "debugger"
|
|
676
680
|
}, cr = {
|
|
681
|
+
l: "default"
|
|
682
|
+
}, fr = {
|
|
677
683
|
l: "do",
|
|
678
684
|
W: !0
|
|
679
|
-
},
|
|
685
|
+
}, pr = {
|
|
680
686
|
l: "else",
|
|
681
687
|
m: !0
|
|
682
|
-
}, pr = {
|
|
683
|
-
l: "finally"
|
|
684
688
|
}, hr = {
|
|
689
|
+
l: "finally"
|
|
690
|
+
}, dr = {
|
|
685
691
|
l: "for",
|
|
686
692
|
W: !0
|
|
687
693
|
}, Ct = {
|
|
688
694
|
l: "function"
|
|
689
695
|
}, gr = {
|
|
690
696
|
l: "if"
|
|
691
|
-
},
|
|
697
|
+
}, yr = {
|
|
692
698
|
l: "return",
|
|
693
699
|
m: !0
|
|
694
700
|
}, jt = {
|
|
695
701
|
l: "switch"
|
|
696
|
-
},
|
|
702
|
+
}, vr = {
|
|
697
703
|
l: "throw",
|
|
698
704
|
m: !0
|
|
699
|
-
},
|
|
705
|
+
}, mr = {
|
|
700
706
|
l: "try"
|
|
701
707
|
}, Ot = {
|
|
702
708
|
l: "var"
|
|
703
709
|
}, At = {
|
|
704
710
|
l: "while",
|
|
705
711
|
W: !0
|
|
706
|
-
}, mr = {
|
|
707
|
-
l: "with"
|
|
708
712
|
}, wr = {
|
|
713
|
+
l: "with"
|
|
714
|
+
}, xr = {
|
|
709
715
|
l: "new",
|
|
710
716
|
m: !0
|
|
711
|
-
}, xr = {
|
|
712
|
-
l: "this"
|
|
713
717
|
}, Sr = {
|
|
718
|
+
l: "this"
|
|
719
|
+
}, kr = {
|
|
714
720
|
l: "null",
|
|
715
721
|
$a: null
|
|
716
|
-
},
|
|
722
|
+
}, Er = {
|
|
717
723
|
l: "true",
|
|
718
724
|
$a: !0
|
|
719
|
-
},
|
|
725
|
+
}, Cr = {
|
|
720
726
|
l: "false",
|
|
721
727
|
$a: !1
|
|
722
728
|
}, qe = {
|
|
@@ -726,34 +732,34 @@ var T, Mn = function(e) {
|
|
|
726
732
|
}, an = {
|
|
727
733
|
break: kt,
|
|
728
734
|
case: Et,
|
|
729
|
-
catch:
|
|
730
|
-
continue:
|
|
731
|
-
debugger:
|
|
732
|
-
default:
|
|
733
|
-
do:
|
|
734
|
-
else:
|
|
735
|
-
finally:
|
|
736
|
-
for:
|
|
735
|
+
catch: ar,
|
|
736
|
+
continue: lr,
|
|
737
|
+
debugger: ur,
|
|
738
|
+
default: cr,
|
|
739
|
+
do: fr,
|
|
740
|
+
else: pr,
|
|
741
|
+
finally: hr,
|
|
742
|
+
for: dr,
|
|
737
743
|
function: Ct,
|
|
738
744
|
if: gr,
|
|
739
|
-
return:
|
|
745
|
+
return: yr,
|
|
740
746
|
switch: jt,
|
|
741
|
-
throw:
|
|
742
|
-
try:
|
|
747
|
+
throw: vr,
|
|
748
|
+
try: mr,
|
|
743
749
|
var: Ot,
|
|
744
750
|
while: At,
|
|
745
|
-
with:
|
|
746
|
-
null:
|
|
747
|
-
true:
|
|
748
|
-
false:
|
|
749
|
-
new:
|
|
751
|
+
with: wr,
|
|
752
|
+
null: kr,
|
|
753
|
+
true: Er,
|
|
754
|
+
false: Cr,
|
|
755
|
+
new: xr,
|
|
750
756
|
in: qe,
|
|
751
757
|
instanceof: {
|
|
752
758
|
l: "instanceof",
|
|
753
759
|
L: 7,
|
|
754
760
|
m: !0
|
|
755
761
|
},
|
|
756
|
-
this:
|
|
762
|
+
this: Sr,
|
|
757
763
|
typeof: {
|
|
758
764
|
l: "typeof",
|
|
759
765
|
prefix: !0,
|
|
@@ -793,15 +799,15 @@ var T, Mn = function(e) {
|
|
|
793
799
|
}, Be = {
|
|
794
800
|
type: ":",
|
|
795
801
|
m: !0
|
|
796
|
-
}, Cr = {
|
|
797
|
-
type: "."
|
|
798
802
|
}, jr = {
|
|
803
|
+
type: "."
|
|
804
|
+
}, Or = {
|
|
799
805
|
type: "?",
|
|
800
806
|
m: !0
|
|
801
|
-
},
|
|
807
|
+
}, Ar = {
|
|
802
808
|
L: 10,
|
|
803
809
|
m: !0
|
|
804
|
-
},
|
|
810
|
+
}, Ir = {
|
|
805
811
|
Cb: !0,
|
|
806
812
|
m: !0
|
|
807
813
|
}, ye = {
|
|
@@ -811,13 +817,13 @@ var T, Mn = function(e) {
|
|
|
811
817
|
cc: !0,
|
|
812
818
|
prefix: !0,
|
|
813
819
|
$b: !0
|
|
814
|
-
},
|
|
820
|
+
}, br = {
|
|
815
821
|
prefix: !0,
|
|
816
822
|
m: !0
|
|
817
|
-
},
|
|
823
|
+
}, Tr = {
|
|
818
824
|
L: 1,
|
|
819
825
|
m: !0
|
|
820
|
-
},
|
|
826
|
+
}, Pr = {
|
|
821
827
|
L: 2,
|
|
822
828
|
m: !0
|
|
823
829
|
}, un = {
|
|
@@ -835,23 +841,23 @@ var T, Mn = function(e) {
|
|
|
835
841
|
}, hn = {
|
|
836
842
|
L: 7,
|
|
837
843
|
m: !0
|
|
838
|
-
},
|
|
844
|
+
}, dn = {
|
|
839
845
|
L: 8,
|
|
840
846
|
m: !0
|
|
841
|
-
},
|
|
847
|
+
}, gn = {
|
|
842
848
|
L: 9,
|
|
843
849
|
prefix: !0,
|
|
844
850
|
m: !0
|
|
845
851
|
}, yn = {
|
|
846
852
|
L: 10,
|
|
847
853
|
m: !0
|
|
848
|
-
}, vn = o("class enum extends super const export import"),
|
|
854
|
+
}, vn = o("class enum extends super const export import"), Nr = o("implements interface let package private protected public static yield"), et = o("eval arguments"), mn = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), wn = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Rr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), xn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), tt = /[\n\r\u2028\u2029]/, rt = /\r\n|[\n\r\u2028\u2029]/g, Se, Tt = {
|
|
849
855
|
kind: "loop"
|
|
850
856
|
}, Sn = {
|
|
851
857
|
kind: "switch"
|
|
852
858
|
};
|
|
853
859
|
}, Ut = Ut = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
854
|
-
|
|
860
|
+
Dn(Ut.j || (Ut.j = {}));
|
|
855
861
|
function h(e, t) {
|
|
856
862
|
typeof e == "string" && (e = je(e, "code"));
|
|
857
863
|
var r = e.constructor;
|
|
@@ -870,10 +876,10 @@ function h(e, t) {
|
|
|
870
876
|
this.N = Lt(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
871
877
|
`), "polyfills"), this.ba = void 0, it(this.ra), s = new m(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = n, s = new m(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
872
878
|
}
|
|
873
|
-
var
|
|
879
|
+
var Dr = {
|
|
874
880
|
C: !0,
|
|
875
881
|
kc: 5
|
|
876
|
-
},
|
|
882
|
+
}, Gt = {
|
|
877
883
|
configurable: !0,
|
|
878
884
|
enumerable: !0,
|
|
879
885
|
writable: !1
|
|
@@ -889,7 +895,7 @@ var Br = {
|
|
|
889
895
|
configurable: !1,
|
|
890
896
|
enumerable: !1,
|
|
891
897
|
writable: !1
|
|
892
|
-
},
|
|
898
|
+
}, Ur = {
|
|
893
899
|
configurable: !1,
|
|
894
900
|
enumerable: !0,
|
|
895
901
|
writable: !0
|
|
@@ -901,8 +907,8 @@ var Br = {
|
|
|
901
907
|
VALUE_IN_DESCRIPTOR: !0
|
|
902
908
|
}, Ee = {
|
|
903
909
|
REGEXP_TIMEOUT: !0
|
|
904
|
-
},
|
|
905
|
-
function
|
|
910
|
+
}, Fr = [], ae = null, We = null, he = typeof globalThis == "undefined" ? void 0 : globalThis, Un = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
911
|
+
function Vt(e) {
|
|
906
912
|
var t = e >>> 0;
|
|
907
913
|
return t === Number(e) ? t : NaN;
|
|
908
914
|
}
|
|
@@ -928,8 +934,8 @@ T.Kb = 0;
|
|
|
928
934
|
T.ic = 0;
|
|
929
935
|
function je(e, t) {
|
|
930
936
|
var r = {}, n;
|
|
931
|
-
for (n in
|
|
932
|
-
r[n] =
|
|
937
|
+
for (n in Dr)
|
|
938
|
+
r[n] = Dr[n];
|
|
933
939
|
return r.sourceFile = t, he.j.parse(e, r);
|
|
934
940
|
}
|
|
935
941
|
T.Jb = function(e) {
|
|
@@ -983,8 +989,8 @@ T.Eb = function() {
|
|
|
983
989
|
;
|
|
984
990
|
return this.za;
|
|
985
991
|
};
|
|
986
|
-
function
|
|
987
|
-
e.g(t, "NaN", NaN, De), e.g(t, "Infinity", 1 / 0, De), e.g(t, "undefined", void 0, De), e.g(t, "window", t,
|
|
992
|
+
function Fn(e, t) {
|
|
993
|
+
e.g(t, "NaN", NaN, De), e.g(t, "Infinity", 1 / 0, De), e.g(t, "undefined", void 0, De), e.g(t, "window", t, Gt), e.g(t, "this", t, De), e.g(t, "self", t), e.M = new A(null), e.Z = new A(e.M), Ln(e, t), _n(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), Wn(e, t), $n(e, t), Gn(e, t), Vn(e, t), Xn(e, t), Hn(e, t), Kn(e, t), Jn(e, t), Yn(e, t);
|
|
988
994
|
var r = e.i(function() {
|
|
989
995
|
throw EvalError("Can't happen");
|
|
990
996
|
}, !1);
|
|
@@ -1000,24 +1006,24 @@ function Dn(e, t) {
|
|
|
1000
1006
|
};
|
|
1001
1007
|
}(n[o][0]), e.g(t, n[o][1], e.i(r, !1), v);
|
|
1002
1008
|
r = function(s) {
|
|
1003
|
-
return
|
|
1009
|
+
return Lr(e, !1, arguments);
|
|
1004
1010
|
}, e.g(t, "setTimeout", e.i(r, !1), v), r = function(s) {
|
|
1005
|
-
return
|
|
1011
|
+
return Lr(e, !0, arguments);
|
|
1006
1012
|
}, e.g(t, "setInterval", e.i(r, !1), v), r = function(s) {
|
|
1007
|
-
|
|
1013
|
+
_r(e, s);
|
|
1008
1014
|
}, e.g(t, "clearTimeout", e.i(r, !1), v), r = function(s) {
|
|
1009
|
-
|
|
1015
|
+
_r(e, s);
|
|
1010
1016
|
}, e.g(t, "clearInterval", e.i(r, !1), v), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1011
1017
|
}
|
|
1012
1018
|
T.Wb = 0;
|
|
1013
|
-
function
|
|
1019
|
+
function Ln(e, t) {
|
|
1014
1020
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(o) {
|
|
1015
1021
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1016
1022
|
if (a) {
|
|
1017
1023
|
a = a.split(/\s*,\s*/);
|
|
1018
1024
|
for (var p = 0; p < a.length; p++) {
|
|
1019
|
-
var
|
|
1020
|
-
r.test(
|
|
1025
|
+
var d = a[p];
|
|
1026
|
+
r.test(d) || w(e, e.T, "Invalid function argument: " + d);
|
|
1021
1027
|
}
|
|
1022
1028
|
a = a.join(", ");
|
|
1023
1029
|
}
|
|
@@ -1026,7 +1032,7 @@ function Un(e, t) {
|
|
|
1026
1032
|
} catch (C) {
|
|
1027
1033
|
w(e, e.T, "Invalid code: " + C.message);
|
|
1028
1034
|
}
|
|
1029
|
-
return y.body.length !== 1 && w(e, e.T, "Invalid code in function body"),
|
|
1035
|
+
return y.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Kt(e, y.body[0].la, e.N, "anonymous");
|
|
1030
1036
|
};
|
|
1031
1037
|
e.O = e.i(n, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
|
|
1032
1038
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, X), e.Z.H = "Function", n = function(o, s) {
|
|
@@ -1044,7 +1050,7 @@ function Un(e, t) {
|
|
|
1044
1050
|
return this.valueOf();
|
|
1045
1051
|
}, L(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), v);
|
|
1046
1052
|
}
|
|
1047
|
-
function
|
|
1053
|
+
function _n(e, t) {
|
|
1048
1054
|
function r(o) {
|
|
1049
1055
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1050
1056
|
}
|
|
@@ -1089,11 +1095,11 @@ function Fn(e, t) {
|
|
|
1089
1095
|
}
|
|
1090
1096
|
}, L(e, e.v, "isPrototypeOf", n);
|
|
1091
1097
|
}
|
|
1092
|
-
function
|
|
1098
|
+
function Wn(e, t) {
|
|
1093
1099
|
var r = function(n) {
|
|
1094
1100
|
var o = ue(e) ? this : Oe(e), s = arguments[0];
|
|
1095
1101
|
if (arguments.length === 1 && typeof s == "number")
|
|
1096
|
-
isNaN(
|
|
1102
|
+
isNaN(Vt(s)) && w(e, e.ob, "Invalid array length: " + s), o.h.length = s;
|
|
1097
1103
|
else {
|
|
1098
1104
|
for (s = 0; s < arguments.length; s++)
|
|
1099
1105
|
o.h[s] = arguments[s];
|
|
@@ -1109,7 +1115,7 @@ function Ln(e, t) {
|
|
|
1109
1115
|
writable: !0
|
|
1110
1116
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1111
1117
|
}
|
|
1112
|
-
function
|
|
1118
|
+
function $n(e, t) {
|
|
1113
1119
|
var r = function(n) {
|
|
1114
1120
|
return n = arguments.length ? he.String(n) : "", ue(e) ? (this.data = n, this) : n;
|
|
1115
1121
|
};
|
|
@@ -1132,9 +1138,9 @@ function _n(e, t) {
|
|
|
1132
1138
|
limit: o
|
|
1133
1139
|
}, n, s), n !== Ee && s(se(e, n));
|
|
1134
1140
|
else {
|
|
1135
|
-
var p = e.ha(),
|
|
1141
|
+
var p = e.ha(), d = Le(e, n, p, s);
|
|
1136
1142
|
p.onmessage = function(y) {
|
|
1137
|
-
clearTimeout(
|
|
1143
|
+
clearTimeout(d), s(se(e, y.data));
|
|
1138
1144
|
}, p.postMessage(["split", a, n, o]);
|
|
1139
1145
|
}
|
|
1140
1146
|
return;
|
|
@@ -1150,8 +1156,8 @@ function _n(e, t) {
|
|
|
1150
1156
|
}, n, o), n !== Ee && o(n && se(e, n));
|
|
1151
1157
|
else {
|
|
1152
1158
|
var a = e.ha(), p = Le(e, n, a, o);
|
|
1153
|
-
a.onmessage = function(
|
|
1154
|
-
clearTimeout(p), o(
|
|
1159
|
+
a.onmessage = function(d) {
|
|
1160
|
+
clearTimeout(p), o(d.data && se(e, d.data));
|
|
1155
1161
|
}, a.postMessage(["match", s, n]);
|
|
1156
1162
|
}
|
|
1157
1163
|
else
|
|
@@ -1166,8 +1172,8 @@ function _n(e, t) {
|
|
|
1166
1172
|
}, n, o), n !== Ee && o(n);
|
|
1167
1173
|
else {
|
|
1168
1174
|
var a = e.ha(), p = Le(e, n, a, o);
|
|
1169
|
-
a.onmessage = function(
|
|
1170
|
-
clearTimeout(p), o(
|
|
1175
|
+
a.onmessage = function(d) {
|
|
1176
|
+
clearTimeout(p), o(d.data);
|
|
1171
1177
|
}, a.postMessage(["search", s, n]);
|
|
1172
1178
|
}
|
|
1173
1179
|
else
|
|
@@ -1182,9 +1188,9 @@ function _n(e, t) {
|
|
|
1182
1188
|
newSubstr: o
|
|
1183
1189
|
}, n, s), n !== Ee && s(n);
|
|
1184
1190
|
else {
|
|
1185
|
-
var p = e.ha(),
|
|
1191
|
+
var p = e.ha(), d = Le(e, n, p, s);
|
|
1186
1192
|
p.onmessage = function(y) {
|
|
1187
|
-
clearTimeout(
|
|
1193
|
+
clearTimeout(d), s(y.data);
|
|
1188
1194
|
}, p.postMessage(["replace", a, n, o]);
|
|
1189
1195
|
}
|
|
1190
1196
|
return;
|
|
@@ -1192,12 +1198,12 @@ function _n(e, t) {
|
|
|
1192
1198
|
s(a.replace(n, o));
|
|
1193
1199
|
}, _e(e, e.J, "replace", r), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1194
1200
|
}
|
|
1195
|
-
function
|
|
1201
|
+
function Gn(e, t) {
|
|
1196
1202
|
e.mb = e.i(function(r) {
|
|
1197
1203
|
return r = he.Boolean(r), ue(e) ? (this.data = r, this) : r;
|
|
1198
1204
|
}, !0), e.g(t, "Boolean", e.mb, v);
|
|
1199
1205
|
}
|
|
1200
|
-
function
|
|
1206
|
+
function Vn(e, t) {
|
|
1201
1207
|
var r = function(n) {
|
|
1202
1208
|
return n = arguments.length ? he.Number(n) : 0, ue(e) ? (this.data = n, this) : n;
|
|
1203
1209
|
};
|
|
@@ -1236,7 +1242,7 @@ function $n(e, t) {
|
|
|
1236
1242
|
}
|
|
1237
1243
|
}, L(e, e.aa, "toLocaleString", r);
|
|
1238
1244
|
}
|
|
1239
|
-
function
|
|
1245
|
+
function Xn(e, t) {
|
|
1240
1246
|
var r = function(o, s) {
|
|
1241
1247
|
if (!ue(e))
|
|
1242
1248
|
return he.Date();
|
|
@@ -1249,13 +1255,13 @@ function Gn(e, t) {
|
|
|
1249
1255
|
return function(s) {
|
|
1250
1256
|
var a = this.data;
|
|
1251
1257
|
a instanceof Date || w(e, e.j, o + " not called on a Date");
|
|
1252
|
-
for (var p = [],
|
|
1253
|
-
p[
|
|
1258
|
+
for (var p = [], d = 0; d < arguments.length; d++)
|
|
1259
|
+
p[d] = e.R(arguments[d]);
|
|
1254
1260
|
return a[o].apply(a, p);
|
|
1255
1261
|
};
|
|
1256
1262
|
}(t[n]), L(e, e.$, t[n], r);
|
|
1257
1263
|
}
|
|
1258
|
-
function
|
|
1264
|
+
function Hn(e, t) {
|
|
1259
1265
|
var r = function(n, o) {
|
|
1260
1266
|
if (ue(e))
|
|
1261
1267
|
var s = this;
|
|
@@ -1270,7 +1276,7 @@ function Vn(e, t) {
|
|
|
1270
1276
|
} catch (p) {
|
|
1271
1277
|
w(e, e.T, p.message);
|
|
1272
1278
|
}
|
|
1273
|
-
return
|
|
1279
|
+
return Xt(e, s, a), s;
|
|
1274
1280
|
};
|
|
1275
1281
|
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, v), e.g(e.I.h.prototype, "global", void 0, X), e.g(e.I.h.prototype, "ignoreCase", void 0, X), e.g(e.I.h.prototype, "multiline", void 0, X), e.g(e.I.h.prototype, "source", "(?:)", X), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, o) {
|
|
1276
1282
|
function s(C) {
|
|
@@ -1288,16 +1294,16 @@ function Vn(e, t) {
|
|
|
1288
1294
|
regexp: a
|
|
1289
1295
|
}, a, o), n !== Ee && (e.g(this, "lastIndex", a.lastIndex), o(s(n)));
|
|
1290
1296
|
else {
|
|
1291
|
-
var p = e.ha(),
|
|
1297
|
+
var p = e.ha(), d = Le(e, a, p, o), y = this;
|
|
1292
1298
|
p.onmessage = function(C) {
|
|
1293
|
-
clearTimeout(
|
|
1299
|
+
clearTimeout(d), e.g(y, "lastIndex", C.data[1]), o(s(C.data[0]));
|
|
1294
1300
|
}, p.postMessage(["exec", a, a.lastIndex, n]);
|
|
1295
1301
|
}
|
|
1296
1302
|
else
|
|
1297
1303
|
n = a.exec(n), e.g(this, "lastIndex", a.lastIndex), o(s(n));
|
|
1298
1304
|
}, _e(e, e.I, "exec", r);
|
|
1299
1305
|
}
|
|
1300
|
-
function
|
|
1306
|
+
function Kn(e, t) {
|
|
1301
1307
|
function r(n) {
|
|
1302
1308
|
var o = e.i(function(s) {
|
|
1303
1309
|
var a = ue(e) ? this : e.Aa(o);
|
|
@@ -1310,7 +1316,7 @@ function Xn(e, t) {
|
|
|
1310
1316
|
return Ft(e, o, n), o;
|
|
1311
1317
|
}, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1312
1318
|
}
|
|
1313
|
-
function
|
|
1319
|
+
function Jn(e, t) {
|
|
1314
1320
|
var r = e.s(e.M);
|
|
1315
1321
|
e.g(t, "Math", r, v);
|
|
1316
1322
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1319,7 +1325,7 @@ function Hn(e, t) {
|
|
|
1319
1325
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1320
1326
|
e.g(r, n[t], e.i(Math[n[t]], !1), v);
|
|
1321
1327
|
}
|
|
1322
|
-
function
|
|
1328
|
+
function Yn(e, t) {
|
|
1323
1329
|
var r = e.s(e.M);
|
|
1324
1330
|
e.g(t, "JSON", r, v), t = function(n) {
|
|
1325
1331
|
try {
|
|
@@ -1352,7 +1358,7 @@ function W(e, t, r) {
|
|
|
1352
1358
|
}
|
|
1353
1359
|
return !1;
|
|
1354
1360
|
}
|
|
1355
|
-
function
|
|
1361
|
+
function Xt(e, t, r) {
|
|
1356
1362
|
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, v), e.g(t, "source", r.source, X), e.g(t, "global", r.global, X), e.g(t, "ignoreCase", r.ignoreCase, X), e.g(t, "multiline", r.multiline, X);
|
|
1357
1363
|
}
|
|
1358
1364
|
function Ft(e, t, r) {
|
|
@@ -1374,7 +1380,7 @@ function Ft(e, t, r) {
|
|
|
1374
1380
|
}
|
|
1375
1381
|
T.ha = function() {
|
|
1376
1382
|
var e = this.ha.Mb;
|
|
1377
|
-
return e || (e = new Blob([
|
|
1383
|
+
return e || (e = new Blob([Un.join(`
|
|
1378
1384
|
`)], {
|
|
1379
1385
|
type: "application/javascript"
|
|
1380
1386
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1434,19 +1440,19 @@ function Oe(e) {
|
|
|
1434
1440
|
writable: !0
|
|
1435
1441
|
}), t.H = "Array", t;
|
|
1436
1442
|
}
|
|
1437
|
-
function
|
|
1443
|
+
function Ht(e, t, r) {
|
|
1438
1444
|
var n = e.s(e.Z);
|
|
1439
1445
|
return r ? (r = e.s(e.M), e.g(n, "prototype", r, v), e.g(r, "constructor", n, v)) : n.Ab = !0, e.g(n, "length", t, X), n.H = "Function", n;
|
|
1440
1446
|
}
|
|
1441
|
-
function
|
|
1442
|
-
var o =
|
|
1447
|
+
function Kt(e, t, r, n) {
|
|
1448
|
+
var o = Ht(e, t.oa.length, !0);
|
|
1443
1449
|
return o.Va = r, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : n || "", X), o;
|
|
1444
1450
|
}
|
|
1445
1451
|
T.i = function(e, t) {
|
|
1446
|
-
return t =
|
|
1452
|
+
return t = Ht(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, X), t;
|
|
1447
1453
|
};
|
|
1448
1454
|
T.ub = function(e) {
|
|
1449
|
-
var t =
|
|
1455
|
+
var t = Ht(this, e.length, !0);
|
|
1450
1456
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, X), t;
|
|
1451
1457
|
};
|
|
1452
1458
|
T.Ia = function(e) {
|
|
@@ -1456,7 +1462,7 @@ T.Ia = function(e) {
|
|
|
1456
1462
|
return e;
|
|
1457
1463
|
if (e instanceof RegExp) {
|
|
1458
1464
|
var t = this.s(this.Ma);
|
|
1459
|
-
return
|
|
1465
|
+
return Xt(this, t, e), t;
|
|
1460
1466
|
}
|
|
1461
1467
|
if (e instanceof Date)
|
|
1462
1468
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1519,7 +1525,7 @@ function Zr(e, t) {
|
|
|
1519
1525
|
var r = [], n;
|
|
1520
1526
|
for (n in t.h)
|
|
1521
1527
|
r[n] = e.G(t, n);
|
|
1522
|
-
return r.length =
|
|
1528
|
+
return r.length = Vt(e.G(t, "length")) || 0, r;
|
|
1523
1529
|
}
|
|
1524
1530
|
function le(e, t) {
|
|
1525
1531
|
switch (typeof t) {
|
|
@@ -1572,7 +1578,7 @@ T.g = function(e, t, r, n) {
|
|
|
1572
1578
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
1573
1579
|
throw TypeError("Expecting native value or pseudo object");
|
|
1574
1580
|
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1575
|
-
var o = !this.o ||
|
|
1581
|
+
var o = !this.o || Jt(this).S;
|
|
1576
1582
|
if (e instanceof A) {
|
|
1577
1583
|
if (W(this, e, this.J)) {
|
|
1578
1584
|
var s = $e(t);
|
|
@@ -1588,7 +1594,7 @@ T.g = function(e, t, r, n) {
|
|
|
1588
1594
|
return;
|
|
1589
1595
|
r = n.value;
|
|
1590
1596
|
}
|
|
1591
|
-
if (r =
|
|
1597
|
+
if (r = Vt(r), isNaN(r) && w(this, this.ob, "Invalid array length"), r < s)
|
|
1592
1598
|
for (a in e.h) {
|
|
1593
1599
|
var a = $e(a);
|
|
1594
1600
|
!isNaN(a) && r <= a && delete e.h[a];
|
|
@@ -1640,7 +1646,7 @@ function L(e, t, r, n) {
|
|
|
1640
1646
|
function _e(e, t, r, n) {
|
|
1641
1647
|
e.g(t.h.prototype, r, e.ub(n), v);
|
|
1642
1648
|
}
|
|
1643
|
-
function
|
|
1649
|
+
function Jt(e) {
|
|
1644
1650
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1645
1651
|
throw Error("No scope found");
|
|
1646
1652
|
return e;
|
|
@@ -1653,15 +1659,15 @@ function Lt(e, t, r) {
|
|
|
1653
1659
|
var o = t.body && t.body[0];
|
|
1654
1660
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (n = !0);
|
|
1655
1661
|
}
|
|
1656
|
-
return o = e.s(null), n = new qr(r, n, o), r ||
|
|
1662
|
+
return o = e.s(null), n = new qr(r, n, o), r || Fn(e, n.object), Xe(e, t, n), n;
|
|
1657
1663
|
}
|
|
1658
|
-
function
|
|
1664
|
+
function Yt(e, t, r) {
|
|
1659
1665
|
if (!t)
|
|
1660
1666
|
throw Error("parentScope required");
|
|
1661
1667
|
return e = r || e.s(null), new qr(t, t.S, e);
|
|
1662
1668
|
}
|
|
1663
|
-
function
|
|
1664
|
-
for (var r =
|
|
1669
|
+
function Zt(e, t) {
|
|
1670
|
+
for (var r = Jt(e); r && r !== e.N; ) {
|
|
1665
1671
|
if (t in r.object.h)
|
|
1666
1672
|
return r.object.h[t];
|
|
1667
1673
|
r = r.Va;
|
|
@@ -1671,7 +1677,7 @@ function Yt(e, t) {
|
|
|
1671
1677
|
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1672
1678
|
}
|
|
1673
1679
|
function zr(e, t, r) {
|
|
1674
|
-
for (var n =
|
|
1680
|
+
for (var n = Jt(e), o = n.S; n && n !== e.N; ) {
|
|
1675
1681
|
if (t in n.object.h) {
|
|
1676
1682
|
try {
|
|
1677
1683
|
n.object.h[t] = r;
|
|
@@ -1719,29 +1725,29 @@ function Xe(e, t, r) {
|
|
|
1719
1725
|
if (Array.isArray(p)) {
|
|
1720
1726
|
for (o = 0; o < p.length; o++)
|
|
1721
1727
|
if (p[o] && p[o].constructor === s) {
|
|
1722
|
-
var
|
|
1723
|
-
for (a in
|
|
1724
|
-
n[a] =
|
|
1728
|
+
var d = Xe(e, p[o], r);
|
|
1729
|
+
for (a in d)
|
|
1730
|
+
n[a] = d[a];
|
|
1725
1731
|
}
|
|
1726
1732
|
} else if (p.constructor === s)
|
|
1727
|
-
for (a in
|
|
1728
|
-
n[a] =
|
|
1733
|
+
for (a in d = Xe(e, p, r), d)
|
|
1734
|
+
n[a] = d[a];
|
|
1729
1735
|
}
|
|
1730
1736
|
}
|
|
1731
1737
|
}
|
|
1732
1738
|
t.jb = n;
|
|
1733
1739
|
}
|
|
1734
1740
|
for (a in n)
|
|
1735
|
-
n[a] === !0 ? e.g(r.object, a, void 0,
|
|
1741
|
+
n[a] === !0 ? e.g(r.object, a, void 0, Ur) : e.g(r.object, a, Kt(e, n[a], r), Ur);
|
|
1736
1742
|
return n;
|
|
1737
1743
|
}
|
|
1738
1744
|
function ue(e) {
|
|
1739
1745
|
return e.o[e.o.length - 1].isConstructor;
|
|
1740
1746
|
}
|
|
1741
|
-
function
|
|
1742
|
-
return t[0] === Ae ?
|
|
1747
|
+
function zt(e, t) {
|
|
1748
|
+
return t[0] === Ae ? Zt(e, t[1]) : e.G(t[0], t[1]);
|
|
1743
1749
|
}
|
|
1744
|
-
function
|
|
1750
|
+
function Qt(e, t, r) {
|
|
1745
1751
|
return t[0] === Ae ? zr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1746
1752
|
}
|
|
1747
1753
|
function w(e, t, r) {
|
|
@@ -1823,7 +1829,7 @@ function V(e, t) {
|
|
|
1823
1829
|
}
|
|
1824
1830
|
return "???";
|
|
1825
1831
|
}
|
|
1826
|
-
function
|
|
1832
|
+
function Lr(e, t, r) {
|
|
1827
1833
|
var n = e.o[e.o.length - 1], o = Array.from(r), s = o.shift();
|
|
1828
1834
|
r = Math.max(Number(o.shift() || 0), 0);
|
|
1829
1835
|
var a = e.ya();
|
|
@@ -1832,20 +1838,20 @@ function Fr(e, t, r) {
|
|
|
1832
1838
|
a.type = "CallExpression", n = n.scope;
|
|
1833
1839
|
} else {
|
|
1834
1840
|
try {
|
|
1835
|
-
var
|
|
1841
|
+
var d = je(String(s), "taskCode" + e.ic++);
|
|
1836
1842
|
} catch (y) {
|
|
1837
1843
|
w(e, e.T, "Invalid code: " + y.message);
|
|
1838
1844
|
}
|
|
1839
|
-
a.type = "EvalProgram_", a.body =
|
|
1845
|
+
a.type = "EvalProgram_", a.body = d.body, n = n.node.arguments[0], it(a, n ? n.start : void 0, n ? n.end : void 0), n = e.N, o.length = 0;
|
|
1840
1846
|
}
|
|
1841
|
-
return t = new
|
|
1847
|
+
return t = new Zn(p, o, n, a, t ? r : -1), Qr(e, t, r), t.Db;
|
|
1842
1848
|
}
|
|
1843
1849
|
function Qr(e, t, r) {
|
|
1844
1850
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, o) {
|
|
1845
1851
|
return n.time - o.time;
|
|
1846
1852
|
});
|
|
1847
1853
|
}
|
|
1848
|
-
function
|
|
1854
|
+
function _r(e, t) {
|
|
1849
1855
|
for (var r = 0; r < e.ca.length; r++)
|
|
1850
1856
|
if (e.ca[r].Db == t) {
|
|
1851
1857
|
e.ca.splice(r, 1);
|
|
@@ -1859,7 +1865,7 @@ function Ke(e, t, r) {
|
|
|
1859
1865
|
var n = e.ya();
|
|
1860
1866
|
return n.type = "CallExpression", e = new m(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1861
1867
|
}
|
|
1862
|
-
function
|
|
1868
|
+
function qt(e, t, r, n) {
|
|
1863
1869
|
if (!e.Ka)
|
|
1864
1870
|
throw Error("Unexpected call to createSetter");
|
|
1865
1871
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
@@ -1897,7 +1903,7 @@ T.toString = function() {
|
|
|
1897
1903
|
if (!(this instanceof A))
|
|
1898
1904
|
return String(this);
|
|
1899
1905
|
if (this.H === "Array") {
|
|
1900
|
-
var e =
|
|
1906
|
+
var e = Fr;
|
|
1901
1907
|
e.push(this);
|
|
1902
1908
|
try {
|
|
1903
1909
|
var t = [], r = this.h.length, n = !1;
|
|
@@ -1913,7 +1919,7 @@ T.toString = function() {
|
|
|
1913
1919
|
return t.join(",");
|
|
1914
1920
|
}
|
|
1915
1921
|
if (this.H === "Error") {
|
|
1916
|
-
if (e =
|
|
1922
|
+
if (e = Fr, e.indexOf(this) !== -1)
|
|
1917
1923
|
return "[object Error]";
|
|
1918
1924
|
r = this;
|
|
1919
1925
|
do
|
|
@@ -1942,10 +1948,10 @@ T.toString = function() {
|
|
|
1942
1948
|
T.valueOf = function() {
|
|
1943
1949
|
return !We || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1944
1950
|
};
|
|
1945
|
-
function
|
|
1946
|
-
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = o, this.Db = ++
|
|
1951
|
+
function Zn(e, t, r, n, o) {
|
|
1952
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = o, this.Db = ++zn, this.time = 0;
|
|
1947
1953
|
}
|
|
1948
|
-
var
|
|
1954
|
+
var zn = 0;
|
|
1949
1955
|
h.prototype.stepArrayExpression = function(e, t, r) {
|
|
1950
1956
|
r = r.elements;
|
|
1951
1957
|
var n = t.A || 0;
|
|
@@ -1960,7 +1966,7 @@ h.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
1960
1966
|
if (!t.ja)
|
|
1961
1967
|
return t.ja = !0, t = new m(r.left, t.scope), t.sa = !0, t;
|
|
1962
1968
|
if (!t.Da)
|
|
1963
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
1969
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = zt(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ke(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new m(r.right, t.scope));
|
|
1964
1970
|
if (t.ta)
|
|
1965
1971
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1966
1972
|
else {
|
|
@@ -2005,8 +2011,8 @@ h.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2005
2011
|
default:
|
|
2006
2012
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2007
2013
|
}
|
|
2008
|
-
if (r =
|
|
2009
|
-
return t.ta = !0, t.ib = n,
|
|
2014
|
+
if (r = Qt(this, t.Fa, n))
|
|
2015
|
+
return t.ta = !0, t.ib = n, qt(this, r, t.Fa, n);
|
|
2010
2016
|
e.pop(), e[e.length - 1].value = n;
|
|
2011
2017
|
}
|
|
2012
2018
|
};
|
|
@@ -2106,7 +2112,7 @@ h.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2106
2112
|
t.ia = 2;
|
|
2107
2113
|
var o = t.value;
|
|
2108
2114
|
if (Array.isArray(o)) {
|
|
2109
|
-
if (t.U =
|
|
2115
|
+
if (t.U = zt(this, o), o[0] === Ae ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2110
2116
|
return t.ia = 1, Ke(this, o, t.value);
|
|
2111
2117
|
} else
|
|
2112
2118
|
t.U = o;
|
|
@@ -2134,7 +2140,7 @@ h.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2134
2140
|
this.g(n, o, t.F[o]);
|
|
2135
2141
|
for (this.g(r.object, "arguments", n), o = 0; o < e.oa.length; o++)
|
|
2136
2142
|
this.g(r.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2137
|
-
return r.S || (t.B = Rt(this, t.B)), this.g(r.object, "this", t.B,
|
|
2143
|
+
return r.S || (t.B = Rt(this, t.B)), this.g(r.object, "this", t.B, Gt), t.value = void 0, new m(e.body, r);
|
|
2138
2144
|
}
|
|
2139
2145
|
if (o.eval)
|
|
2140
2146
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2234,8 +2240,8 @@ h.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2234
2240
|
t.pa = [Ae, e.fa[0].id.name];
|
|
2235
2241
|
else
|
|
2236
2242
|
return t.pa = null, t = new m(e, t.scope), t.sa = !0, t;
|
|
2237
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2238
|
-
return
|
|
2243
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = Qt(this, t.pa, e)))
|
|
2244
|
+
return qt(this, n, t.pa, e);
|
|
2239
2245
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2240
2246
|
return new m(r.body, t.scope);
|
|
2241
2247
|
};
|
|
@@ -2264,13 +2270,13 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2264
2270
|
e.pop();
|
|
2265
2271
|
};
|
|
2266
2272
|
h.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2267
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2273
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = Yt(this, e)), t.value = Kt(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, Gt);
|
|
2268
2274
|
};
|
|
2269
2275
|
h.prototype.stepIdentifier = function(e, t, r) {
|
|
2270
2276
|
if (e.pop(), t.sa)
|
|
2271
2277
|
e[e.length - 1].value = [Ae, r.name];
|
|
2272
2278
|
else {
|
|
2273
|
-
if (t =
|
|
2279
|
+
if (t = Zt(this, r.name), this.P)
|
|
2274
2280
|
return Ke(this, t, this.Na);
|
|
2275
2281
|
e[e.length - 1].value = t;
|
|
2276
2282
|
}
|
|
@@ -2280,7 +2286,7 @@ h.prototype.stepLabeledStatement = function(e, t, r) {
|
|
|
2280
2286
|
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new m(r.body, t.scope), t.labels = e, t;
|
|
2281
2287
|
};
|
|
2282
2288
|
h.prototype.stepLiteral = function(e, t, r) {
|
|
2283
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2289
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), Xt(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2284
2290
|
};
|
|
2285
2291
|
h.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2286
2292
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
@@ -2383,7 +2389,7 @@ h.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2383
2389
|
}
|
|
2384
2390
|
};
|
|
2385
2391
|
h.prototype.stepThisExpression = function(e) {
|
|
2386
|
-
e.pop(), e[e.length - 1].value =
|
|
2392
|
+
e.pop(), e[e.length - 1].value = Zt(this, "this");
|
|
2387
2393
|
};
|
|
2388
2394
|
h.prototype.stepThrowStatement = function(e, t, r) {
|
|
2389
2395
|
if (t.ka)
|
|
@@ -2395,7 +2401,7 @@ h.prototype.stepTryStatement = function(e, t, r) {
|
|
|
2395
2401
|
if (!t.Rb)
|
|
2396
2402
|
return t.Rb = !0, new m(r.block, t.scope);
|
|
2397
2403
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2398
|
-
return t.Tb = !0, e =
|
|
2404
|
+
return t.Tb = !0, e = Yt(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new m(r.Ea.body, e);
|
|
2399
2405
|
if (!t.Sb && r.fb)
|
|
2400
2406
|
return t.Sb = !0, new m(r.fb, t.scope);
|
|
2401
2407
|
e.pop(), t.ea && He(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2445,7 +2451,7 @@ h.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2445
2451
|
if (!t.ja)
|
|
2446
2452
|
return t.ja = !0, e = new m(r.K, t.scope), e.sa = !0, e;
|
|
2447
2453
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2448
|
-
var n =
|
|
2454
|
+
var n = zt(this, t.Ga);
|
|
2449
2455
|
if (t.ma = n, this.P)
|
|
2450
2456
|
return t.Ba = !0, Ke(this, n, t.Ga);
|
|
2451
2457
|
}
|
|
@@ -2458,8 +2464,8 @@ h.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2458
2464
|
o = n - 1;
|
|
2459
2465
|
else
|
|
2460
2466
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2461
|
-
if (r = r.prefix ? o : n, n =
|
|
2462
|
-
return t.ta = !0, t.ib = r,
|
|
2467
|
+
if (r = r.prefix ? o : n, n = Qt(this, t.Ga, o))
|
|
2468
|
+
return t.ta = !0, t.ib = r, qt(this, n, t.Ga, o);
|
|
2463
2469
|
e.pop(), e[e.length - 1].value = r;
|
|
2464
2470
|
}
|
|
2465
2471
|
};
|
|
@@ -2474,7 +2480,7 @@ h.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
|
2474
2480
|
e.pop();
|
|
2475
2481
|
};
|
|
2476
2482
|
h.prototype.stepWithStatement = function(e, t, r) {
|
|
2477
|
-
return t.Ca ? (e.pop(), e =
|
|
2483
|
+
return t.Ca ? (e.pop(), e = Yt(this, t.scope, t.value), new m(r.body, e)) : (t.Ca = !0, new m(r.object, t.scope));
|
|
2478
2484
|
};
|
|
2479
2485
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2480
2486
|
he.Interpreter = h;
|
|
@@ -2493,7 +2499,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2493
2499
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2494
2500
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2495
2501
|
h.VALUE_IN_DESCRIPTOR = Ve;
|
|
2496
|
-
const
|
|
2502
|
+
const Qn = (e) => e.split(`
|
|
2497
2503
|
`).map((t) => {
|
|
2498
2504
|
const r = t.trim();
|
|
2499
2505
|
if (t.includes("__awaiter"))
|
|
@@ -2506,7 +2512,7 @@ const Zn = (e) => e.split(`
|
|
|
2506
2512
|
${p}
|
|
2507
2513
|
`;
|
|
2508
2514
|
}).filter(Boolean).join(`
|
|
2509
|
-
`),
|
|
2515
|
+
`), Wr = (e) => e + "JSON", qn = ({
|
|
2510
2516
|
builder: e,
|
|
2511
2517
|
context: t,
|
|
2512
2518
|
event: r,
|
|
@@ -2518,18 +2524,18 @@ const Zn = (e) => e.split(`
|
|
|
2518
2524
|
const p = {
|
|
2519
2525
|
...n,
|
|
2520
2526
|
...o
|
|
2521
|
-
},
|
|
2527
|
+
}, d = Kr({
|
|
2522
2528
|
builder: e,
|
|
2523
2529
|
context: t,
|
|
2524
2530
|
event: r,
|
|
2525
2531
|
state: p
|
|
2526
|
-
}), y =
|
|
2527
|
-
const H =
|
|
2532
|
+
}), y = d.map(([R]) => {
|
|
2533
|
+
const H = Wr(R);
|
|
2528
2534
|
return `var ${R} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2529
2535
|
}).join(`
|
|
2530
|
-
`), C =
|
|
2536
|
+
`), C = Qn(a);
|
|
2531
2537
|
if (C === "") {
|
|
2532
|
-
|
|
2538
|
+
$t.warn("Skipping evaluation of empty code block.");
|
|
2533
2539
|
return;
|
|
2534
2540
|
}
|
|
2535
2541
|
const I = `
|
|
@@ -2543,24 +2549,24 @@ theFunction();
|
|
|
2543
2549
|
const k = Hr(p, R, H);
|
|
2544
2550
|
s == null || s(k);
|
|
2545
2551
|
}, b = function(R, H) {
|
|
2546
|
-
|
|
2552
|
+
d.forEach(([k, q]) => {
|
|
2547
2553
|
const Je = JSON.stringify(q);
|
|
2548
|
-
R.setProperty(H,
|
|
2554
|
+
R.setProperty(H, Wr(k), Je);
|
|
2549
2555
|
}), R.setProperty(H, "setRootState", R.createNativeFunction(J));
|
|
2550
2556
|
}, O = new h(I, b);
|
|
2551
2557
|
return O.run(), O.pseudoToNative(O.value);
|
|
2552
2558
|
};
|
|
2553
|
-
function
|
|
2559
|
+
function eo() {
|
|
2554
2560
|
var e;
|
|
2555
2561
|
return typeof process != "undefined" && ot((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2556
2562
|
}
|
|
2557
|
-
const
|
|
2563
|
+
const to = () => {
|
|
2558
2564
|
var n;
|
|
2559
|
-
if (!
|
|
2565
|
+
if (!eo())
|
|
2560
2566
|
return !1;
|
|
2561
2567
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), r = (n = process.env.NODE_OPTIONS) == null ? void 0 : n.includes("--no-node-snapshot");
|
|
2562
|
-
return e && t && !r ? (
|
|
2563
|
-
},
|
|
2568
|
+
return e && t && !r ? ($t.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2569
|
+
}, ro = (e) => Dt() || to() ? Bn(e) : qn(e), ie = class ie {
|
|
2564
2570
|
static getCacheKey(t) {
|
|
2565
2571
|
return JSON.stringify({
|
|
2566
2572
|
...t,
|
|
@@ -2580,7 +2586,7 @@ const qn = () => {
|
|
|
2580
2586
|
};
|
|
2581
2587
|
Nt(ie, "cacheLimit", 20), Nt(ie, "cache", /* @__PURE__ */ new Map());
|
|
2582
2588
|
let Ce = ie;
|
|
2583
|
-
function
|
|
2589
|
+
function er({
|
|
2584
2590
|
code: e,
|
|
2585
2591
|
context: t,
|
|
2586
2592
|
localState: r,
|
|
@@ -2592,11 +2598,11 @@ function qt({
|
|
|
2592
2598
|
}) {
|
|
2593
2599
|
if (e === "")
|
|
2594
2600
|
return;
|
|
2595
|
-
const
|
|
2596
|
-
code:
|
|
2601
|
+
const d = {
|
|
2602
|
+
code: Pn(e, {
|
|
2597
2603
|
isExpression: a
|
|
2598
2604
|
}),
|
|
2599
|
-
builder:
|
|
2605
|
+
builder: Tn(),
|
|
2600
2606
|
context: t,
|
|
2601
2607
|
event: s,
|
|
2602
2608
|
rootSetState: o,
|
|
@@ -2604,25 +2610,37 @@ function qt({
|
|
|
2604
2610
|
localState: r
|
|
2605
2611
|
};
|
|
2606
2612
|
if (p) {
|
|
2607
|
-
const y = Ce.getCacheKey(
|
|
2613
|
+
const y = Ce.getCacheKey(d), C = Ce.getCachedValue(y);
|
|
2608
2614
|
if (C)
|
|
2609
2615
|
return C.value;
|
|
2610
2616
|
}
|
|
2611
2617
|
try {
|
|
2612
|
-
const y =
|
|
2618
|
+
const y = ro(d);
|
|
2613
2619
|
if (p) {
|
|
2614
|
-
const C = Ce.getCacheKey(
|
|
2620
|
+
const C = Ce.getCacheKey(d);
|
|
2615
2621
|
Ce.setCachedValue(C, y);
|
|
2616
2622
|
}
|
|
2617
2623
|
return y;
|
|
2618
2624
|
} catch (y) {
|
|
2619
|
-
|
|
2625
|
+
$t.error("Failed code evaluation: " + y.message, {
|
|
2620
2626
|
code: e
|
|
2621
2627
|
});
|
|
2622
2628
|
return;
|
|
2623
2629
|
}
|
|
2624
2630
|
}
|
|
2625
|
-
|
|
2631
|
+
function _t(e) {
|
|
2632
|
+
if (e === null || typeof e != "object")
|
|
2633
|
+
return e;
|
|
2634
|
+
if (Array.isArray(e))
|
|
2635
|
+
return e.map((r) => _t(r));
|
|
2636
|
+
if (e["@type"] === "@builder.io/sdk:Element")
|
|
2637
|
+
return e;
|
|
2638
|
+
const t = {};
|
|
2639
|
+
for (const r in e)
|
|
2640
|
+
r !== "meta" && Object.prototype.hasOwnProperty.call(e, r) && (t[r] = _t(e[r]));
|
|
2641
|
+
return t;
|
|
2642
|
+
}
|
|
2643
|
+
const no = ({
|
|
2626
2644
|
block: e,
|
|
2627
2645
|
context: t,
|
|
2628
2646
|
localState: r,
|
|
@@ -2631,29 +2649,31 @@ const to = ({
|
|
|
2631
2649
|
}) => {
|
|
2632
2650
|
if (!e.bindings)
|
|
2633
2651
|
return e;
|
|
2634
|
-
const s =
|
|
2652
|
+
const s = _t(Mn(e, "children", "meta")), a = {
|
|
2635
2653
|
...s,
|
|
2636
2654
|
properties: {
|
|
2637
2655
|
...s.properties
|
|
2638
2656
|
},
|
|
2639
2657
|
actions: {
|
|
2640
2658
|
...s.actions
|
|
2641
|
-
}
|
|
2659
|
+
},
|
|
2660
|
+
children: e.children,
|
|
2661
|
+
meta: e.meta
|
|
2642
2662
|
};
|
|
2643
2663
|
for (const p in e.bindings) {
|
|
2644
|
-
const
|
|
2645
|
-
code:
|
|
2664
|
+
const d = e.bindings[p], y = er({
|
|
2665
|
+
code: d,
|
|
2646
2666
|
localState: r,
|
|
2647
2667
|
rootState: n,
|
|
2648
2668
|
rootSetState: o,
|
|
2649
2669
|
context: t,
|
|
2650
|
-
enableCache:
|
|
2670
|
+
enableCache: typeof window == "undefined"
|
|
2651
2671
|
});
|
|
2652
2672
|
Hr(a, p, y);
|
|
2653
2673
|
}
|
|
2654
2674
|
return a;
|
|
2655
2675
|
};
|
|
2656
|
-
function
|
|
2676
|
+
function oo({
|
|
2657
2677
|
block: e,
|
|
2658
2678
|
context: t,
|
|
2659
2679
|
shouldEvaluateBindings: r,
|
|
@@ -2662,7 +2682,7 @@ function ro({
|
|
|
2662
2682
|
rootSetState: s
|
|
2663
2683
|
}) {
|
|
2664
2684
|
const a = e;
|
|
2665
|
-
return r ?
|
|
2685
|
+
return r ? no({
|
|
2666
2686
|
block: a,
|
|
2667
2687
|
localState: n,
|
|
2668
2688
|
rootState: o,
|
|
@@ -2671,16 +2691,16 @@ function ro({
|
|
|
2671
2691
|
}) : a;
|
|
2672
2692
|
}
|
|
2673
2693
|
const at = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
2674
|
-
function
|
|
2694
|
+
function io(e, t, r = {}) {
|
|
2675
2695
|
let n, o, s, a = null, p = 0;
|
|
2676
|
-
const
|
|
2696
|
+
const d = function() {
|
|
2677
2697
|
p = r.leading === !1 ? 0 : Date.now(), a = null, s = e.apply(n, o), a || (n = o = null);
|
|
2678
2698
|
};
|
|
2679
2699
|
return function() {
|
|
2680
2700
|
const y = Date.now();
|
|
2681
2701
|
!p && r.leading === !1 && (p = y);
|
|
2682
2702
|
const C = t - (y - p);
|
|
2683
|
-
return n = this, o = arguments, C <= 0 || C > t ? (a && (clearTimeout(a), a = null), p = y, s = e.apply(n, o), a || (n = o = null)) : !a && r.trailing !== !1 && (a = setTimeout(
|
|
2703
|
+
return n = this, o = arguments, C <= 0 || C > t ? (a && (clearTimeout(a), a = null), p = y, s = e.apply(n, o), a || (n = o = null)) : !a && r.trailing !== !1 && (a = setTimeout(d, C)), s;
|
|
2684
2704
|
};
|
|
2685
2705
|
}
|
|
2686
2706
|
function Ge(e, ...t) {
|
|
@@ -2693,14 +2713,14 @@ function Ge(e, ...t) {
|
|
|
2693
2713
|
}
|
|
2694
2714
|
return r;
|
|
2695
2715
|
}
|
|
2696
|
-
function
|
|
2716
|
+
function so(e) {
|
|
2697
2717
|
for (const t of e)
|
|
2698
2718
|
switch (t.trigger) {
|
|
2699
2719
|
case "pageLoad":
|
|
2700
|
-
|
|
2720
|
+
lo(t);
|
|
2701
2721
|
break;
|
|
2702
2722
|
case "scrollInView":
|
|
2703
|
-
|
|
2723
|
+
uo(t);
|
|
2704
2724
|
break;
|
|
2705
2725
|
}
|
|
2706
2726
|
}
|
|
@@ -2708,19 +2728,19 @@ function en(e) {
|
|
|
2708
2728
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2709
2729
|
}
|
|
2710
2730
|
function tn(e, t) {
|
|
2711
|
-
const r =
|
|
2731
|
+
const r = ao(e), n = getComputedStyle(t), o = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, a = [o, s];
|
|
2712
2732
|
for (const p of a)
|
|
2713
|
-
for (const
|
|
2714
|
-
|
|
2733
|
+
for (const d of r)
|
|
2734
|
+
d in p || (p[d] = n[d]);
|
|
2715
2735
|
}
|
|
2716
|
-
function
|
|
2736
|
+
function ao(e) {
|
|
2717
2737
|
const t = [];
|
|
2718
2738
|
for (const r of e.steps)
|
|
2719
2739
|
for (const n in r.styles)
|
|
2720
2740
|
t.indexOf(n) === -1 && t.push(n);
|
|
2721
2741
|
return t;
|
|
2722
2742
|
}
|
|
2723
|
-
function
|
|
2743
|
+
function lo(e) {
|
|
2724
2744
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2725
2745
|
if (!t.length) {
|
|
2726
2746
|
en(e.elementId || e.id || "");
|
|
@@ -2734,7 +2754,7 @@ function so(e) {
|
|
|
2734
2754
|
});
|
|
2735
2755
|
});
|
|
2736
2756
|
}
|
|
2737
|
-
function
|
|
2757
|
+
function uo(e) {
|
|
2738
2758
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2739
2759
|
if (!t.length) {
|
|
2740
2760
|
en(e.elementId || e.id || "");
|
|
@@ -2750,16 +2770,16 @@ function ao(e) {
|
|
|
2750
2770
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2751
2771
|
})) : e.repeat && n && !o && !p(r) && (n = !1, Ge(r.style, e.steps[0].styles));
|
|
2752
2772
|
}
|
|
2753
|
-
const a =
|
|
2773
|
+
const a = io(s, 200, {
|
|
2754
2774
|
leading: !1
|
|
2755
2775
|
});
|
|
2756
2776
|
function p(C) {
|
|
2757
2777
|
const I = C.getBoundingClientRect(), J = window.innerHeight, O = (e.thresholdPercent || 0) / 100 * J;
|
|
2758
2778
|
return I.bottom > O && I.top < J - O;
|
|
2759
2779
|
}
|
|
2760
|
-
const
|
|
2780
|
+
const d = e.steps[0].styles;
|
|
2761
2781
|
function y() {
|
|
2762
|
-
Ge(r.style,
|
|
2782
|
+
Ge(r.style, d);
|
|
2763
2783
|
}
|
|
2764
2784
|
y(), setTimeout(() => {
|
|
2765
2785
|
r.style.transition = `all ${e.duration}s ${at(e.easing)}`, e.delay && (r.style.transitionDelay = e.delay + "s");
|
|
@@ -2772,33 +2792,33 @@ function ao(e) {
|
|
|
2772
2792
|
const rn = (e) => Object.entries(e).map(([r, n]) => {
|
|
2773
2793
|
if (typeof n == "string")
|
|
2774
2794
|
return `${at(r)}: ${n};`;
|
|
2775
|
-
}).filter(ot),
|
|
2795
|
+
}).filter(ot), co = (e) => rn(e).join(`
|
|
2776
2796
|
`), nt = ({
|
|
2777
2797
|
mediaQuery: e,
|
|
2778
2798
|
className: t,
|
|
2779
2799
|
styles: r
|
|
2780
2800
|
}) => {
|
|
2781
2801
|
const n = `.${t} {
|
|
2782
|
-
${
|
|
2802
|
+
${co(r)}
|
|
2783
2803
|
}`;
|
|
2784
2804
|
return e ? `${e} {
|
|
2785
2805
|
${n}
|
|
2786
2806
|
}` : n;
|
|
2787
2807
|
};
|
|
2788
|
-
function
|
|
2808
|
+
function fo({
|
|
2789
2809
|
style: e
|
|
2790
2810
|
}) {
|
|
2791
2811
|
return e;
|
|
2792
2812
|
}
|
|
2793
|
-
const
|
|
2813
|
+
const po = ({
|
|
2794
2814
|
block: e,
|
|
2795
2815
|
context: t
|
|
2796
|
-
}) => fo(
|
|
2816
|
+
}) => ho(fo({
|
|
2797
2817
|
style: e.style || {},
|
|
2798
2818
|
context: t,
|
|
2799
2819
|
block: e
|
|
2800
2820
|
}));
|
|
2801
|
-
function
|
|
2821
|
+
function ho(e) {
|
|
2802
2822
|
switch (Xr) {
|
|
2803
2823
|
case "svelte":
|
|
2804
2824
|
case "vue":
|
|
@@ -2812,7 +2832,7 @@ function fo(e) {
|
|
|
2812
2832
|
return e;
|
|
2813
2833
|
}
|
|
2814
2834
|
}
|
|
2815
|
-
const
|
|
2835
|
+
const go = ({
|
|
2816
2836
|
block: e,
|
|
2817
2837
|
registeredComponents: t
|
|
2818
2838
|
}) => {
|
|
@@ -2826,7 +2846,7 @@ const po = ({
|
|
|
2826
2846
|
console.warn(`
|
|
2827
2847
|
Could not find a registered component named "${r}".
|
|
2828
2848
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2829
|
-
},
|
|
2849
|
+
}, yo = ({
|
|
2830
2850
|
block: e,
|
|
2831
2851
|
context: t
|
|
2832
2852
|
}) => {
|
|
@@ -2836,7 +2856,7 @@ const po = ({
|
|
|
2836
2856
|
} = e;
|
|
2837
2857
|
if (!(r != null && r.collection))
|
|
2838
2858
|
return;
|
|
2839
|
-
const o =
|
|
2859
|
+
const o = er({
|
|
2840
2860
|
code: r.collection,
|
|
2841
2861
|
localState: t.localState,
|
|
2842
2862
|
rootState: t.rootState,
|
|
@@ -2847,35 +2867,35 @@ const po = ({
|
|
|
2847
2867
|
if (!Array.isArray(o))
|
|
2848
2868
|
return;
|
|
2849
2869
|
const s = r.collection.split(".").pop(), a = r.itemName || (s ? s + "Item" : "item");
|
|
2850
|
-
return o.map((
|
|
2870
|
+
return o.map((d, y) => ({
|
|
2851
2871
|
context: {
|
|
2852
2872
|
...t,
|
|
2853
2873
|
localState: {
|
|
2854
2874
|
...t.localState,
|
|
2855
2875
|
$index: y,
|
|
2856
|
-
$item:
|
|
2857
|
-
[a]:
|
|
2876
|
+
$item: d,
|
|
2877
|
+
[a]: d,
|
|
2858
2878
|
[`$${a}Index`]: y
|
|
2859
2879
|
}
|
|
2860
2880
|
},
|
|
2861
2881
|
block: n
|
|
2862
2882
|
}));
|
|
2863
|
-
},
|
|
2883
|
+
}, vo = (e, t) => {
|
|
2864
2884
|
var r;
|
|
2865
2885
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderLinkComponent ? {
|
|
2866
2886
|
builderLinkComponent: t
|
|
2867
2887
|
} : {};
|
|
2868
|
-
},
|
|
2888
|
+
}, mo = (e, t) => {
|
|
2869
2889
|
var r;
|
|
2870
2890
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
2871
2891
|
builderComponents: t
|
|
2872
2892
|
} : {};
|
|
2873
|
-
},
|
|
2893
|
+
}, wo = (e, t) => {
|
|
2874
2894
|
var r;
|
|
2875
2895
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderBlock ? {
|
|
2876
2896
|
builderBlock: t
|
|
2877
2897
|
} : {};
|
|
2878
|
-
},
|
|
2898
|
+
}, xo = (e, t) => {
|
|
2879
2899
|
var r;
|
|
2880
2900
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderContext ? {
|
|
2881
2901
|
builderContext: t
|
|
@@ -2896,11 +2916,11 @@ const po = ({
|
|
|
2896
2916
|
default: 991,
|
|
2897
2917
|
max: 1200
|
|
2898
2918
|
}
|
|
2899
|
-
},
|
|
2919
|
+
}, $r = (e, t = nn) => `@media (max-width: ${t[e].max}px)`, So = ({
|
|
2900
2920
|
small: e,
|
|
2901
2921
|
medium: t
|
|
2902
2922
|
}) => {
|
|
2903
|
-
const r =
|
|
2923
|
+
const r = On(nn);
|
|
2904
2924
|
if (!e || !t)
|
|
2905
2925
|
return r;
|
|
2906
2926
|
const n = Math.floor(e / 2);
|
|
@@ -2923,7 +2943,7 @@ const po = ({
|
|
|
2923
2943
|
default: s + 1
|
|
2924
2944
|
}, r;
|
|
2925
2945
|
};
|
|
2926
|
-
function
|
|
2946
|
+
function ko(e) {
|
|
2927
2947
|
return /* @__PURE__ */ P(
|
|
2928
2948
|
"style",
|
|
2929
2949
|
{
|
|
@@ -2933,32 +2953,32 @@ function xo(e) {
|
|
|
2933
2953
|
}
|
|
2934
2954
|
);
|
|
2935
2955
|
}
|
|
2936
|
-
function
|
|
2956
|
+
function Eo(e) {
|
|
2937
2957
|
function t() {
|
|
2938
2958
|
const n = e.block;
|
|
2939
2959
|
return ot(n.hide) ? !n.hide : ot(n.show) ? n.show : !0;
|
|
2940
2960
|
}
|
|
2941
2961
|
function r() {
|
|
2942
2962
|
var R, H, k;
|
|
2943
|
-
const n = e.block, o = n.responsiveStyles, s = e.context.content, a =
|
|
2963
|
+
const n = e.block, o = n.responsiveStyles, s = e.context.content, a = So(
|
|
2944
2964
|
((R = s == null ? void 0 : s.meta) == null ? void 0 : R.breakpoints) || {}
|
|
2945
|
-
), p = o == null ? void 0 : o.large,
|
|
2965
|
+
), p = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, y = o == null ? void 0 : o.small, C = n.id;
|
|
2946
2966
|
if (!C)
|
|
2947
2967
|
return "";
|
|
2948
2968
|
const I = p ? nt({
|
|
2949
2969
|
className: C,
|
|
2950
2970
|
styles: p
|
|
2951
|
-
}) : "", J =
|
|
2971
|
+
}) : "", J = d ? nt({
|
|
2952
2972
|
className: C,
|
|
2953
|
-
styles:
|
|
2954
|
-
mediaQuery:
|
|
2973
|
+
styles: d,
|
|
2974
|
+
mediaQuery: $r(
|
|
2955
2975
|
"medium",
|
|
2956
2976
|
a
|
|
2957
2977
|
)
|
|
2958
2978
|
}) : "", b = y ? nt({
|
|
2959
2979
|
className: C,
|
|
2960
2980
|
styles: y,
|
|
2961
|
-
mediaQuery:
|
|
2981
|
+
mediaQuery: $r(
|
|
2962
2982
|
"small",
|
|
2963
2983
|
a
|
|
2964
2984
|
)
|
|
@@ -2985,7 +3005,7 @@ function So(e) {
|
|
|
2985
3005
|
].join(" ");
|
|
2986
3006
|
}
|
|
2987
3007
|
return /* @__PURE__ */ P(z, { children: r() && t() ? /* @__PURE__ */ P(z, { children: /* @__PURE__ */ P(
|
|
2988
|
-
|
|
3008
|
+
ko,
|
|
2989
3009
|
{
|
|
2990
3010
|
id: "builderio-block",
|
|
2991
3011
|
styles: r(),
|
|
@@ -2993,10 +3013,10 @@ function So(e) {
|
|
|
2993
3013
|
}
|
|
2994
3014
|
) }) : null });
|
|
2995
3015
|
}
|
|
2996
|
-
function
|
|
3016
|
+
function Co(e) {
|
|
2997
3017
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2998
3018
|
}
|
|
2999
|
-
const
|
|
3019
|
+
const jo = (e) => `on${Co(e)}`, Oo = (e, t) => (r) => er({
|
|
3000
3020
|
code: e,
|
|
3001
3021
|
context: t.context,
|
|
3002
3022
|
localState: t.localState,
|
|
@@ -3013,7 +3033,7 @@ function on(e) {
|
|
|
3013
3033
|
if (!r.hasOwnProperty(o))
|
|
3014
3034
|
continue;
|
|
3015
3035
|
const s = r[o];
|
|
3016
|
-
let a =
|
|
3036
|
+
let a = jo(o);
|
|
3017
3037
|
if (e.stripPrefix)
|
|
3018
3038
|
switch (Xr) {
|
|
3019
3039
|
case "vue":
|
|
@@ -3023,45 +3043,45 @@ function on(e) {
|
|
|
3023
3043
|
a = a.replace("on:", "");
|
|
3024
3044
|
break;
|
|
3025
3045
|
}
|
|
3026
|
-
t[a] =
|
|
3046
|
+
t[a] = Oo(s, e);
|
|
3027
3047
|
}
|
|
3028
3048
|
return t;
|
|
3029
3049
|
}
|
|
3030
|
-
function
|
|
3050
|
+
function Ao({
|
|
3031
3051
|
properties: e
|
|
3032
3052
|
}) {
|
|
3033
3053
|
return e;
|
|
3034
3054
|
}
|
|
3035
|
-
const
|
|
3055
|
+
const Io = (e) => ({
|
|
3036
3056
|
href: e.href
|
|
3037
3057
|
});
|
|
3038
|
-
function
|
|
3058
|
+
function tr({
|
|
3039
3059
|
block: e,
|
|
3040
3060
|
context: t
|
|
3041
3061
|
}) {
|
|
3042
3062
|
var n;
|
|
3043
3063
|
const r = {
|
|
3044
|
-
...
|
|
3064
|
+
...Io(e),
|
|
3045
3065
|
...e.properties,
|
|
3046
3066
|
"builder-id": e.id,
|
|
3047
|
-
style:
|
|
3067
|
+
style: po({
|
|
3048
3068
|
block: e,
|
|
3049
3069
|
context: t
|
|
3050
3070
|
}),
|
|
3051
|
-
[
|
|
3071
|
+
[In()]: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
3052
3072
|
};
|
|
3053
|
-
return
|
|
3073
|
+
return Ao({
|
|
3054
3074
|
properties: r,
|
|
3055
3075
|
context: t,
|
|
3056
3076
|
block: e
|
|
3057
3077
|
});
|
|
3058
3078
|
}
|
|
3059
|
-
function
|
|
3079
|
+
function bo(e) {
|
|
3060
3080
|
return /* @__PURE__ */ P(
|
|
3061
|
-
|
|
3081
|
+
bn,
|
|
3062
3082
|
{
|
|
3063
3083
|
TagName: e.Wrapper,
|
|
3064
|
-
attributes:
|
|
3084
|
+
attributes: tr({
|
|
3065
3085
|
block: e.block,
|
|
3066
3086
|
context: e.context
|
|
3067
3087
|
}),
|
|
@@ -3077,10 +3097,10 @@ function Ao(e) {
|
|
|
3077
3097
|
}
|
|
3078
3098
|
);
|
|
3079
3099
|
}
|
|
3080
|
-
function
|
|
3100
|
+
function To(e) {
|
|
3081
3101
|
function t() {
|
|
3082
3102
|
return e.includeBlockProps ? {
|
|
3083
|
-
...
|
|
3103
|
+
...tr({
|
|
3084
3104
|
block: e.block,
|
|
3085
3105
|
context: e.context
|
|
3086
3106
|
}),
|
|
@@ -3095,7 +3115,7 @@ function Io(e) {
|
|
|
3095
3115
|
}
|
|
3096
3116
|
return /* @__PURE__ */ P(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
3097
3117
|
}
|
|
3098
|
-
const
|
|
3118
|
+
const Po = ({
|
|
3099
3119
|
componentOptions: e,
|
|
3100
3120
|
builderBlock: t,
|
|
3101
3121
|
context: r,
|
|
@@ -3111,7 +3131,7 @@ const bo = ({
|
|
|
3111
3131
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3112
3132
|
*/
|
|
3113
3133
|
...o ? {
|
|
3114
|
-
attributes:
|
|
3134
|
+
attributes: tr({
|
|
3115
3135
|
block: t,
|
|
3116
3136
|
context: a
|
|
3117
3137
|
})
|
|
@@ -3125,15 +3145,15 @@ const bo = ({
|
|
|
3125
3145
|
includeBlockProps: o
|
|
3126
3146
|
} : p;
|
|
3127
3147
|
};
|
|
3128
|
-
function
|
|
3148
|
+
function Gr(e) {
|
|
3129
3149
|
var n;
|
|
3130
|
-
const [t, r] =
|
|
3131
|
-
() => e.isInteractive ?
|
|
3150
|
+
const [t, r] = Wt(
|
|
3151
|
+
() => e.isInteractive ? To : e.componentRef
|
|
3132
3152
|
);
|
|
3133
3153
|
return /* @__PURE__ */ P(z, { children: e.componentRef ? /* @__PURE__ */ P(z, { children: /* @__PURE__ */ P(
|
|
3134
3154
|
t,
|
|
3135
3155
|
{
|
|
3136
|
-
...
|
|
3156
|
+
...Po({
|
|
3137
3157
|
componentOptions: e.componentOptions,
|
|
3138
3158
|
builderBlock: e.builderBlock,
|
|
3139
3159
|
context: e.context,
|
|
@@ -3156,9 +3176,9 @@ function $r(e) {
|
|
|
3156
3176
|
}
|
|
3157
3177
|
) }) : null });
|
|
3158
3178
|
}
|
|
3159
|
-
function
|
|
3160
|
-
const [t, r] =
|
|
3161
|
-
return /* @__PURE__ */ P(
|
|
3179
|
+
function No(e) {
|
|
3180
|
+
const [t, r] = Wt(() => e.repeatContext);
|
|
3181
|
+
return /* @__PURE__ */ P(Vr.Provider, { value: t, children: /* @__PURE__ */ P(
|
|
3162
3182
|
lt,
|
|
3163
3183
|
{
|
|
3164
3184
|
block: e.block,
|
|
@@ -3171,27 +3191,27 @@ function To(e) {
|
|
|
3171
3191
|
function lt(e) {
|
|
3172
3192
|
var C, I, J;
|
|
3173
3193
|
function t() {
|
|
3174
|
-
return
|
|
3194
|
+
return go({
|
|
3175
3195
|
block: s(),
|
|
3176
3196
|
context: e.context,
|
|
3177
3197
|
registeredComponents: e.registeredComponents
|
|
3178
3198
|
});
|
|
3179
3199
|
}
|
|
3180
3200
|
function r() {
|
|
3181
|
-
return
|
|
3201
|
+
return yo({
|
|
3182
3202
|
block: e.block,
|
|
3183
3203
|
context: e.context
|
|
3184
3204
|
});
|
|
3185
3205
|
}
|
|
3186
|
-
const [n, o] =
|
|
3206
|
+
const [n, o] = Wt(() => ({
|
|
3187
3207
|
value: null,
|
|
3188
3208
|
update: !1
|
|
3189
3209
|
}));
|
|
3190
3210
|
function s() {
|
|
3191
3211
|
var O;
|
|
3192
|
-
if (n.value && !n.update && !
|
|
3212
|
+
if (n.value && !n.update && !An())
|
|
3193
3213
|
return n.value;
|
|
3194
|
-
const b = (O = e.block.repeat) != null && O.collection ? e.block :
|
|
3214
|
+
const b = (O = e.block.repeat) != null && O.collection ? e.block : oo({
|
|
3195
3215
|
block: e.block,
|
|
3196
3216
|
localState: e.context.localState,
|
|
3197
3217
|
rootState: e.context.rootState,
|
|
@@ -3212,7 +3232,7 @@ function lt(e) {
|
|
|
3212
3232
|
const b = "hide" in s() ? s().hide : !1;
|
|
3213
3233
|
return ("show" in s() ? s().show : !0) && !b;
|
|
3214
3234
|
}
|
|
3215
|
-
function
|
|
3235
|
+
function d() {
|
|
3216
3236
|
var O, D;
|
|
3217
3237
|
return !((O = t == null ? void 0 : t()) != null && O.component) && !r() ? (D = s().children) != null ? D : [] : [];
|
|
3218
3238
|
}
|
|
@@ -3222,11 +3242,11 @@ function lt(e) {
|
|
|
3222
3242
|
blockChildren: (b = s().children) != null ? b : [],
|
|
3223
3243
|
componentRef: (O = t == null ? void 0 : t()) == null ? void 0 : O.component,
|
|
3224
3244
|
componentOptions: {
|
|
3225
|
-
...
|
|
3226
|
-
...
|
|
3227
|
-
...
|
|
3228
|
-
...
|
|
3229
|
-
...
|
|
3245
|
+
...Rn(s()),
|
|
3246
|
+
...wo(t(), s()),
|
|
3247
|
+
...xo(t(), e.context),
|
|
3248
|
+
...vo(t(), e.linkComponent),
|
|
3249
|
+
...mo(
|
|
3230
3250
|
t(),
|
|
3231
3251
|
e.registeredComponents
|
|
3232
3252
|
)
|
|
@@ -3239,20 +3259,20 @@ function lt(e) {
|
|
|
3239
3259
|
isInteractive: !((R = t == null ? void 0 : t()) != null && R.isRSC)
|
|
3240
3260
|
};
|
|
3241
3261
|
}
|
|
3242
|
-
return
|
|
3262
|
+
return Mr(() => {
|
|
3243
3263
|
const b = s().id, O = s().animations;
|
|
3244
|
-
O && b &&
|
|
3264
|
+
O && b && so(
|
|
3245
3265
|
O.map((D) => ({
|
|
3246
3266
|
...D,
|
|
3247
3267
|
elementId: b
|
|
3248
3268
|
}))
|
|
3249
3269
|
);
|
|
3250
|
-
}, []),
|
|
3270
|
+
}, []), Mr(() => {
|
|
3251
3271
|
n.update = !0;
|
|
3252
3272
|
}), /* @__PURE__ */ P(z, { children: p() ? /* @__PURE__ */ Mt(z, { children: [
|
|
3253
|
-
/* @__PURE__ */ P(
|
|
3273
|
+
/* @__PURE__ */ P(Eo, { block: s(), context: e.context }),
|
|
3254
3274
|
(C = t == null ? void 0 : t()) != null && C.noWrap ? /* @__PURE__ */ P(z, { children: /* @__PURE__ */ P(
|
|
3255
|
-
|
|
3275
|
+
Gr,
|
|
3256
3276
|
{
|
|
3257
3277
|
componentRef: y().componentRef,
|
|
3258
3278
|
componentOptions: y().componentOptions,
|
|
@@ -3265,7 +3285,7 @@ function lt(e) {
|
|
|
3265
3285
|
isInteractive: y().isInteractive
|
|
3266
3286
|
}
|
|
3267
3287
|
) }) : /* @__PURE__ */ P(z, { children: r() ? /* @__PURE__ */ P(z, { children: (J = r()) == null ? void 0 : J.map((b, O) => /* @__PURE__ */ P(
|
|
3268
|
-
|
|
3288
|
+
No,
|
|
3269
3289
|
{
|
|
3270
3290
|
repeatContext: b.context,
|
|
3271
3291
|
block: b.block,
|
|
@@ -3274,14 +3294,14 @@ function lt(e) {
|
|
|
3274
3294
|
},
|
|
3275
3295
|
O
|
|
3276
3296
|
)) }) : /* @__PURE__ */ Mt(
|
|
3277
|
-
|
|
3297
|
+
bo,
|
|
3278
3298
|
{
|
|
3279
3299
|
Wrapper: a(),
|
|
3280
3300
|
block: s(),
|
|
3281
3301
|
context: e.context,
|
|
3282
3302
|
children: [
|
|
3283
3303
|
/* @__PURE__ */ P(
|
|
3284
|
-
|
|
3304
|
+
Gr,
|
|
3285
3305
|
{
|
|
3286
3306
|
componentRef: y().componentRef,
|
|
3287
3307
|
componentOptions: y().componentOptions,
|
|
@@ -3294,7 +3314,7 @@ function lt(e) {
|
|
|
3294
3314
|
isInteractive: y().isInteractive
|
|
3295
3315
|
}
|
|
3296
3316
|
),
|
|
3297
|
-
(I =
|
|
3317
|
+
(I = d()) == null ? void 0 : I.map((b) => /* @__PURE__ */ P(
|
|
3298
3318
|
lt,
|
|
3299
3319
|
{
|
|
3300
3320
|
block: b,
|
|
@@ -3309,7 +3329,7 @@ function lt(e) {
|
|
|
3309
3329
|
) })
|
|
3310
3330
|
] }) : null });
|
|
3311
3331
|
}
|
|
3312
|
-
function
|
|
3332
|
+
function Ro(e) {
|
|
3313
3333
|
function t() {
|
|
3314
3334
|
var o;
|
|
3315
3335
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -3362,11 +3382,11 @@ function Po(e) {
|
|
|
3362
3382
|
}` })
|
|
3363
3383
|
] });
|
|
3364
3384
|
}
|
|
3365
|
-
function
|
|
3385
|
+
function Mo(e) {
|
|
3366
3386
|
var n, o, s;
|
|
3367
|
-
const t =
|
|
3387
|
+
const t = Br(Vr), r = Br(Nn);
|
|
3368
3388
|
return /* @__PURE__ */ P(
|
|
3369
|
-
|
|
3389
|
+
Ro,
|
|
3370
3390
|
{
|
|
3371
3391
|
blocks: e.blocks,
|
|
3372
3392
|
parent: e.parent,
|
|
@@ -3387,19 +3407,19 @@ function No(e) {
|
|
|
3387
3407
|
}
|
|
3388
3408
|
);
|
|
3389
3409
|
}
|
|
3390
|
-
const
|
|
3410
|
+
const $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3391
3411
|
__proto__: null,
|
|
3392
|
-
default:
|
|
3412
|
+
default: Mo
|
|
3393
3413
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3394
3414
|
export {
|
|
3395
3415
|
lt as Block,
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3416
|
+
Mo as Blocks,
|
|
3417
|
+
Nn as ComponentsContext,
|
|
3418
|
+
ko as InlinedStyles,
|
|
3419
|
+
$o as blocks,
|
|
3420
|
+
er as evaluate,
|
|
3421
|
+
So as getSizesForBreakpoints,
|
|
3422
|
+
ho as mapStyleObjToStrIfNeeded,
|
|
3403
3423
|
Hr as set,
|
|
3404
|
-
|
|
3424
|
+
lo as triggerAnimation
|
|
3405
3425
|
};
|