@builder.io/sdk-react 1.0.31 → 1.0.33
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 +25 -25
- package/lib/browser/blocks-exports.mjs +253 -245
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-26776eea.js → server-entry-08c4885b.js} +3 -1
- package/lib/browser/{server-entry-93dd2fe7.cjs → server-entry-4f020128.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-61d8c841.cjs → accordion-117938d4.cjs} +1 -1
- package/lib/edge/{accordion-8600e362.js → accordion-e8a4e00c.js} +1 -1
- package/lib/edge/blocks-70c83f76.cjs +32 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-bf8d4f42.js → blocks-f8c6cd3a.js} +765 -770
- package/lib/edge/{button-a1ecbbb4.js → button-9224e694.js} +2 -2
- package/lib/edge/{button-3aead671.cjs → button-b84a0300.cjs} +1 -1
- package/lib/edge/{columns-f8252cd4.js → columns-05800a70.js} +3 -3
- package/lib/edge/{columns-6f0bea35.cjs → columns-bf1789b2.cjs} +1 -1
- package/lib/edge/{content-variants-a7515e25.js → content-variants-1af57e7c.js} +23 -19
- package/lib/edge/{content-variants-d536d382.cjs → content-variants-33e7bcbf.cjs} +3 -3
- package/lib/edge/{form-aa86b853.cjs → form-4248a74f.cjs} +1 -1
- package/lib/edge/{form-4c514836.js → form-ba414b86.js} +3 -3
- package/lib/edge/{get-class-prop-name-d6e10697.cjs → get-class-prop-name-99284ed1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-7245a80c.js → get-class-prop-name-f1303c26.js} +1 -1
- package/lib/edge/{image-9d24a962.js → image-68451fc8.js} +23 -22
- package/lib/edge/image-ea37781b.cjs +17 -0
- package/lib/edge/{img-916857d0.js → img-3b5f766a.js} +1 -1
- package/lib/edge/{img-266babf5.cjs → img-f51fc48b.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-1c89bf19.cjs → input-9d5bca5c.cjs} +1 -1
- package/lib/edge/{input-ecbd900c.js → input-f86d1318.js} +1 -1
- package/lib/edge/{select-31017554.cjs → select-02b2c006.cjs} +1 -1
- package/lib/edge/{select-679760ee.js → select-a97e4cbf.js} +1 -1
- package/lib/edge/{server-entry-c373353a.cjs → server-entry-13d68dab.cjs} +1 -1
- package/lib/edge/{server-entry-438d03b9.js → server-entry-62d41eae.js} +3 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-70d56fb7.cjs → slot-d4ca9e65.cjs} +1 -1
- package/lib/edge/{slot-a7c301c7.js → slot-fdb4dd68.js} +3 -3
- package/lib/edge/{symbol-e2b27478.cjs → symbol-b620691d.cjs} +1 -1
- package/lib/edge/{symbol-c1b26e8b.js → symbol-c31603d4.js} +2 -2
- package/lib/edge/{tabs-d69a6adc.cjs → tabs-b442e021.cjs} +1 -1
- package/lib/edge/{tabs-91468f03.js → tabs-c5bedc43.js} +3 -3
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +289 -281
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-3bebd191.cjs → node-runtime-1f5f0f86.cjs} +1 -1
- package/lib/node/{node-runtime-218b3a7e.js → node-runtime-51136426.js} +1 -1
- package/lib/node/{server-entry-9ab92db7.js → server-entry-0b4ba9e5.js} +3 -1
- package/lib/node/{server-entry-75bba771.cjs → server-entry-84150423.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/blocks/image/image.types.d.ts +1 -0
- package/types/components/block/block.helpers.d.ts +20 -2
- package/types/components/block/components/block-wrapper.d.ts +0 -1
- package/types/components/content/components/enable-editor.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/blocks-c0ecd775.cjs +0 -32
- package/lib/edge/image-764070f8.cjs +0 -17
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var kn = Object.defineProperty;
|
|
2
2
|
var En = (e, t, n) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { createContext as Cn, useState as
|
|
6
|
-
import { BuilderContext as
|
|
7
|
-
import { isEditing as
|
|
8
|
-
import { getClassPropName as An } from "./get-class-prop-name-
|
|
3
|
+
var Bt = (e, t, n) => (En(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { jsx as I, Fragment as Z, jsxs as Dt } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as Cn, useState as Gr, useEffect as jn, useContext as Br } from "react";
|
|
6
|
+
import { BuilderContext as Vr } from "./blocks-exports.mjs";
|
|
7
|
+
import { isEditing as Ut, isBrowser as Ft, getUserAttributes as On, logger as $t, checkIsDefined as it, fastClone as Xr, TARGET as ve } from "./server-entry-62d41eae.js";
|
|
8
|
+
import { getClassPropName as An } from "./get-class-prop-name-f1303c26.js";
|
|
9
9
|
import { DynamicRenderer as bn } from "./dynamic-renderer-8b343325.js";
|
|
10
10
|
const Hr = (e, t, n) => {
|
|
11
11
|
if (Object(e) !== e)
|
|
@@ -25,22 +25,18 @@ const Hr = (e, t, n) => {
|
|
|
25
25
|
context: t,
|
|
26
26
|
event: n
|
|
27
27
|
}), In = () => ({
|
|
28
|
-
isEditing:
|
|
29
|
-
isBrowser:
|
|
30
|
-
isServer: !
|
|
28
|
+
isEditing: Ut(),
|
|
29
|
+
isBrowser: Ft(),
|
|
30
|
+
isServer: !Ft(),
|
|
31
31
|
getUserAttributes: () => On()
|
|
32
32
|
}), Tn = (e, {
|
|
33
33
|
isExpression: t = !0
|
|
34
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
35
|
-
function
|
|
34
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, Nn = Cn({ registeredComponents: {} });
|
|
35
|
+
function Pn(e) {
|
|
36
36
|
var t;
|
|
37
37
|
return {
|
|
38
38
|
...(t = e.component) == null ? void 0 : t.options,
|
|
39
|
-
...e.options
|
|
40
|
-
/**
|
|
41
|
-
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
42
|
-
*/
|
|
43
|
-
builderBlock: e
|
|
39
|
+
...e.options
|
|
44
40
|
};
|
|
45
41
|
}
|
|
46
42
|
const Rn = ({
|
|
@@ -89,17 +85,17 @@ function Jr({
|
|
|
89
85
|
}
|
|
90
86
|
});
|
|
91
87
|
}
|
|
92
|
-
var
|
|
88
|
+
var b, Bn = function(e) {
|
|
93
89
|
function t(i) {
|
|
94
|
-
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
90
|
+
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && wn.test(String.fromCharCode(i));
|
|
95
91
|
}
|
|
96
92
|
function n(i) {
|
|
97
|
-
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
93
|
+
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Rr.test(String.fromCharCode(i));
|
|
98
94
|
}
|
|
99
95
|
function r(i, l) {
|
|
100
96
|
for (var u = d, p = 1, x = 0; ; ) {
|
|
101
|
-
|
|
102
|
-
var U =
|
|
97
|
+
nt.lastIndex = x;
|
|
98
|
+
var U = nt.exec(u);
|
|
103
99
|
if (U && U.index < i)
|
|
104
100
|
++p, x = U.index + U[0].length;
|
|
105
101
|
else
|
|
@@ -119,75 +115,75 @@ var I, Mn = function(e) {
|
|
|
119
115
|
};
|
|
120
116
|
}
|
|
121
117
|
function s() {
|
|
122
|
-
this.line = de, this.ab = c -
|
|
118
|
+
this.line = de, this.ab = c - te;
|
|
123
119
|
}
|
|
124
120
|
function a(i, l) {
|
|
125
|
-
|
|
121
|
+
Se = c, j.C && (wt = new s()), w = i, g(), J = l, Pe = i.m;
|
|
126
122
|
}
|
|
127
123
|
function f() {
|
|
128
|
-
for (var i = c, l =
|
|
124
|
+
for (var i = c, l = j.va && j.C && new s(), u = d.charCodeAt(c += 2); c < me && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
129
125
|
++c, u = d.charCodeAt(c);
|
|
130
|
-
|
|
126
|
+
j.va && j.va(!1, d.slice(i + 2, c), i, c, l, j.C && new s());
|
|
131
127
|
}
|
|
132
128
|
function g() {
|
|
133
|
-
for (; c <
|
|
129
|
+
for (; c < me; ) {
|
|
134
130
|
var i = d.charCodeAt(c);
|
|
135
131
|
if (i === 32)
|
|
136
132
|
++c;
|
|
137
133
|
else if (i === 13)
|
|
138
|
-
++c, i = d.charCodeAt(c), i === 10 && ++c,
|
|
134
|
+
++c, i = d.charCodeAt(c), i === 10 && ++c, j.C && (++de, te = c);
|
|
139
135
|
else if (i === 10 || i === 8232 || i === 8233)
|
|
140
|
-
++c,
|
|
136
|
+
++c, j.C && (++de, te = c);
|
|
141
137
|
else if (8 < i && 14 > i)
|
|
142
138
|
++c;
|
|
143
139
|
else if (i === 47)
|
|
144
140
|
if (i = d.charCodeAt(c + 1), i === 42) {
|
|
145
141
|
i = void 0;
|
|
146
|
-
var l =
|
|
147
|
-
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2,
|
|
148
|
-
for (
|
|
149
|
-
++de,
|
|
150
|
-
|
|
142
|
+
var l = j.va && j.C && new s(), u = c, p = d.indexOf("*/", c += 2);
|
|
143
|
+
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, j.C)
|
|
144
|
+
for (nt.lastIndex = u; (i = nt.exec(d)) && i.index < c; )
|
|
145
|
+
++de, te = i.index + i[0].length;
|
|
146
|
+
j.va && j.va(!0, d.slice(u + 2, p), u, c, l, j.C && new s());
|
|
151
147
|
} else if (i === 47)
|
|
152
148
|
f();
|
|
153
149
|
else
|
|
154
150
|
break;
|
|
155
151
|
else if (i === 160)
|
|
156
152
|
++c;
|
|
157
|
-
else if (5760 <= i &&
|
|
153
|
+
else if (5760 <= i && Sn.test(String.fromCharCode(i)))
|
|
158
154
|
++c;
|
|
159
155
|
else
|
|
160
156
|
break;
|
|
161
157
|
}
|
|
162
158
|
}
|
|
163
|
-
function
|
|
159
|
+
function O(i) {
|
|
164
160
|
switch (i) {
|
|
165
161
|
case 46:
|
|
166
|
-
i = d.charCodeAt(c + 1), 48 <= i && 57 >= i ?
|
|
162
|
+
i = d.charCodeAt(c + 1), 48 <= i && 57 >= i ? P(!0) : (++c, a(jr));
|
|
167
163
|
return;
|
|
168
164
|
case 40:
|
|
169
|
-
return ++c, a(
|
|
165
|
+
return ++c, a(re);
|
|
170
166
|
case 41:
|
|
171
|
-
return ++c, a(
|
|
167
|
+
return ++c, a(z);
|
|
172
168
|
case 59:
|
|
173
|
-
return ++c, a(
|
|
169
|
+
return ++c, a(ne);
|
|
174
170
|
case 44:
|
|
175
|
-
return ++c, a(
|
|
171
|
+
return ++c, a(pe);
|
|
176
172
|
case 91:
|
|
177
|
-
return ++c, a(It);
|
|
178
|
-
case 93:
|
|
179
173
|
return ++c, a(Tt);
|
|
174
|
+
case 93:
|
|
175
|
+
return ++c, a(Nt);
|
|
180
176
|
case 123:
|
|
181
177
|
return ++c, a(Me);
|
|
182
178
|
case 125:
|
|
183
|
-
return ++c, a(
|
|
179
|
+
return ++c, a(xe);
|
|
184
180
|
case 58:
|
|
185
|
-
return ++c, a(
|
|
181
|
+
return ++c, a(De);
|
|
186
182
|
case 63:
|
|
187
|
-
return ++c, a(
|
|
183
|
+
return ++c, a(Or);
|
|
188
184
|
case 48:
|
|
189
185
|
if (i = d.charCodeAt(c + 1), i === 120 || i === 88) {
|
|
190
|
-
c += 2, i = R(16), i === null && r(D + 2, "Expected hexadecimal number"), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), a(
|
|
186
|
+
c += 2, i = R(16), i === null && r(D + 2, "Expected hexadecimal number"), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), a(Be, i);
|
|
191
187
|
return;
|
|
192
188
|
}
|
|
193
189
|
case 49:
|
|
@@ -199,15 +195,15 @@ var I, Mn = function(e) {
|
|
|
199
195
|
case 55:
|
|
200
196
|
case 56:
|
|
201
197
|
case 57:
|
|
202
|
-
return
|
|
198
|
+
return P(!1);
|
|
203
199
|
case 34:
|
|
204
200
|
case 39:
|
|
205
201
|
c++;
|
|
206
202
|
for (var l = ""; ; ) {
|
|
207
|
-
c >=
|
|
203
|
+
c >= me && r(D, "Unterminated string constant");
|
|
208
204
|
var u = d.charCodeAt(c);
|
|
209
205
|
if (u === i) {
|
|
210
|
-
++c, a(
|
|
206
|
+
++c, a(qe, l);
|
|
211
207
|
break;
|
|
212
208
|
}
|
|
213
209
|
if (u === 92) {
|
|
@@ -216,7 +212,7 @@ var I, Mn = function(e) {
|
|
|
216
212
|
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
217
213
|
p = p.slice(0, -1);
|
|
218
214
|
if (p === "0" && (p = null), ++c, p)
|
|
219
|
-
|
|
215
|
+
K && r(c - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), c += p.length - 1;
|
|
220
216
|
else
|
|
221
217
|
switch (u) {
|
|
222
218
|
case 110:
|
|
@@ -227,13 +223,13 @@ var I, Mn = function(e) {
|
|
|
227
223
|
l += "\r";
|
|
228
224
|
break;
|
|
229
225
|
case 120:
|
|
230
|
-
l += String.fromCharCode(
|
|
226
|
+
l += String.fromCharCode(ue(2));
|
|
231
227
|
break;
|
|
232
228
|
case 117:
|
|
233
|
-
l += String.fromCharCode(
|
|
229
|
+
l += String.fromCharCode(ue(4));
|
|
234
230
|
break;
|
|
235
231
|
case 85:
|
|
236
|
-
l += String.fromCharCode(
|
|
232
|
+
l += String.fromCharCode(ue(8));
|
|
237
233
|
break;
|
|
238
234
|
case 116:
|
|
239
235
|
l += " ";
|
|
@@ -253,7 +249,7 @@ var I, Mn = function(e) {
|
|
|
253
249
|
case 13:
|
|
254
250
|
d.charCodeAt(c) === 10 && ++c;
|
|
255
251
|
case 10:
|
|
256
|
-
|
|
252
|
+
j.C && (te = c, ++de);
|
|
257
253
|
break;
|
|
258
254
|
default:
|
|
259
255
|
l += String.fromCharCode(u);
|
|
@@ -263,58 +259,58 @@ var I, Mn = function(e) {
|
|
|
263
259
|
}
|
|
264
260
|
return;
|
|
265
261
|
case 47:
|
|
266
|
-
i = d.charCodeAt(c + 1), Pe ? (++c,
|
|
262
|
+
i = d.charCodeAt(c + 1), Pe ? (++c, T()) : i === 61 ? S(ye, 2) : S(Ar, 1);
|
|
267
263
|
return;
|
|
268
264
|
case 37:
|
|
269
265
|
case 42:
|
|
270
|
-
d.charCodeAt(c + 1) === 61 ?
|
|
266
|
+
d.charCodeAt(c + 1) === 61 ? S(ye, 2) : S(yn, 1);
|
|
271
267
|
return;
|
|
272
268
|
case 124:
|
|
273
269
|
case 38:
|
|
274
|
-
l = d.charCodeAt(c + 1), l === i ?
|
|
270
|
+
l = d.charCodeAt(c + 1), l === i ? S(i === 124 ? Tr : Nr, 2) : l === 61 ? S(ye, 2) : S(i === 124 ? un : fn, 1);
|
|
275
271
|
return;
|
|
276
272
|
case 94:
|
|
277
|
-
d.charCodeAt(c + 1) === 61 ?
|
|
273
|
+
d.charCodeAt(c + 1) === 61 ? S(ye, 2) : S(cn, 1);
|
|
278
274
|
return;
|
|
279
275
|
case 43:
|
|
280
276
|
case 45:
|
|
281
|
-
l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 &&
|
|
277
|
+
l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 && rt.test(d.slice(fe, c)) ? (c += 3, f(), g(), C()) : S(ln, 2) : l === 61 ? S(ye, 2) : S(dn, 1);
|
|
282
278
|
return;
|
|
283
279
|
case 60:
|
|
284
280
|
case 62:
|
|
285
|
-
l = d.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && d.charCodeAt(c + 2) === 62 ? 3 : 2, d.charCodeAt(c + u) === 61 ?
|
|
281
|
+
l = d.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && d.charCodeAt(c + 2) === 62 ? 3 : 2, d.charCodeAt(c + u) === 61 ? S(ye, u + 1) : S(gn, u)) : l === 33 && i === 60 && d.charCodeAt(c + 2) === 45 && d.charCodeAt(c + 3) === 45 ? (c += 4, f(), g(), C()) : (l === 61 && (u = d.charCodeAt(c + 2) === 61 ? 3 : 2), S(hn, u));
|
|
286
282
|
return;
|
|
287
283
|
case 61:
|
|
288
284
|
case 33:
|
|
289
|
-
d.charCodeAt(c + 1) === 61 ?
|
|
285
|
+
d.charCodeAt(c + 1) === 61 ? S(pn, d.charCodeAt(c + 2) === 61 ? 3 : 2) : S(i === 61 ? br : Ir, 1);
|
|
290
286
|
return;
|
|
291
287
|
case 126:
|
|
292
|
-
return
|
|
288
|
+
return S(Ir, 1);
|
|
293
289
|
}
|
|
294
290
|
return !1;
|
|
295
291
|
}
|
|
296
|
-
function
|
|
297
|
-
if (i ? c = D + 1 : D = c,
|
|
298
|
-
return
|
|
299
|
-
if (c >=
|
|
300
|
-
return a(
|
|
292
|
+
function C(i) {
|
|
293
|
+
if (i ? c = D + 1 : D = c, j.C && (St = new s()), i)
|
|
294
|
+
return T();
|
|
295
|
+
if (c >= me)
|
|
296
|
+
return a(Et);
|
|
301
297
|
if (i = d.charCodeAt(c), n(i) || i === 92)
|
|
302
|
-
return
|
|
303
|
-
if (
|
|
304
|
-
if (i = String.fromCharCode(i), i === "\\" ||
|
|
305
|
-
return
|
|
298
|
+
return H();
|
|
299
|
+
if (O(i) === !1) {
|
|
300
|
+
if (i = String.fromCharCode(i), i === "\\" || Rr.test(i))
|
|
301
|
+
return H();
|
|
306
302
|
r(c, "Unexpected character '" + i + "'");
|
|
307
303
|
}
|
|
308
304
|
}
|
|
309
|
-
function
|
|
305
|
+
function S(i, l) {
|
|
310
306
|
var u = d.slice(c, c + l);
|
|
311
307
|
c += l, a(i, u);
|
|
312
308
|
}
|
|
313
|
-
function
|
|
309
|
+
function T() {
|
|
314
310
|
for (var i, l, u = c; ; ) {
|
|
315
|
-
c >=
|
|
311
|
+
c >= me && r(u, "Unterminated regexp");
|
|
316
312
|
var p = d.charAt(c);
|
|
317
|
-
if (
|
|
313
|
+
if (rt.test(p) && r(u, "Unterminated regexp"), i)
|
|
318
314
|
i = !1;
|
|
319
315
|
else {
|
|
320
316
|
if (p === "[")
|
|
@@ -327,13 +323,13 @@ var I, Mn = function(e) {
|
|
|
327
323
|
}
|
|
328
324
|
++c;
|
|
329
325
|
}
|
|
330
|
-
i = d.slice(u, c), ++c, (l =
|
|
326
|
+
i = d.slice(u, c), ++c, (l = $()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
331
327
|
try {
|
|
332
328
|
var x = new RegExp(i, l);
|
|
333
329
|
} catch (U) {
|
|
334
330
|
throw U instanceof SyntaxError && r(u, U.message), U;
|
|
335
331
|
}
|
|
336
|
-
a(
|
|
332
|
+
a(sr, x);
|
|
337
333
|
}
|
|
338
334
|
function R(i, l) {
|
|
339
335
|
for (var u = c, p = 0, x = l === void 0 ? 1 / 0 : l, U = 0; U < x; ++U) {
|
|
@@ -344,306 +340,306 @@ var I, Mn = function(e) {
|
|
|
344
340
|
}
|
|
345
341
|
return c === u || l !== void 0 && c - u !== l ? null : p;
|
|
346
342
|
}
|
|
347
|
-
function
|
|
343
|
+
function P(i) {
|
|
348
344
|
var l = c, u = !1, p = d.charCodeAt(c) === 48;
|
|
349
345
|
i || R(10) !== null || r(l, "Invalid number"), d.charCodeAt(c) === 46 && (++c, R(10), u = !0), i = d.charCodeAt(c), (i === 69 || i === 101) && (i = d.charCodeAt(++c), i !== 43 && i !== 45 || ++c, R(10) === null && r(l, "Invalid number"), u = !0), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), i = d.slice(l, c);
|
|
350
346
|
var x;
|
|
351
|
-
u ? x = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) ||
|
|
347
|
+
u ? x = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || K ? r(l, "Invalid number") : x = parseInt(i, 8) : x = parseInt(i, 10), a(Be, x);
|
|
352
348
|
}
|
|
353
|
-
function
|
|
349
|
+
function ue(i) {
|
|
354
350
|
return i = R(16, i), i === null && r(D, "Bad character escape sequence"), i;
|
|
355
351
|
}
|
|
356
|
-
function
|
|
357
|
-
|
|
352
|
+
function $() {
|
|
353
|
+
ke = !1;
|
|
358
354
|
for (var i, l = !0, u = c; ; ) {
|
|
359
355
|
var p = d.charCodeAt(c);
|
|
360
356
|
if (t(p))
|
|
361
|
-
|
|
357
|
+
ke && (i += d.charAt(c)), ++c;
|
|
362
358
|
else if (p === 92) {
|
|
363
|
-
|
|
359
|
+
ke || (i = d.slice(u, c)), ke = !0, d.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = ue(4);
|
|
364
360
|
var x = String.fromCharCode(p);
|
|
365
361
|
x || r(c - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), i += x;
|
|
366
362
|
} else
|
|
367
363
|
break;
|
|
368
364
|
l = !1;
|
|
369
365
|
}
|
|
370
|
-
return
|
|
366
|
+
return ke ? i : d.slice(u, c);
|
|
371
367
|
}
|
|
372
|
-
function
|
|
373
|
-
var i =
|
|
374
|
-
!
|
|
368
|
+
function H() {
|
|
369
|
+
var i = $(), l = we;
|
|
370
|
+
!ke && mn(i) && (l = an[i]), a(l, i);
|
|
375
371
|
}
|
|
376
|
-
function
|
|
377
|
-
|
|
372
|
+
function k() {
|
|
373
|
+
xt = D, fe = Se, kt = wt, C();
|
|
378
374
|
}
|
|
379
|
-
function
|
|
380
|
-
if (
|
|
381
|
-
for (; c <
|
|
382
|
-
|
|
383
|
-
`,
|
|
384
|
-
g(),
|
|
375
|
+
function Q(i) {
|
|
376
|
+
if (K = i, c = D, j.C)
|
|
377
|
+
for (; c < te; )
|
|
378
|
+
te = d.lastIndexOf(`
|
|
379
|
+
`, te - 2) + 1, --de;
|
|
380
|
+
g(), C();
|
|
385
381
|
}
|
|
386
|
-
function
|
|
382
|
+
function Ye() {
|
|
387
383
|
this.type = null, this.start = D, this.end = null;
|
|
388
384
|
}
|
|
389
|
-
function
|
|
390
|
-
this.start =
|
|
385
|
+
function rr() {
|
|
386
|
+
this.start = St, this.end = null, mt && (this.source = mt);
|
|
391
387
|
}
|
|
392
388
|
function L() {
|
|
393
|
-
var i = new
|
|
394
|
-
return
|
|
389
|
+
var i = new Ye();
|
|
390
|
+
return j.C && (i.X = new rr()), j.vb && (i.sourceFile = j.vb), j.Xa && (i.j = [D, 0]), i;
|
|
395
391
|
}
|
|
396
|
-
function
|
|
397
|
-
var l = new
|
|
398
|
-
return l.start = i.start,
|
|
392
|
+
function ce(i) {
|
|
393
|
+
var l = new Ye();
|
|
394
|
+
return l.start = i.start, j.C && (l.X = new rr(), l.X.start = i.X.start), j.Xa && (l.j = [i.j[0], 0]), l;
|
|
399
395
|
}
|
|
400
|
-
function
|
|
401
|
-
return i.type = l, i.end =
|
|
396
|
+
function E(i, l) {
|
|
397
|
+
return i.type = l, i.end = fe, j.C && (i.X.end = kt), j.Xa && (i.j[1] = fe), i;
|
|
402
398
|
}
|
|
403
|
-
function
|
|
399
|
+
function ft(i) {
|
|
404
400
|
return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
|
|
405
401
|
}
|
|
406
402
|
function N(i) {
|
|
407
|
-
return
|
|
403
|
+
return w === i ? (k(), !0) : !1;
|
|
408
404
|
}
|
|
409
|
-
function
|
|
410
|
-
return !
|
|
405
|
+
function Ze() {
|
|
406
|
+
return !j.fc && (w === Et || w === xe || rt.test(d.slice(fe, D)));
|
|
411
407
|
}
|
|
412
408
|
function ge() {
|
|
413
|
-
N(
|
|
409
|
+
N(ne) || Ze() || q();
|
|
414
410
|
}
|
|
415
|
-
function
|
|
416
|
-
|
|
411
|
+
function B(i) {
|
|
412
|
+
w === i ? k() : q();
|
|
417
413
|
}
|
|
418
|
-
function
|
|
414
|
+
function q() {
|
|
419
415
|
r(D, "Unexpected token");
|
|
420
416
|
}
|
|
421
|
-
function
|
|
422
|
-
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"),
|
|
417
|
+
function ze(i) {
|
|
418
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), K && i.type === "Identifier" && tt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
423
419
|
}
|
|
424
|
-
function
|
|
425
|
-
(
|
|
426
|
-
var i =
|
|
420
|
+
function Y() {
|
|
421
|
+
(w === Ar || w === ye && J === "/=") && C(!0);
|
|
422
|
+
var i = w, l = L();
|
|
427
423
|
switch (i) {
|
|
428
|
-
case
|
|
429
|
-
case
|
|
430
|
-
|
|
431
|
-
var u = i ===
|
|
432
|
-
N(
|
|
433
|
-
for (var p = 0; p <
|
|
434
|
-
var x =
|
|
424
|
+
case Ct:
|
|
425
|
+
case lr:
|
|
426
|
+
k();
|
|
427
|
+
var u = i === Ct;
|
|
428
|
+
N(ne) || Ze() ? l.label = null : w !== we ? q() : (l.label = ee(), ge());
|
|
429
|
+
for (var p = 0; p < M.length; ++p) {
|
|
430
|
+
var x = M[p];
|
|
435
431
|
if ((l.label === null || x.name === l.label.name) && (x.kind !== null && (u || x.kind === "loop") || l.label && u))
|
|
436
432
|
break;
|
|
437
433
|
}
|
|
438
|
-
return p ===
|
|
439
|
-
case
|
|
440
|
-
return
|
|
441
|
-
case
|
|
442
|
-
return
|
|
443
|
-
case hr:
|
|
444
|
-
return O(), B.push(Pt), M(te), S === re ? ft(l, null) : S === At ? (i = L(), O(), nr(i, !0), k(i, "VariableDeclaration"), i.fa.length === 1 && N(Qe) ? rr(l, i) : ft(l, i)) : (i = $(!1, !0), N(Qe) ? (Ye(i), rr(l, i)) : ft(l, i));
|
|
445
|
-
case jt:
|
|
446
|
-
return O(), dt(l, !0);
|
|
434
|
+
return p === M.length && r(l.start, "Unsyntactic " + i.l), E(l, u ? "BreakStatement" : "ContinueStatement");
|
|
435
|
+
case ur:
|
|
436
|
+
return k(), ge(), E(l, "DebuggerStatement");
|
|
437
|
+
case fr:
|
|
438
|
+
return k(), M.push(Pt), l.body = Y(), M.pop(), B(It), l.test = Ie(), ge(), E(l, "DoWhileStatement");
|
|
447
439
|
case gr:
|
|
448
|
-
return
|
|
449
|
-
case dr:
|
|
450
|
-
return Ne || C.Ib || r(D, "'return' outside of function"), O(), N(re) || Je() ? l.K = null : (l.K = $(), ge()), k(l, "ReturnStatement");
|
|
440
|
+
return k(), M.push(Pt), B(re), w === ne ? pt(l, null) : w === bt ? (i = L(), k(), or(i, !0), E(i, "VariableDeclaration"), i.fa.length === 1 && N(et) ? nr(l, i) : pt(l, i)) : (i = W(!1, !0), N(et) ? (ze(i), nr(l, i)) : pt(l, i));
|
|
451
441
|
case Ot:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
return
|
|
442
|
+
return k(), yt(l, !0);
|
|
443
|
+
case dr:
|
|
444
|
+
return k(), l.test = Ie(), l.da = Y(), l.alternate = N(pr) ? Y() : null, E(l, "IfStatement");
|
|
455
445
|
case yr:
|
|
456
|
-
return
|
|
457
|
-
case vr:
|
|
458
|
-
return O(), l.block = Ie(), l.Ea = null, S === sr && (i = L(), O(), M(te), i.Ua = q(), H && qe(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(Z), i.body = Ie(), l.Ea = k(i, "CatchClause")), l.fb = N(pr) ? Ie() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), k(l, "TryStatement");
|
|
446
|
+
return Re || j.Ib || r(D, "'return' outside of function"), k(), N(ne) || Ze() ? l.K = null : (l.K = W(), ge()), E(l, "ReturnStatement");
|
|
459
447
|
case At:
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
return
|
|
448
|
+
for (k(), l.Qb = Ie(), l.tb = [], B(Me), M.push(xn); w !== xe; )
|
|
449
|
+
w === jt || w === cr ? (i = w === jt, p && E(p, "SwitchCase"), l.tb.push(p = L()), p.da = [], k(), i ? p.test = W() : (u && r(xt, "Multiple default clauses"), u = !0, p.test = null), B(De)) : (p || q(), p.da.push(Y()));
|
|
450
|
+
return p && E(p, "SwitchCase"), k(), M.pop(), E(l, "SwitchStatement");
|
|
451
|
+
case vr:
|
|
452
|
+
return k(), rt.test(d.slice(fe, D)) && r(fe, "Illegal newline after throw"), l.K = W(), ge(), E(l, "ThrowStatement");
|
|
463
453
|
case mr:
|
|
464
|
-
return
|
|
454
|
+
return k(), l.block = Te(), l.Ea = null, w === ar && (i = L(), k(), B(re), i.Ua = ee(), K && tt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), B(z), i.body = Te(), l.Ea = E(i, "CatchClause")), l.fb = N(hr) ? Te() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
455
|
+
case bt:
|
|
456
|
+
return k(), or(l), ge(), E(l, "VariableDeclaration");
|
|
457
|
+
case It:
|
|
458
|
+
return k(), l.test = Ie(), M.push(Pt), l.body = Y(), M.pop(), E(l, "WhileStatement");
|
|
459
|
+
case Sr:
|
|
460
|
+
return K && r(D, "'with' in strict mode"), k(), l.object = Ie(), l.body = Y(), E(l, "WithStatement");
|
|
465
461
|
case Me:
|
|
466
|
-
return
|
|
467
|
-
case
|
|
468
|
-
return
|
|
462
|
+
return Te();
|
|
463
|
+
case ne:
|
|
464
|
+
return k(), E(l, "EmptyStatement");
|
|
469
465
|
default:
|
|
470
|
-
if (u =
|
|
471
|
-
for (p = 0; p <
|
|
472
|
-
|
|
473
|
-
return
|
|
466
|
+
if (u = J, x = W(), i === we && x.type === "Identifier" && N(De)) {
|
|
467
|
+
for (p = 0; p < M.length; ++p)
|
|
468
|
+
M[p].name === u && r(x.start, "Label '" + u + "' is already declared");
|
|
469
|
+
return M.push({
|
|
474
470
|
name: u,
|
|
475
|
-
kind:
|
|
476
|
-
}), l.body =
|
|
471
|
+
kind: w.W ? "loop" : w === At ? "switch" : null
|
|
472
|
+
}), l.body = Y(), M.pop(), l.label = x, E(l, "LabeledStatement");
|
|
477
473
|
}
|
|
478
|
-
return l.la = x, ge(),
|
|
474
|
+
return l.la = x, ge(), E(l, "ExpressionStatement");
|
|
479
475
|
}
|
|
480
476
|
}
|
|
481
|
-
function
|
|
482
|
-
|
|
483
|
-
var i =
|
|
484
|
-
return
|
|
477
|
+
function Ie() {
|
|
478
|
+
B(re);
|
|
479
|
+
var i = W();
|
|
480
|
+
return B(z), i;
|
|
485
481
|
}
|
|
486
|
-
function
|
|
482
|
+
function Te(i) {
|
|
487
483
|
var l = L(), u = !0, p = !1;
|
|
488
|
-
for (l.body = [],
|
|
489
|
-
var x =
|
|
490
|
-
if (l.body.push(x), u && i &&
|
|
484
|
+
for (l.body = [], B(Me); !N(xe); ) {
|
|
485
|
+
var x = Y();
|
|
486
|
+
if (l.body.push(x), u && i && ft(x)) {
|
|
491
487
|
var U = p;
|
|
492
|
-
|
|
488
|
+
Q(p = !0);
|
|
493
489
|
}
|
|
494
490
|
u = !1;
|
|
495
491
|
}
|
|
496
|
-
return p && !U &&
|
|
497
|
-
}
|
|
498
|
-
function ft(i, l) {
|
|
499
|
-
return i.ua = l, M(re), i.test = S === re ? null : $(), M(re), i.update = S === Z ? null : $(), M(Z), i.body = J(), B.pop(), k(i, "ForStatement");
|
|
492
|
+
return p && !U && Q(!1), E(l, "BlockStatement");
|
|
500
493
|
}
|
|
501
|
-
function
|
|
502
|
-
return i.
|
|
494
|
+
function pt(i, l) {
|
|
495
|
+
return i.ua = l, B(ne), i.test = w === ne ? null : W(), B(ne), i.update = w === z ? null : W(), B(z), i.body = Y(), M.pop(), E(i, "ForStatement");
|
|
503
496
|
}
|
|
504
497
|
function nr(i, l) {
|
|
498
|
+
return i.left = l, i.right = W(), B(z), i.body = Y(), M.pop(), E(i, "ForInStatement");
|
|
499
|
+
}
|
|
500
|
+
function or(i, l) {
|
|
505
501
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
506
502
|
var u = L();
|
|
507
|
-
if (u.id =
|
|
503
|
+
if (u.id = ee(), K && tt(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = N(br) ? W(!0, l) : null, i.fa.push(E(u, "VariableDeclarator")), !N(pe))
|
|
508
504
|
break;
|
|
509
505
|
}
|
|
510
506
|
}
|
|
511
|
-
function
|
|
512
|
-
var u =
|
|
513
|
-
if (!i &&
|
|
514
|
-
for (i =
|
|
515
|
-
i.xb.push(
|
|
516
|
-
return
|
|
507
|
+
function W(i, l) {
|
|
508
|
+
var u = ht(l);
|
|
509
|
+
if (!i && w === pe) {
|
|
510
|
+
for (i = ce(u), i.xb = [u]; N(pe); )
|
|
511
|
+
i.xb.push(ht(l));
|
|
512
|
+
return E(i, "SequenceExpression");
|
|
517
513
|
}
|
|
518
514
|
return u;
|
|
519
515
|
}
|
|
520
|
-
function
|
|
521
|
-
var l =
|
|
522
|
-
if (N(
|
|
523
|
-
var u =
|
|
524
|
-
u.test = l, u.da =
|
|
516
|
+
function ht(i) {
|
|
517
|
+
var l = gt(dt(), -1, i);
|
|
518
|
+
if (N(Or)) {
|
|
519
|
+
var u = ce(l);
|
|
520
|
+
u.test = l, u.da = W(!0), B(De), u.alternate = W(!0, i), l = E(u, "ConditionalExpression");
|
|
525
521
|
}
|
|
526
|
-
return
|
|
522
|
+
return w.Cb ? (u = ce(l), u.operator = J, u.left = l, k(), u.right = ht(i), ze(l), E(u, "AssignmentExpression")) : l;
|
|
527
523
|
}
|
|
528
|
-
function
|
|
529
|
-
var p =
|
|
530
|
-
if (p !== null && (!u ||
|
|
531
|
-
var x =
|
|
532
|
-
return x.left = i, x.operator =
|
|
524
|
+
function gt(i, l, u) {
|
|
525
|
+
var p = w.L;
|
|
526
|
+
if (p !== null && (!u || w !== et) && p > l) {
|
|
527
|
+
var x = ce(i);
|
|
528
|
+
return x.left = i, x.operator = J, i = w, k(), x.right = gt(dt(), p, u), p = E(x, i === Tr || i === Nr ? "LogicalExpression" : "BinaryExpression"), gt(p, l, u);
|
|
533
529
|
}
|
|
534
530
|
return i;
|
|
535
531
|
}
|
|
536
|
-
function
|
|
537
|
-
if (
|
|
538
|
-
var i = L(), l =
|
|
539
|
-
return i.operator =
|
|
532
|
+
function dt() {
|
|
533
|
+
if (w.prefix) {
|
|
534
|
+
var i = L(), l = w.$b;
|
|
535
|
+
return i.operator = J, Pe = i.prefix = !0, k(), i.K = dt(), l ? ze(i.K) : K && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), E(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
540
536
|
}
|
|
541
|
-
for (l =
|
|
542
|
-
i =
|
|
537
|
+
for (l = Ne(Qe()); w.cc && !Ze(); )
|
|
538
|
+
i = ce(l), i.operator = J, i.prefix = !1, i.K = l, ze(l), k(), l = E(i, "UpdateExpression");
|
|
543
539
|
return l;
|
|
544
540
|
}
|
|
545
|
-
function
|
|
546
|
-
if (N(
|
|
547
|
-
var u =
|
|
548
|
-
return u.object = i, u.Wa =
|
|
541
|
+
function Ne(i, l) {
|
|
542
|
+
if (N(jr)) {
|
|
543
|
+
var u = ce(i);
|
|
544
|
+
return u.object = i, u.Wa = ee(!0), u.bb = !1, Ne(E(u, "MemberExpression"), l);
|
|
549
545
|
}
|
|
550
|
-
return N(
|
|
546
|
+
return N(Tt) ? (u = ce(i), u.object = i, u.Wa = W(), u.bb = !0, B(Nt), Ne(E(u, "MemberExpression"), l)) : !l && N(re) ? (u = ce(i), u.callee = i, u.arguments = vt(z, !1), Ne(E(u, "CallExpression"), l)) : i;
|
|
551
547
|
}
|
|
552
|
-
function
|
|
553
|
-
switch (
|
|
554
|
-
case
|
|
548
|
+
function Qe() {
|
|
549
|
+
switch (w) {
|
|
550
|
+
case xr:
|
|
555
551
|
var i = L();
|
|
556
|
-
return
|
|
552
|
+
return k(), E(i, "ThisExpression");
|
|
557
553
|
case we:
|
|
558
|
-
return
|
|
559
|
-
case
|
|
560
|
-
case
|
|
561
|
-
case
|
|
562
|
-
return i = L(), i.value =
|
|
563
|
-
case xr:
|
|
554
|
+
return ee();
|
|
555
|
+
case Be:
|
|
556
|
+
case qe:
|
|
557
|
+
case sr:
|
|
558
|
+
return i = L(), i.value = J, i.raw = d.slice(D, Se), k(), E(i, "Literal");
|
|
564
559
|
case kr:
|
|
565
560
|
case Er:
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
561
|
+
case Cr:
|
|
562
|
+
return i = L(), i.value = w.$a, i.raw = w.l, k(), E(i, "Literal");
|
|
563
|
+
case re:
|
|
564
|
+
i = St;
|
|
569
565
|
var l = D;
|
|
570
|
-
|
|
571
|
-
var u =
|
|
572
|
-
return u.start = l, u.end =
|
|
573
|
-
case
|
|
574
|
-
return i = L(),
|
|
566
|
+
k();
|
|
567
|
+
var u = W();
|
|
568
|
+
return u.start = l, u.end = Se, j.C && (u.X.start = i, u.X.end = wt), j.Xa && (u.j = [l, Se]), B(z), u;
|
|
569
|
+
case Tt:
|
|
570
|
+
return i = L(), k(), i.elements = vt(Nt, !0, !0), E(i, "ArrayExpression");
|
|
575
571
|
case Me:
|
|
576
|
-
for (i = L(), l = !0, u = !1, i.h = [],
|
|
572
|
+
for (i = L(), l = !0, u = !1, i.h = [], k(); !N(xe); ) {
|
|
577
573
|
if (l)
|
|
578
574
|
l = !1;
|
|
579
|
-
else if (
|
|
575
|
+
else if (B(pe), j.sb && N(xe))
|
|
580
576
|
break;
|
|
581
577
|
var p = {
|
|
582
|
-
key:
|
|
578
|
+
key: w === Be || w === qe ? Qe() : ee(!0)
|
|
583
579
|
}, x = !1;
|
|
584
|
-
if (N(
|
|
585
|
-
p.value =
|
|
580
|
+
if (N(De)) {
|
|
581
|
+
p.value = W(!0);
|
|
586
582
|
var U = p.kind = "init";
|
|
587
583
|
} else
|
|
588
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ?
|
|
589
|
-
if (p.key.type === "Identifier" && (
|
|
584
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? q() : (x = u = !0, U = p.kind = p.key.name, p.key = w === Be || w === qe ? Qe() : ee(!0), w !== re && q(), p.value = yt(L(), !1));
|
|
585
|
+
if (p.key.type === "Identifier" && (K || u))
|
|
590
586
|
for (var G = 0; G < i.h.length; ++G) {
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
var
|
|
594
|
-
|
|
587
|
+
var Ee = i.h[G];
|
|
588
|
+
if (Ee.key.name === p.key.name) {
|
|
589
|
+
var Rt = U === Ee.kind || x && Ee.kind === "init" || U === "init" && (Ee.kind === "get" || Ee.kind === "set");
|
|
590
|
+
Rt && !K && U === "init" && Ee.kind === "init" && (Rt = !1), Rt && r(p.key.start, "Redefinition of property");
|
|
595
591
|
}
|
|
596
592
|
}
|
|
597
593
|
i.h.push(p);
|
|
598
594
|
}
|
|
599
|
-
return
|
|
600
|
-
case
|
|
601
|
-
return i = L(),
|
|
595
|
+
return E(i, "ObjectExpression");
|
|
596
|
+
case Ot:
|
|
597
|
+
return i = L(), k(), yt(i, !1);
|
|
602
598
|
case wr:
|
|
603
|
-
return i = L(),
|
|
599
|
+
return i = L(), k(), i.callee = Ne(Qe(), !0), i.arguments = N(re) ? vt(z, !1) : sn, E(i, "NewExpression");
|
|
604
600
|
}
|
|
605
|
-
|
|
601
|
+
q();
|
|
606
602
|
}
|
|
607
|
-
function
|
|
608
|
-
|
|
603
|
+
function yt(i, l) {
|
|
604
|
+
w === we ? i.id = ee() : l ? q() : i.id = null, i.oa = [];
|
|
609
605
|
var u = !0;
|
|
610
|
-
for (
|
|
611
|
-
u ? u = !1 :
|
|
612
|
-
u =
|
|
613
|
-
var p =
|
|
614
|
-
if (
|
|
606
|
+
for (B(re); !N(z); )
|
|
607
|
+
u ? u = !1 : B(pe), i.oa.push(ee());
|
|
608
|
+
u = Re;
|
|
609
|
+
var p = M;
|
|
610
|
+
if (Re = !0, M = [], i.body = Te(!0), Re = u, M = p, K || i.body.body.length && ft(i.body.body[0])) {
|
|
615
611
|
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
616
|
-
if (p = 0 > u ? i.id : i.oa[u], (Pr(p.name) ||
|
|
612
|
+
if (p = 0 > u ? i.id : i.oa[u], (Pr(p.name) || tt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
|
|
617
613
|
for (var x = 0; x < u; ++x)
|
|
618
614
|
p.name === i.oa[x].name && r(p.start, "Argument name clash in strict mode");
|
|
619
615
|
}
|
|
620
|
-
return
|
|
616
|
+
return E(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
621
617
|
}
|
|
622
|
-
function
|
|
618
|
+
function vt(i, l, u) {
|
|
623
619
|
for (var p = [], x = !0; !N(i); ) {
|
|
624
620
|
if (x)
|
|
625
621
|
x = !1;
|
|
626
|
-
else if (
|
|
622
|
+
else if (B(pe), l && j.sb && N(i))
|
|
627
623
|
break;
|
|
628
|
-
p.push(u &&
|
|
624
|
+
p.push(u && w === pe ? null : W(!0));
|
|
629
625
|
}
|
|
630
626
|
return p;
|
|
631
627
|
}
|
|
632
|
-
function
|
|
628
|
+
function ee(i) {
|
|
633
629
|
var l = L();
|
|
634
|
-
return i &&
|
|
630
|
+
return i && j.yb === "everywhere" && (i = !1), w === we ? (!i && (j.yb && vn(J) || K && Pr(J)) && d.slice(D, Se).indexOf("\\") === -1 && r(D, "The keyword '" + J + "' is reserved"), l.name = J) : i && w.l ? l.name = w.l : q(), Pe = !1, k(), E(l, "Identifier");
|
|
635
631
|
}
|
|
636
632
|
e.version = "0.5.0";
|
|
637
|
-
var
|
|
633
|
+
var j, d = "", me, mt;
|
|
638
634
|
e.parse = function(i, l) {
|
|
639
|
-
d = String(i),
|
|
640
|
-
for (var u in
|
|
641
|
-
Object.prototype.hasOwnProperty.call(
|
|
642
|
-
for (
|
|
643
|
-
u =
|
|
644
|
-
return
|
|
635
|
+
d = String(i), me = d.length, j = l || {};
|
|
636
|
+
for (var u in ir)
|
|
637
|
+
Object.prototype.hasOwnProperty.call(j, u) || (j[u] = ir[u]);
|
|
638
|
+
for (mt = j.sourceFile, de = 1, c = te = 0, Pe = !0, g(), u = j.dc, xt = fe = c, j.C && (kt = new s()), Re = K = !1, M = [], C(), i = u || L(), l = !0, u || (i.body = []); w !== Et; )
|
|
639
|
+
u = Y(), i.body.push(u), l && ft(u) && Q(!0), l = !1;
|
|
640
|
+
return E(i, "Program");
|
|
645
641
|
};
|
|
646
|
-
var
|
|
642
|
+
var ir = {
|
|
647
643
|
fc: !1,
|
|
648
644
|
sb: !0,
|
|
649
645
|
yb: !1,
|
|
@@ -654,110 +650,110 @@ var I, Mn = function(e) {
|
|
|
654
650
|
dc: null,
|
|
655
651
|
sourceFile: null,
|
|
656
652
|
vb: null
|
|
657
|
-
}, c = 0, D = 0,
|
|
653
|
+
}, c = 0, D = 0, Se = 0, St, wt, w, J, Pe, de, te, xt = 0, fe = 0, kt, Re, M, K, sn = [], Be = {
|
|
658
654
|
type: "num"
|
|
659
|
-
},
|
|
655
|
+
}, sr = {
|
|
660
656
|
type: "regexp"
|
|
661
|
-
},
|
|
657
|
+
}, qe = {
|
|
662
658
|
type: "string"
|
|
663
659
|
}, we = {
|
|
664
660
|
type: "name"
|
|
665
|
-
}, kt = {
|
|
666
|
-
type: "eof"
|
|
667
661
|
}, Et = {
|
|
668
|
-
|
|
662
|
+
type: "eof"
|
|
669
663
|
}, Ct = {
|
|
664
|
+
l: "break"
|
|
665
|
+
}, jt = {
|
|
670
666
|
l: "case",
|
|
671
667
|
m: !0
|
|
672
|
-
}, sr = {
|
|
673
|
-
l: "catch"
|
|
674
668
|
}, ar = {
|
|
675
|
-
l: "
|
|
669
|
+
l: "catch"
|
|
676
670
|
}, lr = {
|
|
677
|
-
l: "
|
|
671
|
+
l: "continue"
|
|
678
672
|
}, ur = {
|
|
679
|
-
l: "
|
|
673
|
+
l: "debugger"
|
|
680
674
|
}, cr = {
|
|
675
|
+
l: "default"
|
|
676
|
+
}, fr = {
|
|
681
677
|
l: "do",
|
|
682
678
|
W: !0
|
|
683
|
-
},
|
|
679
|
+
}, pr = {
|
|
684
680
|
l: "else",
|
|
685
681
|
m: !0
|
|
686
|
-
}, pr = {
|
|
687
|
-
l: "finally"
|
|
688
682
|
}, hr = {
|
|
683
|
+
l: "finally"
|
|
684
|
+
}, gr = {
|
|
689
685
|
l: "for",
|
|
690
686
|
W: !0
|
|
691
|
-
},
|
|
687
|
+
}, Ot = {
|
|
692
688
|
l: "function"
|
|
693
|
-
}, gr = {
|
|
694
|
-
l: "if"
|
|
695
689
|
}, dr = {
|
|
690
|
+
l: "if"
|
|
691
|
+
}, yr = {
|
|
696
692
|
l: "return",
|
|
697
693
|
m: !0
|
|
698
|
-
},
|
|
694
|
+
}, At = {
|
|
699
695
|
l: "switch"
|
|
700
|
-
},
|
|
696
|
+
}, vr = {
|
|
701
697
|
l: "throw",
|
|
702
698
|
m: !0
|
|
703
|
-
},
|
|
699
|
+
}, mr = {
|
|
704
700
|
l: "try"
|
|
705
|
-
}, At = {
|
|
706
|
-
l: "var"
|
|
707
701
|
}, bt = {
|
|
702
|
+
l: "var"
|
|
703
|
+
}, It = {
|
|
708
704
|
l: "while",
|
|
709
705
|
W: !0
|
|
710
|
-
},
|
|
706
|
+
}, Sr = {
|
|
711
707
|
l: "with"
|
|
712
708
|
}, wr = {
|
|
713
709
|
l: "new",
|
|
714
710
|
m: !0
|
|
715
|
-
}, Sr = {
|
|
716
|
-
l: "this"
|
|
717
711
|
}, xr = {
|
|
712
|
+
l: "this"
|
|
713
|
+
}, kr = {
|
|
718
714
|
l: "null",
|
|
719
715
|
$a: null
|
|
720
|
-
},
|
|
716
|
+
}, Er = {
|
|
721
717
|
l: "true",
|
|
722
718
|
$a: !0
|
|
723
|
-
},
|
|
719
|
+
}, Cr = {
|
|
724
720
|
l: "false",
|
|
725
721
|
$a: !1
|
|
726
|
-
},
|
|
722
|
+
}, et = {
|
|
727
723
|
l: "in",
|
|
728
724
|
L: 7,
|
|
729
725
|
m: !0
|
|
730
726
|
}, an = {
|
|
731
|
-
break:
|
|
732
|
-
case:
|
|
733
|
-
catch:
|
|
734
|
-
continue:
|
|
735
|
-
debugger:
|
|
736
|
-
default:
|
|
737
|
-
do:
|
|
738
|
-
else:
|
|
739
|
-
finally:
|
|
740
|
-
for:
|
|
741
|
-
function:
|
|
742
|
-
if:
|
|
743
|
-
return:
|
|
744
|
-
switch:
|
|
745
|
-
throw:
|
|
746
|
-
try:
|
|
747
|
-
var:
|
|
748
|
-
while:
|
|
749
|
-
with:
|
|
750
|
-
null:
|
|
751
|
-
true:
|
|
752
|
-
false:
|
|
727
|
+
break: Ct,
|
|
728
|
+
case: jt,
|
|
729
|
+
catch: ar,
|
|
730
|
+
continue: lr,
|
|
731
|
+
debugger: ur,
|
|
732
|
+
default: cr,
|
|
733
|
+
do: fr,
|
|
734
|
+
else: pr,
|
|
735
|
+
finally: hr,
|
|
736
|
+
for: gr,
|
|
737
|
+
function: Ot,
|
|
738
|
+
if: dr,
|
|
739
|
+
return: yr,
|
|
740
|
+
switch: At,
|
|
741
|
+
throw: vr,
|
|
742
|
+
try: mr,
|
|
743
|
+
var: bt,
|
|
744
|
+
while: It,
|
|
745
|
+
with: Sr,
|
|
746
|
+
null: kr,
|
|
747
|
+
true: Er,
|
|
748
|
+
false: Cr,
|
|
753
749
|
new: wr,
|
|
754
|
-
in:
|
|
750
|
+
in: et,
|
|
755
751
|
instanceof: {
|
|
756
752
|
l: "instanceof",
|
|
757
753
|
L: 7,
|
|
758
754
|
m: !0
|
|
759
755
|
},
|
|
760
|
-
this:
|
|
756
|
+
this: xr,
|
|
761
757
|
typeof: {
|
|
762
758
|
l: "typeof",
|
|
763
759
|
prefix: !0,
|
|
@@ -773,39 +769,39 @@ var I, Mn = function(e) {
|
|
|
773
769
|
prefix: !0,
|
|
774
770
|
m: !0
|
|
775
771
|
}
|
|
776
|
-
},
|
|
772
|
+
}, Tt = {
|
|
777
773
|
type: "[",
|
|
778
774
|
m: !0
|
|
779
|
-
},
|
|
775
|
+
}, Nt = {
|
|
780
776
|
type: "]"
|
|
781
777
|
}, Me = {
|
|
782
778
|
type: "{",
|
|
783
779
|
m: !0
|
|
784
|
-
},
|
|
780
|
+
}, xe = {
|
|
785
781
|
type: "}"
|
|
786
|
-
},
|
|
782
|
+
}, re = {
|
|
787
783
|
type: "(",
|
|
788
784
|
m: !0
|
|
789
|
-
},
|
|
785
|
+
}, z = {
|
|
790
786
|
type: ")"
|
|
791
|
-
},
|
|
787
|
+
}, pe = {
|
|
792
788
|
type: ",",
|
|
793
789
|
m: !0
|
|
794
|
-
},
|
|
790
|
+
}, ne = {
|
|
795
791
|
type: ";",
|
|
796
792
|
m: !0
|
|
797
|
-
},
|
|
793
|
+
}, De = {
|
|
798
794
|
type: ":",
|
|
799
795
|
m: !0
|
|
800
|
-
}, Cr = {
|
|
801
|
-
type: "."
|
|
802
796
|
}, jr = {
|
|
797
|
+
type: "."
|
|
798
|
+
}, Or = {
|
|
803
799
|
type: "?",
|
|
804
800
|
m: !0
|
|
805
|
-
},
|
|
801
|
+
}, Ar = {
|
|
806
802
|
L: 10,
|
|
807
803
|
m: !0
|
|
808
|
-
},
|
|
804
|
+
}, br = {
|
|
809
805
|
Cb: !0,
|
|
810
806
|
m: !0
|
|
811
807
|
}, ye = {
|
|
@@ -815,13 +811,13 @@ var I, Mn = function(e) {
|
|
|
815
811
|
cc: !0,
|
|
816
812
|
prefix: !0,
|
|
817
813
|
$b: !0
|
|
818
|
-
},
|
|
814
|
+
}, Ir = {
|
|
819
815
|
prefix: !0,
|
|
820
816
|
m: !0
|
|
821
|
-
},
|
|
817
|
+
}, Tr = {
|
|
822
818
|
L: 1,
|
|
823
819
|
m: !0
|
|
824
|
-
},
|
|
820
|
+
}, Nr = {
|
|
825
821
|
L: 2,
|
|
826
822
|
m: !0
|
|
827
823
|
}, un = {
|
|
@@ -849,15 +845,15 @@ var I, Mn = function(e) {
|
|
|
849
845
|
}, yn = {
|
|
850
846
|
L: 10,
|
|
851
847
|
m: !0
|
|
852
|
-
}, vn = o("class enum extends super const export import"), Pr = o("implements interface let package private protected public static yield"),
|
|
848
|
+
}, vn = o("class enum extends super const export import"), Pr = o("implements interface let package private protected public static yield"), tt = o("eval arguments"), mn = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Sn = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Rr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), rt = /[\n\r\u2028\u2029]/, nt = /\r\n|[\n\r\u2028\u2029]/g, ke, Pt = {
|
|
853
849
|
kind: "loop"
|
|
854
850
|
}, xn = {
|
|
855
851
|
kind: "switch"
|
|
856
852
|
};
|
|
857
|
-
},
|
|
858
|
-
|
|
853
|
+
}, Lt = Lt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
854
|
+
Bn(Lt.j || (Lt.j = {}));
|
|
859
855
|
function h(e, t) {
|
|
860
|
-
typeof e == "string" && (e =
|
|
856
|
+
typeof e == "string" && (e = Oe(e, "code"));
|
|
861
857
|
var n = e.constructor;
|
|
862
858
|
this.ya = function() {
|
|
863
859
|
return new n({
|
|
@@ -871,13 +867,13 @@ function h(e, t) {
|
|
|
871
867
|
var s, a;
|
|
872
868
|
for (a in this)
|
|
873
869
|
typeof this[a] == "function" && (s = a.match(e)) && (this.rb[s[1]] = this[a].bind(this));
|
|
874
|
-
this.N =
|
|
875
|
-
`), "polyfills"), this.ba = void 0,
|
|
870
|
+
this.N = Wt(this, this.ra, null), this.Na = this.N.object, this.ra = Oe(this.ba.join(`
|
|
871
|
+
`), "polyfills"), this.ba = void 0, at(this.ra), s = new v(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new v(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
876
872
|
}
|
|
877
873
|
var Mr = {
|
|
878
874
|
C: !0,
|
|
879
875
|
kc: 5
|
|
880
|
-
},
|
|
876
|
+
}, Gt = {
|
|
881
877
|
configurable: !0,
|
|
882
878
|
enumerable: !0,
|
|
883
879
|
writable: !1
|
|
@@ -889,62 +885,62 @@ var Mr = {
|
|
|
889
885
|
configurable: !0,
|
|
890
886
|
enumerable: !1,
|
|
891
887
|
writable: !1
|
|
892
|
-
},
|
|
888
|
+
}, Ue = {
|
|
893
889
|
configurable: !1,
|
|
894
890
|
enumerable: !1,
|
|
895
891
|
writable: !1
|
|
896
|
-
},
|
|
892
|
+
}, Dr = {
|
|
897
893
|
configurable: !1,
|
|
898
894
|
enumerable: !0,
|
|
899
895
|
writable: !0
|
|
900
896
|
}, Yr = {
|
|
901
897
|
STEP_ERROR: !0
|
|
902
|
-
},
|
|
898
|
+
}, be = {
|
|
903
899
|
SCOPE_REFERENCE: !0
|
|
904
|
-
},
|
|
900
|
+
}, Xe = {
|
|
905
901
|
VALUE_IN_DESCRIPTOR: !0
|
|
906
|
-
},
|
|
902
|
+
}, Ce = {
|
|
907
903
|
REGEXP_TIMEOUT: !0
|
|
908
|
-
},
|
|
909
|
-
function
|
|
904
|
+
}, Ur = [], se = null, $e = null, he = typeof globalThis == "undefined" ? void 0 : globalThis, Mn = ["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();", "};"];
|
|
905
|
+
function Vt(e) {
|
|
910
906
|
var t = e >>> 0;
|
|
911
907
|
return t === Number(e) ? t : NaN;
|
|
912
908
|
}
|
|
913
|
-
function
|
|
909
|
+
function Ge(e) {
|
|
914
910
|
var t = e >>> 0;
|
|
915
911
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
916
912
|
}
|
|
917
|
-
function
|
|
913
|
+
function at(e, t, n) {
|
|
918
914
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
919
915
|
for (var r in e)
|
|
920
916
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
921
917
|
var o = e[r];
|
|
922
|
-
o && typeof o == "object" &&
|
|
918
|
+
o && typeof o == "object" && at(o, t, n);
|
|
923
919
|
}
|
|
924
920
|
}
|
|
925
921
|
h.prototype.REGEXP_MODE = 2;
|
|
926
922
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
927
923
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
function
|
|
924
|
+
b = h.prototype;
|
|
925
|
+
b.P = !1;
|
|
926
|
+
b.Ka = !1;
|
|
927
|
+
b.Kb = 0;
|
|
928
|
+
b.ic = 0;
|
|
929
|
+
function Oe(e, t) {
|
|
934
930
|
var n = {}, r;
|
|
935
931
|
for (r in Mr)
|
|
936
932
|
n[r] = Mr[r];
|
|
937
|
-
return n.sourceFile = t,
|
|
933
|
+
return n.sourceFile = t, he.j.parse(e, n);
|
|
938
934
|
}
|
|
939
|
-
|
|
935
|
+
b.Jb = function(e) {
|
|
940
936
|
var t = this.o[0];
|
|
941
937
|
if (!t || t.node.type !== "Program")
|
|
942
938
|
throw Error("Expecting original AST to start with a Program node");
|
|
943
|
-
if (typeof e == "string" && (e =
|
|
939
|
+
if (typeof e == "string" && (e = Oe(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
944
940
|
throw Error("Expecting new AST to start with a Program node");
|
|
945
|
-
|
|
941
|
+
He(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
946
942
|
};
|
|
947
|
-
|
|
943
|
+
b.lb = function() {
|
|
948
944
|
var e = this.o, t;
|
|
949
945
|
do {
|
|
950
946
|
var n = e[e.length - 1];
|
|
@@ -964,15 +960,15 @@ I.lb = function() {
|
|
|
964
960
|
break;
|
|
965
961
|
}
|
|
966
962
|
r = n.node;
|
|
967
|
-
var o =
|
|
968
|
-
|
|
963
|
+
var o = $e;
|
|
964
|
+
$e = this;
|
|
969
965
|
try {
|
|
970
966
|
var s = this.rb[r.type](e, n, r);
|
|
971
967
|
} catch (a) {
|
|
972
968
|
if (a !== Yr)
|
|
973
969
|
throw this.value !== a && (this.value = void 0), a;
|
|
974
970
|
} finally {
|
|
975
|
-
|
|
971
|
+
$e = o;
|
|
976
972
|
}
|
|
977
973
|
if (s && e.push(s), this.P)
|
|
978
974
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -982,13 +978,13 @@ I.lb = function() {
|
|
|
982
978
|
} while (!r.end && t > Date.now());
|
|
983
979
|
return !0;
|
|
984
980
|
};
|
|
985
|
-
|
|
981
|
+
b.Eb = function() {
|
|
986
982
|
for (; !this.za && this.lb(); )
|
|
987
983
|
;
|
|
988
984
|
return this.za;
|
|
989
985
|
};
|
|
990
986
|
function Dn(e, t) {
|
|
991
|
-
e.g(t, "NaN", NaN,
|
|
987
|
+
e.g(t, "NaN", NaN, Ue), e.g(t, "Infinity", 1 / 0, Ue), e.g(t, "undefined", void 0, Ue), e.g(t, "window", t, Gt), e.g(t, "this", t, Ue), e.g(t, "self", t), e.M = new A(null), e.Z = new A(e.M), Un(e, t), Fn(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ln(e, t), _n(e, t), Wn(e, t), $n(e, t), Gn(e, t), Vn(e, t), Xn(e, t), Hn(e, t), Kn(e, t);
|
|
992
988
|
var n = e.i(function() {
|
|
993
989
|
throw EvalError("Can't happen");
|
|
994
990
|
}, !1);
|
|
@@ -1004,16 +1000,16 @@ function Dn(e, t) {
|
|
|
1004
1000
|
};
|
|
1005
1001
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
1006
1002
|
n = function(s) {
|
|
1007
|
-
return
|
|
1003
|
+
return Fr(e, !1, arguments);
|
|
1008
1004
|
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(s) {
|
|
1009
|
-
return
|
|
1005
|
+
return Fr(e, !0, arguments);
|
|
1010
1006
|
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(s) {
|
|
1011
|
-
|
|
1007
|
+
Lr(e, s);
|
|
1012
1008
|
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(s) {
|
|
1013
|
-
|
|
1009
|
+
Lr(e, s);
|
|
1014
1010
|
}, 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);
|
|
1015
1011
|
}
|
|
1016
|
-
|
|
1012
|
+
b.Wb = 0;
|
|
1017
1013
|
function Un(e, t) {
|
|
1018
1014
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1019
1015
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1026,11 +1022,11 @@ function Un(e, t) {
|
|
|
1026
1022
|
a = a.join(", ");
|
|
1027
1023
|
}
|
|
1028
1024
|
try {
|
|
1029
|
-
var
|
|
1030
|
-
} catch (
|
|
1031
|
-
m(e, e.T, "Invalid code: " +
|
|
1025
|
+
var O = Oe("(function(" + a + ") {" + s + "})", "function" + e.Wb++);
|
|
1026
|
+
} catch (C) {
|
|
1027
|
+
m(e, e.T, "Invalid code: " + C.message);
|
|
1032
1028
|
}
|
|
1033
|
-
return
|
|
1029
|
+
return O.body.length !== 1 && m(e, e.T, "Invalid code in function body"), Kt(e, O.body[0].la, e.N, "anonymous");
|
|
1034
1030
|
};
|
|
1035
1031
|
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() {
|
|
1036
1032
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, X), e.Z.H = "Function", r = function(o, s) {
|
|
@@ -1054,28 +1050,28 @@ function Fn(e, t) {
|
|
|
1054
1050
|
}
|
|
1055
1051
|
var r = function(o) {
|
|
1056
1052
|
if (o == null)
|
|
1057
|
-
return
|
|
1053
|
+
return le(e) ? this : e.s(e.M);
|
|
1058
1054
|
if (!(o instanceof A)) {
|
|
1059
|
-
var s = e.s(
|
|
1055
|
+
var s = e.s(ae(e, o));
|
|
1060
1056
|
return s.data = o, s;
|
|
1061
1057
|
}
|
|
1062
1058
|
return o;
|
|
1063
1059
|
};
|
|
1064
1060
|
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) {
|
|
1065
|
-
return n(o),
|
|
1061
|
+
return n(o), ie(e, Object.getOwnPropertyNames(o instanceof A ? o.h : o));
|
|
1066
1062
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1067
|
-
return n(o), o instanceof A && (o = o.h),
|
|
1063
|
+
return n(o), o instanceof A && (o = o.h), ie(e, Object.keys(o));
|
|
1068
1064
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1069
1065
|
return o === null ? e.s(null) : (o instanceof A || m(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1070
1066
|
}, 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) {
|
|
1071
|
-
return s = String(s), o instanceof A || m(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof A || m(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || m(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s,
|
|
1067
|
+
return s = String(s), o instanceof A || m(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof A || m(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || m(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s, Xe, a.h), o;
|
|
1072
1068
|
}, 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) {
|
|
1073
1069
|
if (o instanceof A || m(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), s = String(s), s in o.h) {
|
|
1074
1070
|
var a = Object.getOwnPropertyDescriptor(o.h, s), f = o.V[s];
|
|
1075
1071
|
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;
|
|
1076
1072
|
}
|
|
1077
1073
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
|
|
1078
|
-
return n(o),
|
|
1074
|
+
return n(o), ae(e, o);
|
|
1079
1075
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1080
1076
|
return !!o && !o.preventExtensions;
|
|
1081
1077
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
@@ -1086,7 +1082,7 @@ function Fn(e, t) {
|
|
|
1086
1082
|
return n(this), this instanceof A ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1087
1083
|
}, F(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1088
1084
|
for (; ; ) {
|
|
1089
|
-
if (o =
|
|
1085
|
+
if (o = ae(e, o), !o)
|
|
1090
1086
|
return !1;
|
|
1091
1087
|
if (o === this)
|
|
1092
1088
|
return !0;
|
|
@@ -1095,9 +1091,9 @@ function Fn(e, t) {
|
|
|
1095
1091
|
}
|
|
1096
1092
|
function Ln(e, t) {
|
|
1097
1093
|
var n = function(r) {
|
|
1098
|
-
var o =
|
|
1094
|
+
var o = le(e) ? this : Ae(e), s = arguments[0];
|
|
1099
1095
|
if (arguments.length === 1 && typeof s == "number")
|
|
1100
|
-
isNaN(
|
|
1096
|
+
isNaN(Vt(s)) && m(e, e.ob, "Invalid array length: " + s), o.h.length = s;
|
|
1101
1097
|
else {
|
|
1102
1098
|
for (s = 0; s < arguments.length; s++)
|
|
1103
1099
|
o.h[s] = arguments[s];
|
|
@@ -1115,7 +1111,7 @@ function Ln(e, t) {
|
|
|
1115
1111
|
}
|
|
1116
1112
|
function _n(e, t) {
|
|
1117
1113
|
var n = function(r) {
|
|
1118
|
-
return r = arguments.length ?
|
|
1114
|
+
return r = arguments.length ? he.String(r) : "", le(e) ? (this.data = r, this) : r;
|
|
1119
1115
|
};
|
|
1120
1116
|
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++)
|
|
1121
1117
|
F(e, e.J, t[n], String.prototype[t[n]]);
|
|
@@ -1128,85 +1124,85 @@ function _n(e, t) {
|
|
|
1128
1124
|
}
|
|
1129
1125
|
}, F(e, e.J, "localeCompare", n), n = function(r, o, s) {
|
|
1130
1126
|
var a = String(this);
|
|
1131
|
-
if (o = o ? Number(o) : void 0, _(e, r, e.I) && (r = r.data,
|
|
1132
|
-
if (
|
|
1133
|
-
r =
|
|
1127
|
+
if (o = o ? Number(o) : void 0, _(e, r, e.I) && (r = r.data, Le(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1128
|
+
if (se)
|
|
1129
|
+
r = Fe(e, "string.split(separator, limit)", {
|
|
1134
1130
|
string: a,
|
|
1135
1131
|
separator: r,
|
|
1136
1132
|
limit: o
|
|
1137
|
-
}, r, s), r !==
|
|
1133
|
+
}, r, s), r !== Ce && s(ie(e, r));
|
|
1138
1134
|
else {
|
|
1139
|
-
var f = e.ha(), g =
|
|
1140
|
-
f.onmessage = function(
|
|
1141
|
-
clearTimeout(g), s(
|
|
1135
|
+
var f = e.ha(), g = _e(e, r, f, s);
|
|
1136
|
+
f.onmessage = function(O) {
|
|
1137
|
+
clearTimeout(g), s(ie(e, O.data));
|
|
1142
1138
|
}, f.postMessage(["split", a, r, o]);
|
|
1143
1139
|
}
|
|
1144
1140
|
return;
|
|
1145
1141
|
}
|
|
1146
|
-
r = a.split(r, o), s(
|
|
1147
|
-
},
|
|
1142
|
+
r = a.split(r, o), s(ie(e, r));
|
|
1143
|
+
}, We(e, e.J, "split", n), n = function(r, o) {
|
|
1148
1144
|
var s = String(this);
|
|
1149
|
-
if (r = _(e, r, e.I) ? r.data : new RegExp(r),
|
|
1150
|
-
if (
|
|
1151
|
-
r =
|
|
1145
|
+
if (r = _(e, r, e.I) ? r.data : new RegExp(r), Le(e, r, o), e.REGEXP_MODE === 2)
|
|
1146
|
+
if (se)
|
|
1147
|
+
r = Fe(e, "string.match(regexp)", {
|
|
1152
1148
|
string: s,
|
|
1153
1149
|
regexp: r
|
|
1154
|
-
}, r, o), r !==
|
|
1150
|
+
}, r, o), r !== Ce && o(r && ie(e, r));
|
|
1155
1151
|
else {
|
|
1156
|
-
var a = e.ha(), f =
|
|
1152
|
+
var a = e.ha(), f = _e(e, r, a, o);
|
|
1157
1153
|
a.onmessage = function(g) {
|
|
1158
|
-
clearTimeout(f), o(g.data &&
|
|
1154
|
+
clearTimeout(f), o(g.data && ie(e, g.data));
|
|
1159
1155
|
}, a.postMessage(["match", s, r]);
|
|
1160
1156
|
}
|
|
1161
1157
|
else
|
|
1162
|
-
r = s.match(r), o(r &&
|
|
1163
|
-
},
|
|
1158
|
+
r = s.match(r), o(r && ie(e, r));
|
|
1159
|
+
}, We(e, e.J, "match", n), n = function(r, o) {
|
|
1164
1160
|
var s = String(this);
|
|
1165
|
-
if (_(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1166
|
-
if (
|
|
1167
|
-
r =
|
|
1161
|
+
if (_(e, r, e.I) ? r = r.data : r = new RegExp(r), Le(e, r, o), e.REGEXP_MODE === 2)
|
|
1162
|
+
if (se)
|
|
1163
|
+
r = Fe(e, "string.search(regexp)", {
|
|
1168
1164
|
string: s,
|
|
1169
1165
|
regexp: r
|
|
1170
|
-
}, r, o), r !==
|
|
1166
|
+
}, r, o), r !== Ce && o(r);
|
|
1171
1167
|
else {
|
|
1172
|
-
var a = e.ha(), f =
|
|
1168
|
+
var a = e.ha(), f = _e(e, r, a, o);
|
|
1173
1169
|
a.onmessage = function(g) {
|
|
1174
1170
|
clearTimeout(f), o(g.data);
|
|
1175
1171
|
}, a.postMessage(["search", s, r]);
|
|
1176
1172
|
}
|
|
1177
1173
|
else
|
|
1178
1174
|
o(s.search(r));
|
|
1179
|
-
},
|
|
1175
|
+
}, We(e, e.J, "search", n), n = function(r, o, s) {
|
|
1180
1176
|
var a = String(this);
|
|
1181
|
-
if (o = String(o), _(e, r, e.I) && (r = r.data,
|
|
1182
|
-
if (
|
|
1183
|
-
r =
|
|
1177
|
+
if (o = String(o), _(e, r, e.I) && (r = r.data, Le(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1178
|
+
if (se)
|
|
1179
|
+
r = Fe(e, "string.replace(substr, newSubstr)", {
|
|
1184
1180
|
string: a,
|
|
1185
1181
|
substr: r,
|
|
1186
1182
|
newSubstr: o
|
|
1187
|
-
}, r, s), r !==
|
|
1183
|
+
}, r, s), r !== Ce && s(r);
|
|
1188
1184
|
else {
|
|
1189
|
-
var f = e.ha(), g =
|
|
1190
|
-
f.onmessage = function(
|
|
1191
|
-
clearTimeout(g), s(
|
|
1185
|
+
var f = e.ha(), g = _e(e, r, f, s);
|
|
1186
|
+
f.onmessage = function(O) {
|
|
1187
|
+
clearTimeout(g), s(O.data);
|
|
1192
1188
|
}, f.postMessage(["replace", a, r, o]);
|
|
1193
1189
|
}
|
|
1194
1190
|
return;
|
|
1195
1191
|
}
|
|
1196
1192
|
s(a.replace(r, o));
|
|
1197
|
-
},
|
|
1193
|
+
}, We(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;", "};", "})();", "");
|
|
1198
1194
|
}
|
|
1199
1195
|
function Wn(e, t) {
|
|
1200
1196
|
e.mb = e.i(function(n) {
|
|
1201
|
-
return n =
|
|
1197
|
+
return n = he.Boolean(n), le(e) ? (this.data = n, this) : n;
|
|
1202
1198
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1203
1199
|
}
|
|
1204
1200
|
function $n(e, t) {
|
|
1205
1201
|
var n = function(r) {
|
|
1206
|
-
return r = arguments.length ?
|
|
1202
|
+
return r = arguments.length ? he.Number(r) : 0, le(e) ? (this.data = r, this) : r;
|
|
1207
1203
|
};
|
|
1208
1204
|
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++)
|
|
1209
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1205
|
+
e.g(e.aa, t[n], Number[t[n]], Ue);
|
|
1210
1206
|
n = function(r) {
|
|
1211
1207
|
try {
|
|
1212
1208
|
return Number(this).toExponential(r);
|
|
@@ -1242,10 +1238,10 @@ function $n(e, t) {
|
|
|
1242
1238
|
}
|
|
1243
1239
|
function Gn(e, t) {
|
|
1244
1240
|
var n = function(o, s) {
|
|
1245
|
-
if (!
|
|
1246
|
-
return
|
|
1241
|
+
if (!le(e))
|
|
1242
|
+
return he.Date();
|
|
1247
1243
|
var a = [null].concat(Array.from(arguments));
|
|
1248
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1244
|
+
return this.data = new (Function.prototype.bind.apply(he.Date, a))(), this;
|
|
1249
1245
|
};
|
|
1250
1246
|
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(" ");
|
|
1251
1247
|
for (var r = 0; r < t.length; r++)
|
|
@@ -1261,7 +1257,7 @@ function Gn(e, t) {
|
|
|
1261
1257
|
}
|
|
1262
1258
|
function Vn(e, t) {
|
|
1263
1259
|
var n = function(r, o) {
|
|
1264
|
-
if (
|
|
1260
|
+
if (le(e))
|
|
1265
1261
|
var s = this;
|
|
1266
1262
|
else {
|
|
1267
1263
|
if (o === void 0 && _(e, r, e.I))
|
|
@@ -1270,48 +1266,48 @@ function Vn(e, t) {
|
|
|
1270
1266
|
}
|
|
1271
1267
|
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || m(e, e.T, "Invalid regexp flag: " + o);
|
|
1272
1268
|
try {
|
|
1273
|
-
var a = new
|
|
1269
|
+
var a = new he.RegExp(r, o);
|
|
1274
1270
|
} catch (f) {
|
|
1275
1271
|
m(e, e.T, f.message);
|
|
1276
1272
|
}
|
|
1277
|
-
return
|
|
1273
|
+
return Xt(e, s, a), s;
|
|
1278
1274
|
};
|
|
1279
1275
|
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, X), e.g(e.I.h.prototype, "ignoreCase", void 0, X), e.g(e.I.h.prototype, "multiline", void 0, X), e.g(e.I.h.prototype, "source", "(?:)", X), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1280
|
-
function s(
|
|
1281
|
-
if (
|
|
1282
|
-
var
|
|
1283
|
-
return e.g(
|
|
1276
|
+
function s(C) {
|
|
1277
|
+
if (C) {
|
|
1278
|
+
var S = ie(e, C);
|
|
1279
|
+
return e.g(S, "index", C.index), e.g(S, "input", C.input), S;
|
|
1284
1280
|
}
|
|
1285
1281
|
return null;
|
|
1286
1282
|
}
|
|
1287
1283
|
var a = this.data;
|
|
1288
|
-
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1289
|
-
if (
|
|
1290
|
-
r =
|
|
1284
|
+
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")), Le(e, a, o), e.REGEXP_MODE === 2)
|
|
1285
|
+
if (se)
|
|
1286
|
+
r = Fe(e, "regexp.exec(string)", {
|
|
1291
1287
|
string: r,
|
|
1292
1288
|
regexp: a
|
|
1293
|
-
}, a, o), r !==
|
|
1289
|
+
}, a, o), r !== Ce && (e.g(this, "lastIndex", a.lastIndex), o(s(r)));
|
|
1294
1290
|
else {
|
|
1295
|
-
var f = e.ha(), g =
|
|
1296
|
-
f.onmessage = function(
|
|
1297
|
-
clearTimeout(g), e.g(
|
|
1291
|
+
var f = e.ha(), g = _e(e, a, f, o), O = this;
|
|
1292
|
+
f.onmessage = function(C) {
|
|
1293
|
+
clearTimeout(g), e.g(O, "lastIndex", C.data[1]), o(s(C.data[0]));
|
|
1298
1294
|
}, f.postMessage(["exec", a, a.lastIndex, r]);
|
|
1299
1295
|
}
|
|
1300
1296
|
else
|
|
1301
1297
|
r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(s(r));
|
|
1302
|
-
},
|
|
1298
|
+
}, We(e, e.I, "exec", n);
|
|
1303
1299
|
}
|
|
1304
1300
|
function Xn(e, t) {
|
|
1305
1301
|
function n(r) {
|
|
1306
1302
|
var o = e.i(function(s) {
|
|
1307
|
-
var a =
|
|
1308
|
-
return
|
|
1303
|
+
var a = le(e) ? this : e.Aa(o);
|
|
1304
|
+
return _t(e, a, s), a;
|
|
1309
1305
|
}, !0);
|
|
1310
1306
|
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;
|
|
1311
1307
|
}
|
|
1312
1308
|
e.D = e.i(function(r) {
|
|
1313
|
-
var o =
|
|
1314
|
-
return
|
|
1309
|
+
var o = le(e) ? this : e.Aa(e.D);
|
|
1310
|
+
return _t(e, o, r), o;
|
|
1315
1311
|
}, !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");
|
|
1316
1312
|
}
|
|
1317
1313
|
function Hn(e, t) {
|
|
@@ -1349,17 +1345,17 @@ function _(e, t, n) {
|
|
|
1349
1345
|
return !1;
|
|
1350
1346
|
if (n = n.h.prototype, t === n)
|
|
1351
1347
|
return !0;
|
|
1352
|
-
for (t =
|
|
1348
|
+
for (t = ae(e, t); t; ) {
|
|
1353
1349
|
if (t === n)
|
|
1354
1350
|
return !0;
|
|
1355
1351
|
t = t.xa;
|
|
1356
1352
|
}
|
|
1357
1353
|
return !1;
|
|
1358
1354
|
}
|
|
1359
|
-
function
|
|
1355
|
+
function Xt(e, t, n) {
|
|
1360
1356
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, X), e.g(t, "global", n.global, X), e.g(t, "ignoreCase", n.ignoreCase, X), e.g(t, "multiline", n.multiline, X);
|
|
1361
1357
|
}
|
|
1362
|
-
function
|
|
1358
|
+
function _t(e, t, n) {
|
|
1363
1359
|
n && e.g(t, "message", String(n), y), n = [];
|
|
1364
1360
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1365
1361
|
var o = e.o[r], s = o.node;
|
|
@@ -1376,44 +1372,44 @@ function Lt(e, t, n) {
|
|
|
1376
1372
|
}
|
|
1377
1373
|
e.g(t, "stack", s.trim(), y);
|
|
1378
1374
|
}
|
|
1379
|
-
|
|
1375
|
+
b.ha = function() {
|
|
1380
1376
|
var e = this.ha.Mb;
|
|
1381
|
-
return e || (e = new Blob([
|
|
1377
|
+
return e || (e = new Blob([Mn.join(`
|
|
1382
1378
|
`)], {
|
|
1383
1379
|
type: "application/javascript"
|
|
1384
1380
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1385
1381
|
};
|
|
1386
|
-
function
|
|
1382
|
+
function Fe(e, t, n, r, o) {
|
|
1387
1383
|
var s = {
|
|
1388
1384
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1389
1385
|
};
|
|
1390
1386
|
try {
|
|
1391
|
-
return
|
|
1387
|
+
return se.runInNewContext(t, n, s);
|
|
1392
1388
|
} catch {
|
|
1393
1389
|
o(null), m(e, e.D, "RegExp Timeout: " + r);
|
|
1394
1390
|
}
|
|
1395
|
-
return
|
|
1391
|
+
return Ce;
|
|
1396
1392
|
}
|
|
1397
|
-
function
|
|
1393
|
+
function Le(e, t, n) {
|
|
1398
1394
|
if (e.REGEXP_MODE === 0)
|
|
1399
1395
|
var r = !1;
|
|
1400
1396
|
else if (e.REGEXP_MODE === 1)
|
|
1401
1397
|
r = !0;
|
|
1402
|
-
else if (
|
|
1398
|
+
else if (se)
|
|
1403
1399
|
r = !0;
|
|
1404
1400
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1405
1401
|
r = !0;
|
|
1406
1402
|
else if (typeof require == "function") {
|
|
1407
1403
|
try {
|
|
1408
|
-
|
|
1404
|
+
se = require("vm");
|
|
1409
1405
|
} catch {
|
|
1410
1406
|
}
|
|
1411
|
-
r = !!
|
|
1407
|
+
r = !!se;
|
|
1412
1408
|
} else
|
|
1413
1409
|
r = !1;
|
|
1414
1410
|
r || (n(null), m(e, e.D, "Regular expressions not supported: " + t));
|
|
1415
1411
|
}
|
|
1416
|
-
function
|
|
1412
|
+
function _e(e, t, n, r) {
|
|
1417
1413
|
return setTimeout(function() {
|
|
1418
1414
|
n.terminate(), r(null);
|
|
1419
1415
|
try {
|
|
@@ -1422,15 +1418,15 @@ function Le(e, t, n, r) {
|
|
|
1422
1418
|
}
|
|
1423
1419
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1424
1420
|
}
|
|
1425
|
-
|
|
1421
|
+
b.Aa = function(e) {
|
|
1426
1422
|
return this.s(e && e.h.prototype);
|
|
1427
1423
|
};
|
|
1428
|
-
|
|
1424
|
+
b.s = function(e) {
|
|
1429
1425
|
if (typeof e != "object")
|
|
1430
1426
|
throw Error("Non object prototype");
|
|
1431
1427
|
return e = new A(e), _(this, e, this.D) && (e.H = "Error"), e;
|
|
1432
1428
|
};
|
|
1433
|
-
function
|
|
1429
|
+
function Ae(e) {
|
|
1434
1430
|
var t = e.s(e.La);
|
|
1435
1431
|
return e.g(t, "length", 0, {
|
|
1436
1432
|
configurable: !1,
|
|
@@ -1438,29 +1434,29 @@ function Oe(e) {
|
|
|
1438
1434
|
writable: !0
|
|
1439
1435
|
}), t.H = "Array", t;
|
|
1440
1436
|
}
|
|
1441
|
-
function
|
|
1437
|
+
function Ht(e, t, n) {
|
|
1442
1438
|
var r = e.s(e.Z);
|
|
1443
1439
|
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, X), r.H = "Function", r;
|
|
1444
1440
|
}
|
|
1445
|
-
function
|
|
1446
|
-
var o =
|
|
1441
|
+
function Kt(e, t, n, r) {
|
|
1442
|
+
var o = Ht(e, t.oa.length, !0);
|
|
1447
1443
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", X), o;
|
|
1448
1444
|
}
|
|
1449
|
-
|
|
1450
|
-
return t =
|
|
1445
|
+
b.i = function(e, t) {
|
|
1446
|
+
return t = Ht(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, X), t;
|
|
1451
1447
|
};
|
|
1452
|
-
|
|
1453
|
-
var t =
|
|
1448
|
+
b.ub = function(e) {
|
|
1449
|
+
var t = Ht(this, e.length, !0);
|
|
1454
1450
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, X), t;
|
|
1455
1451
|
};
|
|
1456
|
-
|
|
1452
|
+
b.Ia = function(e) {
|
|
1457
1453
|
if (e instanceof A)
|
|
1458
1454
|
throw Error("Object is already pseudo");
|
|
1459
1455
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1460
1456
|
return e;
|
|
1461
1457
|
if (e instanceof RegExp) {
|
|
1462
1458
|
var t = this.s(this.Ma);
|
|
1463
|
-
return
|
|
1459
|
+
return Xt(this, t, e), t;
|
|
1464
1460
|
}
|
|
1465
1461
|
if (e instanceof Date)
|
|
1466
1462
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1474,7 +1470,7 @@ I.Ia = function(e) {
|
|
|
1474
1470
|
}, !!t);
|
|
1475
1471
|
}
|
|
1476
1472
|
if (Array.isArray(e)) {
|
|
1477
|
-
t =
|
|
1473
|
+
t = Ae(this);
|
|
1478
1474
|
for (var r = 0; r < e.length; r++)
|
|
1479
1475
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1480
1476
|
return t;
|
|
@@ -1484,7 +1480,7 @@ I.Ia = function(e) {
|
|
|
1484
1480
|
this.g(t, r, this.Ia(e[r]));
|
|
1485
1481
|
return t;
|
|
1486
1482
|
};
|
|
1487
|
-
|
|
1483
|
+
b.R = function(e, t) {
|
|
1488
1484
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1489
1485
|
return e;
|
|
1490
1486
|
if (!(e instanceof A))
|
|
@@ -1503,7 +1499,7 @@ I.R = function(e, t) {
|
|
|
1503
1499
|
if (t.hb.push(e), _(this, e, this.qa)) {
|
|
1504
1500
|
n = [], t.Sa.push(n);
|
|
1505
1501
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1506
|
-
|
|
1502
|
+
lt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1507
1503
|
} else
|
|
1508
1504
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1509
1505
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1514,8 +1510,8 @@ I.R = function(e, t) {
|
|
|
1514
1510
|
});
|
|
1515
1511
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1516
1512
|
};
|
|
1517
|
-
function
|
|
1518
|
-
for (var n =
|
|
1513
|
+
function ie(e, t) {
|
|
1514
|
+
for (var n = Ae(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1519
1515
|
e.g(n, r[o], t[r[o]]);
|
|
1520
1516
|
return n;
|
|
1521
1517
|
}
|
|
@@ -1523,9 +1519,9 @@ function Zr(e, t) {
|
|
|
1523
1519
|
var n = [], r;
|
|
1524
1520
|
for (r in t.h)
|
|
1525
1521
|
n[r] = e.G(t, r);
|
|
1526
|
-
return n.length =
|
|
1522
|
+
return n.length = Vt(e.G(t, "length")) || 0, n;
|
|
1527
1523
|
}
|
|
1528
|
-
function
|
|
1524
|
+
function ae(e, t) {
|
|
1529
1525
|
switch (typeof t) {
|
|
1530
1526
|
case "number":
|
|
1531
1527
|
return e.aa.h.prototype;
|
|
@@ -1536,7 +1532,7 @@ function se(e, t) {
|
|
|
1536
1532
|
}
|
|
1537
1533
|
return t ? t.xa : null;
|
|
1538
1534
|
}
|
|
1539
|
-
|
|
1535
|
+
b.G = function(e, t) {
|
|
1540
1536
|
if (this.P)
|
|
1541
1537
|
throw Error("Getter not supported in that context");
|
|
1542
1538
|
if (t = String(t), e != null || m(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
@@ -1545,41 +1541,41 @@ I.G = function(e, t) {
|
|
|
1545
1541
|
if (_(this, e, this.J))
|
|
1546
1542
|
return String(e).length;
|
|
1547
1543
|
} else if (64 > t.charCodeAt(0) && _(this, e, this.J)) {
|
|
1548
|
-
var n =
|
|
1544
|
+
var n = Ge(t);
|
|
1549
1545
|
if (!isNaN(n) && n < String(e).length)
|
|
1550
1546
|
return String(e)[n];
|
|
1551
1547
|
}
|
|
1552
1548
|
do
|
|
1553
1549
|
if (e.h && t in e.h)
|
|
1554
1550
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1555
|
-
while (e =
|
|
1551
|
+
while (e = ae(this, e));
|
|
1556
1552
|
};
|
|
1557
|
-
function
|
|
1553
|
+
function lt(e, t, n) {
|
|
1558
1554
|
if (!(t instanceof A))
|
|
1559
1555
|
throw TypeError("Primitive data type has no properties");
|
|
1560
1556
|
if (n = String(n), n === "length" && _(e, t, e.J))
|
|
1561
1557
|
return !0;
|
|
1562
1558
|
if (_(e, t, e.J)) {
|
|
1563
|
-
var r =
|
|
1559
|
+
var r = Ge(n);
|
|
1564
1560
|
if (!isNaN(r) && r < String(t).length)
|
|
1565
1561
|
return !0;
|
|
1566
1562
|
}
|
|
1567
1563
|
do
|
|
1568
1564
|
if (t.h && n in t.h)
|
|
1569
1565
|
return !0;
|
|
1570
|
-
while (t =
|
|
1566
|
+
while (t = ae(e, t));
|
|
1571
1567
|
return !1;
|
|
1572
1568
|
}
|
|
1573
|
-
|
|
1569
|
+
b.g = function(e, t, n, r) {
|
|
1574
1570
|
if (this.Ka)
|
|
1575
1571
|
throw Error("Setter not supported in that context");
|
|
1576
1572
|
if (t = String(t), e != null || m(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
1577
1573
|
throw TypeError("Expecting native value or pseudo object");
|
|
1578
1574
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && m(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1579
|
-
var o = !this.o ||
|
|
1575
|
+
var o = !this.o || Jt(this).S;
|
|
1580
1576
|
if (e instanceof A) {
|
|
1581
1577
|
if (_(this, e, this.J)) {
|
|
1582
|
-
var s =
|
|
1578
|
+
var s = Ge(t);
|
|
1583
1579
|
if (t === "length" || !isNaN(s) && s < String(e).length) {
|
|
1584
1580
|
o && m(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1585
1581
|
return;
|
|
@@ -1592,16 +1588,16 @@ I.g = function(e, t, n, r) {
|
|
|
1592
1588
|
return;
|
|
1593
1589
|
n = r.value;
|
|
1594
1590
|
}
|
|
1595
|
-
if (n =
|
|
1591
|
+
if (n = Vt(n), isNaN(n) && m(this, this.ob, "Invalid array length"), n < s)
|
|
1596
1592
|
for (a in e.h) {
|
|
1597
|
-
var a =
|
|
1593
|
+
var a = Ge(a);
|
|
1598
1594
|
!isNaN(a) && n <= a && delete e.h[a];
|
|
1599
1595
|
}
|
|
1600
1596
|
} else
|
|
1601
|
-
isNaN(a =
|
|
1597
|
+
isNaN(a = Ge(t)) || (e.h.length = Math.max(s, a + 1));
|
|
1602
1598
|
if (!e.preventExtensions || t in e.h)
|
|
1603
1599
|
if (r) {
|
|
1604
|
-
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 !==
|
|
1600
|
+
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 !== Xe && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1605
1601
|
try {
|
|
1606
1602
|
Object.defineProperty(e.h, t, o);
|
|
1607
1603
|
} catch {
|
|
@@ -1609,10 +1605,10 @@ I.g = function(e, t, n, r) {
|
|
|
1609
1605
|
}
|
|
1610
1606
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1611
1607
|
} else {
|
|
1612
|
-
if (n ===
|
|
1608
|
+
if (n === Xe)
|
|
1613
1609
|
throw ReferenceError("Value not specified");
|
|
1614
1610
|
for (r = e; !(t in r.h); )
|
|
1615
|
-
if (r =
|
|
1611
|
+
if (r = ae(this, r), !r) {
|
|
1616
1612
|
r = e;
|
|
1617
1613
|
break;
|
|
1618
1614
|
}
|
|
@@ -1632,24 +1628,24 @@ I.g = function(e, t, n, r) {
|
|
|
1632
1628
|
} else
|
|
1633
1629
|
o && m(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1634
1630
|
};
|
|
1635
|
-
|
|
1631
|
+
b.g.ac = function() {
|
|
1636
1632
|
throw Error("Placeholder getter");
|
|
1637
1633
|
};
|
|
1638
|
-
|
|
1634
|
+
b.g.bc = function() {
|
|
1639
1635
|
throw Error("Placeholder setter");
|
|
1640
1636
|
};
|
|
1641
1637
|
function F(e, t, n, r) {
|
|
1642
1638
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1643
1639
|
}
|
|
1644
|
-
function
|
|
1640
|
+
function We(e, t, n, r) {
|
|
1645
1641
|
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1646
1642
|
}
|
|
1647
|
-
function
|
|
1643
|
+
function Jt(e) {
|
|
1648
1644
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1649
1645
|
throw Error("No scope found");
|
|
1650
1646
|
return e;
|
|
1651
1647
|
}
|
|
1652
|
-
function
|
|
1648
|
+
function Wt(e, t, n) {
|
|
1653
1649
|
var r = !1;
|
|
1654
1650
|
if (n && n.S)
|
|
1655
1651
|
r = !0;
|
|
@@ -1657,25 +1653,25 @@ function _t(e, t, n) {
|
|
|
1657
1653
|
var o = t.body && t.body[0];
|
|
1658
1654
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1659
1655
|
}
|
|
1660
|
-
return o = e.s(null), r = new qr(n, r, o), n || Dn(e, r.object),
|
|
1656
|
+
return o = e.s(null), r = new qr(n, r, o), n || Dn(e, r.object), He(e, t, r), r;
|
|
1661
1657
|
}
|
|
1662
|
-
function
|
|
1658
|
+
function Yt(e, t, n) {
|
|
1663
1659
|
if (!t)
|
|
1664
1660
|
throw Error("parentScope required");
|
|
1665
1661
|
return e = n || e.s(null), new qr(t, t.S, e);
|
|
1666
1662
|
}
|
|
1667
|
-
function
|
|
1668
|
-
for (var n =
|
|
1663
|
+
function Zt(e, t) {
|
|
1664
|
+
for (var n = Jt(e); n && n !== e.N; ) {
|
|
1669
1665
|
if (t in n.object.h)
|
|
1670
1666
|
return n.object.h[t];
|
|
1671
1667
|
n = n.Va;
|
|
1672
1668
|
}
|
|
1673
|
-
if (n === e.N &&
|
|
1669
|
+
if (n === e.N && lt(e, n.object, t))
|
|
1674
1670
|
return e.G(n.object, t);
|
|
1675
1671
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || m(e, e.pb, t + " is not defined");
|
|
1676
1672
|
}
|
|
1677
1673
|
function zr(e, t, n) {
|
|
1678
|
-
for (var r =
|
|
1674
|
+
for (var r = Jt(e), o = r.S; r && r !== e.N; ) {
|
|
1679
1675
|
if (t in r.object.h) {
|
|
1680
1676
|
try {
|
|
1681
1677
|
r.object.h[t] = n;
|
|
@@ -1686,11 +1682,11 @@ function zr(e, t, n) {
|
|
|
1686
1682
|
}
|
|
1687
1683
|
r = r.Va;
|
|
1688
1684
|
}
|
|
1689
|
-
if (r === e.N && (!o ||
|
|
1685
|
+
if (r === e.N && (!o || lt(e, r.object, t)))
|
|
1690
1686
|
return e.g(r.object, t, n);
|
|
1691
1687
|
m(e, e.pb, t + " is not defined");
|
|
1692
1688
|
}
|
|
1693
|
-
function
|
|
1689
|
+
function He(e, t, n) {
|
|
1694
1690
|
if (t.jb)
|
|
1695
1691
|
var r = t.jb;
|
|
1696
1692
|
else {
|
|
@@ -1723,12 +1719,12 @@ function Xe(e, t, n) {
|
|
|
1723
1719
|
if (Array.isArray(f)) {
|
|
1724
1720
|
for (o = 0; o < f.length; o++)
|
|
1725
1721
|
if (f[o] && f[o].constructor === s) {
|
|
1726
|
-
var g =
|
|
1722
|
+
var g = He(e, f[o], n);
|
|
1727
1723
|
for (a in g)
|
|
1728
1724
|
r[a] = g[a];
|
|
1729
1725
|
}
|
|
1730
1726
|
} else if (f.constructor === s)
|
|
1731
|
-
for (a in g =
|
|
1727
|
+
for (a in g = He(e, f, n), g)
|
|
1732
1728
|
r[a] = g[a];
|
|
1733
1729
|
}
|
|
1734
1730
|
}
|
|
@@ -1736,22 +1732,22 @@ function Xe(e, t, n) {
|
|
|
1736
1732
|
t.jb = r;
|
|
1737
1733
|
}
|
|
1738
1734
|
for (a in r)
|
|
1739
|
-
r[a] === !0 ? e.g(n.object, a, void 0,
|
|
1735
|
+
r[a] === !0 ? e.g(n.object, a, void 0, Dr) : e.g(n.object, a, Kt(e, r[a], n), Dr);
|
|
1740
1736
|
return r;
|
|
1741
1737
|
}
|
|
1742
|
-
function
|
|
1738
|
+
function le(e) {
|
|
1743
1739
|
return e.o[e.o.length - 1].isConstructor;
|
|
1744
1740
|
}
|
|
1745
|
-
function
|
|
1746
|
-
return t[0] ===
|
|
1741
|
+
function zt(e, t) {
|
|
1742
|
+
return t[0] === be ? Zt(e, t[1]) : e.G(t[0], t[1]);
|
|
1747
1743
|
}
|
|
1748
|
-
function
|
|
1749
|
-
return t[0] ===
|
|
1744
|
+
function Qt(e, t, n) {
|
|
1745
|
+
return t[0] === be ? zr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1750
1746
|
}
|
|
1751
1747
|
function m(e, t, n) {
|
|
1752
|
-
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t),
|
|
1748
|
+
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t), _t(e, t, n)), Ke(e, 4, t), Yr) : n === void 0 ? t : n;
|
|
1753
1749
|
}
|
|
1754
|
-
function
|
|
1750
|
+
function Ke(e, t, n, r) {
|
|
1755
1751
|
if (t === 0)
|
|
1756
1752
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1757
1753
|
var o = e.o;
|
|
@@ -1827,7 +1823,7 @@ function V(e, t) {
|
|
|
1827
1823
|
}
|
|
1828
1824
|
return "???";
|
|
1829
1825
|
}
|
|
1830
|
-
function
|
|
1826
|
+
function Fr(e, t, n) {
|
|
1831
1827
|
var r = e.o[e.o.length - 1], o = Array.from(n), s = o.shift();
|
|
1832
1828
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1833
1829
|
var a = e.ya();
|
|
@@ -1836,11 +1832,11 @@ function Ur(e, t, n) {
|
|
|
1836
1832
|
a.type = "CallExpression", r = r.scope;
|
|
1837
1833
|
} else {
|
|
1838
1834
|
try {
|
|
1839
|
-
var g =
|
|
1840
|
-
} catch (
|
|
1841
|
-
m(e, e.T, "Invalid code: " +
|
|
1835
|
+
var g = Oe(String(s), "taskCode" + e.ic++);
|
|
1836
|
+
} catch (O) {
|
|
1837
|
+
m(e, e.T, "Invalid code: " + O.message);
|
|
1842
1838
|
}
|
|
1843
|
-
a.type = "EvalProgram_", a.body = g.body, r = r.node.arguments[0],
|
|
1839
|
+
a.type = "EvalProgram_", a.body = g.body, r = r.node.arguments[0], at(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1844
1840
|
}
|
|
1845
1841
|
return t = new Jn(f, o, r, a, t ? n : -1), Qr(e, t, n), t.Db;
|
|
1846
1842
|
}
|
|
@@ -1849,21 +1845,21 @@ function Qr(e, t, n) {
|
|
|
1849
1845
|
return r.time - o.time;
|
|
1850
1846
|
});
|
|
1851
1847
|
}
|
|
1852
|
-
function
|
|
1848
|
+
function Lr(e, t) {
|
|
1853
1849
|
for (var n = 0; n < e.ca.length; n++)
|
|
1854
1850
|
if (e.ca[n].Db == t) {
|
|
1855
1851
|
e.ca.splice(n, 1);
|
|
1856
1852
|
break;
|
|
1857
1853
|
}
|
|
1858
1854
|
}
|
|
1859
|
-
function
|
|
1855
|
+
function Je(e, t, n) {
|
|
1860
1856
|
if (!e.P)
|
|
1861
1857
|
throw Error("Unexpected call to createGetter");
|
|
1862
1858
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1863
1859
|
var r = e.ya();
|
|
1864
1860
|
return r.type = "CallExpression", e = new v(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1865
1861
|
}
|
|
1866
|
-
function
|
|
1862
|
+
function qt(e, t, n, r) {
|
|
1867
1863
|
if (!e.Ka)
|
|
1868
1864
|
throw Error("Unexpected call to createSetter");
|
|
1869
1865
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
@@ -1871,15 +1867,15 @@ function zt(e, t, n, r) {
|
|
|
1871
1867
|
return o.type = "CallExpression", e = new v(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1872
1868
|
}
|
|
1873
1869
|
function Mt(e, t) {
|
|
1874
|
-
return t == null ? e.Na : t instanceof A ? t : (e = e.s(
|
|
1870
|
+
return t == null ? e.Na : t instanceof A ? t : (e = e.s(ae(e, t)), e.data = t, e);
|
|
1875
1871
|
}
|
|
1876
|
-
|
|
1872
|
+
b.Xb = function() {
|
|
1877
1873
|
return this.N;
|
|
1878
1874
|
};
|
|
1879
|
-
|
|
1875
|
+
b.Yb = function() {
|
|
1880
1876
|
return this.o;
|
|
1881
1877
|
};
|
|
1882
|
-
|
|
1878
|
+
b.ec = function(e) {
|
|
1883
1879
|
this.o = e;
|
|
1884
1880
|
};
|
|
1885
1881
|
function v(e, t) {
|
|
@@ -1891,17 +1887,17 @@ function qr(e, t, n) {
|
|
|
1891
1887
|
function A(e) {
|
|
1892
1888
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1893
1889
|
}
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
if (
|
|
1890
|
+
b = A.prototype;
|
|
1891
|
+
b.xa = null;
|
|
1892
|
+
b.H = "Object";
|
|
1893
|
+
b.data = null;
|
|
1894
|
+
b.toString = function() {
|
|
1895
|
+
if (!$e)
|
|
1900
1896
|
return "[object Interpreter.Object]";
|
|
1901
1897
|
if (!(this instanceof A))
|
|
1902
1898
|
return String(this);
|
|
1903
1899
|
if (this.H === "Array") {
|
|
1904
|
-
var e =
|
|
1900
|
+
var e = Ur;
|
|
1905
1901
|
e.push(this);
|
|
1906
1902
|
try {
|
|
1907
1903
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -1917,7 +1913,7 @@ I.toString = function() {
|
|
|
1917
1913
|
return t.join(",");
|
|
1918
1914
|
}
|
|
1919
1915
|
if (this.H === "Error") {
|
|
1920
|
-
if (e =
|
|
1916
|
+
if (e = Ur, e.indexOf(this) !== -1)
|
|
1921
1917
|
return "[object Error]";
|
|
1922
1918
|
n = this;
|
|
1923
1919
|
do
|
|
@@ -1943,8 +1939,8 @@ I.toString = function() {
|
|
|
1943
1939
|
}
|
|
1944
1940
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1945
1941
|
};
|
|
1946
|
-
|
|
1947
|
-
return
|
|
1942
|
+
b.valueOf = function() {
|
|
1943
|
+
return !$e || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1948
1944
|
};
|
|
1949
1945
|
function Jn(e, t, n, r, o) {
|
|
1950
1946
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Yn, this.time = 0;
|
|
@@ -1953,7 +1949,7 @@ var Yn = 0;
|
|
|
1953
1949
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
1954
1950
|
n = n.elements;
|
|
1955
1951
|
var r = t.A || 0;
|
|
1956
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
1952
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Ae(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1957
1953
|
if (n[r])
|
|
1958
1954
|
return t.A = r, new v(n[r], t.scope);
|
|
1959
1955
|
r++;
|
|
@@ -1964,7 +1960,7 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1964
1960
|
if (!t.ja)
|
|
1965
1961
|
return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
|
|
1966
1962
|
if (!t.Da)
|
|
1967
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
1963
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = zt(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Je(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new v(n.right, t.scope));
|
|
1968
1964
|
if (t.ta)
|
|
1969
1965
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1970
1966
|
else {
|
|
@@ -2009,8 +2005,8 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2009
2005
|
default:
|
|
2010
2006
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2011
2007
|
}
|
|
2012
|
-
if (n =
|
|
2013
|
-
return t.ta = !0, t.ib = r,
|
|
2008
|
+
if (n = Qt(this, t.Fa, r))
|
|
2009
|
+
return t.ta = !0, t.ib = r, qt(this, n, t.Fa, r);
|
|
2014
2010
|
e.pop(), e[e.length - 1].value = r;
|
|
2015
2011
|
}
|
|
2016
2012
|
};
|
|
@@ -2080,7 +2076,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2080
2076
|
n = r >>> t;
|
|
2081
2077
|
break;
|
|
2082
2078
|
case "in":
|
|
2083
|
-
t instanceof A || m(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2079
|
+
t instanceof A || m(this, this.j, "'in' expects an object, not '" + t + "'"), n = lt(this, t, r);
|
|
2084
2080
|
break;
|
|
2085
2081
|
case "instanceof":
|
|
2086
2082
|
_(this, t, this.O) || m(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof A ? _(this, r, t) : !1;
|
|
@@ -2097,7 +2093,7 @@ h.prototype.stepBlockStatement = function(e, t, n) {
|
|
|
2097
2093
|
e.pop();
|
|
2098
2094
|
};
|
|
2099
2095
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
2100
|
-
|
|
2096
|
+
Ke(this, 1, void 0, n.label && n.label.name);
|
|
2101
2097
|
};
|
|
2102
2098
|
h.prototype.Hb = 0;
|
|
2103
2099
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
@@ -2110,8 +2106,8 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2110
2106
|
t.ia = 2;
|
|
2111
2107
|
var o = t.value;
|
|
2112
2108
|
if (Array.isArray(o)) {
|
|
2113
|
-
if (t.U =
|
|
2114
|
-
return t.ia = 1,
|
|
2109
|
+
if (t.U = zt(this, o), o[0] === be ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2110
|
+
return t.ia = 1, Je(this, o, t.value);
|
|
2115
2111
|
} else
|
|
2116
2112
|
t.U = o;
|
|
2117
2113
|
t.F = [], t.A = 0;
|
|
@@ -2121,7 +2117,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2121
2117
|
return new v(n.arguments[t.A++], t.scope);
|
|
2122
2118
|
if (n.type === "NewExpression") {
|
|
2123
2119
|
if (o instanceof A && !o.Ab || m(this, this.j, V(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2124
|
-
t.B =
|
|
2120
|
+
t.B = Ae(this);
|
|
2125
2121
|
else {
|
|
2126
2122
|
var s = o.h.prototype;
|
|
2127
2123
|
(typeof s != "object" || s === null) && (s = this.M), t.B = this.s(s);
|
|
@@ -2134,22 +2130,22 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2134
2130
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2135
2131
|
else {
|
|
2136
2132
|
if (t.eb = !0, o instanceof A || m(this, this.j, V(this, n.callee) + " is not a function"), e = o.node) {
|
|
2137
|
-
for (n =
|
|
2133
|
+
for (n = Wt(this, e.body, o.Va), r = Ae(this), o = 0; o < t.F.length; o++)
|
|
2138
2134
|
this.g(r, o, t.F[o]);
|
|
2139
2135
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2140
2136
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2141
|
-
return n.S || (t.B = Mt(this, t.B)), this.g(n.object, "this", t.B,
|
|
2137
|
+
return n.S || (t.B = Mt(this, t.B)), this.g(n.object, "this", t.B, Gt), t.value = void 0, new v(e.body, n);
|
|
2142
2138
|
}
|
|
2143
2139
|
if (o.eval)
|
|
2144
2140
|
if (o = t.F[0], typeof o != "string")
|
|
2145
2141
|
t.value = o;
|
|
2146
2142
|
else {
|
|
2147
2143
|
try {
|
|
2148
|
-
r =
|
|
2144
|
+
r = Oe(String(o), "eval" + this.Hb++);
|
|
2149
2145
|
} catch (f) {
|
|
2150
2146
|
m(this, this.T, "Invalid code: " + f.message);
|
|
2151
2147
|
}
|
|
2152
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2148
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, at(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : He(this, r, n), this.value = void 0, new v(o, n);
|
|
2153
2149
|
}
|
|
2154
2150
|
else if (o.Ta)
|
|
2155
2151
|
t.scope.S || (t.B = Mt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2176,7 +2172,7 @@ h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
|
2176
2172
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2177
2173
|
};
|
|
2178
2174
|
h.prototype.stepContinueStatement = function(e, t, n) {
|
|
2179
|
-
|
|
2175
|
+
Ke(this, 2, void 0, n.label && n.label.name);
|
|
2180
2176
|
};
|
|
2181
2177
|
h.prototype.stepDebuggerStatement = function(e) {
|
|
2182
2178
|
e.pop();
|
|
@@ -2228,18 +2224,18 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2228
2224
|
break e;
|
|
2229
2225
|
}
|
|
2230
2226
|
}
|
|
2231
|
-
if (t.u =
|
|
2227
|
+
if (t.u = ae(this, t.u), t.wa = null, t.u === null) {
|
|
2232
2228
|
e.pop();
|
|
2233
2229
|
return;
|
|
2234
2230
|
}
|
|
2235
2231
|
}
|
|
2236
2232
|
if (!t.wb)
|
|
2237
2233
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2238
|
-
t.pa = [
|
|
2234
|
+
t.pa = [be, e.fa[0].id.name];
|
|
2239
2235
|
else
|
|
2240
2236
|
return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
|
|
2241
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2242
|
-
return
|
|
2237
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Qt(this, t.pa, e)))
|
|
2238
|
+
return qt(this, r, t.pa, e);
|
|
2243
2239
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2244
2240
|
return new v(n.body, t.scope);
|
|
2245
2241
|
};
|
|
@@ -2268,14 +2264,14 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2268
2264
|
e.pop();
|
|
2269
2265
|
};
|
|
2270
2266
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2271
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2267
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Yt(this, e)), t.value = Kt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Gt);
|
|
2272
2268
|
};
|
|
2273
2269
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2274
2270
|
if (e.pop(), t.sa)
|
|
2275
|
-
e[e.length - 1].value = [
|
|
2271
|
+
e[e.length - 1].value = [be, n.name];
|
|
2276
2272
|
else {
|
|
2277
|
-
if (t =
|
|
2278
|
-
return
|
|
2273
|
+
if (t = Zt(this, n.name), this.P)
|
|
2274
|
+
return Je(this, t, this.Na);
|
|
2279
2275
|
e[e.length - 1].value = t;
|
|
2280
2276
|
}
|
|
2281
2277
|
};
|
|
@@ -2284,7 +2280,7 @@ h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2284
2280
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new v(n.body, t.scope), t.labels = e, t;
|
|
2285
2281
|
};
|
|
2286
2282
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2287
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2283
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), Xt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2288
2284
|
};
|
|
2289
2285
|
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2290
2286
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2312,7 +2308,7 @@ h.prototype.stepMemberExpression = function(e, t, n) {
|
|
|
2312
2308
|
e[e.length - 1].value = [t.u, n];
|
|
2313
2309
|
else {
|
|
2314
2310
|
if (n = this.G(t.u, n), this.P)
|
|
2315
|
-
return
|
|
2311
|
+
return Je(this, n, t.u);
|
|
2316
2312
|
e[e.length - 1].value = n;
|
|
2317
2313
|
}
|
|
2318
2314
|
};
|
|
@@ -2335,7 +2331,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2335
2331
|
return t.Pa = s, new v(o.value, t.scope);
|
|
2336
2332
|
}
|
|
2337
2333
|
for (a in t.Ja)
|
|
2338
|
-
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a,
|
|
2334
|
+
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a, Xe, {
|
|
2339
2335
|
configurable: !0,
|
|
2340
2336
|
enumerable: !0,
|
|
2341
2337
|
get: n.get,
|
|
@@ -2351,7 +2347,7 @@ h.prototype.stepProgram = function(e, t, n) {
|
|
|
2351
2347
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2352
2348
|
if (n.K && !t.ka)
|
|
2353
2349
|
return t.ka = !0, new v(n.K, t.scope);
|
|
2354
|
-
|
|
2350
|
+
Ke(this, 3, t.value);
|
|
2355
2351
|
};
|
|
2356
2352
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2357
2353
|
var r = t.A || 0;
|
|
@@ -2387,7 +2383,7 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2387
2383
|
}
|
|
2388
2384
|
};
|
|
2389
2385
|
h.prototype.stepThisExpression = function(e) {
|
|
2390
|
-
e.pop(), e[e.length - 1].value =
|
|
2386
|
+
e.pop(), e[e.length - 1].value = Zt(this, "this");
|
|
2391
2387
|
};
|
|
2392
2388
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2393
2389
|
if (t.ka)
|
|
@@ -2399,10 +2395,10 @@ h.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2399
2395
|
if (!t.Rb)
|
|
2400
2396
|
return t.Rb = !0, new v(n.block, t.scope);
|
|
2401
2397
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2402
|
-
return t.Tb = !0, e =
|
|
2398
|
+
return t.Tb = !0, e = Yt(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new v(n.Ea.body, e);
|
|
2403
2399
|
if (!t.Sb && n.fb)
|
|
2404
2400
|
return t.Sb = !0, new v(n.fb, t.scope);
|
|
2405
|
-
e.pop(), t.ea &&
|
|
2401
|
+
e.pop(), t.ea && Ke(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2406
2402
|
};
|
|
2407
2403
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2408
2404
|
if (!t.ka)
|
|
@@ -2425,7 +2421,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2425
2421
|
case "delete":
|
|
2426
2422
|
if (n = !0, Array.isArray(r)) {
|
|
2427
2423
|
var o = r[0];
|
|
2428
|
-
o ===
|
|
2424
|
+
o === be && (o = t.scope), r = String(r[1]);
|
|
2429
2425
|
try {
|
|
2430
2426
|
delete o.h[r];
|
|
2431
2427
|
} catch {
|
|
@@ -2449,9 +2445,9 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2449
2445
|
if (!t.ja)
|
|
2450
2446
|
return t.ja = !0, e = new v(n.K, t.scope), e.sa = !0, e;
|
|
2451
2447
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2452
|
-
var r =
|
|
2448
|
+
var r = zt(this, t.Ga);
|
|
2453
2449
|
if (t.ma = r, this.P)
|
|
2454
|
-
return t.Ba = !0,
|
|
2450
|
+
return t.Ba = !0, Je(this, r, t.Ga);
|
|
2455
2451
|
}
|
|
2456
2452
|
if (t.ta)
|
|
2457
2453
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2462,8 +2458,8 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2462
2458
|
o = r - 1;
|
|
2463
2459
|
else
|
|
2464
2460
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2465
|
-
if (n = n.prefix ? o : r, r =
|
|
2466
|
-
return t.ta = !0, t.ib = n,
|
|
2461
|
+
if (n = n.prefix ? o : r, r = Qt(this, t.Ga, o))
|
|
2462
|
+
return t.ta = !0, t.ib = n, qt(this, r, t.Ga, o);
|
|
2467
2463
|
e.pop(), e[e.length - 1].value = n;
|
|
2468
2464
|
}
|
|
2469
2465
|
};
|
|
@@ -2478,10 +2474,10 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2478
2474
|
e.pop();
|
|
2479
2475
|
};
|
|
2480
2476
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2481
|
-
return t.Ca ? (e.pop(), e =
|
|
2477
|
+
return t.Ca ? (e.pop(), e = Yt(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
|
|
2482
2478
|
};
|
|
2483
2479
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2484
|
-
|
|
2480
|
+
he.Interpreter = h;
|
|
2485
2481
|
h.prototype.step = h.prototype.lb;
|
|
2486
2482
|
h.prototype.run = h.prototype.Eb;
|
|
2487
2483
|
h.prototype.appendCode = h.prototype.Jb;
|
|
@@ -2496,7 +2492,7 @@ h.prototype.pseudoToNative = h.prototype.R;
|
|
|
2496
2492
|
h.prototype.getGlobalScope = h.prototype.Xb;
|
|
2497
2493
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2498
2494
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2499
|
-
h.VALUE_IN_DESCRIPTOR =
|
|
2495
|
+
h.VALUE_IN_DESCRIPTOR = Xe;
|
|
2500
2496
|
const Zn = (e) => e.split(`
|
|
2501
2497
|
`).map((t) => {
|
|
2502
2498
|
const n = t.trim();
|
|
@@ -2510,7 +2506,7 @@ const Zn = (e) => e.split(`
|
|
|
2510
2506
|
${f}
|
|
2511
2507
|
`;
|
|
2512
2508
|
}).filter(Boolean).join(`
|
|
2513
|
-
`),
|
|
2509
|
+
`), _r = (e) => e + "JSON", zn = ({
|
|
2514
2510
|
builder: e,
|
|
2515
2511
|
context: t,
|
|
2516
2512
|
event: n,
|
|
@@ -2527,52 +2523,44 @@ const Zn = (e) => e.split(`
|
|
|
2527
2523
|
context: t,
|
|
2528
2524
|
event: n,
|
|
2529
2525
|
state: f
|
|
2530
|
-
}),
|
|
2531
|
-
const
|
|
2532
|
-
return `var ${
|
|
2526
|
+
}), O = g.map(([$]) => {
|
|
2527
|
+
const H = _r($);
|
|
2528
|
+
return `var ${$} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2533
2529
|
}).join(`
|
|
2534
|
-
`),
|
|
2535
|
-
if (
|
|
2536
|
-
|
|
2530
|
+
`), C = Zn(a);
|
|
2531
|
+
if (C === "") {
|
|
2532
|
+
$t.warn("Skipping evaluation of empty code block.");
|
|
2537
2533
|
return;
|
|
2538
2534
|
}
|
|
2539
|
-
const
|
|
2535
|
+
const S = `
|
|
2540
2536
|
function theFunction() {
|
|
2541
|
-
${
|
|
2537
|
+
${O}
|
|
2542
2538
|
|
|
2543
|
-
${
|
|
2539
|
+
${C}
|
|
2544
2540
|
}
|
|
2545
2541
|
theFunction();
|
|
2546
|
-
`,
|
|
2547
|
-
const
|
|
2548
|
-
s == null || s(
|
|
2549
|
-
}, R = function(
|
|
2550
|
-
g.forEach(([
|
|
2551
|
-
const
|
|
2552
|
-
|
|
2553
|
-
}),
|
|
2554
|
-
};
|
|
2555
|
-
|
|
2556
|
-
const b = new h(w, R);
|
|
2557
|
-
return b.run(), b.pseudoToNative(b.value);
|
|
2558
|
-
} catch (b) {
|
|
2559
|
-
nt.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2560
|
-
e: b
|
|
2561
|
-
});
|
|
2562
|
-
return;
|
|
2563
|
-
}
|
|
2542
|
+
`, T = ($, H) => {
|
|
2543
|
+
const k = Hr(f, $, H);
|
|
2544
|
+
s == null || s(k);
|
|
2545
|
+
}, R = function($, H) {
|
|
2546
|
+
g.forEach(([k, Q]) => {
|
|
2547
|
+
const Ye = JSON.stringify(Q);
|
|
2548
|
+
$.setProperty(H, _r(k), Ye);
|
|
2549
|
+
}), $.setProperty(H, "setRootState", $.createNativeFunction(T));
|
|
2550
|
+
}, P = new h(S, R);
|
|
2551
|
+
return P.run(), P.pseudoToNative(P.value);
|
|
2564
2552
|
};
|
|
2565
2553
|
function Qn() {
|
|
2566
2554
|
var e;
|
|
2567
|
-
return typeof process != "undefined" &&
|
|
2555
|
+
return typeof process != "undefined" && it((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2568
2556
|
}
|
|
2569
2557
|
const qn = () => {
|
|
2570
2558
|
var r;
|
|
2571
2559
|
if (!Qn())
|
|
2572
2560
|
return !1;
|
|
2573
2561
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2574
|
-
return e && t && !n ? (
|
|
2575
|
-
}, eo = (e) =>
|
|
2562
|
+
return e && t && !n ? ($t.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2563
|
+
}, eo = (e) => Ft() || qn() ? Rn(e) : zn(e), oe = class oe {
|
|
2576
2564
|
static getCacheKey(t) {
|
|
2577
2565
|
return JSON.stringify({
|
|
2578
2566
|
...t,
|
|
@@ -2582,17 +2570,17 @@ const qn = () => {
|
|
|
2582
2570
|
});
|
|
2583
2571
|
}
|
|
2584
2572
|
static getCachedValue(t) {
|
|
2585
|
-
return
|
|
2573
|
+
return oe.cache.get(t);
|
|
2586
2574
|
}
|
|
2587
2575
|
static setCachedValue(t, n) {
|
|
2588
|
-
|
|
2576
|
+
oe.cache.size > 20 && oe.cache.delete(oe.cache.keys().next().value), oe.cache.set(t, {
|
|
2589
2577
|
value: n
|
|
2590
2578
|
});
|
|
2591
2579
|
}
|
|
2592
2580
|
};
|
|
2593
|
-
|
|
2594
|
-
let
|
|
2595
|
-
function
|
|
2581
|
+
Bt(oe, "cacheLimit", 20), Bt(oe, "cache", /* @__PURE__ */ new Map());
|
|
2582
|
+
let je = oe;
|
|
2583
|
+
function er({
|
|
2596
2584
|
code: e,
|
|
2597
2585
|
context: t,
|
|
2598
2586
|
localState: n,
|
|
@@ -2616,19 +2604,19 @@ function Qt({
|
|
|
2616
2604
|
localState: n
|
|
2617
2605
|
};
|
|
2618
2606
|
if (f) {
|
|
2619
|
-
const
|
|
2620
|
-
if (
|
|
2621
|
-
return
|
|
2607
|
+
const O = je.getCacheKey(g), C = je.getCachedValue(O);
|
|
2608
|
+
if (C)
|
|
2609
|
+
return C.value;
|
|
2622
2610
|
}
|
|
2623
2611
|
try {
|
|
2624
|
-
const
|
|
2612
|
+
const O = eo(g);
|
|
2625
2613
|
if (f) {
|
|
2626
|
-
const
|
|
2627
|
-
|
|
2614
|
+
const C = je.getCacheKey(g);
|
|
2615
|
+
je.setCachedValue(C, O);
|
|
2628
2616
|
}
|
|
2629
|
-
return
|
|
2630
|
-
} catch (
|
|
2631
|
-
|
|
2617
|
+
return O;
|
|
2618
|
+
} catch (O) {
|
|
2619
|
+
$t.error("Failed code evaluation: " + O.message, {
|
|
2632
2620
|
code: e
|
|
2633
2621
|
});
|
|
2634
2622
|
return;
|
|
@@ -2643,7 +2631,7 @@ const to = ({
|
|
|
2643
2631
|
}) => {
|
|
2644
2632
|
if (!e.bindings)
|
|
2645
2633
|
return e;
|
|
2646
|
-
const s =
|
|
2634
|
+
const s = Xr(e), a = {
|
|
2647
2635
|
...s,
|
|
2648
2636
|
properties: {
|
|
2649
2637
|
...s.properties
|
|
@@ -2653,7 +2641,7 @@ const to = ({
|
|
|
2653
2641
|
}
|
|
2654
2642
|
};
|
|
2655
2643
|
for (const f in e.bindings) {
|
|
2656
|
-
const g = e.bindings[f],
|
|
2644
|
+
const g = e.bindings[f], O = er({
|
|
2657
2645
|
code: g,
|
|
2658
2646
|
localState: n,
|
|
2659
2647
|
rootState: r,
|
|
@@ -2661,11 +2649,11 @@ const to = ({
|
|
|
2661
2649
|
context: t,
|
|
2662
2650
|
enableCache: !0
|
|
2663
2651
|
});
|
|
2664
|
-
Hr(a, f,
|
|
2652
|
+
Hr(a, f, O);
|
|
2665
2653
|
}
|
|
2666
2654
|
return a;
|
|
2667
2655
|
};
|
|
2668
|
-
function
|
|
2656
|
+
function st({
|
|
2669
2657
|
block: e,
|
|
2670
2658
|
context: t,
|
|
2671
2659
|
shouldEvaluateBindings: n,
|
|
@@ -2682,20 +2670,20 @@ function it({
|
|
|
2682
2670
|
context: t
|
|
2683
2671
|
}) : a;
|
|
2684
2672
|
}
|
|
2685
|
-
const
|
|
2673
|
+
const ut = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
2686
2674
|
function ro(e, t, n = {}) {
|
|
2687
2675
|
let r, o, s, a = null, f = 0;
|
|
2688
2676
|
const g = function() {
|
|
2689
2677
|
f = n.leading === !1 ? 0 : Date.now(), a = null, s = e.apply(r, o), a || (r = o = null);
|
|
2690
2678
|
};
|
|
2691
2679
|
return function() {
|
|
2692
|
-
const
|
|
2693
|
-
!f && n.leading === !1 && (f =
|
|
2694
|
-
const
|
|
2695
|
-
return r = this, o = arguments,
|
|
2680
|
+
const O = Date.now();
|
|
2681
|
+
!f && n.leading === !1 && (f = O);
|
|
2682
|
+
const C = t - (O - f);
|
|
2683
|
+
return r = this, o = arguments, C <= 0 || C > t ? (a && (clearTimeout(a), a = null), f = O, s = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(g, C)), s;
|
|
2696
2684
|
};
|
|
2697
2685
|
}
|
|
2698
|
-
function
|
|
2686
|
+
function Ve(e, ...t) {
|
|
2699
2687
|
const n = Object(e);
|
|
2700
2688
|
for (let r = 1; r < arguments.length; r++) {
|
|
2701
2689
|
const o = arguments[r];
|
|
@@ -2739,8 +2727,8 @@ function io(e) {
|
|
|
2739
2727
|
return;
|
|
2740
2728
|
}
|
|
2741
2729
|
Array.from(t).forEach((n) => {
|
|
2742
|
-
tn(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
2743
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2730
|
+
tn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Ve(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2731
|
+
n.style.transition = `all ${e.duration}s ${ut(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Ve(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2744
2732
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2745
2733
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2746
2734
|
});
|
|
@@ -2757,24 +2745,24 @@ function so(e) {
|
|
|
2757
2745
|
let r = !1, o = !1;
|
|
2758
2746
|
function s() {
|
|
2759
2747
|
!r && f(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
2760
|
-
|
|
2748
|
+
Ve(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
2761
2749
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
2762
2750
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2763
|
-
})) : e.repeat && r && !o && !f(n) && (r = !1,
|
|
2751
|
+
})) : e.repeat && r && !o && !f(n) && (r = !1, Ve(n.style, e.steps[0].styles));
|
|
2764
2752
|
}
|
|
2765
2753
|
const a = ro(s, 200, {
|
|
2766
2754
|
leading: !1
|
|
2767
2755
|
});
|
|
2768
|
-
function f(
|
|
2769
|
-
const
|
|
2770
|
-
return
|
|
2756
|
+
function f(C) {
|
|
2757
|
+
const S = C.getBoundingClientRect(), T = window.innerHeight, P = (e.thresholdPercent || 0) / 100 * T;
|
|
2758
|
+
return S.bottom > P && S.top < T - P;
|
|
2771
2759
|
}
|
|
2772
2760
|
const g = e.steps[0].styles;
|
|
2773
|
-
function
|
|
2774
|
-
|
|
2761
|
+
function O() {
|
|
2762
|
+
Ve(n.style, g);
|
|
2775
2763
|
}
|
|
2776
|
-
|
|
2777
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2764
|
+
O(), setTimeout(() => {
|
|
2765
|
+
n.style.transition = `all ${e.duration}s ${ut(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2778
2766
|
}), document.addEventListener("scroll", a, {
|
|
2779
2767
|
capture: !0,
|
|
2780
2768
|
passive: !0
|
|
@@ -2783,9 +2771,9 @@ function so(e) {
|
|
|
2783
2771
|
}
|
|
2784
2772
|
const rn = (e) => Object.entries(e).map(([n, r]) => {
|
|
2785
2773
|
if (typeof r == "string")
|
|
2786
|
-
return `${
|
|
2787
|
-
}).filter(
|
|
2788
|
-
`),
|
|
2774
|
+
return `${ut(n)}: ${r};`;
|
|
2775
|
+
}).filter(it), ao = (e) => rn(e).join(`
|
|
2776
|
+
`), ot = ({
|
|
2789
2777
|
mediaQuery: e,
|
|
2790
2778
|
className: t,
|
|
2791
2779
|
styles: n
|
|
@@ -2811,7 +2799,7 @@ const uo = ({
|
|
|
2811
2799
|
block: e
|
|
2812
2800
|
}));
|
|
2813
2801
|
function co(e) {
|
|
2814
|
-
switch (
|
|
2802
|
+
switch (ve) {
|
|
2815
2803
|
case "svelte":
|
|
2816
2804
|
case "vue":
|
|
2817
2805
|
case "solid":
|
|
@@ -2830,7 +2818,7 @@ const fo = ({
|
|
|
2830
2818
|
registeredComponents: n
|
|
2831
2819
|
}) => {
|
|
2832
2820
|
var s;
|
|
2833
|
-
const r = (s =
|
|
2821
|
+
const r = (s = st({
|
|
2834
2822
|
block: e,
|
|
2835
2823
|
localState: t.localState,
|
|
2836
2824
|
rootState: t.rootState,
|
|
@@ -2856,7 +2844,7 @@ const fo = ({
|
|
|
2856
2844
|
} = e;
|
|
2857
2845
|
if (!(n != null && n.collection))
|
|
2858
2846
|
return;
|
|
2859
|
-
const o =
|
|
2847
|
+
const o = er({
|
|
2860
2848
|
code: n.collection,
|
|
2861
2849
|
localState: t.localState,
|
|
2862
2850
|
rootState: t.rootState,
|
|
@@ -2867,20 +2855,28 @@ const fo = ({
|
|
|
2867
2855
|
if (!Array.isArray(o))
|
|
2868
2856
|
return;
|
|
2869
2857
|
const s = n.collection.split(".").pop(), a = n.itemName || (s ? s + "Item" : "item");
|
|
2870
|
-
return o.map((g,
|
|
2858
|
+
return o.map((g, O) => ({
|
|
2871
2859
|
context: {
|
|
2872
2860
|
...t,
|
|
2873
2861
|
localState: {
|
|
2874
2862
|
...t.localState,
|
|
2875
|
-
$index:
|
|
2863
|
+
$index: O,
|
|
2876
2864
|
$item: g,
|
|
2877
2865
|
[a]: g,
|
|
2878
|
-
[`$${a}Index`]:
|
|
2866
|
+
[`$${a}Index`]: O
|
|
2879
2867
|
}
|
|
2880
2868
|
},
|
|
2881
2869
|
block: r
|
|
2882
2870
|
}));
|
|
2883
|
-
}, ho = (e) => e && (e.isRSC
|
|
2871
|
+
}, ho = (e, t) => e && (e.isRSC && ve === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
|
|
2872
|
+
builderLinkComponent: t
|
|
2873
|
+
} : {}, go = (e, t) => e && (e.isRSC && ve === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
|
|
2874
|
+
builderComponents: t
|
|
2875
|
+
} : {}, yo = (e, t) => e && (e.isRSC && ve === "rsc" || ve === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
|
|
2876
|
+
builderBlock: t
|
|
2877
|
+
} : {}, vo = (e, t) => e && (e.isRSC && ve === "rsc" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Slot"].includes(e.name)) ? {
|
|
2878
|
+
builderContext: t
|
|
2879
|
+
} : {}, nn = {
|
|
2884
2880
|
small: {
|
|
2885
2881
|
min: 320,
|
|
2886
2882
|
default: 321,
|
|
@@ -2896,11 +2892,11 @@ const fo = ({
|
|
|
2896
2892
|
default: 991,
|
|
2897
2893
|
max: 1200
|
|
2898
2894
|
}
|
|
2899
|
-
},
|
|
2895
|
+
}, Wr = (e, t = nn) => `@media (max-width: ${t[e].max}px)`, mo = ({
|
|
2900
2896
|
small: e,
|
|
2901
2897
|
medium: t
|
|
2902
2898
|
}) => {
|
|
2903
|
-
const n =
|
|
2899
|
+
const n = Xr(nn);
|
|
2904
2900
|
if (!e || !t)
|
|
2905
2901
|
return n;
|
|
2906
2902
|
const r = Math.floor(e / 2);
|
|
@@ -2923,8 +2919,8 @@ const fo = ({
|
|
|
2923
2919
|
default: s + 1
|
|
2924
2920
|
}, n;
|
|
2925
2921
|
};
|
|
2926
|
-
function
|
|
2927
|
-
return /* @__PURE__ */
|
|
2922
|
+
function So(e) {
|
|
2923
|
+
return /* @__PURE__ */ I(
|
|
2928
2924
|
"style",
|
|
2929
2925
|
{
|
|
2930
2926
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -2932,9 +2928,9 @@ function vo(e) {
|
|
|
2932
2928
|
}
|
|
2933
2929
|
);
|
|
2934
2930
|
}
|
|
2935
|
-
function
|
|
2931
|
+
function wo(e) {
|
|
2936
2932
|
function t() {
|
|
2937
|
-
const r =
|
|
2933
|
+
const r = st({
|
|
2938
2934
|
block: e.block,
|
|
2939
2935
|
localState: e.context.localState,
|
|
2940
2936
|
rootState: e.context.rootState,
|
|
@@ -2942,67 +2938,67 @@ function mo(e) {
|
|
|
2942
2938
|
context: e.context.context,
|
|
2943
2939
|
shouldEvaluateBindings: !0
|
|
2944
2940
|
});
|
|
2945
|
-
return
|
|
2941
|
+
return it(r.hide) ? !r.hide : it(r.show) ? r.show : !0;
|
|
2946
2942
|
}
|
|
2947
2943
|
function n() {
|
|
2948
|
-
var
|
|
2949
|
-
const r =
|
|
2944
|
+
var $, H, k;
|
|
2945
|
+
const r = st({
|
|
2950
2946
|
block: e.block,
|
|
2951
2947
|
localState: e.context.localState,
|
|
2952
2948
|
rootState: e.context.rootState,
|
|
2953
2949
|
rootSetState: e.context.rootSetState,
|
|
2954
2950
|
context: e.context.context,
|
|
2955
2951
|
shouldEvaluateBindings: !0
|
|
2956
|
-
}), o = r.responsiveStyles, s = e.context.content, a =
|
|
2957
|
-
((
|
|
2958
|
-
), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium,
|
|
2959
|
-
if (!
|
|
2952
|
+
}), o = r.responsiveStyles, s = e.context.content, a = mo(
|
|
2953
|
+
(($ = s == null ? void 0 : s.meta) == null ? void 0 : $.breakpoints) || {}
|
|
2954
|
+
), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium, O = o == null ? void 0 : o.small, C = r.id;
|
|
2955
|
+
if (!C)
|
|
2960
2956
|
return "";
|
|
2961
|
-
const
|
|
2962
|
-
className:
|
|
2957
|
+
const S = f ? ot({
|
|
2958
|
+
className: C,
|
|
2963
2959
|
styles: f
|
|
2964
|
-
}) : "",
|
|
2965
|
-
className:
|
|
2960
|
+
}) : "", T = g ? ot({
|
|
2961
|
+
className: C,
|
|
2966
2962
|
styles: g,
|
|
2967
|
-
mediaQuery:
|
|
2963
|
+
mediaQuery: Wr(
|
|
2968
2964
|
"medium",
|
|
2969
2965
|
a
|
|
2970
2966
|
)
|
|
2971
|
-
}) : "", R =
|
|
2972
|
-
className:
|
|
2973
|
-
styles:
|
|
2974
|
-
mediaQuery:
|
|
2967
|
+
}) : "", R = O ? ot({
|
|
2968
|
+
className: C,
|
|
2969
|
+
styles: O,
|
|
2970
|
+
mediaQuery: Wr(
|
|
2975
2971
|
"small",
|
|
2976
2972
|
a
|
|
2977
2973
|
)
|
|
2978
|
-
}) : "",
|
|
2979
|
-
let
|
|
2980
|
-
if (
|
|
2981
|
-
const
|
|
2982
|
-
|
|
2983
|
-
className: `${
|
|
2974
|
+
}) : "", P = r.animations && r.animations.find((Q) => Q.trigger === "hover");
|
|
2975
|
+
let ue = "";
|
|
2976
|
+
if (P) {
|
|
2977
|
+
const Q = ((k = (H = P.steps) == null ? void 0 : H[1]) == null ? void 0 : k.styles) || {};
|
|
2978
|
+
ue = ot({
|
|
2979
|
+
className: `${C}:hover`,
|
|
2984
2980
|
styles: {
|
|
2985
|
-
...
|
|
2986
|
-
transition: `all ${
|
|
2987
|
-
|
|
2981
|
+
...Q,
|
|
2982
|
+
transition: `all ${P.duration}s ${ut(
|
|
2983
|
+
P.easing
|
|
2988
2984
|
)}`,
|
|
2989
|
-
transitionDelay:
|
|
2985
|
+
transitionDelay: P.delay ? `${P.delay}s` : "0s"
|
|
2990
2986
|
}
|
|
2991
2987
|
}) || "";
|
|
2992
2988
|
}
|
|
2993
2989
|
return [
|
|
2994
|
-
|
|
2995
|
-
|
|
2990
|
+
S,
|
|
2991
|
+
T,
|
|
2996
2992
|
R,
|
|
2997
|
-
|
|
2993
|
+
ue
|
|
2998
2994
|
].join(" ");
|
|
2999
2995
|
}
|
|
3000
|
-
return /* @__PURE__ */
|
|
2996
|
+
return /* @__PURE__ */ I(Z, { children: n() && t() ? /* @__PURE__ */ I(Z, { children: /* @__PURE__ */ I(So, { id: "builderio-block", styles: n() }) }) : null });
|
|
3001
2997
|
}
|
|
3002
|
-
function
|
|
2998
|
+
function xo(e) {
|
|
3003
2999
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3004
3000
|
}
|
|
3005
|
-
const
|
|
3001
|
+
const ko = (e) => `on${xo(e)}`, Eo = (e, t) => (n) => er({
|
|
3006
3002
|
code: e,
|
|
3007
3003
|
context: t.context,
|
|
3008
3004
|
localState: t.localState,
|
|
@@ -3019,9 +3015,9 @@ function on(e) {
|
|
|
3019
3015
|
if (!n.hasOwnProperty(o))
|
|
3020
3016
|
continue;
|
|
3021
3017
|
const s = n[o];
|
|
3022
|
-
let a =
|
|
3018
|
+
let a = ko(o);
|
|
3023
3019
|
if (e.stripPrefix)
|
|
3024
|
-
switch (
|
|
3020
|
+
switch (ve) {
|
|
3025
3021
|
case "vue":
|
|
3026
3022
|
a = a.replace("v-on:", "");
|
|
3027
3023
|
break;
|
|
@@ -3029,25 +3025,25 @@ function on(e) {
|
|
|
3029
3025
|
a = a.replace("on:", "");
|
|
3030
3026
|
break;
|
|
3031
3027
|
}
|
|
3032
|
-
t[a] =
|
|
3028
|
+
t[a] = Eo(s, e);
|
|
3033
3029
|
}
|
|
3034
3030
|
return t;
|
|
3035
3031
|
}
|
|
3036
|
-
function
|
|
3032
|
+
function Co({
|
|
3037
3033
|
properties: e
|
|
3038
3034
|
}) {
|
|
3039
3035
|
return e;
|
|
3040
3036
|
}
|
|
3041
|
-
const
|
|
3037
|
+
const jo = (e) => ({
|
|
3042
3038
|
href: e.href
|
|
3043
3039
|
});
|
|
3044
|
-
function
|
|
3040
|
+
function tr({
|
|
3045
3041
|
block: e,
|
|
3046
3042
|
context: t
|
|
3047
3043
|
}) {
|
|
3048
3044
|
var r;
|
|
3049
3045
|
const n = {
|
|
3050
|
-
...
|
|
3046
|
+
...jo(e),
|
|
3051
3047
|
...e.properties,
|
|
3052
3048
|
"builder-id": e.id,
|
|
3053
3049
|
style: uo({
|
|
@@ -3056,18 +3052,18 @@ function qt({
|
|
|
3056
3052
|
}),
|
|
3057
3053
|
[An()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3058
3054
|
};
|
|
3059
|
-
return
|
|
3055
|
+
return Co({
|
|
3060
3056
|
properties: n,
|
|
3061
3057
|
context: t,
|
|
3062
3058
|
block: e
|
|
3063
3059
|
});
|
|
3064
3060
|
}
|
|
3065
|
-
function
|
|
3066
|
-
return /* @__PURE__ */
|
|
3061
|
+
function Oo(e) {
|
|
3062
|
+
return /* @__PURE__ */ I(
|
|
3067
3063
|
bn,
|
|
3068
3064
|
{
|
|
3069
3065
|
TagName: e.Wrapper,
|
|
3070
|
-
attributes:
|
|
3066
|
+
attributes: tr({
|
|
3071
3067
|
block: e.block,
|
|
3072
3068
|
context: e.context
|
|
3073
3069
|
}),
|
|
@@ -3083,10 +3079,10 @@ function Co(e) {
|
|
|
3083
3079
|
}
|
|
3084
3080
|
);
|
|
3085
3081
|
}
|
|
3086
|
-
function
|
|
3082
|
+
function Ao(e) {
|
|
3087
3083
|
function t() {
|
|
3088
3084
|
return e.includeBlockProps ? {
|
|
3089
|
-
...
|
|
3085
|
+
...tr({
|
|
3090
3086
|
block: e.block,
|
|
3091
3087
|
context: e.context
|
|
3092
3088
|
}),
|
|
@@ -3099,9 +3095,9 @@ function jo(e) {
|
|
|
3099
3095
|
})
|
|
3100
3096
|
} : {};
|
|
3101
3097
|
}
|
|
3102
|
-
return /* @__PURE__ */
|
|
3098
|
+
return /* @__PURE__ */ I(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
3103
3099
|
}
|
|
3104
|
-
const
|
|
3100
|
+
const bo = ({
|
|
3105
3101
|
componentOptions: e,
|
|
3106
3102
|
builderBlock: t,
|
|
3107
3103
|
context: n,
|
|
@@ -3117,7 +3113,7 @@ const Oo = ({
|
|
|
3117
3113
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3118
3114
|
*/
|
|
3119
3115
|
...o ? {
|
|
3120
|
-
attributes:
|
|
3116
|
+
attributes: tr({
|
|
3121
3117
|
block: t,
|
|
3122
3118
|
context: a
|
|
3123
3119
|
})
|
|
@@ -3131,15 +3127,15 @@ const Oo = ({
|
|
|
3131
3127
|
includeBlockProps: o
|
|
3132
3128
|
} : f;
|
|
3133
3129
|
};
|
|
3134
|
-
function
|
|
3130
|
+
function $r(e) {
|
|
3135
3131
|
var r;
|
|
3136
|
-
const [t, n] =
|
|
3137
|
-
() => e.isInteractive ?
|
|
3132
|
+
const [t, n] = Gr(
|
|
3133
|
+
() => e.isInteractive ? Ao : e.componentRef
|
|
3138
3134
|
);
|
|
3139
|
-
return /* @__PURE__ */
|
|
3135
|
+
return /* @__PURE__ */ I(Z, { children: e.componentRef ? /* @__PURE__ */ I(Z, { children: /* @__PURE__ */ I(
|
|
3140
3136
|
t,
|
|
3141
3137
|
{
|
|
3142
|
-
...
|
|
3138
|
+
...bo({
|
|
3143
3139
|
componentOptions: e.componentOptions,
|
|
3144
3140
|
builderBlock: e.builderBlock,
|
|
3145
3141
|
context: e.context,
|
|
@@ -3149,8 +3145,8 @@ function Wr(e) {
|
|
|
3149
3145
|
isInteractive: e.isInteractive,
|
|
3150
3146
|
contextValue: e.context
|
|
3151
3147
|
}),
|
|
3152
|
-
children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */
|
|
3153
|
-
|
|
3148
|
+
children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ I(
|
|
3149
|
+
ct,
|
|
3154
3150
|
{
|
|
3155
3151
|
block: o,
|
|
3156
3152
|
context: e.context,
|
|
@@ -3162,10 +3158,10 @@ function Wr(e) {
|
|
|
3162
3158
|
}
|
|
3163
3159
|
) }) : null });
|
|
3164
3160
|
}
|
|
3165
|
-
function
|
|
3166
|
-
const [t, n] =
|
|
3167
|
-
return /* @__PURE__ */
|
|
3168
|
-
|
|
3161
|
+
function Io(e) {
|
|
3162
|
+
const [t, n] = Gr(() => e.repeatContext);
|
|
3163
|
+
return /* @__PURE__ */ I(Vr.Provider, { value: t, children: /* @__PURE__ */ I(
|
|
3164
|
+
ct,
|
|
3169
3165
|
{
|
|
3170
3166
|
block: e.block,
|
|
3171
3167
|
context: t,
|
|
@@ -3174,8 +3170,8 @@ function Ao(e) {
|
|
|
3174
3170
|
}
|
|
3175
3171
|
) });
|
|
3176
3172
|
}
|
|
3177
|
-
function
|
|
3178
|
-
var g,
|
|
3173
|
+
function ct(e) {
|
|
3174
|
+
var g, O, C;
|
|
3179
3175
|
function t() {
|
|
3180
3176
|
return fo({
|
|
3181
3177
|
block: e.block,
|
|
@@ -3190,8 +3186,8 @@ function ut(e) {
|
|
|
3190
3186
|
});
|
|
3191
3187
|
}
|
|
3192
3188
|
function r() {
|
|
3193
|
-
var
|
|
3194
|
-
return (
|
|
3189
|
+
var S;
|
|
3190
|
+
return (S = e.block.repeat) != null && S.collection ? e.block : st({
|
|
3195
3191
|
block: e.block,
|
|
3196
3192
|
localState: e.context.localState,
|
|
3197
3193
|
rootState: e.context.rootState,
|
|
@@ -3201,55 +3197,55 @@ function ut(e) {
|
|
|
3201
3197
|
});
|
|
3202
3198
|
}
|
|
3203
3199
|
function o() {
|
|
3204
|
-
var
|
|
3205
|
-
return e.block.tagName === "a" || ((
|
|
3200
|
+
var T;
|
|
3201
|
+
return e.block.tagName === "a" || ((T = r().properties) == null ? void 0 : T.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3206
3202
|
}
|
|
3207
3203
|
function s() {
|
|
3208
|
-
var R,
|
|
3204
|
+
var R, P;
|
|
3209
3205
|
if ((R = e.block.repeat) != null && R.collection)
|
|
3210
|
-
return !!((
|
|
3211
|
-
const
|
|
3212
|
-
return ("show" in r() ? r().show : !0) && !
|
|
3206
|
+
return !!((P = n == null ? void 0 : n()) != null && P.length);
|
|
3207
|
+
const S = "hide" in r() ? r().hide : !1;
|
|
3208
|
+
return ("show" in r() ? r().show : !0) && !S;
|
|
3213
3209
|
}
|
|
3214
3210
|
function a() {
|
|
3215
|
-
var
|
|
3216
|
-
return !((
|
|
3211
|
+
var T, R;
|
|
3212
|
+
return !((T = t == null ? void 0 : t()) != null && T.component) && !n() ? (R = r().children) != null ? R : [] : [];
|
|
3217
3213
|
}
|
|
3218
3214
|
function f() {
|
|
3219
|
-
var
|
|
3215
|
+
var S, T, R, P;
|
|
3220
3216
|
return {
|
|
3221
|
-
blockChildren: (
|
|
3222
|
-
componentRef: (
|
|
3217
|
+
blockChildren: (S = r().children) != null ? S : [],
|
|
3218
|
+
componentRef: (T = t == null ? void 0 : t()) == null ? void 0 : T.component,
|
|
3223
3219
|
componentOptions: {
|
|
3224
|
-
...
|
|
3225
|
-
|
|
3226
|
-
...
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3220
|
+
...Pn(r()),
|
|
3221
|
+
...yo(t(), r()),
|
|
3222
|
+
...vo(t(), e.context),
|
|
3223
|
+
...ho(t(), e.linkComponent),
|
|
3224
|
+
...go(
|
|
3225
|
+
t(),
|
|
3226
|
+
e.registeredComponents
|
|
3227
|
+
)
|
|
3232
3228
|
},
|
|
3233
3229
|
context: e.context,
|
|
3234
3230
|
linkComponent: e.linkComponent,
|
|
3235
3231
|
registeredComponents: e.registeredComponents,
|
|
3236
3232
|
builderBlock: r(),
|
|
3237
3233
|
includeBlockProps: ((R = t == null ? void 0 : t()) == null ? void 0 : R.noWrap) === !0,
|
|
3238
|
-
isInteractive: !((
|
|
3234
|
+
isInteractive: !((P = t == null ? void 0 : t()) != null && P.isRSC)
|
|
3239
3235
|
};
|
|
3240
3236
|
}
|
|
3241
3237
|
return jn(() => {
|
|
3242
|
-
const
|
|
3243
|
-
|
|
3244
|
-
|
|
3238
|
+
const S = r().id, T = r().animations;
|
|
3239
|
+
T && S && no(
|
|
3240
|
+
T.map((R) => ({
|
|
3245
3241
|
...R,
|
|
3246
|
-
elementId:
|
|
3242
|
+
elementId: S
|
|
3247
3243
|
}))
|
|
3248
3244
|
);
|
|
3249
|
-
}, []), /* @__PURE__ */
|
|
3250
|
-
/* @__PURE__ */
|
|
3251
|
-
(g = t == null ? void 0 : t()) != null && g.noWrap ? /* @__PURE__ */
|
|
3252
|
-
|
|
3245
|
+
}, []), /* @__PURE__ */ I(Z, { children: s() ? /* @__PURE__ */ Dt(Z, { children: [
|
|
3246
|
+
/* @__PURE__ */ I(wo, { block: e.block, context: e.context }),
|
|
3247
|
+
(g = t == null ? void 0 : t()) != null && g.noWrap ? /* @__PURE__ */ I(Z, { children: /* @__PURE__ */ I(
|
|
3248
|
+
$r,
|
|
3253
3249
|
{
|
|
3254
3250
|
componentRef: f().componentRef,
|
|
3255
3251
|
componentOptions: f().componentOptions,
|
|
@@ -3261,25 +3257,24 @@ function ut(e) {
|
|
|
3261
3257
|
includeBlockProps: f().includeBlockProps,
|
|
3262
3258
|
isInteractive: f().isInteractive
|
|
3263
3259
|
}
|
|
3264
|
-
) }) : /* @__PURE__ */
|
|
3265
|
-
|
|
3260
|
+
) }) : /* @__PURE__ */ I(Z, { children: n() ? /* @__PURE__ */ I(Z, { children: (C = n()) == null ? void 0 : C.map((S, T) => /* @__PURE__ */ I(
|
|
3261
|
+
Io,
|
|
3266
3262
|
{
|
|
3267
|
-
repeatContext:
|
|
3268
|
-
block:
|
|
3263
|
+
repeatContext: S.context,
|
|
3264
|
+
block: S.block,
|
|
3269
3265
|
registeredComponents: e.registeredComponents,
|
|
3270
3266
|
linkComponent: e.linkComponent
|
|
3271
3267
|
},
|
|
3272
|
-
|
|
3273
|
-
)) }) : /* @__PURE__ */
|
|
3274
|
-
|
|
3268
|
+
T
|
|
3269
|
+
)) }) : /* @__PURE__ */ Dt(
|
|
3270
|
+
Oo,
|
|
3275
3271
|
{
|
|
3276
3272
|
Wrapper: o(),
|
|
3277
3273
|
block: r(),
|
|
3278
3274
|
context: e.context,
|
|
3279
|
-
linkComponent: e.linkComponent,
|
|
3280
3275
|
children: [
|
|
3281
|
-
/* @__PURE__ */
|
|
3282
|
-
|
|
3276
|
+
/* @__PURE__ */ I(
|
|
3277
|
+
$r,
|
|
3283
3278
|
{
|
|
3284
3279
|
componentRef: f().componentRef,
|
|
3285
3280
|
componentOptions: f().componentOptions,
|
|
@@ -3292,29 +3287,29 @@ function ut(e) {
|
|
|
3292
3287
|
isInteractive: f().isInteractive
|
|
3293
3288
|
}
|
|
3294
3289
|
),
|
|
3295
|
-
(
|
|
3296
|
-
|
|
3290
|
+
(O = a()) == null ? void 0 : O.map((S) => /* @__PURE__ */ I(
|
|
3291
|
+
ct,
|
|
3297
3292
|
{
|
|
3298
|
-
block:
|
|
3293
|
+
block: S,
|
|
3299
3294
|
registeredComponents: e.registeredComponents,
|
|
3300
3295
|
linkComponent: e.linkComponent,
|
|
3301
3296
|
context: e.context
|
|
3302
3297
|
},
|
|
3303
|
-
|
|
3298
|
+
S.id
|
|
3304
3299
|
))
|
|
3305
3300
|
]
|
|
3306
3301
|
}
|
|
3307
3302
|
) })
|
|
3308
3303
|
] }) : null });
|
|
3309
3304
|
}
|
|
3310
|
-
function
|
|
3305
|
+
function To(e) {
|
|
3311
3306
|
function t() {
|
|
3312
3307
|
var o;
|
|
3313
3308
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
3314
3309
|
}
|
|
3315
3310
|
function n() {
|
|
3316
3311
|
var o, s;
|
|
3317
|
-
|
|
3312
|
+
Ut() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage(
|
|
3318
3313
|
{
|
|
3319
3314
|
type: "builder.clickEmptyBlocks",
|
|
3320
3315
|
data: {
|
|
@@ -3327,7 +3322,7 @@ function bo(e) {
|
|
|
3327
3322
|
}
|
|
3328
3323
|
function r() {
|
|
3329
3324
|
var o, s;
|
|
3330
|
-
|
|
3325
|
+
Ut() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage(
|
|
3331
3326
|
{
|
|
3332
3327
|
type: "builder.hoverEmptyBlocks",
|
|
3333
3328
|
data: {
|
|
@@ -3338,8 +3333,8 @@ function bo(e) {
|
|
|
3338
3333
|
"*"
|
|
3339
3334
|
));
|
|
3340
3335
|
}
|
|
3341
|
-
return /* @__PURE__ */
|
|
3342
|
-
/* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ Dt(Z, { children: [
|
|
3337
|
+
/* @__PURE__ */ I(
|
|
3343
3338
|
e.BlocksWrapper,
|
|
3344
3339
|
{
|
|
3345
3340
|
className: t() + " props-blocks-wrapper-7cd1560e",
|
|
@@ -3353,18 +3348,18 @@ function bo(e) {
|
|
|
3353
3348
|
children: e.children
|
|
3354
3349
|
}
|
|
3355
3350
|
),
|
|
3356
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ I("style", { children: `.props-blocks-wrapper-7cd1560e {
|
|
3357
3352
|
display: flex;
|
|
3358
3353
|
flex-direction: column;
|
|
3359
3354
|
align-items: stretch;
|
|
3360
3355
|
}` })
|
|
3361
3356
|
] });
|
|
3362
3357
|
}
|
|
3363
|
-
function
|
|
3358
|
+
function No(e) {
|
|
3364
3359
|
var r, o, s;
|
|
3365
|
-
const t =
|
|
3366
|
-
return /* @__PURE__ */
|
|
3367
|
-
|
|
3360
|
+
const t = Br(Vr), n = Br(Nn);
|
|
3361
|
+
return /* @__PURE__ */ I(
|
|
3362
|
+
To,
|
|
3368
3363
|
{
|
|
3369
3364
|
blocks: e.blocks,
|
|
3370
3365
|
parent: e.parent,
|
|
@@ -3372,8 +3367,8 @@ function Io(e) {
|
|
|
3372
3367
|
styleProp: e.styleProp,
|
|
3373
3368
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || t.BlocksWrapper,
|
|
3374
3369
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
3375
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3376
|
-
|
|
3370
|
+
children: e.blocks ? /* @__PURE__ */ I(Z, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ I(
|
|
3371
|
+
ct,
|
|
3377
3372
|
{
|
|
3378
3373
|
block: a,
|
|
3379
3374
|
linkComponent: e.linkComponent,
|
|
@@ -3385,18 +3380,18 @@ function Io(e) {
|
|
|
3385
3380
|
}
|
|
3386
3381
|
);
|
|
3387
3382
|
}
|
|
3388
|
-
const
|
|
3383
|
+
const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3389
3384
|
__proto__: null,
|
|
3390
|
-
default:
|
|
3385
|
+
default: No
|
|
3391
3386
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3392
3387
|
export {
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3388
|
+
ct as Block,
|
|
3389
|
+
No as Blocks,
|
|
3390
|
+
Nn as ComponentsContext,
|
|
3391
|
+
So as InlinedStyles,
|
|
3392
|
+
Lo as blocks,
|
|
3393
|
+
er as evaluate,
|
|
3394
|
+
mo as getSizesForBreakpoints,
|
|
3400
3395
|
co as mapStyleObjToStrIfNeeded,
|
|
3401
3396
|
Hr as set,
|
|
3402
3397
|
io as triggerAnimation
|