@builder.io/sdk-react 4.0.7 → 4.0.8
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 +13 -13
- package/lib/browser/blocks-exports.mjs +613 -605
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-4c650ff5.cjs → server-entry-8ea5d047.cjs} +1 -1
- package/lib/browser/{server-entry-e70c12ff.js → server-entry-d0b98fb0.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-742ca147.js → accordion-8ef468e5.js} +1 -1
- package/lib/edge/{accordion-c97e6506.cjs → accordion-94839d7d.cjs} +1 -1
- package/lib/edge/{blocks-2a015bd6.js → blocks-548ec8c2.js} +879 -876
- package/lib/edge/{blocks-70894a53.cjs → blocks-7e8837dc.cjs} +15 -15
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-deecd9b5.js → button-09f38c2e.js} +2 -2
- package/lib/edge/{button-6a072716.cjs → button-66c37b9c.cjs} +1 -1
- package/lib/edge/{columns-0e9b2bf4.js → columns-42cbe467.js} +3 -3
- package/lib/edge/{columns-02352a9f.cjs → columns-67ded4b4.cjs} +1 -1
- package/lib/edge/{content-variants-6948115a.js → content-variants-5a4eecaf.js} +12 -12
- package/lib/edge/{content-variants-41781d1f.cjs → content-variants-cf107f82.cjs} +1 -1
- package/lib/edge/{custom-code-73f76f76.js → custom-code-cf216b27.js} +1 -1
- package/lib/edge/{custom-code-77f98605.cjs → custom-code-ea534e98.cjs} +1 -1
- package/lib/edge/{embed-26470ea1.js → embed-12b85639.js} +1 -1
- package/lib/edge/{embed-9aaf87f9.cjs → embed-7ca4af6e.cjs} +1 -1
- package/lib/edge/{form-0213200e.cjs → form-85ea06df.cjs} +1 -1
- package/lib/edge/{form-652ef8a9.js → form-f1188ad2.js} +3 -3
- package/lib/edge/{get-class-prop-name-8647a440.cjs → get-class-prop-name-316a93c9.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1a003fac.js → get-class-prop-name-90df5962.js} +1 -1
- package/lib/edge/{img-f0b9e982.cjs → img-81a7f4d7.cjs} +1 -1
- package/lib/edge/{img-2d35513d.js → img-ee2838af.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-e61cf32f.cjs → input-231ec63f.cjs} +1 -1
- package/lib/edge/{input-cdd96bc7.js → input-b8907c7d.js} +1 -1
- package/lib/edge/{personalization-container-e1f03976.js → personalization-container-896a298a.js} +4 -4
- package/lib/edge/{personalization-container-4f73fbdf.cjs → personalization-container-95cba946.cjs} +1 -1
- package/lib/edge/{select-f1165866.cjs → select-b1650a75.cjs} +1 -1
- package/lib/edge/{select-de96bdc0.js → select-ffee7a69.js} +1 -1
- package/lib/edge/{server-entry-10ca8502.cjs → server-entry-1b560ddb.cjs} +1 -1
- package/lib/edge/{server-entry-637ed5ff.js → server-entry-e9974799.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-3ecf31d9.cjs → slot-ddddba8d.cjs} +1 -1
- package/lib/edge/{slot-72846242.js → slot-fe93ec42.js} +3 -3
- package/lib/edge/symbol-c266ba83.js +90 -0
- package/lib/edge/symbol-d9175a66.cjs +1 -0
- package/lib/edge/{tabs-ea0258b8.js → tabs-3481a6f6.js} +3 -3
- package/lib/edge/{tabs-788974d9.cjs → tabs-f76f757a.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +17 -17
- package/lib/node/blocks-exports.mjs +426 -418
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-e76904a8.cjs → server-entry-03fc1c6d.cjs} +1 -1
- package/lib/node/{server-entry-7167da7c.js → server-entry-2b91f2d9.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-e89d1a08.cjs → setIvm-26e766c5.cjs} +1 -1
- package/lib/node/{setIvm-72c91afa.js → setIvm-419a94e0.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-09a401d5.js → should-force-browser-runtime-in-node-67506521.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-b3e23348.cjs → should-force-browser-runtime-in-node-fe3d9cb0.cjs} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/symbol-49ed2192.cjs +0 -1
- package/lib/edge/symbol-61a3651b.js +0 -85
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as T, Fragment as J, jsxs as Ut } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as Cn, useEffect as
|
|
2
|
+
import { createContext as Cn, useEffect as pe, useState as Ce, useRef as On, useContext as Mr } from "react";
|
|
3
3
|
import { BuilderContext as Xr } from "./blocks-exports.mjs";
|
|
4
|
-
import { isEditing as Lt, isBrowser as Ft, getUserAttributes as jn, checkIsDefined as it, logger as Hr, TARGET as at, isPreviewing as An } from "./server-entry-
|
|
5
|
-
import { getClassPropName as In } from "./get-class-prop-name-
|
|
4
|
+
import { isEditing as Lt, isBrowser as Ft, getUserAttributes as jn, checkIsDefined as it, logger as Hr, TARGET as at, isPreviewing as An } from "./server-entry-e9974799.js";
|
|
5
|
+
import { getClassPropName as In } from "./get-class-prop-name-90df5962.js";
|
|
6
6
|
import { DynamicRenderer as Tn } from "./dynamic-renderer-8b343325.js";
|
|
7
|
-
const Pn = Cn({ registeredComponents: {} }), bn = (e, t,
|
|
8
|
-
const
|
|
9
|
-
return
|
|
7
|
+
const Pn = Cn({ registeredComponents: {} }), bn = (e, t, n) => {
|
|
8
|
+
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, s) => o != null ? o[s] : o, e);
|
|
9
|
+
return r === void 0 || r === e ? n : r;
|
|
10
10
|
}, Jr = ({
|
|
11
11
|
builder: e,
|
|
12
12
|
context: t,
|
|
13
|
-
event:
|
|
14
|
-
state:
|
|
13
|
+
event: n,
|
|
14
|
+
state: r
|
|
15
15
|
}) => Object.entries({
|
|
16
|
-
state:
|
|
16
|
+
state: r,
|
|
17
17
|
Builder: e,
|
|
18
18
|
// legacy
|
|
19
19
|
builder: e,
|
|
20
20
|
context: t,
|
|
21
|
-
event:
|
|
21
|
+
event: n
|
|
22
22
|
}), Nn = () => ({
|
|
23
23
|
isEditing: Lt(),
|
|
24
24
|
isBrowser: Ft(),
|
|
@@ -30,41 +30,41 @@ const Pn = Cn({ registeredComponents: {} }), bn = (e, t, r) => {
|
|
|
30
30
|
function Xt({
|
|
31
31
|
rootState: e,
|
|
32
32
|
localState: t,
|
|
33
|
-
rootSetState:
|
|
33
|
+
rootSetState: n
|
|
34
34
|
}) {
|
|
35
35
|
return new Proxy(e, {
|
|
36
|
-
get: (
|
|
36
|
+
get: (r, o) => {
|
|
37
37
|
if (t && o in t)
|
|
38
38
|
return t[o];
|
|
39
|
-
const s =
|
|
39
|
+
const s = r[o];
|
|
40
40
|
return typeof s == "object" && s !== null ? Xt({
|
|
41
41
|
rootState: s,
|
|
42
42
|
localState: void 0,
|
|
43
|
-
rootSetState:
|
|
44
|
-
|
|
43
|
+
rootSetState: n ? (a) => {
|
|
44
|
+
r[o] = a, n(r);
|
|
45
45
|
} : void 0
|
|
46
46
|
}) : s;
|
|
47
47
|
},
|
|
48
|
-
set: (
|
|
48
|
+
set: (r, o, s) => {
|
|
49
49
|
if (t && o in t)
|
|
50
50
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
51
|
-
return
|
|
51
|
+
return r[o] = s, n == null || n(r), !0;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
const Bn = ({
|
|
56
56
|
code: e,
|
|
57
57
|
builder: t,
|
|
58
|
-
context:
|
|
59
|
-
event:
|
|
58
|
+
context: n,
|
|
59
|
+
event: r,
|
|
60
60
|
localState: o,
|
|
61
61
|
rootSetState: s,
|
|
62
62
|
rootState: a
|
|
63
63
|
}) => {
|
|
64
64
|
const f = Jr({
|
|
65
65
|
builder: t,
|
|
66
|
-
context:
|
|
67
|
-
event:
|
|
66
|
+
context: n,
|
|
67
|
+
event: r,
|
|
68
68
|
state: Xt({
|
|
69
69
|
rootState: a,
|
|
70
70
|
localState: o,
|
|
@@ -77,10 +77,10 @@ var b, Mn = function(e) {
|
|
|
77
77
|
function t(i) {
|
|
78
78
|
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && En.test(String.fromCharCode(i));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function n(i) {
|
|
81
81
|
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Br.test(String.fromCharCode(i));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function r(i, l) {
|
|
84
84
|
for (var u = g, p = 1, E = 0; ; ) {
|
|
85
85
|
ot.lastIndex = E;
|
|
86
86
|
var L = ot.exec(u);
|
|
@@ -103,10 +103,10 @@ var b, Mn = function(e) {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
function s() {
|
|
106
|
-
this.line =
|
|
106
|
+
this.line = ge, this.ab = c - re;
|
|
107
107
|
}
|
|
108
108
|
function a(i, l) {
|
|
109
|
-
ve = c, C.C && (Et = new s()), S = i, d(), Y = l,
|
|
109
|
+
ve = c, C.C && (Et = new s()), S = i, d(), Y = l, Re = i.m;
|
|
110
110
|
}
|
|
111
111
|
function f() {
|
|
112
112
|
for (var i = c, l = C.va && C.C && new s(), u = g.charCodeAt(c += 2); c < me && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
@@ -119,18 +119,18 @@ var b, Mn = function(e) {
|
|
|
119
119
|
if (i === 32)
|
|
120
120
|
++c;
|
|
121
121
|
else if (i === 13)
|
|
122
|
-
++c, i = g.charCodeAt(c), i === 10 && ++c, C.C && (++
|
|
122
|
+
++c, i = g.charCodeAt(c), i === 10 && ++c, C.C && (++ge, re = c);
|
|
123
123
|
else if (i === 10 || i === 8232 || i === 8233)
|
|
124
|
-
++c, C.C && (++
|
|
124
|
+
++c, C.C && (++ge, re = c);
|
|
125
125
|
else if (8 < i && 14 > i)
|
|
126
126
|
++c;
|
|
127
127
|
else if (i === 47)
|
|
128
128
|
if (i = g.charCodeAt(c + 1), i === 42) {
|
|
129
129
|
i = void 0;
|
|
130
130
|
var l = C.va && C.C && new s(), u = c, p = g.indexOf("*/", c += 2);
|
|
131
|
-
if (p === -1 &&
|
|
131
|
+
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, C.C)
|
|
132
132
|
for (ot.lastIndex = u; (i = ot.exec(g)) && i.index < c; )
|
|
133
|
-
++
|
|
133
|
+
++ge, re = i.index + i[0].length;
|
|
134
134
|
C.va && C.va(!0, g.slice(u + 2, p), u, c, l, C.C && new s());
|
|
135
135
|
} else if (i === 47)
|
|
136
136
|
f();
|
|
@@ -162,16 +162,16 @@ var b, Mn = function(e) {
|
|
|
162
162
|
case 93:
|
|
163
163
|
return ++c, a(Rt);
|
|
164
164
|
case 123:
|
|
165
|
-
return ++c, a(
|
|
165
|
+
return ++c, a(De);
|
|
166
166
|
case 125:
|
|
167
167
|
return ++c, a(xe);
|
|
168
168
|
case 58:
|
|
169
|
-
return ++c, a(
|
|
169
|
+
return ++c, a(_e);
|
|
170
170
|
case 63:
|
|
171
171
|
return ++c, a(Ar);
|
|
172
172
|
case 48:
|
|
173
173
|
if (i = g.charCodeAt(c + 1), i === 120 || i === 88) {
|
|
174
|
-
c += 2, i = V(16), i === null &&
|
|
174
|
+
c += 2, i = V(16), i === null && r(U + 2, "Expected hexadecimal number"), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), a(Me, i);
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
177
|
case 49:
|
|
@@ -188,7 +188,7 @@ var b, Mn = function(e) {
|
|
|
188
188
|
case 39:
|
|
189
189
|
c++;
|
|
190
190
|
for (var l = ""; ; ) {
|
|
191
|
-
c >= me &&
|
|
191
|
+
c >= me && r(U, "Unterminated string constant");
|
|
192
192
|
var u = g.charCodeAt(c);
|
|
193
193
|
if (u === i) {
|
|
194
194
|
++c, a(et, l);
|
|
@@ -200,7 +200,7 @@ var b, Mn = function(e) {
|
|
|
200
200
|
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
201
201
|
p = p.slice(0, -1);
|
|
202
202
|
if (p === "0" && (p = null), ++c, p)
|
|
203
|
-
z &&
|
|
203
|
+
z && r(c - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), c += p.length - 1;
|
|
204
204
|
else
|
|
205
205
|
switch (u) {
|
|
206
206
|
case 110:
|
|
@@ -237,36 +237,36 @@ var b, Mn = function(e) {
|
|
|
237
237
|
case 13:
|
|
238
238
|
g.charCodeAt(c) === 10 && ++c;
|
|
239
239
|
case 10:
|
|
240
|
-
C.C && (re = c, ++
|
|
240
|
+
C.C && (re = c, ++ge);
|
|
241
241
|
break;
|
|
242
242
|
default:
|
|
243
243
|
l += String.fromCharCode(u);
|
|
244
244
|
}
|
|
245
245
|
} else
|
|
246
|
-
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 ||
|
|
246
|
+
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(U, "Unterminated string constant"), l += String.fromCharCode(u), ++c;
|
|
247
247
|
}
|
|
248
248
|
return;
|
|
249
249
|
case 47:
|
|
250
|
-
i = g.charCodeAt(c + 1),
|
|
250
|
+
i = g.charCodeAt(c + 1), Re ? (++c, W()) : i === 61 ? A(ye, 2) : A(Ir, 1);
|
|
251
251
|
return;
|
|
252
252
|
case 37:
|
|
253
253
|
case 42:
|
|
254
|
-
g.charCodeAt(c + 1) === 61 ? A(
|
|
254
|
+
g.charCodeAt(c + 1) === 61 ? A(ye, 2) : A(vn, 1);
|
|
255
255
|
return;
|
|
256
256
|
case 124:
|
|
257
257
|
case 38:
|
|
258
|
-
l = g.charCodeAt(c + 1), l === i ? A(i === 124 ? br : Nr, 2) : l === 61 ? A(
|
|
258
|
+
l = g.charCodeAt(c + 1), l === i ? A(i === 124 ? br : Nr, 2) : l === 61 ? A(ye, 2) : A(i === 124 ? fn : hn, 1);
|
|
259
259
|
return;
|
|
260
260
|
case 94:
|
|
261
|
-
g.charCodeAt(c + 1) === 61 ? A(
|
|
261
|
+
g.charCodeAt(c + 1) === 61 ? A(ye, 2) : A(pn, 1);
|
|
262
262
|
return;
|
|
263
263
|
case 43:
|
|
264
264
|
case 45:
|
|
265
|
-
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 && nt.test(g.slice(ce, c)) ? (c += 3, f(), d(), I()) : A(cn, 2) : l === 61 ? A(
|
|
265
|
+
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 && nt.test(g.slice(ce, c)) ? (c += 3, f(), d(), I()) : A(cn, 2) : l === 61 ? A(ye, 2) : A(mn, 1);
|
|
266
266
|
return;
|
|
267
267
|
case 60:
|
|
268
268
|
case 62:
|
|
269
|
-
l = g.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + u) === 61 ? A(
|
|
269
|
+
l = g.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + u) === 61 ? A(ye, u + 1) : A(yn, u)) : l === 33 && i === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, f(), d(), I()) : (l === 61 && (u = g.charCodeAt(c + 2) === 61 ? 3 : 2), A(gn, u));
|
|
270
270
|
return;
|
|
271
271
|
case 61:
|
|
272
272
|
case 33:
|
|
@@ -282,12 +282,12 @@ var b, Mn = function(e) {
|
|
|
282
282
|
return W();
|
|
283
283
|
if (c >= me)
|
|
284
284
|
return a(Ot);
|
|
285
|
-
if (i = g.charCodeAt(c),
|
|
285
|
+
if (i = g.charCodeAt(c), n(i) || i === 92)
|
|
286
286
|
return _();
|
|
287
287
|
if (v(i) === !1) {
|
|
288
288
|
if (i = String.fromCharCode(i), i === "\\" || Br.test(i))
|
|
289
289
|
return _();
|
|
290
|
-
|
|
290
|
+
r(c, "Unexpected character '" + i + "'");
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
function A(i, l) {
|
|
@@ -296,9 +296,9 @@ var b, Mn = function(e) {
|
|
|
296
296
|
}
|
|
297
297
|
function W() {
|
|
298
298
|
for (var i, l, u = c; ; ) {
|
|
299
|
-
c >= me &&
|
|
299
|
+
c >= me && r(u, "Unterminated regexp");
|
|
300
300
|
var p = g.charAt(c);
|
|
301
|
-
if (nt.test(p) &&
|
|
301
|
+
if (nt.test(p) && r(u, "Unterminated regexp"), i)
|
|
302
302
|
i = !1;
|
|
303
303
|
else {
|
|
304
304
|
if (p === "[")
|
|
@@ -311,11 +311,11 @@ var b, Mn = function(e) {
|
|
|
311
311
|
}
|
|
312
312
|
++c;
|
|
313
313
|
}
|
|
314
|
-
i = g.slice(u, c), ++c, (l = R()) && !/^[gmi]*$/.test(l) &&
|
|
314
|
+
i = g.slice(u, c), ++c, (l = R()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
315
315
|
try {
|
|
316
316
|
var E = new RegExp(i, l);
|
|
317
317
|
} catch (L) {
|
|
318
|
-
throw L instanceof SyntaxError &&
|
|
318
|
+
throw L instanceof SyntaxError && r(u, L.message), L;
|
|
319
319
|
}
|
|
320
320
|
a(ar, E);
|
|
321
321
|
}
|
|
@@ -330,12 +330,12 @@ var b, Mn = function(e) {
|
|
|
330
330
|
}
|
|
331
331
|
function P(i) {
|
|
332
332
|
var l = c, u = !1, p = g.charCodeAt(c) === 48;
|
|
333
|
-
i || V(10) !== null ||
|
|
333
|
+
i || V(10) !== null || r(l, "Invalid number"), g.charCodeAt(c) === 46 && (++c, V(10), u = !0), i = g.charCodeAt(c), (i === 69 || i === 101) && (i = g.charCodeAt(++c), i !== 43 && i !== 45 || ++c, V(10) === null && r(l, "Invalid number"), u = !0), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), i = g.slice(l, c);
|
|
334
334
|
var E;
|
|
335
|
-
u ? E = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || z ?
|
|
335
|
+
u ? E = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || z ? r(l, "Invalid number") : E = parseInt(i, 8) : E = parseInt(i, 10), a(Me, E);
|
|
336
336
|
}
|
|
337
337
|
function O(i) {
|
|
338
|
-
return i = V(16, i), i === null &&
|
|
338
|
+
return i = V(16, i), i === null && r(U, "Bad character escape sequence"), i;
|
|
339
339
|
}
|
|
340
340
|
function R() {
|
|
341
341
|
Se = !1;
|
|
@@ -344,9 +344,9 @@ var b, Mn = function(e) {
|
|
|
344
344
|
if (t(p))
|
|
345
345
|
Se && (i += g.charAt(c)), ++c;
|
|
346
346
|
else if (p === 92) {
|
|
347
|
-
Se || (i = g.slice(u, c)), Se = !0, g.charCodeAt(++c) !== 117 &&
|
|
347
|
+
Se || (i = g.slice(u, c)), Se = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = O(4);
|
|
348
348
|
var E = String.fromCharCode(p);
|
|
349
|
-
E ||
|
|
349
|
+
E || r(c - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), i += E;
|
|
350
350
|
} else
|
|
351
351
|
break;
|
|
352
352
|
l = !1;
|
|
@@ -364,22 +364,22 @@ var b, Mn = function(e) {
|
|
|
364
364
|
if (z = i, c = U, C.C)
|
|
365
365
|
for (; c < re; )
|
|
366
366
|
re = g.lastIndexOf(`
|
|
367
|
-
`, re - 2) + 1, --
|
|
367
|
+
`, re - 2) + 1, --ge;
|
|
368
368
|
d(), I();
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ie() {
|
|
371
371
|
this.type = null, this.start = U, this.end = null;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Te() {
|
|
374
374
|
this.start = St, this.end = null, xt && (this.source = xt);
|
|
375
375
|
}
|
|
376
376
|
function B() {
|
|
377
|
-
var i = new
|
|
378
|
-
return C.C && (i.X = new
|
|
377
|
+
var i = new Ie();
|
|
378
|
+
return C.C && (i.X = new Te()), C.vb && (i.sourceFile = C.vb), C.Xa && (i.j = [U, 0]), i;
|
|
379
379
|
}
|
|
380
380
|
function Z(i) {
|
|
381
|
-
var l = new
|
|
382
|
-
return l.start = i.start, C.C && (l.X = new
|
|
381
|
+
var l = new Ie();
|
|
382
|
+
return l.start = i.start, C.C && (l.X = new Te(), l.X.start = i.X.start), C.Xa && (l.j = [i.j[0], 0]), l;
|
|
383
383
|
}
|
|
384
384
|
function x(i, l) {
|
|
385
385
|
return i.type = l, i.end = ce, C.C && (i.X.end = Ct), C.Xa && (i.j[1] = ce), i;
|
|
@@ -393,83 +393,83 @@ var b, Mn = function(e) {
|
|
|
393
393
|
function Ze() {
|
|
394
394
|
return !C.fc && (S === Ot || S === xe || nt.test(g.slice(ce, U)));
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function de() {
|
|
397
397
|
N(oe) || Ze() || ee();
|
|
398
398
|
}
|
|
399
399
|
function M(i) {
|
|
400
400
|
S === i ? k() : ee();
|
|
401
401
|
}
|
|
402
402
|
function ee() {
|
|
403
|
-
|
|
403
|
+
r(U, "Unexpected token");
|
|
404
404
|
}
|
|
405
405
|
function Qe(i) {
|
|
406
|
-
i.type !== "Identifier" && i.type !== "MemberExpression" &&
|
|
406
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), z && i.type === "Identifier" && rt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
407
407
|
}
|
|
408
408
|
function Q() {
|
|
409
|
-
(S === Ir || S ===
|
|
409
|
+
(S === Ir || S === ye && Y === "/=") && I(!0);
|
|
410
410
|
var i = S, l = B();
|
|
411
411
|
switch (i) {
|
|
412
412
|
case jt:
|
|
413
413
|
case ur:
|
|
414
414
|
k();
|
|
415
415
|
var u = i === jt;
|
|
416
|
-
N(oe) || Ze() ? l.label = null : S !== we ? ee() : (l.label = te(),
|
|
416
|
+
N(oe) || Ze() ? l.label = null : S !== we ? ee() : (l.label = te(), de());
|
|
417
417
|
for (var p = 0; p < D.length; ++p) {
|
|
418
418
|
var E = D[p];
|
|
419
419
|
if ((l.label === null || E.name === l.label.name) && (E.kind !== null && (u || E.kind === "loop") || l.label && u))
|
|
420
420
|
break;
|
|
421
421
|
}
|
|
422
|
-
return p === D.length &&
|
|
422
|
+
return p === D.length && r(l.start, "Unsyntactic " + i.l), x(l, u ? "BreakStatement" : "ContinueStatement");
|
|
423
423
|
case cr:
|
|
424
|
-
return k(),
|
|
424
|
+
return k(), de(), x(l, "DebuggerStatement");
|
|
425
425
|
case pr:
|
|
426
|
-
return k(), D.push(Bt), l.body = Q(), D.pop(), M(bt), l.test =
|
|
426
|
+
return k(), D.push(Bt), l.body = Q(), D.pop(), M(bt), l.test = Pe(), de(), x(l, "DoWhileStatement");
|
|
427
427
|
case gr:
|
|
428
428
|
return k(), D.push(Bt), M(ne), S === oe ? dt(l, null) : S === Pt ? (i = B(), k(), ir(i, !0), x(i, "VariableDeclaration"), i.fa.length === 1 && N(tt) ? or(l, i) : dt(l, i)) : (i = $(!1, !0), N(tt) ? (Qe(i), or(l, i)) : dt(l, i));
|
|
429
429
|
case It:
|
|
430
430
|
return k(), vt(l, !0);
|
|
431
431
|
case yr:
|
|
432
|
-
return k(), l.test =
|
|
432
|
+
return k(), l.test = Pe(), l.da = Q(), l.alternate = N(hr) ? Q() : null, x(l, "IfStatement");
|
|
433
433
|
case mr:
|
|
434
|
-
return
|
|
434
|
+
return Be || C.Ib || r(U, "'return' outside of function"), k(), N(oe) || Ze() ? l.K = null : (l.K = $(), de()), x(l, "ReturnStatement");
|
|
435
435
|
case Tt:
|
|
436
|
-
for (k(), l.Qb =
|
|
437
|
-
S === At || S === fr ? (i = S === At, p && x(p, "SwitchCase"), l.tb.push(p = B()), p.da = [], k(), i ? p.test = $() : (u &&
|
|
436
|
+
for (k(), l.Qb = Pe(), l.tb = [], M(De), D.push(kn); S !== xe; )
|
|
437
|
+
S === At || S === fr ? (i = S === At, p && x(p, "SwitchCase"), l.tb.push(p = B()), p.da = [], k(), i ? p.test = $() : (u && r(kt, "Multiple default clauses"), u = !0, p.test = null), M(_e)) : (p || ee(), p.da.push(Q()));
|
|
438
438
|
return p && x(p, "SwitchCase"), k(), D.pop(), x(l, "SwitchStatement");
|
|
439
439
|
case vr:
|
|
440
|
-
return k(), nt.test(g.slice(ce, U)) &&
|
|
440
|
+
return k(), nt.test(g.slice(ce, U)) && r(ce, "Illegal newline after throw"), l.K = $(), de(), x(l, "ThrowStatement");
|
|
441
441
|
case wr:
|
|
442
|
-
return k(), l.block =
|
|
442
|
+
return k(), l.block = be(), l.Ea = null, S === lr && (i = B(), k(), M(ne), i.Ua = te(), z && rt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(q), i.body = be(), l.Ea = x(i, "CatchClause")), l.fb = N(dr) ? be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
443
443
|
case Pt:
|
|
444
|
-
return k(), ir(l),
|
|
444
|
+
return k(), ir(l), de(), x(l, "VariableDeclaration");
|
|
445
445
|
case bt:
|
|
446
|
-
return k(), l.test =
|
|
446
|
+
return k(), l.test = Pe(), D.push(Bt), l.body = Q(), D.pop(), x(l, "WhileStatement");
|
|
447
447
|
case xr:
|
|
448
|
-
return z &&
|
|
449
|
-
case
|
|
450
|
-
return
|
|
448
|
+
return z && r(U, "'with' in strict mode"), k(), l.object = Pe(), l.body = Q(), x(l, "WithStatement");
|
|
449
|
+
case De:
|
|
450
|
+
return be();
|
|
451
451
|
case oe:
|
|
452
452
|
return k(), x(l, "EmptyStatement");
|
|
453
453
|
default:
|
|
454
|
-
if (u = Y, E = $(), i === we && E.type === "Identifier" && N(
|
|
454
|
+
if (u = Y, E = $(), i === we && E.type === "Identifier" && N(_e)) {
|
|
455
455
|
for (p = 0; p < D.length; ++p)
|
|
456
|
-
D[p].name === u &&
|
|
456
|
+
D[p].name === u && r(E.start, "Label '" + u + "' is already declared");
|
|
457
457
|
return D.push({
|
|
458
458
|
name: u,
|
|
459
459
|
kind: S.W ? "loop" : S === Tt ? "switch" : null
|
|
460
460
|
}), l.body = Q(), D.pop(), l.label = E, x(l, "LabeledStatement");
|
|
461
461
|
}
|
|
462
|
-
return l.la = E,
|
|
462
|
+
return l.la = E, de(), x(l, "ExpressionStatement");
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Pe() {
|
|
466
466
|
M(ne);
|
|
467
467
|
var i = $();
|
|
468
468
|
return M(q), i;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function be(i) {
|
|
471
471
|
var l = B(), u = !0, p = !1;
|
|
472
|
-
for (l.body = [], M(
|
|
472
|
+
for (l.body = [], M(De); !N(xe); ) {
|
|
473
473
|
var E = Q();
|
|
474
474
|
if (l.body.push(E), u && i && ht(E)) {
|
|
475
475
|
var L = p;
|
|
@@ -488,7 +488,7 @@ var b, Mn = function(e) {
|
|
|
488
488
|
function ir(i, l) {
|
|
489
489
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
490
490
|
var u = B();
|
|
491
|
-
if (u.id = te(), z && rt(u.id.name) &&
|
|
491
|
+
if (u.id = te(), z && rt(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = N(Tr) ? $(!0, l) : null, i.fa.push(x(u, "VariableDeclarator")), !N(fe))
|
|
492
492
|
break;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
@@ -505,7 +505,7 @@ var b, Mn = function(e) {
|
|
|
505
505
|
var l = yt(mt(), -1, i);
|
|
506
506
|
if (N(Ar)) {
|
|
507
507
|
var u = Z(l);
|
|
508
|
-
u.test = l, u.da = $(!0), M(
|
|
508
|
+
u.test = l, u.da = $(!0), M(_e), u.alternate = $(!0, i), l = x(u, "ConditionalExpression");
|
|
509
509
|
}
|
|
510
510
|
return S.Cb ? (u = Z(l), u.operator = Y, u.left = l, k(), u.right = gt(i), Qe(l), x(u, "AssignmentExpression")) : l;
|
|
511
511
|
}
|
|
@@ -520,18 +520,18 @@ var b, Mn = function(e) {
|
|
|
520
520
|
function mt() {
|
|
521
521
|
if (S.prefix) {
|
|
522
522
|
var i = B(), l = S.$b;
|
|
523
|
-
return i.operator = Y,
|
|
523
|
+
return i.operator = Y, Re = i.prefix = !0, k(), i.K = mt(), l ? Qe(i.K) : z && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), x(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
524
524
|
}
|
|
525
|
-
for (l =
|
|
525
|
+
for (l = Ne(qe()); S.cc && !Ze(); )
|
|
526
526
|
i = Z(l), i.operator = Y, i.prefix = !1, i.K = l, Qe(l), k(), l = x(i, "UpdateExpression");
|
|
527
527
|
return l;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Ne(i, l) {
|
|
530
530
|
if (N(jr)) {
|
|
531
531
|
var u = Z(i);
|
|
532
|
-
return u.object = i, u.Wa = te(!0), u.bb = !1,
|
|
532
|
+
return u.object = i, u.Wa = te(!0), u.bb = !1, Ne(x(u, "MemberExpression"), l);
|
|
533
533
|
}
|
|
534
|
-
return N(Nt) ? (u = Z(i), u.object = i, u.Wa = $(), u.bb = !0, M(Rt),
|
|
534
|
+
return N(Nt) ? (u = Z(i), u.object = i, u.Wa = $(), u.bb = !0, M(Rt), Ne(x(u, "MemberExpression"), l)) : !l && N(ne) ? (u = Z(i), u.callee = i, u.arguments = wt(q, !1), Ne(x(u, "CallExpression"), l)) : i;
|
|
535
535
|
}
|
|
536
536
|
function qe() {
|
|
537
537
|
switch (S) {
|
|
@@ -540,7 +540,7 @@ var b, Mn = function(e) {
|
|
|
540
540
|
return k(), x(i, "ThisExpression");
|
|
541
541
|
case we:
|
|
542
542
|
return te();
|
|
543
|
-
case
|
|
543
|
+
case Me:
|
|
544
544
|
case et:
|
|
545
545
|
case ar:
|
|
546
546
|
return i = B(), i.value = Y, i.raw = g.slice(U, ve), k(), x(i, "Literal");
|
|
@@ -556,26 +556,26 @@ var b, Mn = function(e) {
|
|
|
556
556
|
return u.start = l, u.end = ve, C.C && (u.X.start = i, u.X.end = Et), C.Xa && (u.j = [l, ve]), M(q), u;
|
|
557
557
|
case Nt:
|
|
558
558
|
return i = B(), k(), i.elements = wt(Rt, !0, !0), x(i, "ArrayExpression");
|
|
559
|
-
case
|
|
559
|
+
case De:
|
|
560
560
|
for (i = B(), l = !0, u = !1, i.h = [], k(); !N(xe); ) {
|
|
561
561
|
if (l)
|
|
562
562
|
l = !1;
|
|
563
563
|
else if (M(fe), C.sb && N(xe))
|
|
564
564
|
break;
|
|
565
565
|
var p = {
|
|
566
|
-
key: S ===
|
|
566
|
+
key: S === Me || S === et ? qe() : te(!0)
|
|
567
567
|
}, E = !1;
|
|
568
|
-
if (N(
|
|
568
|
+
if (N(_e)) {
|
|
569
569
|
p.value = $(!0);
|
|
570
570
|
var L = p.kind = "init";
|
|
571
571
|
} else
|
|
572
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (E = u = !0, L = p.kind = p.key.name, p.key = S ===
|
|
572
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (E = u = !0, L = p.kind = p.key.name, p.key = S === Me || S === et ? qe() : te(!0), S !== ne && ee(), p.value = vt(B(), !1));
|
|
573
573
|
if (p.key.type === "Identifier" && (z || u))
|
|
574
574
|
for (var X = 0; X < i.h.length; ++X) {
|
|
575
575
|
var Ee = i.h[X];
|
|
576
576
|
if (Ee.key.name === p.key.name) {
|
|
577
577
|
var Mt = L === Ee.kind || E && Ee.kind === "init" || L === "init" && (Ee.kind === "get" || Ee.kind === "set");
|
|
578
|
-
Mt && !z && L === "init" && Ee.kind === "init" && (Mt = !1), Mt &&
|
|
578
|
+
Mt && !z && L === "init" && Ee.kind === "init" && (Mt = !1), Mt && r(p.key.start, "Redefinition of property");
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
i.h.push(p);
|
|
@@ -584,7 +584,7 @@ var b, Mn = function(e) {
|
|
|
584
584
|
case It:
|
|
585
585
|
return i = B(), k(), vt(i, !1);
|
|
586
586
|
case Sr:
|
|
587
|
-
return i = B(), k(), i.callee =
|
|
587
|
+
return i = B(), k(), i.callee = Ne(qe(), !0), i.arguments = N(ne) ? wt(q, !1) : ln, x(i, "NewExpression");
|
|
588
588
|
}
|
|
589
589
|
ee();
|
|
590
590
|
}
|
|
@@ -593,13 +593,13 @@ var b, Mn = function(e) {
|
|
|
593
593
|
var u = !0;
|
|
594
594
|
for (M(ne); !N(q); )
|
|
595
595
|
u ? u = !1 : M(fe), i.oa.push(te());
|
|
596
|
-
u =
|
|
596
|
+
u = Be;
|
|
597
597
|
var p = D;
|
|
598
|
-
if (
|
|
598
|
+
if (Be = !0, D = [], i.body = be(!0), Be = u, D = p, z || i.body.body.length && ht(i.body.body[0])) {
|
|
599
599
|
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
600
|
-
if (p = 0 > u ? i.id : i.oa[u], (Rr(p.name) || rt(p.name)) &&
|
|
600
|
+
if (p = 0 > u ? i.id : i.oa[u], (Rr(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
|
|
601
601
|
for (var E = 0; E < u; ++E)
|
|
602
|
-
p.name === i.oa[E].name &&
|
|
602
|
+
p.name === i.oa[E].name && r(p.start, "Argument name clash in strict mode");
|
|
603
603
|
}
|
|
604
604
|
return x(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
605
605
|
}
|
|
@@ -615,7 +615,7 @@ var b, Mn = function(e) {
|
|
|
615
615
|
}
|
|
616
616
|
function te(i) {
|
|
617
617
|
var l = B();
|
|
618
|
-
return i && C.yb === "everywhere" && (i = !1), S === we ? (!i && (C.yb && wn(Y) || z && Rr(Y)) && g.slice(U, ve).indexOf("\\") === -1 &&
|
|
618
|
+
return i && C.yb === "everywhere" && (i = !1), S === we ? (!i && (C.yb && wn(Y) || z && Rr(Y)) && g.slice(U, ve).indexOf("\\") === -1 && r(U, "The keyword '" + Y + "' is reserved"), l.name = Y) : i && S.l ? l.name = S.l : ee(), Re = !1, k(), x(l, "Identifier");
|
|
619
619
|
}
|
|
620
620
|
e.version = "0.5.0";
|
|
621
621
|
var C, g = "", me, xt;
|
|
@@ -623,7 +623,7 @@ var b, Mn = function(e) {
|
|
|
623
623
|
g = String(i), me = g.length, C = l || {};
|
|
624
624
|
for (var u in sr)
|
|
625
625
|
Object.prototype.hasOwnProperty.call(C, u) || (C[u] = sr[u]);
|
|
626
|
-
for (xt = C.sourceFile,
|
|
626
|
+
for (xt = C.sourceFile, ge = 1, c = re = 0, Re = !0, d(), u = C.dc, kt = ce = c, C.C && (Ct = new s()), Be = z = !1, D = [], I(), i = u || B(), l = !0, u || (i.body = []); S !== Ot; )
|
|
627
627
|
u = Q(), i.body.push(u), l && ht(u) && ue(!0), l = !1;
|
|
628
628
|
return x(i, "Program");
|
|
629
629
|
};
|
|
@@ -638,7 +638,7 @@ var b, Mn = function(e) {
|
|
|
638
638
|
dc: null,
|
|
639
639
|
sourceFile: null,
|
|
640
640
|
vb: null
|
|
641
|
-
}, c = 0, U = 0, ve = 0, St, Et, S, Y,
|
|
641
|
+
}, c = 0, U = 0, ve = 0, St, Et, S, Y, Re, ge, re, kt = 0, ce = 0, Ct, Be, D, z, ln = [], Me = {
|
|
642
642
|
type: "num"
|
|
643
643
|
}, ar = {
|
|
644
644
|
type: "regexp"
|
|
@@ -762,7 +762,7 @@ var b, Mn = function(e) {
|
|
|
762
762
|
m: !0
|
|
763
763
|
}, Rt = {
|
|
764
764
|
type: "]"
|
|
765
|
-
},
|
|
765
|
+
}, De = {
|
|
766
766
|
type: "{",
|
|
767
767
|
m: !0
|
|
768
768
|
}, xe = {
|
|
@@ -778,7 +778,7 @@ var b, Mn = function(e) {
|
|
|
778
778
|
}, oe = {
|
|
779
779
|
type: ";",
|
|
780
780
|
m: !0
|
|
781
|
-
},
|
|
781
|
+
}, _e = {
|
|
782
782
|
type: ":",
|
|
783
783
|
m: !0
|
|
784
784
|
}, jr = {
|
|
@@ -792,7 +792,7 @@ var b, Mn = function(e) {
|
|
|
792
792
|
}, Tr = {
|
|
793
793
|
Cb: !0,
|
|
794
794
|
m: !0
|
|
795
|
-
},
|
|
795
|
+
}, ye = {
|
|
796
796
|
Cb: !0,
|
|
797
797
|
m: !0
|
|
798
798
|
}, cn = {
|
|
@@ -841,22 +841,22 @@ var b, Mn = function(e) {
|
|
|
841
841
|
}, Wt = Wt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
842
842
|
Mn(Wt.j || (Wt.j = {}));
|
|
843
843
|
function h(e, t) {
|
|
844
|
-
typeof e == "string" && (e =
|
|
845
|
-
var
|
|
844
|
+
typeof e == "string" && (e = Oe(e, "code"));
|
|
845
|
+
var n = e.constructor;
|
|
846
846
|
this.ya = function() {
|
|
847
|
-
return new
|
|
847
|
+
return new n({
|
|
848
848
|
options: {}
|
|
849
849
|
});
|
|
850
850
|
};
|
|
851
|
-
var
|
|
851
|
+
var r = this.ya(), o;
|
|
852
852
|
for (o in e)
|
|
853
|
-
|
|
854
|
-
this.ra =
|
|
853
|
+
r[o] = o === "body" ? e[o].slice() : e[o];
|
|
854
|
+
this.ra = r, this.ca = [], this.qb = t, this.za = !1, this.ba = [], this.Ya = 0, this.rb = /* @__PURE__ */ Object.create(null), e = /^step([A-Z]\w*)$/;
|
|
855
855
|
var s, a;
|
|
856
856
|
for (a in this)
|
|
857
857
|
typeof this[a] == "function" && (s = a.match(e)) && (this.rb[s[1]] = this[a].bind(this));
|
|
858
|
-
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
859
|
-
`), "polyfills"), this.ba = void 0, lt(this.ra), s = new m(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra =
|
|
858
|
+
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = Oe(this.ba.join(`
|
|
859
|
+
`), "polyfills"), this.ba = void 0, lt(this.ra), s = new m(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new m(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
860
860
|
}
|
|
861
861
|
var Dr = {
|
|
862
862
|
C: !0,
|
|
@@ -873,7 +873,7 @@ var Dr = {
|
|
|
873
873
|
configurable: !0,
|
|
874
874
|
enumerable: !1,
|
|
875
875
|
writable: !1
|
|
876
|
-
},
|
|
876
|
+
}, Le = {
|
|
877
877
|
configurable: !1,
|
|
878
878
|
enumerable: !1,
|
|
879
879
|
writable: !1
|
|
@@ -883,27 +883,27 @@ var Dr = {
|
|
|
883
883
|
writable: !0
|
|
884
884
|
}, Kr = {
|
|
885
885
|
STEP_ERROR: !0
|
|
886
|
-
},
|
|
886
|
+
}, Ae = {
|
|
887
887
|
SCOPE_REFERENCE: !0
|
|
888
888
|
}, Je = {
|
|
889
889
|
VALUE_IN_DESCRIPTOR: !0
|
|
890
890
|
}, ke = {
|
|
891
891
|
REGEXP_TIMEOUT: !0
|
|
892
|
-
}, Ur = [], se = null,
|
|
892
|
+
}, Ur = [], se = null, Ve = null, he = typeof globalThis == "undefined" ? void 0 : globalThis, Dn = ["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();", "};"];
|
|
893
893
|
function Jt(e) {
|
|
894
894
|
var t = e >>> 0;
|
|
895
895
|
return t === Number(e) ? t : NaN;
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Xe(e) {
|
|
898
898
|
var t = e >>> 0;
|
|
899
899
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
900
900
|
}
|
|
901
|
-
function lt(e, t,
|
|
902
|
-
t ? e.start = t : delete e.start,
|
|
903
|
-
for (var
|
|
904
|
-
if (
|
|
905
|
-
var o = e[
|
|
906
|
-
o && typeof o == "object" && lt(o, t,
|
|
901
|
+
function lt(e, t, n) {
|
|
902
|
+
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
903
|
+
for (var r in e)
|
|
904
|
+
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
905
|
+
var o = e[r];
|
|
906
|
+
o && typeof o == "object" && lt(o, t, n);
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
909
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -914,56 +914,56 @@ b.P = !1;
|
|
|
914
914
|
b.Ka = !1;
|
|
915
915
|
b.Kb = 0;
|
|
916
916
|
b.ic = 0;
|
|
917
|
-
function
|
|
918
|
-
var
|
|
919
|
-
for (
|
|
920
|
-
r
|
|
921
|
-
return
|
|
917
|
+
function Oe(e, t) {
|
|
918
|
+
var n = {}, r;
|
|
919
|
+
for (r in Dr)
|
|
920
|
+
n[r] = Dr[r];
|
|
921
|
+
return n.sourceFile = t, he.j.parse(e, n);
|
|
922
922
|
}
|
|
923
923
|
b.Jb = function(e) {
|
|
924
924
|
var t = this.o[0];
|
|
925
925
|
if (!t || t.node.type !== "Program")
|
|
926
926
|
throw Error("Expecting original AST to start with a Program node");
|
|
927
|
-
if (typeof e == "string" && (e =
|
|
927
|
+
if (typeof e == "string" && (e = Oe(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
928
928
|
throw Error("Expecting new AST to start with a Program node");
|
|
929
929
|
Ke(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
930
930
|
};
|
|
931
931
|
b.lb = function() {
|
|
932
932
|
var e = this.o, t;
|
|
933
933
|
do {
|
|
934
|
-
var
|
|
934
|
+
var n = e[e.length - 1];
|
|
935
935
|
if (this.za)
|
|
936
936
|
break;
|
|
937
|
-
if (!
|
|
937
|
+
if (!n || n.node.type === "Program" && n.done) {
|
|
938
938
|
if (!this.ca.length)
|
|
939
939
|
return !1;
|
|
940
|
-
if (
|
|
941
|
-
|
|
940
|
+
if (n = this.ca[0], !n || n.time > Date.now())
|
|
941
|
+
n = null;
|
|
942
942
|
else {
|
|
943
|
-
this.ca.shift(), 0 <=
|
|
944
|
-
var
|
|
945
|
-
|
|
943
|
+
this.ca.shift(), 0 <= n.interval && Zr(this, n, n.interval);
|
|
944
|
+
var r = new m(n.node, n.scope);
|
|
945
|
+
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
946
946
|
}
|
|
947
|
-
if (!
|
|
947
|
+
if (!n)
|
|
948
948
|
break;
|
|
949
949
|
}
|
|
950
|
-
|
|
951
|
-
var o =
|
|
952
|
-
|
|
950
|
+
r = n.node;
|
|
951
|
+
var o = Ve;
|
|
952
|
+
Ve = this;
|
|
953
953
|
try {
|
|
954
|
-
var s = this.rb[
|
|
954
|
+
var s = this.rb[r.type](e, n, r);
|
|
955
955
|
} catch (a) {
|
|
956
956
|
if (a !== Kr)
|
|
957
957
|
throw this.value !== a && (this.value = void 0), a;
|
|
958
958
|
} finally {
|
|
959
|
-
|
|
959
|
+
Ve = o;
|
|
960
960
|
}
|
|
961
961
|
if (s && e.push(s), this.P)
|
|
962
962
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
963
963
|
if (this.Ka)
|
|
964
964
|
throw this.value = void 0, Error("Setter not supported in this context");
|
|
965
|
-
t ||
|
|
966
|
-
} while (!
|
|
965
|
+
t || r.end || (t = Date.now() + this.POLYFILL_TIMEOUT);
|
|
966
|
+
} while (!r.end && t > Date.now());
|
|
967
967
|
return !0;
|
|
968
968
|
};
|
|
969
969
|
b.Eb = function() {
|
|
@@ -972,13 +972,13 @@ b.Eb = function() {
|
|
|
972
972
|
return this.za;
|
|
973
973
|
};
|
|
974
974
|
function _n(e, t) {
|
|
975
|
-
e.g(t, "NaN", NaN,
|
|
976
|
-
var
|
|
975
|
+
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Ht), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new j(null), e.Z = new j(e.M), Un(e, t), Ln(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Fn(e, t), Wn(e, t), Gn(e, t), $n(e, t), Vn(e, t), Xn(e, t), Hn(e, t), Jn(e, t), Kn(e, t);
|
|
976
|
+
var n = e.i(function() {
|
|
977
977
|
throw EvalError("Can't happen");
|
|
978
978
|
}, !1);
|
|
979
|
-
|
|
980
|
-
for (var
|
|
981
|
-
|
|
979
|
+
n.eval = !0, e.g(t, "eval", n, y), e.g(t, "parseInt", e.i(parseInt, !1), y), e.g(t, "parseFloat", e.i(parseFloat, !1), y), e.g(t, "isNaN", e.i(isNaN, !1), y), e.g(t, "isFinite", e.i(isFinite, !1), y);
|
|
980
|
+
for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < r.length; o++)
|
|
981
|
+
n = function(s) {
|
|
982
982
|
return function(a) {
|
|
983
983
|
try {
|
|
984
984
|
return s(a);
|
|
@@ -986,57 +986,57 @@ function _n(e, t) {
|
|
|
986
986
|
w(e, e.Gb, f.message);
|
|
987
987
|
}
|
|
988
988
|
};
|
|
989
|
-
}(
|
|
990
|
-
|
|
989
|
+
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
990
|
+
n = function(s) {
|
|
991
991
|
return Lr(e, !1, arguments);
|
|
992
|
-
}, e.g(t, "setTimeout", e.i(
|
|
992
|
+
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(s) {
|
|
993
993
|
return Lr(e, !0, arguments);
|
|
994
|
-
}, e.g(t, "setInterval", e.i(
|
|
994
|
+
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(s) {
|
|
995
995
|
Fr(e, s);
|
|
996
|
-
}, e.g(t, "clearTimeout", e.i(
|
|
996
|
+
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(s) {
|
|
997
997
|
Fr(e, s);
|
|
998
|
-
}, e.g(t, "clearInterval", e.i(
|
|
998
|
+
}, e.g(t, "clearInterval", e.i(n, !1), y), 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);
|
|
999
999
|
}
|
|
1000
1000
|
b.Wb = 0;
|
|
1001
1001
|
function Un(e, t) {
|
|
1002
|
-
var
|
|
1002
|
+
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1003
1003
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1004
1004
|
if (a) {
|
|
1005
1005
|
a = a.split(/\s*,\s*/);
|
|
1006
1006
|
for (var f = 0; f < a.length; f++) {
|
|
1007
1007
|
var d = a[f];
|
|
1008
|
-
|
|
1008
|
+
n.test(d) || w(e, e.T, "Invalid function argument: " + d);
|
|
1009
1009
|
}
|
|
1010
1010
|
a = a.join(", ");
|
|
1011
1011
|
}
|
|
1012
1012
|
try {
|
|
1013
|
-
var v =
|
|
1013
|
+
var v = Oe("(function(" + a + ") {" + s + "})", "function" + e.Wb++);
|
|
1014
1014
|
} catch (I) {
|
|
1015
1015
|
w(e, e.T, "Invalid code: " + I.message);
|
|
1016
1016
|
}
|
|
1017
1017
|
return v.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Yt(e, v.body[0].la, e.N, "anonymous");
|
|
1018
1018
|
};
|
|
1019
|
-
e.O = e.i(
|
|
1020
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, K), e.Z.H = "Function",
|
|
1019
|
+
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1020
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, K), e.Z.H = "Function", r = function(o, s) {
|
|
1021
1021
|
var a = e.o[e.o.length - 1];
|
|
1022
1022
|
a.U = this, a.B = o, a.F = [], s != null && (s instanceof j ? a.F = zr(e, s) : w(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1023
|
-
}, F(e, e.O, "apply",
|
|
1023
|
+
}, F(e, e.O, "apply", r), r = function(o) {
|
|
1024
1024
|
var s = e.o[e.o.length - 1];
|
|
1025
1025
|
s.U = this, s.B = o, s.F = [];
|
|
1026
1026
|
for (var a = 1; a < arguments.length; a++)
|
|
1027
1027
|
s.F.push(arguments[a]);
|
|
1028
1028
|
s.eb = !1;
|
|
1029
|
-
}, F(e, e.O, "call",
|
|
1029
|
+
}, F(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1030
1030
|
return String(this);
|
|
1031
|
-
}, F(e, e.O, "toString",
|
|
1031
|
+
}, F(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1032
1032
|
return this.valueOf();
|
|
1033
|
-
}, F(e, e.O, "valueOf",
|
|
1033
|
+
}, F(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1034
1034
|
}
|
|
1035
1035
|
function Ln(e, t) {
|
|
1036
|
-
function
|
|
1036
|
+
function n(o) {
|
|
1037
1037
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1038
1038
|
}
|
|
1039
|
-
var
|
|
1039
|
+
var r = function(o) {
|
|
1040
1040
|
if (o == null)
|
|
1041
1041
|
return le(e) ? this : e.s(e.M);
|
|
1042
1042
|
if (!(o instanceof j)) {
|
|
@@ -1045,41 +1045,41 @@ function Ln(e, t) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return o;
|
|
1047
1047
|
};
|
|
1048
|
-
e.v = e.i(
|
|
1049
|
-
return
|
|
1050
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(
|
|
1051
|
-
return
|
|
1052
|
-
}, e.g(e.v, "keys", e.i(
|
|
1048
|
+
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1049
|
+
return n(o), ie(e, Object.getOwnPropertyNames(o instanceof j ? o.h : o));
|
|
1050
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1051
|
+
return n(o), o instanceof j && (o = o.h), ie(e, Object.keys(o));
|
|
1052
|
+
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1053
1053
|
return o === null ? e.s(null) : (o instanceof j || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1054
|
-
}, e.g(e.v, "create", e.i(
|
|
1054
|
+
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, s, a) {
|
|
1055
1055
|
return s = String(s), o instanceof j || w(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof j || w(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || w(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s, Je, a.h), o;
|
|
1056
|
-
}, e.g(e.v, "defineProperty", e.i(
|
|
1056
|
+
}, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, s) {
|
|
1057
1057
|
if (o instanceof j || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), s = String(s), s in o.h) {
|
|
1058
1058
|
var a = Object.getOwnPropertyDescriptor(o.h, s), f = o.V[s];
|
|
1059
1059
|
return o = o.Y[s], s = e.s(e.M), f || o ? (e.g(s, "get", f), e.g(s, "set", o)) : (e.g(s, "value", a.value), e.g(s, "writable", a.writable)), e.g(s, "configurable", a.configurable), e.g(s, "enumerable", a.enumerable), s;
|
|
1060
1060
|
}
|
|
1061
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(
|
|
1062
|
-
return
|
|
1063
|
-
}, e.g(e.v, "getPrototypeOf", e.i(
|
|
1061
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
|
|
1062
|
+
return n(o), ae(e, o);
|
|
1063
|
+
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1064
1064
|
return !!o && !o.preventExtensions;
|
|
1065
|
-
}, e.g(e.v, "isExtensible", e.i(
|
|
1065
|
+
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1066
1066
|
return o instanceof j && (o.preventExtensions = !0), o;
|
|
1067
|
-
}, e.g(e.v, "preventExtensions", e.i(
|
|
1068
|
-
return
|
|
1069
|
-
}, F(e, e.v, "hasOwnProperty",
|
|
1070
|
-
return
|
|
1071
|
-
}, F(e, e.v, "propertyIsEnumerable",
|
|
1067
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), F(e, e.v, "toString", j.prototype.toString), F(e, e.v, "toLocaleString", j.prototype.toString), F(e, e.v, "valueOf", j.prototype.valueOf), r = function(o) {
|
|
1068
|
+
return n(this), this instanceof j ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1069
|
+
}, F(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1070
|
+
return n(this), this instanceof j ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1071
|
+
}, F(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1072
1072
|
for (; ; ) {
|
|
1073
1073
|
if (o = ae(e, o), !o)
|
|
1074
1074
|
return !1;
|
|
1075
1075
|
if (o === this)
|
|
1076
1076
|
return !0;
|
|
1077
1077
|
}
|
|
1078
|
-
}, F(e, e.v, "isPrototypeOf",
|
|
1078
|
+
}, F(e, e.v, "isPrototypeOf", r);
|
|
1079
1079
|
}
|
|
1080
1080
|
function Fn(e, t) {
|
|
1081
|
-
var
|
|
1082
|
-
var o = le(e) ? this :
|
|
1081
|
+
var n = function(r) {
|
|
1082
|
+
var o = le(e) ? this : je(e), s = arguments[0];
|
|
1083
1083
|
if (arguments.length === 1 && typeof s == "number")
|
|
1084
1084
|
isNaN(Jt(s)) && w(e, e.ob, "Invalid array length: " + s), o.h.length = s;
|
|
1085
1085
|
else {
|
|
@@ -1089,151 +1089,151 @@ function Fn(e, t) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
return o;
|
|
1091
1091
|
};
|
|
1092
|
-
e.qa = e.i(
|
|
1093
|
-
return
|
|
1094
|
-
}, e.g(e.qa, "isArray", e.i(
|
|
1092
|
+
e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, y), n = function(r) {
|
|
1093
|
+
return r && r.H === "Array";
|
|
1094
|
+
}, e.g(e.qa, "isArray", e.i(n, !1), y), e.g(e.La, "length", 0, {
|
|
1095
1095
|
configurable: !1,
|
|
1096
1096
|
enumerable: !1,
|
|
1097
1097
|
writable: !0
|
|
1098
1098
|
}), 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(',');", "}", ");", "})();", "");
|
|
1099
1099
|
}
|
|
1100
1100
|
function Wn(e, t) {
|
|
1101
|
-
var
|
|
1102
|
-
return
|
|
1101
|
+
var n = function(r) {
|
|
1102
|
+
return r = arguments.length ? he.String(r) : "", le(e) ? (this.data = r, this) : r;
|
|
1103
1103
|
};
|
|
1104
|
-
for (e.J = e.i(
|
|
1105
|
-
F(e, e.J, t[
|
|
1106
|
-
|
|
1104
|
+
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1105
|
+
F(e, e.J, t[n], String.prototype[t[n]]);
|
|
1106
|
+
n = function(r, o, s) {
|
|
1107
1107
|
o = e.R(o), s = e.R(s);
|
|
1108
1108
|
try {
|
|
1109
|
-
return String(this).localeCompare(
|
|
1109
|
+
return String(this).localeCompare(r, o, s);
|
|
1110
1110
|
} catch (a) {
|
|
1111
1111
|
w(e, e.D, "localeCompare: " + a.message);
|
|
1112
1112
|
}
|
|
1113
|
-
}, F(e, e.J, "localeCompare",
|
|
1113
|
+
}, F(e, e.J, "localeCompare", n), n = function(r, o, s) {
|
|
1114
1114
|
var a = String(this);
|
|
1115
|
-
if (o = o ? Number(o) : void 0, G(e,
|
|
1115
|
+
if (o = o ? Number(o) : void 0, G(e, r, e.I) && (r = r.data, We(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1116
1116
|
if (se)
|
|
1117
|
-
|
|
1117
|
+
r = Fe(e, "string.split(separator, limit)", {
|
|
1118
1118
|
string: a,
|
|
1119
|
-
separator:
|
|
1119
|
+
separator: r,
|
|
1120
1120
|
limit: o
|
|
1121
|
-
},
|
|
1121
|
+
}, r, s), r !== ke && s(ie(e, r));
|
|
1122
1122
|
else {
|
|
1123
|
-
var f = e.ha(), d =
|
|
1123
|
+
var f = e.ha(), d = Ge(e, r, f, s);
|
|
1124
1124
|
f.onmessage = function(v) {
|
|
1125
1125
|
clearTimeout(d), s(ie(e, v.data));
|
|
1126
|
-
}, f.postMessage(["split", a,
|
|
1126
|
+
}, f.postMessage(["split", a, r, o]);
|
|
1127
1127
|
}
|
|
1128
1128
|
return;
|
|
1129
1129
|
}
|
|
1130
|
-
|
|
1131
|
-
},
|
|
1130
|
+
r = a.split(r, o), s(ie(e, r));
|
|
1131
|
+
}, $e(e, e.J, "split", n), n = function(r, o) {
|
|
1132
1132
|
var s = String(this);
|
|
1133
|
-
if (
|
|
1133
|
+
if (r = G(e, r, e.I) ? r.data : new RegExp(r), We(e, r, o), e.REGEXP_MODE === 2)
|
|
1134
1134
|
if (se)
|
|
1135
|
-
|
|
1135
|
+
r = Fe(e, "string.match(regexp)", {
|
|
1136
1136
|
string: s,
|
|
1137
|
-
regexp:
|
|
1138
|
-
},
|
|
1137
|
+
regexp: r
|
|
1138
|
+
}, r, o), r !== ke && o(r && ie(e, r));
|
|
1139
1139
|
else {
|
|
1140
|
-
var a = e.ha(), f =
|
|
1140
|
+
var a = e.ha(), f = Ge(e, r, a, o);
|
|
1141
1141
|
a.onmessage = function(d) {
|
|
1142
1142
|
clearTimeout(f), o(d.data && ie(e, d.data));
|
|
1143
|
-
}, a.postMessage(["match", s,
|
|
1143
|
+
}, a.postMessage(["match", s, r]);
|
|
1144
1144
|
}
|
|
1145
1145
|
else
|
|
1146
|
-
|
|
1147
|
-
},
|
|
1146
|
+
r = s.match(r), o(r && ie(e, r));
|
|
1147
|
+
}, $e(e, e.J, "match", n), n = function(r, o) {
|
|
1148
1148
|
var s = String(this);
|
|
1149
|
-
if (G(e,
|
|
1149
|
+
if (G(e, r, e.I) ? r = r.data : r = new RegExp(r), We(e, r, o), e.REGEXP_MODE === 2)
|
|
1150
1150
|
if (se)
|
|
1151
|
-
|
|
1151
|
+
r = Fe(e, "string.search(regexp)", {
|
|
1152
1152
|
string: s,
|
|
1153
|
-
regexp:
|
|
1154
|
-
},
|
|
1153
|
+
regexp: r
|
|
1154
|
+
}, r, o), r !== ke && o(r);
|
|
1155
1155
|
else {
|
|
1156
|
-
var a = e.ha(), f =
|
|
1156
|
+
var a = e.ha(), f = Ge(e, r, a, o);
|
|
1157
1157
|
a.onmessage = function(d) {
|
|
1158
1158
|
clearTimeout(f), o(d.data);
|
|
1159
|
-
}, a.postMessage(["search", s,
|
|
1159
|
+
}, a.postMessage(["search", s, r]);
|
|
1160
1160
|
}
|
|
1161
1161
|
else
|
|
1162
|
-
o(s.search(
|
|
1163
|
-
},
|
|
1162
|
+
o(s.search(r));
|
|
1163
|
+
}, $e(e, e.J, "search", n), n = function(r, o, s) {
|
|
1164
1164
|
var a = String(this);
|
|
1165
|
-
if (o = String(o), G(e,
|
|
1165
|
+
if (o = String(o), G(e, r, e.I) && (r = r.data, We(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1166
1166
|
if (se)
|
|
1167
|
-
|
|
1167
|
+
r = Fe(e, "string.replace(substr, newSubstr)", {
|
|
1168
1168
|
string: a,
|
|
1169
|
-
substr:
|
|
1169
|
+
substr: r,
|
|
1170
1170
|
newSubstr: o
|
|
1171
|
-
},
|
|
1171
|
+
}, r, s), r !== ke && s(r);
|
|
1172
1172
|
else {
|
|
1173
|
-
var f = e.ha(), d =
|
|
1173
|
+
var f = e.ha(), d = Ge(e, r, f, s);
|
|
1174
1174
|
f.onmessage = function(v) {
|
|
1175
1175
|
clearTimeout(d), s(v.data);
|
|
1176
|
-
}, f.postMessage(["replace", a,
|
|
1176
|
+
}, f.postMessage(["replace", a, r, o]);
|
|
1177
1177
|
}
|
|
1178
1178
|
return;
|
|
1179
1179
|
}
|
|
1180
|
-
s(a.replace(
|
|
1181
|
-
},
|
|
1180
|
+
s(a.replace(r, o));
|
|
1181
|
+
}, $e(e, e.J, "replace", n), 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;", "};", "})();", "");
|
|
1182
1182
|
}
|
|
1183
1183
|
function Gn(e, t) {
|
|
1184
|
-
e.mb = e.i(function(
|
|
1185
|
-
return
|
|
1184
|
+
e.mb = e.i(function(n) {
|
|
1185
|
+
return n = he.Boolean(n), le(e) ? (this.data = n, this) : n;
|
|
1186
1186
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1187
1187
|
}
|
|
1188
1188
|
function $n(e, t) {
|
|
1189
|
-
var
|
|
1190
|
-
return
|
|
1189
|
+
var n = function(r) {
|
|
1190
|
+
return r = arguments.length ? he.Number(r) : 0, le(e) ? (this.data = r, this) : r;
|
|
1191
1191
|
};
|
|
1192
|
-
for (e.aa = e.i(
|
|
1193
|
-
e.g(e.aa, t[
|
|
1194
|
-
|
|
1192
|
+
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1193
|
+
e.g(e.aa, t[n], Number[t[n]], Le);
|
|
1194
|
+
n = function(r) {
|
|
1195
1195
|
try {
|
|
1196
|
-
return Number(this).toExponential(
|
|
1196
|
+
return Number(this).toExponential(r);
|
|
1197
1197
|
} catch (o) {
|
|
1198
1198
|
w(e, e.D, o.message);
|
|
1199
1199
|
}
|
|
1200
|
-
}, F(e, e.aa, "toExponential",
|
|
1200
|
+
}, F(e, e.aa, "toExponential", n), n = function(r) {
|
|
1201
1201
|
try {
|
|
1202
|
-
return Number(this).toFixed(
|
|
1202
|
+
return Number(this).toFixed(r);
|
|
1203
1203
|
} catch (o) {
|
|
1204
1204
|
w(e, e.D, o.message);
|
|
1205
1205
|
}
|
|
1206
|
-
}, F(e, e.aa, "toFixed",
|
|
1206
|
+
}, F(e, e.aa, "toFixed", n), n = function(r) {
|
|
1207
1207
|
try {
|
|
1208
|
-
return Number(this).toPrecision(
|
|
1208
|
+
return Number(this).toPrecision(r);
|
|
1209
1209
|
} catch (o) {
|
|
1210
1210
|
w(e, e.D, o.message);
|
|
1211
1211
|
}
|
|
1212
|
-
}, F(e, e.aa, "toPrecision",
|
|
1212
|
+
}, F(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1213
1213
|
try {
|
|
1214
|
-
return Number(this).toString(
|
|
1214
|
+
return Number(this).toString(r);
|
|
1215
1215
|
} catch (o) {
|
|
1216
1216
|
w(e, e.D, o.message);
|
|
1217
1217
|
}
|
|
1218
|
-
}, F(e, e.aa, "toString",
|
|
1219
|
-
|
|
1218
|
+
}, F(e, e.aa, "toString", n), n = function(r, o) {
|
|
1219
|
+
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1220
1220
|
try {
|
|
1221
|
-
return Number(this).toLocaleString(
|
|
1221
|
+
return Number(this).toLocaleString(r, o);
|
|
1222
1222
|
} catch (s) {
|
|
1223
1223
|
w(e, e.D, "toLocaleString: " + s.message);
|
|
1224
1224
|
}
|
|
1225
|
-
}, F(e, e.aa, "toLocaleString",
|
|
1225
|
+
}, F(e, e.aa, "toLocaleString", n);
|
|
1226
1226
|
}
|
|
1227
1227
|
function Vn(e, t) {
|
|
1228
|
-
var
|
|
1228
|
+
var n = function(o, s) {
|
|
1229
1229
|
if (!le(e))
|
|
1230
|
-
return
|
|
1230
|
+
return he.Date();
|
|
1231
1231
|
var a = [null].concat(Array.from(arguments));
|
|
1232
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1232
|
+
return this.data = new (Function.prototype.bind.apply(he.Date, a))(), this;
|
|
1233
1233
|
};
|
|
1234
|
-
e.$ = e.i(
|
|
1235
|
-
for (var
|
|
1236
|
-
|
|
1234
|
+
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1235
|
+
for (var r = 0; r < t.length; r++)
|
|
1236
|
+
n = function(o) {
|
|
1237
1237
|
return function(s) {
|
|
1238
1238
|
var a = this.data;
|
|
1239
1239
|
a instanceof Date || w(e, e.j, o + " not called on a Date");
|
|
@@ -1241,26 +1241,26 @@ function Vn(e, t) {
|
|
|
1241
1241
|
f[d] = e.R(arguments[d]);
|
|
1242
1242
|
return a[o].apply(a, f);
|
|
1243
1243
|
};
|
|
1244
|
-
}(t[
|
|
1244
|
+
}(t[r]), F(e, e.$, t[r], n);
|
|
1245
1245
|
}
|
|
1246
1246
|
function Xn(e, t) {
|
|
1247
|
-
var
|
|
1247
|
+
var n = function(r, o) {
|
|
1248
1248
|
if (le(e))
|
|
1249
1249
|
var s = this;
|
|
1250
1250
|
else {
|
|
1251
|
-
if (o === void 0 && G(e,
|
|
1252
|
-
return
|
|
1251
|
+
if (o === void 0 && G(e, r, e.I))
|
|
1252
|
+
return r;
|
|
1253
1253
|
s = e.s(e.Ma);
|
|
1254
1254
|
}
|
|
1255
|
-
|
|
1255
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
|
|
1256
1256
|
try {
|
|
1257
|
-
var a = new
|
|
1257
|
+
var a = new he.RegExp(r, o);
|
|
1258
1258
|
} catch (f) {
|
|
1259
1259
|
w(e, e.T, f.message);
|
|
1260
1260
|
}
|
|
1261
1261
|
return Kt(e, s, a), s;
|
|
1262
1262
|
};
|
|
1263
|
-
e.I = e.i(
|
|
1263
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, K), e.g(e.I.h.prototype, "ignoreCase", void 0, K), e.g(e.I.h.prototype, "multiline", void 0, K), e.g(e.I.h.prototype, "source", "(?:)", K), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1264
1264
|
function s(I) {
|
|
1265
1265
|
if (I) {
|
|
1266
1266
|
var A = ie(e, I);
|
|
@@ -1269,92 +1269,92 @@ function Xn(e, t) {
|
|
|
1269
1269
|
return null;
|
|
1270
1270
|
}
|
|
1271
1271
|
var a = this.data;
|
|
1272
|
-
if (
|
|
1272
|
+
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")), We(e, a, o), e.REGEXP_MODE === 2)
|
|
1273
1273
|
if (se)
|
|
1274
|
-
|
|
1275
|
-
string:
|
|
1274
|
+
r = Fe(e, "regexp.exec(string)", {
|
|
1275
|
+
string: r,
|
|
1276
1276
|
regexp: a
|
|
1277
|
-
}, a, o),
|
|
1277
|
+
}, a, o), r !== ke && (e.g(this, "lastIndex", a.lastIndex), o(s(r)));
|
|
1278
1278
|
else {
|
|
1279
|
-
var f = e.ha(), d =
|
|
1279
|
+
var f = e.ha(), d = Ge(e, a, f, o), v = this;
|
|
1280
1280
|
f.onmessage = function(I) {
|
|
1281
1281
|
clearTimeout(d), e.g(v, "lastIndex", I.data[1]), o(s(I.data[0]));
|
|
1282
|
-
}, f.postMessage(["exec", a, a.lastIndex,
|
|
1282
|
+
}, f.postMessage(["exec", a, a.lastIndex, r]);
|
|
1283
1283
|
}
|
|
1284
1284
|
else
|
|
1285
|
-
|
|
1286
|
-
},
|
|
1285
|
+
r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(s(r));
|
|
1286
|
+
}, $e(e, e.I, "exec", n);
|
|
1287
1287
|
}
|
|
1288
1288
|
function Hn(e, t) {
|
|
1289
|
-
function r
|
|
1289
|
+
function n(r) {
|
|
1290
1290
|
var o = e.i(function(s) {
|
|
1291
1291
|
var a = le(e) ? this : e.Aa(o);
|
|
1292
1292
|
return Gt(e, a, s), a;
|
|
1293
1293
|
}, !0);
|
|
1294
|
-
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name",
|
|
1294
|
+
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1295
1295
|
}
|
|
1296
|
-
e.D = e.i(function(
|
|
1296
|
+
e.D = e.i(function(r) {
|
|
1297
1297
|
var o = le(e) ? this : e.Aa(e.D);
|
|
1298
|
-
return Gt(e, o,
|
|
1299
|
-
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y),
|
|
1298
|
+
return Gt(e, o, r), o;
|
|
1299
|
+
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1300
1300
|
}
|
|
1301
1301
|
function Jn(e, t) {
|
|
1302
|
-
var
|
|
1303
|
-
e.g(t, "Math",
|
|
1304
|
-
var
|
|
1305
|
-
for (t = 0; t <
|
|
1306
|
-
e.g(
|
|
1307
|
-
for (
|
|
1308
|
-
e.g(
|
|
1302
|
+
var n = e.s(e.M);
|
|
1303
|
+
e.g(t, "Math", n, y);
|
|
1304
|
+
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1305
|
+
for (t = 0; t < r.length; t++)
|
|
1306
|
+
e.g(n, r[t], Math[r[t]], K);
|
|
1307
|
+
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1308
|
+
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1309
1309
|
}
|
|
1310
1310
|
function Kn(e, t) {
|
|
1311
|
-
var
|
|
1312
|
-
e.g(t, "JSON",
|
|
1311
|
+
var n = e.s(e.M);
|
|
1312
|
+
e.g(t, "JSON", n, y), t = function(r) {
|
|
1313
1313
|
try {
|
|
1314
|
-
var o = JSON.parse(String(
|
|
1314
|
+
var o = JSON.parse(String(r));
|
|
1315
1315
|
} catch (s) {
|
|
1316
1316
|
w(e, e.T, s.message);
|
|
1317
1317
|
}
|
|
1318
1318
|
return e.Ia(o);
|
|
1319
|
-
}, e.g(
|
|
1319
|
+
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, s) {
|
|
1320
1320
|
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = zr(e, o), o = o.filter(function(f) {
|
|
1321
1321
|
return typeof f == "string" || typeof f == "number";
|
|
1322
|
-
})) : o = null, typeof s != "string" && typeof s != "number" && (s = void 0),
|
|
1322
|
+
})) : o = null, typeof s != "string" && typeof s != "number" && (s = void 0), r = e.R(r);
|
|
1323
1323
|
try {
|
|
1324
|
-
var a = JSON.stringify(
|
|
1324
|
+
var a = JSON.stringify(r, o, s);
|
|
1325
1325
|
} catch (f) {
|
|
1326
1326
|
w(e, e.j, f.message);
|
|
1327
1327
|
}
|
|
1328
1328
|
return a;
|
|
1329
|
-
}, e.g(
|
|
1329
|
+
}, e.g(n, "stringify", e.i(t, !1));
|
|
1330
1330
|
}
|
|
1331
|
-
function G(e, t,
|
|
1332
|
-
if (t == null || !
|
|
1331
|
+
function G(e, t, n) {
|
|
1332
|
+
if (t == null || !n)
|
|
1333
1333
|
return !1;
|
|
1334
|
-
if (
|
|
1334
|
+
if (n = n.h.prototype, t === n)
|
|
1335
1335
|
return !0;
|
|
1336
1336
|
for (t = ae(e, t); t; ) {
|
|
1337
|
-
if (t ===
|
|
1337
|
+
if (t === n)
|
|
1338
1338
|
return !0;
|
|
1339
1339
|
t = t.xa;
|
|
1340
1340
|
}
|
|
1341
1341
|
return !1;
|
|
1342
1342
|
}
|
|
1343
|
-
function Kt(e, t,
|
|
1344
|
-
t.data = new RegExp(
|
|
1343
|
+
function Kt(e, t, n) {
|
|
1344
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, K), e.g(t, "global", n.global, K), e.g(t, "ignoreCase", n.ignoreCase, K), e.g(t, "multiline", n.multiline, K);
|
|
1345
1345
|
}
|
|
1346
|
-
function Gt(e, t,
|
|
1347
|
-
|
|
1348
|
-
for (var
|
|
1349
|
-
var o = e.o[
|
|
1350
|
-
s.type === "CallExpression" && (o = o.U) &&
|
|
1346
|
+
function Gt(e, t, n) {
|
|
1347
|
+
n && e.g(t, "message", String(n), y), n = [];
|
|
1348
|
+
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1349
|
+
var o = e.o[r], s = o.node;
|
|
1350
|
+
s.type === "CallExpression" && (o = o.U) && n.length && (n[n.length - 1].Ob = e.G(o, "name")), !s.X || n.length && s.type !== "CallExpression" || n.push({
|
|
1351
1351
|
Nb: s.X
|
|
1352
1352
|
});
|
|
1353
1353
|
}
|
|
1354
|
-
for (
|
|
1355
|
-
`,
|
|
1356
|
-
var a = r
|
|
1357
|
-
o = r
|
|
1354
|
+
for (r = String(e.G(t, "name")), s = String(e.G(t, "message")), s = r + ": " + s + `
|
|
1355
|
+
`, r = 0; r < n.length; r++) {
|
|
1356
|
+
var a = n[r].Nb;
|
|
1357
|
+
o = n[r].Ob, a = a.source + ":" + a.start.line + ":" + a.start.ab, s = o ? s + (" at " + o + " (" + a + `)
|
|
1358
1358
|
`) : s + (" at " + a + `
|
|
1359
1359
|
`);
|
|
1360
1360
|
}
|
|
@@ -1367,39 +1367,39 @@ b.ha = function() {
|
|
|
1367
1367
|
type: "application/javascript"
|
|
1368
1368
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1369
1369
|
};
|
|
1370
|
-
function
|
|
1370
|
+
function Fe(e, t, n, r, o) {
|
|
1371
1371
|
var s = {
|
|
1372
1372
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1373
1373
|
};
|
|
1374
1374
|
try {
|
|
1375
|
-
return se.runInNewContext(t,
|
|
1375
|
+
return se.runInNewContext(t, n, s);
|
|
1376
1376
|
} catch {
|
|
1377
|
-
o(null), w(e, e.D, "RegExp Timeout: " +
|
|
1377
|
+
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1378
1378
|
}
|
|
1379
1379
|
return ke;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function We(e, t, n) {
|
|
1382
1382
|
if (e.REGEXP_MODE === 0)
|
|
1383
|
-
var
|
|
1383
|
+
var r = !1;
|
|
1384
1384
|
else if (e.REGEXP_MODE === 1)
|
|
1385
|
-
|
|
1385
|
+
r = !0;
|
|
1386
1386
|
else if (se)
|
|
1387
|
-
|
|
1387
|
+
r = !0;
|
|
1388
1388
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1389
|
-
|
|
1389
|
+
r = !0;
|
|
1390
1390
|
else if (typeof require == "function") {
|
|
1391
1391
|
try {
|
|
1392
1392
|
se = require("vm");
|
|
1393
1393
|
} catch {
|
|
1394
1394
|
}
|
|
1395
|
-
|
|
1395
|
+
r = !!se;
|
|
1396
1396
|
} else
|
|
1397
|
-
|
|
1398
|
-
|
|
1397
|
+
r = !1;
|
|
1398
|
+
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Ge(e, t, n, r) {
|
|
1401
1401
|
return setTimeout(function() {
|
|
1402
|
-
|
|
1402
|
+
n.terminate(), r(null);
|
|
1403
1403
|
try {
|
|
1404
1404
|
w(e, e.D, "RegExp Timeout: " + t);
|
|
1405
1405
|
} catch {
|
|
@@ -1414,7 +1414,7 @@ b.s = function(e) {
|
|
|
1414
1414
|
throw Error("Non object prototype");
|
|
1415
1415
|
return e = new j(e), G(this, e, this.D) && (e.H = "Error"), e;
|
|
1416
1416
|
};
|
|
1417
|
-
function
|
|
1417
|
+
function je(e) {
|
|
1418
1418
|
var t = e.s(e.La);
|
|
1419
1419
|
return e.g(t, "length", 0, {
|
|
1420
1420
|
configurable: !1,
|
|
@@ -1422,13 +1422,13 @@ function Oe(e) {
|
|
|
1422
1422
|
writable: !0
|
|
1423
1423
|
}), t.H = "Array", t;
|
|
1424
1424
|
}
|
|
1425
|
-
function zt(e, t,
|
|
1426
|
-
var
|
|
1427
|
-
return
|
|
1425
|
+
function zt(e, t, n) {
|
|
1426
|
+
var r = e.s(e.Z);
|
|
1427
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, K), r.H = "Function", r;
|
|
1428
1428
|
}
|
|
1429
|
-
function Yt(e, t,
|
|
1429
|
+
function Yt(e, t, n, r) {
|
|
1430
1430
|
var o = zt(e, t.oa.length, !0);
|
|
1431
|
-
return o.Va =
|
|
1431
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", K), o;
|
|
1432
1432
|
}
|
|
1433
1433
|
b.i = function(e, t) {
|
|
1434
1434
|
return t = zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, K), t;
|
|
@@ -1449,23 +1449,23 @@ b.Ia = function(e) {
|
|
|
1449
1449
|
if (e instanceof Date)
|
|
1450
1450
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
1451
1451
|
if (typeof e == "function") {
|
|
1452
|
-
var
|
|
1452
|
+
var n = this;
|
|
1453
1453
|
return t = Object.getOwnPropertyDescriptor(e, "prototype"), this.i(function() {
|
|
1454
1454
|
var o = Array.prototype.slice.call(arguments).map(function(s) {
|
|
1455
|
-
return
|
|
1455
|
+
return n.R(s);
|
|
1456
1456
|
});
|
|
1457
|
-
return o = e.apply(
|
|
1457
|
+
return o = e.apply(n, o), n.Ia(o);
|
|
1458
1458
|
}, !!t);
|
|
1459
1459
|
}
|
|
1460
1460
|
if (Array.isArray(e)) {
|
|
1461
|
-
t =
|
|
1462
|
-
for (var
|
|
1463
|
-
|
|
1461
|
+
t = je(this);
|
|
1462
|
+
for (var r = 0; r < e.length; r++)
|
|
1463
|
+
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1464
1464
|
return t;
|
|
1465
1465
|
}
|
|
1466
1466
|
t = this.s(this.M);
|
|
1467
|
-
for (
|
|
1468
|
-
this.g(t,
|
|
1467
|
+
for (r in e)
|
|
1468
|
+
this.g(t, r, this.Ia(e[r]));
|
|
1469
1469
|
return t;
|
|
1470
1470
|
};
|
|
1471
1471
|
b.R = function(e, t) {
|
|
@@ -1481,33 +1481,33 @@ b.R = function(e, t) {
|
|
|
1481
1481
|
hb: [],
|
|
1482
1482
|
Sa: []
|
|
1483
1483
|
};
|
|
1484
|
-
var
|
|
1485
|
-
if (
|
|
1486
|
-
return t.Sa[
|
|
1484
|
+
var n = t.hb.indexOf(e);
|
|
1485
|
+
if (n !== -1)
|
|
1486
|
+
return t.Sa[n];
|
|
1487
1487
|
if (t.hb.push(e), G(this, e, this.qa)) {
|
|
1488
|
-
|
|
1489
|
-
for (var
|
|
1490
|
-
ut(this, e, o) && (
|
|
1488
|
+
n = [], t.Sa.push(n);
|
|
1489
|
+
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1490
|
+
ut(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1491
1491
|
} else
|
|
1492
|
-
for (
|
|
1493
|
-
o = this.R(e.h[
|
|
1492
|
+
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1493
|
+
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
1494
1494
|
value: o,
|
|
1495
1495
|
writable: !0,
|
|
1496
1496
|
enumerable: !0,
|
|
1497
1497
|
configurable: !0
|
|
1498
1498
|
});
|
|
1499
|
-
return t.hb.pop(), t.Sa.pop(),
|
|
1499
|
+
return t.hb.pop(), t.Sa.pop(), n;
|
|
1500
1500
|
};
|
|
1501
1501
|
function ie(e, t) {
|
|
1502
|
-
for (var
|
|
1503
|
-
e.g(
|
|
1504
|
-
return
|
|
1502
|
+
for (var n = je(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1503
|
+
e.g(n, r[o], t[r[o]]);
|
|
1504
|
+
return n;
|
|
1505
1505
|
}
|
|
1506
1506
|
function zr(e, t) {
|
|
1507
|
-
var
|
|
1508
|
-
for (
|
|
1509
|
-
r
|
|
1510
|
-
return
|
|
1507
|
+
var n = [], r;
|
|
1508
|
+
for (r in t.h)
|
|
1509
|
+
n[r] = e.G(t, r);
|
|
1510
|
+
return n.length = Jt(e.G(t, "length")) || 0, n;
|
|
1511
1511
|
}
|
|
1512
1512
|
function ae(e, t) {
|
|
1513
1513
|
switch (typeof t) {
|
|
@@ -1529,41 +1529,41 @@ b.G = function(e, t) {
|
|
|
1529
1529
|
if (G(this, e, this.J))
|
|
1530
1530
|
return String(e).length;
|
|
1531
1531
|
} else if (64 > t.charCodeAt(0) && G(this, e, this.J)) {
|
|
1532
|
-
var
|
|
1533
|
-
if (!isNaN(
|
|
1534
|
-
return String(e)[
|
|
1532
|
+
var n = Xe(t);
|
|
1533
|
+
if (!isNaN(n) && n < String(e).length)
|
|
1534
|
+
return String(e)[n];
|
|
1535
1535
|
}
|
|
1536
1536
|
do
|
|
1537
1537
|
if (e.h && t in e.h)
|
|
1538
|
-
return (
|
|
1538
|
+
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1539
1539
|
while (e = ae(this, e));
|
|
1540
1540
|
};
|
|
1541
|
-
function ut(e, t,
|
|
1541
|
+
function ut(e, t, n) {
|
|
1542
1542
|
if (!(t instanceof j))
|
|
1543
1543
|
throw TypeError("Primitive data type has no properties");
|
|
1544
|
-
if (
|
|
1544
|
+
if (n = String(n), n === "length" && G(e, t, e.J))
|
|
1545
1545
|
return !0;
|
|
1546
1546
|
if (G(e, t, e.J)) {
|
|
1547
|
-
var
|
|
1548
|
-
if (!isNaN(
|
|
1547
|
+
var r = Xe(n);
|
|
1548
|
+
if (!isNaN(r) && r < String(t).length)
|
|
1549
1549
|
return !0;
|
|
1550
1550
|
}
|
|
1551
1551
|
do
|
|
1552
|
-
if (t.h &&
|
|
1552
|
+
if (t.h && n in t.h)
|
|
1553
1553
|
return !0;
|
|
1554
1554
|
while (t = ae(e, t));
|
|
1555
1555
|
return !1;
|
|
1556
1556
|
}
|
|
1557
|
-
b.g = function(e, t,
|
|
1557
|
+
b.g = function(e, t, n, r) {
|
|
1558
1558
|
if (this.Ka)
|
|
1559
1559
|
throw Error("Setter not supported in that context");
|
|
1560
1560
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
|
|
1561
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
|
-
|
|
1562
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1563
1563
|
var o = !this.o || Zt(this).S;
|
|
1564
1564
|
if (e instanceof j) {
|
|
1565
1565
|
if (G(this, e, this.J)) {
|
|
1566
|
-
var s =
|
|
1566
|
+
var s = Xe(t);
|
|
1567
1567
|
if (t === "length" || !isNaN(s) && s < String(e).length) {
|
|
1568
1568
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1569
1569
|
return;
|
|
@@ -1571,42 +1571,42 @@ b.g = function(e, t, r, n) {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
if (e.H === "Array")
|
|
1573
1573
|
if (s = e.h.length, t === "length") {
|
|
1574
|
-
if (
|
|
1575
|
-
if (!("value" in
|
|
1574
|
+
if (r) {
|
|
1575
|
+
if (!("value" in r))
|
|
1576
1576
|
return;
|
|
1577
|
-
|
|
1577
|
+
n = r.value;
|
|
1578
1578
|
}
|
|
1579
|
-
if (
|
|
1579
|
+
if (n = Jt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < s)
|
|
1580
1580
|
for (a in e.h) {
|
|
1581
|
-
var a =
|
|
1582
|
-
!isNaN(a) &&
|
|
1581
|
+
var a = Xe(a);
|
|
1582
|
+
!isNaN(a) && n <= a && delete e.h[a];
|
|
1583
1583
|
}
|
|
1584
1584
|
} else
|
|
1585
|
-
isNaN(a =
|
|
1585
|
+
isNaN(a = Xe(t)) || (e.h.length = Math.max(s, a + 1));
|
|
1586
1586
|
if (!e.preventExtensions || t in e.h)
|
|
1587
|
-
if (
|
|
1588
|
-
o = {}, "get" in
|
|
1587
|
+
if (r) {
|
|
1588
|
+
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Je && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1589
1589
|
try {
|
|
1590
1590
|
Object.defineProperty(e.h, t, o);
|
|
1591
1591
|
} catch {
|
|
1592
1592
|
w(this, this.j, "Cannot redefine property: " + t);
|
|
1593
1593
|
}
|
|
1594
|
-
"get" in
|
|
1594
|
+
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1595
1595
|
} else {
|
|
1596
|
-
if (
|
|
1596
|
+
if (n === Je)
|
|
1597
1597
|
throw ReferenceError("Value not specified");
|
|
1598
|
-
for (
|
|
1599
|
-
if (
|
|
1600
|
-
|
|
1598
|
+
for (r = e; !(t in r.h); )
|
|
1599
|
+
if (r = ae(this, r), !r) {
|
|
1600
|
+
r = e;
|
|
1601
1601
|
break;
|
|
1602
1602
|
}
|
|
1603
|
-
if (
|
|
1604
|
-
return this.Ka = !0,
|
|
1605
|
-
if (
|
|
1603
|
+
if (r.Y && r.Y[t])
|
|
1604
|
+
return this.Ka = !0, r.Y[t];
|
|
1605
|
+
if (r.V && r.V[t])
|
|
1606
1606
|
o && w(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1607
1607
|
else
|
|
1608
1608
|
try {
|
|
1609
|
-
e.h[t] =
|
|
1609
|
+
e.h[t] = n;
|
|
1610
1610
|
} catch {
|
|
1611
1611
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1612
1612
|
}
|
|
@@ -1622,69 +1622,69 @@ b.g.ac = function() {
|
|
|
1622
1622
|
b.g.bc = function() {
|
|
1623
1623
|
throw Error("Placeholder setter");
|
|
1624
1624
|
};
|
|
1625
|
-
function F(e, t,
|
|
1626
|
-
e.g(t.h.prototype,
|
|
1625
|
+
function F(e, t, n, r) {
|
|
1626
|
+
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
e.g(t.h.prototype,
|
|
1628
|
+
function $e(e, t, n, r) {
|
|
1629
|
+
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1630
1630
|
}
|
|
1631
1631
|
function Zt(e) {
|
|
1632
1632
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1633
1633
|
throw Error("No scope found");
|
|
1634
1634
|
return e;
|
|
1635
1635
|
}
|
|
1636
|
-
function $t(e, t,
|
|
1637
|
-
var
|
|
1638
|
-
if (
|
|
1639
|
-
|
|
1636
|
+
function $t(e, t, n) {
|
|
1637
|
+
var r = !1;
|
|
1638
|
+
if (n && n.S)
|
|
1639
|
+
r = !0;
|
|
1640
1640
|
else {
|
|
1641
1641
|
var o = t.body && t.body[0];
|
|
1642
|
-
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (
|
|
1642
|
+
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1643
1643
|
}
|
|
1644
|
-
return o = e.s(null),
|
|
1644
|
+
return o = e.s(null), r = new Qr(n, r, o), n || _n(e, r.object), Ke(e, t, r), r;
|
|
1645
1645
|
}
|
|
1646
|
-
function Qt(e, t,
|
|
1646
|
+
function Qt(e, t, n) {
|
|
1647
1647
|
if (!t)
|
|
1648
1648
|
throw Error("parentScope required");
|
|
1649
|
-
return e =
|
|
1649
|
+
return e = n || e.s(null), new Qr(t, t.S, e);
|
|
1650
1650
|
}
|
|
1651
1651
|
function qt(e, t) {
|
|
1652
|
-
for (var
|
|
1653
|
-
if (t in
|
|
1654
|
-
return
|
|
1655
|
-
|
|
1652
|
+
for (var n = Zt(e); n && n !== e.N; ) {
|
|
1653
|
+
if (t in n.object.h)
|
|
1654
|
+
return n.object.h[t];
|
|
1655
|
+
n = n.Va;
|
|
1656
1656
|
}
|
|
1657
|
-
if (
|
|
1658
|
-
return e.G(
|
|
1659
|
-
|
|
1657
|
+
if (n === e.N && ut(e, n.object, t))
|
|
1658
|
+
return e.G(n.object, t);
|
|
1659
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1660
1660
|
}
|
|
1661
|
-
function Yr(e, t,
|
|
1662
|
-
for (var
|
|
1663
|
-
if (t in
|
|
1661
|
+
function Yr(e, t, n) {
|
|
1662
|
+
for (var r = Zt(e), o = r.S; r && r !== e.N; ) {
|
|
1663
|
+
if (t in r.object.h) {
|
|
1664
1664
|
try {
|
|
1665
|
-
|
|
1665
|
+
r.object.h[t] = n;
|
|
1666
1666
|
} catch {
|
|
1667
1667
|
o && w(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1668
1668
|
}
|
|
1669
1669
|
return;
|
|
1670
1670
|
}
|
|
1671
|
-
|
|
1671
|
+
r = r.Va;
|
|
1672
1672
|
}
|
|
1673
|
-
if (
|
|
1674
|
-
return e.g(
|
|
1673
|
+
if (r === e.N && (!o || ut(e, r.object, t)))
|
|
1674
|
+
return e.g(r.object, t, n);
|
|
1675
1675
|
w(e, e.pb, t + " is not defined");
|
|
1676
1676
|
}
|
|
1677
|
-
function Ke(e, t,
|
|
1677
|
+
function Ke(e, t, n) {
|
|
1678
1678
|
if (t.jb)
|
|
1679
|
-
var
|
|
1679
|
+
var r = t.jb;
|
|
1680
1680
|
else {
|
|
1681
|
-
switch (
|
|
1681
|
+
switch (r = /* @__PURE__ */ Object.create(null), t.type) {
|
|
1682
1682
|
case "VariableDeclaration":
|
|
1683
1683
|
for (var o = 0; o < t.fa.length; o++)
|
|
1684
|
-
|
|
1684
|
+
r[t.fa[o].id.name] = !0;
|
|
1685
1685
|
break;
|
|
1686
1686
|
case "FunctionDeclaration":
|
|
1687
|
-
|
|
1687
|
+
r[t.id.name] = t;
|
|
1688
1688
|
break;
|
|
1689
1689
|
case "BlockStatement":
|
|
1690
1690
|
case "CatchClause":
|
|
@@ -1707,35 +1707,35 @@ function Ke(e, t, r) {
|
|
|
1707
1707
|
if (Array.isArray(f)) {
|
|
1708
1708
|
for (o = 0; o < f.length; o++)
|
|
1709
1709
|
if (f[o] && f[o].constructor === s) {
|
|
1710
|
-
var d = Ke(e, f[o],
|
|
1710
|
+
var d = Ke(e, f[o], n);
|
|
1711
1711
|
for (a in d)
|
|
1712
|
-
|
|
1712
|
+
r[a] = d[a];
|
|
1713
1713
|
}
|
|
1714
1714
|
} else if (f.constructor === s)
|
|
1715
|
-
for (a in d = Ke(e, f,
|
|
1716
|
-
|
|
1715
|
+
for (a in d = Ke(e, f, n), d)
|
|
1716
|
+
r[a] = d[a];
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
|
-
t.jb =
|
|
1720
|
+
t.jb = r;
|
|
1721
1721
|
}
|
|
1722
|
-
for (a in
|
|
1723
|
-
|
|
1724
|
-
return
|
|
1722
|
+
for (a in r)
|
|
1723
|
+
r[a] === !0 ? e.g(n.object, a, void 0, _r) : e.g(n.object, a, Yt(e, r[a], n), _r);
|
|
1724
|
+
return r;
|
|
1725
1725
|
}
|
|
1726
1726
|
function le(e) {
|
|
1727
1727
|
return e.o[e.o.length - 1].isConstructor;
|
|
1728
1728
|
}
|
|
1729
1729
|
function er(e, t) {
|
|
1730
|
-
return t[0] ===
|
|
1730
|
+
return t[0] === Ae ? qt(e, t[1]) : e.G(t[0], t[1]);
|
|
1731
1731
|
}
|
|
1732
|
-
function tr(e, t,
|
|
1733
|
-
return t[0] ===
|
|
1732
|
+
function tr(e, t, n) {
|
|
1733
|
+
return t[0] === Ae ? Yr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1734
1734
|
}
|
|
1735
|
-
function w(e, t,
|
|
1736
|
-
throw e.N ? (
|
|
1735
|
+
function w(e, t, n) {
|
|
1736
|
+
throw e.N ? (n !== void 0 && t instanceof j && (t = e.Aa(t), Gt(e, t, n)), ze(e, 4, t), Kr) : n === void 0 ? t : n;
|
|
1737
1737
|
}
|
|
1738
|
-
function ze(e, t,
|
|
1738
|
+
function ze(e, t, n, r) {
|
|
1739
1739
|
if (t === 0)
|
|
1740
1740
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1741
1741
|
var o = e.o;
|
|
@@ -1746,14 +1746,14 @@ function ze(e, t, r, n) {
|
|
|
1746
1746
|
case "TryStatement":
|
|
1747
1747
|
s.ea = {
|
|
1748
1748
|
type: t,
|
|
1749
|
-
value:
|
|
1750
|
-
label:
|
|
1749
|
+
value: n,
|
|
1750
|
+
label: r
|
|
1751
1751
|
};
|
|
1752
1752
|
return;
|
|
1753
1753
|
case "CallExpression":
|
|
1754
1754
|
case "NewExpression":
|
|
1755
1755
|
if (t === 3) {
|
|
1756
|
-
s.value =
|
|
1756
|
+
s.value = n;
|
|
1757
1757
|
return;
|
|
1758
1758
|
}
|
|
1759
1759
|
if (t !== 4)
|
|
@@ -1764,21 +1764,21 @@ function ze(e, t, r, n) {
|
|
|
1764
1764
|
break e;
|
|
1765
1765
|
}
|
|
1766
1766
|
if (t === 1) {
|
|
1767
|
-
if (
|
|
1767
|
+
if (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W || s.Zb) {
|
|
1768
1768
|
o.pop();
|
|
1769
1769
|
return;
|
|
1770
1770
|
}
|
|
1771
|
-
} else if (t === 2 && (
|
|
1771
|
+
} else if (t === 2 && (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W))
|
|
1772
1772
|
return;
|
|
1773
1773
|
}
|
|
1774
|
-
throw G(e,
|
|
1774
|
+
throw G(e, n, e.D) ? (t = {
|
|
1775
1775
|
EvalError,
|
|
1776
1776
|
RangeError,
|
|
1777
1777
|
ReferenceError,
|
|
1778
1778
|
SyntaxError,
|
|
1779
1779
|
TypeError,
|
|
1780
1780
|
URIError
|
|
1781
|
-
},
|
|
1781
|
+
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1782
1782
|
}
|
|
1783
1783
|
function H(e, t) {
|
|
1784
1784
|
switch (t.type) {
|
|
@@ -1796,8 +1796,8 @@ function H(e, t) {
|
|
|
1796
1796
|
case "Literal":
|
|
1797
1797
|
return t.raw;
|
|
1798
1798
|
case "MemberExpression":
|
|
1799
|
-
var
|
|
1800
|
-
return e = H(e, t.Wa), t.bb ?
|
|
1799
|
+
var n = H(e, t.object);
|
|
1800
|
+
return e = H(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1801
1801
|
case "NewExpression":
|
|
1802
1802
|
return "new " + H(e, t.callee) + "(...)";
|
|
1803
1803
|
case "ObjectExpression":
|
|
@@ -1807,52 +1807,52 @@ function H(e, t) {
|
|
|
1807
1807
|
case "UnaryExpression":
|
|
1808
1808
|
return t.operator + " " + H(e, t.K);
|
|
1809
1809
|
case "UpdateExpression":
|
|
1810
|
-
return
|
|
1810
|
+
return n = H(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1811
1811
|
}
|
|
1812
1812
|
return "???";
|
|
1813
1813
|
}
|
|
1814
|
-
function Lr(e, t,
|
|
1815
|
-
var
|
|
1816
|
-
|
|
1814
|
+
function Lr(e, t, n) {
|
|
1815
|
+
var r = e.o[e.o.length - 1], o = Array.from(n), s = o.shift();
|
|
1816
|
+
n = Math.max(Number(o.shift() || 0), 0);
|
|
1817
1817
|
var a = e.ya();
|
|
1818
1818
|
if (s instanceof j && s.H === "Function") {
|
|
1819
1819
|
var f = s;
|
|
1820
|
-
a.type = "CallExpression",
|
|
1820
|
+
a.type = "CallExpression", r = r.scope;
|
|
1821
1821
|
} else {
|
|
1822
1822
|
try {
|
|
1823
|
-
var d =
|
|
1823
|
+
var d = Oe(String(s), "taskCode" + e.ic++);
|
|
1824
1824
|
} catch (v) {
|
|
1825
1825
|
w(e, e.T, "Invalid code: " + v.message);
|
|
1826
1826
|
}
|
|
1827
|
-
a.type = "EvalProgram_", a.body = d.body,
|
|
1827
|
+
a.type = "EvalProgram_", a.body = d.body, r = r.node.arguments[0], lt(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1828
1828
|
}
|
|
1829
|
-
return t = new zn(f, o,
|
|
1829
|
+
return t = new zn(f, o, r, a, t ? n : -1), Zr(e, t, n), t.Db;
|
|
1830
1830
|
}
|
|
1831
|
-
function Zr(e, t,
|
|
1832
|
-
t.time = Date.now() +
|
|
1833
|
-
return
|
|
1831
|
+
function Zr(e, t, n) {
|
|
1832
|
+
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1833
|
+
return r.time - o.time;
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
1836
|
function Fr(e, t) {
|
|
1837
|
-
for (var
|
|
1838
|
-
if (e.ca[
|
|
1839
|
-
e.ca.splice(
|
|
1837
|
+
for (var n = 0; n < e.ca.length; n++)
|
|
1838
|
+
if (e.ca[n].Db == t) {
|
|
1839
|
+
e.ca.splice(n, 1);
|
|
1840
1840
|
break;
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
|
-
function Ye(e, t,
|
|
1843
|
+
function Ye(e, t, n) {
|
|
1844
1844
|
if (!e.P)
|
|
1845
1845
|
throw Error("Unexpected call to createGetter");
|
|
1846
|
-
e.P = !1,
|
|
1847
|
-
var
|
|
1848
|
-
return
|
|
1846
|
+
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1847
|
+
var r = e.ya();
|
|
1848
|
+
return r.type = "CallExpression", e = new m(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1849
1849
|
}
|
|
1850
|
-
function rr(e, t,
|
|
1850
|
+
function rr(e, t, n, r) {
|
|
1851
1851
|
if (!e.Ka)
|
|
1852
1852
|
throw Error("Unexpected call to createSetter");
|
|
1853
|
-
e.Ka = !1,
|
|
1853
|
+
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1854
1854
|
var o = e.ya();
|
|
1855
|
-
return o.type = "CallExpression", e = new m(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B =
|
|
1855
|
+
return o.type = "CallExpression", e = new m(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1856
1856
|
}
|
|
1857
1857
|
function Dt(e, t) {
|
|
1858
1858
|
return t == null ? e.Na : t instanceof j ? t : (e = e.s(ae(e, t)), e.data = t, e);
|
|
@@ -1869,8 +1869,8 @@ b.ec = function(e) {
|
|
|
1869
1869
|
function m(e, t) {
|
|
1870
1870
|
this.node = e, this.scope = t;
|
|
1871
1871
|
}
|
|
1872
|
-
function Qr(e, t,
|
|
1873
|
-
this.Va = e, this.S = t, this.object =
|
|
1872
|
+
function Qr(e, t, n) {
|
|
1873
|
+
this.Va = e, this.S = t, this.object = n;
|
|
1874
1874
|
}
|
|
1875
1875
|
function j(e) {
|
|
1876
1876
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
@@ -1880,7 +1880,7 @@ b.xa = null;
|
|
|
1880
1880
|
b.H = "Object";
|
|
1881
1881
|
b.data = null;
|
|
1882
1882
|
b.toString = function() {
|
|
1883
|
-
if (
|
|
1883
|
+
if (!Ve)
|
|
1884
1884
|
return "[object Interpreter.Object]";
|
|
1885
1885
|
if (!(this instanceof j))
|
|
1886
1886
|
return String(this);
|
|
@@ -1888,13 +1888,13 @@ b.toString = function() {
|
|
|
1888
1888
|
var e = Ur;
|
|
1889
1889
|
e.push(this);
|
|
1890
1890
|
try {
|
|
1891
|
-
var t = [],
|
|
1892
|
-
1024 <
|
|
1893
|
-
for (var o = 0; o <
|
|
1891
|
+
var t = [], n = this.h.length, r = !1;
|
|
1892
|
+
1024 < n && (n = 1e3, r = !0);
|
|
1893
|
+
for (var o = 0; o < n; o++) {
|
|
1894
1894
|
var s = this.h[o];
|
|
1895
1895
|
t[o] = s instanceof j && e.indexOf(s) !== -1 ? "..." : s;
|
|
1896
1896
|
}
|
|
1897
|
-
|
|
1897
|
+
r && t.push("...");
|
|
1898
1898
|
} finally {
|
|
1899
1899
|
e.pop();
|
|
1900
1900
|
}
|
|
@@ -1903,209 +1903,209 @@ b.toString = function() {
|
|
|
1903
1903
|
if (this.H === "Error") {
|
|
1904
1904
|
if (e = Ur, e.indexOf(this) !== -1)
|
|
1905
1905
|
return "[object Error]";
|
|
1906
|
-
|
|
1906
|
+
n = this;
|
|
1907
1907
|
do
|
|
1908
|
-
if ("name" in
|
|
1909
|
-
t =
|
|
1908
|
+
if ("name" in n.h) {
|
|
1909
|
+
t = n.h.name;
|
|
1910
1910
|
break;
|
|
1911
1911
|
}
|
|
1912
|
-
while (
|
|
1913
|
-
|
|
1912
|
+
while (n = n.xa);
|
|
1913
|
+
n = this;
|
|
1914
1914
|
do
|
|
1915
|
-
if ("message" in
|
|
1916
|
-
|
|
1915
|
+
if ("message" in n.h) {
|
|
1916
|
+
r = n.h.message;
|
|
1917
1917
|
break;
|
|
1918
1918
|
}
|
|
1919
|
-
while (
|
|
1919
|
+
while (n = n.xa);
|
|
1920
1920
|
e.push(this);
|
|
1921
1921
|
try {
|
|
1922
|
-
t = t && String(t),
|
|
1922
|
+
t = t && String(t), r = r && String(r);
|
|
1923
1923
|
} finally {
|
|
1924
1924
|
e.pop();
|
|
1925
1925
|
}
|
|
1926
|
-
return
|
|
1926
|
+
return r ? t + ": " + r : String(t);
|
|
1927
1927
|
}
|
|
1928
1928
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1929
1929
|
};
|
|
1930
1930
|
b.valueOf = function() {
|
|
1931
|
-
return
|
|
1931
|
+
return !Ve || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1932
1932
|
};
|
|
1933
|
-
function zn(e, t,
|
|
1934
|
-
this.zb = e, this.Lb = t, this.scope =
|
|
1933
|
+
function zn(e, t, n, r, o) {
|
|
1934
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Yn, this.time = 0;
|
|
1935
1935
|
}
|
|
1936
1936
|
var Yn = 0;
|
|
1937
|
-
h.prototype.stepArrayExpression = function(e, t,
|
|
1938
|
-
|
|
1939
|
-
var
|
|
1940
|
-
for (t.Oa ? (this.g(t.Oa,
|
|
1941
|
-
if (r
|
|
1942
|
-
return t.A =
|
|
1943
|
-
|
|
1937
|
+
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
1938
|
+
n = n.elements;
|
|
1939
|
+
var r = t.A || 0;
|
|
1940
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = je(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1941
|
+
if (n[r])
|
|
1942
|
+
return t.A = r, new m(n[r], t.scope);
|
|
1943
|
+
r++;
|
|
1944
1944
|
}
|
|
1945
1945
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1946
1946
|
};
|
|
1947
|
-
h.prototype.stepAssignmentExpression = function(e, t,
|
|
1947
|
+
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
1948
1948
|
if (!t.ja)
|
|
1949
|
-
return t.ja = !0, t = new m(
|
|
1949
|
+
return t.ja = !0, t = new m(n.left, t.scope), t.sa = !0, t;
|
|
1950
1950
|
if (!t.Da)
|
|
1951
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba &&
|
|
1951
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = er(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ye(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new m(n.right, t.scope));
|
|
1952
1952
|
if (t.ta)
|
|
1953
1953
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1954
1954
|
else {
|
|
1955
|
-
var
|
|
1956
|
-
switch (
|
|
1955
|
+
var r = t.ma, o = t.value;
|
|
1956
|
+
switch (n.operator) {
|
|
1957
1957
|
case "=":
|
|
1958
|
-
|
|
1958
|
+
r = o;
|
|
1959
1959
|
break;
|
|
1960
1960
|
case "+=":
|
|
1961
|
-
|
|
1961
|
+
r += o;
|
|
1962
1962
|
break;
|
|
1963
1963
|
case "-=":
|
|
1964
|
-
|
|
1964
|
+
r -= o;
|
|
1965
1965
|
break;
|
|
1966
1966
|
case "*=":
|
|
1967
|
-
|
|
1967
|
+
r *= o;
|
|
1968
1968
|
break;
|
|
1969
1969
|
case "/=":
|
|
1970
|
-
|
|
1970
|
+
r /= o;
|
|
1971
1971
|
break;
|
|
1972
1972
|
case "%=":
|
|
1973
|
-
|
|
1973
|
+
r %= o;
|
|
1974
1974
|
break;
|
|
1975
1975
|
case "<<=":
|
|
1976
|
-
|
|
1976
|
+
r <<= o;
|
|
1977
1977
|
break;
|
|
1978
1978
|
case ">>=":
|
|
1979
|
-
|
|
1979
|
+
r >>= o;
|
|
1980
1980
|
break;
|
|
1981
1981
|
case ">>>=":
|
|
1982
|
-
|
|
1982
|
+
r >>>= o;
|
|
1983
1983
|
break;
|
|
1984
1984
|
case "&=":
|
|
1985
|
-
|
|
1985
|
+
r &= o;
|
|
1986
1986
|
break;
|
|
1987
1987
|
case "^=":
|
|
1988
|
-
|
|
1988
|
+
r ^= o;
|
|
1989
1989
|
break;
|
|
1990
1990
|
case "|=":
|
|
1991
|
-
|
|
1991
|
+
r |= o;
|
|
1992
1992
|
break;
|
|
1993
1993
|
default:
|
|
1994
|
-
throw SyntaxError("Unknown assignment expression: " +
|
|
1994
|
+
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
1995
1995
|
}
|
|
1996
|
-
if (
|
|
1997
|
-
return t.ta = !0, t.ib =
|
|
1998
|
-
e.pop(), e[e.length - 1].value =
|
|
1996
|
+
if (n = tr(this, t.Fa, r))
|
|
1997
|
+
return t.ta = !0, t.ib = r, rr(this, n, t.Fa, r);
|
|
1998
|
+
e.pop(), e[e.length - 1].value = r;
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
2001
|
-
h.prototype.stepBinaryExpression = function(e, t,
|
|
2001
|
+
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2002
2002
|
if (!t.ja)
|
|
2003
|
-
return t.ja = !0, new m(
|
|
2003
|
+
return t.ja = !0, new m(n.left, t.scope);
|
|
2004
2004
|
if (!t.Da)
|
|
2005
|
-
return t.Da = !0, t.ma = t.value, new m(
|
|
2005
|
+
return t.Da = !0, t.ma = t.value, new m(n.right, t.scope);
|
|
2006
2006
|
e.pop();
|
|
2007
|
-
var
|
|
2008
|
-
switch (t = t.value,
|
|
2007
|
+
var r = t.ma;
|
|
2008
|
+
switch (t = t.value, n.operator) {
|
|
2009
2009
|
case "==":
|
|
2010
|
-
|
|
2010
|
+
n = r == t;
|
|
2011
2011
|
break;
|
|
2012
2012
|
case "!=":
|
|
2013
|
-
|
|
2013
|
+
n = r != t;
|
|
2014
2014
|
break;
|
|
2015
2015
|
case "===":
|
|
2016
|
-
|
|
2016
|
+
n = r === t;
|
|
2017
2017
|
break;
|
|
2018
2018
|
case "!==":
|
|
2019
|
-
|
|
2019
|
+
n = r !== t;
|
|
2020
2020
|
break;
|
|
2021
2021
|
case ">":
|
|
2022
|
-
|
|
2022
|
+
n = r > t;
|
|
2023
2023
|
break;
|
|
2024
2024
|
case ">=":
|
|
2025
|
-
|
|
2025
|
+
n = r >= t;
|
|
2026
2026
|
break;
|
|
2027
2027
|
case "<":
|
|
2028
|
-
|
|
2028
|
+
n = r < t;
|
|
2029
2029
|
break;
|
|
2030
2030
|
case "<=":
|
|
2031
|
-
|
|
2031
|
+
n = r <= t;
|
|
2032
2032
|
break;
|
|
2033
2033
|
case "+":
|
|
2034
|
-
|
|
2034
|
+
n = r + t;
|
|
2035
2035
|
break;
|
|
2036
2036
|
case "-":
|
|
2037
|
-
|
|
2037
|
+
n = r - t;
|
|
2038
2038
|
break;
|
|
2039
2039
|
case "*":
|
|
2040
|
-
|
|
2040
|
+
n = r * t;
|
|
2041
2041
|
break;
|
|
2042
2042
|
case "/":
|
|
2043
|
-
|
|
2043
|
+
n = r / t;
|
|
2044
2044
|
break;
|
|
2045
2045
|
case "%":
|
|
2046
|
-
|
|
2046
|
+
n = r % t;
|
|
2047
2047
|
break;
|
|
2048
2048
|
case "&":
|
|
2049
|
-
|
|
2049
|
+
n = r & t;
|
|
2050
2050
|
break;
|
|
2051
2051
|
case "|":
|
|
2052
|
-
|
|
2052
|
+
n = r | t;
|
|
2053
2053
|
break;
|
|
2054
2054
|
case "^":
|
|
2055
|
-
|
|
2055
|
+
n = r ^ t;
|
|
2056
2056
|
break;
|
|
2057
2057
|
case "<<":
|
|
2058
|
-
|
|
2058
|
+
n = r << t;
|
|
2059
2059
|
break;
|
|
2060
2060
|
case ">>":
|
|
2061
|
-
|
|
2061
|
+
n = r >> t;
|
|
2062
2062
|
break;
|
|
2063
2063
|
case ">>>":
|
|
2064
|
-
|
|
2064
|
+
n = r >>> t;
|
|
2065
2065
|
break;
|
|
2066
2066
|
case "in":
|
|
2067
|
-
t instanceof j || w(this, this.j, "'in' expects an object, not '" + t + "'"),
|
|
2067
|
+
t instanceof j || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ut(this, t, r);
|
|
2068
2068
|
break;
|
|
2069
2069
|
case "instanceof":
|
|
2070
|
-
G(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"),
|
|
2070
|
+
G(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof j ? G(this, r, t) : !1;
|
|
2071
2071
|
break;
|
|
2072
2072
|
default:
|
|
2073
|
-
throw SyntaxError("Unknown binary operator: " +
|
|
2073
|
+
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
2074
2074
|
}
|
|
2075
|
-
e[e.length - 1].value =
|
|
2075
|
+
e[e.length - 1].value = n;
|
|
2076
2076
|
};
|
|
2077
|
-
h.prototype.stepBlockStatement = function(e, t,
|
|
2078
|
-
var
|
|
2079
|
-
if (
|
|
2080
|
-
return t.A =
|
|
2077
|
+
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2078
|
+
var r = t.A || 0;
|
|
2079
|
+
if (n = n.body[r])
|
|
2080
|
+
return t.A = r + 1, new m(n, t.scope);
|
|
2081
2081
|
e.pop();
|
|
2082
2082
|
};
|
|
2083
|
-
h.prototype.stepBreakStatement = function(e, t,
|
|
2084
|
-
ze(this, 1, void 0,
|
|
2083
|
+
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
2084
|
+
ze(this, 1, void 0, n.label && n.label.name);
|
|
2085
2085
|
};
|
|
2086
2086
|
h.prototype.Hb = 0;
|
|
2087
|
-
h.prototype.stepCallExpression = function(e, t,
|
|
2087
|
+
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2088
2088
|
if (!t.ia) {
|
|
2089
2089
|
t.ia = 1;
|
|
2090
|
-
var
|
|
2091
|
-
return
|
|
2090
|
+
var r = new m(n.callee, t.scope);
|
|
2091
|
+
return r.sa = !0, r;
|
|
2092
2092
|
}
|
|
2093
2093
|
if (t.ia === 1) {
|
|
2094
2094
|
t.ia = 2;
|
|
2095
2095
|
var o = t.value;
|
|
2096
2096
|
if (Array.isArray(o)) {
|
|
2097
|
-
if (t.U = er(this, o), o[0] ===
|
|
2097
|
+
if (t.U = er(this, o), o[0] === Ae ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2098
2098
|
return t.ia = 1, Ye(this, o, t.value);
|
|
2099
2099
|
} else
|
|
2100
2100
|
t.U = o;
|
|
2101
2101
|
t.F = [], t.A = 0;
|
|
2102
2102
|
}
|
|
2103
2103
|
if (o = t.U, !t.Qa) {
|
|
2104
|
-
if (t.A !== 0 && t.F.push(t.value),
|
|
2105
|
-
return new m(
|
|
2106
|
-
if (
|
|
2107
|
-
if (o instanceof j && !o.Ab || w(this, this.j, H(this,
|
|
2108
|
-
t.B =
|
|
2104
|
+
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2105
|
+
return new m(n.arguments[t.A++], t.scope);
|
|
2106
|
+
if (n.type === "NewExpression") {
|
|
2107
|
+
if (o instanceof j && !o.Ab || w(this, this.j, H(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2108
|
+
t.B = je(this);
|
|
2109
2109
|
else {
|
|
2110
2110
|
var s = o.h.prototype;
|
|
2111
2111
|
(typeof s != "object" || s === null) && (s = this.M), t.B = this.s(s);
|
|
@@ -2117,98 +2117,98 @@ h.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2117
2117
|
if (t.eb)
|
|
2118
2118
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2119
2119
|
else {
|
|
2120
|
-
if (t.eb = !0, o instanceof j || w(this, this.j, H(this,
|
|
2121
|
-
for (
|
|
2122
|
-
this.g(
|
|
2123
|
-
for (this.g(
|
|
2124
|
-
this.g(
|
|
2125
|
-
return
|
|
2120
|
+
if (t.eb = !0, o instanceof j || w(this, this.j, H(this, n.callee) + " is not a function"), e = o.node) {
|
|
2121
|
+
for (n = $t(this, e.body, o.Va), r = je(this), o = 0; o < t.F.length; o++)
|
|
2122
|
+
this.g(r, o, t.F[o]);
|
|
2123
|
+
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2124
|
+
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2125
|
+
return n.S || (t.B = Dt(this, t.B)), this.g(n.object, "this", t.B, Ht), t.value = void 0, new m(e.body, n);
|
|
2126
2126
|
}
|
|
2127
2127
|
if (o.eval)
|
|
2128
2128
|
if (o = t.F[0], typeof o != "string")
|
|
2129
2129
|
t.value = o;
|
|
2130
2130
|
else {
|
|
2131
2131
|
try {
|
|
2132
|
-
|
|
2132
|
+
r = Oe(String(o), "eval" + this.Hb++);
|
|
2133
2133
|
} catch (f) {
|
|
2134
2134
|
w(this, this.T, "Invalid code: " + f.message);
|
|
2135
2135
|
}
|
|
2136
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body =
|
|
2136
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, lt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Ke(this, r, n), this.value = void 0, new m(o, n);
|
|
2137
2137
|
}
|
|
2138
2138
|
else if (o.Ta)
|
|
2139
2139
|
t.scope.S || (t.B = Dt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2140
2140
|
else if (o.Za) {
|
|
2141
2141
|
var a = this;
|
|
2142
|
-
|
|
2142
|
+
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(f) {
|
|
2143
2143
|
t.value = f, a.za = !1;
|
|
2144
|
-
}), this.za = !0, t.scope.S || (t.B = Dt(this, t.B)), o.Za.apply(t.B,
|
|
2144
|
+
}), this.za = !0, t.scope.S || (t.B = Dt(this, t.B)), o.Za.apply(t.B, r);
|
|
2145
2145
|
} else
|
|
2146
|
-
w(this, this.j, H(this,
|
|
2146
|
+
w(this, this.j, H(this, n.callee) + " is not callable");
|
|
2147
2147
|
}
|
|
2148
2148
|
};
|
|
2149
|
-
h.prototype.stepConditionalExpression = function(e, t,
|
|
2150
|
-
var
|
|
2151
|
-
if (
|
|
2152
|
-
return t.na = 1, new m(
|
|
2153
|
-
if (
|
|
2154
|
-
if (t.na = 2, (
|
|
2155
|
-
return new m(
|
|
2156
|
-
if (!
|
|
2157
|
-
return new m(
|
|
2149
|
+
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2150
|
+
var r = t.na || 0;
|
|
2151
|
+
if (r === 0)
|
|
2152
|
+
return t.na = 1, new m(n.test, t.scope);
|
|
2153
|
+
if (r === 1) {
|
|
2154
|
+
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2155
|
+
return new m(n.da, t.scope);
|
|
2156
|
+
if (!r && n.alternate)
|
|
2157
|
+
return new m(n.alternate, t.scope);
|
|
2158
2158
|
this.value = void 0;
|
|
2159
2159
|
}
|
|
2160
|
-
e.pop(),
|
|
2160
|
+
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2161
2161
|
};
|
|
2162
|
-
h.prototype.stepContinueStatement = function(e, t,
|
|
2163
|
-
ze(this, 2, void 0,
|
|
2162
|
+
h.prototype.stepContinueStatement = function(e, t, n) {
|
|
2163
|
+
ze(this, 2, void 0, n.label && n.label.name);
|
|
2164
2164
|
};
|
|
2165
2165
|
h.prototype.stepDebuggerStatement = function(e) {
|
|
2166
2166
|
e.pop();
|
|
2167
2167
|
};
|
|
2168
|
-
h.prototype.stepDoWhileStatement = function(e, t,
|
|
2169
|
-
if (
|
|
2170
|
-
return t.ga = !0, new m(
|
|
2168
|
+
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2169
|
+
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2170
|
+
return t.ga = !0, new m(n.test, t.scope);
|
|
2171
2171
|
if (!t.value)
|
|
2172
2172
|
e.pop();
|
|
2173
|
-
else if (
|
|
2174
|
-
return t.ga = !1, t.W = !0, new m(
|
|
2173
|
+
else if (n.body)
|
|
2174
|
+
return t.ga = !1, t.W = !0, new m(n.body, t.scope);
|
|
2175
2175
|
};
|
|
2176
2176
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2177
2177
|
e.pop();
|
|
2178
2178
|
};
|
|
2179
|
-
h.prototype.stepEvalProgram_ = function(e, t,
|
|
2180
|
-
var
|
|
2181
|
-
if (
|
|
2182
|
-
return t.A =
|
|
2179
|
+
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2180
|
+
var r = t.A || 0;
|
|
2181
|
+
if (n = n.body[r])
|
|
2182
|
+
return t.A = r + 1, new m(n, t.scope);
|
|
2183
2183
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2184
2184
|
};
|
|
2185
|
-
h.prototype.stepExpressionStatement = function(e, t,
|
|
2185
|
+
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2186
2186
|
if (!t.ka)
|
|
2187
|
-
return this.value = void 0, t.ka = !0, new m(
|
|
2187
|
+
return this.value = void 0, t.ka = !0, new m(n.la, t.scope);
|
|
2188
2188
|
e.pop(), this.value = t.value;
|
|
2189
2189
|
};
|
|
2190
|
-
h.prototype.stepForInStatement = function(e, t,
|
|
2191
|
-
if (!t.Ub && (t.Ub = !0,
|
|
2192
|
-
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new m(
|
|
2190
|
+
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2191
|
+
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2192
|
+
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new m(n.left, t.scope);
|
|
2193
2193
|
if (!t.Ca)
|
|
2194
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new m(
|
|
2194
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new m(n.right, t.scope);
|
|
2195
2195
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2196
2196
|
e:
|
|
2197
2197
|
for (; ; ) {
|
|
2198
2198
|
if (t.u instanceof j)
|
|
2199
2199
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2200
|
-
var
|
|
2201
|
-
if (
|
|
2200
|
+
var r = t.wa.shift();
|
|
2201
|
+
if (r === void 0)
|
|
2202
2202
|
break;
|
|
2203
|
-
if (Object.prototype.hasOwnProperty.call(t.u.h,
|
|
2204
|
-
t.Ra =
|
|
2203
|
+
if (Object.prototype.hasOwnProperty.call(t.u.h, r) && !t.kb[r] && (t.kb[r] = !0, Object.prototype.propertyIsEnumerable.call(t.u.h, r))) {
|
|
2204
|
+
t.Ra = r;
|
|
2205
2205
|
break e;
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
2208
|
else if (t.u !== null && t.u !== void 0) {
|
|
2209
|
-
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u));
|
|
2210
|
-
if (t.kb[
|
|
2211
|
-
t.Ra =
|
|
2209
|
+
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u)); r = t.wa.shift(), r !== void 0; )
|
|
2210
|
+
if (t.kb[r] = !0, Object.prototype.propertyIsEnumerable.call(t.u, r)) {
|
|
2211
|
+
t.Ra = r;
|
|
2212
2212
|
break e;
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
@@ -2218,94 +2218,94 @@ h.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2218
2218
|
}
|
|
2219
2219
|
}
|
|
2220
2220
|
if (!t.wb)
|
|
2221
|
-
if (t.wb = !0, e =
|
|
2222
|
-
t.pa = [
|
|
2221
|
+
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2222
|
+
t.pa = [Ae, e.fa[0].id.name];
|
|
2223
2223
|
else
|
|
2224
2224
|
return t.pa = null, t = new m(e, t.scope), t.sa = !0, t;
|
|
2225
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra,
|
|
2226
|
-
return rr(this,
|
|
2227
|
-
if (t.Ra = void 0, t.wb = !1, t.ta = !1,
|
|
2228
|
-
return new m(
|
|
2225
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = tr(this, t.pa, e)))
|
|
2226
|
+
return rr(this, r, t.pa, e);
|
|
2227
|
+
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2228
|
+
return new m(n.body, t.scope);
|
|
2229
2229
|
};
|
|
2230
|
-
h.prototype.stepForStatement = function(e, t,
|
|
2230
|
+
h.prototype.stepForStatement = function(e, t, n) {
|
|
2231
2231
|
switch (t.na) {
|
|
2232
2232
|
default:
|
|
2233
|
-
if (t.na = 1,
|
|
2234
|
-
return new m(
|
|
2233
|
+
if (t.na = 1, n.ua)
|
|
2234
|
+
return new m(n.ua, t.scope);
|
|
2235
2235
|
break;
|
|
2236
2236
|
case 1:
|
|
2237
|
-
if (t.na = 2,
|
|
2238
|
-
return new m(
|
|
2237
|
+
if (t.na = 2, n.test)
|
|
2238
|
+
return new m(n.test, t.scope);
|
|
2239
2239
|
break;
|
|
2240
2240
|
case 2:
|
|
2241
|
-
if (t.na = 3,
|
|
2241
|
+
if (t.na = 3, n.test && !t.value)
|
|
2242
2242
|
e.pop();
|
|
2243
2243
|
else
|
|
2244
|
-
return t.W = !0, new m(
|
|
2244
|
+
return t.W = !0, new m(n.body, t.scope);
|
|
2245
2245
|
break;
|
|
2246
2246
|
case 3:
|
|
2247
|
-
if (t.na = 1,
|
|
2248
|
-
return new m(
|
|
2247
|
+
if (t.na = 1, n.update)
|
|
2248
|
+
return new m(n.update, t.scope);
|
|
2249
2249
|
}
|
|
2250
2250
|
};
|
|
2251
2251
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
2252
2252
|
e.pop();
|
|
2253
2253
|
};
|
|
2254
|
-
h.prototype.stepFunctionExpression = function(e, t,
|
|
2255
|
-
e.pop(), t = e[e.length - 1], e = t.scope,
|
|
2254
|
+
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2255
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Qt(this, e)), t.value = Yt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Ht);
|
|
2256
2256
|
};
|
|
2257
|
-
h.prototype.stepIdentifier = function(e, t,
|
|
2257
|
+
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2258
2258
|
if (e.pop(), t.sa)
|
|
2259
|
-
e[e.length - 1].value = [
|
|
2259
|
+
e[e.length - 1].value = [Ae, n.name];
|
|
2260
2260
|
else {
|
|
2261
|
-
if (t = qt(this,
|
|
2261
|
+
if (t = qt(this, n.name), this.P)
|
|
2262
2262
|
return Ye(this, t, this.Na);
|
|
2263
2263
|
e[e.length - 1].value = t;
|
|
2264
2264
|
}
|
|
2265
2265
|
};
|
|
2266
2266
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2267
|
-
h.prototype.stepLabeledStatement = function(e, t,
|
|
2268
|
-
return e.pop(), e = t.labels || [], e.push(
|
|
2267
|
+
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2268
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new m(n.body, t.scope), t.labels = e, t;
|
|
2269
2269
|
};
|
|
2270
|
-
h.prototype.stepLiteral = function(e, t,
|
|
2271
|
-
e.pop(), t =
|
|
2270
|
+
h.prototype.stepLiteral = function(e, t, n) {
|
|
2271
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), Kt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2272
2272
|
};
|
|
2273
|
-
h.prototype.stepLogicalExpression = function(e, t,
|
|
2274
|
-
if (
|
|
2275
|
-
throw SyntaxError("Unknown logical operator: " +
|
|
2273
|
+
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2274
|
+
if (n.operator !== "&&" && n.operator !== "||")
|
|
2275
|
+
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2276
2276
|
if (!t.ja)
|
|
2277
|
-
return t.ja = !0, new m(
|
|
2277
|
+
return t.ja = !0, new m(n.left, t.scope);
|
|
2278
2278
|
if (t.Da)
|
|
2279
2279
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2280
|
-
else if (
|
|
2280
|
+
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2281
2281
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2282
2282
|
else
|
|
2283
|
-
return t.Da = !0, new m(
|
|
2283
|
+
return t.Da = !0, new m(n.right, t.scope);
|
|
2284
2284
|
};
|
|
2285
|
-
h.prototype.stepMemberExpression = function(e, t,
|
|
2285
|
+
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2286
2286
|
if (!t.Ca)
|
|
2287
|
-
return t.Ca = !0, new m(
|
|
2288
|
-
if (
|
|
2287
|
+
return t.Ca = !0, new m(n.object, t.scope);
|
|
2288
|
+
if (n.bb)
|
|
2289
2289
|
if (t.Vb)
|
|
2290
|
-
|
|
2290
|
+
n = t.value;
|
|
2291
2291
|
else
|
|
2292
|
-
return t.u = t.value, t.Vb = !0, new m(
|
|
2292
|
+
return t.u = t.value, t.Vb = !0, new m(n.Wa, t.scope);
|
|
2293
2293
|
else
|
|
2294
|
-
t.u = t.value,
|
|
2294
|
+
t.u = t.value, n = n.Wa.name;
|
|
2295
2295
|
if (e.pop(), t.sa)
|
|
2296
|
-
e[e.length - 1].value = [t.u,
|
|
2296
|
+
e[e.length - 1].value = [t.u, n];
|
|
2297
2297
|
else {
|
|
2298
|
-
if (
|
|
2299
|
-
return Ye(this,
|
|
2300
|
-
e[e.length - 1].value =
|
|
2298
|
+
if (n = this.G(t.u, n), this.P)
|
|
2299
|
+
return Ye(this, n, t.u);
|
|
2300
|
+
e[e.length - 1].value = n;
|
|
2301
2301
|
}
|
|
2302
2302
|
};
|
|
2303
2303
|
h.prototype.stepNewExpression = h.prototype.stepCallExpression;
|
|
2304
|
-
h.prototype.stepObjectExpression = function(e, t,
|
|
2305
|
-
var
|
|
2304
|
+
h.prototype.stepObjectExpression = function(e, t, n) {
|
|
2305
|
+
var r = t.A || 0, o = n.h[r];
|
|
2306
2306
|
if (t.u) {
|
|
2307
2307
|
var s = t.Pa;
|
|
2308
|
-
t.Ja[s] || (t.Ja[s] = {}), t.Ja[s][o.kind] = t.value, t.A = ++
|
|
2308
|
+
t.Ja[s] || (t.Ja[s] = {}), t.Ja[s][o.kind] = t.value, t.A = ++r, o = n.h[r];
|
|
2309
2309
|
} else
|
|
2310
2310
|
t.u = this.s(this.M), t.Ja = /* @__PURE__ */ Object.create(null);
|
|
2311
2311
|
if (o) {
|
|
@@ -2319,35 +2319,35 @@ h.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2319
2319
|
return t.Pa = s, new m(o.value, t.scope);
|
|
2320
2320
|
}
|
|
2321
2321
|
for (a in t.Ja)
|
|
2322
|
-
|
|
2322
|
+
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a, Je, {
|
|
2323
2323
|
configurable: !0,
|
|
2324
2324
|
enumerable: !0,
|
|
2325
|
-
get:
|
|
2326
|
-
set:
|
|
2327
|
-
}) : this.g(t.u, a,
|
|
2325
|
+
get: n.get,
|
|
2326
|
+
set: n.set
|
|
2327
|
+
}) : this.g(t.u, a, n.init);
|
|
2328
2328
|
e.pop(), e[e.length - 1].value = t.u;
|
|
2329
2329
|
};
|
|
2330
|
-
h.prototype.stepProgram = function(e, t,
|
|
2331
|
-
if (e =
|
|
2330
|
+
h.prototype.stepProgram = function(e, t, n) {
|
|
2331
|
+
if (e = n.body.shift())
|
|
2332
2332
|
return t.done = !1, new m(e, t.scope);
|
|
2333
2333
|
t.done = !0;
|
|
2334
2334
|
};
|
|
2335
|
-
h.prototype.stepReturnStatement = function(e, t,
|
|
2336
|
-
if (
|
|
2337
|
-
return t.ka = !0, new m(
|
|
2335
|
+
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2336
|
+
if (n.K && !t.ka)
|
|
2337
|
+
return t.ka = !0, new m(n.K, t.scope);
|
|
2338
2338
|
ze(this, 3, t.value);
|
|
2339
2339
|
};
|
|
2340
|
-
h.prototype.stepSequenceExpression = function(e, t,
|
|
2341
|
-
var
|
|
2342
|
-
if (
|
|
2343
|
-
return t.A =
|
|
2340
|
+
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2341
|
+
var r = t.A || 0;
|
|
2342
|
+
if (n = n.xb[r])
|
|
2343
|
+
return t.A = r + 1, new m(n, t.scope);
|
|
2344
2344
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2345
2345
|
};
|
|
2346
|
-
h.prototype.stepSwitchStatement = function(e, t,
|
|
2346
|
+
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2347
2347
|
if (!t.ga)
|
|
2348
|
-
return t.ga = 1, new m(
|
|
2348
|
+
return t.ga = 1, new m(n.Qb, t.scope);
|
|
2349
2349
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2350
|
-
var
|
|
2350
|
+
var r = t.gb || 0, o = n.tb[r];
|
|
2351
2351
|
if (t.Ha || !o || o.test)
|
|
2352
2352
|
if (o || t.Ha || t.cb === -1)
|
|
2353
2353
|
if (o) {
|
|
@@ -2359,7 +2359,7 @@ h.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2359
2359
|
if (o.da[s])
|
|
2360
2360
|
return t.Zb = !0, t.A = s + 1, new m(o.da[s], t.scope);
|
|
2361
2361
|
}
|
|
2362
|
-
t.Fb = !1, t.A = 0, t.gb =
|
|
2362
|
+
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2363
2363
|
} else {
|
|
2364
2364
|
e.pop();
|
|
2365
2365
|
break;
|
|
@@ -2367,105 +2367,105 @@ h.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2367
2367
|
else
|
|
2368
2368
|
t.Ha = !0, t.gb = t.cb;
|
|
2369
2369
|
else
|
|
2370
|
-
t.cb =
|
|
2370
|
+
t.cb = r, t.gb = r + 1;
|
|
2371
2371
|
}
|
|
2372
2372
|
};
|
|
2373
2373
|
h.prototype.stepThisExpression = function(e) {
|
|
2374
2374
|
e.pop(), e[e.length - 1].value = qt(this, "this");
|
|
2375
2375
|
};
|
|
2376
|
-
h.prototype.stepThrowStatement = function(e, t,
|
|
2376
|
+
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2377
2377
|
if (t.ka)
|
|
2378
2378
|
w(this, t.value);
|
|
2379
2379
|
else
|
|
2380
|
-
return t.ka = !0, new m(
|
|
2380
|
+
return t.ka = !0, new m(n.K, t.scope);
|
|
2381
2381
|
};
|
|
2382
|
-
h.prototype.stepTryStatement = function(e, t,
|
|
2382
|
+
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2383
2383
|
if (!t.Rb)
|
|
2384
|
-
return t.Rb = !0, new m(
|
|
2385
|
-
if (t.ea && t.ea.type === 4 && !t.Tb &&
|
|
2386
|
-
return t.Tb = !0, e = Qt(this, t.scope), this.g(e.object,
|
|
2387
|
-
if (!t.Sb &&
|
|
2388
|
-
return t.Sb = !0, new m(
|
|
2384
|
+
return t.Rb = !0, new m(n.block, t.scope);
|
|
2385
|
+
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2386
|
+
return t.Tb = !0, e = Qt(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new m(n.Ea.body, e);
|
|
2387
|
+
if (!t.Sb && n.fb)
|
|
2388
|
+
return t.Sb = !0, new m(n.fb, t.scope);
|
|
2389
2389
|
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2390
2390
|
};
|
|
2391
|
-
h.prototype.stepUnaryExpression = function(e, t,
|
|
2391
|
+
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2392
2392
|
if (!t.ka)
|
|
2393
|
-
return t.ka = !0, e = new m(
|
|
2393
|
+
return t.ka = !0, e = new m(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2394
2394
|
e.pop();
|
|
2395
|
-
var
|
|
2396
|
-
switch (
|
|
2395
|
+
var r = t.value;
|
|
2396
|
+
switch (n.operator) {
|
|
2397
2397
|
case "-":
|
|
2398
|
-
|
|
2398
|
+
r = -r;
|
|
2399
2399
|
break;
|
|
2400
2400
|
case "+":
|
|
2401
|
-
|
|
2401
|
+
r = +r;
|
|
2402
2402
|
break;
|
|
2403
2403
|
case "!":
|
|
2404
|
-
|
|
2404
|
+
r = !r;
|
|
2405
2405
|
break;
|
|
2406
2406
|
case "~":
|
|
2407
|
-
|
|
2407
|
+
r = ~r;
|
|
2408
2408
|
break;
|
|
2409
2409
|
case "delete":
|
|
2410
|
-
if (
|
|
2411
|
-
var o =
|
|
2412
|
-
o ===
|
|
2410
|
+
if (n = !0, Array.isArray(r)) {
|
|
2411
|
+
var o = r[0];
|
|
2412
|
+
o === Ae && (o = t.scope), r = String(r[1]);
|
|
2413
2413
|
try {
|
|
2414
|
-
delete o.h[
|
|
2414
|
+
delete o.h[r];
|
|
2415
2415
|
} catch {
|
|
2416
|
-
t.scope.S ? w(this, this.j, "Cannot delete property '" +
|
|
2416
|
+
t.scope.S ? w(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2417
2417
|
}
|
|
2418
2418
|
}
|
|
2419
|
-
|
|
2419
|
+
r = n;
|
|
2420
2420
|
break;
|
|
2421
2421
|
case "typeof":
|
|
2422
|
-
|
|
2422
|
+
r = r && r.H === "Function" ? "function" : typeof r;
|
|
2423
2423
|
break;
|
|
2424
2424
|
case "void":
|
|
2425
|
-
|
|
2425
|
+
r = void 0;
|
|
2426
2426
|
break;
|
|
2427
2427
|
default:
|
|
2428
|
-
throw SyntaxError("Unknown unary operator: " +
|
|
2428
|
+
throw SyntaxError("Unknown unary operator: " + n.operator);
|
|
2429
2429
|
}
|
|
2430
|
-
e[e.length - 1].value =
|
|
2430
|
+
e[e.length - 1].value = r;
|
|
2431
2431
|
};
|
|
2432
|
-
h.prototype.stepUpdateExpression = function(e, t,
|
|
2432
|
+
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2433
2433
|
if (!t.ja)
|
|
2434
|
-
return t.ja = !0, e = new m(
|
|
2434
|
+
return t.ja = !0, e = new m(n.K, t.scope), e.sa = !0, e;
|
|
2435
2435
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2436
|
-
var
|
|
2437
|
-
if (t.ma =
|
|
2438
|
-
return t.Ba = !0, Ye(this,
|
|
2436
|
+
var r = er(this, t.Ga);
|
|
2437
|
+
if (t.ma = r, this.P)
|
|
2438
|
+
return t.Ba = !0, Ye(this, r, t.Ga);
|
|
2439
2439
|
}
|
|
2440
2440
|
if (t.ta)
|
|
2441
2441
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2442
2442
|
else {
|
|
2443
|
-
if (
|
|
2444
|
-
var o =
|
|
2445
|
-
else if (
|
|
2446
|
-
o =
|
|
2443
|
+
if (r = Number(t.ma), n.operator === "++")
|
|
2444
|
+
var o = r + 1;
|
|
2445
|
+
else if (n.operator === "--")
|
|
2446
|
+
o = r - 1;
|
|
2447
2447
|
else
|
|
2448
|
-
throw SyntaxError("Unknown update expression: " +
|
|
2449
|
-
if (
|
|
2450
|
-
return t.ta = !0, t.ib =
|
|
2451
|
-
e.pop(), e[e.length - 1].value =
|
|
2448
|
+
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2449
|
+
if (n = n.prefix ? o : r, r = tr(this, t.Ga, o))
|
|
2450
|
+
return t.ta = !0, t.ib = n, rr(this, r, t.Ga, o);
|
|
2451
|
+
e.pop(), e[e.length - 1].value = n;
|
|
2452
2452
|
}
|
|
2453
2453
|
};
|
|
2454
|
-
h.prototype.stepVariableDeclaration = function(e, t,
|
|
2455
|
-
|
|
2456
|
-
var
|
|
2457
|
-
for (t.Bb && o && (Yr(this, o.id.name, t.value), t.Bb = !1, o =
|
|
2454
|
+
h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2455
|
+
n = n.fa;
|
|
2456
|
+
var r = t.A || 0, o = n[r];
|
|
2457
|
+
for (t.Bb && o && (Yr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2458
2458
|
if (o.ua)
|
|
2459
|
-
return t.A =
|
|
2460
|
-
o =
|
|
2459
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new m(o.ua, t.scope);
|
|
2460
|
+
o = n[++r];
|
|
2461
2461
|
}
|
|
2462
2462
|
e.pop();
|
|
2463
2463
|
};
|
|
2464
|
-
h.prototype.stepWithStatement = function(e, t,
|
|
2465
|
-
return t.Ca ? (e.pop(), e = Qt(this, t.scope, t.value), new m(
|
|
2464
|
+
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2465
|
+
return t.Ca ? (e.pop(), e = Qt(this, t.scope, t.value), new m(n.body, e)) : (t.Ca = !0, new m(n.object, t.scope));
|
|
2466
2466
|
};
|
|
2467
2467
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2468
|
-
|
|
2468
|
+
he.Interpreter = h;
|
|
2469
2469
|
h.prototype.step = h.prototype.lb;
|
|
2470
2470
|
h.prototype.run = h.prototype.Eb;
|
|
2471
2471
|
h.prototype.appendCode = h.prototype.Jb;
|
|
@@ -2483,13 +2483,13 @@ h.prototype.setStateStack = h.prototype.ec;
|
|
|
2483
2483
|
h.VALUE_IN_DESCRIPTOR = Je;
|
|
2484
2484
|
function Zn() {
|
|
2485
2485
|
const e = h.prototype.getProperty, t = h.prototype.setProperty;
|
|
2486
|
-
function
|
|
2486
|
+
function n(a, f) {
|
|
2487
2487
|
if (a == null || !a._connected)
|
|
2488
2488
|
return e.call(this, a, f);
|
|
2489
2489
|
const d = a._connected[f];
|
|
2490
2490
|
return Array.isArray(d) ? this.nativeToPseudo(d) : typeof d == "object" ? this.createConnectedObject(d) : d;
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function r(a, f, d, v) {
|
|
2493
2493
|
if (a == null || !a._connected)
|
|
2494
2494
|
return t.call(this, a, f, d, v);
|
|
2495
2495
|
a._connected[f] = this.pseudoToNative(d);
|
|
@@ -2498,9 +2498,9 @@ function Zn() {
|
|
|
2498
2498
|
for (const a of Object.keys(h.prototype))
|
|
2499
2499
|
h.prototype[a] === e && o.push(a), h.prototype[a] === t && s.push(a);
|
|
2500
2500
|
for (const a of o)
|
|
2501
|
-
h.prototype[a] = r;
|
|
2502
|
-
for (const a of s)
|
|
2503
2501
|
h.prototype[a] = n;
|
|
2502
|
+
for (const a of s)
|
|
2503
|
+
h.prototype[a] = r;
|
|
2504
2504
|
h.prototype.createConnectedObject = function(a) {
|
|
2505
2505
|
const f = this.createObject(this.OBJECT);
|
|
2506
2506
|
return f._connected = a, f;
|
|
@@ -2513,20 +2513,20 @@ __generator = function (e, t) { return t() };
|
|
|
2513
2513
|
function main()`).replace(/\?\./g, "."), Wr = (e) => e + "JSON", qn = ({
|
|
2514
2514
|
builder: e,
|
|
2515
2515
|
context: t,
|
|
2516
|
-
event:
|
|
2517
|
-
rootState:
|
|
2516
|
+
event: n,
|
|
2517
|
+
rootState: r,
|
|
2518
2518
|
localState: o,
|
|
2519
2519
|
rootSetState: s,
|
|
2520
2520
|
code: a
|
|
2521
2521
|
}) => {
|
|
2522
2522
|
const f = Xt({
|
|
2523
|
-
rootState:
|
|
2523
|
+
rootState: r,
|
|
2524
2524
|
localState: o,
|
|
2525
2525
|
rootSetState: s
|
|
2526
2526
|
}), d = Jr({
|
|
2527
2527
|
builder: e,
|
|
2528
2528
|
context: t,
|
|
2529
|
-
event:
|
|
2529
|
+
event: n,
|
|
2530
2530
|
state: f
|
|
2531
2531
|
}), v = d.map(([O]) => {
|
|
2532
2532
|
const R = Wr(O);
|
|
@@ -2564,19 +2564,19 @@ const to = ({
|
|
|
2564
2564
|
var o;
|
|
2565
2565
|
if (!eo())
|
|
2566
2566
|
return !1;
|
|
2567
|
-
const t = process.arch === "arm64",
|
|
2568
|
-
return t &&
|
|
2567
|
+
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2568
|
+
return t && n && !r ? (e && Hr.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
2569
|
}, ro = (e) => Ft() || to({
|
|
2570
2570
|
shouldLogWarning: !0
|
|
2571
2571
|
}) ? Bn(e) : qn(e), no = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, oo = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, io = (e) => {
|
|
2572
|
-
var t,
|
|
2573
|
-
return ((
|
|
2572
|
+
var t, n, r, o, s, a;
|
|
2573
|
+
return ((r = (n = (t = no.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : r.slice(1)) || ((a = (s = (o = oo.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : s.getPath) == null ? void 0 : a.slice(1));
|
|
2574
2574
|
};
|
|
2575
2575
|
function ct({
|
|
2576
2576
|
code: e,
|
|
2577
2577
|
context: t,
|
|
2578
|
-
localState:
|
|
2579
|
-
rootState:
|
|
2578
|
+
localState: n,
|
|
2579
|
+
rootState: r,
|
|
2580
2580
|
rootSetState: o,
|
|
2581
2581
|
event: s,
|
|
2582
2582
|
isExpression: a = !0
|
|
@@ -2586,8 +2586,8 @@ function ct({
|
|
|
2586
2586
|
const f = io(e.trim());
|
|
2587
2587
|
if (f)
|
|
2588
2588
|
return bn({
|
|
2589
|
-
...
|
|
2590
|
-
...
|
|
2589
|
+
...r,
|
|
2590
|
+
...n
|
|
2591
2591
|
}, f);
|
|
2592
2592
|
const d = {
|
|
2593
2593
|
code: Rn(e, {
|
|
@@ -2597,8 +2597,8 @@ function ct({
|
|
|
2597
2597
|
context: t,
|
|
2598
2598
|
event: s,
|
|
2599
2599
|
rootSetState: o,
|
|
2600
|
-
rootState:
|
|
2601
|
-
localState:
|
|
2600
|
+
rootState: r,
|
|
2601
|
+
localState: n
|
|
2602
2602
|
};
|
|
2603
2603
|
try {
|
|
2604
2604
|
return ro(d);
|
|
@@ -2610,16 +2610,16 @@ function ct({
|
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
2612
|
function so(e, t) {
|
|
2613
|
-
var
|
|
2613
|
+
var n;
|
|
2614
2614
|
return {
|
|
2615
|
-
...(
|
|
2615
|
+
...(n = e.component) == null ? void 0 : n.options,
|
|
2616
2616
|
...e.options,
|
|
2617
2617
|
...ao(e, t)
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
2620
|
const ao = (e, t) => {
|
|
2621
|
-
var
|
|
2622
|
-
if (((
|
|
2621
|
+
var n, r;
|
|
2622
|
+
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((r = e.component.options) != null && r.text) && typeof e.component.options.text == "string")
|
|
2623
2623
|
return {
|
|
2624
2624
|
...e.component.options,
|
|
2625
2625
|
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, s) => ct({
|
|
@@ -2632,15 +2632,15 @@ const ao = (e, t) => {
|
|
|
2632
2632
|
};
|
|
2633
2633
|
};
|
|
2634
2634
|
function lo(e, ...t) {
|
|
2635
|
-
const
|
|
2636
|
-
for (const
|
|
2637
|
-
delete r
|
|
2638
|
-
return
|
|
2635
|
+
const n = Object.assign({}, e);
|
|
2636
|
+
for (const r of t)
|
|
2637
|
+
delete n[r];
|
|
2638
|
+
return n;
|
|
2639
2639
|
}
|
|
2640
|
-
function st(e, t,
|
|
2640
|
+
function st(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
2641
2641
|
if (e == null || typeof e != "object") {
|
|
2642
2642
|
t(e, (s) => {
|
|
2643
|
-
|
|
2643
|
+
n !== null && r !== null && (n[r] = s);
|
|
2644
2644
|
});
|
|
2645
2645
|
return;
|
|
2646
2646
|
}
|
|
@@ -2661,39 +2661,39 @@ function uo(e) {
|
|
|
2661
2661
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
2662
2662
|
return !1;
|
|
2663
2663
|
let t = !1;
|
|
2664
|
-
return st(e, (
|
|
2665
|
-
if (qr(
|
|
2664
|
+
return st(e, (n) => {
|
|
2665
|
+
if (qr(n)) {
|
|
2666
2666
|
t = !0;
|
|
2667
2667
|
return;
|
|
2668
2668
|
}
|
|
2669
2669
|
}), t;
|
|
2670
2670
|
}
|
|
2671
2671
|
function co(e, t) {
|
|
2672
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (st(e, (
|
|
2672
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (st(e, (n, r) => {
|
|
2673
2673
|
var o;
|
|
2674
|
-
qr(
|
|
2674
|
+
qr(n) && r((o = n[t]) != null ? o : void 0);
|
|
2675
2675
|
}), e);
|
|
2676
2676
|
}
|
|
2677
2677
|
function fo(e, t) {
|
|
2678
|
-
var
|
|
2679
|
-
return (
|
|
2678
|
+
var n, r;
|
|
2679
|
+
return (n = e.component) != null && n.options && uo((r = e.component) == null ? void 0 : r.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = co(e.component.options, t != null ? t : "Default")), e;
|
|
2680
2680
|
}
|
|
2681
|
-
const en = (e) => JSON.parse(JSON.stringify(e)), po = (e, t,
|
|
2681
|
+
const en = (e) => JSON.parse(JSON.stringify(e)), po = (e, t, n) => {
|
|
2682
2682
|
if (Object(e) !== e)
|
|
2683
2683
|
return e;
|
|
2684
|
-
const
|
|
2685
|
-
return
|
|
2684
|
+
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
2685
|
+
return r.slice(0, -1).reduce((o, s, a) => Object(o[s]) === o[s] ? o[s] : o[s] = Math.abs(Number(r[a + 1])) >> 0 === +r[a + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
2686
2686
|
};
|
|
2687
2687
|
function Vt(e) {
|
|
2688
2688
|
if (e === null || typeof e != "object")
|
|
2689
2689
|
return e;
|
|
2690
2690
|
if (Array.isArray(e))
|
|
2691
|
-
return e.map((
|
|
2691
|
+
return e.map((n) => Vt(n));
|
|
2692
2692
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
2693
2693
|
return e;
|
|
2694
2694
|
const t = {};
|
|
2695
|
-
for (const
|
|
2696
|
-
|
|
2695
|
+
for (const n in e)
|
|
2696
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Vt(e[n]));
|
|
2697
2697
|
return t;
|
|
2698
2698
|
}
|
|
2699
2699
|
const ho = ["svelte", "vue", "angular", "qwik", "solid"].includes(at), go = (e) => {
|
|
@@ -2725,8 +2725,8 @@ const ho = ["svelte", "vue", "angular", "qwik", "solid"].includes(at), go = (e)
|
|
|
2725
2725
|
}, yo = ({
|
|
2726
2726
|
block: e,
|
|
2727
2727
|
context: t,
|
|
2728
|
-
localState:
|
|
2729
|
-
rootState:
|
|
2728
|
+
localState: n,
|
|
2729
|
+
rootState: r,
|
|
2730
2730
|
rootSetState: o
|
|
2731
2731
|
}) => {
|
|
2732
2732
|
if (!e.bindings)
|
|
@@ -2735,8 +2735,8 @@ const ho = ["svelte", "vue", "angular", "qwik", "solid"].includes(at), go = (e)
|
|
|
2735
2735
|
for (const a in e.bindings) {
|
|
2736
2736
|
const f = e.bindings[a], d = ct({
|
|
2737
2737
|
code: f,
|
|
2738
|
-
localState:
|
|
2739
|
-
rootState:
|
|
2738
|
+
localState: n,
|
|
2739
|
+
rootState: r,
|
|
2740
2740
|
rootSetState: o,
|
|
2741
2741
|
context: t
|
|
2742
2742
|
});
|
|
@@ -2747,41 +2747,41 @@ const ho = ["svelte", "vue", "angular", "qwik", "solid"].includes(at), go = (e)
|
|
|
2747
2747
|
function mo({
|
|
2748
2748
|
block: e,
|
|
2749
2749
|
context: t,
|
|
2750
|
-
localState:
|
|
2751
|
-
rootState:
|
|
2750
|
+
localState: n,
|
|
2751
|
+
rootState: r,
|
|
2752
2752
|
rootSetState: o
|
|
2753
2753
|
}) {
|
|
2754
|
-
let s = fo(e,
|
|
2754
|
+
let s = fo(e, r.locale);
|
|
2755
2755
|
return s = s, yo({
|
|
2756
2756
|
block: s,
|
|
2757
|
-
localState:
|
|
2758
|
-
rootState:
|
|
2757
|
+
localState: n,
|
|
2758
|
+
rootState: r,
|
|
2759
2759
|
rootSetState: o,
|
|
2760
2760
|
context: t
|
|
2761
2761
|
});
|
|
2762
2762
|
}
|
|
2763
2763
|
const ft = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
2764
|
-
function vo(e, t,
|
|
2765
|
-
let
|
|
2764
|
+
function vo(e, t, n = {}) {
|
|
2765
|
+
let r, o, s, a = null, f = 0;
|
|
2766
2766
|
const d = function() {
|
|
2767
|
-
f =
|
|
2767
|
+
f = n.leading === !1 ? 0 : Date.now(), a = null, s = e.apply(r, o), a || (r = o = null);
|
|
2768
2768
|
};
|
|
2769
2769
|
return function() {
|
|
2770
2770
|
const v = Date.now();
|
|
2771
|
-
!f &&
|
|
2771
|
+
!f && n.leading === !1 && (f = v);
|
|
2772
2772
|
const I = t - (v - f);
|
|
2773
|
-
return
|
|
2773
|
+
return r = this, o = arguments, I <= 0 || I > t ? (a && (clearTimeout(a), a = null), f = v, s = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, I)), s;
|
|
2774
2774
|
};
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2777
|
-
const
|
|
2778
|
-
for (let
|
|
2779
|
-
const o = arguments[
|
|
2776
|
+
function He(e, ...t) {
|
|
2777
|
+
const n = Object(e);
|
|
2778
|
+
for (let r = 1; r < arguments.length; r++) {
|
|
2779
|
+
const o = arguments[r];
|
|
2780
2780
|
if (o != null)
|
|
2781
2781
|
for (const s in o)
|
|
2782
|
-
Object.prototype.hasOwnProperty.call(o, s) && (
|
|
2782
|
+
Object.prototype.hasOwnProperty.call(o, s) && (n[s] = o[s]);
|
|
2783
2783
|
}
|
|
2784
|
-
return
|
|
2784
|
+
return n;
|
|
2785
2785
|
}
|
|
2786
2786
|
function wo(e) {
|
|
2787
2787
|
for (const t of e)
|
|
@@ -2798,16 +2798,16 @@ function tn(e) {
|
|
|
2798
2798
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2799
2799
|
}
|
|
2800
2800
|
function rn(e, t) {
|
|
2801
|
-
const
|
|
2801
|
+
const n = xo(e), r = getComputedStyle(t), o = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, a = [o, s];
|
|
2802
2802
|
for (const f of a)
|
|
2803
|
-
for (const d of
|
|
2804
|
-
d in f || (f[d] =
|
|
2803
|
+
for (const d of n)
|
|
2804
|
+
d in f || (f[d] = r[d]);
|
|
2805
2805
|
}
|
|
2806
2806
|
function xo(e) {
|
|
2807
2807
|
const t = [];
|
|
2808
|
-
for (const
|
|
2809
|
-
for (const
|
|
2810
|
-
t.indexOf(
|
|
2808
|
+
for (const n of e.steps)
|
|
2809
|
+
for (const r in n.styles)
|
|
2810
|
+
t.indexOf(r) === -1 && t.push(r);
|
|
2811
2811
|
return t;
|
|
2812
2812
|
}
|
|
2813
2813
|
function So(e) {
|
|
@@ -2816,10 +2816,10 @@ function So(e) {
|
|
|
2816
2816
|
tn(e.elementId || e.id || "");
|
|
2817
2817
|
return;
|
|
2818
2818
|
}
|
|
2819
|
-
Array.from(t).forEach((
|
|
2820
|
-
rn(e,
|
|
2821
|
-
|
|
2822
|
-
|
|
2819
|
+
Array.from(t).forEach((n) => {
|
|
2820
|
+
rn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", He(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2821
|
+
n.style.transition = `all ${e.duration}s ${ft(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), He(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2822
|
+
n.style.transition = "", n.style.transitionDelay = "";
|
|
2823
2823
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2824
2824
|
});
|
|
2825
2825
|
});
|
|
@@ -2830,15 +2830,15 @@ function Eo(e) {
|
|
|
2830
2830
|
tn(e.elementId || e.id || "");
|
|
2831
2831
|
return;
|
|
2832
2832
|
}
|
|
2833
|
-
Array.from(t).forEach((
|
|
2834
|
-
rn(e,
|
|
2835
|
-
let
|
|
2833
|
+
Array.from(t).forEach((n) => {
|
|
2834
|
+
rn(e, n);
|
|
2835
|
+
let r = !1, o = !1;
|
|
2836
2836
|
function s() {
|
|
2837
|
-
!
|
|
2838
|
-
|
|
2839
|
-
o = !1, e.repeat || (
|
|
2837
|
+
!r && f(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
2838
|
+
He(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
2839
|
+
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
2840
2840
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2841
|
-
})) : e.repeat &&
|
|
2841
|
+
})) : e.repeat && r && !o && !f(n) && (r = !1, He(n.style, e.steps[0].styles));
|
|
2842
2842
|
}
|
|
2843
2843
|
const a = vo(s, 200, {
|
|
2844
2844
|
leading: !1
|
|
@@ -2849,31 +2849,31 @@ function Eo(e) {
|
|
|
2849
2849
|
}
|
|
2850
2850
|
const d = e.steps[0].styles;
|
|
2851
2851
|
function v() {
|
|
2852
|
-
|
|
2852
|
+
He(n.style, d);
|
|
2853
2853
|
}
|
|
2854
2854
|
v(), setTimeout(() => {
|
|
2855
|
-
|
|
2855
|
+
n.style.transition = `all ${e.duration}s ${ft(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2856
2856
|
}), document.addEventListener("scroll", a, {
|
|
2857
2857
|
capture: !0,
|
|
2858
2858
|
passive: !0
|
|
2859
2859
|
}), s();
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
|
-
const nn = (e) => Object.entries(e).map(([
|
|
2863
|
-
if (typeof
|
|
2864
|
-
return `${ft(
|
|
2862
|
+
const nn = (e) => Object.entries(e).map(([n, r]) => {
|
|
2863
|
+
if (typeof r == "string")
|
|
2864
|
+
return `${ft(n)}: ${r};`;
|
|
2865
2865
|
}).filter(it), ko = (e) => nn(e).join(`
|
|
2866
|
-
`),
|
|
2866
|
+
`), Ue = ({
|
|
2867
2867
|
mediaQuery: e,
|
|
2868
2868
|
className: t,
|
|
2869
|
-
styles:
|
|
2869
|
+
styles: n
|
|
2870
2870
|
}) => {
|
|
2871
|
-
const
|
|
2872
|
-
${ko(
|
|
2871
|
+
const r = `.${t} {
|
|
2872
|
+
${ko(n)}
|
|
2873
2873
|
}`;
|
|
2874
2874
|
return e ? `${e} {
|
|
2875
|
-
${
|
|
2876
|
-
}` :
|
|
2875
|
+
${r}
|
|
2876
|
+
}` : r;
|
|
2877
2877
|
};
|
|
2878
2878
|
function Co({
|
|
2879
2879
|
style: e
|
|
@@ -2905,16 +2905,16 @@ function jo(e) {
|
|
|
2905
2905
|
const on = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Ao = ({
|
|
2906
2906
|
block: e,
|
|
2907
2907
|
registeredComponents: t,
|
|
2908
|
-
model:
|
|
2908
|
+
model: n
|
|
2909
2909
|
}) => {
|
|
2910
2910
|
var s;
|
|
2911
|
-
const
|
|
2912
|
-
if (!
|
|
2911
|
+
const r = (s = e.component) == null ? void 0 : s.name;
|
|
2912
|
+
if (!r)
|
|
2913
2913
|
return null;
|
|
2914
|
-
const o = t[
|
|
2915
|
-
if (!o || on(o,
|
|
2914
|
+
const o = t[r];
|
|
2915
|
+
if (!o || on(o, n)) {
|
|
2916
2916
|
console.warn(`
|
|
2917
|
-
Could not find a registered component named "${
|
|
2917
|
+
Could not find a registered component named "${r}".
|
|
2918
2918
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2919
2919
|
return;
|
|
2920
2920
|
} else
|
|
@@ -2924,13 +2924,13 @@ const on = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2924
2924
|
context: t
|
|
2925
2925
|
}) => {
|
|
2926
2926
|
const {
|
|
2927
|
-
repeat:
|
|
2928
|
-
...
|
|
2927
|
+
repeat: n,
|
|
2928
|
+
...r
|
|
2929
2929
|
} = e;
|
|
2930
|
-
if (!(
|
|
2930
|
+
if (!(n != null && n.collection))
|
|
2931
2931
|
return;
|
|
2932
2932
|
const o = ct({
|
|
2933
|
-
code:
|
|
2933
|
+
code: n.collection,
|
|
2934
2934
|
localState: t.localState,
|
|
2935
2935
|
rootState: t.rootState,
|
|
2936
2936
|
rootSetState: t.rootSetState,
|
|
@@ -2938,7 +2938,7 @@ const on = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2938
2938
|
});
|
|
2939
2939
|
if (!Array.isArray(o))
|
|
2940
2940
|
return;
|
|
2941
|
-
const s =
|
|
2941
|
+
const s = n.collection.split(".").pop(), a = n.itemName || (s ? s + "Item" : "item");
|
|
2942
2942
|
return o.map((d, v) => ({
|
|
2943
2943
|
context: {
|
|
2944
2944
|
...t,
|
|
@@ -2950,26 +2950,26 @@ const on = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2950
2950
|
[`$${a}Index`]: v
|
|
2951
2951
|
}
|
|
2952
2952
|
},
|
|
2953
|
-
block:
|
|
2953
|
+
block: r
|
|
2954
2954
|
}));
|
|
2955
2955
|
}, To = (e, t) => {
|
|
2956
|
-
var
|
|
2957
|
-
return (
|
|
2956
|
+
var n;
|
|
2957
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
2958
2958
|
builderLinkComponent: t
|
|
2959
2959
|
} : {};
|
|
2960
|
-
}, Po = (e, t,
|
|
2961
|
-
var
|
|
2962
|
-
return (
|
|
2963
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, a]) => !on(a,
|
|
2960
|
+
}, Po = (e, t, n) => {
|
|
2961
|
+
var r;
|
|
2962
|
+
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
2963
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, a]) => !on(a, n)))
|
|
2964
2964
|
} : {};
|
|
2965
2965
|
}, bo = (e, t) => {
|
|
2966
|
-
var
|
|
2967
|
-
return (
|
|
2966
|
+
var n;
|
|
2967
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
2968
2968
|
builderBlock: t
|
|
2969
2969
|
} : {};
|
|
2970
2970
|
}, No = (e, t) => {
|
|
2971
|
-
var
|
|
2972
|
-
return (
|
|
2971
|
+
var n;
|
|
2972
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
2973
2973
|
builderContext: t
|
|
2974
2974
|
} : {};
|
|
2975
2975
|
}, Gr = (e) => e.toString(), sn = {
|
|
@@ -2998,23 +2998,23 @@ const on = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2998
2998
|
if (!e)
|
|
2999
2999
|
return t;
|
|
3000
3000
|
const {
|
|
3001
|
-
xsmall:
|
|
3002
|
-
small:
|
|
3001
|
+
xsmall: n,
|
|
3002
|
+
small: r,
|
|
3003
3003
|
medium: o
|
|
3004
3004
|
} = e;
|
|
3005
|
-
if (
|
|
3006
|
-
const d = Math.floor(
|
|
3005
|
+
if (n) {
|
|
3006
|
+
const d = Math.floor(n / 2);
|
|
3007
3007
|
t.xsmall = {
|
|
3008
|
-
max:
|
|
3008
|
+
max: n,
|
|
3009
3009
|
min: d,
|
|
3010
3010
|
default: d + 1
|
|
3011
3011
|
};
|
|
3012
3012
|
}
|
|
3013
|
-
if (!
|
|
3013
|
+
if (!r || !o)
|
|
3014
3014
|
return t;
|
|
3015
|
-
const s =
|
|
3015
|
+
const s = n ? t.xsmall.max + 1 : Math.floor(r / 2);
|
|
3016
3016
|
t.small = {
|
|
3017
|
-
max:
|
|
3017
|
+
max: r,
|
|
3018
3018
|
min: s,
|
|
3019
3019
|
default: s + 1
|
|
3020
3020
|
};
|
|
@@ -3044,45 +3044,45 @@ function Bo(e) {
|
|
|
3044
3044
|
}
|
|
3045
3045
|
function Mo(e) {
|
|
3046
3046
|
function t() {
|
|
3047
|
-
const
|
|
3048
|
-
return it(
|
|
3047
|
+
const r = e.block;
|
|
3048
|
+
return it(r.hide) ? !r.hide : it(r.show) ? r.show : !0;
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3051
|
-
var ue,
|
|
3052
|
-
const
|
|
3050
|
+
function n() {
|
|
3051
|
+
var ue, Ie, Te, B, Z;
|
|
3052
|
+
const r = e.block, o = r.responsiveStyles, s = e.context.content, a = Ro(
|
|
3053
3053
|
((ue = s == null ? void 0 : s.meta) == null ? void 0 : ue.breakpoints) || {}
|
|
3054
|
-
), f = !!((
|
|
3054
|
+
), f = !!((Te = (Ie = s == null ? void 0 : s.meta) == null ? void 0 : Ie.breakpoints) != null && Te.xsmall), d = o == null ? void 0 : o.large, v = o == null ? void 0 : o.medium, I = o == null ? void 0 : o.small, A = o == null ? void 0 : o.xsmall, W = r.id;
|
|
3055
3055
|
if (!W)
|
|
3056
3056
|
return "";
|
|
3057
|
-
const V = d ?
|
|
3057
|
+
const V = d ? Ue({
|
|
3058
3058
|
className: W,
|
|
3059
3059
|
styles: d
|
|
3060
|
-
}) : "", P = v ?
|
|
3060
|
+
}) : "", P = v ? Ue({
|
|
3061
3061
|
className: W,
|
|
3062
3062
|
styles: v,
|
|
3063
3063
|
mediaQuery: _t(
|
|
3064
3064
|
"medium",
|
|
3065
3065
|
a
|
|
3066
3066
|
)
|
|
3067
|
-
}) : "", O = I ?
|
|
3067
|
+
}) : "", O = I ? Ue({
|
|
3068
3068
|
className: W,
|
|
3069
3069
|
styles: I,
|
|
3070
3070
|
mediaQuery: _t(
|
|
3071
3071
|
"small",
|
|
3072
3072
|
a
|
|
3073
3073
|
)
|
|
3074
|
-
}) : "", R = A && f ?
|
|
3074
|
+
}) : "", R = A && f ? Ue({
|
|
3075
3075
|
className: W,
|
|
3076
3076
|
styles: A,
|
|
3077
3077
|
mediaQuery: _t(
|
|
3078
3078
|
"xsmall",
|
|
3079
3079
|
a
|
|
3080
3080
|
)
|
|
3081
|
-
}) : "", _ =
|
|
3081
|
+
}) : "", _ = r.animations && r.animations.find((x) => x.trigger === "hover");
|
|
3082
3082
|
let k = "";
|
|
3083
3083
|
if (_) {
|
|
3084
3084
|
const x = ((Z = (B = _.steps) == null ? void 0 : B[1]) == null ? void 0 : Z.styles) || {};
|
|
3085
|
-
k =
|
|
3085
|
+
k = Ue({
|
|
3086
3086
|
className: `${W}:hover`,
|
|
3087
3087
|
styles: {
|
|
3088
3088
|
...x,
|
|
@@ -3101,11 +3101,11 @@ function Mo(e) {
|
|
|
3101
3101
|
k
|
|
3102
3102
|
].join(" ");
|
|
3103
3103
|
}
|
|
3104
|
-
return /* @__PURE__ */ T(J, { children:
|
|
3104
|
+
return /* @__PURE__ */ T(J, { children: n() && t() ? /* @__PURE__ */ T(J, { children: /* @__PURE__ */ T(
|
|
3105
3105
|
Bo,
|
|
3106
3106
|
{
|
|
3107
3107
|
id: "builderio-block",
|
|
3108
|
-
styles:
|
|
3108
|
+
styles: n(),
|
|
3109
3109
|
nonce: e.context.nonce
|
|
3110
3110
|
}
|
|
3111
3111
|
) }) : null });
|
|
@@ -3113,22 +3113,22 @@ function Mo(e) {
|
|
|
3113
3113
|
function Do(e) {
|
|
3114
3114
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3115
3115
|
}
|
|
3116
|
-
const _o = (e) => `on${Do(e)}`, Uo = (e, t) => (
|
|
3116
|
+
const _o = (e) => `on${Do(e)}`, Uo = (e, t) => (n) => ct({
|
|
3117
3117
|
code: e,
|
|
3118
3118
|
context: t.context,
|
|
3119
3119
|
localState: t.localState,
|
|
3120
3120
|
rootState: t.rootState,
|
|
3121
3121
|
rootSetState: t.rootSetState,
|
|
3122
|
-
event:
|
|
3122
|
+
event: n,
|
|
3123
3123
|
isExpression: !1
|
|
3124
3124
|
});
|
|
3125
3125
|
function an(e) {
|
|
3126
|
-
var
|
|
3127
|
-
const t = {},
|
|
3128
|
-
for (const o in
|
|
3129
|
-
if (!
|
|
3126
|
+
var r;
|
|
3127
|
+
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
3128
|
+
for (const o in n) {
|
|
3129
|
+
if (!n.hasOwnProperty(o))
|
|
3130
3130
|
continue;
|
|
3131
|
-
const s =
|
|
3131
|
+
const s = n[o];
|
|
3132
3132
|
let a = _o(o);
|
|
3133
3133
|
if (e.stripPrefix)
|
|
3134
3134
|
switch (at) {
|
|
@@ -3155,8 +3155,8 @@ function nr({
|
|
|
3155
3155
|
block: e,
|
|
3156
3156
|
context: t
|
|
3157
3157
|
}) {
|
|
3158
|
-
var
|
|
3159
|
-
const
|
|
3158
|
+
var r;
|
|
3159
|
+
const n = {
|
|
3160
3160
|
...Fo(e),
|
|
3161
3161
|
...e.properties,
|
|
3162
3162
|
"builder-id": e.id,
|
|
@@ -3164,10 +3164,10 @@ function nr({
|
|
|
3164
3164
|
block: e,
|
|
3165
3165
|
context: t
|
|
3166
3166
|
}),
|
|
3167
|
-
[In()]: [e.id, "builder-block", e.class, (
|
|
3167
|
+
[In()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3168
3168
|
};
|
|
3169
3169
|
return Lo({
|
|
3170
|
-
properties:
|
|
3170
|
+
properties: n,
|
|
3171
3171
|
context: t,
|
|
3172
3172
|
block: e
|
|
3173
3173
|
});
|
|
@@ -3194,10 +3194,12 @@ function Wo(e) {
|
|
|
3194
3194
|
);
|
|
3195
3195
|
}
|
|
3196
3196
|
function Go(e) {
|
|
3197
|
-
return
|
|
3197
|
+
return pe(() => {
|
|
3198
3198
|
}, []), /* @__PURE__ */ T(J, { children: e.children });
|
|
3199
3199
|
}
|
|
3200
3200
|
function $o(e) {
|
|
3201
|
+
var r, o;
|
|
3202
|
+
Ce(() => 0);
|
|
3201
3203
|
function t() {
|
|
3202
3204
|
return e.includeBlockProps ? {
|
|
3203
3205
|
...nr({
|
|
@@ -3213,10 +3215,11 @@ function $o(e) {
|
|
|
3213
3215
|
})
|
|
3214
3216
|
} : {};
|
|
3215
3217
|
}
|
|
3216
|
-
function
|
|
3218
|
+
function n() {
|
|
3217
3219
|
return e.wrapperProps;
|
|
3218
3220
|
}
|
|
3219
|
-
return
|
|
3221
|
+
return pe(() => {
|
|
3222
|
+
}, [e.wrapperProps, (o = (r = e.block) == null ? void 0 : r.component) == null ? void 0 : o.options]), /* @__PURE__ */ T(J, { children: e.Wrapper.load ? /* @__PURE__ */ T(J, { children: /* @__PURE__ */ T(
|
|
3220
3223
|
Go,
|
|
3221
3224
|
{
|
|
3222
3225
|
load: e.Wrapper.load,
|
|
@@ -3225,13 +3228,13 @@ function $o(e) {
|
|
|
3225
3228
|
attributes: t(),
|
|
3226
3229
|
children: e.children
|
|
3227
3230
|
}
|
|
3228
|
-
) }) : /* @__PURE__ */ T(e.Wrapper, { ...
|
|
3231
|
+
) }) : /* @__PURE__ */ T(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
|
|
3229
3232
|
}
|
|
3230
3233
|
const Vo = ({
|
|
3231
3234
|
componentOptions: e,
|
|
3232
3235
|
builderBlock: t,
|
|
3233
|
-
context:
|
|
3234
|
-
componentRef:
|
|
3236
|
+
context: n,
|
|
3237
|
+
componentRef: r,
|
|
3235
3238
|
includeBlockProps: o,
|
|
3236
3239
|
isInteractive: s,
|
|
3237
3240
|
contextValue: a
|
|
@@ -3250,20 +3253,20 @@ const Vo = ({
|
|
|
3250
3253
|
} : {}
|
|
3251
3254
|
};
|
|
3252
3255
|
return s ? {
|
|
3253
|
-
Wrapper:
|
|
3256
|
+
Wrapper: r,
|
|
3254
3257
|
block: t,
|
|
3255
|
-
context:
|
|
3258
|
+
context: n,
|
|
3256
3259
|
wrapperProps: e,
|
|
3257
3260
|
includeBlockProps: o
|
|
3258
3261
|
} : f;
|
|
3259
3262
|
};
|
|
3260
3263
|
function $r(e) {
|
|
3261
|
-
var
|
|
3262
|
-
|
|
3263
|
-
const [t,
|
|
3264
|
+
var r;
|
|
3265
|
+
Ce(() => !1);
|
|
3266
|
+
const [t, n] = Ce(
|
|
3264
3267
|
() => e.isInteractive ? $o : e.componentRef
|
|
3265
3268
|
);
|
|
3266
|
-
return
|
|
3269
|
+
return pe(() => {
|
|
3267
3270
|
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ T(J, { children: e.componentRef ? /* @__PURE__ */ T(J, { children: /* @__PURE__ */ T(
|
|
3268
3271
|
t,
|
|
3269
3272
|
{
|
|
@@ -3277,7 +3280,7 @@ function $r(e) {
|
|
|
3277
3280
|
isInteractive: e.isInteractive,
|
|
3278
3281
|
contextValue: e.context
|
|
3279
3282
|
}),
|
|
3280
|
-
children: (
|
|
3283
|
+
children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ T(
|
|
3281
3284
|
pt,
|
|
3282
3285
|
{
|
|
3283
3286
|
block: o,
|
|
@@ -3291,9 +3294,9 @@ function $r(e) {
|
|
|
3291
3294
|
) }) : null });
|
|
3292
3295
|
}
|
|
3293
3296
|
function Vr(e) {
|
|
3294
|
-
const [t,
|
|
3295
|
-
return
|
|
3296
|
-
|
|
3297
|
+
const [t, n] = Ce(() => e.repeatContext);
|
|
3298
|
+
return pe(() => {
|
|
3299
|
+
n(e.repeatContext);
|
|
3297
3300
|
}, [e.repeatContext]), /* @__PURE__ */ T(Xr.Provider, { value: t, children: /* @__PURE__ */ T(
|
|
3298
3301
|
pt,
|
|
3299
3302
|
{
|
|
@@ -3312,14 +3315,14 @@ function pt(e) {
|
|
|
3312
3315
|
context: e.context
|
|
3313
3316
|
});
|
|
3314
3317
|
}
|
|
3315
|
-
const [
|
|
3318
|
+
const [n, r] = Ce(() => ({
|
|
3316
3319
|
value: null,
|
|
3317
3320
|
update: !1
|
|
3318
3321
|
}));
|
|
3319
3322
|
function o() {
|
|
3320
3323
|
var O;
|
|
3321
|
-
if (
|
|
3322
|
-
return
|
|
3324
|
+
if (n.value && !n.update && !An())
|
|
3325
|
+
return n.value;
|
|
3323
3326
|
const P = (O = e.block.repeat) != null && O.collection ? e.block : mo({
|
|
3324
3327
|
block: e.block,
|
|
3325
3328
|
localState: e.context.localState,
|
|
@@ -3327,7 +3330,7 @@ function pt(e) {
|
|
|
3327
3330
|
rootSetState: e.context.rootSetState,
|
|
3328
3331
|
context: e.context.context
|
|
3329
3332
|
});
|
|
3330
|
-
return
|
|
3333
|
+
return n.value = P, n.update = !1, P;
|
|
3331
3334
|
}
|
|
3332
3335
|
function s() {
|
|
3333
3336
|
return Ao({
|
|
@@ -3375,7 +3378,7 @@ function pt(e) {
|
|
|
3375
3378
|
isInteractive: !((_ = s == null ? void 0 : s()) != null && _.isRSC && at === "rsc")
|
|
3376
3379
|
};
|
|
3377
3380
|
}
|
|
3378
|
-
return
|
|
3381
|
+
return pe(() => {
|
|
3379
3382
|
const P = o().id, O = o().animations;
|
|
3380
3383
|
O && P && wo(
|
|
3381
3384
|
O.map((R) => ({
|
|
@@ -3383,8 +3386,8 @@ function pt(e) {
|
|
|
3383
3386
|
elementId: P
|
|
3384
3387
|
}))
|
|
3385
3388
|
);
|
|
3386
|
-
}, []),
|
|
3387
|
-
|
|
3389
|
+
}, []), pe(() => {
|
|
3390
|
+
n.update = !0;
|
|
3388
3391
|
}), /* @__PURE__ */ T(J, { children: f() ? /* @__PURE__ */ Ut(J, { children: [
|
|
3389
3392
|
/* @__PURE__ */ T(Mo, { block: o(), context: e.context }),
|
|
3390
3393
|
(I = s == null ? void 0 : s()) != null && I.noWrap ? t() ? /* @__PURE__ */ T(J, { children: (V = t()) == null ? void 0 : V.map((P, O) => /* @__PURE__ */ T(
|
|
@@ -3456,8 +3459,8 @@ function pt(e) {
|
|
|
3456
3459
|
}
|
|
3457
3460
|
function Xo(e) {
|
|
3458
3461
|
const t = On(null);
|
|
3459
|
-
|
|
3460
|
-
function
|
|
3462
|
+
Ce(() => !1);
|
|
3463
|
+
function n() {
|
|
3461
3464
|
var a;
|
|
3462
3465
|
return [
|
|
3463
3466
|
"builder-blocks",
|
|
@@ -3465,7 +3468,7 @@ function Xo(e) {
|
|
|
3465
3468
|
e.classNameProp
|
|
3466
3469
|
].filter(Boolean).join(" ");
|
|
3467
3470
|
}
|
|
3468
|
-
function
|
|
3471
|
+
function r() {
|
|
3469
3472
|
if (!e.path)
|
|
3470
3473
|
return;
|
|
3471
3474
|
const a = "this.", f = "component.options.";
|
|
@@ -3478,7 +3481,7 @@ function Xo(e) {
|
|
|
3478
3481
|
type: "builder.clickEmptyBlocks",
|
|
3479
3482
|
data: {
|
|
3480
3483
|
parentElementId: e.parent,
|
|
3481
|
-
dataPath:
|
|
3484
|
+
dataPath: r()
|
|
3482
3485
|
}
|
|
3483
3486
|
},
|
|
3484
3487
|
"*"
|
|
@@ -3491,21 +3494,21 @@ function Xo(e) {
|
|
|
3491
3494
|
type: "builder.hoverEmptyBlocks",
|
|
3492
3495
|
data: {
|
|
3493
3496
|
parentElementId: e.parent,
|
|
3494
|
-
dataPath:
|
|
3497
|
+
dataPath: r()
|
|
3495
3498
|
}
|
|
3496
3499
|
},
|
|
3497
3500
|
"*"
|
|
3498
3501
|
));
|
|
3499
3502
|
}
|
|
3500
|
-
return
|
|
3501
|
-
}, []),
|
|
3503
|
+
return pe(() => {
|
|
3504
|
+
}, []), pe(() => {
|
|
3502
3505
|
}, [e.blocks]), /* @__PURE__ */ Ut(J, { children: [
|
|
3503
3506
|
/* @__PURE__ */ T(
|
|
3504
3507
|
e.BlocksWrapper,
|
|
3505
3508
|
{
|
|
3506
3509
|
ref: t,
|
|
3507
|
-
className:
|
|
3508
|
-
"builder-path":
|
|
3510
|
+
className: n() + " props-blocks-wrapper-14802cff",
|
|
3511
|
+
"builder-path": r(),
|
|
3509
3512
|
"builder-parent-id": e.parent,
|
|
3510
3513
|
style: e.styleProp,
|
|
3511
3514
|
onClick: (a) => o(),
|
|
@@ -3523,8 +3526,8 @@ function Xo(e) {
|
|
|
3523
3526
|
] });
|
|
3524
3527
|
}
|
|
3525
3528
|
function Ho(e) {
|
|
3526
|
-
var
|
|
3527
|
-
const t = Mr(Xr),
|
|
3529
|
+
var r, o, s;
|
|
3530
|
+
const t = Mr(Xr), n = Mr(Pn);
|
|
3528
3531
|
return /* @__PURE__ */ T(
|
|
3529
3532
|
Xo,
|
|
3530
3533
|
{
|
|
@@ -3533,7 +3536,7 @@ function Ho(e) {
|
|
|
3533
3536
|
path: e.path,
|
|
3534
3537
|
styleProp: e.styleProp,
|
|
3535
3538
|
classNameProp: e.className,
|
|
3536
|
-
BlocksWrapper: ((
|
|
3539
|
+
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
3537
3540
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
3538
3541
|
children: e.blocks ? /* @__PURE__ */ T(J, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ T(
|
|
3539
3542
|
pt,
|
|
@@ -3541,7 +3544,7 @@ function Ho(e) {
|
|
|
3541
3544
|
block: a,
|
|
3542
3545
|
linkComponent: e.linkComponent,
|
|
3543
3546
|
context: e.context || t,
|
|
3544
|
-
registeredComponents: e.registeredComponents || (
|
|
3547
|
+
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
3545
3548
|
},
|
|
3546
3549
|
a.id
|
|
3547
3550
|
)) }) : null
|